@fountain-ui/core 3.0.0-alpha.5 → 3.0.0-alpha.50
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/commonjs/Accordion/Accordion.js +20 -13
- package/build/commonjs/Accordion/Accordion.js.map +1 -1
- package/build/commonjs/Accordion/AccordionProps.js.map +1 -1
- package/build/commonjs/Accordion/useVariantStyleMap.js +13 -6
- package/build/commonjs/Accordion/useVariantStyleMap.js.map +1 -1
- package/build/commonjs/AppBar/AppBar.js +1 -1
- package/build/commonjs/AppBar/AppBar.js.map +1 -1
- package/build/commonjs/AspectRatio/AspectRatioNative.js +1 -1
- package/build/commonjs/AspectRatio/AspectRatioNative.js.map +1 -1
- package/build/commonjs/AspectRatio/AspectRatioWeb.js +1 -1
- package/build/commonjs/AspectRatio/AspectRatioWeb.js.map +1 -1
- package/build/commonjs/Badge/Badge.js +4 -3
- package/build/commonjs/Badge/Badge.js.map +1 -1
- package/build/commonjs/Badge/BadgeProps.js.map +1 -1
- package/build/commonjs/BottomSheetTitle/BottomSheetTitle.js +7 -3
- package/build/commonjs/BottomSheetTitle/BottomSheetTitle.js.map +1 -1
- package/build/commonjs/BottomSheetTitle/BottomSheetTitleProps.js.map +1 -1
- package/build/commonjs/Button/Button.js +26 -12
- package/build/commonjs/Button/Button.js.map +1 -1
- package/build/commonjs/Button/ButtonProps.js.map +1 -1
- package/build/commonjs/Button/useVariantStyleMap.js +18 -0
- package/build/commonjs/Button/useVariantStyleMap.js.map +1 -1
- package/build/commonjs/ButtonBase/ButtonBase.js +1 -1
- package/build/commonjs/ButtonBase/ButtonBase.js.map +1 -1
- package/build/commonjs/ButtonBase/index.js +2 -2
- package/build/commonjs/ButtonBase/index.js.map +1 -1
- package/build/commonjs/Checkbox/Checkbox.js +4 -1
- package/build/commonjs/Checkbox/Checkbox.js.map +1 -1
- package/build/commonjs/Checkbox/useVariantStyleMap.js +6 -2
- package/build/commonjs/Checkbox/useVariantStyleMap.js.map +1 -1
- package/build/commonjs/Chip/Chip.js +27 -14
- package/build/commonjs/Chip/Chip.js.map +1 -1
- package/build/commonjs/Chip/ChipProps.js +5 -1
- package/build/commonjs/Chip/ChipProps.js.map +1 -1
- package/build/commonjs/Chip/index.js +12 -0
- package/build/commonjs/Chip/index.js.map +1 -1
- package/build/commonjs/Chip/useChipStyle.js +59 -32
- package/build/commonjs/Chip/useChipStyle.js.map +1 -1
- package/build/commonjs/Dialog/Dialog.js +11 -12
- package/build/commonjs/Dialog/Dialog.js.map +1 -1
- package/build/commonjs/Dialog/DialogProps.js +1 -1
- package/build/commonjs/Dialog/DialogProps.js.map +1 -1
- package/build/commonjs/Dialog/useDialogSectionStyle.js +6 -4
- package/build/commonjs/Dialog/useDialogSectionStyle.js.map +1 -1
- package/build/commonjs/Dialog/useDialogStyle.js +19 -8
- package/build/commonjs/Dialog/useDialogStyle.js.map +1 -1
- package/build/commonjs/DialogActions/DialogActions.js +0 -1
- package/build/commonjs/DialogActions/DialogActions.js.map +1 -1
- package/build/commonjs/DialogTitle/DialogLargeTitle.js +80 -0
- package/build/commonjs/DialogTitle/DialogLargeTitle.js.map +1 -0
- package/build/commonjs/DialogTitle/DialogTitle.js +8 -4
- package/build/commonjs/DialogTitle/DialogTitle.js.map +1 -1
- package/build/commonjs/Divider/Divider.js +17 -9
- package/build/commonjs/Divider/Divider.js.map +1 -1
- package/build/commonjs/Divider/DividerProps.js +1 -1
- package/build/commonjs/Divider/DividerProps.js.map +1 -1
- package/build/commonjs/Empty/Empty.js +1 -1
- package/build/commonjs/Empty/Empty.js.map +1 -1
- package/build/commonjs/Flexbox/Flexbox.js +2 -0
- package/build/commonjs/Flexbox/Flexbox.js.map +1 -1
- package/build/commonjs/Flexbox/FlexboxProps.js.map +1 -1
- package/build/commonjs/IconButton/IconButton.js +3 -0
- package/build/commonjs/IconButton/IconButton.js.map +1 -1
- package/build/commonjs/IconButton/IconButtonProps.js +1 -1
- package/build/commonjs/IconButton/IconButtonProps.js.map +1 -1
- package/build/commonjs/Image/Image.js +13 -4
- package/build/commonjs/Image/Image.js.map +1 -1
- package/build/commonjs/Image/ImageProps.js.map +1 -1
- package/build/commonjs/Image/OverlayCloseButton/OverlayCloseButton.js +46 -0
- package/build/commonjs/Image/OverlayCloseButton/OverlayCloseButton.js.map +1 -0
- package/build/commonjs/Image/OverlayCloseButton/OverlayCloseButtonProps.js +2 -0
- package/build/commonjs/Image/OverlayCloseButton/OverlayCloseButtonProps.js.map +1 -0
- package/build/commonjs/Image/OverlayCloseButton/index.js +16 -0
- package/build/commonjs/Image/OverlayCloseButton/index.js.map +1 -0
- package/build/commonjs/Image/preload.js +10 -0
- package/build/commonjs/Image/preload.js.map +1 -0
- package/build/commonjs/Image/preload.native.js +22 -0
- package/build/commonjs/Image/preload.native.js.map +1 -0
- package/build/commonjs/ImageCore/ImageCoreNative.js +13 -10
- package/build/commonjs/ImageCore/ImageCoreNative.js.map +1 -1
- package/build/commonjs/ImageCore/ImageCoreProps.js.map +1 -1
- package/build/commonjs/ListItem/ListItem.js +5 -15
- package/build/commonjs/ListItem/ListItem.js.map +1 -1
- package/build/commonjs/ListItemText/ListItemText.js +2 -2
- package/build/commonjs/ListItemText/ListItemText.js.map +1 -1
- package/build/commonjs/ListSubheader/ListSubheader.js +1 -1
- package/build/commonjs/ListSubheader/ListSubheader.js.map +1 -1
- package/build/commonjs/Modal/Modal.js +29 -20
- package/build/commonjs/Modal/Modal.js.map +1 -1
- package/build/commonjs/Modal/ModalProps.js.map +1 -1
- package/build/commonjs/Pagination/NumberPagination.js +4 -2
- package/build/commonjs/Pagination/NumberPagination.js.map +1 -1
- package/build/commonjs/Pagination/Pagination.js +2 -0
- package/build/commonjs/Pagination/Pagination.js.map +1 -1
- package/build/commonjs/Pagination/PaginationProps.js +3 -1
- package/build/commonjs/Pagination/PaginationProps.js.map +1 -1
- package/build/commonjs/Pagination/index.js +6 -0
- package/build/commonjs/Pagination/index.js.map +1 -1
- package/build/commonjs/PaginationItem/PaginationItem.js +32 -22
- package/build/commonjs/PaginationItem/PaginationItem.js.map +1 -1
- package/build/commonjs/PaginationItem/PaginationItemProps.js.map +1 -1
- package/build/commonjs/Radio/Radio.js +31 -8
- package/build/commonjs/Radio/Radio.js.map +1 -1
- package/build/commonjs/Radio/RadioProps.js.map +1 -1
- package/build/commonjs/RadioGroup/RadioGroup.js +2 -27
- package/build/commonjs/RadioGroup/RadioGroup.js.map +1 -1
- package/build/commonjs/ShadowView/ShadowView.native.js +1 -1
- package/build/commonjs/ShadowView/ShadowView.native.js.map +1 -1
- package/build/commonjs/Slider/Slider.js +22 -18
- package/build/commonjs/Slider/Slider.js.map +1 -1
- package/build/commonjs/SnackbarContent/SnackbarContent.js +24 -7
- package/build/commonjs/SnackbarContent/SnackbarContent.js.map +1 -1
- package/build/commonjs/Tab/Tab.js +21 -19
- package/build/commonjs/Tab/Tab.js.map +1 -1
- package/build/commonjs/Tab/TabProps.js +4 -2
- package/build/commonjs/Tab/TabProps.js.map +1 -1
- package/build/commonjs/Tab/index.js +14 -0
- package/build/commonjs/Tab/index.js.map +1 -1
- package/build/commonjs/Tab/useVariantStyleMap.js +57 -16
- package/build/commonjs/Tab/useVariantStyleMap.js.map +1 -1
- package/build/commonjs/TabBase/TabBase.js +1 -8
- package/build/commonjs/TabBase/TabBase.js.map +1 -1
- package/build/commonjs/TabBase/TabBaseProps.js.map +1 -1
- package/build/commonjs/Tabs/Tabs.js +32 -11
- package/build/commonjs/Tabs/Tabs.js.map +1 -1
- package/build/commonjs/Tabs/TabsProps.js.map +1 -1
- package/build/commonjs/Tabs/index.js.map +1 -1
- package/build/commonjs/Tabs/useTabsStyle.js +81 -0
- package/build/commonjs/Tabs/useTabsStyle.js.map +1 -0
- package/build/commonjs/TextField/TextField.js +99 -17
- package/build/commonjs/TextField/TextField.js.map +1 -1
- package/build/commonjs/TextField/TextFieldProps.js +3 -1
- package/build/commonjs/TextField/TextFieldProps.js.map +1 -1
- package/build/commonjs/TextField/useVariantStyleMap.js +50 -30
- package/build/commonjs/TextField/useVariantStyleMap.js.map +1 -1
- package/build/commonjs/Toolbar/BackButton/BackButton.js +47 -0
- package/build/commonjs/Toolbar/BackButton/BackButton.js.map +1 -0
- package/build/commonjs/Toolbar/BackButton/BackButtonProps.js +2 -0
- package/build/commonjs/Toolbar/BackButton/BackButtonProps.js.map +1 -0
- package/build/commonjs/Toolbar/BackButton/index.js +16 -0
- package/build/commonjs/Toolbar/BackButton/index.js.map +1 -0
- package/build/commonjs/Toolbar/Toolbar.js +22 -12
- package/build/commonjs/Toolbar/Toolbar.js.map +1 -1
- package/build/commonjs/Toolbar/ToolbarProps.js.map +1 -1
- package/build/commonjs/Tooltip/Beaks/index.js +32 -0
- package/build/commonjs/Tooltip/Beaks/index.js.map +1 -1
- package/build/commonjs/Tooltip/Tooltip.js +23 -23
- package/build/commonjs/Tooltip/Tooltip.js.map +1 -1
- package/build/commonjs/Tooltip/TooltipProps.js.map +1 -1
- package/build/commonjs/Tooltip/index.js +19 -0
- package/build/commonjs/Tooltip/index.js.map +1 -1
- package/build/commonjs/Typography/Typography.js +9 -2
- package/build/commonjs/Typography/Typography.js.map +1 -1
- package/build/commonjs/Typography/TypographyProps.js.map +1 -1
- package/build/commonjs/hooks/useCollapsibleAppBar.js +21 -13
- package/build/commonjs/hooks/useCollapsibleAppBar.js.map +1 -1
- package/build/commonjs/hooks/useContentContainerStyle.js +35 -17
- package/build/commonjs/hooks/useContentContainerStyle.js.map +1 -1
- package/build/commonjs/hooks/useFadeInAppBar.js +4 -4
- package/build/commonjs/hooks/useFadeInAppBar.js.map +1 -1
- package/build/commonjs/internal/icons/AppBarChevronLeft.js +23 -0
- package/build/commonjs/internal/icons/AppBarChevronLeft.js.map +1 -0
- package/build/commonjs/internal/icons/ChevronLeft.js +4 -2
- package/build/commonjs/internal/icons/ChevronLeft.js.map +1 -1
- package/build/commonjs/internal/icons/ChevronRight.js +4 -2
- package/build/commonjs/internal/icons/ChevronRight.js.map +1 -1
- package/build/commonjs/internal/icons/ChipClose.js +23 -0
- package/build/commonjs/internal/icons/ChipClose.js.map +1 -0
- package/build/commonjs/internal/icons/Clear.js +3 -3
- package/build/commonjs/internal/icons/Clear.js.map +1 -1
- package/build/commonjs/internal/icons/Close.js +4 -2
- package/build/commonjs/internal/icons/Close.js.map +1 -1
- package/build/commonjs/internal/icons/CloseCircleFillPierced.js +23 -0
- package/build/commonjs/internal/icons/CloseCircleFillPierced.js.map +1 -0
- package/build/commonjs/internal/icons/Search.js +2 -2
- package/build/commonjs/internal/icons/Search.js.map +1 -1
- package/build/commonjs/internal/icons/index.js +24 -0
- package/build/commonjs/internal/icons/index.js.map +1 -1
- package/build/module/Accordion/Accordion.js +20 -13
- package/build/module/Accordion/Accordion.js.map +1 -1
- package/build/module/Accordion/AccordionProps.js.map +1 -1
- package/build/module/Accordion/useVariantStyleMap.js +13 -6
- package/build/module/Accordion/useVariantStyleMap.js.map +1 -1
- package/build/module/AppBar/AppBar.js +1 -1
- package/build/module/AppBar/AppBar.js.map +1 -1
- package/build/module/AspectRatio/AspectRatioNative.js +1 -1
- package/build/module/AspectRatio/AspectRatioNative.js.map +1 -1
- package/build/module/AspectRatio/AspectRatioWeb.js +1 -1
- package/build/module/AspectRatio/AspectRatioWeb.js.map +1 -1
- package/build/module/Badge/Badge.js +4 -3
- package/build/module/Badge/Badge.js.map +1 -1
- package/build/module/Badge/BadgeProps.js.map +1 -1
- package/build/module/BottomSheetTitle/BottomSheetTitle.js +7 -3
- package/build/module/BottomSheetTitle/BottomSheetTitle.js.map +1 -1
- package/build/module/BottomSheetTitle/BottomSheetTitleProps.js.map +1 -1
- package/build/module/Button/Button.js +27 -13
- package/build/module/Button/Button.js.map +1 -1
- package/build/module/Button/ButtonProps.js.map +1 -1
- package/build/module/Button/useVariantStyleMap.js +18 -0
- package/build/module/Button/useVariantStyleMap.js.map +1 -1
- package/build/module/ButtonBase/ButtonBase.js +1 -1
- package/build/module/ButtonBase/ButtonBase.js.map +1 -1
- package/build/module/ButtonBase/index.js +1 -1
- package/build/module/ButtonBase/index.js.map +1 -1
- package/build/module/Checkbox/Checkbox.js +4 -1
- package/build/module/Checkbox/Checkbox.js.map +1 -1
- package/build/module/Checkbox/useVariantStyleMap.js +6 -2
- package/build/module/Checkbox/useVariantStyleMap.js.map +1 -1
- package/build/module/Chip/Chip.js +23 -13
- package/build/module/Chip/Chip.js.map +1 -1
- package/build/module/Chip/ChipProps.js +2 -0
- package/build/module/Chip/ChipProps.js.map +1 -1
- package/build/module/Chip/index.js +1 -1
- package/build/module/Chip/index.js.map +1 -1
- package/build/module/Chip/useChipStyle.js +59 -32
- package/build/module/Chip/useChipStyle.js.map +1 -1
- package/build/module/Dialog/Dialog.js +11 -11
- package/build/module/Dialog/Dialog.js.map +1 -1
- package/build/module/Dialog/DialogProps.js +1 -1
- package/build/module/Dialog/DialogProps.js.map +1 -1
- package/build/module/Dialog/useDialogSectionStyle.js +6 -4
- package/build/module/Dialog/useDialogSectionStyle.js.map +1 -1
- package/build/module/Dialog/useDialogStyle.js +18 -8
- package/build/module/Dialog/useDialogStyle.js.map +1 -1
- package/build/module/DialogActions/DialogActions.js +0 -1
- package/build/module/DialogActions/DialogActions.js.map +1 -1
- package/build/module/DialogTitle/DialogLargeTitle.js +65 -0
- package/build/module/DialogTitle/DialogLargeTitle.js.map +1 -0
- package/build/module/DialogTitle/DialogTitle.js +6 -3
- package/build/module/DialogTitle/DialogTitle.js.map +1 -1
- package/build/module/Divider/Divider.js +7 -0
- package/build/module/Divider/Divider.js.map +1 -1
- package/build/module/Divider/DividerProps.js +1 -1
- package/build/module/Divider/DividerProps.js.map +1 -1
- package/build/module/Empty/Empty.js +1 -1
- package/build/module/Empty/Empty.js.map +1 -1
- package/build/module/Flexbox/Flexbox.js +2 -0
- package/build/module/Flexbox/Flexbox.js.map +1 -1
- package/build/module/Flexbox/FlexboxProps.js.map +1 -1
- package/build/module/IconButton/IconButton.js +3 -0
- package/build/module/IconButton/IconButton.js.map +1 -1
- package/build/module/IconButton/IconButtonProps.js +1 -1
- package/build/module/IconButton/IconButtonProps.js.map +1 -1
- package/build/module/Image/Image.js +11 -4
- package/build/module/Image/Image.js.map +1 -1
- package/build/module/Image/ImageProps.js.map +1 -1
- package/build/module/Image/OverlayCloseButton/OverlayCloseButton.js +31 -0
- package/build/module/Image/OverlayCloseButton/OverlayCloseButton.js.map +1 -0
- package/build/module/Image/OverlayCloseButton/OverlayCloseButtonProps.js +2 -0
- package/build/module/Image/OverlayCloseButton/OverlayCloseButtonProps.js.map +1 -0
- package/build/module/Image/OverlayCloseButton/index.js +2 -0
- package/build/module/Image/OverlayCloseButton/index.js.map +1 -0
- package/build/module/Image/preload.js +3 -0
- package/build/module/Image/preload.js.map +1 -0
- package/build/module/Image/preload.native.js +12 -0
- package/build/module/Image/preload.native.js.map +1 -0
- package/build/module/ImageCore/ImageCoreNative.js +14 -10
- package/build/module/ImageCore/ImageCoreNative.js.map +1 -1
- package/build/module/ImageCore/ImageCoreProps.js.map +1 -1
- package/build/module/ListItem/ListItem.js +5 -15
- package/build/module/ListItem/ListItem.js.map +1 -1
- package/build/module/ListItemText/ListItemText.js +2 -2
- package/build/module/ListItemText/ListItemText.js.map +1 -1
- package/build/module/ListSubheader/ListSubheader.js +1 -1
- package/build/module/ListSubheader/ListSubheader.js.map +1 -1
- package/build/module/Modal/Modal.js +30 -21
- package/build/module/Modal/Modal.js.map +1 -1
- package/build/module/Modal/ModalProps.js.map +1 -1
- package/build/module/Pagination/NumberPagination.js +4 -2
- package/build/module/Pagination/NumberPagination.js.map +1 -1
- package/build/module/Pagination/Pagination.js +2 -0
- package/build/module/Pagination/Pagination.js.map +1 -1
- package/build/module/Pagination/PaginationProps.js +1 -0
- package/build/module/Pagination/PaginationProps.js.map +1 -1
- package/build/module/Pagination/index.js +1 -1
- package/build/module/Pagination/index.js.map +1 -1
- package/build/module/PaginationItem/PaginationItem.js +28 -21
- package/build/module/PaginationItem/PaginationItem.js.map +1 -1
- package/build/module/PaginationItem/PaginationItemProps.js.map +1 -1
- package/build/module/Radio/Radio.js +28 -8
- package/build/module/Radio/Radio.js.map +1 -1
- package/build/module/Radio/RadioProps.js.map +1 -1
- package/build/module/RadioGroup/RadioGroup.js +2 -20
- package/build/module/RadioGroup/RadioGroup.js.map +1 -1
- package/build/module/ShadowView/ShadowView.native.js +2 -2
- package/build/module/ShadowView/ShadowView.native.js.map +1 -1
- package/build/module/Slider/Slider.js +22 -18
- package/build/module/Slider/Slider.js.map +1 -1
- package/build/module/SnackbarContent/SnackbarContent.js +24 -7
- package/build/module/SnackbarContent/SnackbarContent.js.map +1 -1
- package/build/module/Tab/Tab.js +22 -19
- package/build/module/Tab/Tab.js.map +1 -1
- package/build/module/Tab/TabProps.js +2 -1
- package/build/module/Tab/TabProps.js.map +1 -1
- package/build/module/Tab/index.js +1 -0
- package/build/module/Tab/index.js.map +1 -1
- package/build/module/Tab/useVariantStyleMap.js +57 -16
- package/build/module/Tab/useVariantStyleMap.js.map +1 -1
- package/build/module/TabBase/TabBase.js +1 -8
- package/build/module/TabBase/TabBase.js.map +1 -1
- package/build/module/TabBase/TabBaseProps.js.map +1 -1
- package/build/module/Tabs/Tabs.js +31 -12
- package/build/module/Tabs/Tabs.js.map +1 -1
- package/build/module/Tabs/TabsProps.js.map +1 -1
- package/build/module/Tabs/index.js.map +1 -1
- package/build/module/Tabs/useTabsStyle.js +71 -0
- package/build/module/Tabs/useTabsStyle.js.map +1 -0
- package/build/module/TextField/TextField.js +99 -18
- package/build/module/TextField/TextField.js.map +1 -1
- package/build/module/TextField/TextFieldProps.js +1 -0
- package/build/module/TextField/TextFieldProps.js.map +1 -1
- package/build/module/TextField/useVariantStyleMap.js +49 -30
- package/build/module/TextField/useVariantStyleMap.js.map +1 -1
- package/build/module/Toolbar/BackButton/BackButton.js +32 -0
- package/build/module/Toolbar/BackButton/BackButton.js.map +1 -0
- package/build/module/Toolbar/BackButton/BackButtonProps.js +2 -0
- package/build/module/Toolbar/BackButton/BackButtonProps.js.map +1 -0
- package/build/module/Toolbar/BackButton/index.js +2 -0
- package/build/module/Toolbar/BackButton/index.js.map +1 -0
- package/build/module/Toolbar/Toolbar.js +20 -12
- package/build/module/Toolbar/Toolbar.js.map +1 -1
- package/build/module/Toolbar/ToolbarProps.js.map +1 -1
- package/build/module/Tooltip/Beaks/index.js +4 -0
- package/build/module/Tooltip/Beaks/index.js.map +1 -1
- package/build/module/Tooltip/Tooltip.js +17 -16
- package/build/module/Tooltip/Tooltip.js.map +1 -1
- package/build/module/Tooltip/TooltipProps.js.map +1 -1
- package/build/module/Tooltip/index.js +1 -0
- package/build/module/Tooltip/index.js.map +1 -1
- package/build/module/Typography/Typography.js +9 -2
- package/build/module/Typography/Typography.js.map +1 -1
- package/build/module/Typography/TypographyProps.js.map +1 -1
- package/build/module/hooks/useCollapsibleAppBar.js +22 -13
- package/build/module/hooks/useCollapsibleAppBar.js.map +1 -1
- package/build/module/hooks/useContentContainerStyle.js +32 -13
- package/build/module/hooks/useContentContainerStyle.js.map +1 -1
- package/build/module/hooks/useFadeInAppBar.js +4 -4
- package/build/module/hooks/useFadeInAppBar.js.map +1 -1
- package/build/module/internal/icons/AppBarChevronLeft.js +9 -0
- package/build/module/internal/icons/AppBarChevronLeft.js.map +1 -0
- package/build/module/internal/icons/ChevronLeft.js +4 -2
- package/build/module/internal/icons/ChevronLeft.js.map +1 -1
- package/build/module/internal/icons/ChevronRight.js +4 -2
- package/build/module/internal/icons/ChevronRight.js.map +1 -1
- package/build/module/internal/icons/ChipClose.js +9 -0
- package/build/module/internal/icons/ChipClose.js.map +1 -0
- package/build/module/internal/icons/Clear.js +3 -3
- package/build/module/internal/icons/Clear.js.map +1 -1
- package/build/module/internal/icons/Close.js +4 -2
- package/build/module/internal/icons/Close.js.map +1 -1
- package/build/module/internal/icons/CloseCircleFillPierced.js +9 -0
- package/build/module/internal/icons/CloseCircleFillPierced.js.map +1 -0
- package/build/module/internal/icons/Search.js +2 -2
- package/build/module/internal/icons/Search.js.map +1 -1
- package/build/module/internal/icons/index.js +3 -0
- package/build/module/internal/icons/index.js.map +1 -1
- package/build/typescript/Accordion/Accordion.d.ts +0 -1
- package/build/typescript/Accordion/AccordionProps.d.ts +4 -1
- package/build/typescript/Accordion/useVariantStyleMap.d.ts +1 -0
- package/build/typescript/AspectRatio/AspectRatioNative.d.ts +0 -1
- package/build/typescript/AspectRatio/AspectRatioWeb.d.ts +0 -1
- package/build/typescript/Avatar/Avatar.d.ts +0 -1
- package/build/typescript/Badge/Badge.d.ts +0 -1
- package/build/typescript/Badge/BadgeProps.d.ts +10 -5
- package/build/typescript/BottomSheetActions/BottomSheetActions.d.ts +0 -1
- package/build/typescript/BottomSheetContent/BottomSheetContent.d.ts +0 -1
- package/build/typescript/BottomSheetTitle/BottomSheetTitle.d.ts +0 -1
- package/build/typescript/BottomSheetTitle/BottomSheetTitleProps.d.ts +3 -3
- package/build/typescript/Button/Button.d.ts +0 -1
- package/build/typescript/Button/ButtonProps.d.ts +5 -0
- package/build/typescript/ButtonBase/ButtonBase.d.ts +0 -1
- package/build/typescript/ButtonBase/index.d.ts +1 -1
- package/build/typescript/ButtonSet/ButtonSet.d.ts +0 -1
- package/build/typescript/Card/Card.d.ts +0 -1
- package/build/typescript/CardActions/CardActions.d.ts +0 -1
- package/build/typescript/CardContent/CardContent.d.ts +0 -1
- package/build/typescript/CardMedia/CardMedia.d.ts +0 -1
- package/build/typescript/Checkbox/Checkbox.d.ts +0 -1
- package/build/typescript/Checkbox/useVariantStyleMap.d.ts +1 -0
- package/build/typescript/Chip/Chip.d.ts +0 -1
- package/build/typescript/Chip/ChipProps.d.ts +18 -4
- package/build/typescript/Chip/index.d.ts +2 -2
- package/build/typescript/Chip/useChipStyle.d.ts +6 -3
- package/build/typescript/CircularProgress/CircularProgress.d.ts +0 -1
- package/build/typescript/Column/Column.d.ts +0 -1
- package/build/typescript/Dialog/Dialog.d.ts +0 -1
- package/build/typescript/Dialog/DialogProps.d.ts +1 -6
- package/build/typescript/Dialog/useDialogSectionStyle.d.ts +1 -2
- package/build/typescript/Dialog/useDialogStyle.d.ts +1 -1
- package/build/typescript/DialogActions/DialogActions.d.ts +0 -1
- package/build/typescript/DialogContent/DialogContent.d.ts +0 -1
- package/build/typescript/DialogMedia/DialogMedia.d.ts +0 -1
- package/build/typescript/DialogTitle/DialogLargeTitle.d.ts +8 -0
- package/build/typescript/DialogTitle/DialogTitle.d.ts +6 -2
- package/build/typescript/Divider/Divider.d.ts +0 -1
- package/build/typescript/Divider/DividerProps.d.ts +1 -1
- package/build/typescript/Empty/Empty.d.ts +0 -1
- package/build/typescript/Fab/Fab.d.ts +0 -1
- package/build/typescript/Flexbox/Flexbox.d.ts +0 -1
- package/build/typescript/Flexbox/FlexboxProps.d.ts +4 -0
- package/build/typescript/IconButton/IconButton.d.ts +0 -1
- package/build/typescript/IconButton/IconButtonProps.d.ts +1 -1
- package/build/typescript/Image/Image.d.ts +6 -2
- package/build/typescript/Image/ImageProps.d.ts +6 -0
- package/build/typescript/Image/OverlayCloseButton/OverlayCloseButton.d.ts +2 -0
- package/build/typescript/Image/OverlayCloseButton/OverlayCloseButtonProps.d.ts +3 -0
- package/build/typescript/Image/OverlayCloseButton/index.d.ts +2 -0
- package/build/typescript/Image/preload.d.ts +2 -0
- package/build/typescript/Image/preload.native.d.ts +2 -0
- package/build/typescript/ImageCore/ImageCoreNative.d.ts +0 -1
- package/build/typescript/ImageCore/ImageCoreProps.d.ts +1 -0
- package/build/typescript/ImageCore/ImageCoreWeb.d.ts +0 -1
- package/build/typescript/Link/Link.d.ts +0 -1
- package/build/typescript/List/List.d.ts +0 -1
- package/build/typescript/ListItem/ListItem.d.ts +0 -1
- package/build/typescript/ListItemIcon/ListItemIcon.d.ts +0 -1
- package/build/typescript/ListItemSecondaryAction/ListItemSecondaryAction.d.ts +0 -1
- package/build/typescript/ListItemText/ListItemText.d.ts +0 -1
- package/build/typescript/ListSubheader/ListSubheader.d.ts +0 -1
- package/build/typescript/Menu/Menu.d.ts +0 -1
- package/build/typescript/MenuItem/MenuItem.d.ts +0 -1
- package/build/typescript/Modal/AnimatedContainer/index.d.ts +0 -1
- package/build/typescript/Modal/Modal.d.ts +0 -1
- package/build/typescript/Modal/ModalProps.d.ts +8 -0
- package/build/typescript/Pagination/NumberPagination.d.ts +0 -1
- package/build/typescript/Pagination/Pagination.d.ts +0 -1
- package/build/typescript/Pagination/PaginationProps.d.ts +12 -0
- package/build/typescript/Pagination/index.d.ts +2 -2
- package/build/typescript/PaginationItem/PaginationItemProps.d.ts +6 -0
- package/build/typescript/Portal/Portal.d.ts +0 -1
- package/build/typescript/Radio/Radio.d.ts +0 -1
- package/build/typescript/Radio/RadioProps.d.ts +4 -0
- package/build/typescript/RadioGroup/RadioGroup.d.ts +0 -1
- package/build/typescript/Row/Row.d.ts +0 -1
- package/build/typescript/Section/Section.d.ts +0 -1
- package/build/typescript/ShadowView/ShadowView.d.ts +0 -1
- package/build/typescript/ShadowView/ShadowView.native.d.ts +0 -1
- package/build/typescript/Slide/Slide.d.ts +0 -1
- package/build/typescript/Slider/Slider.d.ts +1 -1
- package/build/typescript/Snackbar/Snackbar.d.ts +0 -1
- package/build/typescript/SnackbarContent/SnackbarContent.d.ts +0 -1
- package/build/typescript/SnackbarContent/StatusIcon.d.ts +0 -1
- package/build/typescript/Spacer/Spacer.d.ts +0 -1
- package/build/typescript/SvgIcon/SvgIcon.d.ts +0 -1
- package/build/typescript/Switch/Switch.d.ts +0 -1
- package/build/typescript/Tab/Tab.d.ts +0 -1
- package/build/typescript/Tab/TabProps.d.ts +21 -2
- package/build/typescript/Tab/index.d.ts +2 -1
- package/build/typescript/Tab/useVariantStyleMap.d.ts +4 -2
- package/build/typescript/TabBase/TabBase.d.ts +0 -1
- package/build/typescript/TabBase/TabBaseProps.d.ts +0 -5
- package/build/typescript/Tabs/ScrollableTabsView.d.ts +0 -1
- package/build/typescript/Tabs/TabIndicator.d.ts +0 -1
- package/build/typescript/Tabs/Tabs.d.ts +1 -1
- package/build/typescript/Tabs/TabsProps.d.ts +6 -1
- package/build/typescript/Tabs/index.d.ts +1 -1
- package/build/typescript/Tabs/useTabsStyle.d.ts +8 -0
- package/build/typescript/TextField/TextFieldProps.d.ts +13 -0
- package/build/typescript/TextField/useVariantStyleMap.d.ts +4 -2
- package/build/typescript/Toggle/Toggle.d.ts +0 -1
- package/build/typescript/Toolbar/BackButton/BackButton.d.ts +2 -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 -2
- package/build/typescript/Toolbar/ToolbarProps.d.ts +0 -5
- package/build/typescript/Tooltip/Beaks/Beak.d.ts +0 -1
- package/build/typescript/Tooltip/Beaks/HorizontalLargeBeak.d.ts +0 -1
- package/build/typescript/Tooltip/Beaks/HorizontalSmallBeak.d.ts +0 -1
- package/build/typescript/Tooltip/Beaks/VerticalLargeBeak.d.ts +0 -1
- package/build/typescript/Tooltip/Beaks/VerticalSmallBeak.d.ts +0 -1
- package/build/typescript/Tooltip/Beaks/index.d.ts +4 -0
- package/build/typescript/Tooltip/Tooltip.d.ts +0 -1
- package/build/typescript/Tooltip/TooltipProps.d.ts +2 -2
- package/build/typescript/Tooltip/index.d.ts +1 -0
- package/build/typescript/Typography/TypographyProps.d.ts +4 -0
- package/build/typescript/animated/AnimatedAppBar.d.ts +1 -2
- package/build/typescript/animated/AnimatedFlatList.d.ts +1 -2
- package/build/typescript/animated/AnimatedTypography.d.ts +1 -2
- package/build/typescript/hooks/useCollapsibleAppBar.d.ts +2 -1
- package/build/typescript/hooks/useContentContainerStyle.d.ts +2 -1
- package/build/typescript/internal/icons/AppBarChevronLeft.d.ts +358 -0
- package/build/typescript/internal/icons/Check.d.ts +300 -73
- package/build/typescript/internal/icons/CheckCircle.d.ts +300 -73
- package/build/typescript/internal/icons/Checkbox.d.ts +300 -73
- package/build/typescript/internal/icons/CheckboxChecked.d.ts +300 -73
- package/build/typescript/internal/icons/CheckboxOn.d.ts +300 -73
- package/build/typescript/internal/icons/ChevronDown.d.ts +300 -73
- package/build/typescript/internal/icons/ChevronLeft.d.ts +300 -73
- package/build/typescript/internal/icons/ChevronRight.d.ts +300 -73
- package/build/typescript/internal/icons/ChipClose.d.ts +358 -0
- package/build/typescript/internal/icons/CircularProgress.d.ts +0 -1
- package/build/typescript/internal/icons/Clear.d.ts +300 -73
- package/build/typescript/internal/icons/Close.d.ts +300 -73
- package/build/typescript/internal/icons/CloseCircleFillPierced.d.ts +358 -0
- package/build/typescript/internal/icons/EyeOff.d.ts +300 -73
- package/build/typescript/internal/icons/EyeOn.d.ts +300 -73
- package/build/typescript/internal/icons/InfoCircle.d.ts +300 -73
- package/build/typescript/internal/icons/LoadingSpinner/index.d.ts +0 -1
- package/build/typescript/internal/icons/LoadingSpinner/index.native.d.ts +0 -1
- package/build/typescript/internal/icons/Radio.d.ts +300 -73
- package/build/typescript/internal/icons/RadioChecked.d.ts +300 -73
- package/build/typescript/internal/icons/Search.d.ts +300 -73
- package/build/typescript/internal/icons/index.d.ts +3 -0
- package/package.json +10 -10
- package/src/Accordion/Accordion.tsx +23 -14
- package/src/Accordion/AccordionProps.ts +4 -2
- package/src/Accordion/useVariantStyleMap.ts +12 -4
- package/src/AppBar/AppBar.tsx +2 -2
- package/src/AspectRatio/AspectRatioNative.tsx +2 -2
- package/src/AspectRatio/AspectRatioWeb.tsx +3 -3
- package/src/Badge/Badge.tsx +4 -3
- package/src/Badge/BadgeProps.ts +12 -6
- package/src/BottomSheetTitle/BottomSheetTitle.tsx +6 -2
- package/src/BottomSheetTitle/BottomSheetTitleProps.ts +3 -3
- package/src/Button/Button.tsx +28 -12
- package/src/Button/ButtonProps.ts +6 -0
- package/src/Button/useVariantStyleMap.ts +18 -0
- package/src/ButtonBase/ButtonBase.tsx +1 -1
- package/src/ButtonBase/index.ts +1 -1
- package/src/Checkbox/Checkbox.tsx +11 -8
- package/src/Checkbox/useVariantStyleMap.ts +6 -1
- package/src/Chip/Chip.tsx +27 -13
- package/src/Chip/ChipProps.ts +22 -4
- package/src/Chip/index.ts +2 -2
- package/src/Chip/useChipStyle.ts +75 -29
- package/src/Dialog/Dialog.tsx +13 -11
- package/src/Dialog/DialogProps.ts +1 -7
- package/src/Dialog/useDialogSectionStyle.ts +6 -4
- package/src/Dialog/useDialogStyle.ts +19 -7
- package/src/DialogActions/DialogActions.tsx +0 -1
- package/src/DialogTitle/DialogLargeTitle.tsx +95 -0
- package/src/DialogTitle/DialogTitle.tsx +6 -1
- package/src/Divider/Divider.tsx +5 -0
- package/src/Divider/DividerProps.ts +1 -1
- package/src/Empty/Empty.tsx +1 -1
- package/src/Flexbox/Flexbox.tsx +2 -0
- package/src/Flexbox/FlexboxProps.ts +5 -0
- package/src/IconButton/IconButton.tsx +2 -0
- package/src/IconButton/IconButtonProps.ts +1 -0
- package/src/Image/Image.tsx +13 -4
- package/src/Image/ImageProps.ts +7 -0
- package/src/Image/OverlayCloseButton/OverlayCloseButton.tsx +41 -0
- package/src/Image/OverlayCloseButton/OverlayCloseButtonProps.ts +3 -0
- package/src/Image/OverlayCloseButton/index.ts +2 -0
- package/src/Image/preload.native.ts +6 -0
- package/src/Image/preload.ts +5 -0
- package/src/ImageCore/ImageCoreNative.tsx +13 -10
- package/src/ImageCore/ImageCoreProps.ts +1 -0
- package/src/ListItem/ListItem.tsx +5 -15
- package/src/ListItemText/ListItemText.tsx +2 -2
- package/src/ListSubheader/ListSubheader.tsx +1 -1
- package/src/Modal/Modal.tsx +12 -4
- package/src/Modal/ModalProps.ts +9 -0
- package/src/Pagination/NumberPagination.tsx +7 -2
- package/src/Pagination/Pagination.tsx +3 -2
- package/src/Pagination/PaginationProps.ts +15 -0
- package/src/Pagination/index.ts +2 -2
- package/src/PaginationItem/PaginationItem.tsx +31 -24
- package/src/PaginationItem/PaginationItemProps.ts +7 -0
- package/src/Radio/Radio.tsx +46 -17
- package/src/Radio/RadioProps.ts +6 -0
- package/src/RadioGroup/RadioGroup.tsx +2 -28
- package/src/ShadowView/ShadowView.native.tsx +2 -2
- package/src/Slider/Slider.tsx +1 -0
- package/src/SnackbarContent/SnackbarContent.tsx +35 -14
- package/src/Tab/Tab.tsx +32 -22
- package/src/Tab/TabProps.ts +25 -2
- package/src/Tab/index.ts +2 -1
- package/src/Tab/useVariantStyleMap.ts +70 -17
- package/src/TabBase/TabBase.tsx +1 -9
- package/src/TabBase/TabBaseProps.ts +0 -6
- package/src/Tabs/Tabs.tsx +40 -13
- package/src/Tabs/TabsProps.ts +7 -1
- package/src/Tabs/index.ts +1 -1
- package/src/Tabs/useTabsStyle.ts +79 -0
- package/src/TextField/TextField.tsx +142 -47
- package/src/TextField/TextFieldProps.ts +16 -0
- package/src/TextField/useVariantStyleMap.ts +57 -30
- 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 +26 -17
- package/src/Toolbar/ToolbarProps.ts +0 -6
- package/src/Tooltip/Beaks/index.ts +4 -0
- package/src/Tooltip/Tooltip.tsx +16 -13
- package/src/Tooltip/TooltipProps.ts +2 -2
- package/src/Tooltip/index.ts +1 -0
- package/src/Typography/Typography.tsx +3 -1
- package/src/Typography/TypographyProps.ts +5 -0
- package/src/hooks/useCollapsibleAppBar.ts +27 -24
- package/src/hooks/useContentContainerStyle.ts +29 -12
- package/src/hooks/useFadeInAppBar.ts +4 -4
- package/src/internal/icons/AppBarChevronLeft.tsx +15 -0
- package/src/internal/icons/ChevronLeft.tsx +4 -1
- package/src/internal/icons/ChevronRight.tsx +4 -1
- package/src/internal/icons/ChipClose.tsx +13 -0
- package/src/internal/icons/Clear.tsx +3 -3
- package/src/internal/icons/Close.tsx +4 -1
- package/src/internal/icons/CloseCircleFillPierced.tsx +13 -0
- package/src/internal/icons/Search.tsx +2 -2
- package/src/internal/icons/index.ts +3 -0
- package/build/commonjs/ButtonBase/LegacyButtonBase.js +0 -126
- package/build/commonjs/ButtonBase/LegacyButtonBase.js.map +0 -1
- package/build/module/ButtonBase/LegacyButtonBase.js +0 -106
- package/build/module/ButtonBase/LegacyButtonBase.js.map +0 -1
- package/build/typescript/ButtonBase/LegacyButtonBase.d.ts +0 -5
- package/src/ButtonBase/LegacyButtonBase.tsx +0 -135
package/src/Image/ImageProps.ts
CHANGED
|
@@ -28,6 +28,13 @@ export default interface ImageProps extends OverridableComponentProps<ViewProps,
|
|
|
28
28
|
*/
|
|
29
29
|
disableLongClick?: boolean,
|
|
30
30
|
|
|
31
|
+
/**
|
|
32
|
+
* If true, disables the fade-in opacity animation on image load.
|
|
33
|
+
* Only affects native platforms.
|
|
34
|
+
* @default false
|
|
35
|
+
*/
|
|
36
|
+
disableFadeIn?: boolean;
|
|
37
|
+
|
|
31
38
|
/**
|
|
32
39
|
* If `true`, the image outline is not rendered.
|
|
33
40
|
* @default false
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { commonColors } from '@fountain-ui/styles';
|
|
3
|
+
import IconButton from '../../IconButton';
|
|
4
|
+
import { CloseCircleFillPierced } from '../../internal';
|
|
5
|
+
import { css, StyleSheet } from '../../styles';
|
|
6
|
+
import type OverlayCloseButtonProps from './OverlayCloseButtonProps';
|
|
7
|
+
|
|
8
|
+
const styles = StyleSheet.create({
|
|
9
|
+
root: {
|
|
10
|
+
height: 40,
|
|
11
|
+
left: 8,
|
|
12
|
+
position: 'absolute',
|
|
13
|
+
top: 8,
|
|
14
|
+
width: 40,
|
|
15
|
+
},
|
|
16
|
+
});
|
|
17
|
+
|
|
18
|
+
export default function OverlayCloseButton(props: OverlayCloseButtonProps) {
|
|
19
|
+
const {
|
|
20
|
+
style: styleProp,
|
|
21
|
+
...otherProps
|
|
22
|
+
} = props;
|
|
23
|
+
|
|
24
|
+
const rootStyle = css([
|
|
25
|
+
styles.root,
|
|
26
|
+
styleProp,
|
|
27
|
+
]);
|
|
28
|
+
|
|
29
|
+
return (
|
|
30
|
+
<IconButton
|
|
31
|
+
style={rootStyle}
|
|
32
|
+
{...otherProps}
|
|
33
|
+
>
|
|
34
|
+
<CloseCircleFillPierced
|
|
35
|
+
fill={commonColors.static.baseOpacityInverse}
|
|
36
|
+
height={21}
|
|
37
|
+
width={21}
|
|
38
|
+
/>
|
|
39
|
+
</IconButton>
|
|
40
|
+
);
|
|
41
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { useCallback, useContext } from 'react';
|
|
2
|
-
import { Animated } from 'react-native';
|
|
3
|
-
import FastImage from 'react-native-fast-image';
|
|
2
|
+
import { Animated, DimensionValue } from 'react-native';
|
|
3
|
+
import FastImage from '@d11/react-native-fast-image';
|
|
4
4
|
import { useAnimatedValue } from '../hooks';
|
|
5
5
|
import { isNotAndroid12 } from '../utils';
|
|
6
6
|
import type ImageCoreProps from './ImageCoreProps';
|
|
@@ -17,6 +17,7 @@ const ANIMATION_DURATION = 200;
|
|
|
17
17
|
export default function ImageCore(props: ImageCoreProps) {
|
|
18
18
|
const {
|
|
19
19
|
cache,
|
|
20
|
+
disableFadeIn,
|
|
20
21
|
height,
|
|
21
22
|
onError,
|
|
22
23
|
onLoad,
|
|
@@ -25,19 +26,21 @@ export default function ImageCore(props: ImageCoreProps) {
|
|
|
25
26
|
width,
|
|
26
27
|
} = props;
|
|
27
28
|
|
|
28
|
-
const opacity = useAnimatedValue(INITIAL_OPACITY);
|
|
29
|
+
const opacity = useAnimatedValue(disableFadeIn ? LOADED_OPACITY : INITIAL_OPACITY);
|
|
29
30
|
|
|
30
31
|
const acceptHeader = useContext(ImageFileExtensionContext);
|
|
31
32
|
|
|
32
33
|
const handleLoad = useCallback(() => {
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
34
|
+
if (!disableFadeIn) {
|
|
35
|
+
Animated.timing(opacity, {
|
|
36
|
+
toValue: LOADED_OPACITY,
|
|
37
|
+
duration: ANIMATION_DURATION,
|
|
38
|
+
useNativeDriver: isNotAndroid12,
|
|
39
|
+
}).start();
|
|
40
|
+
}
|
|
38
41
|
|
|
39
42
|
onLoad?.();
|
|
40
|
-
}, [onLoad]);
|
|
43
|
+
}, [disableFadeIn, onLoad]);
|
|
41
44
|
|
|
42
45
|
return (
|
|
43
46
|
<AnimatedFastImage
|
|
@@ -53,7 +56,7 @@ export default function ImageCore(props: ImageCoreProps) {
|
|
|
53
56
|
}}
|
|
54
57
|
style={[
|
|
55
58
|
{ opacity },
|
|
56
|
-
{ width, height },
|
|
59
|
+
{ width: width as DimensionValue, height: height as DimensionValue },
|
|
57
60
|
]}
|
|
58
61
|
/>
|
|
59
62
|
);
|
|
@@ -8,28 +8,22 @@ import Row from '../Row';
|
|
|
8
8
|
import { createFontStyle, css, useTheme } from '../styles';
|
|
9
9
|
import type ListItemProps from './ListItemProps';
|
|
10
10
|
|
|
11
|
-
type ListItemStyles = NamedStylesStringUnion<'content' | 'description'
|
|
11
|
+
type ListItemStyles = NamedStylesStringUnion<'content' | 'description'>;
|
|
12
12
|
|
|
13
13
|
const useStyles: UseStyles<ListItemStyles> = function (): ListItemStyles {
|
|
14
14
|
const theme = useTheme();
|
|
15
15
|
|
|
16
16
|
return {
|
|
17
17
|
content: {
|
|
18
|
+
borderBottomColor: theme.palette.border.weak,
|
|
19
|
+
borderBottomWidth: 0.5,
|
|
18
20
|
gap: theme.spacing(2),
|
|
19
21
|
paddingVertical: theme.spacing(3.75),
|
|
20
|
-
paddingHorizontal: theme.spacing(4),
|
|
21
22
|
width: '100%',
|
|
22
23
|
},
|
|
23
24
|
description: {
|
|
24
25
|
paddingRight: theme.spacing(20),
|
|
25
26
|
},
|
|
26
|
-
divider: {
|
|
27
|
-
borderBottomColor: theme.palette.border.weak,
|
|
28
|
-
borderBottomWidth: 0.5,
|
|
29
|
-
},
|
|
30
|
-
dividerWrapper: {
|
|
31
|
-
paddingHorizontal: theme.spacing(4),
|
|
32
|
-
},
|
|
33
27
|
};
|
|
34
28
|
};
|
|
35
29
|
|
|
@@ -61,8 +55,8 @@ export default function ListItem(props: ListItemProps) {
|
|
|
61
55
|
|
|
62
56
|
const descriptionFontStyle = createFontStyle(theme, {
|
|
63
57
|
selector: (_) => typographyOf({
|
|
64
|
-
fontSize:
|
|
65
|
-
lineHeight:
|
|
58
|
+
fontSize: 14,
|
|
59
|
+
lineHeight: 19.6,
|
|
66
60
|
fontFamily: 'PretendardStd-Regular',
|
|
67
61
|
letterSpacing: 0,
|
|
68
62
|
}),
|
|
@@ -102,10 +96,6 @@ export default function ListItem(props: ListItemProps) {
|
|
|
102
96
|
{content}
|
|
103
97
|
</View>
|
|
104
98
|
)}
|
|
105
|
-
|
|
106
|
-
<View style={styles.dividerWrapper}>
|
|
107
|
-
<View style={styles.divider}/>
|
|
108
|
-
</View>
|
|
109
99
|
</View>
|
|
110
100
|
);
|
|
111
101
|
};
|
|
@@ -30,8 +30,8 @@ export default function ListItemText(props: ListItemTextProps) {
|
|
|
30
30
|
|
|
31
31
|
const fontStyle = createFontStyle(theme, {
|
|
32
32
|
selector: (_) => typographyOf({
|
|
33
|
-
fontSize:
|
|
34
|
-
lineHeight:
|
|
33
|
+
fontSize: 16,
|
|
34
|
+
lineHeight: 19.2,
|
|
35
35
|
fontFamily: 'PretendardStd-Medium',
|
|
36
36
|
letterSpacing: 0,
|
|
37
37
|
}),
|
package/src/Modal/Modal.tsx
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { View } from 'react-native';
|
|
2
|
+
import { KeyboardAvoidingView, Platform, View } from 'react-native';
|
|
3
3
|
import { css, StyleSheet } from '../styles';
|
|
4
4
|
import { useElevationStyle } from '../hooks';
|
|
5
5
|
import type ModalProps from './ModalProps';
|
|
@@ -23,7 +23,8 @@ export const createModalCloseEvent = (reason: ModalCloseReasonType) => ({
|
|
|
23
23
|
export default function Modal(props: ModalProps) {
|
|
24
24
|
const {
|
|
25
25
|
animationStyle,
|
|
26
|
-
|
|
26
|
+
avoidKeyboard = false,
|
|
27
|
+
backdropOpacity = 0.75,
|
|
27
28
|
children,
|
|
28
29
|
closeAnimation,
|
|
29
30
|
disableAnimation = false,
|
|
@@ -76,8 +77,15 @@ export default function Modal(props: ModalProps) {
|
|
|
76
77
|
}
|
|
77
78
|
}
|
|
78
79
|
|
|
80
|
+
const Container = avoidKeyboard ? KeyboardAvoidingView : View;
|
|
81
|
+
const containerProps = avoidKeyboard ? {
|
|
82
|
+
behavior: Platform.OS === 'ios' ? 'padding' : undefined,
|
|
83
|
+
} : {};
|
|
84
|
+
|
|
79
85
|
return (
|
|
80
|
-
|
|
86
|
+
// @ts-expect-error
|
|
87
|
+
<Container
|
|
88
|
+
{...containerProps}
|
|
81
89
|
style={css([
|
|
82
90
|
StyleSheet.absoluteFill,
|
|
83
91
|
elevationStyle,
|
|
@@ -108,6 +116,6 @@ export default function Modal(props: ModalProps) {
|
|
|
108
116
|
visible={visible}
|
|
109
117
|
/>
|
|
110
118
|
) : children}
|
|
111
|
-
</
|
|
119
|
+
</Container>
|
|
112
120
|
);
|
|
113
121
|
};
|
package/src/Modal/ModalProps.ts
CHANGED
|
@@ -33,6 +33,15 @@ export default interface ModalProps extends OverridableComponentProps<ViewProps,
|
|
|
33
33
|
*/
|
|
34
34
|
children: React.ReactElement;
|
|
35
35
|
|
|
36
|
+
/**
|
|
37
|
+
* If `true`, the modal wraps its content in a `KeyboardAvoidingView` so
|
|
38
|
+
* that on iOS the visible area shrinks when the software keyboard appears.
|
|
39
|
+
* Intended for centered modals; leave `false` for bottom-anchored or
|
|
40
|
+
* full-screen overlays that manage their own keyboard handling.
|
|
41
|
+
* @default false
|
|
42
|
+
*/
|
|
43
|
+
avoidKeyboard?: boolean;
|
|
44
|
+
|
|
36
45
|
/**
|
|
37
46
|
* If `true`, the animation is disabled.
|
|
38
47
|
* @default false
|
|
@@ -45,7 +45,7 @@ export default function NumberPagination(props: NumberPaginationProps) {
|
|
|
45
45
|
const typography = typographyOf({
|
|
46
46
|
fontSize: 9.5,
|
|
47
47
|
lineHeight: 11.4,
|
|
48
|
-
fontFamily: '
|
|
48
|
+
fontFamily: 'PretendardStd-SemiBold',
|
|
49
49
|
letterSpacing: -0.19,
|
|
50
50
|
});
|
|
51
51
|
|
|
@@ -61,7 +61,12 @@ export default function NumberPagination(props: NumberPaginationProps) {
|
|
|
61
61
|
|
|
62
62
|
return (
|
|
63
63
|
<Row style={styles.root}>
|
|
64
|
-
<Text
|
|
64
|
+
<Text
|
|
65
|
+
style={[
|
|
66
|
+
currentFontStyle,
|
|
67
|
+
{ fontVariant: ['tabular-nums'] },
|
|
68
|
+
]}
|
|
69
|
+
>
|
|
65
70
|
{currentPage + 1}
|
|
66
71
|
</Text>
|
|
67
72
|
|
|
@@ -8,7 +8,7 @@ import IconButton from '../IconButton';
|
|
|
8
8
|
import PaginationItem from '../PaginationItem';
|
|
9
9
|
import NumberPagination from './NumberPagination';
|
|
10
10
|
import type PaginationProps from './PaginationProps';
|
|
11
|
-
import type { PaginationVariant } from './PaginationProps';
|
|
11
|
+
import type { PaginationColor, PaginationVariant } from './PaginationProps';
|
|
12
12
|
|
|
13
13
|
type PaginationStyleKeys =
|
|
14
14
|
| 'root'
|
|
@@ -65,6 +65,7 @@ export default function Pagination(props: PaginationProps) {
|
|
|
65
65
|
const {
|
|
66
66
|
bundleSize = 1,
|
|
67
67
|
children,
|
|
68
|
+
color = 'base' as PaginationColor,
|
|
68
69
|
count,
|
|
69
70
|
disabled = false,
|
|
70
71
|
hideIndicator = false,
|
|
@@ -134,7 +135,7 @@ export default function Pagination(props: PaginationProps) {
|
|
|
134
135
|
currentPage={page}
|
|
135
136
|
maxPage={count}
|
|
136
137
|
/>
|
|
137
|
-
) : times(i => renderItem({ index: i, disabled, selected: i === page }), count)
|
|
138
|
+
) : times(i => renderItem({ color, index: i, disabled, selected: i === page }), count)
|
|
138
139
|
) : null;
|
|
139
140
|
|
|
140
141
|
const containerProps = {
|
|
@@ -2,10 +2,19 @@ import React from 'react';
|
|
|
2
2
|
import type { ViewProps } from 'react-native';
|
|
3
3
|
import type { OverridableComponentProps } from '../types';
|
|
4
4
|
|
|
5
|
+
export const paginationColors = ['base', 'static'] as const;
|
|
6
|
+
export type PaginationColor = typeof paginationColors[number];
|
|
7
|
+
|
|
5
8
|
export const paginationVariants = ['dot', 'number'] as const;
|
|
6
9
|
export type PaginationVariant = typeof paginationVariants[number];
|
|
7
10
|
|
|
8
11
|
export interface PaginationRenderItemParams {
|
|
12
|
+
/**
|
|
13
|
+
* Set color of dot.
|
|
14
|
+
* @default 'base'
|
|
15
|
+
*/
|
|
16
|
+
color?: PaginationColor;
|
|
17
|
+
|
|
9
18
|
/**
|
|
10
19
|
* Index of the pagination item.
|
|
11
20
|
*/
|
|
@@ -34,6 +43,12 @@ export default interface PaginationProps extends OverridableComponentProps<ViewP
|
|
|
34
43
|
*/
|
|
35
44
|
children?: React.ReactNode;
|
|
36
45
|
|
|
46
|
+
/**
|
|
47
|
+
* Set color of dot.
|
|
48
|
+
* @default 'base'
|
|
49
|
+
*/
|
|
50
|
+
color?: PaginationColor;
|
|
51
|
+
|
|
37
52
|
/**
|
|
38
53
|
* The total number of pages.
|
|
39
54
|
*/
|
package/src/Pagination/index.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export { default } from './Pagination';
|
|
2
|
-
export type { default as PaginationProps } from './PaginationProps';
|
|
3
|
-
export { paginationVariants } from './PaginationProps';
|
|
2
|
+
export type { default as PaginationProps, PaginationColor, PaginationVariant } from './PaginationProps';
|
|
3
|
+
export { paginationColors, paginationVariants } from './PaginationProps';
|
|
@@ -1,47 +1,54 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { View } from 'react-native';
|
|
3
|
-
import { NamedStylesStringUnion, UseStyles } from '@fountain-ui/styles';
|
|
2
|
+
import { StyleSheet, View, ViewStyle } from 'react-native';
|
|
3
|
+
import { commonColors, NamedStylesStringUnion, UseStyles } from '@fountain-ui/styles';
|
|
4
|
+
import { PaginationColor } from '../Pagination';
|
|
4
5
|
import { css, useTheme } from '../styles';
|
|
5
6
|
import type PaginationItemProps from './PaginationItemProps';
|
|
6
7
|
|
|
7
|
-
|
|
8
|
+
const DEFAULT_SIZE = 6;
|
|
8
9
|
|
|
9
|
-
const
|
|
10
|
+
const styles = StyleSheet.create({
|
|
11
|
+
root: {
|
|
12
|
+
width: DEFAULT_SIZE,
|
|
13
|
+
height: DEFAULT_SIZE,
|
|
14
|
+
borderRadius: DEFAULT_SIZE * 0.5,
|
|
15
|
+
marginHorizontal: 4,
|
|
16
|
+
},
|
|
17
|
+
});
|
|
18
|
+
|
|
19
|
+
function getBackgroundColor(color: PaginationColor, selected: boolean): ViewStyle['backgroundColor'] {
|
|
10
20
|
const theme = useTheme();
|
|
11
21
|
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
backgroundColor: theme.palette.status.disabled,
|
|
26
|
-
},
|
|
27
|
-
};
|
|
28
|
-
};
|
|
22
|
+
switch (color) {
|
|
23
|
+
case 'static':
|
|
24
|
+
return selected
|
|
25
|
+
? commonColors.static.strongInverse
|
|
26
|
+
: commonColors.static.weakOpacityInverse;
|
|
27
|
+
case 'base':
|
|
28
|
+
default:
|
|
29
|
+
return selected
|
|
30
|
+
? theme.palette.fill.base
|
|
31
|
+
: theme.palette.status.disabled;
|
|
32
|
+
|
|
33
|
+
}
|
|
34
|
+
}
|
|
29
35
|
|
|
30
36
|
function PaginationItem(props: PaginationItemProps) {
|
|
31
37
|
const {
|
|
38
|
+
color = 'base' as PaginationColor,
|
|
32
39
|
disabled,
|
|
33
|
-
selected,
|
|
40
|
+
selected = false,
|
|
34
41
|
style,
|
|
35
42
|
...otherProps
|
|
36
43
|
} = props;
|
|
37
44
|
|
|
38
|
-
const
|
|
45
|
+
const backgroundColor = getBackgroundColor(color, selected);
|
|
39
46
|
|
|
40
47
|
return (
|
|
41
48
|
<View
|
|
42
49
|
style={css([
|
|
43
50
|
styles.root,
|
|
44
|
-
|
|
51
|
+
{ backgroundColor },
|
|
45
52
|
style,
|
|
46
53
|
])}
|
|
47
54
|
{...otherProps}
|
|
@@ -1,7 +1,14 @@
|
|
|
1
1
|
import type { ViewProps } from 'react-native';
|
|
2
2
|
import type { OverridableComponentProps } from '../types';
|
|
3
|
+
import { PaginationColor } from '../Pagination';
|
|
3
4
|
|
|
4
5
|
export default interface PaginationItemProps extends OverridableComponentProps<ViewProps, {
|
|
6
|
+
/**
|
|
7
|
+
* Set color of dot.
|
|
8
|
+
* @default 'base'
|
|
9
|
+
*/
|
|
10
|
+
color?: PaginationColor;
|
|
11
|
+
|
|
5
12
|
/**
|
|
6
13
|
* If `true`, the pagination item is disabled.
|
|
7
14
|
* @default false
|
package/src/Radio/Radio.tsx
CHANGED
|
@@ -2,12 +2,16 @@ import React, { useContext } from 'react';
|
|
|
2
2
|
import { Text } from 'react-native';
|
|
3
3
|
import type { NamedStylesStringUnion, UseStyles } from '@fountain-ui/styles';
|
|
4
4
|
import ButtonBase from '../ButtonBase';
|
|
5
|
+
import Column from '../Column';
|
|
5
6
|
import { Check as CheckedIcon } from '../internal';
|
|
6
7
|
import Row from '../Row';
|
|
7
8
|
import { createFontStyle, css, useTheme } from '../styles';
|
|
8
9
|
import { cloneElementSafely } from '../utils';
|
|
9
10
|
import { RadioContext } from '../RadioGroup/RadioContextProvider';
|
|
10
11
|
import type RadioProps from './RadioProps';
|
|
12
|
+
import Typography from '../Typography';
|
|
13
|
+
|
|
14
|
+
const DEFAULT_START_ICON_SIZE = 21;
|
|
11
15
|
|
|
12
16
|
type RadioStyles = NamedStylesStringUnion<'root' | 'content'>;
|
|
13
17
|
|
|
@@ -17,12 +21,15 @@ const useStyles: UseStyles<RadioStyles> = function (): RadioStyles {
|
|
|
17
21
|
return {
|
|
18
22
|
root: {
|
|
19
23
|
alignItems: 'center',
|
|
24
|
+
borderBottomColor: theme.palette.border.weak,
|
|
25
|
+
borderBottomWidth: 0.5,
|
|
20
26
|
flexDirection: 'row',
|
|
21
|
-
gap:
|
|
27
|
+
gap: 32,
|
|
22
28
|
justifyContent: 'space-between',
|
|
29
|
+
paddingVertical: 14,
|
|
23
30
|
},
|
|
24
31
|
content: {
|
|
25
|
-
gap:
|
|
32
|
+
gap: 8,
|
|
26
33
|
minHeight: 20,
|
|
27
34
|
},
|
|
28
35
|
};
|
|
@@ -38,6 +45,7 @@ export default function Radio(props: RadioProps) {
|
|
|
38
45
|
startIcon: startIconProp,
|
|
39
46
|
style,
|
|
40
47
|
value,
|
|
48
|
+
description,
|
|
41
49
|
...otherProps
|
|
42
50
|
} = props;
|
|
43
51
|
|
|
@@ -54,16 +62,21 @@ export default function Radio(props: RadioProps) {
|
|
|
54
62
|
}
|
|
55
63
|
};
|
|
56
64
|
|
|
57
|
-
const isChecked = context
|
|
65
|
+
const isChecked = context
|
|
66
|
+
? context.value === value
|
|
67
|
+
: checked;
|
|
58
68
|
|
|
59
69
|
const defaultCheckedIcon = (
|
|
60
70
|
<CheckedIcon color={'accent'}/>
|
|
61
71
|
);
|
|
62
72
|
|
|
63
73
|
const checkedIcon = checkIconProp ?? defaultCheckedIcon;
|
|
64
|
-
const icon = isChecked ? checkedIcon : null;
|
|
65
74
|
|
|
66
|
-
const startIcon = cloneElementSafely(startIconProp, {
|
|
75
|
+
const startIcon = cloneElementSafely(startIconProp, {
|
|
76
|
+
color: 'strong',
|
|
77
|
+
height: DEFAULT_START_ICON_SIZE,
|
|
78
|
+
width: DEFAULT_START_ICON_SIZE,
|
|
79
|
+
});
|
|
67
80
|
|
|
68
81
|
const rootStyle = css([
|
|
69
82
|
styles.root,
|
|
@@ -82,19 +95,35 @@ export default function Radio(props: RadioProps) {
|
|
|
82
95
|
style={rootStyle}
|
|
83
96
|
{...otherProps}
|
|
84
97
|
>
|
|
85
|
-
<
|
|
86
|
-
|
|
87
|
-
|
|
98
|
+
<Column
|
|
99
|
+
gap={2}
|
|
100
|
+
flexShrink={1}
|
|
88
101
|
>
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
102
|
+
<Row
|
|
103
|
+
alignItems={'center'}
|
|
104
|
+
style={styles.content}
|
|
105
|
+
>
|
|
106
|
+
{startIcon}
|
|
107
|
+
|
|
108
|
+
<Text
|
|
109
|
+
children={children}
|
|
110
|
+
style={fontStyle}
|
|
111
|
+
/>
|
|
112
|
+
</Row>
|
|
113
|
+
|
|
114
|
+
{description ? (
|
|
115
|
+
<Typography
|
|
116
|
+
variant={'body3'}
|
|
117
|
+
color={'base'}
|
|
118
|
+
weight={'regular'}
|
|
119
|
+
children={description}
|
|
120
|
+
/>
|
|
121
|
+
) : null}
|
|
122
|
+
</Column>
|
|
123
|
+
|
|
124
|
+
<Column style={{ opacity: Number(isChecked) }}>
|
|
125
|
+
{checkedIcon}
|
|
126
|
+
</Column>
|
|
98
127
|
</ButtonBase>
|
|
99
128
|
);
|
|
100
129
|
};
|
package/src/Radio/RadioProps.ts
CHANGED
|
@@ -1,26 +1,8 @@
|
|
|
1
|
-
import React
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { View } from 'react-native';
|
|
3
|
-
import type { NamedStylesStringUnion, UseStyles } from '@fountain-ui/styles';
|
|
4
|
-
import { useTheme } from '../styles';
|
|
5
|
-
import type { FalsyReactElement } from '../utils';
|
|
6
|
-
import { cloneElementSafely } from '../utils';
|
|
7
3
|
import RadioContextProvider from './RadioContextProvider';
|
|
8
4
|
import type RadioGroupProps from './RadioGroupProps';
|
|
9
5
|
|
|
10
|
-
type RadioItemStyles = NamedStylesStringUnion<'root'>;
|
|
11
|
-
|
|
12
|
-
const useStyles: UseStyles<RadioItemStyles> = function (): RadioItemStyles {
|
|
13
|
-
const theme = useTheme();
|
|
14
|
-
|
|
15
|
-
return {
|
|
16
|
-
root: {
|
|
17
|
-
borderBottomColor: theme.palette.border.weak,
|
|
18
|
-
borderBottomWidth: 0.5,
|
|
19
|
-
paddingVertical: theme.spacing(3.5),
|
|
20
|
-
},
|
|
21
|
-
};
|
|
22
|
-
};
|
|
23
|
-
|
|
24
6
|
export default function RadioGroup(props: RadioGroupProps) {
|
|
25
7
|
const {
|
|
26
8
|
children,
|
|
@@ -29,18 +11,10 @@ export default function RadioGroup(props: RadioGroupProps) {
|
|
|
29
11
|
...otherProps
|
|
30
12
|
} = props;
|
|
31
13
|
|
|
32
|
-
const styles = useStyles();
|
|
33
|
-
|
|
34
|
-
const radios = Children.map(children, (child) => (
|
|
35
|
-
<View style={styles.root}>
|
|
36
|
-
{cloneElementSafely(child as FalsyReactElement)}
|
|
37
|
-
</View>
|
|
38
|
-
));
|
|
39
|
-
|
|
40
14
|
return (
|
|
41
15
|
<RadioContextProvider value={{ value, onChange }}>
|
|
42
16
|
<View {...otherProps}>
|
|
43
|
-
{
|
|
17
|
+
{children}
|
|
44
18
|
</View>
|
|
45
19
|
</RadioContextProvider>
|
|
46
20
|
);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { View } from 'react-native';
|
|
2
|
+
import { View, StyleSheet } from 'react-native';
|
|
3
3
|
import type { FountainUiStyle, ShadowVariant } from '@fountain-ui/styles';
|
|
4
4
|
import { css, useTheme } from '../styles';
|
|
5
5
|
import type ShadowViewProps from './ShadowViewProps';
|
|
@@ -22,7 +22,7 @@ export default function ShadowView(props: ShadowViewProps) {
|
|
|
22
22
|
maxHeight,
|
|
23
23
|
maxWidth,
|
|
24
24
|
width,
|
|
25
|
-
} = styleProp as FountainUiStyle;
|
|
25
|
+
} = StyleSheet.flatten(styleProp) as FountainUiStyle ?? {};
|
|
26
26
|
|
|
27
27
|
return nativeShadows.reduce((accumulator, nativeShadow) => {
|
|
28
28
|
return (
|
package/src/Slider/Slider.tsx
CHANGED
|
@@ -37,6 +37,7 @@ export default React.forwardRef<RNSlider, SliderProps>(function Slider(props, re
|
|
|
37
37
|
const thumbTintColor = Platform.OS === 'android' ? theme.palette.primary.main : undefined;
|
|
38
38
|
|
|
39
39
|
return (
|
|
40
|
+
// @ts-ignore - @react-native-community/slider has incorrect type definitions for JSX usage
|
|
40
41
|
<RNSlider
|
|
41
42
|
disabled={disabled}
|
|
42
43
|
maximumValue={maximumValue}
|