@fountain-ui/core 2.0.0-beta.97 → 3.0.0-alpha.1
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 +0 -1
- package/build/commonjs/Accordion/Accordion.js.map +1 -1
- package/build/commonjs/Accordion/index.js +2 -2
- package/build/commonjs/Accordion/index.js.map +1 -1
- package/build/commonjs/Accordion/useVariantStyleMap.js +4 -2
- 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.map +1 -1
- package/build/commonjs/Badge/index.js +2 -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 +73 -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/{CheckboxGroup → BottomSheetTitle}/index.js +2 -2
- package/build/commonjs/BottomSheetTitle/index.js.map +1 -0
- package/build/commonjs/Button/Button.js +5 -8
- package/build/commonjs/Button/Button.js.map +1 -1
- package/build/commonjs/Button/index.js +2 -2
- package/build/commonjs/Button/index.js.map +1 -1
- package/build/commonjs/Button/useVariantStyleMap.js +10 -2
- package/build/commonjs/Button/useVariantStyleMap.js.map +1 -1
- package/build/commonjs/Checkbox/Checkbox.js +0 -1
- package/build/commonjs/Checkbox/Checkbox.js.map +1 -1
- package/build/commonjs/Checkbox/index.js +2 -2
- package/build/commonjs/Checkbox/index.js.map +1 -1
- package/build/commonjs/Checkbox/useVariantStyleMap.js +4 -1
- package/build/commonjs/Checkbox/useVariantStyleMap.js.map +1 -1
- package/build/commonjs/Chip/index.js +2 -2
- package/build/commonjs/Chip/index.js.map +1 -1
- package/build/commonjs/Chip/useChipStyle.js +15 -3
- 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 +24 -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 +5 -1
- 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/index.js +2 -2
- package/build/commonjs/Divider/index.js.map +1 -1
- package/build/commonjs/Empty/Empty.js +2 -2
- package/build/commonjs/Empty/Empty.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 +2 -2
- package/build/commonjs/IconButton/index.js.map +1 -1
- package/build/commonjs/ListItemText/ListItemText.js +4 -4
- package/build/commonjs/ListItemText/ListItemText.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/Pagination.js +0 -4
- package/build/commonjs/Pagination/Pagination.js.map +1 -1
- package/build/commonjs/Pagination/index.js +2 -2
- package/build/commonjs/Pagination/index.js.map +1 -1
- package/build/commonjs/Radio/Radio.js +1 -2
- 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/ShadowView/ShadowView.native.js +17 -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 +2 -2
- package/build/commonjs/Snackbar/index.js.map +1 -1
- package/build/commonjs/SnackbarContent/SnackbarContent.js +15 -5
- 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 +2 -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/TabBase/index.js +2 -2
- package/build/commonjs/TabBase/index.js.map +1 -1
- package/build/commonjs/Tabs/Tabs.js +15 -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 +2 -2
- package/build/commonjs/Tabs/index.js.map +1 -1
- package/build/commonjs/TextField/TextField.js +0 -1
- package/build/commonjs/TextField/TextField.js.map +1 -1
- package/build/commonjs/TextField/index.js +2 -2
- package/build/commonjs/TextField/index.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.map +1 -1
- package/build/commonjs/Tooltip/Tooltip.js +6 -1
- package/build/commonjs/Tooltip/Tooltip.js.map +1 -1
- package/build/commonjs/Tooltip/index.js +2 -2
- package/build/commonjs/Tooltip/index.js.map +1 -1
- package/build/commonjs/Typography/index.js +2 -2
- package/build/commonjs/Typography/index.js.map +1 -1
- package/build/commonjs/hooks/useCollapsibleAppBar.js +1 -1
- package/build/commonjs/hooks/useCollapsibleAppBar.js.map +1 -1
- package/build/commonjs/index.js +63 -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 +0 -1
- package/build/module/Accordion/Accordion.js.map +1 -1
- package/build/module/Accordion/index.js +1 -1
- package/build/module/Accordion/index.js.map +1 -1
- package/build/module/Accordion/useVariantStyleMap.js +4 -2
- 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.map +1 -1
- package/build/module/Badge/index.js +1 -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 +60 -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 +6 -9
- package/build/module/Button/Button.js.map +1 -1
- package/build/module/Button/index.js +1 -1
- package/build/module/Button/index.js.map +1 -1
- package/build/module/Button/useVariantStyleMap.js +10 -2
- package/build/module/Button/useVariantStyleMap.js.map +1 -1
- package/build/module/Checkbox/Checkbox.js +0 -1
- package/build/module/Checkbox/Checkbox.js.map +1 -1
- package/build/module/Checkbox/index.js +1 -1
- package/build/module/Checkbox/index.js.map +1 -1
- package/build/module/Checkbox/useVariantStyleMap.js +4 -1
- package/build/module/Checkbox/useVariantStyleMap.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 +14 -3
- 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 +3 -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 +4 -1
- 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/index.js +1 -1
- package/build/module/Divider/index.js.map +1 -1
- package/build/module/Empty/Empty.js +2 -2
- package/build/module/Empty/Empty.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 +1 -1
- package/build/module/IconButton/index.js.map +1 -1
- package/build/module/ListItemText/ListItemText.js +4 -4
- package/build/module/ListItemText/ListItemText.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/Pagination.js +0 -4
- package/build/module/Pagination/Pagination.js.map +1 -1
- package/build/module/Pagination/index.js +1 -1
- package/build/module/Pagination/index.js.map +1 -1
- package/build/module/Radio/Radio.js +1 -2
- 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/ShadowView/ShadowView.native.js +17 -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 +1 -1
- package/build/module/Snackbar/index.js.map +1 -1
- package/build/module/SnackbarContent/SnackbarContent.js +16 -6
- 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 +1 -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/TabBase/index.js +1 -1
- package/build/module/TabBase/index.js.map +1 -1
- package/build/module/Tabs/Tabs.js +15 -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 +1 -1
- package/build/module/Tabs/index.js.map +1 -1
- package/build/module/TextField/TextField.js +0 -1
- package/build/module/TextField/TextField.js.map +1 -1
- package/build/module/TextField/index.js +1 -1
- package/build/module/TextField/index.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.map +1 -1
- package/build/module/Tooltip/Tooltip.js +6 -1
- package/build/module/Tooltip/Tooltip.js.map +1 -1
- package/build/module/Tooltip/index.js +1 -1
- package/build/module/Tooltip/index.js.map +1 -1
- package/build/module/Typography/index.js +1 -1
- package/build/module/Typography/index.js.map +1 -1
- package/build/module/hooks/useCollapsibleAppBar.js +1 -1
- package/build/module/hooks/useCollapsibleAppBar.js.map +1 -1
- package/build/module/index.js +6 -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 +2 -2
- package/build/typescript/AppBar/AppBarProps.d.ts +2 -1
- package/build/typescript/Badge/index.d.ts +2 -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/index.d.ts +2 -2
- package/build/typescript/Checkbox/index.d.ts +2 -2
- package/build/typescript/Chip/index.d.ts +2 -2
- package/build/typescript/Dialog/DialogContext.d.ts +7 -0
- package/build/typescript/Dialog/index.d.ts +4 -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/index.d.ts +2 -2
- package/build/typescript/IconButton/IconButtonProps.d.ts +5 -0
- package/build/typescript/IconButton/index.d.ts +2 -2
- package/build/typescript/Pagination/index.d.ts +2 -2
- package/build/typescript/Radio/index.d.ts +2 -2
- package/build/typescript/RadioGroup/index.d.ts +1 -1
- package/build/typescript/Snackbar/index.d.ts +2 -2
- package/build/typescript/SnackbarContent/index.d.ts +2 -2
- package/build/typescript/SvgIcon/index.d.ts +2 -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 +2 -2
- package/build/typescript/TextField/index.d.ts +2 -2
- package/build/typescript/Toolbar/ToolbarProps.d.ts +9 -2
- package/build/typescript/Tooltip/index.d.ts +2 -2
- package/build/typescript/Typography/index.d.ts +2 -2
- package/build/typescript/index.d.ts +6 -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 +0 -1
- package/src/Accordion/index.ts +2 -2
- package/src/Accordion/useVariantStyleMap.ts +2 -0
- package/src/AppBar/AppBar.tsx +7 -13
- package/src/AppBar/AppBarProps.ts +2 -1
- package/src/AppBar/index.ts +1 -1
- package/src/Badge/index.ts +2 -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 +83 -0
- package/src/BottomSheetTitle/BottomSheetTitleProps.ts +12 -0
- package/src/BottomSheetTitle/index.ts +2 -0
- package/src/Button/Button.tsx +11 -13
- package/src/Button/index.ts +2 -2
- package/src/Button/useVariantStyleMap.ts +10 -2
- package/src/Checkbox/Checkbox.tsx +0 -1
- package/src/Checkbox/index.ts +2 -2
- package/src/Checkbox/useVariantStyleMap.ts +3 -0
- package/src/Chip/index.ts +2 -2
- package/src/Chip/useChipStyle.ts +13 -2
- package/src/Dialog/Dialog.tsx +9 -19
- package/src/Dialog/DialogContext.tsx +14 -0
- package/src/Dialog/index.ts +4 -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 +5 -0
- 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/index.ts +2 -2
- package/src/Empty/Empty.tsx +2 -3
- package/src/IconButton/IconButton.tsx +33 -3
- package/src/IconButton/IconButtonProps.ts +6 -0
- package/src/IconButton/index.ts +2 -2
- package/src/ListItemText/ListItemText.tsx +4 -4
- package/src/ListSubheader/ListSubheader.tsx +2 -2
- package/src/Pagination/Pagination.tsx +0 -4
- package/src/Pagination/index.ts +2 -2
- package/src/Radio/Radio.tsx +1 -4
- package/src/Radio/index.ts +2 -2
- package/src/RadioGroup/index.ts +1 -1
- package/src/ShadowView/ShadowView.native.tsx +21 -10
- package/src/Snackbar/Snackbar.tsx +1 -1
- package/src/Snackbar/index.ts +2 -2
- package/src/SnackbarContent/SnackbarContent.tsx +21 -11
- package/src/SnackbarContent/StatusIcon.tsx +0 -2
- package/src/SnackbarContent/index.ts +2 -2
- package/src/SvgIcon/index.ts +2 -2
- package/src/Tab/Tab.tsx +1 -1
- package/src/Tab/index.ts +2 -2
- package/src/TabBase/index.ts +1 -1
- package/src/Tabs/Tabs.tsx +17 -3
- package/src/Tabs/TabsProps.ts +10 -1
- package/src/Tabs/index.ts +2 -2
- package/src/TextField/TextField.tsx +0 -1
- package/src/TextField/index.tsx +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 +1 -1
- package/src/Tooltip/Tooltip.tsx +6 -1
- package/src/Tooltip/index.ts +2 -2
- package/src/Typography/index.ts +2 -2
- package/src/hooks/useCollapsibleAppBar.ts +2 -4
- package/src/index.ts +9 -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/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/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/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/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
|
@@ -1,7 +1,130 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
declare const _default: React.MemoExoticComponent<{
|
|
3
|
-
(props:
|
|
4
|
-
|
|
3
|
+
(props: {
|
|
4
|
+
readonly color?: "accent" | "base" | "strong" | "strongInverse" | "baseInverse" | "baseOpacity" | "baseOpacityInverse" | "weak" | "weakInverse" | "weakOpacity" | "weakOpacityInverse" | "accentAlt" | undefined;
|
|
5
|
+
fontFamily?: string | undefined;
|
|
6
|
+
fontSize?: import("react-native-svg").NumberProp | undefined;
|
|
7
|
+
fontWeight?: import("react-native-svg").FontWeight | undefined;
|
|
8
|
+
letterSpacing?: import("react-native-svg").NumberProp | undefined;
|
|
9
|
+
readonly fill?: import("react-native").ColorValue | undefined;
|
|
10
|
+
fontStyle?: import("react-native-svg").FontStyle | undefined;
|
|
11
|
+
testID?: string | undefined;
|
|
12
|
+
fontVariant?: import("react-native-svg").FontVariant | undefined;
|
|
13
|
+
opacity?: import("react-native-svg").NumberProp | undefined;
|
|
14
|
+
readonly height?: import("react-native-svg").NumberProp | undefined;
|
|
15
|
+
readonly width?: import("react-native-svg").NumberProp | undefined;
|
|
16
|
+
transform?: string | (import("react-native").PerpectiveTransform | import("react-native").RotateTransform | import("react-native").RotateXTransform | import("react-native").RotateYTransform | import("react-native").RotateZTransform | import("react-native").ScaleTransform | import("react-native").ScaleXTransform | import("react-native").ScaleYTransform | import("react-native").TranslateXTransform | import("react-native").TranslateYTransform | import("react-native").SkewXTransform | import("react-native").SkewYTransform | import("react-native").MatrixTransform)[] | import("react-native-svg").ColumnMajorTransformMatrix | undefined;
|
|
17
|
+
rotation?: import("react-native-svg").NumberProp | undefined;
|
|
18
|
+
scaleX?: import("react-native-svg").NumberProp | undefined;
|
|
19
|
+
scaleY?: import("react-native-svg").NumberProp | undefined;
|
|
20
|
+
translateX?: import("react-native-svg").NumberProp | undefined;
|
|
21
|
+
translateY?: import("react-native-svg").NumberProp | undefined;
|
|
22
|
+
readonly style?: import("@fountain-ui/styles").FountainUiStyle | import("@fountain-ui/styles").FountainUiStyle[] | undefined;
|
|
23
|
+
onLayout?: ((event: import("react-native").LayoutChangeEvent) => void) | undefined;
|
|
24
|
+
title?: string | undefined;
|
|
25
|
+
clipPath?: string | undefined;
|
|
26
|
+
marker?: string | undefined;
|
|
27
|
+
mask?: string | undefined;
|
|
28
|
+
scale?: import("react-native-svg").NumberArray | undefined;
|
|
29
|
+
skewX?: import("react-native-svg").NumberProp | undefined;
|
|
30
|
+
skewY?: import("react-native-svg").NumberProp | undefined;
|
|
31
|
+
readonly viewBox?: string | undefined;
|
|
32
|
+
preserveAspectRatio?: string | undefined;
|
|
33
|
+
fillOpacity?: import("react-native-svg").NumberProp | undefined;
|
|
34
|
+
fillRule?: import("react-native-svg").FillRule | undefined;
|
|
35
|
+
stroke?: import("react-native").ColorValue | undefined;
|
|
36
|
+
strokeWidth?: import("react-native-svg").NumberProp | undefined;
|
|
37
|
+
strokeOpacity?: import("react-native-svg").NumberProp | undefined;
|
|
38
|
+
strokeDasharray?: import("react-native-svg").NumberProp | readonly import("react-native-svg").NumberProp[] | undefined;
|
|
39
|
+
strokeDashoffset?: import("react-native-svg").NumberProp | undefined;
|
|
40
|
+
strokeLinecap?: import("react-native-svg").Linecap | undefined;
|
|
41
|
+
strokeLinejoin?: import("react-native-svg").Linejoin | undefined;
|
|
42
|
+
strokeMiterlimit?: import("react-native-svg").NumberProp | undefined;
|
|
43
|
+
vectorEffect?: import("react-native-svg").VectorEffect | undefined;
|
|
44
|
+
clipRule?: import("react-native-svg").FillRule | undefined;
|
|
45
|
+
translate?: import("react-native-svg").NumberArray | undefined;
|
|
46
|
+
origin?: import("react-native-svg").NumberArray | undefined;
|
|
47
|
+
originX?: import("react-native-svg").NumberProp | undefined;
|
|
48
|
+
originY?: import("react-native-svg").NumberProp | undefined;
|
|
49
|
+
skew?: import("react-native-svg").NumberArray | undefined;
|
|
50
|
+
x?: import("react-native-svg").NumberArray | undefined;
|
|
51
|
+
y?: import("react-native-svg").NumberArray | undefined;
|
|
52
|
+
pointerEvents?: "auto" | "none" | "box-none" | "box-only" | undefined;
|
|
53
|
+
onStartShouldSetResponder?: ((event: import("react-native").GestureResponderEvent) => boolean) | undefined;
|
|
54
|
+
onMoveShouldSetResponder?: ((event: import("react-native").GestureResponderEvent) => boolean) | undefined;
|
|
55
|
+
onResponderEnd?: ((event: import("react-native").GestureResponderEvent) => void) | undefined;
|
|
56
|
+
onResponderGrant?: ((event: import("react-native").GestureResponderEvent) => void) | undefined;
|
|
57
|
+
onResponderReject?: ((event: import("react-native").GestureResponderEvent) => void) | undefined;
|
|
58
|
+
onResponderMove?: ((event: import("react-native").GestureResponderEvent) => void) | undefined;
|
|
59
|
+
onResponderRelease?: ((event: import("react-native").GestureResponderEvent) => void) | undefined;
|
|
60
|
+
onResponderStart?: ((event: import("react-native").GestureResponderEvent) => void) | undefined;
|
|
61
|
+
onResponderTerminationRequest?: ((event: import("react-native").GestureResponderEvent) => boolean) | undefined;
|
|
62
|
+
onResponderTerminate?: ((event: import("react-native").GestureResponderEvent) => void) | undefined;
|
|
63
|
+
onStartShouldSetResponderCapture?: ((event: import("react-native").GestureResponderEvent) => boolean) | undefined;
|
|
64
|
+
onMoveShouldSetResponderCapture?: ((event: import("react-native").GestureResponderEvent) => boolean) | undefined;
|
|
65
|
+
disabled?: boolean | undefined;
|
|
66
|
+
onPress?: ((event: import("react-native").GestureResponderEvent) => void) | undefined;
|
|
67
|
+
onPressIn?: ((event: import("react-native").GestureResponderEvent) => void) | undefined;
|
|
68
|
+
onPressOut?: ((event: import("react-native").GestureResponderEvent) => void) | undefined;
|
|
69
|
+
onLongPress?: ((event: import("react-native").GestureResponderEvent) => void) | undefined;
|
|
70
|
+
delayPressIn?: number | undefined;
|
|
71
|
+
delayPressOut?: number | undefined;
|
|
72
|
+
delayLongPress?: number | undefined;
|
|
73
|
+
id?: string | undefined;
|
|
74
|
+
markerStart?: string | undefined;
|
|
75
|
+
markerMid?: string | undefined;
|
|
76
|
+
markerEnd?: string | undefined;
|
|
77
|
+
accessibilityLabel?: string | undefined;
|
|
78
|
+
accessible?: boolean | undefined;
|
|
79
|
+
font?: import("react-native-svg").FontObject | undefined;
|
|
80
|
+
fontStretch?: import("react-native-svg").FontStretch | undefined;
|
|
81
|
+
textAnchor?: import("react-native-svg").TextAnchor | undefined;
|
|
82
|
+
textDecoration?: import("react-native-svg").TextDecoration | undefined;
|
|
83
|
+
wordSpacing?: import("react-native-svg").NumberProp | undefined;
|
|
84
|
+
kerning?: import("react-native-svg").NumberProp | undefined;
|
|
85
|
+
fontFeatureSettings?: string | undefined;
|
|
86
|
+
fontVariantLigatures?: import("react-native-svg").FontVariantLigatures | undefined;
|
|
87
|
+
fontVariationSettings?: string | undefined;
|
|
88
|
+
hitSlop?: import("react-native").Insets | undefined;
|
|
89
|
+
removeClippedSubviews?: boolean | undefined;
|
|
90
|
+
nativeID?: string | undefined;
|
|
91
|
+
collapsable?: boolean | undefined;
|
|
92
|
+
needsOffscreenAlphaCompositing?: boolean | undefined;
|
|
93
|
+
renderToHardwareTextureAndroid?: boolean | undefined;
|
|
94
|
+
focusable?: boolean | undefined;
|
|
95
|
+
shouldRasterizeIOS?: boolean | undefined;
|
|
96
|
+
isTVSelectable?: boolean | undefined;
|
|
97
|
+
hasTVPreferredFocus?: boolean | undefined;
|
|
98
|
+
tvParallaxProperties?: import("react-native").TVParallaxProperties | undefined;
|
|
99
|
+
tvParallaxShiftDistanceX?: number | undefined;
|
|
100
|
+
tvParallaxShiftDistanceY?: number | undefined;
|
|
101
|
+
tvParallaxTiltAngle?: number | undefined;
|
|
102
|
+
tvParallaxMagnification?: number | undefined;
|
|
103
|
+
onTouchStart?: ((event: import("react-native").GestureResponderEvent) => void) | undefined;
|
|
104
|
+
onTouchMove?: ((event: import("react-native").GestureResponderEvent) => void) | undefined;
|
|
105
|
+
onTouchEnd?: ((event: import("react-native").GestureResponderEvent) => void) | undefined;
|
|
106
|
+
onTouchCancel?: ((event: import("react-native").GestureResponderEvent) => void) | undefined;
|
|
107
|
+
onTouchEndCapture?: ((event: import("react-native").GestureResponderEvent) => void) | undefined;
|
|
108
|
+
accessibilityActions?: readonly Readonly<{
|
|
109
|
+
name: string;
|
|
110
|
+
label?: string | undefined;
|
|
111
|
+
}>[] | undefined;
|
|
112
|
+
accessibilityRole?: import("react-native").AccessibilityRole | undefined;
|
|
113
|
+
accessibilityState?: import("react-native").AccessibilityState | undefined;
|
|
114
|
+
accessibilityHint?: string | undefined;
|
|
115
|
+
accessibilityValue?: import("react-native").AccessibilityValue | undefined;
|
|
116
|
+
onAccessibilityAction?: ((event: import("react-native").AccessibilityActionEvent) => void) | undefined;
|
|
117
|
+
accessibilityLabelledBy?: string | string[] | undefined;
|
|
118
|
+
accessibilityLiveRegion?: "none" | "polite" | "assertive" | undefined;
|
|
119
|
+
importantForAccessibility?: "auto" | "yes" | "no" | "no-hide-descendants" | undefined;
|
|
120
|
+
accessibilityElementsHidden?: boolean | undefined;
|
|
121
|
+
accessibilityLanguage?: string | undefined;
|
|
122
|
+
accessibilityViewIsModal?: boolean | undefined;
|
|
123
|
+
onAccessibilityEscape?: (() => void) | undefined;
|
|
124
|
+
onAccessibilityTap?: (() => void) | undefined;
|
|
125
|
+
onMagicTap?: (() => void) | undefined;
|
|
126
|
+
accessibilityIgnoresInvertColors?: boolean | undefined;
|
|
127
|
+
readonly size?: "medium" | "small" | "large" | undefined;
|
|
5
128
|
}): JSX.Element;
|
|
6
129
|
displayName: string;
|
|
7
130
|
}>;
|
|
@@ -1,11 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type SvgIconProps from '../SvgIcon/SvgIconProps';
|
|
3
|
-
import type LegacySvgIconProps from '../SvgIcon/LegacySvgIconProps';
|
|
4
3
|
declare type Path = React.ReactElement | React.ReactFragment;
|
|
5
|
-
declare type
|
|
6
|
-
declare type SvgIconBaseProps = SvgIconPropsWithoutChildren & {
|
|
7
|
-
enableV2?: boolean;
|
|
8
|
-
};
|
|
4
|
+
declare type SvgIconBaseProps = Omit<SvgIconProps, 'children'>;
|
|
9
5
|
declare const createSvgIcon: (path: Path, displayName: string, viewBox?: string) => React.MemoExoticComponent<{
|
|
10
6
|
(props: SvgIconBaseProps): JSX.Element;
|
|
11
7
|
displayName: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fountain-ui/core",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.0-alpha.1",
|
|
4
4
|
"author": "Fountain-UI Team",
|
|
5
5
|
"description": "React components that implement Tappytoon's Fountain Design.",
|
|
6
6
|
"license": "MIT",
|
|
@@ -14,8 +14,8 @@
|
|
|
14
14
|
"prepare": "bob build"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@fountain-ui/styles": "^
|
|
18
|
-
"@fountain-ui/utils": "^
|
|
17
|
+
"@fountain-ui/styles": "^3.0.0-alpha.1",
|
|
18
|
+
"@fountain-ui/utils": "^3.0.0-alpha.1"
|
|
19
19
|
},
|
|
20
20
|
"peerDependencies": {
|
|
21
21
|
"@react-native-community/slider": "^4.1.6",
|
|
@@ -67,5 +67,5 @@
|
|
|
67
67
|
"publishConfig": {
|
|
68
68
|
"access": "public"
|
|
69
69
|
},
|
|
70
|
-
"gitHead": "
|
|
70
|
+
"gitHead": "88b0532dcdf185877d95cd713f9d9076728abe12"
|
|
71
71
|
}
|
package/src/Accordion/index.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { default } from './
|
|
2
|
-
export type { default as AccordionProps } from './
|
|
1
|
+
export { default } from './Accordion';
|
|
2
|
+
export type { default as AccordionProps } from './AccordionProps';
|
|
@@ -32,6 +32,7 @@ export default function useVariantStyleMap(variant: AccordionVariant): VariantSt
|
|
|
32
32
|
marginHorizontal: theme.spacing(4),
|
|
33
33
|
paddingBottom: theme.spacing(5),
|
|
34
34
|
paddingTop: theme.spacing(4),
|
|
35
|
+
position: 'absolute',
|
|
35
36
|
},
|
|
36
37
|
contentFont: createFontStyle(theme, {
|
|
37
38
|
selector: (typography) => typography.body3.regular,
|
|
@@ -71,6 +72,7 @@ export default function useVariantStyleMap(variant: AccordionVariant): VariantSt
|
|
|
71
72
|
marginHorizontal: theme.spacing(4),
|
|
72
73
|
paddingBottom: theme.spacing(4),
|
|
73
74
|
paddingTop: theme.spacing(3),
|
|
75
|
+
position: 'absolute',
|
|
74
76
|
},
|
|
75
77
|
contentFont: createFontStyle(theme, {
|
|
76
78
|
// TODO: select typography.
|
package/src/AppBar/AppBar.tsx
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { View } from 'react-native';
|
|
3
3
|
import { NamedStylesStringUnion, UseStyles } from '@fountain-ui/styles';
|
|
4
|
-
import Paper from '../Paper';
|
|
5
4
|
import { css, useTheme } from '../styles';
|
|
6
5
|
import type AppBarProps from './AppBarProps';
|
|
6
|
+
import type { AppBarColor } from './AppBarProps';
|
|
7
7
|
|
|
8
8
|
type AppBarStyleKeys = 'root';
|
|
9
9
|
|
|
@@ -33,27 +33,21 @@ const AppBar = React.forwardRef<View, AppBarProps>(function AppBar(props, ref) {
|
|
|
33
33
|
|
|
34
34
|
const styles = useStyles();
|
|
35
35
|
|
|
36
|
-
const
|
|
37
|
-
|
|
38
|
-
:
|
|
39
|
-
|
|
40
|
-
: color === 'primary'
|
|
41
|
-
? theme.palette.primary.main
|
|
42
|
-
: 'transparent';
|
|
36
|
+
const backgroundColorMap: Record<AppBarColor, string> = {
|
|
37
|
+
default: theme.palette.background.default,
|
|
38
|
+
alt: theme.palette.background.alt,
|
|
39
|
+
};
|
|
43
40
|
|
|
44
41
|
const paperStyle = css([
|
|
45
42
|
styles.root,
|
|
46
|
-
{ backgroundColor },
|
|
43
|
+
{ backgroundColor: backgroundColorMap[color] },
|
|
47
44
|
style,
|
|
48
45
|
]);
|
|
49
46
|
|
|
50
47
|
return (
|
|
51
|
-
<
|
|
48
|
+
<View
|
|
52
49
|
ref={ref}
|
|
53
|
-
colorValue={backgroundColor}
|
|
54
|
-
elevation={0}
|
|
55
50
|
style={paperStyle}
|
|
56
|
-
square={true}
|
|
57
51
|
{...otherProps}
|
|
58
52
|
/>
|
|
59
53
|
);
|
|
@@ -2,7 +2,8 @@ import React from 'react';
|
|
|
2
2
|
import type { OverridableComponentProps } from '../types';
|
|
3
3
|
import type { PaperProps } from '../Paper';
|
|
4
4
|
|
|
5
|
-
export
|
|
5
|
+
export const appBarColors = ['default', 'alt'] as const;
|
|
6
|
+
export type AppBarColor = typeof appBarColors[number];
|
|
6
7
|
|
|
7
8
|
export default interface AppBarProps extends OverridableComponentProps<PaperProps, {
|
|
8
9
|
/**
|
package/src/AppBar/index.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { default } from './AppBar';
|
|
2
|
-
export type { default as AppBarProps } from './AppBarProps';
|
|
2
|
+
export type { default as AppBarProps } from './AppBarProps';
|
package/src/Badge/index.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { default } from './
|
|
2
|
-
export type { default as BadgeProps } from './
|
|
1
|
+
export { default } from './Badge';
|
|
2
|
+
export type { default as BadgeProps } from './BadgeProps';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useMemo } from 'react';
|
|
2
2
|
import type { TextStyle } from 'react-native';
|
|
3
|
-
import type { FountainUiStyle, Theme } from '@fountain-ui/styles';
|
|
3
|
+
import type { FontStyle, FountainUiStyle, Theme } from '@fountain-ui/styles';
|
|
4
4
|
import { commonColors, typographyOf } from '@fountain-ui/styles';
|
|
5
5
|
import { createFontStyle, useTheme } from '../styles';
|
|
6
6
|
import type { BadgeColor, BadgeSize, BadgeVariant } from './BadgeProps';
|
|
@@ -45,6 +45,21 @@ export default function useVariantStyleMap(variant: BadgeVariant, size: BadgeSiz
|
|
|
45
45
|
width: badgeSize,
|
|
46
46
|
};
|
|
47
47
|
|
|
48
|
+
const fontStyleMap: Record<BadgeSize, FontStyle> = {
|
|
49
|
+
large: typographyOf({
|
|
50
|
+
fontSize: 14,
|
|
51
|
+
lineHeight: 14,
|
|
52
|
+
fontFamily: 'Pretendard-Bold',
|
|
53
|
+
letterSpacing: -0.7,
|
|
54
|
+
}),
|
|
55
|
+
medium: typographyOf({
|
|
56
|
+
fontSize: 12,
|
|
57
|
+
lineHeight: 12,
|
|
58
|
+
fontFamily: 'Pretendard-Bold',
|
|
59
|
+
letterSpacing: -0.6,
|
|
60
|
+
}),
|
|
61
|
+
};
|
|
62
|
+
|
|
48
63
|
switch (variant) {
|
|
49
64
|
default:
|
|
50
65
|
case 'dot':
|
|
@@ -59,12 +74,7 @@ export default function useVariantStyleMap(variant: BadgeVariant, size: BadgeSiz
|
|
|
59
74
|
justifyContent: 'center',
|
|
60
75
|
},
|
|
61
76
|
contentFont: createFontStyle(theme, {
|
|
62
|
-
selector: (_) =>
|
|
63
|
-
fontSize: 12,
|
|
64
|
-
lineHeight: 12,
|
|
65
|
-
fontFamily: 'Pretendard-Bold',
|
|
66
|
-
letterSpacing: -0.6,
|
|
67
|
-
}),
|
|
77
|
+
selector: (_) => fontStyleMap[size],
|
|
68
78
|
color: commonColors.opacity.white['100'],
|
|
69
79
|
}),
|
|
70
80
|
};
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { View } from 'react-native';
|
|
3
|
+
import type { NamedStylesStringUnion, UseStyles } from '@fountain-ui/styles';
|
|
4
|
+
import { css, useTheme } from '../styles';
|
|
5
|
+
import type BottomSheetActionsProps from './BottomSheetActionsProps';
|
|
6
|
+
|
|
7
|
+
type BottomSheetActionsStyles = NamedStylesStringUnion<'root'>;
|
|
8
|
+
|
|
9
|
+
const useStyles: UseStyles<BottomSheetActionsStyles> = function (): BottomSheetActionsStyles {
|
|
10
|
+
const theme = useTheme();
|
|
11
|
+
|
|
12
|
+
return {
|
|
13
|
+
root: {
|
|
14
|
+
marginTop: theme.spacing(4),
|
|
15
|
+
paddingHorizontal: theme.spacing(6),
|
|
16
|
+
},
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
export default function BottomSheetActions(props: BottomSheetActionsProps) {
|
|
21
|
+
const {
|
|
22
|
+
children,
|
|
23
|
+
style: styleProp,
|
|
24
|
+
...otherProps
|
|
25
|
+
} = props;
|
|
26
|
+
|
|
27
|
+
const styles = useStyles();
|
|
28
|
+
|
|
29
|
+
const rootStyle = css([
|
|
30
|
+
styles.root,
|
|
31
|
+
styleProp,
|
|
32
|
+
]);
|
|
33
|
+
|
|
34
|
+
return (
|
|
35
|
+
<View
|
|
36
|
+
style={rootStyle}
|
|
37
|
+
{...otherProps}
|
|
38
|
+
>
|
|
39
|
+
{children}
|
|
40
|
+
</View>
|
|
41
|
+
);
|
|
42
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ScrollView } from 'react-native-gesture-handler';
|
|
3
|
+
import type { NamedStylesStringUnion, UseStyles } from '@fountain-ui/styles';
|
|
4
|
+
import { css, useTheme } from '../styles';
|
|
5
|
+
import type BottomSheetContentProps from './BottomSheetContentProps';
|
|
6
|
+
|
|
7
|
+
type BottomSheetContentStyles = NamedStylesStringUnion<'root'>;
|
|
8
|
+
|
|
9
|
+
const useStyles: UseStyles<BottomSheetContentStyles> = function (): BottomSheetContentStyles {
|
|
10
|
+
const theme = useTheme();
|
|
11
|
+
|
|
12
|
+
return {
|
|
13
|
+
root: {
|
|
14
|
+
flexGrow: 1,
|
|
15
|
+
flexShrink: 1,
|
|
16
|
+
paddingBottom: theme.spacing(4),
|
|
17
|
+
paddingHorizontal: theme.spacing(6),
|
|
18
|
+
},
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
export default function BottomSheetContent(props: BottomSheetContentProps) {
|
|
23
|
+
const {
|
|
24
|
+
children,
|
|
25
|
+
style: styleProp,
|
|
26
|
+
...otherProps
|
|
27
|
+
} = props;
|
|
28
|
+
|
|
29
|
+
const styles = useStyles();
|
|
30
|
+
|
|
31
|
+
const rootStyle = css([
|
|
32
|
+
styles.root,
|
|
33
|
+
styleProp,
|
|
34
|
+
]);
|
|
35
|
+
|
|
36
|
+
return (
|
|
37
|
+
<ScrollView
|
|
38
|
+
bounces={false}
|
|
39
|
+
style={rootStyle}
|
|
40
|
+
{...otherProps}
|
|
41
|
+
>
|
|
42
|
+
{children}
|
|
43
|
+
</ScrollView>
|
|
44
|
+
);
|
|
45
|
+
}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Text } from 'react-native';
|
|
3
|
+
import type { NamedStylesStringUnion, UseStyles } from '@fountain-ui/styles';
|
|
4
|
+
import Button from '../Button/Button';
|
|
5
|
+
import Row from '../Row';
|
|
6
|
+
import { createFontStyle, css, useTheme } from '../styles';
|
|
7
|
+
import type BottomSheetTitleProps from './BottomSheetTitleProps';
|
|
8
|
+
|
|
9
|
+
type BottomSheetTitleStyles = NamedStylesStringUnion<'root' | 'title' | 'actionButton'>;
|
|
10
|
+
|
|
11
|
+
const useStyles: UseStyles<BottomSheetTitleStyles> = function (): BottomSheetTitleStyles {
|
|
12
|
+
const theme = useTheme();
|
|
13
|
+
|
|
14
|
+
return {
|
|
15
|
+
root: {
|
|
16
|
+
alignItems: 'center',
|
|
17
|
+
gap: theme.spacing(8),
|
|
18
|
+
justifyContent: 'space-between',
|
|
19
|
+
marginBottom: theme.spacing(4),
|
|
20
|
+
paddingHorizontal: theme.spacing(6),
|
|
21
|
+
},
|
|
22
|
+
title: {
|
|
23
|
+
paddingBottom: theme.spacing(1.25),
|
|
24
|
+
paddingTop: theme.spacing(1),
|
|
25
|
+
},
|
|
26
|
+
actionButton: {
|
|
27
|
+
paddingBottom: theme.spacing(1.75),
|
|
28
|
+
paddingHorizontal: 0,
|
|
29
|
+
paddingTop: theme.spacing(1.25),
|
|
30
|
+
},
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
export default function BottomSheetTitle(props: BottomSheetTitleProps) {
|
|
35
|
+
const {
|
|
36
|
+
actionButtonProps,
|
|
37
|
+
children,
|
|
38
|
+
style: styleProp,
|
|
39
|
+
...otherProps
|
|
40
|
+
} = props;
|
|
41
|
+
|
|
42
|
+
const theme = useTheme();
|
|
43
|
+
|
|
44
|
+
const styles = useStyles();
|
|
45
|
+
|
|
46
|
+
const rootStyle = css([
|
|
47
|
+
styles.root,
|
|
48
|
+
styleProp,
|
|
49
|
+
]);
|
|
50
|
+
|
|
51
|
+
const titleFontStyle = createFontStyle(theme, {
|
|
52
|
+
selector: (typography) => typography.header3.semiBold,
|
|
53
|
+
color: theme.palette.text.strong,
|
|
54
|
+
});
|
|
55
|
+
|
|
56
|
+
const titleStyle = css([
|
|
57
|
+
styles.title,
|
|
58
|
+
titleFontStyle,
|
|
59
|
+
]);
|
|
60
|
+
|
|
61
|
+
return (
|
|
62
|
+
<Row
|
|
63
|
+
style={rootStyle}
|
|
64
|
+
{...otherProps}
|
|
65
|
+
>
|
|
66
|
+
<Text
|
|
67
|
+
children={children}
|
|
68
|
+
style={titleStyle}
|
|
69
|
+
/>
|
|
70
|
+
|
|
71
|
+
{actionButtonProps ? (
|
|
72
|
+
<Button
|
|
73
|
+
children={actionButtonProps.title}
|
|
74
|
+
color={'accent'}
|
|
75
|
+
disableMinWidth={true}
|
|
76
|
+
onPress={actionButtonProps.onPress}
|
|
77
|
+
style={styles.actionButton}
|
|
78
|
+
variant={'text'}
|
|
79
|
+
/>
|
|
80
|
+
) : null}
|
|
81
|
+
</Row>
|
|
82
|
+
);
|
|
83
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { OverridableComponentProps } from '../types';
|
|
2
|
+
import type { RowProps } from '../Row';
|
|
3
|
+
|
|
4
|
+
type ActionButtonProps = {
|
|
5
|
+
title: string;
|
|
6
|
+
onPress: () => void;
|
|
7
|
+
};
|
|
8
|
+
|
|
9
|
+
export default interface BottomSheetTitleProps extends OverridableComponentProps<RowProps, {
|
|
10
|
+
children: string;
|
|
11
|
+
actionButtonProps?: ActionButtonProps;
|
|
12
|
+
}> {}
|
package/src/Button/Button.tsx
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { Linking, Text
|
|
2
|
+
import { Linking, Text } from 'react-native';
|
|
3
3
|
import type { FontStyle, NamedStylesStringUnion, UseStyles } from '@fountain-ui/styles';
|
|
4
4
|
import { typographyOf } from '@fountain-ui/styles';
|
|
5
5
|
import ButtonBase from '../ButtonBase/ButtonBase';
|
|
@@ -110,6 +110,7 @@ export default function Button(props: ButtonProps) {
|
|
|
110
110
|
|
|
111
111
|
const iconProps = {
|
|
112
112
|
fill: iconColor,
|
|
113
|
+
opacity: isLoading ? 0 : 1,
|
|
113
114
|
};
|
|
114
115
|
|
|
115
116
|
const startIcon = cloneElementSafely(startIconProp, iconProps);
|
|
@@ -124,10 +125,6 @@ export default function Button(props: ButtonProps) {
|
|
|
124
125
|
styleProp,
|
|
125
126
|
]);
|
|
126
127
|
|
|
127
|
-
const contentStyle = css({
|
|
128
|
-
opacity: isLoading ? 0 : 1,
|
|
129
|
-
});
|
|
130
|
-
|
|
131
128
|
const fontStyle = createFontStyle(theme, {
|
|
132
129
|
selector: (_) => fontStyleMap[size],
|
|
133
130
|
color: labelColor,
|
|
@@ -135,7 +132,10 @@ export default function Button(props: ButtonProps) {
|
|
|
135
132
|
|
|
136
133
|
const textStyle = css([
|
|
137
134
|
fontStyle,
|
|
138
|
-
{
|
|
135
|
+
{
|
|
136
|
+
opacity: isLoading ? 0 : 1,
|
|
137
|
+
textAlign: 'center',
|
|
138
|
+
},
|
|
139
139
|
]);
|
|
140
140
|
|
|
141
141
|
const modifiedPressEffect = variant !== 'text' && !pressEffect
|
|
@@ -167,15 +167,13 @@ export default function Button(props: ButtonProps) {
|
|
|
167
167
|
pressEffect={modifiedPressEffect}
|
|
168
168
|
{...otherProps}
|
|
169
169
|
>
|
|
170
|
-
|
|
171
|
-
{startIcon}
|
|
170
|
+
{startIcon}
|
|
172
171
|
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
172
|
+
<Text style={textStyle}>
|
|
173
|
+
{children}
|
|
174
|
+
</Text>
|
|
176
175
|
|
|
177
|
-
|
|
178
|
-
</View>
|
|
176
|
+
{endIcon}
|
|
179
177
|
|
|
180
178
|
{isLoading ? (
|
|
181
179
|
<LoadingSpinner
|
package/src/Button/index.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { default } from './
|
|
2
|
-
export type { default as ButtonProps } from './
|
|
1
|
+
export { default } from './Button';
|
|
2
|
+
export type { default as ButtonProps } from './ButtonProps';
|
|
@@ -59,7 +59,9 @@ export default function useVariantStyleMap(variant: ButtonVariant, color: Button
|
|
|
59
59
|
borderColor: palette.border.accent,
|
|
60
60
|
borderWidth: 1,
|
|
61
61
|
},
|
|
62
|
-
labelColor:
|
|
62
|
+
labelColor: '#0BCC99',
|
|
63
|
+
// TODO: change color.
|
|
64
|
+
// labelColor: palette.text.accent,
|
|
63
65
|
iconColor: palette.icon.accent,
|
|
64
66
|
},
|
|
65
67
|
primary: {
|
|
@@ -89,13 +91,19 @@ export default function useVariantStyleMap(variant: ButtonVariant, color: Button
|
|
|
89
91
|
iconColor: palette.icon.base,
|
|
90
92
|
},
|
|
91
93
|
accent: {
|
|
92
|
-
labelColor:
|
|
94
|
+
labelColor: '#0BCC99',
|
|
95
|
+
// TODO: change color.
|
|
96
|
+
// labelColor: palette.text.accent,
|
|
93
97
|
iconColor: palette.icon.accent,
|
|
94
98
|
},
|
|
95
99
|
accentAlt: {
|
|
96
100
|
labelColor: palette.text.accentAlt,
|
|
97
101
|
iconColor: palette.icon.accentAlt,
|
|
98
102
|
},
|
|
103
|
+
danger: {
|
|
104
|
+
labelColor: palette.status.danger,
|
|
105
|
+
iconColor: palette.status.danger,
|
|
106
|
+
},
|
|
99
107
|
disabled: {
|
|
100
108
|
labelColor: palette.status.disabledLabel,
|
|
101
109
|
iconColor: palette.status.disabledLabel,
|
package/src/Checkbox/index.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { default } from './
|
|
2
|
-
export type { default as CheckboxProps } from './
|
|
1
|
+
export { default } from './Checkbox';
|
|
2
|
+
export type { default as CheckboxProps } from './CheckboxProps';
|
|
@@ -60,8 +60,11 @@ export default function useVariantStyleMap(variant: CheckboxVariant, checked: bo
|
|
|
60
60
|
]),
|
|
61
61
|
containerStyle: {
|
|
62
62
|
alignItems: 'center',
|
|
63
|
+
borderBottomColor: theme.palette.border.weak,
|
|
64
|
+
borderBottomWidth: 0.5,
|
|
63
65
|
flexDirection: 'row-reverse',
|
|
64
66
|
gap: theme.spacing(8),
|
|
67
|
+
paddingVertical: theme.spacing(3.5),
|
|
65
68
|
},
|
|
66
69
|
iconColor: commonColors.static.strongInverse,
|
|
67
70
|
};
|