@seed-design/react 2.5.1 → 3.0.0
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/lib/components/Accordion/Accordion.cjs +2 -1
- package/lib/components/Accordion/Accordion.d.ts.map +1 -1
- package/lib/components/Accordion/Accordion.js +2 -1
- package/lib/components/ActionButton/ActionButton.cjs +1 -1
- package/lib/components/ActionButton/ActionButton.js +1 -1
- package/lib/components/AlertDialog/AlertDialog.cjs +34 -0
- package/lib/components/AlertDialog/AlertDialog.d.ts +51 -0
- package/lib/components/AlertDialog/AlertDialog.d.ts.map +1 -0
- package/lib/components/AlertDialog/AlertDialog.js +24 -0
- package/lib/components/AlertDialog/AlertDialog.namespace.cjs +22 -0
- package/lib/components/AlertDialog/AlertDialog.namespace.d.ts +2 -0
- package/lib/components/AlertDialog/AlertDialog.namespace.d.ts.map +1 -0
- package/lib/components/AlertDialog/AlertDialog.namespace.js +17 -0
- package/lib/components/AlertDialog/AlertDialog.test.d.ts +2 -0
- package/lib/components/AlertDialog/AlertDialog.test.d.ts.map +1 -0
- package/lib/components/AlertDialog/index.cjs +19 -0
- package/lib/components/AlertDialog/index.d.ts +3 -0
- package/lib/components/AlertDialog/index.d.ts.map +1 -0
- package/lib/components/AlertDialog/index.js +3 -0
- package/lib/components/AttachmentDisplay/AttachmentDisplay.cjs +1 -1
- package/lib/components/AttachmentDisplay/AttachmentDisplay.js +1 -1
- package/lib/components/AttachmentDisplay/AttachmentDisplayItem.cjs +1 -1
- package/lib/components/AttachmentDisplay/AttachmentDisplayItem.d.ts.map +1 -1
- package/lib/components/AttachmentDisplay/AttachmentDisplayItem.js +1 -1
- package/lib/components/AttachmentDisplay/AttachmentDisplayTrigger.cjs +1 -1
- package/lib/components/AttachmentDisplay/AttachmentDisplayTrigger.js +1 -1
- package/lib/components/AttachmentDisplay/index.cjs +8 -0
- package/lib/components/AttachmentDisplay/index.d.ts +2 -0
- package/lib/components/AttachmentDisplay/index.d.ts.map +1 -1
- package/lib/components/AttachmentDisplay/index.js +2 -1
- package/lib/components/AttachmentInput/AttachmentInput.cjs +1 -1
- package/lib/components/AttachmentInput/AttachmentInput.js +1 -1
- package/lib/components/AttachmentInput/AttachmentInputDropzone.cjs +1 -1
- package/lib/components/AttachmentInput/AttachmentInputDropzone.js +1 -1
- package/lib/components/AttachmentInput/AttachmentInputItem.cjs +2 -2
- package/lib/components/AttachmentInput/AttachmentInputItem.d.ts.map +1 -1
- package/lib/components/AttachmentInput/AttachmentInputItem.js +2 -2
- package/lib/components/AttachmentInput/AttachmentInputTrigger.cjs +1 -1
- package/lib/components/AttachmentInput/AttachmentInputTrigger.js +1 -1
- package/lib/components/AttachmentInput/index.cjs +8 -0
- package/lib/components/AttachmentInput/index.d.ts +2 -0
- package/lib/components/AttachmentInput/index.d.ts.map +1 -1
- package/lib/components/AttachmentInput/index.js +2 -1
- package/lib/components/Badge/Badge.cjs +52 -10
- package/lib/components/Badge/Badge.d.ts +13 -4
- package/lib/components/Badge/Badge.d.ts.map +1 -1
- package/lib/components/Badge/Badge.js +49 -11
- package/lib/components/Badge/Badge.namespace.cjs +16 -0
- package/lib/components/Badge/Badge.namespace.d.ts +2 -0
- package/lib/components/Badge/Badge.namespace.d.ts.map +1 -0
- package/lib/components/Badge/Badge.namespace.js +11 -0
- package/lib/components/Badge/Badge.test.d.ts +2 -0
- package/lib/components/Badge/Badge.test.d.ts.map +1 -0
- package/lib/components/Badge/index.cjs +11 -1
- package/lib/components/Badge/index.d.ts +2 -1
- package/lib/components/Badge/index.d.ts.map +1 -1
- package/lib/components/Badge/index.js +3 -2
- package/lib/components/Box/Box.test.d.ts +2 -0
- package/lib/components/Box/Box.test.d.ts.map +1 -0
- package/lib/components/Checkbox/Checkbox.cjs +2 -2
- package/lib/components/Checkbox/Checkbox.d.ts +3 -1
- package/lib/components/Checkbox/Checkbox.d.ts.map +1 -1
- package/lib/components/Checkbox/Checkbox.js +2 -2
- package/lib/components/Checkbox/Checkbox.namespace.d.ts +1 -1
- package/lib/components/Checkbox/Checkbox.namespace.d.ts.map +1 -1
- package/lib/components/Checkbox/index.d.ts +1 -1
- package/lib/components/Checkbox/index.d.ts.map +1 -1
- package/lib/components/Chip/Chip.cjs +13 -5
- package/lib/components/Chip/Chip.d.ts +13 -2
- package/lib/components/Chip/Chip.d.ts.map +1 -1
- package/lib/components/Chip/Chip.js +10 -5
- package/lib/components/Chip/Chip.namespace.cjs +5 -2
- package/lib/components/Chip/Chip.namespace.d.ts +1 -1
- package/lib/components/Chip/Chip.namespace.d.ts.map +1 -1
- package/lib/components/Chip/Chip.namespace.js +6 -3
- package/lib/components/Chip/index.cjs +4 -1
- package/lib/components/Chip/index.d.ts +1 -1
- package/lib/components/Chip/index.d.ts.map +1 -1
- package/lib/components/Chip/index.js +2 -2
- package/lib/components/ChipTabs/ChipTabs.cjs +1 -1
- package/lib/components/ChipTabs/ChipTabs.js +1 -1
- package/lib/components/DatePicker/DatePicker.cjs +192 -190
- package/lib/components/DatePicker/DatePicker.d.ts +50 -21
- package/lib/components/DatePicker/DatePicker.d.ts.map +1 -1
- package/lib/components/DatePicker/DatePicker.js +189 -187
- package/lib/components/DatePicker/DatePicker.namespace.cjs +16 -0
- package/lib/components/DatePicker/DatePicker.namespace.d.ts +2 -0
- package/lib/components/DatePicker/DatePicker.namespace.d.ts.map +1 -0
- package/lib/components/DatePicker/DatePicker.namespace.js +11 -0
- package/lib/components/DatePicker/index.cjs +11 -4
- package/lib/components/DatePicker/index.d.ts +3 -2
- package/lib/components/DatePicker/index.d.ts.map +1 -1
- package/lib/components/DatePicker/index.js +3 -2
- package/lib/components/Dialog/Dialog.cjs +84 -9
- package/lib/components/Dialog/Dialog.d.ts +21 -14
- package/lib/components/Dialog/Dialog.d.ts.map +1 -1
- package/lib/components/Dialog/Dialog.js +80 -9
- package/lib/components/Dialog/Dialog.namespace.cjs +2 -0
- package/lib/components/Dialog/Dialog.namespace.d.ts +1 -1
- package/lib/components/Dialog/Dialog.namespace.d.ts.map +1 -1
- package/lib/components/Dialog/Dialog.namespace.js +3 -1
- package/lib/components/Dialog/index.cjs +2 -0
- package/lib/components/Dialog/index.d.ts +1 -1
- package/lib/components/Dialog/index.d.ts.map +1 -1
- package/lib/components/Dialog/index.js +2 -2
- package/lib/components/HelpBubble/HelpBubble.cjs +18 -5
- package/lib/components/HelpBubble/HelpBubble.d.ts +5 -0
- package/lib/components/HelpBubble/HelpBubble.d.ts.map +1 -1
- package/lib/components/HelpBubble/HelpBubble.js +18 -5
- package/lib/components/HelpBubble/HelpBubble.test.d.ts +2 -0
- package/lib/components/HelpBubble/HelpBubble.test.d.ts.map +1 -0
- package/lib/components/ImageFrame/ImageFrame.cjs +5 -4
- package/lib/components/ImageFrame/ImageFrame.d.ts +2 -2
- package/lib/components/ImageFrame/ImageFrame.d.ts.map +1 -1
- package/lib/components/ImageFrame/ImageFrame.js +6 -5
- package/lib/components/List/List.cjs +14 -3
- package/lib/components/List/List.d.ts +15 -0
- package/lib/components/List/List.d.ts.map +1 -1
- package/lib/components/List/List.js +11 -4
- package/lib/components/List/List.namespace.cjs +4 -0
- package/lib/components/List/List.namespace.d.ts +1 -1
- package/lib/components/List/List.namespace.d.ts.map +1 -1
- package/lib/components/List/List.namespace.js +5 -1
- package/lib/components/List/index.cjs +4 -0
- package/lib/components/List/index.d.ts +1 -1
- package/lib/components/List/index.d.ts.map +1 -1
- package/lib/components/List/index.js +2 -2
- package/lib/components/Menu/Menu.cjs +3 -2
- package/lib/components/Menu/Menu.d.ts.map +1 -1
- package/lib/components/Menu/Menu.js +3 -2
- package/lib/components/MenuSheet/MenuSheet.cjs +4 -3
- package/lib/components/MenuSheet/MenuSheet.d.ts.map +1 -1
- package/lib/components/MenuSheet/MenuSheet.js +4 -3
- package/lib/components/NavigationMenu/NavigationMenu.cjs +4 -3
- package/lib/components/NavigationMenu/NavigationMenu.d.ts.map +1 -1
- package/lib/components/NavigationMenu/NavigationMenu.js +4 -3
- package/lib/components/PageBanner/PageBanner.cjs +3 -2
- package/lib/components/PageBanner/PageBanner.d.ts.map +1 -1
- package/lib/components/PageBanner/PageBanner.js +3 -2
- package/lib/components/{ContentDialog/ContentDialog.cjs → Popover/Popover.cjs} +61 -40
- package/lib/components/Popover/Popover.d.ts +69 -0
- package/lib/components/Popover/Popover.d.ts.map +1 -0
- package/lib/components/{ContentDialog/ContentDialog.js → Popover/Popover.js} +49 -29
- package/lib/components/Popover/Popover.namespace.cjs +26 -0
- package/lib/components/Popover/Popover.namespace.d.ts +2 -0
- package/lib/components/Popover/Popover.namespace.d.ts.map +1 -0
- package/lib/components/Popover/Popover.namespace.js +21 -0
- package/lib/components/Popover/Popover.test.d.ts +2 -0
- package/lib/components/Popover/Popover.test.d.ts.map +1 -0
- package/lib/components/Popover/index.cjs +23 -0
- package/lib/components/Popover/index.d.ts +3 -0
- package/lib/components/Popover/index.d.ts.map +1 -0
- package/lib/components/Popover/index.js +3 -0
- package/lib/components/QuantityPicker/QuantityPicker.d.ts.map +1 -1
- package/lib/components/RadioGroup/RadioGroup.cjs +2 -2
- package/lib/components/RadioGroup/RadioGroup.d.ts +2 -0
- package/lib/components/RadioGroup/RadioGroup.d.ts.map +1 -1
- package/lib/components/RadioGroup/RadioGroup.js +2 -2
- package/lib/components/RadioGroup/RadioGroup.namespace.d.ts +1 -1
- package/lib/components/RadioGroup/RadioGroup.namespace.d.ts.map +1 -1
- package/lib/components/RadioGroup/index.d.ts +1 -1
- package/lib/components/RadioGroup/index.d.ts.map +1 -1
- package/lib/components/RadioGroupField/RadioGroupField.cjs +2 -2
- package/lib/components/RadioGroupField/RadioGroupField.d.ts +5 -1
- package/lib/components/RadioGroupField/RadioGroupField.d.ts.map +1 -1
- package/lib/components/RadioGroupField/RadioGroupField.js +2 -2
- package/lib/components/RadioGroupField/RadioGroupField.namespace.d.ts +1 -1
- package/lib/components/RadioGroupField/RadioGroupField.namespace.d.ts.map +1 -1
- package/lib/components/ReactionButton/ReactionButton.cjs +1 -1
- package/lib/components/ReactionButton/ReactionButton.js +1 -1
- package/lib/components/ResponsiveDialog/ResponsiveDialog.cjs +13 -13
- package/lib/components/ResponsiveDialog/ResponsiveDialog.d.ts +15 -15
- package/lib/components/ResponsiveDialog/ResponsiveDialog.d.ts.map +1 -1
- package/lib/components/ResponsiveDialog/ResponsiveDialog.js +13 -13
- package/lib/components/SegmentedControl/SegmentedControl.cjs +2 -1
- package/lib/components/SegmentedControl/SegmentedControl.d.ts.map +1 -1
- package/lib/components/SegmentedControl/SegmentedControl.js +2 -1
- package/lib/components/Select/Select.cjs +5 -4
- package/lib/components/Select/Select.d.ts.map +1 -1
- package/lib/components/Select/Select.js +5 -4
- package/lib/components/SelectBox/CheckSelectBox.cjs +20 -6
- package/lib/components/SelectBox/CheckSelectBox.d.ts +7 -0
- package/lib/components/SelectBox/CheckSelectBox.d.ts.map +1 -1
- package/lib/components/SelectBox/CheckSelectBox.js +21 -7
- package/lib/components/SelectBox/RadioSelectBox.cjs +20 -6
- package/lib/components/SelectBox/RadioSelectBox.d.ts +7 -0
- package/lib/components/SelectBox/RadioSelectBox.d.ts.map +1 -1
- package/lib/components/SelectBox/RadioSelectBox.js +21 -7
- package/lib/components/SelectBox/SelectBox.test.d.ts +2 -0
- package/lib/components/SelectBox/SelectBox.test.d.ts.map +1 -0
- package/lib/components/SideNavigation/SideNavigation.cjs +2 -2
- package/lib/components/SideNavigation/SideNavigation.js +2 -2
- package/lib/components/SideNavigation/index.cjs +8 -0
- package/lib/components/SideNavigation/index.d.ts +1 -0
- package/lib/components/SideNavigation/index.d.ts.map +1 -1
- package/lib/components/SideNavigation/index.js +2 -1
- package/lib/components/SidePanel/SidePanel.d.ts +0 -12
- package/lib/components/SidePanel/SidePanel.d.ts.map +1 -1
- package/lib/components/Slider/Slider.cjs +1 -1
- package/lib/components/Slider/Slider.js +1 -1
- package/lib/components/Snackbar/Snackbar.cjs +2 -2
- package/lib/components/Snackbar/Snackbar.js +2 -2
- package/lib/components/Snackbar/useSnackbarAdapter.cjs +1 -1
- package/lib/components/Snackbar/useSnackbarAdapter.js +1 -1
- package/lib/components/Stack/Stack.cjs +0 -12
- package/lib/components/Stack/Stack.d.ts +0 -8
- package/lib/components/Stack/Stack.d.ts.map +1 -1
- package/lib/components/Stack/Stack.js +1 -12
- package/lib/components/Stack/index.cjs +0 -1
- package/lib/components/Stack/index.d.ts +1 -1
- package/lib/components/Stack/index.d.ts.map +1 -1
- package/lib/components/Stack/index.js +2 -2
- package/lib/components/SwipeableMenuSheet/SwipeableMenuSheet.cjs +3 -2
- package/lib/components/SwipeableMenuSheet/SwipeableMenuSheet.d.ts.map +1 -1
- package/lib/components/SwipeableMenuSheet/SwipeableMenuSheet.js +3 -2
- package/lib/components/Switch/Switch.cjs +3 -3
- package/lib/components/Switch/Switch.d.ts +5 -1
- package/lib/components/Switch/Switch.d.ts.map +1 -1
- package/lib/components/Switch/Switch.js +3 -3
- package/lib/components/Switch/Switch.namespace.d.ts +1 -1
- package/lib/components/Switch/Switch.namespace.d.ts.map +1 -1
- package/lib/components/Switch/index.d.ts +1 -1
- package/lib/components/Switch/index.d.ts.map +1 -1
- package/lib/components/TagGroup/TagGroup.d.ts.map +1 -1
- package/lib/components/ToggleButton/ToggleButton.cjs +1 -1
- package/lib/components/ToggleButton/ToggleButton.js +1 -1
- package/lib/components/WheelPicker/WheelPicker.cjs +11 -12
- package/lib/components/WheelPicker/WheelPicker.d.ts +7 -2
- package/lib/components/WheelPicker/WheelPicker.d.ts.map +1 -1
- package/lib/components/WheelPicker/WheelPicker.js +11 -12
- package/lib/components/index.cjs +90 -94
- package/lib/components/index.d.ts +2 -12
- package/lib/components/index.d.ts.map +1 -1
- package/lib/components/index.js +17 -24
- package/lib/index.cjs +116 -94
- package/lib/index.d.ts +4 -2
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +20 -25
- package/lib/utils/styled.cjs +3 -2
- package/lib/utils/styled.d.ts +18 -11
- package/lib/utils/styled.d.ts.map +1 -1
- package/lib/utils/styled.js +3 -2
- package/lib/utils/withContentScale.cjs +30 -0
- package/lib/utils/withContentScale.d.ts +12 -0
- package/lib/utils/withContentScale.d.ts.map +1 -0
- package/lib/utils/withContentScale.js +27 -0
- package/lib/utils/withContentScale.test.d.ts +2 -0
- package/lib/utils/withContentScale.test.d.ts.map +1 -0
- package/package.json +9 -14
- package/src/components/Accordion/Accordion.tsx +3 -3
- package/src/components/AlertDialog/AlertDialog.namespace.ts +22 -0
- package/src/components/AlertDialog/AlertDialog.test.tsx +61 -0
- package/src/components/AlertDialog/AlertDialog.tsx +115 -0
- package/src/components/AlertDialog/index.ts +24 -0
- package/src/components/AttachmentDisplay/AttachmentDisplayItem.tsx +2 -0
- package/src/components/AttachmentDisplay/index.ts +10 -0
- package/src/components/AttachmentInput/AttachmentInputItem.tsx +2 -0
- package/src/components/AttachmentInput/index.ts +10 -0
- package/src/components/Badge/Badge.namespace.ts +10 -0
- package/src/components/Badge/Badge.test.tsx +56 -0
- package/src/components/Badge/Badge.tsx +82 -11
- package/src/components/Badge/index.ts +12 -1
- package/src/components/Box/Box.test.tsx +88 -0
- package/src/components/Checkbox/Checkbox.namespace.ts +1 -0
- package/src/components/Checkbox/Checkbox.tsx +3 -1
- package/src/components/Checkbox/index.ts +1 -0
- package/src/components/Chip/Chip.namespace.ts +8 -2
- package/src/components/Chip/Chip.tsx +34 -7
- package/src/components/Chip/index.ts +8 -2
- package/src/components/DatePicker/DatePicker.namespace.ts +14 -0
- package/src/components/DatePicker/DatePicker.test.tsx +85 -276
- package/src/components/DatePicker/DatePicker.tsx +327 -284
- package/src/components/DatePicker/index.ts +25 -21
- package/src/components/Dialog/Dialog.namespace.ts +4 -0
- package/src/components/Dialog/Dialog.tsx +128 -10
- package/src/components/Dialog/index.ts +4 -5
- package/src/components/HelpBubble/HelpBubble.test.tsx +111 -0
- package/src/components/HelpBubble/HelpBubble.tsx +19 -3
- package/src/components/ImageFrame/ImageFrame.tsx +12 -4
- package/src/components/List/List.namespace.ts +8 -0
- package/src/components/List/List.tsx +43 -3
- package/src/components/List/index.ts +8 -0
- package/src/components/Menu/Menu.tsx +4 -3
- package/src/components/MenuSheet/MenuSheet.tsx +20 -17
- package/src/components/NavigationMenu/NavigationMenu.tsx +20 -17
- package/src/components/PageBanner/PageBanner.tsx +6 -3
- package/src/components/Popover/Popover.namespace.ts +30 -0
- package/src/components/Popover/Popover.test.tsx +222 -0
- package/src/components/Popover/Popover.tsx +282 -0
- package/src/components/Popover/index.ts +32 -0
- package/src/components/QuantityPicker/QuantityPicker.tsx +2 -0
- package/src/components/RadioGroup/RadioGroup.namespace.ts +1 -0
- package/src/components/RadioGroup/RadioGroup.tsx +2 -0
- package/src/components/RadioGroup/index.ts +1 -0
- package/src/components/RadioGroupField/RadioGroupField.namespace.ts +1 -0
- package/src/components/RadioGroupField/RadioGroupField.tsx +5 -3
- package/src/components/ResponsiveDialog/ResponsiveDialog.tsx +45 -48
- package/src/components/SegmentedControl/SegmentedControl.tsx +3 -3
- package/src/components/Select/Select.tsx +7 -6
- package/src/components/SelectBox/CheckSelectBox.tsx +28 -10
- package/src/components/SelectBox/RadioSelectBox.tsx +28 -10
- package/src/components/SelectBox/SelectBox.test.tsx +138 -0
- package/src/components/SideNavigation/index.ts +5 -0
- package/src/components/SidePanel/SidePanel.tsx +1 -16
- package/src/components/Stack/Stack.tsx +0 -12
- package/src/components/Stack/index.ts +1 -8
- package/src/components/SwipeableMenuSheet/SwipeableMenuSheet.tsx +20 -18
- package/src/components/Switch/Switch.namespace.ts +1 -0
- package/src/components/Switch/Switch.tsx +6 -3
- package/src/components/Switch/index.ts +1 -0
- package/src/components/TagGroup/TagGroup.tsx +2 -0
- package/src/components/WheelPicker/WheelPicker.test.tsx +53 -44
- package/src/components/WheelPicker/WheelPicker.tsx +24 -21
- package/src/components/index.ts +2 -12
- package/src/index.ts +25 -2
- package/src/utils/styled.tsx +72 -15
- package/src/utils/withContentScale.test.tsx +88 -0
- package/src/utils/withContentScale.tsx +48 -0
- package/lib/components/ActionChip/ActionChip.cjs +0 -15
- package/lib/components/ActionChip/ActionChip.d.ts +0 -23
- package/lib/components/ActionChip/ActionChip.d.ts.map +0 -1
- package/lib/components/ActionChip/ActionChip.js +0 -14
- package/lib/components/ActionChip/index.cjs +0 -3
- package/lib/components/ActionChip/index.d.ts +0 -2
- package/lib/components/ActionChip/index.d.ts.map +0 -1
- package/lib/components/ActionChip/index.js +0 -2
- package/lib/components/ActionSheet/ActionSheet.cjs +0 -72
- package/lib/components/ActionSheet/ActionSheet.d.ts +0 -113
- package/lib/components/ActionSheet/ActionSheet.d.ts.map +0 -1
- package/lib/components/ActionSheet/ActionSheet.js +0 -61
- package/lib/components/ActionSheet/ActionSheet.namespace.cjs +0 -23
- package/lib/components/ActionSheet/ActionSheet.namespace.d.ts +0 -2
- package/lib/components/ActionSheet/ActionSheet.namespace.d.ts.map +0 -1
- package/lib/components/ActionSheet/ActionSheet.namespace.js +0 -18
- package/lib/components/ActionSheet/index.cjs +0 -20
- package/lib/components/ActionSheet/index.d.ts +0 -3
- package/lib/components/ActionSheet/index.d.ts.map +0 -1
- package/lib/components/ActionSheet/index.js +0 -3
- package/lib/components/Columns/Columns.cjs +0 -38
- package/lib/components/Columns/Columns.d.ts +0 -22
- package/lib/components/Columns/Columns.d.ts.map +0 -1
- package/lib/components/Columns/Columns.js +0 -35
- package/lib/components/Columns/index.cjs +0 -4
- package/lib/components/Columns/index.d.ts +0 -2
- package/lib/components/Columns/index.d.ts.map +0 -1
- package/lib/components/Columns/index.js +0 -2
- package/lib/components/ContentDialog/ContentDialog.d.ts +0 -50
- package/lib/components/ContentDialog/ContentDialog.d.ts.map +0 -1
- package/lib/components/ContentDialog/ContentDialog.namespace.cjs +0 -24
- package/lib/components/ContentDialog/ContentDialog.namespace.d.ts +0 -2
- package/lib/components/ContentDialog/ContentDialog.namespace.d.ts.map +0 -1
- package/lib/components/ContentDialog/ContentDialog.namespace.js +0 -19
- package/lib/components/ContentDialog/index.cjs +0 -21
- package/lib/components/ContentDialog/index.d.ts +0 -3
- package/lib/components/ContentDialog/index.d.ts.map +0 -1
- package/lib/components/ContentDialog/index.js +0 -3
- package/lib/components/ControlChip/ControlChip.cjs +0 -15
- package/lib/components/ControlChip/ControlChip.d.ts +0 -28
- package/lib/components/ControlChip/ControlChip.d.ts.map +0 -1
- package/lib/components/ControlChip/ControlChip.js +0 -14
- package/lib/components/ControlChip/index.cjs +0 -3
- package/lib/components/ControlChip/index.d.ts +0 -2
- package/lib/components/ControlChip/index.d.ts.map +0 -1
- package/lib/components/ControlChip/index.js +0 -2
- package/lib/components/ExtendedActionSheet/ExtendedActionSheet.cjs +0 -77
- package/lib/components/ExtendedActionSheet/ExtendedActionSheet.d.ts +0 -122
- package/lib/components/ExtendedActionSheet/ExtendedActionSheet.d.ts.map +0 -1
- package/lib/components/ExtendedActionSheet/ExtendedActionSheet.js +0 -65
- package/lib/components/ExtendedActionSheet/ExtendedActionSheet.namespace.cjs +0 -24
- package/lib/components/ExtendedActionSheet/ExtendedActionSheet.namespace.d.ts +0 -2
- package/lib/components/ExtendedActionSheet/ExtendedActionSheet.namespace.d.ts.map +0 -1
- package/lib/components/ExtendedActionSheet/ExtendedActionSheet.namespace.js +0 -19
- package/lib/components/ExtendedActionSheet/index.cjs +0 -21
- package/lib/components/ExtendedActionSheet/index.d.ts +0 -3
- package/lib/components/ExtendedActionSheet/index.d.ts.map +0 -1
- package/lib/components/ExtendedActionSheet/index.js +0 -3
- package/lib/components/ExtendedFab/ExtendedFab.cjs +0 -16
- package/lib/components/ExtendedFab/ExtendedFab.d.ts +0 -13
- package/lib/components/ExtendedFab/ExtendedFab.d.ts.map +0 -1
- package/lib/components/ExtendedFab/ExtendedFab.js +0 -15
- package/lib/components/ExtendedFab/index.cjs +0 -3
- package/lib/components/ExtendedFab/index.d.ts +0 -2
- package/lib/components/ExtendedFab/index.d.ts.map +0 -1
- package/lib/components/ExtendedFab/index.js +0 -2
- package/lib/components/Fab/Fab.cjs +0 -13
- package/lib/components/Fab/Fab.d.ts +0 -13
- package/lib/components/Fab/Fab.d.ts.map +0 -1
- package/lib/components/Fab/Fab.js +0 -12
- package/lib/components/Fab/index.cjs +0 -3
- package/lib/components/Fab/index.d.ts +0 -2
- package/lib/components/Fab/index.d.ts.map +0 -1
- package/lib/components/Fab/index.js +0 -2
- package/lib/components/Inline/Inline.cjs +0 -23
- package/lib/components/Inline/Inline.d.ts +0 -12
- package/lib/components/Inline/Inline.d.ts.map +0 -1
- package/lib/components/Inline/Inline.js +0 -21
- package/lib/components/Inline/index.cjs +0 -3
- package/lib/components/Inline/index.d.ts +0 -2
- package/lib/components/Inline/index.d.ts.map +0 -1
- package/lib/components/Inline/index.js +0 -2
- package/lib/components/InlineBanner/InlineBanner.cjs +0 -39
- package/lib/components/InlineBanner/InlineBanner.d.ts +0 -59
- package/lib/components/InlineBanner/InlineBanner.d.ts.map +0 -1
- package/lib/components/InlineBanner/InlineBanner.js +0 -33
- package/lib/components/InlineBanner/InlineBanner.namespace.cjs +0 -18
- package/lib/components/InlineBanner/InlineBanner.namespace.d.ts +0 -2
- package/lib/components/InlineBanner/InlineBanner.namespace.d.ts.map +0 -1
- package/lib/components/InlineBanner/InlineBanner.namespace.js +0 -13
- package/lib/components/InlineBanner/index.cjs +0 -15
- package/lib/components/InlineBanner/index.d.ts +0 -3
- package/lib/components/InlineBanner/index.d.ts.map +0 -1
- package/lib/components/InlineBanner/index.js +0 -3
- package/lib/components/LinkContent/LinkContent.cjs +0 -14
- package/lib/components/LinkContent/LinkContent.d.ts +0 -14
- package/lib/components/LinkContent/LinkContent.d.ts.map +0 -1
- package/lib/components/LinkContent/LinkContent.js +0 -13
- package/lib/components/LinkContent/index.cjs +0 -3
- package/lib/components/LinkContent/index.d.ts +0 -2
- package/lib/components/LinkContent/index.d.ts.map +0 -1
- package/lib/components/LinkContent/index.js +0 -2
- package/lib/components/TimePicker/TimePicker.cjs +0 -97
- package/lib/components/TimePicker/TimePicker.d.ts +0 -28
- package/lib/components/TimePicker/TimePicker.d.ts.map +0 -1
- package/lib/components/TimePicker/TimePicker.js +0 -94
- package/lib/components/TimePicker/TimePicker.test.d.ts +0 -2
- package/lib/components/TimePicker/TimePicker.test.d.ts.map +0 -1
- package/lib/components/TimePicker/index.cjs +0 -3
- package/lib/components/TimePicker/index.d.ts +0 -2
- package/lib/components/TimePicker/index.d.ts.map +0 -1
- package/lib/components/TimePicker/index.js +0 -2
- package/lib/components/private/WheelPicker.cjs +0 -63
- package/lib/components/private/WheelPicker.d.ts +0 -16
- package/lib/components/private/WheelPicker.d.ts.map +0 -1
- package/lib/components/private/WheelPicker.js +0 -59
- package/lib/components/private/WheelPicker.test.d.ts +0 -2
- package/lib/components/private/WheelPicker.test.d.ts.map +0 -1
- package/lib/primitive.cjs +0 -154
- package/lib/primitive.d.ts +0 -18
- package/lib/primitive.d.ts.map +0 -1
- package/lib/primitive.js +0 -17
- package/src/components/ActionChip/ActionChip.tsx +0 -34
- package/src/components/ActionChip/index.ts +0 -4
- package/src/components/ActionSheet/ActionSheet.namespace.ts +0 -24
- package/src/components/ActionSheet/ActionSheet.tsx +0 -192
- package/src/components/ActionSheet/index.ts +0 -26
- package/src/components/Columns/Columns.tsx +0 -50
- package/src/components/Columns/index.ts +0 -1
- package/src/components/ContentDialog/ContentDialog.namespace.ts +0 -26
- package/src/components/ContentDialog/ContentDialog.tsx +0 -224
- package/src/components/ContentDialog/index.ts +0 -33
- package/src/components/ControlChip/ControlChip.tsx +0 -38
- package/src/components/ControlChip/index.ts +0 -5
- package/src/components/ExtendedActionSheet/ExtendedActionSheet.namespace.ts +0 -26
- package/src/components/ExtendedActionSheet/ExtendedActionSheet.tsx +0 -220
- package/src/components/ExtendedActionSheet/index.ts +0 -28
- package/src/components/ExtendedFab/ExtendedFab.tsx +0 -25
- package/src/components/ExtendedFab/index.ts +0 -4
- package/src/components/Fab/Fab.tsx +0 -21
- package/src/components/Fab/index.ts +0 -4
- package/src/components/Inline/Inline.tsx +0 -25
- package/src/components/Inline/index.ts +0 -1
- package/src/components/InlineBanner/InlineBanner.namespace.ts +0 -14
- package/src/components/InlineBanner/InlineBanner.tsx +0 -103
- package/src/components/InlineBanner/index.ts +0 -16
- package/src/components/LinkContent/LinkContent.tsx +0 -23
- package/src/components/LinkContent/index.ts +0 -4
- package/src/components/TimePicker/TimePicker.test.tsx +0 -166
- package/src/components/TimePicker/TimePicker.tsx +0 -163
- package/src/components/TimePicker/index.ts +0 -6
- package/src/components/private/WheelPicker.test.tsx +0 -55
- package/src/components/private/WheelPicker.tsx +0 -110
- package/src/primitive.ts +0 -17
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
export {
|
|
2
|
+
PopoverAction,
|
|
3
|
+
PopoverAnchor,
|
|
4
|
+
PopoverArrow,
|
|
5
|
+
PopoverArrowTip,
|
|
6
|
+
PopoverBody,
|
|
7
|
+
PopoverCloseButton,
|
|
8
|
+
PopoverContent,
|
|
9
|
+
PopoverDescription,
|
|
10
|
+
PopoverFooter,
|
|
11
|
+
PopoverHeader,
|
|
12
|
+
PopoverPositioner,
|
|
13
|
+
PopoverRoot,
|
|
14
|
+
PopoverTitle,
|
|
15
|
+
PopoverTrigger,
|
|
16
|
+
type PopoverActionProps,
|
|
17
|
+
type PopoverAnchorProps,
|
|
18
|
+
type PopoverArrowProps,
|
|
19
|
+
type PopoverArrowTipProps,
|
|
20
|
+
type PopoverBodyProps,
|
|
21
|
+
type PopoverCloseButtonProps,
|
|
22
|
+
type PopoverContentProps,
|
|
23
|
+
type PopoverDescriptionProps,
|
|
24
|
+
type PopoverFooterProps,
|
|
25
|
+
type PopoverHeaderProps,
|
|
26
|
+
type PopoverPositionerProps,
|
|
27
|
+
type PopoverRootProps,
|
|
28
|
+
type PopoverTitleProps,
|
|
29
|
+
type PopoverTriggerProps,
|
|
30
|
+
} from "./Popover";
|
|
31
|
+
|
|
32
|
+
export * as Popover from "./Popover.namespace";
|
|
@@ -118,6 +118,8 @@ export const QuantityPickerRoot = React.forwardRef<HTMLDivElement, QuantityPicke
|
|
|
118
118
|
|
|
119
119
|
return (
|
|
120
120
|
<ClassNamesProvider value={classNames}>
|
|
121
|
+
{/* TODO: `asChild` cannot work here — `withDividers` turns `children` into several
|
|
122
|
+
elements, which `Slot` refuses. Route them through `Slottable`, or drop `asChild`. */}
|
|
121
123
|
<QuantityPickerPrimitive.Root
|
|
122
124
|
ref={ref}
|
|
123
125
|
className={clsx(classNames.root, className)}
|
|
@@ -7,6 +7,7 @@ export {
|
|
|
7
7
|
RadioGroupItemHiddenInput as ItemHiddenInput,
|
|
8
8
|
type RadioGroupRootProps as RootProps,
|
|
9
9
|
type RadioGroupItemProps as ItemProps,
|
|
10
|
+
type RadioGroupItemPrimitiveProps as ItemPrimitiveProps,
|
|
10
11
|
type RadioGroupItemLabelProps as ItemLabelProps,
|
|
11
12
|
type RadioGroupItemControlProps as ItemControlProps,
|
|
12
13
|
type RadioGroupItemIndicatorProps as ItemIndicatorProps,
|
|
@@ -41,6 +41,8 @@ export interface RadioGroupItemProps
|
|
|
41
41
|
RadiomarkVariantProps,
|
|
42
42
|
RadioGroupPrimitive.ItemProps {}
|
|
43
43
|
|
|
44
|
+
export interface RadioGroupItemPrimitiveProps extends RadioGroupPrimitive.ItemProps {}
|
|
45
|
+
|
|
44
46
|
export const RadioGroupItem = Object.assign(
|
|
45
47
|
forwardRef<HTMLLabelElement, RadioGroupItemProps>(({ className, ...props }, ref) => {
|
|
46
48
|
const [{ radio: radioVariantProps, radiomark: radiomarkVariantProps }, otherProps] =
|
|
@@ -8,6 +8,7 @@ export {
|
|
|
8
8
|
RadioGroupFieldDescription as Description,
|
|
9
9
|
RadioGroupFieldErrorMessage as ErrorMessage,
|
|
10
10
|
type RadioGroupFieldRootProps as RootProps,
|
|
11
|
+
type RadioGroupFieldRootPrimitiveProps as RootPrimitiveProps,
|
|
11
12
|
type RadioGroupFieldHeaderProps as HeaderProps,
|
|
12
13
|
type RadioGroupFieldLabelProps as LabelProps,
|
|
13
14
|
type RadioGroupFieldIndicatorTextProps as IndicatorTextProps,
|
|
@@ -23,9 +23,11 @@ export interface RadioGroupFieldRootProps
|
|
|
23
23
|
extends FieldVariantProps,
|
|
24
24
|
RadioGroupPrimitive.RootProps {}
|
|
25
25
|
|
|
26
|
-
export
|
|
27
|
-
|
|
28
|
-
|
|
26
|
+
export interface RadioGroupFieldRootPrimitiveProps extends RadioGroupPrimitive.RootProps {}
|
|
27
|
+
|
|
28
|
+
export const RadioGroupFieldRoot = Object.assign(
|
|
29
|
+
withProvider<HTMLDivElement, RadioGroupFieldRootProps>(RadioGroupPrimitive.Root, "root"),
|
|
30
|
+
{ Primitive: RadioGroupPrimitive.Root },
|
|
29
31
|
);
|
|
30
32
|
|
|
31
33
|
////////////////////////////////////////////////////////////////////////////////////
|
|
@@ -18,26 +18,26 @@ import {
|
|
|
18
18
|
} from "../BottomSheet";
|
|
19
19
|
import { BottomSheetHandle } from "../BottomSheetHandle";
|
|
20
20
|
import {
|
|
21
|
-
type
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
} from "../
|
|
35
|
-
|
|
36
|
-
type SharedProps<
|
|
37
|
-
|
|
38
|
-
Extract<keyof
|
|
21
|
+
type Dialog,
|
|
22
|
+
DialogAction,
|
|
23
|
+
DialogBackdrop,
|
|
24
|
+
DialogBody,
|
|
25
|
+
DialogCloseButton,
|
|
26
|
+
DialogContent,
|
|
27
|
+
DialogDescription,
|
|
28
|
+
DialogFooter,
|
|
29
|
+
DialogHeader,
|
|
30
|
+
DialogPositioner,
|
|
31
|
+
DialogRoot,
|
|
32
|
+
DialogTitle,
|
|
33
|
+
DialogTrigger,
|
|
34
|
+
} from "../Dialog";
|
|
35
|
+
|
|
36
|
+
type SharedProps<DialogProps, BottomSheetProps> = Pick<
|
|
37
|
+
DialogProps,
|
|
38
|
+
Extract<keyof DialogProps, keyof BottomSheetProps>
|
|
39
39
|
> &
|
|
40
|
-
Pick<BottomSheetProps, Extract<keyof BottomSheetProps, keyof
|
|
40
|
+
Pick<BottomSheetProps, Extract<keyof BottomSheetProps, keyof DialogProps>>;
|
|
41
41
|
|
|
42
42
|
interface ResponsiveDialogContextValue {
|
|
43
43
|
shouldUseBottomSheet: boolean | undefined;
|
|
@@ -67,11 +67,8 @@ export interface ResponsiveDialogRootProps {
|
|
|
67
67
|
*/
|
|
68
68
|
dialogBreakpoint?: Exclude<Breakpoint, "base">;
|
|
69
69
|
|
|
70
|
-
/** Props forwarded to the underlying
|
|
71
|
-
dialogRootProps?: Omit<
|
|
72
|
-
ContentDialog.RootProps,
|
|
73
|
-
"children" | "open" | "defaultOpen" | "onOpenChange"
|
|
74
|
-
>;
|
|
70
|
+
/** Props forwarded to the underlying Dialog root (at and above the breakpoint). */
|
|
71
|
+
dialogRootProps?: Omit<Dialog.RootProps, "children" | "open" | "defaultOpen" | "onOpenChange">;
|
|
75
72
|
|
|
76
73
|
/** Props forwarded to the underlying BottomSheet root (below the breakpoint). */
|
|
77
74
|
bottomSheetRootProps?: Omit<
|
|
@@ -117,9 +114,9 @@ export const ResponsiveDialogRoot = ({
|
|
|
117
114
|
{children}
|
|
118
115
|
</BottomSheetRoot>
|
|
119
116
|
) : (
|
|
120
|
-
<
|
|
117
|
+
<DialogRoot {...dialogRootProps} open={open} onOpenChange={setOpen}>
|
|
121
118
|
{children}
|
|
122
|
-
</
|
|
119
|
+
</DialogRoot>
|
|
123
120
|
)}
|
|
124
121
|
</ResponsiveDialogContext.Provider>
|
|
125
122
|
);
|
|
@@ -127,7 +124,7 @@ export const ResponsiveDialogRoot = ({
|
|
|
127
124
|
ResponsiveDialogRoot.displayName = "ResponsiveDialogRoot";
|
|
128
125
|
|
|
129
126
|
export interface ResponsiveDialogTriggerProps
|
|
130
|
-
extends SharedProps<
|
|
127
|
+
extends SharedProps<Dialog.TriggerProps, BottomSheet.TriggerProps> {}
|
|
131
128
|
|
|
132
129
|
export const ResponsiveDialogTrigger = React.forwardRef<
|
|
133
130
|
HTMLButtonElement,
|
|
@@ -138,13 +135,13 @@ export const ResponsiveDialogTrigger = React.forwardRef<
|
|
|
138
135
|
return shouldUseBottomSheet ? (
|
|
139
136
|
<BottomSheetTrigger ref={ref} {...props} />
|
|
140
137
|
) : (
|
|
141
|
-
<
|
|
138
|
+
<DialogTrigger ref={ref} {...props} />
|
|
142
139
|
);
|
|
143
140
|
});
|
|
144
141
|
ResponsiveDialogTrigger.displayName = "ResponsiveDialogTrigger";
|
|
145
142
|
|
|
146
143
|
export interface ResponsiveDialogPositionerProps
|
|
147
|
-
extends SharedProps<
|
|
144
|
+
extends SharedProps<Dialog.PositionerProps, BottomSheet.PositionerProps> {}
|
|
148
145
|
|
|
149
146
|
export const ResponsiveDialogPositioner = React.forwardRef<
|
|
150
147
|
HTMLDivElement,
|
|
@@ -155,13 +152,13 @@ export const ResponsiveDialogPositioner = React.forwardRef<
|
|
|
155
152
|
return shouldUseBottomSheet ? (
|
|
156
153
|
<BottomSheetPositioner ref={ref} {...props} />
|
|
157
154
|
) : (
|
|
158
|
-
<
|
|
155
|
+
<DialogPositioner ref={ref} {...props} />
|
|
159
156
|
);
|
|
160
157
|
});
|
|
161
158
|
ResponsiveDialogPositioner.displayName = "ResponsiveDialogPositioner";
|
|
162
159
|
|
|
163
160
|
export interface ResponsiveDialogBackdropProps
|
|
164
|
-
extends SharedProps<
|
|
161
|
+
extends SharedProps<Dialog.BackdropProps, BottomSheet.BackdropProps> {}
|
|
165
162
|
|
|
166
163
|
export const ResponsiveDialogBackdrop = React.forwardRef<
|
|
167
164
|
HTMLDivElement,
|
|
@@ -172,13 +169,13 @@ export const ResponsiveDialogBackdrop = React.forwardRef<
|
|
|
172
169
|
return shouldUseBottomSheet ? (
|
|
173
170
|
<BottomSheetBackdrop ref={ref} {...props} />
|
|
174
171
|
) : (
|
|
175
|
-
<
|
|
172
|
+
<DialogBackdrop ref={ref} {...props} />
|
|
176
173
|
);
|
|
177
174
|
});
|
|
178
175
|
ResponsiveDialogBackdrop.displayName = "ResponsiveDialogBackdrop";
|
|
179
176
|
|
|
180
177
|
export interface ResponsiveDialogContentProps
|
|
181
|
-
extends SharedProps<
|
|
178
|
+
extends SharedProps<Dialog.ContentProps, BottomSheet.ContentProps> {}
|
|
182
179
|
|
|
183
180
|
export const ResponsiveDialogContent = React.forwardRef<
|
|
184
181
|
HTMLDivElement,
|
|
@@ -189,13 +186,13 @@ export const ResponsiveDialogContent = React.forwardRef<
|
|
|
189
186
|
return shouldUseBottomSheet ? (
|
|
190
187
|
<BottomSheetContent ref={ref} {...props} />
|
|
191
188
|
) : (
|
|
192
|
-
<
|
|
189
|
+
<DialogContent ref={ref} {...props} />
|
|
193
190
|
);
|
|
194
191
|
});
|
|
195
192
|
ResponsiveDialogContent.displayName = "ResponsiveDialogContent";
|
|
196
193
|
|
|
197
194
|
export interface ResponsiveDialogHeaderProps
|
|
198
|
-
extends SharedProps<
|
|
195
|
+
extends SharedProps<Dialog.HeaderProps, BottomSheet.HeaderProps> {}
|
|
199
196
|
|
|
200
197
|
export const ResponsiveDialogHeader = React.forwardRef<HTMLDivElement, ResponsiveDialogHeaderProps>(
|
|
201
198
|
(props, ref) => {
|
|
@@ -204,14 +201,14 @@ export const ResponsiveDialogHeader = React.forwardRef<HTMLDivElement, Responsiv
|
|
|
204
201
|
return shouldUseBottomSheet ? (
|
|
205
202
|
<BottomSheetHeader ref={ref} {...props} />
|
|
206
203
|
) : (
|
|
207
|
-
<
|
|
204
|
+
<DialogHeader ref={ref} {...props} />
|
|
208
205
|
);
|
|
209
206
|
},
|
|
210
207
|
);
|
|
211
208
|
ResponsiveDialogHeader.displayName = "ResponsiveDialogHeader";
|
|
212
209
|
|
|
213
210
|
export interface ResponsiveDialogTitleProps
|
|
214
|
-
extends SharedProps<
|
|
211
|
+
extends SharedProps<Dialog.TitleProps, BottomSheet.TitleProps> {}
|
|
215
212
|
|
|
216
213
|
export const ResponsiveDialogTitle = React.forwardRef<
|
|
217
214
|
HTMLHeadingElement,
|
|
@@ -222,13 +219,13 @@ export const ResponsiveDialogTitle = React.forwardRef<
|
|
|
222
219
|
return shouldUseBottomSheet ? (
|
|
223
220
|
<BottomSheetTitle ref={ref} {...props} />
|
|
224
221
|
) : (
|
|
225
|
-
<
|
|
222
|
+
<DialogTitle ref={ref} {...props} />
|
|
226
223
|
);
|
|
227
224
|
});
|
|
228
225
|
ResponsiveDialogTitle.displayName = "ResponsiveDialogTitle";
|
|
229
226
|
|
|
230
227
|
export interface ResponsiveDialogDescriptionProps
|
|
231
|
-
extends SharedProps<
|
|
228
|
+
extends SharedProps<Dialog.DescriptionProps, BottomSheet.DescriptionProps> {}
|
|
232
229
|
|
|
233
230
|
export const ResponsiveDialogDescription = React.forwardRef<
|
|
234
231
|
HTMLParagraphElement,
|
|
@@ -239,13 +236,13 @@ export const ResponsiveDialogDescription = React.forwardRef<
|
|
|
239
236
|
return shouldUseBottomSheet ? (
|
|
240
237
|
<BottomSheetDescription ref={ref} {...props} />
|
|
241
238
|
) : (
|
|
242
|
-
<
|
|
239
|
+
<DialogDescription ref={ref} {...props} />
|
|
243
240
|
);
|
|
244
241
|
});
|
|
245
242
|
ResponsiveDialogDescription.displayName = "ResponsiveDialogDescription";
|
|
246
243
|
|
|
247
244
|
export interface ResponsiveDialogBodyProps
|
|
248
|
-
extends SharedProps<
|
|
245
|
+
extends SharedProps<Dialog.BodyProps, BottomSheet.BodyProps> {}
|
|
249
246
|
|
|
250
247
|
export const ResponsiveDialogBody = React.forwardRef<HTMLDivElement, ResponsiveDialogBodyProps>(
|
|
251
248
|
(props, ref) => {
|
|
@@ -254,14 +251,14 @@ export const ResponsiveDialogBody = React.forwardRef<HTMLDivElement, ResponsiveD
|
|
|
254
251
|
return shouldUseBottomSheet ? (
|
|
255
252
|
<BottomSheetBody ref={ref} {...props} />
|
|
256
253
|
) : (
|
|
257
|
-
<
|
|
254
|
+
<DialogBody ref={ref} {...props} />
|
|
258
255
|
);
|
|
259
256
|
},
|
|
260
257
|
);
|
|
261
258
|
ResponsiveDialogBody.displayName = "ResponsiveDialogBody";
|
|
262
259
|
|
|
263
260
|
export interface ResponsiveDialogFooterProps
|
|
264
|
-
extends SharedProps<
|
|
261
|
+
extends SharedProps<Dialog.FooterProps, BottomSheet.FooterProps> {}
|
|
265
262
|
|
|
266
263
|
export const ResponsiveDialogFooter = React.forwardRef<HTMLDivElement, ResponsiveDialogFooterProps>(
|
|
267
264
|
(props, ref) => {
|
|
@@ -270,7 +267,7 @@ export const ResponsiveDialogFooter = React.forwardRef<HTMLDivElement, Responsiv
|
|
|
270
267
|
return shouldUseBottomSheet ? (
|
|
271
268
|
<BottomSheetFooter ref={ref} {...props} />
|
|
272
269
|
) : (
|
|
273
|
-
<
|
|
270
|
+
<DialogFooter ref={ref} {...props} />
|
|
274
271
|
);
|
|
275
272
|
},
|
|
276
273
|
);
|
|
@@ -281,7 +278,7 @@ ResponsiveDialogFooter.displayName = "ResponsiveDialogFooter";
|
|
|
281
278
|
* composed with an action button via `asChild`.
|
|
282
279
|
*/
|
|
283
280
|
export interface ResponsiveDialogActionProps
|
|
284
|
-
extends SharedProps<
|
|
281
|
+
extends SharedProps<Dialog.ActionProps, Drawer.CloseButtonProps> {}
|
|
285
282
|
|
|
286
283
|
export const ResponsiveDialogAction = React.forwardRef<
|
|
287
284
|
HTMLButtonElement,
|
|
@@ -292,13 +289,13 @@ export const ResponsiveDialogAction = React.forwardRef<
|
|
|
292
289
|
return shouldUseBottomSheet ? (
|
|
293
290
|
<Drawer.CloseButton ref={ref} {...props} />
|
|
294
291
|
) : (
|
|
295
|
-
<
|
|
292
|
+
<DialogAction ref={ref} {...props} />
|
|
296
293
|
);
|
|
297
294
|
});
|
|
298
295
|
ResponsiveDialogAction.displayName = "ResponsiveDialogAction";
|
|
299
296
|
|
|
300
297
|
export interface ResponsiveDialogCloseButtonProps
|
|
301
|
-
extends SharedProps<
|
|
298
|
+
extends SharedProps<Dialog.CloseButtonProps, BottomSheet.CloseButtonProps> {}
|
|
302
299
|
|
|
303
300
|
export const ResponsiveDialogCloseButton = React.forwardRef<
|
|
304
301
|
HTMLButtonElement,
|
|
@@ -309,7 +306,7 @@ export const ResponsiveDialogCloseButton = React.forwardRef<
|
|
|
309
306
|
return shouldUseBottomSheet ? (
|
|
310
307
|
<BottomSheetCloseButton ref={ref} {...props} />
|
|
311
308
|
) : (
|
|
312
|
-
<
|
|
309
|
+
<DialogCloseButton ref={ref} {...props} />
|
|
313
310
|
);
|
|
314
311
|
});
|
|
315
312
|
ResponsiveDialogCloseButton.displayName = "ResponsiveDialogCloseButton";
|
|
@@ -5,6 +5,7 @@ import {
|
|
|
5
5
|
import { Primitive, type PrimitiveProps } from "@seed-design/react-primitive";
|
|
6
6
|
import { SegmentedControl as SegmentedControlPrimitive } from "@seed-design/react-segmented-control";
|
|
7
7
|
import { createSlotRecipeContext } from "../../utils/createSlotRecipeContext";
|
|
8
|
+
import { withContentScale } from "../../utils/withContentScale";
|
|
8
9
|
|
|
9
10
|
const { withProvider, withContext } = createSlotRecipeContext(segmentedControl);
|
|
10
11
|
|
|
@@ -28,9 +29,8 @@ export const SegmentedControlIndicator = withContext<
|
|
|
28
29
|
|
|
29
30
|
export interface SegmentedControlItemProps extends SegmentedControlPrimitive.ItemProps {}
|
|
30
31
|
|
|
31
|
-
export const SegmentedControlItem =
|
|
32
|
-
SegmentedControlPrimitive.Item,
|
|
33
|
-
"item",
|
|
32
|
+
export const SegmentedControlItem = withContentScale(
|
|
33
|
+
withContext<HTMLLabelElement, SegmentedControlItemProps>(SegmentedControlPrimitive.Item, "item"),
|
|
34
34
|
);
|
|
35
35
|
|
|
36
36
|
export interface SegmentedControlItemHiddenInputProps
|
|
@@ -19,6 +19,7 @@ import * as React from "react";
|
|
|
19
19
|
import { createSlotRecipeContext } from "../../utils/createSlotRecipeContext";
|
|
20
20
|
import { createWithStateProps } from "../../utils/createWithStateProps";
|
|
21
21
|
import { splitMultipleVariantsProps } from "../../utils/splitMultipleVariantsProps";
|
|
22
|
+
import { withContentScale } from "../../utils/withContentScale";
|
|
22
23
|
import { InternalIcon, type InternalIconProps } from "../private/Icon";
|
|
23
24
|
|
|
24
25
|
// A select-only combobox spans three specs — the trigger, the floating listbox
|
|
@@ -96,8 +97,8 @@ export interface SelectTriggerProps
|
|
|
96
97
|
extends SelectTriggerVariantProps,
|
|
97
98
|
SelectPrimitive.TriggerProps {}
|
|
98
99
|
|
|
99
|
-
export const SelectTrigger =
|
|
100
|
-
({ className, ...props }, ref) => {
|
|
100
|
+
export const SelectTrigger = withContentScale(
|
|
101
|
+
React.forwardRef<HTMLButtonElement, SelectTriggerProps>(({ className, ...props }, ref) => {
|
|
101
102
|
const [variantProps, otherProps] = selectTrigger.splitVariantProps(props);
|
|
102
103
|
const rootProps = useTriggerProps();
|
|
103
104
|
|
|
@@ -138,7 +139,7 @@ export const SelectTrigger = React.forwardRef<HTMLButtonElement, SelectTriggerPr
|
|
|
138
139
|
/>
|
|
139
140
|
</TriggerClassNamesProvider>
|
|
140
141
|
);
|
|
141
|
-
},
|
|
142
|
+
}),
|
|
142
143
|
);
|
|
143
144
|
SelectTrigger.displayName = "SelectTrigger";
|
|
144
145
|
|
|
@@ -290,8 +291,8 @@ export interface SelectItemProps
|
|
|
290
291
|
prefixIcon?: React.ReactNode;
|
|
291
292
|
}
|
|
292
293
|
|
|
293
|
-
export const SelectItem =
|
|
294
|
-
({ prefixIcon, className, ...props }, ref) => {
|
|
294
|
+
export const SelectItem = withContentScale(
|
|
295
|
+
React.forwardRef<HTMLDivElement, SelectItemProps>(({ prefixIcon, className, ...props }, ref) => {
|
|
295
296
|
const [variantProps, otherProps] = selectItem.splitVariantProps(props);
|
|
296
297
|
const rootProps = useItemProps();
|
|
297
298
|
|
|
@@ -307,7 +308,7 @@ export const SelectItem = React.forwardRef<HTMLDivElement, SelectItemProps>(
|
|
|
307
308
|
/>
|
|
308
309
|
</ItemClassNamesProvider>
|
|
309
310
|
);
|
|
310
|
-
},
|
|
311
|
+
}),
|
|
311
312
|
);
|
|
312
313
|
SelectItem.displayName = "SelectItem";
|
|
313
314
|
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { composeRefs } from "@radix-ui/react-compose-refs";
|
|
1
|
+
import { composeRefs, useComposedRefs } from "@radix-ui/react-compose-refs";
|
|
2
|
+
import { Slottable } from "@radix-ui/react-slot";
|
|
2
3
|
import { selectBox, type SelectBoxVariantProps } from "@seed-design/css/recipes/select-box";
|
|
3
4
|
import {
|
|
4
5
|
selectBoxCheckmark,
|
|
@@ -16,6 +17,7 @@ import {
|
|
|
16
17
|
useCollapsibleContext,
|
|
17
18
|
} from "@seed-design/react-collapsible";
|
|
18
19
|
import { Primitive, type PrimitiveProps } from "@seed-design/react-primitive";
|
|
20
|
+
import { ContentScale, useScaleFeedback } from "@seed-design/react-scale-feedback";
|
|
19
21
|
import clsx from "clsx";
|
|
20
22
|
import {
|
|
21
23
|
createContext,
|
|
@@ -114,6 +116,13 @@ export interface CheckSelectBoxRootProps
|
|
|
114
116
|
footerVisibility?: "when-selected" | "when-not-selected" | "always";
|
|
115
117
|
}
|
|
116
118
|
|
|
119
|
+
/**
|
|
120
|
+
* Assembled by hand instead of through `withContentScale`, because the footer provider has to
|
|
121
|
+
* sit inside the element to read the checkbox context, and `Slot` only recognises a `Slottable`
|
|
122
|
+
* among its direct children. Wrapping the HOC's `Slottable` in the provider would hide it, and
|
|
123
|
+
* `Slot` would then fall back to slotting onto the provider, which drops the class and the ref.
|
|
124
|
+
* Owning both here keeps the provider inside the content scale box, below the `Slottable`.
|
|
125
|
+
*/
|
|
117
126
|
export const CheckSelectBoxRoot = forwardRef<HTMLLabelElement, CheckSelectBoxRootProps>(
|
|
118
127
|
({ footerVisibility = "when-selected", className, children, ...props }, ref) => {
|
|
119
128
|
const [variantProps, otherProps] = selectBox.splitVariantProps(props);
|
|
@@ -122,20 +131,29 @@ export const CheckSelectBoxRoot = forwardRef<HTMLLabelElement, CheckSelectBoxRoo
|
|
|
122
131
|
...variantProps,
|
|
123
132
|
});
|
|
124
133
|
|
|
134
|
+
const { scaleFeedbackRef, scaleFeedbackClassName } = useScaleFeedback();
|
|
135
|
+
const composedRef = useComposedRefs(scaleFeedbackRef, ref);
|
|
136
|
+
|
|
125
137
|
return (
|
|
126
138
|
<ClassNamesProvider value={classNames}>
|
|
127
139
|
<CheckboxPrimitive.Root
|
|
128
|
-
ref={
|
|
129
|
-
className={clsx(classNames.root, className)}
|
|
140
|
+
ref={composedRef}
|
|
141
|
+
className={clsx(scaleFeedbackClassName, classNames.root, className)}
|
|
130
142
|
{...otherProps}
|
|
131
143
|
>
|
|
132
|
-
{
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
144
|
+
<Slottable child={children}>
|
|
145
|
+
{(content) => (
|
|
146
|
+
<ContentScale>
|
|
147
|
+
{footerVisibility === "always" ? (
|
|
148
|
+
content
|
|
149
|
+
) : (
|
|
150
|
+
<FooterVisibilityProvider footerVisibility={footerVisibility}>
|
|
151
|
+
{content}
|
|
152
|
+
</FooterVisibilityProvider>
|
|
153
|
+
)}
|
|
154
|
+
</ContentScale>
|
|
155
|
+
)}
|
|
156
|
+
</Slottable>
|
|
139
157
|
</CheckboxPrimitive.Root>
|
|
140
158
|
</ClassNamesProvider>
|
|
141
159
|
);
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { composeRefs } from "@radix-ui/react-compose-refs";
|
|
1
|
+
import { composeRefs, useComposedRefs } from "@radix-ui/react-compose-refs";
|
|
2
|
+
import { Slottable } from "@radix-ui/react-slot";
|
|
2
3
|
import { selectBox, type SelectBoxVariantProps } from "@seed-design/css/recipes/select-box";
|
|
3
4
|
import {
|
|
4
5
|
selectBoxGroup,
|
|
@@ -15,6 +16,7 @@ import {
|
|
|
15
16
|
RadioGroup as RadioGroupPrimitive,
|
|
16
17
|
useRadioGroupItemContext,
|
|
17
18
|
} from "@seed-design/react-radio-group";
|
|
19
|
+
import { ContentScale, useScaleFeedback } from "@seed-design/react-scale-feedback";
|
|
18
20
|
import {
|
|
19
21
|
createContext,
|
|
20
22
|
forwardRef,
|
|
@@ -113,6 +115,13 @@ export interface RadioSelectBoxItemProps
|
|
|
113
115
|
footerVisibility?: "when-selected" | "when-not-selected" | "always";
|
|
114
116
|
}
|
|
115
117
|
|
|
118
|
+
/**
|
|
119
|
+
* Assembled by hand instead of through `withContentScale`, because the footer provider has to
|
|
120
|
+
* sit inside the element to read the radio item context, and `Slot` only recognises a `Slottable`
|
|
121
|
+
* among its direct children. Wrapping the HOC's `Slottable` in the provider would hide it, and
|
|
122
|
+
* `Slot` would then fall back to slotting onto the provider, which drops the class and the ref.
|
|
123
|
+
* Owning both here keeps the provider inside the content scale box, below the `Slottable`.
|
|
124
|
+
*/
|
|
116
125
|
export const RadioSelectBoxItem = forwardRef<HTMLLabelElement, RadioSelectBoxItemProps>(
|
|
117
126
|
({ footerVisibility = "when-selected", className, children, ...props }, ref) => {
|
|
118
127
|
const [variantProps, otherProps] = selectBox.splitVariantProps(props);
|
|
@@ -121,20 +130,29 @@ export const RadioSelectBoxItem = forwardRef<HTMLLabelElement, RadioSelectBoxIte
|
|
|
121
130
|
...variantProps,
|
|
122
131
|
});
|
|
123
132
|
|
|
133
|
+
const { scaleFeedbackRef, scaleFeedbackClassName } = useScaleFeedback();
|
|
134
|
+
const composedRef = useComposedRefs(scaleFeedbackRef, ref);
|
|
135
|
+
|
|
124
136
|
return (
|
|
125
137
|
<ClassNamesProvider value={classNames}>
|
|
126
138
|
<RadioGroupPrimitive.Item
|
|
127
|
-
ref={
|
|
128
|
-
className={clsx(classNames.root, className)}
|
|
139
|
+
ref={composedRef}
|
|
140
|
+
className={clsx(scaleFeedbackClassName, classNames.root, className)}
|
|
129
141
|
{...otherProps}
|
|
130
142
|
>
|
|
131
|
-
{
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
143
|
+
<Slottable child={children}>
|
|
144
|
+
{(content) => (
|
|
145
|
+
<ContentScale>
|
|
146
|
+
{footerVisibility === "always" ? (
|
|
147
|
+
content
|
|
148
|
+
) : (
|
|
149
|
+
<FooterVisibilityProvider footerVisibility={footerVisibility}>
|
|
150
|
+
{content}
|
|
151
|
+
</FooterVisibilityProvider>
|
|
152
|
+
)}
|
|
153
|
+
</ContentScale>
|
|
154
|
+
)}
|
|
155
|
+
</Slottable>
|
|
138
156
|
</RadioGroupPrimitive.Item>
|
|
139
157
|
</ClassNamesProvider>
|
|
140
158
|
);
|