-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: create a BareColorsSchema and correct colors codemod types
- Loading branch information
Martí Malek
committed
Nov 9, 2023
1 parent
a955714
commit 6593e75
Showing
8 changed files
with
104 additions
and
25 deletions.
There are no files selected for viewing
8 changes: 4 additions & 4 deletions
8
src/codemods/__testfixtures__/colors-to-css-vars/color-as-type.output.tsx
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,7 +1,7 @@ | ||
import { ReadCssColorVariable } from '@freenow/wave'; | ||
import { ReadBareCssColorVariable } from '@freenow/wave'; | ||
|
||
export interface LabelVariant { | ||
color?: ReadCssColorVariable | ||
backgroundColor?: ReadCssColorVariable | ||
borderColor?: ReadCssColorVariable | ||
color?: ReadBareCssColorVariable | ||
backgroundColor?: ReadBareCssColorVariable | ||
borderColor?: ReadBareCssColorVariable | ||
} |
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
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,9 @@ | ||
export { Elevation } from './Elevation/Elevation'; | ||
export { Spaces } from './Spaces/Spaces'; | ||
export { Breakpoints, MediaQueries } from './Breakpoints/Breakpoints'; | ||
export type { ReadCssColorVariable } from './Colors/types'; | ||
export type { | ||
ReadBareCssColorVariable, | ||
ReadBareCssVariable, | ||
ReadSemanticCssColorVariable, | ||
ReadSemanticCssVariable | ||
} from './Colors/types'; |
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