@basic-ui/material 1.0.0-alpha.10 → 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 +1165 -1290
- package/build/cjs/index.js.map +1 -1
- package/build/esm/Alert/Alert.d.ts +1 -1
- package/build/esm/Alert/Alert.js +2 -1
- package/build/esm/Alert/Alert.js.map +1 -1
- package/build/esm/Alert/index.d.ts +0 -0
- package/build/esm/Alert/index.js +0 -0
- package/build/esm/Alert/index.js.map +1 -1
- package/build/esm/AppBar/AppBar.d.ts +1 -1
- package/build/esm/AppBar/AppBar.js +4 -3
- package/build/esm/AppBar/AppBar.js.map +1 -1
- package/build/esm/AppBar/AppBarButton.d.ts +1 -1
- package/build/esm/AppBar/AppBarButton.js +2 -1
- package/build/esm/AppBar/AppBarButton.js.map +1 -1
- package/build/esm/AppBar/context.d.ts +0 -0
- package/build/esm/AppBar/context.js +0 -0
- package/build/esm/AppBar/context.js.map +1 -1
- package/build/esm/AppBar/index.d.ts +0 -0
- package/build/esm/AppBar/index.js +0 -0
- package/build/esm/AppBar/index.js.map +1 -1
- package/build/esm/Badge/Badge.d.ts +1 -1
- package/build/esm/Badge/Badge.js +0 -0
- package/build/esm/Badge/Badge.js.map +1 -1
- package/build/esm/Badge/index.d.ts +0 -0
- package/build/esm/Badge/index.js +0 -0
- package/build/esm/Badge/index.js.map +1 -1
- package/build/esm/BaseLine/BaseLine.d.ts +0 -1
- package/build/esm/BaseLine/BaseLine.js +0 -0
- package/build/esm/BaseLine/BaseLine.js.map +1 -1
- package/build/esm/BaseLine/index.d.ts +0 -0
- package/build/esm/BaseLine/index.js +0 -0
- package/build/esm/BaseLine/index.js.map +1 -1
- package/build/esm/BottomSheet/BottomSheet.d.ts +1 -1
- package/build/esm/BottomSheet/BottomSheet.js +2 -1
- package/build/esm/BottomSheet/BottomSheet.js.map +1 -1
- package/build/esm/BottomSheet/BottomSheetSurface.d.ts +1 -1
- package/build/esm/BottomSheet/BottomSheetSurface.js +2 -1
- package/build/esm/BottomSheet/BottomSheetSurface.js.map +1 -1
- package/build/esm/BottomSheet/index.d.ts +0 -0
- package/build/esm/BottomSheet/index.js +0 -0
- package/build/esm/BottomSheet/index.js.map +1 -1
- package/build/esm/Box/Box.d.ts +0 -0
- package/build/esm/Box/Box.js +0 -0
- package/build/esm/Box/Box.js.map +1 -1
- package/build/esm/Box/index.d.ts +0 -0
- package/build/esm/Box/index.js +0 -0
- package/build/esm/Box/index.js.map +1 -1
- package/build/esm/Button/BaseButton.d.ts +1 -1
- package/build/esm/Button/BaseButton.js +5 -4
- package/build/esm/Button/BaseButton.js.map +1 -1
- package/build/esm/Button/Button.d.ts +1 -1
- package/build/esm/Button/Button.js +6 -5
- package/build/esm/Button/Button.js.map +1 -1
- package/build/esm/Button/ButtonGroup.d.ts +1 -1
- package/build/esm/Button/ButtonGroup.js +2 -1
- package/build/esm/Button/ButtonGroup.js.map +1 -1
- package/build/esm/Button/FilledButton.d.ts +1 -1
- package/build/esm/Button/FilledButton.js +0 -0
- package/build/esm/Button/FilledButton.js.map +1 -1
- package/build/esm/Button/FloatingActionButton.d.ts +0 -0
- package/build/esm/Button/FloatingActionButton.js +1 -1
- package/build/esm/Button/FloatingActionButton.js.map +1 -1
- package/build/esm/Button/IconButton.d.ts +0 -0
- 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 +0 -0
- package/build/esm/Button/OutlinedButton.js.map +1 -1
- package/build/esm/Button/TransparentButton.d.ts +1 -1
- package/build/esm/Button/TransparentButton.js +0 -0
- package/build/esm/Button/TransparentButton.js.map +1 -1
- package/build/esm/Button/context.d.ts +0 -0
- package/build/esm/Button/context.js +0 -0
- package/build/esm/Button/context.js.map +1 -1
- package/build/esm/Button/index.d.ts +0 -0
- package/build/esm/Button/index.js +0 -0
- package/build/esm/Button/index.js.map +1 -1
- package/build/esm/CheckBox/CheckBox.d.ts +1 -1
- package/build/esm/CheckBox/CheckBox.js +6 -4
- package/build/esm/CheckBox/CheckBox.js.map +1 -1
- package/build/esm/CheckBox/CheckBoxIcon.d.ts +1 -1
- package/build/esm/CheckBox/CheckBoxIcon.js +4 -3
- package/build/esm/CheckBox/CheckBoxIcon.js.map +1 -1
- package/build/esm/CheckBox/CheckPath.d.ts +0 -1
- package/build/esm/CheckBox/CheckPath.js +0 -0
- package/build/esm/CheckBox/CheckPath.js.map +1 -1
- package/build/esm/CheckBox/IndeterminatePath.d.ts +0 -1
- package/build/esm/CheckBox/IndeterminatePath.js +0 -0
- package/build/esm/CheckBox/IndeterminatePath.js.map +1 -1
- package/build/esm/CheckBox/index.d.ts +0 -0
- package/build/esm/CheckBox/index.js +0 -0
- package/build/esm/CheckBox/index.js.map +1 -1
- package/build/esm/Chip/ButtonChip.d.ts +1 -1
- package/build/esm/Chip/ButtonChip.js +4 -3
- package/build/esm/Chip/ButtonChip.js.map +1 -1
- package/build/esm/Chip/Chip.d.ts +0 -0
- package/build/esm/Chip/Chip.js +0 -0
- package/build/esm/Chip/Chip.js.map +1 -1
- package/build/esm/Chip/ChipBase.d.ts +1 -1
- package/build/esm/Chip/ChipBase.js +10 -9
- package/build/esm/Chip/ChipBase.js.map +1 -1
- package/build/esm/Chip/ChoiceChip.d.ts +1 -1
- package/build/esm/Chip/ChoiceChip.js +6 -4
- package/build/esm/Chip/ChoiceChip.js.map +1 -1
- package/build/esm/Chip/index.d.ts +0 -0
- package/build/esm/Chip/index.js +0 -0
- package/build/esm/Chip/index.js.map +1 -1
- package/build/esm/Combobox/Combobox.d.ts +7 -7
- package/build/esm/Combobox/Combobox.js +18 -10
- package/build/esm/Combobox/Combobox.js.map +1 -1
- package/build/esm/Combobox/index.d.ts +0 -0
- package/build/esm/Combobox/index.js +0 -0
- package/build/esm/Combobox/index.js.map +1 -1
- package/build/esm/Dialog/Dialog.d.ts +1 -1
- package/build/esm/Dialog/Dialog.js +6 -5
- package/build/esm/Dialog/Dialog.js.map +1 -1
- package/build/esm/Dialog/DialogBackdrop.d.ts +1 -1
- package/build/esm/Dialog/DialogBackdrop.js +2 -1
- package/build/esm/Dialog/DialogBackdrop.js.map +1 -1
- package/build/esm/Dialog/DialogContainer.d.ts +1 -1
- package/build/esm/Dialog/DialogContainer.js +2 -1
- package/build/esm/Dialog/DialogContainer.js.map +1 -1
- package/build/esm/Dialog/DialogSurface.d.ts +1 -1
- package/build/esm/Dialog/DialogSurface.js +4 -3
- package/build/esm/Dialog/DialogSurface.js.map +1 -1
- package/build/esm/Dialog/Scrim.d.ts +1 -1
- package/build/esm/Dialog/Scrim.js +2 -1
- 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 +3 -2
- package/build/esm/Dialog/useDialogAnimation.js.map +1 -1
- package/build/esm/Divider/Divider.d.ts +1 -1
- package/build/esm/Divider/Divider.js +7 -6
- package/build/esm/Divider/Divider.js.map +1 -1
- package/build/esm/Divider/index.d.ts +0 -0
- package/build/esm/Divider/index.js +0 -0
- package/build/esm/Divider/index.js.map +1 -1
- package/build/esm/FloatingLabel/FloatingLabel.d.ts +0 -0
- package/build/esm/FloatingLabel/FloatingLabel.js +4 -3
- package/build/esm/FloatingLabel/FloatingLabel.js.map +1 -1
- package/build/esm/FloatingLabel/index.d.ts +0 -0
- package/build/esm/FloatingLabel/index.js +0 -0
- package/build/esm/FloatingLabel/index.js.map +1 -1
- package/build/esm/LineRipple/LineRipple.d.ts +1 -1
- package/build/esm/LineRipple/LineRipple.js +3 -2
- package/build/esm/LineRipple/LineRipple.js.map +1 -1
- package/build/esm/LineRipple/index.d.ts +0 -0
- package/build/esm/LineRipple/index.js +0 -0
- package/build/esm/LineRipple/index.js.map +1 -1
- package/build/esm/Link/Link.d.ts +1 -1
- package/build/esm/Link/Link.js +2 -1
- package/build/esm/Link/Link.js.map +1 -1
- package/build/esm/Link/index.d.ts +0 -0
- package/build/esm/Link/index.js +0 -0
- package/build/esm/Link/index.js.map +1 -1
- package/build/esm/List/List.d.ts +1 -1
- package/build/esm/List/List.js +2 -1
- package/build/esm/List/List.js.map +1 -1
- package/build/esm/List/index.d.ts +0 -0
- package/build/esm/List/index.js +0 -0
- package/build/esm/List/index.js.map +1 -1
- package/build/esm/ListItem/ListItem.d.ts +1 -1
- package/build/esm/ListItem/ListItem.js +4 -3
- package/build/esm/ListItem/ListItem.js.map +1 -1
- package/build/esm/ListItem/ListItemText.d.ts +0 -0
- package/build/esm/ListItem/ListItemText.js +4 -3
- package/build/esm/ListItem/ListItemText.js.map +1 -1
- package/build/esm/ListItem/index.d.ts +0 -0
- package/build/esm/ListItem/index.js +0 -0
- package/build/esm/ListItem/index.js.map +1 -1
- package/build/esm/Menu/Menu.d.ts +4 -4
- package/build/esm/Menu/Menu.js +8 -4
- package/build/esm/Menu/Menu.js.map +1 -1
- package/build/esm/Menu/animation.d.ts +0 -0
- package/build/esm/Menu/animation.js +0 -0
- package/build/esm/Menu/animation.js.map +1 -1
- package/build/esm/Menu/index.d.ts +0 -0
- package/build/esm/Menu/index.js +0 -0
- package/build/esm/Menu/index.js.map +1 -1
- package/build/esm/NavRail/NavRailItem.d.ts +3 -3
- package/build/esm/NavRail/NavRailItem.js +15 -12
- package/build/esm/NavRail/NavRailItem.js.map +1 -1
- package/build/esm/NavRail/index.d.ts +0 -0
- package/build/esm/NavRail/index.js +0 -0
- package/build/esm/NavRail/index.js.map +1 -1
- package/build/esm/NotchedOutline/NotchedOutline.d.ts +0 -0
- package/build/esm/NotchedOutline/NotchedOutline.js +4 -3
- package/build/esm/NotchedOutline/NotchedOutline.js.map +1 -1
- package/build/esm/NotchedOutline/context.d.ts +0 -0
- package/build/esm/NotchedOutline/context.js +0 -0
- package/build/esm/NotchedOutline/context.js.map +1 -1
- package/build/esm/NotchedOutline/index.d.ts +0 -0
- package/build/esm/NotchedOutline/index.js +0 -0
- package/build/esm/NotchedOutline/index.js.map +1 -1
- package/build/esm/NotchedOutline/styledComponents.d.ts +0 -27
- package/build/esm/NotchedOutline/styledComponents.js +0 -0
- package/build/esm/NotchedOutline/styledComponents.js.map +1 -1
- package/build/esm/Paper/Paper.d.ts +1 -1
- package/build/esm/Paper/Paper.js +6 -5
- package/build/esm/Paper/Paper.js.map +1 -1
- package/build/esm/Paper/index.d.ts +0 -0
- package/build/esm/Paper/index.js +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 +12 -13
- package/build/esm/ProgressSpinner/ProgressSpinner.js.map +1 -1
- package/build/esm/ProgressSpinner/index.d.ts +0 -0
- package/build/esm/ProgressSpinner/index.js +0 -0
- package/build/esm/ProgressSpinner/index.js.map +1 -1
- package/build/esm/RadioButton/RadioButton.d.ts +0 -0
- package/build/esm/RadioButton/RadioButton.js +4 -2
- package/build/esm/RadioButton/RadioButton.js.map +1 -1
- package/build/esm/RadioButton/RadioButtonIcon.d.ts +0 -0
- package/build/esm/RadioButton/RadioButtonIcon.js +4 -3
- package/build/esm/RadioButton/RadioButtonIcon.js.map +1 -1
- package/build/esm/RadioButton/RadioGroup.d.ts +1 -1
- package/build/esm/RadioButton/RadioGroup.js +2 -1
- package/build/esm/RadioButton/RadioGroup.js.map +1 -1
- package/build/esm/RadioButton/index.d.ts +0 -0
- package/build/esm/RadioButton/index.js +0 -0
- package/build/esm/RadioButton/index.js.map +1 -1
- package/build/esm/Ripple/Ripple.d.ts +0 -0
- package/build/esm/Ripple/Ripple.js +0 -0
- package/build/esm/Ripple/Ripple.js.map +1 -1
- package/build/esm/Ripple/RippleBox.d.ts +0 -0
- package/build/esm/Ripple/RippleBox.js +7 -5
- package/build/esm/Ripple/RippleBox.js.map +1 -1
- package/build/esm/Ripple/constants.d.ts +0 -0
- package/build/esm/Ripple/constants.js +0 -0
- package/build/esm/Ripple/constants.js.map +1 -1
- package/build/esm/Ripple/index.d.ts +0 -0
- package/build/esm/Ripple/index.js +0 -0
- package/build/esm/Ripple/index.js.map +1 -1
- package/build/esm/Ripple/keyframes.d.ts +0 -0
- package/build/esm/Ripple/keyframes.js +0 -0
- package/build/esm/Ripple/keyframes.js.map +1 -1
- package/build/esm/Ripple/useRipple.d.ts +0 -0
- package/build/esm/Ripple/useRipple.js +2 -2
- package/build/esm/Ripple/useRipple.js.map +1 -1
- package/build/esm/Ripple/useRippleHandlers.d.ts +0 -0
- package/build/esm/Ripple/useRippleHandlers.js +2 -1
- package/build/esm/Ripple/useRippleHandlers.js.map +1 -1
- package/build/esm/Ripple/useRippleSurface.d.ts +0 -0
- package/build/esm/Ripple/useRippleSurface.js +6 -5
- package/build/esm/Ripple/useRippleSurface.js.map +1 -1
- package/build/esm/Select/Select.d.ts +1 -1
- package/build/esm/Select/Select.js +5 -4
- package/build/esm/Select/Select.js.map +1 -1
- package/build/esm/Select/SelectIcon.d.ts +1 -1
- package/build/esm/Select/SelectIcon.js +4 -3
- package/build/esm/Select/SelectIcon.js.map +1 -1
- package/build/esm/Select/context.d.ts +0 -0
- package/build/esm/Select/context.js +0 -0
- package/build/esm/Select/context.js.map +1 -1
- package/build/esm/Select/defaultRender.d.ts +1 -1
- package/build/esm/Select/defaultRender.js +0 -0
- package/build/esm/Select/defaultRender.js.map +1 -1
- package/build/esm/Select/index.d.ts +0 -0
- package/build/esm/Select/index.js +0 -0
- package/build/esm/Select/index.js.map +1 -1
- package/build/esm/Select/styledComponents.d.ts +0 -0
- package/build/esm/Select/styledComponents.js +8 -5
- package/build/esm/Select/styledComponents.js.map +1 -1
- package/build/esm/SelectItem/SelectItem.d.ts +1 -1
- package/build/esm/SelectItem/SelectItem.js +6 -5
- package/build/esm/SelectItem/SelectItem.js.map +1 -1
- package/build/esm/SelectItem/index.d.ts +0 -0
- package/build/esm/SelectItem/index.js +0 -0
- package/build/esm/SelectItem/index.js.map +1 -1
- package/build/esm/SelectionControl/SelectionControlLabel.d.ts +1 -1
- package/build/esm/SelectionControl/SelectionControlLabel.js +2 -1
- package/build/esm/SelectionControl/SelectionControlLabel.js.map +1 -1
- package/build/esm/SelectionControl/SelectionControlText.d.ts +1 -1
- package/build/esm/SelectionControl/SelectionControlText.js +4 -3
- package/build/esm/SelectionControl/SelectionControlText.js.map +1 -1
- package/build/esm/SelectionControl/index.d.ts +0 -0
- package/build/esm/SelectionControl/index.js +0 -0
- package/build/esm/SelectionControl/index.js.map +1 -1
- package/build/esm/Skeleton/DelayAppearance.d.ts +1 -1
- package/build/esm/Skeleton/DelayAppearance.js +2 -1
- package/build/esm/Skeleton/DelayAppearance.js.map +1 -1
- package/build/esm/Skeleton/Skeleton.d.ts +1 -1
- package/build/esm/Skeleton/Skeleton.js +4 -3
- package/build/esm/Skeleton/Skeleton.js.map +1 -1
- package/build/esm/Skeleton/animation.d.ts +0 -0
- package/build/esm/Skeleton/animation.js +0 -0
- package/build/esm/Skeleton/animation.js.map +1 -1
- package/build/esm/Skeleton/index.d.ts +0 -0
- package/build/esm/Skeleton/index.js +0 -0
- package/build/esm/Skeleton/index.js.map +1 -1
- package/build/esm/Snackbar/Snackbar.d.ts +1 -1
- package/build/esm/Snackbar/Snackbar.js +8 -7
- package/build/esm/Snackbar/Snackbar.js.map +1 -1
- package/build/esm/Snackbar/Stack.d.ts +0 -0
- package/build/esm/Snackbar/Stack.js +4 -2
- package/build/esm/Snackbar/Stack.js.map +1 -1
- package/build/esm/Snackbar/index.d.ts +0 -0
- package/build/esm/Snackbar/index.js +0 -0
- package/build/esm/Snackbar/index.js.map +1 -1
- package/build/esm/Snackbar/useSnackbarAnimation.d.ts +0 -0
- package/build/esm/Snackbar/useSnackbarAnimation.js +6 -6
- package/build/esm/Snackbar/useSnackbarAnimation.js.map +1 -1
- package/build/esm/Switch/Switch.d.ts +1 -1
- package/build/esm/Switch/Switch.js +6 -4
- package/build/esm/Switch/Switch.js.map +1 -1
- package/build/esm/Switch/index.d.ts +0 -0
- package/build/esm/Switch/index.js +0 -0
- package/build/esm/Switch/index.js.map +1 -1
- package/build/esm/Switch/styledComponents.d.ts +0 -1
- package/build/esm/Switch/styledComponents.js +6 -3
- package/build/esm/Switch/styledComponents.js.map +1 -1
- package/build/esm/Tab/Tab.d.ts +1 -1
- package/build/esm/Tab/Tab.js +6 -4
- package/build/esm/Tab/Tab.js.map +1 -1
- package/build/esm/Tab/TabList.d.ts +1 -1
- package/build/esm/Tab/TabList.js +4 -2
- package/build/esm/Tab/TabList.js.map +1 -1
- package/build/esm/Tab/TabPanel.d.ts +1 -1
- package/build/esm/Tab/TabPanel.js +4 -2
- package/build/esm/Tab/TabPanel.js.map +1 -1
- package/build/esm/Tab/TabPanels.d.ts +0 -0
- package/build/esm/Tab/TabPanels.js +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 +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 +0 -0
- package/build/esm/Tab/context.js.map +1 -1
- package/build/esm/Tab/index.d.ts +0 -0
- package/build/esm/Tab/index.js +0 -0
- package/build/esm/Tab/index.js.map +1 -1
- package/build/esm/TabIndicator/TabIndicator.d.ts +1 -1
- package/build/esm/TabIndicator/TabIndicator.js +2 -1
- package/build/esm/TabIndicator/TabIndicator.js.map +1 -1
- package/build/esm/TabIndicator/context.d.ts +0 -0
- package/build/esm/TabIndicator/context.js +0 -0
- package/build/esm/TabIndicator/context.js.map +1 -1
- package/build/esm/TabIndicator/index.d.ts +0 -0
- package/build/esm/TabIndicator/index.js +0 -0
- package/build/esm/TabIndicator/index.js.map +1 -1
- package/build/esm/Table/Table.d.ts +1 -1
- package/build/esm/Table/Table.js +4 -3
- package/build/esm/Table/Table.js.map +1 -1
- package/build/esm/Table/TableBody.d.ts +1 -1
- package/build/esm/Table/TableBody.js +4 -3
- package/build/esm/Table/TableBody.js.map +1 -1
- package/build/esm/Table/TableCell.d.ts +1 -1
- package/build/esm/Table/TableCell.js +4 -3
- package/build/esm/Table/TableCell.js.map +1 -1
- package/build/esm/Table/TableHead.d.ts +1 -1
- package/build/esm/Table/TableHead.js +4 -3
- package/build/esm/Table/TableHead.js.map +1 -1
- package/build/esm/Table/TableRow.d.ts +1 -1
- package/build/esm/Table/TableRow.js +4 -3
- package/build/esm/Table/TableRow.js.map +1 -1
- package/build/esm/Table/context.d.ts +0 -0
- package/build/esm/Table/context.js +0 -0
- package/build/esm/Table/context.js.map +1 -1
- package/build/esm/Table/index.d.ts +0 -0
- package/build/esm/Table/index.js +0 -0
- package/build/esm/Table/index.js.map +1 -1
- package/build/esm/Text/LoremIpsum.d.ts +0 -0
- package/build/esm/Text/LoremIpsum.js +0 -0
- package/build/esm/Text/LoremIpsum.js.map +1 -1
- package/build/esm/Text/Text.d.ts +1 -1
- package/build/esm/Text/Text.js +2 -1
- package/build/esm/Text/Text.js.map +1 -1
- package/build/esm/Text/index.d.ts +0 -0
- package/build/esm/Text/index.js +0 -0
- package/build/esm/Text/index.js.map +1 -1
- package/build/esm/TextField/FilledContainer.d.ts +1 -1
- package/build/esm/TextField/FilledContainer.js +6 -5
- package/build/esm/TextField/FilledContainer.js.map +1 -1
- package/build/esm/TextField/HelperText.d.ts +1 -1
- package/build/esm/TextField/HelperText.js +4 -3
- package/build/esm/TextField/HelperText.js.map +1 -1
- package/build/esm/TextField/IconContainer.d.ts +0 -0
- package/build/esm/TextField/IconContainer.js +0 -0
- package/build/esm/TextField/IconContainer.js.map +1 -1
- package/build/esm/TextField/Input.d.ts +1 -1
- package/build/esm/TextField/Input.js +9 -8
- package/build/esm/TextField/Input.js.map +1 -1
- package/build/esm/TextField/OutlinedContainer.d.ts +1 -1
- package/build/esm/TextField/OutlinedContainer.js +5 -4
- package/build/esm/TextField/OutlinedContainer.js.map +1 -1
- package/build/esm/TextField/TextField.d.ts +1 -1
- package/build/esm/TextField/TextField.js +4 -3
- package/build/esm/TextField/TextField.js.map +1 -1
- package/build/esm/TextField/consts.d.ts +0 -0
- package/build/esm/TextField/consts.js +0 -0
- package/build/esm/TextField/consts.js.map +1 -1
- package/build/esm/TextField/index.d.ts +0 -0
- package/build/esm/TextField/index.js +0 -0
- package/build/esm/TextField/index.js.map +1 -1
- package/build/esm/ThemeExplorer/ColorPicker.d.ts +0 -0
- package/build/esm/ThemeExplorer/ColorPicker.js +4 -3
- package/build/esm/ThemeExplorer/ColorPicker.js.map +1 -1
- package/build/esm/ThemeExplorer/TextFieldColorPicker.d.ts +0 -0
- package/build/esm/ThemeExplorer/TextFieldColorPicker.js +4 -3
- 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 +0 -0
- package/build/esm/ThemeExplorer/ThemeColors.js +0 -0
- package/build/esm/ThemeExplorer/ThemeColors.js.map +1 -1
- package/build/esm/ThemeExplorer/components.d.ts +1 -1
- package/build/esm/ThemeExplorer/components.js +24 -21
- 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 +0 -0
- package/build/esm/ThemeExplorer/makeColorScheme.js +1 -2
- package/build/esm/ThemeExplorer/makeColorScheme.js.map +1 -1
- package/build/esm/ThemeExplorer/useDeferredColor.d.ts +0 -0
- package/build/esm/ThemeExplorer/useDeferredColor.js +5 -7
- package/build/esm/ThemeExplorer/useDeferredColor.js.map +1 -1
- package/build/esm/ThemeExplorer/useLocalStorageCachedState.d.ts +1 -1
- package/build/esm/ThemeExplorer/useLocalStorageCachedState.js +1 -1
- package/build/esm/ThemeExplorer/useLocalStorageCachedState.js.map +1 -1
- package/build/esm/Tooltip/Tooltip.d.ts +1 -1
- package/build/esm/Tooltip/Tooltip.js +2 -1
- package/build/esm/Tooltip/Tooltip.js.map +1 -1
- package/build/esm/Tooltip/index.d.ts +0 -0
- package/build/esm/Tooltip/index.js +0 -0
- package/build/esm/Tooltip/index.js.map +1 -1
- package/build/esm/color.d.ts +0 -0
- package/build/esm/color.js +1 -1
- package/build/esm/color.js.map +1 -1
- package/build/esm/css.d.ts +0 -0
- package/build/esm/css.js +0 -0
- package/build/esm/css.js.map +1 -1
- package/build/esm/hooks/useAnimation.d.ts +0 -0
- package/build/esm/hooks/useAnimation.js +3 -3
- package/build/esm/hooks/useAnimation.js.map +1 -1
- package/build/esm/index.d.ts +0 -1
- package/build/esm/index.js +0 -1
- package/build/esm/index.js.map +1 -1
- package/build/esm/motion.d.ts +0 -0
- package/build/esm/motion.js +0 -0
- package/build/esm/motion.js.map +1 -1
- package/build/esm/theme/index.d.ts +0 -0
- package/build/esm/theme/index.js +0 -0
- package/build/esm/theme/index.js.map +1 -1
- package/build/esm/theme/theme.d.ts +0 -27
- package/build/esm/theme/theme.js +4 -31
- 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 +0 -0
- 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 +0 -0
- package/build/esm/theme/typography-roboto.js.map +1 -1
- package/build/esm/theme/useTheme.d.ts +557 -1
- package/build/esm/theme/useTheme.js +0 -0
- package/build/esm/theme/useTheme.js.map +1 -1
- package/build/tsconfig-build.tsbuildinfo +1 -1
- package/package.json +5 -5
- package/src/CheckBox/CheckBox.story.tsx +5 -4
- package/src/ProgressSpinner/ProgressSpinner.tsx +7 -7
- package/src/Snackbar/Snackbar.tsx +3 -3
- package/src/ThemeExplorer/ThemeBuilder.story.tsx +1 -163
- package/src/ThemeExplorer/ThemeBuilder.tsx +198 -0
- package/src/ThemeExplorer/components.tsx +24 -21
- package/src/ThemeExplorer/index.ts +1 -0
- package/src/ThemeExplorer/makeColorScheme.tsx +1 -1
- package/src/ThemeExplorer/useDeferredColor.tsx +3 -4
- package/src/ThemeExplorer/useLocalStorageCachedState.ts +2 -2
- package/src/Tooltip/Tooltip.story.tsx +1 -1
- package/src/color.ts +1 -1
- package/src/index.ts +0 -1
- package/src/theme/theme.ts +4 -31
- package/build/esm/ColorMode/ColorModeProvider.d.ts +0 -7
- package/build/esm/ColorMode/ColorModeProvider.js +0 -91
- 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 -58
- 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 -97
- 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/build/cjs/index.js
CHANGED
|
@@ -2,26 +2,23 @@
|
|
|
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);
|
|
25
22
|
|
|
26
23
|
const EASING_EMPHASIZED = 'cubic-bezier(0.2, 0, 0, 1)';
|
|
27
24
|
const EASING_EMPHASIZED_ACCELERATE = 'cubic-bezier(0.3, 0, 0.8, 0.15)';
|
|
@@ -122,40 +119,13 @@ const theme = {
|
|
|
122
119
|
full: "6249.9375rem",
|
|
123
120
|
circle: '100%'
|
|
124
121
|
},
|
|
125
|
-
shadowsOriginal: {
|
|
126
|
-
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)',
|
|
127
|
-
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)',
|
|
128
|
-
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)',
|
|
129
|
-
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)',
|
|
130
|
-
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)',
|
|
131
|
-
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)',
|
|
132
|
-
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)',
|
|
133
|
-
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)',
|
|
134
|
-
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)',
|
|
135
|
-
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)',
|
|
136
|
-
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)',
|
|
137
|
-
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)',
|
|
138
|
-
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)',
|
|
139
|
-
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)',
|
|
140
|
-
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)',
|
|
141
|
-
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)',
|
|
142
|
-
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)',
|
|
143
|
-
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)',
|
|
144
|
-
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)',
|
|
145
|
-
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)',
|
|
146
|
-
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)',
|
|
147
|
-
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)',
|
|
148
|
-
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)',
|
|
149
|
-
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)',
|
|
150
|
-
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)'
|
|
151
|
-
},
|
|
152
122
|
shadows: {
|
|
153
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)',
|
|
154
124
|
1: '0 1px 2px rgba(0,0,0,0.3),0 1px 3px 1px rgba(0,0,0,0.15)',
|
|
155
125
|
2: '0 1px 2px rgba(0,0,0,0.3),0 2px 6px 2px rgba(0,0,0,0.15)',
|
|
156
|
-
3: '0
|
|
157
|
-
4: '0
|
|
158
|
-
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)'
|
|
159
129
|
},
|
|
160
130
|
fonts: {
|
|
161
131
|
body: 'Roboto, sans-serif',
|
|
@@ -506,7 +476,7 @@ const theme = {
|
|
|
506
476
|
borderRadius: 'extra-large'
|
|
507
477
|
}
|
|
508
478
|
},
|
|
509
|
-
backgroundColorOverlay:
|
|
479
|
+
backgroundColorOverlay: 3
|
|
510
480
|
},
|
|
511
481
|
paper: {
|
|
512
482
|
overlays: {
|
|
@@ -571,154 +541,23 @@ const variant = ({
|
|
|
571
541
|
tx = 'variants'
|
|
572
542
|
}) => css.css(css.get(theme, tx + '.' + variant, css.get(theme, variant)))(theme);
|
|
573
543
|
|
|
574
|
-
const BoxBase = /*#__PURE__*/_styled__default[
|
|
575
|
-
shouldForwardProp: shouldForwardProp__default[
|
|
544
|
+
const BoxBase = /*#__PURE__*/_styled__default["default"]('div', process.env.NODE_ENV === "production" ? {
|
|
545
|
+
shouldForwardProp: shouldForwardProp__default["default"],
|
|
576
546
|
target: "e25ivq30"
|
|
577
547
|
} : {
|
|
578
|
-
shouldForwardProp: shouldForwardProp__default[
|
|
548
|
+
shouldForwardProp: shouldForwardProp__default["default"],
|
|
579
549
|
target: "e25ivq30",
|
|
580
550
|
label: "BoxBase"
|
|
581
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= */");
|
|
582
552
|
|
|
583
553
|
const Box = /*#__PURE__*/react$1.forwardRef(function Box(props, forwardedRef) {
|
|
584
554
|
const theme = useTheme();
|
|
585
|
-
return /*#__PURE__*/jsxRuntime.jsx(BoxBase,
|
|
555
|
+
return /*#__PURE__*/jsxRuntime.jsx(BoxBase, {
|
|
586
556
|
ref: forwardedRef,
|
|
587
|
-
theme: theme
|
|
588
|
-
|
|
589
|
-
});
|
|
590
|
-
|
|
591
|
-
const ColorModeContext = /*#__PURE__*/react$1.createContext({
|
|
592
|
-
colorMode: 'default',
|
|
593
|
-
setColorMode: () => {
|
|
594
|
-
/*noop*/
|
|
595
|
-
}
|
|
596
|
-
});
|
|
597
|
-
const useColorMode = () => {
|
|
598
|
-
return react$1.useContext(ColorModeContext);
|
|
599
|
-
};
|
|
600
|
-
|
|
601
|
-
const THEME_LOCAL_STORAGE_KEY = 'basic-ui-theme';
|
|
602
|
-
const DEFAULT_THEME_CLASS = `css-${hash__default['default']('basic-ui-default-theme')}`;
|
|
603
|
-
const DARK_THEME_CLASS = `css-${hash__default['default']('basic-ui-dark-theme')}`;
|
|
604
|
-
|
|
605
|
-
function saveColorMode(colorMode, saveToStorage = true) {
|
|
606
|
-
if (saveToStorage) {
|
|
607
|
-
window.localStorage.setItem(THEME_LOCAL_STORAGE_KEY, colorMode || 'default');
|
|
608
|
-
}
|
|
609
|
-
|
|
610
|
-
const [add, remove] = colorMode === 'dark' ? [DARK_THEME_CLASS, DEFAULT_THEME_CLASS] : [DEFAULT_THEME_CLASS, DARK_THEME_CLASS];
|
|
611
|
-
|
|
612
|
-
if (!document.body.classList.contains(remove)) {
|
|
613
|
-
document.body.classList.add(add);
|
|
614
|
-
return;
|
|
615
|
-
}
|
|
616
|
-
|
|
617
|
-
document.body.classList.replace(remove, add);
|
|
618
|
-
}
|
|
619
|
-
|
|
620
|
-
const ColorModeProvider = props => {
|
|
621
|
-
const {
|
|
622
|
-
children,
|
|
623
|
-
styles
|
|
624
|
-
} = props;
|
|
625
|
-
const [colorMode, _setColorMode] = react$1.useState();
|
|
626
|
-
const setColorMode = react$1.useCallback((colorMode, saveToStorage = true) => {
|
|
627
|
-
saveColorMode(colorMode || 'default', saveToStorage);
|
|
628
|
-
|
|
629
|
-
_setColorMode(colorMode);
|
|
630
|
-
}, []);
|
|
631
|
-
const colorModeObject = react$1.useMemo(() => ({
|
|
632
|
-
colorMode,
|
|
633
|
-
setColorMode
|
|
634
|
-
}), [colorMode, setColorMode]);
|
|
635
|
-
react$1.useEffect(() => {
|
|
636
|
-
_setColorMode(document.body.classList.contains(DARK_THEME_CLASS) ? 'dark' : 'default');
|
|
637
|
-
|
|
638
|
-
const darkQuery = window.matchMedia('(prefers-color-scheme: dark)');
|
|
639
|
-
darkQuery == null ? void 0 : darkQuery.addListener(e => {
|
|
640
|
-
setColorMode(e.matches ? 'dark' : 'default', false);
|
|
641
|
-
});
|
|
642
|
-
}, [setColorMode]);
|
|
643
|
-
const globalStyles = react$1.useMemo(() => {
|
|
644
|
-
const ret = {
|
|
645
|
-
body: _extends__default['default']({
|
|
646
|
-
colorScheme: 'light'
|
|
647
|
-
}, styles['default'] || {})
|
|
648
|
-
};
|
|
649
|
-
ret[`.${DEFAULT_THEME_CLASS}`] = _extends__default['default']({
|
|
650
|
-
colorScheme: 'light'
|
|
651
|
-
}, styles['default'] || {});
|
|
652
|
-
|
|
653
|
-
for (const key in styles) {
|
|
654
|
-
if (key === 'default') {
|
|
655
|
-
continue;
|
|
656
|
-
}
|
|
657
|
-
|
|
658
|
-
ret[`.${DARK_THEME_CLASS}`] = _extends__default['default']({
|
|
659
|
-
colorScheme: 'dark'
|
|
660
|
-
}, styles[key]);
|
|
661
|
-
}
|
|
662
|
-
|
|
663
|
-
return ret;
|
|
664
|
-
}, [styles]);
|
|
665
|
-
return /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
666
|
-
children: [/*#__PURE__*/jsxRuntime.jsx(react.Global, {
|
|
667
|
-
styles: globalStyles
|
|
668
|
-
}), /*#__PURE__*/jsxRuntime.jsx(ColorModeContext.Provider, {
|
|
669
|
-
value: colorModeObject,
|
|
670
|
-
children: children
|
|
671
|
-
})]
|
|
672
|
-
});
|
|
673
|
-
};
|
|
674
|
-
|
|
675
|
-
const toVarName = (key, suffix = '') => `--${key}${suffix ? `--${suffix}` : ''}`;
|
|
676
|
-
|
|
677
|
-
const toVarValue = (key, value, suffix = '') => `var(${toVarName(key, suffix)}, ${value})`;
|
|
678
|
-
|
|
679
|
-
function themify(obj, vars, root = '') {
|
|
680
|
-
Object.keys(obj).forEach(key => {
|
|
681
|
-
if (key === 'modes') {
|
|
682
|
-
return;
|
|
683
|
-
}
|
|
684
|
-
|
|
685
|
-
const value = obj[key];
|
|
686
|
-
const varName = root.length > 0 ? `${root}-${key}` : `${key}`;
|
|
687
|
-
|
|
688
|
-
if (typeof value === 'object') {
|
|
689
|
-
obj[key] = themify(obj[key], vars, varName);
|
|
690
|
-
} else {
|
|
691
|
-
vars[toVarName(varName)] = value;
|
|
692
|
-
obj[key] = toVarValue(varName, value);
|
|
693
|
-
|
|
694
|
-
try {
|
|
695
|
-
const rgb = polished.parseToRgb(value);
|
|
696
|
-
vars[toVarName(varName, 'rgb')] = `${rgb.red},${rgb.green},${rgb.blue}`;
|
|
697
|
-
obj[key + '_rgb'] = toVarValue(varName, value, 'rgb');
|
|
698
|
-
} catch (err) {// do nothing
|
|
699
|
-
}
|
|
700
|
-
}
|
|
701
|
-
});
|
|
702
|
-
return obj;
|
|
703
|
-
}
|
|
704
|
-
|
|
705
|
-
function getTheme(theme) {
|
|
706
|
-
const colorModes = {
|
|
707
|
-
default: {}
|
|
708
|
-
};
|
|
709
|
-
const themeClone = JSON.parse(JSON.stringify(theme)); // default
|
|
710
|
-
|
|
711
|
-
themeClone.colors = themify(themeClone.colors, colorModes.default, ''); // other modes
|
|
712
|
-
|
|
713
|
-
Object.keys(themeClone.colors.modes).forEach(key => {
|
|
714
|
-
colorModes[key] = {};
|
|
715
|
-
themeClone.colors.modes[key] = themify(themeClone.colors.modes[key], colorModes[key], '');
|
|
557
|
+
theme: theme,
|
|
558
|
+
...props
|
|
716
559
|
});
|
|
717
|
-
|
|
718
|
-
theme: themeClone,
|
|
719
|
-
colorModes
|
|
720
|
-
};
|
|
721
|
-
}
|
|
560
|
+
});
|
|
722
561
|
|
|
723
562
|
const alpha = (colorString, alphaValue) => theme => {
|
|
724
563
|
const color = css.get(theme, 'colors.' + colorString, colorString);
|
|
@@ -757,7 +596,8 @@ function getDarkThemeBackgroundOverlay(theme, backgroundOverlay, overlayColor =
|
|
|
757
596
|
}
|
|
758
597
|
|
|
759
598
|
return {
|
|
760
|
-
[`.${DARK_THEME_CLASS} &, &.${DARK_THEME_CLASS}`]:
|
|
599
|
+
[`.${dynamicTheme.DARK_THEME_CLASS} &, &.${dynamicTheme.DARK_THEME_CLASS}`]: { ...getBackgroundOverlay(theme, backgroundOverlay, overlayColor)
|
|
600
|
+
}
|
|
761
601
|
};
|
|
762
602
|
}
|
|
763
603
|
|
|
@@ -768,27 +608,30 @@ const Paper = /*#__PURE__*/react$1.forwardRef(function Paper(props, forwardedRef
|
|
|
768
608
|
backgroundOverlay,
|
|
769
609
|
darkThemeBackgroundOverlay,
|
|
770
610
|
__css = {},
|
|
771
|
-
children
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
611
|
+
children,
|
|
612
|
+
...otherProps
|
|
613
|
+
} = props;
|
|
775
614
|
const theme = useTheme();
|
|
776
|
-
return /*#__PURE__*/jsxRuntime.jsx(Box,
|
|
615
|
+
return /*#__PURE__*/jsxRuntime.jsx(Box, {
|
|
777
616
|
ref: forwardedRef,
|
|
778
|
-
__css:
|
|
617
|
+
__css: {
|
|
779
618
|
backgroundColor: 'surface',
|
|
780
619
|
boxShadow: String(elevation),
|
|
781
620
|
':focus': {
|
|
782
621
|
outline: 'none'
|
|
783
|
-
}
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
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,
|
|
790
633
|
children: children
|
|
791
|
-
})
|
|
634
|
+
});
|
|
792
635
|
});
|
|
793
636
|
|
|
794
637
|
const AppBar = /*#__PURE__*/react$1.forwardRef(function AppBar(props, forwardedRef) {
|
|
@@ -796,10 +639,9 @@ const AppBar = /*#__PURE__*/react$1.forwardRef(function AppBar(props, forwardedR
|
|
|
796
639
|
elevation: elevationProp = 'default',
|
|
797
640
|
variant: variantProp = 'default',
|
|
798
641
|
size = 'default',
|
|
799
|
-
__css = {}
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
642
|
+
__css = {},
|
|
643
|
+
...otherProps
|
|
644
|
+
} = props;
|
|
803
645
|
const [elevation, setElevation] = react$1.useState(elevationProp);
|
|
804
646
|
const theme = useTheme();
|
|
805
647
|
react$1.useEffect(() => {
|
|
@@ -827,38 +669,40 @@ const AppBar = /*#__PURE__*/react$1.forwardRef(function AppBar(props, forwardedR
|
|
|
827
669
|
variant: variantProp,
|
|
828
670
|
size
|
|
829
671
|
},
|
|
830
|
-
children: /*#__PURE__*/jsxRuntime.jsx(Paper,
|
|
672
|
+
children: /*#__PURE__*/jsxRuntime.jsx(Paper, {
|
|
831
673
|
ref: forwardedRef,
|
|
832
674
|
theme: theme,
|
|
833
675
|
variant: "square",
|
|
834
676
|
backgroundOverlay: elevation === 'elevated' && variantProp === 'default' ? css.get(theme, `appbar.elevations.${elevation}.boxShadow`, 2) : 0,
|
|
835
677
|
color: variantProp === 'default' || variantProp === 'transparent' ? 'on.surface' : `on.${variantProp}`,
|
|
836
|
-
__css:
|
|
678
|
+
__css: {
|
|
837
679
|
boxSizing: 'border-box',
|
|
838
680
|
display: 'inline-flex',
|
|
839
681
|
alignItems: 'center',
|
|
840
682
|
width: '100%',
|
|
841
683
|
overflow: 'hidden',
|
|
842
|
-
transition: `box-shadow .28s ${EASING_STANDARD}
|
|
843
|
-
|
|
844
|
-
|
|
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
|
+
})
|
|
845
691
|
});
|
|
846
692
|
});
|
|
847
693
|
|
|
848
694
|
const BaseButton = /*#__PURE__*/react$1.forwardRef((props, ref) => {
|
|
849
695
|
const theme = react.useTheme();
|
|
850
|
-
|
|
851
696
|
const {
|
|
852
697
|
__css,
|
|
853
698
|
variant: variantProp,
|
|
854
|
-
elevation
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
return /*#__PURE__*/jsxRuntime.jsx(Box, _extends__default['default']({
|
|
699
|
+
elevation,
|
|
700
|
+
...otherProps
|
|
701
|
+
} = props;
|
|
702
|
+
return /*#__PURE__*/jsxRuntime.jsx(Box, {
|
|
859
703
|
as: "button",
|
|
860
704
|
ref: ref,
|
|
861
|
-
__css:
|
|
705
|
+
__css: {
|
|
862
706
|
boxSizing: 'border-box',
|
|
863
707
|
position: 'relative',
|
|
864
708
|
appearance: 'none',
|
|
@@ -877,30 +721,34 @@ const BaseButton = /*#__PURE__*/react$1.forwardRef((props, ref) => {
|
|
|
877
721
|
minWidth: 'auto',
|
|
878
722
|
'&::-moz-focus-inner': {
|
|
879
723
|
border: 0
|
|
880
|
-
}
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
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
|
+
});
|
|
901
749
|
});
|
|
902
750
|
|
|
903
|
-
const TransparentButton = /*#__PURE__*/_styled__default[
|
|
751
|
+
const TransparentButton = /*#__PURE__*/_styled__default["default"](BaseButton, process.env.NODE_ENV === "production" ? {
|
|
904
752
|
target: "e18rm4q20"
|
|
905
753
|
} : {
|
|
906
754
|
target: "e18rm4q20",
|
|
@@ -954,7 +802,7 @@ function getRippleProperties$3(theme) {
|
|
|
954
802
|
};
|
|
955
803
|
}
|
|
956
804
|
|
|
957
|
-
const FilledButton = /*#__PURE__*/_styled__default[
|
|
805
|
+
const FilledButton = /*#__PURE__*/_styled__default["default"](BaseButton, process.env.NODE_ENV === "production" ? {
|
|
958
806
|
target: "ex8w9nt0"
|
|
959
807
|
} : {
|
|
960
808
|
target: "ex8w9nt0",
|
|
@@ -1018,12 +866,12 @@ function getRippleProperties$2(theme) {
|
|
|
1018
866
|
}
|
|
1019
867
|
|
|
1020
868
|
function getRippleProperties$1(theme) {
|
|
1021
|
-
return
|
|
869
|
+
return { ...getRippleProperties$2(theme),
|
|
1022
870
|
rippleEnabled: true
|
|
1023
|
-
}
|
|
871
|
+
};
|
|
1024
872
|
}
|
|
1025
873
|
|
|
1026
|
-
const OutlinedButton = /*#__PURE__*/_styled__default[
|
|
874
|
+
const OutlinedButton = /*#__PURE__*/_styled__default["default"](TransparentButton, process.env.NODE_ENV === "production" ? {
|
|
1027
875
|
target: "eo0fwlz0"
|
|
1028
876
|
} : {
|
|
1029
877
|
target: "eo0fwlz0",
|
|
@@ -1070,19 +918,19 @@ const OutlinedButton = /*#__PURE__*/_styled__default['default'](TransparentButto
|
|
|
1070
918
|
}, process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIk91dGxpbmVkQnV0dG9uLnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFPOEIiLCJmaWxlIjoiT3V0bGluZWRCdXR0b24udHN4Iiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHN0eWxlZCBmcm9tICdAZW1vdGlvbi9zdHlsZWQnO1xuaW1wb3J0IHsgY3NzIH0gZnJvbSAnQHN0eWxlZC1zeXN0ZW0vY3NzJztcbmltcG9ydCB7IHJlbSB9IGZyb20gJ3BvbGlzaGVkJztcblxuaW1wb3J0IHsgYWxwaGEgfSBmcm9tICcuLi9jb2xvcic7XG5pbXBvcnQgeyBUcmFuc3BhcmVudEJ1dHRvbiB9IGZyb20gJy4vVHJhbnNwYXJlbnRCdXR0b24nO1xuXG5leHBvcnQgY29uc3QgT3V0bGluZWRCdXR0b24gPSBzdHlsZWQoVHJhbnNwYXJlbnRCdXR0b24pKFxuICBjc3Moe1xuICAgIGJvcmRlclN0eWxlOiAnc29saWQnLFxuICAgIGJvcmRlcldpZHRoOiByZW0oMSksXG4gICAgYm9yZGVyQ29sb3I6ICdvdXRsaW5lJyxcbiAgICBib3hTaGFkb3c6IDAsXG4gICAgJyY6Zm9jdXMsOiZhY3RpdmUsOiZob3Zlcic6IHsgYm94U2hhZG93OiAwIH0sXG4gICAgJyY6Zm9jdXMtdmlzaWJsZSwmOmFjdGl2ZSc6IHtcbiAgICAgIGJvcmRlckNvbG9yOiAnY3VycmVudENvbG9yJyxcbiAgICB9LFxuICAgICcmOmRpc2FibGVkJzoge1xuICAgICAgY29sb3I6IGFscGhhKCdvbi5zdXJmYWNlJywgMC4zOCksXG4gICAgICBib3JkZXJDb2xvcjogYWxwaGEoJ29uLnN1cmZhY2UnLCAwLjEyKSxcbiAgICAgIGN1cnNvcjogJ2RlZmF1bHQnLFxuICAgIH0sXG4gIH0pLFxuICAoeyBpc0dyb3VwZWRCdXR0b24gPSBmYWxzZSB9KSA9PlxuICAgIGlzR3JvdXBlZEJ1dHRvbiAmJiB7XG4gICAgICAnW2RhdGEtYnV0dG9uLWdyb3VwPVwiXCJdICYnOiB7XG4gICAgICAgICc6Zmlyc3Qtb2YtdHlwZSc6IHtcbiAgICAgICAgICBib3JkZXJUb3BSaWdodFJhZGl1czogMCxcbiAgICAgICAgICBib3JkZXJCb3R0b21SaWdodFJhZGl1czogMCxcbiAgICAgICAgfSxcbiAgICAgICAgJzpub3QoOmZpcnN0LW9mLXR5cGUpOm5vdCg6bGFzdC1vZi10eXBlKSc6IHtcbiAgICAgICAgICBib3JkZXJSYWRpdXM6IDAsXG4gICAgICAgICAgYm9yZGVyUmlnaHRXaWR0aDogMCxcbiAgICAgICAgICBib3JkZXJMZWZ0V2lkdGg6IDAsXG4gICAgICAgIH0sXG4gICAgICAgICc6bGFzdC1vZi10eXBlJzoge1xuICAgICAgICAgIGJvcmRlclRvcExlZnRSYWRpdXM6IDAsXG4gICAgICAgICAgYm9yZGVyQm90dG9tTGVmdFJhZGl1czogMCxcbiAgICAgICAgICBib3JkZXJMZWZ0U3R5bGU6ICdzb2xpZCcsXG4gICAgICAgICAgYm9yZGVyTGVmdFdpZHRoOiByZW0oMSksXG4gICAgICAgIH0sXG4gICAgICAgICc6bGFzdC1vZi10eXBlOm50aC1vZi10eXBlKDIpJzoge1xuICAgICAgICAgIGJvcmRlckxlZnRXaWR0aDogMCxcbiAgICAgICAgfSxcbiAgICAgIH0sXG4gICAgfVxuKTtcbiJdfQ== */");
|
|
1071
919
|
|
|
1072
920
|
function getRippleProperties(theme) {
|
|
1073
|
-
return
|
|
921
|
+
return { ...getRippleProperties$2(theme),
|
|
1074
922
|
center: true,
|
|
1075
923
|
rippleEnabled: true
|
|
1076
|
-
}
|
|
924
|
+
};
|
|
1077
925
|
}
|
|
1078
926
|
|
|
1079
|
-
const RIPPLE_BACKGROUND_COLOR = `--css-${hash__default[
|
|
1080
|
-
const RIPPLE_TRANSLATE_START = `--css-${hash__default[
|
|
1081
|
-
const RIPPLE_TRANSLATE_END = `--css-${hash__default[
|
|
1082
|
-
const RIPPLE_SCALE_END = `--css-${hash__default[
|
|
1083
|
-
const RIPPLE_OPACITY_END = `--css-${hash__default[
|
|
1084
|
-
const RIPPLE_SIZE = `--css-${hash__default[
|
|
1085
|
-
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')}`;
|
|
1086
934
|
|
|
1087
935
|
const rippleStyle = ({
|
|
1088
936
|
animation
|
|
@@ -1102,7 +950,7 @@ const rippleStyle = ({
|
|
|
1102
950
|
animation,
|
|
1103
951
|
willChange: 'opacity,transform'
|
|
1104
952
|
});
|
|
1105
|
-
const Ripple = _styled__default[
|
|
953
|
+
const Ripple = _styled__default["default"]("div", process.env.NODE_ENV === "production" ? {
|
|
1106
954
|
target: "ebk8cct0"
|
|
1107
955
|
} : {
|
|
1108
956
|
target: "ebk8cct0",
|
|
@@ -1176,9 +1024,11 @@ function calculateRipplePosition(rect, clientX, clientY, center = false) {
|
|
|
1176
1024
|
x: clientX - rect.left,
|
|
1177
1025
|
y: clientY - rect.top
|
|
1178
1026
|
};
|
|
1179
|
-
return
|
|
1180
|
-
state: 'entering'
|
|
1181
|
-
|
|
1027
|
+
return {
|
|
1028
|
+
state: 'entering',
|
|
1029
|
+
...rippleStart,
|
|
1030
|
+
...getScale(rect)
|
|
1031
|
+
};
|
|
1182
1032
|
}
|
|
1183
1033
|
|
|
1184
1034
|
const useRipple = opts => {
|
|
@@ -1208,19 +1058,22 @@ const useRipple = opts => {
|
|
|
1208
1058
|
|
|
1209
1059
|
const setLeft = () => {
|
|
1210
1060
|
rippleState.current = 'left';
|
|
1211
|
-
setRipple(
|
|
1061
|
+
setRipple({ ...defaultRipple
|
|
1062
|
+
});
|
|
1212
1063
|
};
|
|
1213
1064
|
|
|
1214
1065
|
const setLeaving = () => {
|
|
1215
1066
|
clearTimeout(enteringTimeout.current);
|
|
1216
1067
|
rippleState.current = 'leaving';
|
|
1217
|
-
setRipple(ripple =>
|
|
1068
|
+
setRipple(ripple => ({ ...ripple
|
|
1069
|
+
}));
|
|
1218
1070
|
leavingTimeout.current = window.setTimeout(setLeft, leaveDuration);
|
|
1219
1071
|
};
|
|
1220
1072
|
|
|
1221
1073
|
const setEntered = () => {
|
|
1222
1074
|
rippleState.current = 'entered';
|
|
1223
|
-
setRipple(ripple =>
|
|
1075
|
+
setRipple(ripple => ({ ...ripple
|
|
1076
|
+
}));
|
|
1224
1077
|
|
|
1225
1078
|
if (shouldLeave.current) {
|
|
1226
1079
|
setLeaving();
|
|
@@ -1240,7 +1093,8 @@ const useRipple = opts => {
|
|
|
1240
1093
|
clearTimeout(enteringTimeout.current);
|
|
1241
1094
|
shouldLeave.current = false;
|
|
1242
1095
|
rippleState.current = 'restart';
|
|
1243
|
-
setRipple(
|
|
1096
|
+
setRipple({ ...defaultRipple
|
|
1097
|
+
});
|
|
1244
1098
|
restartTimeout.current = requestAnimationFrame(() => {
|
|
1245
1099
|
rippleState.current = 'entering';
|
|
1246
1100
|
setRipple(calculateRipplePosition(rect, clientX, clientY, center));
|
|
@@ -1294,13 +1148,11 @@ const disabledHandler = () => {
|
|
|
1294
1148
|
};
|
|
1295
1149
|
|
|
1296
1150
|
function useRippleHandlers(opts) {
|
|
1297
|
-
const
|
|
1298
|
-
{
|
|
1151
|
+
const {
|
|
1299
1152
|
activate,
|
|
1300
|
-
deactivate
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1153
|
+
deactivate,
|
|
1154
|
+
...rest
|
|
1155
|
+
} = useRipple(opts); // Pointer activation
|
|
1304
1156
|
|
|
1305
1157
|
const handlePointerUp = () => {
|
|
1306
1158
|
window.removeEventListener('pointerup', handlePointerUp);
|
|
@@ -1339,10 +1191,11 @@ function useRippleHandlers(opts) {
|
|
|
1339
1191
|
window.addEventListener('keyup', handleKeyUp);
|
|
1340
1192
|
};
|
|
1341
1193
|
|
|
1342
|
-
return
|
|
1194
|
+
return {
|
|
1343
1195
|
handleKeyDown: opts.disabled ? disabledHandler : handleKeyDown,
|
|
1344
|
-
handlePointerDown: opts.disabled ? disabledHandler : handlePointerDown
|
|
1345
|
-
|
|
1196
|
+
handlePointerDown: opts.disabled ? disabledHandler : handlePointerDown,
|
|
1197
|
+
...rest
|
|
1198
|
+
};
|
|
1346
1199
|
}
|
|
1347
1200
|
|
|
1348
1201
|
function useRippleSurface(opts = {}) {
|
|
@@ -1354,16 +1207,14 @@ function useRippleSurface(opts = {}) {
|
|
|
1354
1207
|
pressedOpacity = 0.12,
|
|
1355
1208
|
rippleColor = 'on.surface'
|
|
1356
1209
|
} = opts;
|
|
1357
|
-
|
|
1358
1210
|
const {
|
|
1359
1211
|
onKeyDown,
|
|
1360
1212
|
onPointerDown,
|
|
1361
1213
|
style = {},
|
|
1362
1214
|
disabled,
|
|
1363
|
-
rippleEnabled = true
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1215
|
+
rippleEnabled = true,
|
|
1216
|
+
...rippleProps
|
|
1217
|
+
} = opts;
|
|
1367
1218
|
const theme = useTheme();
|
|
1368
1219
|
rippleColor = css.get(theme, `colors.${rippleColor}`) || rippleColor;
|
|
1369
1220
|
|
|
@@ -1378,12 +1229,13 @@ function useRippleSurface(opts = {}) {
|
|
|
1378
1229
|
handlePointerDown,
|
|
1379
1230
|
style: animationStyle,
|
|
1380
1231
|
animation
|
|
1381
|
-
} = useRippleHandlers(
|
|
1232
|
+
} = useRippleHandlers({
|
|
1382
1233
|
opacity: Number(pressedOpacity),
|
|
1383
1234
|
backgroundColor: rippleColor,
|
|
1384
|
-
disabled
|
|
1385
|
-
|
|
1386
|
-
|
|
1235
|
+
disabled,
|
|
1236
|
+
...rippleProps
|
|
1237
|
+
});
|
|
1238
|
+
const css$1 = react$1.useMemo(() => ({
|
|
1387
1239
|
overflow: 'hidden',
|
|
1388
1240
|
position: 'relative',
|
|
1389
1241
|
cursor: 'pointer',
|
|
@@ -1410,12 +1262,12 @@ function useRippleSurface(opts = {}) {
|
|
|
1410
1262
|
},
|
|
1411
1263
|
'&:focus-visible::before': {
|
|
1412
1264
|
opacity: focusOpacity
|
|
1413
|
-
}
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
|
|
1265
|
+
},
|
|
1266
|
+
...(!rippleEnabled && {
|
|
1267
|
+
'&:active::before': {
|
|
1268
|
+
opacity: pressedOpacity
|
|
1269
|
+
}
|
|
1270
|
+
}),
|
|
1419
1271
|
'&[aria-pressed="true"]::before': {
|
|
1420
1272
|
opacity: baseOpacity + pressedOpacity
|
|
1421
1273
|
},
|
|
@@ -1424,25 +1276,30 @@ function useRippleSurface(opts = {}) {
|
|
|
1424
1276
|
},
|
|
1425
1277
|
'&[aria-pressed="true"]:focus-visible::before': {
|
|
1426
1278
|
opacity: pressedOpacity + focusOpacity
|
|
1427
|
-
}
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
|
|
1279
|
+
},
|
|
1280
|
+
...(!rippleEnabled && {
|
|
1281
|
+
'&[aria-pressed="true"]:active::before': {
|
|
1282
|
+
opacity: pressedOpacity + pressedOpacity
|
|
1283
|
+
}
|
|
1284
|
+
}),
|
|
1433
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']: {
|
|
1434
1286
|
opacity: 0
|
|
1435
1287
|
},
|
|
1436
1288
|
'&:disabled,&[data-disabled]': {
|
|
1437
1289
|
cursor: 'default'
|
|
1438
|
-
}
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
|
|
1290
|
+
},
|
|
1291
|
+
// ripple
|
|
1292
|
+
...(rippleEnabled && {
|
|
1293
|
+
'&::after': { ...rippleStyle({
|
|
1294
|
+
animation
|
|
1295
|
+
})
|
|
1296
|
+
}
|
|
1297
|
+
})
|
|
1443
1298
|
}), [animation, baseOpacity, focusOpacity, hoverOpacity, pressedOpacity, rippleColor, rippleEnabled]);
|
|
1444
1299
|
return {
|
|
1445
|
-
style:
|
|
1300
|
+
style: { ...animationStyle,
|
|
1301
|
+
...style
|
|
1302
|
+
},
|
|
1446
1303
|
onKeyDown: core.wrapEvent(onKeyDown, handleKeyDown),
|
|
1447
1304
|
onPointerDown: core.wrapEvent(onPointerDown, handlePointerDown),
|
|
1448
1305
|
__css: css$1
|
|
@@ -1453,23 +1310,46 @@ const RippleBox = /*#__PURE__*/react$1.forwardRef(function RippleBox(props, forw
|
|
|
1453
1310
|
const {
|
|
1454
1311
|
as = 'div',
|
|
1455
1312
|
__css,
|
|
1313
|
+
// Cherry picking the ripple props to prevent it from falling down to
|
|
1314
|
+
// the Box component
|
|
1315
|
+
onKeyDown,
|
|
1456
1316
|
// eslint-disable-line @typescript-eslint/no-unused-vars
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
|
|
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, {
|
|
1468
1344
|
as: as,
|
|
1469
1345
|
ref: forwardedRef,
|
|
1470
|
-
__css:
|
|
1471
|
-
|
|
1472
|
-
|
|
1346
|
+
__css: { ...rippleCss,
|
|
1347
|
+
...__css
|
|
1348
|
+
},
|
|
1349
|
+
disabled,
|
|
1350
|
+
...otherProps,
|
|
1351
|
+
...rippleProps
|
|
1352
|
+
});
|
|
1473
1353
|
});
|
|
1474
1354
|
|
|
1475
1355
|
const ButtonGroupContext = /*#__PURE__*/react$1.createContext(null);
|
|
@@ -1507,30 +1387,28 @@ function getFallbackElevation(variant = 'text') {
|
|
|
1507
1387
|
|
|
1508
1388
|
const Button = /*#__PURE__*/react$1.forwardRef(function Button(props, forwardedRef) {
|
|
1509
1389
|
const buttonGroup = useButtonGroupContext();
|
|
1510
|
-
|
|
1511
1390
|
const {
|
|
1512
1391
|
children,
|
|
1513
|
-
variant =
|
|
1392
|
+
variant = buttonGroup?.variant || 'text',
|
|
1514
1393
|
onPointerDown: onPointerDownProp,
|
|
1515
1394
|
onKeyDown: onKeyDownProp,
|
|
1516
1395
|
color = 'primary',
|
|
1517
1396
|
disabled = false,
|
|
1518
1397
|
elevation = getFallbackElevation(props.variant),
|
|
1519
|
-
style: styleProp
|
|
1520
|
-
|
|
1521
|
-
|
|
1522
|
-
|
|
1398
|
+
style: styleProp,
|
|
1399
|
+
...otherProps
|
|
1400
|
+
} = props;
|
|
1523
1401
|
const theme = useTheme();
|
|
1524
1402
|
const Comp = componentMapping[variant];
|
|
1525
1403
|
const getRippleProperties = rippleMapping[variant];
|
|
1526
|
-
const rippleProps = useRippleSurface(
|
|
1404
|
+
const rippleProps = useRippleSurface({ ...getRippleProperties(theme),
|
|
1527
1405
|
rippleColor: 'currentColor',
|
|
1528
1406
|
disabled,
|
|
1529
1407
|
style: styleProp,
|
|
1530
1408
|
onKeyDown: onKeyDownProp,
|
|
1531
1409
|
onPointerDown: onPointerDownProp
|
|
1532
|
-
})
|
|
1533
|
-
return /*#__PURE__*/jsxRuntime.jsx(Comp,
|
|
1410
|
+
});
|
|
1411
|
+
return /*#__PURE__*/jsxRuntime.jsx(Comp, {
|
|
1534
1412
|
ref: forwardedRef,
|
|
1535
1413
|
variant: variant,
|
|
1536
1414
|
theme: theme,
|
|
@@ -1538,49 +1416,50 @@ const Button = /*#__PURE__*/react$1.forwardRef(function Button(props, forwardedR
|
|
|
1538
1416
|
"aria-disabled": disabled ? 'true' : undefined,
|
|
1539
1417
|
color: color,
|
|
1540
1418
|
elevation: elevation,
|
|
1541
|
-
isGroupedButton: Boolean(buttonGroup)
|
|
1542
|
-
|
|
1419
|
+
isGroupedButton: Boolean(buttonGroup),
|
|
1420
|
+
...rippleProps,
|
|
1421
|
+
...otherProps,
|
|
1543
1422
|
children: children
|
|
1544
|
-
})
|
|
1423
|
+
});
|
|
1545
1424
|
});
|
|
1546
1425
|
|
|
1547
1426
|
const ButtonGroup = /*#__PURE__*/react$1.forwardRef(function ButtonGroup(props, forwardedRef) {
|
|
1548
1427
|
const {
|
|
1549
1428
|
as: Comp = 'div',
|
|
1550
1429
|
variant = 'text',
|
|
1551
|
-
direction = 'row'
|
|
1552
|
-
|
|
1553
|
-
|
|
1554
|
-
|
|
1430
|
+
direction = 'row',
|
|
1431
|
+
...otherProps
|
|
1432
|
+
} = props;
|
|
1555
1433
|
const value = react$1.useMemo(() => ({
|
|
1556
1434
|
direction,
|
|
1557
1435
|
variant
|
|
1558
1436
|
}), [direction, variant]);
|
|
1559
1437
|
return /*#__PURE__*/jsxRuntime.jsx(ButtonGroupContext.Provider, {
|
|
1560
1438
|
value: value,
|
|
1561
|
-
children: /*#__PURE__*/jsxRuntime.jsx(Comp,
|
|
1439
|
+
children: /*#__PURE__*/jsxRuntime.jsx(Comp, {
|
|
1562
1440
|
ref: forwardedRef,
|
|
1563
1441
|
role: "group",
|
|
1564
1442
|
"data-button-group": "",
|
|
1565
|
-
"data-button-group-direction": direction
|
|
1566
|
-
|
|
1443
|
+
"data-button-group-direction": direction,
|
|
1444
|
+
...otherProps
|
|
1445
|
+
})
|
|
1567
1446
|
});
|
|
1568
1447
|
});
|
|
1569
1448
|
|
|
1570
1449
|
const AppBarButton = /*#__PURE__*/react$1.forwardRef(function AppBarButton(props, forwardedRef) {
|
|
1571
1450
|
const {
|
|
1572
|
-
variant = 'icon'
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
|
|
1451
|
+
variant = 'icon',
|
|
1452
|
+
...otherProps
|
|
1453
|
+
} = props;
|
|
1576
1454
|
const {
|
|
1577
1455
|
variant: appbarVariant
|
|
1578
1456
|
} = useAppBarContext();
|
|
1579
|
-
return /*#__PURE__*/jsxRuntime.jsx(Button,
|
|
1457
|
+
return /*#__PURE__*/jsxRuntime.jsx(Button, {
|
|
1580
1458
|
ref: forwardedRef,
|
|
1581
1459
|
variant: variant,
|
|
1582
|
-
color: appbarVariant === 'default' ? 'on.surface' : `on.${appbarVariant}
|
|
1583
|
-
|
|
1460
|
+
color: appbarVariant === 'default' ? 'on.surface' : `on.${appbarVariant}`,
|
|
1461
|
+
...otherProps
|
|
1462
|
+
});
|
|
1584
1463
|
});
|
|
1585
1464
|
|
|
1586
1465
|
const mappings = {
|
|
@@ -1601,56 +1480,58 @@ const mappings = {
|
|
|
1601
1480
|
const Text = /*#__PURE__*/react$1.forwardRef(function Text(props, forwardedRef) {
|
|
1602
1481
|
const {
|
|
1603
1482
|
as,
|
|
1604
|
-
variant = 'body-medium'
|
|
1605
|
-
|
|
1606
|
-
|
|
1607
|
-
|
|
1483
|
+
variant = 'body-medium',
|
|
1484
|
+
...otherProps
|
|
1485
|
+
} = props;
|
|
1608
1486
|
let Comp = as;
|
|
1609
1487
|
|
|
1610
1488
|
if (!Comp) {
|
|
1611
1489
|
Comp = mappings[variant] || 'p';
|
|
1612
1490
|
}
|
|
1613
1491
|
|
|
1614
|
-
return /*#__PURE__*/jsxRuntime.jsx(Box,
|
|
1492
|
+
return /*#__PURE__*/jsxRuntime.jsx(Box, {
|
|
1615
1493
|
as: Comp,
|
|
1616
1494
|
ref: forwardedRef,
|
|
1617
1495
|
tx: "text",
|
|
1618
1496
|
variant: variant,
|
|
1619
1497
|
__css: {
|
|
1620
1498
|
color: 'inherit'
|
|
1621
|
-
}
|
|
1622
|
-
|
|
1499
|
+
},
|
|
1500
|
+
...otherProps
|
|
1501
|
+
});
|
|
1623
1502
|
});
|
|
1624
1503
|
|
|
1625
1504
|
const Alert = /*#__PURE__*/react$1.forwardRef(function Alert(props, forwardedRef) {
|
|
1626
1505
|
const {
|
|
1627
1506
|
as = 'div',
|
|
1628
1507
|
color = 'secondary',
|
|
1629
|
-
__css
|
|
1630
|
-
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
return /*#__PURE__*/jsxRuntime.jsx(Text, _extends__default['default']({
|
|
1508
|
+
__css,
|
|
1509
|
+
...otherProps
|
|
1510
|
+
} = props;
|
|
1511
|
+
return /*#__PURE__*/jsxRuntime.jsx(Text, {
|
|
1634
1512
|
ref: forwardedRef,
|
|
1635
1513
|
as: as,
|
|
1636
1514
|
variant: "body-medium",
|
|
1637
|
-
__css:
|
|
1515
|
+
__css: {
|
|
1638
1516
|
p: 3,
|
|
1639
1517
|
bg: alpha(color, 0.1),
|
|
1640
1518
|
borderRadius: 'extra-small',
|
|
1641
1519
|
borderColor: alpha(color, 0.2),
|
|
1642
1520
|
borderStyle: 'solid',
|
|
1643
|
-
borderWidth: "0.0625rem"
|
|
1644
|
-
|
|
1645
|
-
|
|
1521
|
+
borderWidth: "0.0625rem",
|
|
1522
|
+
...__css
|
|
1523
|
+
},
|
|
1524
|
+
...otherProps
|
|
1525
|
+
});
|
|
1646
1526
|
});
|
|
1647
1527
|
|
|
1648
1528
|
const Badge = /*#__PURE__*/react$1.forwardRef(function Badge(props, forwardedRef) {
|
|
1649
|
-
const
|
|
1650
|
-
|
|
1651
|
-
return /*#__PURE__*/jsxRuntime.jsx(Box,
|
|
1652
|
-
ref: forwardedRef
|
|
1653
|
-
|
|
1529
|
+
const { ...otherProps
|
|
1530
|
+
} = props;
|
|
1531
|
+
return /*#__PURE__*/jsxRuntime.jsx(Box, {
|
|
1532
|
+
ref: forwardedRef,
|
|
1533
|
+
...otherProps
|
|
1534
|
+
});
|
|
1654
1535
|
});
|
|
1655
1536
|
|
|
1656
1537
|
const BaseLine = () => {
|
|
@@ -1791,13 +1672,12 @@ const BaseLine = () => {
|
|
|
1791
1672
|
|
|
1792
1673
|
const Scrim = /*#__PURE__*/react$1.forwardRef(function Scrim(props, forwardedRef) {
|
|
1793
1674
|
const {
|
|
1794
|
-
__css
|
|
1795
|
-
|
|
1796
|
-
|
|
1797
|
-
|
|
1798
|
-
return /*#__PURE__*/jsxRuntime.jsx(Box, _extends__default['default']({
|
|
1675
|
+
__css,
|
|
1676
|
+
...otherProps
|
|
1677
|
+
} = props;
|
|
1678
|
+
return /*#__PURE__*/jsxRuntime.jsx(Box, {
|
|
1799
1679
|
ref: forwardedRef,
|
|
1800
|
-
__css:
|
|
1680
|
+
__css: {
|
|
1801
1681
|
position: 'fixed',
|
|
1802
1682
|
top: '0',
|
|
1803
1683
|
left: '0',
|
|
@@ -1808,20 +1688,21 @@ const Scrim = /*#__PURE__*/react$1.forwardRef(function Scrim(props, forwardedRef
|
|
|
1808
1688
|
backgroundColor: alpha('#000', 0.32),
|
|
1809
1689
|
willChange: 'opacity',
|
|
1810
1690
|
zIndex: -1,
|
|
1811
|
-
pointerEvents: 'none'
|
|
1812
|
-
|
|
1813
|
-
|
|
1691
|
+
pointerEvents: 'none',
|
|
1692
|
+
...__css
|
|
1693
|
+
},
|
|
1694
|
+
...otherProps
|
|
1695
|
+
});
|
|
1814
1696
|
});
|
|
1815
1697
|
|
|
1816
1698
|
const DialogContainer = /*#__PURE__*/react$1.forwardRef(function DialogContainer(props, forwardedRef) {
|
|
1817
1699
|
const {
|
|
1818
|
-
__css
|
|
1819
|
-
|
|
1820
|
-
|
|
1821
|
-
|
|
1822
|
-
return /*#__PURE__*/jsxRuntime.jsx(Box, _extends__default['default']({
|
|
1700
|
+
__css,
|
|
1701
|
+
...otherProps
|
|
1702
|
+
} = props;
|
|
1703
|
+
return /*#__PURE__*/jsxRuntime.jsx(Box, {
|
|
1823
1704
|
ref: forwardedRef,
|
|
1824
|
-
__css:
|
|
1705
|
+
__css: {
|
|
1825
1706
|
position: 'absolute',
|
|
1826
1707
|
display: 'flex',
|
|
1827
1708
|
alignItems: 'center',
|
|
@@ -1830,9 +1711,11 @@ const DialogContainer = /*#__PURE__*/react$1.forwardRef(function DialogContainer
|
|
|
1830
1711
|
height: '100%',
|
|
1831
1712
|
willChange: 'transform,opacity',
|
|
1832
1713
|
transformOrigin: 'center center',
|
|
1833
|
-
pointerEvents: 'none'
|
|
1834
|
-
|
|
1835
|
-
|
|
1714
|
+
pointerEvents: 'none',
|
|
1715
|
+
...__css
|
|
1716
|
+
},
|
|
1717
|
+
...otherProps
|
|
1718
|
+
});
|
|
1836
1719
|
});
|
|
1837
1720
|
|
|
1838
1721
|
function useAnimation(opts) {
|
|
@@ -1856,22 +1739,22 @@ function useAnimation(opts) {
|
|
|
1856
1739
|
open: openProp
|
|
1857
1740
|
});
|
|
1858
1741
|
const handleClose = react$1.useCallback(() => {
|
|
1859
|
-
setAnimation(animation => animation.state === 'closed' ? animation :
|
|
1742
|
+
setAnimation(animation => animation.state === 'closed' ? animation : { ...animation,
|
|
1860
1743
|
state: 'close',
|
|
1861
1744
|
style: animationStyle.close || animationStyle.closed,
|
|
1862
1745
|
timing: closeTimeoutInMilliseconds
|
|
1863
|
-
})
|
|
1746
|
+
});
|
|
1864
1747
|
}, [animationStyle, closeTimeoutInMilliseconds]);
|
|
1865
1748
|
const handleOpen = react$1.useCallback(() => {
|
|
1866
|
-
setAnimation(animation => animation.state === 'open' ? animation :
|
|
1749
|
+
setAnimation(animation => animation.state === 'open' ? animation : { ...animation,
|
|
1867
1750
|
open: true,
|
|
1868
1751
|
state: 'opening',
|
|
1869
1752
|
style: animationStyle.opening || animationStyle.closed
|
|
1870
|
-
})
|
|
1753
|
+
});
|
|
1871
1754
|
}, [animationStyle]);
|
|
1872
1755
|
react$1.useEffect(() => {
|
|
1873
1756
|
if (state === 'opening') {
|
|
1874
|
-
setAnimation(animation =>
|
|
1757
|
+
setAnimation(animation => ({ ...animation,
|
|
1875
1758
|
state: 'open',
|
|
1876
1759
|
style: animationStyle.open,
|
|
1877
1760
|
timing: openTimeoutInMilliseconds
|
|
@@ -1951,26 +1834,26 @@ const styles = {
|
|
|
1951
1834
|
};
|
|
1952
1835
|
function useDialogAnimation(opts) {
|
|
1953
1836
|
const {
|
|
1954
|
-
mode = 'grow'
|
|
1955
|
-
|
|
1956
|
-
|
|
1957
|
-
|
|
1837
|
+
mode = 'grow',
|
|
1838
|
+
...otherOpts
|
|
1839
|
+
} = opts;
|
|
1958
1840
|
const {
|
|
1959
1841
|
open,
|
|
1960
1842
|
state,
|
|
1961
1843
|
style,
|
|
1962
1844
|
timing
|
|
1963
|
-
} = useAnimation(
|
|
1845
|
+
} = useAnimation({
|
|
1964
1846
|
styles,
|
|
1965
|
-
mode
|
|
1966
|
-
|
|
1847
|
+
mode,
|
|
1848
|
+
...otherOpts
|
|
1849
|
+
});
|
|
1967
1850
|
const scrimOpacity = state === 'open' ? 1 : 0;
|
|
1968
1851
|
const transition = `opacity ${timing}ms ${EASING_STANDARD},transform ${timing}ms ${EASING_STANDARD}`;
|
|
1969
1852
|
const scrimTransition = `opacity ${timing * 0.4 | 0}ms ${EASING_STANDARD}`;
|
|
1970
1853
|
return {
|
|
1971
|
-
containerStyle:
|
|
1854
|
+
containerStyle: { ...style,
|
|
1972
1855
|
transition
|
|
1973
|
-
}
|
|
1856
|
+
},
|
|
1974
1857
|
scrimStyle: {
|
|
1975
1858
|
opacity: scrimOpacity,
|
|
1976
1859
|
transition: scrimTransition
|
|
@@ -1984,44 +1867,45 @@ const DialogBackdrop = /*#__PURE__*/react$1.forwardRef(function DialogBackdrop(p
|
|
|
1984
1867
|
const {
|
|
1985
1868
|
open,
|
|
1986
1869
|
onClose,
|
|
1987
|
-
__css
|
|
1988
|
-
|
|
1989
|
-
|
|
1990
|
-
|
|
1870
|
+
__css,
|
|
1871
|
+
...otherProps
|
|
1872
|
+
} = props;
|
|
1991
1873
|
const pointerEvents = open ? undefined : 'none';
|
|
1992
|
-
return /*#__PURE__*/jsxRuntime.jsx(ModalBackdrop,
|
|
1874
|
+
return /*#__PURE__*/jsxRuntime.jsx(ModalBackdrop, {
|
|
1993
1875
|
as: Box,
|
|
1994
1876
|
ref: forwardedRef,
|
|
1995
1877
|
onClose: onClose,
|
|
1996
1878
|
style: {
|
|
1997
1879
|
pointerEvents
|
|
1998
1880
|
},
|
|
1999
|
-
__css:
|
|
1881
|
+
__css: {
|
|
2000
1882
|
position: 'fixed',
|
|
2001
1883
|
top: '0',
|
|
2002
1884
|
left: '0',
|
|
2003
1885
|
right: '0',
|
|
2004
1886
|
bottom: '0',
|
|
2005
|
-
zIndex: 'dialog'
|
|
2006
|
-
|
|
2007
|
-
|
|
1887
|
+
zIndex: 'dialog',
|
|
1888
|
+
// Can't set overflow auto here otherwise slide animation
|
|
1889
|
+
...__css
|
|
1890
|
+
},
|
|
1891
|
+
...otherProps
|
|
1892
|
+
});
|
|
2008
1893
|
});
|
|
2009
1894
|
|
|
2010
1895
|
const Modal$1 = core.Modal;
|
|
2011
1896
|
const BottomSheetSurface = /*#__PURE__*/react$1.forwardRef(function BottomSheetSurface(props, forwardedRef) {
|
|
2012
1897
|
const {
|
|
2013
|
-
__css
|
|
2014
|
-
|
|
2015
|
-
|
|
2016
|
-
|
|
1898
|
+
__css,
|
|
1899
|
+
...otherProps
|
|
1900
|
+
} = props;
|
|
2017
1901
|
const theme = useTheme();
|
|
2018
|
-
return /*#__PURE__*/jsxRuntime.jsx(Modal$1,
|
|
1902
|
+
return /*#__PURE__*/jsxRuntime.jsx(Modal$1, {
|
|
2019
1903
|
ref: forwardedRef,
|
|
2020
1904
|
as: Paper,
|
|
2021
1905
|
theme: theme,
|
|
2022
1906
|
elevation: 3,
|
|
2023
1907
|
darkThemeBackgroundOverlay: 3,
|
|
2024
|
-
__css:
|
|
1908
|
+
__css: {
|
|
2025
1909
|
position: 'absolute',
|
|
2026
1910
|
bg: 'surface',
|
|
2027
1911
|
bottom: 0,
|
|
@@ -2033,18 +1917,19 @@ const BottomSheetSurface = /*#__PURE__*/react$1.forwardRef(function BottomSheetS
|
|
|
2033
1917
|
maxWidth: "37.5rem",
|
|
2034
1918
|
maxHeight: '50%',
|
|
2035
1919
|
overflow: 'auto',
|
|
2036
|
-
pointerEvents: 'auto'
|
|
2037
|
-
|
|
2038
|
-
|
|
1920
|
+
pointerEvents: 'auto',
|
|
1921
|
+
...__css
|
|
1922
|
+
},
|
|
1923
|
+
...otherProps
|
|
1924
|
+
});
|
|
2039
1925
|
});
|
|
2040
1926
|
|
|
2041
1927
|
const BottomSheet = /*#__PURE__*/react$1.forwardRef(function BottomSheet(props, forwardedRef) {
|
|
2042
1928
|
const {
|
|
2043
1929
|
open: openProp = false,
|
|
2044
|
-
onClose
|
|
2045
|
-
|
|
2046
|
-
|
|
2047
|
-
|
|
1930
|
+
onClose,
|
|
1931
|
+
...otherProps
|
|
1932
|
+
} = props;
|
|
2048
1933
|
const {
|
|
2049
1934
|
containerStyle,
|
|
2050
1935
|
scrimStyle,
|
|
@@ -2066,9 +1951,10 @@ const BottomSheet = /*#__PURE__*/react$1.forwardRef(function BottomSheet(props,
|
|
|
2066
1951
|
__css: scrimStyle
|
|
2067
1952
|
}), /*#__PURE__*/jsxRuntime.jsx(DialogContainer, {
|
|
2068
1953
|
__css: containerStyle,
|
|
2069
|
-
children: /*#__PURE__*/jsxRuntime.jsx(BottomSheetSurface,
|
|
2070
|
-
ref: forwardedRef
|
|
2071
|
-
|
|
1954
|
+
children: /*#__PURE__*/jsxRuntime.jsx(BottomSheetSurface, {
|
|
1955
|
+
ref: forwardedRef,
|
|
1956
|
+
...otherProps
|
|
1957
|
+
})
|
|
2072
1958
|
})]
|
|
2073
1959
|
})
|
|
2074
1960
|
});
|
|
@@ -2088,16 +1974,15 @@ const Input = /*#__PURE__*/react$1.forwardRef(function Input(props, forwardedRef
|
|
|
2088
1974
|
hasLabel = true,
|
|
2089
1975
|
leadingIcon,
|
|
2090
1976
|
trailingIcon,
|
|
2091
|
-
multiline
|
|
2092
|
-
|
|
2093
|
-
|
|
2094
|
-
|
|
2095
|
-
return /*#__PURE__*/jsxRuntime.jsx(Box, _extends__default['default']({
|
|
1977
|
+
multiline,
|
|
1978
|
+
...otherProps
|
|
1979
|
+
} = props;
|
|
1980
|
+
return /*#__PURE__*/jsxRuntime.jsx(Box, {
|
|
2096
1981
|
as: as,
|
|
2097
1982
|
ref: forwardedRef,
|
|
2098
|
-
multiline: multiline
|
|
2099
|
-
|
|
2100
|
-
__css:
|
|
1983
|
+
multiline: multiline,
|
|
1984
|
+
...otherProps,
|
|
1985
|
+
__css: {
|
|
2101
1986
|
WebkitTapHighlightColor: 'transparent',
|
|
2102
1987
|
appearance: 'none',
|
|
2103
1988
|
outline: 'none',
|
|
@@ -2113,12 +1998,12 @@ const Input = /*#__PURE__*/react$1.forwardRef(function Input(props, forwardedRef
|
|
|
2113
1998
|
letterSpacing: "0.03125rem",
|
|
2114
1999
|
textAlign: 'left',
|
|
2115
2000
|
display: 'flex',
|
|
2116
|
-
alignItems: 'center'
|
|
2117
|
-
|
|
2118
|
-
|
|
2119
|
-
|
|
2120
|
-
|
|
2121
|
-
|
|
2001
|
+
alignItems: 'center',
|
|
2002
|
+
...(!multiline && {
|
|
2003
|
+
overflow: 'hidden',
|
|
2004
|
+
whiteSpace: 'nowrap',
|
|
2005
|
+
textOverflow: 'ellipsis'
|
|
2006
|
+
}),
|
|
2122
2007
|
'::placeholder': {
|
|
2123
2008
|
opacity: 0,
|
|
2124
2009
|
color: variant === 'filled' ? alpha('on.surface-variant', 0.87) : alpha('on.surface-variant', 0.6),
|
|
@@ -2143,19 +2028,23 @@ const Input = /*#__PURE__*/react$1.forwardRef(function Input(props, forwardedRef
|
|
|
2143
2028
|
}
|
|
2144
2029
|
},
|
|
2145
2030
|
paddingLeft: leadingIcon ? polished.rem(PADDING_LEFT_WITH_ICON + ICON_WIDTH + PADDING_LEFT_WITHOUT_ICON) : polished.rem(PADDING_LEFT_WITHOUT_ICON),
|
|
2146
|
-
paddingRight: trailingIcon ? polished.rem(PADDING_RIGHT_WITH_ICON + ICON_WIDTH + PADDING_RIGHT_WITHOUT_ICON) : polished.rem(PADDING_RIGHT_WITHOUT_ICON)
|
|
2147
|
-
|
|
2148
|
-
|
|
2149
|
-
|
|
2150
|
-
|
|
2151
|
-
|
|
2152
|
-
|
|
2153
|
-
|
|
2154
|
-
|
|
2155
|
-
|
|
2156
|
-
|
|
2157
|
-
|
|
2158
|
-
|
|
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
|
+
});
|
|
2159
2048
|
});
|
|
2160
2049
|
|
|
2161
2050
|
const notchedoutlineContext = /*#__PURE__*/react$1.createContext(null);
|
|
@@ -2174,17 +2063,16 @@ const FloatingLabel = /*#__PURE__*/react$1.forwardRef(function FloatingLabel(pro
|
|
|
2174
2063
|
style = {},
|
|
2175
2064
|
translateX: translateXProp,
|
|
2176
2065
|
translateY: translateYProp,
|
|
2177
|
-
children
|
|
2178
|
-
|
|
2179
|
-
|
|
2180
|
-
|
|
2066
|
+
children,
|
|
2067
|
+
...otherProps
|
|
2068
|
+
} = props;
|
|
2181
2069
|
const ctx = useNotchedOutlineContext();
|
|
2182
2070
|
const notchStart = ctx ? ctx.notchStart : 0;
|
|
2183
2071
|
const Text$1 = Text;
|
|
2184
2072
|
const translateX = translateXProp !== undefined ? translateXProp : notchStart - offsetX;
|
|
2185
2073
|
const translateY = translateYProp !== undefined ? translateYProp : -height / 2;
|
|
2186
2074
|
const transform = active ? `translate(${polished.rem(translateX)}, ${polished.rem(translateY)}) scale(${scale})` : undefined;
|
|
2187
|
-
return /*#__PURE__*/jsxRuntime.jsx(Text$1,
|
|
2075
|
+
return /*#__PURE__*/jsxRuntime.jsx(Text$1, {
|
|
2188
2076
|
as: "label",
|
|
2189
2077
|
variant: "body-large",
|
|
2190
2078
|
ref: forwardedRef,
|
|
@@ -2199,12 +2087,13 @@ const FloatingLabel = /*#__PURE__*/react$1.forwardRef(function FloatingLabel(pro
|
|
|
2199
2087
|
transition: `transform ${transitionTime}ms ${EASING_STANDARD}, color ${transitionTime}ms ${EASING_STANDARD}`,
|
|
2200
2088
|
pointerEvents: 'none'
|
|
2201
2089
|
},
|
|
2202
|
-
style:
|
|
2203
|
-
transform
|
|
2204
|
-
|
|
2205
|
-
|
|
2090
|
+
style: {
|
|
2091
|
+
transform,
|
|
2092
|
+
...style
|
|
2093
|
+
},
|
|
2094
|
+
...otherProps,
|
|
2206
2095
|
children: children
|
|
2207
|
-
})
|
|
2096
|
+
});
|
|
2208
2097
|
});
|
|
2209
2098
|
|
|
2210
2099
|
const LineRipple = /*#__PURE__*/react$1.forwardRef(function LineRipple(props, forwardedRef) {
|
|
@@ -2215,10 +2104,9 @@ const LineRipple = /*#__PURE__*/react$1.forwardRef(function LineRipple(props, fo
|
|
|
2215
2104
|
active = false,
|
|
2216
2105
|
posx = -1,
|
|
2217
2106
|
style: styleProp = {},
|
|
2218
|
-
__css
|
|
2219
|
-
|
|
2220
|
-
|
|
2221
|
-
|
|
2107
|
+
__css,
|
|
2108
|
+
...otherProps
|
|
2109
|
+
} = props;
|
|
2222
2110
|
const [style, setStyle] = react$1.useState();
|
|
2223
2111
|
const theme = useTheme();
|
|
2224
2112
|
const leaveTimeout = react$1.useRef();
|
|
@@ -2243,13 +2131,15 @@ const LineRipple = /*#__PURE__*/react$1.forwardRef(function LineRipple(props, fo
|
|
|
2243
2131
|
clearTimeout(leaveTimeout.current);
|
|
2244
2132
|
};
|
|
2245
2133
|
}, [active, posx, transitionDuration]);
|
|
2246
|
-
return /*#__PURE__*/jsxRuntime.jsx(Box,
|
|
2134
|
+
return /*#__PURE__*/jsxRuntime.jsx(Box, {
|
|
2247
2135
|
as: asProp,
|
|
2248
2136
|
ref: forwardedRef,
|
|
2249
2137
|
bg: color,
|
|
2250
2138
|
theme: theme,
|
|
2251
|
-
style:
|
|
2252
|
-
|
|
2139
|
+
style: { ...style,
|
|
2140
|
+
...styleProp
|
|
2141
|
+
},
|
|
2142
|
+
__css: {
|
|
2253
2143
|
position: 'absolute',
|
|
2254
2144
|
bottom: '0',
|
|
2255
2145
|
left: '0',
|
|
@@ -2259,9 +2149,11 @@ const LineRipple = /*#__PURE__*/react$1.forwardRef(function LineRipple(props, fo
|
|
|
2259
2149
|
transform: 'scaleX(0)',
|
|
2260
2150
|
transformOrigin: 'center center',
|
|
2261
2151
|
transition: `transform ${transitionDuration}ms ${EASING_STANDARD},opacity ${transitionDuration}ms ${EASING_STANDARD}`,
|
|
2262
|
-
opacity: 0
|
|
2263
|
-
|
|
2264
|
-
|
|
2152
|
+
opacity: 0,
|
|
2153
|
+
...__css
|
|
2154
|
+
},
|
|
2155
|
+
...otherProps
|
|
2156
|
+
});
|
|
2265
2157
|
});
|
|
2266
2158
|
|
|
2267
2159
|
const makeSelector$1 = state => `input:${state} ~ &,` + `select:${state} ~ &,` + `button:${state} ~ &,` + `textarea:${state} ~ &`;
|
|
@@ -2272,7 +2164,7 @@ const Overlay = props => {
|
|
|
2272
2164
|
} = props;
|
|
2273
2165
|
const theme = useTheme();
|
|
2274
2166
|
return /*#__PURE__*/jsxRuntime.jsx(Box, {
|
|
2275
|
-
__css:
|
|
2167
|
+
__css: {
|
|
2276
2168
|
position: 'absolute',
|
|
2277
2169
|
top: 0,
|
|
2278
2170
|
bottom: 0,
|
|
@@ -2291,10 +2183,11 @@ const Overlay = props => {
|
|
|
2291
2183
|
cursor: 'default',
|
|
2292
2184
|
color: alpha('on.surface', 0.6),
|
|
2293
2185
|
opacity: 0.02
|
|
2294
|
-
}
|
|
2295
|
-
|
|
2296
|
-
|
|
2297
|
-
|
|
2186
|
+
},
|
|
2187
|
+
...(forceActive && {
|
|
2188
|
+
opacity: css.get(theme, `buttons.overlays.transparent.focus.opacity`)
|
|
2189
|
+
})
|
|
2190
|
+
}
|
|
2298
2191
|
});
|
|
2299
2192
|
};
|
|
2300
2193
|
|
|
@@ -2324,20 +2217,19 @@ const FilledContainer = /*#__PURE__*/react$1.forwardRef(function FilledContainer
|
|
|
2324
2217
|
error = false,
|
|
2325
2218
|
disabled = false,
|
|
2326
2219
|
forceActive = false,
|
|
2327
|
-
leadingIcon
|
|
2328
|
-
|
|
2329
|
-
|
|
2330
|
-
|
|
2220
|
+
leadingIcon,
|
|
2221
|
+
...otherProps
|
|
2222
|
+
} = props;
|
|
2331
2223
|
const finalLabelHeight = 16;
|
|
2332
2224
|
const labelHeight = finalLabelHeight / 0.75;
|
|
2333
2225
|
const inputHeight = 56;
|
|
2334
2226
|
const color = error ? 'error' : colorProp;
|
|
2335
2227
|
const active = hasFocus || forceActive;
|
|
2336
|
-
return /*#__PURE__*/jsxRuntime.jsxs(Box,
|
|
2228
|
+
return /*#__PURE__*/jsxRuntime.jsxs(Box, {
|
|
2337
2229
|
ref: forwardedRef,
|
|
2338
2230
|
disabled: disabled,
|
|
2339
2231
|
active: active || error,
|
|
2340
|
-
__css:
|
|
2232
|
+
__css: {
|
|
2341
2233
|
position: 'relative',
|
|
2342
2234
|
lineHeight: 0,
|
|
2343
2235
|
width: '100%',
|
|
@@ -2346,14 +2238,16 @@ const FilledContainer = /*#__PURE__*/react$1.forwardRef(function FilledContainer
|
|
|
2346
2238
|
boxSizing: 'border-box',
|
|
2347
2239
|
borderTopRightRadius: "0.25rem",
|
|
2348
2240
|
borderTopLeftRadius: "0.25rem",
|
|
2349
|
-
color: alpha('on.surface-variant', 0.87)
|
|
2350
|
-
|
|
2351
|
-
|
|
2352
|
-
|
|
2353
|
-
|
|
2354
|
-
|
|
2355
|
-
|
|
2356
|
-
|
|
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,
|
|
2357
2251
|
children: [label && /*#__PURE__*/jsxRuntime.jsx(FloatingLabel, {
|
|
2358
2252
|
height: inputHeight,
|
|
2359
2253
|
offsetX: leadingIcon ? PADDING_LEFT_WITH_ICON + ICON_WIDTH + PADDING_LEFT_WITHOUT_ICON : PADDING_LEFT_WITHOUT_ICON,
|
|
@@ -2373,18 +2267,18 @@ const FilledContainer = /*#__PURE__*/react$1.forwardRef(function FilledContainer
|
|
|
2373
2267
|
active: active || error,
|
|
2374
2268
|
color: color
|
|
2375
2269
|
})]
|
|
2376
|
-
})
|
|
2270
|
+
});
|
|
2377
2271
|
});
|
|
2378
2272
|
|
|
2379
2273
|
const NOTCH_PADDING = 4;
|
|
2380
2274
|
|
|
2381
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]`;
|
|
2382
2276
|
|
|
2383
|
-
const InnerContainer = /*#__PURE__*/_styled__default[
|
|
2384
|
-
shouldForwardProp: shouldForwardProp__default[
|
|
2277
|
+
const InnerContainer = /*#__PURE__*/_styled__default["default"]('div', process.env.NODE_ENV === "production" ? {
|
|
2278
|
+
shouldForwardProp: shouldForwardProp__default["default"],
|
|
2385
2279
|
target: "ejp8zhv0"
|
|
2386
2280
|
} : {
|
|
2387
|
-
shouldForwardProp: shouldForwardProp__default[
|
|
2281
|
+
shouldForwardProp: shouldForwardProp__default["default"],
|
|
2388
2282
|
target: "ejp8zhv0",
|
|
2389
2283
|
label: "InnerContainer"
|
|
2390
2284
|
})("position:absolute;display:flex;left:0;top:0;bottom:0;width:100%;height:100%;pointer-events:none;", ({
|
|
@@ -2424,32 +2318,32 @@ const InnerContainer = /*#__PURE__*/_styled__default['default']('div', process.e
|
|
|
2424
2318
|
};
|
|
2425
2319
|
}
|
|
2426
2320
|
|
|
2427
|
-
const inactiveStyle =
|
|
2321
|
+
const inactiveStyle = {
|
|
2428
2322
|
color: 'on.surface-variant',
|
|
2429
|
-
borderColor: 'outline'
|
|
2430
|
-
|
|
2431
|
-
|
|
2323
|
+
borderColor: 'outline',
|
|
2324
|
+
...borderStyling(borderRadius, borderWidth)
|
|
2325
|
+
};
|
|
2432
2326
|
const hoverStyle = {
|
|
2433
2327
|
borderColor: 'on.surface',
|
|
2434
2328
|
color: 'on.surface-variant'
|
|
2435
2329
|
};
|
|
2436
|
-
|
|
2437
|
-
const focusStyle = _extends__default['default']({
|
|
2330
|
+
const focusStyle = {
|
|
2438
2331
|
borderColor: color,
|
|
2439
|
-
color: alpha(color, 0.87)
|
|
2440
|
-
|
|
2441
|
-
|
|
2332
|
+
color: alpha(color, 0.87),
|
|
2333
|
+
...borderStyling(borderRadius, borderWidthWhenFocused)
|
|
2334
|
+
};
|
|
2442
2335
|
const disabledStyle = {
|
|
2443
2336
|
borderColor: alpha('on.surface', 0.06),
|
|
2444
2337
|
color: alpha('on.surface', 0.38)
|
|
2445
2338
|
};
|
|
2446
2339
|
return css.css({
|
|
2447
2340
|
// notch items styles when not focused
|
|
2448
|
-
['[data-notch-outline-item]']:
|
|
2341
|
+
['[data-notch-outline-item]']: {
|
|
2449
2342
|
boxSizing: 'border-box',
|
|
2450
2343
|
borderStyle,
|
|
2451
|
-
transition: `border-color .15s ${EASING_STANDARD}
|
|
2452
|
-
|
|
2344
|
+
transition: `border-color .15s ${EASING_STANDARD}`,
|
|
2345
|
+
...(forceActive ? focusStyle : inactiveStyle)
|
|
2346
|
+
},
|
|
2453
2347
|
// notch items styles when input is hovered
|
|
2454
2348
|
[makeSelector('hover:not([disabled]):not(:focus)')]: forceActive ? focusStyle : hoverStyle,
|
|
2455
2349
|
// notch items styles when input is focused
|
|
@@ -2471,12 +2365,11 @@ const NotchedOutline = /*#__PURE__*/react$1.forwardRef(function NotchedOutline(p
|
|
|
2471
2365
|
notchActive = false,
|
|
2472
2366
|
forceActive = false,
|
|
2473
2367
|
children,
|
|
2474
|
-
label
|
|
2368
|
+
label,
|
|
2369
|
+
...otherProps
|
|
2475
2370
|
/* eslint-enable prefer-const */
|
|
2476
2371
|
|
|
2477
|
-
} = props
|
|
2478
|
-
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
|
|
2479
|
-
|
|
2372
|
+
} = props; // Minimum notch start position that makes sense. Otherwise it will mess up with the border/border radii
|
|
2480
2373
|
|
|
2481
2374
|
const MIN_NOTCH_POSX = (props.borderRadius || 0) + NOTCH_PADDING;
|
|
2482
2375
|
const theme = useTheme();
|
|
@@ -2485,9 +2378,9 @@ const NotchedOutline = /*#__PURE__*/react$1.forwardRef(function NotchedOutline(p
|
|
|
2485
2378
|
value: {
|
|
2486
2379
|
notchStart
|
|
2487
2380
|
},
|
|
2488
|
-
children: [children, /*#__PURE__*/jsxRuntime.jsxs(InnerContainer,
|
|
2489
|
-
ref: forwardedRef
|
|
2490
|
-
|
|
2381
|
+
children: [children, /*#__PURE__*/jsxRuntime.jsxs(InnerContainer, {
|
|
2382
|
+
ref: forwardedRef,
|
|
2383
|
+
...otherProps,
|
|
2491
2384
|
color: borderColor,
|
|
2492
2385
|
theme: theme,
|
|
2493
2386
|
borderRadius: borderRadius,
|
|
@@ -2507,7 +2400,7 @@ const NotchedOutline = /*#__PURE__*/react$1.forwardRef(function NotchedOutline(p
|
|
|
2507
2400
|
}), /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
2508
2401
|
"data-notch-outline-item": "end"
|
|
2509
2402
|
})]
|
|
2510
|
-
})
|
|
2403
|
+
})]
|
|
2511
2404
|
});
|
|
2512
2405
|
});
|
|
2513
2406
|
|
|
@@ -2521,20 +2414,17 @@ const OutlinedContainer = /*#__PURE__*/react$1.forwardRef(function OutlinedConta
|
|
|
2521
2414
|
children,
|
|
2522
2415
|
error,
|
|
2523
2416
|
color: colorProp = 'primary',
|
|
2524
|
-
leadingIcon
|
|
2525
|
-
|
|
2526
|
-
|
|
2527
|
-
|
|
2417
|
+
leadingIcon,
|
|
2418
|
+
...otherProps
|
|
2419
|
+
} = props;
|
|
2528
2420
|
const [labelWidth, setLabelWidth] = react$1.useState(0);
|
|
2529
2421
|
const labelRef = react$1.useRef(null);
|
|
2530
2422
|
useEnhancedEffect$1(() => {
|
|
2531
2423
|
const element = labelRef.current;
|
|
2532
2424
|
|
|
2533
2425
|
if (element) {
|
|
2534
|
-
var _document, _document$fonts, _document$fonts$ready;
|
|
2535
|
-
|
|
2536
2426
|
setLabelWidth(element.offsetWidth);
|
|
2537
|
-
|
|
2427
|
+
document?.fonts?.ready?.then(() => {
|
|
2538
2428
|
// set the label width again once the fonts have been loaded
|
|
2539
2429
|
requestAnimationFrame(() => {
|
|
2540
2430
|
setLabelWidth(element.offsetWidth);
|
|
@@ -2544,10 +2434,10 @@ const OutlinedContainer = /*#__PURE__*/react$1.forwardRef(function OutlinedConta
|
|
|
2544
2434
|
}, [label]);
|
|
2545
2435
|
const color = error ? 'error' : colorProp;
|
|
2546
2436
|
const inputHeight = 56;
|
|
2547
|
-
return /*#__PURE__*/jsxRuntime.jsx(Box,
|
|
2437
|
+
return /*#__PURE__*/jsxRuntime.jsx(Box, {
|
|
2548
2438
|
position: "relative",
|
|
2549
|
-
lineHeight: 0
|
|
2550
|
-
|
|
2439
|
+
lineHeight: 0,
|
|
2440
|
+
...otherProps,
|
|
2551
2441
|
children: /*#__PURE__*/jsxRuntime.jsx(NotchedOutline, {
|
|
2552
2442
|
ref: forwardedRef,
|
|
2553
2443
|
borderRadius: 4,
|
|
@@ -2568,7 +2458,7 @@ const OutlinedContainer = /*#__PURE__*/react$1.forwardRef(function OutlinedConta
|
|
|
2568
2458
|
}),
|
|
2569
2459
|
children: children
|
|
2570
2460
|
})
|
|
2571
|
-
})
|
|
2461
|
+
});
|
|
2572
2462
|
});
|
|
2573
2463
|
|
|
2574
2464
|
const HelperText = /*#__PURE__*/react$1.forwardRef(function HelperText(props, forwardedRef) {
|
|
@@ -2578,9 +2468,9 @@ const HelperText = /*#__PURE__*/react$1.forwardRef(function HelperText(props, fo
|
|
|
2578
2468
|
color: colorProp,
|
|
2579
2469
|
error = false,
|
|
2580
2470
|
disabled = false,
|
|
2581
|
-
__css
|
|
2582
|
-
|
|
2583
|
-
|
|
2471
|
+
__css,
|
|
2472
|
+
...otherProps
|
|
2473
|
+
} = props;
|
|
2584
2474
|
|
|
2585
2475
|
if (!leftSide && !rightSide) {
|
|
2586
2476
|
return null;
|
|
@@ -2596,7 +2486,7 @@ const HelperText = /*#__PURE__*/react$1.forwardRef(function HelperText(props, fo
|
|
|
2596
2486
|
color = alpha('on.surface', 0.6);
|
|
2597
2487
|
}
|
|
2598
2488
|
|
|
2599
|
-
return /*#__PURE__*/jsxRuntime.jsxs(Text,
|
|
2489
|
+
return /*#__PURE__*/jsxRuntime.jsxs(Text, {
|
|
2600
2490
|
as: "div",
|
|
2601
2491
|
px: 16,
|
|
2602
2492
|
display: "flex",
|
|
@@ -2605,15 +2495,16 @@ const HelperText = /*#__PURE__*/react$1.forwardRef(function HelperText(props, fo
|
|
|
2605
2495
|
variant: "label-small",
|
|
2606
2496
|
ref: forwardedRef,
|
|
2607
2497
|
lineHeight: "normal",
|
|
2608
|
-
__css:
|
|
2609
|
-
color
|
|
2610
|
-
|
|
2611
|
-
|
|
2498
|
+
__css: {
|
|
2499
|
+
color,
|
|
2500
|
+
...__css
|
|
2501
|
+
},
|
|
2502
|
+
...otherProps,
|
|
2612
2503
|
children: [leftSide, rightSide && /*#__PURE__*/jsxRuntime.jsx(Box, {
|
|
2613
2504
|
ml: "auto",
|
|
2614
2505
|
children: rightSide
|
|
2615
2506
|
})]
|
|
2616
|
-
})
|
|
2507
|
+
});
|
|
2617
2508
|
});
|
|
2618
2509
|
|
|
2619
2510
|
const IconContainer = ({
|
|
@@ -2674,10 +2565,9 @@ const TextField = /*#__PURE__*/react$1.forwardRef(function TextField(props, forw
|
|
|
2674
2565
|
onBlur,
|
|
2675
2566
|
leadingIcon = null,
|
|
2676
2567
|
trailingIcon = null,
|
|
2677
|
-
containerProps
|
|
2678
|
-
|
|
2679
|
-
|
|
2680
|
-
|
|
2568
|
+
containerProps,
|
|
2569
|
+
...otherProps
|
|
2570
|
+
} = props;
|
|
2681
2571
|
const [value, onChange] = core.useControlledState(valueProp, onChangeProp, defaultValue, setState => e => {
|
|
2682
2572
|
setState(e.target.value);
|
|
2683
2573
|
});
|
|
@@ -2704,7 +2594,7 @@ const TextField = /*#__PURE__*/react$1.forwardRef(function TextField(props, forw
|
|
|
2704
2594
|
display: "inline-flex",
|
|
2705
2595
|
flexDirection: "column",
|
|
2706
2596
|
width: "100%",
|
|
2707
|
-
children: [/*#__PURE__*/jsxRuntime.jsxs(Container,
|
|
2597
|
+
children: [/*#__PURE__*/jsxRuntime.jsxs(Container, {
|
|
2708
2598
|
theme: theme,
|
|
2709
2599
|
label: label,
|
|
2710
2600
|
color: color,
|
|
@@ -2713,12 +2603,12 @@ const TextField = /*#__PURE__*/react$1.forwardRef(function TextField(props, forw
|
|
|
2713
2603
|
inputId: inputId,
|
|
2714
2604
|
hasFocus: hasFocus,
|
|
2715
2605
|
disabled: disabled,
|
|
2716
|
-
leadingIcon: Boolean(leadingIcon)
|
|
2717
|
-
|
|
2606
|
+
leadingIcon: Boolean(leadingIcon),
|
|
2607
|
+
...containerProps,
|
|
2718
2608
|
children: [leadingIcon && /*#__PURE__*/jsxRuntime.jsx(IconContainer, {
|
|
2719
2609
|
position: "start",
|
|
2720
2610
|
children: leadingIcon
|
|
2721
|
-
}), /*#__PURE__*/jsxRuntime.jsx(Input,
|
|
2611
|
+
}), /*#__PURE__*/jsxRuntime.jsx(Input, {
|
|
2722
2612
|
ref: forwardedRef,
|
|
2723
2613
|
as: multiline ? 'textarea' : 'input',
|
|
2724
2614
|
variant: variant,
|
|
@@ -2737,12 +2627,13 @@ const TextField = /*#__PURE__*/react$1.forwardRef(function TextField(props, forw
|
|
|
2737
2627
|
"aria-describedby": helperTextId,
|
|
2738
2628
|
hasLabel: !!label,
|
|
2739
2629
|
leadingIcon: Boolean(leadingIcon),
|
|
2740
|
-
trailingIcon: Boolean(trailingIcon)
|
|
2741
|
-
|
|
2630
|
+
trailingIcon: Boolean(trailingIcon),
|
|
2631
|
+
...otherProps
|
|
2632
|
+
}), trailingIcon && /*#__PURE__*/jsxRuntime.jsx(IconContainer, {
|
|
2742
2633
|
position: "end",
|
|
2743
2634
|
children: trailingIcon
|
|
2744
2635
|
})]
|
|
2745
|
-
})
|
|
2636
|
+
}), /*#__PURE__*/jsxRuntime.jsx(HelperText, {
|
|
2746
2637
|
error: hasError,
|
|
2747
2638
|
disabled: disabled,
|
|
2748
2639
|
leftSide: helperText && /*#__PURE__*/jsxRuntime.jsx("span", {
|
|
@@ -2763,11 +2654,10 @@ const List = /*#__PURE__*/react$1.forwardRef(function List(props, forwardedRef)
|
|
|
2763
2654
|
px = 0,
|
|
2764
2655
|
outlined = true,
|
|
2765
2656
|
variant = 'square',
|
|
2766
|
-
__css = {}
|
|
2767
|
-
|
|
2768
|
-
|
|
2769
|
-
|
|
2770
|
-
return /*#__PURE__*/jsxRuntime.jsx(Paper, _extends__default['default']({
|
|
2657
|
+
__css = {},
|
|
2658
|
+
...otherProps
|
|
2659
|
+
} = props;
|
|
2660
|
+
return /*#__PURE__*/jsxRuntime.jsx(Paper, {
|
|
2771
2661
|
as: innerAs || as,
|
|
2772
2662
|
ref: forwardedRef,
|
|
2773
2663
|
py: py,
|
|
@@ -2776,10 +2666,12 @@ const List = /*#__PURE__*/react$1.forwardRef(function List(props, forwardedRef)
|
|
|
2776
2666
|
darkThemeBackgroundOverlay: elevation,
|
|
2777
2667
|
variant: variant,
|
|
2778
2668
|
outlined: outlined,
|
|
2779
|
-
__css:
|
|
2780
|
-
width: '100%'
|
|
2781
|
-
|
|
2782
|
-
|
|
2669
|
+
__css: {
|
|
2670
|
+
width: '100%',
|
|
2671
|
+
...__css
|
|
2672
|
+
},
|
|
2673
|
+
...otherProps
|
|
2674
|
+
});
|
|
2783
2675
|
});
|
|
2784
2676
|
|
|
2785
2677
|
const ListItem = /*#__PURE__*/react$1.forwardRef(function ListItem(props, forwardedRef) {
|
|
@@ -2792,26 +2684,25 @@ const ListItem = /*#__PURE__*/react$1.forwardRef(function ListItem(props, forwar
|
|
|
2792
2684
|
disabled = false,
|
|
2793
2685
|
color: colorProp,
|
|
2794
2686
|
rippleColor,
|
|
2795
|
-
__css
|
|
2796
|
-
|
|
2797
|
-
|
|
2798
|
-
|
|
2687
|
+
__css,
|
|
2688
|
+
...otherProps
|
|
2689
|
+
} = props;
|
|
2799
2690
|
const selected = ariaSelectedProp || selectedProp;
|
|
2800
2691
|
const color = rippleColor || colorProp || 'primary';
|
|
2801
2692
|
const theme = useTheme();
|
|
2802
2693
|
const baseOpacity = 0.12;
|
|
2803
2694
|
const hoverOpacity = 0.16;
|
|
2804
2695
|
const focusOpacity = 0.24;
|
|
2805
|
-
return /*#__PURE__*/jsxRuntime.jsx(Box,
|
|
2696
|
+
return /*#__PURE__*/jsxRuntime.jsx(Box, {
|
|
2806
2697
|
ref: forwardedRef,
|
|
2807
2698
|
as: innerAs || as,
|
|
2808
2699
|
theme: theme,
|
|
2809
2700
|
display: "flex",
|
|
2810
2701
|
"data-disabled": disabled ? '' : undefined,
|
|
2811
2702
|
"aria-selected": selected ? 'true' : undefined,
|
|
2812
|
-
disabled: disabled
|
|
2813
|
-
|
|
2814
|
-
__css:
|
|
2703
|
+
disabled: disabled,
|
|
2704
|
+
...otherProps,
|
|
2705
|
+
__css: {
|
|
2815
2706
|
variant: 'text.label-large',
|
|
2816
2707
|
px: 3,
|
|
2817
2708
|
py: "0.75rem",
|
|
@@ -2849,23 +2740,23 @@ const ListItem = /*#__PURE__*/react$1.forwardRef(function ListItem(props, forwar
|
|
|
2849
2740
|
cursor: 'default'
|
|
2850
2741
|
},
|
|
2851
2742
|
textDecoration: 'none',
|
|
2852
|
-
WebkitTapHighlightColor: 'transparent'
|
|
2853
|
-
|
|
2743
|
+
WebkitTapHighlightColor: 'transparent',
|
|
2744
|
+
...__css
|
|
2745
|
+
},
|
|
2854
2746
|
children: children
|
|
2855
|
-
})
|
|
2747
|
+
});
|
|
2856
2748
|
});
|
|
2857
2749
|
|
|
2858
2750
|
const ListItemText = /*#__PURE__*/react$1.forwardRef(function ListItemText(props, forwardedRef) {
|
|
2859
2751
|
const {
|
|
2860
2752
|
as: Comp = 'div',
|
|
2861
2753
|
text,
|
|
2862
|
-
secondaryText
|
|
2863
|
-
|
|
2864
|
-
|
|
2865
|
-
|
|
2866
|
-
|
|
2867
|
-
|
|
2868
|
-
}, otherProps, {
|
|
2754
|
+
secondaryText,
|
|
2755
|
+
...otherProps
|
|
2756
|
+
} = props;
|
|
2757
|
+
return /*#__PURE__*/jsxRuntime.jsxs(Comp, {
|
|
2758
|
+
ref: forwardedRef,
|
|
2759
|
+
...otherProps,
|
|
2869
2760
|
children: [text, secondaryText && /*#__PURE__*/jsxRuntime.jsx(Text, {
|
|
2870
2761
|
as: "span",
|
|
2871
2762
|
variant: "body-small",
|
|
@@ -2876,7 +2767,7 @@ const ListItemText = /*#__PURE__*/react$1.forwardRef(function ListItemText(props
|
|
|
2876
2767
|
},
|
|
2877
2768
|
children: secondaryText
|
|
2878
2769
|
})]
|
|
2879
|
-
})
|
|
2770
|
+
});
|
|
2880
2771
|
});
|
|
2881
2772
|
|
|
2882
2773
|
// Combobox
|
|
@@ -2885,33 +2776,34 @@ const ComboboxCore = core.Combobox;
|
|
|
2885
2776
|
const Combobox = /*#__PURE__*/react$1.forwardRef((props, forwardedRef) => {
|
|
2886
2777
|
const {
|
|
2887
2778
|
as = 'div',
|
|
2888
|
-
__css
|
|
2889
|
-
|
|
2890
|
-
|
|
2891
|
-
|
|
2892
|
-
return /*#__PURE__*/jsxRuntime.jsx(ComboboxCore, _extends__default['default']({
|
|
2779
|
+
__css,
|
|
2780
|
+
...otherProps
|
|
2781
|
+
} = props;
|
|
2782
|
+
return /*#__PURE__*/jsxRuntime.jsx(ComboboxCore, {
|
|
2893
2783
|
as: Box,
|
|
2894
2784
|
ref: forwardedRef,
|
|
2895
2785
|
innerAs: as,
|
|
2896
|
-
__css:
|
|
2897
|
-
position: 'relative'
|
|
2898
|
-
|
|
2899
|
-
|
|
2786
|
+
__css: {
|
|
2787
|
+
position: 'relative',
|
|
2788
|
+
...__css
|
|
2789
|
+
},
|
|
2790
|
+
...otherProps
|
|
2791
|
+
});
|
|
2900
2792
|
}); /////////////////////////////////////////////////////
|
|
2901
2793
|
// ComboboxInput
|
|
2902
2794
|
|
|
2903
2795
|
const ComboboxInputCore = core.ComboboxInput;
|
|
2904
2796
|
const ComboboxInput = /*#__PURE__*/react$1.forwardRef((props, forwardedRef) => {
|
|
2905
2797
|
const {
|
|
2906
|
-
as = 'input'
|
|
2907
|
-
|
|
2908
|
-
|
|
2909
|
-
|
|
2910
|
-
return /*#__PURE__*/jsxRuntime.jsx(ComboboxInputCore, _extends__default['default']({
|
|
2798
|
+
as = 'input',
|
|
2799
|
+
...otherProps
|
|
2800
|
+
} = props;
|
|
2801
|
+
return /*#__PURE__*/jsxRuntime.jsx(ComboboxInputCore, {
|
|
2911
2802
|
as: TextField,
|
|
2912
2803
|
ref: forwardedRef,
|
|
2913
|
-
innerAs: as
|
|
2914
|
-
|
|
2804
|
+
innerAs: as,
|
|
2805
|
+
...otherProps
|
|
2806
|
+
});
|
|
2915
2807
|
}); /////////////////////////////////////////////////////
|
|
2916
2808
|
// ComboboxList
|
|
2917
2809
|
|
|
@@ -2919,18 +2811,17 @@ const ComboboxListCore = core.ComboboxList;
|
|
|
2919
2811
|
const ComboboxList = /*#__PURE__*/react$1.forwardRef((props, forwardedRef) => {
|
|
2920
2812
|
const {
|
|
2921
2813
|
as = 'ul',
|
|
2922
|
-
__css
|
|
2923
|
-
|
|
2924
|
-
|
|
2925
|
-
|
|
2926
|
-
return /*#__PURE__*/jsxRuntime.jsx(ComboboxListCore, _extends__default['default']({
|
|
2814
|
+
__css,
|
|
2815
|
+
...otherProps
|
|
2816
|
+
} = props;
|
|
2817
|
+
return /*#__PURE__*/jsxRuntime.jsx(ComboboxListCore, {
|
|
2927
2818
|
as: List,
|
|
2928
2819
|
ref: forwardedRef,
|
|
2929
2820
|
innerAs: as,
|
|
2930
2821
|
outlined: false,
|
|
2931
2822
|
elevation: 2,
|
|
2932
2823
|
darkThemeBackgroundOverlay: 2,
|
|
2933
|
-
__css:
|
|
2824
|
+
__css: {
|
|
2934
2825
|
maxHeight: "18.75rem",
|
|
2935
2826
|
overflowY: 'auto',
|
|
2936
2827
|
borderRadius: 'extra-small',
|
|
@@ -2939,77 +2830,79 @@ const ComboboxList = /*#__PURE__*/react$1.forwardRef((props, forwardedRef) => {
|
|
|
2939
2830
|
},
|
|
2940
2831
|
'[data-popper-placement="bottom"] &': {
|
|
2941
2832
|
transformOrigin: 'top center'
|
|
2942
|
-
}
|
|
2943
|
-
|
|
2944
|
-
|
|
2833
|
+
},
|
|
2834
|
+
...__css
|
|
2835
|
+
},
|
|
2836
|
+
...otherProps
|
|
2837
|
+
});
|
|
2945
2838
|
}); /////////////////////////////////////////////////////
|
|
2946
2839
|
// ComboboxPopperBox
|
|
2947
2840
|
|
|
2948
2841
|
const PopperCore = core.Popper;
|
|
2949
|
-
const ComboboxPopperBox = /*#__PURE__*/react$1.forwardRef((
|
|
2950
|
-
|
|
2951
|
-
|
|
2952
|
-
|
|
2953
|
-
|
|
2954
|
-
|
|
2955
|
-
props = _objectWithoutPropertiesLoose__default['default'](_ref, ["__css", "anchorEl", "as"]);
|
|
2956
|
-
|
|
2842
|
+
const ComboboxPopperBox = /*#__PURE__*/react$1.forwardRef(({
|
|
2843
|
+
__css,
|
|
2844
|
+
anchorEl,
|
|
2845
|
+
as = 'div',
|
|
2846
|
+
...props
|
|
2847
|
+
}, forwardedRef) => {
|
|
2957
2848
|
const ctx = core.useComboBoxContext();
|
|
2958
|
-
return /*#__PURE__*/jsxRuntime.jsx(PopperCore,
|
|
2849
|
+
return /*#__PURE__*/jsxRuntime.jsx(PopperCore, {
|
|
2959
2850
|
as: Box,
|
|
2960
2851
|
innerAs: as,
|
|
2961
2852
|
ref: forwardedRef,
|
|
2962
2853
|
anchorEl: anchorEl || ctx.inputRef,
|
|
2963
|
-
__css:
|
|
2854
|
+
__css: {
|
|
2964
2855
|
zIndex: 1,
|
|
2965
|
-
width: '100%'
|
|
2966
|
-
|
|
2967
|
-
|
|
2856
|
+
width: '100%',
|
|
2857
|
+
...__css
|
|
2858
|
+
},
|
|
2859
|
+
...props
|
|
2860
|
+
});
|
|
2968
2861
|
}); /////////////////////////////////////////////////////
|
|
2969
2862
|
// ComboboxPopover
|
|
2970
2863
|
|
|
2971
2864
|
const ComboboxPopoverCore = core.ComboboxPopover;
|
|
2972
2865
|
const ComboboxPopover = /*#__PURE__*/react$1.forwardRef((props, forwardedRef) => {
|
|
2973
2866
|
const {
|
|
2974
|
-
as = 'div'
|
|
2975
|
-
|
|
2976
|
-
|
|
2977
|
-
|
|
2978
|
-
return /*#__PURE__*/jsxRuntime.jsx(ComboboxPopoverCore, _extends__default['default']({
|
|
2867
|
+
as = 'div',
|
|
2868
|
+
...otherProps
|
|
2869
|
+
} = props;
|
|
2870
|
+
return /*#__PURE__*/jsxRuntime.jsx(ComboboxPopoverCore, {
|
|
2979
2871
|
as: ComboboxPopperBox,
|
|
2980
2872
|
ref: forwardedRef,
|
|
2981
|
-
innerAs: as
|
|
2982
|
-
|
|
2873
|
+
innerAs: as,
|
|
2874
|
+
...otherProps
|
|
2875
|
+
});
|
|
2983
2876
|
}); /////////////////////////////////////////////////////
|
|
2984
2877
|
// ComboboxOption
|
|
2985
2878
|
|
|
2986
2879
|
const ComboboxOptionCore = core.ComboboxOption;
|
|
2987
2880
|
const ComboboxOption = /*#__PURE__*/react$1.forwardRef((props, forwardedRef) => {
|
|
2988
2881
|
const {
|
|
2989
|
-
as = 'li'
|
|
2990
|
-
|
|
2991
|
-
|
|
2992
|
-
|
|
2993
|
-
return /*#__PURE__*/jsxRuntime.jsx(ComboboxOptionCore, _extends__default['default']({
|
|
2882
|
+
as = 'li',
|
|
2883
|
+
...otherProps
|
|
2884
|
+
} = props;
|
|
2885
|
+
return /*#__PURE__*/jsxRuntime.jsx(ComboboxOptionCore, {
|
|
2994
2886
|
as: ListItem,
|
|
2995
2887
|
ref: forwardedRef,
|
|
2996
|
-
innerAs: as
|
|
2997
|
-
|
|
2888
|
+
innerAs: as,
|
|
2889
|
+
...otherProps
|
|
2890
|
+
});
|
|
2998
2891
|
}); /////////////////////////////////////////////////////
|
|
2999
2892
|
// ComboboxLabel
|
|
3000
2893
|
|
|
3001
2894
|
const ComboboxLabelCore = core.ComboboxLabel;
|
|
3002
2895
|
const ComboboxLabel = /*#__PURE__*/react$1.forwardRef((props, forwardedRef) => {
|
|
3003
2896
|
const {
|
|
3004
|
-
as = 'label'
|
|
3005
|
-
|
|
3006
|
-
|
|
3007
|
-
|
|
3008
|
-
return /*#__PURE__*/jsxRuntime.jsx(ComboboxLabelCore, _extends__default['default']({
|
|
2897
|
+
as = 'label',
|
|
2898
|
+
...otherProps
|
|
2899
|
+
} = props;
|
|
2900
|
+
return /*#__PURE__*/jsxRuntime.jsx(ComboboxLabelCore, {
|
|
3009
2901
|
as: Text,
|
|
3010
2902
|
ref: forwardedRef,
|
|
3011
|
-
innerAs: as
|
|
3012
|
-
|
|
2903
|
+
innerAs: as,
|
|
2904
|
+
...otherProps
|
|
2905
|
+
});
|
|
3013
2906
|
}); /////////////////////////////////////////////////////
|
|
3014
2907
|
// ComboboxButton
|
|
3015
2908
|
|
|
@@ -3018,17 +2911,16 @@ const ComboboxButton = /*#__PURE__*/react$1.forwardRef((props, forwardedRef) =>
|
|
|
3018
2911
|
const {
|
|
3019
2912
|
as = 'button',
|
|
3020
2913
|
__css,
|
|
3021
|
-
children
|
|
3022
|
-
|
|
3023
|
-
|
|
3024
|
-
|
|
3025
|
-
return /*#__PURE__*/jsxRuntime.jsx(ComboboxButtonCore, _extends__default['default']({
|
|
2914
|
+
children,
|
|
2915
|
+
...otherProps
|
|
2916
|
+
} = props;
|
|
2917
|
+
return /*#__PURE__*/jsxRuntime.jsx(ComboboxButtonCore, {
|
|
3026
2918
|
as: Button,
|
|
3027
2919
|
ref: forwardedRef,
|
|
3028
2920
|
innerAs: as,
|
|
3029
2921
|
tabIndex: -1,
|
|
3030
2922
|
variant: "icon",
|
|
3031
|
-
__css:
|
|
2923
|
+
__css: {
|
|
3032
2924
|
zIndex: 1,
|
|
3033
2925
|
width: "2.5rem",
|
|
3034
2926
|
height: "2.5rem",
|
|
@@ -3042,9 +2934,10 @@ const ComboboxButton = /*#__PURE__*/react$1.forwardRef((props, forwardedRef) =>
|
|
|
3042
2934
|
'&[aria-expanded="true"] > svg': {
|
|
3043
2935
|
transform: 'rotate(180deg)',
|
|
3044
2936
|
color: 'currentColor'
|
|
3045
|
-
}
|
|
3046
|
-
|
|
3047
|
-
|
|
2937
|
+
},
|
|
2938
|
+
...__css
|
|
2939
|
+
},
|
|
2940
|
+
...otherProps,
|
|
3048
2941
|
children: children || /*#__PURE__*/jsxRuntime.jsx("svg", {
|
|
3049
2942
|
"aria-hidden": true,
|
|
3050
2943
|
viewBox: "0 0 24 24",
|
|
@@ -3054,12 +2947,12 @@ const ComboboxButton = /*#__PURE__*/react$1.forwardRef((props, forwardedRef) =>
|
|
|
3054
2947
|
d: "M7 10l5 5 5-5z"
|
|
3055
2948
|
})
|
|
3056
2949
|
})
|
|
3057
|
-
})
|
|
2950
|
+
});
|
|
3058
2951
|
});
|
|
3059
2952
|
|
|
3060
2953
|
const offset = 29.78333854675293; // document.querySelector(path).getTotalLength()
|
|
3061
2954
|
|
|
3062
|
-
const Path = _styled__default[
|
|
2955
|
+
const Path = _styled__default["default"]("path", process.env.NODE_ENV === "production" ? {
|
|
3063
2956
|
target: "e1v8gifn0"
|
|
3064
2957
|
} : {
|
|
3065
2958
|
target: "e1v8gifn0",
|
|
@@ -3083,7 +2976,7 @@ const CheckPath = ({
|
|
|
3083
2976
|
});
|
|
3084
2977
|
};
|
|
3085
2978
|
|
|
3086
|
-
const Line = _styled__default[
|
|
2979
|
+
const Line = _styled__default["default"]("line", process.env.NODE_ENV === "production" ? {
|
|
3087
2980
|
target: "eat3a050"
|
|
3088
2981
|
} : {
|
|
3089
2982
|
target: "eat3a050",
|
|
@@ -3110,19 +3003,19 @@ const IndeterminatePath = ({
|
|
|
3110
3003
|
});
|
|
3111
3004
|
};
|
|
3112
3005
|
|
|
3113
|
-
const CheckBoxIcon = /*#__PURE__*/react$1.forwardRef(function CheckBoxIcon(
|
|
3114
|
-
|
|
3115
|
-
|
|
3116
|
-
|
|
3117
|
-
|
|
3118
|
-
|
|
3119
|
-
|
|
3120
|
-
|
|
3121
|
-
|
|
3122
|
-
|
|
3123
|
-
|
|
3124
|
-
|
|
3125
|
-
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, {
|
|
3126
3019
|
as: as,
|
|
3127
3020
|
ref: forwardedRef,
|
|
3128
3021
|
backgroundColor: backgroundColor,
|
|
@@ -3140,8 +3033,8 @@ const CheckBoxIcon = /*#__PURE__*/react$1.forwardRef(function CheckBoxIcon(_ref,
|
|
|
3140
3033
|
display: 'block'
|
|
3141
3034
|
},
|
|
3142
3035
|
__css
|
|
3143
|
-
}
|
|
3144
|
-
|
|
3036
|
+
},
|
|
3037
|
+
...otherProps,
|
|
3145
3038
|
children: /*#__PURE__*/jsxRuntime.jsxs("svg", {
|
|
3146
3039
|
viewBox: "0 0 24 24",
|
|
3147
3040
|
children: [/*#__PURE__*/jsxRuntime.jsx(CheckPath, {
|
|
@@ -3150,48 +3043,51 @@ const CheckBoxIcon = /*#__PURE__*/react$1.forwardRef(function CheckBoxIcon(_ref,
|
|
|
3150
3043
|
checked: checked && indeterminate
|
|
3151
3044
|
})]
|
|
3152
3045
|
})
|
|
3153
|
-
})
|
|
3046
|
+
});
|
|
3154
3047
|
});
|
|
3155
3048
|
|
|
3156
3049
|
const SelectionControlLabel = /*#__PURE__*/react$1.forwardRef(function SelectionControlLabel(props, forwardedRef) {
|
|
3157
3050
|
const {
|
|
3158
3051
|
as = 'label',
|
|
3159
|
-
__css
|
|
3160
|
-
|
|
3161
|
-
|
|
3162
|
-
|
|
3163
|
-
return /*#__PURE__*/jsxRuntime.jsx(Box, _extends__default['default']({
|
|
3052
|
+
__css,
|
|
3053
|
+
...otherProps
|
|
3054
|
+
} = props;
|
|
3055
|
+
return /*#__PURE__*/jsxRuntime.jsx(Box, {
|
|
3164
3056
|
ref: forwardedRef,
|
|
3165
3057
|
as: as,
|
|
3166
|
-
__css:
|
|
3058
|
+
__css: {
|
|
3167
3059
|
display: 'inline-flex',
|
|
3168
3060
|
position: 'relative',
|
|
3169
3061
|
alignItems: 'center',
|
|
3170
|
-
WebkitTapHighlightColor: 'transparent'
|
|
3171
|
-
|
|
3172
|
-
|
|
3062
|
+
WebkitTapHighlightColor: 'transparent',
|
|
3063
|
+
...__css
|
|
3064
|
+
},
|
|
3065
|
+
...otherProps
|
|
3066
|
+
});
|
|
3173
3067
|
});
|
|
3174
3068
|
|
|
3175
3069
|
const SelectionControlText = /*#__PURE__*/react$1.forwardRef(function SelectionControlText(props, forwardedRef) {
|
|
3176
3070
|
const {
|
|
3177
3071
|
as = 'span',
|
|
3178
3072
|
disabled,
|
|
3179
|
-
__css
|
|
3180
|
-
|
|
3181
|
-
|
|
3182
|
-
|
|
3183
|
-
return /*#__PURE__*/jsxRuntime.jsx(Text, _extends__default['default']({
|
|
3073
|
+
__css,
|
|
3074
|
+
...otherProps
|
|
3075
|
+
} = props;
|
|
3076
|
+
return /*#__PURE__*/jsxRuntime.jsx(Text, {
|
|
3184
3077
|
ref: forwardedRef,
|
|
3185
3078
|
as: as,
|
|
3186
|
-
__css:
|
|
3187
|
-
p: 1
|
|
3188
|
-
|
|
3189
|
-
|
|
3190
|
-
|
|
3191
|
-
|
|
3192
|
-
|
|
3193
|
-
|
|
3194
|
-
|
|
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
|
+
});
|
|
3195
3091
|
});
|
|
3196
3092
|
|
|
3197
3093
|
const CheckBoxCore$1 = core.CheckBox;
|
|
@@ -3214,10 +3110,9 @@ const CheckBoxInner = /*#__PURE__*/react$1.forwardRef(function CheckBoxInner(pro
|
|
|
3214
3110
|
indeterminate = false,
|
|
3215
3111
|
onChange,
|
|
3216
3112
|
icon = /*#__PURE__*/jsxRuntime.jsx(CheckBoxIcon, {}),
|
|
3217
|
-
__css
|
|
3218
|
-
|
|
3219
|
-
|
|
3220
|
-
|
|
3113
|
+
__css,
|
|
3114
|
+
...otherProps
|
|
3115
|
+
} = props;
|
|
3221
3116
|
const color = checked ? 'primary' : 'on.surface';
|
|
3222
3117
|
const theme = useTheme();
|
|
3223
3118
|
const [backgroundColor, borderColor, opacity] = getColors(disabled, checked);
|
|
@@ -3225,7 +3120,7 @@ const CheckBoxInner = /*#__PURE__*/react$1.forwardRef(function CheckBoxInner(pro
|
|
|
3225
3120
|
position: "relative",
|
|
3226
3121
|
display: "inline-block",
|
|
3227
3122
|
minWidth: "auto",
|
|
3228
|
-
children: [/*#__PURE__*/jsxRuntime.jsx(RippleBox,
|
|
3123
|
+
children: [/*#__PURE__*/jsxRuntime.jsx(RippleBox, {
|
|
3229
3124
|
as: Comp,
|
|
3230
3125
|
type: "checkbox",
|
|
3231
3126
|
checked: checked,
|
|
@@ -3239,9 +3134,9 @@ const CheckBoxInner = /*#__PURE__*/react$1.forwardRef(function CheckBoxInner(pro
|
|
|
3239
3134
|
center: true,
|
|
3240
3135
|
disabled: disabled,
|
|
3241
3136
|
"aria-checked": indeterminate ? checked ? 'mixed' : 'false' : checked ? 'true' : 'false',
|
|
3242
|
-
"data-indeterminate": indeterminate ? '' : undefined
|
|
3243
|
-
|
|
3244
|
-
__css:
|
|
3137
|
+
"data-indeterminate": indeterminate ? '' : undefined,
|
|
3138
|
+
...otherProps,
|
|
3139
|
+
__css: {
|
|
3245
3140
|
top: 0,
|
|
3246
3141
|
left: 0,
|
|
3247
3142
|
width: "2.5rem",
|
|
@@ -3253,9 +3148,10 @@ const CheckBoxInner = /*#__PURE__*/react$1.forwardRef(function CheckBoxInner(pro
|
|
|
3253
3148
|
border: 'none',
|
|
3254
3149
|
borderRadius: 'full',
|
|
3255
3150
|
zIndex: 1,
|
|
3256
|
-
position: 'absolute'
|
|
3257
|
-
|
|
3258
|
-
|
|
3151
|
+
position: 'absolute',
|
|
3152
|
+
...__css
|
|
3153
|
+
}
|
|
3154
|
+
}), /*#__PURE__*/jsxRuntime.jsx(Box, {
|
|
3259
3155
|
__css: {
|
|
3260
3156
|
position: 'relative',
|
|
3261
3157
|
top: 0,
|
|
@@ -3285,17 +3181,18 @@ const CheckBox = /*#__PURE__*/react$1.forwardRef(function CheckBox(props, forwar
|
|
|
3285
3181
|
as = 'input',
|
|
3286
3182
|
icon = /*#__PURE__*/jsxRuntime.jsx(CheckBoxIcon, {}),
|
|
3287
3183
|
disabled,
|
|
3288
|
-
children
|
|
3289
|
-
|
|
3290
|
-
|
|
3184
|
+
children,
|
|
3185
|
+
...otherProps
|
|
3186
|
+
} = props;
|
|
3291
3187
|
|
|
3292
|
-
const inner = /*#__PURE__*/jsxRuntime.jsx(CheckBoxCore$1,
|
|
3188
|
+
const inner = /*#__PURE__*/jsxRuntime.jsx(CheckBoxCore$1, {
|
|
3293
3189
|
as: CheckBoxInner,
|
|
3294
3190
|
innerAs: as,
|
|
3295
3191
|
ref: forwardedRef,
|
|
3296
3192
|
icon: icon,
|
|
3297
|
-
disabled: disabled
|
|
3298
|
-
|
|
3193
|
+
disabled: disabled,
|
|
3194
|
+
...otherProps
|
|
3195
|
+
});
|
|
3299
3196
|
|
|
3300
3197
|
if (!children) {
|
|
3301
3198
|
return inner;
|
|
@@ -3310,9 +3207,10 @@ const CheckBox = /*#__PURE__*/react$1.forwardRef(function CheckBox(props, forwar
|
|
|
3310
3207
|
});
|
|
3311
3208
|
|
|
3312
3209
|
function getFilledCSS(theme, bg, color, disabled) {
|
|
3313
|
-
return
|
|
3314
|
-
|
|
3315
|
-
|
|
3210
|
+
return { ...(!disabled && bg !== 'surface' ? {
|
|
3211
|
+
bg
|
|
3212
|
+
} : { ...getColorOverlay(theme, 'surface', 'primary', 0.05)
|
|
3213
|
+
}),
|
|
3316
3214
|
color,
|
|
3317
3215
|
'&::before': {
|
|
3318
3216
|
backgroundColor: 'currentColor',
|
|
@@ -3330,22 +3228,23 @@ function getFilledCSS(theme, bg, color, disabled) {
|
|
|
3330
3228
|
},
|
|
3331
3229
|
'& > *': {
|
|
3332
3230
|
zIndex: 1
|
|
3333
|
-
}
|
|
3334
|
-
|
|
3335
|
-
|
|
3336
|
-
|
|
3337
|
-
|
|
3231
|
+
},
|
|
3232
|
+
...(disabled && {
|
|
3233
|
+
boxShadow: 0,
|
|
3234
|
+
bg: alpha('on.surface', 0.32)
|
|
3235
|
+
})
|
|
3236
|
+
};
|
|
3338
3237
|
}
|
|
3339
3238
|
|
|
3340
3239
|
function getOutlinedCSS(theme, bg, color, borderOpacity) {
|
|
3341
|
-
return
|
|
3342
|
-
|
|
3343
|
-
|
|
3240
|
+
return { ...(bg !== 'surface' ? {
|
|
3241
|
+
bg
|
|
3242
|
+
} : getDarkThemeBackgroundOverlay(theme, 2)),
|
|
3344
3243
|
color: color,
|
|
3345
3244
|
borderColor: alpha(color, borderOpacity),
|
|
3346
3245
|
borderStyle: 'solid',
|
|
3347
3246
|
borderWidth: "0.0625rem"
|
|
3348
|
-
}
|
|
3247
|
+
};
|
|
3349
3248
|
}
|
|
3350
3249
|
|
|
3351
3250
|
const ChipBase = /*#__PURE__*/react$1.forwardRef(function Chip(props, forwardedRef) {
|
|
@@ -3357,16 +3256,15 @@ const ChipBase = /*#__PURE__*/react$1.forwardRef(function Chip(props, forwardedR
|
|
|
3357
3256
|
backgroundColor: backgroundColorProp = 'surface',
|
|
3358
3257
|
borderOpacity: borderOpacityProp = 0.24,
|
|
3359
3258
|
children,
|
|
3360
|
-
disabled = false
|
|
3361
|
-
|
|
3362
|
-
|
|
3363
|
-
|
|
3259
|
+
disabled = false,
|
|
3260
|
+
...otherProps
|
|
3261
|
+
} = props;
|
|
3364
3262
|
const theme = useTheme();
|
|
3365
|
-
return /*#__PURE__*/jsxRuntime.jsx(Box,
|
|
3263
|
+
return /*#__PURE__*/jsxRuntime.jsx(Box, {
|
|
3366
3264
|
as: as,
|
|
3367
3265
|
"data-disabled": disabled ? '' : undefined,
|
|
3368
3266
|
ref: forwardedRef,
|
|
3369
|
-
__css:
|
|
3267
|
+
__css: {
|
|
3370
3268
|
boxSizing: 'border-box',
|
|
3371
3269
|
position: 'relative',
|
|
3372
3270
|
display: 'inline-flex',
|
|
@@ -3385,22 +3283,24 @@ const ChipBase = /*#__PURE__*/react$1.forwardRef(function Chip(props, forwardedR
|
|
|
3385
3283
|
minWidth: 'auto',
|
|
3386
3284
|
'&::-moz-focus-inner': {
|
|
3387
3285
|
border: 0
|
|
3388
|
-
}
|
|
3389
|
-
|
|
3390
|
-
|
|
3391
|
-
|
|
3392
|
-
|
|
3393
|
-
|
|
3394
|
-
|
|
3395
|
-
|
|
3396
|
-
|
|
3397
|
-
|
|
3398
|
-
|
|
3399
|
-
|
|
3400
|
-
|
|
3401
|
-
|
|
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,
|
|
3402
3302
|
children: children
|
|
3403
|
-
})
|
|
3303
|
+
});
|
|
3404
3304
|
});
|
|
3405
3305
|
|
|
3406
3306
|
const ButtonChip = /*#__PURE__*/react$1.forwardRef(function ButtonChip(props, forwardedRef) {
|
|
@@ -3411,20 +3311,20 @@ const ButtonChip = /*#__PURE__*/react$1.forwardRef(function ButtonChip(props, fo
|
|
|
3411
3311
|
leadingIcon,
|
|
3412
3312
|
trailingIcon,
|
|
3413
3313
|
children,
|
|
3414
|
-
|
|
3415
|
-
|
|
3416
|
-
|
|
3417
|
-
|
|
3314
|
+
color,
|
|
3315
|
+
__css,
|
|
3316
|
+
...otherProps
|
|
3317
|
+
} = props;
|
|
3418
3318
|
const theme = useTheme();
|
|
3419
3319
|
const isClickable = onClick && !disabledProp;
|
|
3420
|
-
return /*#__PURE__*/jsxRuntime.jsx(ChipBase,
|
|
3320
|
+
return /*#__PURE__*/jsxRuntime.jsx(ChipBase, {
|
|
3421
3321
|
as: "div",
|
|
3422
3322
|
onClick: isClickable ? onClick : undefined,
|
|
3423
3323
|
disabled: disabledProp,
|
|
3424
3324
|
color: "on.surface",
|
|
3425
3325
|
backgroundColor: "surface",
|
|
3426
|
-
__css: __css
|
|
3427
|
-
|
|
3326
|
+
__css: __css,
|
|
3327
|
+
...otherProps,
|
|
3428
3328
|
children: /*#__PURE__*/jsxRuntime.jsxs(RippleBox, {
|
|
3429
3329
|
as: as,
|
|
3430
3330
|
role: isClickable ? 'button' : undefined,
|
|
@@ -3461,7 +3361,7 @@ const ButtonChip = /*#__PURE__*/react$1.forwardRef(function ButtonChip(props, fo
|
|
|
3461
3361
|
},
|
|
3462
3362
|
children: [leadingIcon, children, trailingIcon]
|
|
3463
3363
|
})
|
|
3464
|
-
})
|
|
3364
|
+
});
|
|
3465
3365
|
});
|
|
3466
3366
|
|
|
3467
3367
|
const InnerInput = /*#__PURE__*/react$1.forwardRef(function InnerInput(props, forwardedRef) {
|
|
@@ -3479,19 +3379,18 @@ const InnerInput = /*#__PURE__*/react$1.forwardRef(function InnerInput(props, fo
|
|
|
3479
3379
|
leadingIcon,
|
|
3480
3380
|
trailingIcon,
|
|
3481
3381
|
children,
|
|
3482
|
-
__css
|
|
3483
|
-
|
|
3484
|
-
|
|
3485
|
-
|
|
3382
|
+
__css,
|
|
3383
|
+
...otherProps
|
|
3384
|
+
} = props;
|
|
3486
3385
|
const theme = useTheme();
|
|
3487
|
-
return /*#__PURE__*/jsxRuntime.jsx(ChipBase,
|
|
3386
|
+
return /*#__PURE__*/jsxRuntime.jsx(ChipBase, {
|
|
3488
3387
|
as: "label",
|
|
3489
3388
|
disabled: disabled,
|
|
3490
3389
|
backgroundColor: checked ? color + '-container' : 'surface',
|
|
3491
3390
|
color: checked ? 'on.' + color + '-container' : 'on.surface',
|
|
3492
3391
|
borderOpacity: checked ? 0 : 0.24,
|
|
3493
|
-
__css: __css
|
|
3494
|
-
|
|
3392
|
+
__css: __css,
|
|
3393
|
+
...otherProps,
|
|
3495
3394
|
children: /*#__PURE__*/jsxRuntime.jsxs(Box, {
|
|
3496
3395
|
as: "span",
|
|
3497
3396
|
__css: {
|
|
@@ -3537,87 +3436,91 @@ const InnerInput = /*#__PURE__*/react$1.forwardRef(function InnerInput(props, fo
|
|
|
3537
3436
|
}
|
|
3538
3437
|
}), leadingIcon, children, trailingIcon]
|
|
3539
3438
|
})
|
|
3540
|
-
})
|
|
3439
|
+
});
|
|
3541
3440
|
});
|
|
3542
3441
|
const ChoiceChip = /*#__PURE__*/react$1.forwardRef(function ChoiceChip(props, forwardedRef) {
|
|
3543
3442
|
const {
|
|
3544
|
-
type = 'checkbox'
|
|
3545
|
-
|
|
3546
|
-
|
|
3547
|
-
|
|
3443
|
+
type = 'checkbox',
|
|
3444
|
+
...otherProps
|
|
3445
|
+
} = props;
|
|
3548
3446
|
const Comp = type === 'radio' ? core.RadioButton : core.CheckBox;
|
|
3549
|
-
return /*#__PURE__*/jsxRuntime.jsx(Comp,
|
|
3447
|
+
return /*#__PURE__*/jsxRuntime.jsx(Comp, {
|
|
3550
3448
|
ref: forwardedRef,
|
|
3551
3449
|
as: InnerInput,
|
|
3552
|
-
type: type
|
|
3553
|
-
|
|
3450
|
+
type: type,
|
|
3451
|
+
...otherProps
|
|
3452
|
+
});
|
|
3554
3453
|
});
|
|
3555
3454
|
|
|
3556
3455
|
const Divider = /*#__PURE__*/react$1.forwardRef(function Divider(props, forwardedRef) {
|
|
3557
3456
|
const {
|
|
3558
3457
|
as = 'div',
|
|
3559
3458
|
direction = 'horizontal',
|
|
3560
|
-
__css
|
|
3561
|
-
|
|
3562
|
-
|
|
3563
|
-
|
|
3564
|
-
return /*#__PURE__*/jsxRuntime.jsx(Box, _extends__default['default']({
|
|
3459
|
+
__css,
|
|
3460
|
+
...otherProps
|
|
3461
|
+
} = props;
|
|
3462
|
+
return /*#__PURE__*/jsxRuntime.jsx(Box, {
|
|
3565
3463
|
ref: forwardedRef,
|
|
3566
3464
|
as: as,
|
|
3567
|
-
role: "separator"
|
|
3568
|
-
|
|
3569
|
-
__css:
|
|
3465
|
+
role: "separator",
|
|
3466
|
+
...otherProps,
|
|
3467
|
+
__css: {
|
|
3570
3468
|
border: 'none',
|
|
3571
|
-
listStyleType: 'none'
|
|
3572
|
-
|
|
3573
|
-
|
|
3574
|
-
|
|
3575
|
-
|
|
3576
|
-
|
|
3577
|
-
|
|
3578
|
-
|
|
3579
|
-
|
|
3580
|
-
|
|
3581
|
-
|
|
3582
|
-
|
|
3583
|
-
|
|
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
|
+
});
|
|
3584
3485
|
});
|
|
3585
3486
|
|
|
3586
3487
|
const Modal = core.Modal;
|
|
3587
3488
|
const DialogSurface = /*#__PURE__*/react$1.forwardRef(function DialogSurface(props, forwardedRef) {
|
|
3588
3489
|
const {
|
|
3589
3490
|
__css,
|
|
3590
|
-
variant: variantProp = 'base'
|
|
3591
|
-
|
|
3592
|
-
|
|
3593
|
-
|
|
3491
|
+
variant: variantProp = 'base',
|
|
3492
|
+
...otherProps
|
|
3493
|
+
} = props;
|
|
3594
3494
|
const theme = useTheme();
|
|
3595
3495
|
const overlayValue = styledSystem.get(theme, 'dialogs.backgroundColorOverlay') || 0;
|
|
3596
|
-
return /*#__PURE__*/jsxRuntime.jsx(Modal,
|
|
3496
|
+
return /*#__PURE__*/jsxRuntime.jsx(Modal, {
|
|
3597
3497
|
ref: forwardedRef,
|
|
3598
3498
|
as: Paper,
|
|
3599
3499
|
theme: theme,
|
|
3600
3500
|
elevation: 3,
|
|
3601
3501
|
darkThemeBackgroundOverlay: overlayValue,
|
|
3602
|
-
__css:
|
|
3502
|
+
__css: {
|
|
3603
3503
|
position: 'relative',
|
|
3604
3504
|
borderRadius: 'small',
|
|
3605
3505
|
width: '100%',
|
|
3606
3506
|
maxWidth: "37.5rem",
|
|
3607
3507
|
maxHeight: '100%',
|
|
3608
3508
|
overflow: 'auto',
|
|
3609
|
-
pointerEvents: 'auto'
|
|
3610
|
-
|
|
3611
|
-
|
|
3612
|
-
|
|
3613
|
-
|
|
3614
|
-
|
|
3615
|
-
|
|
3616
|
-
|
|
3617
|
-
|
|
3618
|
-
|
|
3619
|
-
|
|
3620
|
-
|
|
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
|
+
});
|
|
3621
3524
|
});
|
|
3622
3525
|
|
|
3623
3526
|
const Dialog = /*#__PURE__*/react$1.forwardRef(function Dialog(props, forwardedRef) {
|
|
@@ -3631,10 +3534,9 @@ const Dialog = /*#__PURE__*/react$1.forwardRef(function Dialog(props, forwardedR
|
|
|
3631
3534
|
containerProps,
|
|
3632
3535
|
scrimProps,
|
|
3633
3536
|
openTimeoutInMilliseconds,
|
|
3634
|
-
closeTimeoutInMilliseconds
|
|
3635
|
-
|
|
3636
|
-
|
|
3637
|
-
|
|
3537
|
+
closeTimeoutInMilliseconds,
|
|
3538
|
+
...otherProps
|
|
3539
|
+
} = props;
|
|
3638
3540
|
const {
|
|
3639
3541
|
containerStyle,
|
|
3640
3542
|
scrimStyle,
|
|
@@ -3651,22 +3553,24 @@ const Dialog = /*#__PURE__*/react$1.forwardRef(function Dialog(props, forwardedR
|
|
|
3651
3553
|
}
|
|
3652
3554
|
|
|
3653
3555
|
return /*#__PURE__*/jsxRuntime.jsx(core.Portal, {
|
|
3654
|
-
children: /*#__PURE__*/jsxRuntime.jsxs(DialogBackdrop,
|
|
3556
|
+
children: /*#__PURE__*/jsxRuntime.jsxs(DialogBackdrop, {
|
|
3655
3557
|
onClose: onClose,
|
|
3656
3558
|
open: openProp,
|
|
3657
3559
|
disableCloseOnClick: disableBackdropClick,
|
|
3658
|
-
disableEscapeKeyDown: disableEscapeKeyDown
|
|
3659
|
-
|
|
3660
|
-
children: [/*#__PURE__*/jsxRuntime.jsx(Scrim,
|
|
3661
|
-
__css: scrimStyle
|
|
3662
|
-
|
|
3663
|
-
|
|
3664
|
-
|
|
3665
|
-
|
|
3666
|
-
|
|
3667
|
-
|
|
3668
|
-
|
|
3669
|
-
|
|
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
|
+
})
|
|
3670
3574
|
});
|
|
3671
3575
|
});
|
|
3672
3576
|
|
|
@@ -3674,14 +3578,13 @@ const Link = /*#__PURE__*/react$1.forwardRef(function Link(props, forwardedRef)
|
|
|
3674
3578
|
const {
|
|
3675
3579
|
as: asProp = 'a',
|
|
3676
3580
|
color = 'primary',
|
|
3677
|
-
__css
|
|
3678
|
-
|
|
3679
|
-
|
|
3680
|
-
|
|
3681
|
-
return /*#__PURE__*/jsxRuntime.jsx(Box, _extends__default['default']({
|
|
3581
|
+
__css,
|
|
3582
|
+
...otherProps
|
|
3583
|
+
} = props;
|
|
3584
|
+
return /*#__PURE__*/jsxRuntime.jsx(Box, {
|
|
3682
3585
|
ref: forwardedRef,
|
|
3683
3586
|
as: asProp,
|
|
3684
|
-
__css:
|
|
3587
|
+
__css: {
|
|
3685
3588
|
fontFamily: 'inherit',
|
|
3686
3589
|
fontSize: 'inherit',
|
|
3687
3590
|
fontWeight: 'inherit',
|
|
@@ -3700,9 +3603,11 @@ const Link = /*#__PURE__*/react$1.forwardRef(function Link(props, forwardedRef)
|
|
|
3700
3603
|
'&:active': {
|
|
3701
3604
|
bg: alpha(color, 0.16)
|
|
3702
3605
|
},
|
|
3703
|
-
WebkitTapHighlightColor: 'transparent'
|
|
3704
|
-
|
|
3705
|
-
|
|
3606
|
+
WebkitTapHighlightColor: 'transparent',
|
|
3607
|
+
...__css
|
|
3608
|
+
},
|
|
3609
|
+
...otherProps
|
|
3610
|
+
});
|
|
3706
3611
|
});
|
|
3707
3612
|
|
|
3708
3613
|
const growAnimation = react.keyframes({
|
|
@@ -3720,100 +3625,89 @@ const growAnimation = react.keyframes({
|
|
|
3720
3625
|
});
|
|
3721
3626
|
|
|
3722
3627
|
const MenuListCore = core.MenuList;
|
|
3723
|
-
const MenuList = /*#__PURE__*/react$1.forwardRef((
|
|
3724
|
-
|
|
3725
|
-
|
|
3726
|
-
|
|
3727
|
-
|
|
3728
|
-
|
|
3729
|
-
|
|
3730
|
-
|
|
3731
|
-
|
|
3732
|
-
|
|
3733
|
-
|
|
3734
|
-
|
|
3735
|
-
|
|
3736
|
-
|
|
3737
|
-
|
|
3738
|
-
|
|
3739
|
-
|
|
3740
|
-
|
|
3741
|
-
|
|
3742
|
-
|
|
3743
|
-
|
|
3744
|
-
|
|
3745
|
-
|
|
3746
|
-
|
|
3747
|
-
|
|
3748
|
-
|
|
3749
|
-
|
|
3750
|
-
|
|
3751
|
-
|
|
3752
|
-
}, props));
|
|
3753
|
-
}); /////////////////////////////////////////////////////
|
|
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
|
+
})); /////////////////////////////////////////////////////
|
|
3754
3657
|
// MenuItem
|
|
3755
3658
|
|
|
3756
|
-
const MenuItem = /*#__PURE__*/react$1.forwardRef((
|
|
3757
|
-
|
|
3758
|
-
|
|
3759
|
-
|
|
3760
|
-
|
|
3761
|
-
|
|
3762
|
-
|
|
3763
|
-
|
|
3764
|
-
|
|
3765
|
-
ref: ref
|
|
3766
|
-
}, props));
|
|
3767
|
-
}); /////////////////////////////////////////////////////
|
|
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
|
+
})); /////////////////////////////////////////////////////
|
|
3768
3668
|
// MenuButton
|
|
3769
3669
|
|
|
3770
|
-
const MenuButton = /*#__PURE__*/react$1.forwardRef((
|
|
3771
|
-
|
|
3772
|
-
|
|
3773
|
-
|
|
3774
|
-
|
|
3775
|
-
|
|
3776
|
-
|
|
3777
|
-
|
|
3778
|
-
|
|
3779
|
-
ref: ref
|
|
3780
|
-
}, props));
|
|
3781
|
-
}); /////////////////////////////////////////////////////
|
|
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
|
+
})); /////////////////////////////////////////////////////
|
|
3782
3679
|
// MenuPopover
|
|
3783
3680
|
|
|
3784
3681
|
const MenuPopoverCore = core.MenuPopover;
|
|
3785
|
-
const MenuPopover = /*#__PURE__*/react$1.forwardRef((
|
|
3786
|
-
|
|
3787
|
-
|
|
3788
|
-
|
|
3789
|
-
|
|
3790
|
-
|
|
3791
|
-
|
|
3792
|
-
|
|
3793
|
-
|
|
3794
|
-
|
|
3795
|
-
|
|
3796
|
-
|
|
3797
|
-
|
|
3798
|
-
|
|
3799
|
-
}, props));
|
|
3800
|
-
});
|
|
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
|
+
}));
|
|
3801
3696
|
|
|
3802
3697
|
const NavRailIndicator = /*#__PURE__*/react$1.forwardRef(function NavRailIndicator(props, forwardedRef) {
|
|
3803
3698
|
const {
|
|
3804
3699
|
as = 'div',
|
|
3805
3700
|
children,
|
|
3806
|
-
__css
|
|
3807
|
-
|
|
3808
|
-
|
|
3809
|
-
|
|
3810
|
-
return /*#__PURE__*/jsxRuntime.jsx(Box, _extends__default['default']({
|
|
3701
|
+
__css,
|
|
3702
|
+
...otherProps
|
|
3703
|
+
} = props;
|
|
3704
|
+
return /*#__PURE__*/jsxRuntime.jsx(Box, {
|
|
3811
3705
|
color: "currentColor",
|
|
3812
3706
|
ref: forwardedRef,
|
|
3813
3707
|
as: as,
|
|
3814
|
-
"data-nav-rail-item-indicator": ""
|
|
3815
|
-
|
|
3816
|
-
__css:
|
|
3708
|
+
"data-nav-rail-item-indicator": "",
|
|
3709
|
+
...otherProps,
|
|
3710
|
+
__css: {
|
|
3817
3711
|
width: '100%',
|
|
3818
3712
|
height: '100%',
|
|
3819
3713
|
maxWidth: "3.5rem",
|
|
@@ -3825,33 +3719,34 @@ const NavRailIndicator = /*#__PURE__*/react$1.forwardRef(function NavRailIndicat
|
|
|
3825
3719
|
justifyContent: 'center',
|
|
3826
3720
|
minHeight: "2rem",
|
|
3827
3721
|
transition: `background-color .2s ${EASING_STANDARD}`,
|
|
3828
|
-
pointerEvents: 'none'
|
|
3829
|
-
|
|
3722
|
+
pointerEvents: 'none',
|
|
3723
|
+
...__css
|
|
3724
|
+
},
|
|
3830
3725
|
children: children
|
|
3831
|
-
})
|
|
3726
|
+
});
|
|
3832
3727
|
});
|
|
3833
3728
|
const NavRailLabel = /*#__PURE__*/react$1.forwardRef(function NavRailLabel(props, forwardedRef) {
|
|
3834
3729
|
const {
|
|
3835
3730
|
as = 'div',
|
|
3836
3731
|
children,
|
|
3837
|
-
__css
|
|
3838
|
-
|
|
3839
|
-
|
|
3840
|
-
|
|
3841
|
-
return /*#__PURE__*/jsxRuntime.jsx(Text, _extends__default['default']({
|
|
3732
|
+
__css,
|
|
3733
|
+
...otherProps
|
|
3734
|
+
} = props;
|
|
3735
|
+
return /*#__PURE__*/jsxRuntime.jsx(Text, {
|
|
3842
3736
|
ref: forwardedRef,
|
|
3843
3737
|
as: as,
|
|
3844
3738
|
variant: "label-small",
|
|
3845
|
-
lineHeight: 1
|
|
3846
|
-
|
|
3847
|
-
__css:
|
|
3739
|
+
lineHeight: 1,
|
|
3740
|
+
...otherProps,
|
|
3741
|
+
__css: {
|
|
3848
3742
|
pt: "0.25rem",
|
|
3849
3743
|
pb: "0.75rem",
|
|
3850
3744
|
color: 'inherit',
|
|
3851
|
-
pointerEvents: 'none'
|
|
3852
|
-
|
|
3745
|
+
pointerEvents: 'none',
|
|
3746
|
+
...__css
|
|
3747
|
+
},
|
|
3853
3748
|
children: children
|
|
3854
|
-
})
|
|
3749
|
+
});
|
|
3855
3750
|
});
|
|
3856
3751
|
const NavRailItem = /*#__PURE__*/react$1.forwardRef(function NavRailItem(props, forwardedRef) {
|
|
3857
3752
|
const {
|
|
@@ -3863,10 +3758,9 @@ const NavRailItem = /*#__PURE__*/react$1.forwardRef(function NavRailItem(props,
|
|
|
3863
3758
|
style,
|
|
3864
3759
|
onKeyDown,
|
|
3865
3760
|
onPointerDown,
|
|
3866
|
-
__css
|
|
3867
|
-
|
|
3868
|
-
|
|
3869
|
-
|
|
3761
|
+
__css,
|
|
3762
|
+
...otherProps
|
|
3763
|
+
} = props;
|
|
3870
3764
|
const theme = useTheme();
|
|
3871
3765
|
const baseOpacity = 0,
|
|
3872
3766
|
hoverOpacity = 0.04,
|
|
@@ -3899,17 +3793,19 @@ const NavRailItem = /*#__PURE__*/react$1.forwardRef(function NavRailItem(props,
|
|
|
3899
3793
|
|
|
3900
3794
|
return ret;
|
|
3901
3795
|
}, [ripple.__css]);
|
|
3902
|
-
return /*#__PURE__*/jsxRuntime.jsx(Box,
|
|
3796
|
+
return /*#__PURE__*/jsxRuntime.jsx(Box, {
|
|
3903
3797
|
ref: forwardedRef,
|
|
3904
|
-
as: as
|
|
3905
|
-
|
|
3798
|
+
as: as,
|
|
3799
|
+
...otherProps,
|
|
3906
3800
|
onPointerDown: ripple.onPointerDown,
|
|
3907
3801
|
onKeyDown: ripple.onKeyDown,
|
|
3908
3802
|
"aria-pressed": selected,
|
|
3909
3803
|
type: "button",
|
|
3910
|
-
style:
|
|
3804
|
+
style: { ...ripple.style,
|
|
3805
|
+
...style
|
|
3806
|
+
},
|
|
3911
3807
|
disabled: disabled,
|
|
3912
|
-
__css:
|
|
3808
|
+
__css: {
|
|
3913
3809
|
display: 'flex',
|
|
3914
3810
|
flexDirection: 'column',
|
|
3915
3811
|
alignItems: 'center',
|
|
@@ -3928,18 +3824,20 @@ const NavRailItem = /*#__PURE__*/react$1.forwardRef(function NavRailItem(props,
|
|
|
3928
3824
|
height: "3.75rem",
|
|
3929
3825
|
cursor: 'pointer',
|
|
3930
3826
|
textDecoration: 'none',
|
|
3931
|
-
WebkitTapHighlightColor: 'transparent'
|
|
3932
|
-
|
|
3827
|
+
WebkitTapHighlightColor: 'transparent',
|
|
3828
|
+
...rippleCss,
|
|
3829
|
+
...__css
|
|
3830
|
+
},
|
|
3933
3831
|
children: children
|
|
3934
|
-
})
|
|
3832
|
+
});
|
|
3935
3833
|
});
|
|
3936
3834
|
|
|
3937
3835
|
const innerDivRotate = react.keyframes({
|
|
3938
3836
|
'0%': {
|
|
3939
|
-
|
|
3837
|
+
transform: 'rotate(-90deg)'
|
|
3940
3838
|
},
|
|
3941
3839
|
'100%': {
|
|
3942
|
-
transform: 'rotate(
|
|
3840
|
+
transform: 'rotate(270deg)'
|
|
3943
3841
|
}
|
|
3944
3842
|
});
|
|
3945
3843
|
const circleIndeterminate = react.keyframes({
|
|
@@ -3962,32 +3860,33 @@ const ProgressSpinner = /*#__PURE__*/react$1.forwardRef(function ProgressSpinner
|
|
|
3962
3860
|
__css,
|
|
3963
3861
|
progress: progressProp,
|
|
3964
3862
|
thickness = 3.6,
|
|
3965
|
-
size = 40
|
|
3966
|
-
|
|
3967
|
-
|
|
3968
|
-
|
|
3863
|
+
size = 40,
|
|
3864
|
+
...otherProps
|
|
3865
|
+
} = props;
|
|
3969
3866
|
const indeterminate = progressProp === undefined;
|
|
3970
|
-
const progress = progressProp
|
|
3867
|
+
const progress = progressProp ?? 0;
|
|
3971
3868
|
const circumference = 2 * Math.PI * ((SIZE - thickness) / 2);
|
|
3972
|
-
return /*#__PURE__*/jsxRuntime.jsx(Box,
|
|
3973
|
-
ref: forwardedRef
|
|
3974
|
-
|
|
3975
|
-
__css:
|
|
3869
|
+
return /*#__PURE__*/jsxRuntime.jsx(Box, {
|
|
3870
|
+
ref: forwardedRef,
|
|
3871
|
+
...otherProps,
|
|
3872
|
+
__css: {
|
|
3976
3873
|
color: 'primary',
|
|
3977
3874
|
display: 'inline-block',
|
|
3978
3875
|
width: polished.rem(size),
|
|
3979
|
-
height: polished.rem(size)
|
|
3980
|
-
|
|
3876
|
+
height: polished.rem(size),
|
|
3877
|
+
...__css
|
|
3878
|
+
},
|
|
3981
3879
|
children: /*#__PURE__*/jsxRuntime.jsx(Box, {
|
|
3982
|
-
__css:
|
|
3880
|
+
__css: {
|
|
3983
3881
|
display: 'inline-block',
|
|
3984
3882
|
width: '100%',
|
|
3985
|
-
height: '100%'
|
|
3986
|
-
|
|
3987
|
-
|
|
3988
|
-
|
|
3989
|
-
|
|
3990
|
-
|
|
3883
|
+
height: '100%',
|
|
3884
|
+
transformOrigin: '50% 50%',
|
|
3885
|
+
transform: 'rotate(-90deg)',
|
|
3886
|
+
...(indeterminate && {
|
|
3887
|
+
animation: `${innerDivRotate} 1.4s linear infinite`
|
|
3888
|
+
})
|
|
3889
|
+
},
|
|
3991
3890
|
children: /*#__PURE__*/jsxRuntime.jsx(Box, {
|
|
3992
3891
|
as: "svg",
|
|
3993
3892
|
viewBox: "22 22 44 44",
|
|
@@ -4004,9 +3903,7 @@ const ProgressSpinner = /*#__PURE__*/react$1.forwardRef(function ProgressSpinner
|
|
|
4004
3903
|
strokeDashoffset: `${((100 - progress) / 100 * circumference).toFixed(3)}px`
|
|
4005
3904
|
},
|
|
4006
3905
|
__css: indeterminate ? {
|
|
4007
|
-
animation: `${circleIndeterminate} 1.4s ease-in-out infinite
|
|
4008
|
-
strokeDasharray: '80px, 200px',
|
|
4009
|
-
strokeDashoffset: '0px'
|
|
3906
|
+
animation: `${circleIndeterminate} 1.4s ease-in-out infinite`
|
|
4010
3907
|
} : {
|
|
4011
3908
|
transition: `stroke-dashoffset 300ms ${EASING_STANDARD} 0ms`,
|
|
4012
3909
|
strokeDasharray: circumference.toFixed(3)
|
|
@@ -4014,16 +3911,15 @@ const ProgressSpinner = /*#__PURE__*/react$1.forwardRef(function ProgressSpinner
|
|
|
4014
3911
|
})
|
|
4015
3912
|
})
|
|
4016
3913
|
})
|
|
4017
|
-
})
|
|
3914
|
+
});
|
|
4018
3915
|
});
|
|
4019
3916
|
|
|
4020
3917
|
const RadioButtonIcon = /*#__PURE__*/react$1.forwardRef(function RadioButtonIcon(props, forwardedRef) {
|
|
4021
3918
|
const {
|
|
4022
|
-
checked
|
|
4023
|
-
|
|
4024
|
-
|
|
4025
|
-
|
|
4026
|
-
return /*#__PURE__*/jsxRuntime.jsx(Box, _extends__default['default']({
|
|
3919
|
+
checked,
|
|
3920
|
+
...otherProps
|
|
3921
|
+
} = props;
|
|
3922
|
+
return /*#__PURE__*/jsxRuntime.jsx(Box, {
|
|
4027
3923
|
ref: forwardedRef,
|
|
4028
3924
|
__css: {
|
|
4029
3925
|
borderColor: 'currentColor',
|
|
@@ -4033,8 +3929,8 @@ const RadioButtonIcon = /*#__PURE__*/react$1.forwardRef(function RadioButtonIcon
|
|
|
4033
3929
|
width: '100%',
|
|
4034
3930
|
height: '100%',
|
|
4035
3931
|
p: "0.1875rem"
|
|
4036
|
-
}
|
|
4037
|
-
|
|
3932
|
+
},
|
|
3933
|
+
...otherProps,
|
|
4038
3934
|
children: /*#__PURE__*/jsxRuntime.jsx(Box, {
|
|
4039
3935
|
__css: {
|
|
4040
3936
|
backgroundColor: 'currentColor',
|
|
@@ -4045,7 +3941,7 @@ const RadioButtonIcon = /*#__PURE__*/react$1.forwardRef(function RadioButtonIcon
|
|
|
4045
3941
|
transform: checked ? 'scale(1)' : 'scale(0)'
|
|
4046
3942
|
}
|
|
4047
3943
|
})
|
|
4048
|
-
})
|
|
3944
|
+
});
|
|
4049
3945
|
});
|
|
4050
3946
|
|
|
4051
3947
|
const RadioButtonInner = /*#__PURE__*/react$1.forwardRef(function RadioButtonInner(props, forwardedRef) {
|
|
@@ -4053,17 +3949,16 @@ const RadioButtonInner = /*#__PURE__*/react$1.forwardRef(function RadioButtonInn
|
|
|
4053
3949
|
innerAs: as,
|
|
4054
3950
|
checked,
|
|
4055
3951
|
disabled,
|
|
4056
|
-
__css
|
|
4057
|
-
|
|
4058
|
-
|
|
4059
|
-
|
|
3952
|
+
__css,
|
|
3953
|
+
...otherProps
|
|
3954
|
+
} = props;
|
|
4060
3955
|
const color = 'primary';
|
|
4061
3956
|
const theme = useTheme();
|
|
4062
3957
|
return /*#__PURE__*/jsxRuntime.jsxs(Box, {
|
|
4063
3958
|
position: "relative",
|
|
4064
3959
|
display: "inline-block",
|
|
4065
3960
|
minWidth: "auto",
|
|
4066
|
-
children: [/*#__PURE__*/jsxRuntime.jsx(RippleBox,
|
|
3961
|
+
children: [/*#__PURE__*/jsxRuntime.jsx(RippleBox, {
|
|
4067
3962
|
as: as,
|
|
4068
3963
|
checked: checked,
|
|
4069
3964
|
ref: forwardedRef,
|
|
@@ -4074,7 +3969,7 @@ const RadioButtonInner = /*#__PURE__*/react$1.forwardRef(function RadioButtonInn
|
|
|
4074
3969
|
center: true,
|
|
4075
3970
|
disabled: disabled,
|
|
4076
3971
|
theme: theme,
|
|
4077
|
-
__css:
|
|
3972
|
+
__css: {
|
|
4078
3973
|
top: 0,
|
|
4079
3974
|
left: 0,
|
|
4080
3975
|
width: "2.5rem",
|
|
@@ -4086,9 +3981,11 @@ const RadioButtonInner = /*#__PURE__*/react$1.forwardRef(function RadioButtonInn
|
|
|
4086
3981
|
border: 'none',
|
|
4087
3982
|
borderRadius: 'full',
|
|
4088
3983
|
zIndex: 1,
|
|
4089
|
-
position: 'absolute'
|
|
4090
|
-
|
|
4091
|
-
|
|
3984
|
+
position: 'absolute',
|
|
3985
|
+
...__css
|
|
3986
|
+
},
|
|
3987
|
+
...otherProps
|
|
3988
|
+
}), /*#__PURE__*/jsxRuntime.jsx(Box, {
|
|
4092
3989
|
__css: {
|
|
4093
3990
|
position: 'relative',
|
|
4094
3991
|
top: 0,
|
|
@@ -4115,16 +4012,17 @@ const RadioButton = /*#__PURE__*/react$1.forwardRef(function RadioButton(props,
|
|
|
4115
4012
|
const {
|
|
4116
4013
|
as = 'input',
|
|
4117
4014
|
children,
|
|
4118
|
-
disabled
|
|
4119
|
-
|
|
4120
|
-
|
|
4015
|
+
disabled,
|
|
4016
|
+
...otherProps
|
|
4017
|
+
} = props;
|
|
4121
4018
|
|
|
4122
|
-
const inner = /*#__PURE__*/jsxRuntime.jsx(core.RadioButton,
|
|
4019
|
+
const inner = /*#__PURE__*/jsxRuntime.jsx(core.RadioButton, {
|
|
4123
4020
|
as: RadioButtonInner,
|
|
4124
4021
|
innerAs: as,
|
|
4125
4022
|
ref: forwardedRef,
|
|
4126
|
-
disabled: disabled
|
|
4127
|
-
|
|
4023
|
+
disabled: disabled,
|
|
4024
|
+
...otherProps
|
|
4025
|
+
});
|
|
4128
4026
|
|
|
4129
4027
|
if (!children) {
|
|
4130
4028
|
return inner;
|
|
@@ -4140,54 +4038,51 @@ const RadioButton = /*#__PURE__*/react$1.forwardRef(function RadioButton(props,
|
|
|
4140
4038
|
|
|
4141
4039
|
const RadioGroup = /*#__PURE__*/react$1.forwardRef(function RadioGroup(props, forwardedRef) {
|
|
4142
4040
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
4143
|
-
const
|
|
4144
|
-
|
|
4145
|
-
|
|
4041
|
+
const {
|
|
4042
|
+
as,
|
|
4043
|
+
...otherProps
|
|
4044
|
+
} = props;
|
|
4045
|
+
return /*#__PURE__*/jsxRuntime.jsx(Box, {
|
|
4146
4046
|
as: core.RadioGroup,
|
|
4147
|
-
ref: forwardedRef
|
|
4148
|
-
|
|
4047
|
+
ref: forwardedRef,
|
|
4048
|
+
...otherProps
|
|
4049
|
+
});
|
|
4149
4050
|
});
|
|
4150
4051
|
|
|
4151
|
-
const Select$1 = /*#__PURE__*/react$1.forwardRef((
|
|
4152
|
-
|
|
4153
|
-
|
|
4154
|
-
|
|
4155
|
-
props = _objectWithoutPropertiesLoose__default['default'](_ref, ["as"]);
|
|
4156
|
-
|
|
4052
|
+
const Select$1 = /*#__PURE__*/react$1.forwardRef(({
|
|
4053
|
+
as: asProp = 'select',
|
|
4054
|
+
...props
|
|
4055
|
+
}, forwardedRef) => {
|
|
4157
4056
|
const InputSelect = Input;
|
|
4158
|
-
return /*#__PURE__*/jsxRuntime.jsx(InputSelect,
|
|
4057
|
+
return /*#__PURE__*/jsxRuntime.jsx(InputSelect, {
|
|
4159
4058
|
as: asProp,
|
|
4160
|
-
ref: forwardedRef
|
|
4161
|
-
|
|
4059
|
+
ref: forwardedRef,
|
|
4060
|
+
...props
|
|
4061
|
+
});
|
|
4162
4062
|
});
|
|
4163
|
-
const SelectButtonInner = /*#__PURE__*/react$1.forwardRef((
|
|
4164
|
-
|
|
4165
|
-
|
|
4166
|
-
|
|
4167
|
-
props = _objectWithoutPropertiesLoose__default['default'](_ref2, ["innerAs"]);
|
|
4168
|
-
|
|
4063
|
+
const SelectButtonInner = /*#__PURE__*/react$1.forwardRef(({
|
|
4064
|
+
innerAs = 'div',
|
|
4065
|
+
...props
|
|
4066
|
+
}, forwardedRef) => {
|
|
4169
4067
|
const InputButton = Input;
|
|
4170
|
-
return /*#__PURE__*/jsxRuntime.jsx(InputButton,
|
|
4068
|
+
return /*#__PURE__*/jsxRuntime.jsx(InputButton, {
|
|
4171
4069
|
as: innerAs,
|
|
4172
4070
|
ref: forwardedRef,
|
|
4173
|
-
tabIndex: 0
|
|
4174
|
-
|
|
4175
|
-
});
|
|
4176
|
-
const SelectButton = /*#__PURE__*/react$1.forwardRef((_ref3, ref) => {
|
|
4177
|
-
let {
|
|
4178
|
-
as,
|
|
4179
|
-
children
|
|
4180
|
-
} = _ref3,
|
|
4181
|
-
props = _objectWithoutPropertiesLoose__default['default'](_ref3, ["as", "children"]);
|
|
4182
|
-
|
|
4183
|
-
return /*#__PURE__*/jsxRuntime.jsx(core.MenuButton, _extends__default['default']({
|
|
4184
|
-
as: SelectButtonInner,
|
|
4185
|
-
innerAs: as,
|
|
4186
|
-
ref: ref
|
|
4187
|
-
}, props, {
|
|
4188
|
-
children: children
|
|
4189
|
-
}));
|
|
4071
|
+
tabIndex: 0,
|
|
4072
|
+
...props
|
|
4073
|
+
});
|
|
4190
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
|
+
}));
|
|
4191
4086
|
|
|
4192
4087
|
const selectContext = /*#__PURE__*/react$1.createContext({
|
|
4193
4088
|
native: false,
|
|
@@ -4201,11 +4096,10 @@ const useSelectContext = () => react$1.useContext(selectContext);
|
|
|
4201
4096
|
|
|
4202
4097
|
const SelectIcon = /*#__PURE__*/react$1.forwardRef(function SelectIcon(props, forwardedRef) {
|
|
4203
4098
|
const {
|
|
4204
|
-
open
|
|
4205
|
-
|
|
4206
|
-
|
|
4207
|
-
|
|
4208
|
-
return /*#__PURE__*/jsxRuntime.jsx(Box, _extends__default['default']({
|
|
4099
|
+
open,
|
|
4100
|
+
...otherProps
|
|
4101
|
+
} = props;
|
|
4102
|
+
return /*#__PURE__*/jsxRuntime.jsx(Box, {
|
|
4209
4103
|
ref: forwardedRef,
|
|
4210
4104
|
as: "svg",
|
|
4211
4105
|
"aria-hidden": true,
|
|
@@ -4220,13 +4114,13 @@ const SelectIcon = /*#__PURE__*/react$1.forwardRef(function SelectIcon(props, fo
|
|
|
4220
4114
|
pointerEvents: 'none',
|
|
4221
4115
|
transform: open ? 'rotate(180deg)' : undefined,
|
|
4222
4116
|
transition: `transform .15s ${EASING_STANDARD}, color .15s ${EASING_STANDARD}`
|
|
4223
|
-
}
|
|
4224
|
-
|
|
4117
|
+
},
|
|
4118
|
+
...otherProps,
|
|
4225
4119
|
children: /*#__PURE__*/jsxRuntime.jsx("path", {
|
|
4226
4120
|
fill: "currentColor",
|
|
4227
4121
|
d: "M7 10l5 5 5-5z"
|
|
4228
4122
|
})
|
|
4229
|
-
})
|
|
4123
|
+
});
|
|
4230
4124
|
});
|
|
4231
4125
|
|
|
4232
4126
|
const makeDefaultRender = children => val => {
|
|
@@ -4252,8 +4146,6 @@ const componentMap = {
|
|
|
4252
4146
|
filled: FilledContainer
|
|
4253
4147
|
};
|
|
4254
4148
|
const Select = /*#__PURE__*/react$1.forwardRef(function Select(props, forwardedRef) {
|
|
4255
|
-
var _buttonRef$current;
|
|
4256
|
-
|
|
4257
4149
|
const {
|
|
4258
4150
|
id: idProp,
|
|
4259
4151
|
variant = 'outlined',
|
|
@@ -4271,10 +4163,9 @@ const Select = /*#__PURE__*/react$1.forwardRef(function Select(props, forwardedR
|
|
|
4271
4163
|
native = false,
|
|
4272
4164
|
children,
|
|
4273
4165
|
renderValue: renderValueProp,
|
|
4274
|
-
leadingIcon = null
|
|
4275
|
-
|
|
4276
|
-
|
|
4277
|
-
|
|
4166
|
+
leadingIcon = null,
|
|
4167
|
+
...otherProps
|
|
4168
|
+
} = props;
|
|
4278
4169
|
const [value, onChange] = core.useControlledState(valueProp, onChangeProp, defaultValue, setState => (e, v) => {
|
|
4279
4170
|
setState(v);
|
|
4280
4171
|
});
|
|
@@ -4345,7 +4236,7 @@ const Select = /*#__PURE__*/react$1.forwardRef(function Select(props, forwardedR
|
|
|
4345
4236
|
children: [leadingIcon && /*#__PURE__*/jsxRuntime.jsx(IconContainer, {
|
|
4346
4237
|
position: "start",
|
|
4347
4238
|
children: leadingIcon
|
|
4348
|
-
}), /*#__PURE__*/jsxRuntime.jsx(Comp,
|
|
4239
|
+
}), /*#__PURE__*/jsxRuntime.jsx(Comp, {
|
|
4349
4240
|
ref: core.assignMultipleRefs(forwardedRef, buttonRef),
|
|
4350
4241
|
variant: variant,
|
|
4351
4242
|
id: inputId,
|
|
@@ -4360,15 +4251,15 @@ const Select = /*#__PURE__*/react$1.forwardRef(function Select(props, forwardedR
|
|
|
4360
4251
|
"aria-describedby": helperTextId,
|
|
4361
4252
|
hasLabel: !!label,
|
|
4362
4253
|
leadingIcon: Boolean(leadingIcon),
|
|
4363
|
-
trailingIcon: true
|
|
4364
|
-
|
|
4254
|
+
trailingIcon: true,
|
|
4255
|
+
...otherProps,
|
|
4365
4256
|
children: native ? children : renderValue(value)
|
|
4366
|
-
})
|
|
4257
|
+
}), !native && /*#__PURE__*/jsxRuntime.jsx(MenuPopover, {
|
|
4367
4258
|
usePortal: true,
|
|
4368
4259
|
children: /*#__PURE__*/jsxRuntime.jsx(MenuList, {
|
|
4369
4260
|
defaultActiveItemValue: value,
|
|
4370
4261
|
style: {
|
|
4371
|
-
minWidth: buttonRef
|
|
4262
|
+
minWidth: buttonRef?.current?.offsetWidth
|
|
4372
4263
|
},
|
|
4373
4264
|
role: "listbox",
|
|
4374
4265
|
children: children
|
|
@@ -4394,10 +4285,9 @@ const SelectItem = /*#__PURE__*/react$1.forwardRef(function SelectItem(props, fo
|
|
|
4394
4285
|
onSelect: onSelectProp,
|
|
4395
4286
|
children,
|
|
4396
4287
|
value: valueProp,
|
|
4397
|
-
disabled
|
|
4398
|
-
|
|
4399
|
-
|
|
4400
|
-
|
|
4288
|
+
disabled,
|
|
4289
|
+
...otherProps
|
|
4290
|
+
} = props;
|
|
4401
4291
|
const {
|
|
4402
4292
|
native,
|
|
4403
4293
|
onSelect,
|
|
@@ -4406,13 +4296,13 @@ const SelectItem = /*#__PURE__*/react$1.forwardRef(function SelectItem(props, fo
|
|
|
4406
4296
|
const value = valueProp !== undefined && valueProp !== null ? String(valueProp) : children;
|
|
4407
4297
|
|
|
4408
4298
|
if (native) {
|
|
4409
|
-
return /*#__PURE__*/jsxRuntime.jsx("option",
|
|
4299
|
+
return /*#__PURE__*/jsxRuntime.jsx("option", {
|
|
4410
4300
|
ref: forwardedRef,
|
|
4411
4301
|
value: value,
|
|
4412
|
-
disabled: disabled
|
|
4413
|
-
|
|
4302
|
+
disabled: disabled,
|
|
4303
|
+
...otherProps,
|
|
4414
4304
|
children: children
|
|
4415
|
-
})
|
|
4305
|
+
});
|
|
4416
4306
|
}
|
|
4417
4307
|
|
|
4418
4308
|
if (children === undefined && disabled) {
|
|
@@ -4420,17 +4310,17 @@ const SelectItem = /*#__PURE__*/react$1.forwardRef(function SelectItem(props, fo
|
|
|
4420
4310
|
}
|
|
4421
4311
|
|
|
4422
4312
|
const selected = value === String(selectedValue);
|
|
4423
|
-
return /*#__PURE__*/jsxRuntime.jsx(Comp,
|
|
4313
|
+
return /*#__PURE__*/jsxRuntime.jsx(Comp, {
|
|
4424
4314
|
as: MenuItem,
|
|
4425
4315
|
onSelect: core.wrapEvent(onSelectProp, onSelect),
|
|
4426
4316
|
"data-value": value,
|
|
4427
4317
|
disabled: disabled,
|
|
4428
4318
|
ref: forwardedRef,
|
|
4429
4319
|
role: "option",
|
|
4430
|
-
selected: selected
|
|
4431
|
-
|
|
4320
|
+
selected: selected,
|
|
4321
|
+
...otherProps,
|
|
4432
4322
|
children: children || ZERO_WIDTH_SPACE
|
|
4433
|
-
})
|
|
4323
|
+
});
|
|
4434
4324
|
});
|
|
4435
4325
|
|
|
4436
4326
|
const pulseAnimation = react.keyframes({
|
|
@@ -4480,22 +4370,24 @@ const Skeleton = /*#__PURE__*/react$1.forwardRef(function Skeleton(props, forwar
|
|
|
4480
4370
|
const {
|
|
4481
4371
|
as = 'span',
|
|
4482
4372
|
__css,
|
|
4483
|
-
animation = 'pulse'
|
|
4484
|
-
|
|
4485
|
-
|
|
4486
|
-
|
|
4373
|
+
animation = 'pulse',
|
|
4374
|
+
...otherProps
|
|
4375
|
+
} = props;
|
|
4487
4376
|
const theme = useTheme();
|
|
4488
|
-
return /*#__PURE__*/jsxRuntime.jsx(Box,
|
|
4377
|
+
return /*#__PURE__*/jsxRuntime.jsx(Box, {
|
|
4489
4378
|
ref: forwardedRef,
|
|
4490
4379
|
as: as,
|
|
4491
|
-
__css:
|
|
4380
|
+
__css: {
|
|
4492
4381
|
height: '1.2em',
|
|
4493
4382
|
display: 'inline-block',
|
|
4494
|
-
backgroundColor: alpha('on.surface', 0.11)
|
|
4495
|
-
|
|
4496
|
-
|
|
4497
|
-
|
|
4498
|
-
|
|
4383
|
+
backgroundColor: alpha('on.surface', 0.11),
|
|
4384
|
+
...(animation === 'pulse' ? pulseAnimationStyle() : waveAnimationStyle({
|
|
4385
|
+
theme
|
|
4386
|
+
})),
|
|
4387
|
+
...__css
|
|
4388
|
+
},
|
|
4389
|
+
...otherProps
|
|
4390
|
+
});
|
|
4499
4391
|
});
|
|
4500
4392
|
|
|
4501
4393
|
const appearAnimation = react.keyframes({
|
|
@@ -4511,18 +4403,19 @@ const appearAnimation = react.keyframes({
|
|
|
4511
4403
|
const DelayAppearance = /*#__PURE__*/react$1.forwardRef(function DelayAppearance(props, forwardedRef) {
|
|
4512
4404
|
const {
|
|
4513
4405
|
timeoutInMilliseconds = 500,
|
|
4514
|
-
__css
|
|
4515
|
-
|
|
4516
|
-
|
|
4517
|
-
|
|
4518
|
-
return /*#__PURE__*/jsxRuntime.jsx(Box, _extends__default['default']({
|
|
4406
|
+
__css,
|
|
4407
|
+
...otherProps
|
|
4408
|
+
} = props;
|
|
4409
|
+
return /*#__PURE__*/jsxRuntime.jsx(Box, {
|
|
4519
4410
|
ref: forwardedRef,
|
|
4520
4411
|
timeoutInMilliseconds: timeoutInMilliseconds,
|
|
4521
|
-
__css:
|
|
4412
|
+
__css: {
|
|
4522
4413
|
animation: `0s linear ${timeoutInMilliseconds}ms forwards ${appearAnimation}`,
|
|
4523
|
-
visibility: 'hidden'
|
|
4524
|
-
|
|
4525
|
-
|
|
4414
|
+
visibility: 'hidden',
|
|
4415
|
+
...__css
|
|
4416
|
+
},
|
|
4417
|
+
...otherProps
|
|
4418
|
+
});
|
|
4526
4419
|
});
|
|
4527
4420
|
|
|
4528
4421
|
const StackItemContext = /*#__PURE__*/react$1.createContext(null);
|
|
@@ -4553,9 +4446,7 @@ function useStackItem({
|
|
|
4553
4446
|
}
|
|
4554
4447
|
|
|
4555
4448
|
react$1.useLayoutEffect(() => {
|
|
4556
|
-
|
|
4557
|
-
|
|
4558
|
-
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;
|
|
4559
4450
|
onSetHeight(height);
|
|
4560
4451
|
|
|
4561
4452
|
if (isExiting) {
|
|
@@ -4692,7 +4583,7 @@ const StackProvider = ({
|
|
|
4692
4583
|
const onAddItemRef = react$1.useRef(null);
|
|
4693
4584
|
|
|
4694
4585
|
function onAddItem(element) {
|
|
4695
|
-
onAddItemRef.current
|
|
4586
|
+
onAddItemRef.current?.(element);
|
|
4696
4587
|
}
|
|
4697
4588
|
|
|
4698
4589
|
return /*#__PURE__*/jsxRuntime.jsxs(StackContext.Provider, {
|
|
@@ -4863,28 +4754,34 @@ function useSnackbarAnimation(ref, timeout) {
|
|
|
4863
4754
|
switch (state) {
|
|
4864
4755
|
case 'entering':
|
|
4865
4756
|
return {
|
|
4866
|
-
style:
|
|
4757
|
+
style: { ...animateFn('entering', translateY),
|
|
4867
4758
|
visibility: 'hidden'
|
|
4868
|
-
}
|
|
4869
|
-
placementStyle:
|
|
4759
|
+
},
|
|
4760
|
+
placementStyle: { ...placementStyle,
|
|
4761
|
+
...commonStyle
|
|
4762
|
+
},
|
|
4870
4763
|
onClose
|
|
4871
4764
|
};
|
|
4872
4765
|
|
|
4873
4766
|
case 'entered':
|
|
4874
4767
|
return {
|
|
4875
|
-
style:
|
|
4768
|
+
style: { ...animateFn('entered', translateY),
|
|
4876
4769
|
transition: getTransition(TRANSITION_TIME)
|
|
4877
|
-
}
|
|
4878
|
-
placementStyle:
|
|
4770
|
+
},
|
|
4771
|
+
placementStyle: { ...placementStyle,
|
|
4772
|
+
...commonStyle
|
|
4773
|
+
},
|
|
4879
4774
|
onClose
|
|
4880
4775
|
};
|
|
4881
4776
|
|
|
4882
4777
|
case 'exiting':
|
|
4883
4778
|
return {
|
|
4884
|
-
style:
|
|
4779
|
+
style: { ...animateFn('exiting', translateY),
|
|
4885
4780
|
transition: getTransition(TRANSITION_TIME)
|
|
4886
|
-
}
|
|
4887
|
-
placementStyle:
|
|
4781
|
+
},
|
|
4782
|
+
placementStyle: { ...placementStyle,
|
|
4783
|
+
...commonStyle
|
|
4784
|
+
},
|
|
4888
4785
|
onClose
|
|
4889
4786
|
};
|
|
4890
4787
|
}
|
|
@@ -4893,30 +4790,28 @@ function useSnackbarAnimation(ref, timeout) {
|
|
|
4893
4790
|
const Snackbar = /*#__PURE__*/react$1.forwardRef(function Snackbar(props, forwardedRef) {
|
|
4894
4791
|
const {
|
|
4895
4792
|
colorMode
|
|
4896
|
-
} = useColorMode();
|
|
4793
|
+
} = dynamicTheme.useColorMode();
|
|
4897
4794
|
const ref = react$1.useRef(null);
|
|
4898
|
-
|
|
4899
4795
|
const {
|
|
4900
4796
|
__css,
|
|
4901
4797
|
action,
|
|
4902
4798
|
children,
|
|
4903
4799
|
style: styleProp,
|
|
4904
4800
|
timeout = 5000,
|
|
4905
|
-
dismissible
|
|
4906
|
-
|
|
4907
|
-
|
|
4908
|
-
|
|
4801
|
+
dismissible,
|
|
4802
|
+
...otherProps
|
|
4803
|
+
} = props;
|
|
4909
4804
|
const {
|
|
4910
4805
|
onClose,
|
|
4911
4806
|
placementStyle,
|
|
4912
4807
|
style
|
|
4913
4808
|
} = useSnackbarAnimation(ref, timeout);
|
|
4914
|
-
return /*#__PURE__*/jsxRuntime.jsxs(Paper,
|
|
4809
|
+
return /*#__PURE__*/jsxRuntime.jsxs(Paper, {
|
|
4915
4810
|
elevation: 4,
|
|
4916
4811
|
darkThemeBackgroundOverlay: 4,
|
|
4917
|
-
className: colorMode === 'default' ? DARK_THEME_CLASS : DEFAULT_THEME_CLASS,
|
|
4812
|
+
className: colorMode === 'default' ? dynamicTheme.DARK_THEME_CLASS : dynamicTheme.DEFAULT_THEME_CLASS,
|
|
4918
4813
|
ref: core.assignMultipleRefs(forwardedRef, ref),
|
|
4919
|
-
__css:
|
|
4814
|
+
__css: {
|
|
4920
4815
|
boxShadow: 4,
|
|
4921
4816
|
py: "0.375rem",
|
|
4922
4817
|
pl: 3,
|
|
@@ -4927,10 +4822,14 @@ const Snackbar = /*#__PURE__*/react$1.forwardRef(function Snackbar(props, forwar
|
|
|
4927
4822
|
borderRadius: 'extra-small',
|
|
4928
4823
|
color: 'on.surface',
|
|
4929
4824
|
flexDirection: 'row',
|
|
4930
|
-
willChange: 'transform,opacity'
|
|
4931
|
-
|
|
4932
|
-
|
|
4933
|
-
|
|
4825
|
+
willChange: 'transform,opacity',
|
|
4826
|
+
...placementStyle,
|
|
4827
|
+
...__css
|
|
4828
|
+
},
|
|
4829
|
+
style: { ...style,
|
|
4830
|
+
...styleProp
|
|
4831
|
+
},
|
|
4832
|
+
...otherProps,
|
|
4934
4833
|
children: [/*#__PURE__*/jsxRuntime.jsx(Text, {
|
|
4935
4834
|
variant: "body-medium",
|
|
4936
4835
|
as: "span",
|
|
@@ -4946,7 +4845,7 @@ const Snackbar = /*#__PURE__*/react$1.forwardRef(function Snackbar(props, forwar
|
|
|
4946
4845
|
onClick: onClose
|
|
4947
4846
|
}) : action
|
|
4948
4847
|
})]
|
|
4949
|
-
})
|
|
4848
|
+
});
|
|
4950
4849
|
});
|
|
4951
4850
|
|
|
4952
4851
|
const BORDER_WIDTH = 2;
|
|
@@ -4956,93 +4855,85 @@ const CIRCLE_SIZE_INACTIVE_CHECKED = 24;
|
|
|
4956
4855
|
const CIRCLE_SIZE_ACTIVE_CHECKED = 28;
|
|
4957
4856
|
const CIRCLE_SIZE_INACTIVE_UNCHECKED = 16;
|
|
4958
4857
|
const CIRCLE_SIZE_ACTIVE_UNCHECKED = 28;
|
|
4959
|
-
const SwitchTrail = (
|
|
4960
|
-
|
|
4961
|
-
|
|
4962
|
-
|
|
4963
|
-
|
|
4964
|
-
|
|
4965
|
-
|
|
4966
|
-
|
|
4967
|
-
|
|
4968
|
-
|
|
4969
|
-
|
|
4970
|
-
|
|
4971
|
-
|
|
4972
|
-
|
|
4973
|
-
backgroundColor: checked ? 'primary' : 'surface-variant',
|
|
4974
|
-
borderColor: checked ? 'primary' : 'outline'
|
|
4975
|
-
}, 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 && {
|
|
4976
4872
|
opacity: 0.12,
|
|
4977
4873
|
backgroundColor: checked ? 'on.surface' : 'surface-variant',
|
|
4978
4874
|
borderColor: 'on.surface'
|
|
4979
4875
|
})
|
|
4980
|
-
},
|
|
4981
|
-
|
|
4876
|
+
},
|
|
4877
|
+
...otherProps
|
|
4878
|
+
});
|
|
4982
4879
|
const THUMB_SIZE = 40;
|
|
4983
|
-
const SwitchThumb = (
|
|
4984
|
-
|
|
4985
|
-
|
|
4986
|
-
|
|
4987
|
-
|
|
4988
|
-
|
|
4989
|
-
|
|
4990
|
-
|
|
4991
|
-
|
|
4992
|
-
|
|
4993
|
-
|
|
4994
|
-
|
|
4995
|
-
|
|
4996
|
-
|
|
4997
|
-
|
|
4998
|
-
|
|
4999
|
-
|
|
5000
|
-
'& > input': {
|
|
5001
|
-
width: THUMB_SIZE,
|
|
5002
|
-
height: THUMB_SIZE
|
|
5003
|
-
}
|
|
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
|
|
5004
4897
|
}
|
|
5005
|
-
},
|
|
5006
|
-
|
|
5007
|
-
|
|
5008
|
-
|
|
5009
|
-
|
|
5010
|
-
|
|
5011
|
-
|
|
5012
|
-
|
|
5013
|
-
|
|
5014
|
-
|
|
5015
|
-
|
|
5016
|
-
|
|
5017
|
-
|
|
5018
|
-
|
|
5019
|
-
|
|
5020
|
-
|
|
5021
|
-
|
|
5022
|
-
|
|
5023
|
-
|
|
5024
|
-
|
|
5025
|
-
|
|
5026
|
-
|
|
5027
|
-
'[data-switch-thumb=""]:active ~ &, [data-switch-thumb=""]:focus-visible ~ &, [data-switch-thumb=""]:hover ~ &': {
|
|
5028
|
-
backgroundColor: checked ? 'primary-container' : 'on.surface-variant'
|
|
5029
|
-
},
|
|
5030
|
-
'[data-switch-thumb=""]:active ~ &, [data-switch-thumb=""]:focus-visible ~ &': {
|
|
5031
|
-
height: checked ? CIRCLE_SIZE_ACTIVE_CHECKED : CIRCLE_SIZE_ACTIVE_UNCHECKED,
|
|
5032
|
-
width: checked ? CIRCLE_SIZE_ACTIVE_CHECKED : CIRCLE_SIZE_ACTIVE_UNCHECKED
|
|
5033
|
-
},
|
|
5034
|
-
'[data-switch-thumb=""]:disabled ~ &': {
|
|
5035
|
-
opacity: checked ? 1 : 0.38,
|
|
5036
|
-
backgroundColor: checked ? 'surface' : 'on.surface',
|
|
5037
|
-
height: checked ? CIRCLE_SIZE_INACTIVE_CHECKED : CIRCLE_SIZE_INACTIVE_UNCHECKED,
|
|
5038
|
-
width: checked ? CIRCLE_SIZE_INACTIVE_CHECKED : CIRCLE_SIZE_INACTIVE_UNCHECKED
|
|
5039
|
-
}
|
|
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'
|
|
5040
4920
|
},
|
|
5041
|
-
|
|
5042
|
-
|
|
5043
|
-
|
|
5044
|
-
|
|
5045
|
-
|
|
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
|
+
});
|
|
5046
4937
|
|
|
5047
4938
|
const CheckBoxCore = core.CheckBox;
|
|
5048
4939
|
const SwitchInner = /*#__PURE__*/react$1.forwardRef(function SwitchInner(props, forwardedRef) {
|
|
@@ -5051,10 +4942,9 @@ const SwitchInner = /*#__PURE__*/react$1.forwardRef(function SwitchInner(props,
|
|
|
5051
4942
|
disabled,
|
|
5052
4943
|
checked,
|
|
5053
4944
|
onChange,
|
|
5054
|
-
__css
|
|
5055
|
-
|
|
5056
|
-
|
|
5057
|
-
|
|
4945
|
+
__css,
|
|
4946
|
+
...otherProps
|
|
4947
|
+
} = props;
|
|
5058
4948
|
const color = checked ? 'primary' : 'on.surface';
|
|
5059
4949
|
const theme = useTheme();
|
|
5060
4950
|
return /*#__PURE__*/jsxRuntime.jsx(Box, {
|
|
@@ -5068,7 +4958,7 @@ const SwitchInner = /*#__PURE__*/react$1.forwardRef(function SwitchInner(props,
|
|
|
5068
4958
|
disabled: disabled
|
|
5069
4959
|
}), /*#__PURE__*/jsxRuntime.jsxs(SwitchThumb, {
|
|
5070
4960
|
checked: checked,
|
|
5071
|
-
children: [/*#__PURE__*/jsxRuntime.jsx(RippleBox,
|
|
4961
|
+
children: [/*#__PURE__*/jsxRuntime.jsx(RippleBox, {
|
|
5072
4962
|
as: Comp,
|
|
5073
4963
|
role: "switch",
|
|
5074
4964
|
type: "checkbox",
|
|
@@ -5083,9 +4973,9 @@ const SwitchInner = /*#__PURE__*/react$1.forwardRef(function SwitchInner(props,
|
|
|
5083
4973
|
focusOpacity: 0.12,
|
|
5084
4974
|
center: true,
|
|
5085
4975
|
disabled: disabled,
|
|
5086
|
-
"data-switch-thumb": ""
|
|
5087
|
-
|
|
5088
|
-
__css:
|
|
4976
|
+
"data-switch-thumb": "",
|
|
4977
|
+
...otherProps,
|
|
4978
|
+
__css: {
|
|
5089
4979
|
top: '50%',
|
|
5090
4980
|
left: '50%',
|
|
5091
4981
|
backgroundColor: 'transparent',
|
|
@@ -5099,9 +4989,10 @@ const SwitchInner = /*#__PURE__*/react$1.forwardRef(function SwitchInner(props,
|
|
|
5099
4989
|
border: 'none',
|
|
5100
4990
|
borderRadius: 'full',
|
|
5101
4991
|
zIndex: 1,
|
|
5102
|
-
position: 'absolute'
|
|
5103
|
-
|
|
5104
|
-
|
|
4992
|
+
position: 'absolute',
|
|
4993
|
+
...__css
|
|
4994
|
+
}
|
|
4995
|
+
}), /*#__PURE__*/jsxRuntime.jsx(SwitchCircle, {
|
|
5105
4996
|
checked: checked
|
|
5106
4997
|
})]
|
|
5107
4998
|
})]
|
|
@@ -5112,16 +5003,17 @@ const Switch = /*#__PURE__*/react$1.forwardRef(function Switch(props, forwardedR
|
|
|
5112
5003
|
const {
|
|
5113
5004
|
as = 'input',
|
|
5114
5005
|
disabled,
|
|
5115
|
-
children
|
|
5116
|
-
|
|
5117
|
-
|
|
5006
|
+
children,
|
|
5007
|
+
...otherProps
|
|
5008
|
+
} = props;
|
|
5118
5009
|
|
|
5119
|
-
const inner = /*#__PURE__*/jsxRuntime.jsx(CheckBoxCore,
|
|
5010
|
+
const inner = /*#__PURE__*/jsxRuntime.jsx(CheckBoxCore, {
|
|
5120
5011
|
as: SwitchInner,
|
|
5121
5012
|
innerAs: as,
|
|
5122
5013
|
ref: forwardedRef,
|
|
5123
|
-
disabled: disabled
|
|
5124
|
-
|
|
5014
|
+
disabled: disabled,
|
|
5015
|
+
...otherProps
|
|
5016
|
+
});
|
|
5125
5017
|
|
|
5126
5018
|
if (!children) {
|
|
5127
5019
|
return inner;
|
|
@@ -5150,10 +5042,9 @@ const TabIndicator = /*#__PURE__*/react$1.forwardRef(function TabIndicator(props
|
|
|
5150
5042
|
const {
|
|
5151
5043
|
as = 'span',
|
|
5152
5044
|
selected,
|
|
5153
|
-
color = 'primary'
|
|
5154
|
-
|
|
5155
|
-
|
|
5156
|
-
|
|
5045
|
+
color = 'primary',
|
|
5046
|
+
...otherProps
|
|
5047
|
+
} = props;
|
|
5157
5048
|
const ref = react$1.useRef(null);
|
|
5158
5049
|
const {
|
|
5159
5050
|
currentIndicator
|
|
@@ -5180,7 +5071,7 @@ const TabIndicator = /*#__PURE__*/react$1.forwardRef(function TabIndicator(props
|
|
|
5180
5071
|
currentIndicator.current = ref.current;
|
|
5181
5072
|
}
|
|
5182
5073
|
}, [selected]);
|
|
5183
|
-
return /*#__PURE__*/jsxRuntime.jsx(Box,
|
|
5074
|
+
return /*#__PURE__*/jsxRuntime.jsx(Box, {
|
|
5184
5075
|
as: as,
|
|
5185
5076
|
ref: core.assignMultipleRefs(ref, forwardedRef),
|
|
5186
5077
|
width: "100%",
|
|
@@ -5194,8 +5085,9 @@ const TabIndicator = /*#__PURE__*/react$1.forwardRef(function TabIndicator(props
|
|
|
5194
5085
|
transformOrigin: 'left',
|
|
5195
5086
|
transition: `transform .25s ${EASING_STANDARD}`,
|
|
5196
5087
|
zIndex: 1
|
|
5197
|
-
}
|
|
5198
|
-
|
|
5088
|
+
},
|
|
5089
|
+
...otherProps
|
|
5090
|
+
});
|
|
5199
5091
|
});
|
|
5200
5092
|
|
|
5201
5093
|
const TabListContext = /*#__PURE__*/react$1.createContext({
|
|
@@ -5209,29 +5101,28 @@ const useTabListContext = () => react$1.useContext(TabListContext);
|
|
|
5209
5101
|
|
|
5210
5102
|
const TabListInner = /*#__PURE__*/react$1.forwardRef(function TabListInner(props, forwardedRef) {
|
|
5211
5103
|
const {
|
|
5212
|
-
innerAs
|
|
5213
|
-
|
|
5214
|
-
|
|
5215
|
-
|
|
5216
|
-
return /*#__PURE__*/jsxRuntime.jsx(Box, _extends__default['default']({
|
|
5104
|
+
innerAs,
|
|
5105
|
+
...otherProps
|
|
5106
|
+
} = props;
|
|
5107
|
+
return /*#__PURE__*/jsxRuntime.jsx(Box, {
|
|
5217
5108
|
as: innerAs,
|
|
5218
5109
|
ref: forwardedRef,
|
|
5219
5110
|
__css: {
|
|
5220
5111
|
minWidth: "22.5rem",
|
|
5221
5112
|
display: 'flex',
|
|
5222
5113
|
alignItems: 'center'
|
|
5223
|
-
}
|
|
5224
|
-
|
|
5114
|
+
},
|
|
5115
|
+
...otherProps
|
|
5116
|
+
});
|
|
5225
5117
|
});
|
|
5226
5118
|
const TabList = /*#__PURE__*/react$1.forwardRef(function TabList(props, forwardedRef) {
|
|
5227
5119
|
const {
|
|
5228
5120
|
as = 'div',
|
|
5229
5121
|
indicatorColor = 'primary',
|
|
5230
5122
|
textColor = 'on.surface',
|
|
5231
|
-
selectedTextColor
|
|
5232
|
-
|
|
5233
|
-
|
|
5234
|
-
|
|
5123
|
+
selectedTextColor,
|
|
5124
|
+
...otherProps
|
|
5125
|
+
} = props;
|
|
5235
5126
|
const currentIndicator = react$1.useRef(null);
|
|
5236
5127
|
return /*#__PURE__*/jsxRuntime.jsx(TabListProvider, {
|
|
5237
5128
|
value: {
|
|
@@ -5243,11 +5134,12 @@ const TabList = /*#__PURE__*/react$1.forwardRef(function TabList(props, forwarde
|
|
|
5243
5134
|
value: {
|
|
5244
5135
|
currentIndicator
|
|
5245
5136
|
},
|
|
5246
|
-
children: /*#__PURE__*/jsxRuntime.jsx(core.TabList,
|
|
5137
|
+
children: /*#__PURE__*/jsxRuntime.jsx(core.TabList, {
|
|
5247
5138
|
as: TabListInner,
|
|
5248
5139
|
innerAs: as,
|
|
5249
|
-
ref: forwardedRef
|
|
5250
|
-
|
|
5140
|
+
ref: forwardedRef,
|
|
5141
|
+
...otherProps
|
|
5142
|
+
})
|
|
5251
5143
|
})
|
|
5252
5144
|
});
|
|
5253
5145
|
});
|
|
@@ -5257,10 +5149,9 @@ const TabInner = /*#__PURE__*/react$1.forwardRef(function Tab(props, forwardedRe
|
|
|
5257
5149
|
innerAs,
|
|
5258
5150
|
selected,
|
|
5259
5151
|
children,
|
|
5260
|
-
disabled
|
|
5261
|
-
|
|
5262
|
-
|
|
5263
|
-
|
|
5152
|
+
disabled,
|
|
5153
|
+
...otherProps
|
|
5154
|
+
} = props;
|
|
5264
5155
|
const {
|
|
5265
5156
|
textColor,
|
|
5266
5157
|
indicatorColor,
|
|
@@ -5271,7 +5162,7 @@ const TabInner = /*#__PURE__*/react$1.forwardRef(function Tab(props, forwardedRe
|
|
|
5271
5162
|
display: "flex",
|
|
5272
5163
|
flex: 1,
|
|
5273
5164
|
flexDirection: "column",
|
|
5274
|
-
children: [/*#__PURE__*/jsxRuntime.jsx(RippleBox,
|
|
5165
|
+
children: [/*#__PURE__*/jsxRuntime.jsx(RippleBox, {
|
|
5275
5166
|
as: innerAs,
|
|
5276
5167
|
ref: forwardedRef,
|
|
5277
5168
|
rippleColor: indicatorColor,
|
|
@@ -5288,8 +5179,8 @@ const TabInner = /*#__PURE__*/react$1.forwardRef(function Tab(props, forwardedRe
|
|
|
5288
5179
|
},
|
|
5289
5180
|
width: '100%',
|
|
5290
5181
|
alignItems: 'center'
|
|
5291
|
-
}
|
|
5292
|
-
|
|
5182
|
+
},
|
|
5183
|
+
...otherProps,
|
|
5293
5184
|
children: /*#__PURE__*/jsxRuntime.jsx(Text, {
|
|
5294
5185
|
as: "span",
|
|
5295
5186
|
variant: "label-large",
|
|
@@ -5298,7 +5189,7 @@ const TabInner = /*#__PURE__*/react$1.forwardRef(function Tab(props, forwardedRe
|
|
|
5298
5189
|
textAlign: "center",
|
|
5299
5190
|
children: children
|
|
5300
5191
|
})
|
|
5301
|
-
})
|
|
5192
|
+
}), /*#__PURE__*/jsxRuntime.jsx(TabIndicator, {
|
|
5302
5193
|
selected: selected,
|
|
5303
5194
|
color: indicatorColor
|
|
5304
5195
|
})]
|
|
@@ -5306,59 +5197,58 @@ const TabInner = /*#__PURE__*/react$1.forwardRef(function Tab(props, forwardedRe
|
|
|
5306
5197
|
});
|
|
5307
5198
|
const Tab = /*#__PURE__*/react$1.forwardRef(function Tab(props, forwardedRef) {
|
|
5308
5199
|
const {
|
|
5309
|
-
as = 'button'
|
|
5310
|
-
|
|
5311
|
-
|
|
5312
|
-
|
|
5313
|
-
return /*#__PURE__*/jsxRuntime.jsx(core.Tab, _extends__default['default']({
|
|
5200
|
+
as = 'button',
|
|
5201
|
+
...otherProps
|
|
5202
|
+
} = props;
|
|
5203
|
+
return /*#__PURE__*/jsxRuntime.jsx(core.Tab, {
|
|
5314
5204
|
as: TabInner,
|
|
5315
5205
|
innerAs: as,
|
|
5316
|
-
ref: forwardedRef
|
|
5317
|
-
|
|
5206
|
+
ref: forwardedRef,
|
|
5207
|
+
...otherProps
|
|
5208
|
+
});
|
|
5318
5209
|
});
|
|
5319
5210
|
|
|
5320
5211
|
const TabPanelInner = /*#__PURE__*/react$1.forwardRef(function TabPanelInner(props, forwardedRef) {
|
|
5321
5212
|
const {
|
|
5322
|
-
innerAs
|
|
5323
|
-
|
|
5324
|
-
|
|
5325
|
-
|
|
5326
|
-
return /*#__PURE__*/jsxRuntime.jsx(Box, _extends__default['default']({
|
|
5213
|
+
innerAs,
|
|
5214
|
+
...otherProps
|
|
5215
|
+
} = props;
|
|
5216
|
+
return /*#__PURE__*/jsxRuntime.jsx(Box, {
|
|
5327
5217
|
as: innerAs,
|
|
5328
|
-
ref: forwardedRef
|
|
5329
|
-
|
|
5218
|
+
ref: forwardedRef,
|
|
5219
|
+
...otherProps
|
|
5220
|
+
});
|
|
5330
5221
|
});
|
|
5331
5222
|
const TabPanel = /*#__PURE__*/react$1.forwardRef(function TabPanel(props, forwardedRef) {
|
|
5332
5223
|
const {
|
|
5333
|
-
as = 'div'
|
|
5334
|
-
|
|
5335
|
-
|
|
5336
|
-
|
|
5337
|
-
return /*#__PURE__*/jsxRuntime.jsx(core.TabPanel, _extends__default['default']({
|
|
5224
|
+
as = 'div',
|
|
5225
|
+
...otherProps
|
|
5226
|
+
} = props;
|
|
5227
|
+
return /*#__PURE__*/jsxRuntime.jsx(core.TabPanel, {
|
|
5338
5228
|
as: TabPanelInner,
|
|
5339
5229
|
innerAs: as,
|
|
5340
|
-
ref: forwardedRef
|
|
5341
|
-
|
|
5230
|
+
ref: forwardedRef,
|
|
5231
|
+
...otherProps
|
|
5232
|
+
});
|
|
5342
5233
|
});
|
|
5343
5234
|
|
|
5344
5235
|
const Table = /*#__PURE__*/react$1.forwardRef((props, ref) => {
|
|
5345
5236
|
const {
|
|
5346
5237
|
children,
|
|
5347
|
-
elevation = 1
|
|
5348
|
-
|
|
5349
|
-
|
|
5350
|
-
|
|
5351
|
-
return /*#__PURE__*/jsxRuntime.jsx(Paper, _extends__default['default']({
|
|
5238
|
+
elevation = 1,
|
|
5239
|
+
...rest
|
|
5240
|
+
} = props;
|
|
5241
|
+
return /*#__PURE__*/jsxRuntime.jsx(Paper, {
|
|
5352
5242
|
ref: ref,
|
|
5353
5243
|
role: "table",
|
|
5354
5244
|
display: "flex",
|
|
5355
5245
|
width: "100%",
|
|
5356
5246
|
flexDirection: "column",
|
|
5357
5247
|
elevation: elevation,
|
|
5358
|
-
darkThemeBackgroundOverlay: elevation
|
|
5359
|
-
|
|
5248
|
+
darkThemeBackgroundOverlay: elevation,
|
|
5249
|
+
...rest,
|
|
5360
5250
|
children: children
|
|
5361
|
-
})
|
|
5251
|
+
});
|
|
5362
5252
|
});
|
|
5363
5253
|
|
|
5364
5254
|
const TableHeadContext = /*#__PURE__*/react$1.createContext(false);
|
|
@@ -5369,73 +5259,71 @@ const useTableHeadContext = () => react$1.useContext(TableHeadContext);
|
|
|
5369
5259
|
|
|
5370
5260
|
const TableBody = /*#__PURE__*/react$1.forwardRef((props, ref) => {
|
|
5371
5261
|
const {
|
|
5372
|
-
children
|
|
5373
|
-
|
|
5374
|
-
|
|
5375
|
-
|
|
5376
|
-
return /*#__PURE__*/jsxRuntime.jsx(Box, _extends__default['default']({
|
|
5262
|
+
children,
|
|
5263
|
+
...rest
|
|
5264
|
+
} = props;
|
|
5265
|
+
return /*#__PURE__*/jsxRuntime.jsx(Box, {
|
|
5377
5266
|
ref: ref,
|
|
5378
|
-
role: "rowgroup"
|
|
5379
|
-
|
|
5267
|
+
role: "rowgroup",
|
|
5268
|
+
...rest,
|
|
5380
5269
|
children: children
|
|
5381
|
-
})
|
|
5270
|
+
});
|
|
5382
5271
|
});
|
|
5383
5272
|
|
|
5384
5273
|
const TableHead = /*#__PURE__*/react$1.forwardRef((props, ref) => {
|
|
5385
5274
|
const {
|
|
5386
5275
|
children,
|
|
5387
|
-
__css
|
|
5388
|
-
|
|
5389
|
-
|
|
5390
|
-
|
|
5391
|
-
return /*#__PURE__*/jsxRuntime.jsx(TableBody, _extends__default['default']({
|
|
5276
|
+
__css,
|
|
5277
|
+
...rest
|
|
5278
|
+
} = props;
|
|
5279
|
+
return /*#__PURE__*/jsxRuntime.jsx(TableBody, {
|
|
5392
5280
|
ref: ref,
|
|
5393
|
-
__css:
|
|
5281
|
+
__css: {
|
|
5394
5282
|
borderBottomStyle: 'solid',
|
|
5395
5283
|
borderBottomWidth: "0.0625rem",
|
|
5396
|
-
borderBottomColor: alpha('on.surface', 0.12)
|
|
5397
|
-
|
|
5398
|
-
|
|
5284
|
+
borderBottomColor: alpha('on.surface', 0.12),
|
|
5285
|
+
...__css
|
|
5286
|
+
},
|
|
5287
|
+
...rest,
|
|
5399
5288
|
children: /*#__PURE__*/jsxRuntime.jsx(TableHeadProvider, {
|
|
5400
5289
|
value: true,
|
|
5401
5290
|
children: children
|
|
5402
5291
|
})
|
|
5403
|
-
})
|
|
5292
|
+
});
|
|
5404
5293
|
});
|
|
5405
5294
|
|
|
5406
5295
|
const TableCell = /*#__PURE__*/react$1.forwardRef((props, ref) => {
|
|
5407
5296
|
const {
|
|
5408
5297
|
children,
|
|
5409
|
-
__css
|
|
5410
|
-
|
|
5411
|
-
|
|
5412
|
-
|
|
5298
|
+
__css,
|
|
5299
|
+
...rest
|
|
5300
|
+
} = props;
|
|
5413
5301
|
const isHeadCell = useTableHeadContext();
|
|
5414
|
-
return /*#__PURE__*/jsxRuntime.jsx(Box,
|
|
5302
|
+
return /*#__PURE__*/jsxRuntime.jsx(Box, {
|
|
5415
5303
|
ref: ref,
|
|
5416
5304
|
px: 1,
|
|
5417
5305
|
py: 3,
|
|
5418
5306
|
role: isHeadCell ? 'columnheader' : 'cell',
|
|
5419
|
-
__css:
|
|
5307
|
+
__css: {
|
|
5420
5308
|
whiteSpace: 'nowrap',
|
|
5421
5309
|
overflow: 'hidden',
|
|
5422
5310
|
textOverflow: 'ellipsis',
|
|
5423
5311
|
fontWeight: isHeadCell ? 'medium' : undefined,
|
|
5424
|
-
color: 'on.surface'
|
|
5425
|
-
|
|
5426
|
-
|
|
5312
|
+
color: 'on.surface',
|
|
5313
|
+
...__css
|
|
5314
|
+
},
|
|
5315
|
+
...rest,
|
|
5427
5316
|
children: children
|
|
5428
|
-
})
|
|
5317
|
+
});
|
|
5429
5318
|
});
|
|
5430
5319
|
|
|
5431
5320
|
const TableRow = /*#__PURE__*/react$1.forwardRef((props, ref) => {
|
|
5432
5321
|
const {
|
|
5433
5322
|
children,
|
|
5434
|
-
__css
|
|
5435
|
-
|
|
5436
|
-
|
|
5437
|
-
|
|
5438
|
-
return /*#__PURE__*/jsxRuntime.jsx(Text, _extends__default['default']({
|
|
5323
|
+
__css,
|
|
5324
|
+
...rest
|
|
5325
|
+
} = props;
|
|
5326
|
+
return /*#__PURE__*/jsxRuntime.jsx(Text, {
|
|
5439
5327
|
ref: ref,
|
|
5440
5328
|
as: "div",
|
|
5441
5329
|
role: "row",
|
|
@@ -5444,68 +5332,62 @@ const TableRow = /*#__PURE__*/react$1.forwardRef((props, ref) => {
|
|
|
5444
5332
|
width: "100%",
|
|
5445
5333
|
variant: "body-medium",
|
|
5446
5334
|
px: 2,
|
|
5447
|
-
__css:
|
|
5335
|
+
__css: {
|
|
5448
5336
|
borderBottomStyle: 'solid',
|
|
5449
5337
|
borderBottomWidth: "0.0625rem",
|
|
5450
5338
|
borderBottomColor: alpha('on.surface', 0.12),
|
|
5451
5339
|
'&:last-of-type': {
|
|
5452
5340
|
borderBottom: 'none'
|
|
5453
|
-
}
|
|
5454
|
-
|
|
5455
|
-
|
|
5341
|
+
},
|
|
5342
|
+
...__css
|
|
5343
|
+
},
|
|
5344
|
+
...rest,
|
|
5456
5345
|
children: children
|
|
5457
|
-
})
|
|
5346
|
+
});
|
|
5458
5347
|
});
|
|
5459
5348
|
|
|
5460
5349
|
const BaseTooltip = core.Tooltip;
|
|
5461
5350
|
const Tooltip = /*#__PURE__*/react$1.forwardRef(function Tooltip(props, forwardedRef) {
|
|
5462
5351
|
const {
|
|
5463
5352
|
placement = 'bottom',
|
|
5464
|
-
__css
|
|
5465
|
-
|
|
5466
|
-
|
|
5467
|
-
|
|
5468
|
-
return /*#__PURE__*/jsxRuntime.jsx(BaseTooltip, _extends__default['default']({
|
|
5353
|
+
__css,
|
|
5354
|
+
...otherProps
|
|
5355
|
+
} = props;
|
|
5356
|
+
return /*#__PURE__*/jsxRuntime.jsx(BaseTooltip, {
|
|
5469
5357
|
as: core.Popper,
|
|
5470
5358
|
innerAs: Box,
|
|
5471
5359
|
ref: forwardedRef,
|
|
5472
5360
|
placement: placement,
|
|
5473
5361
|
distance: 8,
|
|
5474
|
-
__css:
|
|
5362
|
+
__css: {
|
|
5475
5363
|
variant: ['text.body-medium', 'text.body-small'],
|
|
5476
5364
|
bg: alpha('#616161', 0.9),
|
|
5477
5365
|
color: '#fff',
|
|
5478
5366
|
px: 2,
|
|
5479
5367
|
py: 1,
|
|
5480
5368
|
borderRadius: 'extra-small',
|
|
5481
|
-
zIndex: 'tooltip'
|
|
5482
|
-
|
|
5483
|
-
|
|
5369
|
+
zIndex: 'tooltip',
|
|
5370
|
+
...__css
|
|
5371
|
+
},
|
|
5372
|
+
...otherProps
|
|
5373
|
+
});
|
|
5484
5374
|
});
|
|
5485
5375
|
|
|
5486
5376
|
Object.defineProperty(exports, 'Menu', {
|
|
5487
5377
|
enumerable: true,
|
|
5488
|
-
get: function () {
|
|
5489
|
-
return core.Menu;
|
|
5490
|
-
}
|
|
5378
|
+
get: function () { return core.Menu; }
|
|
5491
5379
|
});
|
|
5492
5380
|
Object.defineProperty(exports, 'TabPanels', {
|
|
5493
5381
|
enumerable: true,
|
|
5494
|
-
get: function () {
|
|
5495
|
-
return core.TabPanels;
|
|
5496
|
-
}
|
|
5382
|
+
get: function () { return core.TabPanels; }
|
|
5497
5383
|
});
|
|
5498
5384
|
Object.defineProperty(exports, 'Tabs', {
|
|
5499
5385
|
enumerable: true,
|
|
5500
|
-
get: function () {
|
|
5501
|
-
return core.Tabs;
|
|
5502
|
-
}
|
|
5386
|
+
get: function () { return core.Tabs; }
|
|
5503
5387
|
});
|
|
5504
5388
|
Object.defineProperty(exports, 'useComboBoxContext', {
|
|
5505
5389
|
enumerable: true,
|
|
5506
|
-
get: function () {
|
|
5507
|
-
return core.useComboBoxContext;
|
|
5508
|
-
}
|
|
5390
|
+
get: function () { return core.useComboBoxContext; }
|
|
5509
5391
|
});
|
|
5510
5392
|
exports.Alert = Alert;
|
|
5511
5393
|
exports.AppBar = AppBar;
|
|
@@ -5520,8 +5402,6 @@ exports.ButtonGroup = ButtonGroup;
|
|
|
5520
5402
|
exports.CheckBox = CheckBox;
|
|
5521
5403
|
exports.Chip = ButtonChip;
|
|
5522
5404
|
exports.ChoiceChip = ChoiceChip;
|
|
5523
|
-
exports.ColorModeContext = ColorModeContext;
|
|
5524
|
-
exports.ColorModeProvider = ColorModeProvider;
|
|
5525
5405
|
exports.Combobox = Combobox;
|
|
5526
5406
|
exports.ComboboxButton = ComboboxButton;
|
|
5527
5407
|
exports.ComboboxInput = ComboboxInput;
|
|
@@ -5529,8 +5409,6 @@ exports.ComboboxLabel = ComboboxLabel;
|
|
|
5529
5409
|
exports.ComboboxList = ComboboxList;
|
|
5530
5410
|
exports.ComboboxOption = ComboboxOption;
|
|
5531
5411
|
exports.ComboboxPopover = ComboboxPopover;
|
|
5532
|
-
exports.DARK_THEME_CLASS = DARK_THEME_CLASS;
|
|
5533
|
-
exports.DEFAULT_THEME_CLASS = DEFAULT_THEME_CLASS;
|
|
5534
5412
|
exports.DelayAppearance = DelayAppearance;
|
|
5535
5413
|
exports.Dialog = Dialog;
|
|
5536
5414
|
exports.Divider = Divider;
|
|
@@ -5570,7 +5448,6 @@ exports.Skeleton = Skeleton;
|
|
|
5570
5448
|
exports.Snackbar = Snackbar;
|
|
5571
5449
|
exports.StackProvider = StackProvider;
|
|
5572
5450
|
exports.Switch = Switch;
|
|
5573
|
-
exports.THEME_LOCAL_STORAGE_KEY = THEME_LOCAL_STORAGE_KEY;
|
|
5574
5451
|
exports.Tab = Tab;
|
|
5575
5452
|
exports.TabIndicator = TabIndicator;
|
|
5576
5453
|
exports.TabIndicatorProvider = TabIndicatorProvider;
|
|
@@ -5590,13 +5467,11 @@ exports.base = base;
|
|
|
5590
5467
|
exports.getBackgroundOverlay = getBackgroundOverlay;
|
|
5591
5468
|
exports.getColorOverlay = getColorOverlay;
|
|
5592
5469
|
exports.getDarkThemeBackgroundOverlay = getDarkThemeBackgroundOverlay;
|
|
5593
|
-
exports.getTheme = getTheme;
|
|
5594
5470
|
exports.mixColor = mixColor;
|
|
5595
5471
|
exports.rippleStyle = rippleStyle;
|
|
5596
5472
|
exports.sx = sx;
|
|
5597
5473
|
exports.theme = theme;
|
|
5598
5474
|
exports.useAppBarContext = useAppBarContext;
|
|
5599
|
-
exports.useColorMode = useColorMode;
|
|
5600
5475
|
exports.useRipple = useRipple;
|
|
5601
5476
|
exports.useRippleHandlers = useRippleHandlers;
|
|
5602
5477
|
exports.useRippleSurface = useRippleSurface;
|