@hero-design/rn 7.6.1-alpha.0 → 7.8.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/.expo/README.md +15 -0
- package/.expo/packager-info.json +10 -0
- package/.expo/prebuild/cached-packages.json +4 -0
- package/.expo/settings.json +10 -0
- package/.expo/xcodebuild-error.log +2 -0
- package/.expo/xcodebuild.log +11199 -0
- package/.turbo/turbo-build.log +2 -2
- package/.turbo/turbo-publish:npm.log +0 -0
- package/es/index.js +4528 -432
- package/lib/index.js +4616 -516
- package/package.json +6 -8
- package/rollup.config.js +1 -7
- package/src/components/Alert/__tests__/__snapshots__/index.spec.tsx.snap +2 -2
- package/src/components/Avatar/index.tsx +1 -1
- package/src/components/Button/Button.tsx +4 -2
- package/src/components/Button/LoadingIndicator/StyledLoadingIndicator.tsx +7 -2
- package/src/components/Button/LoadingIndicator/__tests__/StyledLoadingIndicator.spec.tsx +2 -0
- package/src/components/Button/LoadingIndicator/__tests__/__snapshots__/StyledLoadingIndicator.spec.tsx.snap +40 -0
- package/src/components/Button/LoadingIndicator/__tests__/__snapshots__/index.spec.tsx.snap +242 -0
- package/src/components/Button/LoadingIndicator/__tests__/index.spec.tsx +2 -0
- package/src/components/Button/LoadingIndicator/index.tsx +3 -1
- package/src/components/Button/StyledButton.tsx +15 -2
- package/src/components/Button/__tests__/Button.spec.tsx +2 -0
- package/src/components/Button/__tests__/StyledButton.spec.tsx +12 -0
- package/src/components/Button/__tests__/__snapshots__/StyledButton.spec.tsx.snap +314 -0
- package/src/components/Card/DataCard/StyledDataCard.tsx +20 -0
- package/src/components/Card/DataCard/__tests__/StyledDataCard.spec.tsx +24 -0
- package/src/components/Card/DataCard/__tests__/__snapshots__/StyledDataCard.spec.tsx.snap +97 -0
- package/src/components/Card/DataCard/__tests__/__snapshots__/index.spec.tsx.snap +156 -0
- package/src/components/Card/DataCard/__tests__/index.spec.tsx +30 -0
- package/src/components/Card/DataCard/index.tsx +35 -0
- package/src/components/Card/index.tsx +7 -2
- package/src/components/Checkbox/StyledCheckbox.tsx +18 -0
- package/src/components/Checkbox/__tests__/StyledCheckbox.spec.tsx +10 -0
- package/src/components/Checkbox/__tests__/__snapshots__/StyledCheckbox.spec.tsx.snap +31 -0
- package/src/components/Checkbox/__tests__/__snapshots__/index.spec.tsx.snap +63 -0
- package/src/components/Checkbox/__tests__/index.spec.tsx +24 -0
- package/src/components/Checkbox/index.tsx +58 -0
- package/src/components/Collapse/index.tsx +1 -1
- package/src/components/Icon/index.tsx +1 -1
- package/src/components/List/BasicListItem.tsx +98 -0
- package/src/components/List/ListItem.tsx +142 -0
- package/src/components/List/StyledBasicListItem.tsx +34 -0
- package/src/components/List/StyledListItem.tsx +82 -0
- package/src/components/List/__tests__/BasicListItem.spec.tsx +37 -0
- package/src/components/List/__tests__/ListItem.spec.tsx +110 -0
- package/src/components/List/__tests__/StyledBasicListItem.spec.tsx +24 -0
- package/src/components/List/__tests__/StyledListItem.spec.tsx +48 -0
- package/src/components/List/__tests__/__snapshots__/BasicListItem.spec.tsx.snap +103 -0
- package/src/components/List/__tests__/__snapshots__/ListItem.spec.tsx.snap +760 -0
- package/src/components/List/__tests__/__snapshots__/StyledBasicListItem.spec.tsx.snap +105 -0
- package/src/components/List/__tests__/__snapshots__/StyledListItem.spec.tsx.snap +200 -0
- package/src/components/List/index.tsx +14 -0
- package/src/components/SectionHeading/index.tsx +1 -1
- package/src/components/Select/Footer.tsx +13 -0
- package/src/components/Select/MultiSelect/Option.tsx +25 -0
- package/src/components/Select/MultiSelect/OptionList.tsx +30 -63
- package/src/components/Select/MultiSelect/__tests__/Option.spec.tsx +16 -0
- package/src/components/Select/MultiSelect/__tests__/OptionList.spec.tsx +42 -0
- package/src/components/Select/MultiSelect/__tests__/__snapshots__/Option.spec.tsx.snap +70 -0
- package/src/components/Select/MultiSelect/__tests__/__snapshots__/OptionList.spec.tsx.snap +627 -0
- package/src/components/Select/MultiSelect/__tests__/index.spec.tsx +6 -6
- package/src/components/Select/MultiSelect/index.tsx +8 -7
- package/src/components/Select/SingleSelect/Option.tsx +23 -0
- package/src/components/Select/SingleSelect/OptionList.tsx +43 -0
- package/src/components/Select/SingleSelect/__tests__/Option.spec.tsx +16 -0
- package/src/components/Select/SingleSelect/__tests__/OptionList.spec.tsx +42 -0
- package/src/components/Select/SingleSelect/__tests__/__snapshots__/Option.spec.tsx.snap +56 -0
- package/src/components/Select/SingleSelect/__tests__/__snapshots__/OptionList.spec.tsx.snap +571 -0
- package/src/components/Select/SingleSelect/__tests__/__snapshots__/index.spec.tsx.snap +1430 -0
- package/src/components/Select/SingleSelect/__tests__/index.spec.tsx +89 -0
- package/src/components/Select/SingleSelect/index.tsx +89 -0
- package/src/components/Select/{MultiSelect/StyledMultiSelect.tsx → StyledSelect.tsx} +1 -1
- package/src/components/Select/{MultiSelect/__tests__/StyledMultiSelect.spec.tsx → __tests__/StyledSelect.spec.tsx} +2 -2
- package/src/components/Select/{MultiSelect/__tests__/__snapshots__/StyledMultiSelect.spec.tsx.snap → __tests__/__snapshots__/StyledSelect.spec.tsx.snap} +0 -0
- package/src/components/Select/helpers.tsx +18 -0
- package/src/components/Select/index.tsx +4 -3
- package/src/components/Select/{MultiSelect/types.ts → types.ts} +0 -0
- package/src/components/Switch/index.tsx +1 -1
- package/src/components/Toast/StyledToast.tsx +65 -0
- package/src/components/Toast/Toast.tsx +123 -0
- package/src/components/Toast/ToastContainer.tsx +88 -0
- package/src/components/Toast/ToastContext.ts +25 -0
- package/src/components/Toast/ToastProvider.tsx +53 -0
- package/src/components/Toast/__tests__/Toast.spec.tsx +125 -0
- package/src/components/Toast/__tests__/ToastContainer.spec.tsx +107 -0
- package/src/components/Toast/__tests__/__snapshots__/Toast.spec.tsx.snap +655 -0
- package/src/components/Toast/__tests__/__snapshots__/ToastContainer.spec.tsx.snap +93 -0
- package/src/components/Toast/index.tsx +11 -0
- package/src/components/Toast/types.ts +70 -0
- package/src/components/Toolbar/StyledToolbar.tsx +42 -0
- package/src/components/Toolbar/ToolbarGroup.tsx +31 -0
- package/src/components/Toolbar/ToolbarItem.tsx +57 -0
- package/src/components/Toolbar/__tests__/ToolbarGroup.spec.tsx +32 -0
- package/src/components/Toolbar/__tests__/ToolbarItem.spec.tsx +57 -0
- package/src/components/Toolbar/__tests__/__snapshots__/ToolbarGroup.spec.tsx.snap +391 -0
- package/src/components/Toolbar/__tests__/__snapshots__/ToolbarItem.spec.tsx.snap +355 -0
- package/src/components/Toolbar/index.tsx +18 -0
- package/src/components/Typography/Text/StyledText.tsx +8 -1
- package/src/components/Typography/Text/__tests__/StyledText.spec.tsx +5 -0
- package/src/components/Typography/Text/__tests__/__snapshots__/StyledText.spec.tsx.snap +110 -0
- package/src/components/Typography/Text/index.tsx +9 -2
- package/src/index.ts +8 -0
- package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +119 -2
- package/src/theme/components/button.ts +2 -0
- package/src/theme/components/card.ts +8 -1
- package/src/theme/components/checkbox.ts +37 -0
- package/src/theme/components/list.ts +46 -0
- package/src/theme/components/toast.ts +33 -0
- package/src/theme/components/toolbar.ts +27 -0
- package/src/theme/components/typography.ts +4 -0
- package/src/theme/global/colors.ts +9 -2
- package/src/theme/global/space.ts +2 -0
- package/src/theme/index.ts +12 -0
- package/tsconfig.json +1 -2
- package/types/components/Alert/StyledAlert.d.ts +0 -0
- package/types/components/Alert/__tests__/index.spec.d.ts +0 -0
- package/types/components/Alert/index.d.ts +0 -0
- package/types/components/Avatar/index.d.ts +1 -1
- package/types/components/Button/Button.d.ts +2 -2
- package/types/components/Button/LoadingIndicator/StyledLoadingIndicator.d.ts +1 -1
- package/types/components/Button/LoadingIndicator/index.d.ts +1 -1
- package/types/components/Button/StyledButton.d.ts +2 -2
- package/{es/components/Card/StyledCard.d.ts → types/components/Card/DataCard/StyledDataCard.d.ts} +5 -6
- package/{es/components/Avatar/__tests__/StyledAvatar.spec.d.ts → types/components/Card/DataCard/__tests__/StyledDataCard.spec.d.ts} +0 -0
- package/{es/components/Avatar → types/components/Card/DataCard}/__tests__/index.spec.d.ts +0 -0
- package/types/components/Card/DataCard/index.d.ts +22 -0
- package/types/components/Card/index.d.ts +7 -3
- package/types/components/Checkbox/StyledCheckbox.d.ts +0 -0
- package/types/components/Checkbox/__tests__/StyledCheckbox.spec.d.ts +0 -0
- package/types/components/Checkbox/__tests__/index.spec.d.ts +0 -0
- package/types/components/Checkbox/index.d.ts +1 -1
- package/types/components/Collapse/index.d.ts +1 -1
- package/types/components/Icon/index.d.ts +1 -1
- package/types/components/List/BasicListItem.d.ts +43 -0
- package/types/components/List/ListItem.d.ts +51 -0
- package/types/components/List/StyledBasicListItem.d.ts +29 -0
- package/types/components/List/StyledListItem.d.ts +51 -0
- package/{es/components/Badge/__tests__/Badge.spec.d.ts → types/components/List/__tests__/BasicListItem.spec.d.ts} +0 -0
- package/{es/components/Badge/__tests__/Status.spec.d.ts → types/components/List/__tests__/ListItem.spec.d.ts} +0 -0
- package/{es/components/BottomNavigation/__tests__/index.spec.d.ts → types/components/List/__tests__/StyledBasicListItem.spec.d.ts} +0 -0
- package/{es/components/Button/__tests__/index.spec.d.ts → types/components/List/__tests__/StyledListItem.spec.d.ts} +0 -0
- package/types/components/List/index.d.ts +8 -0
- package/types/components/Radio/types.d.ts +0 -0
- package/types/components/SectionHeading/__tests__/StyledHeading.spec.d.ts +0 -0
- package/types/components/SectionHeading/index.d.ts +1 -1
- package/types/components/Select/Footer.d.ts +5 -0
- package/types/components/Select/MultiSelect/Footer.d.ts +0 -0
- package/types/components/Select/MultiSelect/Option.d.ts +6 -0
- package/types/components/Select/MultiSelect/OptionList.d.ts +7 -1
- package/types/components/Select/MultiSelect/StyledMultiSelect.d.ts +0 -0
- package/{es/components/Card/__tests__/StyledCard.spec.d.ts → types/components/Select/MultiSelect/__tests__/Option.spec.d.ts} +0 -0
- package/{es/components/Card/__tests__/index.spec.d.ts → types/components/Select/MultiSelect/__tests__/OptionList.spec.d.ts} +0 -0
- package/types/components/Select/MultiSelect/__tests__/StyledMultiSelect.spec.d.ts +0 -0
- package/types/components/Select/MultiSelect/__tests__/index.spec.d.ts +0 -0
- package/types/components/Select/MultiSelect/index.d.ts +4 -4
- package/types/components/Select/MultiSelect/types.d.ts +0 -0
- package/types/components/Select/SingleSelect/Option.d.ts +6 -0
- package/types/components/Select/SingleSelect/OptionList.d.ts +9 -0
- package/{es/components/Collapse/__tests__/StyledCollapse.spec.d.ts → types/components/Select/SingleSelect/__tests__/Option.spec.d.ts} +0 -0
- package/{es/components/Collapse/__tests__/index.spec.d.ts → types/components/Select/SingleSelect/__tests__/OptionList.spec.d.ts} +0 -0
- package/{es/components/Drawer → types/components/Select/SingleSelect}/__tests__/index.spec.d.ts +0 -0
- package/types/components/Select/SingleSelect/index.d.ts +35 -0
- package/types/components/Select/StyledSelect.d.ts +26 -0
- package/{es/components/Divider/__tests__/StyledDivider.spec.d.ts → types/components/Select/__tests__/StyledSelect.spec.d.ts} +0 -0
- package/types/components/Select/helpers.d.ts +2 -0
- package/types/components/Select/index.d.ts +3 -3
- package/types/components/Select/types.d.ts +5 -0
- package/types/components/Switch/StyledSwitch.d.ts +0 -0
- package/types/components/Switch/__tests__/StyledHeading.spec.d.ts +0 -0
- package/types/components/Switch/__tests__/index.spec.d.ts +0 -0
- package/types/components/Switch/index.d.ts +1 -1
- package/types/components/Toast/StyledToast.d.ts +45 -0
- package/types/components/Toast/Toast.d.ts +3 -0
- package/types/components/Toast/ToastContainer.d.ts +5 -0
- package/types/components/Toast/ToastContext.d.ts +11 -0
- package/types/components/Toast/ToastProvider.d.ts +10 -0
- package/{es/components/FAB/__tests__/AnimatedFABIcon.spec.d.ts → types/components/Toast/__tests__/Toast.spec.d.ts} +0 -0
- package/{es/components/FAB/__tests__/StyledFAB.spec.d.ts → types/components/Toast/__tests__/ToastContainer.spec.d.ts} +0 -0
- package/types/components/Toast/index.d.ts +8 -0
- package/types/components/Toast/types.d.ts +67 -0
- package/types/components/Toolbar/StyledToolbar.d.ts +22 -0
- package/types/components/Toolbar/ToolbarGroup.d.ts +13 -0
- package/types/components/Toolbar/ToolbarItem.d.ts +25 -0
- package/{es/components/FAB/__tests__/index.spec.d.ts → types/components/Toolbar/__tests__/ToolbarGroup.spec.d.ts} +0 -0
- package/{es/components/Icon/__tests__/index.spec.d.ts → types/components/Toolbar/__tests__/ToolbarItem.spec.d.ts} +0 -0
- package/types/components/Toolbar/index.d.ts +11 -0
- package/types/components/Typography/Text/StyledText.d.ts +1 -1
- package/types/components/Typography/Text/index.d.ts +2 -2
- package/types/index.d.ts +5 -1
- package/types/theme/components/alert.d.ts +0 -0
- package/types/theme/components/button.d.ts +2 -0
- package/types/theme/components/card.d.ts +7 -0
- package/types/theme/components/checkbox.d.ts +0 -0
- package/types/theme/components/list.d.ts +40 -0
- package/types/theme/components/sectionHeading.d.ts +0 -0
- package/types/theme/components/select.d.ts +0 -0
- package/types/theme/components/switch.d.ts +0 -0
- package/types/theme/components/toast.d.ts +24 -0
- package/types/theme/components/toolbar.d.ts +21 -0
- package/types/theme/components/typography.d.ts +4 -0
- package/types/theme/global/colors.d.ts +5 -0
- package/types/theme/global/index.d.ts +5 -0
- package/types/theme/global/space.d.ts +1 -0
- package/types/theme/index.d.ts +8 -0
- package/.turbo/turbo-build:types.log +0 -2
- package/.turbo/turbo-build:watch.log +0 -1
- package/.turbo/turbo-lint.log +0 -2
- package/.turbo/turbo-type-check.log +0 -2
- package/es/components/Avatar/StyledAvatar.d.ts +0 -46
- package/es/components/Avatar/index.d.ts +0 -25
- package/es/components/Badge/Status.d.ts +0 -24
- package/es/components/Badge/StyledBadge.d.ts +0 -28
- package/es/components/Badge/index.d.ts +0 -32
- package/es/components/BottomNavigation/StyledBottomNavigation.d.ts +0 -52
- package/es/components/BottomNavigation/index.d.ts +0 -45
- package/es/components/Button/IconButton.d.ts +0 -34
- package/es/components/Button/index.d.ts +0 -4
- package/es/components/Card/index.d.ts +0 -22
- package/es/components/Collapse/StyledCollapse.d.ts +0 -15
- package/es/components/Collapse/index.d.ts +0 -23
- package/es/components/Divider/StyledDivider.d.ts +0 -13
- package/es/components/Divider/index.d.ts +0 -21
- package/es/components/Drawer/StyledDrawer.d.ts +0 -25
- package/es/components/Drawer/index.d.ts +0 -25
- package/es/components/FAB/ActionGroup/ActionItem.d.ts +0 -12
- package/es/components/FAB/ActionGroup/StyledActionGroup.d.ts +0 -30
- package/es/components/FAB/ActionGroup/StyledActionItem.d.ts +0 -13
- package/es/components/FAB/ActionGroup/__tests__/index.spec.d.ts +0 -1
- package/es/components/FAB/ActionGroup/index.d.ts +0 -34
- package/es/components/FAB/AnimatedFABIcon.d.ts +0 -6
- package/es/components/FAB/FAB.d.ts +0 -34
- package/es/components/FAB/StyledFAB.d.ts +0 -20
- package/es/components/FAB/index.d.ts +0 -4
- package/es/components/Icon/HeroIcon/index.d.ts +0 -13
- package/es/components/Icon/IconList.d.ts +0 -2
- package/es/components/Icon/index.d.ts +0 -27
- package/es/components/Icon/utils.d.ts +0 -2
- package/es/components/Progress/ProgressBar.d.ts +0 -18
- package/es/components/Progress/ProgressCircle.d.ts +0 -18
- package/es/components/Progress/StyledProgressBar.d.ts +0 -18
- package/es/components/Progress/StyledProgressCircle.d.ts +0 -38
- package/es/components/Progress/index.d.ts +0 -5
- package/es/components/Progress/types.d.ts +0 -1
- package/es/components/Tabs/ActiveTabIndicator.d.ts +0 -8
- package/es/components/Tabs/ScrollableTabs.d.ts +0 -3
- package/es/components/Tabs/StyledScrollableTabs.d.ts +0 -61
- package/es/components/Tabs/StyledTabs.d.ts +0 -55
- package/es/components/Tabs/__tests__/ScrollableTabs.spec.d.ts +0 -1
- package/es/components/Tabs/__tests__/index.spec.d.ts +0 -1
- package/es/components/Tabs/index.d.ts +0 -54
- package/es/components/Tabs/utils.d.ts +0 -2
- package/es/components/Tag/StyledTag.d.ts +0 -20
- package/es/components/Tag/__tests__/Tag.spec.d.ts +0 -1
- package/es/components/Tag/index.d.ts +0 -21
- package/es/components/Typography/Text/StyledText.d.ts +0 -13
- package/es/components/Typography/Text/__tests__/StyledText.spec.d.ts +0 -1
- package/es/components/Typography/Text/__tests__/index.spec.d.ts +0 -1
- package/es/components/Typography/Text/index.d.ts +0 -30
- package/es/components/Typography/index.d.ts +0 -6
- package/es/index.d.ts +0 -19
- package/es/theme/__tests__/index.spec.d.ts +0 -1
- package/es/theme/components/avatar.d.ts +0 -32
- package/es/theme/components/badge.d.ts +0 -29
- package/es/theme/components/bottomNavigation.d.ts +0 -23
- package/es/theme/components/card.d.ts +0 -10
- package/es/theme/components/divider.d.ts +0 -17
- package/es/theme/components/drawer.d.ts +0 -21
- package/es/theme/components/fab.d.ts +0 -51
- package/es/theme/components/icon.d.ts +0 -19
- package/es/theme/components/progress.d.ts +0 -21
- package/es/theme/components/tabs.d.ts +0 -27
- package/es/theme/components/tag.d.ts +0 -30
- package/es/theme/components/typography.d.ts +0 -26
- package/es/theme/global/borders.d.ts +0 -11
- package/es/theme/global/colors.d.ts +0 -29
- package/es/theme/global/index.d.ts +0 -39
- package/es/theme/global/scale.d.ts +0 -9
- package/es/theme/global/space.d.ts +0 -13
- package/es/theme/global/typography.d.ts +0 -21
- package/es/theme/index.d.ts +0 -33
- package/es/types.d.ts +0 -5
- package/es/utils/__tests__/scale.spec.d.ts +0 -1
- package/es/utils/helpers.d.ts +0 -2
- package/es/utils/hooks.d.ts +0 -1
- package/es/utils/scale.d.ts +0 -3
- package/lib/components/Avatar/StyledAvatar.d.ts +0 -46
- package/lib/components/Avatar/__tests__/StyledAvatar.spec.d.ts +0 -1
- package/lib/components/Avatar/__tests__/index.spec.d.ts +0 -1
- package/lib/components/Avatar/index.d.ts +0 -25
- package/lib/components/Badge/Status.d.ts +0 -24
- package/lib/components/Badge/StyledBadge.d.ts +0 -28
- package/lib/components/Badge/__tests__/Badge.spec.d.ts +0 -1
- package/lib/components/Badge/__tests__/Status.spec.d.ts +0 -1
- package/lib/components/Badge/index.d.ts +0 -32
- package/lib/components/BottomNavigation/StyledBottomNavigation.d.ts +0 -52
- package/lib/components/BottomNavigation/__tests__/index.spec.d.ts +0 -1
- package/lib/components/BottomNavigation/index.d.ts +0 -45
- package/lib/components/Button/IconButton.d.ts +0 -34
- package/lib/components/Button/__tests__/index.spec.d.ts +0 -1
- package/lib/components/Button/index.d.ts +0 -4
- package/lib/components/Card/StyledCard.d.ts +0 -17
- package/lib/components/Card/__tests__/StyledCard.spec.d.ts +0 -1
- package/lib/components/Card/__tests__/index.spec.d.ts +0 -1
- package/lib/components/Card/index.d.ts +0 -22
- package/lib/components/Collapse/StyledCollapse.d.ts +0 -15
- package/lib/components/Collapse/__tests__/StyledCollapse.spec.d.ts +0 -1
- package/lib/components/Collapse/__tests__/index.spec.d.ts +0 -1
- package/lib/components/Collapse/index.d.ts +0 -23
- package/lib/components/Divider/StyledDivider.d.ts +0 -13
- package/lib/components/Divider/__tests__/StyledDivider.spec.d.ts +0 -1
- package/lib/components/Divider/index.d.ts +0 -21
- package/lib/components/Drawer/StyledDrawer.d.ts +0 -25
- package/lib/components/Drawer/__tests__/index.spec.d.ts +0 -1
- package/lib/components/Drawer/index.d.ts +0 -25
- package/lib/components/FAB/ActionGroup/ActionItem.d.ts +0 -12
- package/lib/components/FAB/ActionGroup/StyledActionGroup.d.ts +0 -30
- package/lib/components/FAB/ActionGroup/StyledActionItem.d.ts +0 -13
- package/lib/components/FAB/ActionGroup/__tests__/index.spec.d.ts +0 -1
- package/lib/components/FAB/ActionGroup/index.d.ts +0 -34
- package/lib/components/FAB/AnimatedFABIcon.d.ts +0 -6
- package/lib/components/FAB/FAB.d.ts +0 -34
- package/lib/components/FAB/StyledFAB.d.ts +0 -20
- package/lib/components/FAB/__tests__/AnimatedFABIcon.spec.d.ts +0 -1
- package/lib/components/FAB/__tests__/StyledFAB.spec.d.ts +0 -1
- package/lib/components/FAB/__tests__/index.spec.d.ts +0 -1
- package/lib/components/FAB/index.d.ts +0 -4
- package/lib/components/Icon/HeroIcon/index.d.ts +0 -13
- package/lib/components/Icon/IconList.d.ts +0 -2
- package/lib/components/Icon/__tests__/index.spec.d.ts +0 -1
- package/lib/components/Icon/index.d.ts +0 -27
- package/lib/components/Icon/utils.d.ts +0 -2
- package/lib/components/Progress/ProgressBar.d.ts +0 -18
- package/lib/components/Progress/ProgressCircle.d.ts +0 -18
- package/lib/components/Progress/StyledProgressBar.d.ts +0 -18
- package/lib/components/Progress/StyledProgressCircle.d.ts +0 -38
- package/lib/components/Progress/index.d.ts +0 -5
- package/lib/components/Progress/types.d.ts +0 -1
- package/lib/components/Tabs/ActiveTabIndicator.d.ts +0 -8
- package/lib/components/Tabs/ScrollableTabs.d.ts +0 -3
- package/lib/components/Tabs/StyledScrollableTabs.d.ts +0 -61
- package/lib/components/Tabs/StyledTabs.d.ts +0 -55
- package/lib/components/Tabs/__tests__/ScrollableTabs.spec.d.ts +0 -1
- package/lib/components/Tabs/__tests__/index.spec.d.ts +0 -1
- package/lib/components/Tabs/index.d.ts +0 -54
- package/lib/components/Tabs/utils.d.ts +0 -2
- package/lib/components/Tag/StyledTag.d.ts +0 -20
- package/lib/components/Tag/__tests__/Tag.spec.d.ts +0 -1
- package/lib/components/Tag/index.d.ts +0 -21
- package/lib/components/Typography/Text/StyledText.d.ts +0 -13
- package/lib/components/Typography/Text/__tests__/StyledText.spec.d.ts +0 -1
- package/lib/components/Typography/Text/__tests__/index.spec.d.ts +0 -1
- package/lib/components/Typography/Text/index.d.ts +0 -30
- package/lib/components/Typography/index.d.ts +0 -6
- package/lib/index.d.ts +0 -19
- package/lib/theme/__tests__/index.spec.d.ts +0 -1
- package/lib/theme/components/avatar.d.ts +0 -32
- package/lib/theme/components/badge.d.ts +0 -29
- package/lib/theme/components/bottomNavigation.d.ts +0 -23
- package/lib/theme/components/card.d.ts +0 -10
- package/lib/theme/components/divider.d.ts +0 -17
- package/lib/theme/components/drawer.d.ts +0 -21
- package/lib/theme/components/fab.d.ts +0 -51
- package/lib/theme/components/icon.d.ts +0 -19
- package/lib/theme/components/progress.d.ts +0 -21
- package/lib/theme/components/tabs.d.ts +0 -27
- package/lib/theme/components/tag.d.ts +0 -30
- package/lib/theme/components/typography.d.ts +0 -26
- package/lib/theme/global/borders.d.ts +0 -11
- package/lib/theme/global/colors.d.ts +0 -29
- package/lib/theme/global/index.d.ts +0 -39
- package/lib/theme/global/scale.d.ts +0 -9
- package/lib/theme/global/space.d.ts +0 -13
- package/lib/theme/global/typography.d.ts +0 -21
- package/lib/theme/index.d.ts +0 -33
- package/lib/types.d.ts +0 -5
- package/lib/utils/__tests__/scale.spec.d.ts +0 -1
- package/lib/utils/helpers.d.ts +0 -2
- package/lib/utils/hooks.d.ts +0 -1
- package/lib/utils/scale.d.ts +0 -3
- package/playground/.detoxrc.json +0 -49
- package/playground/.prettierrc.json +0 -8
- package/playground/app.json +0 -9
- package/playground/babel.config.js +0 -63
- package/playground/e2e/config.json +0 -9
- package/playground/e2e/environment.js +0 -23
- package/playground/e2e/firstTest.e2e.js +0 -16
- package/playground/expoEntry.js +0 -5
- package/playground/fonts/be-vietnam-pro-light.ttf +0 -0
- package/playground/fonts/be-vietnam-pro-regular.ttf +0 -0
- package/playground/fonts/be-vietnam-pro-semibold.ttf +0 -0
- package/playground/fonts/hero-icons.ttf +0 -0
- package/playground/index.js +0 -7
- package/playground/ios/MobileHeroDesignPlayground/AppDelegate.h +0 -9
- package/playground/ios/MobileHeroDesignPlayground/AppDelegate.m +0 -75
- package/playground/ios/MobileHeroDesignPlayground/Images.xcassets/AppIcon.appiconset/Contents.json +0 -38
- package/playground/ios/MobileHeroDesignPlayground/Images.xcassets/Contents.json +0 -6
- package/playground/ios/MobileHeroDesignPlayground/Images.xcassets/SplashScreenBackground.imageset/Contents.json +0 -21
- package/playground/ios/MobileHeroDesignPlayground/Images.xcassets/SplashScreenBackground.imageset/image.png +0 -0
- package/playground/ios/MobileHeroDesignPlayground/Info.plist +0 -85
- package/playground/ios/MobileHeroDesignPlayground/MobileHeroDesignPlayground-Bridging-Header.h +0 -3
- package/playground/ios/MobileHeroDesignPlayground/MobileHeroDesignPlayground.entitlements +0 -8
- package/playground/ios/MobileHeroDesignPlayground/SplashScreen.storyboard +0 -40
- package/playground/ios/MobileHeroDesignPlayground/Supporting/Expo.plist +0 -16
- package/playground/ios/MobileHeroDesignPlayground/main.m +0 -10
- package/playground/ios/MobileHeroDesignPlayground/noop-file.swift +0 -4
- package/playground/ios/MobileHeroDesignPlayground.xcodeproj/project.pbxproj +0 -515
- package/playground/ios/MobileHeroDesignPlayground.xcodeproj/xcshareddata/xcschemes/MobileHeroDesignPlayground.xcscheme +0 -88
- package/playground/ios/MobileHeroDesignPlayground.xcworkspace/contents.xcworkspacedata +0 -10
- package/playground/ios/MobileHeroDesignPlayground.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +0 -8
- package/playground/ios/Podfile +0 -49
- package/playground/ios/Podfile.lock +0 -478
- package/playground/ios/Podfile.properties.json +0 -3
- package/playground/metro.config.js +0 -24
- package/playground/package.json +0 -63
- package/playground/src/Alert.tsx +0 -80
- package/playground/src/App.tsx +0 -202
- package/playground/src/Avatar.tsx +0 -102
- package/playground/src/Badge.tsx +0 -187
- package/playground/src/BottomNavigation.tsx +0 -72
- package/playground/src/BottomSheet.tsx +0 -43
- package/playground/src/Button.tsx +0 -170
- package/playground/src/Card.tsx +0 -342
- package/playground/src/Collapse.tsx +0 -99
- package/playground/src/ContentNavigator.tsx +0 -58
- package/playground/src/Divider.tsx +0 -13
- package/playground/src/Drawer.tsx +0 -32
- package/playground/src/FAB.tsx +0 -66
- package/playground/src/Icon.tsx +0 -144
- package/playground/src/IconButton.tsx +0 -78
- package/playground/src/MultipleThemes.tsx +0 -34
- package/playground/src/Progress.tsx +0 -95
- package/playground/src/Radio.tsx +0 -25
- package/playground/src/SectionHeading.tsx +0 -68
- package/playground/src/Select.tsx +0 -32
- package/playground/src/Spinner.tsx +0 -19
- package/playground/src/Switch.tsx +0 -80
- package/playground/src/Tabs.tsx +0 -136
- package/playground/src/Tag.tsx +0 -45
- package/playground/src/TextInput.tsx +0 -14
- package/playground/src/Typography.tsx +0 -23
- package/playground/tsconfig.json +0 -21
- package/src/components/Select/MultiSelect/Footer.tsx +0 -15
- package/types/components/SectionHeading/__tests__/StyledHeading.d.ts +0 -1
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ToolbarItemProps } from './ToolbarItem';
|
|
2
|
+
export interface ToolbarGroupProps {
|
|
3
|
+
/**
|
|
4
|
+
* List of action items in the toolbar group.
|
|
5
|
+
*/
|
|
6
|
+
items?: ToolbarItemProps[];
|
|
7
|
+
/**
|
|
8
|
+
* Alignment of the items in the group.
|
|
9
|
+
*/
|
|
10
|
+
align: 'left' | 'center' | 'right';
|
|
11
|
+
}
|
|
12
|
+
declare const ToolbarGroup: ({ align, items }: ToolbarGroupProps) => JSX.Element;
|
|
13
|
+
export default ToolbarGroup;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { IconName } from '../Icon';
|
|
2
|
+
export interface ToolbarItemProps {
|
|
3
|
+
/**
|
|
4
|
+
* Visual intent of the toolbar item.
|
|
5
|
+
*/
|
|
6
|
+
intent?: 'primary' | 'info' | 'success' | 'danger' | 'warning';
|
|
7
|
+
/**
|
|
8
|
+
* Icon of the toolbar item.
|
|
9
|
+
*/
|
|
10
|
+
icon?: IconName;
|
|
11
|
+
/**
|
|
12
|
+
* Action label of the toolbar item.
|
|
13
|
+
*/
|
|
14
|
+
label?: string;
|
|
15
|
+
/**
|
|
16
|
+
* Callback that trigger when user press the toolbar item.
|
|
17
|
+
*/
|
|
18
|
+
onPress?: () => void;
|
|
19
|
+
/**
|
|
20
|
+
* Whether the toolbar item is disabled.
|
|
21
|
+
*/
|
|
22
|
+
disabled?: boolean;
|
|
23
|
+
}
|
|
24
|
+
declare const ToolbarItem: ({ icon, label, onPress, intent, disabled, }: ToolbarItemProps) => JSX.Element;
|
|
25
|
+
export default ToolbarItem;
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
export interface ToolbarProps {
|
|
3
|
+
/**
|
|
4
|
+
* Toolbar's content.
|
|
5
|
+
*/
|
|
6
|
+
children?: ReactNode;
|
|
7
|
+
}
|
|
8
|
+
declare const _default: (({ children }: ToolbarProps) => JSX.Element) & {
|
|
9
|
+
Group: ({ align, items }: import("./ToolbarGroup").ToolbarGroupProps) => JSX.Element;
|
|
10
|
+
};
|
|
11
|
+
export default _default;
|
|
@@ -5,7 +5,7 @@ declare const StyledText: import("@emotion/native").StyledComponent<import("reac
|
|
|
5
5
|
} & {
|
|
6
6
|
themeFontSize: 'small' | 'medium' | 'large' | 'xlarge';
|
|
7
7
|
themeFontWeight: 'light' | 'regular' | 'semi-bold';
|
|
8
|
-
themeIntent: 'body' | 'subdued' | 'primary';
|
|
8
|
+
themeIntent: 'body' | 'subdued' | 'primary' | 'success' | 'info' | 'warning' | 'danger';
|
|
9
9
|
}, {}, {
|
|
10
10
|
ref?: import("react").Ref<Text> | undefined;
|
|
11
11
|
}>;
|
|
@@ -16,9 +16,9 @@ export interface TextProps extends NativeTextProps {
|
|
|
16
16
|
/**
|
|
17
17
|
* Visual intent color to apply to the text.
|
|
18
18
|
*/
|
|
19
|
-
intent?: 'body' | 'subdued' | 'primary';
|
|
19
|
+
intent?: 'body' | 'subdued' | 'primary' | 'success' | 'info' | 'warning' | 'danger';
|
|
20
20
|
/**
|
|
21
|
-
*
|
|
21
|
+
* Additional style.
|
|
22
22
|
*/
|
|
23
23
|
style?: StyleProp<TextStyle>;
|
|
24
24
|
/**
|
package/types/index.d.ts
CHANGED
|
@@ -8,11 +8,13 @@ import BottomSheet from './components/BottomSheet';
|
|
|
8
8
|
import Button from './components/Button';
|
|
9
9
|
import Card from './components/Card';
|
|
10
10
|
import Collapse from './components/Collapse';
|
|
11
|
+
import Checkbox from './components/Checkbox';
|
|
11
12
|
import ContentNavigator from './components/ContentNavigator';
|
|
12
13
|
import Divider from './components/Divider';
|
|
13
14
|
import Drawer from './components/Drawer';
|
|
14
15
|
import FAB from './components/FAB';
|
|
15
16
|
import Icon from './components/Icon';
|
|
17
|
+
import List from './components/List';
|
|
16
18
|
import Progress from './components/Progress';
|
|
17
19
|
import Spinner from './components/Spinner';
|
|
18
20
|
import Radio from './components/Radio';
|
|
@@ -22,6 +24,8 @@ import Switch from './components/Switch';
|
|
|
22
24
|
import Tabs from './components/Tabs';
|
|
23
25
|
import Tag from './components/Tag';
|
|
24
26
|
import TextInput from './components/TextInput';
|
|
27
|
+
import Toast from './components/Toast';
|
|
28
|
+
import Toolbar from './components/Toolbar';
|
|
25
29
|
import Typography from './components/Typography';
|
|
26
|
-
export { theme, getTheme, useTheme, scale, ThemeProvider, Alert, Avatar, Badge, BottomNavigation, BottomSheet, Button, Card, Collapse, ContentNavigator, Divider, Drawer, FAB, Icon, Progress, Spinner, Radio, SectionHeading, Select, Switch, Tabs, Tag, TextInput, Typography, };
|
|
30
|
+
export { theme, getTheme, useTheme, scale, ThemeProvider, Alert, Avatar, Badge, BottomNavigation, BottomSheet, Button, Card, Collapse, Checkbox, ContentNavigator, Divider, Drawer, FAB, Icon, List, Progress, Spinner, Radio, SectionHeading, Select, Switch, Tabs, Tag, TextInput, Toast, Toolbar, Typography, };
|
|
27
31
|
export * from './types';
|
|
File without changes
|
|
@@ -2,6 +2,13 @@ import { GlobalTheme } from '../global';
|
|
|
2
2
|
declare const getCardTheme: (theme: GlobalTheme) => {
|
|
3
3
|
colors: {
|
|
4
4
|
dataCardIndicator: string;
|
|
5
|
+
indicator: {
|
|
6
|
+
archived: string;
|
|
7
|
+
info: string;
|
|
8
|
+
success: string;
|
|
9
|
+
warning: string;
|
|
10
|
+
danger: string;
|
|
11
|
+
};
|
|
5
12
|
};
|
|
6
13
|
radii: {
|
|
7
14
|
default: number;
|
|
File without changes
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { GlobalTheme } from '../global';
|
|
2
|
+
declare const getListTheme: (theme: GlobalTheme) => {
|
|
3
|
+
colors: {
|
|
4
|
+
checkedListItemContainerBackground: string;
|
|
5
|
+
listItemContainerBackground: string;
|
|
6
|
+
leadingStatus: {
|
|
7
|
+
danger: string;
|
|
8
|
+
info: string;
|
|
9
|
+
success: string;
|
|
10
|
+
warning: string;
|
|
11
|
+
archived: string;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
space: {
|
|
15
|
+
listItemContainerPadding: number;
|
|
16
|
+
leadingStatusMarginRight: number;
|
|
17
|
+
prefixContainerMarginRight: number;
|
|
18
|
+
suffixContainerMarginLeft: number;
|
|
19
|
+
};
|
|
20
|
+
radii: {
|
|
21
|
+
card: number;
|
|
22
|
+
cardShadow: number;
|
|
23
|
+
leadingStatus: number;
|
|
24
|
+
};
|
|
25
|
+
offsets: {
|
|
26
|
+
cardShadow: {
|
|
27
|
+
width: number;
|
|
28
|
+
height: number;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
widths: {
|
|
32
|
+
leadingStatus: number;
|
|
33
|
+
};
|
|
34
|
+
opacity: {
|
|
35
|
+
disabled: number;
|
|
36
|
+
enabled: number;
|
|
37
|
+
cardShadow: number;
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
export default getListTheme;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { GlobalTheme } from '../global';
|
|
2
|
+
declare const getToastTheme: (theme: GlobalTheme) => {
|
|
3
|
+
colors: {
|
|
4
|
+
success: string;
|
|
5
|
+
warning: string;
|
|
6
|
+
error: string;
|
|
7
|
+
info: string;
|
|
8
|
+
divider: string;
|
|
9
|
+
};
|
|
10
|
+
radii: {
|
|
11
|
+
default: number;
|
|
12
|
+
};
|
|
13
|
+
sizes: {
|
|
14
|
+
height: number;
|
|
15
|
+
};
|
|
16
|
+
space: {
|
|
17
|
+
mediumPadding: number;
|
|
18
|
+
largePadding: number;
|
|
19
|
+
};
|
|
20
|
+
borderWidths: {
|
|
21
|
+
base: number;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
export default getToastTheme;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { GlobalTheme } from '../global';
|
|
2
|
+
declare const getToolbarTheme: (theme: GlobalTheme) => {
|
|
3
|
+
colors: {
|
|
4
|
+
background: string;
|
|
5
|
+
border: string;
|
|
6
|
+
primary: string;
|
|
7
|
+
info: string;
|
|
8
|
+
success: string;
|
|
9
|
+
danger: string;
|
|
10
|
+
error: string;
|
|
11
|
+
disabled: string;
|
|
12
|
+
};
|
|
13
|
+
space: {
|
|
14
|
+
verticalPadding: number;
|
|
15
|
+
horizontalPadding: number;
|
|
16
|
+
};
|
|
17
|
+
borderWidths: {
|
|
18
|
+
default: number;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
export default getToolbarTheme;
|
|
@@ -10,12 +10,15 @@ declare const systemPalette: {
|
|
|
10
10
|
infoLight: string;
|
|
11
11
|
infoBackground: string;
|
|
12
12
|
success: string;
|
|
13
|
+
successLight: string;
|
|
13
14
|
successDark: string;
|
|
14
15
|
successBackground: string;
|
|
15
16
|
danger: string;
|
|
17
|
+
dangerMediumLight: string;
|
|
16
18
|
dangerLight: string;
|
|
17
19
|
dangerBackground: string;
|
|
18
20
|
warning: string;
|
|
21
|
+
warningLight: string;
|
|
19
22
|
warningDark: string;
|
|
20
23
|
warningBackground: string;
|
|
21
24
|
platformBackground: string;
|
|
@@ -26,9 +29,11 @@ declare const systemPalette: {
|
|
|
26
29
|
disabledLightText: string;
|
|
27
30
|
invertedText: string;
|
|
28
31
|
outline: string;
|
|
32
|
+
archivedDark: string;
|
|
29
33
|
archived: string;
|
|
30
34
|
black: string;
|
|
31
35
|
inactiveBackground: string;
|
|
36
|
+
shadow: string;
|
|
32
37
|
};
|
|
33
38
|
declare type SystemPalette = typeof systemPalette;
|
|
34
39
|
export { systemPalette, SystemPalette };
|
|
@@ -13,12 +13,15 @@ declare const getGlobalTheme: (scale: Scale, systemPalette: SystemPalette) => {
|
|
|
13
13
|
infoLight: string;
|
|
14
14
|
infoBackground: string;
|
|
15
15
|
success: string;
|
|
16
|
+
successLight: string;
|
|
16
17
|
successDark: string;
|
|
17
18
|
successBackground: string;
|
|
18
19
|
danger: string;
|
|
20
|
+
dangerMediumLight: string;
|
|
19
21
|
dangerLight: string;
|
|
20
22
|
dangerBackground: string;
|
|
21
23
|
warning: string;
|
|
24
|
+
warningLight: string;
|
|
22
25
|
warningDark: string;
|
|
23
26
|
warningBackground: string;
|
|
24
27
|
platformBackground: string;
|
|
@@ -29,9 +32,11 @@ declare const getGlobalTheme: (scale: Scale, systemPalette: SystemPalette) => {
|
|
|
29
32
|
disabledLightText: string;
|
|
30
33
|
invertedText: string;
|
|
31
34
|
outline: string;
|
|
35
|
+
archivedDark: string;
|
|
32
36
|
archived: string;
|
|
33
37
|
black: string;
|
|
34
38
|
inactiveBackground: string;
|
|
39
|
+
shadow: string;
|
|
35
40
|
};
|
|
36
41
|
fonts: import("./typography").Fonts;
|
|
37
42
|
fontSizes: import("./typography").FontSizes;
|
package/types/theme/index.d.ts
CHANGED
|
@@ -6,6 +6,7 @@ import getBottomNavigationTheme from './components/bottomNavigation';
|
|
|
6
6
|
import getBottomSheetTheme from './components/bottomSheet';
|
|
7
7
|
import getButtonTheme from './components/button';
|
|
8
8
|
import getCardTheme from './components/card';
|
|
9
|
+
import getCheckboxTheme from './components/checkbox';
|
|
9
10
|
import getContentNavigatorTheme from './components/contentNavigator';
|
|
10
11
|
import getDividerTheme from './components/divider';
|
|
11
12
|
import getDrawerTheme from './components/drawer';
|
|
@@ -20,7 +21,10 @@ import getSwitchTheme from './components/switch';
|
|
|
20
21
|
import getTabsTheme from './components/tabs';
|
|
21
22
|
import getTagTheme from './components/tag';
|
|
22
23
|
import getTextInputTheme from './components/textInput';
|
|
24
|
+
import getToastTheme from './components/toast';
|
|
25
|
+
import getToolbarTheme from './components/toolbar';
|
|
23
26
|
import getTypographyTheme from './components/typography';
|
|
27
|
+
import getListTheme from './components/list';
|
|
24
28
|
declare type Theme = GlobalTheme & {
|
|
25
29
|
__hd__: {
|
|
26
30
|
alert: ReturnType<typeof getAlertTheme>;
|
|
@@ -30,6 +34,7 @@ declare type Theme = GlobalTheme & {
|
|
|
30
34
|
bottomSheet: ReturnType<typeof getBottomSheetTheme>;
|
|
31
35
|
button: ReturnType<typeof getButtonTheme>;
|
|
32
36
|
card: ReturnType<typeof getCardTheme>;
|
|
37
|
+
checkbox: ReturnType<typeof getCheckboxTheme>;
|
|
33
38
|
contentNavigator: ReturnType<typeof getContentNavigatorTheme>;
|
|
34
39
|
divider: ReturnType<typeof getDividerTheme>;
|
|
35
40
|
drawer: ReturnType<typeof getDrawerTheme>;
|
|
@@ -44,7 +49,10 @@ declare type Theme = GlobalTheme & {
|
|
|
44
49
|
tabs: ReturnType<typeof getTabsTheme>;
|
|
45
50
|
tag: ReturnType<typeof getTagTheme>;
|
|
46
51
|
textInput: ReturnType<typeof getTextInputTheme>;
|
|
52
|
+
toast: ReturnType<typeof getToastTheme>;
|
|
53
|
+
toolbar: ReturnType<typeof getToolbarTheme>;
|
|
47
54
|
typography: ReturnType<typeof getTypographyTheme>;
|
|
55
|
+
list: ReturnType<typeof getListTheme>;
|
|
48
56
|
};
|
|
49
57
|
};
|
|
50
58
|
declare const getTheme: (scale?: Scale, systemPallete?: SystemPalette) => Theme;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
[32m@hero-design/rn:build:watch[0m: cache hit, replaying output [2m15c0a10624cccb1c[0m
|
package/.turbo/turbo-lint.log
DELETED
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { View, Image, TouchableOpacity, Text } from 'react-native';
|
|
3
|
-
declare type ThemeSize = 'small' | 'medium' | 'large' | 'xlarge';
|
|
4
|
-
declare type ThemeIntent = 'primary' | 'info' | 'danger' | 'success' | 'warning';
|
|
5
|
-
declare const StyledPressable: import("@emotion/native").StyledComponent<import("react-native").TouchableOpacityProps & {
|
|
6
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
7
|
-
as?: import("react").ElementType<any> | undefined;
|
|
8
|
-
} & {
|
|
9
|
-
themeSize: ThemeSize;
|
|
10
|
-
themeIntent: ThemeIntent;
|
|
11
|
-
}, {}, {
|
|
12
|
-
ref?: import("react").Ref<TouchableOpacity> | undefined;
|
|
13
|
-
}>;
|
|
14
|
-
declare const StyledView: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
15
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
16
|
-
as?: import("react").ElementType<any> | undefined;
|
|
17
|
-
} & {
|
|
18
|
-
themeSize: ThemeSize;
|
|
19
|
-
themeIntent: ThemeIntent;
|
|
20
|
-
}, {}, {
|
|
21
|
-
ref?: import("react").Ref<View> | undefined;
|
|
22
|
-
}>;
|
|
23
|
-
declare const StyledTextWrapper: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
24
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
25
|
-
as?: import("react").ElementType<any> | undefined;
|
|
26
|
-
}, {}, {
|
|
27
|
-
ref?: import("react").Ref<View> | undefined;
|
|
28
|
-
}>;
|
|
29
|
-
declare const StyledText: import("@emotion/native").StyledComponent<import("react-native").TextProps & {
|
|
30
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
31
|
-
as?: import("react").ElementType<any> | undefined;
|
|
32
|
-
} & {
|
|
33
|
-
themeSize: ThemeSize;
|
|
34
|
-
themeIntent: ThemeIntent;
|
|
35
|
-
}, {}, {
|
|
36
|
-
ref?: import("react").Ref<Text> | undefined;
|
|
37
|
-
}>;
|
|
38
|
-
declare const StyledImage: import("@emotion/native").StyledComponent<import("react-native").ImageProps & {
|
|
39
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
40
|
-
as?: import("react").ElementType<any> | undefined;
|
|
41
|
-
} & {
|
|
42
|
-
themeSize: ThemeSize;
|
|
43
|
-
}, {}, {
|
|
44
|
-
ref?: import("react").Ref<Image> | undefined;
|
|
45
|
-
}>;
|
|
46
|
-
export { StyledPressable, StyledView, StyledImage, StyledTextWrapper, StyledText, };
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { ImageSourcePropType, StyleProp, ViewProps, ViewStyle } from 'react-native';
|
|
2
|
-
interface AvatarProps extends ViewProps {
|
|
3
|
-
/** Callback function when pressing component. */
|
|
4
|
-
onPress?: () => void;
|
|
5
|
-
/** Image source to be displayed on avatar. */
|
|
6
|
-
source?: ImageSourcePropType;
|
|
7
|
-
/** Renders title in the placeholder. */
|
|
8
|
-
title?: string;
|
|
9
|
-
/**
|
|
10
|
-
* Intent of the Icon.
|
|
11
|
-
*/
|
|
12
|
-
intent?: 'primary' | 'info' | 'danger' | 'success' | 'warning';
|
|
13
|
-
/** Size of the avatar. */
|
|
14
|
-
size?: 'small' | 'medium' | 'large' | 'xlarge';
|
|
15
|
-
/**
|
|
16
|
-
* Addditional style.
|
|
17
|
-
*/
|
|
18
|
-
style?: StyleProp<ViewStyle>;
|
|
19
|
-
/**
|
|
20
|
-
* Testing id of the component.
|
|
21
|
-
*/
|
|
22
|
-
testID?: string;
|
|
23
|
-
}
|
|
24
|
-
declare const Avatar: ({ onPress, source, testID, style, title, size, intent, }: AvatarProps) => JSX.Element | null;
|
|
25
|
-
export default Avatar;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { StyleProp, ViewStyle, ViewProps } from 'react-native';
|
|
2
|
-
import { ReactNode } from 'react';
|
|
3
|
-
export interface StatusProps extends ViewProps {
|
|
4
|
-
children: ReactNode;
|
|
5
|
-
/**
|
|
6
|
-
* Whether the Status Badge is visible.
|
|
7
|
-
*/
|
|
8
|
-
visible?: boolean;
|
|
9
|
-
/**
|
|
10
|
-
/**
|
|
11
|
-
* Visual intent color to apply to Status Badge.
|
|
12
|
-
*/
|
|
13
|
-
intent?: 'success' | 'warning' | 'danger' | 'info' | 'archived';
|
|
14
|
-
/**
|
|
15
|
-
* Additional style.
|
|
16
|
-
*/
|
|
17
|
-
style?: StyleProp<ViewStyle>;
|
|
18
|
-
/**
|
|
19
|
-
* Testing id of the component.
|
|
20
|
-
*/
|
|
21
|
-
testID?: string;
|
|
22
|
-
}
|
|
23
|
-
declare const Status: ({ children, visible, intent, style, testID, ...nativeProps }: StatusProps) => JSX.Element;
|
|
24
|
-
export default Status;
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { Animated, Text } from 'react-native';
|
|
3
|
-
declare type ThemeIntent = 'success' | 'warning' | 'danger' | 'info' | 'archived';
|
|
4
|
-
declare type ThemePadding = 'narrowContent' | 'wideContent';
|
|
5
|
-
declare const StyledView: import("@emotion/native").StyledComponent<Animated.AnimatedProps<import("react-native").ViewProps & import("react").RefAttributes<import("react-native").View>> & {
|
|
6
|
-
children?: import("react").ReactNode;
|
|
7
|
-
} & {
|
|
8
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
9
|
-
as?: import("react").ElementType<any> | undefined;
|
|
10
|
-
} & {
|
|
11
|
-
themeIntent: ThemeIntent;
|
|
12
|
-
themePadding: ThemePadding;
|
|
13
|
-
}, {}, {}>;
|
|
14
|
-
declare const StyledText: import("@emotion/native").StyledComponent<import("react-native").TextProps & {
|
|
15
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
16
|
-
as?: import("react").ElementType<any> | undefined;
|
|
17
|
-
}, {}, {
|
|
18
|
-
ref?: import("react").Ref<Text> | undefined;
|
|
19
|
-
}>;
|
|
20
|
-
declare const StyledStatus: import("@emotion/native").StyledComponent<Animated.AnimatedProps<import("react-native").ViewProps & import("react").RefAttributes<import("react-native").View>> & {
|
|
21
|
-
children?: import("react").ReactNode;
|
|
22
|
-
} & {
|
|
23
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
24
|
-
as?: import("react").ElementType<any> | undefined;
|
|
25
|
-
} & {
|
|
26
|
-
themeIntent: ThemeIntent;
|
|
27
|
-
}, {}, {}>;
|
|
28
|
-
export { StyledView, StyledText, StyledStatus };
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { Animated, StyleProp, ViewStyle } from 'react-native';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
interface BadgeProps extends React.ComponentProps<typeof Animated.View> {
|
|
4
|
-
/**
|
|
5
|
-
* Content of the Badge.
|
|
6
|
-
*/
|
|
7
|
-
content: string | number;
|
|
8
|
-
/**
|
|
9
|
-
* Whether the Badge is visible.
|
|
10
|
-
*/
|
|
11
|
-
visible?: boolean;
|
|
12
|
-
/**
|
|
13
|
-
* The maximum number displayed on the badge. If number exceeds this value, `${max}+` are displayed instead. (Only applied when content is number.)
|
|
14
|
-
*/
|
|
15
|
-
max?: number;
|
|
16
|
-
/**
|
|
17
|
-
* Visual intent color to apply to Badge.
|
|
18
|
-
*/
|
|
19
|
-
intent?: 'success' | 'warning' | 'danger' | 'info' | 'archived';
|
|
20
|
-
/**
|
|
21
|
-
* Additional style.
|
|
22
|
-
*/
|
|
23
|
-
style?: StyleProp<ViewStyle>;
|
|
24
|
-
/**
|
|
25
|
-
* Testing id of the component.
|
|
26
|
-
*/
|
|
27
|
-
testID?: string;
|
|
28
|
-
}
|
|
29
|
-
declare const _default: (({ content: originalContent, visible, max, intent, style, testID, ...nativeProps }: BadgeProps) => JSX.Element) & {
|
|
30
|
-
Status: ({ children, visible, intent, style, testID, ...nativeProps }: import("./Status").StatusProps) => JSX.Element;
|
|
31
|
-
};
|
|
32
|
-
export default _default;
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { View } from 'react-native';
|
|
3
|
-
declare const BottomNavigationTab: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
4
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
5
|
-
as?: import("react").ElementType<any> | undefined;
|
|
6
|
-
} & {
|
|
7
|
-
themeVisibility?: boolean | undefined;
|
|
8
|
-
}, {}, {
|
|
9
|
-
ref?: import("react").Ref<View> | undefined;
|
|
10
|
-
}>;
|
|
11
|
-
declare const BottomNavigationContainer: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
12
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
13
|
-
as?: import("react").ElementType<any> | undefined;
|
|
14
|
-
}, {}, {
|
|
15
|
-
ref?: import("react").Ref<View> | undefined;
|
|
16
|
-
}>;
|
|
17
|
-
declare const ContentWrapper: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
18
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
19
|
-
as?: import("react").ElementType<any> | undefined;
|
|
20
|
-
}, {}, {
|
|
21
|
-
ref?: import("react").Ref<View> | undefined;
|
|
22
|
-
}>;
|
|
23
|
-
declare const BottomBarWrapper: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
24
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
25
|
-
as?: import("react").ElementType<any> | undefined;
|
|
26
|
-
} & {
|
|
27
|
-
themeInsets: {
|
|
28
|
-
top: number;
|
|
29
|
-
right: number;
|
|
30
|
-
bottom: number;
|
|
31
|
-
left: number;
|
|
32
|
-
};
|
|
33
|
-
}, {}, {
|
|
34
|
-
ref?: import("react").Ref<View> | undefined;
|
|
35
|
-
}>;
|
|
36
|
-
declare const BottomBar: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
37
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
38
|
-
as?: import("react").ElementType<any> | undefined;
|
|
39
|
-
}, {}, {
|
|
40
|
-
ref?: import("react").Ref<View> | undefined;
|
|
41
|
-
}>;
|
|
42
|
-
declare const BottomBarItem: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
43
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
44
|
-
as?: import("react").ElementType<any> | undefined;
|
|
45
|
-
}, {}, {
|
|
46
|
-
ref?: import("react").Ref<View> | undefined;
|
|
47
|
-
}>;
|
|
48
|
-
declare const StyledBottomBarText: import("@emotion/native").StyledComponent<import("../Typography/Text").TextProps & {
|
|
49
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
50
|
-
as?: import("react").ElementType<any> | undefined;
|
|
51
|
-
}, {}, {}>;
|
|
52
|
-
export { BottomBar, BottomBarItem, BottomNavigationTab, BottomNavigationContainer, BottomBarWrapper, ContentWrapper, StyledBottomBarText, };
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
import { StyleProp, ViewStyle, ViewProps } from 'react-native';
|
|
3
|
-
import { IconName } from '../Icon';
|
|
4
|
-
export declare type BottomNavigationTabType = {
|
|
5
|
-
key: string;
|
|
6
|
-
title?: string;
|
|
7
|
-
icon: IconName;
|
|
8
|
-
component: ReactNode;
|
|
9
|
-
testID?: string;
|
|
10
|
-
};
|
|
11
|
-
interface BottomNavigationProps extends ViewProps {
|
|
12
|
-
/**
|
|
13
|
-
* Callback which is called on tab press, receiving key of upcoming active Tab.
|
|
14
|
-
*/
|
|
15
|
-
onTabPress: (key: string) => void;
|
|
16
|
-
/**
|
|
17
|
-
* Whether inactive tabs should be removed and unmounted in React.
|
|
18
|
-
* Defaults to `false`.
|
|
19
|
-
*/
|
|
20
|
-
renderActiveTabOnly?: boolean;
|
|
21
|
-
/**
|
|
22
|
-
* Current selected tab key.
|
|
23
|
-
*/
|
|
24
|
-
selectedTabKey: string;
|
|
25
|
-
/**
|
|
26
|
-
* List of Tabs to be rendered. Each Tab must have an unique key.
|
|
27
|
-
*/
|
|
28
|
-
tabs: {
|
|
29
|
-
key: string;
|
|
30
|
-
title?: string;
|
|
31
|
-
icon: IconName;
|
|
32
|
-
component: ReactNode;
|
|
33
|
-
testID?: string;
|
|
34
|
-
}[];
|
|
35
|
-
/**
|
|
36
|
-
* Additional style.
|
|
37
|
-
*/
|
|
38
|
-
style?: StyleProp<ViewStyle>;
|
|
39
|
-
/**
|
|
40
|
-
* Testing id of the component.
|
|
41
|
-
*/
|
|
42
|
-
testID?: string;
|
|
43
|
-
}
|
|
44
|
-
declare const BottomNavigation: ({ onTabPress, renderActiveTabOnly, selectedTabKey, tabs, ...nativeProps }: BottomNavigationProps) => JSX.Element;
|
|
45
|
-
export default BottomNavigation;
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { StyleProp, ViewStyle, TouchableOpacityProps } from 'react-native';
|
|
2
|
-
import { IconProps, IconName } from '../Icon';
|
|
3
|
-
export interface IconButtonProps {
|
|
4
|
-
/**
|
|
5
|
-
* Set how far you can touch from the button.
|
|
6
|
-
*/
|
|
7
|
-
hitSlop?: TouchableOpacityProps['hitSlop'];
|
|
8
|
-
/**
|
|
9
|
-
* Name of the Icon.
|
|
10
|
-
*/
|
|
11
|
-
icon: IconName;
|
|
12
|
-
/**
|
|
13
|
-
* Intent of the Icon.
|
|
14
|
-
*/
|
|
15
|
-
intent?: IconProps['intent'];
|
|
16
|
-
/**
|
|
17
|
-
* Set the handler to handle press event.
|
|
18
|
-
*/
|
|
19
|
-
onPress: () => void;
|
|
20
|
-
/**
|
|
21
|
-
* Size of the Icon.
|
|
22
|
-
*/
|
|
23
|
-
size?: IconProps['size'];
|
|
24
|
-
/**
|
|
25
|
-
* Additional style.
|
|
26
|
-
*/
|
|
27
|
-
style?: StyleProp<ViewStyle>;
|
|
28
|
-
/**
|
|
29
|
-
* Testing id of component.
|
|
30
|
-
*/
|
|
31
|
-
testID?: string;
|
|
32
|
-
}
|
|
33
|
-
declare const IconButton: ({ hitSlop, onPress, icon, testID, style, size, intent, }: IconButtonProps) => JSX.Element;
|
|
34
|
-
export default IconButton;
|