@hero-design/rn 8.75.0 → 8.76.1-alpha.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$colon$types.log +0 -0
- package/.turbo/turbo-build.log +4 -3
- package/.turbo/turbo-lint.log +183 -0
- package/.turbo/turbo-publish:npm.log +9 -0
- package/.turbo/turbo-test.log +4726 -0
- package/.turbo/turbo-type-check.log +0 -0
- package/CHANGELOG.md +24 -0
- package/assets/fonts/hero-icons-mobile.ttf +0 -0
- package/es/index.js +562 -397
- package/lib/assets/fonts/hero-icons-mobile.ttf +0 -0
- package/lib/index.js +562 -397
- package/package.json +2 -2
- package/src/components/AnimatedScroller/__tests__/__snapshots__/ScrollablesWithFAB.spec.tsx.snap +84 -18
- package/src/components/Avatar/AvatarStack/__tests__/__snapshots__/StyledAvatarStack.spec.tsx.snap +2 -2
- package/src/components/Avatar/__tests__/__snapshots__/StyledAvatar.spec.tsx.snap +1 -1
- package/src/components/Avatar/__tests__/__snapshots__/index.spec.tsx.snap +3 -3
- package/src/components/BottomNavigation/__tests__/__snapshots__/index.spec.tsx.snap +3 -3
- package/src/components/BottomSheet/index.tsx +2 -0
- package/src/components/Calendar/__tests__/__snapshots__/CalendarRowItem.spec.tsx.snap +5 -5
- package/src/components/Card/DataCard/__tests__/__snapshots__/StyledDataCard.spec.tsx.snap +1 -1
- package/src/components/Card/__tests__/__snapshots__/index.spec.tsx.snap +1 -1
- package/src/components/Carousel/__tests__/__snapshots__/CardCarousel.spec.tsx.snap +4 -4
- package/src/components/Carousel/__tests__/__snapshots__/StyledCardCarousel.spec.tsx.snap +3 -3
- package/src/components/Carousel/__tests__/__snapshots__/StyledCarousel.spec.tsx.snap +2 -2
- package/src/components/Carousel/__tests__/__snapshots__/index.spec.tsx.snap +30 -30
- package/src/components/Chip/__tests__/__snapshots__/index.spec.tsx.snap +2 -2
- package/src/components/DatePicker/__tests__/__snapshots__/DatePickerIOS.spec.tsx.snap +1 -1
- package/src/components/Error/__tests__/__snapshots__/index.spec.tsx.snap +1 -1
- package/src/components/FAB/ActionGroup/ActionItem.tsx +1 -3
- package/src/components/FAB/ActionGroup/StyledActionGroup.tsx +1 -1
- package/src/components/FAB/ActionGroup/StyledActionItem.tsx +2 -2
- package/src/components/FAB/ActionGroup/__tests__/__snapshots__/index.spec.tsx.snap +162 -89
- package/src/components/FAB/FAB.tsx +1 -1
- package/src/components/FAB/StyledFAB.tsx +2 -3
- package/src/components/FAB/__tests__/__snapshots__/AnimatedFABIcon.spec.tsx.snap +2 -2
- package/src/components/FAB/__tests__/__snapshots__/StyledFAB.spec.tsx.snap +25 -3
- package/src/components/HeroDesignProvider/__tests__/__snapshots__/index.spec.tsx.snap +1 -1
- package/src/components/Icon/HeroIcon/glyphMap.json +1 -1
- package/src/components/Icon/IconList.ts +5 -0
- package/src/components/List/__tests__/__snapshots__/BasicListItem.spec.tsx.snap +2 -2
- package/src/components/List/__tests__/__snapshots__/ListItem.spec.tsx.snap +6 -6
- package/src/components/List/__tests__/__snapshots__/StyledBasicListItem.spec.tsx.snap +2 -2
- package/src/components/List/__tests__/__snapshots__/StyledListItem.spec.tsx.snap +2 -2
- package/src/components/PageControl/__tests__/__snapshots__/index.spec.tsx.snap +3 -3
- package/src/components/Progress/__tests__/__snapshots__/index.spec.js.snap +5 -5
- package/src/components/Radio/__tests__/__snapshots__/Radio.spec.tsx.snap +10 -10
- package/src/components/Radio/__tests__/__snapshots__/RadioGroup.spec.tsx.snap +14 -14
- package/src/components/Rate/__tests__/__snapshots__/index.spec.tsx.snap +10 -10
- package/src/components/SectionHeading/__tests__/__snapshots__/StyledHeading.spec.tsx.snap +1 -1
- package/src/components/SectionHeading/__tests__/__snapshots__/index.spec.tsx.snap +2 -2
- package/src/components/Select/MultiSelect/__tests__/__snapshots__/Option.spec.tsx.snap +2 -2
- package/src/components/Select/MultiSelect/__tests__/__snapshots__/OptionList.spec.tsx.snap +14 -14
- package/src/components/Select/MultiSelect/__tests__/__snapshots__/index.spec.tsx.snap +14 -14
- package/src/components/Select/SingleSelect/__tests__/__snapshots__/Option.spec.tsx.snap +1 -1
- package/src/components/Select/SingleSelect/__tests__/__snapshots__/OptionList.spec.tsx.snap +8 -8
- package/src/components/Select/SingleSelect/__tests__/__snapshots__/index.spec.tsx.snap +2 -2
- package/src/components/Slider/__tests__/__snapshots__/index.spec.tsx.snap +9 -9
- package/src/components/Spinner/__tests__/__snapshots__/AnimatedSpinner.spec.tsx.snap +4 -4
- package/src/components/Spinner/__tests__/__snapshots__/StyledSpinner.spec.tsx.snap +32 -32
- package/src/components/Spinner/__tests__/__snapshots__/index.spec.tsx.snap +4 -4
- package/src/components/Success/__tests__/__snapshots__/index.spec.tsx.snap +1 -1
- package/src/components/Swipeable/__tests__/__snapshots__/SwipeableAction.spec.tsx.snap +1 -1
- package/src/components/Switch/SelectorSwitch/__tests__/__snapshots__/index.spec.tsx.snap +1 -1
- package/src/components/Switch/__tests__/__snapshots__/StyledSwitch.spec.tsx.snap +2 -2
- package/src/components/Tabs/__tests__/__snapshots__/ScrollableTabs.spec.tsx.snap +3 -3
- package/src/components/Tabs/__tests__/__snapshots__/ScrollableTabsHeader.spec.tsx.snap +5 -5
- package/src/components/Tabs/__tests__/__snapshots__/index.spec.tsx.snap +3 -3
- package/src/components/Tag/__tests__/__snapshots__/Tag.spec.tsx.snap +5 -5
- package/src/components/TimePicker/__tests__/__snapshots__/TimePickerIOS.spec.tsx.snap +1 -1
- package/src/components/Toolbar/StyledToolbar.tsx +50 -1
- package/src/components/Toolbar/ToolbarMessage.tsx +169 -0
- package/src/components/Toolbar/__tests__/ToolbarMessage.spec.tsx +161 -0
- package/src/components/Toolbar/__tests__/__snapshots__/ToolbarGroup.spec.tsx.snap +18 -18
- package/src/components/Toolbar/__tests__/__snapshots__/ToolbarItem.spec.tsx.snap +7 -7
- package/src/components/Toolbar/__tests__/__snapshots__/ToolbarMessage.spec.tsx.snap +382 -0
- package/src/components/Toolbar/index.tsx +2 -0
- 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 +1 -1
- package/src/components/Typography/Title/__tests__/__snapshots__/index.spec.tsx.snap +2 -2
- package/src/theme/ThemeSwitcher.tsx +12 -2
- package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +16 -0
- package/src/theme/components/fab.ts +6 -6
- package/src/theme/components/toolbar.ts +19 -1
- package/src/theme/getTheme.ts +2 -2
- package/stats/8.76.0/rn-stats.html +4844 -0
- 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/CompoundSearch/CompoundSearchHandler.d.ts +31 -0
- package/types/components/CompoundSearch/CompoundSearchTextInput.d.ts +60 -0
- package/types/components/CompoundSearch/StyledCompoundSearch.d.ts +40 -0
- package/types/components/CompoundSearch/index.d.ts +8 -0
- package/types/components/CompoundSearch/utils.d.ts +8 -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 +3 -3
- 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 -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 +1 -1
- package/types/components/Icon/index.d.ts +1 -1
- package/types/components/Icon/utils.d.ts +1 -1
- 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/Search/SearchBasic.d.ts +31 -0
- package/types/components/Search/SearchCompound.d.ts +60 -0
- package/types/components/Search/utils.d.ts +2 -2
- 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 +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/SceneView.d.ts +0 -0
- package/types/components/Tabs/ScrollableTabs.d.ts +0 -0
- package/types/components/Tabs/ScrollableTabsHeader.d.ts +35 -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 +3 -3
- 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 +33 -2
- package/types/components/Toolbar/ToolbarGroup.d.ts +0 -0
- package/types/components/Toolbar/ToolbarItem.d.ts +0 -0
- package/types/components/Toolbar/ToolbarMessage.d.ts +59 -0
- package/types/components/Toolbar/index.d.ts +1 -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 +1 -1
- 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/compoundSearch.d.ts +36 -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 +0 -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/success.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 +16 -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
|
@@ -0,0 +1,382 @@
|
|
|
1
|
+
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
|
+
|
|
3
|
+
exports[`ToolbarMessage disabled renders correctly 1`] = `
|
|
4
|
+
<View
|
|
5
|
+
style={
|
|
6
|
+
{
|
|
7
|
+
"flex": 1,
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
>
|
|
11
|
+
<View
|
|
12
|
+
style={
|
|
13
|
+
[
|
|
14
|
+
{
|
|
15
|
+
"alignItems": "center",
|
|
16
|
+
"flex": 1,
|
|
17
|
+
"flexDirection": "row",
|
|
18
|
+
"height": 64,
|
|
19
|
+
"justifyContent": "space-between",
|
|
20
|
+
"paddingHorizontal": 8,
|
|
21
|
+
"paddingVertical": 12,
|
|
22
|
+
},
|
|
23
|
+
undefined,
|
|
24
|
+
]
|
|
25
|
+
}
|
|
26
|
+
testID="toolbar-message"
|
|
27
|
+
>
|
|
28
|
+
<View
|
|
29
|
+
pointerEvents="none"
|
|
30
|
+
style={
|
|
31
|
+
[
|
|
32
|
+
{
|
|
33
|
+
"alignItems": "center",
|
|
34
|
+
"backgroundColor": "#f6f6f7",
|
|
35
|
+
"borderRadius": 999,
|
|
36
|
+
"flex": 1,
|
|
37
|
+
"flexDirection": "row",
|
|
38
|
+
"height": 40,
|
|
39
|
+
"paddingHorizontal": 12,
|
|
40
|
+
"paddingVertical": 8,
|
|
41
|
+
},
|
|
42
|
+
undefined,
|
|
43
|
+
]
|
|
44
|
+
}
|
|
45
|
+
testID="toolbar-message-input-container"
|
|
46
|
+
>
|
|
47
|
+
<TextInput
|
|
48
|
+
editable={true}
|
|
49
|
+
onChangeText={[MockFunction]}
|
|
50
|
+
placeholder="Message"
|
|
51
|
+
style={
|
|
52
|
+
[
|
|
53
|
+
{
|
|
54
|
+
"alignSelf": "stretch",
|
|
55
|
+
"flexGrow": 1,
|
|
56
|
+
"flexShrink": 1,
|
|
57
|
+
"fontFamily": "BeVietnamPro-Regular",
|
|
58
|
+
"fontSize": 16,
|
|
59
|
+
"textAlignVertical": "center",
|
|
60
|
+
},
|
|
61
|
+
undefined,
|
|
62
|
+
]
|
|
63
|
+
}
|
|
64
|
+
testID="toolbar-message-input"
|
|
65
|
+
value="Jisoo"
|
|
66
|
+
/>
|
|
67
|
+
</View>
|
|
68
|
+
</View>
|
|
69
|
+
<View
|
|
70
|
+
pointerEvents="box-none"
|
|
71
|
+
position="bottom"
|
|
72
|
+
style={
|
|
73
|
+
[
|
|
74
|
+
{
|
|
75
|
+
"bottom": 0,
|
|
76
|
+
"elevation": 9999,
|
|
77
|
+
"flexDirection": "column-reverse",
|
|
78
|
+
"left": 0,
|
|
79
|
+
"paddingHorizontal": 24,
|
|
80
|
+
"paddingVertical": 16,
|
|
81
|
+
"position": "absolute",
|
|
82
|
+
"right": 0,
|
|
83
|
+
"top": 0,
|
|
84
|
+
},
|
|
85
|
+
undefined,
|
|
86
|
+
]
|
|
87
|
+
}
|
|
88
|
+
/>
|
|
89
|
+
</View>
|
|
90
|
+
`;
|
|
91
|
+
|
|
92
|
+
exports[`ToolbarMessage filled renders correctly 1`] = `
|
|
93
|
+
<View
|
|
94
|
+
style={
|
|
95
|
+
{
|
|
96
|
+
"flex": 1,
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
>
|
|
100
|
+
<View
|
|
101
|
+
style={
|
|
102
|
+
[
|
|
103
|
+
{
|
|
104
|
+
"alignItems": "center",
|
|
105
|
+
"flex": 1,
|
|
106
|
+
"flexDirection": "row",
|
|
107
|
+
"height": 64,
|
|
108
|
+
"justifyContent": "space-between",
|
|
109
|
+
"paddingHorizontal": 8,
|
|
110
|
+
"paddingVertical": 12,
|
|
111
|
+
},
|
|
112
|
+
undefined,
|
|
113
|
+
]
|
|
114
|
+
}
|
|
115
|
+
testID="toolbar-message"
|
|
116
|
+
>
|
|
117
|
+
<View
|
|
118
|
+
pointerEvents="auto"
|
|
119
|
+
style={
|
|
120
|
+
[
|
|
121
|
+
{
|
|
122
|
+
"alignItems": "center",
|
|
123
|
+
"backgroundColor": "#f6f6f7",
|
|
124
|
+
"borderRadius": 999,
|
|
125
|
+
"flex": 1,
|
|
126
|
+
"flexDirection": "row",
|
|
127
|
+
"height": 40,
|
|
128
|
+
"paddingHorizontal": 12,
|
|
129
|
+
"paddingVertical": 8,
|
|
130
|
+
},
|
|
131
|
+
undefined,
|
|
132
|
+
]
|
|
133
|
+
}
|
|
134
|
+
testID="toolbar-message-input-container"
|
|
135
|
+
>
|
|
136
|
+
<TextInput
|
|
137
|
+
editable={true}
|
|
138
|
+
placeholder="Message"
|
|
139
|
+
style={
|
|
140
|
+
[
|
|
141
|
+
{
|
|
142
|
+
"alignSelf": "stretch",
|
|
143
|
+
"flexGrow": 1,
|
|
144
|
+
"flexShrink": 1,
|
|
145
|
+
"fontFamily": "BeVietnamPro-Regular",
|
|
146
|
+
"fontSize": 16,
|
|
147
|
+
"textAlignVertical": "center",
|
|
148
|
+
},
|
|
149
|
+
undefined,
|
|
150
|
+
]
|
|
151
|
+
}
|
|
152
|
+
testID="toolbar-message-input"
|
|
153
|
+
value="Jennie Kim"
|
|
154
|
+
/>
|
|
155
|
+
</View>
|
|
156
|
+
</View>
|
|
157
|
+
<View
|
|
158
|
+
pointerEvents="box-none"
|
|
159
|
+
position="bottom"
|
|
160
|
+
style={
|
|
161
|
+
[
|
|
162
|
+
{
|
|
163
|
+
"bottom": 0,
|
|
164
|
+
"elevation": 9999,
|
|
165
|
+
"flexDirection": "column-reverse",
|
|
166
|
+
"left": 0,
|
|
167
|
+
"paddingHorizontal": 24,
|
|
168
|
+
"paddingVertical": 16,
|
|
169
|
+
"position": "absolute",
|
|
170
|
+
"right": 0,
|
|
171
|
+
"top": 0,
|
|
172
|
+
},
|
|
173
|
+
undefined,
|
|
174
|
+
]
|
|
175
|
+
}
|
|
176
|
+
/>
|
|
177
|
+
</View>
|
|
178
|
+
`;
|
|
179
|
+
|
|
180
|
+
exports[`ToolbarMessage idle renders correctly 1`] = `
|
|
181
|
+
<View
|
|
182
|
+
style={
|
|
183
|
+
{
|
|
184
|
+
"flex": 1,
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
>
|
|
188
|
+
<View
|
|
189
|
+
style={
|
|
190
|
+
[
|
|
191
|
+
{
|
|
192
|
+
"alignItems": "center",
|
|
193
|
+
"flex": 1,
|
|
194
|
+
"flexDirection": "row",
|
|
195
|
+
"height": 64,
|
|
196
|
+
"justifyContent": "space-between",
|
|
197
|
+
"paddingHorizontal": 8,
|
|
198
|
+
"paddingVertical": 12,
|
|
199
|
+
},
|
|
200
|
+
undefined,
|
|
201
|
+
]
|
|
202
|
+
}
|
|
203
|
+
testID="toolbar-message"
|
|
204
|
+
>
|
|
205
|
+
<View
|
|
206
|
+
style={
|
|
207
|
+
[
|
|
208
|
+
{
|
|
209
|
+
"marginRight": 16,
|
|
210
|
+
"maxHeight": "100%",
|
|
211
|
+
},
|
|
212
|
+
undefined,
|
|
213
|
+
]
|
|
214
|
+
}
|
|
215
|
+
testID="toolbar-message-prefix"
|
|
216
|
+
>
|
|
217
|
+
prefix
|
|
218
|
+
</View>
|
|
219
|
+
<View
|
|
220
|
+
pointerEvents="auto"
|
|
221
|
+
style={
|
|
222
|
+
[
|
|
223
|
+
{
|
|
224
|
+
"alignItems": "center",
|
|
225
|
+
"backgroundColor": "#f6f6f7",
|
|
226
|
+
"borderRadius": 999,
|
|
227
|
+
"flex": 1,
|
|
228
|
+
"flexDirection": "row",
|
|
229
|
+
"height": 40,
|
|
230
|
+
"paddingHorizontal": 12,
|
|
231
|
+
"paddingVertical": 8,
|
|
232
|
+
},
|
|
233
|
+
undefined,
|
|
234
|
+
]
|
|
235
|
+
}
|
|
236
|
+
testID="toolbar-message-input-container"
|
|
237
|
+
>
|
|
238
|
+
<TextInput
|
|
239
|
+
editable={true}
|
|
240
|
+
placeholder="Message"
|
|
241
|
+
style={
|
|
242
|
+
[
|
|
243
|
+
{
|
|
244
|
+
"alignSelf": "stretch",
|
|
245
|
+
"flexGrow": 1,
|
|
246
|
+
"flexShrink": 1,
|
|
247
|
+
"fontFamily": "BeVietnamPro-Regular",
|
|
248
|
+
"fontSize": 16,
|
|
249
|
+
"textAlignVertical": "center",
|
|
250
|
+
},
|
|
251
|
+
undefined,
|
|
252
|
+
]
|
|
253
|
+
}
|
|
254
|
+
testID="toolbar-message-input"
|
|
255
|
+
/>
|
|
256
|
+
</View>
|
|
257
|
+
<View
|
|
258
|
+
style={
|
|
259
|
+
[
|
|
260
|
+
{
|
|
261
|
+
"marginLeft": 16,
|
|
262
|
+
"maxHeight": "100%",
|
|
263
|
+
},
|
|
264
|
+
undefined,
|
|
265
|
+
]
|
|
266
|
+
}
|
|
267
|
+
testID="toolbar-message-suffix"
|
|
268
|
+
>
|
|
269
|
+
suffix
|
|
270
|
+
</View>
|
|
271
|
+
</View>
|
|
272
|
+
<View
|
|
273
|
+
pointerEvents="box-none"
|
|
274
|
+
position="bottom"
|
|
275
|
+
style={
|
|
276
|
+
[
|
|
277
|
+
{
|
|
278
|
+
"bottom": 0,
|
|
279
|
+
"elevation": 9999,
|
|
280
|
+
"flexDirection": "column-reverse",
|
|
281
|
+
"left": 0,
|
|
282
|
+
"paddingHorizontal": 24,
|
|
283
|
+
"paddingVertical": 16,
|
|
284
|
+
"position": "absolute",
|
|
285
|
+
"right": 0,
|
|
286
|
+
"top": 0,
|
|
287
|
+
},
|
|
288
|
+
undefined,
|
|
289
|
+
]
|
|
290
|
+
}
|
|
291
|
+
/>
|
|
292
|
+
</View>
|
|
293
|
+
`;
|
|
294
|
+
|
|
295
|
+
exports[`ToolbarMessage readonly renders correctly 1`] = `
|
|
296
|
+
<View
|
|
297
|
+
style={
|
|
298
|
+
{
|
|
299
|
+
"flex": 1,
|
|
300
|
+
}
|
|
301
|
+
}
|
|
302
|
+
>
|
|
303
|
+
<View
|
|
304
|
+
style={
|
|
305
|
+
[
|
|
306
|
+
{
|
|
307
|
+
"alignItems": "center",
|
|
308
|
+
"flex": 1,
|
|
309
|
+
"flexDirection": "row",
|
|
310
|
+
"height": 64,
|
|
311
|
+
"justifyContent": "space-between",
|
|
312
|
+
"paddingHorizontal": 8,
|
|
313
|
+
"paddingVertical": 12,
|
|
314
|
+
},
|
|
315
|
+
undefined,
|
|
316
|
+
]
|
|
317
|
+
}
|
|
318
|
+
testID="toolbar-message"
|
|
319
|
+
>
|
|
320
|
+
<View
|
|
321
|
+
pointerEvents="auto"
|
|
322
|
+
style={
|
|
323
|
+
[
|
|
324
|
+
{
|
|
325
|
+
"alignItems": "center",
|
|
326
|
+
"backgroundColor": "#f6f6f7",
|
|
327
|
+
"borderRadius": 999,
|
|
328
|
+
"flex": 1,
|
|
329
|
+
"flexDirection": "row",
|
|
330
|
+
"height": 40,
|
|
331
|
+
"paddingHorizontal": 12,
|
|
332
|
+
"paddingVertical": 8,
|
|
333
|
+
},
|
|
334
|
+
undefined,
|
|
335
|
+
]
|
|
336
|
+
}
|
|
337
|
+
testID="toolbar-message-input-container"
|
|
338
|
+
>
|
|
339
|
+
<TextInput
|
|
340
|
+
editable={true}
|
|
341
|
+
onChangeText={[MockFunction]}
|
|
342
|
+
placeholder="Message"
|
|
343
|
+
style={
|
|
344
|
+
[
|
|
345
|
+
{
|
|
346
|
+
"alignSelf": "stretch",
|
|
347
|
+
"flexGrow": 1,
|
|
348
|
+
"flexShrink": 1,
|
|
349
|
+
"fontFamily": "BeVietnamPro-Regular",
|
|
350
|
+
"fontSize": 16,
|
|
351
|
+
"textAlignVertical": "center",
|
|
352
|
+
},
|
|
353
|
+
undefined,
|
|
354
|
+
]
|
|
355
|
+
}
|
|
356
|
+
testID="toolbar-message-input"
|
|
357
|
+
value="Lalisa"
|
|
358
|
+
/>
|
|
359
|
+
</View>
|
|
360
|
+
</View>
|
|
361
|
+
<View
|
|
362
|
+
pointerEvents="box-none"
|
|
363
|
+
position="bottom"
|
|
364
|
+
style={
|
|
365
|
+
[
|
|
366
|
+
{
|
|
367
|
+
"bottom": 0,
|
|
368
|
+
"elevation": 9999,
|
|
369
|
+
"flexDirection": "column-reverse",
|
|
370
|
+
"left": 0,
|
|
371
|
+
"paddingHorizontal": 24,
|
|
372
|
+
"paddingVertical": 16,
|
|
373
|
+
"position": "absolute",
|
|
374
|
+
"right": 0,
|
|
375
|
+
"top": 0,
|
|
376
|
+
},
|
|
377
|
+
undefined,
|
|
378
|
+
]
|
|
379
|
+
}
|
|
380
|
+
/>
|
|
381
|
+
</View>
|
|
382
|
+
`;
|
|
@@ -3,6 +3,7 @@ import type { ReactNode } from 'react';
|
|
|
3
3
|
import { ViewProps } from 'react-native';
|
|
4
4
|
import { ToolbarWrapper } from './StyledToolbar';
|
|
5
5
|
import ToolbarGroup from './ToolbarGroup';
|
|
6
|
+
import ToolbarMessage from './ToolbarMessage';
|
|
6
7
|
|
|
7
8
|
export interface ToolbarProps extends Omit<ViewProps, 'style'> {
|
|
8
9
|
/**
|
|
@@ -17,4 +18,5 @@ const Toolbar = ({ children, ...rest }: ToolbarProps) => (
|
|
|
17
18
|
|
|
18
19
|
export default Object.assign(Toolbar, {
|
|
19
20
|
Group: ToolbarGroup,
|
|
21
|
+
Message: ToolbarMessage,
|
|
20
22
|
});
|
|
@@ -370,7 +370,7 @@ exports[`Body has primary intent style 1`] = `
|
|
|
370
370
|
style={
|
|
371
371
|
[
|
|
372
372
|
{
|
|
373
|
-
"color": "#
|
|
373
|
+
"color": "#460078",
|
|
374
374
|
"fontFamily": "BeVietnamPro-Regular",
|
|
375
375
|
"fontSize": 16,
|
|
376
376
|
"letterSpacing": 0.48,
|
|
@@ -625,7 +625,7 @@ exports[`Body has secondary intent style 1`] = `
|
|
|
625
625
|
style={
|
|
626
626
|
[
|
|
627
627
|
{
|
|
628
|
-
"color": "#
|
|
628
|
+
"color": "#B382FD",
|
|
629
629
|
"fontFamily": "BeVietnamPro-Regular",
|
|
630
630
|
"fontSize": 16,
|
|
631
631
|
"letterSpacing": 0.48,
|
|
@@ -363,7 +363,7 @@ exports[`Caption has primary intent style 1`] = `
|
|
|
363
363
|
style={
|
|
364
364
|
[
|
|
365
365
|
{
|
|
366
|
-
"color": "#
|
|
366
|
+
"color": "#460078",
|
|
367
367
|
"fontFamily": "BeVietnamPro-Regular",
|
|
368
368
|
"fontSize": 12,
|
|
369
369
|
"letterSpacing": 0.36,
|
|
@@ -463,7 +463,7 @@ exports[`Caption has secondary intent style 1`] = `
|
|
|
463
463
|
style={
|
|
464
464
|
[
|
|
465
465
|
{
|
|
466
|
-
"color": "#
|
|
466
|
+
"color": "#B382FD",
|
|
467
467
|
"fontFamily": "BeVietnamPro-Regular",
|
|
468
468
|
"fontSize": 12,
|
|
469
469
|
"letterSpacing": 0.36,
|
|
@@ -349,7 +349,7 @@ exports[`Label has primary intent style 1`] = `
|
|
|
349
349
|
style={
|
|
350
350
|
[
|
|
351
351
|
{
|
|
352
|
-
"color": "#
|
|
352
|
+
"color": "#460078",
|
|
353
353
|
"fontSize": 10,
|
|
354
354
|
"letterSpacing": 0,
|
|
355
355
|
"lineHeight": 14,
|
|
@@ -397,7 +397,7 @@ exports[`Label has secondary intent style 1`] = `
|
|
|
397
397
|
style={
|
|
398
398
|
[
|
|
399
399
|
{
|
|
400
|
-
"color": "#
|
|
400
|
+
"color": "#B382FD",
|
|
401
401
|
"fontSize": 10,
|
|
402
402
|
"letterSpacing": 0,
|
|
403
403
|
"lineHeight": 14,
|
|
@@ -982,7 +982,7 @@ exports[`Title has primary intent style 1`] = `
|
|
|
982
982
|
style={
|
|
983
983
|
[
|
|
984
984
|
{
|
|
985
|
-
"color": "#
|
|
985
|
+
"color": "#460078",
|
|
986
986
|
"fontFamily": "BeVietnamPro-Regular",
|
|
987
987
|
"fontSize": 42,
|
|
988
988
|
"letterSpacing": 0,
|
|
@@ -1033,7 +1033,7 @@ exports[`Title has secondary intent style 1`] = `
|
|
|
1033
1033
|
style={
|
|
1034
1034
|
[
|
|
1035
1035
|
{
|
|
1036
|
-
"color": "#
|
|
1036
|
+
"color": "#B382FD",
|
|
1037
1037
|
"fontFamily": "BeVietnamPro-Regular",
|
|
1038
1038
|
"fontSize": 42,
|
|
1039
1039
|
"letterSpacing": 0,
|
|
@@ -9,13 +9,21 @@ import {
|
|
|
9
9
|
walletSystemPalette,
|
|
10
10
|
eBensSystemPalette,
|
|
11
11
|
swagDarkSystemPalette,
|
|
12
|
+
swagLightSystemPalette,
|
|
12
13
|
} from './global';
|
|
13
14
|
import ThemeProvider from './ThemeProvider';
|
|
14
15
|
|
|
15
|
-
type ThemeName =
|
|
16
|
+
type ThemeName =
|
|
17
|
+
| 'swag'
|
|
18
|
+
| 'swagLight'
|
|
19
|
+
| 'swagDark'
|
|
20
|
+
| 'work'
|
|
21
|
+
| 'jobs'
|
|
22
|
+
| 'wallet'
|
|
23
|
+
| 'eBens';
|
|
16
24
|
|
|
17
25
|
const ThemeSwitcher = ({
|
|
18
|
-
name = '
|
|
26
|
+
name = 'swagLight',
|
|
19
27
|
children,
|
|
20
28
|
}: {
|
|
21
29
|
name?: ThemeName;
|
|
@@ -35,6 +43,8 @@ const ThemeSwitcher = ({
|
|
|
35
43
|
return getTheme(defaultScale, eBensSystemPalette);
|
|
36
44
|
case 'swagDark':
|
|
37
45
|
return getTheme(defaultScale, swagDarkSystemPalette);
|
|
46
|
+
case 'swagLight':
|
|
47
|
+
return getTheme(defaultScale, swagLightSystemPalette);
|
|
38
48
|
}
|
|
39
49
|
}, [name]);
|
|
40
50
|
return <ThemeProvider theme={theme}>{children}</ThemeProvider>;
|
|
@@ -1316,20 +1316,36 @@ exports[`theme returns correct theme object 1`] = `
|
|
|
1316
1316
|
"error": "#f46363",
|
|
1317
1317
|
"iconButtonBackground": "#ece8ef",
|
|
1318
1318
|
"info": "#b5c3fd",
|
|
1319
|
+
"inputContainerBackground": "#f6f6f7",
|
|
1319
1320
|
"primary": "#401960",
|
|
1320
1321
|
"secondary": "#4d6265",
|
|
1321
1322
|
"success": "#5ace7d",
|
|
1322
1323
|
},
|
|
1324
|
+
"fontSizes": {
|
|
1325
|
+
"text": 16,
|
|
1326
|
+
},
|
|
1327
|
+
"fonts": {
|
|
1328
|
+
"text": "BeVietnamPro-Regular",
|
|
1329
|
+
},
|
|
1323
1330
|
"radii": {
|
|
1324
1331
|
"iconButtonWrapperBorderRadius": 24,
|
|
1332
|
+
"messageContainer": 999,
|
|
1325
1333
|
},
|
|
1326
1334
|
"sizes": {
|
|
1327
1335
|
"itemWrapperHeight": 64,
|
|
1336
|
+
"messageInputHeight": 40,
|
|
1337
|
+
"messageWrapperHeight": 64,
|
|
1328
1338
|
},
|
|
1329
1339
|
"space": {
|
|
1340
|
+
"affixInnerMargin": 16,
|
|
1330
1341
|
"horizontalPadding": 8,
|
|
1331
1342
|
"iconButtonLabelMarginLeft": 8,
|
|
1332
1343
|
"iconButtonWrapperPadding": 12,
|
|
1344
|
+
"messageInputPaddingHorizontal": 12,
|
|
1345
|
+
"messageInputPaddingVertical": 8,
|
|
1346
|
+
"messageWrapperMarginHorizontal": 8,
|
|
1347
|
+
"messageWrapperPaddingHorizontal": 8,
|
|
1348
|
+
"messageWrapperPaddingVertical": 12,
|
|
1333
1349
|
"verticalPadding": 8,
|
|
1334
1350
|
},
|
|
1335
1351
|
},
|
|
@@ -2,13 +2,13 @@ import type { GlobalTheme } from '../global';
|
|
|
2
2
|
|
|
3
3
|
const getFABTheme = (theme: GlobalTheme) => {
|
|
4
4
|
const colors = {
|
|
5
|
-
buttonBackground: theme.colors.
|
|
6
|
-
buttonPressedBackground: theme.colors.
|
|
7
|
-
buttonActiveBackground: theme.colors.
|
|
5
|
+
buttonBackground: theme.colors.overlayGlobalSurface,
|
|
6
|
+
buttonPressedBackground: theme.colors.overlayGlobalSurface,
|
|
7
|
+
buttonActiveBackground: theme.colors.overlayGlobalSurface,
|
|
8
8
|
icon: theme.colors.onPrimary,
|
|
9
|
-
actionItemBackground: theme.colors.
|
|
10
|
-
actionItemPressedBackground: theme.colors.
|
|
11
|
-
backdropBackground: theme.colors.
|
|
9
|
+
actionItemBackground: theme.colors.overlayGlobalSurface,
|
|
10
|
+
actionItemPressedBackground: theme.colors.overlayGlobalSurface,
|
|
11
|
+
backdropBackground: theme.colors.defaultSurface,
|
|
12
12
|
titleText: theme.colors.onPrimary,
|
|
13
13
|
actionItemText: theme.colors.onPrimary,
|
|
14
14
|
};
|
|
@@ -13,6 +13,7 @@ const getToolbarTheme = (theme: GlobalTheme) => {
|
|
|
13
13
|
error: theme.colors.error,
|
|
14
14
|
disabled: theme.colors.disabledOnDefaultGlobalSurface,
|
|
15
15
|
iconButtonBackground: theme.colors.highlightedSurface,
|
|
16
|
+
inputContainerBackground: theme.colors.neutralGlobalSurface,
|
|
16
17
|
};
|
|
17
18
|
|
|
18
19
|
const space = {
|
|
@@ -20,6 +21,12 @@ const getToolbarTheme = (theme: GlobalTheme) => {
|
|
|
20
21
|
horizontalPadding: theme.space.small,
|
|
21
22
|
iconButtonLabelMarginLeft: theme.space.small,
|
|
22
23
|
iconButtonWrapperPadding: theme.space.smallMedium,
|
|
24
|
+
messageWrapperMarginHorizontal: theme.space.small,
|
|
25
|
+
messageWrapperPaddingVertical: theme.space.smallMedium,
|
|
26
|
+
messageWrapperPaddingHorizontal: theme.space.small,
|
|
27
|
+
messageInputPaddingHorizontal: theme.space.smallMedium,
|
|
28
|
+
messageInputPaddingVertical: theme.space.small,
|
|
29
|
+
affixInnerMargin: theme.space.medium,
|
|
23
30
|
};
|
|
24
31
|
|
|
25
32
|
const borderWidths = {
|
|
@@ -28,13 +35,24 @@ const getToolbarTheme = (theme: GlobalTheme) => {
|
|
|
28
35
|
|
|
29
36
|
const sizes = {
|
|
30
37
|
itemWrapperHeight: scale(64),
|
|
38
|
+
messageWrapperHeight: scale(64),
|
|
39
|
+
messageInputHeight: 40,
|
|
31
40
|
};
|
|
32
41
|
|
|
33
42
|
const radii = {
|
|
34
43
|
iconButtonWrapperBorderRadius: theme.radii.xxxlarge,
|
|
44
|
+
messageContainer: theme.radii.rounded,
|
|
35
45
|
};
|
|
36
46
|
|
|
37
|
-
|
|
47
|
+
const fontSizes = {
|
|
48
|
+
text: theme.fontSizes.large,
|
|
49
|
+
};
|
|
50
|
+
|
|
51
|
+
const fonts = {
|
|
52
|
+
text: theme.fonts.neutral.regular,
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
return { colors, space, borderWidths, sizes, radii, fontSizes, fonts };
|
|
38
56
|
};
|
|
39
57
|
|
|
40
58
|
export default getToolbarTheme;
|
package/src/theme/getTheme.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { getGlobalTheme, defaultScale,
|
|
1
|
+
import { getGlobalTheme, defaultScale, swagLightSystemPalette } from './global';
|
|
2
2
|
|
|
3
3
|
import getAccordionTheme from './components/accordion';
|
|
4
4
|
import getAlertTheme from './components/alert';
|
|
@@ -108,7 +108,7 @@ type Theme = GlobalTheme & {
|
|
|
108
108
|
|
|
109
109
|
const getTheme = (
|
|
110
110
|
scale: Scale = defaultScale,
|
|
111
|
-
systemPallete: SystemPalette =
|
|
111
|
+
systemPallete: SystemPalette = swagLightSystemPalette
|
|
112
112
|
): Theme => {
|
|
113
113
|
const globalTheme = getGlobalTheme(scale, systemPallete);
|
|
114
114
|
return {
|