-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[CCUBE-1628][MAHI]Update codemod script to cater for size prop mapping
- Loading branch information
1 parent
297d23c
commit 8a10b4d
Showing
4 changed files
with
45 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
export const sizePropMapping = { | ||
D1: "header-xxl", | ||
D2: "header-xl", | ||
D3: "header-md", | ||
D4: "header-sm", | ||
H1: "header-lg", | ||
H2: "header-md", | ||
H3: "header-sm", | ||
H4: "header-xs", | ||
H5: "body-md", | ||
H6: "body-sm", | ||
DBody: "header-sm", | ||
Body: "body-baseline", | ||
BodySmall: "body-md", | ||
XSmall: "body-xs", | ||
}; |
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