@hero-design/rn 8.90.1 → 8.91.0-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/CHANGELOG.md +14 -0
- package/coverage/clover.xml +4025 -0
- package/coverage/coverage-final.json +306 -0
- package/coverage/lcov-report/base.css +224 -0
- package/coverage/lcov-report/block-navigation.js +87 -0
- package/coverage/lcov-report/favicon.png +0 -0
- package/coverage/lcov-report/index.html +1301 -0
- package/coverage/lcov-report/prettify.css +1 -0
- package/coverage/lcov-report/prettify.js +2 -0
- package/coverage/lcov-report/sort-arrow-sprite.png +0 -0
- package/coverage/lcov-report/sorter.js +196 -0
- package/coverage/lcov-report/src/components/Accordion/AccordionItem.tsx.html +232 -0
- package/coverage/lcov-report/src/components/Accordion/StyledAccordion.tsx.html +172 -0
- package/coverage/lcov-report/src/components/Accordion/index.html +146 -0
- package/coverage/lcov-report/src/components/Accordion/index.tsx.html +334 -0
- package/coverage/lcov-report/src/components/Alert/StyledAlert.tsx.html +301 -0
- package/coverage/lcov-report/src/components/Alert/index.html +131 -0
- package/coverage/lcov-report/src/components/Alert/index.tsx.html +556 -0
- package/coverage/lcov-report/src/components/AnimatedScroller/AnimatedFAB.tsx.html +550 -0
- package/coverage/lcov-report/src/components/AnimatedScroller/AnimatedScrollable.tsx.html +295 -0
- package/coverage/lcov-report/src/components/AnimatedScroller/FlatListWithFAB.tsx.html +154 -0
- package/coverage/lcov-report/src/components/AnimatedScroller/ScrollViewWithFAB.tsx.html +148 -0
- package/coverage/lcov-report/src/components/AnimatedScroller/SectionListWithFAB.tsx.html +163 -0
- package/coverage/lcov-report/src/components/AnimatedScroller/index.html +191 -0
- package/coverage/lcov-report/src/components/AnimatedScroller/index.tsx.html +100 -0
- package/coverage/lcov-report/src/components/Attachment/StyledAttachment.tsx.html +217 -0
- package/coverage/lcov-report/src/components/Attachment/index.html +131 -0
- package/coverage/lcov-report/src/components/Attachment/index.tsx.html +322 -0
- package/coverage/lcov-report/src/components/Avatar/Avatar.tsx.html +367 -0
- package/coverage/lcov-report/src/components/Avatar/AvatarStack/StyledAvatarStack.tsx.html +334 -0
- package/coverage/lcov-report/src/components/Avatar/AvatarStack/index.html +146 -0
- package/coverage/lcov-report/src/components/Avatar/AvatarStack/index.tsx.html +523 -0
- package/coverage/lcov-report/src/components/Avatar/AvatarStack/utils.ts.html +142 -0
- package/coverage/lcov-report/src/components/Avatar/StyledAvatar.tsx.html +286 -0
- package/coverage/lcov-report/src/components/Avatar/index.html +146 -0
- package/coverage/lcov-report/src/components/Avatar/index.ts.html +103 -0
- package/coverage/lcov-report/src/components/Badge/Status.tsx.html +322 -0
- package/coverage/lcov-report/src/components/Badge/StyledBadge.tsx.html +304 -0
- package/coverage/lcov-report/src/components/Badge/index.html +146 -0
- package/coverage/lcov-report/src/components/Badge/index.tsx.html +355 -0
- package/coverage/lcov-report/src/components/BottomNavigation/StyledBottomNavigation.tsx.html +265 -0
- package/coverage/lcov-report/src/components/BottomNavigation/index.html +131 -0
- package/coverage/lcov-report/src/components/BottomNavigation/index.tsx.html +571 -0
- package/coverage/lcov-report/src/components/BottomSheet/BottomSheetContext.ts.html +118 -0
- package/coverage/lcov-report/src/components/BottomSheet/Footer.tsx.html +145 -0
- package/coverage/lcov-report/src/components/BottomSheet/Header.tsx.html +304 -0
- package/coverage/lcov-report/src/components/BottomSheet/ScrollView.tsx.html +256 -0
- package/coverage/lcov-report/src/components/BottomSheet/StyledBottomSheet.tsx.html +433 -0
- package/coverage/lcov-report/src/components/BottomSheet/index.html +191 -0
- package/coverage/lcov-report/src/components/BottomSheet/index.tsx.html +787 -0
- package/coverage/lcov-report/src/components/Box/StyledBox.tsx.html +250 -0
- package/coverage/lcov-report/src/components/Box/config.ts.html +688 -0
- package/coverage/lcov-report/src/components/Box/index.html +146 -0
- package/coverage/lcov-report/src/components/Box/index.tsx.html +124 -0
- package/coverage/lcov-report/src/components/Button/Button.tsx.html +826 -0
- package/coverage/lcov-report/src/components/Button/IconButton.tsx.html +292 -0
- package/coverage/lcov-report/src/components/Button/LoadingIndicator/StyledLoadingIndicator.tsx.html +289 -0
- package/coverage/lcov-report/src/components/Button/LoadingIndicator/index.html +131 -0
- package/coverage/lcov-report/src/components/Button/LoadingIndicator/index.tsx.html +502 -0
- package/coverage/lcov-report/src/components/Button/StyledButton.tsx.html +856 -0
- package/coverage/lcov-report/src/components/Button/UtilityButton/StyledUtilityButton.tsx.html +154 -0
- package/coverage/lcov-report/src/components/Button/UtilityButton/index.html +131 -0
- package/coverage/lcov-report/src/components/Button/UtilityButton/index.tsx.html +259 -0
- package/coverage/lcov-report/src/components/Button/index.html +161 -0
- package/coverage/lcov-report/src/components/Button/index.tsx.html +136 -0
- package/coverage/lcov-report/src/components/Calendar/CalendarRowItem.tsx.html +253 -0
- package/coverage/lcov-report/src/components/Calendar/StyledCalendar.tsx.html +355 -0
- package/coverage/lcov-report/src/components/Calendar/helpers.ts.html +172 -0
- package/coverage/lcov-report/src/components/Calendar/index.html +161 -0
- package/coverage/lcov-report/src/components/Calendar/index.tsx.html +1153 -0
- package/coverage/lcov-report/src/components/Card/DataCard/StyledDataCard.tsx.html +157 -0
- package/coverage/lcov-report/src/components/Card/DataCard/index.html +131 -0
- package/coverage/lcov-report/src/components/Card/DataCard/index.tsx.html +193 -0
- package/coverage/lcov-report/src/components/Card/StyledCard.tsx.html +157 -0
- package/coverage/lcov-report/src/components/Card/index.html +131 -0
- package/coverage/lcov-report/src/components/Card/index.tsx.html +229 -0
- package/coverage/lcov-report/src/components/Carousel/CardCarousel.tsx.html +829 -0
- package/coverage/lcov-report/src/components/Carousel/CarouselItem.tsx.html +313 -0
- package/coverage/lcov-report/src/components/Carousel/StyledCardCarousel.tsx.html +160 -0
- package/coverage/lcov-report/src/components/Carousel/StyledCarousel.tsx.html +325 -0
- package/coverage/lcov-report/src/components/Carousel/contants.ts.html +115 -0
- package/coverage/lcov-report/src/components/Carousel/index.html +191 -0
- package/coverage/lcov-report/src/components/Carousel/index.tsx.html +775 -0
- package/coverage/lcov-report/src/components/Checkbox/StyledCheckbox.tsx.html +217 -0
- package/coverage/lcov-report/src/components/Checkbox/index.html +131 -0
- package/coverage/lcov-report/src/components/Checkbox/index.tsx.html +421 -0
- package/coverage/lcov-report/src/components/Chip/StyledChip.tsx.html +430 -0
- package/coverage/lcov-report/src/components/Chip/index.html +131 -0
- package/coverage/lcov-report/src/components/Chip/index.tsx.html +310 -0
- package/coverage/lcov-report/src/components/Collapse/StyledCollapse.tsx.html +157 -0
- package/coverage/lcov-report/src/components/Collapse/index.html +131 -0
- package/coverage/lcov-report/src/components/Collapse/index.tsx.html +370 -0
- package/coverage/lcov-report/src/components/ContentNavigator/StyledContentNavigator.tsx.html +115 -0
- package/coverage/lcov-report/src/components/ContentNavigator/index.html +131 -0
- package/coverage/lcov-report/src/components/ContentNavigator/index.tsx.html +397 -0
- package/coverage/lcov-report/src/components/DatePicker/DatePickerAndroid.tsx.html +295 -0
- package/coverage/lcov-report/src/components/DatePicker/DatePickerCalendar.tsx.html +514 -0
- package/coverage/lcov-report/src/components/DatePicker/DatePickerIOS.tsx.html +382 -0
- package/coverage/lcov-report/src/components/DatePicker/StyledDatePicker.tsx.html +112 -0
- package/coverage/lcov-report/src/components/DatePicker/index.html +191 -0
- package/coverage/lcov-report/src/components/DatePicker/index.tsx.html +142 -0
- package/coverage/lcov-report/src/components/DatePicker/useCalculateDate.tsx.html +187 -0
- package/coverage/lcov-report/src/components/Divider/StyledDivider.tsx.html +169 -0
- package/coverage/lcov-report/src/components/Divider/index.html +131 -0
- package/coverage/lcov-report/src/components/Divider/index.tsx.html +205 -0
- package/coverage/lcov-report/src/components/Drawer/DragableDrawer/helpers.ts.html +223 -0
- package/coverage/lcov-report/src/components/Drawer/DragableDrawer/index.html +131 -0
- package/coverage/lcov-report/src/components/Drawer/DragableDrawer/index.tsx.html +697 -0
- package/coverage/lcov-report/src/components/Drawer/StyledDrawer.tsx.html +337 -0
- package/coverage/lcov-report/src/components/Drawer/index.html +131 -0
- package/coverage/lcov-report/src/components/Drawer/index.tsx.html +376 -0
- package/coverage/lcov-report/src/components/Empty/StyledEmpty.tsx.html +196 -0
- package/coverage/lcov-report/src/components/Empty/index.html +131 -0
- package/coverage/lcov-report/src/components/Empty/index.tsx.html +304 -0
- package/coverage/lcov-report/src/components/Error/StyledError.tsx.html +352 -0
- package/coverage/lcov-report/src/components/Error/index.html +131 -0
- package/coverage/lcov-report/src/components/Error/index.tsx.html +865 -0
- package/coverage/lcov-report/src/components/FAB/ActionGroup/ActionItem.tsx.html +313 -0
- package/coverage/lcov-report/src/components/FAB/ActionGroup/StyledActionGroup.tsx.html +259 -0
- package/coverage/lcov-report/src/components/FAB/ActionGroup/StyledActionItem.tsx.html +175 -0
- package/coverage/lcov-report/src/components/FAB/ActionGroup/index.html +161 -0
- package/coverage/lcov-report/src/components/FAB/ActionGroup/index.tsx.html +682 -0
- package/coverage/lcov-report/src/components/FAB/AnimatedFABIcon.tsx.html +226 -0
- package/coverage/lcov-report/src/components/FAB/FAB.tsx.html +871 -0
- package/coverage/lcov-report/src/components/FAB/Pair/StyledFAB.tsx.html +142 -0
- package/coverage/lcov-report/src/components/FAB/Pair/index.html +131 -0
- package/coverage/lcov-report/src/components/FAB/Pair/index.tsx.html +223 -0
- package/coverage/lcov-report/src/components/FAB/StyledFAB.tsx.html +241 -0
- package/coverage/lcov-report/src/components/FAB/index.html +161 -0
- package/coverage/lcov-report/src/components/FAB/index.tsx.html +109 -0
- package/coverage/lcov-report/src/components/FloatingIsland/StyledFloatingIsland.tsx.html +181 -0
- package/coverage/lcov-report/src/components/FloatingIsland/index.html +131 -0
- package/coverage/lcov-report/src/components/FloatingIsland/index.tsx.html +367 -0
- package/coverage/lcov-report/src/components/HeroDesignProvider/index.html +116 -0
- package/coverage/lcov-report/src/components/HeroDesignProvider/index.tsx.html +127 -0
- package/coverage/lcov-report/src/components/Icon/AnimatedIcon.tsx.html +226 -0
- package/coverage/lcov-report/src/components/Icon/HeroIcon/index.html +116 -0
- package/coverage/lcov-report/src/components/Icon/HeroIcon/index.tsx.html +220 -0
- package/coverage/lcov-report/src/components/Icon/IconList.ts.html +1426 -0
- package/coverage/lcov-report/src/components/Icon/index.html +161 -0
- package/coverage/lcov-report/src/components/Icon/index.tsx.html +412 -0
- package/coverage/lcov-report/src/components/Icon/utils.ts.html +103 -0
- package/coverage/lcov-report/src/components/Image/index.html +116 -0
- package/coverage/lcov-report/src/components/Image/index.tsx.html +223 -0
- package/coverage/lcov-report/src/components/List/BasicListItem.tsx.html +442 -0
- package/coverage/lcov-report/src/components/List/ListItem.tsx.html +565 -0
- package/coverage/lcov-report/src/components/List/StyledBasicListItem.tsx.html +187 -0
- package/coverage/lcov-report/src/components/List/StyledListItem.tsx.html +337 -0
- package/coverage/lcov-report/src/components/List/index.html +176 -0
- package/coverage/lcov-report/src/components/List/index.tsx.html +127 -0
- package/coverage/lcov-report/src/components/MapPin/Focussed.tsx.html +169 -0
- package/coverage/lcov-report/src/components/MapPin/StyledMapPin.tsx.html +292 -0
- package/coverage/lcov-report/src/components/MapPin/index.html +146 -0
- package/coverage/lcov-report/src/components/MapPin/index.tsx.html +277 -0
- package/coverage/lcov-report/src/components/Modal/index.html +116 -0
- package/coverage/lcov-report/src/components/Modal/index.tsx.html +736 -0
- package/coverage/lcov-report/src/components/PageControl/StyledPageControl.tsx.html +136 -0
- package/coverage/lcov-report/src/components/PageControl/index.html +131 -0
- package/coverage/lcov-report/src/components/PageControl/index.tsx.html +319 -0
- package/coverage/lcov-report/src/components/PinInput/PinCell.tsx.html +193 -0
- package/coverage/lcov-report/src/components/PinInput/StyledPinInput.tsx.html +358 -0
- package/coverage/lcov-report/src/components/PinInput/index.html +146 -0
- package/coverage/lcov-report/src/components/PinInput/index.tsx.html +817 -0
- package/coverage/lcov-report/src/components/Portal/PortalHost.tsx.html +166 -0
- package/coverage/lcov-report/src/components/Portal/PortalProvider.tsx.html +190 -0
- package/coverage/lcov-report/src/components/Portal/constants.ts.html +115 -0
- package/coverage/lcov-report/src/components/Portal/contexts.ts.html +127 -0
- package/coverage/lcov-report/src/components/Portal/index.html +221 -0
- package/coverage/lcov-report/src/components/Portal/index.tsx.html +283 -0
- package/coverage/lcov-report/src/components/Portal/reducer.ts.html +403 -0
- package/coverage/lcov-report/src/components/Portal/usePortal.ts.html +235 -0
- package/coverage/lcov-report/src/components/Portal/usePortalState.ts.html +118 -0
- package/coverage/lcov-report/src/components/Progress/ProgressBar.tsx.html +358 -0
- package/coverage/lcov-report/src/components/Progress/ProgressCircle.tsx.html +628 -0
- package/coverage/lcov-report/src/components/Progress/ProgressStep.tsx.html +352 -0
- package/coverage/lcov-report/src/components/Progress/StyledProgressBar.tsx.html +172 -0
- package/coverage/lcov-report/src/components/Progress/StyledProgressCircle.tsx.html +331 -0
- package/coverage/lcov-report/src/components/Progress/StyledStep.tsx.html +235 -0
- package/coverage/lcov-report/src/components/Progress/constants.ts.html +133 -0
- package/coverage/lcov-report/src/components/Progress/index.html +221 -0
- package/coverage/lcov-report/src/components/Progress/index.tsx.html +118 -0
- package/coverage/lcov-report/src/components/Radio/Radio.tsx.html +313 -0
- package/coverage/lcov-report/src/components/Radio/RadioGroup.tsx.html +340 -0
- package/coverage/lcov-report/src/components/Radio/StyledRadio.tsx.html +211 -0
- package/coverage/lcov-report/src/components/Radio/index.html +161 -0
- package/coverage/lcov-report/src/components/Radio/index.tsx.html +100 -0
- package/coverage/lcov-report/src/components/Rate/StyledRate.tsx.html +133 -0
- package/coverage/lcov-report/src/components/Rate/index.html +131 -0
- package/coverage/lcov-report/src/components/Rate/index.tsx.html +355 -0
- package/coverage/lcov-report/src/components/RefreshControl/index.html +116 -0
- package/coverage/lcov-report/src/components/RefreshControl/index.tsx.html +160 -0
- package/coverage/lcov-report/src/components/RichTextEditor/EditorEvent.ts.html +106 -0
- package/coverage/lcov-report/src/components/RichTextEditor/EditorToolbar.tsx.html +736 -0
- package/coverage/lcov-report/src/components/RichTextEditor/MentionList.tsx.html +382 -0
- package/coverage/lcov-report/src/components/RichTextEditor/RichTextEditor.tsx.html +1402 -0
- package/coverage/lcov-report/src/components/RichTextEditor/StyledRichTextEditor.ts.html +139 -0
- package/coverage/lcov-report/src/components/RichTextEditor/StyledToolbar.ts.html +181 -0
- package/coverage/lcov-report/src/components/RichTextEditor/constants.ts.html +112 -0
- package/coverage/lcov-report/src/components/RichTextEditor/heroEditorApp.ts.html +94 -0
- package/coverage/lcov-report/src/components/RichTextEditor/index.html +236 -0
- package/coverage/lcov-report/src/components/RichTextEditor/index.tsx.html +118 -0
- package/coverage/lcov-report/src/components/RichTextEditor/utils/events.ts.html +178 -0
- package/coverage/lcov-report/src/components/RichTextEditor/utils/index.html +131 -0
- package/coverage/lcov-report/src/components/RichTextEditor/utils/rnWebView.ts.html +142 -0
- package/coverage/lcov-report/src/components/Search/SearchOneLine.tsx.html +781 -0
- package/coverage/lcov-report/src/components/Search/SearchSuffixIcon.tsx.html +229 -0
- package/coverage/lcov-report/src/components/Search/SearchTwoLine.tsx.html +295 -0
- package/coverage/lcov-report/src/components/Search/StyledSearch.tsx.html +364 -0
- package/coverage/lcov-report/src/components/Search/index.html +191 -0
- package/coverage/lcov-report/src/components/Search/index.tsx.html +136 -0
- package/coverage/lcov-report/src/components/Search/utils.tsx.html +178 -0
- package/coverage/lcov-report/src/components/SectionHeading/StyledHeading.tsx.html +190 -0
- package/coverage/lcov-report/src/components/SectionHeading/index.html +131 -0
- package/coverage/lcov-report/src/components/SectionHeading/index.tsx.html +445 -0
- package/coverage/lcov-report/src/components/Select/BaseOptionList.tsx.html +310 -0
- package/coverage/lcov-report/src/components/Select/Footer.tsx.html +109 -0
- package/coverage/lcov-report/src/components/Select/MultiSelect/Option.tsx.html +229 -0
- package/coverage/lcov-report/src/components/Select/MultiSelect/OptionList.tsx.html +295 -0
- package/coverage/lcov-report/src/components/Select/MultiSelect/index.html +146 -0
- package/coverage/lcov-report/src/components/Select/MultiSelect/index.tsx.html +694 -0
- package/coverage/lcov-report/src/components/Select/SingleSelect/Option.tsx.html +178 -0
- package/coverage/lcov-report/src/components/Select/SingleSelect/OptionList.tsx.html +322 -0
- package/coverage/lcov-report/src/components/Select/SingleSelect/StyledSingleSelect.tsx.html +103 -0
- package/coverage/lcov-report/src/components/Select/SingleSelect/index.html +161 -0
- package/coverage/lcov-report/src/components/Select/SingleSelect/index.tsx.html +577 -0
- package/coverage/lcov-report/src/components/Select/StyledSelect.tsx.html +151 -0
- package/coverage/lcov-report/src/components/Select/helpers.tsx.html +388 -0
- package/coverage/lcov-report/src/components/Select/index.html +176 -0
- package/coverage/lcov-report/src/components/Select/index.tsx.html +115 -0
- package/coverage/lcov-report/src/components/Skeleton/StyledSkeleton.tsx.html +160 -0
- package/coverage/lcov-report/src/components/Skeleton/index.html +131 -0
- package/coverage/lcov-report/src/components/Skeleton/index.tsx.html +475 -0
- package/coverage/lcov-report/src/components/Slider/index.html +116 -0
- package/coverage/lcov-report/src/components/Slider/index.tsx.html +352 -0
- package/coverage/lcov-report/src/components/Spinner/AnimatedSpinner.tsx.html +295 -0
- package/coverage/lcov-report/src/components/Spinner/StyledSpinner.tsx.html +304 -0
- package/coverage/lcov-report/src/components/Spinner/index.html +146 -0
- package/coverage/lcov-report/src/components/Spinner/index.tsx.html +190 -0
- package/coverage/lcov-report/src/components/Success/StyledSuccess.tsx.html +337 -0
- package/coverage/lcov-report/src/components/Success/index.html +131 -0
- package/coverage/lcov-report/src/components/Success/index.tsx.html +538 -0
- package/coverage/lcov-report/src/components/Swipeable/StyledSwipeable.tsx.html +118 -0
- package/coverage/lcov-report/src/components/Swipeable/SwipeableAction.tsx.html +220 -0
- package/coverage/lcov-report/src/components/Swipeable/index.html +146 -0
- package/coverage/lcov-report/src/components/Swipeable/index.tsx.html +646 -0
- package/coverage/lcov-report/src/components/Switch/SelectorSwitch/Option.tsx.html +352 -0
- package/coverage/lcov-report/src/components/Switch/SelectorSwitch/StyledSelectorSwitch.tsx.html +193 -0
- package/coverage/lcov-report/src/components/Switch/SelectorSwitch/index.html +146 -0
- package/coverage/lcov-report/src/components/Switch/SelectorSwitch/index.tsx.html +442 -0
- package/coverage/lcov-report/src/components/Switch/StyledSwitch.tsx.html +172 -0
- package/coverage/lcov-report/src/components/Switch/index.html +131 -0
- package/coverage/lcov-report/src/components/Switch/index.tsx.html +346 -0
- package/coverage/lcov-report/src/components/Tabs/ActiveTabIndicator.tsx.html +196 -0
- package/coverage/lcov-report/src/components/Tabs/SceneView.tsx.html +283 -0
- package/coverage/lcov-report/src/components/Tabs/ScrollableTabs.tsx.html +421 -0
- package/coverage/lcov-report/src/components/Tabs/ScrollableTabsHeader/ScrollableTabsHeader.tsx.html +814 -0
- package/coverage/lcov-report/src/components/Tabs/ScrollableTabsHeader/hooks/index.html +131 -0
- package/coverage/lcov-report/src/components/Tabs/ScrollableTabsHeader/hooks/useInitHighlightedAnimation.ts.html +220 -0
- package/coverage/lcov-report/src/components/Tabs/ScrollableTabsHeader/hooks/useInitUnderlinedAnimation.ts.html +358 -0
- package/coverage/lcov-report/src/components/Tabs/ScrollableTabsHeader/index.html +116 -0
- package/coverage/lcov-report/src/components/Tabs/StyledScrollableTabs.tsx.html +283 -0
- package/coverage/lcov-report/src/components/Tabs/StyledTabs.tsx.html +247 -0
- package/coverage/lcov-report/src/components/Tabs/TabWithBadge.tsx.html +247 -0
- package/coverage/lcov-report/src/components/Tabs/index.html +251 -0
- package/coverage/lcov-report/src/components/Tabs/index.tsx.html +850 -0
- package/coverage/lcov-report/src/components/Tabs/useHandlePageScroll.tsx.html +181 -0
- package/coverage/lcov-report/src/components/Tabs/useIsFocused.tsx.html +142 -0
- package/coverage/lcov-report/src/components/Tabs/utils.ts.html +124 -0
- package/coverage/lcov-report/src/components/Tag/StyledTag.tsx.html +190 -0
- package/coverage/lcov-report/src/components/Tag/index.html +131 -0
- package/coverage/lcov-report/src/components/Tag/index.tsx.html +268 -0
- package/coverage/lcov-report/src/components/TextInput/StyledTextInput.tsx.html +505 -0
- package/coverage/lcov-report/src/components/TextInput/index.html +131 -0
- package/coverage/lcov-report/src/components/TextInput/index.tsx.html +1759 -0
- package/coverage/lcov-report/src/components/TimePicker/StyledTimePicker.tsx.html +112 -0
- package/coverage/lcov-report/src/components/TimePicker/TimePickerAndroid.tsx.html +277 -0
- package/coverage/lcov-report/src/components/TimePicker/TimePickerIOS.tsx.html +364 -0
- package/coverage/lcov-report/src/components/TimePicker/index.html +161 -0
- package/coverage/lcov-report/src/components/TimePicker/index.tsx.html +130 -0
- package/coverage/lcov-report/src/components/Toast/StyledToast.tsx.html +283 -0
- package/coverage/lcov-report/src/components/Toast/Toast.tsx.html +535 -0
- package/coverage/lcov-report/src/components/Toast/ToastContainer.tsx.html +355 -0
- package/coverage/lcov-report/src/components/Toast/ToastContext.ts.html +214 -0
- package/coverage/lcov-report/src/components/Toast/ToastProvider.tsx.html +280 -0
- package/coverage/lcov-report/src/components/Toast/index.html +191 -0
- package/coverage/lcov-report/src/components/Toast/index.tsx.html +118 -0
- package/coverage/lcov-report/src/components/Toolbar/StyledToolbar.tsx.html +457 -0
- package/coverage/lcov-report/src/components/Toolbar/ToolbarGroup.tsx.html +196 -0
- package/coverage/lcov-report/src/components/Toolbar/ToolbarItem.tsx.html +448 -0
- package/coverage/lcov-report/src/components/Toolbar/ToolbarMessage.tsx.html +592 -0
- package/coverage/lcov-report/src/components/Toolbar/index.html +176 -0
- package/coverage/lcov-report/src/components/Toolbar/index.tsx.html +151 -0
- package/coverage/lcov-report/src/components/Typography/Body/StyledBody.tsx.html +223 -0
- package/coverage/lcov-report/src/components/Typography/Body/index.html +131 -0
- package/coverage/lcov-report/src/components/Typography/Body/index.tsx.html +301 -0
- package/coverage/lcov-report/src/components/Typography/Caption/StyledCaption.tsx.html +136 -0
- package/coverage/lcov-report/src/components/Typography/Caption/index.html +131 -0
- package/coverage/lcov-report/src/components/Typography/Caption/index.tsx.html +271 -0
- package/coverage/lcov-report/src/components/Typography/Label/StyledLabel.tsx.html +127 -0
- package/coverage/lcov-report/src/components/Typography/Label/index.html +131 -0
- package/coverage/lcov-report/src/components/Typography/Label/index.tsx.html +253 -0
- package/coverage/lcov-report/src/components/Typography/Text/StyledText.tsx.html +244 -0
- package/coverage/lcov-report/src/components/Typography/Text/index.html +131 -0
- package/coverage/lcov-report/src/components/Typography/Text/index.tsx.html +361 -0
- package/coverage/lcov-report/src/components/Typography/Title/StyledTitle.tsx.html +145 -0
- package/coverage/lcov-report/src/components/Typography/Title/index.html +131 -0
- package/coverage/lcov-report/src/components/Typography/Title/index.tsx.html +298 -0
- package/coverage/lcov-report/src/components/Typography/index.html +131 -0
- package/coverage/lcov-report/src/components/Typography/index.tsx.html +163 -0
- package/coverage/lcov-report/src/components/Typography/types.ts.html +142 -0
- package/coverage/lcov-report/src/index.html +131 -0
- package/coverage/lcov-report/src/index.ts.html +535 -0
- package/coverage/lcov-report/src/testHelpers/index.html +131 -0
- package/coverage/lcov-report/src/testHelpers/renderWithTheme.tsx.html +115 -0
- package/coverage/lcov-report/src/testHelpers/utils.ts.html +148 -0
- package/coverage/lcov-report/src/theme/ThemeProvider.ts.html +142 -0
- package/coverage/lcov-report/src/theme/ThemeSwitcher.tsx.html +283 -0
- package/coverage/lcov-report/src/theme/components/accordion.ts.html +142 -0
- package/coverage/lcov-report/src/theme/components/alert.ts.html +217 -0
- package/coverage/lcov-report/src/theme/components/attachment.ts.html +169 -0
- package/coverage/lcov-report/src/theme/components/avatar.ts.html +259 -0
- package/coverage/lcov-report/src/theme/components/badge.ts.html +283 -0
- package/coverage/lcov-report/src/theme/components/bottomNavigation.ts.html +166 -0
- package/coverage/lcov-report/src/theme/components/bottomSheet.ts.html +214 -0
- package/coverage/lcov-report/src/theme/components/button.ts.html +361 -0
- package/coverage/lcov-report/src/theme/components/calendar.ts.html +199 -0
- package/coverage/lcov-report/src/theme/components/card.ts.html +166 -0
- package/coverage/lcov-report/src/theme/components/cardCarousel.ts.html +148 -0
- package/coverage/lcov-report/src/theme/components/carousel.ts.html +217 -0
- package/coverage/lcov-report/src/theme/components/checkbox.ts.html +208 -0
- package/coverage/lcov-report/src/theme/components/chip.ts.html +220 -0
- package/coverage/lcov-report/src/theme/components/contentNavigator.ts.html +118 -0
- package/coverage/lcov-report/src/theme/components/datePicker.ts.html +118 -0
- package/coverage/lcov-report/src/theme/components/divider.ts.html +154 -0
- package/coverage/lcov-report/src/theme/components/drawer.ts.html +190 -0
- package/coverage/lcov-report/src/theme/components/empty.ts.html +223 -0
- package/coverage/lcov-report/src/theme/components/error.ts.html +268 -0
- package/coverage/lcov-report/src/theme/components/fab.ts.html +349 -0
- package/coverage/lcov-report/src/theme/components/floatingIsland.ts.html +178 -0
- package/coverage/lcov-report/src/theme/components/icon.ts.html +169 -0
- package/coverage/lcov-report/src/theme/components/image.ts.html +121 -0
- package/coverage/lcov-report/src/theme/components/index.html +836 -0
- package/coverage/lcov-report/src/theme/components/list.ts.html +241 -0
- package/coverage/lcov-report/src/theme/components/mapPin.ts.html +223 -0
- package/coverage/lcov-report/src/theme/components/pageControl.ts.html +160 -0
- package/coverage/lcov-report/src/theme/components/pinInput.ts.html +313 -0
- package/coverage/lcov-report/src/theme/components/progress.ts.html +280 -0
- package/coverage/lcov-report/src/theme/components/radio.ts.html +193 -0
- package/coverage/lcov-report/src/theme/components/rate.ts.html +133 -0
- package/coverage/lcov-report/src/theme/components/refreshControl.ts.html +118 -0
- package/coverage/lcov-report/src/theme/components/richTextEditor.ts.html +193 -0
- package/coverage/lcov-report/src/theme/components/search.ts.html +328 -0
- package/coverage/lcov-report/src/theme/components/sectionHeading.ts.html +142 -0
- package/coverage/lcov-report/src/theme/components/select.ts.html +154 -0
- package/coverage/lcov-report/src/theme/components/skeleton.ts.html +151 -0
- package/coverage/lcov-report/src/theme/components/slider.ts.html +124 -0
- package/coverage/lcov-report/src/theme/components/spinner.ts.html +184 -0
- package/coverage/lcov-report/src/theme/components/success.ts.html +241 -0
- package/coverage/lcov-report/src/theme/components/swipeable.ts.html +151 -0
- package/coverage/lcov-report/src/theme/components/switch.ts.html +235 -0
- package/coverage/lcov-report/src/theme/components/tabs.ts.html +199 -0
- package/coverage/lcov-report/src/theme/components/tag.ts.html +274 -0
- package/coverage/lcov-report/src/theme/components/textInput.ts.html +406 -0
- package/coverage/lcov-report/src/theme/components/timePicker.ts.html +118 -0
- package/coverage/lcov-report/src/theme/components/toast.ts.html +223 -0
- package/coverage/lcov-report/src/theme/components/toolbar.ts.html +259 -0
- package/coverage/lcov-report/src/theme/components/typography.ts.html +622 -0
- package/coverage/lcov-report/src/theme/getTheme.ts.html +598 -0
- package/coverage/lcov-report/src/theme/global/borders.ts.html +187 -0
- package/coverage/lcov-report/src/theme/global/colors/eBens.ts.html +154 -0
- package/coverage/lcov-report/src/theme/global/colors/global.ts.html +238 -0
- package/coverage/lcov-report/src/theme/global/colors/globalDark.ts.html +238 -0
- package/coverage/lcov-report/src/theme/global/colors/index.html +266 -0
- package/coverage/lcov-report/src/theme/global/colors/jobs.ts.html +154 -0
- package/coverage/lcov-report/src/theme/global/colors/swag.ts.html +160 -0
- package/coverage/lcov-report/src/theme/global/colors/swagDark.ts.html +160 -0
- package/coverage/lcov-report/src/theme/global/colors/swagLight.ts.html +157 -0
- package/coverage/lcov-report/src/theme/global/colors/swagLightGlobal.ts.html +127 -0
- package/coverage/lcov-report/src/theme/global/colors/swagLightJobs.ts.html +121 -0
- package/coverage/lcov-report/src/theme/global/colors/wallet.ts.html +154 -0
- package/coverage/lcov-report/src/theme/global/colors/work.ts.html +154 -0
- package/coverage/lcov-report/src/theme/global/index.html +206 -0
- package/coverage/lcov-report/src/theme/global/index.ts.html +262 -0
- package/coverage/lcov-report/src/theme/global/scale.ts.html +172 -0
- package/coverage/lcov-report/src/theme/global/shadows.ts.html +142 -0
- package/coverage/lcov-report/src/theme/global/sizes.ts.html +172 -0
- package/coverage/lcov-report/src/theme/global/space.ts.html +181 -0
- package/coverage/lcov-report/src/theme/global/typography.ts.html +376 -0
- package/coverage/lcov-report/src/theme/index.html +161 -0
- package/coverage/lcov-report/src/theme/index.ts.html +196 -0
- package/coverage/lcov-report/src/types.ts.html +202 -0
- package/coverage/lcov-report/src/utils/functions.ts.html +91 -0
- package/coverage/lcov-report/src/utils/helpers.ts.html +172 -0
- package/coverage/lcov-report/src/utils/hooks.ts.html +172 -0
- package/coverage/lcov-report/src/utils/index.html +161 -0
- package/coverage/lcov-report/src/utils/scale.ts.html +133 -0
- package/coverage/lcov.info +9341 -0
- package/es/index.js +73 -10
- package/lib/index.js +73 -9
- package/package.json +1 -1
- package/src/components/DatePicker/__tests__/__snapshots__/DatePicker.spec.tsx.snap +60 -3
- package/src/components/DatePicker/__tests__/__snapshots__/DatePickerAndroid.spec.tsx.snap +20 -1
- package/src/components/DatePicker/__tests__/__snapshots__/DatePickerCalendar.spec.tsx.snap +20 -1
- package/src/components/DatePicker/__tests__/__snapshots__/DatePickerIOS.spec.tsx.snap +40 -2
- package/src/components/Error/__tests__/__snapshots__/index.spec.tsx.snap +1 -1
- 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/Radio/__tests__/__snapshots__/Radio.spec.tsx.snap +2 -2
- package/src/components/Radio/__tests__/__snapshots__/RadioGroup.spec.tsx.snap +2 -2
- package/src/components/RichTextEditor/RichTextEditor.tsx +2 -1
- package/src/components/RichTextEditor/__tests__/__snapshots__/RichTextEditor.spec.tsx.snap +40 -2
- package/src/components/Select/MultiSelect/__tests__/__snapshots__/Option.spec.tsx.snap +1 -1
- package/src/components/Select/MultiSelect/__tests__/__snapshots__/OptionList.spec.tsx.snap +5 -5
- package/src/components/Select/MultiSelect/__tests__/__snapshots__/index.spec.tsx.snap +146 -13
- package/src/components/Select/SingleSelect/__tests__/__snapshots__/Option.spec.tsx.snap +1 -1
- package/src/components/Select/SingleSelect/__tests__/__snapshots__/OptionList.spec.tsx.snap +4 -4
- package/src/components/Select/SingleSelect/__tests__/__snapshots__/index.spec.tsx.snap +123 -9
- package/src/components/Success/__tests__/__snapshots__/index.spec.tsx.snap +1 -1
- package/src/components/TextInput/__tests__/__snapshots__/index.spec.tsx.snap +320 -16
- package/src/components/TextInput/index.tsx +2 -1
- package/src/components/TimePicker/__tests__/__snapshots__/TimePickerAndroid.spec.tsx.snap +40 -2
- package/src/components/TimePicker/__tests__/__snapshots__/TimePickerIOS.spec.tsx.snap +40 -2
- package/src/index.ts +2 -0
- package/src/theme/ThemeSwitcher.tsx +5 -1
- package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +5 -6
- package/src/theme/components/attachment.ts +1 -1
- package/src/theme/components/error.ts +1 -1
- package/src/theme/components/list.ts +1 -1
- package/src/theme/components/success.ts +1 -1
- package/src/theme/components/toolbar.ts +1 -2
- package/src/theme/global/colors/__tests__/__snapshots__/swagLight.spec.ts.snap +2 -0
- package/src/theme/global/colors/ehWorkDark.ts +63 -0
- package/src/theme/global/colors/swagLight.ts +2 -0
- package/src/theme/global/colors/types.ts +3 -0
- package/src/theme/global/index.ts +2 -0
- package/src/theme/index.ts +2 -0
- package/stats/8.91.0/rn-stats.html +4844 -0
- package/types/index.d.ts +2 -2
- package/types/theme/ThemeSwitcher.d.ts +1 -1
- package/types/theme/components/attachment.d.ts +1 -1
- package/types/theme/components/list.d.ts +1 -1
- package/types/theme/components/toolbar.d.ts +0 -1
- package/types/theme/global/colors/ehWorkDark.d.ts +3 -0
- package/types/theme/global/colors/swagLightJobs.d.ts +2 -0
- package/types/theme/global/colors/types.d.ts +2 -0
- package/types/theme/global/index.d.ts +4 -1
- package/types/theme/index.d.ts +2 -2
- package/.turbo/turbo-build.log +0 -13
package/es/index.js
CHANGED
|
@@ -2001,7 +2001,9 @@ var swagBrandSystemPallete = {
|
|
|
2001
2001
|
highlightedSurface: palette$3.violetLight90,
|
|
2002
2002
|
pressedSurface: '#380060',
|
|
2003
2003
|
decorativePrimary: '#fdfbff',
|
|
2004
|
-
decorativePrimarySurface: '#dacce4'
|
|
2004
|
+
decorativePrimarySurface: '#dacce4',
|
|
2005
|
+
decorativeSecondary: '#fdfbff',
|
|
2006
|
+
decorativeSecondarySurface: '#f0e6ff'
|
|
2005
2007
|
};
|
|
2006
2008
|
var swagSystemPalette = _objectSpread2(_objectSpread2({}, swagLightGlobalPalette), swagBrandSystemPallete);
|
|
2007
2009
|
|
|
@@ -2065,6 +2067,66 @@ var eBensBrandSystemPallete = {
|
|
|
2065
2067
|
};
|
|
2066
2068
|
var eBensSystemPalette = _objectSpread2(_objectSpread2({}, swagSystemPalette$1), eBensBrandSystemPallete);
|
|
2067
2069
|
|
|
2070
|
+
var ehWorkDarkSystemPalette = {
|
|
2071
|
+
black: '#000000',
|
|
2072
|
+
white: '#ffffff',
|
|
2073
|
+
// Surface
|
|
2074
|
+
defaultGlobalSurface: '#27272A',
|
|
2075
|
+
neutralGlobalSurface: '#121214',
|
|
2076
|
+
darkGlobalSurface: '#fcfbff',
|
|
2077
|
+
overlayGlobalSurface: '#ffffff',
|
|
2078
|
+
// On Surface
|
|
2079
|
+
onDefaultGlobalSurface: '#ffffff',
|
|
2080
|
+
mutedOnDefaultGlobalSurface: '#a9a9b2',
|
|
2081
|
+
inactiveOnDefaultGlobalSurface: '#71717a',
|
|
2082
|
+
disabledOnDefaultGlobalSurface: '#52525b',
|
|
2083
|
+
onDarkGlobalSurface: '#121214',
|
|
2084
|
+
// Outline:
|
|
2085
|
+
primaryOutline: '#a9a9b2',
|
|
2086
|
+
secondaryOutline: '#3f3f46',
|
|
2087
|
+
inactiveOutline: '#71717a',
|
|
2088
|
+
disabledOutline: '#52525b',
|
|
2089
|
+
// Archived:
|
|
2090
|
+
archivedSurface: '#52525b',
|
|
2091
|
+
mutedArchived: '#3f3f46',
|
|
2092
|
+
archived: '#71717a',
|
|
2093
|
+
onArchivedSurface: '#d4d4d8',
|
|
2094
|
+
// Error:
|
|
2095
|
+
errorSurface: '#7a1d06',
|
|
2096
|
+
mutedError: '#9b2508',
|
|
2097
|
+
error: '#bd2d09',
|
|
2098
|
+
onErrorSurface: '#fcaea5',
|
|
2099
|
+
// Warning:
|
|
2100
|
+
warningSurface: '#963e03',
|
|
2101
|
+
mutedWarning: '#c35004',
|
|
2102
|
+
warning: '#dc6204',
|
|
2103
|
+
onWarningSurface: '#ffe7bf',
|
|
2104
|
+
// Success:
|
|
2105
|
+
successSurface: '#00483e',
|
|
2106
|
+
mutedSuccess: '#016256',
|
|
2107
|
+
success: '#017d6d',
|
|
2108
|
+
onSuccessSurface: '#6ee7d7',
|
|
2109
|
+
// Info:
|
|
2110
|
+
infoSurface: '#004a61',
|
|
2111
|
+
mutedInfo: '#006585',
|
|
2112
|
+
info: '#007da3',
|
|
2113
|
+
onInfoSurface: '#70ddff',
|
|
2114
|
+
// Brand:
|
|
2115
|
+
primary: '#cdacfe',
|
|
2116
|
+
onPrimary: '#280541',
|
|
2117
|
+
secondary: '#7622d7',
|
|
2118
|
+
onSecondary: '#ffffff',
|
|
2119
|
+
defaultSurface: '#280541',
|
|
2120
|
+
highlightedSurface: '#460078',
|
|
2121
|
+
pressedSurface: '#9a58fc',
|
|
2122
|
+
decorativePrimary: '#280541',
|
|
2123
|
+
decorativePrimarySurface: '#74409a',
|
|
2124
|
+
decorativeSecondary: '#280541',
|
|
2125
|
+
decorativeSecondarySurface: '#4c1d95',
|
|
2126
|
+
// Theme Mode
|
|
2127
|
+
themeMode: 'dark'
|
|
2128
|
+
};
|
|
2129
|
+
|
|
2068
2130
|
var BASE_WIDTH = 390; // Based on iPhone 13's viewport size
|
|
2069
2131
|
var horizontalScale = function horizontalScale(size) {
|
|
2070
2132
|
if (Platform.OS === 'web') {
|
|
@@ -2325,7 +2387,7 @@ var getAlertTheme = function getAlertTheme(theme) {
|
|
|
2325
2387
|
|
|
2326
2388
|
var getAttachmentTheme = function getAttachmentTheme(theme) {
|
|
2327
2389
|
var colors = {
|
|
2328
|
-
highlightedBackground: theme.colors.
|
|
2390
|
+
highlightedBackground: theme.colors.decorativeSecondarySurface
|
|
2329
2391
|
};
|
|
2330
2392
|
var sizes = {
|
|
2331
2393
|
imageHeight: theme.sizes.xxxlarge,
|
|
@@ -2941,7 +3003,7 @@ var getErrorTheme = function getErrorTheme(theme) {
|
|
|
2941
3003
|
var colors = {
|
|
2942
3004
|
title: theme.colors.onDefaultGlobalSurface,
|
|
2943
3005
|
description: theme.colors.mutedOnDefaultGlobalSurface,
|
|
2944
|
-
fullScreenBackground: theme.colors.
|
|
3006
|
+
fullScreenBackground: theme.colors.defaultGlobalSurface,
|
|
2945
3007
|
inPageBackground: theme.colors.neutralGlobalSurface
|
|
2946
3008
|
};
|
|
2947
3009
|
var fontSizes = {
|
|
@@ -3071,7 +3133,7 @@ var getImageTheme = function getImageTheme(theme) {
|
|
|
3071
3133
|
|
|
3072
3134
|
var getListTheme = function getListTheme(theme) {
|
|
3073
3135
|
var colors = {
|
|
3074
|
-
checkedListItemContainerBackground: theme.colors.
|
|
3136
|
+
checkedListItemContainerBackground: theme.colors.decorativeSecondarySurface,
|
|
3075
3137
|
listItemContainerBackground: theme.colors.defaultGlobalSurface,
|
|
3076
3138
|
leadingStatus: {
|
|
3077
3139
|
danger: theme.colors.error,
|
|
@@ -3477,7 +3539,7 @@ var getSuccessTheme = function getSuccessTheme(theme) {
|
|
|
3477
3539
|
var colors = {
|
|
3478
3540
|
title: theme.colors.onDefaultGlobalSurface,
|
|
3479
3541
|
description: theme.colors.mutedOnDefaultGlobalSurface,
|
|
3480
|
-
fullScreenBackground: theme.colors.
|
|
3542
|
+
fullScreenBackground: theme.colors.defaultGlobalSurface,
|
|
3481
3543
|
inPageBackground: theme.colors.neutralGlobalSurface
|
|
3482
3544
|
};
|
|
3483
3545
|
var fontSizes = {
|
|
@@ -3810,8 +3872,7 @@ var getToolbarTheme = function getToolbarTheme(theme) {
|
|
|
3810
3872
|
secondary: theme.colors.mutedOnDefaultGlobalSurface,
|
|
3811
3873
|
info: theme.colors.info,
|
|
3812
3874
|
success: theme.colors.success,
|
|
3813
|
-
danger: theme.colors.
|
|
3814
|
-
error: theme.colors.error,
|
|
3875
|
+
danger: theme.colors.onErrorSurface,
|
|
3815
3876
|
disabled: theme.colors.disabledOnDefaultGlobalSurface,
|
|
3816
3877
|
iconButtonBackground: theme.colors.highlightedSurface,
|
|
3817
3878
|
inputContainerBackground: theme.colors.neutralGlobalSurface
|
|
@@ -5436,6 +5497,8 @@ var ThemeSwitcher = function ThemeSwitcher(_ref) {
|
|
|
5436
5497
|
return getTheme$1(scale$1, swagDarkSystemPalette);
|
|
5437
5498
|
case 'swagLight':
|
|
5438
5499
|
return getTheme$1(scale$1, swagSystemPalette);
|
|
5500
|
+
case 'ehWorkDark':
|
|
5501
|
+
return getTheme$1(scale$1, ehWorkDarkSystemPalette);
|
|
5439
5502
|
}
|
|
5440
5503
|
}, [name]);
|
|
5441
5504
|
return /*#__PURE__*/React__default.createElement(ThemeProvider, {
|
|
@@ -14780,7 +14843,7 @@ var TextInput = /*#__PURE__*/forwardRef(function (_ref8, ref) {
|
|
|
14780
14843
|
},
|
|
14781
14844
|
themeState: state,
|
|
14782
14845
|
testID: "input-label-asterisk"
|
|
14783
|
-
}, "*"), label)), /*#__PURE__*/React__default.createElement(StyledTextInputAndLabelContainer, null, renderInput$1({
|
|
14846
|
+
}, "*"), /*#__PURE__*/React__default.createElement(Typography.Body, null, label))), /*#__PURE__*/React__default.createElement(StyledTextInputAndLabelContainer, null, renderInput$1({
|
|
14784
14847
|
variant: variant,
|
|
14785
14848
|
nativeInputProps: nativeInputProps,
|
|
14786
14849
|
renderInputValue: renderInputValue,
|
|
@@ -39751,7 +39814,7 @@ var RichTextEditor = function RichTextEditor(_ref) {
|
|
|
39751
39814
|
backgroundColor: theme.__hd__.textInput.colors.labelBackground
|
|
39752
39815
|
},
|
|
39753
39816
|
themeState: state
|
|
39754
|
-
}, "*"), label)), /*#__PURE__*/React__default.createElement(StyledTextInputContainer, {
|
|
39817
|
+
}, "*"), /*#__PURE__*/React__default.createElement(Typography.Body, null, label))), /*#__PURE__*/React__default.createElement(StyledTextInputContainer, {
|
|
39755
39818
|
onLayout: onLayout
|
|
39756
39819
|
}, /*#__PURE__*/React__default.createElement(StyledBorderBackDrop, {
|
|
39757
39820
|
themeState: state,
|
|
@@ -40360,4 +40423,4 @@ var FloatingIsland = function FloatingIsland(_ref2) {
|
|
|
40360
40423
|
}));
|
|
40361
40424
|
};
|
|
40362
40425
|
|
|
40363
|
-
export { Accordion, Alert, AppCue, Attachment, index$9 as Avatar, Badge$1 as Badge, BottomNavigation, BottomSheet$1 as BottomSheet, Box, CompoundButton as Button, Calendar$1 as Calendar, Card$1 as Card, index$8 as Carousel, Checkbox, Chip, Collapse, ContentNavigator, DatePicker, Divider, index$7 as Drawer, Empty, ErrorComponent as Error, FAB, FlatListWithFAB, FloatingIsland, HeroDesignProvider, Icon, Image, List, index$6 as MapPin, PageControl, PinInput, Portal$1 as Portal, Progress, CompoundRadio as Radio, Rate, RefreshControl, index as RichTextEditor, ScrollViewWithFAB, Search, SectionHeading, SectionListWithFAB, index$4 as Select, Skeleton, Slider, Spinner, Success, index$5 as Swipeable, index$3 as Switch, index$2 as Tabs, Tag, TextInput, ThemeProvider, ThemeSwitcher, TimePicker, Toast, index$1 as Toolbar, Typography, eBensSystemPalette, getTheme$1 as getTheme, jobsSystemPalette, scale, swagDarkSystemPalette, swagLightJobsSystemPalette, swagSystemPalette as swagLightSystemPalette, swagSystemPalette$1 as swagSystemPalette, defaultTheme as theme, useAvatarColors, useTheme, walletSystemPalette, withTheme, workSystemPalette };
|
|
40426
|
+
export { Accordion, Alert, AppCue, Attachment, index$9 as Avatar, Badge$1 as Badge, BottomNavigation, BottomSheet$1 as BottomSheet, Box, CompoundButton as Button, Calendar$1 as Calendar, Card$1 as Card, index$8 as Carousel, Checkbox, Chip, Collapse, ContentNavigator, DatePicker, Divider, index$7 as Drawer, Empty, ErrorComponent as Error, FAB, FlatListWithFAB, FloatingIsland, HeroDesignProvider, Icon, Image, List, index$6 as MapPin, PageControl, PinInput, Portal$1 as Portal, Progress, CompoundRadio as Radio, Rate, RefreshControl, index as RichTextEditor, ScrollViewWithFAB, Search, SectionHeading, SectionListWithFAB, index$4 as Select, Skeleton, Slider, Spinner, Success, index$5 as Swipeable, index$3 as Switch, index$2 as Tabs, Tag, TextInput, ThemeProvider, ThemeSwitcher, TimePicker, Toast, index$1 as Toolbar, Typography, eBensSystemPalette, ehWorkDarkSystemPalette, getTheme$1 as getTheme, jobsSystemPalette, scale, swagDarkSystemPalette, swagLightJobsSystemPalette, swagSystemPalette as swagLightSystemPalette, swagSystemPalette$1 as swagSystemPalette, defaultTheme as theme, useAvatarColors, useTheme, walletSystemPalette, withTheme, workSystemPalette };
|
package/lib/index.js
CHANGED
|
@@ -2029,7 +2029,9 @@ var swagBrandSystemPallete = {
|
|
|
2029
2029
|
highlightedSurface: palette$3.violetLight90,
|
|
2030
2030
|
pressedSurface: '#380060',
|
|
2031
2031
|
decorativePrimary: '#fdfbff',
|
|
2032
|
-
decorativePrimarySurface: '#dacce4'
|
|
2032
|
+
decorativePrimarySurface: '#dacce4',
|
|
2033
|
+
decorativeSecondary: '#fdfbff',
|
|
2034
|
+
decorativeSecondarySurface: '#f0e6ff'
|
|
2033
2035
|
};
|
|
2034
2036
|
var swagSystemPalette = _objectSpread2(_objectSpread2({}, swagLightGlobalPalette), swagBrandSystemPallete);
|
|
2035
2037
|
|
|
@@ -2093,6 +2095,66 @@ var eBensBrandSystemPallete = {
|
|
|
2093
2095
|
};
|
|
2094
2096
|
var eBensSystemPalette = _objectSpread2(_objectSpread2({}, swagSystemPalette$1), eBensBrandSystemPallete);
|
|
2095
2097
|
|
|
2098
|
+
var ehWorkDarkSystemPalette = {
|
|
2099
|
+
black: '#000000',
|
|
2100
|
+
white: '#ffffff',
|
|
2101
|
+
// Surface
|
|
2102
|
+
defaultGlobalSurface: '#27272A',
|
|
2103
|
+
neutralGlobalSurface: '#121214',
|
|
2104
|
+
darkGlobalSurface: '#fcfbff',
|
|
2105
|
+
overlayGlobalSurface: '#ffffff',
|
|
2106
|
+
// On Surface
|
|
2107
|
+
onDefaultGlobalSurface: '#ffffff',
|
|
2108
|
+
mutedOnDefaultGlobalSurface: '#a9a9b2',
|
|
2109
|
+
inactiveOnDefaultGlobalSurface: '#71717a',
|
|
2110
|
+
disabledOnDefaultGlobalSurface: '#52525b',
|
|
2111
|
+
onDarkGlobalSurface: '#121214',
|
|
2112
|
+
// Outline:
|
|
2113
|
+
primaryOutline: '#a9a9b2',
|
|
2114
|
+
secondaryOutline: '#3f3f46',
|
|
2115
|
+
inactiveOutline: '#71717a',
|
|
2116
|
+
disabledOutline: '#52525b',
|
|
2117
|
+
// Archived:
|
|
2118
|
+
archivedSurface: '#52525b',
|
|
2119
|
+
mutedArchived: '#3f3f46',
|
|
2120
|
+
archived: '#71717a',
|
|
2121
|
+
onArchivedSurface: '#d4d4d8',
|
|
2122
|
+
// Error:
|
|
2123
|
+
errorSurface: '#7a1d06',
|
|
2124
|
+
mutedError: '#9b2508',
|
|
2125
|
+
error: '#bd2d09',
|
|
2126
|
+
onErrorSurface: '#fcaea5',
|
|
2127
|
+
// Warning:
|
|
2128
|
+
warningSurface: '#963e03',
|
|
2129
|
+
mutedWarning: '#c35004',
|
|
2130
|
+
warning: '#dc6204',
|
|
2131
|
+
onWarningSurface: '#ffe7bf',
|
|
2132
|
+
// Success:
|
|
2133
|
+
successSurface: '#00483e',
|
|
2134
|
+
mutedSuccess: '#016256',
|
|
2135
|
+
success: '#017d6d',
|
|
2136
|
+
onSuccessSurface: '#6ee7d7',
|
|
2137
|
+
// Info:
|
|
2138
|
+
infoSurface: '#004a61',
|
|
2139
|
+
mutedInfo: '#006585',
|
|
2140
|
+
info: '#007da3',
|
|
2141
|
+
onInfoSurface: '#70ddff',
|
|
2142
|
+
// Brand:
|
|
2143
|
+
primary: '#cdacfe',
|
|
2144
|
+
onPrimary: '#280541',
|
|
2145
|
+
secondary: '#7622d7',
|
|
2146
|
+
onSecondary: '#ffffff',
|
|
2147
|
+
defaultSurface: '#280541',
|
|
2148
|
+
highlightedSurface: '#460078',
|
|
2149
|
+
pressedSurface: '#9a58fc',
|
|
2150
|
+
decorativePrimary: '#280541',
|
|
2151
|
+
decorativePrimarySurface: '#74409a',
|
|
2152
|
+
decorativeSecondary: '#280541',
|
|
2153
|
+
decorativeSecondarySurface: '#4c1d95',
|
|
2154
|
+
// Theme Mode
|
|
2155
|
+
themeMode: 'dark'
|
|
2156
|
+
};
|
|
2157
|
+
|
|
2096
2158
|
var BASE_WIDTH = 390; // Based on iPhone 13's viewport size
|
|
2097
2159
|
var horizontalScale = function horizontalScale(size) {
|
|
2098
2160
|
if (reactNative.Platform.OS === 'web') {
|
|
@@ -2353,7 +2415,7 @@ var getAlertTheme = function getAlertTheme(theme) {
|
|
|
2353
2415
|
|
|
2354
2416
|
var getAttachmentTheme = function getAttachmentTheme(theme) {
|
|
2355
2417
|
var colors = {
|
|
2356
|
-
highlightedBackground: theme.colors.
|
|
2418
|
+
highlightedBackground: theme.colors.decorativeSecondarySurface
|
|
2357
2419
|
};
|
|
2358
2420
|
var sizes = {
|
|
2359
2421
|
imageHeight: theme.sizes.xxxlarge,
|
|
@@ -2969,7 +3031,7 @@ var getErrorTheme = function getErrorTheme(theme) {
|
|
|
2969
3031
|
var colors = {
|
|
2970
3032
|
title: theme.colors.onDefaultGlobalSurface,
|
|
2971
3033
|
description: theme.colors.mutedOnDefaultGlobalSurface,
|
|
2972
|
-
fullScreenBackground: theme.colors.
|
|
3034
|
+
fullScreenBackground: theme.colors.defaultGlobalSurface,
|
|
2973
3035
|
inPageBackground: theme.colors.neutralGlobalSurface
|
|
2974
3036
|
};
|
|
2975
3037
|
var fontSizes = {
|
|
@@ -3099,7 +3161,7 @@ var getImageTheme = function getImageTheme(theme) {
|
|
|
3099
3161
|
|
|
3100
3162
|
var getListTheme = function getListTheme(theme) {
|
|
3101
3163
|
var colors = {
|
|
3102
|
-
checkedListItemContainerBackground: theme.colors.
|
|
3164
|
+
checkedListItemContainerBackground: theme.colors.decorativeSecondarySurface,
|
|
3103
3165
|
listItemContainerBackground: theme.colors.defaultGlobalSurface,
|
|
3104
3166
|
leadingStatus: {
|
|
3105
3167
|
danger: theme.colors.error,
|
|
@@ -3505,7 +3567,7 @@ var getSuccessTheme = function getSuccessTheme(theme) {
|
|
|
3505
3567
|
var colors = {
|
|
3506
3568
|
title: theme.colors.onDefaultGlobalSurface,
|
|
3507
3569
|
description: theme.colors.mutedOnDefaultGlobalSurface,
|
|
3508
|
-
fullScreenBackground: theme.colors.
|
|
3570
|
+
fullScreenBackground: theme.colors.defaultGlobalSurface,
|
|
3509
3571
|
inPageBackground: theme.colors.neutralGlobalSurface
|
|
3510
3572
|
};
|
|
3511
3573
|
var fontSizes = {
|
|
@@ -3838,8 +3900,7 @@ var getToolbarTheme = function getToolbarTheme(theme) {
|
|
|
3838
3900
|
secondary: theme.colors.mutedOnDefaultGlobalSurface,
|
|
3839
3901
|
info: theme.colors.info,
|
|
3840
3902
|
success: theme.colors.success,
|
|
3841
|
-
danger: theme.colors.
|
|
3842
|
-
error: theme.colors.error,
|
|
3903
|
+
danger: theme.colors.onErrorSurface,
|
|
3843
3904
|
disabled: theme.colors.disabledOnDefaultGlobalSurface,
|
|
3844
3905
|
iconButtonBackground: theme.colors.highlightedSurface,
|
|
3845
3906
|
inputContainerBackground: theme.colors.neutralGlobalSurface
|
|
@@ -5464,6 +5525,8 @@ var ThemeSwitcher = function ThemeSwitcher(_ref) {
|
|
|
5464
5525
|
return getTheme$1(scale$1, swagDarkSystemPalette);
|
|
5465
5526
|
case 'swagLight':
|
|
5466
5527
|
return getTheme$1(scale$1, swagSystemPalette);
|
|
5528
|
+
case 'ehWorkDark':
|
|
5529
|
+
return getTheme$1(scale$1, ehWorkDarkSystemPalette);
|
|
5467
5530
|
}
|
|
5468
5531
|
}, [name]);
|
|
5469
5532
|
return /*#__PURE__*/React__namespace.default.createElement(ThemeProvider, {
|
|
@@ -14808,7 +14871,7 @@ var TextInput = /*#__PURE__*/React.forwardRef(function (_ref8, ref) {
|
|
|
14808
14871
|
},
|
|
14809
14872
|
themeState: state,
|
|
14810
14873
|
testID: "input-label-asterisk"
|
|
14811
|
-
}, "*"), label)), /*#__PURE__*/React__namespace.default.createElement(StyledTextInputAndLabelContainer, null, renderInput$1({
|
|
14874
|
+
}, "*"), /*#__PURE__*/React__namespace.default.createElement(Typography.Body, null, label))), /*#__PURE__*/React__namespace.default.createElement(StyledTextInputAndLabelContainer, null, renderInput$1({
|
|
14812
14875
|
variant: variant,
|
|
14813
14876
|
nativeInputProps: nativeInputProps,
|
|
14814
14877
|
renderInputValue: renderInputValue,
|
|
@@ -39779,7 +39842,7 @@ var RichTextEditor = function RichTextEditor(_ref) {
|
|
|
39779
39842
|
backgroundColor: theme.__hd__.textInput.colors.labelBackground
|
|
39780
39843
|
},
|
|
39781
39844
|
themeState: state
|
|
39782
|
-
}, "*"), label)), /*#__PURE__*/React__namespace.default.createElement(StyledTextInputContainer, {
|
|
39845
|
+
}, "*"), /*#__PURE__*/React__namespace.default.createElement(Typography.Body, null, label))), /*#__PURE__*/React__namespace.default.createElement(StyledTextInputContainer, {
|
|
39783
39846
|
onLayout: onLayout
|
|
39784
39847
|
}, /*#__PURE__*/React__namespace.default.createElement(StyledBorderBackDrop, {
|
|
39785
39848
|
themeState: state,
|
|
@@ -40447,6 +40510,7 @@ exports.Toast = Toast;
|
|
|
40447
40510
|
exports.Toolbar = index$1;
|
|
40448
40511
|
exports.Typography = Typography;
|
|
40449
40512
|
exports.eBensSystemPalette = eBensSystemPalette;
|
|
40513
|
+
exports.ehWorkDarkSystemPalette = ehWorkDarkSystemPalette;
|
|
40450
40514
|
exports.getTheme = getTheme$1;
|
|
40451
40515
|
exports.jobsSystemPalette = jobsSystemPalette;
|
|
40452
40516
|
exports.scale = scale;
|
package/package.json
CHANGED
|
@@ -162,7 +162,26 @@ exports[`DatePicker renders DatePickerAndroid when OS is android 1`] = `
|
|
|
162
162
|
themeTypeface="neutral"
|
|
163
163
|
themeVariant="regular"
|
|
164
164
|
>
|
|
165
|
-
|
|
165
|
+
<Text
|
|
166
|
+
allowFontScaling={false}
|
|
167
|
+
style={
|
|
168
|
+
[
|
|
169
|
+
{
|
|
170
|
+
"color": "#001f23",
|
|
171
|
+
"fontFamily": "BeVietnamPro-Regular",
|
|
172
|
+
"fontSize": 16,
|
|
173
|
+
"letterSpacing": 0.48,
|
|
174
|
+
"lineHeight": 24,
|
|
175
|
+
},
|
|
176
|
+
undefined,
|
|
177
|
+
]
|
|
178
|
+
}
|
|
179
|
+
themeIntent="body"
|
|
180
|
+
themeTypeface="neutral"
|
|
181
|
+
themeVariant="regular"
|
|
182
|
+
>
|
|
183
|
+
Start date
|
|
184
|
+
</Text>
|
|
166
185
|
</Text>
|
|
167
186
|
</View>
|
|
168
187
|
<View
|
|
@@ -444,7 +463,26 @@ exports[`DatePicker renders DatePickerIOS when OS is iOS 1`] = `
|
|
|
444
463
|
themeTypeface="neutral"
|
|
445
464
|
themeVariant="regular"
|
|
446
465
|
>
|
|
447
|
-
|
|
466
|
+
<Text
|
|
467
|
+
allowFontScaling={false}
|
|
468
|
+
style={
|
|
469
|
+
[
|
|
470
|
+
{
|
|
471
|
+
"color": "#001f23",
|
|
472
|
+
"fontFamily": "BeVietnamPro-Regular",
|
|
473
|
+
"fontSize": 16,
|
|
474
|
+
"letterSpacing": 0.48,
|
|
475
|
+
"lineHeight": 24,
|
|
476
|
+
},
|
|
477
|
+
undefined,
|
|
478
|
+
]
|
|
479
|
+
}
|
|
480
|
+
themeIntent="body"
|
|
481
|
+
themeTypeface="neutral"
|
|
482
|
+
themeVariant="regular"
|
|
483
|
+
>
|
|
484
|
+
Start date
|
|
485
|
+
</Text>
|
|
448
486
|
</Text>
|
|
449
487
|
</View>
|
|
450
488
|
<View
|
|
@@ -726,7 +764,26 @@ exports[`DatePicker renders variant Calendar 1`] = `
|
|
|
726
764
|
themeTypeface="neutral"
|
|
727
765
|
themeVariant="regular"
|
|
728
766
|
>
|
|
729
|
-
|
|
767
|
+
<Text
|
|
768
|
+
allowFontScaling={false}
|
|
769
|
+
style={
|
|
770
|
+
[
|
|
771
|
+
{
|
|
772
|
+
"color": "#001f23",
|
|
773
|
+
"fontFamily": "BeVietnamPro-Regular",
|
|
774
|
+
"fontSize": 16,
|
|
775
|
+
"letterSpacing": 0.48,
|
|
776
|
+
"lineHeight": 24,
|
|
777
|
+
},
|
|
778
|
+
undefined,
|
|
779
|
+
]
|
|
780
|
+
}
|
|
781
|
+
themeIntent="body"
|
|
782
|
+
themeTypeface="neutral"
|
|
783
|
+
themeVariant="regular"
|
|
784
|
+
>
|
|
785
|
+
Start date
|
|
786
|
+
</Text>
|
|
730
787
|
</Text>
|
|
731
788
|
</View>
|
|
732
789
|
<View
|
|
@@ -162,7 +162,26 @@ exports[`DatePickerAndroid renders correctly 1`] = `
|
|
|
162
162
|
themeTypeface="neutral"
|
|
163
163
|
themeVariant="regular"
|
|
164
164
|
>
|
|
165
|
-
|
|
165
|
+
<Text
|
|
166
|
+
allowFontScaling={false}
|
|
167
|
+
style={
|
|
168
|
+
[
|
|
169
|
+
{
|
|
170
|
+
"color": "#001f23",
|
|
171
|
+
"fontFamily": "BeVietnamPro-Regular",
|
|
172
|
+
"fontSize": 16,
|
|
173
|
+
"letterSpacing": 0.48,
|
|
174
|
+
"lineHeight": 24,
|
|
175
|
+
},
|
|
176
|
+
undefined,
|
|
177
|
+
]
|
|
178
|
+
}
|
|
179
|
+
themeIntent="body"
|
|
180
|
+
themeTypeface="neutral"
|
|
181
|
+
themeVariant="regular"
|
|
182
|
+
>
|
|
183
|
+
Start date
|
|
184
|
+
</Text>
|
|
166
185
|
</Text>
|
|
167
186
|
</View>
|
|
168
187
|
<View
|
|
@@ -162,7 +162,26 @@ exports[`DatePickerCalendar renders correctly 1`] = `
|
|
|
162
162
|
themeTypeface="neutral"
|
|
163
163
|
themeVariant="regular"
|
|
164
164
|
>
|
|
165
|
-
|
|
165
|
+
<Text
|
|
166
|
+
allowFontScaling={false}
|
|
167
|
+
style={
|
|
168
|
+
[
|
|
169
|
+
{
|
|
170
|
+
"color": "#001f23",
|
|
171
|
+
"fontFamily": "BeVietnamPro-Regular",
|
|
172
|
+
"fontSize": 16,
|
|
173
|
+
"letterSpacing": 0.48,
|
|
174
|
+
"lineHeight": 24,
|
|
175
|
+
},
|
|
176
|
+
undefined,
|
|
177
|
+
]
|
|
178
|
+
}
|
|
179
|
+
themeIntent="body"
|
|
180
|
+
themeTypeface="neutral"
|
|
181
|
+
themeVariant="regular"
|
|
182
|
+
>
|
|
183
|
+
Start date
|
|
184
|
+
</Text>
|
|
166
185
|
</Text>
|
|
167
186
|
</View>
|
|
168
187
|
<View
|
|
@@ -162,7 +162,26 @@ exports[`DatePickerIOS renders correctly 1`] = `
|
|
|
162
162
|
themeTypeface="neutral"
|
|
163
163
|
themeVariant="regular"
|
|
164
164
|
>
|
|
165
|
-
|
|
165
|
+
<Text
|
|
166
|
+
allowFontScaling={false}
|
|
167
|
+
style={
|
|
168
|
+
[
|
|
169
|
+
{
|
|
170
|
+
"color": "#001f23",
|
|
171
|
+
"fontFamily": "BeVietnamPro-Regular",
|
|
172
|
+
"fontSize": 16,
|
|
173
|
+
"letterSpacing": 0.48,
|
|
174
|
+
"lineHeight": 24,
|
|
175
|
+
},
|
|
176
|
+
undefined,
|
|
177
|
+
]
|
|
178
|
+
}
|
|
179
|
+
themeIntent="body"
|
|
180
|
+
themeTypeface="neutral"
|
|
181
|
+
themeVariant="regular"
|
|
182
|
+
>
|
|
183
|
+
Start date
|
|
184
|
+
</Text>
|
|
166
185
|
</Text>
|
|
167
186
|
</View>
|
|
168
187
|
<View
|
|
@@ -831,7 +850,26 @@ exports[`DatePickerIOS renders correctly with custom locale 1`] = `
|
|
|
831
850
|
themeTypeface="neutral"
|
|
832
851
|
themeVariant="regular"
|
|
833
852
|
>
|
|
834
|
-
|
|
853
|
+
<Text
|
|
854
|
+
allowFontScaling={false}
|
|
855
|
+
style={
|
|
856
|
+
[
|
|
857
|
+
{
|
|
858
|
+
"color": "#001f23",
|
|
859
|
+
"fontFamily": "BeVietnamPro-Regular",
|
|
860
|
+
"fontSize": 16,
|
|
861
|
+
"letterSpacing": 0.48,
|
|
862
|
+
"lineHeight": 24,
|
|
863
|
+
},
|
|
864
|
+
undefined,
|
|
865
|
+
]
|
|
866
|
+
}
|
|
867
|
+
themeIntent="body"
|
|
868
|
+
themeTypeface="neutral"
|
|
869
|
+
themeVariant="regular"
|
|
870
|
+
>
|
|
871
|
+
Start date
|
|
872
|
+
</Text>
|
|
835
873
|
</Text>
|
|
836
874
|
</View>
|
|
837
875
|
<View
|
|
@@ -198,7 +198,7 @@ exports[`StyledListItemContainer renders correctly themeSelected true themeDisab
|
|
|
198
198
|
[
|
|
199
199
|
{
|
|
200
200
|
"alignItems": "center",
|
|
201
|
-
"backgroundColor":
|
|
201
|
+
"backgroundColor": undefined,
|
|
202
202
|
"borderRadius": 4,
|
|
203
203
|
"flexDirection": "row",
|
|
204
204
|
"opacity": 1,
|
|
@@ -282,7 +282,7 @@ exports[`StyledListItemContainer renders correctly themeSelected true themeDisab
|
|
|
282
282
|
[
|
|
283
283
|
{
|
|
284
284
|
"alignItems": "center",
|
|
285
|
-
"backgroundColor":
|
|
285
|
+
"backgroundColor": undefined,
|
|
286
286
|
"borderRadius": 4,
|
|
287
287
|
"flexDirection": "row",
|
|
288
288
|
"opacity": 0.38,
|
|
@@ -428,7 +428,7 @@ exports[`ListItemContainer renders correctly themeSelected true themeVariant car
|
|
|
428
428
|
[
|
|
429
429
|
{
|
|
430
430
|
"alignItems": "center",
|
|
431
|
-
"backgroundColor":
|
|
431
|
+
"backgroundColor": undefined,
|
|
432
432
|
"borderRadius": 8,
|
|
433
433
|
"elevation": 3,
|
|
434
434
|
"flexDirection": "row",
|
|
@@ -518,7 +518,7 @@ exports[`ListItemContainer renders correctly themeSelected true themeVariant ful
|
|
|
518
518
|
style={
|
|
519
519
|
[
|
|
520
520
|
{
|
|
521
|
-
"backgroundColor":
|
|
521
|
+
"backgroundColor": undefined,
|
|
522
522
|
"borderRadius": 8,
|
|
523
523
|
"flexDirection": "row",
|
|
524
524
|
"padding": 16,
|
|
@@ -34,7 +34,7 @@ exports[`rendering renders correctly when checked with inactiveIntent=dark 1`] =
|
|
|
34
34
|
style={
|
|
35
35
|
[
|
|
36
36
|
{
|
|
37
|
-
"backgroundColor":
|
|
37
|
+
"backgroundColor": undefined,
|
|
38
38
|
"borderRadius": 8,
|
|
39
39
|
"flexDirection": "row",
|
|
40
40
|
"padding": 16,
|
|
@@ -201,7 +201,7 @@ exports[`rendering renders correctly when checked with inactiveIntent=light 1`]
|
|
|
201
201
|
style={
|
|
202
202
|
[
|
|
203
203
|
{
|
|
204
|
-
"backgroundColor":
|
|
204
|
+
"backgroundColor": undefined,
|
|
205
205
|
"borderRadius": 8,
|
|
206
206
|
"flexDirection": "row",
|
|
207
207
|
"padding": 16,
|
|
@@ -299,7 +299,7 @@ exports[`rendering renders correctly with inactiveIntent=dark 1`] = `
|
|
|
299
299
|
style={
|
|
300
300
|
[
|
|
301
301
|
{
|
|
302
|
-
"backgroundColor":
|
|
302
|
+
"backgroundColor": undefined,
|
|
303
303
|
"borderRadius": 8,
|
|
304
304
|
"flexDirection": "row",
|
|
305
305
|
"padding": 16,
|
|
@@ -732,7 +732,7 @@ exports[`rendering renders correctly with inactiveIntent=light 1`] = `
|
|
|
732
732
|
style={
|
|
733
733
|
[
|
|
734
734
|
{
|
|
735
|
-
"backgroundColor":
|
|
735
|
+
"backgroundColor": undefined,
|
|
736
736
|
"borderRadius": 8,
|
|
737
737
|
"flexDirection": "row",
|
|
738
738
|
"padding": 16,
|
|
@@ -39,6 +39,7 @@ import { postMessage, requestBlurEditor } from './utils/rnWebView';
|
|
|
39
39
|
import type { WebViewEventMessage } from './utils/rnWebView';
|
|
40
40
|
import { LABEL_ANIMATION_DURATION } from '../TextInput';
|
|
41
41
|
import { TextUnit } from './types';
|
|
42
|
+
import Typography from '../Typography';
|
|
42
43
|
|
|
43
44
|
export interface RichTextEditorRef {
|
|
44
45
|
requestBlur: VoidFunction;
|
|
@@ -408,7 +409,7 @@ const RichTextEditor: ComponentType<RichTextEditorProps> = ({
|
|
|
408
409
|
*
|
|
409
410
|
</StyledAsteriskLabelInsideTextInput>
|
|
410
411
|
)}
|
|
411
|
-
{label}
|
|
412
|
+
<Typography.Body>{label}</Typography.Body>
|
|
412
413
|
</StyledLabelInsideTextInput>
|
|
413
414
|
)}
|
|
414
415
|
</StyledLabelContainerInsideTextInput>
|
|
@@ -83,7 +83,26 @@ exports[`RichTextEditor onMessage recevied event editor-layout should update hei
|
|
|
83
83
|
themeTypeface="neutral"
|
|
84
84
|
themeVariant="regular"
|
|
85
85
|
>
|
|
86
|
-
|
|
86
|
+
<Text
|
|
87
|
+
allowFontScaling={false}
|
|
88
|
+
style={
|
|
89
|
+
[
|
|
90
|
+
{
|
|
91
|
+
"color": "#001f23",
|
|
92
|
+
"fontFamily": "BeVietnamPro-Regular",
|
|
93
|
+
"fontSize": 16,
|
|
94
|
+
"letterSpacing": 0.48,
|
|
95
|
+
"lineHeight": 24,
|
|
96
|
+
},
|
|
97
|
+
undefined,
|
|
98
|
+
]
|
|
99
|
+
}
|
|
100
|
+
themeIntent="body"
|
|
101
|
+
themeTypeface="neutral"
|
|
102
|
+
themeVariant="regular"
|
|
103
|
+
>
|
|
104
|
+
Rich Text Editor
|
|
105
|
+
</Text>
|
|
87
106
|
</Text>
|
|
88
107
|
</View>
|
|
89
108
|
<View
|
|
@@ -405,7 +424,26 @@ exports[`RichTextEditor should render correctly 1`] = `
|
|
|
405
424
|
themeTypeface="neutral"
|
|
406
425
|
themeVariant="regular"
|
|
407
426
|
>
|
|
408
|
-
|
|
427
|
+
<Text
|
|
428
|
+
allowFontScaling={false}
|
|
429
|
+
style={
|
|
430
|
+
[
|
|
431
|
+
{
|
|
432
|
+
"color": "#001f23",
|
|
433
|
+
"fontFamily": "BeVietnamPro-Regular",
|
|
434
|
+
"fontSize": 16,
|
|
435
|
+
"letterSpacing": 0.48,
|
|
436
|
+
"lineHeight": 24,
|
|
437
|
+
},
|
|
438
|
+
undefined,
|
|
439
|
+
]
|
|
440
|
+
}
|
|
441
|
+
themeIntent="body"
|
|
442
|
+
themeTypeface="neutral"
|
|
443
|
+
themeVariant="regular"
|
|
444
|
+
>
|
|
445
|
+
Rich Text Editor
|
|
446
|
+
</Text>
|
|
409
447
|
</Text>
|
|
410
448
|
</View>
|
|
411
449
|
<View
|