@hero-design/rn 7.5.0 → 7.6.1-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.turbo/turbo-build.log +2 -2
- package/.turbo/turbo-build:types.log +2 -0
- package/.turbo/turbo-build:watch.log +1 -0
- package/.turbo/turbo-lint.log +2 -0
- package/.turbo/turbo-type-check.log +2 -0
- package/es/components/Avatar/StyledAvatar.d.ts +46 -0
- package/es/components/Avatar/__tests__/StyledAvatar.spec.d.ts +1 -0
- package/es/components/Avatar/__tests__/index.spec.d.ts +1 -0
- package/es/components/Avatar/index.d.ts +25 -0
- package/es/components/Badge/Status.d.ts +24 -0
- package/es/components/Badge/StyledBadge.d.ts +28 -0
- package/es/components/Badge/__tests__/Badge.spec.d.ts +1 -0
- package/es/components/Badge/__tests__/Status.spec.d.ts +1 -0
- package/es/components/Badge/index.d.ts +32 -0
- package/es/components/BottomNavigation/StyledBottomNavigation.d.ts +52 -0
- package/es/components/BottomNavigation/__tests__/index.spec.d.ts +1 -0
- package/es/components/BottomNavigation/index.d.ts +45 -0
- package/es/components/Button/IconButton.d.ts +34 -0
- package/es/components/Button/__tests__/index.spec.d.ts +1 -0
- package/es/components/Button/index.d.ts +4 -0
- package/es/components/Card/StyledCard.d.ts +17 -0
- package/es/components/Card/__tests__/StyledCard.spec.d.ts +1 -0
- package/es/components/Card/__tests__/index.spec.d.ts +1 -0
- package/es/components/Card/index.d.ts +22 -0
- package/es/components/Collapse/StyledCollapse.d.ts +15 -0
- package/es/components/Collapse/__tests__/StyledCollapse.spec.d.ts +1 -0
- package/es/components/Collapse/__tests__/index.spec.d.ts +1 -0
- package/es/components/Collapse/index.d.ts +23 -0
- package/es/components/Divider/StyledDivider.d.ts +13 -0
- package/es/components/Divider/__tests__/StyledDivider.spec.d.ts +1 -0
- package/es/components/Divider/index.d.ts +21 -0
- package/es/components/Drawer/StyledDrawer.d.ts +25 -0
- package/es/components/Drawer/__tests__/index.spec.d.ts +1 -0
- package/es/components/Drawer/index.d.ts +25 -0
- package/es/components/FAB/ActionGroup/ActionItem.d.ts +12 -0
- package/es/components/FAB/ActionGroup/StyledActionGroup.d.ts +30 -0
- package/es/components/FAB/ActionGroup/StyledActionItem.d.ts +13 -0
- package/es/components/FAB/ActionGroup/__tests__/index.spec.d.ts +1 -0
- package/es/components/FAB/ActionGroup/index.d.ts +34 -0
- package/es/components/FAB/AnimatedFABIcon.d.ts +6 -0
- package/es/components/FAB/FAB.d.ts +34 -0
- package/es/components/FAB/StyledFAB.d.ts +20 -0
- package/es/components/FAB/__tests__/AnimatedFABIcon.spec.d.ts +1 -0
- package/es/components/FAB/__tests__/StyledFAB.spec.d.ts +1 -0
- package/es/components/FAB/__tests__/index.spec.d.ts +1 -0
- package/es/components/FAB/index.d.ts +4 -0
- package/es/components/Icon/HeroIcon/index.d.ts +13 -0
- package/es/components/Icon/IconList.d.ts +2 -0
- package/es/components/Icon/__tests__/index.spec.d.ts +1 -0
- package/es/components/Icon/index.d.ts +27 -0
- package/es/components/Icon/utils.d.ts +2 -0
- package/es/components/Progress/ProgressBar.d.ts +18 -0
- package/es/components/Progress/ProgressCircle.d.ts +18 -0
- package/es/components/Progress/StyledProgressBar.d.ts +18 -0
- package/es/components/Progress/StyledProgressCircle.d.ts +38 -0
- package/es/components/Progress/index.d.ts +5 -0
- package/es/components/Progress/types.d.ts +1 -0
- package/es/components/Tabs/ActiveTabIndicator.d.ts +8 -0
- package/es/components/Tabs/ScrollableTabs.d.ts +3 -0
- package/es/components/Tabs/StyledScrollableTabs.d.ts +61 -0
- package/es/components/Tabs/StyledTabs.d.ts +55 -0
- package/es/components/Tabs/__tests__/ScrollableTabs.spec.d.ts +1 -0
- package/es/components/Tabs/__tests__/index.spec.d.ts +1 -0
- package/es/components/Tabs/index.d.ts +54 -0
- package/es/components/Tabs/utils.d.ts +2 -0
- package/es/components/Tag/StyledTag.d.ts +20 -0
- package/es/components/Tag/__tests__/Tag.spec.d.ts +1 -0
- package/es/components/Tag/index.d.ts +21 -0
- package/es/components/Typography/Text/StyledText.d.ts +13 -0
- package/es/components/Typography/Text/__tests__/StyledText.spec.d.ts +1 -0
- package/es/components/Typography/Text/__tests__/index.spec.d.ts +1 -0
- package/es/components/Typography/Text/index.d.ts +30 -0
- package/es/components/Typography/index.d.ts +6 -0
- package/es/index.d.ts +19 -0
- package/es/index.js +647 -2551
- package/es/theme/__tests__/index.spec.d.ts +1 -0
- package/es/theme/components/avatar.d.ts +32 -0
- package/es/theme/components/badge.d.ts +29 -0
- package/es/theme/components/bottomNavigation.d.ts +23 -0
- package/es/theme/components/card.d.ts +10 -0
- package/es/theme/components/divider.d.ts +17 -0
- package/es/theme/components/drawer.d.ts +21 -0
- package/es/theme/components/fab.d.ts +51 -0
- package/es/theme/components/icon.d.ts +19 -0
- package/es/theme/components/progress.d.ts +21 -0
- package/es/theme/components/tabs.d.ts +27 -0
- package/es/theme/components/tag.d.ts +30 -0
- package/es/theme/components/typography.d.ts +26 -0
- package/es/theme/global/borders.d.ts +11 -0
- package/es/theme/global/colors.d.ts +29 -0
- package/es/theme/global/index.d.ts +39 -0
- package/es/theme/global/scale.d.ts +9 -0
- package/es/theme/global/space.d.ts +13 -0
- package/es/theme/global/typography.d.ts +21 -0
- package/es/theme/index.d.ts +33 -0
- package/es/types.d.ts +5 -0
- package/es/utils/__tests__/scale.spec.d.ts +1 -0
- package/es/utils/helpers.d.ts +2 -0
- package/es/utils/hooks.d.ts +1 -0
- package/es/utils/scale.d.ts +3 -0
- package/lib/components/Avatar/StyledAvatar.d.ts +46 -0
- package/lib/components/Avatar/__tests__/StyledAvatar.spec.d.ts +1 -0
- package/lib/components/Avatar/__tests__/index.spec.d.ts +1 -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/lib/components/Badge/__tests__/Badge.spec.d.ts +1 -0
- package/lib/components/Badge/__tests__/Status.spec.d.ts +1 -0
- package/lib/components/Badge/index.d.ts +32 -0
- package/lib/components/BottomNavigation/StyledBottomNavigation.d.ts +52 -0
- package/lib/components/BottomNavigation/__tests__/index.spec.d.ts +1 -0
- package/lib/components/BottomNavigation/index.d.ts +45 -0
- package/lib/components/Button/IconButton.d.ts +34 -0
- package/lib/components/Button/__tests__/index.spec.d.ts +1 -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 +798 -2700
- 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 -4
- package/playground/package.json +3 -3
- package/playground/src/App.tsx +6 -0
- package/playground/src/ContentNavigator.tsx +3 -10
- package/playground/src/Select.tsx +32 -0
- package/playground/src/Switch.tsx +80 -0
- package/rollup.config.js +7 -1
- 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/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 +5 -2
- package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +58 -1
- 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 +1 -0
- package/src/theme/index.ts +27 -4
- 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 +0 -0
- 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 +0 -0
- package/types/components/Progress/ProgressBar.d.ts +0 -0
- package/types/components/Progress/ProgressCircle.d.ts +0 -0
- package/types/components/Progress/StyledProgressBar.d.ts +0 -0
- package/types/components/Progress/StyledProgressCircle.d.ts +0 -0
- package/types/components/Progress/__tests__/index.spec.d.ts +0 -0
- package/types/components/Progress/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 +4 -3
- package/types/testHelpers/renderWithTheme.d.ts +0 -0
- package/types/theme/__tests__/index.spec.d.ts +0 -0
- package/types/theme/components/avatar.d.ts +0 -0
- package/types/theme/components/badge.d.ts +0 -0
- package/types/theme/components/bottomNavigation.d.ts +0 -0
- package/types/theme/components/bottomSheet.d.ts +0 -0
- package/types/theme/components/button.d.ts +0 -0
- package/types/theme/components/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 +1 -0
- package/types/theme/global/index.d.ts +1 -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 +18 -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/playground/src/emotion.d.ts +0 -7
|
@@ -1,21 +1,24 @@
|
|
|
1
1
|
import { ReactElement } from 'react';
|
|
2
2
|
import { StyleProp, ViewStyle } from 'react-native';
|
|
3
|
-
|
|
3
|
+
import { OptionType } from './types';
|
|
4
|
+
export interface RadioGroupProps<T> {
|
|
4
5
|
/**
|
|
5
6
|
* An array of radio options to be selected.
|
|
6
7
|
*/
|
|
7
|
-
options:
|
|
8
|
-
text: string;
|
|
9
|
-
value: string;
|
|
10
|
-
}[];
|
|
8
|
+
options: OptionType<T>[];
|
|
11
9
|
/**
|
|
12
10
|
* Radio input value.
|
|
13
11
|
*/
|
|
14
|
-
value:
|
|
12
|
+
value: T;
|
|
15
13
|
/**
|
|
16
14
|
* Press event handler receiving selected radio's value.
|
|
17
15
|
*/
|
|
18
|
-
onPress: (value:
|
|
16
|
+
onPress: (value: T) => void;
|
|
17
|
+
/**
|
|
18
|
+
* Used to extract a unique key for a given option at the specified index. Key is used for caching and as the react key to track item re-ordering.
|
|
19
|
+
* The default extractor checks option.key, and then falls back to using the index, like React does.
|
|
20
|
+
*/
|
|
21
|
+
keyExtractor?: (option: OptionType<T>, index?: number) => string;
|
|
19
22
|
/**
|
|
20
23
|
* Additional style.
|
|
21
24
|
*/
|
|
@@ -25,5 +28,5 @@ export interface RadioGroupProps {
|
|
|
25
28
|
*/
|
|
26
29
|
testID?: string;
|
|
27
30
|
}
|
|
28
|
-
declare const RadioGroup: ({ value, onPress, options, style, testID, }: RadioGroupProps) => ReactElement;
|
|
31
|
+
declare const RadioGroup: <T>({ value, onPress, options, keyExtractor, style, testID, }: RadioGroupProps<T>) => ReactElement;
|
|
29
32
|
export default RadioGroup;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
declare const CompoundRadio: {
|
|
2
|
-
readonly Group: ({ value, onPress, options, style, testID, }: import("./RadioGroup").RadioGroupProps) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
|
|
2
|
+
readonly Group: <T>({ value, onPress, options, keyExtractor, style, testID, }: import("./RadioGroup").RadioGroupProps<T>) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
|
|
3
3
|
};
|
|
4
4
|
export default CompoundRadio;
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { View, TouchableOpacity } from 'react-native';
|
|
2
|
+
declare const OptionWrapper: import("@emotion/native").StyledComponent<import("react-native").TouchableOpacityProps & {
|
|
3
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
4
|
+
as?: import("react").ElementType<any> | undefined;
|
|
5
|
+
} & {
|
|
6
|
+
themeSelected: boolean;
|
|
7
|
+
}, {}, {
|
|
8
|
+
ref?: import("react").Ref<TouchableOpacity> | undefined;
|
|
9
|
+
}>;
|
|
10
|
+
declare const OptionListWrapper: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
11
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
12
|
+
as?: import("react").ElementType<any> | undefined;
|
|
13
|
+
}, {}, {
|
|
14
|
+
ref?: import("react").Ref<View> | undefined;
|
|
15
|
+
}>;
|
|
16
|
+
declare const Spacer: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
17
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
18
|
+
as?: import("react").ElementType<any> | undefined;
|
|
19
|
+
}, {}, {
|
|
20
|
+
ref?: import("react").Ref<View> | undefined;
|
|
21
|
+
}>;
|
|
22
|
+
declare const FooterText: import("@emotion/native").StyledComponent<import("../../Typography/Text").TextProps & {
|
|
23
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
24
|
+
as?: import("react").ElementType<any> | undefined;
|
|
25
|
+
}, {}, {}>;
|
|
26
|
+
export { OptionWrapper, OptionListWrapper, Spacer, FooterText };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { StyleProp, ViewStyle } from 'react-native';
|
|
2
|
+
import { OptionType } from './types';
|
|
3
|
+
export interface MultiSelectProps<T> {
|
|
4
|
+
/**
|
|
5
|
+
* An array of options to be selected.
|
|
6
|
+
*/
|
|
7
|
+
options: OptionType<T>[];
|
|
8
|
+
/**
|
|
9
|
+
* Current selected value.
|
|
10
|
+
*/
|
|
11
|
+
value: T[];
|
|
12
|
+
/**
|
|
13
|
+
* onPress event handler.
|
|
14
|
+
*/
|
|
15
|
+
onPress: (value: T[]) => void;
|
|
16
|
+
/**
|
|
17
|
+
* Field label.
|
|
18
|
+
*/
|
|
19
|
+
label: string;
|
|
20
|
+
/**
|
|
21
|
+
* Footer label.
|
|
22
|
+
*/
|
|
23
|
+
footerLabel: string;
|
|
24
|
+
/**
|
|
25
|
+
* Used to extract a unique key for a given option at the specified index. Key is used for caching and as the react key to track item re-ordering.
|
|
26
|
+
* The default extractor checks option.key, and then falls back to using the index, like React does.
|
|
27
|
+
*/
|
|
28
|
+
keyExtractor?: (option: OptionType<T>, index?: number) => string;
|
|
29
|
+
/**
|
|
30
|
+
* Additional style.
|
|
31
|
+
*/
|
|
32
|
+
style?: StyleProp<ViewStyle>;
|
|
33
|
+
/**
|
|
34
|
+
* Testing id of the component.
|
|
35
|
+
*/
|
|
36
|
+
testID?: string;
|
|
37
|
+
}
|
|
38
|
+
declare function MultiSelect<T>({ options, value, testID, style, label, footerLabel, onPress, }: MultiSelectProps<T>): JSX.Element;
|
|
39
|
+
export default MultiSelect;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { Animated, View } from 'react-native';
|
|
2
|
+
declare type ThemeSize = 'small' | 'medium';
|
|
3
|
+
declare const StyledWrapper: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
4
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
5
|
+
as?: import("react").ElementType<any> | undefined;
|
|
6
|
+
} & {
|
|
7
|
+
themeChecked: boolean | undefined;
|
|
8
|
+
themeSize: ThemeSize;
|
|
9
|
+
}, {}, {
|
|
10
|
+
ref?: import("react").Ref<View> | undefined;
|
|
11
|
+
}>;
|
|
12
|
+
declare const StyledDisabledWrapper: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
13
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
14
|
+
as?: import("react").ElementType<any> | undefined;
|
|
15
|
+
} & {
|
|
16
|
+
themeSize: ThemeSize;
|
|
17
|
+
}, {}, {
|
|
18
|
+
ref?: import("react").Ref<View> | undefined;
|
|
19
|
+
}>;
|
|
20
|
+
declare const StyledThumbWrapper: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
21
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
22
|
+
as?: import("react").ElementType<any> | undefined;
|
|
23
|
+
} & {
|
|
24
|
+
themeSize: ThemeSize;
|
|
25
|
+
}, {}, {
|
|
26
|
+
ref?: import("react").Ref<View> | undefined;
|
|
27
|
+
}>;
|
|
28
|
+
declare const StyledKnot: import("@emotion/native").StyledComponent<Animated.AnimatedProps<import("react-native").ViewProps & import("react").RefAttributes<View>> & {
|
|
29
|
+
children?: import("react").ReactNode;
|
|
30
|
+
} & {
|
|
31
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
32
|
+
as?: import("react").ElementType<any> | undefined;
|
|
33
|
+
} & {
|
|
34
|
+
themeSize: ThemeSize;
|
|
35
|
+
}, {}, {}>;
|
|
36
|
+
export { StyledWrapper, StyledDisabledWrapper, StyledThumbWrapper, StyledKnot };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { ReactElement } from 'react';
|
|
2
|
+
import { StyleProp, ViewStyle } from 'react-native';
|
|
3
|
+
export interface SwitchProps {
|
|
4
|
+
/**
|
|
5
|
+
* Control whether the switch is checked
|
|
6
|
+
*/
|
|
7
|
+
checked?: boolean;
|
|
8
|
+
/**
|
|
9
|
+
* Whether the switch is disabled
|
|
10
|
+
*/
|
|
11
|
+
disabled?: boolean;
|
|
12
|
+
/**
|
|
13
|
+
* Event handler.
|
|
14
|
+
*/
|
|
15
|
+
onPress?: () => void;
|
|
16
|
+
/**
|
|
17
|
+
* Size of the switch
|
|
18
|
+
*/
|
|
19
|
+
size?: 'small' | 'medium';
|
|
20
|
+
/**
|
|
21
|
+
* Addditional style.
|
|
22
|
+
*/
|
|
23
|
+
style?: StyleProp<ViewStyle>;
|
|
24
|
+
/**
|
|
25
|
+
* Testing id of the component.
|
|
26
|
+
*/
|
|
27
|
+
testID?: string;
|
|
28
|
+
}
|
|
29
|
+
declare const Switch: ({ size, disabled, checked, onPress, style, testID, }: SwitchProps) => ReactElement;
|
|
30
|
+
export default Switch;
|
|
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
|
|
@@ -9,14 +9,10 @@ declare const Label: import("@emotion/native").StyledComponent<import("../Typogr
|
|
|
9
9
|
theme?: import("@emotion/react").Theme | undefined;
|
|
10
10
|
as?: import("react").ElementType<any> | undefined;
|
|
11
11
|
}, {}, {}>;
|
|
12
|
-
declare const Prefix: import("@emotion/native").StyledComponent<import("../Icon").IconProps & {
|
|
13
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
14
|
-
as?: import("react").ElementType<any> | undefined;
|
|
15
|
-
}, {}, {}>;
|
|
16
12
|
declare const StyledTextInput: import("@emotion/native").StyledComponent<import("react-native").TextInputProps & {
|
|
17
13
|
theme?: import("@emotion/react").Theme | undefined;
|
|
18
14
|
as?: import("react").ElementType<any> | undefined;
|
|
19
15
|
}, {}, {
|
|
20
16
|
ref?: import("react").Ref<TextInput> | undefined;
|
|
21
17
|
}>;
|
|
22
|
-
export { Container, Label,
|
|
18
|
+
export { Container, Label, StyledTextInput };
|
|
File without changes
|
|
File without changes
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { TextInputProps as NativeTextInputProps, StyleProp, ViewStyle } from 'react-native';
|
|
1
|
+
import { TextInputProps as NativeTextInputProps, StyleProp, ViewStyle, TextStyle } from 'react-native';
|
|
2
2
|
import { IconName } from '../Icon';
|
|
3
|
-
interface TextInputProps extends NativeTextInputProps {
|
|
3
|
+
export interface TextInputProps extends NativeTextInputProps {
|
|
4
4
|
/**
|
|
5
5
|
* Field label.
|
|
6
6
|
*/
|
|
@@ -10,17 +10,25 @@ interface TextInputProps extends NativeTextInputProps {
|
|
|
10
10
|
*/
|
|
11
11
|
prefix?: IconName;
|
|
12
12
|
/**
|
|
13
|
-
*
|
|
13
|
+
* Name of Icon to render on the right side of the input.
|
|
14
|
+
*/
|
|
15
|
+
suffix?: IconName;
|
|
16
|
+
/**
|
|
17
|
+
* Additional wrapper style.
|
|
14
18
|
*/
|
|
15
19
|
style?: StyleProp<ViewStyle>;
|
|
20
|
+
/**
|
|
21
|
+
* Input text style.
|
|
22
|
+
*/
|
|
23
|
+
textStyle?: StyleProp<TextStyle>;
|
|
16
24
|
/**
|
|
17
25
|
* Testing id of the component.
|
|
18
26
|
*/
|
|
19
27
|
testID?: string;
|
|
20
28
|
/**
|
|
21
|
-
* Accessibility
|
|
29
|
+
* Accessibility label for the input (Android).
|
|
22
30
|
*/
|
|
23
31
|
accessibilityLabelledBy?: string;
|
|
24
32
|
}
|
|
25
|
-
declare const TextInput: ({ label, prefix, style, testID, accessibilityLabelledBy, ...nativeProps }: TextInputProps) => JSX.Element;
|
|
33
|
+
declare const TextInput: ({ label, prefix, suffix, style, textStyle, testID, accessibilityLabelledBy, ...nativeProps }: TextInputProps) => JSX.Element;
|
|
26
34
|
export default TextInput;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/types/index.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { ThemeProvider, useTheme } from '
|
|
2
|
-
import theme, { getTheme } from './theme';
|
|
1
|
+
import theme, { getTheme, ThemeProvider, useTheme } from './theme';
|
|
3
2
|
import { scale } from './utils/scale';
|
|
4
3
|
import Alert from './components/Alert';
|
|
5
4
|
import Avatar from './components/Avatar';
|
|
@@ -18,9 +17,11 @@ import Progress from './components/Progress';
|
|
|
18
17
|
import Spinner from './components/Spinner';
|
|
19
18
|
import Radio from './components/Radio';
|
|
20
19
|
import SectionHeading from './components/SectionHeading';
|
|
20
|
+
import Select from './components/Select';
|
|
21
|
+
import Switch from './components/Switch';
|
|
21
22
|
import Tabs from './components/Tabs';
|
|
22
23
|
import Tag from './components/Tag';
|
|
23
24
|
import TextInput from './components/TextInput';
|
|
24
25
|
import Typography from './components/Typography';
|
|
25
|
-
export { theme, getTheme, useTheme, scale, ThemeProvider, Alert, Avatar, Badge, BottomNavigation, BottomSheet, Button, Card, Collapse, ContentNavigator, Divider, Drawer, FAB, Icon, Progress, Spinner, Radio, SectionHeading, Tabs, Tag, TextInput, 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, };
|
|
26
27
|
export * from './types';
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { GlobalTheme } from '../global';
|
|
2
|
+
declare const getCheckboxTheme: (theme: GlobalTheme) => {
|
|
3
|
+
colors: {
|
|
4
|
+
borderColor: string;
|
|
5
|
+
text: string;
|
|
6
|
+
disabled: string;
|
|
7
|
+
};
|
|
8
|
+
space: {
|
|
9
|
+
iconTop: number;
|
|
10
|
+
};
|
|
11
|
+
sizes: {
|
|
12
|
+
base: number;
|
|
13
|
+
};
|
|
14
|
+
radii: {
|
|
15
|
+
base: number;
|
|
16
|
+
};
|
|
17
|
+
borderWidths: {
|
|
18
|
+
default: number;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
export default getCheckboxTheme;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { GlobalTheme } from '../global';
|
|
2
|
+
declare const getSectionHeadingTheme: (theme: GlobalTheme) => {
|
|
3
|
+
colors: {
|
|
4
|
+
background: string;
|
|
5
|
+
};
|
|
6
|
+
space: {
|
|
7
|
+
headingVerticalPadding: number;
|
|
8
|
+
headingHorizontalPadding: number;
|
|
9
|
+
headingMarginBottom: number;
|
|
10
|
+
iconMarginRight: number;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
export default getSectionHeadingTheme;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { GlobalTheme } from '../global';
|
|
2
|
+
declare const getSelectTheme: (theme: GlobalTheme) => {
|
|
3
|
+
space: {
|
|
4
|
+
optionPadding: number;
|
|
5
|
+
optionListPadding: number;
|
|
6
|
+
optionListSpacing: number;
|
|
7
|
+
};
|
|
8
|
+
colors: {
|
|
9
|
+
option: string;
|
|
10
|
+
checkedOption: string;
|
|
11
|
+
footerText: string;
|
|
12
|
+
};
|
|
13
|
+
radii: {
|
|
14
|
+
option: number;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
export default getSelectTheme;
|
|
File without changes
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { GlobalTheme } from '../global';
|
|
2
|
+
declare const getSwitchTheme: (theme: GlobalTheme) => {
|
|
3
|
+
colors: {
|
|
4
|
+
thumb: string;
|
|
5
|
+
active: string;
|
|
6
|
+
inactive: string;
|
|
7
|
+
};
|
|
8
|
+
thumbSizes: {
|
|
9
|
+
small: number;
|
|
10
|
+
medium: number;
|
|
11
|
+
};
|
|
12
|
+
widths: {
|
|
13
|
+
small: number;
|
|
14
|
+
medium: number;
|
|
15
|
+
};
|
|
16
|
+
heights: {
|
|
17
|
+
small: number;
|
|
18
|
+
medium: number;
|
|
19
|
+
};
|
|
20
|
+
spaces: {
|
|
21
|
+
small: number;
|
|
22
|
+
medium: number;
|
|
23
|
+
inactive: number;
|
|
24
|
+
};
|
|
25
|
+
radii: {
|
|
26
|
+
rounded: number;
|
|
27
|
+
};
|
|
28
|
+
borderWidths: {
|
|
29
|
+
default: number;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
export default getSwitchTheme;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -31,6 +31,7 @@ declare const getGlobalTheme: (scale: Scale, systemPalette: SystemPalette) => {
|
|
|
31
31
|
outline: string;
|
|
32
32
|
archived: string;
|
|
33
33
|
black: string;
|
|
34
|
+
inactiveBackground: string;
|
|
34
35
|
};
|
|
35
36
|
fonts: import("./typography").Fonts;
|
|
36
37
|
fontSizes: import("./typography").FontSizes;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/types/theme/index.d.ts
CHANGED
|
@@ -12,8 +12,11 @@ import getDrawerTheme from './components/drawer';
|
|
|
12
12
|
import getFABTheme from './components/fab';
|
|
13
13
|
import getIconTheme from './components/icon';
|
|
14
14
|
import getProgressTheme from './components/progress';
|
|
15
|
-
import getSpinnerTheme from './components/spinner';
|
|
16
15
|
import getRadioTheme from './components/radio';
|
|
16
|
+
import getSectionHeadingTheme from './components/sectionHeading';
|
|
17
|
+
import getSelectTheme from './components/select';
|
|
18
|
+
import getSpinnerTheme from './components/spinner';
|
|
19
|
+
import getSwitchTheme from './components/switch';
|
|
17
20
|
import getTabsTheme from './components/tabs';
|
|
18
21
|
import getTagTheme from './components/tag';
|
|
19
22
|
import getTextInputTheme from './components/textInput';
|
|
@@ -33,8 +36,11 @@ declare type Theme = GlobalTheme & {
|
|
|
33
36
|
fab: ReturnType<typeof getFABTheme>;
|
|
34
37
|
icon: ReturnType<typeof getIconTheme>;
|
|
35
38
|
progress: ReturnType<typeof getProgressTheme>;
|
|
36
|
-
spinner: ReturnType<typeof getSpinnerTheme>;
|
|
37
39
|
radio: ReturnType<typeof getRadioTheme>;
|
|
40
|
+
sectionHeading: ReturnType<typeof getSectionHeadingTheme>;
|
|
41
|
+
select: ReturnType<typeof getSelectTheme>;
|
|
42
|
+
spinner: ReturnType<typeof getSpinnerTheme>;
|
|
43
|
+
switch: ReturnType<typeof getSwitchTheme>;
|
|
38
44
|
tabs: ReturnType<typeof getTabsTheme>;
|
|
39
45
|
tag: ReturnType<typeof getTagTheme>;
|
|
40
46
|
textInput: ReturnType<typeof getTextInputTheme>;
|
|
@@ -43,5 +49,14 @@ declare type Theme = GlobalTheme & {
|
|
|
43
49
|
};
|
|
44
50
|
declare const getTheme: (scale?: Scale, systemPallete?: SystemPalette) => Theme;
|
|
45
51
|
declare const theme: Theme;
|
|
46
|
-
export
|
|
52
|
+
export interface ThemeProviderProps {
|
|
53
|
+
theme: Partial<Theme> | ((outerTheme: Theme) => Theme);
|
|
54
|
+
children: React.ReactNode;
|
|
55
|
+
}
|
|
56
|
+
interface ThemeProviderType {
|
|
57
|
+
(props: ThemeProviderProps): React.ReactElement;
|
|
58
|
+
}
|
|
59
|
+
declare const ThemeProvider: ThemeProviderType;
|
|
60
|
+
declare const useTheme: () => Theme;
|
|
61
|
+
export { Theme, getTheme, ThemeProvider, useTheme };
|
|
47
62
|
export default theme;
|
package/types/types.d.ts
CHANGED
|
File without changes
|
|
File without changes
|
package/types/utils/helpers.d.ts
CHANGED
|
File without changes
|
package/types/utils/hooks.d.ts
CHANGED
|
File without changes
|
package/types/utils/scale.d.ts
CHANGED
|
File without changes
|