@seed-design/react 1.2.15 → 2.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 +42 -0
- package/lib/components/Accordion/Accordion.d.ts +35 -0
- package/lib/components/Accordion/Accordion.d.ts.map +1 -0
- package/lib/components/Accordion/Accordion.js +32 -0
- package/lib/components/Accordion/Accordion.namespace.cjs +22 -0
- package/lib/components/Accordion/Accordion.namespace.d.ts +2 -0
- package/lib/components/Accordion/Accordion.namespace.d.ts.map +1 -0
- package/lib/components/Accordion/Accordion.namespace.js +17 -0
- package/lib/components/Accordion/index.cjs +19 -0
- package/lib/components/Accordion/index.d.ts +3 -0
- package/lib/components/Accordion/index.d.ts.map +1 -0
- package/lib/components/Accordion/index.js +3 -0
- package/lib/components/ActionButton/ActionButton.cjs +1 -1
- package/lib/components/ActionButton/ActionButton.d.ts +1 -1
- package/lib/components/ActionButton/ActionButton.d.ts.map +1 -1
- package/lib/components/ActionButton/ActionButton.js +1 -1
- package/lib/components/ActionSheet/ActionSheet.cjs +12 -12
- package/lib/components/ActionSheet/ActionSheet.d.ts +22 -22
- package/lib/components/ActionSheet/ActionSheet.js +12 -12
- package/lib/components/Article/Article.d.ts +2 -3
- package/lib/components/Article/Article.d.ts.map +1 -1
- package/lib/components/AspectRatio/AspectRatio.d.ts +2 -2
- package/lib/components/AspectRatio/AspectRatio.d.ts.map +1 -1
- package/lib/components/AttachmentDisplay/AttachmentDisplay.cjs +63 -0
- package/lib/components/AttachmentDisplay/AttachmentDisplay.d.ts +43 -0
- package/lib/components/AttachmentDisplay/AttachmentDisplay.d.ts.map +1 -0
- package/lib/components/AttachmentDisplay/AttachmentDisplay.js +49 -0
- package/lib/components/AttachmentDisplay/AttachmentDisplay.namespace.cjs +37 -0
- package/lib/components/AttachmentDisplay/AttachmentDisplay.namespace.d.ts +5 -0
- package/lib/components/AttachmentDisplay/AttachmentDisplay.namespace.d.ts.map +1 -0
- package/lib/components/AttachmentDisplay/AttachmentDisplay.namespace.js +32 -0
- package/lib/components/AttachmentDisplay/AttachmentDisplayItem.cjs +110 -0
- package/lib/components/AttachmentDisplay/AttachmentDisplayItem.d.ts +30 -0
- package/lib/components/AttachmentDisplay/AttachmentDisplayItem.d.ts.map +1 -0
- package/lib/components/AttachmentDisplay/AttachmentDisplayItem.js +100 -0
- package/lib/components/AttachmentDisplay/AttachmentDisplayTrigger.cjs +50 -0
- package/lib/components/AttachmentDisplay/AttachmentDisplayTrigger.d.ts +18 -0
- package/lib/components/AttachmentDisplay/AttachmentDisplayTrigger.d.ts.map +1 -0
- package/lib/components/AttachmentDisplay/AttachmentDisplayTrigger.js +45 -0
- package/lib/components/AttachmentDisplay/index.cjs +34 -0
- package/lib/components/AttachmentDisplay/index.d.ts +6 -0
- package/lib/components/AttachmentDisplay/index.d.ts.map +1 -0
- package/lib/components/AttachmentDisplay/index.js +5 -0
- package/lib/components/AttachmentInput/AttachmentInput.cjs +37 -0
- package/lib/components/AttachmentInput/AttachmentInput.d.ts +23 -0
- package/lib/components/AttachmentInput/AttachmentInput.d.ts.map +1 -0
- package/lib/components/AttachmentInput/AttachmentInput.js +30 -0
- package/lib/components/AttachmentInput/AttachmentInput.namespace.cjs +35 -0
- package/lib/components/AttachmentInput/AttachmentInput.namespace.d.ts +6 -0
- package/lib/components/AttachmentInput/AttachmentInput.namespace.d.ts.map +1 -0
- package/lib/components/AttachmentInput/AttachmentInput.namespace.js +30 -0
- package/lib/components/AttachmentInput/AttachmentInput.test.d.ts +2 -0
- package/lib/components/AttachmentInput/AttachmentInput.test.d.ts.map +1 -0
- package/lib/components/AttachmentInput/AttachmentInputDropzone.cjs +12 -0
- package/lib/components/AttachmentInput/AttachmentInputDropzone.d.ts +9 -0
- package/lib/components/AttachmentInput/AttachmentInputDropzone.d.ts.map +1 -0
- package/lib/components/AttachmentInput/AttachmentInputDropzone.js +10 -0
- package/lib/components/AttachmentInput/AttachmentInputItem.cjs +138 -0
- package/lib/components/AttachmentInput/AttachmentInputItem.d.ts +36 -0
- package/lib/components/AttachmentInput/AttachmentInputItem.d.ts.map +1 -0
- package/lib/components/AttachmentInput/AttachmentInputItem.js +126 -0
- package/lib/components/AttachmentInput/AttachmentInputTrigger.cjs +54 -0
- package/lib/components/AttachmentInput/AttachmentInputTrigger.d.ts +21 -0
- package/lib/components/AttachmentInput/AttachmentInputTrigger.d.ts.map +1 -0
- package/lib/components/AttachmentInput/AttachmentInputTrigger.js +49 -0
- package/lib/components/AttachmentInput/index.cjs +32 -0
- package/lib/components/AttachmentInput/index.d.ts +7 -0
- package/lib/components/AttachmentInput/index.d.ts.map +1 -0
- package/lib/components/AttachmentInput/index.js +6 -0
- package/lib/components/BottomSheet/BottomSheet.cjs +36 -9
- package/lib/components/BottomSheet/BottomSheet.d.ts +2 -7
- package/lib/components/BottomSheet/BottomSheet.d.ts.map +1 -1
- package/lib/components/BottomSheet/BottomSheet.js +35 -9
- package/lib/components/Box/Box.cjs +10 -3
- package/lib/components/Box/Box.d.ts +4 -2
- package/lib/components/Box/Box.d.ts.map +1 -1
- package/lib/components/Box/Box.js +10 -3
- package/lib/components/Checkbox/Checkbox.cjs +2 -6
- package/lib/components/Checkbox/Checkbox.d.ts +1 -7
- package/lib/components/Checkbox/Checkbox.d.ts.map +1 -1
- package/lib/components/Checkbox/Checkbox.js +2 -6
- package/lib/components/Chip/Chip.cjs +1 -1
- package/lib/components/Chip/Chip.js +1 -1
- package/lib/components/ChipTabs/ChipTabs.cjs +0 -1
- package/lib/components/ChipTabs/ChipTabs.d.ts.map +1 -1
- package/lib/components/ChipTabs/ChipTabs.js +0 -1
- package/lib/components/Columns/Columns.d.ts +4 -4
- package/lib/components/Columns/Columns.d.ts.map +1 -1
- package/lib/components/ExtendedActionSheet/ExtendedActionSheet.cjs +13 -13
- package/lib/components/ExtendedActionSheet/ExtendedActionSheet.d.ts +24 -24
- package/lib/components/ExtendedActionSheet/ExtendedActionSheet.js +13 -13
- package/lib/components/FieldButton/FieldButton.cjs +22 -3
- package/lib/components/FieldButton/FieldButton.d.ts +3 -2
- package/lib/components/FieldButton/FieldButton.d.ts.map +1 -1
- package/lib/components/FieldButton/FieldButton.js +23 -3
- package/lib/components/Flex/Flex.d.ts +5 -3
- package/lib/components/Flex/Flex.d.ts.map +1 -1
- package/lib/components/Footer/Footer.namespace.cjs +11 -0
- package/lib/components/Footer/Footer.namespace.d.ts +2 -0
- package/lib/components/Footer/Footer.namespace.d.ts.map +1 -0
- package/lib/components/Footer/Footer.namespace.js +6 -0
- package/lib/components/Footer/FooterLinkText.cjs +23 -0
- package/lib/components/Footer/FooterLinkText.d.ts +7 -0
- package/lib/components/Footer/FooterLinkText.d.ts.map +1 -0
- package/lib/components/Footer/FooterLinkText.js +20 -0
- package/lib/components/Footer/index.cjs +10 -0
- package/lib/components/Footer/index.d.ts +3 -0
- package/lib/components/Footer/index.d.ts.map +1 -0
- package/lib/components/Footer/index.js +3 -0
- package/lib/components/Grid/Grid.cjs +7 -2
- package/lib/components/Grid/Grid.d.ts +7 -5
- package/lib/components/Grid/Grid.d.ts.map +1 -1
- package/lib/components/Grid/Grid.js +7 -2
- package/lib/components/GridItem/GridItem.d.ts +3 -2
- package/lib/components/GridItem/GridItem.d.ts.map +1 -1
- package/lib/components/HelpBubble/HelpBubble.cjs +4 -7
- package/lib/components/HelpBubble/HelpBubble.d.ts.map +1 -1
- package/lib/components/HelpBubble/HelpBubble.js +4 -7
- package/lib/components/HelpBubbleTooltip/HelpBubbleTooltip.cjs +64 -0
- package/lib/components/HelpBubbleTooltip/HelpBubbleTooltip.d.ts +60 -0
- package/lib/components/HelpBubbleTooltip/HelpBubbleTooltip.d.ts.map +1 -0
- package/lib/components/HelpBubbleTooltip/HelpBubbleTooltip.js +52 -0
- package/lib/components/HelpBubbleTooltip/HelpBubbleTooltip.namespace.cjs +23 -0
- package/lib/components/HelpBubbleTooltip/HelpBubbleTooltip.namespace.d.ts +2 -0
- package/lib/components/HelpBubbleTooltip/HelpBubbleTooltip.namespace.d.ts.map +1 -0
- package/lib/components/HelpBubbleTooltip/HelpBubbleTooltip.namespace.js +18 -0
- package/lib/components/HelpBubbleTooltip/index.cjs +20 -0
- package/lib/components/HelpBubbleTooltip/index.d.ts +3 -0
- package/lib/components/HelpBubbleTooltip/index.d.ts.map +1 -0
- package/lib/components/HelpBubbleTooltip/index.js +3 -0
- package/lib/components/Icon/Icon.d.ts +2 -1
- package/lib/components/Icon/Icon.d.ts.map +1 -1
- package/lib/components/ImageFrame/ImageFrame.cjs +10 -10
- package/lib/components/ImageFrame/ImageFrame.d.ts +3 -11
- package/lib/components/ImageFrame/ImageFrame.d.ts.map +1 -1
- package/lib/components/ImageFrame/ImageFrame.js +10 -10
- package/lib/components/Inline/Inline.d.ts +2 -2
- package/lib/components/Inline/Inline.d.ts.map +1 -1
- package/lib/components/Layout/Layout.cjs +12 -0
- package/lib/components/Layout/Layout.d.ts +10 -0
- package/lib/components/Layout/Layout.d.ts.map +1 -0
- package/lib/components/Layout/Layout.js +10 -0
- package/lib/components/Layout/Layout.namespace.cjs +14 -0
- package/lib/components/Layout/Layout.namespace.d.ts +2 -0
- package/lib/components/Layout/Layout.namespace.d.ts.map +1 -0
- package/lib/components/Layout/Layout.namespace.js +9 -0
- package/lib/components/Layout/index.cjs +11 -0
- package/lib/components/Layout/index.d.ts +3 -0
- package/lib/components/Layout/index.d.ts.map +1 -0
- package/lib/components/Layout/index.js +3 -0
- package/lib/components/List/List.cjs +1 -1
- package/lib/components/List/List.d.ts +1 -1
- package/lib/components/List/List.d.ts.map +1 -1
- package/lib/components/List/List.js +1 -1
- package/lib/components/Menu/Menu.cjs +76 -0
- package/lib/components/Menu/Menu.d.ts +42 -0
- package/lib/components/Menu/Menu.d.ts.map +1 -0
- package/lib/components/Menu/Menu.js +62 -0
- package/lib/components/Menu/Menu.namespace.cjs +24 -0
- package/lib/components/Menu/Menu.namespace.d.ts +2 -0
- package/lib/components/Menu/Menu.namespace.d.ts.map +1 -0
- package/lib/components/Menu/Menu.namespace.js +19 -0
- package/lib/components/Menu/index.cjs +21 -0
- package/lib/components/Menu/index.d.ts +3 -0
- package/lib/components/Menu/index.d.ts.map +1 -0
- package/lib/components/Menu/index.js +3 -0
- package/lib/components/MenuSheet/MenuSheet.cjs +48 -0
- package/lib/components/MenuSheet/MenuSheet.d.ts +96 -0
- package/lib/components/MenuSheet/MenuSheet.d.ts.map +1 -1
- package/lib/components/MenuSheet/MenuSheet.js +48 -0
- package/lib/components/NavigationMenu/NavigationMenu.cjs +76 -0
- package/lib/components/NavigationMenu/NavigationMenu.d.ts +42 -0
- package/lib/components/NavigationMenu/NavigationMenu.d.ts.map +1 -0
- package/lib/components/NavigationMenu/NavigationMenu.js +62 -0
- package/lib/components/NavigationMenu/NavigationMenu.namespace.cjs +24 -0
- package/lib/components/NavigationMenu/NavigationMenu.namespace.d.ts +2 -0
- package/lib/components/NavigationMenu/NavigationMenu.namespace.d.ts.map +1 -0
- package/lib/components/NavigationMenu/NavigationMenu.namespace.js +19 -0
- package/lib/components/NavigationMenu/index.cjs +21 -0
- package/lib/components/NavigationMenu/index.d.ts +3 -0
- package/lib/components/NavigationMenu/index.d.ts.map +1 -0
- package/lib/components/NavigationMenu/index.js +3 -0
- package/lib/components/RadioGroup/RadioGroup.cjs +1 -1
- package/lib/components/RadioGroup/RadioGroup.js +1 -1
- package/lib/components/ResponsivePair/ResponsivePair.cjs +8 -5
- package/lib/components/ResponsivePair/ResponsivePair.d.ts +3 -2
- package/lib/components/ResponsivePair/ResponsivePair.d.ts.map +1 -1
- package/lib/components/ResponsivePair/ResponsivePair.js +8 -5
- package/lib/components/ResponsiveSidePanel/ResponsiveSidePanel.cjs +184 -0
- package/lib/components/ResponsiveSidePanel/ResponsiveSidePanel.d.ts +65 -0
- package/lib/components/ResponsiveSidePanel/ResponsiveSidePanel.d.ts.map +1 -0
- package/lib/components/ResponsiveSidePanel/ResponsiveSidePanel.js +170 -0
- package/lib/components/ResponsiveSidePanel/ResponsiveSidePanel.namespace.cjs +24 -0
- package/lib/components/ResponsiveSidePanel/ResponsiveSidePanel.namespace.d.ts +2 -0
- package/lib/components/ResponsiveSidePanel/ResponsiveSidePanel.namespace.d.ts.map +1 -0
- package/lib/components/ResponsiveSidePanel/ResponsiveSidePanel.namespace.js +19 -0
- package/lib/components/ResponsiveSidePanel/index.cjs +22 -0
- package/lib/components/ResponsiveSidePanel/index.d.ts +3 -0
- package/lib/components/ResponsiveSidePanel/index.d.ts.map +1 -0
- package/lib/components/ResponsiveSidePanel/index.js +3 -0
- package/lib/components/ScrollFog/ScrollFog.cjs +1 -2
- package/lib/components/ScrollFog/ScrollFog.d.ts.map +1 -1
- package/lib/components/ScrollFog/ScrollFog.js +4 -5
- package/lib/components/SelectBox/CheckSelectBox.cjs +2 -2
- package/lib/components/SelectBox/CheckSelectBox.d.ts +1 -1
- package/lib/components/SelectBox/CheckSelectBox.d.ts.map +1 -1
- package/lib/components/SelectBox/CheckSelectBox.js +1 -1
- package/lib/components/SideNavigation/SideNavigation.cjs +175 -0
- package/lib/components/SideNavigation/SideNavigation.d.ts +59 -0
- package/lib/components/SideNavigation/SideNavigation.d.ts.map +1 -0
- package/lib/components/SideNavigation/SideNavigation.js +157 -0
- package/lib/components/SideNavigation/SideNavigation.namespace.cjs +28 -0
- package/lib/components/SideNavigation/SideNavigation.namespace.d.ts +3 -0
- package/lib/components/SideNavigation/SideNavigation.namespace.d.ts.map +1 -0
- package/lib/components/SideNavigation/SideNavigation.namespace.js +23 -0
- package/lib/components/SideNavigation/index.cjs +25 -0
- package/lib/components/SideNavigation/index.d.ts +4 -0
- package/lib/components/SideNavigation/index.d.ts.map +1 -0
- package/lib/components/SideNavigation/index.js +3 -0
- package/lib/components/SidePanel/SidePanel.cjs +100 -0
- package/lib/components/SidePanel/SidePanel.d.ts +41 -0
- package/lib/components/SidePanel/SidePanel.d.ts.map +1 -0
- package/lib/components/SidePanel/SidePanel.js +87 -0
- package/lib/components/SidePanel/SidePanel.namespace.cjs +23 -0
- package/lib/components/SidePanel/SidePanel.namespace.d.ts +2 -0
- package/lib/components/SidePanel/SidePanel.namespace.d.ts.map +1 -0
- package/lib/components/SidePanel/SidePanel.namespace.js +18 -0
- package/lib/components/SidePanel/index.cjs +20 -0
- package/lib/components/SidePanel/index.d.ts +3 -0
- package/lib/components/SidePanel/index.d.ts.map +1 -0
- package/lib/components/SidePanel/index.js +3 -0
- package/lib/components/Slider/Slider.cjs +2 -2
- package/lib/components/Slider/Slider.js +2 -2
- package/lib/components/Snackbar/Snackbar.cjs +2 -2
- package/lib/components/Snackbar/Snackbar.d.ts +1 -1
- package/lib/components/Snackbar/Snackbar.d.ts.map +1 -1
- package/lib/components/Snackbar/Snackbar.js +2 -2
- package/lib/components/Stack/Stack.d.ts +4 -6
- package/lib/components/Stack/Stack.d.ts.map +1 -1
- package/lib/components/SwipeableMenuSheet/SwipeableMenuSheet.cjs +123 -0
- package/lib/components/SwipeableMenuSheet/SwipeableMenuSheet.d.ts +60 -0
- package/lib/components/SwipeableMenuSheet/SwipeableMenuSheet.d.ts.map +1 -0
- package/lib/components/SwipeableMenuSheet/SwipeableMenuSheet.js +104 -0
- package/lib/components/SwipeableMenuSheet/SwipeableMenuSheet.namespace.cjs +29 -0
- package/lib/components/SwipeableMenuSheet/SwipeableMenuSheet.namespace.d.ts +2 -0
- package/lib/components/SwipeableMenuSheet/SwipeableMenuSheet.namespace.d.ts.map +1 -0
- package/lib/components/SwipeableMenuSheet/SwipeableMenuSheet.namespace.js +24 -0
- package/lib/components/SwipeableMenuSheet/index.cjs +26 -0
- package/lib/components/SwipeableMenuSheet/index.d.ts +3 -0
- package/lib/components/SwipeableMenuSheet/index.d.ts.map +1 -0
- package/lib/components/SwipeableMenuSheet/index.js +3 -0
- package/lib/components/Switch/Switch.cjs +1 -5
- package/lib/components/Switch/Switch.d.ts +1 -7
- package/lib/components/Switch/Switch.d.ts.map +1 -1
- package/lib/components/Switch/Switch.js +1 -5
- package/lib/components/TagGroup/TagGroup.cjs +1 -1
- package/lib/components/TagGroup/TagGroup.js +1 -1
- package/lib/components/TextField/TextField.cjs +1 -1
- package/lib/components/TextField/TextField.js +1 -1
- package/lib/components/index.cjs +249 -0
- package/lib/components/index.d.ts +12 -0
- package/lib/components/index.d.ts.map +1 -1
- package/lib/components/index.js +30 -1
- package/lib/components/private/useDismissible.d.ts +6 -6
- package/lib/hooks/useBreakpoint.cjs +15 -0
- package/lib/hooks/useBreakpoint.d.ts +12 -0
- package/lib/hooks/useBreakpoint.d.ts.map +1 -0
- package/lib/hooks/useBreakpoint.js +13 -0
- package/lib/hooks/useBreakpoint.test.d.ts +2 -0
- package/lib/hooks/useBreakpoint.test.d.ts.map +1 -0
- package/lib/hooks/useBreakpointValue.cjs +23 -0
- package/lib/hooks/useBreakpointValue.d.ts +8 -0
- package/lib/hooks/useBreakpointValue.d.ts.map +1 -0
- package/lib/hooks/useBreakpointValue.js +22 -0
- package/lib/hooks/useBreakpointValue.test.d.ts +2 -0
- package/lib/hooks/useBreakpointValue.test.d.ts.map +1 -0
- package/lib/index.cjs +255 -0
- package/lib/index.d.ts +6 -0
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +33 -1
- package/lib/primitive.cjs +45 -0
- package/lib/primitive.d.ts +5 -0
- package/lib/primitive.d.ts.map +1 -1
- package/lib/primitive.js +5 -0
- package/lib/primitives/breakpoint-store.cjs +52 -0
- package/lib/primitives/breakpoint-store.d.ts +7 -0
- package/lib/primitives/breakpoint-store.d.ts.map +1 -0
- package/lib/primitives/breakpoint-store.js +50 -0
- package/lib/providers/BreakpointProvider.cjs +20 -0
- package/lib/providers/BreakpointProvider.d.ts +8 -0
- package/lib/providers/BreakpointProvider.d.ts.map +1 -0
- package/lib/providers/BreakpointProvider.js +19 -0
- package/lib/types/responsive.cjs +7 -0
- package/lib/types/responsive.d.ts +12 -0
- package/lib/types/responsive.d.ts.map +1 -0
- package/lib/types/responsive.js +7 -0
- package/lib/utils/createRenderTrackingContext.cjs +45 -0
- package/lib/utils/createRenderTrackingContext.d.ts +28 -0
- package/lib/utils/createRenderTrackingContext.d.ts.map +1 -0
- package/lib/utils/createRenderTrackingContext.js +44 -0
- package/lib/utils/getHelpBubbleArrowTipPath.cjs +14 -0
- package/lib/utils/getHelpBubbleArrowTipPath.d.ts +7 -0
- package/lib/utils/getHelpBubbleArrowTipPath.d.ts.map +1 -0
- package/lib/utils/getHelpBubbleArrowTipPath.js +14 -0
- package/lib/utils/styled.cjs +49 -75
- package/lib/utils/styled.d.ts +180 -62
- package/lib/utils/styled.d.ts.map +1 -1
- package/lib/utils/styled.js +49 -76
- package/package.json +33 -26
- package/src/components/Accordion/Accordion.namespace.ts +22 -0
- package/src/components/Accordion/Accordion.tsx +119 -0
- package/src/components/Accordion/index.ts +24 -0
- package/src/components/ActionButton/ActionButton.tsx +1 -1
- package/src/components/ActionSheet/ActionSheet.tsx +22 -22
- package/src/components/Article/Article.tsx +1 -1
- package/src/components/AspectRatio/AspectRatio.tsx +2 -2
- package/src/components/AttachmentDisplay/AttachmentDisplay.namespace.ts +57 -0
- package/src/components/AttachmentDisplay/AttachmentDisplay.tsx +165 -0
- package/src/components/AttachmentDisplay/AttachmentDisplayItem.tsx +204 -0
- package/src/components/AttachmentDisplay/AttachmentDisplayTrigger.tsx +82 -0
- package/src/components/AttachmentDisplay/index.ts +59 -0
- package/src/components/AttachmentInput/AttachmentInput.namespace.ts +54 -0
- package/src/components/AttachmentInput/AttachmentInput.test.tsx +161 -0
- package/src/components/AttachmentInput/AttachmentInput.tsx +77 -0
- package/src/components/AttachmentInput/AttachmentInputDropzone.tsx +25 -0
- package/src/components/AttachmentInput/AttachmentInputItem.tsx +246 -0
- package/src/components/AttachmentInput/AttachmentInputTrigger.tsx +85 -0
- package/src/components/AttachmentInput/index.ts +56 -0
- package/src/components/BottomSheet/BottomSheet.tsx +51 -22
- package/src/components/Box/Box.tsx +30 -7
- package/src/components/Checkbox/Checkbox.tsx +3 -31
- package/src/components/ChipTabs/ChipTabs.tsx +0 -6
- package/src/components/Columns/Columns.tsx +4 -3
- package/src/components/ExtendedActionSheet/ExtendedActionSheet.tsx +24 -24
- package/src/components/FieldButton/FieldButton.tsx +36 -8
- package/src/components/Flex/Flex.tsx +5 -3
- package/src/components/Footer/Footer.namespace.ts +4 -0
- package/src/components/Footer/FooterLinkText.tsx +23 -0
- package/src/components/Footer/index.ts +3 -0
- package/src/components/Grid/Grid.tsx +15 -8
- package/src/components/GridItem/GridItem.tsx +3 -2
- package/src/components/HelpBubble/HelpBubble.tsx +2 -5
- package/src/components/HelpBubbleTooltip/HelpBubbleTooltip.namespace.ts +24 -0
- package/src/components/HelpBubbleTooltip/HelpBubbleTooltip.tsx +169 -0
- package/src/components/HelpBubbleTooltip/index.ts +26 -0
- package/src/components/Icon/Icon.tsx +2 -1
- package/src/components/ImageFrame/ImageFrame.test.tsx +1 -3
- package/src/components/ImageFrame/ImageFrame.tsx +29 -35
- package/src/components/Inline/Inline.tsx +2 -1
- package/src/components/Layout/Layout.namespace.ts +6 -0
- package/src/components/Layout/Layout.tsx +21 -0
- package/src/components/Layout/index.ts +8 -0
- package/src/components/List/List.tsx +5 -1
- package/src/components/Menu/Menu.namespace.ts +26 -0
- package/src/components/Menu/Menu.tsx +157 -0
- package/src/components/Menu/index.ts +28 -0
- package/src/components/MenuSheet/MenuSheet.tsx +96 -0
- package/src/components/NavigationMenu/NavigationMenu.namespace.ts +26 -0
- package/src/components/NavigationMenu/NavigationMenu.tsx +172 -0
- package/src/components/NavigationMenu/index.ts +28 -0
- package/src/components/ResponsivePair/ResponsivePair.tsx +13 -7
- package/src/components/ResponsiveSidePanel/ResponsiveSidePanel.namespace.ts +26 -0
- package/src/components/ResponsiveSidePanel/ResponsiveSidePanel.tsx +316 -0
- package/src/components/ResponsiveSidePanel/index.ts +29 -0
- package/src/components/ScrollFog/ScrollFog.tsx +2 -11
- package/src/components/SelectBox/CheckSelectBox.tsx +1 -1
- package/src/components/SideNavigation/SideNavigation.namespace.ts +37 -0
- package/src/components/SideNavigation/SideNavigation.tsx +342 -0
- package/src/components/SideNavigation/index.ts +39 -0
- package/src/components/SidePanel/SidePanel.namespace.ts +24 -0
- package/src/components/SidePanel/SidePanel.tsx +216 -0
- package/src/components/SidePanel/index.ts +26 -0
- package/src/components/Snackbar/Snackbar.tsx +2 -4
- package/src/components/Stack/Stack.tsx +4 -3
- package/src/components/SwipeableMenuSheet/SwipeableMenuSheet.namespace.ts +36 -0
- package/src/components/SwipeableMenuSheet/SwipeableMenuSheet.tsx +269 -0
- package/src/components/SwipeableMenuSheet/index.ts +38 -0
- package/src/components/Switch/Switch.tsx +3 -26
- package/src/components/index.ts +12 -0
- package/src/hooks/useBreakpoint.test.tsx +94 -0
- package/src/hooks/useBreakpoint.ts +24 -0
- package/src/hooks/useBreakpointValue.test.tsx +102 -0
- package/src/hooks/useBreakpointValue.ts +33 -0
- package/src/index.ts +8 -0
- package/src/primitive.ts +5 -0
- package/src/primitives/breakpoint-store.ts +69 -0
- package/src/providers/BreakpointProvider.tsx +26 -0
- package/src/types/responsive.ts +19 -0
- package/src/utils/createRenderTrackingContext.tsx +50 -0
- package/src/utils/getHelpBubbleArrowTipPath.ts +11 -0
- package/src/utils/styled.tsx +387 -268
|
@@ -12,13 +12,28 @@ import { menuSheetItem } from "@seed-design/css/recipes/menu-sheet-item";
|
|
|
12
12
|
var { withRootProvider, withContext, useClassNames } = createSlotRecipeContext(menuSheet);
|
|
13
13
|
var { PropsProvider: ItemPropsProvider, useProps: useItemProps, withContext: withItemContext, ClassNamesProvider: ItemClassNamesProvider } = createSlotRecipeContext(menuSheetItem);
|
|
14
14
|
var withStateProps = createWithStateProps([useDialogContext]);
|
|
15
|
+
/**
|
|
16
|
+
* @deprecated Use `SwipeableMenuSheet` instead.
|
|
17
|
+
*/
|
|
15
18
|
var MenuSheetRoot = withRootProvider(Dialog.Root, { defaultProps: {
|
|
16
19
|
lazyMount: true,
|
|
17
20
|
unmountOnExit: true
|
|
18
21
|
} });
|
|
22
|
+
/**
|
|
23
|
+
* @deprecated Use `SwipeableMenuSheet` instead.
|
|
24
|
+
*/
|
|
19
25
|
var MenuSheetTrigger = Dialog.Trigger;
|
|
26
|
+
/**
|
|
27
|
+
* @deprecated Use `SwipeableMenuSheet` instead.
|
|
28
|
+
*/
|
|
20
29
|
var MenuSheetPositioner = withContext(Dialog.Positioner, "positioner");
|
|
30
|
+
/**
|
|
31
|
+
* @deprecated Use `SwipeableMenuSheet` instead.
|
|
32
|
+
*/
|
|
21
33
|
var MenuSheetBackdrop = withContext(Dialog.Backdrop, "backdrop");
|
|
34
|
+
/**
|
|
35
|
+
* @deprecated Use `SwipeableMenuSheet` instead.
|
|
36
|
+
*/
|
|
22
37
|
var MenuSheetContent = React$1.forwardRef(({ className, ...props }, ref) => {
|
|
23
38
|
const [variantProps, otherProps] = menuSheetItem.splitVariantProps(props);
|
|
24
39
|
const classNames = useClassNames();
|
|
@@ -31,10 +46,25 @@ var MenuSheetContent = React$1.forwardRef(({ className, ...props }, ref) => {
|
|
|
31
46
|
})
|
|
32
47
|
});
|
|
33
48
|
});
|
|
49
|
+
/**
|
|
50
|
+
* @deprecated Use `SwipeableMenuSheet` instead.
|
|
51
|
+
*/
|
|
34
52
|
var MenuSheetHeader = withContext(withStateProps(Primitive.div), "header");
|
|
53
|
+
/**
|
|
54
|
+
* @deprecated Use `SwipeableMenuSheet` instead.
|
|
55
|
+
*/
|
|
35
56
|
var MenuSheetTitle = withContext(withStateProps(Primitive.h2), "title");
|
|
57
|
+
/**
|
|
58
|
+
* @deprecated Use `SwipeableMenuSheet` instead.
|
|
59
|
+
*/
|
|
36
60
|
var MenuSheetDescription = withContext(withStateProps(Primitive.p), "description");
|
|
61
|
+
/**
|
|
62
|
+
* @deprecated Use `SwipeableMenuSheet` instead.
|
|
63
|
+
*/
|
|
37
64
|
var MenuSheetList = withContext(withStateProps(Primitive.div), "list");
|
|
65
|
+
/**
|
|
66
|
+
* @deprecated Use `SwipeableMenuSheet` instead.
|
|
67
|
+
*/
|
|
38
68
|
var MenuSheetGroup = React$1.forwardRef(({ className, ...props }, ref) => {
|
|
39
69
|
const [variantProps, otherProps] = menuSheetItem.splitVariantProps(props);
|
|
40
70
|
const parentProps = useItemProps();
|
|
@@ -53,6 +83,9 @@ var MenuSheetGroup = React$1.forwardRef(({ className, ...props }, ref) => {
|
|
|
53
83
|
})
|
|
54
84
|
});
|
|
55
85
|
});
|
|
86
|
+
/**
|
|
87
|
+
* @deprecated Use `SwipeableMenuSheet` instead.
|
|
88
|
+
*/
|
|
56
89
|
var MenuSheetItem = React$1.forwardRef(({ className: propClassName, ...props }, ref) => {
|
|
57
90
|
const [variantProps, otherProps] = menuSheetItem.splitVariantProps(props);
|
|
58
91
|
const classNames = menuSheetItem({
|
|
@@ -70,10 +103,25 @@ var MenuSheetItem = React$1.forwardRef(({ className: propClassName, ...props },
|
|
|
70
103
|
})
|
|
71
104
|
});
|
|
72
105
|
});
|
|
106
|
+
/**
|
|
107
|
+
* @deprecated Use `SwipeableMenuSheet` instead.
|
|
108
|
+
*/
|
|
73
109
|
var MenuSheetItemContent = withItemContext(withStateProps(Primitive.div), "content");
|
|
110
|
+
/**
|
|
111
|
+
* @deprecated Use `SwipeableMenuSheet` instead.
|
|
112
|
+
*/
|
|
74
113
|
var MenuSheetItemLabel = withItemContext(withStateProps(Primitive.span), "label");
|
|
114
|
+
/**
|
|
115
|
+
* @deprecated Use `SwipeableMenuSheet` instead.
|
|
116
|
+
*/
|
|
75
117
|
var MenuSheetItemDescription = withItemContext(withStateProps(Primitive.span), "description");
|
|
118
|
+
/**
|
|
119
|
+
* @deprecated Use `SwipeableMenuSheet` instead.
|
|
120
|
+
*/
|
|
76
121
|
var MenuSheetFooter = withContext(withStateProps(Primitive.div), "footer");
|
|
122
|
+
/**
|
|
123
|
+
* @deprecated Use `SwipeableMenuSheet` instead.
|
|
124
|
+
*/
|
|
77
125
|
var MenuSheetCloseButton = withContext(Dialog.CloseButton, "closeButton");
|
|
78
126
|
//#endregion
|
|
79
127
|
export { MenuSheetBackdrop, MenuSheetCloseButton, MenuSheetContent, MenuSheetDescription, MenuSheetFooter, MenuSheetGroup, MenuSheetHeader, MenuSheetItem, MenuSheetItemContent, MenuSheetItemDescription, MenuSheetItemLabel, MenuSheetList, MenuSheetPositioner, MenuSheetRoot, MenuSheetTitle, MenuSheetTrigger };
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
"use client";
|
|
3
|
+
const require_runtime = require("../../_virtual/_rolldown/runtime.cjs");
|
|
4
|
+
const require_createSlotRecipeContext = require("../../utils/createSlotRecipeContext.cjs");
|
|
5
|
+
const require_createWithStateProps = require("../../utils/createWithStateProps.cjs");
|
|
6
|
+
let _seed_design_react_navigation_menu = require("@seed-design/react-navigation-menu");
|
|
7
|
+
let _seed_design_react_primitive = require("@seed-design/react-primitive");
|
|
8
|
+
let clsx = require("clsx");
|
|
9
|
+
clsx = require_runtime.__toESM(clsx);
|
|
10
|
+
let react = require("react");
|
|
11
|
+
react = require_runtime.__toESM(react);
|
|
12
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
13
|
+
let _seed_design_css_recipes_menu = require("@seed-design/css/recipes/menu");
|
|
14
|
+
let _seed_design_css_recipes_menu_item = require("@seed-design/css/recipes/menu-item");
|
|
15
|
+
//#region src/components/NavigationMenu/NavigationMenu.tsx
|
|
16
|
+
var { ClassNamesProvider, withContext, useClassNames } = require_createSlotRecipeContext.createSlotRecipeContext(_seed_design_css_recipes_menu.menu);
|
|
17
|
+
var { PropsProvider: ItemPropsProvider, useProps: useItemProps, withContext: withItemContext, ClassNamesProvider: ItemClassNamesProvider } = require_createSlotRecipeContext.createSlotRecipeContext(_seed_design_css_recipes_menu_item.menuItem);
|
|
18
|
+
var withStateProps = require_createWithStateProps.createWithStateProps([_seed_design_react_navigation_menu.useNavigationMenuRootContext]);
|
|
19
|
+
var withItemStateProps = require_createWithStateProps.createWithStateProps([_seed_design_react_navigation_menu.useNavigationMenuItemContext]);
|
|
20
|
+
var NavigationMenuProvider = (props) => {
|
|
21
|
+
const [variantProps, otherProps] = _seed_design_css_recipes_menu.menu.splitVariantProps(props);
|
|
22
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ClassNamesProvider, {
|
|
23
|
+
value: (0, _seed_design_css_recipes_menu.menu)(variantProps),
|
|
24
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ItemPropsProvider, {
|
|
25
|
+
value: { size: variantProps.size },
|
|
26
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_seed_design_react_navigation_menu.NavigationMenu.Provider, { ...otherProps })
|
|
27
|
+
})
|
|
28
|
+
});
|
|
29
|
+
};
|
|
30
|
+
var NavigationMenuRoot = _seed_design_react_navigation_menu.NavigationMenu.Root;
|
|
31
|
+
var NavigationMenuTrigger = _seed_design_react_navigation_menu.NavigationMenu.Trigger;
|
|
32
|
+
var NavigationMenuPositioner = react.forwardRef(({ className, ...props }, ref) => {
|
|
33
|
+
const classNames = useClassNames();
|
|
34
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_seed_design_react_navigation_menu.NavigationMenu.Positioner, {
|
|
35
|
+
ref,
|
|
36
|
+
className: (0, clsx.default)(classNames.positioner, className),
|
|
37
|
+
...props
|
|
38
|
+
});
|
|
39
|
+
});
|
|
40
|
+
NavigationMenuPositioner.displayName = "NavigationMenuPositioner";
|
|
41
|
+
var NavigationMenuContent = withContext(_seed_design_react_navigation_menu.NavigationMenu.Content, "content");
|
|
42
|
+
var NavigationMenuScrollArea = withContext(withStateProps(_seed_design_react_primitive.Primitive.div), "scrollArea");
|
|
43
|
+
var NavigationMenuGroup = withContext(_seed_design_react_navigation_menu.NavigationMenu.Group, "group");
|
|
44
|
+
var NavigationMenuGroupLabel = withContext(_seed_design_react_navigation_menu.NavigationMenu.GroupLabel, "groupLabel");
|
|
45
|
+
var NavigationMenuItem = react.forwardRef(({ className: propClassName, ...props }, ref) => {
|
|
46
|
+
const [variantProps, otherProps] = _seed_design_css_recipes_menu_item.menuItem.splitVariantProps(props);
|
|
47
|
+
const classNames = (0, _seed_design_css_recipes_menu_item.menuItem)({
|
|
48
|
+
...useItemProps(),
|
|
49
|
+
...variantProps
|
|
50
|
+
});
|
|
51
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ItemClassNamesProvider, {
|
|
52
|
+
value: classNames,
|
|
53
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_seed_design_react_navigation_menu.NavigationMenu.Item, {
|
|
54
|
+
ref,
|
|
55
|
+
className: (0, clsx.default)(classNames.root, propClassName),
|
|
56
|
+
...otherProps
|
|
57
|
+
})
|
|
58
|
+
});
|
|
59
|
+
});
|
|
60
|
+
NavigationMenuItem.displayName = "NavigationMenuItem";
|
|
61
|
+
var NavigationMenuItemBody = withItemContext(withItemStateProps(_seed_design_react_primitive.Primitive.div), "body");
|
|
62
|
+
var NavigationMenuItemLabel = withItemContext(withItemStateProps(_seed_design_react_primitive.Primitive.span), "label");
|
|
63
|
+
var NavigationMenuItemDescription = withItemContext(withItemStateProps(_seed_design_react_primitive.Primitive.span), "description");
|
|
64
|
+
//#endregion
|
|
65
|
+
exports.NavigationMenuContent = NavigationMenuContent;
|
|
66
|
+
exports.NavigationMenuGroup = NavigationMenuGroup;
|
|
67
|
+
exports.NavigationMenuGroupLabel = NavigationMenuGroupLabel;
|
|
68
|
+
exports.NavigationMenuItem = NavigationMenuItem;
|
|
69
|
+
exports.NavigationMenuItemBody = NavigationMenuItemBody;
|
|
70
|
+
exports.NavigationMenuItemDescription = NavigationMenuItemDescription;
|
|
71
|
+
exports.NavigationMenuItemLabel = NavigationMenuItemLabel;
|
|
72
|
+
exports.NavigationMenuPositioner = NavigationMenuPositioner;
|
|
73
|
+
exports.NavigationMenuProvider = NavigationMenuProvider;
|
|
74
|
+
exports.NavigationMenuRoot = NavigationMenuRoot;
|
|
75
|
+
exports.NavigationMenuScrollArea = NavigationMenuScrollArea;
|
|
76
|
+
exports.NavigationMenuTrigger = NavigationMenuTrigger;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { MenuVariantProps } from '@seed-design/css/recipes/menu';
|
|
2
|
+
import { MenuItemVariantProps } from '@seed-design/css/recipes/menu-item';
|
|
3
|
+
import { NavigationMenu as NavigationMenuPrimitive } from '@seed-design/react-navigation-menu';
|
|
4
|
+
import { PrimitiveProps } from '@seed-design/react-primitive';
|
|
5
|
+
import * as React from "react";
|
|
6
|
+
export interface NavigationMenuProviderProps extends MenuVariantProps, NavigationMenuPrimitive.ProviderProps {
|
|
7
|
+
}
|
|
8
|
+
export declare const NavigationMenuProvider: (props: NavigationMenuProviderProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export interface NavigationMenuRootProps extends NavigationMenuPrimitive.RootProps {
|
|
10
|
+
}
|
|
11
|
+
export declare const NavigationMenuRoot: ({ value, disabled, placement, gutter, overflowPadding, strategy, children, }: NavigationMenuPrimitive.RootProps) => import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export interface NavigationMenuTriggerProps extends NavigationMenuPrimitive.TriggerProps {
|
|
13
|
+
}
|
|
14
|
+
export declare const NavigationMenuTrigger: React.ForwardRefExoticComponent<NavigationMenuPrimitive.TriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
15
|
+
export interface NavigationMenuPositionerProps extends NavigationMenuPrimitive.PositionerProps {
|
|
16
|
+
}
|
|
17
|
+
export declare const NavigationMenuPositioner: React.ForwardRefExoticComponent<NavigationMenuPositionerProps & React.RefAttributes<HTMLDivElement>>;
|
|
18
|
+
export interface NavigationMenuContentProps extends NavigationMenuPrimitive.ContentProps {
|
|
19
|
+
}
|
|
20
|
+
export declare const NavigationMenuContent: React.ForwardRefExoticComponent<NavigationMenuContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
21
|
+
export interface NavigationMenuScrollAreaProps extends PrimitiveProps, React.HTMLAttributes<HTMLDivElement> {
|
|
22
|
+
}
|
|
23
|
+
export declare const NavigationMenuScrollArea: React.ForwardRefExoticComponent<NavigationMenuScrollAreaProps & React.RefAttributes<HTMLDivElement>>;
|
|
24
|
+
export interface NavigationMenuGroupProps extends NavigationMenuPrimitive.GroupProps {
|
|
25
|
+
}
|
|
26
|
+
export declare const NavigationMenuGroup: React.ForwardRefExoticComponent<NavigationMenuGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
27
|
+
export interface NavigationMenuGroupLabelProps extends NavigationMenuPrimitive.GroupLabelProps {
|
|
28
|
+
}
|
|
29
|
+
export declare const NavigationMenuGroupLabel: React.ForwardRefExoticComponent<NavigationMenuGroupLabelProps & React.RefAttributes<HTMLDivElement>>;
|
|
30
|
+
export interface NavigationMenuItemProps extends MenuItemVariantProps, NavigationMenuPrimitive.ItemProps {
|
|
31
|
+
}
|
|
32
|
+
export declare const NavigationMenuItem: React.ForwardRefExoticComponent<NavigationMenuItemProps & React.RefAttributes<HTMLButtonElement>>;
|
|
33
|
+
export interface NavigationMenuItemBodyProps extends PrimitiveProps, React.HTMLAttributes<HTMLDivElement> {
|
|
34
|
+
}
|
|
35
|
+
export declare const NavigationMenuItemBody: React.ForwardRefExoticComponent<NavigationMenuItemBodyProps & React.RefAttributes<HTMLDivElement>>;
|
|
36
|
+
export interface NavigationMenuItemLabelProps extends PrimitiveProps, React.HTMLAttributes<HTMLSpanElement> {
|
|
37
|
+
}
|
|
38
|
+
export declare const NavigationMenuItemLabel: React.ForwardRefExoticComponent<NavigationMenuItemLabelProps & React.RefAttributes<HTMLSpanElement>>;
|
|
39
|
+
export interface NavigationMenuItemDescriptionProps extends PrimitiveProps, React.HTMLAttributes<HTMLSpanElement> {
|
|
40
|
+
}
|
|
41
|
+
export declare const NavigationMenuItemDescription: React.ForwardRefExoticComponent<NavigationMenuItemDescriptionProps & React.RefAttributes<HTMLSpanElement>>;
|
|
42
|
+
//# sourceMappingURL=NavigationMenu.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NavigationMenu.d.ts","sourceRoot":"","sources":["../../../src/components/NavigationMenu/NavigationMenu.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAQ,KAAK,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAC5E,OAAO,EAAY,KAAK,oBAAoB,EAAE,MAAM,oCAAoC,CAAC;AACzF,OAAO,EACL,cAAc,IAAI,uBAAuB,EAG1C,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EAAa,KAAK,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAE9E,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAgB/B,MAAM,WAAW,2BACf,SAAQ,gBAAgB,EACtB,uBAAuB,CAAC,aAAa;CAAG;AAE5C,eAAO,MAAM,sBAAsB,GAAI,OAAO,2BAA2B,4CAWxE,CAAC;AAIF,MAAM,WAAW,uBAAwB,SAAQ,uBAAuB,CAAC,SAAS;CAAG;AAErF,eAAO,MAAM,kBAAkB,8JAA+B,CAAC;AAI/D,MAAM,WAAW,0BAA2B,SAAQ,uBAAuB,CAAC,YAAY;CAAG;AAE3F,eAAO,MAAM,qBAAqB,gHAAkC,CAAC;AAIrE,MAAM,WAAW,6BAA8B,SAAQ,uBAAuB,CAAC,eAAe;CAAG;AAEjG,eAAO,MAAM,wBAAwB,sGAanC,CAAC;AAKH,MAAM,WAAW,0BAA2B,SAAQ,uBAAuB,CAAC,YAAY;CAAG;AAE3F,eAAO,MAAM,qBAAqB,mGAGjC,CAAC;AAIF,MAAM,WAAW,6BACf,SAAQ,cAAc,EACpB,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;CAAG;AAE3C,eAAO,MAAM,wBAAwB,sGAGpC,CAAC;AAIF,MAAM,WAAW,wBAAyB,SAAQ,uBAAuB,CAAC,UAAU;CAAG;AAEvF,eAAO,MAAM,mBAAmB,iGAG/B,CAAC;AAIF,MAAM,WAAW,6BAA8B,SAAQ,uBAAuB,CAAC,eAAe;CAAG;AAEjG,eAAO,MAAM,wBAAwB,sGAGpC,CAAC;AAIF,MAAM,WAAW,uBACf,SAAQ,oBAAoB,EAC1B,uBAAuB,CAAC,SAAS;CAAG;AAExC,eAAO,MAAM,kBAAkB,mGAiB9B,CAAC;AAKF,MAAM,WAAW,2BACf,SAAQ,cAAc,EACpB,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;CAAG;AAE3C,eAAO,MAAM,sBAAsB,oGAGlC,CAAC;AAIF,MAAM,WAAW,4BACf,SAAQ,cAAc,EACpB,KAAK,CAAC,cAAc,CAAC,eAAe,CAAC;CAAG;AAE5C,eAAO,MAAM,uBAAuB,sGAGU,CAAC;AAI/C,MAAM,WAAW,kCACf,SAAQ,cAAc,EACpB,KAAK,CAAC,cAAc,CAAC,eAAe,CAAC;CAAG;AAE5C,eAAO,MAAM,6BAA6B,4GAGU,CAAC"}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
"use client";
|
|
3
|
+
import { createSlotRecipeContext } from "../../utils/createSlotRecipeContext.js";
|
|
4
|
+
import { createWithStateProps } from "../../utils/createWithStateProps.js";
|
|
5
|
+
import { NavigationMenu, useNavigationMenuItemContext, useNavigationMenuRootContext } from "@seed-design/react-navigation-menu";
|
|
6
|
+
import { Primitive } from "@seed-design/react-primitive";
|
|
7
|
+
import clsx$1 from "clsx";
|
|
8
|
+
import * as React$1 from "react";
|
|
9
|
+
import { jsx } from "react/jsx-runtime";
|
|
10
|
+
import { menu } from "@seed-design/css/recipes/menu";
|
|
11
|
+
import { menuItem } from "@seed-design/css/recipes/menu-item";
|
|
12
|
+
//#region src/components/NavigationMenu/NavigationMenu.tsx
|
|
13
|
+
var { ClassNamesProvider, withContext, useClassNames } = createSlotRecipeContext(menu);
|
|
14
|
+
var { PropsProvider: ItemPropsProvider, useProps: useItemProps, withContext: withItemContext, ClassNamesProvider: ItemClassNamesProvider } = createSlotRecipeContext(menuItem);
|
|
15
|
+
var withStateProps = createWithStateProps([useNavigationMenuRootContext]);
|
|
16
|
+
var withItemStateProps = createWithStateProps([useNavigationMenuItemContext]);
|
|
17
|
+
var NavigationMenuProvider = (props) => {
|
|
18
|
+
const [variantProps, otherProps] = menu.splitVariantProps(props);
|
|
19
|
+
return /* @__PURE__ */ jsx(ClassNamesProvider, {
|
|
20
|
+
value: menu(variantProps),
|
|
21
|
+
children: /* @__PURE__ */ jsx(ItemPropsProvider, {
|
|
22
|
+
value: { size: variantProps.size },
|
|
23
|
+
children: /* @__PURE__ */ jsx(NavigationMenu.Provider, { ...otherProps })
|
|
24
|
+
})
|
|
25
|
+
});
|
|
26
|
+
};
|
|
27
|
+
var NavigationMenuRoot = NavigationMenu.Root;
|
|
28
|
+
var NavigationMenuTrigger = NavigationMenu.Trigger;
|
|
29
|
+
var NavigationMenuPositioner = React$1.forwardRef(({ className, ...props }, ref) => {
|
|
30
|
+
const classNames = useClassNames();
|
|
31
|
+
return /* @__PURE__ */ jsx(NavigationMenu.Positioner, {
|
|
32
|
+
ref,
|
|
33
|
+
className: clsx$1(classNames.positioner, className),
|
|
34
|
+
...props
|
|
35
|
+
});
|
|
36
|
+
});
|
|
37
|
+
NavigationMenuPositioner.displayName = "NavigationMenuPositioner";
|
|
38
|
+
var NavigationMenuContent = withContext(NavigationMenu.Content, "content");
|
|
39
|
+
var NavigationMenuScrollArea = withContext(withStateProps(Primitive.div), "scrollArea");
|
|
40
|
+
var NavigationMenuGroup = withContext(NavigationMenu.Group, "group");
|
|
41
|
+
var NavigationMenuGroupLabel = withContext(NavigationMenu.GroupLabel, "groupLabel");
|
|
42
|
+
var NavigationMenuItem = React$1.forwardRef(({ className: propClassName, ...props }, ref) => {
|
|
43
|
+
const [variantProps, otherProps] = menuItem.splitVariantProps(props);
|
|
44
|
+
const classNames = menuItem({
|
|
45
|
+
...useItemProps(),
|
|
46
|
+
...variantProps
|
|
47
|
+
});
|
|
48
|
+
return /* @__PURE__ */ jsx(ItemClassNamesProvider, {
|
|
49
|
+
value: classNames,
|
|
50
|
+
children: /* @__PURE__ */ jsx(NavigationMenu.Item, {
|
|
51
|
+
ref,
|
|
52
|
+
className: clsx$1(classNames.root, propClassName),
|
|
53
|
+
...otherProps
|
|
54
|
+
})
|
|
55
|
+
});
|
|
56
|
+
});
|
|
57
|
+
NavigationMenuItem.displayName = "NavigationMenuItem";
|
|
58
|
+
var NavigationMenuItemBody = withItemContext(withItemStateProps(Primitive.div), "body");
|
|
59
|
+
var NavigationMenuItemLabel = withItemContext(withItemStateProps(Primitive.span), "label");
|
|
60
|
+
var NavigationMenuItemDescription = withItemContext(withItemStateProps(Primitive.span), "description");
|
|
61
|
+
//#endregion
|
|
62
|
+
export { NavigationMenuContent, NavigationMenuGroup, NavigationMenuGroupLabel, NavigationMenuItem, NavigationMenuItemBody, NavigationMenuItemDescription, NavigationMenuItemLabel, NavigationMenuPositioner, NavigationMenuProvider, NavigationMenuRoot, NavigationMenuScrollArea, NavigationMenuTrigger };
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
const require_runtime = require("../../_virtual/_rolldown/runtime.cjs");
|
|
2
|
+
const require_NavigationMenu = require("./NavigationMenu.cjs");
|
|
3
|
+
//#region src/components/NavigationMenu/NavigationMenu.namespace.ts
|
|
4
|
+
var NavigationMenu_namespace_exports = /* @__PURE__ */ require_runtime.__exportAll({
|
|
5
|
+
Content: () => require_NavigationMenu.NavigationMenuContent,
|
|
6
|
+
Group: () => require_NavigationMenu.NavigationMenuGroup,
|
|
7
|
+
GroupLabel: () => require_NavigationMenu.NavigationMenuGroupLabel,
|
|
8
|
+
Item: () => require_NavigationMenu.NavigationMenuItem,
|
|
9
|
+
ItemBody: () => require_NavigationMenu.NavigationMenuItemBody,
|
|
10
|
+
ItemDescription: () => require_NavigationMenu.NavigationMenuItemDescription,
|
|
11
|
+
ItemLabel: () => require_NavigationMenu.NavigationMenuItemLabel,
|
|
12
|
+
Positioner: () => require_NavigationMenu.NavigationMenuPositioner,
|
|
13
|
+
Provider: () => require_NavigationMenu.NavigationMenuProvider,
|
|
14
|
+
Root: () => require_NavigationMenu.NavigationMenuRoot,
|
|
15
|
+
ScrollArea: () => require_NavigationMenu.NavigationMenuScrollArea,
|
|
16
|
+
Trigger: () => require_NavigationMenu.NavigationMenuTrigger
|
|
17
|
+
});
|
|
18
|
+
//#endregion
|
|
19
|
+
Object.defineProperty(exports, "NavigationMenu_namespace_exports", {
|
|
20
|
+
enumerable: true,
|
|
21
|
+
get: function() {
|
|
22
|
+
return NavigationMenu_namespace_exports;
|
|
23
|
+
}
|
|
24
|
+
});
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export { NavigationMenuProvider as Provider, NavigationMenuRoot as Root, NavigationMenuTrigger as Trigger, NavigationMenuPositioner as Positioner, NavigationMenuContent as Content, NavigationMenuScrollArea as ScrollArea, NavigationMenuGroup as Group, NavigationMenuGroupLabel as GroupLabel, NavigationMenuItem as Item, NavigationMenuItemBody as ItemBody, NavigationMenuItemLabel as ItemLabel, NavigationMenuItemDescription as ItemDescription, type NavigationMenuProviderProps as ProviderProps, type NavigationMenuRootProps as RootProps, type NavigationMenuTriggerProps as TriggerProps, type NavigationMenuPositionerProps as PositionerProps, type NavigationMenuContentProps as ContentProps, type NavigationMenuScrollAreaProps as ScrollAreaProps, type NavigationMenuGroupProps as GroupProps, type NavigationMenuGroupLabelProps as GroupLabelProps, type NavigationMenuItemProps as ItemProps, type NavigationMenuItemBodyProps as ItemBodyProps, type NavigationMenuItemLabelProps as ItemLabelProps, type NavigationMenuItemDescriptionProps as ItemDescriptionProps, } from './NavigationMenu';
|
|
2
|
+
//# sourceMappingURL=NavigationMenu.namespace.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NavigationMenu.namespace.d.ts","sourceRoot":"","sources":["../../../src/components/NavigationMenu/NavigationMenu.namespace.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,sBAAsB,IAAI,QAAQ,EAClC,kBAAkB,IAAI,IAAI,EAC1B,qBAAqB,IAAI,OAAO,EAChC,wBAAwB,IAAI,UAAU,EACtC,qBAAqB,IAAI,OAAO,EAChC,wBAAwB,IAAI,UAAU,EACtC,mBAAmB,IAAI,KAAK,EAC5B,wBAAwB,IAAI,UAAU,EACtC,kBAAkB,IAAI,IAAI,EAC1B,sBAAsB,IAAI,QAAQ,EAClC,uBAAuB,IAAI,SAAS,EACpC,6BAA6B,IAAI,eAAe,EAChD,KAAK,2BAA2B,IAAI,aAAa,EACjD,KAAK,uBAAuB,IAAI,SAAS,EACzC,KAAK,0BAA0B,IAAI,YAAY,EAC/C,KAAK,6BAA6B,IAAI,eAAe,EACrD,KAAK,0BAA0B,IAAI,YAAY,EAC/C,KAAK,6BAA6B,IAAI,eAAe,EACrD,KAAK,wBAAwB,IAAI,UAAU,EAC3C,KAAK,6BAA6B,IAAI,eAAe,EACrD,KAAK,uBAAuB,IAAI,SAAS,EACzC,KAAK,2BAA2B,IAAI,aAAa,EACjD,KAAK,4BAA4B,IAAI,cAAc,EACnD,KAAK,kCAAkC,IAAI,oBAAoB,GAChE,MAAM,kBAAkB,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { __exportAll } from "../../_virtual/_rolldown/runtime.js";
|
|
2
|
+
import { NavigationMenuContent, NavigationMenuGroup, NavigationMenuGroupLabel, NavigationMenuItem, NavigationMenuItemBody, NavigationMenuItemDescription, NavigationMenuItemLabel, NavigationMenuPositioner, NavigationMenuProvider, NavigationMenuRoot, NavigationMenuScrollArea, NavigationMenuTrigger } from "./NavigationMenu.js";
|
|
3
|
+
//#region src/components/NavigationMenu/NavigationMenu.namespace.ts
|
|
4
|
+
var NavigationMenu_namespace_exports = /* @__PURE__ */ __exportAll({
|
|
5
|
+
Content: () => NavigationMenuContent,
|
|
6
|
+
Group: () => NavigationMenuGroup,
|
|
7
|
+
GroupLabel: () => NavigationMenuGroupLabel,
|
|
8
|
+
Item: () => NavigationMenuItem,
|
|
9
|
+
ItemBody: () => NavigationMenuItemBody,
|
|
10
|
+
ItemDescription: () => NavigationMenuItemDescription,
|
|
11
|
+
ItemLabel: () => NavigationMenuItemLabel,
|
|
12
|
+
Positioner: () => NavigationMenuPositioner,
|
|
13
|
+
Provider: () => NavigationMenuProvider,
|
|
14
|
+
Root: () => NavigationMenuRoot,
|
|
15
|
+
ScrollArea: () => NavigationMenuScrollArea,
|
|
16
|
+
Trigger: () => NavigationMenuTrigger
|
|
17
|
+
});
|
|
18
|
+
//#endregion
|
|
19
|
+
export { NavigationMenu_namespace_exports };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_NavigationMenu = require("./NavigationMenu.cjs");
|
|
3
|
+
const require_NavigationMenu_namespace = require("./NavigationMenu.namespace.cjs");
|
|
4
|
+
Object.defineProperty(exports, "NavigationMenu", {
|
|
5
|
+
enumerable: true,
|
|
6
|
+
get: function() {
|
|
7
|
+
return require_NavigationMenu_namespace.NavigationMenu_namespace_exports;
|
|
8
|
+
}
|
|
9
|
+
});
|
|
10
|
+
exports.NavigationMenuContent = require_NavigationMenu.NavigationMenuContent;
|
|
11
|
+
exports.NavigationMenuGroup = require_NavigationMenu.NavigationMenuGroup;
|
|
12
|
+
exports.NavigationMenuGroupLabel = require_NavigationMenu.NavigationMenuGroupLabel;
|
|
13
|
+
exports.NavigationMenuItem = require_NavigationMenu.NavigationMenuItem;
|
|
14
|
+
exports.NavigationMenuItemBody = require_NavigationMenu.NavigationMenuItemBody;
|
|
15
|
+
exports.NavigationMenuItemDescription = require_NavigationMenu.NavigationMenuItemDescription;
|
|
16
|
+
exports.NavigationMenuItemLabel = require_NavigationMenu.NavigationMenuItemLabel;
|
|
17
|
+
exports.NavigationMenuPositioner = require_NavigationMenu.NavigationMenuPositioner;
|
|
18
|
+
exports.NavigationMenuProvider = require_NavigationMenu.NavigationMenuProvider;
|
|
19
|
+
exports.NavigationMenuRoot = require_NavigationMenu.NavigationMenuRoot;
|
|
20
|
+
exports.NavigationMenuScrollArea = require_NavigationMenu.NavigationMenuScrollArea;
|
|
21
|
+
exports.NavigationMenuTrigger = require_NavigationMenu.NavigationMenuTrigger;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { NavigationMenuProvider, NavigationMenuRoot, NavigationMenuTrigger, NavigationMenuPositioner, NavigationMenuContent, NavigationMenuScrollArea, NavigationMenuGroup, NavigationMenuGroupLabel, NavigationMenuItem, NavigationMenuItemBody, NavigationMenuItemLabel, NavigationMenuItemDescription, type NavigationMenuProviderProps, type NavigationMenuRootProps, type NavigationMenuTriggerProps, type NavigationMenuPositionerProps, type NavigationMenuContentProps, type NavigationMenuScrollAreaProps, type NavigationMenuGroupProps, type NavigationMenuGroupLabelProps, type NavigationMenuItemProps, type NavigationMenuItemBodyProps, type NavigationMenuItemLabelProps, type NavigationMenuItemDescriptionProps, } from './NavigationMenu';
|
|
2
|
+
export * as NavigationMenu from './NavigationMenu.namespace';
|
|
3
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/NavigationMenu/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,sBAAsB,EACtB,kBAAkB,EAClB,qBAAqB,EACrB,wBAAwB,EACxB,qBAAqB,EACrB,wBAAwB,EACxB,mBAAmB,EACnB,wBAAwB,EACxB,kBAAkB,EAClB,sBAAsB,EACtB,uBAAuB,EACvB,6BAA6B,EAC7B,KAAK,2BAA2B,EAChC,KAAK,uBAAuB,EAC5B,KAAK,0BAA0B,EAC/B,KAAK,6BAA6B,EAClC,KAAK,0BAA0B,EAC/B,KAAK,6BAA6B,EAClC,KAAK,wBAAwB,EAC7B,KAAK,6BAA6B,EAClC,KAAK,uBAAuB,EAC5B,KAAK,2BAA2B,EAChC,KAAK,4BAA4B,EACjC,KAAK,kCAAkC,GACxC,MAAM,kBAAkB,CAAC;AAE1B,OAAO,KAAK,cAAc,MAAM,4BAA4B,CAAC"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { NavigationMenuContent, NavigationMenuGroup, NavigationMenuGroupLabel, NavigationMenuItem, NavigationMenuItemBody, NavigationMenuItemDescription, NavigationMenuItemLabel, NavigationMenuPositioner, NavigationMenuProvider, NavigationMenuRoot, NavigationMenuScrollArea, NavigationMenuTrigger } from "./NavigationMenu.js";
|
|
2
|
+
import { NavigationMenu_namespace_exports } from "./NavigationMenu.namespace.js";
|
|
3
|
+
export { NavigationMenu_namespace_exports as NavigationMenu, NavigationMenuContent, NavigationMenuGroup, NavigationMenuGroupLabel, NavigationMenuItem, NavigationMenuItemBody, NavigationMenuItemDescription, NavigationMenuItemLabel, NavigationMenuPositioner, NavigationMenuProvider, NavigationMenuRoot, NavigationMenuScrollArea, NavigationMenuTrigger };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
const require_runtime = require("../../_virtual/_rolldown/runtime.cjs");
|
|
3
|
-
const require_createRecipeContext = require("../../utils/createRecipeContext.cjs");
|
|
4
3
|
const require_createSlotRecipeContext = require("../../utils/createSlotRecipeContext.cjs");
|
|
5
4
|
const require_createWithStateProps = require("../../utils/createWithStateProps.cjs");
|
|
5
|
+
const require_createRecipeContext = require("../../utils/createRecipeContext.cjs");
|
|
6
6
|
const require_splitMultipleVariantsProps = require("../../utils/splitMultipleVariantsProps.cjs");
|
|
7
7
|
const require_Icon = require("../private/Icon.cjs");
|
|
8
8
|
let _seed_design_react_radio_group = require("@seed-design/react-radio-group");
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { createRecipeContext } from "../../utils/createRecipeContext.js";
|
|
3
2
|
import { createSlotRecipeContext } from "../../utils/createSlotRecipeContext.js";
|
|
4
3
|
import { createWithStateProps } from "../../utils/createWithStateProps.js";
|
|
4
|
+
import { createRecipeContext } from "../../utils/createRecipeContext.js";
|
|
5
5
|
import { splitMultipleVariantsProps } from "../../utils/splitMultipleVariantsProps.js";
|
|
6
6
|
import { InternalIcon } from "../private/Icon.js";
|
|
7
7
|
import { RadioGroup, useRadioGroupItemContext } from "@seed-design/react-radio-group";
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
const require_runtime = require("../../_virtual/_rolldown/runtime.cjs");
|
|
3
|
-
const require_styled = require("../../utils/styled.cjs");
|
|
4
3
|
const require_Flex = require("../Flex/Flex.cjs");
|
|
5
4
|
let react = require("react");
|
|
6
5
|
react = require_runtime.__toESM(react);
|
|
@@ -10,10 +9,10 @@ let _radix_ui_react_slot = require("@radix-ui/react-slot");
|
|
|
10
9
|
var ResponsivePair = react.forwardRef((props, ref) => {
|
|
11
10
|
const { wrap = "wrap-reverse", gap, children, ...rest } = props;
|
|
12
11
|
const childrenArray = react.Children.toArray(children);
|
|
13
|
-
const
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
}
|
|
12
|
+
const style = {
|
|
13
|
+
"--seed-box-min-width": `calc(${100 / childrenArray.length}% - var(--responsive-pair-gap) / ${childrenArray.length})`,
|
|
14
|
+
"--seed-box-flex-grow": 1
|
|
15
|
+
};
|
|
17
16
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(require_Flex.Flex, {
|
|
18
17
|
ref,
|
|
19
18
|
display: "flex",
|
|
@@ -22,6 +21,10 @@ var ResponsivePair = react.forwardRef((props, ref) => {
|
|
|
22
21
|
flexWrap: wrap,
|
|
23
22
|
gap,
|
|
24
23
|
...rest,
|
|
24
|
+
style: {
|
|
25
|
+
"--responsive-pair-gap": "var(--seed-box-gap, 0px)",
|
|
26
|
+
...rest.style
|
|
27
|
+
},
|
|
25
28
|
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_radix_ui_react_slot.Slot, {
|
|
26
29
|
style,
|
|
27
30
|
children: childrenArray[0]
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
+
import { DistributiveOmit } from '../../utils/styled';
|
|
1
2
|
import { FlexProps } from '../Flex';
|
|
2
3
|
import * as React from "react";
|
|
3
|
-
export
|
|
4
|
+
export type ResponsivePairProps = DistributiveOmit<FlexProps, "flexDirection" | "flexWrap"> & {
|
|
4
5
|
/**
|
|
5
6
|
* @default "wrap-reverse"
|
|
6
7
|
*/
|
|
7
8
|
wrap?: "wrap" | "wrap-reverse";
|
|
8
9
|
children: [React.ReactNode, React.ReactNode];
|
|
9
|
-
}
|
|
10
|
+
};
|
|
10
11
|
export declare const ResponsivePair: React.ForwardRefExoticComponent<ResponsivePairProps & React.RefAttributes<HTMLDivElement>>;
|
|
11
12
|
//# sourceMappingURL=ResponsivePair.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ResponsivePair.d.ts","sourceRoot":"","sources":["../../../src/components/ResponsivePair/ResponsivePair.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"ResponsivePair.d.ts","sourceRoot":"","sources":["../../../src/components/ResponsivePair/ResponsivePair.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAC3D,OAAO,EAAQ,KAAK,SAAS,EAAE,MAAM,SAAS,CAAC;AAE/C,MAAM,MAAM,mBAAmB,GAAG,gBAAgB,CAAC,SAAS,EAAE,eAAe,GAAG,UAAU,CAAC,GAAG;IAC5F;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,cAAc,CAAC;IAE/B,QAAQ,EAAE,CAAC,KAAK,CAAC,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC,CAAC;CAC9C,CAAC;AAEF,eAAO,MAAM,cAAc,4FA8B1B,CAAC"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { handleDimension, useStyleProps } from "../../utils/styled.js";
|
|
3
2
|
import { Flex } from "../Flex/Flex.js";
|
|
4
3
|
import * as React$1 from "react";
|
|
5
4
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -8,10 +7,10 @@ import { Slot } from "@radix-ui/react-slot";
|
|
|
8
7
|
var ResponsivePair = React$1.forwardRef((props, ref) => {
|
|
9
8
|
const { wrap = "wrap-reverse", gap, children, ...rest } = props;
|
|
10
9
|
const childrenArray = React$1.Children.toArray(children);
|
|
11
|
-
const
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
}
|
|
10
|
+
const style = {
|
|
11
|
+
"--seed-box-min-width": `calc(${100 / childrenArray.length}% - var(--responsive-pair-gap) / ${childrenArray.length})`,
|
|
12
|
+
"--seed-box-flex-grow": 1
|
|
13
|
+
};
|
|
15
14
|
return /* @__PURE__ */ jsxs(Flex, {
|
|
16
15
|
ref,
|
|
17
16
|
display: "flex",
|
|
@@ -20,6 +19,10 @@ var ResponsivePair = React$1.forwardRef((props, ref) => {
|
|
|
20
19
|
flexWrap: wrap,
|
|
21
20
|
gap,
|
|
22
21
|
...rest,
|
|
22
|
+
style: {
|
|
23
|
+
"--responsive-pair-gap": "var(--seed-box-gap, 0px)",
|
|
24
|
+
...rest.style
|
|
25
|
+
},
|
|
23
26
|
children: [/* @__PURE__ */ jsx(Slot, {
|
|
24
27
|
style,
|
|
25
28
|
children: childrenArray[0]
|