@seed-design/react 2.6.0 → 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/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,163 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
|
|
3
|
-
import { timePicker } from "@seed-design/css/recipes/time-picker";
|
|
4
|
-
import { useTimePicker, type UseTimePickerProps } from "@seed-design/react-time-picker";
|
|
5
|
-
import clsx from "clsx";
|
|
6
|
-
import * as React from "react";
|
|
7
|
-
import {
|
|
8
|
-
InternalWheelPickerColumn,
|
|
9
|
-
InternalWheelPickerRoot,
|
|
10
|
-
type InternalWheelPickerRootProps,
|
|
11
|
-
} from "../private/WheelPicker";
|
|
12
|
-
|
|
13
|
-
const ITEM_SIZE = 44;
|
|
14
|
-
const VISIBLE_ITEM_COUNT = 5;
|
|
15
|
-
const DEFAULT_ARIA_LABELS = {
|
|
16
|
-
ko: {
|
|
17
|
-
root: "시간 선택",
|
|
18
|
-
period: "오전/오후",
|
|
19
|
-
hour: "시",
|
|
20
|
-
minute: "분",
|
|
21
|
-
},
|
|
22
|
-
en: {
|
|
23
|
-
root: "Select time",
|
|
24
|
-
period: "AM/PM",
|
|
25
|
-
hour: "Hour",
|
|
26
|
-
minute: "Minute",
|
|
27
|
-
},
|
|
28
|
-
ja: {
|
|
29
|
-
root: "時刻を選択",
|
|
30
|
-
period: "午前/午後",
|
|
31
|
-
hour: "時",
|
|
32
|
-
minute: "分",
|
|
33
|
-
},
|
|
34
|
-
} as const;
|
|
35
|
-
|
|
36
|
-
function getDefaultAriaLabels(locale: string | string[] | undefined) {
|
|
37
|
-
const [canonicalLocale = "ko-KR"] = Intl.getCanonicalLocales(locale ?? "ko-KR");
|
|
38
|
-
const language = new Intl.Locale(canonicalLocale).language;
|
|
39
|
-
|
|
40
|
-
if (language === "ko") return DEFAULT_ARIA_LABELS.ko;
|
|
41
|
-
if (language === "ja") return DEFAULT_ARIA_LABELS.ja;
|
|
42
|
-
return DEFAULT_ARIA_LABELS.en;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
const classNames = timePicker();
|
|
46
|
-
|
|
47
|
-
const columnClassNames = {
|
|
48
|
-
period: classNames.periodColumn,
|
|
49
|
-
hour: classNames.hourColumn,
|
|
50
|
-
minute: classNames.minuteColumn,
|
|
51
|
-
};
|
|
52
|
-
|
|
53
|
-
export interface TimePickerProps
|
|
54
|
-
extends UseTimePickerProps,
|
|
55
|
-
Omit<
|
|
56
|
-
InternalWheelPickerRootProps,
|
|
57
|
-
| keyof UseTimePickerProps
|
|
58
|
-
| "asChild"
|
|
59
|
-
| "children"
|
|
60
|
-
| "columnsClassName"
|
|
61
|
-
| "fogSize"
|
|
62
|
-
| "itemSize"
|
|
63
|
-
| "readOnly"
|
|
64
|
-
| "scrollFogClassName"
|
|
65
|
-
| "selectionIndicatorClassName"
|
|
66
|
-
| "visibleItemCount"
|
|
67
|
-
> {
|
|
68
|
-
/**
|
|
69
|
-
* 오전·오후 컬럼의 접근성 이름입니다.
|
|
70
|
-
* 지정하지 않으면 `locale`에 맞는 기본값을 사용합니다.
|
|
71
|
-
*/
|
|
72
|
-
periodAriaLabel?: string;
|
|
73
|
-
|
|
74
|
-
/**
|
|
75
|
-
* 시 컬럼의 접근성 이름입니다.
|
|
76
|
-
* 지정하지 않으면 `locale`에 맞는 기본값을 사용합니다.
|
|
77
|
-
*/
|
|
78
|
-
hourAriaLabel?: string;
|
|
79
|
-
|
|
80
|
-
/**
|
|
81
|
-
* 분 컬럼의 접근성 이름입니다.
|
|
82
|
-
* 지정하지 않으면 `locale`에 맞는 기본값을 사용합니다.
|
|
83
|
-
*/
|
|
84
|
-
minuteAriaLabel?: string;
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
/**
|
|
88
|
-
* 휠을 스크롤하여 오전·오후, 시, 분을 선택하는 12시간제 시간 선택 컴포넌트입니다.
|
|
89
|
-
*
|
|
90
|
-
* 값은 오전·오후를 별도 필드로 나누지 않고 24시간 형식의 `TimePickerValue`로 주고받습니다.
|
|
91
|
-
*/
|
|
92
|
-
export const TimePicker = React.forwardRef<HTMLDivElement, TimePickerProps>(
|
|
93
|
-
(
|
|
94
|
-
{
|
|
95
|
-
value,
|
|
96
|
-
defaultValue,
|
|
97
|
-
onValueChange,
|
|
98
|
-
minuteStep,
|
|
99
|
-
locale,
|
|
100
|
-
disabled,
|
|
101
|
-
periodAriaLabel,
|
|
102
|
-
hourAriaLabel,
|
|
103
|
-
minuteAriaLabel,
|
|
104
|
-
className,
|
|
105
|
-
"aria-label": ariaLabel,
|
|
106
|
-
"aria-labelledby": ariaLabelledby,
|
|
107
|
-
...props
|
|
108
|
-
},
|
|
109
|
-
ref,
|
|
110
|
-
) => {
|
|
111
|
-
const api = useTimePicker({
|
|
112
|
-
value,
|
|
113
|
-
defaultValue,
|
|
114
|
-
onValueChange,
|
|
115
|
-
minuteStep,
|
|
116
|
-
locale,
|
|
117
|
-
disabled,
|
|
118
|
-
});
|
|
119
|
-
const defaultAriaLabels = getDefaultAriaLabels(locale);
|
|
120
|
-
const ariaLabels = {
|
|
121
|
-
period: periodAriaLabel ?? defaultAriaLabels.period,
|
|
122
|
-
hour: hourAriaLabel ?? defaultAriaLabels.hour,
|
|
123
|
-
minute: minuteAriaLabel ?? defaultAriaLabels.minute,
|
|
124
|
-
};
|
|
125
|
-
|
|
126
|
-
return (
|
|
127
|
-
<InternalWheelPickerRoot
|
|
128
|
-
ref={ref}
|
|
129
|
-
itemSize={ITEM_SIZE}
|
|
130
|
-
visibleItemCount={VISIBLE_ITEM_COUNT}
|
|
131
|
-
disabled={disabled}
|
|
132
|
-
aria-label={ariaLabelledby ? ariaLabel : (ariaLabel ?? defaultAriaLabels.root)}
|
|
133
|
-
aria-labelledby={ariaLabelledby}
|
|
134
|
-
className={clsx(classNames.root, className)}
|
|
135
|
-
columnsClassName={classNames.columns}
|
|
136
|
-
scrollFogClassName={classNames.scrollFog}
|
|
137
|
-
selectionIndicatorClassName={classNames.selectionIndicator}
|
|
138
|
-
{...props}
|
|
139
|
-
>
|
|
140
|
-
{api.columnOrder.map((type) => {
|
|
141
|
-
const column = api.columns[type];
|
|
142
|
-
|
|
143
|
-
return (
|
|
144
|
-
<InternalWheelPickerColumn
|
|
145
|
-
key={type}
|
|
146
|
-
aria-label={ariaLabels[type]}
|
|
147
|
-
className={columnClassNames[type]}
|
|
148
|
-
itemClassName={classNames.item}
|
|
149
|
-
options={column.options}
|
|
150
|
-
value={column.value}
|
|
151
|
-
onValueChange={column.onValueChange}
|
|
152
|
-
loop={column.loop}
|
|
153
|
-
valueChangeBehavior={type === "period" ? "smooth" : "auto"}
|
|
154
|
-
/>
|
|
155
|
-
);
|
|
156
|
-
})}
|
|
157
|
-
</InternalWheelPickerRoot>
|
|
158
|
-
);
|
|
159
|
-
},
|
|
160
|
-
);
|
|
161
|
-
TimePicker.displayName = "TimePicker";
|
|
162
|
-
|
|
163
|
-
export type { MinuteStep, TimePickerValue } from "@seed-design/react-time-picker";
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import { render } from "@testing-library/react";
|
|
2
|
-
import { describe, expect, it } from "bun:test";
|
|
3
|
-
import { InternalWheelPickerColumn, InternalWheelPickerRoot } from "./WheelPicker";
|
|
4
|
-
|
|
5
|
-
const options = [
|
|
6
|
-
{ value: "a", label: "A" },
|
|
7
|
-
{ value: "b", label: "B" },
|
|
8
|
-
];
|
|
9
|
-
|
|
10
|
-
describe("InternalWheelPicker", () => {
|
|
11
|
-
it("여러 컬럼을 하나의 ScrollFog와 Selection Indicator로 조합한다", () => {
|
|
12
|
-
const { container, getAllByRole, getByRole } = render(
|
|
13
|
-
<InternalWheelPickerRoot
|
|
14
|
-
aria-label="내부 휠 피커"
|
|
15
|
-
itemSize={40}
|
|
16
|
-
visibleItemCount={5}
|
|
17
|
-
fogSize={32}
|
|
18
|
-
className="root"
|
|
19
|
-
columnsClassName="columns"
|
|
20
|
-
scrollFogClassName="fog"
|
|
21
|
-
selectionIndicatorClassName="indicator"
|
|
22
|
-
>
|
|
23
|
-
<InternalWheelPickerColumn aria-label="첫 번째" options={options} />
|
|
24
|
-
<InternalWheelPickerColumn aria-label="두 번째" options={options} />
|
|
25
|
-
</InternalWheelPickerRoot>,
|
|
26
|
-
);
|
|
27
|
-
|
|
28
|
-
const root = getByRole("group");
|
|
29
|
-
const fogs = container.querySelectorAll("[data-wheel-picker-scroll-fog]");
|
|
30
|
-
const indicator = container.querySelector("[data-wheel-picker-indicator]");
|
|
31
|
-
const columns = container.querySelector("[data-wheel-picker-columns]");
|
|
32
|
-
const [firstColumn] = getAllByRole("spinbutton");
|
|
33
|
-
|
|
34
|
-
expect(root).toHaveClass("seed-wheel-picker__root", "root");
|
|
35
|
-
expect(root).toHaveStyle({
|
|
36
|
-
"--seed-wheel-picker-item-size": "40px",
|
|
37
|
-
"--seed-wheel-picker-visible-item-count": "5",
|
|
38
|
-
"--seed-wheel-picker-viewport-size": "200px",
|
|
39
|
-
"--seed-wheel-picker-center-offset": "80px",
|
|
40
|
-
});
|
|
41
|
-
expect(fogs).toHaveLength(1);
|
|
42
|
-
expect(fogs[0]).toHaveClass("seed-wheel-picker__scrollFog", "fog");
|
|
43
|
-
expect(fogs[0]).toHaveStyle({
|
|
44
|
-
"--scroll-fog-size-top": "32px",
|
|
45
|
-
"--scroll-fog-size-bottom": "32px",
|
|
46
|
-
});
|
|
47
|
-
expect(indicator).toHaveClass("seed-wheel-picker__selectionIndicator", "indicator");
|
|
48
|
-
expect(indicator).toHaveAttribute("aria-hidden", "true");
|
|
49
|
-
expect(columns).toHaveClass("seed-wheel-picker__columns", "columns");
|
|
50
|
-
expect(getAllByRole("spinbutton")).toHaveLength(2);
|
|
51
|
-
expect(firstColumn).toHaveClass("seed-wheel-picker__column");
|
|
52
|
-
expect(firstColumn).not.toHaveClass("seed-wheel-picker-public__column");
|
|
53
|
-
expect(firstColumn.firstElementChild).toHaveClass("seed-wheel-picker__item");
|
|
54
|
-
});
|
|
55
|
-
});
|
|
@@ -1,110 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
|
|
3
|
-
import { wheelPicker } from "@seed-design/css/recipes/wheel-picker";
|
|
4
|
-
import { Primitive } from "@seed-design/react-primitive";
|
|
5
|
-
import { WheelPicker as WheelPickerPrimitive } from "@seed-design/react-wheel-picker";
|
|
6
|
-
import clsx from "clsx";
|
|
7
|
-
import * as React from "react";
|
|
8
|
-
import { ScrollFog, type ScrollFogProps } from "../ScrollFog/ScrollFog";
|
|
9
|
-
|
|
10
|
-
const classNames = wheelPicker();
|
|
11
|
-
|
|
12
|
-
type WheelPickerCssProperties = React.CSSProperties & {
|
|
13
|
-
"--seed-wheel-picker-item-size"?: string;
|
|
14
|
-
"--seed-wheel-picker-visible-item-count"?: number;
|
|
15
|
-
"--seed-wheel-picker-viewport-size"?: string;
|
|
16
|
-
"--seed-wheel-picker-center-offset"?: string;
|
|
17
|
-
};
|
|
18
|
-
|
|
19
|
-
export interface InternalWheelPickerRootProps
|
|
20
|
-
extends Omit<WheelPickerPrimitive.RootProps, "asChild" | "children"> {
|
|
21
|
-
children: React.ReactNode;
|
|
22
|
-
columnsClassName?: string;
|
|
23
|
-
scrollFogClassName?: string;
|
|
24
|
-
selectionIndicatorClassName?: string;
|
|
25
|
-
fogSize?: ScrollFogProps["size"];
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
export const InternalWheelPickerRoot = React.forwardRef<
|
|
29
|
-
HTMLDivElement,
|
|
30
|
-
InternalWheelPickerRootProps
|
|
31
|
-
>(
|
|
32
|
-
(
|
|
33
|
-
{
|
|
34
|
-
children,
|
|
35
|
-
className,
|
|
36
|
-
columnsClassName,
|
|
37
|
-
scrollFogClassName,
|
|
38
|
-
selectionIndicatorClassName,
|
|
39
|
-
fogSize,
|
|
40
|
-
itemSize,
|
|
41
|
-
visibleItemCount,
|
|
42
|
-
style,
|
|
43
|
-
...props
|
|
44
|
-
},
|
|
45
|
-
ref,
|
|
46
|
-
) => {
|
|
47
|
-
const centerOffset = ((visibleItemCount - 1) / 2) * itemSize;
|
|
48
|
-
const wheelPickerStyle: WheelPickerCssProperties = {
|
|
49
|
-
...style,
|
|
50
|
-
"--seed-wheel-picker-item-size": `${itemSize}px`,
|
|
51
|
-
"--seed-wheel-picker-visible-item-count": visibleItemCount,
|
|
52
|
-
"--seed-wheel-picker-viewport-size": `${itemSize * visibleItemCount}px`,
|
|
53
|
-
"--seed-wheel-picker-center-offset": `${centerOffset}px`,
|
|
54
|
-
};
|
|
55
|
-
|
|
56
|
-
return (
|
|
57
|
-
<WheelPickerPrimitive.Root
|
|
58
|
-
ref={ref}
|
|
59
|
-
itemSize={itemSize}
|
|
60
|
-
visibleItemCount={visibleItemCount}
|
|
61
|
-
className={clsx(classNames.root, className)}
|
|
62
|
-
style={wheelPickerStyle}
|
|
63
|
-
{...props}
|
|
64
|
-
>
|
|
65
|
-
<Primitive.div
|
|
66
|
-
aria-hidden
|
|
67
|
-
className={clsx(classNames.selectionIndicator, selectionIndicatorClassName)}
|
|
68
|
-
data-wheel-picker-indicator=""
|
|
69
|
-
/>
|
|
70
|
-
<ScrollFog
|
|
71
|
-
className={clsx(classNames.scrollFog, scrollFogClassName)}
|
|
72
|
-
placement={["top", "bottom"]}
|
|
73
|
-
size={fogSize}
|
|
74
|
-
hideScrollBar
|
|
75
|
-
data-wheel-picker-scroll-fog=""
|
|
76
|
-
>
|
|
77
|
-
<Primitive.div
|
|
78
|
-
className={clsx(classNames.columns, columnsClassName)}
|
|
79
|
-
data-wheel-picker-columns=""
|
|
80
|
-
>
|
|
81
|
-
{children}
|
|
82
|
-
</Primitive.div>
|
|
83
|
-
</ScrollFog>
|
|
84
|
-
</WheelPickerPrimitive.Root>
|
|
85
|
-
);
|
|
86
|
-
},
|
|
87
|
-
);
|
|
88
|
-
InternalWheelPickerRoot.displayName = "InternalWheelPickerRoot";
|
|
89
|
-
|
|
90
|
-
export interface InternalWheelPickerColumnProps
|
|
91
|
-
extends Omit<WheelPickerPrimitive.ColumnProps, "asChild" | "renderOption"> {
|
|
92
|
-
itemClassName?: string;
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
export const InternalWheelPickerColumn = React.forwardRef<
|
|
96
|
-
HTMLDivElement,
|
|
97
|
-
InternalWheelPickerColumnProps
|
|
98
|
-
>(({ className, itemClassName, ...props }, ref) => (
|
|
99
|
-
<WheelPickerPrimitive.Column
|
|
100
|
-
ref={ref}
|
|
101
|
-
className={clsx(classNames.column, className)}
|
|
102
|
-
renderOption={(option, optionProps) => (
|
|
103
|
-
<Primitive.div className={clsx(classNames.item, itemClassName)} {...optionProps}>
|
|
104
|
-
{option.label}
|
|
105
|
-
</Primitive.div>
|
|
106
|
-
)}
|
|
107
|
-
{...props}
|
|
108
|
-
/>
|
|
109
|
-
));
|
|
110
|
-
InternalWheelPickerColumn.displayName = "InternalWheelPickerColumn";
|
package/src/primitive.ts
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
export * from "@seed-design/react-attachment-display";
|
|
2
|
-
export * from "@seed-design/react-avatar";
|
|
3
|
-
export * from "@seed-design/react-checkbox";
|
|
4
|
-
export * from "@seed-design/react-dialog";
|
|
5
|
-
export * from "@seed-design/react-file-upload";
|
|
6
|
-
export * from "@seed-design/react-middle-truncate";
|
|
7
|
-
export * from "@seed-design/react-navigation-menu";
|
|
8
|
-
export * from "@seed-design/react-popover";
|
|
9
|
-
export * from "@seed-design/react-progress";
|
|
10
|
-
export * from "@seed-design/react-pull-to-refresh";
|
|
11
|
-
export * from "@seed-design/react-radio-group";
|
|
12
|
-
export * from "@seed-design/react-side-navigation";
|
|
13
|
-
export * from "@seed-design/react-slider";
|
|
14
|
-
export * from "@seed-design/react-snackbar";
|
|
15
|
-
export * from "@seed-design/react-switch";
|
|
16
|
-
export * from "@seed-design/react-tabs";
|
|
17
|
-
export * from "@seed-design/react-toggle";
|