@basic-ui/material 1.0.0-alpha.1 → 1.0.0-alpha.12
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 +1372 -1306
- package/build/cjs/index.js.map +1 -1
- package/build/esm/Alert/Alert.d.ts +1 -1
- package/build/esm/Alert/Alert.js +3 -2
- package/build/esm/Alert/Alert.js.map +1 -1
- package/build/esm/Alert/index.d.ts +0 -0
- package/build/esm/Alert/index.js +0 -0
- package/build/esm/Alert/index.js.map +1 -1
- package/build/esm/AppBar/AppBar.d.ts +3 -3
- package/build/esm/AppBar/AppBar.js +6 -5
- package/build/esm/AppBar/AppBar.js.map +1 -1
- package/build/esm/AppBar/AppBarButton.d.ts +1 -1
- package/build/esm/AppBar/AppBarButton.js +2 -1
- package/build/esm/AppBar/AppBarButton.js.map +1 -1
- package/build/esm/AppBar/context.d.ts +0 -0
- package/build/esm/AppBar/context.js +0 -0
- package/build/esm/AppBar/context.js.map +1 -1
- package/build/esm/AppBar/index.d.ts +0 -0
- package/build/esm/AppBar/index.js +0 -0
- package/build/esm/AppBar/index.js.map +1 -1
- package/build/esm/Badge/Badge.d.ts +1 -1
- package/build/esm/Badge/Badge.js +0 -0
- package/build/esm/Badge/Badge.js.map +1 -1
- package/build/esm/Badge/index.d.ts +0 -0
- package/build/esm/Badge/index.js +0 -0
- package/build/esm/Badge/index.js.map +1 -1
- package/build/esm/BaseLine/BaseLine.d.ts +0 -0
- package/build/esm/BaseLine/BaseLine.js +0 -0
- package/build/esm/BaseLine/BaseLine.js.map +1 -1
- package/build/esm/BaseLine/index.d.ts +0 -0
- package/build/esm/BaseLine/index.js +0 -0
- package/build/esm/BaseLine/index.js.map +1 -1
- package/build/esm/BottomSheet/BottomSheet.d.ts +1 -1
- package/build/esm/BottomSheet/BottomSheet.js +2 -1
- package/build/esm/BottomSheet/BottomSheet.js.map +1 -1
- package/build/esm/BottomSheet/BottomSheetSurface.d.ts +2 -2
- package/build/esm/BottomSheet/BottomSheetSurface.js +4 -3
- package/build/esm/BottomSheet/BottomSheetSurface.js.map +1 -1
- package/build/esm/BottomSheet/index.d.ts +0 -0
- package/build/esm/BottomSheet/index.js +0 -0
- package/build/esm/BottomSheet/index.js.map +1 -1
- package/build/esm/Box/Box.d.ts +4 -4
- package/build/esm/Box/Box.js +1 -2
- package/build/esm/Box/Box.js.map +1 -1
- package/build/esm/Box/index.d.ts +0 -0
- package/build/esm/Box/index.js +0 -0
- package/build/esm/Box/index.js.map +1 -1
- package/build/esm/Button/BaseButton.d.ts +3 -3
- package/build/esm/Button/BaseButton.js +5 -5
- package/build/esm/Button/BaseButton.js.map +1 -1
- package/build/esm/Button/Button.d.ts +4 -4
- package/build/esm/Button/Button.js +6 -6
- package/build/esm/Button/Button.js.map +1 -1
- package/build/esm/Button/ButtonGroup.d.ts +2 -2
- package/build/esm/Button/ButtonGroup.js +3 -2
- package/build/esm/Button/ButtonGroup.js.map +1 -1
- package/build/esm/Button/FilledButton.d.ts +1 -1
- package/build/esm/Button/FilledButton.js +6 -8
- package/build/esm/Button/FilledButton.js.map +1 -1
- package/build/esm/Button/FloatingActionButton.d.ts +0 -0
- package/build/esm/Button/FloatingActionButton.js +1 -1
- package/build/esm/Button/FloatingActionButton.js.map +1 -1
- package/build/esm/Button/IconButton.d.ts +0 -0
- package/build/esm/Button/IconButton.js +1 -1
- package/build/esm/Button/IconButton.js.map +1 -1
- package/build/esm/Button/OutlinedButton.d.ts +1 -1
- package/build/esm/Button/OutlinedButton.js +0 -0
- package/build/esm/Button/OutlinedButton.js.map +1 -1
- package/build/esm/Button/TransparentButton.d.ts +1 -1
- package/build/esm/Button/TransparentButton.js +0 -0
- package/build/esm/Button/TransparentButton.js.map +1 -1
- package/build/esm/Button/context.d.ts +0 -0
- package/build/esm/Button/context.js +0 -0
- package/build/esm/Button/context.js.map +1 -1
- package/build/esm/Button/index.d.ts +0 -0
- package/build/esm/Button/index.js +0 -0
- package/build/esm/Button/index.js.map +1 -1
- package/build/esm/CheckBox/CheckBox.d.ts +5 -5
- package/build/esm/CheckBox/CheckBox.js +6 -5
- package/build/esm/CheckBox/CheckBox.js.map +1 -1
- package/build/esm/CheckBox/CheckBoxIcon.d.ts +4 -4
- package/build/esm/CheckBox/CheckBoxIcon.js +6 -5
- package/build/esm/CheckBox/CheckBoxIcon.js.map +1 -1
- package/build/esm/CheckBox/CheckPath.d.ts +0 -1
- package/build/esm/CheckBox/CheckPath.js +0 -0
- package/build/esm/CheckBox/CheckPath.js.map +1 -1
- package/build/esm/CheckBox/IndeterminatePath.d.ts +0 -1
- package/build/esm/CheckBox/IndeterminatePath.js +0 -0
- package/build/esm/CheckBox/IndeterminatePath.js.map +1 -1
- package/build/esm/CheckBox/index.d.ts +0 -0
- package/build/esm/CheckBox/index.js +0 -0
- package/build/esm/CheckBox/index.js.map +1 -1
- package/build/esm/Chip/ButtonChip.d.ts +4 -4
- package/build/esm/Chip/ButtonChip.js +4 -4
- package/build/esm/Chip/ButtonChip.js.map +1 -1
- package/build/esm/Chip/Chip.d.ts +0 -0
- package/build/esm/Chip/Chip.js +0 -0
- package/build/esm/Chip/Chip.js.map +1 -1
- package/build/esm/Chip/ChipBase.d.ts +3 -3
- package/build/esm/Chip/ChipBase.js +10 -10
- package/build/esm/Chip/ChipBase.js.map +1 -1
- package/build/esm/Chip/ChoiceChip.d.ts +5 -5
- package/build/esm/Chip/ChoiceChip.js +6 -5
- package/build/esm/Chip/ChoiceChip.js.map +1 -1
- package/build/esm/Chip/index.d.ts +0 -0
- package/build/esm/Chip/index.js +0 -0
- package/build/esm/Chip/index.js.map +1 -1
- package/build/esm/Combobox/Combobox.d.ts +13 -13
- package/build/esm/Combobox/Combobox.js +21 -13
- package/build/esm/Combobox/Combobox.js.map +1 -1
- package/build/esm/Combobox/index.d.ts +0 -0
- package/build/esm/Combobox/index.js +0 -0
- package/build/esm/Combobox/index.js.map +1 -1
- package/build/esm/Dialog/Dialog.d.ts +1 -1
- package/build/esm/Dialog/Dialog.js +6 -5
- package/build/esm/Dialog/Dialog.js.map +1 -1
- package/build/esm/Dialog/DialogBackdrop.d.ts +2 -2
- package/build/esm/Dialog/DialogBackdrop.js +2 -2
- package/build/esm/Dialog/DialogBackdrop.js.map +1 -1
- package/build/esm/Dialog/DialogContainer.d.ts +1 -1
- package/build/esm/Dialog/DialogContainer.js +2 -1
- package/build/esm/Dialog/DialogContainer.js.map +1 -1
- package/build/esm/Dialog/DialogSurface.d.ts +2 -2
- package/build/esm/Dialog/DialogSurface.js +4 -4
- package/build/esm/Dialog/DialogSurface.js.map +1 -1
- package/build/esm/Dialog/Scrim.d.ts +1 -1
- package/build/esm/Dialog/Scrim.js +2 -1
- package/build/esm/Dialog/Scrim.js.map +1 -1
- package/build/esm/Dialog/index.d.ts +0 -0
- package/build/esm/Dialog/index.js +1 -0
- package/build/esm/Dialog/index.js.map +1 -1
- package/build/esm/Dialog/useDialogAnimation.d.ts +0 -0
- package/build/esm/Dialog/useDialogAnimation.js +6 -4
- package/build/esm/Dialog/useDialogAnimation.js.map +1 -1
- package/build/esm/Divider/Divider.d.ts +3 -3
- package/build/esm/Divider/Divider.js +7 -7
- package/build/esm/Divider/Divider.js.map +1 -1
- package/build/esm/Divider/index.d.ts +0 -0
- package/build/esm/Divider/index.js +0 -0
- package/build/esm/Divider/index.js.map +1 -1
- package/build/esm/FloatingLabel/FloatingLabel.d.ts +4 -4
- package/build/esm/FloatingLabel/FloatingLabel.js +7 -6
- package/build/esm/FloatingLabel/FloatingLabel.js.map +1 -1
- package/build/esm/FloatingLabel/index.d.ts +0 -0
- package/build/esm/FloatingLabel/index.js +0 -0
- package/build/esm/FloatingLabel/index.js.map +1 -1
- package/build/esm/LineRipple/LineRipple.d.ts +3 -3
- package/build/esm/LineRipple/LineRipple.js +5 -4
- package/build/esm/LineRipple/LineRipple.js.map +1 -1
- package/build/esm/LineRipple/index.d.ts +0 -0
- package/build/esm/LineRipple/index.js +0 -0
- package/build/esm/LineRipple/index.js.map +1 -1
- package/build/esm/Link/Link.d.ts +3 -3
- package/build/esm/Link/Link.js +2 -2
- package/build/esm/Link/Link.js.map +1 -1
- package/build/esm/Link/index.d.ts +0 -0
- package/build/esm/Link/index.js +0 -0
- package/build/esm/Link/index.js.map +1 -1
- package/build/esm/List/List.d.ts +5 -5
- package/build/esm/List/List.js +2 -2
- package/build/esm/List/List.js.map +1 -1
- package/build/esm/List/index.d.ts +0 -0
- package/build/esm/List/index.js +0 -0
- package/build/esm/List/index.js.map +1 -1
- package/build/esm/ListItem/ListItem.d.ts +5 -5
- package/build/esm/ListItem/ListItem.js +7 -6
- package/build/esm/ListItem/ListItem.js.map +1 -1
- package/build/esm/ListItem/ListItemText.d.ts +6 -6
- package/build/esm/ListItem/ListItemText.js +5 -5
- package/build/esm/ListItem/ListItemText.js.map +1 -1
- package/build/esm/ListItem/index.d.ts +0 -0
- package/build/esm/ListItem/index.js +0 -0
- package/build/esm/ListItem/index.js.map +1 -1
- package/build/esm/Menu/Menu.d.ts +6 -6
- package/build/esm/Menu/Menu.js +13 -7
- package/build/esm/Menu/Menu.js.map +1 -1
- package/build/esm/Menu/animation.d.ts +0 -0
- package/build/esm/Menu/animation.js +0 -0
- package/build/esm/Menu/animation.js.map +1 -1
- package/build/esm/Menu/index.d.ts +0 -0
- package/build/esm/Menu/index.js +0 -0
- package/build/esm/Menu/index.js.map +1 -1
- package/build/esm/NavRail/NavRailItem.d.ts +15 -0
- package/build/esm/NavRail/NavRailItem.js +150 -0
- package/build/esm/NavRail/NavRailItem.js.map +1 -0
- package/build/esm/NavRail/index.d.ts +1 -0
- package/build/esm/NavRail/index.js +2 -0
- package/build/esm/NavRail/index.js.map +1 -0
- package/build/esm/NotchedOutline/NotchedOutline.d.ts +5 -5
- package/build/esm/NotchedOutline/NotchedOutline.js +4 -4
- package/build/esm/NotchedOutline/NotchedOutline.js.map +1 -1
- package/build/esm/NotchedOutline/context.d.ts +0 -0
- package/build/esm/NotchedOutline/context.js +0 -0
- package/build/esm/NotchedOutline/context.js.map +1 -1
- package/build/esm/NotchedOutline/index.d.ts +0 -0
- package/build/esm/NotchedOutline/index.js +0 -0
- package/build/esm/NotchedOutline/index.js.map +1 -1
- package/build/esm/NotchedOutline/styledComponents.d.ts +114 -28
- package/build/esm/NotchedOutline/styledComponents.js +3 -2
- package/build/esm/NotchedOutline/styledComponents.js.map +1 -1
- package/build/esm/Paper/Paper.d.ts +4 -4
- package/build/esm/Paper/Paper.js +6 -6
- package/build/esm/Paper/Paper.js.map +1 -1
- package/build/esm/Paper/index.d.ts +0 -0
- package/build/esm/Paper/index.js +0 -0
- package/build/esm/Paper/index.js.map +1 -1
- package/build/esm/ProgressSpinner/ProgressSpinner.d.ts +1 -1
- package/build/esm/ProgressSpinner/ProgressSpinner.js +14 -14
- package/build/esm/ProgressSpinner/ProgressSpinner.js.map +1 -1
- package/build/esm/ProgressSpinner/index.d.ts +0 -0
- package/build/esm/ProgressSpinner/index.js +0 -0
- package/build/esm/ProgressSpinner/index.js.map +1 -1
- package/build/esm/RadioButton/RadioButton.d.ts +0 -0
- package/build/esm/RadioButton/RadioButton.js +4 -2
- package/build/esm/RadioButton/RadioButton.js.map +1 -1
- package/build/esm/RadioButton/RadioButtonIcon.d.ts +3 -3
- package/build/esm/RadioButton/RadioButtonIcon.js +6 -5
- package/build/esm/RadioButton/RadioButtonIcon.js.map +1 -1
- package/build/esm/RadioButton/RadioGroup.d.ts +1 -1
- package/build/esm/RadioButton/RadioGroup.js +2 -1
- package/build/esm/RadioButton/RadioGroup.js.map +1 -1
- package/build/esm/RadioButton/index.d.ts +0 -0
- package/build/esm/RadioButton/index.js +0 -0
- package/build/esm/RadioButton/index.js.map +1 -1
- package/build/esm/Ripple/Ripple.d.ts +0 -0
- package/build/esm/Ripple/Ripple.js +0 -0
- package/build/esm/Ripple/Ripple.js.map +1 -1
- package/build/esm/Ripple/RippleBox.d.ts +1 -2
- package/build/esm/Ripple/RippleBox.js +7 -6
- package/build/esm/Ripple/RippleBox.js.map +1 -1
- package/build/esm/Ripple/constants.d.ts +0 -0
- package/build/esm/Ripple/constants.js +0 -0
- package/build/esm/Ripple/constants.js.map +1 -1
- package/build/esm/Ripple/index.d.ts +0 -0
- package/build/esm/Ripple/index.js +0 -0
- package/build/esm/Ripple/index.js.map +1 -1
- package/build/esm/Ripple/keyframes.d.ts +0 -0
- package/build/esm/Ripple/keyframes.js +0 -0
- package/build/esm/Ripple/keyframes.js.map +1 -1
- package/build/esm/Ripple/useRipple.d.ts +0 -0
- package/build/esm/Ripple/useRipple.js +2 -2
- package/build/esm/Ripple/useRipple.js.map +1 -1
- package/build/esm/Ripple/useRippleHandlers.d.ts +3 -3
- package/build/esm/Ripple/useRippleHandlers.js +2 -1
- package/build/esm/Ripple/useRippleHandlers.js.map +1 -1
- package/build/esm/Ripple/useRippleSurface.d.ts +5 -5
- package/build/esm/Ripple/useRippleSurface.js +64 -60
- package/build/esm/Ripple/useRippleSurface.js.map +1 -1
- package/build/esm/Select/Select.d.ts +6 -6
- package/build/esm/Select/Select.js +5 -5
- 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 -5
- package/build/esm/Select/SelectIcon.js.map +1 -1
- package/build/esm/Select/context.d.ts +2 -2
- package/build/esm/Select/context.js +0 -0
- package/build/esm/Select/context.js.map +1 -1
- package/build/esm/Select/defaultRender.d.ts +2 -1
- package/build/esm/Select/defaultRender.js +0 -0
- package/build/esm/Select/defaultRender.js.map +1 -1
- package/build/esm/Select/index.d.ts +0 -0
- package/build/esm/Select/index.js +0 -0
- package/build/esm/Select/index.js.map +1 -1
- package/build/esm/Select/styledComponents.d.ts +9 -9
- package/build/esm/Select/styledComponents.js +8 -6
- package/build/esm/Select/styledComponents.js.map +1 -1
- package/build/esm/SelectItem/SelectItem.d.ts +1 -1
- package/build/esm/SelectItem/SelectItem.js +6 -5
- package/build/esm/SelectItem/SelectItem.js.map +1 -1
- package/build/esm/SelectItem/index.d.ts +0 -0
- package/build/esm/SelectItem/index.js +0 -0
- package/build/esm/SelectItem/index.js.map +1 -1
- package/build/esm/SelectionControl/SelectionControlLabel.d.ts +5 -5
- package/build/esm/SelectionControl/SelectionControlLabel.js +2 -2
- package/build/esm/SelectionControl/SelectionControlLabel.js.map +1 -1
- package/build/esm/SelectionControl/SelectionControlText.d.ts +4 -4
- package/build/esm/SelectionControl/SelectionControlText.js +4 -4
- package/build/esm/SelectionControl/SelectionControlText.js.map +1 -1
- package/build/esm/SelectionControl/index.d.ts +0 -0
- package/build/esm/SelectionControl/index.js +0 -0
- package/build/esm/SelectionControl/index.js.map +1 -1
- package/build/esm/Skeleton/DelayAppearance.d.ts +3 -3
- package/build/esm/Skeleton/DelayAppearance.js +2 -2
- package/build/esm/Skeleton/DelayAppearance.js.map +1 -1
- package/build/esm/Skeleton/Skeleton.d.ts +6 -6
- package/build/esm/Skeleton/Skeleton.js +4 -4
- package/build/esm/Skeleton/Skeleton.js.map +1 -1
- package/build/esm/Skeleton/animation.d.ts +0 -0
- package/build/esm/Skeleton/animation.js +0 -0
- package/build/esm/Skeleton/animation.js.map +1 -1
- package/build/esm/Skeleton/index.d.ts +0 -0
- package/build/esm/Skeleton/index.js +0 -0
- package/build/esm/Skeleton/index.js.map +1 -1
- package/build/esm/Snackbar/Snackbar.d.ts +3 -3
- package/build/esm/Snackbar/Snackbar.js +9 -9
- package/build/esm/Snackbar/Snackbar.js.map +1 -1
- package/build/esm/Snackbar/Stack.d.ts +2 -3
- package/build/esm/Snackbar/Stack.js +4 -3
- package/build/esm/Snackbar/Stack.js.map +1 -1
- package/build/esm/Snackbar/index.d.ts +0 -0
- package/build/esm/Snackbar/index.js +0 -0
- package/build/esm/Snackbar/index.js.map +1 -1
- package/build/esm/Snackbar/useSnackbarAnimation.d.ts +2 -2
- package/build/esm/Snackbar/useSnackbarAnimation.js +8 -7
- package/build/esm/Snackbar/useSnackbarAnimation.js.map +1 -1
- package/build/esm/Switch/Switch.d.ts +4 -5
- package/build/esm/Switch/Switch.js +6 -5
- package/build/esm/Switch/Switch.js.map +1 -1
- package/build/esm/Switch/index.d.ts +0 -0
- package/build/esm/Switch/index.js +0 -0
- package/build/esm/Switch/index.js.map +1 -1
- package/build/esm/Switch/styledComponents.d.ts +0 -0
- package/build/esm/Switch/styledComponents.js +8 -4
- package/build/esm/Switch/styledComponents.js.map +1 -1
- package/build/esm/Tab/Tab.d.ts +3 -3
- package/build/esm/Tab/Tab.js +8 -7
- package/build/esm/Tab/Tab.js.map +1 -1
- package/build/esm/Tab/TabList.d.ts +1 -1
- package/build/esm/Tab/TabList.js +4 -2
- package/build/esm/Tab/TabList.js.map +1 -1
- package/build/esm/Tab/TabPanel.d.ts +1 -1
- package/build/esm/Tab/TabPanel.js +4 -2
- package/build/esm/Tab/TabPanel.js.map +1 -1
- package/build/esm/Tab/TabPanels.d.ts +0 -0
- package/build/esm/Tab/TabPanels.js +0 -0
- package/build/esm/Tab/TabPanels.js.map +1 -1
- package/build/esm/Tab/Tabs.d.ts +0 -0
- package/build/esm/Tab/Tabs.js +0 -0
- package/build/esm/Tab/Tabs.js.map +1 -1
- package/build/esm/Tab/context.d.ts +0 -0
- package/build/esm/Tab/context.js +0 -0
- package/build/esm/Tab/context.js.map +1 -1
- package/build/esm/Tab/index.d.ts +0 -0
- package/build/esm/Tab/index.js +0 -0
- package/build/esm/Tab/index.js.map +1 -1
- package/build/esm/TabIndicator/TabIndicator.d.ts +1 -1
- package/build/esm/TabIndicator/TabIndicator.js +4 -2
- package/build/esm/TabIndicator/TabIndicator.js.map +1 -1
- package/build/esm/TabIndicator/context.d.ts +2 -2
- package/build/esm/TabIndicator/context.js +0 -0
- package/build/esm/TabIndicator/context.js.map +1 -1
- package/build/esm/TabIndicator/index.d.ts +0 -0
- package/build/esm/TabIndicator/index.js +0 -0
- package/build/esm/TabIndicator/index.js.map +1 -1
- package/build/esm/Table/Table.d.ts +1 -1
- package/build/esm/Table/Table.js +4 -3
- package/build/esm/Table/Table.js.map +1 -1
- package/build/esm/Table/TableBody.d.ts +1 -1
- package/build/esm/Table/TableBody.js +4 -3
- package/build/esm/Table/TableBody.js.map +1 -1
- package/build/esm/Table/TableCell.d.ts +1 -1
- package/build/esm/Table/TableCell.js +4 -3
- package/build/esm/Table/TableCell.js.map +1 -1
- package/build/esm/Table/TableHead.d.ts +1 -1
- package/build/esm/Table/TableHead.js +4 -3
- package/build/esm/Table/TableHead.js.map +1 -1
- package/build/esm/Table/TableRow.d.ts +1 -1
- package/build/esm/Table/TableRow.js +5 -4
- package/build/esm/Table/TableRow.js.map +1 -1
- package/build/esm/Table/context.d.ts +0 -0
- package/build/esm/Table/context.js +0 -0
- package/build/esm/Table/context.js.map +1 -1
- package/build/esm/Table/index.d.ts +0 -0
- package/build/esm/Table/index.js +0 -0
- package/build/esm/Table/index.js.map +1 -1
- package/build/esm/Text/LoremIpsum.d.ts +0 -0
- package/build/esm/Text/LoremIpsum.js +1 -1
- package/build/esm/Text/LoremIpsum.js.map +1 -1
- package/build/esm/Text/Text.d.ts +8 -4
- package/build/esm/Text/Text.js +7 -3
- package/build/esm/Text/Text.js.map +1 -1
- package/build/esm/Text/index.d.ts +0 -0
- package/build/esm/Text/index.js +0 -0
- package/build/esm/Text/index.js.map +1 -1
- package/build/esm/TextField/FilledContainer.d.ts +4 -4
- package/build/esm/TextField/FilledContainer.js +6 -6
- package/build/esm/TextField/FilledContainer.js.map +1 -1
- package/build/esm/TextField/HelperText.d.ts +5 -5
- package/build/esm/TextField/HelperText.js +5 -5
- package/build/esm/TextField/HelperText.js.map +1 -1
- package/build/esm/TextField/IconContainer.d.ts +2 -3
- package/build/esm/TextField/IconContainer.js +0 -1
- package/build/esm/TextField/IconContainer.js.map +1 -1
- package/build/esm/TextField/Input.d.ts +4 -4
- package/build/esm/TextField/Input.js +11 -9
- package/build/esm/TextField/Input.js.map +1 -1
- package/build/esm/TextField/OutlinedContainer.d.ts +4 -4
- package/build/esm/TextField/OutlinedContainer.js +5 -5
- package/build/esm/TextField/OutlinedContainer.js.map +1 -1
- package/build/esm/TextField/TextField.d.ts +5 -5
- package/build/esm/TextField/TextField.js +4 -4
- package/build/esm/TextField/TextField.js.map +1 -1
- package/build/esm/TextField/consts.d.ts +0 -0
- package/build/esm/TextField/consts.js +0 -0
- package/build/esm/TextField/consts.js.map +1 -1
- package/build/esm/TextField/index.d.ts +0 -0
- package/build/esm/TextField/index.js +0 -0
- package/build/esm/TextField/index.js.map +1 -1
- package/build/esm/ThemeExplorer/ColorPicker.d.ts +0 -0
- package/build/esm/ThemeExplorer/ColorPicker.js +4 -3
- package/build/esm/ThemeExplorer/ColorPicker.js.map +1 -1
- package/build/esm/ThemeExplorer/TextFieldColorPicker.d.ts +0 -0
- package/build/esm/ThemeExplorer/TextFieldColorPicker.js +4 -3
- package/build/esm/ThemeExplorer/TextFieldColorPicker.js.map +1 -1
- package/build/esm/ThemeExplorer/ThemeBuilder.d.ts +9 -0
- package/build/esm/ThemeExplorer/ThemeBuilder.js +244 -0
- package/build/esm/ThemeExplorer/ThemeBuilder.js.map +1 -0
- package/build/esm/ThemeExplorer/ThemeColors.d.ts +2 -2
- package/build/esm/ThemeExplorer/ThemeColors.js +1 -1
- package/build/esm/ThemeExplorer/ThemeColors.js.map +1 -1
- package/build/esm/ThemeExplorer/components.d.ts +6 -7
- package/build/esm/ThemeExplorer/components.js +24 -20
- package/build/esm/ThemeExplorer/components.js.map +1 -1
- package/build/esm/ThemeExplorer/index.d.ts +1 -0
- package/build/esm/ThemeExplorer/index.js +2 -0
- package/build/esm/ThemeExplorer/index.js.map +1 -0
- package/build/esm/ThemeExplorer/makeColorScheme.d.ts +0 -0
- package/build/esm/ThemeExplorer/makeColorScheme.js +0 -0
- package/build/esm/ThemeExplorer/makeColorScheme.js.map +1 -1
- package/build/esm/ThemeExplorer/useDeferredColor.d.ts +0 -0
- package/build/esm/ThemeExplorer/useDeferredColor.js +4 -5
- package/build/esm/ThemeExplorer/useDeferredColor.js.map +1 -1
- package/build/esm/ThemeExplorer/useLocalStorageCachedState.d.ts +1 -1
- package/build/esm/ThemeExplorer/useLocalStorageCachedState.js +1 -1
- 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 -9
- package/build/esm/Tooltip/Tooltip.js.map +1 -1
- package/build/esm/Tooltip/index.d.ts +0 -0
- package/build/esm/Tooltip/index.js +0 -0
- package/build/esm/Tooltip/index.js.map +1 -1
- package/build/esm/color.d.ts +2 -0
- package/build/esm/color.js +9 -4
- package/build/esm/color.js.map +1 -1
- package/build/esm/css.d.ts +0 -0
- package/build/esm/css.js +0 -0
- package/build/esm/css.js.map +1 -1
- package/build/esm/hooks/useAnimation.d.ts +0 -0
- package/build/esm/hooks/useAnimation.js +3 -3
- package/build/esm/hooks/useAnimation.js.map +1 -1
- package/build/esm/index.d.ts +2 -1
- package/build/esm/index.js +2 -1
- package/build/esm/index.js.map +1 -1
- package/build/esm/motion.d.ts +7 -0
- package/build/esm/motion.js +8 -0
- package/build/esm/motion.js.map +1 -0
- package/build/esm/theme/index.d.ts +0 -0
- package/build/esm/theme/index.js +0 -0
- package/build/esm/theme/index.js.map +1 -1
- package/build/esm/theme/theme.d.ts +114 -28
- package/build/esm/theme/theme.js +46 -38
- package/build/esm/theme/theme.js.map +1 -1
- package/build/esm/theme/typography-raleway.d.ts +0 -0
- package/build/esm/theme/typography-raleway.js +0 -0
- package/build/esm/theme/typography-raleway.js.map +1 -1
- package/build/esm/theme/typography-roboto.d.ts +0 -0
- package/build/esm/theme/typography-roboto.js +0 -0
- package/build/esm/theme/typography-roboto.js.map +1 -1
- package/build/esm/theme/useTheme.d.ts +557 -1
- package/build/esm/theme/useTheme.js +0 -0
- package/build/esm/theme/useTheme.js.map +1 -1
- package/build/tsconfig-build.tsbuildinfo +1 -0
- package/package.json +8 -8
- package/src/Alert/Alert.tsx +1 -1
- package/src/AppBar/AppBar.tsx +4 -3
- package/src/BottomSheet/BottomSheetSurface.tsx +5 -4
- package/src/Box/Box.tsx +6 -8
- package/src/Button/BaseButton.tsx +3 -11
- package/src/Button/Button.story.tsx +21 -4
- package/src/Button/Button.tsx +4 -4
- package/src/Button/ButtonGroup.tsx +1 -1
- package/src/Button/FilledButton.tsx +4 -9
- package/src/Button/SpinnerButton.story.tsx +1 -1
- package/src/CheckBox/CheckBox.story.tsx +7 -6
- package/src/CheckBox/CheckBox.tsx +6 -10
- package/src/CheckBox/CheckBoxIcon.tsx +5 -5
- package/src/Chip/ButtonChip.tsx +3 -3
- package/src/Chip/Chip.story.tsx +1 -1
- package/src/Chip/ChipBase.tsx +2 -2
- package/src/Chip/ChoiceChip.tsx +7 -7
- package/src/Combobox/Combobox.story.tsx +3 -3
- package/src/Combobox/Combobox.tsx +9 -10
- package/src/Dialog/DialogBackdrop.tsx +3 -3
- package/src/Dialog/DialogSurface.tsx +2 -4
- package/src/Dialog/useDialogAnimation.tsx +3 -4
- package/src/Divider/Divider.tsx +2 -2
- package/src/FloatingLabel/FloatingLabel.tsx +7 -6
- package/src/LineRipple/LineRipple.story.tsx +1 -1
- package/src/LineRipple/LineRipple.tsx +4 -4
- package/src/Link/Link.tsx +2 -5
- package/src/List/List.tsx +4 -4
- package/src/ListItem/ListItem.tsx +6 -6
- package/src/ListItem/ListItemText.tsx +6 -7
- package/src/Menu/Menu.tsx +5 -5
- package/src/NavRail/NavRail.story.tsx +190 -0
- package/src/NavRail/NavRailItem.tsx +176 -0
- package/src/NavRail/index.ts +1 -0
- package/src/NotchedOutline/NotchedOutline.tsx +4 -5
- package/src/NotchedOutline/styledComponents.ts +2 -1
- package/src/Paper/Paper.story.tsx +3 -3
- package/src/Paper/Paper.tsx +3 -3
- package/src/ProgressSpinner/ProgressSpinner.tsx +9 -9
- package/src/RadioButton/RadioButton.story.tsx +2 -2
- package/src/RadioButton/RadioButton.tsx +1 -1
- package/src/RadioButton/RadioButtonIcon.tsx +4 -5
- package/src/Ripple/Ripple.story.tsx +1 -1
- package/src/Ripple/RippleBox.tsx +1 -2
- package/src/Ripple/useRippleHandlers.ts +3 -3
- package/src/Ripple/useRippleSurface.ts +77 -61
- package/src/Select/Select.tsx +11 -6
- package/src/Select/SelectIcon.tsx +3 -4
- package/src/Select/context.ts +2 -1
- package/src/Select/defaultRender.ts +2 -1
- package/src/Select/styledComponents.tsx +13 -11
- package/src/SelectionControl/SelectionControlLabel.tsx +4 -8
- package/src/SelectionControl/SelectionControlText.tsx +3 -3
- package/src/Skeleton/DelayAppearance.tsx +2 -2
- package/src/Skeleton/Skeleton.story.tsx +2 -2
- package/src/Skeleton/Skeleton.tsx +6 -6
- package/src/Snackbar/Snackbar.tsx +6 -6
- package/src/Snackbar/Stack.tsx +6 -9
- package/src/Snackbar/useSnackbarAnimation.ts +4 -3
- package/src/Switch/Switch.tsx +6 -10
- package/src/Switch/styledComponents.tsx +2 -2
- package/src/Tab/Tab.tsx +3 -7
- package/src/TabIndicator/TabIndicator.tsx +2 -1
- package/src/TabIndicator/context.ts +2 -1
- package/src/Table/TableRow.tsx +1 -1
- package/src/Text/LoremIpsum.tsx +1 -1
- package/src/Text/Text.story.tsx +42 -7
- package/src/Text/Text.tsx +25 -5
- package/src/TextField/FilledContainer.tsx +3 -3
- package/src/TextField/HelperText.tsx +5 -5
- package/src/TextField/IconContainer.tsx +2 -3
- package/src/TextField/Input.tsx +5 -4
- package/src/TextField/OutlinedContainer.tsx +3 -3
- package/src/TextField/TextField.tsx +4 -4
- package/src/ThemeExplorer/ThemeBuilder.story.tsx +1 -159
- package/src/ThemeExplorer/ThemeBuilder.tsx +198 -0
- package/src/ThemeExplorer/ThemeColors.tsx +1 -1
- package/src/ThemeExplorer/components.tsx +24 -16
- package/src/ThemeExplorer/index.ts +1 -0
- package/src/ThemeExplorer/useDeferredColor.tsx +2 -3
- package/src/ThemeExplorer/useLocalStorageCachedState.ts +2 -2
- package/src/Tooltip/Tooltip.story.tsx +2 -2
- package/src/Tooltip/Tooltip.tsx +9 -11
- package/src/color.ts +26 -5
- package/src/index.ts +2 -1
- package/src/motion.ts +7 -0
- package/src/theme/theme.ts +51 -37
- package/build/esm/ColorMode/ColorModeProvider.d.ts +0 -7
- package/build/esm/ColorMode/ColorModeProvider.js +0 -92
- package/build/esm/ColorMode/ColorModeProvider.js.map +0 -1
- package/build/esm/ColorMode/color-mode.d.ts +0 -8
- package/build/esm/ColorMode/color-mode.js +0 -11
- package/build/esm/ColorMode/color-mode.js.map +0 -1
- package/build/esm/ColorMode/color-vars.d.ts +0 -4
- package/build/esm/ColorMode/color-vars.js +0 -58
- package/build/esm/ColorMode/color-vars.js.map +0 -1
- package/build/esm/ColorMode/constants.d.ts +0 -3
- package/build/esm/ColorMode/constants.js +0 -5
- package/build/esm/ColorMode/constants.js.map +0 -1
- package/build/esm/ColorMode/index.d.ts +0 -4
- package/build/esm/ColorMode/index.js +0 -5
- package/build/esm/ColorMode/index.js.map +0 -1
- package/build/esm/ListItem/context.d.ts +0 -7
- package/build/esm/ListItem/context.js +0 -10
- package/build/esm/ListItem/context.js.map +0 -1
- package/build/tsconfig.tsbuildinfo +0 -1
- package/src/ColorMode/ColorModeProvider.tsx +0 -97
- package/src/ColorMode/color-mode.ts +0 -20
- package/src/ColorMode/color-vars.ts +0 -56
- package/src/ColorMode/constants.ts +0 -5
- package/src/ColorMode/index.ts +0 -4
- package/src/ColorMode/tests/color-vars.test.ts +0 -9
- package/src/ThemeExplorer/ThemeExplorer.story.tsx +0 -43
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { ElementType, ReactNode } from 'react';
|
|
2
|
+
import type { BoxProps } from '../Box';
|
|
3
|
+
import type { TextProps } from '../Text';
|
|
4
|
+
export interface NavRailItemProps extends Omit<BoxProps, 'color'> {
|
|
5
|
+
as?: ElementType<any>;
|
|
6
|
+
children?: ReactNode;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
selected?: boolean;
|
|
9
|
+
color?: string;
|
|
10
|
+
}
|
|
11
|
+
export declare type NavRailIndicatorProps = BoxProps;
|
|
12
|
+
export declare const NavRailIndicator: import("react").ForwardRefExoticComponent<Pick<NavRailIndicatorProps, "translate" | "hidden" | keyof import("../Box").BaseProps | keyof import("styled-system").SpaceProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, string | number | symbol> | keyof import("styled-system").LayoutProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | keyof import("styled-system").TypographyProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | keyof import("styled-system").ColorProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, string | number | symbol> | keyof import("styled-system").FlexboxProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | keyof import("styled-system").BorderProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, import("csstype").Property.Border<import("styled-system").TLengthStyledSystem>> | keyof import("styled-system").GridProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | keyof import("styled-system").BackgroundProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, import("csstype").Property.Background<import("styled-system").TLengthStyledSystem>> | keyof import("styled-system").PositionProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | keyof import("styled-system").ShadowProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "id" | "lang" | "placeholder" | "slot" | "spellCheck" | "style" | "tabIndex" | "title" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "key"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
13
|
+
export declare type NavRailLabelProps = TextProps;
|
|
14
|
+
export declare const NavRailLabel: import("react").ForwardRefExoticComponent<Pick<TextProps, "boxShadow" | "fontWeight" | "zIndex" | "alignContent" | "alignItems" | "alignSelf" | "backgroundColor" | "backgroundImage" | "backgroundPosition" | "backgroundRepeat" | "backgroundSize" | "borderBottomColor" | "borderBottomLeftRadius" | "borderBottomRightRadius" | "borderBottomStyle" | "borderBottomWidth" | "borderLeftColor" | "borderLeftStyle" | "borderLeftWidth" | "borderRightColor" | "borderRightStyle" | "borderRightWidth" | "borderTopColor" | "borderTopLeftRadius" | "borderTopRightRadius" | "borderTopStyle" | "borderTopWidth" | "bottom" | "color" | "display" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "fontFamily" | "fontSize" | "fontStyle" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "height" | "justifyContent" | "justifyItems" | "justifySelf" | "left" | "letterSpacing" | "lineHeight" | "marginBottom" | "marginLeft" | "marginRight" | "marginTop" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "opacity" | "order" | "overflowX" | "overflowY" | "paddingBottom" | "paddingLeft" | "paddingRight" | "paddingTop" | "position" | "right" | "textAlign" | "textShadow" | "top" | "translate" | "verticalAlign" | "width" | "background" | "border" | "borderBottom" | "borderColor" | "borderLeft" | "borderRadius" | "borderRight" | "borderStyle" | "borderTop" | "borderWidth" | "flex" | "gridArea" | "gridColumn" | "gridRow" | "margin" | "overflow" | "padding" | "bg" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "marginX" | "my" | "marginY" | "p" | "pt" | "pr" | "pb" | "pl" | "px" | "paddingX" | "py" | "paddingY" | "variant" | "size" | "hidden" | "as" | "sx" | "__css" | "tx" | "theme" | "borderX" | "borderY" | "gridGap" | "gridColumnGap" | "gridRowGap" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "id" | "lang" | "placeholder" | "slot" | "spellCheck" | "style" | "tabIndex" | "title" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "key"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
15
|
+
export declare const NavRailItem: import("react").ForwardRefExoticComponent<Pick<NavRailItemProps, "boxShadow" | "fontWeight" | "zIndex" | "alignContent" | "alignItems" | "alignSelf" | "backgroundColor" | "backgroundImage" | "backgroundPosition" | "backgroundRepeat" | "backgroundSize" | "borderBottomColor" | "borderBottomLeftRadius" | "borderBottomRightRadius" | "borderBottomStyle" | "borderBottomWidth" | "borderLeftColor" | "borderLeftStyle" | "borderLeftWidth" | "borderRightColor" | "borderRightStyle" | "borderRightWidth" | "borderTopColor" | "borderTopLeftRadius" | "borderTopRightRadius" | "borderTopStyle" | "borderTopWidth" | "bottom" | "color" | "display" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "fontFamily" | "fontSize" | "fontStyle" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "height" | "justifyContent" | "justifyItems" | "justifySelf" | "left" | "letterSpacing" | "lineHeight" | "marginBottom" | "marginLeft" | "marginRight" | "marginTop" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "opacity" | "order" | "overflowX" | "overflowY" | "paddingBottom" | "paddingLeft" | "paddingRight" | "paddingTop" | "position" | "right" | "textAlign" | "textShadow" | "top" | "translate" | "verticalAlign" | "width" | "background" | "border" | "borderBottom" | "borderColor" | "borderLeft" | "borderRadius" | "borderRight" | "borderStyle" | "borderTop" | "borderWidth" | "flex" | "gridArea" | "gridColumn" | "gridRow" | "margin" | "overflow" | "padding" | "bg" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "marginX" | "my" | "marginY" | "p" | "pt" | "pr" | "pb" | "pl" | "px" | "paddingX" | "py" | "paddingY" | "variant" | "size" | "hidden" | "as" | "sx" | "__css" | "tx" | "theme" | "borderX" | "borderY" | "gridGap" | "gridColumnGap" | "gridRowGap" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "id" | "lang" | "placeholder" | "slot" | "spellCheck" | "style" | "tabIndex" | "title" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "key" | "disabled" | "selected"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
+
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
3
|
+
var _excluded = ["as", "children", "__css"],
|
|
4
|
+
_excluded2 = ["as", "children", "__css"],
|
|
5
|
+
_excluded3 = ["as", "children", "color", "selected", "disabled", "style", "onKeyDown", "onPointerDown", "__css"];
|
|
6
|
+
import { forwardRef, useMemo } from 'react';
|
|
7
|
+
import { get } from 'styled-system';
|
|
8
|
+
import { Box } from '../Box';
|
|
9
|
+
import { useTheme } from '../theme';
|
|
10
|
+
import { Text } from '../Text';
|
|
11
|
+
import { useRippleSurface } from '../Ripple';
|
|
12
|
+
import { EASING_STANDARD } from '../motion';
|
|
13
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
14
|
+
export var NavRailIndicator = /*#__PURE__*/forwardRef(function NavRailIndicator(props, forwardedRef) {
|
|
15
|
+
var _props$as = props.as,
|
|
16
|
+
as = _props$as === void 0 ? 'div' : _props$as,
|
|
17
|
+
children = props.children,
|
|
18
|
+
__css = props.__css,
|
|
19
|
+
otherProps = _objectWithoutProperties(props, _excluded);
|
|
20
|
+
|
|
21
|
+
return /*#__PURE__*/_jsx(Box, _extends(_extends({
|
|
22
|
+
color: "currentColor",
|
|
23
|
+
ref: forwardedRef,
|
|
24
|
+
as: as,
|
|
25
|
+
"data-nav-rail-item-indicator": ""
|
|
26
|
+
}, otherProps), {}, {
|
|
27
|
+
__css: _extends({
|
|
28
|
+
width: '100%',
|
|
29
|
+
height: '100%',
|
|
30
|
+
maxWidth: "3.5rem",
|
|
31
|
+
maxHeight: "3.5rem",
|
|
32
|
+
borderRadius: 'full',
|
|
33
|
+
bg: 'var(--indicator-background-color)',
|
|
34
|
+
display: 'flex',
|
|
35
|
+
alignItems: 'center',
|
|
36
|
+
justifyContent: 'center',
|
|
37
|
+
minHeight: "2rem",
|
|
38
|
+
transition: "background-color .2s ".concat(EASING_STANDARD),
|
|
39
|
+
pointerEvents: 'none'
|
|
40
|
+
}, __css),
|
|
41
|
+
children: children
|
|
42
|
+
}));
|
|
43
|
+
});
|
|
44
|
+
export var NavRailLabel = /*#__PURE__*/forwardRef(function NavRailLabel(props, forwardedRef) {
|
|
45
|
+
var _props$as2 = props.as,
|
|
46
|
+
as = _props$as2 === void 0 ? 'div' : _props$as2,
|
|
47
|
+
children = props.children,
|
|
48
|
+
__css = props.__css,
|
|
49
|
+
otherProps = _objectWithoutProperties(props, _excluded2);
|
|
50
|
+
|
|
51
|
+
return /*#__PURE__*/_jsx(Text, _extends(_extends({
|
|
52
|
+
ref: forwardedRef,
|
|
53
|
+
as: as,
|
|
54
|
+
variant: "label-small",
|
|
55
|
+
lineHeight: 1
|
|
56
|
+
}, otherProps), {}, {
|
|
57
|
+
__css: _extends({
|
|
58
|
+
pt: "0.25rem",
|
|
59
|
+
pb: "0.75rem",
|
|
60
|
+
color: 'inherit',
|
|
61
|
+
pointerEvents: 'none'
|
|
62
|
+
}, __css),
|
|
63
|
+
children: children
|
|
64
|
+
}));
|
|
65
|
+
});
|
|
66
|
+
export var NavRailItem = /*#__PURE__*/forwardRef(function NavRailItem(props, forwardedRef) {
|
|
67
|
+
var _props$as3 = props.as,
|
|
68
|
+
as = _props$as3 === void 0 ? 'button' : _props$as3,
|
|
69
|
+
children = props.children,
|
|
70
|
+
_props$color = props.color,
|
|
71
|
+
color = _props$color === void 0 ? 'primary-container' : _props$color,
|
|
72
|
+
_props$selected = props.selected,
|
|
73
|
+
selected = _props$selected === void 0 ? false : _props$selected,
|
|
74
|
+
_props$disabled = props.disabled,
|
|
75
|
+
disabled = _props$disabled === void 0 ? false : _props$disabled,
|
|
76
|
+
style = props.style,
|
|
77
|
+
onKeyDown = props.onKeyDown,
|
|
78
|
+
onPointerDown = props.onPointerDown,
|
|
79
|
+
__css = props.__css,
|
|
80
|
+
otherProps = _objectWithoutProperties(props, _excluded3);
|
|
81
|
+
|
|
82
|
+
var theme = useTheme();
|
|
83
|
+
var baseOpacity = 0,
|
|
84
|
+
hoverOpacity = 0.04,
|
|
85
|
+
focusOpacity = 0.12,
|
|
86
|
+
pressedOpacity = 0.12;
|
|
87
|
+
var ripple = useRippleSurface({
|
|
88
|
+
rippleColor: 'currentColor',
|
|
89
|
+
onKeyDown: onKeyDown,
|
|
90
|
+
onPointerDown: onPointerDown,
|
|
91
|
+
baseOpacity: baseOpacity,
|
|
92
|
+
hoverOpacity: hoverOpacity,
|
|
93
|
+
focusOpacity: focusOpacity,
|
|
94
|
+
pressedOpacity: pressedOpacity
|
|
95
|
+
}); // Apply ripple from nav item to nav indicator
|
|
96
|
+
|
|
97
|
+
var rippleCss = useMemo(function () {
|
|
98
|
+
var ret = {};
|
|
99
|
+
var keys = Object.keys(ripple.__css);
|
|
100
|
+
|
|
101
|
+
for (var _i = 0, _keys = keys; _i < _keys.length; _i++) {
|
|
102
|
+
var key = _keys[_i];
|
|
103
|
+
|
|
104
|
+
if (!key.startsWith('&')) {
|
|
105
|
+
ret['& [data-nav-rail-item-indicator]'] = ret['& [data-nav-rail-item-indicator]'] || {};
|
|
106
|
+
ret['& [data-nav-rail-item-indicator]'][key] = ripple.__css[key];
|
|
107
|
+
continue;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
var newKey = key.replace(/(.+?)::(before|after)/g, '$1 [data-nav-rail-item-indicator]::$2');
|
|
111
|
+
ret[newKey] = ripple.__css[key];
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
return ret;
|
|
115
|
+
}, [ripple.__css]);
|
|
116
|
+
return /*#__PURE__*/_jsx(Box, _extends(_extends({
|
|
117
|
+
ref: forwardedRef,
|
|
118
|
+
as: as
|
|
119
|
+
}, otherProps), {}, {
|
|
120
|
+
onPointerDown: ripple.onPointerDown,
|
|
121
|
+
onKeyDown: ripple.onKeyDown,
|
|
122
|
+
"aria-pressed": selected,
|
|
123
|
+
type: "button",
|
|
124
|
+
style: _extends(_extends({}, ripple.style), style),
|
|
125
|
+
disabled: disabled,
|
|
126
|
+
__css: _extends(_extends({
|
|
127
|
+
display: 'flex',
|
|
128
|
+
flexDirection: 'column',
|
|
129
|
+
alignItems: 'center',
|
|
130
|
+
transition: "color .2s ".concat(EASING_STANDARD),
|
|
131
|
+
color: selected ? "on.".concat(color) : 'on.surface-variant',
|
|
132
|
+
'--indicator-background-color': selected ? get(theme, "colors.".concat(color)) : 'transparent',
|
|
133
|
+
border: 'none',
|
|
134
|
+
':focus': {
|
|
135
|
+
outline: 'none'
|
|
136
|
+
},
|
|
137
|
+
backgroundColor: 'transparent',
|
|
138
|
+
margin: 0,
|
|
139
|
+
padding: 0,
|
|
140
|
+
px: "0.75rem",
|
|
141
|
+
minHeight: "3.75rem",
|
|
142
|
+
height: "3.75rem",
|
|
143
|
+
cursor: 'pointer',
|
|
144
|
+
textDecoration: 'none',
|
|
145
|
+
WebkitTapHighlightColor: 'transparent'
|
|
146
|
+
}, rippleCss), __css),
|
|
147
|
+
children: children
|
|
148
|
+
}));
|
|
149
|
+
});
|
|
150
|
+
//# sourceMappingURL=NavRailItem.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NavRailItem.js","names":["forwardRef","useMemo","get","Box","useTheme","Text","useRippleSurface","EASING_STANDARD","NavRailIndicator","props","forwardedRef","as","children","__css","otherProps","width","height","maxWidth","maxHeight","borderRadius","bg","display","alignItems","justifyContent","minHeight","transition","pointerEvents","NavRailLabel","pt","pb","color","NavRailItem","selected","disabled","style","onKeyDown","onPointerDown","theme","baseOpacity","hoverOpacity","focusOpacity","pressedOpacity","ripple","rippleColor","rippleCss","ret","keys","Object","key","startsWith","newKey","replace","flexDirection","border","outline","backgroundColor","margin","padding","px","cursor","textDecoration","WebkitTapHighlightColor"],"sources":["../../../src/NavRail/NavRailItem.tsx"],"sourcesContent":["import type { ElementType, ReactNode } from 'react';\nimport { forwardRef, useMemo } from 'react';\nimport { rem } from 'polished';\nimport { get } from 'styled-system';\n\nimport type { BoxProps, SxStyleProp } from '../Box';\nimport { Box } from '../Box';\nimport { useTheme } from '../theme';\nimport { Text } from '../Text';\nimport type { TextProps } from '../Text';\nimport { useRippleSurface } from '../Ripple';\nimport { EASING_STANDARD } from '../motion';\n\nexport interface NavRailItemProps extends Omit<BoxProps, 'color'> {\n as?: ElementType<any>;\n children?: ReactNode;\n disabled?: boolean;\n selected?: boolean;\n color?: string;\n}\n\nexport type NavRailIndicatorProps = BoxProps;\n\nexport const NavRailIndicator = forwardRef<\n HTMLDivElement,\n NavRailIndicatorProps\n>(function NavRailIndicator(props, forwardedRef) {\n const { as = 'div', children, __css, ...otherProps } = props;\n\n return (\n <Box\n color=\"currentColor\"\n ref={forwardedRef}\n as={as}\n data-nav-rail-item-indicator=\"\"\n {...otherProps}\n __css={{\n width: '100%',\n height: '100%',\n maxWidth: rem(56),\n maxHeight: rem(56),\n borderRadius: 'full',\n bg: 'var(--indicator-background-color)',\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'center',\n minHeight: rem(32),\n transition: `background-color .2s ${EASING_STANDARD}`,\n pointerEvents: 'none',\n ...__css,\n }}\n >\n {children}\n </Box>\n );\n});\n\nexport type NavRailLabelProps = TextProps;\n\nexport const NavRailLabel = forwardRef<HTMLDivElement, NavRailLabelProps>(\n function NavRailLabel(props, forwardedRef) {\n const { as = 'div', children, __css, ...otherProps } = props;\n\n return (\n <Text\n ref={forwardedRef}\n as={as}\n variant=\"label-small\"\n lineHeight={1}\n {...otherProps}\n __css={{\n pt: rem(4),\n pb: rem(12),\n color: 'inherit',\n pointerEvents: 'none',\n ...__css,\n }}\n >\n {children}\n </Text>\n );\n }\n);\n\nexport const NavRailItem = forwardRef<HTMLDivElement, NavRailItemProps>(\n function NavRailItem(props, forwardedRef) {\n const {\n as = 'button',\n children,\n color = 'primary-container',\n selected = false,\n disabled = false,\n style,\n onKeyDown,\n onPointerDown,\n __css,\n ...otherProps\n } = props;\n const theme = useTheme();\n const baseOpacity = 0,\n hoverOpacity = 0.04,\n focusOpacity = 0.12,\n pressedOpacity = 0.12;\n const ripple = useRippleSurface({\n rippleColor: 'currentColor',\n onKeyDown,\n onPointerDown,\n baseOpacity,\n hoverOpacity,\n focusOpacity,\n pressedOpacity,\n });\n\n // Apply ripple from nav item to nav indicator\n const rippleCss = useMemo(() => {\n const ret: SxStyleProp = {};\n const keys = Object.keys(ripple.__css);\n for (const key of keys) {\n if (!key.startsWith('&')) {\n ret['& [data-nav-rail-item-indicator]'] =\n ret['& [data-nav-rail-item-indicator]'] || {};\n ret['& [data-nav-rail-item-indicator]'][key] = ripple.__css[key];\n continue;\n }\n\n const newKey = key.replace(\n /(.+?)::(before|after)/g,\n '$1 [data-nav-rail-item-indicator]::$2'\n );\n ret[newKey] = ripple.__css[key];\n }\n return ret;\n }, [ripple.__css]);\n\n return (\n <Box\n ref={forwardedRef}\n as={as}\n {...otherProps}\n onPointerDown={ripple.onPointerDown}\n onKeyDown={ripple.onKeyDown}\n aria-pressed={selected}\n type=\"button\"\n style={{ ...ripple.style, ...style }}\n disabled={disabled}\n __css={{\n display: 'flex',\n flexDirection: 'column',\n alignItems: 'center',\n transition: `color .2s ${EASING_STANDARD}`,\n color: selected ? `on.${color}` : 'on.surface-variant',\n '--indicator-background-color': selected\n ? get(theme, `colors.${color}`)\n : 'transparent',\n border: 'none',\n ':focus': {\n outline: 'none',\n },\n backgroundColor: 'transparent',\n margin: 0,\n padding: 0,\n px: rem(12),\n minHeight: rem(60),\n height: rem(60),\n cursor: 'pointer',\n textDecoration: 'none',\n WebkitTapHighlightColor: 'transparent',\n ...rippleCss,\n ...__css,\n }}\n >\n {children}\n </Box>\n );\n }\n);\n"],"mappings":";;;;;AACA,SAASA,UAAT,EAAqBC,OAArB,QAAoC,OAApC;AAEA,SAASC,GAAT,QAAoB,eAApB;AAGA,SAASC,GAAT,QAAoB,QAApB;AACA,SAASC,QAAT,QAAyB,UAAzB;AACA,SAASC,IAAT,QAAqB,SAArB;AAEA,SAASC,gBAAT,QAAiC,WAAjC;AACA,SAASC,eAAT,QAAgC,WAAhC;;AAYA,OAAO,IAAMC,gBAAgB,gBAAGR,UAAU,CAGxC,SAASQ,gBAAT,CAA0BC,KAA1B,EAAiCC,YAAjC,EAA+C;EAC/C,gBAAuDD,KAAvD,CAAQE,EAAR;EAAA,IAAQA,EAAR,0BAAa,KAAb;EAAA,IAAoBC,QAApB,GAAuDH,KAAvD,CAAoBG,QAApB;EAAA,IAA8BC,KAA9B,GAAuDJ,KAAvD,CAA8BI,KAA9B;EAAA,IAAwCC,UAAxC,4BAAuDL,KAAvD;;EAEA,oBACE,KAAC,GAAD;IACE,KAAK,EAAC,cADR;IAEE,GAAG,EAAEC,YAFP;IAGE,EAAE,EAAEC,EAHN;IAIE,gCAA6B;EAJ/B,GAKMG,UALN;IAME,KAAK;MACHC,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|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './NavRailItem';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../../src/NavRail/index.ts"],"sourcesContent":["export * from './NavRailItem';\n"],"mappings":"AAAA,cAAc,eAAd"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
export interface NotchedOutlineProps extends
|
|
1
|
+
import type { HTMLAttributes, ReactNode } from 'react';
|
|
2
|
+
export interface NotchedOutlineProps extends HTMLAttributes<HTMLDivElement> {
|
|
3
3
|
borderColor: string;
|
|
4
4
|
borderStyle?: string;
|
|
5
5
|
borderWidth: number;
|
|
@@ -8,7 +8,7 @@ export interface NotchedOutlineProps extends React.HTMLAttributes<HTMLDivElement
|
|
|
8
8
|
notchWidth: number;
|
|
9
9
|
notchActive?: boolean;
|
|
10
10
|
forceActive?: boolean;
|
|
11
|
-
label?:
|
|
12
|
-
children?:
|
|
11
|
+
label?: ReactNode;
|
|
12
|
+
children?: ReactNode;
|
|
13
13
|
}
|
|
14
|
-
export declare const NotchedOutline:
|
|
14
|
+
export declare const NotchedOutline: import("react").ForwardRefExoticComponent<NotchedOutlineProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
3
|
+
var _excluded = ["borderRadius", "borderColor", "borderWidth", "borderStyle", "notchStart", "notchWidth", "notchActive", "forceActive", "children", "label"];
|
|
3
4
|
import { forwardRef } from 'react';
|
|
4
|
-
import * as React from 'react';
|
|
5
5
|
import { rem } from 'polished';
|
|
6
6
|
import { NotchedOutlineProvider } from './context';
|
|
7
7
|
import { useTheme } from '../theme';
|
|
@@ -27,7 +27,7 @@ export var NotchedOutline = /*#__PURE__*/forwardRef(function NotchedOutline(prop
|
|
|
27
27
|
forceActive = _props$forceActive === void 0 ? false : _props$forceActive,
|
|
28
28
|
children = props.children,
|
|
29
29
|
label = props.label,
|
|
30
|
-
otherProps = _objectWithoutProperties(props,
|
|
30
|
+
otherProps = _objectWithoutProperties(props, _excluded); // Minimum notch start position that makes sense. Otherwise it will mess up with the border/border radii
|
|
31
31
|
|
|
32
32
|
|
|
33
33
|
var MIN_NOTCH_POSX = (props.borderRadius || 0) + NOTCH_PADDING;
|
|
@@ -37,9 +37,9 @@ export var NotchedOutline = /*#__PURE__*/forwardRef(function NotchedOutline(prop
|
|
|
37
37
|
value: {
|
|
38
38
|
notchStart: notchStart
|
|
39
39
|
},
|
|
40
|
-
children: [children, /*#__PURE__*/_jsxs(InnerContainer, _extends({
|
|
40
|
+
children: [children, /*#__PURE__*/_jsxs(InnerContainer, _extends(_extends({
|
|
41
41
|
ref: forwardedRef
|
|
42
|
-
}, otherProps, {
|
|
42
|
+
}, otherProps), {}, {
|
|
43
43
|
color: borderColor,
|
|
44
44
|
theme: theme,
|
|
45
45
|
borderRadius: borderRadius,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"NotchedOutline.js","names":["forwardRef","rem","NotchedOutlineProvider","useTheme","NOTCH_PADDING","InnerContainer","NotchedOutline","props","forwardedRef","borderRadius","borderColor","borderWidth","borderStyle","notchStart","notchWidth","notchActive","forceActive","children","label","otherProps","MIN_NOTCH_POSX","theme","Math","max","width"],"sources":["../../../src/NotchedOutline/NotchedOutline.tsx"],"sourcesContent":["import type { HTMLAttributes, ReactNode } from 'react';\nimport { forwardRef } from 'react';\nimport { rem } from 'polished';\n\nimport { NotchedOutlineProvider } from './context';\nimport { useTheme } from '../theme';\nimport { NOTCH_PADDING, InnerContainer } from './styledComponents';\n\nexport interface NotchedOutlineProps extends HTMLAttributes<HTMLDivElement> {\n borderColor: string;\n borderStyle?: string;\n borderWidth: number;\n borderRadius?: number;\n notchStart?: number;\n notchWidth: number;\n notchActive?: boolean;\n forceActive?: boolean;\n label?: ReactNode;\n children?: ReactNode;\n}\n\nexport const NotchedOutline = forwardRef<HTMLDivElement, NotchedOutlineProps>(\n function NotchedOutline(props, forwardedRef) {\n let {\n /* eslint-disable prefer-const */\n borderRadius = 0,\n borderColor = 'primary',\n borderWidth = 0,\n borderStyle = 'solid',\n notchStart = 0,\n notchWidth = 0,\n notchActive = false,\n forceActive = false,\n children,\n label,\n ...otherProps\n /* eslint-enable prefer-const */\n } = props;\n\n // Minimum notch start position that makes sense. Otherwise it will mess up with the border/border radii\n const MIN_NOTCH_POSX = (props.borderRadius || 0) + NOTCH_PADDING;\n\n const theme = useTheme();\n\n notchStart = Math.max(MIN_NOTCH_POSX, notchStart);\n\n return (\n <NotchedOutlineProvider value={{ notchStart }}>\n {children}\n <InnerContainer\n ref={forwardedRef}\n {...otherProps}\n color={borderColor}\n theme={theme}\n borderRadius={borderRadius}\n borderWidth={borderWidth}\n borderWidthWhenFocused={borderWidth * 2}\n borderStyle={borderStyle}\n notchStart={notchStart}\n forceActive={forceActive}\n >\n <div data-notch-outline-item=\"start\" />\n {label && (\n <div\n data-notch-outline-item=\"middle\"\n style={{\n width: notchActive\n ? `calc(${notchWidth}px + ${rem(NOTCH_PADDING * 2)})`\n : 0,\n }}\n >\n {label}\n </div>\n )}\n <div data-notch-outline-item=\"end\" />\n </InnerContainer>\n </NotchedOutlineProvider>\n );\n }\n);\n"],"mappings":";;;AACA,SAASA,UAAT,QAA2B,OAA3B;AACA,SAASC,GAAT,QAAoB,UAApB;AAEA,SAASC,sBAAT,QAAuC,WAAvC;AACA,SAASC,QAAT,QAAyB,UAAzB;AACA,SAASC,aAAT,EAAwBC,cAAxB,QAA8C,oBAA9C;;;AAeA,OAAO,IAAMC,cAAc,gBAAGN,UAAU,CACtC,SAASM,cAAT,CAAwBC,KAAxB,EAA+BC,YAA/B,EAA6C;EAC3C,0BAcID,KAdJ,CAEEE,YAFF;EAAA,IAEEA,YAFF,oCAEiB,CAFjB;EAAA,yBAcIF,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1B;QAEE,KAAK,EAAE;UACLM,KAAK,EAAET,WAAW,kBACND,UADM,kBACYb,GAAG,CAACG,aAAa,GAAG,CAAjB,CADf,SAEd;QAHC,CAFT;QAAA,UAQGc;MARH,EAdJ,eAyBE;QAAK,2BAAwB;MAA7B,EAzBF;IAAA,GAFF;EAAA,EADF;AAgCD,CAzDqC,CAAjC"}
|
|
File without changes
|
|
File without changes
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"context.js","names":["createContext","useContext","notchedoutlineContext","NotchedOutlineProvider","Provider","useNotchedOutlineContext"],"sources":["../../../src/NotchedOutline/context.ts"],"sourcesContent":["import { createContext, useContext } from 'react';\n\n// NotchedOutline Component\nexport interface NotchedOutlineContextProps {\n notchStart: number;\n}\n\nconst notchedoutlineContext = createContext<NotchedOutlineContextProps | null>(\n null\n);\nexport const { Provider: NotchedOutlineProvider } = notchedoutlineContext;\nexport const useNotchedOutlineContext = () => useContext(notchedoutlineContext);\n"],"mappings":"AAAA,SAASA,aAAT,EAAwBC,UAAxB,QAA0C,OAA1C,C,CAEA;;AAKA,IAAMC,qBAAqB,gBAAGF,aAAa,CACzC,IADyC,CAA3C;AAGO,IAAkBG,sBAAlB,GAA6CD,qBAA7C,CAAQE,QAAR;;AACP,OAAO,IAAMC,wBAAwB,GAAG,SAA3BA,wBAA2B;EAAA,OAAMJ,UAAU,CAACC,qBAAD,CAAhB;AAAA,CAAjC"}
|
|
File without changes
|
|
File without changes
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../../src/NotchedOutline/index.ts"],"sourcesContent":["export * from './NotchedOutline';\n"],"mappings":"AAAA,cAAc,kBAAd"}
|
|
@@ -84,33 +84,6 @@ export declare const InnerContainer: import("@emotion/styled").StyledComponent<{
|
|
|
84
84
|
full: string;
|
|
85
85
|
circle: string;
|
|
86
86
|
};
|
|
87
|
-
shadowsOriginal: {
|
|
88
|
-
0: string;
|
|
89
|
-
1: string;
|
|
90
|
-
2: string;
|
|
91
|
-
3: string;
|
|
92
|
-
4: string;
|
|
93
|
-
5: string;
|
|
94
|
-
6: string;
|
|
95
|
-
7: string;
|
|
96
|
-
8: string;
|
|
97
|
-
9: string;
|
|
98
|
-
10: string;
|
|
99
|
-
11: string;
|
|
100
|
-
12: string;
|
|
101
|
-
13: string;
|
|
102
|
-
14: string;
|
|
103
|
-
15: string;
|
|
104
|
-
16: string;
|
|
105
|
-
17: string;
|
|
106
|
-
18: string;
|
|
107
|
-
19: string;
|
|
108
|
-
20: string;
|
|
109
|
-
21: string;
|
|
110
|
-
22: string;
|
|
111
|
-
23: string;
|
|
112
|
-
24: string;
|
|
113
|
-
};
|
|
114
87
|
shadows: {
|
|
115
88
|
0: string;
|
|
116
89
|
1: string;
|
|
@@ -122,6 +95,8 @@ export declare const InnerContainer: import("@emotion/styled").StyledComponent<{
|
|
|
122
95
|
fonts: {
|
|
123
96
|
body: string;
|
|
124
97
|
heading: string;
|
|
98
|
+
brand: string;
|
|
99
|
+
plain: string;
|
|
125
100
|
monospace: string;
|
|
126
101
|
};
|
|
127
102
|
fontSizes: {
|
|
@@ -171,6 +146,111 @@ export declare const InnerContainer: import("@emotion/styled").StyledComponent<{
|
|
|
171
146
|
fontFamily: string;
|
|
172
147
|
lineHeight: string;
|
|
173
148
|
};
|
|
149
|
+
'display-large': {
|
|
150
|
+
fontFamily: "plain" | "brand";
|
|
151
|
+
lineHeight: string;
|
|
152
|
+
fontSize: string;
|
|
153
|
+
letterSpacing: string;
|
|
154
|
+
fontWeight: number;
|
|
155
|
+
};
|
|
156
|
+
'display-medium': {
|
|
157
|
+
fontFamily: "plain" | "brand";
|
|
158
|
+
lineHeight: string;
|
|
159
|
+
fontSize: string;
|
|
160
|
+
letterSpacing: string;
|
|
161
|
+
fontWeight: number;
|
|
162
|
+
};
|
|
163
|
+
'display-small': {
|
|
164
|
+
fontFamily: "plain" | "brand";
|
|
165
|
+
lineHeight: string;
|
|
166
|
+
fontSize: string;
|
|
167
|
+
letterSpacing: string;
|
|
168
|
+
fontWeight: number;
|
|
169
|
+
};
|
|
170
|
+
'headline-large': {
|
|
171
|
+
fontFamily: "plain" | "brand";
|
|
172
|
+
lineHeight: string;
|
|
173
|
+
fontSize: string;
|
|
174
|
+
letterSpacing: string;
|
|
175
|
+
fontWeight: number;
|
|
176
|
+
};
|
|
177
|
+
'headline-medium': {
|
|
178
|
+
fontFamily: "plain" | "brand";
|
|
179
|
+
lineHeight: string;
|
|
180
|
+
fontSize: string;
|
|
181
|
+
letterSpacing: string;
|
|
182
|
+
fontWeight: number;
|
|
183
|
+
};
|
|
184
|
+
'headline-small': {
|
|
185
|
+
fontFamily: "plain" | "brand";
|
|
186
|
+
lineHeight: string;
|
|
187
|
+
fontSize: string;
|
|
188
|
+
letterSpacing: string;
|
|
189
|
+
fontWeight: number;
|
|
190
|
+
};
|
|
191
|
+
'title-large': {
|
|
192
|
+
fontFamily: "plain" | "brand";
|
|
193
|
+
lineHeight: string;
|
|
194
|
+
fontSize: string;
|
|
195
|
+
letterSpacing: string;
|
|
196
|
+
fontWeight: number;
|
|
197
|
+
};
|
|
198
|
+
'title-medium': {
|
|
199
|
+
fontFamily: "plain" | "brand";
|
|
200
|
+
lineHeight: string;
|
|
201
|
+
fontSize: string;
|
|
202
|
+
letterSpacing: string;
|
|
203
|
+
fontWeight: number;
|
|
204
|
+
};
|
|
205
|
+
'title-small': {
|
|
206
|
+
fontFamily: "plain" | "brand";
|
|
207
|
+
lineHeight: string;
|
|
208
|
+
fontSize: string;
|
|
209
|
+
letterSpacing: string;
|
|
210
|
+
fontWeight: number;
|
|
211
|
+
};
|
|
212
|
+
'label-large': {
|
|
213
|
+
fontFamily: "plain" | "brand";
|
|
214
|
+
lineHeight: string;
|
|
215
|
+
fontSize: string;
|
|
216
|
+
letterSpacing: string;
|
|
217
|
+
fontWeight: number;
|
|
218
|
+
};
|
|
219
|
+
'label-medium': {
|
|
220
|
+
fontFamily: "plain" | "brand";
|
|
221
|
+
lineHeight: string;
|
|
222
|
+
fontSize: string;
|
|
223
|
+
letterSpacing: string;
|
|
224
|
+
fontWeight: number;
|
|
225
|
+
};
|
|
226
|
+
'label-small': {
|
|
227
|
+
fontFamily: "plain" | "brand";
|
|
228
|
+
lineHeight: string;
|
|
229
|
+
fontSize: string;
|
|
230
|
+
letterSpacing: string;
|
|
231
|
+
fontWeight: number;
|
|
232
|
+
};
|
|
233
|
+
'body-large': {
|
|
234
|
+
fontFamily: "plain" | "brand";
|
|
235
|
+
lineHeight: string;
|
|
236
|
+
fontSize: string;
|
|
237
|
+
letterSpacing: string;
|
|
238
|
+
fontWeight: number;
|
|
239
|
+
};
|
|
240
|
+
'body-medium': {
|
|
241
|
+
fontFamily: "plain" | "brand";
|
|
242
|
+
lineHeight: string;
|
|
243
|
+
fontSize: string;
|
|
244
|
+
letterSpacing: string;
|
|
245
|
+
fontWeight: number;
|
|
246
|
+
};
|
|
247
|
+
'body-small': {
|
|
248
|
+
fontFamily: "plain" | "brand";
|
|
249
|
+
lineHeight: string;
|
|
250
|
+
fontSize: string;
|
|
251
|
+
letterSpacing: string;
|
|
252
|
+
fontWeight: number;
|
|
253
|
+
};
|
|
174
254
|
h1: {
|
|
175
255
|
variant: string;
|
|
176
256
|
fontWeight: string;
|
|
@@ -365,7 +445,7 @@ export declare const InnerContainer: import("@emotion/styled").StyledComponent<{
|
|
|
365
445
|
'&:hover': {
|
|
366
446
|
boxShadow: number;
|
|
367
447
|
};
|
|
368
|
-
'&:
|
|
448
|
+
'&:active,&:focus-visible,&:disabled': {
|
|
369
449
|
boxShadow: number;
|
|
370
450
|
};
|
|
371
451
|
};
|
|
@@ -375,6 +455,9 @@ export declare const InnerContainer: import("@emotion/styled").StyledComponent<{
|
|
|
375
455
|
'&:hover': {
|
|
376
456
|
boxShadow: number;
|
|
377
457
|
};
|
|
458
|
+
'&:active,&:focus-visible': {
|
|
459
|
+
boxShadow: number;
|
|
460
|
+
};
|
|
378
461
|
'&:disabled,&:disabled:hover,&:disabled:focus,&:disabled:active': {
|
|
379
462
|
boxShadow: number;
|
|
380
463
|
};
|
|
@@ -385,6 +468,9 @@ export declare const InnerContainer: import("@emotion/styled").StyledComponent<{
|
|
|
385
468
|
':hover': {
|
|
386
469
|
boxShadow: number;
|
|
387
470
|
};
|
|
471
|
+
'&:active,&:focus-visible': {
|
|
472
|
+
boxShadow: number;
|
|
473
|
+
};
|
|
388
474
|
'&:disabled,&:disabled:hover,&:disabled:focus,&:disabled:active': {
|
|
389
475
|
boxShadow: number;
|
|
390
476
|
};
|
|
@@ -5,6 +5,7 @@ import { rem } from 'polished';
|
|
|
5
5
|
import shouldForwardProp from '@styled-system/should-forward-prop';
|
|
6
6
|
import { css } from '@styled-system/css';
|
|
7
7
|
import { alpha } from '../color';
|
|
8
|
+
import { EASING_STANDARD } from '../motion';
|
|
8
9
|
export var NOTCH_PADDING = 4;
|
|
9
10
|
|
|
10
11
|
var makeSelector = function makeSelector(state) {
|
|
@@ -78,7 +79,7 @@ export var InnerContainer = /*#__PURE__*/_styled('div', process.env.NODE_ENV ===
|
|
|
78
79
|
return css((_css = {}, _defineProperty(_css, '[data-notch-outline-item]', _extends({
|
|
79
80
|
boxSizing: 'border-box',
|
|
80
81
|
borderStyle: borderStyle,
|
|
81
|
-
transition: "border-color .15s
|
|
82
|
+
transition: "border-color .15s ".concat(EASING_STANDARD)
|
|
82
83
|
}, forceActive ? focusStyle : inactiveStyle)), _defineProperty(_css, makeSelector('hover:not([disabled]):not(:focus)'), forceActive ? focusStyle : hoverStyle), _defineProperty(_css, makeSelector('focus:not([disabled])'), focusStyle), _defineProperty(_css, makeSelector('disabled'), disabledStyle), _css));
|
|
83
|
-
}, process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,
|
|
84
|
+
}, process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2Z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ICAgICAgICAuLi4oZm9yY2VBY3RpdmUgPyBmb2N1c1N0eWxlIDogaW5hY3RpdmVTdHlsZSksXG4gICAgICB9LFxuICAgICAgLy8gbm90Y2ggaXRlbXMgc3R5bGVzIHdoZW4gaW5wdXQgaXMgaG92ZXJlZFxuICAgICAgW21ha2VTZWxlY3RvcignaG92ZXI6bm90KFtkaXNhYmxlZF0pOm5vdCg6Zm9jdXMpJyldOiBmb3JjZUFjdGl2ZVxuICAgICAgICA/IGZvY3VzU3R5bGVcbiAgICAgICAgOiBob3ZlclN0eWxlLFxuICAgICAgLy8gbm90Y2ggaXRlbXMgc3R5bGVzIHdoZW4gaW5wdXQgaXMgZm9jdXNlZFxuICAgICAgW21ha2VTZWxlY3RvcignZm9jdXM6bm90KFtkaXNhYmxlZF0pJyldOiBmb2N1c1N0eWxlLFxuICAgICAgLy8gbm90Y2ggaXRlbXMgc3R5bGVzIHdoZW4gaW5wdXQgaXMgZGlzYWJsZWRcbiAgICAgIFttYWtlU2VsZWN0b3IoJ2Rpc2FibGVkJyldOiBkaXNhYmxlZFN0eWxlLFxuICAgIH0pO1xuICB9XG4pO1xuIl19 */");
|
|
84
85
|
//# sourceMappingURL=styledComponents.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"styledComponents.js","names":["rem","shouldForwardProp","css","alpha","EASING_STANDARD","NOTCH_PADDING","makeSelector","state","InnerContainer","color","borderRadiusPx","borderRadius","borderWidthPx","borderWidth","borderWidthWhenFocusedPx","borderWidthWhenFocused","borderStyle","notchStart","forceActive","width","borderStyling","borderTopLeftRadius","borderBottomLeftRadius","borderRightWidth","borderBottomWidth","borderLeft","borderTopRightRadius","borderBottomRightRadius","flex","inactiveStyle","borderColor","hoverStyle","focusStyle","disabledStyle","boxSizing","transition"],"sources":["../../../src/NotchedOutline/styledComponents.ts"],"sourcesContent":["import styled from '@emotion/styled';\nimport { rem } from 'polished';\nimport shouldForwardProp from '@styled-system/should-forward-prop';\nimport { css } from '@styled-system/css';\n\nimport { alpha } from '../color';\nimport type { Theme } from '../theme';\nimport { EASING_STANDARD } from '../motion';\n\nexport const NOTCH_PADDING = 4;\n\nconst makeSelector = (\n state:\n | 'hover:not([disabled]):not(:focus)'\n | 'focus:not([disabled])'\n | 'disabled'\n) =>\n `input:${state} ~ & [data-notch-outline-item],` +\n `select:${state} ~ & [data-notch-outline-item],` +\n `[role=\"button\"]:${state} ~ & [data-notch-outline-item],` +\n `textarea:${state} ~ & [data-notch-outline-item]`;\n\nexport const InnerContainer = styled('div', {\n shouldForwardProp,\n})<{\n color?: string;\n theme?: Theme;\n borderRadius: number;\n borderWidth: number;\n borderWidthWhenFocused: number;\n borderStyle: string;\n notchStart: number;\n forceActive?: boolean;\n}>(\n {\n position: 'absolute',\n display: 'flex',\n left: 0,\n top: 0,\n bottom: 0,\n width: '100%',\n height: '100%',\n pointerEvents: 'none',\n },\n ({\n color = 'on.surface',\n borderRadius: borderRadiusPx,\n borderWidth: borderWidthPx,\n borderWidthWhenFocused: borderWidthWhenFocusedPx,\n borderStyle,\n notchStart,\n forceActive = false,\n }) => {\n const width = rem(notchStart - NOTCH_PADDING);\n const borderRadius = rem(borderRadiusPx);\n const borderWidth = rem(borderWidthPx);\n const borderWidthWhenFocused = rem(borderWidthWhenFocusedPx);\n\n function borderStyling(borderRadius: string, borderWidth: string) {\n return {\n ['&[data-notch-outline-item=\"start\"]']: {\n borderTopLeftRadius: borderRadius,\n borderBottomLeftRadius: borderRadius,\n borderWidth: borderWidth,\n borderRightWidth: 0,\n width,\n },\n ['&[data-notch-outline-item=\"middle\"]']: {\n borderWidth: 0,\n borderBottomWidth: borderWidth,\n },\n ['&[data-notch-outline-item=\"end\"]']: {\n borderWidth: borderWidth,\n borderLeft: 0,\n borderTopRightRadius: borderRadius,\n borderBottomRightRadius: borderRadius,\n flex: 1,\n },\n };\n }\n\n const inactiveStyle = {\n color: 'on.surface-variant',\n borderColor: 'outline',\n ...borderStyling(borderRadius, borderWidth),\n };\n\n const hoverStyle = {\n borderColor: 'on.surface',\n color: 'on.surface-variant',\n };\n\n const focusStyle = {\n borderColor: color,\n color: alpha(color, 0.87),\n ...borderStyling(borderRadius, borderWidthWhenFocused),\n };\n\n const disabledStyle = {\n borderColor: alpha('on.surface', 0.06),\n color: alpha('on.surface', 0.38),\n };\n\n return css({\n // notch items styles when not focused\n ['[data-notch-outline-item]']: {\n boxSizing: 'border-box',\n borderStyle,\n transition: `border-color .15s ${EASING_STANDARD}`,\n ...(forceActive ? focusStyle : inactiveStyle),\n },\n // notch items styles when input is hovered\n [makeSelector('hover:not([disabled]):not(:focus)')]: forceActive\n ? focusStyle\n : hoverStyle,\n // notch items styles when input is focused\n [makeSelector('focus:not([disabled])')]: focusStyle,\n // notch items styles when input is disabled\n [makeSelector('disabled')]: disabledStyle,\n });\n }\n);\n"],"mappings":";;;AACA,SAASA,GAAT,QAAoB,UAApB;AACA,OAAOC,iBAAP,MAA8B,oCAA9B;AACA,SAASC,GAAT,QAAoB,oBAApB;AAEA,SAASC,KAAT,QAAsB,UAAtB;AAEA,SAASC,eAAT,QAAgC,WAAhC;AAEA,OAAO,IAAMC,aAAa,GAAG,CAAtB;;AAEP,IAAMC,YAAY,GAAG,SAAfA,YAAe,CACnBC,KADmB;EAAA,OAMnB,gBAASA,KAAT,wDACUA,KADV,mEAEmBA,KAFnB,0DAGYA,KAHZ,mCANmB;AAAA,CAArB;;AAWA,OAAO,IAAMC,cAAc,GAAG,qBAAO,KAAP;EAC5BP,iBAAiB,EAAjBA,iBAD4B;EAAA;AAAA;EAC5BA,iBAAiB,EAAjBA,iBAD4B;EAAA;EAAA;AAAA,uGAsB5B,gBAQM;EAAA;;EAAA,sBAPJQ,KAOI;EAAA,IAPJA,KAOI,2BAPI,YAOJ;EAAA,IANUC,cAMV,QANJC,YAMI;EAAA,IALSC,aAKT,QALJC,WAKI;EAAA,IAJoBC,wBAIpB,QAJJC,sBAII;EAAA,IAHJC,WAGI,QA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