@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
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
"use client";
|
|
3
|
+
import { createSlotRecipeContext } from "../../utils/createSlotRecipeContext.js";
|
|
4
|
+
import { InternalIcon } from "../private/Icon.js";
|
|
5
|
+
import { FileUpload, useFileUploadContext } from "@seed-design/react-file-upload";
|
|
6
|
+
import { Primitive } from "@seed-design/react-primitive";
|
|
7
|
+
import clsx$1 from "clsx";
|
|
8
|
+
import * as React$1 from "react";
|
|
9
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
10
|
+
import { mergeProps } from "@seed-design/dom-utils";
|
|
11
|
+
import { attachmentInputTrigger } from "@seed-design/css/recipes/attachment-input-trigger";
|
|
12
|
+
//#region src/components/AttachmentInput/AttachmentInputTrigger.tsx
|
|
13
|
+
var { withProvider, useClassNames } = createSlotRecipeContext(attachmentInputTrigger);
|
|
14
|
+
var AttachmentInputTrigger = withProvider(FileUpload.Trigger, "root");
|
|
15
|
+
var AttachmentInputTriggerIcon = React$1.forwardRef(({ image, general, ...props }, ref) => {
|
|
16
|
+
const { acceptType, stateProps } = useFileUploadContext();
|
|
17
|
+
const mergedProps = mergeProps(stateProps, { className: useClassNames().icon }, props);
|
|
18
|
+
if (acceptType === "image" && image) return /* @__PURE__ */ jsx(InternalIcon, {
|
|
19
|
+
svg: image,
|
|
20
|
+
ref,
|
|
21
|
+
...mergedProps
|
|
22
|
+
});
|
|
23
|
+
return /* @__PURE__ */ jsx(InternalIcon, {
|
|
24
|
+
svg: general,
|
|
25
|
+
ref,
|
|
26
|
+
...mergedProps
|
|
27
|
+
});
|
|
28
|
+
});
|
|
29
|
+
var AttachmentInputTriggerItemCount = React$1.forwardRef(({ className, ...otherProps }, ref) => {
|
|
30
|
+
const classNames = useClassNames();
|
|
31
|
+
const { currentFileEntryCount, maxFiles, stateProps } = useFileUploadContext();
|
|
32
|
+
return /* @__PURE__ */ jsxs(Primitive.div, {
|
|
33
|
+
className: clsx$1(classNames.itemCountArea, className),
|
|
34
|
+
ref,
|
|
35
|
+
...otherProps,
|
|
36
|
+
children: [/* @__PURE__ */ jsx("span", {
|
|
37
|
+
...currentFileEntryCount === 0 && { "data-empty": true },
|
|
38
|
+
className: classNames.itemCount,
|
|
39
|
+
...stateProps,
|
|
40
|
+
children: currentFileEntryCount
|
|
41
|
+
}), /* @__PURE__ */ jsxs("span", {
|
|
42
|
+
className: classNames.maxItemCount,
|
|
43
|
+
...stateProps,
|
|
44
|
+
children: ["/", maxFiles]
|
|
45
|
+
})]
|
|
46
|
+
});
|
|
47
|
+
});
|
|
48
|
+
//#endregion
|
|
49
|
+
export { AttachmentInputTrigger, AttachmentInputTriggerIcon, AttachmentInputTriggerItemCount };
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_AttachmentInput = require("./AttachmentInput.cjs");
|
|
3
|
+
const require_AttachmentInputDropzone = require("./AttachmentInputDropzone.cjs");
|
|
4
|
+
const require_AttachmentInputItem = require("./AttachmentInputItem.cjs");
|
|
5
|
+
const require_AttachmentInputTrigger = require("./AttachmentInputTrigger.cjs");
|
|
6
|
+
const require_AttachmentInput_namespace = require("./AttachmentInput.namespace.cjs");
|
|
7
|
+
Object.defineProperty(exports, "AttachmentInput", {
|
|
8
|
+
enumerable: true,
|
|
9
|
+
get: function() {
|
|
10
|
+
return require_AttachmentInput_namespace.AttachmentInput_namespace_exports;
|
|
11
|
+
}
|
|
12
|
+
});
|
|
13
|
+
exports.AttachmentInputContainer = require_AttachmentInput.AttachmentInputContainer;
|
|
14
|
+
exports.AttachmentInputContext = require_AttachmentInput.AttachmentInputContext;
|
|
15
|
+
exports.AttachmentInputDropzone = require_AttachmentInputDropzone.AttachmentInputDropzone;
|
|
16
|
+
exports.AttachmentInputDropzoneLabel = require_AttachmentInputDropzone.AttachmentInputDropzoneLabel;
|
|
17
|
+
exports.AttachmentInputHiddenInput = require_AttachmentInput.AttachmentInputHiddenInput;
|
|
18
|
+
exports.AttachmentInputItem = require_AttachmentInputItem.AttachmentInputItem;
|
|
19
|
+
exports.AttachmentInputItemActionButton = require_AttachmentInputItem.AttachmentInputItemActionButton;
|
|
20
|
+
exports.AttachmentInputItemBackdrop = require_AttachmentInputItem.AttachmentInputItemBackdrop;
|
|
21
|
+
exports.AttachmentInputItemBadge = require_AttachmentInputItem.AttachmentInputItemBadge;
|
|
22
|
+
exports.AttachmentInputItemGroup = require_AttachmentInput.AttachmentInputItemGroup;
|
|
23
|
+
exports.AttachmentInputItemImage = require_AttachmentInputItem.AttachmentInputItemImage;
|
|
24
|
+
exports.AttachmentInputItemMetadata = require_AttachmentInputItem.AttachmentInputItemMetadata;
|
|
25
|
+
exports.AttachmentInputItemName = require_AttachmentInputItem.AttachmentInputItemName;
|
|
26
|
+
exports.AttachmentInputItemRemoveButton = require_AttachmentInputItem.AttachmentInputItemRemoveButton;
|
|
27
|
+
exports.AttachmentInputItemSize = require_AttachmentInputItem.AttachmentInputItemSize;
|
|
28
|
+
exports.AttachmentInputItemThumbnail = require_AttachmentInputItem.AttachmentInputItemThumbnail;
|
|
29
|
+
exports.AttachmentInputRoot = require_AttachmentInput.AttachmentInputRoot;
|
|
30
|
+
exports.AttachmentInputTrigger = require_AttachmentInputTrigger.AttachmentInputTrigger;
|
|
31
|
+
exports.AttachmentInputTriggerIcon = require_AttachmentInputTrigger.AttachmentInputTriggerIcon;
|
|
32
|
+
exports.AttachmentInputTriggerItemCount = require_AttachmentInputTrigger.AttachmentInputTriggerItemCount;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export { AttachmentInputContainer, AttachmentInputHiddenInput, AttachmentInputItemGroup, AttachmentInputRoot, type AttachmentInputContainerProps, type AttachmentInputHiddenInputProps, type AttachmentInputItemGroupProps, type AttachmentInputRootProps, } from './AttachmentInput';
|
|
2
|
+
export { AttachmentInputContext, type AttachmentInputContextProps, } from './AttachmentInput';
|
|
3
|
+
export { AttachmentInputDropzone, AttachmentInputDropzoneLabel, type AttachmentInputDropzoneLabelProps, type AttachmentInputDropzoneProps, } from './AttachmentInputDropzone';
|
|
4
|
+
export { AttachmentInputItem, AttachmentInputItemActionButton, AttachmentInputItemBackdrop, AttachmentInputItemBadge, AttachmentInputItemImage, AttachmentInputItemMetadata, AttachmentInputItemName, AttachmentInputItemRemoveButton, AttachmentInputItemSize, AttachmentInputItemThumbnail, type AttachmentInputItemActionButtonProps, type AttachmentInputItemBackdropProps, type AttachmentInputItemBadgeProps, type AttachmentInputItemImageProps, type AttachmentInputItemMetadataProps, type AttachmentInputItemNameProps, type AttachmentInputItemProps, type AttachmentInputItemRemoveButtonProps, type AttachmentInputItemSizeProps, type AttachmentInputItemThumbnailProps, } from './AttachmentInputItem';
|
|
5
|
+
export { AttachmentInputTrigger, AttachmentInputTriggerIcon, AttachmentInputTriggerItemCount, type AttachmentInputTriggerIconProps, type AttachmentInputTriggerItemCountProps, type AttachmentInputTriggerProps, } from './AttachmentInputTrigger';
|
|
6
|
+
export * as AttachmentInput from './AttachmentInput.namespace';
|
|
7
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/AttachmentInput/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,wBAAwB,EACxB,0BAA0B,EAC1B,wBAAwB,EACxB,mBAAmB,EACnB,KAAK,6BAA6B,EAClC,KAAK,+BAA+B,EACpC,KAAK,6BAA6B,EAClC,KAAK,wBAAwB,GAC9B,MAAM,mBAAmB,CAAC;AAE3B,OAAO,EACL,sBAAsB,EACtB,KAAK,2BAA2B,GACjC,MAAM,mBAAmB,CAAC;AAE3B,OAAO,EACL,uBAAuB,EACvB,4BAA4B,EAC5B,KAAK,iCAAiC,EACtC,KAAK,4BAA4B,GAClC,MAAM,2BAA2B,CAAC;AAEnC,OAAO,EACL,mBAAmB,EACnB,+BAA+B,EAC/B,2BAA2B,EAC3B,wBAAwB,EACxB,wBAAwB,EACxB,2BAA2B,EAC3B,uBAAuB,EACvB,+BAA+B,EAC/B,uBAAuB,EACvB,4BAA4B,EAC5B,KAAK,oCAAoC,EACzC,KAAK,gCAAgC,EACrC,KAAK,6BAA6B,EAClC,KAAK,6BAA6B,EAClC,KAAK,gCAAgC,EACrC,KAAK,4BAA4B,EACjC,KAAK,wBAAwB,EAC7B,KAAK,oCAAoC,EACzC,KAAK,4BAA4B,EACjC,KAAK,iCAAiC,GACvC,MAAM,uBAAuB,CAAC;AAE/B,OAAO,EACL,sBAAsB,EACtB,0BAA0B,EAC1B,+BAA+B,EAC/B,KAAK,+BAA+B,EACpC,KAAK,oCAAoC,EACzC,KAAK,2BAA2B,GACjC,MAAM,0BAA0B,CAAC;AAElC,OAAO,KAAK,eAAe,MAAM,6BAA6B,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { AttachmentInputContainer, AttachmentInputContext, AttachmentInputHiddenInput, AttachmentInputItemGroup, AttachmentInputRoot } from "./AttachmentInput.js";
|
|
2
|
+
import { AttachmentInputDropzone, AttachmentInputDropzoneLabel } from "./AttachmentInputDropzone.js";
|
|
3
|
+
import { AttachmentInputItem, AttachmentInputItemActionButton, AttachmentInputItemBackdrop, AttachmentInputItemBadge, AttachmentInputItemImage, AttachmentInputItemMetadata, AttachmentInputItemName, AttachmentInputItemRemoveButton, AttachmentInputItemSize, AttachmentInputItemThumbnail } from "./AttachmentInputItem.js";
|
|
4
|
+
import { AttachmentInputTrigger, AttachmentInputTriggerIcon, AttachmentInputTriggerItemCount } from "./AttachmentInputTrigger.js";
|
|
5
|
+
import { AttachmentInput_namespace_exports } from "./AttachmentInput.namespace.js";
|
|
6
|
+
export { AttachmentInput_namespace_exports as AttachmentInput, AttachmentInputContainer, AttachmentInputContext, AttachmentInputDropzone, AttachmentInputDropzoneLabel, AttachmentInputHiddenInput, AttachmentInputItem, AttachmentInputItemActionButton, AttachmentInputItemBackdrop, AttachmentInputItemBadge, AttachmentInputItemGroup, AttachmentInputItemImage, AttachmentInputItemMetadata, AttachmentInputItemName, AttachmentInputItemRemoveButton, AttachmentInputItemSize, AttachmentInputItemThumbnail, AttachmentInputRoot, AttachmentInputTrigger, AttachmentInputTriggerIcon, AttachmentInputTriggerItemCount };
|
|
@@ -1,34 +1,61 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
require("../../_virtual/_rolldown/runtime.cjs");
|
|
3
|
-
const require_styled = require("../../utils/styled.cjs");
|
|
2
|
+
const require_runtime = require("../../_virtual/_rolldown/runtime.cjs");
|
|
4
3
|
const require_createSlotRecipeContext = require("../../utils/createSlotRecipeContext.cjs");
|
|
4
|
+
const require_styled = require("../../utils/styled.cjs");
|
|
5
|
+
const require_createRenderTrackingContext = require("../../utils/createRenderTrackingContext.cjs");
|
|
5
6
|
let _seed_design_react_primitive = require("@seed-design/react-primitive");
|
|
7
|
+
let clsx = require("clsx");
|
|
8
|
+
clsx = require_runtime.__toESM(clsx);
|
|
6
9
|
let react = require("react");
|
|
7
10
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
8
11
|
let _seed_design_dom_utils = require("@seed-design/dom-utils");
|
|
9
12
|
let _seed_design_css_recipes_bottom_sheet = require("@seed-design/css/recipes/bottom-sheet");
|
|
13
|
+
let _radix_ui_react_compose_refs = require("@radix-ui/react-compose-refs");
|
|
10
14
|
let _seed_design_react_drawer = require("@seed-design/react-drawer");
|
|
11
15
|
//#region src/components/BottomSheet/BottomSheet.tsx
|
|
12
|
-
var {
|
|
13
|
-
var
|
|
16
|
+
var { withContext, useClassNames, ClassNamesProvider } = require_createSlotRecipeContext.createSlotRecipeContext(_seed_design_css_recipes_bottom_sheet.bottomSheet);
|
|
17
|
+
var closeButtonTracker = require_createRenderTrackingContext.createRenderTrackingContext("BottomSheetCloseButton");
|
|
18
|
+
function BottomSheetRoot(props) {
|
|
19
|
+
const [variantProps, otherProps] = _seed_design_css_recipes_bottom_sheet.bottomSheet.splitVariantProps({
|
|
20
|
+
direction: "bottom",
|
|
21
|
+
lazyMount: true,
|
|
22
|
+
unmountOnExit: true,
|
|
23
|
+
...props
|
|
24
|
+
});
|
|
25
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ClassNamesProvider, {
|
|
26
|
+
value: (0, _seed_design_css_recipes_bottom_sheet.bottomSheet)(variantProps),
|
|
27
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(closeButtonTracker.Provider, { children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_seed_design_react_drawer.Drawer.Root, { ...otherProps }) })
|
|
28
|
+
});
|
|
29
|
+
}
|
|
14
30
|
var BottomSheetTrigger = _seed_design_react_drawer.Drawer.Trigger;
|
|
15
31
|
var BottomSheetPositioner = withContext(_seed_design_react_drawer.Drawer.Positioner, "positioner");
|
|
16
32
|
var BottomSheetBackdrop = withContext(_seed_design_react_drawer.Drawer.Backdrop, "backdrop");
|
|
17
33
|
var BottomSheetContent = withContext(_seed_design_react_drawer.Drawer.Content, "content");
|
|
18
34
|
var BottomSheetHeader = withContext(_seed_design_react_drawer.Drawer.Header, "header");
|
|
19
|
-
var BottomSheetTitle =
|
|
20
|
-
const
|
|
35
|
+
var BottomSheetTitle = (0, react.forwardRef)(({ className, ...props }, ref) => {
|
|
36
|
+
const classNames = useClassNames();
|
|
37
|
+
const { isRendered } = closeButtonTracker.useRenderTracking();
|
|
21
38
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_seed_design_react_drawer.Drawer.Title, {
|
|
22
39
|
ref,
|
|
23
|
-
"data-show-close-button": (0, _seed_design_dom_utils.dataAttr)(
|
|
40
|
+
"data-show-close-button": (0, _seed_design_dom_utils.dataAttr)(isRendered),
|
|
41
|
+
className: (0, clsx.default)(classNames.title, className),
|
|
24
42
|
...props
|
|
25
43
|
});
|
|
26
|
-
})
|
|
44
|
+
});
|
|
27
45
|
BottomSheetTitle.displayName = "BottomSheetTitle";
|
|
28
46
|
var BottomSheetDescription = withContext(_seed_design_react_drawer.Drawer.Description, "description");
|
|
29
47
|
var BottomSheetBody = withContext(require_styled.withStyleProps(_seed_design_react_primitive.Primitive.div), "body");
|
|
30
48
|
var BottomSheetFooter = withContext(_seed_design_react_primitive.Primitive.div, "footer");
|
|
31
|
-
var BottomSheetCloseButton =
|
|
49
|
+
var BottomSheetCloseButton = (0, react.forwardRef)(({ className, ...props }, ref) => {
|
|
50
|
+
const classNames = useClassNames();
|
|
51
|
+
const { trackRef } = closeButtonTracker.useRenderTracking();
|
|
52
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_seed_design_react_drawer.Drawer.CloseButton, {
|
|
53
|
+
ref: (0, _radix_ui_react_compose_refs.composeRefs)(ref, trackRef),
|
|
54
|
+
className: (0, clsx.default)(classNames.closeButton, className),
|
|
55
|
+
...props
|
|
56
|
+
});
|
|
57
|
+
});
|
|
58
|
+
BottomSheetCloseButton.displayName = "BottomSheetCloseButton";
|
|
32
59
|
//#endregion
|
|
33
60
|
exports.BottomSheetBackdrop = BottomSheetBackdrop;
|
|
34
61
|
exports.BottomSheetBody = BottomSheetBody;
|
|
@@ -3,13 +3,12 @@ import { Drawer } from '@seed-design/react-drawer';
|
|
|
3
3
|
import { PrimitiveProps } from '@seed-design/react-primitive';
|
|
4
4
|
import { StyleProps } from '../../utils/styled';
|
|
5
5
|
import { ForwardRefExoticComponent, RefAttributes } from 'react';
|
|
6
|
-
|
|
7
|
-
export interface BottomSheetRootProps extends BottomSheetVariantProps, Drawer.RootProps {
|
|
6
|
+
export interface BottomSheetRootProps extends BottomSheetVariantProps, Omit<Drawer.RootProps, "direction"> {
|
|
8
7
|
}
|
|
9
|
-
export declare
|
|
8
|
+
export declare function BottomSheetRoot(props: BottomSheetRootProps): import("react/jsx-runtime").JSX.Element;
|
|
10
9
|
export interface BottomSheetTriggerProps extends Drawer.TriggerProps {
|
|
11
10
|
}
|
|
12
|
-
export declare const BottomSheetTrigger: ForwardRefExoticComponent<
|
|
11
|
+
export declare const BottomSheetTrigger: ForwardRefExoticComponent<Drawer.TriggerProps & RefAttributes<HTMLButtonElement>>;
|
|
13
12
|
export interface BottomSheetPositionerProps extends Drawer.PositionerProps {
|
|
14
13
|
}
|
|
15
14
|
export declare const BottomSheetPositioner: ForwardRefExoticComponent<BottomSheetPositionerProps & RefAttributes<HTMLDivElement>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BottomSheet.d.ts","sourceRoot":"","sources":["../../../src/components/BottomSheet/BottomSheet.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"BottomSheet.d.ts","sourceRoot":"","sources":["../../../src/components/BottomSheet/BottomSheet.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAe,KAAK,uBAAuB,EAAE,MAAM,uCAAuC,CAAC;AAGlG,OAAO,EAAE,MAAM,EAAE,MAAM,2BAA2B,CAAC;AACnD,OAAO,EAAa,KAAK,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAK9E,OAAO,EAAkB,KAAK,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAQrE,MAAM,WAAW,oBACf,SAAQ,uBAAuB,EAC7B,IAAI,CAAC,MAAM,CAAC,SAAS,EAAE,WAAW,CAAC;CAAG;AAE1C,wBAAgB,eAAe,CAAC,KAAK,EAAE,oBAAoB,2CAgB1D;AAID,MAAM,WAAW,uBAAwB,SAAQ,MAAM,CAAC,YAAY;CAAG;AAEvE,eAAO,MAAM,kBAAkB,mHAAiB,CAAC;AAIjD,MAAM,WAAW,0BAA2B,SAAQ,MAAM,CAAC,eAAe;CAAG;AAE7E,eAAO,MAAM,qBAAqB,uHAGjC,CAAC;AAIF,MAAM,WAAW,wBAAyB,SAAQ,MAAM,CAAC,aAAa;CAAG;AAEzE,eAAO,MAAM,mBAAmB,qHAG/B,CAAC;AAIF,MAAM,WAAW,uBAAwB,SAAQ,MAAM,CAAC,YAAY;CAAG;AAEvE,eAAO,MAAM,kBAAkB,oHAG9B,CAAC;AAIF,MAAM,WAAW,sBAAuB,SAAQ,MAAM,CAAC,WAAW;CAAG;AAErE,eAAO,MAAM,iBAAiB,mHAG7B,CAAC;AAIF,MAAM,WAAW,qBAAsB,SAAQ,MAAM,CAAC,UAAU;CAAG;AAEnE,eAAO,MAAM,gBAAgB,sHAc5B,CAAC;AAMF,MAAM,WAAW,2BAA4B,SAAQ,MAAM,CAAC,gBAAgB;CAAG;AAE/E,eAAO,MAAM,sBAAsB,8HAGC,CAAC;AAIrC,MAAM,WAAW,oBACf,SAAQ,cAAc,EACpB,IAAI,CACF,UAAU,EACV,UAAU,GAAG,QAAQ,GAAG,WAAW,GAAG,WAAW,GAAG,gBAAgB,GAAG,YAAY,CACpF,EACD,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;CAAG;AAE3C,eAAO,MAAM,eAAe,iHAG3B,CAAC;AAIF,MAAM,WAAW,sBACf,SAAQ,cAAc,EACpB,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;CAAG;AAE3C,eAAO,MAAM,iBAAiB,mHAG7B,CAAC;AAIF,MAAM,WAAW,2BAA4B,SAAQ,MAAM,CAAC,gBAAgB;CAAG;AAE/E,eAAO,MAAM,sBAAsB,2HAalC,CAAC"}
|
|
@@ -1,32 +1,58 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { withStyleProps } from "../../utils/styled.js";
|
|
3
2
|
import { createSlotRecipeContext } from "../../utils/createSlotRecipeContext.js";
|
|
3
|
+
import { withStyleProps } from "../../utils/styled.js";
|
|
4
|
+
import { createRenderTrackingContext } from "../../utils/createRenderTrackingContext.js";
|
|
4
5
|
import { Primitive } from "@seed-design/react-primitive";
|
|
6
|
+
import clsx$1 from "clsx";
|
|
5
7
|
import { forwardRef } from "react";
|
|
6
8
|
import { jsx } from "react/jsx-runtime";
|
|
7
9
|
import { dataAttr } from "@seed-design/dom-utils";
|
|
8
10
|
import { bottomSheet } from "@seed-design/css/recipes/bottom-sheet";
|
|
9
|
-
import {
|
|
11
|
+
import { composeRefs } from "@radix-ui/react-compose-refs";
|
|
12
|
+
import { Drawer } from "@seed-design/react-drawer";
|
|
10
13
|
//#region src/components/BottomSheet/BottomSheet.tsx
|
|
11
|
-
var {
|
|
12
|
-
var
|
|
14
|
+
var { withContext, useClassNames, ClassNamesProvider } = createSlotRecipeContext(bottomSheet);
|
|
15
|
+
var closeButtonTracker = createRenderTrackingContext("BottomSheetCloseButton");
|
|
16
|
+
function BottomSheetRoot(props) {
|
|
17
|
+
const [variantProps, otherProps] = bottomSheet.splitVariantProps({
|
|
18
|
+
direction: "bottom",
|
|
19
|
+
lazyMount: true,
|
|
20
|
+
unmountOnExit: true,
|
|
21
|
+
...props
|
|
22
|
+
});
|
|
23
|
+
return /* @__PURE__ */ jsx(ClassNamesProvider, {
|
|
24
|
+
value: bottomSheet(variantProps),
|
|
25
|
+
children: /* @__PURE__ */ jsx(closeButtonTracker.Provider, { children: /* @__PURE__ */ jsx(Drawer.Root, { ...otherProps }) })
|
|
26
|
+
});
|
|
27
|
+
}
|
|
13
28
|
var BottomSheetTrigger = Drawer.Trigger;
|
|
14
29
|
var BottomSheetPositioner = withContext(Drawer.Positioner, "positioner");
|
|
15
30
|
var BottomSheetBackdrop = withContext(Drawer.Backdrop, "backdrop");
|
|
16
31
|
var BottomSheetContent = withContext(Drawer.Content, "content");
|
|
17
32
|
var BottomSheetHeader = withContext(Drawer.Header, "header");
|
|
18
|
-
var BottomSheetTitle =
|
|
19
|
-
const
|
|
33
|
+
var BottomSheetTitle = forwardRef(({ className, ...props }, ref) => {
|
|
34
|
+
const classNames = useClassNames();
|
|
35
|
+
const { isRendered } = closeButtonTracker.useRenderTracking();
|
|
20
36
|
return /* @__PURE__ */ jsx(Drawer.Title, {
|
|
21
37
|
ref,
|
|
22
|
-
"data-show-close-button": dataAttr(
|
|
38
|
+
"data-show-close-button": dataAttr(isRendered),
|
|
39
|
+
className: clsx$1(classNames.title, className),
|
|
23
40
|
...props
|
|
24
41
|
});
|
|
25
|
-
})
|
|
42
|
+
});
|
|
26
43
|
BottomSheetTitle.displayName = "BottomSheetTitle";
|
|
27
44
|
var BottomSheetDescription = withContext(Drawer.Description, "description");
|
|
28
45
|
var BottomSheetBody = withContext(withStyleProps(Primitive.div), "body");
|
|
29
46
|
var BottomSheetFooter = withContext(Primitive.div, "footer");
|
|
30
|
-
var BottomSheetCloseButton =
|
|
47
|
+
var BottomSheetCloseButton = forwardRef(({ className, ...props }, ref) => {
|
|
48
|
+
const classNames = useClassNames();
|
|
49
|
+
const { trackRef } = closeButtonTracker.useRenderTracking();
|
|
50
|
+
return /* @__PURE__ */ jsx(Drawer.CloseButton, {
|
|
51
|
+
ref: composeRefs(ref, trackRef),
|
|
52
|
+
className: clsx$1(classNames.closeButton, className),
|
|
53
|
+
...props
|
|
54
|
+
});
|
|
55
|
+
});
|
|
56
|
+
BottomSheetCloseButton.displayName = "BottomSheetCloseButton";
|
|
31
57
|
//#endregion
|
|
32
58
|
export { BottomSheetBackdrop, BottomSheetBody, BottomSheetCloseButton, BottomSheetContent, BottomSheetDescription, BottomSheetFooter, BottomSheetHeader, BottomSheetPositioner, BottomSheetRoot, BottomSheetTitle, BottomSheetTrigger };
|
|
@@ -9,18 +9,25 @@ let react_jsx_runtime = require("react/jsx-runtime");
|
|
|
9
9
|
let _radix_ui_react_slot = require("@radix-ui/react-slot");
|
|
10
10
|
//#region src/components/Box/Box.tsx
|
|
11
11
|
var Box = react.forwardRef((props, ref) => {
|
|
12
|
-
const {
|
|
12
|
+
const { hideFrom, ...rest } = props;
|
|
13
|
+
const { style, restProps } = require_styled.useStyleProps(rest);
|
|
13
14
|
const { as: Comp = "div", asChild = false, className, ...nativeProps } = restProps;
|
|
14
15
|
if (asChild) return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_radix_ui_react_slot.Slot, {
|
|
15
16
|
ref,
|
|
16
17
|
className: (0, clsx.default)("seed-box", className),
|
|
17
|
-
style
|
|
18
|
+
style: {
|
|
19
|
+
...style,
|
|
20
|
+
...hideFrom && { [`--seed-box-display-${hideFrom}`]: "none" }
|
|
21
|
+
},
|
|
18
22
|
...nativeProps
|
|
19
23
|
});
|
|
20
24
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Comp, {
|
|
21
25
|
ref,
|
|
22
26
|
className: (0, clsx.default)("seed-box", className),
|
|
23
|
-
style
|
|
27
|
+
style: {
|
|
28
|
+
...style,
|
|
29
|
+
...hideFrom && { [`--seed-box-display-${hideFrom}`]: "none" }
|
|
30
|
+
},
|
|
24
31
|
...nativeProps
|
|
25
32
|
});
|
|
26
33
|
});
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
+
import { BreakpointThreshold } from '../../types/responsive';
|
|
1
2
|
import { StyleProps } from '../../utils/styled';
|
|
2
3
|
import * as React from "react";
|
|
3
|
-
export
|
|
4
|
+
export type BoxProps = StyleProps & Omit<React.HTMLAttributes<HTMLDivElement>, "color"> & {
|
|
4
5
|
as?: React.ElementType;
|
|
5
6
|
asChild?: boolean;
|
|
6
|
-
|
|
7
|
+
hideFrom?: BreakpointThreshold;
|
|
8
|
+
};
|
|
7
9
|
export declare const Box: React.ForwardRefExoticComponent<BoxProps & React.RefAttributes<HTMLDivElement>>;
|
|
8
10
|
//# sourceMappingURL=Box.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Box.d.ts","sourceRoot":"","sources":["../../../src/components/Box/Box.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAiB,KAAK,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAGpE,MAAM,
|
|
1
|
+
{"version":3,"file":"Box.d.ts","sourceRoot":"","sources":["../../../src/components/Box/Box.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAClE,OAAO,EAAiB,KAAK,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAGpE,MAAM,MAAM,QAAQ,GAAG,UAAU,GAC/B,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,EAAE,OAAO,CAAC,GAAG;IACpD,EAAE,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC;IAEvB,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB,QAAQ,CAAC,EAAE,mBAAmB,CAAC;CAChC,CAAC;AAEJ,eAAO,MAAM,GAAG,iFA8Bd,CAAC"}
|
|
@@ -6,18 +6,25 @@ import { jsx } from "react/jsx-runtime";
|
|
|
6
6
|
import { Slot } from "@radix-ui/react-slot";
|
|
7
7
|
//#region src/components/Box/Box.tsx
|
|
8
8
|
var Box = React$1.forwardRef((props, ref) => {
|
|
9
|
-
const {
|
|
9
|
+
const { hideFrom, ...rest } = props;
|
|
10
|
+
const { style, restProps } = useStyleProps(rest);
|
|
10
11
|
const { as: Comp = "div", asChild = false, className, ...nativeProps } = restProps;
|
|
11
12
|
if (asChild) return /* @__PURE__ */ jsx(Slot, {
|
|
12
13
|
ref,
|
|
13
14
|
className: clsx$1("seed-box", className),
|
|
14
|
-
style
|
|
15
|
+
style: {
|
|
16
|
+
...style,
|
|
17
|
+
...hideFrom && { [`--seed-box-display-${hideFrom}`]: "none" }
|
|
18
|
+
},
|
|
15
19
|
...nativeProps
|
|
16
20
|
});
|
|
17
21
|
return /* @__PURE__ */ jsx(Comp, {
|
|
18
22
|
ref,
|
|
19
23
|
className: clsx$1("seed-box", className),
|
|
20
|
-
style
|
|
24
|
+
style: {
|
|
25
|
+
...style,
|
|
26
|
+
...hideFrom && { [`--seed-box-display-${hideFrom}`]: "none" }
|
|
27
|
+
},
|
|
21
28
|
...nativeProps
|
|
22
29
|
});
|
|
23
30
|
});
|
|
@@ -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_checkbox = require("@seed-design/react-checkbox");
|
|
@@ -22,11 +22,7 @@ var { withProvider: withCheckmarkProvider, useClassNames: useCheckmarkClassNames
|
|
|
22
22
|
var withStateProps = require_createWithStateProps.createWithStateProps([_seed_design_react_checkbox.useCheckboxContext]);
|
|
23
23
|
var CheckboxGroup = withGroupContext(_seed_design_react_primitive.Primitive.div);
|
|
24
24
|
var CheckboxRoot = Object.assign((0, react.forwardRef)(({ className, ...props }, ref) => {
|
|
25
|
-
|
|
26
|
-
const [{ checkbox: checkboxVariantProps, checkmark: checkmarkVariantProps }, otherProps] = require_splitMultipleVariantsProps.splitMultipleVariantsProps({
|
|
27
|
-
...props,
|
|
28
|
-
weight: props.weight === "stronger" ? "bold" : props.weight === "default" ? "regular" : props.weight
|
|
29
|
-
}, {
|
|
25
|
+
const [{ checkbox: checkboxVariantProps, checkmark: checkmarkVariantProps }, otherProps] = require_splitMultipleVariantsProps.splitMultipleVariantsProps(props, {
|
|
30
26
|
checkbox: _seed_design_css_recipes_checkbox.checkbox,
|
|
31
27
|
checkmark: _seed_design_css_recipes_checkmark.checkmark
|
|
32
28
|
});
|
|
@@ -7,12 +7,7 @@ import { ForwardRefExoticComponent, RefAttributes } from 'react';
|
|
|
7
7
|
export interface CheckboxGroupProps extends CheckboxGroupVariantProps, PrimitiveProps, React.HTMLAttributes<HTMLDivElement> {
|
|
8
8
|
}
|
|
9
9
|
export declare const CheckboxGroup: ForwardRefExoticComponent<CheckboxGroupProps & RefAttributes<HTMLDivElement>>;
|
|
10
|
-
|
|
11
|
-
* @deprecated Use `regular` or `bold` instead of `default` or `stronger`
|
|
12
|
-
*/
|
|
13
|
-
type CheckboxVariantDeprecatedWeightProps = "default" | "stronger";
|
|
14
|
-
export interface CheckboxRootProps extends Omit<CheckboxVariantProps, "weight">, CheckmarkVariantProps, CheckboxPrimitive.RootProps {
|
|
15
|
-
weight?: CheckboxVariantProps["weight"] | CheckboxVariantDeprecatedWeightProps;
|
|
10
|
+
export interface CheckboxRootProps extends CheckboxVariantProps, CheckmarkVariantProps, CheckboxPrimitive.RootProps {
|
|
16
11
|
}
|
|
17
12
|
export declare const CheckboxRoot: ForwardRefExoticComponent<CheckboxRootProps & RefAttributes<HTMLLabelElement>> & {
|
|
18
13
|
Primitive: ForwardRefExoticComponent<CheckboxPrimitive.RootProps & RefAttributes<HTMLLabelElement>>;
|
|
@@ -45,5 +40,4 @@ export declare const CheckboxLabel: ForwardRefExoticComponent<CheckboxLabelProps
|
|
|
45
40
|
export interface CheckboxHiddenInputProps extends CheckboxPrimitive.HiddenInputProps {
|
|
46
41
|
}
|
|
47
42
|
export declare const CheckboxHiddenInput: ForwardRefExoticComponent<CheckboxPrimitive.HiddenInputProps & RefAttributes<HTMLInputElement>>;
|
|
48
|
-
export {};
|
|
49
43
|
//# sourceMappingURL=Checkbox.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Checkbox.d.ts","sourceRoot":"","sources":["../../../src/components/Checkbox/Checkbox.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAY,KAAK,oBAAoB,EAAE,MAAM,mCAAmC,CAAC;AACxF,OAAO,EAAa,KAAK,qBAAqB,EAAE,MAAM,oCAAoC,CAAC;AAG3F,OAAO,EAAE,QAAQ,IAAI,iBAAiB,EAAsB,MAAM,6BAA6B,CAAC;AAChG,OAAO,EAAa,KAAK,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAO9E,OAAO,EAEL,KAAK,yBAAyB,EAC/B,MAAM,yCAAyC,CAAC;AAajD,MAAM,WAAW,kBACf,SAAQ,yBAAyB,EAC/B,cAAc,EACd,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;CAAG;AAE3C,eAAO,MAAM,aAAa,+GAAsE,CAAC;AAIjG
|
|
1
|
+
{"version":3,"file":"Checkbox.d.ts","sourceRoot":"","sources":["../../../src/components/Checkbox/Checkbox.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAY,KAAK,oBAAoB,EAAE,MAAM,mCAAmC,CAAC;AACxF,OAAO,EAAa,KAAK,qBAAqB,EAAE,MAAM,oCAAoC,CAAC;AAG3F,OAAO,EAAE,QAAQ,IAAI,iBAAiB,EAAsB,MAAM,6BAA6B,CAAC;AAChG,OAAO,EAAa,KAAK,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAO9E,OAAO,EAEL,KAAK,yBAAyB,EAC/B,MAAM,yCAAyC,CAAC;AAajD,MAAM,WAAW,kBACf,SAAQ,yBAAyB,EAC/B,cAAc,EACd,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;CAAG;AAE3C,eAAO,MAAM,aAAa,+GAAsE,CAAC;AAIjG,MAAM,WAAW,iBACf,SAAQ,oBAAoB,EAC1B,qBAAqB,EACrB,iBAAiB,CAAC,SAAS;CAAG;AAElC,eAAO,MAAM,YAAY;;CAsBxB,CAAC;AAIF;;;GAGG;AAEH,MAAM,WAAW,oBACf,SAAQ,qBAAqB,EAC3B,iBAAiB,CAAC,YAAY;CAAG;AAErC,eAAO,MAAM,eAAe,iHAG3B,CAAC;AAIF,MAAM,WAAW,sBAAuB,SAAQ,KAAK,CAAC,aAAa,CAAC,aAAa,CAAC;IAChF;;OAEG;IACH,SAAS,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAE5B;;OAEG;IACH,OAAO,EAAE,KAAK,CAAC,SAAS,CAAC;IAEzB;;OAEG;IACH,aAAa,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CACjC;AAED,eAAO,MAAM,iBAAiB,kHA8B7B,CAAC;AAKF,MAAM,WAAW,kBAAmB,SAAQ,cAAc,EAAE,KAAK,CAAC,cAAc,CAAC,eAAe,CAAC;CAAG;AAEpG,eAAO,MAAM,aAAa,+GAGzB,CAAC;AAIF,MAAM,WAAW,wBAAyB,SAAQ,iBAAiB,CAAC,gBAAgB;CAAG;AAEvF,eAAO,MAAM,mBAAmB,iIAAgC,CAAC"}
|
|
@@ -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 { Checkbox, useCheckboxContext } from "@seed-design/react-checkbox";
|
|
@@ -20,11 +20,7 @@ var { withProvider: withCheckmarkProvider, useClassNames: useCheckmarkClassNames
|
|
|
20
20
|
var withStateProps = createWithStateProps([useCheckboxContext]);
|
|
21
21
|
var CheckboxGroup = withGroupContext(Primitive.div);
|
|
22
22
|
var CheckboxRoot = Object.assign(forwardRef(({ className, ...props }, ref) => {
|
|
23
|
-
|
|
24
|
-
const [{ checkbox: checkboxVariantProps, checkmark: checkmarkVariantProps }, otherProps] = splitMultipleVariantsProps({
|
|
25
|
-
...props,
|
|
26
|
-
weight: props.weight === "stronger" ? "bold" : props.weight === "default" ? "regular" : props.weight
|
|
27
|
-
}, {
|
|
23
|
+
const [{ checkbox: checkboxVariantProps, checkmark: checkmarkVariantProps }, otherProps] = splitMultipleVariantsProps(props, {
|
|
28
24
|
checkbox,
|
|
29
25
|
checkmark
|
|
30
26
|
});
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
require("../../_virtual/_rolldown/runtime.cjs");
|
|
3
|
-
const require_Icon = require("../Icon/Icon.cjs");
|
|
4
3
|
const require_createSlotRecipeContext = require("../../utils/createSlotRecipeContext.cjs");
|
|
5
4
|
const require_createWithStateProps = require("../../utils/createWithStateProps.cjs");
|
|
5
|
+
const require_Icon = require("../Icon/Icon.cjs");
|
|
6
6
|
let _seed_design_react_checkbox = require("@seed-design/react-checkbox");
|
|
7
7
|
let _seed_design_react_radio_group = require("@seed-design/react-radio-group");
|
|
8
8
|
let _seed_design_react_primitive = require("@seed-design/react-primitive");
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { withIconRequired } from "../Icon/Icon.js";
|
|
3
2
|
import { createSlotRecipeContext } from "../../utils/createSlotRecipeContext.js";
|
|
4
3
|
import { createWithStateProps } from "../../utils/createWithStateProps.js";
|
|
4
|
+
import { withIconRequired } from "../Icon/Icon.js";
|
|
5
5
|
import { useCheckboxContext } from "@seed-design/react-checkbox";
|
|
6
6
|
import { useRadioGroupItemContext } from "@seed-design/react-radio-group";
|
|
7
7
|
import { Primitive } from "@seed-design/react-primitive";
|
|
@@ -10,7 +10,6 @@ let _seed_design_css_recipes_chip_tabs = require("@seed-design/css/recipes/chip-
|
|
|
10
10
|
//#region src/components/ChipTabs/ChipTabs.tsx
|
|
11
11
|
var { ClassNamesProvider, withContext } = require_createSlotRecipeContext.createSlotRecipeContext(_seed_design_css_recipes_chip_tabs.chipTabs);
|
|
12
12
|
var ChipTabsRoot = (0, react.forwardRef)(({ className, ...props }, ref) => {
|
|
13
|
-
if (process.env.NODE_ENV !== "production" && props.variant === "brandSolid") console.warn("[SEED Design System] ChipTabs variant='brandSolid' is deprecated and will be removed in @seed-design/react@2.0.0. Use variant='neutralSolid' or variant='neutralOutline' instead.");
|
|
14
13
|
const [variantProps, otherProps] = _seed_design_css_recipes_chip_tabs.chipTabs.splitVariantProps(props);
|
|
15
14
|
const classNames = (0, _seed_design_css_recipes_chip_tabs.chipTabs)(variantProps);
|
|
16
15
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ClassNamesProvider, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChipTabs.d.ts","sourceRoot":"","sources":["../../../src/components/ChipTabs/ChipTabs.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAY,KAAK,oBAAoB,EAAE,MAAM,oCAAoC,CAAC;AACzF,OAAO,EAAE,IAAI,IAAI,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAShE,MAAM,WAAW,iBAAkB,SAAQ,oBAAoB,EAAE,aAAa,CAAC,SAAS;CAAG;AAE3F,eAAO,MAAM,YAAY,
|
|
1
|
+
{"version":3,"file":"ChipTabs.d.ts","sourceRoot":"","sources":["../../../src/components/ChipTabs/ChipTabs.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAY,KAAK,oBAAoB,EAAE,MAAM,oCAAoC,CAAC;AACzF,OAAO,EAAE,IAAI,IAAI,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAShE,MAAM,WAAW,iBAAkB,SAAQ,oBAAoB,EAAE,aAAa,CAAC,SAAS;CAAG;AAE3F,eAAO,MAAM,YAAY,8GAexB,CAAC;AAKF,MAAM,WAAW,iBAAkB,SAAQ,aAAa,CAAC,SAAS;CAAG;AAErE,eAAO,MAAM,YAAY,8GAGxB,CAAC;AAIF,MAAM,WAAW,oBAAqB,SAAQ,aAAa,CAAC,YAAY;CAAG;AAE3E,eAAO,MAAM,eAAe,oHAG3B,CAAC;AAIF,MAAM,WAAW,oBAAqB,SAAQ,aAAa,CAAC,YAAY;CAAG;AAE3E,eAAO,MAAM,eAAe,kHAG3B,CAAC;AAIF,MAAM,WAAW,qBAAsB,SAAQ,aAAa,CAAC,aAAa;CAAG;AAE7E,eAAO,MAAM,gBAAgB,kHAG5B,CAAC;AAIF,MAAM,WAAW,2BAA4B,SAAQ,aAAa,CAAC,mBAAmB;CAAG;AAEzF,eAAO,MAAM,sBAAsB,wHAGlC,CAAC"}
|
|
@@ -8,7 +8,6 @@ import { chipTabs } from "@seed-design/css/recipes/chip-tabs";
|
|
|
8
8
|
//#region src/components/ChipTabs/ChipTabs.tsx
|
|
9
9
|
var { ClassNamesProvider, withContext } = createSlotRecipeContext(chipTabs);
|
|
10
10
|
var ChipTabsRoot = forwardRef(({ className, ...props }, ref) => {
|
|
11
|
-
if (process.env.NODE_ENV !== "production" && props.variant === "brandSolid") console.warn("[SEED Design System] ChipTabs variant='brandSolid' is deprecated and will be removed in @seed-design/react@2.0.0. Use variant='neutralSolid' or variant='neutralOutline' instead.");
|
|
12
11
|
const [variantProps, otherProps] = chipTabs.splitVariantProps(props);
|
|
13
12
|
const classNames = chipTabs(variantProps);
|
|
14
13
|
return /* @__PURE__ */ jsx(ClassNamesProvider, {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
+
import { DistributiveOmit } from '../../utils/styled';
|
|
1
2
|
import { BoxProps } from '../Box/Box';
|
|
2
3
|
import * as React from "react";
|
|
3
4
|
/**
|
|
4
5
|
* @deprecated Use `HStack` instead.
|
|
5
6
|
*/
|
|
6
|
-
export
|
|
7
|
-
}
|
|
7
|
+
export type ColumnsProps = DistributiveOmit<BoxProps, "display" | "direction">;
|
|
8
8
|
/**
|
|
9
9
|
* @deprecated Use `HStack` instead.
|
|
10
10
|
*/
|
|
@@ -12,9 +12,9 @@ export declare const Columns: React.ForwardRefExoticComponent<ColumnsProps & Rea
|
|
|
12
12
|
/**
|
|
13
13
|
* @deprecated Use `HStack` instead.
|
|
14
14
|
*/
|
|
15
|
-
export
|
|
15
|
+
export type ColumnProps = DistributiveOmit<BoxProps, "display" | "flexDirection" | "width"> & {
|
|
16
16
|
width?: BoxProps["width"] | "content";
|
|
17
|
-
}
|
|
17
|
+
};
|
|
18
18
|
/**
|
|
19
19
|
* @deprecated Use `HStack` instead.
|
|
20
20
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Columns.d.ts","sourceRoot":"","sources":["../../../src/components/Columns/Columns.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAO,KAAK,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEhD;;GAEG;AACH,MAAM,
|
|
1
|
+
{"version":3,"file":"Columns.d.ts","sourceRoot":"","sources":["../../../src/components/Columns/Columns.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;;GAEG;AACH,MAAM,MAAM,YAAY,GAAG,gBAAgB,CAAC,QAAQ,EAAE,SAAS,GAAG,WAAW,CAAC,CAAC;AAE/E;;GAEG;AACH,eAAO,MAAM,OAAO,qFAWlB,CAAC;AAEH;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG,gBAAgB,CAAC,QAAQ,EAAE,SAAS,GAAG,eAAe,GAAG,OAAO,CAAC,GAAG;IAC5F,KAAK,CAAC,EAAE,QAAQ,CAAC,OAAO,CAAC,GAAG,SAAS,CAAC;CACvC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,MAAM,oFAcjB,CAAC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
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
|
let _seed_design_react_dialog = require("@seed-design/react-dialog");
|
|
7
7
|
let _seed_design_react_primitive = require("@seed-design/react-primitive");
|
|
8
8
|
let _seed_design_css_recipes_extended_action_sheet = require("@seed-design/css/recipes/extended-action-sheet");
|
|
@@ -12,54 +12,54 @@ var { withRootProvider, withContext } = require_createSlotRecipeContext.createSl
|
|
|
12
12
|
var { withContext: withItemContext } = require_createRecipeContext.createRecipeContext(_seed_design_css_recipes_extended_action_sheet_item.extendedActionSheetItem);
|
|
13
13
|
var withStateProps = require_createWithStateProps.createWithStateProps([_seed_design_react_dialog.useDialogContext]);
|
|
14
14
|
/**
|
|
15
|
-
* @deprecated Use `
|
|
15
|
+
* @deprecated Use `SwipeableMenuSheet` instead.
|
|
16
16
|
*/
|
|
17
17
|
var ExtendedActionSheetRoot = withRootProvider(_seed_design_react_dialog.Dialog.Root, { defaultProps: {
|
|
18
18
|
lazyMount: true,
|
|
19
19
|
unmountOnExit: true
|
|
20
20
|
} });
|
|
21
21
|
/**
|
|
22
|
-
* @deprecated Use `
|
|
22
|
+
* @deprecated Use `SwipeableMenuSheet` instead.
|
|
23
23
|
*/
|
|
24
24
|
var ExtendedActionSheetTrigger = _seed_design_react_dialog.Dialog.Trigger;
|
|
25
25
|
/**
|
|
26
|
-
* @deprecated Use `
|
|
26
|
+
* @deprecated Use `SwipeableMenuSheet` instead.
|
|
27
27
|
*/
|
|
28
28
|
var ExtendedActionSheetPositioner = withContext(_seed_design_react_dialog.Dialog.Positioner, "positioner");
|
|
29
29
|
/**
|
|
30
|
-
* @deprecated Use `
|
|
30
|
+
* @deprecated Use `SwipeableMenuSheet` instead.
|
|
31
31
|
*/
|
|
32
32
|
var ExtendedActionSheetBackdrop = withContext(_seed_design_react_dialog.Dialog.Backdrop, "backdrop");
|
|
33
33
|
/**
|
|
34
|
-
* @deprecated Use `
|
|
34
|
+
* @deprecated Use `SwipeableMenuSheet` instead.
|
|
35
35
|
*/
|
|
36
36
|
var ExtendedActionSheetContent = withContext(_seed_design_react_dialog.Dialog.Content, "content");
|
|
37
37
|
/**
|
|
38
|
-
* @deprecated Use `
|
|
38
|
+
* @deprecated Use `SwipeableMenuSheet` instead.
|
|
39
39
|
*/
|
|
40
40
|
var ExtendedActionSheetHeader = withContext(withStateProps(_seed_design_react_primitive.Primitive.div), "header");
|
|
41
41
|
/**
|
|
42
|
-
* @deprecated Use `
|
|
42
|
+
* @deprecated Use `SwipeableMenuSheet` instead.
|
|
43
43
|
*/
|
|
44
44
|
var ExtendedActionSheetTitle = withContext(withStateProps(_seed_design_react_primitive.Primitive.h2), "title");
|
|
45
45
|
/**
|
|
46
|
-
* @deprecated Use `
|
|
46
|
+
* @deprecated Use `SwipeableMenuSheet` instead.
|
|
47
47
|
*/
|
|
48
48
|
var ExtendedActionSheetList = withContext(withStateProps(_seed_design_react_primitive.Primitive.div), "list");
|
|
49
49
|
/**
|
|
50
|
-
* @deprecated Use `
|
|
50
|
+
* @deprecated Use `SwipeableMenuSheet` instead.
|
|
51
51
|
*/
|
|
52
52
|
var ExtendedActionSheetGroup = withContext(withStateProps(_seed_design_react_primitive.Primitive.div), "group");
|
|
53
53
|
/**
|
|
54
|
-
* @deprecated Use `
|
|
54
|
+
* @deprecated Use `SwipeableMenuSheet` instead.
|
|
55
55
|
*/
|
|
56
56
|
var ExtendedActionSheetItem = withItemContext(withStateProps(_seed_design_react_primitive.Primitive.button));
|
|
57
57
|
/**
|
|
58
|
-
* @deprecated Use `
|
|
58
|
+
* @deprecated Use `SwipeableMenuSheet` instead.
|
|
59
59
|
*/
|
|
60
60
|
var ExtendedActionSheetFooter = withContext(withStateProps(_seed_design_react_primitive.Primitive.div), "footer");
|
|
61
61
|
/**
|
|
62
|
-
* @deprecated Use `
|
|
62
|
+
* @deprecated Use `SwipeableMenuSheet` instead.
|
|
63
63
|
*/
|
|
64
64
|
var ExtendedActionSheetCloseButton = withContext(_seed_design_react_dialog.Dialog.CloseButton, "closeButton");
|
|
65
65
|
//#endregion
|