@fountain-ui/core 3.0.0-alpha.4 → 3.0.0-alpha.41
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 +20 -13
- 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 +1 -1
- 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 +6 -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/Modal/Modal.js +1 -1
- package/build/commonjs/Modal/Modal.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 +81 -0
- package/build/commonjs/Tabs/useTabsStyle.js.map +1 -0
- package/build/commonjs/TextField/TextField.js +60 -15
- 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 +22 -12
- package/build/commonjs/Toolbar/Toolbar.js.map +1 -1
- package/build/commonjs/Toolbar/ToolbarProps.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 +18 -22
- package/build/commonjs/Tooltip/Tooltip.js.map +1 -1
- package/build/commonjs/Tooltip/TooltipProps.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 +21 -13
- 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 +4 -4
- 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 +20 -13
- 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 +1 -1
- 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 +6 -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/Modal/Modal.js +1 -1
- package/build/module/Modal/Modal.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 +71 -0
- package/build/module/Tabs/useTabsStyle.js.map +1 -0
- package/build/module/TextField/TextField.js +60 -15
- 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 +20 -12
- package/build/module/Toolbar/Toolbar.js.map +1 -1
- package/build/module/Toolbar/ToolbarProps.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 +11 -14
- package/build/module/Tooltip/Tooltip.js.map +1 -1
- package/build/module/Tooltip/TooltipProps.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 +22 -13
- 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 +4 -4
- 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/Toolbar/ToolbarProps.d.ts +0 -5
- package/build/typescript/Tooltip/Beaks/index.d.ts +4 -0
- package/build/typescript/Tooltip/TooltipProps.d.ts +2 -2
- 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 +2 -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 +23 -14
- package/src/Accordion/AccordionProps.ts +4 -2
- package/src/Accordion/useVariantStyleMap.ts +14 -6
- package/src/AppBar/AppBar.tsx +2 -2
- 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 +5 -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/Modal/Modal.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 +79 -0
- package/src/TextField/TextField.tsx +99 -45
- 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 +26 -17
- package/src/Toolbar/ToolbarProps.ts +0 -6
- package/src/Tooltip/Beaks/index.ts +4 -0
- package/src/Tooltip/Tooltip.tsx +10 -12
- package/src/Tooltip/TooltipProps.ts +2 -2
- 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 +27 -24
- package/src/hooks/useContentContainerStyle.ts +43 -31
- package/src/hooks/useFadeInAppBar.ts +4 -4
- 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,9 +19,37 @@ const styles = StyleSheet.create({
|
|
|
19
19
|
input: {
|
|
20
20
|
flexGrow: 1,
|
|
21
21
|
},
|
|
22
|
+
inputWrapper: {
|
|
23
|
+
flexGrow: 1,
|
|
24
|
+
flexShrink: 1,
|
|
25
|
+
},
|
|
26
|
+
placeholderWrapper: {
|
|
27
|
+
...StyleSheet.absoluteFillObject,
|
|
28
|
+
justifyContent: 'center',
|
|
29
|
+
},
|
|
22
30
|
secureToggleButton: {
|
|
23
31
|
alignItems: 'flex-end',
|
|
24
32
|
padding: 0,
|
|
33
|
+
position: 'absolute',
|
|
34
|
+
right: 0,
|
|
35
|
+
},
|
|
36
|
+
searchIconContainer: {
|
|
37
|
+
left: 12,
|
|
38
|
+
position: 'absolute',
|
|
39
|
+
},
|
|
40
|
+
loadingSinner: {
|
|
41
|
+
height: 19,
|
|
42
|
+
width: 19,
|
|
43
|
+
},
|
|
44
|
+
clearButton: {
|
|
45
|
+
height: 36,
|
|
46
|
+
position: 'absolute',
|
|
47
|
+
right: 2,
|
|
48
|
+
width: 32,
|
|
49
|
+
},
|
|
50
|
+
secureButtonContainer: {
|
|
51
|
+
justifyContent: 'center',
|
|
52
|
+
width: 32,
|
|
25
53
|
},
|
|
26
54
|
});
|
|
27
55
|
|
|
@@ -35,6 +63,7 @@ const TextField = React.forwardRef<TextInput, TextFieldProps>(function TextField
|
|
|
35
63
|
onBlur,
|
|
36
64
|
onChangeText: onChangeTextProp,
|
|
37
65
|
onFocus,
|
|
66
|
+
placeholder: placeholderProp,
|
|
38
67
|
placeholderTextColor: placeholderTextColorProp,
|
|
39
68
|
secureTextEntry: secureTextEntryProp,
|
|
40
69
|
showClearButton: showClearButtonProp,
|
|
@@ -82,18 +111,22 @@ const TextField = React.forwardRef<TextInput, TextFieldProps>(function TextField
|
|
|
82
111
|
const showClearButton = showClearButtonProp ?? isSearch;
|
|
83
112
|
|
|
84
113
|
const titleFontStyle = createFontStyle(theme, {
|
|
85
|
-
|
|
114
|
+
selector: (typography) => typography.caption1['semiBold'],
|
|
86
115
|
color: theme.palette.text.strong,
|
|
87
116
|
});
|
|
88
117
|
|
|
89
118
|
const inputStyle = css([
|
|
90
119
|
styles.input,
|
|
91
120
|
variantStyles.inputStyle,
|
|
121
|
+
variantStyles.inputFontStyle,
|
|
92
122
|
Platform.OS === 'web' ? { outlineWidth: 0 } as FountainUiStyle : {},
|
|
93
123
|
styleProp,
|
|
94
124
|
]);
|
|
95
125
|
|
|
96
|
-
const
|
|
126
|
+
const placeholderFontStyle = css([
|
|
127
|
+
variantStyles.inputFontStyle,
|
|
128
|
+
{ color: placeholderTextColorProp ?? theme.palette.status.disabledLabel },
|
|
129
|
+
]);
|
|
97
130
|
|
|
98
131
|
const containerStyle = css([
|
|
99
132
|
styles.root,
|
|
@@ -112,63 +145,84 @@ const TextField = React.forwardRef<TextInput, TextFieldProps>(function TextField
|
|
|
112
145
|
) : null}
|
|
113
146
|
|
|
114
147
|
<Row style={containerStyle}>
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
<
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
148
|
+
<React.Fragment>
|
|
149
|
+
{isSearch ? (
|
|
150
|
+
<View style={styles.searchIconContainer}>
|
|
151
|
+
{isLoading ? (
|
|
152
|
+
<LoadingSpinner style={styles.loadingSinner}/>
|
|
153
|
+
) : (
|
|
154
|
+
<Search
|
|
155
|
+
color={'base'}
|
|
156
|
+
height={19}
|
|
157
|
+
width={19}
|
|
158
|
+
/>
|
|
159
|
+
)}
|
|
160
|
+
</View>
|
|
161
|
+
) : null}
|
|
162
|
+
|
|
163
|
+
<View style={styles.inputWrapper}>
|
|
164
|
+
<View
|
|
165
|
+
pointerEvents={'none'}
|
|
166
|
+
style={styles.placeholderWrapper}
|
|
167
|
+
>
|
|
168
|
+
{placeholderProp && !value ? (
|
|
169
|
+
<Text
|
|
170
|
+
children={placeholderProp}
|
|
171
|
+
numberOfLines={1}
|
|
172
|
+
style={placeholderFontStyle}
|
|
173
|
+
/>
|
|
174
|
+
) : null}
|
|
175
|
+
</View>
|
|
176
|
+
|
|
177
|
+
<TextInput
|
|
178
|
+
autoFocus={autoFocus}
|
|
179
|
+
editable={!disabled}
|
|
180
|
+
onBlur={handleBlur}
|
|
181
|
+
onChangeText={handleChangeText}
|
|
182
|
+
onFocus={handleFocus}
|
|
183
|
+
ref={ref}
|
|
184
|
+
secureTextEntry={secureTextEntry}
|
|
185
|
+
style={inputStyle}
|
|
186
|
+
value={value}
|
|
187
|
+
{...otherProps}
|
|
123
188
|
/>
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
<TextInput
|
|
128
|
-
autoFocus={autoFocus}
|
|
129
|
-
editable={!disabled}
|
|
130
|
-
onBlur={handleBlur}
|
|
131
|
-
onChangeText={handleChangeText}
|
|
132
|
-
onFocus={handleFocus}
|
|
133
|
-
placeholderTextColor={placeholderTextColor}
|
|
134
|
-
ref={ref}
|
|
135
|
-
secureTextEntry={secureTextEntry}
|
|
136
|
-
style={inputStyle}
|
|
137
|
-
value={value}
|
|
138
|
-
{...otherProps}
|
|
139
|
-
/>
|
|
189
|
+
</View>
|
|
190
|
+
</React.Fragment>
|
|
140
191
|
|
|
141
192
|
{showClearButton && value?.length && value.length > 0 ? (
|
|
142
193
|
<IconButton
|
|
143
194
|
color={'base'}
|
|
144
195
|
children={
|
|
145
196
|
<Clear
|
|
146
|
-
height={
|
|
147
|
-
width={15}
|
|
197
|
+
height={17.31}
|
|
198
|
+
width={15.9}
|
|
148
199
|
/>
|
|
149
200
|
}
|
|
150
201
|
onPress={handleClear}
|
|
202
|
+
style={styles.clearButton}
|
|
151
203
|
/>
|
|
152
204
|
) : null}
|
|
153
205
|
|
|
154
206
|
{secureTextEntryProp && !isSearch ? (
|
|
155
|
-
<
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
207
|
+
<View style={styles.secureButtonContainer}>
|
|
208
|
+
<IconButton
|
|
209
|
+
color={'base'}
|
|
210
|
+
onPress={handleSecureTogglePress}
|
|
211
|
+
style={styles.secureToggleButton}
|
|
212
|
+
>
|
|
213
|
+
{secureTextEntry ? (
|
|
214
|
+
<EyeOff
|
|
215
|
+
height={19}
|
|
216
|
+
width={17.42}
|
|
217
|
+
/>
|
|
218
|
+
) : (
|
|
219
|
+
<EyeOn
|
|
220
|
+
height={19}
|
|
221
|
+
width={17.42}
|
|
222
|
+
/>
|
|
223
|
+
)}
|
|
224
|
+
</IconButton>
|
|
225
|
+
</View>
|
|
172
226
|
) : null}
|
|
173
227
|
</Row>
|
|
174
228
|
|
|
@@ -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
|
+
gap: 16,
|
|
53
|
+
minHeight: 60,
|
|
54
|
+
paddingVertical: 16,
|
|
50
55
|
},
|
|
51
56
|
inputStyle: {
|
|
52
|
-
|
|
53
|
-
paddingVertical: theme.spacing(4),
|
|
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
|
-
}),
|
|
57
|
+
padding: 0,
|
|
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
|
@@ -1,23 +1,26 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import { View } from 'react-native';
|
|
2
3
|
import type { FountainUiStyle, NamedStylesStringUnion, UseStyles } from '@fountain-ui/styles';
|
|
3
4
|
import Row from '../Row';
|
|
4
|
-
import {
|
|
5
|
+
import { useBreakpointUp } from '../hooks';
|
|
6
|
+
import { css } from '../styles';
|
|
7
|
+
import BackButton from './BackButton';
|
|
5
8
|
import type ToolbarProps from './ToolbarProps';
|
|
6
9
|
import type { ToolbarSize } from './ToolbarProps';
|
|
7
10
|
|
|
8
|
-
type ToolbarStyles = NamedStylesStringUnion<'
|
|
11
|
+
type ToolbarStyles = NamedStylesStringUnion<'container' | 'root'>;
|
|
9
12
|
|
|
10
13
|
const useStyles: UseStyles<ToolbarStyles> = function (): ToolbarStyles {
|
|
11
|
-
const
|
|
14
|
+
const shouldApplyHorizontalPadding = useBreakpointUp('sm', true, false);
|
|
12
15
|
|
|
13
16
|
return {
|
|
17
|
+
container: {
|
|
18
|
+
paddingHorizontal: shouldApplyHorizontalPadding ? 8 : 0,
|
|
19
|
+
},
|
|
14
20
|
root: {
|
|
15
21
|
alignItems: 'center',
|
|
16
22
|
flexWrap: 'nowrap',
|
|
17
23
|
},
|
|
18
|
-
gutters: {
|
|
19
|
-
paddingHorizontal: theme.spacing(4),
|
|
20
|
-
},
|
|
21
24
|
};
|
|
22
25
|
};
|
|
23
26
|
|
|
@@ -27,9 +30,8 @@ const sizeMap: Record<ToolbarSize, FountainUiStyle> = {
|
|
|
27
30
|
large: { height: 56 },
|
|
28
31
|
};
|
|
29
32
|
|
|
30
|
-
|
|
33
|
+
const Toolbar = (props: ToolbarProps) => {
|
|
31
34
|
const {
|
|
32
|
-
disableGutters = false,
|
|
33
35
|
size = 'medium',
|
|
34
36
|
style,
|
|
35
37
|
...otherProps
|
|
@@ -37,15 +39,22 @@ export default function Toolbar(props: ToolbarProps) {
|
|
|
37
39
|
|
|
38
40
|
const styles = useStyles();
|
|
39
41
|
|
|
42
|
+
const rootStyle = css([
|
|
43
|
+
styles.root,
|
|
44
|
+
sizeMap[size],
|
|
45
|
+
style,
|
|
46
|
+
]);
|
|
47
|
+
|
|
40
48
|
return (
|
|
41
|
-
<
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
])}
|
|
48
|
-
{...otherProps}
|
|
49
|
-
/>
|
|
49
|
+
<View style={styles.container}>
|
|
50
|
+
<Row
|
|
51
|
+
style={rootStyle}
|
|
52
|
+
{...otherProps}
|
|
53
|
+
/>
|
|
54
|
+
</View>
|
|
50
55
|
);
|
|
51
56
|
};
|
|
57
|
+
|
|
58
|
+
Toolbar.BackButton = BackButton;
|
|
59
|
+
|
|
60
|
+
export default Toolbar;
|
|
@@ -11,12 +11,6 @@ export default interface ToolbarProps extends OverridableComponentProps<RowProps
|
|
|
11
11
|
*/
|
|
12
12
|
children: React.ReactNode,
|
|
13
13
|
|
|
14
|
-
/**
|
|
15
|
-
* If `true`, disables gutter padding.
|
|
16
|
-
* @default false
|
|
17
|
-
*/
|
|
18
|
-
disableGutters?: boolean,
|
|
19
|
-
|
|
20
14
|
/**
|
|
21
15
|
* Determines the height of the toolbar.
|
|
22
16
|
* @default 'medium'
|
|
@@ -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
|
@@ -3,7 +3,6 @@ import { Platform, Text, View, ViewProps } from 'react-native';
|
|
|
3
3
|
import type { WithTimingConfig } from 'react-native-reanimated';
|
|
4
4
|
import Animated, { useAnimatedStyle, useSharedValue, withTiming } from 'react-native-reanimated';
|
|
5
5
|
import type { NamedStylesStringUnion, UseStyles } from '@fountain-ui/styles';
|
|
6
|
-
import { typographyOf } from '@fountain-ui/styles';
|
|
7
6
|
import ButtonBase from '../ButtonBase';
|
|
8
7
|
import { createFontStyle, css, useTheme } from '../styles';
|
|
9
8
|
import type TooltipProps from './TooltipProps';
|
|
@@ -52,14 +51,14 @@ const useStyles: UseStyles<TooltipStyles> = function (): TooltipStyles {
|
|
|
52
51
|
},
|
|
53
52
|
small: {
|
|
54
53
|
borderRadius: theme.shape.radius.sm,
|
|
54
|
+
paddingBottom: theme.spacing(1.75),
|
|
55
55
|
paddingHorizontal: theme.spacing(2),
|
|
56
|
-
|
|
56
|
+
paddingTop: theme.spacing(1.5),
|
|
57
57
|
},
|
|
58
58
|
large: {
|
|
59
59
|
borderRadius: 5,
|
|
60
|
-
paddingBottom: theme.spacing(2.5),
|
|
61
60
|
paddingHorizontal: theme.spacing(4),
|
|
62
|
-
|
|
61
|
+
paddingVertical: theme.spacing(2),
|
|
63
62
|
},
|
|
64
63
|
};
|
|
65
64
|
};
|
|
@@ -80,6 +79,7 @@ export default function Tooltip(props: TooltipProps) {
|
|
|
80
79
|
tooltipStyle,
|
|
81
80
|
verticalOffset = 4,
|
|
82
81
|
visible = false,
|
|
82
|
+
...otherProps
|
|
83
83
|
} = props;
|
|
84
84
|
|
|
85
85
|
const {
|
|
@@ -97,7 +97,7 @@ export default function Tooltip(props: TooltipProps) {
|
|
|
97
97
|
|
|
98
98
|
const animatedStyle = useAnimatedStyle(() => ({
|
|
99
99
|
transform: [{ scale: scale.value }],
|
|
100
|
-
}), []);
|
|
100
|
+
}), [scale]);
|
|
101
101
|
|
|
102
102
|
const flexDirection = getFlexDirection(placement);
|
|
103
103
|
|
|
@@ -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
|
});
|
|
@@ -186,7 +181,10 @@ export default function Tooltip(props: TooltipProps) {
|
|
|
186
181
|
);
|
|
187
182
|
|
|
188
183
|
return (
|
|
189
|
-
<View
|
|
184
|
+
<View
|
|
185
|
+
style={style}
|
|
186
|
+
{...otherProps}
|
|
187
|
+
>
|
|
190
188
|
{children}
|
|
191
189
|
|
|
192
190
|
<Animated.View
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { TextProps, ViewProps } from 'react-native';
|
|
3
|
-
import type { ComponentProps } from '../types';
|
|
4
3
|
import type { ButtonProps } from '../Button';
|
|
4
|
+
import type { OverridableComponentProps } from '../types';
|
|
5
5
|
|
|
6
6
|
export const tooltipPlacements = ['top', 'bottom', 'left', 'right'] as const;
|
|
7
7
|
export type TooltipPlacement = typeof tooltipPlacements[number];
|
|
@@ -24,7 +24,7 @@ export type TooltipInitialLayout = {
|
|
|
24
24
|
y: number;
|
|
25
25
|
};
|
|
26
26
|
|
|
27
|
-
export default interface TooltipProps extends
|
|
27
|
+
export default interface TooltipProps extends OverridableComponentProps<ViewProps, {
|
|
28
28
|
/**
|
|
29
29
|
* Tooltip reference element.
|
|
30
30
|
*/
|
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':
|