@hero-design/rn 8.23.0 → 8.24.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.turbo/turbo-build.log +9 -9
- package/.turbo/turbo-build:types.log +2 -0
- package/.turbo/turbo-lint.log +146 -0
- package/.turbo/turbo-publish:npm.log +9 -0
- package/.turbo/turbo-test.log +451 -0
- package/.turbo/turbo-type-check.log +1 -0
- package/es/index.js +289 -101
- package/lib/index.js +289 -101
- package/package.json +1 -1
- package/src/components/DatePicker/__tests__/__snapshots__/DatePicker.spec.tsx.snap +21 -9
- package/src/components/DatePicker/__tests__/__snapshots__/DatePickerAndroid.spec.tsx.snap +7 -3
- package/src/components/DatePicker/__tests__/__snapshots__/DatePickerCalendar.spec.tsx.snap +7 -3
- package/src/components/DatePicker/__tests__/__snapshots__/DatePickerIOS.spec.tsx.snap +7 -3
- package/src/components/RichTextEditor/RichTextEditor.tsx +10 -7
- package/src/components/RichTextEditor/__tests__/__snapshots__/RichTextEditor.spec.tsx.snap +10 -8
- package/src/components/Select/MultiSelect/__tests__/__snapshots__/index.spec.tsx.snap +37 -16
- package/src/components/Select/SingleSelect/__tests__/__snapshots__/index.spec.tsx.snap +37 -16
- package/src/components/Tabs/ScrollableTabs.tsx +10 -149
- package/src/components/Tabs/ScrollableTabsHeader.tsx +214 -0
- package/src/components/Tabs/ScrollableTabsV2/SceneView.tsx +61 -0
- package/src/components/Tabs/ScrollableTabsV2/ScrollableTabsV2.tsx +120 -0
- package/src/components/Tabs/ScrollableTabsV2/__tests__/SceneView.spec.tsx +76 -0
- package/src/components/Tabs/ScrollableTabsV2/__tests__/ScrollableTabsV2.spec.tsx +166 -0
- package/src/components/Tabs/ScrollableTabsV2/__tests__/__snapshots__/SceneView.spec.tsx.snap +161 -0
- package/src/components/Tabs/ScrollableTabsV2/__tests__/__snapshots__/ScrollableTabsV2.spec.tsx.snap +2497 -0
- package/src/components/Tabs/ScrollableTabsV2/index.tsx +5 -0
- package/src/components/Tabs/__tests__/ScrollableTabsHeader.spec.tsx +80 -0
- package/src/components/Tabs/__tests__/__snapshots__/ScrollableTabsHeader.spec.tsx.snap +587 -0
- package/src/components/Tabs/index.tsx +2 -0
- package/src/components/TextInput/StyledTextInput.tsx +40 -29
- package/src/components/TextInput/__tests__/StyledTextInput.spec.tsx +48 -57
- package/src/components/TextInput/__tests__/__snapshots__/StyledTextInput.spec.tsx.snap +84 -58
- package/src/components/TextInput/__tests__/__snapshots__/index.spec.tsx.snap +326 -74
- package/src/components/TextInput/__tests__/index.spec.tsx +16 -4
- package/src/components/TextInput/index.tsx +25 -15
- package/src/components/TimePicker/__tests__/__snapshots__/TimePickerAndroid.spec.tsx.snap +14 -6
- package/src/components/TimePicker/__tests__/__snapshots__/TimePickerIOS.spec.tsx.snap +14 -6
- package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +8 -3
- package/src/theme/components/textInput.ts +10 -4
- package/testUtils/setup.tsx +6 -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/ContentNavigator/StyledContentNavigator.d.ts +0 -0
- package/types/components/ContentNavigator/index.d.ts +0 -0
- package/types/components/DatePicker/DatePickerAndroid.d.ts +0 -0
- package/types/components/DatePicker/DatePickerCalendar.d.ts +0 -0
- package/types/components/DatePicker/DatePickerIOS.d.ts +0 -0
- package/types/components/DatePicker/StyledDatePicker.d.ts +0 -0
- package/types/components/DatePicker/index.d.ts +0 -0
- package/types/components/DatePicker/types.d.ts +0 -0
- package/types/components/Divider/StyledDivider.d.ts +0 -0
- package/types/components/Divider/index.d.ts +0 -0
- package/types/components/Drawer/DragableDrawer/helpers.d.ts +0 -0
- package/types/components/Drawer/DragableDrawer/index.d.ts +0 -0
- package/types/components/Drawer/StyledDrawer.d.ts +0 -0
- package/types/components/Drawer/index.d.ts +0 -0
- package/types/components/Empty/StyledEmpty.d.ts +0 -0
- package/types/components/Empty/index.d.ts +0 -0
- package/types/components/Error/StyledError.d.ts +0 -0
- package/types/components/Error/index.d.ts +0 -0
- package/types/components/FAB/ActionGroup/ActionItem.d.ts +0 -0
- package/types/components/FAB/ActionGroup/StyledActionGroup.d.ts +0 -0
- package/types/components/FAB/ActionGroup/StyledActionItem.d.ts +0 -0
- package/types/components/FAB/ActionGroup/index.d.ts +0 -0
- package/types/components/FAB/AnimatedFABIcon.d.ts +0 -0
- package/types/components/FAB/FAB.d.ts +0 -0
- package/types/components/FAB/StyledFAB.d.ts +0 -0
- package/types/components/FAB/index.d.ts +0 -0
- package/types/components/Icon/AnimatedIcon.d.ts +0 -0
- package/types/components/Icon/HeroIcon/index.d.ts +0 -0
- package/types/components/Icon/IconList.d.ts +0 -0
- package/types/components/Icon/index.d.ts +0 -0
- package/types/components/Icon/utils.d.ts +0 -0
- package/types/components/Image/index.d.ts +0 -0
- package/types/components/List/BasicListItem.d.ts +0 -0
- package/types/components/List/ListItem.d.ts +0 -0
- package/types/components/List/StyledBasicListItem.d.ts +0 -0
- package/types/components/List/StyledListItem.d.ts +0 -0
- package/types/components/List/index.d.ts +0 -0
- package/types/components/PageControl/StyledPageControl.d.ts +0 -0
- package/types/components/PageControl/index.d.ts +0 -0
- package/types/components/PinInput/PinCell.d.ts +0 -0
- package/types/components/PinInput/StyledPinInput.d.ts +0 -0
- package/types/components/PinInput/index.d.ts +0 -0
- package/types/components/Progress/ProgressBar.d.ts +0 -0
- package/types/components/Progress/ProgressCircle.d.ts +0 -0
- package/types/components/Progress/StyledProgressBar.d.ts +0 -0
- package/types/components/Progress/StyledProgressCircle.d.ts +0 -0
- package/types/components/Progress/__tests__/index.spec.d.ts +0 -0
- package/types/components/Progress/constants.d.ts +0 -0
- package/types/components/Progress/index.d.ts +0 -0
- package/types/components/Progress/types.d.ts +0 -0
- package/types/components/Radio/Radio.d.ts +0 -0
- package/types/components/Radio/RadioGroup.d.ts +0 -0
- package/types/components/Radio/StyledRadio.d.ts +0 -0
- package/types/components/Radio/index.d.ts +0 -0
- package/types/components/Radio/types.d.ts +0 -0
- package/types/components/RefreshControl/index.d.ts +0 -0
- package/types/components/RichTextEditor/EditorEvent.d.ts +0 -0
- package/types/components/RichTextEditor/EditorToolbar.d.ts +0 -0
- package/types/components/RichTextEditor/MentionList.d.ts +0 -0
- package/types/components/RichTextEditor/RichTextEditor.d.ts +0 -0
- package/types/components/RichTextEditor/StyledRichTextEditor.d.ts +0 -0
- package/types/components/RichTextEditor/StyledToolbar.d.ts +0 -0
- package/types/components/RichTextEditor/__mocks__/heroEditorApp.d.ts +0 -0
- package/types/components/RichTextEditor/constants.d.ts +0 -0
- package/types/components/RichTextEditor/heroEditorApp.d.ts +0 -0
- package/types/components/RichTextEditor/index.d.ts +0 -0
- package/types/components/RichTextEditor/types.d.ts +0 -0
- package/types/components/RichTextEditor/utils/events.d.ts +0 -0
- package/types/components/RichTextEditor/utils/rnWebView.d.ts +0 -0
- package/types/components/SectionHeading/StyledHeading.d.ts +0 -0
- package/types/components/SectionHeading/index.d.ts +0 -0
- package/types/components/Select/BaseOptionList.d.ts +0 -0
- package/types/components/Select/Footer.d.ts +0 -0
- package/types/components/Select/MultiSelect/Option.d.ts +0 -0
- package/types/components/Select/MultiSelect/OptionList.d.ts +0 -0
- package/types/components/Select/MultiSelect/index.d.ts +0 -0
- package/types/components/Select/SingleSelect/Option.d.ts +0 -0
- package/types/components/Select/SingleSelect/OptionList.d.ts +0 -0
- package/types/components/Select/SingleSelect/StyledSingleSelect.d.ts +0 -0
- package/types/components/Select/SingleSelect/index.d.ts +0 -0
- package/types/components/Select/StyledSelect.d.ts +0 -0
- package/types/components/Select/helpers.d.ts +0 -0
- package/types/components/Select/index.d.ts +0 -0
- package/types/components/Select/types.d.ts +0 -0
- package/types/components/Skeleton/StyledSkeleton.d.ts +0 -0
- package/types/components/Skeleton/index.d.ts +0 -0
- package/types/components/Slider/index.d.ts +0 -0
- package/types/components/Spinner/AnimatedSpinner.d.ts +0 -0
- package/types/components/Spinner/StyledSpinner.d.ts +0 -0
- package/types/components/Spinner/index.d.ts +0 -0
- package/types/components/Success/StyledSuccess.d.ts +0 -0
- package/types/components/Success/index.d.ts +0 -0
- package/types/components/Swipeable/StyledSwipeable.d.ts +0 -0
- package/types/components/Swipeable/SwipeableAction.d.ts +0 -0
- package/types/components/Swipeable/index.d.ts +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 +9 -0
- package/types/components/Tabs/ScrollableTabs.d.ts +0 -0
- package/types/components/Tabs/ScrollableTabsHeader.d.ts +35 -0
- package/types/components/Tabs/ScrollableTabsV2/SceneView.d.ts +10 -0
- package/types/components/Tabs/ScrollableTabsV2/ScrollableTabsV2.d.ts +9 -0
- package/types/components/Tabs/ScrollableTabsV2/index.d.ts +4 -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 +3 -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 +12 -7
- package/types/components/TextInput/index.d.ts +8 -4
- package/types/components/TimePicker/StyledTimePicker.d.ts +0 -0
- package/types/components/TimePicker/TimePickerAndroid.d.ts +0 -0
- package/types/components/TimePicker/TimePickerIOS.d.ts +0 -0
- package/types/components/TimePicker/index.d.ts +0 -0
- package/types/components/TimePicker/types.d.ts +0 -0
- package/types/components/Toast/StyledToast.d.ts +0 -0
- package/types/components/Toast/Toast.d.ts +0 -0
- package/types/components/Toast/ToastContainer.d.ts +0 -0
- package/types/components/Toast/ToastContext.d.ts +0 -0
- package/types/components/Toast/ToastProvider.d.ts +0 -0
- package/types/components/Toast/index.d.ts +0 -0
- package/types/components/Toast/types.d.ts +0 -0
- package/types/components/Toolbar/StyledToolbar.d.ts +0 -0
- package/types/components/Toolbar/ToolbarGroup.d.ts +0 -0
- package/types/components/Toolbar/ToolbarItem.d.ts +0 -0
- package/types/components/Toolbar/index.d.ts +0 -0
- package/types/components/Typography/Text/StyledText.d.ts +0 -0
- package/types/components/Typography/Text/index.d.ts +0 -0
- package/types/components/Typography/index.d.ts +0 -0
- package/types/index.d.ts +0 -0
- package/types/testHelpers/renderWithTheme.d.ts +0 -0
- package/types/theme/ThemeProvider.d.ts +0 -0
- package/types/theme/ThemeSwitcher.d.ts +0 -0
- package/types/theme/components/accordion.d.ts +0 -0
- package/types/theme/components/alert.d.ts +0 -0
- package/types/theme/components/attachment.d.ts +0 -0
- package/types/theme/components/avatar.d.ts +0 -0
- package/types/theme/components/badge.d.ts +0 -0
- package/types/theme/components/bottomNavigation.d.ts +0 -0
- package/types/theme/components/bottomSheet.d.ts +0 -0
- package/types/theme/components/button.d.ts +0 -0
- package/types/theme/components/calendar.d.ts +0 -0
- package/types/theme/components/card.d.ts +0 -0
- package/types/theme/components/cardCarousel.d.ts +0 -0
- package/types/theme/components/carousel.d.ts +0 -0
- package/types/theme/components/checkbox.d.ts +0 -0
- package/types/theme/components/contentNavigator.d.ts +0 -0
- package/types/theme/components/datePicker.d.ts +0 -0
- package/types/theme/components/divider.d.ts +0 -0
- package/types/theme/components/drawer.d.ts +0 -0
- package/types/theme/components/empty.d.ts +0 -0
- package/types/theme/components/error.d.ts +0 -0
- package/types/theme/components/fab.d.ts +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 +5 -0
- package/types/theme/components/timePicker.d.ts +0 -0
- package/types/theme/components/toast.d.ts +0 -0
- package/types/theme/components/toolbar.d.ts +0 -0
- package/types/theme/components/typography.d.ts +0 -0
- package/types/theme/getTheme.d.ts +0 -0
- package/types/theme/global/borders.d.ts +0 -0
- package/types/theme/global/colors/eBens.d.ts +0 -0
- package/types/theme/global/colors/global.d.ts +0 -0
- package/types/theme/global/colors/globalDark.d.ts +0 -0
- package/types/theme/global/colors/jobs.d.ts +0 -0
- package/types/theme/global/colors/swag.d.ts +0 -0
- package/types/theme/global/colors/swagDark.d.ts +0 -0
- package/types/theme/global/colors/types.d.ts +0 -0
- package/types/theme/global/colors/wallet.d.ts +0 -0
- package/types/theme/global/colors/work.d.ts +0 -0
- package/types/theme/global/index.d.ts +0 -0
- package/types/theme/global/scale.d.ts +0 -0
- package/types/theme/global/sizes.d.ts +0 -0
- package/types/theme/global/space.d.ts +0 -0
- package/types/theme/global/typography.d.ts +0 -0
- package/types/theme/index.d.ts +0 -0
- package/types/types.d.ts +0 -0
- package/types/utils/functions.d.ts +0 -0
- package/types/utils/helpers.d.ts +0 -0
- package/types/utils/hooks.d.ts +0 -0
- package/types/utils/scale.d.ts +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
2
|
|
|
3
|
-
exports[`Label renders correctly with
|
|
3
|
+
exports[`Label renders correctly with themeState default 1`] = `
|
|
4
4
|
<Text
|
|
5
5
|
allowFontScaling={false}
|
|
6
6
|
style={
|
|
@@ -23,14 +23,14 @@ exports[`Label renders correctly with themeVariant default 1`] = `
|
|
|
23
23
|
themeFontSize="medium"
|
|
24
24
|
themeFontWeight="regular"
|
|
25
25
|
themeIntent="body"
|
|
26
|
+
themeState="default"
|
|
26
27
|
themeTypeface="neutral"
|
|
27
|
-
themeVariant="default"
|
|
28
28
|
>
|
|
29
29
|
Label
|
|
30
30
|
</Text>
|
|
31
31
|
`;
|
|
32
32
|
|
|
33
|
-
exports[`Label renders correctly with
|
|
33
|
+
exports[`Label renders correctly with themeState disabled 1`] = `
|
|
34
34
|
<Text
|
|
35
35
|
allowFontScaling={false}
|
|
36
36
|
style={
|
|
@@ -53,14 +53,14 @@ exports[`Label renders correctly with themeVariant disabled 1`] = `
|
|
|
53
53
|
themeFontSize="medium"
|
|
54
54
|
themeFontWeight="regular"
|
|
55
55
|
themeIntent="body"
|
|
56
|
+
themeState="disabled"
|
|
56
57
|
themeTypeface="neutral"
|
|
57
|
-
themeVariant="disabled"
|
|
58
58
|
>
|
|
59
59
|
Label
|
|
60
60
|
</Text>
|
|
61
61
|
`;
|
|
62
62
|
|
|
63
|
-
exports[`Label renders correctly with
|
|
63
|
+
exports[`Label renders correctly with themeState error 1`] = `
|
|
64
64
|
<Text
|
|
65
65
|
allowFontScaling={false}
|
|
66
66
|
style={
|
|
@@ -83,14 +83,14 @@ exports[`Label renders correctly with themeVariant error 1`] = `
|
|
|
83
83
|
themeFontSize="medium"
|
|
84
84
|
themeFontWeight="regular"
|
|
85
85
|
themeIntent="body"
|
|
86
|
+
themeState="error"
|
|
86
87
|
themeTypeface="neutral"
|
|
87
|
-
themeVariant="error"
|
|
88
88
|
>
|
|
89
89
|
Label
|
|
90
90
|
</Text>
|
|
91
91
|
`;
|
|
92
92
|
|
|
93
|
-
exports[`Label renders correctly with
|
|
93
|
+
exports[`Label renders correctly with themeState filled 1`] = `
|
|
94
94
|
<Text
|
|
95
95
|
allowFontScaling={false}
|
|
96
96
|
style={
|
|
@@ -113,14 +113,14 @@ exports[`Label renders correctly with themeVariant filled 1`] = `
|
|
|
113
113
|
themeFontSize="medium"
|
|
114
114
|
themeFontWeight="regular"
|
|
115
115
|
themeIntent="body"
|
|
116
|
+
themeState="filled"
|
|
116
117
|
themeTypeface="neutral"
|
|
117
|
-
themeVariant="filled"
|
|
118
118
|
>
|
|
119
119
|
Label
|
|
120
120
|
</Text>
|
|
121
121
|
`;
|
|
122
122
|
|
|
123
|
-
exports[`Label renders correctly with
|
|
123
|
+
exports[`Label renders correctly with themeState readonly 1`] = `
|
|
124
124
|
<Text
|
|
125
125
|
allowFontScaling={false}
|
|
126
126
|
style={
|
|
@@ -143,8 +143,8 @@ exports[`Label renders correctly with themeVariant readonly 1`] = `
|
|
|
143
143
|
themeFontSize="medium"
|
|
144
144
|
themeFontWeight="regular"
|
|
145
145
|
themeIntent="body"
|
|
146
|
+
themeState="readonly"
|
|
146
147
|
themeTypeface="neutral"
|
|
147
|
-
themeVariant="readonly"
|
|
148
148
|
>
|
|
149
149
|
Label
|
|
150
150
|
</Text>
|
|
@@ -169,7 +169,7 @@ exports[`LabelContainer renders correctly 1`] = `
|
|
|
169
169
|
/>
|
|
170
170
|
`;
|
|
171
171
|
|
|
172
|
-
exports[`LabelInsideTextInput renders correctly with
|
|
172
|
+
exports[`LabelInsideTextInput renders correctly with themeState default 1`] = `
|
|
173
173
|
<Text
|
|
174
174
|
allowFontScaling={false}
|
|
175
175
|
style={
|
|
@@ -186,7 +186,7 @@ exports[`LabelInsideTextInput renders correctly with themeVariant default 1`] =
|
|
|
186
186
|
"alignContent": "center",
|
|
187
187
|
"alignItems": "center",
|
|
188
188
|
"color": "#001f23",
|
|
189
|
-
"fontSize":
|
|
189
|
+
"fontSize": 16,
|
|
190
190
|
"marginTop": -2,
|
|
191
191
|
"textAlignVertical": "center",
|
|
192
192
|
},
|
|
@@ -197,14 +197,14 @@ exports[`LabelInsideTextInput renders correctly with themeVariant default 1`] =
|
|
|
197
197
|
themeFontSize="medium"
|
|
198
198
|
themeFontWeight="regular"
|
|
199
199
|
themeIntent="body"
|
|
200
|
+
themeState="default"
|
|
200
201
|
themeTypeface="neutral"
|
|
201
|
-
themeVariant="default"
|
|
202
202
|
>
|
|
203
203
|
Label
|
|
204
204
|
</Text>
|
|
205
205
|
`;
|
|
206
206
|
|
|
207
|
-
exports[`LabelInsideTextInput renders correctly with
|
|
207
|
+
exports[`LabelInsideTextInput renders correctly with themeState disabled 1`] = `
|
|
208
208
|
<Text
|
|
209
209
|
allowFontScaling={false}
|
|
210
210
|
style={
|
|
@@ -221,7 +221,7 @@ exports[`LabelInsideTextInput renders correctly with themeVariant disabled 1`] =
|
|
|
221
221
|
"alignContent": "center",
|
|
222
222
|
"alignItems": "center",
|
|
223
223
|
"color": "#bfc1c5",
|
|
224
|
-
"fontSize":
|
|
224
|
+
"fontSize": 16,
|
|
225
225
|
"marginTop": -2,
|
|
226
226
|
"textAlignVertical": "center",
|
|
227
227
|
},
|
|
@@ -232,14 +232,14 @@ exports[`LabelInsideTextInput renders correctly with themeVariant disabled 1`] =
|
|
|
232
232
|
themeFontSize="medium"
|
|
233
233
|
themeFontWeight="regular"
|
|
234
234
|
themeIntent="body"
|
|
235
|
+
themeState="disabled"
|
|
235
236
|
themeTypeface="neutral"
|
|
236
|
-
themeVariant="disabled"
|
|
237
237
|
>
|
|
238
238
|
Label
|
|
239
239
|
</Text>
|
|
240
240
|
`;
|
|
241
241
|
|
|
242
|
-
exports[`LabelInsideTextInput renders correctly with
|
|
242
|
+
exports[`LabelInsideTextInput renders correctly with themeState error 1`] = `
|
|
243
243
|
<Text
|
|
244
244
|
allowFontScaling={false}
|
|
245
245
|
style={
|
|
@@ -256,7 +256,7 @@ exports[`LabelInsideTextInput renders correctly with themeVariant error 1`] = `
|
|
|
256
256
|
"alignContent": "center",
|
|
257
257
|
"alignItems": "center",
|
|
258
258
|
"color": "#001f23",
|
|
259
|
-
"fontSize":
|
|
259
|
+
"fontSize": 16,
|
|
260
260
|
"marginTop": -2,
|
|
261
261
|
"textAlignVertical": "center",
|
|
262
262
|
},
|
|
@@ -267,14 +267,14 @@ exports[`LabelInsideTextInput renders correctly with themeVariant error 1`] = `
|
|
|
267
267
|
themeFontSize="medium"
|
|
268
268
|
themeFontWeight="regular"
|
|
269
269
|
themeIntent="body"
|
|
270
|
+
themeState="error"
|
|
270
271
|
themeTypeface="neutral"
|
|
271
|
-
themeVariant="error"
|
|
272
272
|
>
|
|
273
273
|
Label
|
|
274
274
|
</Text>
|
|
275
275
|
`;
|
|
276
276
|
|
|
277
|
-
exports[`LabelInsideTextInput renders correctly with
|
|
277
|
+
exports[`LabelInsideTextInput renders correctly with themeState filled 1`] = `
|
|
278
278
|
<Text
|
|
279
279
|
allowFontScaling={false}
|
|
280
280
|
style={
|
|
@@ -291,7 +291,7 @@ exports[`LabelInsideTextInput renders correctly with themeVariant filled 1`] = `
|
|
|
291
291
|
"alignContent": "center",
|
|
292
292
|
"alignItems": "center",
|
|
293
293
|
"color": "#001f23",
|
|
294
|
-
"fontSize":
|
|
294
|
+
"fontSize": 16,
|
|
295
295
|
"marginTop": -2,
|
|
296
296
|
"textAlignVertical": "center",
|
|
297
297
|
},
|
|
@@ -302,14 +302,14 @@ exports[`LabelInsideTextInput renders correctly with themeVariant filled 1`] = `
|
|
|
302
302
|
themeFontSize="medium"
|
|
303
303
|
themeFontWeight="regular"
|
|
304
304
|
themeIntent="body"
|
|
305
|
+
themeState="filled"
|
|
305
306
|
themeTypeface="neutral"
|
|
306
|
-
themeVariant="filled"
|
|
307
307
|
>
|
|
308
308
|
Label
|
|
309
309
|
</Text>
|
|
310
310
|
`;
|
|
311
311
|
|
|
312
|
-
exports[`LabelInsideTextInput renders correctly with
|
|
312
|
+
exports[`LabelInsideTextInput renders correctly with themeState readonly 1`] = `
|
|
313
313
|
<Text
|
|
314
314
|
allowFontScaling={false}
|
|
315
315
|
style={
|
|
@@ -326,7 +326,7 @@ exports[`LabelInsideTextInput renders correctly with themeVariant readonly 1`] =
|
|
|
326
326
|
"alignContent": "center",
|
|
327
327
|
"alignItems": "center",
|
|
328
328
|
"color": "#808f91",
|
|
329
|
-
"fontSize":
|
|
329
|
+
"fontSize": 16,
|
|
330
330
|
"marginTop": -2,
|
|
331
331
|
"textAlignVertical": "center",
|
|
332
332
|
},
|
|
@@ -337,14 +337,14 @@ exports[`LabelInsideTextInput renders correctly with themeVariant readonly 1`] =
|
|
|
337
337
|
themeFontSize="medium"
|
|
338
338
|
themeFontWeight="regular"
|
|
339
339
|
themeIntent="body"
|
|
340
|
+
themeState="readonly"
|
|
340
341
|
themeTypeface="neutral"
|
|
341
|
-
themeVariant="readonly"
|
|
342
342
|
>
|
|
343
343
|
Label
|
|
344
344
|
</Text>
|
|
345
345
|
`;
|
|
346
346
|
|
|
347
|
-
exports[`StyledAsteriskLabel renders correctly with
|
|
347
|
+
exports[`StyledAsteriskLabel renders correctly with themeState default 1`] = `
|
|
348
348
|
<Text
|
|
349
349
|
allowFontScaling={false}
|
|
350
350
|
style={
|
|
@@ -367,14 +367,14 @@ exports[`StyledAsteriskLabel renders correctly with themeVariant default 1`] = `
|
|
|
367
367
|
themeFontSize="medium"
|
|
368
368
|
themeFontWeight="regular"
|
|
369
369
|
themeIntent="body"
|
|
370
|
+
themeState="default"
|
|
370
371
|
themeTypeface="neutral"
|
|
371
|
-
themeVariant="default"
|
|
372
372
|
>
|
|
373
373
|
*
|
|
374
374
|
</Text>
|
|
375
375
|
`;
|
|
376
376
|
|
|
377
|
-
exports[`StyledAsteriskLabel renders correctly with
|
|
377
|
+
exports[`StyledAsteriskLabel renders correctly with themeState disabled 1`] = `
|
|
378
378
|
<Text
|
|
379
379
|
allowFontScaling={false}
|
|
380
380
|
style={
|
|
@@ -397,14 +397,14 @@ exports[`StyledAsteriskLabel renders correctly with themeVariant disabled 1`] =
|
|
|
397
397
|
themeFontSize="medium"
|
|
398
398
|
themeFontWeight="regular"
|
|
399
399
|
themeIntent="body"
|
|
400
|
+
themeState="disabled"
|
|
400
401
|
themeTypeface="neutral"
|
|
401
|
-
themeVariant="disabled"
|
|
402
402
|
>
|
|
403
403
|
*
|
|
404
404
|
</Text>
|
|
405
405
|
`;
|
|
406
406
|
|
|
407
|
-
exports[`StyledAsteriskLabel renders correctly with
|
|
407
|
+
exports[`StyledAsteriskLabel renders correctly with themeState error 1`] = `
|
|
408
408
|
<Text
|
|
409
409
|
allowFontScaling={false}
|
|
410
410
|
style={
|
|
@@ -427,14 +427,14 @@ exports[`StyledAsteriskLabel renders correctly with themeVariant error 1`] = `
|
|
|
427
427
|
themeFontSize="medium"
|
|
428
428
|
themeFontWeight="regular"
|
|
429
429
|
themeIntent="body"
|
|
430
|
+
themeState="error"
|
|
430
431
|
themeTypeface="neutral"
|
|
431
|
-
themeVariant="error"
|
|
432
432
|
>
|
|
433
433
|
*
|
|
434
434
|
</Text>
|
|
435
435
|
`;
|
|
436
436
|
|
|
437
|
-
exports[`StyledAsteriskLabel renders correctly with
|
|
437
|
+
exports[`StyledAsteriskLabel renders correctly with themeState filled 1`] = `
|
|
438
438
|
<Text
|
|
439
439
|
allowFontScaling={false}
|
|
440
440
|
style={
|
|
@@ -457,14 +457,14 @@ exports[`StyledAsteriskLabel renders correctly with themeVariant filled 1`] = `
|
|
|
457
457
|
themeFontSize="medium"
|
|
458
458
|
themeFontWeight="regular"
|
|
459
459
|
themeIntent="body"
|
|
460
|
+
themeState="filled"
|
|
460
461
|
themeTypeface="neutral"
|
|
461
|
-
themeVariant="filled"
|
|
462
462
|
>
|
|
463
463
|
*
|
|
464
464
|
</Text>
|
|
465
465
|
`;
|
|
466
466
|
|
|
467
|
-
exports[`StyledAsteriskLabel renders correctly with
|
|
467
|
+
exports[`StyledAsteriskLabel renders correctly with themeState readonly 1`] = `
|
|
468
468
|
<Text
|
|
469
469
|
allowFontScaling={false}
|
|
470
470
|
style={
|
|
@@ -487,8 +487,8 @@ exports[`StyledAsteriskLabel renders correctly with themeVariant readonly 1`] =
|
|
|
487
487
|
themeFontSize="medium"
|
|
488
488
|
themeFontWeight="regular"
|
|
489
489
|
themeIntent="body"
|
|
490
|
+
themeState="readonly"
|
|
490
491
|
themeTypeface="neutral"
|
|
491
|
-
themeVariant="readonly"
|
|
492
492
|
>
|
|
493
493
|
*
|
|
494
494
|
</Text>
|
|
@@ -512,11 +512,11 @@ exports[`StyledBorderBackDrop renders correctly when focused 1`] = `
|
|
|
512
512
|
]
|
|
513
513
|
}
|
|
514
514
|
themeFocused={true}
|
|
515
|
-
|
|
515
|
+
themeState="error"
|
|
516
516
|
/>
|
|
517
517
|
`;
|
|
518
518
|
|
|
519
|
-
exports[`StyledBorderBackDrop renders correctly with
|
|
519
|
+
exports[`StyledBorderBackDrop renders correctly with themeState default 1`] = `
|
|
520
520
|
<View
|
|
521
521
|
style={
|
|
522
522
|
Array [
|
|
@@ -534,11 +534,11 @@ exports[`StyledBorderBackDrop renders correctly with themeVariant default 1`] =
|
|
|
534
534
|
]
|
|
535
535
|
}
|
|
536
536
|
themeFocused={false}
|
|
537
|
-
|
|
537
|
+
themeState="default"
|
|
538
538
|
/>
|
|
539
539
|
`;
|
|
540
540
|
|
|
541
|
-
exports[`StyledBorderBackDrop renders correctly with
|
|
541
|
+
exports[`StyledBorderBackDrop renders correctly with themeState disabled 1`] = `
|
|
542
542
|
<View
|
|
543
543
|
style={
|
|
544
544
|
Array [
|
|
@@ -556,11 +556,11 @@ exports[`StyledBorderBackDrop renders correctly with themeVariant disabled 1`] =
|
|
|
556
556
|
]
|
|
557
557
|
}
|
|
558
558
|
themeFocused={false}
|
|
559
|
-
|
|
559
|
+
themeState="disabled"
|
|
560
560
|
/>
|
|
561
561
|
`;
|
|
562
562
|
|
|
563
|
-
exports[`StyledBorderBackDrop renders correctly with
|
|
563
|
+
exports[`StyledBorderBackDrop renders correctly with themeState error 1`] = `
|
|
564
564
|
<View
|
|
565
565
|
style={
|
|
566
566
|
Array [
|
|
@@ -578,11 +578,11 @@ exports[`StyledBorderBackDrop renders correctly with themeVariant error 1`] = `
|
|
|
578
578
|
]
|
|
579
579
|
}
|
|
580
580
|
themeFocused={false}
|
|
581
|
-
|
|
581
|
+
themeState="error"
|
|
582
582
|
/>
|
|
583
583
|
`;
|
|
584
584
|
|
|
585
|
-
exports[`StyledBorderBackDrop renders correctly with
|
|
585
|
+
exports[`StyledBorderBackDrop renders correctly with themeState filled 1`] = `
|
|
586
586
|
<View
|
|
587
587
|
style={
|
|
588
588
|
Array [
|
|
@@ -600,11 +600,11 @@ exports[`StyledBorderBackDrop renders correctly with themeVariant filled 1`] = `
|
|
|
600
600
|
]
|
|
601
601
|
}
|
|
602
602
|
themeFocused={false}
|
|
603
|
-
|
|
603
|
+
themeState="filled"
|
|
604
604
|
/>
|
|
605
605
|
`;
|
|
606
606
|
|
|
607
|
-
exports[`StyledBorderBackDrop renders correctly with
|
|
607
|
+
exports[`StyledBorderBackDrop renders correctly with themeState readonly 1`] = `
|
|
608
608
|
<View
|
|
609
609
|
style={
|
|
610
610
|
Array [
|
|
@@ -622,7 +622,7 @@ exports[`StyledBorderBackDrop renders correctly with themeVariant readonly 1`] =
|
|
|
622
622
|
]
|
|
623
623
|
}
|
|
624
624
|
themeFocused={false}
|
|
625
|
-
|
|
625
|
+
themeState="readonly"
|
|
626
626
|
/>
|
|
627
627
|
`;
|
|
628
628
|
|
|
@@ -709,7 +709,7 @@ exports[`StyledHelperText renders correctly 1`] = `
|
|
|
709
709
|
</Text>
|
|
710
710
|
`;
|
|
711
711
|
|
|
712
|
-
exports[`StyledMaxLengthMessage renders correctly with
|
|
712
|
+
exports[`StyledMaxLengthMessage renders correctly with themeState default 1`] = `
|
|
713
713
|
<Text
|
|
714
714
|
allowFontScaling={false}
|
|
715
715
|
style={
|
|
@@ -738,14 +738,14 @@ exports[`StyledMaxLengthMessage renders correctly with themeVariant default 1`]
|
|
|
738
738
|
themeFontSize="medium"
|
|
739
739
|
themeFontWeight="regular"
|
|
740
740
|
themeIntent="body"
|
|
741
|
+
themeState="default"
|
|
741
742
|
themeTypeface="neutral"
|
|
742
|
-
themeVariant="default"
|
|
743
743
|
>
|
|
744
744
|
100/255
|
|
745
745
|
</Text>
|
|
746
746
|
`;
|
|
747
747
|
|
|
748
|
-
exports[`StyledMaxLengthMessage renders correctly with
|
|
748
|
+
exports[`StyledMaxLengthMessage renders correctly with themeState disabled 1`] = `
|
|
749
749
|
<Text
|
|
750
750
|
allowFontScaling={false}
|
|
751
751
|
style={
|
|
@@ -774,14 +774,14 @@ exports[`StyledMaxLengthMessage renders correctly with themeVariant disabled 1`]
|
|
|
774
774
|
themeFontSize="medium"
|
|
775
775
|
themeFontWeight="regular"
|
|
776
776
|
themeIntent="body"
|
|
777
|
+
themeState="disabled"
|
|
777
778
|
themeTypeface="neutral"
|
|
778
|
-
themeVariant="disabled"
|
|
779
779
|
>
|
|
780
780
|
100/255
|
|
781
781
|
</Text>
|
|
782
782
|
`;
|
|
783
783
|
|
|
784
|
-
exports[`StyledMaxLengthMessage renders correctly with
|
|
784
|
+
exports[`StyledMaxLengthMessage renders correctly with themeState error 1`] = `
|
|
785
785
|
<Text
|
|
786
786
|
allowFontScaling={false}
|
|
787
787
|
style={
|
|
@@ -810,14 +810,14 @@ exports[`StyledMaxLengthMessage renders correctly with themeVariant error 1`] =
|
|
|
810
810
|
themeFontSize="medium"
|
|
811
811
|
themeFontWeight="regular"
|
|
812
812
|
themeIntent="body"
|
|
813
|
+
themeState="error"
|
|
813
814
|
themeTypeface="neutral"
|
|
814
|
-
themeVariant="error"
|
|
815
815
|
>
|
|
816
816
|
100/255
|
|
817
817
|
</Text>
|
|
818
818
|
`;
|
|
819
819
|
|
|
820
|
-
exports[`StyledMaxLengthMessage renders correctly with
|
|
820
|
+
exports[`StyledMaxLengthMessage renders correctly with themeState filled 1`] = `
|
|
821
821
|
<Text
|
|
822
822
|
allowFontScaling={false}
|
|
823
823
|
style={
|
|
@@ -846,14 +846,14 @@ exports[`StyledMaxLengthMessage renders correctly with themeVariant filled 1`] =
|
|
|
846
846
|
themeFontSize="medium"
|
|
847
847
|
themeFontWeight="regular"
|
|
848
848
|
themeIntent="body"
|
|
849
|
+
themeState="filled"
|
|
849
850
|
themeTypeface="neutral"
|
|
850
|
-
themeVariant="filled"
|
|
851
851
|
>
|
|
852
852
|
100/255
|
|
853
853
|
</Text>
|
|
854
854
|
`;
|
|
855
855
|
|
|
856
|
-
exports[`StyledMaxLengthMessage renders correctly with
|
|
856
|
+
exports[`StyledMaxLengthMessage renders correctly with themeState readonly 1`] = `
|
|
857
857
|
<Text
|
|
858
858
|
allowFontScaling={false}
|
|
859
859
|
style={
|
|
@@ -882,27 +882,53 @@ exports[`StyledMaxLengthMessage renders correctly with themeVariant readonly 1`]
|
|
|
882
882
|
themeFontSize="medium"
|
|
883
883
|
themeFontWeight="regular"
|
|
884
884
|
themeIntent="body"
|
|
885
|
+
themeState="readonly"
|
|
885
886
|
themeTypeface="neutral"
|
|
886
|
-
themeVariant="readonly"
|
|
887
887
|
>
|
|
888
888
|
100/255
|
|
889
889
|
</Text>
|
|
890
890
|
`;
|
|
891
891
|
|
|
892
|
-
exports[`StyledTextInput renders correctly 1`] = `
|
|
892
|
+
exports[`StyledTextInput renders correctly with $themeState state 1`] = `
|
|
893
893
|
<TextInput
|
|
894
894
|
style={
|
|
895
895
|
Array [
|
|
896
896
|
Object {
|
|
897
897
|
"alignSelf": "stretch",
|
|
898
898
|
"flexGrow": 2,
|
|
899
|
-
"
|
|
899
|
+
"fontFamily": "BeVietnamPro-Regular",
|
|
900
|
+
"fontSize": 16,
|
|
901
|
+
"height": undefined,
|
|
900
902
|
"marginHorizontal": 8,
|
|
903
|
+
"maxHeight": 144,
|
|
901
904
|
"paddingVertical": 0,
|
|
902
905
|
"textAlignVertical": "center",
|
|
903
906
|
},
|
|
904
907
|
undefined,
|
|
905
908
|
]
|
|
906
909
|
}
|
|
910
|
+
themeVariant="text"
|
|
911
|
+
/>
|
|
912
|
+
`;
|
|
913
|
+
|
|
914
|
+
exports[`StyledTextInput renders correctly with $themeState state 2`] = `
|
|
915
|
+
<TextInput
|
|
916
|
+
style={
|
|
917
|
+
Array [
|
|
918
|
+
Object {
|
|
919
|
+
"alignSelf": "stretch",
|
|
920
|
+
"flexGrow": 2,
|
|
921
|
+
"fontFamily": "BeVietnamPro-Regular",
|
|
922
|
+
"fontSize": 16,
|
|
923
|
+
"height": 144,
|
|
924
|
+
"marginHorizontal": 8,
|
|
925
|
+
"maxHeight": 144,
|
|
926
|
+
"paddingVertical": 0,
|
|
927
|
+
"textAlignVertical": "top",
|
|
928
|
+
},
|
|
929
|
+
undefined,
|
|
930
|
+
]
|
|
931
|
+
}
|
|
932
|
+
themeVariant="textarea"
|
|
907
933
|
/>
|
|
908
934
|
`;
|