Skip to content

Commit

Permalink
feat: generate grid column start/end types
Browse files Browse the repository at this point in the history
  • Loading branch information
muhammadsammy committed Jun 23, 2020
1 parent 8e0e5d5 commit 3b90dbc
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 @@ -106,6 +106,9 @@ export class ClassesGenerator implements IClassesGenerator {
gridTemplateColumns: Object.keys(this.configScanner.themeConfig.gridTemplateColumns).map(
value => `grid-cols-${value}`,
),
gridColumn: Object.keys(this.configScanner.themeConfig.gridColumn).map(value => `col-${value}`),
gridColumnStart: Object.keys(this.configScanner.themeConfig.gridColumnStart).map(value => `col-start-${value}`),
gridColumnEnd: Object.keys(this.configScanner.themeConfig.gridColumnEnd).map(value => `col-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 @@ -142,13 +142,13 @@ interface IThemeProps {
gridTemplateColumns: {
[key: string]: string;
};
gridColumn?: {
gridColumn: {
[key: string]: string;
};
gridColumnStart?: {
gridColumnStart: {
[key: string]: string;
};
gridColumnEnd?: {
gridColumnEnd: {
[key: string]: string;
};
gridTemplateRows?: {
Expand Down

0 comments on commit 3b90dbc

Please sign in to comment.