@hero-design/rn 8.22.0-alpha.0 → 8.22.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 +9 -9
- package/.turbo/turbo-publish:npm.log +0 -9
- package/es/index.js +48 -26
- package/lib/index.js +48 -26
- package/package.json +5 -5
- package/src/components/FAB/ActionGroup/__tests__/__snapshots__/index.spec.tsx.snap +180 -138
- package/src/components/FAB/FAB.tsx +17 -12
- package/src/components/FAB/StyledFAB.tsx +13 -4
- package/src/components/FAB/__tests__/__snapshots__/StyledFAB.spec.tsx.snap +13 -21
- package/src/components/FAB/__tests__/__snapshots__/index.spec.tsx.snap +214 -151
- package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +10 -0
- package/src/theme/components/fab.ts +18 -1
- package/src/theme/global/colors/__tests__/__snapshots__/globalDark.spec.ts.snap +19 -19
- package/src/theme/global/colors/__tests__/__snapshots__/swagDark.spec.ts.snap +19 -19
- package/src/theme/global/colors/globalDark.ts +24 -24
- 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 +7 -3
- 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/Swipeable/StyledSwipeable.d.ts +0 -0
- package/types/components/Swipeable/SwipeableAction.d.ts +0 -0
- package/types/components/Swipeable/index.d.ts +0 -0
- 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/ScrollableTabs.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/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 +10 -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 +0 -0
- 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/swipeable.d.ts +0 -0
- package/types/theme/components/switch.d.ts +0 -0
- 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/.turbo/turbo-build:types.log +0 -2
- package/.turbo/turbo-lint.log +0 -146
- package/.turbo/turbo-test.log +0 -451
- package/.turbo/turbo-type-check.log +0 -2
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
[
|
|
2
|
-
[
|
|
3
|
-
[
|
|
4
|
-
[
|
|
5
|
-
[
|
|
6
|
-
[
|
|
7
|
-
[
|
|
8
|
-
[
|
|
9
|
-
[
|
|
1
|
+
[32m@hero-design/rn:build[0m: cache hit, replaying output [2mebe8623fbd3e3933[0m
|
|
2
|
+
[32m@hero-design/rn:build: [0m$ yarn build:js && yarn build:types
|
|
3
|
+
[32m@hero-design/rn:build: [0m$ rollup -c
|
|
4
|
+
[32m@hero-design/rn:build: [0m[36m
|
|
5
|
+
[32m@hero-design/rn:build: [0m[1msrc/index.ts[22m → [1mlib/index.js, es/index.js[22m...[39m
|
|
6
|
+
[32m@hero-design/rn:build: [0m[1m[33m(!) Plugin replace: @rollup/plugin-replace: 'preventAssignment' currently defaults to false. It is recommended to set this option to `true`, as the next major version will default this option to `true`.[39m[22m
|
|
7
|
+
[32m@hero-design/rn:build: [0m[1m[33m(!) Plugin node-resolve: preferring built-in module 'events' over local alternative at '/root/hero-design/node_modules/events/events.js', pass 'preferBuiltins: false' to disable this behavior or 'preferBuiltins: true' to disable this warning[39m[22m
|
|
8
|
+
[32m@hero-design/rn:build: [0m[32mcreated [1mlib/index.js, es/index.js[22m in [1m26.8s[22m[39m
|
|
9
|
+
[32m@hero-design/rn:build: [0m$ tsc --noEmit false --emitDeclarationOnly --project tsconfig.prod.json
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
[36m@hero-design/rn:publish:npm[0m: cache hit, replaying output [2m507c34f3e0a508f6[0m
|
|
2
|
-
[36m@hero-design/rn:publish:npm: [0m$ yarn publish --access public
|
|
3
|
-
[36m@hero-design/rn:publish:npm: [0m[1/4] Bumping version...
|
|
4
|
-
[36m@hero-design/rn:publish:npm: [0minfo Current version: 8.12.0-rc.0
|
|
5
|
-
[36m@hero-design/rn:publish:npm: [0m[2/4] Logging in...
|
|
6
|
-
[36m@hero-design/rn:publish:npm: [0m[3/4] Publishing...
|
|
7
|
-
[36m@hero-design/rn:publish:npm: [0msuccess Published.
|
|
8
|
-
[36m@hero-design/rn:publish:npm: [0m[4/4] Revoking token...
|
|
9
|
-
[36m@hero-design/rn:publish:npm: [0minfo Not revoking login token, specified via config file.
|
package/es/index.js
CHANGED
|
@@ -1427,26 +1427,26 @@ var globalPalette = {
|
|
|
1427
1427
|
inactiveOutline: palette$7.maasstrichtBlueLight60,
|
|
1428
1428
|
disabledOutline: palette$7.greyDark20,
|
|
1429
1429
|
// Accents
|
|
1430
|
-
error: palette$7.
|
|
1431
|
-
mutedError: palette$7.
|
|
1432
|
-
errorSurface: palette$7.
|
|
1433
|
-
onErrorSurface: palette$7.
|
|
1434
|
-
warning: palette$7.
|
|
1435
|
-
mutedWarning: palette$7.
|
|
1436
|
-
warningSurface: palette$7.
|
|
1437
|
-
onWarningSurface: palette$7.
|
|
1438
|
-
success: palette$7.
|
|
1439
|
-
mutedSuccess: palette$7.
|
|
1440
|
-
successSurface: palette$7.
|
|
1441
|
-
onSuccessSurface: palette$7.
|
|
1442
|
-
info: palette$7.
|
|
1443
|
-
mutedInfo: palette$7.
|
|
1444
|
-
infoSurface: palette$7.
|
|
1445
|
-
onInfoSurface: palette$7.
|
|
1446
|
-
archived: palette$7.
|
|
1447
|
-
mutedArchived: palette$7.
|
|
1448
|
-
archivedSurface: palette$7.
|
|
1449
|
-
onArchivedSurface: palette$7.
|
|
1430
|
+
error: palette$7.vermilionDark10,
|
|
1431
|
+
mutedError: palette$7.vermilionLight20,
|
|
1432
|
+
errorSurface: palette$7.moussaka,
|
|
1433
|
+
onErrorSurface: palette$7.indianDance,
|
|
1434
|
+
warning: palette$7.theatreGold,
|
|
1435
|
+
mutedWarning: palette$7.theatreGoldLight20,
|
|
1436
|
+
warningSurface: palette$7.uniformGreen,
|
|
1437
|
+
onWarningSurface: palette$7.blazingBonfire,
|
|
1438
|
+
success: palette$7.pineGreenDark10,
|
|
1439
|
+
mutedSuccess: palette$7.pineGreenLight20,
|
|
1440
|
+
successSurface: palette$7.deepIntoTheJungle,
|
|
1441
|
+
onSuccessSurface: palette$7.mintLeaf,
|
|
1442
|
+
info: palette$7.ultramarineBlueDark10,
|
|
1443
|
+
mutedInfo: palette$7.ultramarineBlueLight20,
|
|
1444
|
+
infoSurface: palette$7.blueOblivion,
|
|
1445
|
+
onInfoSurface: palette$7.pastelBlue,
|
|
1446
|
+
archived: palette$7.sonicSilverDark10,
|
|
1447
|
+
mutedArchived: palette$7.sonicSilverLight50,
|
|
1448
|
+
archivedSurface: palette$7.bigStone,
|
|
1449
|
+
onArchivedSurface: palette$7.flagstone
|
|
1450
1450
|
// End of Updated 21 / Nov / 22
|
|
1451
1451
|
};
|
|
1452
1452
|
|
|
@@ -2259,7 +2259,8 @@ var getFABTheme = function getFABTheme(theme) {
|
|
|
2259
2259
|
actionItemPressedBackground: theme.colors.pressedSurface,
|
|
2260
2260
|
backdropBackground: theme.colors.overlayGlobalSurface,
|
|
2261
2261
|
titleText: theme.colors.onPrimary,
|
|
2262
|
-
actionItemText: theme.colors.onPrimary
|
|
2262
|
+
actionItemText: theme.colors.onPrimary,
|
|
2263
|
+
shadow: theme.colors.primaryOutline
|
|
2263
2264
|
};
|
|
2264
2265
|
var sizes = {
|
|
2265
2266
|
width: theme.sizes.xxxxxlarge,
|
|
@@ -2281,6 +2282,15 @@ var getFABTheme = function getFABTheme(theme) {
|
|
|
2281
2282
|
title: theme.lineHeights.large,
|
|
2282
2283
|
icon: theme.lineHeights.large
|
|
2283
2284
|
};
|
|
2285
|
+
var shadows = {
|
|
2286
|
+
offset: {
|
|
2287
|
+
width: 0,
|
|
2288
|
+
height: 2
|
|
2289
|
+
},
|
|
2290
|
+
opacity: 0.12,
|
|
2291
|
+
radius: theme.radii.medium,
|
|
2292
|
+
elevation: 2
|
|
2293
|
+
};
|
|
2284
2294
|
var space = {
|
|
2285
2295
|
actionItemPaddingLeft: theme.space.medium,
|
|
2286
2296
|
actionItemPaddingRight: theme.space.medium,
|
|
@@ -2307,6 +2317,7 @@ var getFABTheme = function getFABTheme(theme) {
|
|
|
2307
2317
|
colors: colors,
|
|
2308
2318
|
sizes: sizes,
|
|
2309
2319
|
lineHeights: lineHeights,
|
|
2320
|
+
shadows: shadows,
|
|
2310
2321
|
space: space
|
|
2311
2322
|
};
|
|
2312
2323
|
};
|
|
@@ -12745,7 +12756,7 @@ var Error$1 = function Error(_ref2) {
|
|
|
12745
12756
|
}, nativeProps));
|
|
12746
12757
|
};
|
|
12747
12758
|
|
|
12748
|
-
var
|
|
12759
|
+
var StyledFAB$1 = index$a(TouchableHighlight)(function (_ref) {
|
|
12749
12760
|
var theme = _ref.theme;
|
|
12750
12761
|
return {
|
|
12751
12762
|
backgroundColor: theme.__hd__.fab.colors.buttonBackground,
|
|
@@ -12756,7 +12767,8 @@ var StyledFABContainer = index$a(TouchableHighlight)(function (_ref) {
|
|
|
12756
12767
|
alignSelf: 'flex-start',
|
|
12757
12768
|
paddingHorizontal: theme.__hd__.fab.space.containerPaddingHorizontal,
|
|
12758
12769
|
paddingVertical: theme.__hd__.fab.space.containerPaddingVertical,
|
|
12759
|
-
flexDirection: 'row'
|
|
12770
|
+
flexDirection: 'row',
|
|
12771
|
+
elevation: theme.__hd__.fab.shadows.elevation
|
|
12760
12772
|
};
|
|
12761
12773
|
});
|
|
12762
12774
|
var StyledFABIcon = index$a(Icon)(function (_ref2) {
|
|
@@ -12780,6 +12792,15 @@ var StyledFABText = index$a(Typography.Text)(function (_ref3) {
|
|
|
12780
12792
|
marginHorizontal: theme.__hd__.fab.space.titleMarginHorizontal
|
|
12781
12793
|
};
|
|
12782
12794
|
});
|
|
12795
|
+
var StyledFABContainer = index$a(Box)(function (_ref4) {
|
|
12796
|
+
var theme = _ref4.theme;
|
|
12797
|
+
return {
|
|
12798
|
+
shadowColor: theme.__hd__.fab.colors.shadow,
|
|
12799
|
+
shadowOffset: theme.__hd__.fab.shadows.offset,
|
|
12800
|
+
shadowRadius: theme.__hd__.fab.shadows.radius,
|
|
12801
|
+
shadowOpacity: theme.__hd__.fab.shadows.opacity
|
|
12802
|
+
};
|
|
12803
|
+
});
|
|
12783
12804
|
|
|
12784
12805
|
var _excluded$a = ["active"];
|
|
12785
12806
|
var AnimatedIcons = Animated.createAnimatedComponent(StyledFABIcon);
|
|
@@ -12846,9 +12867,10 @@ var FAB = function FAB(_ref3) {
|
|
|
12846
12867
|
var isIconOnly = !title;
|
|
12847
12868
|
var theme = useTheme();
|
|
12848
12869
|
return /*#__PURE__*/React.createElement(StyledFABContainer, {
|
|
12849
|
-
underlayColor: theme.__hd__.fab.colors.buttonPressedBackground,
|
|
12850
|
-
testID: testID,
|
|
12851
12870
|
style: style,
|
|
12871
|
+
testID: testID
|
|
12872
|
+
}, /*#__PURE__*/React.createElement(StyledFAB$1, {
|
|
12873
|
+
underlayColor: theme.__hd__.fab.colors.buttonPressedBackground,
|
|
12852
12874
|
onPress: onPress
|
|
12853
12875
|
}, isIconOnly ? /*#__PURE__*/React.createElement(IconOnlyContent, {
|
|
12854
12876
|
animated: animated,
|
|
@@ -12857,7 +12879,7 @@ var FAB = function FAB(_ref3) {
|
|
|
12857
12879
|
}) : /*#__PURE__*/React.createElement(IconWithTextContent, {
|
|
12858
12880
|
icon: icon,
|
|
12859
12881
|
title: title
|
|
12860
|
-
}));
|
|
12882
|
+
})));
|
|
12861
12883
|
};
|
|
12862
12884
|
|
|
12863
12885
|
var StyledActionItem = index$a(TouchableHighlight)(function (_ref) {
|
package/lib/index.js
CHANGED
|
@@ -1457,26 +1457,26 @@ var globalPalette = {
|
|
|
1457
1457
|
inactiveOutline: palette$7.maasstrichtBlueLight60,
|
|
1458
1458
|
disabledOutline: palette$7.greyDark20,
|
|
1459
1459
|
// Accents
|
|
1460
|
-
error: palette$7.
|
|
1461
|
-
mutedError: palette$7.
|
|
1462
|
-
errorSurface: palette$7.
|
|
1463
|
-
onErrorSurface: palette$7.
|
|
1464
|
-
warning: palette$7.
|
|
1465
|
-
mutedWarning: palette$7.
|
|
1466
|
-
warningSurface: palette$7.
|
|
1467
|
-
onWarningSurface: palette$7.
|
|
1468
|
-
success: palette$7.
|
|
1469
|
-
mutedSuccess: palette$7.
|
|
1470
|
-
successSurface: palette$7.
|
|
1471
|
-
onSuccessSurface: palette$7.
|
|
1472
|
-
info: palette$7.
|
|
1473
|
-
mutedInfo: palette$7.
|
|
1474
|
-
infoSurface: palette$7.
|
|
1475
|
-
onInfoSurface: palette$7.
|
|
1476
|
-
archived: palette$7.
|
|
1477
|
-
mutedArchived: palette$7.
|
|
1478
|
-
archivedSurface: palette$7.
|
|
1479
|
-
onArchivedSurface: palette$7.
|
|
1460
|
+
error: palette$7.vermilionDark10,
|
|
1461
|
+
mutedError: palette$7.vermilionLight20,
|
|
1462
|
+
errorSurface: palette$7.moussaka,
|
|
1463
|
+
onErrorSurface: palette$7.indianDance,
|
|
1464
|
+
warning: palette$7.theatreGold,
|
|
1465
|
+
mutedWarning: palette$7.theatreGoldLight20,
|
|
1466
|
+
warningSurface: palette$7.uniformGreen,
|
|
1467
|
+
onWarningSurface: palette$7.blazingBonfire,
|
|
1468
|
+
success: palette$7.pineGreenDark10,
|
|
1469
|
+
mutedSuccess: palette$7.pineGreenLight20,
|
|
1470
|
+
successSurface: palette$7.deepIntoTheJungle,
|
|
1471
|
+
onSuccessSurface: palette$7.mintLeaf,
|
|
1472
|
+
info: palette$7.ultramarineBlueDark10,
|
|
1473
|
+
mutedInfo: palette$7.ultramarineBlueLight20,
|
|
1474
|
+
infoSurface: palette$7.blueOblivion,
|
|
1475
|
+
onInfoSurface: palette$7.pastelBlue,
|
|
1476
|
+
archived: palette$7.sonicSilverDark10,
|
|
1477
|
+
mutedArchived: palette$7.sonicSilverLight50,
|
|
1478
|
+
archivedSurface: palette$7.bigStone,
|
|
1479
|
+
onArchivedSurface: palette$7.flagstone
|
|
1480
1480
|
// End of Updated 21 / Nov / 22
|
|
1481
1481
|
};
|
|
1482
1482
|
|
|
@@ -2289,7 +2289,8 @@ var getFABTheme = function getFABTheme(theme) {
|
|
|
2289
2289
|
actionItemPressedBackground: theme.colors.pressedSurface,
|
|
2290
2290
|
backdropBackground: theme.colors.overlayGlobalSurface,
|
|
2291
2291
|
titleText: theme.colors.onPrimary,
|
|
2292
|
-
actionItemText: theme.colors.onPrimary
|
|
2292
|
+
actionItemText: theme.colors.onPrimary,
|
|
2293
|
+
shadow: theme.colors.primaryOutline
|
|
2293
2294
|
};
|
|
2294
2295
|
var sizes = {
|
|
2295
2296
|
width: theme.sizes.xxxxxlarge,
|
|
@@ -2311,6 +2312,15 @@ var getFABTheme = function getFABTheme(theme) {
|
|
|
2311
2312
|
title: theme.lineHeights.large,
|
|
2312
2313
|
icon: theme.lineHeights.large
|
|
2313
2314
|
};
|
|
2315
|
+
var shadows = {
|
|
2316
|
+
offset: {
|
|
2317
|
+
width: 0,
|
|
2318
|
+
height: 2
|
|
2319
|
+
},
|
|
2320
|
+
opacity: 0.12,
|
|
2321
|
+
radius: theme.radii.medium,
|
|
2322
|
+
elevation: 2
|
|
2323
|
+
};
|
|
2314
2324
|
var space = {
|
|
2315
2325
|
actionItemPaddingLeft: theme.space.medium,
|
|
2316
2326
|
actionItemPaddingRight: theme.space.medium,
|
|
@@ -2337,6 +2347,7 @@ var getFABTheme = function getFABTheme(theme) {
|
|
|
2337
2347
|
colors: colors,
|
|
2338
2348
|
sizes: sizes,
|
|
2339
2349
|
lineHeights: lineHeights,
|
|
2350
|
+
shadows: shadows,
|
|
2340
2351
|
space: space
|
|
2341
2352
|
};
|
|
2342
2353
|
};
|
|
@@ -12775,7 +12786,7 @@ var Error$1 = function Error(_ref2) {
|
|
|
12775
12786
|
}, nativeProps));
|
|
12776
12787
|
};
|
|
12777
12788
|
|
|
12778
|
-
var
|
|
12789
|
+
var StyledFAB$1 = index$a(reactNative.TouchableHighlight)(function (_ref) {
|
|
12779
12790
|
var theme = _ref.theme;
|
|
12780
12791
|
return {
|
|
12781
12792
|
backgroundColor: theme.__hd__.fab.colors.buttonBackground,
|
|
@@ -12786,7 +12797,8 @@ var StyledFABContainer = index$a(reactNative.TouchableHighlight)(function (_ref)
|
|
|
12786
12797
|
alignSelf: 'flex-start',
|
|
12787
12798
|
paddingHorizontal: theme.__hd__.fab.space.containerPaddingHorizontal,
|
|
12788
12799
|
paddingVertical: theme.__hd__.fab.space.containerPaddingVertical,
|
|
12789
|
-
flexDirection: 'row'
|
|
12800
|
+
flexDirection: 'row',
|
|
12801
|
+
elevation: theme.__hd__.fab.shadows.elevation
|
|
12790
12802
|
};
|
|
12791
12803
|
});
|
|
12792
12804
|
var StyledFABIcon = index$a(Icon)(function (_ref2) {
|
|
@@ -12810,6 +12822,15 @@ var StyledFABText = index$a(Typography.Text)(function (_ref3) {
|
|
|
12810
12822
|
marginHorizontal: theme.__hd__.fab.space.titleMarginHorizontal
|
|
12811
12823
|
};
|
|
12812
12824
|
});
|
|
12825
|
+
var StyledFABContainer = index$a(Box)(function (_ref4) {
|
|
12826
|
+
var theme = _ref4.theme;
|
|
12827
|
+
return {
|
|
12828
|
+
shadowColor: theme.__hd__.fab.colors.shadow,
|
|
12829
|
+
shadowOffset: theme.__hd__.fab.shadows.offset,
|
|
12830
|
+
shadowRadius: theme.__hd__.fab.shadows.radius,
|
|
12831
|
+
shadowOpacity: theme.__hd__.fab.shadows.opacity
|
|
12832
|
+
};
|
|
12833
|
+
});
|
|
12813
12834
|
|
|
12814
12835
|
var _excluded$a = ["active"];
|
|
12815
12836
|
var AnimatedIcons = reactNative.Animated.createAnimatedComponent(StyledFABIcon);
|
|
@@ -12876,9 +12897,10 @@ var FAB = function FAB(_ref3) {
|
|
|
12876
12897
|
var isIconOnly = !title;
|
|
12877
12898
|
var theme = useTheme();
|
|
12878
12899
|
return /*#__PURE__*/React__default["default"].createElement(StyledFABContainer, {
|
|
12879
|
-
underlayColor: theme.__hd__.fab.colors.buttonPressedBackground,
|
|
12880
|
-
testID: testID,
|
|
12881
12900
|
style: style,
|
|
12901
|
+
testID: testID
|
|
12902
|
+
}, /*#__PURE__*/React__default["default"].createElement(StyledFAB$1, {
|
|
12903
|
+
underlayColor: theme.__hd__.fab.colors.buttonPressedBackground,
|
|
12882
12904
|
onPress: onPress
|
|
12883
12905
|
}, isIconOnly ? /*#__PURE__*/React__default["default"].createElement(IconOnlyContent, {
|
|
12884
12906
|
animated: animated,
|
|
@@ -12887,7 +12909,7 @@ var FAB = function FAB(_ref3) {
|
|
|
12887
12909
|
}) : /*#__PURE__*/React__default["default"].createElement(IconWithTextContent, {
|
|
12888
12910
|
icon: icon,
|
|
12889
12911
|
title: title
|
|
12890
|
-
}));
|
|
12912
|
+
})));
|
|
12891
12913
|
};
|
|
12892
12914
|
|
|
12893
12915
|
var StyledActionItem = index$a(reactNative.TouchableHighlight)(function (_ref) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hero-design/rn",
|
|
3
|
-
"version": "8.22.0
|
|
3
|
+
"version": "8.22.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"module": "es/index.js",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@emotion/native": "^11.9.3",
|
|
23
23
|
"@emotion/react": "^11.9.3",
|
|
24
|
-
"@hero-design/colors": "8.
|
|
24
|
+
"@hero-design/colors": "8.22.0",
|
|
25
25
|
"date-fns": "^2.16.1",
|
|
26
26
|
"events": "^3.2.0",
|
|
27
27
|
"hero-editor": "^1.9.21"
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"@babel/preset-typescript": "^7.17.12",
|
|
46
46
|
"@babel/runtime": "^7.18.9",
|
|
47
47
|
"@emotion/jest": "^11.9.3",
|
|
48
|
-
"@hero-design/eslint-plugin": "8.
|
|
48
|
+
"@hero-design/eslint-plugin": "8.22.0",
|
|
49
49
|
"@react-native-community/datetimepicker": "^3.5.2",
|
|
50
50
|
"@react-native-community/slider": "4.1.12",
|
|
51
51
|
"@rollup/plugin-babel": "^5.3.1",
|
|
@@ -61,9 +61,9 @@
|
|
|
61
61
|
"@types/react-native": "^0.67.7",
|
|
62
62
|
"@types/react-native-vector-icons": "^6.4.10",
|
|
63
63
|
"babel-plugin-inline-import": "^3.0.0",
|
|
64
|
-
"eslint-config-hd": "8.
|
|
64
|
+
"eslint-config-hd": "8.22.0",
|
|
65
65
|
"jest": "^27.3.1",
|
|
66
|
-
"prettier-config-hd": "8.
|
|
66
|
+
"prettier-config-hd": "8.22.0",
|
|
67
67
|
"react": "18.0.0",
|
|
68
68
|
"react-native": "0.69.7",
|
|
69
69
|
"react-native-gesture-handler": "~2.1.0",
|