@fountain-ui/core 2.0.0-beta.98 → 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/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/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/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,62 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { ButtonBaseProps } from '../ButtonBase';
|
|
3
|
-
import type { OverridableComponentProps, CommonComponentColor } from '../types';
|
|
4
|
-
|
|
5
|
-
export type ButtonColor = CommonComponentColor;
|
|
6
|
-
|
|
7
|
-
export type ButtonSize = 'small' | 'medium';
|
|
8
|
-
|
|
9
|
-
export type ButtonVariant = 'contained' | 'outlined' | 'text';
|
|
10
|
-
|
|
11
|
-
export default interface ButtonProps extends OverridableComponentProps<ButtonBaseProps, {
|
|
12
|
-
/**
|
|
13
|
-
* The content of the button.
|
|
14
|
-
*/
|
|
15
|
-
children: string;
|
|
16
|
-
|
|
17
|
-
/**
|
|
18
|
-
* If `true`, remove horizontal padding and minimum width.
|
|
19
|
-
* This prop only applied on `text` variant.
|
|
20
|
-
* @default false
|
|
21
|
-
*/
|
|
22
|
-
clipHorizontalSpacing?: boolean;
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* The color of the component. It supports those theme colors that make sense for this component.
|
|
26
|
-
* @default 'primary'
|
|
27
|
-
*/
|
|
28
|
-
color?: ButtonColor;
|
|
29
|
-
|
|
30
|
-
/**
|
|
31
|
-
* Element placed after the children.
|
|
32
|
-
*/
|
|
33
|
-
endIcon?: React.ReactElement;
|
|
34
|
-
|
|
35
|
-
/**
|
|
36
|
-
* If `true`, the button will take up the full width of its container.
|
|
37
|
-
* @default false
|
|
38
|
-
*/
|
|
39
|
-
fullWidth?: boolean;
|
|
40
|
-
|
|
41
|
-
/**
|
|
42
|
-
* The URL to link to when the button is clicked.
|
|
43
|
-
*/
|
|
44
|
-
href?: string;
|
|
45
|
-
|
|
46
|
-
/**
|
|
47
|
-
* The size of the button.
|
|
48
|
-
* @default 'medium'
|
|
49
|
-
*/
|
|
50
|
-
size?: ButtonSize;
|
|
51
|
-
|
|
52
|
-
/**
|
|
53
|
-
* Element placed before the children.
|
|
54
|
-
*/
|
|
55
|
-
startIcon?: React.ReactElement;
|
|
56
|
-
|
|
57
|
-
/**
|
|
58
|
-
* The variant to use.
|
|
59
|
-
* @default 'contained'
|
|
60
|
-
*/
|
|
61
|
-
variant?: ButtonVariant;
|
|
62
|
-
}> {}
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { NamedStylesStringUnion, UseStyles } from '@fountain-ui/styles';
|
|
3
|
-
import ButtonBase from '../ButtonBase';
|
|
4
|
-
import { Checkbox as CheckboxIcon, CheckboxChecked as CheckboxCheckedIcon } from '../internal/icons';
|
|
5
|
-
import { css } from '../styles';
|
|
6
|
-
import type CheckboxProps from './LegacyCheckboxProps';
|
|
7
|
-
|
|
8
|
-
type CheckboxStyle = NamedStylesStringUnion<'root'>;
|
|
9
|
-
|
|
10
|
-
const useStyles: UseStyles<CheckboxStyle> = function (): CheckboxStyle {
|
|
11
|
-
return {
|
|
12
|
-
root: {
|
|
13
|
-
width: 24,
|
|
14
|
-
height: 24,
|
|
15
|
-
justifyContent: 'center',
|
|
16
|
-
alignItems: 'center',
|
|
17
|
-
},
|
|
18
|
-
};
|
|
19
|
-
};
|
|
20
|
-
|
|
21
|
-
export default function Checkbox(props: CheckboxProps) {
|
|
22
|
-
const {
|
|
23
|
-
checked = false,
|
|
24
|
-
checkedIcon: checkedIconProp,
|
|
25
|
-
color = 'primary',
|
|
26
|
-
disabled = false,
|
|
27
|
-
icon: iconProp,
|
|
28
|
-
onChange,
|
|
29
|
-
style,
|
|
30
|
-
...otherProps
|
|
31
|
-
} = props;
|
|
32
|
-
|
|
33
|
-
const styles = useStyles();
|
|
34
|
-
|
|
35
|
-
const uncheckedIcon = iconProp ? iconProp : <CheckboxIcon color={color}/>;
|
|
36
|
-
const checkedIcon = checkedIconProp ? checkedIconProp : <CheckboxCheckedIcon color={color}/>;
|
|
37
|
-
|
|
38
|
-
const handlePress = () => {
|
|
39
|
-
if (onChange) {
|
|
40
|
-
onChange(!checked);
|
|
41
|
-
}
|
|
42
|
-
};
|
|
43
|
-
|
|
44
|
-
const rootStyle = css([
|
|
45
|
-
styles.root,
|
|
46
|
-
style,
|
|
47
|
-
]);
|
|
48
|
-
|
|
49
|
-
return (
|
|
50
|
-
<ButtonBase
|
|
51
|
-
disabled={disabled}
|
|
52
|
-
onPress={handlePress}
|
|
53
|
-
style={rootStyle}
|
|
54
|
-
{...otherProps}
|
|
55
|
-
>
|
|
56
|
-
{checked
|
|
57
|
-
? checkedIcon
|
|
58
|
-
: uncheckedIcon
|
|
59
|
-
}
|
|
60
|
-
</ButtonBase>
|
|
61
|
-
);
|
|
62
|
-
};
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { CommonComponentColor, OverridableComponentProps } from '../types';
|
|
3
|
-
import type { ButtonBaseProps } from '../ButtonBase';
|
|
4
|
-
|
|
5
|
-
type BaseProps = Omit<ButtonBaseProps, 'onPress' | 'children'>;
|
|
6
|
-
|
|
7
|
-
export type CheckboxColor = CommonComponentColor;
|
|
8
|
-
|
|
9
|
-
export default interface CheckboxProps extends OverridableComponentProps<BaseProps, {
|
|
10
|
-
/**
|
|
11
|
-
* If `true`, the component is checked.
|
|
12
|
-
* @default false
|
|
13
|
-
*/
|
|
14
|
-
checked?: boolean;
|
|
15
|
-
|
|
16
|
-
/**
|
|
17
|
-
* The checked Icon which is replaced.
|
|
18
|
-
*/
|
|
19
|
-
checkedIcon?: React.ReactElement;
|
|
20
|
-
|
|
21
|
-
/**
|
|
22
|
-
* The color of the component. It supports those theme colors that make sense for this component.
|
|
23
|
-
* @default 'primary'
|
|
24
|
-
*/
|
|
25
|
-
color?: CheckboxColor;
|
|
26
|
-
|
|
27
|
-
/**
|
|
28
|
-
* If `true`, the checkbox is disabled.
|
|
29
|
-
* @default false
|
|
30
|
-
*/
|
|
31
|
-
disabled?: boolean;
|
|
32
|
-
|
|
33
|
-
/**
|
|
34
|
-
* The unchecked Icon which is replaced.
|
|
35
|
-
*/
|
|
36
|
-
icon?: React.ReactElement;
|
|
37
|
-
|
|
38
|
-
/**
|
|
39
|
-
* Callback fired when the state is changed.
|
|
40
|
-
*/
|
|
41
|
-
onChange?: (newChecked: boolean) => void;
|
|
42
|
-
}> {}
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import React, { Children } from 'react';
|
|
2
|
-
import { View } from 'react-native';
|
|
3
|
-
import { NamedStylesStringUnion, UseStyles } from '@fountain-ui/styles';
|
|
4
|
-
import type { CheckboxVariant } from '../Checkbox/CheckboxProps';
|
|
5
|
-
import { useTheme } from '../styles';
|
|
6
|
-
import type { FalsyReactElement } from '../utils';
|
|
7
|
-
import { cloneElementSafely } from '../utils';
|
|
8
|
-
import type CheckboxGroupProps from './CheckboxGroupProps';
|
|
9
|
-
|
|
10
|
-
type CheckboxItemStyles = NamedStylesStringUnion<CheckboxVariant>;
|
|
11
|
-
|
|
12
|
-
const useStyles: UseStyles<CheckboxItemStyles> = function (): CheckboxItemStyles {
|
|
13
|
-
const theme = useTheme();
|
|
14
|
-
|
|
15
|
-
return {
|
|
16
|
-
square: {
|
|
17
|
-
paddingVertical: theme.spacing(2),
|
|
18
|
-
},
|
|
19
|
-
round: {
|
|
20
|
-
borderBottomColor: theme.palette.border.weak,
|
|
21
|
-
borderBottomWidth: 0.5,
|
|
22
|
-
paddingVertical: theme.spacing(3.5),
|
|
23
|
-
},
|
|
24
|
-
};
|
|
25
|
-
};
|
|
26
|
-
|
|
27
|
-
export default function CheckboxGroup(props: CheckboxGroupProps) {
|
|
28
|
-
const {
|
|
29
|
-
children,
|
|
30
|
-
variant = 'square' as CheckboxVariant,
|
|
31
|
-
...otherProps
|
|
32
|
-
} = props;
|
|
33
|
-
|
|
34
|
-
const styles = useStyles();
|
|
35
|
-
|
|
36
|
-
const content = Children.map(children, (child) => (
|
|
37
|
-
<View style={styles[variant]}>
|
|
38
|
-
{cloneElementSafely(child as FalsyReactElement, { variant })}
|
|
39
|
-
</View>
|
|
40
|
-
));
|
|
41
|
-
|
|
42
|
-
return (
|
|
43
|
-
<View {...otherProps}>
|
|
44
|
-
{content}
|
|
45
|
-
</View>
|
|
46
|
-
);
|
|
47
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { ViewProps } from 'react-native';
|
|
2
|
-
import type { OverridableComponentProps } from '../types';
|
|
3
|
-
import type { CheckboxVariant } from '../Checkbox/CheckboxProps';
|
|
4
|
-
|
|
5
|
-
export default interface CheckboxGroupProps extends OverridableComponentProps<ViewProps, {
|
|
6
|
-
/**
|
|
7
|
-
* Determines the shape and style of the checkbox.
|
|
8
|
-
* @default 'square'
|
|
9
|
-
*/
|
|
10
|
-
variant?: CheckboxVariant;
|
|
11
|
-
}> {}
|
package/src/Chip/LegacyChip.tsx
DELETED
|
@@ -1,116 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { Text } from 'react-native';
|
|
3
|
-
import { NamedStylesStringUnion, UseStyles } from '@fountain-ui/styles';
|
|
4
|
-
import { createFontStyle, css, useTheme } from '../styles';
|
|
5
|
-
import { cloneElementSafely } from '../utils';
|
|
6
|
-
import ButtonBase from '../ButtonBase';
|
|
7
|
-
import type ChipProps from './LegacyChipProps';
|
|
8
|
-
|
|
9
|
-
type ChipStyles = NamedStylesStringUnion<'root'>;
|
|
10
|
-
|
|
11
|
-
const ICON_SIZE = 20;
|
|
12
|
-
|
|
13
|
-
const useStyles: UseStyles<ChipStyles> = function (): ChipStyles {
|
|
14
|
-
const theme = useTheme();
|
|
15
|
-
|
|
16
|
-
return {
|
|
17
|
-
root: {
|
|
18
|
-
alignItems: 'center',
|
|
19
|
-
borderRadius: theme.shape.roundnessExtra,
|
|
20
|
-
flexDirection: 'row',
|
|
21
|
-
height: 32,
|
|
22
|
-
justifyContent: 'center',
|
|
23
|
-
paddingLeft: theme.spacing(3),
|
|
24
|
-
paddingRight: theme.spacing(3),
|
|
25
|
-
},
|
|
26
|
-
};
|
|
27
|
-
};
|
|
28
|
-
|
|
29
|
-
export default function Chip(props: ChipProps) {
|
|
30
|
-
const {
|
|
31
|
-
children,
|
|
32
|
-
endIcon: endIconProp,
|
|
33
|
-
numberOfLines,
|
|
34
|
-
onPress,
|
|
35
|
-
startIcon: startIconProp,
|
|
36
|
-
style: styleProp,
|
|
37
|
-
variant = 'outlined',
|
|
38
|
-
...otherProps
|
|
39
|
-
} = props;
|
|
40
|
-
|
|
41
|
-
const theme = useTheme();
|
|
42
|
-
const styles = useStyles();
|
|
43
|
-
|
|
44
|
-
const fontColor = variant === 'outlined'
|
|
45
|
-
? theme.palette.tertiary.main
|
|
46
|
-
: theme.palette.primary.main;
|
|
47
|
-
|
|
48
|
-
const variantStyleMap = {
|
|
49
|
-
outlined: {
|
|
50
|
-
backgroundColor: theme.palette.paper.default,
|
|
51
|
-
borderColor: theme.palette.border.default,
|
|
52
|
-
borderWidth: 1,
|
|
53
|
-
},
|
|
54
|
-
filled: {
|
|
55
|
-
backgroundColor: theme.palette.paper.grey,
|
|
56
|
-
},
|
|
57
|
-
bold: {
|
|
58
|
-
backgroundColor: theme.palette.paper.default,
|
|
59
|
-
borderColor: theme.palette.primary.main,
|
|
60
|
-
borderWidth: 1.5,
|
|
61
|
-
},
|
|
62
|
-
};
|
|
63
|
-
|
|
64
|
-
const chipStyle = css([
|
|
65
|
-
styles.root,
|
|
66
|
-
variantStyleMap[variant],
|
|
67
|
-
styleProp,
|
|
68
|
-
]);
|
|
69
|
-
|
|
70
|
-
const fontStyle = createFontStyle(theme, {
|
|
71
|
-
selector: (typo) => variant === 'bold'
|
|
72
|
-
? typo.subtitle2
|
|
73
|
-
: typo.body2,
|
|
74
|
-
color: fontColor,
|
|
75
|
-
});
|
|
76
|
-
|
|
77
|
-
const textMarginSize = theme.spacing(1);
|
|
78
|
-
const textMarginStyle = startIconProp
|
|
79
|
-
? { marginLeft: textMarginSize }
|
|
80
|
-
: endIconProp
|
|
81
|
-
? { marginRight: textMarginSize }
|
|
82
|
-
: undefined;
|
|
83
|
-
|
|
84
|
-
const textStyle = css([
|
|
85
|
-
fontStyle,
|
|
86
|
-
textMarginStyle,
|
|
87
|
-
{ textAlign: 'center' },
|
|
88
|
-
]);
|
|
89
|
-
|
|
90
|
-
const iconProps = {
|
|
91
|
-
width: ICON_SIZE,
|
|
92
|
-
height: ICON_SIZE,
|
|
93
|
-
fill: fontColor,
|
|
94
|
-
};
|
|
95
|
-
|
|
96
|
-
const startIcon = cloneElementSafely(startIconProp, iconProps);
|
|
97
|
-
const endIcon = cloneElementSafely(endIconProp, iconProps);
|
|
98
|
-
|
|
99
|
-
return (
|
|
100
|
-
<ButtonBase
|
|
101
|
-
onPress={onPress}
|
|
102
|
-
style={chipStyle}
|
|
103
|
-
{...otherProps}
|
|
104
|
-
>
|
|
105
|
-
{startIcon}
|
|
106
|
-
|
|
107
|
-
<Text
|
|
108
|
-
children={children}
|
|
109
|
-
numberOfLines={numberOfLines}
|
|
110
|
-
style={textStyle}
|
|
111
|
-
/>
|
|
112
|
-
|
|
113
|
-
{endIcon}
|
|
114
|
-
</ButtonBase>
|
|
115
|
-
);
|
|
116
|
-
}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { OverridableComponentProps } from '../types';
|
|
3
|
-
import type { ButtonBaseProps } from '../ButtonBase';
|
|
4
|
-
|
|
5
|
-
export type ChipVariant = 'outlined' | 'filled' | 'bold';
|
|
6
|
-
|
|
7
|
-
export default interface ChipProps extends OverridableComponentProps<ButtonBaseProps, {
|
|
8
|
-
/**
|
|
9
|
-
* Element placed after the children.
|
|
10
|
-
*/
|
|
11
|
-
endIcon?: React.ReactElement;
|
|
12
|
-
|
|
13
|
-
/**
|
|
14
|
-
* The content of the component.
|
|
15
|
-
*/
|
|
16
|
-
children: string;
|
|
17
|
-
|
|
18
|
-
/**
|
|
19
|
-
* Number of lines of children.
|
|
20
|
-
*/
|
|
21
|
-
numberOfLines?: number;
|
|
22
|
-
|
|
23
|
-
/**
|
|
24
|
-
* Element placed before the children.
|
|
25
|
-
*/
|
|
26
|
-
startIcon?: React.ReactElement;
|
|
27
|
-
|
|
28
|
-
/**
|
|
29
|
-
* The variant to use.
|
|
30
|
-
* @default 'outlined'
|
|
31
|
-
*/
|
|
32
|
-
variant?: ChipVariant;
|
|
33
|
-
}> {}
|
|
@@ -1,198 +0,0 @@
|
|
|
1
|
-
import React, { useMemo, useState } from 'react';
|
|
2
|
-
import { LayoutChangeEvent, useWindowDimensions } from 'react-native';
|
|
3
|
-
import { css, NamedStylesStringUnion, UseStyles } from '@fountain-ui/styles';
|
|
4
|
-
import Column from '../Column';
|
|
5
|
-
import Modal, { ANIMATION_TYPE, AnimationUnit } from '../Modal';
|
|
6
|
-
import Paper from '../Paper';
|
|
7
|
-
import { useTheme } from '../styles';
|
|
8
|
-
import type DialogProps from './LegacyDialogProps';
|
|
9
|
-
|
|
10
|
-
type DialogStyleKeys =
|
|
11
|
-
| 'root'
|
|
12
|
-
| 'paper'
|
|
13
|
-
| 'paperFullScreen'
|
|
14
|
-
| 'animation'
|
|
15
|
-
| 'animationFullScreen'
|
|
16
|
-
| 'topElementSize'
|
|
17
|
-
| 'topElementPosition';
|
|
18
|
-
|
|
19
|
-
type DialogStyles = NamedStylesStringUnion<DialogStyleKeys>;
|
|
20
|
-
|
|
21
|
-
const DIALOG_MAX_WIDTH = 328;
|
|
22
|
-
|
|
23
|
-
const TOP_ELEMENT_OFFSET = 20;
|
|
24
|
-
|
|
25
|
-
const useStyles: UseStyles<DialogStyles> = function (): DialogStyles {
|
|
26
|
-
const theme = useTheme();
|
|
27
|
-
|
|
28
|
-
const { width } = useWindowDimensions();
|
|
29
|
-
|
|
30
|
-
const margin = theme.spacing(4);
|
|
31
|
-
const dialogWidth = width - margin * 2;
|
|
32
|
-
|
|
33
|
-
return {
|
|
34
|
-
root: {
|
|
35
|
-
alignItems: 'center',
|
|
36
|
-
justifyContent: 'center',
|
|
37
|
-
zIndex: theme.zIndex.dialog,
|
|
38
|
-
},
|
|
39
|
-
paper: {
|
|
40
|
-
borderRadius: theme.shape.roundnessExtra,
|
|
41
|
-
margin,
|
|
42
|
-
maxWidth: DIALOG_MAX_WIDTH,
|
|
43
|
-
overflow: 'hidden',
|
|
44
|
-
width: dialogWidth,
|
|
45
|
-
},
|
|
46
|
-
paperFullScreen: {
|
|
47
|
-
flexGrow: 1,
|
|
48
|
-
},
|
|
49
|
-
animation: {},
|
|
50
|
-
animationFullScreen: {
|
|
51
|
-
width: '100%',
|
|
52
|
-
height: '100%',
|
|
53
|
-
},
|
|
54
|
-
topElementSize: {
|
|
55
|
-
marginHorizontal: margin,
|
|
56
|
-
maxWidth: DIALOG_MAX_WIDTH,
|
|
57
|
-
width: dialogWidth,
|
|
58
|
-
},
|
|
59
|
-
topElementPosition: {
|
|
60
|
-
position: 'absolute',
|
|
61
|
-
bottom: -1 * theme.spacing(4),
|
|
62
|
-
width: '100%',
|
|
63
|
-
},
|
|
64
|
-
};
|
|
65
|
-
};
|
|
66
|
-
|
|
67
|
-
export default function Dialog(props: DialogProps) {
|
|
68
|
-
const {
|
|
69
|
-
animationType = ANIMATION_TYPE.SLIDE,
|
|
70
|
-
children,
|
|
71
|
-
fullScreen = false,
|
|
72
|
-
hideBackdrop,
|
|
73
|
-
onClose,
|
|
74
|
-
style = {},
|
|
75
|
-
visible,
|
|
76
|
-
topElement,
|
|
77
|
-
...otherProps
|
|
78
|
-
} = props;
|
|
79
|
-
|
|
80
|
-
const styles = useStyles();
|
|
81
|
-
|
|
82
|
-
const { height: screenHeight } = useWindowDimensions();
|
|
83
|
-
|
|
84
|
-
const [topElementHeight, setTopElementHeight] = useState(0);
|
|
85
|
-
const handleTopElementLayout = (event: LayoutChangeEvent) => {
|
|
86
|
-
const { height } = event.nativeEvent.layout;
|
|
87
|
-
setTopElementHeight(height);
|
|
88
|
-
};
|
|
89
|
-
|
|
90
|
-
const offsetAnimation = useMemo<AnimationUnit[]>(() => {
|
|
91
|
-
if (topElementHeight === 0) {
|
|
92
|
-
return [];
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
return [{
|
|
96
|
-
toValue: (topElementHeight - TOP_ELEMENT_OFFSET) / 2,
|
|
97
|
-
type: ANIMATION_TYPE.SLIDE,
|
|
98
|
-
}];
|
|
99
|
-
}, [topElementHeight]);
|
|
100
|
-
|
|
101
|
-
const closeAnimation = useMemo<AnimationUnit[]>(() => {
|
|
102
|
-
if (animationType === ANIMATION_TYPE.FADE) {
|
|
103
|
-
return [{
|
|
104
|
-
toValue: 0,
|
|
105
|
-
type: ANIMATION_TYPE.FADE,
|
|
106
|
-
}];
|
|
107
|
-
} else if (animationType === ANIMATION_TYPE.SLIDE && !fullScreen) {
|
|
108
|
-
return [
|
|
109
|
-
{
|
|
110
|
-
toValue: screenHeight,
|
|
111
|
-
type: ANIMATION_TYPE.SLIDE,
|
|
112
|
-
},
|
|
113
|
-
{
|
|
114
|
-
duration: 150,
|
|
115
|
-
toValue: 0,
|
|
116
|
-
type: ANIMATION_TYPE.FADE,
|
|
117
|
-
},
|
|
118
|
-
];
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
return [{
|
|
122
|
-
duration: 150,
|
|
123
|
-
toValue: screenHeight,
|
|
124
|
-
type: ANIMATION_TYPE.SLIDE,
|
|
125
|
-
}];
|
|
126
|
-
}, [animationType, fullScreen, screenHeight]);
|
|
127
|
-
|
|
128
|
-
const openAnimation = useMemo<AnimationUnit[]>(() => {
|
|
129
|
-
if (animationType === ANIMATION_TYPE.FADE) {
|
|
130
|
-
return [{
|
|
131
|
-
toValue: 1,
|
|
132
|
-
type: ANIMATION_TYPE.FADE,
|
|
133
|
-
}];
|
|
134
|
-
} else if (animationType === ANIMATION_TYPE.SLIDE && !fullScreen) {
|
|
135
|
-
return [
|
|
136
|
-
{
|
|
137
|
-
toValue: 0,
|
|
138
|
-
type: ANIMATION_TYPE.SLIDE,
|
|
139
|
-
},
|
|
140
|
-
{
|
|
141
|
-
delay: 50,
|
|
142
|
-
duration: 150,
|
|
143
|
-
toValue: 1,
|
|
144
|
-
type: ANIMATION_TYPE.FADE,
|
|
145
|
-
},
|
|
146
|
-
];
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
return [{
|
|
150
|
-
toValue: 0,
|
|
151
|
-
type: ANIMATION_TYPE.SLIDE,
|
|
152
|
-
}];
|
|
153
|
-
}, [animationType, fullScreen]);
|
|
154
|
-
|
|
155
|
-
const initialOpacity = animationType === ANIMATION_TYPE.SLIDE && fullScreen ? 1 : undefined;
|
|
156
|
-
|
|
157
|
-
const initialTranslateY = animationType === ANIMATION_TYPE.FADE ? 0 : undefined;
|
|
158
|
-
|
|
159
|
-
return (
|
|
160
|
-
<Modal
|
|
161
|
-
animationStyle={fullScreen ? styles.animationFullScreen : styles.animation}
|
|
162
|
-
closeAnimation={closeAnimation}
|
|
163
|
-
hideBackdrop={hideBackdrop || animationType === ANIMATION_TYPE.FADE}
|
|
164
|
-
initialOpacity={initialOpacity}
|
|
165
|
-
initialTranslateY={initialTranslateY}
|
|
166
|
-
onClose={onClose}
|
|
167
|
-
openAnimation={openAnimation}
|
|
168
|
-
offsetAnimation={offsetAnimation}
|
|
169
|
-
visible={visible}
|
|
170
|
-
style={styles.root}
|
|
171
|
-
{...otherProps}
|
|
172
|
-
>
|
|
173
|
-
<React.Fragment>
|
|
174
|
-
{topElement ? (
|
|
175
|
-
<Column style={fullScreen ? undefined : styles.topElementSize}>
|
|
176
|
-
<Column
|
|
177
|
-
style={styles.topElementPosition}
|
|
178
|
-
onLayout={handleTopElementLayout}
|
|
179
|
-
>
|
|
180
|
-
{topElement}
|
|
181
|
-
</Column>
|
|
182
|
-
</Column>
|
|
183
|
-
) : null}
|
|
184
|
-
|
|
185
|
-
<Paper
|
|
186
|
-
elevation={6}
|
|
187
|
-
square={fullScreen}
|
|
188
|
-
style={css([
|
|
189
|
-
fullScreen ? styles.paperFullScreen : styles.paper,
|
|
190
|
-
style,
|
|
191
|
-
])}
|
|
192
|
-
>
|
|
193
|
-
{children}
|
|
194
|
-
</Paper>
|
|
195
|
-
</React.Fragment>
|
|
196
|
-
</Modal>
|
|
197
|
-
);
|
|
198
|
-
};
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { ModalProps } from '../Modal';
|
|
3
|
-
import type { OverridableComponentProps } from '../types';
|
|
4
|
-
import { ANIMATION_TYPE } from '../Modal';
|
|
5
|
-
|
|
6
|
-
export default interface DialogProps extends OverridableComponentProps<ModalProps, {
|
|
7
|
-
/**
|
|
8
|
-
* Type of animation used when the dialog opens and closes.
|
|
9
|
-
* @default 'slide'
|
|
10
|
-
*/
|
|
11
|
-
animationType?: ANIMATION_TYPE;
|
|
12
|
-
|
|
13
|
-
/**
|
|
14
|
-
* Dialog children, usually the included sub-components.
|
|
15
|
-
*/
|
|
16
|
-
children?: React.ReactNode;
|
|
17
|
-
|
|
18
|
-
/**
|
|
19
|
-
* If `true`, the dialog is full-screen.
|
|
20
|
-
* @default false
|
|
21
|
-
*/
|
|
22
|
-
fullScreen?: boolean;
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* Top element for displaying additional information on the dialog.
|
|
26
|
-
*/
|
|
27
|
-
topElement?: React.ReactNode;
|
|
28
|
-
}> {}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import Column from '../Column';
|
|
3
|
-
import { EdgeInsets } from '../styles';
|
|
4
|
-
import type DialogActionsProps from './DialogActionsProps';
|
|
5
|
-
|
|
6
|
-
export default function DialogActions(props: DialogActionsProps) {
|
|
7
|
-
const {
|
|
8
|
-
children,
|
|
9
|
-
...otherProps
|
|
10
|
-
} = props;
|
|
11
|
-
|
|
12
|
-
return (
|
|
13
|
-
<Column
|
|
14
|
-
alignItems={'center'}
|
|
15
|
-
insets={EdgeInsets.all(6)}
|
|
16
|
-
{...otherProps}
|
|
17
|
-
>
|
|
18
|
-
<Column>
|
|
19
|
-
{children}
|
|
20
|
-
</Column>
|
|
21
|
-
</Column>
|
|
22
|
-
);
|
|
23
|
-
};
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import Column from '../Column';
|
|
3
|
-
import Typography from '../Typography';
|
|
4
|
-
import { EdgeInsets } from '../styles';
|
|
5
|
-
import type DialogContentProps from './LegacyDialogContentProps';
|
|
6
|
-
|
|
7
|
-
export default function DialogContent(props: DialogContentProps) {
|
|
8
|
-
const {
|
|
9
|
-
children,
|
|
10
|
-
disableTypography = false,
|
|
11
|
-
...otherProps
|
|
12
|
-
} = props;
|
|
13
|
-
|
|
14
|
-
return (
|
|
15
|
-
<Column
|
|
16
|
-
insets={EdgeInsets.fromVH(2, 6)}
|
|
17
|
-
{...otherProps}
|
|
18
|
-
>
|
|
19
|
-
{disableTypography ? (
|
|
20
|
-
children
|
|
21
|
-
) : (
|
|
22
|
-
<Typography
|
|
23
|
-
children={children}
|
|
24
|
-
color={'textSecondary'}
|
|
25
|
-
variant={'body2'}
|
|
26
|
-
/>
|
|
27
|
-
)}
|
|
28
|
-
</Column>
|
|
29
|
-
);
|
|
30
|
-
};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { OverridableComponentProps } from '../types';
|
|
2
|
-
import type { ColumnProps } from '../Column';
|
|
3
|
-
|
|
4
|
-
export default interface DialogContentProps extends OverridableComponentProps<ColumnProps, {
|
|
5
|
-
/**
|
|
6
|
-
* If `true`, the children won't be wrapped by a typography component.
|
|
7
|
-
* @default false
|
|
8
|
-
*/
|
|
9
|
-
disableTypography?: boolean;
|
|
10
|
-
}> {}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import Image from '../Image';
|
|
3
|
-
import type DialogMediaProps from './LegacyDialogMediaProps';
|
|
4
|
-
|
|
5
|
-
export default function DialogMedia(props: DialogMediaProps) {
|
|
6
|
-
const {
|
|
7
|
-
children,
|
|
8
|
-
image,
|
|
9
|
-
...otherProps
|
|
10
|
-
} = props;
|
|
11
|
-
|
|
12
|
-
return (
|
|
13
|
-
<Image
|
|
14
|
-
disableOutline={true}
|
|
15
|
-
loading={'eager'}
|
|
16
|
-
overlaidChildren={children}
|
|
17
|
-
source={{ uri: image }}
|
|
18
|
-
{...otherProps}
|
|
19
|
-
/>
|
|
20
|
-
);
|
|
21
|
-
};
|