@hero-design/rn 7.23.0 → 7.25.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 +2 -2
- package/assets/fonts/hero-icons.ttf +0 -0
- package/es/index.js +1364 -9239
- package/lib/assets/fonts/hero-icons.ttf +0 -0
- package/lib/index.js +1368 -9238
- package/package.json +7 -4
- package/rollup.config.js +1 -0
- 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 +14 -9
- package/src/components/DatePicker/__tests__/__snapshots__/DatePickerAndroid.spec.tsx.snap +2 -0
- package/src/components/DatePicker/__tests__/__snapshots__/DatePickerIOS.spec.tsx.snap +29 -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/Empty/index.tsx +1 -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/fonts/hero-icons.ttf +0 -0
- package/src/components/Icon/HeroIcon/glyphMap.json +1 -0
- package/src/components/Icon/HeroIcon/index.tsx +3 -7
- package/src/components/Icon/IconList.ts +36 -6
- package/src/components/Icon/__tests__/__snapshots__/index.spec.tsx.snap +1 -1
- package/src/components/Icon/index.tsx +1 -0
- 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 +4 -8
- package/src/components/RichTextEditor/__tests__/__snapshots__/RichTextEditor.spec.tsx.snap +6 -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 +154 -238
- package/src/components/Select/MultiSelect/__tests__/__snapshots__/index.spec.tsx.snap +435 -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 +144 -228
- package/src/components/Select/SingleSelect/__tests__/__snapshots__/index.spec.tsx.snap +414 -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/AnimatedSpinner.tsx +22 -7
- package/src/components/Spinner/StyledSpinner.tsx +15 -11
- package/src/components/Spinner/__tests__/AnimatedSpinner.spec.tsx +3 -1
- package/src/components/Spinner/__tests__/StyledSpinner.spec.tsx +42 -31
- package/src/components/Spinner/__tests__/__snapshots__/AnimatedSpinner.spec.tsx.snap +12 -8
- package/src/components/Spinner/__tests__/__snapshots__/StyledSpinner.spec.tsx.snap +543 -83
- package/src/components/Spinner/__tests__/__snapshots__/index.spec.tsx.snap +12 -8
- package/src/components/Spinner/index.tsx +6 -1
- package/src/components/Swipeable/StyledSwipeable.tsx +11 -0
- package/src/components/Swipeable/SwipeableAction.tsx +45 -0
- package/src/components/Swipeable/__tests__/SwipeableAction.spec.tsx +37 -0
- package/src/components/Swipeable/__tests__/__snapshots__/SwipeableAction.spec.tsx.snap +130 -0
- package/src/components/Swipeable/__tests__/__snapshots__/index.spec.tsx.snap +33 -0
- package/src/components/Swipeable/__tests__/index.spec.tsx +34 -0
- package/src/components/Swipeable/index.tsx +160 -0
- 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 +7 -12
- package/src/components/TextInput/__tests__/StyledTextInput.spec.tsx +12 -6
- package/src/components/TextInput/__tests__/__snapshots__/StyledTextInput.spec.tsx.snap +31 -146
- package/src/components/TextInput/__tests__/__snapshots__/index.spec.tsx.snap +40 -14
- package/src/components/TextInput/__tests__/index.spec.tsx +114 -124
- package/src/components/TextInput/index.tsx +8 -6
- package/src/components/TimePicker/__tests__/__snapshots__/TimePickerAndroid.spec.tsx.snap +2 -0
- package/src/components/TimePicker/__tests__/__snapshots__/TimePickerIOS.spec.tsx.snap +29 -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 +10 -0
- package/src/theme/ThemeSwitcher.tsx +7 -1
- package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +96 -78
- 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/spinner.ts +4 -1
- package/src/theme/components/swipeable.ts +13 -0
- 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 -33
- 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 +7 -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 -10
- 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 -11
- package/src/theme/global/index.ts +4 -0
- package/src/theme/index.ts +4 -0
- package/src/types.ts +2 -0
- package/src/utils/functions.ts +2 -0
- package/src/utils/scale.ts +1 -1
- package/testUtils/setup.tsx +13 -0
- 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/Empty/index.d.ts +1 -2
- 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 +4 -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/AnimatedSpinner.d.ts +2 -1
- package/types/components/Spinner/StyledSpinner.d.ts +13 -12
- package/types/components/Spinner/index.d.ts +5 -1
- package/types/components/Swipeable/StyledSwipeable.d.ts +10 -0
- package/types/components/Swipeable/SwipeableAction.d.ts +27 -0
- package/types/components/Swipeable/index.d.ts +45 -0
- 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 +46 -45
- package/types/components/TextInput/index.d.ts +6 -6
- 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 +4 -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/spinner.d.ts +4 -1
- package/types/theme/components/swipeable.d.ts +9 -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 -10
- package/types/theme/getTheme.d.ts +4 -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/types.d.ts +2 -1
- package/types/utils/functions.d.ts +1 -0
- package/types/utils/hooks.d.ts +1 -1
- package/src/components/Icon/HeroIcon/selection.json +0 -7029
|
@@ -1,14 +1,22 @@
|
|
|
1
1
|
export type GlobalSystemPalette = {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
onGlobalPrimary: string;
|
|
5
|
-
globalSecondary: string;
|
|
6
|
-
globalPrimaryOutline: string;
|
|
7
|
-
globalSecondaryOutline: string;
|
|
2
|
+
// Updated 14 / Nov / 22
|
|
3
|
+
// Surfaces
|
|
8
4
|
defaultGlobalSurface: string;
|
|
9
5
|
onDefaultGlobalSurface: string;
|
|
10
6
|
neutralGlobalSurface: string;
|
|
7
|
+
mutedOnDefaultGlobalSurface: string;
|
|
8
|
+
inactiveOnDefaultGlobalSurface: string;
|
|
11
9
|
disabledOnDefaultGlobalSurface: string;
|
|
10
|
+
darkGlobalSurface: string;
|
|
11
|
+
onDarkGlobalSurface: string;
|
|
12
|
+
|
|
13
|
+
// Outlines
|
|
14
|
+
primaryOutline: string;
|
|
15
|
+
secondaryOutline: string;
|
|
16
|
+
inactiveOutline: string;
|
|
17
|
+
disabledOutline: string;
|
|
18
|
+
|
|
19
|
+
// Accents
|
|
12
20
|
error: string;
|
|
13
21
|
errorSurface: string;
|
|
14
22
|
onErrorSurface: string;
|
|
@@ -24,18 +32,29 @@ export type GlobalSystemPalette = {
|
|
|
24
32
|
archived: string;
|
|
25
33
|
archivedSurface: string;
|
|
26
34
|
onArchivedSurface: string;
|
|
35
|
+
// End of Updated 14 / Nov / 22
|
|
27
36
|
};
|
|
28
37
|
|
|
29
38
|
export type BrandSystemPalette = {
|
|
39
|
+
// Updated 14 / Nov / 22
|
|
30
40
|
primary: string;
|
|
31
|
-
mutedPrimary: string;
|
|
32
41
|
onPrimary: string;
|
|
33
42
|
secondary: string;
|
|
34
|
-
highlightedSecondarySurface: string; // TODO: Ask Ariel to add this
|
|
35
43
|
onSecondary: string;
|
|
44
|
+
defaultSurface: string;
|
|
45
|
+
highlightedSurface: string;
|
|
46
|
+
pressedSurface: string;
|
|
47
|
+
|
|
48
|
+
decorativePrimary: string;
|
|
49
|
+
decorativePrimarySurface: string;
|
|
50
|
+
// End of Updated 14 / Nov / 22
|
|
51
|
+
};
|
|
52
|
+
|
|
53
|
+
export type LegacyBrandSystemPalette = {
|
|
54
|
+
mutedPrimary: string;
|
|
55
|
+
highlightedSecondarySurface: string;
|
|
36
56
|
mutedSecondary: string;
|
|
37
57
|
disabledSecondary: string;
|
|
38
|
-
highlightedSurface: string;
|
|
39
58
|
lightHighlightedSurface: string;
|
|
40
59
|
};
|
|
41
60
|
|
|
@@ -43,19 +62,15 @@ export type LegacySystemPalette = {
|
|
|
43
62
|
globalPrimary: string;
|
|
44
63
|
globalPrimaryLight: string;
|
|
45
64
|
globalPrimaryBackground: string;
|
|
46
|
-
primary: string;
|
|
47
65
|
primaryLight: string;
|
|
48
66
|
primaryDark: string;
|
|
49
67
|
primaryBackground: string;
|
|
50
68
|
primaryBackgroundDark: string;
|
|
51
|
-
secondary: string;
|
|
52
69
|
secondaryLight: string;
|
|
53
70
|
secondaryBackground: string;
|
|
54
|
-
info: string;
|
|
55
71
|
infoMediumLight: string;
|
|
56
72
|
infoLight: string;
|
|
57
73
|
infoBackground: string;
|
|
58
|
-
success: string;
|
|
59
74
|
successLight: string;
|
|
60
75
|
successDark: string;
|
|
61
76
|
successBackground: string;
|
|
@@ -63,7 +78,6 @@ export type LegacySystemPalette = {
|
|
|
63
78
|
dangerMediumLight: string;
|
|
64
79
|
dangerLight: string;
|
|
65
80
|
dangerBackground: string;
|
|
66
|
-
warning: string;
|
|
67
81
|
warningLight: string;
|
|
68
82
|
warningDark: string;
|
|
69
83
|
warningBackground: string;
|
|
@@ -76,15 +90,21 @@ export type LegacySystemPalette = {
|
|
|
76
90
|
disabledLightText: string;
|
|
77
91
|
invertedText: string;
|
|
78
92
|
outline: string;
|
|
79
|
-
archived: string;
|
|
80
93
|
archivedLight: string;
|
|
81
94
|
archivedDark: string;
|
|
82
95
|
archivedBackground: string;
|
|
83
96
|
black: string;
|
|
84
97
|
inactiveBackground: string;
|
|
85
98
|
shadow: string;
|
|
99
|
+
|
|
100
|
+
mutedGlobalPrimary: string;
|
|
101
|
+
onGlobalPrimary: string;
|
|
102
|
+
globalSecondary: string;
|
|
103
|
+
globalPrimaryOutline: string;
|
|
104
|
+
globalSecondaryOutline: string;
|
|
86
105
|
};
|
|
87
106
|
|
|
88
107
|
export type SystemPalette = LegacySystemPalette &
|
|
108
|
+
LegacyBrandSystemPalette &
|
|
89
109
|
GlobalSystemPalette &
|
|
90
110
|
BrandSystemPalette;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { walletPalette as palette } from '@hero-design/colors';
|
|
2
|
+
import swag from './swag';
|
|
3
|
+
import type { SystemPalette, BrandSystemPalette } from './types';
|
|
4
|
+
|
|
5
|
+
const walletBrandSystemPallete: BrandSystemPalette = {
|
|
6
|
+
primary: palette.royalBlue,
|
|
7
|
+
onPrimary: palette.white,
|
|
8
|
+
secondary: palette.royalBlueDark30,
|
|
9
|
+
onSecondary: palette.white,
|
|
10
|
+
defaultSurface: palette.frenchSkyLight70,
|
|
11
|
+
highlightedSurface: palette.royalBlueLight90,
|
|
12
|
+
pressedSurface: palette.royalBlueLight10,
|
|
13
|
+
|
|
14
|
+
decorativePrimary: palette.frenchSky,
|
|
15
|
+
decorativePrimarySurface: palette.frenchSkyLight80,
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
const walletSystemPalette: SystemPalette = {
|
|
19
|
+
...swag,
|
|
20
|
+
...walletBrandSystemPallete,
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
export default walletSystemPalette;
|
|
@@ -1,19 +1,23 @@
|
|
|
1
1
|
import { workPalette as palette } from '@hero-design/colors';
|
|
2
2
|
import swag from './swag';
|
|
3
|
-
import type { SystemPalette } from './types';
|
|
3
|
+
import type { SystemPalette, BrandSystemPalette } from './types';
|
|
4
|
+
|
|
5
|
+
const workBrandSystemPallete: BrandSystemPalette = {
|
|
6
|
+
primary: palette.violet,
|
|
7
|
+
onPrimary: palette.white,
|
|
8
|
+
secondary: palette.violetLight30,
|
|
9
|
+
onSecondary: palette.white,
|
|
10
|
+
defaultSurface: palette.white,
|
|
11
|
+
highlightedSurface: palette.violetLight90,
|
|
12
|
+
pressedSurface: palette.violetLight20,
|
|
13
|
+
|
|
14
|
+
decorativePrimary: palette.gold,
|
|
15
|
+
decorativePrimarySurface: palette.goldLight80,
|
|
16
|
+
};
|
|
4
17
|
|
|
5
18
|
const workSystemPalette: SystemPalette = {
|
|
6
19
|
...swag,
|
|
7
|
-
|
|
8
|
-
primary: palette.gold,
|
|
9
|
-
mutedPrimary: palette.goldLight90,
|
|
10
|
-
onPrimary: palette.maasstrichtBlue,
|
|
11
|
-
secondary: palette.violet,
|
|
12
|
-
onSecondary: palette.white,
|
|
13
|
-
mutedSecondary: palette.maasstrichtBlueLight50,
|
|
14
|
-
disabledSecondary: palette.violetLight50,
|
|
15
|
-
highlightedSurface: palette.violetLight80,
|
|
16
|
-
lightHighlightedSurface: palette.violetLight90,
|
|
20
|
+
...workBrandSystemPallete,
|
|
17
21
|
};
|
|
18
22
|
|
|
19
23
|
export default workSystemPalette;
|
|
@@ -2,6 +2,8 @@ import { scale as defaultScale } from './scale';
|
|
|
2
2
|
import swagSystemPalette from './colors/swag';
|
|
3
3
|
import workSystemPalette from './colors/work';
|
|
4
4
|
import jobsSystemPalette from './colors/jobs';
|
|
5
|
+
import walletSystemPalette from './colors/wallet';
|
|
6
|
+
import eBensSystemPalette from './colors/eBens';
|
|
5
7
|
|
|
6
8
|
import { getFonts, getFontSizes, getLineHeights } from './typography';
|
|
7
9
|
import { getSpace } from './space';
|
|
@@ -43,4 +45,6 @@ export {
|
|
|
43
45
|
swagSystemPalette,
|
|
44
46
|
workSystemPalette,
|
|
45
47
|
jobsSystemPalette,
|
|
48
|
+
walletSystemPalette,
|
|
49
|
+
eBensSystemPalette,
|
|
46
50
|
};
|
package/src/theme/index.ts
CHANGED
|
@@ -5,6 +5,8 @@ import {
|
|
|
5
5
|
swagSystemPalette,
|
|
6
6
|
workSystemPalette,
|
|
7
7
|
jobsSystemPalette,
|
|
8
|
+
walletSystemPalette,
|
|
9
|
+
eBensSystemPalette,
|
|
8
10
|
} from './global';
|
|
9
11
|
|
|
10
12
|
import type { Theme } from './getTheme';
|
|
@@ -21,6 +23,8 @@ export {
|
|
|
21
23
|
swagSystemPalette,
|
|
22
24
|
workSystemPalette,
|
|
23
25
|
jobsSystemPalette,
|
|
26
|
+
walletSystemPalette,
|
|
27
|
+
eBensSystemPalette,
|
|
24
28
|
};
|
|
25
29
|
|
|
26
30
|
export default defaultTheme;
|
package/src/types.ts
CHANGED
|
@@ -12,6 +12,7 @@ import type {
|
|
|
12
12
|
ListRenderOptionInfo,
|
|
13
13
|
SectionListRenderOptionInfo,
|
|
14
14
|
} from './components/Select/types';
|
|
15
|
+
import { SwipeableProps } from './components/Swipeable';
|
|
15
16
|
|
|
16
17
|
export type {
|
|
17
18
|
BottomNavigationTabType,
|
|
@@ -20,6 +21,7 @@ export type {
|
|
|
20
21
|
MultiSelectProps,
|
|
21
22
|
ListRenderOptionInfo,
|
|
22
23
|
SectionListRenderOptionInfo,
|
|
24
|
+
SwipeableProps,
|
|
23
25
|
RichTextEditorProps,
|
|
24
26
|
RichTextEditorRef,
|
|
25
27
|
TabType,
|
package/src/utils/scale.ts
CHANGED
|
@@ -12,5 +12,5 @@ export const horizontalScale = (size: number) => {
|
|
|
12
12
|
return (shortDimension / BASE_WIDTH) * size;
|
|
13
13
|
};
|
|
14
14
|
|
|
15
|
-
export const scale = (size: number, factor
|
|
15
|
+
export const scale = (size: number, factor = 0.5) =>
|
|
16
16
|
size + (horizontalScale(size) - size) * factor;
|
package/testUtils/setup.tsx
CHANGED
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
/* eslint-disable react/prefer-stateless-function */
|
|
4
4
|
/* eslint-disable max-classes-per-file */
|
|
5
5
|
jest.mock('react-native-vector-icons', () => ({
|
|
6
|
+
createIconSet: jest.fn(() => 'HeroIcon'),
|
|
6
7
|
createIconSetFromIcoMoon: jest.fn(() => 'HeroIcon'),
|
|
7
8
|
}));
|
|
8
9
|
|
|
@@ -83,4 +84,16 @@ jest.mock('react-native-webview', () => {
|
|
|
83
84
|
|
|
84
85
|
jest.mock('hero-editor/dist/app.js', () => ({ default: '' }));
|
|
85
86
|
|
|
87
|
+
jest.mock('react-native-gesture-handler', () => {
|
|
88
|
+
const ReactNative = jest.requireActual('react-native');
|
|
89
|
+
|
|
90
|
+
return {
|
|
91
|
+
Swipeable: ReactNative.View,
|
|
92
|
+
GestureHandlerRootView: ReactNative.View,
|
|
93
|
+
FlatList: ReactNative.FlatList,
|
|
94
|
+
RectButton: ReactNative.Button,
|
|
95
|
+
TouchableOpacity: ReactNative.TouchableOpacity,
|
|
96
|
+
};
|
|
97
|
+
});
|
|
98
|
+
|
|
86
99
|
export {};
|
package/tsconfig.json
CHANGED
|
@@ -1,10 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"extends": "expo/tsconfig.base",
|
|
3
3
|
"compilerOptions": {
|
|
4
|
-
"target": "esnext",
|
|
5
|
-
"outDir": "types",
|
|
6
4
|
"declaration": true,
|
|
7
5
|
"jsx": "react-native",
|
|
6
|
+
"noFallthroughCasesInSwitch": true,
|
|
7
|
+
"noImplicitAny": true,
|
|
8
|
+
"noUnusedLocals": true,
|
|
9
|
+
"noUnusedParameters": true,
|
|
10
|
+
"outDir": "types",
|
|
11
|
+
"strict": true,
|
|
12
|
+
"strictNullChecks": true,
|
|
13
|
+
"target": "esnext",
|
|
8
14
|
"types": ["jest"]
|
|
9
15
|
},
|
|
10
16
|
"include": ["src"]
|
|
@@ -1,32 +1,32 @@
|
|
|
1
1
|
import { TouchableOpacity, View } from 'react-native';
|
|
2
2
|
export declare type Variant = 'default' | 'card';
|
|
3
3
|
export declare const StyledWrapper: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
4
|
-
theme?: import("@emotion/react").Theme;
|
|
5
|
-
as?: import("react").ElementType<any
|
|
4
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
5
|
+
as?: import("react").ElementType<any> | undefined;
|
|
6
6
|
}, {}, {
|
|
7
|
-
ref?: import("react").Ref<View
|
|
7
|
+
ref?: import("react").Ref<View> | undefined;
|
|
8
8
|
}>;
|
|
9
9
|
export declare const StyledItemWrapper: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
10
|
-
theme?: import("@emotion/react").Theme;
|
|
11
|
-
as?: import("react").ElementType<any
|
|
10
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
11
|
+
as?: import("react").ElementType<any> | undefined;
|
|
12
12
|
} & {
|
|
13
13
|
themeVariant: Variant;
|
|
14
14
|
}, {}, {
|
|
15
|
-
ref?: import("react").Ref<View
|
|
15
|
+
ref?: import("react").Ref<View> | undefined;
|
|
16
16
|
}>;
|
|
17
17
|
export declare const StyledHeaderWrapper: import("@emotion/native").StyledComponent<import("react-native").TouchableOpacityProps & {
|
|
18
|
-
theme?: import("@emotion/react").Theme;
|
|
19
|
-
as?: import("react").ElementType<any
|
|
18
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
19
|
+
as?: import("react").ElementType<any> | undefined;
|
|
20
20
|
}, {}, {
|
|
21
|
-
ref?: import("react").Ref<TouchableOpacity
|
|
21
|
+
ref?: import("react").Ref<TouchableOpacity> | undefined;
|
|
22
22
|
}>;
|
|
23
23
|
export declare const StyledCollapse: import("@emotion/native").StyledComponent<import("../Collapse").CollapseProps & {
|
|
24
|
-
theme?: import("@emotion/react").Theme;
|
|
25
|
-
as?: import("react").ElementType<any
|
|
24
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
25
|
+
as?: import("react").ElementType<any> | undefined;
|
|
26
26
|
}, {}, {}>;
|
|
27
27
|
export declare const Spacer: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
28
|
-
theme?: import("@emotion/react").Theme;
|
|
29
|
-
as?: import("react").ElementType<any
|
|
28
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
29
|
+
as?: import("react").ElementType<any> | undefined;
|
|
30
30
|
}, {}, {
|
|
31
|
-
ref?: import("react").Ref<View
|
|
31
|
+
ref?: import("react").Ref<View> | undefined;
|
|
32
32
|
}>;
|
|
@@ -1,38 +1,38 @@
|
|
|
1
1
|
import { TouchableOpacity, View } from 'react-native';
|
|
2
2
|
import type { ViewProps } from 'react-native';
|
|
3
3
|
declare const Container: import("@emotion/native").StyledComponent<ViewProps & {
|
|
4
|
-
theme?: import("@emotion/react").Theme;
|
|
5
|
-
as?: import("react").ElementType<any
|
|
4
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
5
|
+
as?: import("react").ElementType<any> | undefined;
|
|
6
6
|
} & {
|
|
7
7
|
themeVariant: 'default' | 'round';
|
|
8
8
|
themeIntent: 'success' | 'info' | 'warning' | 'error' | 'notification';
|
|
9
9
|
}, {}, {
|
|
10
|
-
ref?: import("react").Ref<View
|
|
10
|
+
ref?: import("react").Ref<View> | undefined;
|
|
11
11
|
}>;
|
|
12
12
|
declare const IconContainer: import("@emotion/native").StyledComponent<ViewProps & {
|
|
13
|
-
theme?: import("@emotion/react").Theme;
|
|
14
|
-
as?: import("react").ElementType<any
|
|
13
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
14
|
+
as?: import("react").ElementType<any> | undefined;
|
|
15
15
|
}, {}, {
|
|
16
|
-
ref?: import("react").Ref<View
|
|
16
|
+
ref?: import("react").Ref<View> | undefined;
|
|
17
17
|
}>;
|
|
18
18
|
declare const TextContainer: import("@emotion/native").StyledComponent<ViewProps & {
|
|
19
|
-
theme?: import("@emotion/react").Theme;
|
|
20
|
-
as?: import("react").ElementType<any
|
|
19
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
20
|
+
as?: import("react").ElementType<any> | undefined;
|
|
21
21
|
}, {}, {
|
|
22
|
-
ref?: import("react").Ref<View
|
|
22
|
+
ref?: import("react").Ref<View> | undefined;
|
|
23
23
|
}>;
|
|
24
24
|
declare const ContentContainer: import("@emotion/native").StyledComponent<ViewProps & {
|
|
25
|
-
theme?: import("@emotion/react").Theme;
|
|
26
|
-
as?: import("react").ElementType<any
|
|
25
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
26
|
+
as?: import("react").ElementType<any> | undefined;
|
|
27
27
|
} & {
|
|
28
28
|
showDivider: boolean;
|
|
29
29
|
}, {}, {
|
|
30
|
-
ref?: import("react").Ref<View
|
|
30
|
+
ref?: import("react").Ref<View> | undefined;
|
|
31
31
|
}>;
|
|
32
32
|
declare const CTAWrapper: import("@emotion/native").StyledComponent<import("react-native").TouchableOpacityProps & {
|
|
33
|
-
theme?: import("@emotion/react").Theme;
|
|
34
|
-
as?: import("react").ElementType<any
|
|
33
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
34
|
+
as?: import("react").ElementType<any> | undefined;
|
|
35
35
|
}, {}, {
|
|
36
|
-
ref?: import("react").Ref<TouchableOpacity
|
|
36
|
+
ref?: import("react").Ref<TouchableOpacity> | undefined;
|
|
37
37
|
}>;
|
|
38
38
|
export { Container, ContentContainer, TextContainer, IconContainer, CTAWrapper, };
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { TouchableOpacity, View } from 'react-native';
|
|
2
|
+
declare const StyledContainer: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
3
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
4
|
+
as?: import("react").ElementType<any> | undefined;
|
|
5
|
+
}, {}, {
|
|
6
|
+
ref?: import("react").Ref<View> | undefined;
|
|
7
|
+
}>;
|
|
8
|
+
declare const StyledContentContainer: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
9
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
10
|
+
as?: import("react").ElementType<any> | undefined;
|
|
11
|
+
} & {
|
|
12
|
+
themeHighlighted: boolean;
|
|
13
|
+
}, {}, {
|
|
14
|
+
ref?: import("react").Ref<View> | undefined;
|
|
15
|
+
}>;
|
|
16
|
+
declare const StyledTextContainer: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
17
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
18
|
+
as?: import("react").ElementType<any> | undefined;
|
|
19
|
+
}, {}, {
|
|
20
|
+
ref?: import("react").Ref<View> | undefined;
|
|
21
|
+
}>;
|
|
22
|
+
declare const StyledCTAWrapper: import("@emotion/native").StyledComponent<import("react-native").TouchableOpacityProps & {
|
|
23
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
24
|
+
as?: import("react").ElementType<any> | undefined;
|
|
25
|
+
}, {}, {
|
|
26
|
+
ref?: import("react").Ref<TouchableOpacity> | undefined;
|
|
27
|
+
}>;
|
|
28
|
+
export { StyledContainer, StyledContentContainer, StyledCTAWrapper, StyledTextContainer, };
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import type { ReactElement } from 'react';
|
|
2
|
+
import { StyleProp, ViewStyle } from 'react-native';
|
|
3
|
+
import { IconProps } from '../Icon';
|
|
4
|
+
import { ImageProps } from '../Image';
|
|
5
|
+
interface AttachmentProps {
|
|
6
|
+
/**
|
|
7
|
+
* Attachment filename.
|
|
8
|
+
*/
|
|
9
|
+
filename?: string;
|
|
10
|
+
/**
|
|
11
|
+
* Attachment preview element.
|
|
12
|
+
*/
|
|
13
|
+
previewElement: ReactElement<ImageProps | IconProps>;
|
|
14
|
+
/**
|
|
15
|
+
* Removing callback. When onRemove is available, a trash icon will be rendered on the right side. The callback will be called when user clicks on trash icon.
|
|
16
|
+
*/
|
|
17
|
+
onRemove?: () => void;
|
|
18
|
+
/**
|
|
19
|
+
* Downloading callback. When onDownload is available, a download icon will be rendered on the right side. The callback will be called when user clicks on download icon.
|
|
20
|
+
*/
|
|
21
|
+
onDownload?: () => void;
|
|
22
|
+
/**
|
|
23
|
+
* The background of the attachment's content will be highlighted if backgroundHighlighted is true.
|
|
24
|
+
* Default value is false.
|
|
25
|
+
*/
|
|
26
|
+
backgroundHighlighted?: boolean;
|
|
27
|
+
/**
|
|
28
|
+
* Addtional style.
|
|
29
|
+
*/
|
|
30
|
+
style?: StyleProp<ViewStyle>;
|
|
31
|
+
/**
|
|
32
|
+
* Testing id of the component.
|
|
33
|
+
*/
|
|
34
|
+
testID?: string;
|
|
35
|
+
}
|
|
36
|
+
declare const Attachment: ({ filename, previewElement, onRemove, onDownload, backgroundHighlighted, style, testID, }: AttachmentProps) => JSX.Element;
|
|
37
|
+
export default Attachment;
|
|
@@ -2,44 +2,44 @@ import { View, Image, TouchableOpacity, Text } from 'react-native';
|
|
|
2
2
|
declare type ThemeSize = 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge' | 'xxxlarge' | 'xxxxlarge' | 'xxxxxlarge';
|
|
3
3
|
declare type ThemeIntent = 'primary' | 'info' | 'danger' | 'success' | 'warning';
|
|
4
4
|
declare const StyledPressable: import("@emotion/native").StyledComponent<import("react-native").TouchableOpacityProps & {
|
|
5
|
-
theme?: import("@emotion/react").Theme;
|
|
6
|
-
as?: import("react").ElementType<any
|
|
5
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
6
|
+
as?: import("react").ElementType<any> | undefined;
|
|
7
7
|
} & {
|
|
8
8
|
themeSize: ThemeSize;
|
|
9
9
|
themeIntent: ThemeIntent;
|
|
10
10
|
}, {}, {
|
|
11
|
-
ref?: import("react").Ref<TouchableOpacity
|
|
11
|
+
ref?: import("react").Ref<TouchableOpacity> | undefined;
|
|
12
12
|
}>;
|
|
13
13
|
declare const StyledView: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
14
|
-
theme?: import("@emotion/react").Theme;
|
|
15
|
-
as?: import("react").ElementType<any
|
|
14
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
15
|
+
as?: import("react").ElementType<any> | undefined;
|
|
16
16
|
} & {
|
|
17
17
|
themeSize: ThemeSize;
|
|
18
18
|
themeIntent: ThemeIntent;
|
|
19
19
|
}, {}, {
|
|
20
|
-
ref?: import("react").Ref<View
|
|
20
|
+
ref?: import("react").Ref<View> | undefined;
|
|
21
21
|
}>;
|
|
22
22
|
declare const StyledTextWrapper: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
23
|
-
theme?: import("@emotion/react").Theme;
|
|
24
|
-
as?: import("react").ElementType<any
|
|
23
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
24
|
+
as?: import("react").ElementType<any> | undefined;
|
|
25
25
|
}, {}, {
|
|
26
|
-
ref?: import("react").Ref<View
|
|
26
|
+
ref?: import("react").Ref<View> | undefined;
|
|
27
27
|
}>;
|
|
28
28
|
declare const StyledText: import("@emotion/native").StyledComponent<import("react-native").TextProps & {
|
|
29
|
-
theme?: import("@emotion/react").Theme;
|
|
30
|
-
as?: import("react").ElementType<any
|
|
29
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
30
|
+
as?: import("react").ElementType<any> | undefined;
|
|
31
31
|
} & {
|
|
32
32
|
themeSize: ThemeSize;
|
|
33
33
|
themeIntent: ThemeIntent;
|
|
34
34
|
}, {}, {
|
|
35
|
-
ref?: import("react").Ref<Text
|
|
35
|
+
ref?: import("react").Ref<Text> | undefined;
|
|
36
36
|
}>;
|
|
37
37
|
declare const StyledImage: import("@emotion/native").StyledComponent<import("react-native").ImageProps & {
|
|
38
|
-
theme?: import("@emotion/react").Theme;
|
|
39
|
-
as?: import("react").ElementType<any
|
|
38
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
39
|
+
as?: import("react").ElementType<any> | undefined;
|
|
40
40
|
} & {
|
|
41
41
|
themeSize: ThemeSize;
|
|
42
42
|
}, {}, {
|
|
43
|
-
ref?: import("react").Ref<Image
|
|
43
|
+
ref?: import("react").Ref<Image> | undefined;
|
|
44
44
|
}>;
|
|
45
45
|
export { StyledPressable, StyledView, StyledImage, StyledTextWrapper, StyledText, };
|
|
@@ -21,5 +21,5 @@ interface AvatarProps extends ViewProps {
|
|
|
21
21
|
*/
|
|
22
22
|
testID?: string;
|
|
23
23
|
}
|
|
24
|
-
declare const Avatar: ({ onPress, source, testID, style, title, size, intent, }: AvatarProps) => JSX.Element;
|
|
24
|
+
declare const Avatar: ({ onPress, source, testID, style, title, size, intent, }: AvatarProps) => JSX.Element | null;
|
|
25
25
|
export default Avatar;
|
|
@@ -10,7 +10,7 @@ export interface StatusProps extends ViewProps {
|
|
|
10
10
|
/**
|
|
11
11
|
* Visual intent color to apply to Status Badge.
|
|
12
12
|
*/
|
|
13
|
-
intent?: 'success' | 'warning' | 'danger' | 'info' | 'archived';
|
|
13
|
+
intent?: 'success' | 'warning' | 'danger' | 'info' | 'archived' | 'primary';
|
|
14
14
|
/**
|
|
15
15
|
* Additional style.
|
|
16
16
|
*/
|
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
import { Animated, Text } from 'react-native';
|
|
2
|
-
declare type ThemeIntent = 'success' | 'warning' | 'danger' | 'info' | 'archived';
|
|
2
|
+
declare type ThemeIntent = 'primary' | 'success' | 'warning' | 'danger' | 'info' | 'archived';
|
|
3
3
|
declare type ThemePadding = 'narrowContent' | 'wideContent';
|
|
4
4
|
declare const StyledView: import("@emotion/native").StyledComponent<Animated.AnimatedProps<import("react-native").ViewProps & import("react").RefAttributes<import("react-native").View>> & {
|
|
5
5
|
children?: import("react").ReactNode;
|
|
6
6
|
} & {
|
|
7
|
-
theme?: import("@emotion/react").Theme;
|
|
8
|
-
as?: import("react").ElementType<any
|
|
7
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
8
|
+
as?: import("react").ElementType<any> | undefined;
|
|
9
9
|
} & {
|
|
10
10
|
themeIntent: ThemeIntent;
|
|
11
11
|
themePadding: ThemePadding;
|
|
12
12
|
}, {}, {}>;
|
|
13
13
|
declare const StyledText: import("@emotion/native").StyledComponent<import("react-native").TextProps & {
|
|
14
|
-
theme?: import("@emotion/react").Theme;
|
|
15
|
-
as?: import("react").ElementType<any
|
|
14
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
15
|
+
as?: import("react").ElementType<any> | undefined;
|
|
16
16
|
}, {}, {
|
|
17
|
-
ref?: import("react").Ref<Text
|
|
17
|
+
ref?: import("react").Ref<Text> | undefined;
|
|
18
18
|
}>;
|
|
19
19
|
declare const StyledStatus: import("@emotion/native").StyledComponent<Animated.AnimatedProps<import("react-native").ViewProps & import("react").RefAttributes<import("react-native").View>> & {
|
|
20
20
|
children?: import("react").ReactNode;
|
|
21
21
|
} & {
|
|
22
|
-
theme?: import("@emotion/react").Theme;
|
|
23
|
-
as?: import("react").ElementType<any
|
|
22
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
23
|
+
as?: import("react").ElementType<any> | undefined;
|
|
24
24
|
} & {
|
|
25
25
|
themeIntent: ThemeIntent;
|
|
26
26
|
}, {}, {}>;
|
|
@@ -17,7 +17,7 @@ interface BadgeProps extends React.ComponentProps<typeof Animated.View> {
|
|
|
17
17
|
/**
|
|
18
18
|
* Visual intent color to apply to Badge.
|
|
19
19
|
*/
|
|
20
|
-
intent?: 'success' | 'warning' | 'danger' | 'info' | 'archived';
|
|
20
|
+
intent?: 'primary' | 'success' | 'warning' | 'danger' | 'info' | 'archived';
|
|
21
21
|
/**
|
|
22
22
|
* Additional style.
|
|
23
23
|
*/
|
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
import { View } from 'react-native';
|
|
2
2
|
declare const BottomNavigationTab: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
3
|
-
theme?: import("@emotion/react").Theme;
|
|
4
|
-
as?: import("react").ElementType<any
|
|
3
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
4
|
+
as?: import("react").ElementType<any> | undefined;
|
|
5
5
|
} & {
|
|
6
|
-
themeVisibility?: boolean;
|
|
6
|
+
themeVisibility?: boolean | undefined;
|
|
7
7
|
}, {}, {
|
|
8
|
-
ref?: import("react").Ref<View
|
|
8
|
+
ref?: import("react").Ref<View> | undefined;
|
|
9
9
|
}>;
|
|
10
10
|
declare const BottomNavigationContainer: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
11
|
-
theme?: import("@emotion/react").Theme;
|
|
12
|
-
as?: import("react").ElementType<any
|
|
11
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
12
|
+
as?: import("react").ElementType<any> | undefined;
|
|
13
13
|
}, {}, {
|
|
14
|
-
ref?: import("react").Ref<View
|
|
14
|
+
ref?: import("react").Ref<View> | undefined;
|
|
15
15
|
}>;
|
|
16
16
|
declare const ContentWrapper: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
17
|
-
theme?: import("@emotion/react").Theme;
|
|
18
|
-
as?: import("react").ElementType<any
|
|
17
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
18
|
+
as?: import("react").ElementType<any> | undefined;
|
|
19
19
|
}, {}, {
|
|
20
|
-
ref?: import("react").Ref<View
|
|
20
|
+
ref?: import("react").Ref<View> | undefined;
|
|
21
21
|
}>;
|
|
22
22
|
declare const BottomBarWrapper: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
23
|
-
theme?: import("@emotion/react").Theme;
|
|
24
|
-
as?: import("react").ElementType<any
|
|
23
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
24
|
+
as?: import("react").ElementType<any> | undefined;
|
|
25
25
|
} & {
|
|
26
26
|
themeInsets: {
|
|
27
27
|
top: number;
|
|
@@ -30,22 +30,22 @@ declare const BottomBarWrapper: import("@emotion/native").StyledComponent<import
|
|
|
30
30
|
left: number;
|
|
31
31
|
};
|
|
32
32
|
}, {}, {
|
|
33
|
-
ref?: import("react").Ref<View
|
|
33
|
+
ref?: import("react").Ref<View> | undefined;
|
|
34
34
|
}>;
|
|
35
35
|
declare const BottomBar: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
36
|
-
theme?: import("@emotion/react").Theme;
|
|
37
|
-
as?: import("react").ElementType<any
|
|
36
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
37
|
+
as?: import("react").ElementType<any> | undefined;
|
|
38
38
|
}, {}, {
|
|
39
|
-
ref?: import("react").Ref<View
|
|
39
|
+
ref?: import("react").Ref<View> | undefined;
|
|
40
40
|
}>;
|
|
41
41
|
declare const BottomBarItem: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
42
|
-
theme?: import("@emotion/react").Theme;
|
|
43
|
-
as?: import("react").ElementType<any
|
|
42
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
43
|
+
as?: import("react").ElementType<any> | undefined;
|
|
44
44
|
}, {}, {
|
|
45
|
-
ref?: import("react").Ref<View
|
|
45
|
+
ref?: import("react").Ref<View> | undefined;
|
|
46
46
|
}>;
|
|
47
47
|
declare const StyledBottomBarText: import("@emotion/native").StyledComponent<import("../Typography/Text").TextProps & {
|
|
48
|
-
theme?: import("@emotion/react").Theme;
|
|
49
|
-
as?: import("react").ElementType<any
|
|
48
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
49
|
+
as?: import("react").ElementType<any> | undefined;
|
|
50
50
|
}, {}, {}>;
|
|
51
51
|
export { BottomBar, BottomBarItem, BottomNavigationTab, BottomNavigationContainer, BottomBarWrapper, ContentWrapper, StyledBottomBarText, };
|