@basic-ui/material 1.0.0-alpha.51 → 1.0.0-alpha.54
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/README.md +3 -3
- package/build/cjs/index.js +520 -447
- package/build/cjs/index.js.map +1 -1
- package/build/esm/Alert/Alert.d.ts +5 -6
- package/build/esm/Alert/Alert.js +14 -16
- package/build/esm/Alert/Alert.js.map +1 -1
- package/build/esm/Alert/index.d.ts +1 -1
- package/build/esm/Alert/index.js.map +1 -1
- package/build/esm/AppBar/AppBar.d.ts +9 -9
- package/build/esm/AppBar/AppBar.js +25 -34
- package/build/esm/AppBar/AppBar.js.map +1 -1
- package/build/esm/AppBar/AppBarButton.d.ts +3 -4
- package/build/esm/AppBar/AppBarButton.js +12 -14
- package/build/esm/AppBar/AppBarButton.js.map +1 -1
- package/build/esm/AppBar/context.d.ts +4 -5
- package/build/esm/AppBar/context.js +8 -6
- package/build/esm/AppBar/context.js.map +1 -1
- package/build/esm/AppBar/index.d.ts +3 -3
- package/build/esm/AppBar/index.js.map +1 -1
- package/build/esm/Badge/Badge.d.ts +5 -6
- package/build/esm/Badge/Badge.js +25 -26
- package/build/esm/Badge/Badge.js.map +1 -1
- package/build/esm/Badge/index.d.ts +1 -1
- package/build/esm/Badge/index.js.map +1 -1
- package/build/esm/BaseLine/BaseLine.d.ts +1 -1
- package/build/esm/BaseLine/BaseLine.js +4 -6
- package/build/esm/BaseLine/BaseLine.js.map +1 -1
- package/build/esm/BaseLine/index.d.ts +1 -1
- package/build/esm/BaseLine/index.js.map +1 -1
- package/build/esm/BottomSheet/BottomSheet.d.ts +6 -7
- package/build/esm/BottomSheet/BottomSheet.js +17 -21
- package/build/esm/BottomSheet/BottomSheet.js.map +1 -1
- package/build/esm/BottomSheet/BottomSheetSurface.d.ts +4 -5
- package/build/esm/BottomSheet/BottomSheetSurface.js +14 -14
- package/build/esm/BottomSheet/BottomSheetSurface.js.map +1 -1
- package/build/esm/BottomSheet/index.d.ts +1 -1
- package/build/esm/BottomSheet/index.js.map +1 -1
- package/build/esm/Box/Box.d.ts +23 -23
- package/build/esm/Box/Box.js +26 -26
- package/build/esm/Box/Box.js.map +1 -1
- package/build/esm/Box/index.d.ts +1 -1
- package/build/esm/Box/index.js.map +1 -1
- package/build/esm/Button/BaseButton.d.ts +14 -7
- package/build/esm/Button/BaseButton.js +107 -36
- package/build/esm/Button/BaseButton.js.map +1 -1
- package/build/esm/Button/Button.d.ts +14 -13
- package/build/esm/Button/Button.js +66 -48
- package/build/esm/Button/Button.js.map +1 -1
- package/build/esm/Button/ButtonGroup.d.ts +4 -5
- package/build/esm/Button/ButtonGroup.js +119 -21
- package/build/esm/Button/ButtonGroup.js.map +1 -1
- package/build/esm/Button/FilledButton.d.ts +10 -11
- package/build/esm/Button/FilledButton.js +18 -60
- package/build/esm/Button/FilledButton.js.map +1 -1
- package/build/esm/Button/FloatingActionButton.d.ts +9 -7
- package/build/esm/Button/FloatingActionButton.js +5 -4
- package/build/esm/Button/FloatingActionButton.js.map +1 -1
- package/build/esm/Button/IconButton.d.ts +8 -8
- package/build/esm/Button/IconButton.js +3 -3
- package/build/esm/Button/IconButton.js.map +1 -1
- package/build/esm/Button/IconFilledButton.d.ts +2 -0
- package/build/esm/Button/IconFilledButton.js +3 -0
- package/build/esm/Button/IconFilledButton.js.map +1 -0
- package/build/esm/Button/IconOutlinedButton.d.ts +2 -0
- package/build/esm/Button/IconOutlinedButton.js +3 -0
- package/build/esm/Button/IconOutlinedButton.js.map +1 -0
- package/build/esm/Button/OutlinedButton.d.ts +3 -4
- package/build/esm/Button/OutlinedButton.js +3 -43
- package/build/esm/Button/OutlinedButton.js.map +1 -1
- package/build/esm/Button/SplitButton.d.ts +9 -0
- package/build/esm/Button/SplitButton.js +32 -0
- package/build/esm/Button/SplitButton.js.map +1 -0
- package/build/esm/Button/TransparentButton.d.ts +10 -11
- package/build/esm/Button/TransparentButton.js +11 -54
- package/build/esm/Button/TransparentButton.js.map +1 -1
- package/build/esm/Button/context.d.ts +9 -8
- package/build/esm/Button/context.js +5 -4
- package/build/esm/Button/context.js.map +1 -1
- package/build/esm/Button/index.d.ts +3 -2
- package/build/esm/Button/index.js +1 -0
- package/build/esm/Button/index.js.map +1 -1
- package/build/esm/CheckBox/CheckBox.d.ts +13 -13
- package/build/esm/CheckBox/CheckBox.js +45 -61
- package/build/esm/CheckBox/CheckBox.js.map +1 -1
- package/build/esm/CheckBox/CheckBoxIcon.d.ts +10 -10
- package/build/esm/CheckBox/CheckBoxIcon.js +19 -24
- package/build/esm/CheckBox/CheckBoxIcon.js.map +1 -1
- package/build/esm/CheckBox/CheckPath.d.ts +3 -3
- package/build/esm/CheckBox/CheckPath.js +15 -16
- package/build/esm/CheckBox/CheckPath.js.map +1 -1
- package/build/esm/CheckBox/IndeterminatePath.d.ts +3 -3
- package/build/esm/CheckBox/IndeterminatePath.js +14 -16
- package/build/esm/CheckBox/IndeterminatePath.js.map +1 -1
- package/build/esm/CheckBox/index.d.ts +1 -1
- package/build/esm/CheckBox/index.js.map +1 -1
- package/build/esm/Chip/ButtonChip.d.ts +9 -9
- package/build/esm/Chip/ButtonChip.js +20 -24
- package/build/esm/Chip/ButtonChip.js.map +1 -1
- package/build/esm/Chip/Chip.d.ts +4 -4
- package/build/esm/Chip/Chip.js.map +1 -1
- package/build/esm/Chip/ChipBase.d.ts +10 -10
- package/build/esm/Chip/ChipBase.js +50 -54
- package/build/esm/Chip/ChipBase.js.map +1 -1
- package/build/esm/Chip/ChoiceChip.d.ts +10 -10
- package/build/esm/Chip/ChoiceChip.js +34 -38
- package/build/esm/Chip/ChoiceChip.js.map +1 -1
- package/build/esm/Chip/index.d.ts +2 -2
- package/build/esm/Chip/index.js.map +1 -1
- package/build/esm/Combobox/Combobox.d.ts +23 -23
- package/build/esm/Combobox/Combobox.js +126 -107
- package/build/esm/Combobox/Combobox.js.map +1 -1
- package/build/esm/Combobox/index.d.ts +1 -1
- package/build/esm/Combobox/index.js.map +1 -1
- package/build/esm/Dialog/Dialog.d.ts +19 -20
- package/build/esm/Dialog/Dialog.js +38 -42
- package/build/esm/Dialog/Dialog.js.map +1 -1
- package/build/esm/Dialog/DialogBackdrop.d.ts +6 -7
- package/build/esm/Dialog/DialogBackdrop.js +18 -17
- package/build/esm/Dialog/DialogBackdrop.js.map +1 -1
- package/build/esm/Dialog/DialogContainer.d.ts +3 -4
- package/build/esm/Dialog/DialogContainer.js +12 -12
- package/build/esm/Dialog/DialogContainer.js.map +1 -1
- package/build/esm/Dialog/DialogSurface.d.ts +6 -7
- package/build/esm/Dialog/DialogSurface.js +26 -26
- package/build/esm/Dialog/DialogSurface.js.map +1 -1
- package/build/esm/Dialog/Scrim.d.ts +3 -4
- package/build/esm/Dialog/Scrim.js +12 -12
- package/build/esm/Dialog/Scrim.js.map +1 -1
- package/build/esm/Dialog/index.d.ts +2 -2
- package/build/esm/Dialog/index.js.map +1 -1
- package/build/esm/Dialog/useDialogAnimation.d.ts +57 -824
- package/build/esm/Dialog/useDialogAnimation.js +23 -24
- package/build/esm/Dialog/useDialogAnimation.js.map +1 -1
- package/build/esm/Divider/Divider.d.ts +7 -7
- package/build/esm/Divider/Divider.js +27 -28
- package/build/esm/Divider/Divider.js.map +1 -1
- package/build/esm/Divider/index.d.ts +1 -1
- package/build/esm/Divider/index.js.map +1 -1
- package/build/esm/FloatingLabel/FloatingLabel.d.ts +13 -13
- package/build/esm/FloatingLabel/FloatingLabel.js +27 -33
- package/build/esm/FloatingLabel/FloatingLabel.js.map +1 -1
- package/build/esm/FloatingLabel/index.d.ts +1 -1
- package/build/esm/FloatingLabel/index.js.map +1 -1
- package/build/esm/LineRipple/LineRipple.d.ts +9 -9
- package/build/esm/LineRipple/LineRipple.js +30 -38
- package/build/esm/LineRipple/LineRipple.js.map +1 -1
- package/build/esm/LineRipple/index.d.ts +1 -1
- package/build/esm/LineRipple/index.js.map +1 -1
- package/build/esm/Link/Link.d.ts +9 -9
- package/build/esm/Link/Link.js +15 -17
- package/build/esm/Link/Link.js.map +1 -1
- package/build/esm/Link/index.d.ts +1 -1
- package/build/esm/Link/index.js.map +1 -1
- package/build/esm/List/List.d.ts +8 -8
- package/build/esm/List/List.js +19 -26
- package/build/esm/List/List.js.map +1 -1
- package/build/esm/List/index.d.ts +1 -1
- package/build/esm/List/index.js.map +1 -1
- package/build/esm/ListItem/ListItem.d.ts +14 -14
- package/build/esm/ListItem/ListItem.js +28 -31
- package/build/esm/ListItem/ListItem.js.map +1 -1
- package/build/esm/ListItem/ListItemText.d.ts +7 -7
- package/build/esm/ListItem/ListItemText.js +12 -16
- package/build/esm/ListItem/ListItemText.js.map +1 -1
- package/build/esm/ListItem/index.d.ts +2 -2
- package/build/esm/ListItem/index.js.map +1 -1
- package/build/esm/Menu/Menu.d.ts +18 -18
- package/build/esm/Menu/Menu.js +70 -60
- package/build/esm/Menu/Menu.js.map +1 -1
- package/build/esm/Menu/animation.d.ts +2 -2
- package/build/esm/Menu/animation.js +3 -3
- package/build/esm/Menu/animation.js.map +1 -1
- package/build/esm/Menu/index.d.ts +2 -2
- package/build/esm/Menu/index.js.map +1 -1
- package/build/esm/NavRail/NavRailItem.d.ts +15 -15
- package/build/esm/NavRail/NavRailItem.js +82 -86
- package/build/esm/NavRail/NavRailItem.js.map +1 -1
- package/build/esm/NavRail/icons/test-icons.d.ts +4 -4
- package/build/esm/NavRail/icons/test-icons.js +33 -40
- package/build/esm/NavRail/icons/test-icons.js.map +1 -1
- package/build/esm/NavRail/index.d.ts +1 -1
- package/build/esm/NavRail/index.js.map +1 -1
- package/build/esm/NotchedOutline/NotchedOutline.d.ts +14 -14
- package/build/esm/NotchedOutline/NotchedOutline.js +26 -34
- package/build/esm/NotchedOutline/NotchedOutline.js.map +1 -1
- package/build/esm/NotchedOutline/context.d.ts +5 -6
- package/build/esm/NotchedOutline/context.js +8 -7
- package/build/esm/NotchedOutline/context.js.map +1 -1
- package/build/esm/NotchedOutline/index.d.ts +1 -1
- package/build/esm/NotchedOutline/index.js.map +1 -1
- package/build/esm/NotchedOutline/styledComponents.d.ts +15 -575
- package/build/esm/NotchedOutline/styledComponents.js +65 -64
- package/build/esm/NotchedOutline/styledComponents.js.map +1 -1
- package/build/esm/Paper/Paper.d.ts +11 -11
- package/build/esm/Paper/Paper.js +25 -25
- package/build/esm/Paper/Paper.js.map +1 -1
- package/build/esm/Paper/index.d.ts +1 -1
- package/build/esm/Paper/index.js.map +1 -1
- package/build/esm/Popover/Popover.d.ts +13 -14
- package/build/esm/Popover/Popover.js +33 -39
- package/build/esm/Popover/Popover.js.map +1 -1
- package/build/esm/Popover/PopoverContainer.d.ts +3 -4
- package/build/esm/Popover/PopoverContainer.js +12 -12
- package/build/esm/Popover/PopoverContainer.js.map +1 -1
- package/build/esm/Popover/PopoverSurface.d.ts +4 -5
- package/build/esm/Popover/PopoverSurface.js +15 -15
- package/build/esm/Popover/PopoverSurface.js.map +1 -1
- package/build/esm/Popover/index.d.ts +1 -1
- package/build/esm/Popover/index.js.map +1 -1
- package/build/esm/ProgressSpinner/ProgressSpinner.d.ts +7 -8
- package/build/esm/ProgressSpinner/ProgressSpinner.js +31 -33
- package/build/esm/ProgressSpinner/ProgressSpinner.js.map +1 -1
- package/build/esm/ProgressSpinner/index.d.ts +1 -1
- package/build/esm/ProgressSpinner/index.js.map +1 -1
- package/build/esm/RadioButton/RadioButton.d.ts +3 -4
- package/build/esm/RadioButton/RadioButton.js +29 -32
- package/build/esm/RadioButton/RadioButton.js.map +1 -1
- package/build/esm/RadioButton/RadioButtonIcon.d.ts +6 -6
- package/build/esm/RadioButton/RadioButtonIcon.js +10 -12
- package/build/esm/RadioButton/RadioButtonIcon.js.map +1 -1
- package/build/esm/RadioButton/RadioGroup.d.ts +4 -5
- package/build/esm/RadioButton/RadioGroup.js +9 -11
- package/build/esm/RadioButton/RadioGroup.js.map +1 -1
- package/build/esm/RadioButton/index.d.ts +2 -2
- package/build/esm/RadioButton/index.js.map +1 -1
- package/build/esm/Ripple/Ripple.d.ts +10 -11
- package/build/esm/Ripple/Ripple.js +12 -10
- package/build/esm/Ripple/Ripple.js.map +1 -1
- package/build/esm/Ripple/RippleBox.d.ts +5 -5
- package/build/esm/Ripple/RippleBox.js +32 -29
- package/build/esm/Ripple/RippleBox.js.map +1 -1
- package/build/esm/Ripple/constants.d.ts +7 -7
- package/build/esm/Ripple/constants.js +7 -7
- package/build/esm/Ripple/constants.js.map +1 -1
- package/build/esm/Ripple/index.d.ts +5 -5
- package/build/esm/Ripple/index.js.map +1 -1
- package/build/esm/Ripple/keyframes.d.ts +4 -4
- package/build/esm/Ripple/keyframes.js +7 -7
- package/build/esm/Ripple/keyframes.js.map +1 -1
- package/build/esm/Ripple/useRipple.d.ts +14 -14
- package/build/esm/Ripple/useRipple.js +79 -84
- package/build/esm/Ripple/useRipple.js.map +1 -1
- package/build/esm/Ripple/useRippleHandlers.d.ts +8 -8
- package/build/esm/Ripple/useRippleHandlers.js +21 -30
- package/build/esm/Ripple/useRippleHandlers.js.map +1 -1
- package/build/esm/Ripple/useRippleSurface.d.ts +22 -787
- package/build/esm/Ripple/useRippleSurface.js +87 -88
- package/build/esm/Ripple/useRippleSurface.js.map +1 -1
- package/build/esm/SearchBar/SearchBar.d.ts +15 -15
- package/build/esm/SearchBar/SearchBar.js +48 -63
- package/build/esm/SearchBar/SearchBar.js.map +1 -1
- package/build/esm/SearchBar/index.d.ts +1 -1
- package/build/esm/SearchBar/index.js.map +1 -1
- package/build/esm/Select/CustomContainerExample.d.ts +2 -3
- package/build/esm/Select/CustomContainerExample.js +29 -34
- package/build/esm/Select/CustomContainerExample.js.map +1 -1
- package/build/esm/Select/Select.d.ts +33 -32
- package/build/esm/Select/Select.js +68 -113
- package/build/esm/Select/Select.js.map +1 -1
- package/build/esm/Select/SelectIcon.d.ts +6 -6
- package/build/esm/Select/SelectIcon.js +11 -13
- package/build/esm/Select/SelectIcon.js.map +1 -1
- package/build/esm/Select/context.d.ts +9 -9
- package/build/esm/Select/context.js +10 -8
- package/build/esm/Select/context.js.map +1 -1
- package/build/esm/Select/defaultRender.d.ts +3 -3
- package/build/esm/Select/defaultRender.js +33 -38
- package/build/esm/Select/defaultRender.js.map +1 -1
- package/build/esm/Select/index.d.ts +1 -1
- package/build/esm/Select/index.js.map +1 -1
- package/build/esm/Select/styledComponents.d.ts +15 -15
- package/build/esm/Select/styledComponents.js +20 -23
- package/build/esm/Select/styledComponents.js.map +1 -1
- package/build/esm/SelectItem/SelectItem.d.ts +11 -11
- package/build/esm/SelectItem/SelectItem.js +37 -47
- package/build/esm/SelectItem/SelectItem.js.map +1 -1
- package/build/esm/SelectItem/index.d.ts +1 -1
- package/build/esm/SelectItem/index.js.map +1 -1
- package/build/esm/SelectionControl/SelectionControlLabel.d.ts +7 -7
- package/build/esm/SelectionControl/SelectionControlLabel.js +13 -14
- package/build/esm/SelectionControl/SelectionControlLabel.js.map +1 -1
- package/build/esm/SelectionControl/SelectionControlText.d.ts +8 -8
- package/build/esm/SelectionControl/SelectionControlText.js +20 -20
- package/build/esm/SelectionControl/SelectionControlText.js.map +1 -1
- package/build/esm/SelectionControl/index.d.ts +2 -2
- package/build/esm/SelectionControl/index.js.map +1 -1
- package/build/esm/Skeleton/DelayAppearance.d.ts +13 -13
- package/build/esm/Skeleton/DelayAppearance.js +18 -20
- package/build/esm/Skeleton/DelayAppearance.js.map +1 -1
- package/build/esm/Skeleton/Skeleton.d.ts +9 -9
- package/build/esm/Skeleton/Skeleton.js +18 -19
- package/build/esm/Skeleton/Skeleton.js.map +1 -1
- package/build/esm/Skeleton/animation.d.ts +8 -8
- package/build/esm/Skeleton/animation.js +11 -11
- package/build/esm/Skeleton/animation.js.map +1 -1
- package/build/esm/Skeleton/index.d.ts +2 -2
- package/build/esm/Skeleton/index.js.map +1 -1
- package/build/esm/Slider/Slider.d.ts +17 -17
- package/build/esm/Slider/Slider.js +93 -85
- package/build/esm/Slider/Slider.js.map +1 -1
- package/build/esm/Slider/index.d.ts +1 -1
- package/build/esm/Slider/index.js.map +1 -1
- package/build/esm/Snackbar/Snackbar.d.ts +10 -8
- package/build/esm/Snackbar/Snackbar.js +33 -33
- package/build/esm/Snackbar/Snackbar.js.map +1 -1
- package/build/esm/Snackbar/Stack.d.ts +31 -31
- package/build/esm/Snackbar/Stack.js +74 -106
- package/build/esm/Snackbar/Stack.js.map +1 -1
- package/build/esm/Snackbar/index.d.ts +3 -3
- package/build/esm/Snackbar/index.js.map +1 -1
- package/build/esm/Snackbar/useSnackbarAnimation.d.ts +6 -6
- package/build/esm/Snackbar/useSnackbarAnimation.js +103 -132
- package/build/esm/Snackbar/useSnackbarAnimation.js.map +1 -1
- package/build/esm/Switch/Switch.d.ts +13 -13
- package/build/esm/Switch/Switch.js +59 -56
- package/build/esm/Switch/Switch.js.map +1 -1
- package/build/esm/Switch/index.d.ts +1 -1
- package/build/esm/Switch/index.js.map +1 -1
- package/build/esm/Switch/styledComponents.d.ts +13 -13
- package/build/esm/Switch/styledComponents.js +47 -47
- package/build/esm/Switch/styledComponents.js.map +1 -1
- package/build/esm/Tab/Tab.d.ts +5 -5
- package/build/esm/Tab/Tab.js +47 -55
- package/build/esm/Tab/Tab.js.map +1 -1
- package/build/esm/Tab/TabList.d.ts +9 -10
- package/build/esm/Tab/TabList.js +28 -32
- package/build/esm/Tab/TabList.js.map +1 -1
- package/build/esm/Tab/TabPanel.d.ts +4 -5
- package/build/esm/Tab/TabPanel.js +18 -19
- package/build/esm/Tab/TabPanel.js.map +1 -1
- package/build/esm/Tab/TabPanels.d.ts +4 -4
- package/build/esm/Tab/TabPanels.js.map +1 -1
- package/build/esm/Tab/Tabs.d.ts +4 -4
- package/build/esm/Tab/Tabs.js.map +1 -1
- package/build/esm/Tab/context.d.ts +8 -9
- package/build/esm/Tab/context.js +8 -7
- package/build/esm/Tab/context.js.map +1 -1
- package/build/esm/Tab/index.d.ts +5 -5
- package/build/esm/Tab/index.js.map +1 -1
- package/build/esm/TabIndicator/TabIndicator.d.ts +9 -9
- package/build/esm/TabIndicator/TabIndicator.js +69 -86
- package/build/esm/TabIndicator/TabIndicator.js.map +1 -1
- package/build/esm/TabIndicator/context.d.ts +6 -6
- package/build/esm/TabIndicator/context.js +8 -7
- package/build/esm/TabIndicator/context.js.map +1 -1
- package/build/esm/TabIndicator/index.d.ts +2 -2
- package/build/esm/TabIndicator/index.js.map +1 -1
- package/build/esm/Table/Table.d.ts +3 -4
- package/build/esm/Table/Table.js +13 -14
- package/build/esm/Table/Table.js.map +1 -1
- package/build/esm/Table/TableBody.d.ts +3 -4
- package/build/esm/Table/TableBody.js +9 -11
- package/build/esm/Table/TableBody.js.map +1 -1
- package/build/esm/Table/TableCell.d.ts +3 -4
- package/build/esm/Table/TableCell.js +14 -15
- package/build/esm/Table/TableCell.js.map +1 -1
- package/build/esm/Table/TableHead.d.ts +3 -4
- package/build/esm/Table/TableHead.js +13 -14
- package/build/esm/Table/TableHead.js.map +1 -1
- package/build/esm/Table/TableRow.d.ts +3 -4
- package/build/esm/Table/TableRow.js +13 -14
- package/build/esm/Table/TableRow.js.map +1 -1
- package/build/esm/Table/context.d.ts +2 -3
- package/build/esm/Table/context.js +7 -7
- package/build/esm/Table/context.js.map +1 -1
- package/build/esm/Table/index.d.ts +5 -5
- package/build/esm/Table/index.js.map +1 -1
- package/build/esm/Text/LoremIpsum.d.ts +4 -4
- package/build/esm/Text/LoremIpsum.js +10 -12
- package/build/esm/Text/LoremIpsum.js.map +1 -1
- package/build/esm/Text/Text.d.ts +10 -11
- package/build/esm/Text/Text.js +15 -19
- package/build/esm/Text/Text.js.map +1 -1
- package/build/esm/Text/index.d.ts +1 -1
- package/build/esm/Text/index.js.map +1 -1
- package/build/esm/TextField/FilledContainer.d.ts +18 -18
- package/build/esm/TextField/FilledContainer.js +75 -80
- package/build/esm/TextField/FilledContainer.js.map +1 -1
- package/build/esm/TextField/HelperText.d.ts +10 -10
- package/build/esm/TextField/HelperText.js +19 -26
- package/build/esm/TextField/HelperText.js.map +1 -1
- package/build/esm/TextField/IconContainer.d.ts +5 -5
- package/build/esm/TextField/IconContainer.js +21 -9
- package/build/esm/TextField/IconContainer.js.map +1 -1
- package/build/esm/TextField/Input.d.ts +11 -11
- package/build/esm/TextField/Input.js +39 -40
- package/build/esm/TextField/Input.js.map +1 -1
- package/build/esm/TextField/OutlinedContainer.d.ts +17 -17
- package/build/esm/TextField/OutlinedContainer.js +30 -47
- package/build/esm/TextField/OutlinedContainer.js.map +1 -1
- package/build/esm/TextField/TextField.d.ts +19 -19
- package/build/esm/TextField/TextField.js +50 -77
- package/build/esm/TextField/TextField.js.map +1 -1
- package/build/esm/TextField/consts.d.ts +5 -5
- package/build/esm/TextField/consts.js +5 -5
- package/build/esm/TextField/consts.js.map +1 -1
- package/build/esm/TextField/index.d.ts +4 -4
- package/build/esm/TextField/index.js.map +1 -1
- package/build/esm/ThemeExplorer/BorderSlider.d.ts +7 -7
- package/build/esm/ThemeExplorer/BorderSlider.js +8 -14
- package/build/esm/ThemeExplorer/BorderSlider.js.map +1 -1
- package/build/esm/ThemeExplorer/ColorPicker.d.ts +8 -8
- package/build/esm/ThemeExplorer/ColorPicker.js +19 -24
- package/build/esm/ThemeExplorer/ColorPicker.js.map +1 -1
- package/build/esm/ThemeExplorer/ColorSchemePicker.d.ts +10 -10
- package/build/esm/ThemeExplorer/ColorSchemePicker.js +16 -21
- package/build/esm/ThemeExplorer/ColorSchemePicker.js.map +1 -1
- package/build/esm/ThemeExplorer/FontAutoComplete.d.ts +9 -9
- package/build/esm/ThemeExplorer/FontAutoComplete.js +28 -48
- package/build/esm/ThemeExplorer/FontAutoComplete.js.map +1 -1
- package/build/esm/ThemeExplorer/TextFieldColorPicker.d.ts +8 -9
- package/build/esm/ThemeExplorer/TextFieldColorPicker.js +29 -60
- package/build/esm/ThemeExplorer/TextFieldColorPicker.js.map +1 -1
- package/build/esm/ThemeExplorer/ThemeBuilder.d.ts +11 -11
- package/build/esm/ThemeExplorer/ThemeBuilder.js +155 -184
- package/build/esm/ThemeExplorer/ThemeBuilder.js.map +1 -1
- package/build/esm/ThemeExplorer/ThemeColors.d.ts +4 -5
- package/build/esm/ThemeExplorer/ThemeColors.js +54 -54
- package/build/esm/ThemeExplorer/ThemeColors.js.map +1 -1
- package/build/esm/ThemeExplorer/components.d.ts +31 -31
- package/build/esm/ThemeExplorer/components.js +52 -61
- package/build/esm/ThemeExplorer/components.js.map +1 -1
- package/build/esm/ThemeExplorer/googleFonts.d.ts +1 -1
- package/build/esm/ThemeExplorer/googleFonts.js +1 -1
- package/build/esm/ThemeExplorer/googleFonts.js.map +1 -1
- package/build/esm/ThemeExplorer/index.d.ts +1 -1
- package/build/esm/ThemeExplorer/index.js.map +1 -1
- package/build/esm/ThemeExplorer/makeColorScheme.d.ts +98 -98
- package/build/esm/ThemeExplorer/makeColorScheme.js +0 -1
- package/build/esm/ThemeExplorer/makeColorScheme.js.map +1 -1
- package/build/esm/ThemeExplorer/makeTailwindTheme.d.ts +2 -2
- package/build/esm/ThemeExplorer/makeTailwindTheme.js +20 -20
- package/build/esm/ThemeExplorer/makeTailwindTheme.js.map +1 -1
- package/build/esm/ThemeExplorer/updateGoogleFonts.js +23 -64
- package/build/esm/ThemeExplorer/updateGoogleFonts.js.map +1 -1
- package/build/esm/ThemeExplorer/useDeferredColor.d.ts +3 -3
- package/build/esm/ThemeExplorer/useDeferredColor.js +2 -9
- package/build/esm/ThemeExplorer/useDeferredColor.js.map +1 -1
- package/build/esm/ThemeExplorer/useLocalStorageCachedState.d.ts +1 -1
- package/build/esm/ThemeExplorer/useLocalStorageCachedState.js +2 -10
- package/build/esm/ThemeExplorer/useLocalStorageCachedState.js.map +1 -1
- package/build/esm/Tooltip/Tooltip.d.ts +8 -8
- package/build/esm/Tooltip/Tooltip.js +21 -25
- package/build/esm/Tooltip/Tooltip.js.map +1 -1
- package/build/esm/Tooltip/index.d.ts +1 -1
- package/build/esm/Tooltip/index.js.map +1 -1
- package/build/esm/color.d.ts +8 -8
- package/build/esm/color.js +23 -31
- package/build/esm/color.js.map +1 -1
- package/build/esm/css.d.ts +1 -1
- package/build/esm/css.js.map +1 -1
- package/build/esm/hooks/useAnimation.d.ts +20 -20
- package/build/esm/hooks/useAnimation.js +42 -53
- package/build/esm/hooks/useAnimation.js.map +1 -1
- package/build/esm/index.d.ts +42 -42
- package/build/esm/index.js.map +1 -1
- package/build/esm/motion.d.ts +7 -7
- package/build/esm/motion.js +7 -7
- package/build/esm/motion.js.map +1 -1
- package/build/esm/tailwind/extendColors.d.ts +5 -5
- package/build/esm/tailwind/extendColors.js +17 -29
- package/build/esm/tailwind/extendColors.js.map +1 -1
- package/build/esm/tailwind/index.d.ts +8 -8
- package/build/esm/tailwind/index.js +17 -29
- package/build/esm/tailwind/index.js.map +1 -1
- package/build/esm/theme/index.d.ts +2 -2
- package/build/esm/theme/index.js.map +1 -1
- package/build/esm/theme/theme.d.ts +590 -562
- package/build/esm/theme/theme.js +49 -22
- package/build/esm/theme/theme.js.map +1 -1
- package/build/esm/theme/typography-raleway.d.ts +112 -112
- 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 +111 -111
- 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 +594 -566
- package/build/esm/theme/useTheme.js +1 -3
- package/build/esm/theme/useTheme.js.map +1 -1
- package/build/tsconfig-build.tsbuildinfo +1 -1
- package/package.json +12 -11
- package/src/Alert/index.ts +1 -1
- package/src/AppBar/AppBar.story.tsx +69 -69
- package/src/AppBar/AppBar.tsx +85 -85
- package/src/AppBar/AppBarButton.tsx +25 -25
- package/src/AppBar/context.ts +13 -13
- package/src/AppBar/index.ts +3 -3
- package/src/Badge/Badge.story.tsx +68 -68
- package/src/Badge/Badge.tsx +47 -47
- package/src/Badge/index.ts +1 -1
- package/src/BaseLine/BaseLine.tsx +100 -100
- package/src/BaseLine/index.ts +1 -1
- package/src/BottomSheet/BottomSheet.story.tsx +35 -35
- package/src/BottomSheet/BottomSheet.tsx +39 -39
- package/src/BottomSheet/BottomSheetSurface.tsx +49 -49
- package/src/BottomSheet/index.ts +1 -1
- package/src/Box/Box.tsx +133 -127
- package/src/Box/index.ts +1 -1
- package/src/Button/BaseButton.tsx +123 -18
- package/src/Button/Button.story.tsx +236 -72
- package/src/Button/Button.tsx +44 -15
- package/src/Button/ButtonGroup.story.tsx +263 -101
- package/src/Button/ButtonGroup.tsx +103 -7
- package/src/Button/FilledButton.tsx +2 -43
- package/src/Button/FloatingActionButton.tsx +14 -9
- package/src/Button/IconFilledButton.tsx +3 -0
- package/src/Button/IconOutlinedButton.tsx +3 -0
- package/src/Button/OutlinedButton.tsx +2 -41
- package/src/Button/SpinnerButton.story.tsx +91 -91
- package/src/Button/SplitButton.story.tsx +110 -0
- package/src/Button/SplitButton.tsx +40 -0
- package/src/Button/TransparentButton.tsx +1 -43
- package/src/Button/context.tsx +19 -17
- package/src/Button/index.ts +3 -2
- package/src/CheckBox/CheckBox.story.tsx +155 -155
- package/src/CheckBox/CheckBox.tsx +170 -170
- package/src/CheckBox/CheckBoxIcon.tsx +63 -64
- package/src/CheckBox/CheckPath.tsx +18 -18
- package/src/CheckBox/IndeterminatePath.tsx +16 -16
- package/src/CheckBox/index.ts +1 -1
- package/src/Chip/ButtonChip.tsx +86 -86
- package/src/Chip/Chip.story.tsx +242 -242
- package/src/Chip/Chip.tsx +5 -5
- package/src/Chip/ChipBase.tsx +141 -141
- package/src/Chip/ChoiceChip.tsx +127 -127
- package/src/Chip/index.ts +2 -2
- package/src/Combobox/Combobox.tsx +274 -274
- package/src/Combobox/index.ts +1 -1
- package/src/Dialog/Dialog.story.tsx +53 -53
- package/src/Dialog/Dialog.tsx +73 -73
- package/src/Dialog/DialogBackdrop.tsx +42 -42
- package/src/Dialog/DialogContainer.tsx +31 -31
- package/src/Dialog/DialogSurface.tsx +55 -55
- package/src/Dialog/Scrim.tsx +35 -35
- package/src/Dialog/index.ts +2 -2
- package/src/Dialog/useDialogAnimation.tsx +59 -49
- package/src/Divider/Divider.story.tsx +39 -39
- package/src/Divider/Divider.tsx +48 -48
- package/src/Divider/index.ts +1 -1
- package/src/FloatingLabel/FloatingLabel.story.tsx +55 -55
- package/src/FloatingLabel/FloatingLabel.tsx +77 -77
- package/src/FloatingLabel/index.ts +1 -1
- package/src/LineRipple/LineRipple.story.tsx +43 -43
- package/src/LineRipple/LineRipple.tsx +81 -81
- package/src/LineRipple/index.ts +1 -1
- package/src/Link/Link.story.tsx +14 -14
- package/src/Link/Link.tsx +65 -65
- package/src/Link/index.ts +1 -1
- package/src/List/List.tsx +46 -46
- package/src/List/index.ts +1 -1
- package/src/ListItem/ListItem.story.tsx +43 -43
- package/src/ListItem/ListItem.tsx +104 -104
- package/src/ListItem/ListItemText.tsx +35 -35
- package/src/ListItem/index.ts +2 -2
- package/src/Menu/ContextMenu.story.tsx +34 -34
- package/src/Menu/Menu.story.tsx +54 -54
- package/src/Menu/Menu.tsx +124 -124
- package/src/Menu/animation.ts +16 -16
- package/src/Menu/index.ts +2 -2
- package/src/NavRail/NavRail.story.tsx +146 -146
- package/src/NavRail/NavRailItem.tsx +176 -175
- package/src/NavRail/icons/test-icons.tsx +46 -46
- package/src/NavRail/index.ts +1 -1
- package/src/NotchedOutline/NotchedOutline.story.tsx +99 -99
- package/src/NotchedOutline/NotchedOutline.tsx +80 -80
- package/src/NotchedOutline/context.ts +12 -12
- package/src/NotchedOutline/index.ts +1 -1
- package/src/NotchedOutline/styledComponents.ts +122 -122
- package/src/Paper/Paper.story.tsx +50 -50
- package/src/Paper/Paper.tsx +67 -67
- package/src/Paper/index.ts +1 -1
- package/src/Popover/PopoverSurface.tsx +51 -51
- package/src/Popover/index.ts +1 -1
- package/src/ProgressSpinner/ProgressSpinner.story.tsx +35 -35
- package/src/ProgressSpinner/ProgressSpinner.tsx +119 -119
- package/src/ProgressSpinner/index.ts +1 -1
- package/src/RadioButton/RadioButton.story.tsx +109 -109
- package/src/RadioButton/RadioButton.tsx +112 -112
- package/src/RadioButton/RadioButtonIcon.tsx +44 -44
- package/src/RadioButton/RadioGroup.tsx +26 -27
- package/src/RadioButton/index.ts +2 -2
- package/src/Ripple/Ripple.story.tsx +78 -78
- package/src/Ripple/Ripple.tsx +33 -33
- package/src/Ripple/RippleBox.tsx +52 -52
- package/src/Ripple/constants.ts +15 -15
- package/src/Ripple/index.ts +5 -5
- package/src/Ripple/keyframes.ts +36 -36
- package/src/Ripple/useRipple.ts +209 -209
- package/src/Ripple/useRippleHandlers.ts +54 -54
- package/src/Ripple/useRippleSurface.ts +162 -155
- package/src/SearchBar/SearchBar.tsx +5 -6
- package/src/Select/CustomContainerExample.tsx +59 -59
- package/src/Select/PaymentMethodSelect.story.tsx +320 -316
- package/src/Select/Select.story.tsx +225 -225
- package/src/Select/Select.tsx +284 -283
- package/src/Select/SelectIcon.tsx +43 -43
- package/src/Select/SelectMultiple.story.tsx +214 -215
- package/src/Select/context.ts +22 -22
- package/src/Select/defaultRender.tsx +60 -49
- package/src/Select/index.ts +1 -1
- package/src/Select/styledComponents.tsx +38 -38
- package/src/SelectItem/SelectItem.tsx +92 -92
- package/src/SelectItem/index.ts +1 -1
- package/src/SelectionControl/SelectionControlLabel.tsx +34 -34
- package/src/SelectionControl/SelectionControlText.tsx +37 -37
- package/src/SelectionControl/index.ts +2 -2
- package/src/Skeleton/DelayAppearance.tsx +41 -41
- package/src/Skeleton/Skeleton.story.tsx +57 -57
- package/src/Skeleton/Skeleton.tsx +40 -40
- package/src/Skeleton/animation.ts +54 -54
- package/src/Skeleton/index.ts +2 -2
- package/src/Slider/Slider.story.tsx +36 -36
- package/src/Slider/Slider.tsx +275 -275
- package/src/Slider/index.ts +1 -1
- package/src/Snackbar/Snackbar.story.tsx +99 -99
- package/src/Snackbar/Snackbar.tsx +19 -16
- package/src/Switch/Switch.story.tsx +97 -98
- package/src/Switch/Switch.tsx +170 -170
- package/src/Switch/index.ts +1 -1
- package/src/Switch/styledComponents.tsx +117 -117
- package/src/Tab/Tab.story.tsx +209 -209
- package/src/Tab/Tab.tsx +120 -120
- package/src/Tab/TabList.tsx +61 -61
- package/src/Tab/TabPanel.tsx +31 -31
- package/src/Tab/TabPanels.tsx +5 -5
- package/src/Tab/Tabs.tsx +5 -5
- package/src/Tab/context.ts +17 -17
- package/src/Tab/index.ts +5 -5
- package/src/TabIndicator/TabIndicator.tsx +146 -146
- package/src/TabIndicator/context.ts +13 -13
- package/src/TabIndicator/index.ts +2 -2
- package/src/Table/context.ts +6 -6
- package/src/Text/LoremIpsum.tsx +18 -18
- package/src/Text/Text.story.tsx +79 -75
- package/src/Text/Text.tsx +84 -84
- package/src/Text/index.ts +1 -1
- package/src/TextField/FilledContainer.tsx +173 -173
- package/src/TextField/HelperText.tsx +63 -63
- package/src/TextField/OutlinedContainer.tsx +116 -116
- package/src/TextField/consts.ts +7 -7
- package/src/TextField/index.ts +4 -4
- package/src/ThemeExplorer/BorderSlider.tsx +73 -73
- package/src/ThemeExplorer/ColorPicker.tsx +104 -104
- package/src/ThemeExplorer/ColorSchemePicker.tsx +55 -55
- package/src/ThemeExplorer/FontAutoComplete.tsx +139 -139
- package/src/ThemeExplorer/TextFieldColorPicker.tsx +112 -115
- package/src/ThemeExplorer/ThemeBuilder.story.tsx +8 -8
- package/src/ThemeExplorer/ThemeBuilder.tsx +437 -353
- package/src/ThemeExplorer/ThemeColors.tsx +122 -118
- package/src/ThemeExplorer/components.tsx +195 -195
- package/src/ThemeExplorer/googleFonts.ts +1436 -1436
- package/src/ThemeExplorer/index.ts +1 -1
- package/src/ThemeExplorer/makeColorScheme.tsx +111 -111
- package/src/ThemeExplorer/makeTailwindTheme.ts +44 -44
- package/src/ThemeExplorer/updateGoogleFonts.js +32 -33
- package/src/ThemeExplorer/useDeferredColor.tsx +21 -21
- package/src/ThemeExplorer/useLocalStorageCachedState.ts +18 -18
- package/src/Tooltip/Tooltip.story.tsx +35 -35
- package/src/Tooltip/Tooltip.tsx +67 -67
- package/src/Tooltip/index.ts +1 -1
- package/src/css.ts +2 -2
- package/src/hooks/useAnimation.ts +111 -111
- package/src/motion.ts +7 -7
- package/src/tailwind/extendColors.ts +51 -51
- package/src/tailwind/index.ts +57 -56
- package/src/tailwind/tests/extendColors.test.ts +123 -123
- package/src/theme/index.ts +2 -2
- package/src/theme/theme.ts +36 -8
- package/src/theme/typography-raleway.ts +114 -114
- package/src/theme/typography-roboto.ts +113 -113
- package/src/theme/useTheme.ts +17 -18
- package/tailwind/package.json +5 -5
- package/theme-explorer/package.json +5 -5
|
@@ -1,32 +1,130 @@
|
|
|
1
|
-
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
-
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
3
|
-
var _excluded = ["as", "variant", "direction"];
|
|
4
1
|
import { forwardRef, useMemo } from 'react';
|
|
5
2
|
import { ButtonGroupContext } from './context';
|
|
3
|
+
import { Box } from '../Box';
|
|
6
4
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
5
|
+
function getButtonGroupVariant(variant) {
|
|
6
|
+
if (variant !== 'standard' && variant !== 'connected' && variant !== 'split') {
|
|
7
|
+
console.warn(`Invalid ButtonGroup variant: ${variant}. Expected 'standard', 'connected', or 'split'. Defaulting to 'standard'.`);
|
|
8
|
+
return 'standard';
|
|
9
|
+
}
|
|
10
|
+
return variant;
|
|
11
|
+
}
|
|
12
|
+
export const ButtonGroup = /*#__PURE__*/forwardRef(function ButtonGroup(props, forwardedRef) {
|
|
13
|
+
const {
|
|
14
|
+
as = 'div',
|
|
15
|
+
buttonVariant = 'filled',
|
|
16
|
+
variant: variantProp = 'standard',
|
|
17
|
+
direction = 'row',
|
|
18
|
+
connected = false,
|
|
19
|
+
...otherProps
|
|
20
|
+
} = props;
|
|
21
|
+
const variant = getButtonGroupVariant(variantProp);
|
|
22
|
+
const value = useMemo(() => ({
|
|
23
|
+
direction,
|
|
24
|
+
variant,
|
|
25
|
+
buttonVariant,
|
|
26
|
+
connected
|
|
27
|
+
}), [direction, variant, buttonVariant, connected]);
|
|
22
28
|
return /*#__PURE__*/_jsx(ButtonGroupContext.Provider, {
|
|
23
29
|
value: value,
|
|
24
|
-
children: /*#__PURE__*/_jsx(
|
|
30
|
+
children: /*#__PURE__*/_jsx(Box, {
|
|
31
|
+
as: as,
|
|
25
32
|
ref: forwardedRef,
|
|
26
33
|
role: "group",
|
|
34
|
+
__css: {
|
|
35
|
+
display: 'flex',
|
|
36
|
+
flexDirection: direction,
|
|
37
|
+
gap: variant === 'standard' ? 2 : "0.125rem",
|
|
38
|
+
...(variant === 'standard' ? {
|
|
39
|
+
'[data-button-grouped=""]': {
|
|
40
|
+
'--btn-inner-radius': 'var(--btn-standard-inner-radius)',
|
|
41
|
+
borderRadius: 'var(--btn-pill-radius)'
|
|
42
|
+
},
|
|
43
|
+
'[data-button-grouped=""][data-button-shape="square"], [data-button-grouped=""][aria-pressed="true"]': {
|
|
44
|
+
borderRadius: 'var(--btn-inner-radius)'
|
|
45
|
+
},
|
|
46
|
+
'[data-button-grouped=""][data-button-shape="square"][aria-pressed="true"]': {
|
|
47
|
+
borderRadius: 'var(--btn-pill-radius)'
|
|
48
|
+
}
|
|
49
|
+
} : {
|
|
50
|
+
'[data-button-grouped=""]': {
|
|
51
|
+
'--btn-inner-radius': variant === 'connected' ? 'var(--btn-connected-inner-radius)' : 'var(--btn-split-inner-radius)',
|
|
52
|
+
borderRadius: 'var(--btn-inner-radius)'
|
|
53
|
+
},
|
|
54
|
+
'[data-button-grouped=""]:first-of-type': {
|
|
55
|
+
borderTopLeftRadius: 'var(--btn-pill-radius)',
|
|
56
|
+
borderBottomLeftRadius: 'var(--btn-pill-radius)'
|
|
57
|
+
},
|
|
58
|
+
'[data-button-grouped=""]:last-of-type': {
|
|
59
|
+
borderTopRightRadius: 'var(--btn-pill-radius)',
|
|
60
|
+
borderBottomRightRadius: 'var(--btn-pill-radius)'
|
|
61
|
+
},
|
|
62
|
+
'[data-button-grouped=""][data-button-shape="square"]': {
|
|
63
|
+
borderRadius: 'var(--btn-inner-radius)'
|
|
64
|
+
},
|
|
65
|
+
'[data-button-grouped=""][aria-pressed="true"]': {
|
|
66
|
+
borderRadius: 'var(--btn-pill-radius)'
|
|
67
|
+
},
|
|
68
|
+
'[data-split-menu-button=""]': {
|
|
69
|
+
'&[data-button-size="xs"], &[data-button-size="sm"]': {
|
|
70
|
+
pl: "0.75rem",
|
|
71
|
+
pr: "0.875rem",
|
|
72
|
+
'&[aria-expanded="true"]': {
|
|
73
|
+
px: "0.8125rem"
|
|
74
|
+
},
|
|
75
|
+
'& svg': {
|
|
76
|
+
width: "1.375rem",
|
|
77
|
+
height: "1.375rem"
|
|
78
|
+
}
|
|
79
|
+
},
|
|
80
|
+
'&[data-button-size="md"]': {
|
|
81
|
+
pl: "0.8125rem",
|
|
82
|
+
pr: "1.0625rem",
|
|
83
|
+
'&[aria-expanded="true"]': {
|
|
84
|
+
px: "0.9375rem"
|
|
85
|
+
},
|
|
86
|
+
'& svg': {
|
|
87
|
+
width: "1.625rem",
|
|
88
|
+
height: "1.625rem"
|
|
89
|
+
}
|
|
90
|
+
},
|
|
91
|
+
'&[data-button-size="lg"]': {
|
|
92
|
+
pl: "1.625rem",
|
|
93
|
+
pr: "2rem",
|
|
94
|
+
'&[aria-expanded="true"]': {
|
|
95
|
+
px: "1.8125rem"
|
|
96
|
+
},
|
|
97
|
+
'& svg': {
|
|
98
|
+
width: "2.375rem",
|
|
99
|
+
height: "2.375rem"
|
|
100
|
+
}
|
|
101
|
+
},
|
|
102
|
+
'&[data-button-size="xl"]': {
|
|
103
|
+
pl: "2.3125rem",
|
|
104
|
+
pr: "3.125rem",
|
|
105
|
+
'&[aria-expanded="true"]': {
|
|
106
|
+
px: "2.6875rem"
|
|
107
|
+
},
|
|
108
|
+
'& svg': {
|
|
109
|
+
width: "3.0625rem",
|
|
110
|
+
height: "3.0625rem"
|
|
111
|
+
}
|
|
112
|
+
},
|
|
113
|
+
'&[aria-expanded="true"]': {
|
|
114
|
+
borderRadius: 'var(--btn-pill-radius)'
|
|
115
|
+
},
|
|
116
|
+
'&[aria-expanded="true"] > svg': {
|
|
117
|
+
transform: 'rotate(180deg)',
|
|
118
|
+
transition: 'transform 200ms'
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
})
|
|
122
|
+
},
|
|
27
123
|
"data-button-group": "",
|
|
28
|
-
"data-button-group-direction": direction
|
|
29
|
-
|
|
124
|
+
"data-button-group-direction": direction,
|
|
125
|
+
"data-button-group-variant": variant,
|
|
126
|
+
...otherProps
|
|
127
|
+
})
|
|
30
128
|
});
|
|
31
129
|
});
|
|
32
130
|
//# sourceMappingURL=ButtonGroup.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ButtonGroup.js","names":["forwardRef","useMemo","ButtonGroupContext","ButtonGroup","props","forwardedRef","as","
|
|
1
|
+
{"version":3,"file":"ButtonGroup.js","names":["forwardRef","useMemo","ButtonGroupContext","Box","jsx","_jsx","getButtonGroupVariant","variant","console","warn","ButtonGroup","props","forwardedRef","as","buttonVariant","variantProp","direction","connected","otherProps","value","Provider","children","ref","role","__css","display","flexDirection","gap","borderRadius","borderTopLeftRadius","borderBottomLeftRadius","borderTopRightRadius","borderBottomRightRadius","pl","pr","px","width","height","transform","transition"],"sources":["../../../src/Button/ButtonGroup.tsx"],"sourcesContent":["import { forwardRef, useMemo } from 'react';\nimport { rem } from 'polished';\n\nimport type { ButtonGroupContextProps } from './context';\nimport { ButtonGroupContext } from './context';\nimport { Box, type BoxProps } from '../Box';\n\nexport type ButtonGroupProps = BoxProps & ButtonGroupContextProps;\n\nfunction getButtonGroupVariant(variant: ButtonGroupProps['variant']) {\n if (\n variant !== 'standard' &&\n variant !== 'connected' &&\n variant !== 'split'\n ) {\n console.warn(\n `Invalid ButtonGroup variant: ${variant}. Expected 'standard', 'connected', or 'split'. Defaulting to 'standard'.`\n );\n return 'standard';\n }\n return variant;\n}\n\nexport const ButtonGroup = forwardRef<HTMLDivElement, ButtonGroupProps>(\n function ButtonGroup(props, forwardedRef) {\n const {\n as = 'div',\n buttonVariant = 'filled',\n variant: variantProp = 'standard',\n direction = 'row',\n connected = false,\n ...otherProps\n } = props;\n const variant = getButtonGroupVariant(variantProp);\n\n const value: ButtonGroupContextProps = useMemo(\n () => ({ direction, variant, buttonVariant, connected }),\n [direction, variant, buttonVariant, connected]\n );\n\n return (\n <ButtonGroupContext.Provider value={value}>\n <Box\n as={as}\n ref={forwardedRef}\n role=\"group\"\n __css={{\n display: 'flex',\n flexDirection: direction,\n gap: variant === 'standard' ? 2 : rem(2),\n ...(variant === 'standard'\n ? {\n '[data-button-grouped=\"\"]': {\n '--btn-inner-radius': 'var(--btn-standard-inner-radius)',\n borderRadius: 'var(--btn-pill-radius)',\n },\n '[data-button-grouped=\"\"][data-button-shape=\"square\"], [data-button-grouped=\"\"][aria-pressed=\"true\"]':\n {\n borderRadius: 'var(--btn-inner-radius)',\n },\n '[data-button-grouped=\"\"][data-button-shape=\"square\"][aria-pressed=\"true\"]':\n {\n borderRadius: 'var(--btn-pill-radius)',\n },\n }\n : {\n '[data-button-grouped=\"\"]': {\n '--btn-inner-radius':\n variant === 'connected'\n ? 'var(--btn-connected-inner-radius)'\n : 'var(--btn-split-inner-radius)',\n borderRadius: 'var(--btn-inner-radius)',\n },\n '[data-button-grouped=\"\"]:first-of-type': {\n borderTopLeftRadius: 'var(--btn-pill-radius)',\n borderBottomLeftRadius: 'var(--btn-pill-radius)',\n },\n '[data-button-grouped=\"\"]:last-of-type': {\n borderTopRightRadius: 'var(--btn-pill-radius)',\n borderBottomRightRadius: 'var(--btn-pill-radius)',\n },\n '[data-button-grouped=\"\"][data-button-shape=\"square\"]': {\n borderRadius: 'var(--btn-inner-radius)',\n },\n '[data-button-grouped=\"\"][aria-pressed=\"true\"]': {\n borderRadius: 'var(--btn-pill-radius)',\n },\n '[data-split-menu-button=\"\"]': {\n '&[data-button-size=\"xs\"], &[data-button-size=\"sm\"]': {\n pl: rem(12),\n pr: rem(14),\n '&[aria-expanded=\"true\"]': { px: rem(13) },\n '& svg': { width: rem(22), height: rem(22) },\n },\n '&[data-button-size=\"md\"]': {\n pl: rem(13),\n pr: rem(17),\n '&[aria-expanded=\"true\"]': { px: rem(15) },\n '& svg': { width: rem(26), height: rem(26) },\n },\n '&[data-button-size=\"lg\"]': {\n pl: rem(26),\n pr: rem(32),\n '&[aria-expanded=\"true\"]': { px: rem(29) },\n '& svg': { width: rem(38), height: rem(38) },\n },\n '&[data-button-size=\"xl\"]': {\n pl: rem(37),\n pr: rem(50),\n '&[aria-expanded=\"true\"]': { px: rem(43) },\n '& svg': { width: rem(49), height: rem(49) },\n },\n '&[aria-expanded=\"true\"]': {\n borderRadius: 'var(--btn-pill-radius)',\n },\n '&[aria-expanded=\"true\"] > svg': {\n transform: 'rotate(180deg)',\n transition: 'transform 200ms',\n },\n },\n }),\n }}\n data-button-group=\"\"\n data-button-group-direction={direction}\n data-button-group-variant={variant}\n {...otherProps}\n />\n </ButtonGroupContext.Provider>\n );\n }\n);\n"],"mappings":"AAAA,SAASA,UAAU,EAAEC,OAAO,QAAQ,OAAO;AAI3C,SAASC,kBAAkB,QAAQ,WAAW;AAC9C,SAASC,GAAG,QAAuB,QAAQ;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAI5C,SAASC,qBAAqBA,CAACC,OAAoC,EAAE;EACnE,IACEA,OAAO,KAAK,UAAU,IACtBA,OAAO,KAAK,WAAW,IACvBA,OAAO,KAAK,OAAO,EACnB;IACAC,OAAO,CAACC,IAAI,CACV,gCAAgCF,OAAO,2EACzC,CAAC;IACD,OAAO,UAAU;EACnB;EACA,OAAOA,OAAO;A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ignoreList":[]}
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
};
|
|
1
|
+
import type { Theme } from '../theme';
|
|
2
|
+
export declare const FilledButton: import("@emotion/styled").StyledComponent<Omit<import("./BaseButton").BaseButtonProps, "ref"> & import("react").RefAttributes<HTMLButtonElement> & {
|
|
3
|
+
theme?: import("@emotion/react").Theme;
|
|
4
|
+
}, {}, {}>;
|
|
5
|
+
export declare function getRippleProperties(theme: Theme): {
|
|
6
|
+
hoverOpacity: any;
|
|
7
|
+
focusOpacity: any;
|
|
8
|
+
pressedOpacity: any;
|
|
9
|
+
rippleEnabled: boolean;
|
|
10
|
+
};
|
|
@@ -3,87 +3,45 @@ import { readableColor } from 'polished';
|
|
|
3
3
|
import { get, css } from '@styled-system/css';
|
|
4
4
|
import { BaseButton } from './BaseButton';
|
|
5
5
|
import { alpha, mixColor } from '../color';
|
|
6
|
-
export
|
|
6
|
+
export const FilledButton = /*#__PURE__*/_styled(BaseButton, process.env.NODE_ENV === "production" ? {
|
|
7
7
|
target: "ex8w9nt0"
|
|
8
8
|
} : {
|
|
9
9
|
target: "ex8w9nt0",
|
|
10
10
|
label: "FilledButton"
|
|
11
|
-
})(
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
11
|
+
})(_ref => {
|
|
12
|
+
let {
|
|
13
|
+
color = 'primary',
|
|
14
|
+
theme
|
|
15
|
+
} = _ref;
|
|
15
16
|
return css({
|
|
16
|
-
backgroundColor: get(theme,
|
|
17
|
-
color: get(theme,
|
|
17
|
+
backgroundColor: get(theme, `colors.${String(color)}`) || color,
|
|
18
|
+
color: get(theme, `colors.on.${String(color)}`) || (typeof color === 'string' ? readableColor(color) : undefined),
|
|
18
19
|
'&:disabled': {
|
|
19
20
|
color: alpha('on.surface', 0.38),
|
|
20
|
-
background:
|
|
21
|
+
background: `linear-gradient(${get(theme, 'colors.surface')}, ${get(theme, 'colors.surface')}), ${alpha('on.surface', 0.12)(theme)}`,
|
|
21
22
|
backgroundBlendMode: 'overlay',
|
|
22
23
|
cursor: 'default'
|
|
23
24
|
},
|
|
24
25
|
'&:focus-visible': {
|
|
25
|
-
outlineColor: get(theme,
|
|
26
|
+
outlineColor: get(theme, `colors.${String(color)}`) || color,
|
|
26
27
|
outlineWidth: 2,
|
|
27
28
|
outlineStyle: 'auto',
|
|
28
29
|
outlineOffset: '2px'
|
|
29
30
|
}
|
|
30
31
|
});
|
|
31
|
-
},
|
|
32
|
-
|
|
33
|
-
|
|
32
|
+
}, _ref2 => {
|
|
33
|
+
let {
|
|
34
|
+
color = 'primary'
|
|
35
|
+
} = _ref2;
|
|
34
36
|
return color === 'surface' && css({
|
|
35
37
|
background: mixColor('surface', 'primary', 0.05)
|
|
36
38
|
});
|
|
37
|
-
},
|
|
38
|
-
var _ref3$color = _ref3.color,
|
|
39
|
-
color = _ref3$color === void 0 ? 'primary' : _ref3$color,
|
|
40
|
-
theme = _ref3.theme,
|
|
41
|
-
_ref3$isGroupedButton = _ref3.isGroupedButton,
|
|
42
|
-
isGroupedButton = _ref3$isGroupedButton === void 0 ? false : _ref3$isGroupedButton;
|
|
43
|
-
return isGroupedButton && {
|
|
44
|
-
'[data-button-group=""] &': {
|
|
45
|
-
borderColor: get(theme, "colors.on.".concat(String(color))) || (typeof color === 'string' ? readableColor(color) : undefined),
|
|
46
|
-
':first-of-type': {
|
|
47
|
-
borderTopRightRadius: 0,
|
|
48
|
-
borderBottomRightRadius: 0,
|
|
49
|
-
borderRightStyle: 'solid',
|
|
50
|
-
borderRightWidth: "0.0625rem"
|
|
51
|
-
},
|
|
52
|
-
':not(:first-of-type):not(:last-of-type)': {
|
|
53
|
-
borderRadius: 0
|
|
54
|
-
},
|
|
55
|
-
':last-of-type': {
|
|
56
|
-
borderTopLeftRadius: 0,
|
|
57
|
-
borderBottomLeftRadius: 0,
|
|
58
|
-
borderLeftStyle: 'solid',
|
|
59
|
-
borderLeftWidth: "0.0625rem"
|
|
60
|
-
},
|
|
61
|
-
// Handling the border between enabled/disabled buttons
|
|
62
|
-
':not(:disabled):has(+ :disabled)': {
|
|
63
|
-
borderRightWidth: "0.0625rem",
|
|
64
|
-
borderRightStyle: 'solid'
|
|
65
|
-
},
|
|
66
|
-
':disabled + :not(:disabled)': {
|
|
67
|
-
borderLeftWidth: "0.0625rem",
|
|
68
|
-
borderLeftStyle: 'solid'
|
|
69
|
-
},
|
|
70
|
-
':not(:disabled) + :disabled': {
|
|
71
|
-
borderLeftWidth: "0rem"
|
|
72
|
-
},
|
|
73
|
-
':disabled:has(+ :not(:disabled))': {
|
|
74
|
-
borderRightWidth: "0rem"
|
|
75
|
-
},
|
|
76
|
-
':last-of-type:nth-of-type(2)': {
|
|
77
|
-
borderLeftWidth: "0rem"
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
};
|
|
81
|
-
}, process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9CdXR0b24vRmlsbGVkQnV0dG9uLnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFRNEIiLCJmaWxlIjoiLi4vLi4vLi4vc3JjL0J1dHRvbi9GaWxsZWRCdXR0b24udHN4Iiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHN0eWxlZCBmcm9tICdAZW1vdGlvbi9zdHlsZWQnO1xuaW1wb3J0IHsgcmVhZGFibGVDb2xvciwgcmVtIH0gZnJvbSAncG9saXNoZWQnO1xuaW1wb3J0IHsgZ2V0LCBjc3MgfSBmcm9tICdAc3R5bGVkLXN5c3RlbS9jc3MnO1xuXG5pbXBvcnQgeyBCYXNlQnV0dG9uIH0gZnJvbSAnLi9CYXNlQnV0dG9uJztcbmltcG9ydCB0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ZW1lLCBgYnV0dG9ucy5vdmVybGF5cy5maWxsZWQuaG92ZXIub3BhY2l0eWApLFxuICAgIGZvY3VzT3BhY2l0eTogZ2V0KHRoZW1lLCBgYnV0dG9ucy5vdmVybGF5cy5maWxsZWQuZm9jdXMub3BhY2l0eWApLFxuICAgIHByZXNzZWRPcGFjaXR5OiBnZXQodGhlbWUsIGBidXR0b25zLm92ZXJsYXlzLmZpbGxlZC5wcmVzc2VkLm9wYWNpdHlgKSxcbiAgICByaXBwbGVFbmFibGVkOiBmYWxzZSxcbiAgfTtcbn1cbiJdfQ== */");
|
|
39
|
+
}, process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9CdXR0b24vRmlsbGVkQnV0dG9uLnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFRNEIiLCJmaWxlIjoiLi4vLi4vLi4vc3JjL0J1dHRvbi9GaWxsZWRCdXR0b24udHN4Iiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHN0eWxlZCBmcm9tICdAZW1vdGlvbi9zdHlsZWQnO1xuaW1wb3J0IHsgcmVhZGFibGVDb2xvciB9IGZyb20gJ3BvbGlzaGVkJztcbmltcG9ydCB7IGdldCwgY3NzIH0gZnJvbSAnQHN0eWxlZC1zeXN0ZW0vY3NzJztcblxuaW1wb3J0IHsgQmFzZUJ1dHRvbiB9IGZyb20gJy4vQmFzZUJ1dHRvbic7XG5pbXBvcnQgdHlwZSB7IFRoZW1lIH0gZnJvbSAnLi4vdGhlbWUnO1xuaW1wb3J0IHsgYWxwaGEsIG1peENvbG9yIH0gZnJvbSAnLi4vY29sb3InO1xuXG5leHBvcnQgY29uc3QgRmlsbGVkQnV0dG9uID0gc3R5bGVkKEJhc2VCdXR0b24pKFxuICAoeyBjb2xvciA9ICdwcmltYXJ5JywgdGhlbWUgfSkgPT5cbiAgICBj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3N1cmZhY2UnLCAncHJpbWFyeScsIDAuMDUpIH0pXG4pO1xuXG5leHBvcnQgZnVuY3Rpb24gZ2V0UmlwcGxlUHJvcGVydGllcyh0aGVtZTogVGhlbWUpIHtcbiAgcmV0dXJuIHtcbiAgICBob3Zlck9wYWNpdHk6IGdldCh0aGVtZSwgYGJ1dHRvbnMub3ZlcmxheXMuZmlsbGVkLmhvdmVyLm9wYWNpdHlgKSxcbiAgICBmb2N1c09wYWNpdHk6IGdldCh0aGVtZSwgYGJ1dHRvbnMub3ZlcmxheXMuZmlsbGVkLmZvY3VzLm9wYWNpdHlgKSxcbiAgICBwcmVzc2VkT3BhY2l0eTogZ2V0KHRoZW1lLCBgYnV0dG9ucy5vdmVybGF5cy5maWxsZWQucHJlc3NlZC5vcGFjaXR5YCksXG4gICAgcmlwcGxlRW5hYmxlZDogZmFsc2UsXG4gIH07XG59XG4iXX0= */");
|
|
82
40
|
export function getRippleProperties(theme) {
|
|
83
41
|
return {
|
|
84
|
-
hoverOpacity: get(theme,
|
|
85
|
-
focusOpacity: get(theme,
|
|
86
|
-
pressedOpacity: get(theme,
|
|
42
|
+
hoverOpacity: get(theme, `buttons.overlays.filled.hover.opacity`),
|
|
43
|
+
focusOpacity: get(theme, `buttons.overlays.filled.focus.opacity`),
|
|
44
|
+
pressedOpacity: get(theme, `buttons.overlays.filled.pressed.opacity`),
|
|
87
45
|
rippleEnabled: false
|
|
88
46
|
};
|
|
89
47
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FilledButton.js","names":["readableColor","get","css","BaseButton","alpha","mixColor","FilledButton","
|
|
1
|
+
{"version":3,"file":"FilledButton.js","names":["readableColor","get","css","BaseButton","alpha","mixColor","FilledButton","_styled","process","env","NODE_ENV","target","label","_ref","color","theme","backgroundColor","String","undefined","background","backgroundBlendMode","cursor","outlineColor","outlineWidth","outlineStyle","outlineOffset","_ref2","getRippleProperties","hoverOpacity","focusOpacity","pressedOpacity","rippleEnabled"],"sources":["../../../src/Button/FilledButton.tsx"],"sourcesContent":["import styled from '@emotion/styled';\nimport { readableColor } from 'polished';\nimport { get, css } from '@styled-system/css';\n\nimport { BaseButton } from './BaseButton';\nimport type { Theme } from '../theme';\nimport { alpha, mixColor } from '../color';\n\nexport const FilledButton = styled(BaseButton)(\n ({ color = 'primary', theme }) =>\n css({\n backgroundColor: get(theme, `colors.${String(color)}`) || color,\n color:\n get(theme, `colors.on.${String(color)}`) ||\n (typeof color === 'string' ? readableColor(color) : undefined),\n '&:disabled': {\n color: alpha('on.surface', 0.38),\n background: `linear-gradient(${get(theme, 'colors.surface')}, ${get(\n theme,\n 'colors.surface'\n )}), ${alpha('on.surface', 0.12)(theme)}`,\n backgroundBlendMode: 'overlay',\n cursor: 'default',\n },\n '&:focus-visible': {\n outlineColor: get(theme, `colors.${String(color)}`) || color,\n outlineWidth: 2,\n outlineStyle: 'auto',\n outlineOffset: '2px',\n },\n }),\n ({ color = 'primary' }) =>\n color === 'surface' &&\n css({ background: mixColor('surface', 'primary', 0.05) })\n);\n\nexport function getRippleProperties(theme: Theme) {\n return {\n hoverOpacity: get(theme, `buttons.overlays.filled.hover.opacity`),\n focusOpacity: get(theme, `buttons.overlays.filled.focus.opacity`),\n pressedOpacity: get(theme, `buttons.overlays.filled.pressed.opacity`),\n rippleEnabled: false,\n };\n}\n"],"mappings":";AACA,SAASA,aAAa,QAAQ,UAAU;AACxC,SAASC,GAAG,EAAEC,GAAG,QAAQ,oBAAoB;AAE7C,SAASC,UAAU,QAAQ,cAAc;AAEzC,SAASC,KAAK,EAAEC,QAAQ,QAAQ,UAAU;AAE1C,OAAO,MAAMC,YAAY,gBAAGC,OAAA,CAAOJ,UAAU,EAAAK,OAAA,CAAAC,GAAA,CAAAC,QAAA;EAAAC,MAAA;AAAA;EAAAA,MAAA;EAAAC,KAAA;AAAA,EAAC,CAC5CC,IAAA;EAAA,IAAC;IAAEC,KAAK,GAAG,SAAS;IAAEC;EAAM,CAAC,GAAAF,IAA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AE5B,GAAG,CAACc,KAAK,EAAE,uCAAuC,CAAC;IACjEe,cAAc,EAAE7B,GAAG,CAACc,KAAK,EAAE,yCAAyC,CAAC;IACrEgB,aAAa,EAAE;EACjB,CAAC;AACH","ignoreList":[]}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
import { FilledButton } from './FilledButton';
|
|
2
|
+
import type { Theme } from '../theme';
|
|
3
|
+
export declare const FloatingActionButton: typeof FilledButton;
|
|
4
|
+
export declare function getRippleProperties(theme: Theme): {
|
|
5
|
+
rippleEnabled: boolean;
|
|
6
|
+
hoverOpacity: any;
|
|
7
|
+
focusOpacity: any;
|
|
8
|
+
pressedOpacity: any;
|
|
9
|
+
};
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
1
|
+
import { FilledButton, getRippleProperties as filledButtonGetProperties } from './FilledButton';
|
|
2
|
+
export const FloatingActionButton = FilledButton;
|
|
3
3
|
export function getRippleProperties(theme) {
|
|
4
|
-
return
|
|
4
|
+
return {
|
|
5
|
+
...filledButtonGetProperties(theme),
|
|
5
6
|
rippleEnabled: true
|
|
6
|
-
}
|
|
7
|
+
};
|
|
7
8
|
}
|
|
8
9
|
//# sourceMappingURL=FloatingActionButton.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FloatingActionButton.js","names":["getRippleProperties","filledButtonGetProperties","theme","rippleEnabled"],"sources":["../../../src/Button/FloatingActionButton.tsx"],"sourcesContent":["import {
|
|
1
|
+
{"version":3,"file":"FloatingActionButton.js","names":["FilledButton","getRippleProperties","filledButtonGetProperties","FloatingActionButton","theme","rippleEnabled"],"sources":["../../../src/Button/FloatingActionButton.tsx"],"sourcesContent":["import {\n FilledButton,\n getRippleProperties as filledButtonGetProperties,\n} from './FilledButton';\nimport type { Theme } from '../theme';\n\nexport const FloatingActionButton = FilledButton as typeof FilledButton;\n\nexport function getRippleProperties(theme: Theme) {\n return {\n ...filledButtonGetProperties(theme),\n rippleEnabled: true,\n };\n}\n"],"mappings":"AAAA,SACEA,YAAY,EACZC,mBAAmB,IAAIC,yBAAyB,QAC3C,gBAAgB;AAGvB,OAAO,MAAMC,oBAAoB,GAAGH,YAAmC;AAEvE,OAAO,SAASC,mBAAmBA,CAACG,KAAY,EAAE;EAChD,OAAO;IACL,GAAGF,yBAAyB,CAACE,KAAK,CAAC;IACnCC,aAAa,EAAE;EACjB,CAAC;AACH","ignoreList":[]}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import type { Theme } from '../theme';
|
|
2
|
-
export declare function getRippleProperties(theme: Theme): {
|
|
3
|
-
center: boolean;
|
|
4
|
-
rippleEnabled: boolean;
|
|
5
|
-
hoverOpacity: any;
|
|
6
|
-
focusOpacity: any;
|
|
7
|
-
pressedOpacity: any;
|
|
8
|
-
};
|
|
1
|
+
import type { Theme } from '../theme';
|
|
2
|
+
export declare function getRippleProperties(theme: Theme): {
|
|
3
|
+
center: boolean;
|
|
4
|
+
rippleEnabled: boolean;
|
|
5
|
+
hoverOpacity: any;
|
|
6
|
+
focusOpacity: any;
|
|
7
|
+
pressedOpacity: any;
|
|
8
|
+
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import _extends from "@babel/runtime/helpers/extends";
|
|
2
1
|
import { getRippleProperties as filledButtonGetProperties } from './FilledButton';
|
|
3
2
|
export function getRippleProperties(theme) {
|
|
4
|
-
return
|
|
3
|
+
return {
|
|
4
|
+
...filledButtonGetProperties(theme),
|
|
5
5
|
center: true,
|
|
6
6
|
rippleEnabled: true
|
|
7
|
-
}
|
|
7
|
+
};
|
|
8
8
|
}
|
|
9
9
|
//# sourceMappingURL=IconButton.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IconButton.js","names":["getRippleProperties","filledButtonGetProperties","theme","center","rippleEnabled"],"sources":["../../../src/Button/IconButton.tsx"],"sourcesContent":["import { getRippleProperties as filledButtonGetProperties } from './FilledButton';\nimport type { Theme } from '../theme';\n\nexport function getRippleProperties(theme: Theme) {\n return {\n ...filledButtonGetProperties(theme),\n center: true,\n rippleEnabled: true,\n };\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"IconButton.js","names":["getRippleProperties","filledButtonGetProperties","theme","center","rippleEnabled"],"sources":["../../../src/Button/IconButton.tsx"],"sourcesContent":["import { getRippleProperties as filledButtonGetProperties } from './FilledButton';\nimport type { Theme } from '../theme';\n\nexport function getRippleProperties(theme: Theme) {\n return {\n ...filledButtonGetProperties(theme),\n center: true,\n rippleEnabled: true,\n };\n}\n"],"mappings":"AAAA,SAASA,mBAAmB,IAAIC,yBAAyB,QAAQ,gBAAgB;AAGjF,OAAO,SAASD,mBAAmBA,CAACE,KAAY,EAAE;EAChD,OAAO;IACL,GAAGD,yBAAyB,CAACC,KAAK,CAAC;IACnCC,MAAM,EAAE,IAAI;IACZC,aAAa,EAAE;EACjB,CAAC;AACH","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IconFilledButton.js","names":["FilledButton","IconFilledButton"],"sources":["../../../src/Button/IconFilledButton.tsx"],"sourcesContent":["import { FilledButton } from './FilledButton';\n\nexport const IconFilledButton = FilledButton as typeof FilledButton;\n"],"mappings":"AAAA,SAASA,YAAY,QAAQ,gBAAgB;AAE7C,OAAO,MAAMC,gBAAgB,GAAGD,YAAmC","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IconOutlinedButton.js","names":["OutlinedButton","IconOutlinedButton"],"sources":["../../../src/Button/IconOutlinedButton.tsx"],"sourcesContent":["import { OutlinedButton } from './OutlinedButton';\n\nexport const IconOutlinedButton = OutlinedButton as typeof OutlinedButton;\n"],"mappings":"AAAA,SAASA,cAAc,QAAQ,kBAAkB;AAEjD,OAAO,MAAMC,kBAAkB,GAAGD,cAAuC","ignoreList":[]}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
}, {}, {}>;
|
|
1
|
+
export declare const OutlinedButton: import("@emotion/styled").StyledComponent<Omit<import("./BaseButton").BaseButtonProps, "ref"> & import("react").RefAttributes<HTMLButtonElement> & {
|
|
2
|
+
theme?: import("@emotion/react").Theme;
|
|
3
|
+
}, {}, {}>;
|
|
@@ -2,14 +2,14 @@ import _styled from "@emotion/styled/base";
|
|
|
2
2
|
import { css } from '@styled-system/css';
|
|
3
3
|
import { alpha } from '../color';
|
|
4
4
|
import { TransparentButton } from './TransparentButton';
|
|
5
|
-
export
|
|
5
|
+
export const OutlinedButton = /*#__PURE__*/_styled(TransparentButton, process.env.NODE_ENV === "production" ? {
|
|
6
6
|
target: "eo0fwlz0"
|
|
7
7
|
} : {
|
|
8
8
|
target: "eo0fwlz0",
|
|
9
9
|
label: "OutlinedButton"
|
|
10
10
|
})(css({
|
|
11
11
|
borderStyle: 'solid',
|
|
12
|
-
borderWidth:
|
|
12
|
+
borderWidth: '1px',
|
|
13
13
|
borderColor: 'outline',
|
|
14
14
|
boxShadow: 0,
|
|
15
15
|
'&:focus,:&active,:&hover': {
|
|
@@ -23,45 +23,5 @@ export var OutlinedButton = /*#__PURE__*/_styled(TransparentButton, process.env.
|
|
|
23
23
|
borderColor: alpha('outline', 0.12),
|
|
24
24
|
cursor: 'default'
|
|
25
25
|
}
|
|
26
|
-
}),
|
|
27
|
-
var _ref$isGroupedButton = _ref.isGroupedButton,
|
|
28
|
-
isGroupedButton = _ref$isGroupedButton === void 0 ? false : _ref$isGroupedButton;
|
|
29
|
-
return isGroupedButton && {
|
|
30
|
-
'[data-button-group=""] &': {
|
|
31
|
-
':first-of-type': {
|
|
32
|
-
borderTopRightRadius: 0,
|
|
33
|
-
borderBottomRightRadius: 0
|
|
34
|
-
},
|
|
35
|
-
':not(:first-of-type):not(:last-of-type)': {
|
|
36
|
-
borderRadius: 0,
|
|
37
|
-
borderRightWidth: 0,
|
|
38
|
-
borderLeftWidth: 0
|
|
39
|
-
},
|
|
40
|
-
':last-of-type': {
|
|
41
|
-
borderTopLeftRadius: 0,
|
|
42
|
-
borderBottomLeftRadius: 0,
|
|
43
|
-
borderLeftStyle: 'solid',
|
|
44
|
-
borderLeftWidth: "0.0625rem"
|
|
45
|
-
},
|
|
46
|
-
// Handling the border between enabled/disabled buttons
|
|
47
|
-
':not(:disabled):has(+ :disabled)': {
|
|
48
|
-
borderRightWidth: "0.0625rem",
|
|
49
|
-
borderRightStyle: 'solid'
|
|
50
|
-
},
|
|
51
|
-
':disabled + :not(:disabled)': {
|
|
52
|
-
borderLeftWidth: "0.0625rem",
|
|
53
|
-
borderLeftStyle: 'solid'
|
|
54
|
-
},
|
|
55
|
-
':not(:disabled) + :disabled': {
|
|
56
|
-
borderLeftWidth: "0rem"
|
|
57
|
-
},
|
|
58
|
-
':disabled:has(+ :not(:disabled))': {
|
|
59
|
-
borderRightWidth: "0rem"
|
|
60
|
-
},
|
|
61
|
-
':last-of-type:nth-of-type(2)': {
|
|
62
|
-
borderLeftWidth: "0rem"
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
};
|
|
66
|
-
}, process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9CdXR0b24vT3V0bGluZWRCdXR0b24udHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQU84QiIsImZpbGUiOiIuLi8uLi8uLi9zcmMvQnV0dG9uL091dGxpbmVkQnV0dG9uLnRzeCIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBzdHlsZWQgZnJvbSAnQGVtb3Rpb24vc3R5bGVkJztcbmltcG9ydCB7IGNzcyB9IGZyb20gJ0BzdHlsZWQtc3lzdGVtL2Nzcyc7XG5pbXBvcnQgeyByZW0gfSBmcm9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1xuICAgICAgICAgIGJvcmRlckxlZnRXaWR0aDogcmVtKDApLFxuICAgICAgICB9LFxuICAgICAgfSxcbiAgICB9XG4pO1xuIl19 */");
|
|
26
|
+
}), process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9CdXR0b24vT3V0bGluZWRCdXR0b24udHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQU04QiIsImZpbGUiOiIuLi8uLi8uLi9zcmMvQnV0dG9uL091dGxpbmVkQnV0dG9uLnRzeCIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBzdHlsZWQgZnJvbSAnQGVtb3Rpb24vc3R5bGVkJztcbmltcG9ydCB7IGNzcyB9IGZyb20gJ0BzdHlsZWQtc3lzdGVtL2Nzcyc7XG5cbmltcG9ydCB7IGFscGhhIH0gZnJvbSAnLi4vY29sb3InO1xuaW1wb3J0IHsgVHJhbnNwYXJlbnRCdXR0b24gfSBmcm9tICcuL1RyYW5zcGFyZW50QnV0dG9uJztcblxuZXhwb3J0IGNvbnN0IE91dGxpbmVkQnV0dG9uID0gc3R5bGVkKFRyYW5zcGFyZW50QnV0dG9uKShcbiAgY3NzKHtcbiAgICBib3JkZXJTdHlsZTogJ3NvbGlkJyxcbiAgICBib3JkZXJXaWR0aDogJzFweCcsXG4gICAgYm9yZGVyQ29sb3I6ICdvdXRsaW5lJyxcbiAgICBib3hTaGFkb3c6IDAsXG4gICAgJyY6Zm9jdXMsOiZhY3RpdmUsOiZob3Zlcic6IHsgYm94U2hhZG93OiAwIH0sXG4gICAgJyY6Zm9jdXMtdmlzaWJsZSwmOmFjdGl2ZSc6IHtcbiAgICAgIGJvcmRlckNvbG9yOiAnY3VycmVudENvbG9yJyxcbiAgICB9LFxuICAgICcmOmRpc2FibGVkJzoge1xuICAgICAgY29sb3I6IGFscGhhKCdvbi5zdXJmYWNlJywgM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