@basic-ui/material 0.1.16 → 1.0.0-alpha.2
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/cjs/index.js +586 -337
- package/build/cjs/index.js.map +1 -1
- package/build/esm/Alert/Alert.d.ts +2 -2
- package/build/esm/Alert/Alert.js +9 -9
- package/build/esm/Alert/Alert.js.map +1 -1
- package/build/esm/AppBar/AppBar.d.ts +3 -3
- package/build/esm/AppBar/AppBar.js +25 -18
- package/build/esm/AppBar/AppBar.js.map +1 -1
- package/build/esm/AppBar/AppBarButton.d.ts +2 -2
- package/build/esm/AppBar/AppBarButton.js +8 -9
- package/build/esm/AppBar/AppBarButton.js.map +1 -1
- package/build/esm/AppBar/context.d.ts +1 -1
- package/build/esm/AppBar/context.js +6 -5
- package/build/esm/AppBar/context.js.map +1 -1
- package/build/esm/Badge/Badge.d.ts +2 -2
- package/build/esm/Badge/Badge.js +2 -2
- package/build/esm/Badge/Badge.js.map +1 -1
- package/build/esm/BaseLine/BaseLine.d.ts +0 -1
- package/build/esm/BaseLine/BaseLine.js +4 -4
- package/build/esm/BaseLine/BaseLine.js.map +1 -1
- package/build/esm/BottomSheet/BottomSheet.d.ts +2 -2
- package/build/esm/BottomSheet/BottomSheet.js +11 -13
- package/build/esm/BottomSheet/BottomSheet.js.map +1 -1
- package/build/esm/BottomSheet/BottomSheetSurface.d.ts +4 -4
- package/build/esm/BottomSheet/BottomSheetSurface.js +9 -9
- package/build/esm/BottomSheet/BottomSheetSurface.js.map +1 -1
- package/build/esm/Box/Box.d.ts +5 -5
- package/build/esm/Box/Box.js +27 -19
- package/build/esm/Box/Box.js.map +1 -1
- package/build/esm/Button/BaseButton.d.ts +4 -3
- package/build/esm/Button/BaseButton.js +11 -12
- package/build/esm/Button/BaseButton.js.map +1 -1
- package/build/esm/Button/Button.d.ts +5 -5
- package/build/esm/Button/Button.js +45 -24
- package/build/esm/Button/Button.js.map +1 -1
- package/build/esm/Button/ButtonGroup.d.ts +5 -0
- package/build/esm/Button/ButtonGroup.js +31 -0
- package/build/esm/Button/ButtonGroup.js.map +1 -0
- package/build/esm/Button/FilledButton.d.ts +3 -2
- package/build/esm/Button/FilledButton.js +62 -21
- package/build/esm/Button/FilledButton.js.map +1 -1
- package/build/esm/Button/FloatingActionButton.d.ts +1 -1
- package/build/esm/Button/FloatingActionButton.js.map +1 -1
- package/build/esm/Button/IconButton.d.ts +2 -1
- package/build/esm/Button/IconButton.js +2 -1
- package/build/esm/Button/IconButton.js.map +1 -1
- package/build/esm/Button/OutlinedButton.d.ts +1 -1
- package/build/esm/Button/OutlinedButton.js +36 -4
- package/build/esm/Button/OutlinedButton.js.map +1 -1
- package/build/esm/Button/TransparentButton.d.ts +3 -2
- package/build/esm/Button/TransparentButton.js +49 -15
- package/build/esm/Button/TransparentButton.js.map +1 -1
- package/build/esm/Button/context.d.ts +8 -0
- package/build/esm/Button/context.js +7 -0
- package/build/esm/Button/context.js.map +1 -0
- package/build/esm/Button/index.d.ts +1 -0
- package/build/esm/Button/index.js +1 -0
- package/build/esm/Button/index.js.map +1 -1
- package/build/esm/CheckBox/CheckBox.d.ts +3 -3
- package/build/esm/CheckBox/CheckBox.js +43 -36
- package/build/esm/CheckBox/CheckBox.js.map +1 -1
- package/build/esm/CheckBox/CheckBoxIcon.d.ts +3 -3
- package/build/esm/CheckBox/CheckBoxIcon.js +15 -13
- package/build/esm/CheckBox/CheckBoxIcon.js.map +1 -1
- package/build/esm/CheckBox/CheckPath.js +15 -14
- package/build/esm/CheckBox/CheckPath.js.map +1 -1
- package/build/esm/CheckBox/IndeterminatePath.js +14 -13
- package/build/esm/CheckBox/IndeterminatePath.js.map +1 -1
- package/build/esm/Chip/ButtonChip.d.ts +5 -5
- package/build/esm/Chip/ButtonChip.js +49 -65
- package/build/esm/Chip/ButtonChip.js.map +1 -1
- package/build/esm/Chip/ChipBase.d.ts +2 -2
- package/build/esm/Chip/ChipBase.js +42 -29
- package/build/esm/Chip/ChipBase.js.map +1 -1
- package/build/esm/Chip/ChoiceChip.d.ts +5 -4
- package/build/esm/Chip/ChoiceChip.js +38 -45
- package/build/esm/Chip/ChoiceChip.js.map +1 -1
- package/build/esm/ColorMode/ColorModeProvider.d.ts +1 -1
- package/build/esm/ColorMode/ColorModeProvider.js +32 -19
- package/build/esm/ColorMode/ColorModeProvider.js.map +1 -1
- package/build/esm/ColorMode/color-mode.js +3 -3
- package/build/esm/ColorMode/color-mode.js.map +1 -1
- package/build/esm/ColorMode/color-vars.js +20 -12
- package/build/esm/ColorMode/color-vars.js.map +1 -1
- package/build/esm/ColorMode/constants.js +3 -3
- package/build/esm/ColorMode/constants.js.map +1 -1
- package/build/esm/Combobox/Combobox.d.ts +15 -15
- package/build/esm/Combobox/Combobox.js +51 -57
- package/build/esm/Combobox/Combobox.js.map +1 -1
- package/build/esm/Dialog/Dialog.d.ts +5 -5
- package/build/esm/Dialog/Dialog.js +22 -23
- package/build/esm/Dialog/Dialog.js.map +1 -1
- package/build/esm/Dialog/DialogBackdrop.d.ts +4 -4
- package/build/esm/Dialog/DialogBackdrop.js +10 -11
- package/build/esm/Dialog/DialogBackdrop.js.map +1 -1
- package/build/esm/Dialog/DialogContainer.d.ts +1 -1
- package/build/esm/Dialog/DialogContainer.js +4 -6
- package/build/esm/Dialog/DialogContainer.js.map +1 -1
- package/build/esm/Dialog/DialogSurface.d.ts +7 -5
- package/build/esm/Dialog/DialogSurface.js +24 -12
- package/build/esm/Dialog/DialogSurface.js.map +1 -1
- package/build/esm/Dialog/Scrim.d.ts +1 -1
- package/build/esm/Dialog/Scrim.js +4 -6
- package/build/esm/Dialog/Scrim.js.map +1 -1
- package/build/esm/Dialog/useDialogAnimation.js +19 -20
- package/build/esm/Dialog/useDialogAnimation.js.map +1 -1
- package/build/esm/Divider/Divider.d.ts +3 -3
- package/build/esm/Divider/Divider.js +9 -8
- package/build/esm/Divider/Divider.js.map +1 -1
- package/build/esm/FloatingLabel/FloatingLabel.d.ts +1 -1
- package/build/esm/FloatingLabel/FloatingLabel.js +26 -22
- package/build/esm/FloatingLabel/FloatingLabel.js.map +1 -1
- package/build/esm/LineRipple/LineRipple.d.ts +3 -3
- package/build/esm/LineRipple/LineRipple.js +27 -18
- package/build/esm/LineRipple/LineRipple.js.map +1 -1
- package/build/esm/Link/Link.d.ts +3 -3
- package/build/esm/Link/Link.js +10 -9
- package/build/esm/Link/Link.js.map +1 -1
- package/build/esm/List/List.d.ts +3 -3
- package/build/esm/List/List.js +20 -13
- package/build/esm/List/List.js.map +1 -1
- package/build/esm/ListItem/ListItem.d.ts +3 -3
- package/build/esm/ListItem/ListItem.js +72 -50
- package/build/esm/ListItem/ListItem.js.map +1 -1
- package/build/esm/ListItem/ListItemText.d.ts +1 -1
- package/build/esm/ListItem/ListItemText.js +10 -15
- package/build/esm/ListItem/ListItemText.js.map +1 -1
- package/build/esm/Menu/Menu.d.ts +10 -10
- package/build/esm/Menu/Menu.js +23 -27
- package/build/esm/Menu/Menu.js.map +1 -1
- package/build/esm/Menu/animation.d.ts +1 -1
- package/build/esm/Menu/animation.js +1 -1
- package/build/esm/Menu/animation.js.map +1 -1
- package/build/esm/NotchedOutline/NotchedOutline.d.ts +1 -1
- package/build/esm/NotchedOutline/NotchedOutline.js +25 -21
- package/build/esm/NotchedOutline/NotchedOutline.js.map +1 -1
- package/build/esm/NotchedOutline/context.js +6 -5
- package/build/esm/NotchedOutline/context.js.map +1 -1
- package/build/esm/NotchedOutline/styledComponents.d.ts +96 -50
- package/build/esm/NotchedOutline/styledComponents.js +58 -63
- package/build/esm/NotchedOutline/styledComponents.js.map +1 -1
- package/build/esm/Paper/Paper.d.ts +4 -3
- package/build/esm/Paper/Paper.js +15 -13
- package/build/esm/Paper/Paper.js.map +1 -1
- package/build/esm/ProgressSpinner/ProgressSpinner.d.ts +1 -1
- package/build/esm/ProgressSpinner/ProgressSpinner.js +16 -16
- package/build/esm/ProgressSpinner/ProgressSpinner.js.map +1 -1
- package/build/esm/RadioButton/RadioButton.d.ts +1 -1
- package/build/esm/RadioButton/RadioButton.js +17 -20
- package/build/esm/RadioButton/RadioButton.js.map +1 -1
- package/build/esm/RadioButton/RadioButtonIcon.d.ts +1 -1
- package/build/esm/RadioButton/RadioButtonIcon.js +7 -8
- package/build/esm/RadioButton/RadioButtonIcon.js.map +1 -1
- package/build/esm/RadioButton/RadioGroup.d.ts +3 -3
- package/build/esm/RadioButton/RadioGroup.js +5 -4
- package/build/esm/RadioButton/RadioGroup.js.map +1 -1
- package/build/esm/Ripple/Ripple.d.ts +1 -1
- package/build/esm/Ripple/Ripple.js +21 -20
- package/build/esm/Ripple/Ripple.js.map +1 -1
- package/build/esm/Ripple/RippleBox.d.ts +4 -4
- package/build/esm/Ripple/RippleBox.js +22 -15
- package/build/esm/Ripple/RippleBox.js.map +1 -1
- package/build/esm/Ripple/constants.js +7 -7
- package/build/esm/Ripple/constants.js.map +1 -1
- package/build/esm/Ripple/keyframes.d.ts +1 -1
- package/build/esm/Ripple/keyframes.js +3 -3
- package/build/esm/Ripple/keyframes.js.map +1 -1
- package/build/esm/Ripple/useRipple.js +55 -48
- package/build/esm/Ripple/useRipple.js.map +1 -1
- package/build/esm/Ripple/useRippleHandlers.d.ts +1 -1
- package/build/esm/Ripple/useRippleHandlers.js +13 -15
- package/build/esm/Ripple/useRippleHandlers.js.map +1 -1
- package/build/esm/Ripple/useRippleSurface.d.ts +6 -5
- package/build/esm/Ripple/useRippleSurface.js +60 -37
- package/build/esm/Ripple/useRippleSurface.js.map +1 -1
- package/build/esm/Select/Select.d.ts +4 -4
- package/build/esm/Select/Select.js +69 -47
- package/build/esm/Select/Select.js.map +1 -1
- package/build/esm/Select/SelectIcon.d.ts +3 -3
- package/build/esm/Select/SelectIcon.js +6 -7
- package/build/esm/Select/SelectIcon.js.map +1 -1
- package/build/esm/Select/context.js +7 -6
- package/build/esm/Select/context.js.map +1 -1
- package/build/esm/Select/defaultRender.js +12 -10
- package/build/esm/Select/defaultRender.js.map +1 -1
- package/build/esm/Select/styledComponents.d.ts +2 -2
- package/build/esm/Select/styledComponents.js +16 -19
- package/build/esm/Select/styledComponents.js.map +1 -1
- package/build/esm/SelectItem/SelectItem.d.ts +2 -2
- package/build/esm/SelectItem/SelectItem.js +18 -19
- package/build/esm/SelectItem/SelectItem.js.map +1 -1
- package/build/esm/SelectionControl/SelectionControlLabel.d.ts +3 -3
- package/build/esm/SelectionControl/SelectionControlLabel.js +7 -7
- package/build/esm/SelectionControl/SelectionControlLabel.js.map +1 -1
- package/build/esm/SelectionControl/SelectionControlText.d.ts +3 -3
- package/build/esm/SelectionControl/SelectionControlText.js +8 -8
- package/build/esm/SelectionControl/SelectionControlText.js.map +1 -1
- package/build/esm/Skeleton/DelayAppearance.d.ts +4 -4
- package/build/esm/Skeleton/DelayAppearance.js +9 -9
- package/build/esm/Skeleton/DelayAppearance.js.map +1 -1
- package/build/esm/Skeleton/Skeleton.d.ts +3 -3
- package/build/esm/Skeleton/Skeleton.js +11 -10
- package/build/esm/Skeleton/Skeleton.js.map +1 -1
- package/build/esm/Skeleton/animation.d.ts +2 -2
- package/build/esm/Skeleton/animation.js +25 -22
- package/build/esm/Skeleton/animation.js.map +1 -1
- package/build/esm/Snackbar/Snackbar.d.ts +3 -3
- package/build/esm/Snackbar/Snackbar.js +24 -24
- package/build/esm/Snackbar/Snackbar.js.map +1 -1
- package/build/esm/Snackbar/Stack.d.ts +2 -3
- package/build/esm/Snackbar/Stack.js +78 -65
- package/build/esm/Snackbar/Stack.js.map +1 -1
- package/build/esm/Snackbar/useSnackbarAnimation.d.ts +1 -1
- package/build/esm/Snackbar/useSnackbarAnimation.js +113 -78
- package/build/esm/Snackbar/useSnackbarAnimation.js.map +1 -1
- package/build/esm/Switch/Switch.d.ts +3 -3
- package/build/esm/Switch/Switch.js +29 -28
- package/build/esm/Switch/Switch.js.map +1 -1
- package/build/esm/Switch/styledComponents.d.ts +2 -2
- package/build/esm/Switch/styledComponents.js +66 -40
- package/build/esm/Switch/styledComponents.js.map +1 -1
- package/build/esm/Tab/Tab.d.ts +4 -4
- package/build/esm/Tab/Tab.js +17 -19
- package/build/esm/Tab/Tab.js.map +1 -1
- package/build/esm/Tab/TabList.d.ts +3 -3
- package/build/esm/Tab/TabList.js +18 -19
- package/build/esm/Tab/TabList.js.map +1 -1
- package/build/esm/Tab/TabPanel.d.ts +3 -3
- package/build/esm/Tab/TabPanel.js +8 -11
- package/build/esm/Tab/TabPanel.js.map +1 -1
- package/build/esm/Tab/context.js +6 -5
- package/build/esm/Tab/context.js.map +1 -1
- package/build/esm/TabIndicator/TabIndicator.d.ts +2 -2
- package/build/esm/TabIndicator/TabIndicator.js +22 -21
- package/build/esm/TabIndicator/TabIndicator.js.map +1 -1
- package/build/esm/TabIndicator/context.js +6 -5
- package/build/esm/TabIndicator/context.js.map +1 -1
- package/build/esm/Table/Table.d.ts +2 -2
- package/build/esm/Table/Table.js +8 -8
- package/build/esm/Table/Table.js.map +1 -1
- package/build/esm/Table/TableBody.d.ts +1 -1
- package/build/esm/Table/TableBody.js +4 -6
- package/build/esm/Table/TableBody.js.map +1 -1
- package/build/esm/Table/TableCell.d.ts +1 -1
- package/build/esm/Table/TableCell.js +6 -8
- package/build/esm/Table/TableCell.js.map +1 -1
- package/build/esm/Table/TableHead.d.ts +1 -1
- package/build/esm/Table/TableHead.js +5 -7
- package/build/esm/Table/TableHead.js.map +1 -1
- package/build/esm/Table/TableRow.d.ts +2 -2
- package/build/esm/Table/TableRow.js +5 -7
- package/build/esm/Table/TableRow.js.map +1 -1
- package/build/esm/Table/context.js +6 -5
- package/build/esm/Table/context.js.map +1 -1
- package/build/esm/Text/LoremIpsum.d.ts +1 -1
- package/build/esm/Text/LoremIpsum.js +6 -6
- package/build/esm/Text/LoremIpsum.js.map +1 -1
- package/build/esm/Text/Text.d.ts +3 -3
- package/build/esm/Text/Text.js +9 -9
- package/build/esm/Text/Text.js.map +1 -1
- package/build/esm/TextField/FilledContainer.d.ts +3 -3
- package/build/esm/TextField/FilledContainer.js +61 -57
- package/build/esm/TextField/FilledContainer.js.map +1 -1
- package/build/esm/TextField/HelperText.d.ts +3 -3
- package/build/esm/TextField/HelperText.js +14 -13
- package/build/esm/TextField/HelperText.js.map +1 -1
- package/build/esm/TextField/IconContainer.d.ts +2 -2
- package/build/esm/TextField/IconContainer.js +15 -23
- package/build/esm/TextField/IconContainer.js.map +1 -1
- package/build/esm/TextField/Input.d.ts +3 -3
- package/build/esm/TextField/Input.js +14 -14
- package/build/esm/TextField/Input.js.map +1 -1
- package/build/esm/TextField/OutlinedContainer.d.ts +4 -4
- package/build/esm/TextField/OutlinedContainer.js +28 -22
- package/build/esm/TextField/OutlinedContainer.js.map +1 -1
- package/build/esm/TextField/TextField.d.ts +4 -4
- package/build/esm/TextField/TextField.js +59 -41
- package/build/esm/TextField/TextField.js.map +1 -1
- package/build/esm/TextField/consts.js +5 -5
- package/build/esm/TextField/consts.js.map +1 -1
- package/build/esm/ThemeExplorer/ColorPicker.d.ts +4 -4
- package/build/esm/ThemeExplorer/ColorPicker.js +16 -16
- package/build/esm/ThemeExplorer/ColorPicker.js.map +1 -1
- package/build/esm/ThemeExplorer/TextFieldColorPicker.d.ts +2 -2
- package/build/esm/ThemeExplorer/TextFieldColorPicker.js +49 -29
- package/build/esm/ThemeExplorer/TextFieldColorPicker.js.map +1 -1
- package/build/esm/ThemeExplorer/ThemeColors.d.ts +1 -1
- package/build/esm/ThemeExplorer/ThemeColors.js +3 -3
- package/build/esm/ThemeExplorer/ThemeColors.js.map +1 -1
- package/build/esm/ThemeExplorer/components.d.ts +2 -1
- package/build/esm/ThemeExplorer/components.js +64 -56
- package/build/esm/ThemeExplorer/components.js.map +1 -1
- package/build/esm/ThemeExplorer/makeColorScheme.d.ts +1 -1
- package/build/esm/ThemeExplorer/makeColorScheme.js.map +1 -1
- package/build/esm/ThemeExplorer/useDeferredColor.d.ts +1 -1
- package/build/esm/ThemeExplorer/useDeferredColor.js +10 -3
- package/build/esm/ThemeExplorer/useDeferredColor.js.map +1 -1
- package/build/esm/ThemeExplorer/useLocalStorageCachedState.js +9 -2
- package/build/esm/ThemeExplorer/useLocalStorageCachedState.js.map +1 -1
- package/build/esm/Tooltip/Tooltip.d.ts +3 -3
- package/build/esm/Tooltip/Tooltip.js +7 -8
- package/build/esm/Tooltip/Tooltip.js.map +1 -1
- package/build/esm/color.d.ts +5 -4
- package/build/esm/color.js +26 -16
- package/build/esm/color.js.map +1 -1
- package/build/esm/hooks/useAnimation.d.ts +1 -1
- package/build/esm/hooks/useAnimation.js +54 -41
- package/build/esm/hooks/useAnimation.js.map +1 -1
- package/build/esm/theme/theme.d.ts +96 -50
- package/build/esm/theme/theme.js +134 -94
- package/build/esm/theme/theme.js.map +1 -1
- package/build/esm/theme/typography-raleway.js +1 -1
- package/build/esm/theme/typography-raleway.js.map +1 -1
- package/build/esm/theme/typography-roboto.js +1 -1
- package/build/esm/theme/typography-roboto.js.map +1 -1
- package/build/esm/theme/useTheme.d.ts +1 -1
- package/build/esm/theme/useTheme.js +1 -1
- package/build/esm/theme/useTheme.js.map +1 -1
- package/build/tsconfig.tsbuildinfo +1 -1
- package/package.json +6 -4
- package/src/Alert/Alert.tsx +4 -2
- package/src/AppBar/AppBar.story.tsx +7 -6
- package/src/AppBar/AppBar.tsx +10 -9
- package/src/AppBar/AppBarButton.tsx +3 -1
- package/src/AppBar/context.ts +2 -1
- package/src/Badge/Badge.tsx +3 -1
- package/src/BaseLine/BaseLine.tsx +15 -11
- package/src/BottomSheet/BottomSheet.story.tsx +1 -0
- package/src/BottomSheet/BottomSheet.tsx +2 -1
- package/src/BottomSheet/BottomSheetSurface.tsx +9 -5
- package/src/Box/Box.tsx +21 -18
- package/src/Button/BaseButton.tsx +5 -2
- package/src/Button/Button.story.tsx +35 -35
- package/src/Button/Button.tsx +23 -8
- package/src/Button/ButtonGroup.story.tsx +106 -0
- package/src/Button/ButtonGroup.tsx +35 -0
- package/src/Button/FilledButton.tsx +41 -6
- package/src/Button/FloatingActionButton.tsx +9 -0
- package/src/Button/IconButton.tsx +2 -1
- package/src/Button/OutlinedButton.tsx +33 -4
- package/src/Button/SpinnerButton.story.tsx +10 -11
- package/src/Button/TransparentButton.tsx +35 -4
- package/src/Button/context.tsx +17 -0
- package/src/Button/index.ts +1 -0
- package/src/CheckBox/CheckBox.story.tsx +3 -2
- package/src/CheckBox/CheckBox.tsx +10 -6
- package/src/CheckBox/CheckBoxIcon.tsx +4 -2
- package/src/Chip/ButtonChip.tsx +47 -51
- package/src/Chip/Chip.story.tsx +48 -27
- package/src/Chip/ChipBase.tsx +44 -14
- package/src/Chip/ChoiceChip.tsx +28 -24
- package/src/ColorMode/ColorModeProvider.tsx +4 -2
- package/src/Combobox/Combobox.story.tsx +2 -1
- package/src/Combobox/Combobox.tsx +30 -18
- package/src/Dialog/Dialog.story.tsx +3 -1
- package/src/Dialog/Dialog.tsx +9 -4
- package/src/Dialog/DialogBackdrop.tsx +6 -6
- package/src/Dialog/DialogContainer.tsx +3 -1
- package/src/Dialog/DialogSurface.tsx +26 -9
- package/src/Dialog/Scrim.tsx +3 -1
- package/src/Divider/Divider.tsx +4 -2
- package/src/FloatingLabel/FloatingLabel.story.tsx +1 -0
- package/src/FloatingLabel/FloatingLabel.tsx +3 -2
- package/src/LineRipple/LineRipple.story.tsx +1 -0
- package/src/LineRipple/LineRipple.tsx +6 -3
- package/src/Link/Link.tsx +4 -2
- package/src/List/List.tsx +5 -2
- package/src/ListItem/ListItem.story.tsx +1 -0
- package/src/ListItem/ListItem.tsx +59 -34
- package/src/ListItem/ListItemText.tsx +4 -5
- package/src/Menu/Menu.tsx +21 -14
- package/src/Menu/animation.ts +1 -1
- package/src/NotchedOutline/NotchedOutline.story.tsx +3 -2
- package/src/NotchedOutline/NotchedOutline.tsx +2 -1
- package/src/NotchedOutline/styledComponents.ts +8 -7
- package/src/Paper/Paper.story.tsx +17 -3
- package/src/Paper/Paper.tsx +22 -5
- package/src/ProgressSpinner/ProgressSpinner.story.tsx +1 -0
- package/src/ProgressSpinner/ProgressSpinner.tsx +5 -2
- package/src/RadioButton/RadioButton.story.tsx +2 -1
- package/src/RadioButton/RadioButton.tsx +10 -8
- package/src/RadioButton/RadioButtonIcon.tsx +4 -3
- package/src/RadioButton/RadioGroup.tsx +5 -5
- package/src/Ripple/Ripple.story.tsx +9 -3
- package/src/Ripple/Ripple.tsx +3 -2
- package/src/Ripple/RippleBox.tsx +9 -4
- package/src/Ripple/keyframes.ts +2 -1
- package/src/Ripple/useRipple.ts +1 -0
- package/src/Ripple/useRippleHandlers.ts +3 -1
- package/src/Ripple/useRippleSurface.ts +39 -13
- package/src/Select/PaymentMethodSelect.story.tsx +3 -1
- package/src/Select/Select.story.tsx +1 -0
- package/src/Select/Select.tsx +6 -4
- package/src/Select/SelectIcon.tsx +6 -3
- package/src/Select/defaultRender.ts +13 -13
- package/src/Select/styledComponents.tsx +5 -3
- package/src/SelectItem/SelectItem.tsx +4 -2
- package/src/SelectionControl/SelectionControlLabel.tsx +6 -3
- package/src/SelectionControl/SelectionControlText.tsx +4 -2
- package/src/Skeleton/DelayAppearance.tsx +5 -3
- package/src/Skeleton/Skeleton.story.tsx +2 -2
- package/src/Skeleton/Skeleton.tsx +4 -2
- package/src/Skeleton/animation.ts +3 -2
- package/src/Snackbar/Snackbar.story.tsx +1 -0
- package/src/Snackbar/Snackbar.tsx +8 -6
- package/src/Snackbar/Stack.tsx +3 -3
- package/src/Snackbar/useSnackbarAnimation.ts +3 -1
- package/src/Switch/Switch.tsx +16 -11
- package/src/Switch/styledComponents.tsx +72 -22
- package/src/Tab/Tab.tsx +8 -4
- package/src/Tab/TabList.tsx +5 -5
- package/src/Tab/TabPanel.tsx +5 -5
- package/src/TabIndicator/TabIndicator.tsx +6 -3
- package/src/Table/Table.tsx +5 -2
- package/src/Table/TableBody.tsx +3 -1
- package/src/Table/TableCell.tsx +3 -1
- package/src/Table/TableHead.tsx +4 -2
- package/src/Table/TableRow.tsx +4 -2
- package/src/Text/LoremIpsum.tsx +2 -1
- package/src/Text/Text.tsx +4 -2
- package/src/TextField/FilledContainer.tsx +13 -8
- package/src/TextField/HelperText.tsx +3 -2
- package/src/TextField/IconContainer.tsx +3 -2
- package/src/TextField/Input.tsx +9 -4
- package/src/TextField/OutlinedContainer.tsx +5 -3
- package/src/TextField/TextField.story.tsx +1 -0
- package/src/TextField/TextField.tsx +6 -3
- package/src/ThemeExplorer/ColorPicker.tsx +104 -0
- package/src/ThemeExplorer/TextFieldColorPicker.tsx +115 -0
- package/src/ThemeExplorer/ThemeBuilder.story.tsx +165 -0
- package/src/ThemeExplorer/ThemeColors.tsx +89 -0
- package/src/ThemeExplorer/ThemeExplorer.story.tsx +43 -0
- package/src/ThemeExplorer/components.tsx +195 -0
- package/src/ThemeExplorer/makeColorScheme.tsx +74 -0
- package/src/ThemeExplorer/useDeferredColor.tsx +25 -0
- package/src/ThemeExplorer/useLocalStorageCachedState.ts +18 -0
- package/src/Tooltip/Tooltip.story.tsx +1 -0
- package/src/Tooltip/Tooltip.tsx +8 -4
- package/src/color.ts +36 -29
- package/src/hooks/useAnimation.ts +2 -1
- package/src/theme/theme.ts +131 -92
- package/src/theme/useTheme.ts +3 -1
- package/src/ListItem/context.ts +0 -13
package/build/cjs/index.js
CHANGED
|
@@ -24,45 +24,62 @@ var _styled__default = /*#__PURE__*/_interopDefaultLegacy(_styled);
|
|
|
24
24
|
var shouldForwardProp__default = /*#__PURE__*/_interopDefaultLegacy(shouldForwardProp);
|
|
25
25
|
|
|
26
26
|
// material theme preset
|
|
27
|
-
const primary = '#5d1049';
|
|
28
|
-
const secondary = '#e30425';
|
|
29
|
-
const error = '#BF360C';
|
|
30
|
-
const background = '#f6f6f6';
|
|
31
|
-
const surface = '#fff';
|
|
32
|
-
const muted = '#f6f6f6';
|
|
33
27
|
const theme = {
|
|
34
28
|
googleFonts: 'https://fonts.googleapis.com/css?family=Roboto+Mono|Roboto:300,400,500,600,700&display=swap',
|
|
35
29
|
colors: {
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
30
|
+
primary: '#934078',
|
|
31
|
+
secondary: '#705765',
|
|
32
|
+
tertiary: '#80543e',
|
|
33
|
+
error: '#ba1b1b',
|
|
34
|
+
'primary-container': '#ffd7ed',
|
|
35
|
+
'secondary-container': '#fbd9ea',
|
|
36
|
+
'tertiary-container': '#ffdbc9',
|
|
37
|
+
'error-container': '#ffdad4',
|
|
38
|
+
background: '#fcfcfc',
|
|
39
|
+
surface: '#fcfcfc',
|
|
40
|
+
'surface-variant': '#efdee5',
|
|
41
|
+
outline: '#81747a',
|
|
42
42
|
on: {
|
|
43
|
-
primary:
|
|
44
|
-
secondary:
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
43
|
+
primary: '#ffffff',
|
|
44
|
+
secondary: '#ffffff',
|
|
45
|
+
tertiary: '#ffffff',
|
|
46
|
+
error: '#ffffff',
|
|
47
|
+
'primary-container': '#3b002d',
|
|
48
|
+
'secondary-container': '#291521',
|
|
49
|
+
'tertiary-container': '#321303',
|
|
50
|
+
'error-container': '#410001',
|
|
51
|
+
background: '#1f1a1c',
|
|
52
|
+
surface: '#1f1a1c',
|
|
53
|
+
'surface-variant': '#4f4349',
|
|
54
|
+
outline: '#feecf3'
|
|
49
55
|
},
|
|
50
56
|
modes: {
|
|
51
57
|
dark: {
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
error,
|
|
56
|
-
primary: '#
|
|
57
|
-
secondary,
|
|
58
|
-
|
|
58
|
+
primary: '#ffade0',
|
|
59
|
+
secondary: '#debece',
|
|
60
|
+
tertiary: '#f4ba9e',
|
|
61
|
+
error: '#ffb4a9',
|
|
62
|
+
'primary-container': '#77285f',
|
|
63
|
+
'secondary-container': '#57404d',
|
|
64
|
+
'tertiary-container': '#653d28',
|
|
65
|
+
'error-container': '#930006',
|
|
66
|
+
background: '#1f1a1c',
|
|
67
|
+
surface: '#1f1a1c',
|
|
68
|
+
'surface-variant': '#4f4349',
|
|
69
|
+
outline: '#9b8d93',
|
|
59
70
|
on: {
|
|
60
|
-
primary:
|
|
61
|
-
secondary:
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
71
|
+
primary: '#5b0e47',
|
|
72
|
+
secondary: '#402a37',
|
|
73
|
+
tertiary: '#4b2714',
|
|
74
|
+
error: '#680003',
|
|
75
|
+
'primary-container': '#ffd7ed',
|
|
76
|
+
'secondary-container': '#fbd9ea',
|
|
77
|
+
'tertiary-container': '#ffdbc9',
|
|
78
|
+
'error-container': '#ffdad4',
|
|
79
|
+
background: '#eae0e3',
|
|
80
|
+
surface: '#eae0e3',
|
|
81
|
+
'surface-variant': '#d3c2c9',
|
|
82
|
+
outline: '#22191e'
|
|
66
83
|
}
|
|
67
84
|
}
|
|
68
85
|
}
|
|
@@ -74,10 +91,19 @@ const theme = {
|
|
|
74
91
|
radii: {
|
|
75
92
|
none: 0,
|
|
76
93
|
default: "0.25rem",
|
|
77
|
-
|
|
94
|
+
'extra-small': "0.25rem",
|
|
95
|
+
'extra-small_top': `${"0.25rem"} ${"0.25rem"} 0 0`,
|
|
96
|
+
small: "0.5rem",
|
|
97
|
+
medium: "0.75rem",
|
|
98
|
+
large: "1rem",
|
|
99
|
+
large_end: `0 ${"1rem"} ${"1rem"} 0`,
|
|
100
|
+
large_top: `${"1rem"} ${"1rem"} 0 0`,
|
|
101
|
+
'extra-large': "1.75rem",
|
|
102
|
+
'extra-large_top': `${"1.75rem"} ${"1.75rem"} 0 0`,
|
|
103
|
+
full: "6249.9375rem",
|
|
78
104
|
circle: '100%'
|
|
79
105
|
},
|
|
80
|
-
|
|
106
|
+
shadowsOriginal: {
|
|
81
107
|
0: '0 0 0 0 rgba(0,0,0,0.2),0 0 0 0 rgba(0,0,0,0.14),0 0 0 0 rgba(0,0,0,0.12)',
|
|
82
108
|
1: '0 2px 1px -1px rgba(0,0,0,0.2),0 1px 1px 0 rgba(0,0,0,0.14),0 1px 3px 0 rgba(0,0,0,0.12)',
|
|
83
109
|
2: '0 3px 1px -2px rgba(0,0,0,0.2),0 2px 2px 0 rgba(0,0,0,0.14),0 1px 5px 0 rgba(0,0,0,0.12)',
|
|
@@ -104,6 +130,14 @@ const theme = {
|
|
|
104
130
|
23: '0 11px 14px -7px rgba(0,0,0,0.2),0 23px 36px 3px rgba(0,0,0,0.14),0 9px 44px 8px rgba(0,0,0,0.12)',
|
|
105
131
|
24: '0 11px 15px -7px rgba(0,0,0,0.2),0 24px 38px 3px rgba(0,0,0,0.14),0 9px 46px 8px rgba(0,0,0,0.12)'
|
|
106
132
|
},
|
|
133
|
+
shadows: {
|
|
134
|
+
0: '0 0 0 0 rgba(0,0,0,0.2),0 0 0 0 rgba(0,0,0,0.14),0 0 0 0 rgba(0,0,0,0.12)',
|
|
135
|
+
1: '0 1px 2px rgba(0,0,0,0.3),0 1px 3px 1px rgba(0,0,0,0.15)',
|
|
136
|
+
2: '0 1px 2px rgba(0,0,0,0.3),0 2px 6px 2px rgba(0,0,0,0.15)',
|
|
137
|
+
3: '0 4px 8px 3px rgba(0,0,0,0.15),0 1px 3px rgba(0,0,0,0.3)',
|
|
138
|
+
4: '0 6px 10px 4px rgba(0,0,0,0.15),0 2px 3px rgba(0,0,0,0.3)',
|
|
139
|
+
5: '0 8px 12px 6px rgba(0,0,0,0.15),0 4px 4px rgba(0,0,0,0.3)'
|
|
140
|
+
},
|
|
107
141
|
fonts: {
|
|
108
142
|
body: 'Roboto, sans-serif',
|
|
109
143
|
heading: 'Roboto, sans-serif',
|
|
@@ -217,11 +251,10 @@ const theme = {
|
|
|
217
251
|
letterSpacing: "0.017857142857142856em"
|
|
218
252
|
},
|
|
219
253
|
button: {
|
|
220
|
-
variant: 'text.
|
|
254
|
+
variant: 'text.display',
|
|
221
255
|
fontSize: 2,
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
lineHeight: 'normal'
|
|
256
|
+
letterSpacing: "0.08571428571428572em",
|
|
257
|
+
fontWeight: 'medium'
|
|
225
258
|
},
|
|
226
259
|
caption: {
|
|
227
260
|
variant: 'text.display',
|
|
@@ -266,16 +299,16 @@ const theme = {
|
|
|
266
299
|
elevations: {
|
|
267
300
|
default: {},
|
|
268
301
|
elevated: {
|
|
269
|
-
boxShadow:
|
|
302
|
+
boxShadow: 2
|
|
270
303
|
}
|
|
271
304
|
},
|
|
272
305
|
sizes: {
|
|
273
306
|
default: {
|
|
274
|
-
height: "
|
|
307
|
+
height: "4rem",
|
|
275
308
|
p: 3
|
|
276
309
|
},
|
|
277
310
|
dense: {
|
|
278
|
-
height: "
|
|
311
|
+
height: "3.5rem"
|
|
279
312
|
}
|
|
280
313
|
}
|
|
281
314
|
},
|
|
@@ -283,17 +316,17 @@ const theme = {
|
|
|
283
316
|
variants: {
|
|
284
317
|
base: {
|
|
285
318
|
variant: 'text.button',
|
|
286
|
-
borderRadius: 'default',
|
|
287
319
|
boxShadow: 'none',
|
|
288
320
|
py: 0,
|
|
289
|
-
px:
|
|
290
|
-
height: "2.
|
|
321
|
+
px: "1.5rem",
|
|
322
|
+
height: "2.5rem",
|
|
323
|
+
borderRadius: 'full',
|
|
291
324
|
cursor: 'pointer',
|
|
292
325
|
outline: 'none'
|
|
293
326
|
},
|
|
294
327
|
text: {
|
|
295
328
|
variant: 'buttons.variants.base',
|
|
296
|
-
px:
|
|
329
|
+
px: "0.75rem"
|
|
297
330
|
},
|
|
298
331
|
filled: {
|
|
299
332
|
variant: 'buttons.variants.base'
|
|
@@ -307,7 +340,8 @@ const theme = {
|
|
|
307
340
|
maxHeight: "3.5rem",
|
|
308
341
|
width: "3.5rem",
|
|
309
342
|
maxWidth: "3.5rem",
|
|
310
|
-
borderRadius: '
|
|
343
|
+
borderRadius: 'large',
|
|
344
|
+
px: 0
|
|
311
345
|
},
|
|
312
346
|
'fab-mini': {
|
|
313
347
|
variant: 'buttons.variants.fab',
|
|
@@ -315,13 +349,23 @@ const theme = {
|
|
|
315
349
|
maxHeight: "2.5rem",
|
|
316
350
|
width: "2.5rem",
|
|
317
351
|
maxWidth: "2.5rem",
|
|
352
|
+
borderRadius: 'medium',
|
|
353
|
+
px: 0
|
|
354
|
+
},
|
|
355
|
+
'fab-large': {
|
|
356
|
+
variant: 'buttons.variants.fab',
|
|
357
|
+
height: "6rem",
|
|
358
|
+
maxHeight: "6rem",
|
|
359
|
+
width: "6rem",
|
|
360
|
+
maxWidth: "6rem",
|
|
361
|
+
borderRadius: 'extra-large',
|
|
318
362
|
px: 0
|
|
319
363
|
},
|
|
320
364
|
'fab-extended': {
|
|
321
365
|
variant: 'buttons.variants.base',
|
|
322
|
-
height: "
|
|
323
|
-
px: "
|
|
324
|
-
borderRadius:
|
|
366
|
+
height: "3.5rem",
|
|
367
|
+
px: "1rem",
|
|
368
|
+
borderRadius: 'large'
|
|
325
369
|
},
|
|
326
370
|
icon: {
|
|
327
371
|
variant: 'buttons.variants.base',
|
|
@@ -330,19 +374,25 @@ const theme = {
|
|
|
330
374
|
width: "3rem",
|
|
331
375
|
maxWidth: "3rem",
|
|
332
376
|
px: "0.75rem",
|
|
333
|
-
borderRadius: '
|
|
377
|
+
borderRadius: 'full'
|
|
334
378
|
}
|
|
335
379
|
},
|
|
336
380
|
elevations: {
|
|
337
381
|
none: {},
|
|
338
|
-
|
|
382
|
+
default: {
|
|
339
383
|
transition: 'box-shadow .28s cubic-bezier(.4,0,.2,1)',
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
boxShadow: 4
|
|
384
|
+
'&:hover': {
|
|
385
|
+
boxShadow: 1
|
|
343
386
|
},
|
|
344
|
-
':
|
|
345
|
-
boxShadow:
|
|
387
|
+
'&:hover:disabled': {
|
|
388
|
+
boxShadow: 0
|
|
389
|
+
}
|
|
390
|
+
},
|
|
391
|
+
elevated: {
|
|
392
|
+
transition: 'box-shadow .28s cubic-bezier(.4,0,.2,1)',
|
|
393
|
+
boxShadow: 1,
|
|
394
|
+
'&:hover': {
|
|
395
|
+
boxShadow: 2
|
|
346
396
|
},
|
|
347
397
|
'&:disabled,&:disabled:hover,&:disabled:focus,&:disabled:active': {
|
|
348
398
|
boxShadow: 0
|
|
@@ -350,12 +400,9 @@ const theme = {
|
|
|
350
400
|
},
|
|
351
401
|
floating: {
|
|
352
402
|
transition: 'box-shadow .28s cubic-bezier(.4,0,.2,1)',
|
|
353
|
-
boxShadow:
|
|
354
|
-
':
|
|
355
|
-
boxShadow:
|
|
356
|
-
},
|
|
357
|
-
':active': {
|
|
358
|
-
boxShadow: 12
|
|
403
|
+
boxShadow: 3,
|
|
404
|
+
':hover': {
|
|
405
|
+
boxShadow: 4
|
|
359
406
|
},
|
|
360
407
|
'&:disabled,&:disabled:hover,&:disabled:focus,&:disabled:active': {
|
|
361
408
|
boxShadow: 0
|
|
@@ -365,13 +412,13 @@ const theme = {
|
|
|
365
412
|
overlays: {
|
|
366
413
|
transparent: {
|
|
367
414
|
hover: {
|
|
368
|
-
opacity: 0.
|
|
415
|
+
opacity: 0.08
|
|
369
416
|
},
|
|
370
417
|
focus: {
|
|
371
418
|
opacity: 0.12
|
|
372
419
|
},
|
|
373
420
|
pressed: {
|
|
374
|
-
opacity: 0.
|
|
421
|
+
opacity: 0.16
|
|
375
422
|
}
|
|
376
423
|
},
|
|
377
424
|
filled: {
|
|
@@ -379,10 +426,10 @@ const theme = {
|
|
|
379
426
|
opacity: 0.08
|
|
380
427
|
},
|
|
381
428
|
focus: {
|
|
382
|
-
opacity: 0.
|
|
429
|
+
opacity: 0.12
|
|
383
430
|
},
|
|
384
431
|
pressed: {
|
|
385
|
-
opacity: 0.
|
|
432
|
+
opacity: 0.16
|
|
386
433
|
}
|
|
387
434
|
}
|
|
388
435
|
}
|
|
@@ -395,45 +442,38 @@ const theme = {
|
|
|
395
442
|
py: 0,
|
|
396
443
|
px: 0,
|
|
397
444
|
height: "2rem",
|
|
398
|
-
borderRadius:
|
|
445
|
+
borderRadius: 'small',
|
|
399
446
|
outline: 'none',
|
|
400
447
|
transition: 'box-shadow .28s cubic-bezier(.4,0,.2,1)'
|
|
401
448
|
},
|
|
402
449
|
filled: {
|
|
403
|
-
variant: 'chips.variants.base'
|
|
450
|
+
variant: 'chips.variants.base',
|
|
451
|
+
boxShadow: 1,
|
|
452
|
+
':active:not([data-disabled])': {
|
|
453
|
+
boxShadow: 2
|
|
454
|
+
}
|
|
404
455
|
},
|
|
405
456
|
outlined: {
|
|
406
457
|
variant: 'chips.variants.base'
|
|
407
458
|
}
|
|
408
459
|
}
|
|
409
460
|
},
|
|
461
|
+
dialogs: {
|
|
462
|
+
variants: {
|
|
463
|
+
base: {
|
|
464
|
+
borderRadius: 'extra-large'
|
|
465
|
+
}
|
|
466
|
+
},
|
|
467
|
+
backgroundColorOverlay: 0.11
|
|
468
|
+
},
|
|
410
469
|
paper: {
|
|
411
470
|
overlays: {
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
'6': 0.11,
|
|
419
|
-
'7': 0.115,
|
|
420
|
-
'8': 0.12,
|
|
421
|
-
'9': 0.125,
|
|
422
|
-
'10': 0.13,
|
|
423
|
-
'11': 0.135,
|
|
424
|
-
'12': 0.14,
|
|
425
|
-
'13': 0.1425,
|
|
426
|
-
'14': 0.145,
|
|
427
|
-
'15': 0.1475,
|
|
428
|
-
'16': 0.15,
|
|
429
|
-
'17': 0.15125,
|
|
430
|
-
'18': 0.1525,
|
|
431
|
-
'19': 0.15375,
|
|
432
|
-
'20': 0.155,
|
|
433
|
-
'21': 0.15625,
|
|
434
|
-
'22': 0.1575,
|
|
435
|
-
'23': 0.15875,
|
|
436
|
-
'24': 0.16
|
|
471
|
+
0: 0,
|
|
472
|
+
1: 0.05,
|
|
473
|
+
2: 0.08,
|
|
474
|
+
3: 0.11,
|
|
475
|
+
4: 0.12,
|
|
476
|
+
5: 0.14
|
|
437
477
|
}
|
|
438
478
|
},
|
|
439
479
|
zIndices: {
|
|
@@ -496,7 +536,7 @@ const BoxBase = /*#__PURE__*/_styled__default['default']('div', process.env.NODE
|
|
|
496
536
|
shouldForwardProp: shouldForwardProp__default['default'],
|
|
497
537
|
target: "e25ivq30",
|
|
498
538
|
label: "BoxBase"
|
|
499
|
-
})("box-sizing:border-box;margin:0;min-width:0;", base, variant, sx, props => props.css, styledSystem.compose(styledSystem.space, styledSystem.layout, styledSystem.typography, styledSystem.color, styledSystem.flexbox, styledSystem.border, styledSystem.grid, styledSystem.background, styledSystem.position, styledSystem.shadow), process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,
|
|
539
|
+
})("box-sizing:border-box;margin:0;min-width:0;", base, variant, sx, props => props.css, styledSystem.compose(styledSystem.space, styledSystem.layout, styledSystem.typography, styledSystem.color, styledSystem.flexbox, styledSystem.border, styledSystem.grid, styledSystem.background, styledSystem.position, styledSystem.shadow), process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkJveC50c3giXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBNEZnQiIsImZpbGUiOiJCb3gudHN4Iiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgZm9yd2FyZFJlZiB9IGZyb20gJ3JlYWN0JztcbmltcG9ydCAqIGFzIFJlYWN0IGZyb20gJ3JlYWN0JztcbmltcG9ydCB0eXBlIHsgQ1NTT2JqZWN0IH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnO1xuaW1wb3J0IHN0eWxlZCBmcm9tICdAZW1vdGlvbi9zdHlsZWQnO1xuaW1wb3J0IHR5cGUge1xuICBTcGFjZVByb3BzLFxuICBMYXlvdXRQcm9wcyxcbiAgVHlwb2dyYXBoeVByb3BzLFxuICBDb2xvclByb3BzLFxuICBGbGV4Ym94UHJvcHMsXG4gIEJvcmRlclByb3BzLFxuICBHcmlkUHJvcHMsXG4gIEJhY2tncm91bmRQcm9wcyxcbiA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MRGl2RWxlbWVudCwgQm94UHJvcHM8SFRNTERpdkVsZW1lbnQ+PihcbiAgZnVuY3Rpb24gQm94KHByb3BzLCBmb3J3YXJkZWRSZWYpIHtcbiAgICBjb25zdCB0aGVtZSA9IHVzZVRoZW1lKCk7XG5cbiAgICByZXR1cm4gPEJveEJhc2UgcmVmPXtmb3J3YXJkZWRSZWZ9IHRoZW1lPXt0aGVtZX0gey4uLnByb3BzfSAvPjtcbiAgfVxuKSBhcyBhbnk7XG4iXX0= */");
|
|
500
540
|
|
|
501
541
|
const Box = /*#__PURE__*/react$1.forwardRef(function Box(props, forwardedRef) {
|
|
502
542
|
const theme = useTheme();
|
|
@@ -649,24 +689,28 @@ const alpha = (colorString, alphaValue) => theme => {
|
|
|
649
689
|
const rgb = polished.parseToRgb(color);
|
|
650
690
|
return `rgba(${rgb.red},${rgb.green},${rgb.blue},${alphaValue})`;
|
|
651
691
|
};
|
|
652
|
-
function
|
|
692
|
+
function getColorOverlay(theme, baseColor, overlayColor, overlayOpacity) {
|
|
693
|
+
baseColor = css.get(theme, `colors.${baseColor}`) || baseColor;
|
|
694
|
+
overlayColor = alpha(overlayColor, overlayOpacity)(theme);
|
|
695
|
+
return {
|
|
696
|
+
background: `linear-gradient(${overlayColor}, ${overlayColor}), ${baseColor}`
|
|
697
|
+
};
|
|
698
|
+
}
|
|
699
|
+
function getBackgroundOverlay(theme, backgroundOverlay, overlayColor = 'on.surface') {
|
|
653
700
|
if (Number(backgroundOverlay) <= 0) {
|
|
654
701
|
return {};
|
|
655
702
|
}
|
|
656
703
|
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
backgroundBlendMode: 'overlay',
|
|
660
|
-
backgroundRepeat: 'no-repeat'
|
|
661
|
-
};
|
|
704
|
+
const overlay = css.get(theme, `paper.overlays.${backgroundOverlay}`) || 0;
|
|
705
|
+
return getColorOverlay(theme, 'surface', overlayColor, overlay);
|
|
662
706
|
}
|
|
663
|
-
function getDarkThemeBackgroundOverlay(theme, backgroundOverlay) {
|
|
707
|
+
function getDarkThemeBackgroundOverlay(theme, backgroundOverlay, overlayColor = 'on.surface') {
|
|
664
708
|
if (Number(backgroundOverlay) <= 0) {
|
|
665
709
|
return {};
|
|
666
710
|
}
|
|
667
711
|
|
|
668
712
|
return {
|
|
669
|
-
[`.${DARK_THEME_CLASS} &, &.${DARK_THEME_CLASS}`]: _extends__default['default']({}, getBackgroundOverlay(theme, backgroundOverlay))
|
|
713
|
+
[`.${DARK_THEME_CLASS} &, &.${DARK_THEME_CLASS}`]: _extends__default['default']({}, getBackgroundOverlay(theme, backgroundOverlay, overlayColor))
|
|
670
714
|
};
|
|
671
715
|
}
|
|
672
716
|
|
|
@@ -675,10 +719,11 @@ const Paper = /*#__PURE__*/react$1.forwardRef(function Paper(props, forwardedRef
|
|
|
675
719
|
outlined,
|
|
676
720
|
elevation = 0,
|
|
677
721
|
backgroundOverlay,
|
|
722
|
+
darkThemeBackgroundOverlay,
|
|
678
723
|
__css = {},
|
|
679
724
|
children
|
|
680
725
|
} = props,
|
|
681
|
-
otherProps = _objectWithoutPropertiesLoose__default['default'](props, ["outlined", "elevation", "backgroundOverlay", "__css", "children"]);
|
|
726
|
+
otherProps = _objectWithoutPropertiesLoose__default['default'](props, ["outlined", "elevation", "backgroundOverlay", "darkThemeBackgroundOverlay", "__css", "children"]);
|
|
682
727
|
|
|
683
728
|
const theme = useTheme();
|
|
684
729
|
return /*#__PURE__*/jsxRuntime.jsx(Box, _extends__default['default']({
|
|
@@ -693,7 +738,7 @@ const Paper = /*#__PURE__*/react$1.forwardRef(function Paper(props, forwardedRef
|
|
|
693
738
|
borderStyle: 'solid',
|
|
694
739
|
borderWidth: "0.0625rem",
|
|
695
740
|
borderColor: alpha('on.surface', 0.12)
|
|
696
|
-
} : {},
|
|
741
|
+
} : {}, backgroundOverlay ? getBackgroundOverlay(theme, backgroundOverlay, 'primary') : {}, darkThemeBackgroundOverlay ? getDarkThemeBackgroundOverlay(theme, darkThemeBackgroundOverlay, 'primary') : {}, __css)
|
|
697
742
|
}, otherProps, {
|
|
698
743
|
children: children
|
|
699
744
|
}));
|
|
@@ -739,9 +784,8 @@ const AppBar = /*#__PURE__*/react$1.forwardRef(function AppBar(props, forwardedR
|
|
|
739
784
|
ref: forwardedRef,
|
|
740
785
|
theme: theme,
|
|
741
786
|
variant: "square",
|
|
742
|
-
backgroundOverlay: variantProp === 'default' ?
|
|
787
|
+
backgroundOverlay: elevation === 'elevated' && variantProp === 'default' ? css.get(theme, `appbar.elevations.${elevation}.boxShadow`, 2) : 0,
|
|
743
788
|
color: variantProp === 'default' || variantProp === 'transparent' ? 'on.surface' : `on.${variantProp}`,
|
|
744
|
-
elevation: elevation === 'elevated' ? css.get(theme, `appbar.elevations.${elevation}.boxShadow`, 4) : 0,
|
|
745
789
|
__css: _extends__default['default']({
|
|
746
790
|
boxSizing: 'border-box',
|
|
747
791
|
display: 'inline-flex',
|
|
@@ -823,13 +867,43 @@ const TransparentButton = /*#__PURE__*/_styled__default['default'](BaseButton, p
|
|
|
823
867
|
'&:disabled': {
|
|
824
868
|
color: alpha('on.surface', 0.38),
|
|
825
869
|
cursor: 'default'
|
|
870
|
+
},
|
|
871
|
+
'&:focus-visible': {
|
|
872
|
+
outline: 'none'
|
|
826
873
|
}
|
|
827
|
-
}),
|
|
828
|
-
|
|
874
|
+
}), ({
|
|
875
|
+
theme,
|
|
876
|
+
color = 'primary',
|
|
877
|
+
isGroupedButton = false
|
|
878
|
+
}) => isGroupedButton && {
|
|
879
|
+
'[data-button-group=""] &': {
|
|
880
|
+
borderColor: css.get(theme, `colors.${String(color)}`) || (typeof color === 'string' ? color : undefined),
|
|
881
|
+
':first-of-type': {
|
|
882
|
+
borderTopRightRadius: 0,
|
|
883
|
+
borderBottomRightRadius: 0,
|
|
884
|
+
borderRightStyle: 'solid',
|
|
885
|
+
borderRightWidth: "0.0625rem"
|
|
886
|
+
},
|
|
887
|
+
':not(:first-of-type):not(:last-of-type)': {
|
|
888
|
+
borderRadius: 0
|
|
889
|
+
},
|
|
890
|
+
':last-of-type': {
|
|
891
|
+
borderTopLeftRadius: 0,
|
|
892
|
+
borderBottomLeftRadius: 0,
|
|
893
|
+
borderLeftStyle: 'solid',
|
|
894
|
+
borderLeftWidth: "0.0625rem"
|
|
895
|
+
},
|
|
896
|
+
':last-of-type:nth-of-type(2)': {
|
|
897
|
+
borderLeftWidth: 0
|
|
898
|
+
}
|
|
899
|
+
}
|
|
900
|
+
}, process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlRyYW5zcGFyZW50QnV0dG9uLnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFRaUMiLCJmaWxlIjoiVHJhbnNwYXJlbnRCdXR0b24udHN4Iiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHN0eWxlZCBmcm9tICdAZW1vdGlvbi9zdHlsZWQnO1xuaW1wb3J0IHsgZ2V0LCBjc3MgfSBmcm9tICdAc3R5bGVkLXN5c3RlbS9jc3MnO1xuaW1wb3J0IHsgcmVtIH0gZnJvbSAncG9saXNoZWQnO1xuXG5pbXBvcnQgeyBCYXNlQnV0dG9uIH0gZnJvbSAnLi9CYXNlQnV0dG9uJztcbmltcG9ydCB0eXBlIHsgVGhlbWUgfSBmcm9tICcuLi90aGVtZSc7XG5pbXBvcnQgeyBhbHBoYSB9IGZyb20gJy4uL2NvbG9yJztcblxuZXhwb3J0IGNvbnN0IFRyYW5zcGFyZW50QnV0dG9uID0gc3R5bGVkKEJhc2VCdXR0b24pKFxuICAoeyB0aGVtZSwgY29sb3IgPSAncHJpbWFyeScgfSkgPT5cbiAgICBjc3Moe1xuICAgICAgYmFja2dyb3VuZENvbG9yOiAndHJhbnNwYXJlbnQnLFxuICAgICAgY29sb3I6IGdldCh0aGVtZSwgYGNvbG9ycy4ke1N0cmluZyhjb2xvcil9YCkgfHwgY29sb3IsXG4gICAgICAnJjpkaXNhYmxlZCc6IHtcbiAgICAgICAgY29sb3I6IGFscGhhKCdvbi5zdXJmYWNlJywgMC4zOCksXG4gICAgICAgIGN1cnNvcjogJ2RlZmF1bHQnLFxuICAgICAgfSxcbiAgICAgICcmOmZvY3VzLXZpc2libGUnOiB7XG4gICAgICAgIG91dGxpbmU6ICdub25lJyxcbiAgICAgIH0sXG4gICAgfSksXG4gICh7IHRoZW1lLCBjb2xvciA9ICdwcmltYXJ5JywgaXNHcm91cGVkQnV0dG9uID0gZmFsc2UgfSkgPT5cbiAgICBpc0dyb3VwZWRCdXR0b24gJiYge1xuICAgICAgJ1tkYXRhLWJ1dHRvbi1ncm91cD1cIlwiXSAmJzoge1xuICAgICAgICBib3JkZXJDb2xvcjpcbiAgICAgICAgICBnZXQodGhlbWUsIGBjb2xvcnMuJHtTdHJpbmcoY29sb3IpfWApIHx8XG4gICAgICAgICAgKHR5cGVvZiBjb2xvciA9PT0gJ3N0cmluZycgPyBjb2xvciA6IHVuZGVmaW5lZCksXG4gICAgICAgICc6Zmlyc3Qtb2YtdHlwZSc6IHtcbiAgICAgICAgICBib3JkZXJUb3BSaWdodFJhZGl1czogMCxcbiAgICAgICAgICBib3JkZXJCb3R0b21SaWdodFJhZGl1czogMCxcbiAgICAgICAgICBib3JkZXJSaWdodFN0eWxlOiAnc29saWQnLFxuICAgICAgICAgIGJvcmRlclJpZ2h0V2lkdGg6IHJlbSgxKSxcbiAgICAgICAgfSxcbiAgICAgICAgJzpub3QoOmZpcnN0LW9mLXR5cGUpOm5vdCg6bGFzdC1vZi10eXBlKSc6IHtcbiAgICAgICAgICBib3JkZXJSYWRpdXM6IDAsXG4gICAgICAgIH0sXG4gICAgICAgICc6bGFzdC1vZi10eXBlJzoge1xuICAgICAgICAgIGJvcmRlclRvcExlZnRSYWRpdXM6IDAsXG4gICAgICAgICAgYm9yZGVyQm90dG9tTGVmdFJhZGl1czogMCxcbiAgICAgICAgICBib3JkZXJMZWZ0U3R5bGU6ICdzb2xpZCcsXG4gICAgICAgICAgYm9yZGVyTGVmdFdpZHRoOiByZW0oMSksXG4gICAgICAgIH0sXG4gICAgICAgICc6bGFzdC1vZi10eXBlOm50aC1vZi10eXBlKDIpJzoge1xuICAgICAgICAgIGJvcmRlckxlZnRXaWR0aDogMCxcbiAgICAgICAgfSxcbiAgICAgIH0sXG4gICAgfVxuKTtcblxuZXhwb3J0IGZ1bmN0aW9uIGdldFJpcHBsZVByb3BlcnRpZXModGhlbWU6IFRoZW1lKSB7XG4gIHJldHVybiB7XG4gICAgaG92ZXJPcGFjaXR5OiBnZXQodGhlbWUsIGBidXR0b25zLm92ZXJsYXlzLnRyYW5zcGFyZW50LmhvdmVyLm9wYWNpdHlgKSxcbiAgICBmb2N1c09wYWNpdHk6IGdldCh0aGVtZSwgYGJ1dHRvbnMub3ZlcmxheXMudHJhbnNwYXJlbnQuZm9jdXMub3BhY2l0eWApLFxuICAgIHByZXNzZWRPcGFjaXR5OiBnZXQodGhlbWUsIGBidXR0b25zLm92ZXJsYXlzLnRyYW5zcGFyZW50LnByZXNzZWQub3BhY2l0eWApLFxuICAgIHJpcHBsZUVuYWJsZWQ6IGZhbHNlLFxuICB9O1xufVxuIl19 */");
|
|
901
|
+
function getRippleProperties$3(theme) {
|
|
829
902
|
return {
|
|
830
903
|
hoverOpacity: css.get(theme, `buttons.overlays.transparent.hover.opacity`),
|
|
831
904
|
focusOpacity: css.get(theme, `buttons.overlays.transparent.focus.opacity`),
|
|
832
|
-
pressedOpacity: css.get(theme, `buttons.overlays.transparent.pressed.opacity`)
|
|
905
|
+
pressedOpacity: css.get(theme, `buttons.overlays.transparent.pressed.opacity`),
|
|
906
|
+
rippleEnabled: false
|
|
833
907
|
};
|
|
834
908
|
}
|
|
835
909
|
|
|
@@ -849,20 +923,59 @@ const FilledButton = /*#__PURE__*/_styled__default['default'](BaseButton, proces
|
|
|
849
923
|
background: `linear-gradient(${css.get(theme, 'colors.surface')}, ${css.get(theme, 'colors.surface')}), ${alpha('on.surface', 0.12)(theme)}`,
|
|
850
924
|
backgroundBlendMode: 'overlay',
|
|
851
925
|
cursor: 'default'
|
|
926
|
+
},
|
|
927
|
+
'&:focus-visible': {
|
|
928
|
+
outlineColor: css.get(theme, `colors.${String(color)}`) || color,
|
|
929
|
+
outlineWidth: 2,
|
|
930
|
+
outlineStyle: 'auto',
|
|
931
|
+
outlineOffset: '2px'
|
|
852
932
|
}
|
|
853
933
|
}), ({
|
|
854
934
|
color = 'primary',
|
|
855
935
|
elevation = 'none',
|
|
856
936
|
theme
|
|
857
|
-
}) => color === 'surface' && _extends__default['default']({},
|
|
858
|
-
|
|
937
|
+
}) => color === 'surface' && _extends__default['default']({}, getBackgroundOverlay(theme, css.get(theme, `buttons.elevations.${elevation}.boxShadow`, 0), 'primary')), ({
|
|
938
|
+
color = 'primary',
|
|
939
|
+
theme,
|
|
940
|
+
isGroupedButton = false
|
|
941
|
+
}) => isGroupedButton && {
|
|
942
|
+
'[data-button-group=""] &': {
|
|
943
|
+
borderColor: css.get(theme, `colors.on.${String(color)}`) || (typeof color === 'string' ? polished.readableColor(color) : undefined),
|
|
944
|
+
':first-of-type': {
|
|
945
|
+
borderTopRightRadius: 0,
|
|
946
|
+
borderBottomRightRadius: 0,
|
|
947
|
+
borderRightStyle: 'solid',
|
|
948
|
+
borderRightWidth: "0.0625rem"
|
|
949
|
+
},
|
|
950
|
+
':not(:first-of-type):not(:last-of-type)': {
|
|
951
|
+
borderRadius: 0
|
|
952
|
+
},
|
|
953
|
+
':last-of-type': {
|
|
954
|
+
borderTopLeftRadius: 0,
|
|
955
|
+
borderBottomLeftRadius: 0,
|
|
956
|
+
borderLeftStyle: 'solid',
|
|
957
|
+
borderLeftWidth: "0.0625rem"
|
|
958
|
+
},
|
|
959
|
+
':last-of-type:nth-of-type(2)': {
|
|
960
|
+
borderLeftWidth: 0
|
|
961
|
+
}
|
|
962
|
+
}
|
|
963
|
+
}, process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data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ZXIub3BhY2l0eWApLFxuICAgIGZvY3VzT3BhY2l0eTogZ2V0KHRoZW1lLCBgYnV0dG9ucy5vdmVybGF5cy5maWxsZWQuZm9jdXMub3BhY2l0eWApLFxuICAgIHByZXNzZWRPcGFjaXR5OiBnZXQodGhlbWUsIGBidXR0b25zLm92ZXJsYXlzLmZpbGxlZC5wcmVzc2VkLm9wYWNpdHlgKSxcbiAgICByaXBwbGVFbmFibGVkOiBmYWxzZSxcbiAgfTtcbn1cbiJdfQ== */");
|
|
964
|
+
function getRippleProperties$2(theme) {
|
|
859
965
|
return {
|
|
860
966
|
hoverOpacity: css.get(theme, `buttons.overlays.filled.hover.opacity`),
|
|
861
967
|
focusOpacity: css.get(theme, `buttons.overlays.filled.focus.opacity`),
|
|
862
|
-
pressedOpacity: css.get(theme, `buttons.overlays.filled.pressed.opacity`)
|
|
968
|
+
pressedOpacity: css.get(theme, `buttons.overlays.filled.pressed.opacity`),
|
|
969
|
+
rippleEnabled: false
|
|
863
970
|
};
|
|
864
971
|
}
|
|
865
972
|
|
|
973
|
+
function getRippleProperties$1(theme) {
|
|
974
|
+
return _extends__default['default']({}, getRippleProperties$2(theme), {
|
|
975
|
+
rippleEnabled: true
|
|
976
|
+
});
|
|
977
|
+
}
|
|
978
|
+
|
|
866
979
|
const OutlinedButton = /*#__PURE__*/_styled__default['default'](TransparentButton, process.env.NODE_ENV === "production" ? {
|
|
867
980
|
target: "eo0fwlz0"
|
|
868
981
|
} : {
|
|
@@ -871,17 +984,48 @@ const OutlinedButton = /*#__PURE__*/_styled__default['default'](TransparentButto
|
|
|
871
984
|
})(css.css({
|
|
872
985
|
borderStyle: 'solid',
|
|
873
986
|
borderWidth: "0.0625rem",
|
|
874
|
-
borderColor:
|
|
987
|
+
borderColor: 'outline',
|
|
988
|
+
boxShadow: 0,
|
|
989
|
+
'&:focus,:&active,:&hover': {
|
|
990
|
+
boxShadow: 0
|
|
991
|
+
},
|
|
992
|
+
'&:focus-visible,&:active': {
|
|
993
|
+
borderColor: 'currentColor'
|
|
994
|
+
},
|
|
875
995
|
'&:disabled': {
|
|
876
996
|
color: alpha('on.surface', 0.38),
|
|
877
997
|
borderColor: alpha('on.surface', 0.12),
|
|
878
998
|
cursor: 'default'
|
|
879
999
|
}
|
|
880
|
-
}),
|
|
1000
|
+
}), ({
|
|
1001
|
+
isGroupedButton = false
|
|
1002
|
+
}) => isGroupedButton && {
|
|
1003
|
+
'[data-button-group=""] &': {
|
|
1004
|
+
':first-of-type': {
|
|
1005
|
+
borderTopRightRadius: 0,
|
|
1006
|
+
borderBottomRightRadius: 0
|
|
1007
|
+
},
|
|
1008
|
+
':not(:first-of-type):not(:last-of-type)': {
|
|
1009
|
+
borderRadius: 0,
|
|
1010
|
+
borderRightWidth: 0,
|
|
1011
|
+
borderLeftWidth: 0
|
|
1012
|
+
},
|
|
1013
|
+
':last-of-type': {
|
|
1014
|
+
borderTopLeftRadius: 0,
|
|
1015
|
+
borderBottomLeftRadius: 0,
|
|
1016
|
+
borderLeftStyle: 'solid',
|
|
1017
|
+
borderLeftWidth: "0.0625rem"
|
|
1018
|
+
},
|
|
1019
|
+
':last-of-type:nth-of-type(2)': {
|
|
1020
|
+
borderLeftWidth: 0
|
|
1021
|
+
}
|
|
1022
|
+
}
|
|
1023
|
+
}, process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIk91dGxpbmVkQnV0dG9uLnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFPOEIiLCJmaWxlIjoiT3V0bGluZWRCdXR0b24udHN4Iiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHN0eWxlZCBmcm9tICdAZW1vdGlvbi9zdHlsZWQnO1xuaW1wb3J0IHsgY3NzIH0gZnJvbSAnQHN0eWxlZC1zeXN0ZW0vY3NzJztcbmltcG9ydCB7IHJlbSB9IGZyb20gJ3BvbGlzaGVkJztcblxua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3JkZXJSYWRpdXM6IDAsXG4gICAgICAgICAgYm9yZGVyUmlnaHRXaWR0aDogMCxcbiAgICAgICAgICBib3JkZXJMZWZ0V2lkdGg6IDAsXG4gICAgICAgIH0sXG4gICAgICAgICc6bGFzdC1vZi10eXBlJzoge1xuICAgICAgICAgIGJvcmRlclRvcExlZnRSYWRpdXM6IDAsXG4gICAgICAgICAgYm9yZGVyQm90dG9tTGVmdFJhZGl1czogMCxcbiAgICAgICAgICBib3JkZXJMZWZ0U3R5bGU6ICdzb2xpZCcsXG4gICAgICAgICAgYm9yZGVyTGVmdFdpZHRoOiByZW0oMSksXG4gICAgICAgIH0sXG4gICAgICAgICc6bGFzdC1vZi10eXBlOm50aC1vZi10eXBlKDIpJzoge1xuICAgICAgICAgIGJvcmRlckxlZnRXaWR0aDogMCxcbiAgICAgICAgfSxcbiAgICAgIH0sXG4gICAgfVxuKTtcbiJdfQ== */");
|
|
881
1024
|
|
|
882
1025
|
function getRippleProperties(theme) {
|
|
883
|
-
return _extends__default['default']({}, getRippleProperties$
|
|
884
|
-
center: true
|
|
1026
|
+
return _extends__default['default']({}, getRippleProperties$2(theme), {
|
|
1027
|
+
center: true,
|
|
1028
|
+
rippleEnabled: true
|
|
885
1029
|
});
|
|
886
1030
|
}
|
|
887
1031
|
|
|
@@ -907,7 +1051,7 @@ const rippleStyle = ({
|
|
|
907
1051
|
backgroundColor: `var(${RIPPLE_BACKGROUND_COLOR})`,
|
|
908
1052
|
transformOrigin: 'center center',
|
|
909
1053
|
opacity: 0,
|
|
910
|
-
borderRadius: '
|
|
1054
|
+
borderRadius: '999999px',
|
|
911
1055
|
animation,
|
|
912
1056
|
willChange: 'opacity,transform'
|
|
913
1057
|
});
|
|
@@ -916,7 +1060,7 @@ const Ripple = _styled__default['default']("div", process.env.NODE_ENV === "prod
|
|
|
916
1060
|
} : {
|
|
917
1061
|
target: "ebk8cct0",
|
|
918
1062
|
label: "Ripple"
|
|
919
|
-
})(rippleStyle, "pointer-events:none;" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,
|
|
1063
|
+
})(rippleStyle, "pointer-events:none;" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlJpcHBsZS50c3giXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBOEJzQiIsImZpbGUiOiJSaXBwbGUudHN4Iiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHN0eWxlZCBmcm9tICdAZW1vdGlvbi9zdHlsZWQnO1xuaW1wb3J0IHR5cGUgeyBDU1NPYmplY3QgfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5cbmltcG9ydCB7XG4gIFJJUFBMRV9CQUNLR1JPVU5EX0NPTE9SLFxuICBSSVBQTEVfU0laRSxcbiAgUklQUExFX1BPU0lUSU9OLFxufSBmcm9tICcuL2NvbnN0YW50cyc7XG5cbmV4cG9ydCBjb25zdCByaXBwbGVTdHlsZSA9ICh7XG4gIGFuaW1hdGlvbixcbn06IHtcbiAgYW5pbWF0aW9uPzogc3RyaW5nO1xufSk6IENTU09iamVjdCA9PiAoe1xuICBwb3NpdGlvbjogJ2Fic29sdXRlJyxcbiAgYm94U2l6aW5nOiAnY29udGVudC1ib3gnLFxuICBkaXNwbGF5OiAnYmxvY2snLFxuICBjb250ZW50OiAnXCJcIicsXG4gIHdpZHRoOiBgdmFyKCR7UklQUExFX1NJWkV9KWAsXG4gIGhlaWdodDogYHZhcigke1JJUFBMRV9TSVpFfSlgLFxuICB0b3A6IGB2YXIoJHtSSVBQTEVfUE9TSVRJT059KWAsXG4gIGxlZnQ6IGB2YXIoJHtSSVBQTEVfUE9TSVRJT059KWAsXG4gIGJhY2tncm91bmRDb2xvcjogYHZhcigke1JJUFBMRV9CQUNLR1JPVU5EX0NPTE9SfSlgLFxuICB0cmFuc2Zvcm1PcmlnaW46ICdjZW50ZXIgY2VudGVyJyxcbiAgb3BhY2l0eTogMCxcbiAgYm9yZGVyUmFkaXVzOiAnOTk5OTk5cHgnLFxuICBhbmltYXRpb24sXG4gIHdpbGxDaGFuZ2U6ICdvcGFjaXR5LHRyYW5zZm9ybScsXG59KTtcblxuZXhwb3J0IGNvbnN0IFJpcHBsZSA9IHN0eWxlZC5kaXY8eyBhbmltYXRpb24/OiBzdHJpbmcgfT4ocmlwcGxlU3R5bGUsIHtcbiAgcG9pbnRlckV2ZW50czogJ25vbmUnLFxufSk7XG4iXX0= */"));
|
|
920
1064
|
|
|
921
1065
|
const radiusIn = react.keyframes({
|
|
922
1066
|
from: {
|
|
@@ -1168,9 +1312,10 @@ function useRippleSurface(opts) {
|
|
|
1168
1312
|
onKeyDown,
|
|
1169
1313
|
onPointerDown,
|
|
1170
1314
|
style = {},
|
|
1171
|
-
disabled
|
|
1315
|
+
disabled,
|
|
1316
|
+
rippleEnabled = true
|
|
1172
1317
|
} = opts,
|
|
1173
|
-
rippleProps = _objectWithoutPropertiesLoose__default['default'](opts, ["onKeyDown", "onPointerDown", "style", "disabled"]);
|
|
1318
|
+
rippleProps = _objectWithoutPropertiesLoose__default['default'](opts, ["onKeyDown", "onPointerDown", "style", "disabled", "rippleEnabled"]);
|
|
1174
1319
|
|
|
1175
1320
|
const theme = useTheme();
|
|
1176
1321
|
rippleColor = css.get(theme, `colors.${rippleColor}`) || rippleColor;
|
|
@@ -1191,7 +1336,8 @@ function useRippleSurface(opts) {
|
|
|
1191
1336
|
backgroundColor: rippleColor,
|
|
1192
1337
|
disabled
|
|
1193
1338
|
}, rippleProps));
|
|
1194
|
-
|
|
1339
|
+
|
|
1340
|
+
const css$1 = _extends__default['default']({
|
|
1195
1341
|
overflow: 'hidden',
|
|
1196
1342
|
position: 'relative',
|
|
1197
1343
|
cursor: 'pointer',
|
|
@@ -1216,20 +1362,40 @@ function useRippleSurface(opts) {
|
|
|
1216
1362
|
'&:hover::before': {
|
|
1217
1363
|
opacity: hoverOpacity
|
|
1218
1364
|
},
|
|
1219
|
-
'&:focus::before': {
|
|
1365
|
+
'&:focus-visible::before': {
|
|
1220
1366
|
opacity: focusOpacity
|
|
1367
|
+
}
|
|
1368
|
+
}, !rippleEnabled && {
|
|
1369
|
+
'&:active::before': {
|
|
1370
|
+
opacity: pressedOpacity
|
|
1371
|
+
}
|
|
1372
|
+
}, {
|
|
1373
|
+
'&[aria-pressed="true"]::before': {
|
|
1374
|
+
opacity: baseOpacity + pressedOpacity
|
|
1221
1375
|
},
|
|
1222
|
-
|
|
1376
|
+
'&[aria-pressed="true"]:hover::before': {
|
|
1377
|
+
opacity: pressedOpacity + hoverOpacity
|
|
1378
|
+
},
|
|
1379
|
+
'&[aria-pressed="true"]:focus-visible::before': {
|
|
1380
|
+
opacity: pressedOpacity + focusOpacity
|
|
1381
|
+
}
|
|
1382
|
+
}, !rippleEnabled && {
|
|
1383
|
+
'&[aria-pressed="true"]:active::before': {
|
|
1384
|
+
opacity: pressedOpacity + pressedOpacity
|
|
1385
|
+
}
|
|
1386
|
+
}, {
|
|
1387
|
+
['&:disabled::before,&:disabled:hover::before,&:disabled:focus::before,&:disabled:active::before,' + '&[data-disabled]::before,&[data-disabled]:hover::before,&[data-disabled]:focus::before,' + '&[data-disabled]:active::before,&:disabled[aria-pressed="true"]::before']: {
|
|
1223
1388
|
opacity: 0
|
|
1224
1389
|
},
|
|
1225
1390
|
'&:disabled,&[data-disabled]': {
|
|
1226
1391
|
cursor: 'default'
|
|
1227
|
-
}
|
|
1228
|
-
|
|
1392
|
+
}
|
|
1393
|
+
}, rippleEnabled && {
|
|
1229
1394
|
'&::after': _extends__default['default']({}, rippleStyle({
|
|
1230
1395
|
animation
|
|
1231
1396
|
}))
|
|
1232
|
-
};
|
|
1397
|
+
});
|
|
1398
|
+
|
|
1233
1399
|
return {
|
|
1234
1400
|
style: _extends__default['default']({}, animationStyle, style),
|
|
1235
1401
|
onKeyDown: core.wrapEvent(onKeyDown, handleKeyDown),
|
|
@@ -1245,7 +1411,7 @@ const RippleBox = /*#__PURE__*/react$1.forwardRef(function RippleBox(props, forw
|
|
|
1245
1411
|
// eslint-disable-line @typescript-eslint/no-unused-vars
|
|
1246
1412
|
disabled
|
|
1247
1413
|
} = props,
|
|
1248
|
-
otherProps = _objectWithoutPropertiesLoose__default['default'](props, ["as", "__css", "onKeyDown", "onPointerDown", "baseOpacity", "hoverOpacity", "focusOpacity", "pressedOpacity", "rippleColor", "center", "disabled", "style"]);
|
|
1414
|
+
otherProps = _objectWithoutPropertiesLoose__default['default'](props, ["as", "__css", "onKeyDown", "onPointerDown", "baseOpacity", "hoverOpacity", "focusOpacity", "pressedOpacity", "rippleColor", "center", "disabled", "rippleEnabled", "style"]);
|
|
1249
1415
|
|
|
1250
1416
|
const _useRippleSurface = useRippleSurface(props),
|
|
1251
1417
|
{
|
|
@@ -1261,33 +1427,50 @@ const RippleBox = /*#__PURE__*/react$1.forwardRef(function RippleBox(props, forw
|
|
|
1261
1427
|
}, otherProps, rippleProps));
|
|
1262
1428
|
});
|
|
1263
1429
|
|
|
1430
|
+
const ButtonGroupContext = /*#__PURE__*/react$1.createContext(null);
|
|
1431
|
+
ButtonGroupContext.displayName = 'ButtonGroupContext';
|
|
1432
|
+
const useButtonGroupContext = () => react$1.useContext(ButtonGroupContext);
|
|
1433
|
+
|
|
1264
1434
|
const componentMapping = {
|
|
1265
1435
|
text: TransparentButton,
|
|
1266
1436
|
outlined: OutlinedButton,
|
|
1267
1437
|
filled: FilledButton,
|
|
1268
1438
|
fab: FilledButton,
|
|
1269
|
-
'fab-extended': FilledButton,
|
|
1270
1439
|
'fab-mini': FilledButton,
|
|
1440
|
+
'fab-large': FilledButton,
|
|
1441
|
+
'fab-extended': FilledButton,
|
|
1271
1442
|
icon: TransparentButton
|
|
1272
1443
|
};
|
|
1273
1444
|
const rippleMapping = {
|
|
1274
|
-
text: getRippleProperties$
|
|
1275
|
-
outlined: getRippleProperties$
|
|
1276
|
-
filled: getRippleProperties$
|
|
1445
|
+
text: getRippleProperties$3,
|
|
1446
|
+
outlined: getRippleProperties$3,
|
|
1447
|
+
filled: getRippleProperties$2,
|
|
1277
1448
|
fab: getRippleProperties$1,
|
|
1278
|
-
'fab-extended': getRippleProperties$1,
|
|
1279
1449
|
'fab-mini': getRippleProperties$1,
|
|
1450
|
+
'fab-large': getRippleProperties$1,
|
|
1451
|
+
'fab-extended': getRippleProperties$2,
|
|
1280
1452
|
icon: getRippleProperties
|
|
1281
1453
|
};
|
|
1454
|
+
|
|
1455
|
+
function getFallbackElevation(variant = 'text') {
|
|
1456
|
+
if (variant === 'text' || variant === 'outlined' || variant === 'icon') {
|
|
1457
|
+
return 'none';
|
|
1458
|
+
}
|
|
1459
|
+
|
|
1460
|
+
return 'default';
|
|
1461
|
+
}
|
|
1462
|
+
|
|
1282
1463
|
const Button = /*#__PURE__*/react$1.forwardRef(function Button(props, forwardedRef) {
|
|
1464
|
+
const buttonGroup = useButtonGroupContext();
|
|
1465
|
+
|
|
1283
1466
|
const {
|
|
1284
1467
|
children,
|
|
1285
|
-
variant = 'text',
|
|
1468
|
+
variant = (buttonGroup == null ? void 0 : buttonGroup.variant) || 'text',
|
|
1286
1469
|
onPointerDown: onPointerDownProp,
|
|
1287
1470
|
onKeyDown: onKeyDownProp,
|
|
1288
1471
|
color = 'primary',
|
|
1289
1472
|
disabled = false,
|
|
1290
|
-
elevation =
|
|
1473
|
+
elevation = getFallbackElevation(props.variant),
|
|
1291
1474
|
style: styleProp
|
|
1292
1475
|
} = props,
|
|
1293
1476
|
otherProps = _objectWithoutPropertiesLoose__default['default'](props, ["children", "variant", "onPointerDown", "onKeyDown", "color", "disabled", "elevation", "style"]);
|
|
@@ -1309,12 +1492,36 @@ const Button = /*#__PURE__*/react$1.forwardRef(function Button(props, forwardedR
|
|
|
1309
1492
|
disabled: disabled,
|
|
1310
1493
|
"aria-disabled": disabled ? 'true' : undefined,
|
|
1311
1494
|
color: color,
|
|
1312
|
-
elevation: elevation
|
|
1495
|
+
elevation: elevation,
|
|
1496
|
+
isGroupedButton: Boolean(buttonGroup)
|
|
1313
1497
|
}, rippleProps, otherProps, {
|
|
1314
1498
|
children: children
|
|
1315
1499
|
}));
|
|
1316
1500
|
});
|
|
1317
1501
|
|
|
1502
|
+
const ButtonGroup = /*#__PURE__*/react$1.forwardRef(function ButtonGroup(props, forwardedRef) {
|
|
1503
|
+
const {
|
|
1504
|
+
as: Comp = 'div',
|
|
1505
|
+
variant = 'text',
|
|
1506
|
+
direction = 'row'
|
|
1507
|
+
} = props,
|
|
1508
|
+
otherProps = _objectWithoutPropertiesLoose__default['default'](props, ["as", "variant", "direction"]);
|
|
1509
|
+
|
|
1510
|
+
const value = react$1.useMemo(() => ({
|
|
1511
|
+
direction,
|
|
1512
|
+
variant
|
|
1513
|
+
}), [direction, variant]);
|
|
1514
|
+
return /*#__PURE__*/jsxRuntime.jsx(ButtonGroupContext.Provider, {
|
|
1515
|
+
value: value,
|
|
1516
|
+
children: /*#__PURE__*/jsxRuntime.jsx(Comp, _extends__default['default']({
|
|
1517
|
+
ref: forwardedRef,
|
|
1518
|
+
role: "group",
|
|
1519
|
+
"data-button-group": "",
|
|
1520
|
+
"data-button-group-direction": direction
|
|
1521
|
+
}, otherProps))
|
|
1522
|
+
});
|
|
1523
|
+
});
|
|
1524
|
+
|
|
1318
1525
|
const AppBarButton = /*#__PURE__*/react$1.forwardRef(function AppBarButton(props, forwardedRef) {
|
|
1319
1526
|
const {
|
|
1320
1527
|
variant = 'icon'
|
|
@@ -1385,7 +1592,7 @@ const Alert = /*#__PURE__*/react$1.forwardRef(function Alert(props, forwardedRef
|
|
|
1385
1592
|
__css: _extends__default['default']({
|
|
1386
1593
|
p: 3,
|
|
1387
1594
|
bg: alpha(color, 0.1),
|
|
1388
|
-
borderRadius:
|
|
1595
|
+
borderRadius: 'extra-small',
|
|
1389
1596
|
borderColor: alpha(color, 0.2),
|
|
1390
1597
|
borderStyle: 'solid',
|
|
1391
1598
|
borderWidth: "0.0625rem"
|
|
@@ -1532,7 +1739,7 @@ const BaseLine = () => {
|
|
|
1532
1739
|
'[hidden]': {
|
|
1533
1740
|
display: 'none'
|
|
1534
1741
|
}
|
|
1535
|
-
}, process.env.NODE_ENV === "production" ? "" : ";label:BaseLine;", process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,
|
|
1742
|
+
}, process.env.NODE_ENV === "production" ? "" : ";label:BaseLine;", process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkJhc2VMaW5lLnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFZUSIsImZpbGUiOiJCYXNlTGluZS50c3giLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBHbG9iYWwgfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5pbXBvcnQgeyBjc3MsIGdldCB9IGZyb20gJ0BzdHlsZWQtc3lzdGVtL2Nzcyc7XG5cbmltcG9ydCB7IHVzZVRoZW1lIH0gZnJvbSAnLi4vdGhlbWUnO1xuXG5leHBvcnQgY29uc3QgQmFzZUxpbmUgPSAoKSA9PiB7XG4gIGNvbnN0IHRoZW1lID0gdXNlVGhlbWUoKTtcbiAgcmV0dXJuIChcbiAgICA8PlxuICAgICAgPEdsb2JhbCBzdHlsZXM9e2NzcyhnZXQodGhlbWUsICdzdHlsZXMucm9vdCcsIHt9KSl9IC8+XG4gICAgICB7Lyogbm9ybWFsaXplLmNzcyAqL31cbiAgICAgIDxHbG9iYWxcbiAgICAgICAgc3R5bGVzPXt7XG4gICAgICAgICAgaHRtbDogeyBsaW5lSGVpZ2h0OiAnMS4xNScsIFdlYmtpdFRleHRTaXplQWRqdXN0OiAnMTAwJScgfSxcbiAgICAgICAgICBib2R5OiB7XG4gICAgICAgICAgICBtYXJnaW46ICcwJyxcbiAgICAgICAgICB9LFxuICAgICAgICAgIG1haW46IHsgZGlzcGxheTogJ2Jsb2NrJyB9LFxuICAgICAgICAgIGgxOiB7IGZvbnRTaXplOiAnMmVtJywgbWFyZ2luOiAnMC42N2VtIDAnIH0sXG4gICAgICAgICAgaHI6IHsgYm94U2l6aW5nOiAnY29udGVudC1ib3gnLCBoZWlnaHQ6ICcwJywgb3ZlcmZsb3c6ICd2aXNpYmxlJyB9LFxuICAgICAgICAgIHByZTogeyBmb250RmFtaWx5OiAnbW9ub3NwYWNlLCBtb25vc3BhY2UnLCBmb250U2l6ZTogJzFlbScgfSxcbiAgICAgICAgICBhOiB7IGJhY2tncm91bmRDb2xvcjogJ3RyYW5zcGFyZW50JyB9LFxuICAgICAgICAgICdhYmJyW3RpdGxlXSc6IHtcbiAgICAgICAgICAgIGJvcmRlckJvdHRvbTogJ25vbmUnLFxuICAgICAgICAgICAgdGV4dERlY29yYXRpb246IFsndW5kZXJsaW5lJywgJ3VuZGVybGluZSBkb3R0ZWQnXSxcbiAgICAgICAgICB9LFxuICAgICAgICAgICdiLHN0cm9uZyc6IHsgZm9udFdlaWdodDogJ2JvbGRlcicgfSxcbiAgICAgICAgICAnY29kZSxrYmQsc2FtcCc6IHtcbiAgICAgICAgICAgIGZvbnRGYW1pbHk6ICdtb25vc3BhY2UsIG1vbm9zcGFjZScsXG4gICAgICAgICAgICBmb250U2l6ZTogJzFlbScsXG4gICAgICAgICAgfSxcbiAgICAgICAgICBzbWFsbDogeyBmb250U2l6ZTogJzgwJScgfSxcbiAgICAgICAgICAnc3ViLHN1cCc6IHtcbiAgICAgICAgICAgIGZvbnRTaXplOiAnNzUlJyxcbiAgICAgICAgICAgIGxpbmVIZWlnaHQ6ICcwJyxcbiAgICAgICAgICAgIHBvc2l0aW9uOiAncmVsYXRpdmUnLFxuICAgICAgICAgICAgdmVydGljYWxBbGlnbjogJ2Jhc2VsaW5lJyxcbiAgICAgICAgICB9LFxuICAgICAgICAgIHN1YjogeyBib3R0b206ICctMC4yNWVtJyB9LFxuICAgICAgICAgIHN1cDogeyB0b3A6ICctMC41ZW0nIH0sXG4gICAgICAgICAgaW1nOiB7IGJvcmRlclN0eWxlOiAnbm9uZScgfSxcbiAgICAgICAgICAnYnV0dG9uLGlucHV0LG9wdGdyb3VwLHNlbGVjdCx0ZXh0YXJlYSc6IHtcbiAgICAgICAgICAgIGZvbnRGYW1pbHk6ICdpbmhlcml0JyxcbiAgICAgICAgICAgIGZvbnRTaXplOiAnMTAwJScsXG4gICAgICAgICAgICBsaW5lSGVpZ2h0OiAnMS4xNScsXG4gICAgICAgICAgICBtYXJnaW46ICcwJyxcbiAgICAgICAgICB9LFxuICAgICAgICAgICdidXR0b24saW5wdXQnOiB7IG92ZXJmbG93OiAndmlzaWJsZScgfSxcbiAgICAgICAgICAnYnV0dG9uLHNlbGVjdCc6IHsgdGV4dFRyYW5zZm9ybTogJ25vbmUnIH0sXG4gICAgICAgICAgJ2J1dHRvbixbdHlwZT1cImJ1dHRvblwiXSxbdHlwZT1cInJlc2V0XCJdLFt0eXBlPVwic3VibWl0XCJdJzoge1xuICAgICAgICAgICAgV2Via2l0QXBwZWFyYW5jZTogJ2J1dHRvbicsXG4gICAgICAgICAgfSxcbiAgICAgICAgICAnYnV0dG9uOjotbW96LWZvY3VzLWlubmVyLFt0eXBlPVwiYnV0dG9uXCJdOjotbW96LWZvY3VzLWlubmVyLFt0eXBlPVwicmVzZXRcIl06Oi1tb3otZm9jdXMtaW5uZXIsW3R5cGU9XCJzdWJtaXRcIl06Oi1tb3otZm9jdXMtaW5uZXInOlxuICAgICAgICAgICAge1xuICAgICAgICAgICAgICBib3JkZXJTdHlsZTogJ25vbmUnLFxuICAgICAgICAgICAgICBwYWRkaW5nOiAnMCcsXG4gICAgICAgICAgICB9LFxuICAgICAgICAgICdidXR0b246LW1vei1mb2N1c3JpbmcsW3R5cGU9XCJidXR0b25cIl06LW1vei1mb2N1c3JpbmcsW3R5cGU9XCJyZXNldFwiXTotbW96LWZvY3VzcmluZyxbdHlwZT1cInN1Ym1pdFwiXTotbW96LWZvY3VzcmluZyc6XG4gICAgICAgICAgICB7XG4gICAgICAgICAgICAgIG91dGxpbmU6ICcxcHggZG90dGVkIEJ1dHRvblRleHQnLFxuICAgICAgICAgICAgfSxcbiAgICAgICAgICBmaWVsZHNldDogeyBwYWRkaW5nOiAnMC4zNWVtIDAuNzVlbSAwLjYyNWVtJyB9LFxuICAgICAgICAgIGxlZ2VuZDoge1xuICAgICAgICAgICAgYm94U2l6aW5nOiAnYm9yZGVyLWJveCcsXG4gICAgICAgICAgICBjb2xvcjogJ2luaGVyaXQnLFxuICAgICAgICAgICAgZGlzcGxheTogJ3RhYmxlJyxcbiAgICAgICAgICAgIG1heFdpZHRoOiAnMTAwJScsXG4gICAgICAgICAgICBwYWRkaW5nOiAnMCcsXG4gICAgICAgICAgICB3aGl0ZVNwYWNlOiAnbm9ybWFsJyxcbiAgICAgICAgICB9LFxuICAgICAgICAgIHByb2dyZXNzOiB7IHZlcnRpY2FsQWxpZ246ICdiYXNlbGluZScgfSxcbiAgICAgICAgICB0ZXh0YXJlYTogeyBvdmVyZmxvdzogJ2F1dG8nIH0sXG4gICAgICAgICAgJ1t0eXBlPVwiY2hlY2tib3hcIl0sW3R5cGU9XCJyYWRpb1wiXSc6IHtcbiAgICAgICAgICAgIGJveFNpemluZzogJ2JvcmRlci1ib3gnLFxuICAgICAgICAgICAgcGFkZGluZzogJzAnLFxuICAgICAgICAgIH0sXG4gICAgICAgICAgJ1t0eXBlPVwibnVtYmVyXCJdOjotd2Via2l0LWlubmVyLXNwaW4tYnV0dG9uLFt0eXBlPVwibnVtYmVyXCJdOjotd2Via2l0LW91dGVyLXNwaW4tYnV0dG9uJzpcbiAgICAgICAgICAgIHtcbiAgICAgICAgICAgICAgaGVpZ2h0OiAnYXV0bycsXG4gICAgICAgICAgICB9LFxuICAgICAgICAgICdbdHlwZT1cInNlYXJjaFwiXSc6IHtcbiAgICAgICAgICAgIFdlYmtpdEFwcGVhcmFuY2U6ICd0ZXh0ZmllbGQnLFxuICAgICAgICAgICAgb3V0bGluZU9mZnNldDogJy0ycHgnLFxuICAgICAgICAgIH0sXG4gICAgICAgICAgJ1t0eXBlPVwic2VhcmNoXCJdOjotd2Via2l0LXNlYXJjaC1kZWNvcmF0aW9uJzoge1xuICAgICAgICAgICAgV2Via2l0QXBwZWFyYW5jZTogJ25vbmUnLFxuICAgICAgICAgIH0sXG4gICAgICAgICAgJzo6LXdlYmtpdC1maWxlLXVwbG9hZC1idXR0b24nOiB7XG4gICAgICAgICAgICBXZWJraXRBcHBlYXJhbmNlOiAnYnV0dG9uJyxcbiAgICAgICAgICAgIGZvbnQ6ICdpbmhlcml0JyxcbiAgICAgICAgICB9LFxuICAgICAgICAgIGRldGFpbHM6IHsgZGlzcGxheTogJ2Jsb2NrJyB9LFxuICAgICAgICAgIHN1bW1hcnk6IHsgZGlzcGxheTogJ2xpc3QtaXRlbScgfSxcbiAgICAgICAgICB0ZW1wbGF0ZTogeyBkaXNwbGF5OiAnbm9uZScgfSxcbiAgICAgICAgICAnW2hpZGRlbl0nOiB7IGRpc3BsYXk6ICdub25lJyB9LFxuICAgICAgICB9fVxuICAgICAgLz5cbiAgICA8Lz5cbiAgKTtcbn07XG4iXX0= */")
|
|
1536
1743
|
})]
|
|
1537
1744
|
});
|
|
1538
1745
|
};
|
|
@@ -1767,7 +1974,8 @@ const BottomSheetSurface = /*#__PURE__*/react$1.forwardRef(function BottomSheetS
|
|
|
1767
1974
|
ref: forwardedRef,
|
|
1768
1975
|
as: Paper,
|
|
1769
1976
|
theme: theme,
|
|
1770
|
-
elevation:
|
|
1977
|
+
elevation: 3,
|
|
1978
|
+
darkThemeBackgroundOverlay: 3,
|
|
1771
1979
|
__css: _extends__default['default']({
|
|
1772
1980
|
position: 'absolute',
|
|
1773
1981
|
bg: 'surface',
|
|
@@ -1862,14 +2070,13 @@ const Input = /*#__PURE__*/react$1.forwardRef(function Input(props, forwardedRef
|
|
|
1862
2070
|
display: 'flex',
|
|
1863
2071
|
alignItems: 'center'
|
|
1864
2072
|
}, !multiline && {
|
|
1865
|
-
lineHeight: 1,
|
|
1866
2073
|
overflow: 'hidden',
|
|
1867
2074
|
whiteSpace: 'nowrap',
|
|
1868
2075
|
textOverflow: 'ellipsis'
|
|
1869
2076
|
}, {
|
|
1870
2077
|
'::placeholder': {
|
|
1871
2078
|
opacity: 0,
|
|
1872
|
-
color: alpha('on.surface', 0.
|
|
2079
|
+
color: variant === 'filled' ? alpha('on.surface-variant', 0.87) : alpha('on.surface-variant', 0.6),
|
|
1873
2080
|
transition: `opacity .18s cubic-bezier(.4,0,.2,1)`
|
|
1874
2081
|
},
|
|
1875
2082
|
':disabled::placeholder': {
|
|
@@ -2028,7 +2235,7 @@ const Overlay = props => {
|
|
|
2028
2235
|
right: 0,
|
|
2029
2236
|
backgroundColor: 'on.surface',
|
|
2030
2237
|
pointerEvents: 'none',
|
|
2031
|
-
opacity: 0
|
|
2238
|
+
opacity: 0,
|
|
2032
2239
|
[makeSelector$1('hover:not([disabled]):not(:focus)')]: !forceActive && {
|
|
2033
2240
|
opacity: css.get(theme, `buttons.overlays.filled.hover.opacity`)
|
|
2034
2241
|
},
|
|
@@ -2089,16 +2296,17 @@ const FilledContainer = /*#__PURE__*/react$1.forwardRef(function FilledContainer
|
|
|
2089
2296
|
position: 'relative',
|
|
2090
2297
|
lineHeight: 0,
|
|
2091
2298
|
width: '100%',
|
|
2092
|
-
backgroundColor: 'surface',
|
|
2299
|
+
backgroundColor: 'surface-variant',
|
|
2093
2300
|
overflow: 'hidden',
|
|
2094
2301
|
boxSizing: 'border-box',
|
|
2095
2302
|
borderTopRightRadius: "0.25rem",
|
|
2096
2303
|
borderTopLeftRadius: "0.25rem",
|
|
2097
|
-
color: alpha('on.surface', 0.
|
|
2304
|
+
color: alpha('on.surface-variant', 0.87)
|
|
2098
2305
|
}, disabled && {
|
|
2099
|
-
|
|
2306
|
+
backgroundColor: alpha('on.surface-variant', 0.08),
|
|
2307
|
+
color: alpha('on.surface-variant', 0.38)
|
|
2100
2308
|
}, active && {
|
|
2101
|
-
color:
|
|
2309
|
+
color: 'primary'
|
|
2102
2310
|
})
|
|
2103
2311
|
}, otherProps, {
|
|
2104
2312
|
children: [label && /*#__PURE__*/jsxRuntime.jsx(FloatingLabel, {
|
|
@@ -2172,17 +2380,17 @@ const InnerContainer = /*#__PURE__*/_styled__default['default']('div', process.e
|
|
|
2172
2380
|
}
|
|
2173
2381
|
|
|
2174
2382
|
const inactiveStyle = _extends__default['default']({
|
|
2175
|
-
color:
|
|
2176
|
-
borderColor:
|
|
2383
|
+
color: 'on.surface-variant',
|
|
2384
|
+
borderColor: 'outline'
|
|
2177
2385
|
}, borderStyling(borderRadius, borderWidth));
|
|
2178
2386
|
|
|
2179
2387
|
const hoverStyle = {
|
|
2180
|
-
borderColor:
|
|
2181
|
-
color:
|
|
2388
|
+
borderColor: 'on.surface',
|
|
2389
|
+
color: 'on.surface-variant'
|
|
2182
2390
|
};
|
|
2183
2391
|
|
|
2184
2392
|
const focusStyle = _extends__default['default']({
|
|
2185
|
-
borderColor:
|
|
2393
|
+
borderColor: color,
|
|
2186
2394
|
color: alpha(color, 0.87)
|
|
2187
2395
|
}, borderStyling(borderRadius, borderWidthWhenFocused));
|
|
2188
2396
|
|
|
@@ -2204,7 +2412,7 @@ const InnerContainer = /*#__PURE__*/_styled__default['default']('div', process.e
|
|
|
2204
2412
|
// notch items styles when input is disabled
|
|
2205
2413
|
[makeSelector('disabled')]: disabledStyle
|
|
2206
2414
|
});
|
|
2207
|
-
}, process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,
|
|
2415
|
+
}, process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInN0eWxlZENvbXBvbmVudHMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBcUI4QiIsImZpbGUiOiJzdHlsZWRDb21w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ICAgICAgID8gZm9jdXNTdHlsZVxuICAgICAgICA6IGhvdmVyU3R5bGUsXG4gICAgICAvLyBub3RjaCBpdGVtcyBzdHlsZXMgd2hlbiBpbnB1dCBpcyBmb2N1c2VkXG4gICAgICBbbWFrZVNlbGVjdG9yKCdmb2N1czpub3QoW2Rpc2FibGVkXSknKV06IGZvY3VzU3R5bGUsXG4gICAgICAvLyBub3RjaCBpdGVtcyBzdHlsZXMgd2hlbiBpbnB1dCBpcyBkaXNhYmxlZFxuICAgICAgW21ha2VTZWxlY3RvcignZGlzYWJsZWQnKV06IGRpc2FibGVkU3R5bGUsXG4gICAgfSk7XG4gIH1cbik7XG4iXX0= */");
|
|
2208
2416
|
|
|
2209
2417
|
const NotchedOutline = /*#__PURE__*/react$1.forwardRef(function NotchedOutline(props, forwardedRef) {
|
|
2210
2418
|
let {
|
|
@@ -2520,6 +2728,7 @@ const List = /*#__PURE__*/react$1.forwardRef(function List(props, forwardedRef)
|
|
|
2520
2728
|
py: py,
|
|
2521
2729
|
px: px,
|
|
2522
2730
|
elevation: elevation,
|
|
2731
|
+
darkThemeBackgroundOverlay: elevation,
|
|
2523
2732
|
variant: variant,
|
|
2524
2733
|
outlined: outlined,
|
|
2525
2734
|
__css: _extends__default['default']({
|
|
@@ -2528,14 +2737,6 @@ const List = /*#__PURE__*/react$1.forwardRef(function List(props, forwardedRef)
|
|
|
2528
2737
|
}, otherProps));
|
|
2529
2738
|
});
|
|
2530
2739
|
|
|
2531
|
-
const listitemContext = /*#__PURE__*/react$1.createContext({
|
|
2532
|
-
color: 'on.surface'
|
|
2533
|
-
});
|
|
2534
|
-
const {
|
|
2535
|
-
Provider: ListItemProvider
|
|
2536
|
-
} = listitemContext;
|
|
2537
|
-
const useListItemContext = () => react$1.useContext(listitemContext);
|
|
2538
|
-
|
|
2539
2740
|
const ListItem = /*#__PURE__*/react$1.forwardRef(function ListItem(props, forwardedRef) {
|
|
2540
2741
|
const {
|
|
2541
2742
|
as = 'div',
|
|
@@ -2551,40 +2752,60 @@ const ListItem = /*#__PURE__*/react$1.forwardRef(function ListItem(props, forwar
|
|
|
2551
2752
|
otherProps = _objectWithoutPropertiesLoose__default['default'](props, ["as", "innerAs", "children", "selected", "aria-selected", "disabled", "color", "rippleColor", "__css"]);
|
|
2552
2753
|
|
|
2553
2754
|
const selected = ariaSelectedProp || selectedProp;
|
|
2554
|
-
const color =
|
|
2755
|
+
const color = rippleColor || colorProp || 'primary';
|
|
2555
2756
|
const theme = useTheme();
|
|
2556
|
-
|
|
2557
|
-
|
|
2558
|
-
|
|
2559
|
-
|
|
2560
|
-
|
|
2561
|
-
|
|
2562
|
-
|
|
2563
|
-
|
|
2564
|
-
|
|
2565
|
-
|
|
2566
|
-
|
|
2567
|
-
|
|
2568
|
-
|
|
2569
|
-
|
|
2570
|
-
|
|
2571
|
-
|
|
2572
|
-
|
|
2573
|
-
|
|
2574
|
-
|
|
2575
|
-
|
|
2576
|
-
|
|
2577
|
-
|
|
2578
|
-
|
|
2757
|
+
const baseOpacity = 0.12;
|
|
2758
|
+
const hoverOpacity = 0.16;
|
|
2759
|
+
const focusOpacity = 0.24;
|
|
2760
|
+
return /*#__PURE__*/jsxRuntime.jsx(Box, _extends__default['default']({
|
|
2761
|
+
ref: forwardedRef,
|
|
2762
|
+
as: innerAs || as,
|
|
2763
|
+
theme: theme,
|
|
2764
|
+
display: "flex",
|
|
2765
|
+
"data-disabled": disabled ? '' : undefined,
|
|
2766
|
+
"aria-selected": selected ? 'true' : undefined,
|
|
2767
|
+
disabled: disabled
|
|
2768
|
+
}, otherProps, {
|
|
2769
|
+
__css: _extends__default['default']({
|
|
2770
|
+
px: 3,
|
|
2771
|
+
py: "0.75rem",
|
|
2772
|
+
transition: 'background-color 75ms linear',
|
|
2773
|
+
backgroundColor: 'transparent',
|
|
2774
|
+
color: alpha('on.surface', 0.87),
|
|
2775
|
+
cursor: 'pointer',
|
|
2776
|
+
':hover': {
|
|
2777
|
+
backgroundColor: alpha('on.surface', hoverOpacity)
|
|
2778
|
+
},
|
|
2779
|
+
':focus': {
|
|
2780
|
+
outline: 'none',
|
|
2781
|
+
backgroundColor: alpha('on.surface', focusOpacity)
|
|
2782
|
+
},
|
|
2783
|
+
':active': {
|
|
2784
|
+
backgroundColor: alpha('on.surface', baseOpacity + 0.12)
|
|
2785
|
+
},
|
|
2786
|
+
'&[aria-selected="true"]': {
|
|
2787
|
+
backgroundColor: alpha(color, baseOpacity + 0.12),
|
|
2788
|
+
':hover': {
|
|
2789
|
+
backgroundColor: alpha(color, hoverOpacity + 0.12)
|
|
2790
|
+
},
|
|
2579
2791
|
':focus': {
|
|
2580
|
-
outline: 'none'
|
|
2792
|
+
outline: 'none',
|
|
2793
|
+
backgroundColor: alpha(color, focusOpacity + 0.12)
|
|
2581
2794
|
},
|
|
2582
|
-
|
|
2583
|
-
|
|
2584
|
-
|
|
2585
|
-
|
|
2586
|
-
|
|
2587
|
-
|
|
2795
|
+
':active': {
|
|
2796
|
+
backgroundColor: alpha(color, baseOpacity + 0.24)
|
|
2797
|
+
}
|
|
2798
|
+
},
|
|
2799
|
+
'&[data-disabled]': {
|
|
2800
|
+
color: alpha('on.surface', 0.6),
|
|
2801
|
+
backgroundColor: 'transparent',
|
|
2802
|
+
cursor: 'default'
|
|
2803
|
+
},
|
|
2804
|
+
textDecoration: 'none',
|
|
2805
|
+
WebkitTapHighlightColor: 'transparent'
|
|
2806
|
+
}, css.get(theme, 'text.subtitle1'), __css),
|
|
2807
|
+
children: children
|
|
2808
|
+
}));
|
|
2588
2809
|
});
|
|
2589
2810
|
|
|
2590
2811
|
const ListItemText = /*#__PURE__*/react$1.forwardRef(function ListItemText(props, forwardedRef) {
|
|
@@ -2595,10 +2816,6 @@ const ListItemText = /*#__PURE__*/react$1.forwardRef(function ListItemText(props
|
|
|
2595
2816
|
} = props,
|
|
2596
2817
|
otherProps = _objectWithoutPropertiesLoose__default['default'](props, ["as", "text", "secondaryText"]);
|
|
2597
2818
|
|
|
2598
|
-
const {
|
|
2599
|
-
color,
|
|
2600
|
-
disabled
|
|
2601
|
-
} = useListItemContext();
|
|
2602
2819
|
return /*#__PURE__*/jsxRuntime.jsxs(Comp, _extends__default['default']({
|
|
2603
2820
|
ref: forwardedRef
|
|
2604
2821
|
}, otherProps, {
|
|
@@ -2607,7 +2824,8 @@ const ListItemText = /*#__PURE__*/react$1.forwardRef(function ListItemText(props
|
|
|
2607
2824
|
variant: "body2",
|
|
2608
2825
|
display: "block",
|
|
2609
2826
|
__css: {
|
|
2610
|
-
color:
|
|
2827
|
+
color: 'currentColor',
|
|
2828
|
+
opacity: 0.65
|
|
2611
2829
|
},
|
|
2612
2830
|
children: secondaryText
|
|
2613
2831
|
})]
|
|
@@ -2663,7 +2881,8 @@ const ComboboxList = /*#__PURE__*/react$1.forwardRef((props, forwardedRef) => {
|
|
|
2663
2881
|
ref: forwardedRef,
|
|
2664
2882
|
innerAs: as,
|
|
2665
2883
|
outlined: false,
|
|
2666
|
-
elevation:
|
|
2884
|
+
elevation: 2,
|
|
2885
|
+
darkThemeBackgroundOverlay: 2,
|
|
2667
2886
|
__css: _extends__default['default']({
|
|
2668
2887
|
maxHeight: "18.75rem",
|
|
2669
2888
|
overflowY: 'auto',
|
|
@@ -2985,7 +3204,7 @@ const CheckBoxInner = /*#__PURE__*/react$1.forwardRef(function CheckBoxInner(pro
|
|
|
2985
3204
|
outline: 'none'
|
|
2986
3205
|
},
|
|
2987
3206
|
border: 'none',
|
|
2988
|
-
borderRadius: '
|
|
3207
|
+
borderRadius: 'full',
|
|
2989
3208
|
zIndex: 1,
|
|
2990
3209
|
position: 'absolute'
|
|
2991
3210
|
}, __css)
|
|
@@ -3043,15 +3262,16 @@ const CheckBox = /*#__PURE__*/react$1.forwardRef(function CheckBox(props, forwar
|
|
|
3043
3262
|
});
|
|
3044
3263
|
});
|
|
3045
3264
|
|
|
3046
|
-
function getFilledCSS(bg, color) {
|
|
3047
|
-
return {
|
|
3048
|
-
bg
|
|
3049
|
-
|
|
3265
|
+
function getFilledCSS(theme, bg, color, disabled) {
|
|
3266
|
+
return _extends__default['default']({}, !disabled && bg !== 'surface' ? {
|
|
3267
|
+
bg
|
|
3268
|
+
} : _extends__default['default']({}, getColorOverlay(theme, 'surface', 'primary', 0.05)), {
|
|
3269
|
+
color,
|
|
3050
3270
|
'&::before': {
|
|
3051
3271
|
backgroundColor: 'currentColor',
|
|
3052
3272
|
position: 'absolute',
|
|
3053
3273
|
content: '""',
|
|
3054
|
-
opacity: 0
|
|
3274
|
+
opacity: 0,
|
|
3055
3275
|
pointerEvents: 'none',
|
|
3056
3276
|
top: 0,
|
|
3057
3277
|
right: 0,
|
|
@@ -3064,17 +3284,21 @@ function getFilledCSS(bg, color) {
|
|
|
3064
3284
|
'& > *': {
|
|
3065
3285
|
zIndex: 1
|
|
3066
3286
|
}
|
|
3067
|
-
}
|
|
3287
|
+
}, disabled && {
|
|
3288
|
+
boxShadow: 0,
|
|
3289
|
+
bg: alpha('on.surface', 0.32)
|
|
3290
|
+
});
|
|
3068
3291
|
}
|
|
3069
3292
|
|
|
3070
|
-
function getOutlinedCSS(bg, color, borderOpacity) {
|
|
3071
|
-
return {
|
|
3072
|
-
bg
|
|
3073
|
-
|
|
3293
|
+
function getOutlinedCSS(theme, bg, color, borderOpacity) {
|
|
3294
|
+
return _extends__default['default']({}, bg !== 'surface' ? {
|
|
3295
|
+
bg
|
|
3296
|
+
} : getDarkThemeBackgroundOverlay(theme, 2), {
|
|
3297
|
+
color: color,
|
|
3074
3298
|
borderColor: alpha(color, borderOpacity),
|
|
3075
3299
|
borderStyle: 'solid',
|
|
3076
3300
|
borderWidth: "0.0625rem"
|
|
3077
|
-
};
|
|
3301
|
+
});
|
|
3078
3302
|
}
|
|
3079
3303
|
|
|
3080
3304
|
const ChipBase = /*#__PURE__*/react$1.forwardRef(function Chip(props, forwardedRef) {
|
|
@@ -3093,6 +3317,7 @@ const ChipBase = /*#__PURE__*/react$1.forwardRef(function Chip(props, forwardedR
|
|
|
3093
3317
|
const theme = useTheme();
|
|
3094
3318
|
return /*#__PURE__*/jsxRuntime.jsx(Box, _extends__default['default']({
|
|
3095
3319
|
as: as,
|
|
3320
|
+
"data-disabled": disabled ? '' : undefined,
|
|
3096
3321
|
ref: forwardedRef,
|
|
3097
3322
|
__css: _extends__default['default']({
|
|
3098
3323
|
boxSizing: 'border-box',
|
|
@@ -3106,9 +3331,11 @@ const ChipBase = /*#__PURE__*/react$1.forwardRef(function Chip(props, forwardedR
|
|
|
3106
3331
|
fontSize: 'inherit',
|
|
3107
3332
|
border: 0,
|
|
3108
3333
|
overflow: 'hidden',
|
|
3334
|
+
whiteSpace: 'nowrap',
|
|
3109
3335
|
cursor: 'default',
|
|
3110
3336
|
WebkitTapHighlightColor: 'transparent',
|
|
3111
3337
|
willChange: 'transform,opacity',
|
|
3338
|
+
minWidth: 'auto',
|
|
3112
3339
|
'&::-moz-focus-inner': {
|
|
3113
3340
|
border: 0
|
|
3114
3341
|
}
|
|
@@ -3121,8 +3348,8 @@ const ChipBase = /*#__PURE__*/react$1.forwardRef(function Chip(props, forwardedR
|
|
|
3121
3348
|
})({
|
|
3122
3349
|
variant: variantProp,
|
|
3123
3350
|
theme
|
|
3124
|
-
}), variantProp === 'filled' ? getFilledCSS(backgroundColorProp, colorProp) : getOutlinedCSS(backgroundColorProp, colorProp, borderOpacityProp), {
|
|
3125
|
-
opacity: disabled ? 0.
|
|
3351
|
+
}), variantProp === 'filled' ? getFilledCSS(theme, backgroundColorProp, colorProp, disabled) : getOutlinedCSS(theme, backgroundColorProp, colorProp, borderOpacityProp), {
|
|
3352
|
+
opacity: disabled ? 0.38 : 1
|
|
3126
3353
|
}, __css)
|
|
3127
3354
|
}, otherProps, {
|
|
3128
3355
|
children: children
|
|
@@ -3131,77 +3358,61 @@ const ChipBase = /*#__PURE__*/react$1.forwardRef(function Chip(props, forwardedR
|
|
|
3131
3358
|
|
|
3132
3359
|
const ButtonChip = /*#__PURE__*/react$1.forwardRef(function ButtonChip(props, forwardedRef) {
|
|
3133
3360
|
const {
|
|
3134
|
-
as = '
|
|
3361
|
+
as = 'div',
|
|
3135
3362
|
onClick,
|
|
3136
3363
|
disabled: disabledProp,
|
|
3137
|
-
|
|
3138
|
-
|
|
3139
|
-
children
|
|
3364
|
+
leadingIcon,
|
|
3365
|
+
trailingIcon,
|
|
3366
|
+
children,
|
|
3367
|
+
__css
|
|
3140
3368
|
} = props,
|
|
3141
|
-
otherProps = _objectWithoutPropertiesLoose__default['default'](props, ["as", "onClick", "disabled", "
|
|
3369
|
+
otherProps = _objectWithoutPropertiesLoose__default['default'](props, ["as", "onClick", "disabled", "leadingIcon", "trailingIcon", "children", "color", "__css"]);
|
|
3142
3370
|
|
|
3143
3371
|
const theme = useTheme();
|
|
3144
3372
|
const isClickable = onClick && !disabledProp;
|
|
3145
3373
|
return /*#__PURE__*/jsxRuntime.jsx(ChipBase, _extends__default['default']({
|
|
3146
|
-
as: "
|
|
3374
|
+
as: "div",
|
|
3147
3375
|
onClick: isClickable ? onClick : undefined,
|
|
3148
|
-
disabled: disabledProp
|
|
3376
|
+
disabled: disabledProp,
|
|
3377
|
+
color: "on.surface",
|
|
3378
|
+
backgroundColor: "surface",
|
|
3379
|
+
__css: __css
|
|
3149
3380
|
}, otherProps, {
|
|
3150
|
-
children: /*#__PURE__*/jsxRuntime.jsxs(
|
|
3151
|
-
as:
|
|
3381
|
+
children: /*#__PURE__*/jsxRuntime.jsxs(RippleBox, {
|
|
3382
|
+
as: as,
|
|
3383
|
+
role: isClickable ? 'button' : undefined,
|
|
3384
|
+
tabIndex: isClickable ? 0 : undefined,
|
|
3385
|
+
theme: theme,
|
|
3386
|
+
ref: forwardedRef,
|
|
3387
|
+
rippleColor: 'currentColor',
|
|
3388
|
+
baseOpacity: 0,
|
|
3389
|
+
hoverOpacity: 0.12,
|
|
3390
|
+
focusOpacity: 0.24,
|
|
3391
|
+
center: false,
|
|
3392
|
+
disabled: !isClickable,
|
|
3393
|
+
"aria-disabled": !isClickable,
|
|
3152
3394
|
__css: {
|
|
3395
|
+
bg: 'transparent',
|
|
3396
|
+
color: 'inherit',
|
|
3397
|
+
padding: `0`,
|
|
3398
|
+
pl: leadingIcon ? "0.5rem" : "0.75rem",
|
|
3399
|
+
pr: trailingIcon ? "0.5rem" : "0.75rem",
|
|
3400
|
+
gap: "0.5rem",
|
|
3153
3401
|
width: '100%',
|
|
3402
|
+
minWidth: 'auto',
|
|
3154
3403
|
height: '100%',
|
|
3404
|
+
appearance: 'none',
|
|
3405
|
+
':focus': {
|
|
3406
|
+
outline: 'none'
|
|
3407
|
+
},
|
|
3155
3408
|
border: 'none',
|
|
3409
|
+
borderRadius: 0,
|
|
3410
|
+
position: 'relative',
|
|
3156
3411
|
display: 'inline-flex',
|
|
3157
3412
|
alignItems: 'center',
|
|
3158
|
-
|
|
3413
|
+
cursor: isClickable ? 'pointer' : 'default'
|
|
3159
3414
|
},
|
|
3160
|
-
children: [
|
|
3161
|
-
as: as,
|
|
3162
|
-
theme: theme,
|
|
3163
|
-
ref: forwardedRef,
|
|
3164
|
-
rippleColor: 'currentColor',
|
|
3165
|
-
baseOpacity: 0,
|
|
3166
|
-
hoverOpacity: 0.12,
|
|
3167
|
-
focusOpacity: 0.24,
|
|
3168
|
-
center: false,
|
|
3169
|
-
disabled: !isClickable,
|
|
3170
|
-
"aria-disabled": !isClickable,
|
|
3171
|
-
__css: {
|
|
3172
|
-
backgroundColor: 'rgba(0,0,0,0)',
|
|
3173
|
-
top: 0,
|
|
3174
|
-
left: 0,
|
|
3175
|
-
width: '100%',
|
|
3176
|
-
height: '100%',
|
|
3177
|
-
appearance: 'none',
|
|
3178
|
-
':focus': {
|
|
3179
|
-
outline: 'none'
|
|
3180
|
-
},
|
|
3181
|
-
border: 'none',
|
|
3182
|
-
borderRadius: 0,
|
|
3183
|
-
position: 'absolute',
|
|
3184
|
-
color: 'inherit',
|
|
3185
|
-
cursor: isClickable ? 'pointer' : 'default'
|
|
3186
|
-
}
|
|
3187
|
-
}), /*#__PURE__*/jsxRuntime.jsx(Box, {
|
|
3188
|
-
as: "span",
|
|
3189
|
-
pl: "0.25rem",
|
|
3190
|
-
pr: "0.5rem",
|
|
3191
|
-
children: leftIcon
|
|
3192
|
-
}), /*#__PURE__*/jsxRuntime.jsx(Box, {
|
|
3193
|
-
as: "span",
|
|
3194
|
-
__css: {
|
|
3195
|
-
minWidth: 'auto',
|
|
3196
|
-
whiteSpace: 'nowrap'
|
|
3197
|
-
},
|
|
3198
|
-
children: children
|
|
3199
|
-
}), /*#__PURE__*/jsxRuntime.jsx(Box, {
|
|
3200
|
-
as: "span",
|
|
3201
|
-
pl: "0.375rem",
|
|
3202
|
-
pr: "0.375rem",
|
|
3203
|
-
children: rightIcon
|
|
3204
|
-
})]
|
|
3415
|
+
children: [leadingIcon, children, trailingIcon]
|
|
3205
3416
|
})
|
|
3206
3417
|
}));
|
|
3207
3418
|
});
|
|
@@ -3218,19 +3429,21 @@ const InnerInput = /*#__PURE__*/react$1.forwardRef(function InnerInput(props, fo
|
|
|
3218
3429
|
defaultValue,
|
|
3219
3430
|
disabled,
|
|
3220
3431
|
onChange,
|
|
3221
|
-
|
|
3222
|
-
|
|
3432
|
+
leadingIcon,
|
|
3433
|
+
trailingIcon,
|
|
3434
|
+
children,
|
|
3435
|
+
__css
|
|
3223
3436
|
} = props,
|
|
3224
|
-
otherProps = _objectWithoutPropertiesLoose__default['default'](props, ["type", "color", "checked", "aria-checked", "defaultChecked", "value", "name", "defaultValue", "disabled", "onChange", "
|
|
3437
|
+
otherProps = _objectWithoutPropertiesLoose__default['default'](props, ["type", "color", "checked", "aria-checked", "defaultChecked", "value", "name", "defaultValue", "disabled", "onChange", "leadingIcon", "trailingIcon", "children", "__css"]);
|
|
3225
3438
|
|
|
3226
3439
|
const theme = useTheme();
|
|
3227
|
-
const sumOpacity = checked ? 0.12 : 0;
|
|
3228
3440
|
return /*#__PURE__*/jsxRuntime.jsx(ChipBase, _extends__default['default']({
|
|
3229
3441
|
as: "label",
|
|
3230
3442
|
disabled: disabled,
|
|
3231
|
-
backgroundColor: 'surface',
|
|
3232
|
-
color: checked ? color : 'on.surface',
|
|
3233
|
-
borderOpacity: checked ? 0
|
|
3443
|
+
backgroundColor: checked ? color + '-container' : 'surface',
|
|
3444
|
+
color: checked ? 'on.' + color + '-container' : 'on.surface',
|
|
3445
|
+
borderOpacity: checked ? 0 : 0.24,
|
|
3446
|
+
__css: __css
|
|
3234
3447
|
}, otherProps, {
|
|
3235
3448
|
children: /*#__PURE__*/jsxRuntime.jsxs(Box, {
|
|
3236
3449
|
as: "span",
|
|
@@ -3240,7 +3453,9 @@ const InnerInput = /*#__PURE__*/react$1.forwardRef(function InnerInput(props, fo
|
|
|
3240
3453
|
border: 'none',
|
|
3241
3454
|
display: 'inline-flex',
|
|
3242
3455
|
alignItems: 'center',
|
|
3243
|
-
justifyContent: 'center'
|
|
3456
|
+
justifyContent: 'center',
|
|
3457
|
+
pl: leadingIcon ? "0.5rem" : "0.75rem",
|
|
3458
|
+
pr: trailingIcon ? "0.5rem" : "0.75rem"
|
|
3244
3459
|
},
|
|
3245
3460
|
children: [/*#__PURE__*/jsxRuntime.jsx(RippleBox, {
|
|
3246
3461
|
as: "input",
|
|
@@ -3254,13 +3469,13 @@ const InnerInput = /*#__PURE__*/react$1.forwardRef(function InnerInput(props, fo
|
|
|
3254
3469
|
theme: theme,
|
|
3255
3470
|
disabled: disabled,
|
|
3256
3471
|
rippleColor: color,
|
|
3257
|
-
baseOpacity: 0
|
|
3258
|
-
hoverOpacity: 0.12
|
|
3259
|
-
focusOpacity: 0.24
|
|
3472
|
+
baseOpacity: 0,
|
|
3473
|
+
hoverOpacity: 0.12,
|
|
3474
|
+
focusOpacity: 0.24,
|
|
3260
3475
|
name: name,
|
|
3261
3476
|
ref: forwardedRef,
|
|
3262
3477
|
__css: {
|
|
3263
|
-
|
|
3478
|
+
bg: 'transparent',
|
|
3264
3479
|
top: 0,
|
|
3265
3480
|
left: 0,
|
|
3266
3481
|
width: '100%',
|
|
@@ -3271,19 +3486,9 @@ const InnerInput = /*#__PURE__*/react$1.forwardRef(function InnerInput(props, fo
|
|
|
3271
3486
|
},
|
|
3272
3487
|
border: 'none',
|
|
3273
3488
|
borderRadius: 0,
|
|
3274
|
-
position: 'absolute'
|
|
3275
|
-
color: 'inherit'
|
|
3489
|
+
position: 'absolute'
|
|
3276
3490
|
}
|
|
3277
|
-
}),
|
|
3278
|
-
as: "span",
|
|
3279
|
-
pl: "0.25rem",
|
|
3280
|
-
pr: "0.5rem",
|
|
3281
|
-
children: leftIcon
|
|
3282
|
-
}), /*#__PURE__*/jsxRuntime.jsx(Box, {
|
|
3283
|
-
as: "span",
|
|
3284
|
-
pr: "0.75rem",
|
|
3285
|
-
children: children
|
|
3286
|
-
})]
|
|
3491
|
+
}), leadingIcon, children, trailingIcon]
|
|
3287
3492
|
})
|
|
3288
3493
|
}));
|
|
3289
3494
|
});
|
|
@@ -3334,26 +3539,37 @@ const Divider = /*#__PURE__*/react$1.forwardRef(function Divider(props, forwarde
|
|
|
3334
3539
|
const Modal = core.Modal;
|
|
3335
3540
|
const DialogSurface = /*#__PURE__*/react$1.forwardRef(function DialogSurface(props, forwardedRef) {
|
|
3336
3541
|
const {
|
|
3337
|
-
__css
|
|
3542
|
+
__css,
|
|
3543
|
+
variant: variantProp = 'base'
|
|
3338
3544
|
} = props,
|
|
3339
|
-
otherProps = _objectWithoutPropertiesLoose__default['default'](props, ["__css"]);
|
|
3545
|
+
otherProps = _objectWithoutPropertiesLoose__default['default'](props, ["__css", "variant"]);
|
|
3340
3546
|
|
|
3341
3547
|
const theme = useTheme();
|
|
3548
|
+
const overlayValue = styledSystem.get(theme, 'dialogs.backgroundColorOverlay') || 0;
|
|
3342
3549
|
return /*#__PURE__*/jsxRuntime.jsx(Modal, _extends__default['default']({
|
|
3343
3550
|
ref: forwardedRef,
|
|
3344
3551
|
as: Paper,
|
|
3345
3552
|
theme: theme,
|
|
3346
|
-
elevation:
|
|
3553
|
+
elevation: 3,
|
|
3554
|
+
darkThemeBackgroundOverlay: overlayValue,
|
|
3347
3555
|
__css: _extends__default['default']({
|
|
3348
3556
|
position: 'relative',
|
|
3349
|
-
|
|
3350
|
-
borderRadius: "0.5rem",
|
|
3557
|
+
borderRadius: 'small',
|
|
3351
3558
|
width: '100%',
|
|
3352
3559
|
maxWidth: "37.5rem",
|
|
3353
3560
|
maxHeight: '100%',
|
|
3354
3561
|
overflow: 'auto',
|
|
3355
3562
|
pointerEvents: 'auto'
|
|
3356
|
-
},
|
|
3563
|
+
}, styledSystem.variant({
|
|
3564
|
+
scale: 'dialogs.variants',
|
|
3565
|
+
prop: 'variant',
|
|
3566
|
+
variants: {
|
|
3567
|
+
base: {}
|
|
3568
|
+
}
|
|
3569
|
+
})({
|
|
3570
|
+
variant: variantProp,
|
|
3571
|
+
theme
|
|
3572
|
+
}), __css)
|
|
3357
3573
|
}, otherProps));
|
|
3358
3574
|
});
|
|
3359
3575
|
|
|
@@ -3468,11 +3684,11 @@ const MenuList = /*#__PURE__*/react$1.forwardRef((_ref, ref) => {
|
|
|
3468
3684
|
as: List,
|
|
3469
3685
|
innerAs: as,
|
|
3470
3686
|
ref: ref,
|
|
3471
|
-
elevation:
|
|
3687
|
+
elevation: 2,
|
|
3688
|
+
darkThemeBackgroundOverlay: 2,
|
|
3472
3689
|
outlined: false,
|
|
3473
3690
|
variant: "default",
|
|
3474
3691
|
__css: _extends__default['default']({
|
|
3475
|
-
width: 0,
|
|
3476
3692
|
minWidth: "7rem",
|
|
3477
3693
|
maxWidth: "17.5rem",
|
|
3478
3694
|
maxHeight: "18.75rem",
|
|
@@ -3630,7 +3846,7 @@ const RadioButtonIcon = /*#__PURE__*/react$1.forwardRef(function RadioButtonIcon
|
|
|
3630
3846
|
__css: {
|
|
3631
3847
|
borderColor: 'currentColor',
|
|
3632
3848
|
borderStyle: 'solid',
|
|
3633
|
-
borderRadius: '
|
|
3849
|
+
borderRadius: 'full',
|
|
3634
3850
|
borderWidth: "0.125rem",
|
|
3635
3851
|
width: '100%',
|
|
3636
3852
|
height: '100%',
|
|
@@ -3640,7 +3856,7 @@ const RadioButtonIcon = /*#__PURE__*/react$1.forwardRef(function RadioButtonIcon
|
|
|
3640
3856
|
children: /*#__PURE__*/jsxRuntime.jsx(Box, {
|
|
3641
3857
|
__css: {
|
|
3642
3858
|
backgroundColor: 'currentColor',
|
|
3643
|
-
borderRadius: '
|
|
3859
|
+
borderRadius: 'full',
|
|
3644
3860
|
width: '100%',
|
|
3645
3861
|
height: '100%',
|
|
3646
3862
|
transition: 'transform .12s cubic-bezier(0,0,.2,1) 0ms,background-color .12s cubic-bezier(0,0,.2,1) 0ms',
|
|
@@ -3686,7 +3902,7 @@ const RadioButtonInner = /*#__PURE__*/react$1.forwardRef(function RadioButtonInn
|
|
|
3686
3902
|
outline: 'none'
|
|
3687
3903
|
},
|
|
3688
3904
|
border: 'none',
|
|
3689
|
-
borderRadius: '
|
|
3905
|
+
borderRadius: 'full',
|
|
3690
3906
|
zIndex: 1,
|
|
3691
3907
|
position: 'absolute'
|
|
3692
3908
|
}, __css)
|
|
@@ -4514,19 +4730,19 @@ const Snackbar = /*#__PURE__*/react$1.forwardRef(function Snackbar(props, forwar
|
|
|
4514
4730
|
style
|
|
4515
4731
|
} = useSnackbarAnimation(ref, timeout);
|
|
4516
4732
|
return /*#__PURE__*/jsxRuntime.jsxs(Paper, _extends__default['default']({
|
|
4517
|
-
elevation:
|
|
4518
|
-
|
|
4733
|
+
elevation: 4,
|
|
4734
|
+
darkThemeBackgroundOverlay: 4,
|
|
4519
4735
|
className: colorMode === 'default' ? DARK_THEME_CLASS : DEFAULT_THEME_CLASS,
|
|
4520
4736
|
ref: core.assignMultipleRefs(forwardedRef, ref),
|
|
4521
4737
|
__css: _extends__default['default']({
|
|
4522
|
-
boxShadow:
|
|
4738
|
+
boxShadow: 4,
|
|
4523
4739
|
py: "0.375rem",
|
|
4524
4740
|
pl: 3,
|
|
4525
4741
|
pr: 3,
|
|
4526
4742
|
display: 'inline-flex',
|
|
4527
4743
|
minWidth: `min(100%, ${"21.5rem"})`,
|
|
4528
4744
|
maxWidth: ['100%', 'unset'],
|
|
4529
|
-
borderRadius:
|
|
4745
|
+
borderRadius: 'extra-small',
|
|
4530
4746
|
color: 'on.surface',
|
|
4531
4747
|
flexDirection: 'row',
|
|
4532
4748
|
willChange: 'transform,opacity'
|
|
@@ -4551,22 +4767,37 @@ const Snackbar = /*#__PURE__*/react$1.forwardRef(function Snackbar(props, forwar
|
|
|
4551
4767
|
}));
|
|
4552
4768
|
});
|
|
4553
4769
|
|
|
4770
|
+
const BORDER_WIDTH = 2;
|
|
4771
|
+
const TRAIL_WIDTH = 52;
|
|
4772
|
+
const TRAIL_HEIGHT = 32;
|
|
4773
|
+
const CIRCLE_SIZE_INACTIVE_CHECKED = 24;
|
|
4774
|
+
const CIRCLE_SIZE_ACTIVE_CHECKED = 28;
|
|
4775
|
+
const CIRCLE_SIZE_INACTIVE_UNCHECKED = 16;
|
|
4776
|
+
const CIRCLE_SIZE_ACTIVE_UNCHECKED = 28;
|
|
4554
4777
|
const SwitchTrail = (_ref) => {
|
|
4555
4778
|
let {
|
|
4556
|
-
checked = false
|
|
4779
|
+
checked = false,
|
|
4780
|
+
disabled = false
|
|
4557
4781
|
} = _ref,
|
|
4558
|
-
otherProps = _objectWithoutPropertiesLoose__default['default'](_ref, ["checked"]);
|
|
4782
|
+
otherProps = _objectWithoutPropertiesLoose__default['default'](_ref, ["checked", "disabled"]);
|
|
4559
4783
|
|
|
4560
4784
|
return /*#__PURE__*/jsxRuntime.jsx(Box, _extends__default['default']({
|
|
4561
|
-
__css: {
|
|
4562
|
-
width:
|
|
4563
|
-
height:
|
|
4564
|
-
borderRadius:
|
|
4565
|
-
|
|
4566
|
-
|
|
4567
|
-
|
|
4785
|
+
__css: _extends__default['default']({
|
|
4786
|
+
width: polished.rem(TRAIL_WIDTH),
|
|
4787
|
+
height: polished.rem(TRAIL_HEIGHT),
|
|
4788
|
+
borderRadius: polished.rem(TRAIL_HEIGHT / 2),
|
|
4789
|
+
borderWidth: polished.rem(BORDER_WIDTH),
|
|
4790
|
+
borderStyle: 'solid',
|
|
4791
|
+
backgroundColor: checked ? 'primary' : 'surface-variant',
|
|
4792
|
+
borderColor: checked ? 'primary' : 'outline'
|
|
4793
|
+
}, disabled && {
|
|
4794
|
+
opacity: 0.12,
|
|
4795
|
+
backgroundColor: checked ? 'on.surface' : 'surface-variant',
|
|
4796
|
+
borderColor: 'on.surface'
|
|
4797
|
+
})
|
|
4568
4798
|
}, otherProps));
|
|
4569
4799
|
};
|
|
4800
|
+
const THUMB_SIZE = 40;
|
|
4570
4801
|
const SwitchThumb = (_ref2) => {
|
|
4571
4802
|
let {
|
|
4572
4803
|
checked = false
|
|
@@ -4575,16 +4806,19 @@ const SwitchThumb = (_ref2) => {
|
|
|
4575
4806
|
|
|
4576
4807
|
return /*#__PURE__*/jsxRuntime.jsx(Box, _extends__default['default']({
|
|
4577
4808
|
position: "absolute",
|
|
4578
|
-
width:
|
|
4579
|
-
height:
|
|
4580
|
-
borderRadius: "
|
|
4581
|
-
left:
|
|
4582
|
-
top:
|
|
4809
|
+
width: polished.rem(THUMB_SIZE),
|
|
4810
|
+
height: polished.rem(THUMB_SIZE),
|
|
4811
|
+
borderRadius: "full",
|
|
4812
|
+
left: '50%',
|
|
4813
|
+
top: '50%',
|
|
4583
4814
|
__css: {
|
|
4584
|
-
|
|
4585
|
-
transform: checked ? `translate(${"1.25rem"})` : 'none',
|
|
4815
|
+
transform: `translateX(calc(-50% ${checked ? '+' : '-'} ${polished.rem((TRAIL_WIDTH - CIRCLE_SIZE_INACTIVE_CHECKED - BORDER_WIDTH * 4) / 2)})) translateY(-50%)`,
|
|
4586
4816
|
WebkitTapHighlightColor: 'transparent',
|
|
4587
|
-
transition: 'background-color 90ms cubic-bezier(.4,0,.2,1),border-color 90ms cubic-bezier(.4,0,.2,1),transform 90ms cubic-bezier(.4,0,.2,1)'
|
|
4817
|
+
transition: 'background-color 90ms cubic-bezier(.4,0,.2,1),border-color 90ms cubic-bezier(.4,0,.2,1),transform 90ms cubic-bezier(.4,0,.2,1),height 90ms cubic-bezier(.4,0,.2,1),width 90ms cubic-bezier(.4,0,.2,1)',
|
|
4818
|
+
'& > input': {
|
|
4819
|
+
width: THUMB_SIZE,
|
|
4820
|
+
height: THUMB_SIZE
|
|
4821
|
+
}
|
|
4588
4822
|
}
|
|
4589
4823
|
}, otherProps));
|
|
4590
4824
|
};
|
|
@@ -4597,22 +4831,32 @@ const SwitchCircle = (_ref3) => {
|
|
|
4597
4831
|
return /*#__PURE__*/jsxRuntime.jsx(Box, _extends__default['default']({
|
|
4598
4832
|
__css: {
|
|
4599
4833
|
position: 'absolute',
|
|
4600
|
-
width:
|
|
4601
|
-
height:
|
|
4602
|
-
boxShadow: 2,
|
|
4834
|
+
width: checked ? polished.rem(CIRCLE_SIZE_INACTIVE_CHECKED) : polished.rem(CIRCLE_SIZE_INACTIVE_UNCHECKED),
|
|
4835
|
+
height: checked ? polished.rem(CIRCLE_SIZE_INACTIVE_CHECKED) : polished.rem(CIRCLE_SIZE_INACTIVE_UNCHECKED),
|
|
4603
4836
|
boxSizing: 'border-box',
|
|
4604
|
-
|
|
4605
|
-
borderStyle: 'solid',
|
|
4606
|
-
borderRadius: '50%',
|
|
4837
|
+
borderRadius: 'full',
|
|
4607
4838
|
pointerEvents: 'none',
|
|
4608
4839
|
zIndex: 1,
|
|
4609
|
-
backgroundColor: checked ? 'primary' : '
|
|
4610
|
-
borderColor: checked ? 'primary' : '#fff',
|
|
4840
|
+
backgroundColor: checked ? 'on.primary' : 'outline',
|
|
4611
4841
|
top: '50%',
|
|
4612
4842
|
left: '50%',
|
|
4613
4843
|
transform: 'translate(-50%, -50%)',
|
|
4614
|
-
transition: 'inherit'
|
|
4844
|
+
transition: 'inherit',
|
|
4845
|
+
'[data-switch-thumb=""]:active ~ &, [data-switch-thumb=""]:focus-visible ~ &, [data-switch-thumb=""]:hover ~ &': {
|
|
4846
|
+
backgroundColor: checked ? 'primary-container' : 'on.surface-variant'
|
|
4847
|
+
},
|
|
4848
|
+
'[data-switch-thumb=""]:active ~ &, [data-switch-thumb=""]:focus-visible ~ &': {
|
|
4849
|
+
height: checked ? CIRCLE_SIZE_ACTIVE_CHECKED : CIRCLE_SIZE_ACTIVE_UNCHECKED,
|
|
4850
|
+
width: checked ? CIRCLE_SIZE_ACTIVE_CHECKED : CIRCLE_SIZE_ACTIVE_UNCHECKED
|
|
4851
|
+
},
|
|
4852
|
+
'[data-switch-thumb=""]:disabled ~ &': {
|
|
4853
|
+
opacity: checked ? 1 : 0.38,
|
|
4854
|
+
backgroundColor: checked ? 'surface' : 'on.surface',
|
|
4855
|
+
height: checked ? CIRCLE_SIZE_INACTIVE_CHECKED : CIRCLE_SIZE_INACTIVE_UNCHECKED,
|
|
4856
|
+
width: checked ? CIRCLE_SIZE_INACTIVE_CHECKED : CIRCLE_SIZE_INACTIVE_UNCHECKED
|
|
4857
|
+
}
|
|
4615
4858
|
},
|
|
4859
|
+
"data-switch-circle": "",
|
|
4616
4860
|
role: "presentation",
|
|
4617
4861
|
"aria-hidden": "true"
|
|
4618
4862
|
}, otherProps));
|
|
@@ -4637,13 +4881,14 @@ const SwitchInner = /*#__PURE__*/react$1.forwardRef(function SwitchInner(props,
|
|
|
4637
4881
|
minWidth: "auto",
|
|
4638
4882
|
children: /*#__PURE__*/jsxRuntime.jsxs(Box, {
|
|
4639
4883
|
position: "relative",
|
|
4640
|
-
opacity: disabled ? 0.38 : 1,
|
|
4641
4884
|
children: [/*#__PURE__*/jsxRuntime.jsx(SwitchTrail, {
|
|
4642
|
-
checked: checked
|
|
4885
|
+
checked: checked,
|
|
4886
|
+
disabled: disabled
|
|
4643
4887
|
}), /*#__PURE__*/jsxRuntime.jsxs(SwitchThumb, {
|
|
4644
4888
|
checked: checked,
|
|
4645
4889
|
children: [/*#__PURE__*/jsxRuntime.jsx(RippleBox, _extends__default['default']({
|
|
4646
4890
|
as: Comp,
|
|
4891
|
+
role: "switch",
|
|
4647
4892
|
type: "checkbox",
|
|
4648
4893
|
checked: checked,
|
|
4649
4894
|
onChange: onChange,
|
|
@@ -4655,21 +4900,22 @@ const SwitchInner = /*#__PURE__*/react$1.forwardRef(function SwitchInner(props,
|
|
|
4655
4900
|
hoverOpacity: 0.04,
|
|
4656
4901
|
focusOpacity: 0.12,
|
|
4657
4902
|
center: true,
|
|
4658
|
-
disabled: disabled
|
|
4903
|
+
disabled: disabled,
|
|
4904
|
+
"data-switch-thumb": ""
|
|
4659
4905
|
}, otherProps, {
|
|
4660
4906
|
__css: _extends__default['default']({
|
|
4661
4907
|
top: '50%',
|
|
4662
4908
|
left: '50%',
|
|
4663
4909
|
backgroundColor: 'transparent',
|
|
4664
4910
|
transform: 'translate(-50%, -50%)',
|
|
4665
|
-
width:
|
|
4666
|
-
height:
|
|
4911
|
+
width: '100%',
|
|
4912
|
+
height: '100%',
|
|
4667
4913
|
appearance: 'none',
|
|
4668
4914
|
':focus': {
|
|
4669
4915
|
outline: 'none'
|
|
4670
4916
|
},
|
|
4671
4917
|
border: 'none',
|
|
4672
|
-
borderRadius: '
|
|
4918
|
+
borderRadius: 'full',
|
|
4673
4919
|
zIndex: 1,
|
|
4674
4920
|
position: 'absolute'
|
|
4675
4921
|
}, __css)
|
|
@@ -4916,7 +5162,7 @@ const TabPanel = /*#__PURE__*/react$1.forwardRef(function TabPanel(props, forwar
|
|
|
4916
5162
|
const Table = /*#__PURE__*/react$1.forwardRef((props, ref) => {
|
|
4917
5163
|
const {
|
|
4918
5164
|
children,
|
|
4919
|
-
elevation =
|
|
5165
|
+
elevation = 1
|
|
4920
5166
|
} = props,
|
|
4921
5167
|
rest = _objectWithoutPropertiesLoose__default['default'](props, ["children", "elevation"]);
|
|
4922
5168
|
|
|
@@ -4926,7 +5172,8 @@ const Table = /*#__PURE__*/react$1.forwardRef((props, ref) => {
|
|
|
4926
5172
|
display: "flex",
|
|
4927
5173
|
width: "100%",
|
|
4928
5174
|
flexDirection: "column",
|
|
4929
|
-
elevation: elevation
|
|
5175
|
+
elevation: elevation,
|
|
5176
|
+
darkThemeBackgroundOverlay: elevation
|
|
4930
5177
|
}, rest, {
|
|
4931
5178
|
children: children
|
|
4932
5179
|
}));
|
|
@@ -5090,6 +5337,7 @@ exports.BaseLine = BaseLine;
|
|
|
5090
5337
|
exports.BottomSheet = BottomSheet;
|
|
5091
5338
|
exports.Box = Box;
|
|
5092
5339
|
exports.Button = Button;
|
|
5340
|
+
exports.ButtonGroup = ButtonGroup;
|
|
5093
5341
|
exports.CheckBox = CheckBox;
|
|
5094
5342
|
exports.Chip = ButtonChip;
|
|
5095
5343
|
exports.ChoiceChip = ChoiceChip;
|
|
@@ -5151,6 +5399,7 @@ exports.alpha = alpha;
|
|
|
5151
5399
|
exports.appearAnimation = appearAnimation;
|
|
5152
5400
|
exports.base = base;
|
|
5153
5401
|
exports.getBackgroundOverlay = getBackgroundOverlay;
|
|
5402
|
+
exports.getColorOverlay = getColorOverlay;
|
|
5154
5403
|
exports.getDarkThemeBackgroundOverlay = getDarkThemeBackgroundOverlay;
|
|
5155
5404
|
exports.getTheme = getTheme;
|
|
5156
5405
|
exports.rippleStyle = rippleStyle;
|