@hero-design/rn 7.24.0 → 7.25.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 +2 -2
- package/assets/fonts/hero-icons-mobile.ttf +0 -0
- package/es/index.js +844 -751
- package/lib/assets/fonts/hero-icons-mobile.ttf +0 -0
- package/lib/index.js +845 -749
- package/package.json +6 -5
- package/rollup.config.js +1 -1
- package/src/components/Accordion/__tests__/__snapshots__/AccordionItem.spec.tsx.snap +4 -4
- package/src/components/Accordion/__tests__/__snapshots__/index.spec.tsx.snap +6 -6
- package/src/components/Attachment/StyledAttachment.tsx +44 -0
- package/src/components/Attachment/__tests__/__snapshots__/index.spec.tsx.snap +158 -0
- package/src/components/Attachment/__tests__/index.spec.tsx +59 -0
- package/src/components/Attachment/index.tsx +77 -0
- package/src/components/Avatar/__tests__/__snapshots__/StyledAvatar.spec.tsx.snap +3 -3
- package/src/components/Avatar/__tests__/__snapshots__/index.spec.tsx.snap +2 -2
- package/src/components/Badge/Status.tsx +1 -1
- package/src/components/Badge/StyledBadge.tsx +8 -1
- package/src/components/Badge/__tests__/Badge.spec.tsx +9 -0
- package/src/components/Badge/__tests__/__snapshots__/Badge.spec.tsx.snap +44 -0
- package/src/components/Badge/index.tsx +1 -1
- package/src/components/BottomNavigation/__tests__/__snapshots__/index.spec.tsx.snap +3 -3
- package/src/components/BottomSheet/Header.tsx +2 -1
- package/src/components/BottomSheet/__tests__/__snapshots__/index.spec.tsx.snap +52 -52
- package/src/components/BottomSheet/index.tsx +4 -4
- package/src/components/Button/Button.tsx +0 -11
- package/src/components/Button/LoadingIndicator/__tests__/__snapshots__/StyledLoadingIndicator.spec.tsx.snap +4 -4
- package/src/components/Button/LoadingIndicator/__tests__/__snapshots__/index.spec.tsx.snap +12 -12
- package/src/components/Button/LoadingIndicator/index.tsx +1 -1
- package/src/components/Button/StyledButton.tsx +24 -63
- package/src/components/Button/UtilityButton/__tests__/index.spec.tsx +2 -2
- package/src/components/Button/__tests__/Button.spec.tsx +10 -5
- package/src/components/Button/__tests__/StyledButton.spec.tsx +0 -70
- package/src/components/Button/__tests__/__snapshots__/StyledButton.spec.tsx.snap +301 -1206
- package/src/components/Calendar/CalendarRowItem.tsx +1 -4
- package/src/components/Calendar/__tests__/__snapshots__/CalendarRowItem.spec.tsx.snap +5 -5
- package/src/components/Calendar/index.tsx +4 -3
- package/src/components/Card/DataCard/__tests__/__snapshots__/StyledDataCard.spec.tsx.snap +1 -1
- package/src/components/Card/__tests__/__snapshots__/StyledCard.spec.tsx.snap +1 -1
- package/src/components/Card/__tests__/__snapshots__/index.spec.tsx.snap +1 -1
- package/src/components/Checkbox/StyledCheckbox.tsx +7 -5
- package/src/components/Checkbox/__tests__/__snapshots__/StyledCheckbox.spec.tsx.snap +4 -12
- package/src/components/Checkbox/__tests__/__snapshots__/index.spec.tsx.snap +95 -42
- package/src/components/Checkbox/index.tsx +4 -2
- package/src/components/ContentNavigator/__tests__/__snapshots__/index.spec.tsx.snap +2 -2
- package/src/components/ContentNavigator/index.tsx +2 -1
- package/src/components/DatePicker/__tests__/__snapshots__/DatePickerAndroid.spec.tsx.snap +1 -0
- package/src/components/DatePicker/__tests__/__snapshots__/DatePickerIOS.spec.tsx.snap +28 -27
- package/src/components/Drawer/DragableDrawer/index.tsx +0 -2
- package/src/components/Empty/__tests__/__snapshots__/index.spec.tsx.snap +2 -2
- package/src/components/FAB/ActionGroup/__tests__/__snapshots__/index.spec.tsx.snap +12 -12
- package/src/components/FAB/__tests__/__snapshots__/StyledFAB.spec.tsx.snap +1 -1
- package/src/components/FAB/__tests__/__snapshots__/index.spec.tsx.snap +3 -3
- package/src/components/Icon/HeroIcon/glyphMap.json +1 -1
- package/src/components/Icon/HeroIcon/index.tsx +5 -1
- package/src/components/Icon/IconList.ts +30 -3
- package/src/components/Icon/__tests__/__snapshots__/index.spec.tsx.snap +1 -1
- package/src/components/List/BasicListItem.tsx +13 -8
- package/src/components/List/ListItem.tsx +8 -6
- package/src/components/List/StyledBasicListItem.tsx +2 -2
- package/src/components/List/StyledListItem.tsx +2 -2
- package/src/components/List/__tests__/__snapshots__/BasicListItem.spec.tsx.snap +24 -36
- package/src/components/List/__tests__/__snapshots__/ListItem.spec.tsx.snap +39 -59
- package/src/components/List/__tests__/__snapshots__/StyledBasicListItem.spec.tsx.snap +40 -44
- package/src/components/List/__tests__/__snapshots__/StyledListItem.spec.tsx.snap +50 -50
- package/src/components/PinInput/__tests__/__snapshots__/PinCell.spec.tsx.snap +6 -6
- package/src/components/PinInput/__tests__/__snapshots__/index.spec.tsx.snap +21 -21
- package/src/components/Progress/ProgressBar.tsx +1 -1
- package/src/components/Progress/ProgressCircle.tsx +1 -1
- package/src/components/Progress/__tests__/__snapshots__/index.spec.js.snap +10 -10
- package/src/components/Progress/types.ts +7 -1
- package/src/components/Radio/__tests__/__snapshots__/Radio.spec.tsx.snap +20 -32
- package/src/components/Radio/__tests__/__snapshots__/RadioGroup.spec.tsx.snap +30 -48
- package/src/components/RefreshControl/__tests__/index.spec.tsx +1 -3
- package/src/components/RefreshControl/index.tsx +4 -2
- package/src/components/RichTextEditor/MentionList.tsx +12 -3
- package/src/components/RichTextEditor/RichTextEditor.tsx +3 -4
- package/src/components/RichTextEditor/__tests__/__snapshots__/RichTextEditor.spec.tsx.snap +4 -4
- package/src/components/SectionHeading/__tests__/__snapshots__/index.spec.tsx.snap +1 -1
- package/src/components/Select/MultiSelect/__tests__/__snapshots__/Option.spec.tsx.snap +13 -20
- package/src/components/Select/MultiSelect/__tests__/__snapshots__/OptionList.spec.tsx.snap +146 -234
- package/src/components/Select/MultiSelect/__tests__/__snapshots__/index.spec.tsx.snap +430 -650
- package/src/components/Select/SingleSelect/__tests__/__snapshots__/Option.spec.tsx.snap +11 -18
- package/src/components/Select/SingleSelect/__tests__/__snapshots__/OptionList.spec.tsx.snap +136 -224
- package/src/components/Select/SingleSelect/__tests__/__snapshots__/index.spec.tsx.snap +409 -629
- package/src/components/Select/StyledOptionList.tsx +0 -1
- package/src/components/Select/__tests__/__snapshots__/StyledSelect.spec.tsx.snap +1 -1
- package/src/components/Spinner/StyledSpinner.tsx +1 -2
- package/src/components/Spinner/__tests__/__snapshots__/AnimatedSpinner.spec.tsx.snap +4 -4
- package/src/components/Spinner/__tests__/__snapshots__/StyledSpinner.spec.tsx.snap +16 -16
- package/src/components/Spinner/__tests__/__snapshots__/index.spec.tsx.snap +4 -4
- package/src/components/Swipeable/__tests__/__snapshots__/SwipeableAction.spec.tsx.snap +1 -1
- package/src/components/Swipeable/index.tsx +14 -2
- package/src/components/Switch/SelectorSwitch/Option.tsx +1 -5
- package/src/components/Switch/SelectorSwitch/__tests__/__snapshots__/Option.spec.tsx.snap +3 -3
- package/src/components/Switch/SelectorSwitch/__tests__/__snapshots__/index.spec.tsx.snap +3 -3
- package/src/components/Switch/SelectorSwitch/__tests__/index.spec.tsx +1 -0
- package/src/components/Switch/SelectorSwitch/index.tsx +4 -1
- package/src/components/Switch/__tests__/__snapshots__/StyledSwitch.spec.tsx.snap +1 -1
- package/src/components/Tabs/StyledTabs.tsx +1 -1
- package/src/components/Tabs/__tests__/__snapshots__/ScrollableTabs.spec.tsx.snap +1 -1
- package/src/components/Tabs/__tests__/__snapshots__/index.spec.tsx.snap +1 -1
- package/src/components/Tag/__tests__/__snapshots__/Tag.spec.tsx.snap +2 -2
- package/src/components/TextInput/StyledTextInput.tsx +1 -0
- package/src/components/TextInput/__tests__/__snapshots__/StyledTextInput.spec.tsx.snap +11 -10
- package/src/components/TextInput/__tests__/__snapshots__/index.spec.tsx.snap +27 -14
- package/src/components/TextInput/index.tsx +1 -0
- package/src/components/TimePicker/__tests__/__snapshots__/TimePickerAndroid.spec.tsx.snap +1 -0
- package/src/components/TimePicker/__tests__/__snapshots__/TimePickerIOS.spec.tsx.snap +28 -27
- package/src/components/Toast/Toast.tsx +0 -3
- package/src/components/Toast/ToastProvider.tsx +1 -0
- package/src/components/Toast/__tests__/index.spec.tsx +1 -1
- package/src/components/Toolbar/__tests__/__snapshots__/ToolbarGroup.spec.tsx.snap +12 -12
- package/src/components/Toolbar/__tests__/__snapshots__/ToolbarItem.spec.tsx.snap +6 -6
- package/src/components/Typography/Text/__tests__/__snapshots__/StyledText.spec.tsx.snap +4 -4
- package/src/emotion.d.ts +1 -0
- package/src/index.ts +6 -0
- package/src/theme/ThemeSwitcher.tsx +7 -1
- package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +87 -74
- package/src/theme/__tests__/ensureCompatibleWithV7.spec.tsx +13 -0
- package/src/theme/components/alert.ts +1 -1
- package/src/theme/components/attachment.ts +28 -0
- package/src/theme/components/avatar.ts +1 -1
- package/src/theme/components/badge.ts +2 -1
- package/src/theme/components/bottomNavigation.ts +1 -1
- package/src/theme/components/bottomSheet.ts +2 -2
- package/src/theme/components/button.ts +4 -20
- package/src/theme/components/calendar.ts +3 -3
- package/src/theme/components/card.ts +1 -1
- package/src/theme/components/checkbox.ts +2 -2
- package/src/theme/components/divider.ts +1 -1
- package/src/theme/components/drawer.ts +2 -2
- package/src/theme/components/empty.ts +3 -3
- package/src/theme/components/fab.ts +7 -7
- package/src/theme/components/icon.ts +4 -4
- package/src/theme/components/list.ts +0 -2
- package/src/theme/components/pinInput.ts +4 -4
- package/src/theme/components/progress.ts +6 -5
- package/src/theme/components/radio.ts +1 -1
- package/src/theme/components/richTextEditor.ts +2 -2
- package/src/theme/components/slider.ts +2 -2
- package/src/theme/components/switch.ts +4 -4
- package/src/theme/components/tabs.ts +6 -5
- package/src/theme/components/tag.ts +2 -2
- package/src/theme/components/textInput.ts +23 -28
- package/src/theme/components/toast.ts +3 -3
- package/src/theme/components/toolbar.ts +3 -3
- package/src/theme/components/typography.ts +7 -7
- package/src/theme/getTheme.ts +4 -1
- package/src/theme/global/colors/eBens.ts +23 -0
- package/src/theme/global/colors/global.ts +15 -6
- package/src/theme/global/colors/jobs.ts +15 -9
- package/src/theme/global/colors/legacySystemPalette.ts +6 -6
- package/src/theme/global/colors/swag.ts +32 -53
- package/src/theme/global/colors/types.ts +35 -15
- package/src/theme/global/colors/wallet.ts +23 -0
- package/src/theme/global/colors/work.ts +15 -9
- package/src/theme/global/index.ts +4 -0
- package/src/theme/index.ts +4 -0
- package/src/utils/functions.ts +2 -0
- package/src/utils/scale.ts +1 -1
- package/tsconfig.json +8 -2
- package/types/components/Accordion/StyledAccordion.d.ts +14 -14
- package/types/components/Alert/StyledAlert.d.ts +15 -15
- package/types/components/Attachment/StyledAttachment.d.ts +28 -0
- package/types/components/Attachment/index.d.ts +37 -0
- package/types/components/Avatar/StyledAvatar.d.ts +15 -15
- package/types/components/Avatar/index.d.ts +1 -1
- package/types/components/Badge/Status.d.ts +1 -1
- package/types/components/Badge/StyledBadge.d.ts +8 -8
- package/types/components/Badge/index.d.ts +1 -1
- package/types/components/BottomNavigation/StyledBottomNavigation.d.ts +21 -21
- package/types/components/BottomSheet/Header.d.ts +1 -1
- package/types/components/BottomSheet/StyledBottomSheet.d.ts +22 -22
- package/types/components/Box/StyledBox.d.ts +4 -4
- package/types/components/Button/LoadingIndicator/StyledLoadingIndicator.d.ts +7 -7
- package/types/components/Button/StyledButton.d.ts +15 -18
- package/types/components/Button/UtilityButton/StyledUtilityButton.d.ts +8 -8
- package/types/components/Calendar/StyledCalendar.d.ts +25 -25
- package/types/components/Calendar/helpers.d.ts +2 -2
- package/types/components/Card/DataCard/StyledDataCard.d.ts +6 -6
- package/types/components/Card/StyledCard.d.ts +7 -7
- package/types/components/Checkbox/StyledCheckbox.d.ts +16 -10
- package/types/components/Collapse/StyledCollapse.d.ts +8 -8
- package/types/components/ContentNavigator/StyledContentNavigator.d.ts +5 -5
- package/types/components/ContentNavigator/index.d.ts +2 -1
- package/types/components/DatePicker/StyledDatePicker.d.ts +3 -3
- package/types/components/Divider/StyledDivider.d.ts +5 -5
- package/types/components/Drawer/StyledDrawer.d.ts +19 -19
- package/types/components/Empty/StyledEmpty.d.ts +9 -9
- package/types/components/FAB/ActionGroup/StyledActionGroup.d.ts +11 -11
- package/types/components/FAB/ActionGroup/StyledActionItem.d.ts +7 -7
- package/types/components/FAB/StyledFAB.d.ts +8 -8
- package/types/components/Icon/HeroIcon/index.d.ts +3 -3
- package/types/components/Icon/IconList.d.ts +1 -1
- package/types/components/Icon/index.d.ts +1 -1
- package/types/components/Icon/utils.d.ts +1 -1
- package/types/components/List/StyledBasicListItem.d.ts +16 -16
- package/types/components/List/StyledListItem.d.ts +25 -25
- package/types/components/PinInput/StyledPinInput.d.ts +30 -30
- package/types/components/Progress/ProgressBar.d.ts +1 -1
- package/types/components/Progress/ProgressCircle.d.ts +1 -1
- package/types/components/Progress/StyledProgressBar.d.ts +5 -5
- package/types/components/Progress/StyledProgressCircle.d.ts +18 -18
- package/types/components/Progress/types.d.ts +1 -1
- package/types/components/Radio/StyledRadio.d.ts +9 -9
- package/types/components/RefreshControl/index.d.ts +1 -2
- package/types/components/RichTextEditor/EditorToolbar.d.ts +1 -1
- package/types/components/RichTextEditor/MentionList.d.ts +1 -1
- package/types/components/RichTextEditor/StyledRichTextEditor.d.ts +6 -6
- package/types/components/RichTextEditor/StyledToolbar.d.ts +9 -9
- package/types/components/RichTextEditor/index.d.ts +2 -2
- package/types/components/SectionHeading/StyledHeading.d.ts +9 -9
- package/types/components/Select/MultiSelect/Option.d.ts +1 -1
- package/types/components/Select/SingleSelect/Option.d.ts +1 -1
- package/types/components/Select/StyledSelect.d.ts +11 -11
- package/types/components/Select/helpers.d.ts +1 -1
- package/types/components/Spinner/StyledSpinner.d.ts +12 -12
- package/types/components/Swipeable/StyledSwipeable.d.ts +3 -3
- package/types/components/Swipeable/index.d.ts +7 -3
- package/types/components/Switch/SelectorSwitch/Option.d.ts +3 -1
- package/types/components/Switch/SelectorSwitch/StyledSelectorSwitch.d.ts +9 -9
- package/types/components/Switch/StyledSwitch.d.ts +5 -5
- package/types/components/Tabs/StyledScrollableTabs.d.ts +23 -23
- package/types/components/Tabs/StyledTabs.d.ts +22 -22
- package/types/components/Tag/StyledTag.d.ts +6 -6
- package/types/components/TextInput/StyledTextInput.d.ts +44 -44
- package/types/components/TextInput/index.d.ts +5 -5
- package/types/components/TimePicker/StyledTimePicker.d.ts +3 -3
- package/types/components/Toast/StyledToast.d.ts +17 -17
- package/types/components/Toolbar/StyledToolbar.d.ts +9 -9
- package/types/components/Typography/Text/StyledText.d.ts +3 -3
- package/types/index.d.ts +3 -2
- package/types/testHelpers/renderWithTheme.d.ts +1 -1
- package/types/theme/ThemeSwitcher.d.ts +2 -2
- package/types/theme/components/attachment.d.ts +21 -0
- package/types/theme/components/badge.d.ts +1 -0
- package/types/theme/components/button.d.ts +0 -15
- package/types/theme/components/list.d.ts +0 -1
- package/types/theme/components/progress.d.ts +1 -0
- package/types/theme/components/tabs.d.ts +1 -0
- package/types/theme/components/tag.d.ts +2 -2
- package/types/theme/components/textInput.d.ts +0 -5
- package/types/theme/getTheme.d.ts +2 -0
- package/types/theme/global/colors/eBens.d.ts +3 -0
- package/types/theme/global/colors/types.d.ts +23 -16
- package/types/theme/global/colors/wallet.d.ts +3 -0
- package/types/theme/global/index.d.ts +26 -12
- package/types/theme/index.d.ts +2 -2
- package/types/utils/functions.d.ts +1 -0
- package/types/utils/hooks.d.ts +1 -1
- package/assets/fonts/hero-icons.ttf +0 -0
- package/lib/assets/fonts/hero-icons.ttf +0 -0
- package/src/components/Icon/HeroIcon/fonts/hero-icons.ttf +0 -0
|
@@ -39,6 +39,25 @@ Object {
|
|
|
39
39
|
"textPaddingHorizontal": 12,
|
|
40
40
|
},
|
|
41
41
|
},
|
|
42
|
+
"attachment": Object {
|
|
43
|
+
"colors": Object {
|
|
44
|
+
"highlightedBackground": "#ece8ef",
|
|
45
|
+
},
|
|
46
|
+
"radii": Object {
|
|
47
|
+
"container": 8,
|
|
48
|
+
"image": 4,
|
|
49
|
+
},
|
|
50
|
+
"sizes": Object {
|
|
51
|
+
"imageHeight": 48,
|
|
52
|
+
"imageWidth": 32,
|
|
53
|
+
},
|
|
54
|
+
"space": Object {
|
|
55
|
+
"containerPadding": 16,
|
|
56
|
+
"containerVerticalPadding": 12,
|
|
57
|
+
"ctaPadding": 16,
|
|
58
|
+
"textHorizontalPadding": 8,
|
|
59
|
+
},
|
|
60
|
+
},
|
|
42
61
|
"avatar": Object {
|
|
43
62
|
"borderWidths": Object {
|
|
44
63
|
"default": 1,
|
|
@@ -46,7 +65,7 @@ Object {
|
|
|
46
65
|
"colors": Object {
|
|
47
66
|
"danger": "#f46363",
|
|
48
67
|
"info": "#b5c3fd",
|
|
49
|
-
"primary": "#
|
|
68
|
+
"primary": "#401960",
|
|
50
69
|
"success": "#5ace7d",
|
|
51
70
|
"warning": "#ffbe71",
|
|
52
71
|
},
|
|
@@ -79,6 +98,7 @@ Object {
|
|
|
79
98
|
"archived": "#737479",
|
|
80
99
|
"danger": "#de350b",
|
|
81
100
|
"info": "#4568fb",
|
|
101
|
+
"primary": "#401960",
|
|
82
102
|
"success": "#017d6d",
|
|
83
103
|
"text": "#ffffff",
|
|
84
104
|
"warning": "#ffa234",
|
|
@@ -104,7 +124,7 @@ Object {
|
|
|
104
124
|
"bottomNavigation": Object {
|
|
105
125
|
"colors": Object {
|
|
106
126
|
"background": "#ffffff",
|
|
107
|
-
"shadow": "#
|
|
127
|
+
"shadow": "#401960",
|
|
108
128
|
},
|
|
109
129
|
"shadows": Object {
|
|
110
130
|
"elevation": 10,
|
|
@@ -158,28 +178,13 @@ Object {
|
|
|
158
178
|
},
|
|
159
179
|
"colors": Object {
|
|
160
180
|
"danger": "#de350b",
|
|
161
|
-
"defaultText": "#
|
|
181
|
+
"defaultText": "#001f23",
|
|
162
182
|
"disabledBackground": "#bfc1c5",
|
|
163
183
|
"disabledBorder": "#bfc1c5",
|
|
164
184
|
"disabledText": "#bfc1c5",
|
|
165
185
|
"invertedText": "#ffffff",
|
|
166
|
-
"
|
|
167
|
-
"
|
|
168
|
-
"pressedSecondary": "#401960",
|
|
169
|
-
"primary": "#001f23",
|
|
170
|
-
"secondary": "#401960",
|
|
171
|
-
"underlayColors": Object {
|
|
172
|
-
"basic-transparent": "#4d6265",
|
|
173
|
-
"filled-danger": "#f46363",
|
|
174
|
-
"filled-primary": "#4d6265",
|
|
175
|
-
"filled-secondary": "#808f91",
|
|
176
|
-
"outlined-danger": "#fcebe7",
|
|
177
|
-
"outlined-primary": "#f6f6f7",
|
|
178
|
-
"outlined-secondary": "#ecf0ff",
|
|
179
|
-
"text-danger": "#fcebe7",
|
|
180
|
-
"text-primary": "#f6f6f7",
|
|
181
|
-
"text-secondary": "#ecf0ff",
|
|
182
|
-
},
|
|
186
|
+
"primary": "#401960",
|
|
187
|
+
"secondary": "#795e90",
|
|
183
188
|
"utilityBackground": "#f6f6f7",
|
|
184
189
|
},
|
|
185
190
|
"fontSize": Object {
|
|
@@ -212,7 +217,7 @@ Object {
|
|
|
212
217
|
"background": "#ffffff",
|
|
213
218
|
"border": "#001f23",
|
|
214
219
|
"inverted": "#ffffff",
|
|
215
|
-
"primary": "#
|
|
220
|
+
"primary": "#401960",
|
|
216
221
|
},
|
|
217
222
|
"radii": Object {
|
|
218
223
|
"default": 999,
|
|
@@ -235,9 +240,9 @@ Object {
|
|
|
235
240
|
"colors": Object {
|
|
236
241
|
"archived": "#ccced1",
|
|
237
242
|
"danger": "#f46363",
|
|
238
|
-
"dataCardIndicator": "#
|
|
243
|
+
"dataCardIndicator": "#401960",
|
|
239
244
|
"info": "#b5c3fd",
|
|
240
|
-
"primary": "#
|
|
245
|
+
"primary": "#401960",
|
|
241
246
|
"success": "#5ace7d",
|
|
242
247
|
"warning": "#ffbe71",
|
|
243
248
|
},
|
|
@@ -255,7 +260,7 @@ Object {
|
|
|
255
260
|
},
|
|
256
261
|
"colors": Object {
|
|
257
262
|
"default": "#001f23",
|
|
258
|
-
"disabledBorder": "#
|
|
263
|
+
"disabledBorder": "#bfc1c5",
|
|
259
264
|
},
|
|
260
265
|
"radii": Object {
|
|
261
266
|
"icon": 4,
|
|
@@ -326,7 +331,7 @@ Object {
|
|
|
326
331
|
"empty": Object {
|
|
327
332
|
"colors": Object {
|
|
328
333
|
"invertedText": "#ffffff",
|
|
329
|
-
"subduedText": "#
|
|
334
|
+
"subduedText": "#bfc1c5",
|
|
330
335
|
"text": "#001f23",
|
|
331
336
|
},
|
|
332
337
|
"fontSizes": Object {
|
|
@@ -348,10 +353,10 @@ Object {
|
|
|
348
353
|
},
|
|
349
354
|
"fab": Object {
|
|
350
355
|
"colors": Object {
|
|
351
|
-
"actionItemBackground": "#
|
|
356
|
+
"actionItemBackground": "#401960",
|
|
352
357
|
"actionItemText": "#ffffff",
|
|
353
358
|
"backdropBackground": "#001f23",
|
|
354
|
-
"buttonBackground": "#
|
|
359
|
+
"buttonBackground": "#401960",
|
|
355
360
|
"headerText": "#ffffff",
|
|
356
361
|
"icon": "#ffffff",
|
|
357
362
|
"titleText": "#ffffff",
|
|
@@ -399,11 +404,11 @@ Object {
|
|
|
399
404
|
"icon": Object {
|
|
400
405
|
"colors": Object {
|
|
401
406
|
"danger": "#de350b",
|
|
402
|
-
"disabledText": "#
|
|
407
|
+
"disabledText": "#bfc1c5",
|
|
403
408
|
"info": "#b5c3fd",
|
|
404
409
|
"invertedText": "#ffffff",
|
|
405
|
-
"primary": "#
|
|
406
|
-
"secondary": "#
|
|
410
|
+
"primary": "#401960",
|
|
411
|
+
"secondary": "#795e90",
|
|
407
412
|
"success": "#5ace7d",
|
|
408
413
|
"text": "#001f23",
|
|
409
414
|
"warning": "#ffbe71",
|
|
@@ -424,8 +429,7 @@ Object {
|
|
|
424
429
|
},
|
|
425
430
|
"list": Object {
|
|
426
431
|
"colors": Object {
|
|
427
|
-
"checkedListItemContainerBackground": "#
|
|
428
|
-
"highlightedListItemContainerBackground": "#ece8ef",
|
|
432
|
+
"checkedListItemContainerBackground": "#ece8ef",
|
|
429
433
|
"leadingStatus": Object {
|
|
430
434
|
"archived": "#ccced1",
|
|
431
435
|
"danger": "#f46363",
|
|
@@ -470,9 +474,9 @@ Object {
|
|
|
470
474
|
},
|
|
471
475
|
"colors": Object {
|
|
472
476
|
"default": "#001f23",
|
|
473
|
-
"disabled": "#
|
|
474
|
-
"error": "#
|
|
475
|
-
"mask": "#
|
|
477
|
+
"disabled": "#bfc1c5",
|
|
478
|
+
"error": "#de350b",
|
|
479
|
+
"mask": "#001f23",
|
|
476
480
|
},
|
|
477
481
|
"fontSizes": Object {
|
|
478
482
|
"cellText": 28,
|
|
@@ -498,13 +502,14 @@ Object {
|
|
|
498
502
|
},
|
|
499
503
|
"progress": Object {
|
|
500
504
|
"colors": Object {
|
|
505
|
+
"archived": "#737479",
|
|
501
506
|
"background": "#e8e9ea",
|
|
502
507
|
"danger": "#de350b",
|
|
503
|
-
"info": "#
|
|
508
|
+
"info": "#4568fb",
|
|
504
509
|
"innerBackground": "#ffffff",
|
|
505
|
-
"primary": "#
|
|
506
|
-
"success": "#
|
|
507
|
-
"warning": "#
|
|
510
|
+
"primary": "#401960",
|
|
511
|
+
"success": "#017d6d",
|
|
512
|
+
"warning": "#ffa234",
|
|
508
513
|
},
|
|
509
514
|
"radii": Object {
|
|
510
515
|
"default": 999,
|
|
@@ -532,7 +537,7 @@ Object {
|
|
|
532
537
|
},
|
|
533
538
|
"refreshControl": Object {
|
|
534
539
|
"colors": Object {
|
|
535
|
-
"indicator": "#
|
|
540
|
+
"indicator": "#401960",
|
|
536
541
|
},
|
|
537
542
|
},
|
|
538
543
|
"richTextEditor": Object {
|
|
@@ -573,7 +578,7 @@ Object {
|
|
|
573
578
|
},
|
|
574
579
|
"select": Object {
|
|
575
580
|
"colors": Object {
|
|
576
|
-
"footerText": "#
|
|
581
|
+
"footerText": "#795e90",
|
|
577
582
|
},
|
|
578
583
|
"radii": Object {
|
|
579
584
|
"option": 4,
|
|
@@ -599,7 +604,7 @@ Object {
|
|
|
599
604
|
"colors": Object {
|
|
600
605
|
"dot": Object {
|
|
601
606
|
"inverted": "#ffffff",
|
|
602
|
-
"primary": "#
|
|
607
|
+
"primary": "#401960",
|
|
603
608
|
},
|
|
604
609
|
},
|
|
605
610
|
"radii": Object {
|
|
@@ -623,7 +628,7 @@ Object {
|
|
|
623
628
|
"swipeable": Object {
|
|
624
629
|
"colors": Object {
|
|
625
630
|
"danger": "#f46363",
|
|
626
|
-
"primary": "#
|
|
631
|
+
"primary": "#401960",
|
|
627
632
|
"success": "#5ace7d",
|
|
628
633
|
},
|
|
629
634
|
},
|
|
@@ -631,13 +636,13 @@ Object {
|
|
|
631
636
|
"colors": Object {
|
|
632
637
|
"backgroundColors": Object {
|
|
633
638
|
"checked": "#401960",
|
|
634
|
-
"disabled-checked": "#
|
|
639
|
+
"disabled-checked": "#ece8ef",
|
|
635
640
|
"disabled-unchecked": "#bfc1c5",
|
|
636
641
|
"unchecked": "#808f91",
|
|
637
642
|
},
|
|
638
643
|
"selector": Object {
|
|
639
644
|
"background": "#f6f6f7",
|
|
640
|
-
"textBackground": "#
|
|
645
|
+
"textBackground": "#ffffff",
|
|
641
646
|
},
|
|
642
647
|
"thumb": "#ffffff",
|
|
643
648
|
},
|
|
@@ -679,9 +684,10 @@ Object {
|
|
|
679
684
|
},
|
|
680
685
|
"colors": Object {
|
|
681
686
|
"active": "#001f23",
|
|
682
|
-
"activeBackground": "#
|
|
687
|
+
"activeBackground": "#ccd2d3",
|
|
683
688
|
"headerBottom": "#e8e9ea",
|
|
684
689
|
"inactive": "#001f23",
|
|
690
|
+
"indicator": "#401960",
|
|
685
691
|
"text": "#001f23",
|
|
686
692
|
},
|
|
687
693
|
"radii": Object {
|
|
@@ -712,7 +718,7 @@ Object {
|
|
|
712
718
|
"defaultBackground": undefined,
|
|
713
719
|
"info": "#4568fb",
|
|
714
720
|
"infoBackground": "#ecf0ff",
|
|
715
|
-
"primary": "#
|
|
721
|
+
"primary": "#401960",
|
|
716
722
|
"primaryBackground": undefined,
|
|
717
723
|
"success": "#017d6d",
|
|
718
724
|
"successBackground": "#f0fef4",
|
|
@@ -742,47 +748,42 @@ Object {
|
|
|
742
748
|
},
|
|
743
749
|
"colors": Object {
|
|
744
750
|
"asterisks": Object {
|
|
745
|
-
"default": "#
|
|
751
|
+
"default": "#de350b",
|
|
746
752
|
"disabled": "#bfc1c5",
|
|
747
|
-
"error": "#
|
|
748
|
-
"filled": "#
|
|
753
|
+
"error": "#de350b",
|
|
754
|
+
"filled": "#de350b",
|
|
749
755
|
"readonly": "#808f91",
|
|
750
756
|
},
|
|
751
757
|
"borders": Object {
|
|
752
758
|
"default": "#001f23",
|
|
753
759
|
"disabled": "#bfc1c5",
|
|
754
|
-
"error": "#
|
|
760
|
+
"error": "#de350b",
|
|
755
761
|
"filled": "#001f23",
|
|
756
762
|
"readonly": "#808f91",
|
|
757
763
|
},
|
|
758
|
-
"
|
|
759
|
-
"error": "#f46363",
|
|
760
|
-
"label": "#001f23",
|
|
764
|
+
"error": "#de350b",
|
|
761
765
|
"labelBackground": "#ffffff",
|
|
762
766
|
"labels": Object {
|
|
763
767
|
"default": "#001f23",
|
|
764
768
|
"disabled": "#bfc1c5",
|
|
765
769
|
"error": "#001f23",
|
|
766
770
|
"filled": "#001f23",
|
|
767
|
-
"readonly": "#
|
|
771
|
+
"readonly": "#808f91",
|
|
768
772
|
},
|
|
769
773
|
"labelsInsideTextInput": Object {
|
|
770
774
|
"default": "#001f23",
|
|
771
775
|
"disabled": "#bfc1c5",
|
|
772
776
|
"error": "#001f23",
|
|
773
777
|
"filled": "#001f23",
|
|
774
|
-
"readonly": "#
|
|
778
|
+
"readonly": "#808f91",
|
|
775
779
|
},
|
|
776
780
|
"maxLengthLabels": Object {
|
|
777
781
|
"default": "#001f23",
|
|
778
782
|
"disabled": "#bfc1c5",
|
|
779
|
-
"error": "#
|
|
783
|
+
"error": "#de350b",
|
|
780
784
|
"filled": "#001f23",
|
|
781
|
-
"readonly": "#
|
|
785
|
+
"readonly": "#808f91",
|
|
782
786
|
},
|
|
783
|
-
"placeholderIfFocued": "#808f91",
|
|
784
|
-
"placeholderIfNotFocused": "#001f23",
|
|
785
|
-
"readonlyLabel": "#808f91",
|
|
786
787
|
"text": "#001f23",
|
|
787
788
|
},
|
|
788
789
|
"fontSizes": Object {
|
|
@@ -858,13 +859,13 @@ Object {
|
|
|
858
859
|
},
|
|
859
860
|
"colors": Object {
|
|
860
861
|
"background": "#ffffff",
|
|
861
|
-
"border": "#
|
|
862
|
+
"border": "#001f23",
|
|
862
863
|
"danger": "#ffbe71",
|
|
863
|
-
"disabled": "#
|
|
864
|
-
"error": "#
|
|
864
|
+
"disabled": "#bfc1c5",
|
|
865
|
+
"error": "#f46363",
|
|
865
866
|
"info": "#b5c3fd",
|
|
866
|
-
"primary": "#
|
|
867
|
-
"secondary": "#
|
|
867
|
+
"primary": "#401960",
|
|
868
|
+
"secondary": "#795e90",
|
|
868
869
|
"success": "#5ace7d",
|
|
869
870
|
},
|
|
870
871
|
"space": Object {
|
|
@@ -876,13 +877,13 @@ Object {
|
|
|
876
877
|
"colors": Object {
|
|
877
878
|
"body": "#001f23",
|
|
878
879
|
"danger": "#de350b",
|
|
879
|
-
"info": "#
|
|
880
|
+
"info": "#4568fb",
|
|
880
881
|
"inverted": "#ffffff",
|
|
881
|
-
"primary": "#
|
|
882
|
-
"secondary": "#
|
|
882
|
+
"primary": "#401960",
|
|
883
|
+
"secondary": "#795e90",
|
|
883
884
|
"subdued": "#4d6265",
|
|
884
|
-
"success": "#
|
|
885
|
-
"warning": "#
|
|
885
|
+
"success": "#017d6d",
|
|
886
|
+
"warning": "#ffa234",
|
|
886
887
|
},
|
|
887
888
|
"fontSizes": Object {
|
|
888
889
|
"large": 16,
|
|
@@ -924,9 +925,14 @@ Object {
|
|
|
924
925
|
"dangerBackground": "#fcebe7",
|
|
925
926
|
"dangerLight": "#f46363",
|
|
926
927
|
"dangerMediumLight": "#e3602a",
|
|
928
|
+
"darkGlobalSurface": "#001f23",
|
|
929
|
+
"decorativePrimary": "#ffffff",
|
|
930
|
+
"decorativePrimarySurface": "#ccd2d3",
|
|
927
931
|
"defaultGlobalSurface": "#ffffff",
|
|
932
|
+
"defaultSurface": "#f6f6f7",
|
|
928
933
|
"disabledLightText": "#bfc1c5",
|
|
929
934
|
"disabledOnDefaultGlobalSurface": "#bfc1c5",
|
|
935
|
+
"disabledOutline": "#bfc1c5",
|
|
930
936
|
"disabledSecondary": "#a08cb0",
|
|
931
937
|
"disabledText": "#808f91",
|
|
932
938
|
"error": "#f46363",
|
|
@@ -938,8 +944,10 @@ Object {
|
|
|
938
944
|
"globalSecondary": "#4d6265",
|
|
939
945
|
"globalSecondaryOutline": "#e8e9ea",
|
|
940
946
|
"highlightedSecondarySurface": "#ecf0ff",
|
|
941
|
-
"highlightedSurface": "#
|
|
947
|
+
"highlightedSurface": "#ece8ef",
|
|
942
948
|
"inactiveBackground": "#808f91",
|
|
949
|
+
"inactiveOnDefaultGlobalSurface": "#808f91",
|
|
950
|
+
"inactiveOutline": "#808f91",
|
|
943
951
|
"info": "#b5c3fd",
|
|
944
952
|
"infoBackground": "#ecf0ff",
|
|
945
953
|
"infoLight": "#b5c3fd",
|
|
@@ -948,10 +956,12 @@ Object {
|
|
|
948
956
|
"invertedText": "#ffffff",
|
|
949
957
|
"lightHighlightedSurface": "#ece8ef",
|
|
950
958
|
"mutedGlobalPrimary": "#4d6265",
|
|
959
|
+
"mutedOnDefaultGlobalSurface": "#4d6265",
|
|
951
960
|
"mutedPrimary": "#e6e9e9",
|
|
952
961
|
"mutedSecondary": "#808f91",
|
|
953
962
|
"neutralGlobalSurface": "#f6f6f7",
|
|
954
963
|
"onArchivedSurface": "#737479",
|
|
964
|
+
"onDarkGlobalSurface": "#ffffff",
|
|
955
965
|
"onDefaultGlobalSurface": "#001f23",
|
|
956
966
|
"onErrorSurface": "#de350b",
|
|
957
967
|
"onGlobalPrimary": "#ffffff",
|
|
@@ -962,14 +972,17 @@ Object {
|
|
|
962
972
|
"onWarningSurface": "#ffa234",
|
|
963
973
|
"outline": "#e8e9ea",
|
|
964
974
|
"platformBackground": "#ffffff",
|
|
965
|
-
"
|
|
975
|
+
"pressedSurface": "#664780",
|
|
976
|
+
"primary": "#401960",
|
|
966
977
|
"primaryBackground": "#f3e6f6",
|
|
967
978
|
"primaryBackgroundDark": "#4d6265",
|
|
968
979
|
"primaryDark": "#795e90",
|
|
969
980
|
"primaryLight": "#c282d1",
|
|
970
|
-
"
|
|
981
|
+
"primaryOutline": "#001f23",
|
|
982
|
+
"secondary": "#795e90",
|
|
971
983
|
"secondaryBackground": "#ecf0ff",
|
|
972
984
|
"secondaryLight": "#b5c3fd",
|
|
985
|
+
"secondaryOutline": "#e8e9ea",
|
|
973
986
|
"shadow": "#ccced1",
|
|
974
987
|
"subduedText": "#4d6265",
|
|
975
988
|
"success": "#5ace7d",
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { theme as runningTheme } from 'rn-7-23-0';
|
|
2
|
+
import latestTheme from '..';
|
|
3
|
+
|
|
4
|
+
it('should be compatible with v7', () => {
|
|
5
|
+
const missingKeys = Object.keys(runningTheme.colors).filter(
|
|
6
|
+
// Safe access to extract missing keys
|
|
7
|
+
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
8
|
+
// @ts-ignore
|
|
9
|
+
(k) => latestTheme.colors[k] === undefined
|
|
10
|
+
);
|
|
11
|
+
|
|
12
|
+
expect(missingKeys).toEqual([]);
|
|
13
|
+
});
|
|
@@ -7,7 +7,7 @@ const getAlertTheme = (theme: GlobalTheme) => {
|
|
|
7
7
|
error: theme.colors.error,
|
|
8
8
|
info: theme.colors.info,
|
|
9
9
|
notification: theme.colors.defaultGlobalSurface,
|
|
10
|
-
divider: theme.colors.
|
|
10
|
+
divider: theme.colors.secondaryOutline,
|
|
11
11
|
};
|
|
12
12
|
|
|
13
13
|
const sizes = {
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { GlobalTheme } from '../global';
|
|
2
|
+
|
|
3
|
+
const getAttachmentTheme = (theme: GlobalTheme) => {
|
|
4
|
+
const colors = {
|
|
5
|
+
highlightedBackground: theme.colors.highlightedSurface,
|
|
6
|
+
};
|
|
7
|
+
|
|
8
|
+
const sizes = {
|
|
9
|
+
imageHeight: theme.sizes.xxxlarge,
|
|
10
|
+
imageWidth: theme.sizes.xlarge,
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
const space = {
|
|
14
|
+
containerPadding: theme.space.medium,
|
|
15
|
+
containerVerticalPadding: theme.space.smallMedium,
|
|
16
|
+
ctaPadding: theme.space.medium,
|
|
17
|
+
textHorizontalPadding: theme.space.small,
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
const radii = {
|
|
21
|
+
image: theme.radii.base,
|
|
22
|
+
container: theme.radii.medium,
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
return { colors, radii, sizes, space };
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
export default getAttachmentTheme;
|
|
@@ -2,7 +2,7 @@ import type { GlobalTheme } from '../global';
|
|
|
2
2
|
|
|
3
3
|
const getAvatarTheme = (theme: GlobalTheme) => {
|
|
4
4
|
const colors = {
|
|
5
|
-
primary: theme.colors.
|
|
5
|
+
primary: theme.colors.primary,
|
|
6
6
|
info: theme.colors.info,
|
|
7
7
|
danger: theme.colors.error,
|
|
8
8
|
success: theme.colors.success,
|
|
@@ -2,12 +2,13 @@ import type { GlobalTheme } from '../global';
|
|
|
2
2
|
|
|
3
3
|
const getBadgeTheme = (theme: GlobalTheme) => {
|
|
4
4
|
const colors = {
|
|
5
|
+
primary: theme.colors.primary,
|
|
5
6
|
danger: theme.colors.onErrorSurface,
|
|
6
7
|
info: theme.colors.onInfoSurface,
|
|
7
8
|
success: theme.colors.onSuccessSurface,
|
|
8
9
|
warning: theme.colors.onWarningSurface,
|
|
9
10
|
archived: theme.colors.onArchivedSurface,
|
|
10
|
-
text: theme.colors.
|
|
11
|
+
text: theme.colors.onDarkGlobalSurface,
|
|
11
12
|
};
|
|
12
13
|
|
|
13
14
|
const fonts = {
|
|
@@ -2,9 +2,9 @@ import type { GlobalTheme } from '../global';
|
|
|
2
2
|
|
|
3
3
|
const getBottomSheetTheme = (theme: GlobalTheme) => {
|
|
4
4
|
const colors = {
|
|
5
|
-
shadow: theme.colors.
|
|
5
|
+
shadow: theme.colors.primaryOutline,
|
|
6
6
|
background: theme.colors.defaultGlobalSurface,
|
|
7
|
-
backdrop: theme.colors.
|
|
7
|
+
backdrop: theme.colors.darkGlobalSurface,
|
|
8
8
|
};
|
|
9
9
|
|
|
10
10
|
const sizes = {
|
|
@@ -36,31 +36,15 @@ const getButtonTheme = (theme: GlobalTheme) => {
|
|
|
36
36
|
};
|
|
37
37
|
|
|
38
38
|
const colors = {
|
|
39
|
-
primary: theme.colors.
|
|
40
|
-
pressedPrimary: theme.colors.globalSecondary,
|
|
39
|
+
primary: theme.colors.primary,
|
|
41
40
|
secondary: theme.colors.secondary,
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
pressedDanger: theme.colors.onErrorSurface, // FIXME: This doesn't make sense
|
|
45
|
-
defaultText: theme.colors.onGlobalPrimary,
|
|
41
|
+
danger: theme.colors.onErrorSurface,
|
|
42
|
+
defaultText: theme.colors.onDefaultGlobalSurface,
|
|
46
43
|
disabledText: theme.colors.disabledOnDefaultGlobalSurface,
|
|
47
44
|
disabledBorder: theme.colors.disabledOnDefaultGlobalSurface,
|
|
48
45
|
disabledBackground: theme.colors.disabledOnDefaultGlobalSurface,
|
|
49
|
-
invertedText: theme.colors.
|
|
46
|
+
invertedText: theme.colors.onDarkGlobalSurface,
|
|
50
47
|
utilityBackground: theme.colors.neutralGlobalSurface,
|
|
51
|
-
underlayColors: {
|
|
52
|
-
'filled-primary': theme.colors.mutedGlobalPrimary,
|
|
53
|
-
'filled-secondary': theme.colors.mutedSecondary,
|
|
54
|
-
'filled-danger': theme.colors.error,
|
|
55
|
-
'outlined-primary': theme.colors.neutralGlobalSurface,
|
|
56
|
-
'outlined-secondary': theme.colors.highlightedSecondarySurface,
|
|
57
|
-
|
|
58
|
-
'outlined-danger': theme.colors.errorSurface,
|
|
59
|
-
'text-primary': theme.colors.neutralGlobalSurface,
|
|
60
|
-
'text-secondary': theme.colors.highlightedSecondarySurface,
|
|
61
|
-
'text-danger': theme.colors.errorSurface,
|
|
62
|
-
'basic-transparent': theme.colors.mutedGlobalPrimary,
|
|
63
|
-
},
|
|
64
48
|
};
|
|
65
49
|
|
|
66
50
|
return {
|
|
@@ -3,9 +3,9 @@ import type { GlobalTheme } from '../global';
|
|
|
3
3
|
const getCalendarTheme = (theme: GlobalTheme) => {
|
|
4
4
|
const colors = {
|
|
5
5
|
background: theme.colors.defaultGlobalSurface,
|
|
6
|
-
border: theme.colors.
|
|
7
|
-
primary: theme.colors.
|
|
8
|
-
inverted: theme.colors.
|
|
6
|
+
border: theme.colors.primaryOutline,
|
|
7
|
+
primary: theme.colors.primary,
|
|
8
|
+
inverted: theme.colors.onDarkGlobalSurface,
|
|
9
9
|
};
|
|
10
10
|
|
|
11
11
|
const cellSize = theme.sizes.xxxlarge;
|
|
@@ -2,7 +2,7 @@ import type { GlobalTheme } from '../global';
|
|
|
2
2
|
|
|
3
3
|
const getCardTheme = (theme: GlobalTheme) => {
|
|
4
4
|
const colors = {
|
|
5
|
-
dataCardIndicator: theme.colors.
|
|
5
|
+
dataCardIndicator: theme.colors.primary,
|
|
6
6
|
primary: theme.colors.primary,
|
|
7
7
|
info: theme.colors.info,
|
|
8
8
|
success: theme.colors.success,
|
|
@@ -2,8 +2,8 @@ import type { GlobalTheme } from '../global';
|
|
|
2
2
|
|
|
3
3
|
const getCheckboxTheme = (theme: GlobalTheme) => {
|
|
4
4
|
const colors = {
|
|
5
|
-
default: theme.colors.
|
|
6
|
-
disabledBorder: theme.colors.
|
|
5
|
+
default: theme.colors.primaryOutline,
|
|
6
|
+
disabledBorder: theme.colors.disabledOutline,
|
|
7
7
|
};
|
|
8
8
|
|
|
9
9
|
const space = {
|
|
@@ -2,10 +2,10 @@ import type { GlobalTheme } from '../global';
|
|
|
2
2
|
|
|
3
3
|
const getDrawerTheme = (theme: GlobalTheme) => {
|
|
4
4
|
const colors = {
|
|
5
|
-
shadow: theme.colors.
|
|
5
|
+
shadow: theme.colors.primaryOutline,
|
|
6
6
|
background: theme.colors.defaultGlobalSurface,
|
|
7
7
|
backdrop: theme.colors.defaultGlobalSurface,
|
|
8
|
-
handler: theme.colors.
|
|
8
|
+
handler: theme.colors.onDefaultGlobalSurface,
|
|
9
9
|
};
|
|
10
10
|
|
|
11
11
|
const radii = {
|
|
@@ -12,9 +12,9 @@ const getEmptyTheme = (theme: GlobalTheme) => {
|
|
|
12
12
|
};
|
|
13
13
|
|
|
14
14
|
const colors = {
|
|
15
|
-
text: theme.colors.
|
|
16
|
-
invertedText: theme.colors.
|
|
17
|
-
subduedText: theme.colors.
|
|
15
|
+
text: theme.colors.onDefaultGlobalSurface,
|
|
16
|
+
invertedText: theme.colors.onDarkGlobalSurface,
|
|
17
|
+
subduedText: theme.colors.disabledOnDefaultGlobalSurface,
|
|
18
18
|
};
|
|
19
19
|
|
|
20
20
|
const fontSizes = {
|
|
@@ -2,13 +2,13 @@ import type { GlobalTheme } from '../global';
|
|
|
2
2
|
|
|
3
3
|
const getFABTheme = (theme: GlobalTheme) => {
|
|
4
4
|
const colors = {
|
|
5
|
-
buttonBackground: theme.colors.
|
|
6
|
-
icon: theme.colors.
|
|
7
|
-
headerText: theme.colors.
|
|
8
|
-
actionItemBackground: theme.colors.
|
|
9
|
-
backdropBackground: theme.colors.
|
|
10
|
-
titleText: theme.colors.
|
|
11
|
-
actionItemText: theme.colors.
|
|
5
|
+
buttonBackground: theme.colors.primary,
|
|
6
|
+
icon: theme.colors.onPrimary,
|
|
7
|
+
headerText: theme.colors.onDarkGlobalSurface,
|
|
8
|
+
actionItemBackground: theme.colors.primary,
|
|
9
|
+
backdropBackground: theme.colors.darkGlobalSurface,
|
|
10
|
+
titleText: theme.colors.onDarkGlobalSurface,
|
|
11
|
+
actionItemText: theme.colors.onPrimary,
|
|
12
12
|
};
|
|
13
13
|
|
|
14
14
|
const sizes = {
|
|
@@ -2,15 +2,15 @@ import type { GlobalTheme } from '../global';
|
|
|
2
2
|
|
|
3
3
|
const getIconTheme = (theme: GlobalTheme) => {
|
|
4
4
|
const colors = {
|
|
5
|
-
text: theme.colors.
|
|
5
|
+
text: theme.colors.onDefaultGlobalSurface,
|
|
6
6
|
primary: theme.colors.primary,
|
|
7
7
|
secondary: theme.colors.secondary,
|
|
8
8
|
info: theme.colors.info,
|
|
9
|
-
danger: theme.colors.
|
|
9
|
+
danger: theme.colors.onErrorSurface,
|
|
10
10
|
success: theme.colors.success,
|
|
11
11
|
warning: theme.colors.warning,
|
|
12
|
-
disabledText: theme.colors.
|
|
13
|
-
invertedText: theme.colors.
|
|
12
|
+
disabledText: theme.colors.disabledOnDefaultGlobalSurface,
|
|
13
|
+
invertedText: theme.colors.onDarkGlobalSurface,
|
|
14
14
|
};
|
|
15
15
|
|
|
16
16
|
const sizes = {
|