@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 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),o=require("react"),le=require("@dnd-kit/core"),g=require("lucide-react"),a=require("./CollapsibleFolder.module.css.cjs"),h=require("../Collapsible/Collapsible.cjs"),ne=require("../Badge/Badge.cjs"),F=require("../Dropdown/Dropdown.cjs"),R=require("../Button/Button.cjs");function w(E){const{id:u,title:B,itemCount:x,items:r,renderItem:z,itemLabel:O="Item",itemLabelPlural:k="Items",emptyText:A="No items in this folder",sortLabel:v="Sort",defaultExpanded:$=!0,sortOptions:i,selectedSort:M,onSortChange:P,onDrop:D,onFolderEdit:b,onFolderDelete:j,onFolderInvite:N,isDropTarget:Y=!1,isDropCompleted:H=!1,onDragEnter:Z,onDragLeaveFolder:C,className:_,...G}=E,[f,J]=o.useState($),[m,d]=o.useState(null),[T,p]=o.useState(!1),I=o.useRef(null),{setNodeRef:K}=le.useDroppable({id:u}),Q=t=>{if(t.preventDefault(),t.dataTransfer.dropEffect="move",T||(p(!0),Z?.()),!f||r.length===0){d(0);return}const l=I.current;if(!l)return;const n=Array.from(l.querySelectorAll("[data-item-id]")),ae=t.clientY;let L=n.length;for(let c=0;c<n.length;c++){const S=n[c];if(!S)continue;const q=S.getBoundingClientRect();if(ae<q.top+q.height/2){L=c;break}}d(L)},U=t=>{t.currentTarget.contains(t.relatedTarget)||(p(!1),d(null),C?.())},V=t=>{t.preventDefault();const l=t.dataTransfer.getData("text/plain")||t.dataTransfer.getData("itemId");if(l&&D){const n=m??r.length;D(l,u,n)}p(!1),d(null),C?.()},W=(t,l)=>{t.dataTransfer.effectAllowed="move",t.dataTransfer.setData("text/plain",l)},X=i?.map(t=>({id:t.value,label:t.label,onClick:()=>P?.(t.value)})),y=[...b?[{id:"rename",label:"Rename",onClick:b}]:[],...N?[{id:"invite",label:"Invite participants",onClick:N}]:[],...j?[{id:"delete",label:"Delete folder",danger:!0,onClick:j}]:[]],s=Y||T,ee=[a.default.folder,s&&a.default.dropTarget,H&&a.default.dropCompleted,_].filter(Boolean).join(" "),te=x===1?O:k;return e.jsx("div",{ref:K,className:ee,"data-folder-id":u,"data-drop-active":s,onDragOver:Q,onDragLeave:U,onDrop:V,...G,children:e.jsxs(h.Collapsible,{open:f,onOpenChange:J,children:[e.jsxs("div",{className:a.default.header,children:[e.jsxs(h.Collapsible.Trigger,{className:a.default.trigger,children:[e.jsx(g.ChevronDown,{size:20,className:`${a.default.chevron} ${f?a.default.expanded:""}`}),e.jsx("h2",{className:a.default.title,children:B}),e.jsxs(ne.Badge,{variant:"secondary",className:a.default.badge,children:[x,e.jsxs("span",{className:a.default.badgeLabel,children:[" ",te]})]})]}),e.jsxs("div",{className:a.default.actions,children:[i&&i.length>0&&e.jsx("div",{className:a.default.sortDropdown,children:e.jsx(F.Dropdown,{trigger:e.jsx(R.Button,{variant:"ghost",size:"sm",iconRight:e.jsx(g.ChevronDown,{size:16}),"aria-label":`Sort by ${v}`,children:i.find(t=>t.value===M)?.label||v}),items:X,placement:"bottom-end"})}),y.length>0&&e.jsx(F.Dropdown,{trigger:e.jsx(R.Button,{variant:"ghost",size:"sm",iconOnly:!0,icon:e.jsx(g.MoreHorizontal,{size:20}),"aria-label":"Folder actions"}),items:y,placement:"bottom-end"})]})]}),e.jsx(h.Collapsible.Content,{children:e.jsx("div",{className:a.default.content,children:r.length===0?s?e.jsx("div",{className:a.default.emptyDropZone,children:e.jsx("div",{className:a.default.insertionLine,role:"presentation"})}):e.jsx("div",{className:a.default.emptyState,children:e.jsx("p",{className:a.default.emptyText,children:A})}):e.jsxs("div",{className:a.default.grid,ref:I,children:[r.map((t,l)=>e.jsxs(o.Fragment,{children:[s&&m===l&&e.jsx("div",{className:a.default.insertionLine,role:"presentation"}),e.jsx("div",{"data-item-id":t.id,draggable:t.draggable,onDragStart:n=>W(n,t.id),children:z(t,l)})]},t.id)),s&&m===r.length&&e.jsx("div",{className:a.default.insertionLine,role:"presentation"})]})})})]})})}w.displayName="CollapsibleFolder";exports.CollapsibleFolder=w;
|
|
@@ -0,0 +1,196 @@
|
|
|
1
|
+
import { jsx as a, jsxs as n } from "react/jsx-runtime";
|
|
2
|
+
import re, { useState as h, useRef as ne } from "react";
|
|
3
|
+
import { useDroppable as le } from "@dnd-kit/core";
|
|
4
|
+
import { ChevronDown as R, MoreHorizontal as oe } from "lucide-react";
|
|
5
|
+
import t from "./CollapsibleFolder.module.css.mjs";
|
|
6
|
+
import { Collapsible as v } from "../Collapsible/Collapsible.mjs";
|
|
7
|
+
import { Badge as ie } from "../Badge/Badge.mjs";
|
|
8
|
+
import { Dropdown as z } from "../Dropdown/Dropdown.mjs";
|
|
9
|
+
import { Button as k } from "../Button/Button.mjs";
|
|
10
|
+
function se(w) {
|
|
11
|
+
const {
|
|
12
|
+
id: m,
|
|
13
|
+
title: A,
|
|
14
|
+
itemCount: u,
|
|
15
|
+
items: o,
|
|
16
|
+
renderItem: O,
|
|
17
|
+
itemLabel: B = "Item",
|
|
18
|
+
itemLabelPlural: j = "Items",
|
|
19
|
+
emptyText: $ = "No items in this folder",
|
|
20
|
+
sortLabel: D = "Sort",
|
|
21
|
+
defaultExpanded: Y = !0,
|
|
22
|
+
sortOptions: s,
|
|
23
|
+
selectedSort: q,
|
|
24
|
+
onSortChange: H,
|
|
25
|
+
onDrop: b,
|
|
26
|
+
onFolderEdit: N,
|
|
27
|
+
onFolderDelete: C,
|
|
28
|
+
onFolderInvite: T,
|
|
29
|
+
isDropTarget: M = !1,
|
|
30
|
+
isDropCompleted: P = !1,
|
|
31
|
+
onDragEnter: Z,
|
|
32
|
+
onDragLeaveFolder: x,
|
|
33
|
+
className: G,
|
|
34
|
+
...J
|
|
35
|
+
} = w, [p, K] = h(Y), [g, d] = h(null), [I, f] = h(!1), L = ne(null), { setNodeRef: Q } = le({ id: m }), U = (e) => {
|
|
36
|
+
if (e.preventDefault(), e.dataTransfer.dropEffect = "move", I || (f(!0), Z?.()), !p || o.length === 0) {
|
|
37
|
+
d(0);
|
|
38
|
+
return;
|
|
39
|
+
}
|
|
40
|
+
const r = L.current;
|
|
41
|
+
if (!r) return;
|
|
42
|
+
const l = Array.from(
|
|
43
|
+
r.querySelectorAll("[data-item-id]")
|
|
44
|
+
), ae = e.clientY;
|
|
45
|
+
let S = l.length;
|
|
46
|
+
for (let c = 0; c < l.length; c++) {
|
|
47
|
+
const E = l[c];
|
|
48
|
+
if (!E) continue;
|
|
49
|
+
const F = E.getBoundingClientRect();
|
|
50
|
+
if (ae < F.top + F.height / 2) {
|
|
51
|
+
S = c;
|
|
52
|
+
break;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
d(S);
|
|
56
|
+
}, V = (e) => {
|
|
57
|
+
e.currentTarget.contains(e.relatedTarget) || (f(!1), d(null), x?.());
|
|
58
|
+
}, W = (e) => {
|
|
59
|
+
e.preventDefault();
|
|
60
|
+
const r = e.dataTransfer.getData("text/plain") || e.dataTransfer.getData("itemId");
|
|
61
|
+
if (r && b) {
|
|
62
|
+
const l = g ?? o.length;
|
|
63
|
+
b(r, m, l);
|
|
64
|
+
}
|
|
65
|
+
f(!1), d(null), x?.();
|
|
66
|
+
}, X = (e, r) => {
|
|
67
|
+
e.dataTransfer.effectAllowed = "move", e.dataTransfer.setData("text/plain", r);
|
|
68
|
+
}, _ = s?.map((e) => ({
|
|
69
|
+
id: e.value,
|
|
70
|
+
label: e.label,
|
|
71
|
+
onClick: () => H?.(e.value)
|
|
72
|
+
})), y = [
|
|
73
|
+
...N ? [
|
|
74
|
+
{
|
|
75
|
+
id: "rename",
|
|
76
|
+
label: "Rename",
|
|
77
|
+
onClick: N
|
|
78
|
+
}
|
|
79
|
+
] : [],
|
|
80
|
+
...T ? [
|
|
81
|
+
{
|
|
82
|
+
id: "invite",
|
|
83
|
+
label: "Invite participants",
|
|
84
|
+
onClick: T
|
|
85
|
+
}
|
|
86
|
+
] : [],
|
|
87
|
+
...C ? [
|
|
88
|
+
{
|
|
89
|
+
id: "delete",
|
|
90
|
+
label: "Delete folder",
|
|
91
|
+
danger: !0,
|
|
92
|
+
onClick: C
|
|
93
|
+
}
|
|
94
|
+
] : []
|
|
95
|
+
], i = M || I, ee = [
|
|
96
|
+
t.folder,
|
|
97
|
+
i && t.dropTarget,
|
|
98
|
+
P && t.dropCompleted,
|
|
99
|
+
G
|
|
100
|
+
].filter(Boolean).join(" "), te = u === 1 ? B : j;
|
|
101
|
+
return /* @__PURE__ */ a(
|
|
102
|
+
"div",
|
|
103
|
+
{
|
|
104
|
+
ref: Q,
|
|
105
|
+
className: ee,
|
|
106
|
+
"data-folder-id": m,
|
|
107
|
+
"data-drop-active": i,
|
|
108
|
+
onDragOver: U,
|
|
109
|
+
onDragLeave: V,
|
|
110
|
+
onDrop: W,
|
|
111
|
+
...J,
|
|
112
|
+
children: /* @__PURE__ */ n(v, { open: p, onOpenChange: K, children: [
|
|
113
|
+
/* @__PURE__ */ n("div", { className: t.header, children: [
|
|
114
|
+
/* @__PURE__ */ n(v.Trigger, { className: t.trigger, children: [
|
|
115
|
+
/* @__PURE__ */ a(
|
|
116
|
+
R,
|
|
117
|
+
{
|
|
118
|
+
size: 20,
|
|
119
|
+
className: `${t.chevron} ${p ? t.expanded : ""}`
|
|
120
|
+
}
|
|
121
|
+
),
|
|
122
|
+
/* @__PURE__ */ a("h2", { className: t.title, children: A }),
|
|
123
|
+
/* @__PURE__ */ n(ie, { variant: "secondary", className: t.badge, children: [
|
|
124
|
+
u,
|
|
125
|
+
/* @__PURE__ */ n("span", { className: t.badgeLabel, children: [
|
|
126
|
+
" ",
|
|
127
|
+
te
|
|
128
|
+
] })
|
|
129
|
+
] })
|
|
130
|
+
] }),
|
|
131
|
+
/* @__PURE__ */ n("div", { className: t.actions, children: [
|
|
132
|
+
s && s.length > 0 && /* @__PURE__ */ a("div", { className: t.sortDropdown, children: /* @__PURE__ */ a(
|
|
133
|
+
z,
|
|
134
|
+
{
|
|
135
|
+
trigger: /* @__PURE__ */ a(
|
|
136
|
+
k,
|
|
137
|
+
{
|
|
138
|
+
variant: "ghost",
|
|
139
|
+
size: "sm",
|
|
140
|
+
iconRight: /* @__PURE__ */ a(R, { size: 16 }),
|
|
141
|
+
"aria-label": `Sort by ${D}`,
|
|
142
|
+
children: s.find((e) => e.value === q)?.label || D
|
|
143
|
+
}
|
|
144
|
+
),
|
|
145
|
+
items: _,
|
|
146
|
+
placement: "bottom-end"
|
|
147
|
+
}
|
|
148
|
+
) }),
|
|
149
|
+
y.length > 0 && /* @__PURE__ */ a(
|
|
150
|
+
z,
|
|
151
|
+
{
|
|
152
|
+
trigger: /* @__PURE__ */ a(
|
|
153
|
+
k,
|
|
154
|
+
{
|
|
155
|
+
variant: "ghost",
|
|
156
|
+
size: "sm",
|
|
157
|
+
iconOnly: !0,
|
|
158
|
+
icon: /* @__PURE__ */ a(oe, { size: 20 }),
|
|
159
|
+
"aria-label": "Folder actions"
|
|
160
|
+
}
|
|
161
|
+
),
|
|
162
|
+
items: y,
|
|
163
|
+
placement: "bottom-end"
|
|
164
|
+
}
|
|
165
|
+
)
|
|
166
|
+
] })
|
|
167
|
+
] }),
|
|
168
|
+
/* @__PURE__ */ a(v.Content, { children: /* @__PURE__ */ a("div", { className: t.content, children: o.length === 0 ? i ? /* @__PURE__ */ a("div", { className: t.emptyDropZone, children: /* @__PURE__ */ a("div", { className: t.insertionLine, role: "presentation" }) }) : /* @__PURE__ */ a("div", { className: t.emptyState, children: /* @__PURE__ */ a("p", { className: t.emptyText, children: $ }) }) : /* @__PURE__ */ n("div", { className: t.grid, ref: L, children: [
|
|
169
|
+
o.map((e, r) => /* @__PURE__ */ n(re.Fragment, { children: [
|
|
170
|
+
i && g === r && /* @__PURE__ */ a(
|
|
171
|
+
"div",
|
|
172
|
+
{
|
|
173
|
+
className: t.insertionLine,
|
|
174
|
+
role: "presentation"
|
|
175
|
+
}
|
|
176
|
+
),
|
|
177
|
+
/* @__PURE__ */ a(
|
|
178
|
+
"div",
|
|
179
|
+
{
|
|
180
|
+
"data-item-id": e.id,
|
|
181
|
+
draggable: e.draggable,
|
|
182
|
+
onDragStart: (l) => X(l, e.id),
|
|
183
|
+
children: O(e, r)
|
|
184
|
+
}
|
|
185
|
+
)
|
|
186
|
+
] }, e.id)),
|
|
187
|
+
i && g === o.length && /* @__PURE__ */ a("div", { className: t.insertionLine, role: "presentation" })
|
|
188
|
+
] }) }) })
|
|
189
|
+
] })
|
|
190
|
+
}
|
|
191
|
+
);
|
|
192
|
+
}
|
|
193
|
+
se.displayName = "CollapsibleFolder";
|
|
194
|
+
export {
|
|
195
|
+
se as CollapsibleFolder
|
|
196
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react/jsx-runtime"),l=require("react"),oe=require("react-dom"),R=require("lucide-react"),t=require("./Combobox.module.css.cjs"),de=(u,i)=>{const c=i.toLowerCase().trim();return c?u.label.toLowerCase().includes(c)||u.value.toLowerCase().includes(c)||(u.description?.toLowerCase().includes(c)??!1):!0},X=l.forwardRef(({options:u,value:i,onChange:c,onInputChange:P,size:D="md",label:S,helperText:z,error:g,loading:K=!1,clearable:U=!0,allowFreeInput:f=!1,filterFn:B=de,openOnFocus:I=!0,minChars:C=0,emptyText:Y="No results found",renderOption:T,maxHeight:_=300,fullWidth:G=!1,placeholder:V,disabled:w,className:J,id:Q,onFocus:A,onBlur:H,onKeyDown:W,...Z},k)=>{const F=l.useId(),$=Q||F,q=`${$}-listbox`,v=l.useRef(null),N=l.useRef(null),b=l.useRef(null),[r,h]=l.useState(!1),[E,o]=l.useState(""),[d,j]=l.useState(-1),[M,ee]=l.useState({top:0,left:0,width:0}),a=l.useMemo(()=>u.find(e=>e.value===i)??null,[u,i]);l.useEffect(()=>{a?o(a.label):f||o("")},[a,f]);const p=l.useMemo(()=>E.length<C?[]:u.filter(e=>B(e,E)),[u,E,C,B]),x=l.useCallback(()=>{if(!v.current)return;const e=v.current.getBoundingClientRect();ee({top:e.bottom+window.scrollY+4,left:e.left+window.scrollX,width:e.width})},[]);l.useEffect(()=>{if(r)return x(),window.addEventListener("resize",x),window.addEventListener("scroll",x,!0),()=>{window.removeEventListener("resize",x),window.removeEventListener("scroll",x,!0)}},[r,x]),l.useEffect(()=>{if(!r)return;const e=n=>{const m=n.target;v.current&&!v.current.contains(m)&&b.current&&!b.current.contains(m)&&(h(!1),!f&&!i?o(""):a&&o(a.label))};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[r,f,i,a]);const te=l.useCallback(e=>{const n=e.target.value;o(n),j(-1),P?.(n),!r&&n.length>=C&&h(!0),a&&n!==a.label&&!f&&c?.(null,null)},[r,C,P,a,f,c]),se=l.useCallback(e=>{I&&!w&&h(!0),A?.(e)},[I,w,A]),le=l.useCallback(e=>{setTimeout(()=>{b.current?.contains(document.activeElement)||(h(!1),!f&&!i?o(""):a&&o(a.label))},200),H?.(e)},[f,i,a,H]),O=l.useCallback(e=>{e.disabled||(c?.(e.value,e),o(e.label),h(!1),j(-1),N.current?.focus())},[c]),ne=l.useCallback(e=>{e.stopPropagation(),c?.(null,null),o(""),N.current?.focus()},[c]),ae=l.useCallback(e=>{switch(e.key){case"ArrowDown":e.preventDefault(),r?j(n=>Math.min(n+1,p.length-1)):h(!0);break;case"ArrowUp":e.preventDefault(),j(n=>Math.max(n-1,0));break;case"Enter":e.preventDefault(),r&&d>=0&&p[d]&&O(p[d]);break;case"Escape":e.preventDefault(),h(!1),o(a?a.label:"");break;case"Tab":h(!1);break}W?.(e)},[r,d,p,O,a,W]);l.useEffect(()=>{d>=0&&b.current&&b.current.querySelectorAll('[role="option"]')[d]?.scrollIntoView({block:"nearest"})},[d]);const re=[t.default.container,t.default[D],G&&t.default.fullWidth,w&&t.default.disabled,g&&t.default.error,J].filter(Boolean).join(" "),L=D==="sm"?14:D==="lg"?20:16,ie=(e,n)=>{const m=e.value===i,y=n===d;return T?T(e,m,y):s.jsxs(s.Fragment,{children:[e.icon&&s.jsx("span",{className:t.default.optionIcon,"aria-hidden":"true",children:e.icon}),s.jsxs("div",{className:t.default.optionContent,children:[s.jsx("span",{className:t.default.optionLabel,children:e.label}),e.description&&s.jsx("span",{className:t.default.optionDescription,children:e.description})]}),m&&s.jsx(R.Check,{size:L,className:t.default.checkIcon,"aria-hidden":"true"})]})},ce=s.jsx("div",{ref:b,className:`${t.default.dropdown} ${r&&t.default.visible}`,style:{top:M.top,left:M.left,width:M.width,maxHeight:_},role:"listbox",id:q,"aria-label":S||V,children:K?s.jsxs("div",{className:t.default.loading,children:[s.jsx(R.Loader2,{size:L,className:t.default.spinner}),s.jsx("span",{children:"Loading..."})]}):p.length===0?s.jsx("div",{className:t.default.empty,children:Y}):p.map((e,n)=>{const m=n===d,y=e.value===i;return s.jsx("div",{className:[t.default.option,m&&t.default.highlighted,y&&t.default.selected,e.disabled&&t.default.disabled].filter(Boolean).join(" "),role:"option","aria-selected":y,"aria-disabled":e.disabled,onClick:()=>O(e),onMouseEnter:()=>j(n),children:ie(e,n)},e.value)})});return s.jsxs("div",{className:re,children:[S&&s.jsx("label",{htmlFor:$,className:t.default.label,children:S}),s.jsxs("div",{ref:v,className:t.default.inputWrapper,onClick:()=>N.current?.focus(),children:[s.jsx("input",{...Z,ref:e=>{typeof k=="function"?k(e):k&&(k.current=e),N.current=e},id:$,type:"text",className:t.default.input,value:E,onChange:te,onFocus:se,onBlur:le,onKeyDown:ae,disabled:w,placeholder:V,role:"combobox","aria-expanded":r,"aria-haspopup":"listbox","aria-controls":q,"aria-autocomplete":"list","aria-activedescendant":d>=0?`${q}-option-${d}`:void 0}),s.jsxs("div",{className:t.default.actions,children:[U&&i&&!w&&s.jsx("button",{type:"button",className:t.default.clearButton,onClick:ne,"aria-label":"Clear selection",tabIndex:-1,children:s.jsx(R.X,{size:L})}),s.jsx("span",{className:`${t.default.chevron} ${r?t.default.open:""}`,"aria-hidden":"true",children:s.jsx(R.ChevronDown,{size:L})})]})]}),(z||g)&&s.jsx("span",{className:g?t.default.errorText:t.default.helperText,children:g||z}),r&&oe.createPortal(ce,document.body)]})});X.displayName="Combobox";exports.Combobox=X;
|
|
@@ -0,0 +1,271 @@
|
|
|
1
|
+
import { jsx as s, jsxs as v, Fragment as fe } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as me, useId as he, useRef as M, useState as R, useMemo as Y, useEffect as z, useCallback as h } from "react";
|
|
3
|
+
import { createPortal as pe } from "react-dom";
|
|
4
|
+
import { Loader2 as be, X as we, ChevronDown as ve, Check as ge } from "lucide-react";
|
|
5
|
+
import t from "./Combobox.module.css.mjs";
|
|
6
|
+
const Ne = (d, l) => {
|
|
7
|
+
const o = l.toLowerCase().trim();
|
|
8
|
+
return o ? d.label.toLowerCase().includes(o) || d.value.toLowerCase().includes(o) || (d.description?.toLowerCase().includes(o) ?? !1) : !0;
|
|
9
|
+
}, xe = me(
|
|
10
|
+
({
|
|
11
|
+
options: d,
|
|
12
|
+
value: l,
|
|
13
|
+
onChange: o,
|
|
14
|
+
onInputChange: T,
|
|
15
|
+
size: B = "md",
|
|
16
|
+
label: I,
|
|
17
|
+
helperText: V,
|
|
18
|
+
error: k,
|
|
19
|
+
loading: G = !1,
|
|
20
|
+
clearable: J = !0,
|
|
21
|
+
allowFreeInput: u = !1,
|
|
22
|
+
filterFn: A = Ne,
|
|
23
|
+
openOnFocus: H = !0,
|
|
24
|
+
minChars: C = 0,
|
|
25
|
+
emptyText: Q = "No results found",
|
|
26
|
+
renderOption: W,
|
|
27
|
+
maxHeight: Z = 300,
|
|
28
|
+
fullWidth: _ = !1,
|
|
29
|
+
placeholder: X,
|
|
30
|
+
disabled: g,
|
|
31
|
+
className: F,
|
|
32
|
+
id: ee,
|
|
33
|
+
onFocus: q,
|
|
34
|
+
onBlur: K,
|
|
35
|
+
onKeyDown: U,
|
|
36
|
+
...te
|
|
37
|
+
}, L) => {
|
|
38
|
+
const ne = he(), O = ee || ne, P = `${O}-listbox`, N = M(null), y = M(null), p = M(null), [i, f] = R(!1), [E, a] = R(""), [c, x] = R(-1), [S, se] = R({
|
|
39
|
+
top: 0,
|
|
40
|
+
left: 0,
|
|
41
|
+
width: 0
|
|
42
|
+
}), r = Y(
|
|
43
|
+
() => d.find((e) => e.value === l) ?? null,
|
|
44
|
+
[d, l]
|
|
45
|
+
);
|
|
46
|
+
z(() => {
|
|
47
|
+
r ? a(r.label) : u || a("");
|
|
48
|
+
}, [r, u]);
|
|
49
|
+
const b = Y(() => E.length < C ? [] : d.filter((e) => A(e, E)), [d, E, C, A]), w = h(() => {
|
|
50
|
+
if (!N.current) return;
|
|
51
|
+
const e = N.current.getBoundingClientRect();
|
|
52
|
+
se({
|
|
53
|
+
top: e.bottom + window.scrollY + 4,
|
|
54
|
+
left: e.left + window.scrollX,
|
|
55
|
+
width: e.width
|
|
56
|
+
});
|
|
57
|
+
}, []);
|
|
58
|
+
z(() => {
|
|
59
|
+
if (i)
|
|
60
|
+
return w(), window.addEventListener("resize", w), window.addEventListener("scroll", w, !0), () => {
|
|
61
|
+
window.removeEventListener("resize", w), window.removeEventListener("scroll", w, !0);
|
|
62
|
+
};
|
|
63
|
+
}, [i, w]), z(() => {
|
|
64
|
+
if (!i) return;
|
|
65
|
+
const e = (n) => {
|
|
66
|
+
const m = n.target;
|
|
67
|
+
N.current && !N.current.contains(m) && p.current && !p.current.contains(m) && (f(!1), !u && !l ? a("") : r && a(r.label));
|
|
68
|
+
};
|
|
69
|
+
return document.addEventListener("mousedown", e), () => document.removeEventListener("mousedown", e);
|
|
70
|
+
}, [i, u, l, r]);
|
|
71
|
+
const re = h(
|
|
72
|
+
(e) => {
|
|
73
|
+
const n = e.target.value;
|
|
74
|
+
a(n), x(-1), T?.(n), !i && n.length >= C && f(!0), r && n !== r.label && !u && o?.(null, null);
|
|
75
|
+
},
|
|
76
|
+
[
|
|
77
|
+
i,
|
|
78
|
+
C,
|
|
79
|
+
T,
|
|
80
|
+
r,
|
|
81
|
+
u,
|
|
82
|
+
o
|
|
83
|
+
]
|
|
84
|
+
), ie = h(
|
|
85
|
+
(e) => {
|
|
86
|
+
H && !g && f(!0), q?.(e);
|
|
87
|
+
},
|
|
88
|
+
[H, g, q]
|
|
89
|
+
), le = h(
|
|
90
|
+
(e) => {
|
|
91
|
+
setTimeout(() => {
|
|
92
|
+
p.current?.contains(document.activeElement) || (f(!1), !u && !l ? a("") : r && a(r.label));
|
|
93
|
+
}, 200), K?.(e);
|
|
94
|
+
},
|
|
95
|
+
[u, l, r, K]
|
|
96
|
+
), j = h(
|
|
97
|
+
(e) => {
|
|
98
|
+
e.disabled || (o?.(e.value, e), a(e.label), f(!1), x(-1), y.current?.focus());
|
|
99
|
+
},
|
|
100
|
+
[o]
|
|
101
|
+
), oe = h(
|
|
102
|
+
(e) => {
|
|
103
|
+
e.stopPropagation(), o?.(null, null), a(""), y.current?.focus();
|
|
104
|
+
},
|
|
105
|
+
[o]
|
|
106
|
+
), ae = h(
|
|
107
|
+
(e) => {
|
|
108
|
+
switch (e.key) {
|
|
109
|
+
case "ArrowDown":
|
|
110
|
+
e.preventDefault(), i ? x(
|
|
111
|
+
(n) => Math.min(n + 1, b.length - 1)
|
|
112
|
+
) : f(!0);
|
|
113
|
+
break;
|
|
114
|
+
case "ArrowUp":
|
|
115
|
+
e.preventDefault(), x((n) => Math.max(n - 1, 0));
|
|
116
|
+
break;
|
|
117
|
+
case "Enter":
|
|
118
|
+
e.preventDefault(), i && c >= 0 && b[c] && j(b[c]);
|
|
119
|
+
break;
|
|
120
|
+
case "Escape":
|
|
121
|
+
e.preventDefault(), f(!1), a(r ? r.label : "");
|
|
122
|
+
break;
|
|
123
|
+
case "Tab":
|
|
124
|
+
f(!1);
|
|
125
|
+
break;
|
|
126
|
+
}
|
|
127
|
+
U?.(e);
|
|
128
|
+
},
|
|
129
|
+
[
|
|
130
|
+
i,
|
|
131
|
+
c,
|
|
132
|
+
b,
|
|
133
|
+
j,
|
|
134
|
+
r,
|
|
135
|
+
U
|
|
136
|
+
]
|
|
137
|
+
);
|
|
138
|
+
z(() => {
|
|
139
|
+
c >= 0 && p.current && p.current.querySelectorAll('[role="option"]')[c]?.scrollIntoView({ block: "nearest" });
|
|
140
|
+
}, [c]);
|
|
141
|
+
const ce = [
|
|
142
|
+
t.container,
|
|
143
|
+
t[B],
|
|
144
|
+
_ && t.fullWidth,
|
|
145
|
+
g && t.disabled,
|
|
146
|
+
k && t.error,
|
|
147
|
+
F
|
|
148
|
+
].filter(Boolean).join(" "), D = B === "sm" ? 14 : B === "lg" ? 20 : 16, de = (e, n) => {
|
|
149
|
+
const m = e.value === l, $ = n === c;
|
|
150
|
+
return W ? W(e, m, $) : /* @__PURE__ */ v(fe, { children: [
|
|
151
|
+
e.icon && /* @__PURE__ */ s("span", { className: t.optionIcon, "aria-hidden": "true", children: e.icon }),
|
|
152
|
+
/* @__PURE__ */ v("div", { className: t.optionContent, children: [
|
|
153
|
+
/* @__PURE__ */ s("span", { className: t.optionLabel, children: e.label }),
|
|
154
|
+
e.description && /* @__PURE__ */ s("span", { className: t.optionDescription, children: e.description })
|
|
155
|
+
] }),
|
|
156
|
+
m && /* @__PURE__ */ s(
|
|
157
|
+
ge,
|
|
158
|
+
{
|
|
159
|
+
size: D,
|
|
160
|
+
className: t.checkIcon,
|
|
161
|
+
"aria-hidden": "true"
|
|
162
|
+
}
|
|
163
|
+
)
|
|
164
|
+
] });
|
|
165
|
+
}, ue = /* @__PURE__ */ s(
|
|
166
|
+
"div",
|
|
167
|
+
{
|
|
168
|
+
ref: p,
|
|
169
|
+
className: `${t.dropdown} ${i && t.visible}`,
|
|
170
|
+
style: {
|
|
171
|
+
top: S.top,
|
|
172
|
+
left: S.left,
|
|
173
|
+
width: S.width,
|
|
174
|
+
maxHeight: Z
|
|
175
|
+
},
|
|
176
|
+
role: "listbox",
|
|
177
|
+
id: P,
|
|
178
|
+
"aria-label": I || X,
|
|
179
|
+
children: G ? /* @__PURE__ */ v("div", { className: t.loading, children: [
|
|
180
|
+
/* @__PURE__ */ s(be, { size: D, className: t.spinner }),
|
|
181
|
+
/* @__PURE__ */ s("span", { children: "Loading..." })
|
|
182
|
+
] }) : b.length === 0 ? /* @__PURE__ */ s("div", { className: t.empty, children: Q }) : b.map((e, n) => {
|
|
183
|
+
const m = n === c, $ = e.value === l;
|
|
184
|
+
return /* @__PURE__ */ s(
|
|
185
|
+
"div",
|
|
186
|
+
{
|
|
187
|
+
className: [
|
|
188
|
+
t.option,
|
|
189
|
+
m && t.highlighted,
|
|
190
|
+
$ && t.selected,
|
|
191
|
+
e.disabled && t.disabled
|
|
192
|
+
].filter(Boolean).join(" "),
|
|
193
|
+
role: "option",
|
|
194
|
+
"aria-selected": $,
|
|
195
|
+
"aria-disabled": e.disabled,
|
|
196
|
+
onClick: () => j(e),
|
|
197
|
+
onMouseEnter: () => x(n),
|
|
198
|
+
children: de(e, n)
|
|
199
|
+
},
|
|
200
|
+
e.value
|
|
201
|
+
);
|
|
202
|
+
})
|
|
203
|
+
}
|
|
204
|
+
);
|
|
205
|
+
return /* @__PURE__ */ v("div", { className: ce, children: [
|
|
206
|
+
I && /* @__PURE__ */ s("label", { htmlFor: O, className: t.label, children: I }),
|
|
207
|
+
/* @__PURE__ */ v(
|
|
208
|
+
"div",
|
|
209
|
+
{
|
|
210
|
+
ref: N,
|
|
211
|
+
className: t.inputWrapper,
|
|
212
|
+
onClick: () => y.current?.focus(),
|
|
213
|
+
children: [
|
|
214
|
+
/* @__PURE__ */ s(
|
|
215
|
+
"input",
|
|
216
|
+
{
|
|
217
|
+
...te,
|
|
218
|
+
ref: (e) => {
|
|
219
|
+
typeof L == "function" ? L(e) : L && (L.current = e), y.current = e;
|
|
220
|
+
},
|
|
221
|
+
id: O,
|
|
222
|
+
type: "text",
|
|
223
|
+
className: t.input,
|
|
224
|
+
value: E,
|
|
225
|
+
onChange: re,
|
|
226
|
+
onFocus: ie,
|
|
227
|
+
onBlur: le,
|
|
228
|
+
onKeyDown: ae,
|
|
229
|
+
disabled: g,
|
|
230
|
+
placeholder: X,
|
|
231
|
+
role: "combobox",
|
|
232
|
+
"aria-expanded": i,
|
|
233
|
+
"aria-haspopup": "listbox",
|
|
234
|
+
"aria-controls": P,
|
|
235
|
+
"aria-autocomplete": "list",
|
|
236
|
+
"aria-activedescendant": c >= 0 ? `${P}-option-${c}` : void 0
|
|
237
|
+
}
|
|
238
|
+
),
|
|
239
|
+
/* @__PURE__ */ v("div", { className: t.actions, children: [
|
|
240
|
+
J && l && !g && /* @__PURE__ */ s(
|
|
241
|
+
"button",
|
|
242
|
+
{
|
|
243
|
+
type: "button",
|
|
244
|
+
className: t.clearButton,
|
|
245
|
+
onClick: oe,
|
|
246
|
+
"aria-label": "Clear selection",
|
|
247
|
+
tabIndex: -1,
|
|
248
|
+
children: /* @__PURE__ */ s(we, { size: D })
|
|
249
|
+
}
|
|
250
|
+
),
|
|
251
|
+
/* @__PURE__ */ s(
|
|
252
|
+
"span",
|
|
253
|
+
{
|
|
254
|
+
className: `${t.chevron} ${i ? t.open : ""}`,
|
|
255
|
+
"aria-hidden": "true",
|
|
256
|
+
children: /* @__PURE__ */ s(ve, { size: D })
|
|
257
|
+
}
|
|
258
|
+
)
|
|
259
|
+
] })
|
|
260
|
+
]
|
|
261
|
+
}
|
|
262
|
+
),
|
|
263
|
+
(V || k) && /* @__PURE__ */ s("span", { className: k ? t.errorText : t.helperText, children: k || V }),
|
|
264
|
+
i && pe(ue, document.body)
|
|
265
|
+
] });
|
|
266
|
+
}
|
|
267
|
+
);
|
|
268
|
+
xe.displayName = "Combobox";
|
|
269
|
+
export {
|
|
270
|
+
xe as Combobox
|
|
271
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react/jsx-runtime"),s=require("react"),H=require("react-dom"),K=require("lucide-react"),r=require("./Command.module.css.cjs"),U=require("../Divider/Divider.cjs"),B=s.createContext(null);function S(){const e=s.useContext(B);if(!e)throw new Error("Command compound components must be used within <Command>");return e}const $=(e,t)=>t?e.toLowerCase().includes(t.toLowerCase())?1:0:1,d=({value:e,onValueChange:t,filter:n=$,children:i,className:c,...l})=>{const[C,b]=s.useState(""),[v,p]=s.useState(0),y=s.useRef(new Map),[,j]=s.useState(0),x=s.useId(),m=e!==void 0?e:C,I=s.useCallback(o=>{e!==void 0?t?.(o):b(o),p(0)},[e,t]),N=s.useCallback((o,u)=>{y.current.set(o,u),j(f=>f+1)},[]),w=s.useCallback(o=>{y.current.delete(o),j(u=>u+1)},[]),g=s.useCallback(()=>{const o=[];for(const[u,f]of y.current)n(f,m)>0&&o.push(u);return o},[n,m]),h=s.useMemo(()=>({search:m,setSearch:I,filter:n,activeIndex:v,setActiveIndex:p,registerItem:N,unregisterItem:w,items:y.current,getVisibleItems:g,listId:x}),[m,I,n,v,p,N,w,g,x]),k=s.useRef(null),E=s.useCallback(o=>{const u=g();if(u.length){if(o.key==="ArrowDown")o.preventDefault(),p(f=>(f+1)%u.length);else if(o.key==="ArrowUp")o.preventDefault(),p(f=>(f-1+u.length)%u.length);else if(o.key==="Enter"){o.preventDefault();const f=u[v];f&&k.current?.querySelector(`[data-command-id="${f}"]`)?.click()}}},[g,v,p]),T=[r.default.command,c].filter(Boolean).join(" ");return a.jsx(B.Provider,{value:h,children:a.jsx("div",{ref:k,className:T,onKeyDown:E,...l,children:i})})},R=({className:e,...t})=>{const{search:n,setSearch:i,listId:c}=S(),l=s.useRef(null);s.useEffect(()=>{l.current?.focus()},[]);const C=[r.default.inputWrapper,e].filter(Boolean).join(" ");return a.jsxs("div",{className:C,children:[a.jsx(K.Search,{size:16,className:r.default.searchIcon,"aria-hidden":"true"}),a.jsx("input",{ref:l,className:r.default.input,value:n,onChange:b=>i(b.target.value),type:"text",role:"combobox","aria-expanded":"true","aria-autocomplete":"list","aria-controls":c,...t})]})};R.displayName="Command.Input";const q=({children:e,className:t,...n})=>{const{listId:i}=S(),c=[r.default.list,t].filter(Boolean).join(" ");return a.jsx("div",{id:i,className:c,role:"listbox",...n,children:e})};q.displayName="Command.List";const L=({children:e,className:t})=>{const{getVisibleItems:n}=S();if(n().length>0)return null;const c=[r.default.empty,t].filter(Boolean).join(" ");return a.jsx("div",{className:c,role:"status","aria-live":"polite",children:e})};L.displayName="Command.Empty";const A=({heading:e,children:t,className:n})=>{const i=[r.default.group,n].filter(Boolean).join(" ");return a.jsxs("div",{className:i,role:"group","aria-label":e,children:[e&&a.jsx("div",{className:r.default.groupHeading,children:e}),t]})};A.displayName="Command.Group";let z=0;const V=({onSelect:e,disabled:t=!1,value:n,children:i,className:c,...l})=>{const{filter:C,search:b,activeIndex:v,getVisibleItems:p,registerItem:y,unregisterItem:j}=S(),x=s.useRef("");x.current||(x.current=`cmd-item-${++z}`);const m=x.current,I=n||D(i);s.useEffect(()=>(y(m,I),()=>j(m)),[m,I,y,j]);const N=C(I,b)>0,h=p().indexOf(m)===v,k=()=>{t||e?.()},E=[r.default.item,t&&r.default.itemDisabled,!N&&r.default.itemHidden,c].filter(Boolean).join(" ");return a.jsx("div",{className:E,"data-command-id":m,"data-active":h,role:"option","aria-selected":h,"aria-disabled":t,onClick:k,...l,children:i})};V.displayName="Command.Item";const G=({className:e})=>{const t=[r.default.separator,e].filter(Boolean).join(" ");return a.jsx(U.Divider,{spacing:"none",className:t})};G.displayName="Command.Separator";const M=({children:e,className:t})=>{const n=[r.default.shortcut,t].filter(Boolean).join(" ");return a.jsx("span",{className:n,children:e})};M.displayName="Command.Shortcut";const P=({open:e,onOpenChange:t,children:n,className:i})=>{if(s.useEffect(()=>{if(!e)return;const l=C=>{C.key==="Escape"&&t(!1)};return document.addEventListener("keydown",l),()=>document.removeEventListener("keydown",l)},[e,t]),s.useEffect(()=>(e?document.body.style.overflow="hidden":document.body.style.overflow="",()=>{document.body.style.overflow=""}),[e]),!e)return null;const c=l=>{l.target===l.currentTarget&&t(!1)};return H.createPortal(a.jsx("div",{className:r.default.dialogBackdrop,onClick:c,children:a.jsx("div",{className:[r.default.dialogContent,i].filter(Boolean).join(" "),children:a.jsx(d,{children:n})})}),document.body)};P.displayName="Command.Dialog";d.Input=R;d.List=q;d.Empty=L;d.Group=A;d.Item=V;d.Separator=G;d.Shortcut=M;d.Dialog=P;d.displayName="Command";function D(e){return typeof e=="string"?e:typeof e=="number"?String(e):Array.isArray(e)?e.map(D).join(" "):s.isValidElement(e)&&e.props?D(e.props.children):""}exports.Command=d;
|