@fountain-ui/core 3.0.0-alpha.1 → 3.0.0-alpha.11
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 +4 -1
- package/build/commonjs/Accordion/Accordion.js.map +1 -1
- package/build/commonjs/Accordion/index.js +8 -0
- package/build/commonjs/Accordion/index.js.map +1 -1
- package/build/commonjs/Accordion/useVariantStyleMap.js +11 -10
- package/build/commonjs/Accordion/useVariantStyleMap.js.map +1 -1
- package/build/commonjs/AppBar/AppBar.js +6 -1
- package/build/commonjs/AppBar/AppBar.js.map +1 -1
- package/build/commonjs/AppBar/index.js +8 -0
- package/build/commonjs/AppBar/index.js.map +1 -1
- package/build/commonjs/Badge/index.js +26 -0
- package/build/commonjs/Badge/index.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 +1 -0
- package/build/commonjs/BottomSheetTitle/BottomSheetTitle.js.map +1 -1
- package/build/commonjs/Button/Button.js +15 -3
- package/build/commonjs/Button/Button.js.map +1 -1
- package/build/commonjs/Button/ButtonProps.js +7 -7
- package/build/commonjs/Button/ButtonProps.js.map +1 -1
- package/build/commonjs/Button/index.js +20 -0
- package/build/commonjs/Button/index.js.map +1 -1
- package/build/commonjs/Button/useVariantStyleMap.js +5 -7
- package/build/commonjs/Button/useVariantStyleMap.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 +5 -2
- package/build/commonjs/Checkbox/Checkbox.js.map +1 -1
- package/build/commonjs/Checkbox/index.js +8 -0
- package/build/commonjs/Checkbox/index.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 +21 -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 +20 -0
- package/build/commonjs/Chip/index.js.map +1 -1
- package/build/commonjs/Chip/useChipStyle.js +31 -37
- package/build/commonjs/Chip/useChipStyle.js.map +1 -1
- package/build/commonjs/Dialog/Dialog.js +7 -8
- 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/index.js +8 -0
- package/build/commonjs/Dialog/index.js.map +1 -1
- package/build/commonjs/Dialog/useDialogSectionStyle.js +5 -5
- package/build/commonjs/Dialog/useDialogSectionStyle.js.map +1 -1
- package/build/commonjs/Dialog/useDialogStyle.js +9 -8
- package/build/commonjs/Dialog/useDialogStyle.js.map +1 -1
- package/build/commonjs/DialogContent/DialogContent.js +1 -2
- package/build/commonjs/DialogContent/DialogContent.js.map +1 -1
- package/build/commonjs/DialogTitle/BackButton.js +47 -0
- package/build/commonjs/DialogTitle/BackButton.js.map +1 -0
- package/build/commonjs/DialogTitle/CloseButton.js +45 -0
- package/build/commonjs/DialogTitle/CloseButton.js.map +1 -0
- package/build/commonjs/DialogTitle/DialogTitle.js +11 -4
- package/build/commonjs/DialogTitle/DialogTitle.js.map +1 -1
- package/build/commonjs/Divider/Divider.js +18 -10
- package/build/commonjs/Divider/Divider.js.map +1 -1
- package/build/commonjs/Divider/DividerProps.js +4 -4
- package/build/commonjs/Divider/DividerProps.js.map +1 -1
- package/build/commonjs/Divider/index.js +14 -0
- package/build/commonjs/Divider/index.js.map +1 -1
- package/build/commonjs/Empty/Empty.js +1 -2
- 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/index.js +8 -0
- package/build/commonjs/IconButton/index.js.map +1 -1
- package/build/commonjs/ListItem/ListItem.js +47 -25
- 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 +1 -1
- 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 +14 -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 +6 -2
- package/build/commonjs/Radio/Radio.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/Snackbar/index.js +8 -0
- package/build/commonjs/Snackbar/index.js.map +1 -1
- package/build/commonjs/SnackbarContent/SnackbarContent.js +27 -12
- package/build/commonjs/SnackbarContent/SnackbarContent.js.map +1 -1
- package/build/commonjs/SvgIcon/index.js +14 -0
- package/build/commonjs/SvgIcon/index.js.map +1 -1
- package/build/commonjs/Tab/useVariantStyleMap.js +3 -3
- package/build/commonjs/Tab/useVariantStyleMap.js.map +1 -1
- package/build/commonjs/Tabs/Tabs.js +6 -1
- package/build/commonjs/Tabs/Tabs.js.map +1 -1
- package/build/commonjs/Tabs/index.js +14 -0
- package/build/commonjs/Tabs/index.js.map +1 -1
- package/build/commonjs/Tabs/useTabsStyle.js +42 -0
- package/build/commonjs/Tabs/useTabsStyle.js.map +1 -0
- package/build/commonjs/TextField/TextField.js +1 -1
- package/build/commonjs/TextField/TextField.js.map +1 -1
- package/build/commonjs/TextField/index.js +8 -0
- package/build/commonjs/TextField/index.js.map +1 -1
- package/build/commonjs/TextField/useVariantStyleMap.js +2 -2
- 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/Toolbar/index.js +8 -0
- package/build/commonjs/Toolbar/index.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 -24
- package/build/commonjs/Tooltip/Tooltip.js.map +1 -1
- package/build/commonjs/Tooltip/index.js +39 -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/Typography/index.js +8 -0
- package/build/commonjs/Typography/index.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/useContentContainerStyle.js +21 -28
- package/build/commonjs/hooks/useContentContainerStyle.js.map +1 -1
- package/build/commonjs/index.js +21 -0
- package/build/commonjs/index.js.map +1 -1
- 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/Close.js +4 -2
- package/build/commonjs/internal/icons/Close.js.map +1 -1
- package/build/module/Accordion/Accordion.js +4 -1
- package/build/module/Accordion/Accordion.js.map +1 -1
- package/build/module/Accordion/index.js +1 -0
- package/build/module/Accordion/index.js.map +1 -1
- package/build/module/Accordion/useVariantStyleMap.js +11 -10
- package/build/module/Accordion/useVariantStyleMap.js.map +1 -1
- package/build/module/AppBar/AppBar.js +5 -1
- package/build/module/AppBar/AppBar.js.map +1 -1
- package/build/module/AppBar/index.js +1 -0
- package/build/module/AppBar/index.js.map +1 -1
- package/build/module/Badge/index.js +1 -0
- package/build/module/Badge/index.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 +1 -0
- package/build/module/BottomSheetTitle/BottomSheetTitle.js.map +1 -1
- package/build/module/Button/Button.js +16 -4
- package/build/module/Button/Button.js.map +1 -1
- package/build/module/Button/ButtonProps.js +3 -3
- package/build/module/Button/ButtonProps.js.map +1 -1
- package/build/module/Button/index.js +1 -0
- package/build/module/Button/index.js.map +1 -1
- package/build/module/Button/useVariantStyleMap.js +5 -7
- package/build/module/Button/useVariantStyleMap.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 +5 -2
- package/build/module/Checkbox/Checkbox.js.map +1 -1
- package/build/module/Checkbox/index.js +1 -0
- package/build/module/Checkbox/index.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 +17 -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 -0
- package/build/module/Chip/index.js.map +1 -1
- package/build/module/Chip/useChipStyle.js +31 -36
- package/build/module/Chip/useChipStyle.js.map +1 -1
- package/build/module/Dialog/Dialog.js +7 -8
- 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/index.js +1 -0
- package/build/module/Dialog/index.js.map +1 -1
- package/build/module/Dialog/useDialogSectionStyle.js +5 -5
- package/build/module/Dialog/useDialogSectionStyle.js.map +1 -1
- package/build/module/Dialog/useDialogStyle.js +9 -8
- package/build/module/Dialog/useDialogStyle.js.map +1 -1
- package/build/module/DialogContent/DialogContent.js +1 -2
- package/build/module/DialogContent/DialogContent.js.map +1 -1
- package/build/module/DialogTitle/BackButton.js +32 -0
- package/build/module/DialogTitle/BackButton.js.map +1 -0
- package/build/module/DialogTitle/CloseButton.js +30 -0
- package/build/module/DialogTitle/CloseButton.js.map +1 -0
- package/build/module/DialogTitle/DialogTitle.js +8 -3
- package/build/module/DialogTitle/DialogTitle.js.map +1 -1
- package/build/module/Divider/Divider.js +8 -1
- package/build/module/Divider/Divider.js.map +1 -1
- package/build/module/Divider/DividerProps.js +2 -2
- package/build/module/Divider/DividerProps.js.map +1 -1
- package/build/module/Divider/index.js +1 -0
- package/build/module/Divider/index.js.map +1 -1
- package/build/module/Empty/Empty.js +1 -2
- 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/index.js +1 -0
- package/build/module/IconButton/index.js.map +1 -1
- package/build/module/ListItem/ListItem.js +45 -27
- 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 +1 -1
- 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 -0
- 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 +5 -2
- package/build/module/Radio/Radio.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/Snackbar/index.js +1 -0
- package/build/module/Snackbar/index.js.map +1 -1
- package/build/module/SnackbarContent/SnackbarContent.js +27 -12
- package/build/module/SnackbarContent/SnackbarContent.js.map +1 -1
- package/build/module/SvgIcon/index.js +1 -0
- package/build/module/SvgIcon/index.js.map +1 -1
- package/build/module/Tab/useVariantStyleMap.js +3 -3
- package/build/module/Tab/useVariantStyleMap.js.map +1 -1
- package/build/module/Tabs/Tabs.js +5 -1
- package/build/module/Tabs/Tabs.js.map +1 -1
- package/build/module/Tabs/index.js +1 -0
- package/build/module/Tabs/index.js.map +1 -1
- package/build/module/Tabs/useTabsStyle.js +32 -0
- package/build/module/Tabs/useTabsStyle.js.map +1 -0
- package/build/module/TextField/TextField.js +1 -1
- package/build/module/TextField/TextField.js.map +1 -1
- package/build/module/TextField/index.js +1 -0
- package/build/module/TextField/index.js.map +1 -1
- package/build/module/TextField/useVariantStyleMap.js +2 -2
- 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/Toolbar/index.js +1 -0
- package/build/module/Toolbar/index.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 -16
- package/build/module/Tooltip/Tooltip.js.map +1 -1
- package/build/module/Tooltip/index.js +2 -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/Typography/index.js +1 -0
- package/build/module/Typography/index.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/useContentContainerStyle.js +23 -26
- package/build/module/hooks/useContentContainerStyle.js.map +1 -1
- package/build/module/index.js +2 -0
- package/build/module/index.js.map +1 -1
- 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/Close.js +4 -2
- package/build/module/internal/icons/Close.js.map +1 -1
- package/build/typescript/Accordion/index.d.ts +1 -0
- package/build/typescript/Accordion/useVariantStyleMap.d.ts +1 -0
- package/build/typescript/AppBar/index.d.ts +1 -0
- package/build/typescript/Badge/index.d.ts +2 -1
- package/build/typescript/Button/ButtonProps.d.ts +11 -6
- package/build/typescript/Button/index.d.ts +1 -0
- package/build/typescript/ButtonBase/index.d.ts +1 -1
- package/build/typescript/Checkbox/index.d.ts +1 -0
- 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 -0
- package/build/typescript/Chip/useChipStyle.d.ts +4 -3
- package/build/typescript/Dialog/DialogProps.d.ts +1 -6
- package/build/typescript/Dialog/index.d.ts +1 -0
- package/build/typescript/Dialog/useDialogStyle.d.ts +1 -1
- package/build/typescript/DialogTitle/BackButton.d.ts +6 -0
- package/build/typescript/DialogTitle/CloseButton.d.ts +6 -0
- package/build/typescript/DialogTitle/DialogTitle.d.ts +8 -1
- package/build/typescript/Divider/DividerProps.d.ts +4 -4
- package/build/typescript/Divider/index.d.ts +1 -0
- package/build/typescript/Flexbox/FlexboxProps.d.ts +4 -0
- package/build/typescript/IconButton/index.d.ts +1 -0
- 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 -1
- 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/Snackbar/index.d.ts +1 -0
- package/build/typescript/SvgIcon/index.d.ts +1 -0
- package/build/typescript/Tabs/index.d.ts +1 -0
- package/build/typescript/Tabs/useTabsStyle.d.ts +7 -0
- package/build/typescript/TextField/index.d.ts +1 -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/index.d.ts +1 -0
- package/build/typescript/Tooltip/Beaks/index.d.ts +4 -0
- package/build/typescript/Tooltip/index.d.ts +3 -1
- package/build/typescript/Typography/TypographyProps.d.ts +4 -0
- package/build/typescript/Typography/index.d.ts +1 -0
- package/build/typescript/hooks/useContentContainerStyle.d.ts +4 -8
- package/build/typescript/index.d.ts +2 -0
- package/package.json +3 -3
- package/src/Accordion/Accordion.tsx +4 -1
- package/src/Accordion/index.ts +1 -0
- package/src/Accordion/useVariantStyleMap.ts +12 -10
- package/src/AppBar/AppBar.tsx +4 -0
- package/src/AppBar/index.ts +1 -0
- package/src/Badge/index.ts +12 -1
- package/src/Badge/useVariantStyleMap.ts +2 -2
- package/src/BottomSheetTitle/BottomSheetTitle.tsx +1 -0
- package/src/Button/Button.tsx +19 -4
- package/src/Button/ButtonProps.ts +12 -6
- package/src/Button/index.ts +1 -0
- package/src/Button/useVariantStyleMap.ts +3 -7
- package/src/ButtonBase/index.ts +1 -1
- package/src/Checkbox/Checkbox.tsx +12 -9
- package/src/Checkbox/index.ts +1 -0
- package/src/Checkbox/useVariantStyleMap.ts +6 -1
- package/src/Chip/Chip.tsx +20 -13
- package/src/Chip/ChipProps.ts +13 -4
- package/src/Chip/index.ts +1 -0
- package/src/Chip/useChipStyle.ts +36 -34
- package/src/Dialog/Dialog.tsx +7 -8
- package/src/Dialog/DialogProps.ts +1 -7
- package/src/Dialog/index.ts +1 -0
- package/src/Dialog/useDialogSectionStyle.ts +4 -4
- package/src/Dialog/useDialogStyle.ts +9 -7
- package/src/DialogContent/DialogContent.tsx +1 -2
- package/src/DialogTitle/BackButton.tsx +44 -0
- package/src/DialogTitle/CloseButton.tsx +42 -0
- package/src/DialogTitle/DialogTitle.tsx +9 -1
- package/src/Divider/Divider.tsx +6 -1
- package/src/Divider/DividerProps.ts +4 -4
- package/src/Divider/index.ts +1 -0
- package/src/Empty/Empty.tsx +1 -2
- package/src/Flexbox/Flexbox.tsx +2 -0
- package/src/Flexbox/FlexboxProps.ts +5 -0
- package/src/IconButton/index.ts +1 -0
- package/src/ListItem/ListItem.tsx +69 -28
- 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 +1 -1
- package/src/Pagination/Pagination.tsx +3 -2
- package/src/Pagination/PaginationProps.ts +15 -0
- package/src/Pagination/index.ts +2 -1
- package/src/PaginationItem/PaginationItem.tsx +31 -24
- package/src/PaginationItem/PaginationItemProps.ts +7 -0
- package/src/Radio/Radio.tsx +8 -2
- 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/Snackbar/index.ts +1 -0
- package/src/SnackbarContent/SnackbarContent.tsx +37 -18
- package/src/SvgIcon/index.ts +1 -0
- package/src/Tab/useVariantStyleMap.ts +3 -3
- package/src/Tabs/Tabs.tsx +4 -0
- package/src/Tabs/index.ts +1 -0
- package/src/Tabs/useTabsStyle.ts +38 -0
- package/src/TextField/TextField.tsx +1 -1
- package/src/TextField/index.tsx +1 -0
- package/src/TextField/useVariantStyleMap.ts +2 -2
- package/src/Toolbar/BackButton/BackButton.tsx +42 -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/Toolbar/index.ts +1 -0
- package/src/Tooltip/Beaks/index.ts +4 -0
- package/src/Tooltip/Tooltip.tsx +5 -16
- package/src/Tooltip/index.ts +3 -1
- package/src/Typography/Typography.tsx +3 -1
- package/src/Typography/TypographyProps.ts +5 -0
- package/src/Typography/index.ts +1 -0
- package/src/hooks/useBreakpointUp.ts +3 -1
- package/src/hooks/useContentContainerStyle.ts +26 -34
- package/src/index.ts +3 -0
- package/src/internal/icons/ChevronLeft.tsx +4 -1
- package/src/internal/icons/ChevronRight.tsx +4 -1
- package/src/internal/icons/Close.tsx +4 -1
- package/build/commonjs/ButtonBase/LegacyButtonBase.js +0 -126
- package/build/commonjs/ButtonBase/LegacyButtonBase.js.map +0 -1
- package/build/commonjs/TextField/InputLabel.js +0 -163
- package/build/commonjs/TextField/InputLabel.js.map +0 -1
- package/build/module/ButtonBase/LegacyButtonBase.js +0 -106
- package/build/module/ButtonBase/LegacyButtonBase.js.map +0 -1
- package/build/module/TextField/InputLabel.js +0 -149
- package/build/module/TextField/InputLabel.js.map +0 -1
- package/build/typescript/ButtonBase/LegacyButtonBase.d.ts +0 -5
- package/build/typescript/TextField/InputLabel.d.ts +0 -33
- package/src/ButtonBase/LegacyButtonBase.tsx +0 -135
- package/src/TextField/InputLabel.tsx +0 -234
|
@@ -1,7 +1,14 @@
|
|
|
1
1
|
import type { ViewProps } from 'react-native';
|
|
2
2
|
import type { OverridableComponentProps } from '../types';
|
|
3
|
+
import { PaginationColor } from '../Pagination';
|
|
3
4
|
|
|
4
5
|
export default interface PaginationItemProps extends OverridableComponentProps<ViewProps, {
|
|
6
|
+
/**
|
|
7
|
+
* Set color of dot.
|
|
8
|
+
* @default 'base'
|
|
9
|
+
*/
|
|
10
|
+
color?: PaginationColor;
|
|
11
|
+
|
|
5
12
|
/**
|
|
6
13
|
* If `true`, the pagination item is disabled.
|
|
7
14
|
* @default false
|
package/src/Radio/Radio.tsx
CHANGED
|
@@ -9,6 +9,8 @@ import { cloneElementSafely } from '../utils';
|
|
|
9
9
|
import { RadioContext } from '../RadioGroup/RadioContextProvider';
|
|
10
10
|
import type RadioProps from './RadioProps';
|
|
11
11
|
|
|
12
|
+
const DEFAULT_START_ICON_SIZE = 21;
|
|
13
|
+
|
|
12
14
|
type RadioStyles = NamedStylesStringUnion<'root' | 'content'>;
|
|
13
15
|
|
|
14
16
|
const useStyles: UseStyles<RadioStyles> = function (): RadioStyles {
|
|
@@ -63,7 +65,11 @@ export default function Radio(props: RadioProps) {
|
|
|
63
65
|
const checkedIcon = checkIconProp ?? defaultCheckedIcon;
|
|
64
66
|
const icon = isChecked ? checkedIcon : null;
|
|
65
67
|
|
|
66
|
-
const startIcon = cloneElementSafely(startIconProp, {
|
|
68
|
+
const startIcon = cloneElementSafely(startIconProp, {
|
|
69
|
+
color: 'strong',
|
|
70
|
+
height: DEFAULT_START_ICON_SIZE,
|
|
71
|
+
width: DEFAULT_START_ICON_SIZE,
|
|
72
|
+
});
|
|
67
73
|
|
|
68
74
|
const rootStyle = css([
|
|
69
75
|
styles.root,
|
|
@@ -71,7 +77,7 @@ export default function Radio(props: RadioProps) {
|
|
|
71
77
|
]);
|
|
72
78
|
|
|
73
79
|
const fontStyle = createFontStyle(theme, {
|
|
74
|
-
|
|
80
|
+
selector: (typography) => typography.body1.regular,
|
|
75
81
|
color: theme.palette.text.strong,
|
|
76
82
|
});
|
|
77
83
|
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { View } from 'react-native';
|
|
3
|
+
import { useContentContainerStyle } from '../hooks';
|
|
4
|
+
import { css } from '../styles';
|
|
5
|
+
import type SectionProps from './SectionProps';
|
|
6
|
+
|
|
7
|
+
export default function Section(props: SectionProps) {
|
|
8
|
+
const {
|
|
9
|
+
children,
|
|
10
|
+
maxWidth,
|
|
11
|
+
style: styleProp,
|
|
12
|
+
} = props;
|
|
13
|
+
|
|
14
|
+
const styles = useContentContainerStyle({ maxWidth });
|
|
15
|
+
|
|
16
|
+
const rootStyle = css([
|
|
17
|
+
styles,
|
|
18
|
+
styleProp,
|
|
19
|
+
]);
|
|
20
|
+
|
|
21
|
+
return (
|
|
22
|
+
<View style={rootStyle}>
|
|
23
|
+
{children}
|
|
24
|
+
</View>
|
|
25
|
+
);
|
|
26
|
+
}
|
|
@@ -19,6 +19,8 @@ export default function ShadowView(props: ShadowViewProps) {
|
|
|
19
19
|
const {
|
|
20
20
|
borderRadius,
|
|
21
21
|
height,
|
|
22
|
+
maxHeight,
|
|
23
|
+
maxWidth,
|
|
22
24
|
width,
|
|
23
25
|
} = styleProp as FountainUiStyle;
|
|
24
26
|
|
|
@@ -30,6 +32,8 @@ export default function ShadowView(props: ShadowViewProps) {
|
|
|
30
32
|
{
|
|
31
33
|
borderRadius: borderRadius ?? 0,
|
|
32
34
|
height,
|
|
35
|
+
maxHeight,
|
|
36
|
+
maxWidth,
|
|
33
37
|
width,
|
|
34
38
|
},
|
|
35
39
|
])}
|
package/src/Snackbar/index.ts
CHANGED
|
@@ -10,7 +10,7 @@ import Typography from '../Typography';
|
|
|
10
10
|
import type SnackbarContentProps from './SnackbarContentProps';
|
|
11
11
|
import StatusIcon from './StatusIcon';
|
|
12
12
|
|
|
13
|
-
type SnackBarContentStyles = NamedStylesStringUnion<'root' | 'actionButton'>;
|
|
13
|
+
type SnackBarContentStyles = NamedStylesStringUnion<'root' | 'actionButton' | 'actionLabel' | 'actionElement'>;
|
|
14
14
|
|
|
15
15
|
const useStyles: UseStyles<SnackBarContentStyles> = function (): SnackBarContentStyles {
|
|
16
16
|
const theme = useTheme();
|
|
@@ -30,6 +30,14 @@ const useStyles: UseStyles<SnackBarContentStyles> = function (): SnackBarContent
|
|
|
30
30
|
actionButton: {
|
|
31
31
|
marginLeft: theme.spacing(6),
|
|
32
32
|
},
|
|
33
|
+
actionLabel: {
|
|
34
|
+
paddingBottom: theme.spacing(1.5),
|
|
35
|
+
paddingTop: theme.spacing(1.25),
|
|
36
|
+
},
|
|
37
|
+
actionElement: {
|
|
38
|
+
paddingLeft: theme.spacing(2),
|
|
39
|
+
paddingVertical: theme.spacing(1.25),
|
|
40
|
+
},
|
|
33
41
|
};
|
|
34
42
|
};
|
|
35
43
|
|
|
@@ -51,21 +59,28 @@ export default function SnackbarContent(props: SnackbarContentProps) {
|
|
|
51
59
|
|
|
52
60
|
const titleFontStyle = createFontStyle(theme, {
|
|
53
61
|
selector: (_) => typographyOf({
|
|
54
|
-
fontSize:
|
|
55
|
-
lineHeight:
|
|
56
|
-
fontFamily: '
|
|
62
|
+
fontSize: 15,
|
|
63
|
+
lineHeight: 19.5,
|
|
64
|
+
fontFamily: 'PretendardStd-SemiBold',
|
|
57
65
|
letterSpacing: 0,
|
|
58
66
|
}),
|
|
59
67
|
color: theme.palette.text.strongInverse,
|
|
60
68
|
});
|
|
61
69
|
|
|
62
70
|
const messageFontStyle = createFontStyle(theme, {
|
|
63
|
-
selector: (_) =>
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
71
|
+
selector: (_) => title
|
|
72
|
+
? typographyOf({
|
|
73
|
+
fontSize: 12,
|
|
74
|
+
lineHeight: 15.6,
|
|
75
|
+
fontFamily: 'PretendardStd-Regular',
|
|
76
|
+
letterSpacing: 0,
|
|
77
|
+
})
|
|
78
|
+
: typographyOf({
|
|
79
|
+
fontSize: 14,
|
|
80
|
+
lineHeight: 18.2,
|
|
81
|
+
fontFamily: 'PretendardStd-Regular',
|
|
82
|
+
letterSpacing: 0,
|
|
83
|
+
}),
|
|
69
84
|
color: theme.palette.text.strongInverse,
|
|
70
85
|
});
|
|
71
86
|
|
|
@@ -76,9 +91,7 @@ export default function SnackbarContent(props: SnackbarContentProps) {
|
|
|
76
91
|
fontFamily: 'LexendDeca-SemiBold',
|
|
77
92
|
letterSpacing: -0.26,
|
|
78
93
|
}),
|
|
79
|
-
color:
|
|
80
|
-
// TODO: change color.
|
|
81
|
-
// color: theme.palette.text.accent,
|
|
94
|
+
color: theme.palette.text.accent,
|
|
82
95
|
});
|
|
83
96
|
|
|
84
97
|
const hasActionButton = !!(actionContent && onPress);
|
|
@@ -131,11 +144,17 @@ export default function SnackbarContent(props: SnackbarContentProps) {
|
|
|
131
144
|
|
|
132
145
|
<View style={styles.actionButton}>
|
|
133
146
|
{typeof actionContent === 'string' ? (
|
|
134
|
-
<
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
147
|
+
<View style={styles.actionLabel}>
|
|
148
|
+
<Text
|
|
149
|
+
children={actionContent}
|
|
150
|
+
style={labelFontStyle}
|
|
151
|
+
/>
|
|
152
|
+
</View>
|
|
153
|
+
) : (
|
|
154
|
+
<View style={styles.actionElement}>
|
|
155
|
+
{actionContent}
|
|
156
|
+
</View>
|
|
157
|
+
)}
|
|
139
158
|
</View>
|
|
140
159
|
</React.Fragment>
|
|
141
160
|
) : null}
|
package/src/SvgIcon/index.ts
CHANGED
|
@@ -34,7 +34,7 @@ export default function useVariantStyleMap(variant: TabVariant, selected: boolea
|
|
|
34
34
|
selector: (_) => typographyOf({
|
|
35
35
|
fontSize: 14,
|
|
36
36
|
lineHeight: 18.2,
|
|
37
|
-
fontFamily: '
|
|
37
|
+
fontFamily: selected ? 'PretendardStd-SemiBold' : 'PretendardStd-Medium',
|
|
38
38
|
letterSpacing: 0,
|
|
39
39
|
}),
|
|
40
40
|
color: selected
|
|
@@ -55,7 +55,7 @@ export default function useVariantStyleMap(variant: TabVariant, selected: boolea
|
|
|
55
55
|
selector: (_) => typographyOf({
|
|
56
56
|
fontSize: 10,
|
|
57
57
|
lineHeight: 10,
|
|
58
|
-
fontFamily: '
|
|
58
|
+
fontFamily: 'PretendardStd-Medium',
|
|
59
59
|
letterSpacing: -0.1,
|
|
60
60
|
}),
|
|
61
61
|
color: selected
|
|
@@ -73,7 +73,7 @@ export default function useVariantStyleMap(variant: TabVariant, selected: boolea
|
|
|
73
73
|
selector: (_) => typographyOf({
|
|
74
74
|
fontSize: 15,
|
|
75
75
|
lineHeight: 18.75,
|
|
76
|
-
fontFamily: '
|
|
76
|
+
fontFamily: selected ? 'PretendardStd-SemiBold' : 'PretendardStd-Medium',
|
|
77
77
|
letterSpacing: 0,
|
|
78
78
|
}),
|
|
79
79
|
color: selected
|
package/src/Tabs/Tabs.tsx
CHANGED
|
@@ -16,6 +16,7 @@ import useTabInnerContentsWidth from './useTabInnerContentsWidth';
|
|
|
16
16
|
import useIndexStore from './useIndexStore';
|
|
17
17
|
import InternalContext from './InternalContext';
|
|
18
18
|
import { isEveryTabCoordinatesDefined } from './utils';
|
|
19
|
+
import useTabsStyle from './useTabsStyle';
|
|
19
20
|
|
|
20
21
|
type TabsStyleKeys =
|
|
21
22
|
| 'root'
|
|
@@ -72,6 +73,8 @@ const Tabs = forwardRef<TabsInstance, TabsProps>(function Tabs(props, ref) {
|
|
|
72
73
|
|
|
73
74
|
const currentIndexRef = useRef(initialIndex);
|
|
74
75
|
|
|
76
|
+
const { container: containerStyle } = useTabsStyle(variant);
|
|
77
|
+
|
|
75
78
|
const setTab = (newIndex: number) => {
|
|
76
79
|
const currentIndex = currentIndexRef.current;
|
|
77
80
|
onTabSelected?.(newIndex, currentIndex);
|
|
@@ -202,6 +205,7 @@ const Tabs = forwardRef<TabsInstance, TabsProps>(function Tabs(props, ref) {
|
|
|
202
205
|
<View
|
|
203
206
|
style={css([
|
|
204
207
|
styles.root,
|
|
208
|
+
containerStyle,
|
|
205
209
|
{ backgroundColor: backgroundColorMap[color] },
|
|
206
210
|
showDivider ? styles.bottomDivider : undefined,
|
|
207
211
|
scrollable ? undefined : styles.fixedRoot,
|
package/src/Tabs/index.ts
CHANGED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { useMemo } from 'react';
|
|
2
|
+
import type { FountainUiStyle } from '@fountain-ui/styles';
|
|
3
|
+
import { useBreakpointUp } from '../hooks';
|
|
4
|
+
import { useTheme } from '../styles';
|
|
5
|
+
import type { TabVariant } from '../Tab';
|
|
6
|
+
|
|
7
|
+
interface TabsStyle {
|
|
8
|
+
container: FountainUiStyle;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export default function useTabsStyle(variant: TabVariant) {
|
|
12
|
+
const theme = useTheme();
|
|
13
|
+
|
|
14
|
+
const isDesktop = useBreakpointUp('md', true, false);
|
|
15
|
+
|
|
16
|
+
return useMemo<TabsStyle>(() => {
|
|
17
|
+
switch (variant) {
|
|
18
|
+
case 'circular':
|
|
19
|
+
return {
|
|
20
|
+
container: {
|
|
21
|
+
paddingBottom: 8,
|
|
22
|
+
paddingHorizontal: isDesktop ? 20 : 12,
|
|
23
|
+
},
|
|
24
|
+
};
|
|
25
|
+
case 'bottom-navigation':
|
|
26
|
+
return {
|
|
27
|
+
container: {},
|
|
28
|
+
};
|
|
29
|
+
case 'default':
|
|
30
|
+
default:
|
|
31
|
+
return {
|
|
32
|
+
container: {
|
|
33
|
+
paddingHorizontal: isDesktop ? 14 : 6,
|
|
34
|
+
},
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
}, [theme, variant, isDesktop]);
|
|
38
|
+
}
|
|
@@ -82,7 +82,7 @@ const TextField = React.forwardRef<TextInput, TextFieldProps>(function TextField
|
|
|
82
82
|
const showClearButton = showClearButtonProp ?? isSearch;
|
|
83
83
|
|
|
84
84
|
const titleFontStyle = createFontStyle(theme, {
|
|
85
|
-
|
|
85
|
+
selector: (typography) => typography.caption1['semiBold'],
|
|
86
86
|
color: theme.palette.text.strong,
|
|
87
87
|
});
|
|
88
88
|
|
package/src/TextField/index.tsx
CHANGED
|
@@ -55,7 +55,7 @@ export default function useVariantStyleMap(variant: TextFieldVariant, status: Te
|
|
|
55
55
|
selector: (_) => typographyOf({
|
|
56
56
|
fontSize: 18,
|
|
57
57
|
lineHeight: 27,
|
|
58
|
-
fontFamily: '
|
|
58
|
+
fontFamily: 'PretendardStd-SemiBold',
|
|
59
59
|
letterSpacing: 0,
|
|
60
60
|
}),
|
|
61
61
|
color: theme.palette.text.strong,
|
|
@@ -88,7 +88,7 @@ export default function useVariantStyleMap(variant: TextFieldVariant, status: Te
|
|
|
88
88
|
selector: (_) => typographyOf({
|
|
89
89
|
fontSize: 16,
|
|
90
90
|
lineHeight: 19.2,
|
|
91
|
-
fontFamily: '
|
|
91
|
+
fontFamily: 'PretendardStd-SemiBold',
|
|
92
92
|
letterSpacing: -0.16,
|
|
93
93
|
}),
|
|
94
94
|
color: theme.palette.text.strong,
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { StyleSheet } from 'react-native';
|
|
3
|
+
import IconButton from '../../IconButton';
|
|
4
|
+
import { ChevronLeft } 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
|
+
<ChevronLeft
|
|
37
|
+
color={'strong'}
|
|
38
|
+
size={'large'}
|
|
39
|
+
/>
|
|
40
|
+
</IconButton>
|
|
41
|
+
);
|
|
42
|
+
}
|
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;
|
package/src/Toolbar/index.ts
CHANGED
|
@@ -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,19 +140,8 @@ export default function Tooltip(props: TooltipProps) {
|
|
|
140
140
|
|
|
141
141
|
const fontStyle = createFontStyle(theme, {
|
|
142
142
|
selector: (typo) => size === 'large'
|
|
143
|
-
?
|
|
144
|
-
|
|
145
|
-
lineHeight: 19.5,
|
|
146
|
-
fontFamily: 'Pretendard-Regular',
|
|
147
|
-
letterSpacing: 0,
|
|
148
|
-
})
|
|
149
|
-
// TODO: change caption2.
|
|
150
|
-
: typographyOf({
|
|
151
|
-
fontSize: 11,
|
|
152
|
-
lineHeight: 15.4,
|
|
153
|
-
fontFamily: 'Pretendard-Regular',
|
|
154
|
-
letterSpacing: 0,
|
|
155
|
-
}),
|
|
143
|
+
? typo.body3.regular
|
|
144
|
+
: typo.caption2.regular,
|
|
156
145
|
color: theme.palette.text.strongInverse,
|
|
157
146
|
});
|
|
158
147
|
|
package/src/Tooltip/index.ts
CHANGED
|
@@ -1,2 +1,4 @@
|
|
|
1
1
|
export { default } from './Tooltip';
|
|
2
|
-
export type { default as TooltipProps } from './TooltipProps';
|
|
2
|
+
export type { default as TooltipProps, TooltipBeakLayout, TooltipBeakPlacement } from './TooltipProps';
|
|
3
|
+
export { tooltipBeakPlacements, tooltipPlacements, tooltipSizes } from './TooltipProps';
|
|
4
|
+
export * from './Beaks';
|
|
@@ -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
|
package/src/Typography/index.ts
CHANGED
|
@@ -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,60 +1,52 @@
|
|
|
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
|
-
styleProvider?: (theme: Theme) => ContentContainerStyle;
|
|
8
|
+
maxWidth?: number;
|
|
9
|
+
styleProvider?: (theme: Theme) => FountainUiStyle;
|
|
14
10
|
}
|
|
15
11
|
|
|
16
|
-
|
|
17
|
-
breakpoint
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
12
|
+
function getMaxWidth(theme: Theme, breakpoint: Breakpoint, customMaxWidth?: number): number | undefined {
|
|
13
|
+
switch (breakpoint) {
|
|
14
|
+
case 'lg':
|
|
15
|
+
case 'md':
|
|
16
|
+
return customMaxWidth ?? theme.breakpoints.values[breakpoint];
|
|
17
|
+
default:
|
|
18
|
+
return undefined;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
21
|
|
|
22
|
-
|
|
23
|
-
function getMaxWidth(theme: Theme, breakpoint: Breakpoint): ViewStyle['maxWidth'] {
|
|
22
|
+
function getPaddingHorizontal(theme: Theme, breakpoint: Breakpoint): number {
|
|
24
23
|
switch (breakpoint) {
|
|
25
|
-
case 'xs':
|
|
26
|
-
return theme.breakpoints.values['sm'];
|
|
27
24
|
case 'sm':
|
|
28
|
-
return theme.
|
|
29
|
-
|
|
30
|
-
return theme.
|
|
31
|
-
case 'lg':
|
|
32
|
-
return 'none';
|
|
25
|
+
return theme.spacing(6);
|
|
26
|
+
default:
|
|
27
|
+
return theme.spacing(4);
|
|
33
28
|
}
|
|
34
29
|
}
|
|
35
30
|
|
|
36
|
-
export default function useContentContainerStyle(config: Config =
|
|
31
|
+
export default function useContentContainerStyle(config: Config = {}): FountainUiStyle {
|
|
37
32
|
const {
|
|
38
|
-
|
|
39
|
-
maxWidth,
|
|
33
|
+
maxWidth: customMaxWidth,
|
|
40
34
|
styleProvider,
|
|
41
|
-
} =
|
|
42
|
-
...defaultConfig,
|
|
43
|
-
...config,
|
|
44
|
-
};
|
|
35
|
+
} = config;
|
|
45
36
|
|
|
46
37
|
const theme = useTheme();
|
|
47
38
|
|
|
39
|
+
const currentBreakpoint = theme.breakpoints.current;
|
|
40
|
+
|
|
48
41
|
const additionalStyle = styleProvider?.(theme);
|
|
49
42
|
|
|
50
|
-
|
|
43
|
+
return css([
|
|
51
44
|
{
|
|
52
45
|
alignSelf: 'center',
|
|
53
|
-
maxWidth: getMaxWidth(theme,
|
|
46
|
+
maxWidth: getMaxWidth(theme, currentBreakpoint, customMaxWidth),
|
|
47
|
+
paddingHorizontal: getPaddingHorizontal(theme, currentBreakpoint),
|
|
54
48
|
width: '100%',
|
|
55
49
|
},
|
|
56
50
|
additionalStyle,
|
|
57
|
-
];
|
|
58
|
-
|
|
59
|
-
return useBreakpointUp(breakpoint, yesStyle, additionalStyle);
|
|
51
|
+
]);
|
|
60
52
|
};
|
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
|
|
|
@@ -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
|
);
|