@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,26 @@
|
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
import { ReactNode, ElementType } from 'react';
|
|
3
|
+
|
|
4
|
+
type NavBarPresetItem = {
|
|
5
|
+
label: string;
|
|
6
|
+
href?: string;
|
|
7
|
+
isActive?: (href: string, actualPath: string) => boolean;
|
|
8
|
+
children?: Array<{
|
|
9
|
+
label: string;
|
|
10
|
+
href: string;
|
|
11
|
+
isActive?: (href: string, actualPath: string) => boolean;
|
|
12
|
+
}>;
|
|
13
|
+
};
|
|
14
|
+
type NavBarPresetProps = {
|
|
15
|
+
brand: ReactNode;
|
|
16
|
+
brandHref?: string;
|
|
17
|
+
items: NavBarPresetItem[];
|
|
18
|
+
ariaLabel?: string;
|
|
19
|
+
linkAs?: ElementType;
|
|
20
|
+
linkHrefPropName?: string;
|
|
21
|
+
actualPath: string;
|
|
22
|
+
className: string;
|
|
23
|
+
};
|
|
24
|
+
declare function NavBarPreset({ brand, brandHref, items, ariaLabel, linkAs, linkHrefPropName, actualPath, }: NavBarPresetProps): react.JSX.Element;
|
|
25
|
+
|
|
26
|
+
export { type NavBarPresetItem, type NavBarPresetProps, NavBarPreset as default };
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __defProps = Object.defineProperties;
|
|
5
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
6
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
7
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
8
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
9
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
10
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
11
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
12
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
13
|
+
var __spreadValues = (a, b) => {
|
|
14
|
+
for (var prop in b || (b = {}))
|
|
15
|
+
if (__hasOwnProp.call(b, prop))
|
|
16
|
+
__defNormalProp(a, prop, b[prop]);
|
|
17
|
+
if (__getOwnPropSymbols)
|
|
18
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
19
|
+
if (__propIsEnum.call(b, prop))
|
|
20
|
+
__defNormalProp(a, prop, b[prop]);
|
|
21
|
+
}
|
|
22
|
+
return a;
|
|
23
|
+
};
|
|
24
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
25
|
+
var __export = (target, all) => {
|
|
26
|
+
for (var name in all)
|
|
27
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
28
|
+
};
|
|
29
|
+
var __copyProps = (to, from, except, desc) => {
|
|
30
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
31
|
+
for (let key of __getOwnPropNames(from))
|
|
32
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
33
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
34
|
+
}
|
|
35
|
+
return to;
|
|
36
|
+
};
|
|
37
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
38
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
39
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
40
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
41
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
42
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
43
|
+
mod
|
|
44
|
+
));
|
|
45
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
46
|
+
var NavBarPreset_exports = {};
|
|
47
|
+
__export(NavBarPreset_exports, {
|
|
48
|
+
default: () => NavBarPreset
|
|
49
|
+
});
|
|
50
|
+
module.exports = __toCommonJS(NavBarPreset_exports);
|
|
51
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
52
|
+
var import_NavBarList = __toESM(require("./NavBarList"));
|
|
53
|
+
var import_NavBarDropdown = __toESM(require("./NavBarDropdown"));
|
|
54
|
+
var import_NavBarItem = __toESM(require("./NavBarItem"));
|
|
55
|
+
var import_NavBar = __toESM(require("./NavBar"));
|
|
56
|
+
var import_NavBarBrand = __toESM(require("./NavBarBrand"));
|
|
57
|
+
var import_NavBarToggle = __toESM(require("./NavBarToggle"));
|
|
58
|
+
function isItemActive(href, actualPath, isActive) {
|
|
59
|
+
if (!href) return false;
|
|
60
|
+
return isActive ? isActive(href, actualPath) : actualPath.startsWith(href);
|
|
61
|
+
}
|
|
62
|
+
function NavBarPreset({
|
|
63
|
+
brand,
|
|
64
|
+
brandHref = "/",
|
|
65
|
+
items,
|
|
66
|
+
ariaLabel,
|
|
67
|
+
linkAs = "a",
|
|
68
|
+
linkHrefPropName = "href",
|
|
69
|
+
actualPath
|
|
70
|
+
}) {
|
|
71
|
+
const list = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_NavBarList.default, { children: items.map((item) => {
|
|
72
|
+
if (item.children) {
|
|
73
|
+
const childActiveStates = item.children.map(
|
|
74
|
+
(child) => isItemActive(child.href, actualPath, child.isActive)
|
|
75
|
+
);
|
|
76
|
+
const dropdownActive = childActiveStates.some(Boolean);
|
|
77
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
78
|
+
import_NavBarDropdown.default,
|
|
79
|
+
{
|
|
80
|
+
label: item.label,
|
|
81
|
+
isCurrent: dropdownActive,
|
|
82
|
+
children: item.children.map((child, index) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
83
|
+
import_NavBarItem.default,
|
|
84
|
+
__spreadProps(__spreadValues({
|
|
85
|
+
as: linkAs
|
|
86
|
+
}, { [linkHrefPropName]: child.href }), {
|
|
87
|
+
isCurrent: childActiveStates[index],
|
|
88
|
+
children: child.label
|
|
89
|
+
}),
|
|
90
|
+
child.label
|
|
91
|
+
))
|
|
92
|
+
},
|
|
93
|
+
item.label
|
|
94
|
+
);
|
|
95
|
+
}
|
|
96
|
+
const active = isItemActive(item.href, actualPath, item.isActive);
|
|
97
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
98
|
+
import_NavBarItem.default,
|
|
99
|
+
__spreadProps(__spreadValues({
|
|
100
|
+
as: linkAs
|
|
101
|
+
}, { [linkHrefPropName]: item.href }), {
|
|
102
|
+
isCurrent: active,
|
|
103
|
+
children: item.label
|
|
104
|
+
}),
|
|
105
|
+
item.label
|
|
106
|
+
);
|
|
107
|
+
}) });
|
|
108
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_NavBar.default, { "aria-label": ariaLabel, children: [
|
|
109
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_NavBarBrand.default, { href: brandHref, children: brand }),
|
|
110
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_NavBarToggle.default, { children: list })
|
|
111
|
+
] });
|
|
112
|
+
}
|
|
113
|
+
//# sourceMappingURL=NavBarPreset.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../lib/components/NavBar/NavBarPreset.tsx"],"sourcesContent":["import { ElementType, ReactNode } from \"react\";\nimport NavBarList from \"./NavBarList\";\nimport NavBarDropdown from \"./NavBarDropdown\";\nimport NavBarItem from \"./NavBarItem\";\nimport NavBar from \"./NavBar\";\nimport NavBarBrand from \"./NavBarBrand\";\nimport NavBarToggle from \"./NavBarToggle\";\n\nexport type NavBarPresetItem = {\n label: string;\n href?: string;\n isActive?: (href: string, actualPath: string) => boolean;\n children?: Array<{\n label: string;\n href: string;\n isActive?: (href: string, actualPath: string) => boolean;\n }>;\n};\n\nexport type NavBarPresetProps = {\n brand: ReactNode;\n brandHref?: string;\n items: NavBarPresetItem[];\n ariaLabel?: string;\n linkAs?: ElementType;\n linkHrefPropName?: string;\n actualPath: string;\n className: string;\n};\n\nfunction isItemActive(\n href: string | undefined,\n actualPath: string,\n isActive?: (href: string, actualPath: string) => boolean,\n) {\n if (!href) return false;\n return isActive ? isActive(href, actualPath) : actualPath.startsWith(href);\n}\n\nexport default function NavBarPreset({\n brand,\n brandHref = \"/\",\n items,\n ariaLabel,\n linkAs = \"a\",\n linkHrefPropName = \"href\",\n actualPath,\n}: NavBarPresetProps) {\n const list = (\n <NavBarList>\n {items.map((item) => {\n if (item.children) {\n const childActiveStates = item.children.map((child) =>\n isItemActive(child.href, actualPath, child.isActive),\n );\n const dropdownActive = childActiveStates.some(Boolean);\n\n return (\n <NavBarDropdown\n key={item.label}\n label={item.label}\n isCurrent={dropdownActive}\n >\n {item.children.map((child, index) => (\n <NavBarItem\n key={child.label}\n as={linkAs}\n {...{ [linkHrefPropName]: child.href }}\n isCurrent={childActiveStates[index]}\n >\n {child.label}\n </NavBarItem>\n ))}\n </NavBarDropdown>\n );\n }\n\n const active = isItemActive(item.href, actualPath, item.isActive);\n return (\n <NavBarItem\n key={item.label}\n as={linkAs}\n {...{ [linkHrefPropName]: item.href }}\n isCurrent={active}\n >\n {item.label}\n </NavBarItem>\n );\n })}\n </NavBarList>\n );\n\n return (\n <NavBar aria-label={ariaLabel}>\n <NavBarBrand href={brandHref}>{brand}</NavBarBrand>\n <NavBarToggle>{list}</NavBarToggle>\n </NavBar>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAgEgB;AA/DhB,wBAAuB;AACvB,4BAA2B;AAC3B,wBAAuB;AACvB,oBAAmB;AACnB,yBAAwB;AACxB,0BAAyB;AAwBzB,SAAS,aACP,MACA,YACA,UACA;AACA,MAAI,CAAC,KAAM,QAAO;AAClB,SAAO,WAAW,SAAS,MAAM,UAAU,IAAI,WAAW,WAAW,IAAI;AAC3E;AAEe,SAAR,aAA8B;AAAA,EACnC;AAAA,EACA,YAAY;AAAA,EACZ;AAAA,EACA;AAAA,EACA,SAAS;AAAA,EACT,mBAAmB;AAAA,EACnB;AACF,GAAsB;AACpB,QAAM,OACJ,4CAAC,kBAAAA,SAAA,EACE,gBAAM,IAAI,CAAC,SAAS;AACnB,QAAI,KAAK,UAAU;AACjB,YAAM,oBAAoB,KAAK,SAAS;AAAA,QAAI,CAAC,UAC3C,aAAa,MAAM,MAAM,YAAY,MAAM,QAAQ;AAAA,MACrD;AACA,YAAM,iBAAiB,kBAAkB,KAAK,OAAO;AAErD,aACE;AAAA,QAAC,sBAAAC;AAAA,QAAA;AAAA,UAEC,OAAO,KAAK;AAAA,UACZ,WAAW;AAAA,UAEV,eAAK,SAAS,IAAI,CAAC,OAAO,UACzB;AAAA,YAAC,kBAAAC;AAAA,YAAA;AAAA,cAEC,IAAI;AAAA,eACA,EAAE,CAAC,gBAAgB,GAAG,MAAM,KAAK,IAHtC;AAAA,cAIC,WAAW,kBAAkB,KAAK;AAAA,cAEjC,gBAAM;AAAA;AAAA,YALF,MAAM;AAAA,UAMb,CACD;AAAA;AAAA,QAbI,KAAK;AAAA,MAcZ;AAAA,IAEJ;AAEA,UAAM,SAAS,aAAa,KAAK,MAAM,YAAY,KAAK,QAAQ;AAChE,WACE;AAAA,MAAC,kBAAAA;AAAA,MAAA;AAAA,QAEC,IAAI;AAAA,SACA,EAAE,CAAC,gBAAgB,GAAG,KAAK,KAAK,IAHrC;AAAA,QAIC,WAAW;AAAA,QAEV,eAAK;AAAA;AAAA,MALD,KAAK;AAAA,IAMZ;AAAA,EAEJ,CAAC,GACH;AAGF,SACE,6CAAC,cAAAC,SAAA,EAAO,cAAY,WAClB;AAAA,gDAAC,mBAAAC,SAAA,EAAY,MAAM,WAAY,iBAAM;AAAA,IACrC,4CAAC,oBAAAC,SAAA,EAAc,gBAAK;AAAA,KACtB;AAEJ;","names":["NavBarList","NavBarDropdown","NavBarItem","NavBar","NavBarBrand","NavBarToggle"]}
|
|
@@ -0,0 +1,85 @@
|
|
|
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 NavBarList from "./NavBarList";
|
|
22
|
+
import NavBarDropdown from "./NavBarDropdown";
|
|
23
|
+
import NavBarItem from "./NavBarItem";
|
|
24
|
+
import NavBar from "./NavBar";
|
|
25
|
+
import NavBarBrand from "./NavBarBrand";
|
|
26
|
+
import NavBarToggle from "./NavBarToggle";
|
|
27
|
+
function isItemActive(href, actualPath, isActive) {
|
|
28
|
+
if (!href) return false;
|
|
29
|
+
return isActive ? isActive(href, actualPath) : actualPath.startsWith(href);
|
|
30
|
+
}
|
|
31
|
+
function NavBarPreset({
|
|
32
|
+
brand,
|
|
33
|
+
brandHref = "/",
|
|
34
|
+
items,
|
|
35
|
+
ariaLabel,
|
|
36
|
+
linkAs = "a",
|
|
37
|
+
linkHrefPropName = "href",
|
|
38
|
+
actualPath
|
|
39
|
+
}) {
|
|
40
|
+
const list = /* @__PURE__ */ jsx(NavBarList, { children: items.map((item) => {
|
|
41
|
+
if (item.children) {
|
|
42
|
+
const childActiveStates = item.children.map(
|
|
43
|
+
(child) => isItemActive(child.href, actualPath, child.isActive)
|
|
44
|
+
);
|
|
45
|
+
const dropdownActive = childActiveStates.some(Boolean);
|
|
46
|
+
return /* @__PURE__ */ jsx(
|
|
47
|
+
NavBarDropdown,
|
|
48
|
+
{
|
|
49
|
+
label: item.label,
|
|
50
|
+
isCurrent: dropdownActive,
|
|
51
|
+
children: item.children.map((child, index) => /* @__PURE__ */ jsx(
|
|
52
|
+
NavBarItem,
|
|
53
|
+
__spreadProps(__spreadValues({
|
|
54
|
+
as: linkAs
|
|
55
|
+
}, { [linkHrefPropName]: child.href }), {
|
|
56
|
+
isCurrent: childActiveStates[index],
|
|
57
|
+
children: child.label
|
|
58
|
+
}),
|
|
59
|
+
child.label
|
|
60
|
+
))
|
|
61
|
+
},
|
|
62
|
+
item.label
|
|
63
|
+
);
|
|
64
|
+
}
|
|
65
|
+
const active = isItemActive(item.href, actualPath, item.isActive);
|
|
66
|
+
return /* @__PURE__ */ jsx(
|
|
67
|
+
NavBarItem,
|
|
68
|
+
__spreadProps(__spreadValues({
|
|
69
|
+
as: linkAs
|
|
70
|
+
}, { [linkHrefPropName]: item.href }), {
|
|
71
|
+
isCurrent: active,
|
|
72
|
+
children: item.label
|
|
73
|
+
}),
|
|
74
|
+
item.label
|
|
75
|
+
);
|
|
76
|
+
}) });
|
|
77
|
+
return /* @__PURE__ */ jsxs(NavBar, { "aria-label": ariaLabel, children: [
|
|
78
|
+
/* @__PURE__ */ jsx(NavBarBrand, { href: brandHref, children: brand }),
|
|
79
|
+
/* @__PURE__ */ jsx(NavBarToggle, { children: list })
|
|
80
|
+
] });
|
|
81
|
+
}
|
|
82
|
+
export {
|
|
83
|
+
NavBarPreset as default
|
|
84
|
+
};
|
|
85
|
+
//# sourceMappingURL=NavBarPreset.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../lib/components/NavBar/NavBarPreset.tsx"],"sourcesContent":["import { ElementType, ReactNode } from \"react\";\nimport NavBarList from \"./NavBarList\";\nimport NavBarDropdown from \"./NavBarDropdown\";\nimport NavBarItem from \"./NavBarItem\";\nimport NavBar from \"./NavBar\";\nimport NavBarBrand from \"./NavBarBrand\";\nimport NavBarToggle from \"./NavBarToggle\";\n\nexport type NavBarPresetItem = {\n label: string;\n href?: string;\n isActive?: (href: string, actualPath: string) => boolean;\n children?: Array<{\n label: string;\n href: string;\n isActive?: (href: string, actualPath: string) => boolean;\n }>;\n};\n\nexport type NavBarPresetProps = {\n brand: ReactNode;\n brandHref?: string;\n items: NavBarPresetItem[];\n ariaLabel?: string;\n linkAs?: ElementType;\n linkHrefPropName?: string;\n actualPath: string;\n className: string;\n};\n\nfunction isItemActive(\n href: string | undefined,\n actualPath: string,\n isActive?: (href: string, actualPath: string) => boolean,\n) {\n if (!href) return false;\n return isActive ? isActive(href, actualPath) : actualPath.startsWith(href);\n}\n\nexport default function NavBarPreset({\n brand,\n brandHref = \"/\",\n items,\n ariaLabel,\n linkAs = \"a\",\n linkHrefPropName = \"href\",\n actualPath,\n}: NavBarPresetProps) {\n const list = (\n <NavBarList>\n {items.map((item) => {\n if (item.children) {\n const childActiveStates = item.children.map((child) =>\n isItemActive(child.href, actualPath, child.isActive),\n );\n const dropdownActive = childActiveStates.some(Boolean);\n\n return (\n <NavBarDropdown\n key={item.label}\n label={item.label}\n isCurrent={dropdownActive}\n >\n {item.children.map((child, index) => (\n <NavBarItem\n key={child.label}\n as={linkAs}\n {...{ [linkHrefPropName]: child.href }}\n isCurrent={childActiveStates[index]}\n >\n {child.label}\n </NavBarItem>\n ))}\n </NavBarDropdown>\n );\n }\n\n const active = isItemActive(item.href, actualPath, item.isActive);\n return (\n <NavBarItem\n key={item.label}\n as={linkAs}\n {...{ [linkHrefPropName]: item.href }}\n isCurrent={active}\n >\n {item.label}\n </NavBarItem>\n );\n })}\n </NavBarList>\n );\n\n return (\n <NavBar aria-label={ariaLabel}>\n <NavBarBrand href={brandHref}>{brand}</NavBarBrand>\n <NavBarToggle>{list}</NavBarToggle>\n </NavBar>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;AAgEgB,cA6BZ,YA7BY;AA/DhB,OAAO,gBAAgB;AACvB,OAAO,oBAAoB;AAC3B,OAAO,gBAAgB;AACvB,OAAO,YAAY;AACnB,OAAO,iBAAiB;AACxB,OAAO,kBAAkB;AAwBzB,SAAS,aACP,MACA,YACA,UACA;AACA,MAAI,CAAC,KAAM,QAAO;AAClB,SAAO,WAAW,SAAS,MAAM,UAAU,IAAI,WAAW,WAAW,IAAI;AAC3E;AAEe,SAAR,aAA8B;AAAA,EACnC;AAAA,EACA,YAAY;AAAA,EACZ;AAAA,EACA;AAAA,EACA,SAAS;AAAA,EACT,mBAAmB;AAAA,EACnB;AACF,GAAsB;AACpB,QAAM,OACJ,oBAAC,cACE,gBAAM,IAAI,CAAC,SAAS;AACnB,QAAI,KAAK,UAAU;AACjB,YAAM,oBAAoB,KAAK,SAAS;AAAA,QAAI,CAAC,UAC3C,aAAa,MAAM,MAAM,YAAY,MAAM,QAAQ;AAAA,MACrD;AACA,YAAM,iBAAiB,kBAAkB,KAAK,OAAO;AAErD,aACE;AAAA,QAAC;AAAA;AAAA,UAEC,OAAO,KAAK;AAAA,UACZ,WAAW;AAAA,UAEV,eAAK,SAAS,IAAI,CAAC,OAAO,UACzB;AAAA,YAAC;AAAA;AAAA,cAEC,IAAI;AAAA,eACA,EAAE,CAAC,gBAAgB,GAAG,MAAM,KAAK,IAHtC;AAAA,cAIC,WAAW,kBAAkB,KAAK;AAAA,cAEjC,gBAAM;AAAA;AAAA,YALF,MAAM;AAAA,UAMb,CACD;AAAA;AAAA,QAbI,KAAK;AAAA,MAcZ;AAAA,IAEJ;AAEA,UAAM,SAAS,aAAa,KAAK,MAAM,YAAY,KAAK,QAAQ;AAChE,WACE;AAAA,MAAC;AAAA;AAAA,QAEC,IAAI;AAAA,SACA,EAAE,CAAC,gBAAgB,GAAG,KAAK,KAAK,IAHrC;AAAA,QAIC,WAAW;AAAA,QAEV,eAAK;AAAA;AAAA,MALD,KAAK;AAAA,IAMZ;AAAA,EAEJ,CAAC,GACH;AAGF,SACE,qBAAC,UAAO,cAAY,WAClB;AAAA,wBAAC,eAAY,MAAM,WAAY,iBAAM;AAAA,IACrC,oBAAC,gBAAc,gBAAK;AAAA,KACtB;AAEJ;","names":[]}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
import { ReactNode, CSSProperties } from 'react';
|
|
3
|
+
|
|
4
|
+
type NavBarToggleProps = {
|
|
5
|
+
children: ReactNode;
|
|
6
|
+
openLabel?: string;
|
|
7
|
+
closeLabel?: string;
|
|
8
|
+
className?: string;
|
|
9
|
+
style?: CSSProperties;
|
|
10
|
+
};
|
|
11
|
+
declare function NavBarToggle({ children, openLabel, closeLabel, className, style, }: NavBarToggleProps): react.JSX.Element;
|
|
12
|
+
|
|
13
|
+
export { type NavBarToggleProps, NavBarToggle as default };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
import { ReactNode, CSSProperties } from 'react';
|
|
3
|
+
|
|
4
|
+
type NavBarToggleProps = {
|
|
5
|
+
children: ReactNode;
|
|
6
|
+
openLabel?: string;
|
|
7
|
+
closeLabel?: string;
|
|
8
|
+
className?: string;
|
|
9
|
+
style?: CSSProperties;
|
|
10
|
+
};
|
|
11
|
+
declare function NavBarToggle({ children, openLabel, closeLabel, className, style, }: NavBarToggleProps): react.JSX.Element;
|
|
12
|
+
|
|
13
|
+
export { type NavBarToggleProps, NavBarToggle as default };
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
"use client";
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
20
|
+
var NavBarToggle_exports = {};
|
|
21
|
+
__export(NavBarToggle_exports, {
|
|
22
|
+
default: () => NavBarToggle
|
|
23
|
+
});
|
|
24
|
+
module.exports = __toCommonJS(NavBarToggle_exports);
|
|
25
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
26
|
+
var import_react = require("react");
|
|
27
|
+
var import_NavBar = require("./NavBar.context");
|
|
28
|
+
var import_SrOnly = require("../../core/SrOnly");
|
|
29
|
+
function NavBarToggle({
|
|
30
|
+
children,
|
|
31
|
+
openLabel = "Ouvrir le menu",
|
|
32
|
+
closeLabel = "Fermer le menu",
|
|
33
|
+
className,
|
|
34
|
+
style
|
|
35
|
+
}) {
|
|
36
|
+
const [isOpen, setOpen] = (0, import_react.useState)(false);
|
|
37
|
+
const panelId = (0, import_react.useId)();
|
|
38
|
+
const closeMenu = (0, import_react.useCallback)(() => setOpen(false), []);
|
|
39
|
+
let panelClass = "ck-nav-bar__panel";
|
|
40
|
+
if (isOpen) {
|
|
41
|
+
panelClass += " ck-nav-bar__panel--open";
|
|
42
|
+
}
|
|
43
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
|
|
44
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
45
|
+
"button",
|
|
46
|
+
{
|
|
47
|
+
type: "button",
|
|
48
|
+
className: className ? `ck-nav-bar__toggle ${className}` : "ck-nav-bar__toggle",
|
|
49
|
+
style,
|
|
50
|
+
"aria-expanded": isOpen,
|
|
51
|
+
"aria-controls": panelId,
|
|
52
|
+
onClick: () => setOpen((prev) => !prev),
|
|
53
|
+
children: [
|
|
54
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: "ck-nav-bar__toggle-bar", "aria-hidden": "true" }),
|
|
55
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_SrOnly.SrOnly, { children: isOpen ? closeLabel : openLabel })
|
|
56
|
+
]
|
|
57
|
+
}
|
|
58
|
+
),
|
|
59
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { id: panelId, className: panelClass, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_NavBar.NavBarToggleContext.Provider, { value: closeMenu, children }) })
|
|
60
|
+
] });
|
|
61
|
+
}
|
|
62
|
+
//# sourceMappingURL=NavBarToggle.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../lib/components/NavBar/NavBarToggle.tsx"],"sourcesContent":["\"use client\";\nimport { CSSProperties, ReactNode, useCallback, useId, useState } from \"react\";\nimport { NavBarToggleContext } from \"./NavBar.context\";\nimport { SrOnly } from \"../../core/SrOnly\";\n\nexport type NavBarToggleProps = {\n children: ReactNode;\n openLabel?: string;\n closeLabel?: string;\n className?: string;\n style?: CSSProperties;\n};\n\nexport default function NavBarToggle({\n children,\n openLabel = \"Ouvrir le menu\",\n closeLabel = \"Fermer le menu\",\n className,\n style,\n}: NavBarToggleProps) {\n const [isOpen, setOpen] = useState(false);\n const panelId = useId();\n\n const closeMenu = useCallback(() => setOpen(false), []);\n\n let panelClass = \"ck-nav-bar__panel\";\n\n if (isOpen) {\n panelClass += \" ck-nav-bar__panel--open\";\n }\n\n return (\n <>\n <button\n type=\"button\"\n className={\n className ? `ck-nav-bar__toggle ${className}` : \"ck-nav-bar__toggle\"\n }\n style={style}\n aria-expanded={isOpen}\n aria-controls={panelId}\n onClick={() => setOpen((prev) => !prev)}\n >\n <span className=\"ck-nav-bar__toggle-bar\" aria-hidden=\"true\" />\n <SrOnly>{isOpen ? closeLabel : openLabel}</SrOnly>\n </button>\n <div id={panelId} className={panelClass}>\n <NavBarToggleContext.Provider value={closeMenu}>\n {children}\n </NavBarToggleContext.Provider>\n </div>\n </>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAgCI;AA/BJ,mBAAuE;AACvE,oBAAoC;AACpC,oBAAuB;AAUR,SAAR,aAA8B;AAAA,EACnC;AAAA,EACA,YAAY;AAAA,EACZ,aAAa;AAAA,EACb;AAAA,EACA;AACF,GAAsB;AACpB,QAAM,CAAC,QAAQ,OAAO,QAAI,uBAAS,KAAK;AACxC,QAAM,cAAU,oBAAM;AAEtB,QAAM,gBAAY,0BAAY,MAAM,QAAQ,KAAK,GAAG,CAAC,CAAC;AAEtD,MAAI,aAAa;AAEjB,MAAI,QAAQ;AACV,kBAAc;AAAA,EAChB;AAEA,SACE,4EACE;AAAA;AAAA,MAAC;AAAA;AAAA,QACC,MAAK;AAAA,QACL,WACE,YAAY,sBAAsB,SAAS,KAAK;AAAA,QAElD;AAAA,QACA,iBAAe;AAAA,QACf,iBAAe;AAAA,QACf,SAAS,MAAM,QAAQ,CAAC,SAAS,CAAC,IAAI;AAAA,QAEtC;AAAA,sDAAC,UAAK,WAAU,0BAAyB,eAAY,QAAO;AAAA,UAC5D,4CAAC,wBAAQ,mBAAS,aAAa,WAAU;AAAA;AAAA;AAAA,IAC3C;AAAA,IACA,4CAAC,SAAI,IAAI,SAAS,WAAW,YAC3B,sDAAC,kCAAoB,UAApB,EAA6B,OAAO,WAClC,UACH,GACF;AAAA,KACF;AAEJ;","names":[]}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { useCallback, useId, useState } from "react";
|
|
4
|
+
import { NavBarToggleContext } from "./NavBar.context";
|
|
5
|
+
import { SrOnly } from "../../core/SrOnly";
|
|
6
|
+
function NavBarToggle({
|
|
7
|
+
children,
|
|
8
|
+
openLabel = "Ouvrir le menu",
|
|
9
|
+
closeLabel = "Fermer le menu",
|
|
10
|
+
className,
|
|
11
|
+
style
|
|
12
|
+
}) {
|
|
13
|
+
const [isOpen, setOpen] = useState(false);
|
|
14
|
+
const panelId = useId();
|
|
15
|
+
const closeMenu = useCallback(() => setOpen(false), []);
|
|
16
|
+
let panelClass = "ck-nav-bar__panel";
|
|
17
|
+
if (isOpen) {
|
|
18
|
+
panelClass += " ck-nav-bar__panel--open";
|
|
19
|
+
}
|
|
20
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
21
|
+
/* @__PURE__ */ jsxs(
|
|
22
|
+
"button",
|
|
23
|
+
{
|
|
24
|
+
type: "button",
|
|
25
|
+
className: className ? `ck-nav-bar__toggle ${className}` : "ck-nav-bar__toggle",
|
|
26
|
+
style,
|
|
27
|
+
"aria-expanded": isOpen,
|
|
28
|
+
"aria-controls": panelId,
|
|
29
|
+
onClick: () => setOpen((prev) => !prev),
|
|
30
|
+
children: [
|
|
31
|
+
/* @__PURE__ */ jsx("span", { className: "ck-nav-bar__toggle-bar", "aria-hidden": "true" }),
|
|
32
|
+
/* @__PURE__ */ jsx(SrOnly, { children: isOpen ? closeLabel : openLabel })
|
|
33
|
+
]
|
|
34
|
+
}
|
|
35
|
+
),
|
|
36
|
+
/* @__PURE__ */ jsx("div", { id: panelId, className: panelClass, children: /* @__PURE__ */ jsx(NavBarToggleContext.Provider, { value: closeMenu, children }) })
|
|
37
|
+
] });
|
|
38
|
+
}
|
|
39
|
+
export {
|
|
40
|
+
NavBarToggle as default
|
|
41
|
+
};
|
|
42
|
+
//# sourceMappingURL=NavBarToggle.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../lib/components/NavBar/NavBarToggle.tsx"],"sourcesContent":["\"use client\";\nimport { CSSProperties, ReactNode, useCallback, useId, useState } from \"react\";\nimport { NavBarToggleContext } from \"./NavBar.context\";\nimport { SrOnly } from \"../../core/SrOnly\";\n\nexport type NavBarToggleProps = {\n children: ReactNode;\n openLabel?: string;\n closeLabel?: string;\n className?: string;\n style?: CSSProperties;\n};\n\nexport default function NavBarToggle({\n children,\n openLabel = \"Ouvrir le menu\",\n closeLabel = \"Fermer le menu\",\n className,\n style,\n}: NavBarToggleProps) {\n const [isOpen, setOpen] = useState(false);\n const panelId = useId();\n\n const closeMenu = useCallback(() => setOpen(false), []);\n\n let panelClass = \"ck-nav-bar__panel\";\n\n if (isOpen) {\n panelClass += \" ck-nav-bar__panel--open\";\n }\n\n return (\n <>\n <button\n type=\"button\"\n className={\n className ? `ck-nav-bar__toggle ${className}` : \"ck-nav-bar__toggle\"\n }\n style={style}\n aria-expanded={isOpen}\n aria-controls={panelId}\n onClick={() => setOpen((prev) => !prev)}\n >\n <span className=\"ck-nav-bar__toggle-bar\" aria-hidden=\"true\" />\n <SrOnly>{isOpen ? closeLabel : openLabel}</SrOnly>\n </button>\n <div id={panelId} className={panelClass}>\n <NavBarToggleContext.Provider value={closeMenu}>\n {children}\n </NavBarToggleContext.Provider>\n </div>\n </>\n );\n}\n"],"mappings":";AAgCI,mBAWI,KAVF,YADF;AA/BJ,SAAmC,aAAa,OAAO,gBAAgB;AACvE,SAAS,2BAA2B;AACpC,SAAS,cAAc;AAUR,SAAR,aAA8B;AAAA,EACnC;AAAA,EACA,YAAY;AAAA,EACZ,aAAa;AAAA,EACb;AAAA,EACA;AACF,GAAsB;AACpB,QAAM,CAAC,QAAQ,OAAO,IAAI,SAAS,KAAK;AACxC,QAAM,UAAU,MAAM;AAEtB,QAAM,YAAY,YAAY,MAAM,QAAQ,KAAK,GAAG,CAAC,CAAC;AAEtD,MAAI,aAAa;AAEjB,MAAI,QAAQ;AACV,kBAAc;AAAA,EAChB;AAEA,SACE,iCACE;AAAA;AAAA,MAAC;AAAA;AAAA,QACC,MAAK;AAAA,QACL,WACE,YAAY,sBAAsB,SAAS,KAAK;AAAA,QAElD;AAAA,QACA,iBAAe;AAAA,QACf,iBAAe;AAAA,QACf,SAAS,MAAM,QAAQ,CAAC,SAAS,CAAC,IAAI;AAAA,QAEtC;AAAA,8BAAC,UAAK,WAAU,0BAAyB,eAAY,QAAO;AAAA,UAC5D,oBAAC,UAAQ,mBAAS,aAAa,WAAU;AAAA;AAAA;AAAA,IAC3C;AAAA,IACA,oBAAC,SAAI,IAAI,SAAS,WAAW,YAC3B,8BAAC,oBAAoB,UAApB,EAA6B,OAAO,WAClC,UACH,GACF;AAAA,KACF;AAEJ;","names":[]}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export { default as NavBar, NavBarProps } from './NavBar.mjs';
|
|
2
|
+
export { default as NavBarBrand, NavBarBrandProps } from './NavBarBrand.mjs';
|
|
3
|
+
export { default as NavBarDropdown, NavBarDropdownProps } from './NavBarDropdown.mjs';
|
|
4
|
+
export { default as NavBarItem, NavBarItemProps } from './NavBarItem.mjs';
|
|
5
|
+
export { default as NavBarList, NavBarListProps } from './NavBarList.mjs';
|
|
6
|
+
export { default as NavBarPreset, NavBarPresetItem, NavBarPresetProps } from './NavBarPreset.mjs';
|
|
7
|
+
export { default as NavBarToggle, NavBarToggleProps } from './NavBarToggle.mjs';
|
|
8
|
+
import 'react';
|
|
9
|
+
import '../../core/Base/Base.mjs';
|
|
10
|
+
import '../../core/Breakpoint/BreakpointType.mjs';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export { default as NavBar, NavBarProps } from './NavBar.js';
|
|
2
|
+
export { default as NavBarBrand, NavBarBrandProps } from './NavBarBrand.js';
|
|
3
|
+
export { default as NavBarDropdown, NavBarDropdownProps } from './NavBarDropdown.js';
|
|
4
|
+
export { default as NavBarItem, NavBarItemProps } from './NavBarItem.js';
|
|
5
|
+
export { default as NavBarList, NavBarListProps } from './NavBarList.js';
|
|
6
|
+
export { default as NavBarPreset, NavBarPresetItem, NavBarPresetProps } from './NavBarPreset.js';
|
|
7
|
+
export { default as NavBarToggle, NavBarToggleProps } from './NavBarToggle.js';
|
|
8
|
+
import 'react';
|
|
9
|
+
import '../../core/Base/Base.js';
|
|
10
|
+
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 NavBar_exports = {};
|
|
30
|
+
__export(NavBar_exports, {
|
|
31
|
+
NavBar: () => import_NavBar.default,
|
|
32
|
+
NavBarBrand: () => import_NavBarBrand.default,
|
|
33
|
+
NavBarDropdown: () => import_NavBarDropdown.default,
|
|
34
|
+
NavBarItem: () => import_NavBarItem.default,
|
|
35
|
+
NavBarList: () => import_NavBarList.default,
|
|
36
|
+
NavBarPreset: () => import_NavBarPreset.default,
|
|
37
|
+
NavBarToggle: () => import_NavBarToggle.default
|
|
38
|
+
});
|
|
39
|
+
module.exports = __toCommonJS(NavBar_exports);
|
|
40
|
+
var import_NavBar = __toESM(require("./NavBar"));
|
|
41
|
+
var import_NavBarBrand = __toESM(require("./NavBarBrand"));
|
|
42
|
+
var import_NavBarDropdown = __toESM(require("./NavBarDropdown"));
|
|
43
|
+
var import_NavBarItem = __toESM(require("./NavBarItem"));
|
|
44
|
+
var import_NavBarList = __toESM(require("./NavBarList"));
|
|
45
|
+
var import_NavBarPreset = __toESM(require("./NavBarPreset"));
|
|
46
|
+
var import_NavBarToggle = __toESM(require("./NavBarToggle"));
|
|
47
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
48
|
+
0 && (module.exports = {
|
|
49
|
+
NavBar,
|
|
50
|
+
NavBarBrand,
|
|
51
|
+
NavBarDropdown,
|
|
52
|
+
NavBarItem,
|
|
53
|
+
NavBarList,
|
|
54
|
+
NavBarPreset,
|
|
55
|
+
NavBarToggle
|
|
56
|
+
});
|
|
57
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../lib/components/NavBar/index.ts"],"sourcesContent":["export { default as NavBar } from \"./NavBar\";\nexport type { NavBarProps } from \"./NavBar\";\nexport { default as NavBarBrand } from \"./NavBarBrand\";\nexport type { NavBarBrandProps } from \"./NavBarBrand\";\nexport { default as NavBarDropdown } from \"./NavBarDropdown\";\nexport type { NavBarDropdownProps } from \"./NavBarDropdown\";\nexport { default as NavBarItem } from \"./NavBarItem\";\nexport type { NavBarItemProps } from \"./NavBarItem\";\nexport { default as NavBarList } from \"./NavBarList\";\nexport type { NavBarListProps } from \"./NavBarList\";\nexport { default as NavBarPreset } from \"./NavBarPreset\";\nexport type { NavBarPresetProps, NavBarPresetItem } from \"./NavBarPreset\";\nexport { default as NavBarToggle } from \"./NavBarToggle\";\nexport type { NavBarToggleProps } from \"./NavBarToggle\";\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,oBAAkC;AAElC,yBAAuC;AAEvC,4BAA0C;AAE1C,wBAAsC;AAEtC,wBAAsC;AAEtC,0BAAwC;AAExC,0BAAwC;","names":[]}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { default as default2 } from "./NavBar";
|
|
2
|
+
import { default as default3 } from "./NavBarBrand";
|
|
3
|
+
import { default as default4 } from "./NavBarDropdown";
|
|
4
|
+
import { default as default5 } from "./NavBarItem";
|
|
5
|
+
import { default as default6 } from "./NavBarList";
|
|
6
|
+
import { default as default7 } from "./NavBarPreset";
|
|
7
|
+
import { default as default8 } from "./NavBarToggle";
|
|
8
|
+
export {
|
|
9
|
+
default2 as NavBar,
|
|
10
|
+
default3 as NavBarBrand,
|
|
11
|
+
default4 as NavBarDropdown,
|
|
12
|
+
default5 as NavBarItem,
|
|
13
|
+
default6 as NavBarList,
|
|
14
|
+
default7 as NavBarPreset,
|
|
15
|
+
default8 as NavBarToggle
|
|
16
|
+
};
|
|
17
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../lib/components/NavBar/index.ts"],"sourcesContent":["export { default as NavBar } from \"./NavBar\";\nexport type { NavBarProps } from \"./NavBar\";\nexport { default as NavBarBrand } from \"./NavBarBrand\";\nexport type { NavBarBrandProps } from \"./NavBarBrand\";\nexport { default as NavBarDropdown } from \"./NavBarDropdown\";\nexport type { NavBarDropdownProps } from \"./NavBarDropdown\";\nexport { default as NavBarItem } from \"./NavBarItem\";\nexport type { NavBarItemProps } from \"./NavBarItem\";\nexport { default as NavBarList } from \"./NavBarList\";\nexport type { NavBarListProps } from \"./NavBarList\";\nexport { default as NavBarPreset } from \"./NavBarPreset\";\nexport type { NavBarPresetProps, NavBarPresetItem } from \"./NavBarPreset\";\nexport { default as NavBarToggle } from \"./NavBarToggle\";\nexport type { NavBarToggleProps } from \"./NavBarToggle\";\n"],"mappings":"AAAA,SAAoB,WAAXA,gBAAyB;AAElC,SAAoB,WAAXA,gBAA8B;AAEvC,SAAoB,WAAXA,gBAAiC;AAE1C,SAAoB,WAAXA,gBAA6B;AAEtC,SAAoB,WAAXA,gBAA6B;AAEtC,SAAoB,WAAXA,gBAA+B;AAExC,SAAoB,WAAXA,gBAA+B;","names":["default"]}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
import { ElementType, ReactNode } from 'react';
|
|
3
|
+
import { BaseProps } from '../../core/Base/Base.mjs';
|
|
4
|
+
import '../../core/Breakpoint/BreakpointType.mjs';
|
|
5
|
+
|
|
6
|
+
type PillColor = "primary" | "secondary" | "neutral" | "success" | "warning" | "danger" | "info";
|
|
7
|
+
type PillVariant = "solid" | "soft" | "outline" | "subtle";
|
|
8
|
+
type PillSize = "sm" | "md" | "lg";
|
|
9
|
+
type PillProps<T extends ElementType = "div"> = BaseProps<T> & {
|
|
10
|
+
color?: PillColor;
|
|
11
|
+
variant?: PillVariant;
|
|
12
|
+
size?: PillSize;
|
|
13
|
+
icon?: ReactNode;
|
|
14
|
+
onDismiss?: () => void;
|
|
15
|
+
dismissLabel?: string;
|
|
16
|
+
};
|
|
17
|
+
declare function Pill<T extends ElementType = "div">({ color, variant, size, icon, onDismiss, dismissLabel, children, className, style, ...props }: PillProps<T>): react.JSX.Element;
|
|
18
|
+
|
|
19
|
+
export { type PillColor, type PillProps, type PillSize, type PillVariant, Pill as default };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
import { ElementType, ReactNode } from 'react';
|
|
3
|
+
import { BaseProps } from '../../core/Base/Base.js';
|
|
4
|
+
import '../../core/Breakpoint/BreakpointType.js';
|
|
5
|
+
|
|
6
|
+
type PillColor = "primary" | "secondary" | "neutral" | "success" | "warning" | "danger" | "info";
|
|
7
|
+
type PillVariant = "solid" | "soft" | "outline" | "subtle";
|
|
8
|
+
type PillSize = "sm" | "md" | "lg";
|
|
9
|
+
type PillProps<T extends ElementType = "div"> = BaseProps<T> & {
|
|
10
|
+
color?: PillColor;
|
|
11
|
+
variant?: PillVariant;
|
|
12
|
+
size?: PillSize;
|
|
13
|
+
icon?: ReactNode;
|
|
14
|
+
onDismiss?: () => void;
|
|
15
|
+
dismissLabel?: string;
|
|
16
|
+
};
|
|
17
|
+
declare function Pill<T extends ElementType = "div">({ color, variant, size, icon, onDismiss, dismissLabel, children, className, style, ...props }: PillProps<T>): react.JSX.Element;
|
|
18
|
+
|
|
19
|
+
export { type PillColor, type PillProps, type PillSize, type PillVariant, Pill as default };
|