@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,220 +0,0 @@
|
|
|
1
|
-
import { Dialog as DialogPrimitive, useDialogContext } from "@seed-design/react-dialog";
|
|
2
|
-
import { Primitive, type PrimitiveProps } from "@seed-design/react-primitive";
|
|
3
|
-
import {
|
|
4
|
-
extendedActionSheet,
|
|
5
|
-
type ExtendedActionSheetVariantProps,
|
|
6
|
-
} from "@seed-design/css/recipes/extended-action-sheet";
|
|
7
|
-
import {
|
|
8
|
-
extendedActionSheetItem,
|
|
9
|
-
type ExtendedActionSheetItemVariantProps,
|
|
10
|
-
} from "@seed-design/css/recipes/extended-action-sheet-item";
|
|
11
|
-
import type * as React from "react";
|
|
12
|
-
import { createRecipeContext } from "../../utils/createRecipeContext";
|
|
13
|
-
import { createSlotRecipeContext } from "../../utils/createSlotRecipeContext";
|
|
14
|
-
import { createWithStateProps } from "../../utils/createWithStateProps";
|
|
15
|
-
|
|
16
|
-
const { withRootProvider, withContext } = createSlotRecipeContext(extendedActionSheet);
|
|
17
|
-
const { withContext: withItemContext } = createRecipeContext(extendedActionSheetItem);
|
|
18
|
-
const withStateProps = createWithStateProps([useDialogContext]);
|
|
19
|
-
|
|
20
|
-
////////////////////////////////////////////////////////////////////////////////////
|
|
21
|
-
|
|
22
|
-
/**
|
|
23
|
-
* @deprecated Use `SwipeableMenuSheet` instead.
|
|
24
|
-
*/
|
|
25
|
-
export interface ExtendedActionSheetRootProps
|
|
26
|
-
extends ExtendedActionSheetVariantProps,
|
|
27
|
-
DialogPrimitive.RootProps {
|
|
28
|
-
/**
|
|
29
|
-
* @default true
|
|
30
|
-
*/
|
|
31
|
-
lazyMount?: DialogPrimitive.RootProps["lazyMount"];
|
|
32
|
-
/**
|
|
33
|
-
* @default true
|
|
34
|
-
*/
|
|
35
|
-
unmountOnExit?: DialogPrimitive.RootProps["unmountOnExit"];
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
/**
|
|
39
|
-
* @deprecated Use `SwipeableMenuSheet` instead.
|
|
40
|
-
*/
|
|
41
|
-
export const ExtendedActionSheetRoot = withRootProvider<ExtendedActionSheetRootProps>(
|
|
42
|
-
DialogPrimitive.Root,
|
|
43
|
-
{
|
|
44
|
-
defaultProps: {
|
|
45
|
-
lazyMount: true,
|
|
46
|
-
unmountOnExit: true,
|
|
47
|
-
},
|
|
48
|
-
},
|
|
49
|
-
);
|
|
50
|
-
|
|
51
|
-
////////////////////////////////////////////////////////////////////////////////////
|
|
52
|
-
|
|
53
|
-
/**
|
|
54
|
-
* @deprecated Use `SwipeableMenuSheet` instead.
|
|
55
|
-
*/
|
|
56
|
-
export interface ExtendedActionSheetTriggerProps extends DialogPrimitive.TriggerProps {}
|
|
57
|
-
|
|
58
|
-
/**
|
|
59
|
-
* @deprecated Use `SwipeableMenuSheet` instead.
|
|
60
|
-
*/
|
|
61
|
-
export const ExtendedActionSheetTrigger = DialogPrimitive.Trigger;
|
|
62
|
-
|
|
63
|
-
////////////////////////////////////////////////////////////////////////////////////
|
|
64
|
-
|
|
65
|
-
/**
|
|
66
|
-
* @deprecated Use `SwipeableMenuSheet` instead.
|
|
67
|
-
*/
|
|
68
|
-
export interface ExtendedActionSheetPositionerProps extends DialogPrimitive.PositionerProps {}
|
|
69
|
-
|
|
70
|
-
/**
|
|
71
|
-
* @deprecated Use `SwipeableMenuSheet` instead.
|
|
72
|
-
*/
|
|
73
|
-
export const ExtendedActionSheetPositioner = withContext<
|
|
74
|
-
HTMLDivElement,
|
|
75
|
-
ExtendedActionSheetPositionerProps
|
|
76
|
-
>(DialogPrimitive.Positioner, "positioner");
|
|
77
|
-
|
|
78
|
-
////////////////////////////////////////////////////////////////////////////////////
|
|
79
|
-
|
|
80
|
-
/**
|
|
81
|
-
* @deprecated Use `SwipeableMenuSheet` instead.
|
|
82
|
-
*/
|
|
83
|
-
export interface ExtendedActionSheetBackdropProps extends DialogPrimitive.BackdropProps {}
|
|
84
|
-
|
|
85
|
-
/**
|
|
86
|
-
* @deprecated Use `SwipeableMenuSheet` instead.
|
|
87
|
-
*/
|
|
88
|
-
export const ExtendedActionSheetBackdrop = withContext<
|
|
89
|
-
HTMLDivElement,
|
|
90
|
-
ExtendedActionSheetBackdropProps
|
|
91
|
-
>(DialogPrimitive.Backdrop, "backdrop");
|
|
92
|
-
|
|
93
|
-
////////////////////////////////////////////////////////////////////////////////////
|
|
94
|
-
|
|
95
|
-
/**
|
|
96
|
-
* @deprecated Use `SwipeableMenuSheet` instead.
|
|
97
|
-
*/
|
|
98
|
-
export interface ExtendedActionSheetContentProps extends DialogPrimitive.ContentProps {}
|
|
99
|
-
|
|
100
|
-
/**
|
|
101
|
-
* @deprecated Use `SwipeableMenuSheet` instead.
|
|
102
|
-
*/
|
|
103
|
-
export const ExtendedActionSheetContent = withContext<
|
|
104
|
-
HTMLDivElement,
|
|
105
|
-
ExtendedActionSheetContentProps
|
|
106
|
-
>(DialogPrimitive.Content, "content");
|
|
107
|
-
|
|
108
|
-
////////////////////////////////////////////////////////////////////////////////////
|
|
109
|
-
|
|
110
|
-
/**
|
|
111
|
-
* @deprecated Use `SwipeableMenuSheet` instead.
|
|
112
|
-
*/
|
|
113
|
-
export interface ExtendedActionSheetHeaderProps
|
|
114
|
-
extends PrimitiveProps,
|
|
115
|
-
React.HTMLAttributes<HTMLDivElement> {}
|
|
116
|
-
|
|
117
|
-
/**
|
|
118
|
-
* @deprecated Use `SwipeableMenuSheet` instead.
|
|
119
|
-
*/
|
|
120
|
-
export const ExtendedActionSheetHeader = withContext<
|
|
121
|
-
HTMLDivElement,
|
|
122
|
-
ExtendedActionSheetHeaderProps
|
|
123
|
-
>(withStateProps(Primitive.div), "header");
|
|
124
|
-
|
|
125
|
-
////////////////////////////////////////////////////////////////////////////////////
|
|
126
|
-
|
|
127
|
-
/**
|
|
128
|
-
* @deprecated Use `SwipeableMenuSheet` instead.
|
|
129
|
-
*/
|
|
130
|
-
export interface ExtendedActionSheetTitleProps extends DialogPrimitive.TitleProps {}
|
|
131
|
-
|
|
132
|
-
/**
|
|
133
|
-
* @deprecated Use `SwipeableMenuSheet` instead.
|
|
134
|
-
*/
|
|
135
|
-
export const ExtendedActionSheetTitle = withContext<
|
|
136
|
-
HTMLHeadingElement,
|
|
137
|
-
ExtendedActionSheetTitleProps
|
|
138
|
-
>(withStateProps(Primitive.h2), "title");
|
|
139
|
-
|
|
140
|
-
////////////////////////////////////////////////////////////////////////////////////
|
|
141
|
-
|
|
142
|
-
/**
|
|
143
|
-
* @deprecated Use `SwipeableMenuSheet` instead.
|
|
144
|
-
*/
|
|
145
|
-
export interface ExtendedActionSheetListProps
|
|
146
|
-
extends PrimitiveProps,
|
|
147
|
-
React.HTMLAttributes<HTMLDivElement> {}
|
|
148
|
-
|
|
149
|
-
/**
|
|
150
|
-
* @deprecated Use `SwipeableMenuSheet` instead.
|
|
151
|
-
*/
|
|
152
|
-
export const ExtendedActionSheetList = withContext<HTMLDivElement, ExtendedActionSheetListProps>(
|
|
153
|
-
withStateProps(Primitive.div),
|
|
154
|
-
"list",
|
|
155
|
-
);
|
|
156
|
-
|
|
157
|
-
////////////////////////////////////////////////////////////////////////////////////
|
|
158
|
-
|
|
159
|
-
/**
|
|
160
|
-
* @deprecated Use `SwipeableMenuSheet` instead.
|
|
161
|
-
*/
|
|
162
|
-
export interface ExtendedActionSheetGroupProps extends React.HTMLAttributes<HTMLDivElement> {}
|
|
163
|
-
|
|
164
|
-
/**
|
|
165
|
-
* @deprecated Use `SwipeableMenuSheet` instead.
|
|
166
|
-
*/
|
|
167
|
-
export const ExtendedActionSheetGroup = withContext<HTMLDivElement, ExtendedActionSheetGroupProps>(
|
|
168
|
-
withStateProps(Primitive.div),
|
|
169
|
-
"group",
|
|
170
|
-
);
|
|
171
|
-
|
|
172
|
-
////////////////////////////////////////////////////////////////////////////////////
|
|
173
|
-
|
|
174
|
-
/**
|
|
175
|
-
* @deprecated Use `SwipeableMenuSheet` instead.
|
|
176
|
-
*/
|
|
177
|
-
export interface ExtendedActionSheetItemProps
|
|
178
|
-
extends PrimitiveProps,
|
|
179
|
-
ExtendedActionSheetItemVariantProps,
|
|
180
|
-
React.HTMLAttributes<HTMLButtonElement> {}
|
|
181
|
-
|
|
182
|
-
/**
|
|
183
|
-
* @deprecated Use `SwipeableMenuSheet` instead.
|
|
184
|
-
*/
|
|
185
|
-
export const ExtendedActionSheetItem = withItemContext<
|
|
186
|
-
HTMLButtonElement,
|
|
187
|
-
ExtendedActionSheetItemProps
|
|
188
|
-
>(withStateProps(Primitive.button));
|
|
189
|
-
|
|
190
|
-
////////////////////////////////////////////////////////////////////////////////////
|
|
191
|
-
|
|
192
|
-
/**
|
|
193
|
-
* @deprecated Use `SwipeableMenuSheet` instead.
|
|
194
|
-
*/
|
|
195
|
-
export interface ExtendedActionSheetFooterProps
|
|
196
|
-
extends PrimitiveProps,
|
|
197
|
-
React.HTMLAttributes<HTMLDivElement> {}
|
|
198
|
-
|
|
199
|
-
/**
|
|
200
|
-
* @deprecated Use `SwipeableMenuSheet` instead.
|
|
201
|
-
*/
|
|
202
|
-
export const ExtendedActionSheetFooter = withContext<
|
|
203
|
-
HTMLDivElement,
|
|
204
|
-
ExtendedActionSheetFooterProps
|
|
205
|
-
>(withStateProps(Primitive.div), "footer");
|
|
206
|
-
|
|
207
|
-
////////////////////////////////////////////////////////////////////////////////////
|
|
208
|
-
|
|
209
|
-
/**
|
|
210
|
-
* @deprecated Use `SwipeableMenuSheet` instead.
|
|
211
|
-
*/
|
|
212
|
-
export interface ExtendedActionSheetCloseButtonProps extends DialogPrimitive.CloseButtonProps {}
|
|
213
|
-
|
|
214
|
-
/**
|
|
215
|
-
* @deprecated Use `SwipeableMenuSheet` instead.
|
|
216
|
-
*/
|
|
217
|
-
export const ExtendedActionSheetCloseButton = withContext<
|
|
218
|
-
HTMLDivElement,
|
|
219
|
-
ExtendedActionSheetCloseButtonProps
|
|
220
|
-
>(DialogPrimitive.CloseButton, "closeButton");
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
export {
|
|
2
|
-
ExtendedActionSheetBackdrop,
|
|
3
|
-
ExtendedActionSheetPositioner,
|
|
4
|
-
ExtendedActionSheetContent,
|
|
5
|
-
ExtendedActionSheetFooter,
|
|
6
|
-
ExtendedActionSheetHeader,
|
|
7
|
-
ExtendedActionSheetRoot,
|
|
8
|
-
ExtendedActionSheetTitle,
|
|
9
|
-
ExtendedActionSheetTrigger,
|
|
10
|
-
ExtendedActionSheetList,
|
|
11
|
-
ExtendedActionSheetGroup,
|
|
12
|
-
ExtendedActionSheetItem,
|
|
13
|
-
ExtendedActionSheetCloseButton,
|
|
14
|
-
type ExtendedActionSheetBackdropProps,
|
|
15
|
-
type ExtendedActionSheetPositionerProps,
|
|
16
|
-
type ExtendedActionSheetContentProps,
|
|
17
|
-
type ExtendedActionSheetFooterProps,
|
|
18
|
-
type ExtendedActionSheetHeaderProps,
|
|
19
|
-
type ExtendedActionSheetRootProps,
|
|
20
|
-
type ExtendedActionSheetTitleProps,
|
|
21
|
-
type ExtendedActionSheetTriggerProps,
|
|
22
|
-
type ExtendedActionSheetListProps,
|
|
23
|
-
type ExtendedActionSheetGroupProps,
|
|
24
|
-
type ExtendedActionSheetItemProps,
|
|
25
|
-
type ExtendedActionSheetCloseButtonProps,
|
|
26
|
-
} from "./ExtendedActionSheet";
|
|
27
|
-
|
|
28
|
-
export * as ExtendedActionSheet from "./ExtendedActionSheet.namespace";
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { Primitive, type PrimitiveProps } from "@seed-design/react-primitive";
|
|
2
|
-
import { extendedFab, type ExtendedFabVariantProps } from "@seed-design/css/recipes/extended-fab";
|
|
3
|
-
import { createRecipeContext } from "../../utils/createRecipeContext";
|
|
4
|
-
|
|
5
|
-
const { withContext } = createRecipeContext(extendedFab);
|
|
6
|
-
|
|
7
|
-
////////////////////////////////////////////////////////////////////////////////////
|
|
8
|
-
|
|
9
|
-
/**
|
|
10
|
-
* @deprecated Use `ContextualFloatingButton` instead.
|
|
11
|
-
*/
|
|
12
|
-
export interface ExtendedFabProps
|
|
13
|
-
extends ExtendedFabVariantProps,
|
|
14
|
-
PrimitiveProps,
|
|
15
|
-
React.ButtonHTMLAttributes<HTMLButtonElement> {}
|
|
16
|
-
|
|
17
|
-
/**
|
|
18
|
-
* @deprecated Use `ContextualFloatingButton` instead.
|
|
19
|
-
*/
|
|
20
|
-
export const ExtendedFab = withContext<HTMLButtonElement, ExtendedFabProps>(Primitive.button, {
|
|
21
|
-
defaultProps: {
|
|
22
|
-
variant: "neutralSolid",
|
|
23
|
-
size: "medium",
|
|
24
|
-
},
|
|
25
|
-
});
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { Primitive, type PrimitiveProps } from "@seed-design/react-primitive";
|
|
2
|
-
import { fab, type FabVariantProps } from "@seed-design/css/recipes/fab";
|
|
3
|
-
import type * as React from "react";
|
|
4
|
-
import { createRecipeContext } from "../../utils/createRecipeContext";
|
|
5
|
-
|
|
6
|
-
const { withContext } = createRecipeContext(fab);
|
|
7
|
-
|
|
8
|
-
////////////////////////////////////////////////////////////////////////////////////
|
|
9
|
-
|
|
10
|
-
/**
|
|
11
|
-
* @deprecated Use `ContextualFloatingButton` instead.
|
|
12
|
-
*/
|
|
13
|
-
export interface FabProps
|
|
14
|
-
extends FabVariantProps,
|
|
15
|
-
PrimitiveProps,
|
|
16
|
-
React.ButtonHTMLAttributes<HTMLButtonElement> {}
|
|
17
|
-
|
|
18
|
-
/**
|
|
19
|
-
* @deprecated Use `ContextualFloatingButton` instead.
|
|
20
|
-
*/
|
|
21
|
-
export const Fab = withContext<HTMLButtonElement, FabProps>(Primitive.button);
|
|
@@ -1,25 +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 InlineProps = DistributiveOmit<BoxProps, "display" | "direction" | "flexWrap">;
|
|
9
|
-
|
|
10
|
-
/**
|
|
11
|
-
* @deprecated Use `HStack` instead.
|
|
12
|
-
*/
|
|
13
|
-
export const Inline = React.forwardRef<HTMLDivElement, InlineProps>((props, ref) => {
|
|
14
|
-
return (
|
|
15
|
-
<Box
|
|
16
|
-
ref={ref}
|
|
17
|
-
display="flex"
|
|
18
|
-
flexDirection="row"
|
|
19
|
-
flexWrap="wrap"
|
|
20
|
-
alignItems="flex-start"
|
|
21
|
-
justifyContent="flex-start"
|
|
22
|
-
{...props}
|
|
23
|
-
/>
|
|
24
|
-
);
|
|
25
|
-
});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { Inline, type InlineProps } from "./Inline";
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
export {
|
|
2
|
-
InlineBannerCloseButton as CloseButton,
|
|
3
|
-
InlineBannerContent as Content,
|
|
4
|
-
InlineBannerDescription as Description,
|
|
5
|
-
InlineBannerLink as Link,
|
|
6
|
-
InlineBannerRoot as Root,
|
|
7
|
-
InlineBannerTitle as Title,
|
|
8
|
-
type InlineBannerCloseButtonProps as CloseButtonProps,
|
|
9
|
-
type InlineBannerContentProps as ContentProps,
|
|
10
|
-
type InlineBannerDescriptionProps as DescriptionProps,
|
|
11
|
-
type InlineBannerLinkProps as LinkProps,
|
|
12
|
-
type InlineBannerRootProps as RootProps,
|
|
13
|
-
type InlineBannerTitleProps as TitleProps,
|
|
14
|
-
} from "./InlineBanner";
|
|
@@ -1,103 +0,0 @@
|
|
|
1
|
-
import type * as React from "react";
|
|
2
|
-
|
|
3
|
-
import {
|
|
4
|
-
inlineBanner,
|
|
5
|
-
type InlineBannerVariantProps,
|
|
6
|
-
} from "@seed-design/css/recipes/inline-banner";
|
|
7
|
-
import { Primitive, type PrimitiveProps } from "@seed-design/react-primitive";
|
|
8
|
-
import { createSlotRecipeContext } from "../../utils/createSlotRecipeContext";
|
|
9
|
-
import {
|
|
10
|
-
DismissibleCloseButton,
|
|
11
|
-
DismissibleRoot,
|
|
12
|
-
type DismissibleRootProps,
|
|
13
|
-
} from "../private/useDismissible";
|
|
14
|
-
|
|
15
|
-
const { withContext, withProvider } = createSlotRecipeContext(inlineBanner);
|
|
16
|
-
|
|
17
|
-
/**
|
|
18
|
-
* @deprecated Use `PageBanner` instead.
|
|
19
|
-
*/
|
|
20
|
-
export interface InlineBannerRootProps extends InlineBannerVariantProps, DismissibleRootProps {}
|
|
21
|
-
|
|
22
|
-
/**
|
|
23
|
-
* @deprecated Use `PageBanner` instead.
|
|
24
|
-
*/
|
|
25
|
-
export const InlineBannerRoot = withProvider<HTMLDivElement, InlineBannerRootProps>(
|
|
26
|
-
DismissibleRoot,
|
|
27
|
-
"root",
|
|
28
|
-
);
|
|
29
|
-
|
|
30
|
-
/**
|
|
31
|
-
* @deprecated Use `PageBanner` instead.
|
|
32
|
-
*/
|
|
33
|
-
export interface InlineBannerContentProps
|
|
34
|
-
extends PrimitiveProps,
|
|
35
|
-
React.HTMLAttributes<HTMLDivElement> {}
|
|
36
|
-
|
|
37
|
-
/**
|
|
38
|
-
* @deprecated Use `PageBanner` instead.
|
|
39
|
-
*/
|
|
40
|
-
export const InlineBannerContent = withContext<HTMLDivElement, InlineBannerContentProps>(
|
|
41
|
-
Primitive.div,
|
|
42
|
-
"content",
|
|
43
|
-
);
|
|
44
|
-
|
|
45
|
-
/**
|
|
46
|
-
* @deprecated Use `PageBanner` instead.
|
|
47
|
-
*/
|
|
48
|
-
export interface InlineBannerTitleProps
|
|
49
|
-
extends PrimitiveProps,
|
|
50
|
-
React.HTMLAttributes<HTMLSpanElement> {}
|
|
51
|
-
|
|
52
|
-
/**
|
|
53
|
-
* @deprecated Use `PageBanner` instead.
|
|
54
|
-
*/
|
|
55
|
-
export const InlineBannerTitle = withContext<HTMLSpanElement, InlineBannerTitleProps>(
|
|
56
|
-
Primitive.span,
|
|
57
|
-
"title",
|
|
58
|
-
);
|
|
59
|
-
|
|
60
|
-
/**
|
|
61
|
-
* @deprecated Use `PageBanner` instead.
|
|
62
|
-
*/
|
|
63
|
-
export interface InlineBannerDescriptionProps
|
|
64
|
-
extends PrimitiveProps,
|
|
65
|
-
React.HTMLAttributes<HTMLSpanElement> {}
|
|
66
|
-
|
|
67
|
-
/**
|
|
68
|
-
* @deprecated Use `PageBanner` instead.
|
|
69
|
-
*/
|
|
70
|
-
export const InlineBannerDescription = withContext<HTMLSpanElement, InlineBannerDescriptionProps>(
|
|
71
|
-
Primitive.span,
|
|
72
|
-
"description",
|
|
73
|
-
);
|
|
74
|
-
|
|
75
|
-
/**
|
|
76
|
-
* @deprecated Use `PageBanner` instead.
|
|
77
|
-
*/
|
|
78
|
-
export interface InlineBannerLinkProps
|
|
79
|
-
extends PrimitiveProps,
|
|
80
|
-
React.ButtonHTMLAttributes<HTMLButtonElement> {}
|
|
81
|
-
|
|
82
|
-
/**
|
|
83
|
-
* @deprecated Use `PageBanner` instead.
|
|
84
|
-
*/
|
|
85
|
-
export const InlineBannerLink = withContext<HTMLButtonElement, InlineBannerLinkProps>(
|
|
86
|
-
Primitive.button,
|
|
87
|
-
"link",
|
|
88
|
-
);
|
|
89
|
-
|
|
90
|
-
/**
|
|
91
|
-
* @deprecated Use `PageBanner` instead.
|
|
92
|
-
*/
|
|
93
|
-
export interface InlineBannerCloseButtonProps
|
|
94
|
-
extends PrimitiveProps,
|
|
95
|
-
React.ButtonHTMLAttributes<HTMLButtonElement> {}
|
|
96
|
-
|
|
97
|
-
/**
|
|
98
|
-
* @deprecated Use `PageBanner` instead.
|
|
99
|
-
*/
|
|
100
|
-
export const InlineBannerCloseButton = withContext<HTMLButtonElement, InlineBannerCloseButtonProps>(
|
|
101
|
-
DismissibleCloseButton,
|
|
102
|
-
"closeButton",
|
|
103
|
-
);
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
export {
|
|
2
|
-
InlineBannerCloseButton,
|
|
3
|
-
InlineBannerContent,
|
|
4
|
-
InlineBannerDescription,
|
|
5
|
-
InlineBannerLink,
|
|
6
|
-
InlineBannerRoot,
|
|
7
|
-
InlineBannerTitle,
|
|
8
|
-
type InlineBannerCloseButtonProps,
|
|
9
|
-
type InlineBannerContentProps,
|
|
10
|
-
type InlineBannerDescriptionProps,
|
|
11
|
-
type InlineBannerLinkProps,
|
|
12
|
-
type InlineBannerRootProps,
|
|
13
|
-
type InlineBannerTitleProps,
|
|
14
|
-
} from "./InlineBanner";
|
|
15
|
-
|
|
16
|
-
export * as InlineBanner from "./InlineBanner.namespace";
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { linkContent, type LinkContentVariantProps } from "@seed-design/css/recipes/link-content";
|
|
2
|
-
import { Primitive, type PrimitiveProps } from "@seed-design/react-primitive";
|
|
3
|
-
import { createRecipeContext } from "../../utils/createRecipeContext";
|
|
4
|
-
import type * as React from "react";
|
|
5
|
-
import { withStyleProps, type StyleProps } from "../../utils/styled";
|
|
6
|
-
|
|
7
|
-
const { withContext } = createRecipeContext(linkContent);
|
|
8
|
-
|
|
9
|
-
/**
|
|
10
|
-
* @deprecated Use `ActionButton` with variant="ghost" instead.
|
|
11
|
-
*/
|
|
12
|
-
export interface LinkContentProps
|
|
13
|
-
extends LinkContentVariantProps,
|
|
14
|
-
PrimitiveProps,
|
|
15
|
-
Pick<StyleProps, "color">,
|
|
16
|
-
Omit<React.HTMLAttributes<HTMLSpanElement>, "color"> {}
|
|
17
|
-
|
|
18
|
-
/**
|
|
19
|
-
* @deprecated Use `ActionButton` with variant="ghost" instead.
|
|
20
|
-
*/
|
|
21
|
-
export const LinkContent = withContext<HTMLButtonElement, LinkContentProps>(
|
|
22
|
-
withStyleProps(Primitive.span),
|
|
23
|
-
);
|
|
@@ -1,166 +0,0 @@
|
|
|
1
|
-
import { act, fireEvent, render } from "@testing-library/react";
|
|
2
|
-
import { afterAll, beforeAll, describe, expect, it, jest, mock } from "bun:test";
|
|
3
|
-
import { TimePicker } from "./TimePicker";
|
|
4
|
-
|
|
5
|
-
describe("TimePicker", () => {
|
|
6
|
-
const originalScrollTo = HTMLElement.prototype.scrollTo;
|
|
7
|
-
const originalMatchMedia = window.matchMedia;
|
|
8
|
-
const originalRequestAnimationFrame = window.requestAnimationFrame;
|
|
9
|
-
const originalCancelAnimationFrame = window.cancelAnimationFrame;
|
|
10
|
-
|
|
11
|
-
beforeAll(() => {
|
|
12
|
-
HTMLElement.prototype.scrollTo = function scrollTo(options) {
|
|
13
|
-
if (typeof options === "object" && options.top !== undefined) {
|
|
14
|
-
this.scrollTop = options.top;
|
|
15
|
-
}
|
|
16
|
-
};
|
|
17
|
-
window.matchMedia = mock(() => ({
|
|
18
|
-
matches: false,
|
|
19
|
-
media: "",
|
|
20
|
-
onchange: null,
|
|
21
|
-
addListener: () => {},
|
|
22
|
-
removeListener: () => {},
|
|
23
|
-
addEventListener: () => {},
|
|
24
|
-
removeEventListener: () => {},
|
|
25
|
-
dispatchEvent: () => false,
|
|
26
|
-
}));
|
|
27
|
-
window.requestAnimationFrame = (callback) => {
|
|
28
|
-
callback(0);
|
|
29
|
-
return 1;
|
|
30
|
-
};
|
|
31
|
-
window.cancelAnimationFrame = () => {};
|
|
32
|
-
});
|
|
33
|
-
|
|
34
|
-
afterAll(() => {
|
|
35
|
-
HTMLElement.prototype.scrollTo = originalScrollTo;
|
|
36
|
-
window.matchMedia = originalMatchMedia;
|
|
37
|
-
window.requestAnimationFrame = originalRequestAnimationFrame;
|
|
38
|
-
window.cancelAnimationFrame = originalCancelAnimationFrame;
|
|
39
|
-
});
|
|
40
|
-
|
|
41
|
-
it("기본 접근성 이름과 12시간제 컬럼을 제공한다", () => {
|
|
42
|
-
const { getByRole, getAllByRole } = render(
|
|
43
|
-
<TimePicker defaultValue={{ hour: 10, minute: 5 }} />,
|
|
44
|
-
);
|
|
45
|
-
|
|
46
|
-
expect(getByRole("group")).toHaveAccessibleName("시간 선택");
|
|
47
|
-
const columns = getAllByRole("spinbutton");
|
|
48
|
-
expect(columns.map((column) => column.getAttribute("aria-label"))).toEqual([
|
|
49
|
-
"오전/오후",
|
|
50
|
-
"시",
|
|
51
|
-
"분",
|
|
52
|
-
]);
|
|
53
|
-
expect(columns.map((column) => column.getAttribute("aria-valuetext"))).toEqual([
|
|
54
|
-
"오전",
|
|
55
|
-
"10",
|
|
56
|
-
"05",
|
|
57
|
-
]);
|
|
58
|
-
});
|
|
59
|
-
|
|
60
|
-
it("locale에 따라 컬럼 순서를 변경한다", () => {
|
|
61
|
-
const { getAllByRole, getByRole } = render(<TimePicker locale="en-US" />);
|
|
62
|
-
|
|
63
|
-
expect(getByRole("group")).toHaveAccessibleName("Select time");
|
|
64
|
-
expect(getAllByRole("spinbutton").map((column) => column.getAttribute("aria-label"))).toEqual([
|
|
65
|
-
"Hour",
|
|
66
|
-
"Minute",
|
|
67
|
-
"AM/PM",
|
|
68
|
-
]);
|
|
69
|
-
});
|
|
70
|
-
|
|
71
|
-
it("일본어 locale에 맞는 기본 접근성 이름을 제공한다", () => {
|
|
72
|
-
const { getAllByRole, getByRole } = render(<TimePicker locale="ja-JP" />);
|
|
73
|
-
|
|
74
|
-
expect(getByRole("group")).toHaveAccessibleName("時刻を選択");
|
|
75
|
-
expect(getAllByRole("spinbutton").map((column) => column.getAttribute("aria-label"))).toEqual([
|
|
76
|
-
"午前/午後",
|
|
77
|
-
"時",
|
|
78
|
-
"分",
|
|
79
|
-
]);
|
|
80
|
-
});
|
|
81
|
-
|
|
82
|
-
it("기본 접근성 이름을 명시적인 값으로 재정의한다", () => {
|
|
83
|
-
const { getAllByRole, getByRole } = render(
|
|
84
|
-
<TimePicker
|
|
85
|
-
locale="en-US"
|
|
86
|
-
aria-label="Appointment time"
|
|
87
|
-
periodAriaLabel="Period"
|
|
88
|
-
hourAriaLabel="Hours"
|
|
89
|
-
minuteAriaLabel="Minutes"
|
|
90
|
-
/>,
|
|
91
|
-
);
|
|
92
|
-
|
|
93
|
-
expect(getByRole("group")).toHaveAccessibleName("Appointment time");
|
|
94
|
-
expect(getAllByRole("spinbutton").map((column) => column.getAttribute("aria-label"))).toEqual([
|
|
95
|
-
"Hours",
|
|
96
|
-
"Minutes",
|
|
97
|
-
"Period",
|
|
98
|
-
]);
|
|
99
|
-
});
|
|
100
|
-
|
|
101
|
-
it("controlled minute도 가장 가까운 minuteStep으로 반올림한다", () => {
|
|
102
|
-
const { getAllByRole } = render(<TimePicker value={{ hour: 9, minute: 13 }} minuteStep={5} />);
|
|
103
|
-
const minuteColumn = getAllByRole("spinbutton")[2];
|
|
104
|
-
|
|
105
|
-
expect(minuteColumn).toHaveAttribute("aria-valuetext", "15");
|
|
106
|
-
expect(minuteColumn.querySelector('[data-wheel-picker-value="13"]')).toBeNull();
|
|
107
|
-
});
|
|
108
|
-
|
|
109
|
-
it("Wheel 정착 후 TimePickerValue를 전달한다", () => {
|
|
110
|
-
jest.useFakeTimers();
|
|
111
|
-
try {
|
|
112
|
-
const onValueChange = mock(() => {});
|
|
113
|
-
const { getAllByRole } = render(
|
|
114
|
-
<TimePicker
|
|
115
|
-
value={{ hour: 10, minute: 13 }}
|
|
116
|
-
minuteStep={10}
|
|
117
|
-
onValueChange={onValueChange}
|
|
118
|
-
/>,
|
|
119
|
-
);
|
|
120
|
-
const hourColumn = getAllByRole("spinbutton")[1];
|
|
121
|
-
|
|
122
|
-
fireEvent.keyDown(hourColumn, { key: "ArrowDown" });
|
|
123
|
-
act(() => jest.advanceTimersByTime(120));
|
|
124
|
-
|
|
125
|
-
expect(onValueChange).toHaveBeenCalledWith({ hour: 11, minute: 10 });
|
|
126
|
-
} finally {
|
|
127
|
-
jest.useRealTimers();
|
|
128
|
-
}
|
|
129
|
-
});
|
|
130
|
-
|
|
131
|
-
it("Hour가 12시 경계를 지나면 Period를 부드럽게 전환한다", () => {
|
|
132
|
-
jest.useFakeTimers();
|
|
133
|
-
const previousScrollTo = HTMLElement.prototype.scrollTo;
|
|
134
|
-
const smoothScrolls: Array<{ element: HTMLElement; top: number }> = [];
|
|
135
|
-
try {
|
|
136
|
-
HTMLElement.prototype.scrollTo = function scrollTo(options) {
|
|
137
|
-
if (typeof options !== "object" || options.top === undefined) return;
|
|
138
|
-
|
|
139
|
-
this.scrollTop = options.top;
|
|
140
|
-
if (options.behavior === "smooth") {
|
|
141
|
-
smoothScrolls.push({ element: this, top: options.top });
|
|
142
|
-
}
|
|
143
|
-
};
|
|
144
|
-
const { getAllByRole } = render(<TimePicker defaultValue={{ hour: 11, minute: 0 }} />);
|
|
145
|
-
const [periodColumn, hourColumn] = getAllByRole("spinbutton");
|
|
146
|
-
|
|
147
|
-
fireEvent.keyDown(hourColumn, { key: "ArrowDown" });
|
|
148
|
-
act(() => jest.advanceTimersByTime(120));
|
|
149
|
-
|
|
150
|
-
expect(periodColumn).toHaveAttribute("aria-valuetext", "오후");
|
|
151
|
-
expect(smoothScrolls).toContainEqual({ element: periodColumn, top: 44 });
|
|
152
|
-
} finally {
|
|
153
|
-
HTMLElement.prototype.scrollTo = previousScrollTo;
|
|
154
|
-
jest.useRealTimers();
|
|
155
|
-
}
|
|
156
|
-
});
|
|
157
|
-
|
|
158
|
-
it("disabled는 컬럼을 tab 순서에서 제외한다", () => {
|
|
159
|
-
const { getAllByRole } = render(<TimePicker disabled />);
|
|
160
|
-
|
|
161
|
-
for (const column of getAllByRole("spinbutton")) {
|
|
162
|
-
expect(column).toHaveAttribute("aria-disabled", "true");
|
|
163
|
-
expect(column).toHaveAttribute("tabindex", "-1");
|
|
164
|
-
}
|
|
165
|
-
});
|
|
166
|
-
});
|