@hero-design/rn 7.4.0 → 7.6.1-alpha
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.turbo/turbo-build.log +2 -2
- package/.turbo/turbo-build:types.log +1 -1
- package/.turbo/turbo-build:watch.log +1 -0
- package/.turbo/turbo-lint.log +2 -0
- package/.turbo/turbo-type-check.log +2 -7
- package/assets/fonts/hero-icons.ttf +0 -0
- package/{types/src → es}/components/Avatar/StyledAvatar.d.ts +0 -0
- package/{types/src → es}/components/Avatar/__tests__/StyledAvatar.spec.d.ts +0 -0
- package/{types/src → es}/components/Avatar/__tests__/index.spec.d.ts +0 -0
- package/{types/src → es}/components/Avatar/index.d.ts +0 -0
- package/{types/src → es}/components/Badge/Status.d.ts +0 -0
- package/{types/src → es}/components/Badge/StyledBadge.d.ts +0 -0
- package/{types/src → es}/components/Badge/__tests__/Badge.spec.d.ts +0 -0
- package/{types/src → es}/components/Badge/__tests__/Status.spec.d.ts +0 -0
- package/{types/src → es}/components/Badge/index.d.ts +0 -0
- package/{types/src → es}/components/BottomNavigation/StyledBottomNavigation.d.ts +0 -0
- package/{types/src → es}/components/BottomNavigation/__tests__/index.spec.d.ts +0 -0
- package/{types/src → es}/components/BottomNavigation/index.d.ts +0 -0
- package/{types/src → es}/components/Button/IconButton.d.ts +0 -0
- package/{types/src/components/Button/LoadingIndicator → es/components/Button}/__tests__/index.spec.d.ts +0 -0
- package/es/components/Button/index.d.ts +4 -0
- package/{types/src → es}/components/Card/StyledCard.d.ts +0 -0
- package/{types/src → es}/components/Card/__tests__/StyledCard.spec.d.ts +0 -0
- package/{types/src/components/Button → es/components/Card}/__tests__/index.spec.d.ts +0 -0
- package/{types/src → es}/components/Card/index.d.ts +0 -0
- package/{types/src → es}/components/Collapse/StyledCollapse.d.ts +0 -0
- package/{types/src → es}/components/Collapse/__tests__/StyledCollapse.spec.d.ts +0 -0
- package/{types/src/components/Card → es/components/Collapse}/__tests__/index.spec.d.ts +0 -0
- package/{types/src → es}/components/Collapse/index.d.ts +0 -0
- package/{types/src → es}/components/Divider/StyledDivider.d.ts +0 -0
- package/{types/src → es}/components/Divider/__tests__/StyledDivider.spec.d.ts +0 -0
- package/{types/src → es}/components/Divider/index.d.ts +0 -0
- package/{types/src → es}/components/Drawer/StyledDrawer.d.ts +0 -0
- package/{types/src/components/Collapse → es/components/Drawer}/__tests__/index.spec.d.ts +0 -0
- package/{types/src → es}/components/Drawer/index.d.ts +0 -0
- package/{types/src → es}/components/FAB/ActionGroup/ActionItem.d.ts +0 -0
- package/{types/src → es}/components/FAB/ActionGroup/StyledActionGroup.d.ts +0 -0
- package/{types/src → es}/components/FAB/ActionGroup/StyledActionItem.d.ts +0 -0
- package/{types/src → es}/components/FAB/ActionGroup/__tests__/index.spec.d.ts +0 -0
- package/{types/src → es}/components/FAB/ActionGroup/index.d.ts +0 -0
- package/{types/src → es}/components/FAB/AnimatedFABIcon.d.ts +0 -0
- package/{types/src → es}/components/FAB/FAB.d.ts +0 -0
- package/{types/src → es}/components/FAB/StyledFAB.d.ts +0 -0
- package/{types/src → es}/components/FAB/__tests__/AnimatedFABIcon.spec.d.ts +0 -0
- package/{types/src → es}/components/FAB/__tests__/StyledFAB.spec.d.ts +0 -0
- package/{types/src/components/Drawer → es/components/FAB}/__tests__/index.spec.d.ts +0 -0
- package/{types/src → es}/components/FAB/index.d.ts +0 -0
- package/es/components/Icon/HeroIcon/index.d.ts +13 -0
- package/{types/src → es}/components/Icon/IconList.d.ts +0 -0
- package/{types/src/components/FAB → es/components/Icon}/__tests__/index.spec.d.ts +0 -0
- package/{types/src → es}/components/Icon/index.d.ts +0 -0
- package/{types/src → es}/components/Icon/utils.d.ts +1 -1
- package/{types/src → es}/components/Progress/ProgressBar.d.ts +0 -0
- package/{types/src → es}/components/Progress/ProgressCircle.d.ts +0 -0
- package/{types/src → es}/components/Progress/StyledProgressBar.d.ts +0 -0
- package/{types/src → es}/components/Progress/StyledProgressCircle.d.ts +0 -0
- package/{types/src → es}/components/Progress/index.d.ts +0 -0
- package/{types/src → es}/components/Progress/types.d.ts +0 -0
- package/{types/src → es}/components/Tabs/ActiveTabIndicator.d.ts +0 -0
- package/{types/src → es}/components/Tabs/ScrollableTabs.d.ts +0 -0
- package/{types/src → es}/components/Tabs/StyledScrollableTabs.d.ts +0 -0
- package/{types/src → es}/components/Tabs/StyledTabs.d.ts +0 -0
- package/{types/src → es}/components/Tabs/__tests__/ScrollableTabs.spec.d.ts +0 -0
- package/{types/src/components/Icon → es/components/Tabs}/__tests__/index.spec.d.ts +0 -0
- package/{types/src → es}/components/Tabs/index.d.ts +0 -0
- package/{types/src → es}/components/Tabs/utils.d.ts +0 -0
- package/{types/src → es}/components/Tag/StyledTag.d.ts +0 -0
- package/{types/src → es}/components/Tag/__tests__/Tag.spec.d.ts +0 -0
- package/{types/src → es}/components/Tag/index.d.ts +0 -0
- package/{types/src → es}/components/Typography/Text/StyledText.d.ts +0 -0
- package/{types/src → es}/components/Typography/Text/__tests__/StyledText.spec.d.ts +0 -0
- package/{types/src/components/Progress → es/components/Typography/Text}/__tests__/index.spec.d.ts +0 -0
- package/{types/src → es}/components/Typography/Text/index.d.ts +0 -0
- package/{types/src → es}/components/Typography/index.d.ts +0 -0
- package/{types/src → es}/index.d.ts +0 -0
- package/es/index.js +1499 -3212
- package/{types/src/components/Tabs → es/theme}/__tests__/index.spec.d.ts +0 -0
- package/{types/src → es}/theme/components/avatar.d.ts +0 -0
- package/{types/src → es}/theme/components/badge.d.ts +0 -0
- package/{types/src → es}/theme/components/bottomNavigation.d.ts +0 -0
- package/{types/src → es}/theme/components/card.d.ts +0 -0
- package/{types/src → es}/theme/components/divider.d.ts +0 -0
- package/{types/src → es}/theme/components/drawer.d.ts +0 -0
- package/{types/src → es}/theme/components/fab.d.ts +0 -0
- package/{types/src → es}/theme/components/icon.d.ts +0 -0
- package/{types/src → es}/theme/components/progress.d.ts +0 -0
- package/{types/src → es}/theme/components/tabs.d.ts +0 -0
- package/{types/src → es}/theme/components/tag.d.ts +0 -0
- package/{types/src → es}/theme/components/typography.d.ts +0 -0
- package/{types/src → es}/theme/global/borders.d.ts +0 -0
- package/{types/src → es}/theme/global/colors.d.ts +1 -3
- package/{types/src → es}/theme/global/index.d.ts +1 -3
- package/{types/src → es}/theme/global/scale.d.ts +0 -0
- package/{types/src → es}/theme/global/space.d.ts +0 -0
- package/{types/src → es}/theme/global/typography.d.ts +0 -0
- package/{types/src → es}/theme/index.d.ts +0 -2
- package/{types/src → es}/types.d.ts +0 -0
- package/{types/src → es}/utils/__tests__/scale.spec.d.ts +0 -0
- package/{types/src → es}/utils/helpers.d.ts +0 -0
- package/{types/src → es}/utils/hooks.d.ts +0 -0
- package/{types/src → es}/utils/scale.d.ts +0 -0
- package/lib/assets/fonts/hero-icons.ttf +0 -0
- package/lib/components/Avatar/StyledAvatar.d.ts +46 -0
- package/{types/src/components/Button/LoadingIndicator/__tests__/StyledLoadingIndicator.spec.d.ts → lib/components/Avatar/__tests__/StyledAvatar.spec.d.ts} +0 -0
- package/{types/src/components/Typography/Text → lib/components/Avatar}/__tests__/index.spec.d.ts +0 -0
- package/lib/components/Avatar/index.d.ts +25 -0
- package/lib/components/Badge/Status.d.ts +24 -0
- package/lib/components/Badge/StyledBadge.d.ts +28 -0
- package/{types/src/components/Button/__tests__/Button.spec.d.ts → lib/components/Badge/__tests__/Badge.spec.d.ts} +0 -0
- package/{types/src/components/Button/__tests__/IconButton.spec.d.ts → lib/components/Badge/__tests__/Status.spec.d.ts} +0 -0
- package/lib/components/Badge/index.d.ts +32 -0
- package/lib/components/BottomNavigation/StyledBottomNavigation.d.ts +52 -0
- package/{types/src/theme → lib/components/BottomNavigation}/__tests__/index.spec.d.ts +0 -0
- package/lib/components/BottomNavigation/index.d.ts +45 -0
- package/lib/components/Button/IconButton.d.ts +34 -0
- package/{types/src/components/Button/__tests__/StyledButton.spec.d.ts → lib/components/Button/__tests__/index.spec.d.ts} +0 -0
- package/lib/components/Button/index.d.ts +4 -0
- package/lib/components/Card/StyledCard.d.ts +17 -0
- package/lib/components/Card/__tests__/StyledCard.spec.d.ts +1 -0
- package/lib/components/Card/__tests__/index.spec.d.ts +1 -0
- package/lib/components/Card/index.d.ts +22 -0
- package/lib/components/Collapse/StyledCollapse.d.ts +15 -0
- package/lib/components/Collapse/__tests__/StyledCollapse.spec.d.ts +1 -0
- package/lib/components/Collapse/__tests__/index.spec.d.ts +1 -0
- package/lib/components/Collapse/index.d.ts +23 -0
- package/lib/components/Divider/StyledDivider.d.ts +13 -0
- package/lib/components/Divider/__tests__/StyledDivider.spec.d.ts +1 -0
- package/lib/components/Divider/index.d.ts +21 -0
- package/lib/components/Drawer/StyledDrawer.d.ts +25 -0
- package/lib/components/Drawer/__tests__/index.spec.d.ts +1 -0
- package/lib/components/Drawer/index.d.ts +25 -0
- package/lib/components/FAB/ActionGroup/ActionItem.d.ts +12 -0
- package/lib/components/FAB/ActionGroup/StyledActionGroup.d.ts +30 -0
- package/lib/components/FAB/ActionGroup/StyledActionItem.d.ts +13 -0
- package/lib/components/FAB/ActionGroup/__tests__/index.spec.d.ts +1 -0
- package/lib/components/FAB/ActionGroup/index.d.ts +34 -0
- package/lib/components/FAB/AnimatedFABIcon.d.ts +6 -0
- package/lib/components/FAB/FAB.d.ts +34 -0
- package/lib/components/FAB/StyledFAB.d.ts +20 -0
- package/lib/components/FAB/__tests__/AnimatedFABIcon.spec.d.ts +1 -0
- package/lib/components/FAB/__tests__/StyledFAB.spec.d.ts +1 -0
- package/lib/components/FAB/__tests__/index.spec.d.ts +1 -0
- package/lib/components/FAB/index.d.ts +4 -0
- package/lib/components/Icon/HeroIcon/index.d.ts +13 -0
- package/lib/components/Icon/IconList.d.ts +2 -0
- package/lib/components/Icon/__tests__/index.spec.d.ts +1 -0
- package/lib/components/Icon/index.d.ts +27 -0
- package/lib/components/Icon/utils.d.ts +2 -0
- package/lib/components/Progress/ProgressBar.d.ts +18 -0
- package/lib/components/Progress/ProgressCircle.d.ts +18 -0
- package/lib/components/Progress/StyledProgressBar.d.ts +18 -0
- package/lib/components/Progress/StyledProgressCircle.d.ts +38 -0
- package/lib/components/Progress/index.d.ts +5 -0
- package/lib/components/Progress/types.d.ts +1 -0
- package/lib/components/Tabs/ActiveTabIndicator.d.ts +8 -0
- package/lib/components/Tabs/ScrollableTabs.d.ts +3 -0
- package/lib/components/Tabs/StyledScrollableTabs.d.ts +61 -0
- package/lib/components/Tabs/StyledTabs.d.ts +55 -0
- package/lib/components/Tabs/__tests__/ScrollableTabs.spec.d.ts +1 -0
- package/lib/components/Tabs/__tests__/index.spec.d.ts +1 -0
- package/lib/components/Tabs/index.d.ts +54 -0
- package/lib/components/Tabs/utils.d.ts +2 -0
- package/lib/components/Tag/StyledTag.d.ts +20 -0
- package/lib/components/Tag/__tests__/Tag.spec.d.ts +1 -0
- package/lib/components/Tag/index.d.ts +21 -0
- package/lib/components/Typography/Text/StyledText.d.ts +13 -0
- package/lib/components/Typography/Text/__tests__/StyledText.spec.d.ts +1 -0
- package/lib/components/Typography/Text/__tests__/index.spec.d.ts +1 -0
- package/lib/components/Typography/Text/index.d.ts +30 -0
- package/lib/components/Typography/index.d.ts +6 -0
- package/lib/index.d.ts +19 -0
- package/lib/index.js +1635 -3345
- package/lib/theme/__tests__/index.spec.d.ts +1 -0
- package/lib/theme/components/avatar.d.ts +32 -0
- package/lib/theme/components/badge.d.ts +29 -0
- package/lib/theme/components/bottomNavigation.d.ts +23 -0
- package/lib/theme/components/card.d.ts +10 -0
- package/lib/theme/components/divider.d.ts +17 -0
- package/lib/theme/components/drawer.d.ts +21 -0
- package/lib/theme/components/fab.d.ts +51 -0
- package/lib/theme/components/icon.d.ts +19 -0
- package/lib/theme/components/progress.d.ts +21 -0
- package/lib/theme/components/tabs.d.ts +27 -0
- package/lib/theme/components/tag.d.ts +30 -0
- package/lib/theme/components/typography.d.ts +26 -0
- package/lib/theme/global/borders.d.ts +11 -0
- package/lib/theme/global/colors.d.ts +29 -0
- package/lib/theme/global/index.d.ts +39 -0
- package/lib/theme/global/scale.d.ts +9 -0
- package/lib/theme/global/space.d.ts +13 -0
- package/lib/theme/global/typography.d.ts +21 -0
- package/lib/theme/index.d.ts +33 -0
- package/lib/types.d.ts +5 -0
- package/lib/utils/__tests__/scale.spec.d.ts +1 -0
- package/lib/utils/helpers.d.ts +2 -0
- package/lib/utils/hooks.d.ts +1 -0
- package/lib/utils/scale.d.ts +3 -0
- package/package.json +2 -3
- package/playground/package.json +3 -3
- package/playground/src/Alert.tsx +80 -0
- package/playground/src/App.tsx +12 -0
- package/playground/src/ContentNavigator.tsx +3 -10
- package/playground/src/MultipleThemes.tsx +34 -0
- package/playground/src/Select.tsx +32 -0
- package/playground/src/Switch.tsx +80 -0
- package/rollup.config.js +7 -1
- package/src/components/Alert/StyledAlert.tsx +48 -0
- package/src/components/Alert/__tests__/__snapshots__/index.spec.tsx.snap +686 -0
- package/src/components/Alert/__tests__/index.spec.tsx +83 -0
- package/src/components/Alert/index.tsx +109 -0
- package/src/components/BottomSheet/Header.tsx +1 -1
- package/src/components/BottomSheet/__tests__/__snapshots__/index.spec.tsx.snap +8 -8
- package/src/components/BottomSheet/index.tsx +6 -0
- package/src/components/Icon/HeroIcon/selection.json +1 -1
- package/src/components/Icon/IconList.ts +2 -0
- package/src/components/Radio/RadioGroup.tsx +31 -7
- package/src/components/Radio/types.ts +1 -0
- package/src/components/SectionHeading/StyledHeading.tsx +5 -5
- package/src/components/SectionHeading/__tests__/{StyledHeading.tsx → StyledHeading.spec.tsx} +0 -0
- package/src/components/SectionHeading/__tests__/__snapshots__/{StyledHeading.tsx.snap → StyledHeading.spec.tsx.snap} +0 -0
- package/src/components/Select/MultiSelect/Footer.tsx +15 -0
- package/src/components/Select/MultiSelect/OptionList.tsx +76 -0
- package/src/components/Select/MultiSelect/StyledMultiSelect.tsx +30 -0
- package/src/components/Select/MultiSelect/__tests__/StyledMultiSelect.spec.tsx +49 -0
- package/src/components/Select/MultiSelect/__tests__/__snapshots__/StyledMultiSelect.spec.tsx.snap +108 -0
- package/src/components/Select/MultiSelect/__tests__/__snapshots__/index.spec.tsx.snap +1630 -0
- package/src/components/Select/MultiSelect/__tests__/index.spec.tsx +94 -0
- package/src/components/Select/MultiSelect/index.tsx +103 -0
- package/src/components/Select/MultiSelect/types.ts +1 -0
- package/src/components/Select/index.tsx +5 -0
- package/src/components/Switch/StyledSwitch.tsx +50 -0
- package/src/components/Switch/__tests__/StyledHeading.spec.tsx +42 -0
- package/src/components/Switch/__tests__/__snapshots__/StyledHeading.spec.tsx.snap +74 -0
- package/src/components/Switch/__tests__/__snapshots__/index.spec.tsx.snap +129 -0
- package/src/components/Switch/__tests__/index.spec.tsx +24 -0
- package/src/components/Switch/index.tsx +87 -0
- package/src/components/TextInput/StyledTextInput.tsx +2 -6
- package/src/components/TextInput/__tests__/StyledTextInput.spec.tsx +1 -7
- package/src/components/TextInput/__tests__/__snapshots__/StyledTextInput.spec.tsx.snap +1 -22
- package/src/components/TextInput/__tests__/index.spec.tsx +2 -1
- package/src/components/TextInput/index.tsx +19 -6
- package/src/index.ts +7 -2
- package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +80 -1
- package/src/theme/components/alert.ts +32 -0
- package/src/theme/components/sectionHeading.ts +18 -0
- package/src/theme/components/select.ts +23 -0
- package/src/theme/components/switch.ts +50 -0
- package/src/theme/components/textInput.ts +1 -1
- package/src/theme/global/colors.ts +2 -0
- package/src/theme/index.ts +30 -4
- package/types/components/Alert/StyledAlert.d.ts +37 -0
- package/types/components/Alert/__tests__/index.spec.d.ts +1 -0
- package/types/components/Alert/index.d.ts +42 -0
- package/types/components/Avatar/StyledAvatar.d.ts +0 -0
- package/types/components/Avatar/__tests__/StyledAvatar.spec.d.ts +0 -0
- package/types/components/Avatar/__tests__/index.spec.d.ts +0 -0
- package/types/components/Avatar/index.d.ts +0 -0
- package/types/components/Badge/Status.d.ts +0 -0
- package/types/components/Badge/StyledBadge.d.ts +0 -0
- package/types/components/Badge/__tests__/Badge.spec.d.ts +0 -0
- package/types/components/Badge/__tests__/Status.spec.d.ts +0 -0
- package/types/components/Badge/index.d.ts +0 -0
- package/types/components/BottomNavigation/StyledBottomNavigation.d.ts +0 -0
- package/types/components/BottomNavigation/__tests__/index.spec.d.ts +0 -0
- package/types/components/BottomNavigation/index.d.ts +0 -0
- package/types/components/BottomSheet/Footer.d.ts +0 -0
- package/types/components/BottomSheet/Header.d.ts +0 -0
- package/types/components/BottomSheet/StyledBottomSheet.d.ts +0 -0
- package/types/components/BottomSheet/__tests__/index.spec.d.ts +0 -0
- package/types/components/BottomSheet/index.d.ts +5 -1
- package/types/components/Button/Button.d.ts +0 -0
- package/types/components/Button/IconButton.d.ts +0 -0
- package/types/components/Button/LoadingIndicator/StyledLoadingIndicator.d.ts +0 -0
- package/types/components/Button/LoadingIndicator/__tests__/StyledLoadingIndicator.spec.d.ts +0 -0
- package/types/components/Button/LoadingIndicator/__tests__/index.spec.d.ts +0 -0
- package/types/components/Button/LoadingIndicator/index.d.ts +0 -0
- package/types/components/Button/StyledButton.d.ts +0 -0
- package/types/components/Button/__tests__/Button.spec.d.ts +0 -0
- package/types/components/Button/__tests__/IconButton.spec.d.ts +0 -0
- package/types/components/Button/__tests__/StyledButton.spec.d.ts +0 -0
- package/types/components/Button/index.d.ts +0 -0
- package/types/components/Card/StyledCard.d.ts +0 -0
- package/types/components/Card/__tests__/StyledCard.spec.d.ts +0 -0
- package/types/components/Card/__tests__/index.spec.d.ts +0 -0
- package/types/components/Card/index.d.ts +0 -0
- package/types/components/Checkbox/StyledCheckbox.d.ts +8 -0
- package/types/components/Checkbox/__tests__/StyledCheckbox.spec.d.ts +1 -0
- package/types/components/Checkbox/__tests__/index.spec.d.ts +1 -0
- package/types/components/Checkbox/index.d.ts +25 -0
- package/types/components/Collapse/StyledCollapse.d.ts +0 -0
- package/types/components/Collapse/__tests__/StyledCollapse.spec.d.ts +0 -0
- package/types/components/Collapse/__tests__/index.spec.d.ts +0 -0
- package/types/components/Collapse/index.d.ts +0 -0
- package/types/components/ContentNavigator/StyledContentNavigator.d.ts +0 -0
- package/types/components/ContentNavigator/__tests__/StyledContentNavigator.spec.d.ts +0 -0
- package/types/components/ContentNavigator/__tests__/index.spec.d.ts +0 -0
- package/types/components/ContentNavigator/index.d.ts +0 -0
- package/types/components/Divider/StyledDivider.d.ts +0 -0
- package/types/components/Divider/__tests__/StyledDivider.spec.d.ts +0 -0
- package/types/components/Divider/index.d.ts +0 -0
- package/types/components/Drawer/StyledDrawer.d.ts +0 -0
- package/types/components/Drawer/__tests__/index.spec.d.ts +0 -0
- package/types/components/Drawer/index.d.ts +0 -0
- package/types/components/FAB/ActionGroup/ActionItem.d.ts +0 -0
- package/types/components/FAB/ActionGroup/StyledActionGroup.d.ts +0 -0
- package/types/components/FAB/ActionGroup/StyledActionItem.d.ts +0 -0
- package/types/components/FAB/ActionGroup/__tests__/index.spec.d.ts +0 -0
- package/types/components/FAB/ActionGroup/index.d.ts +0 -0
- package/types/components/FAB/AnimatedFABIcon.d.ts +0 -0
- package/types/components/FAB/FAB.d.ts +0 -0
- package/types/components/FAB/StyledFAB.d.ts +0 -0
- package/types/components/FAB/__tests__/AnimatedFABIcon.spec.d.ts +0 -0
- package/types/components/FAB/__tests__/StyledFAB.spec.d.ts +0 -0
- package/types/components/FAB/__tests__/index.spec.d.ts +0 -0
- package/types/components/FAB/index.d.ts +0 -0
- package/types/components/Icon/HeroIcon/index.d.ts +0 -0
- package/types/components/Icon/IconList.d.ts +1 -1
- package/types/components/Icon/__tests__/index.spec.d.ts +0 -0
- package/types/components/Icon/index.d.ts +0 -0
- package/types/components/Icon/utils.d.ts +1 -1
- package/types/components/Progress/ProgressBar.d.ts +0 -0
- package/types/components/Progress/ProgressCircle.d.ts +0 -0
- package/types/components/Progress/StyledProgressBar.d.ts +0 -0
- package/types/components/Progress/StyledProgressCircle.d.ts +0 -0
- package/types/components/Progress/__tests__/index.spec.d.ts +0 -0
- package/types/components/Progress/index.d.ts +0 -0
- package/types/components/Progress/types.d.ts +0 -0
- package/types/components/Radio/Radio.d.ts +0 -0
- package/types/components/Radio/RadioGroup.d.ts +11 -8
- package/types/components/Radio/StyledRadio.d.ts +0 -0
- package/types/components/Radio/__tests__/Radio.spec.d.ts +0 -0
- package/types/components/Radio/__tests__/RadioGroup.spec.d.ts +0 -0
- package/types/components/Radio/__tests__/StyledRadio.spec.d.ts +0 -0
- package/types/components/Radio/index.d.ts +1 -1
- package/types/components/Radio/types.d.ts +5 -0
- package/types/components/SectionHeading/StyledHeading.d.ts +0 -0
- package/types/components/SectionHeading/__tests__/StyledHeading.d.ts +0 -0
- package/types/components/SectionHeading/__tests__/StyledHeading.spec.d.ts +1 -0
- package/types/components/SectionHeading/__tests__/index.spec.d.ts +0 -0
- package/types/components/SectionHeading/index.d.ts +0 -0
- package/types/components/Select/MultiSelect/Footer.d.ts +5 -0
- package/types/components/Select/MultiSelect/OptionList.d.ts +3 -0
- package/types/components/Select/MultiSelect/StyledMultiSelect.d.ts +26 -0
- package/types/components/Select/MultiSelect/__tests__/StyledMultiSelect.spec.d.ts +1 -0
- package/types/components/Select/MultiSelect/__tests__/index.spec.d.ts +1 -0
- package/types/components/Select/MultiSelect/index.d.ts +39 -0
- package/types/components/Select/MultiSelect/types.d.ts +5 -0
- package/types/components/Select/index.d.ts +5 -0
- package/types/components/Spinner/AnimatedSpinner.d.ts +0 -0
- package/types/components/Spinner/StyledSpinner.d.ts +0 -0
- package/types/components/Spinner/__tests__/AnimatedSpinner.spec.d.ts +0 -0
- package/types/components/Spinner/__tests__/StyledSpinner.spec.d.ts +0 -0
- package/types/components/Spinner/__tests__/index.spec.d.ts +0 -0
- package/types/components/Spinner/index.d.ts +0 -0
- package/types/components/Switch/StyledSwitch.d.ts +36 -0
- package/types/components/Switch/__tests__/StyledHeading.spec.d.ts +1 -0
- package/types/components/Switch/__tests__/index.spec.d.ts +1 -0
- package/types/components/Switch/index.d.ts +30 -0
- package/types/components/Tabs/ActiveTabIndicator.d.ts +0 -0
- package/types/components/Tabs/ScrollableTabs.d.ts +0 -0
- package/types/components/Tabs/StyledScrollableTabs.d.ts +0 -0
- package/types/components/Tabs/StyledTabs.d.ts +0 -0
- package/types/components/Tabs/__tests__/ScrollableTabs.spec.d.ts +0 -0
- package/types/components/Tabs/__tests__/index.spec.d.ts +0 -0
- package/types/components/Tabs/index.d.ts +0 -0
- package/types/components/Tabs/utils.d.ts +0 -0
- package/types/components/Tag/StyledTag.d.ts +0 -0
- package/types/components/Tag/__tests__/Tag.spec.d.ts +0 -0
- package/types/components/Tag/index.d.ts +0 -0
- package/types/components/TextInput/StyledTextInput.d.ts +1 -5
- package/types/components/TextInput/__tests__/StyledTextInput.spec.d.ts +0 -0
- package/types/components/TextInput/__tests__/index.spec.d.ts +0 -0
- package/types/components/TextInput/index.d.ts +13 -5
- package/types/components/Typography/Text/StyledText.d.ts +0 -0
- package/types/components/Typography/Text/__tests__/StyledText.spec.d.ts +0 -0
- package/types/components/Typography/Text/__tests__/index.spec.d.ts +0 -0
- package/types/components/Typography/Text/index.d.ts +0 -0
- package/types/components/Typography/index.d.ts +0 -0
- package/types/index.d.ts +5 -3
- package/types/testHelpers/renderWithTheme.d.ts +0 -0
- package/types/theme/__tests__/index.spec.d.ts +0 -0
- package/types/theme/components/alert.d.ts +23 -0
- package/types/theme/components/avatar.d.ts +0 -0
- package/types/theme/components/badge.d.ts +0 -0
- package/types/theme/components/bottomNavigation.d.ts +0 -0
- package/types/theme/components/bottomSheet.d.ts +0 -0
- package/types/theme/components/button.d.ts +0 -0
- package/types/theme/components/card.d.ts +0 -0
- package/types/theme/components/checkbox.d.ts +21 -0
- package/types/theme/components/contentNavigator.d.ts +0 -0
- package/types/theme/components/divider.d.ts +0 -0
- package/types/theme/components/drawer.d.ts +0 -0
- package/types/theme/components/fab.d.ts +0 -0
- package/types/theme/components/icon.d.ts +0 -0
- package/types/theme/components/progress.d.ts +0 -0
- package/types/theme/components/radio.d.ts +0 -0
- package/types/theme/components/sectionHeading.d.ts +13 -0
- package/types/theme/components/select.d.ts +17 -0
- package/types/theme/components/spinner.d.ts +0 -0
- package/types/theme/components/switch.d.ts +32 -0
- package/types/theme/components/tabs.d.ts +0 -0
- package/types/theme/components/tag.d.ts +0 -0
- package/types/theme/components/textInput.d.ts +1 -1
- package/types/theme/components/typography.d.ts +0 -0
- package/types/theme/global/borders.d.ts +0 -0
- package/types/theme/global/colors.d.ts +2 -0
- package/types/theme/global/index.d.ts +2 -0
- package/types/theme/global/scale.d.ts +0 -0
- package/types/theme/global/space.d.ts +0 -0
- package/types/theme/global/typography.d.ts +0 -0
- package/types/theme/index.d.ts +20 -3
- package/types/types.d.ts +0 -0
- package/types/utils/__tests__/scale.spec.d.ts +0 -0
- package/types/utils/helpers.d.ts +0 -0
- package/types/utils/hooks.d.ts +0 -0
- package/types/utils/scale.d.ts +0 -0
- package/.expo/README.md +0 -15
- package/.expo/packager-info.json +0 -10
- package/.expo/prebuild/cached-packages.json +0 -4
- package/.expo/settings.json +0 -10
- package/.expo/xcodebuild-error.log +0 -2
- package/.expo/xcodebuild.log +0 -11199
- package/.turbo/turbo-publish:npm.log +0 -0
- package/.turbo/turbo-test.log +0 -131
- package/playground/src/Button.tsx~origin_master +0 -170
- package/playground/src/emotion.d.ts +0 -7
- package/types/playground/components/Avatar.d.ts +0 -2
- package/types/playground/components/Badge.d.ts +0 -2
- package/types/playground/components/BottomNavigation.d.ts +0 -2
- package/types/playground/components/Button.d.ts +0 -2
- package/types/playground/components/Card.d.ts +0 -2
- package/types/playground/components/Collapse.d.ts +0 -2
- package/types/playground/components/Divider.d.ts +0 -2
- package/types/playground/components/Drawer.d.ts +0 -2
- package/types/playground/components/FAB.d.ts +0 -2
- package/types/playground/components/Icon.d.ts +0 -2
- package/types/playground/components/IconButton.d.ts +0 -2
- package/types/playground/components/Progress.d.ts +0 -2
- package/types/playground/components/Tabs.d.ts +0 -2
- package/types/playground/components/Tag.d.ts +0 -2
- package/types/playground/components/Typography.d.ts +0 -2
- package/types/playground/index.d.ts +0 -2
- package/types/src/components/Button/Button.d.ts +0 -57
- package/types/src/components/Button/LoadingIndicator/StyledLoadingIndicator.d.ts +0 -20
- package/types/src/components/Button/LoadingIndicator/index.d.ts +0 -26
- package/types/src/components/Button/StyledButton.d.ts +0 -40
- package/types/src/components/Button/index.d.ts +0 -8
- package/types/src/components/Icon/HeroIcon/index.d.ts +0 -13
- package/types/src/testHelpers/renderWithTheme.d.ts +0 -3
- package/types/src/theme/components/button.d.ts +0 -37
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -3,13 +3,12 @@ declare const systemPalette: {
|
|
|
3
3
|
primaryLight: string;
|
|
4
4
|
primaryDark: string;
|
|
5
5
|
primaryBackground: string;
|
|
6
|
-
secondary: string;
|
|
7
|
-
secondaryLight: string;
|
|
8
6
|
info: string;
|
|
9
7
|
infoLight: string;
|
|
10
8
|
infoBackground: string;
|
|
11
9
|
success: string;
|
|
12
10
|
successDark: string;
|
|
11
|
+
successLight: string;
|
|
13
12
|
successBackground: string;
|
|
14
13
|
danger: string;
|
|
15
14
|
dangerLight: string;
|
|
@@ -22,7 +21,6 @@ declare const systemPalette: {
|
|
|
22
21
|
backgroundDark: string;
|
|
23
22
|
text: string;
|
|
24
23
|
disabledText: string;
|
|
25
|
-
disabledLightText: string;
|
|
26
24
|
invertedText: string;
|
|
27
25
|
outline: string;
|
|
28
26
|
archived: string;
|
|
@@ -6,13 +6,12 @@ declare const getGlobalTheme: (scale: Scale, systemPalette: SystemPalette) => {
|
|
|
6
6
|
primaryLight: string;
|
|
7
7
|
primaryDark: string;
|
|
8
8
|
primaryBackground: string;
|
|
9
|
-
secondary: string;
|
|
10
|
-
secondaryLight: string;
|
|
11
9
|
info: string;
|
|
12
10
|
infoLight: string;
|
|
13
11
|
infoBackground: string;
|
|
14
12
|
success: string;
|
|
15
13
|
successDark: string;
|
|
14
|
+
successLight: string;
|
|
16
15
|
successBackground: string;
|
|
17
16
|
danger: string;
|
|
18
17
|
dangerLight: string;
|
|
@@ -25,7 +24,6 @@ declare const getGlobalTheme: (scale: Scale, systemPalette: SystemPalette) => {
|
|
|
25
24
|
backgroundDark: string;
|
|
26
25
|
text: string;
|
|
27
26
|
disabledText: string;
|
|
28
|
-
disabledLightText: string;
|
|
29
27
|
invertedText: string;
|
|
30
28
|
outline: string;
|
|
31
29
|
archived: string;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { GlobalTheme, Scale, SystemPalette } from './global';
|
|
2
2
|
import getBadgeTheme from './components/badge';
|
|
3
3
|
import getBottomNavigationTheme from './components/bottomNavigation';
|
|
4
|
-
import getButtonTheme from './components/button';
|
|
5
4
|
import getCardTheme from './components/card';
|
|
6
5
|
import getDividerTheme from './components/divider';
|
|
7
6
|
import getDrawerTheme from './components/drawer';
|
|
@@ -17,7 +16,6 @@ declare type Theme = GlobalTheme & {
|
|
|
17
16
|
avatar: ReturnType<typeof getAvatarTheme>;
|
|
18
17
|
badge: ReturnType<typeof getBadgeTheme>;
|
|
19
18
|
bottomNavigation: ReturnType<typeof getBottomNavigationTheme>;
|
|
20
|
-
button: ReturnType<typeof getButtonTheme>;
|
|
21
19
|
card: ReturnType<typeof getCardTheme>;
|
|
22
20
|
divider: ReturnType<typeof getDividerTheme>;
|
|
23
21
|
drawer: ReturnType<typeof getDrawerTheme>;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
Binary file
|
|
@@ -0,0 +1,46 @@
|
|
|
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, };
|
|
File without changes
|
package/{types/src/components/Typography/Text → lib/components/Avatar}/__tests__/index.spec.d.ts
RENAMED
|
File without changes
|
|
@@ -0,0 +1,25 @@
|
|
|
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;
|
|
@@ -0,0 +1,24 @@
|
|
|
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;
|
|
@@ -0,0 +1,28 @@
|
|
|
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 };
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,32 @@
|
|
|
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;
|
|
@@ -0,0 +1,52 @@
|
|
|
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, };
|
|
File without changes
|
|
@@ -0,0 +1,45 @@
|
|
|
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;
|
|
@@ -0,0 +1,34 @@
|
|
|
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;
|
|
File without changes
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { View } from 'react-native';
|
|
3
|
+
declare const StyledCard: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
4
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
5
|
+
as?: import("react").ElementType<any> | undefined;
|
|
6
|
+
} & {
|
|
7
|
+
themeVariant: 'basic' | 'data';
|
|
8
|
+
}, {}, {
|
|
9
|
+
ref?: import("react").Ref<View> | undefined;
|
|
10
|
+
}>;
|
|
11
|
+
declare const LeftDataCard: 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
|
+
export { StyledCard, LeftDataCard };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { StyleProp, ViewStyle, ViewProps } from 'react-native';
|
|
3
|
+
interface CardProps extends ViewProps {
|
|
4
|
+
/**
|
|
5
|
+
* Card's content.
|
|
6
|
+
*/
|
|
7
|
+
children?: ReactNode;
|
|
8
|
+
/**
|
|
9
|
+
* Card type.
|
|
10
|
+
*/
|
|
11
|
+
variant?: 'basic' | 'data';
|
|
12
|
+
/**
|
|
13
|
+
* Addditional style.
|
|
14
|
+
*/
|
|
15
|
+
style?: StyleProp<ViewStyle>;
|
|
16
|
+
/**
|
|
17
|
+
* Testing id of the component.
|
|
18
|
+
*/
|
|
19
|
+
testID?: string;
|
|
20
|
+
}
|
|
21
|
+
declare const Card: ({ variant, children, ...nativeProps }: CardProps) => JSX.Element;
|
|
22
|
+
export default Card;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { Animated, View } from 'react-native';
|
|
3
|
+
declare const StyledWrapper: import("@emotion/native").StyledComponent<Animated.AnimatedProps<import("react-native").ViewProps & import("react").RefAttributes<View>> & {
|
|
4
|
+
children?: import("react").ReactNode;
|
|
5
|
+
} & {
|
|
6
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
7
|
+
as?: import("react").ElementType<any> | undefined;
|
|
8
|
+
}, {}, {}>;
|
|
9
|
+
declare const StyledChildWrapper: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
10
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
11
|
+
as?: import("react").ElementType<any> | undefined;
|
|
12
|
+
}, {}, {
|
|
13
|
+
ref?: import("react").Ref<View> | undefined;
|
|
14
|
+
}>;
|
|
15
|
+
export { StyledWrapper, StyledChildWrapper };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { StyleProp, ViewProps, ViewStyle } from 'react-native';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
|
+
interface CollapseProps extends ViewProps {
|
|
4
|
+
children: ReactNode;
|
|
5
|
+
/**
|
|
6
|
+
* Whether the child components will remain mounted when the Collapse is closed.
|
|
7
|
+
*/
|
|
8
|
+
keepChildrenMounted?: boolean;
|
|
9
|
+
/**
|
|
10
|
+
* Whether the component is open or closed.
|
|
11
|
+
*/
|
|
12
|
+
open?: boolean;
|
|
13
|
+
/**
|
|
14
|
+
* Addditional style.
|
|
15
|
+
*/
|
|
16
|
+
style?: StyleProp<ViewStyle>;
|
|
17
|
+
/**
|
|
18
|
+
* Testing id of the component.
|
|
19
|
+
*/
|
|
20
|
+
testID?: string;
|
|
21
|
+
}
|
|
22
|
+
declare const Collapse: ({ open, keepChildrenMounted, children, testID, style, }: CollapseProps) => JSX.Element;
|
|
23
|
+
export default Collapse;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { View } from 'react-native';
|
|
3
|
+
declare type MarginSize = 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge';
|
|
4
|
+
declare const StyledDivider: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
5
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
6
|
+
as?: import("react").ElementType<any> | undefined;
|
|
7
|
+
} & {
|
|
8
|
+
themeMarginHorizontal?: MarginSize | undefined;
|
|
9
|
+
themeMarginVertical?: MarginSize | undefined;
|
|
10
|
+
}, {}, {
|
|
11
|
+
ref?: import("react").Ref<View> | undefined;
|
|
12
|
+
}>;
|
|
13
|
+
export { StyledDivider };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { StyleProp, ViewStyle, ViewProps } from 'react-native';
|
|
2
|
+
interface DividerProps extends ViewProps {
|
|
3
|
+
/**
|
|
4
|
+
* Horizontal margin size. There is no margin by default.
|
|
5
|
+
*/
|
|
6
|
+
marginHorizontal?: 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge';
|
|
7
|
+
/**
|
|
8
|
+
* Vertical margin size. There is no margin by default.
|
|
9
|
+
*/
|
|
10
|
+
marginVertical?: 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge';
|
|
11
|
+
/**
|
|
12
|
+
* Additional style.
|
|
13
|
+
*/
|
|
14
|
+
style?: StyleProp<ViewStyle>;
|
|
15
|
+
/**
|
|
16
|
+
* Testing id of the component.
|
|
17
|
+
*/
|
|
18
|
+
testID?: string;
|
|
19
|
+
}
|
|
20
|
+
declare const Divider: ({ marginHorizontal, marginVertical, style, testID, ...nativeProps }: DividerProps) => JSX.Element;
|
|
21
|
+
export default Divider;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { Animated, View } from 'react-native';
|
|
3
|
+
declare const StyledContainer: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
4
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
5
|
+
as?: import("react").ElementType<any> | undefined;
|
|
6
|
+
} & {
|
|
7
|
+
enableShadow: boolean;
|
|
8
|
+
}, {}, {
|
|
9
|
+
ref?: import("react").Ref<View> | undefined;
|
|
10
|
+
}>;
|
|
11
|
+
declare const StyledBackdrop: import("@emotion/native").StyledComponent<Animated.AnimatedProps<import("react-native").PressableProps & import("react").RefAttributes<View>> & {
|
|
12
|
+
children?: import("react").ReactNode;
|
|
13
|
+
} & {
|
|
14
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
15
|
+
as?: import("react").ElementType<any> | undefined;
|
|
16
|
+
}, {}, {}>;
|
|
17
|
+
declare const StyledDrawerContainer: import("@emotion/native").StyledComponent<Animated.AnimatedProps<import("react-native").ViewProps & import("react").RefAttributes<View>> & {
|
|
18
|
+
children?: import("react").ReactNode;
|
|
19
|
+
} & {
|
|
20
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
21
|
+
as?: import("react").ElementType<any> | undefined;
|
|
22
|
+
} & {
|
|
23
|
+
enableShadow: boolean;
|
|
24
|
+
}, {}, {}>;
|
|
25
|
+
export { StyledBackdrop, StyledContainer, StyledDrawerContainer };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
interface DrawerProps {
|
|
3
|
+
/**
|
|
4
|
+
* Drawer's visibility.
|
|
5
|
+
*/
|
|
6
|
+
visible: boolean;
|
|
7
|
+
/**
|
|
8
|
+
* Drawer's content.
|
|
9
|
+
*/
|
|
10
|
+
children?: ReactNode;
|
|
11
|
+
/**
|
|
12
|
+
* Enable the drawer's backdrop.
|
|
13
|
+
*/
|
|
14
|
+
hasBackdrop?: boolean;
|
|
15
|
+
/**
|
|
16
|
+
* Callback when the drawer is dismissed by interacting outside of the drawer.
|
|
17
|
+
*/
|
|
18
|
+
onDismiss?: () => void;
|
|
19
|
+
/**
|
|
20
|
+
* Testing id of the component.
|
|
21
|
+
* */
|
|
22
|
+
testID?: string;
|
|
23
|
+
}
|
|
24
|
+
declare const Drawer: ({ visible, children, hasBackdrop, onDismiss, testID, }: DrawerProps) => JSX.Element;
|
|
25
|
+
export default Drawer;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ComponentProps } from 'react';
|
|
2
|
+
import { StyleProp, ViewStyle } from 'react-native';
|
|
3
|
+
import Icon from '../../Icon';
|
|
4
|
+
export interface ActionItemProps {
|
|
5
|
+
testID?: string;
|
|
6
|
+
title: string;
|
|
7
|
+
icon: ComponentProps<typeof Icon>['icon'];
|
|
8
|
+
onPress?: () => void;
|
|
9
|
+
style?: StyleProp<ViewStyle>;
|
|
10
|
+
}
|
|
11
|
+
declare const ActionItem: ({ icon, title, onPress, style, testID, }: ActionItemProps) => JSX.Element;
|
|
12
|
+
export default ActionItem;
|