@hero-design/rn 7.18.1 → 7.20.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/.eslintrc.json +6 -1
- package/.turbo/turbo-build.log +2 -2
- package/es/index.js +726 -336
- package/lib/index.js +727 -336
- package/package.json +4 -4
- package/src/components/Accordion/AccordionItem.tsx +5 -4
- package/src/components/Accordion/__tests__/index.spec.tsx +2 -1
- package/src/components/Accordion/index.tsx +3 -2
- package/src/components/Alert/StyledAlert.tsx +8 -7
- package/src/components/Alert/__tests__/__snapshots__/index.spec.tsx.snap +140 -19
- package/src/components/Alert/__tests__/index.spec.tsx +21 -0
- package/src/components/Alert/index.tsx +18 -9
- package/src/components/Avatar/StyledAvatar.tsx +2 -1
- package/src/components/Avatar/index.tsx +4 -3
- package/src/components/Badge/Status.tsx +4 -2
- package/src/components/Badge/index.tsx +2 -1
- package/src/components/BottomNavigation/__tests__/index.spec.tsx +4 -2
- package/src/components/BottomNavigation/index.tsx +6 -8
- package/src/components/BottomSheet/Footer.tsx +2 -1
- package/src/components/BottomSheet/Header.tsx +2 -1
- package/src/components/BottomSheet/StyledBottomSheet.tsx +2 -2
- package/src/components/BottomSheet/index.tsx +4 -8
- package/src/components/Box/StyledBox.tsx +54 -0
- package/src/components/Box/__tests__/__snapshots__/index.spec.tsx.snap +605 -0
- package/src/components/Box/__tests__/helpers.spec.ts +14 -0
- package/src/components/Box/__tests__/index.spec.tsx +155 -0
- package/src/components/Box/config.ts +201 -0
- package/src/components/Box/helpers.ts +10 -0
- package/src/components/Box/index.tsx +13 -0
- package/src/components/Box/types.ts +38 -0
- package/src/components/Button/Button.tsx +5 -6
- package/src/components/Button/IconButton.tsx +4 -7
- package/src/components/Button/LoadingIndicator/StyledLoadingIndicator.tsx +5 -3
- package/src/components/Button/LoadingIndicator/index.tsx +2 -8
- package/src/components/Button/StyledButton.tsx +4 -5
- package/src/components/Button/UtilityButton/index.tsx +5 -4
- package/src/components/Button/index.tsx +3 -2
- package/src/components/Calendar/StyledCalendar.tsx +2 -1
- package/src/components/Calendar/__tests__/index.spec.tsx +13 -17
- package/src/components/Card/DataCard/StyledDataCard.tsx +8 -2
- package/src/components/Card/DataCard/__tests__/StyledDataCard.spec.tsx +1 -0
- package/src/components/Card/DataCard/__tests__/__snapshots__/StyledDataCard.spec.tsx.snap +16 -0
- package/src/components/Card/DataCard/index.tsx +4 -3
- package/src/components/Card/StyledCard.tsx +12 -19
- package/src/components/Card/__tests__/__snapshots__/index.spec.tsx.snap +147 -0
- package/src/components/Card/__tests__/index.spec.tsx +18 -0
- package/src/components/Card/index.tsx +9 -3
- package/src/components/Checkbox/StyledCheckbox.tsx +44 -14
- package/src/components/Checkbox/__tests__/StyledCheckbox.spec.tsx +28 -3
- package/src/components/Checkbox/__tests__/__snapshots__/StyledCheckbox.spec.tsx.snap +95 -9
- package/src/components/Checkbox/__tests__/__snapshots__/index.spec.tsx.snap +337 -23
- package/src/components/Checkbox/__tests__/index.spec.tsx +38 -7
- package/src/components/Checkbox/index.tsx +35 -18
- package/src/components/Collapse/index.tsx +4 -8
- package/src/components/ContentNavigator/index.tsx +1 -1
- package/src/components/DatePicker/DatePickerAndroid.tsx +1 -1
- package/src/components/DatePicker/DatePickerIOS.tsx +1 -1
- package/src/components/DatePicker/StyledDatePicker.tsx +2 -1
- package/src/components/DatePicker/__tests__/DatePickerIOS.spec.tsx +1 -2
- package/src/components/DatePicker/index.tsx +1 -1
- package/src/components/DatePicker/types.ts +1 -1
- package/src/components/Divider/index.tsx +1 -1
- package/src/components/Drawer/DragableDrawer/helpers.ts +3 -4
- package/src/components/Drawer/DragableDrawer/index.tsx +3 -2
- package/src/components/Drawer/StyledDrawer.tsx +3 -2
- package/src/components/Drawer/index.tsx +2 -1
- package/src/components/Empty/index.tsx +1 -2
- package/src/components/FAB/ActionGroup/ActionItem.tsx +3 -2
- package/src/components/FAB/ActionGroup/StyledActionGroup.tsx +4 -3
- package/src/components/FAB/ActionGroup/StyledActionItem.tsx +4 -2
- package/src/components/FAB/ActionGroup/index.tsx +11 -11
- package/src/components/FAB/AnimatedFABIcon.tsx +1 -1
- package/src/components/FAB/FAB.tsx +2 -2
- package/src/components/FAB/StyledFAB.tsx +4 -7
- package/src/components/Icon/AnimatedIcon.tsx +2 -1
- package/src/components/Icon/index.tsx +1 -1
- package/src/components/List/BasicListItem.tsx +3 -3
- package/src/components/List/ListItem.tsx +6 -3
- package/src/components/List/StyledListItem.tsx +2 -1
- package/src/components/List/__tests__/__snapshots__/ListItem.spec.tsx.snap +13 -27
- package/src/components/List/__tests__/__snapshots__/StyledListItem.spec.tsx.snap +2 -0
- package/src/components/PinInput/PinCell.tsx +1 -1
- package/src/components/PinInput/index.tsx +3 -7
- package/src/components/Progress/ProgressBar.tsx +2 -1
- package/src/components/Progress/ProgressCircle.tsx +3 -9
- package/src/components/Progress/StyledProgressBar.tsx +3 -3
- package/src/components/Progress/StyledProgressCircle.tsx +3 -3
- package/src/components/Radio/Radio.tsx +20 -14
- package/src/components/Radio/RadioGroup.tsx +5 -3
- package/src/components/Radio/StyledRadio.tsx +12 -29
- package/src/components/Radio/__tests__/__snapshots__/Radio.spec.tsx.snap +84 -50
- package/src/components/Radio/__tests__/__snapshots__/RadioGroup.spec.tsx.snap +124 -73
- package/src/components/RichTextEditor/EditorToolbar.tsx +4 -8
- package/src/components/RichTextEditor/RichTextEditor.tsx +5 -14
- package/src/components/RichTextEditor/__tests__/EditorToolbar.spec.tsx +2 -6
- package/src/components/RichTextEditor/__tests__/MentionList.spec.tsx +2 -6
- package/src/components/RichTextEditor/__tests__/RichTextEditor.spec.tsx +8 -15
- package/src/components/RichTextEditor/index.tsx +6 -6
- package/src/components/SectionHeading/__tests__/__snapshots__/StyledHeading.spec.tsx.snap +1 -1
- package/src/components/SectionHeading/__tests__/__snapshots__/index.spec.tsx.snap +4 -4
- package/src/components/SectionHeading/index.tsx +5 -4
- package/src/components/Select/MultiSelect/Option.tsx +2 -1
- package/src/components/Select/MultiSelect/OptionList.tsx +3 -3
- package/src/components/Select/MultiSelect/__tests__/__snapshots__/OptionList.spec.tsx.snap +22 -20
- package/src/components/Select/MultiSelect/__tests__/__snapshots__/index.spec.tsx.snap +609 -589
- package/src/components/Select/MultiSelect/__tests__/index.spec.tsx +1 -1
- package/src/components/Select/MultiSelect/index.tsx +20 -16
- package/src/components/Select/SingleSelect/Option.tsx +2 -1
- package/src/components/Select/SingleSelect/OptionList.tsx +3 -3
- package/src/components/Select/SingleSelect/__tests__/__snapshots__/OptionList.spec.tsx.snap +22 -20
- package/src/components/Select/SingleSelect/__tests__/__snapshots__/index.spec.tsx.snap +606 -586
- package/src/components/Select/SingleSelect/__tests__/index.spec.tsx +1 -1
- package/src/components/Select/SingleSelect/index.tsx +20 -16
- package/src/components/Select/StyledOptionList.tsx +11 -9
- package/src/components/Select/helpers.tsx +1 -1
- package/src/components/Select/index.tsx +6 -4
- package/src/components/Select/types.ts +3 -3
- package/src/components/Spinner/AnimatedSpinner.tsx +7 -7
- package/src/components/Spinner/StyledSpinner.tsx +26 -20
- package/src/components/Spinner/__tests__/AnimatedSpinner.spec.tsx +1 -1
- package/src/components/Spinner/__tests__/StyledSpinner.spec.tsx +32 -16
- package/src/components/Spinner/__tests__/__snapshots__/AnimatedSpinner.spec.tsx.snap +14 -12
- package/src/components/Spinner/__tests__/__snapshots__/StyledSpinner.spec.tsx.snap +273 -31
- package/src/components/Spinner/__tests__/__snapshots__/index.spec.tsx.snap +14 -12
- package/src/components/Spinner/index.tsx +13 -5
- package/src/components/Switch/StyledSwitch.tsx +10 -26
- package/src/components/Switch/__tests__/StyledSwitch.spec.tsx +25 -0
- package/src/components/Switch/__tests__/__snapshots__/{StyledHeading.spec.tsx.snap → StyledSwitch.spec.tsx.snap} +45 -18
- package/src/components/Switch/__tests__/__snapshots__/index.spec.tsx.snap +26 -52
- package/src/components/Switch/index.tsx +23 -20
- package/src/components/Tabs/ScrollableTabs.tsx +10 -5
- package/src/components/Tabs/StyledScrollableTabs.tsx +6 -5
- package/src/components/Tabs/StyledTabs.tsx +6 -0
- package/src/components/Tabs/TabWithBadge.tsx +68 -0
- package/src/components/Tabs/__tests__/ScrollableTabs.spec.tsx +17 -2
- package/src/components/Tabs/__tests__/TabWithBadge.spec.tsx +48 -0
- package/src/components/Tabs/__tests__/__snapshots__/ScrollableTabs.spec.tsx.snap +205 -43
- package/src/components/Tabs/__tests__/__snapshots__/TabWithBadge.spec.tsx.snap +165 -0
- package/src/components/Tabs/__tests__/__snapshots__/index.spec.tsx.snap +135 -34
- package/src/components/Tabs/__tests__/index.spec.tsx +16 -2
- package/src/components/Tabs/index.tsx +17 -16
- package/src/components/Tag/StyledTag.tsx +1 -11
- package/src/components/Tag/__tests__/__snapshots__/Tag.spec.tsx.snap +4 -4
- package/src/components/Tag/index.tsx +3 -3
- package/src/components/TextInput/__tests__/index.spec.tsx +10 -14
- package/src/components/TextInput/index.tsx +5 -5
- package/src/components/TimePicker/StyledTimePicker.tsx +2 -1
- package/src/components/TimePicker/TimePickerAndroid.tsx +1 -1
- package/src/components/TimePicker/TimePickerIOS.tsx +1 -1
- package/src/components/TimePicker/__tests__/TimePickerIOS.spec.tsx +1 -2
- package/src/components/TimePicker/index.tsx +1 -1
- package/src/components/TimePicker/types.ts +1 -1
- package/src/components/Toast/StyledToast.tsx +16 -15
- package/src/components/Toast/Toast.tsx +36 -10
- package/src/components/Toast/ToastContainer.tsx +2 -2
- package/src/components/Toast/ToastContext.ts +1 -1
- package/src/components/Toast/ToastProvider.tsx +20 -19
- package/src/components/Toast/__tests__/Toast.spec.tsx +17 -0
- package/src/components/Toast/__tests__/ToastContainer.spec.tsx +1 -1
- package/src/components/Toast/__tests__/__snapshots__/Toast.spec.tsx.snap +299 -19
- package/src/components/Toast/types.ts +18 -4
- package/src/components/Toolbar/StyledToolbar.tsx +2 -1
- package/src/components/Toolbar/ToolbarGroup.tsx +2 -1
- package/src/components/Toolbar/ToolbarItem.tsx +2 -1
- package/src/components/Toolbar/index.tsx +2 -1
- package/src/components/Typography/Text/StyledText.tsx +7 -1
- package/src/components/Typography/Text/__tests__/StyledText.spec.tsx +1 -0
- package/src/components/Typography/Text/__tests__/__snapshots__/StyledText.spec.tsx.snap +22 -0
- package/src/components/Typography/Text/index.tsx +10 -3
- package/src/index.ts +2 -0
- package/src/testHelpers/renderWithTheme.tsx +2 -1
- package/src/theme/ThemeProvider.ts +1 -1
- package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +100 -49
- package/src/theme/components/.eslintrc.json +10 -0
- package/src/theme/components/accordion.ts +1 -1
- package/src/theme/components/alert.ts +6 -2
- package/src/theme/components/avatar.ts +3 -1
- package/src/theme/components/badge.ts +1 -1
- package/src/theme/components/bottomNavigation.ts +1 -1
- package/src/theme/components/bottomSheet.ts +1 -1
- package/src/theme/components/button.ts +1 -1
- package/src/theme/components/calendar.ts +1 -1
- package/src/theme/components/card.ts +7 -8
- package/src/theme/components/checkbox.ts +12 -8
- package/src/theme/components/contentNavigator.ts +1 -1
- package/src/theme/components/divider.ts +1 -1
- package/src/theme/components/drawer.ts +1 -1
- package/src/theme/components/empty.ts +1 -1
- package/src/theme/components/fab.ts +1 -1
- package/src/theme/components/icon.ts +1 -1
- package/src/theme/components/list.ts +5 -4
- package/src/theme/components/pinInput.ts +1 -1
- package/src/theme/components/progress.ts +1 -1
- package/src/theme/components/radio.ts +3 -11
- package/src/theme/components/richTextEditor.ts +1 -1
- package/src/theme/components/sectionHeading.ts +2 -2
- package/src/theme/components/select.ts +1 -1
- package/src/theme/components/spinner.ts +20 -8
- package/src/theme/components/switch.ts +7 -8
- package/src/theme/components/tabs.ts +4 -3
- package/src/theme/components/tag.ts +14 -14
- package/src/theme/components/textInput.ts +1 -1
- package/src/theme/components/toast.ts +18 -4
- package/src/theme/components/toolbar.ts +1 -1
- package/src/theme/components/typography.ts +3 -1
- package/src/theme/getTheme.ts +4 -11
- package/src/theme/global/borders.ts +2 -1
- package/src/theme/global/colors/swag.ts +25 -3
- package/src/theme/global/colors/types.ts +23 -0
- package/src/theme/global/colors/work.ts +6 -2
- package/src/theme/global/index.ts +6 -11
- package/src/theme/global/scale.ts +2 -1
- package/src/theme/global/space.ts +2 -1
- package/src/theme/global/typography.ts +2 -8
- package/src/theme/index.ts +5 -2
- package/src/types.ts +9 -10
- package/testUtils/setup.tsx +2 -0
- package/tsconfig.json +5 -21
- package/types/components/Accordion/AccordionItem.d.ts +3 -3
- package/types/components/Accordion/StyledAccordion.d.ts +14 -14
- package/types/components/Accordion/index.d.ts +3 -2
- package/types/components/Alert/StyledAlert.d.ts +18 -17
- package/types/components/Alert/index.d.ts +4 -4
- package/types/components/Avatar/StyledAvatar.d.ts +16 -16
- package/types/components/Avatar/index.d.ts +3 -3
- package/types/components/Badge/Status.d.ts +2 -2
- package/types/components/Badge/StyledBadge.d.ts +7 -7
- package/types/components/Badge/index.d.ts +2 -1
- package/types/components/BottomNavigation/StyledBottomNavigation.d.ts +21 -21
- package/types/components/BottomNavigation/index.d.ts +3 -3
- package/types/components/BottomSheet/Footer.d.ts +1 -1
- package/types/components/BottomSheet/Header.d.ts +2 -2
- package/types/components/BottomSheet/StyledBottomSheet.d.ts +21 -20
- package/types/components/BottomSheet/index.d.ts +2 -2
- package/types/components/Box/StyledBox.d.ts +15 -0
- package/types/components/{Radio/__tests__/StyledRadio.spec.d.ts → Box/__tests__/helpers.spec.d.ts} +0 -0
- package/types/components/{Switch/__tests__/StyledHeading.spec.d.ts → Box/__tests__/index.spec.d.ts} +0 -0
- package/types/components/Box/config.d.ts +170 -0
- package/types/components/Box/helpers.d.ts +1 -0
- package/types/components/Box/index.d.ts +5 -0
- package/types/components/Box/types.d.ts +31 -0
- package/types/components/Button/Button.d.ts +4 -4
- package/types/components/Button/IconButton.d.ts +2 -2
- package/types/components/Button/LoadingIndicator/StyledLoadingIndicator.d.ts +10 -9
- package/types/components/Button/LoadingIndicator/index.d.ts +1 -1
- package/types/components/Button/StyledButton.d.ts +19 -18
- package/types/components/Button/UtilityButton/StyledUtilityButton.d.ts +8 -8
- package/types/components/Button/UtilityButton/index.d.ts +3 -3
- package/types/components/Button/index.d.ts +2 -2
- package/types/components/Calendar/StyledCalendar.d.ts +27 -26
- package/types/components/Calendar/helpers.d.ts +2 -2
- package/types/components/Card/DataCard/StyledDataCard.d.ts +7 -7
- package/types/components/Card/DataCard/index.d.ts +3 -3
- package/types/components/Card/StyledCard.d.ts +7 -6
- package/types/components/Card/index.d.ts +7 -3
- package/types/components/Checkbox/StyledCheckbox.d.ts +24 -6
- package/types/components/Checkbox/index.d.ts +11 -3
- package/types/components/Collapse/StyledCollapse.d.ts +8 -8
- package/types/components/Collapse/index.d.ts +2 -2
- package/types/components/ContentNavigator/StyledContentNavigator.d.ts +5 -5
- package/types/components/ContentNavigator/index.d.ts +1 -1
- package/types/components/DatePicker/DatePickerAndroid.d.ts +1 -1
- package/types/components/DatePicker/DatePickerIOS.d.ts +1 -1
- package/types/components/DatePicker/StyledDatePicker.d.ts +5 -4
- package/types/components/DatePicker/index.d.ts +1 -1
- package/types/components/DatePicker/types.d.ts +1 -1
- package/types/components/Divider/StyledDivider.d.ts +5 -5
- package/types/components/Divider/index.d.ts +1 -1
- package/types/components/Drawer/DragableDrawer/index.d.ts +1 -1
- package/types/components/Drawer/StyledDrawer.d.ts +21 -20
- package/types/components/Drawer/index.d.ts +1 -1
- package/types/components/Empty/StyledEmpty.d.ts +12 -12
- package/types/components/Empty/index.d.ts +1 -1
- package/types/components/FAB/ActionGroup/ActionItem.d.ts +2 -2
- package/types/components/FAB/ActionGroup/StyledActionGroup.d.ts +14 -13
- package/types/components/FAB/ActionGroup/StyledActionItem.d.ts +10 -9
- package/types/components/FAB/ActionGroup/index.d.ts +3 -3
- package/types/components/FAB/AnimatedFABIcon.d.ts +1 -1
- package/types/components/FAB/FAB.d.ts +2 -2
- package/types/components/FAB/StyledFAB.d.ts +11 -10
- package/types/components/Icon/AnimatedIcon.d.ts +1 -1
- package/types/components/Icon/HeroIcon/index.d.ts +3 -3
- package/types/components/Icon/index.d.ts +1 -1
- package/types/components/List/BasicListItem.d.ts +2 -2
- package/types/components/List/ListItem.d.ts +4 -3
- package/types/components/List/StyledBasicListItem.d.ts +14 -14
- package/types/components/List/StyledListItem.d.ts +23 -23
- package/types/components/PinInput/PinCell.d.ts +1 -1
- package/types/components/PinInput/StyledPinInput.d.ts +30 -30
- package/types/components/PinInput/index.d.ts +2 -2
- package/types/components/Progress/ProgressBar.d.ts +1 -1
- package/types/components/Progress/ProgressCircle.d.ts +1 -1
- package/types/components/Progress/StyledProgressBar.d.ts +8 -7
- package/types/components/Progress/StyledProgressCircle.d.ts +21 -20
- package/types/components/Radio/Radio.d.ts +2 -2
- package/types/components/Radio/RadioGroup.d.ts +3 -3
- package/types/components/Radio/StyledRadio.d.ts +11 -21
- package/types/components/RichTextEditor/EditorToolbar.d.ts +1 -1
- package/types/components/RichTextEditor/MentionList.d.ts +1 -1
- package/types/components/RichTextEditor/RichTextEditor.d.ts +3 -2
- package/types/components/RichTextEditor/StyledRichTextEditor.d.ts +6 -6
- package/types/components/RichTextEditor/StyledToolbar.d.ts +9 -9
- package/types/components/RichTextEditor/index.d.ts +5 -4
- package/types/components/SectionHeading/StyledHeading.d.ts +9 -9
- package/types/components/SectionHeading/index.d.ts +3 -3
- package/types/components/Select/MultiSelect/Option.d.ts +2 -2
- package/types/components/Select/MultiSelect/OptionList.d.ts +2 -2
- package/types/components/Select/MultiSelect/index.d.ts +1 -1
- package/types/components/Select/SingleSelect/Option.d.ts +2 -2
- package/types/components/Select/SingleSelect/OptionList.d.ts +2 -2
- package/types/components/Select/SingleSelect/index.d.ts +1 -1
- package/types/components/Select/StyledOptionList.d.ts +4 -4
- package/types/components/Select/StyledSelect.d.ts +11 -11
- package/types/components/Select/helpers.d.ts +2 -2
- package/types/components/Select/index.d.ts +4 -3
- package/types/components/Select/types.d.ts +3 -3
- package/types/components/Spinner/AnimatedSpinner.d.ts +3 -1
- package/types/components/Spinner/StyledSpinner.d.ts +16 -13
- package/types/components/Spinner/index.d.ts +7 -3
- package/types/components/Switch/StyledSwitch.d.ts +8 -23
- package/types/components/Switch/__tests__/StyledSwitch.spec.d.ts +1 -0
- package/types/components/Switch/index.d.ts +3 -2
- package/types/components/Tabs/ScrollableTabs.d.ts +1 -1
- package/types/components/Tabs/StyledScrollableTabs.d.ts +24 -22
- package/types/components/Tabs/StyledTabs.d.ts +26 -20
- package/types/components/Tabs/TabWithBadge.d.ts +17 -0
- package/types/components/Tabs/__tests__/TabWithBadge.spec.d.ts +1 -0
- package/types/components/Tabs/index.d.ts +4 -2
- package/types/components/Tag/StyledTag.d.ts +6 -6
- package/types/components/Tag/index.d.ts +2 -2
- package/types/components/TextInput/StyledTextInput.d.ts +44 -44
- package/types/components/TextInput/index.d.ts +8 -8
- package/types/components/TimePicker/StyledTimePicker.d.ts +5 -4
- package/types/components/TimePicker/TimePickerAndroid.d.ts +1 -1
- package/types/components/TimePicker/TimePickerIOS.d.ts +1 -1
- package/types/components/TimePicker/index.d.ts +1 -1
- package/types/components/TimePicker/types.d.ts +1 -1
- package/types/components/Toast/StyledToast.d.ts +21 -19
- package/types/components/Toast/Toast.d.ts +1 -1
- package/types/components/Toast/ToastContainer.d.ts +2 -2
- package/types/components/Toast/ToastContext.d.ts +1 -1
- package/types/components/Toast/ToastProvider.d.ts +2 -2
- package/types/components/Toast/types.d.ts +5 -4
- package/types/components/Toolbar/StyledToolbar.d.ts +11 -10
- package/types/components/Toolbar/ToolbarGroup.d.ts +1 -1
- package/types/components/Toolbar/ToolbarItem.d.ts +1 -1
- package/types/components/Toolbar/index.d.ts +1 -1
- package/types/components/Typography/Text/StyledText.d.ts +4 -4
- package/types/components/Typography/Text/index.d.ts +3 -3
- package/types/index.d.ts +2 -1
- package/types/testHelpers/renderWithTheme.d.ts +2 -2
- package/types/theme/ThemeProvider.d.ts +1 -1
- package/types/theme/ThemeSwitcher.d.ts +1 -1
- package/types/theme/components/accordion.d.ts +1 -1
- package/types/theme/components/alert.d.ts +6 -2
- package/types/theme/components/avatar.d.ts +3 -1
- package/types/theme/components/badge.d.ts +1 -1
- package/types/theme/components/bottomNavigation.d.ts +1 -1
- package/types/theme/components/bottomSheet.d.ts +1 -1
- package/types/theme/components/button.d.ts +1 -1
- package/types/theme/components/calendar.d.ts +1 -1
- package/types/theme/components/card.d.ts +7 -8
- package/types/theme/components/checkbox.d.ts +10 -7
- package/types/theme/components/contentNavigator.d.ts +1 -1
- package/types/theme/components/divider.d.ts +1 -1
- package/types/theme/components/drawer.d.ts +1 -1
- package/types/theme/components/empty.d.ts +1 -1
- package/types/theme/components/fab.d.ts +1 -1
- package/types/theme/components/icon.d.ts +1 -1
- package/types/theme/components/list.d.ts +8 -7
- package/types/theme/components/pinInput.d.ts +1 -1
- package/types/theme/components/progress.d.ts +1 -1
- package/types/theme/components/radio.d.ts +1 -8
- package/types/theme/components/richTextEditor.d.ts +1 -1
- package/types/theme/components/sectionHeading.d.ts +1 -1
- package/types/theme/components/select.d.ts +1 -1
- package/types/theme/components/spinner.d.ts +18 -6
- package/types/theme/components/switch.d.ts +7 -6
- package/types/theme/components/tabs.d.ts +2 -1
- package/types/theme/components/tag.d.ts +3 -3
- package/types/theme/components/textInput.d.ts +1 -1
- package/types/theme/components/toast.d.ts +19 -3
- package/types/theme/components/toolbar.d.ts +1 -1
- package/types/theme/components/typography.d.ts +3 -1
- package/types/theme/getTheme.d.ts +2 -2
- package/types/theme/global/borders.d.ts +2 -1
- package/types/theme/global/colors/swag.d.ts +1 -1
- package/types/theme/global/colors/types.d.ts +17 -0
- package/types/theme/global/colors/work.d.ts +1 -1
- package/types/theme/global/index.d.ts +22 -3
- package/types/theme/global/scale.d.ts +2 -1
- package/types/theme/global/space.d.ts +2 -1
- package/types/theme/global/typography.d.ts +2 -1
- package/types/theme/index.d.ts +4 -2
- package/types/types.d.ts +9 -8
- package/types/utils/hooks.d.ts +1 -1
- package/src/components/Radio/__tests__/StyledRadio.spec.tsx +0 -43
- package/src/components/Radio/__tests__/__snapshots__/StyledRadio.spec.tsx.snap +0 -124
- package/src/components/Switch/__tests__/StyledHeading.spec.tsx +0 -42
|
@@ -1,10 +1,14 @@
|
|
|
1
|
-
import { ReactElement } from 'react';
|
|
2
|
-
import { ViewProps } from 'react-native';
|
|
1
|
+
import type { ReactElement } from 'react';
|
|
2
|
+
import type { ViewProps } from 'react-native';
|
|
3
3
|
interface SpinnerProps extends ViewProps {
|
|
4
|
+
/**
|
|
5
|
+
* Size of Spinner.
|
|
6
|
+
*/
|
|
7
|
+
size?: 'small' | 'medium';
|
|
4
8
|
/**
|
|
5
9
|
* Testing id of the component.
|
|
6
10
|
*/
|
|
7
11
|
testID?: string;
|
|
8
12
|
}
|
|
9
|
-
declare const Spinner: ({ testID, ...nativeProps }: SpinnerProps) => ReactElement;
|
|
13
|
+
declare const Spinner: ({ testID, size, ...nativeProps }: SpinnerProps) => ReactElement;
|
|
10
14
|
export default Spinner;
|
|
@@ -1,36 +1,21 @@
|
|
|
1
1
|
import { Animated, View } from 'react-native';
|
|
2
2
|
declare type ThemeSize = 'small' | 'medium';
|
|
3
|
+
export declare type Variant = 'checked' | 'unchecked' | 'disabled-checked' | 'disabled-unchecked';
|
|
3
4
|
declare const StyledWrapper: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
4
|
-
theme?: import("@emotion/react").Theme
|
|
5
|
-
as?: import("react").ElementType<any
|
|
5
|
+
theme?: import("@emotion/react").Theme;
|
|
6
|
+
as?: import("react").ElementType<any>;
|
|
6
7
|
} & {
|
|
7
|
-
|
|
8
|
+
themeVariant: Variant;
|
|
8
9
|
themeSize: ThemeSize;
|
|
9
10
|
}, {}, {
|
|
10
|
-
ref?: import("react").Ref<View
|
|
11
|
-
}>;
|
|
12
|
-
declare const StyledDisabledWrapper: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
13
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
14
|
-
as?: import("react").ElementType<any> | undefined;
|
|
15
|
-
} & {
|
|
16
|
-
themeSize: ThemeSize;
|
|
17
|
-
}, {}, {
|
|
18
|
-
ref?: import("react").Ref<View> | undefined;
|
|
19
|
-
}>;
|
|
20
|
-
declare const StyledThumbWrapper: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
21
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
22
|
-
as?: import("react").ElementType<any> | undefined;
|
|
23
|
-
} & {
|
|
24
|
-
themeSize: ThemeSize;
|
|
25
|
-
}, {}, {
|
|
26
|
-
ref?: import("react").Ref<View> | undefined;
|
|
11
|
+
ref?: import("react").Ref<View>;
|
|
27
12
|
}>;
|
|
28
13
|
declare const StyledKnot: import("@emotion/native").StyledComponent<Animated.AnimatedProps<import("react-native").ViewProps & import("react").RefAttributes<View>> & {
|
|
29
14
|
children?: import("react").ReactNode;
|
|
30
15
|
} & {
|
|
31
|
-
theme?: import("@emotion/react").Theme
|
|
32
|
-
as?: import("react").ElementType<any
|
|
16
|
+
theme?: import("@emotion/react").Theme;
|
|
17
|
+
as?: import("react").ElementType<any>;
|
|
33
18
|
} & {
|
|
34
19
|
themeSize: ThemeSize;
|
|
35
20
|
}, {}, {}>;
|
|
36
|
-
export { StyledWrapper,
|
|
21
|
+
export { StyledWrapper, StyledKnot };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ReactElement } from 'react';
|
|
2
|
-
import { StyleProp, ViewStyle } from 'react-native';
|
|
1
|
+
import type { ReactElement } from 'react';
|
|
2
|
+
import type { StyleProp, ViewStyle } from 'react-native';
|
|
3
3
|
export interface SwitchProps {
|
|
4
4
|
/**
|
|
5
5
|
* Control whether the switch is checked
|
|
@@ -15,6 +15,7 @@ export interface SwitchProps {
|
|
|
15
15
|
onPress?: () => void;
|
|
16
16
|
/**
|
|
17
17
|
* Size of the switch
|
|
18
|
+
* size is deprecated and will be removed in the next major release.
|
|
18
19
|
*/
|
|
19
20
|
size?: 'small' | 'medium';
|
|
20
21
|
/**
|
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
import { Animated, View } from 'react-native';
|
|
2
2
|
import PagerView from 'react-native-pager-view';
|
|
3
3
|
declare const TabScreen: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
4
|
-
theme?: import("@emotion/react").Theme
|
|
5
|
-
as?: import("react").ElementType<any
|
|
4
|
+
theme?: import("@emotion/react").Theme;
|
|
5
|
+
as?: import("react").ElementType<any>;
|
|
6
6
|
}, {}, {
|
|
7
|
-
ref?: import("react").Ref<View
|
|
7
|
+
ref?: import("react").Ref<View>;
|
|
8
8
|
}>;
|
|
9
9
|
declare const TabContainer: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
10
|
-
theme?: import("@emotion/react").Theme
|
|
11
|
-
as?: import("react").ElementType<any
|
|
10
|
+
theme?: import("@emotion/react").Theme;
|
|
11
|
+
as?: import("react").ElementType<any>;
|
|
12
12
|
}, {}, {
|
|
13
|
-
ref?: import("react").Ref<View
|
|
13
|
+
ref?: import("react").Ref<View>;
|
|
14
14
|
}>;
|
|
15
15
|
declare const ContentWrapper: import("@emotion/native").StyledComponent<import("react-native-pager-view").PagerViewProps & {
|
|
16
|
-
theme?: import("@emotion/react").Theme
|
|
17
|
-
as?: import("react").ElementType<any
|
|
16
|
+
theme?: import("@emotion/react").Theme;
|
|
17
|
+
as?: import("react").ElementType<any>;
|
|
18
18
|
}, {}, {
|
|
19
|
-
ref?: import("react").Ref<PagerView
|
|
19
|
+
ref?: import("react").Ref<PagerView>;
|
|
20
20
|
}>;
|
|
21
21
|
declare const HeaderTabWrapper: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
22
|
-
theme?: import("@emotion/react").Theme
|
|
23
|
-
as?: import("react").ElementType<any
|
|
22
|
+
theme?: import("@emotion/react").Theme;
|
|
23
|
+
as?: import("react").ElementType<any>;
|
|
24
24
|
} & {
|
|
25
25
|
themeInsets: {
|
|
26
26
|
top: number;
|
|
@@ -29,32 +29,34 @@ declare const HeaderTabWrapper: import("@emotion/native").StyledComponent<import
|
|
|
29
29
|
left: number;
|
|
30
30
|
};
|
|
31
31
|
}, {}, {
|
|
32
|
-
ref?: import("react").Ref<View
|
|
32
|
+
ref?: import("react").Ref<View>;
|
|
33
33
|
}>;
|
|
34
34
|
declare const HeaderTabItem: import("@emotion/native").StyledComponent<Animated.AnimatedProps<import("react-native").ViewProps & import("react").RefAttributes<View>> & {
|
|
35
35
|
children?: import("react").ReactNode;
|
|
36
36
|
} & {
|
|
37
|
-
theme?: import("@emotion/react").Theme
|
|
38
|
-
as?: import("react").ElementType<any
|
|
37
|
+
theme?: import("@emotion/react").Theme;
|
|
38
|
+
as?: import("react").ElementType<any>;
|
|
39
|
+
} & {
|
|
40
|
+
isFirstItem?: boolean;
|
|
39
41
|
}, {}, {}>;
|
|
40
42
|
declare const HeaderTabItemOutlineWrapper: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
41
|
-
theme?: import("@emotion/react").Theme
|
|
42
|
-
as?: import("react").ElementType<any
|
|
43
|
+
theme?: import("@emotion/react").Theme;
|
|
44
|
+
as?: import("react").ElementType<any>;
|
|
43
45
|
}, {}, {
|
|
44
|
-
ref?: import("react").Ref<View
|
|
46
|
+
ref?: import("react").Ref<View>;
|
|
45
47
|
}>;
|
|
46
48
|
declare const HeaderTabItemOutline: import("@emotion/native").StyledComponent<Animated.AnimatedProps<import("react-native").ViewProps & import("react").RefAttributes<View>> & {
|
|
47
49
|
children?: import("react").ReactNode;
|
|
48
50
|
} & {
|
|
49
|
-
theme?: import("@emotion/react").Theme
|
|
50
|
-
as?: import("react").ElementType<any
|
|
51
|
+
theme?: import("@emotion/react").Theme;
|
|
52
|
+
as?: import("react").ElementType<any>;
|
|
51
53
|
} & {
|
|
52
54
|
themeActive: boolean;
|
|
53
55
|
}, {}, {}>;
|
|
54
56
|
declare const HeaderTabItemWrapper: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
55
|
-
theme?: import("@emotion/react").Theme
|
|
56
|
-
as?: import("react").ElementType<any
|
|
57
|
+
theme?: import("@emotion/react").Theme;
|
|
58
|
+
as?: import("react").ElementType<any>;
|
|
57
59
|
}, {}, {
|
|
58
|
-
ref?: import("react").Ref<View
|
|
60
|
+
ref?: import("react").Ref<View>;
|
|
59
61
|
}>;
|
|
60
62
|
export { HeaderTabItem, TabScreen, TabContainer, HeaderTabWrapper, ContentWrapper, HeaderTabItemOutlineWrapper, HeaderTabItemOutline, HeaderTabItemWrapper, };
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { Animated, View } from 'react-native';
|
|
2
2
|
import PagerView from 'react-native-pager-view';
|
|
3
3
|
declare const TabContainer: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
4
|
-
theme?: import("@emotion/react").Theme
|
|
5
|
-
as?: import("react").ElementType<any
|
|
4
|
+
theme?: import("@emotion/react").Theme;
|
|
5
|
+
as?: import("react").ElementType<any>;
|
|
6
6
|
}, {}, {
|
|
7
|
-
ref?: import("react").Ref<View
|
|
7
|
+
ref?: import("react").Ref<View>;
|
|
8
8
|
}>;
|
|
9
9
|
declare const HeaderTabWrapper: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
10
|
-
theme?: import("@emotion/react").Theme
|
|
11
|
-
as?: import("react").ElementType<any
|
|
10
|
+
theme?: import("@emotion/react").Theme;
|
|
11
|
+
as?: import("react").ElementType<any>;
|
|
12
12
|
} & {
|
|
13
13
|
themeInsets: {
|
|
14
14
|
top: number;
|
|
@@ -17,38 +17,44 @@ declare const HeaderTabWrapper: import("@emotion/native").StyledComponent<import
|
|
|
17
17
|
left: number;
|
|
18
18
|
};
|
|
19
19
|
}, {}, {
|
|
20
|
-
ref?: import("react").Ref<View
|
|
20
|
+
ref?: import("react").Ref<View>;
|
|
21
21
|
}>;
|
|
22
22
|
declare const HeaderTab: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
23
|
-
theme?: import("@emotion/react").Theme
|
|
24
|
-
as?: import("react").ElementType<any
|
|
23
|
+
theme?: import("@emotion/react").Theme;
|
|
24
|
+
as?: import("react").ElementType<any>;
|
|
25
25
|
}, {}, {
|
|
26
|
-
ref?: import("react").Ref<View
|
|
26
|
+
ref?: import("react").Ref<View>;
|
|
27
27
|
}>;
|
|
28
28
|
declare const HeaderTabItem: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
29
|
-
theme?: import("@emotion/react").Theme
|
|
30
|
-
as?: import("react").ElementType<any
|
|
29
|
+
theme?: import("@emotion/react").Theme;
|
|
30
|
+
as?: import("react").ElementType<any>;
|
|
31
31
|
}, {}, {
|
|
32
|
-
ref?: import("react").Ref<View
|
|
32
|
+
ref?: import("react").Ref<View>;
|
|
33
33
|
}>;
|
|
34
34
|
declare const ContentWrapper: import("@emotion/native").StyledComponent<Animated.AnimatedProps<import("react-native-pager-view").PagerViewProps & import("react").RefAttributes<PagerView>> & {
|
|
35
35
|
children?: import("react").ReactNode;
|
|
36
36
|
} & {
|
|
37
|
-
theme?: import("@emotion/react").Theme
|
|
38
|
-
as?: import("react").ElementType<any
|
|
37
|
+
theme?: import("@emotion/react").Theme;
|
|
38
|
+
as?: import("react").ElementType<any>;
|
|
39
39
|
}, {}, {}>;
|
|
40
40
|
declare const TabScreen: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
41
|
-
theme?: import("@emotion/react").Theme
|
|
42
|
-
as?: import("react").ElementType<any
|
|
41
|
+
theme?: import("@emotion/react").Theme;
|
|
42
|
+
as?: import("react").ElementType<any>;
|
|
43
43
|
}, {}, {
|
|
44
|
-
ref?: import("react").Ref<View
|
|
44
|
+
ref?: import("react").Ref<View>;
|
|
45
45
|
}>;
|
|
46
46
|
declare const StyledIndicator: import("@emotion/native").StyledComponent<Animated.AnimatedProps<import("react-native").ViewProps & import("react").RefAttributes<View>> & {
|
|
47
47
|
children?: import("react").ReactNode;
|
|
48
48
|
} & {
|
|
49
|
-
theme?: import("@emotion/react").Theme
|
|
50
|
-
as?: import("react").ElementType<any
|
|
49
|
+
theme?: import("@emotion/react").Theme;
|
|
50
|
+
as?: import("react").ElementType<any>;
|
|
51
51
|
} & {
|
|
52
52
|
themeWidth: number;
|
|
53
53
|
}, {}, {}>;
|
|
54
|
-
|
|
54
|
+
declare const StyledBadgeWrapper: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
55
|
+
theme?: import("@emotion/react").Theme;
|
|
56
|
+
as?: import("react").ElementType<any>;
|
|
57
|
+
}, {}, {
|
|
58
|
+
ref?: import("react").Ref<View>;
|
|
59
|
+
}>;
|
|
60
|
+
export { TabContainer, HeaderTabWrapper, HeaderTab, HeaderTabItem, ContentWrapper, TabScreen, StyledIndicator, StyledBadgeWrapper, };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
export declare type StatusBadgeType = {
|
|
3
|
+
type: 'status';
|
|
4
|
+
};
|
|
5
|
+
export declare type CounterBadgeType = {
|
|
6
|
+
type: 'counter';
|
|
7
|
+
value: number;
|
|
8
|
+
max?: number;
|
|
9
|
+
};
|
|
10
|
+
export declare type BadgeConfigType = StatusBadgeType | CounterBadgeType;
|
|
11
|
+
interface TabWithBadgeProps {
|
|
12
|
+
showBadge?: boolean;
|
|
13
|
+
config?: BadgeConfigType;
|
|
14
|
+
tabItem: ReactNode;
|
|
15
|
+
}
|
|
16
|
+
declare const TabWithBadge: ({ showBadge, config, tabItem }: TabWithBadgeProps) => JSX.Element;
|
|
17
|
+
export default TabWithBadge;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
import { StyleProp, ViewStyle, ViewProps } from 'react-native';
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
import type { StyleProp, ViewStyle, ViewProps } from 'react-native';
|
|
3
|
+
import type { BadgeConfigType } from './TabWithBadge';
|
|
3
4
|
import { IconName } from '../Icon';
|
|
4
5
|
export declare type ItemType = string | IconName | ((props: {
|
|
5
6
|
color: string;
|
|
@@ -11,6 +12,7 @@ export declare type TabType = {
|
|
|
11
12
|
component: ReactNode;
|
|
12
13
|
testID?: string;
|
|
13
14
|
showBadge?: boolean;
|
|
15
|
+
badge?: BadgeConfigType;
|
|
14
16
|
};
|
|
15
17
|
export interface TabsProps extends ViewProps {
|
|
16
18
|
/**
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { View, Text } from 'react-native';
|
|
2
2
|
declare type ThemeIntent = 'default' | 'primary' | 'info' | 'success' | 'warning' | 'danger' | 'archived';
|
|
3
3
|
declare const StyledView: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
4
|
-
theme?: import("@emotion/react").Theme
|
|
5
|
-
as?: import("react").ElementType<any
|
|
4
|
+
theme?: import("@emotion/react").Theme;
|
|
5
|
+
as?: import("react").ElementType<any>;
|
|
6
6
|
} & {
|
|
7
7
|
themeIntent: ThemeIntent;
|
|
8
8
|
}, {}, {
|
|
9
|
-
ref?: import("react").Ref<View
|
|
9
|
+
ref?: import("react").Ref<View>;
|
|
10
10
|
}>;
|
|
11
11
|
declare const StyledText: import("@emotion/native").StyledComponent<import("react-native").TextProps & {
|
|
12
|
-
theme?: import("@emotion/react").Theme
|
|
13
|
-
as?: import("react").ElementType<any
|
|
12
|
+
theme?: import("@emotion/react").Theme;
|
|
13
|
+
as?: import("react").ElementType<any>;
|
|
14
14
|
} & {
|
|
15
15
|
themeIntent: ThemeIntent;
|
|
16
16
|
}, {}, {
|
|
17
|
-
ref?: import("react").Ref<Text
|
|
17
|
+
ref?: import("react").Ref<Text>;
|
|
18
18
|
}>;
|
|
19
19
|
export { StyledView, StyledText };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { StyleProp, ViewStyle, ViewProps } from 'react-native';
|
|
1
|
+
import type { StyleProp, ViewStyle, ViewProps } from 'react-native';
|
|
2
2
|
interface TagProps extends ViewProps {
|
|
3
3
|
/**
|
|
4
4
|
* Content of the Tag.
|
|
@@ -7,7 +7,7 @@ interface TagProps extends ViewProps {
|
|
|
7
7
|
/**
|
|
8
8
|
* Visual intent color to apply to Tag.
|
|
9
9
|
*/
|
|
10
|
-
intent?: '
|
|
10
|
+
intent?: 'primary' | 'default' | 'info' | 'success' | 'warning' | 'danger' | 'archived';
|
|
11
11
|
/**
|
|
12
12
|
* Additional style.
|
|
13
13
|
*/
|
|
@@ -1,103 +1,103 @@
|
|
|
1
1
|
import { TextInput, View } from 'react-native';
|
|
2
2
|
export declare type Variant = 'default' | 'filled' | 'focused' | 'disabled' | 'readonly' | 'error';
|
|
3
3
|
declare const StyledContainer: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
4
|
-
theme?: import("@emotion/react").Theme
|
|
5
|
-
as?: import("react").ElementType<any
|
|
4
|
+
theme?: import("@emotion/react").Theme;
|
|
5
|
+
as?: import("react").ElementType<any>;
|
|
6
6
|
}, {}, {
|
|
7
|
-
ref?: import("react").Ref<View
|
|
7
|
+
ref?: import("react").Ref<View>;
|
|
8
8
|
}>;
|
|
9
9
|
declare const StyledLabelContainer: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
10
|
-
theme?: import("@emotion/react").Theme
|
|
11
|
-
as?: import("react").ElementType<any
|
|
10
|
+
theme?: import("@emotion/react").Theme;
|
|
11
|
+
as?: import("react").ElementType<any>;
|
|
12
12
|
}, {}, {
|
|
13
|
-
ref?: import("react").Ref<View
|
|
13
|
+
ref?: import("react").Ref<View>;
|
|
14
14
|
}>;
|
|
15
15
|
declare const StyledLabel: import("@emotion/native").StyledComponent<import("../Typography/Text").TextProps & {
|
|
16
|
-
theme?: import("@emotion/react").Theme
|
|
17
|
-
as?: import("react").ElementType<any
|
|
16
|
+
theme?: import("@emotion/react").Theme;
|
|
17
|
+
as?: import("react").ElementType<any>;
|
|
18
18
|
} & {
|
|
19
19
|
themeVariant: Variant;
|
|
20
20
|
}, {}, {}>;
|
|
21
21
|
declare const StyledAsteriskLabel: import("@emotion/native").StyledComponent<import("../Typography/Text").TextProps & {
|
|
22
|
-
theme?: import("@emotion/react").Theme
|
|
23
|
-
as?: import("react").ElementType<any
|
|
22
|
+
theme?: import("@emotion/react").Theme;
|
|
23
|
+
as?: import("react").ElementType<any>;
|
|
24
24
|
} & {
|
|
25
25
|
themeVariant: Variant;
|
|
26
26
|
}, {}, {}>;
|
|
27
27
|
declare const StyledLabelContainerInsideTextInput: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
28
|
-
theme?: import("@emotion/react").Theme
|
|
29
|
-
as?: import("react").ElementType<any
|
|
28
|
+
theme?: import("@emotion/react").Theme;
|
|
29
|
+
as?: import("react").ElementType<any>;
|
|
30
30
|
}, {}, {
|
|
31
|
-
ref?: import("react").Ref<View
|
|
31
|
+
ref?: import("react").Ref<View>;
|
|
32
32
|
}>;
|
|
33
33
|
declare const StyledLabelInsideTextInput: import("@emotion/native").StyledComponent<import("../Typography/Text").TextProps & {
|
|
34
|
-
theme?: import("@emotion/react").Theme
|
|
35
|
-
as?: import("react").ElementType<any
|
|
34
|
+
theme?: import("@emotion/react").Theme;
|
|
35
|
+
as?: import("react").ElementType<any>;
|
|
36
36
|
} & {
|
|
37
37
|
themeVariant: Variant;
|
|
38
38
|
}, {}, {}>;
|
|
39
39
|
declare const StyledAsteriskLabelInsideTextInput: import("@emotion/native").StyledComponent<import("../Typography/Text").TextProps & {
|
|
40
|
-
theme?: import("@emotion/react").Theme
|
|
41
|
-
as?: import("react").ElementType<any
|
|
40
|
+
theme?: import("@emotion/react").Theme;
|
|
41
|
+
as?: import("react").ElementType<any>;
|
|
42
42
|
} & {
|
|
43
43
|
themeVariant: Variant;
|
|
44
44
|
}, {}, {}>;
|
|
45
45
|
declare const StyledErrorContainer: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
46
|
-
theme?: import("@emotion/react").Theme
|
|
47
|
-
as?: import("react").ElementType<any
|
|
46
|
+
theme?: import("@emotion/react").Theme;
|
|
47
|
+
as?: import("react").ElementType<any>;
|
|
48
48
|
}, {}, {
|
|
49
|
-
ref?: import("react").Ref<View
|
|
49
|
+
ref?: import("react").Ref<View>;
|
|
50
50
|
}>;
|
|
51
51
|
declare const StyledError: import("@emotion/native").StyledComponent<import("../Typography/Text").TextProps & {
|
|
52
|
-
theme?: import("@emotion/react").Theme
|
|
53
|
-
as?: import("react").ElementType<any
|
|
52
|
+
theme?: import("@emotion/react").Theme;
|
|
53
|
+
as?: import("react").ElementType<any>;
|
|
54
54
|
}, {}, {}>;
|
|
55
55
|
declare const StyledMaxLengthMessage: import("@emotion/native").StyledComponent<import("../Typography/Text").TextProps & {
|
|
56
|
-
theme?: import("@emotion/react").Theme
|
|
57
|
-
as?: import("react").ElementType<any
|
|
56
|
+
theme?: import("@emotion/react").Theme;
|
|
57
|
+
as?: import("react").ElementType<any>;
|
|
58
58
|
} & {
|
|
59
59
|
themeVariant: Variant;
|
|
60
60
|
}, {}, {}>;
|
|
61
61
|
declare const StyledHelperText: import("@emotion/native").StyledComponent<import("../Typography/Text").TextProps & {
|
|
62
|
-
theme?: import("@emotion/react").Theme
|
|
63
|
-
as?: import("react").ElementType<any
|
|
62
|
+
theme?: import("@emotion/react").Theme;
|
|
63
|
+
as?: import("react").ElementType<any>;
|
|
64
64
|
}, {}, {}>;
|
|
65
65
|
declare const StyledTextInput: import("@emotion/native").StyledComponent<import("react-native").TextInputProps & {
|
|
66
|
-
theme?: import("@emotion/react").Theme
|
|
67
|
-
as?: import("react").ElementType<any
|
|
66
|
+
theme?: import("@emotion/react").Theme;
|
|
67
|
+
as?: import("react").ElementType<any>;
|
|
68
68
|
}, {}, {
|
|
69
|
-
ref?: import("react").Ref<TextInput
|
|
69
|
+
ref?: import("react").Ref<TextInput>;
|
|
70
70
|
}>;
|
|
71
71
|
declare const StyledBorderBackDrop: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
72
|
-
theme?: import("@emotion/react").Theme
|
|
73
|
-
as?: import("react").ElementType<any
|
|
72
|
+
theme?: import("@emotion/react").Theme;
|
|
73
|
+
as?: import("react").ElementType<any>;
|
|
74
74
|
} & {
|
|
75
75
|
themeVariant: Variant;
|
|
76
76
|
}, {}, {
|
|
77
|
-
ref?: import("react").Ref<View
|
|
77
|
+
ref?: import("react").Ref<View>;
|
|
78
78
|
}>;
|
|
79
79
|
declare const StyledTextInputContainer: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
80
|
-
theme?: import("@emotion/react").Theme
|
|
81
|
-
as?: import("react").ElementType<any
|
|
80
|
+
theme?: import("@emotion/react").Theme;
|
|
81
|
+
as?: import("react").ElementType<any>;
|
|
82
82
|
}, {}, {
|
|
83
|
-
ref?: import("react").Ref<View
|
|
83
|
+
ref?: import("react").Ref<View>;
|
|
84
84
|
}>;
|
|
85
85
|
declare const StyledTextInputAndLabelContainer: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
86
|
-
theme?: import("@emotion/react").Theme
|
|
87
|
-
as?: import("react").ElementType<any
|
|
86
|
+
theme?: import("@emotion/react").Theme;
|
|
87
|
+
as?: import("react").ElementType<any>;
|
|
88
88
|
}, {}, {
|
|
89
|
-
ref?: import("react").Ref<View
|
|
89
|
+
ref?: import("react").Ref<View>;
|
|
90
90
|
}>;
|
|
91
91
|
declare const StyledErrorAndHelpTextContainer: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
92
|
-
theme?: import("@emotion/react").Theme
|
|
93
|
-
as?: import("react").ElementType<any
|
|
92
|
+
theme?: import("@emotion/react").Theme;
|
|
93
|
+
as?: import("react").ElementType<any>;
|
|
94
94
|
}, {}, {
|
|
95
|
-
ref?: import("react").Ref<View
|
|
95
|
+
ref?: import("react").Ref<View>;
|
|
96
96
|
}>;
|
|
97
97
|
declare const StyledErrorAndMaxLengthContainer: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
98
|
-
theme?: import("@emotion/react").Theme
|
|
99
|
-
as?: import("react").ElementType<any
|
|
98
|
+
theme?: import("@emotion/react").Theme;
|
|
99
|
+
as?: import("react").ElementType<any>;
|
|
100
100
|
}, {}, {
|
|
101
|
-
ref?: import("react").Ref<View
|
|
101
|
+
ref?: import("react").Ref<View>;
|
|
102
102
|
}>;
|
|
103
103
|
export { StyledTextInputContainer, StyledLabel, StyledLabelContainer, StyledAsteriskLabel, StyledAsteriskLabelInsideTextInput, StyledTextInput, StyledError, StyledMaxLengthMessage, StyledLabelInsideTextInput, StyledContainer, StyledErrorContainer, StyledHelperText, StyledTextInputAndLabelContainer, StyledLabelContainerInsideTextInput, StyledErrorAndHelpTextContainer, StyledBorderBackDrop, StyledErrorAndMaxLengthContainer, };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { TextInputProps as NativeTextInputProps, StyleProp, ViewStyle, TextStyle } from 'react-native';
|
|
3
|
-
import { Variant } from './StyledTextInput';
|
|
4
|
-
import { IconName } from '../Icon';
|
|
2
|
+
import type { TextInputProps as NativeTextInputProps, StyleProp, ViewStyle, TextStyle } from 'react-native';
|
|
3
|
+
import type { Variant } from './StyledTextInput';
|
|
4
|
+
import type { IconName } from '../Icon';
|
|
5
5
|
export interface TextInputProps extends NativeTextInputProps {
|
|
6
6
|
/**
|
|
7
7
|
* Field label.
|
|
@@ -53,12 +53,12 @@ export interface TextInputProps extends NativeTextInputProps {
|
|
|
53
53
|
helpText?: string;
|
|
54
54
|
}
|
|
55
55
|
export declare const getVariant: ({ disabled, error, editable, loading, isFocused, isEmptyValue, }: {
|
|
56
|
-
disabled?: boolean
|
|
57
|
-
error?: string
|
|
58
|
-
editable?: boolean
|
|
56
|
+
disabled?: boolean;
|
|
57
|
+
error?: string;
|
|
58
|
+
editable?: boolean;
|
|
59
59
|
loading: boolean;
|
|
60
|
-
isFocused?: boolean
|
|
61
|
-
isEmptyValue?: boolean
|
|
60
|
+
isFocused?: boolean;
|
|
61
|
+
isEmptyValue?: boolean;
|
|
62
62
|
}) => Variant;
|
|
63
63
|
declare const TextInput: ({ label, prefix, suffix, style, textStyle, testID, accessibilityLabelledBy, error, required, editable, disabled, loading, maxLength, helpText, value, defaultValue, ...nativeProps }: TextInputProps) => JSX.Element;
|
|
64
64
|
export default TextInput;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { View
|
|
1
|
+
import { View } from 'react-native';
|
|
2
|
+
import type { ViewProps } from 'react-native';
|
|
2
3
|
declare const StyledPickerWrapper: import("@emotion/native").StyledComponent<ViewProps & {
|
|
3
|
-
theme?: import("@emotion/react").Theme
|
|
4
|
-
as?: import("react").ElementType<any
|
|
4
|
+
theme?: import("@emotion/react").Theme;
|
|
5
|
+
as?: import("react").ElementType<any>;
|
|
5
6
|
}, {}, {
|
|
6
|
-
ref?: import("react").Ref<View
|
|
7
|
+
ref?: import("react").Ref<View>;
|
|
7
8
|
}>;
|
|
8
9
|
export { StyledPickerWrapper };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { TimePickerProps } from './types';
|
|
1
|
+
import type { TimePickerProps } from './types';
|
|
2
2
|
declare const TimePickerAndroid: ({ value, label, placeholder, onChange, displayFormat, disabled, required, error, helpText, style, testID, }: TimePickerProps) => JSX.Element;
|
|
3
3
|
export default TimePickerAndroid;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { TimePickerProps } from './types';
|
|
1
|
+
import type { TimePickerProps } from './types';
|
|
2
2
|
declare const TimePickerIOS: ({ value, label, placeholder, onChange, confirmLabel, displayFormat, disabled, required, error, helpText, style, testID, }: TimePickerProps) => JSX.Element;
|
|
3
3
|
export default TimePickerIOS;
|
|
@@ -1,45 +1,47 @@
|
|
|
1
|
-
import { Animated, TouchableOpacity, View
|
|
1
|
+
import { Animated, TouchableOpacity, View } from 'react-native';
|
|
2
|
+
import type { ViewProps } from 'react-native';
|
|
3
|
+
import { IntentType } from './types';
|
|
2
4
|
declare const ToastContainerWrapper: import("@emotion/native").StyledComponent<ViewProps & {
|
|
3
|
-
theme?: import("@emotion/react").Theme
|
|
4
|
-
as?: import("react").ElementType<any
|
|
5
|
+
theme?: import("@emotion/react").Theme;
|
|
6
|
+
as?: import("react").ElementType<any>;
|
|
5
7
|
} & {
|
|
6
8
|
position: 'top' | 'bottom';
|
|
7
9
|
}, {}, {
|
|
8
|
-
ref?: import("react").Ref<View
|
|
10
|
+
ref?: import("react").Ref<View>;
|
|
9
11
|
}>;
|
|
10
12
|
declare const Container: import("@emotion/native").StyledComponent<Animated.AnimatedProps<ViewProps & import("react").RefAttributes<View>> & {
|
|
11
13
|
children?: import("react").ReactNode;
|
|
12
14
|
} & {
|
|
13
|
-
theme?: import("@emotion/react").Theme
|
|
14
|
-
as?: import("react").ElementType<any
|
|
15
|
+
theme?: import("@emotion/react").Theme;
|
|
16
|
+
as?: import("react").ElementType<any>;
|
|
15
17
|
} & {
|
|
16
18
|
themeVariant: 'default' | 'round';
|
|
17
|
-
themeIntent:
|
|
19
|
+
themeIntent: IntentType;
|
|
18
20
|
}, {}, {}>;
|
|
19
21
|
declare const IconContainer: import("@emotion/native").StyledComponent<ViewProps & {
|
|
20
|
-
theme?: import("@emotion/react").Theme
|
|
21
|
-
as?: import("react").ElementType<any
|
|
22
|
+
theme?: import("@emotion/react").Theme;
|
|
23
|
+
as?: import("react").ElementType<any>;
|
|
22
24
|
}, {}, {
|
|
23
|
-
ref?: import("react").Ref<View
|
|
25
|
+
ref?: import("react").Ref<View>;
|
|
24
26
|
}>;
|
|
25
27
|
declare const TextContainer: import("@emotion/native").StyledComponent<ViewProps & {
|
|
26
|
-
theme?: import("@emotion/react").Theme
|
|
27
|
-
as?: import("react").ElementType<any
|
|
28
|
+
theme?: import("@emotion/react").Theme;
|
|
29
|
+
as?: import("react").ElementType<any>;
|
|
28
30
|
}, {}, {
|
|
29
|
-
ref?: import("react").Ref<View
|
|
31
|
+
ref?: import("react").Ref<View>;
|
|
30
32
|
}>;
|
|
31
33
|
declare const ContentContainer: import("@emotion/native").StyledComponent<ViewProps & {
|
|
32
|
-
theme?: import("@emotion/react").Theme
|
|
33
|
-
as?: import("react").ElementType<any
|
|
34
|
+
theme?: import("@emotion/react").Theme;
|
|
35
|
+
as?: import("react").ElementType<any>;
|
|
34
36
|
} & {
|
|
35
37
|
showDivider: boolean;
|
|
36
38
|
}, {}, {
|
|
37
|
-
ref?: import("react").Ref<View
|
|
39
|
+
ref?: import("react").Ref<View>;
|
|
38
40
|
}>;
|
|
39
41
|
declare const CTAWrapper: import("@emotion/native").StyledComponent<import("react-native").TouchableOpacityProps & {
|
|
40
|
-
theme?: import("@emotion/react").Theme
|
|
41
|
-
as?: import("react").ElementType<any
|
|
42
|
+
theme?: import("@emotion/react").Theme;
|
|
43
|
+
as?: import("react").ElementType<any>;
|
|
42
44
|
}, {}, {
|
|
43
|
-
ref?: import("react").Ref<TouchableOpacity
|
|
45
|
+
ref?: import("react").Ref<TouchableOpacity>;
|
|
44
46
|
}>;
|
|
45
47
|
export { ToastContainerWrapper, Container, ContentContainer, TextContainer, IconContainer, CTAWrapper, };
|