@basic-ui/material 1.0.0-alpha.0 → 1.0.0-alpha.11
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 +1383 -1313
- package/build/cjs/index.js.map +1 -1
- package/build/esm/Alert/Alert.d.ts +2 -2
- package/build/esm/Alert/Alert.js +10 -9
- package/build/esm/Alert/Alert.js.map +1 -1
- package/build/esm/Alert/index.d.ts +0 -0
- package/build/esm/Alert/index.js.map +1 -1
- package/build/esm/AppBar/AppBar.d.ts +4 -4
- package/build/esm/AppBar/AppBar.js +28 -19
- package/build/esm/AppBar/AppBar.js.map +1 -1
- package/build/esm/AppBar/AppBarButton.d.ts +2 -2
- package/build/esm/AppBar/AppBarButton.js +9 -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/AppBar/index.d.ts +0 -0
- package/build/esm/AppBar/index.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/Badge/index.d.ts +0 -0
- package/build/esm/Badge/index.js.map +1 -1
- package/build/esm/BaseLine/BaseLine.d.ts +0 -0
- package/build/esm/BaseLine/BaseLine.js +4 -4
- package/build/esm/BaseLine/BaseLine.js.map +1 -1
- package/build/esm/BaseLine/index.d.ts +0 -0
- package/build/esm/BaseLine/index.js.map +1 -1
- package/build/esm/BottomSheet/BottomSheet.d.ts +2 -2
- package/build/esm/BottomSheet/BottomSheet.js +12 -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/BottomSheet/index.d.ts +0 -0
- package/build/esm/BottomSheet/index.js.map +1 -1
- package/build/esm/Box/Box.d.ts +8 -8
- package/build/esm/Box/Box.js +26 -19
- package/build/esm/Box/Box.js.map +1 -1
- package/build/esm/Box/index.d.ts +0 -0
- package/build/esm/Box/index.js.map +1 -1
- package/build/esm/Button/BaseButton.d.ts +4 -4
- package/build/esm/Button/BaseButton.js +14 -15
- package/build/esm/Button/BaseButton.js.map +1 -1
- package/build/esm/Button/Button.d.ts +5 -5
- package/build/esm/Button/Button.js +29 -24
- package/build/esm/Button/Button.js.map +1 -1
- package/build/esm/Button/ButtonGroup.d.ts +4 -4
- package/build/esm/Button/ButtonGroup.js +17 -13
- package/build/esm/Button/ButtonGroup.js.map +1 -1
- package/build/esm/Button/FilledButton.d.ts +2 -2
- package/build/esm/Button/FilledButton.js +57 -51
- package/build/esm/Button/FilledButton.js.map +1 -1
- package/build/esm/Button/FloatingActionButton.d.ts +1 -1
- package/build/esm/Button/FloatingActionButton.js +1 -1
- package/build/esm/Button/FloatingActionButton.js.map +1 -1
- package/build/esm/Button/IconButton.d.ts +1 -1
- package/build/esm/Button/IconButton.js +1 -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 +27 -25
- package/build/esm/Button/OutlinedButton.js.map +1 -1
- package/build/esm/Button/TransparentButton.d.ts +2 -2
- package/build/esm/Button/TransparentButton.js +45 -41
- package/build/esm/Button/TransparentButton.js.map +1 -1
- package/build/esm/Button/context.js +4 -2
- package/build/esm/Button/context.js.map +1 -1
- package/build/esm/Button/index.d.ts +0 -0
- package/build/esm/Button/index.js.map +1 -1
- package/build/esm/CheckBox/CheckBox.d.ts +6 -6
- package/build/esm/CheckBox/CheckBox.js +45 -37
- package/build/esm/CheckBox/CheckBox.js.map +1 -1
- package/build/esm/CheckBox/CheckBoxIcon.d.ts +5 -5
- package/build/esm/CheckBox/CheckBoxIcon.js +19 -16
- package/build/esm/CheckBox/CheckBoxIcon.js.map +1 -1
- package/build/esm/CheckBox/CheckPath.d.ts +0 -1
- package/build/esm/CheckBox/CheckPath.js +15 -14
- package/build/esm/CheckBox/CheckPath.js.map +1 -1
- package/build/esm/CheckBox/IndeterminatePath.d.ts +0 -1
- package/build/esm/CheckBox/IndeterminatePath.js +14 -13
- package/build/esm/CheckBox/IndeterminatePath.js.map +1 -1
- package/build/esm/CheckBox/index.d.ts +0 -0
- package/build/esm/CheckBox/index.js.map +1 -1
- package/build/esm/Chip/ButtonChip.d.ts +5 -5
- package/build/esm/Chip/ButtonChip.js +17 -17
- package/build/esm/Chip/ButtonChip.js.map +1 -1
- package/build/esm/Chip/Chip.d.ts +0 -0
- package/build/esm/Chip/Chip.js.map +1 -1
- package/build/esm/Chip/ChipBase.d.ts +4 -4
- package/build/esm/Chip/ChipBase.js +31 -26
- package/build/esm/Chip/ChipBase.js.map +1 -1
- package/build/esm/Chip/ChoiceChip.d.ts +6 -6
- package/build/esm/Chip/ChoiceChip.js +28 -28
- package/build/esm/Chip/ChoiceChip.js.map +1 -1
- package/build/esm/Chip/index.d.ts +0 -0
- package/build/esm/Chip/index.js.map +1 -1
- package/build/esm/Combobox/Combobox.d.ts +20 -20
- package/build/esm/Combobox/Combobox.js +62 -60
- package/build/esm/Combobox/Combobox.js.map +1 -1
- package/build/esm/Combobox/index.d.ts +0 -0
- package/build/esm/Combobox/index.js.map +1 -1
- package/build/esm/Dialog/Dialog.d.ts +5 -5
- package/build/esm/Dialog/Dialog.js +27 -27
- 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 +5 -6
- package/build/esm/Dialog/DialogContainer.js.map +1 -1
- package/build/esm/Dialog/DialogSurface.d.ts +4 -4
- package/build/esm/Dialog/DialogSurface.js +15 -15
- package/build/esm/Dialog/DialogSurface.js.map +1 -1
- package/build/esm/Dialog/Scrim.d.ts +1 -1
- package/build/esm/Dialog/Scrim.js +5 -6
- package/build/esm/Dialog/Scrim.js.map +1 -1
- package/build/esm/Dialog/index.d.ts +0 -0
- package/build/esm/Dialog/index.js +1 -0
- package/build/esm/Dialog/index.js.map +1 -1
- package/build/esm/Dialog/useDialogAnimation.d.ts +0 -0
- package/build/esm/Dialog/useDialogAnimation.js +22 -21
- package/build/esm/Dialog/useDialogAnimation.js.map +1 -1
- package/build/esm/Divider/Divider.d.ts +4 -4
- package/build/esm/Divider/Divider.js +14 -13
- package/build/esm/Divider/Divider.js.map +1 -1
- package/build/esm/Divider/index.d.ts +0 -0
- package/build/esm/Divider/index.js.map +1 -1
- package/build/esm/FloatingLabel/FloatingLabel.d.ts +4 -4
- package/build/esm/FloatingLabel/FloatingLabel.js +31 -26
- package/build/esm/FloatingLabel/FloatingLabel.js.map +1 -1
- package/build/esm/FloatingLabel/index.d.ts +0 -0
- package/build/esm/FloatingLabel/index.js.map +1 -1
- package/build/esm/LineRipple/LineRipple.d.ts +4 -4
- package/build/esm/LineRipple/LineRipple.js +30 -20
- package/build/esm/LineRipple/LineRipple.js.map +1 -1
- package/build/esm/LineRipple/index.d.ts +0 -0
- package/build/esm/LineRipple/index.js.map +1 -1
- package/build/esm/Link/Link.d.ts +4 -4
- package/build/esm/Link/Link.js +10 -9
- package/build/esm/Link/Link.js.map +1 -1
- package/build/esm/Link/index.d.ts +0 -0
- package/build/esm/Link/index.js.map +1 -1
- package/build/esm/List/List.d.ts +6 -6
- package/build/esm/List/List.js +20 -13
- package/build/esm/List/List.js.map +1 -1
- package/build/esm/List/index.d.ts +0 -0
- package/build/esm/List/index.js.map +1 -1
- package/build/esm/ListItem/ListItem.d.ts +6 -6
- package/build/esm/ListItem/ListItem.js +28 -24
- package/build/esm/ListItem/ListItem.js.map +1 -1
- package/build/esm/ListItem/ListItemText.d.ts +6 -6
- package/build/esm/ListItem/ListItemText.js +11 -11
- package/build/esm/ListItem/ListItemText.js.map +1 -1
- package/build/esm/ListItem/index.d.ts +0 -0
- package/build/esm/ListItem/index.js.map +1 -1
- package/build/esm/Menu/Menu.d.ts +11 -11
- package/build/esm/Menu/Menu.js +30 -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/Menu/index.d.ts +0 -0
- package/build/esm/Menu/index.js.map +1 -1
- package/build/esm/NavRail/NavRailItem.d.ts +15 -0
- package/build/esm/NavRail/NavRailItem.js +150 -0
- package/build/esm/NavRail/NavRailItem.js.map +1 -0
- package/build/esm/NavRail/index.d.ts +1 -0
- package/build/esm/NavRail/index.js +2 -0
- package/build/esm/NavRail/index.js.map +1 -0
- package/build/esm/NotchedOutline/NotchedOutline.d.ts +5 -5
- package/build/esm/NotchedOutline/NotchedOutline.js +27 -23
- package/build/esm/NotchedOutline/NotchedOutline.js.map +1 -1
- package/build/esm/NotchedOutline/context.d.ts +0 -0
- package/build/esm/NotchedOutline/context.js +6 -5
- package/build/esm/NotchedOutline/context.js.map +1 -1
- package/build/esm/NotchedOutline/index.d.ts +0 -0
- package/build/esm/NotchedOutline/index.js.map +1 -1
- package/build/esm/NotchedOutline/styledComponents.d.ts +114 -28
- package/build/esm/NotchedOutline/styledComponents.js +54 -58
- package/build/esm/NotchedOutline/styledComponents.js.map +1 -1
- package/build/esm/Paper/Paper.d.ts +6 -5
- package/build/esm/Paper/Paper.js +18 -16
- package/build/esm/Paper/Paper.js.map +1 -1
- package/build/esm/Paper/index.d.ts +0 -0
- package/build/esm/Paper/index.js.map +1 -1
- package/build/esm/ProgressSpinner/ProgressSpinner.d.ts +1 -1
- package/build/esm/ProgressSpinner/ProgressSpinner.js +28 -28
- package/build/esm/ProgressSpinner/ProgressSpinner.js.map +1 -1
- package/build/esm/ProgressSpinner/index.d.ts +0 -0
- package/build/esm/ProgressSpinner/index.js.map +1 -1
- package/build/esm/RadioButton/RadioButton.d.ts +1 -1
- package/build/esm/RadioButton/RadioButton.js +18 -19
- package/build/esm/RadioButton/RadioButton.js.map +1 -1
- package/build/esm/RadioButton/RadioButtonIcon.d.ts +3 -3
- package/build/esm/RadioButton/RadioButtonIcon.js +9 -9
- package/build/esm/RadioButton/RadioButtonIcon.js.map +1 -1
- package/build/esm/RadioButton/RadioGroup.d.ts +3 -3
- package/build/esm/RadioButton/RadioGroup.js +6 -4
- package/build/esm/RadioButton/RadioGroup.js.map +1 -1
- package/build/esm/RadioButton/index.d.ts +0 -0
- package/build/esm/RadioButton/index.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 -5
- package/build/esm/Ripple/RippleBox.js +26 -18
- package/build/esm/Ripple/RippleBox.js.map +1 -1
- package/build/esm/Ripple/constants.d.ts +0 -0
- package/build/esm/Ripple/constants.js +7 -7
- package/build/esm/Ripple/constants.js.map +1 -1
- package/build/esm/Ripple/index.d.ts +0 -0
- package/build/esm/Ripple/index.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.d.ts +0 -0
- package/build/esm/Ripple/useRipple.js +57 -50
- package/build/esm/Ripple/useRipple.js.map +1 -1
- package/build/esm/Ripple/useRippleHandlers.d.ts +4 -4
- package/build/esm/Ripple/useRippleHandlers.js +14 -15
- package/build/esm/Ripple/useRippleHandlers.js.map +1 -1
- package/build/esm/Ripple/useRippleSurface.d.ts +5 -5
- package/build/esm/Ripple/useRippleSurface.js +92 -87
- package/build/esm/Ripple/useRippleSurface.js.map +1 -1
- package/build/esm/Select/Select.d.ts +8 -8
- package/build/esm/Select/Select.js +72 -50
- package/build/esm/Select/Select.js.map +1 -1
- package/build/esm/Select/SelectIcon.d.ts +4 -4
- package/build/esm/Select/SelectIcon.js +10 -10
- package/build/esm/Select/SelectIcon.js.map +1 -1
- package/build/esm/Select/context.d.ts +2 -2
- package/build/esm/Select/context.js +7 -6
- package/build/esm/Select/context.js.map +1 -1
- package/build/esm/Select/defaultRender.d.ts +2 -1
- package/build/esm/Select/defaultRender.js +12 -10
- package/build/esm/Select/defaultRender.js.map +1 -1
- package/build/esm/Select/index.d.ts +0 -0
- package/build/esm/Select/index.js.map +1 -1
- package/build/esm/Select/styledComponents.d.ts +10 -10
- package/build/esm/Select/styledComponents.js +20 -21
- package/build/esm/Select/styledComponents.js.map +1 -1
- package/build/esm/SelectItem/SelectItem.d.ts +2 -2
- package/build/esm/SelectItem/SelectItem.js +23 -23
- package/build/esm/SelectItem/SelectItem.js.map +1 -1
- package/build/esm/SelectItem/index.d.ts +0 -0
- package/build/esm/SelectItem/index.js.map +1 -1
- package/build/esm/SelectionControl/SelectionControlLabel.d.ts +6 -6
- package/build/esm/SelectionControl/SelectionControlLabel.js +7 -7
- package/build/esm/SelectionControl/SelectionControlLabel.js.map +1 -1
- package/build/esm/SelectionControl/SelectionControlText.d.ts +5 -5
- package/build/esm/SelectionControl/SelectionControlText.js +10 -10
- package/build/esm/SelectionControl/SelectionControlText.js.map +1 -1
- package/build/esm/SelectionControl/index.d.ts +0 -0
- package/build/esm/SelectionControl/index.js.map +1 -1
- package/build/esm/Skeleton/DelayAppearance.d.ts +5 -5
- package/build/esm/Skeleton/DelayAppearance.js +9 -9
- package/build/esm/Skeleton/DelayAppearance.js.map +1 -1
- package/build/esm/Skeleton/Skeleton.d.ts +7 -7
- package/build/esm/Skeleton/Skeleton.js +13 -12
- 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/Skeleton/index.d.ts +0 -0
- package/build/esm/Skeleton/index.js.map +1 -1
- package/build/esm/Snackbar/Snackbar.d.ts +4 -4
- package/build/esm/Snackbar/Snackbar.js +28 -28
- package/build/esm/Snackbar/Snackbar.js.map +1 -1
- package/build/esm/Snackbar/Stack.d.ts +2 -4
- package/build/esm/Snackbar/Stack.js +80 -66
- package/build/esm/Snackbar/Stack.js.map +1 -1
- package/build/esm/Snackbar/index.d.ts +0 -0
- package/build/esm/Snackbar/index.js.map +1 -1
- package/build/esm/Snackbar/useSnackbarAnimation.d.ts +2 -2
- package/build/esm/Snackbar/useSnackbarAnimation.js +121 -85
- package/build/esm/Snackbar/useSnackbarAnimation.js.map +1 -1
- package/build/esm/Switch/Switch.d.ts +5 -6
- package/build/esm/Switch/Switch.js +24 -24
- package/build/esm/Switch/Switch.js.map +1 -1
- package/build/esm/Switch/index.d.ts +0 -0
- package/build/esm/Switch/index.js.map +1 -1
- package/build/esm/Switch/styledComponents.d.ts +0 -0
- package/build/esm/Switch/styledComponents.js +28 -26
- package/build/esm/Switch/styledComponents.js.map +1 -1
- package/build/esm/Tab/Tab.d.ts +5 -5
- package/build/esm/Tab/Tab.js +22 -23
- package/build/esm/Tab/Tab.js.map +1 -1
- package/build/esm/Tab/TabList.d.ts +3 -3
- package/build/esm/Tab/TabList.js +20 -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 +10 -11
- package/build/esm/Tab/TabPanel.js.map +1 -1
- package/build/esm/Tab/TabPanels.d.ts +0 -0
- package/build/esm/Tab/TabPanels.js.map +1 -1
- package/build/esm/Tab/Tabs.d.ts +0 -0
- package/build/esm/Tab/Tabs.js.map +1 -1
- package/build/esm/Tab/context.d.ts +0 -0
- package/build/esm/Tab/context.js +6 -5
- package/build/esm/Tab/context.js.map +1 -1
- package/build/esm/Tab/index.d.ts +0 -0
- package/build/esm/Tab/index.js.map +1 -1
- package/build/esm/TabIndicator/TabIndicator.d.ts +2 -2
- package/build/esm/TabIndicator/TabIndicator.js +25 -22
- package/build/esm/TabIndicator/TabIndicator.js.map +1 -1
- package/build/esm/TabIndicator/context.d.ts +2 -2
- package/build/esm/TabIndicator/context.js +6 -5
- package/build/esm/TabIndicator/context.js.map +1 -1
- package/build/esm/TabIndicator/index.d.ts +0 -0
- package/build/esm/TabIndicator/index.js.map +1 -1
- package/build/esm/Table/Table.d.ts +2 -2
- package/build/esm/Table/Table.js +11 -10
- package/build/esm/Table/Table.js.map +1 -1
- package/build/esm/Table/TableBody.d.ts +1 -1
- package/build/esm/Table/TableBody.js +7 -8
- package/build/esm/Table/TableBody.js.map +1 -1
- package/build/esm/Table/TableCell.d.ts +1 -1
- package/build/esm/Table/TableCell.js +9 -10
- package/build/esm/Table/TableCell.js.map +1 -1
- package/build/esm/Table/TableHead.d.ts +1 -1
- package/build/esm/Table/TableHead.js +8 -9
- package/build/esm/Table/TableHead.js.map +1 -1
- package/build/esm/Table/TableRow.d.ts +2 -2
- package/build/esm/Table/TableRow.js +9 -10
- package/build/esm/Table/TableRow.js.map +1 -1
- package/build/esm/Table/context.d.ts +0 -0
- package/build/esm/Table/context.js +6 -5
- package/build/esm/Table/context.js.map +1 -1
- package/build/esm/Table/index.d.ts +0 -0
- package/build/esm/Table/index.js.map +1 -1
- package/build/esm/Text/LoremIpsum.d.ts +1 -1
- package/build/esm/Text/LoremIpsum.js +7 -7
- package/build/esm/Text/LoremIpsum.js.map +1 -1
- package/build/esm/Text/Text.d.ts +9 -5
- package/build/esm/Text/Text.js +13 -9
- package/build/esm/Text/Text.js.map +1 -1
- package/build/esm/Text/index.d.ts +0 -0
- package/build/esm/Text/index.js.map +1 -1
- package/build/esm/TextField/FilledContainer.d.ts +5 -5
- package/build/esm/TextField/FilledContainer.js +60 -57
- package/build/esm/TextField/FilledContainer.js.map +1 -1
- package/build/esm/TextField/HelperText.d.ts +6 -6
- package/build/esm/TextField/HelperText.js +17 -16
- package/build/esm/TextField/HelperText.js.map +1 -1
- package/build/esm/TextField/IconContainer.d.ts +2 -3
- package/build/esm/TextField/IconContainer.js +14 -23
- package/build/esm/TextField/IconContainer.js.map +1 -1
- package/build/esm/TextField/Input.d.ts +5 -5
- package/build/esm/TextField/Input.js +23 -21
- package/build/esm/TextField/Input.js.map +1 -1
- package/build/esm/TextField/OutlinedContainer.d.ts +6 -6
- package/build/esm/TextField/OutlinedContainer.js +30 -24
- package/build/esm/TextField/OutlinedContainer.js.map +1 -1
- package/build/esm/TextField/TextField.d.ts +7 -7
- package/build/esm/TextField/TextField.js +61 -43
- 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/TextField/index.d.ts +0 -0
- package/build/esm/TextField/index.js.map +1 -1
- package/build/esm/ThemeExplorer/ColorPicker.d.ts +4 -4
- package/build/esm/ThemeExplorer/ColorPicker.js +17 -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 +46 -25
- package/build/esm/ThemeExplorer/TextFieldColorPicker.js.map +1 -1
- package/build/esm/ThemeExplorer/ThemeBuilder.d.ts +9 -0
- package/build/esm/ThemeExplorer/ThemeBuilder.js +244 -0
- package/build/esm/ThemeExplorer/ThemeBuilder.js.map +1 -0
- package/build/esm/ThemeExplorer/ThemeColors.d.ts +3 -3
- package/build/esm/ThemeExplorer/ThemeColors.js +4 -4
- package/build/esm/ThemeExplorer/ThemeColors.js.map +1 -1
- package/build/esm/ThemeExplorer/components.d.ts +7 -7
- package/build/esm/ThemeExplorer/components.js +82 -70
- package/build/esm/ThemeExplorer/components.js.map +1 -1
- package/build/esm/ThemeExplorer/index.d.ts +1 -0
- package/build/esm/ThemeExplorer/index.js +2 -0
- package/build/esm/ThemeExplorer/index.js.map +1 -0
- 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 +11 -5
- package/build/esm/ThemeExplorer/useDeferredColor.js.map +1 -1
- package/build/esm/ThemeExplorer/useLocalStorageCachedState.d.ts +1 -1
- package/build/esm/ThemeExplorer/useLocalStorageCachedState.js +10 -3
- package/build/esm/ThemeExplorer/useLocalStorageCachedState.js.map +1 -1
- package/build/esm/Tooltip/Tooltip.d.ts +5 -5
- package/build/esm/Tooltip/Tooltip.js +13 -16
- package/build/esm/Tooltip/Tooltip.js.map +1 -1
- package/build/esm/Tooltip/index.d.ts +0 -0
- package/build/esm/Tooltip/index.js.map +1 -1
- package/build/esm/color.d.ts +5 -3
- package/build/esm/color.js +28 -17
- package/build/esm/color.js.map +1 -1
- package/build/esm/css.d.ts +0 -0
- package/build/esm/css.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/index.d.ts +2 -1
- package/build/esm/index.js +2 -1
- package/build/esm/index.js.map +1 -1
- package/build/esm/motion.d.ts +7 -0
- package/build/esm/motion.js +8 -0
- package/build/esm/motion.js.map +1 -0
- package/build/esm/theme/index.d.ts +0 -0
- package/build/esm/theme/index.js.map +1 -1
- package/build/esm/theme/theme.d.ts +114 -28
- package/build/esm/theme/theme.js +47 -39
- package/build/esm/theme/theme.js.map +1 -1
- package/build/esm/theme/typography-raleway.d.ts +0 -0
- 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.d.ts +0 -0
- 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 +115 -29
- package/build/esm/theme/useTheme.js +1 -1
- package/build/esm/theme/useTheme.js.map +1 -1
- package/build/tsconfig-build.tsbuildinfo +1 -0
- package/package.json +9 -8
- package/src/Alert/Alert.tsx +4 -2
- package/src/AppBar/AppBar.story.tsx +7 -6
- package/src/AppBar/AppBar.tsx +8 -5
- 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 +11 -7
- package/src/Box/Box.tsx +25 -24
- package/src/Button/BaseButton.tsx +6 -12
- package/src/Button/Button.story.tsx +22 -4
- package/src/Button/Button.tsx +6 -5
- package/src/Button/ButtonGroup.tsx +5 -3
- package/src/Button/FilledButton.tsx +7 -11
- package/src/Button/FloatingActionButton.tsx +1 -1
- package/src/Button/IconButton.tsx +1 -1
- package/src/Button/OutlinedButton.tsx +3 -2
- package/src/Button/SpinnerButton.story.tsx +10 -11
- package/src/Button/TransparentButton.tsx +4 -4
- package/src/Button/context.tsx +1 -0
- package/src/CheckBox/CheckBox.story.tsx +9 -7
- package/src/CheckBox/CheckBox.tsx +13 -13
- package/src/CheckBox/CheckBoxIcon.tsx +8 -6
- package/src/Chip/ButtonChip.tsx +8 -6
- package/src/Chip/Chip.story.tsx +1 -2
- package/src/Chip/ChipBase.tsx +8 -6
- package/src/Chip/ChoiceChip.tsx +15 -12
- package/src/Combobox/Combobox.story.tsx +4 -3
- package/src/Combobox/Combobox.tsx +36 -25
- package/src/Dialog/Dialog.story.tsx +3 -1
- package/src/Dialog/Dialog.tsx +9 -4
- package/src/Dialog/DialogBackdrop.tsx +8 -8
- package/src/Dialog/DialogContainer.tsx +3 -1
- package/src/Dialog/DialogSurface.tsx +9 -9
- package/src/Dialog/Scrim.tsx +3 -1
- package/src/Dialog/useDialogAnimation.tsx +3 -4
- package/src/Divider/Divider.tsx +5 -3
- package/src/FloatingLabel/FloatingLabel.story.tsx +1 -0
- package/src/FloatingLabel/FloatingLabel.tsx +9 -7
- package/src/LineRipple/LineRipple.story.tsx +2 -1
- package/src/LineRipple/LineRipple.tsx +8 -5
- package/src/Link/Link.tsx +5 -6
- package/src/List/List.tsx +8 -5
- package/src/ListItem/ListItem.story.tsx +1 -0
- package/src/ListItem/ListItem.tsx +9 -7
- package/src/ListItem/ListItemText.tsx +7 -7
- package/src/Menu/Menu.tsx +23 -15
- package/src/Menu/animation.ts +1 -1
- package/src/NavRail/NavRail.story.tsx +190 -0
- package/src/NavRail/NavRailItem.tsx +176 -0
- package/src/NavRail/index.ts +1 -0
- package/src/NotchedOutline/NotchedOutline.story.tsx +2 -1
- package/src/NotchedOutline/NotchedOutline.tsx +5 -5
- package/src/NotchedOutline/styledComponents.ts +5 -3
- package/src/Paper/Paper.story.tsx +5 -4
- package/src/Paper/Paper.tsx +24 -11
- package/src/ProgressSpinner/ProgressSpinner.story.tsx +1 -0
- package/src/ProgressSpinner/ProgressSpinner.tsx +14 -11
- package/src/RadioButton/RadioButton.story.tsx +3 -2
- package/src/RadioButton/RadioButton.tsx +10 -8
- package/src/RadioButton/RadioButtonIcon.tsx +5 -5
- package/src/RadioButton/RadioGroup.tsx +5 -5
- package/src/Ripple/Ripple.story.tsx +9 -3
- package/src/Ripple/Ripple.tsx +2 -1
- package/src/Ripple/RippleBox.tsx +8 -5
- package/src/Ripple/keyframes.ts +2 -1
- package/src/Ripple/useRipple.ts +1 -0
- package/src/Ripple/useRippleHandlers.ts +6 -4
- package/src/Ripple/useRippleSurface.ts +82 -64
- package/src/Select/PaymentMethodSelect.story.tsx +3 -1
- package/src/Select/Select.story.tsx +1 -0
- package/src/Select/Select.tsx +16 -9
- package/src/Select/SelectIcon.tsx +8 -6
- package/src/Select/context.ts +2 -1
- package/src/Select/defaultRender.ts +14 -13
- package/src/Select/styledComponents.tsx +17 -13
- package/src/SelectItem/SelectItem.tsx +4 -2
- package/src/SelectionControl/SelectionControlLabel.tsx +8 -9
- package/src/SelectionControl/SelectionControlText.tsx +6 -4
- package/src/Skeleton/DelayAppearance.tsx +6 -4
- package/src/Skeleton/Skeleton.story.tsx +2 -2
- package/src/Skeleton/Skeleton.tsx +9 -7
- package/src/Skeleton/animation.ts +3 -2
- package/src/Snackbar/Snackbar.story.tsx +1 -0
- package/src/Snackbar/Snackbar.tsx +9 -7
- package/src/Snackbar/Stack.tsx +7 -10
- package/src/Snackbar/useSnackbarAnimation.ts +6 -3
- package/src/Switch/Switch.tsx +13 -13
- package/src/Switch/styledComponents.tsx +16 -13
- package/src/Tab/Tab.tsx +10 -10
- package/src/Tab/TabList.tsx +5 -5
- package/src/Tab/TabPanel.tsx +5 -5
- package/src/TabIndicator/TabIndicator.tsx +8 -4
- package/src/TabIndicator/context.ts +2 -1
- package/src/Table/Table.tsx +4 -1
- 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 +5 -3
- package/src/Text/LoremIpsum.tsx +3 -2
- package/src/Text/Text.story.tsx +42 -7
- package/src/Text/Text.tsx +28 -6
- package/src/TextField/FilledContainer.tsx +7 -5
- package/src/TextField/HelperText.tsx +7 -6
- package/src/TextField/IconContainer.tsx +3 -3
- package/src/TextField/Input.tsx +9 -6
- package/src/TextField/OutlinedContainer.tsx +7 -5
- package/src/TextField/TextField.story.tsx +1 -0
- package/src/TextField/TextField.tsx +9 -6
- package/src/ThemeExplorer/ColorPicker.tsx +19 -16
- package/src/ThemeExplorer/TextFieldColorPicker.tsx +5 -2
- package/src/ThemeExplorer/ThemeBuilder.story.tsx +1 -163
- package/src/ThemeExplorer/ThemeBuilder.tsx +198 -0
- package/src/ThemeExplorer/ThemeColors.tsx +3 -2
- package/src/ThemeExplorer/components.tsx +27 -32
- package/src/ThemeExplorer/index.ts +1 -0
- package/src/ThemeExplorer/makeColorScheme.tsx +2 -1
- package/src/ThemeExplorer/useDeferredColor.tsx +4 -4
- package/src/ThemeExplorer/useLocalStorageCachedState.ts +2 -2
- package/src/Tooltip/Tooltip.story.tsx +3 -2
- package/src/Tooltip/Tooltip.tsx +15 -13
- package/src/color.ts +44 -21
- package/src/hooks/useAnimation.ts +2 -1
- package/src/index.ts +2 -1
- package/src/motion.ts +7 -0
- package/src/theme/theme.ts +51 -37
- package/src/theme/useTheme.ts +3 -1
- package/build/esm/ColorMode/ColorModeProvider.d.ts +0 -7
- package/build/esm/ColorMode/ColorModeProvider.js +0 -79
- package/build/esm/ColorMode/ColorModeProvider.js.map +0 -1
- package/build/esm/ColorMode/color-mode.d.ts +0 -8
- package/build/esm/ColorMode/color-mode.js +0 -11
- package/build/esm/ColorMode/color-mode.js.map +0 -1
- package/build/esm/ColorMode/color-vars.d.ts +0 -4
- package/build/esm/ColorMode/color-vars.js +0 -50
- package/build/esm/ColorMode/color-vars.js.map +0 -1
- package/build/esm/ColorMode/constants.d.ts +0 -3
- package/build/esm/ColorMode/constants.js +0 -5
- package/build/esm/ColorMode/constants.js.map +0 -1
- package/build/esm/ColorMode/index.d.ts +0 -4
- package/build/esm/ColorMode/index.js +0 -5
- package/build/esm/ColorMode/index.js.map +0 -1
- package/build/esm/ListItem/context.d.ts +0 -7
- package/build/esm/ListItem/context.js +0 -10
- package/build/esm/ListItem/context.js.map +0 -1
- package/build/tsconfig.tsbuildinfo +0 -1
- package/src/ColorMode/ColorModeProvider.tsx +0 -95
- package/src/ColorMode/color-mode.ts +0 -20
- package/src/ColorMode/color-vars.ts +0 -56
- package/src/ColorMode/constants.ts +0 -5
- package/src/ColorMode/index.ts +0 -4
- package/src/ColorMode/tests/color-vars.test.ts +0 -9
- package/src/ThemeExplorer/ThemeExplorer.story.tsx +0 -42
package/build/cjs/index.js
CHANGED
|
@@ -2,28 +2,44 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var _extends = require('@babel/runtime/helpers/extends');
|
|
6
5
|
var css = require('@styled-system/css');
|
|
7
6
|
var polished = require('polished');
|
|
8
|
-
var
|
|
9
|
-
var _objectWithoutPropertiesLoose = require('@babel/runtime/helpers/objectWithoutPropertiesLoose');
|
|
7
|
+
var dynamicTheme = require('@basic-ui/dynamic-theme');
|
|
10
8
|
var react$1 = require('react');
|
|
11
9
|
var jsxRuntime = require('react/jsx-runtime');
|
|
12
|
-
var react = require('@emotion/react');
|
|
13
10
|
var _styled = require('@emotion/styled/base');
|
|
14
11
|
var styledSystem = require('styled-system');
|
|
15
12
|
var shouldForwardProp = require('@styled-system/should-forward-prop');
|
|
13
|
+
var react = require('@emotion/react');
|
|
16
14
|
var core = require('@basic-ui/core');
|
|
15
|
+
var hash = require('@emotion/hash');
|
|
17
16
|
|
|
18
17
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
19
18
|
|
|
20
|
-
var _extends__default = /*#__PURE__*/_interopDefaultLegacy(_extends);
|
|
21
|
-
var hash__default = /*#__PURE__*/_interopDefaultLegacy(hash);
|
|
22
|
-
var _objectWithoutPropertiesLoose__default = /*#__PURE__*/_interopDefaultLegacy(_objectWithoutPropertiesLoose);
|
|
23
19
|
var _styled__default = /*#__PURE__*/_interopDefaultLegacy(_styled);
|
|
24
20
|
var shouldForwardProp__default = /*#__PURE__*/_interopDefaultLegacy(shouldForwardProp);
|
|
21
|
+
var hash__default = /*#__PURE__*/_interopDefaultLegacy(hash);
|
|
22
|
+
|
|
23
|
+
const EASING_EMPHASIZED = 'cubic-bezier(0.2, 0, 0, 1)';
|
|
24
|
+
const EASING_EMPHASIZED_ACCELERATE = 'cubic-bezier(0.3, 0, 0.8, 0.15)';
|
|
25
|
+
const EASING_EMPHASIZED_DECELERATE = 'cubic-bezier(0.05, 0.7, 0.1, 1)';
|
|
26
|
+
const EASING_LINEAR = 'cubic-bezier(0, 0, 1, 1)';
|
|
27
|
+
const EASING_STANDARD = 'cubic-bezier(0.2, 0, 0, 1)';
|
|
28
|
+
const EASING_STANDARD_ACCELERATE = 'cubic-bezier(0.3, 0, 1, 1)';
|
|
29
|
+
const EASING_STANDARD_DECELERATE = 'cubic-bezier(0, 0, 0, 1)';
|
|
25
30
|
|
|
26
31
|
// material theme preset
|
|
32
|
+
|
|
33
|
+
function font(fontFamily, lineHeight, fontSize, letterSpacing, weight) {
|
|
34
|
+
return {
|
|
35
|
+
fontFamily,
|
|
36
|
+
lineHeight: polished.rem(lineHeight),
|
|
37
|
+
fontSize: polished.rem(fontSize),
|
|
38
|
+
letterSpacing: polished.rem(letterSpacing),
|
|
39
|
+
fontWeight: weight
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
|
|
27
43
|
const theme = {
|
|
28
44
|
googleFonts: 'https://fonts.googleapis.com/css?family=Roboto+Mono|Roboto:300,400,500,600,700&display=swap',
|
|
29
45
|
colors: {
|
|
@@ -103,44 +119,19 @@ const theme = {
|
|
|
103
119
|
full: "6249.9375rem",
|
|
104
120
|
circle: '100%'
|
|
105
121
|
},
|
|
106
|
-
shadowsOriginal: {
|
|
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)',
|
|
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)',
|
|
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)',
|
|
110
|
-
3: '0 3px 3px -2px rgba(0,0,0,0.2),0 3px 4px 0 rgba(0,0,0,0.14),0 1px 8px 0 rgba(0,0,0,0.12)',
|
|
111
|
-
4: '0 2px 4px -1px rgba(0,0,0,0.2),0 4px 5px 0 rgba(0,0,0,0.14),0 1px 10px 0 rgba(0,0,0,0.12)',
|
|
112
|
-
5: '0 3px 5px -1px rgba(0,0,0,0.2),0 5px 8px 0 rgba(0,0,0,0.14),0 1px 14px 0 rgba(0,0,0,0.12)',
|
|
113
|
-
6: '0 3px 5px -1px rgba(0,0,0,0.2),0 6px 10px 0 rgba(0,0,0,0.14),0 1px 18px 0 rgba(0,0,0,0.12)',
|
|
114
|
-
7: '0 4px 5px -2px rgba(0,0,0,0.2),0 7px 10px 1px rgba(0,0,0,0.14),0 2px 16px 1px rgba(0,0,0,0.12)',
|
|
115
|
-
8: '0 5px 5px -3px rgba(0,0,0,0.2),0 8px 10px 1px rgba(0,0,0,0.14),0 3px 14px 2px rgba(0,0,0,0.12)',
|
|
116
|
-
9: '0 5px 6px -3px rgba(0,0,0,0.2),0 9px 12px 1px rgba(0,0,0,0.14),0 3px 16px 2px rgba(0,0,0,0.12)',
|
|
117
|
-
10: '0 6px 6px -3px rgba(0,0,0,0.2),0 10px 14px 1px rgba(0,0,0,0.14),0 4px 18px 3px rgba(0,0,0,0.12)',
|
|
118
|
-
11: '0 6px 7px -4px rgba(0,0,0,0.2),0 11px 15px 1px rgba(0,0,0,0.14),0 4px 20px 3px rgba(0,0,0,0.12)',
|
|
119
|
-
12: '0 7px 8px -4px rgba(0,0,0,0.2),0 12px 17px 2px rgba(0,0,0,0.14),0 5px 22px 4px rgba(0,0,0,0.12)',
|
|
120
|
-
13: '0 7px 8px -4px rgba(0,0,0,0.2),0 13px 19px 2px rgba(0,0,0,0.14),0 5px 24px 4px rgba(0,0,0,0.12)',
|
|
121
|
-
14: '0 7px 9px -4px rgba(0,0,0,0.2),0 14px 21px 2px rgba(0,0,0,0.14),0 5px 26px 4px rgba(0,0,0,0.12)',
|
|
122
|
-
15: '0 8px 9px -5px rgba(0,0,0,0.2),0 15px 22px 2px rgba(0,0,0,0.14),0 6px 28px 5px rgba(0,0,0,0.12)',
|
|
123
|
-
16: '0 8px 10px -5px rgba(0,0,0,0.2),0 16px 24px 2px rgba(0,0,0,0.14),0 6px 30px 5px rgba(0,0,0,0.12)',
|
|
124
|
-
17: '0 8px 11px -5px rgba(0,0,0,0.2),0 17px 26px 2px rgba(0,0,0,0.14),0 6px 32px 5px rgba(0,0,0,0.12)',
|
|
125
|
-
18: '0 9px 11px -5px rgba(0,0,0,0.2),0 18px 28px 2px rgba(0,0,0,0.14),0 7px 34px 6px rgba(0,0,0,0.12)',
|
|
126
|
-
19: '0 9px 12px -6px rgba(0,0,0,0.2),0 19px 29px 2px rgba(0,0,0,0.14),0 7px 36px 6px rgba(0,0,0,0.12)',
|
|
127
|
-
20: '0 10px 13px -6px rgba(0,0,0,0.2),0 20px 31px 3px rgba(0,0,0,0.14),0 8px 38px 7px rgba(0,0,0,0.12)',
|
|
128
|
-
21: '0 10px 13px -6px rgba(0,0,0,0.2),0 21px 33px 3px rgba(0,0,0,0.14),0 8px 40px 7px rgba(0,0,0,0.12)',
|
|
129
|
-
22: '0 10px 14px -6px rgba(0,0,0,0.2),0 22px 35px 3px rgba(0,0,0,0.14),0 8px 42px 7px rgba(0,0,0,0.12)',
|
|
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)',
|
|
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)'
|
|
132
|
-
},
|
|
133
122
|
shadows: {
|
|
134
123
|
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
124
|
1: '0 1px 2px rgba(0,0,0,0.3),0 1px 3px 1px rgba(0,0,0,0.15)',
|
|
136
125
|
2: '0 1px 2px rgba(0,0,0,0.3),0 2px 6px 2px rgba(0,0,0,0.15)',
|
|
137
|
-
3: '0
|
|
138
|
-
4: '0
|
|
139
|
-
5: '0
|
|
126
|
+
3: '0 1px 3px rgba(0,0,0,0.3),0 4px 8px 3px rgba(0,0,0,0.15)',
|
|
127
|
+
4: '0 2px 3px rgba(0,0,0,0.3),0 6px 10px 4px rgba(0,0,0,0.15)',
|
|
128
|
+
5: '0 4px 4px rgba(0,0,0,0.3),0 8px 12px 6px rgba(0,0,0,0.15)'
|
|
140
129
|
},
|
|
141
130
|
fonts: {
|
|
142
131
|
body: 'Roboto, sans-serif',
|
|
143
132
|
heading: 'Roboto, sans-serif',
|
|
133
|
+
brand: 'Roboto, sans-serif',
|
|
134
|
+
plain: 'Roboto, sans-serif',
|
|
144
135
|
monospace: '"Roboto Mono", monospace'
|
|
145
136
|
},
|
|
146
137
|
fontSizes: {
|
|
@@ -190,6 +181,21 @@ const theme = {
|
|
|
190
181
|
fontFamily: 'body',
|
|
191
182
|
lineHeight: 'body'
|
|
192
183
|
},
|
|
184
|
+
'display-large': font('brand', 64, 57, 0, 400),
|
|
185
|
+
'display-medium': font('brand', 52, 45, 0, 400),
|
|
186
|
+
'display-small': font('brand', 44, 36, 0, 400),
|
|
187
|
+
'headline-large': font('brand', 40, 32, 0, 400),
|
|
188
|
+
'headline-medium': font('brand', 36, 28, 0, 400),
|
|
189
|
+
'headline-small': font('brand', 32, 24, 0, 400),
|
|
190
|
+
'title-large': font('brand', 28, 22, 0, 400),
|
|
191
|
+
'title-medium': font('plain', 24, 16, 0.15, 500),
|
|
192
|
+
'title-small': font('plain', 20, 14, 0.1, 500),
|
|
193
|
+
'label-large': font('plain', 20, 14, 0.1, 500),
|
|
194
|
+
'label-medium': font('plain', 16, 12, 0.5, 500),
|
|
195
|
+
'label-small': font('plain', 16, 11, 0.5, 500),
|
|
196
|
+
'body-large': font('plain', 24, 16, 0.5, 400),
|
|
197
|
+
'body-medium': font('plain', 20, 14, 0.25, 400),
|
|
198
|
+
'body-small': font('plain', 16, 12, 0.4, 400),
|
|
193
199
|
h1: {
|
|
194
200
|
variant: 'text.heading',
|
|
195
201
|
fontWeight: 'light',
|
|
@@ -315,7 +321,7 @@ const theme = {
|
|
|
315
321
|
buttons: {
|
|
316
322
|
variants: {
|
|
317
323
|
base: {
|
|
318
|
-
variant: 'text.
|
|
324
|
+
variant: 'text.label-large',
|
|
319
325
|
boxShadow: 'none',
|
|
320
326
|
py: 0,
|
|
321
327
|
px: "1.5rem",
|
|
@@ -380,30 +386,36 @@ const theme = {
|
|
|
380
386
|
elevations: {
|
|
381
387
|
none: {},
|
|
382
388
|
default: {
|
|
383
|
-
transition:
|
|
389
|
+
transition: `box-shadow .28s ${EASING_STANDARD}`,
|
|
384
390
|
'&:hover': {
|
|
385
391
|
boxShadow: 1
|
|
386
392
|
},
|
|
387
|
-
'&:
|
|
393
|
+
'&:active,&:focus-visible,&:disabled': {
|
|
388
394
|
boxShadow: 0
|
|
389
395
|
}
|
|
390
396
|
},
|
|
391
397
|
elevated: {
|
|
392
|
-
transition:
|
|
398
|
+
transition: `box-shadow .28s ${EASING_STANDARD}`,
|
|
393
399
|
boxShadow: 1,
|
|
394
400
|
'&:hover': {
|
|
395
401
|
boxShadow: 2
|
|
396
402
|
},
|
|
403
|
+
'&:active,&:focus-visible': {
|
|
404
|
+
boxShadow: 1
|
|
405
|
+
},
|
|
397
406
|
'&:disabled,&:disabled:hover,&:disabled:focus,&:disabled:active': {
|
|
398
407
|
boxShadow: 0
|
|
399
408
|
}
|
|
400
409
|
},
|
|
401
410
|
floating: {
|
|
402
|
-
transition:
|
|
411
|
+
transition: `box-shadow .28s ${EASING_STANDARD}`,
|
|
403
412
|
boxShadow: 3,
|
|
404
413
|
':hover': {
|
|
405
414
|
boxShadow: 4
|
|
406
415
|
},
|
|
416
|
+
'&:active,&:focus-visible': {
|
|
417
|
+
boxShadow: 3
|
|
418
|
+
},
|
|
407
419
|
'&:disabled,&:disabled:hover,&:disabled:focus,&:disabled:active': {
|
|
408
420
|
boxShadow: 0
|
|
409
421
|
}
|
|
@@ -444,7 +456,7 @@ const theme = {
|
|
|
444
456
|
height: "2rem",
|
|
445
457
|
borderRadius: 'small',
|
|
446
458
|
outline: 'none',
|
|
447
|
-
transition:
|
|
459
|
+
transition: `box-shadow .28s ${EASING_STANDARD}`
|
|
448
460
|
},
|
|
449
461
|
filled: {
|
|
450
462
|
variant: 'chips.variants.base',
|
|
@@ -464,7 +476,7 @@ const theme = {
|
|
|
464
476
|
borderRadius: 'extra-large'
|
|
465
477
|
}
|
|
466
478
|
},
|
|
467
|
-
backgroundColorOverlay:
|
|
479
|
+
backgroundColorOverlay: 3
|
|
468
480
|
},
|
|
469
481
|
paper: {
|
|
470
482
|
overlays: {
|
|
@@ -529,154 +541,23 @@ const variant = ({
|
|
|
529
541
|
tx = 'variants'
|
|
530
542
|
}) => css.css(css.get(theme, tx + '.' + variant, css.get(theme, variant)))(theme);
|
|
531
543
|
|
|
532
|
-
const BoxBase = /*#__PURE__*/_styled__default[
|
|
533
|
-
shouldForwardProp: shouldForwardProp__default[
|
|
544
|
+
const BoxBase = /*#__PURE__*/_styled__default["default"]('div', process.env.NODE_ENV === "production" ? {
|
|
545
|
+
shouldForwardProp: shouldForwardProp__default["default"],
|
|
534
546
|
target: "e25ivq30"
|
|
535
547
|
} : {
|
|
536
|
-
shouldForwardProp: shouldForwardProp__default[
|
|
548
|
+
shouldForwardProp: shouldForwardProp__default["default"],
|
|
537
549
|
target: "e25ivq30",
|
|
538
550
|
label: "BoxBase"
|
|
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,
|
|
551
|
+
})("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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkJveC50c3giXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBMEZnQiIsImZpbGUiOiJCb3gudHN4Iiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHR5cGUgeyBFbGVtZW50VHlwZSwgRkMsIEhUTUxBdHRyaWJ1dGVzLCBSZWZBdHRyaWJ1dGVzIH0gZnJvbSAncmVhY3QnO1xuaW1wb3J0IHsgZm9yd2FyZFJlZiB9IGZyb20gJ3JlYWN0JztcbmltcG9ydCB0eXBlIHsgQ1NTT2JqZWN0IH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnO1xuaW1wb3J0IHN0eWxlZCBmcm9tICdAZW1vdGlvbi9zdHlsZWQnO1xuaW1wb3J0IHR5cGUge1xuICBTcGFjZVByb3BzLFxuICBMYXlvdXRQcm9wcyxcbiAgVHlwb2dyYXBoeVByb3BzLFxuICBDb2xvclByb3BzLFxuICBGbGV4Ym94UHJvcHMsXG4gIEJvcmRlclByb3BzLFxuICBHcmlkUHJvcHMsXG4gIEJhY2tncm91bmRQcm9wcyxcbiAgUG9zaXRpb25Qcm9wcyxcbiAgU2hhZG93UHJvcHMsXG4gIFJlc3BvbnNpdmVWYWx1ZSxcbn0gZnJvbSAnc3R5bGVkLXN5c3RlbSc7XG5pbXBvcnQge1xuICBjb21wb3NlLFxuICBzcGFjZSxcbiAgbGF5b3V0LFxuICB0eXBvZ3JhcGh5LFxuICBjb2xvcixcbiAgZmxleGJveCxcbiAgYm9yZGVyLFxuICBncmlkLFxuICBiYWNrZ3JvdW5kLFxuICBwb3NpdGlvbixcbiAgc2hhZG93LFxufSBmcm9tICdzdHlsZWQtc3lzdGVtJztcbmltcG9ydCB0eXBlIHtcbiAgU3lzdGVtU3R5bGVPYmplY3QsXG4gIFJlc3BvbnNpdmVTdHlsZVZhbHVlLFxufSBmcm9tICdAc3R5bGVkLXN5c3RlbS9jc3MnO1xuaW1wb3J0IHsgY3NzLCBnZXQgfSBmcm9tICdAc3R5bGVkLXN5c3RlbS9jc3MnO1xuaW1wb3J0IHNob3VsZEZvcndhcmRQcm9wIGZyb20gJ0BzdHlsZWQtc3lzdGVtL3Nob3VsZC1mb3J3YXJkLXByb3AnO1xuXG5pbXBvcnQgdHlwZSB7IFRoZW1lIH0gZnJvbSAnLi4vdGhlbWUnO1xuaW1wb3J0IHsgdXNlVGhlbWUgfSBmcm9tICcuLi90aGVtZSc7XG5cbmV4cG9ydCB0eXBlIFN4U3R5bGVQcm9wID1cbiAgfCBTeXN0ZW1TdHlsZU9iamVjdFxuICB8IFJlY29yZDxcbiAgICAgIHN0cmluZyxcbiAgICAgIHwgU3lzdGVtU3R5bGVPYmplY3RcbiAgICAgIHwgUmVzcG9uc2l2ZVN0eWxlVmFsdWU8bnVtYmVyIHwgc3RyaW5nPlxuICAgICAgfCBSZWNvcmQ8XG4gICAgICAgICAgc3RyaW5nLFxuICAgICAgICAgIFN5c3RlbVN0eWxlT2JqZWN0IHwgUmVzcG9uc2l2ZVN0eWxlVmFsdWU8bnVtYmVyIHwgc3RyaW5nPlxuICAgICAgICA+XG4gICAgPjtcblxuZXhwb3J0IGludGVyZmFjZSBCYXNlUHJvcHMge1xuICBhcz86IEVsZW1lbnRUeXBlPGFueT47XG4gIHN4PzogU3hTdHlsZVByb3A7XG4gIC8vIGNzcz86IENTU09iamVjdCB8ICgocHJvcHM6IHsgdGhlbWU6IFRoZW1lIH0pID0+IENTU09iamVjdCk7XG4gIF9fY3NzPzogU3hTdHlsZVByb3A7XG4gIHZhcmlhbnQ/OiBSZXNwb25zaXZlVmFsdWU8c3RyaW5nPjtcbiAgdHg/OiBzdHJpbmc7XG4gIHRoZW1lOiBUaGVtZTtcbn1cbmV4cG9ydCBjb25zdCBzeCA9ICh7IHRoZW1lLCBzeCB9OiBCYXNlUHJvcHMpID0+IGNzcyhzeCkodGhlbWUpIGFzIENTU09iamVjdDtcbmV4cG9ydCBjb25zdCBiYXNlID0gKHsgdGhlbWUsIF9fY3NzIH06IEJhc2VQcm9wcykgPT5cbiAgY3NzKF9fY3NzKSh0aGVtZSkgYXMgQ1NTT2JqZWN0O1xuZXhwb3J0IGNvbnN0IHZhcmlhbnQgPSAoe1xuICB0aGVtZSxcbiAgdmFyaWFudCA9ICdkZWZhdWx0JyxcbiAgdHggPSAndmFyaWFudHMnLFxufTogQmFzZVByb3BzKSA9PlxuICBjc3MoZ2V0KHRoZW1lLCB0eCArICcuJyArIHZhcmlhbnQsIGdldCh0aGVtZSwgdmFyaWFudCBhcyBhbnkpKSkoXG4gICAgdGhlbWVcbiAgKSBhcyBDU1NPYmplY3Q7XG5cbnR5cGUgS25vd25Cb3hQcm9wcyA9IEJhc2VQcm9wcyAmXG4gIFNwYWNlUHJvcHMgJlxuICBMYXlvdXRQcm9wcyAmXG4gIFR5cG9ncmFwaHlQcm9wcyAmXG4gIENvbG9yUHJvcHMgJlxuICBGbGV4Ym94UHJvcHMgJlxuICBCb3JkZXJQcm9wcyAmXG4gIEdyaWRQcm9wcyAmXG4gIEJhY2tncm91bmRQcm9wcyAmXG4gIFBvc2l0aW9uUHJvcHMgJlxuICBTaGFkb3dQcm9wcyAmIHsgekluZGV4PzogbnVtYmVyIHwgc3RyaW5nIH07XG5cbmV4cG9ydCB0eXBlIEJveFByb3BzPFxuICBIID0gSFRNTERpdkVsZW1lbnQsXG4gIEF0dHIgZXh0ZW5kcyBIVE1MQXR0cmlidXRlczxIPiA9IEhUTUxBdHRyaWJ1dGVzPEg+XG4+ID0gT21pdDxBdHRyLCBrZXlvZiBLbm93bkJveFByb3BzPiAmIFBhcnRpYWw8S25vd25Cb3hQcm9wcz4gJiBSZWZBdHRyaWJ1dGVzPEg+O1xuXG5jb25zdCBCb3hCYXNlID0gc3R5bGVkKCdkaXYnIGFzIHVua25vd24gYXMgRkMsIHtcbiAgc2hvdWxkRm9yd2FyZFByb3AsXG59KTxCb3hQcm9wczxIVE1MRGl2RWxlbWVudD4+KFxuICB7XG4gICAgYm94U2l6aW5nOiAnYm9yZGVyLWJveCcsXG4gICAgbWFyZ2luOiAwLFxuICAgIG1pbldpZHRoOiAwLFxuICB9LFxuICBiYXNlLFxuICB2YXJpYW50LFxuICBzeCxcbiAgKHByb3BzOiBhbnkpID0+IHByb3BzLmNzcyxcbiAgY29tcG9zZShcbiAgICBzcGFjZSxcbiAgICBsYXlvdXQsXG4gICAgdHlwb2dyYXBoeSxcbiAgICBjb2xvcixcbiAgICBmbGV4Ym94LFxuICAgIGJvcmRlcixcbiAgICBncmlkLFxuICAgIGJhY2tncm91bmQsXG4gICAgcG9zaXRpb24sXG4gICAgc2hhZG93XG4gIClcbik7XG5cbmV4cG9ydCBjb25zdCBCb3g6IDxcbiAgUHJvcHMgPSBCb3hQcm9wczxIVE1MRGl2RWxlbWVudCwgSFRNTEF0dHJpYnV0ZXM8SFRNTERpdkVsZW1lbnQ+PlxuPihcbiAgcHJvcHM6IFByb3BzXG4pID0+IEpTWC5FbGVtZW50ID0gZm9yd2FyZFJlZjxIVE1MRGl2RWxlbWVudCwgQm94UHJvcHM8SFRNTERpdkVsZW1lbnQ+PihcbiAgZnVuY3Rpb24gQm94KHByb3BzLCBmb3J3YXJkZWRSZWYpIHtcbiAgICBjb25zdCB0aGVtZSA9IHVzZVRoZW1lKCk7XG5cbiAgICByZXR1cm4gPEJveEJhc2UgcmVmPXtmb3J3YXJkZWRSZWZ9IHRoZW1lPXt0aGVtZX0gey4uLnByb3BzfSAvPjtcbiAgfVxuKSBhcyBhbnk7XG4iXX0= */");
|
|
540
552
|
|
|
541
553
|
const Box = /*#__PURE__*/react$1.forwardRef(function Box(props, forwardedRef) {
|
|
542
554
|
const theme = useTheme();
|
|
543
|
-
return /*#__PURE__*/jsxRuntime.jsx(BoxBase,
|
|
555
|
+
return /*#__PURE__*/jsxRuntime.jsx(BoxBase, {
|
|
544
556
|
ref: forwardedRef,
|
|
545
|
-
theme: theme
|
|
546
|
-
|
|
547
|
-
});
|
|
548
|
-
|
|
549
|
-
const ColorModeContext = /*#__PURE__*/react$1.createContext({
|
|
550
|
-
colorMode: 'default',
|
|
551
|
-
setColorMode: () => {
|
|
552
|
-
/*noop*/
|
|
553
|
-
}
|
|
554
|
-
});
|
|
555
|
-
const useColorMode = () => {
|
|
556
|
-
return react$1.useContext(ColorModeContext);
|
|
557
|
-
};
|
|
558
|
-
|
|
559
|
-
const THEME_LOCAL_STORAGE_KEY = 'basic-ui-theme';
|
|
560
|
-
const DEFAULT_THEME_CLASS = `css-${hash__default['default']('basic-ui-default-theme')}`;
|
|
561
|
-
const DARK_THEME_CLASS = `css-${hash__default['default']('basic-ui-dark-theme')}`;
|
|
562
|
-
|
|
563
|
-
function saveColorMode(colorMode, saveToStorage = true) {
|
|
564
|
-
if (saveToStorage) {
|
|
565
|
-
window.localStorage.setItem(THEME_LOCAL_STORAGE_KEY, colorMode || 'default');
|
|
566
|
-
}
|
|
567
|
-
|
|
568
|
-
const [add, remove] = colorMode === 'dark' ? [DARK_THEME_CLASS, DEFAULT_THEME_CLASS] : [DEFAULT_THEME_CLASS, DARK_THEME_CLASS];
|
|
569
|
-
|
|
570
|
-
if (!document.body.classList.contains(remove)) {
|
|
571
|
-
document.body.classList.add(add);
|
|
572
|
-
return;
|
|
573
|
-
}
|
|
574
|
-
|
|
575
|
-
document.body.classList.replace(remove, add);
|
|
576
|
-
}
|
|
577
|
-
|
|
578
|
-
const ColorModeProvider = props => {
|
|
579
|
-
const {
|
|
580
|
-
children,
|
|
581
|
-
styles
|
|
582
|
-
} = props;
|
|
583
|
-
const [colorMode, _setColorMode] = react$1.useState();
|
|
584
|
-
const setColorMode = react$1.useCallback((colorMode, saveToStorage = true) => {
|
|
585
|
-
saveColorMode(colorMode || 'default', saveToStorage);
|
|
586
|
-
|
|
587
|
-
_setColorMode(colorMode);
|
|
588
|
-
}, []);
|
|
589
|
-
const colorModeObject = react$1.useMemo(() => ({
|
|
590
|
-
colorMode,
|
|
591
|
-
setColorMode
|
|
592
|
-
}), [colorMode, setColorMode]);
|
|
593
|
-
react$1.useEffect(() => {
|
|
594
|
-
_setColorMode(document.body.classList.contains(DARK_THEME_CLASS) ? 'dark' : 'default');
|
|
595
|
-
|
|
596
|
-
const darkQuery = window.matchMedia('(prefers-color-scheme: dark)');
|
|
597
|
-
darkQuery == null ? void 0 : darkQuery.addListener(e => {
|
|
598
|
-
setColorMode(e.matches ? 'dark' : 'default', false);
|
|
599
|
-
});
|
|
600
|
-
}, [setColorMode]);
|
|
601
|
-
const globalStyles = react$1.useMemo(() => {
|
|
602
|
-
const ret = {
|
|
603
|
-
body: _extends__default['default']({
|
|
604
|
-
colorScheme: 'light'
|
|
605
|
-
}, styles['default'] || {})
|
|
606
|
-
};
|
|
607
|
-
ret[`.${DEFAULT_THEME_CLASS}`] = _extends__default['default']({
|
|
608
|
-
colorScheme: 'light'
|
|
609
|
-
}, styles['default'] || {});
|
|
610
|
-
|
|
611
|
-
for (const key in styles) {
|
|
612
|
-
if (key === 'default') {
|
|
613
|
-
continue;
|
|
614
|
-
}
|
|
615
|
-
|
|
616
|
-
ret[`.${DARK_THEME_CLASS}`] = _extends__default['default']({
|
|
617
|
-
colorScheme: 'dark'
|
|
618
|
-
}, styles[key]);
|
|
619
|
-
}
|
|
620
|
-
|
|
621
|
-
return ret;
|
|
622
|
-
}, [styles]);
|
|
623
|
-
return /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
624
|
-
children: [/*#__PURE__*/jsxRuntime.jsx(react.Global, {
|
|
625
|
-
styles: globalStyles
|
|
626
|
-
}), /*#__PURE__*/jsxRuntime.jsx(ColorModeContext.Provider, {
|
|
627
|
-
value: colorModeObject,
|
|
628
|
-
children: children
|
|
629
|
-
})]
|
|
630
|
-
});
|
|
631
|
-
};
|
|
632
|
-
|
|
633
|
-
const toVarName = (key, suffix = '') => `--${key}${suffix ? `--${suffix}` : ''}`;
|
|
634
|
-
|
|
635
|
-
const toVarValue = (key, value, suffix = '') => `var(${toVarName(key, suffix)}, ${value})`;
|
|
636
|
-
|
|
637
|
-
function themify(obj, vars, root = '') {
|
|
638
|
-
Object.keys(obj).forEach(key => {
|
|
639
|
-
if (key === 'modes') {
|
|
640
|
-
return;
|
|
641
|
-
}
|
|
642
|
-
|
|
643
|
-
const value = obj[key];
|
|
644
|
-
const varName = root.length > 0 ? `${root}-${key}` : `${key}`;
|
|
645
|
-
|
|
646
|
-
if (typeof value === 'object') {
|
|
647
|
-
obj[key] = themify(obj[key], vars, varName);
|
|
648
|
-
} else {
|
|
649
|
-
vars[toVarName(varName)] = value;
|
|
650
|
-
obj[key] = toVarValue(varName, value);
|
|
651
|
-
|
|
652
|
-
try {
|
|
653
|
-
const rgb = polished.parseToRgb(value);
|
|
654
|
-
vars[toVarName(varName, 'rgb')] = `${rgb.red},${rgb.green},${rgb.blue}`;
|
|
655
|
-
obj[key + '_rgb'] = toVarValue(varName, value, 'rgb');
|
|
656
|
-
} catch (err) {// do nothing
|
|
657
|
-
}
|
|
658
|
-
}
|
|
659
|
-
});
|
|
660
|
-
return obj;
|
|
661
|
-
}
|
|
662
|
-
|
|
663
|
-
function getTheme(theme) {
|
|
664
|
-
const colorModes = {
|
|
665
|
-
default: {}
|
|
666
|
-
};
|
|
667
|
-
const themeClone = JSON.parse(JSON.stringify(theme)); // default
|
|
668
|
-
|
|
669
|
-
themeClone.colors = themify(themeClone.colors, colorModes.default, ''); // other modes
|
|
670
|
-
|
|
671
|
-
Object.keys(themeClone.colors.modes).forEach(key => {
|
|
672
|
-
colorModes[key] = {};
|
|
673
|
-
themeClone.colors.modes[key] = themify(themeClone.colors.modes[key], colorModes[key], '');
|
|
557
|
+
theme: theme,
|
|
558
|
+
...props
|
|
674
559
|
});
|
|
675
|
-
|
|
676
|
-
theme: themeClone,
|
|
677
|
-
colorModes
|
|
678
|
-
};
|
|
679
|
-
}
|
|
560
|
+
});
|
|
680
561
|
|
|
681
562
|
const alpha = (colorString, alphaValue) => theme => {
|
|
682
563
|
const color = css.get(theme, 'colors.' + colorString, colorString);
|
|
@@ -689,11 +570,16 @@ const alpha = (colorString, alphaValue) => theme => {
|
|
|
689
570
|
const rgb = polished.parseToRgb(color);
|
|
690
571
|
return `rgba(${rgb.red},${rgb.green},${rgb.blue},${alphaValue})`;
|
|
691
572
|
};
|
|
573
|
+
function mixColor(baseColor, overlayColor, overlayOpacity) {
|
|
574
|
+
return theme => {
|
|
575
|
+
baseColor = css.get(theme, `colors.${baseColor}`, baseColor);
|
|
576
|
+
overlayColor = overlayOpacity ? alpha(overlayColor, overlayOpacity)(theme) : css.get(theme, `colors.${overlayColor}`, overlayColor);
|
|
577
|
+
return `linear-gradient(${overlayColor}, ${overlayColor}), ${baseColor}`;
|
|
578
|
+
};
|
|
579
|
+
}
|
|
692
580
|
function getColorOverlay(theme, baseColor, overlayColor, overlayOpacity) {
|
|
693
|
-
baseColor = css.get(theme, `colors.${baseColor}`) || baseColor;
|
|
694
|
-
overlayColor = alpha(overlayColor, overlayOpacity)(theme);
|
|
695
581
|
return {
|
|
696
|
-
background:
|
|
582
|
+
background: mixColor(baseColor, overlayColor, overlayOpacity)(theme)
|
|
697
583
|
};
|
|
698
584
|
}
|
|
699
585
|
function getBackgroundOverlay(theme, backgroundOverlay, overlayColor = 'on.surface') {
|
|
@@ -704,13 +590,14 @@ function getBackgroundOverlay(theme, backgroundOverlay, overlayColor = 'on.surfa
|
|
|
704
590
|
const overlay = css.get(theme, `paper.overlays.${backgroundOverlay}`) || 0;
|
|
705
591
|
return getColorOverlay(theme, 'surface', overlayColor, overlay);
|
|
706
592
|
}
|
|
707
|
-
function getDarkThemeBackgroundOverlay(theme, backgroundOverlay) {
|
|
593
|
+
function getDarkThemeBackgroundOverlay(theme, backgroundOverlay, overlayColor = 'on.surface') {
|
|
708
594
|
if (Number(backgroundOverlay) <= 0) {
|
|
709
595
|
return {};
|
|
710
596
|
}
|
|
711
597
|
|
|
712
598
|
return {
|
|
713
|
-
[`.${DARK_THEME_CLASS} &, &.${DARK_THEME_CLASS}`]:
|
|
599
|
+
[`.${dynamicTheme.DARK_THEME_CLASS} &, &.${dynamicTheme.DARK_THEME_CLASS}`]: { ...getBackgroundOverlay(theme, backgroundOverlay, overlayColor)
|
|
600
|
+
}
|
|
714
601
|
};
|
|
715
602
|
}
|
|
716
603
|
|
|
@@ -719,28 +606,32 @@ const Paper = /*#__PURE__*/react$1.forwardRef(function Paper(props, forwardedRef
|
|
|
719
606
|
outlined,
|
|
720
607
|
elevation = 0,
|
|
721
608
|
backgroundOverlay,
|
|
609
|
+
darkThemeBackgroundOverlay,
|
|
722
610
|
__css = {},
|
|
723
|
-
children
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
611
|
+
children,
|
|
612
|
+
...otherProps
|
|
613
|
+
} = props;
|
|
727
614
|
const theme = useTheme();
|
|
728
|
-
return /*#__PURE__*/jsxRuntime.jsx(Box,
|
|
615
|
+
return /*#__PURE__*/jsxRuntime.jsx(Box, {
|
|
729
616
|
ref: forwardedRef,
|
|
730
|
-
__css:
|
|
617
|
+
__css: {
|
|
731
618
|
backgroundColor: 'surface',
|
|
732
619
|
boxShadow: String(elevation),
|
|
733
620
|
':focus': {
|
|
734
621
|
outline: 'none'
|
|
735
|
-
}
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
622
|
+
},
|
|
623
|
+
...(outlined ? {
|
|
624
|
+
borderStyle: 'solid',
|
|
625
|
+
borderWidth: "0.0625rem",
|
|
626
|
+
borderColor: alpha('on.surface', 0.12)
|
|
627
|
+
} : {}),
|
|
628
|
+
...(backgroundOverlay ? getBackgroundOverlay(theme, backgroundOverlay, 'primary') : {}),
|
|
629
|
+
...(darkThemeBackgroundOverlay ? getDarkThemeBackgroundOverlay(theme, darkThemeBackgroundOverlay, 'primary') : {}),
|
|
630
|
+
...__css
|
|
631
|
+
},
|
|
632
|
+
...otherProps,
|
|
742
633
|
children: children
|
|
743
|
-
})
|
|
634
|
+
});
|
|
744
635
|
});
|
|
745
636
|
|
|
746
637
|
const AppBar = /*#__PURE__*/react$1.forwardRef(function AppBar(props, forwardedRef) {
|
|
@@ -748,10 +639,9 @@ const AppBar = /*#__PURE__*/react$1.forwardRef(function AppBar(props, forwardedR
|
|
|
748
639
|
elevation: elevationProp = 'default',
|
|
749
640
|
variant: variantProp = 'default',
|
|
750
641
|
size = 'default',
|
|
751
|
-
__css = {}
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
642
|
+
__css = {},
|
|
643
|
+
...otherProps
|
|
644
|
+
} = props;
|
|
755
645
|
const [elevation, setElevation] = react$1.useState(elevationProp);
|
|
756
646
|
const theme = useTheme();
|
|
757
647
|
react$1.useEffect(() => {
|
|
@@ -779,38 +669,40 @@ const AppBar = /*#__PURE__*/react$1.forwardRef(function AppBar(props, forwardedR
|
|
|
779
669
|
variant: variantProp,
|
|
780
670
|
size
|
|
781
671
|
},
|
|
782
|
-
children: /*#__PURE__*/jsxRuntime.jsx(Paper,
|
|
672
|
+
children: /*#__PURE__*/jsxRuntime.jsx(Paper, {
|
|
783
673
|
ref: forwardedRef,
|
|
784
674
|
theme: theme,
|
|
785
675
|
variant: "square",
|
|
786
676
|
backgroundOverlay: elevation === 'elevated' && variantProp === 'default' ? css.get(theme, `appbar.elevations.${elevation}.boxShadow`, 2) : 0,
|
|
787
677
|
color: variantProp === 'default' || variantProp === 'transparent' ? 'on.surface' : `on.${variantProp}`,
|
|
788
|
-
__css:
|
|
678
|
+
__css: {
|
|
789
679
|
boxSizing: 'border-box',
|
|
790
680
|
display: 'inline-flex',
|
|
791
681
|
alignItems: 'center',
|
|
792
682
|
width: '100%',
|
|
793
683
|
overflow: 'hidden',
|
|
794
|
-
transition:
|
|
795
|
-
|
|
796
|
-
|
|
684
|
+
transition: `box-shadow .28s ${EASING_STANDARD}`,
|
|
685
|
+
...css.get(theme, `appbar.sizes.${size}`),
|
|
686
|
+
...css.get(theme, `appbar.variants.${variantProp}`),
|
|
687
|
+
...__css
|
|
688
|
+
},
|
|
689
|
+
...otherProps
|
|
690
|
+
})
|
|
797
691
|
});
|
|
798
692
|
});
|
|
799
693
|
|
|
800
694
|
const BaseButton = /*#__PURE__*/react$1.forwardRef((props, ref) => {
|
|
801
695
|
const theme = react.useTheme();
|
|
802
|
-
|
|
803
696
|
const {
|
|
804
697
|
__css,
|
|
805
698
|
variant: variantProp,
|
|
806
|
-
elevation
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
return /*#__PURE__*/jsxRuntime.jsx(Box, _extends__default['default']({
|
|
699
|
+
elevation,
|
|
700
|
+
...otherProps
|
|
701
|
+
} = props;
|
|
702
|
+
return /*#__PURE__*/jsxRuntime.jsx(Box, {
|
|
811
703
|
as: "button",
|
|
812
704
|
ref: ref,
|
|
813
|
-
__css:
|
|
705
|
+
__css: {
|
|
814
706
|
boxSizing: 'border-box',
|
|
815
707
|
position: 'relative',
|
|
816
708
|
appearance: 'none',
|
|
@@ -829,30 +721,34 @@ const BaseButton = /*#__PURE__*/react$1.forwardRef((props, ref) => {
|
|
|
829
721
|
minWidth: 'auto',
|
|
830
722
|
'&::-moz-focus-inner': {
|
|
831
723
|
border: 0
|
|
832
|
-
}
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
724
|
+
},
|
|
725
|
+
...styledSystem.variant({
|
|
726
|
+
scale: 'buttons.variants',
|
|
727
|
+
prop: 'variant',
|
|
728
|
+
variants: {
|
|
729
|
+
text: {}
|
|
730
|
+
}
|
|
731
|
+
})({
|
|
732
|
+
variant: variantProp,
|
|
733
|
+
theme
|
|
734
|
+
}),
|
|
735
|
+
...styledSystem.variant({
|
|
736
|
+
scale: 'buttons.elevations',
|
|
737
|
+
prop: 'elevation',
|
|
738
|
+
variants: {
|
|
739
|
+
none: {}
|
|
740
|
+
}
|
|
741
|
+
})({
|
|
742
|
+
elevation,
|
|
743
|
+
theme
|
|
744
|
+
}),
|
|
745
|
+
...__css
|
|
746
|
+
},
|
|
747
|
+
...otherProps
|
|
748
|
+
});
|
|
853
749
|
});
|
|
854
750
|
|
|
855
|
-
const TransparentButton = /*#__PURE__*/_styled__default[
|
|
751
|
+
const TransparentButton = /*#__PURE__*/_styled__default["default"](BaseButton, process.env.NODE_ENV === "production" ? {
|
|
856
752
|
target: "e18rm4q20"
|
|
857
753
|
} : {
|
|
858
754
|
target: "e18rm4q20",
|
|
@@ -896,7 +792,7 @@ const TransparentButton = /*#__PURE__*/_styled__default['default'](BaseButton, p
|
|
|
896
792
|
borderLeftWidth: 0
|
|
897
793
|
}
|
|
898
794
|
}
|
|
899
|
-
}, process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,
|
|
795
|
+
}, process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlRyYW5zcGFyZW50QnV0dG9uLnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFRaUMiLCJmaWxlIjoiVHJhbnNwYXJlbnRCdXR0b24udHN4Iiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHN0eWxlZCBmcm9tICdAZW1vdGlvbi9zdHlsZWQnO1xuaW1wb3J0IHsgZ2V0LCBjc3MgfSBmcm9tICdAc3R5bGVkLXN5c3RlbS9jc3MnO1xuaW1wb3J0IHsgcmVtIH0gZnJvbSAncG9saXNoZWQnO1xuXG5pbXBvcnQgeyBCYXNlQnV0dG9uIH0gZnJvbSAnLi9CYXNlQnV0dG9uJztcbmltcG9ydCB0eXBlIHsgVGhlbWUgfSBmcm9tICcuLi90aGVtZSc7XG5pbXBvcnQgeyBhbHBoYSB9IGZyb20gJy4uL2NvbG9yJztcblxuZXhwb3J0IGNvbnN0IFRyYW5zcGFyZW50QnV0dG9uID0gc3R5bGVkKEJhc2VCdXR0b24pKFxuICAoeyB0aGVtZSwgY29sb3IgPSAncHJpbWFyeScgfSkgPT5cbiAgICBjc3Moe1xuICAgICAgYmFja2dyb3VuZENvbG9yOiAndHJhbnNwYXJlbnQnLFxuICAgICAgY29sb3I6IGdldCh0aGVtZSwgYGNvbG9ycy4ke1N0cmluZyhjb2xvcil9YCkgfHwgY29sb3IsXG4gICAgICAnJjpkaXNhYmxlZCc6IHtcbiAgICAgICAgY29sb3I6IGFscGhhKCdvbi5zdXJmYWNlJywgMC4zOCksXG4gICAgICAgIGN1cnNvcjogJ2RlZmF1bHQnLFxuICAgICAgfSxcbiAgICAgICcmOmZvY3VzLXZpc2libGUnOiB7XG4gICAgICAgIG91dGxpbmU6ICdub25lJyxcbiAgICAgIH0sXG4gICAgfSksXG4gICh7IHRoZW1lLCBjb2xvciA9ICdwcmltYXJ5JywgaXNHcm91cGVkQnV0dG9uID0gZmFsc2UgfSkgPT5cbiAgICBpc0dyb3VwZWRCdXR0b24gJiYge1xuICAgICAgJ1tkYXRhLWJ1dHRvbi1ncm91cD1cIlwiXSAmJzoge1xuICAgICAgICBib3JkZXJDb2xvcjpcbiAgICAgICAgICBnZXQodGhlbWUsIGBjb2xvcnMuJHtTdHJpbmcoY29sb3IpfWApIHx8XG4gICAgICAgICAgKHR5cGVvZiBjb2xvciA9PT0gJ3N0cmluZycgPyBjb2xvciA6IHVuZGVmaW5lZCksXG4gICAgICAgICc6Zmlyc3Qtb2YtdHlwZSc6IHtcbiAgICAgICAgICBib3JkZXJUb3BSaWdodFJhZGl1czogMCxcbiAgICAgICAgICBib3JkZXJCb3R0b21SaWdodFJhZGl1czogMCxcbiAgICAgICAgICBib3JkZXJSaWdodFN0eWxlOiAnc29saWQnLFxuICAgICAgICAgIGJvcmRlclJpZ2h0V2lkdGg6IHJlbSgxKSxcbiAgICAgICAgfSxcbiAgICAgICAgJzpub3QoOmZpcnN0LW9mLXR5cGUpOm5vdCg6bGFzdC1vZi10eXBlKSc6IHtcbiAgICAgICAgICBib3JkZXJSYWRpdXM6IDAsXG4gICAgICAgIH0sXG4gICAgICAgICc6bGFzdC1vZi10eXBlJzoge1xuICAgICAgICAgIGJvcmRlclRvcExlZnRSYWRpdXM6IDAsXG4gICAgICAgICAgYm9yZGVyQm90dG9tTGVmdFJhZGl1czogMCxcbiAgICAgICAgICBib3JkZXJMZWZ0U3R5bGU6ICdzb2xpZCcsXG4gICAgICAgICAgYm9yZGVyTGVmdFdpZHRoOiByZW0oMSksXG4gICAgICAgIH0sXG4gICAgICAgICc6bGFzdC1vZi10eXBlOm50aC1vZi10eXBlKDIpJzoge1xuICAgICAgICAgIGJvcmRlckxlZnRXaWR0aDogMCxcbiAgICAgICAgfSxcbiAgICAgIH0sXG4gICAgfVxuKTtcblxuZXhwb3J0IGZ1bmN0aW9uIGdldFJpcHBsZVByb3BlcnRpZXModGhlbWU6IFRoZW1lKSB7XG4gIHJldHVybiB7XG4gICAgaG92ZXJPcGFjaXR5OiBnZXQodGhlbWUsIGBidXR0b25zLm92ZXJsYXlzLnRyYW5zcGFyZW50LmhvdmVyLm9wYWNpdHlgKSxcbiAgICBmb2N1c09wYWNpdHk6IGdldCh0aGVtZSwgYGJ1dHRvbnMub3ZlcmxheXMudHJhbnNwYXJlbnQuZm9jdXMub3BhY2l0eWApLFxuICAgIHByZXNzZWRPcGFjaXR5OiBnZXQodGhlbWUsIGBidXR0b25zLm92ZXJsYXlzLnRyYW5zcGFyZW50LnByZXNzZWQub3BhY2l0eWApLFxuICAgIHJpcHBsZUVuYWJsZWQ6IGZhbHNlLFxuICB9O1xufVxuIl19 */");
|
|
900
796
|
function getRippleProperties$3(theme) {
|
|
901
797
|
return {
|
|
902
798
|
hoverOpacity: css.get(theme, `buttons.overlays.transparent.hover.opacity`),
|
|
@@ -906,7 +802,7 @@ function getRippleProperties$3(theme) {
|
|
|
906
802
|
};
|
|
907
803
|
}
|
|
908
804
|
|
|
909
|
-
const FilledButton = /*#__PURE__*/_styled__default[
|
|
805
|
+
const FilledButton = /*#__PURE__*/_styled__default["default"](BaseButton, process.env.NODE_ENV === "production" ? {
|
|
910
806
|
target: "ex8w9nt0"
|
|
911
807
|
} : {
|
|
912
808
|
target: "ex8w9nt0",
|
|
@@ -930,10 +826,10 @@ const FilledButton = /*#__PURE__*/_styled__default['default'](BaseButton, proces
|
|
|
930
826
|
outlineOffset: '2px'
|
|
931
827
|
}
|
|
932
828
|
}), ({
|
|
933
|
-
color = 'primary'
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
})
|
|
829
|
+
color = 'primary'
|
|
830
|
+
}) => color === 'surface' && css.css({
|
|
831
|
+
background: mixColor('surface', 'primary', 0.05)
|
|
832
|
+
}), ({
|
|
937
833
|
color = 'primary',
|
|
938
834
|
theme,
|
|
939
835
|
isGroupedButton = false
|
|
@@ -959,7 +855,7 @@ const FilledButton = /*#__PURE__*/_styled__default['default'](BaseButton, proces
|
|
|
959
855
|
borderLeftWidth: 0
|
|
960
856
|
}
|
|
961
857
|
}
|
|
962
|
-
}, process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,
|
|
858
|
+
}, process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkZpbGxlZEJ1dHRvbi50c3giXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBUTRCIiwiZmlsZSI6IkZpbGxlZEJ1dHRvbi50c3giLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgc3R5bGVkIGZyb20gJ0BlbW90aW9uL3N0eWxlZCc7XG5pbXBvcnQgeyByZWFkYWJsZUNvbG9yLCByZW0gfSBmcm9tICdwb2xpc2hlZCc7XG5pbXBvcnQgeyBnZXQsIGNzcyB9IGZyb20gJ0BzdHlsZWQtc3lzdGVtL2Nzcyc7XG5cbmltcG9ydCB7IEJhc2VCdXR0b24gfSBmcm9tICcuL0Jhc2VCdXR0b24nO1xuaW1wb3J0IHR5cGUgeyBUaGVtZSB9IGZyb20gJy4uL3RoZW1lJztcbmltcG9ydCB7IGFscGhhLCBtaXhDb2xvciB9IGZyb20gJy4uL2NvbG9yJztcblxuZXhwb3J0IGNvbnN0IEZpbGxlZEJ1dHRvbiA9IHN0eWxlZChCYXNlQnV0dG9uKShcbiAgKHsgY29sb3IgPSAncHJpbWFyeScsIHRoZW1lIH0pID0+XG4gICAgY3NzKHtcbiAgICAgIGJhY2tncm91bmRDb2xvcjogZ2V0KHRoZW1lLCBgY29sb3JzLiR7U3RyaW5nKGNvbG9yKX1gKSB8fCBjb2xvcixcbiAgICAgIGNvbG9yOlxuICAgICAgICBnZXQodGhlbWUsIGBjb2xvcnMub24uJHtTdHJpbmcoY29sb3IpfWApIHx8XG4gICAgICAgICh0eXBlb2YgY29sb3IgPT09ICdzdHJpbmcnID8gcmVhZGFibGVDb2xvcihjb2xvcikgOiB1bmRlZmluZWQpLFxuICAgICAgJyY6ZGlzYWJsZWQnOiB7XG4gICAgICAgIGNvbG9yOiBhbHBoYSgnb24uc3VyZmFjZScsIDAuMzgpLFxuICAgICAgICBiYWNrZ3JvdW5kOiBgbGluZWFyLWdyYWRpZW50KCR7Z2V0KHRoZW1lLCAnY29sb3JzLnN1cmZhY2UnKX0sICR7Z2V0KFxuICAgICAgICAgIHRoZW1lLFxuICAgICAgICAgICdjb2xvcnMuc3VyZmFjZSdcbiAgICAgICAgKX0pLCAke2FscGhhKCdvbi5zdXJmYWNlJywgMC4xMikodGhlbWUpfWAsXG4gICAgICAgIGJhY2tncm91bmRCbGVuZE1vZGU6ICdvdmVybGF5JyxcbiAgICAgICAgY3Vyc29yOiAnZGVmYXVsdCcsXG4gICAgICB9LFxuICAgICAgJyY6Zm9jdXMtdmlzaWJsZSc6IHtcbiAgICAgICAgb3V0bGluZUNvbG9yOiBnZXQodGhlbWUsIGBjb2xvcnMuJHtTdHJpbmcoY29sb3IpfWApIHx8IGNvbG9yLFxuICAgICAgICBvdXRsaW5lV2lkdGg6IDIsXG4gICAgICAgIG91dGxpbmVTdHlsZTogJ2F1dG8nLFxuICAgICAgICBvdXRsaW5lT2Zmc2V0OiAnMnB4JyxcbiAgICAgIH0sXG4gICAgfSksXG4gICh7IGNvbG9yID0gJ3ByaW1hcnknIH0pID0+XG4gICAgY29sb3IgPT09ICdzdXJmYWNlJyAmJlxuICAgIGNzcyh7IGJhY2tncm91bmQ6IG1peENvbG9yKCdzdXJmYWNlJywgJ3ByaW1hcnknLCAwLjA1KSB9KSxcbiAgKHsgY29sb3IgPSAncHJpbWFyeScsIHRoZW1lLCBpc0dyb3VwZWRCdXR0b24gPSBmYWxzZSB9KSA9PlxuICAgIGlzR3JvdXBlZEJ1dHRvbiAmJiB7XG4gICAgICAnW2RhdGEtYnV0dG9uLWdyb3VwPVwiXCJdICYnOiB7XG4gICAgICAgIGJvcmRlckNvbG9yOlxuICAgICAgICAgIGdldCh0aGVtZSwgYGNvbG9ycy5vbi4ke1N0cmluZyhjb2xvcil9YCkgfHxcbiAgICAgICAgICAodHlwZW9mIGNvbG9yID09PSAnc3RyaW5nJyA/IHJlYWRhYmxlQ29sb3IoY29sb3IpIDogdW5kZWZpbmVkKSxcbiAgICAgICAgJzpmaXJzdC1vZi10eXBlJzoge1xuICAgICAgICAgIGJvcmRlclRvcFJpZ2h0UmFkaXVzOiAwLFxuICAgICAgICAgIGJvcmRlckJvdHRvbVJpZ2h0UmFkaXVzOiAwLFxuICAgICAgICAgIGJvcmRlclJpZ2h0U3R5bGU6ICdzb2xpZCcsXG4gICAgICAgICAgYm9yZGVyUmlnaHRXaWR0aDogcmVtKDEpLFxuICAgICAgICB9LFxuICAgICAgICAnOm5vdCg6Zmlyc3Qtb2YtdHlwZSk6bm90KDpsYXN0LW9mLXR5cGUpJzoge1xuICAgICAgICAgIGJvcmRlclJhZGl1czogMCxcbiAgICAgICAgfSxcbiAgICAgICAgJzpsYXN0LW9mLXR5cGUnOiB7XG4gICAgICAgICAgYm9yZGVyVG9wTGVmdFJhZGl1czogMCxcbiAgICAgICAgICBib3JkZXJCb3R0b21MZWZ0UmFkaXVzOiAwLFxuICAgICAgICAgIGJvcmRlckxlZnRTdHlsZTogJ3NvbGlkJyxcbiAgICAgICAgICBib3JkZXJMZWZ0V2lkdGg6IHJlbSgxKSxcbiAgICAgICAgfSxcbiAgICAgICAgJzpsYXN0LW9mLXR5cGU6bnRoLW9mLXR5cGUoMiknOiB7XG4gICAgICAgICAgYm9yZGVyTGVmdFdpZHRoOiAwLFxuICAgICAgICB9LFxuICAgICAgfSxcbiAgICB9XG4pO1xuXG5leHBvcnQgZnVuY3Rpb24gZ2V0UmlwcGxlUHJvcGVydGllcyh0aGVtZTogVGhlbWUpIHtcbiAgcmV0dXJuIHtcbiAgICBob3Zlck9wYWNpdHk6IGdldCh0aGVtZSwgYGJ1dHRvbnMub3ZlcmxheXMuZmlsbGVkLmhvdmVyLm9wYWNpdHlgKSxcbiAgICBmb2N1c09wYWNpdHk6IGdldCh0aGVtZSwgYGJ1dHRvbnMub3ZlcmxheXMuZmlsbGVkLmZvY3VzLm9wYWNpdHlgKSxcbiAgICBwcmVzc2VkT3BhY2l0eTogZ2V0KHRoZW1lLCBgYnV0dG9ucy5vdmVybGF5cy5maWxsZWQucHJlc3NlZC5vcGFjaXR5YCksXG4gICAgcmlwcGxlRW5hYmxlZDogZmFsc2UsXG4gIH07XG59XG4iXX0= */");
|
|
963
859
|
function getRippleProperties$2(theme) {
|
|
964
860
|
return {
|
|
965
861
|
hoverOpacity: css.get(theme, `buttons.overlays.filled.hover.opacity`),
|
|
@@ -970,12 +866,12 @@ function getRippleProperties$2(theme) {
|
|
|
970
866
|
}
|
|
971
867
|
|
|
972
868
|
function getRippleProperties$1(theme) {
|
|
973
|
-
return
|
|
869
|
+
return { ...getRippleProperties$2(theme),
|
|
974
870
|
rippleEnabled: true
|
|
975
|
-
}
|
|
871
|
+
};
|
|
976
872
|
}
|
|
977
873
|
|
|
978
|
-
const OutlinedButton = /*#__PURE__*/_styled__default[
|
|
874
|
+
const OutlinedButton = /*#__PURE__*/_styled__default["default"](TransparentButton, process.env.NODE_ENV === "production" ? {
|
|
979
875
|
target: "eo0fwlz0"
|
|
980
876
|
} : {
|
|
981
877
|
target: "eo0fwlz0",
|
|
@@ -1019,22 +915,22 @@ const OutlinedButton = /*#__PURE__*/_styled__default['default'](TransparentButto
|
|
|
1019
915
|
borderLeftWidth: 0
|
|
1020
916
|
}
|
|
1021
917
|
}
|
|
1022
|
-
}, process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,
|
|
918
|
+
}, process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIk91dGxpbmVkQnV0dG9uLnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFPOEIiLCJmaWxlIjoiT3V0bGluZWRCdXR0b24udHN4Iiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHN0eWxlZCBmcm9tICdAZW1vdGlvbi9zdHlsZWQnO1xuaW1wb3J0IHsgY3NzIH0gZnJvbSAnQHN0eWxlZC1zeXN0ZW0vY3NzJztcbmltcG9ydCB7IHJlbSB9IGZyb20gJ3BvbGlzaGVkJztcblxuaW1wb3J0IHsgYWxwaGEgfSBmcm9tICcuLi9jb2xvcic7XG5pbXBvcnQgeyBUcmFuc3BhcmVudEJ1dHRvbiB9IGZyb20gJy4vVHJhbnNwYXJlbnRCdXR0b24nO1xuXG5leHBvcnQgY29uc3QgT3V0bGluZWRCdXR0b24gPSBzdHlsZWQoVHJhbnNwYXJlbnRCdXR0b24pKFxuICBjc3Moe1xuICAgIGJvcmRlclN0eWxlOiAnc29saWQnLFxuICAgIGJvcmRlcldpZHRoOiByZW0oMSksXG4gICAgYm9yZGVyQ29sb3I6ICdvdXRsaW5lJyxcbiAgICBib3hTaGFkb3c6IDAsXG4gICAgJyY6Zm9jdXMsOiZhY3RpdmUsOiZob3Zlcic6IHsgYm94U2hhZG93OiAwIH0sXG4gICAgJyY6Zm9jdXMtdmlzaWJsZSwmOmFjdGl2ZSc6IHtcbiAgICAgIGJvcmRlckNvbG9yOiAnY3VycmVudENvbG9yJyxcbiAgICB9LFxuICAgICcmOmRpc2FibGVkJzoge1xuICAgICAgY29sb3I6IGFscGhhKCdvbi5zdXJmYWNlJywgMC4zOCksXG4gICAgICBib3JkZXJDb2xvcjogYWxwaGEoJ29uLnN1cmZhY2UnLCAwLjEyKSxcbiAgICAgIGN1cnNvcjogJ2RlZmF1bHQnLFxuICAgIH0sXG4gIH0pLFxuICAoeyBpc0dyb3VwZWRCdXR0b24gPSBmYWxzZSB9KSA9PlxuICAgIGlzR3JvdXBlZEJ1dHRvbiAmJiB7XG4gICAgICAnW2RhdGEtYnV0dG9uLWdyb3VwPVwiXCJdICYnOiB7XG4gICAgICAgICc6Zmlyc3Qtb2YtdHlwZSc6IHtcbiAgICAgICAgICBib3JkZXJUb3BSaWdodFJhZGl1czogMCxcbiAgICAgICAgICBib3JkZXJCb3R0b21SaWdodFJhZGl1czogMCxcbiAgICAgICAgfSxcbiAgICAgICAgJzpub3QoOmZpcnN0LW9mLXR5cGUpOm5vdCg6bGFzdC1vZi10eXBlKSc6IHtcbiAgICAgICAgICBib3JkZXJSYWRpdXM6IDAsXG4gICAgICAgICAgYm9yZGVyUmlnaHRXaWR0aDogMCxcbiAgICAgICAgICBib3JkZXJMZWZ0V2lkdGg6IDAsXG4gICAgICAgIH0sXG4gICAgICAgICc6bGFzdC1vZi10eXBlJzoge1xuICAgICAgICAgIGJvcmRlclRvcExlZnRSYWRpdXM6IDAsXG4gICAgICAgICAgYm9yZGVyQm90dG9tTGVmdFJhZGl1czogMCxcbiAgICAgICAgICBib3JkZXJMZWZ0U3R5bGU6ICdzb2xpZCcsXG4gICAgICAgICAgYm9yZGVyTGVmdFdpZHRoOiByZW0oMSksXG4gICAgICAgIH0sXG4gICAgICAgICc6bGFzdC1vZi10eXBlOm50aC1vZi10eXBlKDIpJzoge1xuICAgICAgICAgIGJvcmRlckxlZnRXaWR0aDogMCxcbiAgICAgICAgfSxcbiAgICAgIH0sXG4gICAgfVxuKTtcbiJdfQ== */");
|
|
1023
919
|
|
|
1024
920
|
function getRippleProperties(theme) {
|
|
1025
|
-
return
|
|
921
|
+
return { ...getRippleProperties$2(theme),
|
|
1026
922
|
center: true,
|
|
1027
923
|
rippleEnabled: true
|
|
1028
|
-
}
|
|
924
|
+
};
|
|
1029
925
|
}
|
|
1030
926
|
|
|
1031
|
-
const RIPPLE_BACKGROUND_COLOR = `--css-${hash__default[
|
|
1032
|
-
const RIPPLE_TRANSLATE_START = `--css-${hash__default[
|
|
1033
|
-
const RIPPLE_TRANSLATE_END = `--css-${hash__default[
|
|
1034
|
-
const RIPPLE_SCALE_END = `--css-${hash__default[
|
|
1035
|
-
const RIPPLE_OPACITY_END = `--css-${hash__default[
|
|
1036
|
-
const RIPPLE_SIZE = `--css-${hash__default[
|
|
1037
|
-
const RIPPLE_POSITION = `--css-${hash__default[
|
|
927
|
+
const RIPPLE_BACKGROUND_COLOR = `--css-${hash__default["default"]('basic-ui-ripple-fg-bg-color')}`;
|
|
928
|
+
const RIPPLE_TRANSLATE_START = `--css-${hash__default["default"]('basic-ui-ripple-fg-translate-start')}`;
|
|
929
|
+
const RIPPLE_TRANSLATE_END = `--css-${hash__default["default"]('basic-ui-ripple-fg-translate-end')}`;
|
|
930
|
+
const RIPPLE_SCALE_END = `--css-${hash__default["default"]('basic-ui-ripple-fg-scale')}`;
|
|
931
|
+
const RIPPLE_OPACITY_END = `--css-${hash__default["default"]('basic-ui-ripple-fg-opacity')}`;
|
|
932
|
+
const RIPPLE_SIZE = `--css-${hash__default["default"]('basic-ui-ripple-fg-size')}`;
|
|
933
|
+
const RIPPLE_POSITION = `--css-${hash__default["default"]('basic-ui-ripple-fg-position')}`;
|
|
1038
934
|
|
|
1039
935
|
const rippleStyle = ({
|
|
1040
936
|
animation
|
|
@@ -1054,12 +950,12 @@ const rippleStyle = ({
|
|
|
1054
950
|
animation,
|
|
1055
951
|
willChange: 'opacity,transform'
|
|
1056
952
|
});
|
|
1057
|
-
const Ripple = _styled__default[
|
|
953
|
+
const Ripple = _styled__default["default"]("div", process.env.NODE_ENV === "production" ? {
|
|
1058
954
|
target: "ebk8cct0"
|
|
1059
955
|
} : {
|
|
1060
956
|
target: "ebk8cct0",
|
|
1061
957
|
label: "Ripple"
|
|
1062
|
-
})(rippleStyle, "pointer-events:none;" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,
|
|
958
|
+
})(rippleStyle, "pointer-events:none;" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlJpcHBsZS50c3giXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBOEJzQiIsImZpbGUiOiJSaXBwbGUudHN4Iiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHN0eWxlZCBmcm9tICdAZW1vdGlvbi9zdHlsZWQnO1xuaW1wb3J0IHR5cGUgeyBDU1NPYmplY3QgfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5cbmltcG9ydCB7XG4gIFJJUFBMRV9CQUNLR1JPVU5EX0NPTE9SLFxuICBSSVBQTEVfU0laRSxcbiAgUklQUExFX1BPU0lUSU9OLFxufSBmcm9tICcuL2NvbnN0YW50cyc7XG5cbmV4cG9ydCBjb25zdCByaXBwbGVTdHlsZSA9ICh7XG4gIGFuaW1hdGlvbixcbn06IHtcbiAgYW5pbWF0aW9uPzogc3RyaW5nO1xufSk6IENTU09iamVjdCA9PiAoe1xuICBwb3NpdGlvbjogJ2Fic29sdXRlJyxcbiAgYm94U2l6aW5nOiAnY29udGVudC1ib3gnLFxuICBkaXNwbGF5OiAnYmxvY2snLFxuICBjb250ZW50OiAnXCJcIicsXG4gIHdpZHRoOiBgdmFyKCR7UklQUExFX1NJWkV9KWAsXG4gIGhlaWdodDogYHZhcigke1JJUFBMRV9TSVpFfSlgLFxuICB0b3A6IGB2YXIoJHtSSVBQTEVfUE9TSVRJT059KWAsXG4gIGxlZnQ6IGB2YXIoJHtSSVBQTEVfUE9TSVRJT059KWAsXG4gIGJhY2tncm91bmRDb2xvcjogYHZhcigke1JJUFBMRV9CQUNLR1JPVU5EX0NPTE9SfSlgLFxuICB0cmFuc2Zvcm1PcmlnaW46ICdjZW50ZXIgY2VudGVyJyxcbiAgb3BhY2l0eTogMCxcbiAgYm9yZGVyUmFkaXVzOiAnOTk5OTk5cHgnLFxuICBhbmltYXRpb24sXG4gIHdpbGxDaGFuZ2U6ICdvcGFjaXR5LHRyYW5zZm9ybScsXG59KTtcblxuZXhwb3J0IGNvbnN0IFJpcHBsZSA9IHN0eWxlZC5kaXY8eyBhbmltYXRpb24/OiBzdHJpbmcgfT4ocmlwcGxlU3R5bGUsIHtcbiAgcG9pbnRlckV2ZW50czogJ25vbmUnLFxufSk7XG4iXX0= */"));
|
|
1063
959
|
|
|
1064
960
|
const radiusIn = react.keyframes({
|
|
1065
961
|
from: {
|
|
@@ -1128,9 +1024,11 @@ function calculateRipplePosition(rect, clientX, clientY, center = false) {
|
|
|
1128
1024
|
x: clientX - rect.left,
|
|
1129
1025
|
y: clientY - rect.top
|
|
1130
1026
|
};
|
|
1131
|
-
return
|
|
1132
|
-
state: 'entering'
|
|
1133
|
-
|
|
1027
|
+
return {
|
|
1028
|
+
state: 'entering',
|
|
1029
|
+
...rippleStart,
|
|
1030
|
+
...getScale(rect)
|
|
1031
|
+
};
|
|
1134
1032
|
}
|
|
1135
1033
|
|
|
1136
1034
|
const useRipple = opts => {
|
|
@@ -1160,19 +1058,22 @@ const useRipple = opts => {
|
|
|
1160
1058
|
|
|
1161
1059
|
const setLeft = () => {
|
|
1162
1060
|
rippleState.current = 'left';
|
|
1163
|
-
setRipple(
|
|
1061
|
+
setRipple({ ...defaultRipple
|
|
1062
|
+
});
|
|
1164
1063
|
};
|
|
1165
1064
|
|
|
1166
1065
|
const setLeaving = () => {
|
|
1167
1066
|
clearTimeout(enteringTimeout.current);
|
|
1168
1067
|
rippleState.current = 'leaving';
|
|
1169
|
-
setRipple(ripple =>
|
|
1068
|
+
setRipple(ripple => ({ ...ripple
|
|
1069
|
+
}));
|
|
1170
1070
|
leavingTimeout.current = window.setTimeout(setLeft, leaveDuration);
|
|
1171
1071
|
};
|
|
1172
1072
|
|
|
1173
1073
|
const setEntered = () => {
|
|
1174
1074
|
rippleState.current = 'entered';
|
|
1175
|
-
setRipple(ripple =>
|
|
1075
|
+
setRipple(ripple => ({ ...ripple
|
|
1076
|
+
}));
|
|
1176
1077
|
|
|
1177
1078
|
if (shouldLeave.current) {
|
|
1178
1079
|
setLeaving();
|
|
@@ -1192,7 +1093,8 @@ const useRipple = opts => {
|
|
|
1192
1093
|
clearTimeout(enteringTimeout.current);
|
|
1193
1094
|
shouldLeave.current = false;
|
|
1194
1095
|
rippleState.current = 'restart';
|
|
1195
|
-
setRipple(
|
|
1096
|
+
setRipple({ ...defaultRipple
|
|
1097
|
+
});
|
|
1196
1098
|
restartTimeout.current = requestAnimationFrame(() => {
|
|
1197
1099
|
rippleState.current = 'entering';
|
|
1198
1100
|
setRipple(calculateRipplePosition(rect, clientX, clientY, center));
|
|
@@ -1246,13 +1148,11 @@ const disabledHandler = () => {
|
|
|
1246
1148
|
};
|
|
1247
1149
|
|
|
1248
1150
|
function useRippleHandlers(opts) {
|
|
1249
|
-
const
|
|
1250
|
-
{
|
|
1151
|
+
const {
|
|
1251
1152
|
activate,
|
|
1252
|
-
deactivate
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1153
|
+
deactivate,
|
|
1154
|
+
...rest
|
|
1155
|
+
} = useRipple(opts); // Pointer activation
|
|
1256
1156
|
|
|
1257
1157
|
const handlePointerUp = () => {
|
|
1258
1158
|
window.removeEventListener('pointerup', handlePointerUp);
|
|
@@ -1291,13 +1191,14 @@ function useRippleHandlers(opts) {
|
|
|
1291
1191
|
window.addEventListener('keyup', handleKeyUp);
|
|
1292
1192
|
};
|
|
1293
1193
|
|
|
1294
|
-
return
|
|
1194
|
+
return {
|
|
1295
1195
|
handleKeyDown: opts.disabled ? disabledHandler : handleKeyDown,
|
|
1296
|
-
handlePointerDown: opts.disabled ? disabledHandler : handlePointerDown
|
|
1297
|
-
|
|
1196
|
+
handlePointerDown: opts.disabled ? disabledHandler : handlePointerDown,
|
|
1197
|
+
...rest
|
|
1198
|
+
};
|
|
1298
1199
|
}
|
|
1299
1200
|
|
|
1300
|
-
function useRippleSurface(opts) {
|
|
1201
|
+
function useRippleSurface(opts = {}) {
|
|
1301
1202
|
let {
|
|
1302
1203
|
// eslint-disable-next-line prefer-const
|
|
1303
1204
|
baseOpacity = 0,
|
|
@@ -1306,16 +1207,14 @@ function useRippleSurface(opts) {
|
|
|
1306
1207
|
pressedOpacity = 0.12,
|
|
1307
1208
|
rippleColor = 'on.surface'
|
|
1308
1209
|
} = opts;
|
|
1309
|
-
|
|
1310
1210
|
const {
|
|
1311
1211
|
onKeyDown,
|
|
1312
1212
|
onPointerDown,
|
|
1313
1213
|
style = {},
|
|
1314
1214
|
disabled,
|
|
1315
|
-
rippleEnabled = true
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1215
|
+
rippleEnabled = true,
|
|
1216
|
+
...rippleProps
|
|
1217
|
+
} = opts;
|
|
1319
1218
|
const theme = useTheme();
|
|
1320
1219
|
rippleColor = css.get(theme, `colors.${rippleColor}`) || rippleColor;
|
|
1321
1220
|
|
|
@@ -1330,13 +1229,13 @@ function useRippleSurface(opts) {
|
|
|
1330
1229
|
handlePointerDown,
|
|
1331
1230
|
style: animationStyle,
|
|
1332
1231
|
animation
|
|
1333
|
-
} = useRippleHandlers(
|
|
1232
|
+
} = useRippleHandlers({
|
|
1334
1233
|
opacity: Number(pressedOpacity),
|
|
1335
1234
|
backgroundColor: rippleColor,
|
|
1336
|
-
disabled
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
const css$1 =
|
|
1235
|
+
disabled,
|
|
1236
|
+
...rippleProps
|
|
1237
|
+
});
|
|
1238
|
+
const css$1 = react$1.useMemo(() => ({
|
|
1340
1239
|
overflow: 'hidden',
|
|
1341
1240
|
position: 'relative',
|
|
1342
1241
|
cursor: 'pointer',
|
|
@@ -1363,12 +1262,12 @@ function useRippleSurface(opts) {
|
|
|
1363
1262
|
},
|
|
1364
1263
|
'&:focus-visible::before': {
|
|
1365
1264
|
opacity: focusOpacity
|
|
1366
|
-
}
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1265
|
+
},
|
|
1266
|
+
...(!rippleEnabled && {
|
|
1267
|
+
'&:active::before': {
|
|
1268
|
+
opacity: pressedOpacity
|
|
1269
|
+
}
|
|
1270
|
+
}),
|
|
1372
1271
|
'&[aria-pressed="true"]::before': {
|
|
1373
1272
|
opacity: baseOpacity + pressedOpacity
|
|
1374
1273
|
},
|
|
@@ -1377,26 +1276,30 @@ function useRippleSurface(opts) {
|
|
|
1377
1276
|
},
|
|
1378
1277
|
'&[aria-pressed="true"]:focus-visible::before': {
|
|
1379
1278
|
opacity: pressedOpacity + focusOpacity
|
|
1380
|
-
}
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1279
|
+
},
|
|
1280
|
+
...(!rippleEnabled && {
|
|
1281
|
+
'&[aria-pressed="true"]:active::before': {
|
|
1282
|
+
opacity: pressedOpacity + pressedOpacity
|
|
1283
|
+
}
|
|
1284
|
+
}),
|
|
1386
1285
|
['&: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']: {
|
|
1387
1286
|
opacity: 0
|
|
1388
1287
|
},
|
|
1389
1288
|
'&:disabled,&[data-disabled]': {
|
|
1390
1289
|
cursor: 'default'
|
|
1391
|
-
}
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
|
|
1290
|
+
},
|
|
1291
|
+
// ripple
|
|
1292
|
+
...(rippleEnabled && {
|
|
1293
|
+
'&::after': { ...rippleStyle({
|
|
1294
|
+
animation
|
|
1295
|
+
})
|
|
1296
|
+
}
|
|
1297
|
+
})
|
|
1298
|
+
}), [animation, baseOpacity, focusOpacity, hoverOpacity, pressedOpacity, rippleColor, rippleEnabled]);
|
|
1398
1299
|
return {
|
|
1399
|
-
style:
|
|
1300
|
+
style: { ...animationStyle,
|
|
1301
|
+
...style
|
|
1302
|
+
},
|
|
1400
1303
|
onKeyDown: core.wrapEvent(onKeyDown, handleKeyDown),
|
|
1401
1304
|
onPointerDown: core.wrapEvent(onPointerDown, handlePointerDown),
|
|
1402
1305
|
__css: css$1
|
|
@@ -1407,23 +1310,46 @@ const RippleBox = /*#__PURE__*/react$1.forwardRef(function RippleBox(props, forw
|
|
|
1407
1310
|
const {
|
|
1408
1311
|
as = 'div',
|
|
1409
1312
|
__css,
|
|
1313
|
+
// Cherry picking the ripple props to prevent it from falling down to
|
|
1314
|
+
// the Box component
|
|
1315
|
+
onKeyDown,
|
|
1410
1316
|
// eslint-disable-line @typescript-eslint/no-unused-vars
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1317
|
+
onPointerDown,
|
|
1318
|
+
// eslint-disable-line @typescript-eslint/no-unused-vars
|
|
1319
|
+
baseOpacity,
|
|
1320
|
+
// eslint-disable-line @typescript-eslint/no-unused-vars
|
|
1321
|
+
hoverOpacity,
|
|
1322
|
+
// eslint-disable-line @typescript-eslint/no-unused-vars
|
|
1323
|
+
focusOpacity,
|
|
1324
|
+
// eslint-disable-line @typescript-eslint/no-unused-vars
|
|
1325
|
+
pressedOpacity,
|
|
1326
|
+
// eslint-disable-line @typescript-eslint/no-unused-vars
|
|
1327
|
+
rippleColor,
|
|
1328
|
+
// eslint-disable-line @typescript-eslint/no-unused-vars
|
|
1329
|
+
center,
|
|
1330
|
+
// eslint-disable-line @typescript-eslint/no-unused-vars
|
|
1331
|
+
disabled,
|
|
1332
|
+
// eslint-disable-line @typescript-eslint/no-unused-vars
|
|
1333
|
+
rippleEnabled,
|
|
1334
|
+
// eslint-disable-line @typescript-eslint/no-unused-vars
|
|
1335
|
+
style,
|
|
1336
|
+
// eslint-disable-line @typescript-eslint/no-unused-vars
|
|
1337
|
+
...otherProps
|
|
1338
|
+
} = props;
|
|
1339
|
+
const {
|
|
1340
|
+
__css: rippleCss,
|
|
1341
|
+
...rippleProps
|
|
1342
|
+
} = useRippleSurface(props);
|
|
1343
|
+
return /*#__PURE__*/jsxRuntime.jsx(Box, {
|
|
1422
1344
|
as: as,
|
|
1423
1345
|
ref: forwardedRef,
|
|
1424
|
-
__css:
|
|
1425
|
-
|
|
1426
|
-
|
|
1346
|
+
__css: { ...rippleCss,
|
|
1347
|
+
...__css
|
|
1348
|
+
},
|
|
1349
|
+
disabled,
|
|
1350
|
+
...otherProps,
|
|
1351
|
+
...rippleProps
|
|
1352
|
+
});
|
|
1427
1353
|
});
|
|
1428
1354
|
|
|
1429
1355
|
const ButtonGroupContext = /*#__PURE__*/react$1.createContext(null);
|
|
@@ -1461,30 +1387,28 @@ function getFallbackElevation(variant = 'text') {
|
|
|
1461
1387
|
|
|
1462
1388
|
const Button = /*#__PURE__*/react$1.forwardRef(function Button(props, forwardedRef) {
|
|
1463
1389
|
const buttonGroup = useButtonGroupContext();
|
|
1464
|
-
|
|
1465
1390
|
const {
|
|
1466
1391
|
children,
|
|
1467
|
-
variant =
|
|
1392
|
+
variant = buttonGroup?.variant || 'text',
|
|
1468
1393
|
onPointerDown: onPointerDownProp,
|
|
1469
1394
|
onKeyDown: onKeyDownProp,
|
|
1470
1395
|
color = 'primary',
|
|
1471
1396
|
disabled = false,
|
|
1472
1397
|
elevation = getFallbackElevation(props.variant),
|
|
1473
|
-
style: styleProp
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
|
|
1398
|
+
style: styleProp,
|
|
1399
|
+
...otherProps
|
|
1400
|
+
} = props;
|
|
1477
1401
|
const theme = useTheme();
|
|
1478
1402
|
const Comp = componentMapping[variant];
|
|
1479
1403
|
const getRippleProperties = rippleMapping[variant];
|
|
1480
|
-
const rippleProps = useRippleSurface(
|
|
1404
|
+
const rippleProps = useRippleSurface({ ...getRippleProperties(theme),
|
|
1481
1405
|
rippleColor: 'currentColor',
|
|
1482
1406
|
disabled,
|
|
1483
1407
|
style: styleProp,
|
|
1484
1408
|
onKeyDown: onKeyDownProp,
|
|
1485
1409
|
onPointerDown: onPointerDownProp
|
|
1486
|
-
})
|
|
1487
|
-
return /*#__PURE__*/jsxRuntime.jsx(Comp,
|
|
1410
|
+
});
|
|
1411
|
+
return /*#__PURE__*/jsxRuntime.jsx(Comp, {
|
|
1488
1412
|
ref: forwardedRef,
|
|
1489
1413
|
variant: variant,
|
|
1490
1414
|
theme: theme,
|
|
@@ -1492,49 +1416,50 @@ const Button = /*#__PURE__*/react$1.forwardRef(function Button(props, forwardedR
|
|
|
1492
1416
|
"aria-disabled": disabled ? 'true' : undefined,
|
|
1493
1417
|
color: color,
|
|
1494
1418
|
elevation: elevation,
|
|
1495
|
-
isGroupedButton: Boolean(buttonGroup)
|
|
1496
|
-
|
|
1419
|
+
isGroupedButton: Boolean(buttonGroup),
|
|
1420
|
+
...rippleProps,
|
|
1421
|
+
...otherProps,
|
|
1497
1422
|
children: children
|
|
1498
|
-
})
|
|
1423
|
+
});
|
|
1499
1424
|
});
|
|
1500
1425
|
|
|
1501
1426
|
const ButtonGroup = /*#__PURE__*/react$1.forwardRef(function ButtonGroup(props, forwardedRef) {
|
|
1502
1427
|
const {
|
|
1503
1428
|
as: Comp = 'div',
|
|
1504
1429
|
variant = 'text',
|
|
1505
|
-
direction = 'row'
|
|
1506
|
-
|
|
1507
|
-
|
|
1508
|
-
|
|
1430
|
+
direction = 'row',
|
|
1431
|
+
...otherProps
|
|
1432
|
+
} = props;
|
|
1509
1433
|
const value = react$1.useMemo(() => ({
|
|
1510
1434
|
direction,
|
|
1511
1435
|
variant
|
|
1512
1436
|
}), [direction, variant]);
|
|
1513
1437
|
return /*#__PURE__*/jsxRuntime.jsx(ButtonGroupContext.Provider, {
|
|
1514
1438
|
value: value,
|
|
1515
|
-
children: /*#__PURE__*/jsxRuntime.jsx(Comp,
|
|
1439
|
+
children: /*#__PURE__*/jsxRuntime.jsx(Comp, {
|
|
1516
1440
|
ref: forwardedRef,
|
|
1517
1441
|
role: "group",
|
|
1518
1442
|
"data-button-group": "",
|
|
1519
|
-
"data-button-group-direction": direction
|
|
1520
|
-
|
|
1443
|
+
"data-button-group-direction": direction,
|
|
1444
|
+
...otherProps
|
|
1445
|
+
})
|
|
1521
1446
|
});
|
|
1522
1447
|
});
|
|
1523
1448
|
|
|
1524
1449
|
const AppBarButton = /*#__PURE__*/react$1.forwardRef(function AppBarButton(props, forwardedRef) {
|
|
1525
1450
|
const {
|
|
1526
|
-
variant = 'icon'
|
|
1527
|
-
|
|
1528
|
-
|
|
1529
|
-
|
|
1451
|
+
variant = 'icon',
|
|
1452
|
+
...otherProps
|
|
1453
|
+
} = props;
|
|
1530
1454
|
const {
|
|
1531
1455
|
variant: appbarVariant
|
|
1532
1456
|
} = useAppBarContext();
|
|
1533
|
-
return /*#__PURE__*/jsxRuntime.jsx(Button,
|
|
1457
|
+
return /*#__PURE__*/jsxRuntime.jsx(Button, {
|
|
1534
1458
|
ref: forwardedRef,
|
|
1535
1459
|
variant: variant,
|
|
1536
|
-
color: appbarVariant === 'default' ? 'on.surface' : `on.${appbarVariant}
|
|
1537
|
-
|
|
1460
|
+
color: appbarVariant === 'default' ? 'on.surface' : `on.${appbarVariant}`,
|
|
1461
|
+
...otherProps
|
|
1462
|
+
});
|
|
1538
1463
|
});
|
|
1539
1464
|
|
|
1540
1465
|
const mappings = {
|
|
@@ -1555,56 +1480,58 @@ const mappings = {
|
|
|
1555
1480
|
const Text = /*#__PURE__*/react$1.forwardRef(function Text(props, forwardedRef) {
|
|
1556
1481
|
const {
|
|
1557
1482
|
as,
|
|
1558
|
-
variant = '
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
|
|
1483
|
+
variant = 'body-medium',
|
|
1484
|
+
...otherProps
|
|
1485
|
+
} = props;
|
|
1562
1486
|
let Comp = as;
|
|
1563
1487
|
|
|
1564
1488
|
if (!Comp) {
|
|
1565
1489
|
Comp = mappings[variant] || 'p';
|
|
1566
1490
|
}
|
|
1567
1491
|
|
|
1568
|
-
return /*#__PURE__*/jsxRuntime.jsx(Box,
|
|
1492
|
+
return /*#__PURE__*/jsxRuntime.jsx(Box, {
|
|
1569
1493
|
as: Comp,
|
|
1570
1494
|
ref: forwardedRef,
|
|
1571
1495
|
tx: "text",
|
|
1572
1496
|
variant: variant,
|
|
1573
1497
|
__css: {
|
|
1574
1498
|
color: 'inherit'
|
|
1575
|
-
}
|
|
1576
|
-
|
|
1499
|
+
},
|
|
1500
|
+
...otherProps
|
|
1501
|
+
});
|
|
1577
1502
|
});
|
|
1578
1503
|
|
|
1579
1504
|
const Alert = /*#__PURE__*/react$1.forwardRef(function Alert(props, forwardedRef) {
|
|
1580
1505
|
const {
|
|
1581
1506
|
as = 'div',
|
|
1582
1507
|
color = 'secondary',
|
|
1583
|
-
__css
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
return /*#__PURE__*/jsxRuntime.jsx(Text, _extends__default['default']({
|
|
1508
|
+
__css,
|
|
1509
|
+
...otherProps
|
|
1510
|
+
} = props;
|
|
1511
|
+
return /*#__PURE__*/jsxRuntime.jsx(Text, {
|
|
1588
1512
|
ref: forwardedRef,
|
|
1589
1513
|
as: as,
|
|
1590
|
-
variant: "
|
|
1591
|
-
__css:
|
|
1514
|
+
variant: "body-medium",
|
|
1515
|
+
__css: {
|
|
1592
1516
|
p: 3,
|
|
1593
1517
|
bg: alpha(color, 0.1),
|
|
1594
1518
|
borderRadius: 'extra-small',
|
|
1595
1519
|
borderColor: alpha(color, 0.2),
|
|
1596
1520
|
borderStyle: 'solid',
|
|
1597
|
-
borderWidth: "0.0625rem"
|
|
1598
|
-
|
|
1599
|
-
|
|
1521
|
+
borderWidth: "0.0625rem",
|
|
1522
|
+
...__css
|
|
1523
|
+
},
|
|
1524
|
+
...otherProps
|
|
1525
|
+
});
|
|
1600
1526
|
});
|
|
1601
1527
|
|
|
1602
1528
|
const Badge = /*#__PURE__*/react$1.forwardRef(function Badge(props, forwardedRef) {
|
|
1603
|
-
const
|
|
1604
|
-
|
|
1605
|
-
return /*#__PURE__*/jsxRuntime.jsx(Box,
|
|
1606
|
-
ref: forwardedRef
|
|
1607
|
-
|
|
1529
|
+
const { ...otherProps
|
|
1530
|
+
} = props;
|
|
1531
|
+
return /*#__PURE__*/jsxRuntime.jsx(Box, {
|
|
1532
|
+
ref: forwardedRef,
|
|
1533
|
+
...otherProps
|
|
1534
|
+
});
|
|
1608
1535
|
});
|
|
1609
1536
|
|
|
1610
1537
|
const BaseLine = () => {
|
|
@@ -1738,20 +1665,19 @@ const BaseLine = () => {
|
|
|
1738
1665
|
'[hidden]': {
|
|
1739
1666
|
display: 'none'
|
|
1740
1667
|
}
|
|
1741
|
-
}, process.env.NODE_ENV === "production" ? "" : ";label:BaseLine;", process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,
|
|
1668
|
+
}, process.env.NODE_ENV === "production" ? "" : ";label:BaseLine;", process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkJhc2VMaW5lLnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFZUSIsImZpbGUiOiJCYXNlTGluZS50c3giLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBHbG9iYWwgfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5pbXBvcnQgeyBjc3MsIGdldCB9IGZyb20gJ0BzdHlsZWQtc3lzdGVtL2Nzcyc7XG5cbmltcG9ydCB7IHVzZVRoZW1lIH0gZnJvbSAnLi4vdGhlbWUnO1xuXG5leHBvcnQgY29uc3QgQmFzZUxpbmUgPSAoKSA9PiB7XG4gIGNvbnN0IHRoZW1lID0gdXNlVGhlbWUoKTtcbiAgcmV0dXJuIChcbiAgICA8PlxuICAgICAgPEdsb2JhbCBzdHlsZXM9e2NzcyhnZXQodGhlbWUsICdzdHlsZXMucm9vdCcsIHt9KSl9IC8+XG4gICAgICB7Lyogbm9ybWFsaXplLmNzcyAqL31cbiAgICAgIDxHbG9iYWxcbiAgICAgICAgc3R5bGVzPXt7XG4gICAgICAgICAgaHRtbDogeyBsaW5lSGVpZ2h0OiAnMS4xNScsIFdlYmtpdFRleHRTaXplQWRqdXN0OiAnMTAwJScgfSxcbiAgICAgICAgICBib2R5OiB7XG4gICAgICAgICAgICBtYXJnaW46ICcwJyxcbiAgICAgICAgICB9LFxuICAgICAgICAgIG1haW46IHsgZGlzcGxheTogJ2Jsb2NrJyB9LFxuICAgICAgICAgIGgxOiB7IGZvbnRTaXplOiAnMmVtJywgbWFyZ2luOiAnMC42N2VtIDAnIH0sXG4gICAgICAgICAgaHI6IHsgYm94U2l6aW5nOiAnY29udGVudC1ib3gnLCBoZWlnaHQ6ICcwJywgb3ZlcmZsb3c6ICd2aXNpYmxlJyB9LFxuICAgICAgICAgIHByZTogeyBmb250RmFtaWx5OiAnbW9ub3NwYWNlLCBtb25vc3BhY2UnLCBmb250U2l6ZTogJzFlbScgfSxcbiAgICAgICAgICBhOiB7IGJhY2tncm91bmRDb2xvcjogJ3RyYW5zcGFyZW50JyB9LFxuICAgICAgICAgICdhYmJyW3RpdGxlXSc6IHtcbiAgICAgICAgICAgIGJvcmRlckJvdHRvbTogJ25vbmUnLFxuICAgICAgICAgICAgdGV4dERlY29yYXRpb246IFsndW5kZXJsaW5lJywgJ3VuZGVybGluZSBkb3R0ZWQnXSxcbiAgICAgICAgICB9LFxuICAgICAgICAgICdiLHN0cm9uZyc6IHsgZm9udFdlaWdodDogJ2JvbGRlcicgfSxcbiAgICAgICAgICAnY29kZSxrYmQsc2FtcCc6IHtcbiAgICAgICAgICAgIGZvbnRGYW1pbHk6ICdtb25vc3BhY2UsIG1vbm9zcGFjZScsXG4gICAgICAgICAgICBmb250U2l6ZTogJzFlbScsXG4gICAgICAgICAgfSxcbiAgICAgICAgICBzbWFsbDogeyBmb250U2l6ZTogJzgwJScgfSxcbiAgICAgICAgICAnc3ViLHN1cCc6IHtcbiAgICAgICAgICAgIGZvbnRTaXplOiAnNzUlJyxcbiAgICAgICAgICAgIGxpbmVIZWlnaHQ6ICcwJyxcbiAgICAgICAgICAgIHBvc2l0aW9uOiAncmVsYXRpdmUnLFxuICAgICAgICAgICAgdmVydGljYWxBbGlnbjogJ2Jhc2VsaW5lJyxcbiAgICAgICAgICB9LFxuICAgICAgICAgIHN1YjogeyBib3R0b206ICctMC4yNWVtJyB9LFxuICAgICAgICAgIHN1cDogeyB0b3A6ICctMC41ZW0nIH0sXG4gICAgICAgICAgaW1nOiB7IGJvcmRlclN0eWxlOiAnbm9uZScgfSxcbiAgICAgICAgICAnYnV0dG9uLGlucHV0LG9wdGdyb3VwLHNlbGVjdCx0ZXh0YXJlYSc6IHtcbiAgICAgICAgICAgIGZvbnRGYW1pbHk6ICdpbmhlcml0JyxcbiAgICAgICAgICAgIGZvbnRTaXplOiAnMTAwJScsXG4gICAgICAgICAgICBsaW5lSGVpZ2h0OiAnMS4xNScsXG4gICAgICAgICAgICBtYXJnaW46ICcwJyxcbiAgICAgICAgICB9LFxuICAgICAgICAgICdidXR0b24saW5wdXQnOiB7IG92ZXJmbG93OiAndmlzaWJsZScgfSxcbiAgICAgICAgICAnYnV0dG9uLHNlbGVjdCc6IHsgdGV4dFRyYW5zZm9ybTogJ25vbmUnIH0sXG4gICAgICAgICAgJ2J1dHRvbixbdHlwZT1cImJ1dHRvblwiXSxbdHlwZT1cInJlc2V0XCJdLFt0eXBlPVwic3VibWl0XCJdJzoge1xuICAgICAgICAgICAgV2Via2l0QXBwZWFyYW5jZTogJ2J1dHRvbicsXG4gICAgICAgICAgfSxcbiAgICAgICAgICAnYnV0dG9uOjotbW96LWZvY3VzLWlubmVyLFt0eXBlPVwiYnV0dG9uXCJdOjotbW96LWZvY3VzLWlubmVyLFt0eXBlPVwicmVzZXRcIl06Oi1tb3otZm9jdXMtaW5uZXIsW3R5cGU9XCJzdWJtaXRcIl06Oi1tb3otZm9jdXMtaW5uZXInOlxuICAgICAgICAgICAge1xuICAgICAgICAgICAgICBib3JkZXJTdHlsZTogJ25vbmUnLFxuICAgICAgICAgICAgICBwYWRkaW5nOiAnMCcsXG4gICAgICAgICAgICB9LFxuICAgICAgICAgICdidXR0b246LW1vei1mb2N1c3JpbmcsW3R5cGU9XCJidXR0b25cIl06LW1vei1mb2N1c3JpbmcsW3R5cGU9XCJyZXNldFwiXTotbW96LWZvY3VzcmluZyxbdHlwZT1cInN1Ym1pdFwiXTotbW96LWZvY3VzcmluZyc6XG4gICAgICAgICAgICB7XG4gICAgICAgICAgICAgIG91dGxpbmU6ICcxcHggZG90dGVkIEJ1dHRvblRleHQnLFxuICAgICAgICAgICAgfSxcbiAgICAgICAgICBmaWVsZHNldDogeyBwYWRkaW5nOiAnMC4zNWVtIDAuNzVlbSAwLjYyNWVtJyB9LFxuICAgICAgICAgIGxlZ2VuZDoge1xuICAgICAgICAgICAgYm94U2l6aW5nOiAnYm9yZGVyLWJveCcsXG4gICAgICAgICAgICBjb2xvcjogJ2luaGVyaXQnLFxuICAgICAgICAgICAgZGlzcGxheTogJ3RhYmxlJyxcbiAgICAgICAgICAgIG1heFdpZHRoOiAnMTAwJScsXG4gICAgICAgICAgICBwYWRkaW5nOiAnMCcsXG4gICAgICAgICAgICB3aGl0ZVNwYWNlOiAnbm9ybWFsJyxcbiAgICAgICAgICB9LFxuICAgICAgICAgIHByb2dyZXNzOiB7IHZlcnRpY2FsQWxpZ246ICdiYXNlbGluZScgfSxcbiAgICAgICAgICB0ZXh0YXJlYTogeyBvdmVyZmxvdzogJ2F1dG8nIH0sXG4gICAgICAgICAgJ1t0eXBlPVwiY2hlY2tib3hcIl0sW3R5cGU9XCJyYWRpb1wiXSc6IHtcbiAgICAgICAgICAgIGJveFNpemluZzogJ2JvcmRlci1ib3gnLFxuICAgICAgICAgICAgcGFkZGluZzogJzAnLFxuICAgICAgICAgIH0sXG4gICAgICAgICAgJ1t0eXBlPVwibnVtYmVyXCJdOjotd2Via2l0LWlubmVyLXNwaW4tYnV0dG9uLFt0eXBlPVwibnVtYmVyXCJdOjotd2Via2l0LW91dGVyLXNwaW4tYnV0dG9uJzpcbiAgICAgICAgICAgIHtcbiAgICAgICAgICAgICAgaGVpZ2h0OiAnYXV0bycsXG4gICAgICAgICAgICB9LFxuICAgICAgICAgICdbdHlwZT1cInNlYXJjaFwiXSc6IHtcbiAgICAgICAgICAgIFdlYmtpdEFwcGVhcmFuY2U6ICd0ZXh0ZmllbGQnLFxuICAgICAgICAgICAgb3V0bGluZU9mZnNldDogJy0ycHgnLFxuICAgICAgICAgIH0sXG4gICAgICAgICAgJ1t0eXBlPVwic2VhcmNoXCJdOjotd2Via2l0LXNlYXJjaC1kZWNvcmF0aW9uJzoge1xuICAgICAgICAgICAgV2Via2l0QXBwZWFyYW5jZTogJ25vbmUnLFxuICAgICAgICAgIH0sXG4gICAgICAgICAgJzo6LXdlYmtpdC1maWxlLXVwbG9hZC1idXR0b24nOiB7XG4gICAgICAgICAgICBXZWJraXRBcHBlYXJhbmNlOiAnYnV0dG9uJyxcbiAgICAgICAgICAgIGZvbnQ6ICdpbmhlcml0JyxcbiAgICAgICAgICB9LFxuICAgICAgICAgIGRldGFpbHM6IHsgZGlzcGxheTogJ2Jsb2NrJyB9LFxuICAgICAgICAgIHN1bW1hcnk6IHsgZGlzcGxheTogJ2xpc3QtaXRlbScgfSxcbiAgICAgICAgICB0ZW1wbGF0ZTogeyBkaXNwbGF5OiAnbm9uZScgfSxcbiAgICAgICAgICAnW2hpZGRlbl0nOiB7IGRpc3BsYXk6ICdub25lJyB9LFxuICAgICAgICB9fVxuICAgICAgLz5cbiAgICA8Lz5cbiAgKTtcbn07XG4iXX0= */")
|
|
1742
1669
|
})]
|
|
1743
1670
|
});
|
|
1744
1671
|
};
|
|
1745
1672
|
|
|
1746
1673
|
const Scrim = /*#__PURE__*/react$1.forwardRef(function Scrim(props, forwardedRef) {
|
|
1747
1674
|
const {
|
|
1748
|
-
__css
|
|
1749
|
-
|
|
1750
|
-
|
|
1751
|
-
|
|
1752
|
-
return /*#__PURE__*/jsxRuntime.jsx(Box, _extends__default['default']({
|
|
1675
|
+
__css,
|
|
1676
|
+
...otherProps
|
|
1677
|
+
} = props;
|
|
1678
|
+
return /*#__PURE__*/jsxRuntime.jsx(Box, {
|
|
1753
1679
|
ref: forwardedRef,
|
|
1754
|
-
__css:
|
|
1680
|
+
__css: {
|
|
1755
1681
|
position: 'fixed',
|
|
1756
1682
|
top: '0',
|
|
1757
1683
|
left: '0',
|
|
@@ -1762,20 +1688,21 @@ const Scrim = /*#__PURE__*/react$1.forwardRef(function Scrim(props, forwardedRef
|
|
|
1762
1688
|
backgroundColor: alpha('#000', 0.32),
|
|
1763
1689
|
willChange: 'opacity',
|
|
1764
1690
|
zIndex: -1,
|
|
1765
|
-
pointerEvents: 'none'
|
|
1766
|
-
|
|
1767
|
-
|
|
1691
|
+
pointerEvents: 'none',
|
|
1692
|
+
...__css
|
|
1693
|
+
},
|
|
1694
|
+
...otherProps
|
|
1695
|
+
});
|
|
1768
1696
|
});
|
|
1769
1697
|
|
|
1770
1698
|
const DialogContainer = /*#__PURE__*/react$1.forwardRef(function DialogContainer(props, forwardedRef) {
|
|
1771
1699
|
const {
|
|
1772
|
-
__css
|
|
1773
|
-
|
|
1774
|
-
|
|
1775
|
-
|
|
1776
|
-
return /*#__PURE__*/jsxRuntime.jsx(Box, _extends__default['default']({
|
|
1700
|
+
__css,
|
|
1701
|
+
...otherProps
|
|
1702
|
+
} = props;
|
|
1703
|
+
return /*#__PURE__*/jsxRuntime.jsx(Box, {
|
|
1777
1704
|
ref: forwardedRef,
|
|
1778
|
-
__css:
|
|
1705
|
+
__css: {
|
|
1779
1706
|
position: 'absolute',
|
|
1780
1707
|
display: 'flex',
|
|
1781
1708
|
alignItems: 'center',
|
|
@@ -1784,9 +1711,11 @@ const DialogContainer = /*#__PURE__*/react$1.forwardRef(function DialogContainer
|
|
|
1784
1711
|
height: '100%',
|
|
1785
1712
|
willChange: 'transform,opacity',
|
|
1786
1713
|
transformOrigin: 'center center',
|
|
1787
|
-
pointerEvents: 'none'
|
|
1788
|
-
|
|
1789
|
-
|
|
1714
|
+
pointerEvents: 'none',
|
|
1715
|
+
...__css
|
|
1716
|
+
},
|
|
1717
|
+
...otherProps
|
|
1718
|
+
});
|
|
1790
1719
|
});
|
|
1791
1720
|
|
|
1792
1721
|
function useAnimation(opts) {
|
|
@@ -1810,22 +1739,22 @@ function useAnimation(opts) {
|
|
|
1810
1739
|
open: openProp
|
|
1811
1740
|
});
|
|
1812
1741
|
const handleClose = react$1.useCallback(() => {
|
|
1813
|
-
setAnimation(animation => animation.state === 'closed' ? animation :
|
|
1742
|
+
setAnimation(animation => animation.state === 'closed' ? animation : { ...animation,
|
|
1814
1743
|
state: 'close',
|
|
1815
1744
|
style: animationStyle.close || animationStyle.closed,
|
|
1816
1745
|
timing: closeTimeoutInMilliseconds
|
|
1817
|
-
})
|
|
1746
|
+
});
|
|
1818
1747
|
}, [animationStyle, closeTimeoutInMilliseconds]);
|
|
1819
1748
|
const handleOpen = react$1.useCallback(() => {
|
|
1820
|
-
setAnimation(animation => animation.state === 'open' ? animation :
|
|
1749
|
+
setAnimation(animation => animation.state === 'open' ? animation : { ...animation,
|
|
1821
1750
|
open: true,
|
|
1822
1751
|
state: 'opening',
|
|
1823
1752
|
style: animationStyle.opening || animationStyle.closed
|
|
1824
|
-
})
|
|
1753
|
+
});
|
|
1825
1754
|
}, [animationStyle]);
|
|
1826
1755
|
react$1.useEffect(() => {
|
|
1827
1756
|
if (state === 'opening') {
|
|
1828
|
-
setAnimation(animation =>
|
|
1757
|
+
setAnimation(animation => ({ ...animation,
|
|
1829
1758
|
state: 'open',
|
|
1830
1759
|
style: animationStyle.open,
|
|
1831
1760
|
timing: openTimeoutInMilliseconds
|
|
@@ -1905,26 +1834,26 @@ const styles = {
|
|
|
1905
1834
|
};
|
|
1906
1835
|
function useDialogAnimation(opts) {
|
|
1907
1836
|
const {
|
|
1908
|
-
mode = 'grow'
|
|
1909
|
-
|
|
1910
|
-
|
|
1911
|
-
|
|
1837
|
+
mode = 'grow',
|
|
1838
|
+
...otherOpts
|
|
1839
|
+
} = opts;
|
|
1912
1840
|
const {
|
|
1913
1841
|
open,
|
|
1914
1842
|
state,
|
|
1915
1843
|
style,
|
|
1916
1844
|
timing
|
|
1917
|
-
} = useAnimation(
|
|
1845
|
+
} = useAnimation({
|
|
1918
1846
|
styles,
|
|
1919
|
-
mode
|
|
1920
|
-
|
|
1847
|
+
mode,
|
|
1848
|
+
...otherOpts
|
|
1849
|
+
});
|
|
1921
1850
|
const scrimOpacity = state === 'open' ? 1 : 0;
|
|
1922
|
-
const transition = `opacity ${timing}ms
|
|
1923
|
-
const scrimTransition = `opacity ${timing * 0.4 | 0}ms
|
|
1851
|
+
const transition = `opacity ${timing}ms ${EASING_STANDARD},transform ${timing}ms ${EASING_STANDARD}`;
|
|
1852
|
+
const scrimTransition = `opacity ${timing * 0.4 | 0}ms ${EASING_STANDARD}`;
|
|
1924
1853
|
return {
|
|
1925
|
-
containerStyle:
|
|
1854
|
+
containerStyle: { ...style,
|
|
1926
1855
|
transition
|
|
1927
|
-
}
|
|
1856
|
+
},
|
|
1928
1857
|
scrimStyle: {
|
|
1929
1858
|
opacity: scrimOpacity,
|
|
1930
1859
|
transition: scrimTransition
|
|
@@ -1938,43 +1867,45 @@ const DialogBackdrop = /*#__PURE__*/react$1.forwardRef(function DialogBackdrop(p
|
|
|
1938
1867
|
const {
|
|
1939
1868
|
open,
|
|
1940
1869
|
onClose,
|
|
1941
|
-
__css
|
|
1942
|
-
|
|
1943
|
-
|
|
1944
|
-
|
|
1870
|
+
__css,
|
|
1871
|
+
...otherProps
|
|
1872
|
+
} = props;
|
|
1945
1873
|
const pointerEvents = open ? undefined : 'none';
|
|
1946
|
-
return /*#__PURE__*/jsxRuntime.jsx(ModalBackdrop,
|
|
1874
|
+
return /*#__PURE__*/jsxRuntime.jsx(ModalBackdrop, {
|
|
1947
1875
|
as: Box,
|
|
1948
1876
|
ref: forwardedRef,
|
|
1949
1877
|
onClose: onClose,
|
|
1950
1878
|
style: {
|
|
1951
1879
|
pointerEvents
|
|
1952
1880
|
},
|
|
1953
|
-
__css:
|
|
1881
|
+
__css: {
|
|
1954
1882
|
position: 'fixed',
|
|
1955
1883
|
top: '0',
|
|
1956
1884
|
left: '0',
|
|
1957
1885
|
right: '0',
|
|
1958
1886
|
bottom: '0',
|
|
1959
|
-
zIndex: 'dialog'
|
|
1960
|
-
|
|
1961
|
-
|
|
1887
|
+
zIndex: 'dialog',
|
|
1888
|
+
// Can't set overflow auto here otherwise slide animation
|
|
1889
|
+
...__css
|
|
1890
|
+
},
|
|
1891
|
+
...otherProps
|
|
1892
|
+
});
|
|
1962
1893
|
});
|
|
1963
1894
|
|
|
1964
1895
|
const Modal$1 = core.Modal;
|
|
1965
1896
|
const BottomSheetSurface = /*#__PURE__*/react$1.forwardRef(function BottomSheetSurface(props, forwardedRef) {
|
|
1966
1897
|
const {
|
|
1967
|
-
__css
|
|
1968
|
-
|
|
1969
|
-
|
|
1970
|
-
|
|
1898
|
+
__css,
|
|
1899
|
+
...otherProps
|
|
1900
|
+
} = props;
|
|
1971
1901
|
const theme = useTheme();
|
|
1972
|
-
return /*#__PURE__*/jsxRuntime.jsx(Modal$1,
|
|
1902
|
+
return /*#__PURE__*/jsxRuntime.jsx(Modal$1, {
|
|
1973
1903
|
ref: forwardedRef,
|
|
1974
1904
|
as: Paper,
|
|
1975
1905
|
theme: theme,
|
|
1976
|
-
elevation:
|
|
1977
|
-
|
|
1906
|
+
elevation: 3,
|
|
1907
|
+
darkThemeBackgroundOverlay: 3,
|
|
1908
|
+
__css: {
|
|
1978
1909
|
position: 'absolute',
|
|
1979
1910
|
bg: 'surface',
|
|
1980
1911
|
bottom: 0,
|
|
@@ -1986,18 +1917,19 @@ const BottomSheetSurface = /*#__PURE__*/react$1.forwardRef(function BottomSheetS
|
|
|
1986
1917
|
maxWidth: "37.5rem",
|
|
1987
1918
|
maxHeight: '50%',
|
|
1988
1919
|
overflow: 'auto',
|
|
1989
|
-
pointerEvents: 'auto'
|
|
1990
|
-
|
|
1991
|
-
|
|
1920
|
+
pointerEvents: 'auto',
|
|
1921
|
+
...__css
|
|
1922
|
+
},
|
|
1923
|
+
...otherProps
|
|
1924
|
+
});
|
|
1992
1925
|
});
|
|
1993
1926
|
|
|
1994
1927
|
const BottomSheet = /*#__PURE__*/react$1.forwardRef(function BottomSheet(props, forwardedRef) {
|
|
1995
1928
|
const {
|
|
1996
1929
|
open: openProp = false,
|
|
1997
|
-
onClose
|
|
1998
|
-
|
|
1999
|
-
|
|
2000
|
-
|
|
1930
|
+
onClose,
|
|
1931
|
+
...otherProps
|
|
1932
|
+
} = props;
|
|
2001
1933
|
const {
|
|
2002
1934
|
containerStyle,
|
|
2003
1935
|
scrimStyle,
|
|
@@ -2019,9 +1951,10 @@ const BottomSheet = /*#__PURE__*/react$1.forwardRef(function BottomSheet(props,
|
|
|
2019
1951
|
__css: scrimStyle
|
|
2020
1952
|
}), /*#__PURE__*/jsxRuntime.jsx(DialogContainer, {
|
|
2021
1953
|
__css: containerStyle,
|
|
2022
|
-
children: /*#__PURE__*/jsxRuntime.jsx(BottomSheetSurface,
|
|
2023
|
-
ref: forwardedRef
|
|
2024
|
-
|
|
1954
|
+
children: /*#__PURE__*/jsxRuntime.jsx(BottomSheetSurface, {
|
|
1955
|
+
ref: forwardedRef,
|
|
1956
|
+
...otherProps
|
|
1957
|
+
})
|
|
2025
1958
|
})]
|
|
2026
1959
|
})
|
|
2027
1960
|
});
|
|
@@ -2041,16 +1974,15 @@ const Input = /*#__PURE__*/react$1.forwardRef(function Input(props, forwardedRef
|
|
|
2041
1974
|
hasLabel = true,
|
|
2042
1975
|
leadingIcon,
|
|
2043
1976
|
trailingIcon,
|
|
2044
|
-
multiline
|
|
2045
|
-
|
|
2046
|
-
|
|
2047
|
-
|
|
2048
|
-
|
|
2049
|
-
as: as,
|
|
1977
|
+
multiline,
|
|
1978
|
+
...otherProps
|
|
1979
|
+
} = props;
|
|
1980
|
+
return /*#__PURE__*/jsxRuntime.jsx(Box, {
|
|
1981
|
+
as: as,
|
|
2050
1982
|
ref: forwardedRef,
|
|
2051
|
-
multiline: multiline
|
|
2052
|
-
|
|
2053
|
-
__css:
|
|
1983
|
+
multiline: multiline,
|
|
1984
|
+
...otherProps,
|
|
1985
|
+
__css: {
|
|
2054
1986
|
WebkitTapHighlightColor: 'transparent',
|
|
2055
1987
|
appearance: 'none',
|
|
2056
1988
|
outline: 'none',
|
|
@@ -2066,17 +1998,16 @@ const Input = /*#__PURE__*/react$1.forwardRef(function Input(props, forwardedRef
|
|
|
2066
1998
|
letterSpacing: "0.03125rem",
|
|
2067
1999
|
textAlign: 'left',
|
|
2068
2000
|
display: 'flex',
|
|
2069
|
-
alignItems: 'center'
|
|
2070
|
-
|
|
2071
|
-
|
|
2072
|
-
|
|
2073
|
-
|
|
2074
|
-
|
|
2075
|
-
}, {
|
|
2001
|
+
alignItems: 'center',
|
|
2002
|
+
...(!multiline && {
|
|
2003
|
+
overflow: 'hidden',
|
|
2004
|
+
whiteSpace: 'nowrap',
|
|
2005
|
+
textOverflow: 'ellipsis'
|
|
2006
|
+
}),
|
|
2076
2007
|
'::placeholder': {
|
|
2077
2008
|
opacity: 0,
|
|
2078
2009
|
color: variant === 'filled' ? alpha('on.surface-variant', 0.87) : alpha('on.surface-variant', 0.6),
|
|
2079
|
-
transition: `opacity .18s
|
|
2010
|
+
transition: `opacity .18s ${EASING_STANDARD}`
|
|
2080
2011
|
},
|
|
2081
2012
|
':disabled::placeholder': {
|
|
2082
2013
|
color: alpha('on.surface', 0.38)
|
|
@@ -2097,19 +2028,23 @@ const Input = /*#__PURE__*/react$1.forwardRef(function Input(props, forwardedRef
|
|
|
2097
2028
|
}
|
|
2098
2029
|
},
|
|
2099
2030
|
paddingLeft: leadingIcon ? polished.rem(PADDING_LEFT_WITH_ICON + ICON_WIDTH + PADDING_LEFT_WITHOUT_ICON) : polished.rem(PADDING_LEFT_WITHOUT_ICON),
|
|
2100
|
-
paddingRight: trailingIcon ? polished.rem(PADDING_RIGHT_WITH_ICON + ICON_WIDTH + PADDING_RIGHT_WITHOUT_ICON) : polished.rem(PADDING_RIGHT_WITHOUT_ICON)
|
|
2101
|
-
|
|
2102
|
-
|
|
2103
|
-
|
|
2104
|
-
|
|
2105
|
-
|
|
2106
|
-
|
|
2107
|
-
|
|
2108
|
-
|
|
2109
|
-
|
|
2110
|
-
|
|
2111
|
-
|
|
2112
|
-
|
|
2031
|
+
paddingRight: trailingIcon ? polished.rem(PADDING_RIGHT_WITH_ICON + ICON_WIDTH + PADDING_RIGHT_WITHOUT_ICON) : polished.rem(PADDING_RIGHT_WITHOUT_ICON),
|
|
2032
|
+
...(variant === 'outlined' && {
|
|
2033
|
+
paddingTop: "1rem",
|
|
2034
|
+
paddingBottom: "1rem"
|
|
2035
|
+
}),
|
|
2036
|
+
...(variant === 'filled' && {
|
|
2037
|
+
paddingTop: hasLabel ? "1.5rem" : "1rem",
|
|
2038
|
+
paddingBottom: hasLabel ? "0.5rem" : "1rem"
|
|
2039
|
+
}),
|
|
2040
|
+
...(multiline && {
|
|
2041
|
+
resize: 'vertical',
|
|
2042
|
+
paddingTop: 0,
|
|
2043
|
+
marginTop: variant === 'outlined' || !hasLabel ? "1.125rem" : "1.625rem"
|
|
2044
|
+
}),
|
|
2045
|
+
...__css
|
|
2046
|
+
}
|
|
2047
|
+
});
|
|
2113
2048
|
});
|
|
2114
2049
|
|
|
2115
2050
|
const notchedoutlineContext = /*#__PURE__*/react$1.createContext(null);
|
|
@@ -2128,19 +2063,18 @@ const FloatingLabel = /*#__PURE__*/react$1.forwardRef(function FloatingLabel(pro
|
|
|
2128
2063
|
style = {},
|
|
2129
2064
|
translateX: translateXProp,
|
|
2130
2065
|
translateY: translateYProp,
|
|
2131
|
-
children
|
|
2132
|
-
|
|
2133
|
-
|
|
2134
|
-
|
|
2066
|
+
children,
|
|
2067
|
+
...otherProps
|
|
2068
|
+
} = props;
|
|
2135
2069
|
const ctx = useNotchedOutlineContext();
|
|
2136
2070
|
const notchStart = ctx ? ctx.notchStart : 0;
|
|
2137
2071
|
const Text$1 = Text;
|
|
2138
2072
|
const translateX = translateXProp !== undefined ? translateXProp : notchStart - offsetX;
|
|
2139
2073
|
const translateY = translateYProp !== undefined ? translateYProp : -height / 2;
|
|
2140
2074
|
const transform = active ? `translate(${polished.rem(translateX)}, ${polished.rem(translateY)}) scale(${scale})` : undefined;
|
|
2141
|
-
return /*#__PURE__*/jsxRuntime.jsx(Text$1,
|
|
2075
|
+
return /*#__PURE__*/jsxRuntime.jsx(Text$1, {
|
|
2142
2076
|
as: "label",
|
|
2143
|
-
variant: "
|
|
2077
|
+
variant: "body-large",
|
|
2144
2078
|
ref: forwardedRef,
|
|
2145
2079
|
__css: {
|
|
2146
2080
|
position: 'absolute',
|
|
@@ -2150,15 +2084,16 @@ const FloatingLabel = /*#__PURE__*/react$1.forwardRef(function FloatingLabel(pro
|
|
|
2150
2084
|
left: polished.rem(offsetX),
|
|
2151
2085
|
height: typeof height === 'number' ? polished.rem(height) : height,
|
|
2152
2086
|
transformOrigin: 'left center',
|
|
2153
|
-
transition: `transform ${transitionTime}ms
|
|
2087
|
+
transition: `transform ${transitionTime}ms ${EASING_STANDARD}, color ${transitionTime}ms ${EASING_STANDARD}`,
|
|
2154
2088
|
pointerEvents: 'none'
|
|
2155
2089
|
},
|
|
2156
|
-
style:
|
|
2157
|
-
transform
|
|
2158
|
-
|
|
2159
|
-
|
|
2090
|
+
style: {
|
|
2091
|
+
transform,
|
|
2092
|
+
...style
|
|
2093
|
+
},
|
|
2094
|
+
...otherProps,
|
|
2160
2095
|
children: children
|
|
2161
|
-
})
|
|
2096
|
+
});
|
|
2162
2097
|
});
|
|
2163
2098
|
|
|
2164
2099
|
const LineRipple = /*#__PURE__*/react$1.forwardRef(function LineRipple(props, forwardedRef) {
|
|
@@ -2169,10 +2104,9 @@ const LineRipple = /*#__PURE__*/react$1.forwardRef(function LineRipple(props, fo
|
|
|
2169
2104
|
active = false,
|
|
2170
2105
|
posx = -1,
|
|
2171
2106
|
style: styleProp = {},
|
|
2172
|
-
__css
|
|
2173
|
-
|
|
2174
|
-
|
|
2175
|
-
|
|
2107
|
+
__css,
|
|
2108
|
+
...otherProps
|
|
2109
|
+
} = props;
|
|
2176
2110
|
const [style, setStyle] = react$1.useState();
|
|
2177
2111
|
const theme = useTheme();
|
|
2178
2112
|
const leaveTimeout = react$1.useRef();
|
|
@@ -2197,13 +2131,15 @@ const LineRipple = /*#__PURE__*/react$1.forwardRef(function LineRipple(props, fo
|
|
|
2197
2131
|
clearTimeout(leaveTimeout.current);
|
|
2198
2132
|
};
|
|
2199
2133
|
}, [active, posx, transitionDuration]);
|
|
2200
|
-
return /*#__PURE__*/jsxRuntime.jsx(Box,
|
|
2134
|
+
return /*#__PURE__*/jsxRuntime.jsx(Box, {
|
|
2201
2135
|
as: asProp,
|
|
2202
2136
|
ref: forwardedRef,
|
|
2203
2137
|
bg: color,
|
|
2204
2138
|
theme: theme,
|
|
2205
|
-
style:
|
|
2206
|
-
|
|
2139
|
+
style: { ...style,
|
|
2140
|
+
...styleProp
|
|
2141
|
+
},
|
|
2142
|
+
__css: {
|
|
2207
2143
|
position: 'absolute',
|
|
2208
2144
|
bottom: '0',
|
|
2209
2145
|
left: '0',
|
|
@@ -2212,10 +2148,12 @@ const LineRipple = /*#__PURE__*/react$1.forwardRef(function LineRipple(props, fo
|
|
|
2212
2148
|
zIndex: 1,
|
|
2213
2149
|
transform: 'scaleX(0)',
|
|
2214
2150
|
transformOrigin: 'center center',
|
|
2215
|
-
transition: `transform ${transitionDuration}ms
|
|
2216
|
-
opacity: 0
|
|
2217
|
-
|
|
2218
|
-
|
|
2151
|
+
transition: `transform ${transitionDuration}ms ${EASING_STANDARD},opacity ${transitionDuration}ms ${EASING_STANDARD}`,
|
|
2152
|
+
opacity: 0,
|
|
2153
|
+
...__css
|
|
2154
|
+
},
|
|
2155
|
+
...otherProps
|
|
2156
|
+
});
|
|
2219
2157
|
});
|
|
2220
2158
|
|
|
2221
2159
|
const makeSelector$1 = state => `input:${state} ~ &,` + `select:${state} ~ &,` + `button:${state} ~ &,` + `textarea:${state} ~ &`;
|
|
@@ -2226,7 +2164,7 @@ const Overlay = props => {
|
|
|
2226
2164
|
} = props;
|
|
2227
2165
|
const theme = useTheme();
|
|
2228
2166
|
return /*#__PURE__*/jsxRuntime.jsx(Box, {
|
|
2229
|
-
__css:
|
|
2167
|
+
__css: {
|
|
2230
2168
|
position: 'absolute',
|
|
2231
2169
|
top: 0,
|
|
2232
2170
|
bottom: 0,
|
|
@@ -2245,10 +2183,11 @@ const Overlay = props => {
|
|
|
2245
2183
|
cursor: 'default',
|
|
2246
2184
|
color: alpha('on.surface', 0.6),
|
|
2247
2185
|
opacity: 0.02
|
|
2248
|
-
}
|
|
2249
|
-
|
|
2250
|
-
|
|
2251
|
-
|
|
2186
|
+
},
|
|
2187
|
+
...(forceActive && {
|
|
2188
|
+
opacity: css.get(theme, `buttons.overlays.transparent.focus.opacity`)
|
|
2189
|
+
})
|
|
2190
|
+
}
|
|
2252
2191
|
});
|
|
2253
2192
|
};
|
|
2254
2193
|
|
|
@@ -2278,20 +2217,19 @@ const FilledContainer = /*#__PURE__*/react$1.forwardRef(function FilledContainer
|
|
|
2278
2217
|
error = false,
|
|
2279
2218
|
disabled = false,
|
|
2280
2219
|
forceActive = false,
|
|
2281
|
-
leadingIcon
|
|
2282
|
-
|
|
2283
|
-
|
|
2284
|
-
|
|
2220
|
+
leadingIcon,
|
|
2221
|
+
...otherProps
|
|
2222
|
+
} = props;
|
|
2285
2223
|
const finalLabelHeight = 16;
|
|
2286
2224
|
const labelHeight = finalLabelHeight / 0.75;
|
|
2287
2225
|
const inputHeight = 56;
|
|
2288
2226
|
const color = error ? 'error' : colorProp;
|
|
2289
2227
|
const active = hasFocus || forceActive;
|
|
2290
|
-
return /*#__PURE__*/jsxRuntime.jsxs(Box,
|
|
2228
|
+
return /*#__PURE__*/jsxRuntime.jsxs(Box, {
|
|
2291
2229
|
ref: forwardedRef,
|
|
2292
2230
|
disabled: disabled,
|
|
2293
2231
|
active: active || error,
|
|
2294
|
-
__css:
|
|
2232
|
+
__css: {
|
|
2295
2233
|
position: 'relative',
|
|
2296
2234
|
lineHeight: 0,
|
|
2297
2235
|
width: '100%',
|
|
@@ -2300,14 +2238,16 @@ const FilledContainer = /*#__PURE__*/react$1.forwardRef(function FilledContainer
|
|
|
2300
2238
|
boxSizing: 'border-box',
|
|
2301
2239
|
borderTopRightRadius: "0.25rem",
|
|
2302
2240
|
borderTopLeftRadius: "0.25rem",
|
|
2303
|
-
color: alpha('on.surface-variant', 0.87)
|
|
2304
|
-
|
|
2305
|
-
|
|
2306
|
-
|
|
2307
|
-
|
|
2308
|
-
|
|
2309
|
-
|
|
2310
|
-
|
|
2241
|
+
color: alpha('on.surface-variant', 0.87),
|
|
2242
|
+
...(disabled && {
|
|
2243
|
+
backgroundColor: alpha('on.surface-variant', 0.08),
|
|
2244
|
+
color: alpha('on.surface-variant', 0.38)
|
|
2245
|
+
}),
|
|
2246
|
+
...(active && {
|
|
2247
|
+
color: 'primary'
|
|
2248
|
+
})
|
|
2249
|
+
},
|
|
2250
|
+
...otherProps,
|
|
2311
2251
|
children: [label && /*#__PURE__*/jsxRuntime.jsx(FloatingLabel, {
|
|
2312
2252
|
height: inputHeight,
|
|
2313
2253
|
offsetX: leadingIcon ? PADDING_LEFT_WITH_ICON + ICON_WIDTH + PADDING_LEFT_WITHOUT_ICON : PADDING_LEFT_WITHOUT_ICON,
|
|
@@ -2327,18 +2267,18 @@ const FilledContainer = /*#__PURE__*/react$1.forwardRef(function FilledContainer
|
|
|
2327
2267
|
active: active || error,
|
|
2328
2268
|
color: color
|
|
2329
2269
|
})]
|
|
2330
|
-
})
|
|
2270
|
+
});
|
|
2331
2271
|
});
|
|
2332
2272
|
|
|
2333
2273
|
const NOTCH_PADDING = 4;
|
|
2334
2274
|
|
|
2335
2275
|
const makeSelector = state => `input:${state} ~ & [data-notch-outline-item],` + `select:${state} ~ & [data-notch-outline-item],` + `[role="button"]:${state} ~ & [data-notch-outline-item],` + `textarea:${state} ~ & [data-notch-outline-item]`;
|
|
2336
2276
|
|
|
2337
|
-
const InnerContainer = /*#__PURE__*/_styled__default[
|
|
2338
|
-
shouldForwardProp: shouldForwardProp__default[
|
|
2277
|
+
const InnerContainer = /*#__PURE__*/_styled__default["default"]('div', process.env.NODE_ENV === "production" ? {
|
|
2278
|
+
shouldForwardProp: shouldForwardProp__default["default"],
|
|
2339
2279
|
target: "ejp8zhv0"
|
|
2340
2280
|
} : {
|
|
2341
|
-
shouldForwardProp: shouldForwardProp__default[
|
|
2281
|
+
shouldForwardProp: shouldForwardProp__default["default"],
|
|
2342
2282
|
target: "ejp8zhv0",
|
|
2343
2283
|
label: "InnerContainer"
|
|
2344
2284
|
})("position:absolute;display:flex;left:0;top:0;bottom:0;width:100%;height:100%;pointer-events:none;", ({
|
|
@@ -2378,32 +2318,32 @@ const InnerContainer = /*#__PURE__*/_styled__default['default']('div', process.e
|
|
|
2378
2318
|
};
|
|
2379
2319
|
}
|
|
2380
2320
|
|
|
2381
|
-
const inactiveStyle =
|
|
2321
|
+
const inactiveStyle = {
|
|
2382
2322
|
color: 'on.surface-variant',
|
|
2383
|
-
borderColor: 'outline'
|
|
2384
|
-
|
|
2385
|
-
|
|
2323
|
+
borderColor: 'outline',
|
|
2324
|
+
...borderStyling(borderRadius, borderWidth)
|
|
2325
|
+
};
|
|
2386
2326
|
const hoverStyle = {
|
|
2387
2327
|
borderColor: 'on.surface',
|
|
2388
2328
|
color: 'on.surface-variant'
|
|
2389
2329
|
};
|
|
2390
|
-
|
|
2391
|
-
const focusStyle = _extends__default['default']({
|
|
2330
|
+
const focusStyle = {
|
|
2392
2331
|
borderColor: color,
|
|
2393
|
-
color: alpha(color, 0.87)
|
|
2394
|
-
|
|
2395
|
-
|
|
2332
|
+
color: alpha(color, 0.87),
|
|
2333
|
+
...borderStyling(borderRadius, borderWidthWhenFocused)
|
|
2334
|
+
};
|
|
2396
2335
|
const disabledStyle = {
|
|
2397
2336
|
borderColor: alpha('on.surface', 0.06),
|
|
2398
2337
|
color: alpha('on.surface', 0.38)
|
|
2399
2338
|
};
|
|
2400
2339
|
return css.css({
|
|
2401
2340
|
// notch items styles when not focused
|
|
2402
|
-
['[data-notch-outline-item]']:
|
|
2341
|
+
['[data-notch-outline-item]']: {
|
|
2403
2342
|
boxSizing: 'border-box',
|
|
2404
2343
|
borderStyle,
|
|
2405
|
-
transition: `border-color .15s
|
|
2406
|
-
|
|
2344
|
+
transition: `border-color .15s ${EASING_STANDARD}`,
|
|
2345
|
+
...(forceActive ? focusStyle : inactiveStyle)
|
|
2346
|
+
},
|
|
2407
2347
|
// notch items styles when input is hovered
|
|
2408
2348
|
[makeSelector('hover:not([disabled]):not(:focus)')]: forceActive ? focusStyle : hoverStyle,
|
|
2409
2349
|
// notch items styles when input is focused
|
|
@@ -2411,7 +2351,7 @@ const InnerContainer = /*#__PURE__*/_styled__default['default']('div', process.e
|
|
|
2411
2351
|
// notch items styles when input is disabled
|
|
2412
2352
|
[makeSelector('disabled')]: disabledStyle
|
|
2413
2353
|
});
|
|
2414
|
-
}, process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,
|
|
2354
|
+
}, process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInN0eWxlZENvbXBvbmVudHMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBc0I4QiIsImZpbGUiOiJzdHlsZWRDb21wb25lbnRzLnRzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHN0eWxlZCBmcm9tICdAZW1vdGlvbi9zdHlsZWQnO1xuaW1wb3J0IHsgcmVtIH0gZnJvbSAncG9saXNoZWQnO1xuaW1wb3J0IHNob3VsZEZvcndhcmRQcm9wIGZyb20gJ0BzdHlsZWQtc3lzdGVtL3Nob3VsZC1mb3J3YXJkLXByb3AnO1xuaW1wb3J0IHsgY3NzIH0gZnJvbSAnQHN0eWxlZC1zeXN0ZW0vY3NzJztcblxuaW1wb3J0IHsgYWxwaGEgfSBmcm9tICcuLi9jb2xvcic7XG5pbXBvcnQgdHlwZSB7IFRoZW1lIH0gZnJvbSAnLi4vdGhlbWUnO1xuaW1wb3J0IHsgRUFTSU5HX1NUQU5EQVJEIH0gZnJvbSAnLi4vbW90aW9uJztcblxuZXhwb3J0IGNvbnN0IE5PVENIX1BBRERJTkcgPSA0O1xuXG5jb25zdCBtYWtlU2VsZWN0b3IgPSAoXG4gIHN0YXRlOlxuICAgIHwgJ2hvdmVyOm5vdChbZGlzYWJsZWRdKTpub3QoOmZvY3VzKSdcbiAgICB8ICdmb2N1czpub3QoW2Rpc2FibGVkXSknXG4gICAgfCAnZGlzYWJsZWQnXG4pID0+XG4gIGBpbnB1dDoke3N0YXRlfSB+ICYgW2RhdGEtbm90Y2gtb3V0bGluZS1pdGVtXSxgICtcbiAgYHNlbGVjdDoke3N0YXRlfSB+ICYgW2RhdGEtbm90Y2gtb3V0bGluZS1pdGVtXSxgICtcbiAgYFtyb2xlPVwiYnV0dG9uXCJdOiR7c3RhdGV9IH4gJiBbZGF0YS1ub3RjaC1vdXRsaW5lLWl0ZW1dLGAgK1xuICBgdGV4dGFyZWE6JHtzdGF0ZX0gfiAmIFtkYXRhLW5vdGNoLW91dGxpbmUtaXRlbV1gO1xuXG5leHBvcnQgY29uc3QgSW5uZXJDb250YWluZXIgPSBzdHlsZWQoJ2RpdicsIHtcbiAgc2hvdWxkRm9yd2FyZFByb3AsXG59KTx7XG4gIGNvbG9yPzogc3RyaW5nO1xuICB0aGVtZT86IFRoZW1lO1xuICBib3JkZXJSYWRpdXM6IG51bWJlcjtcbiAgYm9yZGVyV2lkdGg6IG51bWJlcjtcbiAgYm9yZGVyV2lkdGhXaGVuRm9jdXNlZDogbnVtYmVyO1xuICBib3JkZXJTdHlsZTogc3RyaW5nO1xuICBub3RjaFN0YXJ0OiBudW1iZXI7XG4gIGZvcmNlQWN0aXZlPzogYm9vbGVhbjtcbn0+KFxuICB7XG4gICAgcG9zaXRpb246ICdhYnNvbHV0ZScsXG4gICAgZGlzcGxheTogJ2ZsZXgnLFxuICAgIGxlZnQ6IDAsXG4gICAgdG9wOiAwLFxuICAgIGJvdHRvbTogMCxcbiAgICB3aWR0aDogJzEwMCUnLFxuICAgIGhlaWdodDogJzEwMCUnLFxuICAgIHBvaW50ZXJFdmVudHM6ICdub25lJyxcbiAgfSxcbiAgKHtcbiAgICBjb2xvciA9ICdvbi5zdXJmYWNlJyxcbiAgICBib3JkZXJSYWRpdXM6IGJvcmRlclJhZGl1c1B4LFxuICAgIGJvcmRlcldpZHRoOiBib3JkZXJXaWR0aFB4LFxuICAgIGJvcmRlcldpZHRoV2hlbkZvY3VzZWQ6IGJvcmRlcldpZHRoV2hlbkZvY3VzZWRQeCxcbiAgICBib3JkZXJTdHlsZSxcbiAgICBub3RjaFN0YXJ0LFxuICAgIGZvcmNlQWN0aXZlID0gZmFsc2UsXG4gIH0pID0+IHtcbiAgICBjb25zdCB3aWR0aCA9IHJlbShub3RjaFN0YXJ0IC0gTk9UQ0hfUEFERElORyk7XG4gICAgY29uc3QgYm9yZGVyUmFkaXVzID0gcmVtKGJvcmRlclJhZGl1c1B4KTtcbiAgICBjb25zdCBib3JkZXJXaWR0aCA9IHJlbShib3JkZXJXaWR0aFB4KTtcbiAgICBjb25zdCBib3JkZXJXaWR0aFdoZW5Gb2N1c2VkID0gcmVtKGJvcmRlcldpZHRoV2hlbkZvY3VzZWRQeCk7XG5cbiAgICBmdW5jdGlvbiBib3JkZXJTdHlsaW5nKGJvcmRlclJhZGl1czogc3RyaW5nLCBib3JkZXJXaWR0aDogc3RyaW5nKSB7XG4gICAgICByZXR1cm4ge1xuICAgICAgICBbJyZbZGF0YS1ub3RjaC1vdXRsaW5lLWl0ZW09XCJzdGFydFwiXSddOiB7XG4gICAgICAgICAgYm9yZGVyVG9wTGVmdFJhZGl1czogYm9yZGVyUmFkaXVzLFxuICAgICAgICAgIGJvcmRlckJvdHRvbUxlZnRSYWRpdXM6IGJvcmRlclJhZGl1cyxcbiAgICAgICAgICBib3JkZXJXaWR0aDogYm9yZGVyV2lkdGgsXG4gICAgICAgICAgYm9yZGVyUmlnaHRXaWR0aDogMCxcbiAgICAgICAgICB3aWR0aCxcbiAgICAgICAgfSxcbiAgICAgICAgWycmW2RhdGEtbm90Y2gtb3V0bGluZS1pdGVtPVwibWlkZGxlXCJdJ106IHtcbiAgICAgICAgICBib3JkZXJXaWR0aDogMCxcbiAgICAgICAgICBib3JkZXJCb3R0b21XaWR0aDogYm9yZGVyV2lkdGgsXG4gICAgICAgIH0sXG4gICAgICAgIFsnJltkYXRhLW5vdGNoLW91dGxpbmUtaXRlbT1cImVuZFwiXSddOiB7XG4gICAgICAgICAgYm9yZGVyV2lkdGg6IGJvcmRlcldpZHRoLFxuICAgICAgICAgIGJvcmRlckxlZnQ6IDAsXG4gICAgICAgICAgYm9yZGVyVG9wUmlnaHRSYWRpdXM6IGJvcmRlclJhZGl1cyxcbiAgICAgICAgICBib3JkZXJCb3R0b21SaWdodFJhZGl1czogYm9yZGVyUmFkaXVzLFxuICAgICAgICAgIGZsZXg6IDEsXG4gICAgICAgIH0sXG4gICAgICB9O1xuICAgIH1cblxuICAgIGNvbnN0IGluYWN0aXZlU3R5bGUgPSB7XG4gICAgICBjb2xvcjogJ29uLnN1cmZhY2UtdmFyaWFudCcsXG4gICAgICBib3JkZXJDb2xvcjogJ291dGxpbmUnLFxuICAgICAgLi4uYm9yZGVyU3R5bGluZyhib3JkZXJSYWRpdXMsIGJvcmRlcldpZHRoKSxcbiAgICB9O1xuXG4gICAgY29uc3QgaG92ZXJTdHlsZSA9IHtcbiAgICAgIGJvcmRlckNvbG9yOiAnb24uc3VyZmFjZScsXG4gICAgICBjb2xvcjogJ29uLnN1cmZhY2UtdmFyaWFudCcsXG4gICAgfTtcblxuICAgIGNvbnN0IGZvY3VzU3R5bGUgPSB7XG4gICAgICBib3JkZXJDb2xvcjogY29sb3IsXG4gICAgICBjb2xvcjogYWxwaGEoY29sb3IsIDAuODcpLFxuICAgICAgLi4uYm9yZGVyU3R5bGluZyhib3JkZXJSYWRpdXMsIGJvcmRlcldpZHRoV2hlbkZvY3VzZWQpLFxuICAgIH07XG5cbiAgICBjb25zdCBkaXNhYmxlZFN0eWxlID0ge1xuICAgICAgYm9yZGVyQ29sb3I6IGFscGhhKCdvbi5zdXJmYWNlJywgMC4wNiksXG4gICAgICBjb2xvcjogYWxwaGEoJ29uLnN1cmZhY2UnLCAwLjM4KSxcbiAgICB9O1xuXG4gICAgcmV0dXJuIGNzcyh7XG4gICAgICAvLyBub3RjaCBpdGVtcyBzdHlsZXMgd2hlbiBub3QgZm9jdXNlZFxuICAgICAgWydbZGF0YS1ub3RjaC1vdXRsaW5lLWl0ZW1dJ106IHtcbiAgICAgICAgYm94U2l6aW5nOiAnYm9yZGVyLWJveCcsXG4gICAgICAgIGJvcmRlclN0eWxlLFxuICAgICAgICB0cmFuc2l0aW9uOiBgYm9yZGVyLWNvbG9yIC4xNXMgJHtFQVNJTkdfU1RBTkRBUkR9YCxcbiAgICAgICAgLi4uKGZvcmNlQWN0aXZlID8gZm9jdXNTdHlsZSA6IGluYWN0aXZlU3R5bGUpLFxuICAgICAgfSxcbiAgICAgIC8vIG5vdGNoIGl0ZW1zIHN0eWxlcyB3aGVuIGlucHV0IGlzIGhvdmVyZWRcbiAgICAgIFttYWtlU2VsZWN0b3IoJ2hvdmVyOm5vdChbZGlzYWJsZWRdKTpub3QoOmZvY3VzKScpXTogZm9yY2VBY3RpdmVcbiAgICAgICAgPyBmb2N1c1N0eWxlXG4gICAgICAgIDogaG92ZXJTdHlsZSxcbiAgICAgIC8vIG5vdGNoIGl0ZW1zIHN0eWxlcyB3aGVuIGlucHV0IGlzIGZvY3VzZWRcbiAgICAgIFttYWtlU2VsZWN0b3IoJ2ZvY3VzOm5vdChbZGlzYWJsZWRdKScpXTogZm9jdXNTdHlsZSxcbiAgICAgIC8vIG5vdGNoIGl0ZW1zIHN0eWxlcyB3aGVuIGlucHV0IGlzIGRpc2FibGVkXG4gICAgICBbbWFrZVNlbGVjdG9yKCdkaXNhYmxlZCcpXTogZGlzYWJsZWRTdHlsZSxcbiAgICB9KTtcbiAgfVxuKTtcbiJdfQ== */");
|
|
2415
2355
|
|
|
2416
2356
|
const NotchedOutline = /*#__PURE__*/react$1.forwardRef(function NotchedOutline(props, forwardedRef) {
|
|
2417
2357
|
let {
|
|
@@ -2425,12 +2365,11 @@ const NotchedOutline = /*#__PURE__*/react$1.forwardRef(function NotchedOutline(p
|
|
|
2425
2365
|
notchActive = false,
|
|
2426
2366
|
forceActive = false,
|
|
2427
2367
|
children,
|
|
2428
|
-
label
|
|
2368
|
+
label,
|
|
2369
|
+
...otherProps
|
|
2429
2370
|
/* eslint-enable prefer-const */
|
|
2430
2371
|
|
|
2431
|
-
} = props
|
|
2432
|
-
otherProps = _objectWithoutPropertiesLoose__default['default'](props, ["borderRadius", "borderColor", "borderWidth", "borderStyle", "notchStart", "notchWidth", "notchActive", "forceActive", "children", "label"]); // Minimum notch start position that makes sense. Otherwise it will mess up with the border/border radii
|
|
2433
|
-
|
|
2372
|
+
} = props; // Minimum notch start position that makes sense. Otherwise it will mess up with the border/border radii
|
|
2434
2373
|
|
|
2435
2374
|
const MIN_NOTCH_POSX = (props.borderRadius || 0) + NOTCH_PADDING;
|
|
2436
2375
|
const theme = useTheme();
|
|
@@ -2439,9 +2378,9 @@ const NotchedOutline = /*#__PURE__*/react$1.forwardRef(function NotchedOutline(p
|
|
|
2439
2378
|
value: {
|
|
2440
2379
|
notchStart
|
|
2441
2380
|
},
|
|
2442
|
-
children: [children, /*#__PURE__*/jsxRuntime.jsxs(InnerContainer,
|
|
2443
|
-
ref: forwardedRef
|
|
2444
|
-
|
|
2381
|
+
children: [children, /*#__PURE__*/jsxRuntime.jsxs(InnerContainer, {
|
|
2382
|
+
ref: forwardedRef,
|
|
2383
|
+
...otherProps,
|
|
2445
2384
|
color: borderColor,
|
|
2446
2385
|
theme: theme,
|
|
2447
2386
|
borderRadius: borderRadius,
|
|
@@ -2461,7 +2400,7 @@ const NotchedOutline = /*#__PURE__*/react$1.forwardRef(function NotchedOutline(p
|
|
|
2461
2400
|
}), /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
2462
2401
|
"data-notch-outline-item": "end"
|
|
2463
2402
|
})]
|
|
2464
|
-
})
|
|
2403
|
+
})]
|
|
2465
2404
|
});
|
|
2466
2405
|
});
|
|
2467
2406
|
|
|
@@ -2475,20 +2414,17 @@ const OutlinedContainer = /*#__PURE__*/react$1.forwardRef(function OutlinedConta
|
|
|
2475
2414
|
children,
|
|
2476
2415
|
error,
|
|
2477
2416
|
color: colorProp = 'primary',
|
|
2478
|
-
leadingIcon
|
|
2479
|
-
|
|
2480
|
-
|
|
2481
|
-
|
|
2417
|
+
leadingIcon,
|
|
2418
|
+
...otherProps
|
|
2419
|
+
} = props;
|
|
2482
2420
|
const [labelWidth, setLabelWidth] = react$1.useState(0);
|
|
2483
2421
|
const labelRef = react$1.useRef(null);
|
|
2484
2422
|
useEnhancedEffect$1(() => {
|
|
2485
2423
|
const element = labelRef.current;
|
|
2486
2424
|
|
|
2487
2425
|
if (element) {
|
|
2488
|
-
var _document, _document$fonts, _document$fonts$ready;
|
|
2489
|
-
|
|
2490
2426
|
setLabelWidth(element.offsetWidth);
|
|
2491
|
-
|
|
2427
|
+
document?.fonts?.ready?.then(() => {
|
|
2492
2428
|
// set the label width again once the fonts have been loaded
|
|
2493
2429
|
requestAnimationFrame(() => {
|
|
2494
2430
|
setLabelWidth(element.offsetWidth);
|
|
@@ -2498,10 +2434,10 @@ const OutlinedContainer = /*#__PURE__*/react$1.forwardRef(function OutlinedConta
|
|
|
2498
2434
|
}, [label]);
|
|
2499
2435
|
const color = error ? 'error' : colorProp;
|
|
2500
2436
|
const inputHeight = 56;
|
|
2501
|
-
return /*#__PURE__*/jsxRuntime.jsx(Box,
|
|
2437
|
+
return /*#__PURE__*/jsxRuntime.jsx(Box, {
|
|
2502
2438
|
position: "relative",
|
|
2503
|
-
lineHeight: 0
|
|
2504
|
-
|
|
2439
|
+
lineHeight: 0,
|
|
2440
|
+
...otherProps,
|
|
2505
2441
|
children: /*#__PURE__*/jsxRuntime.jsx(NotchedOutline, {
|
|
2506
2442
|
ref: forwardedRef,
|
|
2507
2443
|
borderRadius: 4,
|
|
@@ -2522,7 +2458,7 @@ const OutlinedContainer = /*#__PURE__*/react$1.forwardRef(function OutlinedConta
|
|
|
2522
2458
|
}),
|
|
2523
2459
|
children: children
|
|
2524
2460
|
})
|
|
2525
|
-
})
|
|
2461
|
+
});
|
|
2526
2462
|
});
|
|
2527
2463
|
|
|
2528
2464
|
const HelperText = /*#__PURE__*/react$1.forwardRef(function HelperText(props, forwardedRef) {
|
|
@@ -2532,9 +2468,9 @@ const HelperText = /*#__PURE__*/react$1.forwardRef(function HelperText(props, fo
|
|
|
2532
2468
|
color: colorProp,
|
|
2533
2469
|
error = false,
|
|
2534
2470
|
disabled = false,
|
|
2535
|
-
__css
|
|
2536
|
-
|
|
2537
|
-
|
|
2471
|
+
__css,
|
|
2472
|
+
...otherProps
|
|
2473
|
+
} = props;
|
|
2538
2474
|
|
|
2539
2475
|
if (!leftSide && !rightSide) {
|
|
2540
2476
|
return null;
|
|
@@ -2550,24 +2486,25 @@ const HelperText = /*#__PURE__*/react$1.forwardRef(function HelperText(props, fo
|
|
|
2550
2486
|
color = alpha('on.surface', 0.6);
|
|
2551
2487
|
}
|
|
2552
2488
|
|
|
2553
|
-
return /*#__PURE__*/jsxRuntime.jsxs(Text,
|
|
2489
|
+
return /*#__PURE__*/jsxRuntime.jsxs(Text, {
|
|
2554
2490
|
as: "div",
|
|
2555
2491
|
px: 16,
|
|
2556
2492
|
display: "flex",
|
|
2557
2493
|
pt: 1,
|
|
2558
2494
|
color: color,
|
|
2559
|
-
variant: "
|
|
2495
|
+
variant: "label-small",
|
|
2560
2496
|
ref: forwardedRef,
|
|
2561
2497
|
lineHeight: "normal",
|
|
2562
|
-
__css:
|
|
2563
|
-
color
|
|
2564
|
-
|
|
2565
|
-
|
|
2498
|
+
__css: {
|
|
2499
|
+
color,
|
|
2500
|
+
...__css
|
|
2501
|
+
},
|
|
2502
|
+
...otherProps,
|
|
2566
2503
|
children: [leftSide, rightSide && /*#__PURE__*/jsxRuntime.jsx(Box, {
|
|
2567
2504
|
ml: "auto",
|
|
2568
2505
|
children: rightSide
|
|
2569
2506
|
})]
|
|
2570
|
-
})
|
|
2507
|
+
});
|
|
2571
2508
|
});
|
|
2572
2509
|
|
|
2573
2510
|
const IconContainer = ({
|
|
@@ -2628,10 +2565,9 @@ const TextField = /*#__PURE__*/react$1.forwardRef(function TextField(props, forw
|
|
|
2628
2565
|
onBlur,
|
|
2629
2566
|
leadingIcon = null,
|
|
2630
2567
|
trailingIcon = null,
|
|
2631
|
-
containerProps
|
|
2632
|
-
|
|
2633
|
-
|
|
2634
|
-
|
|
2568
|
+
containerProps,
|
|
2569
|
+
...otherProps
|
|
2570
|
+
} = props;
|
|
2635
2571
|
const [value, onChange] = core.useControlledState(valueProp, onChangeProp, defaultValue, setState => e => {
|
|
2636
2572
|
setState(e.target.value);
|
|
2637
2573
|
});
|
|
@@ -2658,7 +2594,7 @@ const TextField = /*#__PURE__*/react$1.forwardRef(function TextField(props, forw
|
|
|
2658
2594
|
display: "inline-flex",
|
|
2659
2595
|
flexDirection: "column",
|
|
2660
2596
|
width: "100%",
|
|
2661
|
-
children: [/*#__PURE__*/jsxRuntime.jsxs(Container,
|
|
2597
|
+
children: [/*#__PURE__*/jsxRuntime.jsxs(Container, {
|
|
2662
2598
|
theme: theme,
|
|
2663
2599
|
label: label,
|
|
2664
2600
|
color: color,
|
|
@@ -2667,12 +2603,12 @@ const TextField = /*#__PURE__*/react$1.forwardRef(function TextField(props, forw
|
|
|
2667
2603
|
inputId: inputId,
|
|
2668
2604
|
hasFocus: hasFocus,
|
|
2669
2605
|
disabled: disabled,
|
|
2670
|
-
leadingIcon: Boolean(leadingIcon)
|
|
2671
|
-
|
|
2606
|
+
leadingIcon: Boolean(leadingIcon),
|
|
2607
|
+
...containerProps,
|
|
2672
2608
|
children: [leadingIcon && /*#__PURE__*/jsxRuntime.jsx(IconContainer, {
|
|
2673
2609
|
position: "start",
|
|
2674
2610
|
children: leadingIcon
|
|
2675
|
-
}), /*#__PURE__*/jsxRuntime.jsx(Input,
|
|
2611
|
+
}), /*#__PURE__*/jsxRuntime.jsx(Input, {
|
|
2676
2612
|
ref: forwardedRef,
|
|
2677
2613
|
as: multiline ? 'textarea' : 'input',
|
|
2678
2614
|
variant: variant,
|
|
@@ -2691,12 +2627,13 @@ const TextField = /*#__PURE__*/react$1.forwardRef(function TextField(props, forw
|
|
|
2691
2627
|
"aria-describedby": helperTextId,
|
|
2692
2628
|
hasLabel: !!label,
|
|
2693
2629
|
leadingIcon: Boolean(leadingIcon),
|
|
2694
|
-
trailingIcon: Boolean(trailingIcon)
|
|
2695
|
-
|
|
2630
|
+
trailingIcon: Boolean(trailingIcon),
|
|
2631
|
+
...otherProps
|
|
2632
|
+
}), trailingIcon && /*#__PURE__*/jsxRuntime.jsx(IconContainer, {
|
|
2696
2633
|
position: "end",
|
|
2697
2634
|
children: trailingIcon
|
|
2698
2635
|
})]
|
|
2699
|
-
})
|
|
2636
|
+
}), /*#__PURE__*/jsxRuntime.jsx(HelperText, {
|
|
2700
2637
|
error: hasError,
|
|
2701
2638
|
disabled: disabled,
|
|
2702
2639
|
leftSide: helperText && /*#__PURE__*/jsxRuntime.jsx("span", {
|
|
@@ -2717,22 +2654,24 @@ const List = /*#__PURE__*/react$1.forwardRef(function List(props, forwardedRef)
|
|
|
2717
2654
|
px = 0,
|
|
2718
2655
|
outlined = true,
|
|
2719
2656
|
variant = 'square',
|
|
2720
|
-
__css = {}
|
|
2721
|
-
|
|
2722
|
-
|
|
2723
|
-
|
|
2724
|
-
return /*#__PURE__*/jsxRuntime.jsx(Paper, _extends__default['default']({
|
|
2657
|
+
__css = {},
|
|
2658
|
+
...otherProps
|
|
2659
|
+
} = props;
|
|
2660
|
+
return /*#__PURE__*/jsxRuntime.jsx(Paper, {
|
|
2725
2661
|
as: innerAs || as,
|
|
2726
2662
|
ref: forwardedRef,
|
|
2727
2663
|
py: py,
|
|
2728
2664
|
px: px,
|
|
2729
2665
|
elevation: elevation,
|
|
2666
|
+
darkThemeBackgroundOverlay: elevation,
|
|
2730
2667
|
variant: variant,
|
|
2731
2668
|
outlined: outlined,
|
|
2732
|
-
__css:
|
|
2733
|
-
width: '100%'
|
|
2734
|
-
|
|
2735
|
-
|
|
2669
|
+
__css: {
|
|
2670
|
+
width: '100%',
|
|
2671
|
+
...__css
|
|
2672
|
+
},
|
|
2673
|
+
...otherProps
|
|
2674
|
+
});
|
|
2736
2675
|
});
|
|
2737
2676
|
|
|
2738
2677
|
const ListItem = /*#__PURE__*/react$1.forwardRef(function ListItem(props, forwardedRef) {
|
|
@@ -2745,26 +2684,26 @@ const ListItem = /*#__PURE__*/react$1.forwardRef(function ListItem(props, forwar
|
|
|
2745
2684
|
disabled = false,
|
|
2746
2685
|
color: colorProp,
|
|
2747
2686
|
rippleColor,
|
|
2748
|
-
__css
|
|
2749
|
-
|
|
2750
|
-
|
|
2751
|
-
|
|
2687
|
+
__css,
|
|
2688
|
+
...otherProps
|
|
2689
|
+
} = props;
|
|
2752
2690
|
const selected = ariaSelectedProp || selectedProp;
|
|
2753
2691
|
const color = rippleColor || colorProp || 'primary';
|
|
2754
2692
|
const theme = useTheme();
|
|
2755
2693
|
const baseOpacity = 0.12;
|
|
2756
2694
|
const hoverOpacity = 0.16;
|
|
2757
2695
|
const focusOpacity = 0.24;
|
|
2758
|
-
return /*#__PURE__*/jsxRuntime.jsx(Box,
|
|
2696
|
+
return /*#__PURE__*/jsxRuntime.jsx(Box, {
|
|
2759
2697
|
ref: forwardedRef,
|
|
2760
2698
|
as: innerAs || as,
|
|
2761
2699
|
theme: theme,
|
|
2762
2700
|
display: "flex",
|
|
2763
2701
|
"data-disabled": disabled ? '' : undefined,
|
|
2764
2702
|
"aria-selected": selected ? 'true' : undefined,
|
|
2765
|
-
disabled: disabled
|
|
2766
|
-
|
|
2767
|
-
__css:
|
|
2703
|
+
disabled: disabled,
|
|
2704
|
+
...otherProps,
|
|
2705
|
+
__css: {
|
|
2706
|
+
variant: 'text.label-large',
|
|
2768
2707
|
px: 3,
|
|
2769
2708
|
py: "0.75rem",
|
|
2770
2709
|
transition: 'background-color 75ms linear',
|
|
@@ -2783,6 +2722,7 @@ const ListItem = /*#__PURE__*/react$1.forwardRef(function ListItem(props, forwar
|
|
|
2783
2722
|
},
|
|
2784
2723
|
'&[aria-selected="true"]': {
|
|
2785
2724
|
backgroundColor: alpha(color, baseOpacity + 0.12),
|
|
2725
|
+
color,
|
|
2786
2726
|
':hover': {
|
|
2787
2727
|
backgroundColor: alpha(color, hoverOpacity + 0.12)
|
|
2788
2728
|
},
|
|
@@ -2800,26 +2740,26 @@ const ListItem = /*#__PURE__*/react$1.forwardRef(function ListItem(props, forwar
|
|
|
2800
2740
|
cursor: 'default'
|
|
2801
2741
|
},
|
|
2802
2742
|
textDecoration: 'none',
|
|
2803
|
-
WebkitTapHighlightColor: 'transparent'
|
|
2804
|
-
|
|
2743
|
+
WebkitTapHighlightColor: 'transparent',
|
|
2744
|
+
...__css
|
|
2745
|
+
},
|
|
2805
2746
|
children: children
|
|
2806
|
-
})
|
|
2747
|
+
});
|
|
2807
2748
|
});
|
|
2808
2749
|
|
|
2809
2750
|
const ListItemText = /*#__PURE__*/react$1.forwardRef(function ListItemText(props, forwardedRef) {
|
|
2810
2751
|
const {
|
|
2811
2752
|
as: Comp = 'div',
|
|
2812
2753
|
text,
|
|
2813
|
-
secondaryText
|
|
2814
|
-
|
|
2815
|
-
|
|
2816
|
-
|
|
2817
|
-
|
|
2818
|
-
|
|
2819
|
-
}, otherProps, {
|
|
2754
|
+
secondaryText,
|
|
2755
|
+
...otherProps
|
|
2756
|
+
} = props;
|
|
2757
|
+
return /*#__PURE__*/jsxRuntime.jsxs(Comp, {
|
|
2758
|
+
ref: forwardedRef,
|
|
2759
|
+
...otherProps,
|
|
2820
2760
|
children: [text, secondaryText && /*#__PURE__*/jsxRuntime.jsx(Text, {
|
|
2821
2761
|
as: "span",
|
|
2822
|
-
variant: "
|
|
2762
|
+
variant: "body-small",
|
|
2823
2763
|
display: "block",
|
|
2824
2764
|
__css: {
|
|
2825
2765
|
color: 'currentColor',
|
|
@@ -2827,7 +2767,7 @@ const ListItemText = /*#__PURE__*/react$1.forwardRef(function ListItemText(props
|
|
|
2827
2767
|
},
|
|
2828
2768
|
children: secondaryText
|
|
2829
2769
|
})]
|
|
2830
|
-
})
|
|
2770
|
+
});
|
|
2831
2771
|
});
|
|
2832
2772
|
|
|
2833
2773
|
// Combobox
|
|
@@ -2836,33 +2776,34 @@ const ComboboxCore = core.Combobox;
|
|
|
2836
2776
|
const Combobox = /*#__PURE__*/react$1.forwardRef((props, forwardedRef) => {
|
|
2837
2777
|
const {
|
|
2838
2778
|
as = 'div',
|
|
2839
|
-
__css
|
|
2840
|
-
|
|
2841
|
-
|
|
2842
|
-
|
|
2843
|
-
return /*#__PURE__*/jsxRuntime.jsx(ComboboxCore, _extends__default['default']({
|
|
2779
|
+
__css,
|
|
2780
|
+
...otherProps
|
|
2781
|
+
} = props;
|
|
2782
|
+
return /*#__PURE__*/jsxRuntime.jsx(ComboboxCore, {
|
|
2844
2783
|
as: Box,
|
|
2845
2784
|
ref: forwardedRef,
|
|
2846
2785
|
innerAs: as,
|
|
2847
|
-
__css:
|
|
2848
|
-
position: 'relative'
|
|
2849
|
-
|
|
2850
|
-
|
|
2786
|
+
__css: {
|
|
2787
|
+
position: 'relative',
|
|
2788
|
+
...__css
|
|
2789
|
+
},
|
|
2790
|
+
...otherProps
|
|
2791
|
+
});
|
|
2851
2792
|
}); /////////////////////////////////////////////////////
|
|
2852
2793
|
// ComboboxInput
|
|
2853
2794
|
|
|
2854
2795
|
const ComboboxInputCore = core.ComboboxInput;
|
|
2855
2796
|
const ComboboxInput = /*#__PURE__*/react$1.forwardRef((props, forwardedRef) => {
|
|
2856
2797
|
const {
|
|
2857
|
-
as = 'input'
|
|
2858
|
-
|
|
2859
|
-
|
|
2860
|
-
|
|
2861
|
-
return /*#__PURE__*/jsxRuntime.jsx(ComboboxInputCore, _extends__default['default']({
|
|
2798
|
+
as = 'input',
|
|
2799
|
+
...otherProps
|
|
2800
|
+
} = props;
|
|
2801
|
+
return /*#__PURE__*/jsxRuntime.jsx(ComboboxInputCore, {
|
|
2862
2802
|
as: TextField,
|
|
2863
2803
|
ref: forwardedRef,
|
|
2864
|
-
innerAs: as
|
|
2865
|
-
|
|
2804
|
+
innerAs: as,
|
|
2805
|
+
...otherProps
|
|
2806
|
+
});
|
|
2866
2807
|
}); /////////////////////////////////////////////////////
|
|
2867
2808
|
// ComboboxList
|
|
2868
2809
|
|
|
@@ -2870,96 +2811,98 @@ const ComboboxListCore = core.ComboboxList;
|
|
|
2870
2811
|
const ComboboxList = /*#__PURE__*/react$1.forwardRef((props, forwardedRef) => {
|
|
2871
2812
|
const {
|
|
2872
2813
|
as = 'ul',
|
|
2873
|
-
__css
|
|
2874
|
-
|
|
2875
|
-
|
|
2876
|
-
|
|
2877
|
-
return /*#__PURE__*/jsxRuntime.jsx(ComboboxListCore, _extends__default['default']({
|
|
2814
|
+
__css,
|
|
2815
|
+
...otherProps
|
|
2816
|
+
} = props;
|
|
2817
|
+
return /*#__PURE__*/jsxRuntime.jsx(ComboboxListCore, {
|
|
2878
2818
|
as: List,
|
|
2879
2819
|
ref: forwardedRef,
|
|
2880
2820
|
innerAs: as,
|
|
2881
2821
|
outlined: false,
|
|
2882
2822
|
elevation: 2,
|
|
2883
|
-
|
|
2823
|
+
darkThemeBackgroundOverlay: 2,
|
|
2824
|
+
__css: {
|
|
2884
2825
|
maxHeight: "18.75rem",
|
|
2885
2826
|
overflowY: 'auto',
|
|
2886
|
-
borderRadius: '
|
|
2827
|
+
borderRadius: 'extra-small',
|
|
2887
2828
|
'[data-popper-placement="top"] &': {
|
|
2888
2829
|
transformOrigin: 'bottom center'
|
|
2889
2830
|
},
|
|
2890
2831
|
'[data-popper-placement="bottom"] &': {
|
|
2891
2832
|
transformOrigin: 'top center'
|
|
2892
|
-
}
|
|
2893
|
-
|
|
2894
|
-
|
|
2833
|
+
},
|
|
2834
|
+
...__css
|
|
2835
|
+
},
|
|
2836
|
+
...otherProps
|
|
2837
|
+
});
|
|
2895
2838
|
}); /////////////////////////////////////////////////////
|
|
2896
2839
|
// ComboboxPopperBox
|
|
2897
2840
|
|
|
2898
2841
|
const PopperCore = core.Popper;
|
|
2899
|
-
const ComboboxPopperBox = /*#__PURE__*/react$1.forwardRef((
|
|
2900
|
-
|
|
2901
|
-
|
|
2902
|
-
|
|
2903
|
-
|
|
2904
|
-
|
|
2905
|
-
props = _objectWithoutPropertiesLoose__default['default'](_ref, ["__css", "anchorEl", "as"]);
|
|
2906
|
-
|
|
2842
|
+
const ComboboxPopperBox = /*#__PURE__*/react$1.forwardRef(({
|
|
2843
|
+
__css,
|
|
2844
|
+
anchorEl,
|
|
2845
|
+
as = 'div',
|
|
2846
|
+
...props
|
|
2847
|
+
}, forwardedRef) => {
|
|
2907
2848
|
const ctx = core.useComboBoxContext();
|
|
2908
|
-
return /*#__PURE__*/jsxRuntime.jsx(PopperCore,
|
|
2849
|
+
return /*#__PURE__*/jsxRuntime.jsx(PopperCore, {
|
|
2909
2850
|
as: Box,
|
|
2910
2851
|
innerAs: as,
|
|
2911
2852
|
ref: forwardedRef,
|
|
2912
2853
|
anchorEl: anchorEl || ctx.inputRef,
|
|
2913
|
-
__css:
|
|
2854
|
+
__css: {
|
|
2914
2855
|
zIndex: 1,
|
|
2915
|
-
width: '100%'
|
|
2916
|
-
|
|
2917
|
-
|
|
2856
|
+
width: '100%',
|
|
2857
|
+
...__css
|
|
2858
|
+
},
|
|
2859
|
+
...props
|
|
2860
|
+
});
|
|
2918
2861
|
}); /////////////////////////////////////////////////////
|
|
2919
2862
|
// ComboboxPopover
|
|
2920
2863
|
|
|
2921
2864
|
const ComboboxPopoverCore = core.ComboboxPopover;
|
|
2922
2865
|
const ComboboxPopover = /*#__PURE__*/react$1.forwardRef((props, forwardedRef) => {
|
|
2923
2866
|
const {
|
|
2924
|
-
as = 'div'
|
|
2925
|
-
|
|
2926
|
-
|
|
2927
|
-
|
|
2928
|
-
return /*#__PURE__*/jsxRuntime.jsx(ComboboxPopoverCore, _extends__default['default']({
|
|
2867
|
+
as = 'div',
|
|
2868
|
+
...otherProps
|
|
2869
|
+
} = props;
|
|
2870
|
+
return /*#__PURE__*/jsxRuntime.jsx(ComboboxPopoverCore, {
|
|
2929
2871
|
as: ComboboxPopperBox,
|
|
2930
2872
|
ref: forwardedRef,
|
|
2931
|
-
innerAs: as
|
|
2932
|
-
|
|
2873
|
+
innerAs: as,
|
|
2874
|
+
...otherProps
|
|
2875
|
+
});
|
|
2933
2876
|
}); /////////////////////////////////////////////////////
|
|
2934
2877
|
// ComboboxOption
|
|
2935
2878
|
|
|
2936
2879
|
const ComboboxOptionCore = core.ComboboxOption;
|
|
2937
2880
|
const ComboboxOption = /*#__PURE__*/react$1.forwardRef((props, forwardedRef) => {
|
|
2938
2881
|
const {
|
|
2939
|
-
as = 'li'
|
|
2940
|
-
|
|
2941
|
-
|
|
2942
|
-
|
|
2943
|
-
return /*#__PURE__*/jsxRuntime.jsx(ComboboxOptionCore, _extends__default['default']({
|
|
2882
|
+
as = 'li',
|
|
2883
|
+
...otherProps
|
|
2884
|
+
} = props;
|
|
2885
|
+
return /*#__PURE__*/jsxRuntime.jsx(ComboboxOptionCore, {
|
|
2944
2886
|
as: ListItem,
|
|
2945
2887
|
ref: forwardedRef,
|
|
2946
|
-
innerAs: as
|
|
2947
|
-
|
|
2888
|
+
innerAs: as,
|
|
2889
|
+
...otherProps
|
|
2890
|
+
});
|
|
2948
2891
|
}); /////////////////////////////////////////////////////
|
|
2949
2892
|
// ComboboxLabel
|
|
2950
2893
|
|
|
2951
2894
|
const ComboboxLabelCore = core.ComboboxLabel;
|
|
2952
2895
|
const ComboboxLabel = /*#__PURE__*/react$1.forwardRef((props, forwardedRef) => {
|
|
2953
2896
|
const {
|
|
2954
|
-
as = 'label'
|
|
2955
|
-
|
|
2956
|
-
|
|
2957
|
-
|
|
2958
|
-
return /*#__PURE__*/jsxRuntime.jsx(ComboboxLabelCore, _extends__default['default']({
|
|
2897
|
+
as = 'label',
|
|
2898
|
+
...otherProps
|
|
2899
|
+
} = props;
|
|
2900
|
+
return /*#__PURE__*/jsxRuntime.jsx(ComboboxLabelCore, {
|
|
2959
2901
|
as: Text,
|
|
2960
2902
|
ref: forwardedRef,
|
|
2961
|
-
innerAs: as
|
|
2962
|
-
|
|
2903
|
+
innerAs: as,
|
|
2904
|
+
...otherProps
|
|
2905
|
+
});
|
|
2963
2906
|
}); /////////////////////////////////////////////////////
|
|
2964
2907
|
// ComboboxButton
|
|
2965
2908
|
|
|
@@ -2968,23 +2911,22 @@ const ComboboxButton = /*#__PURE__*/react$1.forwardRef((props, forwardedRef) =>
|
|
|
2968
2911
|
const {
|
|
2969
2912
|
as = 'button',
|
|
2970
2913
|
__css,
|
|
2971
|
-
children
|
|
2972
|
-
|
|
2973
|
-
|
|
2974
|
-
|
|
2975
|
-
return /*#__PURE__*/jsxRuntime.jsx(ComboboxButtonCore, _extends__default['default']({
|
|
2914
|
+
children,
|
|
2915
|
+
...otherProps
|
|
2916
|
+
} = props;
|
|
2917
|
+
return /*#__PURE__*/jsxRuntime.jsx(ComboboxButtonCore, {
|
|
2976
2918
|
as: Button,
|
|
2977
2919
|
ref: forwardedRef,
|
|
2978
2920
|
innerAs: as,
|
|
2979
2921
|
tabIndex: -1,
|
|
2980
2922
|
variant: "icon",
|
|
2981
|
-
__css:
|
|
2923
|
+
__css: {
|
|
2982
2924
|
zIndex: 1,
|
|
2983
2925
|
width: "2.5rem",
|
|
2984
2926
|
height: "2.5rem",
|
|
2985
2927
|
px: 0,
|
|
2986
2928
|
'& > svg': {
|
|
2987
|
-
transition:
|
|
2929
|
+
transition: `transform .15s ${EASING_STANDARD}, color .15s ${EASING_STANDARD}`
|
|
2988
2930
|
},
|
|
2989
2931
|
'&[aria-expanded="false"] > svg': {
|
|
2990
2932
|
color: alpha('on.surface', 0.54)
|
|
@@ -2992,9 +2934,10 @@ const ComboboxButton = /*#__PURE__*/react$1.forwardRef((props, forwardedRef) =>
|
|
|
2992
2934
|
'&[aria-expanded="true"] > svg': {
|
|
2993
2935
|
transform: 'rotate(180deg)',
|
|
2994
2936
|
color: 'currentColor'
|
|
2995
|
-
}
|
|
2996
|
-
|
|
2997
|
-
|
|
2937
|
+
},
|
|
2938
|
+
...__css
|
|
2939
|
+
},
|
|
2940
|
+
...otherProps,
|
|
2998
2941
|
children: children || /*#__PURE__*/jsxRuntime.jsx("svg", {
|
|
2999
2942
|
"aria-hidden": true,
|
|
3000
2943
|
viewBox: "0 0 24 24",
|
|
@@ -3004,12 +2947,12 @@ const ComboboxButton = /*#__PURE__*/react$1.forwardRef((props, forwardedRef) =>
|
|
|
3004
2947
|
d: "M7 10l5 5 5-5z"
|
|
3005
2948
|
})
|
|
3006
2949
|
})
|
|
3007
|
-
})
|
|
2950
|
+
});
|
|
3008
2951
|
});
|
|
3009
2952
|
|
|
3010
2953
|
const offset = 29.78333854675293; // document.querySelector(path).getTotalLength()
|
|
3011
2954
|
|
|
3012
|
-
const Path = _styled__default[
|
|
2955
|
+
const Path = _styled__default["default"]("path", process.env.NODE_ENV === "production" ? {
|
|
3013
2956
|
target: "e1v8gifn0"
|
|
3014
2957
|
} : {
|
|
3015
2958
|
target: "e1v8gifn0",
|
|
@@ -3033,7 +2976,7 @@ const CheckPath = ({
|
|
|
3033
2976
|
});
|
|
3034
2977
|
};
|
|
3035
2978
|
|
|
3036
|
-
const Line = _styled__default[
|
|
2979
|
+
const Line = _styled__default["default"]("line", process.env.NODE_ENV === "production" ? {
|
|
3037
2980
|
target: "eat3a050"
|
|
3038
2981
|
} : {
|
|
3039
2982
|
target: "eat3a050",
|
|
@@ -3060,19 +3003,19 @@ const IndeterminatePath = ({
|
|
|
3060
3003
|
});
|
|
3061
3004
|
};
|
|
3062
3005
|
|
|
3063
|
-
const CheckBoxIcon = /*#__PURE__*/react$1.forwardRef(function CheckBoxIcon(
|
|
3064
|
-
|
|
3065
|
-
|
|
3066
|
-
|
|
3067
|
-
|
|
3068
|
-
|
|
3069
|
-
|
|
3070
|
-
|
|
3071
|
-
|
|
3072
|
-
|
|
3073
|
-
|
|
3074
|
-
|
|
3075
|
-
return /*#__PURE__*/jsxRuntime.jsx(Box,
|
|
3006
|
+
const CheckBoxIcon = /*#__PURE__*/react$1.forwardRef(function CheckBoxIcon({
|
|
3007
|
+
__css = {},
|
|
3008
|
+
as = 'div',
|
|
3009
|
+
indeterminate,
|
|
3010
|
+
checked,
|
|
3011
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
3012
|
+
disabled,
|
|
3013
|
+
backgroundColor,
|
|
3014
|
+
borderColor,
|
|
3015
|
+
opacity,
|
|
3016
|
+
...otherProps
|
|
3017
|
+
}, forwardedRef) {
|
|
3018
|
+
return /*#__PURE__*/jsxRuntime.jsx(Box, {
|
|
3076
3019
|
as: as,
|
|
3077
3020
|
ref: forwardedRef,
|
|
3078
3021
|
backgroundColor: backgroundColor,
|
|
@@ -3085,13 +3028,13 @@ const CheckBoxIcon = /*#__PURE__*/react$1.forwardRef(function CheckBoxIcon(_ref,
|
|
|
3085
3028
|
borderStyle: 'solid',
|
|
3086
3029
|
width: "1.125rem",
|
|
3087
3030
|
height: "1.125rem",
|
|
3088
|
-
transition:
|
|
3031
|
+
transition: `background-color 90ms 0s ${EASING_STANDARD}, border-color 90ms 0s ${EASING_STANDARD}, opacity 90ms 0s ${EASING_STANDARD}`,
|
|
3089
3032
|
'& > svg': {
|
|
3090
3033
|
display: 'block'
|
|
3091
3034
|
},
|
|
3092
3035
|
__css
|
|
3093
|
-
}
|
|
3094
|
-
|
|
3036
|
+
},
|
|
3037
|
+
...otherProps,
|
|
3095
3038
|
children: /*#__PURE__*/jsxRuntime.jsxs("svg", {
|
|
3096
3039
|
viewBox: "0 0 24 24",
|
|
3097
3040
|
children: [/*#__PURE__*/jsxRuntime.jsx(CheckPath, {
|
|
@@ -3100,48 +3043,51 @@ const CheckBoxIcon = /*#__PURE__*/react$1.forwardRef(function CheckBoxIcon(_ref,
|
|
|
3100
3043
|
checked: checked && indeterminate
|
|
3101
3044
|
})]
|
|
3102
3045
|
})
|
|
3103
|
-
})
|
|
3046
|
+
});
|
|
3104
3047
|
});
|
|
3105
3048
|
|
|
3106
3049
|
const SelectionControlLabel = /*#__PURE__*/react$1.forwardRef(function SelectionControlLabel(props, forwardedRef) {
|
|
3107
3050
|
const {
|
|
3108
3051
|
as = 'label',
|
|
3109
|
-
__css
|
|
3110
|
-
|
|
3111
|
-
|
|
3112
|
-
|
|
3113
|
-
return /*#__PURE__*/jsxRuntime.jsx(Box, _extends__default['default']({
|
|
3052
|
+
__css,
|
|
3053
|
+
...otherProps
|
|
3054
|
+
} = props;
|
|
3055
|
+
return /*#__PURE__*/jsxRuntime.jsx(Box, {
|
|
3114
3056
|
ref: forwardedRef,
|
|
3115
3057
|
as: as,
|
|
3116
|
-
__css:
|
|
3058
|
+
__css: {
|
|
3117
3059
|
display: 'inline-flex',
|
|
3118
3060
|
position: 'relative',
|
|
3119
3061
|
alignItems: 'center',
|
|
3120
|
-
WebkitTapHighlightColor: 'transparent'
|
|
3121
|
-
|
|
3122
|
-
|
|
3062
|
+
WebkitTapHighlightColor: 'transparent',
|
|
3063
|
+
...__css
|
|
3064
|
+
},
|
|
3065
|
+
...otherProps
|
|
3066
|
+
});
|
|
3123
3067
|
});
|
|
3124
3068
|
|
|
3125
3069
|
const SelectionControlText = /*#__PURE__*/react$1.forwardRef(function SelectionControlText(props, forwardedRef) {
|
|
3126
3070
|
const {
|
|
3127
3071
|
as = 'span',
|
|
3128
3072
|
disabled,
|
|
3129
|
-
__css
|
|
3130
|
-
|
|
3131
|
-
|
|
3132
|
-
|
|
3133
|
-
return /*#__PURE__*/jsxRuntime.jsx(Text, _extends__default['default']({
|
|
3073
|
+
__css,
|
|
3074
|
+
...otherProps
|
|
3075
|
+
} = props;
|
|
3076
|
+
return /*#__PURE__*/jsxRuntime.jsx(Text, {
|
|
3134
3077
|
ref: forwardedRef,
|
|
3135
3078
|
as: as,
|
|
3136
|
-
__css:
|
|
3137
|
-
p: 1
|
|
3138
|
-
|
|
3139
|
-
|
|
3140
|
-
|
|
3141
|
-
|
|
3142
|
-
|
|
3143
|
-
|
|
3144
|
-
|
|
3079
|
+
__css: {
|
|
3080
|
+
p: 1,
|
|
3081
|
+
...(disabled ? {
|
|
3082
|
+
color: alpha('on.surface', 0.38)
|
|
3083
|
+
} : {
|
|
3084
|
+
cursor: 'pointer',
|
|
3085
|
+
color: alpha('on.surface', 0.87)
|
|
3086
|
+
}),
|
|
3087
|
+
...__css
|
|
3088
|
+
},
|
|
3089
|
+
...otherProps
|
|
3090
|
+
});
|
|
3145
3091
|
});
|
|
3146
3092
|
|
|
3147
3093
|
const CheckBoxCore$1 = core.CheckBox;
|
|
@@ -3164,10 +3110,9 @@ const CheckBoxInner = /*#__PURE__*/react$1.forwardRef(function CheckBoxInner(pro
|
|
|
3164
3110
|
indeterminate = false,
|
|
3165
3111
|
onChange,
|
|
3166
3112
|
icon = /*#__PURE__*/jsxRuntime.jsx(CheckBoxIcon, {}),
|
|
3167
|
-
__css
|
|
3168
|
-
|
|
3169
|
-
|
|
3170
|
-
|
|
3113
|
+
__css,
|
|
3114
|
+
...otherProps
|
|
3115
|
+
} = props;
|
|
3171
3116
|
const color = checked ? 'primary' : 'on.surface';
|
|
3172
3117
|
const theme = useTheme();
|
|
3173
3118
|
const [backgroundColor, borderColor, opacity] = getColors(disabled, checked);
|
|
@@ -3175,7 +3120,7 @@ const CheckBoxInner = /*#__PURE__*/react$1.forwardRef(function CheckBoxInner(pro
|
|
|
3175
3120
|
position: "relative",
|
|
3176
3121
|
display: "inline-block",
|
|
3177
3122
|
minWidth: "auto",
|
|
3178
|
-
children: [/*#__PURE__*/jsxRuntime.jsx(RippleBox,
|
|
3123
|
+
children: [/*#__PURE__*/jsxRuntime.jsx(RippleBox, {
|
|
3179
3124
|
as: Comp,
|
|
3180
3125
|
type: "checkbox",
|
|
3181
3126
|
checked: checked,
|
|
@@ -3189,9 +3134,9 @@ const CheckBoxInner = /*#__PURE__*/react$1.forwardRef(function CheckBoxInner(pro
|
|
|
3189
3134
|
center: true,
|
|
3190
3135
|
disabled: disabled,
|
|
3191
3136
|
"aria-checked": indeterminate ? checked ? 'mixed' : 'false' : checked ? 'true' : 'false',
|
|
3192
|
-
"data-indeterminate": indeterminate ? '' : undefined
|
|
3193
|
-
|
|
3194
|
-
__css:
|
|
3137
|
+
"data-indeterminate": indeterminate ? '' : undefined,
|
|
3138
|
+
...otherProps,
|
|
3139
|
+
__css: {
|
|
3195
3140
|
top: 0,
|
|
3196
3141
|
left: 0,
|
|
3197
3142
|
width: "2.5rem",
|
|
@@ -3203,9 +3148,10 @@ const CheckBoxInner = /*#__PURE__*/react$1.forwardRef(function CheckBoxInner(pro
|
|
|
3203
3148
|
border: 'none',
|
|
3204
3149
|
borderRadius: 'full',
|
|
3205
3150
|
zIndex: 1,
|
|
3206
|
-
position: 'absolute'
|
|
3207
|
-
|
|
3208
|
-
|
|
3151
|
+
position: 'absolute',
|
|
3152
|
+
...__css
|
|
3153
|
+
}
|
|
3154
|
+
}), /*#__PURE__*/jsxRuntime.jsx(Box, {
|
|
3209
3155
|
__css: {
|
|
3210
3156
|
position: 'relative',
|
|
3211
3157
|
top: 0,
|
|
@@ -3235,17 +3181,18 @@ const CheckBox = /*#__PURE__*/react$1.forwardRef(function CheckBox(props, forwar
|
|
|
3235
3181
|
as = 'input',
|
|
3236
3182
|
icon = /*#__PURE__*/jsxRuntime.jsx(CheckBoxIcon, {}),
|
|
3237
3183
|
disabled,
|
|
3238
|
-
children
|
|
3239
|
-
|
|
3240
|
-
|
|
3184
|
+
children,
|
|
3185
|
+
...otherProps
|
|
3186
|
+
} = props;
|
|
3241
3187
|
|
|
3242
|
-
const inner = /*#__PURE__*/jsxRuntime.jsx(CheckBoxCore$1,
|
|
3188
|
+
const inner = /*#__PURE__*/jsxRuntime.jsx(CheckBoxCore$1, {
|
|
3243
3189
|
as: CheckBoxInner,
|
|
3244
3190
|
innerAs: as,
|
|
3245
3191
|
ref: forwardedRef,
|
|
3246
3192
|
icon: icon,
|
|
3247
|
-
disabled: disabled
|
|
3248
|
-
|
|
3193
|
+
disabled: disabled,
|
|
3194
|
+
...otherProps
|
|
3195
|
+
});
|
|
3249
3196
|
|
|
3250
3197
|
if (!children) {
|
|
3251
3198
|
return inner;
|
|
@@ -3260,9 +3207,10 @@ const CheckBox = /*#__PURE__*/react$1.forwardRef(function CheckBox(props, forwar
|
|
|
3260
3207
|
});
|
|
3261
3208
|
|
|
3262
3209
|
function getFilledCSS(theme, bg, color, disabled) {
|
|
3263
|
-
return
|
|
3264
|
-
|
|
3265
|
-
|
|
3210
|
+
return { ...(!disabled && bg !== 'surface' ? {
|
|
3211
|
+
bg
|
|
3212
|
+
} : { ...getColorOverlay(theme, 'surface', 'primary', 0.05)
|
|
3213
|
+
}),
|
|
3266
3214
|
color,
|
|
3267
3215
|
'&::before': {
|
|
3268
3216
|
backgroundColor: 'currentColor',
|
|
@@ -3280,22 +3228,23 @@ function getFilledCSS(theme, bg, color, disabled) {
|
|
|
3280
3228
|
},
|
|
3281
3229
|
'& > *': {
|
|
3282
3230
|
zIndex: 1
|
|
3283
|
-
}
|
|
3284
|
-
|
|
3285
|
-
|
|
3286
|
-
|
|
3287
|
-
|
|
3231
|
+
},
|
|
3232
|
+
...(disabled && {
|
|
3233
|
+
boxShadow: 0,
|
|
3234
|
+
bg: alpha('on.surface', 0.32)
|
|
3235
|
+
})
|
|
3236
|
+
};
|
|
3288
3237
|
}
|
|
3289
3238
|
|
|
3290
3239
|
function getOutlinedCSS(theme, bg, color, borderOpacity) {
|
|
3291
|
-
return
|
|
3292
|
-
|
|
3293
|
-
|
|
3240
|
+
return { ...(bg !== 'surface' ? {
|
|
3241
|
+
bg
|
|
3242
|
+
} : getDarkThemeBackgroundOverlay(theme, 2)),
|
|
3294
3243
|
color: color,
|
|
3295
3244
|
borderColor: alpha(color, borderOpacity),
|
|
3296
3245
|
borderStyle: 'solid',
|
|
3297
3246
|
borderWidth: "0.0625rem"
|
|
3298
|
-
}
|
|
3247
|
+
};
|
|
3299
3248
|
}
|
|
3300
3249
|
|
|
3301
3250
|
const ChipBase = /*#__PURE__*/react$1.forwardRef(function Chip(props, forwardedRef) {
|
|
@@ -3307,16 +3256,15 @@ const ChipBase = /*#__PURE__*/react$1.forwardRef(function Chip(props, forwardedR
|
|
|
3307
3256
|
backgroundColor: backgroundColorProp = 'surface',
|
|
3308
3257
|
borderOpacity: borderOpacityProp = 0.24,
|
|
3309
3258
|
children,
|
|
3310
|
-
disabled = false
|
|
3311
|
-
|
|
3312
|
-
|
|
3313
|
-
|
|
3259
|
+
disabled = false,
|
|
3260
|
+
...otherProps
|
|
3261
|
+
} = props;
|
|
3314
3262
|
const theme = useTheme();
|
|
3315
|
-
return /*#__PURE__*/jsxRuntime.jsx(Box,
|
|
3263
|
+
return /*#__PURE__*/jsxRuntime.jsx(Box, {
|
|
3316
3264
|
as: as,
|
|
3317
3265
|
"data-disabled": disabled ? '' : undefined,
|
|
3318
3266
|
ref: forwardedRef,
|
|
3319
|
-
__css:
|
|
3267
|
+
__css: {
|
|
3320
3268
|
boxSizing: 'border-box',
|
|
3321
3269
|
position: 'relative',
|
|
3322
3270
|
display: 'inline-flex',
|
|
@@ -3335,22 +3283,24 @@ const ChipBase = /*#__PURE__*/react$1.forwardRef(function Chip(props, forwardedR
|
|
|
3335
3283
|
minWidth: 'auto',
|
|
3336
3284
|
'&::-moz-focus-inner': {
|
|
3337
3285
|
border: 0
|
|
3338
|
-
}
|
|
3339
|
-
|
|
3340
|
-
|
|
3341
|
-
|
|
3342
|
-
|
|
3343
|
-
|
|
3344
|
-
|
|
3345
|
-
|
|
3346
|
-
|
|
3347
|
-
|
|
3348
|
-
|
|
3349
|
-
|
|
3350
|
-
|
|
3351
|
-
|
|
3286
|
+
},
|
|
3287
|
+
...styledSystem.variant({
|
|
3288
|
+
scale: 'chips.variants',
|
|
3289
|
+
prop: 'variant',
|
|
3290
|
+
variants: {
|
|
3291
|
+
text: {}
|
|
3292
|
+
}
|
|
3293
|
+
})({
|
|
3294
|
+
variant: variantProp,
|
|
3295
|
+
theme
|
|
3296
|
+
}),
|
|
3297
|
+
...(variantProp === 'filled' ? getFilledCSS(theme, backgroundColorProp, colorProp, disabled) : getOutlinedCSS(theme, backgroundColorProp, colorProp, borderOpacityProp)),
|
|
3298
|
+
opacity: disabled ? 0.38 : 1,
|
|
3299
|
+
...__css
|
|
3300
|
+
},
|
|
3301
|
+
...otherProps,
|
|
3352
3302
|
children: children
|
|
3353
|
-
})
|
|
3303
|
+
});
|
|
3354
3304
|
});
|
|
3355
3305
|
|
|
3356
3306
|
const ButtonChip = /*#__PURE__*/react$1.forwardRef(function ButtonChip(props, forwardedRef) {
|
|
@@ -3361,21 +3311,20 @@ const ButtonChip = /*#__PURE__*/react$1.forwardRef(function ButtonChip(props, fo
|
|
|
3361
3311
|
leadingIcon,
|
|
3362
3312
|
trailingIcon,
|
|
3363
3313
|
children,
|
|
3364
|
-
color
|
|
3365
|
-
__css
|
|
3366
|
-
|
|
3367
|
-
|
|
3368
|
-
|
|
3314
|
+
color,
|
|
3315
|
+
__css,
|
|
3316
|
+
...otherProps
|
|
3317
|
+
} = props;
|
|
3369
3318
|
const theme = useTheme();
|
|
3370
3319
|
const isClickable = onClick && !disabledProp;
|
|
3371
|
-
return /*#__PURE__*/jsxRuntime.jsx(ChipBase,
|
|
3320
|
+
return /*#__PURE__*/jsxRuntime.jsx(ChipBase, {
|
|
3372
3321
|
as: "div",
|
|
3373
3322
|
onClick: isClickable ? onClick : undefined,
|
|
3374
3323
|
disabled: disabledProp,
|
|
3375
3324
|
color: "on.surface",
|
|
3376
3325
|
backgroundColor: "surface",
|
|
3377
|
-
__css: __css
|
|
3378
|
-
|
|
3326
|
+
__css: __css,
|
|
3327
|
+
...otherProps,
|
|
3379
3328
|
children: /*#__PURE__*/jsxRuntime.jsxs(RippleBox, {
|
|
3380
3329
|
as: as,
|
|
3381
3330
|
role: isClickable ? 'button' : undefined,
|
|
@@ -3412,7 +3361,7 @@ const ButtonChip = /*#__PURE__*/react$1.forwardRef(function ButtonChip(props, fo
|
|
|
3412
3361
|
},
|
|
3413
3362
|
children: [leadingIcon, children, trailingIcon]
|
|
3414
3363
|
})
|
|
3415
|
-
})
|
|
3364
|
+
});
|
|
3416
3365
|
});
|
|
3417
3366
|
|
|
3418
3367
|
const InnerInput = /*#__PURE__*/react$1.forwardRef(function InnerInput(props, forwardedRef) {
|
|
@@ -3430,19 +3379,18 @@ const InnerInput = /*#__PURE__*/react$1.forwardRef(function InnerInput(props, fo
|
|
|
3430
3379
|
leadingIcon,
|
|
3431
3380
|
trailingIcon,
|
|
3432
3381
|
children,
|
|
3433
|
-
__css
|
|
3434
|
-
|
|
3435
|
-
|
|
3436
|
-
|
|
3382
|
+
__css,
|
|
3383
|
+
...otherProps
|
|
3384
|
+
} = props;
|
|
3437
3385
|
const theme = useTheme();
|
|
3438
|
-
return /*#__PURE__*/jsxRuntime.jsx(ChipBase,
|
|
3386
|
+
return /*#__PURE__*/jsxRuntime.jsx(ChipBase, {
|
|
3439
3387
|
as: "label",
|
|
3440
3388
|
disabled: disabled,
|
|
3441
3389
|
backgroundColor: checked ? color + '-container' : 'surface',
|
|
3442
3390
|
color: checked ? 'on.' + color + '-container' : 'on.surface',
|
|
3443
3391
|
borderOpacity: checked ? 0 : 0.24,
|
|
3444
|
-
__css: __css
|
|
3445
|
-
|
|
3392
|
+
__css: __css,
|
|
3393
|
+
...otherProps,
|
|
3446
3394
|
children: /*#__PURE__*/jsxRuntime.jsxs(Box, {
|
|
3447
3395
|
as: "span",
|
|
3448
3396
|
__css: {
|
|
@@ -3488,86 +3436,91 @@ const InnerInput = /*#__PURE__*/react$1.forwardRef(function InnerInput(props, fo
|
|
|
3488
3436
|
}
|
|
3489
3437
|
}), leadingIcon, children, trailingIcon]
|
|
3490
3438
|
})
|
|
3491
|
-
})
|
|
3439
|
+
});
|
|
3492
3440
|
});
|
|
3493
3441
|
const ChoiceChip = /*#__PURE__*/react$1.forwardRef(function ChoiceChip(props, forwardedRef) {
|
|
3494
3442
|
const {
|
|
3495
|
-
type = 'checkbox'
|
|
3496
|
-
|
|
3497
|
-
|
|
3498
|
-
|
|
3443
|
+
type = 'checkbox',
|
|
3444
|
+
...otherProps
|
|
3445
|
+
} = props;
|
|
3499
3446
|
const Comp = type === 'radio' ? core.RadioButton : core.CheckBox;
|
|
3500
|
-
return /*#__PURE__*/jsxRuntime.jsx(Comp,
|
|
3447
|
+
return /*#__PURE__*/jsxRuntime.jsx(Comp, {
|
|
3501
3448
|
ref: forwardedRef,
|
|
3502
3449
|
as: InnerInput,
|
|
3503
|
-
type: type
|
|
3504
|
-
|
|
3450
|
+
type: type,
|
|
3451
|
+
...otherProps
|
|
3452
|
+
});
|
|
3505
3453
|
});
|
|
3506
3454
|
|
|
3507
3455
|
const Divider = /*#__PURE__*/react$1.forwardRef(function Divider(props, forwardedRef) {
|
|
3508
3456
|
const {
|
|
3509
3457
|
as = 'div',
|
|
3510
3458
|
direction = 'horizontal',
|
|
3511
|
-
__css
|
|
3512
|
-
|
|
3513
|
-
|
|
3514
|
-
|
|
3515
|
-
return /*#__PURE__*/jsxRuntime.jsx(Box, _extends__default['default']({
|
|
3459
|
+
__css,
|
|
3460
|
+
...otherProps
|
|
3461
|
+
} = props;
|
|
3462
|
+
return /*#__PURE__*/jsxRuntime.jsx(Box, {
|
|
3516
3463
|
ref: forwardedRef,
|
|
3517
3464
|
as: as,
|
|
3518
|
-
role: "separator"
|
|
3519
|
-
|
|
3520
|
-
__css:
|
|
3465
|
+
role: "separator",
|
|
3466
|
+
...otherProps,
|
|
3467
|
+
__css: {
|
|
3521
3468
|
border: 'none',
|
|
3522
|
-
listStyleType: 'none'
|
|
3523
|
-
|
|
3524
|
-
|
|
3525
|
-
|
|
3526
|
-
|
|
3527
|
-
|
|
3528
|
-
|
|
3529
|
-
|
|
3530
|
-
|
|
3531
|
-
|
|
3532
|
-
|
|
3533
|
-
|
|
3534
|
-
|
|
3469
|
+
listStyleType: 'none',
|
|
3470
|
+
...(direction === 'horizontal' && {
|
|
3471
|
+
height: 0,
|
|
3472
|
+
borderBottomWidth: "0.0625rem",
|
|
3473
|
+
borderBottomStyle: 'solid',
|
|
3474
|
+
borderBottomColor: alpha('on.surface', 0.12)
|
|
3475
|
+
}),
|
|
3476
|
+
...(direction === 'vertical' && {
|
|
3477
|
+
width: 0,
|
|
3478
|
+
borderRightWidth: "0.0625rem",
|
|
3479
|
+
borderRightStyle: 'solid',
|
|
3480
|
+
borderRightColor: alpha('on.surface', 0.12)
|
|
3481
|
+
}),
|
|
3482
|
+
...__css
|
|
3483
|
+
}
|
|
3484
|
+
});
|
|
3535
3485
|
});
|
|
3536
3486
|
|
|
3537
3487
|
const Modal = core.Modal;
|
|
3538
3488
|
const DialogSurface = /*#__PURE__*/react$1.forwardRef(function DialogSurface(props, forwardedRef) {
|
|
3539
3489
|
const {
|
|
3540
3490
|
__css,
|
|
3541
|
-
variant: variantProp = 'base'
|
|
3542
|
-
|
|
3543
|
-
|
|
3544
|
-
|
|
3491
|
+
variant: variantProp = 'base',
|
|
3492
|
+
...otherProps
|
|
3493
|
+
} = props;
|
|
3545
3494
|
const theme = useTheme();
|
|
3546
3495
|
const overlayValue = styledSystem.get(theme, 'dialogs.backgroundColorOverlay') || 0;
|
|
3547
|
-
return /*#__PURE__*/jsxRuntime.jsx(Modal,
|
|
3496
|
+
return /*#__PURE__*/jsxRuntime.jsx(Modal, {
|
|
3548
3497
|
ref: forwardedRef,
|
|
3549
3498
|
as: Paper,
|
|
3550
3499
|
theme: theme,
|
|
3551
3500
|
elevation: 3,
|
|
3552
|
-
|
|
3501
|
+
darkThemeBackgroundOverlay: overlayValue,
|
|
3502
|
+
__css: {
|
|
3553
3503
|
position: 'relative',
|
|
3554
3504
|
borderRadius: 'small',
|
|
3555
3505
|
width: '100%',
|
|
3556
3506
|
maxWidth: "37.5rem",
|
|
3557
3507
|
maxHeight: '100%',
|
|
3558
3508
|
overflow: 'auto',
|
|
3559
|
-
pointerEvents: 'auto'
|
|
3560
|
-
|
|
3561
|
-
|
|
3562
|
-
|
|
3563
|
-
|
|
3564
|
-
|
|
3565
|
-
|
|
3566
|
-
|
|
3567
|
-
|
|
3568
|
-
|
|
3569
|
-
|
|
3570
|
-
|
|
3509
|
+
pointerEvents: 'auto',
|
|
3510
|
+
...styledSystem.variant({
|
|
3511
|
+
scale: 'dialogs.variants',
|
|
3512
|
+
prop: 'variant',
|
|
3513
|
+
variants: {
|
|
3514
|
+
base: {}
|
|
3515
|
+
}
|
|
3516
|
+
})({
|
|
3517
|
+
variant: variantProp,
|
|
3518
|
+
theme
|
|
3519
|
+
}),
|
|
3520
|
+
...__css
|
|
3521
|
+
},
|
|
3522
|
+
...otherProps
|
|
3523
|
+
});
|
|
3571
3524
|
});
|
|
3572
3525
|
|
|
3573
3526
|
const Dialog = /*#__PURE__*/react$1.forwardRef(function Dialog(props, forwardedRef) {
|
|
@@ -3581,10 +3534,9 @@ const Dialog = /*#__PURE__*/react$1.forwardRef(function Dialog(props, forwardedR
|
|
|
3581
3534
|
containerProps,
|
|
3582
3535
|
scrimProps,
|
|
3583
3536
|
openTimeoutInMilliseconds,
|
|
3584
|
-
closeTimeoutInMilliseconds
|
|
3585
|
-
|
|
3586
|
-
|
|
3587
|
-
|
|
3537
|
+
closeTimeoutInMilliseconds,
|
|
3538
|
+
...otherProps
|
|
3539
|
+
} = props;
|
|
3588
3540
|
const {
|
|
3589
3541
|
containerStyle,
|
|
3590
3542
|
scrimStyle,
|
|
@@ -3601,22 +3553,24 @@ const Dialog = /*#__PURE__*/react$1.forwardRef(function Dialog(props, forwardedR
|
|
|
3601
3553
|
}
|
|
3602
3554
|
|
|
3603
3555
|
return /*#__PURE__*/jsxRuntime.jsx(core.Portal, {
|
|
3604
|
-
children: /*#__PURE__*/jsxRuntime.jsxs(DialogBackdrop,
|
|
3556
|
+
children: /*#__PURE__*/jsxRuntime.jsxs(DialogBackdrop, {
|
|
3605
3557
|
onClose: onClose,
|
|
3606
3558
|
open: openProp,
|
|
3607
3559
|
disableCloseOnClick: disableBackdropClick,
|
|
3608
|
-
disableEscapeKeyDown: disableEscapeKeyDown
|
|
3609
|
-
|
|
3610
|
-
children: [/*#__PURE__*/jsxRuntime.jsx(Scrim,
|
|
3611
|
-
__css: scrimStyle
|
|
3612
|
-
|
|
3613
|
-
|
|
3614
|
-
|
|
3615
|
-
|
|
3616
|
-
|
|
3617
|
-
|
|
3618
|
-
|
|
3619
|
-
|
|
3560
|
+
disableEscapeKeyDown: disableEscapeKeyDown,
|
|
3561
|
+
...backdropProps,
|
|
3562
|
+
children: [/*#__PURE__*/jsxRuntime.jsx(Scrim, {
|
|
3563
|
+
__css: scrimStyle,
|
|
3564
|
+
...scrimProps
|
|
3565
|
+
}), /*#__PURE__*/jsxRuntime.jsx(DialogContainer, {
|
|
3566
|
+
__css: containerStyle,
|
|
3567
|
+
...containerProps,
|
|
3568
|
+
children: /*#__PURE__*/jsxRuntime.jsx(DialogSurface, {
|
|
3569
|
+
ref: forwardedRef,
|
|
3570
|
+
...otherProps
|
|
3571
|
+
})
|
|
3572
|
+
})]
|
|
3573
|
+
})
|
|
3620
3574
|
});
|
|
3621
3575
|
});
|
|
3622
3576
|
|
|
@@ -3624,14 +3578,13 @@ const Link = /*#__PURE__*/react$1.forwardRef(function Link(props, forwardedRef)
|
|
|
3624
3578
|
const {
|
|
3625
3579
|
as: asProp = 'a',
|
|
3626
3580
|
color = 'primary',
|
|
3627
|
-
__css
|
|
3628
|
-
|
|
3629
|
-
|
|
3630
|
-
|
|
3631
|
-
return /*#__PURE__*/jsxRuntime.jsx(Box, _extends__default['default']({
|
|
3581
|
+
__css,
|
|
3582
|
+
...otherProps
|
|
3583
|
+
} = props;
|
|
3584
|
+
return /*#__PURE__*/jsxRuntime.jsx(Box, {
|
|
3632
3585
|
ref: forwardedRef,
|
|
3633
3586
|
as: asProp,
|
|
3634
|
-
__css:
|
|
3587
|
+
__css: {
|
|
3635
3588
|
fontFamily: 'inherit',
|
|
3636
3589
|
fontSize: 'inherit',
|
|
3637
3590
|
fontWeight: 'inherit',
|
|
@@ -3650,11 +3603,13 @@ const Link = /*#__PURE__*/react$1.forwardRef(function Link(props, forwardedRef)
|
|
|
3650
3603
|
'&:active': {
|
|
3651
3604
|
bg: alpha(color, 0.16)
|
|
3652
3605
|
},
|
|
3653
|
-
WebkitTapHighlightColor: 'transparent'
|
|
3654
|
-
|
|
3655
|
-
|
|
3656
|
-
|
|
3657
|
-
|
|
3606
|
+
WebkitTapHighlightColor: 'transparent',
|
|
3607
|
+
...__css
|
|
3608
|
+
},
|
|
3609
|
+
...otherProps
|
|
3610
|
+
});
|
|
3611
|
+
});
|
|
3612
|
+
|
|
3658
3613
|
const growAnimation = react.keyframes({
|
|
3659
3614
|
'0%': {
|
|
3660
3615
|
opacity: 0,
|
|
@@ -3670,90 +3625,219 @@ const growAnimation = react.keyframes({
|
|
|
3670
3625
|
});
|
|
3671
3626
|
|
|
3672
3627
|
const MenuListCore = core.MenuList;
|
|
3673
|
-
const MenuList = /*#__PURE__*/react$1.forwardRef((
|
|
3674
|
-
|
|
3675
|
-
|
|
3676
|
-
|
|
3677
|
-
|
|
3678
|
-
|
|
3679
|
-
|
|
3680
|
-
|
|
3681
|
-
|
|
3682
|
-
|
|
3683
|
-
|
|
3684
|
-
|
|
3685
|
-
|
|
3686
|
-
|
|
3687
|
-
|
|
3688
|
-
|
|
3689
|
-
|
|
3690
|
-
|
|
3691
|
-
|
|
3692
|
-
|
|
3693
|
-
|
|
3694
|
-
|
|
3695
|
-
|
|
3696
|
-
|
|
3697
|
-
|
|
3698
|
-
|
|
3699
|
-
|
|
3700
|
-
|
|
3701
|
-
|
|
3702
|
-
}); /////////////////////////////////////////////////////
|
|
3628
|
+
const MenuList = /*#__PURE__*/react$1.forwardRef(({
|
|
3629
|
+
as = 'ul',
|
|
3630
|
+
__css,
|
|
3631
|
+
...props
|
|
3632
|
+
}, ref) => /*#__PURE__*/jsxRuntime.jsx(MenuListCore, {
|
|
3633
|
+
as: List,
|
|
3634
|
+
innerAs: as,
|
|
3635
|
+
ref: ref,
|
|
3636
|
+
elevation: 2,
|
|
3637
|
+
darkThemeBackgroundOverlay: 2,
|
|
3638
|
+
outlined: false,
|
|
3639
|
+
variant: "default",
|
|
3640
|
+
__css: {
|
|
3641
|
+
minWidth: "7rem",
|
|
3642
|
+
maxWidth: "17.5rem",
|
|
3643
|
+
maxHeight: "18.75rem",
|
|
3644
|
+
borderRadius: 'extra-small',
|
|
3645
|
+
overflowY: 'auto',
|
|
3646
|
+
'[data-popper-placement="top"] &': {
|
|
3647
|
+
transformOrigin: 'bottom center'
|
|
3648
|
+
},
|
|
3649
|
+
'[data-popper-placement="bottom"] &': {
|
|
3650
|
+
transformOrigin: 'top center'
|
|
3651
|
+
},
|
|
3652
|
+
animation: `${growAnimation} .12s ${EASING_STANDARD}`,
|
|
3653
|
+
...__css
|
|
3654
|
+
},
|
|
3655
|
+
...props
|
|
3656
|
+
})); /////////////////////////////////////////////////////
|
|
3703
3657
|
// MenuItem
|
|
3704
3658
|
|
|
3705
|
-
const MenuItem = /*#__PURE__*/react$1.forwardRef((
|
|
3706
|
-
|
|
3707
|
-
|
|
3708
|
-
|
|
3709
|
-
|
|
3710
|
-
|
|
3711
|
-
|
|
3712
|
-
|
|
3713
|
-
|
|
3714
|
-
ref: ref
|
|
3715
|
-
}, props));
|
|
3716
|
-
}); /////////////////////////////////////////////////////
|
|
3659
|
+
const MenuItem = /*#__PURE__*/react$1.forwardRef(({
|
|
3660
|
+
as = 'li',
|
|
3661
|
+
...props
|
|
3662
|
+
}, ref) => /*#__PURE__*/jsxRuntime.jsx(core.MenuItem, {
|
|
3663
|
+
as: ListItem,
|
|
3664
|
+
innerAs: as,
|
|
3665
|
+
ref: ref,
|
|
3666
|
+
...props
|
|
3667
|
+
})); /////////////////////////////////////////////////////
|
|
3717
3668
|
// MenuButton
|
|
3718
3669
|
|
|
3719
|
-
const MenuButton = /*#__PURE__*/react$1.forwardRef((
|
|
3720
|
-
|
|
3721
|
-
|
|
3722
|
-
|
|
3723
|
-
|
|
3724
|
-
|
|
3725
|
-
|
|
3726
|
-
|
|
3727
|
-
|
|
3728
|
-
ref: ref
|
|
3729
|
-
}, props));
|
|
3730
|
-
}); /////////////////////////////////////////////////////
|
|
3670
|
+
const MenuButton = /*#__PURE__*/react$1.forwardRef(({
|
|
3671
|
+
as = 'button',
|
|
3672
|
+
...props
|
|
3673
|
+
}, ref) => /*#__PURE__*/jsxRuntime.jsx(core.MenuButton, {
|
|
3674
|
+
as: Button,
|
|
3675
|
+
innerAs: as,
|
|
3676
|
+
ref: ref,
|
|
3677
|
+
...props
|
|
3678
|
+
})); /////////////////////////////////////////////////////
|
|
3731
3679
|
// MenuPopover
|
|
3732
3680
|
|
|
3733
3681
|
const MenuPopoverCore = core.MenuPopover;
|
|
3734
|
-
const MenuPopover = /*#__PURE__*/react$1.forwardRef((
|
|
3735
|
-
|
|
3736
|
-
|
|
3737
|
-
|
|
3738
|
-
|
|
3739
|
-
|
|
3682
|
+
const MenuPopover = /*#__PURE__*/react$1.forwardRef(({
|
|
3683
|
+
as,
|
|
3684
|
+
__css,
|
|
3685
|
+
...props
|
|
3686
|
+
}, ref) => /*#__PURE__*/jsxRuntime.jsx(MenuPopoverCore, {
|
|
3687
|
+
as: Box,
|
|
3688
|
+
innerAs: as,
|
|
3689
|
+
ref: ref,
|
|
3690
|
+
__css: {
|
|
3691
|
+
zIndex: 'tooltip',
|
|
3692
|
+
...__css
|
|
3693
|
+
},
|
|
3694
|
+
...props
|
|
3695
|
+
}));
|
|
3740
3696
|
|
|
3741
|
-
|
|
3742
|
-
|
|
3743
|
-
|
|
3744
|
-
|
|
3745
|
-
__css
|
|
3746
|
-
|
|
3747
|
-
|
|
3748
|
-
|
|
3697
|
+
const NavRailIndicator = /*#__PURE__*/react$1.forwardRef(function NavRailIndicator(props, forwardedRef) {
|
|
3698
|
+
const {
|
|
3699
|
+
as = 'div',
|
|
3700
|
+
children,
|
|
3701
|
+
__css,
|
|
3702
|
+
...otherProps
|
|
3703
|
+
} = props;
|
|
3704
|
+
return /*#__PURE__*/jsxRuntime.jsx(Box, {
|
|
3705
|
+
color: "currentColor",
|
|
3706
|
+
ref: forwardedRef,
|
|
3707
|
+
as: as,
|
|
3708
|
+
"data-nav-rail-item-indicator": "",
|
|
3709
|
+
...otherProps,
|
|
3710
|
+
__css: {
|
|
3711
|
+
width: '100%',
|
|
3712
|
+
height: '100%',
|
|
3713
|
+
maxWidth: "3.5rem",
|
|
3714
|
+
maxHeight: "3.5rem",
|
|
3715
|
+
borderRadius: 'full',
|
|
3716
|
+
bg: 'var(--indicator-background-color)',
|
|
3717
|
+
display: 'flex',
|
|
3718
|
+
alignItems: 'center',
|
|
3719
|
+
justifyContent: 'center',
|
|
3720
|
+
minHeight: "2rem",
|
|
3721
|
+
transition: `background-color .2s ${EASING_STANDARD}`,
|
|
3722
|
+
pointerEvents: 'none',
|
|
3723
|
+
...__css
|
|
3724
|
+
},
|
|
3725
|
+
children: children
|
|
3726
|
+
});
|
|
3727
|
+
});
|
|
3728
|
+
const NavRailLabel = /*#__PURE__*/react$1.forwardRef(function NavRailLabel(props, forwardedRef) {
|
|
3729
|
+
const {
|
|
3730
|
+
as = 'div',
|
|
3731
|
+
children,
|
|
3732
|
+
__css,
|
|
3733
|
+
...otherProps
|
|
3734
|
+
} = props;
|
|
3735
|
+
return /*#__PURE__*/jsxRuntime.jsx(Text, {
|
|
3736
|
+
ref: forwardedRef,
|
|
3737
|
+
as: as,
|
|
3738
|
+
variant: "label-small",
|
|
3739
|
+
lineHeight: 1,
|
|
3740
|
+
...otherProps,
|
|
3741
|
+
__css: {
|
|
3742
|
+
pt: "0.25rem",
|
|
3743
|
+
pb: "0.75rem",
|
|
3744
|
+
color: 'inherit',
|
|
3745
|
+
pointerEvents: 'none',
|
|
3746
|
+
...__css
|
|
3747
|
+
},
|
|
3748
|
+
children: children
|
|
3749
|
+
});
|
|
3750
|
+
});
|
|
3751
|
+
const NavRailItem = /*#__PURE__*/react$1.forwardRef(function NavRailItem(props, forwardedRef) {
|
|
3752
|
+
const {
|
|
3753
|
+
as = 'button',
|
|
3754
|
+
children,
|
|
3755
|
+
color = 'primary-container',
|
|
3756
|
+
selected = false,
|
|
3757
|
+
disabled = false,
|
|
3758
|
+
style,
|
|
3759
|
+
onKeyDown,
|
|
3760
|
+
onPointerDown,
|
|
3761
|
+
__css,
|
|
3762
|
+
...otherProps
|
|
3763
|
+
} = props;
|
|
3764
|
+
const theme = useTheme();
|
|
3765
|
+
const baseOpacity = 0,
|
|
3766
|
+
hoverOpacity = 0.04,
|
|
3767
|
+
focusOpacity = 0.12,
|
|
3768
|
+
pressedOpacity = 0.12;
|
|
3769
|
+
const ripple = useRippleSurface({
|
|
3770
|
+
rippleColor: 'currentColor',
|
|
3771
|
+
onKeyDown,
|
|
3772
|
+
onPointerDown,
|
|
3773
|
+
baseOpacity,
|
|
3774
|
+
hoverOpacity,
|
|
3775
|
+
focusOpacity,
|
|
3776
|
+
pressedOpacity
|
|
3777
|
+
}); // Apply ripple from nav item to nav indicator
|
|
3778
|
+
|
|
3779
|
+
const rippleCss = react$1.useMemo(() => {
|
|
3780
|
+
const ret = {};
|
|
3781
|
+
const keys = Object.keys(ripple.__css);
|
|
3782
|
+
|
|
3783
|
+
for (const key of keys) {
|
|
3784
|
+
if (!key.startsWith('&')) {
|
|
3785
|
+
ret['& [data-nav-rail-item-indicator]'] = ret['& [data-nav-rail-item-indicator]'] || {};
|
|
3786
|
+
ret['& [data-nav-rail-item-indicator]'][key] = ripple.__css[key];
|
|
3787
|
+
continue;
|
|
3788
|
+
}
|
|
3789
|
+
|
|
3790
|
+
const newKey = key.replace(/(.+?)::(before|after)/g, '$1 [data-nav-rail-item-indicator]::$2');
|
|
3791
|
+
ret[newKey] = ripple.__css[key];
|
|
3792
|
+
}
|
|
3793
|
+
|
|
3794
|
+
return ret;
|
|
3795
|
+
}, [ripple.__css]);
|
|
3796
|
+
return /*#__PURE__*/jsxRuntime.jsx(Box, {
|
|
3797
|
+
ref: forwardedRef,
|
|
3798
|
+
as: as,
|
|
3799
|
+
...otherProps,
|
|
3800
|
+
onPointerDown: ripple.onPointerDown,
|
|
3801
|
+
onKeyDown: ripple.onKeyDown,
|
|
3802
|
+
"aria-pressed": selected,
|
|
3803
|
+
type: "button",
|
|
3804
|
+
style: { ...ripple.style,
|
|
3805
|
+
...style
|
|
3806
|
+
},
|
|
3807
|
+
disabled: disabled,
|
|
3808
|
+
__css: {
|
|
3809
|
+
display: 'flex',
|
|
3810
|
+
flexDirection: 'column',
|
|
3811
|
+
alignItems: 'center',
|
|
3812
|
+
transition: `color .2s ${EASING_STANDARD}`,
|
|
3813
|
+
color: selected ? `on.${color}` : 'on.surface-variant',
|
|
3814
|
+
'--indicator-background-color': selected ? styledSystem.get(theme, `colors.${color}`) : 'transparent',
|
|
3815
|
+
border: 'none',
|
|
3816
|
+
':focus': {
|
|
3817
|
+
outline: 'none'
|
|
3818
|
+
},
|
|
3819
|
+
backgroundColor: 'transparent',
|
|
3820
|
+
margin: 0,
|
|
3821
|
+
padding: 0,
|
|
3822
|
+
px: "0.75rem",
|
|
3823
|
+
minHeight: "3.75rem",
|
|
3824
|
+
height: "3.75rem",
|
|
3825
|
+
cursor: 'pointer',
|
|
3826
|
+
textDecoration: 'none',
|
|
3827
|
+
WebkitTapHighlightColor: 'transparent',
|
|
3828
|
+
...rippleCss,
|
|
3829
|
+
...__css
|
|
3830
|
+
},
|
|
3831
|
+
children: children
|
|
3832
|
+
});
|
|
3749
3833
|
});
|
|
3750
3834
|
|
|
3751
3835
|
const innerDivRotate = react.keyframes({
|
|
3752
3836
|
'0%': {
|
|
3753
|
-
|
|
3837
|
+
transform: 'rotate(-90deg)'
|
|
3754
3838
|
},
|
|
3755
3839
|
'100%': {
|
|
3756
|
-
transform: 'rotate(
|
|
3840
|
+
transform: 'rotate(270deg)'
|
|
3757
3841
|
}
|
|
3758
3842
|
});
|
|
3759
3843
|
const circleIndeterminate = react.keyframes({
|
|
@@ -3776,32 +3860,33 @@ const ProgressSpinner = /*#__PURE__*/react$1.forwardRef(function ProgressSpinner
|
|
|
3776
3860
|
__css,
|
|
3777
3861
|
progress: progressProp,
|
|
3778
3862
|
thickness = 3.6,
|
|
3779
|
-
size = 40
|
|
3780
|
-
|
|
3781
|
-
|
|
3782
|
-
|
|
3863
|
+
size = 40,
|
|
3864
|
+
...otherProps
|
|
3865
|
+
} = props;
|
|
3783
3866
|
const indeterminate = progressProp === undefined;
|
|
3784
|
-
const progress = progressProp
|
|
3867
|
+
const progress = progressProp ?? 0;
|
|
3785
3868
|
const circumference = 2 * Math.PI * ((SIZE - thickness) / 2);
|
|
3786
|
-
return /*#__PURE__*/jsxRuntime.jsx(Box,
|
|
3787
|
-
ref: forwardedRef
|
|
3788
|
-
|
|
3789
|
-
__css:
|
|
3869
|
+
return /*#__PURE__*/jsxRuntime.jsx(Box, {
|
|
3870
|
+
ref: forwardedRef,
|
|
3871
|
+
...otherProps,
|
|
3872
|
+
__css: {
|
|
3790
3873
|
color: 'primary',
|
|
3791
3874
|
display: 'inline-block',
|
|
3792
3875
|
width: polished.rem(size),
|
|
3793
|
-
height: polished.rem(size)
|
|
3794
|
-
|
|
3876
|
+
height: polished.rem(size),
|
|
3877
|
+
...__css
|
|
3878
|
+
},
|
|
3795
3879
|
children: /*#__PURE__*/jsxRuntime.jsx(Box, {
|
|
3796
|
-
__css:
|
|
3880
|
+
__css: {
|
|
3797
3881
|
display: 'inline-block',
|
|
3798
3882
|
width: '100%',
|
|
3799
|
-
height: '100%'
|
|
3800
|
-
|
|
3801
|
-
|
|
3802
|
-
|
|
3803
|
-
|
|
3804
|
-
|
|
3883
|
+
height: '100%',
|
|
3884
|
+
transformOrigin: '50% 50%',
|
|
3885
|
+
transform: 'rotate(-90deg)',
|
|
3886
|
+
...(indeterminate && {
|
|
3887
|
+
animation: `${innerDivRotate} 1.4s linear infinite`
|
|
3888
|
+
})
|
|
3889
|
+
},
|
|
3805
3890
|
children: /*#__PURE__*/jsxRuntime.jsx(Box, {
|
|
3806
3891
|
as: "svg",
|
|
3807
3892
|
viewBox: "22 22 44 44",
|
|
@@ -3818,26 +3903,23 @@ const ProgressSpinner = /*#__PURE__*/react$1.forwardRef(function ProgressSpinner
|
|
|
3818
3903
|
strokeDashoffset: `${((100 - progress) / 100 * circumference).toFixed(3)}px`
|
|
3819
3904
|
},
|
|
3820
3905
|
__css: indeterminate ? {
|
|
3821
|
-
animation: `${circleIndeterminate} 1.4s ease-in-out infinite
|
|
3822
|
-
strokeDasharray: '80px, 200px',
|
|
3823
|
-
strokeDashoffset: '0px'
|
|
3906
|
+
animation: `${circleIndeterminate} 1.4s ease-in-out infinite`
|
|
3824
3907
|
} : {
|
|
3825
|
-
transition:
|
|
3908
|
+
transition: `stroke-dashoffset 300ms ${EASING_STANDARD} 0ms`,
|
|
3826
3909
|
strokeDasharray: circumference.toFixed(3)
|
|
3827
3910
|
}
|
|
3828
3911
|
})
|
|
3829
3912
|
})
|
|
3830
3913
|
})
|
|
3831
|
-
})
|
|
3914
|
+
});
|
|
3832
3915
|
});
|
|
3833
3916
|
|
|
3834
3917
|
const RadioButtonIcon = /*#__PURE__*/react$1.forwardRef(function RadioButtonIcon(props, forwardedRef) {
|
|
3835
3918
|
const {
|
|
3836
|
-
checked
|
|
3837
|
-
|
|
3838
|
-
|
|
3839
|
-
|
|
3840
|
-
return /*#__PURE__*/jsxRuntime.jsx(Box, _extends__default['default']({
|
|
3919
|
+
checked,
|
|
3920
|
+
...otherProps
|
|
3921
|
+
} = props;
|
|
3922
|
+
return /*#__PURE__*/jsxRuntime.jsx(Box, {
|
|
3841
3923
|
ref: forwardedRef,
|
|
3842
3924
|
__css: {
|
|
3843
3925
|
borderColor: 'currentColor',
|
|
@@ -3847,19 +3929,19 @@ const RadioButtonIcon = /*#__PURE__*/react$1.forwardRef(function RadioButtonIcon
|
|
|
3847
3929
|
width: '100%',
|
|
3848
3930
|
height: '100%',
|
|
3849
3931
|
p: "0.1875rem"
|
|
3850
|
-
}
|
|
3851
|
-
|
|
3932
|
+
},
|
|
3933
|
+
...otherProps,
|
|
3852
3934
|
children: /*#__PURE__*/jsxRuntime.jsx(Box, {
|
|
3853
3935
|
__css: {
|
|
3854
3936
|
backgroundColor: 'currentColor',
|
|
3855
3937
|
borderRadius: 'full',
|
|
3856
3938
|
width: '100%',
|
|
3857
3939
|
height: '100%',
|
|
3858
|
-
transition:
|
|
3940
|
+
transition: `transform .12s ${EASING_STANDARD} 0ms,background-color .12s ${EASING_STANDARD} 0ms`,
|
|
3859
3941
|
transform: checked ? 'scale(1)' : 'scale(0)'
|
|
3860
3942
|
}
|
|
3861
3943
|
})
|
|
3862
|
-
})
|
|
3944
|
+
});
|
|
3863
3945
|
});
|
|
3864
3946
|
|
|
3865
3947
|
const RadioButtonInner = /*#__PURE__*/react$1.forwardRef(function RadioButtonInner(props, forwardedRef) {
|
|
@@ -3867,17 +3949,16 @@ const RadioButtonInner = /*#__PURE__*/react$1.forwardRef(function RadioButtonInn
|
|
|
3867
3949
|
innerAs: as,
|
|
3868
3950
|
checked,
|
|
3869
3951
|
disabled,
|
|
3870
|
-
__css
|
|
3871
|
-
|
|
3872
|
-
|
|
3873
|
-
|
|
3952
|
+
__css,
|
|
3953
|
+
...otherProps
|
|
3954
|
+
} = props;
|
|
3874
3955
|
const color = 'primary';
|
|
3875
3956
|
const theme = useTheme();
|
|
3876
3957
|
return /*#__PURE__*/jsxRuntime.jsxs(Box, {
|
|
3877
3958
|
position: "relative",
|
|
3878
3959
|
display: "inline-block",
|
|
3879
3960
|
minWidth: "auto",
|
|
3880
|
-
children: [/*#__PURE__*/jsxRuntime.jsx(RippleBox,
|
|
3961
|
+
children: [/*#__PURE__*/jsxRuntime.jsx(RippleBox, {
|
|
3881
3962
|
as: as,
|
|
3882
3963
|
checked: checked,
|
|
3883
3964
|
ref: forwardedRef,
|
|
@@ -3888,7 +3969,7 @@ const RadioButtonInner = /*#__PURE__*/react$1.forwardRef(function RadioButtonInn
|
|
|
3888
3969
|
center: true,
|
|
3889
3970
|
disabled: disabled,
|
|
3890
3971
|
theme: theme,
|
|
3891
|
-
__css:
|
|
3972
|
+
__css: {
|
|
3892
3973
|
top: 0,
|
|
3893
3974
|
left: 0,
|
|
3894
3975
|
width: "2.5rem",
|
|
@@ -3900,9 +3981,11 @@ const RadioButtonInner = /*#__PURE__*/react$1.forwardRef(function RadioButtonInn
|
|
|
3900
3981
|
border: 'none',
|
|
3901
3982
|
borderRadius: 'full',
|
|
3902
3983
|
zIndex: 1,
|
|
3903
|
-
position: 'absolute'
|
|
3904
|
-
|
|
3905
|
-
|
|
3984
|
+
position: 'absolute',
|
|
3985
|
+
...__css
|
|
3986
|
+
},
|
|
3987
|
+
...otherProps
|
|
3988
|
+
}), /*#__PURE__*/jsxRuntime.jsx(Box, {
|
|
3906
3989
|
__css: {
|
|
3907
3990
|
position: 'relative',
|
|
3908
3991
|
top: 0,
|
|
@@ -3929,16 +4012,17 @@ const RadioButton = /*#__PURE__*/react$1.forwardRef(function RadioButton(props,
|
|
|
3929
4012
|
const {
|
|
3930
4013
|
as = 'input',
|
|
3931
4014
|
children,
|
|
3932
|
-
disabled
|
|
3933
|
-
|
|
3934
|
-
|
|
4015
|
+
disabled,
|
|
4016
|
+
...otherProps
|
|
4017
|
+
} = props;
|
|
3935
4018
|
|
|
3936
|
-
const inner = /*#__PURE__*/jsxRuntime.jsx(core.RadioButton,
|
|
4019
|
+
const inner = /*#__PURE__*/jsxRuntime.jsx(core.RadioButton, {
|
|
3937
4020
|
as: RadioButtonInner,
|
|
3938
4021
|
innerAs: as,
|
|
3939
4022
|
ref: forwardedRef,
|
|
3940
|
-
disabled: disabled
|
|
3941
|
-
|
|
4023
|
+
disabled: disabled,
|
|
4024
|
+
...otherProps
|
|
4025
|
+
});
|
|
3942
4026
|
|
|
3943
4027
|
if (!children) {
|
|
3944
4028
|
return inner;
|
|
@@ -3954,54 +4038,51 @@ const RadioButton = /*#__PURE__*/react$1.forwardRef(function RadioButton(props,
|
|
|
3954
4038
|
|
|
3955
4039
|
const RadioGroup = /*#__PURE__*/react$1.forwardRef(function RadioGroup(props, forwardedRef) {
|
|
3956
4040
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
3957
|
-
const
|
|
3958
|
-
|
|
3959
|
-
|
|
4041
|
+
const {
|
|
4042
|
+
as,
|
|
4043
|
+
...otherProps
|
|
4044
|
+
} = props;
|
|
4045
|
+
return /*#__PURE__*/jsxRuntime.jsx(Box, {
|
|
3960
4046
|
as: core.RadioGroup,
|
|
3961
|
-
ref: forwardedRef
|
|
3962
|
-
|
|
4047
|
+
ref: forwardedRef,
|
|
4048
|
+
...otherProps
|
|
4049
|
+
});
|
|
3963
4050
|
});
|
|
3964
4051
|
|
|
3965
|
-
const Select$1 = /*#__PURE__*/react$1.forwardRef((
|
|
3966
|
-
|
|
3967
|
-
|
|
3968
|
-
|
|
3969
|
-
props = _objectWithoutPropertiesLoose__default['default'](_ref, ["as"]);
|
|
3970
|
-
|
|
4052
|
+
const Select$1 = /*#__PURE__*/react$1.forwardRef(({
|
|
4053
|
+
as: asProp = 'select',
|
|
4054
|
+
...props
|
|
4055
|
+
}, forwardedRef) => {
|
|
3971
4056
|
const InputSelect = Input;
|
|
3972
|
-
return /*#__PURE__*/jsxRuntime.jsx(InputSelect,
|
|
4057
|
+
return /*#__PURE__*/jsxRuntime.jsx(InputSelect, {
|
|
3973
4058
|
as: asProp,
|
|
3974
|
-
ref: forwardedRef
|
|
3975
|
-
|
|
4059
|
+
ref: forwardedRef,
|
|
4060
|
+
...props
|
|
4061
|
+
});
|
|
3976
4062
|
});
|
|
3977
|
-
const SelectButtonInner = /*#__PURE__*/react$1.forwardRef((
|
|
3978
|
-
|
|
3979
|
-
|
|
3980
|
-
|
|
3981
|
-
props = _objectWithoutPropertiesLoose__default['default'](_ref2, ["innerAs"]);
|
|
3982
|
-
|
|
4063
|
+
const SelectButtonInner = /*#__PURE__*/react$1.forwardRef(({
|
|
4064
|
+
innerAs = 'div',
|
|
4065
|
+
...props
|
|
4066
|
+
}, forwardedRef) => {
|
|
3983
4067
|
const InputButton = Input;
|
|
3984
|
-
return /*#__PURE__*/jsxRuntime.jsx(InputButton,
|
|
4068
|
+
return /*#__PURE__*/jsxRuntime.jsx(InputButton, {
|
|
3985
4069
|
as: innerAs,
|
|
3986
4070
|
ref: forwardedRef,
|
|
3987
|
-
tabIndex: 0
|
|
3988
|
-
|
|
3989
|
-
});
|
|
3990
|
-
const SelectButton = /*#__PURE__*/react$1.forwardRef((_ref3, ref) => {
|
|
3991
|
-
let {
|
|
3992
|
-
as,
|
|
3993
|
-
children
|
|
3994
|
-
} = _ref3,
|
|
3995
|
-
props = _objectWithoutPropertiesLoose__default['default'](_ref3, ["as", "children"]);
|
|
3996
|
-
|
|
3997
|
-
return /*#__PURE__*/jsxRuntime.jsx(core.MenuButton, _extends__default['default']({
|
|
3998
|
-
as: SelectButtonInner,
|
|
3999
|
-
innerAs: as,
|
|
4000
|
-
ref: ref
|
|
4001
|
-
}, props, {
|
|
4002
|
-
children: children
|
|
4003
|
-
}));
|
|
4071
|
+
tabIndex: 0,
|
|
4072
|
+
...props
|
|
4073
|
+
});
|
|
4004
4074
|
});
|
|
4075
|
+
const SelectButton = /*#__PURE__*/react$1.forwardRef(({
|
|
4076
|
+
as,
|
|
4077
|
+
children,
|
|
4078
|
+
...props
|
|
4079
|
+
}, ref) => /*#__PURE__*/jsxRuntime.jsx(core.MenuButton, {
|
|
4080
|
+
as: SelectButtonInner,
|
|
4081
|
+
innerAs: as,
|
|
4082
|
+
ref: ref,
|
|
4083
|
+
...props,
|
|
4084
|
+
children: children
|
|
4085
|
+
}));
|
|
4005
4086
|
|
|
4006
4087
|
const selectContext = /*#__PURE__*/react$1.createContext({
|
|
4007
4088
|
native: false,
|
|
@@ -4015,11 +4096,10 @@ const useSelectContext = () => react$1.useContext(selectContext);
|
|
|
4015
4096
|
|
|
4016
4097
|
const SelectIcon = /*#__PURE__*/react$1.forwardRef(function SelectIcon(props, forwardedRef) {
|
|
4017
4098
|
const {
|
|
4018
|
-
open
|
|
4019
|
-
|
|
4020
|
-
|
|
4021
|
-
|
|
4022
|
-
return /*#__PURE__*/jsxRuntime.jsx(Box, _extends__default['default']({
|
|
4099
|
+
open,
|
|
4100
|
+
...otherProps
|
|
4101
|
+
} = props;
|
|
4102
|
+
return /*#__PURE__*/jsxRuntime.jsx(Box, {
|
|
4023
4103
|
ref: forwardedRef,
|
|
4024
4104
|
as: "svg",
|
|
4025
4105
|
"aria-hidden": true,
|
|
@@ -4033,14 +4113,14 @@ const SelectIcon = /*#__PURE__*/react$1.forwardRef(function SelectIcon(props, fo
|
|
|
4033
4113
|
color: open ? 'primary' : alpha('on.surface', 0.54),
|
|
4034
4114
|
pointerEvents: 'none',
|
|
4035
4115
|
transform: open ? 'rotate(180deg)' : undefined,
|
|
4036
|
-
transition:
|
|
4037
|
-
}
|
|
4038
|
-
|
|
4116
|
+
transition: `transform .15s ${EASING_STANDARD}, color .15s ${EASING_STANDARD}`
|
|
4117
|
+
},
|
|
4118
|
+
...otherProps,
|
|
4039
4119
|
children: /*#__PURE__*/jsxRuntime.jsx("path", {
|
|
4040
4120
|
fill: "currentColor",
|
|
4041
4121
|
d: "M7 10l5 5 5-5z"
|
|
4042
4122
|
})
|
|
4043
|
-
})
|
|
4123
|
+
});
|
|
4044
4124
|
});
|
|
4045
4125
|
|
|
4046
4126
|
const makeDefaultRender = children => val => {
|
|
@@ -4066,8 +4146,6 @@ const componentMap = {
|
|
|
4066
4146
|
filled: FilledContainer
|
|
4067
4147
|
};
|
|
4068
4148
|
const Select = /*#__PURE__*/react$1.forwardRef(function Select(props, forwardedRef) {
|
|
4069
|
-
var _buttonRef$current;
|
|
4070
|
-
|
|
4071
4149
|
const {
|
|
4072
4150
|
id: idProp,
|
|
4073
4151
|
variant = 'outlined',
|
|
@@ -4085,10 +4163,9 @@ const Select = /*#__PURE__*/react$1.forwardRef(function Select(props, forwardedR
|
|
|
4085
4163
|
native = false,
|
|
4086
4164
|
children,
|
|
4087
4165
|
renderValue: renderValueProp,
|
|
4088
|
-
leadingIcon = null
|
|
4089
|
-
|
|
4090
|
-
|
|
4091
|
-
|
|
4166
|
+
leadingIcon = null,
|
|
4167
|
+
...otherProps
|
|
4168
|
+
} = props;
|
|
4092
4169
|
const [value, onChange] = core.useControlledState(valueProp, onChangeProp, defaultValue, setState => (e, v) => {
|
|
4093
4170
|
setState(v);
|
|
4094
4171
|
});
|
|
@@ -4159,7 +4236,7 @@ const Select = /*#__PURE__*/react$1.forwardRef(function Select(props, forwardedR
|
|
|
4159
4236
|
children: [leadingIcon && /*#__PURE__*/jsxRuntime.jsx(IconContainer, {
|
|
4160
4237
|
position: "start",
|
|
4161
4238
|
children: leadingIcon
|
|
4162
|
-
}), /*#__PURE__*/jsxRuntime.jsx(Comp,
|
|
4239
|
+
}), /*#__PURE__*/jsxRuntime.jsx(Comp, {
|
|
4163
4240
|
ref: core.assignMultipleRefs(forwardedRef, buttonRef),
|
|
4164
4241
|
variant: variant,
|
|
4165
4242
|
id: inputId,
|
|
@@ -4174,15 +4251,15 @@ const Select = /*#__PURE__*/react$1.forwardRef(function Select(props, forwardedR
|
|
|
4174
4251
|
"aria-describedby": helperTextId,
|
|
4175
4252
|
hasLabel: !!label,
|
|
4176
4253
|
leadingIcon: Boolean(leadingIcon),
|
|
4177
|
-
trailingIcon: true
|
|
4178
|
-
|
|
4254
|
+
trailingIcon: true,
|
|
4255
|
+
...otherProps,
|
|
4179
4256
|
children: native ? children : renderValue(value)
|
|
4180
|
-
})
|
|
4257
|
+
}), !native && /*#__PURE__*/jsxRuntime.jsx(MenuPopover, {
|
|
4181
4258
|
usePortal: true,
|
|
4182
4259
|
children: /*#__PURE__*/jsxRuntime.jsx(MenuList, {
|
|
4183
4260
|
defaultActiveItemValue: value,
|
|
4184
4261
|
style: {
|
|
4185
|
-
minWidth: buttonRef
|
|
4262
|
+
minWidth: buttonRef?.current?.offsetWidth
|
|
4186
4263
|
},
|
|
4187
4264
|
role: "listbox",
|
|
4188
4265
|
children: children
|
|
@@ -4208,10 +4285,9 @@ const SelectItem = /*#__PURE__*/react$1.forwardRef(function SelectItem(props, fo
|
|
|
4208
4285
|
onSelect: onSelectProp,
|
|
4209
4286
|
children,
|
|
4210
4287
|
value: valueProp,
|
|
4211
|
-
disabled
|
|
4212
|
-
|
|
4213
|
-
|
|
4214
|
-
|
|
4288
|
+
disabled,
|
|
4289
|
+
...otherProps
|
|
4290
|
+
} = props;
|
|
4215
4291
|
const {
|
|
4216
4292
|
native,
|
|
4217
4293
|
onSelect,
|
|
@@ -4220,13 +4296,13 @@ const SelectItem = /*#__PURE__*/react$1.forwardRef(function SelectItem(props, fo
|
|
|
4220
4296
|
const value = valueProp !== undefined && valueProp !== null ? String(valueProp) : children;
|
|
4221
4297
|
|
|
4222
4298
|
if (native) {
|
|
4223
|
-
return /*#__PURE__*/jsxRuntime.jsx("option",
|
|
4299
|
+
return /*#__PURE__*/jsxRuntime.jsx("option", {
|
|
4224
4300
|
ref: forwardedRef,
|
|
4225
4301
|
value: value,
|
|
4226
|
-
disabled: disabled
|
|
4227
|
-
|
|
4302
|
+
disabled: disabled,
|
|
4303
|
+
...otherProps,
|
|
4228
4304
|
children: children
|
|
4229
|
-
})
|
|
4305
|
+
});
|
|
4230
4306
|
}
|
|
4231
4307
|
|
|
4232
4308
|
if (children === undefined && disabled) {
|
|
@@ -4234,17 +4310,17 @@ const SelectItem = /*#__PURE__*/react$1.forwardRef(function SelectItem(props, fo
|
|
|
4234
4310
|
}
|
|
4235
4311
|
|
|
4236
4312
|
const selected = value === String(selectedValue);
|
|
4237
|
-
return /*#__PURE__*/jsxRuntime.jsx(Comp,
|
|
4313
|
+
return /*#__PURE__*/jsxRuntime.jsx(Comp, {
|
|
4238
4314
|
as: MenuItem,
|
|
4239
4315
|
onSelect: core.wrapEvent(onSelectProp, onSelect),
|
|
4240
4316
|
"data-value": value,
|
|
4241
4317
|
disabled: disabled,
|
|
4242
4318
|
ref: forwardedRef,
|
|
4243
4319
|
role: "option",
|
|
4244
|
-
selected: selected
|
|
4245
|
-
|
|
4320
|
+
selected: selected,
|
|
4321
|
+
...otherProps,
|
|
4246
4322
|
children: children || ZERO_WIDTH_SPACE
|
|
4247
|
-
})
|
|
4323
|
+
});
|
|
4248
4324
|
});
|
|
4249
4325
|
|
|
4250
4326
|
const pulseAnimation = react.keyframes({
|
|
@@ -4294,22 +4370,24 @@ const Skeleton = /*#__PURE__*/react$1.forwardRef(function Skeleton(props, forwar
|
|
|
4294
4370
|
const {
|
|
4295
4371
|
as = 'span',
|
|
4296
4372
|
__css,
|
|
4297
|
-
animation = 'pulse'
|
|
4298
|
-
|
|
4299
|
-
|
|
4300
|
-
|
|
4373
|
+
animation = 'pulse',
|
|
4374
|
+
...otherProps
|
|
4375
|
+
} = props;
|
|
4301
4376
|
const theme = useTheme();
|
|
4302
|
-
return /*#__PURE__*/jsxRuntime.jsx(Box,
|
|
4377
|
+
return /*#__PURE__*/jsxRuntime.jsx(Box, {
|
|
4303
4378
|
ref: forwardedRef,
|
|
4304
4379
|
as: as,
|
|
4305
|
-
__css:
|
|
4380
|
+
__css: {
|
|
4306
4381
|
height: '1.2em',
|
|
4307
4382
|
display: 'inline-block',
|
|
4308
|
-
backgroundColor: alpha('on.surface', 0.11)
|
|
4309
|
-
|
|
4310
|
-
|
|
4311
|
-
|
|
4312
|
-
|
|
4383
|
+
backgroundColor: alpha('on.surface', 0.11),
|
|
4384
|
+
...(animation === 'pulse' ? pulseAnimationStyle() : waveAnimationStyle({
|
|
4385
|
+
theme
|
|
4386
|
+
})),
|
|
4387
|
+
...__css
|
|
4388
|
+
},
|
|
4389
|
+
...otherProps
|
|
4390
|
+
});
|
|
4313
4391
|
});
|
|
4314
4392
|
|
|
4315
4393
|
const appearAnimation = react.keyframes({
|
|
@@ -4325,18 +4403,19 @@ const appearAnimation = react.keyframes({
|
|
|
4325
4403
|
const DelayAppearance = /*#__PURE__*/react$1.forwardRef(function DelayAppearance(props, forwardedRef) {
|
|
4326
4404
|
const {
|
|
4327
4405
|
timeoutInMilliseconds = 500,
|
|
4328
|
-
__css
|
|
4329
|
-
|
|
4330
|
-
|
|
4331
|
-
|
|
4332
|
-
return /*#__PURE__*/jsxRuntime.jsx(Box, _extends__default['default']({
|
|
4406
|
+
__css,
|
|
4407
|
+
...otherProps
|
|
4408
|
+
} = props;
|
|
4409
|
+
return /*#__PURE__*/jsxRuntime.jsx(Box, {
|
|
4333
4410
|
ref: forwardedRef,
|
|
4334
4411
|
timeoutInMilliseconds: timeoutInMilliseconds,
|
|
4335
|
-
__css:
|
|
4412
|
+
__css: {
|
|
4336
4413
|
animation: `0s linear ${timeoutInMilliseconds}ms forwards ${appearAnimation}`,
|
|
4337
|
-
visibility: 'hidden'
|
|
4338
|
-
|
|
4339
|
-
|
|
4414
|
+
visibility: 'hidden',
|
|
4415
|
+
...__css
|
|
4416
|
+
},
|
|
4417
|
+
...otherProps
|
|
4418
|
+
});
|
|
4340
4419
|
});
|
|
4341
4420
|
|
|
4342
4421
|
const StackItemContext = /*#__PURE__*/react$1.createContext(null);
|
|
@@ -4367,9 +4446,7 @@ function useStackItem({
|
|
|
4367
4446
|
}
|
|
4368
4447
|
|
|
4369
4448
|
react$1.useLayoutEffect(() => {
|
|
4370
|
-
|
|
4371
|
-
|
|
4372
|
-
const height = (_ref$current$getBound = (_ref$current = ref.current) == null ? void 0 : _ref$current.getBoundingClientRect().height) != null ? _ref$current$getBound : 0;
|
|
4449
|
+
const height = ref.current?.getBoundingClientRect().height ?? 0;
|
|
4373
4450
|
onSetHeight(height);
|
|
4374
4451
|
|
|
4375
4452
|
if (isExiting) {
|
|
@@ -4506,7 +4583,7 @@ const StackProvider = ({
|
|
|
4506
4583
|
const onAddItemRef = react$1.useRef(null);
|
|
4507
4584
|
|
|
4508
4585
|
function onAddItem(element) {
|
|
4509
|
-
onAddItemRef.current
|
|
4586
|
+
onAddItemRef.current?.(element);
|
|
4510
4587
|
}
|
|
4511
4588
|
|
|
4512
4589
|
return /*#__PURE__*/jsxRuntime.jsxs(StackContext.Provider, {
|
|
@@ -4638,7 +4715,7 @@ const commonStyle = {
|
|
|
4638
4715
|
};
|
|
4639
4716
|
|
|
4640
4717
|
function getTransition(timems) {
|
|
4641
|
-
return `opacity ${timems}ms
|
|
4718
|
+
return `opacity ${timems}ms ${EASING_STANDARD},transform ${timems}ms ${EASING_STANDARD}`;
|
|
4642
4719
|
}
|
|
4643
4720
|
|
|
4644
4721
|
const defaultAnimation = {
|
|
@@ -4677,28 +4754,34 @@ function useSnackbarAnimation(ref, timeout) {
|
|
|
4677
4754
|
switch (state) {
|
|
4678
4755
|
case 'entering':
|
|
4679
4756
|
return {
|
|
4680
|
-
style:
|
|
4757
|
+
style: { ...animateFn('entering', translateY),
|
|
4681
4758
|
visibility: 'hidden'
|
|
4682
|
-
}
|
|
4683
|
-
placementStyle:
|
|
4759
|
+
},
|
|
4760
|
+
placementStyle: { ...placementStyle,
|
|
4761
|
+
...commonStyle
|
|
4762
|
+
},
|
|
4684
4763
|
onClose
|
|
4685
4764
|
};
|
|
4686
4765
|
|
|
4687
4766
|
case 'entered':
|
|
4688
4767
|
return {
|
|
4689
|
-
style:
|
|
4768
|
+
style: { ...animateFn('entered', translateY),
|
|
4690
4769
|
transition: getTransition(TRANSITION_TIME)
|
|
4691
|
-
}
|
|
4692
|
-
placementStyle:
|
|
4770
|
+
},
|
|
4771
|
+
placementStyle: { ...placementStyle,
|
|
4772
|
+
...commonStyle
|
|
4773
|
+
},
|
|
4693
4774
|
onClose
|
|
4694
4775
|
};
|
|
4695
4776
|
|
|
4696
4777
|
case 'exiting':
|
|
4697
4778
|
return {
|
|
4698
|
-
style:
|
|
4779
|
+
style: { ...animateFn('exiting', translateY),
|
|
4699
4780
|
transition: getTransition(TRANSITION_TIME)
|
|
4700
|
-
}
|
|
4701
|
-
placementStyle:
|
|
4781
|
+
},
|
|
4782
|
+
placementStyle: { ...placementStyle,
|
|
4783
|
+
...commonStyle
|
|
4784
|
+
},
|
|
4702
4785
|
onClose
|
|
4703
4786
|
};
|
|
4704
4787
|
}
|
|
@@ -4707,30 +4790,28 @@ function useSnackbarAnimation(ref, timeout) {
|
|
|
4707
4790
|
const Snackbar = /*#__PURE__*/react$1.forwardRef(function Snackbar(props, forwardedRef) {
|
|
4708
4791
|
const {
|
|
4709
4792
|
colorMode
|
|
4710
|
-
} = useColorMode();
|
|
4793
|
+
} = dynamicTheme.useColorMode();
|
|
4711
4794
|
const ref = react$1.useRef(null);
|
|
4712
|
-
|
|
4713
4795
|
const {
|
|
4714
4796
|
__css,
|
|
4715
4797
|
action,
|
|
4716
4798
|
children,
|
|
4717
4799
|
style: styleProp,
|
|
4718
4800
|
timeout = 5000,
|
|
4719
|
-
dismissible
|
|
4720
|
-
|
|
4721
|
-
|
|
4722
|
-
|
|
4801
|
+
dismissible,
|
|
4802
|
+
...otherProps
|
|
4803
|
+
} = props;
|
|
4723
4804
|
const {
|
|
4724
4805
|
onClose,
|
|
4725
4806
|
placementStyle,
|
|
4726
4807
|
style
|
|
4727
4808
|
} = useSnackbarAnimation(ref, timeout);
|
|
4728
|
-
return /*#__PURE__*/jsxRuntime.jsxs(Paper,
|
|
4809
|
+
return /*#__PURE__*/jsxRuntime.jsxs(Paper, {
|
|
4729
4810
|
elevation: 4,
|
|
4730
|
-
|
|
4731
|
-
className: colorMode === 'default' ? DARK_THEME_CLASS : DEFAULT_THEME_CLASS,
|
|
4811
|
+
darkThemeBackgroundOverlay: 4,
|
|
4812
|
+
className: colorMode === 'default' ? dynamicTheme.DARK_THEME_CLASS : dynamicTheme.DEFAULT_THEME_CLASS,
|
|
4732
4813
|
ref: core.assignMultipleRefs(forwardedRef, ref),
|
|
4733
|
-
__css:
|
|
4814
|
+
__css: {
|
|
4734
4815
|
boxShadow: 4,
|
|
4735
4816
|
py: "0.375rem",
|
|
4736
4817
|
pl: 3,
|
|
@@ -4741,12 +4822,16 @@ const Snackbar = /*#__PURE__*/react$1.forwardRef(function Snackbar(props, forwar
|
|
|
4741
4822
|
borderRadius: 'extra-small',
|
|
4742
4823
|
color: 'on.surface',
|
|
4743
4824
|
flexDirection: 'row',
|
|
4744
|
-
willChange: 'transform,opacity'
|
|
4745
|
-
|
|
4746
|
-
|
|
4747
|
-
|
|
4825
|
+
willChange: 'transform,opacity',
|
|
4826
|
+
...placementStyle,
|
|
4827
|
+
...__css
|
|
4828
|
+
},
|
|
4829
|
+
style: { ...style,
|
|
4830
|
+
...styleProp
|
|
4831
|
+
},
|
|
4832
|
+
...otherProps,
|
|
4748
4833
|
children: [/*#__PURE__*/jsxRuntime.jsx(Text, {
|
|
4749
|
-
variant: "
|
|
4834
|
+
variant: "body-medium",
|
|
4750
4835
|
as: "span",
|
|
4751
4836
|
py: 2,
|
|
4752
4837
|
children: children
|
|
@@ -4760,7 +4845,7 @@ const Snackbar = /*#__PURE__*/react$1.forwardRef(function Snackbar(props, forwar
|
|
|
4760
4845
|
onClick: onClose
|
|
4761
4846
|
}) : action
|
|
4762
4847
|
})]
|
|
4763
|
-
})
|
|
4848
|
+
});
|
|
4764
4849
|
});
|
|
4765
4850
|
|
|
4766
4851
|
const BORDER_WIDTH = 2;
|
|
@@ -4770,93 +4855,85 @@ const CIRCLE_SIZE_INACTIVE_CHECKED = 24;
|
|
|
4770
4855
|
const CIRCLE_SIZE_ACTIVE_CHECKED = 28;
|
|
4771
4856
|
const CIRCLE_SIZE_INACTIVE_UNCHECKED = 16;
|
|
4772
4857
|
const CIRCLE_SIZE_ACTIVE_UNCHECKED = 28;
|
|
4773
|
-
const SwitchTrail = (
|
|
4774
|
-
|
|
4775
|
-
|
|
4776
|
-
|
|
4777
|
-
|
|
4778
|
-
|
|
4779
|
-
|
|
4780
|
-
|
|
4781
|
-
|
|
4782
|
-
|
|
4783
|
-
|
|
4784
|
-
|
|
4785
|
-
|
|
4786
|
-
|
|
4787
|
-
backgroundColor: checked ? 'primary' : 'surface-variant',
|
|
4788
|
-
borderColor: checked ? 'primary' : 'outline'
|
|
4789
|
-
}, disabled && {
|
|
4858
|
+
const SwitchTrail = ({
|
|
4859
|
+
checked = false,
|
|
4860
|
+
disabled = false,
|
|
4861
|
+
...otherProps
|
|
4862
|
+
}) => /*#__PURE__*/jsxRuntime.jsx(Box, {
|
|
4863
|
+
__css: {
|
|
4864
|
+
width: polished.rem(TRAIL_WIDTH),
|
|
4865
|
+
height: polished.rem(TRAIL_HEIGHT),
|
|
4866
|
+
borderRadius: polished.rem(TRAIL_HEIGHT / 2),
|
|
4867
|
+
borderWidth: polished.rem(BORDER_WIDTH),
|
|
4868
|
+
borderStyle: 'solid',
|
|
4869
|
+
backgroundColor: checked ? 'primary' : 'surface-variant',
|
|
4870
|
+
borderColor: checked ? 'primary' : 'outline',
|
|
4871
|
+
...(disabled && {
|
|
4790
4872
|
opacity: 0.12,
|
|
4791
4873
|
backgroundColor: checked ? 'on.surface' : 'surface-variant',
|
|
4792
4874
|
borderColor: 'on.surface'
|
|
4793
4875
|
})
|
|
4794
|
-
},
|
|
4795
|
-
|
|
4876
|
+
},
|
|
4877
|
+
...otherProps
|
|
4878
|
+
});
|
|
4796
4879
|
const THUMB_SIZE = 40;
|
|
4797
|
-
const SwitchThumb = (
|
|
4798
|
-
|
|
4799
|
-
|
|
4800
|
-
|
|
4801
|
-
|
|
4802
|
-
|
|
4803
|
-
|
|
4804
|
-
|
|
4805
|
-
|
|
4806
|
-
|
|
4807
|
-
|
|
4808
|
-
|
|
4809
|
-
|
|
4810
|
-
|
|
4811
|
-
|
|
4812
|
-
|
|
4813
|
-
|
|
4814
|
-
'& > input': {
|
|
4815
|
-
width: THUMB_SIZE,
|
|
4816
|
-
height: THUMB_SIZE
|
|
4817
|
-
}
|
|
4880
|
+
const SwitchThumb = ({
|
|
4881
|
+
checked = false,
|
|
4882
|
+
...otherProps
|
|
4883
|
+
}) => /*#__PURE__*/jsxRuntime.jsx(Box, {
|
|
4884
|
+
position: "absolute",
|
|
4885
|
+
width: polished.rem(THUMB_SIZE),
|
|
4886
|
+
height: polished.rem(THUMB_SIZE),
|
|
4887
|
+
borderRadius: "full",
|
|
4888
|
+
left: '50%',
|
|
4889
|
+
top: '50%',
|
|
4890
|
+
__css: {
|
|
4891
|
+
transform: `translateX(calc(-50% ${checked ? '+' : '-'} ${polished.rem((TRAIL_WIDTH - CIRCLE_SIZE_INACTIVE_CHECKED - BORDER_WIDTH * 4) / 2)})) translateY(-50%)`,
|
|
4892
|
+
WebkitTapHighlightColor: 'transparent',
|
|
4893
|
+
transition: `background-color 90ms ${EASING_STANDARD},border-color 90ms ${EASING_STANDARD},transform 90ms ${EASING_STANDARD},height 90ms ${EASING_STANDARD},width 90ms ${EASING_STANDARD}`,
|
|
4894
|
+
'& > input': {
|
|
4895
|
+
width: THUMB_SIZE,
|
|
4896
|
+
height: THUMB_SIZE
|
|
4818
4897
|
}
|
|
4819
|
-
},
|
|
4820
|
-
|
|
4821
|
-
|
|
4822
|
-
|
|
4823
|
-
|
|
4824
|
-
|
|
4825
|
-
|
|
4826
|
-
|
|
4827
|
-
|
|
4828
|
-
|
|
4829
|
-
|
|
4830
|
-
|
|
4831
|
-
|
|
4832
|
-
|
|
4833
|
-
|
|
4834
|
-
|
|
4835
|
-
|
|
4836
|
-
|
|
4837
|
-
|
|
4838
|
-
|
|
4839
|
-
|
|
4840
|
-
|
|
4841
|
-
'[data-switch-thumb=""]:active ~ &, [data-switch-thumb=""]:focus-visible ~ &, [data-switch-thumb=""]:hover ~ &': {
|
|
4842
|
-
backgroundColor: checked ? 'primary-container' : 'on.surface-variant'
|
|
4843
|
-
},
|
|
4844
|
-
'[data-switch-thumb=""]:active ~ &, [data-switch-thumb=""]:focus-visible ~ &': {
|
|
4845
|
-
height: checked ? CIRCLE_SIZE_ACTIVE_CHECKED : CIRCLE_SIZE_ACTIVE_UNCHECKED,
|
|
4846
|
-
width: checked ? CIRCLE_SIZE_ACTIVE_CHECKED : CIRCLE_SIZE_ACTIVE_UNCHECKED
|
|
4847
|
-
},
|
|
4848
|
-
'[data-switch-thumb=""]:disabled ~ &': {
|
|
4849
|
-
opacity: checked ? 1 : 0.38,
|
|
4850
|
-
backgroundColor: checked ? 'surface' : 'on.surface',
|
|
4851
|
-
height: checked ? CIRCLE_SIZE_INACTIVE_CHECKED : CIRCLE_SIZE_INACTIVE_UNCHECKED,
|
|
4852
|
-
width: checked ? CIRCLE_SIZE_INACTIVE_CHECKED : CIRCLE_SIZE_INACTIVE_UNCHECKED
|
|
4853
|
-
}
|
|
4898
|
+
},
|
|
4899
|
+
...otherProps
|
|
4900
|
+
});
|
|
4901
|
+
const SwitchCircle = ({
|
|
4902
|
+
checked = false,
|
|
4903
|
+
...otherProps
|
|
4904
|
+
}) => /*#__PURE__*/jsxRuntime.jsx(Box, {
|
|
4905
|
+
__css: {
|
|
4906
|
+
position: 'absolute',
|
|
4907
|
+
width: checked ? polished.rem(CIRCLE_SIZE_INACTIVE_CHECKED) : polished.rem(CIRCLE_SIZE_INACTIVE_UNCHECKED),
|
|
4908
|
+
height: checked ? polished.rem(CIRCLE_SIZE_INACTIVE_CHECKED) : polished.rem(CIRCLE_SIZE_INACTIVE_UNCHECKED),
|
|
4909
|
+
boxSizing: 'border-box',
|
|
4910
|
+
borderRadius: 'full',
|
|
4911
|
+
pointerEvents: 'none',
|
|
4912
|
+
zIndex: 1,
|
|
4913
|
+
backgroundColor: checked ? 'on.primary' : 'outline',
|
|
4914
|
+
top: '50%',
|
|
4915
|
+
left: '50%',
|
|
4916
|
+
transform: 'translate(-50%, -50%)',
|
|
4917
|
+
transition: 'inherit',
|
|
4918
|
+
'[data-switch-thumb=""]:active ~ &, [data-switch-thumb=""]:focus-visible ~ &, [data-switch-thumb=""]:hover ~ &': {
|
|
4919
|
+
backgroundColor: checked ? 'primary-container' : 'on.surface-variant'
|
|
4854
4920
|
},
|
|
4855
|
-
|
|
4856
|
-
|
|
4857
|
-
|
|
4858
|
-
|
|
4859
|
-
|
|
4921
|
+
'[data-switch-thumb=""]:active ~ &, [data-switch-thumb=""]:focus-visible ~ &': {
|
|
4922
|
+
height: checked ? CIRCLE_SIZE_ACTIVE_CHECKED : CIRCLE_SIZE_ACTIVE_UNCHECKED,
|
|
4923
|
+
width: checked ? CIRCLE_SIZE_ACTIVE_CHECKED : CIRCLE_SIZE_ACTIVE_UNCHECKED
|
|
4924
|
+
},
|
|
4925
|
+
'[data-switch-thumb=""]:disabled ~ &': {
|
|
4926
|
+
opacity: checked ? 1 : 0.38,
|
|
4927
|
+
backgroundColor: checked ? 'surface' : 'on.surface',
|
|
4928
|
+
height: checked ? CIRCLE_SIZE_INACTIVE_CHECKED : CIRCLE_SIZE_INACTIVE_UNCHECKED,
|
|
4929
|
+
width: checked ? CIRCLE_SIZE_INACTIVE_CHECKED : CIRCLE_SIZE_INACTIVE_UNCHECKED
|
|
4930
|
+
}
|
|
4931
|
+
},
|
|
4932
|
+
"data-switch-circle": "",
|
|
4933
|
+
role: "presentation",
|
|
4934
|
+
"aria-hidden": "true",
|
|
4935
|
+
...otherProps
|
|
4936
|
+
});
|
|
4860
4937
|
|
|
4861
4938
|
const CheckBoxCore = core.CheckBox;
|
|
4862
4939
|
const SwitchInner = /*#__PURE__*/react$1.forwardRef(function SwitchInner(props, forwardedRef) {
|
|
@@ -4865,10 +4942,9 @@ const SwitchInner = /*#__PURE__*/react$1.forwardRef(function SwitchInner(props,
|
|
|
4865
4942
|
disabled,
|
|
4866
4943
|
checked,
|
|
4867
4944
|
onChange,
|
|
4868
|
-
__css
|
|
4869
|
-
|
|
4870
|
-
|
|
4871
|
-
|
|
4945
|
+
__css,
|
|
4946
|
+
...otherProps
|
|
4947
|
+
} = props;
|
|
4872
4948
|
const color = checked ? 'primary' : 'on.surface';
|
|
4873
4949
|
const theme = useTheme();
|
|
4874
4950
|
return /*#__PURE__*/jsxRuntime.jsx(Box, {
|
|
@@ -4882,7 +4958,7 @@ const SwitchInner = /*#__PURE__*/react$1.forwardRef(function SwitchInner(props,
|
|
|
4882
4958
|
disabled: disabled
|
|
4883
4959
|
}), /*#__PURE__*/jsxRuntime.jsxs(SwitchThumb, {
|
|
4884
4960
|
checked: checked,
|
|
4885
|
-
children: [/*#__PURE__*/jsxRuntime.jsx(RippleBox,
|
|
4961
|
+
children: [/*#__PURE__*/jsxRuntime.jsx(RippleBox, {
|
|
4886
4962
|
as: Comp,
|
|
4887
4963
|
role: "switch",
|
|
4888
4964
|
type: "checkbox",
|
|
@@ -4897,9 +4973,9 @@ const SwitchInner = /*#__PURE__*/react$1.forwardRef(function SwitchInner(props,
|
|
|
4897
4973
|
focusOpacity: 0.12,
|
|
4898
4974
|
center: true,
|
|
4899
4975
|
disabled: disabled,
|
|
4900
|
-
"data-switch-thumb": ""
|
|
4901
|
-
|
|
4902
|
-
__css:
|
|
4976
|
+
"data-switch-thumb": "",
|
|
4977
|
+
...otherProps,
|
|
4978
|
+
__css: {
|
|
4903
4979
|
top: '50%',
|
|
4904
4980
|
left: '50%',
|
|
4905
4981
|
backgroundColor: 'transparent',
|
|
@@ -4913,9 +4989,10 @@ const SwitchInner = /*#__PURE__*/react$1.forwardRef(function SwitchInner(props,
|
|
|
4913
4989
|
border: 'none',
|
|
4914
4990
|
borderRadius: 'full',
|
|
4915
4991
|
zIndex: 1,
|
|
4916
|
-
position: 'absolute'
|
|
4917
|
-
|
|
4918
|
-
|
|
4992
|
+
position: 'absolute',
|
|
4993
|
+
...__css
|
|
4994
|
+
}
|
|
4995
|
+
}), /*#__PURE__*/jsxRuntime.jsx(SwitchCircle, {
|
|
4919
4996
|
checked: checked
|
|
4920
4997
|
})]
|
|
4921
4998
|
})]
|
|
@@ -4926,16 +5003,17 @@ const Switch = /*#__PURE__*/react$1.forwardRef(function Switch(props, forwardedR
|
|
|
4926
5003
|
const {
|
|
4927
5004
|
as = 'input',
|
|
4928
5005
|
disabled,
|
|
4929
|
-
children
|
|
4930
|
-
|
|
4931
|
-
|
|
5006
|
+
children,
|
|
5007
|
+
...otherProps
|
|
5008
|
+
} = props;
|
|
4932
5009
|
|
|
4933
|
-
const inner = /*#__PURE__*/jsxRuntime.jsx(CheckBoxCore,
|
|
5010
|
+
const inner = /*#__PURE__*/jsxRuntime.jsx(CheckBoxCore, {
|
|
4934
5011
|
as: SwitchInner,
|
|
4935
5012
|
innerAs: as,
|
|
4936
5013
|
ref: forwardedRef,
|
|
4937
|
-
disabled: disabled
|
|
4938
|
-
|
|
5014
|
+
disabled: disabled,
|
|
5015
|
+
...otherProps
|
|
5016
|
+
});
|
|
4939
5017
|
|
|
4940
5018
|
if (!children) {
|
|
4941
5019
|
return inner;
|
|
@@ -4964,10 +5042,9 @@ const TabIndicator = /*#__PURE__*/react$1.forwardRef(function TabIndicator(props
|
|
|
4964
5042
|
const {
|
|
4965
5043
|
as = 'span',
|
|
4966
5044
|
selected,
|
|
4967
|
-
color = 'primary'
|
|
4968
|
-
|
|
4969
|
-
|
|
4970
|
-
|
|
5045
|
+
color = 'primary',
|
|
5046
|
+
...otherProps
|
|
5047
|
+
} = props;
|
|
4971
5048
|
const ref = react$1.useRef(null);
|
|
4972
5049
|
const {
|
|
4973
5050
|
currentIndicator
|
|
@@ -4994,7 +5071,7 @@ const TabIndicator = /*#__PURE__*/react$1.forwardRef(function TabIndicator(props
|
|
|
4994
5071
|
currentIndicator.current = ref.current;
|
|
4995
5072
|
}
|
|
4996
5073
|
}, [selected]);
|
|
4997
|
-
return /*#__PURE__*/jsxRuntime.jsx(Box,
|
|
5074
|
+
return /*#__PURE__*/jsxRuntime.jsx(Box, {
|
|
4998
5075
|
as: as,
|
|
4999
5076
|
ref: core.assignMultipleRefs(ref, forwardedRef),
|
|
5000
5077
|
width: "100%",
|
|
@@ -5006,10 +5083,11 @@ const TabIndicator = /*#__PURE__*/react$1.forwardRef(function TabIndicator(props
|
|
|
5006
5083
|
transform: `scale(1)`,
|
|
5007
5084
|
opacity: selected ? 1 : 0,
|
|
5008
5085
|
transformOrigin: 'left',
|
|
5009
|
-
transition:
|
|
5086
|
+
transition: `transform .25s ${EASING_STANDARD}`,
|
|
5010
5087
|
zIndex: 1
|
|
5011
|
-
}
|
|
5012
|
-
|
|
5088
|
+
},
|
|
5089
|
+
...otherProps
|
|
5090
|
+
});
|
|
5013
5091
|
});
|
|
5014
5092
|
|
|
5015
5093
|
const TabListContext = /*#__PURE__*/react$1.createContext({
|
|
@@ -5023,29 +5101,28 @@ const useTabListContext = () => react$1.useContext(TabListContext);
|
|
|
5023
5101
|
|
|
5024
5102
|
const TabListInner = /*#__PURE__*/react$1.forwardRef(function TabListInner(props, forwardedRef) {
|
|
5025
5103
|
const {
|
|
5026
|
-
innerAs
|
|
5027
|
-
|
|
5028
|
-
|
|
5029
|
-
|
|
5030
|
-
return /*#__PURE__*/jsxRuntime.jsx(Box, _extends__default['default']({
|
|
5104
|
+
innerAs,
|
|
5105
|
+
...otherProps
|
|
5106
|
+
} = props;
|
|
5107
|
+
return /*#__PURE__*/jsxRuntime.jsx(Box, {
|
|
5031
5108
|
as: innerAs,
|
|
5032
5109
|
ref: forwardedRef,
|
|
5033
5110
|
__css: {
|
|
5034
5111
|
minWidth: "22.5rem",
|
|
5035
5112
|
display: 'flex',
|
|
5036
5113
|
alignItems: 'center'
|
|
5037
|
-
}
|
|
5038
|
-
|
|
5114
|
+
},
|
|
5115
|
+
...otherProps
|
|
5116
|
+
});
|
|
5039
5117
|
});
|
|
5040
5118
|
const TabList = /*#__PURE__*/react$1.forwardRef(function TabList(props, forwardedRef) {
|
|
5041
5119
|
const {
|
|
5042
5120
|
as = 'div',
|
|
5043
5121
|
indicatorColor = 'primary',
|
|
5044
5122
|
textColor = 'on.surface',
|
|
5045
|
-
selectedTextColor
|
|
5046
|
-
|
|
5047
|
-
|
|
5048
|
-
|
|
5123
|
+
selectedTextColor,
|
|
5124
|
+
...otherProps
|
|
5125
|
+
} = props;
|
|
5049
5126
|
const currentIndicator = react$1.useRef(null);
|
|
5050
5127
|
return /*#__PURE__*/jsxRuntime.jsx(TabListProvider, {
|
|
5051
5128
|
value: {
|
|
@@ -5057,11 +5134,12 @@ const TabList = /*#__PURE__*/react$1.forwardRef(function TabList(props, forwarde
|
|
|
5057
5134
|
value: {
|
|
5058
5135
|
currentIndicator
|
|
5059
5136
|
},
|
|
5060
|
-
children: /*#__PURE__*/jsxRuntime.jsx(core.TabList,
|
|
5137
|
+
children: /*#__PURE__*/jsxRuntime.jsx(core.TabList, {
|
|
5061
5138
|
as: TabListInner,
|
|
5062
5139
|
innerAs: as,
|
|
5063
|
-
ref: forwardedRef
|
|
5064
|
-
|
|
5140
|
+
ref: forwardedRef,
|
|
5141
|
+
...otherProps
|
|
5142
|
+
})
|
|
5065
5143
|
})
|
|
5066
5144
|
});
|
|
5067
5145
|
});
|
|
@@ -5071,10 +5149,9 @@ const TabInner = /*#__PURE__*/react$1.forwardRef(function Tab(props, forwardedRe
|
|
|
5071
5149
|
innerAs,
|
|
5072
5150
|
selected,
|
|
5073
5151
|
children,
|
|
5074
|
-
disabled
|
|
5075
|
-
|
|
5076
|
-
|
|
5077
|
-
|
|
5152
|
+
disabled,
|
|
5153
|
+
...otherProps
|
|
5154
|
+
} = props;
|
|
5078
5155
|
const {
|
|
5079
5156
|
textColor,
|
|
5080
5157
|
indicatorColor,
|
|
@@ -5083,9 +5160,9 @@ const TabInner = /*#__PURE__*/react$1.forwardRef(function Tab(props, forwardedRe
|
|
|
5083
5160
|
return /*#__PURE__*/jsxRuntime.jsxs(Box, {
|
|
5084
5161
|
position: "relative",
|
|
5085
5162
|
display: "flex",
|
|
5086
|
-
|
|
5163
|
+
flex: 1,
|
|
5087
5164
|
flexDirection: "column",
|
|
5088
|
-
children: [/*#__PURE__*/jsxRuntime.jsx(RippleBox,
|
|
5165
|
+
children: [/*#__PURE__*/jsxRuntime.jsx(RippleBox, {
|
|
5089
5166
|
as: innerAs,
|
|
5090
5167
|
ref: forwardedRef,
|
|
5091
5168
|
rippleColor: indicatorColor,
|
|
@@ -5102,17 +5179,17 @@ const TabInner = /*#__PURE__*/react$1.forwardRef(function Tab(props, forwardedRe
|
|
|
5102
5179
|
},
|
|
5103
5180
|
width: '100%',
|
|
5104
5181
|
alignItems: 'center'
|
|
5105
|
-
}
|
|
5106
|
-
|
|
5182
|
+
},
|
|
5183
|
+
...otherProps,
|
|
5107
5184
|
children: /*#__PURE__*/jsxRuntime.jsx(Text, {
|
|
5108
5185
|
as: "span",
|
|
5109
|
-
variant: "
|
|
5186
|
+
variant: "label-large",
|
|
5110
5187
|
color: "inherit",
|
|
5111
5188
|
height: "100%",
|
|
5112
5189
|
textAlign: "center",
|
|
5113
5190
|
children: children
|
|
5114
5191
|
})
|
|
5115
|
-
})
|
|
5192
|
+
}), /*#__PURE__*/jsxRuntime.jsx(TabIndicator, {
|
|
5116
5193
|
selected: selected,
|
|
5117
5194
|
color: indicatorColor
|
|
5118
5195
|
})]
|
|
@@ -5120,58 +5197,58 @@ const TabInner = /*#__PURE__*/react$1.forwardRef(function Tab(props, forwardedRe
|
|
|
5120
5197
|
});
|
|
5121
5198
|
const Tab = /*#__PURE__*/react$1.forwardRef(function Tab(props, forwardedRef) {
|
|
5122
5199
|
const {
|
|
5123
|
-
as = 'button'
|
|
5124
|
-
|
|
5125
|
-
|
|
5126
|
-
|
|
5127
|
-
return /*#__PURE__*/jsxRuntime.jsx(core.Tab, _extends__default['default']({
|
|
5200
|
+
as = 'button',
|
|
5201
|
+
...otherProps
|
|
5202
|
+
} = props;
|
|
5203
|
+
return /*#__PURE__*/jsxRuntime.jsx(core.Tab, {
|
|
5128
5204
|
as: TabInner,
|
|
5129
5205
|
innerAs: as,
|
|
5130
|
-
ref: forwardedRef
|
|
5131
|
-
|
|
5206
|
+
ref: forwardedRef,
|
|
5207
|
+
...otherProps
|
|
5208
|
+
});
|
|
5132
5209
|
});
|
|
5133
5210
|
|
|
5134
5211
|
const TabPanelInner = /*#__PURE__*/react$1.forwardRef(function TabPanelInner(props, forwardedRef) {
|
|
5135
5212
|
const {
|
|
5136
|
-
innerAs
|
|
5137
|
-
|
|
5138
|
-
|
|
5139
|
-
|
|
5140
|
-
return /*#__PURE__*/jsxRuntime.jsx(Box, _extends__default['default']({
|
|
5213
|
+
innerAs,
|
|
5214
|
+
...otherProps
|
|
5215
|
+
} = props;
|
|
5216
|
+
return /*#__PURE__*/jsxRuntime.jsx(Box, {
|
|
5141
5217
|
as: innerAs,
|
|
5142
|
-
ref: forwardedRef
|
|
5143
|
-
|
|
5218
|
+
ref: forwardedRef,
|
|
5219
|
+
...otherProps
|
|
5220
|
+
});
|
|
5144
5221
|
});
|
|
5145
5222
|
const TabPanel = /*#__PURE__*/react$1.forwardRef(function TabPanel(props, forwardedRef) {
|
|
5146
5223
|
const {
|
|
5147
|
-
as = 'div'
|
|
5148
|
-
|
|
5149
|
-
|
|
5150
|
-
|
|
5151
|
-
return /*#__PURE__*/jsxRuntime.jsx(core.TabPanel, _extends__default['default']({
|
|
5224
|
+
as = 'div',
|
|
5225
|
+
...otherProps
|
|
5226
|
+
} = props;
|
|
5227
|
+
return /*#__PURE__*/jsxRuntime.jsx(core.TabPanel, {
|
|
5152
5228
|
as: TabPanelInner,
|
|
5153
5229
|
innerAs: as,
|
|
5154
|
-
ref: forwardedRef
|
|
5155
|
-
|
|
5230
|
+
ref: forwardedRef,
|
|
5231
|
+
...otherProps
|
|
5232
|
+
});
|
|
5156
5233
|
});
|
|
5157
5234
|
|
|
5158
5235
|
const Table = /*#__PURE__*/react$1.forwardRef((props, ref) => {
|
|
5159
5236
|
const {
|
|
5160
5237
|
children,
|
|
5161
|
-
elevation = 1
|
|
5162
|
-
|
|
5163
|
-
|
|
5164
|
-
|
|
5165
|
-
return /*#__PURE__*/jsxRuntime.jsx(Paper, _extends__default['default']({
|
|
5238
|
+
elevation = 1,
|
|
5239
|
+
...rest
|
|
5240
|
+
} = props;
|
|
5241
|
+
return /*#__PURE__*/jsxRuntime.jsx(Paper, {
|
|
5166
5242
|
ref: ref,
|
|
5167
5243
|
role: "table",
|
|
5168
5244
|
display: "flex",
|
|
5169
5245
|
width: "100%",
|
|
5170
5246
|
flexDirection: "column",
|
|
5171
|
-
elevation: elevation
|
|
5172
|
-
|
|
5247
|
+
elevation: elevation,
|
|
5248
|
+
darkThemeBackgroundOverlay: elevation,
|
|
5249
|
+
...rest,
|
|
5173
5250
|
children: children
|
|
5174
|
-
})
|
|
5251
|
+
});
|
|
5175
5252
|
});
|
|
5176
5253
|
|
|
5177
5254
|
const TableHeadContext = /*#__PURE__*/react$1.createContext(false);
|
|
@@ -5182,146 +5259,135 @@ const useTableHeadContext = () => react$1.useContext(TableHeadContext);
|
|
|
5182
5259
|
|
|
5183
5260
|
const TableBody = /*#__PURE__*/react$1.forwardRef((props, ref) => {
|
|
5184
5261
|
const {
|
|
5185
|
-
children
|
|
5186
|
-
|
|
5187
|
-
|
|
5188
|
-
|
|
5189
|
-
return /*#__PURE__*/jsxRuntime.jsx(Box, _extends__default['default']({
|
|
5262
|
+
children,
|
|
5263
|
+
...rest
|
|
5264
|
+
} = props;
|
|
5265
|
+
return /*#__PURE__*/jsxRuntime.jsx(Box, {
|
|
5190
5266
|
ref: ref,
|
|
5191
|
-
role: "rowgroup"
|
|
5192
|
-
|
|
5267
|
+
role: "rowgroup",
|
|
5268
|
+
...rest,
|
|
5193
5269
|
children: children
|
|
5194
|
-
})
|
|
5270
|
+
});
|
|
5195
5271
|
});
|
|
5196
5272
|
|
|
5197
5273
|
const TableHead = /*#__PURE__*/react$1.forwardRef((props, ref) => {
|
|
5198
5274
|
const {
|
|
5199
5275
|
children,
|
|
5200
|
-
__css
|
|
5201
|
-
|
|
5202
|
-
|
|
5203
|
-
|
|
5204
|
-
return /*#__PURE__*/jsxRuntime.jsx(TableBody, _extends__default['default']({
|
|
5276
|
+
__css,
|
|
5277
|
+
...rest
|
|
5278
|
+
} = props;
|
|
5279
|
+
return /*#__PURE__*/jsxRuntime.jsx(TableBody, {
|
|
5205
5280
|
ref: ref,
|
|
5206
|
-
__css:
|
|
5281
|
+
__css: {
|
|
5207
5282
|
borderBottomStyle: 'solid',
|
|
5208
5283
|
borderBottomWidth: "0.0625rem",
|
|
5209
|
-
borderBottomColor: alpha('on.surface', 0.12)
|
|
5210
|
-
|
|
5211
|
-
|
|
5284
|
+
borderBottomColor: alpha('on.surface', 0.12),
|
|
5285
|
+
...__css
|
|
5286
|
+
},
|
|
5287
|
+
...rest,
|
|
5212
5288
|
children: /*#__PURE__*/jsxRuntime.jsx(TableHeadProvider, {
|
|
5213
5289
|
value: true,
|
|
5214
5290
|
children: children
|
|
5215
5291
|
})
|
|
5216
|
-
})
|
|
5292
|
+
});
|
|
5217
5293
|
});
|
|
5218
5294
|
|
|
5219
5295
|
const TableCell = /*#__PURE__*/react$1.forwardRef((props, ref) => {
|
|
5220
5296
|
const {
|
|
5221
5297
|
children,
|
|
5222
|
-
__css
|
|
5223
|
-
|
|
5224
|
-
|
|
5225
|
-
|
|
5298
|
+
__css,
|
|
5299
|
+
...rest
|
|
5300
|
+
} = props;
|
|
5226
5301
|
const isHeadCell = useTableHeadContext();
|
|
5227
|
-
return /*#__PURE__*/jsxRuntime.jsx(Box,
|
|
5302
|
+
return /*#__PURE__*/jsxRuntime.jsx(Box, {
|
|
5228
5303
|
ref: ref,
|
|
5229
5304
|
px: 1,
|
|
5230
5305
|
py: 3,
|
|
5231
5306
|
role: isHeadCell ? 'columnheader' : 'cell',
|
|
5232
|
-
__css:
|
|
5307
|
+
__css: {
|
|
5233
5308
|
whiteSpace: 'nowrap',
|
|
5234
5309
|
overflow: 'hidden',
|
|
5235
5310
|
textOverflow: 'ellipsis',
|
|
5236
5311
|
fontWeight: isHeadCell ? 'medium' : undefined,
|
|
5237
|
-
color: 'on.surface'
|
|
5238
|
-
|
|
5239
|
-
|
|
5312
|
+
color: 'on.surface',
|
|
5313
|
+
...__css
|
|
5314
|
+
},
|
|
5315
|
+
...rest,
|
|
5240
5316
|
children: children
|
|
5241
|
-
})
|
|
5317
|
+
});
|
|
5242
5318
|
});
|
|
5243
5319
|
|
|
5244
5320
|
const TableRow = /*#__PURE__*/react$1.forwardRef((props, ref) => {
|
|
5245
5321
|
const {
|
|
5246
5322
|
children,
|
|
5247
|
-
__css
|
|
5248
|
-
|
|
5249
|
-
|
|
5250
|
-
|
|
5251
|
-
return /*#__PURE__*/jsxRuntime.jsx(Text, _extends__default['default']({
|
|
5323
|
+
__css,
|
|
5324
|
+
...rest
|
|
5325
|
+
} = props;
|
|
5326
|
+
return /*#__PURE__*/jsxRuntime.jsx(Text, {
|
|
5252
5327
|
ref: ref,
|
|
5253
5328
|
as: "div",
|
|
5254
5329
|
role: "row",
|
|
5255
5330
|
display: "flex",
|
|
5256
5331
|
flexDirection: "row",
|
|
5257
5332
|
width: "100%",
|
|
5258
|
-
variant: "
|
|
5333
|
+
variant: "body-medium",
|
|
5259
5334
|
px: 2,
|
|
5260
|
-
__css:
|
|
5335
|
+
__css: {
|
|
5261
5336
|
borderBottomStyle: 'solid',
|
|
5262
5337
|
borderBottomWidth: "0.0625rem",
|
|
5263
5338
|
borderBottomColor: alpha('on.surface', 0.12),
|
|
5264
5339
|
'&:last-of-type': {
|
|
5265
5340
|
borderBottom: 'none'
|
|
5266
|
-
}
|
|
5267
|
-
|
|
5268
|
-
|
|
5341
|
+
},
|
|
5342
|
+
...__css
|
|
5343
|
+
},
|
|
5344
|
+
...rest,
|
|
5269
5345
|
children: children
|
|
5270
|
-
})
|
|
5346
|
+
});
|
|
5271
5347
|
});
|
|
5272
5348
|
|
|
5273
5349
|
const BaseTooltip = core.Tooltip;
|
|
5274
5350
|
const Tooltip = /*#__PURE__*/react$1.forwardRef(function Tooltip(props, forwardedRef) {
|
|
5275
5351
|
const {
|
|
5276
5352
|
placement = 'bottom',
|
|
5277
|
-
__css
|
|
5278
|
-
|
|
5279
|
-
|
|
5280
|
-
|
|
5281
|
-
return /*#__PURE__*/jsxRuntime.jsx(BaseTooltip, _extends__default['default']({
|
|
5353
|
+
__css,
|
|
5354
|
+
...otherProps
|
|
5355
|
+
} = props;
|
|
5356
|
+
return /*#__PURE__*/jsxRuntime.jsx(BaseTooltip, {
|
|
5282
5357
|
as: core.Popper,
|
|
5283
5358
|
innerAs: Box,
|
|
5284
5359
|
ref: forwardedRef,
|
|
5285
5360
|
placement: placement,
|
|
5286
5361
|
distance: 8,
|
|
5287
|
-
__css:
|
|
5362
|
+
__css: {
|
|
5363
|
+
variant: ['text.body-medium', 'text.body-small'],
|
|
5288
5364
|
bg: alpha('#616161', 0.9),
|
|
5289
5365
|
color: '#fff',
|
|
5290
|
-
|
|
5291
|
-
|
|
5292
|
-
|
|
5293
|
-
|
|
5294
|
-
|
|
5295
|
-
|
|
5296
|
-
|
|
5297
|
-
|
|
5298
|
-
}, __css)
|
|
5299
|
-
}, otherProps));
|
|
5366
|
+
px: 2,
|
|
5367
|
+
py: 1,
|
|
5368
|
+
borderRadius: 'extra-small',
|
|
5369
|
+
zIndex: 'tooltip',
|
|
5370
|
+
...__css
|
|
5371
|
+
},
|
|
5372
|
+
...otherProps
|
|
5373
|
+
});
|
|
5300
5374
|
});
|
|
5301
5375
|
|
|
5302
5376
|
Object.defineProperty(exports, 'Menu', {
|
|
5303
5377
|
enumerable: true,
|
|
5304
|
-
get: function () {
|
|
5305
|
-
return core.Menu;
|
|
5306
|
-
}
|
|
5378
|
+
get: function () { return core.Menu; }
|
|
5307
5379
|
});
|
|
5308
5380
|
Object.defineProperty(exports, 'TabPanels', {
|
|
5309
5381
|
enumerable: true,
|
|
5310
|
-
get: function () {
|
|
5311
|
-
return core.TabPanels;
|
|
5312
|
-
}
|
|
5382
|
+
get: function () { return core.TabPanels; }
|
|
5313
5383
|
});
|
|
5314
5384
|
Object.defineProperty(exports, 'Tabs', {
|
|
5315
5385
|
enumerable: true,
|
|
5316
|
-
get: function () {
|
|
5317
|
-
return core.Tabs;
|
|
5318
|
-
}
|
|
5386
|
+
get: function () { return core.Tabs; }
|
|
5319
5387
|
});
|
|
5320
5388
|
Object.defineProperty(exports, 'useComboBoxContext', {
|
|
5321
5389
|
enumerable: true,
|
|
5322
|
-
get: function () {
|
|
5323
|
-
return core.useComboBoxContext;
|
|
5324
|
-
}
|
|
5390
|
+
get: function () { return core.useComboBoxContext; }
|
|
5325
5391
|
});
|
|
5326
5392
|
exports.Alert = Alert;
|
|
5327
5393
|
exports.AppBar = AppBar;
|
|
@@ -5336,8 +5402,6 @@ exports.ButtonGroup = ButtonGroup;
|
|
|
5336
5402
|
exports.CheckBox = CheckBox;
|
|
5337
5403
|
exports.Chip = ButtonChip;
|
|
5338
5404
|
exports.ChoiceChip = ChoiceChip;
|
|
5339
|
-
exports.ColorModeContext = ColorModeContext;
|
|
5340
|
-
exports.ColorModeProvider = ColorModeProvider;
|
|
5341
5405
|
exports.Combobox = Combobox;
|
|
5342
5406
|
exports.ComboboxButton = ComboboxButton;
|
|
5343
5407
|
exports.ComboboxInput = ComboboxInput;
|
|
@@ -5345,11 +5409,16 @@ exports.ComboboxLabel = ComboboxLabel;
|
|
|
5345
5409
|
exports.ComboboxList = ComboboxList;
|
|
5346
5410
|
exports.ComboboxOption = ComboboxOption;
|
|
5347
5411
|
exports.ComboboxPopover = ComboboxPopover;
|
|
5348
|
-
exports.DARK_THEME_CLASS = DARK_THEME_CLASS;
|
|
5349
|
-
exports.DEFAULT_THEME_CLASS = DEFAULT_THEME_CLASS;
|
|
5350
5412
|
exports.DelayAppearance = DelayAppearance;
|
|
5351
5413
|
exports.Dialog = Dialog;
|
|
5352
5414
|
exports.Divider = Divider;
|
|
5415
|
+
exports.EASING_EMPHASIZED = EASING_EMPHASIZED;
|
|
5416
|
+
exports.EASING_EMPHASIZED_ACCELERATE = EASING_EMPHASIZED_ACCELERATE;
|
|
5417
|
+
exports.EASING_EMPHASIZED_DECELERATE = EASING_EMPHASIZED_DECELERATE;
|
|
5418
|
+
exports.EASING_LINEAR = EASING_LINEAR;
|
|
5419
|
+
exports.EASING_STANDARD = EASING_STANDARD;
|
|
5420
|
+
exports.EASING_STANDARD_ACCELERATE = EASING_STANDARD_ACCELERATE;
|
|
5421
|
+
exports.EASING_STANDARD_DECELERATE = EASING_STANDARD_DECELERATE;
|
|
5353
5422
|
exports.FilledContainer = FilledContainer;
|
|
5354
5423
|
exports.FloatingLabel = FloatingLabel;
|
|
5355
5424
|
exports.HelperText = HelperText;
|
|
@@ -5362,6 +5431,9 @@ exports.MenuButton = MenuButton;
|
|
|
5362
5431
|
exports.MenuItem = MenuItem;
|
|
5363
5432
|
exports.MenuList = MenuList;
|
|
5364
5433
|
exports.MenuPopover = MenuPopover;
|
|
5434
|
+
exports.NavRailIndicator = NavRailIndicator;
|
|
5435
|
+
exports.NavRailItem = NavRailItem;
|
|
5436
|
+
exports.NavRailLabel = NavRailLabel;
|
|
5365
5437
|
exports.NotchedOutline = NotchedOutline;
|
|
5366
5438
|
exports.OutlinedContainer = OutlinedContainer;
|
|
5367
5439
|
exports.Paper = Paper;
|
|
@@ -5376,7 +5448,6 @@ exports.Skeleton = Skeleton;
|
|
|
5376
5448
|
exports.Snackbar = Snackbar;
|
|
5377
5449
|
exports.StackProvider = StackProvider;
|
|
5378
5450
|
exports.Switch = Switch;
|
|
5379
|
-
exports.THEME_LOCAL_STORAGE_KEY = THEME_LOCAL_STORAGE_KEY;
|
|
5380
5451
|
exports.Tab = Tab;
|
|
5381
5452
|
exports.TabIndicator = TabIndicator;
|
|
5382
5453
|
exports.TabIndicatorProvider = TabIndicatorProvider;
|
|
@@ -5396,12 +5467,11 @@ exports.base = base;
|
|
|
5396
5467
|
exports.getBackgroundOverlay = getBackgroundOverlay;
|
|
5397
5468
|
exports.getColorOverlay = getColorOverlay;
|
|
5398
5469
|
exports.getDarkThemeBackgroundOverlay = getDarkThemeBackgroundOverlay;
|
|
5399
|
-
exports.
|
|
5470
|
+
exports.mixColor = mixColor;
|
|
5400
5471
|
exports.rippleStyle = rippleStyle;
|
|
5401
5472
|
exports.sx = sx;
|
|
5402
5473
|
exports.theme = theme;
|
|
5403
5474
|
exports.useAppBarContext = useAppBarContext;
|
|
5404
|
-
exports.useColorMode = useColorMode;
|
|
5405
5475
|
exports.useRipple = useRipple;
|
|
5406
5476
|
exports.useRippleHandlers = useRippleHandlers;
|
|
5407
5477
|
exports.useRippleSurface = useRippleSurface;
|