@fountain-ui/core 3.0.0-alpha.3 → 3.0.0-alpha.31
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/build/commonjs/Accordion/Accordion.js +15 -8
- package/build/commonjs/Accordion/Accordion.js.map +1 -1
- package/build/commonjs/Accordion/AccordionProps.js.map +1 -1
- package/build/commonjs/Accordion/useVariantStyleMap.js +15 -8
- package/build/commonjs/Accordion/useVariantStyleMap.js.map +1 -1
- package/build/commonjs/AppBar/AppBar.js +7 -2
- package/build/commonjs/AppBar/AppBar.js.map +1 -1
- package/build/commonjs/Badge/Badge.js +4 -3
- package/build/commonjs/Badge/Badge.js.map +1 -1
- package/build/commonjs/Badge/BadgeProps.js.map +1 -1
- package/build/commonjs/Badge/useVariantStyleMap.js +2 -2
- package/build/commonjs/Badge/useVariantStyleMap.js.map +1 -1
- package/build/commonjs/BottomSheetTitle/BottomSheetTitle.js +5 -2
- package/build/commonjs/BottomSheetTitle/BottomSheetTitle.js.map +1 -1
- package/build/commonjs/BottomSheetTitle/BottomSheetTitleProps.js.map +1 -1
- package/build/commonjs/Button/Button.js +26 -12
- package/build/commonjs/Button/Button.js.map +1 -1
- package/build/commonjs/Button/ButtonProps.js.map +1 -1
- package/build/commonjs/Button/useVariantStyleMap.js +9 -0
- package/build/commonjs/Button/useVariantStyleMap.js.map +1 -1
- package/build/commonjs/ButtonBase/ButtonBase.js +1 -1
- package/build/commonjs/ButtonBase/ButtonBase.js.map +1 -1
- package/build/commonjs/ButtonBase/index.js +2 -2
- package/build/commonjs/ButtonBase/index.js.map +1 -1
- package/build/commonjs/Checkbox/Checkbox.js +4 -1
- package/build/commonjs/Checkbox/Checkbox.js.map +1 -1
- package/build/commonjs/Checkbox/useVariantStyleMap.js +6 -2
- package/build/commonjs/Checkbox/useVariantStyleMap.js.map +1 -1
- package/build/commonjs/Chip/Chip.js +25 -14
- package/build/commonjs/Chip/Chip.js.map +1 -1
- package/build/commonjs/Chip/ChipProps.js +3 -1
- package/build/commonjs/Chip/ChipProps.js.map +1 -1
- package/build/commonjs/Chip/index.js +6 -0
- package/build/commonjs/Chip/index.js.map +1 -1
- package/build/commonjs/Chip/useChipStyle.js +51 -31
- package/build/commonjs/Chip/useChipStyle.js.map +1 -1
- package/build/commonjs/Dialog/Dialog.js +10 -12
- package/build/commonjs/Dialog/Dialog.js.map +1 -1
- package/build/commonjs/Dialog/DialogProps.js +1 -1
- package/build/commonjs/Dialog/DialogProps.js.map +1 -1
- package/build/commonjs/Dialog/useDialogSectionStyle.js +6 -4
- package/build/commonjs/Dialog/useDialogSectionStyle.js.map +1 -1
- package/build/commonjs/Dialog/useDialogStyle.js +19 -8
- package/build/commonjs/Dialog/useDialogStyle.js.map +1 -1
- package/build/commonjs/DialogActions/DialogActions.js +0 -1
- package/build/commonjs/DialogActions/DialogActions.js.map +1 -1
- package/build/commonjs/DialogTitle/DialogLargeTitle.js +80 -0
- package/build/commonjs/DialogTitle/DialogLargeTitle.js.map +1 -0
- package/build/commonjs/DialogTitle/DialogTitle.js +8 -4
- package/build/commonjs/DialogTitle/DialogTitle.js.map +1 -1
- package/build/commonjs/Divider/Divider.js +17 -9
- package/build/commonjs/Divider/Divider.js.map +1 -1
- package/build/commonjs/Divider/DividerProps.js +1 -1
- package/build/commonjs/Divider/DividerProps.js.map +1 -1
- package/build/commonjs/Empty/Empty.js +1 -1
- package/build/commonjs/Empty/Empty.js.map +1 -1
- package/build/commonjs/Flexbox/Flexbox.js +2 -0
- package/build/commonjs/Flexbox/Flexbox.js.map +1 -1
- package/build/commonjs/Flexbox/FlexboxProps.js.map +1 -1
- package/build/commonjs/IconButton/IconButton.js +3 -0
- package/build/commonjs/IconButton/IconButton.js.map +1 -1
- package/build/commonjs/IconButton/IconButtonProps.js +1 -1
- package/build/commonjs/IconButton/IconButtonProps.js.map +1 -1
- package/build/commonjs/Image/Image.js +2 -2
- package/build/commonjs/Image/Image.js.map +1 -1
- package/build/commonjs/ImageCore/ImageCoreNative.js +1 -1
- package/build/commonjs/ImageCore/ImageCoreNative.js.map +1 -1
- package/build/commonjs/ListItem/ListItem.js +38 -26
- package/build/commonjs/ListItem/ListItem.js.map +1 -1
- package/build/commonjs/ListItem/ListItemProps.js.map +1 -1
- package/build/commonjs/ListItemIcon/ListItemIcon.js +1 -2
- package/build/commonjs/ListItemIcon/ListItemIcon.js.map +1 -1
- package/build/commonjs/ListItemSecondaryAction/ListItemSecondaryAction.js +2 -0
- package/build/commonjs/ListItemSecondaryAction/ListItemSecondaryAction.js.map +1 -1
- package/build/commonjs/ListItemText/ListItemText.js +20 -21
- package/build/commonjs/ListItemText/ListItemText.js.map +1 -1
- package/build/commonjs/ListItemText/ListItemTextProps.js.map +1 -1
- package/build/commonjs/ListSubheader/ListSubheader.js +1 -1
- package/build/commonjs/ListSubheader/ListSubheader.js.map +1 -1
- package/build/commonjs/Pagination/NumberPagination.js +4 -2
- package/build/commonjs/Pagination/NumberPagination.js.map +1 -1
- package/build/commonjs/Pagination/Pagination.js +2 -0
- package/build/commonjs/Pagination/Pagination.js.map +1 -1
- package/build/commonjs/Pagination/PaginationProps.js +3 -1
- package/build/commonjs/Pagination/PaginationProps.js.map +1 -1
- package/build/commonjs/Pagination/index.js +6 -0
- package/build/commonjs/Pagination/index.js.map +1 -1
- package/build/commonjs/PaginationItem/PaginationItem.js +32 -22
- package/build/commonjs/PaginationItem/PaginationItem.js.map +1 -1
- package/build/commonjs/PaginationItem/PaginationItemProps.js.map +1 -1
- package/build/commonjs/Radio/Radio.js +11 -4
- package/build/commonjs/Radio/Radio.js.map +1 -1
- package/build/commonjs/RadioGroup/RadioGroup.js +2 -27
- package/build/commonjs/RadioGroup/RadioGroup.js.map +1 -1
- package/build/commonjs/Section/Section.js +32 -0
- package/build/commonjs/Section/Section.js.map +1 -0
- package/build/commonjs/Section/SectionProps.js +2 -0
- package/build/commonjs/Section/SectionProps.js.map +1 -0
- package/build/commonjs/Section/index.js +16 -0
- package/build/commonjs/Section/index.js.map +1 -0
- package/build/commonjs/ShadowView/ShadowView.native.js +4 -0
- package/build/commonjs/ShadowView/ShadowView.native.js.map +1 -1
- package/build/commonjs/SnackbarContent/SnackbarContent.js +26 -9
- package/build/commonjs/SnackbarContent/SnackbarContent.js.map +1 -1
- package/build/commonjs/Tab/Tab.js +21 -19
- package/build/commonjs/Tab/Tab.js.map +1 -1
- package/build/commonjs/Tab/TabProps.js +4 -2
- package/build/commonjs/Tab/TabProps.js.map +1 -1
- package/build/commonjs/Tab/index.js +14 -0
- package/build/commonjs/Tab/index.js.map +1 -1
- package/build/commonjs/Tab/useVariantStyleMap.js +59 -18
- package/build/commonjs/Tab/useVariantStyleMap.js.map +1 -1
- package/build/commonjs/TabBase/TabBase.js +1 -8
- package/build/commonjs/TabBase/TabBase.js.map +1 -1
- package/build/commonjs/TabBase/TabBaseProps.js.map +1 -1
- package/build/commonjs/Tabs/Tabs.js +23 -7
- package/build/commonjs/Tabs/Tabs.js.map +1 -1
- package/build/commonjs/Tabs/TabsProps.js.map +1 -1
- package/build/commonjs/Tabs/index.js.map +1 -1
- package/build/commonjs/Tabs/useTabsStyle.js +80 -0
- package/build/commonjs/Tabs/useTabsStyle.js.map +1 -0
- package/build/commonjs/TextField/TextField.js +48 -12
- package/build/commonjs/TextField/TextField.js.map +1 -1
- package/build/commonjs/TextField/useVariantStyleMap.js +29 -29
- package/build/commonjs/TextField/useVariantStyleMap.js.map +1 -1
- package/build/commonjs/Toolbar/BackButton/BackButton.js +47 -0
- package/build/commonjs/Toolbar/BackButton/BackButton.js.map +1 -0
- package/build/commonjs/Toolbar/BackButton/BackButtonProps.js +2 -0
- package/build/commonjs/Toolbar/BackButton/BackButtonProps.js.map +1 -0
- package/build/commonjs/Toolbar/BackButton/index.js +16 -0
- package/build/commonjs/Toolbar/BackButton/index.js.map +1 -0
- package/build/commonjs/Toolbar/Toolbar.js +8 -4
- package/build/commonjs/Toolbar/Toolbar.js.map +1 -1
- package/build/commonjs/Tooltip/Beaks/index.js +32 -0
- package/build/commonjs/Tooltip/Beaks/index.js.map +1 -1
- package/build/commonjs/Tooltip/Tooltip.js +11 -18
- package/build/commonjs/Tooltip/Tooltip.js.map +1 -1
- package/build/commonjs/Tooltip/index.js +19 -0
- package/build/commonjs/Tooltip/index.js.map +1 -1
- package/build/commonjs/Typography/Typography.js +9 -2
- package/build/commonjs/Typography/Typography.js.map +1 -1
- package/build/commonjs/Typography/TypographyProps.js.map +1 -1
- package/build/commonjs/hooks/useBreakpointUp.js +4 -1
- package/build/commonjs/hooks/useBreakpointUp.js.map +1 -1
- package/build/commonjs/hooks/useCollapsibleAppBar.js +3 -10
- package/build/commonjs/hooks/useCollapsibleAppBar.js.map +1 -1
- package/build/commonjs/hooks/useContentContainerStyle.js +39 -25
- package/build/commonjs/hooks/useContentContainerStyle.js.map +1 -1
- package/build/commonjs/hooks/useFadeInAppBar.js +2 -2
- package/build/commonjs/hooks/useFadeInAppBar.js.map +1 -1
- package/build/commonjs/index.js +21 -0
- package/build/commonjs/index.js.map +1 -1
- package/build/commonjs/internal/icons/AppBarChevronLeft.js +23 -0
- package/build/commonjs/internal/icons/AppBarChevronLeft.js.map +1 -0
- package/build/commonjs/internal/icons/ChevronLeft.js +4 -2
- package/build/commonjs/internal/icons/ChevronLeft.js.map +1 -1
- package/build/commonjs/internal/icons/ChevronRight.js +4 -2
- package/build/commonjs/internal/icons/ChevronRight.js.map +1 -1
- package/build/commonjs/internal/icons/ChipClose.js +23 -0
- package/build/commonjs/internal/icons/ChipClose.js.map +1 -0
- package/build/commonjs/internal/icons/Clear.js +3 -3
- package/build/commonjs/internal/icons/Clear.js.map +1 -1
- package/build/commonjs/internal/icons/Close.js +4 -2
- package/build/commonjs/internal/icons/Close.js.map +1 -1
- package/build/commonjs/internal/icons/Search.js +2 -2
- package/build/commonjs/internal/icons/Search.js.map +1 -1
- package/build/commonjs/internal/icons/index.js +16 -0
- package/build/commonjs/internal/icons/index.js.map +1 -1
- package/build/module/Accordion/Accordion.js +15 -8
- package/build/module/Accordion/Accordion.js.map +1 -1
- package/build/module/Accordion/AccordionProps.js.map +1 -1
- package/build/module/Accordion/useVariantStyleMap.js +15 -8
- package/build/module/Accordion/useVariantStyleMap.js.map +1 -1
- package/build/module/AppBar/AppBar.js +6 -2
- package/build/module/AppBar/AppBar.js.map +1 -1
- package/build/module/Badge/Badge.js +4 -3
- package/build/module/Badge/Badge.js.map +1 -1
- package/build/module/Badge/BadgeProps.js.map +1 -1
- package/build/module/Badge/useVariantStyleMap.js +2 -2
- package/build/module/Badge/useVariantStyleMap.js.map +1 -1
- package/build/module/BottomSheetTitle/BottomSheetTitle.js +5 -2
- package/build/module/BottomSheetTitle/BottomSheetTitle.js.map +1 -1
- package/build/module/BottomSheetTitle/BottomSheetTitleProps.js.map +1 -1
- package/build/module/Button/Button.js +27 -13
- package/build/module/Button/Button.js.map +1 -1
- package/build/module/Button/ButtonProps.js.map +1 -1
- package/build/module/Button/useVariantStyleMap.js +9 -0
- package/build/module/Button/useVariantStyleMap.js.map +1 -1
- package/build/module/ButtonBase/ButtonBase.js +1 -1
- package/build/module/ButtonBase/ButtonBase.js.map +1 -1
- package/build/module/ButtonBase/index.js +1 -1
- package/build/module/ButtonBase/index.js.map +1 -1
- package/build/module/Checkbox/Checkbox.js +4 -1
- package/build/module/Checkbox/Checkbox.js.map +1 -1
- package/build/module/Checkbox/useVariantStyleMap.js +6 -2
- package/build/module/Checkbox/useVariantStyleMap.js.map +1 -1
- package/build/module/Chip/Chip.js +21 -13
- package/build/module/Chip/Chip.js.map +1 -1
- package/build/module/Chip/ChipProps.js +1 -0
- package/build/module/Chip/ChipProps.js.map +1 -1
- package/build/module/Chip/index.js +1 -1
- package/build/module/Chip/index.js.map +1 -1
- package/build/module/Chip/useChipStyle.js +51 -31
- package/build/module/Chip/useChipStyle.js.map +1 -1
- package/build/module/Dialog/Dialog.js +10 -11
- package/build/module/Dialog/Dialog.js.map +1 -1
- package/build/module/Dialog/DialogProps.js +1 -1
- package/build/module/Dialog/DialogProps.js.map +1 -1
- package/build/module/Dialog/useDialogSectionStyle.js +6 -4
- package/build/module/Dialog/useDialogSectionStyle.js.map +1 -1
- package/build/module/Dialog/useDialogStyle.js +18 -8
- package/build/module/Dialog/useDialogStyle.js.map +1 -1
- package/build/module/DialogActions/DialogActions.js +0 -1
- package/build/module/DialogActions/DialogActions.js.map +1 -1
- package/build/module/DialogTitle/DialogLargeTitle.js +65 -0
- package/build/module/DialogTitle/DialogLargeTitle.js.map +1 -0
- package/build/module/DialogTitle/DialogTitle.js +6 -3
- package/build/module/DialogTitle/DialogTitle.js.map +1 -1
- package/build/module/Divider/Divider.js +7 -0
- package/build/module/Divider/Divider.js.map +1 -1
- package/build/module/Divider/DividerProps.js +1 -1
- package/build/module/Divider/DividerProps.js.map +1 -1
- package/build/module/Empty/Empty.js +1 -1
- package/build/module/Empty/Empty.js.map +1 -1
- package/build/module/Flexbox/Flexbox.js +2 -0
- package/build/module/Flexbox/Flexbox.js.map +1 -1
- package/build/module/Flexbox/FlexboxProps.js.map +1 -1
- package/build/module/IconButton/IconButton.js +3 -0
- package/build/module/IconButton/IconButton.js.map +1 -1
- package/build/module/IconButton/IconButtonProps.js +1 -1
- package/build/module/IconButton/IconButtonProps.js.map +1 -1
- package/build/module/Image/Image.js +2 -2
- package/build/module/Image/Image.js.map +1 -1
- package/build/module/ImageCore/ImageCoreNative.js +1 -1
- package/build/module/ImageCore/ImageCoreNative.js.map +1 -1
- package/build/module/ListItem/ListItem.js +36 -28
- package/build/module/ListItem/ListItem.js.map +1 -1
- package/build/module/ListItem/ListItemProps.js.map +1 -1
- package/build/module/ListItemIcon/ListItemIcon.js +1 -2
- package/build/module/ListItemIcon/ListItemIcon.js.map +1 -1
- package/build/module/ListItemSecondaryAction/ListItemSecondaryAction.js +2 -0
- package/build/module/ListItemSecondaryAction/ListItemSecondaryAction.js.map +1 -1
- package/build/module/ListItemText/ListItemText.js +17 -19
- package/build/module/ListItemText/ListItemText.js.map +1 -1
- package/build/module/ListItemText/ListItemTextProps.js.map +1 -1
- package/build/module/ListSubheader/ListSubheader.js +1 -1
- package/build/module/ListSubheader/ListSubheader.js.map +1 -1
- package/build/module/Pagination/NumberPagination.js +4 -2
- package/build/module/Pagination/NumberPagination.js.map +1 -1
- package/build/module/Pagination/Pagination.js +2 -0
- package/build/module/Pagination/Pagination.js.map +1 -1
- package/build/module/Pagination/PaginationProps.js +1 -0
- package/build/module/Pagination/PaginationProps.js.map +1 -1
- package/build/module/Pagination/index.js +1 -1
- package/build/module/Pagination/index.js.map +1 -1
- package/build/module/PaginationItem/PaginationItem.js +28 -21
- package/build/module/PaginationItem/PaginationItem.js.map +1 -1
- package/build/module/PaginationItem/PaginationItemProps.js.map +1 -1
- package/build/module/Radio/Radio.js +10 -4
- package/build/module/Radio/Radio.js.map +1 -1
- package/build/module/RadioGroup/RadioGroup.js +2 -20
- package/build/module/RadioGroup/RadioGroup.js.map +1 -1
- package/build/module/Section/Section.js +19 -0
- package/build/module/Section/Section.js.map +1 -0
- package/build/module/Section/SectionProps.js +2 -0
- package/build/module/Section/SectionProps.js.map +1 -0
- package/build/module/Section/index.js +2 -0
- package/build/module/Section/index.js.map +1 -0
- package/build/module/ShadowView/ShadowView.native.js +4 -0
- package/build/module/ShadowView/ShadowView.native.js.map +1 -1
- package/build/module/SnackbarContent/SnackbarContent.js +26 -9
- package/build/module/SnackbarContent/SnackbarContent.js.map +1 -1
- package/build/module/Tab/Tab.js +22 -19
- package/build/module/Tab/Tab.js.map +1 -1
- package/build/module/Tab/TabProps.js +2 -1
- package/build/module/Tab/TabProps.js.map +1 -1
- package/build/module/Tab/index.js +1 -0
- package/build/module/Tab/index.js.map +1 -1
- package/build/module/Tab/useVariantStyleMap.js +59 -18
- package/build/module/Tab/useVariantStyleMap.js.map +1 -1
- package/build/module/TabBase/TabBase.js +1 -8
- package/build/module/TabBase/TabBase.js.map +1 -1
- package/build/module/TabBase/TabBaseProps.js.map +1 -1
- package/build/module/Tabs/Tabs.js +21 -7
- package/build/module/Tabs/Tabs.js.map +1 -1
- package/build/module/Tabs/TabsProps.js.map +1 -1
- package/build/module/Tabs/index.js.map +1 -1
- package/build/module/Tabs/useTabsStyle.js +70 -0
- package/build/module/Tabs/useTabsStyle.js.map +1 -0
- package/build/module/TextField/TextField.js +48 -12
- package/build/module/TextField/TextField.js.map +1 -1
- package/build/module/TextField/useVariantStyleMap.js +29 -29
- package/build/module/TextField/useVariantStyleMap.js.map +1 -1
- package/build/module/Toolbar/BackButton/BackButton.js +32 -0
- package/build/module/Toolbar/BackButton/BackButton.js.map +1 -0
- package/build/module/Toolbar/BackButton/BackButtonProps.js +2 -0
- package/build/module/Toolbar/BackButton/BackButtonProps.js.map +1 -0
- package/build/module/Toolbar/BackButton/index.js +2 -0
- package/build/module/Toolbar/BackButton/index.js.map +1 -0
- package/build/module/Toolbar/Toolbar.js +7 -3
- package/build/module/Toolbar/Toolbar.js.map +1 -1
- package/build/module/Tooltip/Beaks/index.js +4 -0
- package/build/module/Tooltip/Beaks/index.js.map +1 -1
- package/build/module/Tooltip/Tooltip.js +4 -10
- package/build/module/Tooltip/Tooltip.js.map +1 -1
- package/build/module/Tooltip/index.js +1 -0
- package/build/module/Tooltip/index.js.map +1 -1
- package/build/module/Typography/Typography.js +9 -2
- package/build/module/Typography/Typography.js.map +1 -1
- package/build/module/Typography/TypographyProps.js.map +1 -1
- package/build/module/hooks/useBreakpointUp.js +4 -1
- package/build/module/hooks/useBreakpointUp.js.map +1 -1
- package/build/module/hooks/useCollapsibleAppBar.js +4 -10
- package/build/module/hooks/useCollapsibleAppBar.js.map +1 -1
- package/build/module/hooks/useContentContainerStyle.js +43 -25
- package/build/module/hooks/useContentContainerStyle.js.map +1 -1
- package/build/module/hooks/useFadeInAppBar.js +2 -2
- package/build/module/hooks/useFadeInAppBar.js.map +1 -1
- package/build/module/index.js +2 -0
- package/build/module/index.js.map +1 -1
- package/build/module/internal/icons/AppBarChevronLeft.js +9 -0
- package/build/module/internal/icons/AppBarChevronLeft.js.map +1 -0
- package/build/module/internal/icons/ChevronLeft.js +4 -2
- package/build/module/internal/icons/ChevronLeft.js.map +1 -1
- package/build/module/internal/icons/ChevronRight.js +4 -2
- package/build/module/internal/icons/ChevronRight.js.map +1 -1
- package/build/module/internal/icons/ChipClose.js +9 -0
- package/build/module/internal/icons/ChipClose.js.map +1 -0
- package/build/module/internal/icons/Clear.js +3 -3
- package/build/module/internal/icons/Clear.js.map +1 -1
- package/build/module/internal/icons/Close.js +4 -2
- package/build/module/internal/icons/Close.js.map +1 -1
- package/build/module/internal/icons/Search.js +2 -2
- package/build/module/internal/icons/Search.js.map +1 -1
- package/build/module/internal/icons/index.js +2 -0
- package/build/module/internal/icons/index.js.map +1 -1
- package/build/typescript/Accordion/AccordionProps.d.ts +4 -1
- package/build/typescript/Accordion/useVariantStyleMap.d.ts +1 -0
- package/build/typescript/Badge/BadgeProps.d.ts +10 -5
- package/build/typescript/BottomSheetTitle/BottomSheetTitleProps.d.ts +1 -0
- package/build/typescript/Button/ButtonProps.d.ts +5 -0
- package/build/typescript/ButtonBase/index.d.ts +1 -1
- package/build/typescript/Checkbox/useVariantStyleMap.d.ts +1 -0
- package/build/typescript/Chip/ChipProps.d.ts +11 -4
- package/build/typescript/Chip/index.d.ts +1 -1
- package/build/typescript/Chip/useChipStyle.d.ts +6 -3
- package/build/typescript/Dialog/DialogProps.d.ts +1 -6
- package/build/typescript/Dialog/useDialogStyle.d.ts +1 -1
- package/build/typescript/DialogTitle/DialogLargeTitle.d.ts +9 -0
- package/build/typescript/DialogTitle/DialogTitle.d.ts +6 -1
- package/build/typescript/Divider/DividerProps.d.ts +1 -1
- package/build/typescript/Flexbox/FlexboxProps.d.ts +4 -0
- package/build/typescript/IconButton/IconButtonProps.d.ts +1 -1
- package/build/typescript/ListItem/ListItem.d.ts +1 -1
- package/build/typescript/ListItem/ListItemProps.d.ts +4 -0
- package/build/typescript/ListItemText/ListItemTextProps.d.ts +2 -9
- package/build/typescript/Pagination/PaginationProps.d.ts +12 -0
- package/build/typescript/Pagination/index.d.ts +2 -2
- package/build/typescript/PaginationItem/PaginationItemProps.d.ts +6 -0
- package/build/typescript/Section/Section.d.ts +3 -0
- package/build/typescript/Section/SectionProps.d.ts +6 -0
- package/build/typescript/Section/index.d.ts +2 -0
- package/build/typescript/Tab/TabProps.d.ts +21 -2
- package/build/typescript/Tab/index.d.ts +2 -1
- package/build/typescript/Tab/useVariantStyleMap.d.ts +4 -2
- package/build/typescript/TabBase/TabBaseProps.d.ts +0 -5
- package/build/typescript/Tabs/Tabs.d.ts +1 -1
- package/build/typescript/Tabs/TabsProps.d.ts +6 -1
- package/build/typescript/Tabs/index.d.ts +1 -1
- package/build/typescript/Tabs/useTabsStyle.d.ts +8 -0
- package/build/typescript/TextField/useVariantStyleMap.d.ts +2 -0
- package/build/typescript/Toolbar/BackButton/BackButton.d.ts +3 -0
- package/build/typescript/Toolbar/BackButton/BackButtonProps.d.ts +4 -0
- package/build/typescript/Toolbar/BackButton/index.d.ts +2 -0
- package/build/typescript/Toolbar/Toolbar.d.ts +6 -1
- package/build/typescript/Tooltip/Beaks/index.d.ts +4 -0
- package/build/typescript/Tooltip/index.d.ts +1 -0
- package/build/typescript/Typography/TypographyProps.d.ts +4 -0
- package/build/typescript/hooks/useCollapsibleAppBar.d.ts +0 -1
- package/build/typescript/hooks/useContentContainerStyle.d.ts +5 -8
- package/build/typescript/index.d.ts +2 -0
- package/build/typescript/internal/icons/AppBarChevronLeft.d.ts +131 -0
- package/build/typescript/internal/icons/ChipClose.d.ts +131 -0
- package/build/typescript/internal/icons/index.d.ts +2 -0
- package/package.json +5 -5
- package/src/Accordion/Accordion.tsx +18 -9
- package/src/Accordion/AccordionProps.ts +4 -2
- package/src/Accordion/useVariantStyleMap.ts +14 -6
- package/src/AppBar/AppBar.tsx +5 -1
- package/src/Badge/Badge.tsx +4 -3
- package/src/Badge/BadgeProps.ts +12 -6
- package/src/Badge/useVariantStyleMap.ts +2 -2
- package/src/BottomSheetTitle/BottomSheetTitle.tsx +4 -1
- package/src/BottomSheetTitle/BottomSheetTitleProps.ts +1 -0
- package/src/Button/Button.tsx +28 -12
- package/src/Button/ButtonProps.ts +6 -0
- package/src/Button/useVariantStyleMap.ts +9 -0
- package/src/ButtonBase/ButtonBase.tsx +1 -1
- package/src/ButtonBase/index.ts +1 -1
- package/src/Checkbox/Checkbox.tsx +11 -8
- package/src/Checkbox/useVariantStyleMap.ts +6 -1
- package/src/Chip/Chip.tsx +24 -13
- package/src/Chip/ChipProps.ts +13 -4
- package/src/Chip/index.ts +1 -1
- package/src/Chip/useChipStyle.ts +59 -29
- package/src/Dialog/Dialog.tsx +12 -11
- package/src/Dialog/DialogProps.ts +1 -7
- package/src/Dialog/useDialogSectionStyle.ts +6 -4
- package/src/Dialog/useDialogStyle.ts +19 -7
- package/src/DialogActions/DialogActions.tsx +0 -1
- package/src/DialogTitle/DialogLargeTitle.tsx +95 -0
- package/src/DialogTitle/DialogTitle.tsx +6 -1
- package/src/Divider/Divider.tsx +5 -0
- package/src/Divider/DividerProps.ts +1 -1
- package/src/Empty/Empty.tsx +1 -1
- package/src/Flexbox/Flexbox.tsx +2 -0
- package/src/Flexbox/FlexboxProps.ts +5 -0
- package/src/IconButton/IconButton.tsx +2 -0
- package/src/IconButton/IconButtonProps.ts +1 -0
- package/src/Image/Image.tsx +3 -3
- package/src/ImageCore/ImageCoreNative.tsx +1 -1
- package/src/ListItem/ListItem.tsx +61 -30
- package/src/ListItem/ListItemProps.ts +5 -0
- package/src/ListItemIcon/ListItemIcon.tsx +1 -2
- package/src/ListItemSecondaryAction/ListItemSecondaryAction.tsx +2 -0
- package/src/ListItemText/ListItemText.tsx +20 -28
- package/src/ListItemText/ListItemTextProps.ts +2 -10
- package/src/ListSubheader/ListSubheader.tsx +1 -1
- package/src/Pagination/NumberPagination.tsx +7 -2
- package/src/Pagination/Pagination.tsx +3 -2
- package/src/Pagination/PaginationProps.ts +15 -0
- package/src/Pagination/index.ts +2 -2
- package/src/PaginationItem/PaginationItem.tsx +31 -24
- package/src/PaginationItem/PaginationItemProps.ts +7 -0
- package/src/Radio/Radio.tsx +12 -3
- package/src/RadioGroup/RadioGroup.tsx +2 -28
- package/src/Section/Section.tsx +26 -0
- package/src/Section/SectionProps.ts +6 -0
- package/src/Section/index.ts +2 -0
- package/src/ShadowView/ShadowView.native.tsx +4 -0
- package/src/SnackbarContent/SnackbarContent.tsx +36 -15
- package/src/Tab/Tab.tsx +32 -22
- package/src/Tab/TabProps.ts +25 -2
- package/src/Tab/index.ts +2 -1
- package/src/Tab/useVariantStyleMap.ts +72 -19
- package/src/TabBase/TabBase.tsx +1 -9
- package/src/TabBase/TabBaseProps.ts +0 -6
- package/src/Tabs/Tabs.tsx +26 -8
- package/src/Tabs/TabsProps.ts +7 -1
- package/src/Tabs/index.ts +1 -1
- package/src/Tabs/useTabsStyle.ts +77 -0
- package/src/TextField/TextField.tsx +69 -26
- package/src/TextField/useVariantStyleMap.ts +29 -27
- package/src/Toolbar/BackButton/BackButton.tsx +44 -0
- package/src/Toolbar/BackButton/BackButtonProps.ts +4 -0
- package/src/Toolbar/BackButton/index.ts +2 -0
- package/src/Toolbar/Toolbar.tsx +6 -1
- package/src/Tooltip/Beaks/index.ts +4 -0
- package/src/Tooltip/Tooltip.tsx +4 -9
- package/src/Tooltip/index.ts +1 -0
- package/src/Typography/Typography.tsx +3 -1
- package/src/Typography/TypographyProps.ts +5 -0
- package/src/hooks/useBreakpointUp.ts +3 -1
- package/src/hooks/useCollapsibleAppBar.ts +4 -23
- package/src/hooks/useContentContainerStyle.ts +43 -31
- package/src/hooks/useFadeInAppBar.ts +2 -2
- package/src/index.ts +3 -0
- package/src/internal/icons/AppBarChevronLeft.tsx +15 -0
- package/src/internal/icons/ChevronLeft.tsx +4 -1
- package/src/internal/icons/ChevronRight.tsx +4 -1
- package/src/internal/icons/ChipClose.tsx +13 -0
- package/src/internal/icons/Clear.tsx +3 -3
- package/src/internal/icons/Close.tsx +4 -1
- package/src/internal/icons/Search.tsx +2 -2
- package/src/internal/icons/index.ts +2 -0
- package/build/commonjs/ButtonBase/LegacyButtonBase.js +0 -126
- package/build/commonjs/ButtonBase/LegacyButtonBase.js.map +0 -1
- package/build/module/ButtonBase/LegacyButtonBase.js +0 -106
- package/build/module/ButtonBase/LegacyButtonBase.js.map +0 -1
- package/build/typescript/ButtonBase/LegacyButtonBase.d.ts +0 -5
- package/src/ButtonBase/LegacyButtonBase.tsx +0 -135
|
@@ -19,10 +19,31 @@ const styles = StyleSheet.create({
|
|
|
19
19
|
input: {
|
|
20
20
|
flexGrow: 1,
|
|
21
21
|
},
|
|
22
|
+
inputWrapper: {
|
|
23
|
+
flexGrow: 1,
|
|
24
|
+
},
|
|
25
|
+
placeholderWrapper: {
|
|
26
|
+
...StyleSheet.absoluteFillObject,
|
|
27
|
+
justifyContent: 'center',
|
|
28
|
+
},
|
|
22
29
|
secureToggleButton: {
|
|
23
30
|
alignItems: 'flex-end',
|
|
24
31
|
padding: 0,
|
|
25
32
|
},
|
|
33
|
+
searchIconContainer: {
|
|
34
|
+
left: 12,
|
|
35
|
+
position: 'absolute',
|
|
36
|
+
},
|
|
37
|
+
loadingSinner: {
|
|
38
|
+
height: 19,
|
|
39
|
+
width: 19,
|
|
40
|
+
},
|
|
41
|
+
clearButton: {
|
|
42
|
+
height: 36,
|
|
43
|
+
position: 'absolute',
|
|
44
|
+
right: 2,
|
|
45
|
+
width: 32,
|
|
46
|
+
},
|
|
26
47
|
});
|
|
27
48
|
|
|
28
49
|
const TextField = React.forwardRef<TextInput, TextFieldProps>(function TextField(props, ref) {
|
|
@@ -35,6 +56,7 @@ const TextField = React.forwardRef<TextInput, TextFieldProps>(function TextField
|
|
|
35
56
|
onBlur,
|
|
36
57
|
onChangeText: onChangeTextProp,
|
|
37
58
|
onFocus,
|
|
59
|
+
placeholder: placeholderProp,
|
|
38
60
|
placeholderTextColor: placeholderTextColorProp,
|
|
39
61
|
secureTextEntry: secureTextEntryProp,
|
|
40
62
|
showClearButton: showClearButtonProp,
|
|
@@ -82,18 +104,22 @@ const TextField = React.forwardRef<TextInput, TextFieldProps>(function TextField
|
|
|
82
104
|
const showClearButton = showClearButtonProp ?? isSearch;
|
|
83
105
|
|
|
84
106
|
const titleFontStyle = createFontStyle(theme, {
|
|
85
|
-
|
|
107
|
+
selector: (typography) => typography.caption1['semiBold'],
|
|
86
108
|
color: theme.palette.text.strong,
|
|
87
109
|
});
|
|
88
110
|
|
|
89
111
|
const inputStyle = css([
|
|
90
112
|
styles.input,
|
|
91
113
|
variantStyles.inputStyle,
|
|
114
|
+
variantStyles.inputFontStyle,
|
|
92
115
|
Platform.OS === 'web' ? { outlineWidth: 0 } as FountainUiStyle : {},
|
|
93
116
|
styleProp,
|
|
94
117
|
]);
|
|
95
118
|
|
|
96
|
-
const
|
|
119
|
+
const placeholderFontStyle = css([
|
|
120
|
+
variantStyles.inputFontStyle,
|
|
121
|
+
{ color: placeholderTextColorProp ?? theme.palette.status.disabledLabel },
|
|
122
|
+
]);
|
|
97
123
|
|
|
98
124
|
const containerStyle = css([
|
|
99
125
|
styles.root,
|
|
@@ -113,41 +139,58 @@ const TextField = React.forwardRef<TextInput, TextFieldProps>(function TextField
|
|
|
113
139
|
|
|
114
140
|
<Row style={containerStyle}>
|
|
115
141
|
{isSearch ? (
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
142
|
+
<View style={styles.searchIconContainer}>
|
|
143
|
+
{isLoading ? (
|
|
144
|
+
<LoadingSpinner style={styles.loadingSinner}/>
|
|
145
|
+
) : (
|
|
146
|
+
<Search
|
|
147
|
+
color={'base'}
|
|
148
|
+
height={19}
|
|
149
|
+
width={19}
|
|
150
|
+
/>
|
|
151
|
+
)}
|
|
152
|
+
</View>
|
|
125
153
|
) : null}
|
|
126
154
|
|
|
127
|
-
<
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
155
|
+
<View style={styles.inputWrapper}>
|
|
156
|
+
<View
|
|
157
|
+
pointerEvents={'none'}
|
|
158
|
+
style={styles.placeholderWrapper}
|
|
159
|
+
>
|
|
160
|
+
{placeholderProp && !value ? (
|
|
161
|
+
<Text
|
|
162
|
+
children={placeholderProp}
|
|
163
|
+
numberOfLines={1}
|
|
164
|
+
style={placeholderFontStyle}
|
|
165
|
+
/>
|
|
166
|
+
) : null}
|
|
167
|
+
</View>
|
|
168
|
+
|
|
169
|
+
<TextInput
|
|
170
|
+
autoFocus={autoFocus}
|
|
171
|
+
editable={!disabled}
|
|
172
|
+
onBlur={handleBlur}
|
|
173
|
+
onChangeText={handleChangeText}
|
|
174
|
+
onFocus={handleFocus}
|
|
175
|
+
ref={ref}
|
|
176
|
+
secureTextEntry={secureTextEntry}
|
|
177
|
+
style={inputStyle}
|
|
178
|
+
value={value}
|
|
179
|
+
{...otherProps}
|
|
180
|
+
/>
|
|
181
|
+
</View>
|
|
140
182
|
|
|
141
183
|
{showClearButton && value?.length && value.length > 0 ? (
|
|
142
184
|
<IconButton
|
|
143
185
|
color={'base'}
|
|
144
186
|
children={
|
|
145
187
|
<Clear
|
|
146
|
-
height={
|
|
147
|
-
width={15}
|
|
188
|
+
height={17.31}
|
|
189
|
+
width={15.9}
|
|
148
190
|
/>
|
|
149
191
|
}
|
|
150
192
|
onPress={handleClear}
|
|
193
|
+
style={styles.clearButton}
|
|
151
194
|
/>
|
|
152
195
|
) : null}
|
|
153
196
|
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { useMemo } from 'react';
|
|
2
|
+
import type { TextStyle } from 'react-native';
|
|
2
3
|
import type { FountainUiStyle, Theme } from '@fountain-ui/styles';
|
|
3
4
|
import { typographyOf } from '@fountain-ui/styles';
|
|
4
5
|
import { createFontStyle, useTheme } from '../styles';
|
|
@@ -6,6 +7,7 @@ import type { TextFieldStatus, TextFieldVariant } from './TextFieldProps';
|
|
|
6
7
|
|
|
7
8
|
interface VariantStyleMap {
|
|
8
9
|
containerStyle?: FountainUiStyle;
|
|
10
|
+
inputFontStyle?: TextStyle;
|
|
9
11
|
inputStyle?: FountainUiStyle;
|
|
10
12
|
hintStyle?: FountainUiStyle;
|
|
11
13
|
}
|
|
@@ -47,24 +49,26 @@ export default function useVariantStyleMap(variant: TextFieldVariant, status: Te
|
|
|
47
49
|
containerStyle: {
|
|
48
50
|
borderBottomColor: status === 'default' && isFocused ? theme.palette.border.strong : borderColor,
|
|
49
51
|
borderBottomWidth: 1,
|
|
52
|
+
minHeight: 60,
|
|
53
|
+
paddingVertical: 16,
|
|
50
54
|
},
|
|
51
55
|
inputStyle: {
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
...createFontStyle(theme, {
|
|
55
|
-
selector: (_) => typographyOf({
|
|
56
|
-
fontSize: 18,
|
|
57
|
-
lineHeight: 27,
|
|
58
|
-
fontFamily: 'Pretendard-SemiBold',
|
|
59
|
-
letterSpacing: 0,
|
|
60
|
-
}),
|
|
61
|
-
color: theme.palette.text.strong,
|
|
62
|
-
}),
|
|
56
|
+
padding: 0,
|
|
57
|
+
paddingRight: 16,
|
|
63
58
|
},
|
|
59
|
+
inputFontStyle: createFontStyle(theme, {
|
|
60
|
+
selector: (_) => typographyOf({
|
|
61
|
+
fontSize: 18,
|
|
62
|
+
lineHeight: 27,
|
|
63
|
+
fontFamily: 'PretendardStd-SemiBold',
|
|
64
|
+
letterSpacing: 0,
|
|
65
|
+
}),
|
|
66
|
+
color: theme.palette.text.strong,
|
|
67
|
+
}),
|
|
64
68
|
hintStyle: {
|
|
65
69
|
marginTop: theme.spacing(2),
|
|
66
70
|
...createFontStyle(theme, {
|
|
67
|
-
|
|
71
|
+
selector: (typography) => typography.caption1['regular'],
|
|
68
72
|
color: hintColor,
|
|
69
73
|
}),
|
|
70
74
|
},
|
|
@@ -76,24 +80,22 @@ export default function useVariantStyleMap(variant: TextFieldVariant, status: Te
|
|
|
76
80
|
borderColor: theme.palette.border.base,
|
|
77
81
|
borderRadius: theme.shape.radius.md,
|
|
78
82
|
borderWidth: 0.5,
|
|
79
|
-
|
|
80
|
-
|
|
83
|
+
paddingBottom: 12,
|
|
84
|
+
paddingHorizontal: 39,
|
|
85
|
+
paddingTop: 11,
|
|
81
86
|
},
|
|
82
87
|
inputStyle: {
|
|
83
|
-
|
|
84
|
-
paddingLeft: theme.spacing(2),
|
|
85
|
-
paddingRight: theme.spacing(1),
|
|
86
|
-
paddingTop: theme.spacing(2.25),
|
|
87
|
-
...createFontStyle(theme, {
|
|
88
|
-
selector: (_) => typographyOf({
|
|
89
|
-
fontSize: 16,
|
|
90
|
-
lineHeight: 19.2,
|
|
91
|
-
fontFamily: 'Pretendard-SemiBold',
|
|
92
|
-
letterSpacing: -0.16,
|
|
93
|
-
}),
|
|
94
|
-
color: theme.palette.text.strong,
|
|
95
|
-
}),
|
|
88
|
+
padding: 0,
|
|
96
89
|
},
|
|
90
|
+
inputFontStyle: createFontStyle(theme, {
|
|
91
|
+
selector: (_) => typographyOf({
|
|
92
|
+
fontSize: 16,
|
|
93
|
+
lineHeight: 19.2,
|
|
94
|
+
fontFamily: 'PretendardStd-SemiBold',
|
|
95
|
+
letterSpacing: -0.16,
|
|
96
|
+
}),
|
|
97
|
+
color: theme.palette.text.strong,
|
|
98
|
+
}),
|
|
97
99
|
};
|
|
98
100
|
}
|
|
99
101
|
}, [theme, borderColor, hintColor, variant, isFocused]);
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { StyleSheet } from 'react-native';
|
|
3
|
+
import IconButton from '../../IconButton';
|
|
4
|
+
import { AppBarChevronLeft } from '../../internal';
|
|
5
|
+
import type BackButtonProps from './BackButtonProps';
|
|
6
|
+
import { css } from '@fountain-ui/styles';
|
|
7
|
+
|
|
8
|
+
const styles = StyleSheet.create({
|
|
9
|
+
root: {
|
|
10
|
+
height: 40,
|
|
11
|
+
left: 4,
|
|
12
|
+
paddingLeft: 5,
|
|
13
|
+
paddingRight: 11,
|
|
14
|
+
paddingVertical: 8,
|
|
15
|
+
position: 'absolute',
|
|
16
|
+
width: 40,
|
|
17
|
+
},
|
|
18
|
+
});
|
|
19
|
+
|
|
20
|
+
export default function BackButton(props: BackButtonProps) {
|
|
21
|
+
const {
|
|
22
|
+
style: styleProp,
|
|
23
|
+
...otherProps
|
|
24
|
+
} = props;
|
|
25
|
+
|
|
26
|
+
const rootStyle = css([
|
|
27
|
+
styles.root,
|
|
28
|
+
styleProp,
|
|
29
|
+
]);
|
|
30
|
+
|
|
31
|
+
return (
|
|
32
|
+
<IconButton
|
|
33
|
+
style={rootStyle}
|
|
34
|
+
{...otherProps}
|
|
35
|
+
>
|
|
36
|
+
<React.Fragment>
|
|
37
|
+
<AppBarChevronLeft
|
|
38
|
+
height={24}
|
|
39
|
+
width={24}
|
|
40
|
+
/>
|
|
41
|
+
</React.Fragment>
|
|
42
|
+
</IconButton>
|
|
43
|
+
);
|
|
44
|
+
}
|
package/src/Toolbar/Toolbar.tsx
CHANGED
|
@@ -2,6 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import type { FountainUiStyle, NamedStylesStringUnion, UseStyles } from '@fountain-ui/styles';
|
|
3
3
|
import Row from '../Row';
|
|
4
4
|
import { css, useTheme } from '../styles';
|
|
5
|
+
import BackButton from './BackButton';
|
|
5
6
|
import type ToolbarProps from './ToolbarProps';
|
|
6
7
|
import type { ToolbarSize } from './ToolbarProps';
|
|
7
8
|
|
|
@@ -27,7 +28,7 @@ const sizeMap: Record<ToolbarSize, FountainUiStyle> = {
|
|
|
27
28
|
large: { height: 56 },
|
|
28
29
|
};
|
|
29
30
|
|
|
30
|
-
|
|
31
|
+
const Toolbar = (props: ToolbarProps) => {
|
|
31
32
|
const {
|
|
32
33
|
disableGutters = false,
|
|
33
34
|
size = 'medium',
|
|
@@ -49,3 +50,7 @@ export default function Toolbar(props: ToolbarProps) {
|
|
|
49
50
|
/>
|
|
50
51
|
);
|
|
51
52
|
};
|
|
53
|
+
|
|
54
|
+
Toolbar.BackButton = BackButton;
|
|
55
|
+
|
|
56
|
+
export default Toolbar;
|
|
@@ -1,2 +1,6 @@
|
|
|
1
1
|
export { default } from './Beak';
|
|
2
2
|
export type { default as BeakProps } from './BeakProps';
|
|
3
|
+
export { default as HorizontalLargeBeak } from './HorizontalLargeBeak';
|
|
4
|
+
export { default as HorizontalSmallBeak } from './HorizontalSmallBeak';
|
|
5
|
+
export { default as VerticalLargeBeak } from './VerticalLargeBeak';
|
|
6
|
+
export { default as VerticalSmallBeak } from './VerticalSmallBeak';
|
package/src/Tooltip/Tooltip.tsx
CHANGED
|
@@ -52,14 +52,14 @@ const useStyles: UseStyles<TooltipStyles> = function (): TooltipStyles {
|
|
|
52
52
|
},
|
|
53
53
|
small: {
|
|
54
54
|
borderRadius: theme.shape.radius.sm,
|
|
55
|
+
paddingBottom: theme.spacing(1.75),
|
|
55
56
|
paddingHorizontal: theme.spacing(2),
|
|
56
|
-
|
|
57
|
+
paddingTop: theme.spacing(1.5),
|
|
57
58
|
},
|
|
58
59
|
large: {
|
|
59
60
|
borderRadius: 5,
|
|
60
|
-
paddingBottom: theme.spacing(2.5),
|
|
61
61
|
paddingHorizontal: theme.spacing(4),
|
|
62
|
-
|
|
62
|
+
paddingVertical: theme.spacing(2),
|
|
63
63
|
},
|
|
64
64
|
};
|
|
65
65
|
};
|
|
@@ -140,12 +140,7 @@ export default function Tooltip(props: TooltipProps) {
|
|
|
140
140
|
|
|
141
141
|
const fontStyle = createFontStyle(theme, {
|
|
142
142
|
selector: (typo) => size === 'large'
|
|
143
|
-
?
|
|
144
|
-
fontSize: 13,
|
|
145
|
-
lineHeight: 19.5,
|
|
146
|
-
fontFamily: 'Pretendard-Regular',
|
|
147
|
-
letterSpacing: 0,
|
|
148
|
-
})
|
|
143
|
+
? typo.body3.regular
|
|
149
144
|
: typo.caption2.regular,
|
|
150
145
|
color: theme.palette.text.strongInverse,
|
|
151
146
|
});
|
package/src/Tooltip/index.ts
CHANGED
|
@@ -46,6 +46,7 @@ const Typography = React.forwardRef<Text, TypographyProps>(function Typography(p
|
|
|
46
46
|
color: colorProp = 'inherit' as TypographyColor,
|
|
47
47
|
ellipsizeMode = 'tail' as TextProps['ellipsizeMode'],
|
|
48
48
|
href,
|
|
49
|
+
lineHeight,
|
|
49
50
|
numberOfLines,
|
|
50
51
|
onPress,
|
|
51
52
|
selectable,
|
|
@@ -59,7 +60,7 @@ const Typography = React.forwardRef<Text, TypographyProps>(function Typography(p
|
|
|
59
60
|
const theme = useTheme();
|
|
60
61
|
|
|
61
62
|
const fontStyle = createFontStyle(theme, {
|
|
62
|
-
selector: (typography) => typography[variant][weight],
|
|
63
|
+
selector: (typography) => typography[variant]?.[weight],
|
|
63
64
|
color: selectColor(theme, colorProp),
|
|
64
65
|
});
|
|
65
66
|
|
|
@@ -71,6 +72,7 @@ const Typography = React.forwardRef<Text, TypographyProps>(function Typography(p
|
|
|
71
72
|
{ textAlign: align === 'inherit' ? 'auto' : align },
|
|
72
73
|
textWrapStyle as TextStyle,
|
|
73
74
|
fontStyle,
|
|
75
|
+
lineHeight ? { lineHeight } : undefined,
|
|
74
76
|
style,
|
|
75
77
|
]);
|
|
76
78
|
|
|
@@ -76,6 +76,11 @@ export default interface TypographyProps extends ComponentProps<{
|
|
|
76
76
|
*/
|
|
77
77
|
href?: string;
|
|
78
78
|
|
|
79
|
+
/**
|
|
80
|
+
* Defines the vertical spacing between lines of text.
|
|
81
|
+
*/
|
|
82
|
+
lineHeight?: TextStyle['lineHeight'];
|
|
83
|
+
|
|
79
84
|
/**
|
|
80
85
|
* Used to truncate the text with an ellipsis after computing the text
|
|
81
86
|
* layout, including line wrapping, such that the total number of lines
|
|
@@ -12,8 +12,10 @@ export default function useBreakpointUp<R>(target: Breakpoint, yes: R, no: R): R
|
|
|
12
12
|
// TODO: Needs to refactor
|
|
13
13
|
const isUp = useMemo<boolean>(() => {
|
|
14
14
|
switch (target) {
|
|
15
|
-
case '
|
|
15
|
+
case 'xxs':
|
|
16
16
|
return true;
|
|
17
|
+
case 'xs':
|
|
18
|
+
return current === 'xs' || current === 'sm' || current === 'md' || current === 'lg';
|
|
17
19
|
case 'sm':
|
|
18
20
|
return current === 'sm' || current === 'md' || current === 'lg';
|
|
19
21
|
case 'md':
|
|
@@ -1,14 +1,5 @@
|
|
|
1
1
|
import { useCallback, useRef, useState } from 'react';
|
|
2
|
-
import {
|
|
3
|
-
Falsy,
|
|
4
|
-
Keyboard,
|
|
5
|
-
Platform,
|
|
6
|
-
RegisteredStyle,
|
|
7
|
-
ScrollViewProps,
|
|
8
|
-
StyleSheet,
|
|
9
|
-
ViewProps,
|
|
10
|
-
ViewStyle,
|
|
11
|
-
} from 'react-native';
|
|
2
|
+
import { Falsy, Keyboard, Platform, RegisteredStyle, ScrollViewProps, ViewProps, ViewStyle } from 'react-native';
|
|
12
3
|
import type { WithTimingConfig } from 'react-native-reanimated';
|
|
13
4
|
import {
|
|
14
5
|
runOnJS,
|
|
@@ -19,7 +10,6 @@ import {
|
|
|
19
10
|
withTiming,
|
|
20
11
|
} from 'react-native-reanimated';
|
|
21
12
|
import { useSafeAreaInsets } from 'react-native-safe-area-context';
|
|
22
|
-
import { useTheme } from '@fountain-ui/styles';
|
|
23
13
|
import { useHeight } from '../internal/hooks';
|
|
24
14
|
import useAppbarStyles from './useAppbarStyles';
|
|
25
15
|
|
|
@@ -40,7 +30,6 @@ export interface ContentInsets {
|
|
|
40
30
|
|
|
41
31
|
export interface Options {
|
|
42
32
|
keyboardDismissMode?: 'none' | 'on-drag';
|
|
43
|
-
dividerExposureMode?: 'always' | 'overlapped';
|
|
44
33
|
supportsReverseScroll?: boolean;
|
|
45
34
|
}
|
|
46
35
|
|
|
@@ -56,7 +45,6 @@ export interface CollapsibleAppBar {
|
|
|
56
45
|
|
|
57
46
|
const defaultOptions: Required<Options> = {
|
|
58
47
|
keyboardDismissMode: 'none',
|
|
59
|
-
dividerExposureMode: 'overlapped',
|
|
60
48
|
supportsReverseScroll: true,
|
|
61
49
|
};
|
|
62
50
|
|
|
@@ -67,7 +55,7 @@ const SUPPORTS_DRAG_DETECTION = Platform.OS !== 'web';
|
|
|
67
55
|
const dismissKeyboard = () => Keyboard.dismiss();
|
|
68
56
|
|
|
69
57
|
export default function useCollapsibleAppBar(userOptions: Options = defaultOptions): CollapsibleAppBar {
|
|
70
|
-
const { keyboardDismissMode,
|
|
58
|
+
const { keyboardDismissMode, supportsReverseScroll }: Required<Options> = {
|
|
71
59
|
...defaultOptions,
|
|
72
60
|
...userOptions,
|
|
73
61
|
};
|
|
@@ -88,20 +76,13 @@ export default function useCollapsibleAppBar(userOptions: Options = defaultOptio
|
|
|
88
76
|
|
|
89
77
|
const [isScrolled, setIsScrolled] = useState<boolean>(false);
|
|
90
78
|
|
|
91
|
-
const theme = useTheme();
|
|
92
|
-
|
|
93
79
|
const animatedStyle = useAnimatedStyle(() => {
|
|
94
80
|
const transform = [{ translateY: translateY.value }];
|
|
95
81
|
|
|
96
82
|
return {
|
|
97
83
|
transform,
|
|
98
|
-
borderColor: dividerExposureMode === 'always' || overlapped.value ? theme.palette.divider : TRANSPARENT,
|
|
99
|
-
borderBottomWidth: StyleSheet.hairlineWidth,
|
|
100
84
|
};
|
|
101
|
-
}, [
|
|
102
|
-
theme,
|
|
103
|
-
dividerExposureMode,
|
|
104
|
-
]);
|
|
85
|
+
}, []);
|
|
105
86
|
|
|
106
87
|
const indexRef = useRef<number>(0);
|
|
107
88
|
const offsetsRef = useRef<Array<number>>([]);
|
|
@@ -205,7 +186,7 @@ export default function useCollapsibleAppBar(userOptions: Options = defaultOptio
|
|
|
205
186
|
|
|
206
187
|
translateY.value = withTiming(nextTranslateY, ANIMATION_CONFIG);
|
|
207
188
|
},
|
|
208
|
-
}
|
|
189
|
+
});
|
|
209
190
|
|
|
210
191
|
const hasCollapsible = collapsibleToolbarHeight > 0;
|
|
211
192
|
|
|
@@ -1,60 +1,72 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { FountainUiStyle } from '@fountain-ui/styles';
|
|
2
|
+
import { css, useTheme } from '../styles';
|
|
2
3
|
import type { Theme } from '../types';
|
|
3
|
-
import { useTheme } from '../styles';
|
|
4
|
-
import useBreakpointUp from './useBreakpointUp';
|
|
5
4
|
|
|
6
5
|
type Breakpoint = keyof Theme['breakpoints']['values'];
|
|
7
6
|
|
|
8
|
-
type ContentContainerStyle = ScrollViewProps['contentContainerStyle'];
|
|
9
|
-
|
|
10
7
|
export interface Config {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
8
|
+
maxWidth?: number;
|
|
9
|
+
styleProvider?: (theme: Theme) => FountainUiStyle;
|
|
10
|
+
isHomeScreen?: boolean;
|
|
14
11
|
}
|
|
15
12
|
|
|
16
|
-
|
|
17
|
-
breakpoint
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
13
|
+
function getMaxWidth(theme: Theme, breakpoint: Breakpoint, customMaxWidth?: number): number | undefined {
|
|
14
|
+
switch (breakpoint) {
|
|
15
|
+
case 'lg':
|
|
16
|
+
case 'md':
|
|
17
|
+
return customMaxWidth ?? theme.breakpoints.values[breakpoint];
|
|
18
|
+
default:
|
|
19
|
+
return undefined;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
21
22
|
|
|
22
|
-
|
|
23
|
-
function getMaxWidth(theme: Theme, breakpoint: Breakpoint): ViewStyle['maxWidth'] {
|
|
23
|
+
function getHomeScreenPaddingHorizontal(theme: Theme, breakpoint: Breakpoint): number {
|
|
24
24
|
switch (breakpoint) {
|
|
25
|
+
case 'xxs':
|
|
25
26
|
case 'xs':
|
|
26
|
-
return theme.
|
|
27
|
+
return theme.spacing(3);
|
|
27
28
|
case 'sm':
|
|
28
|
-
return theme.
|
|
29
|
+
return theme.spacing(6);
|
|
29
30
|
case 'md':
|
|
30
|
-
return theme.breakpoints.values['lg'];
|
|
31
31
|
case 'lg':
|
|
32
|
-
|
|
32
|
+
default:
|
|
33
|
+
return theme.spacing(4);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
function getPaddingHorizontal(theme: Theme, breakpoint: Breakpoint, isHomeScreen?: boolean): number {
|
|
38
|
+
if (isHomeScreen) {
|
|
39
|
+
return getHomeScreenPaddingHorizontal(theme, breakpoint);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
switch (breakpoint) {
|
|
43
|
+
case 'sm':
|
|
44
|
+
return theme.spacing(6);
|
|
45
|
+
default:
|
|
46
|
+
return theme.spacing(4);
|
|
33
47
|
}
|
|
34
48
|
}
|
|
35
49
|
|
|
36
|
-
export default function useContentContainerStyle(config: Config =
|
|
50
|
+
export default function useContentContainerStyle(config: Config = {}): FountainUiStyle {
|
|
37
51
|
const {
|
|
38
|
-
|
|
39
|
-
maxWidth,
|
|
52
|
+
maxWidth: customMaxWidth,
|
|
40
53
|
styleProvider,
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
...config,
|
|
44
|
-
};
|
|
54
|
+
isHomeScreen = false,
|
|
55
|
+
} = config;
|
|
45
56
|
|
|
46
57
|
const theme = useTheme();
|
|
47
58
|
|
|
59
|
+
const currentBreakpoint = theme.breakpoints.current;
|
|
60
|
+
|
|
48
61
|
const additionalStyle = styleProvider?.(theme);
|
|
49
62
|
|
|
50
|
-
|
|
63
|
+
return css([
|
|
51
64
|
{
|
|
52
65
|
alignSelf: 'center',
|
|
53
|
-
maxWidth: getMaxWidth(theme,
|
|
66
|
+
maxWidth: getMaxWidth(theme, currentBreakpoint, customMaxWidth),
|
|
67
|
+
paddingHorizontal: getPaddingHorizontal(theme, currentBreakpoint, isHomeScreen),
|
|
54
68
|
width: '100%',
|
|
55
69
|
},
|
|
56
70
|
additionalStyle,
|
|
57
|
-
];
|
|
58
|
-
|
|
59
|
-
return useBreakpointUp(breakpoint, yesStyle, additionalStyle);
|
|
71
|
+
]);
|
|
60
72
|
};
|
|
@@ -76,7 +76,7 @@ export default function useFadeInAppBar(userOptions: Options = defaultOptions):
|
|
|
76
76
|
const lastOffsetY = useSharedValue<number>(0);
|
|
77
77
|
const normalized = useSharedValue<number>(0);
|
|
78
78
|
|
|
79
|
-
const originalBackgroundColor = theme.palette.background.
|
|
79
|
+
const originalBackgroundColor = theme.palette.background.base;
|
|
80
80
|
const rgbValues = useMemo(() => rgb(originalBackgroundColor), [originalBackgroundColor]);
|
|
81
81
|
|
|
82
82
|
const animatedAppBarStyle = useAnimatedStyle(() => {
|
|
@@ -117,7 +117,7 @@ export default function useFadeInAppBar(userOptions: Options = defaultOptions):
|
|
|
117
117
|
onMomentumEnd: (event) => {
|
|
118
118
|
lastOffsetY.value = event.contentOffset.y;
|
|
119
119
|
},
|
|
120
|
-
}
|
|
120
|
+
});
|
|
121
121
|
|
|
122
122
|
const appBarStyle = [
|
|
123
123
|
animatedAppBarStyle,
|
package/src/index.ts
CHANGED
|
@@ -149,6 +149,9 @@ export * from './RadioGroup';
|
|
|
149
149
|
export { default as Row } from './Row';
|
|
150
150
|
export * from './Row';
|
|
151
151
|
|
|
152
|
+
export { default as Section } from './Section';
|
|
153
|
+
export * from './Section';
|
|
154
|
+
|
|
152
155
|
export { default as ShadowView } from './ShadowView';
|
|
153
156
|
export * from './ShadowView';
|
|
154
157
|
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Path } from 'react-native-svg';
|
|
3
|
+
import { createSvgIcon } from '../../utils';
|
|
4
|
+
|
|
5
|
+
export default createSvgIcon(
|
|
6
|
+
<React.Fragment>
|
|
7
|
+
<Path
|
|
8
|
+
fillRule="evenodd"
|
|
9
|
+
clipRule="evenodd"
|
|
10
|
+
d="M7.29289 12.7071C6.90237 12.3166 6.90237 11.6834 7.29289 11.2929L15.2929 3.29289C15.6834 2.90237 16.3166 2.90237 16.7071 3.29289C17.0976 3.68342 17.0976 4.31658 16.7071 4.70711L9.41421 12L16.7071 19.2929C17.0976 19.6834 17.0976 20.3166 16.7071 20.7071C16.3166 21.0976 15.6834 21.0976 15.2929 20.7071L7.29289 12.7071Z"
|
|
11
|
+
/>
|
|
12
|
+
</React.Fragment>,
|
|
13
|
+
'AppBarChevronLeft',
|
|
14
|
+
'0 0 24 24',
|
|
15
|
+
);
|
|
@@ -4,7 +4,10 @@ import { createSvgIcon } from '../../utils';
|
|
|
4
4
|
|
|
5
5
|
export default createSvgIcon(
|
|
6
6
|
<Path
|
|
7
|
-
|
|
7
|
+
fillRule="evenodd"
|
|
8
|
+
clipRule="evenodd"
|
|
9
|
+
d="M0 12C3.16267e-09 11.7348 0.105357 11.4804 0.292893 11.2929L6.29289 5.29289C6.68342 4.90237 7.31658 4.90237 7.70711 5.29289C8.09763 5.68342 8.09763 6.31658 7.70711 6.70711L2.41421 12L7.70711 17.2929C8.09763 17.6834 8.09763 18.3166 7.70711 18.7071C7.31658 19.0976 6.68342 19.0976 6.29289 18.7071L0.292893 12.7071C0.105357 12.5196 -3.16267e-09 12.2652 0 12Z"
|
|
8
10
|
/>,
|
|
9
11
|
'ChevronLeft',
|
|
12
|
+
'0 0 8 24',
|
|
10
13
|
);
|