Skip to content

Commit

Permalink
feat: add box-decoration-break utilities
Browse files Browse the repository at this point in the history
Fixes #193
  • Loading branch information
muhammadsammy committed Apr 9, 2021
1 parent 0529a87 commit 65416ca
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/cli/lib/non-configurable/layout.ts
Expand Up @@ -15,6 +15,8 @@ const display = [
'hidden',
];

const boxDecorationBreak = ['decoration-slice', 'decoration-clone'];

const container = ['container'];

const float = ['float-right', 'float-left', 'float-none'];
Expand Down Expand Up @@ -64,6 +66,7 @@ const visibility = ['visible', 'invisible'];

export default {
display,
boxDecorationBreak,
boxSizing,
container,
float,
Expand Down
1 change: 1 addition & 0 deletions src/cli/types/classes.ts
Expand Up @@ -138,6 +138,7 @@ type TInteractivityCategoryItem =

type TLayoutCategoryItem =
| 'display'
| 'boxDecorationBreak'
| 'boxSizing'
| 'container'
| 'float'
Expand Down
13 changes: 13 additions & 0 deletions src/index.ts
Expand Up @@ -2530,6 +2530,8 @@ export type TDisplay =
| 'contents'
| 'hidden';

export type TBoxDecorationBreak = 'decoration-slice' | 'decoration-clone';

export type TBoxSizing = 'box-border' | 'box-content';

export type TContainer = 'container';
Expand Down Expand Up @@ -3188,6 +3190,7 @@ export type TZIndex = 'z-0' | 'z-10' | 'z-20' | 'z-30' | 'z-40' | 'z-50' | 'z-au

export type TLayout =
| TDisplay
| TBoxDecorationBreak
| TBoxSizing
| TContainer
| TFloat
Expand Down Expand Up @@ -6987,6 +6990,16 @@ export type TPseudoClasses =
| 'lg:border'
| 'xl:border'
| '2xl:border'
| 'sm:decoration-slice'
| 'md:decoration-slice'
| 'lg:decoration-slice'
| 'xl:decoration-slice'
| '2xl:decoration-slice'
| 'sm:decoration-clone'
| 'md:decoration-clone'
| 'lg:decoration-clone'
| 'xl:decoration-clone'
| '2xl:decoration-clone'
| 'sm:shadow-sm'
| 'md:shadow-sm'
| 'lg:shadow-sm'
Expand Down

0 comments on commit 65416ca

Please sign in to comment.