@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,56 @@
|
|
|
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 { Base } from "../../core/Base";
|
|
34
|
+
function CardIcon(_a) {
|
|
35
|
+
var _b = _a, {
|
|
36
|
+
variant,
|
|
37
|
+
children,
|
|
38
|
+
className
|
|
39
|
+
} = _b, props = __objRest(_b, [
|
|
40
|
+
"variant",
|
|
41
|
+
"children",
|
|
42
|
+
"className"
|
|
43
|
+
]);
|
|
44
|
+
let cardClassName = "ck-card-icon";
|
|
45
|
+
if (variant && variant !== "plain") {
|
|
46
|
+
cardClassName += ` ck-card-icon--${variant}`;
|
|
47
|
+
}
|
|
48
|
+
if (className) {
|
|
49
|
+
cardClassName += ` ${className}`;
|
|
50
|
+
}
|
|
51
|
+
return /* @__PURE__ */ jsx(Base, __spreadProps(__spreadValues({}, props), { className: cardClassName, children }));
|
|
52
|
+
}
|
|
53
|
+
export {
|
|
54
|
+
CardIcon as default
|
|
55
|
+
};
|
|
56
|
+
//# sourceMappingURL=CardIcon.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../lib/components/Card/CardIcon.tsx"],"sourcesContent":["import { ElementType } from \"react\";\nimport { Base, BaseProps } from \"../../core/Base\";\n\nexport type CardIconProps<T extends ElementType = \"div\"> = BaseProps<T> & {\n variant?: \"plain\" | \"circle\" | \"square\";\n};\n\nexport default function CardIcon<T extends ElementType = \"div\">({\n variant,\n children,\n className,\n ...props\n}: CardIconProps<T>) {\n let cardClassName = \"ck-card-icon\";\n\n if (variant && variant !== \"plain\") {\n cardClassName += ` ck-card-icon--${variant}`;\n }\n\n if (className) {\n cardClassName += ` ${className}`;\n }\n\n return (\n <Base {...(props as BaseProps<T>)} className={cardClassName}>\n {children}\n </Base>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAwBI;AAvBJ,SAAS,YAAuB;AAMjB,SAAR,SAAyD,IAK3C;AAL2C,eAC9D;AAAA;AAAA,IACA;AAAA,IACA;AAAA,EAVF,IAOgE,IAI3D,kBAJ2D,IAI3D;AAAA,IAHH;AAAA,IACA;AAAA,IACA;AAAA;AAGA,MAAI,gBAAgB;AAEpB,MAAI,WAAW,YAAY,SAAS;AAClC,qBAAiB,kBAAkB,OAAO;AAAA,EAC5C;AAEA,MAAI,WAAW;AACb,qBAAiB,IAAI,SAAS;AAAA,EAChC;AAEA,SACE,oBAAC,uCAAU,QAAV,EAAkC,WAAW,eAC3C,WACH;AAEJ;","names":[]}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
import { ElementType } from 'react';
|
|
3
|
+
import { BaseProps } from '../../core/Base/Base.mjs';
|
|
4
|
+
import '../../core/Breakpoint/BreakpointType.mjs';
|
|
5
|
+
|
|
6
|
+
type CardTextProps<T extends ElementType = "div"> = BaseProps<T>;
|
|
7
|
+
declare function CardText<T extends ElementType = "div">({ children, className, ...props }: CardTextProps<T>): react.JSX.Element;
|
|
8
|
+
|
|
9
|
+
export { type CardTextProps, CardText as default };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
import { ElementType } from 'react';
|
|
3
|
+
import { BaseProps } from '../../core/Base/Base.js';
|
|
4
|
+
import '../../core/Breakpoint/BreakpointType.js';
|
|
5
|
+
|
|
6
|
+
type CardTextProps<T extends ElementType = "div"> = BaseProps<T>;
|
|
7
|
+
declare function CardText<T extends ElementType = "div">({ children, className, ...props }: CardTextProps<T>): react.JSX.Element;
|
|
8
|
+
|
|
9
|
+
export { type CardTextProps, CardText as default };
|
|
@@ -0,0 +1,69 @@
|
|
|
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 CardText_exports = {};
|
|
49
|
+
__export(CardText_exports, {
|
|
50
|
+
default: () => CardText
|
|
51
|
+
});
|
|
52
|
+
module.exports = __toCommonJS(CardText_exports);
|
|
53
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
54
|
+
var import_Base = require("../../core/Base");
|
|
55
|
+
function CardText(_a) {
|
|
56
|
+
var _b = _a, {
|
|
57
|
+
children,
|
|
58
|
+
className
|
|
59
|
+
} = _b, props = __objRest(_b, [
|
|
60
|
+
"children",
|
|
61
|
+
"className"
|
|
62
|
+
]);
|
|
63
|
+
let cardClassName = "ck-card-text";
|
|
64
|
+
if (className) {
|
|
65
|
+
cardClassName += ` ${className}`;
|
|
66
|
+
}
|
|
67
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Base.Base, __spreadProps(__spreadValues({}, props), { className: cardClassName, children }));
|
|
68
|
+
}
|
|
69
|
+
//# sourceMappingURL=CardText.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../lib/components/Card/CardText.tsx"],"sourcesContent":["import { ElementType } from \"react\";\nimport { Base, BaseProps } from \"../../core/Base\";\n\nexport type CardTextProps<T extends ElementType = \"div\"> = BaseProps<T>;\n\nexport default function CardText<T extends ElementType = \"div\">({\n children,\n className,\n ...props\n}: CardTextProps<T>) {\n let cardClassName = \"ck-card-text\";\n\n if (className) {\n cardClassName += ` ${className}`;\n }\n\n return (\n <Base {...(props as BaseProps<T>)} className={cardClassName}>\n {children}\n </Base>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAiBI;AAhBJ,kBAAgC;AAIjB,SAAR,SAAyD,IAI3C;AAJ2C,eAC9D;AAAA;AAAA,IACA;AAAA,EAPF,IAKgE,IAG3D,kBAH2D,IAG3D;AAAA,IAFH;AAAA,IACA;AAAA;AAGA,MAAI,gBAAgB;AAEpB,MAAI,WAAW;AACb,qBAAiB,IAAI,SAAS;AAAA,EAChC;AAEA,SACE,4CAAC,mDAAU,QAAV,EAAkC,WAAW,eAC3C,WACH;AAEJ;","names":[]}
|
|
@@ -0,0 +1,51 @@
|
|
|
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 { Base } from "../../core/Base";
|
|
34
|
+
function CardText(_a) {
|
|
35
|
+
var _b = _a, {
|
|
36
|
+
children,
|
|
37
|
+
className
|
|
38
|
+
} = _b, props = __objRest(_b, [
|
|
39
|
+
"children",
|
|
40
|
+
"className"
|
|
41
|
+
]);
|
|
42
|
+
let cardClassName = "ck-card-text";
|
|
43
|
+
if (className) {
|
|
44
|
+
cardClassName += ` ${className}`;
|
|
45
|
+
}
|
|
46
|
+
return /* @__PURE__ */ jsx(Base, __spreadProps(__spreadValues({}, props), { className: cardClassName, children }));
|
|
47
|
+
}
|
|
48
|
+
export {
|
|
49
|
+
CardText as default
|
|
50
|
+
};
|
|
51
|
+
//# sourceMappingURL=CardText.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../lib/components/Card/CardText.tsx"],"sourcesContent":["import { ElementType } from \"react\";\nimport { Base, BaseProps } from \"../../core/Base\";\n\nexport type CardTextProps<T extends ElementType = \"div\"> = BaseProps<T>;\n\nexport default function CardText<T extends ElementType = \"div\">({\n children,\n className,\n ...props\n}: CardTextProps<T>) {\n let cardClassName = \"ck-card-text\";\n\n if (className) {\n cardClassName += ` ${className}`;\n }\n\n return (\n <Base {...(props as BaseProps<T>)} className={cardClassName}>\n {children}\n </Base>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiBI;AAhBJ,SAAS,YAAuB;AAIjB,SAAR,SAAyD,IAI3C;AAJ2C,eAC9D;AAAA;AAAA,IACA;AAAA,EAPF,IAKgE,IAG3D,kBAH2D,IAG3D;AAAA,IAFH;AAAA,IACA;AAAA;AAGA,MAAI,gBAAgB;AAEpB,MAAI,WAAW;AACb,qBAAiB,IAAI,SAAS;AAAA,EAChC;AAEA,SACE,oBAAC,uCAAU,QAAV,EAAkC,WAAW,eAC3C,WACH;AAEJ;","names":[]}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
import { ElementType, CSSProperties, ReactNode, ComponentPropsWithoutRef } from 'react';
|
|
3
|
+
import { BaseProps } from '../../core/Base/Base.mjs';
|
|
4
|
+
import '../../core/Breakpoint/BreakpointType.mjs';
|
|
5
|
+
|
|
6
|
+
type CardTitleOwnProps<T extends ElementType> = {
|
|
7
|
+
as?: T;
|
|
8
|
+
className?: string;
|
|
9
|
+
style?: CSSProperties;
|
|
10
|
+
children?: ReactNode;
|
|
11
|
+
};
|
|
12
|
+
type CardTitleProps<T extends ElementType> = CardTitleOwnProps<T> & Omit<BaseProps<T>, keyof CardTitleOwnProps<T> | "as"> & Omit<ComponentPropsWithoutRef<T>, keyof CardTitleOwnProps<T> | "as">;
|
|
13
|
+
declare function CardTitle<T extends ElementType = "h3">({ as, children, className, ...props }: CardTitleProps<T>): react.JSX.Element;
|
|
14
|
+
|
|
15
|
+
export { type CardTitleProps, CardTitle as default };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
import { ElementType, CSSProperties, ReactNode, ComponentPropsWithoutRef } from 'react';
|
|
3
|
+
import { BaseProps } from '../../core/Base/Base.js';
|
|
4
|
+
import '../../core/Breakpoint/BreakpointType.js';
|
|
5
|
+
|
|
6
|
+
type CardTitleOwnProps<T extends ElementType> = {
|
|
7
|
+
as?: T;
|
|
8
|
+
className?: string;
|
|
9
|
+
style?: CSSProperties;
|
|
10
|
+
children?: ReactNode;
|
|
11
|
+
};
|
|
12
|
+
type CardTitleProps<T extends ElementType> = CardTitleOwnProps<T> & Omit<BaseProps<T>, keyof CardTitleOwnProps<T> | "as"> & Omit<ComponentPropsWithoutRef<T>, keyof CardTitleOwnProps<T> | "as">;
|
|
13
|
+
declare function CardTitle<T extends ElementType = "h3">({ as, children, className, ...props }: CardTitleProps<T>): react.JSX.Element;
|
|
14
|
+
|
|
15
|
+
export { type CardTitleProps, CardTitle as default };
|
|
@@ -0,0 +1,72 @@
|
|
|
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 CardTitle_exports = {};
|
|
49
|
+
__export(CardTitle_exports, {
|
|
50
|
+
default: () => CardTitle
|
|
51
|
+
});
|
|
52
|
+
module.exports = __toCommonJS(CardTitle_exports);
|
|
53
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
54
|
+
var import_Base = require("../../core/Base");
|
|
55
|
+
function CardTitle(_a) {
|
|
56
|
+
var _b = _a, {
|
|
57
|
+
as,
|
|
58
|
+
children,
|
|
59
|
+
className
|
|
60
|
+
} = _b, props = __objRest(_b, [
|
|
61
|
+
"as",
|
|
62
|
+
"children",
|
|
63
|
+
"className"
|
|
64
|
+
]);
|
|
65
|
+
const Component = as || "h3";
|
|
66
|
+
let cardClassName = "ck-card-title";
|
|
67
|
+
if (className) {
|
|
68
|
+
cardClassName += ` ${className}`;
|
|
69
|
+
}
|
|
70
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Base.Base, __spreadProps(__spreadValues({}, props), { as: Component, className: cardClassName, children }));
|
|
71
|
+
}
|
|
72
|
+
//# sourceMappingURL=CardTitle.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../lib/components/Card/CardTitle.tsx"],"sourcesContent":["import { Base, BaseProps } from \"../../core/Base\";\nimport {\n ComponentPropsWithoutRef,\n CSSProperties,\n ElementType,\n ReactNode,\n} from \"react\";\n\ntype CardTitleOwnProps<T extends ElementType> = {\n as?: T;\n className?: string;\n style?: CSSProperties;\n children?: ReactNode;\n};\n\nexport type CardTitleProps<T extends ElementType> = CardTitleOwnProps<T> &\n Omit<BaseProps<T>, keyof CardTitleOwnProps<T> | \"as\"> &\n Omit<ComponentPropsWithoutRef<T>, keyof CardTitleOwnProps<T> | \"as\">;\n\nexport default function CardTitle<T extends ElementType = \"h3\">({\n as,\n children,\n className,\n ...props\n}: CardTitleProps<T>) {\n const Component = (as || \"h3\") as ElementType;\n let cardClassName = \"ck-card-title\";\n\n if (className) {\n cardClassName += ` ${className}`;\n }\n\n return (\n <Base {...props} as={Component} className={cardClassName}>\n {children}\n </Base>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAiCI;AAjCJ,kBAAgC;AAmBjB,SAAR,UAAyD,IAK1C;AAL0C,eAC9D;AAAA;AAAA,IACA;AAAA,IACA;AAAA,EAtBF,IAmBgE,IAI3D,kBAJ2D,IAI3D;AAAA,IAHH;AAAA,IACA;AAAA,IACA;AAAA;AAGA,QAAM,YAAa,MAAM;AACzB,MAAI,gBAAgB;AAEpB,MAAI,WAAW;AACb,qBAAiB,IAAI,SAAS;AAAA,EAChC;AAEA,SACE,4CAAC,mDAAS,QAAT,EAAgB,IAAI,WAAW,WAAW,eACxC,WACH;AAEJ;","names":[]}
|
|
@@ -0,0 +1,54 @@
|
|
|
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 { Base } from "../../core/Base";
|
|
34
|
+
function CardTitle(_a) {
|
|
35
|
+
var _b = _a, {
|
|
36
|
+
as,
|
|
37
|
+
children,
|
|
38
|
+
className
|
|
39
|
+
} = _b, props = __objRest(_b, [
|
|
40
|
+
"as",
|
|
41
|
+
"children",
|
|
42
|
+
"className"
|
|
43
|
+
]);
|
|
44
|
+
const Component = as || "h3";
|
|
45
|
+
let cardClassName = "ck-card-title";
|
|
46
|
+
if (className) {
|
|
47
|
+
cardClassName += ` ${className}`;
|
|
48
|
+
}
|
|
49
|
+
return /* @__PURE__ */ jsx(Base, __spreadProps(__spreadValues({}, props), { as: Component, className: cardClassName, children }));
|
|
50
|
+
}
|
|
51
|
+
export {
|
|
52
|
+
CardTitle as default
|
|
53
|
+
};
|
|
54
|
+
//# sourceMappingURL=CardTitle.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../lib/components/Card/CardTitle.tsx"],"sourcesContent":["import { Base, BaseProps } from \"../../core/Base\";\nimport {\n ComponentPropsWithoutRef,\n CSSProperties,\n ElementType,\n ReactNode,\n} from \"react\";\n\ntype CardTitleOwnProps<T extends ElementType> = {\n as?: T;\n className?: string;\n style?: CSSProperties;\n children?: ReactNode;\n};\n\nexport type CardTitleProps<T extends ElementType> = CardTitleOwnProps<T> &\n Omit<BaseProps<T>, keyof CardTitleOwnProps<T> | \"as\"> &\n Omit<ComponentPropsWithoutRef<T>, keyof CardTitleOwnProps<T> | \"as\">;\n\nexport default function CardTitle<T extends ElementType = \"h3\">({\n as,\n children,\n className,\n ...props\n}: CardTitleProps<T>) {\n const Component = (as || \"h3\") as ElementType;\n let cardClassName = \"ck-card-title\";\n\n if (className) {\n cardClassName += ` ${className}`;\n }\n\n return (\n <Base {...props} as={Component} className={cardClassName}>\n {children}\n </Base>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiCI;AAjCJ,SAAS,YAAuB;AAmBjB,SAAR,UAAyD,IAK1C;AAL0C,eAC9D;AAAA;AAAA,IACA;AAAA,IACA;AAAA,EAtBF,IAmBgE,IAI3D,kBAJ2D,IAI3D;AAAA,IAHH;AAAA,IACA;AAAA,IACA;AAAA;AAGA,QAAM,YAAa,MAAM;AACzB,MAAI,gBAAgB;AAEpB,MAAI,WAAW;AACb,qBAAiB,IAAI,SAAS;AAAA,EAChC;AAEA,SACE,oBAAC,uCAAS,QAAT,EAAgB,IAAI,WAAW,WAAW,eACxC,WACH;AAEJ;","names":[]}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export { default as Card, CardProps } from './Card.mjs';
|
|
2
|
+
export { default as CardAction, CardActionProps } from './CardAction.mjs';
|
|
3
|
+
export { default as CardContent, CardContentProps } from './CardContent.mjs';
|
|
4
|
+
export { default as CardHeader, CardHeaderProps } from './CardHeader.mjs';
|
|
5
|
+
export { default as CardIcon, CardIconProps } from './CardIcon.mjs';
|
|
6
|
+
export { default as CardText, CardTextProps } from './CardText.mjs';
|
|
7
|
+
export { default as CardTitle, CardTitleProps } from './CardTitle.mjs';
|
|
8
|
+
import 'react';
|
|
9
|
+
import '../Box/index.mjs';
|
|
10
|
+
import '../../core/Base/Base.mjs';
|
|
11
|
+
import '../../core/Breakpoint/BreakpointType.mjs';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export { default as Card, CardProps } from './Card.js';
|
|
2
|
+
export { default as CardAction, CardActionProps } from './CardAction.js';
|
|
3
|
+
export { default as CardContent, CardContentProps } from './CardContent.js';
|
|
4
|
+
export { default as CardHeader, CardHeaderProps } from './CardHeader.js';
|
|
5
|
+
export { default as CardIcon, CardIconProps } from './CardIcon.js';
|
|
6
|
+
export { default as CardText, CardTextProps } from './CardText.js';
|
|
7
|
+
export { default as CardTitle, CardTitleProps } from './CardTitle.js';
|
|
8
|
+
import 'react';
|
|
9
|
+
import '../Box/index.js';
|
|
10
|
+
import '../../core/Base/Base.js';
|
|
11
|
+
import '../../core/Breakpoint/BreakpointType.js';
|
|
@@ -0,0 +1,57 @@
|
|
|
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 Card_exports = {};
|
|
30
|
+
__export(Card_exports, {
|
|
31
|
+
Card: () => import_Card.default,
|
|
32
|
+
CardAction: () => import_CardAction.default,
|
|
33
|
+
CardContent: () => import_CardContent.default,
|
|
34
|
+
CardHeader: () => import_CardHeader.default,
|
|
35
|
+
CardIcon: () => import_CardIcon.default,
|
|
36
|
+
CardText: () => import_CardText.default,
|
|
37
|
+
CardTitle: () => import_CardTitle.default
|
|
38
|
+
});
|
|
39
|
+
module.exports = __toCommonJS(Card_exports);
|
|
40
|
+
var import_Card = __toESM(require("./Card"));
|
|
41
|
+
var import_CardAction = __toESM(require("./CardAction"));
|
|
42
|
+
var import_CardContent = __toESM(require("./CardContent"));
|
|
43
|
+
var import_CardHeader = __toESM(require("./CardHeader"));
|
|
44
|
+
var import_CardIcon = __toESM(require("./CardIcon"));
|
|
45
|
+
var import_CardText = __toESM(require("./CardText"));
|
|
46
|
+
var import_CardTitle = __toESM(require("./CardTitle"));
|
|
47
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
48
|
+
0 && (module.exports = {
|
|
49
|
+
Card,
|
|
50
|
+
CardAction,
|
|
51
|
+
CardContent,
|
|
52
|
+
CardHeader,
|
|
53
|
+
CardIcon,
|
|
54
|
+
CardText,
|
|
55
|
+
CardTitle
|
|
56
|
+
});
|
|
57
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../lib/components/Card/index.ts"],"sourcesContent":["export { default as Card } from \"./Card\";\nexport type { CardProps } from \"./Card\";\n\nexport { default as CardAction } from \"./CardAction\";\nexport type { CardActionProps } from \"./CardAction\";\n\nexport { default as CardContent } from \"./CardContent\";\nexport type { CardContentProps } from \"./CardContent\";\n\nexport { default as CardHeader } from \"./CardHeader\";\nexport type { CardHeaderProps } from \"./CardHeader\";\n\nexport { default as CardIcon } from \"./CardIcon\";\nexport type { CardIconProps } from \"./CardIcon\";\n\nexport { default as CardText } from \"./CardText\";\nexport type { CardTextProps } from \"./CardText\";\n\nexport { default as CardTitle } from \"./CardTitle\";\nexport type { CardTitleProps } from \"./CardTitle\";\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBAAgC;AAGhC,wBAAsC;AAGtC,yBAAuC;AAGvC,wBAAsC;AAGtC,sBAAoC;AAGpC,sBAAoC;AAGpC,uBAAqC;","names":[]}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { default as default2 } from "./Card";
|
|
2
|
+
import { default as default3 } from "./CardAction";
|
|
3
|
+
import { default as default4 } from "./CardContent";
|
|
4
|
+
import { default as default5 } from "./CardHeader";
|
|
5
|
+
import { default as default6 } from "./CardIcon";
|
|
6
|
+
import { default as default7 } from "./CardText";
|
|
7
|
+
import { default as default8 } from "./CardTitle";
|
|
8
|
+
export {
|
|
9
|
+
default2 as Card,
|
|
10
|
+
default3 as CardAction,
|
|
11
|
+
default4 as CardContent,
|
|
12
|
+
default5 as CardHeader,
|
|
13
|
+
default6 as CardIcon,
|
|
14
|
+
default7 as CardText,
|
|
15
|
+
default8 as CardTitle
|
|
16
|
+
};
|
|
17
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../lib/components/Card/index.ts"],"sourcesContent":["export { default as Card } from \"./Card\";\nexport type { CardProps } from \"./Card\";\n\nexport { default as CardAction } from \"./CardAction\";\nexport type { CardActionProps } from \"./CardAction\";\n\nexport { default as CardContent } from \"./CardContent\";\nexport type { CardContentProps } from \"./CardContent\";\n\nexport { default as CardHeader } from \"./CardHeader\";\nexport type { CardHeaderProps } from \"./CardHeader\";\n\nexport { default as CardIcon } from \"./CardIcon\";\nexport type { CardIconProps } from \"./CardIcon\";\n\nexport { default as CardText } from \"./CardText\";\nexport type { CardTextProps } from \"./CardText\";\n\nexport { default as CardTitle } from \"./CardTitle\";\nexport type { CardTitleProps } from \"./CardTitle\";\n"],"mappings":"AAAA,SAAoB,WAAXA,gBAAuB;AAGhC,SAAoB,WAAXA,gBAA6B;AAGtC,SAAoB,WAAXA,gBAA8B;AAGvC,SAAoB,WAAXA,gBAA6B;AAGtC,SAAoB,WAAXA,gBAA2B;AAGpC,SAAoB,WAAXA,gBAA2B;AAGpC,SAAoB,WAAXA,gBAA4B;","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 '../../core/Breakpoint/BreakpointType.mjs';
|
|
5
|
+
|
|
6
|
+
type ContainerProps<T extends ElementType = "div"> = BaseProps<T> & {
|
|
7
|
+
maxWidth?: number | string;
|
|
8
|
+
isFluid?: boolean;
|
|
9
|
+
};
|
|
10
|
+
declare function Container<T extends ElementType = "div">({ isFluid, maxWidth, children, className, style, ...props }: ContainerProps<T>): react.JSX.Element;
|
|
11
|
+
|
|
12
|
+
export { type ContainerProps, Container 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 '../../core/Breakpoint/BreakpointType.js';
|
|
5
|
+
|
|
6
|
+
type ContainerProps<T extends ElementType = "div"> = BaseProps<T> & {
|
|
7
|
+
maxWidth?: number | string;
|
|
8
|
+
isFluid?: boolean;
|
|
9
|
+
};
|
|
10
|
+
declare function Container<T extends ElementType = "div">({ isFluid, maxWidth, children, className, style, ...props }: ContainerProps<T>): react.JSX.Element;
|
|
11
|
+
|
|
12
|
+
export { type ContainerProps, Container as default };
|
|
@@ -0,0 +1,94 @@
|
|
|
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 Container_exports = {};
|
|
49
|
+
__export(Container_exports, {
|
|
50
|
+
default: () => Container
|
|
51
|
+
});
|
|
52
|
+
module.exports = __toCommonJS(Container_exports);
|
|
53
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
54
|
+
var import__ = require("../../index");
|
|
55
|
+
function Container(_a) {
|
|
56
|
+
var _b = _a, {
|
|
57
|
+
isFluid,
|
|
58
|
+
maxWidth,
|
|
59
|
+
children,
|
|
60
|
+
className,
|
|
61
|
+
style
|
|
62
|
+
} = _b, props = __objRest(_b, [
|
|
63
|
+
"isFluid",
|
|
64
|
+
"maxWidth",
|
|
65
|
+
"children",
|
|
66
|
+
"className",
|
|
67
|
+
"style"
|
|
68
|
+
]);
|
|
69
|
+
let containerClassName = "ck-container";
|
|
70
|
+
if (isFluid) {
|
|
71
|
+
containerClassName += " ck-container--fluid";
|
|
72
|
+
}
|
|
73
|
+
let isCustomMaxWidth = false;
|
|
74
|
+
if (maxWidth && typeof maxWidth === "string" && ["us", "xs", "sm", "md", "lg", "xl", "ul"].includes(maxWidth)) {
|
|
75
|
+
containerClassName += " ck-container--max-width-" + maxWidth;
|
|
76
|
+
} else if (maxWidth) {
|
|
77
|
+
isCustomMaxWidth = true;
|
|
78
|
+
}
|
|
79
|
+
if (className) {
|
|
80
|
+
containerClassName += ` ${className}`;
|
|
81
|
+
}
|
|
82
|
+
const styles = __spreadValues(__spreadValues({}, isCustomMaxWidth ? {
|
|
83
|
+
"--ck-container--max-width": typeof maxWidth === "number" ? `${maxWidth}rem` : maxWidth
|
|
84
|
+
} : {}), style);
|
|
85
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
86
|
+
import__.Base,
|
|
87
|
+
__spreadProps(__spreadValues({}, props), {
|
|
88
|
+
className: containerClassName,
|
|
89
|
+
style: styles,
|
|
90
|
+
children
|
|
91
|
+
})
|
|
92
|
+
);
|
|
93
|
+
}
|
|
94
|
+
//# sourceMappingURL=Container.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../lib/components/Container/Container.tsx"],"sourcesContent":["import { CSSProperties, ElementType } from \"react\";\nimport { Base, BaseProps } from \"../../index\";\n\nexport type ContainerProps<T extends ElementType = \"div\"> = BaseProps<T> & {\n maxWidth?: number | string;\n isFluid?: boolean;\n};\n\nexport default function Container<T extends ElementType = \"div\">({\n isFluid,\n maxWidth,\n children,\n className,\n style,\n ...props\n}: ContainerProps<T>) {\n let containerClassName = \"ck-container\";\n\n if (isFluid) {\n containerClassName += \" ck-container--fluid\";\n }\n\n let isCustomMaxWidth = false;\n\n if (\n maxWidth &&\n typeof maxWidth === \"string\" &&\n [\"us\", \"xs\", \"sm\", \"md\", \"lg\", \"xl\", \"ul\"].includes(maxWidth)\n ) {\n containerClassName += \" ck-container--max-width-\" + maxWidth;\n } else if (maxWidth) {\n isCustomMaxWidth = true;\n }\n\n if (className) {\n containerClassName += ` ${className}`;\n }\n\n const styles = {\n ...(isCustomMaxWidth\n ? {\n \"--ck-container--max-width\":\n typeof maxWidth === \"number\" ? `${maxWidth}rem` : maxWidth,\n }\n : {}),\n ...style,\n } as CSSProperties;\n\n return (\n <Base\n {...(props as BaseProps<T>)}\n className={containerClassName}\n style={styles}\n >\n {children}\n </Base>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAiDI;AAhDJ,eAAgC;AAOjB,SAAR,UAA0D,IAO3C;AAP2C,eAC/D;AAAA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EAbF,IAQiE,IAM5D,kBAN4D,IAM5D;AAAA,IALH;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA;AAGA,MAAI,qBAAqB;AAEzB,MAAI,SAAS;AACX,0BAAsB;AAAA,EACxB;AAEA,MAAI,mBAAmB;AAEvB,MACE,YACA,OAAO,aAAa,YACpB,CAAC,MAAM,MAAM,MAAM,MAAM,MAAM,MAAM,IAAI,EAAE,SAAS,QAAQ,GAC5D;AACA,0BAAsB,8BAA8B;AAAA,EACtD,WAAW,UAAU;AACnB,uBAAmB;AAAA,EACrB;AAEA,MAAI,WAAW;AACb,0BAAsB,IAAI,SAAS;AAAA,EACrC;AAEA,QAAM,SAAS,kCACT,mBACA;AAAA,IACE,6BACE,OAAO,aAAa,WAAW,GAAG,QAAQ,QAAQ;AAAA,EACtD,IACA,CAAC,IACF;AAGL,SACE;AAAA,IAAC;AAAA,qCACM,QADN;AAAA,MAEC,WAAW;AAAA,MACX,OAAO;AAAA,MAEN;AAAA;AAAA,EACH;AAEJ;","names":[]}
|