-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(design-system): update grid variants to use string literals (#…
…133)
- Loading branch information
Showing
3 changed files
with
34 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,19 @@ | ||
import { type VariantProps } from 'class-variance-authority'; | ||
|
||
import type { DesignSystemSizeVariant } from '../types'; | ||
import { gridVariants } from './Grid.styles'; | ||
|
||
export type GridVariantProps = VariantProps<typeof gridVariants>; | ||
|
||
export type GridColVariant = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10; | ||
export type GridColVariant = | ||
| '1' | ||
| '2' | ||
| '3' | ||
| '4' | ||
| '5' | ||
| '6' | ||
| '7' | ||
| '8' | ||
| '9' | ||
| '10'; | ||
export type GridGapVariant = DesignSystemSizeVariant<'none'>; |