@hero-design/rn 8.34.2-alpha.0 → 8.34.3
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/.turbo/turbo-publish:npm.log +0 -9
- package/es/index.js +11210 -2206
- package/lib/index.js +11210 -2205
- package/package.json +9 -10
- package/rollup.config.js +3 -7
- package/src/components/Attachment/__tests__/__snapshots__/index.spec.tsx.snap +1 -1
- package/src/components/Avatar/AvatarStack/__tests__/__snapshots__/index.spec.tsx.snap +9 -9
- package/src/components/Badge/__tests__/__snapshots__/Badge.spec.tsx.snap +3 -3
- package/src/components/Badge/__tests__/__snapshots__/Status.spec.tsx.snap +1 -1
- package/src/components/Button/LoadingIndicator/__tests__/__snapshots__/StyledLoadingIndicator.spec.tsx.snap +2 -2
- package/src/components/Button/LoadingIndicator/__tests__/__snapshots__/index.spec.tsx.snap +6 -6
- package/src/components/Button/__tests__/__snapshots__/Button.spec.tsx.snap +4 -4
- package/src/components/Button/__tests__/__snapshots__/StyledButton.spec.tsx.snap +6 -6
- package/src/components/FAB/ActionGroup/__tests__/__snapshots__/index.spec.tsx.snap +2 -2
- package/src/components/FAB/ActionGroup/index.tsx +1 -1
- package/src/components/FAB/FAB.tsx +1 -0
- package/src/components/FAB/StyledFAB.tsx +20 -16
- package/src/components/FAB/__tests__/StyledFAB.spec.tsx +11 -1
- package/src/components/FAB/__tests__/__snapshots__/StyledFAB.spec.tsx.snap +57 -0
- package/src/components/Icon/__tests__/__snapshots__/index.spec.tsx.snap +1 -1
- package/src/components/List/StyledListItem.tsx +1 -1
- package/src/components/List/__tests__/__snapshots__/ListItem.spec.tsx.snap +4 -0
- package/src/components/List/__tests__/__snapshots__/StyledListItem.spec.tsx.snap +2 -0
- package/src/components/PinInput/__tests__/__snapshots__/PinCell.spec.tsx.snap +4 -4
- package/src/components/PinInput/__tests__/__snapshots__/index.spec.tsx.snap +12 -12
- package/src/components/Progress/StyledProgressBar.tsx +1 -0
- package/src/components/Progress/__tests__/__snapshots__/index.spec.js.snap +46 -44
- package/src/components/RichTextEditor/__tests__/__snapshots__/RichTextEditor.spec.tsx.snap +6 -6
- package/src/components/SectionHeading/__tests__/__snapshots__/index.spec.tsx.snap +1 -1
- package/src/components/Skeleton/__tests__/__snapshots__/index.spec.tsx.snap +7 -7
- package/src/components/Swipeable/__tests__/__snapshots__/index.spec.tsx.snap +5 -0
- package/src/components/Swipeable/index.tsx +6 -1
- package/src/components/Switch/SelectorSwitch/StyledSelectorSwitch.tsx +4 -7
- package/src/components/Switch/SelectorSwitch/__tests__/__snapshots__/Option.spec.tsx.snap +3 -3
- package/src/components/Switch/SelectorSwitch/__tests__/__snapshots__/index.spec.tsx.snap +9 -9
- package/src/components/Switch/SelectorSwitch/index.tsx +7 -15
- package/src/components/Tabs/__tests__/__snapshots__/ScrollableTabs.spec.tsx.snap +18 -18
- package/src/components/Tabs/__tests__/__snapshots__/ScrollableTabsHeader.spec.tsx.snap +6 -6
- package/src/components/Tabs/__tests__/__snapshots__/TabWithBadge.spec.tsx.snap +2 -2
- package/src/components/Tabs/__tests__/__snapshots__/index.spec.tsx.snap +6 -6
- package/src/components/Tag/__tests__/__snapshots__/Tag.spec.tsx.snap +9 -9
- package/src/components/TextInput/__tests__/__snapshots__/StyledTextInput.spec.tsx.snap +7 -7
- package/src/components/TextInput/__tests__/__snapshots__/index.spec.tsx.snap +20 -20
- package/src/components/Toolbar/__tests__/__snapshots__/ToolbarItem.spec.tsx.snap +1 -1
- package/src/components/Typography/Body/__tests__/__snapshots__/StyledBody.tsx.snap +1 -1
- package/src/components/Typography/Body/__tests__/__snapshots__/index.spec.tsx.snap +2 -2
- package/src/components/Typography/Caption/__tests__/__snapshots__/StyledCaption.spec.tsx.snap +1 -1
- package/src/components/Typography/Caption/__tests__/__snapshots__/index.spec.tsx.snap +2 -2
- package/src/components/Typography/Label/__tests__/__snapshots__/StyledLabel.tsx.snap +1 -1
- package/src/components/Typography/Label/__tests__/__snapshots__/index.spec.tsx.snap +2 -2
- package/src/components/Typography/Text/__tests__/__snapshots__/StyledText.spec.tsx.snap +1 -1
- package/src/components/Typography/Title/__tests__/__snapshots__/StyledTitle.tsx.snap +3 -3
- package/src/components/Typography/Title/__tests__/__snapshots__/index.spec.tsx.snap +4 -4
- package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +47 -43
- package/src/theme/components/fab.ts +1 -0
- package/src/theme/components/list.ts +1 -1
- package/src/theme/components/progress.ts +2 -2
- package/src/theme/components/swipeable.ts +5 -1
- package/src/theme/components/switch.ts +4 -4
- package/src/theme/components/tabs.ts +1 -1
- package/src/theme/components/typography.ts +2 -2
- package/src/theme/global/colors/__tests__/__snapshots__/eBens.spec.ts.snap +7 -7
- package/src/theme/global/colors/__tests__/__snapshots__/global.spec.ts.snap +5 -5
- package/src/theme/global/colors/__tests__/__snapshots__/jobs.spec.ts.snap +6 -6
- package/src/theme/global/colors/__tests__/__snapshots__/swag.spec.ts.snap +6 -6
- package/src/theme/global/colors/__tests__/__snapshots__/wallet.spec.ts.snap +7 -7
- package/src/theme/global/colors/__tests__/__snapshots__/work.spec.ts.snap +9 -9
- package/src/theme/global/colors/eBens.ts +2 -2
- package/src/theme/global/colors/global.ts +5 -5
- package/src/theme/global/colors/jobs.ts +1 -1
- package/src/theme/global/colors/swag.ts +1 -1
- package/src/theme/global/colors/wallet.ts +2 -2
- package/src/theme/global/colors/work.ts +4 -4
- package/types/components/Accordion/AccordionItem.d.ts +0 -0
- package/types/components/Accordion/StyledAccordion.d.ts +0 -0
- package/types/components/Accordion/index.d.ts +0 -0
- package/types/components/Alert/StyledAlert.d.ts +0 -0
- package/types/components/Alert/index.d.ts +0 -0
- package/types/components/Attachment/StyledAttachment.d.ts +0 -0
- package/types/components/Attachment/index.d.ts +0 -0
- package/types/components/Avatar/Avatar.d.ts +0 -0
- package/types/components/Avatar/AvatarStack/StyledAvatarStack.d.ts +0 -0
- package/types/components/Avatar/AvatarStack/index.d.ts +0 -0
- package/types/components/Avatar/AvatarStack/utils.d.ts +0 -0
- package/types/components/Avatar/StyledAvatar.d.ts +0 -0
- package/types/components/Avatar/index.d.ts +0 -0
- package/types/components/Badge/Status.d.ts +0 -0
- package/types/components/Badge/StyledBadge.d.ts +0 -0
- package/types/components/Badge/index.d.ts +0 -0
- package/types/components/BottomNavigation/StyledBottomNavigation.d.ts +0 -0
- package/types/components/BottomNavigation/index.d.ts +0 -0
- package/types/components/BottomSheet/BottomSheetContext.d.ts +0 -0
- package/types/components/BottomSheet/Footer.d.ts +0 -0
- package/types/components/BottomSheet/Header.d.ts +0 -0
- package/types/components/BottomSheet/ScrollView.d.ts +0 -0
- package/types/components/BottomSheet/StyledBottomSheet.d.ts +0 -0
- package/types/components/BottomSheet/index.d.ts +0 -0
- package/types/components/Box/StyledBox.d.ts +0 -0
- package/types/components/Box/config.d.ts +0 -0
- package/types/components/Box/index.d.ts +0 -0
- package/types/components/Box/types.d.ts +0 -0
- package/types/components/Button/Button.d.ts +0 -0
- package/types/components/Button/IconButton.d.ts +0 -0
- package/types/components/Button/LoadingIndicator/StyledLoadingIndicator.d.ts +0 -0
- package/types/components/Button/LoadingIndicator/index.d.ts +0 -0
- package/types/components/Button/StyledButton.d.ts +0 -0
- package/types/components/Button/UtilityButton/StyledUtilityButton.d.ts +0 -0
- package/types/components/Button/UtilityButton/index.d.ts +0 -0
- package/types/components/Button/index.d.ts +0 -0
- package/types/components/Calendar/CalendarRowItem.d.ts +0 -0
- package/types/components/Calendar/StyledCalendar.d.ts +0 -0
- package/types/components/Calendar/helpers.d.ts +0 -0
- package/types/components/Calendar/index.d.ts +0 -0
- package/types/components/Card/DataCard/StyledDataCard.d.ts +0 -0
- package/types/components/Card/DataCard/index.d.ts +0 -0
- package/types/components/Card/StyledCard.d.ts +0 -0
- package/types/components/Card/index.d.ts +0 -0
- package/types/components/Carousel/CardCarousel.d.ts +0 -0
- package/types/components/Carousel/CarouselItem.d.ts +0 -0
- package/types/components/Carousel/StyledCardCarousel.d.ts +0 -0
- package/types/components/Carousel/StyledCarousel.d.ts +0 -0
- package/types/components/Carousel/contants.d.ts +0 -0
- package/types/components/Carousel/index.d.ts +0 -0
- package/types/components/Carousel/types.d.ts +0 -0
- package/types/components/Checkbox/StyledCheckbox.d.ts +0 -0
- package/types/components/Checkbox/index.d.ts +0 -0
- package/types/components/Collapse/StyledCollapse.d.ts +0 -0
- package/types/components/Collapse/index.d.ts +0 -0
- package/types/components/ContentNavigator/StyledContentNavigator.d.ts +0 -0
- package/types/components/ContentNavigator/index.d.ts +0 -0
- package/types/components/DatePicker/DatePickerAndroid.d.ts +0 -0
- package/types/components/DatePicker/DatePickerCalendar.d.ts +0 -0
- package/types/components/DatePicker/DatePickerIOS.d.ts +0 -0
- package/types/components/DatePicker/StyledDatePicker.d.ts +0 -0
- package/types/components/DatePicker/index.d.ts +0 -0
- package/types/components/DatePicker/types.d.ts +0 -0
- package/types/components/Divider/StyledDivider.d.ts +0 -0
- package/types/components/Divider/index.d.ts +0 -0
- package/types/components/Drawer/DragableDrawer/helpers.d.ts +0 -0
- package/types/components/Drawer/DragableDrawer/index.d.ts +0 -0
- package/types/components/Drawer/StyledDrawer.d.ts +0 -0
- package/types/components/Drawer/index.d.ts +0 -0
- package/types/components/Empty/StyledEmpty.d.ts +0 -0
- package/types/components/Empty/index.d.ts +0 -0
- package/types/components/Error/StyledError.d.ts +0 -0
- package/types/components/Error/index.d.ts +0 -0
- package/types/components/FAB/ActionGroup/ActionItem.d.ts +0 -0
- package/types/components/FAB/ActionGroup/StyledActionGroup.d.ts +0 -0
- package/types/components/FAB/ActionGroup/StyledActionItem.d.ts +0 -0
- package/types/components/FAB/ActionGroup/index.d.ts +0 -0
- package/types/components/FAB/AnimatedFABIcon.d.ts +0 -0
- package/types/components/FAB/FAB.d.ts +0 -0
- package/types/components/FAB/StyledFAB.d.ts +2 -0
- package/types/components/FAB/index.d.ts +0 -0
- package/types/components/Icon/AnimatedIcon.d.ts +0 -0
- package/types/components/Icon/HeroIcon/index.d.ts +0 -0
- package/types/components/Icon/IconList.d.ts +0 -0
- package/types/components/Icon/index.d.ts +0 -0
- package/types/components/Icon/utils.d.ts +0 -0
- package/types/components/Image/index.d.ts +0 -0
- package/types/components/List/BasicListItem.d.ts +0 -0
- package/types/components/List/ListItem.d.ts +0 -0
- package/types/components/List/StyledBasicListItem.d.ts +0 -0
- package/types/components/List/StyledListItem.d.ts +0 -0
- package/types/components/List/index.d.ts +0 -0
- package/types/components/PageControl/StyledPageControl.d.ts +0 -0
- package/types/components/PageControl/index.d.ts +0 -0
- package/types/components/PinInput/PinCell.d.ts +0 -0
- package/types/components/PinInput/StyledPinInput.d.ts +0 -0
- package/types/components/PinInput/index.d.ts +0 -0
- package/types/components/Progress/ProgressBar.d.ts +0 -0
- package/types/components/Progress/ProgressCircle.d.ts +0 -0
- package/types/components/Progress/StyledProgressBar.d.ts +0 -0
- package/types/components/Progress/StyledProgressCircle.d.ts +0 -0
- package/types/components/Progress/__tests__/index.spec.d.ts +0 -0
- package/types/components/Progress/constants.d.ts +0 -0
- package/types/components/Progress/index.d.ts +0 -0
- package/types/components/Progress/types.d.ts +0 -0
- package/types/components/Radio/Radio.d.ts +0 -0
- package/types/components/Radio/RadioGroup.d.ts +0 -0
- package/types/components/Radio/StyledRadio.d.ts +0 -0
- package/types/components/Radio/index.d.ts +0 -0
- package/types/components/Radio/types.d.ts +0 -0
- package/types/components/RefreshControl/index.d.ts +0 -0
- package/types/components/RichTextEditor/EditorEvent.d.ts +0 -0
- package/types/components/RichTextEditor/EditorToolbar.d.ts +0 -0
- package/types/components/RichTextEditor/MentionList.d.ts +0 -0
- package/types/components/RichTextEditor/RichTextEditor.d.ts +0 -0
- package/types/components/RichTextEditor/StyledRichTextEditor.d.ts +0 -0
- package/types/components/RichTextEditor/StyledToolbar.d.ts +0 -0
- package/types/components/RichTextEditor/__mocks__/heroEditorApp.d.ts +0 -0
- package/types/components/RichTextEditor/constants.d.ts +0 -0
- package/types/components/RichTextEditor/heroEditorApp.d.ts +0 -0
- package/types/components/RichTextEditor/index.d.ts +0 -0
- package/types/components/RichTextEditor/types.d.ts +0 -0
- package/types/components/RichTextEditor/utils/events.d.ts +0 -0
- package/types/components/RichTextEditor/utils/rnWebView.d.ts +0 -0
- package/types/components/SectionHeading/StyledHeading.d.ts +0 -0
- package/types/components/SectionHeading/index.d.ts +0 -0
- package/types/components/Select/BaseOptionList.d.ts +0 -0
- package/types/components/Select/Footer.d.ts +0 -0
- package/types/components/Select/MultiSelect/Option.d.ts +0 -0
- package/types/components/Select/MultiSelect/OptionList.d.ts +0 -0
- package/types/components/Select/MultiSelect/index.d.ts +0 -0
- package/types/components/Select/SingleSelect/Option.d.ts +0 -0
- package/types/components/Select/SingleSelect/OptionList.d.ts +0 -0
- package/types/components/Select/SingleSelect/StyledSingleSelect.d.ts +0 -0
- package/types/components/Select/SingleSelect/index.d.ts +0 -0
- package/types/components/Select/StyledSelect.d.ts +0 -0
- package/types/components/Select/helpers.d.ts +0 -0
- package/types/components/Select/index.d.ts +0 -0
- package/types/components/Select/types.d.ts +0 -0
- package/types/components/Skeleton/StyledSkeleton.d.ts +0 -0
- package/types/components/Skeleton/index.d.ts +0 -0
- package/types/components/Slider/index.d.ts +0 -0
- package/types/components/Spinner/AnimatedSpinner.d.ts +0 -0
- package/types/components/Spinner/StyledSpinner.d.ts +0 -0
- package/types/components/Spinner/index.d.ts +0 -0
- package/types/components/Success/StyledSuccess.d.ts +0 -0
- package/types/components/Success/index.d.ts +0 -0
- package/types/components/Swipeable/StyledSwipeable.d.ts +0 -0
- package/types/components/Swipeable/SwipeableAction.d.ts +0 -0
- package/types/components/Swipeable/index.d.ts +1 -1
- package/types/components/Switch/SelectorSwitch/Option.d.ts +0 -0
- package/types/components/Switch/SelectorSwitch/StyledSelectorSwitch.d.ts +0 -0
- package/types/components/Switch/SelectorSwitch/index.d.ts +0 -0
- package/types/components/Switch/StyledSwitch.d.ts +0 -0
- package/types/components/Switch/index.d.ts +0 -0
- package/types/components/Tabs/ActiveTabIndicator.d.ts +0 -0
- package/types/components/Tabs/SceneView.d.ts +0 -0
- package/types/components/Tabs/ScrollableTabs.d.ts +0 -0
- package/types/components/Tabs/ScrollableTabsHeader.d.ts +0 -0
- package/types/components/Tabs/StyledScrollableTabs.d.ts +0 -0
- package/types/components/Tabs/StyledTabs.d.ts +0 -0
- package/types/components/Tabs/TabWithBadge.d.ts +0 -0
- package/types/components/Tabs/index.d.ts +0 -0
- package/types/components/Tabs/useIsFocused.d.ts +0 -0
- package/types/components/Tabs/utils.d.ts +0 -0
- package/types/components/Tag/StyledTag.d.ts +0 -0
- package/types/components/Tag/index.d.ts +0 -0
- package/types/components/TextInput/StyledTextInput.d.ts +0 -0
- package/types/components/TextInput/index.d.ts +0 -0
- package/types/components/TimePicker/StyledTimePicker.d.ts +0 -0
- package/types/components/TimePicker/TimePickerAndroid.d.ts +0 -0
- package/types/components/TimePicker/TimePickerIOS.d.ts +0 -0
- package/types/components/TimePicker/index.d.ts +0 -0
- package/types/components/TimePicker/types.d.ts +0 -0
- package/types/components/Toast/StyledToast.d.ts +0 -0
- package/types/components/Toast/Toast.d.ts +0 -0
- package/types/components/Toast/ToastContainer.d.ts +0 -0
- package/types/components/Toast/ToastContext.d.ts +0 -0
- package/types/components/Toast/ToastProvider.d.ts +0 -0
- package/types/components/Toast/index.d.ts +0 -0
- package/types/components/Toast/types.d.ts +0 -0
- package/types/components/Toolbar/StyledToolbar.d.ts +0 -0
- package/types/components/Toolbar/ToolbarGroup.d.ts +0 -0
- package/types/components/Toolbar/ToolbarItem.d.ts +0 -0
- package/types/components/Toolbar/index.d.ts +0 -0
- package/types/components/Typography/Text/StyledText.d.ts +0 -0
- package/types/components/Typography/Text/index.d.ts +0 -0
- package/types/components/Typography/index.d.ts +0 -0
- package/types/index.d.ts +0 -0
- package/types/testHelpers/renderWithTheme.d.ts +0 -0
- package/types/theme/ThemeProvider.d.ts +0 -0
- package/types/theme/ThemeSwitcher.d.ts +0 -0
- package/types/theme/components/accordion.d.ts +0 -0
- package/types/theme/components/alert.d.ts +0 -0
- package/types/theme/components/attachment.d.ts +0 -0
- package/types/theme/components/avatar.d.ts +0 -0
- package/types/theme/components/badge.d.ts +0 -0
- package/types/theme/components/bottomNavigation.d.ts +0 -0
- package/types/theme/components/bottomSheet.d.ts +0 -0
- package/types/theme/components/button.d.ts +0 -0
- package/types/theme/components/calendar.d.ts +0 -0
- package/types/theme/components/card.d.ts +0 -0
- package/types/theme/components/cardCarousel.d.ts +0 -0
- package/types/theme/components/carousel.d.ts +0 -0
- package/types/theme/components/checkbox.d.ts +0 -0
- package/types/theme/components/contentNavigator.d.ts +0 -0
- package/types/theme/components/datePicker.d.ts +0 -0
- package/types/theme/components/divider.d.ts +0 -0
- package/types/theme/components/drawer.d.ts +0 -0
- package/types/theme/components/empty.d.ts +0 -0
- package/types/theme/components/error.d.ts +0 -0
- package/types/theme/components/fab.d.ts +1 -0
- package/types/theme/components/icon.d.ts +0 -0
- package/types/theme/components/image.d.ts +0 -0
- package/types/theme/components/list.d.ts +1 -1
- package/types/theme/components/pageControl.d.ts +0 -0
- package/types/theme/components/pinInput.d.ts +0 -0
- package/types/theme/components/progress.d.ts +0 -0
- package/types/theme/components/radio.d.ts +0 -0
- package/types/theme/components/refreshControl.d.ts +0 -0
- package/types/theme/components/richTextEditor.d.ts +0 -0
- package/types/theme/components/sectionHeading.d.ts +0 -0
- package/types/theme/components/select.d.ts +0 -0
- package/types/theme/components/skeleton.d.ts +0 -0
- package/types/theme/components/slider.d.ts +0 -0
- package/types/theme/components/spinner.d.ts +0 -0
- package/types/theme/components/success.d.ts +0 -0
- package/types/theme/components/swipeable.d.ts +3 -0
- package/types/theme/components/switch.d.ts +1 -1
- package/types/theme/components/tabs.d.ts +0 -0
- package/types/theme/components/tag.d.ts +0 -0
- package/types/theme/components/textInput.d.ts +0 -0
- package/types/theme/components/timePicker.d.ts +0 -0
- package/types/theme/components/toast.d.ts +0 -0
- package/types/theme/components/toolbar.d.ts +0 -0
- package/types/theme/components/typography.d.ts +0 -0
- package/types/theme/getTheme.d.ts +0 -0
- package/types/theme/global/borders.d.ts +0 -0
- package/types/theme/global/colors/eBens.d.ts +0 -0
- package/types/theme/global/colors/global.d.ts +0 -0
- package/types/theme/global/colors/globalDark.d.ts +0 -0
- package/types/theme/global/colors/jobs.d.ts +0 -0
- package/types/theme/global/colors/swag.d.ts +0 -0
- package/types/theme/global/colors/swagDark.d.ts +0 -0
- package/types/theme/global/colors/types.d.ts +0 -0
- package/types/theme/global/colors/wallet.d.ts +0 -0
- package/types/theme/global/colors/work.d.ts +0 -0
- package/types/theme/global/index.d.ts +0 -0
- package/types/theme/global/scale.d.ts +0 -0
- package/types/theme/global/sizes.d.ts +0 -0
- package/types/theme/global/space.d.ts +0 -0
- package/types/theme/global/typography.d.ts +0 -0
- package/types/theme/index.d.ts +0 -0
- package/types/types.d.ts +0 -0
- package/types/utils/functions.d.ts +0 -0
- package/types/utils/helpers.d.ts +0 -0
- package/types/utils/hooks.d.ts +0 -0
- package/types/utils/scale.d.ts +0 -0
- package/.tool-versions +0 -1
- package/.turbo/turbo-build:types.log +0 -9
- package/.turbo/turbo-lint.log +0 -152
- package/.turbo/turbo-test.log +0 -725
- package/.turbo/turbo-type-check.log +0 -1
- package/types/components/Tabs/ScrollableTabsV2/SceneView.d.ts +0 -10
- package/types/components/Tabs/ScrollableTabsV2/ScrollableTabsV2.d.ts +0 -9
- package/types/components/Tabs/ScrollableTabsV2/index.d.ts +0 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hero-design/rn",
|
|
3
|
-
"version": "8.34.
|
|
3
|
+
"version": "8.34.3",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"module": "es/index.js",
|
|
@@ -21,16 +21,13 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@emotion/native": "^11.9.3",
|
|
23
23
|
"@emotion/react": "^11.9.3",
|
|
24
|
-
"@hero-design/colors": "8.34.
|
|
25
|
-
"@hero-design/react-native-month-year-picker": "^8.34.1",
|
|
24
|
+
"@hero-design/colors": "8.34.3",
|
|
26
25
|
"date-fns": "^2.16.1",
|
|
27
26
|
"events": "^3.2.0",
|
|
28
|
-
"hero-editor": "^1.9.21"
|
|
29
|
-
"react-native-root-siblings": "^4.1.1",
|
|
30
|
-
"rollup-plugin-jsx": "^1.0.3"
|
|
27
|
+
"hero-editor": "^1.9.21"
|
|
31
28
|
},
|
|
32
29
|
"peerDependencies": {
|
|
33
|
-
"@hero-design/react-native-month-year-picker": "^8.34.
|
|
30
|
+
"@hero-design/react-native-month-year-picker": "^8.34.3",
|
|
34
31
|
"@react-native-community/datetimepicker": "^3.5.2",
|
|
35
32
|
"@react-native-community/slider": "4.1.12",
|
|
36
33
|
"react": "18.0.0",
|
|
@@ -38,6 +35,7 @@
|
|
|
38
35
|
"react-native-gesture-handler": "^1.10.3 | ~2.5.0",
|
|
39
36
|
"react-native-linear-gradient": "^2.6.2",
|
|
40
37
|
"react-native-pager-view": "^5.4.25",
|
|
38
|
+
"react-native-root-siblings": "^4.1.1",
|
|
41
39
|
"react-native-safe-area-context": "^3.0.2",
|
|
42
40
|
"react-native-vector-icons": "^9.1.0",
|
|
43
41
|
"react-native-webview": "^11.2.5"
|
|
@@ -49,7 +47,8 @@
|
|
|
49
47
|
"@babel/preset-typescript": "^7.17.12",
|
|
50
48
|
"@babel/runtime": "^7.18.9",
|
|
51
49
|
"@emotion/jest": "^11.9.3",
|
|
52
|
-
"@hero-design/eslint-plugin": "8.34.
|
|
50
|
+
"@hero-design/eslint-plugin": "8.34.3",
|
|
51
|
+
"@hero-design/react-native-month-year-picker": "^8.34.3",
|
|
53
52
|
"@react-native-community/datetimepicker": "^3.5.2",
|
|
54
53
|
"@react-native-community/slider": "4.1.12",
|
|
55
54
|
"@rollup/plugin-babel": "^5.3.1",
|
|
@@ -65,10 +64,10 @@
|
|
|
65
64
|
"@types/react-native": "^0.67.7",
|
|
66
65
|
"@types/react-native-vector-icons": "^6.4.10",
|
|
67
66
|
"babel-plugin-inline-import": "^3.0.0",
|
|
68
|
-
"eslint-config-hd": "8.34.
|
|
67
|
+
"eslint-config-hd": "8.34.3",
|
|
69
68
|
"eslint-plugin-import": "^2.27.5",
|
|
70
69
|
"jest": "^27.3.1",
|
|
71
|
-
"prettier-config-hd": "8.34.
|
|
70
|
+
"prettier-config-hd": "8.34.3",
|
|
72
71
|
"react": "18.0.0",
|
|
73
72
|
"react-native": "0.69.7",
|
|
74
73
|
"react-native-gesture-handler": "~2.5.0",
|
package/rollup.config.js
CHANGED
|
@@ -35,6 +35,7 @@ export default {
|
|
|
35
35
|
'react-native-vector-icons',
|
|
36
36
|
'react-native-linear-gradient',
|
|
37
37
|
'@hero-design/react-native-month-year-picker',
|
|
38
|
+
'react-native-root-siblings',
|
|
38
39
|
],
|
|
39
40
|
plugins: [
|
|
40
41
|
replace({
|
|
@@ -42,15 +43,10 @@ export default {
|
|
|
42
43
|
}),
|
|
43
44
|
nodeResolve({ extensions, browser: true }),
|
|
44
45
|
flow(),
|
|
46
|
+
commonjs(),
|
|
45
47
|
json(),
|
|
46
48
|
typescript(),
|
|
47
|
-
babel({
|
|
48
|
-
exclude: 'node_modules/**',
|
|
49
|
-
presets: ['@babel/env', '@babel/preset-react'],
|
|
50
|
-
extensions,
|
|
51
|
-
babelHelpers: 'bundled',
|
|
52
|
-
}),
|
|
53
|
-
commonjs(),
|
|
49
|
+
babel({ extensions, babelHelpers: 'bundled' }),
|
|
54
50
|
copy({
|
|
55
51
|
targets: [
|
|
56
52
|
{
|
|
@@ -34,7 +34,7 @@ exports[`AvatarStack renders correctly by default 1`] = `
|
|
|
34
34
|
onStartShouldSetResponder={[Function]}
|
|
35
35
|
style={
|
|
36
36
|
Object {
|
|
37
|
-
"backgroundColor": "#
|
|
37
|
+
"backgroundColor": "#001f23",
|
|
38
38
|
"borderRadius": 999,
|
|
39
39
|
"height": 32,
|
|
40
40
|
"left": 0,
|
|
@@ -111,7 +111,7 @@ exports[`AvatarStack renders correctly by default 1`] = `
|
|
|
111
111
|
onStartShouldSetResponder={[Function]}
|
|
112
112
|
style={
|
|
113
113
|
Object {
|
|
114
|
-
"backgroundColor": "#
|
|
114
|
+
"backgroundColor": "#0d2a2e",
|
|
115
115
|
"borderRadius": 999,
|
|
116
116
|
"height": 32,
|
|
117
117
|
"left": 22.4,
|
|
@@ -188,7 +188,7 @@ exports[`AvatarStack renders correctly by default 1`] = `
|
|
|
188
188
|
onStartShouldSetResponder={[Function]}
|
|
189
189
|
style={
|
|
190
190
|
Object {
|
|
191
|
-
"backgroundColor": "#
|
|
191
|
+
"backgroundColor": "#193539",
|
|
192
192
|
"borderRadius": 999,
|
|
193
193
|
"height": 32,
|
|
194
194
|
"left": 44.8,
|
|
@@ -265,7 +265,7 @@ exports[`AvatarStack renders correctly by default 1`] = `
|
|
|
265
265
|
onStartShouldSetResponder={[Function]}
|
|
266
266
|
style={
|
|
267
267
|
Object {
|
|
268
|
-
"backgroundColor": "#
|
|
268
|
+
"backgroundColor": "#264144",
|
|
269
269
|
"borderRadius": 999,
|
|
270
270
|
"height": 32,
|
|
271
271
|
"left": 67.19999999999999,
|
|
@@ -342,7 +342,7 @@ exports[`AvatarStack renders correctly by default 1`] = `
|
|
|
342
342
|
onStartShouldSetResponder={[Function]}
|
|
343
343
|
style={
|
|
344
344
|
Object {
|
|
345
|
-
"backgroundColor": "#
|
|
345
|
+
"backgroundColor": "#334c4f",
|
|
346
346
|
"borderRadius": 999,
|
|
347
347
|
"height": 32,
|
|
348
348
|
"left": 89.6,
|
|
@@ -438,7 +438,7 @@ exports[`AvatarStack renders correctly with custom props 1`] = `
|
|
|
438
438
|
onStartShouldSetResponder={[Function]}
|
|
439
439
|
style={
|
|
440
440
|
Object {
|
|
441
|
-
"backgroundColor": "#
|
|
441
|
+
"backgroundColor": "#001f23",
|
|
442
442
|
"borderRadius": 999,
|
|
443
443
|
"height": 40,
|
|
444
444
|
"left": 0,
|
|
@@ -515,7 +515,7 @@ exports[`AvatarStack renders correctly with custom props 1`] = `
|
|
|
515
515
|
onStartShouldSetResponder={[Function]}
|
|
516
516
|
style={
|
|
517
517
|
Object {
|
|
518
|
-
"backgroundColor": "#
|
|
518
|
+
"backgroundColor": "#0d2a2e",
|
|
519
519
|
"borderRadius": 999,
|
|
520
520
|
"height": 40,
|
|
521
521
|
"left": 28,
|
|
@@ -592,7 +592,7 @@ exports[`AvatarStack renders correctly with custom props 1`] = `
|
|
|
592
592
|
onStartShouldSetResponder={[Function]}
|
|
593
593
|
style={
|
|
594
594
|
Object {
|
|
595
|
-
"backgroundColor": "#
|
|
595
|
+
"backgroundColor": "#193539",
|
|
596
596
|
"borderRadius": 999,
|
|
597
597
|
"height": 40,
|
|
598
598
|
"left": 56,
|
|
@@ -669,7 +669,7 @@ exports[`AvatarStack renders correctly with custom props 1`] = `
|
|
|
669
669
|
onStartShouldSetResponder={[Function]}
|
|
670
670
|
style={
|
|
671
671
|
Object {
|
|
672
|
-
"backgroundColor": "#
|
|
672
|
+
"backgroundColor": "#264144",
|
|
673
673
|
"borderRadius": 999,
|
|
674
674
|
"height": 40,
|
|
675
675
|
"left": 84,
|
|
@@ -6,7 +6,7 @@ exports[`Badge has danger style when intent is danger 1`] = `
|
|
|
6
6
|
style={
|
|
7
7
|
Object {
|
|
8
8
|
"alignItems": "center",
|
|
9
|
-
"backgroundColor": "#
|
|
9
|
+
"backgroundColor": "#cb300a",
|
|
10
10
|
"borderRadius": 999,
|
|
11
11
|
"height": 20,
|
|
12
12
|
"justifyContent": "center",
|
|
@@ -59,7 +59,7 @@ exports[`Badge has info style when intent is info 1`] = `
|
|
|
59
59
|
style={
|
|
60
60
|
Object {
|
|
61
61
|
"alignItems": "center",
|
|
62
|
-
"backgroundColor": "#
|
|
62
|
+
"backgroundColor": "#355bfb",
|
|
63
63
|
"borderRadius": 999,
|
|
64
64
|
"height": 20,
|
|
65
65
|
"justifyContent": "center",
|
|
@@ -218,7 +218,7 @@ exports[`Badge has warning style when intent is warning 1`] = `
|
|
|
218
218
|
style={
|
|
219
219
|
Object {
|
|
220
220
|
"alignItems": "center",
|
|
221
|
-
"backgroundColor": "#
|
|
221
|
+
"backgroundColor": "#ac5d00",
|
|
222
222
|
"borderRadius": 999,
|
|
223
223
|
"height": 20,
|
|
224
224
|
"justifyContent": "center",
|
|
@@ -85,7 +85,7 @@ exports[`StyledLoadingIndicator has outlined-danger style 1`] = `
|
|
|
85
85
|
style={
|
|
86
86
|
Array [
|
|
87
87
|
Object {
|
|
88
|
-
"backgroundColor": "#
|
|
88
|
+
"backgroundColor": "#cb300a",
|
|
89
89
|
"borderRadius": 8,
|
|
90
90
|
"height": 12,
|
|
91
91
|
"marginBottom": 4,
|
|
@@ -145,7 +145,7 @@ exports[`StyledLoadingIndicator has text-danger style 1`] = `
|
|
|
145
145
|
style={
|
|
146
146
|
Array [
|
|
147
147
|
Object {
|
|
148
|
-
"backgroundColor": "#
|
|
148
|
+
"backgroundColor": "#cb300a",
|
|
149
149
|
"borderRadius": 8,
|
|
150
150
|
"height": 12,
|
|
151
151
|
"marginBottom": 4,
|
|
@@ -489,7 +489,7 @@ exports[`LoadingIndicator renders correctly when themeVariant is outlined-danger
|
|
|
489
489
|
style={
|
|
490
490
|
Array [
|
|
491
491
|
Object {
|
|
492
|
-
"backgroundColor": "#
|
|
492
|
+
"backgroundColor": "#cb300a",
|
|
493
493
|
"borderRadius": 8,
|
|
494
494
|
"height": 12,
|
|
495
495
|
"marginBottom": 4,
|
|
@@ -521,7 +521,7 @@ exports[`LoadingIndicator renders correctly when themeVariant is outlined-danger
|
|
|
521
521
|
style={
|
|
522
522
|
Array [
|
|
523
523
|
Object {
|
|
524
|
-
"backgroundColor": "#
|
|
524
|
+
"backgroundColor": "#cb300a",
|
|
525
525
|
"borderRadius": 8,
|
|
526
526
|
"height": 12,
|
|
527
527
|
"marginBottom": 4,
|
|
@@ -553,7 +553,7 @@ exports[`LoadingIndicator renders correctly when themeVariant is outlined-danger
|
|
|
553
553
|
style={
|
|
554
554
|
Array [
|
|
555
555
|
Object {
|
|
556
|
-
"backgroundColor": "#
|
|
556
|
+
"backgroundColor": "#cb300a",
|
|
557
557
|
"borderRadius": 8,
|
|
558
558
|
"height": 12,
|
|
559
559
|
"marginBottom": 4,
|
|
@@ -831,7 +831,7 @@ exports[`LoadingIndicator renders correctly when themeVariant is text-danger 1`]
|
|
|
831
831
|
style={
|
|
832
832
|
Array [
|
|
833
833
|
Object {
|
|
834
|
-
"backgroundColor": "#
|
|
834
|
+
"backgroundColor": "#cb300a",
|
|
835
835
|
"borderRadius": 8,
|
|
836
836
|
"height": 12,
|
|
837
837
|
"marginBottom": 4,
|
|
@@ -863,7 +863,7 @@ exports[`LoadingIndicator renders correctly when themeVariant is text-danger 1`]
|
|
|
863
863
|
style={
|
|
864
864
|
Array [
|
|
865
865
|
Object {
|
|
866
|
-
"backgroundColor": "#
|
|
866
|
+
"backgroundColor": "#cb300a",
|
|
867
867
|
"borderRadius": 8,
|
|
868
868
|
"height": 12,
|
|
869
869
|
"marginBottom": 4,
|
|
@@ -895,7 +895,7 @@ exports[`LoadingIndicator renders correctly when themeVariant is text-danger 1`]
|
|
|
895
895
|
style={
|
|
896
896
|
Array [
|
|
897
897
|
Object {
|
|
898
|
-
"backgroundColor": "#
|
|
898
|
+
"backgroundColor": "#cb300a",
|
|
899
899
|
"borderRadius": 8,
|
|
900
900
|
"height": 12,
|
|
901
901
|
"marginBottom": 4,
|
|
@@ -1161,7 +1161,7 @@ exports[`Button renders correctly 13`] = `
|
|
|
1161
1161
|
},
|
|
1162
1162
|
Array [
|
|
1163
1163
|
Object {
|
|
1164
|
-
"color": "#
|
|
1164
|
+
"color": "#cb300a",
|
|
1165
1165
|
"flexShrink": 1,
|
|
1166
1166
|
"lineHeight": 22,
|
|
1167
1167
|
"textAlign": "center",
|
|
@@ -1244,7 +1244,7 @@ exports[`Button renders correctly 14`] = `
|
|
|
1244
1244
|
style={
|
|
1245
1245
|
Array [
|
|
1246
1246
|
Object {
|
|
1247
|
-
"backgroundColor": "#
|
|
1247
|
+
"backgroundColor": "#cb300a",
|
|
1248
1248
|
"borderRadius": 8,
|
|
1249
1249
|
"height": 12,
|
|
1250
1250
|
"marginBottom": 4,
|
|
@@ -1276,7 +1276,7 @@ exports[`Button renders correctly 14`] = `
|
|
|
1276
1276
|
style={
|
|
1277
1277
|
Array [
|
|
1278
1278
|
Object {
|
|
1279
|
-
"backgroundColor": "#
|
|
1279
|
+
"backgroundColor": "#cb300a",
|
|
1280
1280
|
"borderRadius": 8,
|
|
1281
1281
|
"height": 12,
|
|
1282
1282
|
"marginBottom": 4,
|
|
@@ -1308,7 +1308,7 @@ exports[`Button renders correctly 14`] = `
|
|
|
1308
1308
|
style={
|
|
1309
1309
|
Array [
|
|
1310
1310
|
Object {
|
|
1311
|
-
"backgroundColor": "#
|
|
1311
|
+
"backgroundColor": "#cb300a",
|
|
1312
1312
|
"borderRadius": 8,
|
|
1313
1313
|
"height": 12,
|
|
1314
1314
|
"marginBottom": 4,
|
|
@@ -16,7 +16,7 @@ exports[`StyledButtonContainer has filled-danger style 1`] = `
|
|
|
16
16
|
Object {
|
|
17
17
|
"alignItems": "center",
|
|
18
18
|
"alignSelf": "stretch",
|
|
19
|
-
"backgroundColor": "#
|
|
19
|
+
"backgroundColor": "#cb300a",
|
|
20
20
|
"borderRadius": 32,
|
|
21
21
|
"flexDirection": "row",
|
|
22
22
|
"justifyContent": "center",
|
|
@@ -113,7 +113,7 @@ exports[`StyledButtonContainer has outlined-danger style 1`] = `
|
|
|
113
113
|
"alignItems": "center",
|
|
114
114
|
"alignSelf": "stretch",
|
|
115
115
|
"backgroundColor": "transparent",
|
|
116
|
-
"borderColor": "#
|
|
116
|
+
"borderColor": "#cb300a",
|
|
117
117
|
"borderRadius": 32,
|
|
118
118
|
"borderWidth": 2,
|
|
119
119
|
"flexDirection": "row",
|
|
@@ -411,7 +411,7 @@ exports[`StyledButtonIcon has outlined-danger style 1`] = `
|
|
|
411
411
|
},
|
|
412
412
|
Array [
|
|
413
413
|
Object {
|
|
414
|
-
"color": "#
|
|
414
|
+
"color": "#cb300a",
|
|
415
415
|
"fontSize": 20,
|
|
416
416
|
},
|
|
417
417
|
undefined,
|
|
@@ -480,7 +480,7 @@ exports[`StyledButtonIcon has text-danger style 1`] = `
|
|
|
480
480
|
},
|
|
481
481
|
Array [
|
|
482
482
|
Object {
|
|
483
|
-
"color": "#
|
|
483
|
+
"color": "#cb300a",
|
|
484
484
|
"fontSize": 20,
|
|
485
485
|
},
|
|
486
486
|
undefined,
|
|
@@ -696,7 +696,7 @@ exports[`StyledButtonText has outlined-danger style 1`] = `
|
|
|
696
696
|
},
|
|
697
697
|
Array [
|
|
698
698
|
Object {
|
|
699
|
-
"color": "#
|
|
699
|
+
"color": "#cb300a",
|
|
700
700
|
"flexShrink": 1,
|
|
701
701
|
"textAlign": "center",
|
|
702
702
|
},
|
|
@@ -789,7 +789,7 @@ exports[`StyledButtonText has text-danger style 1`] = `
|
|
|
789
789
|
},
|
|
790
790
|
Array [
|
|
791
791
|
Object {
|
|
792
|
-
"color": "#
|
|
792
|
+
"color": "#cb300a",
|
|
793
793
|
"flexShrink": 1,
|
|
794
794
|
"textAlign": "center",
|
|
795
795
|
},
|
|
@@ -764,7 +764,7 @@ exports[`ActionGroup has active true 1`] = `
|
|
|
764
764
|
"backgroundColor": "#000000",
|
|
765
765
|
"bottom": 0,
|
|
766
766
|
"left": 0,
|
|
767
|
-
"opacity": 0.
|
|
767
|
+
"opacity": 0.25,
|
|
768
768
|
"position": "absolute",
|
|
769
769
|
"right": 0,
|
|
770
770
|
"top": 0,
|
|
@@ -1373,7 +1373,7 @@ exports[`ActionGroup has active true 1`] = `
|
|
|
1373
1373
|
Object {
|
|
1374
1374
|
"alignItems": "center",
|
|
1375
1375
|
"alignSelf": "flex-start",
|
|
1376
|
-
"backgroundColor": "#
|
|
1376
|
+
"backgroundColor": "#33144d",
|
|
1377
1377
|
"borderRadius": 999,
|
|
1378
1378
|
"elevation": 2,
|
|
1379
1379
|
"flexDirection": "row",
|
|
@@ -114,7 +114,7 @@ const ActionGroup = forwardRef<ActionGroupHandles, ActionGroupProps>(
|
|
|
114
114
|
const interpolatedBackdropOpacityAnimation =
|
|
115
115
|
tranlateXAnimation.current.interpolate({
|
|
116
116
|
inputRange: [0, 1],
|
|
117
|
-
outputRange: [0, 0.
|
|
117
|
+
outputRange: [0, 0.25],
|
|
118
118
|
});
|
|
119
119
|
|
|
120
120
|
const interpolatedActionGroupOpacityAnimation =
|
|
@@ -6,22 +6,26 @@ import Icon from '../Icon';
|
|
|
6
6
|
import Typography from '../Typography';
|
|
7
7
|
import Box from '../Box';
|
|
8
8
|
|
|
9
|
-
const StyledFAB = styled(TouchableHighlight)<
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
9
|
+
const StyledFAB = styled(TouchableHighlight)<
|
|
10
|
+
TouchableHighlightProps & {
|
|
11
|
+
themeActive?: boolean;
|
|
12
|
+
}
|
|
13
|
+
>(({ theme, themeActive }) => ({
|
|
14
|
+
backgroundColor: themeActive
|
|
15
|
+
? theme.__hd__.fab.colors.buttonActiveBackground
|
|
16
|
+
: theme.__hd__.fab.colors.buttonBackground,
|
|
17
|
+
borderRadius: theme.radii.rounded,
|
|
18
|
+
alignItems: 'center',
|
|
19
|
+
justifyContent: 'center',
|
|
20
|
+
alignSelf: 'flex-start',
|
|
21
|
+
padding: theme.__hd__.fab.space.containerPadding,
|
|
22
|
+
flexDirection: 'row',
|
|
23
|
+
elevation: theme.__hd__.fab.shadows.elevation,
|
|
24
|
+
shadowColor: theme.__hd__.fab.colors.shadow,
|
|
25
|
+
shadowOffset: theme.__hd__.fab.shadows.offset,
|
|
26
|
+
shadowRadius: theme.__hd__.fab.shadows.radius,
|
|
27
|
+
shadowOpacity: theme.__hd__.fab.shadows.opacity,
|
|
28
|
+
}));
|
|
25
29
|
|
|
26
30
|
const StyledFABIcon = styled(Icon)<IconProps>(({ theme }) => ({
|
|
27
31
|
color: theme.__hd__.fab.colors.icon,
|
|
@@ -6,7 +6,17 @@ import { StyledFAB, StyledFABIcon } from '../StyledFAB';
|
|
|
6
6
|
describe('StyledFAB', () => {
|
|
7
7
|
it('renders correctly', () => {
|
|
8
8
|
const { toJSON } = renderWithTheme(
|
|
9
|
-
<StyledFAB>
|
|
9
|
+
<StyledFAB themeActive={false}>
|
|
10
|
+
<Typography.Body variant="small"> button </Typography.Body>
|
|
11
|
+
</StyledFAB>
|
|
12
|
+
);
|
|
13
|
+
|
|
14
|
+
expect(toJSON()).toMatchSnapshot();
|
|
15
|
+
});
|
|
16
|
+
|
|
17
|
+
it('renders correctly', () => {
|
|
18
|
+
const { toJSON } = renderWithTheme(
|
|
19
|
+
<StyledFAB themeActive>
|
|
10
20
|
<Typography.Body variant="small"> button </Typography.Body>
|
|
11
21
|
</StyledFAB>
|
|
12
22
|
);
|
|
@@ -57,6 +57,63 @@ exports[`StyledFAB renders correctly 1`] = `
|
|
|
57
57
|
</View>
|
|
58
58
|
`;
|
|
59
59
|
|
|
60
|
+
exports[`StyledFAB renders correctly 2`] = `
|
|
61
|
+
<View
|
|
62
|
+
accessible={true}
|
|
63
|
+
focusable={false}
|
|
64
|
+
onClick={[Function]}
|
|
65
|
+
onResponderGrant={[Function]}
|
|
66
|
+
onResponderMove={[Function]}
|
|
67
|
+
onResponderRelease={[Function]}
|
|
68
|
+
onResponderTerminate={[Function]}
|
|
69
|
+
onResponderTerminationRequest={[Function]}
|
|
70
|
+
onStartShouldSetResponder={[Function]}
|
|
71
|
+
style={
|
|
72
|
+
Array [
|
|
73
|
+
Object {
|
|
74
|
+
"alignItems": "center",
|
|
75
|
+
"alignSelf": "flex-start",
|
|
76
|
+
"backgroundColor": "#33144d",
|
|
77
|
+
"borderRadius": 999,
|
|
78
|
+
"elevation": 2,
|
|
79
|
+
"flexDirection": "row",
|
|
80
|
+
"justifyContent": "center",
|
|
81
|
+
"padding": 20,
|
|
82
|
+
"shadowColor": "#001f23",
|
|
83
|
+
"shadowOffset": Object {
|
|
84
|
+
"height": 2,
|
|
85
|
+
"width": 0,
|
|
86
|
+
},
|
|
87
|
+
"shadowOpacity": 0.12,
|
|
88
|
+
"shadowRadius": 8,
|
|
89
|
+
},
|
|
90
|
+
undefined,
|
|
91
|
+
]
|
|
92
|
+
}
|
|
93
|
+
>
|
|
94
|
+
<Text
|
|
95
|
+
allowFontScaling={false}
|
|
96
|
+
style={
|
|
97
|
+
Array [
|
|
98
|
+
Object {
|
|
99
|
+
"color": "#001f23",
|
|
100
|
+
"fontFamily": "BeVietnamPro-Regular",
|
|
101
|
+
"fontSize": 14,
|
|
102
|
+
"letterSpacing": 0.48,
|
|
103
|
+
"lineHeight": 22,
|
|
104
|
+
},
|
|
105
|
+
undefined,
|
|
106
|
+
]
|
|
107
|
+
}
|
|
108
|
+
themeIntent="body"
|
|
109
|
+
themeTypeface="neutral"
|
|
110
|
+
themeVariant="small"
|
|
111
|
+
>
|
|
112
|
+
button
|
|
113
|
+
</Text>
|
|
114
|
+
</View>
|
|
115
|
+
`;
|
|
116
|
+
|
|
60
117
|
exports[`StyledFABIcon renders correctly 1`] = `
|
|
61
118
|
<HeroIcon
|
|
62
119
|
name="add"
|
|
@@ -19,6 +19,7 @@ const StyledListItemContainer = styled(TouchableHighlight)<{
|
|
|
19
19
|
? theme.__hd__.list.colors.checkedListItemContainerBackground
|
|
20
20
|
: theme.__hd__.list.colors.listItemContainerBackground,
|
|
21
21
|
padding: theme.__hd__.list.space.listItemContainerPadding,
|
|
22
|
+
borderRadius: theme.__hd__.list.radii.item,
|
|
22
23
|
};
|
|
23
24
|
|
|
24
25
|
switch (themeVariant) {
|
|
@@ -28,7 +29,6 @@ const StyledListItemContainer = styled(TouchableHighlight)<{
|
|
|
28
29
|
return {
|
|
29
30
|
...sharedStyles,
|
|
30
31
|
alignItems: 'center',
|
|
31
|
-
borderRadius: theme.__hd__.list.radii.card,
|
|
32
32
|
shadowColor: theme.colors.secondaryOutline,
|
|
33
33
|
shadowRadius: theme.__hd__.list.radii.cardShadow,
|
|
34
34
|
shadowOffset: theme.__hd__.list.shadows.cardOffset,
|
|
@@ -20,6 +20,7 @@ exports[`ListItem renders correctly ListItem with children 1`] = `
|
|
|
20
20
|
Array [
|
|
21
21
|
Object {
|
|
22
22
|
"backgroundColor": "#ffffff",
|
|
23
|
+
"borderRadius": 8,
|
|
23
24
|
"flexDirection": "row",
|
|
24
25
|
"padding": 16,
|
|
25
26
|
},
|
|
@@ -346,6 +347,7 @@ exports[`ListItem renders correctly ListItem with icon 1`] = `
|
|
|
346
347
|
Array [
|
|
347
348
|
Object {
|
|
348
349
|
"backgroundColor": "#ffffff",
|
|
350
|
+
"borderRadius": 8,
|
|
349
351
|
"flexDirection": "row",
|
|
350
352
|
"padding": 16,
|
|
351
353
|
},
|
|
@@ -474,6 +476,7 @@ exports[`ListItem renders correctly ListItem with leading status 1`] = `
|
|
|
474
476
|
Array [
|
|
475
477
|
Object {
|
|
476
478
|
"backgroundColor": "#ffffff",
|
|
479
|
+
"borderRadius": 8,
|
|
477
480
|
"flexDirection": "row",
|
|
478
481
|
"padding": 16,
|
|
479
482
|
},
|
|
@@ -597,6 +600,7 @@ exports[`ListItem renders correctly ListItem with prefix suffix is React.Element
|
|
|
597
600
|
Array [
|
|
598
601
|
Object {
|
|
599
602
|
"backgroundColor": "#ffffff",
|
|
603
|
+
"borderRadius": 8,
|
|
600
604
|
"flexDirection": "row",
|
|
601
605
|
"padding": 16,
|
|
602
606
|
},
|
|
@@ -155,6 +155,7 @@ exports[`ListItemContainer renders correctly themeSelected false themeVariant fu
|
|
|
155
155
|
Array [
|
|
156
156
|
Object {
|
|
157
157
|
"backgroundColor": "#ffffff",
|
|
158
|
+
"borderRadius": 8,
|
|
158
159
|
"flexDirection": "row",
|
|
159
160
|
"padding": 16,
|
|
160
161
|
},
|
|
@@ -255,6 +256,7 @@ exports[`ListItemContainer renders correctly themeSelected true themeVariant ful
|
|
|
255
256
|
Array [
|
|
256
257
|
Object {
|
|
257
258
|
"backgroundColor": "#ece8ef",
|
|
259
|
+
"borderRadius": 8,
|
|
258
260
|
"flexDirection": "row",
|
|
259
261
|
"padding": 16,
|
|
260
262
|
},
|
|
@@ -102,7 +102,7 @@ exports[`PinCell renders correctly when focused is false, state is error 1`] = `
|
|
|
102
102
|
Array [
|
|
103
103
|
Object {
|
|
104
104
|
"alignItems": "center",
|
|
105
|
-
"borderColor": "#
|
|
105
|
+
"borderColor": "#cb300a",
|
|
106
106
|
"borderRadius": 8,
|
|
107
107
|
"borderWidth": 1,
|
|
108
108
|
"height": 48,
|
|
@@ -128,7 +128,7 @@ exports[`PinCell renders correctly when focused is false, state is error 1`] = `
|
|
|
128
128
|
},
|
|
129
129
|
Array [
|
|
130
130
|
Object {
|
|
131
|
-
"color": "#
|
|
131
|
+
"color": "#cb300a",
|
|
132
132
|
},
|
|
133
133
|
undefined,
|
|
134
134
|
],
|
|
@@ -198,7 +198,7 @@ exports[`PinCell renders correctly when focused is true, state is error 1`] = `
|
|
|
198
198
|
Array [
|
|
199
199
|
Object {
|
|
200
200
|
"alignItems": "center",
|
|
201
|
-
"borderColor": "#
|
|
201
|
+
"borderColor": "#cb300a",
|
|
202
202
|
"borderRadius": 8,
|
|
203
203
|
"borderWidth": 2,
|
|
204
204
|
"height": 48,
|
|
@@ -224,7 +224,7 @@ exports[`PinCell renders correctly when focused is true, state is error 1`] = `
|
|
|
224
224
|
},
|
|
225
225
|
Array [
|
|
226
226
|
Object {
|
|
227
|
-
"color": "#
|
|
227
|
+
"color": "#cb300a",
|
|
228
228
|
},
|
|
229
229
|
undefined,
|
|
230
230
|
],
|