@seed-design/react 2.6.1 → 3.0.1
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/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/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/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/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
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
export {
|
|
2
|
-
ActionSheetBackdrop as Backdrop,
|
|
3
|
-
ActionSheetPositioner as Positioner,
|
|
4
|
-
ActionSheetContent as Content,
|
|
5
|
-
ActionSheetHeader as Header,
|
|
6
|
-
ActionSheetRoot as Root,
|
|
7
|
-
ActionSheetTitle as Title,
|
|
8
|
-
ActionSheetDescription as Description,
|
|
9
|
-
ActionSheetTrigger as Trigger,
|
|
10
|
-
ActionSheetList as List,
|
|
11
|
-
ActionSheetItem as Item,
|
|
12
|
-
ActionSheetCloseButton as CloseButton,
|
|
13
|
-
type ActionSheetBackdropProps as BackdropProps,
|
|
14
|
-
type ActionSheetPositionerProps as PositionerProps,
|
|
15
|
-
type ActionSheetContentProps as ContentProps,
|
|
16
|
-
type ActionSheetHeaderProps as HeaderProps,
|
|
17
|
-
type ActionSheetRootProps as RootProps,
|
|
18
|
-
type ActionSheetTitleProps as TitleProps,
|
|
19
|
-
type ActionSheetDescriptionProps as DescriptionProps,
|
|
20
|
-
type ActionSheetTriggerProps as TriggerProps,
|
|
21
|
-
type ActionSheetListProps as ListProps,
|
|
22
|
-
type ActionSheetItemProps as ItemProps,
|
|
23
|
-
type ActionSheetCloseButtonProps as CloseButtonProps,
|
|
24
|
-
} from "./ActionSheet";
|
|
@@ -1,192 +0,0 @@
|
|
|
1
|
-
import { actionSheet, type ActionSheetVariantProps } from "@seed-design/css/recipes/action-sheet";
|
|
2
|
-
import {
|
|
3
|
-
actionSheetItem,
|
|
4
|
-
type ActionSheetItemVariantProps,
|
|
5
|
-
} from "@seed-design/css/recipes/action-sheet-item";
|
|
6
|
-
import { Dialog as DialogPrimitive, useDialogContext } from "@seed-design/react-dialog";
|
|
7
|
-
import { Primitive, type PrimitiveProps } from "@seed-design/react-primitive";
|
|
8
|
-
import type * as React from "react";
|
|
9
|
-
import { createRecipeContext } from "../../utils/createRecipeContext";
|
|
10
|
-
import { createSlotRecipeContext } from "../../utils/createSlotRecipeContext";
|
|
11
|
-
import { createWithStateProps } from "../../utils/createWithStateProps";
|
|
12
|
-
|
|
13
|
-
const { withRootProvider, withContext } = createSlotRecipeContext(actionSheet);
|
|
14
|
-
const { withContext: withItemContext } = createRecipeContext(actionSheetItem);
|
|
15
|
-
const withStateProps = createWithStateProps([useDialogContext]);
|
|
16
|
-
|
|
17
|
-
////////////////////////////////////////////////////////////////////////////////////
|
|
18
|
-
|
|
19
|
-
/**
|
|
20
|
-
* @deprecated Use `SwipeableMenuSheet` instead.
|
|
21
|
-
*/
|
|
22
|
-
export interface ActionSheetRootProps extends ActionSheetVariantProps, DialogPrimitive.RootProps {
|
|
23
|
-
/**
|
|
24
|
-
* @default true
|
|
25
|
-
*/
|
|
26
|
-
lazyMount?: DialogPrimitive.RootProps["lazyMount"];
|
|
27
|
-
/**
|
|
28
|
-
* @default true
|
|
29
|
-
*/
|
|
30
|
-
unmountOnExit?: DialogPrimitive.RootProps["unmountOnExit"];
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
/**
|
|
34
|
-
* @deprecated Use `SwipeableMenuSheet` instead.
|
|
35
|
-
*/
|
|
36
|
-
export const ActionSheetRoot = withRootProvider<ActionSheetRootProps>(DialogPrimitive.Root, {
|
|
37
|
-
defaultProps: {
|
|
38
|
-
lazyMount: true,
|
|
39
|
-
unmountOnExit: true,
|
|
40
|
-
},
|
|
41
|
-
});
|
|
42
|
-
|
|
43
|
-
////////////////////////////////////////////////////////////////////////////////////
|
|
44
|
-
|
|
45
|
-
/**
|
|
46
|
-
* @deprecated Use `SwipeableMenuSheet` instead.
|
|
47
|
-
*/
|
|
48
|
-
export interface ActionSheetTriggerProps extends DialogPrimitive.TriggerProps {}
|
|
49
|
-
|
|
50
|
-
/**
|
|
51
|
-
* @deprecated Use `SwipeableMenuSheet` instead.
|
|
52
|
-
*/
|
|
53
|
-
export const ActionSheetTrigger = DialogPrimitive.Trigger;
|
|
54
|
-
|
|
55
|
-
////////////////////////////////////////////////////////////////////////////////////
|
|
56
|
-
|
|
57
|
-
/**
|
|
58
|
-
* @deprecated Use `SwipeableMenuSheet` instead.
|
|
59
|
-
*/
|
|
60
|
-
export interface ActionSheetPositionerProps extends DialogPrimitive.PositionerProps {}
|
|
61
|
-
|
|
62
|
-
/**
|
|
63
|
-
* @deprecated Use `SwipeableMenuSheet` instead.
|
|
64
|
-
*/
|
|
65
|
-
export const ActionSheetPositioner = withContext<HTMLDivElement, ActionSheetPositionerProps>(
|
|
66
|
-
DialogPrimitive.Positioner,
|
|
67
|
-
"positioner",
|
|
68
|
-
);
|
|
69
|
-
|
|
70
|
-
////////////////////////////////////////////////////////////////////////////////////
|
|
71
|
-
|
|
72
|
-
/**
|
|
73
|
-
* @deprecated Use `SwipeableMenuSheet` instead.
|
|
74
|
-
*/
|
|
75
|
-
export interface ActionSheetBackdropProps extends DialogPrimitive.BackdropProps {}
|
|
76
|
-
|
|
77
|
-
/**
|
|
78
|
-
* @deprecated Use `SwipeableMenuSheet` instead.
|
|
79
|
-
*/
|
|
80
|
-
export const ActionSheetBackdrop = withContext<HTMLDivElement, ActionSheetBackdropProps>(
|
|
81
|
-
DialogPrimitive.Backdrop,
|
|
82
|
-
"backdrop",
|
|
83
|
-
);
|
|
84
|
-
|
|
85
|
-
////////////////////////////////////////////////////////////////////////////////////
|
|
86
|
-
|
|
87
|
-
/**
|
|
88
|
-
* @deprecated Use `SwipeableMenuSheet` instead.
|
|
89
|
-
*/
|
|
90
|
-
export interface ActionSheetContentProps extends DialogPrimitive.ContentProps {}
|
|
91
|
-
|
|
92
|
-
/**
|
|
93
|
-
* @deprecated Use `SwipeableMenuSheet` instead.
|
|
94
|
-
*/
|
|
95
|
-
export const ActionSheetContent = withContext<HTMLDivElement, ActionSheetContentProps>(
|
|
96
|
-
DialogPrimitive.Content,
|
|
97
|
-
"content",
|
|
98
|
-
);
|
|
99
|
-
|
|
100
|
-
////////////////////////////////////////////////////////////////////////////////////
|
|
101
|
-
|
|
102
|
-
/**
|
|
103
|
-
* @deprecated Use `SwipeableMenuSheet` instead.
|
|
104
|
-
*/
|
|
105
|
-
export interface ActionSheetHeaderProps
|
|
106
|
-
extends PrimitiveProps,
|
|
107
|
-
React.HTMLAttributes<HTMLDivElement> {}
|
|
108
|
-
|
|
109
|
-
/**
|
|
110
|
-
* @deprecated Use `SwipeableMenuSheet` instead.
|
|
111
|
-
*/
|
|
112
|
-
export const ActionSheetHeader = withContext<HTMLDivElement, ActionSheetHeaderProps>(
|
|
113
|
-
withStateProps(Primitive.div),
|
|
114
|
-
"header",
|
|
115
|
-
);
|
|
116
|
-
|
|
117
|
-
////////////////////////////////////////////////////////////////////////////////////
|
|
118
|
-
|
|
119
|
-
/**
|
|
120
|
-
* @deprecated Use `SwipeableMenuSheet` instead.
|
|
121
|
-
*/
|
|
122
|
-
export interface ActionSheetTitleProps extends DialogPrimitive.TitleProps {}
|
|
123
|
-
|
|
124
|
-
/**
|
|
125
|
-
* @deprecated Use `SwipeableMenuSheet` instead.
|
|
126
|
-
*/
|
|
127
|
-
export const ActionSheetTitle = withContext<HTMLHeadingElement, ActionSheetTitleProps>(
|
|
128
|
-
withStateProps(Primitive.h2),
|
|
129
|
-
"title",
|
|
130
|
-
);
|
|
131
|
-
|
|
132
|
-
////////////////////////////////////////////////////////////////////////////////////
|
|
133
|
-
|
|
134
|
-
/**
|
|
135
|
-
* @deprecated Use `SwipeableMenuSheet` instead.
|
|
136
|
-
*/
|
|
137
|
-
export interface ActionSheetDescriptionProps extends DialogPrimitive.DescriptionProps {}
|
|
138
|
-
|
|
139
|
-
/**
|
|
140
|
-
* @deprecated Use `SwipeableMenuSheet` instead.
|
|
141
|
-
*/
|
|
142
|
-
export const ActionSheetDescription = withContext<
|
|
143
|
-
HTMLParagraphElement,
|
|
144
|
-
ActionSheetDescriptionProps
|
|
145
|
-
>(withStateProps(Primitive.p), "description");
|
|
146
|
-
|
|
147
|
-
////////////////////////////////////////////////////////////////////////////////////
|
|
148
|
-
|
|
149
|
-
/**
|
|
150
|
-
* @deprecated Use `SwipeableMenuSheet` instead.
|
|
151
|
-
*/
|
|
152
|
-
export interface ActionSheetListProps extends React.HTMLAttributes<HTMLDivElement> {}
|
|
153
|
-
|
|
154
|
-
/**
|
|
155
|
-
* @deprecated Use `SwipeableMenuSheet` instead.
|
|
156
|
-
*/
|
|
157
|
-
export const ActionSheetList = withContext<HTMLDivElement, ActionSheetListProps>(
|
|
158
|
-
withStateProps(Primitive.div),
|
|
159
|
-
"list",
|
|
160
|
-
);
|
|
161
|
-
|
|
162
|
-
////////////////////////////////////////////////////////////////////////////////////
|
|
163
|
-
|
|
164
|
-
/**
|
|
165
|
-
* @deprecated Use `SwipeableMenuSheet` instead.
|
|
166
|
-
*/
|
|
167
|
-
export interface ActionSheetItemProps
|
|
168
|
-
extends PrimitiveProps,
|
|
169
|
-
ActionSheetItemVariantProps,
|
|
170
|
-
React.HTMLAttributes<HTMLButtonElement> {}
|
|
171
|
-
|
|
172
|
-
/**
|
|
173
|
-
* @deprecated Use `SwipeableMenuSheet` instead.
|
|
174
|
-
*/
|
|
175
|
-
export const ActionSheetItem = withItemContext<HTMLButtonElement, ActionSheetItemProps>(
|
|
176
|
-
withStateProps(Primitive.button),
|
|
177
|
-
);
|
|
178
|
-
|
|
179
|
-
////////////////////////////////////////////////////////////////////////////////////
|
|
180
|
-
|
|
181
|
-
/**
|
|
182
|
-
* @deprecated Use `SwipeableMenuSheet` instead.
|
|
183
|
-
*/
|
|
184
|
-
export interface ActionSheetCloseButtonProps extends DialogPrimitive.CloseButtonProps {}
|
|
185
|
-
|
|
186
|
-
/**
|
|
187
|
-
* @deprecated Use `SwipeableMenuSheet` instead.
|
|
188
|
-
*/
|
|
189
|
-
export const ActionSheetCloseButton = withContext<HTMLDivElement, ActionSheetCloseButtonProps>(
|
|
190
|
-
DialogPrimitive.CloseButton,
|
|
191
|
-
"closeButton",
|
|
192
|
-
);
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
export {
|
|
2
|
-
ActionSheetBackdrop,
|
|
3
|
-
ActionSheetPositioner,
|
|
4
|
-
ActionSheetContent,
|
|
5
|
-
ActionSheetHeader,
|
|
6
|
-
ActionSheetRoot,
|
|
7
|
-
ActionSheetTitle,
|
|
8
|
-
ActionSheetDescription,
|
|
9
|
-
ActionSheetTrigger,
|
|
10
|
-
ActionSheetList,
|
|
11
|
-
ActionSheetItem,
|
|
12
|
-
ActionSheetCloseButton,
|
|
13
|
-
type ActionSheetBackdropProps,
|
|
14
|
-
type ActionSheetPositionerProps,
|
|
15
|
-
type ActionSheetContentProps,
|
|
16
|
-
type ActionSheetHeaderProps,
|
|
17
|
-
type ActionSheetRootProps,
|
|
18
|
-
type ActionSheetTitleProps,
|
|
19
|
-
type ActionSheetDescriptionProps,
|
|
20
|
-
type ActionSheetTriggerProps,
|
|
21
|
-
type ActionSheetListProps,
|
|
22
|
-
type ActionSheetItemProps,
|
|
23
|
-
type ActionSheetCloseButtonProps,
|
|
24
|
-
} from "./ActionSheet";
|
|
25
|
-
|
|
26
|
-
export * as ActionSheet from "./ActionSheet.namespace";
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import type { DistributiveOmit } from "../../utils/styled";
|
|
3
|
-
import { Box, type BoxProps } from "../Box/Box";
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* @deprecated Use `HStack` instead.
|
|
7
|
-
*/
|
|
8
|
-
export type ColumnsProps = DistributiveOmit<BoxProps, "display" | "direction">;
|
|
9
|
-
|
|
10
|
-
/**
|
|
11
|
-
* @deprecated Use `HStack` instead.
|
|
12
|
-
*/
|
|
13
|
-
export const Columns = React.forwardRef<HTMLDivElement, ColumnsProps>((props, ref) => {
|
|
14
|
-
return (
|
|
15
|
-
<Box
|
|
16
|
-
ref={ref}
|
|
17
|
-
display="flex"
|
|
18
|
-
flexDirection="row"
|
|
19
|
-
flexWrap="nowrap"
|
|
20
|
-
justifyContent="flex-start"
|
|
21
|
-
{...props}
|
|
22
|
-
/>
|
|
23
|
-
);
|
|
24
|
-
});
|
|
25
|
-
|
|
26
|
-
/**
|
|
27
|
-
* @deprecated Use `HStack` instead.
|
|
28
|
-
*/
|
|
29
|
-
export type ColumnProps = DistributiveOmit<BoxProps, "display" | "flexDirection" | "width"> & {
|
|
30
|
-
width?: BoxProps["width"] | "content";
|
|
31
|
-
};
|
|
32
|
-
|
|
33
|
-
/**
|
|
34
|
-
* @deprecated Use `HStack` instead.
|
|
35
|
-
*/
|
|
36
|
-
export const Column = React.forwardRef<HTMLDivElement, ColumnProps>((props, ref) => {
|
|
37
|
-
const { width, ...otherProps } = props;
|
|
38
|
-
|
|
39
|
-
return (
|
|
40
|
-
<Box
|
|
41
|
-
ref={ref}
|
|
42
|
-
display="flex"
|
|
43
|
-
flexDirection="column"
|
|
44
|
-
width={width !== "content" ? "full" : undefined}
|
|
45
|
-
flexShrink={width ? 0 : undefined}
|
|
46
|
-
flexGrow={width ? 0 : 1}
|
|
47
|
-
{...otherProps}
|
|
48
|
-
/>
|
|
49
|
-
);
|
|
50
|
-
});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { Columns, Column, type ColumnsProps, type ColumnProps } from "./Columns";
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
export {
|
|
2
|
-
ContentDialogBackdrop as Backdrop,
|
|
3
|
-
ContentDialogPositioner as Positioner,
|
|
4
|
-
ContentDialogContent as Content,
|
|
5
|
-
ContentDialogBody as Body,
|
|
6
|
-
ContentDialogDescription as Description,
|
|
7
|
-
ContentDialogFooter as Footer,
|
|
8
|
-
ContentDialogHeader as Header,
|
|
9
|
-
ContentDialogRoot as Root,
|
|
10
|
-
ContentDialogTitle as Title,
|
|
11
|
-
ContentDialogTrigger as Trigger,
|
|
12
|
-
ContentDialogAction as Action,
|
|
13
|
-
ContentDialogCloseButton as CloseButton,
|
|
14
|
-
type ContentDialogBackdropProps as BackdropProps,
|
|
15
|
-
type ContentDialogPositionerProps as PositionerProps,
|
|
16
|
-
type ContentDialogContentProps as ContentProps,
|
|
17
|
-
type ContentDialogBodyProps as BodyProps,
|
|
18
|
-
type ContentDialogDescriptionProps as DescriptionProps,
|
|
19
|
-
type ContentDialogFooterProps as FooterProps,
|
|
20
|
-
type ContentDialogHeaderProps as HeaderProps,
|
|
21
|
-
type ContentDialogRootProps as RootProps,
|
|
22
|
-
type ContentDialogTitleProps as TitleProps,
|
|
23
|
-
type ContentDialogTriggerProps as TriggerProps,
|
|
24
|
-
type ContentDialogActionProps as ActionProps,
|
|
25
|
-
type ContentDialogCloseButtonProps as CloseButtonProps,
|
|
26
|
-
} from "./ContentDialog";
|
|
@@ -1,224 +0,0 @@
|
|
|
1
|
-
import { composeRefs, useComposedRefs } from "@radix-ui/react-compose-refs";
|
|
2
|
-
import {
|
|
3
|
-
contentDialog,
|
|
4
|
-
type ContentDialogVariantProps,
|
|
5
|
-
} from "@seed-design/css/recipes/content-dialog";
|
|
6
|
-
import { dataAttr } from "@seed-design/dom-utils";
|
|
7
|
-
import { Dialog as DialogPrimitive } from "@seed-design/react-dialog";
|
|
8
|
-
import { Primitive, type PrimitiveProps } from "@seed-design/react-primitive";
|
|
9
|
-
import clsx from "clsx";
|
|
10
|
-
import * as React from "react";
|
|
11
|
-
import { createRenderTrackingContext } from "../../utils/createRenderTrackingContext";
|
|
12
|
-
import { createSlotRecipeContext } from "../../utils/createSlotRecipeContext";
|
|
13
|
-
import { useScaleFeedback } from "@seed-design/react-scale-feedback";
|
|
14
|
-
import { useStyleProps, withStyleProps, type StyleProps } from "../../utils/styled";
|
|
15
|
-
|
|
16
|
-
const { withContext, useClassNames, ClassNamesProvider } = createSlotRecipeContext(contentDialog);
|
|
17
|
-
|
|
18
|
-
const closeButtonTracker = createRenderTrackingContext("ContentDialogCloseButton");
|
|
19
|
-
|
|
20
|
-
////////////////////////////////////////////////////////////////////////////////////
|
|
21
|
-
|
|
22
|
-
export interface ContentDialogRootProps
|
|
23
|
-
extends ContentDialogVariantProps,
|
|
24
|
-
Omit<DialogPrimitive.RootProps, "role"> {
|
|
25
|
-
/**
|
|
26
|
-
* @default true
|
|
27
|
-
*/
|
|
28
|
-
lazyMount?: DialogPrimitive.RootProps["lazyMount"];
|
|
29
|
-
/**
|
|
30
|
-
* @default true
|
|
31
|
-
*/
|
|
32
|
-
unmountOnExit?: DialogPrimitive.RootProps["unmountOnExit"];
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
export function ContentDialogRoot(props: ContentDialogRootProps) {
|
|
36
|
-
const [variantProps, otherProps] = contentDialog.splitVariantProps({
|
|
37
|
-
lazyMount: true,
|
|
38
|
-
unmountOnExit: true,
|
|
39
|
-
...props,
|
|
40
|
-
});
|
|
41
|
-
const classNames = contentDialog(variantProps);
|
|
42
|
-
|
|
43
|
-
return (
|
|
44
|
-
<ClassNamesProvider value={classNames}>
|
|
45
|
-
<closeButtonTracker.Provider>
|
|
46
|
-
<DialogPrimitive.Root {...otherProps} />
|
|
47
|
-
</closeButtonTracker.Provider>
|
|
48
|
-
</ClassNamesProvider>
|
|
49
|
-
);
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
////////////////////////////////////////////////////////////////////////////////////
|
|
53
|
-
|
|
54
|
-
export interface ContentDialogTriggerProps extends DialogPrimitive.TriggerProps {}
|
|
55
|
-
|
|
56
|
-
export const ContentDialogTrigger = DialogPrimitive.Trigger;
|
|
57
|
-
|
|
58
|
-
////////////////////////////////////////////////////////////////////////////////////
|
|
59
|
-
|
|
60
|
-
export interface ContentDialogPositionerProps extends DialogPrimitive.PositionerProps {}
|
|
61
|
-
|
|
62
|
-
export const ContentDialogPositioner = withContext<HTMLDivElement, ContentDialogPositionerProps>(
|
|
63
|
-
DialogPrimitive.Positioner,
|
|
64
|
-
"positioner",
|
|
65
|
-
);
|
|
66
|
-
|
|
67
|
-
////////////////////////////////////////////////////////////////////////////////////
|
|
68
|
-
|
|
69
|
-
export interface ContentDialogBackdropProps extends DialogPrimitive.BackdropProps {}
|
|
70
|
-
|
|
71
|
-
export const ContentDialogBackdrop = withContext<HTMLDivElement, ContentDialogBackdropProps>(
|
|
72
|
-
DialogPrimitive.Backdrop,
|
|
73
|
-
"backdrop",
|
|
74
|
-
);
|
|
75
|
-
|
|
76
|
-
////////////////////////////////////////////////////////////////////////////////////
|
|
77
|
-
|
|
78
|
-
export interface ContentDialogContentProps
|
|
79
|
-
extends DialogPrimitive.ContentProps,
|
|
80
|
-
Pick<StyleProps, "width" | "maxWidth"> {}
|
|
81
|
-
|
|
82
|
-
export const ContentDialogContent = withContext<HTMLDivElement, ContentDialogContentProps>(
|
|
83
|
-
withStyleProps(DialogPrimitive.Content),
|
|
84
|
-
"content",
|
|
85
|
-
);
|
|
86
|
-
|
|
87
|
-
////////////////////////////////////////////////////////////////////////////////////
|
|
88
|
-
|
|
89
|
-
export interface ContentDialogHeaderProps
|
|
90
|
-
extends PrimitiveProps,
|
|
91
|
-
React.HTMLAttributes<HTMLDivElement> {}
|
|
92
|
-
|
|
93
|
-
export const ContentDialogHeader = React.forwardRef<HTMLDivElement, ContentDialogHeaderProps>(
|
|
94
|
-
({ className, ...props }, ref) => {
|
|
95
|
-
const classNames = useClassNames();
|
|
96
|
-
const { isRendered } = closeButtonTracker.useRenderTracking();
|
|
97
|
-
|
|
98
|
-
return (
|
|
99
|
-
<Primitive.div
|
|
100
|
-
ref={ref}
|
|
101
|
-
data-show-close-button={dataAttr(isRendered)}
|
|
102
|
-
className={clsx(classNames.header, className)}
|
|
103
|
-
{...props}
|
|
104
|
-
/>
|
|
105
|
-
);
|
|
106
|
-
},
|
|
107
|
-
);
|
|
108
|
-
|
|
109
|
-
ContentDialogHeader.displayName = "ContentDialogHeader";
|
|
110
|
-
|
|
111
|
-
////////////////////////////////////////////////////////////////////////////////////
|
|
112
|
-
|
|
113
|
-
export interface ContentDialogTitleProps extends DialogPrimitive.TitleProps {}
|
|
114
|
-
|
|
115
|
-
export const ContentDialogTitle = withContext<HTMLHeadingElement, ContentDialogTitleProps>(
|
|
116
|
-
DialogPrimitive.Title,
|
|
117
|
-
"title",
|
|
118
|
-
);
|
|
119
|
-
|
|
120
|
-
////////////////////////////////////////////////////////////////////////////////////
|
|
121
|
-
|
|
122
|
-
export interface ContentDialogDescriptionProps extends DialogPrimitive.DescriptionProps {}
|
|
123
|
-
|
|
124
|
-
export const ContentDialogDescription = withContext<
|
|
125
|
-
HTMLParagraphElement,
|
|
126
|
-
ContentDialogDescriptionProps
|
|
127
|
-
>(DialogPrimitive.Description, "description");
|
|
128
|
-
|
|
129
|
-
////////////////////////////////////////////////////////////////////////////////////
|
|
130
|
-
|
|
131
|
-
export interface ContentDialogBodyProps
|
|
132
|
-
extends PrimitiveProps,
|
|
133
|
-
Pick<StyleProps, "paddingX" | "minHeight" | "maxHeight" | "justifyContent" | "alignItems">,
|
|
134
|
-
React.HTMLAttributes<HTMLDivElement> {}
|
|
135
|
-
|
|
136
|
-
export const ContentDialogBody = React.forwardRef<HTMLDivElement, ContentDialogBodyProps>(
|
|
137
|
-
(props, forwardedRef) => {
|
|
138
|
-
const classNames = useClassNames();
|
|
139
|
-
const { style, restProps } = useStyleProps(props);
|
|
140
|
-
const { className, ...otherProps } = restProps;
|
|
141
|
-
|
|
142
|
-
const ref = React.useRef<HTMLDivElement>(null);
|
|
143
|
-
const [scrolled, setScrolled] = React.useState(false);
|
|
144
|
-
const [overflowing, setOverflowing] = React.useState(false);
|
|
145
|
-
|
|
146
|
-
React.useEffect(() => {
|
|
147
|
-
const element = ref.current;
|
|
148
|
-
if (!element) return;
|
|
149
|
-
|
|
150
|
-
const check = () => {
|
|
151
|
-
setScrolled(element.scrollTop > 0);
|
|
152
|
-
// Subtract the current bottom padding so overflow detection stays independent
|
|
153
|
-
// of the padding we conditionally apply — otherwise that padding would count as
|
|
154
|
-
// overflow and the state would never settle (padding -> overflow -> padding...).
|
|
155
|
-
const paddingBottom = Number.parseFloat(getComputedStyle(element).paddingBottom) || 0;
|
|
156
|
-
setOverflowing(element.scrollHeight - paddingBottom > element.clientHeight);
|
|
157
|
-
};
|
|
158
|
-
check();
|
|
159
|
-
|
|
160
|
-
element.addEventListener("scroll", check);
|
|
161
|
-
|
|
162
|
-
const observer = new ResizeObserver(check);
|
|
163
|
-
observer.observe(element);
|
|
164
|
-
|
|
165
|
-
return () => {
|
|
166
|
-
element.removeEventListener("scroll", check);
|
|
167
|
-
observer.disconnect();
|
|
168
|
-
};
|
|
169
|
-
}, []);
|
|
170
|
-
|
|
171
|
-
return (
|
|
172
|
-
<Primitive.div
|
|
173
|
-
ref={composeRefs(ref, forwardedRef)}
|
|
174
|
-
data-scrolled={dataAttr(scrolled)}
|
|
175
|
-
data-overflow={dataAttr(overflowing)}
|
|
176
|
-
className={clsx(classNames.body, className)}
|
|
177
|
-
style={style}
|
|
178
|
-
{...otherProps}
|
|
179
|
-
/>
|
|
180
|
-
);
|
|
181
|
-
},
|
|
182
|
-
);
|
|
183
|
-
|
|
184
|
-
ContentDialogBody.displayName = "ContentDialogBody";
|
|
185
|
-
|
|
186
|
-
////////////////////////////////////////////////////////////////////////////////////
|
|
187
|
-
|
|
188
|
-
export interface ContentDialogFooterProps
|
|
189
|
-
extends PrimitiveProps,
|
|
190
|
-
React.HTMLAttributes<HTMLDivElement> {}
|
|
191
|
-
|
|
192
|
-
export const ContentDialogFooter = withContext<HTMLDivElement, ContentDialogFooterProps>(
|
|
193
|
-
Primitive.div,
|
|
194
|
-
"footer",
|
|
195
|
-
);
|
|
196
|
-
|
|
197
|
-
////////////////////////////////////////////////////////////////////////////////////
|
|
198
|
-
|
|
199
|
-
export interface ContentDialogActionProps extends DialogPrimitive.CloseButtonProps {}
|
|
200
|
-
|
|
201
|
-
export const ContentDialogAction = DialogPrimitive.CloseButton;
|
|
202
|
-
|
|
203
|
-
////////////////////////////////////////////////////////////////////////////////////
|
|
204
|
-
|
|
205
|
-
export interface ContentDialogCloseButtonProps extends DialogPrimitive.CloseButtonProps {}
|
|
206
|
-
|
|
207
|
-
export const ContentDialogCloseButton = React.forwardRef<
|
|
208
|
-
HTMLButtonElement,
|
|
209
|
-
ContentDialogCloseButtonProps
|
|
210
|
-
>(({ className, ...props }, ref) => {
|
|
211
|
-
const classNames = useClassNames();
|
|
212
|
-
const { trackRef } = closeButtonTracker.useRenderTracking();
|
|
213
|
-
const { scaleFeedbackRef, scaleFeedbackClassName } = useScaleFeedback();
|
|
214
|
-
|
|
215
|
-
return (
|
|
216
|
-
<DialogPrimitive.CloseButton
|
|
217
|
-
ref={useComposedRefs(scaleFeedbackRef, ref, trackRef)}
|
|
218
|
-
className={clsx(classNames.closeButton, scaleFeedbackClassName, className)}
|
|
219
|
-
{...props}
|
|
220
|
-
/>
|
|
221
|
-
);
|
|
222
|
-
});
|
|
223
|
-
|
|
224
|
-
ContentDialogCloseButton.displayName = "ContentDialogCloseButton";
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
// NOTE: dialog naming is mid-rename; rootage/vars already use the new names, recipes and react components still use the old ones.
|
|
2
|
-
// Semantically (= snippet naming), this component is the Dialog:
|
|
3
|
-
// snippet AlertDialog → react Dialog → recipe "dialog" → vars alertDialog
|
|
4
|
-
// snippet Dialog → react ContentDialog → recipe "content-dialog" → vars dialog
|
|
5
|
-
|
|
6
|
-
export {
|
|
7
|
-
ContentDialogBackdrop,
|
|
8
|
-
ContentDialogPositioner,
|
|
9
|
-
ContentDialogContent,
|
|
10
|
-
ContentDialogBody,
|
|
11
|
-
ContentDialogDescription,
|
|
12
|
-
ContentDialogFooter,
|
|
13
|
-
ContentDialogHeader,
|
|
14
|
-
ContentDialogRoot,
|
|
15
|
-
ContentDialogTitle,
|
|
16
|
-
ContentDialogTrigger,
|
|
17
|
-
ContentDialogAction,
|
|
18
|
-
ContentDialogCloseButton,
|
|
19
|
-
type ContentDialogBackdropProps,
|
|
20
|
-
type ContentDialogPositionerProps,
|
|
21
|
-
type ContentDialogContentProps,
|
|
22
|
-
type ContentDialogBodyProps,
|
|
23
|
-
type ContentDialogDescriptionProps,
|
|
24
|
-
type ContentDialogFooterProps,
|
|
25
|
-
type ContentDialogHeaderProps,
|
|
26
|
-
type ContentDialogRootProps,
|
|
27
|
-
type ContentDialogTitleProps,
|
|
28
|
-
type ContentDialogTriggerProps,
|
|
29
|
-
type ContentDialogActionProps,
|
|
30
|
-
type ContentDialogCloseButtonProps,
|
|
31
|
-
} from "./ContentDialog";
|
|
32
|
-
|
|
33
|
-
export * as ContentDialog from "./ContentDialog.namespace";
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { controlChip, type ControlChipVariantProps } from "@seed-design/css/recipes/control-chip";
|
|
2
|
-
import { Primitive, type PrimitiveProps } from "@seed-design/react-primitive";
|
|
3
|
-
import type * as React from "react";
|
|
4
|
-
import { createRecipeContext } from "../../utils/createRecipeContext";
|
|
5
|
-
import { withIconRequired } from "../Icon/Icon";
|
|
6
|
-
|
|
7
|
-
const { withContext } = createRecipeContext(controlChip);
|
|
8
|
-
|
|
9
|
-
/**
|
|
10
|
-
* @deprecated ControlChipBaseProps is deprecated. Use ChipBaseProps from Chip instead.
|
|
11
|
-
*/
|
|
12
|
-
export interface ControlChipBaseProps extends PrimitiveProps, ControlChipVariantProps {}
|
|
13
|
-
|
|
14
|
-
/**
|
|
15
|
-
* @deprecated ControlChipProps is deprecated. Use Chip.Toggle or Chip.Button instead.
|
|
16
|
-
*
|
|
17
|
-
* Migration guide:
|
|
18
|
-
* ```tsx
|
|
19
|
-
* // Before
|
|
20
|
-
* <ControlChip size="medium">Label</ControlChip>
|
|
21
|
-
*
|
|
22
|
-
* // After
|
|
23
|
-
* import { Chip } from "@seed-design/react";
|
|
24
|
-
* <Chip.Toggle size="medium" variant="outlineStrong">Label</Chip.Toggle>
|
|
25
|
-
* ```
|
|
26
|
-
*/
|
|
27
|
-
export interface ControlChipProps
|
|
28
|
-
extends ControlChipBaseProps,
|
|
29
|
-
React.HTMLAttributes<HTMLButtonElement> {}
|
|
30
|
-
|
|
31
|
-
/**
|
|
32
|
-
* @deprecated ControlChip is deprecated. Use Chip.Toggle or Chip.Button instead.
|
|
33
|
-
*/
|
|
34
|
-
export const ControlChip = withIconRequired(
|
|
35
|
-
withContext<HTMLButtonElement, ControlChipProps>(Primitive.button),
|
|
36
|
-
(props: ControlChipProps) => props.layout === "iconOnly",
|
|
37
|
-
);
|
|
38
|
-
ControlChip.displayName = "ControlChip";
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
export {
|
|
2
|
-
ExtendedActionSheetBackdrop as Backdrop,
|
|
3
|
-
ExtendedActionSheetPositioner as Positioner,
|
|
4
|
-
ExtendedActionSheetContent as Content,
|
|
5
|
-
ExtendedActionSheetFooter as Footer,
|
|
6
|
-
ExtendedActionSheetHeader as Header,
|
|
7
|
-
ExtendedActionSheetRoot as Root,
|
|
8
|
-
ExtendedActionSheetTitle as Title,
|
|
9
|
-
ExtendedActionSheetTrigger as Trigger,
|
|
10
|
-
ExtendedActionSheetList as List,
|
|
11
|
-
ExtendedActionSheetGroup as Group,
|
|
12
|
-
ExtendedActionSheetItem as Item,
|
|
13
|
-
ExtendedActionSheetCloseButton as CloseButton,
|
|
14
|
-
type ExtendedActionSheetBackdropProps as BackdropProps,
|
|
15
|
-
type ExtendedActionSheetPositionerProps as PositionerProps,
|
|
16
|
-
type ExtendedActionSheetContentProps as ContentProps,
|
|
17
|
-
type ExtendedActionSheetFooterProps as FooterProps,
|
|
18
|
-
type ExtendedActionSheetHeaderProps as HeaderProps,
|
|
19
|
-
type ExtendedActionSheetRootProps as RootProps,
|
|
20
|
-
type ExtendedActionSheetTitleProps as TitleProps,
|
|
21
|
-
type ExtendedActionSheetTriggerProps as TriggerProps,
|
|
22
|
-
type ExtendedActionSheetListProps as ListProps,
|
|
23
|
-
type ExtendedActionSheetGroupProps as GroupProps,
|
|
24
|
-
type ExtendedActionSheetItemProps as ItemProps,
|
|
25
|
-
type ExtendedActionSheetCloseButtonProps as CloseButtonProps,
|
|
26
|
-
} from "./ExtendedActionSheet";
|