@basic-ui/material 1.0.0-alpha.0 → 1.0.0-alpha.3
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 +24 -18
- package/build/cjs/index.js.map +1 -1
- package/build/esm/Alert/Alert.d.ts +2 -2
- package/build/esm/Alert/Alert.js +8 -8
- package/build/esm/Alert/Alert.js.map +1 -1
- package/build/esm/Alert/index.d.ts +0 -0
- package/build/esm/Alert/index.js.map +0 -0
- package/build/esm/AppBar/AppBar.d.ts +3 -3
- package/build/esm/AppBar/AppBar.js +24 -16
- package/build/esm/AppBar/AppBar.js.map +1 -1
- package/build/esm/AppBar/AppBarButton.d.ts +2 -2
- package/build/esm/AppBar/AppBarButton.js +8 -9
- package/build/esm/AppBar/AppBarButton.js.map +1 -1
- package/build/esm/AppBar/context.d.ts +1 -1
- package/build/esm/AppBar/context.js +6 -5
- package/build/esm/AppBar/context.js.map +1 -1
- package/build/esm/AppBar/index.d.ts +0 -0
- package/build/esm/AppBar/index.js.map +0 -0
- package/build/esm/Badge/Badge.d.ts +2 -2
- package/build/esm/Badge/Badge.js +2 -2
- package/build/esm/Badge/Badge.js.map +1 -1
- package/build/esm/Badge/index.d.ts +0 -0
- package/build/esm/Badge/index.js.map +0 -0
- package/build/esm/BaseLine/BaseLine.d.ts +0 -0
- package/build/esm/BaseLine/BaseLine.js +4 -4
- package/build/esm/BaseLine/BaseLine.js.map +1 -1
- package/build/esm/BaseLine/index.d.ts +0 -0
- package/build/esm/BaseLine/index.js.map +0 -0
- package/build/esm/BottomSheet/BottomSheet.d.ts +2 -2
- package/build/esm/BottomSheet/BottomSheet.js +11 -13
- package/build/esm/BottomSheet/BottomSheet.js.map +1 -1
- package/build/esm/BottomSheet/BottomSheetSurface.d.ts +4 -4
- package/build/esm/BottomSheet/BottomSheetSurface.js +9 -9
- package/build/esm/BottomSheet/BottomSheetSurface.js.map +1 -1
- package/build/esm/BottomSheet/index.d.ts +0 -0
- package/build/esm/BottomSheet/index.js.map +0 -0
- package/build/esm/Box/Box.d.ts +5 -5
- package/build/esm/Box/Box.js +27 -19
- package/build/esm/Box/Box.js.map +1 -1
- package/build/esm/Box/index.d.ts +0 -0
- package/build/esm/Box/index.js.map +0 -0
- package/build/esm/Button/BaseButton.d.ts +3 -3
- package/build/esm/Button/BaseButton.js +11 -12
- package/build/esm/Button/BaseButton.js.map +1 -1
- package/build/esm/Button/Button.d.ts +3 -3
- package/build/esm/Button/Button.js +27 -22
- package/build/esm/Button/Button.js.map +1 -1
- package/build/esm/Button/ButtonGroup.d.ts +3 -3
- package/build/esm/Button/ButtonGroup.js +15 -12
- package/build/esm/Button/ButtonGroup.js.map +1 -1
- package/build/esm/Button/FilledButton.d.ts +2 -2
- package/build/esm/Button/FilledButton.js +57 -49
- package/build/esm/Button/FilledButton.js.map +1 -1
- package/build/esm/Button/FloatingActionButton.d.ts +1 -1
- package/build/esm/Button/FloatingActionButton.js.map +1 -1
- package/build/esm/Button/IconButton.d.ts +1 -1
- package/build/esm/Button/IconButton.js.map +1 -1
- package/build/esm/Button/OutlinedButton.d.ts +1 -1
- package/build/esm/Button/OutlinedButton.js +27 -25
- package/build/esm/Button/OutlinedButton.js.map +1 -1
- package/build/esm/Button/TransparentButton.d.ts +2 -2
- package/build/esm/Button/TransparentButton.js +45 -41
- package/build/esm/Button/TransparentButton.js.map +1 -1
- package/build/esm/Button/context.js +4 -2
- package/build/esm/Button/context.js.map +1 -1
- package/build/esm/Button/index.d.ts +0 -0
- package/build/esm/Button/index.js.map +0 -0
- package/build/esm/CheckBox/CheckBox.d.ts +3 -3
- package/build/esm/CheckBox/CheckBox.js +42 -35
- package/build/esm/CheckBox/CheckBox.js.map +1 -1
- package/build/esm/CheckBox/CheckBoxIcon.d.ts +3 -3
- package/build/esm/CheckBox/CheckBoxIcon.js +15 -13
- package/build/esm/CheckBox/CheckBoxIcon.js.map +1 -1
- package/build/esm/CheckBox/CheckPath.d.ts +0 -0
- package/build/esm/CheckBox/CheckPath.js +15 -14
- package/build/esm/CheckBox/CheckPath.js.map +1 -1
- package/build/esm/CheckBox/IndeterminatePath.d.ts +0 -0
- package/build/esm/CheckBox/IndeterminatePath.js +14 -13
- package/build/esm/CheckBox/IndeterminatePath.js.map +1 -1
- package/build/esm/CheckBox/index.d.ts +0 -0
- package/build/esm/CheckBox/index.js.map +0 -0
- package/build/esm/Chip/ButtonChip.d.ts +3 -3
- package/build/esm/Chip/ButtonChip.js +15 -15
- package/build/esm/Chip/ButtonChip.js.map +1 -1
- package/build/esm/Chip/Chip.d.ts +0 -0
- package/build/esm/Chip/Chip.js.map +0 -0
- package/build/esm/Chip/ChipBase.d.ts +3 -3
- package/build/esm/Chip/ChipBase.js +24 -19
- package/build/esm/Chip/ChipBase.js.map +1 -1
- package/build/esm/Chip/ChoiceChip.d.ts +3 -3
- package/build/esm/Chip/ChoiceChip.js +25 -26
- package/build/esm/Chip/ChoiceChip.js.map +1 -1
- package/build/esm/Chip/index.d.ts +0 -0
- package/build/esm/Chip/index.js.map +0 -0
- package/build/esm/ColorMode/ColorModeProvider.d.ts +1 -1
- package/build/esm/ColorMode/ColorModeProvider.js +32 -19
- package/build/esm/ColorMode/ColorModeProvider.js.map +1 -1
- package/build/esm/ColorMode/color-mode.d.ts +0 -0
- package/build/esm/ColorMode/color-mode.js +3 -3
- package/build/esm/ColorMode/color-mode.js.map +1 -1
- package/build/esm/ColorMode/color-vars.d.ts +0 -0
- package/build/esm/ColorMode/color-vars.js +20 -12
- package/build/esm/ColorMode/color-vars.js.map +1 -1
- package/build/esm/ColorMode/constants.d.ts +0 -0
- package/build/esm/ColorMode/constants.js +3 -3
- package/build/esm/ColorMode/constants.js.map +1 -1
- package/build/esm/ColorMode/index.d.ts +0 -0
- package/build/esm/ColorMode/index.js.map +0 -0
- package/build/esm/Combobox/Combobox.d.ts +15 -15
- package/build/esm/Combobox/Combobox.js +50 -56
- package/build/esm/Combobox/Combobox.js.map +1 -1
- package/build/esm/Combobox/index.d.ts +0 -0
- package/build/esm/Combobox/index.js.map +0 -0
- package/build/esm/Dialog/Dialog.d.ts +5 -5
- package/build/esm/Dialog/Dialog.js +22 -23
- package/build/esm/Dialog/Dialog.js.map +1 -1
- package/build/esm/Dialog/DialogBackdrop.d.ts +4 -4
- package/build/esm/Dialog/DialogBackdrop.js +10 -11
- package/build/esm/Dialog/DialogBackdrop.js.map +1 -1
- package/build/esm/Dialog/DialogContainer.d.ts +2 -2
- package/build/esm/Dialog/DialogContainer.js +4 -6
- package/build/esm/Dialog/DialogContainer.js.map +1 -1
- package/build/esm/Dialog/DialogSurface.d.ts +4 -4
- package/build/esm/Dialog/DialogSurface.js +14 -14
- package/build/esm/Dialog/DialogSurface.js.map +1 -1
- package/build/esm/Dialog/Scrim.d.ts +2 -2
- package/build/esm/Dialog/Scrim.js +4 -6
- package/build/esm/Dialog/Scrim.js.map +1 -1
- package/build/esm/Dialog/index.d.ts +0 -0
- package/build/esm/Dialog/index.js.map +0 -0
- package/build/esm/Dialog/useDialogAnimation.d.ts +0 -0
- package/build/esm/Dialog/useDialogAnimation.js +19 -20
- package/build/esm/Dialog/useDialogAnimation.js.map +1 -1
- package/build/esm/Divider/Divider.d.ts +3 -3
- package/build/esm/Divider/Divider.js +9 -8
- package/build/esm/Divider/Divider.js.map +1 -1
- package/build/esm/Divider/index.d.ts +0 -0
- package/build/esm/Divider/index.js.map +0 -0
- package/build/esm/FloatingLabel/FloatingLabel.d.ts +1 -1
- package/build/esm/FloatingLabel/FloatingLabel.js +26 -22
- package/build/esm/FloatingLabel/FloatingLabel.js.map +1 -1
- package/build/esm/FloatingLabel/index.d.ts +0 -0
- package/build/esm/FloatingLabel/index.js.map +0 -0
- package/build/esm/LineRipple/LineRipple.d.ts +3 -3
- package/build/esm/LineRipple/LineRipple.js +27 -18
- package/build/esm/LineRipple/LineRipple.js.map +1 -1
- package/build/esm/LineRipple/index.d.ts +0 -0
- package/build/esm/LineRipple/index.js.map +0 -0
- package/build/esm/Link/Link.d.ts +3 -3
- package/build/esm/Link/Link.js +10 -9
- package/build/esm/Link/Link.js.map +1 -1
- package/build/esm/Link/index.d.ts +0 -0
- package/build/esm/Link/index.js.map +0 -0
- package/build/esm/List/List.d.ts +3 -3
- package/build/esm/List/List.js +20 -13
- package/build/esm/List/List.js.map +1 -1
- package/build/esm/List/index.d.ts +0 -0
- package/build/esm/List/index.js.map +0 -0
- package/build/esm/ListItem/ListItem.d.ts +3 -3
- package/build/esm/ListItem/ListItem.js +25 -21
- package/build/esm/ListItem/ListItem.js.map +1 -1
- package/build/esm/ListItem/ListItemText.d.ts +1 -1
- package/build/esm/ListItem/ListItemText.js +8 -8
- package/build/esm/ListItem/ListItemText.js.map +1 -1
- package/build/esm/ListItem/context.d.ts +0 -0
- package/build/esm/ListItem/context.js.map +0 -0
- package/build/esm/ListItem/index.d.ts +0 -0
- package/build/esm/ListItem/index.js.map +0 -0
- package/build/esm/Menu/Menu.d.ts +10 -10
- package/build/esm/Menu/Menu.js +22 -25
- package/build/esm/Menu/Menu.js.map +1 -1
- package/build/esm/Menu/animation.d.ts +1 -1
- package/build/esm/Menu/animation.js +1 -1
- package/build/esm/Menu/animation.js.map +1 -1
- package/build/esm/Menu/index.d.ts +0 -0
- package/build/esm/Menu/index.js.map +0 -0
- package/build/esm/NotchedOutline/NotchedOutline.d.ts +1 -1
- package/build/esm/NotchedOutline/NotchedOutline.js +25 -21
- package/build/esm/NotchedOutline/NotchedOutline.js.map +1 -1
- package/build/esm/NotchedOutline/context.d.ts +0 -0
- package/build/esm/NotchedOutline/context.js +6 -5
- package/build/esm/NotchedOutline/context.js.map +1 -1
- package/build/esm/NotchedOutline/index.d.ts +0 -0
- package/build/esm/NotchedOutline/index.js.map +0 -0
- package/build/esm/NotchedOutline/styledComponents.d.ts +0 -0
- package/build/esm/NotchedOutline/styledComponents.js +53 -58
- package/build/esm/NotchedOutline/styledComponents.js.map +1 -1
- package/build/esm/Paper/Paper.d.ts +4 -3
- package/build/esm/Paper/Paper.js +15 -13
- package/build/esm/Paper/Paper.js.map +1 -1
- package/build/esm/Paper/index.d.ts +0 -0
- package/build/esm/Paper/index.js.map +0 -0
- package/build/esm/ProgressSpinner/ProgressSpinner.d.ts +2 -2
- package/build/esm/ProgressSpinner/ProgressSpinner.js +16 -16
- package/build/esm/ProgressSpinner/ProgressSpinner.js.map +1 -1
- package/build/esm/ProgressSpinner/index.d.ts +0 -0
- package/build/esm/ProgressSpinner/index.js.map +0 -0
- package/build/esm/RadioButton/RadioButton.d.ts +1 -1
- package/build/esm/RadioButton/RadioButton.js +16 -19
- package/build/esm/RadioButton/RadioButton.js.map +1 -1
- package/build/esm/RadioButton/RadioButtonIcon.d.ts +1 -1
- package/build/esm/RadioButton/RadioButtonIcon.js +5 -6
- package/build/esm/RadioButton/RadioButtonIcon.js.map +1 -1
- package/build/esm/RadioButton/RadioGroup.d.ts +3 -3
- package/build/esm/RadioButton/RadioGroup.js +5 -4
- package/build/esm/RadioButton/RadioGroup.js.map +1 -1
- package/build/esm/RadioButton/index.d.ts +0 -0
- package/build/esm/RadioButton/index.js.map +0 -0
- package/build/esm/Ripple/Ripple.d.ts +1 -1
- package/build/esm/Ripple/Ripple.js +21 -20
- package/build/esm/Ripple/Ripple.js.map +1 -1
- package/build/esm/Ripple/RippleBox.d.ts +4 -4
- package/build/esm/Ripple/RippleBox.js +22 -15
- package/build/esm/Ripple/RippleBox.js.map +1 -1
- package/build/esm/Ripple/constants.d.ts +0 -0
- package/build/esm/Ripple/constants.js +7 -7
- package/build/esm/Ripple/constants.js.map +1 -1
- package/build/esm/Ripple/index.d.ts +0 -0
- package/build/esm/Ripple/index.js.map +0 -0
- package/build/esm/Ripple/keyframes.d.ts +1 -1
- package/build/esm/Ripple/keyframes.js +3 -3
- package/build/esm/Ripple/keyframes.js.map +1 -1
- package/build/esm/Ripple/useRipple.d.ts +0 -0
- package/build/esm/Ripple/useRipple.js +55 -48
- package/build/esm/Ripple/useRipple.js.map +1 -1
- package/build/esm/Ripple/useRippleHandlers.d.ts +1 -1
- package/build/esm/Ripple/useRippleHandlers.js +13 -15
- package/build/esm/Ripple/useRippleHandlers.js.map +1 -1
- package/build/esm/Ripple/useRippleSurface.d.ts +1 -1
- package/build/esm/Ripple/useRippleSurface.js +39 -38
- package/build/esm/Ripple/useRippleSurface.js.map +1 -1
- package/build/esm/Select/Select.d.ts +4 -4
- package/build/esm/Select/Select.js +69 -47
- package/build/esm/Select/Select.js.map +1 -1
- package/build/esm/Select/SelectIcon.d.ts +3 -3
- package/build/esm/Select/SelectIcon.js +6 -7
- package/build/esm/Select/SelectIcon.js.map +1 -1
- package/build/esm/Select/context.d.ts +0 -0
- package/build/esm/Select/context.js +7 -6
- package/build/esm/Select/context.js.map +1 -1
- package/build/esm/Select/defaultRender.d.ts +0 -0
- package/build/esm/Select/defaultRender.js +12 -10
- package/build/esm/Select/defaultRender.js.map +1 -1
- package/build/esm/Select/index.d.ts +0 -0
- package/build/esm/Select/index.js.map +0 -0
- package/build/esm/Select/styledComponents.d.ts +2 -2
- package/build/esm/Select/styledComponents.js +16 -19
- package/build/esm/Select/styledComponents.js.map +1 -1
- package/build/esm/SelectItem/SelectItem.d.ts +2 -2
- package/build/esm/SelectItem/SelectItem.js +18 -19
- package/build/esm/SelectItem/SelectItem.js.map +1 -1
- package/build/esm/SelectItem/index.d.ts +0 -0
- package/build/esm/SelectItem/index.js.map +0 -0
- package/build/esm/SelectionControl/SelectionControlLabel.d.ts +3 -3
- package/build/esm/SelectionControl/SelectionControlLabel.js +7 -7
- package/build/esm/SelectionControl/SelectionControlLabel.js.map +1 -1
- package/build/esm/SelectionControl/SelectionControlText.d.ts +3 -3
- package/build/esm/SelectionControl/SelectionControlText.js +8 -8
- package/build/esm/SelectionControl/SelectionControlText.js.map +1 -1
- package/build/esm/SelectionControl/index.d.ts +0 -0
- package/build/esm/SelectionControl/index.js.map +0 -0
- package/build/esm/Skeleton/DelayAppearance.d.ts +4 -4
- package/build/esm/Skeleton/DelayAppearance.js +9 -9
- package/build/esm/Skeleton/DelayAppearance.js.map +1 -1
- package/build/esm/Skeleton/Skeleton.d.ts +3 -3
- package/build/esm/Skeleton/Skeleton.js +11 -10
- package/build/esm/Skeleton/Skeleton.js.map +1 -1
- package/build/esm/Skeleton/animation.d.ts +2 -2
- package/build/esm/Skeleton/animation.js +25 -22
- package/build/esm/Skeleton/animation.js.map +1 -1
- package/build/esm/Skeleton/index.d.ts +0 -0
- package/build/esm/Skeleton/index.js.map +0 -0
- package/build/esm/Snackbar/Snackbar.d.ts +3 -3
- package/build/esm/Snackbar/Snackbar.js +21 -21
- package/build/esm/Snackbar/Snackbar.js.map +1 -1
- package/build/esm/Snackbar/Stack.d.ts +2 -3
- package/build/esm/Snackbar/Stack.js +78 -65
- package/build/esm/Snackbar/Stack.js.map +1 -1
- package/build/esm/Snackbar/index.d.ts +0 -0
- package/build/esm/Snackbar/index.js.map +0 -0
- package/build/esm/Snackbar/useSnackbarAnimation.d.ts +1 -1
- package/build/esm/Snackbar/useSnackbarAnimation.js +113 -78
- package/build/esm/Snackbar/useSnackbarAnimation.js.map +1 -1
- package/build/esm/Switch/Switch.d.ts +3 -3
- package/build/esm/Switch/Switch.js +21 -22
- package/build/esm/Switch/Switch.js.map +1 -1
- package/build/esm/Switch/index.d.ts +0 -0
- package/build/esm/Switch/index.js.map +0 -0
- package/build/esm/Switch/styledComponents.d.ts +0 -0
- package/build/esm/Switch/styledComponents.js +23 -25
- package/build/esm/Switch/styledComponents.js.map +1 -1
- package/build/esm/Tab/Tab.d.ts +4 -4
- package/build/esm/Tab/Tab.js +17 -19
- package/build/esm/Tab/Tab.js.map +1 -1
- package/build/esm/Tab/TabList.d.ts +3 -3
- package/build/esm/Tab/TabList.js +18 -19
- package/build/esm/Tab/TabList.js.map +1 -1
- package/build/esm/Tab/TabPanel.d.ts +3 -3
- package/build/esm/Tab/TabPanel.js +8 -11
- package/build/esm/Tab/TabPanel.js.map +1 -1
- package/build/esm/Tab/TabPanels.d.ts +0 -0
- package/build/esm/Tab/TabPanels.js.map +0 -0
- package/build/esm/Tab/Tabs.d.ts +0 -0
- package/build/esm/Tab/Tabs.js.map +0 -0
- package/build/esm/Tab/context.d.ts +0 -0
- package/build/esm/Tab/context.js +6 -5
- package/build/esm/Tab/context.js.map +1 -1
- package/build/esm/Tab/index.d.ts +0 -0
- package/build/esm/Tab/index.js.map +0 -0
- package/build/esm/TabIndicator/TabIndicator.d.ts +2 -2
- package/build/esm/TabIndicator/TabIndicator.js +22 -21
- package/build/esm/TabIndicator/TabIndicator.js.map +1 -1
- package/build/esm/TabIndicator/context.d.ts +0 -0
- package/build/esm/TabIndicator/context.js +6 -5
- package/build/esm/TabIndicator/context.js.map +1 -1
- package/build/esm/TabIndicator/index.d.ts +0 -0
- package/build/esm/TabIndicator/index.js.map +0 -0
- package/build/esm/Table/Table.d.ts +2 -2
- package/build/esm/Table/Table.js +8 -8
- package/build/esm/Table/Table.js.map +1 -1
- package/build/esm/Table/TableBody.d.ts +2 -2
- package/build/esm/Table/TableBody.js +4 -6
- package/build/esm/Table/TableBody.js.map +1 -1
- package/build/esm/Table/TableCell.d.ts +2 -2
- package/build/esm/Table/TableCell.js +6 -8
- package/build/esm/Table/TableCell.js.map +1 -1
- package/build/esm/Table/TableHead.d.ts +2 -2
- package/build/esm/Table/TableHead.js +5 -7
- package/build/esm/Table/TableHead.js.map +1 -1
- package/build/esm/Table/TableRow.d.ts +2 -2
- package/build/esm/Table/TableRow.js +5 -7
- package/build/esm/Table/TableRow.js.map +1 -1
- package/build/esm/Table/context.d.ts +0 -0
- package/build/esm/Table/context.js +6 -5
- package/build/esm/Table/context.js.map +1 -1
- package/build/esm/Table/index.d.ts +0 -0
- package/build/esm/Table/index.js.map +0 -0
- package/build/esm/Text/LoremIpsum.d.ts +1 -1
- package/build/esm/Text/LoremIpsum.js +6 -6
- package/build/esm/Text/LoremIpsum.js.map +1 -1
- package/build/esm/Text/Text.d.ts +3 -3
- package/build/esm/Text/Text.js +9 -9
- package/build/esm/Text/Text.js.map +1 -1
- package/build/esm/Text/index.d.ts +0 -0
- package/build/esm/Text/index.js.map +0 -0
- package/build/esm/TextField/FilledContainer.d.ts +3 -3
- package/build/esm/TextField/FilledContainer.js +56 -53
- package/build/esm/TextField/FilledContainer.js.map +1 -1
- package/build/esm/TextField/HelperText.d.ts +3 -3
- package/build/esm/TextField/HelperText.js +14 -13
- package/build/esm/TextField/HelperText.js.map +1 -1
- package/build/esm/TextField/IconContainer.d.ts +2 -2
- package/build/esm/TextField/IconContainer.js +15 -23
- package/build/esm/TextField/IconContainer.js.map +1 -1
- package/build/esm/TextField/Input.d.ts +3 -3
- package/build/esm/TextField/Input.js +13 -13
- package/build/esm/TextField/Input.js.map +1 -1
- package/build/esm/TextField/OutlinedContainer.d.ts +4 -4
- package/build/esm/TextField/OutlinedContainer.js +28 -22
- package/build/esm/TextField/OutlinedContainer.js.map +1 -1
- package/build/esm/TextField/TextField.d.ts +4 -4
- package/build/esm/TextField/TextField.js +59 -41
- package/build/esm/TextField/TextField.js.map +1 -1
- package/build/esm/TextField/consts.js +5 -5
- package/build/esm/TextField/consts.js.map +1 -1
- package/build/esm/TextField/index.d.ts +0 -0
- package/build/esm/TextField/index.js.map +0 -0
- package/build/esm/ThemeExplorer/ColorPicker.d.ts +4 -4
- package/build/esm/ThemeExplorer/ColorPicker.js +14 -14
- package/build/esm/ThemeExplorer/ColorPicker.js.map +1 -1
- package/build/esm/ThemeExplorer/TextFieldColorPicker.d.ts +2 -2
- package/build/esm/ThemeExplorer/TextFieldColorPicker.js +44 -24
- package/build/esm/ThemeExplorer/TextFieldColorPicker.js.map +1 -1
- package/build/esm/ThemeExplorer/ThemeColors.d.ts +1 -1
- package/build/esm/ThemeExplorer/ThemeColors.js +3 -3
- package/build/esm/ThemeExplorer/ThemeColors.js.map +1 -1
- package/build/esm/ThemeExplorer/components.d.ts +2 -1
- package/build/esm/ThemeExplorer/components.js +64 -56
- package/build/esm/ThemeExplorer/components.js.map +1 -1
- package/build/esm/ThemeExplorer/makeColorScheme.d.ts +1 -1
- package/build/esm/ThemeExplorer/makeColorScheme.js.map +1 -1
- package/build/esm/ThemeExplorer/useDeferredColor.d.ts +1 -1
- package/build/esm/ThemeExplorer/useDeferredColor.js +10 -3
- package/build/esm/ThemeExplorer/useDeferredColor.js.map +1 -1
- package/build/esm/ThemeExplorer/useLocalStorageCachedState.js +9 -2
- package/build/esm/ThemeExplorer/useLocalStorageCachedState.js.map +1 -1
- package/build/esm/Tooltip/Tooltip.d.ts +3 -3
- package/build/esm/Tooltip/Tooltip.js +7 -8
- package/build/esm/Tooltip/Tooltip.js.map +1 -1
- package/build/esm/Tooltip/index.d.ts +0 -0
- package/build/esm/Tooltip/index.js.map +0 -0
- package/build/esm/color.d.ts +3 -3
- package/build/esm/color.js +19 -13
- package/build/esm/color.js.map +1 -1
- package/build/esm/css.d.ts +0 -0
- package/build/esm/css.js.map +0 -0
- package/build/esm/hooks/useAnimation.d.ts +1 -1
- package/build/esm/hooks/useAnimation.js +54 -41
- package/build/esm/hooks/useAnimation.js.map +1 -1
- package/build/esm/index.d.ts +0 -0
- package/build/esm/index.js.map +0 -0
- package/build/esm/theme/index.d.ts +0 -0
- package/build/esm/theme/index.js.map +0 -0
- package/build/esm/theme/theme.d.ts +0 -0
- package/build/esm/theme/theme.js +1 -1
- package/build/esm/theme/theme.js.map +1 -1
- package/build/esm/theme/typography-raleway.d.ts +0 -0
- package/build/esm/theme/typography-raleway.js +1 -1
- package/build/esm/theme/typography-raleway.js.map +1 -1
- package/build/esm/theme/typography-roboto.d.ts +0 -0
- package/build/esm/theme/typography-roboto.js +1 -1
- package/build/esm/theme/typography-roboto.js.map +1 -1
- package/build/esm/theme/useTheme.d.ts +2 -472
- package/build/esm/theme/useTheme.js +1 -1
- package/build/esm/theme/useTheme.js.map +1 -1
- package/build/tsconfig.tsbuildinfo +1 -1
- package/package.json +6 -5
- package/src/Alert/Alert.tsx +3 -1
- package/src/AppBar/AppBar.story.tsx +7 -6
- package/src/AppBar/AppBar.tsx +5 -3
- package/src/AppBar/AppBarButton.tsx +3 -1
- package/src/AppBar/context.ts +2 -1
- package/src/Badge/Badge.tsx +3 -1
- package/src/BaseLine/BaseLine.tsx +15 -11
- package/src/BottomSheet/BottomSheet.story.tsx +1 -0
- package/src/BottomSheet/BottomSheet.tsx +2 -1
- package/src/BottomSheet/BottomSheetSurface.tsx +9 -5
- package/src/Box/Box.tsx +21 -18
- package/src/Button/BaseButton.tsx +4 -2
- package/src/Button/Button.story.tsx +16 -3
- package/src/Button/Button.tsx +3 -2
- package/src/Button/ButtonGroup.tsx +4 -2
- package/src/Button/FilledButton.tsx +3 -2
- package/src/Button/FloatingActionButton.tsx +1 -1
- package/src/Button/IconButton.tsx +1 -1
- package/src/Button/OutlinedButton.tsx +3 -2
- package/src/Button/SpinnerButton.story.tsx +9 -10
- package/src/Button/TransparentButton.tsx +4 -4
- package/src/Button/context.tsx +1 -0
- package/src/CheckBox/CheckBox.story.tsx +3 -2
- package/src/CheckBox/CheckBox.tsx +9 -5
- package/src/CheckBox/CheckBoxIcon.tsx +4 -2
- package/src/Chip/ButtonChip.tsx +6 -4
- package/src/Chip/Chip.story.tsx +0 -1
- package/src/Chip/ChipBase.tsx +7 -5
- package/src/Chip/ChoiceChip.tsx +10 -7
- package/src/ColorMode/ColorModeProvider.tsx +4 -2
- package/src/Combobox/Combobox.story.tsx +2 -1
- package/src/Combobox/Combobox.tsx +29 -17
- package/src/Dialog/Dialog.story.tsx +3 -1
- package/src/Dialog/Dialog.tsx +9 -4
- package/src/Dialog/DialogBackdrop.tsx +6 -6
- package/src/Dialog/DialogContainer.tsx +3 -1
- package/src/Dialog/DialogSurface.tsx +8 -6
- package/src/Dialog/Scrim.tsx +3 -1
- package/src/Divider/Divider.tsx +4 -2
- package/src/FloatingLabel/FloatingLabel.story.tsx +1 -0
- package/src/FloatingLabel/FloatingLabel.tsx +3 -2
- package/src/LineRipple/LineRipple.story.tsx +1 -0
- package/src/LineRipple/LineRipple.tsx +6 -3
- package/src/Link/Link.tsx +4 -2
- package/src/List/List.tsx +5 -2
- package/src/ListItem/ListItem.story.tsx +1 -0
- package/src/ListItem/ListItem.tsx +6 -3
- package/src/ListItem/ListItemText.tsx +2 -1
- package/src/Menu/Menu.tsx +20 -12
- package/src/Menu/animation.ts +1 -1
- package/src/NotchedOutline/NotchedOutline.story.tsx +2 -1
- package/src/NotchedOutline/NotchedOutline.tsx +2 -1
- package/src/NotchedOutline/styledComponents.ts +3 -2
- package/src/Paper/Paper.story.tsx +2 -1
- package/src/Paper/Paper.tsx +22 -9
- package/src/ProgressSpinner/ProgressSpinner.story.tsx +1 -0
- package/src/ProgressSpinner/ProgressSpinner.tsx +5 -2
- package/src/RadioButton/RadioButton.story.tsx +2 -1
- package/src/RadioButton/RadioButton.tsx +9 -7
- package/src/RadioButton/RadioButtonIcon.tsx +2 -1
- package/src/RadioButton/RadioGroup.tsx +5 -5
- package/src/Ripple/Ripple.story.tsx +8 -2
- package/src/Ripple/Ripple.tsx +2 -1
- package/src/Ripple/RippleBox.tsx +8 -4
- package/src/Ripple/keyframes.ts +2 -1
- package/src/Ripple/useRipple.ts +1 -0
- package/src/Ripple/useRippleHandlers.ts +3 -1
- package/src/Ripple/useRippleSurface.ts +9 -7
- package/src/Select/PaymentMethodSelect.story.tsx +3 -1
- package/src/Select/Select.story.tsx +1 -0
- package/src/Select/Select.tsx +6 -4
- package/src/Select/SelectIcon.tsx +6 -3
- package/src/Select/defaultRender.ts +13 -13
- package/src/Select/styledComponents.tsx +5 -3
- package/src/SelectItem/SelectItem.tsx +4 -2
- package/src/SelectionControl/SelectionControlLabel.tsx +6 -3
- package/src/SelectionControl/SelectionControlText.tsx +4 -2
- package/src/Skeleton/DelayAppearance.tsx +5 -3
- package/src/Skeleton/Skeleton.tsx +4 -2
- package/src/Skeleton/animation.ts +3 -2
- package/src/Snackbar/Snackbar.story.tsx +1 -0
- package/src/Snackbar/Snackbar.tsx +5 -3
- package/src/Snackbar/Stack.tsx +3 -3
- package/src/Snackbar/useSnackbarAnimation.ts +3 -1
- package/src/Switch/Switch.tsx +9 -5
- package/src/Switch/styledComponents.tsx +14 -11
- package/src/Tab/Tab.tsx +8 -4
- package/src/Tab/TabList.tsx +5 -5
- package/src/Tab/TabPanel.tsx +5 -5
- package/src/TabIndicator/TabIndicator.tsx +6 -3
- package/src/Table/Table.tsx +4 -1
- package/src/Table/TableBody.tsx +3 -1
- package/src/Table/TableCell.tsx +3 -1
- package/src/Table/TableHead.tsx +4 -2
- package/src/Table/TableRow.tsx +4 -2
- package/src/Text/LoremIpsum.tsx +2 -1
- package/src/Text/Text.tsx +4 -2
- package/src/TextField/FilledContainer.tsx +5 -3
- package/src/TextField/HelperText.tsx +3 -2
- package/src/TextField/IconContainer.tsx +3 -2
- package/src/TextField/Input.tsx +5 -3
- package/src/TextField/OutlinedContainer.tsx +5 -3
- package/src/TextField/TextField.story.tsx +1 -0
- package/src/TextField/TextField.tsx +6 -3
- package/src/ThemeExplorer/ColorPicker.tsx +19 -16
- package/src/ThemeExplorer/TextFieldColorPicker.tsx +5 -2
- package/src/ThemeExplorer/ThemeBuilder.story.tsx +8 -12
- package/src/ThemeExplorer/ThemeColors.tsx +2 -1
- package/src/ThemeExplorer/ThemeExplorer.story.tsx +1 -0
- package/src/ThemeExplorer/components.tsx +5 -18
- package/src/ThemeExplorer/makeColorScheme.tsx +2 -1
- package/src/ThemeExplorer/useDeferredColor.tsx +2 -1
- package/src/Tooltip/Tooltip.story.tsx +1 -0
- package/src/Tooltip/Tooltip.tsx +8 -4
- package/src/color.ts +18 -16
- package/src/hooks/useAnimation.ts +2 -1
- package/src/theme/useTheme.ts +3 -1
package/src/Link/Link.tsx
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { forwardRef } from 'react';
|
|
2
|
-
import
|
|
3
|
-
import { Box, BoxProps } from '../Box';
|
|
2
|
+
import * as React from 'react';
|
|
4
3
|
import { rem } from 'polished';
|
|
4
|
+
|
|
5
|
+
import type { BoxProps } from '../Box';
|
|
6
|
+
import { Box } from '../Box';
|
|
5
7
|
import { alpha } from '../color';
|
|
6
8
|
|
|
7
9
|
export interface LinkProps
|
package/src/List/List.tsx
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { forwardRef } from 'react';
|
|
2
|
-
import
|
|
3
|
-
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
|
|
4
|
+
import type { PaperProps } from '../Paper';
|
|
5
|
+
import { Paper } from '../Paper';
|
|
4
6
|
|
|
5
7
|
export interface ListProps extends PaperProps {
|
|
6
8
|
as?: React.ElementType<any>;
|
|
@@ -31,6 +33,7 @@ export const List = forwardRef<HTMLDivElement, ListProps>(function List(
|
|
|
31
33
|
py={py}
|
|
32
34
|
px={px}
|
|
33
35
|
elevation={elevation}
|
|
36
|
+
darkThemeBackgroundOverlay={elevation}
|
|
34
37
|
variant={variant}
|
|
35
38
|
outlined={outlined}
|
|
36
39
|
__css={{
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { forwardRef } from 'react';
|
|
2
|
-
import
|
|
3
|
-
import { BoxProps, Box } from '../Box';
|
|
2
|
+
import * as React from 'react';
|
|
4
3
|
import { rem } from 'polished';
|
|
5
|
-
import { useTheme } from '../theme';
|
|
6
4
|
import { get } from '@styled-system/css';
|
|
5
|
+
|
|
6
|
+
import type { BoxProps } from '../Box';
|
|
7
|
+
import { Box } from '../Box';
|
|
8
|
+
import { useTheme } from '../theme';
|
|
7
9
|
import { alpha } from '../color';
|
|
8
10
|
|
|
9
11
|
export interface ListItemProps extends BoxProps {
|
|
@@ -67,6 +69,7 @@ export const ListItem = forwardRef<HTMLDivElement, ListItemProps>(
|
|
|
67
69
|
},
|
|
68
70
|
'&[aria-selected="true"]': {
|
|
69
71
|
backgroundColor: alpha(color, baseOpacity + 0.12),
|
|
72
|
+
color,
|
|
70
73
|
':hover': {
|
|
71
74
|
backgroundColor: alpha(color, hoverOpacity + 0.12),
|
|
72
75
|
},
|
package/src/Menu/Menu.tsx
CHANGED
|
@@ -1,23 +1,30 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
|
|
1
|
+
import type { FC } from 'react';
|
|
2
|
+
import { forwardRef } from 'react';
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
import type {
|
|
5
5
|
MenuButtonProps as MenuButtonPropsCore,
|
|
6
|
-
MenuList as _MenuListCore,
|
|
7
6
|
MenuListProps as MenuListPropsCore,
|
|
8
|
-
MenuItem as MenuItemCore,
|
|
9
7
|
MenuItemProps as MenuItemPropsCore,
|
|
10
|
-
MenuPopover as _MenuPopoverCore,
|
|
11
8
|
MenuPopoverProps as MenuPopoverPropsCore,
|
|
12
9
|
MenuProps as MenuPropsCore,
|
|
13
10
|
} from '@basic-ui/core';
|
|
14
|
-
import {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
11
|
+
import {
|
|
12
|
+
MenuButton as MenuButtonCore,
|
|
13
|
+
MenuList as _MenuListCore,
|
|
14
|
+
MenuItem as MenuItemCore,
|
|
15
|
+
MenuPopover as _MenuPopoverCore,
|
|
16
|
+
} from '@basic-ui/core';
|
|
18
17
|
import { rem } from 'polished';
|
|
18
|
+
|
|
19
|
+
import { List } from '../List';
|
|
20
|
+
import type { ListItemProps } from '../ListItem';
|
|
21
|
+
import { ListItem } from '../ListItem';
|
|
22
|
+
import type { ButtonProps } from '../Button';
|
|
23
|
+
import { Button } from '../Button';
|
|
24
|
+
import type { BoxProps } from '../Box';
|
|
25
|
+
import { Box } from '../Box';
|
|
19
26
|
import { growAnimation } from './animation';
|
|
20
|
-
import { PaperProps } from '../Paper';
|
|
27
|
+
import type { PaperProps } from '../Paper';
|
|
21
28
|
|
|
22
29
|
/////////////////////////////////////////////////////
|
|
23
30
|
// MenuList
|
|
@@ -35,6 +42,7 @@ export const MenuList = forwardRef<HTMLUListElement, MenuListProps>(
|
|
|
35
42
|
innerAs={as}
|
|
36
43
|
ref={ref as any}
|
|
37
44
|
elevation={2}
|
|
45
|
+
darkThemeBackgroundOverlay={2}
|
|
38
46
|
outlined={false}
|
|
39
47
|
variant="default"
|
|
40
48
|
__css={{
|
package/src/Menu/animation.ts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import {} from './';
|
|
2
|
+
import { rem } from 'polished';
|
|
3
|
+
|
|
2
4
|
import { NotchedOutline } from './NotchedOutline';
|
|
3
5
|
import { Box } from '../Box';
|
|
4
6
|
import { FloatingLabel } from '../FloatingLabel';
|
|
5
|
-
import { rem } from 'polished';
|
|
6
7
|
// import './styles.css';
|
|
7
8
|
|
|
8
9
|
export default {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { forwardRef } from 'react';
|
|
2
|
-
import
|
|
2
|
+
import * as React from 'react';
|
|
3
3
|
import { rem } from 'polished';
|
|
4
|
+
|
|
4
5
|
import { NotchedOutlineProvider } from './context';
|
|
5
6
|
import { useTheme } from '../theme';
|
|
6
7
|
import { NOTCH_PADDING, InnerContainer } from './styledComponents';
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import styled from '@emotion/styled';
|
|
2
|
-
import { Theme } from '../theme';
|
|
3
2
|
import { rem } from 'polished';
|
|
4
|
-
import { alpha } from '../color';
|
|
5
3
|
import shouldForwardProp from '@styled-system/should-forward-prop';
|
|
6
4
|
import { css } from '@styled-system/css';
|
|
7
5
|
|
|
6
|
+
import { alpha } from '../color';
|
|
7
|
+
import type { Theme } from '../theme';
|
|
8
|
+
|
|
8
9
|
export const NOTCH_PADDING = 4;
|
|
9
10
|
|
|
10
11
|
const makeSelector = (
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { useState } from 'react';
|
|
2
|
+
|
|
2
3
|
import { Paper } from './';
|
|
3
4
|
import { Text } from '../Text';
|
|
4
5
|
import { Box } from '../Box';
|
|
5
|
-
import { rem } from 'polished';
|
|
6
6
|
|
|
7
7
|
export default {
|
|
8
8
|
title: 'components/Paper',
|
|
@@ -23,6 +23,7 @@ const Example = ({}) => {
|
|
|
23
23
|
width="216px"
|
|
24
24
|
height="216px"
|
|
25
25
|
elevation={elevation}
|
|
26
|
+
darkThemeBackgroundOverlay={elevation}
|
|
26
27
|
mb="4"
|
|
27
28
|
sx={{ borderRadius: 'large' }}
|
|
28
29
|
>
|
package/src/Paper/Paper.tsx
CHANGED
|
@@ -1,15 +1,22 @@
|
|
|
1
1
|
import { forwardRef } from 'react';
|
|
2
|
-
import
|
|
3
|
-
import { Box, BoxProps } from '../Box';
|
|
4
|
-
import { useTheme } from '../theme';
|
|
2
|
+
import * as React from 'react';
|
|
5
3
|
import { rem } from 'polished';
|
|
6
|
-
|
|
4
|
+
|
|
5
|
+
import type { BoxProps } from '../Box';
|
|
6
|
+
import { Box } from '../Box';
|
|
7
|
+
import { useTheme } from '../theme';
|
|
8
|
+
import {
|
|
9
|
+
alpha,
|
|
10
|
+
getBackgroundOverlay,
|
|
11
|
+
getDarkThemeBackgroundOverlay,
|
|
12
|
+
} from '../color';
|
|
7
13
|
|
|
8
14
|
export interface PaperProps extends BoxProps {
|
|
9
15
|
as?: React.ElementType<any>;
|
|
10
16
|
elevation?: number;
|
|
11
17
|
outlined?: boolean;
|
|
12
18
|
backgroundOverlay?: number | string;
|
|
19
|
+
darkThemeBackgroundOverlay?: number | string;
|
|
13
20
|
children?: React.ReactNode;
|
|
14
21
|
}
|
|
15
22
|
|
|
@@ -21,6 +28,7 @@ export const Paper = forwardRef<HTMLDivElement, PaperProps>(function Paper(
|
|
|
21
28
|
outlined,
|
|
22
29
|
elevation = 0,
|
|
23
30
|
backgroundOverlay,
|
|
31
|
+
darkThemeBackgroundOverlay,
|
|
24
32
|
__css = {},
|
|
25
33
|
children,
|
|
26
34
|
...otherProps
|
|
@@ -43,11 +51,16 @@ export const Paper = forwardRef<HTMLDivElement, PaperProps>(function Paper(
|
|
|
43
51
|
borderColor: alpha('on.surface', 0.12),
|
|
44
52
|
}
|
|
45
53
|
: {}),
|
|
46
|
-
...
|
|
47
|
-
theme,
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
54
|
+
...(backgroundOverlay
|
|
55
|
+
? getBackgroundOverlay(theme, backgroundOverlay, 'primary')
|
|
56
|
+
: {}),
|
|
57
|
+
...(darkThemeBackgroundOverlay
|
|
58
|
+
? getDarkThemeBackgroundOverlay(
|
|
59
|
+
theme,
|
|
60
|
+
darkThemeBackgroundOverlay,
|
|
61
|
+
'primary'
|
|
62
|
+
)
|
|
63
|
+
: {}),
|
|
51
64
|
...__css,
|
|
52
65
|
}}
|
|
53
66
|
{...otherProps}
|
|
@@ -1,8 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { SVGAttributes } from 'react';
|
|
2
|
+
import { forwardRef } from 'react';
|
|
2
3
|
import { keyframes } from '@emotion/react';
|
|
3
|
-
import { Box, BoxProps } from '../Box';
|
|
4
4
|
import { rem } from 'polished';
|
|
5
5
|
|
|
6
|
+
import type { BoxProps } from '../Box';
|
|
7
|
+
import { Box } from '../Box';
|
|
8
|
+
|
|
6
9
|
export type ProgressSpinnerProps = BoxProps & {
|
|
7
10
|
progress?: number;
|
|
8
11
|
thickness?: number;
|
|
@@ -1,11 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
} from '@basic-ui/core';
|
|
6
|
-
import { Box, BoxProps } from '../Box';
|
|
7
|
-
import { RippleBox, RippleBoxProps } from '../Ripple';
|
|
1
|
+
import type { InputHTMLAttributes } from 'react';
|
|
2
|
+
import { forwardRef } from 'react';
|
|
3
|
+
import type { RadioButtonProps as RadioButtonCoreProps } from '@basic-ui/core';
|
|
4
|
+
import { RadioButton as RadioButtonCore } from '@basic-ui/core';
|
|
8
5
|
import { rem } from 'polished';
|
|
6
|
+
|
|
7
|
+
import type { BoxProps } from '../Box';
|
|
8
|
+
import { Box } from '../Box';
|
|
9
|
+
import type { RippleBoxProps } from '../Ripple';
|
|
10
|
+
import { RippleBox } from '../Ripple';
|
|
9
11
|
import { alpha } from '../color';
|
|
10
12
|
import { RadioButtonIcon } from './RadioButtonIcon';
|
|
11
13
|
import { useTheme } from '../theme';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { forwardRef } from 'react';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
} from '
|
|
2
|
+
import type { RadioGroupProps as RadioGroupCoreProps } from '@basic-ui/core';
|
|
3
|
+
import { RadioGroup as RadioGroupCore } from '@basic-ui/core';
|
|
4
|
+
|
|
5
|
+
import type { BoxProps } from '../Box';
|
|
6
|
+
import { Box } from '../Box';
|
|
7
7
|
|
|
8
8
|
export type RadioGroupProps = Omit<
|
|
9
9
|
BoxProps,
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { useRef, useState } from 'react';
|
|
2
|
+
import { get } from '@styled-system/css';
|
|
3
|
+
|
|
2
4
|
import { Ripple, useRipple } from './';
|
|
3
5
|
import { Box } from '../Box';
|
|
4
6
|
import { Text } from '../Text';
|
|
5
7
|
import { Button } from '../Button';
|
|
6
8
|
import { useTheme } from '../theme';
|
|
7
|
-
import { get } from '@styled-system/css';
|
|
8
9
|
|
|
9
10
|
export default {
|
|
10
11
|
title: 'helper components/Ripple',
|
|
@@ -14,7 +15,12 @@ const Example = () => {
|
|
|
14
15
|
const theme = useTheme();
|
|
15
16
|
const ref = useRef<HTMLDivElement>();
|
|
16
17
|
const [textColor, setTextColor] = useState<string>(undefined);
|
|
17
|
-
const {
|
|
18
|
+
const {
|
|
19
|
+
activate,
|
|
20
|
+
deactivate,
|
|
21
|
+
animation,
|
|
22
|
+
style: rippleStyle,
|
|
23
|
+
} = useRipple({
|
|
18
24
|
opacity: 1,
|
|
19
25
|
backgroundColor: get(theme, 'colors.primary'),
|
|
20
26
|
});
|
package/src/Ripple/Ripple.tsx
CHANGED
package/src/Ripple/RippleBox.tsx
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
|
|
1
|
+
import type { HTMLAttributes } from 'react';
|
|
2
|
+
import { forwardRef } from 'react';
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
|
|
5
|
+
import type { UseRippleSurfaceOptions } from './useRippleSurface';
|
|
6
|
+
import { useRippleSurface } from './useRippleSurface';
|
|
7
|
+
import type { BoxProps } from '../Box';
|
|
8
|
+
import { Box } from '../Box';
|
|
5
9
|
|
|
6
10
|
export type RippleBoxProps<
|
|
7
11
|
H extends HTMLElement = HTMLDivElement,
|
package/src/Ripple/keyframes.ts
CHANGED
package/src/Ripple/useRipple.ts
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { useRef } from 'react';
|
|
2
2
|
import type * as React from 'react';
|
|
3
|
-
|
|
3
|
+
|
|
4
|
+
import type { RippleOptions } from './useRipple';
|
|
5
|
+
import { useRipple } from './useRipple';
|
|
4
6
|
|
|
5
7
|
const disabledHandler = () => {
|
|
6
8
|
/* When disabled, we don't wanna handle neither keyDown, nor pointerDown */
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { CSSProperties } from 'react';
|
|
2
|
-
import { useTheme } from '../theme';
|
|
1
|
+
import type { CSSProperties } from 'react';
|
|
3
2
|
import { get } from '@styled-system/css';
|
|
3
|
+
import { wrapEvent } from '@basic-ui/core';
|
|
4
|
+
|
|
5
|
+
import { useTheme } from '../theme';
|
|
4
6
|
import { rippleStyle } from './Ripple';
|
|
5
7
|
import { useRippleHandlers } from './useRippleHandlers';
|
|
6
|
-
import {
|
|
7
|
-
import { SxStyleProp } from '../Box';
|
|
8
|
+
import type { SxStyleProp } from '../Box';
|
|
8
9
|
|
|
9
10
|
export interface UseRippleSurfaceOptions<T extends HTMLElement> {
|
|
10
11
|
baseOpacity?: number;
|
|
@@ -110,9 +111,10 @@ export function useRippleSurface<T extends HTMLElement>(
|
|
|
110
111
|
}),
|
|
111
112
|
['&:disabled::before,&:disabled:hover::before,&:disabled:focus::before,&:disabled:active::before,' +
|
|
112
113
|
'&[data-disabled]::before,&[data-disabled]:hover::before,&[data-disabled]:focus::before,' +
|
|
113
|
-
'&[data-disabled]:active::before,&:disabled[aria-pressed="true"]::before']:
|
|
114
|
-
|
|
115
|
-
|
|
114
|
+
'&[data-disabled]:active::before,&:disabled[aria-pressed="true"]::before']:
|
|
115
|
+
{
|
|
116
|
+
opacity: 0,
|
|
117
|
+
},
|
|
116
118
|
'&:disabled,&[data-disabled]': {
|
|
117
119
|
cursor: 'default',
|
|
118
120
|
},
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import { Box, Select, SelectItem, SelectProps } from '../';
|
|
2
1
|
import { forwardRef, useState } from 'react';
|
|
3
2
|
import type { ReactElement, ComponentType } from 'react';
|
|
4
3
|
|
|
4
|
+
import type { SelectProps } from '../';
|
|
5
|
+
import { Box, Select, SelectItem } from '../';
|
|
6
|
+
|
|
5
7
|
export default {
|
|
6
8
|
title: 'components/Select/Complex',
|
|
7
9
|
};
|
package/src/Select/Select.tsx
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { forwardRef, useState, useRef, useEffect, useId } from 'react';
|
|
2
|
-
|
|
3
|
-
import type * as React from 'react';
|
|
2
|
+
import * as React from 'react';
|
|
4
3
|
import {
|
|
5
4
|
wrapEvent,
|
|
6
5
|
assignMultipleRefs,
|
|
7
6
|
useControlledState,
|
|
8
7
|
} from '@basic-ui/core';
|
|
9
|
-
|
|
8
|
+
|
|
9
|
+
import type { Theme } from '../theme';
|
|
10
|
+
import { useTheme } from '../theme';
|
|
10
11
|
import { Select as SelectComp, SelectButton } from './styledComponents';
|
|
11
12
|
import { FilledContainer } from '../TextField/FilledContainer';
|
|
12
13
|
import { HelperText } from '../TextField/HelperText';
|
|
@@ -15,7 +16,8 @@ import { SelectProvider } from './context';
|
|
|
15
16
|
import { Menu, MenuPopover, MenuList } from '../Menu';
|
|
16
17
|
import { SelectIcon } from './SelectIcon';
|
|
17
18
|
import { makeDefaultRender } from './defaultRender';
|
|
18
|
-
import {
|
|
19
|
+
import type { BoxProps } from '../Box';
|
|
20
|
+
import { Box } from '../Box';
|
|
19
21
|
import { IconContainer } from '../TextField/IconContainer';
|
|
20
22
|
|
|
21
23
|
const componentMap = {
|
|
@@ -1,7 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import type { SVGAttributes } from 'react';
|
|
2
|
+
import { forwardRef } from 'react';
|
|
3
|
+
import * as React from 'react';
|
|
4
4
|
import { rem } from 'polished';
|
|
5
|
+
|
|
6
|
+
import type { BoxProps } from '../Box';
|
|
7
|
+
import { Box } from '../Box';
|
|
5
8
|
import { alpha } from '../color';
|
|
6
9
|
import { PADDING_RIGHT_WITH_ICON } from '../TextField/consts';
|
|
7
10
|
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { Children, isValidElement } from 'react';
|
|
2
2
|
|
|
3
|
-
export const makeDefaultRender =
|
|
4
|
-
|
|
5
|
-
): string | undefined => {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
3
|
+
export const makeDefaultRender =
|
|
4
|
+
(children?: React.ReactNode) =>
|
|
5
|
+
(val?: string): string | undefined => {
|
|
6
|
+
if (children && val !== undefined) {
|
|
7
|
+
const allChildren = Children.toArray(children);
|
|
8
|
+
for (let i = 0; i < allChildren.length; i++) {
|
|
9
|
+
const child = allChildren[i];
|
|
10
|
+
if (isValidElement(child)) {
|
|
11
|
+
if (String(child.props.value) === val) {
|
|
12
|
+
return child.props.children;
|
|
13
|
+
}
|
|
13
14
|
}
|
|
14
15
|
}
|
|
15
16
|
}
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
};
|
|
17
|
+
return val || undefined;
|
|
18
|
+
};
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { forwardRef } from 'react';
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import type { MenuButtonProps } from '@basic-ui/core';
|
|
4
|
+
import { MenuButton as BaseMenuButton } from '@basic-ui/core';
|
|
5
|
+
|
|
6
|
+
import type { Theme } from '../theme';
|
|
5
7
|
import { Input } from '../TextField/Input';
|
|
6
8
|
|
|
7
9
|
export interface SelectProps
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { forwardRef } from 'react';
|
|
2
|
-
import { MenuItem, MenuItemProps } from '../Menu';
|
|
3
|
-
import { useSelectContext } from '../Select/context';
|
|
4
2
|
import { wrapEvent } from '@basic-ui/core';
|
|
5
3
|
|
|
4
|
+
import type { MenuItemProps } from '../Menu';
|
|
5
|
+
import { MenuItem } from '../Menu';
|
|
6
|
+
import { useSelectContext } from '../Select/context';
|
|
7
|
+
|
|
6
8
|
export type SelectItemProps = MenuItemProps;
|
|
7
9
|
|
|
8
10
|
const ZERO_WIDTH_SPACE = '\u200b';
|
|
@@ -1,6 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import type { LabelHTMLAttributes } from 'react';
|
|
2
|
+
import { forwardRef } from 'react';
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
|
|
5
|
+
import type { BoxProps } from '../Box';
|
|
6
|
+
import { Box } from '../Box';
|
|
4
7
|
|
|
5
8
|
export interface SelectionControlLabelProps
|
|
6
9
|
extends BoxProps<
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { forwardRef } from 'react';
|
|
2
|
-
import
|
|
3
|
-
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
|
|
4
|
+
import type { TextProps } from '../Text';
|
|
5
|
+
import { Text } from '../Text';
|
|
4
6
|
import { alpha } from '../color';
|
|
5
7
|
|
|
6
8
|
export interface SelectionControlTextProps extends TextProps {
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { forwardRef } from 'react';
|
|
2
|
-
import
|
|
3
|
-
import { BoxProps, Box } from '../Box';
|
|
2
|
+
import * as React from 'react';
|
|
4
3
|
import { keyframes } from '@emotion/react';
|
|
5
|
-
import { Keyframes } from '@emotion/serialize';
|
|
4
|
+
import type { Keyframes } from '@emotion/serialize';
|
|
5
|
+
|
|
6
|
+
import type { BoxProps } from '../Box';
|
|
7
|
+
import { Box } from '../Box';
|
|
6
8
|
|
|
7
9
|
export const appearAnimation: Keyframes = keyframes({
|
|
8
10
|
to: {
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { forwardRef } from 'react';
|
|
2
|
-
import
|
|
3
|
-
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
|
|
4
|
+
import type { BoxProps } from '../Box';
|
|
5
|
+
import { Box } from '../Box';
|
|
4
6
|
import { alpha } from '../color';
|
|
5
7
|
import { useTheme } from '../theme';
|
|
6
8
|
import { pulseAnimationStyle, waveAnimationStyle } from './animation';
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { keyframes } from '@emotion/react';
|
|
2
|
-
import { Keyframes } from '@emotion/serialize';
|
|
3
|
-
import { SystemStyleObject } from '@styled-system/css';
|
|
2
|
+
import type { Keyframes } from '@emotion/serialize';
|
|
3
|
+
import type { SystemStyleObject } from '@styled-system/css';
|
|
4
|
+
|
|
4
5
|
import { alpha } from '../color';
|
|
5
6
|
|
|
6
7
|
export const pulseAnimation: Keyframes = keyframes({
|