@hero-design/rn 7.24.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 +845 -752
- package/lib/assets/fonts/hero-icons.ttf +0 -0
- package/lib/index.js +846 -750
- package/package.json +6 -5
- 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 +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/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
|
@@ -102,7 +102,7 @@ exports[`ActionGroup has active false 1`] = `
|
|
|
102
102
|
Object {
|
|
103
103
|
"alignItems": "center",
|
|
104
104
|
"alignSelf": "flex-end",
|
|
105
|
-
"backgroundColor": "#
|
|
105
|
+
"backgroundColor": "#401960",
|
|
106
106
|
"borderRadius": 999,
|
|
107
107
|
"flexDirection": "row",
|
|
108
108
|
"margin": 8,
|
|
@@ -181,7 +181,7 @@ exports[`ActionGroup has active false 1`] = `
|
|
|
181
181
|
Object {
|
|
182
182
|
"alignItems": "center",
|
|
183
183
|
"alignSelf": "flex-end",
|
|
184
|
-
"backgroundColor": "#
|
|
184
|
+
"backgroundColor": "#401960",
|
|
185
185
|
"borderRadius": 999,
|
|
186
186
|
"flexDirection": "row",
|
|
187
187
|
"margin": 8,
|
|
@@ -260,7 +260,7 @@ exports[`ActionGroup has active false 1`] = `
|
|
|
260
260
|
Object {
|
|
261
261
|
"alignItems": "center",
|
|
262
262
|
"alignSelf": "flex-end",
|
|
263
|
-
"backgroundColor": "#
|
|
263
|
+
"backgroundColor": "#401960",
|
|
264
264
|
"borderRadius": 999,
|
|
265
265
|
"flexDirection": "row",
|
|
266
266
|
"margin": 8,
|
|
@@ -339,7 +339,7 @@ exports[`ActionGroup has active false 1`] = `
|
|
|
339
339
|
Object {
|
|
340
340
|
"alignItems": "center",
|
|
341
341
|
"alignSelf": "flex-end",
|
|
342
|
-
"backgroundColor": "#
|
|
342
|
+
"backgroundColor": "#401960",
|
|
343
343
|
"borderRadius": 999,
|
|
344
344
|
"flexDirection": "row",
|
|
345
345
|
"margin": 8,
|
|
@@ -418,7 +418,7 @@ exports[`ActionGroup has active false 1`] = `
|
|
|
418
418
|
Object {
|
|
419
419
|
"alignItems": "center",
|
|
420
420
|
"alignSelf": "flex-end",
|
|
421
|
-
"backgroundColor": "#
|
|
421
|
+
"backgroundColor": "#401960",
|
|
422
422
|
"borderRadius": 999,
|
|
423
423
|
"flexDirection": "row",
|
|
424
424
|
"margin": 8,
|
|
@@ -498,7 +498,7 @@ exports[`ActionGroup has active false 1`] = `
|
|
|
498
498
|
Object {
|
|
499
499
|
"alignItems": "center",
|
|
500
500
|
"alignSelf": "flex-start",
|
|
501
|
-
"backgroundColor": "#
|
|
501
|
+
"backgroundColor": "#401960",
|
|
502
502
|
"borderRadius": 999,
|
|
503
503
|
"flexDirection": "row",
|
|
504
504
|
"justifyContent": "center",
|
|
@@ -665,7 +665,7 @@ exports[`ActionGroup has active true 1`] = `
|
|
|
665
665
|
Object {
|
|
666
666
|
"alignItems": "center",
|
|
667
667
|
"alignSelf": "flex-end",
|
|
668
|
-
"backgroundColor": "#
|
|
668
|
+
"backgroundColor": "#401960",
|
|
669
669
|
"borderRadius": 999,
|
|
670
670
|
"flexDirection": "row",
|
|
671
671
|
"margin": 8,
|
|
@@ -744,7 +744,7 @@ exports[`ActionGroup has active true 1`] = `
|
|
|
744
744
|
Object {
|
|
745
745
|
"alignItems": "center",
|
|
746
746
|
"alignSelf": "flex-end",
|
|
747
|
-
"backgroundColor": "#
|
|
747
|
+
"backgroundColor": "#401960",
|
|
748
748
|
"borderRadius": 999,
|
|
749
749
|
"flexDirection": "row",
|
|
750
750
|
"margin": 8,
|
|
@@ -823,7 +823,7 @@ exports[`ActionGroup has active true 1`] = `
|
|
|
823
823
|
Object {
|
|
824
824
|
"alignItems": "center",
|
|
825
825
|
"alignSelf": "flex-end",
|
|
826
|
-
"backgroundColor": "#
|
|
826
|
+
"backgroundColor": "#401960",
|
|
827
827
|
"borderRadius": 999,
|
|
828
828
|
"flexDirection": "row",
|
|
829
829
|
"margin": 8,
|
|
@@ -902,7 +902,7 @@ exports[`ActionGroup has active true 1`] = `
|
|
|
902
902
|
Object {
|
|
903
903
|
"alignItems": "center",
|
|
904
904
|
"alignSelf": "flex-end",
|
|
905
|
-
"backgroundColor": "#
|
|
905
|
+
"backgroundColor": "#401960",
|
|
906
906
|
"borderRadius": 999,
|
|
907
907
|
"flexDirection": "row",
|
|
908
908
|
"margin": 8,
|
|
@@ -981,7 +981,7 @@ exports[`ActionGroup has active true 1`] = `
|
|
|
981
981
|
Object {
|
|
982
982
|
"alignItems": "center",
|
|
983
983
|
"alignSelf": "flex-end",
|
|
984
|
-
"backgroundColor": "#
|
|
984
|
+
"backgroundColor": "#401960",
|
|
985
985
|
"borderRadius": 999,
|
|
986
986
|
"flexDirection": "row",
|
|
987
987
|
"margin": 8,
|
|
@@ -1061,7 +1061,7 @@ exports[`ActionGroup has active true 1`] = `
|
|
|
1061
1061
|
Object {
|
|
1062
1062
|
"alignItems": "center",
|
|
1063
1063
|
"alignSelf": "flex-start",
|
|
1064
|
-
"backgroundColor": "#
|
|
1064
|
+
"backgroundColor": "#401960",
|
|
1065
1065
|
"borderRadius": 999,
|
|
1066
1066
|
"flexDirection": "row",
|
|
1067
1067
|
"justifyContent": "center",
|
|
@@ -16,7 +16,7 @@ exports[`StyledFABContainer renders correctly 1`] = `
|
|
|
16
16
|
Object {
|
|
17
17
|
"alignItems": "center",
|
|
18
18
|
"alignSelf": "flex-start",
|
|
19
|
-
"backgroundColor": "#
|
|
19
|
+
"backgroundColor": "#401960",
|
|
20
20
|
"borderRadius": 999,
|
|
21
21
|
"flexDirection": "row",
|
|
22
22
|
"justifyContent": "center",
|
|
@@ -16,7 +16,7 @@ exports[`FAB when animated is false renders StyledFABIcon 1`] = `
|
|
|
16
16
|
Object {
|
|
17
17
|
"alignItems": "center",
|
|
18
18
|
"alignSelf": "flex-start",
|
|
19
|
-
"backgroundColor": "#
|
|
19
|
+
"backgroundColor": "#401960",
|
|
20
20
|
"borderRadius": 999,
|
|
21
21
|
"flexDirection": "row",
|
|
22
22
|
"justifyContent": "center",
|
|
@@ -72,7 +72,7 @@ exports[`FAB when animated is true renders animatedFABIcon 1`] = `
|
|
|
72
72
|
Object {
|
|
73
73
|
"alignItems": "center",
|
|
74
74
|
"alignSelf": "flex-start",
|
|
75
|
-
"backgroundColor": "#
|
|
75
|
+
"backgroundColor": "#401960",
|
|
76
76
|
"borderRadius": 999,
|
|
77
77
|
"flexDirection": "row",
|
|
78
78
|
"justifyContent": "center",
|
|
@@ -142,7 +142,7 @@ exports[`FAB when title has value renders correctly 1`] = `
|
|
|
142
142
|
Object {
|
|
143
143
|
"alignItems": "center",
|
|
144
144
|
"alignSelf": "flex-start",
|
|
145
|
-
"backgroundColor": "#
|
|
145
|
+
"backgroundColor": "#401960",
|
|
146
146
|
"borderRadius": 999,
|
|
147
147
|
"flexDirection": "row",
|
|
148
148
|
"justifyContent": "center",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"activate":
|
|
1
|
+
{"activate":59000,"add-emoji":59001,"add-person":59002,"adjustment":59003,"alignment":59004,"antenna":59005,"archive":59006,"assignment-warning":59007,"bank":59008,"bell":59009,"billing":59010,"bookmark":59011,"box-check":59012,"box":59013,"buildings":59014,"cake":59015,"calendar-clock":59016,"calendar":59017,"candy-box-menu":59018,"carat-down-small":59019,"carat-down":59020,"carat-left-small":59021,"carat-left":59022,"carat-right-small":59023,"carat-right":59024,"carat-up-small":59025,"carat-up":59026,"check-radio":59027,"circle-add":59028,"circle-cancel":59029,"circle-check":59030,"circle-down":59031,"circle-info":59032,"circle-left":59033,"circle-ok":59034,"circle-pencil":59035,"circle-question":59036,"circle-remove":59037,"circle-right":59038,"circle-up":59039,"circle-warning":59040,"clock-3":59041,"clock":59042,"cloud-download":59043,"cloud-upload":59044,"cog":59045,"coin":59046,"contacts":59047,"credit-card":59048,"diamond":59049,"direction-arrows":59050,"directory":59051,"document":59052,"dollar-coin-shine":59053,"double-buildings":59054,"edit-template":59055,"envelope":59056,"expense":59057,"eye-circle":59058,"eye-invisible":59059,"eye":59060,"face-meh":59061,"face-sad":59062,"face-smiley":59063,"feed":59064,"feedbacks":59065,"file-certified":59066,"file-clone":59067,"file-copy":59068,"file-csv":59069,"file-dispose":59070,"file-doc":59071,"file-excel":59072,"file-export":59073,"file-lock":59074,"file-pdf":59075,"file-powerpoint":59076,"file-search":59077,"file-secured":59078,"file-sheets":59079,"file-slide":59080,"file-verified":59081,"file-word":59082,"file":59083,"filter":59084,"folder-user":59085,"folder":59086,"format-bold":59087,"format-heading1":59088,"format-heading2":59089,"format-italic":59090,"format-list-bulleted":59091,"format-list-numbered":59092,"format-underlined":59093,"funnel-filter":59094,"global-dollar":59095,"globe":59096,"graduation-cap":59097,"graph":59098,"happy-sun":59099,"health-bag":59100,"heart":59101,"home":59102,"image":59103,"import":59104,"incident-siren":59105,"instapay":59106,"list":59107,"loading-2":59108,"loading":59109,"location":59110,"lock":59111,"looks-one":59112,"looks-two":59113,"media-content":59114,"menu":59115,"moneybag":59116,"moon":59117,"multiple-stars":59118,"multiple-users":59119,"node":59120,"open-folder":59121,"paperclip":59122,"payment-summary":59123,"pencil":59124,"phone":59125,"piggy-bank":59126,"plane":59127,"play-circle":59128,"print":59129,"raising-hands":59130,"reply-arrow":59131,"reply":59132,"reschedule":59133,"rostering":59134,"save":59135,"schedule-send":59136,"schedule":59137,"search-person":59138,"send":59139,"speaker-active":59140,"speaker":59141,"star-award":59142,"star-badge":59143,"star-medal":59144,"star":59145,"steps-circle":59146,"stopwatch":59147,"suitcase":59148,"survey":59149,"swag":59150,"switch":59151,"tag":59152,"target":59153,"teams":59154,"timesheet":59155,"touch-id":59156,"trash-bin":59157,"unlock":59158,"user":59159,"video-1":59160,"video-2":59161,"wallet":59162,"warning":59163,"activate-outlined":59164,"add-credit-card-outlined":59165,"add-person-outlined":59166,"add-section-outlined":59167,"add-time-outlined":59168,"add":59169,"adjustment-outlined":59170,"alignment-2-outlined":59171,"alignment-outlined":59172,"all-caps":59173,"arrow-down":59174,"arrow-downwards":59175,"arrow-left":59176,"arrow-leftwards":59177,"arrow-right":59178,"arrow-rightwards":59179,"arrow-up":59180,"arrow-upwards":59181,"at-sign":59182,"bell-active-outlined":59183,"bell-outlined":59184,"bell-slash-outlined":59185,"billing-outlined":59186,"body-outlined":59187,"bold":59188,"bookmark-added-outlined":59189,"bookmark-outlined":59190,"box-check-outlined":59191,"box-outlined":59192,"bullet-points":59193,"cake-outlined":59194,"calendar-dates-outlined":59195,"calendar-star-outlined":59196,"camera-outlined":59197,"cancel":59198,"chat-bubble-outlined":59199,"chat-unread-outlined":59200,"checkmark":59201,"circle-add-outlined":59202,"circle-cancel-outlined":59203,"circle-down-outlined":59204,"circle-info-outlined":59205,"circle-left-outlined":59206,"circle-ok-outlined":59207,"circle-question-outlined":59208,"circle-remove-outlined":59209,"circle-right-outlined":59210,"circle-up-outlined":59211,"circle-warning-outlined":59212,"clock-2-outlined":59213,"clock-outlined":59214,"cog-outlined":59215,"coin-outlined":59216,"comment-outlined":59217,"contacts-outlined":59218,"credit-card-outlined":59219,"cup-outlined":59220,"direction-arrows-outlined":59221,"directory-outlined":59222,"document-outlined":59223,"dollar-card-outlined":59224,"dollar-coin-shine-outlined":59225,"dollar-sign":59226,"double-buildings-outlined":59227,"double-left-arrows":59228,"double-right-arrows":59229,"download-outlined":59230,"edit-template-outlined":59231,"email-outlined":59232,"enter-arrow":59233,"envelope-outlined":59234,"expense-outlined":59235,"explore-outlined":59236,"external-link":59237,"eye-invisible-outlined":59238,"eye-outlined":59239,"face-id":59240,"face-meh-outlined":59241,"face-open-smiley-outlined":59242,"face-sad-outlined":59243,"face-smiley-outlined":59244,"feed-outlined":59245,"file-certified-outlined":59246,"file-clone-outlined":59247,"file-copy-outlined":59248,"file-dispose-outlined":59249,"file-dollar-outlined":59250,"file-download-outlined":59251,"file-export-outlined":59252,"file-lock-outlined":59253,"file-outlined":59254,"file-search-outlined":59255,"file-secured-outlined":59256,"file-verified-outlined":59257,"filter-outlined":59258,"folder-outlined":59259,"folder-user-outlined":59260,"funnel-filter-outline":59261,"graph-outlined":59262,"happy-sun-outlined":59263,"health-bag-outlined":59264,"heart-outlined":59265,"home-active-outlined":59266,"home-outlined":59267,"id-card-outlined":59268,"image-outlined":59269,"import-outlined":59270,"instapay-outlined":59271,"italic":59272,"link-1":59273,"link-2":59274,"list-outlined":59275,"live-help-outlined":59276,"location-outlined":59277,"lock-outlined":59278,"locked-file-outlined":59279,"log-out":59280,"media-content-outlined":59281,"menu-close":59282,"menu-expand":59283,"menu-fold-outlined":59284,"menu-unfold-outlined":59285,"moneybag-outlined":59286,"moon-outlined":59287,"more-horizontal":59288,"more-vertical":59289,"multiple-folders-outlined":59290,"multiple-users-outlined":59291,"near-me-outlined":59292,"node-outlined":59293,"number-points":59294,"number":59295,"payment-summary-outlined":59296,"payslip-outlined":59297,"pencil-outlined":59298,"percentage":59299,"phone-outlined":59300,"piggy-bank-outlined":59301,"plane-outlined":59302,"play-circle-outlined":59303,"print-outlined":59304,"qr-code-outlined":59305,"re-assign":59306,"redeem":59307,"refresh":59308,"remove":59309,"reply-outlined":59310,"restart":59311,"return-arrow":59312,"rostering-outlined":59313,"save-outlined":59314,"schedule-outlined":59315,"search-outlined":59316,"search-secured-outlined":59317,"send-outlined":59318,"share-1":59319,"share-2":59320,"single-down-arrow":59321,"single-left-arrow":59322,"single-right-arrow":59323,"single-up-arrow":59324,"speaker-active-outlined":59325,"speaker-outlined":59326,"star-outlined":59327,"stopwatch-outlined":59328,"strikethrough":59329,"suitcase-outlined":59330,"survey-outlined":59331,"switch-outlined":59332,"sync":59333,"target-outlined":59334,"timesheet-outlined":59335,"transfer":59336,"trash-bin-outlined":59337,"umbrela-outlined":59338,"unavailable":59339,"underline":59340,"unlock-outlined":59341,"upload-outlined":59342,"user-circle-outlined":59343,"user-outlined":59344,"user-rectangle-outlined":59345,"video-1-outlined":59346,"video-2-outlined":59347,"wallet-outlined":59348}
|
|
@@ -5,7 +5,9 @@ const IconList = [
|
|
|
5
5
|
'add-person',
|
|
6
6
|
'adjustment',
|
|
7
7
|
'alignment',
|
|
8
|
+
'antenna',
|
|
8
9
|
'archive',
|
|
10
|
+
'assignment-warning',
|
|
9
11
|
'bank',
|
|
10
12
|
'bell',
|
|
11
13
|
'billing',
|
|
@@ -19,9 +21,13 @@ const IconList = [
|
|
|
19
21
|
'candy-box-menu',
|
|
20
22
|
'carat-down-small',
|
|
21
23
|
'carat-down',
|
|
24
|
+
'carat-left-small',
|
|
22
25
|
'carat-left',
|
|
26
|
+
'carat-right-small',
|
|
23
27
|
'carat-right',
|
|
28
|
+
'carat-up-small',
|
|
24
29
|
'carat-up',
|
|
30
|
+
'check-radio',
|
|
25
31
|
'circle-add',
|
|
26
32
|
'circle-cancel',
|
|
27
33
|
'circle-check',
|
|
@@ -78,6 +84,7 @@ const IconList = [
|
|
|
78
84
|
'file-verified',
|
|
79
85
|
'file-word',
|
|
80
86
|
'file',
|
|
87
|
+
'filter',
|
|
81
88
|
'folder-user',
|
|
82
89
|
'folder',
|
|
83
90
|
'format-bold',
|
|
@@ -107,7 +114,6 @@ const IconList = [
|
|
|
107
114
|
'lock',
|
|
108
115
|
'looks-one',
|
|
109
116
|
'looks-two',
|
|
110
|
-
'mandatory',
|
|
111
117
|
'media-content',
|
|
112
118
|
'menu',
|
|
113
119
|
'moneybag',
|
|
@@ -125,7 +131,6 @@ const IconList = [
|
|
|
125
131
|
'play-circle',
|
|
126
132
|
'print',
|
|
127
133
|
'raising-hands',
|
|
128
|
-
'rectangle-mandatory',
|
|
129
134
|
'reply-arrow',
|
|
130
135
|
'reply',
|
|
131
136
|
'reschedule',
|
|
@@ -135,6 +140,7 @@ const IconList = [
|
|
|
135
140
|
'schedule',
|
|
136
141
|
'search-person',
|
|
137
142
|
'send',
|
|
143
|
+
'speaker-active',
|
|
138
144
|
'speaker',
|
|
139
145
|
'star-award',
|
|
140
146
|
'star-badge',
|
|
@@ -156,8 +162,10 @@ const IconList = [
|
|
|
156
162
|
'user',
|
|
157
163
|
'video-1',
|
|
158
164
|
'video-2',
|
|
165
|
+
'wallet',
|
|
159
166
|
'warning',
|
|
160
167
|
'activate-outlined',
|
|
168
|
+
'add-credit-card-outlined',
|
|
161
169
|
'add-person-outlined',
|
|
162
170
|
'add-section-outlined',
|
|
163
171
|
'add-time-outlined',
|
|
@@ -167,14 +175,21 @@ const IconList = [
|
|
|
167
175
|
'alignment-outlined',
|
|
168
176
|
'all-caps',
|
|
169
177
|
'arrow-down',
|
|
178
|
+
'arrow-downwards',
|
|
170
179
|
'arrow-left',
|
|
180
|
+
'arrow-leftwards',
|
|
171
181
|
'arrow-right',
|
|
182
|
+
'arrow-rightwards',
|
|
172
183
|
'arrow-up',
|
|
184
|
+
'arrow-upwards',
|
|
173
185
|
'at-sign',
|
|
186
|
+
'bell-active-outlined',
|
|
174
187
|
'bell-outlined',
|
|
188
|
+
'bell-slash-outlined',
|
|
175
189
|
'billing-outlined',
|
|
176
190
|
'body-outlined',
|
|
177
191
|
'bold',
|
|
192
|
+
'bookmark-added-outlined',
|
|
178
193
|
'bookmark-outlined',
|
|
179
194
|
'box-check-outlined',
|
|
180
195
|
'box-outlined',
|
|
@@ -184,6 +199,8 @@ const IconList = [
|
|
|
184
199
|
'calendar-star-outlined',
|
|
185
200
|
'camera-outlined',
|
|
186
201
|
'cancel',
|
|
202
|
+
'chat-bubble-outlined',
|
|
203
|
+
'chat-unread-outlined',
|
|
187
204
|
'checkmark',
|
|
188
205
|
'circle-add-outlined',
|
|
189
206
|
'circle-cancel-outlined',
|
|
@@ -203,9 +220,11 @@ const IconList = [
|
|
|
203
220
|
'comment-outlined',
|
|
204
221
|
'contacts-outlined',
|
|
205
222
|
'credit-card-outlined',
|
|
223
|
+
'cup-outlined',
|
|
206
224
|
'direction-arrows-outlined',
|
|
207
225
|
'directory-outlined',
|
|
208
226
|
'document-outlined',
|
|
227
|
+
'dollar-card-outlined',
|
|
209
228
|
'dollar-coin-shine-outlined',
|
|
210
229
|
'dollar-sign',
|
|
211
230
|
'double-buildings-outlined',
|
|
@@ -217,6 +236,7 @@ const IconList = [
|
|
|
217
236
|
'enter-arrow',
|
|
218
237
|
'envelope-outlined',
|
|
219
238
|
'expense-outlined',
|
|
239
|
+
'explore-outlined',
|
|
220
240
|
'external-link',
|
|
221
241
|
'eye-invisible-outlined',
|
|
222
242
|
'eye-outlined',
|
|
@@ -230,6 +250,7 @@ const IconList = [
|
|
|
230
250
|
'file-clone-outlined',
|
|
231
251
|
'file-copy-outlined',
|
|
232
252
|
'file-dispose-outlined',
|
|
253
|
+
'file-dollar-outlined',
|
|
233
254
|
'file-download-outlined',
|
|
234
255
|
'file-export-outlined',
|
|
235
256
|
'file-lock-outlined',
|
|
@@ -245,7 +266,9 @@ const IconList = [
|
|
|
245
266
|
'happy-sun-outlined',
|
|
246
267
|
'health-bag-outlined',
|
|
247
268
|
'heart-outlined',
|
|
269
|
+
'home-active-outlined',
|
|
248
270
|
'home-outlined',
|
|
271
|
+
'id-card-outlined',
|
|
249
272
|
'image-outlined',
|
|
250
273
|
'import-outlined',
|
|
251
274
|
'instapay-outlined',
|
|
@@ -253,6 +276,7 @@ const IconList = [
|
|
|
253
276
|
'link-1',
|
|
254
277
|
'link-2',
|
|
255
278
|
'list-outlined',
|
|
279
|
+
'live-help-outlined',
|
|
256
280
|
'location-outlined',
|
|
257
281
|
'lock-outlined',
|
|
258
282
|
'locked-file-outlined',
|
|
@@ -268,6 +292,7 @@ const IconList = [
|
|
|
268
292
|
'more-vertical',
|
|
269
293
|
'multiple-folders-outlined',
|
|
270
294
|
'multiple-users-outlined',
|
|
295
|
+
'near-me-outlined',
|
|
271
296
|
'node-outlined',
|
|
272
297
|
'number-points',
|
|
273
298
|
'number',
|
|
@@ -292,6 +317,7 @@ const IconList = [
|
|
|
292
317
|
'save-outlined',
|
|
293
318
|
'schedule-outlined',
|
|
294
319
|
'search-outlined',
|
|
320
|
+
'search-secured-outlined',
|
|
295
321
|
'send-outlined',
|
|
296
322
|
'share-1',
|
|
297
323
|
'share-2',
|
|
@@ -299,6 +325,7 @@ const IconList = [
|
|
|
299
325
|
'single-left-arrow',
|
|
300
326
|
'single-right-arrow',
|
|
301
327
|
'single-up-arrow',
|
|
328
|
+
'speaker-active-outlined',
|
|
302
329
|
'speaker-outlined',
|
|
303
330
|
'star-outlined',
|
|
304
331
|
'stopwatch-outlined',
|
|
@@ -311,7 +338,7 @@ const IconList = [
|
|
|
311
338
|
'timesheet-outlined',
|
|
312
339
|
'transfer',
|
|
313
340
|
'trash-bin-outlined',
|
|
314
|
-
'
|
|
341
|
+
'umbrela-outlined',
|
|
315
342
|
'unavailable',
|
|
316
343
|
'underline',
|
|
317
344
|
'unlock-outlined',
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { StyleProp, ViewStyle } from 'react-native';
|
|
3
|
-
import { useTheme } from '../../theme';
|
|
4
3
|
import Icon from '../Icon';
|
|
5
4
|
import Typography from '../Typography';
|
|
6
5
|
import {
|
|
@@ -61,8 +60,6 @@ const BasicListItem = ({
|
|
|
61
60
|
disabled = false,
|
|
62
61
|
onPress,
|
|
63
62
|
}: ListItemProps): JSX.Element => {
|
|
64
|
-
const theme = useTheme();
|
|
65
|
-
|
|
66
63
|
return (
|
|
67
64
|
<StyledListItemContainer
|
|
68
65
|
style={style}
|
|
@@ -71,14 +68,18 @@ const BasicListItem = ({
|
|
|
71
68
|
themeDisabled={disabled}
|
|
72
69
|
onPress={onPress}
|
|
73
70
|
disabled={disabled}
|
|
74
|
-
underlayColor={
|
|
75
|
-
theme.__hd__.list.colors.highlightedListItemContainerBackground
|
|
76
|
-
}
|
|
77
71
|
>
|
|
78
72
|
<>
|
|
79
73
|
{prefix && (
|
|
80
74
|
<StyledPrefixContainer>
|
|
81
|
-
{typeof prefix === 'string' ?
|
|
75
|
+
{typeof prefix === 'string' ? (
|
|
76
|
+
<Icon
|
|
77
|
+
icon={prefix}
|
|
78
|
+
intent={disabled ? 'disabled-text' : 'primary'}
|
|
79
|
+
/>
|
|
80
|
+
) : (
|
|
81
|
+
prefix
|
|
82
|
+
)}
|
|
82
83
|
</StyledPrefixContainer>
|
|
83
84
|
)}
|
|
84
85
|
<StyledTitleContainer>
|
|
@@ -98,7 +99,11 @@ const BasicListItem = ({
|
|
|
98
99
|
{suffix && (
|
|
99
100
|
<StyledSuffixContainer>
|
|
100
101
|
{typeof suffix === 'string' ? (
|
|
101
|
-
<Icon
|
|
102
|
+
<Icon
|
|
103
|
+
icon={suffix}
|
|
104
|
+
size="small"
|
|
105
|
+
intent={disabled ? 'disabled-text' : 'primary'}
|
|
106
|
+
/>
|
|
102
107
|
) : (
|
|
103
108
|
suffix
|
|
104
109
|
)}
|
|
@@ -3,7 +3,6 @@ import React from 'react';
|
|
|
3
3
|
import { View } from 'react-native';
|
|
4
4
|
import type { ReactNode } from 'react';
|
|
5
5
|
import type { StyleProp, ViewStyle } from 'react-native';
|
|
6
|
-
import { useTheme } from '../../theme';
|
|
7
6
|
import Icon from '../Icon';
|
|
8
7
|
import Typography from '../Typography';
|
|
9
8
|
import {
|
|
@@ -82,7 +81,6 @@ const ListItem = ({
|
|
|
82
81
|
onPress,
|
|
83
82
|
disabled = false,
|
|
84
83
|
}: ListItemProps): JSX.Element => {
|
|
85
|
-
const theme = useTheme();
|
|
86
84
|
return (
|
|
87
85
|
<StyledListItemContainer
|
|
88
86
|
style={style}
|
|
@@ -91,9 +89,6 @@ const ListItem = ({
|
|
|
91
89
|
themeVariant={variant}
|
|
92
90
|
onPress={onPress}
|
|
93
91
|
disabled={disabled}
|
|
94
|
-
underlayColor={
|
|
95
|
-
theme.__hd__.list.colors.highlightedListItemContainerBackground
|
|
96
|
-
}
|
|
97
92
|
>
|
|
98
93
|
<>
|
|
99
94
|
{leadingStatus && (
|
|
@@ -111,7 +106,14 @@ const ListItem = ({
|
|
|
111
106
|
>
|
|
112
107
|
{prefix && (
|
|
113
108
|
<StyledPrefixContainer>
|
|
114
|
-
{typeof prefix === 'string' ?
|
|
109
|
+
{typeof prefix === 'string' ? (
|
|
110
|
+
<Icon
|
|
111
|
+
icon={prefix}
|
|
112
|
+
intent={disabled ? 'disabled-text' : 'primary'}
|
|
113
|
+
/>
|
|
114
|
+
) : (
|
|
115
|
+
prefix
|
|
116
|
+
)}
|
|
115
117
|
</StyledPrefixContainer>
|
|
116
118
|
)}
|
|
117
119
|
<StyledTitleContainer>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import styled from '@emotion/native';
|
|
2
|
-
import {
|
|
2
|
+
import { TouchableOpacity, View } from 'react-native';
|
|
3
3
|
|
|
4
4
|
const StyledPrefixContainer = styled(View)(({ theme }) => ({
|
|
5
5
|
marginRight: theme.__hd__.list.space.prefixContainerMarginRight,
|
|
@@ -11,7 +11,7 @@ const StyledTitleContainer = styled(View)(() => ({
|
|
|
11
11
|
flex: 1,
|
|
12
12
|
}));
|
|
13
13
|
|
|
14
|
-
const StyledListItemContainer = styled(
|
|
14
|
+
const StyledListItemContainer = styled(TouchableOpacity)<{
|
|
15
15
|
themeSelected?: boolean;
|
|
16
16
|
themeDisabled?: boolean;
|
|
17
17
|
}>(({ theme, themeSelected, themeDisabled }) => ({
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { TouchableOpacity, View } from 'react-native';
|
|
2
2
|
import styled from '@emotion/native';
|
|
3
3
|
|
|
4
4
|
export type Variant = 'full-width' | 'card';
|
|
@@ -9,7 +9,7 @@ export type LeadingStatusIntent =
|
|
|
9
9
|
| 'info'
|
|
10
10
|
| 'archived';
|
|
11
11
|
|
|
12
|
-
const StyledListItemContainer = styled(
|
|
12
|
+
const StyledListItemContainer = styled(TouchableOpacity)<{
|
|
13
13
|
themeSelected?: boolean;
|
|
14
14
|
themeVariant?: Variant;
|
|
15
15
|
}>(({ theme, themeSelected = false, themeVariant = 'basic' }) => {
|
|
@@ -2,13 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
exports[`BasicListItem when suffix and prefix are icon name renders correctly 1`] = `
|
|
4
4
|
<View
|
|
5
|
-
accessibilityState={
|
|
6
|
-
Object {
|
|
7
|
-
"disabled": false,
|
|
8
|
-
}
|
|
9
|
-
}
|
|
10
5
|
accessible={true}
|
|
6
|
+
collapsable={false}
|
|
11
7
|
focusable={false}
|
|
8
|
+
nativeID="animatedComponent"
|
|
12
9
|
onClick={[Function]}
|
|
13
10
|
onResponderGrant={[Function]}
|
|
14
11
|
onResponderMove={[Function]}
|
|
@@ -17,17 +14,14 @@ exports[`BasicListItem when suffix and prefix are icon name renders correctly 1`
|
|
|
17
14
|
onResponderTerminationRequest={[Function]}
|
|
18
15
|
onStartShouldSetResponder={[Function]}
|
|
19
16
|
style={
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
},
|
|
29
|
-
undefined,
|
|
30
|
-
]
|
|
17
|
+
Object {
|
|
18
|
+
"alignItems": "center",
|
|
19
|
+
"backgroundColor": "#ffffff",
|
|
20
|
+
"borderRadius": 4,
|
|
21
|
+
"flexDirection": "row",
|
|
22
|
+
"opacity": 1,
|
|
23
|
+
"padding": 16,
|
|
24
|
+
}
|
|
31
25
|
}
|
|
32
26
|
testID="basic-list-item"
|
|
33
27
|
>
|
|
@@ -46,13 +40,13 @@ exports[`BasicListItem when suffix and prefix are icon name renders correctly 1`
|
|
|
46
40
|
style={
|
|
47
41
|
Array [
|
|
48
42
|
Object {
|
|
49
|
-
"color": "#
|
|
43
|
+
"color": "#401960",
|
|
50
44
|
"fontSize": 24,
|
|
51
45
|
},
|
|
52
46
|
undefined,
|
|
53
47
|
]
|
|
54
48
|
}
|
|
55
|
-
themeIntent="
|
|
49
|
+
themeIntent="primary"
|
|
56
50
|
themeSize="medium"
|
|
57
51
|
/>
|
|
58
52
|
</View>
|
|
@@ -120,13 +114,13 @@ exports[`BasicListItem when suffix and prefix are icon name renders correctly 1`
|
|
|
120
114
|
style={
|
|
121
115
|
Array [
|
|
122
116
|
Object {
|
|
123
|
-
"color": "#
|
|
117
|
+
"color": "#401960",
|
|
124
118
|
"fontSize": 20,
|
|
125
119
|
},
|
|
126
120
|
undefined,
|
|
127
121
|
]
|
|
128
122
|
}
|
|
129
|
-
themeIntent="
|
|
123
|
+
themeIntent="primary"
|
|
130
124
|
themeSize="small"
|
|
131
125
|
/>
|
|
132
126
|
</View>
|
|
@@ -135,13 +129,10 @@ exports[`BasicListItem when suffix and prefix are icon name renders correctly 1`
|
|
|
135
129
|
|
|
136
130
|
exports[`BasicListItem when suffix and prefix are react element renders correctly 1`] = `
|
|
137
131
|
<View
|
|
138
|
-
accessibilityState={
|
|
139
|
-
Object {
|
|
140
|
-
"disabled": false,
|
|
141
|
-
}
|
|
142
|
-
}
|
|
143
132
|
accessible={true}
|
|
133
|
+
collapsable={false}
|
|
144
134
|
focusable={false}
|
|
135
|
+
nativeID="animatedComponent"
|
|
145
136
|
onClick={[Function]}
|
|
146
137
|
onResponderGrant={[Function]}
|
|
147
138
|
onResponderMove={[Function]}
|
|
@@ -150,17 +141,14 @@ exports[`BasicListItem when suffix and prefix are react element renders correctl
|
|
|
150
141
|
onResponderTerminationRequest={[Function]}
|
|
151
142
|
onStartShouldSetResponder={[Function]}
|
|
152
143
|
style={
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
},
|
|
162
|
-
undefined,
|
|
163
|
-
]
|
|
144
|
+
Object {
|
|
145
|
+
"alignItems": "center",
|
|
146
|
+
"backgroundColor": "#ffffff",
|
|
147
|
+
"borderRadius": 4,
|
|
148
|
+
"flexDirection": "row",
|
|
149
|
+
"opacity": 1,
|
|
150
|
+
"padding": 16,
|
|
151
|
+
}
|
|
164
152
|
}
|
|
165
153
|
testID="basic-list-item"
|
|
166
154
|
>
|