@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,23 +1,30 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { OverridableComponentProps } from '../types';
|
|
3
3
|
import type { ButtonBaseProps } from '../ButtonBase';
|
|
4
|
+
export declare const chipColors: readonly ["default", "white"];
|
|
5
|
+
export declare type ChipColor = typeof chipColors[number];
|
|
4
6
|
export declare const chipSizes: readonly ["large", "small"];
|
|
5
7
|
export declare type ChipSize = typeof chipSizes[number];
|
|
6
8
|
export declare const chipStartElementVariants: readonly ["default", "avatar", "image", "icon"];
|
|
7
9
|
export declare type ChipStartElementVariant = typeof chipStartElementVariants[number];
|
|
8
10
|
export default interface ChipProps extends OverridableComponentProps<ButtonBaseProps, {
|
|
9
|
-
/**
|
|
10
|
-
* Element placed after the children.
|
|
11
|
-
*/
|
|
12
|
-
endElement?: React.ReactElement;
|
|
13
11
|
/**
|
|
14
12
|
* The content of the component.
|
|
15
13
|
*/
|
|
16
14
|
children: string;
|
|
15
|
+
/**
|
|
16
|
+
* Set backgroundColor of the component.
|
|
17
|
+
* @default 'default'
|
|
18
|
+
*/
|
|
19
|
+
color?: ChipColor;
|
|
17
20
|
/**
|
|
18
21
|
* Number of lines of children.
|
|
19
22
|
*/
|
|
20
23
|
numberOfLines?: number;
|
|
24
|
+
/**
|
|
25
|
+
* If `true`, showing a close icon and applying a highlighted style.
|
|
26
|
+
*/
|
|
27
|
+
selected?: boolean;
|
|
21
28
|
/**
|
|
22
29
|
* Determines size of component.
|
|
23
30
|
* @default 'small'
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import type { TextStyle } from 'react-native';
|
|
2
2
|
import type { FountainUiStyle } from '@fountain-ui/styles';
|
|
3
|
-
import type { ChipSize, ChipStartElementVariant } from './ChipProps';
|
|
3
|
+
import type { ChipColor, ChipSize, ChipStartElementVariant } from './ChipProps';
|
|
4
4
|
interface ChipStyle {
|
|
5
5
|
container: FountainUiStyle;
|
|
6
|
-
|
|
6
|
+
closeButton?: FountainUiStyle;
|
|
7
7
|
label: TextStyle;
|
|
8
8
|
startElement?: FountainUiStyle;
|
|
9
|
+
startElementContainer?: FountainUiStyle;
|
|
9
10
|
}
|
|
10
|
-
export default function useChipStyle(size: ChipSize, startElementVariant: ChipStartElementVariant,
|
|
11
|
+
export default function useChipStyle(size: ChipSize, startElementVariant: ChipStartElementVariant, color: ChipColor, selected: boolean): ChipStyle;
|
|
11
12
|
export {};
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import type { ModalProps } from '../Modal';
|
|
3
3
|
import type { OverridableComponentProps } from '../types';
|
|
4
4
|
import { ANIMATION_TYPE } from '../Modal';
|
|
5
|
-
export declare const dialogSizes: readonly ["small", "medium", "large"];
|
|
5
|
+
export declare const dialogSizes: readonly ["small", "medium", "large", "full"];
|
|
6
6
|
export declare type DialogSize = typeof dialogSizes[number];
|
|
7
7
|
export default interface DialogProps extends OverridableComponentProps<ModalProps, {
|
|
8
8
|
/**
|
|
@@ -14,11 +14,6 @@ export default interface DialogProps extends OverridableComponentProps<ModalProp
|
|
|
14
14
|
* Dialog children, usually the included sub-components.
|
|
15
15
|
*/
|
|
16
16
|
children?: React.ReactNode;
|
|
17
|
-
/**
|
|
18
|
-
* If `true`, the dialog is full-screen.
|
|
19
|
-
* @default false
|
|
20
|
-
*/
|
|
21
|
-
fullScreen?: boolean;
|
|
22
17
|
/**
|
|
23
18
|
* Determines the minWidth of the Dialog.
|
|
24
19
|
* @default 'medium'
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export { default } from './Dialog';
|
|
2
2
|
export type { default as DialogProps } from './DialogProps';
|
|
3
|
+
export { dialogSizes } from './DialogProps';
|
|
3
4
|
export { DialogProvider, useDialogContext } from './DialogContext';
|
|
4
5
|
export { default as useDialogSectionStyle } from './useDialogSectionStyle';
|
|
@@ -2,5 +2,5 @@ import type { NamedStylesStringUnion } from '@fountain-ui/styles';
|
|
|
2
2
|
import type { DialogSize } from './DialogProps';
|
|
3
3
|
declare type DialogStyleKeys = 'root' | 'container' | 'paper' | 'topElementContainer' | 'topElementContent';
|
|
4
4
|
declare type DialogStyles = NamedStylesStringUnion<DialogStyleKeys>;
|
|
5
|
-
export default function useDialogStyle(size: DialogSize
|
|
5
|
+
export default function useDialogStyle(size: DialogSize): DialogStyles;
|
|
6
6
|
export {};
|
|
@@ -1,3 +1,10 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
import BackButton from './BackButton';
|
|
3
|
+
import CloseButton from './CloseButton';
|
|
2
4
|
import type DialogTitleProps from './DialogTitleProps';
|
|
3
|
-
|
|
5
|
+
declare const DialogTitle: {
|
|
6
|
+
(props: DialogTitleProps): JSX.Element;
|
|
7
|
+
BackButton: typeof BackButton;
|
|
8
|
+
CloseButton: typeof CloseButton;
|
|
9
|
+
};
|
|
10
|
+
export default DialogTitle;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { ViewProps } from 'react-native';
|
|
3
3
|
import type { OverridableComponentProps } from '../types';
|
|
4
|
-
export declare const
|
|
5
|
-
export declare type
|
|
6
|
-
export declare const dividerVariants: readonly ["base", "strong"];
|
|
4
|
+
export declare const dividerElementAligns: readonly ["start", "center", "end"];
|
|
5
|
+
export declare type DividerElementAlign = typeof dividerElementAligns[number];
|
|
6
|
+
export declare const dividerVariants: readonly ["base", "strong", "baseStatic", "strongStatic"];
|
|
7
7
|
export declare type DividerVariant = typeof dividerVariants[number];
|
|
8
8
|
export default interface DividerProps extends OverridableComponentProps<ViewProps, {
|
|
9
9
|
/**
|
|
@@ -34,7 +34,7 @@ export default interface DividerProps extends OverridableComponentProps<ViewProp
|
|
|
34
34
|
* Set position of children.
|
|
35
35
|
* @default center
|
|
36
36
|
*/
|
|
37
|
-
elementAlign?:
|
|
37
|
+
elementAlign?: DividerElementAlign;
|
|
38
38
|
/**
|
|
39
39
|
* Select the style of the divider based on this value.
|
|
40
40
|
* @default base
|
|
@@ -40,6 +40,10 @@ export default interface FlexboxProps extends OverridableComponentProps<ViewProp
|
|
|
40
40
|
* @default 'nowrap'
|
|
41
41
|
*/
|
|
42
42
|
flexWrap?: FlexStyle['flexWrap'];
|
|
43
|
+
/**
|
|
44
|
+
* Defines the spacing between items in a flex container.
|
|
45
|
+
*/
|
|
46
|
+
gap?: number | undefined;
|
|
43
47
|
/**
|
|
44
48
|
* Content of this component.
|
|
45
49
|
*/
|
|
@@ -13,6 +13,10 @@ export default interface ListItemProps extends OverridableComponentProps<React.P
|
|
|
13
13
|
* @default false
|
|
14
14
|
*/
|
|
15
15
|
button?: boolean;
|
|
16
|
+
/**
|
|
17
|
+
* Displays a description in this item.
|
|
18
|
+
*/
|
|
19
|
+
description?: string;
|
|
16
20
|
/**
|
|
17
21
|
* Whether to prevent interaction with the ButtonBase.
|
|
18
22
|
* @default false
|
|
@@ -1,16 +1,9 @@
|
|
|
1
|
-
import type { TypographyProps } from '../Typography';
|
|
2
1
|
import type { OverridableComponentProps } from '../types';
|
|
3
2
|
import type { ColumnProps } from '../Column';
|
|
4
|
-
|
|
5
|
-
export default interface ListItemTextProps extends OverridableComponentProps<BaseProps, {
|
|
3
|
+
export default interface ListItemTextProps extends OverridableComponentProps<ColumnProps, {
|
|
6
4
|
/**
|
|
7
5
|
* The main content element.
|
|
8
6
|
*/
|
|
9
|
-
|
|
10
|
-
/**
|
|
11
|
-
* The secondary content element.
|
|
12
|
-
*/
|
|
13
|
-
secondary?: TypographyProps['children'];
|
|
7
|
+
children: string;
|
|
14
8
|
}> {
|
|
15
9
|
}
|
|
16
|
-
export {};
|
|
@@ -1,9 +1,16 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { ViewProps } from 'react-native';
|
|
3
3
|
import type { OverridableComponentProps } from '../types';
|
|
4
|
+
export declare const paginationColors: readonly ["base", "static"];
|
|
5
|
+
export declare type PaginationColor = typeof paginationColors[number];
|
|
4
6
|
export declare const paginationVariants: readonly ["dot", "number"];
|
|
5
7
|
export declare type PaginationVariant = typeof paginationVariants[number];
|
|
6
8
|
export interface PaginationRenderItemParams {
|
|
9
|
+
/**
|
|
10
|
+
* Set color of dot.
|
|
11
|
+
* @default 'base'
|
|
12
|
+
*/
|
|
13
|
+
color?: PaginationColor;
|
|
7
14
|
/**
|
|
8
15
|
* Index of the pagination item.
|
|
9
16
|
*/
|
|
@@ -27,6 +34,11 @@ export default interface PaginationProps extends OverridableComponentProps<ViewP
|
|
|
27
34
|
* The pagination will be added relative to this node.
|
|
28
35
|
*/
|
|
29
36
|
children?: React.ReactNode;
|
|
37
|
+
/**
|
|
38
|
+
* Set color of dot.
|
|
39
|
+
* @default 'base'
|
|
40
|
+
*/
|
|
41
|
+
color?: PaginationColor;
|
|
30
42
|
/**
|
|
31
43
|
* The total number of pages.
|
|
32
44
|
*/
|
|
@@ -1,2 +1,3 @@
|
|
|
1
1
|
export { default } from './Pagination';
|
|
2
|
-
export type { default as PaginationProps } from './PaginationProps';
|
|
2
|
+
export type { default as PaginationProps, PaginationColor, PaginationVariant } from './PaginationProps';
|
|
3
|
+
export { paginationColors, paginationVariants } from './PaginationProps';
|
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
import type { ViewProps } from 'react-native';
|
|
2
2
|
import type { OverridableComponentProps } from '../types';
|
|
3
|
+
import { PaginationColor } from '../Pagination';
|
|
3
4
|
export default interface PaginationItemProps extends OverridableComponentProps<ViewProps, {
|
|
5
|
+
/**
|
|
6
|
+
* Set color of dot.
|
|
7
|
+
* @default 'base'
|
|
8
|
+
*/
|
|
9
|
+
color?: PaginationColor;
|
|
4
10
|
/**
|
|
5
11
|
* If `true`, the pagination item is disabled.
|
|
6
12
|
* @default false
|
|
@@ -1,3 +1,8 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
import BackButton from './BackButton';
|
|
2
3
|
import type ToolbarProps from './ToolbarProps';
|
|
3
|
-
|
|
4
|
+
declare const Toolbar: {
|
|
5
|
+
(props: ToolbarProps): JSX.Element;
|
|
6
|
+
BackButton: typeof BackButton;
|
|
7
|
+
};
|
|
8
|
+
export default Toolbar;
|
|
@@ -1,2 +1,6 @@
|
|
|
1
1
|
export { default } from './Beak';
|
|
2
2
|
export type { default as BeakProps } from './BeakProps';
|
|
3
|
+
export { default as HorizontalLargeBeak } from './HorizontalLargeBeak';
|
|
4
|
+
export { default as HorizontalSmallBeak } from './HorizontalSmallBeak';
|
|
5
|
+
export { default as VerticalLargeBeak } from './VerticalLargeBeak';
|
|
6
|
+
export { default as VerticalSmallBeak } from './VerticalSmallBeak';
|
|
@@ -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';
|
|
@@ -48,6 +48,10 @@ export default interface TypographyProps extends ComponentProps<{
|
|
|
48
48
|
* Internal use only. The hyperlink of the text.
|
|
49
49
|
*/
|
|
50
50
|
href?: string;
|
|
51
|
+
/**
|
|
52
|
+
* Defines the vertical spacing between lines of text.
|
|
53
|
+
*/
|
|
54
|
+
lineHeight?: TextStyle['lineHeight'];
|
|
51
55
|
/**
|
|
52
56
|
* Used to truncate the text with an ellipsis after computing the text
|
|
53
57
|
* layout, including line wrapping, such that the total number of lines
|
|
@@ -1,11 +1,7 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { FountainUiStyle } from '@fountain-ui/styles';
|
|
2
2
|
import type { Theme } from '../types';
|
|
3
|
-
declare type Breakpoint = keyof Theme['breakpoints']['values'];
|
|
4
|
-
declare type ContentContainerStyle = ScrollViewProps['contentContainerStyle'];
|
|
5
3
|
export interface Config {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
styleProvider?: (theme: Theme) => ContentContainerStyle;
|
|
4
|
+
maxWidth?: number;
|
|
5
|
+
styleProvider?: (theme: Theme) => FountainUiStyle;
|
|
9
6
|
}
|
|
10
|
-
export default function useContentContainerStyle(config?: Config):
|
|
11
|
-
export {};
|
|
7
|
+
export default function useContentContainerStyle(config?: Config): FountainUiStyle;
|
|
@@ -97,6 +97,8 @@ export { default as RadioGroup } from './RadioGroup';
|
|
|
97
97
|
export * from './RadioGroup';
|
|
98
98
|
export { default as Row } from './Row';
|
|
99
99
|
export * from './Row';
|
|
100
|
+
export { default as Section } from './Section';
|
|
101
|
+
export * from './Section';
|
|
100
102
|
export { default as ShadowView } from './ShadowView';
|
|
101
103
|
export * from './ShadowView';
|
|
102
104
|
export { default as Slide } from './Slide';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fountain-ui/core",
|
|
3
|
-
"version": "3.0.0-alpha.
|
|
3
|
+
"version": "3.0.0-alpha.11",
|
|
4
4
|
"author": "Fountain-UI Team",
|
|
5
5
|
"description": "React components that implement Tappytoon's Fountain Design.",
|
|
6
6
|
"license": "MIT",
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"prepare": "bob build"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@fountain-ui/styles": "^3.0.0-alpha.
|
|
17
|
+
"@fountain-ui/styles": "^3.0.0-alpha.7",
|
|
18
18
|
"@fountain-ui/utils": "^3.0.0-alpha.1"
|
|
19
19
|
},
|
|
20
20
|
"peerDependencies": {
|
|
@@ -67,5 +67,5 @@
|
|
|
67
67
|
"publishConfig": {
|
|
68
68
|
"access": "public"
|
|
69
69
|
},
|
|
70
|
-
"gitHead": "
|
|
70
|
+
"gitHead": "3261dc43532e6f39bbddce1a59eddd677d84dc3c"
|
|
71
71
|
}
|
|
@@ -62,6 +62,7 @@ export default function Accordion(props: AccordionProps) {
|
|
|
62
62
|
container: containerStyle,
|
|
63
63
|
content: contentStyle,
|
|
64
64
|
contentFont: contentFontStyle,
|
|
65
|
+
iconContainer: iconContainerStyle,
|
|
65
66
|
subTitleFont: subTitleFontStyle,
|
|
66
67
|
title: titleStyle,
|
|
67
68
|
titleFont: titleFontStyle,
|
|
@@ -123,7 +124,9 @@ export default function Accordion(props: AccordionProps) {
|
|
|
123
124
|
<Row alignItems={'center'}>
|
|
124
125
|
{LeftComponent ? (
|
|
125
126
|
<React.Fragment>
|
|
126
|
-
{
|
|
127
|
+
<View style={iconContainerStyle}>
|
|
128
|
+
{LeftComponent}
|
|
129
|
+
</View>
|
|
127
130
|
|
|
128
131
|
<Spacer size={1.5}/>
|
|
129
132
|
</React.Fragment>
|
package/src/Accordion/index.ts
CHANGED
|
@@ -9,6 +9,7 @@ interface VariantStyle {
|
|
|
9
9
|
container: FountainUiStyle;
|
|
10
10
|
content: FountainUiStyle;
|
|
11
11
|
contentFont: TextStyle;
|
|
12
|
+
iconContainer?: FountainUiStyle;
|
|
12
13
|
subTitleFont?: TextStyle;
|
|
13
14
|
title: FountainUiStyle;
|
|
14
15
|
titleFont: TextStyle;
|
|
@@ -39,8 +40,7 @@ export default function useVariantStyleMap(variant: AccordionVariant): VariantSt
|
|
|
39
40
|
color: theme.palette.text.base,
|
|
40
41
|
}),
|
|
41
42
|
subTitleFont: createFontStyle(theme, {
|
|
42
|
-
|
|
43
|
-
// selector: (typography) => typography.caption1.regular,
|
|
43
|
+
selector: (typography) => typography.caption1.regular,
|
|
44
44
|
color: theme.palette.text.base,
|
|
45
45
|
}),
|
|
46
46
|
title: {
|
|
@@ -51,9 +51,9 @@ export default function useVariantStyleMap(variant: AccordionVariant): VariantSt
|
|
|
51
51
|
},
|
|
52
52
|
titleFont: createFontStyle(theme, {
|
|
53
53
|
selector: (_) => typographyOf({
|
|
54
|
-
fontSize:
|
|
55
|
-
lineHeight:
|
|
56
|
-
fontFamily: '
|
|
54
|
+
fontSize: 16,
|
|
55
|
+
lineHeight: 20.8,
|
|
56
|
+
fontFamily: 'PretendardStd-SemiBold',
|
|
57
57
|
letterSpacing: 0,
|
|
58
58
|
}),
|
|
59
59
|
color: theme.palette.text.strong,
|
|
@@ -75,10 +75,12 @@ export default function useVariantStyleMap(variant: AccordionVariant): VariantSt
|
|
|
75
75
|
position: 'absolute',
|
|
76
76
|
},
|
|
77
77
|
contentFont: createFontStyle(theme, {
|
|
78
|
-
|
|
79
|
-
// selector: typography => typography.caption2.regular,
|
|
78
|
+
selector: (typography) => typography.caption2.regular,
|
|
80
79
|
color: theme.palette.text.base,
|
|
81
80
|
}),
|
|
81
|
+
iconContainer: {
|
|
82
|
+
paddingTop: 1,
|
|
83
|
+
},
|
|
82
84
|
title: {
|
|
83
85
|
alignItems: 'center',
|
|
84
86
|
paddingBottom: theme.spacing(1),
|
|
@@ -116,9 +118,9 @@ export default function useVariantStyleMap(variant: AccordionVariant): VariantSt
|
|
|
116
118
|
},
|
|
117
119
|
titleFont: createFontStyle(theme, {
|
|
118
120
|
selector: (_) => typographyOf({
|
|
119
|
-
fontSize:
|
|
120
|
-
lineHeight:
|
|
121
|
-
fontFamily: '
|
|
121
|
+
fontSize: 16,
|
|
122
|
+
lineHeight: 20.8,
|
|
123
|
+
fontFamily: 'PretendardStd-SemiBold',
|
|
122
124
|
letterSpacing: 0,
|
|
123
125
|
}),
|
|
124
126
|
color: theme.palette.text.strong,
|
package/src/AppBar/AppBar.tsx
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { View } from 'react-native';
|
|
3
3
|
import { NamedStylesStringUnion, UseStyles } from '@fountain-ui/styles';
|
|
4
|
+
import { useBreakpointUp } from '../hooks';
|
|
4
5
|
import { css, useTheme } from '../styles';
|
|
5
6
|
import type AppBarProps from './AppBarProps';
|
|
6
7
|
import type { AppBarColor } from './AppBarProps';
|
|
@@ -31,6 +32,8 @@ const AppBar = React.forwardRef<View, AppBarProps>(function AppBar(props, ref) {
|
|
|
31
32
|
|
|
32
33
|
const theme = useTheme();
|
|
33
34
|
|
|
35
|
+
const isDesktop = useBreakpointUp('md', true, false);
|
|
36
|
+
|
|
34
37
|
const styles = useStyles();
|
|
35
38
|
|
|
36
39
|
const backgroundColorMap: Record<AppBarColor, string> = {
|
|
@@ -41,6 +44,7 @@ const AppBar = React.forwardRef<View, AppBarProps>(function AppBar(props, ref) {
|
|
|
41
44
|
const paperStyle = css([
|
|
42
45
|
styles.root,
|
|
43
46
|
{ backgroundColor: backgroundColorMap[color] },
|
|
47
|
+
isDesktop ? { paddingHorizontal: 8 } : undefined,
|
|
44
48
|
style,
|
|
45
49
|
]);
|
|
46
50
|
|
package/src/AppBar/index.ts
CHANGED
package/src/Badge/index.ts
CHANGED
|
@@ -1,2 +1,13 @@
|
|
|
1
1
|
export { default } from './Badge';
|
|
2
|
-
export type {
|
|
2
|
+
export type {
|
|
3
|
+
default as BadgeProps,
|
|
4
|
+
BadgeHorizontalPosition,
|
|
5
|
+
BadgePosition,
|
|
6
|
+
BadgeVerticalPosition,
|
|
7
|
+
} from './BadgeProps';
|
|
8
|
+
export {
|
|
9
|
+
badgeColors,
|
|
10
|
+
badgeHorizontalPositions,
|
|
11
|
+
badgeSizes,
|
|
12
|
+
badgeVerticalPositions,
|
|
13
|
+
} from './BadgeProps';
|
|
@@ -49,13 +49,13 @@ export default function useVariantStyleMap(variant: BadgeVariant, size: BadgeSiz
|
|
|
49
49
|
large: typographyOf({
|
|
50
50
|
fontSize: 14,
|
|
51
51
|
lineHeight: 14,
|
|
52
|
-
fontFamily: '
|
|
52
|
+
fontFamily: 'PretendardStd-Bold',
|
|
53
53
|
letterSpacing: -0.7,
|
|
54
54
|
}),
|
|
55
55
|
medium: typographyOf({
|
|
56
56
|
fontSize: 12,
|
|
57
57
|
lineHeight: 12,
|
|
58
|
-
fontFamily: '
|
|
58
|
+
fontFamily: 'PretendardStd-Bold',
|
|
59
59
|
letterSpacing: -0.6,
|
|
60
60
|
}),
|
|
61
61
|
};
|