Skip to content

Commit

Permalink
feat: generate grid row start/end types
Browse files Browse the repository at this point in the history
  • Loading branch information
muhammadsammy committed Jun 23, 2020
1 parent da9950e commit 9a173a7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions src/generation/ClassesGenerator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,9 @@ export class ClassesGenerator implements IClassesGenerator {
gridColumnStart: Object.keys(this.configScanner.themeConfig.gridColumnStart).map(value => `col-start-${value}`),
gridColumnEnd: Object.keys(this.configScanner.themeConfig.gridColumnEnd).map(value => `col-end-${value}`),
gridTemplateRows: Object.keys(this.configScanner.themeConfig.gridTemplateRows).map(value => `grid-rows-${value}`),
gridRow: Object.keys(this.configScanner.themeConfig.gridRow).map(value => `row-${value}`),
gridRowStart: Object.keys(this.configScanner.themeConfig.gridRowStart).map(value => `row-start-${value}`),
gridRowEnd: Object.keys(this.configScanner.themeConfig.gridRowEnd).map(value => `row-end-${value}`),
};

this.allGeneratedClasses.Grid = Grid;
Expand Down
6 changes: 3 additions & 3 deletions src/generation/_definitions.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -154,14 +154,14 @@ interface IThemeProps {
gridTemplateRows: {
[key: string]: string;
};
gridRow?: {
gridRow: {
auto: 'auto';
[key: string]: string;
};
gridRowStart?: {
gridRowStart: {
[key: string]: string;
};
gridRowEnd?: {
gridRowEnd: {
[key: string]: string;
};
transformOrigin?: {
Expand Down

0 comments on commit 9a173a7

Please sign in to comment.