@orion-ds/react 4.2.13 → 4.3.1
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/ComponentShowcase.cjs +1 -0
- package/dist/ComponentShowcase.mjs +600 -0
- package/dist/blocks/index.cjs +1 -0
- package/dist/blocks/index.d.ts +9 -0
- package/dist/blocks/index.d.ts.map +1 -0
- package/dist/blocks/index.mjs +56 -0
- package/dist/blocks/sections/ActivityFeed/ActivityFeed.cjs +1 -0
- package/dist/blocks/sections/ActivityFeed/ActivityFeed.d.ts +5 -0
- package/dist/blocks/sections/ActivityFeed/ActivityFeed.d.ts.map +1 -0
- package/dist/blocks/sections/ActivityFeed/ActivityFeed.mjs +97 -0
- package/dist/blocks/sections/ActivityFeed/ActivityFeed.module.css +1 -0
- package/dist/blocks/sections/ActivityFeed/ActivityFeed.module.css.cjs +1 -0
- package/dist/blocks/sections/ActivityFeed/ActivityFeed.module.css.mjs +47 -0
- package/dist/blocks/sections/ActivityFeed/ActivityFeed.types.d.ts +34 -0
- package/dist/blocks/sections/ActivityFeed/ActivityFeed.types.d.ts.map +1 -0
- package/dist/blocks/sections/ActivityFeed/index.d.ts +3 -0
- package/dist/blocks/sections/ActivityFeed/index.d.ts.map +1 -0
- package/dist/blocks/sections/AppDownload/AppDownload.cjs +1 -0
- package/dist/blocks/sections/AppDownload/AppDownload.d.ts +8 -0
- package/dist/blocks/sections/AppDownload/AppDownload.d.ts.map +1 -0
- package/dist/blocks/sections/AppDownload/AppDownload.mjs +159 -0
- package/dist/blocks/sections/AppDownload/AppDownload.module.css +1 -0
- package/dist/blocks/sections/AppDownload/AppDownload.module.css.cjs +1 -0
- package/dist/blocks/sections/AppDownload/AppDownload.module.css.mjs +55 -0
- package/dist/blocks/sections/AppDownload/AppDownload.types.d.ts +114 -0
- package/dist/blocks/sections/AppDownload/AppDownload.types.d.ts.map +1 -0
- package/dist/blocks/sections/AppDownload/index.d.ts +3 -0
- package/dist/blocks/sections/AppDownload/index.d.ts.map +1 -0
- package/dist/blocks/sections/Blog/Blog.cjs +1 -0
- package/dist/blocks/sections/Blog/Blog.d.ts +8 -0
- package/dist/blocks/sections/Blog/Blog.d.ts.map +1 -0
- package/dist/blocks/sections/Blog/Blog.mjs +141 -0
- package/dist/blocks/sections/Blog/Blog.module.css +1 -0
- package/dist/blocks/sections/Blog/Blog.module.css.cjs +1 -0
- package/dist/blocks/sections/Blog/Blog.module.css.mjs +55 -0
- package/dist/blocks/sections/Blog/Blog.types.d.ts +139 -0
- package/dist/blocks/sections/Blog/Blog.types.d.ts.map +1 -0
- package/dist/blocks/sections/Blog/index.d.ts +3 -0
- package/dist/blocks/sections/Blog/index.d.ts.map +1 -0
- package/dist/blocks/sections/Breadcrumbs/Breadcrumbs.cjs +1 -0
- package/dist/blocks/sections/Breadcrumbs/Breadcrumbs.d.ts +4 -0
- package/dist/blocks/sections/Breadcrumbs/Breadcrumbs.d.ts.map +1 -0
- package/dist/blocks/sections/Breadcrumbs/Breadcrumbs.mjs +80 -0
- package/dist/blocks/sections/Breadcrumbs/Breadcrumbs.module.css +1 -0
- package/dist/blocks/sections/Breadcrumbs/Breadcrumbs.module.css.cjs +1 -0
- package/dist/blocks/sections/Breadcrumbs/Breadcrumbs.module.css.mjs +29 -0
- package/dist/blocks/sections/Breadcrumbs/Breadcrumbs.types.d.ts +78 -0
- package/dist/blocks/sections/Breadcrumbs/Breadcrumbs.types.d.ts.map +1 -0
- package/dist/blocks/sections/Breadcrumbs/index.d.ts +3 -0
- package/dist/blocks/sections/Breadcrumbs/index.d.ts.map +1 -0
- package/dist/blocks/sections/CTA/CTA.cjs +1 -0
- package/dist/blocks/sections/CTA/CTA.d.ts +4 -0
- package/dist/blocks/sections/CTA/CTA.d.ts.map +1 -0
- package/dist/blocks/sections/CTA/CTA.mjs +45 -0
- package/dist/blocks/sections/CTA/CTA.module.css +1 -0
- package/dist/blocks/sections/CTA/CTA.module.css.cjs +1 -0
- package/dist/blocks/sections/CTA/CTA.module.css.mjs +30 -0
- package/dist/blocks/sections/CTA/CTA.types.d.ts +74 -0
- package/dist/blocks/sections/CTA/CTA.types.d.ts.map +1 -0
- package/dist/blocks/sections/CTA/index.d.ts +6 -0
- package/dist/blocks/sections/CTA/index.d.ts.map +1 -0
- package/dist/blocks/sections/CarouselSection/CarouselSection.cjs +1 -0
- package/dist/blocks/sections/CarouselSection/CarouselSection.d.ts +4 -0
- package/dist/blocks/sections/CarouselSection/CarouselSection.d.ts.map +1 -0
- package/dist/blocks/sections/CarouselSection/CarouselSection.mjs +165 -0
- package/dist/blocks/sections/CarouselSection/CarouselSection.module.css +1 -0
- package/dist/blocks/sections/CarouselSection/CarouselSection.module.css.cjs +1 -0
- package/dist/blocks/sections/CarouselSection/CarouselSection.module.css.mjs +27 -0
- package/dist/blocks/sections/CarouselSection/CarouselSection.types.d.ts +114 -0
- package/dist/blocks/sections/CarouselSection/CarouselSection.types.d.ts.map +1 -0
- package/dist/blocks/sections/CarouselSection/index.d.ts +11 -0
- package/dist/blocks/sections/CarouselSection/index.d.ts.map +1 -0
- package/dist/blocks/sections/Chat/Chat.cjs +1 -0
- package/dist/blocks/sections/Chat/Chat.d.ts +4 -0
- package/dist/blocks/sections/Chat/Chat.d.ts.map +1 -0
- package/dist/blocks/sections/Chat/Chat.mjs +129 -0
- package/dist/blocks/sections/Chat/Chat.module.css +1 -0
- package/dist/blocks/sections/Chat/Chat.module.css.cjs +1 -0
- package/dist/blocks/sections/Chat/Chat.module.css.mjs +21 -0
- package/dist/blocks/sections/Chat/Chat.types 2.d.ts +8 -0
- package/dist/blocks/sections/Chat/Chat.types 2.d.ts.map +1 -0
- package/dist/blocks/sections/Chat/Chat.types.d.ts +8 -0
- package/dist/blocks/sections/Chat/Chat.types.d.ts.map +1 -0
- package/dist/blocks/sections/Chat/index.d.ts +19 -0
- package/dist/blocks/sections/Chat/index.d.ts.map +1 -0
- package/dist/blocks/sections/Comparison/Comparison.cjs +1 -0
- package/dist/blocks/sections/Comparison/Comparison.d.ts +8 -0
- package/dist/blocks/sections/Comparison/Comparison.d.ts.map +1 -0
- package/dist/blocks/sections/Comparison/Comparison.mjs +110 -0
- package/dist/blocks/sections/Comparison/Comparison.module.css +1 -0
- package/dist/blocks/sections/Comparison/Comparison.module.css.cjs +1 -0
- package/dist/blocks/sections/Comparison/Comparison.module.css.mjs +51 -0
- package/dist/blocks/sections/Comparison/Comparison.types.d.ts +120 -0
- package/dist/blocks/sections/Comparison/Comparison.types.d.ts.map +1 -0
- package/dist/blocks/sections/Comparison/index.d.ts +3 -0
- package/dist/blocks/sections/Comparison/index.d.ts.map +1 -0
- package/dist/blocks/sections/Contact/Contact.cjs +1 -0
- package/dist/blocks/sections/Contact/Contact.d.ts +4 -0
- package/dist/blocks/sections/Contact/Contact.d.ts.map +1 -0
- package/dist/blocks/sections/Contact/Contact.mjs +120 -0
- package/dist/blocks/sections/Contact/Contact.module.css +1 -0
- package/dist/blocks/sections/Contact/Contact.module.css.cjs +1 -0
- package/dist/blocks/sections/Contact/Contact.module.css.mjs +42 -0
- package/dist/blocks/sections/Contact/Contact.types.d.ts +133 -0
- package/dist/blocks/sections/Contact/Contact.types.d.ts.map +1 -0
- package/dist/blocks/sections/Contact/index.d.ts +6 -0
- package/dist/blocks/sections/Contact/index.d.ts.map +1 -0
- package/dist/blocks/sections/EmptyState/EmptyState.cjs +1 -0
- package/dist/blocks/sections/EmptyState/EmptyState.d.ts +4 -0
- package/dist/blocks/sections/EmptyState/EmptyState.d.ts.map +1 -0
- package/dist/blocks/sections/EmptyState/EmptyState.mjs +40 -0
- package/dist/blocks/sections/EmptyState/EmptyState.module.css +1 -0
- package/dist/blocks/sections/EmptyState/EmptyState.module.css.cjs +1 -0
- package/dist/blocks/sections/EmptyState/EmptyState.module.css.mjs +25 -0
- package/dist/blocks/sections/EmptyState/EmptyState.types.d.ts +65 -0
- package/dist/blocks/sections/EmptyState/EmptyState.types.d.ts.map +1 -0
- package/dist/blocks/sections/EmptyState/index.d.ts +3 -0
- package/dist/blocks/sections/EmptyState/index.d.ts.map +1 -0
- package/dist/blocks/sections/FAQ/FAQ.cjs +1 -0
- package/dist/blocks/sections/FAQ/FAQ.d.ts +4 -0
- package/dist/blocks/sections/FAQ/FAQ.d.ts.map +1 -0
- package/dist/blocks/sections/FAQ/FAQ.mjs +73 -0
- package/dist/blocks/sections/FAQ/FAQ.module.css +1 -0
- package/dist/blocks/sections/FAQ/FAQ.module.css.cjs +1 -0
- package/dist/blocks/sections/FAQ/FAQ.module.css.mjs +36 -0
- package/dist/blocks/sections/FAQ/FAQ.types.d.ts +117 -0
- package/dist/blocks/sections/FAQ/FAQ.types.d.ts.map +1 -0
- package/dist/blocks/sections/FAQ/FAQItemCard.cjs +1 -0
- package/dist/blocks/sections/FAQ/FAQItemCard.d.ts +7 -0
- package/dist/blocks/sections/FAQ/FAQItemCard.d.ts.map +1 -0
- package/dist/blocks/sections/FAQ/FAQItemCard.mjs +43 -0
- package/dist/blocks/sections/FAQ/index.d.ts +7 -0
- package/dist/blocks/sections/FAQ/index.d.ts.map +1 -0
- package/dist/blocks/sections/Features/FeatureCard.cjs +1 -0
- package/dist/blocks/sections/Features/FeatureCard.d.ts +7 -0
- package/dist/blocks/sections/Features/FeatureCard.d.ts.map +1 -0
- package/dist/blocks/sections/Features/FeatureCard.mjs +27 -0
- package/dist/blocks/sections/Features/Features.cjs +1 -0
- package/dist/blocks/sections/Features/Features.d.ts +4 -0
- package/dist/blocks/sections/Features/Features.d.ts.map +1 -0
- package/dist/blocks/sections/Features/Features.mjs +51 -0
- package/dist/blocks/sections/Features/Features.module.css +1 -0
- package/dist/blocks/sections/Features/Features.module.css.cjs +1 -0
- package/dist/blocks/sections/Features/Features.module.css.mjs +36 -0
- package/dist/blocks/sections/Features/Features.types.d.ts +100 -0
- package/dist/blocks/sections/Features/Features.types.d.ts.map +1 -0
- package/dist/blocks/sections/Features/index.d.ts +7 -0
- package/dist/blocks/sections/Features/index.d.ts.map +1 -0
- package/dist/blocks/sections/Footer/Footer.cjs +1 -0
- package/dist/blocks/sections/Footer/Footer.d.ts +4 -0
- package/dist/blocks/sections/Footer/Footer.d.ts.map +1 -0
- package/dist/blocks/sections/Footer/Footer.mjs +102 -0
- package/dist/blocks/sections/Footer/Footer.module.css +1 -0
- package/dist/blocks/sections/Footer/Footer.module.css.cjs +1 -0
- package/dist/blocks/sections/Footer/Footer.module.css.mjs +50 -0
- package/dist/blocks/sections/Footer/Footer.types.d.ts +129 -0
- package/dist/blocks/sections/Footer/Footer.types.d.ts.map +1 -0
- package/dist/blocks/sections/Footer/index.d.ts +6 -0
- package/dist/blocks/sections/Footer/index.d.ts.map +1 -0
- package/dist/blocks/sections/Gallery/Gallery.cjs +1 -0
- package/dist/blocks/sections/Gallery/Gallery.d.ts +8 -0
- package/dist/blocks/sections/Gallery/Gallery.d.ts.map +1 -0
- package/dist/blocks/sections/Gallery/Gallery.mjs +191 -0
- package/dist/blocks/sections/Gallery/Gallery.module.css +1 -0
- package/dist/blocks/sections/Gallery/Gallery.module.css.cjs +1 -0
- package/dist/blocks/sections/Gallery/Gallery.module.css.mjs +51 -0
- package/dist/blocks/sections/Gallery/Gallery.types.d.ts +114 -0
- package/dist/blocks/sections/Gallery/Gallery.types.d.ts.map +1 -0
- package/dist/blocks/sections/Gallery/index.d.ts +3 -0
- package/dist/blocks/sections/Gallery/index.d.ts.map +1 -0
- package/dist/blocks/sections/Hero/Hero.cjs +1 -0
- package/dist/blocks/sections/Hero/Hero.d.ts +10 -0
- package/dist/blocks/sections/Hero/Hero.d.ts.map +1 -0
- package/dist/blocks/sections/Hero/Hero.mjs +128 -0
- package/dist/blocks/sections/Hero/Hero.module.css +1 -0
- package/dist/blocks/sections/Hero/Hero.module.css.cjs +1 -0
- package/dist/blocks/sections/Hero/Hero.module.css.mjs +51 -0
- package/dist/blocks/sections/Hero/Hero.types.d.ts +167 -0
- package/dist/blocks/sections/Hero/Hero.types.d.ts.map +1 -0
- package/dist/blocks/sections/Hero/HeroHighlight.cjs +1 -0
- package/dist/blocks/sections/Hero/HeroHighlight.d.ts +7 -0
- package/dist/blocks/sections/Hero/HeroHighlight.d.ts.map +1 -0
- package/dist/blocks/sections/Hero/HeroHighlight.mjs +7 -0
- package/dist/blocks/sections/Hero/index.d.ts +7 -0
- package/dist/blocks/sections/Hero/index.d.ts.map +1 -0
- package/dist/blocks/sections/LogoCloud/LogoCloud.cjs +1 -0
- package/dist/blocks/sections/LogoCloud/LogoCloud.d.ts +4 -0
- package/dist/blocks/sections/LogoCloud/LogoCloud.d.ts.map +1 -0
- package/dist/blocks/sections/LogoCloud/LogoCloud.mjs +87 -0
- package/dist/blocks/sections/LogoCloud/LogoCloud.module.css +1 -0
- package/dist/blocks/sections/LogoCloud/LogoCloud.module.css.cjs +1 -0
- package/dist/blocks/sections/LogoCloud/LogoCloud.module.css.mjs +41 -0
- package/dist/blocks/sections/LogoCloud/LogoCloud.types.d.ts +101 -0
- package/dist/blocks/sections/LogoCloud/LogoCloud.types.d.ts.map +1 -0
- package/dist/blocks/sections/LogoCloud/index.d.ts +6 -0
- package/dist/blocks/sections/LogoCloud/index.d.ts.map +1 -0
- package/dist/blocks/sections/Newsletter/Newsletter.cjs +1 -0
- package/dist/blocks/sections/Newsletter/Newsletter.d.ts +4 -0
- package/dist/blocks/sections/Newsletter/Newsletter.d.ts.map +1 -0
- package/dist/blocks/sections/Newsletter/Newsletter.mjs +97 -0
- package/dist/blocks/sections/Newsletter/Newsletter.module.css +1 -0
- package/dist/blocks/sections/Newsletter/Newsletter.module.css.cjs +1 -0
- package/dist/blocks/sections/Newsletter/Newsletter.module.css.mjs +42 -0
- package/dist/blocks/sections/Newsletter/Newsletter.types.d.ts +97 -0
- package/dist/blocks/sections/Newsletter/Newsletter.types.d.ts.map +1 -0
- package/dist/blocks/sections/Newsletter/index.d.ts +6 -0
- package/dist/blocks/sections/Newsletter/index.d.ts.map +1 -0
- package/dist/blocks/sections/Pricing/Pricing.cjs +1 -0
- package/dist/blocks/sections/Pricing/Pricing.d.ts +4 -0
- package/dist/blocks/sections/Pricing/Pricing.d.ts.map +1 -0
- package/dist/blocks/sections/Pricing/Pricing.mjs +43 -0
- package/dist/blocks/sections/Pricing/Pricing.module.css +1 -0
- package/dist/blocks/sections/Pricing/Pricing.module.css.cjs +1 -0
- package/dist/blocks/sections/Pricing/Pricing.module.css.mjs +54 -0
- package/dist/blocks/sections/Pricing/Pricing.types.d.ts +129 -0
- package/dist/blocks/sections/Pricing/Pricing.types.d.ts.map +1 -0
- package/dist/blocks/sections/Pricing/PricingCard.cjs +1 -0
- package/dist/blocks/sections/Pricing/PricingCard.d.ts +7 -0
- package/dist/blocks/sections/Pricing/PricingCard.d.ts.map +1 -0
- package/dist/blocks/sections/Pricing/PricingCard.mjs +40 -0
- package/dist/blocks/sections/Pricing/index.d.ts +7 -0
- package/dist/blocks/sections/Pricing/index.d.ts.map +1 -0
- package/dist/blocks/sections/SettingsLayout/SettingsLayout.cjs +1 -0
- package/dist/blocks/sections/SettingsLayout/SettingsLayout.d.ts +4 -0
- package/dist/blocks/sections/SettingsLayout/SettingsLayout.d.ts.map +1 -0
- package/dist/blocks/sections/SettingsLayout/SettingsLayout.mjs +90 -0
- package/dist/blocks/sections/SettingsLayout/SettingsLayout.module.css +1 -0
- package/dist/blocks/sections/SettingsLayout/SettingsLayout.module.css.cjs +1 -0
- package/dist/blocks/sections/SettingsLayout/SettingsLayout.module.css.mjs +55 -0
- package/dist/blocks/sections/SettingsLayout/SettingsLayout.types.d.ts +112 -0
- package/dist/blocks/sections/SettingsLayout/SettingsLayout.types.d.ts.map +1 -0
- package/dist/blocks/sections/SettingsLayout/index.d.ts +3 -0
- package/dist/blocks/sections/SettingsLayout/index.d.ts.map +1 -0
- package/dist/blocks/sections/SocialProof/SocialProof.cjs +1 -0
- package/dist/blocks/sections/SocialProof/SocialProof.d.ts +8 -0
- package/dist/blocks/sections/SocialProof/SocialProof.d.ts.map +1 -0
- package/dist/blocks/sections/SocialProof/SocialProof.mjs +107 -0
- package/dist/blocks/sections/SocialProof/SocialProof.module.css +1 -0
- package/dist/blocks/sections/SocialProof/SocialProof.module.css.cjs +1 -0
- package/dist/blocks/sections/SocialProof/SocialProof.module.css.mjs +63 -0
- package/dist/blocks/sections/SocialProof/SocialProof.types.d.ts +138 -0
- package/dist/blocks/sections/SocialProof/SocialProof.types.d.ts.map +1 -0
- package/dist/blocks/sections/SocialProof/index.d.ts +3 -0
- package/dist/blocks/sections/SocialProof/index.d.ts.map +1 -0
- package/dist/blocks/sections/Stats/StatItemCard.cjs +1 -0
- package/dist/blocks/sections/Stats/StatItemCard.d.ts +7 -0
- package/dist/blocks/sections/Stats/StatItemCard.d.ts.map +1 -0
- package/dist/blocks/sections/Stats/StatItemCard.mjs +40 -0
- package/dist/blocks/sections/Stats/Stats.cjs +1 -0
- package/dist/blocks/sections/Stats/Stats.d.ts +4 -0
- package/dist/blocks/sections/Stats/Stats.d.ts.map +1 -0
- package/dist/blocks/sections/Stats/Stats.mjs +59 -0
- package/dist/blocks/sections/Stats/Stats.module.css +1 -0
- package/dist/blocks/sections/Stats/Stats.module.css.cjs +1 -0
- package/dist/blocks/sections/Stats/Stats.module.css.mjs +47 -0
- package/dist/blocks/sections/Stats/Stats.types.d.ts +131 -0
- package/dist/blocks/sections/Stats/Stats.types.d.ts.map +1 -0
- package/dist/blocks/sections/Stats/index.d.ts +7 -0
- package/dist/blocks/sections/Stats/index.d.ts.map +1 -0
- package/dist/blocks/sections/Stepper/Stepper.cjs +1 -0
- package/dist/blocks/sections/Stepper/Stepper.d.ts +4 -0
- package/dist/blocks/sections/Stepper/Stepper.d.ts.map +1 -0
- package/dist/blocks/sections/Stepper/Stepper.mjs +91 -0
- package/dist/blocks/sections/Stepper/Stepper.module.css +1 -0
- package/dist/blocks/sections/Stepper/Stepper.module.css.cjs +1 -0
- package/dist/blocks/sections/Stepper/Stepper.module.css.mjs +53 -0
- package/dist/blocks/sections/Stepper/Stepper.types.d.ts +101 -0
- package/dist/blocks/sections/Stepper/Stepper.types.d.ts.map +1 -0
- package/dist/blocks/sections/Stepper/index.d.ts +3 -0
- package/dist/blocks/sections/Stepper/index.d.ts.map +1 -0
- package/dist/blocks/sections/Team/Team.cjs +1 -0
- package/dist/blocks/sections/Team/Team.d.ts +4 -0
- package/dist/blocks/sections/Team/Team.d.ts.map +1 -0
- package/dist/blocks/sections/Team/Team.mjs +51 -0
- package/dist/blocks/sections/Team/Team.module.css +1 -0
- package/dist/blocks/sections/Team/Team.module.css.cjs +1 -0
- package/dist/blocks/sections/Team/Team.module.css.mjs +45 -0
- package/dist/blocks/sections/Team/Team.types.d.ts +139 -0
- package/dist/blocks/sections/Team/Team.types.d.ts.map +1 -0
- package/dist/blocks/sections/Team/TeamMemberCard.cjs +1 -0
- package/dist/blocks/sections/Team/TeamMemberCard.d.ts +7 -0
- package/dist/blocks/sections/Team/TeamMemberCard.d.ts.map +1 -0
- package/dist/blocks/sections/Team/TeamMemberCard.mjs +47 -0
- package/dist/blocks/sections/Team/index.d.ts +7 -0
- package/dist/blocks/sections/Team/index.d.ts.map +1 -0
- package/dist/blocks/sections/Testimonials/TestimonialCard.cjs +1 -0
- package/dist/blocks/sections/Testimonials/TestimonialCard.d.ts +7 -0
- package/dist/blocks/sections/Testimonials/TestimonialCard.d.ts.map +1 -0
- package/dist/blocks/sections/Testimonials/TestimonialCard.mjs +53 -0
- package/dist/blocks/sections/Testimonials/Testimonials.cjs +1 -0
- package/dist/blocks/sections/Testimonials/Testimonials.d.ts +4 -0
- package/dist/blocks/sections/Testimonials/Testimonials.d.ts.map +1 -0
- package/dist/blocks/sections/Testimonials/Testimonials.mjs +55 -0
- package/dist/blocks/sections/Testimonials/Testimonials.module.css +1 -0
- package/dist/blocks/sections/Testimonials/Testimonials.module.css.cjs +1 -0
- package/dist/blocks/sections/Testimonials/Testimonials.module.css.mjs +45 -0
- package/dist/blocks/sections/Testimonials/Testimonials.types.d.ts +126 -0
- package/dist/blocks/sections/Testimonials/Testimonials.types.d.ts.map +1 -0
- package/dist/blocks/sections/Testimonials/index.d.ts +7 -0
- package/dist/blocks/sections/Testimonials/index.d.ts.map +1 -0
- package/dist/blocks/sections/Timeline/Timeline.cjs +1 -0
- package/dist/blocks/sections/Timeline/Timeline.d.ts +8 -0
- package/dist/blocks/sections/Timeline/Timeline.d.ts.map +1 -0
- package/dist/blocks/sections/Timeline/Timeline.mjs +84 -0
- package/dist/blocks/sections/Timeline/Timeline.module.css +1 -0
- package/dist/blocks/sections/Timeline/Timeline.module.css.cjs +1 -0
- package/dist/blocks/sections/Timeline/Timeline.module.css.mjs +37 -0
- package/dist/blocks/sections/Timeline/Timeline.types.d.ts +104 -0
- package/dist/blocks/sections/Timeline/Timeline.types.d.ts.map +1 -0
- package/dist/blocks/sections/Timeline/index.d.ts +3 -0
- package/dist/blocks/sections/Timeline/index.d.ts.map +1 -0
- package/dist/blocks/sections/index.d.ts +53 -0
- package/dist/blocks/sections/index.d.ts.map +1 -0
- package/dist/blocks/templates/index.d.ts +8 -0
- package/dist/blocks/templates/index.d.ts.map +1 -0
- package/dist/blocks.css +60 -0
- package/dist/components/Accordion/Accordion.cjs +1 -0
- package/dist/components/Accordion/Accordion.mjs +94 -0
- package/dist/components/ActivityFeed/ActivityFeed.cjs +1 -0
- package/dist/components/ActivityFeed/ActivityFeed.mjs +128 -0
- package/dist/components/AgentCard/AgentCard.cjs +1 -0
- package/dist/components/AgentCard/AgentCard.mjs +120 -0
- package/dist/components/Alert/Alert.cjs +1 -0
- package/dist/components/Alert/Alert.mjs +51 -0
- package/dist/components/AlertDialog/AlertDialog.cjs +1 -0
- package/dist/components/AlertDialog/AlertDialog.mjs +91 -0
- package/dist/components/Avatar/Avatar.cjs +1 -0
- package/dist/components/Avatar/Avatar.mjs +58 -0
- package/dist/components/Badge/Badge.cjs +1 -0
- package/dist/components/Badge/Badge.mjs +20 -0
- package/dist/components/Banner/Banner.cjs +1 -0
- package/dist/components/Banner/Banner.mjs +107 -0
- package/dist/components/Breadcrumb/Breadcrumb.cjs +1 -0
- package/dist/components/Breadcrumb/Breadcrumb.mjs +84 -0
- package/dist/components/Button/Button.cjs +1 -0
- package/dist/components/Button/Button.mjs +71 -0
- package/dist/components/Calendar/Calendar.cjs +1 -0
- package/dist/components/Calendar/Calendar.mjs +135 -0
- package/dist/components/Card/Card.cjs +1 -0
- package/dist/components/Card/Card.mjs +106 -0
- package/dist/components/Carousel/Carousel.cjs +1 -0
- package/dist/components/Carousel/Carousel.mjs +178 -0
- package/dist/components/Carousel/CarouselCard.cjs +1 -0
- package/dist/components/Carousel/CarouselCard.mjs +38 -0
- package/dist/components/Chart/Chart.cjs +1 -0
- package/dist/components/Chart/Chart.mjs +103 -0
- package/dist/components/Chat/Chat.cjs +1 -0
- package/dist/components/Chat/Chat.mjs +56 -0
- package/dist/components/Chat/components/ChatAttachment.cjs +1 -0
- package/dist/components/Chat/components/ChatAttachment.mjs +125 -0
- package/dist/components/Chat/components/ChatAudioPlayer.cjs +1 -0
- package/dist/components/Chat/components/ChatAudioPlayer.mjs +127 -0
- package/dist/components/Chat/components/ChatCodeBlock.cjs +1 -0
- package/dist/components/Chat/components/ChatCodeBlock.mjs +93 -0
- package/dist/components/Chat/components/ChatFileUpload.cjs +1 -0
- package/dist/components/Chat/components/ChatFileUpload.mjs +114 -0
- package/dist/components/Chat/components/ChatHeader.cjs +1 -0
- package/dist/components/Chat/components/ChatHeader.mjs +36 -0
- package/dist/components/Chat/components/ChatImagePreview.cjs +1 -0
- package/dist/components/Chat/components/ChatImagePreview.mjs +69 -0
- package/dist/components/Chat/components/ChatInput.cjs +1 -0
- package/dist/components/Chat/components/ChatInput.mjs +188 -0
- package/dist/components/Chat/components/ChatLightbox.cjs +1 -0
- package/dist/components/Chat/components/ChatLightbox.mjs +57 -0
- package/dist/components/Chat/components/ChatMarkdown.cjs +1 -0
- package/dist/components/Chat/components/ChatMarkdown.mjs +55 -0
- package/dist/components/Chat/components/ChatMessage.cjs +1 -0
- package/dist/components/Chat/components/ChatMessage.mjs +173 -0
- package/dist/components/Chat/components/ChatMessages.cjs +1 -0
- package/dist/components/Chat/components/ChatMessages.mjs +46 -0
- package/dist/components/Chat/components/ChatSidebar.cjs +1 -0
- package/dist/components/Chat/components/ChatSidebar.mjs +217 -0
- package/dist/components/Chat/components/ChatTypingIndicator.cjs +1 -0
- package/dist/components/Chat/components/ChatTypingIndicator.mjs +31 -0
- package/dist/components/Chat/components/ChatVoiceRecorder.cjs +1 -0
- package/dist/components/Chat/components/ChatVoiceRecorder.mjs +111 -0
- package/dist/components/Checkbox/Checkbox.cjs +1 -0
- package/dist/components/Checkbox/Checkbox.mjs +84 -0
- package/dist/components/Chip/Chip.cjs +1 -0
- package/dist/components/Chip/Chip.mjs +86 -0
- package/dist/components/CodeEditor/CodeEditor.cjs +6 -0
- package/dist/components/CodeEditor/CodeEditor.mjs +255 -0
- package/dist/components/Collapsible/Collapsible.cjs +1 -0
- package/dist/components/Collapsible/Collapsible.mjs +114 -0
- package/dist/components/CollapsibleFolder/CollapsibleFolder.cjs +1 -0
- package/dist/components/CollapsibleFolder/CollapsibleFolder.mjs +196 -0
- package/dist/components/Combobox/Combobox.cjs +1 -0
- package/dist/components/Combobox/Combobox.mjs +271 -0
- package/dist/components/Command/Command.cjs +1 -0
- package/dist/components/Command/Command.mjs +248 -0
- package/dist/components/CommandBar/CommandBar.cjs +1 -0
- package/dist/components/CommandBar/CommandBar.mjs +193 -0
- package/dist/components/DataTable/DataTable.cjs +1 -0
- package/dist/components/DataTable/DataTable.mjs +339 -0
- package/dist/components/DatePicker/DatePicker.cjs +1 -0
- package/dist/components/DatePicker/DatePicker.mjs +104 -0
- package/dist/components/DetailPanel/DetailPanel.cjs +1 -0
- package/dist/components/DetailPanel/DetailPanel.mjs +103 -0
- package/dist/components/Divider/Divider.cjs +1 -0
- package/dist/components/Divider/Divider.mjs +48 -0
- package/dist/components/Drawer/Drawer.cjs +1 -0
- package/dist/components/Drawer/Drawer.mjs +132 -0
- package/dist/components/Dropdown/Dropdown.cjs +1 -0
- package/dist/components/Dropdown/Dropdown.mjs +176 -0
- package/dist/components/EmptyState/EmptyState.cjs +1 -0
- package/dist/components/EmptyState/EmptyState.mjs +30 -0
- package/dist/components/ErrorBoundary/ErrorBoundary.cjs +1 -0
- package/dist/components/ErrorBoundary/ErrorBoundary.mjs +43 -0
- package/dist/components/Field/Field.cjs +1 -0
- package/dist/components/Field/Field.mjs +107 -0
- package/dist/components/FileUploader/FileUploader.cjs +1 -0
- package/dist/components/FileUploader/FileUploader.mjs +202 -0
- package/dist/components/FilterBar/FilterBar.cjs +1 -0
- package/dist/components/FilterBar/FilterBar.mjs +164 -0
- package/dist/components/FontLoader/FontLoader.cjs +1 -0
- package/dist/components/FontLoader/FontLoader.mjs +47 -0
- package/dist/components/FormSection/FormSection.cjs +1 -0
- package/dist/components/FormSection/FormSection.mjs +84 -0
- package/dist/components/Icon/Icon.cjs +1 -0
- package/dist/components/Icon/Icon.mjs +54 -0
- package/dist/components/IconGallery/IconGallery.cjs +3 -0
- package/dist/components/IconGallery/IconGallery.mjs +205 -0
- package/dist/components/InputOTP/InputOTP.cjs +1 -0
- package/dist/components/InputOTP/InputOTP.mjs +143 -0
- package/dist/components/KanbanBoard/KanbanBoard.cjs +1 -0
- package/dist/components/KanbanBoard/KanbanBoard.mjs +190 -0
- package/dist/components/Link/Link.cjs +1 -0
- package/dist/components/Link/Link.mjs +82 -0
- package/dist/components/List/List.cjs +1 -0
- package/dist/components/List/List.mjs +95 -0
- package/dist/components/MetricCards/MetricCards.cjs +1 -0
- package/dist/components/MetricCards/MetricCards.mjs +125 -0
- package/dist/components/Modal/Modal.cjs +1 -0
- package/dist/components/Modal/Modal.mjs +72 -0
- package/dist/components/NavTree/NavTree.cjs +1 -0
- package/dist/components/NavTree/NavTree.mjs +273 -0
- package/dist/components/Navbar/Navbar.cjs +1 -0
- package/dist/components/Navbar/Navbar.mjs +129 -0
- package/dist/components/NotificationCenter/NotificationCenter.cjs +1 -0
- package/dist/components/NotificationCenter/NotificationCenter.mjs +172 -0
- package/dist/components/PageHeader/PageHeader.cjs +1 -0
- package/dist/components/PageHeader/PageHeader.mjs +105 -0
- package/dist/components/Pagination/Pagination.cjs +1 -0
- package/dist/components/Pagination/Pagination.mjs +136 -0
- package/dist/components/Popover/Popover.cjs +1 -0
- package/dist/components/Popover/Popover.mjs +191 -0
- package/dist/components/ProgressBar/ProgressBar.cjs +1 -0
- package/dist/components/ProgressBar/ProgressBar.mjs +54 -0
- package/dist/components/QuickActions/QuickActions.cjs +1 -0
- package/dist/components/QuickActions/QuickActions.mjs +148 -0
- package/dist/components/Radio/Radio.cjs +1 -0
- package/dist/components/Radio/Radio.mjs +76 -0
- package/dist/components/SearchInput/SearchInput.cjs +1 -0
- package/dist/components/SearchInput/SearchInput.mjs +87 -0
- package/dist/components/Select/Select.cjs +1 -0
- package/dist/components/Select/Select.mjs +78 -0
- package/dist/components/Sidebar/Sidebar.cjs +1 -0
- package/dist/components/Sidebar/Sidebar.mjs +153 -0
- package/dist/components/Skeleton/Skeleton.cjs +1 -0
- package/dist/components/Skeleton/Skeleton.mjs +54 -0
- package/dist/components/Slider/Slider.cjs +1 -0
- package/dist/components/Slider/Slider.mjs +109 -0
- package/dist/components/Spinner/Spinner.cjs +1 -0
- package/dist/components/Spinner/Spinner.mjs +28 -0
- package/dist/components/Stepper/Stepper.cjs +1 -0
- package/dist/components/Stepper/Stepper.mjs +133 -0
- package/dist/components/Switch/Switch.cjs +1 -0
- package/dist/components/Switch/Switch.mjs +80 -0
- package/dist/components/Table/Table.cjs +1 -0
- package/dist/components/Table/Table.mjs +101 -0
- package/dist/components/Tabs/Tabs.cjs +1 -0
- package/dist/components/Tabs/Tabs.mjs +97 -0
- package/dist/components/Textarea/Textarea.cjs +1 -0
- package/dist/components/Textarea/Textarea.mjs +118 -0
- package/dist/components/ThemeController/ThemeController.cjs +1 -0
- package/dist/components/ThemeController/ThemeController.mjs +389 -0
- package/dist/components/Toast/Toast.cjs +1 -0
- package/dist/components/Toast/Toast.mjs +225 -0
- package/dist/components/Toggle/Toggle.cjs +1 -0
- package/dist/components/Toggle/Toggle.mjs +48 -0
- package/dist/components/ToggleGroup/ToggleGroup.cjs +1 -0
- package/dist/components/ToggleGroup/ToggleGroup.mjs +101 -0
- package/dist/components/Tooltip/Tooltip.cjs +1 -0
- package/dist/components/Tooltip/Tooltip.mjs +39 -0
- package/dist/components/UserMenu/UserMenu.cjs +1 -0
- package/dist/components/UserMenu/UserMenu.mjs +161 -0
- package/dist/components/WorkspaceSwitcher/WorkspaceSwitcher.cjs +1 -0
- package/dist/components/WorkspaceSwitcher/WorkspaceSwitcher.mjs +119 -0
- package/dist/contexts/ThemeContext.cjs +38 -0
- package/dist/contexts/ThemeContext.mjs +98 -0
- package/dist/dist/components/Carousel/Carousel.module.css.cjs +1 -0
- package/dist/dist/components/Carousel/Carousel.module.css.mjs +60 -0
- package/dist/dist/components/Carousel/CarouselCard.cjs +1 -0
- package/dist/dist/components/Carousel/CarouselCard.mjs +38 -0
- package/dist/examples/LandingPage.example.cjs +1 -0
- package/dist/examples/LandingPage.example.mjs +106 -0
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +95 -95
- package/dist/sections/Container/Container.cjs +1 -0
- package/dist/sections/Container/Container.mjs +26 -0
- package/dist/sections/Section/Section.cjs +1 -0
- package/dist/sections/Section/Section.mjs +36 -0
- package/dist/templates/index.cjs +1 -0
- package/dist/templates/index.d.ts +1 -0
- package/dist/templates/index.mjs +1 -0
- package/dist/tokens/utils.cjs +1 -0
- package/dist/tokens/utils.mjs +33 -0
- package/package.json +13 -2
- package/dist/index10.cjs +0 -1
- package/dist/index10.mjs +0 -58
- package/dist/index11.cjs +0 -1
- package/dist/index11.mjs +0 -20
- package/dist/index116.cjs +0 -1
- package/dist/index116.mjs +0 -36
- package/dist/index117.cjs +0 -1
- package/dist/index117.mjs +0 -46
- package/dist/index118.cjs +0 -1
- package/dist/index118.mjs +0 -173
- package/dist/index119.cjs +0 -1
- package/dist/index119.mjs +0 -188
- package/dist/index12.cjs +0 -1
- package/dist/index12.mjs +0 -107
- package/dist/index120.cjs +0 -1
- package/dist/index120.mjs +0 -31
- package/dist/index121.cjs +0 -1
- package/dist/index121.mjs +0 -93
- package/dist/index122.cjs +0 -1
- package/dist/index122.mjs +0 -55
- package/dist/index123.cjs +0 -1
- package/dist/index123.mjs +0 -69
- package/dist/index124.cjs +0 -1
- package/dist/index124.mjs +0 -127
- package/dist/index125.cjs +0 -1
- package/dist/index125.mjs +0 -111
- package/dist/index126.cjs +0 -1
- package/dist/index126.mjs +0 -114
- package/dist/index127.cjs +0 -1
- package/dist/index127.mjs +0 -125
- package/dist/index128.cjs +0 -1
- package/dist/index128.mjs +0 -217
- package/dist/index13.cjs +0 -1
- package/dist/index13.mjs +0 -84
- package/dist/index14.cjs +0 -1
- package/dist/index14.mjs +0 -71
- package/dist/index15.cjs +0 -1
- package/dist/index15.mjs +0 -135
- package/dist/index16.cjs +0 -1
- package/dist/index16.mjs +0 -106
- package/dist/index17.cjs +0 -1
- package/dist/index17.mjs +0 -178
- package/dist/index18.cjs +0 -1
- package/dist/index18.mjs +0 -38
- package/dist/index185.cjs +0 -1
- package/dist/index185.mjs +0 -57
- package/dist/index19.cjs +0 -1
- package/dist/index19.mjs +0 -103
- package/dist/index20.cjs +0 -1
- package/dist/index20.mjs +0 -56
- package/dist/index21.cjs +0 -1
- package/dist/index21.mjs +0 -84
- package/dist/index22.cjs +0 -1
- package/dist/index22.mjs +0 -86
- package/dist/index23.cjs +0 -6
- package/dist/index23.mjs +0 -255
- package/dist/index24.cjs +0 -1
- package/dist/index24.mjs +0 -114
- package/dist/index25.cjs +0 -1
- package/dist/index25.mjs +0 -196
- package/dist/index26.cjs +0 -1
- package/dist/index26.mjs +0 -271
- package/dist/index27.cjs +0 -1
- package/dist/index27.mjs +0 -248
- package/dist/index28.cjs +0 -1
- package/dist/index28.mjs +0 -193
- package/dist/index29.cjs +0 -1
- package/dist/index29.mjs +0 -26
- package/dist/index3.cjs +0 -1
- package/dist/index3.mjs +0 -600
- package/dist/index30.cjs +0 -1
- package/dist/index30.mjs +0 -339
- package/dist/index31.cjs +0 -1
- package/dist/index31.mjs +0 -104
- package/dist/index32.cjs +0 -1
- package/dist/index32.mjs +0 -103
- package/dist/index33.cjs +0 -1
- package/dist/index33.mjs +0 -48
- package/dist/index34.cjs +0 -1
- package/dist/index34.mjs +0 -132
- package/dist/index35.cjs +0 -1
- package/dist/index35.mjs +0 -176
- package/dist/index36.cjs +0 -1
- package/dist/index36.mjs +0 -30
- package/dist/index37.cjs +0 -1
- package/dist/index37.mjs +0 -43
- package/dist/index38.cjs +0 -1
- package/dist/index38.mjs +0 -107
- package/dist/index39.cjs +0 -1
- package/dist/index39.mjs +0 -202
- package/dist/index40.cjs +0 -1
- package/dist/index40.mjs +0 -164
- package/dist/index41.cjs +0 -1
- package/dist/index41.mjs +0 -47
- package/dist/index42.cjs +0 -1
- package/dist/index42.mjs +0 -84
- package/dist/index43.cjs +0 -1
- package/dist/index43.mjs +0 -54
- package/dist/index44.cjs +0 -3
- package/dist/index44.mjs +0 -205
- package/dist/index46.cjs +0 -1
- package/dist/index46.mjs +0 -143
- package/dist/index47.cjs +0 -1
- package/dist/index47.mjs +0 -190
- package/dist/index48.cjs +0 -1
- package/dist/index48.mjs +0 -106
- package/dist/index49.cjs +0 -1
- package/dist/index49.mjs +0 -82
- package/dist/index5.cjs +0 -1
- package/dist/index5.mjs +0 -94
- package/dist/index50.cjs +0 -1
- package/dist/index50.mjs +0 -95
- package/dist/index51.cjs +0 -1
- package/dist/index51.mjs +0 -125
- package/dist/index52.cjs +0 -1
- package/dist/index52.mjs +0 -72
- package/dist/index53.cjs +0 -1
- package/dist/index53.mjs +0 -273
- package/dist/index54.cjs +0 -1
- package/dist/index54.mjs +0 -129
- package/dist/index55.cjs +0 -1
- package/dist/index55.mjs +0 -172
- package/dist/index56.cjs +0 -1
- package/dist/index56.mjs +0 -105
- package/dist/index57.cjs +0 -1
- package/dist/index57.mjs +0 -136
- package/dist/index58.cjs +0 -1
- package/dist/index58.mjs +0 -191
- package/dist/index59.cjs +0 -1
- package/dist/index59.mjs +0 -54
- package/dist/index6.cjs +0 -1
- package/dist/index6.mjs +0 -128
- package/dist/index60.cjs +0 -1
- package/dist/index60.mjs +0 -148
- package/dist/index61.cjs +0 -1
- package/dist/index61.mjs +0 -76
- package/dist/index62.cjs +0 -1
- package/dist/index62.mjs +0 -87
- package/dist/index63.cjs +0 -1
- package/dist/index63.mjs +0 -36
- package/dist/index64.cjs +0 -1
- package/dist/index64.mjs +0 -78
- package/dist/index65.cjs +0 -1
- package/dist/index65.mjs +0 -153
- package/dist/index66.cjs +0 -1
- package/dist/index66.mjs +0 -54
- package/dist/index67.cjs +0 -1
- package/dist/index67.mjs +0 -109
- package/dist/index68.cjs +0 -1
- package/dist/index68.mjs +0 -28
- package/dist/index69.cjs +0 -1
- package/dist/index69.mjs +0 -133
- package/dist/index7.cjs +0 -1
- package/dist/index7.mjs +0 -120
- package/dist/index70.cjs +0 -1
- package/dist/index70.mjs +0 -80
- package/dist/index71.cjs +0 -1
- package/dist/index71.mjs +0 -101
- package/dist/index72.cjs +0 -1
- package/dist/index72.mjs +0 -97
- package/dist/index73.cjs +0 -1
- package/dist/index73.mjs +0 -118
- package/dist/index74.cjs +0 -1
- package/dist/index74.mjs +0 -389
- package/dist/index75.cjs +0 -38
- package/dist/index75.mjs +0 -98
- package/dist/index76.cjs +0 -1
- package/dist/index76.mjs +0 -225
- package/dist/index77.cjs +0 -1
- package/dist/index77.mjs +0 -48
- package/dist/index78.cjs +0 -1
- package/dist/index78.mjs +0 -101
- package/dist/index79.cjs +0 -1
- package/dist/index79.mjs +0 -39
- package/dist/index8.cjs +0 -1
- package/dist/index8.mjs +0 -51
- package/dist/index80.cjs +0 -1
- package/dist/index80.mjs +0 -161
- package/dist/index81.cjs +0 -1
- package/dist/index81.mjs +0 -119
- package/dist/index82.cjs +0 -1
- package/dist/index82.mjs +0 -33
- package/dist/index9.cjs +0 -1
- package/dist/index9.mjs +0 -91
- /package/dist/{index112.cjs → components/Accordion/Accordion.module.css.cjs} +0 -0
- /package/dist/{index112.mjs → components/Accordion/Accordion.module.css.mjs} +0 -0
- /package/dist/{index130.cjs → components/ActivityFeed/ActivityFeed.module.css.cjs} +0 -0
- /package/dist/{index130.mjs → components/ActivityFeed/ActivityFeed.module.css.mjs} +0 -0
- /package/dist/{index105.cjs → components/AgentCard/AgentCard.module.css.cjs} +0 -0
- /package/dist/{index105.mjs → components/AgentCard/AgentCard.module.css.mjs} +0 -0
- /package/dist/{index140.cjs → components/Alert/Alert.module.css.cjs} +0 -0
- /package/dist/{index140.mjs → components/Alert/Alert.module.css.mjs} +0 -0
- /package/dist/{index100.cjs → components/AlertDialog/AlertDialog.module.css.cjs} +0 -0
- /package/dist/{index100.mjs → components/AlertDialog/AlertDialog.module.css.mjs} +0 -0
- /package/dist/{index131.cjs → components/Avatar/Avatar.module.css.cjs} +0 -0
- /package/dist/{index131.mjs → components/Avatar/Avatar.module.css.mjs} +0 -0
- /package/dist/{index144.cjs → components/Badge/Badge.module.css.cjs} +0 -0
- /package/dist/{index144.mjs → components/Badge/Badge.module.css.mjs} +0 -0
- /package/dist/{index141.cjs → components/Banner/Banner.module.css.cjs} +0 -0
- /package/dist/{index141.mjs → components/Banner/Banner.module.css.mjs} +0 -0
- /package/dist/{index173.cjs → components/Breadcrumb/Breadcrumb.module.css.cjs} +0 -0
- /package/dist/{index173.mjs → components/Breadcrumb/Breadcrumb.module.css.mjs} +0 -0
- /package/dist/{index158.cjs → components/Button/Button.module.css.cjs} +0 -0
- /package/dist/{index158.mjs → components/Button/Button.module.css.mjs} +0 -0
- /package/dist/{index164.cjs → components/Calendar/Calendar.module.css.cjs} +0 -0
- /package/dist/{index164.mjs → components/Calendar/Calendar.module.css.mjs} +0 -0
- /package/dist/{index113.cjs → components/Card/Card.module.css.cjs} +0 -0
- /package/dist/{index113.mjs → components/Card/Card.module.css.mjs} +0 -0
- /package/dist/{index161.cjs → components/Carousel/Carousel.module.css.cjs} +0 -0
- /package/dist/{index161.mjs → components/Carousel/Carousel.module.css.mjs} +0 -0
- /package/dist/{index110.cjs → components/Chart/Chart.module.css.cjs} +0 -0
- /package/dist/{index110.mjs → components/Chart/Chart.module.css.mjs} +0 -0
- /package/dist/{index109.cjs → components/Chart/useResolvedChartColors.cjs} +0 -0
- /package/dist/{index109.mjs → components/Chart/useResolvedChartColors.mjs} +0 -0
- /package/dist/{index115.cjs → components/Chat/Chat.module.css.cjs} +0 -0
- /package/dist/{index115.mjs → components/Chat/Chat.module.css.mjs} +0 -0
- /package/dist/{index84.cjs → components/Chat/hooks/useAutoScroll.cjs} +0 -0
- /package/dist/{index84.mjs → components/Chat/hooks/useAutoScroll.mjs} +0 -0
- /package/dist/{index85.cjs → components/Chat/hooks/useChatInput.cjs} +0 -0
- /package/dist/{index85.mjs → components/Chat/hooks/useChatInput.mjs} +0 -0
- /package/dist/{index93.cjs → components/Chat/hooks/useStreamingText.cjs} +0 -0
- /package/dist/{index93.mjs → components/Chat/hooks/useStreamingText.mjs} +0 -0
- /package/dist/{index95.cjs → components/Chat/hooks/useVoiceRecorder.cjs} +0 -0
- /package/dist/{index95.mjs → components/Chat/hooks/useVoiceRecorder.mjs} +0 -0
- /package/dist/{index184.cjs → components/Chat/utils.cjs} +0 -0
- /package/dist/{index184.mjs → components/Chat/utils.mjs} +0 -0
- /package/dist/{index178.cjs → components/Checkbox/Checkbox.module.css.cjs} +0 -0
- /package/dist/{index178.mjs → components/Checkbox/Checkbox.module.css.mjs} +0 -0
- /package/dist/{index156.cjs → components/Chip/Chip.module.css.cjs} +0 -0
- /package/dist/{index156.mjs → components/Chip/Chip.module.css.mjs} +0 -0
- /package/dist/{index138.cjs → components/CodeEditor/CodeEditor.module.css.cjs} +0 -0
- /package/dist/{index138.mjs → components/CodeEditor/CodeEditor.module.css.mjs} +0 -0
- /package/dist/{index160.cjs → components/Collapsible/Collapsible.module.css.cjs} +0 -0
- /package/dist/{index160.mjs → components/Collapsible/Collapsible.module.css.mjs} +0 -0
- /package/dist/{index177.cjs → components/CollapsibleFolder/CollapsibleFolder.module.css.cjs} +0 -0
- /package/dist/{index177.mjs → components/CollapsibleFolder/CollapsibleFolder.module.css.mjs} +0 -0
- /package/dist/{index104.cjs → components/Combobox/Combobox.module.css.cjs} +0 -0
- /package/dist/{index104.mjs → components/Combobox/Combobox.module.css.mjs} +0 -0
- /package/dist/{index172.cjs → components/Command/Command.module.css.cjs} +0 -0
- /package/dist/{index172.mjs → components/Command/Command.module.css.mjs} +0 -0
- /package/dist/{index102.cjs → components/CommandBar/CommandBar.module.css.cjs} +0 -0
- /package/dist/{index102.mjs → components/CommandBar/CommandBar.module.css.mjs} +0 -0
- /package/dist/{index129.cjs → components/DataTable/DataTable.module.css.cjs} +0 -0
- /package/dist/{index129.mjs → components/DataTable/DataTable.module.css.mjs} +0 -0
- /package/dist/{index107.cjs → components/DatePicker/DatePicker.module.css.cjs} +0 -0
- /package/dist/{index107.mjs → components/DatePicker/DatePicker.module.css.mjs} +0 -0
- /package/dist/{index154.cjs → components/DetailPanel/DetailPanel.module.css.cjs} +0 -0
- /package/dist/{index154.mjs → components/DetailPanel/DetailPanel.module.css.mjs} +0 -0
- /package/dist/{index114.cjs → components/Divider/Divider.module.css.cjs} +0 -0
- /package/dist/{index114.mjs → components/Divider/Divider.module.css.mjs} +0 -0
- /package/dist/{index146.cjs → components/Drawer/Drawer.module.css.cjs} +0 -0
- /package/dist/{index146.mjs → components/Drawer/Drawer.module.css.mjs} +0 -0
- /package/dist/{index101.cjs → components/Dropdown/Dropdown.module.css.cjs} +0 -0
- /package/dist/{index101.mjs → components/Dropdown/Dropdown.module.css.mjs} +0 -0
- /package/dist/{index99.cjs → components/EmptyState/EmptyState.module.css.cjs} +0 -0
- /package/dist/{index99.mjs → components/EmptyState/EmptyState.module.css.mjs} +0 -0
- /package/dist/{index135.cjs → components/ErrorBoundary/ErrorBoundary.module.css.cjs} +0 -0
- /package/dist/{index135.mjs → components/ErrorBoundary/ErrorBoundary.module.css.mjs} +0 -0
- /package/dist/{index134.cjs → components/Field/Field.module.css.cjs} +0 -0
- /package/dist/{index134.mjs → components/Field/Field.module.css.mjs} +0 -0
- /package/dist/{index103.cjs → components/FileUploader/FileUploader.module.css.cjs} +0 -0
- /package/dist/{index103.mjs → components/FileUploader/FileUploader.module.css.mjs} +0 -0
- /package/dist/{index149.cjs → components/FilterBar/FilterBar.module.css.cjs} +0 -0
- /package/dist/{index149.mjs → components/FilterBar/FilterBar.module.css.mjs} +0 -0
- /package/dist/{index142.cjs → components/FormSection/FormSection.module.css.cjs} +0 -0
- /package/dist/{index142.mjs → components/FormSection/FormSection.module.css.mjs} +0 -0
- /package/dist/{index106.cjs → components/Icon/Icon.module.css.cjs} +0 -0
- /package/dist/{index106.mjs → components/Icon/Icon.module.css.mjs} +0 -0
- /package/dist/{index169.cjs → components/IconGallery/IconGallery.module.css.cjs} +0 -0
- /package/dist/{index169.mjs → components/IconGallery/IconGallery.module.css.mjs} +0 -0
- /package/dist/{index171.cjs → components/InputOTP/InputOTP.module.css.cjs} +0 -0
- /package/dist/{index171.mjs → components/InputOTP/InputOTP.module.css.mjs} +0 -0
- /package/dist/{index152.cjs → components/KanbanBoard/KanbanBoard.module.css.cjs} +0 -0
- /package/dist/{index152.mjs → components/KanbanBoard/KanbanBoard.module.css.mjs} +0 -0
- /package/dist/{index176.cjs → components/Link/Link.module.css.cjs} +0 -0
- /package/dist/{index176.mjs → components/Link/Link.module.css.mjs} +0 -0
- /package/dist/{index155.cjs → components/List/List.module.css.cjs} +0 -0
- /package/dist/{index155.mjs → components/List/List.module.css.mjs} +0 -0
- /package/dist/{index136.cjs → components/MetricCards/MetricCards.module.css.cjs} +0 -0
- /package/dist/{index136.mjs → components/MetricCards/MetricCards.module.css.mjs} +0 -0
- /package/dist/{index132.cjs → components/Modal/Modal.module.css.cjs} +0 -0
- /package/dist/{index132.mjs → components/Modal/Modal.module.css.mjs} +0 -0
- /package/dist/{index168.cjs → components/NavTree/NavTree.module.css.cjs} +0 -0
- /package/dist/{index168.mjs → components/NavTree/NavTree.module.css.mjs} +0 -0
- /package/dist/{index180.cjs → components/Navbar/Navbar.module.css.cjs} +0 -0
- /package/dist/{index180.mjs → components/Navbar/Navbar.module.css.mjs} +0 -0
- /package/dist/{index145.cjs → components/NotificationCenter/NotificationCenter.module.css.cjs} +0 -0
- /package/dist/{index145.mjs → components/NotificationCenter/NotificationCenter.module.css.mjs} +0 -0
- /package/dist/{index137.cjs → components/PageHeader/PageHeader.module.css.cjs} +0 -0
- /package/dist/{index137.mjs → components/PageHeader/PageHeader.module.css.mjs} +0 -0
- /package/dist/{index148.cjs → components/Pagination/Pagination.module.css.cjs} +0 -0
- /package/dist/{index148.mjs → components/Pagination/Pagination.module.css.mjs} +0 -0
- /package/dist/{index165.cjs → components/Popover/Popover.module.css.cjs} +0 -0
- /package/dist/{index165.mjs → components/Popover/Popover.module.css.mjs} +0 -0
- /package/dist/{index170.cjs → components/ProgressBar/ProgressBar.module.css.cjs} +0 -0
- /package/dist/{index170.mjs → components/ProgressBar/ProgressBar.module.css.mjs} +0 -0
- /package/dist/{index181.cjs → components/QuickActions/QuickActions.module.css.cjs} +0 -0
- /package/dist/{index181.mjs → components/QuickActions/QuickActions.module.css.mjs} +0 -0
- /package/dist/{index179.cjs → components/Radio/Radio.module.css.cjs} +0 -0
- /package/dist/{index179.mjs → components/Radio/Radio.module.css.mjs} +0 -0
- /package/dist/{index150.cjs → components/SearchInput/SearchInput.module.css.cjs} +0 -0
- /package/dist/{index150.mjs → components/SearchInput/SearchInput.module.css.mjs} +0 -0
- /package/dist/{index133.cjs → components/Select/Select.module.css.cjs} +0 -0
- /package/dist/{index133.mjs → components/Select/Select.module.css.mjs} +0 -0
- /package/dist/{index166.cjs → components/Sidebar/Sidebar.module.css.cjs} +0 -0
- /package/dist/{index166.mjs → components/Sidebar/Sidebar.module.css.mjs} +0 -0
- /package/dist/{index147.cjs → components/Skeleton/Skeleton.module.css.cjs} +0 -0
- /package/dist/{index147.mjs → components/Skeleton/Skeleton.module.css.mjs} +0 -0
- /package/dist/{index108.cjs → components/Slider/Slider.module.css.cjs} +0 -0
- /package/dist/{index108.mjs → components/Slider/Slider.module.css.mjs} +0 -0
- /package/dist/{index157.cjs → components/Spinner/Spinner.module.css.cjs} +0 -0
- /package/dist/{index157.mjs → components/Spinner/Spinner.module.css.mjs} +0 -0
- /package/dist/{index167.cjs → components/Stepper/Stepper.module.css.cjs} +0 -0
- /package/dist/{index167.mjs → components/Stepper/Stepper.module.css.mjs} +0 -0
- /package/dist/{index174.cjs → components/Switch/Switch.module.css.cjs} +0 -0
- /package/dist/{index174.mjs → components/Switch/Switch.module.css.mjs} +0 -0
- /package/dist/{index111.cjs → components/Table/Table.module.css.cjs} +0 -0
- /package/dist/{index111.mjs → components/Table/Table.module.css.mjs} +0 -0
- /package/dist/{index159.cjs → components/Tabs/Tabs.module.css.cjs} +0 -0
- /package/dist/{index159.mjs → components/Tabs/Tabs.module.css.mjs} +0 -0
- /package/dist/{index143.cjs → components/Textarea/Textarea.module.css.cjs} +0 -0
- /package/dist/{index143.mjs → components/Textarea/Textarea.module.css.mjs} +0 -0
- /package/dist/{index151.cjs → components/Toast/Toast.module.css.cjs} +0 -0
- /package/dist/{index151.mjs → components/Toast/Toast.module.css.mjs} +0 -0
- /package/dist/{index153.cjs → components/Toggle/Toggle.module.css.cjs} +0 -0
- /package/dist/{index153.mjs → components/Toggle/Toggle.module.css.mjs} +0 -0
- /package/dist/{index163.cjs → components/ToggleGroup/ToggleGroup.module.css.cjs} +0 -0
- /package/dist/{index163.mjs → components/ToggleGroup/ToggleGroup.module.css.mjs} +0 -0
- /package/dist/{index139.cjs → components/Tooltip/Tooltip.module.css.cjs} +0 -0
- /package/dist/{index139.mjs → components/Tooltip/Tooltip.module.css.mjs} +0 -0
- /package/dist/{index175.cjs → components/UserMenu/UserMenu.module.css.cjs} +0 -0
- /package/dist/{index175.mjs → components/UserMenu/UserMenu.module.css.mjs} +0 -0
- /package/dist/{index162.cjs → components/WorkspaceSwitcher/WorkspaceSwitcher.module.css.cjs} +0 -0
- /package/dist/{index162.mjs → components/WorkspaceSwitcher/WorkspaceSwitcher.module.css.mjs} +0 -0
- /package/dist/{index86.cjs → hooks/useClickOutside.cjs} +0 -0
- /package/dist/{index86.mjs → hooks/useClickOutside.mjs} +0 -0
- /package/dist/{index87.cjs → hooks/useCopyToClipboard.cjs} +0 -0
- /package/dist/{index87.mjs → hooks/useCopyToClipboard.mjs} +0 -0
- /package/dist/{index88.cjs → hooks/useDebounce.cjs} +0 -0
- /package/dist/{index88.mjs → hooks/useDebounce.mjs} +0 -0
- /package/dist/{index89.cjs → hooks/useDisclosure.cjs} +0 -0
- /package/dist/{index89.mjs → hooks/useDisclosure.mjs} +0 -0
- /package/dist/{index91.cjs → hooks/useKeyboard.cjs} +0 -0
- /package/dist/{index91.mjs → hooks/useKeyboard.mjs} +0 -0
- /package/dist/{index92.cjs → hooks/useLocalStorage.cjs} +0 -0
- /package/dist/{index92.mjs → hooks/useLocalStorage.mjs} +0 -0
- /package/dist/{index90.cjs → hooks/useMediaQuery.cjs} +0 -0
- /package/dist/{index90.mjs → hooks/useMediaQuery.mjs} +0 -0
- /package/dist/{index94.cjs → hooks/useTheme.cjs} +0 -0
- /package/dist/{index94.mjs → hooks/useTheme.mjs} +0 -0
- /package/dist/{index182.cjs → sections/Container/Container.module.css.cjs} +0 -0
- /package/dist/{index182.mjs → sections/Container/Container.module.css.mjs} +0 -0
- /package/dist/{index183.cjs → sections/Section/Section.module.css.cjs} +0 -0
- /package/dist/{index183.mjs → sections/Section/Section.module.css.mjs} +0 -0
- /package/dist/{index98.cjs → tokens/brands.cjs} +0 -0
- /package/dist/{index98.mjs → tokens/brands.mjs} +0 -0
- /package/dist/{index83.cjs → tokens/primitives.cjs} +0 -0
- /package/dist/{index83.mjs → tokens/primitives.mjs} +0 -0
- /package/dist/{index97.cjs → tokens/themes.cjs} +0 -0
- /package/dist/{index97.mjs → tokens/themes.mjs} +0 -0
- /package/dist/{index4.cjs → utils/fonts.cjs} +0 -0
- /package/dist/{index4.mjs → utils/fonts.mjs} +0 -0
- /package/dist/{index45.cjs → utils/icons.cjs} +0 -0
- /package/dist/{index45.mjs → utils/icons.mjs} +0 -0
- /package/dist/{index96.cjs → utils/validation.cjs} +0 -0
- /package/dist/{index96.mjs → utils/validation.mjs} +0 -0
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import { jsx as d, jsxs as N } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as m, useCallback as k } from "react";
|
|
3
|
+
import { Check as t } from "lucide-react";
|
|
4
|
+
import a from "./List.module.css.mjs";
|
|
5
|
+
const x = ({
|
|
6
|
+
item: s,
|
|
7
|
+
size: i,
|
|
8
|
+
interactive: n,
|
|
9
|
+
selectable: l,
|
|
10
|
+
onClick: c
|
|
11
|
+
}) => {
|
|
12
|
+
const r = k(() => {
|
|
13
|
+
!s.disabled && (n || l) && s.onClick && s.onClick(), c?.();
|
|
14
|
+
}, [s, n, l, c]), p = k(
|
|
15
|
+
(h) => {
|
|
16
|
+
(h.key === "Enter" || h.key === " ") && (n || l) && (h.preventDefault(), r());
|
|
17
|
+
},
|
|
18
|
+
[n, l, r]
|
|
19
|
+
), f = [
|
|
20
|
+
a.item,
|
|
21
|
+
a[i],
|
|
22
|
+
n && a.interactive,
|
|
23
|
+
l && a.selectable,
|
|
24
|
+
s.selected && a.selected,
|
|
25
|
+
s.disabled && a.disabled,
|
|
26
|
+
s.className
|
|
27
|
+
].filter(Boolean).join(" "), e = !s.disabled && (n || l || s.onClick);
|
|
28
|
+
return /* @__PURE__ */ N(
|
|
29
|
+
"li",
|
|
30
|
+
{
|
|
31
|
+
className: f,
|
|
32
|
+
role: l ? "option" : n ? "button" : void 0,
|
|
33
|
+
tabIndex: e ? 0 : void 0,
|
|
34
|
+
"aria-selected": l ? s.selected : void 0,
|
|
35
|
+
"aria-disabled": s.disabled,
|
|
36
|
+
onClick: e ? r : void 0,
|
|
37
|
+
onKeyDown: e ? p : void 0,
|
|
38
|
+
children: [
|
|
39
|
+
s.leading && /* @__PURE__ */ d("span", { className: a.leading, "aria-hidden": "true", children: s.leading }),
|
|
40
|
+
/* @__PURE__ */ N("div", { className: a.content, children: [
|
|
41
|
+
/* @__PURE__ */ d("span", { className: a.primary, children: s.primary }),
|
|
42
|
+
s.secondary && /* @__PURE__ */ d("span", { className: a.secondary, children: s.secondary })
|
|
43
|
+
] }),
|
|
44
|
+
s.trailing && /* @__PURE__ */ d("span", { className: a.trailing, children: s.trailing }),
|
|
45
|
+
l && s.selected && /* @__PURE__ */ d("span", { className: a.checkmark, "aria-hidden": "true", children: /* @__PURE__ */ d(t, { size: i === "sm" ? 14 : i === "lg" ? 20 : 16 }) })
|
|
46
|
+
]
|
|
47
|
+
}
|
|
48
|
+
);
|
|
49
|
+
}, b = m(
|
|
50
|
+
({
|
|
51
|
+
items: s,
|
|
52
|
+
size: i = "md",
|
|
53
|
+
variant: n = "default",
|
|
54
|
+
interactive: l = !1,
|
|
55
|
+
selectable: c = !1,
|
|
56
|
+
onSelect: r,
|
|
57
|
+
renderItem: p,
|
|
58
|
+
emptyContent: f,
|
|
59
|
+
className: e,
|
|
60
|
+
...h
|
|
61
|
+
}, u) => {
|
|
62
|
+
const y = k(
|
|
63
|
+
(o) => {
|
|
64
|
+
r && !o.disabled && r(o);
|
|
65
|
+
},
|
|
66
|
+
[r]
|
|
67
|
+
), C = [a.list, a[n], e].filter(Boolean).join(" ");
|
|
68
|
+
return s.length === 0 && f ? /* @__PURE__ */ d("div", { className: a.empty, children: f }) : /* @__PURE__ */ d(
|
|
69
|
+
"ul",
|
|
70
|
+
{
|
|
71
|
+
ref: u,
|
|
72
|
+
className: C,
|
|
73
|
+
role: c ? "listbox" : "list",
|
|
74
|
+
...h,
|
|
75
|
+
children: s.map(
|
|
76
|
+
(o, g) => p ? /* @__PURE__ */ d("li", { className: a.customItem, children: p(o, g) }, o.id) : /* @__PURE__ */ d(
|
|
77
|
+
x,
|
|
78
|
+
{
|
|
79
|
+
item: o,
|
|
80
|
+
size: i,
|
|
81
|
+
interactive: l,
|
|
82
|
+
selectable: c,
|
|
83
|
+
onClick: () => y(o)
|
|
84
|
+
},
|
|
85
|
+
o.id
|
|
86
|
+
)
|
|
87
|
+
)
|
|
88
|
+
}
|
|
89
|
+
);
|
|
90
|
+
}
|
|
91
|
+
);
|
|
92
|
+
b.displayName = "List";
|
|
93
|
+
export {
|
|
94
|
+
b as List
|
|
95
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),M=require("react"),b=require("lucide-react"),s=require("./MetricCards.module.css.cjs"),y=({data:a})=>{if(!a||a.length<2)return null;const c=Math.max(...a),d=Math.min(...a),u=c-d||1,t=a[0],l=a[a.length-1],i=24,r=64,n=r/(a.length-1),o=a.map((f,h)=>{const m=h*n,j=i-(f-d)/u*i;return`${m},${j}`}).join(" "),x=t!==void 0&&l!==void 0&&l>=t;return e.jsx("svg",{className:s.default.sparkline,width:r,height:i,viewBox:`0 0 ${r} ${i}`,children:e.jsx("polyline",{fill:"none",stroke:x?"var(--text-success)":"var(--text-error)",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",points:o})})},N=M.forwardRef(({metric:a,variant:c="default",loading:d=!1,className:u,...t},l)=>{const{label:i,value:r,change:n,icon:o,sparkline:x,href:f,onClick:h,description:m,loading:j}=a,p=d||j,C=f||h,v=[s.default.card,s.default[`variant-${c}`],C&&s.default.interactive,p&&s.default.loading,u].filter(Boolean).join(" "),g=e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:s.default.cardHeader,children:[o&&e.jsx("span",{className:s.default.cardIcon,children:o}),e.jsx("span",{className:s.default.label,children:i})]}),e.jsx("div",{className:s.default.cardBody,children:p?e.jsx("div",{className:s.default.skeleton}):e.jsxs(e.Fragment,{children:[e.jsx("span",{className:s.default.value,children:r}),x&&c==="detailed"&&e.jsx(y,{data:x})]})}),(n||m)&&!p&&e.jsxs("div",{className:s.default.cardFooter,children:[n&&e.jsxs("span",{className:`${s.default.change} ${n.positive?s.default.positive:s.default.negative}`,children:[n.positive?e.jsx(b.TrendingUp,{size:12}):e.jsx(b.TrendingDown,{size:12}),e.jsx("span",{children:n.value}),n.label&&e.jsx("span",{className:s.default.changeLabel,children:n.label})]}),m&&c==="detailed"&&e.jsx("span",{className:s.default.description,children:m})]})]});return f?e.jsx("a",{ref:l,href:f,className:v,...t,children:g}):h?e.jsx("button",{ref:l,type:"button",onClick:h,className:v,...t,children:g}):e.jsx("div",{ref:l,className:v,...t,children:g})});N.displayName="MetricCard";const k=M.forwardRef(({metrics:a,columns:c=4,variant:d="default",loading:u=!1,className:t,...l},i)=>{const r=[s.default.metricCards,s.default[`cols-${c}`],t].filter(Boolean).join(" ");return e.jsx("div",{ref:i,className:r,...l,children:a.map((n,o)=>e.jsx(N,{metric:n,variant:d,loading:u},n.id||n.label||o))})});k.displayName="MetricCards";exports.MetricCard=N;exports.MetricCards=k;
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
import { jsxs as u, Fragment as b, jsx as n } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as $ } from "react";
|
|
3
|
+
import { TrendingUp as C, TrendingDown as M } from "lucide-react";
|
|
4
|
+
import e from "./MetricCards.module.css.mjs";
|
|
5
|
+
const L = ({ data: s }) => {
|
|
6
|
+
if (!s || s.length < 2) return null;
|
|
7
|
+
const r = Math.max(...s), o = Math.min(...s), m = r - o || 1, a = s[0], l = s[s.length - 1], c = 24, t = 64, i = t / (s.length - 1), d = s.map((h, p) => {
|
|
8
|
+
const v = p * i, g = c - (h - o) / m * c;
|
|
9
|
+
return `${v},${g}`;
|
|
10
|
+
}).join(" "), N = a !== void 0 && l !== void 0 && l >= a;
|
|
11
|
+
return /* @__PURE__ */ n(
|
|
12
|
+
"svg",
|
|
13
|
+
{
|
|
14
|
+
className: e.sparkline,
|
|
15
|
+
width: t,
|
|
16
|
+
height: c,
|
|
17
|
+
viewBox: `0 0 ${t} ${c}`,
|
|
18
|
+
children: /* @__PURE__ */ n(
|
|
19
|
+
"polyline",
|
|
20
|
+
{
|
|
21
|
+
fill: "none",
|
|
22
|
+
stroke: N ? "var(--text-success)" : "var(--text-error)",
|
|
23
|
+
strokeWidth: "1.5",
|
|
24
|
+
strokeLinecap: "round",
|
|
25
|
+
strokeLinejoin: "round",
|
|
26
|
+
points: d
|
|
27
|
+
}
|
|
28
|
+
)
|
|
29
|
+
}
|
|
30
|
+
);
|
|
31
|
+
}, y = $(
|
|
32
|
+
({ metric: s, variant: r = "default", loading: o = !1, className: m, ...a }, l) => {
|
|
33
|
+
const {
|
|
34
|
+
label: c,
|
|
35
|
+
value: t,
|
|
36
|
+
change: i,
|
|
37
|
+
icon: d,
|
|
38
|
+
sparkline: N,
|
|
39
|
+
href: h,
|
|
40
|
+
onClick: p,
|
|
41
|
+
description: v,
|
|
42
|
+
loading: g
|
|
43
|
+
} = s, f = o || g, j = h || p, k = [
|
|
44
|
+
e.card,
|
|
45
|
+
e[`variant-${r}`],
|
|
46
|
+
j && e.interactive,
|
|
47
|
+
f && e.loading,
|
|
48
|
+
m
|
|
49
|
+
].filter(Boolean).join(" "), x = /* @__PURE__ */ u(b, { children: [
|
|
50
|
+
/* @__PURE__ */ u("div", { className: e.cardHeader, children: [
|
|
51
|
+
d && /* @__PURE__ */ n("span", { className: e.cardIcon, children: d }),
|
|
52
|
+
/* @__PURE__ */ n("span", { className: e.label, children: c })
|
|
53
|
+
] }),
|
|
54
|
+
/* @__PURE__ */ n("div", { className: e.cardBody, children: f ? /* @__PURE__ */ n("div", { className: e.skeleton }) : /* @__PURE__ */ u(b, { children: [
|
|
55
|
+
/* @__PURE__ */ n("span", { className: e.value, children: t }),
|
|
56
|
+
N && r === "detailed" && /* @__PURE__ */ n(L, { data: N })
|
|
57
|
+
] }) }),
|
|
58
|
+
(i || v) && !f && /* @__PURE__ */ u("div", { className: e.cardFooter, children: [
|
|
59
|
+
i && /* @__PURE__ */ u(
|
|
60
|
+
"span",
|
|
61
|
+
{
|
|
62
|
+
className: `${e.change} ${i.positive ? e.positive : e.negative}`,
|
|
63
|
+
children: [
|
|
64
|
+
i.positive ? /* @__PURE__ */ n(C, { size: 12 }) : /* @__PURE__ */ n(M, { size: 12 }),
|
|
65
|
+
/* @__PURE__ */ n("span", { children: i.value }),
|
|
66
|
+
i.label && /* @__PURE__ */ n("span", { className: e.changeLabel, children: i.label })
|
|
67
|
+
]
|
|
68
|
+
}
|
|
69
|
+
),
|
|
70
|
+
v && r === "detailed" && /* @__PURE__ */ n("span", { className: e.description, children: v })
|
|
71
|
+
] })
|
|
72
|
+
] });
|
|
73
|
+
return h ? /* @__PURE__ */ n(
|
|
74
|
+
"a",
|
|
75
|
+
{
|
|
76
|
+
ref: l,
|
|
77
|
+
href: h,
|
|
78
|
+
className: k,
|
|
79
|
+
...a,
|
|
80
|
+
children: x
|
|
81
|
+
}
|
|
82
|
+
) : p ? /* @__PURE__ */ n(
|
|
83
|
+
"button",
|
|
84
|
+
{
|
|
85
|
+
ref: l,
|
|
86
|
+
type: "button",
|
|
87
|
+
onClick: p,
|
|
88
|
+
className: k,
|
|
89
|
+
...a,
|
|
90
|
+
children: x
|
|
91
|
+
}
|
|
92
|
+
) : /* @__PURE__ */ n("div", { ref: l, className: k, ...a, children: x });
|
|
93
|
+
}
|
|
94
|
+
);
|
|
95
|
+
y.displayName = "MetricCard";
|
|
96
|
+
const w = $(
|
|
97
|
+
({
|
|
98
|
+
metrics: s,
|
|
99
|
+
columns: r = 4,
|
|
100
|
+
variant: o = "default",
|
|
101
|
+
loading: m = !1,
|
|
102
|
+
className: a,
|
|
103
|
+
...l
|
|
104
|
+
}, c) => {
|
|
105
|
+
const t = [
|
|
106
|
+
e.metricCards,
|
|
107
|
+
e[`cols-${r}`],
|
|
108
|
+
a
|
|
109
|
+
].filter(Boolean).join(" ");
|
|
110
|
+
return /* @__PURE__ */ n("div", { ref: c, className: t, ...l, children: s.map((i, d) => /* @__PURE__ */ n(
|
|
111
|
+
y,
|
|
112
|
+
{
|
|
113
|
+
metric: i,
|
|
114
|
+
variant: o,
|
|
115
|
+
loading: m
|
|
116
|
+
},
|
|
117
|
+
i.id || i.label || d
|
|
118
|
+
)) });
|
|
119
|
+
}
|
|
120
|
+
);
|
|
121
|
+
w.displayName = "MetricCards";
|
|
122
|
+
export {
|
|
123
|
+
y as MetricCard,
|
|
124
|
+
w as MetricCards
|
|
125
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("react/jsx-runtime"),n=require("react"),o=require("./Modal.module.css.cjs"),r=({open:e,onClose:a,size:t="md",closeOnBackdrop:m=!0,closeOnEscape:s=!0,showCloseButton:f=!0,children:y,className:v})=>{if(n.useEffect(()=>{if(!e||!s)return;const d=b=>{b.key==="Escape"&&a()};return document.addEventListener("keydown",d),()=>document.removeEventListener("keydown",d)},[e,s,a]),n.useEffect(()=>(e?document.body.style.overflow="hidden":document.body.style.overflow="",()=>{document.body.style.overflow=""}),[e]),!e)return null;const N=[o.default.modal,o.default[t],v].filter(Boolean).join(" "),j=d=>{m&&d.target===d.currentTarget&&a()};return l.jsx("div",{className:o.default.backdrop,onClick:j,role:"dialog","aria-modal":"true",children:l.jsxs("div",{className:N,children:[f&&l.jsx("button",{type:"button",className:o.default.closeButton,onClick:a,"aria-label":"Close modal",style:{position:"absolute",top:"var(--spacing-4)",right:"var(--spacing-4)"},children:"×"}),y]})})},i=({className:e,children:a})=>{const t=[o.default.header,e].filter(Boolean).join(" ");return l.jsx("div",{className:t,children:a})},c=({className:e,children:a})=>{const t=[o.default.body,e].filter(Boolean).join(" ");return l.jsx("div",{className:t,children:a})},u=({className:e,children:a})=>{const t=[o.default.footer,e].filter(Boolean).join(" ");return l.jsx("div",{className:t,children:a})};r.Header=i;r.Body=c;r.Footer=u;r.displayName="Modal";i.displayName="Modal.Header";c.displayName="Modal.Body";u.displayName="Modal.Footer";exports.Modal=r;
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { jsx as l, jsxs as B } from "react/jsx-runtime";
|
|
2
|
+
import { useEffect as n } from "react";
|
|
3
|
+
import t from "./Modal.module.css.mjs";
|
|
4
|
+
const s = ({
|
|
5
|
+
open: e,
|
|
6
|
+
onClose: o,
|
|
7
|
+
size: a = "md",
|
|
8
|
+
closeOnBackdrop: u = !0,
|
|
9
|
+
closeOnEscape: d = !0,
|
|
10
|
+
showCloseButton: y = !0,
|
|
11
|
+
children: f,
|
|
12
|
+
className: v
|
|
13
|
+
}) => {
|
|
14
|
+
if (n(() => {
|
|
15
|
+
if (!e || !d) return;
|
|
16
|
+
const r = (b) => {
|
|
17
|
+
b.key === "Escape" && o();
|
|
18
|
+
};
|
|
19
|
+
return document.addEventListener("keydown", r), () => document.removeEventListener("keydown", r);
|
|
20
|
+
}, [e, d, o]), n(() => (e ? document.body.style.overflow = "hidden" : document.body.style.overflow = "", () => {
|
|
21
|
+
document.body.style.overflow = "";
|
|
22
|
+
}), [e]), !e) return null;
|
|
23
|
+
const N = [t.modal, t[a], v].filter(Boolean).join(" "), p = (r) => {
|
|
24
|
+
u && r.target === r.currentTarget && o();
|
|
25
|
+
};
|
|
26
|
+
return /* @__PURE__ */ l(
|
|
27
|
+
"div",
|
|
28
|
+
{
|
|
29
|
+
className: t.backdrop,
|
|
30
|
+
onClick: p,
|
|
31
|
+
role: "dialog",
|
|
32
|
+
"aria-modal": "true",
|
|
33
|
+
children: /* @__PURE__ */ B("div", { className: N, children: [
|
|
34
|
+
y && /* @__PURE__ */ l(
|
|
35
|
+
"button",
|
|
36
|
+
{
|
|
37
|
+
type: "button",
|
|
38
|
+
className: t.closeButton,
|
|
39
|
+
onClick: o,
|
|
40
|
+
"aria-label": "Close modal",
|
|
41
|
+
style: {
|
|
42
|
+
position: "absolute",
|
|
43
|
+
top: "var(--spacing-4)",
|
|
44
|
+
right: "var(--spacing-4)"
|
|
45
|
+
},
|
|
46
|
+
children: "×"
|
|
47
|
+
}
|
|
48
|
+
),
|
|
49
|
+
f
|
|
50
|
+
] })
|
|
51
|
+
}
|
|
52
|
+
);
|
|
53
|
+
}, i = ({ className: e, children: o }) => {
|
|
54
|
+
const a = [t.header, e].filter(Boolean).join(" ");
|
|
55
|
+
return /* @__PURE__ */ l("div", { className: a, children: o });
|
|
56
|
+
}, c = ({ className: e, children: o }) => {
|
|
57
|
+
const a = [t.body, e].filter(Boolean).join(" ");
|
|
58
|
+
return /* @__PURE__ */ l("div", { className: a, children: o });
|
|
59
|
+
}, m = ({ className: e, children: o }) => {
|
|
60
|
+
const a = [t.footer, e].filter(Boolean).join(" ");
|
|
61
|
+
return /* @__PURE__ */ l("div", { className: a, children: o });
|
|
62
|
+
};
|
|
63
|
+
s.Header = i;
|
|
64
|
+
s.Body = c;
|
|
65
|
+
s.Footer = m;
|
|
66
|
+
s.displayName = "Modal";
|
|
67
|
+
i.displayName = "Modal.Header";
|
|
68
|
+
c.displayName = "Modal.Body";
|
|
69
|
+
m.displayName = "Modal.Footer";
|
|
70
|
+
export {
|
|
71
|
+
s as Modal
|
|
72
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),N=require("react"),d=require("lucide-react"),z=require("../../hooks/useLocalStorage.cjs"),s=require("./NavTree.module.css.cjs"),S=require("../Button/Button.cjs"),B=require("../Dropdown/Dropdown.cjs"),y=require("../Collapsible/Collapsible.cjs"),A=N.createContext(void 0);function R(){const n=N.useContext(A);if(!n)throw new Error("useNavTreeContext must be used within NavTree");return n}const k=N.forwardRef(({sections:n,activeNodeId:h,onNodeClick:f,actions:p,persistKey:m="orion-nav-tree",header:r,footer:u,width:l=240,className:a,headless:c=!1},i)=>{const j=N.useMemo(()=>n.filter(t=>t.defaultExpanded!==!1).map(t=>t.id),[n]),[x,C]=z.useLocalStorage(`${m}-sections`,j),[v,b]=z.useLocalStorage(`${m}-nodes`,[]),I={activeNodeId:h,openSectionIds:x,openNodeIds:v,toggleSection:t=>{C(g=>g.includes(t)?g.filter($=>$!==t):[...g,t])},toggleNode:t=>{b(g=>g.includes(t)?g.filter($=>$!==t):[...g,t])},isOpen:t=>t.startsWith("section-")?x.includes(t.replace("section-","")):v.includes(t),onNodeClick:f,actionConfig:p},w={width:typeof l=="number"?`${l}px`:l},O=c?n.flatMap(t=>t.nodes):[],M=c?O.length===0:n.length===0,q=c?"No nodes":"No sections";return e.jsxs("div",{ref:i,className:`${s.default.navTree} ${a||""}`,style:w,role:"tree",children:[r&&e.jsx("div",{className:s.default.header,children:r}),e.jsx("div",{className:s.default.treeContent,children:e.jsx(A.Provider,{value:I,children:M?e.jsx("div",{className:s.default.empty,children:q}):c?O.map(t=>e.jsx(T,{node:t,depth:0,sectionId:""},t.id)):n.map(t=>e.jsx(P,{section:t},t.id))})}),u&&e.jsx("div",{className:s.default.footer,children:u})]})});k.displayName="NavTree";function P({section:n}){const{isOpen:h,toggleSection:f,actionConfig:p}=R(),m=`section-${n.id}`,r=h(m),u=n.variant??"node",l=i=>{i.stopPropagation(),p?.onAdd?.(null,n.id)},a=u==="node"?s.default.sectionTitleNode:s.default.sectionTitle,c=`${s.default.sectionHeader} ${u==="node"?s.default.sectionHeaderNode:""}`.trim();return e.jsx("div",{className:s.default.section,role:"group",children:e.jsxs(y.Collapsible,{open:r,onOpenChange:()=>f(n.id),disabled:n.nodes.length===0,children:[e.jsx(y.Collapsible.Trigger,{asChild:!0,children:e.jsxs("div",{className:c,children:[n.icon?e.jsxs("div",{className:s.default.iconSlot,children:[e.jsx("span",{className:s.default.slotIcon,children:n.icon}),n.nodes.length>0&&e.jsx("div",{className:`${s.default.slotChevron} ${r?s.default.slotChevronOpen:""}`,children:e.jsx(d.ChevronRight,{size:16})})]}):n.nodes.length>0&&e.jsx(d.ChevronRight,{size:12,className:`${s.default.sectionChevron} ${r?s.default.sectionChevronOpen:""}`}),e.jsx("span",{className:a,children:n.title}),n.badge!==void 0&&e.jsx("span",{className:s.default.sectionBadge,children:n.badge}),e.jsx("div",{className:s.default.sectionActions,children:e.jsx(S.Button,{variant:"ghost",size:"sm",iconOnly:!0,icon:e.jsx(d.Plus,{size:12}),onClick:l,"aria-label":`Agregar página en ${n.title}`,title:`Agregar página en ${n.title}`})})]})}),e.jsx(y.Collapsible.Content,{children:e.jsx("div",{className:s.default.sectionBody,children:n.nodes.map(i=>e.jsx(T,{node:i,depth:0,sectionId:n.id},i.id))})})]})})}function T({node:n,depth:h,sectionId:f}){const{activeNodeId:p,isOpen:m,toggleNode:r,onNodeClick:u,actionConfig:l}=R(),a=n.type==="folder",c=a&&n.children&&n.children.length>0,i=m(n.id),j=p===n.id,x=()=>{a?r(n.id):u&&u(n)},C=o=>{o.stopPropagation(),l?.onAdd?.(a?n.id:null,f)},v=[{id:"rename",label:"Renombrar",icon:e.jsx(d.Pencil,{size:14}),onClick:()=>l?.onRename?.(n.id)},{id:"duplicate",label:"Duplicar",icon:e.jsx(d.Copy,{size:14}),onClick:()=>l?.onDuplicate?.(n.id)},{id:"move",label:"Mover a…",icon:e.jsx(d.FolderSymlink,{size:14}),onClick:()=>l?.onMove?.(n.id)},{id:"delete",label:"Eliminar",icon:e.jsx(d.Trash2,{size:14}),danger:!0,onClick:()=>l?.onDelete?.(n.id)}];if(l?.getCustomActions){const o=l.getCustomActions(n);v.push(...o)}const b={paddingLeft:`calc(var(--spacing-2) * ${h+1})`};return e.jsxs("div",{className:s.default.node,role:"treeitem","aria-expanded":a&&i,children:[e.jsxs("div",{className:`${s.default.nodeRow} ${j?s.default.nodeRowActive:""} ${h>0?s.default.nodeNested:""}`,onClick:x,style:b,tabIndex:0,onKeyDown:o=>{(o.key==="Enter"||o.key===" ")&&(o.preventDefault(),x())},children:[n.icon?a?e.jsxs("div",{className:s.default.iconSlot,children:[e.jsx("span",{className:s.default.slotIcon,children:n.icon}),c&&e.jsx("div",{className:`${s.default.slotChevron} ${i?s.default.slotChevronOpen:""}`,children:e.jsx(d.ChevronRight,{size:16})})]}):e.jsx("div",{className:s.default.iconSlot,children:e.jsx("span",{className:s.default.slotIcon,children:n.icon})}):a?e.jsx(d.ChevronRight,{size:12,className:`${s.default.nodeChevron} ${i?s.default.nodeChevronOpen:""}`}):e.jsx("div",{className:s.default.nodeChevronHidden}),e.jsx("span",{className:s.default.nodeLabel,children:n.label}),n.badge!==void 0&&e.jsx("span",{className:s.default.nodeBadge,children:n.badge}),e.jsxs("div",{className:s.default.nodeActions,children:[e.jsx(S.Button,{variant:"ghost",size:"sm",iconOnly:!0,icon:e.jsx(d.Plus,{size:14}),onClick:C,"aria-label":`Agregar página en ${n.label}`,title:`Agregar página en ${n.label}`}),e.jsx(B.Dropdown,{trigger:e.jsx(S.Button,{variant:"ghost",size:"sm",iconOnly:!0,icon:e.jsx(d.MoreHorizontal,{size:14}),"aria-label":"Más acciones",title:"Más acciones"}),items:v,placement:"bottom-end",minWidth:160})]})]}),a&&i&&c&&e.jsx("div",{className:s.default.nodeChildren,children:n.children.map(o=>e.jsx(T,{node:o,depth:h+1,sectionId:f},o.id))})]})}exports.NavTree=k;
|
|
@@ -0,0 +1,273 @@
|
|
|
1
|
+
import { jsxs as m, jsx as n } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as B, useMemo as E, createContext as H, useContext as L } from "react";
|
|
3
|
+
import { ChevronRight as f, Plus as T, MoreHorizontal as j, Pencil as F, Copy as W, FolderSymlink as V, Trash2 as q } from "lucide-react";
|
|
4
|
+
import { useLocalStorage as x } from "../../hooks/useLocalStorage.mjs";
|
|
5
|
+
import i from "./NavTree.module.css.mjs";
|
|
6
|
+
import { Button as O } from "../Button/Button.mjs";
|
|
7
|
+
import { Dropdown as G } from "../Dropdown/Dropdown.mjs";
|
|
8
|
+
import { Collapsible as A } from "../Collapsible/Collapsible.mjs";
|
|
9
|
+
const I = H(
|
|
10
|
+
void 0
|
|
11
|
+
);
|
|
12
|
+
function w() {
|
|
13
|
+
const e = L(I);
|
|
14
|
+
if (!e)
|
|
15
|
+
throw new Error("useNavTreeContext must be used within NavTree");
|
|
16
|
+
return e;
|
|
17
|
+
}
|
|
18
|
+
const J = B(
|
|
19
|
+
({
|
|
20
|
+
sections: e,
|
|
21
|
+
activeNodeId: p,
|
|
22
|
+
onNodeClick: g,
|
|
23
|
+
actions: N,
|
|
24
|
+
persistKey: v = "orion-nav-tree",
|
|
25
|
+
header: r,
|
|
26
|
+
footer: d,
|
|
27
|
+
width: t = 240,
|
|
28
|
+
className: s,
|
|
29
|
+
headless: c = !1
|
|
30
|
+
}, l) => {
|
|
31
|
+
const $ = E(
|
|
32
|
+
() => e.filter((o) => o.defaultExpanded !== !1).map((o) => o.id),
|
|
33
|
+
[e]
|
|
34
|
+
), [u, b] = x(
|
|
35
|
+
`${v}-sections`,
|
|
36
|
+
$
|
|
37
|
+
), [C, y] = x(
|
|
38
|
+
`${v}-nodes`,
|
|
39
|
+
[]
|
|
40
|
+
), R = {
|
|
41
|
+
activeNodeId: p,
|
|
42
|
+
openSectionIds: u,
|
|
43
|
+
openNodeIds: C,
|
|
44
|
+
toggleSection: (o) => {
|
|
45
|
+
b(
|
|
46
|
+
(h) => h.includes(o) ? h.filter((z) => z !== o) : [...h, o]
|
|
47
|
+
);
|
|
48
|
+
},
|
|
49
|
+
toggleNode: (o) => {
|
|
50
|
+
y(
|
|
51
|
+
(h) => h.includes(o) ? h.filter((z) => z !== o) : [...h, o]
|
|
52
|
+
);
|
|
53
|
+
},
|
|
54
|
+
isOpen: (o) => o.startsWith("section-") ? u.includes(o.replace("section-", "")) : C.includes(o),
|
|
55
|
+
onNodeClick: g,
|
|
56
|
+
actionConfig: N
|
|
57
|
+
}, M = {
|
|
58
|
+
width: typeof t == "number" ? `${t}px` : t
|
|
59
|
+
}, k = c ? e.flatMap((o) => o.nodes) : [], D = c ? k.length === 0 : e.length === 0, P = c ? "No nodes" : "No sections";
|
|
60
|
+
return /* @__PURE__ */ m(
|
|
61
|
+
"div",
|
|
62
|
+
{
|
|
63
|
+
ref: l,
|
|
64
|
+
className: `${i.navTree} ${s || ""}`,
|
|
65
|
+
style: M,
|
|
66
|
+
role: "tree",
|
|
67
|
+
children: [
|
|
68
|
+
r && /* @__PURE__ */ n("div", { className: i.header, children: r }),
|
|
69
|
+
/* @__PURE__ */ n("div", { className: i.treeContent, children: /* @__PURE__ */ n(I.Provider, { value: R, children: D ? /* @__PURE__ */ n("div", { className: i.empty, children: P }) : c ? (
|
|
70
|
+
// Headless mode: render root nodes directly without section headers
|
|
71
|
+
k.map((o) => /* @__PURE__ */ n(
|
|
72
|
+
S,
|
|
73
|
+
{
|
|
74
|
+
node: o,
|
|
75
|
+
depth: 0,
|
|
76
|
+
sectionId: ""
|
|
77
|
+
},
|
|
78
|
+
o.id
|
|
79
|
+
))
|
|
80
|
+
) : (
|
|
81
|
+
// Normal mode: render sections with collapsible headers
|
|
82
|
+
e.map((o) => /* @__PURE__ */ n(K, { section: o }, o.id))
|
|
83
|
+
) }) }),
|
|
84
|
+
d && /* @__PURE__ */ n("div", { className: i.footer, children: d })
|
|
85
|
+
]
|
|
86
|
+
}
|
|
87
|
+
);
|
|
88
|
+
}
|
|
89
|
+
);
|
|
90
|
+
J.displayName = "NavTree";
|
|
91
|
+
function K({ section: e }) {
|
|
92
|
+
const { isOpen: p, toggleSection: g, actionConfig: N } = w(), v = `section-${e.id}`, r = p(v), d = e.variant ?? "node", t = (l) => {
|
|
93
|
+
l.stopPropagation(), N?.onAdd?.(null, e.id);
|
|
94
|
+
}, s = d === "node" ? i.sectionTitleNode : i.sectionTitle, c = `${i.sectionHeader} ${d === "node" ? i.sectionHeaderNode : ""}`.trim();
|
|
95
|
+
return /* @__PURE__ */ n("div", { className: i.section, role: "group", children: /* @__PURE__ */ m(
|
|
96
|
+
A,
|
|
97
|
+
{
|
|
98
|
+
open: r,
|
|
99
|
+
onOpenChange: () => g(e.id),
|
|
100
|
+
disabled: e.nodes.length === 0,
|
|
101
|
+
children: [
|
|
102
|
+
/* @__PURE__ */ n(A.Trigger, { asChild: !0, children: /* @__PURE__ */ m("div", { className: c, children: [
|
|
103
|
+
e.icon ? /* @__PURE__ */ m("div", { className: i.iconSlot, children: [
|
|
104
|
+
/* @__PURE__ */ n("span", { className: i.slotIcon, children: e.icon }),
|
|
105
|
+
e.nodes.length > 0 && /* @__PURE__ */ n(
|
|
106
|
+
"div",
|
|
107
|
+
{
|
|
108
|
+
className: `${i.slotChevron} ${r ? i.slotChevronOpen : ""}`,
|
|
109
|
+
children: /* @__PURE__ */ n(f, { size: 16 })
|
|
110
|
+
}
|
|
111
|
+
)
|
|
112
|
+
] }) : e.nodes.length > 0 && /* @__PURE__ */ n(
|
|
113
|
+
f,
|
|
114
|
+
{
|
|
115
|
+
size: 12,
|
|
116
|
+
className: `${i.sectionChevron} ${r ? i.sectionChevronOpen : ""}`
|
|
117
|
+
}
|
|
118
|
+
),
|
|
119
|
+
/* @__PURE__ */ n("span", { className: s, children: e.title }),
|
|
120
|
+
e.badge !== void 0 && /* @__PURE__ */ n("span", { className: i.sectionBadge, children: e.badge }),
|
|
121
|
+
/* @__PURE__ */ n("div", { className: i.sectionActions, children: /* @__PURE__ */ n(
|
|
122
|
+
O,
|
|
123
|
+
{
|
|
124
|
+
variant: "ghost",
|
|
125
|
+
size: "sm",
|
|
126
|
+
iconOnly: !0,
|
|
127
|
+
icon: /* @__PURE__ */ n(T, { size: 12 }),
|
|
128
|
+
onClick: t,
|
|
129
|
+
"aria-label": `Agregar página en ${e.title}`,
|
|
130
|
+
title: `Agregar página en ${e.title}`
|
|
131
|
+
}
|
|
132
|
+
) })
|
|
133
|
+
] }) }),
|
|
134
|
+
/* @__PURE__ */ n(A.Content, { children: /* @__PURE__ */ n("div", { className: i.sectionBody, children: e.nodes.map((l) => /* @__PURE__ */ n(
|
|
135
|
+
S,
|
|
136
|
+
{
|
|
137
|
+
node: l,
|
|
138
|
+
depth: 0,
|
|
139
|
+
sectionId: e.id
|
|
140
|
+
},
|
|
141
|
+
l.id
|
|
142
|
+
)) }) })
|
|
143
|
+
]
|
|
144
|
+
}
|
|
145
|
+
) });
|
|
146
|
+
}
|
|
147
|
+
function S({ node: e, depth: p, sectionId: g }) {
|
|
148
|
+
const { activeNodeId: N, isOpen: v, toggleNode: r, onNodeClick: d, actionConfig: t } = w(), s = e.type === "folder", c = s && e.children && e.children.length > 0, l = v(e.id), $ = N === e.id, u = () => {
|
|
149
|
+
s ? r(e.id) : d && d(e);
|
|
150
|
+
}, b = (a) => {
|
|
151
|
+
a.stopPropagation(), t?.onAdd?.(s ? e.id : null, g);
|
|
152
|
+
}, C = [
|
|
153
|
+
{
|
|
154
|
+
id: "rename",
|
|
155
|
+
label: "Renombrar",
|
|
156
|
+
icon: /* @__PURE__ */ n(F, { size: 14 }),
|
|
157
|
+
onClick: () => t?.onRename?.(e.id)
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
id: "duplicate",
|
|
161
|
+
label: "Duplicar",
|
|
162
|
+
icon: /* @__PURE__ */ n(W, { size: 14 }),
|
|
163
|
+
onClick: () => t?.onDuplicate?.(e.id)
|
|
164
|
+
},
|
|
165
|
+
{
|
|
166
|
+
id: "move",
|
|
167
|
+
label: "Mover a…",
|
|
168
|
+
icon: /* @__PURE__ */ n(V, { size: 14 }),
|
|
169
|
+
onClick: () => t?.onMove?.(e.id)
|
|
170
|
+
},
|
|
171
|
+
{
|
|
172
|
+
id: "delete",
|
|
173
|
+
label: "Eliminar",
|
|
174
|
+
icon: /* @__PURE__ */ n(q, { size: 14 }),
|
|
175
|
+
danger: !0,
|
|
176
|
+
onClick: () => t?.onDelete?.(e.id)
|
|
177
|
+
}
|
|
178
|
+
];
|
|
179
|
+
if (t?.getCustomActions) {
|
|
180
|
+
const a = t.getCustomActions(e);
|
|
181
|
+
C.push(...a);
|
|
182
|
+
}
|
|
183
|
+
const y = {
|
|
184
|
+
paddingLeft: `calc(var(--spacing-2) * ${p + 1})`
|
|
185
|
+
};
|
|
186
|
+
return /* @__PURE__ */ m(
|
|
187
|
+
"div",
|
|
188
|
+
{
|
|
189
|
+
className: i.node,
|
|
190
|
+
role: "treeitem",
|
|
191
|
+
"aria-expanded": s && l,
|
|
192
|
+
children: [
|
|
193
|
+
/* @__PURE__ */ m(
|
|
194
|
+
"div",
|
|
195
|
+
{
|
|
196
|
+
className: `${i.nodeRow} ${$ ? i.nodeRowActive : ""} ${p > 0 ? i.nodeNested : ""}`,
|
|
197
|
+
onClick: u,
|
|
198
|
+
style: y,
|
|
199
|
+
tabIndex: 0,
|
|
200
|
+
onKeyDown: (a) => {
|
|
201
|
+
(a.key === "Enter" || a.key === " ") && (a.preventDefault(), u());
|
|
202
|
+
},
|
|
203
|
+
children: [
|
|
204
|
+
e.icon ? s ? /* @__PURE__ */ m("div", { className: i.iconSlot, children: [
|
|
205
|
+
/* @__PURE__ */ n("span", { className: i.slotIcon, children: e.icon }),
|
|
206
|
+
c && /* @__PURE__ */ n(
|
|
207
|
+
"div",
|
|
208
|
+
{
|
|
209
|
+
className: `${i.slotChevron} ${l ? i.slotChevronOpen : ""}`,
|
|
210
|
+
children: /* @__PURE__ */ n(f, { size: 16 })
|
|
211
|
+
}
|
|
212
|
+
)
|
|
213
|
+
] }) : /* @__PURE__ */ n("div", { className: i.iconSlot, children: /* @__PURE__ */ n("span", { className: i.slotIcon, children: e.icon }) }) : s ? /* @__PURE__ */ n(
|
|
214
|
+
f,
|
|
215
|
+
{
|
|
216
|
+
size: 12,
|
|
217
|
+
className: `${i.nodeChevron} ${l ? i.nodeChevronOpen : ""}`
|
|
218
|
+
}
|
|
219
|
+
) : /* @__PURE__ */ n("div", { className: i.nodeChevronHidden }),
|
|
220
|
+
/* @__PURE__ */ n("span", { className: i.nodeLabel, children: e.label }),
|
|
221
|
+
e.badge !== void 0 && /* @__PURE__ */ n("span", { className: i.nodeBadge, children: e.badge }),
|
|
222
|
+
/* @__PURE__ */ m("div", { className: i.nodeActions, children: [
|
|
223
|
+
/* @__PURE__ */ n(
|
|
224
|
+
O,
|
|
225
|
+
{
|
|
226
|
+
variant: "ghost",
|
|
227
|
+
size: "sm",
|
|
228
|
+
iconOnly: !0,
|
|
229
|
+
icon: /* @__PURE__ */ n(T, { size: 14 }),
|
|
230
|
+
onClick: b,
|
|
231
|
+
"aria-label": `Agregar página en ${e.label}`,
|
|
232
|
+
title: `Agregar página en ${e.label}`
|
|
233
|
+
}
|
|
234
|
+
),
|
|
235
|
+
/* @__PURE__ */ n(
|
|
236
|
+
G,
|
|
237
|
+
{
|
|
238
|
+
trigger: /* @__PURE__ */ n(
|
|
239
|
+
O,
|
|
240
|
+
{
|
|
241
|
+
variant: "ghost",
|
|
242
|
+
size: "sm",
|
|
243
|
+
iconOnly: !0,
|
|
244
|
+
icon: /* @__PURE__ */ n(j, { size: 14 }),
|
|
245
|
+
"aria-label": "Más acciones",
|
|
246
|
+
title: "Más acciones"
|
|
247
|
+
}
|
|
248
|
+
),
|
|
249
|
+
items: C,
|
|
250
|
+
placement: "bottom-end",
|
|
251
|
+
minWidth: 160
|
|
252
|
+
}
|
|
253
|
+
)
|
|
254
|
+
] })
|
|
255
|
+
]
|
|
256
|
+
}
|
|
257
|
+
),
|
|
258
|
+
s && l && c && /* @__PURE__ */ n("div", { className: i.nodeChildren, children: e.children.map((a) => /* @__PURE__ */ n(
|
|
259
|
+
S,
|
|
260
|
+
{
|
|
261
|
+
node: a,
|
|
262
|
+
depth: p + 1,
|
|
263
|
+
sectionId: g
|
|
264
|
+
},
|
|
265
|
+
a.id
|
|
266
|
+
)) })
|
|
267
|
+
]
|
|
268
|
+
}
|
|
269
|
+
);
|
|
270
|
+
}
|
|
271
|
+
export {
|
|
272
|
+
J as NavTree
|
|
273
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react/jsx-runtime"),a=require("./Navbar.module.css.cjs"),d=({children:e,href:l,className:t})=>{const s=[a.default.brand,t].filter(Boolean).join(" ");return l?n.jsx("a",{href:l,className:s,children:e}):n.jsx("div",{className:s,children:e})};d.displayName="Navbar.Brand";const u=({children:e,className:l,...t})=>{const s=[a.default.nav,l].filter(Boolean).join(" ");return n.jsx("nav",{className:s,...t,children:e})};u.displayName="Navbar.Nav";const N=({children:e,href:l,active:t=!1,className:s,onClick:r,...i})=>{const c=[a.default.link,t&&a.default.active,s].filter(Boolean).join(" ");return n.jsx("a",{href:l,className:c,"aria-current":t?"page":void 0,onClick:r,...i,children:e})};N.displayName="Navbar.Link";const v=({children:e,className:l,...t})=>{const s=[a.default.actions,l].filter(Boolean).join(" ");return n.jsx("div",{className:s,...t,children:e})};v.displayName="Navbar.Actions";const f=({isOpen:e,onToggle:l,className:t})=>{const s=[a.default.toggle,e&&a.default.toggleOpen,t].filter(Boolean).join(" ");return n.jsx("button",{type:"button",className:s,onClick:l,"aria-expanded":e,"aria-label":e?"Close menu":"Open menu",children:n.jsxs("span",{className:a.default.toggleIcon,children:[n.jsx("span",{className:a.default.toggleLine}),n.jsx("span",{className:a.default.toggleLine}),n.jsx("span",{className:a.default.toggleLine})]})})};f.displayName="Navbar.Toggle";const p=({children:e,isOpen:l,className:t,...s})=>{const r=[a.default.collapse,l&&a.default.collapseOpen,t].filter(Boolean).join(" ");return n.jsx("div",{className:r,...s,children:e})};p.displayName="Navbar.Collapse";const b=({children:e,className:l,...t})=>{const s=[a.default.collapseActions,l].filter(Boolean).join(" ");return n.jsx("div",{className:s,...t,children:e})};b.displayName="Navbar.CollapseActions";const o=({children:e,height:l="md",variant:t="solid",colorScheme:s="auto",sticky:r=!1,bordered:i=!0,className:c,...m})=>{const g=[a.default.navbar,a.default[l],a.default[t],s!=="auto"&&a.default[`scheme${s.charAt(0).toUpperCase()+s.slice(1)}`],r&&a.default.sticky,i&&a.default.bordered,c].filter(Boolean).join(" ");return n.jsx("header",{className:g,...m,children:e})};o.Brand=d;o.Nav=u;o.Link=N;o.Actions=v;o.Toggle=f;o.Collapse=p;o.CollapseActions=b;o.displayName="Navbar";exports.Navbar=o;
|