@fountain-ui/core 2.0.0-beta.98 → 3.0.0-alpha.10
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 -2
- package/build/commonjs/Accordion/Accordion.js.map +1 -1
- package/build/commonjs/Accordion/index.js +10 -2
- package/build/commonjs/Accordion/index.js.map +1 -1
- package/build/commonjs/Accordion/useVariantStyleMap.js +15 -12
- package/build/commonjs/Accordion/useVariantStyleMap.js.map +1 -1
- package/build/commonjs/AppBar/AppBar.js +8 -8
- package/build/commonjs/AppBar/AppBar.js.map +1 -1
- package/build/commonjs/AppBar/AppBarProps.js +7 -0
- package/build/commonjs/AppBar/AppBarProps.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 +28 -2
- package/build/commonjs/Badge/index.js.map +1 -1
- package/build/commonjs/Badge/useVariantStyleMap.js +15 -6
- package/build/commonjs/Badge/useVariantStyleMap.js.map +1 -1
- package/build/commonjs/{PaginationItem/LegacyPaginationItem.js → BottomSheetActions/BottomSheetActions.js} +10 -23
- package/build/commonjs/BottomSheetActions/BottomSheetActions.js.map +1 -0
- package/build/commonjs/BottomSheetActions/BottomSheetActionsProps.js +2 -0
- package/build/commonjs/BottomSheetActions/BottomSheetActionsProps.js.map +1 -0
- package/build/commonjs/BottomSheetActions/index.js +16 -0
- package/build/commonjs/BottomSheetActions/index.js.map +1 -0
- package/build/commonjs/{SvgIcon/LegacySvgIcon.js → BottomSheetContent/BottomSheetContent.js} +23 -23
- package/build/commonjs/BottomSheetContent/BottomSheetContent.js.map +1 -0
- package/build/commonjs/BottomSheetContent/BottomSheetContentProps.js +2 -0
- package/build/commonjs/BottomSheetContent/BottomSheetContentProps.js.map +1 -0
- package/build/commonjs/BottomSheetContent/index.js +16 -0
- package/build/commonjs/BottomSheetContent/index.js.map +1 -0
- package/build/commonjs/BottomSheetTitle/BottomSheetTitle.js +74 -0
- package/build/commonjs/BottomSheetTitle/BottomSheetTitle.js.map +1 -0
- package/build/commonjs/BottomSheetTitle/BottomSheetTitleProps.js +2 -0
- package/build/commonjs/BottomSheetTitle/BottomSheetTitleProps.js.map +1 -0
- package/build/commonjs/BottomSheetTitle/index.js +16 -0
- package/build/commonjs/BottomSheetTitle/index.js.map +1 -0
- package/build/commonjs/Button/Button.js +20 -11
- 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 +22 -2
- package/build/commonjs/Button/index.js.map +1 -1
- package/build/commonjs/Button/useVariantStyleMap.js +7 -1
- package/build/commonjs/Button/useVariantStyleMap.js.map +1 -1
- package/build/commonjs/Checkbox/Checkbox.js +5 -3
- package/build/commonjs/Checkbox/Checkbox.js.map +1 -1
- package/build/commonjs/Checkbox/index.js +10 -2
- package/build/commonjs/Checkbox/index.js.map +1 -1
- package/build/commonjs/Checkbox/useVariantStyleMap.js +10 -3
- package/build/commonjs/Checkbox/useVariantStyleMap.js.map +1 -1
- package/build/commonjs/Chip/index.js +16 -2
- package/build/commonjs/Chip/index.js.map +1 -1
- package/build/commonjs/Chip/useChipStyle.js +3 -7
- package/build/commonjs/Chip/useChipStyle.js.map +1 -1
- package/build/commonjs/Dialog/Dialog.js +10 -21
- package/build/commonjs/Dialog/Dialog.js.map +1 -1
- package/build/commonjs/Dialog/DialogContext.js +19 -0
- package/build/commonjs/Dialog/DialogContext.js.map +1 -0
- package/build/commonjs/Dialog/index.js +32 -2
- package/build/commonjs/Dialog/index.js.map +1 -1
- package/build/commonjs/Dialog/useDialogSectionStyle.js +40 -0
- package/build/commonjs/Dialog/useDialogSectionStyle.js.map +1 -0
- package/build/commonjs/Dialog/useDialogStyle.js +16 -18
- package/build/commonjs/Dialog/useDialogStyle.js.map +1 -1
- package/build/commonjs/DialogActions/DialogActions.js +17 -2
- package/build/commonjs/DialogActions/DialogActions.js.map +1 -1
- package/build/commonjs/DialogActions/index.js +2 -2
- package/build/commonjs/DialogActions/index.js.map +1 -1
- package/build/commonjs/DialogContent/DialogContent.js +6 -3
- package/build/commonjs/DialogContent/DialogContent.js.map +1 -1
- package/build/commonjs/DialogContent/index.js +2 -2
- package/build/commonjs/DialogContent/index.js.map +1 -1
- package/build/commonjs/DialogMedia/DialogMedia.js +1 -0
- package/build/commonjs/DialogMedia/DialogMedia.js.map +1 -1
- package/build/commonjs/DialogMedia/index.js +2 -2
- package/build/commonjs/DialogMedia/index.js.map +1 -1
- package/build/commonjs/DialogTitle/DialogTitle.js +4 -1
- package/build/commonjs/DialogTitle/DialogTitle.js.map +1 -1
- package/build/commonjs/DialogTitle/index.js +2 -2
- package/build/commonjs/DialogTitle/index.js.map +1 -1
- package/build/commonjs/Divider/Divider.js +1 -1
- package/build/commonjs/Divider/Divider.js.map +1 -1
- package/build/commonjs/Divider/DividerProps.js +3 -3
- package/build/commonjs/Divider/DividerProps.js.map +1 -1
- package/build/commonjs/Divider/index.js +16 -2
- package/build/commonjs/Divider/index.js.map +1 -1
- package/build/commonjs/Empty/Empty.js +3 -4
- 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 +26 -2
- package/build/commonjs/IconButton/IconButton.js.map +1 -1
- package/build/commonjs/IconButton/IconButtonProps.js.map +1 -1
- package/build/commonjs/IconButton/index.js +10 -2
- 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 +2 -2
- 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 +0 -4
- package/build/commonjs/Pagination/Pagination.js.map +1 -1
- package/build/commonjs/Pagination/index.js +10 -2
- package/build/commonjs/Pagination/index.js.map +1 -1
- package/build/commonjs/Radio/Radio.js +7 -4
- package/build/commonjs/Radio/Radio.js.map +1 -1
- package/build/commonjs/Radio/index.js +2 -2
- package/build/commonjs/Radio/index.js.map +1 -1
- package/build/commonjs/RadioGroup/index.js +2 -2
- package/build/commonjs/RadioGroup/index.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/{CheckboxGroup → Section}/index.js +2 -2
- package/build/commonjs/Section/index.js.map +1 -0
- package/build/commonjs/ShadowView/ShadowView.native.js +21 -5
- package/build/commonjs/ShadowView/ShadowView.native.js.map +1 -1
- package/build/commonjs/Snackbar/Snackbar.js +1 -1
- package/build/commonjs/Snackbar/Snackbar.js.map +1 -1
- package/build/commonjs/Snackbar/index.js +10 -2
- package/build/commonjs/Snackbar/index.js.map +1 -1
- package/build/commonjs/SnackbarContent/SnackbarContent.js +36 -11
- package/build/commonjs/SnackbarContent/SnackbarContent.js.map +1 -1
- package/build/commonjs/SnackbarContent/StatusIcon.js +0 -2
- package/build/commonjs/SnackbarContent/StatusIcon.js.map +1 -1
- package/build/commonjs/SnackbarContent/index.js +2 -2
- package/build/commonjs/SnackbarContent/index.js.map +1 -1
- package/build/commonjs/SvgIcon/index.js +16 -2
- package/build/commonjs/SvgIcon/index.js.map +1 -1
- package/build/commonjs/Tab/Tab.js +1 -1
- package/build/commonjs/Tab/Tab.js.map +1 -1
- package/build/commonjs/Tab/index.js +2 -2
- package/build/commonjs/Tab/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/TabBase/index.js +2 -2
- package/build/commonjs/TabBase/index.js.map +1 -1
- package/build/commonjs/Tabs/Tabs.js +20 -3
- package/build/commonjs/Tabs/Tabs.js.map +1 -1
- package/build/commonjs/Tabs/TabsProps.js +3 -1
- package/build/commonjs/Tabs/TabsProps.js.map +1 -1
- package/build/commonjs/Tabs/index.js +16 -2
- package/build/commonjs/Tabs/index.js.map +1 -1
- package/build/commonjs/Tabs/useTabsStyle.js +39 -0
- package/build/commonjs/Tabs/useTabsStyle.js.map +1 -0
- package/build/commonjs/TextField/TextField.js +1 -2
- package/build/commonjs/TextField/TextField.js.map +1 -1
- package/build/commonjs/TextField/index.js +10 -2
- 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/Toggle/Toggle.js +5 -3
- package/build/commonjs/Toggle/Toggle.js.map +1 -1
- package/build/commonjs/Toolbar/Toolbar.js +17 -6
- package/build/commonjs/Toolbar/Toolbar.js.map +1 -1
- package/build/commonjs/Toolbar/ToolbarProps.js +7 -0
- package/build/commonjs/Toolbar/ToolbarProps.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 -19
- package/build/commonjs/Tooltip/Tooltip.js.map +1 -1
- package/build/commonjs/Tooltip/index.js +41 -2
- 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 +10 -2
- 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 +84 -21
- package/build/commonjs/index.js.map +1 -1
- package/build/commonjs/internal/icons/LoadingSpinner/index.js +14 -4
- package/build/commonjs/internal/icons/LoadingSpinner/index.js.map +1 -1
- package/build/commonjs/internal/icons/LoadingSpinner/index.native.js +14 -4
- package/build/commonjs/internal/icons/LoadingSpinner/index.native.js.map +1 -1
- package/build/commonjs/utils/createSvgIcon.js +2 -10
- package/build/commonjs/utils/createSvgIcon.js.map +1 -1
- package/build/module/Accordion/Accordion.js +4 -2
- package/build/module/Accordion/Accordion.js.map +1 -1
- package/build/module/Accordion/index.js +2 -1
- package/build/module/Accordion/index.js.map +1 -1
- package/build/module/Accordion/useVariantStyleMap.js +15 -12
- package/build/module/Accordion/useVariantStyleMap.js.map +1 -1
- package/build/module/AppBar/AppBar.js +8 -8
- package/build/module/AppBar/AppBar.js.map +1 -1
- package/build/module/AppBar/AppBarProps.js +1 -1
- package/build/module/AppBar/AppBarProps.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 +2 -1
- package/build/module/Badge/index.js.map +1 -1
- package/build/module/Badge/useVariantStyleMap.js +15 -6
- package/build/module/Badge/useVariantStyleMap.js.map +1 -1
- package/build/module/{PaginationItem/LegacyPaginationItem.js → BottomSheetActions/BottomSheetActions.js} +9 -20
- package/build/module/BottomSheetActions/BottomSheetActions.js.map +1 -0
- package/build/module/BottomSheetActions/BottomSheetActionsProps.js +2 -0
- package/build/module/BottomSheetActions/BottomSheetActionsProps.js.map +1 -0
- package/build/module/BottomSheetActions/index.js +2 -0
- package/build/module/BottomSheetActions/index.js.map +1 -0
- package/build/module/BottomSheetContent/BottomSheetContent.js +32 -0
- package/build/module/BottomSheetContent/BottomSheetContent.js.map +1 -0
- package/build/module/BottomSheetContent/BottomSheetContentProps.js +2 -0
- package/build/module/BottomSheetContent/BottomSheetContentProps.js.map +1 -0
- package/build/module/BottomSheetContent/index.js +2 -0
- package/build/module/BottomSheetContent/index.js.map +1 -0
- package/build/module/BottomSheetTitle/BottomSheetTitle.js +61 -0
- package/build/module/BottomSheetTitle/BottomSheetTitle.js.map +1 -0
- package/build/module/BottomSheetTitle/BottomSheetTitleProps.js +2 -0
- package/build/module/BottomSheetTitle/BottomSheetTitleProps.js.map +1 -0
- package/build/module/BottomSheetTitle/index.js +2 -0
- package/build/module/BottomSheetTitle/index.js.map +1 -0
- package/build/module/Button/Button.js +20 -11
- 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 +2 -1
- package/build/module/Button/index.js.map +1 -1
- package/build/module/Button/useVariantStyleMap.js +7 -1
- package/build/module/Button/useVariantStyleMap.js.map +1 -1
- package/build/module/Checkbox/Checkbox.js +5 -3
- package/build/module/Checkbox/Checkbox.js.map +1 -1
- package/build/module/Checkbox/index.js +2 -1
- package/build/module/Checkbox/index.js.map +1 -1
- package/build/module/Checkbox/useVariantStyleMap.js +10 -3
- package/build/module/Checkbox/useVariantStyleMap.js.map +1 -1
- package/build/module/Chip/index.js +2 -1
- package/build/module/Chip/index.js.map +1 -1
- package/build/module/Chip/useChipStyle.js +3 -7
- package/build/module/Chip/useChipStyle.js.map +1 -1
- package/build/module/Dialog/Dialog.js +11 -19
- package/build/module/Dialog/Dialog.js.map +1 -1
- package/build/module/Dialog/DialogContext.js +7 -0
- package/build/module/Dialog/DialogContext.js.map +1 -0
- package/build/module/Dialog/index.js +4 -1
- package/build/module/Dialog/index.js.map +1 -1
- package/build/module/Dialog/useDialogSectionStyle.js +29 -0
- package/build/module/Dialog/useDialogSectionStyle.js.map +1 -0
- package/build/module/Dialog/useDialogStyle.js +16 -18
- package/build/module/Dialog/useDialogStyle.js.map +1 -1
- package/build/module/DialogActions/DialogActions.js +18 -3
- package/build/module/DialogActions/DialogActions.js.map +1 -1
- package/build/module/DialogActions/index.js +1 -1
- package/build/module/DialogActions/index.js.map +1 -1
- package/build/module/DialogContent/DialogContent.js +5 -3
- package/build/module/DialogContent/DialogContent.js.map +1 -1
- package/build/module/DialogContent/index.js +1 -1
- package/build/module/DialogContent/index.js.map +1 -1
- package/build/module/DialogMedia/DialogMedia.js +1 -0
- package/build/module/DialogMedia/DialogMedia.js.map +1 -1
- package/build/module/DialogMedia/index.js +1 -1
- package/build/module/DialogMedia/index.js.map +1 -1
- package/build/module/DialogTitle/DialogTitle.js +3 -1
- package/build/module/DialogTitle/DialogTitle.js.map +1 -1
- package/build/module/DialogTitle/index.js +1 -1
- package/build/module/DialogTitle/index.js.map +1 -1
- package/build/module/Divider/Divider.js +1 -1
- 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/Divider/index.js +2 -1
- package/build/module/Divider/index.js.map +1 -1
- package/build/module/Empty/Empty.js +3 -4
- 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 +25 -3
- package/build/module/IconButton/IconButton.js.map +1 -1
- package/build/module/IconButton/IconButtonProps.js.map +1 -1
- package/build/module/IconButton/index.js +2 -1
- 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 +2 -2
- 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 +0 -4
- package/build/module/Pagination/Pagination.js.map +1 -1
- package/build/module/Pagination/index.js +2 -1
- package/build/module/Pagination/index.js.map +1 -1
- package/build/module/Radio/Radio.js +6 -4
- package/build/module/Radio/Radio.js.map +1 -1
- package/build/module/Radio/index.js +1 -1
- package/build/module/Radio/index.js.map +1 -1
- package/build/module/RadioGroup/index.js +1 -1
- package/build/module/RadioGroup/index.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 +21 -5
- package/build/module/ShadowView/ShadowView.native.js.map +1 -1
- package/build/module/Snackbar/Snackbar.js +1 -1
- package/build/module/Snackbar/Snackbar.js.map +1 -1
- package/build/module/Snackbar/index.js +2 -1
- package/build/module/Snackbar/index.js.map +1 -1
- package/build/module/SnackbarContent/SnackbarContent.js +37 -12
- package/build/module/SnackbarContent/SnackbarContent.js.map +1 -1
- package/build/module/SnackbarContent/StatusIcon.js +0 -2
- package/build/module/SnackbarContent/StatusIcon.js.map +1 -1
- package/build/module/SnackbarContent/index.js +1 -1
- package/build/module/SnackbarContent/index.js.map +1 -1
- package/build/module/SvgIcon/index.js +2 -1
- package/build/module/SvgIcon/index.js.map +1 -1
- package/build/module/Tab/Tab.js +1 -1
- package/build/module/Tab/Tab.js.map +1 -1
- package/build/module/Tab/index.js +1 -1
- package/build/module/Tab/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/TabBase/index.js +1 -1
- package/build/module/TabBase/index.js.map +1 -1
- package/build/module/Tabs/Tabs.js +19 -3
- package/build/module/Tabs/Tabs.js.map +1 -1
- package/build/module/Tabs/TabsProps.js +1 -0
- package/build/module/Tabs/TabsProps.js.map +1 -1
- package/build/module/Tabs/index.js +2 -1
- package/build/module/Tabs/index.js.map +1 -1
- package/build/module/Tabs/useTabsStyle.js +30 -0
- package/build/module/Tabs/useTabsStyle.js.map +1 -0
- package/build/module/TextField/TextField.js +1 -2
- package/build/module/TextField/TextField.js.map +1 -1
- package/build/module/TextField/index.js +2 -1
- 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/Toggle/Toggle.js +5 -3
- package/build/module/Toggle/Toggle.js.map +1 -1
- package/build/module/Toolbar/Toolbar.js +16 -6
- package/build/module/Toolbar/Toolbar.js.map +1 -1
- package/build/module/Toolbar/ToolbarProps.js +1 -1
- package/build/module/Toolbar/ToolbarProps.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 -11
- package/build/module/Tooltip/Tooltip.js.map +1 -1
- package/build/module/Tooltip/index.js +3 -1
- 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 +2 -1
- 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 +8 -2
- package/build/module/index.js.map +1 -1
- package/build/module/internal/icons/LoadingSpinner/index.js +13 -4
- package/build/module/internal/icons/LoadingSpinner/index.js.map +1 -1
- package/build/module/internal/icons/LoadingSpinner/index.native.js +13 -4
- package/build/module/internal/icons/LoadingSpinner/index.native.js.map +1 -1
- package/build/module/utils/createSvgIcon.js +2 -9
- package/build/module/utils/createSvgIcon.js.map +1 -1
- package/build/typescript/Accordion/index.d.ts +3 -2
- package/build/typescript/Accordion/useVariantStyleMap.d.ts +1 -0
- package/build/typescript/AppBar/AppBarProps.d.ts +2 -1
- package/build/typescript/AppBar/index.d.ts +1 -0
- package/build/typescript/Badge/index.d.ts +3 -2
- package/build/typescript/BottomSheetActions/BottomSheetActions.d.ts +3 -0
- package/build/typescript/BottomSheetActions/BottomSheetActionsProps.d.ts +4 -0
- package/build/typescript/BottomSheetActions/index.d.ts +2 -0
- package/build/typescript/BottomSheetContent/BottomSheetContent.d.ts +3 -0
- package/build/typescript/BottomSheetContent/BottomSheetContentProps.d.ts +4 -0
- package/build/typescript/BottomSheetContent/index.d.ts +2 -0
- package/build/typescript/BottomSheetTitle/BottomSheetTitle.d.ts +3 -0
- package/build/typescript/BottomSheetTitle/BottomSheetTitleProps.d.ts +12 -0
- package/build/typescript/BottomSheetTitle/index.d.ts +2 -0
- package/build/typescript/Button/ButtonProps.d.ts +11 -6
- package/build/typescript/Button/index.d.ts +3 -2
- package/build/typescript/Checkbox/index.d.ts +3 -2
- package/build/typescript/Checkbox/useVariantStyleMap.d.ts +1 -0
- package/build/typescript/Chip/index.d.ts +3 -2
- package/build/typescript/Dialog/DialogContext.d.ts +7 -0
- package/build/typescript/Dialog/index.d.ts +5 -2
- package/build/typescript/Dialog/useDialogSectionStyle.d.ts +2 -0
- package/build/typescript/Dialog/useDialogStyle.d.ts +1 -1
- package/build/typescript/DialogActions/index.d.ts +1 -1
- package/build/typescript/DialogContent/index.d.ts +2 -2
- package/build/typescript/DialogMedia/index.d.ts +2 -2
- package/build/typescript/DialogTitle/index.d.ts +2 -2
- package/build/typescript/Divider/DividerProps.d.ts +3 -3
- package/build/typescript/Divider/index.d.ts +3 -2
- package/build/typescript/Flexbox/FlexboxProps.d.ts +4 -0
- package/build/typescript/IconButton/IconButtonProps.d.ts +5 -0
- package/build/typescript/IconButton/index.d.ts +3 -2
- 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/index.d.ts +3 -2
- package/build/typescript/Radio/index.d.ts +2 -2
- package/build/typescript/RadioGroup/index.d.ts +1 -1
- 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 +3 -2
- package/build/typescript/SnackbarContent/index.d.ts +2 -2
- package/build/typescript/SvgIcon/index.d.ts +3 -2
- package/build/typescript/Tab/index.d.ts +2 -2
- package/build/typescript/TabBase/index.d.ts +1 -1
- package/build/typescript/Tabs/Tabs.d.ts +1 -1
- package/build/typescript/Tabs/TabsProps.d.ts +8 -1
- package/build/typescript/Tabs/index.d.ts +3 -2
- package/build/typescript/Tabs/useTabsStyle.d.ts +7 -0
- package/build/typescript/TextField/index.d.ts +3 -2
- package/build/typescript/Toolbar/ToolbarProps.d.ts +9 -2
- 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 +4 -2
- package/build/typescript/Typography/TypographyProps.d.ts +4 -0
- package/build/typescript/Typography/index.d.ts +3 -2
- package/build/typescript/hooks/useContentContainerStyle.d.ts +4 -8
- package/build/typescript/index.d.ts +8 -2
- package/build/typescript/internal/icons/Check.d.ts +125 -2
- package/build/typescript/internal/icons/CheckCircle.d.ts +125 -2
- package/build/typescript/internal/icons/Checkbox.d.ts +125 -2
- package/build/typescript/internal/icons/CheckboxChecked.d.ts +125 -2
- package/build/typescript/internal/icons/CheckboxOn.d.ts +125 -2
- package/build/typescript/internal/icons/ChevronDown.d.ts +125 -2
- package/build/typescript/internal/icons/ChevronLeft.d.ts +125 -2
- package/build/typescript/internal/icons/ChevronRight.d.ts +125 -2
- package/build/typescript/internal/icons/Clear.d.ts +125 -2
- package/build/typescript/internal/icons/Close.d.ts +125 -2
- package/build/typescript/internal/icons/EyeOff.d.ts +125 -2
- package/build/typescript/internal/icons/EyeOn.d.ts +125 -2
- package/build/typescript/internal/icons/InfoCircle.d.ts +125 -2
- package/build/typescript/internal/icons/Radio.d.ts +125 -2
- package/build/typescript/internal/icons/RadioChecked.d.ts +125 -2
- package/build/typescript/internal/icons/Search.d.ts +125 -2
- package/build/typescript/utils/createSvgIcon.d.ts +1 -5
- package/package.json +4 -4
- package/src/Accordion/Accordion.tsx +4 -2
- package/src/Accordion/index.ts +3 -2
- package/src/Accordion/useVariantStyleMap.ts +14 -10
- package/src/AppBar/AppBar.tsx +7 -13
- package/src/AppBar/AppBarProps.ts +2 -1
- package/src/AppBar/index.ts +2 -1
- package/src/Badge/index.ts +13 -2
- package/src/Badge/useVariantStyleMap.ts +17 -7
- package/src/BottomSheetActions/BottomSheetActions.tsx +42 -0
- package/src/BottomSheetActions/BottomSheetActionsProps.ts +4 -0
- package/src/BottomSheetActions/index.ts +2 -0
- package/src/BottomSheetContent/BottomSheetContent.tsx +45 -0
- package/src/BottomSheetContent/BottomSheetContentProps.ts +4 -0
- package/src/BottomSheetContent/index.ts +2 -0
- package/src/BottomSheetTitle/BottomSheetTitle.tsx +84 -0
- package/src/BottomSheetTitle/BottomSheetTitleProps.ts +12 -0
- package/src/BottomSheetTitle/index.ts +2 -0
- package/src/Button/Button.tsx +28 -15
- package/src/Button/ButtonProps.ts +12 -6
- package/src/Button/index.ts +3 -2
- package/src/Button/useVariantStyleMap.ts +5 -1
- package/src/Checkbox/Checkbox.tsx +12 -10
- package/src/Checkbox/index.ts +3 -2
- package/src/Checkbox/useVariantStyleMap.ts +9 -1
- package/src/Chip/index.ts +3 -2
- package/src/Chip/useChipStyle.ts +2 -6
- package/src/Dialog/Dialog.tsx +9 -19
- package/src/Dialog/DialogContext.tsx +14 -0
- package/src/Dialog/index.ts +5 -2
- package/src/Dialog/useDialogSectionStyle.ts +31 -0
- package/src/Dialog/useDialogStyle.ts +14 -22
- package/src/DialogActions/DialogActions.tsx +28 -3
- package/src/DialogActions/index.ts +1 -1
- package/src/DialogContent/DialogContent.tsx +6 -2
- package/src/DialogContent/index.ts +2 -2
- package/src/DialogMedia/DialogMedia.tsx +1 -0
- package/src/DialogMedia/index.ts +2 -2
- package/src/DialogTitle/DialogTitle.tsx +4 -0
- package/src/DialogTitle/index.ts +2 -2
- package/src/Divider/Divider.tsx +1 -1
- package/src/Divider/DividerProps.ts +3 -3
- package/src/Divider/index.ts +3 -2
- package/src/Empty/Empty.tsx +3 -5
- package/src/Flexbox/Flexbox.tsx +2 -0
- package/src/Flexbox/FlexboxProps.ts +5 -0
- package/src/IconButton/IconButton.tsx +33 -3
- package/src/IconButton/IconButtonProps.ts +6 -0
- package/src/IconButton/index.ts +3 -2
- 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 +2 -2
- package/src/Pagination/NumberPagination.tsx +1 -1
- package/src/Pagination/Pagination.tsx +0 -4
- package/src/Pagination/index.ts +3 -2
- package/src/Radio/Radio.tsx +9 -6
- package/src/Radio/index.ts +2 -2
- package/src/RadioGroup/index.ts +1 -1
- 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 +25 -10
- package/src/Snackbar/Snackbar.tsx +1 -1
- package/src/Snackbar/index.ts +3 -2
- package/src/SnackbarContent/SnackbarContent.tsx +48 -19
- package/src/SnackbarContent/StatusIcon.tsx +0 -2
- package/src/SnackbarContent/index.ts +2 -2
- package/src/SvgIcon/index.ts +3 -2
- package/src/Tab/Tab.tsx +1 -1
- package/src/Tab/index.ts +2 -2
- package/src/Tab/useVariantStyleMap.ts +3 -3
- package/src/TabBase/index.ts +1 -1
- package/src/Tabs/Tabs.tsx +21 -3
- package/src/Tabs/TabsProps.ts +10 -1
- package/src/Tabs/index.ts +3 -2
- package/src/Tabs/useTabsStyle.ts +35 -0
- package/src/TextField/TextField.tsx +1 -2
- package/src/TextField/index.tsx +3 -2
- package/src/TextField/useVariantStyleMap.ts +2 -2
- package/src/Toggle/Toggle.tsx +7 -5
- package/src/Toolbar/Toolbar.tsx +13 -6
- package/src/Toolbar/ToolbarProps.ts +11 -2
- package/src/Toolbar/index.ts +2 -1
- package/src/Tooltip/Beaks/index.ts +4 -0
- package/src/Tooltip/Tooltip.tsx +5 -11
- package/src/Tooltip/index.ts +4 -2
- package/src/Typography/Typography.tsx +3 -1
- package/src/Typography/TypographyProps.ts +5 -0
- package/src/Typography/index.ts +3 -2
- package/src/hooks/useBreakpointUp.ts +3 -1
- package/src/hooks/useContentContainerStyle.ts +26 -34
- package/src/index.ts +12 -3
- package/src/internal/icons/LoadingSpinner/index.native.tsx +17 -7
- package/src/internal/icons/LoadingSpinner/index.tsx +17 -7
- package/src/utils/createSvgIcon.tsx +3 -21
- package/build/commonjs/Accordion/LegacyAccordion.js +0 -171
- package/build/commonjs/Accordion/LegacyAccordion.js.map +0 -1
- package/build/commonjs/Accordion/LegacyAccordionProps.js +0 -2
- package/build/commonjs/Accordion/LegacyAccordionProps.js.map +0 -1
- package/build/commonjs/Badge/LegacyBadge.js +0 -61
- package/build/commonjs/Badge/LegacyBadge.js.map +0 -1
- package/build/commonjs/Badge/LegacyBadgeProps.js +0 -2
- package/build/commonjs/Badge/LegacyBadgeProps.js.map +0 -1
- package/build/commonjs/Button/LegacyButton.js +0 -144
- package/build/commonjs/Button/LegacyButton.js.map +0 -1
- package/build/commonjs/Button/LegacyButtonProps.js +0 -2
- package/build/commonjs/Button/LegacyButtonProps.js.map +0 -1
- package/build/commonjs/Checkbox/LegacyCheckbox.js +0 -65
- package/build/commonjs/Checkbox/LegacyCheckbox.js.map +0 -1
- package/build/commonjs/Checkbox/LegacyCheckboxProps.js +0 -2
- package/build/commonjs/Checkbox/LegacyCheckboxProps.js.map +0 -1
- package/build/commonjs/CheckboxGroup/CheckboxGroup.js +0 -50
- package/build/commonjs/CheckboxGroup/CheckboxGroup.js.map +0 -1
- package/build/commonjs/CheckboxGroup/CheckboxGroupProps.js +0 -2
- package/build/commonjs/CheckboxGroup/CheckboxGroupProps.js.map +0 -1
- package/build/commonjs/CheckboxGroup/index.js.map +0 -1
- package/build/commonjs/Chip/LegacyChip.js +0 -98
- package/build/commonjs/Chip/LegacyChip.js.map +0 -1
- package/build/commonjs/Chip/LegacyChipProps.js +0 -2
- package/build/commonjs/Chip/LegacyChipProps.js.map +0 -1
- package/build/commonjs/Dialog/LegacyDialog.js +0 -181
- package/build/commonjs/Dialog/LegacyDialog.js.map +0 -1
- package/build/commonjs/Dialog/LegacyDialogProps.js +0 -2
- package/build/commonjs/Dialog/LegacyDialogProps.js.map +0 -1
- package/build/commonjs/DialogActions/LegacyDialogActions.js +0 -30
- package/build/commonjs/DialogActions/LegacyDialogActions.js.map +0 -1
- package/build/commonjs/DialogContent/LegacyDialogContent.js +0 -36
- package/build/commonjs/DialogContent/LegacyDialogContent.js.map +0 -1
- package/build/commonjs/DialogContent/LegacyDialogContentProps.js +0 -2
- package/build/commonjs/DialogContent/LegacyDialogContentProps.js.map +0 -1
- package/build/commonjs/DialogMedia/LegacyDialogMedia.js +0 -33
- package/build/commonjs/DialogMedia/LegacyDialogMedia.js.map +0 -1
- package/build/commonjs/DialogMedia/LegacyDialogMediaProps.js +0 -2
- package/build/commonjs/DialogMedia/LegacyDialogMediaProps.js.map +0 -1
- package/build/commonjs/DialogTitle/LegacyDialogTitle.js +0 -36
- package/build/commonjs/DialogTitle/LegacyDialogTitle.js.map +0 -1
- package/build/commonjs/DialogTitle/LegacyDialogTitleProps.js +0 -2
- package/build/commonjs/DialogTitle/LegacyDialogTitleProps.js.map +0 -1
- package/build/commonjs/Divider/LegacyDivider.js +0 -114
- package/build/commonjs/Divider/LegacyDivider.js.map +0 -1
- package/build/commonjs/Divider/LegacyDividerProps.js +0 -2
- package/build/commonjs/Divider/LegacyDividerProps.js.map +0 -1
- package/build/commonjs/IconButton/LegacyIconButton.js +0 -89
- package/build/commonjs/IconButton/LegacyIconButton.js.map +0 -1
- package/build/commonjs/IconButton/LegacyIconButtonProps.js +0 -2
- package/build/commonjs/IconButton/LegacyIconButtonProps.js.map +0 -1
- package/build/commonjs/Pagination/LegacyPagination.js +0 -145
- package/build/commonjs/Pagination/LegacyPagination.js.map +0 -1
- package/build/commonjs/Pagination/LegacyPaginationProps.js +0 -2
- package/build/commonjs/Pagination/LegacyPaginationProps.js.map +0 -1
- package/build/commonjs/PaginationItem/LegacyPaginationItem.js.map +0 -1
- package/build/commonjs/Radio/LegacyRadio.js +0 -82
- package/build/commonjs/Radio/LegacyRadio.js.map +0 -1
- package/build/commonjs/Radio/LegacyRadioProps.js +0 -2
- package/build/commonjs/Radio/LegacyRadioProps.js.map +0 -1
- package/build/commonjs/RadioGroup/LegacyRadioGroup.js +0 -31
- package/build/commonjs/RadioGroup/LegacyRadioGroup.js.map +0 -1
- package/build/commonjs/Snackbar/LegacySnackbar.js +0 -134
- package/build/commonjs/Snackbar/LegacySnackbar.js.map +0 -1
- package/build/commonjs/Snackbar/LegacySnackbarProps.js +0 -2
- package/build/commonjs/Snackbar/LegacySnackbarProps.js.map +0 -1
- package/build/commonjs/SnackbarContent/LegacySnackbarContent.js +0 -105
- package/build/commonjs/SnackbarContent/LegacySnackbarContent.js.map +0 -1
- package/build/commonjs/SnackbarContent/LegacySnackbarContentProps.js +0 -2
- package/build/commonjs/SnackbarContent/LegacySnackbarContentProps.js.map +0 -1
- package/build/commonjs/SvgIcon/LegacySvgIcon.js.map +0 -1
- package/build/commonjs/SvgIcon/LegacySvgIconProps.js +0 -2
- package/build/commonjs/SvgIcon/LegacySvgIconProps.js.map +0 -1
- package/build/commonjs/Tab/LegacyTab.js +0 -126
- package/build/commonjs/Tab/LegacyTab.js.map +0 -1
- package/build/commonjs/Tab/LegacyTabProps.js +0 -2
- package/build/commonjs/Tab/LegacyTabProps.js.map +0 -1
- package/build/commonjs/Tab/TabIndicator.js +0 -44
- package/build/commonjs/Tab/TabIndicator.js.map +0 -1
- package/build/commonjs/TabBase/LegacyTabBase.js +0 -57
- package/build/commonjs/TabBase/LegacyTabBase.js.map +0 -1
- package/build/commonjs/Tabs/LegacyTabIndicator.js +0 -120
- package/build/commonjs/Tabs/LegacyTabIndicator.js.map +0 -1
- package/build/commonjs/Tabs/LegacyTabIndicatorProps.js +0 -2
- package/build/commonjs/Tabs/LegacyTabIndicatorProps.js.map +0 -1
- package/build/commonjs/Tabs/LegacyTabs.js +0 -207
- package/build/commonjs/Tabs/LegacyTabs.js.map +0 -1
- package/build/commonjs/Tabs/LegacyTabsProps.js +0 -2
- package/build/commonjs/Tabs/LegacyTabsProps.js.map +0 -1
- package/build/commonjs/TextField/InputLabel.js +0 -163
- package/build/commonjs/TextField/InputLabel.js.map +0 -1
- package/build/commonjs/TextField/LegacyTextField.js +0 -195
- package/build/commonjs/TextField/LegacyTextField.js.map +0 -1
- package/build/commonjs/TextField/LegacyTextFieldProps.js +0 -2
- package/build/commonjs/TextField/LegacyTextFieldProps.js.map +0 -1
- package/build/commonjs/TextField/OutlinedTextField.js +0 -190
- package/build/commonjs/TextField/OutlinedTextField.js.map +0 -1
- package/build/commonjs/Tooltip/LegacyTooltip.js +0 -147
- package/build/commonjs/Tooltip/LegacyTooltip.js.map +0 -1
- package/build/commonjs/Tooltip/LegacyTooltipProps.js +0 -2
- package/build/commonjs/Tooltip/LegacyTooltipProps.js.map +0 -1
- package/build/commonjs/Tooltip/UpArrow.js +0 -34
- package/build/commonjs/Tooltip/UpArrow.js.map +0 -1
- package/build/commonjs/Tooltip/UpArrowProps.js +0 -2
- package/build/commonjs/Tooltip/UpArrowProps.js.map +0 -1
- package/build/commonjs/Typography/LegacyTypography.js +0 -142
- package/build/commonjs/Typography/LegacyTypography.js.map +0 -1
- package/build/commonjs/Typography/LegacyTypographyProps.js +0 -2
- package/build/commonjs/Typography/LegacyTypographyProps.js.map +0 -1
- package/build/module/Accordion/LegacyAccordion.js +0 -148
- package/build/module/Accordion/LegacyAccordion.js.map +0 -1
- package/build/module/Accordion/LegacyAccordionProps.js +0 -2
- package/build/module/Accordion/LegacyAccordionProps.js.map +0 -1
- package/build/module/Badge/LegacyBadge.js +0 -48
- package/build/module/Badge/LegacyBadge.js.map +0 -1
- package/build/module/Badge/LegacyBadgeProps.js +0 -2
- package/build/module/Badge/LegacyBadgeProps.js.map +0 -1
- package/build/module/Button/LegacyButton.js +0 -127
- package/build/module/Button/LegacyButton.js.map +0 -1
- package/build/module/Button/LegacyButtonProps.js +0 -2
- package/build/module/Button/LegacyButtonProps.js.map +0 -1
- package/build/module/Checkbox/LegacyCheckbox.js +0 -52
- package/build/module/Checkbox/LegacyCheckbox.js.map +0 -1
- package/build/module/Checkbox/LegacyCheckboxProps.js +0 -2
- package/build/module/Checkbox/LegacyCheckboxProps.js.map +0 -1
- package/build/module/CheckboxGroup/CheckboxGroup.js +0 -34
- package/build/module/CheckboxGroup/CheckboxGroup.js.map +0 -1
- package/build/module/CheckboxGroup/CheckboxGroupProps.js +0 -2
- package/build/module/CheckboxGroup/CheckboxGroupProps.js.map +0 -1
- package/build/module/CheckboxGroup/index.js +0 -2
- package/build/module/CheckboxGroup/index.js.map +0 -1
- package/build/module/Chip/LegacyChip.js +0 -84
- package/build/module/Chip/LegacyChip.js.map +0 -1
- package/build/module/Chip/LegacyChipProps.js +0 -2
- package/build/module/Chip/LegacyChipProps.js.map +0 -1
- package/build/module/Dialog/LegacyDialog.js +0 -160
- package/build/module/Dialog/LegacyDialog.js.map +0 -1
- package/build/module/Dialog/LegacyDialogProps.js +0 -2
- package/build/module/Dialog/LegacyDialogProps.js.map +0 -1
- package/build/module/DialogActions/LegacyDialogActions.js +0 -17
- package/build/module/DialogActions/LegacyDialogActions.js.map +0 -1
- package/build/module/DialogContent/LegacyDialogContent.js +0 -22
- package/build/module/DialogContent/LegacyDialogContent.js.map +0 -1
- package/build/module/DialogContent/LegacyDialogContentProps.js +0 -2
- package/build/module/DialogContent/LegacyDialogContentProps.js.map +0 -1
- package/build/module/DialogMedia/LegacyDialogMedia.js +0 -21
- package/build/module/DialogMedia/LegacyDialogMedia.js.map +0 -1
- package/build/module/DialogMedia/LegacyDialogMediaProps.js +0 -2
- package/build/module/DialogMedia/LegacyDialogMediaProps.js.map +0 -1
- package/build/module/DialogTitle/LegacyDialogTitle.js +0 -22
- package/build/module/DialogTitle/LegacyDialogTitle.js.map +0 -1
- package/build/module/DialogTitle/LegacyDialogTitleProps.js +0 -2
- package/build/module/DialogTitle/LegacyDialogTitleProps.js.map +0 -1
- package/build/module/Divider/LegacyDivider.js +0 -100
- package/build/module/Divider/LegacyDivider.js.map +0 -1
- package/build/module/Divider/LegacyDividerProps.js +0 -2
- package/build/module/Divider/LegacyDividerProps.js.map +0 -1
- package/build/module/IconButton/LegacyIconButton.js +0 -74
- package/build/module/IconButton/LegacyIconButton.js.map +0 -1
- package/build/module/IconButton/LegacyIconButtonProps.js +0 -2
- package/build/module/IconButton/LegacyIconButtonProps.js.map +0 -1
- package/build/module/Pagination/LegacyPagination.js +0 -129
- package/build/module/Pagination/LegacyPagination.js.map +0 -1
- package/build/module/Pagination/LegacyPaginationProps.js +0 -2
- package/build/module/Pagination/LegacyPaginationProps.js.map +0 -1
- package/build/module/PaginationItem/LegacyPaginationItem.js.map +0 -1
- package/build/module/Radio/LegacyRadio.js +0 -63
- package/build/module/Radio/LegacyRadio.js.map +0 -1
- package/build/module/Radio/LegacyRadioProps.js +0 -2
- package/build/module/Radio/LegacyRadioProps.js.map +0 -1
- package/build/module/RadioGroup/LegacyRadioGroup.js +0 -18
- package/build/module/RadioGroup/LegacyRadioGroup.js.map +0 -1
- package/build/module/Snackbar/LegacySnackbar.js +0 -107
- package/build/module/Snackbar/LegacySnackbar.js.map +0 -1
- package/build/module/Snackbar/LegacySnackbarProps.js +0 -2
- package/build/module/Snackbar/LegacySnackbarProps.js.map +0 -1
- package/build/module/SnackbarContent/LegacySnackbarContent.js +0 -84
- package/build/module/SnackbarContent/LegacySnackbarContent.js.map +0 -1
- package/build/module/SnackbarContent/LegacySnackbarContentProps.js +0 -2
- package/build/module/SnackbarContent/LegacySnackbarContentProps.js.map +0 -1
- package/build/module/SvgIcon/LegacySvgIcon.js +0 -30
- package/build/module/SvgIcon/LegacySvgIcon.js.map +0 -1
- package/build/module/SvgIcon/LegacySvgIconProps.js +0 -2
- package/build/module/SvgIcon/LegacySvgIconProps.js.map +0 -1
- package/build/module/Tab/LegacyTab.js +0 -105
- package/build/module/Tab/LegacyTab.js.map +0 -1
- package/build/module/Tab/LegacyTabProps.js +0 -2
- package/build/module/Tab/LegacyTabProps.js.map +0 -1
- package/build/module/Tab/TabIndicator.js +0 -31
- package/build/module/Tab/TabIndicator.js.map +0 -1
- package/build/module/TabBase/LegacyTabBase.js +0 -44
- package/build/module/TabBase/LegacyTabBase.js.map +0 -1
- package/build/module/Tabs/LegacyTabIndicator.js +0 -99
- package/build/module/Tabs/LegacyTabIndicator.js.map +0 -1
- package/build/module/Tabs/LegacyTabIndicatorProps.js +0 -2
- package/build/module/Tabs/LegacyTabIndicatorProps.js.map +0 -1
- package/build/module/Tabs/LegacyTabs.js +0 -182
- package/build/module/Tabs/LegacyTabs.js.map +0 -1
- package/build/module/Tabs/LegacyTabsProps.js +0 -2
- package/build/module/Tabs/LegacyTabsProps.js.map +0 -1
- package/build/module/TextField/InputLabel.js +0 -149
- package/build/module/TextField/InputLabel.js.map +0 -1
- package/build/module/TextField/LegacyTextField.js +0 -169
- package/build/module/TextField/LegacyTextField.js.map +0 -1
- package/build/module/TextField/LegacyTextFieldProps.js +0 -2
- package/build/module/TextField/LegacyTextFieldProps.js.map +0 -1
- package/build/module/TextField/OutlinedTextField.js +0 -174
- package/build/module/TextField/OutlinedTextField.js.map +0 -1
- package/build/module/Tooltip/LegacyTooltip.js +0 -121
- package/build/module/Tooltip/LegacyTooltip.js.map +0 -1
- package/build/module/Tooltip/LegacyTooltipProps.js +0 -2
- package/build/module/Tooltip/LegacyTooltipProps.js.map +0 -1
- package/build/module/Tooltip/UpArrow.js +0 -22
- package/build/module/Tooltip/UpArrow.js.map +0 -1
- package/build/module/Tooltip/UpArrowProps.js +0 -2
- package/build/module/Tooltip/UpArrowProps.js.map +0 -1
- package/build/module/Typography/LegacyTypography.js +0 -126
- package/build/module/Typography/LegacyTypography.js.map +0 -1
- package/build/module/Typography/LegacyTypographyProps.js +0 -2
- package/build/module/Typography/LegacyTypographyProps.js.map +0 -1
- package/build/typescript/Accordion/LegacyAccordion.d.ts +0 -3
- package/build/typescript/Accordion/LegacyAccordionProps.d.ts +0 -28
- package/build/typescript/Badge/LegacyBadge.d.ts +0 -3
- package/build/typescript/Badge/LegacyBadgeProps.d.ts +0 -34
- package/build/typescript/Button/LegacyButton.d.ts +0 -3
- package/build/typescript/Button/LegacyButtonProps.d.ts +0 -51
- package/build/typescript/Checkbox/LegacyCheckbox.d.ts +0 -3
- package/build/typescript/Checkbox/LegacyCheckboxProps.d.ts +0 -36
- package/build/typescript/CheckboxGroup/CheckboxGroup.d.ts +0 -3
- package/build/typescript/CheckboxGroup/CheckboxGroupProps.d.ts +0 -11
- package/build/typescript/CheckboxGroup/index.d.ts +0 -2
- package/build/typescript/Chip/LegacyChip.d.ts +0 -3
- package/build/typescript/Chip/LegacyChipProps.d.ts +0 -28
- package/build/typescript/Dialog/LegacyDialog.d.ts +0 -3
- package/build/typescript/Dialog/LegacyDialogProps.d.ts +0 -25
- package/build/typescript/DialogActions/LegacyDialogActions.d.ts +0 -3
- package/build/typescript/DialogContent/LegacyDialogContent.d.ts +0 -3
- package/build/typescript/DialogContent/LegacyDialogContentProps.d.ts +0 -10
- package/build/typescript/DialogMedia/LegacyDialogMedia.d.ts +0 -3
- package/build/typescript/DialogMedia/LegacyDialogMediaProps.d.ts +0 -15
- package/build/typescript/DialogTitle/LegacyDialogTitle.d.ts +0 -3
- package/build/typescript/DialogTitle/LegacyDialogTitleProps.d.ts +0 -15
- package/build/typescript/Divider/LegacyDivider.d.ts +0 -3
- package/build/typescript/Divider/LegacyDividerProps.d.ts +0 -41
- package/build/typescript/IconButton/LegacyIconButton.d.ts +0 -3
- package/build/typescript/IconButton/LegacyIconButtonProps.d.ts +0 -30
- package/build/typescript/Pagination/LegacyPagination.d.ts +0 -3
- package/build/typescript/Pagination/LegacyPaginationProps.d.ts +0 -71
- package/build/typescript/PaginationItem/LegacyPaginationItem.d.ts +0 -5
- package/build/typescript/Radio/LegacyRadio.d.ts +0 -3
- package/build/typescript/Radio/LegacyRadioProps.d.ts +0 -43
- package/build/typescript/RadioGroup/LegacyRadioGroup.d.ts +0 -3
- package/build/typescript/Snackbar/LegacySnackbar.d.ts +0 -3
- package/build/typescript/Snackbar/LegacySnackbarProps.d.ts +0 -51
- package/build/typescript/SnackbarContent/LegacySnackbarContent.d.ts +0 -3
- package/build/typescript/SnackbarContent/LegacySnackbarContentProps.d.ts +0 -26
- package/build/typescript/SvgIcon/LegacySvgIcon.d.ts +0 -3
- package/build/typescript/SvgIcon/LegacySvgIconProps.d.ts +0 -35
- package/build/typescript/Tab/LegacyTab.d.ts +0 -3
- package/build/typescript/Tab/LegacyTabProps.d.ts +0 -58
- package/build/typescript/Tab/TabIndicator.d.ts +0 -7
- package/build/typescript/TabBase/LegacyTabBase.d.ts +0 -3
- package/build/typescript/Tabs/LegacyTabIndicator.d.ts +0 -3
- package/build/typescript/Tabs/LegacyTabIndicatorProps.d.ts +0 -32
- package/build/typescript/Tabs/LegacyTabs.d.ts +0 -5
- package/build/typescript/Tabs/LegacyTabsProps.d.ts +0 -79
- package/build/typescript/TextField/InputLabel.d.ts +0 -33
- package/build/typescript/TextField/LegacyTextField.d.ts +0 -5
- package/build/typescript/TextField/LegacyTextFieldProps.d.ts +0 -67
- package/build/typescript/TextField/OutlinedTextField.d.ts +0 -17
- package/build/typescript/Tooltip/LegacyTooltip.d.ts +0 -3
- package/build/typescript/Tooltip/LegacyTooltipProps.d.ts +0 -72
- package/build/typescript/Tooltip/UpArrow.d.ts +0 -5
- package/build/typescript/Tooltip/UpArrowProps.d.ts +0 -17
- package/build/typescript/Typography/LegacyTypography.d.ts +0 -5
- package/build/typescript/Typography/LegacyTypographyProps.d.ts +0 -81
- package/src/Accordion/LegacyAccordion.tsx +0 -188
- package/src/Accordion/LegacyAccordionProps.ts +0 -34
- package/src/Badge/LegacyBadge.tsx +0 -66
- package/src/Badge/LegacyBadgeProps.ts +0 -40
- package/src/Button/LegacyButton.tsx +0 -157
- package/src/Button/LegacyButtonProps.ts +0 -62
- package/src/Checkbox/LegacyCheckbox.tsx +0 -62
- package/src/Checkbox/LegacyCheckboxProps.ts +0 -42
- package/src/CheckboxGroup/CheckboxGroup.tsx +0 -47
- package/src/CheckboxGroup/CheckboxGroupProps.ts +0 -11
- package/src/CheckboxGroup/index.ts +0 -2
- package/src/Chip/LegacyChip.tsx +0 -116
- package/src/Chip/LegacyChipProps.ts +0 -33
- package/src/Dialog/LegacyDialog.tsx +0 -198
- package/src/Dialog/LegacyDialogProps.ts +0 -28
- package/src/DialogActions/LegacyDialogActions.tsx +0 -23
- package/src/DialogContent/LegacyDialogContent.tsx +0 -30
- package/src/DialogContent/LegacyDialogContentProps.ts +0 -10
- package/src/DialogMedia/LegacyDialogMedia.tsx +0 -21
- package/src/DialogMedia/LegacyDialogMediaProps.ts +0 -16
- package/src/DialogTitle/LegacyDialogTitle.tsx +0 -30
- package/src/DialogTitle/LegacyDialogTitleProps.ts +0 -16
- package/src/Divider/LegacyDivider.tsx +0 -114
- package/src/Divider/LegacyDividerProps.ts +0 -48
- package/src/IconButton/LegacyIconButton.tsx +0 -97
- package/src/IconButton/LegacyIconButtonProps.ts +0 -36
- package/src/Pagination/LegacyPagination.tsx +0 -168
- package/src/Pagination/LegacyPaginationProps.ts +0 -85
- package/src/PaginationItem/LegacyPaginationItem.tsx +0 -52
- package/src/Radio/LegacyRadio.tsx +0 -72
- package/src/Radio/LegacyRadioProps.ts +0 -50
- package/src/RadioGroup/LegacyRadioGroup.tsx +0 -20
- package/src/Snackbar/LegacySnackbar.tsx +0 -130
- package/src/Snackbar/LegacySnackbarProps.ts +0 -61
- package/src/SnackbarContent/LegacySnackbarContent.tsx +0 -129
- package/src/SnackbarContent/LegacySnackbarContentProps.ts +0 -30
- package/src/SvgIcon/LegacySvgIcon.tsx +0 -36
- package/src/SvgIcon/LegacySvgIconProps.ts +0 -41
- package/src/Tab/LegacyTab.tsx +0 -141
- package/src/Tab/LegacyTabProps.ts +0 -68
- package/src/Tab/TabIndicator.tsx +0 -38
- package/src/TabBase/LegacyTabBase.tsx +0 -55
- package/src/Tabs/LegacyTabIndicator.tsx +0 -112
- package/src/Tabs/LegacyTabIndicatorProps.ts +0 -37
- package/src/Tabs/LegacyTabs.tsx +0 -227
- package/src/Tabs/LegacyTabsProps.ts +0 -93
- package/src/TextField/InputLabel.tsx +0 -234
- package/src/TextField/LegacyTextField.tsx +0 -168
- package/src/TextField/LegacyTextFieldProps.ts +0 -80
- package/src/TextField/OutlinedTextField.tsx +0 -234
- package/src/Tooltip/LegacyTooltip.tsx +0 -167
- package/src/Tooltip/LegacyTooltipProps.ts +0 -86
- package/src/Tooltip/UpArrow.tsx +0 -21
- package/src/Tooltip/UpArrowProps.ts +0 -19
- package/src/Typography/LegacyTypography.tsx +0 -107
- package/src/Typography/LegacyTypographyProps.ts +0 -122
|
@@ -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/TabBase/index.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { default } from './
|
|
1
|
+
export { default } from './TabBase';
|
|
2
2
|
export type { default as TabBaseProps } from './TabBaseProps';
|
package/src/Tabs/Tabs.tsx
CHANGED
|
@@ -4,8 +4,9 @@ import { View } from 'react-native';
|
|
|
4
4
|
import { NamedStylesStringUnion, UseStyles } from '@fountain-ui/styles';
|
|
5
5
|
import { css, useTheme } from '../styles';
|
|
6
6
|
import { useSyncAnimatedValue } from '../hooks';
|
|
7
|
-
import type { TabVariant } from '../Tab
|
|
7
|
+
import type { TabVariant } from '../Tab';
|
|
8
8
|
import type TabsProps from './TabsProps';
|
|
9
|
+
import type { TabsColor } from './TabsProps';
|
|
9
10
|
import type { TabsInstance } from './types';
|
|
10
11
|
import TabIndicator from './TabIndicator';
|
|
11
12
|
import ScrollableTabsView from './ScrollableTabsView';
|
|
@@ -15,6 +16,7 @@ import useTabInnerContentsWidth from './useTabInnerContentsWidth';
|
|
|
15
16
|
import useIndexStore from './useIndexStore';
|
|
16
17
|
import InternalContext from './InternalContext';
|
|
17
18
|
import { isEveryTabCoordinatesDefined } from './utils';
|
|
19
|
+
import useTabsStyle from './useTabsStyle';
|
|
18
20
|
|
|
19
21
|
type TabsStyleKeys =
|
|
20
22
|
| 'root'
|
|
@@ -41,7 +43,7 @@ const useStyles: UseStyles<TabsStyles> = function (): TabsStyles {
|
|
|
41
43
|
},
|
|
42
44
|
bottomDivider: {
|
|
43
45
|
borderBottomColor: theme.palette.border.base,
|
|
44
|
-
borderBottomWidth:
|
|
46
|
+
borderBottomWidth: 0.5,
|
|
45
47
|
},
|
|
46
48
|
};
|
|
47
49
|
};
|
|
@@ -49,6 +51,7 @@ const useStyles: UseStyles<TabsStyles> = function (): TabsStyles {
|
|
|
49
51
|
const Tabs = forwardRef<TabsInstance, TabsProps>(function Tabs(props, ref) {
|
|
50
52
|
const {
|
|
51
53
|
children,
|
|
54
|
+
color = 'default',
|
|
52
55
|
initialIndex = 0,
|
|
53
56
|
disableIndicator = false,
|
|
54
57
|
indicatorSize = 'fit-content',
|
|
@@ -70,6 +73,8 @@ const Tabs = forwardRef<TabsInstance, TabsProps>(function Tabs(props, ref) {
|
|
|
70
73
|
|
|
71
74
|
const currentIndexRef = useRef(initialIndex);
|
|
72
75
|
|
|
76
|
+
const { container: containerStyle } = useTabsStyle(variant);
|
|
77
|
+
|
|
73
78
|
const setTab = (newIndex: number) => {
|
|
74
79
|
const currentIndex = currentIndexRef.current;
|
|
75
80
|
onTabSelected?.(newIndex, currentIndex);
|
|
@@ -87,6 +92,8 @@ const Tabs = forwardRef<TabsInstance, TabsProps>(function Tabs(props, ref) {
|
|
|
87
92
|
|
|
88
93
|
const styles = useStyles();
|
|
89
94
|
|
|
95
|
+
const theme = useTheme();
|
|
96
|
+
|
|
90
97
|
const [outerCoordinates, updateCoordinate] = useTabCoordinates(children);
|
|
91
98
|
const [innerContentsWidthList, updateInnerContentsWidth] = useTabInnerContentsWidth(children);
|
|
92
99
|
|
|
@@ -97,6 +104,10 @@ const Tabs = forwardRef<TabsInstance, TabsProps>(function Tabs(props, ref) {
|
|
|
97
104
|
const indexStore = useIndexStore(sharedIndex);
|
|
98
105
|
|
|
99
106
|
const coordinates = useMemo(() => {
|
|
107
|
+
if (outerCoordinates.length === 0) {
|
|
108
|
+
return [];
|
|
109
|
+
}
|
|
110
|
+
|
|
100
111
|
if (indicatorSize !== 'fit-content') {
|
|
101
112
|
return outerCoordinates;
|
|
102
113
|
}
|
|
@@ -113,7 +124,7 @@ const Tabs = forwardRef<TabsInstance, TabsProps>(function Tabs(props, ref) {
|
|
|
113
124
|
x2: indicatorStartCoordinate + innerContentWidth,
|
|
114
125
|
};
|
|
115
126
|
});
|
|
116
|
-
}, [outerCoordinates, innerContentsWidthList
|
|
127
|
+
}, [outerCoordinates, innerContentsWidthList]);
|
|
117
128
|
|
|
118
129
|
useEffect(() => {
|
|
119
130
|
return indexStore.subscribe(newIndex => {
|
|
@@ -184,11 +195,18 @@ const Tabs = forwardRef<TabsInstance, TabsProps>(function Tabs(props, ref) {
|
|
|
184
195
|
/>
|
|
185
196
|
) : null;
|
|
186
197
|
|
|
198
|
+
const backgroundColorMap: Record<TabsColor, string> = {
|
|
199
|
+
default: theme.palette.background.base,
|
|
200
|
+
alt: theme.palette.background.alt,
|
|
201
|
+
};
|
|
202
|
+
|
|
187
203
|
return (
|
|
188
204
|
<InternalContext.Provider value={{ indexStore }}>
|
|
189
205
|
<View
|
|
190
206
|
style={css([
|
|
191
207
|
styles.root,
|
|
208
|
+
containerStyle,
|
|
209
|
+
{ backgroundColor: backgroundColorMap[color] },
|
|
192
210
|
showDivider ? styles.bottomDivider : undefined,
|
|
193
211
|
scrollable ? undefined : styles.fixedRoot,
|
|
194
212
|
style,
|
package/src/Tabs/TabsProps.ts
CHANGED
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
import type { ReactNode, Ref } from 'react';
|
|
2
2
|
import type { ViewProps } from 'react-native';
|
|
3
|
-
import type { TabVariant } from '../Tab
|
|
3
|
+
import type { TabVariant } from '../Tab';
|
|
4
4
|
import type { ExtendedStyle, OverridableComponentProps, SyncAnimatedValue } from '../types';
|
|
5
5
|
import type { KeyboardDismissMode, KeyboardShouldPersistTaps, TabsInstance } from './types';
|
|
6
6
|
|
|
7
|
+
export const tabsColors = ['default', 'alt'] as const;
|
|
8
|
+
export type TabsColor = typeof tabsColors[number];
|
|
9
|
+
|
|
7
10
|
export const tabIndicatorSizes = ['fit-content', 'full'] as const;
|
|
8
11
|
export type TabIndicatorSize = typeof tabIndicatorSizes[number];
|
|
9
12
|
|
|
@@ -15,6 +18,12 @@ export default interface TabsProps extends OverridableComponentProps<ViewProps,
|
|
|
15
18
|
*/
|
|
16
19
|
children: ReactNode;
|
|
17
20
|
|
|
21
|
+
/**
|
|
22
|
+
* The color of the component. It supports those theme colors that make sense for this component.
|
|
23
|
+
* @default 'default'
|
|
24
|
+
*/
|
|
25
|
+
color?: TabsColor;
|
|
26
|
+
|
|
18
27
|
/**
|
|
19
28
|
* If `true`, the indicator is disabled.
|
|
20
29
|
* @default false
|
package/src/Tabs/index.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
export { default } from './
|
|
2
|
-
export type { default as TabsProps } from './
|
|
1
|
+
export { default } from './Tabs';
|
|
2
|
+
export type { default as TabsProps } from './TabsProps';
|
|
3
|
+
export { tabIndicatorSizes, tabsColors } from './TabsProps';
|
|
3
4
|
export type { TabsInstance } from './types';
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { useMemo } from 'react';
|
|
2
|
+
import type { FountainUiStyle } from '@fountain-ui/styles';
|
|
3
|
+
import { useTheme } from '../styles';
|
|
4
|
+
import type { TabVariant } from '../Tab';
|
|
5
|
+
|
|
6
|
+
interface TabsStyle {
|
|
7
|
+
container: FountainUiStyle;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export default function useTabsStyle(variant: TabVariant) {
|
|
11
|
+
const theme = useTheme();
|
|
12
|
+
|
|
13
|
+
return useMemo<TabsStyle>(() => {
|
|
14
|
+
switch (variant) {
|
|
15
|
+
case 'circular':
|
|
16
|
+
return {
|
|
17
|
+
container: {
|
|
18
|
+
paddingBottom: theme.spacing(2),
|
|
19
|
+
paddingHorizontal: theme.spacing(3),
|
|
20
|
+
},
|
|
21
|
+
};
|
|
22
|
+
case 'bottom-navigation':
|
|
23
|
+
return {
|
|
24
|
+
container: {},
|
|
25
|
+
};
|
|
26
|
+
case 'default':
|
|
27
|
+
default:
|
|
28
|
+
return {
|
|
29
|
+
container: {
|
|
30
|
+
paddingHorizontal: theme.spacing(1.5),
|
|
31
|
+
},
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
}, [theme, variant]);
|
|
35
|
+
}
|
|
@@ -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
|
|
|
@@ -118,7 +118,6 @@ const TextField = React.forwardRef<TextInput, TextFieldProps>(function TextField
|
|
|
118
118
|
) : (
|
|
119
119
|
<Search
|
|
120
120
|
color={'base'}
|
|
121
|
-
enableV2={true}
|
|
122
121
|
height={18}
|
|
123
122
|
width={18}
|
|
124
123
|
/>
|
package/src/TextField/index.tsx
CHANGED
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
export { default } from './
|
|
2
|
-
export type { default as TextFieldProps } from './
|
|
1
|
+
export { default } from './TextField';
|
|
2
|
+
export type { default as TextFieldProps } from './TextFieldProps';
|
|
3
|
+
export { textFieldStatus } from './TextFieldProps';
|
|
@@ -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,
|
package/src/Toggle/Toggle.tsx
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { useRef, useEffect } from 'react';
|
|
2
2
|
import { Animated } from 'react-native';
|
|
3
3
|
import { commonColors, NamedStylesStringUnion, UseStyles } from '@fountain-ui/styles';
|
|
4
|
-
import ButtonBase from '../ButtonBase';
|
|
4
|
+
import ButtonBase from '../ButtonBase/ButtonBase';
|
|
5
5
|
import ShadowView from '../ShadowView';
|
|
6
6
|
import { css, useTheme } from '../styles';
|
|
7
7
|
import { ExtendedStyle } from '../types';
|
|
@@ -18,7 +18,6 @@ const useStyles: UseStyles<ToggleStyles> = function (): ToggleStyles {
|
|
|
18
18
|
justifyContent: 'center',
|
|
19
19
|
},
|
|
20
20
|
toggle: {
|
|
21
|
-
backgroundColor: commonColors.static.strongInverse,
|
|
22
21
|
borderRadius: theme.shape.radius.full,
|
|
23
22
|
},
|
|
24
23
|
};
|
|
@@ -36,6 +35,7 @@ const sizeMap = {
|
|
|
36
35
|
export default function Toggle(props: ToggleProps) {
|
|
37
36
|
const {
|
|
38
37
|
checked = false,
|
|
38
|
+
disabled = false,
|
|
39
39
|
onChange,
|
|
40
40
|
style: styleProp,
|
|
41
41
|
...otherProps
|
|
@@ -70,9 +70,7 @@ export default function Toggle(props: ToggleProps) {
|
|
|
70
70
|
const containerStyle = css([
|
|
71
71
|
styles.root,
|
|
72
72
|
{
|
|
73
|
-
backgroundColor: checked
|
|
74
|
-
? theme.palette.fill.accent
|
|
75
|
-
: theme.palette.fill.weak,
|
|
73
|
+
backgroundColor: disabled || !checked ? theme.palette.fill.weak : theme.palette.fill.accent,
|
|
76
74
|
height: containerHeight,
|
|
77
75
|
width: containerWidth,
|
|
78
76
|
},
|
|
@@ -82,6 +80,9 @@ export default function Toggle(props: ToggleProps) {
|
|
|
82
80
|
const toggleStyle = css([
|
|
83
81
|
styles.toggle,
|
|
84
82
|
{
|
|
83
|
+
backgroundColor: disabled
|
|
84
|
+
? theme.palette.status.disabledLabel
|
|
85
|
+
: commonColors.static.strongInverse,
|
|
85
86
|
height: toggleSize,
|
|
86
87
|
width: toggleSize,
|
|
87
88
|
},
|
|
@@ -98,6 +99,7 @@ export default function Toggle(props: ToggleProps) {
|
|
|
98
99
|
return (
|
|
99
100
|
<ButtonBase
|
|
100
101
|
{...otherProps}
|
|
102
|
+
disabled={disabled}
|
|
101
103
|
pressEffect={'none'}
|
|
102
104
|
onPress={handlePress}
|
|
103
105
|
style={containerStyle}
|
package/src/Toolbar/Toolbar.tsx
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import type ToolbarProps from './ToolbarProps';
|
|
2
|
+
import type { FountainUiStyle, NamedStylesStringUnion, UseStyles } from '@fountain-ui/styles';
|
|
3
|
+
import Row from '../Row';
|
|
5
4
|
import { css, useTheme } from '../styles';
|
|
5
|
+
import type ToolbarProps from './ToolbarProps';
|
|
6
|
+
import type { ToolbarSize } from './ToolbarProps';
|
|
6
7
|
|
|
7
8
|
type ToolbarStyles = NamedStylesStringUnion<'root' | 'gutters'>;
|
|
8
9
|
|
|
@@ -12,9 +13,7 @@ const useStyles: UseStyles<ToolbarStyles> = function (): ToolbarStyles {
|
|
|
12
13
|
return {
|
|
13
14
|
root: {
|
|
14
15
|
alignItems: 'center',
|
|
15
|
-
flexDirection: 'row',
|
|
16
16
|
flexWrap: 'nowrap',
|
|
17
|
-
minHeight: 56,
|
|
18
17
|
},
|
|
19
18
|
gutters: {
|
|
20
19
|
paddingHorizontal: theme.spacing(4),
|
|
@@ -22,9 +21,16 @@ const useStyles: UseStyles<ToolbarStyles> = function (): ToolbarStyles {
|
|
|
22
21
|
};
|
|
23
22
|
};
|
|
24
23
|
|
|
24
|
+
const sizeMap: Record<ToolbarSize, FountainUiStyle> = {
|
|
25
|
+
small: { height: 48 },
|
|
26
|
+
medium: { height: 50 },
|
|
27
|
+
large: { height: 56 },
|
|
28
|
+
};
|
|
29
|
+
|
|
25
30
|
export default function Toolbar(props: ToolbarProps) {
|
|
26
31
|
const {
|
|
27
32
|
disableGutters = false,
|
|
33
|
+
size = 'medium',
|
|
28
34
|
style,
|
|
29
35
|
...otherProps
|
|
30
36
|
} = props;
|
|
@@ -32,10 +38,11 @@ export default function Toolbar(props: ToolbarProps) {
|
|
|
32
38
|
const styles = useStyles();
|
|
33
39
|
|
|
34
40
|
return (
|
|
35
|
-
<
|
|
41
|
+
<Row
|
|
36
42
|
style={css([
|
|
37
43
|
styles.root,
|
|
38
44
|
!disableGutters ? styles.gutters : undefined,
|
|
45
|
+
sizeMap[size],
|
|
39
46
|
style,
|
|
40
47
|
])}
|
|
41
48
|
{...otherProps}
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type {
|
|
2
|
+
import type { RowProps } from '../Row';
|
|
3
3
|
import type { OverridableComponentProps } from '../types';
|
|
4
4
|
|
|
5
|
-
export
|
|
5
|
+
export const toolbarSizes = ['small', 'medium', 'large'] as const;
|
|
6
|
+
export type ToolbarSize = typeof toolbarSizes[number];
|
|
7
|
+
|
|
8
|
+
export default interface ToolbarProps extends OverridableComponentProps<RowProps, {
|
|
6
9
|
/**
|
|
7
10
|
* The content of the component.
|
|
8
11
|
*/
|
|
@@ -13,4 +16,10 @@ export default interface ToolbarProps extends OverridableComponentProps<ViewProp
|
|
|
13
16
|
* @default false
|
|
14
17
|
*/
|
|
15
18
|
disableGutters?: boolean,
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* Determines the height of the toolbar.
|
|
22
|
+
* @default 'medium'
|
|
23
|
+
*/
|
|
24
|
+
size?: ToolbarSize;
|
|
16
25
|
}> {}
|
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,14 +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
|
-
: typo.caption3.regular,
|
|
143
|
+
? typo.body3.regular
|
|
144
|
+
: typo.caption2.regular,
|
|
151
145
|
color: theme.palette.text.strongInverse,
|
|
152
146
|
});
|
|
153
147
|
|
package/src/Tooltip/index.ts
CHANGED
|
@@ -1,2 +1,4 @@
|
|
|
1
|
-
export { default } from './
|
|
2
|
-
export type { default as TooltipProps } from './
|
|
1
|
+
export { default } from './Tooltip';
|
|
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
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
export { default } from './
|
|
2
|
-
export type { default as TypographyProps } from './
|
|
1
|
+
export { default } from './Typography';
|
|
2
|
+
export type { default as TypographyProps } from './TypographyProps';
|
|
3
|
+
export { typographyColors } from './TypographyProps';
|
|
@@ -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
|
@@ -23,6 +23,15 @@ export * from './Avatar';
|
|
|
23
23
|
export { default as Badge } from './Badge';
|
|
24
24
|
export * from './Badge';
|
|
25
25
|
|
|
26
|
+
export { default as BottomSheetActions } from './BottomSheetActions';
|
|
27
|
+
export * from './BottomSheetActions';
|
|
28
|
+
|
|
29
|
+
export { default as BottomSheetContent } from './BottomSheetContent';
|
|
30
|
+
export * from './BottomSheetContent';
|
|
31
|
+
|
|
32
|
+
export { default as BottomSheetTitle } from './BottomSheetTitle';
|
|
33
|
+
export * from './BottomSheetTitle';
|
|
34
|
+
|
|
26
35
|
export { default as Button } from './Button';
|
|
27
36
|
export * from './Button';
|
|
28
37
|
|
|
@@ -47,9 +56,6 @@ export * from './CardMedia';
|
|
|
47
56
|
export { default as Checkbox } from './Checkbox';
|
|
48
57
|
export * from './Checkbox';
|
|
49
58
|
|
|
50
|
-
export { default as CheckboxGroup } from './CheckboxGroup';
|
|
51
|
-
export * from './CheckboxGroup';
|
|
52
|
-
|
|
53
59
|
export { default as Chip } from './Chip';
|
|
54
60
|
export * from './Chip';
|
|
55
61
|
|
|
@@ -143,6 +149,9 @@ export * from './RadioGroup';
|
|
|
143
149
|
export { default as Row } from './Row';
|
|
144
150
|
export * from './Row';
|
|
145
151
|
|
|
152
|
+
export { default as Section } from './Section';
|
|
153
|
+
export * from './Section';
|
|
154
|
+
|
|
146
155
|
export { default as ShadowView } from './ShadowView';
|
|
147
156
|
export * from './ShadowView';
|
|
148
157
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { View } from 'react-native';
|
|
3
3
|
import LottieView from 'lottie-react-native';
|
|
4
|
-
import
|
|
4
|
+
import { css } from '../../../styles';
|
|
5
5
|
import type LoadingSpinnerProps from './LoadingSpinnerProps';
|
|
6
6
|
import { loadingSpinnerMap, loadingSpinnerSizeMap } from './utils';
|
|
7
7
|
|
|
@@ -9,22 +9,32 @@ export default function LoadingSpinner(props: LoadingSpinnerProps) {
|
|
|
9
9
|
const {
|
|
10
10
|
color = 'gray',
|
|
11
11
|
size = 'medium',
|
|
12
|
+
style: styleProp,
|
|
12
13
|
...otherProps
|
|
13
14
|
} = props;
|
|
14
15
|
|
|
15
|
-
const
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
16
|
+
const rootStyle = css([
|
|
17
|
+
{
|
|
18
|
+
height: loadingSpinnerSizeMap[size],
|
|
19
|
+
width: loadingSpinnerSizeMap[size],
|
|
20
|
+
},
|
|
21
|
+
styleProp,
|
|
22
|
+
]);
|
|
19
23
|
|
|
20
24
|
return (
|
|
21
|
-
<View
|
|
25
|
+
<View
|
|
26
|
+
{...otherProps}
|
|
27
|
+
style={rootStyle}
|
|
28
|
+
>
|
|
22
29
|
<LottieView
|
|
23
30
|
autoPlay={true}
|
|
24
31
|
key={color}
|
|
25
32
|
loop={true}
|
|
26
33
|
source={loadingSpinnerMap[color]}
|
|
27
|
-
style={
|
|
34
|
+
style={{
|
|
35
|
+
height: '100%',
|
|
36
|
+
width: '100%',
|
|
37
|
+
}}
|
|
28
38
|
/>
|
|
29
39
|
</View>
|
|
30
40
|
);
|