Skip to content

Commit

Permalink
feat: add flex basis utilites (closes #332)
Browse files Browse the repository at this point in the history
  • Loading branch information
muhammadsammy committed Dec 17, 2021
1 parent 2d695e4 commit 8e900bb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/cli/core/ClassnamesGenerator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -281,9 +281,10 @@ export class ClassnamesGenerator {
private flexBox = (): FlexBox => {
return {
...nonConfigurableClassNames.flexBox,
flexGrow: Object.keys(this._theme.flexGrow).map(key => `flex-grow-${key}`),
flexShrink: Object.keys(this._theme.flexShrink).map(key => `flex-shrink-${key}`),
order: Object.keys(this._theme.order).map(key => `order-${key}`),
flexBasis: Object.keys(this._theme.flexBasis).map(x => `basis-${x}`),
flexGrow: Object.keys(this._theme.flexGrow).map(x => `flex-grow-${x}`),
flexShrink: Object.keys(this._theme.flexShrink).map(x => `flex-shrink-${x}`),
order: Object.keys(this._theme.order).map(x => `order-${x}`),
};
};

Expand Down
1 change: 1 addition & 0 deletions src/cli/types/classes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ type TFiltersCategoryItem =
| 'backdropSepia';

type TFlexBoxCategoryItem =
| 'flexBasis'
| 'flexDirection'
| 'flexWrap'
| 'alignItems'
Expand Down

0 comments on commit 8e900bb

Please sign in to comment.