@chicken-ui/react 0.1.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/dist/components/Box/Box.d.mts +4 -0
- package/dist/components/Box/Box.d.ts +4 -0
- package/dist/components/Box/Box.js +74 -0
- package/dist/components/Box/Box.js.map +1 -0
- package/dist/components/Box/Box.mjs +56 -0
- package/dist/components/Box/Box.mjs.map +1 -0
- package/dist/components/Box/index.d.mts +11 -0
- package/dist/components/Box/index.d.ts +11 -0
- package/dist/components/Box/index.js +39 -0
- package/dist/components/Box/index.js.map +1 -0
- package/dist/components/Box/index.mjs +5 -0
- package/dist/components/Box/index.mjs.map +1 -0
- package/dist/components/Breadcrumb/Breadcrumb.d.mts +12 -0
- package/dist/components/Breadcrumb/Breadcrumb.d.ts +12 -0
- package/dist/components/Breadcrumb/Breadcrumb.js +75 -0
- package/dist/components/Breadcrumb/Breadcrumb.js.map +1 -0
- package/dist/components/Breadcrumb/Breadcrumb.mjs +57 -0
- package/dist/components/Breadcrumb/Breadcrumb.mjs.map +1 -0
- package/dist/components/Breadcrumb/BreadcrumbItem.d.mts +16 -0
- package/dist/components/Breadcrumb/BreadcrumbItem.d.ts +16 -0
- package/dist/components/Breadcrumb/BreadcrumbItem.js +82 -0
- package/dist/components/Breadcrumb/BreadcrumbItem.js.map +1 -0
- package/dist/components/Breadcrumb/BreadcrumbItem.mjs +64 -0
- package/dist/components/Breadcrumb/BreadcrumbItem.mjs.map +1 -0
- package/dist/components/Breadcrumb/BreadcrumbPresets.d.mts +16 -0
- package/dist/components/Breadcrumb/BreadcrumbPresets.d.ts +16 -0
- package/dist/components/Breadcrumb/BreadcrumbPresets.js +74 -0
- package/dist/components/Breadcrumb/BreadcrumbPresets.js.map +1 -0
- package/dist/components/Breadcrumb/BreadcrumbPresets.mjs +46 -0
- package/dist/components/Breadcrumb/BreadcrumbPresets.mjs.map +1 -0
- package/dist/components/Breadcrumb/index.d.mts +6 -0
- package/dist/components/Breadcrumb/index.d.ts +6 -0
- package/dist/components/Breadcrumb/index.js +45 -0
- package/dist/components/Breadcrumb/index.js.map +1 -0
- package/dist/components/Breadcrumb/index.mjs +9 -0
- package/dist/components/Breadcrumb/index.mjs.map +1 -0
- package/dist/components/Button/Button.d.mts +15 -0
- package/dist/components/Button/Button.d.ts +15 -0
- package/dist/components/Button/Button.js +102 -0
- package/dist/components/Button/Button.js.map +1 -0
- package/dist/components/Button/Button.mjs +84 -0
- package/dist/components/Button/Button.mjs.map +1 -0
- package/dist/components/Button/index.d.mts +4 -0
- package/dist/components/Button/index.d.ts +4 -0
- package/dist/components/Button/index.js +39 -0
- package/dist/components/Button/index.js.map +1 -0
- package/dist/components/Button/index.mjs +5 -0
- package/dist/components/Button/index.mjs.map +1 -0
- package/dist/components/Card/Card.d.mts +13 -0
- package/dist/components/Card/Card.d.ts +13 -0
- package/dist/components/Card/Card.js +90 -0
- package/dist/components/Card/Card.js.map +1 -0
- package/dist/components/Card/Card.mjs +72 -0
- package/dist/components/Card/Card.mjs.map +1 -0
- package/dist/components/Card/CardAction.d.mts +9 -0
- package/dist/components/Card/CardAction.d.ts +9 -0
- package/dist/components/Card/CardAction.js +69 -0
- package/dist/components/Card/CardAction.js.map +1 -0
- package/dist/components/Card/CardAction.mjs +51 -0
- package/dist/components/Card/CardAction.mjs.map +1 -0
- package/dist/components/Card/CardContent.d.mts +9 -0
- package/dist/components/Card/CardContent.d.ts +9 -0
- package/dist/components/Card/CardContent.js +69 -0
- package/dist/components/Card/CardContent.js.map +1 -0
- package/dist/components/Card/CardContent.mjs +51 -0
- package/dist/components/Card/CardContent.mjs.map +1 -0
- package/dist/components/Card/CardHeader.d.mts +9 -0
- package/dist/components/Card/CardHeader.d.ts +9 -0
- package/dist/components/Card/CardHeader.js +69 -0
- package/dist/components/Card/CardHeader.js.map +1 -0
- package/dist/components/Card/CardHeader.mjs +51 -0
- package/dist/components/Card/CardHeader.mjs.map +1 -0
- package/dist/components/Card/CardIcon.d.mts +11 -0
- package/dist/components/Card/CardIcon.d.ts +11 -0
- package/dist/components/Card/CardIcon.js +74 -0
- package/dist/components/Card/CardIcon.js.map +1 -0
- package/dist/components/Card/CardIcon.mjs +56 -0
- package/dist/components/Card/CardIcon.mjs.map +1 -0
- package/dist/components/Card/CardText.d.mts +9 -0
- package/dist/components/Card/CardText.d.ts +9 -0
- package/dist/components/Card/CardText.js +69 -0
- package/dist/components/Card/CardText.js.map +1 -0
- package/dist/components/Card/CardText.mjs +51 -0
- package/dist/components/Card/CardText.mjs.map +1 -0
- package/dist/components/Card/CardTitle.d.mts +15 -0
- package/dist/components/Card/CardTitle.d.ts +15 -0
- package/dist/components/Card/CardTitle.js +72 -0
- package/dist/components/Card/CardTitle.js.map +1 -0
- package/dist/components/Card/CardTitle.mjs +54 -0
- package/dist/components/Card/CardTitle.mjs.map +1 -0
- package/dist/components/Card/index.d.mts +11 -0
- package/dist/components/Card/index.d.ts +11 -0
- package/dist/components/Card/index.js +57 -0
- package/dist/components/Card/index.js.map +1 -0
- package/dist/components/Card/index.mjs +17 -0
- package/dist/components/Card/index.mjs.map +1 -0
- package/dist/components/Container/Container.d.mts +12 -0
- package/dist/components/Container/Container.d.ts +12 -0
- package/dist/components/Container/Container.js +94 -0
- package/dist/components/Container/Container.js.map +1 -0
- package/dist/components/Container/Container.mjs +76 -0
- package/dist/components/Container/Container.mjs.map +1 -0
- package/dist/components/Container/index.d.mts +4 -0
- package/dist/components/Container/index.d.ts +4 -0
- package/dist/components/Container/index.js +39 -0
- package/dist/components/Container/index.js.map +1 -0
- package/dist/components/Container/index.mjs +5 -0
- package/dist/components/Container/index.mjs.map +1 -0
- package/dist/components/Grid/Grid.d.mts +14 -0
- package/dist/components/Grid/Grid.d.ts +14 -0
- package/dist/components/Grid/Grid.js +110 -0
- package/dist/components/Grid/Grid.js.map +1 -0
- package/dist/components/Grid/Grid.mjs +96 -0
- package/dist/components/Grid/Grid.mjs.map +1 -0
- package/dist/components/Grid/index.d.mts +4 -0
- package/dist/components/Grid/index.d.ts +4 -0
- package/dist/components/Grid/index.js +39 -0
- package/dist/components/Grid/index.js.map +1 -0
- package/dist/components/Grid/index.mjs +5 -0
- package/dist/components/Grid/index.mjs.map +1 -0
- package/dist/components/HStack/HStack.d.mts +14 -0
- package/dist/components/HStack/HStack.d.ts +14 -0
- package/dist/components/HStack/HStack.js +111 -0
- package/dist/components/HStack/HStack.js.map +1 -0
- package/dist/components/HStack/HStack.mjs +97 -0
- package/dist/components/HStack/HStack.mjs.map +1 -0
- package/dist/components/HStack/index.d.mts +4 -0
- package/dist/components/HStack/index.d.ts +4 -0
- package/dist/components/HStack/index.js +39 -0
- package/dist/components/HStack/index.js.map +1 -0
- package/dist/components/HStack/index.mjs +5 -0
- package/dist/components/HStack/index.mjs.map +1 -0
- package/dist/components/NavBar/NavBar.context.d.mts +8 -0
- package/dist/components/NavBar/NavBar.context.d.ts +8 -0
- package/dist/components/NavBar/NavBar.context.js +44 -0
- package/dist/components/NavBar/NavBar.context.js.map +1 -0
- package/dist/components/NavBar/NavBar.context.mjs +17 -0
- package/dist/components/NavBar/NavBar.context.mjs.map +1 -0
- package/dist/components/NavBar/NavBar.d.mts +11 -0
- package/dist/components/NavBar/NavBar.d.ts +11 -0
- package/dist/components/NavBar/NavBar.js +81 -0
- package/dist/components/NavBar/NavBar.js.map +1 -0
- package/dist/components/NavBar/NavBar.mjs +63 -0
- package/dist/components/NavBar/NavBar.mjs.map +1 -0
- package/dist/components/NavBar/NavBarBrand.d.mts +9 -0
- package/dist/components/NavBar/NavBarBrand.d.ts +9 -0
- package/dist/components/NavBar/NavBarBrand.js +81 -0
- package/dist/components/NavBar/NavBarBrand.js.map +1 -0
- package/dist/components/NavBar/NavBarBrand.mjs +63 -0
- package/dist/components/NavBar/NavBarBrand.mjs.map +1 -0
- package/dist/components/NavBar/NavBarDropdown.d.mts +13 -0
- package/dist/components/NavBar/NavBarDropdown.d.ts +13 -0
- package/dist/components/NavBar/NavBarDropdown.js +102 -0
- package/dist/components/NavBar/NavBarDropdown.js.map +1 -0
- package/dist/components/NavBar/NavBarDropdown.mjs +87 -0
- package/dist/components/NavBar/NavBarDropdown.mjs.map +1 -0
- package/dist/components/NavBar/NavBarItem.d.mts +16 -0
- package/dist/components/NavBar/NavBarItem.d.ts +16 -0
- package/dist/components/NavBar/NavBarItem.js +93 -0
- package/dist/components/NavBar/NavBarItem.js.map +1 -0
- package/dist/components/NavBar/NavBarItem.mjs +75 -0
- package/dist/components/NavBar/NavBarItem.mjs.map +1 -0
- package/dist/components/NavBar/NavBarList.d.mts +11 -0
- package/dist/components/NavBar/NavBarList.d.ts +11 -0
- package/dist/components/NavBar/NavBarList.js +84 -0
- package/dist/components/NavBar/NavBarList.js.map +1 -0
- package/dist/components/NavBar/NavBarList.mjs +70 -0
- package/dist/components/NavBar/NavBarList.mjs.map +1 -0
- package/dist/components/NavBar/NavBarPreset.d.mts +26 -0
- package/dist/components/NavBar/NavBarPreset.d.ts +26 -0
- package/dist/components/NavBar/NavBarPreset.js +113 -0
- package/dist/components/NavBar/NavBarPreset.js.map +1 -0
- package/dist/components/NavBar/NavBarPreset.mjs +85 -0
- package/dist/components/NavBar/NavBarPreset.mjs.map +1 -0
- package/dist/components/NavBar/NavBarToggle.d.mts +13 -0
- package/dist/components/NavBar/NavBarToggle.d.ts +13 -0
- package/dist/components/NavBar/NavBarToggle.js +62 -0
- package/dist/components/NavBar/NavBarToggle.js.map +1 -0
- package/dist/components/NavBar/NavBarToggle.mjs +42 -0
- package/dist/components/NavBar/NavBarToggle.mjs.map +1 -0
- package/dist/components/NavBar/index.d.mts +10 -0
- package/dist/components/NavBar/index.d.ts +10 -0
- package/dist/components/NavBar/index.js +57 -0
- package/dist/components/NavBar/index.js.map +1 -0
- package/dist/components/NavBar/index.mjs +17 -0
- package/dist/components/NavBar/index.mjs.map +1 -0
- package/dist/components/Pill/Pill.d.mts +19 -0
- package/dist/components/Pill/Pill.d.ts +19 -0
- package/dist/components/Pill/Pill.js +117 -0
- package/dist/components/Pill/Pill.js.map +1 -0
- package/dist/components/Pill/Pill.mjs +99 -0
- package/dist/components/Pill/Pill.mjs.map +1 -0
- package/dist/components/Pill/index.d.mts +4 -0
- package/dist/components/Pill/index.d.ts +4 -0
- package/dist/components/Pill/index.js +39 -0
- package/dist/components/Pill/index.js.map +1 -0
- package/dist/components/Pill/index.mjs +5 -0
- package/dist/components/Pill/index.mjs.map +1 -0
- package/dist/components/SegmentedControl/SegmentedControl.d.mts +24 -0
- package/dist/components/SegmentedControl/SegmentedControl.d.ts +24 -0
- package/dist/components/SegmentedControl/SegmentedControl.js +118 -0
- package/dist/components/SegmentedControl/SegmentedControl.js.map +1 -0
- package/dist/components/SegmentedControl/SegmentedControl.mjs +106 -0
- package/dist/components/SegmentedControl/SegmentedControl.mjs.map +1 -0
- package/dist/components/SegmentedControl/SegmentedControlContext.d.mts +12 -0
- package/dist/components/SegmentedControl/SegmentedControlContext.d.ts +12 -0
- package/dist/components/SegmentedControl/SegmentedControlContext.js +36 -0
- package/dist/components/SegmentedControl/SegmentedControlContext.js.map +1 -0
- package/dist/components/SegmentedControl/SegmentedControlContext.mjs +11 -0
- package/dist/components/SegmentedControl/SegmentedControlContext.mjs.map +1 -0
- package/dist/components/SegmentedControl/SegmentedControlItem.d.mts +14 -0
- package/dist/components/SegmentedControl/SegmentedControlItem.d.ts +14 -0
- package/dist/components/SegmentedControl/SegmentedControlItem.js +111 -0
- package/dist/components/SegmentedControl/SegmentedControlItem.js.map +1 -0
- package/dist/components/SegmentedControl/SegmentedControlItem.mjs +93 -0
- package/dist/components/SegmentedControl/SegmentedControlItem.mjs.map +1 -0
- package/dist/components/SegmentedControl/index.d.mts +5 -0
- package/dist/components/SegmentedControl/index.d.ts +5 -0
- package/dist/components/SegmentedControl/index.js +42 -0
- package/dist/components/SegmentedControl/index.js.map +1 -0
- package/dist/components/SegmentedControl/index.mjs +7 -0
- package/dist/components/SegmentedControl/index.mjs.map +1 -0
- package/dist/components/TabBar/TabBar.d.mts +11 -0
- package/dist/components/TabBar/TabBar.d.ts +11 -0
- package/dist/components/TabBar/TabBar.js +85 -0
- package/dist/components/TabBar/TabBar.js.map +1 -0
- package/dist/components/TabBar/TabBar.mjs +67 -0
- package/dist/components/TabBar/TabBar.mjs.map +1 -0
- package/dist/components/TabBar/TabBarItem.d.mts +15 -0
- package/dist/components/TabBar/TabBarItem.d.ts +15 -0
- package/dist/components/TabBar/TabBarItem.js +89 -0
- package/dist/components/TabBar/TabBarItem.js.map +1 -0
- package/dist/components/TabBar/TabBarItem.mjs +71 -0
- package/dist/components/TabBar/TabBarItem.mjs.map +1 -0
- package/dist/components/TabBar/TabBarItemIcon.d.mts +9 -0
- package/dist/components/TabBar/TabBarItemIcon.d.ts +9 -0
- package/dist/components/TabBar/TabBarItemIcon.js +80 -0
- package/dist/components/TabBar/TabBarItemIcon.js.map +1 -0
- package/dist/components/TabBar/TabBarItemIcon.mjs +62 -0
- package/dist/components/TabBar/TabBarItemIcon.mjs.map +1 -0
- package/dist/components/TabBar/TabBarItemLabel.d.mts +9 -0
- package/dist/components/TabBar/TabBarItemLabel.d.ts +9 -0
- package/dist/components/TabBar/TabBarItemLabel.js +80 -0
- package/dist/components/TabBar/TabBarItemLabel.js.map +1 -0
- package/dist/components/TabBar/TabBarItemLabel.mjs +62 -0
- package/dist/components/TabBar/TabBarItemLabel.mjs.map +1 -0
- package/dist/components/TabBar/TabBarPreset.d.mts +21 -0
- package/dist/components/TabBar/TabBarPreset.d.ts +21 -0
- package/dist/components/TabBar/TabBarPreset.js +80 -0
- package/dist/components/TabBar/TabBarPreset.js.map +1 -0
- package/dist/components/TabBar/TabBarPreset.mjs +52 -0
- package/dist/components/TabBar/TabBarPreset.mjs.map +1 -0
- package/dist/components/TabBar/index.d.mts +8 -0
- package/dist/components/TabBar/index.d.ts +8 -0
- package/dist/components/TabBar/index.js +51 -0
- package/dist/components/TabBar/index.js.map +1 -0
- package/dist/components/TabBar/index.mjs +13 -0
- package/dist/components/TabBar/index.mjs.map +1 -0
- package/dist/components/VStack/VStack.d.mts +12 -0
- package/dist/components/VStack/VStack.d.ts +12 -0
- package/dist/components/VStack/VStack.js +95 -0
- package/dist/components/VStack/VStack.js.map +1 -0
- package/dist/components/VStack/VStack.mjs +81 -0
- package/dist/components/VStack/VStack.mjs.map +1 -0
- package/dist/components/VStack/index.d.mts +4 -0
- package/dist/components/VStack/index.d.ts +4 -0
- package/dist/components/VStack/index.js +39 -0
- package/dist/components/VStack/index.js.map +1 -0
- package/dist/components/VStack/index.mjs +5 -0
- package/dist/components/VStack/index.mjs.map +1 -0
- package/dist/components/index.d.mts +34 -0
- package/dist/components/index.d.ts +34 -0
- package/dist/components/index.js +45 -0
- package/dist/components/index.js.map +1 -0
- package/dist/components/index.mjs +13 -0
- package/dist/components/index.mjs.map +1 -0
- package/dist/core/Base/Base.d.mts +28 -0
- package/dist/core/Base/Base.d.ts +28 -0
- package/dist/core/Base/Base.js +127 -0
- package/dist/core/Base/Base.js.map +1 -0
- package/dist/core/Base/Base.mjs +112 -0
- package/dist/core/Base/Base.mjs.map +1 -0
- package/dist/core/Base/index.d.mts +3 -0
- package/dist/core/Base/index.d.ts +3 -0
- package/dist/core/Base/index.js +39 -0
- package/dist/core/Base/index.js.map +1 -0
- package/dist/core/Base/index.mjs +5 -0
- package/dist/core/Base/index.mjs.map +1 -0
- package/dist/core/Breakpoint/BreakpointType.d.mts +12 -0
- package/dist/core/Breakpoint/BreakpointType.d.ts +12 -0
- package/dist/core/Breakpoint/BreakpointType.js +17 -0
- package/dist/core/Breakpoint/BreakpointType.js.map +1 -0
- package/dist/core/Breakpoint/BreakpointType.mjs +1 -0
- package/dist/core/Breakpoint/BreakpointType.mjs.map +1 -0
- package/dist/core/Breakpoint/index.d.mts +2 -0
- package/dist/core/Breakpoint/index.d.ts +2 -0
- package/dist/core/Breakpoint/index.js +23 -0
- package/dist/core/Breakpoint/index.js.map +1 -0
- package/dist/core/Breakpoint/index.mjs +2 -0
- package/dist/core/Breakpoint/index.mjs.map +1 -0
- package/dist/core/Breakpoint/resolveResponsiveVars.d.mts +8 -0
- package/dist/core/Breakpoint/resolveResponsiveVars.d.ts +8 -0
- package/dist/core/Breakpoint/resolveResponsiveVars.js +81 -0
- package/dist/core/Breakpoint/resolveResponsiveVars.js.map +1 -0
- package/dist/core/Breakpoint/resolveResponsiveVars.mjs +57 -0
- package/dist/core/Breakpoint/resolveResponsiveVars.mjs.map +1 -0
- package/dist/core/Show/ShowAbove.d.mts +13 -0
- package/dist/core/Show/ShowAbove.d.ts +13 -0
- package/dist/core/Show/ShowAbove.js +33 -0
- package/dist/core/Show/ShowAbove.js.map +1 -0
- package/dist/core/Show/ShowAbove.mjs +13 -0
- package/dist/core/Show/ShowAbove.mjs.map +1 -0
- package/dist/core/Show/ShowBelow.d.mts +13 -0
- package/dist/core/Show/ShowBelow.d.ts +13 -0
- package/dist/core/Show/ShowBelow.js +33 -0
- package/dist/core/Show/ShowBelow.js.map +1 -0
- package/dist/core/Show/ShowBelow.mjs +13 -0
- package/dist/core/Show/ShowBelow.mjs.map +1 -0
- package/dist/core/Show/index.d.mts +4 -0
- package/dist/core/Show/index.d.ts +4 -0
- package/dist/core/Show/index.js +42 -0
- package/dist/core/Show/index.js.map +1 -0
- package/dist/core/Show/index.mjs +7 -0
- package/dist/core/Show/index.mjs.map +1 -0
- package/dist/core/Show/visibility.d.mts +9 -0
- package/dist/core/Show/visibility.d.ts +9 -0
- package/dist/core/Show/visibility.js +86 -0
- package/dist/core/Show/visibility.js.map +1 -0
- package/dist/core/Show/visibility.mjs +67 -0
- package/dist/core/Show/visibility.mjs.map +1 -0
- package/dist/core/SrOnly/SrOnly.d.mts +25 -0
- package/dist/core/SrOnly/SrOnly.d.ts +25 -0
- package/dist/core/SrOnly/SrOnly.js +91 -0
- package/dist/core/SrOnly/SrOnly.js.map +1 -0
- package/dist/core/SrOnly/SrOnly.mjs +71 -0
- package/dist/core/SrOnly/SrOnly.mjs.map +1 -0
- package/dist/core/SrOnly/index.d.mts +3 -0
- package/dist/core/SrOnly/index.d.ts +3 -0
- package/dist/core/SrOnly/index.js +33 -0
- package/dist/core/SrOnly/index.js.map +1 -0
- package/dist/core/SrOnly/index.mjs +7 -0
- package/dist/core/SrOnly/index.mjs.map +1 -0
- package/dist/core/Typography/Heading.d.mts +13 -0
- package/dist/core/Typography/Heading.d.ts +13 -0
- package/dist/core/Typography/Heading.js +79 -0
- package/dist/core/Typography/Heading.js.map +1 -0
- package/dist/core/Typography/Heading.mjs +61 -0
- package/dist/core/Typography/Heading.mjs.map +1 -0
- package/dist/core/Typography/Text.d.mts +14 -0
- package/dist/core/Typography/Text.d.ts +14 -0
- package/dist/core/Typography/Text.js +73 -0
- package/dist/core/Typography/Text.js.map +1 -0
- package/dist/core/Typography/Text.mjs +55 -0
- package/dist/core/Typography/Text.mjs.map +1 -0
- package/dist/core/Typography/index.d.mts +5 -0
- package/dist/core/Typography/index.d.ts +5 -0
- package/dist/core/Typography/index.js +42 -0
- package/dist/core/Typography/index.js.map +1 -0
- package/dist/core/Typography/index.mjs +7 -0
- package/dist/core/Typography/index.mjs.map +1 -0
- package/dist/core/index.d.mts +10 -0
- package/dist/core/index.d.ts +10 -0
- package/dist/core/index.js +31 -0
- package/dist/core/index.js.map +1 -0
- package/dist/core/index.mjs +6 -0
- package/dist/core/index.mjs.map +1 -0
- package/dist/index.d.mts +43 -0
- package/dist/index.d.ts +43 -0
- package/dist/index.js +29 -0
- package/dist/index.js.map +1 -0
- package/dist/index.mjs +5 -0
- package/dist/index.mjs.map +1 -0
- package/dist/styles.css +2680 -0
- package/dist/types/LightDark.types.d.mts +6 -0
- package/dist/types/LightDark.types.d.ts +6 -0
- package/dist/types/LightDark.types.js +17 -0
- package/dist/types/LightDark.types.js.map +1 -0
- package/dist/types/LightDark.types.mjs +1 -0
- package/dist/types/LightDark.types.mjs.map +1 -0
- package/dist/types/index.d.mts +1 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/index.js +17 -0
- package/dist/types/index.js.map +1 -0
- package/dist/types/index.mjs +1 -0
- package/dist/types/index.mjs.map +1 -0
- package/dist/utils/PropToValue.d.mts +3 -0
- package/dist/utils/PropToValue.d.ts +3 -0
- package/dist/utils/PropToValue.js +36 -0
- package/dist/utils/PropToValue.js.map +1 -0
- package/dist/utils/PropToValue.mjs +12 -0
- package/dist/utils/PropToValue.mjs.map +1 -0
- package/dist/utils/index.d.mts +1 -0
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/index.js +23 -0
- package/dist/utils/index.js.map +1 -0
- package/dist/utils/index.mjs +2 -0
- package/dist/utils/index.mjs.map +1 -0
- package/package.json +52 -0
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __defProps = Object.defineProperties;
|
|
3
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
4
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
7
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
8
|
+
var __spreadValues = (a, b) => {
|
|
9
|
+
for (var prop in b || (b = {}))
|
|
10
|
+
if (__hasOwnProp.call(b, prop))
|
|
11
|
+
__defNormalProp(a, prop, b[prop]);
|
|
12
|
+
if (__getOwnPropSymbols)
|
|
13
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
14
|
+
if (__propIsEnum.call(b, prop))
|
|
15
|
+
__defNormalProp(a, prop, b[prop]);
|
|
16
|
+
}
|
|
17
|
+
return a;
|
|
18
|
+
};
|
|
19
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
21
|
+
import TabBar from "../TabBar/TabBar";
|
|
22
|
+
import TabBarItem from "../TabBar/TabBarItem";
|
|
23
|
+
import TabBarItemIcon from "../TabBar/TabBarItemIcon";
|
|
24
|
+
import TabBarItemLabel from "../TabBar/TabBarItemLabel";
|
|
25
|
+
function TabBarPreset({
|
|
26
|
+
variant = "default",
|
|
27
|
+
items,
|
|
28
|
+
linkAs = "button",
|
|
29
|
+
linkHrefPropName = "href",
|
|
30
|
+
actualPath
|
|
31
|
+
}) {
|
|
32
|
+
return /* @__PURE__ */ jsx(TabBar, { variant, children: items.map((item) => {
|
|
33
|
+
const active = item.isActive ? item.isActive(item.href, actualPath) : actualPath.startsWith(item.href);
|
|
34
|
+
return /* @__PURE__ */ jsxs(
|
|
35
|
+
TabBarItem,
|
|
36
|
+
__spreadProps(__spreadValues({
|
|
37
|
+
as: linkAs
|
|
38
|
+
}, { [linkHrefPropName]: item.href }), {
|
|
39
|
+
isCurrent: active,
|
|
40
|
+
children: [
|
|
41
|
+
/* @__PURE__ */ jsx(TabBarItemIcon, { children: active && item.activeIcon ? item.activeIcon : item.icon }),
|
|
42
|
+
/* @__PURE__ */ jsx(TabBarItemLabel, { children: item.label })
|
|
43
|
+
]
|
|
44
|
+
}),
|
|
45
|
+
item.label
|
|
46
|
+
);
|
|
47
|
+
}) });
|
|
48
|
+
}
|
|
49
|
+
export {
|
|
50
|
+
TabBarPreset as default
|
|
51
|
+
};
|
|
52
|
+
//# sourceMappingURL=TabBarPreset.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../lib/components/TabBar/TabBarPreset.tsx"],"sourcesContent":["import { ElementType, ReactNode } from \"react\";\nimport TabBar from \"../TabBar/TabBar\";\nimport TabBarItem from \"../TabBar/TabBarItem\";\nimport TabBarItemIcon from \"../TabBar/TabBarItemIcon\";\nimport TabBarItemLabel from \"../TabBar/TabBarItemLabel\";\nimport { BaseProps } from \"../../core/Base\";\n\nexport type TabBarPresetProps<T extends ElementType = \"div\"> = BaseProps<T> & {\n variant?: \"default\" | \"fill\" | \"pill\" | \"bar\" | \"shortbar\";\n items: Array<{\n icon: ReactNode;\n activeIcon?: ReactNode;\n label: string;\n href: string;\n isActive?: (href: string, actualPath: string) => boolean;\n }>;\n linkAs?: ElementType;\n linkHrefPropName?: string;\n actualPath: string;\n};\n\nexport default function TabBarPreset<T extends ElementType = \"div\">({\n variant = \"default\",\n items,\n linkAs = \"button\",\n linkHrefPropName = \"href\",\n actualPath,\n}: TabBarPresetProps<T>) {\n return (\n <TabBar variant={variant}>\n {items.map((item) => {\n const active = item.isActive\n ? item.isActive(item.href, actualPath)\n : actualPath.startsWith(item.href);\n return (\n <TabBarItem\n key={item.label}\n as={linkAs}\n {...{ [linkHrefPropName]: item.href }}\n isCurrent={active}\n >\n <TabBarItemIcon>\n {active && item.activeIcon ? item.activeIcon : item.icon}\n </TabBarItemIcon>\n <TabBarItemLabel>{item.label}</TabBarItemLabel>\n </TabBarItem>\n );\n })}\n </TabBar>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;AAmCU,SAME,KANF;AAlCV,OAAO,YAAY;AACnB,OAAO,gBAAgB;AACvB,OAAO,oBAAoB;AAC3B,OAAO,qBAAqB;AAiBb,SAAR,aAA6D;AAAA,EAClE,UAAU;AAAA,EACV;AAAA,EACA,SAAS;AAAA,EACT,mBAAmB;AAAA,EACnB;AACF,GAAyB;AACvB,SACE,oBAAC,UAAO,SACL,gBAAM,IAAI,CAAC,SAAS;AACnB,UAAM,SAAS,KAAK,WAChB,KAAK,SAAS,KAAK,MAAM,UAAU,IACnC,WAAW,WAAW,KAAK,IAAI;AACnC,WACE;AAAA,MAAC;AAAA;AAAA,QAEC,IAAI;AAAA,SACA,EAAE,CAAC,gBAAgB,GAAG,KAAK,KAAK,IAHrC;AAAA,QAIC,WAAW;AAAA,QAEX;AAAA,8BAAC,kBACE,oBAAU,KAAK,aAAa,KAAK,aAAa,KAAK,MACtD;AAAA,UACA,oBAAC,mBAAiB,eAAK,OAAM;AAAA;AAAA;AAAA,MARxB,KAAK;AAAA,IASZ;AAAA,EAEJ,CAAC,GACH;AAEJ;","names":[]}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export { default as TabBar, TabBarProps } from './TabBar.mjs';
|
|
2
|
+
export { default as TabBarItem, TabBarItemProps } from './TabBarItem.mjs';
|
|
3
|
+
export { default as TabBarItemIcon, TabBarItemIconProps } from './TabBarItemIcon.mjs';
|
|
4
|
+
export { default as TabBarItemLabel, TabBarItemLabelProps } from './TabBarItemLabel.mjs';
|
|
5
|
+
export { default as TabBarPreset, TabBarPresetProps } from './TabBarPreset.mjs';
|
|
6
|
+
import 'react';
|
|
7
|
+
import '../../core/Base/Base.mjs';
|
|
8
|
+
import '../../core/Breakpoint/BreakpointType.mjs';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export { default as TabBar, TabBarProps } from './TabBar.js';
|
|
2
|
+
export { default as TabBarItem, TabBarItemProps } from './TabBarItem.js';
|
|
3
|
+
export { default as TabBarItemIcon, TabBarItemIconProps } from './TabBarItemIcon.js';
|
|
4
|
+
export { default as TabBarItemLabel, TabBarItemLabelProps } from './TabBarItemLabel.js';
|
|
5
|
+
export { default as TabBarPreset, TabBarPresetProps } from './TabBarPreset.js';
|
|
6
|
+
import 'react';
|
|
7
|
+
import '../../core/Base/Base.js';
|
|
8
|
+
import '../../core/Breakpoint/BreakpointType.js';
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
for (var name in all)
|
|
10
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
+
};
|
|
12
|
+
var __copyProps = (to, from, except, desc) => {
|
|
13
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
+
for (let key of __getOwnPropNames(from))
|
|
15
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
20
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
+
mod
|
|
27
|
+
));
|
|
28
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
+
var TabBar_exports = {};
|
|
30
|
+
__export(TabBar_exports, {
|
|
31
|
+
TabBar: () => import_TabBar.default,
|
|
32
|
+
TabBarItem: () => import_TabBarItem.default,
|
|
33
|
+
TabBarItemIcon: () => import_TabBarItemIcon.default,
|
|
34
|
+
TabBarItemLabel: () => import_TabBarItemLabel.default,
|
|
35
|
+
TabBarPreset: () => import_TabBarPreset.default
|
|
36
|
+
});
|
|
37
|
+
module.exports = __toCommonJS(TabBar_exports);
|
|
38
|
+
var import_TabBar = __toESM(require("./TabBar"));
|
|
39
|
+
var import_TabBarItem = __toESM(require("./TabBarItem"));
|
|
40
|
+
var import_TabBarItemIcon = __toESM(require("./TabBarItemIcon"));
|
|
41
|
+
var import_TabBarItemLabel = __toESM(require("./TabBarItemLabel"));
|
|
42
|
+
var import_TabBarPreset = __toESM(require("./TabBarPreset"));
|
|
43
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
44
|
+
0 && (module.exports = {
|
|
45
|
+
TabBar,
|
|
46
|
+
TabBarItem,
|
|
47
|
+
TabBarItemIcon,
|
|
48
|
+
TabBarItemLabel,
|
|
49
|
+
TabBarPreset
|
|
50
|
+
});
|
|
51
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../lib/components/TabBar/index.ts"],"sourcesContent":["export { default as TabBar } from \"./TabBar\";\nexport type { TabBarProps } from \"./TabBar\";\nexport { default as TabBarItem } from \"./TabBarItem\";\nexport type { TabBarItemProps } from \"./TabBarItem\";\nexport { default as TabBarItemIcon } from \"./TabBarItemIcon\";\nexport type { TabBarItemIconProps } from \"./TabBarItemIcon\";\nexport { default as TabBarItemLabel } from \"./TabBarItemLabel\";\nexport type { TabBarItemLabelProps } from \"./TabBarItemLabel\";\nexport { default as TabBarPreset } from \"./TabBarPreset\";\nexport type { TabBarPresetProps } from \"./TabBarPreset\";\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,oBAAkC;AAElC,wBAAsC;AAEtC,4BAA0C;AAE1C,6BAA2C;AAE3C,0BAAwC;","names":[]}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { default as default2 } from "./TabBar";
|
|
2
|
+
import { default as default3 } from "./TabBarItem";
|
|
3
|
+
import { default as default4 } from "./TabBarItemIcon";
|
|
4
|
+
import { default as default5 } from "./TabBarItemLabel";
|
|
5
|
+
import { default as default6 } from "./TabBarPreset";
|
|
6
|
+
export {
|
|
7
|
+
default2 as TabBar,
|
|
8
|
+
default3 as TabBarItem,
|
|
9
|
+
default4 as TabBarItemIcon,
|
|
10
|
+
default5 as TabBarItemLabel,
|
|
11
|
+
default6 as TabBarPreset
|
|
12
|
+
};
|
|
13
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../lib/components/TabBar/index.ts"],"sourcesContent":["export { default as TabBar } from \"./TabBar\";\nexport type { TabBarProps } from \"./TabBar\";\nexport { default as TabBarItem } from \"./TabBarItem\";\nexport type { TabBarItemProps } from \"./TabBarItem\";\nexport { default as TabBarItemIcon } from \"./TabBarItemIcon\";\nexport type { TabBarItemIconProps } from \"./TabBarItemIcon\";\nexport { default as TabBarItemLabel } from \"./TabBarItemLabel\";\nexport type { TabBarItemLabelProps } from \"./TabBarItemLabel\";\nexport { default as TabBarPreset } from \"./TabBarPreset\";\nexport type { TabBarPresetProps } from \"./TabBarPreset\";\n"],"mappings":"AAAA,SAAoB,WAAXA,gBAAyB;AAElC,SAAoB,WAAXA,gBAA6B;AAEtC,SAAoB,WAAXA,gBAAiC;AAE1C,SAAoB,WAAXA,gBAAkC;AAE3C,SAAoB,WAAXA,gBAA+B;","names":["default"]}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
import { ElementType } from 'react';
|
|
3
|
+
import { BaseProps } from '../../core/Base/Base.mjs';
|
|
4
|
+
import { BreakpointType } from '../../core/Breakpoint/BreakpointType.mjs';
|
|
5
|
+
|
|
6
|
+
type VStackProps<T extends ElementType = "div"> = BaseProps<T> & {
|
|
7
|
+
gap?: BreakpointType<number | string>;
|
|
8
|
+
align?: BreakpointType<"start" | "center" | "end" | "stretch">;
|
|
9
|
+
};
|
|
10
|
+
declare function VStack<T extends ElementType = "div">({ gap, align, children, className, style, ...props }: VStackProps<T>): react.JSX.Element;
|
|
11
|
+
|
|
12
|
+
export { type VStackProps, VStack as default };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
import { ElementType } from 'react';
|
|
3
|
+
import { BaseProps } from '../../core/Base/Base.js';
|
|
4
|
+
import { BreakpointType } from '../../core/Breakpoint/BreakpointType.js';
|
|
5
|
+
|
|
6
|
+
type VStackProps<T extends ElementType = "div"> = BaseProps<T> & {
|
|
7
|
+
gap?: BreakpointType<number | string>;
|
|
8
|
+
align?: BreakpointType<"start" | "center" | "end" | "stretch">;
|
|
9
|
+
};
|
|
10
|
+
declare function VStack<T extends ElementType = "div">({ gap, align, children, className, style, ...props }: VStackProps<T>): react.JSX.Element;
|
|
11
|
+
|
|
12
|
+
export { type VStackProps, VStack as default };
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __defProps = Object.defineProperties;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
6
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
7
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
8
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
9
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
10
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
11
|
+
var __spreadValues = (a, b) => {
|
|
12
|
+
for (var prop in b || (b = {}))
|
|
13
|
+
if (__hasOwnProp.call(b, prop))
|
|
14
|
+
__defNormalProp(a, prop, b[prop]);
|
|
15
|
+
if (__getOwnPropSymbols)
|
|
16
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
17
|
+
if (__propIsEnum.call(b, prop))
|
|
18
|
+
__defNormalProp(a, prop, b[prop]);
|
|
19
|
+
}
|
|
20
|
+
return a;
|
|
21
|
+
};
|
|
22
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
23
|
+
var __objRest = (source, exclude) => {
|
|
24
|
+
var target = {};
|
|
25
|
+
for (var prop in source)
|
|
26
|
+
if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
27
|
+
target[prop] = source[prop];
|
|
28
|
+
if (source != null && __getOwnPropSymbols)
|
|
29
|
+
for (var prop of __getOwnPropSymbols(source)) {
|
|
30
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
|
|
31
|
+
target[prop] = source[prop];
|
|
32
|
+
}
|
|
33
|
+
return target;
|
|
34
|
+
};
|
|
35
|
+
var __export = (target, all) => {
|
|
36
|
+
for (var name in all)
|
|
37
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
38
|
+
};
|
|
39
|
+
var __copyProps = (to, from, except, desc) => {
|
|
40
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
41
|
+
for (let key of __getOwnPropNames(from))
|
|
42
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
43
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
44
|
+
}
|
|
45
|
+
return to;
|
|
46
|
+
};
|
|
47
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
48
|
+
var VStack_exports = {};
|
|
49
|
+
__export(VStack_exports, {
|
|
50
|
+
default: () => VStack
|
|
51
|
+
});
|
|
52
|
+
module.exports = __toCommonJS(VStack_exports);
|
|
53
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
54
|
+
var import__ = require("../../index");
|
|
55
|
+
const V_STACK_PROP_TO_VAR = {
|
|
56
|
+
gap: "--ck-v-stack--gap",
|
|
57
|
+
align: "--ck-v-stack--align"
|
|
58
|
+
};
|
|
59
|
+
const identity = (value) => value;
|
|
60
|
+
function VStack(_a) {
|
|
61
|
+
var _b = _a, {
|
|
62
|
+
gap,
|
|
63
|
+
align,
|
|
64
|
+
children,
|
|
65
|
+
className,
|
|
66
|
+
style
|
|
67
|
+
} = _b, props = __objRest(_b, [
|
|
68
|
+
"gap",
|
|
69
|
+
"align",
|
|
70
|
+
"children",
|
|
71
|
+
"className",
|
|
72
|
+
"style"
|
|
73
|
+
]);
|
|
74
|
+
const vStackClassName = className ? `ck-v-stack ${className}` : "ck-v-stack";
|
|
75
|
+
const gapVars = (0, import__.resolveResponsiveVars)(
|
|
76
|
+
{ gap },
|
|
77
|
+
{ gap: V_STACK_PROP_TO_VAR.gap },
|
|
78
|
+
import__.propToSpacingValue
|
|
79
|
+
);
|
|
80
|
+
const alignVars = (0, import__.resolveResponsiveVars)(
|
|
81
|
+
{ align },
|
|
82
|
+
{ align: V_STACK_PROP_TO_VAR.align },
|
|
83
|
+
identity
|
|
84
|
+
);
|
|
85
|
+
const styles = __spreadValues(__spreadValues(__spreadValues({}, gapVars), alignVars), style);
|
|
86
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
87
|
+
import__.Base,
|
|
88
|
+
__spreadProps(__spreadValues({}, props), {
|
|
89
|
+
className: vStackClassName,
|
|
90
|
+
style: styles,
|
|
91
|
+
children
|
|
92
|
+
})
|
|
93
|
+
);
|
|
94
|
+
}
|
|
95
|
+
//# sourceMappingURL=VStack.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../lib/components/VStack/VStack.tsx"],"sourcesContent":["import { CSSProperties, ElementType } from \"react\";\nimport {\n Base,\n BaseProps,\n BreakpointType,\n propToSpacingValue,\n resolveResponsiveVars,\n} from \"../../index\";\n\nexport type VStackProps<T extends ElementType = \"div\"> = BaseProps<T> & {\n gap?: BreakpointType<number | string>;\n align?: BreakpointType<\"start\" | \"center\" | \"end\" | \"stretch\">;\n};\n\nconst V_STACK_PROP_TO_VAR: Record<string, string> = {\n gap: \"--ck-v-stack--gap\",\n align: \"--ck-v-stack--align\",\n};\n\nconst identity = (value: string) => value;\n\nexport default function VStack<T extends ElementType = \"div\">({\n gap,\n align,\n children,\n className,\n style,\n ...props\n}: VStackProps<T>) {\n const vStackClassName = className ? `ck-v-stack ${className}` : \"ck-v-stack\";\n\n const gapVars = resolveResponsiveVars(\n { gap },\n { gap: V_STACK_PROP_TO_VAR.gap },\n propToSpacingValue,\n );\n const alignVars = resolveResponsiveVars(\n { align },\n { align: V_STACK_PROP_TO_VAR.align },\n identity,\n );\n\n const styles = {\n ...gapVars,\n ...alignVars,\n ...style,\n } as CSSProperties;\n\n return (\n <Base\n {...(props as BaseProps<T>)}\n className={vStackClassName}\n style={styles}\n >\n {children}\n </Base>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAiDI;AAhDJ,eAMO;AAOP,MAAM,sBAA8C;AAAA,EAClD,KAAK;AAAA,EACL,OAAO;AACT;AAEA,MAAM,WAAW,CAAC,UAAkB;AAErB,SAAR,OAAuD,IAO3C;AAP2C,eAC5D;AAAA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EA1BF,IAqB8D,IAMzD,kBANyD,IAMzD;AAAA,IALH;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA;AAGA,QAAM,kBAAkB,YAAY,cAAc,SAAS,KAAK;AAEhE,QAAM,cAAU;AAAA,IACd,EAAE,IAAI;AAAA,IACN,EAAE,KAAK,oBAAoB,IAAI;AAAA,IAC/B;AAAA,EACF;AACA,QAAM,gBAAY;AAAA,IAChB,EAAE,MAAM;AAAA,IACR,EAAE,OAAO,oBAAoB,MAAM;AAAA,IACnC;AAAA,EACF;AAEA,QAAM,SAAS,iDACV,UACA,YACA;AAGL,SACE;AAAA,IAAC;AAAA,qCACM,QADN;AAAA,MAEC,WAAW;AAAA,MACX,OAAO;AAAA,MAEN;AAAA;AAAA,EACH;AAEJ;","names":[]}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __defProps = Object.defineProperties;
|
|
3
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
4
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
7
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
8
|
+
var __spreadValues = (a, b) => {
|
|
9
|
+
for (var prop in b || (b = {}))
|
|
10
|
+
if (__hasOwnProp.call(b, prop))
|
|
11
|
+
__defNormalProp(a, prop, b[prop]);
|
|
12
|
+
if (__getOwnPropSymbols)
|
|
13
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
14
|
+
if (__propIsEnum.call(b, prop))
|
|
15
|
+
__defNormalProp(a, prop, b[prop]);
|
|
16
|
+
}
|
|
17
|
+
return a;
|
|
18
|
+
};
|
|
19
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
|
+
var __objRest = (source, exclude) => {
|
|
21
|
+
var target = {};
|
|
22
|
+
for (var prop in source)
|
|
23
|
+
if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
24
|
+
target[prop] = source[prop];
|
|
25
|
+
if (source != null && __getOwnPropSymbols)
|
|
26
|
+
for (var prop of __getOwnPropSymbols(source)) {
|
|
27
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
|
|
28
|
+
target[prop] = source[prop];
|
|
29
|
+
}
|
|
30
|
+
return target;
|
|
31
|
+
};
|
|
32
|
+
import { jsx } from "react/jsx-runtime";
|
|
33
|
+
import {
|
|
34
|
+
Base,
|
|
35
|
+
propToSpacingValue,
|
|
36
|
+
resolveResponsiveVars
|
|
37
|
+
} from "../../index";
|
|
38
|
+
const V_STACK_PROP_TO_VAR = {
|
|
39
|
+
gap: "--ck-v-stack--gap",
|
|
40
|
+
align: "--ck-v-stack--align"
|
|
41
|
+
};
|
|
42
|
+
const identity = (value) => value;
|
|
43
|
+
function VStack(_a) {
|
|
44
|
+
var _b = _a, {
|
|
45
|
+
gap,
|
|
46
|
+
align,
|
|
47
|
+
children,
|
|
48
|
+
className,
|
|
49
|
+
style
|
|
50
|
+
} = _b, props = __objRest(_b, [
|
|
51
|
+
"gap",
|
|
52
|
+
"align",
|
|
53
|
+
"children",
|
|
54
|
+
"className",
|
|
55
|
+
"style"
|
|
56
|
+
]);
|
|
57
|
+
const vStackClassName = className ? `ck-v-stack ${className}` : "ck-v-stack";
|
|
58
|
+
const gapVars = resolveResponsiveVars(
|
|
59
|
+
{ gap },
|
|
60
|
+
{ gap: V_STACK_PROP_TO_VAR.gap },
|
|
61
|
+
propToSpacingValue
|
|
62
|
+
);
|
|
63
|
+
const alignVars = resolveResponsiveVars(
|
|
64
|
+
{ align },
|
|
65
|
+
{ align: V_STACK_PROP_TO_VAR.align },
|
|
66
|
+
identity
|
|
67
|
+
);
|
|
68
|
+
const styles = __spreadValues(__spreadValues(__spreadValues({}, gapVars), alignVars), style);
|
|
69
|
+
return /* @__PURE__ */ jsx(
|
|
70
|
+
Base,
|
|
71
|
+
__spreadProps(__spreadValues({}, props), {
|
|
72
|
+
className: vStackClassName,
|
|
73
|
+
style: styles,
|
|
74
|
+
children
|
|
75
|
+
})
|
|
76
|
+
);
|
|
77
|
+
}
|
|
78
|
+
export {
|
|
79
|
+
VStack as default
|
|
80
|
+
};
|
|
81
|
+
//# sourceMappingURL=VStack.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../lib/components/VStack/VStack.tsx"],"sourcesContent":["import { CSSProperties, ElementType } from \"react\";\nimport {\n Base,\n BaseProps,\n BreakpointType,\n propToSpacingValue,\n resolveResponsiveVars,\n} from \"../../index\";\n\nexport type VStackProps<T extends ElementType = \"div\"> = BaseProps<T> & {\n gap?: BreakpointType<number | string>;\n align?: BreakpointType<\"start\" | \"center\" | \"end\" | \"stretch\">;\n};\n\nconst V_STACK_PROP_TO_VAR: Record<string, string> = {\n gap: \"--ck-v-stack--gap\",\n align: \"--ck-v-stack--align\",\n};\n\nconst identity = (value: string) => value;\n\nexport default function VStack<T extends ElementType = \"div\">({\n gap,\n align,\n children,\n className,\n style,\n ...props\n}: VStackProps<T>) {\n const vStackClassName = className ? `ck-v-stack ${className}` : \"ck-v-stack\";\n\n const gapVars = resolveResponsiveVars(\n { gap },\n { gap: V_STACK_PROP_TO_VAR.gap },\n propToSpacingValue,\n );\n const alignVars = resolveResponsiveVars(\n { align },\n { align: V_STACK_PROP_TO_VAR.align },\n identity,\n );\n\n const styles = {\n ...gapVars,\n ...alignVars,\n ...style,\n } as CSSProperties;\n\n return (\n <Base\n {...(props as BaseProps<T>)}\n className={vStackClassName}\n style={styles}\n >\n {children}\n </Base>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiDI;AAhDJ;AAAA,EACE;AAAA,EAGA;AAAA,EACA;AAAA,OACK;AAOP,MAAM,sBAA8C;AAAA,EAClD,KAAK;AAAA,EACL,OAAO;AACT;AAEA,MAAM,WAAW,CAAC,UAAkB;AAErB,SAAR,OAAuD,IAO3C;AAP2C,eAC5D;AAAA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EA1BF,IAqB8D,IAMzD,kBANyD,IAMzD;AAAA,IALH;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA;AAGA,QAAM,kBAAkB,YAAY,cAAc,SAAS,KAAK;AAEhE,QAAM,UAAU;AAAA,IACd,EAAE,IAAI;AAAA,IACN,EAAE,KAAK,oBAAoB,IAAI;AAAA,IAC/B;AAAA,EACF;AACA,QAAM,YAAY;AAAA,IAChB,EAAE,MAAM;AAAA,IACR,EAAE,OAAO,oBAAoB,MAAM;AAAA,IACnC;AAAA,EACF;AAEA,QAAM,SAAS,iDACV,UACA,YACA;AAGL,SACE;AAAA,IAAC;AAAA,qCACM,QADN;AAAA,MAEC,WAAW;AAAA,MACX,OAAO;AAAA,MAEN;AAAA;AAAA,EACH;AAEJ;","names":[]}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
for (var name in all)
|
|
10
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
+
};
|
|
12
|
+
var __copyProps = (to, from, except, desc) => {
|
|
13
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
+
for (let key of __getOwnPropNames(from))
|
|
15
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
20
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
+
mod
|
|
27
|
+
));
|
|
28
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
+
var VStack_exports = {};
|
|
30
|
+
__export(VStack_exports, {
|
|
31
|
+
VStack: () => import_VStack.default
|
|
32
|
+
});
|
|
33
|
+
module.exports = __toCommonJS(VStack_exports);
|
|
34
|
+
var import_VStack = __toESM(require("./VStack"));
|
|
35
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
36
|
+
0 && (module.exports = {
|
|
37
|
+
VStack
|
|
38
|
+
});
|
|
39
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../lib/components/VStack/index.ts"],"sourcesContent":["export { default as VStack } from \"./VStack\";\nexport type { VStackProps } from \"./VStack\";\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,oBAAkC;","names":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../lib/components/VStack/index.ts"],"sourcesContent":["export { default as VStack } from \"./VStack\";\nexport type { VStackProps } from \"./VStack\";\n"],"mappings":"AAAA,SAAoB,WAAXA,gBAAyB;","names":["default"]}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
export { Box, BoxProps } from './Box/index.mjs';
|
|
2
|
+
export { default as Breadcrumb, BreadcrumbProps } from './Breadcrumb/Breadcrumb.mjs';
|
|
3
|
+
export { default as BreadcrumbItem, BreadcrumbItemProps } from './Breadcrumb/BreadcrumbItem.mjs';
|
|
4
|
+
export { default as BreadcrumbPresets, BreadcrumbPresetsProps } from './Breadcrumb/BreadcrumbPresets.mjs';
|
|
5
|
+
export { default as Button, ButtonProps } from './Button/Button.mjs';
|
|
6
|
+
export { default as Card, CardProps } from './Card/Card.mjs';
|
|
7
|
+
export { default as CardAction, CardActionProps } from './Card/CardAction.mjs';
|
|
8
|
+
export { default as CardContent, CardContentProps } from './Card/CardContent.mjs';
|
|
9
|
+
export { default as CardHeader, CardHeaderProps } from './Card/CardHeader.mjs';
|
|
10
|
+
export { default as CardIcon, CardIconProps } from './Card/CardIcon.mjs';
|
|
11
|
+
export { default as CardText, CardTextProps } from './Card/CardText.mjs';
|
|
12
|
+
export { default as CardTitle, CardTitleProps } from './Card/CardTitle.mjs';
|
|
13
|
+
export { default as Container, ContainerProps } from './Container/Container.mjs';
|
|
14
|
+
export { default as Grid, GridProps } from './Grid/Grid.mjs';
|
|
15
|
+
export { default as NavBar, NavBarProps } from './NavBar/NavBar.mjs';
|
|
16
|
+
export { default as NavBarBrand, NavBarBrandProps } from './NavBar/NavBarBrand.mjs';
|
|
17
|
+
export { default as NavBarDropdown, NavBarDropdownProps } from './NavBar/NavBarDropdown.mjs';
|
|
18
|
+
export { default as NavBarItem, NavBarItemProps } from './NavBar/NavBarItem.mjs';
|
|
19
|
+
export { default as NavBarList, NavBarListProps } from './NavBar/NavBarList.mjs';
|
|
20
|
+
export { default as NavBarPreset, NavBarPresetItem, NavBarPresetProps } from './NavBar/NavBarPreset.mjs';
|
|
21
|
+
export { default as NavBarToggle, NavBarToggleProps } from './NavBar/NavBarToggle.mjs';
|
|
22
|
+
export { default as Pill, PillColor, PillProps, PillSize, PillVariant } from './Pill/Pill.mjs';
|
|
23
|
+
export { default as SegmentedControl, SegmentedControlProps } from './SegmentedControl/SegmentedControl.mjs';
|
|
24
|
+
export { default as SegmentedControlItem, SegmentedControlItemProps } from './SegmentedControl/SegmentedControlItem.mjs';
|
|
25
|
+
export { default as TabBar, TabBarProps } from './TabBar/TabBar.mjs';
|
|
26
|
+
export { default as TabBarItem, TabBarItemProps } from './TabBar/TabBarItem.mjs';
|
|
27
|
+
export { default as TabBarItemIcon, TabBarItemIconProps } from './TabBar/TabBarItemIcon.mjs';
|
|
28
|
+
export { default as TabBarItemLabel, TabBarItemLabelProps } from './TabBar/TabBarItemLabel.mjs';
|
|
29
|
+
export { default as TabBarPreset, TabBarPresetProps } from './TabBar/TabBarPreset.mjs';
|
|
30
|
+
export { default as HStack, HStackProps } from './HStack/HStack.mjs';
|
|
31
|
+
export { default as VStack, VStackProps } from './VStack/VStack.mjs';
|
|
32
|
+
import 'react';
|
|
33
|
+
import '../core/Base/Base.mjs';
|
|
34
|
+
import '../core/Breakpoint/BreakpointType.mjs';
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
export { Box, BoxProps } from './Box/index.js';
|
|
2
|
+
export { default as Breadcrumb, BreadcrumbProps } from './Breadcrumb/Breadcrumb.js';
|
|
3
|
+
export { default as BreadcrumbItem, BreadcrumbItemProps } from './Breadcrumb/BreadcrumbItem.js';
|
|
4
|
+
export { default as BreadcrumbPresets, BreadcrumbPresetsProps } from './Breadcrumb/BreadcrumbPresets.js';
|
|
5
|
+
export { default as Button, ButtonProps } from './Button/Button.js';
|
|
6
|
+
export { default as Card, CardProps } from './Card/Card.js';
|
|
7
|
+
export { default as CardAction, CardActionProps } from './Card/CardAction.js';
|
|
8
|
+
export { default as CardContent, CardContentProps } from './Card/CardContent.js';
|
|
9
|
+
export { default as CardHeader, CardHeaderProps } from './Card/CardHeader.js';
|
|
10
|
+
export { default as CardIcon, CardIconProps } from './Card/CardIcon.js';
|
|
11
|
+
export { default as CardText, CardTextProps } from './Card/CardText.js';
|
|
12
|
+
export { default as CardTitle, CardTitleProps } from './Card/CardTitle.js';
|
|
13
|
+
export { default as Container, ContainerProps } from './Container/Container.js';
|
|
14
|
+
export { default as Grid, GridProps } from './Grid/Grid.js';
|
|
15
|
+
export { default as NavBar, NavBarProps } from './NavBar/NavBar.js';
|
|
16
|
+
export { default as NavBarBrand, NavBarBrandProps } from './NavBar/NavBarBrand.js';
|
|
17
|
+
export { default as NavBarDropdown, NavBarDropdownProps } from './NavBar/NavBarDropdown.js';
|
|
18
|
+
export { default as NavBarItem, NavBarItemProps } from './NavBar/NavBarItem.js';
|
|
19
|
+
export { default as NavBarList, NavBarListProps } from './NavBar/NavBarList.js';
|
|
20
|
+
export { default as NavBarPreset, NavBarPresetItem, NavBarPresetProps } from './NavBar/NavBarPreset.js';
|
|
21
|
+
export { default as NavBarToggle, NavBarToggleProps } from './NavBar/NavBarToggle.js';
|
|
22
|
+
export { default as Pill, PillColor, PillProps, PillSize, PillVariant } from './Pill/Pill.js';
|
|
23
|
+
export { default as SegmentedControl, SegmentedControlProps } from './SegmentedControl/SegmentedControl.js';
|
|
24
|
+
export { default as SegmentedControlItem, SegmentedControlItemProps } from './SegmentedControl/SegmentedControlItem.js';
|
|
25
|
+
export { default as TabBar, TabBarProps } from './TabBar/TabBar.js';
|
|
26
|
+
export { default as TabBarItem, TabBarItemProps } from './TabBar/TabBarItem.js';
|
|
27
|
+
export { default as TabBarItemIcon, TabBarItemIconProps } from './TabBar/TabBarItemIcon.js';
|
|
28
|
+
export { default as TabBarItemLabel, TabBarItemLabelProps } from './TabBar/TabBarItemLabel.js';
|
|
29
|
+
export { default as TabBarPreset, TabBarPresetProps } from './TabBar/TabBarPreset.js';
|
|
30
|
+
export { default as HStack, HStackProps } from './HStack/HStack.js';
|
|
31
|
+
export { default as VStack, VStackProps } from './VStack/VStack.js';
|
|
32
|
+
import 'react';
|
|
33
|
+
import '../core/Base/Base.js';
|
|
34
|
+
import '../core/Breakpoint/BreakpointType.js';
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __copyProps = (to, from, except, desc) => {
|
|
7
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
|
+
for (let key of __getOwnPropNames(from))
|
|
9
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
10
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
11
|
+
}
|
|
12
|
+
return to;
|
|
13
|
+
};
|
|
14
|
+
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
15
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
16
|
+
var components_exports = {};
|
|
17
|
+
module.exports = __toCommonJS(components_exports);
|
|
18
|
+
__reExport(components_exports, require("./Box"), module.exports);
|
|
19
|
+
__reExport(components_exports, require("./Breadcrumb"), module.exports);
|
|
20
|
+
__reExport(components_exports, require("./Button"), module.exports);
|
|
21
|
+
__reExport(components_exports, require("./Card"), module.exports);
|
|
22
|
+
__reExport(components_exports, require("./Container"), module.exports);
|
|
23
|
+
__reExport(components_exports, require("./Grid"), module.exports);
|
|
24
|
+
__reExport(components_exports, require("./NavBar"), module.exports);
|
|
25
|
+
__reExport(components_exports, require("./Pill"), module.exports);
|
|
26
|
+
__reExport(components_exports, require("./SegmentedControl"), module.exports);
|
|
27
|
+
__reExport(components_exports, require("./TabBar"), module.exports);
|
|
28
|
+
__reExport(components_exports, require("./HStack"), module.exports);
|
|
29
|
+
__reExport(components_exports, require("./VStack"), module.exports);
|
|
30
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
31
|
+
0 && (module.exports = {
|
|
32
|
+
...require("./Box"),
|
|
33
|
+
...require("./Breadcrumb"),
|
|
34
|
+
...require("./Button"),
|
|
35
|
+
...require("./Card"),
|
|
36
|
+
...require("./Container"),
|
|
37
|
+
...require("./Grid"),
|
|
38
|
+
...require("./NavBar"),
|
|
39
|
+
...require("./Pill"),
|
|
40
|
+
...require("./SegmentedControl"),
|
|
41
|
+
...require("./TabBar"),
|
|
42
|
+
...require("./HStack"),
|
|
43
|
+
...require("./VStack")
|
|
44
|
+
});
|
|
45
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../lib/components/index.ts"],"sourcesContent":["export * from \"./Box\";\nexport * from \"./Breadcrumb\";\nexport * from \"./Button\";\nexport * from \"./Card\";\nexport * from \"./Container\";\nexport * from \"./Grid\";\nexport * from \"./NavBar\";\nexport * from \"./Pill\";\nexport * from \"./SegmentedControl\";\nexport * from \"./TabBar\";\nexport * from \"./HStack\";\nexport * from \"./VStack\";\n"],"mappings":";;;;;;;;;;;;;;;AAAA;AAAA;AAAA,+BAAc,kBAAd;AACA,+BAAc,yBADd;AAEA,+BAAc,qBAFd;AAGA,+BAAc,mBAHd;AAIA,+BAAc,wBAJd;AAKA,+BAAc,mBALd;AAMA,+BAAc,qBANd;AAOA,+BAAc,mBAPd;AAQA,+BAAc,+BARd;AASA,+BAAc,qBATd;AAUA,+BAAc,qBAVd;AAWA,+BAAc,qBAXd;","names":[]}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export * from "./Box";
|
|
2
|
+
export * from "./Breadcrumb";
|
|
3
|
+
export * from "./Button";
|
|
4
|
+
export * from "./Card";
|
|
5
|
+
export * from "./Container";
|
|
6
|
+
export * from "./Grid";
|
|
7
|
+
export * from "./NavBar";
|
|
8
|
+
export * from "./Pill";
|
|
9
|
+
export * from "./SegmentedControl";
|
|
10
|
+
export * from "./TabBar";
|
|
11
|
+
export * from "./HStack";
|
|
12
|
+
export * from "./VStack";
|
|
13
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../lib/components/index.ts"],"sourcesContent":["export * from \"./Box\";\nexport * from \"./Breadcrumb\";\nexport * from \"./Button\";\nexport * from \"./Card\";\nexport * from \"./Container\";\nexport * from \"./Grid\";\nexport * from \"./NavBar\";\nexport * from \"./Pill\";\nexport * from \"./SegmentedControl\";\nexport * from \"./TabBar\";\nexport * from \"./HStack\";\nexport * from \"./VStack\";\n"],"mappings":"AAAA,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;","names":[]}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
import { ElementType, ReactNode, CSSProperties, ComponentPropsWithoutRef } from 'react';
|
|
3
|
+
import { BreakpointType } from '../Breakpoint/BreakpointType.mjs';
|
|
4
|
+
|
|
5
|
+
type BaseOwnProps = {
|
|
6
|
+
children?: ReactNode;
|
|
7
|
+
m?: BreakpointType<number | string>;
|
|
8
|
+
ml?: BreakpointType<number | string>;
|
|
9
|
+
mt?: BreakpointType<number | string>;
|
|
10
|
+
mr?: BreakpointType<number | string>;
|
|
11
|
+
mb?: BreakpointType<number | string>;
|
|
12
|
+
my?: BreakpointType<number | string>;
|
|
13
|
+
mx?: BreakpointType<number | string>;
|
|
14
|
+
p?: BreakpointType<number | string>;
|
|
15
|
+
pl?: BreakpointType<number | string>;
|
|
16
|
+
pt?: BreakpointType<number | string>;
|
|
17
|
+
pr?: BreakpointType<number | string>;
|
|
18
|
+
pb?: BreakpointType<number | string>;
|
|
19
|
+
py?: BreakpointType<number | string>;
|
|
20
|
+
px?: BreakpointType<number | string>;
|
|
21
|
+
style?: CSSProperties;
|
|
22
|
+
};
|
|
23
|
+
type BaseProps<T extends ElementType> = BaseOwnProps & {
|
|
24
|
+
as?: T;
|
|
25
|
+
} & Omit<ComponentPropsWithoutRef<T>, keyof BaseOwnProps | "as">;
|
|
26
|
+
declare function Base<T extends ElementType = "div">({ as, children, m, ml, mt, mr, mb, my, mx, p, pl, pt, pr, pb, py, px, style, className, ...props }: BaseProps<T>): react.JSX.Element;
|
|
27
|
+
|
|
28
|
+
export { type BaseOwnProps, type BaseProps, Base as default };
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
import { ElementType, ReactNode, CSSProperties, ComponentPropsWithoutRef } from 'react';
|
|
3
|
+
import { BreakpointType } from '../Breakpoint/BreakpointType.js';
|
|
4
|
+
|
|
5
|
+
type BaseOwnProps = {
|
|
6
|
+
children?: ReactNode;
|
|
7
|
+
m?: BreakpointType<number | string>;
|
|
8
|
+
ml?: BreakpointType<number | string>;
|
|
9
|
+
mt?: BreakpointType<number | string>;
|
|
10
|
+
mr?: BreakpointType<number | string>;
|
|
11
|
+
mb?: BreakpointType<number | string>;
|
|
12
|
+
my?: BreakpointType<number | string>;
|
|
13
|
+
mx?: BreakpointType<number | string>;
|
|
14
|
+
p?: BreakpointType<number | string>;
|
|
15
|
+
pl?: BreakpointType<number | string>;
|
|
16
|
+
pt?: BreakpointType<number | string>;
|
|
17
|
+
pr?: BreakpointType<number | string>;
|
|
18
|
+
pb?: BreakpointType<number | string>;
|
|
19
|
+
py?: BreakpointType<number | string>;
|
|
20
|
+
px?: BreakpointType<number | string>;
|
|
21
|
+
style?: CSSProperties;
|
|
22
|
+
};
|
|
23
|
+
type BaseProps<T extends ElementType> = BaseOwnProps & {
|
|
24
|
+
as?: T;
|
|
25
|
+
} & Omit<ComponentPropsWithoutRef<T>, keyof BaseOwnProps | "as">;
|
|
26
|
+
declare function Base<T extends ElementType = "div">({ as, children, m, ml, mt, mr, mb, my, mx, p, pl, pt, pr, pb, py, px, style, className, ...props }: BaseProps<T>): react.JSX.Element;
|
|
27
|
+
|
|
28
|
+
export { type BaseOwnProps, type BaseProps, Base as default };
|