@seed-design/react 2.5.1 → 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/components/Accordion/Accordion.cjs +2 -1
- package/lib/components/Accordion/Accordion.d.ts.map +1 -1
- package/lib/components/Accordion/Accordion.js +2 -1
- package/lib/components/ActionButton/ActionButton.cjs +1 -1
- package/lib/components/ActionButton/ActionButton.js +1 -1
- package/lib/components/AlertDialog/AlertDialog.cjs +34 -0
- package/lib/components/AlertDialog/AlertDialog.d.ts +51 -0
- package/lib/components/AlertDialog/AlertDialog.d.ts.map +1 -0
- package/lib/components/AlertDialog/AlertDialog.js +24 -0
- package/lib/components/AlertDialog/AlertDialog.namespace.cjs +22 -0
- package/lib/components/AlertDialog/AlertDialog.namespace.d.ts +2 -0
- package/lib/components/AlertDialog/AlertDialog.namespace.d.ts.map +1 -0
- package/lib/components/AlertDialog/AlertDialog.namespace.js +17 -0
- package/lib/components/AlertDialog/AlertDialog.test.d.ts +2 -0
- package/lib/components/AlertDialog/AlertDialog.test.d.ts.map +1 -0
- package/lib/components/AlertDialog/index.cjs +19 -0
- package/lib/components/AlertDialog/index.d.ts +3 -0
- package/lib/components/AlertDialog/index.d.ts.map +1 -0
- package/lib/components/AlertDialog/index.js +3 -0
- package/lib/components/AttachmentDisplay/AttachmentDisplay.cjs +1 -1
- package/lib/components/AttachmentDisplay/AttachmentDisplay.js +1 -1
- package/lib/components/AttachmentDisplay/AttachmentDisplayItem.cjs +1 -1
- package/lib/components/AttachmentDisplay/AttachmentDisplayItem.d.ts.map +1 -1
- package/lib/components/AttachmentDisplay/AttachmentDisplayItem.js +1 -1
- package/lib/components/AttachmentDisplay/AttachmentDisplayTrigger.cjs +1 -1
- package/lib/components/AttachmentDisplay/AttachmentDisplayTrigger.js +1 -1
- package/lib/components/AttachmentDisplay/index.cjs +8 -0
- package/lib/components/AttachmentDisplay/index.d.ts +2 -0
- package/lib/components/AttachmentDisplay/index.d.ts.map +1 -1
- package/lib/components/AttachmentDisplay/index.js +2 -1
- package/lib/components/AttachmentInput/AttachmentInput.cjs +1 -1
- package/lib/components/AttachmentInput/AttachmentInput.js +1 -1
- package/lib/components/AttachmentInput/AttachmentInputDropzone.cjs +1 -1
- package/lib/components/AttachmentInput/AttachmentInputDropzone.js +1 -1
- package/lib/components/AttachmentInput/AttachmentInputItem.cjs +2 -2
- package/lib/components/AttachmentInput/AttachmentInputItem.d.ts.map +1 -1
- package/lib/components/AttachmentInput/AttachmentInputItem.js +2 -2
- package/lib/components/AttachmentInput/AttachmentInputTrigger.cjs +1 -1
- package/lib/components/AttachmentInput/AttachmentInputTrigger.js +1 -1
- package/lib/components/AttachmentInput/index.cjs +8 -0
- package/lib/components/AttachmentInput/index.d.ts +2 -0
- package/lib/components/AttachmentInput/index.d.ts.map +1 -1
- package/lib/components/AttachmentInput/index.js +2 -1
- package/lib/components/Badge/Badge.cjs +52 -10
- package/lib/components/Badge/Badge.d.ts +13 -4
- package/lib/components/Badge/Badge.d.ts.map +1 -1
- package/lib/components/Badge/Badge.js +49 -11
- package/lib/components/Badge/Badge.namespace.cjs +16 -0
- package/lib/components/Badge/Badge.namespace.d.ts +2 -0
- package/lib/components/Badge/Badge.namespace.d.ts.map +1 -0
- package/lib/components/Badge/Badge.namespace.js +11 -0
- package/lib/components/Badge/Badge.test.d.ts +2 -0
- package/lib/components/Badge/Badge.test.d.ts.map +1 -0
- package/lib/components/Badge/index.cjs +11 -1
- package/lib/components/Badge/index.d.ts +2 -1
- package/lib/components/Badge/index.d.ts.map +1 -1
- package/lib/components/Badge/index.js +3 -2
- package/lib/components/Box/Box.test.d.ts +2 -0
- package/lib/components/Box/Box.test.d.ts.map +1 -0
- package/lib/components/Checkbox/Checkbox.cjs +2 -2
- package/lib/components/Checkbox/Checkbox.d.ts +3 -1
- package/lib/components/Checkbox/Checkbox.d.ts.map +1 -1
- package/lib/components/Checkbox/Checkbox.js +2 -2
- package/lib/components/Checkbox/Checkbox.namespace.d.ts +1 -1
- package/lib/components/Checkbox/Checkbox.namespace.d.ts.map +1 -1
- package/lib/components/Checkbox/index.d.ts +1 -1
- package/lib/components/Checkbox/index.d.ts.map +1 -1
- package/lib/components/Chip/Chip.cjs +13 -5
- package/lib/components/Chip/Chip.d.ts +13 -2
- package/lib/components/Chip/Chip.d.ts.map +1 -1
- package/lib/components/Chip/Chip.js +10 -5
- package/lib/components/Chip/Chip.namespace.cjs +5 -2
- package/lib/components/Chip/Chip.namespace.d.ts +1 -1
- package/lib/components/Chip/Chip.namespace.d.ts.map +1 -1
- package/lib/components/Chip/Chip.namespace.js +6 -3
- package/lib/components/Chip/index.cjs +4 -1
- package/lib/components/Chip/index.d.ts +1 -1
- package/lib/components/Chip/index.d.ts.map +1 -1
- package/lib/components/Chip/index.js +2 -2
- package/lib/components/ChipTabs/ChipTabs.cjs +1 -1
- package/lib/components/ChipTabs/ChipTabs.js +1 -1
- package/lib/components/DatePicker/DatePicker.cjs +192 -190
- package/lib/components/DatePicker/DatePicker.d.ts +50 -21
- package/lib/components/DatePicker/DatePicker.d.ts.map +1 -1
- package/lib/components/DatePicker/DatePicker.js +189 -187
- package/lib/components/DatePicker/DatePicker.namespace.cjs +16 -0
- package/lib/components/DatePicker/DatePicker.namespace.d.ts +2 -0
- package/lib/components/DatePicker/DatePicker.namespace.d.ts.map +1 -0
- package/lib/components/DatePicker/DatePicker.namespace.js +11 -0
- package/lib/components/DatePicker/index.cjs +11 -4
- package/lib/components/DatePicker/index.d.ts +3 -2
- package/lib/components/DatePicker/index.d.ts.map +1 -1
- package/lib/components/DatePicker/index.js +3 -2
- package/lib/components/Dialog/Dialog.cjs +84 -9
- package/lib/components/Dialog/Dialog.d.ts +21 -14
- package/lib/components/Dialog/Dialog.d.ts.map +1 -1
- package/lib/components/Dialog/Dialog.js +80 -9
- package/lib/components/Dialog/Dialog.namespace.cjs +2 -0
- package/lib/components/Dialog/Dialog.namespace.d.ts +1 -1
- package/lib/components/Dialog/Dialog.namespace.d.ts.map +1 -1
- package/lib/components/Dialog/Dialog.namespace.js +3 -1
- package/lib/components/Dialog/index.cjs +2 -0
- package/lib/components/Dialog/index.d.ts +1 -1
- package/lib/components/Dialog/index.d.ts.map +1 -1
- package/lib/components/Dialog/index.js +2 -2
- package/lib/components/HelpBubble/HelpBubble.cjs +18 -5
- package/lib/components/HelpBubble/HelpBubble.d.ts +5 -0
- package/lib/components/HelpBubble/HelpBubble.d.ts.map +1 -1
- package/lib/components/HelpBubble/HelpBubble.js +18 -5
- package/lib/components/HelpBubble/HelpBubble.test.d.ts +2 -0
- package/lib/components/HelpBubble/HelpBubble.test.d.ts.map +1 -0
- package/lib/components/ImageFrame/ImageFrame.cjs +5 -4
- package/lib/components/ImageFrame/ImageFrame.d.ts +2 -2
- package/lib/components/ImageFrame/ImageFrame.d.ts.map +1 -1
- package/lib/components/ImageFrame/ImageFrame.js +6 -5
- package/lib/components/List/List.cjs +14 -3
- package/lib/components/List/List.d.ts +15 -0
- package/lib/components/List/List.d.ts.map +1 -1
- package/lib/components/List/List.js +11 -4
- package/lib/components/List/List.namespace.cjs +4 -0
- package/lib/components/List/List.namespace.d.ts +1 -1
- package/lib/components/List/List.namespace.d.ts.map +1 -1
- package/lib/components/List/List.namespace.js +5 -1
- package/lib/components/List/index.cjs +4 -0
- package/lib/components/List/index.d.ts +1 -1
- package/lib/components/List/index.d.ts.map +1 -1
- package/lib/components/List/index.js +2 -2
- package/lib/components/Menu/Menu.cjs +3 -2
- package/lib/components/Menu/Menu.d.ts.map +1 -1
- package/lib/components/Menu/Menu.js +3 -2
- package/lib/components/MenuSheet/MenuSheet.cjs +4 -3
- package/lib/components/MenuSheet/MenuSheet.d.ts.map +1 -1
- package/lib/components/MenuSheet/MenuSheet.js +4 -3
- package/lib/components/NavigationMenu/NavigationMenu.cjs +4 -3
- package/lib/components/NavigationMenu/NavigationMenu.d.ts.map +1 -1
- package/lib/components/NavigationMenu/NavigationMenu.js +4 -3
- package/lib/components/PageBanner/PageBanner.cjs +3 -2
- package/lib/components/PageBanner/PageBanner.d.ts.map +1 -1
- package/lib/components/PageBanner/PageBanner.js +3 -2
- package/lib/components/{ContentDialog/ContentDialog.cjs → Popover/Popover.cjs} +61 -40
- package/lib/components/Popover/Popover.d.ts +69 -0
- package/lib/components/Popover/Popover.d.ts.map +1 -0
- package/lib/components/{ContentDialog/ContentDialog.js → Popover/Popover.js} +49 -29
- package/lib/components/Popover/Popover.namespace.cjs +26 -0
- package/lib/components/Popover/Popover.namespace.d.ts +2 -0
- package/lib/components/Popover/Popover.namespace.d.ts.map +1 -0
- package/lib/components/Popover/Popover.namespace.js +21 -0
- package/lib/components/Popover/Popover.test.d.ts +2 -0
- package/lib/components/Popover/Popover.test.d.ts.map +1 -0
- package/lib/components/Popover/index.cjs +23 -0
- package/lib/components/Popover/index.d.ts +3 -0
- package/lib/components/Popover/index.d.ts.map +1 -0
- package/lib/components/Popover/index.js +3 -0
- package/lib/components/QuantityPicker/QuantityPicker.d.ts.map +1 -1
- package/lib/components/RadioGroup/RadioGroup.cjs +2 -2
- package/lib/components/RadioGroup/RadioGroup.d.ts +2 -0
- package/lib/components/RadioGroup/RadioGroup.d.ts.map +1 -1
- package/lib/components/RadioGroup/RadioGroup.js +2 -2
- package/lib/components/RadioGroup/RadioGroup.namespace.d.ts +1 -1
- package/lib/components/RadioGroup/RadioGroup.namespace.d.ts.map +1 -1
- package/lib/components/RadioGroup/index.d.ts +1 -1
- package/lib/components/RadioGroup/index.d.ts.map +1 -1
- package/lib/components/RadioGroupField/RadioGroupField.cjs +2 -2
- package/lib/components/RadioGroupField/RadioGroupField.d.ts +5 -1
- package/lib/components/RadioGroupField/RadioGroupField.d.ts.map +1 -1
- package/lib/components/RadioGroupField/RadioGroupField.js +2 -2
- package/lib/components/RadioGroupField/RadioGroupField.namespace.d.ts +1 -1
- package/lib/components/RadioGroupField/RadioGroupField.namespace.d.ts.map +1 -1
- package/lib/components/ReactionButton/ReactionButton.cjs +1 -1
- package/lib/components/ReactionButton/ReactionButton.js +1 -1
- package/lib/components/ResponsiveDialog/ResponsiveDialog.cjs +13 -13
- package/lib/components/ResponsiveDialog/ResponsiveDialog.d.ts +15 -15
- package/lib/components/ResponsiveDialog/ResponsiveDialog.d.ts.map +1 -1
- package/lib/components/ResponsiveDialog/ResponsiveDialog.js +13 -13
- package/lib/components/SegmentedControl/SegmentedControl.cjs +2 -1
- package/lib/components/SegmentedControl/SegmentedControl.d.ts.map +1 -1
- package/lib/components/SegmentedControl/SegmentedControl.js +2 -1
- package/lib/components/Select/Select.cjs +5 -4
- package/lib/components/Select/Select.d.ts.map +1 -1
- package/lib/components/Select/Select.js +5 -4
- package/lib/components/SelectBox/CheckSelectBox.cjs +20 -6
- package/lib/components/SelectBox/CheckSelectBox.d.ts +7 -0
- package/lib/components/SelectBox/CheckSelectBox.d.ts.map +1 -1
- package/lib/components/SelectBox/CheckSelectBox.js +21 -7
- package/lib/components/SelectBox/RadioSelectBox.cjs +20 -6
- package/lib/components/SelectBox/RadioSelectBox.d.ts +7 -0
- package/lib/components/SelectBox/RadioSelectBox.d.ts.map +1 -1
- package/lib/components/SelectBox/RadioSelectBox.js +21 -7
- package/lib/components/SelectBox/SelectBox.test.d.ts +2 -0
- package/lib/components/SelectBox/SelectBox.test.d.ts.map +1 -0
- package/lib/components/SideNavigation/SideNavigation.cjs +2 -2
- package/lib/components/SideNavigation/SideNavigation.js +2 -2
- package/lib/components/SideNavigation/index.cjs +8 -0
- package/lib/components/SideNavigation/index.d.ts +1 -0
- package/lib/components/SideNavigation/index.d.ts.map +1 -1
- package/lib/components/SideNavigation/index.js +2 -1
- package/lib/components/SidePanel/SidePanel.d.ts +0 -12
- package/lib/components/SidePanel/SidePanel.d.ts.map +1 -1
- package/lib/components/Slider/Slider.cjs +1 -1
- package/lib/components/Slider/Slider.js +1 -1
- package/lib/components/Snackbar/Snackbar.cjs +2 -2
- package/lib/components/Snackbar/Snackbar.js +2 -2
- package/lib/components/Snackbar/useSnackbarAdapter.cjs +1 -1
- package/lib/components/Snackbar/useSnackbarAdapter.js +1 -1
- package/lib/components/Stack/Stack.cjs +0 -12
- package/lib/components/Stack/Stack.d.ts +0 -8
- package/lib/components/Stack/Stack.d.ts.map +1 -1
- package/lib/components/Stack/Stack.js +1 -12
- package/lib/components/Stack/index.cjs +0 -1
- package/lib/components/Stack/index.d.ts +1 -1
- package/lib/components/Stack/index.d.ts.map +1 -1
- package/lib/components/Stack/index.js +2 -2
- package/lib/components/SwipeableMenuSheet/SwipeableMenuSheet.cjs +3 -2
- package/lib/components/SwipeableMenuSheet/SwipeableMenuSheet.d.ts.map +1 -1
- package/lib/components/SwipeableMenuSheet/SwipeableMenuSheet.js +3 -2
- package/lib/components/Switch/Switch.cjs +3 -3
- package/lib/components/Switch/Switch.d.ts +5 -1
- package/lib/components/Switch/Switch.d.ts.map +1 -1
- package/lib/components/Switch/Switch.js +3 -3
- package/lib/components/Switch/Switch.namespace.d.ts +1 -1
- package/lib/components/Switch/Switch.namespace.d.ts.map +1 -1
- package/lib/components/Switch/index.d.ts +1 -1
- package/lib/components/Switch/index.d.ts.map +1 -1
- package/lib/components/TagGroup/TagGroup.d.ts.map +1 -1
- package/lib/components/ToggleButton/ToggleButton.cjs +1 -1
- package/lib/components/ToggleButton/ToggleButton.js +1 -1
- package/lib/components/WheelPicker/WheelPicker.cjs +11 -12
- package/lib/components/WheelPicker/WheelPicker.d.ts +7 -2
- package/lib/components/WheelPicker/WheelPicker.d.ts.map +1 -1
- package/lib/components/WheelPicker/WheelPicker.js +11 -12
- package/lib/components/index.cjs +90 -94
- package/lib/components/index.d.ts +2 -12
- package/lib/components/index.d.ts.map +1 -1
- package/lib/components/index.js +17 -24
- package/lib/index.cjs +116 -94
- package/lib/index.d.ts +4 -2
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +20 -25
- package/lib/utils/styled.cjs +3 -2
- package/lib/utils/styled.d.ts +18 -11
- package/lib/utils/styled.d.ts.map +1 -1
- package/lib/utils/styled.js +3 -2
- package/lib/utils/withContentScale.cjs +30 -0
- package/lib/utils/withContentScale.d.ts +12 -0
- package/lib/utils/withContentScale.d.ts.map +1 -0
- package/lib/utils/withContentScale.js +27 -0
- package/lib/utils/withContentScale.test.d.ts +2 -0
- package/lib/utils/withContentScale.test.d.ts.map +1 -0
- package/package.json +9 -14
- package/src/components/Accordion/Accordion.tsx +3 -3
- package/src/components/AlertDialog/AlertDialog.namespace.ts +22 -0
- package/src/components/AlertDialog/AlertDialog.test.tsx +61 -0
- package/src/components/AlertDialog/AlertDialog.tsx +115 -0
- package/src/components/AlertDialog/index.ts +24 -0
- package/src/components/AttachmentDisplay/AttachmentDisplayItem.tsx +2 -0
- package/src/components/AttachmentDisplay/index.ts +10 -0
- package/src/components/AttachmentInput/AttachmentInputItem.tsx +2 -0
- package/src/components/AttachmentInput/index.ts +10 -0
- package/src/components/Badge/Badge.namespace.ts +10 -0
- package/src/components/Badge/Badge.test.tsx +56 -0
- package/src/components/Badge/Badge.tsx +82 -11
- package/src/components/Badge/index.ts +12 -1
- package/src/components/Box/Box.test.tsx +88 -0
- package/src/components/Checkbox/Checkbox.namespace.ts +1 -0
- package/src/components/Checkbox/Checkbox.tsx +3 -1
- package/src/components/Checkbox/index.ts +1 -0
- package/src/components/Chip/Chip.namespace.ts +8 -2
- package/src/components/Chip/Chip.tsx +34 -7
- package/src/components/Chip/index.ts +8 -2
- package/src/components/DatePicker/DatePicker.namespace.ts +14 -0
- package/src/components/DatePicker/DatePicker.test.tsx +85 -276
- package/src/components/DatePicker/DatePicker.tsx +327 -284
- package/src/components/DatePicker/index.ts +25 -21
- package/src/components/Dialog/Dialog.namespace.ts +4 -0
- package/src/components/Dialog/Dialog.tsx +128 -10
- package/src/components/Dialog/index.ts +4 -5
- package/src/components/HelpBubble/HelpBubble.test.tsx +111 -0
- package/src/components/HelpBubble/HelpBubble.tsx +19 -3
- package/src/components/ImageFrame/ImageFrame.tsx +12 -4
- package/src/components/List/List.namespace.ts +8 -0
- package/src/components/List/List.tsx +43 -3
- package/src/components/List/index.ts +8 -0
- package/src/components/Menu/Menu.tsx +4 -3
- package/src/components/MenuSheet/MenuSheet.tsx +20 -17
- package/src/components/NavigationMenu/NavigationMenu.tsx +20 -17
- package/src/components/PageBanner/PageBanner.tsx +6 -3
- package/src/components/Popover/Popover.namespace.ts +30 -0
- package/src/components/Popover/Popover.test.tsx +222 -0
- package/src/components/Popover/Popover.tsx +282 -0
- package/src/components/Popover/index.ts +32 -0
- package/src/components/QuantityPicker/QuantityPicker.tsx +2 -0
- package/src/components/RadioGroup/RadioGroup.namespace.ts +1 -0
- package/src/components/RadioGroup/RadioGroup.tsx +2 -0
- package/src/components/RadioGroup/index.ts +1 -0
- package/src/components/RadioGroupField/RadioGroupField.namespace.ts +1 -0
- package/src/components/RadioGroupField/RadioGroupField.tsx +5 -3
- package/src/components/ResponsiveDialog/ResponsiveDialog.tsx +45 -48
- package/src/components/SegmentedControl/SegmentedControl.tsx +3 -3
- package/src/components/Select/Select.tsx +7 -6
- package/src/components/SelectBox/CheckSelectBox.tsx +28 -10
- package/src/components/SelectBox/RadioSelectBox.tsx +28 -10
- package/src/components/SelectBox/SelectBox.test.tsx +138 -0
- package/src/components/SideNavigation/index.ts +5 -0
- package/src/components/SidePanel/SidePanel.tsx +1 -16
- package/src/components/Stack/Stack.tsx +0 -12
- package/src/components/Stack/index.ts +1 -8
- package/src/components/SwipeableMenuSheet/SwipeableMenuSheet.tsx +20 -18
- package/src/components/Switch/Switch.namespace.ts +1 -0
- package/src/components/Switch/Switch.tsx +6 -3
- package/src/components/Switch/index.ts +1 -0
- package/src/components/TagGroup/TagGroup.tsx +2 -0
- package/src/components/WheelPicker/WheelPicker.test.tsx +53 -44
- package/src/components/WheelPicker/WheelPicker.tsx +24 -21
- package/src/components/index.ts +2 -12
- package/src/index.ts +25 -2
- package/src/utils/styled.tsx +72 -15
- package/src/utils/withContentScale.test.tsx +88 -0
- package/src/utils/withContentScale.tsx +48 -0
- package/lib/components/ActionChip/ActionChip.cjs +0 -15
- package/lib/components/ActionChip/ActionChip.d.ts +0 -23
- package/lib/components/ActionChip/ActionChip.d.ts.map +0 -1
- package/lib/components/ActionChip/ActionChip.js +0 -14
- package/lib/components/ActionChip/index.cjs +0 -3
- package/lib/components/ActionChip/index.d.ts +0 -2
- package/lib/components/ActionChip/index.d.ts.map +0 -1
- package/lib/components/ActionChip/index.js +0 -2
- package/lib/components/ActionSheet/ActionSheet.cjs +0 -72
- package/lib/components/ActionSheet/ActionSheet.d.ts +0 -113
- package/lib/components/ActionSheet/ActionSheet.d.ts.map +0 -1
- package/lib/components/ActionSheet/ActionSheet.js +0 -61
- package/lib/components/ActionSheet/ActionSheet.namespace.cjs +0 -23
- package/lib/components/ActionSheet/ActionSheet.namespace.d.ts +0 -2
- package/lib/components/ActionSheet/ActionSheet.namespace.d.ts.map +0 -1
- package/lib/components/ActionSheet/ActionSheet.namespace.js +0 -18
- package/lib/components/ActionSheet/index.cjs +0 -20
- package/lib/components/ActionSheet/index.d.ts +0 -3
- package/lib/components/ActionSheet/index.d.ts.map +0 -1
- package/lib/components/ActionSheet/index.js +0 -3
- package/lib/components/Columns/Columns.cjs +0 -38
- package/lib/components/Columns/Columns.d.ts +0 -22
- package/lib/components/Columns/Columns.d.ts.map +0 -1
- package/lib/components/Columns/Columns.js +0 -35
- package/lib/components/Columns/index.cjs +0 -4
- package/lib/components/Columns/index.d.ts +0 -2
- package/lib/components/Columns/index.d.ts.map +0 -1
- package/lib/components/Columns/index.js +0 -2
- package/lib/components/ContentDialog/ContentDialog.d.ts +0 -50
- package/lib/components/ContentDialog/ContentDialog.d.ts.map +0 -1
- package/lib/components/ContentDialog/ContentDialog.namespace.cjs +0 -24
- package/lib/components/ContentDialog/ContentDialog.namespace.d.ts +0 -2
- package/lib/components/ContentDialog/ContentDialog.namespace.d.ts.map +0 -1
- package/lib/components/ContentDialog/ContentDialog.namespace.js +0 -19
- package/lib/components/ContentDialog/index.cjs +0 -21
- package/lib/components/ContentDialog/index.d.ts +0 -3
- package/lib/components/ContentDialog/index.d.ts.map +0 -1
- package/lib/components/ContentDialog/index.js +0 -3
- package/lib/components/ControlChip/ControlChip.cjs +0 -15
- package/lib/components/ControlChip/ControlChip.d.ts +0 -28
- package/lib/components/ControlChip/ControlChip.d.ts.map +0 -1
- package/lib/components/ControlChip/ControlChip.js +0 -14
- package/lib/components/ControlChip/index.cjs +0 -3
- package/lib/components/ControlChip/index.d.ts +0 -2
- package/lib/components/ControlChip/index.d.ts.map +0 -1
- package/lib/components/ControlChip/index.js +0 -2
- package/lib/components/ExtendedActionSheet/ExtendedActionSheet.cjs +0 -77
- package/lib/components/ExtendedActionSheet/ExtendedActionSheet.d.ts +0 -122
- package/lib/components/ExtendedActionSheet/ExtendedActionSheet.d.ts.map +0 -1
- package/lib/components/ExtendedActionSheet/ExtendedActionSheet.js +0 -65
- package/lib/components/ExtendedActionSheet/ExtendedActionSheet.namespace.cjs +0 -24
- package/lib/components/ExtendedActionSheet/ExtendedActionSheet.namespace.d.ts +0 -2
- package/lib/components/ExtendedActionSheet/ExtendedActionSheet.namespace.d.ts.map +0 -1
- package/lib/components/ExtendedActionSheet/ExtendedActionSheet.namespace.js +0 -19
- package/lib/components/ExtendedActionSheet/index.cjs +0 -21
- package/lib/components/ExtendedActionSheet/index.d.ts +0 -3
- package/lib/components/ExtendedActionSheet/index.d.ts.map +0 -1
- package/lib/components/ExtendedActionSheet/index.js +0 -3
- package/lib/components/ExtendedFab/ExtendedFab.cjs +0 -16
- package/lib/components/ExtendedFab/ExtendedFab.d.ts +0 -13
- package/lib/components/ExtendedFab/ExtendedFab.d.ts.map +0 -1
- package/lib/components/ExtendedFab/ExtendedFab.js +0 -15
- package/lib/components/ExtendedFab/index.cjs +0 -3
- package/lib/components/ExtendedFab/index.d.ts +0 -2
- package/lib/components/ExtendedFab/index.d.ts.map +0 -1
- package/lib/components/ExtendedFab/index.js +0 -2
- package/lib/components/Fab/Fab.cjs +0 -13
- package/lib/components/Fab/Fab.d.ts +0 -13
- package/lib/components/Fab/Fab.d.ts.map +0 -1
- package/lib/components/Fab/Fab.js +0 -12
- package/lib/components/Fab/index.cjs +0 -3
- package/lib/components/Fab/index.d.ts +0 -2
- package/lib/components/Fab/index.d.ts.map +0 -1
- package/lib/components/Fab/index.js +0 -2
- package/lib/components/Inline/Inline.cjs +0 -23
- package/lib/components/Inline/Inline.d.ts +0 -12
- package/lib/components/Inline/Inline.d.ts.map +0 -1
- package/lib/components/Inline/Inline.js +0 -21
- package/lib/components/Inline/index.cjs +0 -3
- package/lib/components/Inline/index.d.ts +0 -2
- package/lib/components/Inline/index.d.ts.map +0 -1
- package/lib/components/Inline/index.js +0 -2
- package/lib/components/InlineBanner/InlineBanner.cjs +0 -39
- package/lib/components/InlineBanner/InlineBanner.d.ts +0 -59
- package/lib/components/InlineBanner/InlineBanner.d.ts.map +0 -1
- package/lib/components/InlineBanner/InlineBanner.js +0 -33
- package/lib/components/InlineBanner/InlineBanner.namespace.cjs +0 -18
- package/lib/components/InlineBanner/InlineBanner.namespace.d.ts +0 -2
- package/lib/components/InlineBanner/InlineBanner.namespace.d.ts.map +0 -1
- package/lib/components/InlineBanner/InlineBanner.namespace.js +0 -13
- package/lib/components/InlineBanner/index.cjs +0 -15
- package/lib/components/InlineBanner/index.d.ts +0 -3
- package/lib/components/InlineBanner/index.d.ts.map +0 -1
- package/lib/components/InlineBanner/index.js +0 -3
- package/lib/components/LinkContent/LinkContent.cjs +0 -14
- package/lib/components/LinkContent/LinkContent.d.ts +0 -14
- package/lib/components/LinkContent/LinkContent.d.ts.map +0 -1
- package/lib/components/LinkContent/LinkContent.js +0 -13
- package/lib/components/LinkContent/index.cjs +0 -3
- package/lib/components/LinkContent/index.d.ts +0 -2
- package/lib/components/LinkContent/index.d.ts.map +0 -1
- package/lib/components/LinkContent/index.js +0 -2
- package/lib/components/TimePicker/TimePicker.cjs +0 -97
- package/lib/components/TimePicker/TimePicker.d.ts +0 -28
- package/lib/components/TimePicker/TimePicker.d.ts.map +0 -1
- package/lib/components/TimePicker/TimePicker.js +0 -94
- package/lib/components/TimePicker/TimePicker.test.d.ts +0 -2
- package/lib/components/TimePicker/TimePicker.test.d.ts.map +0 -1
- package/lib/components/TimePicker/index.cjs +0 -3
- package/lib/components/TimePicker/index.d.ts +0 -2
- package/lib/components/TimePicker/index.d.ts.map +0 -1
- package/lib/components/TimePicker/index.js +0 -2
- package/lib/components/private/WheelPicker.cjs +0 -63
- package/lib/components/private/WheelPicker.d.ts +0 -16
- package/lib/components/private/WheelPicker.d.ts.map +0 -1
- package/lib/components/private/WheelPicker.js +0 -59
- package/lib/components/private/WheelPicker.test.d.ts +0 -2
- package/lib/components/private/WheelPicker.test.d.ts.map +0 -1
- package/lib/primitive.cjs +0 -154
- package/lib/primitive.d.ts +0 -18
- package/lib/primitive.d.ts.map +0 -1
- package/lib/primitive.js +0 -17
- package/src/components/ActionChip/ActionChip.tsx +0 -34
- package/src/components/ActionChip/index.ts +0 -4
- package/src/components/ActionSheet/ActionSheet.namespace.ts +0 -24
- package/src/components/ActionSheet/ActionSheet.tsx +0 -192
- package/src/components/ActionSheet/index.ts +0 -26
- package/src/components/Columns/Columns.tsx +0 -50
- package/src/components/Columns/index.ts +0 -1
- package/src/components/ContentDialog/ContentDialog.namespace.ts +0 -26
- package/src/components/ContentDialog/ContentDialog.tsx +0 -224
- package/src/components/ContentDialog/index.ts +0 -33
- package/src/components/ControlChip/ControlChip.tsx +0 -38
- package/src/components/ControlChip/index.ts +0 -5
- package/src/components/ExtendedActionSheet/ExtendedActionSheet.namespace.ts +0 -26
- package/src/components/ExtendedActionSheet/ExtendedActionSheet.tsx +0 -220
- package/src/components/ExtendedActionSheet/index.ts +0 -28
- package/src/components/ExtendedFab/ExtendedFab.tsx +0 -25
- package/src/components/ExtendedFab/index.ts +0 -4
- package/src/components/Fab/Fab.tsx +0 -21
- package/src/components/Fab/index.ts +0 -4
- package/src/components/Inline/Inline.tsx +0 -25
- package/src/components/Inline/index.ts +0 -1
- package/src/components/InlineBanner/InlineBanner.namespace.ts +0 -14
- package/src/components/InlineBanner/InlineBanner.tsx +0 -103
- package/src/components/InlineBanner/index.ts +0 -16
- package/src/components/LinkContent/LinkContent.tsx +0 -23
- package/src/components/LinkContent/index.ts +0 -4
- package/src/components/TimePicker/TimePicker.test.tsx +0 -166
- package/src/components/TimePicker/TimePicker.tsx +0 -163
- package/src/components/TimePicker/index.ts +0 -6
- package/src/components/private/WheelPicker.test.tsx +0 -55
- package/src/components/private/WheelPicker.tsx +0 -110
- package/src/primitive.ts +0 -17
|
@@ -1,27 +1,102 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
require("../../_virtual/_rolldown/runtime.cjs");
|
|
2
|
+
const require_runtime = require("../../_virtual/_rolldown/runtime.cjs");
|
|
3
3
|
const require_createSlotRecipeContext = require("../../utils/createSlotRecipeContext.cjs");
|
|
4
|
-
|
|
4
|
+
const require_styled = require("../../utils/styled.cjs");
|
|
5
|
+
const require_createRenderTrackingContext = require("../../utils/createRenderTrackingContext.cjs");
|
|
5
6
|
let _seed_design_react_primitive = require("@seed-design/react-primitive");
|
|
7
|
+
let clsx = require("clsx");
|
|
8
|
+
clsx = require_runtime.__toESM(clsx);
|
|
9
|
+
let react = require("react");
|
|
10
|
+
react = require_runtime.__toESM(react);
|
|
11
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
12
|
+
let _radix_ui_react_compose_refs = require("@radix-ui/react-compose-refs");
|
|
13
|
+
let _seed_design_react_scale_feedback = require("@seed-design/react-scale-feedback");
|
|
14
|
+
let _seed_design_dom_utils = require("@seed-design/dom-utils");
|
|
15
|
+
let _seed_design_react_dialog = require("@seed-design/react-dialog");
|
|
6
16
|
let _seed_design_css_recipes_dialog = require("@seed-design/css/recipes/dialog");
|
|
7
17
|
//#region src/components/Dialog/Dialog.tsx
|
|
8
|
-
var {
|
|
9
|
-
var
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
18
|
+
var { withContext, useClassNames, ClassNamesProvider } = require_createSlotRecipeContext.createSlotRecipeContext(_seed_design_css_recipes_dialog.dialog);
|
|
19
|
+
var closeButtonTracker = require_createRenderTrackingContext.createRenderTrackingContext("DialogCloseButton");
|
|
20
|
+
function DialogRoot(props) {
|
|
21
|
+
const [variantProps, otherProps] = _seed_design_css_recipes_dialog.dialog.splitVariantProps({
|
|
22
|
+
lazyMount: true,
|
|
23
|
+
unmountOnExit: true,
|
|
24
|
+
...props
|
|
25
|
+
});
|
|
26
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ClassNamesProvider, {
|
|
27
|
+
value: (0, _seed_design_css_recipes_dialog.dialog)(variantProps),
|
|
28
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(closeButtonTracker.Provider, { children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_seed_design_react_dialog.Dialog.Root, { ...otherProps }) })
|
|
29
|
+
});
|
|
30
|
+
}
|
|
13
31
|
var DialogTrigger = _seed_design_react_dialog.Dialog.Trigger;
|
|
14
32
|
var DialogPositioner = withContext(_seed_design_react_dialog.Dialog.Positioner, "positioner");
|
|
15
33
|
var DialogBackdrop = withContext(_seed_design_react_dialog.Dialog.Backdrop, "backdrop");
|
|
16
|
-
var DialogContent = withContext(_seed_design_react_dialog.Dialog.Content, "content");
|
|
17
|
-
var DialogHeader =
|
|
34
|
+
var DialogContent = withContext(require_styled.withStyleProps(_seed_design_react_dialog.Dialog.Content), "content");
|
|
35
|
+
var DialogHeader = react.forwardRef(({ className, ...props }, ref) => {
|
|
36
|
+
const classNames = useClassNames();
|
|
37
|
+
const { isRendered } = closeButtonTracker.useRenderTracking();
|
|
38
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_seed_design_react_primitive.Primitive.div, {
|
|
39
|
+
ref,
|
|
40
|
+
"data-show-close-button": (0, _seed_design_dom_utils.dataAttr)(isRendered),
|
|
41
|
+
className: (0, clsx.default)(classNames.header, className),
|
|
42
|
+
...props
|
|
43
|
+
});
|
|
44
|
+
});
|
|
45
|
+
DialogHeader.displayName = "DialogHeader";
|
|
18
46
|
var DialogTitle = withContext(_seed_design_react_dialog.Dialog.Title, "title");
|
|
19
47
|
var DialogDescription = withContext(_seed_design_react_dialog.Dialog.Description, "description");
|
|
48
|
+
var DialogBody = react.forwardRef((props, forwardedRef) => {
|
|
49
|
+
const classNames = useClassNames();
|
|
50
|
+
const { style, restProps } = require_styled.useStyleProps(props);
|
|
51
|
+
const { className, ...otherProps } = restProps;
|
|
52
|
+
const ref = react.useRef(null);
|
|
53
|
+
const [scrolled, setScrolled] = react.useState(false);
|
|
54
|
+
const [overflowing, setOverflowing] = react.useState(false);
|
|
55
|
+
react.useEffect(() => {
|
|
56
|
+
const element = ref.current;
|
|
57
|
+
if (!element) return;
|
|
58
|
+
const check = () => {
|
|
59
|
+
setScrolled(element.scrollTop > 0);
|
|
60
|
+
const paddingBottom = Number.parseFloat(getComputedStyle(element).paddingBottom) || 0;
|
|
61
|
+
setOverflowing(element.scrollHeight - paddingBottom > element.clientHeight);
|
|
62
|
+
};
|
|
63
|
+
check();
|
|
64
|
+
element.addEventListener("scroll", check);
|
|
65
|
+
const observer = new ResizeObserver(check);
|
|
66
|
+
observer.observe(element);
|
|
67
|
+
return () => {
|
|
68
|
+
element.removeEventListener("scroll", check);
|
|
69
|
+
observer.disconnect();
|
|
70
|
+
};
|
|
71
|
+
}, []);
|
|
72
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_seed_design_react_primitive.Primitive.div, {
|
|
73
|
+
ref: (0, _radix_ui_react_compose_refs.composeRefs)(ref, forwardedRef),
|
|
74
|
+
"data-scrolled": (0, _seed_design_dom_utils.dataAttr)(scrolled),
|
|
75
|
+
"data-overflow": (0, _seed_design_dom_utils.dataAttr)(overflowing),
|
|
76
|
+
className: (0, clsx.default)(classNames.body, className),
|
|
77
|
+
style,
|
|
78
|
+
...otherProps
|
|
79
|
+
});
|
|
80
|
+
});
|
|
81
|
+
DialogBody.displayName = "DialogBody";
|
|
20
82
|
var DialogFooter = withContext(_seed_design_react_primitive.Primitive.div, "footer");
|
|
21
83
|
var DialogAction = _seed_design_react_dialog.Dialog.CloseButton;
|
|
84
|
+
var DialogCloseButton = react.forwardRef(({ className, ...props }, ref) => {
|
|
85
|
+
const classNames = useClassNames();
|
|
86
|
+
const { trackRef } = closeButtonTracker.useRenderTracking();
|
|
87
|
+
const { scaleFeedbackRef, scaleFeedbackClassName } = (0, _seed_design_react_scale_feedback.useScaleFeedback)();
|
|
88
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_seed_design_react_dialog.Dialog.CloseButton, {
|
|
89
|
+
ref: (0, _radix_ui_react_compose_refs.useComposedRefs)(scaleFeedbackRef, ref, trackRef),
|
|
90
|
+
className: (0, clsx.default)(classNames.closeButton, scaleFeedbackClassName, className),
|
|
91
|
+
...props
|
|
92
|
+
});
|
|
93
|
+
});
|
|
94
|
+
DialogCloseButton.displayName = "DialogCloseButton";
|
|
22
95
|
//#endregion
|
|
23
96
|
exports.DialogAction = DialogAction;
|
|
24
97
|
exports.DialogBackdrop = DialogBackdrop;
|
|
98
|
+
exports.DialogBody = DialogBody;
|
|
99
|
+
exports.DialogCloseButton = DialogCloseButton;
|
|
25
100
|
exports.DialogContent = DialogContent;
|
|
26
101
|
exports.DialogDescription = DialogDescription;
|
|
27
102
|
exports.DialogFooter = DialogFooter;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
import { DialogVariantProps } from '@seed-design/css/recipes/dialog';
|
|
1
2
|
import { Dialog as DialogPrimitive } from '@seed-design/react-dialog';
|
|
2
3
|
import { PrimitiveProps } from '@seed-design/react-primitive';
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
export interface DialogRootProps extends DialogVariantProps, DialogPrimitive.RootProps {
|
|
4
|
+
import { StyleProps } from '../../utils/styled';
|
|
5
|
+
import * as React from "react";
|
|
6
|
+
export interface DialogRootProps extends DialogVariantProps, Omit<DialogPrimitive.RootProps, "role"> {
|
|
6
7
|
/**
|
|
7
8
|
* @default true
|
|
8
9
|
*/
|
|
@@ -12,32 +13,38 @@ export interface DialogRootProps extends DialogVariantProps, DialogPrimitive.Roo
|
|
|
12
13
|
*/
|
|
13
14
|
unmountOnExit?: DialogPrimitive.RootProps["unmountOnExit"];
|
|
14
15
|
}
|
|
15
|
-
export declare
|
|
16
|
+
export declare function DialogRoot(props: DialogRootProps): import("react/jsx-runtime").JSX.Element;
|
|
16
17
|
export interface DialogTriggerProps extends DialogPrimitive.TriggerProps {
|
|
17
18
|
}
|
|
18
|
-
export declare const DialogTrigger: ForwardRefExoticComponent<DialogPrimitive.TriggerProps & RefAttributes<HTMLButtonElement>>;
|
|
19
|
+
export declare const DialogTrigger: React.ForwardRefExoticComponent<DialogPrimitive.TriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
19
20
|
export interface DialogPositionerProps extends DialogPrimitive.PositionerProps {
|
|
20
21
|
}
|
|
21
|
-
export declare const DialogPositioner: ForwardRefExoticComponent<DialogPositionerProps & RefAttributes<HTMLDivElement>>;
|
|
22
|
+
export declare const DialogPositioner: React.ForwardRefExoticComponent<DialogPositionerProps & React.RefAttributes<HTMLDivElement>>;
|
|
22
23
|
export interface DialogBackdropProps extends DialogPrimitive.BackdropProps {
|
|
23
24
|
}
|
|
24
|
-
export declare const DialogBackdrop: ForwardRefExoticComponent<DialogBackdropProps & RefAttributes<HTMLDivElement>>;
|
|
25
|
-
export interface DialogContentProps extends DialogPrimitive.ContentProps {
|
|
25
|
+
export declare const DialogBackdrop: React.ForwardRefExoticComponent<DialogBackdropProps & React.RefAttributes<HTMLDivElement>>;
|
|
26
|
+
export interface DialogContentProps extends DialogPrimitive.ContentProps, Pick<StyleProps, "width" | "maxWidth"> {
|
|
26
27
|
}
|
|
27
|
-
export declare const DialogContent: ForwardRefExoticComponent<DialogContentProps & RefAttributes<HTMLDivElement>>;
|
|
28
|
+
export declare const DialogContent: React.ForwardRefExoticComponent<DialogContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
28
29
|
export interface DialogHeaderProps extends PrimitiveProps, React.HTMLAttributes<HTMLDivElement> {
|
|
29
30
|
}
|
|
30
|
-
export declare const DialogHeader: ForwardRefExoticComponent<DialogHeaderProps & RefAttributes<HTMLDivElement>>;
|
|
31
|
+
export declare const DialogHeader: React.ForwardRefExoticComponent<DialogHeaderProps & React.RefAttributes<HTMLDivElement>>;
|
|
31
32
|
export interface DialogTitleProps extends DialogPrimitive.TitleProps {
|
|
32
33
|
}
|
|
33
|
-
export declare const DialogTitle: ForwardRefExoticComponent<DialogTitleProps & RefAttributes<HTMLHeadingElement>>;
|
|
34
|
+
export declare const DialogTitle: React.ForwardRefExoticComponent<DialogTitleProps & React.RefAttributes<HTMLHeadingElement>>;
|
|
34
35
|
export interface DialogDescriptionProps extends DialogPrimitive.DescriptionProps {
|
|
35
36
|
}
|
|
36
|
-
export declare const DialogDescription: ForwardRefExoticComponent<DialogDescriptionProps & RefAttributes<HTMLParagraphElement>>;
|
|
37
|
+
export declare const DialogDescription: React.ForwardRefExoticComponent<DialogDescriptionProps & React.RefAttributes<HTMLParagraphElement>>;
|
|
38
|
+
export interface DialogBodyProps extends PrimitiveProps, Pick<StyleProps, "paddingX" | "minHeight" | "maxHeight" | "justifyContent" | "alignItems">, React.HTMLAttributes<HTMLDivElement> {
|
|
39
|
+
}
|
|
40
|
+
export declare const DialogBody: React.ForwardRefExoticComponent<DialogBodyProps & React.RefAttributes<HTMLDivElement>>;
|
|
37
41
|
export interface DialogFooterProps extends PrimitiveProps, React.HTMLAttributes<HTMLDivElement> {
|
|
38
42
|
}
|
|
39
|
-
export declare const DialogFooter: ForwardRefExoticComponent<DialogFooterProps & RefAttributes<HTMLDivElement>>;
|
|
43
|
+
export declare const DialogFooter: React.ForwardRefExoticComponent<DialogFooterProps & React.RefAttributes<HTMLDivElement>>;
|
|
40
44
|
export interface DialogActionProps extends DialogPrimitive.CloseButtonProps {
|
|
41
45
|
}
|
|
42
|
-
export declare const DialogAction: ForwardRefExoticComponent<DialogPrimitive.CloseButtonProps & RefAttributes<HTMLButtonElement>>;
|
|
46
|
+
export declare const DialogAction: React.ForwardRefExoticComponent<DialogPrimitive.CloseButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
47
|
+
export interface DialogCloseButtonProps extends DialogPrimitive.CloseButtonProps {
|
|
48
|
+
}
|
|
49
|
+
export declare const DialogCloseButton: React.ForwardRefExoticComponent<DialogCloseButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
43
50
|
//# sourceMappingURL=Dialog.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Dialog.d.ts","sourceRoot":"","sources":["../../../src/components/Dialog/Dialog.tsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"Dialog.d.ts","sourceRoot":"","sources":["../../../src/components/Dialog/Dialog.tsx"],"names":[],"mappings":"AACA,OAAO,EAAU,KAAK,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAElF,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,2BAA2B,CAAC;AACtE,OAAO,EAAa,KAAK,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAE9E,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,OAAO,EAAiC,KAAK,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAQpF,MAAM,WAAW,eACf,SAAQ,kBAAkB,EACxB,IAAI,CAAC,eAAe,CAAC,SAAS,EAAE,MAAM,CAAC;IACzC;;OAEG;IACH,SAAS,CAAC,EAAE,eAAe,CAAC,SAAS,CAAC,WAAW,CAAC,CAAC;IACnD;;OAEG;IACH,aAAa,CAAC,EAAE,eAAe,CAAC,SAAS,CAAC,eAAe,CAAC,CAAC;CAC5D;AAED,wBAAgB,UAAU,CAAC,KAAK,EAAE,eAAe,2CAehD;AAID,MAAM,WAAW,kBAAmB,SAAQ,eAAe,CAAC,YAAY;CAAG;AAE3E,eAAO,MAA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kGAc7B,CAAC"}
|
|
@@ -1,22 +1,93 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { createSlotRecipeContext } from "../../utils/createSlotRecipeContext.js";
|
|
3
|
-
import {
|
|
3
|
+
import { useStyleProps, withStyleProps } from "../../utils/styled.js";
|
|
4
|
+
import { createRenderTrackingContext } from "../../utils/createRenderTrackingContext.js";
|
|
4
5
|
import { Primitive } from "@seed-design/react-primitive";
|
|
6
|
+
import clsx$1 from "clsx";
|
|
7
|
+
import * as React$1 from "react";
|
|
8
|
+
import { jsx } from "react/jsx-runtime";
|
|
9
|
+
import { composeRefs, useComposedRefs } from "@radix-ui/react-compose-refs";
|
|
10
|
+
import { useScaleFeedback } from "@seed-design/react-scale-feedback";
|
|
11
|
+
import { dataAttr } from "@seed-design/dom-utils";
|
|
12
|
+
import { Dialog } from "@seed-design/react-dialog";
|
|
5
13
|
import { dialog } from "@seed-design/css/recipes/dialog";
|
|
6
14
|
//#region src/components/Dialog/Dialog.tsx
|
|
7
|
-
var {
|
|
8
|
-
var
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
15
|
+
var { withContext, useClassNames, ClassNamesProvider } = createSlotRecipeContext(dialog);
|
|
16
|
+
var closeButtonTracker = createRenderTrackingContext("DialogCloseButton");
|
|
17
|
+
function DialogRoot(props) {
|
|
18
|
+
const [variantProps, otherProps] = dialog.splitVariantProps({
|
|
19
|
+
lazyMount: true,
|
|
20
|
+
unmountOnExit: true,
|
|
21
|
+
...props
|
|
22
|
+
});
|
|
23
|
+
return /* @__PURE__ */ jsx(ClassNamesProvider, {
|
|
24
|
+
value: dialog(variantProps),
|
|
25
|
+
children: /* @__PURE__ */ jsx(closeButtonTracker.Provider, { children: /* @__PURE__ */ jsx(Dialog.Root, { ...otherProps }) })
|
|
26
|
+
});
|
|
27
|
+
}
|
|
12
28
|
var DialogTrigger = Dialog.Trigger;
|
|
13
29
|
var DialogPositioner = withContext(Dialog.Positioner, "positioner");
|
|
14
30
|
var DialogBackdrop = withContext(Dialog.Backdrop, "backdrop");
|
|
15
|
-
var DialogContent = withContext(Dialog.Content, "content");
|
|
16
|
-
var DialogHeader =
|
|
31
|
+
var DialogContent = withContext(withStyleProps(Dialog.Content), "content");
|
|
32
|
+
var DialogHeader = React$1.forwardRef(({ className, ...props }, ref) => {
|
|
33
|
+
const classNames = useClassNames();
|
|
34
|
+
const { isRendered } = closeButtonTracker.useRenderTracking();
|
|
35
|
+
return /* @__PURE__ */ jsx(Primitive.div, {
|
|
36
|
+
ref,
|
|
37
|
+
"data-show-close-button": dataAttr(isRendered),
|
|
38
|
+
className: clsx$1(classNames.header, className),
|
|
39
|
+
...props
|
|
40
|
+
});
|
|
41
|
+
});
|
|
42
|
+
DialogHeader.displayName = "DialogHeader";
|
|
17
43
|
var DialogTitle = withContext(Dialog.Title, "title");
|
|
18
44
|
var DialogDescription = withContext(Dialog.Description, "description");
|
|
45
|
+
var DialogBody = React$1.forwardRef((props, forwardedRef) => {
|
|
46
|
+
const classNames = useClassNames();
|
|
47
|
+
const { style, restProps } = useStyleProps(props);
|
|
48
|
+
const { className, ...otherProps } = restProps;
|
|
49
|
+
const ref = React$1.useRef(null);
|
|
50
|
+
const [scrolled, setScrolled] = React$1.useState(false);
|
|
51
|
+
const [overflowing, setOverflowing] = React$1.useState(false);
|
|
52
|
+
React$1.useEffect(() => {
|
|
53
|
+
const element = ref.current;
|
|
54
|
+
if (!element) return;
|
|
55
|
+
const check = () => {
|
|
56
|
+
setScrolled(element.scrollTop > 0);
|
|
57
|
+
const paddingBottom = Number.parseFloat(getComputedStyle(element).paddingBottom) || 0;
|
|
58
|
+
setOverflowing(element.scrollHeight - paddingBottom > element.clientHeight);
|
|
59
|
+
};
|
|
60
|
+
check();
|
|
61
|
+
element.addEventListener("scroll", check);
|
|
62
|
+
const observer = new ResizeObserver(check);
|
|
63
|
+
observer.observe(element);
|
|
64
|
+
return () => {
|
|
65
|
+
element.removeEventListener("scroll", check);
|
|
66
|
+
observer.disconnect();
|
|
67
|
+
};
|
|
68
|
+
}, []);
|
|
69
|
+
return /* @__PURE__ */ jsx(Primitive.div, {
|
|
70
|
+
ref: composeRefs(ref, forwardedRef),
|
|
71
|
+
"data-scrolled": dataAttr(scrolled),
|
|
72
|
+
"data-overflow": dataAttr(overflowing),
|
|
73
|
+
className: clsx$1(classNames.body, className),
|
|
74
|
+
style,
|
|
75
|
+
...otherProps
|
|
76
|
+
});
|
|
77
|
+
});
|
|
78
|
+
DialogBody.displayName = "DialogBody";
|
|
19
79
|
var DialogFooter = withContext(Primitive.div, "footer");
|
|
20
80
|
var DialogAction = Dialog.CloseButton;
|
|
81
|
+
var DialogCloseButton = React$1.forwardRef(({ className, ...props }, ref) => {
|
|
82
|
+
const classNames = useClassNames();
|
|
83
|
+
const { trackRef } = closeButtonTracker.useRenderTracking();
|
|
84
|
+
const { scaleFeedbackRef, scaleFeedbackClassName } = useScaleFeedback();
|
|
85
|
+
return /* @__PURE__ */ jsx(Dialog.CloseButton, {
|
|
86
|
+
ref: useComposedRefs(scaleFeedbackRef, ref, trackRef),
|
|
87
|
+
className: clsx$1(classNames.closeButton, scaleFeedbackClassName, className),
|
|
88
|
+
...props
|
|
89
|
+
});
|
|
90
|
+
});
|
|
91
|
+
DialogCloseButton.displayName = "DialogCloseButton";
|
|
21
92
|
//#endregion
|
|
22
|
-
export { DialogAction, DialogBackdrop, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogPositioner, DialogRoot, DialogTitle, DialogTrigger };
|
|
93
|
+
export { DialogAction, DialogBackdrop, DialogBody, DialogCloseButton, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogPositioner, DialogRoot, DialogTitle, DialogTrigger };
|
|
@@ -4,6 +4,8 @@ const require_Dialog = require("./Dialog.cjs");
|
|
|
4
4
|
var Dialog_namespace_exports = /* @__PURE__ */ require_runtime.__exportAll({
|
|
5
5
|
Action: () => require_Dialog.DialogAction,
|
|
6
6
|
Backdrop: () => require_Dialog.DialogBackdrop,
|
|
7
|
+
Body: () => require_Dialog.DialogBody,
|
|
8
|
+
CloseButton: () => require_Dialog.DialogCloseButton,
|
|
7
9
|
Content: () => require_Dialog.DialogContent,
|
|
8
10
|
Description: () => require_Dialog.DialogDescription,
|
|
9
11
|
Footer: () => require_Dialog.DialogFooter,
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { DialogBackdrop as Backdrop, DialogPositioner as Positioner, DialogContent as Content, DialogDescription as Description, DialogFooter as Footer, DialogHeader as Header, DialogRoot as Root, DialogTitle as Title, DialogTrigger as Trigger, DialogAction as Action, type DialogBackdropProps as BackdropProps, type DialogPositionerProps as PositionerProps, type DialogContentProps as ContentProps, type DialogDescriptionProps as DescriptionProps, type DialogFooterProps as FooterProps, type DialogHeaderProps as HeaderProps, type DialogRootProps as RootProps, type DialogTitleProps as TitleProps, type DialogTriggerProps as TriggerProps, type DialogActionProps as ActionProps, } from './Dialog';
|
|
1
|
+
export { DialogBackdrop as Backdrop, DialogPositioner as Positioner, DialogContent as Content, DialogBody as Body, DialogDescription as Description, DialogFooter as Footer, DialogHeader as Header, DialogRoot as Root, DialogTitle as Title, DialogTrigger as Trigger, DialogAction as Action, DialogCloseButton as CloseButton, type DialogBackdropProps as BackdropProps, type DialogPositionerProps as PositionerProps, type DialogContentProps as ContentProps, type DialogBodyProps as BodyProps, type DialogDescriptionProps as DescriptionProps, type DialogFooterProps as FooterProps, type DialogHeaderProps as HeaderProps, type DialogRootProps as RootProps, type DialogTitleProps as TitleProps, type DialogTriggerProps as TriggerProps, type DialogActionProps as ActionProps, type DialogCloseButtonProps as CloseButtonProps, } from './Dialog';
|
|
2
2
|
//# sourceMappingURL=Dialog.namespace.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Dialog.namespace.d.ts","sourceRoot":"","sources":["../../../src/components/Dialog/Dialog.namespace.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,IAAI,QAAQ,EAC1B,gBAAgB,IAAI,UAAU,EAC9B,aAAa,IAAI,OAAO,EACxB,iBAAiB,IAAI,WAAW,EAChC,YAAY,IAAI,MAAM,EACtB,YAAY,IAAI,MAAM,EACtB,UAAU,IAAI,IAAI,EAClB,WAAW,IAAI,KAAK,EACpB,aAAa,IAAI,OAAO,EACxB,YAAY,IAAI,MAAM,EACtB,KAAK,mBAAmB,IAAI,aAAa,EACzC,KAAK,qBAAqB,IAAI,eAAe,EAC7C,KAAK,kBAAkB,IAAI,YAAY,EACvC,KAAK,sBAAsB,IAAI,gBAAgB,EAC/C,KAAK,iBAAiB,IAAI,WAAW,EACrC,KAAK,iBAAiB,IAAI,WAAW,EACrC,KAAK,eAAe,IAAI,SAAS,EACjC,KAAK,gBAAgB,IAAI,UAAU,EACnC,KAAK,kBAAkB,IAAI,YAAY,EACvC,KAAK,iBAAiB,IAAI,WAAW,
|
|
1
|
+
{"version":3,"file":"Dialog.namespace.d.ts","sourceRoot":"","sources":["../../../src/components/Dialog/Dialog.namespace.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,IAAI,QAAQ,EAC1B,gBAAgB,IAAI,UAAU,EAC9B,aAAa,IAAI,OAAO,EACxB,UAAU,IAAI,IAAI,EAClB,iBAAiB,IAAI,WAAW,EAChC,YAAY,IAAI,MAAM,EACtB,YAAY,IAAI,MAAM,EACtB,UAAU,IAAI,IAAI,EAClB,WAAW,IAAI,KAAK,EACpB,aAAa,IAAI,OAAO,EACxB,YAAY,IAAI,MAAM,EACtB,iBAAiB,IAAI,WAAW,EAChC,KAAK,mBAAmB,IAAI,aAAa,EACzC,KAAK,qBAAqB,IAAI,eAAe,EAC7C,KAAK,kBAAkB,IAAI,YAAY,EACvC,KAAK,eAAe,IAAI,SAAS,EACjC,KAAK,sBAAsB,IAAI,gBAAgB,EAC/C,KAAK,iBAAiB,IAAI,WAAW,EACrC,KAAK,iBAAiB,IAAI,WAAW,EACrC,KAAK,eAAe,IAAI,SAAS,EACjC,KAAK,gBAAgB,IAAI,UAAU,EACnC,KAAK,kBAAkB,IAAI,YAAY,EACvC,KAAK,iBAAiB,IAAI,WAAW,EACrC,KAAK,sBAAsB,IAAI,gBAAgB,GAChD,MAAM,UAAU,CAAC"}
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { __exportAll } from "../../_virtual/_rolldown/runtime.js";
|
|
2
|
-
import { DialogAction, DialogBackdrop, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogPositioner, DialogRoot, DialogTitle, DialogTrigger } from "./Dialog.js";
|
|
2
|
+
import { DialogAction, DialogBackdrop, DialogBody, DialogCloseButton, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogPositioner, DialogRoot, DialogTitle, DialogTrigger } from "./Dialog.js";
|
|
3
3
|
//#region src/components/Dialog/Dialog.namespace.ts
|
|
4
4
|
var Dialog_namespace_exports = /* @__PURE__ */ __exportAll({
|
|
5
5
|
Action: () => DialogAction,
|
|
6
6
|
Backdrop: () => DialogBackdrop,
|
|
7
|
+
Body: () => DialogBody,
|
|
8
|
+
CloseButton: () => DialogCloseButton,
|
|
7
9
|
Content: () => DialogContent,
|
|
8
10
|
Description: () => DialogDescription,
|
|
9
11
|
Footer: () => DialogFooter,
|
|
@@ -9,6 +9,8 @@ Object.defineProperty(exports, "Dialog", {
|
|
|
9
9
|
});
|
|
10
10
|
exports.DialogAction = require_Dialog.DialogAction;
|
|
11
11
|
exports.DialogBackdrop = require_Dialog.DialogBackdrop;
|
|
12
|
+
exports.DialogBody = require_Dialog.DialogBody;
|
|
13
|
+
exports.DialogCloseButton = require_Dialog.DialogCloseButton;
|
|
12
14
|
exports.DialogContent = require_Dialog.DialogContent;
|
|
13
15
|
exports.DialogDescription = require_Dialog.DialogDescription;
|
|
14
16
|
exports.DialogFooter = require_Dialog.DialogFooter;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { DialogBackdrop, DialogPositioner, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogRoot, DialogTitle, DialogTrigger, DialogAction, type DialogBackdropProps, type DialogPositionerProps, type DialogContentProps, type DialogDescriptionProps, type DialogFooterProps, type DialogHeaderProps, type DialogRootProps, type DialogTitleProps, type DialogTriggerProps, type DialogActionProps, } from './Dialog';
|
|
1
|
+
export { DialogBackdrop, DialogPositioner, DialogContent, DialogBody, DialogDescription, DialogFooter, DialogHeader, DialogRoot, DialogTitle, DialogTrigger, DialogAction, DialogCloseButton, type DialogBackdropProps, type DialogPositionerProps, type DialogContentProps, type DialogBodyProps, type DialogDescriptionProps, type DialogFooterProps, type DialogHeaderProps, type DialogRootProps, type DialogTitleProps, type DialogTriggerProps, type DialogActionProps, type DialogCloseButtonProps, } from './Dialog';
|
|
2
2
|
export * as Dialog from './Dialog.namespace';
|
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Dialog/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Dialog/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,EACd,gBAAgB,EAChB,aAAa,EACb,UAAU,EACV,iBAAiB,EACjB,YAAY,EACZ,YAAY,EACZ,UAAU,EACV,WAAW,EACX,aAAa,EACb,YAAY,EACZ,iBAAiB,EACjB,KAAK,mBAAmB,EACxB,KAAK,qBAAqB,EAC1B,KAAK,kBAAkB,EACvB,KAAK,eAAe,EACpB,KAAK,sBAAsB,EAC3B,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,EACtB,KAAK,eAAe,EACpB,KAAK,gBAAgB,EACrB,KAAK,kBAAkB,EACvB,KAAK,iBAAiB,EACtB,KAAK,sBAAsB,GAC5B,MAAM,UAAU,CAAC;AAElB,OAAO,KAAK,MAAM,MAAM,oBAAoB,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { DialogAction, DialogBackdrop, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogPositioner, DialogRoot, DialogTitle, DialogTrigger } from "./Dialog.js";
|
|
1
|
+
import { DialogAction, DialogBackdrop, DialogBody, DialogCloseButton, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogPositioner, DialogRoot, DialogTitle, DialogTrigger } from "./Dialog.js";
|
|
2
2
|
import { Dialog_namespace_exports } from "./Dialog.namespace.js";
|
|
3
|
-
export { Dialog_namespace_exports as Dialog, DialogAction, DialogBackdrop, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogPositioner, DialogRoot, DialogTitle, DialogTrigger };
|
|
3
|
+
export { Dialog_namespace_exports as Dialog, DialogAction, DialogBackdrop, DialogBody, DialogCloseButton, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogPositioner, DialogRoot, DialogTitle, DialogTrigger };
|
|
@@ -5,13 +5,13 @@ const require_createWithStateProps = require("../../utils/createWithStateProps.c
|
|
|
5
5
|
const require_styled = require("../../utils/styled.cjs");
|
|
6
6
|
const require_withScaleFeedback = require("../../utils/withScaleFeedback.cjs");
|
|
7
7
|
const require_getHelpBubbleArrowTipPath = require("../../utils/getHelpBubbleArrowTipPath.cjs");
|
|
8
|
-
let _seed_design_react_popover = require("@seed-design/react-popover");
|
|
9
8
|
let _seed_design_react_primitive = require("@seed-design/react-primitive");
|
|
10
9
|
let clsx = require("clsx");
|
|
11
10
|
clsx = require_runtime.__toESM(clsx);
|
|
12
11
|
let react = require("react");
|
|
13
12
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
14
13
|
let _radix_ui_react_compose_refs = require("@radix-ui/react-compose-refs");
|
|
14
|
+
let _seed_design_react_popover = require("@seed-design/react-popover");
|
|
15
15
|
let _seed_design_css_recipes_help_bubble = require("@seed-design/css/recipes/help-bubble");
|
|
16
16
|
//#region src/components/HelpBubble/HelpBubble.tsx
|
|
17
17
|
var { withRootProvider, withContext, useClassNames } = require_createSlotRecipeContext.createSlotRecipeContext(_seed_design_css_recipes_help_bubble.helpBubble);
|
|
@@ -20,13 +20,14 @@ var HelpBubbleRoot = withRootProvider(_seed_design_react_popover.Popover.Root, {
|
|
|
20
20
|
placement: "top",
|
|
21
21
|
gutter: 4,
|
|
22
22
|
overflowPadding: 16,
|
|
23
|
-
arrowPadding: 14
|
|
23
|
+
arrowPadding: 14,
|
|
24
|
+
autoFocus: false
|
|
24
25
|
} });
|
|
25
26
|
var HelpBubbleAnchor = _seed_design_react_popover.Popover.Anchor;
|
|
26
27
|
var HelpBubbleTrigger = _seed_design_react_popover.Popover.Trigger;
|
|
27
28
|
var HelpBubblePositioner = withContext(_seed_design_react_popover.Popover.Positioner, "positioner");
|
|
28
29
|
var HelpBubblePositionerPortal = withContext(_seed_design_react_popover.Popover.PositionerPortal, "positioner");
|
|
29
|
-
var HelpBubbleContent = withContext(require_styled.withStyleProps(withStateProps(
|
|
30
|
+
var HelpBubbleContent = withContext(require_styled.withStyleProps(withStateProps(_seed_design_react_popover.Popover.Content)), "content");
|
|
30
31
|
var HelpBubbleArrow = withContext(_seed_design_react_popover.Popover.Arrow, "arrow");
|
|
31
32
|
var HelpBubbleArrowTip = (0, react.forwardRef)((props, ref) => {
|
|
32
33
|
const { tipRadius = 2, className, ...otherProps } = props;
|
|
@@ -50,8 +51,20 @@ var HelpBubbleArrowTip = (0, react.forwardRef)((props, ref) => {
|
|
|
50
51
|
HelpBubbleArrowTip.displayName = "HelpBubbleArrowTip";
|
|
51
52
|
var HelpBubbleCloseButton = require_withScaleFeedback.withScaleFeedback(withContext(_seed_design_react_popover.Popover.CloseButton, "closeButton"));
|
|
52
53
|
var HelpBubbleBody = withContext(withStateProps(_seed_design_react_primitive.Primitive.div), "body");
|
|
53
|
-
var HelpBubbleTitle = withContext(
|
|
54
|
-
|
|
54
|
+
var HelpBubbleTitle = withContext((0, react.forwardRef)((props, ref) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_seed_design_react_popover.Popover.Title, {
|
|
55
|
+
asChild: true,
|
|
56
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_seed_design_react_primitive.Primitive.span, {
|
|
57
|
+
ref,
|
|
58
|
+
...props
|
|
59
|
+
})
|
|
60
|
+
})), "title");
|
|
61
|
+
var HelpBubbleDescription = withContext((0, react.forwardRef)((props, ref) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_seed_design_react_popover.Popover.Description, {
|
|
62
|
+
asChild: true,
|
|
63
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_seed_design_react_primitive.Primitive.div, {
|
|
64
|
+
ref,
|
|
65
|
+
...props
|
|
66
|
+
})
|
|
67
|
+
})), "description");
|
|
55
68
|
//#endregion
|
|
56
69
|
exports.HelpBubbleAnchor = HelpBubbleAnchor;
|
|
57
70
|
exports.HelpBubbleArrow = HelpBubbleArrow;
|
|
@@ -20,6 +20,11 @@ export interface HelpBubbleRootProps extends HelpBubbleVariantProps, PopoverPrim
|
|
|
20
20
|
* @default 14
|
|
21
21
|
*/
|
|
22
22
|
arrowPadding?: PopoverPrimitive.RootProps["arrowPadding"];
|
|
23
|
+
/**
|
|
24
|
+
* Whether to move focus into the content when it opens. Off by default so a bubble shown on page load keeps focus where the page put it; set `true` to follow the dialog pattern and move focus in.
|
|
25
|
+
* @default false
|
|
26
|
+
*/
|
|
27
|
+
autoFocus?: PopoverPrimitive.RootProps["autoFocus"];
|
|
23
28
|
}
|
|
24
29
|
export declare const HelpBubbleRoot: ForwardRefExoticComponent<HelpBubbleRootProps>;
|
|
25
30
|
export interface HelpBubbleAnchorProps extends PopoverPrimitive.AnchorProps {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HelpBubble.d.ts","sourceRoot":"","sources":["../../../src/components/HelpBubble/HelpBubble.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAqB,MAAM,4BAA4B,CAAC;AAC5F,OAAO,EAAa,KAAK,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAC9E,OAAO,EAAc,KAAK,sBAAsB,EA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Ac,EACpB,KAAK,CAAC,cAAc,CAAC,eAAe,CAAC;CAAG;AAE5C,eAAO,MAAM,eAAe,kHAQ3B,CAAC;AAEF,MAAM,WAAW,0BACf,SAAQ,cAAc,EACpB,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;CAAG;AAE3C,eAAO,MAAM,qBAAqB,uHAQjC,CAAC"}
|
|
@@ -4,12 +4,12 @@ import { createWithStateProps } from "../../utils/createWithStateProps.js";
|
|
|
4
4
|
import { withStyleProps } from "../../utils/styled.js";
|
|
5
5
|
import { withScaleFeedback } from "../../utils/withScaleFeedback.js";
|
|
6
6
|
import { getHelpBubbleArrowTipPath } from "../../utils/getHelpBubbleArrowTipPath.js";
|
|
7
|
-
import { Popover, usePopoverContext } from "@seed-design/react-popover";
|
|
8
7
|
import { Primitive } from "@seed-design/react-primitive";
|
|
9
8
|
import clsx$1 from "clsx";
|
|
10
9
|
import { forwardRef } from "react";
|
|
11
10
|
import { jsx } from "react/jsx-runtime";
|
|
12
11
|
import { composeRefs } from "@radix-ui/react-compose-refs";
|
|
12
|
+
import { Popover, usePopoverContext } from "@seed-design/react-popover";
|
|
13
13
|
import { helpBubble } from "@seed-design/css/recipes/help-bubble";
|
|
14
14
|
//#region src/components/HelpBubble/HelpBubble.tsx
|
|
15
15
|
var { withRootProvider, withContext, useClassNames } = createSlotRecipeContext(helpBubble);
|
|
@@ -18,13 +18,14 @@ var HelpBubbleRoot = withRootProvider(Popover.Root, { defaultProps: {
|
|
|
18
18
|
placement: "top",
|
|
19
19
|
gutter: 4,
|
|
20
20
|
overflowPadding: 16,
|
|
21
|
-
arrowPadding: 14
|
|
21
|
+
arrowPadding: 14,
|
|
22
|
+
autoFocus: false
|
|
22
23
|
} });
|
|
23
24
|
var HelpBubbleAnchor = Popover.Anchor;
|
|
24
25
|
var HelpBubbleTrigger = Popover.Trigger;
|
|
25
26
|
var HelpBubblePositioner = withContext(Popover.Positioner, "positioner");
|
|
26
27
|
var HelpBubblePositionerPortal = withContext(Popover.PositionerPortal, "positioner");
|
|
27
|
-
var HelpBubbleContent = withContext(withStyleProps(withStateProps(
|
|
28
|
+
var HelpBubbleContent = withContext(withStyleProps(withStateProps(Popover.Content)), "content");
|
|
28
29
|
var HelpBubbleArrow = withContext(Popover.Arrow, "arrow");
|
|
29
30
|
var HelpBubbleArrowTip = forwardRef((props, ref) => {
|
|
30
31
|
const { tipRadius = 2, className, ...otherProps } = props;
|
|
@@ -48,7 +49,19 @@ var HelpBubbleArrowTip = forwardRef((props, ref) => {
|
|
|
48
49
|
HelpBubbleArrowTip.displayName = "HelpBubbleArrowTip";
|
|
49
50
|
var HelpBubbleCloseButton = withScaleFeedback(withContext(Popover.CloseButton, "closeButton"));
|
|
50
51
|
var HelpBubbleBody = withContext(withStateProps(Primitive.div), "body");
|
|
51
|
-
var HelpBubbleTitle = withContext(
|
|
52
|
-
|
|
52
|
+
var HelpBubbleTitle = withContext(forwardRef((props, ref) => /* @__PURE__ */ jsx(Popover.Title, {
|
|
53
|
+
asChild: true,
|
|
54
|
+
children: /* @__PURE__ */ jsx(Primitive.span, {
|
|
55
|
+
ref,
|
|
56
|
+
...props
|
|
57
|
+
})
|
|
58
|
+
})), "title");
|
|
59
|
+
var HelpBubbleDescription = withContext(forwardRef((props, ref) => /* @__PURE__ */ jsx(Popover.Description, {
|
|
60
|
+
asChild: true,
|
|
61
|
+
children: /* @__PURE__ */ jsx(Primitive.div, {
|
|
62
|
+
ref,
|
|
63
|
+
...props
|
|
64
|
+
})
|
|
65
|
+
})), "description");
|
|
53
66
|
//#endregion
|
|
54
67
|
export { HelpBubbleAnchor, HelpBubbleArrow, HelpBubbleArrowTip, HelpBubbleBody, HelpBubbleCloseButton, HelpBubbleContent, HelpBubbleDescription, HelpBubblePositioner, HelpBubblePositionerPortal, HelpBubbleRoot, HelpBubbleTitle, HelpBubbleTrigger };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HelpBubble.test.d.ts","sourceRoot":"","sources":["../../../src/components/HelpBubble/HelpBubble.test.tsx"],"names":[],"mappings":""}
|
|
@@ -6,7 +6,6 @@ const require_AspectRatio = require("../AspectRatio/AspectRatio.cjs");
|
|
|
6
6
|
const require_Badge = require("../Badge/Badge.cjs");
|
|
7
7
|
const require_Icon$1 = require("../private/Icon.cjs");
|
|
8
8
|
const require_Float = require("../Float/Float.cjs");
|
|
9
|
-
let _seed_design_react_toggle = require("@seed-design/react-toggle");
|
|
10
9
|
let clsx = require("clsx");
|
|
11
10
|
clsx = require_runtime.__toESM(clsx);
|
|
12
11
|
let react = require("react");
|
|
@@ -20,6 +19,7 @@ let _seed_design_css_recipes_image_frame = require("@seed-design/css/recipes/ima
|
|
|
20
19
|
let _seed_design_css_recipes_image_frame_icon = require("@seed-design/css/recipes/image-frame-icon");
|
|
21
20
|
let _seed_design_css_recipes_image_frame_indicator = require("@seed-design/css/recipes/image-frame-indicator");
|
|
22
21
|
let _seed_design_css_recipes_image_frame_reaction_button = require("@seed-design/css/recipes/image-frame-reaction-button");
|
|
22
|
+
let _seed_design_react_toggle = require("@seed-design/react-toggle");
|
|
23
23
|
//#region src/components/ImageFrame/ImageFrame.tsx
|
|
24
24
|
var ImageFrame = react.forwardRef(({ ratio = 4 / 3, src, alt, fallback, className, loading, decoding, crossOrigin, referrerPolicy, sizes, srcSet, onLoad, onError, borderRadius = "r2", children, ...rest }, ref) => {
|
|
25
25
|
const [variantProps, restProps] = _seed_design_css_recipes_image_frame.imageFrame.splitVariantProps(rest);
|
|
@@ -68,10 +68,11 @@ var ImageFrameFloater = react.forwardRef(({ offsetX = "x1_5", offsetY = "x1_5",
|
|
|
68
68
|
});
|
|
69
69
|
});
|
|
70
70
|
ImageFrameFloater.displayName = "ImageFrameFloater";
|
|
71
|
-
var ImageFrameBadge = react.forwardRef((props, ref) => {
|
|
72
|
-
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_Badge.
|
|
71
|
+
var ImageFrameBadge = react.forwardRef(({ children, ...props }, ref) => {
|
|
72
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_Badge.BadgeRoot, {
|
|
73
73
|
ref,
|
|
74
|
-
...props
|
|
74
|
+
...props,
|
|
75
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_Badge.BadgeLabel, { children })
|
|
75
76
|
});
|
|
76
77
|
});
|
|
77
78
|
ImageFrameBadge.displayName = "ImageFrameBadge";
|
|
@@ -4,7 +4,7 @@ import { ImageFrameIndicatorVariantProps } from '@seed-design/css/recipes/image-
|
|
|
4
4
|
import { Toggle as TogglePrimitive } from '@seed-design/react-toggle';
|
|
5
5
|
import { DistributiveOmit } from '../../utils/styled';
|
|
6
6
|
import { AspectRatioProps } from '../AspectRatio/AspectRatio';
|
|
7
|
-
import {
|
|
7
|
+
import { BadgeRootProps } from '../Badge/Badge';
|
|
8
8
|
import { FloatProps } from '../Float/Float';
|
|
9
9
|
import * as React from "react";
|
|
10
10
|
export type ImageFrameProps = DistributiveOmit<AspectRatioProps, "children"> & ImageFrameVariantProps & {
|
|
@@ -28,7 +28,7 @@ export interface ImageFrameFloaterProps extends FloatProps {
|
|
|
28
28
|
* ImageFrame 내에서 오버레이 요소를 배치하기 위한 컴포넌트
|
|
29
29
|
*/
|
|
30
30
|
export declare const ImageFrameFloater: React.ForwardRefExoticComponent<ImageFrameFloaterProps & React.RefAttributes<HTMLDivElement>>;
|
|
31
|
-
export interface ImageFrameBadgeProps extends
|
|
31
|
+
export interface ImageFrameBadgeProps extends BadgeRootProps {
|
|
32
32
|
}
|
|
33
33
|
export declare const ImageFrameBadge: React.ForwardRefExoticComponent<ImageFrameBadgeProps & React.RefAttributes<HTMLSpanElement>>;
|
|
34
34
|
export interface ImageFrameIconProps extends ImageFrameIconVariantProps, Omit<React.HTMLAttributes<HTMLSpanElement>, "children"> {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ImageFrame.d.ts","sourceRoot":"","sources":["../../../src/components/ImageFrame/ImageFrame.tsx"],"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BAAwB,yGAkBnC,CAAC"}
|
|
@@ -2,10 +2,9 @@
|
|
|
2
2
|
import { createSlotRecipeContext } from "../../utils/createSlotRecipeContext.js";
|
|
3
3
|
import { Icon } from "../Icon/Icon.js";
|
|
4
4
|
import { AspectRatio } from "../AspectRatio/AspectRatio.js";
|
|
5
|
-
import {
|
|
5
|
+
import { BadgeLabel, BadgeRoot } from "../Badge/Badge.js";
|
|
6
6
|
import { InternalIcon } from "../private/Icon.js";
|
|
7
7
|
import { Float } from "../Float/Float.js";
|
|
8
|
-
import { Toggle, useToggleContext } from "@seed-design/react-toggle";
|
|
9
8
|
import clsx$1 from "clsx";
|
|
10
9
|
import * as React$1 from "react";
|
|
11
10
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -17,6 +16,7 @@ import { imageFrame } from "@seed-design/css/recipes/image-frame";
|
|
|
17
16
|
import { imageFrameIcon } from "@seed-design/css/recipes/image-frame-icon";
|
|
18
17
|
import { imageFrameIndicator } from "@seed-design/css/recipes/image-frame-indicator";
|
|
19
18
|
import { imageFrameReactionButton } from "@seed-design/css/recipes/image-frame-reaction-button";
|
|
19
|
+
import { Toggle, useToggleContext } from "@seed-design/react-toggle";
|
|
20
20
|
//#region src/components/ImageFrame/ImageFrame.tsx
|
|
21
21
|
var ImageFrame = React$1.forwardRef(({ ratio = 4 / 3, src, alt, fallback, className, loading, decoding, crossOrigin, referrerPolicy, sizes, srcSet, onLoad, onError, borderRadius = "r2", children, ...rest }, ref) => {
|
|
22
22
|
const [variantProps, restProps] = imageFrame.splitVariantProps(rest);
|
|
@@ -65,10 +65,11 @@ var ImageFrameFloater = React$1.forwardRef(({ offsetX = "x1_5", offsetY = "x1_5"
|
|
|
65
65
|
});
|
|
66
66
|
});
|
|
67
67
|
ImageFrameFloater.displayName = "ImageFrameFloater";
|
|
68
|
-
var ImageFrameBadge = React$1.forwardRef((props, ref) => {
|
|
69
|
-
return /* @__PURE__ */ jsx(
|
|
68
|
+
var ImageFrameBadge = React$1.forwardRef(({ children, ...props }, ref) => {
|
|
69
|
+
return /* @__PURE__ */ jsx(BadgeRoot, {
|
|
70
70
|
ref,
|
|
71
|
-
...props
|
|
71
|
+
...props,
|
|
72
|
+
children: /* @__PURE__ */ jsx(BadgeLabel, { children })
|
|
72
73
|
});
|
|
73
74
|
});
|
|
74
75
|
ImageFrameBadge.displayName = "ImageFrameBadge";
|