@utilitywarehouse/hearth-react-native 0.4.1 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.turbo/turbo-build.log +1 -1
- package/.turbo/turbo-lint.log +1 -1
- package/CHANGELOG.md +54 -0
- package/build/components/Alert/AlertTitle.js +6 -6
- package/build/components/Badge/Badge.js +3 -3
- package/build/components/Badge/Badge.props.d.ts +1 -0
- package/build/components/Button/ButtonRoot.js +4 -0
- package/build/components/Button/ButtonText.js +2 -2
- package/build/components/Card/CardRoot.js +1 -1
- package/build/components/Carousel/Carousel.context.d.ts +4 -0
- package/build/components/Carousel/Carousel.context.js +4 -0
- package/build/components/Carousel/Carousel.d.ts +6 -0
- package/build/components/Carousel/Carousel.js +278 -0
- package/build/components/Carousel/Carousel.props.d.ts +65 -0
- package/build/components/Carousel/Carousel.props.js +1 -0
- package/build/components/Carousel/CarouselControlItem.d.ts +24 -0
- package/build/components/Carousel/CarouselControlItem.js +64 -0
- package/build/components/Carousel/CarouselControls.d.ts +4 -0
- package/build/components/Carousel/CarouselControls.js +74 -0
- package/build/components/Carousel/CarouselItem.d.ts +6 -0
- package/build/components/Carousel/CarouselItem.js +38 -0
- package/build/components/Carousel/index.d.ts +5 -0
- package/build/components/Carousel/index.js +5 -0
- package/build/components/Checkbox/CheckboxTextContent.d.ts +1 -1
- package/build/components/Checkbox/CheckboxTextContent.js +9 -2
- package/build/components/CurrencyInput/CurrencyInput.d.ts +1 -1
- package/build/components/CurrencyInput/CurrencyInput.js +3 -3
- package/build/components/CurrencyInput/CurrencyInput.props.d.ts +2 -2
- package/build/components/DescriptionList/DescriptionList.d.ts +1 -1
- package/build/components/DescriptionList/DescriptionList.js +2 -2
- package/build/components/DescriptionList/DescriptionList.props.d.ts +1 -8
- package/build/components/DescriptionList/DescriptionListItem.d.ts +1 -1
- package/build/components/DescriptionList/DescriptionListItem.js +4 -3
- package/build/components/DescriptionList/DescriptionListItem.props.d.ts +3 -8
- package/build/components/IndicatorIconButton/IndicatorIconButton.d.ts +6 -0
- package/build/components/IndicatorIconButton/IndicatorIconButton.js +26 -0
- package/build/components/IndicatorIconButton/IndicatorIconButton.props.d.ts +8 -0
- package/build/components/IndicatorIconButton/IndicatorIconButton.props.js +1 -0
- package/build/components/IndicatorIconButton/index.d.ts +2 -0
- package/build/components/IndicatorIconButton/index.js +1 -0
- package/build/components/Link/LinkText.js +3 -3
- package/build/components/List/List.context.d.ts +0 -2
- package/build/components/List/List.d.ts +1 -1
- package/build/components/List/List.js +5 -5
- package/build/components/List/List.props.d.ts +1 -9
- package/build/components/List/ListAction/ListAction.d.ts +18 -0
- package/build/components/List/ListAction/ListAction.js +103 -0
- package/build/components/List/ListAction/ListAction.props.d.ts +8 -0
- package/build/components/List/ListAction/ListAction.props.js +1 -0
- package/build/components/List/ListAction/ListActionContent.d.ts +6 -0
- package/build/components/List/ListAction/ListActionContent.js +14 -0
- package/build/components/List/ListAction/ListActionText.d.ts +6 -0
- package/build/components/List/ListAction/ListActionText.js +7 -0
- package/build/components/List/ListAction/ListActionTrailingContent.d.ts +6 -0
- package/build/components/List/ListAction/ListActionTrailingContent.js +5 -0
- package/build/components/List/ListAction/ListActionTrailingIcon.d.ts +9 -0
- package/build/components/List/ListAction/ListActionTrailingIcon.js +18 -0
- package/build/components/List/ListAction/index.d.ts +6 -0
- package/build/components/List/ListAction/index.js +5 -0
- package/build/components/List/ListItem/ListItem.context.d.ts +1 -1
- package/build/components/List/ListItem/ListItem.props.d.ts +9 -5
- package/build/components/List/ListItem/ListItemRoot.d.ts +1 -1
- package/build/components/List/ListItem/ListItemRoot.js +10 -12
- package/build/components/List/ListItem/index.d.ts +4 -4
- package/build/components/List/ListItem/index.js +3 -3
- package/build/components/List/index.d.ts +1 -0
- package/build/components/List/index.js +1 -0
- package/build/components/ProgressStepper/ProgressStep.d.ts +10 -0
- package/build/components/ProgressStepper/ProgressStep.js +100 -0
- package/build/components/ProgressStepper/ProgressStepper.d.ts +6 -0
- package/build/components/ProgressStepper/ProgressStepper.js +22 -0
- package/build/components/ProgressStepper/ProgressStepper.props.d.ts +22 -0
- package/build/components/ProgressStepper/ProgressStepper.props.js +1 -0
- package/build/components/ProgressStepper/ProgressStepperRoot.d.ts +6 -0
- package/build/components/ProgressStepper/ProgressStepperRoot.js +16 -0
- package/build/components/ProgressStepper/index.d.ts +3 -0
- package/build/components/ProgressStepper/index.js +2 -0
- package/build/components/Radio/RadioTextContent.d.ts +1 -1
- package/build/components/Radio/RadioTextContent.js +9 -2
- package/build/components/SectionHeader/SectionHeader.d.ts +1 -1
- package/build/components/SectionHeader/SectionHeader.js +6 -3
- package/build/components/SectionHeader/SectionHeader.props.d.ts +9 -16
- package/build/components/SectionHeader/SectionHeaderTrailingContent.d.ts +6 -0
- package/build/components/SectionHeader/SectionHeaderTrailingContent.js +13 -0
- package/build/components/SectionHeader/index.d.ts +1 -0
- package/build/components/SectionHeader/index.js +1 -0
- package/build/components/Tabs/Tab.js +2 -2
- package/build/components/ToggleButton/ToggleButtonText.js +2 -2
- package/build/components/UnstyledIconButton/UnstyledIconButton.props.d.ts +4 -1
- package/build/components/index.d.ts +3 -0
- package/build/components/index.js +3 -0
- package/build/core/themes.d.ts +12 -24
- package/build/tokens/components/dark/button.d.ts +1 -1
- package/build/tokens/components/dark/button.js +1 -1
- package/build/tokens/components/dark/dialog.d.ts +1 -0
- package/build/tokens/components/dark/dialog.js +1 -0
- package/build/tokens/components/dark/illustrations.d.ts +1 -0
- package/build/tokens/components/dark/illustrations.js +1 -0
- package/build/tokens/components/dark/toast.d.ts +4 -1
- package/build/tokens/components/dark/toast.js +4 -1
- package/build/tokens/components/light/button.d.ts +1 -1
- package/build/tokens/components/light/button.js +1 -1
- package/build/tokens/components/light/dialog.d.ts +1 -0
- package/build/tokens/components/light/dialog.js +1 -0
- package/build/tokens/components/light/illustrations.d.ts +1 -0
- package/build/tokens/components/light/illustrations.js +1 -0
- package/build/tokens/components/light/toast.d.ts +4 -1
- package/build/tokens/components/light/toast.js +4 -1
- package/build/tokens/layout.d.ts +6 -12
- package/build/tokens/layout.js +3 -6
- package/build/utils/getFlattenedColorValue.js +2 -19
- package/build/utils/index.d.ts +1 -0
- package/build/utils/index.js +1 -0
- package/build/utils/styleUtils.d.ts +0 -4
- package/build/utils/styleUtils.js +0 -50
- package/build/utils/themeValueHelpers.d.ts +17 -0
- package/build/utils/themeValueHelpers.js +54 -0
- package/docs/components/AllComponents.web.tsx +86 -4
- package/docs/components/BadgeList.tsx +20 -56
- package/docs/components/SwitchList.tsx +4 -8
- package/docs/getting-started.mdx +37 -13
- package/docs/introduction.mdx +51 -6
- package/package.json +7 -7
- package/src/components/Alert/AlertTitle.tsx +7 -7
- package/src/components/Badge/Badge.props.ts +1 -0
- package/src/components/Badge/Badge.tsx +3 -2
- package/src/components/Button/ButtonRoot.tsx +4 -0
- package/src/components/Button/ButtonText.tsx +3 -3
- package/src/components/Card/CardRoot.tsx +2 -0
- package/src/components/Carousel/Carousel.context.tsx +8 -0
- package/src/components/Carousel/Carousel.docs.mdx +389 -0
- package/src/components/Carousel/Carousel.props.ts +89 -0
- package/src/components/Carousel/Carousel.stories.tsx +317 -0
- package/src/components/Carousel/Carousel.tsx +444 -0
- package/src/components/Carousel/CarouselControlItem.tsx +87 -0
- package/src/components/Carousel/CarouselControls.tsx +150 -0
- package/src/components/Carousel/CarouselItem.tsx +68 -0
- package/src/components/Carousel/index.ts +6 -0
- package/src/components/Checkbox/CheckboxTextContent.tsx +11 -3
- package/src/components/CurrencyInput/CurrencyInput.docs.mdx +4 -4
- package/src/components/CurrencyInput/CurrencyInput.props.ts +2 -2
- package/src/components/CurrencyInput/CurrencyInput.stories.tsx +17 -15
- package/src/components/CurrencyInput/CurrencyInput.tsx +3 -3
- package/src/components/DescriptionList/DescriptionList.docs.mdx +24 -27
- package/src/components/DescriptionList/DescriptionList.props.ts +1 -8
- package/src/components/DescriptionList/DescriptionList.stories.tsx +13 -19
- package/src/components/DescriptionList/DescriptionList.tsx +2 -14
- package/src/components/DescriptionList/DescriptionListItem.props.ts +3 -8
- package/src/components/DescriptionList/DescriptionListItem.tsx +13 -21
- package/src/components/IndicatorIconButton/IndicatorIconButton.docs.mdx +85 -0
- package/src/components/IndicatorIconButton/IndicatorIconButton.props.ts +12 -0
- package/src/components/IndicatorIconButton/IndicatorIconButton.stories.tsx +142 -0
- package/src/components/IndicatorIconButton/IndicatorIconButton.tsx +36 -0
- package/src/components/IndicatorIconButton/index.tsx +2 -0
- package/src/components/Link/LinkText.tsx +4 -4
- package/src/components/List/List.context.ts +0 -1
- package/src/components/List/List.docs.mdx +376 -179
- package/src/components/List/List.props.ts +1 -9
- package/src/components/List/List.stories.tsx +289 -38
- package/src/components/List/List.tsx +5 -26
- package/src/components/List/ListAction/ListAction.props.ts +10 -0
- package/src/components/List/ListAction/ListAction.tsx +133 -0
- package/src/components/List/ListAction/ListActionContent.tsx +21 -0
- package/src/components/List/ListAction/ListActionText.tsx +14 -0
- package/src/components/List/ListAction/ListActionTrailingContent.tsx +9 -0
- package/src/components/List/ListAction/ListActionTrailingIcon.tsx +32 -0
- package/src/components/List/ListAction/index.ts +6 -0
- package/src/components/List/ListItem/ListItem.context.ts +1 -1
- package/src/components/List/ListItem/ListItem.props.ts +9 -5
- package/src/components/List/ListItem/ListItemRoot.tsx +18 -14
- package/src/components/List/ListItem/index.ts +4 -4
- package/src/components/List/index.ts +1 -0
- package/src/components/ProgressStepper/ProgressStep.tsx +134 -0
- package/src/components/ProgressStepper/ProgressStepper.docs.mdx +87 -0
- package/src/components/ProgressStepper/ProgressStepper.props.ts +27 -0
- package/src/components/ProgressStepper/ProgressStepper.stories.tsx +108 -0
- package/src/components/ProgressStepper/ProgressStepper.tsx +26 -0
- package/src/components/ProgressStepper/ProgressStepperRoot.tsx +32 -0
- package/src/components/ProgressStepper/index.ts +3 -0
- package/src/components/Radio/RadioTextContent.tsx +11 -3
- package/src/components/SectionHeader/SectionHeader.props.ts +9 -16
- package/src/components/SectionHeader/SectionHeader.stories.tsx +28 -18
- package/src/components/SectionHeader/SectionHeader.tsx +18 -19
- package/src/components/SectionHeader/SectionHeaderTrailingContent.tsx +20 -0
- package/src/components/SectionHeader/Sectionheader.docs.mdx +9 -24
- package/src/components/SectionHeader/index.ts +1 -0
- package/src/components/Switch/Switch.docs.mdx +0 -4
- package/src/components/Tabs/Tab.tsx +4 -2
- package/src/components/ToggleButton/ToggleButtonText.tsx +3 -3
- package/src/components/UnstyledIconButton/UnstyledIconButton.props.ts +2 -1
- package/src/components/index.ts +3 -0
- package/src/tokens/components/dark/button.ts +1 -1
- package/src/tokens/components/dark/dialog.ts +1 -0
- package/src/tokens/components/dark/illustrations.ts +1 -0
- package/src/tokens/components/dark/toast.ts +4 -1
- package/src/tokens/components/light/button.ts +1 -1
- package/src/tokens/components/light/dialog.ts +1 -0
- package/src/tokens/components/light/illustrations.ts +1 -0
- package/src/tokens/components/light/toast.ts +4 -1
- package/src/tokens/layout.ts +3 -6
- package/src/utils/getFlattenedColorValue.ts +2 -21
- package/src/utils/getStyleValue.ts +0 -3
- package/src/utils/index.ts +1 -0
- package/src/utils/styleUtils.ts +0 -57
- package/src/utils/themeValueHelpers.ts +60 -0
|
@@ -6,6 +6,7 @@ export * from './BottomSheet';
|
|
|
6
6
|
export * from './Box';
|
|
7
7
|
export * from './Button';
|
|
8
8
|
export * from './Card';
|
|
9
|
+
export * from './Carousel';
|
|
9
10
|
export * from './Center';
|
|
10
11
|
export * from './Checkbox';
|
|
11
12
|
export * from './CurrencyInput';
|
|
@@ -23,12 +24,14 @@ export * from './HTMLElements';
|
|
|
23
24
|
export * from './Icon';
|
|
24
25
|
export * from './IconButton';
|
|
25
26
|
export * from './IconContainer';
|
|
27
|
+
export * from './IndicatorIconButton';
|
|
26
28
|
export * from './InlineLink';
|
|
27
29
|
export * from './Input';
|
|
28
30
|
export * from './Label';
|
|
29
31
|
export * from './Link';
|
|
30
32
|
export * from './List';
|
|
31
33
|
export * from './Modal';
|
|
34
|
+
export * from './ProgressStepper';
|
|
32
35
|
export * from './Radio';
|
|
33
36
|
export * from './RadioCard';
|
|
34
37
|
export * from './SectionHeader';
|
|
@@ -7,6 +7,7 @@ export * from './BottomSheet';
|
|
|
7
7
|
export * from './Box';
|
|
8
8
|
export * from './Button';
|
|
9
9
|
export * from './Card';
|
|
10
|
+
export * from './Carousel';
|
|
10
11
|
export * from './Center';
|
|
11
12
|
export * from './Checkbox';
|
|
12
13
|
export * from './CurrencyInput';
|
|
@@ -24,12 +25,14 @@ export * from './HTMLElements';
|
|
|
24
25
|
export * from './Icon';
|
|
25
26
|
export * from './IconButton';
|
|
26
27
|
export * from './IconContainer';
|
|
28
|
+
export * from './IndicatorIconButton';
|
|
27
29
|
export * from './InlineLink';
|
|
28
30
|
export * from './Input';
|
|
29
31
|
export * from './Label';
|
|
30
32
|
export * from './Link';
|
|
31
33
|
export * from './List';
|
|
32
34
|
export * from './Modal';
|
|
35
|
+
export * from './ProgressStepper';
|
|
33
36
|
export * from './Radio';
|
|
34
37
|
export * from './RadioCard';
|
|
35
38
|
export * from './SectionHeader';
|
package/build/core/themes.d.ts
CHANGED
|
@@ -464,8 +464,8 @@ export declare const lightTheme: {
|
|
|
464
464
|
readonly minWidth: 320;
|
|
465
465
|
};
|
|
466
466
|
readonly container: {
|
|
467
|
+
readonly margin: 16;
|
|
467
468
|
readonly paddingBottom: 32;
|
|
468
|
-
readonly paddingHorizontal: 16;
|
|
469
469
|
readonly paddingTop: 24;
|
|
470
470
|
readonly width: 360;
|
|
471
471
|
};
|
|
@@ -474,7 +474,6 @@ export declare const lightTheme: {
|
|
|
474
474
|
readonly columnWidth: 64;
|
|
475
475
|
readonly gridSize: 8;
|
|
476
476
|
readonly gutter: 16;
|
|
477
|
-
readonly margin: 16;
|
|
478
477
|
};
|
|
479
478
|
readonly spacing: {
|
|
480
479
|
readonly '2xl': 28;
|
|
@@ -493,8 +492,8 @@ export declare const lightTheme: {
|
|
|
493
492
|
readonly minWidth: 740;
|
|
494
493
|
};
|
|
495
494
|
readonly container: {
|
|
495
|
+
readonly margin: 32;
|
|
496
496
|
readonly paddingBottom: 32;
|
|
497
|
-
readonly paddingHorizontal: 32;
|
|
498
497
|
readonly paddingTop: 24;
|
|
499
498
|
readonly width: 744;
|
|
500
499
|
};
|
|
@@ -503,7 +502,6 @@ export declare const lightTheme: {
|
|
|
503
502
|
readonly columnWidth: 64;
|
|
504
503
|
readonly gridSize: 8;
|
|
505
504
|
readonly gutter: 24;
|
|
506
|
-
readonly margin: 32;
|
|
507
505
|
};
|
|
508
506
|
readonly spacing: {
|
|
509
507
|
readonly '2xl': 28;
|
|
@@ -522,8 +520,8 @@ export declare const lightTheme: {
|
|
|
522
520
|
readonly minWidth: 992;
|
|
523
521
|
};
|
|
524
522
|
readonly container: {
|
|
523
|
+
readonly margin: 32;
|
|
525
524
|
readonly paddingBottom: 48;
|
|
526
|
-
readonly paddingHorizontal: 32;
|
|
527
525
|
readonly paddingTop: 32;
|
|
528
526
|
readonly width: 1096;
|
|
529
527
|
};
|
|
@@ -532,7 +530,6 @@ export declare const lightTheme: {
|
|
|
532
530
|
readonly columnWidth: 64;
|
|
533
531
|
readonly gridSize: 8;
|
|
534
532
|
readonly gutter: 24;
|
|
535
|
-
readonly margin: 32;
|
|
536
533
|
};
|
|
537
534
|
readonly spacing: {
|
|
538
535
|
readonly '2xl': 40;
|
|
@@ -1814,8 +1811,8 @@ export declare const darkTheme: {
|
|
|
1814
1811
|
readonly minWidth: 320;
|
|
1815
1812
|
};
|
|
1816
1813
|
readonly container: {
|
|
1814
|
+
readonly margin: 16;
|
|
1817
1815
|
readonly paddingBottom: 32;
|
|
1818
|
-
readonly paddingHorizontal: 16;
|
|
1819
1816
|
readonly paddingTop: 24;
|
|
1820
1817
|
readonly width: 360;
|
|
1821
1818
|
};
|
|
@@ -1824,7 +1821,6 @@ export declare const darkTheme: {
|
|
|
1824
1821
|
readonly columnWidth: 64;
|
|
1825
1822
|
readonly gridSize: 8;
|
|
1826
1823
|
readonly gutter: 16;
|
|
1827
|
-
readonly margin: 16;
|
|
1828
1824
|
};
|
|
1829
1825
|
readonly spacing: {
|
|
1830
1826
|
readonly '2xl': 28;
|
|
@@ -1843,8 +1839,8 @@ export declare const darkTheme: {
|
|
|
1843
1839
|
readonly minWidth: 740;
|
|
1844
1840
|
};
|
|
1845
1841
|
readonly container: {
|
|
1842
|
+
readonly margin: 32;
|
|
1846
1843
|
readonly paddingBottom: 32;
|
|
1847
|
-
readonly paddingHorizontal: 32;
|
|
1848
1844
|
readonly paddingTop: 24;
|
|
1849
1845
|
readonly width: 744;
|
|
1850
1846
|
};
|
|
@@ -1853,7 +1849,6 @@ export declare const darkTheme: {
|
|
|
1853
1849
|
readonly columnWidth: 64;
|
|
1854
1850
|
readonly gridSize: 8;
|
|
1855
1851
|
readonly gutter: 24;
|
|
1856
|
-
readonly margin: 32;
|
|
1857
1852
|
};
|
|
1858
1853
|
readonly spacing: {
|
|
1859
1854
|
readonly '2xl': 28;
|
|
@@ -1872,8 +1867,8 @@ export declare const darkTheme: {
|
|
|
1872
1867
|
readonly minWidth: 992;
|
|
1873
1868
|
};
|
|
1874
1869
|
readonly container: {
|
|
1870
|
+
readonly margin: 32;
|
|
1875
1871
|
readonly paddingBottom: 48;
|
|
1876
|
-
readonly paddingHorizontal: 32;
|
|
1877
1872
|
readonly paddingTop: 32;
|
|
1878
1873
|
readonly width: 1096;
|
|
1879
1874
|
};
|
|
@@ -1882,7 +1877,6 @@ export declare const darkTheme: {
|
|
|
1882
1877
|
readonly columnWidth: 64;
|
|
1883
1878
|
readonly gridSize: 8;
|
|
1884
1879
|
readonly gutter: 24;
|
|
1885
|
-
readonly margin: 32;
|
|
1886
1880
|
};
|
|
1887
1881
|
readonly spacing: {
|
|
1888
1882
|
readonly '2xl': 40;
|
|
@@ -3176,8 +3170,8 @@ export declare const themes: {
|
|
|
3176
3170
|
readonly minWidth: 320;
|
|
3177
3171
|
};
|
|
3178
3172
|
readonly container: {
|
|
3173
|
+
readonly margin: 16;
|
|
3179
3174
|
readonly paddingBottom: 32;
|
|
3180
|
-
readonly paddingHorizontal: 16;
|
|
3181
3175
|
readonly paddingTop: 24;
|
|
3182
3176
|
readonly width: 360;
|
|
3183
3177
|
};
|
|
@@ -3186,7 +3180,6 @@ export declare const themes: {
|
|
|
3186
3180
|
readonly columnWidth: 64;
|
|
3187
3181
|
readonly gridSize: 8;
|
|
3188
3182
|
readonly gutter: 16;
|
|
3189
|
-
readonly margin: 16;
|
|
3190
3183
|
};
|
|
3191
3184
|
readonly spacing: {
|
|
3192
3185
|
readonly '2xl': 28;
|
|
@@ -3205,8 +3198,8 @@ export declare const themes: {
|
|
|
3205
3198
|
readonly minWidth: 740;
|
|
3206
3199
|
};
|
|
3207
3200
|
readonly container: {
|
|
3201
|
+
readonly margin: 32;
|
|
3208
3202
|
readonly paddingBottom: 32;
|
|
3209
|
-
readonly paddingHorizontal: 32;
|
|
3210
3203
|
readonly paddingTop: 24;
|
|
3211
3204
|
readonly width: 744;
|
|
3212
3205
|
};
|
|
@@ -3215,7 +3208,6 @@ export declare const themes: {
|
|
|
3215
3208
|
readonly columnWidth: 64;
|
|
3216
3209
|
readonly gridSize: 8;
|
|
3217
3210
|
readonly gutter: 24;
|
|
3218
|
-
readonly margin: 32;
|
|
3219
3211
|
};
|
|
3220
3212
|
readonly spacing: {
|
|
3221
3213
|
readonly '2xl': 28;
|
|
@@ -3234,8 +3226,8 @@ export declare const themes: {
|
|
|
3234
3226
|
readonly minWidth: 992;
|
|
3235
3227
|
};
|
|
3236
3228
|
readonly container: {
|
|
3229
|
+
readonly margin: 32;
|
|
3237
3230
|
readonly paddingBottom: 48;
|
|
3238
|
-
readonly paddingHorizontal: 32;
|
|
3239
3231
|
readonly paddingTop: 32;
|
|
3240
3232
|
readonly width: 1096;
|
|
3241
3233
|
};
|
|
@@ -3244,7 +3236,6 @@ export declare const themes: {
|
|
|
3244
3236
|
readonly columnWidth: 64;
|
|
3245
3237
|
readonly gridSize: 8;
|
|
3246
3238
|
readonly gutter: 24;
|
|
3247
|
-
readonly margin: 32;
|
|
3248
3239
|
};
|
|
3249
3240
|
readonly spacing: {
|
|
3250
3241
|
readonly '2xl': 40;
|
|
@@ -4526,8 +4517,8 @@ export declare const themes: {
|
|
|
4526
4517
|
readonly minWidth: 320;
|
|
4527
4518
|
};
|
|
4528
4519
|
readonly container: {
|
|
4520
|
+
readonly margin: 16;
|
|
4529
4521
|
readonly paddingBottom: 32;
|
|
4530
|
-
readonly paddingHorizontal: 16;
|
|
4531
4522
|
readonly paddingTop: 24;
|
|
4532
4523
|
readonly width: 360;
|
|
4533
4524
|
};
|
|
@@ -4536,7 +4527,6 @@ export declare const themes: {
|
|
|
4536
4527
|
readonly columnWidth: 64;
|
|
4537
4528
|
readonly gridSize: 8;
|
|
4538
4529
|
readonly gutter: 16;
|
|
4539
|
-
readonly margin: 16;
|
|
4540
4530
|
};
|
|
4541
4531
|
readonly spacing: {
|
|
4542
4532
|
readonly '2xl': 28;
|
|
@@ -4555,8 +4545,8 @@ export declare const themes: {
|
|
|
4555
4545
|
readonly minWidth: 740;
|
|
4556
4546
|
};
|
|
4557
4547
|
readonly container: {
|
|
4548
|
+
readonly margin: 32;
|
|
4558
4549
|
readonly paddingBottom: 32;
|
|
4559
|
-
readonly paddingHorizontal: 32;
|
|
4560
4550
|
readonly paddingTop: 24;
|
|
4561
4551
|
readonly width: 744;
|
|
4562
4552
|
};
|
|
@@ -4565,7 +4555,6 @@ export declare const themes: {
|
|
|
4565
4555
|
readonly columnWidth: 64;
|
|
4566
4556
|
readonly gridSize: 8;
|
|
4567
4557
|
readonly gutter: 24;
|
|
4568
|
-
readonly margin: 32;
|
|
4569
4558
|
};
|
|
4570
4559
|
readonly spacing: {
|
|
4571
4560
|
readonly '2xl': 28;
|
|
@@ -4584,8 +4573,8 @@ export declare const themes: {
|
|
|
4584
4573
|
readonly minWidth: 992;
|
|
4585
4574
|
};
|
|
4586
4575
|
readonly container: {
|
|
4576
|
+
readonly margin: 32;
|
|
4587
4577
|
readonly paddingBottom: 48;
|
|
4588
|
-
readonly paddingHorizontal: 32;
|
|
4589
4578
|
readonly paddingTop: 32;
|
|
4590
4579
|
readonly width: 1096;
|
|
4591
4580
|
};
|
|
@@ -4594,7 +4583,6 @@ export declare const themes: {
|
|
|
4594
4583
|
readonly columnWidth: 64;
|
|
4595
4584
|
readonly gridSize: 8;
|
|
4596
4585
|
readonly gutter: 24;
|
|
4597
|
-
readonly margin: 32;
|
|
4598
4586
|
};
|
|
4599
4587
|
readonly spacing: {
|
|
4600
4588
|
readonly '2xl': 40;
|
|
@@ -4,7 +4,10 @@
|
|
|
4
4
|
declare const _default: {
|
|
5
5
|
readonly backgroundColor: "#3f3f3f";
|
|
6
6
|
readonly borderRadius: 8;
|
|
7
|
-
readonly gapHorizontal:
|
|
7
|
+
readonly gapHorizontal: 16;
|
|
8
8
|
readonly padding: 14;
|
|
9
|
+
readonly stack: {
|
|
10
|
+
readonly gapHorizontal: 8;
|
|
11
|
+
};
|
|
9
12
|
};
|
|
10
13
|
export default _default;
|
|
@@ -4,7 +4,10 @@
|
|
|
4
4
|
declare const _default: {
|
|
5
5
|
readonly backgroundColor: "#101010";
|
|
6
6
|
readonly borderRadius: 8;
|
|
7
|
-
readonly gapHorizontal:
|
|
7
|
+
readonly gapHorizontal: 16;
|
|
8
8
|
readonly padding: 14;
|
|
9
|
+
readonly stack: {
|
|
10
|
+
readonly gapHorizontal: 8;
|
|
11
|
+
};
|
|
9
12
|
};
|
|
10
13
|
export default _default;
|
package/build/tokens/layout.d.ts
CHANGED
|
@@ -7,8 +7,8 @@ export declare const mobile: {
|
|
|
7
7
|
readonly minWidth: 320;
|
|
8
8
|
};
|
|
9
9
|
readonly container: {
|
|
10
|
+
readonly margin: 16;
|
|
10
11
|
readonly paddingBottom: 32;
|
|
11
|
-
readonly paddingHorizontal: 16;
|
|
12
12
|
readonly paddingTop: 24;
|
|
13
13
|
readonly width: 360;
|
|
14
14
|
};
|
|
@@ -17,7 +17,6 @@ export declare const mobile: {
|
|
|
17
17
|
readonly columnWidth: 64;
|
|
18
18
|
readonly gridSize: 8;
|
|
19
19
|
readonly gutter: 16;
|
|
20
|
-
readonly margin: 16;
|
|
21
20
|
};
|
|
22
21
|
readonly spacing: {
|
|
23
22
|
readonly '2xl': 28;
|
|
@@ -36,8 +35,8 @@ export declare const tablet: {
|
|
|
36
35
|
readonly minWidth: 740;
|
|
37
36
|
};
|
|
38
37
|
readonly container: {
|
|
38
|
+
readonly margin: 32;
|
|
39
39
|
readonly paddingBottom: 32;
|
|
40
|
-
readonly paddingHorizontal: 32;
|
|
41
40
|
readonly paddingTop: 24;
|
|
42
41
|
readonly width: 744;
|
|
43
42
|
};
|
|
@@ -46,7 +45,6 @@ export declare const tablet: {
|
|
|
46
45
|
readonly columnWidth: 64;
|
|
47
46
|
readonly gridSize: 8;
|
|
48
47
|
readonly gutter: 24;
|
|
49
|
-
readonly margin: 32;
|
|
50
48
|
};
|
|
51
49
|
readonly spacing: {
|
|
52
50
|
readonly '2xl': 28;
|
|
@@ -65,8 +63,8 @@ export declare const desktop: {
|
|
|
65
63
|
readonly minWidth: 992;
|
|
66
64
|
};
|
|
67
65
|
readonly container: {
|
|
66
|
+
readonly margin: 32;
|
|
68
67
|
readonly paddingBottom: 48;
|
|
69
|
-
readonly paddingHorizontal: 32;
|
|
70
68
|
readonly paddingTop: 32;
|
|
71
69
|
readonly width: 1096;
|
|
72
70
|
};
|
|
@@ -75,7 +73,6 @@ export declare const desktop: {
|
|
|
75
73
|
readonly columnWidth: 64;
|
|
76
74
|
readonly gridSize: 8;
|
|
77
75
|
readonly gutter: 24;
|
|
78
|
-
readonly margin: 32;
|
|
79
76
|
};
|
|
80
77
|
readonly spacing: {
|
|
81
78
|
readonly '2xl': 40;
|
|
@@ -95,8 +92,8 @@ declare const layout: {
|
|
|
95
92
|
readonly minWidth: 320;
|
|
96
93
|
};
|
|
97
94
|
readonly container: {
|
|
95
|
+
readonly margin: 16;
|
|
98
96
|
readonly paddingBottom: 32;
|
|
99
|
-
readonly paddingHorizontal: 16;
|
|
100
97
|
readonly paddingTop: 24;
|
|
101
98
|
readonly width: 360;
|
|
102
99
|
};
|
|
@@ -105,7 +102,6 @@ declare const layout: {
|
|
|
105
102
|
readonly columnWidth: 64;
|
|
106
103
|
readonly gridSize: 8;
|
|
107
104
|
readonly gutter: 16;
|
|
108
|
-
readonly margin: 16;
|
|
109
105
|
};
|
|
110
106
|
readonly spacing: {
|
|
111
107
|
readonly '2xl': 28;
|
|
@@ -124,8 +120,8 @@ declare const layout: {
|
|
|
124
120
|
readonly minWidth: 740;
|
|
125
121
|
};
|
|
126
122
|
readonly container: {
|
|
123
|
+
readonly margin: 32;
|
|
127
124
|
readonly paddingBottom: 32;
|
|
128
|
-
readonly paddingHorizontal: 32;
|
|
129
125
|
readonly paddingTop: 24;
|
|
130
126
|
readonly width: 744;
|
|
131
127
|
};
|
|
@@ -134,7 +130,6 @@ declare const layout: {
|
|
|
134
130
|
readonly columnWidth: 64;
|
|
135
131
|
readonly gridSize: 8;
|
|
136
132
|
readonly gutter: 24;
|
|
137
|
-
readonly margin: 32;
|
|
138
133
|
};
|
|
139
134
|
readonly spacing: {
|
|
140
135
|
readonly '2xl': 28;
|
|
@@ -153,8 +148,8 @@ declare const layout: {
|
|
|
153
148
|
readonly minWidth: 992;
|
|
154
149
|
};
|
|
155
150
|
readonly container: {
|
|
151
|
+
readonly margin: 32;
|
|
156
152
|
readonly paddingBottom: 48;
|
|
157
|
-
readonly paddingHorizontal: 32;
|
|
158
153
|
readonly paddingTop: 32;
|
|
159
154
|
readonly width: 1096;
|
|
160
155
|
};
|
|
@@ -163,7 +158,6 @@ declare const layout: {
|
|
|
163
158
|
readonly columnWidth: 64;
|
|
164
159
|
readonly gridSize: 8;
|
|
165
160
|
readonly gutter: 24;
|
|
166
|
-
readonly margin: 32;
|
|
167
161
|
};
|
|
168
162
|
readonly spacing: {
|
|
169
163
|
readonly '2xl': 40;
|
package/build/tokens/layout.js
CHANGED
|
@@ -7,8 +7,8 @@ export const mobile = {
|
|
|
7
7
|
minWidth: 320,
|
|
8
8
|
},
|
|
9
9
|
container: {
|
|
10
|
+
margin: 16,
|
|
10
11
|
paddingBottom: 32,
|
|
11
|
-
paddingHorizontal: 16,
|
|
12
12
|
paddingTop: 24,
|
|
13
13
|
width: 360,
|
|
14
14
|
},
|
|
@@ -17,7 +17,6 @@ export const mobile = {
|
|
|
17
17
|
columnWidth: 64,
|
|
18
18
|
gridSize: 8,
|
|
19
19
|
gutter: 16,
|
|
20
|
-
margin: 16,
|
|
21
20
|
},
|
|
22
21
|
spacing: {
|
|
23
22
|
'2xl': 28,
|
|
@@ -36,8 +35,8 @@ export const tablet = {
|
|
|
36
35
|
minWidth: 740,
|
|
37
36
|
},
|
|
38
37
|
container: {
|
|
38
|
+
margin: 32,
|
|
39
39
|
paddingBottom: 32,
|
|
40
|
-
paddingHorizontal: 32,
|
|
41
40
|
paddingTop: 24,
|
|
42
41
|
width: 744,
|
|
43
42
|
},
|
|
@@ -46,7 +45,6 @@ export const tablet = {
|
|
|
46
45
|
columnWidth: 64,
|
|
47
46
|
gridSize: 8,
|
|
48
47
|
gutter: 24,
|
|
49
|
-
margin: 32,
|
|
50
48
|
},
|
|
51
49
|
spacing: {
|
|
52
50
|
'2xl': 28,
|
|
@@ -65,8 +63,8 @@ export const desktop = {
|
|
|
65
63
|
minWidth: 992,
|
|
66
64
|
},
|
|
67
65
|
container: {
|
|
66
|
+
margin: 32,
|
|
68
67
|
paddingBottom: 48,
|
|
69
|
-
paddingHorizontal: 32,
|
|
70
68
|
paddingTop: 32,
|
|
71
69
|
width: 1096,
|
|
72
70
|
},
|
|
@@ -75,7 +73,6 @@ export const desktop = {
|
|
|
75
73
|
columnWidth: 64,
|
|
76
74
|
gridSize: 8,
|
|
77
75
|
gutter: 24,
|
|
78
|
-
margin: 32,
|
|
79
76
|
},
|
|
80
77
|
spacing: {
|
|
81
78
|
'2xl': 40,
|
|
@@ -1,23 +1,6 @@
|
|
|
1
|
+
import { resolveThemeValue } from './themeValueHelpers';
|
|
1
2
|
export default function getFlattenedColorValue(value, colors) {
|
|
2
3
|
if (!value)
|
|
3
4
|
return undefined;
|
|
4
|
-
|
|
5
|
-
return colors?.[value];
|
|
6
|
-
}
|
|
7
|
-
// Extract trailing digits as shade
|
|
8
|
-
const shadeMatch = value.match(/\d+$/);
|
|
9
|
-
if (!shadeMatch)
|
|
10
|
-
return value;
|
|
11
|
-
const shade = shadeMatch[0];
|
|
12
|
-
const base = value.slice(0, -shade.length);
|
|
13
|
-
if (shade && typeof base !== 'string')
|
|
14
|
-
return value;
|
|
15
|
-
const colorEntry = colors?.[base];
|
|
16
|
-
if (typeof colorEntry === 'object') {
|
|
17
|
-
return (colorEntry[shade] ?? value);
|
|
18
|
-
}
|
|
19
|
-
else if (typeof colorEntry === 'string') {
|
|
20
|
-
return colorEntry;
|
|
21
|
-
}
|
|
22
|
-
return value;
|
|
5
|
+
return resolveThemeValue(value, colors);
|
|
23
6
|
}
|
package/build/utils/index.d.ts
CHANGED
package/build/utils/index.js
CHANGED
|
@@ -15,7 +15,3 @@ export declare const themeStyleMapping: {
|
|
|
15
15
|
* Set of all possible ViewStyle property names
|
|
16
16
|
*/
|
|
17
17
|
export declare const viewStyleProps: Set<string>;
|
|
18
|
-
/**
|
|
19
|
-
* Helper function to resolve a theme value
|
|
20
|
-
*/
|
|
21
|
-
export declare const resolveThemeValue: (value: any, themeMapping: any) => any;
|
|
@@ -218,53 +218,3 @@ export const viewStyleProps = new Set([
|
|
|
218
218
|
// Z-index
|
|
219
219
|
'zIndex',
|
|
220
220
|
]);
|
|
221
|
-
/**
|
|
222
|
-
* Helper function to convert camelCase back to nested object path
|
|
223
|
-
* e.g., feedbackDangerSurfaceDefault -> ['feedback', 'danger', 'surface', 'default']
|
|
224
|
-
*/
|
|
225
|
-
const camelCaseToPath = (camelCased) => {
|
|
226
|
-
// Split on uppercase letters but keep them
|
|
227
|
-
const parts = camelCased.split(/(?=[A-Z])/).map(part => part.toLowerCase());
|
|
228
|
-
return parts;
|
|
229
|
-
};
|
|
230
|
-
/**
|
|
231
|
-
* Helper function to get nested value from object using path array
|
|
232
|
-
*/
|
|
233
|
-
const getNestedValue = (obj, path) => {
|
|
234
|
-
return path.reduce((current, key) => {
|
|
235
|
-
return current && typeof current === 'object' ? current[key] : undefined;
|
|
236
|
-
}, obj);
|
|
237
|
-
};
|
|
238
|
-
/**
|
|
239
|
-
* Helper function to resolve a theme value
|
|
240
|
-
*/
|
|
241
|
-
export const resolveThemeValue = (value, themeMapping) => {
|
|
242
|
-
if (typeof value !== 'string' || !themeMapping || typeof themeMapping !== 'object') {
|
|
243
|
-
return value;
|
|
244
|
-
}
|
|
245
|
-
// First, try direct lookup for simple values
|
|
246
|
-
if (themeMapping[value] !== undefined) {
|
|
247
|
-
return themeMapping[value];
|
|
248
|
-
}
|
|
249
|
-
// Try camelCase to nested path conversion (e.g., feedbackDangerSurfaceDefault)
|
|
250
|
-
if (/^[a-z][a-zA-Z]*$/.test(value)) {
|
|
251
|
-
// Only camelCase strings without numbers
|
|
252
|
-
const path = camelCaseToPath(value);
|
|
253
|
-
const nestedValue = getNestedValue(themeMapping, path);
|
|
254
|
-
if (nestedValue !== undefined) {
|
|
255
|
-
return nestedValue;
|
|
256
|
-
}
|
|
257
|
-
}
|
|
258
|
-
// Then, try the existing numeric suffix pattern (e.g., broadbandBlue100)
|
|
259
|
-
const shadeMatch = value.match(/\d+$/);
|
|
260
|
-
if (shadeMatch) {
|
|
261
|
-
const shade = shadeMatch[0];
|
|
262
|
-
const base = value.slice(0, -shade.length);
|
|
263
|
-
const nested = themeMapping[base];
|
|
264
|
-
if (nested && typeof nested === 'object') {
|
|
265
|
-
return nested[shade] ?? value;
|
|
266
|
-
}
|
|
267
|
-
}
|
|
268
|
-
// If none of the approaches work, return the original value
|
|
269
|
-
return value;
|
|
270
|
-
};
|