@utilitywarehouse/hearth-react-native 0.2.0 → 0.3.1
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 +3 -1
- package/CHANGELOG.md +34 -0
- package/build/components/Alert/AlertCloseButton.js +25 -3
- package/build/components/Alert/AlertIcon.js +17 -1
- package/build/components/Alert/AlertIconButton.js +27 -1
- package/build/components/Alert/AlertLink.js +47 -1
- package/build/components/Alert/AlertText.d.ts +1 -1
- package/build/components/Alert/AlertText.js +26 -2
- package/build/components/Alert/AlertTitle.d.ts +1 -1
- package/build/components/Alert/AlertTitle.js +26 -2
- package/build/components/Badge/Badge.js +101 -14
- package/build/components/Badge/Badge.props.d.ts +2 -2
- package/build/components/Badge/BadgeIcon.js +27 -29
- package/build/components/Badge/BadgeText.js +29 -31
- package/build/components/Button/Button.d.ts +2 -2
- package/build/components/Button/ButtonGroupRoot.d.ts +3 -2
- package/build/components/Button/ButtonGroupRoot.js +9 -0
- package/build/components/Button/ButtonRoot.js +1 -0
- package/build/components/Card/Card.props.d.ts +2 -2
- package/build/components/Checkbox/Checkbox.d.ts +2 -2
- package/build/components/Checkbox/Checkbox.js +11 -10
- package/build/components/Checkbox/Checkbox.props.d.ts +3 -1
- package/build/components/Checkbox/CheckboxIcon.js +1 -1
- package/build/components/Checkbox/CheckboxImage.d.ts +6 -0
- package/build/components/Checkbox/CheckboxImage.js +5 -0
- package/build/components/Checkbox/CheckboxTileRoot.js +1 -1
- package/build/components/Checkbox/index.d.ts +3 -2
- package/build/components/Checkbox/index.js +2 -1
- package/build/components/CurrencyInput/CurrencyInput.d.ts +6 -0
- package/build/components/CurrencyInput/CurrencyInput.js +47 -0
- package/build/components/CurrencyInput/CurrencyInput.props.d.ts +14 -0
- package/build/components/CurrencyInput/CurrencyInput.props.js +1 -0
- package/build/components/CurrencyInput/index.d.ts +1 -0
- package/build/components/CurrencyInput/index.js +1 -0
- package/build/components/DescriptionList/DescriptionList.context.d.ts +6 -0
- package/build/components/DescriptionList/DescriptionList.context.js +9 -0
- package/build/components/DescriptionList/DescriptionList.d.ts +6 -0
- package/build/components/DescriptionList/DescriptionList.js +25 -0
- package/build/components/DescriptionList/DescriptionList.props.d.ts +18 -0
- package/build/components/DescriptionList/DescriptionList.props.js +1 -0
- package/build/components/DescriptionList/DescriptionListItem.d.ts +6 -0
- package/build/components/DescriptionList/DescriptionListItem.js +49 -0
- package/build/components/DescriptionList/DescriptionListItem.props.d.ts +17 -0
- package/build/components/DescriptionList/DescriptionListItem.props.js +1 -0
- package/build/components/DescriptionList/index.d.ts +4 -0
- package/build/components/DescriptionList/index.js +2 -0
- package/build/components/Divider/Divider.js +46 -0
- package/build/components/Divider/Divider.props.d.ts +2 -2
- package/build/components/Flex/Flex.props.d.ts +3 -2
- package/build/components/Grid/Grid.props.d.ts +2 -2
- package/build/components/IconContainer/IconContainer.d.ts +5 -0
- package/build/components/IconContainer/IconContainer.js +161 -0
- package/build/components/IconContainer/IconContainer.props.d.ts +15 -0
- package/build/components/IconContainer/IconContainer.props.js +1 -0
- package/build/components/IconContainer/index.d.ts +2 -0
- package/build/components/IconContainer/index.js +1 -0
- package/build/components/Icons/CircleIcon.js +3 -3
- package/build/components/Input/Input.js +2 -34
- package/build/components/Input/Input.props.d.ts +1 -17
- package/build/components/Input/InputField.js +0 -7
- package/build/components/Link/Link.d.ts +1 -1
- package/build/components/Link/Link.js +4 -4
- package/build/components/Link/Link.props.d.ts +3 -0
- package/build/components/Modal/Modal.js +17 -1
- package/build/components/Radio/Radio.d.ts +2 -2
- package/build/components/Radio/Radio.js +9 -8
- package/build/components/Radio/Radio.props.d.ts +3 -1
- package/build/components/Radio/RadioImage.d.ts +6 -0
- package/build/components/Radio/RadioImage.js +5 -0
- package/build/components/Radio/RadioTileRoot.js +1 -1
- package/build/components/Radio/index.d.ts +3 -2
- package/build/components/Radio/index.js +2 -1
- package/build/components/SectionHeader/SectionHeader.js +1 -0
- package/build/components/Select/SelectOption.js +1 -7
- package/build/components/Tabs/Tab.d.ts +18 -0
- package/build/components/Tabs/Tab.js +74 -0
- package/build/components/Tabs/Tab.props.d.ts +14 -0
- package/build/components/Tabs/Tab.props.js +1 -0
- package/build/components/Tabs/TabPanel.d.ts +3 -0
- package/build/components/Tabs/TabPanel.js +34 -0
- package/build/components/Tabs/TabPanel.props.d.ts +8 -0
- package/build/components/Tabs/TabPanel.props.js +1 -0
- package/build/components/Tabs/Tabs.context.d.ts +23 -0
- package/build/components/Tabs/Tabs.context.js +8 -0
- package/build/components/Tabs/Tabs.d.ts +6 -0
- package/build/components/Tabs/Tabs.js +114 -0
- package/build/components/Tabs/Tabs.props.d.ts +19 -0
- package/build/components/Tabs/Tabs.props.js +1 -0
- package/build/components/Tabs/TabsList.d.ts +6 -0
- package/build/components/Tabs/TabsList.js +112 -0
- package/build/components/Tabs/TabsList.props.d.ts +6 -0
- package/build/components/Tabs/TabsList.props.js +1 -0
- package/build/components/Tabs/index.d.ts +8 -0
- package/build/components/Tabs/index.js +4 -0
- package/build/components/UnstyledIconButton/UnstyledIconButton.d.ts +1 -1
- package/build/components/UnstyledIconButton/UnstyledIconButton.js +4 -4
- package/build/components/UnstyledIconButton/UnstyledIconButton.props.d.ts +2 -1
- package/build/components/index.d.ts +4 -0
- package/build/components/index.js +4 -0
- package/build/core/themes.d.ts +428 -160
- package/build/core/themes.js +57 -1
- package/build/tokens/color.d.ts +88 -80
- package/build/tokens/color.js +44 -40
- package/build/tokens/components/dark/alert.d.ts +13 -0
- package/build/tokens/components/dark/alert.js +13 -0
- package/build/tokens/components/dark/button.d.ts +1 -0
- package/build/tokens/components/dark/button.js +1 -0
- package/build/tokens/components/dark/checkbox.d.ts +4 -1
- package/build/tokens/components/dark/checkbox.js +4 -1
- package/build/tokens/components/dark/icon-button.d.ts +10 -3
- package/build/tokens/components/dark/icon-button.js +10 -3
- package/build/tokens/components/dark/index.d.ts +1 -0
- package/build/tokens/components/dark/index.js +1 -0
- package/build/tokens/components/dark/link.d.ts +5 -0
- package/build/tokens/components/dark/link.js +5 -0
- package/build/tokens/components/dark/progress-bar.d.ts +41 -0
- package/build/tokens/components/dark/progress-bar.js +40 -0
- package/build/tokens/components/dark/radio.d.ts +1 -1
- package/build/tokens/components/dark/radio.js +1 -1
- package/build/tokens/components/dark/tabs.d.ts +2 -0
- package/build/tokens/components/dark/tabs.js +2 -0
- package/build/tokens/components/light/alert.d.ts +13 -0
- package/build/tokens/components/light/alert.js +13 -0
- package/build/tokens/components/light/badge.d.ts +1 -1
- package/build/tokens/components/light/badge.js +1 -1
- package/build/tokens/components/light/button.d.ts +1 -0
- package/build/tokens/components/light/button.js +1 -0
- package/build/tokens/components/light/checkbox.d.ts +6 -3
- package/build/tokens/components/light/checkbox.js +6 -3
- package/build/tokens/components/light/icon-button.d.ts +8 -1
- package/build/tokens/components/light/icon-button.js +8 -1
- package/build/tokens/components/light/index.d.ts +1 -0
- package/build/tokens/components/light/index.js +1 -0
- package/build/tokens/components/light/link.d.ts +5 -0
- package/build/tokens/components/light/link.js +5 -0
- package/build/tokens/components/light/progress-bar.d.ts +41 -0
- package/build/tokens/components/light/progress-bar.js +40 -0
- package/build/tokens/components/light/radio.d.ts +3 -3
- package/build/tokens/components/light/radio.js +3 -3
- package/build/tokens/components/light/tabs.d.ts +2 -0
- package/build/tokens/components/light/tabs.js +2 -0
- package/build/tokens/index.d.ts +1 -0
- package/build/tokens/index.js +1 -0
- package/build/tokens/layout.d.ts +48 -30
- package/build/tokens/layout.js +24 -15
- package/build/tokens/motion.d.ts +23 -0
- package/build/tokens/motion.js +22 -0
- package/build/tokens/primitive.d.ts +19 -0
- package/build/tokens/primitive.js +19 -0
- package/build/tokens/semantic-dark.d.ts +26 -24
- package/build/tokens/semantic-dark.js +26 -24
- package/build/tokens/semantic-light.d.ts +18 -16
- package/build/tokens/semantic-light.js +18 -16
- package/build/types/values.d.ts +2 -1
- package/build/utils/formatThousands.d.ts +2 -0
- package/build/utils/formatThousands.js +16 -0
- package/build/utils/index.d.ts +1 -0
- package/build/utils/index.js +1 -0
- package/docs/assets/bank-logo.png +0 -0
- package/docs/assets/bank-logo1.png +0 -0
- package/docs/components/AllComponents.web.tsx +97 -8
- package/docs/components/NextPrevPage.tsx +11 -3
- package/docs/components/UsageWrap.tsx +2 -2
- package/docs/components/index.ts +6 -7
- package/docs/heplers/addReactNativePrefix.ts +8 -0
- package/docs/heplers/index.ts +1 -0
- package/docs/introduction.mdx +3 -3
- package/docs/theme-tokens.mdx +42 -0
- package/package.json +13 -13
- package/src/components/Alert/AlertCloseButton.tsx +33 -5
- package/src/components/Alert/AlertIcon.tsx +17 -1
- package/src/components/Alert/AlertIconButton.tsx +37 -4
- package/src/components/Alert/AlertLink.tsx +52 -1
- package/src/components/Alert/AlertText.tsx +28 -3
- package/src/components/Alert/AlertTitle.tsx +28 -3
- package/src/components/Badge/Badge.docs.mdx +7 -7
- package/src/components/Badge/Badge.props.ts +3 -2
- package/src/components/Badge/Badge.stories.tsx +81 -92
- package/src/components/Badge/Badge.tsx +101 -14
- package/src/components/Badge/BadgeIcon.tsx +27 -29
- package/src/components/Badge/BadgeText.tsx +29 -31
- package/src/components/Button/ButtonGroupRoot.tsx +12 -2
- package/src/components/Button/ButtonRoot.tsx +1 -0
- package/src/components/Card/Card.docs.mdx +1 -1
- package/src/components/Card/Card.props.ts +2 -2
- package/src/components/Checkbox/Checkbox.docs.mdx +45 -7
- package/src/components/Checkbox/Checkbox.props.ts +3 -1
- package/src/components/Checkbox/Checkbox.stories.tsx +37 -1
- package/src/components/Checkbox/Checkbox.tsx +12 -9
- package/src/components/Checkbox/CheckboxIcon.tsx +1 -1
- package/src/components/Checkbox/CheckboxImage.tsx +9 -0
- package/src/components/Checkbox/CheckboxTileRoot.tsx +1 -1
- package/src/components/Checkbox/index.ts +3 -2
- package/src/components/CurrencyInput/CurrencyInput.docs.mdx +120 -0
- package/src/components/CurrencyInput/CurrencyInput.props.ts +19 -0
- package/src/components/CurrencyInput/CurrencyInput.stories.tsx +116 -0
- package/src/components/CurrencyInput/CurrencyInput.tsx +91 -0
- package/src/components/CurrencyInput/index.ts +1 -0
- package/src/components/DescriptionList/DescriptionList.context.ts +18 -0
- package/src/components/DescriptionList/DescriptionList.docs.mdx +98 -0
- package/src/components/DescriptionList/DescriptionList.props.ts +20 -0
- package/src/components/DescriptionList/DescriptionList.stories.tsx +154 -0
- package/src/components/DescriptionList/DescriptionList.tsx +64 -0
- package/src/components/DescriptionList/DescriptionListItem.props.ts +19 -0
- package/src/components/DescriptionList/DescriptionListItem.tsx +101 -0
- package/src/components/DescriptionList/index.ts +4 -0
- package/src/components/Divider/Divider.props.ts +2 -2
- package/src/components/Divider/Divider.stories.tsx +3 -3
- package/src/components/Divider/Divider.tsx +46 -0
- package/src/components/Flex/Flex.docs.mdx +4 -4
- package/src/components/Flex/Flex.props.ts +3 -2
- package/src/components/Flex/Flex.stories.tsx +1 -1
- package/src/components/Grid/Grid.docs.mdx +12 -12
- package/src/components/Grid/Grid.props.ts +2 -2
- package/src/components/Grid/Grid.stories.tsx +2 -2
- package/src/components/IconContainer/IconContainer.docs.mdx +90 -0
- package/src/components/IconContainer/IconContainer.props.ts +17 -0
- package/src/components/IconContainer/IconContainer.stories.tsx +130 -0
- package/src/components/IconContainer/IconContainer.tsx +180 -0
- package/src/components/IconContainer/index.tsx +2 -0
- package/src/components/Icons/CircleIcon.tsx +9 -11
- package/src/components/Input/Input.docs.mdx +3 -3
- package/src/components/Input/Input.props.ts +0 -20
- package/src/components/Input/Input.stories.tsx +0 -6
- package/src/components/Input/Input.tsx +2 -49
- package/src/components/Input/InputField.tsx +0 -7
- package/src/components/Link/Link.props.ts +3 -0
- package/src/components/Link/Link.tsx +12 -6
- package/src/components/List/List.docs.mdx +24 -23
- package/src/components/Modal/Modal.tsx +18 -0
- package/src/components/Radio/Radio.docs.mdx +96 -124
- package/src/components/Radio/Radio.props.ts +3 -1
- package/src/components/Radio/Radio.stories.tsx +47 -0
- package/src/components/Radio/Radio.tsx +10 -7
- package/src/components/Radio/RadioImage.tsx +9 -0
- package/src/components/Radio/RadioTileRoot.tsx +1 -1
- package/src/components/Radio/index.ts +3 -2
- package/src/components/SectionHeader/SectionHeader.tsx +1 -0
- package/src/components/Select/Select.docs.mdx +6 -6
- package/src/components/Select/Select.stories.tsx +7 -7
- package/src/components/Select/SelectOption.tsx +4 -10
- package/src/components/Tabs/Tab.props.ts +16 -0
- package/src/components/Tabs/Tab.tsx +113 -0
- package/src/components/Tabs/TabPanel.props.ts +10 -0
- package/src/components/Tabs/TabPanel.tsx +46 -0
- package/src/components/Tabs/Tabs.context.ts +26 -0
- package/src/components/Tabs/Tabs.docs.mdx +214 -0
- package/src/components/Tabs/Tabs.props.ts +21 -0
- package/src/components/Tabs/Tabs.stories.tsx +270 -0
- package/src/components/Tabs/Tabs.tsx +139 -0
- package/src/components/Tabs/TabsList.props.ts +8 -0
- package/src/components/Tabs/TabsList.tsx +194 -0
- package/src/components/Tabs/index.ts +8 -0
- package/src/components/UnstyledIconButton/UnstyledIconButton.props.ts +2 -1
- package/src/components/UnstyledIconButton/UnstyledIconButton.tsx +9 -3
- package/src/components/index.ts +4 -0
- package/src/core/themes.ts +57 -1
- package/src/tokens/color.ts +44 -40
- package/src/tokens/components/dark/alert.ts +13 -0
- package/src/tokens/components/dark/button.ts +1 -0
- package/src/tokens/components/dark/checkbox.ts +4 -1
- package/src/tokens/components/dark/icon-button.ts +10 -3
- package/src/tokens/components/dark/index.ts +1 -0
- package/src/tokens/components/dark/link.ts +5 -0
- package/src/tokens/components/dark/progress-bar.ts +41 -0
- package/src/tokens/components/dark/radio.ts +1 -1
- package/src/tokens/components/dark/tabs.ts +2 -0
- package/src/tokens/components/light/alert.ts +13 -0
- package/src/tokens/components/light/badge.ts +1 -1
- package/src/tokens/components/light/button.ts +1 -0
- package/src/tokens/components/light/checkbox.ts +6 -3
- package/src/tokens/components/light/icon-button.ts +8 -1
- package/src/tokens/components/light/index.ts +1 -0
- package/src/tokens/components/light/link.ts +5 -0
- package/src/tokens/components/light/progress-bar.ts +41 -0
- package/src/tokens/components/light/radio.ts +3 -3
- package/src/tokens/components/light/tabs.ts +2 -0
- package/src/tokens/index.ts +1 -0
- package/src/tokens/layout.ts +24 -15
- package/src/tokens/motion.ts +23 -0
- package/src/tokens/primitive.ts +19 -0
- package/src/tokens/semantic-dark.ts +26 -24
- package/src/tokens/semantic-light.ts +18 -16
- package/src/types/values.ts +3 -1
- package/src/utils/formatThousands.ts +14 -0
- package/src/utils/index.ts +1 -0
- package/docs/assets/react-native-pig.png +0 -0
- package/docs/components/AdvancedRadioExample.tsx +0 -126
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
declare const _default: {
|
|
5
5
|
readonly background: {
|
|
6
|
-
readonly brand: "#
|
|
6
|
+
readonly brand: "#7a42c8";
|
|
7
7
|
readonly primary: "#191917";
|
|
8
8
|
readonly secondary: "#232323";
|
|
9
9
|
};
|
|
@@ -15,56 +15,56 @@ declare const _default: {
|
|
|
15
15
|
readonly danger: {
|
|
16
16
|
readonly border: "#ff7964";
|
|
17
17
|
readonly foreground: {
|
|
18
|
-
readonly default: "#
|
|
18
|
+
readonly default: "#101010";
|
|
19
19
|
readonly subtle: "#ff7964";
|
|
20
20
|
};
|
|
21
21
|
readonly surface: {
|
|
22
|
-
readonly default: "#
|
|
23
|
-
readonly subtle: "#
|
|
22
|
+
readonly default: "#ff634a";
|
|
23
|
+
readonly subtle: "#ffa89d";
|
|
24
24
|
};
|
|
25
25
|
};
|
|
26
26
|
readonly functional: {
|
|
27
27
|
readonly border: "#b2afae";
|
|
28
28
|
readonly foreground: {
|
|
29
|
-
readonly default: "#
|
|
29
|
+
readonly default: "#101010";
|
|
30
30
|
readonly subtle: "#b2afae";
|
|
31
31
|
};
|
|
32
32
|
readonly surface: {
|
|
33
|
-
readonly default: "#
|
|
34
|
-
readonly subtle: "#
|
|
33
|
+
readonly default: "#919191";
|
|
34
|
+
readonly subtle: "#d3d3d3";
|
|
35
35
|
};
|
|
36
36
|
};
|
|
37
37
|
readonly info: {
|
|
38
38
|
readonly border: "#6bb0ff";
|
|
39
39
|
readonly foreground: {
|
|
40
|
-
readonly default: "#
|
|
40
|
+
readonly default: "#101010";
|
|
41
41
|
readonly subtle: "#6bb0ff";
|
|
42
42
|
};
|
|
43
43
|
readonly surface: {
|
|
44
|
-
readonly default: "#
|
|
45
|
-
readonly subtle: "#
|
|
44
|
+
readonly default: "#6bb0ff";
|
|
45
|
+
readonly subtle: "#bcddff";
|
|
46
46
|
};
|
|
47
47
|
};
|
|
48
48
|
readonly positive: {
|
|
49
49
|
readonly border: "#58ca93";
|
|
50
50
|
readonly foreground: {
|
|
51
|
-
readonly default: "#
|
|
51
|
+
readonly default: "#101010";
|
|
52
52
|
readonly subtle: "#58ca93";
|
|
53
53
|
};
|
|
54
54
|
readonly surface: {
|
|
55
|
-
readonly default: "#
|
|
56
|
-
readonly subtle: "#
|
|
55
|
+
readonly default: "#36bf7d";
|
|
56
|
+
readonly subtle: "#a2e2c3";
|
|
57
57
|
};
|
|
58
58
|
};
|
|
59
59
|
readonly warning: {
|
|
60
60
|
readonly border: "#ff9639";
|
|
61
61
|
readonly foreground: {
|
|
62
|
-
readonly default: "#
|
|
62
|
+
readonly default: "#101010";
|
|
63
63
|
readonly subtle: "#ff9639";
|
|
64
64
|
};
|
|
65
65
|
readonly surface: {
|
|
66
|
-
readonly default: "#
|
|
67
|
-
readonly subtle: "#
|
|
66
|
+
readonly default: "#ff8010";
|
|
67
|
+
readonly subtle: "#ffcca8";
|
|
68
68
|
};
|
|
69
69
|
};
|
|
70
70
|
};
|
|
@@ -79,7 +79,7 @@ declare const _default: {
|
|
|
79
79
|
readonly interactive: {
|
|
80
80
|
readonly affirmative: {
|
|
81
81
|
readonly border: {
|
|
82
|
-
readonly strong: "#
|
|
82
|
+
readonly strong: "#101010";
|
|
83
83
|
readonly subtle: "#58ca93";
|
|
84
84
|
};
|
|
85
85
|
readonly foreground: {
|
|
@@ -115,7 +115,7 @@ declare const _default: {
|
|
|
115
115
|
};
|
|
116
116
|
readonly destructive: {
|
|
117
117
|
readonly border: {
|
|
118
|
-
readonly strong: "#
|
|
118
|
+
readonly strong: "#101010";
|
|
119
119
|
readonly subtle: "#ff7964";
|
|
120
120
|
};
|
|
121
121
|
readonly foreground: {
|
|
@@ -136,14 +136,14 @@ declare const _default: {
|
|
|
136
136
|
};
|
|
137
137
|
readonly functional: {
|
|
138
138
|
readonly border: {
|
|
139
|
+
readonly inverted: "#f7f7f7";
|
|
139
140
|
readonly strong: "#ebebeb";
|
|
140
141
|
readonly subtle: "#ebebeb";
|
|
141
|
-
readonly inverted: "#f7f7f7";
|
|
142
142
|
};
|
|
143
143
|
readonly foreground: {
|
|
144
|
+
readonly inverted: "#f7f7f7";
|
|
144
145
|
readonly strong: "#fcfbf2";
|
|
145
146
|
readonly subtle: "#ebebeb";
|
|
146
|
-
readonly inverted: "#f7f7f7";
|
|
147
147
|
};
|
|
148
148
|
readonly surface: {
|
|
149
149
|
readonly strong: {
|
|
@@ -155,15 +155,15 @@ declare const _default: {
|
|
|
155
155
|
readonly active: "#4c4c4c";
|
|
156
156
|
readonly hover: "#3a3837";
|
|
157
157
|
readonly inverted: {
|
|
158
|
-
readonly active: "#
|
|
159
|
-
readonly hover: "#
|
|
158
|
+
readonly active: "#3a3837";
|
|
159
|
+
readonly hover: "#3f3f3f";
|
|
160
160
|
};
|
|
161
161
|
};
|
|
162
162
|
};
|
|
163
163
|
};
|
|
164
164
|
readonly highlight: {
|
|
165
165
|
readonly border: {
|
|
166
|
-
readonly strong: "#
|
|
166
|
+
readonly strong: "#101010";
|
|
167
167
|
};
|
|
168
168
|
readonly foreground: {
|
|
169
169
|
readonly strong: "#101010";
|
|
@@ -244,7 +244,9 @@ declare const _default: {
|
|
|
244
244
|
};
|
|
245
245
|
};
|
|
246
246
|
readonly text: {
|
|
247
|
-
readonly
|
|
247
|
+
readonly affirmative: "#58ca93";
|
|
248
|
+
readonly brand: "#af90de";
|
|
249
|
+
readonly inverted: "#fcfbf2";
|
|
248
250
|
readonly primary: "#ebebeb";
|
|
249
251
|
readonly secondary: "#b2afae";
|
|
250
252
|
};
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
export default {
|
|
5
5
|
background: {
|
|
6
|
-
brand: '#
|
|
6
|
+
brand: '#7a42c8',
|
|
7
7
|
primary: '#191917',
|
|
8
8
|
secondary: '#232323',
|
|
9
9
|
},
|
|
@@ -15,56 +15,56 @@ export default {
|
|
|
15
15
|
danger: {
|
|
16
16
|
border: '#ff7964',
|
|
17
17
|
foreground: {
|
|
18
|
-
default: '#
|
|
18
|
+
default: '#101010',
|
|
19
19
|
subtle: '#ff7964',
|
|
20
20
|
},
|
|
21
21
|
surface: {
|
|
22
|
-
default: '#
|
|
23
|
-
subtle: '#
|
|
22
|
+
default: '#ff634a',
|
|
23
|
+
subtle: '#ffa89d',
|
|
24
24
|
},
|
|
25
25
|
},
|
|
26
26
|
functional: {
|
|
27
27
|
border: '#b2afae',
|
|
28
28
|
foreground: {
|
|
29
|
-
default: '#
|
|
29
|
+
default: '#101010',
|
|
30
30
|
subtle: '#b2afae',
|
|
31
31
|
},
|
|
32
32
|
surface: {
|
|
33
|
-
default: '#
|
|
34
|
-
subtle: '#
|
|
33
|
+
default: '#919191',
|
|
34
|
+
subtle: '#d3d3d3',
|
|
35
35
|
},
|
|
36
36
|
},
|
|
37
37
|
info: {
|
|
38
38
|
border: '#6bb0ff',
|
|
39
39
|
foreground: {
|
|
40
|
-
default: '#
|
|
40
|
+
default: '#101010',
|
|
41
41
|
subtle: '#6bb0ff',
|
|
42
42
|
},
|
|
43
43
|
surface: {
|
|
44
|
-
default: '#
|
|
45
|
-
subtle: '#
|
|
44
|
+
default: '#6bb0ff',
|
|
45
|
+
subtle: '#bcddff',
|
|
46
46
|
},
|
|
47
47
|
},
|
|
48
48
|
positive: {
|
|
49
49
|
border: '#58ca93',
|
|
50
50
|
foreground: {
|
|
51
|
-
default: '#
|
|
51
|
+
default: '#101010',
|
|
52
52
|
subtle: '#58ca93',
|
|
53
53
|
},
|
|
54
54
|
surface: {
|
|
55
|
-
default: '#
|
|
56
|
-
subtle: '#
|
|
55
|
+
default: '#36bf7d',
|
|
56
|
+
subtle: '#a2e2c3',
|
|
57
57
|
},
|
|
58
58
|
},
|
|
59
59
|
warning: {
|
|
60
60
|
border: '#ff9639',
|
|
61
61
|
foreground: {
|
|
62
|
-
default: '#
|
|
62
|
+
default: '#101010',
|
|
63
63
|
subtle: '#ff9639',
|
|
64
64
|
},
|
|
65
65
|
surface: {
|
|
66
|
-
default: '#
|
|
67
|
-
subtle: '#
|
|
66
|
+
default: '#ff8010',
|
|
67
|
+
subtle: '#ffcca8',
|
|
68
68
|
},
|
|
69
69
|
},
|
|
70
70
|
},
|
|
@@ -79,7 +79,7 @@ export default {
|
|
|
79
79
|
interactive: {
|
|
80
80
|
affirmative: {
|
|
81
81
|
border: {
|
|
82
|
-
strong: '#
|
|
82
|
+
strong: '#101010',
|
|
83
83
|
subtle: '#58ca93',
|
|
84
84
|
},
|
|
85
85
|
foreground: {
|
|
@@ -115,7 +115,7 @@ export default {
|
|
|
115
115
|
},
|
|
116
116
|
destructive: {
|
|
117
117
|
border: {
|
|
118
|
-
strong: '#
|
|
118
|
+
strong: '#101010',
|
|
119
119
|
subtle: '#ff7964',
|
|
120
120
|
},
|
|
121
121
|
foreground: {
|
|
@@ -136,14 +136,14 @@ export default {
|
|
|
136
136
|
},
|
|
137
137
|
functional: {
|
|
138
138
|
border: {
|
|
139
|
+
inverted: '#f7f7f7',
|
|
139
140
|
strong: '#ebebeb',
|
|
140
141
|
subtle: '#ebebeb',
|
|
141
|
-
inverted: '#f7f7f7',
|
|
142
142
|
},
|
|
143
143
|
foreground: {
|
|
144
|
+
inverted: '#f7f7f7',
|
|
144
145
|
strong: '#fcfbf2',
|
|
145
146
|
subtle: '#ebebeb',
|
|
146
|
-
inverted: '#f7f7f7',
|
|
147
147
|
},
|
|
148
148
|
surface: {
|
|
149
149
|
strong: {
|
|
@@ -155,15 +155,15 @@ export default {
|
|
|
155
155
|
active: '#4c4c4c',
|
|
156
156
|
hover: '#3a3837',
|
|
157
157
|
inverted: {
|
|
158
|
-
active: '#
|
|
159
|
-
hover: '#
|
|
158
|
+
active: '#3a3837',
|
|
159
|
+
hover: '#3f3f3f',
|
|
160
160
|
},
|
|
161
161
|
},
|
|
162
162
|
},
|
|
163
163
|
},
|
|
164
164
|
highlight: {
|
|
165
165
|
border: {
|
|
166
|
-
strong: '#
|
|
166
|
+
strong: '#101010',
|
|
167
167
|
},
|
|
168
168
|
foreground: {
|
|
169
169
|
strong: '#101010',
|
|
@@ -244,7 +244,9 @@ export default {
|
|
|
244
244
|
},
|
|
245
245
|
},
|
|
246
246
|
text: {
|
|
247
|
-
|
|
247
|
+
affirmative: '#58ca93',
|
|
248
|
+
brand: '#af90de',
|
|
249
|
+
inverted: '#fcfbf2',
|
|
248
250
|
primary: '#ebebeb',
|
|
249
251
|
secondary: '#b2afae',
|
|
250
252
|
},
|
|
@@ -15,55 +15,55 @@ declare const _default: {
|
|
|
15
15
|
readonly danger: {
|
|
16
16
|
readonly border: "#de2612";
|
|
17
17
|
readonly foreground: {
|
|
18
|
-
readonly default: "#
|
|
18
|
+
readonly default: "#101010";
|
|
19
19
|
readonly subtle: "#de2612";
|
|
20
20
|
};
|
|
21
21
|
readonly surface: {
|
|
22
|
-
readonly default: "#
|
|
23
|
-
readonly subtle: "#
|
|
22
|
+
readonly default: "#ff634a";
|
|
23
|
+
readonly subtle: "#ffa89d";
|
|
24
24
|
};
|
|
25
25
|
};
|
|
26
26
|
readonly functional: {
|
|
27
|
-
readonly border: "#
|
|
27
|
+
readonly border: "#5b5b5b";
|
|
28
28
|
readonly foreground: {
|
|
29
|
-
readonly default: "#
|
|
30
|
-
readonly subtle: "#
|
|
29
|
+
readonly default: "#101010";
|
|
30
|
+
readonly subtle: "#5b5b5b";
|
|
31
31
|
};
|
|
32
32
|
readonly surface: {
|
|
33
|
-
readonly default: "#
|
|
33
|
+
readonly default: "#919191";
|
|
34
34
|
readonly subtle: "#d3d3d3";
|
|
35
35
|
};
|
|
36
36
|
};
|
|
37
37
|
readonly info: {
|
|
38
38
|
readonly border: "#1c6cd4";
|
|
39
39
|
readonly foreground: {
|
|
40
|
-
readonly default: "#
|
|
40
|
+
readonly default: "#101010";
|
|
41
41
|
readonly subtle: "#1c6cd4";
|
|
42
42
|
};
|
|
43
43
|
readonly surface: {
|
|
44
|
-
readonly default: "#
|
|
44
|
+
readonly default: "#6bb0ff";
|
|
45
45
|
readonly subtle: "#bcddff";
|
|
46
46
|
};
|
|
47
47
|
};
|
|
48
48
|
readonly positive: {
|
|
49
49
|
readonly border: "#0f834a";
|
|
50
50
|
readonly foreground: {
|
|
51
|
-
readonly default: "#
|
|
51
|
+
readonly default: "#101010";
|
|
52
52
|
readonly subtle: "#0f834a";
|
|
53
53
|
};
|
|
54
54
|
readonly surface: {
|
|
55
|
-
readonly default: "#
|
|
55
|
+
readonly default: "#36bf7d";
|
|
56
56
|
readonly subtle: "#a2e2c3";
|
|
57
57
|
};
|
|
58
58
|
};
|
|
59
59
|
readonly warning: {
|
|
60
60
|
readonly border: "#be5400";
|
|
61
61
|
readonly foreground: {
|
|
62
|
-
readonly default: "#
|
|
62
|
+
readonly default: "#101010";
|
|
63
63
|
readonly subtle: "#be5400";
|
|
64
64
|
};
|
|
65
65
|
readonly surface: {
|
|
66
|
-
readonly default: "#
|
|
66
|
+
readonly default: "#ff8010";
|
|
67
67
|
readonly subtle: "#ffcca8";
|
|
68
68
|
};
|
|
69
69
|
};
|
|
@@ -136,14 +136,14 @@ declare const _default: {
|
|
|
136
136
|
};
|
|
137
137
|
readonly functional: {
|
|
138
138
|
readonly border: {
|
|
139
|
+
readonly inverted: "#f7f7f7";
|
|
139
140
|
readonly strong: "#101010";
|
|
140
141
|
readonly subtle: "#101010";
|
|
141
|
-
readonly inverted: "#f7f7f7";
|
|
142
142
|
};
|
|
143
143
|
readonly foreground: {
|
|
144
|
+
readonly inverted: "#f7f7f7";
|
|
144
145
|
readonly strong: "#fcfbf2";
|
|
145
146
|
readonly subtle: "#101010";
|
|
146
|
-
readonly inverted: "#f7f7f7";
|
|
147
147
|
};
|
|
148
148
|
readonly surface: {
|
|
149
149
|
readonly strong: {
|
|
@@ -244,9 +244,11 @@ declare const _default: {
|
|
|
244
244
|
};
|
|
245
245
|
};
|
|
246
246
|
readonly text: {
|
|
247
|
+
readonly affirmative: "#0f834a";
|
|
248
|
+
readonly brand: "#7a42c8";
|
|
247
249
|
readonly inverted: "#fcfbf2";
|
|
248
250
|
readonly primary: "#101010";
|
|
249
|
-
readonly secondary: "#
|
|
251
|
+
readonly secondary: "#5b5b5b";
|
|
250
252
|
};
|
|
251
253
|
};
|
|
252
254
|
export default _default;
|
|
@@ -15,55 +15,55 @@ export default {
|
|
|
15
15
|
danger: {
|
|
16
16
|
border: '#de2612',
|
|
17
17
|
foreground: {
|
|
18
|
-
default: '#
|
|
18
|
+
default: '#101010',
|
|
19
19
|
subtle: '#de2612',
|
|
20
20
|
},
|
|
21
21
|
surface: {
|
|
22
|
-
default: '#
|
|
23
|
-
subtle: '#
|
|
22
|
+
default: '#ff634a',
|
|
23
|
+
subtle: '#ffa89d',
|
|
24
24
|
},
|
|
25
25
|
},
|
|
26
26
|
functional: {
|
|
27
|
-
border: '#
|
|
27
|
+
border: '#5b5b5b',
|
|
28
28
|
foreground: {
|
|
29
|
-
default: '#
|
|
30
|
-
subtle: '#
|
|
29
|
+
default: '#101010',
|
|
30
|
+
subtle: '#5b5b5b',
|
|
31
31
|
},
|
|
32
32
|
surface: {
|
|
33
|
-
default: '#
|
|
33
|
+
default: '#919191',
|
|
34
34
|
subtle: '#d3d3d3',
|
|
35
35
|
},
|
|
36
36
|
},
|
|
37
37
|
info: {
|
|
38
38
|
border: '#1c6cd4',
|
|
39
39
|
foreground: {
|
|
40
|
-
default: '#
|
|
40
|
+
default: '#101010',
|
|
41
41
|
subtle: '#1c6cd4',
|
|
42
42
|
},
|
|
43
43
|
surface: {
|
|
44
|
-
default: '#
|
|
44
|
+
default: '#6bb0ff',
|
|
45
45
|
subtle: '#bcddff',
|
|
46
46
|
},
|
|
47
47
|
},
|
|
48
48
|
positive: {
|
|
49
49
|
border: '#0f834a',
|
|
50
50
|
foreground: {
|
|
51
|
-
default: '#
|
|
51
|
+
default: '#101010',
|
|
52
52
|
subtle: '#0f834a',
|
|
53
53
|
},
|
|
54
54
|
surface: {
|
|
55
|
-
default: '#
|
|
55
|
+
default: '#36bf7d',
|
|
56
56
|
subtle: '#a2e2c3',
|
|
57
57
|
},
|
|
58
58
|
},
|
|
59
59
|
warning: {
|
|
60
60
|
border: '#be5400',
|
|
61
61
|
foreground: {
|
|
62
|
-
default: '#
|
|
62
|
+
default: '#101010',
|
|
63
63
|
subtle: '#be5400',
|
|
64
64
|
},
|
|
65
65
|
surface: {
|
|
66
|
-
default: '#
|
|
66
|
+
default: '#ff8010',
|
|
67
67
|
subtle: '#ffcca8',
|
|
68
68
|
},
|
|
69
69
|
},
|
|
@@ -136,14 +136,14 @@ export default {
|
|
|
136
136
|
},
|
|
137
137
|
functional: {
|
|
138
138
|
border: {
|
|
139
|
+
inverted: '#f7f7f7',
|
|
139
140
|
strong: '#101010',
|
|
140
141
|
subtle: '#101010',
|
|
141
|
-
inverted: '#f7f7f7',
|
|
142
142
|
},
|
|
143
143
|
foreground: {
|
|
144
|
+
inverted: '#f7f7f7',
|
|
144
145
|
strong: '#fcfbf2',
|
|
145
146
|
subtle: '#101010',
|
|
146
|
-
inverted: '#f7f7f7',
|
|
147
147
|
},
|
|
148
148
|
surface: {
|
|
149
149
|
strong: {
|
|
@@ -244,8 +244,10 @@ export default {
|
|
|
244
244
|
},
|
|
245
245
|
},
|
|
246
246
|
text: {
|
|
247
|
+
affirmative: '#0f834a',
|
|
248
|
+
brand: '#7a42c8',
|
|
247
249
|
inverted: '#fcfbf2',
|
|
248
250
|
primary: '#101010',
|
|
249
|
-
secondary: '#
|
|
251
|
+
secondary: '#5b5b5b',
|
|
250
252
|
},
|
|
251
253
|
};
|
package/build/types/values.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AnimatableNumericValue, DimensionValue } from 'react-native';
|
|
2
|
-
import { lightTheme } from '../core/themes';
|
|
2
|
+
import { lightTheme, themes } from '../core/themes';
|
|
3
3
|
import color from '../tokens/color';
|
|
4
4
|
export type addPrefixToObject<T, P extends string> = {
|
|
5
5
|
[K in keyof T as K extends string | number ? `${P}${K}` : never]: T[K];
|
|
@@ -26,4 +26,5 @@ export type ColorValue = 'currentColor' | 'transparent' | FlattenColorKeys<Omit<
|
|
|
26
26
|
export type BorderRadiusValue = `${keyof (typeof lightTheme)['borderRadius'] & (string | number)}` | AnimatableNumericValue | undefined;
|
|
27
27
|
export type BordeWidthValue = `${keyof (typeof lightTheme)['borderWidth'] & (string | number)}` | number | undefined;
|
|
28
28
|
export type OpacityValue = AnimatableNumericValue | undefined;
|
|
29
|
+
export type SpacingValues = keyof (typeof themes)['light']['globalStyle']['variants']['space'];
|
|
29
30
|
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
const formatThousands = (value) => {
|
|
2
|
+
if (!value)
|
|
3
|
+
return value;
|
|
4
|
+
// Remove existing commas first
|
|
5
|
+
const cleaned = value.replace(/,/g, '');
|
|
6
|
+
// Allow leading minus, digits, optional decimal part
|
|
7
|
+
const match = cleaned.match(/^(-)?(\d*)(\.\d*)?$/);
|
|
8
|
+
if (!match)
|
|
9
|
+
return value; // If it doesn't match a numeric pattern, return original (lets user continue typing)
|
|
10
|
+
const [, sign = '', intPart = '', decimalPart = ''] = match;
|
|
11
|
+
if (!intPart)
|
|
12
|
+
return sign + intPart + decimalPart; // nothing to format yet
|
|
13
|
+
const withCommas = intPart.replace(/\B(?=(\d{3})+(?!\d))/g, ',');
|
|
14
|
+
return sign + withCommas + (decimalPart || '');
|
|
15
|
+
};
|
|
16
|
+
export default formatThousands;
|
package/build/utils/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export { default as coloursAsArray, extractLightColorValues } from './coloursAsArray';
|
|
2
|
+
export { default as formatThousands } from './formatThousands';
|
|
2
3
|
export { default as getFlattenedColorValue } from './getFlattenedColorValue';
|
|
3
4
|
export { default as getStyleValue } from './getStyleValue';
|
|
4
5
|
export { default as hexWithOpacity } from './hexWithOpacity';
|
package/build/utils/index.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export { default as coloursAsArray, extractLightColorValues } from './coloursAsArray';
|
|
2
|
+
export { default as formatThousands } from './formatThousands';
|
|
2
3
|
export { default as getFlattenedColorValue } from './getFlattenedColorValue';
|
|
3
4
|
export { default as getStyleValue } from './getStyleValue';
|
|
4
5
|
export { default as hexWithOpacity } from './hexWithOpacity';
|
|
Binary file
|
|
Binary file
|