@seed-design/react 1.2.14 → 2.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 +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 +3 -4
- 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 +3 -2
- package/lib/components/ImageFrame/ImageFrame.d.ts +3 -8
- package/lib/components/ImageFrame/ImageFrame.d.ts.map +1 -1
- package/lib/components/ImageFrame/ImageFrame.js +3 -2
- 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/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 +54 -18
- 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 +25 -23
- 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/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
|
@@ -4,7 +4,7 @@ import { ExtendedActionSheetVariantProps } from '@seed-design/css/recipes/extend
|
|
|
4
4
|
import { ExtendedActionSheetItemVariantProps } from '@seed-design/css/recipes/extended-action-sheet-item';
|
|
5
5
|
import type * as React from "react";
|
|
6
6
|
/**
|
|
7
|
-
* @deprecated Use `
|
|
7
|
+
* @deprecated Use `SwipeableMenuSheet` instead.
|
|
8
8
|
*/
|
|
9
9
|
export interface ExtendedActionSheetRootProps extends ExtendedActionSheetVariantProps, DialogPrimitive.RootProps {
|
|
10
10
|
/**
|
|
@@ -17,106 +17,106 @@ export interface ExtendedActionSheetRootProps extends ExtendedActionSheetVariant
|
|
|
17
17
|
unmountOnExit?: DialogPrimitive.RootProps["unmountOnExit"];
|
|
18
18
|
}
|
|
19
19
|
/**
|
|
20
|
-
* @deprecated Use `
|
|
20
|
+
* @deprecated Use `SwipeableMenuSheet` instead.
|
|
21
21
|
*/
|
|
22
22
|
export declare const ExtendedActionSheetRoot: React.ForwardRefExoticComponent<ExtendedActionSheetRootProps>;
|
|
23
23
|
/**
|
|
24
|
-
* @deprecated Use `
|
|
24
|
+
* @deprecated Use `SwipeableMenuSheet` instead.
|
|
25
25
|
*/
|
|
26
26
|
export interface ExtendedActionSheetTriggerProps extends DialogPrimitive.TriggerProps {
|
|
27
27
|
}
|
|
28
28
|
/**
|
|
29
|
-
* @deprecated Use `
|
|
29
|
+
* @deprecated Use `SwipeableMenuSheet` instead.
|
|
30
30
|
*/
|
|
31
31
|
export declare const ExtendedActionSheetTrigger: React.ForwardRefExoticComponent<DialogPrimitive.TriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
32
32
|
/**
|
|
33
|
-
* @deprecated Use `
|
|
33
|
+
* @deprecated Use `SwipeableMenuSheet` instead.
|
|
34
34
|
*/
|
|
35
35
|
export interface ExtendedActionSheetPositionerProps extends DialogPrimitive.PositionerProps {
|
|
36
36
|
}
|
|
37
37
|
/**
|
|
38
|
-
* @deprecated Use `
|
|
38
|
+
* @deprecated Use `SwipeableMenuSheet` instead.
|
|
39
39
|
*/
|
|
40
40
|
export declare const ExtendedActionSheetPositioner: React.ForwardRefExoticComponent<ExtendedActionSheetPositionerProps & React.RefAttributes<HTMLDivElement>>;
|
|
41
41
|
/**
|
|
42
|
-
* @deprecated Use `
|
|
42
|
+
* @deprecated Use `SwipeableMenuSheet` instead.
|
|
43
43
|
*/
|
|
44
44
|
export interface ExtendedActionSheetBackdropProps extends DialogPrimitive.BackdropProps {
|
|
45
45
|
}
|
|
46
46
|
/**
|
|
47
|
-
* @deprecated Use `
|
|
47
|
+
* @deprecated Use `SwipeableMenuSheet` instead.
|
|
48
48
|
*/
|
|
49
49
|
export declare const ExtendedActionSheetBackdrop: React.ForwardRefExoticComponent<ExtendedActionSheetBackdropProps & React.RefAttributes<HTMLDivElement>>;
|
|
50
50
|
/**
|
|
51
|
-
* @deprecated Use `
|
|
51
|
+
* @deprecated Use `SwipeableMenuSheet` instead.
|
|
52
52
|
*/
|
|
53
53
|
export interface ExtendedActionSheetContentProps extends DialogPrimitive.ContentProps {
|
|
54
54
|
}
|
|
55
55
|
/**
|
|
56
|
-
* @deprecated Use `
|
|
56
|
+
* @deprecated Use `SwipeableMenuSheet` instead.
|
|
57
57
|
*/
|
|
58
58
|
export declare const ExtendedActionSheetContent: React.ForwardRefExoticComponent<ExtendedActionSheetContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
59
59
|
/**
|
|
60
|
-
* @deprecated Use `
|
|
60
|
+
* @deprecated Use `SwipeableMenuSheet` instead.
|
|
61
61
|
*/
|
|
62
62
|
export interface ExtendedActionSheetHeaderProps extends PrimitiveProps, React.HTMLAttributes<HTMLDivElement> {
|
|
63
63
|
}
|
|
64
64
|
/**
|
|
65
|
-
* @deprecated Use `
|
|
65
|
+
* @deprecated Use `SwipeableMenuSheet` instead.
|
|
66
66
|
*/
|
|
67
67
|
export declare const ExtendedActionSheetHeader: React.ForwardRefExoticComponent<ExtendedActionSheetHeaderProps & React.RefAttributes<HTMLDivElement>>;
|
|
68
68
|
/**
|
|
69
|
-
* @deprecated Use `
|
|
69
|
+
* @deprecated Use `SwipeableMenuSheet` instead.
|
|
70
70
|
*/
|
|
71
71
|
export interface ExtendedActionSheetTitleProps extends DialogPrimitive.TitleProps {
|
|
72
72
|
}
|
|
73
73
|
/**
|
|
74
|
-
* @deprecated Use `
|
|
74
|
+
* @deprecated Use `SwipeableMenuSheet` instead.
|
|
75
75
|
*/
|
|
76
76
|
export declare const ExtendedActionSheetTitle: React.ForwardRefExoticComponent<ExtendedActionSheetTitleProps & React.RefAttributes<HTMLHeadingElement>>;
|
|
77
77
|
/**
|
|
78
|
-
* @deprecated Use `
|
|
78
|
+
* @deprecated Use `SwipeableMenuSheet` instead.
|
|
79
79
|
*/
|
|
80
80
|
export interface ExtendedActionSheetListProps extends PrimitiveProps, React.HTMLAttributes<HTMLDivElement> {
|
|
81
81
|
}
|
|
82
82
|
/**
|
|
83
|
-
* @deprecated Use `
|
|
83
|
+
* @deprecated Use `SwipeableMenuSheet` instead.
|
|
84
84
|
*/
|
|
85
85
|
export declare const ExtendedActionSheetList: React.ForwardRefExoticComponent<ExtendedActionSheetListProps & React.RefAttributes<HTMLDivElement>>;
|
|
86
86
|
/**
|
|
87
|
-
* @deprecated Use `
|
|
87
|
+
* @deprecated Use `SwipeableMenuSheet` instead.
|
|
88
88
|
*/
|
|
89
89
|
export interface ExtendedActionSheetGroupProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
90
90
|
}
|
|
91
91
|
/**
|
|
92
|
-
* @deprecated Use `
|
|
92
|
+
* @deprecated Use `SwipeableMenuSheet` instead.
|
|
93
93
|
*/
|
|
94
94
|
export declare const ExtendedActionSheetGroup: React.ForwardRefExoticComponent<ExtendedActionSheetGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
95
95
|
/**
|
|
96
|
-
* @deprecated Use `
|
|
96
|
+
* @deprecated Use `SwipeableMenuSheet` instead.
|
|
97
97
|
*/
|
|
98
98
|
export interface ExtendedActionSheetItemProps extends PrimitiveProps, ExtendedActionSheetItemVariantProps, React.HTMLAttributes<HTMLButtonElement> {
|
|
99
99
|
}
|
|
100
100
|
/**
|
|
101
|
-
* @deprecated Use `
|
|
101
|
+
* @deprecated Use `SwipeableMenuSheet` instead.
|
|
102
102
|
*/
|
|
103
103
|
export declare const ExtendedActionSheetItem: React.ForwardRefExoticComponent<ExtendedActionSheetItemProps & React.RefAttributes<HTMLButtonElement>>;
|
|
104
104
|
/**
|
|
105
|
-
* @deprecated Use `
|
|
105
|
+
* @deprecated Use `SwipeableMenuSheet` instead.
|
|
106
106
|
*/
|
|
107
107
|
export interface ExtendedActionSheetFooterProps extends PrimitiveProps, React.HTMLAttributes<HTMLDivElement> {
|
|
108
108
|
}
|
|
109
109
|
/**
|
|
110
|
-
* @deprecated Use `
|
|
110
|
+
* @deprecated Use `SwipeableMenuSheet` instead.
|
|
111
111
|
*/
|
|
112
112
|
export declare const ExtendedActionSheetFooter: React.ForwardRefExoticComponent<ExtendedActionSheetFooterProps & React.RefAttributes<HTMLDivElement>>;
|
|
113
113
|
/**
|
|
114
|
-
* @deprecated Use `
|
|
114
|
+
* @deprecated Use `SwipeableMenuSheet` instead.
|
|
115
115
|
*/
|
|
116
116
|
export interface ExtendedActionSheetCloseButtonProps extends DialogPrimitive.CloseButtonProps {
|
|
117
117
|
}
|
|
118
118
|
/**
|
|
119
|
-
* @deprecated Use `
|
|
119
|
+
* @deprecated Use `SwipeableMenuSheet` instead.
|
|
120
120
|
*/
|
|
121
121
|
export declare const ExtendedActionSheetCloseButton: React.ForwardRefExoticComponent<ExtendedActionSheetCloseButtonProps & React.RefAttributes<HTMLDivElement>>;
|
|
122
122
|
//# sourceMappingURL=ExtendedActionSheet.d.ts.map
|
|
@@ -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 { Dialog, useDialogContext } from "@seed-design/react-dialog";
|
|
6
6
|
import { Primitive } from "@seed-design/react-primitive";
|
|
7
7
|
import { extendedActionSheet } from "@seed-design/css/recipes/extended-action-sheet";
|
|
@@ -11,54 +11,54 @@ var { withRootProvider, withContext } = createSlotRecipeContext(extendedActionSh
|
|
|
11
11
|
var { withContext: withItemContext } = createRecipeContext(extendedActionSheetItem);
|
|
12
12
|
var withStateProps = createWithStateProps([useDialogContext]);
|
|
13
13
|
/**
|
|
14
|
-
* @deprecated Use `
|
|
14
|
+
* @deprecated Use `SwipeableMenuSheet` instead.
|
|
15
15
|
*/
|
|
16
16
|
var ExtendedActionSheetRoot = withRootProvider(Dialog.Root, { defaultProps: {
|
|
17
17
|
lazyMount: true,
|
|
18
18
|
unmountOnExit: true
|
|
19
19
|
} });
|
|
20
20
|
/**
|
|
21
|
-
* @deprecated Use `
|
|
21
|
+
* @deprecated Use `SwipeableMenuSheet` instead.
|
|
22
22
|
*/
|
|
23
23
|
var ExtendedActionSheetTrigger = Dialog.Trigger;
|
|
24
24
|
/**
|
|
25
|
-
* @deprecated Use `
|
|
25
|
+
* @deprecated Use `SwipeableMenuSheet` instead.
|
|
26
26
|
*/
|
|
27
27
|
var ExtendedActionSheetPositioner = withContext(Dialog.Positioner, "positioner");
|
|
28
28
|
/**
|
|
29
|
-
* @deprecated Use `
|
|
29
|
+
* @deprecated Use `SwipeableMenuSheet` instead.
|
|
30
30
|
*/
|
|
31
31
|
var ExtendedActionSheetBackdrop = withContext(Dialog.Backdrop, "backdrop");
|
|
32
32
|
/**
|
|
33
|
-
* @deprecated Use `
|
|
33
|
+
* @deprecated Use `SwipeableMenuSheet` instead.
|
|
34
34
|
*/
|
|
35
35
|
var ExtendedActionSheetContent = withContext(Dialog.Content, "content");
|
|
36
36
|
/**
|
|
37
|
-
* @deprecated Use `
|
|
37
|
+
* @deprecated Use `SwipeableMenuSheet` instead.
|
|
38
38
|
*/
|
|
39
39
|
var ExtendedActionSheetHeader = withContext(withStateProps(Primitive.div), "header");
|
|
40
40
|
/**
|
|
41
|
-
* @deprecated Use `
|
|
41
|
+
* @deprecated Use `SwipeableMenuSheet` instead.
|
|
42
42
|
*/
|
|
43
43
|
var ExtendedActionSheetTitle = withContext(withStateProps(Primitive.h2), "title");
|
|
44
44
|
/**
|
|
45
|
-
* @deprecated Use `
|
|
45
|
+
* @deprecated Use `SwipeableMenuSheet` instead.
|
|
46
46
|
*/
|
|
47
47
|
var ExtendedActionSheetList = withContext(withStateProps(Primitive.div), "list");
|
|
48
48
|
/**
|
|
49
|
-
* @deprecated Use `
|
|
49
|
+
* @deprecated Use `SwipeableMenuSheet` instead.
|
|
50
50
|
*/
|
|
51
51
|
var ExtendedActionSheetGroup = withContext(withStateProps(Primitive.div), "group");
|
|
52
52
|
/**
|
|
53
|
-
* @deprecated Use `
|
|
53
|
+
* @deprecated Use `SwipeableMenuSheet` instead.
|
|
54
54
|
*/
|
|
55
55
|
var ExtendedActionSheetItem = withItemContext(withStateProps(Primitive.button));
|
|
56
56
|
/**
|
|
57
|
-
* @deprecated Use `
|
|
57
|
+
* @deprecated Use `SwipeableMenuSheet` instead.
|
|
58
58
|
*/
|
|
59
59
|
var ExtendedActionSheetFooter = withContext(withStateProps(Primitive.div), "footer");
|
|
60
60
|
/**
|
|
61
|
-
* @deprecated Use `
|
|
61
|
+
* @deprecated Use `SwipeableMenuSheet` instead.
|
|
62
62
|
*/
|
|
63
63
|
var ExtendedActionSheetCloseButton = withContext(Dialog.CloseButton, "closeButton");
|
|
64
64
|
//#endregion
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
const require_runtime = require("../../_virtual/_rolldown/runtime.cjs");
|
|
3
3
|
const require_createSlotRecipeContext = require("../../utils/createSlotRecipeContext.cjs");
|
|
4
4
|
const require_createWithStateProps = require("../../utils/createWithStateProps.cjs");
|
|
5
|
+
const require_splitMultipleVariantsProps = require("../../utils/splitMultipleVariantsProps.cjs");
|
|
5
6
|
const require_Icon = require("../private/Icon.cjs");
|
|
6
7
|
let _seed_design_react_primitive = require("@seed-design/react-primitive");
|
|
7
8
|
let clsx = require("clsx");
|
|
@@ -14,11 +15,29 @@ let _seed_design_css_recipes_field_label = require("@seed-design/css/recipes/fie
|
|
|
14
15
|
let _seed_design_react_field_button = require("@seed-design/react-field-button");
|
|
15
16
|
let _seed_design_css_recipes_input_button = require("@seed-design/css/recipes/input-button");
|
|
16
17
|
//#region src/components/FieldButton/FieldButton.tsx
|
|
17
|
-
var {
|
|
18
|
-
var { withProvider, withContext, useClassNames } = require_createSlotRecipeContext.createSlotRecipeContext(_seed_design_css_recipes_input_button.inputButton);
|
|
18
|
+
var { ClassNamesProvider: FieldClassNamesProvider, withContext: withFieldContext } = require_createSlotRecipeContext.createSlotRecipeContext(_seed_design_css_recipes_field.field);
|
|
19
|
+
var { withProvider, withContext, useClassNames, PropsProvider: InputButtonPropsProvider } = require_createSlotRecipeContext.createSlotRecipeContext(_seed_design_css_recipes_input_button.inputButton);
|
|
19
20
|
var { withProvider: withLabelProvider, withContext: withLabelContext, useClassNames: useLabelClassNames } = require_createSlotRecipeContext.createSlotRecipeContext(_seed_design_css_recipes_field_label.fieldLabel);
|
|
20
21
|
var withStateProps = require_createWithStateProps.createWithStateProps([_seed_design_react_field_button.useFieldButtonContext]);
|
|
21
|
-
var FieldButtonRoot =
|
|
22
|
+
var FieldButtonRoot = (0, react.forwardRef)(({ className, ...props }, ref) => {
|
|
23
|
+
const [{ field: fieldVariantProps, inputButton: inputButtonVariantProps }, otherProps] = require_splitMultipleVariantsProps.splitMultipleVariantsProps(props, {
|
|
24
|
+
field: _seed_design_css_recipes_field.field,
|
|
25
|
+
inputButton: _seed_design_css_recipes_input_button.inputButton
|
|
26
|
+
});
|
|
27
|
+
const fieldClassNames = (0, _seed_design_css_recipes_field.field)(fieldVariantProps);
|
|
28
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(InputButtonPropsProvider, {
|
|
29
|
+
value: inputButtonVariantProps,
|
|
30
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(FieldClassNamesProvider, {
|
|
31
|
+
value: fieldClassNames,
|
|
32
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_seed_design_react_field_button.FieldButton.Root, {
|
|
33
|
+
ref,
|
|
34
|
+
className: (0, clsx.default)(fieldClassNames.root, className),
|
|
35
|
+
...otherProps
|
|
36
|
+
})
|
|
37
|
+
})
|
|
38
|
+
});
|
|
39
|
+
});
|
|
40
|
+
FieldButtonRoot.displayName = "FieldButtonRoot";
|
|
22
41
|
var FieldButtonHeader = withFieldContext(withStateProps(_seed_design_react_primitive.Primitive.div), "header");
|
|
23
42
|
var FieldButtonLabel = withLabelProvider(withStateProps(_seed_design_react_primitive.Primitive.div), "root");
|
|
24
43
|
var FieldButtonIndicatorText = withLabelContext(withStateProps(_seed_design_react_primitive.Primitive.span), "indicatorText");
|
|
@@ -3,8 +3,9 @@ import { FieldButton } from '@seed-design/react-field-button';
|
|
|
3
3
|
import { FieldVariantProps } from '@seed-design/css/recipes/field';
|
|
4
4
|
import { FieldLabelVariantProps } from '@seed-design/css/recipes/field-label';
|
|
5
5
|
import { InternalIconProps } from '../private/Icon';
|
|
6
|
+
import { InputButtonVariantProps } from '@seed-design/css/recipes/input-button';
|
|
6
7
|
import * as React from "react";
|
|
7
|
-
export interface FieldButtonRootProps extends FieldVariantProps, FieldButton.RootProps {
|
|
8
|
+
export interface FieldButtonRootProps extends FieldVariantProps, InputButtonVariantProps, FieldButton.RootProps {
|
|
8
9
|
}
|
|
9
10
|
export declare const FieldButtonRoot: React.ForwardRefExoticComponent<FieldButtonRootProps & React.RefAttributes<HTMLDivElement>>;
|
|
10
11
|
export interface FieldButtonHeaderProps extends PrimitiveProps, React.HTMLAttributes<HTMLDivElement> {
|
|
@@ -46,7 +47,7 @@ export declare const FieldButtonHiddenInput: React.ForwardRefExoticComponent<Fie
|
|
|
46
47
|
export interface FieldButtonButtonProps extends FieldButton.ButtonProps {
|
|
47
48
|
}
|
|
48
49
|
export declare const FieldButtonButton: React.ForwardRefExoticComponent<FieldButtonButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
49
|
-
export interface FieldButtonControlProps extends PrimitiveProps, React.HTMLAttributes<HTMLDivElement> {
|
|
50
|
+
export interface FieldButtonControlProps extends InputButtonVariantProps, PrimitiveProps, React.HTMLAttributes<HTMLDivElement> {
|
|
50
51
|
}
|
|
51
52
|
export declare const FieldButtonControl: React.ForwardRefExoticComponent<FieldButtonControlProps & React.RefAttributes<HTMLDivElement>>;
|
|
52
53
|
export interface FieldButtonClearButtonProps extends FieldButton.ClearButtonProps {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FieldButton.d.ts","sourceRoot":"","sources":["../../../src/components/FieldButton/FieldButton.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAa,KAAK,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAC9E,OAAO,EAAE,WAAW,EAAyB,MAAM,iCAAiC,CAAC;AACrF,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"FieldButton.d.ts","sourceRoot":"","sources":["../../../src/components/FieldButton/FieldButton.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAa,KAAK,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAC9E,OAAO,EAAE,WAAW,EAAyB,MAAM,iCAAiC,CAAC;AACrF,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,OAAO,EAAS,KAAK,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AAC/E,OAAO,EAAc,KAAK,sBAAsB,EAAE,MAAM,sCAAsC,CAAC;AAC/F,OAAO,EAAgB,KAAK,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AACvE,OAAO,EAAe,KAAK,uBAAuB,EAAE,MAAM,uCAAuC,CAAC;AAqBlG,MAAM,WAAW,oBACf,SAAQ,iBAAiB,EACvB,uBAAuB,EACvB,WAAW,CAAC,SAAS;CAAG;AAE5B,eAAO,MAAM,eAAe,6FAmB3B,CAAC;AAKF,MAAM,WAAW,sBACf,SAAQ,cAAc,EACpB,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;CAAG;AAE3C,eAAO,MAAM,iBAAiB,+FAG7B,CAAC;AAEF,MAAM,WAAW,qBACf,SAAQ,cAAc,EACpB,sBAAsB,EACtB,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;CAAG;AAE3C,eAAO,MAAM,gBAAgB,8FAG5B,CAAC;AAEF,MAAM,WAAW,6BACf,SAAQ,cAAc,EACpB,KAAK,CAAC,cAAc,CAAC,eAAe,CAAC;CAAG;AAE5C,eAAO,MAAM,wBAAwB,uGAGa,CAAC;AAEnD,MAAM,WAAW,iCAAkC,SAAQ,KAAK,CAAC,QAAQ,CAAC,UAAU,CAAC;CAAG;AAExF,eAAO,MAAM,4BAA4B,sHA0BvC,CAAC;AAKH,MAAM,WAAW,0BAA2B,SAAQ,iBAAiB;CAAG;AAExE,eAAO,MAAM,qBAAqB,kGAGjC,CAAC;AAEF,MAAM,WAAW,0BACf,SAAQ,cAAc,EACpB,KAAK,CAAC,cAAc,CAAC,eAAe,CAAC;CAAG;AAE5C,eAAO,MAAM,qBAAqB,oGAejC,CAAC;AAGF,MAAM,WAAW,0BAA2B,SAAQ,iBAAiB;CAAG;AAExE,eAAO,MAAM,qBAAqB,kGAGjC,CAAC;AAEF,MAAM,WAAW,0BACf,SAAQ,cAAc,EACpB,KAAK,CAAC,cAAc,CAAC,eAAe,CAAC;CAAG;AAE5C,eAAO,MAAM,qBAAqB,oGAejC,CAAC;AAKF,MAAM,WAAW,sBACf,SAAQ,cAAc,EACpB,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;CAAG;AAE3C,eAAO,MAAM,iBAAiB,+FAG7B,CAAC;AAEF,MAAM,WAAW,2BAA4B,SAAQ,WAAW,CAAC,gBAAgB;CAAG;AAEpF,eAAO,MAAM,sBAAsB,qGAGM,CAAC;AAE1C,MAAM,WAAW,4BAA6B,SAAQ,WAAW,CAAC,iBAAiB;CAAG;AAEtF,eAAO,MAAM,uBAAuB,sGAGO,CAAC;AAI5C,MAAM,WAAW,2BAA4B,SAAQ,WAAW,CAAC,gBAAgB;CAAG;AAEpF,eAAO,MAAM,sBAAsB,uGAA0B,CAAC;AAE9D,MAAM,WAAW,sBAAuB,SAAQ,WAAW,CAAC,WAAW;CAAG;AAE1E,eAAO,MAAM,iBAAiB,kGAG7B,CAAC;AAEF,MAAM,WAAW,uBACf,SAAQ,uBAAuB,EAC7B,cAAc,EACd,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;CAAG;AAE3C,eAAO,MAAM,kBAAkB,gGAG9B,CAAC;AAEF,MAAM,WAAW,2BAA4B,SAAQ,WAAW,CAAC,gBAAgB;CAAG;AAEpF,eAAO,MAAM,sBAAsB,uGAGlC,CAAC;AAEF,MAAM,WAAW,qBACf,SAAQ,cAAc,EACpB,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;CAAG;AAE3C,eAAO,MAAM,gBAAgB,8FAe5B,CAAC;AAGF,MAAM,WAAW,2BACf,SAAQ,cAAc,EACpB,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;CAAG;AAE3C,eAAO,MAAM,sBAAsB,oGAelC,CAAC"}
|
|
@@ -1,21 +1,41 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { createSlotRecipeContext } from "../../utils/createSlotRecipeContext.js";
|
|
3
3
|
import { createWithStateProps } from "../../utils/createWithStateProps.js";
|
|
4
|
+
import { splitMultipleVariantsProps } from "../../utils/splitMultipleVariantsProps.js";
|
|
4
5
|
import { InternalIcon } from "../private/Icon.js";
|
|
5
6
|
import { Primitive } from "@seed-design/react-primitive";
|
|
6
7
|
import clsx$1 from "clsx";
|
|
7
8
|
import * as React$1 from "react";
|
|
9
|
+
import { forwardRef } from "react";
|
|
8
10
|
import { jsx } from "react/jsx-runtime";
|
|
9
11
|
import { field } from "@seed-design/css/recipes/field";
|
|
10
12
|
import { fieldLabel } from "@seed-design/css/recipes/field-label";
|
|
11
13
|
import { FieldButton, useFieldButtonContext } from "@seed-design/react-field-button";
|
|
12
14
|
import { inputButton } from "@seed-design/css/recipes/input-button";
|
|
13
15
|
//#region src/components/FieldButton/FieldButton.tsx
|
|
14
|
-
var {
|
|
15
|
-
var { withProvider, withContext, useClassNames } = createSlotRecipeContext(inputButton);
|
|
16
|
+
var { ClassNamesProvider: FieldClassNamesProvider, withContext: withFieldContext } = createSlotRecipeContext(field);
|
|
17
|
+
var { withProvider, withContext, useClassNames, PropsProvider: InputButtonPropsProvider } = createSlotRecipeContext(inputButton);
|
|
16
18
|
var { withProvider: withLabelProvider, withContext: withLabelContext, useClassNames: useLabelClassNames } = createSlotRecipeContext(fieldLabel);
|
|
17
19
|
var withStateProps = createWithStateProps([useFieldButtonContext]);
|
|
18
|
-
var FieldButtonRoot =
|
|
20
|
+
var FieldButtonRoot = forwardRef(({ className, ...props }, ref) => {
|
|
21
|
+
const [{ field: fieldVariantProps, inputButton: inputButtonVariantProps }, otherProps] = splitMultipleVariantsProps(props, {
|
|
22
|
+
field,
|
|
23
|
+
inputButton
|
|
24
|
+
});
|
|
25
|
+
const fieldClassNames = field(fieldVariantProps);
|
|
26
|
+
return /* @__PURE__ */ jsx(InputButtonPropsProvider, {
|
|
27
|
+
value: inputButtonVariantProps,
|
|
28
|
+
children: /* @__PURE__ */ jsx(FieldClassNamesProvider, {
|
|
29
|
+
value: fieldClassNames,
|
|
30
|
+
children: /* @__PURE__ */ jsx(FieldButton.Root, {
|
|
31
|
+
ref,
|
|
32
|
+
className: clsx$1(fieldClassNames.root, className),
|
|
33
|
+
...otherProps
|
|
34
|
+
})
|
|
35
|
+
})
|
|
36
|
+
});
|
|
37
|
+
});
|
|
38
|
+
FieldButtonRoot.displayName = "FieldButtonRoot";
|
|
19
39
|
var FieldButtonHeader = withFieldContext(withStateProps(Primitive.div), "header");
|
|
20
40
|
var FieldButtonLabel = withLabelProvider(withStateProps(Primitive.div), "root");
|
|
21
41
|
var FieldButtonIndicatorText = withLabelContext(withStateProps(Primitive.span), "indicatorText");
|
|
@@ -1,10 +1,12 @@
|
|
|
1
|
+
import { ResponsiveValue } from '../../types/responsive';
|
|
2
|
+
import { DistributiveOmit } from '../../utils/styled';
|
|
1
3
|
import { BoxProps } from '../Box/Box';
|
|
2
4
|
import * as React from "react";
|
|
3
|
-
export
|
|
5
|
+
export type FlexProps = DistributiveOmit<BoxProps, "display"> & {
|
|
4
6
|
/**
|
|
5
7
|
* @default "flex"
|
|
6
8
|
*/
|
|
7
|
-
display?: "flex" | "none"
|
|
9
|
+
display?: ResponsiveValue<"flex" | "none">;
|
|
8
10
|
/**
|
|
9
11
|
* Shorthand for `flexDirection`.
|
|
10
12
|
*/
|
|
@@ -29,6 +31,6 @@ export interface FlexProps extends Omit<BoxProps, "display"> {
|
|
|
29
31
|
* Shorthand for `flexShrink`.
|
|
30
32
|
*/
|
|
31
33
|
shrink?: BoxProps["flexShrink"];
|
|
32
|
-
}
|
|
34
|
+
};
|
|
33
35
|
export declare const Flex: React.ForwardRefExoticComponent<FlexProps & React.RefAttributes<HTMLDivElement>>;
|
|
34
36
|
//# sourceMappingURL=Flex.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Flex.d.ts","sourceRoot":"","sources":["../../../src/components/Flex/Flex.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAO,KAAK,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEhD,MAAM,
|
|
1
|
+
{"version":3,"file":"Flex.d.ts","sourceRoot":"","sources":["../../../src/components/Flex/Flex.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAC3D,OAAO,EAAO,KAAK,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEhD,MAAM,MAAM,SAAS,GAAG,gBAAgB,CAAC,QAAQ,EAAE,SAAS,CAAC,GAAG;IAC9D;;OAEG;IACH,OAAO,CAAC,EAAE,eAAe,CAAC,MAAM,GAAG,MAAM,CAAC,CAAC;IAE3C;;OAEG;IACH,SAAS,CAAC,EAAE,QAAQ,CAAC,eAAe,CAAC,CAAC;IAEtC;;OAEG;IACH,IAAI,CAAC,EAAE,QAAQ,CAAC,UAAU,CAAC,CAAC;IAE5B;;OAEG;IACH,KAAK,CAAC,EAAE,QAAQ,CAAC,YAAY,CAAC,CAAC;IAE/B;;OAEG;IACH,OAAO,CAAC,EAAE,QAAQ,CAAC,gBAAgB,CAAC,CAAC;IAErC;;OAEG;IACH,IAAI,CAAC,EAAE,QAAQ,CAAC,UAAU,CAAC,CAAC;IAE5B;;OAEG;IACH,MAAM,CAAC,EAAE,QAAQ,CAAC,YAAY,CAAC,CAAC;CACjC,CAAC;AAEF,eAAO,MAAM,IAAI,kFAgBf,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
const require_runtime = require("../../_virtual/_rolldown/runtime.cjs");
|
|
2
|
+
const require_FooterLinkText = require("./FooterLinkText.cjs");
|
|
3
|
+
//#region src/components/Footer/Footer.namespace.ts
|
|
4
|
+
var Footer_namespace_exports = /* @__PURE__ */ require_runtime.__exportAll({ LinkText: () => require_FooterLinkText.FooterLinkText });
|
|
5
|
+
//#endregion
|
|
6
|
+
Object.defineProperty(exports, "Footer_namespace_exports", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function() {
|
|
9
|
+
return Footer_namespace_exports;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Footer.namespace.d.ts","sourceRoot":"","sources":["../../../src/components/Footer/Footer.namespace.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,IAAI,QAAQ,EAC1B,KAAK,mBAAmB,IAAI,aAAa,GAC1C,MAAM,kBAAkB,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { __exportAll } from "../../_virtual/_rolldown/runtime.js";
|
|
2
|
+
import { FooterLinkText } from "./FooterLinkText.js";
|
|
3
|
+
//#region src/components/Footer/Footer.namespace.ts
|
|
4
|
+
var Footer_namespace_exports = /* @__PURE__ */ __exportAll({ LinkText: () => FooterLinkText });
|
|
5
|
+
//#endregion
|
|
6
|
+
export { Footer_namespace_exports };
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
const require_runtime = require("../../_virtual/_rolldown/runtime.cjs");
|
|
3
|
+
let _seed_design_react_primitive = require("@seed-design/react-primitive");
|
|
4
|
+
let clsx = require("clsx");
|
|
5
|
+
clsx = require_runtime.__toESM(clsx);
|
|
6
|
+
let react = require("react");
|
|
7
|
+
react = require_runtime.__toESM(react);
|
|
8
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
9
|
+
let _seed_design_css_recipes_footer = require("@seed-design/css/recipes/footer");
|
|
10
|
+
//#region src/components/Footer/FooterLinkText.tsx
|
|
11
|
+
var FooterLinkText = react.forwardRef(({ className, children, ...props }, ref) => {
|
|
12
|
+
const [variantProps, restProps] = _seed_design_css_recipes_footer.footer.splitVariantProps(props);
|
|
13
|
+
const classNames = (0, _seed_design_css_recipes_footer.footer)(variantProps);
|
|
14
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_seed_design_react_primitive.Primitive.a, {
|
|
15
|
+
ref,
|
|
16
|
+
className: (0, clsx.default)(classNames.linkText, className),
|
|
17
|
+
...restProps,
|
|
18
|
+
children
|
|
19
|
+
});
|
|
20
|
+
});
|
|
21
|
+
FooterLinkText.displayName = "FooterLinkText";
|
|
22
|
+
//#endregion
|
|
23
|
+
exports.FooterLinkText = FooterLinkText;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { FooterVariantProps } from '@seed-design/css/recipes/footer';
|
|
2
|
+
import { PrimitiveProps } from '@seed-design/react-primitive';
|
|
3
|
+
import * as React from "react";
|
|
4
|
+
export interface FooterLinkTextProps extends FooterVariantProps, PrimitiveProps, React.AnchorHTMLAttributes<HTMLAnchorElement> {
|
|
5
|
+
}
|
|
6
|
+
export declare const FooterLinkText: React.ForwardRefExoticComponent<FooterLinkTextProps & React.RefAttributes<HTMLAnchorElement>>;
|
|
7
|
+
//# sourceMappingURL=FooterLinkText.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FooterLinkText.d.ts","sourceRoot":"","sources":["../../../src/components/Footer/FooterLinkText.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAU,KAAK,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAClF,OAAO,EAAa,KAAK,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAE9E,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,MAAM,WAAW,mBACf,SAAQ,kBAAkB,EACxB,cAAc,EACd,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC;CAAG;AAEpD,eAAO,MAAM,cAAc,+FAW1B,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { Primitive } from "@seed-design/react-primitive";
|
|
3
|
+
import clsx$1 from "clsx";
|
|
4
|
+
import * as React$1 from "react";
|
|
5
|
+
import { jsx } from "react/jsx-runtime";
|
|
6
|
+
import { footer } from "@seed-design/css/recipes/footer";
|
|
7
|
+
//#region src/components/Footer/FooterLinkText.tsx
|
|
8
|
+
var FooterLinkText = React$1.forwardRef(({ className, children, ...props }, ref) => {
|
|
9
|
+
const [variantProps, restProps] = footer.splitVariantProps(props);
|
|
10
|
+
const classNames = footer(variantProps);
|
|
11
|
+
return /* @__PURE__ */ jsx(Primitive.a, {
|
|
12
|
+
ref,
|
|
13
|
+
className: clsx$1(classNames.linkText, className),
|
|
14
|
+
...restProps,
|
|
15
|
+
children
|
|
16
|
+
});
|
|
17
|
+
});
|
|
18
|
+
FooterLinkText.displayName = "FooterLinkText";
|
|
19
|
+
//#endregion
|
|
20
|
+
export { FooterLinkText };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_FooterLinkText = require("./FooterLinkText.cjs");
|
|
3
|
+
const require_Footer_namespace = require("./Footer.namespace.cjs");
|
|
4
|
+
Object.defineProperty(exports, "Footer", {
|
|
5
|
+
enumerable: true,
|
|
6
|
+
get: function() {
|
|
7
|
+
return require_Footer_namespace.Footer_namespace_exports;
|
|
8
|
+
}
|
|
9
|
+
});
|
|
10
|
+
exports.FooterLinkText = require_FooterLinkText.FooterLinkText;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Footer/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,KAAK,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAE5E,OAAO,KAAK,MAAM,MAAM,oBAAoB,CAAC"}
|
|
@@ -1,22 +1,27 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
const require_runtime = require("../../_virtual/_rolldown/runtime.cjs");
|
|
3
|
+
const require_styled = require("../../utils/styled.cjs");
|
|
3
4
|
const require_Box = require("../Box/Box.cjs");
|
|
4
5
|
let react = require("react");
|
|
5
6
|
react = require_runtime.__toESM(react);
|
|
6
7
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
7
8
|
let _seed_design_dom_utils = require("@seed-design/dom-utils");
|
|
8
9
|
//#region src/components/Grid/Grid.tsx
|
|
10
|
+
function handleGridTemplate(v) {
|
|
11
|
+
return typeof v === "number" ? `repeat(${v}, minmax(0, 1fr))` : v;
|
|
12
|
+
}
|
|
9
13
|
var Grid = react.forwardRef((props, ref) => {
|
|
10
14
|
const { align, justify, justifyItems, columns, rows, autoFlow, autoColumns, autoRows, ...rest } = props;
|
|
11
15
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_Box.Box, {
|
|
12
16
|
ref,
|
|
17
|
+
display: "grid",
|
|
13
18
|
alignItems: align,
|
|
14
19
|
justifyContent: justify,
|
|
15
20
|
...(0, _seed_design_dom_utils.mergeProps)(rest, {
|
|
16
21
|
className: "seed-grid",
|
|
17
22
|
style: {
|
|
18
|
-
"--seed-grid-columns"
|
|
19
|
-
"--seed-grid-rows"
|
|
23
|
+
...columns !== void 0 && require_styled.resolveResponsive("--seed-grid-columns", columns, handleGridTemplate),
|
|
24
|
+
...rows !== void 0 && require_styled.resolveResponsive("--seed-grid-rows", rows, handleGridTemplate),
|
|
20
25
|
"--seed-grid-auto-flow": autoFlow,
|
|
21
26
|
"--seed-grid-auto-columns": autoColumns,
|
|
22
27
|
"--seed-grid-auto-rows": autoRows,
|
|
@@ -1,10 +1,12 @@
|
|
|
1
|
+
import { ResponsiveValue } from '../../types/responsive';
|
|
2
|
+
import { DistributiveOmit } from '../../utils/styled';
|
|
1
3
|
import { BoxProps } from '../Box/Box';
|
|
2
4
|
import * as React from "react";
|
|
3
|
-
export
|
|
5
|
+
export type GridProps = DistributiveOmit<BoxProps, "display"> & {
|
|
4
6
|
/**
|
|
5
7
|
* @default "grid"
|
|
6
8
|
*/
|
|
7
|
-
display?: "grid" | "none"
|
|
9
|
+
display?: ResponsiveValue<"grid" | "none">;
|
|
8
10
|
/**
|
|
9
11
|
* Shorthand for `alignItems`.
|
|
10
12
|
*/
|
|
@@ -18,12 +20,12 @@ export interface GridProps extends Omit<BoxProps, "display"> {
|
|
|
18
20
|
* Shorthand for `gridTemplateColumns`.
|
|
19
21
|
* If number, `repeat({columns}, minmax(0, 1fr))` is applied.
|
|
20
22
|
*/
|
|
21
|
-
columns?: number | string
|
|
23
|
+
columns?: ResponsiveValue<number | string>;
|
|
22
24
|
/**
|
|
23
25
|
* Shorthand for `gridTemplateRows`.
|
|
24
26
|
* If number, `repeat({rows}, minmax(0, 1fr))` is applied.
|
|
25
27
|
*/
|
|
26
|
-
rows?: number | string
|
|
28
|
+
rows?: ResponsiveValue<number | string>;
|
|
27
29
|
/**
|
|
28
30
|
* Shorthand for `gridAutoFlow`.
|
|
29
31
|
*/
|
|
@@ -36,6 +38,6 @@ export interface GridProps extends Omit<BoxProps, "display"> {
|
|
|
36
38
|
* Shorthand for `gridAutoRows`.
|
|
37
39
|
*/
|
|
38
40
|
autoRows?: string;
|
|
39
|
-
}
|
|
41
|
+
};
|
|
40
42
|
export declare const Grid: React.ForwardRefExoticComponent<GridProps & React.RefAttributes<HTMLDivElement>>;
|
|
41
43
|
//# sourceMappingURL=Grid.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Grid.d.ts","sourceRoot":"","sources":["../../../src/components/Grid/Grid.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAO,KAAK,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEhD,MAAM,
|
|
1
|
+
{"version":3,"file":"Grid.d.ts","sourceRoot":"","sources":["../../../src/components/Grid/Grid.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAqB,KAAK,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAC9E,OAAO,EAAO,KAAK,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEhD,MAAM,MAAM,SAAS,GAAG,gBAAgB,CAAC,QAAQ,EAAE,SAAS,CAAC,GAAG;IAC9D;;OAEG;IACH,OAAO,CAAC,EAAE,eAAe,CAAC,MAAM,GAAG,MAAM,CAAC,CAAC;IAE3C;;OAEG;IACH,KAAK,CAAC,EAAE,QAAQ,CAAC,YAAY,CAAC,CAAC;IAE/B;;OAEG;IACH,OAAO,CAAC,EAAE,QAAQ,CAAC,gBAAgB,CAAC,CAAC;IAErC,YAAY,CAAC,EAAE,YAAY,GAAG,UAAU,GAAG,QAAQ,GAAG,SAAS,CAAC;IAEhE;;;OAGG;IACH,OAAO,CAAC,EAAE,eAAe,CAAC,MAAM,GAAG,MAAM,CAAC,CAAC;IAE3C;;;OAGG;IACH,IAAI,CAAC,EAAE,eAAe,CAAC,MAAM,GAAG,MAAM,CAAC,CAAC;IAMxC;;OAEG;IACH,QAAQ,CAAC,EAAE,KAAK,GAAG,QAAQ,GAAG,WAAW,GAAG,cAAc,CAAC;IAE3D;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;AAMF,eAAO,MAAM,IAAI,kFAyBf,CAAC"}
|
|
@@ -1,20 +1,25 @@
|
|
|
1
1
|
"use client";
|
|
2
|
+
import { resolveResponsive } from "../../utils/styled.js";
|
|
2
3
|
import { Box } from "../Box/Box.js";
|
|
3
4
|
import * as React$1 from "react";
|
|
4
5
|
import { jsx } from "react/jsx-runtime";
|
|
5
6
|
import { mergeProps } from "@seed-design/dom-utils";
|
|
6
7
|
//#region src/components/Grid/Grid.tsx
|
|
8
|
+
function handleGridTemplate(v) {
|
|
9
|
+
return typeof v === "number" ? `repeat(${v}, minmax(0, 1fr))` : v;
|
|
10
|
+
}
|
|
7
11
|
var Grid = React$1.forwardRef((props, ref) => {
|
|
8
12
|
const { align, justify, justifyItems, columns, rows, autoFlow, autoColumns, autoRows, ...rest } = props;
|
|
9
13
|
return /* @__PURE__ */ jsx(Box, {
|
|
10
14
|
ref,
|
|
15
|
+
display: "grid",
|
|
11
16
|
alignItems: align,
|
|
12
17
|
justifyContent: justify,
|
|
13
18
|
...mergeProps(rest, {
|
|
14
19
|
className: "seed-grid",
|
|
15
20
|
style: {
|
|
16
|
-
"--seed-grid-columns"
|
|
17
|
-
"--seed-grid-rows"
|
|
21
|
+
...columns !== void 0 && resolveResponsive("--seed-grid-columns", columns, handleGridTemplate),
|
|
22
|
+
...rows !== void 0 && resolveResponsive("--seed-grid-rows", rows, handleGridTemplate),
|
|
18
23
|
"--seed-grid-auto-flow": autoFlow,
|
|
19
24
|
"--seed-grid-auto-columns": autoColumns,
|
|
20
25
|
"--seed-grid-auto-rows": autoRows,
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import { DistributiveOmit } from '../../utils/styled';
|
|
1
2
|
import { BoxProps } from '../Box/Box';
|
|
2
3
|
import * as React from "react";
|
|
3
|
-
export
|
|
4
|
+
export type GridItemProps = DistributiveOmit<BoxProps, "gridColumn" | "gridRow" | "gridArea"> & {
|
|
4
5
|
/**
|
|
5
6
|
* If true, the component will render its children directly without a wrapper element.
|
|
6
7
|
* @default false
|
|
@@ -30,6 +31,6 @@ export interface GridItemProps extends Omit<BoxProps, "gridColumn" | "gridRow" |
|
|
|
30
31
|
* Ending row.
|
|
31
32
|
*/
|
|
32
33
|
rowEnd?: number;
|
|
33
|
-
}
|
|
34
|
+
};
|
|
34
35
|
export declare const GridItem: React.ForwardRefExoticComponent<GridItemProps & React.RefAttributes<HTMLDivElement>>;
|
|
35
36
|
//# sourceMappingURL=GridItem.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GridItem.d.ts","sourceRoot":"","sources":["../../../src/components/GridItem/GridItem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAO,KAAK,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEhD,MAAM,
|
|
1
|
+
{"version":3,"file":"GridItem.d.ts","sourceRoot":"","sources":["../../../src/components/GridItem/GridItem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAC3D,OAAO,EAAO,KAAK,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEhD,MAAM,MAAM,aAAa,GAAG,gBAAgB,CAAC,QAAQ,EAAE,YAAY,GAAG,SAAS,GAAG,UAAU,CAAC,GAAG;IAC9F;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAE1B;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAE1B;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CAGjB,CAAC;AAEF,eAAO,MAAM,QAAQ,sFAOnB,CAAC"}
|