@orion-ds/react 4.2.14 → 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/index12.cjs +0 -1
- package/dist/index12.mjs +0 -107
- 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/index159.cjs +0 -1
- package/dist/index159.mjs +0 -36
- package/dist/index16.cjs +0 -1
- package/dist/index16.mjs +0 -106
- package/dist/index160.cjs +0 -1
- package/dist/index160.mjs +0 -46
- package/dist/index161.cjs +0 -1
- package/dist/index161.mjs +0 -173
- package/dist/index162.cjs +0 -1
- package/dist/index162.mjs +0 -188
- package/dist/index163.cjs +0 -1
- package/dist/index163.mjs +0 -31
- package/dist/index164.cjs +0 -1
- package/dist/index164.mjs +0 -93
- package/dist/index165.cjs +0 -1
- package/dist/index165.mjs +0 -55
- package/dist/index166.cjs +0 -1
- package/dist/index166.mjs +0 -69
- package/dist/index167.cjs +0 -1
- package/dist/index167.mjs +0 -127
- package/dist/index168.cjs +0 -1
- package/dist/index168.mjs +0 -111
- package/dist/index169.cjs +0 -1
- package/dist/index169.mjs +0 -114
- package/dist/index17.cjs +0 -1
- package/dist/index17.mjs +0 -178
- package/dist/index170.cjs +0 -1
- package/dist/index170.mjs +0 -125
- package/dist/index171.cjs +0 -1
- package/dist/index171.mjs +0 -217
- 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/{index181.cjs → components/Accordion/Accordion.module.css.cjs} +0 -0
- /package/dist/{index181.mjs → components/Accordion/Accordion.module.css.mjs} +0 -0
- /package/dist/{index136.cjs → components/ActivityFeed/ActivityFeed.module.css.cjs} +0 -0
- /package/dist/{index136.mjs → components/ActivityFeed/ActivityFeed.module.css.mjs} +0 -0
- /package/dist/{index147.cjs → components/AgentCard/AgentCard.module.css.cjs} +0 -0
- /package/dist/{index147.mjs → components/AgentCard/AgentCard.module.css.mjs} +0 -0
- /package/dist/{index139.cjs → components/Alert/Alert.module.css.cjs} +0 -0
- /package/dist/{index139.mjs → components/Alert/Alert.module.css.mjs} +0 -0
- /package/dist/{index111.cjs → components/AlertDialog/AlertDialog.module.css.cjs} +0 -0
- /package/dist/{index111.mjs → components/AlertDialog/AlertDialog.module.css.mjs} +0 -0
- /package/dist/{index106.cjs → components/Avatar/Avatar.module.css.cjs} +0 -0
- /package/dist/{index106.mjs → components/Avatar/Avatar.module.css.mjs} +0 -0
- /package/dist/{index179.cjs → components/Badge/Badge.module.css.cjs} +0 -0
- /package/dist/{index179.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/{index178.cjs → components/Breadcrumb/Breadcrumb.module.css.cjs} +0 -0
- /package/dist/{index178.mjs → components/Breadcrumb/Breadcrumb.module.css.mjs} +0 -0
- /package/dist/{index119.cjs → components/Button/Button.module.css.cjs} +0 -0
- /package/dist/{index119.mjs → components/Button/Button.module.css.mjs} +0 -0
- /package/dist/{index102.cjs → components/Calendar/Calendar.module.css.cjs} +0 -0
- /package/dist/{index102.mjs → components/Calendar/Calendar.module.css.mjs} +0 -0
- /package/dist/{index123.cjs → components/Card/Card.module.css.cjs} +0 -0
- /package/dist/{index123.mjs → components/Card/Card.module.css.mjs} +0 -0
- /package/dist/{index129.cjs → components/Carousel/Carousel.module.css.cjs} +0 -0
- /package/dist/{index129.mjs → components/Carousel/Carousel.module.css.mjs} +0 -0
- /package/dist/{index128.cjs → components/Chart/Chart.module.css.cjs} +0 -0
- /package/dist/{index128.mjs → components/Chart/Chart.module.css.mjs} +0 -0
- /package/dist/{index127.cjs → components/Chart/useResolvedChartColors.cjs} +0 -0
- /package/dist/{index127.mjs → components/Chart/useResolvedChartColors.mjs} +0 -0
- /package/dist/{index158.cjs → components/Chat/Chat.module.css.cjs} +0 -0
- /package/dist/{index158.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/{index153.cjs → components/Checkbox/Checkbox.module.css.cjs} +0 -0
- /package/dist/{index153.mjs → components/Checkbox/Checkbox.module.css.mjs} +0 -0
- /package/dist/{index117.cjs → components/Chip/Chip.module.css.cjs} +0 -0
- /package/dist/{index117.mjs → components/Chip/Chip.module.css.mjs} +0 -0
- /package/dist/{index145.cjs → components/CodeEditor/CodeEditor.module.css.cjs} +0 -0
- /package/dist/{index145.mjs → components/CodeEditor/CodeEditor.module.css.mjs} +0 -0
- /package/dist/{index122.cjs → components/Collapsible/Collapsible.module.css.cjs} +0 -0
- /package/dist/{index122.mjs → components/Collapsible/Collapsible.module.css.mjs} +0 -0
- /package/dist/{index157.cjs → components/CollapsibleFolder/CollapsibleFolder.module.css.cjs} +0 -0
- /package/dist/{index157.mjs → components/CollapsibleFolder/CollapsibleFolder.module.css.mjs} +0 -0
- /package/dist/{index124.cjs → components/Combobox/Combobox.module.css.cjs} +0 -0
- /package/dist/{index124.mjs → components/Combobox/Combobox.module.css.mjs} +0 -0
- /package/dist/{index120.cjs → components/Command/Command.module.css.cjs} +0 -0
- /package/dist/{index120.mjs → components/Command/Command.module.css.mjs} +0 -0
- /package/dist/{index152.cjs → components/CommandBar/CommandBar.module.css.cjs} +0 -0
- /package/dist/{index152.mjs → components/CommandBar/CommandBar.module.css.mjs} +0 -0
- /package/dist/{index133.cjs → components/DataTable/DataTable.module.css.cjs} +0 -0
- /package/dist/{index133.mjs → components/DataTable/DataTable.module.css.mjs} +0 -0
- /package/dist/{index113.cjs → components/DatePicker/DatePicker.module.css.cjs} +0 -0
- /package/dist/{index113.mjs → components/DatePicker/DatePicker.module.css.mjs} +0 -0
- /package/dist/{index125.cjs → components/DetailPanel/DetailPanel.module.css.cjs} +0 -0
- /package/dist/{index125.mjs → components/DetailPanel/DetailPanel.module.css.mjs} +0 -0
- /package/dist/{index150.cjs → components/Divider/Divider.module.css.cjs} +0 -0
- /package/dist/{index150.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/{index131.cjs → components/Dropdown/Dropdown.module.css.cjs} +0 -0
- /package/dist/{index131.mjs → components/Dropdown/Dropdown.module.css.mjs} +0 -0
- /package/dist/{index140.cjs → components/EmptyState/EmptyState.module.css.cjs} +0 -0
- /package/dist/{index140.mjs → components/EmptyState/EmptyState.module.css.mjs} +0 -0
- /package/dist/{index116.cjs → components/ErrorBoundary/ErrorBoundary.module.css.cjs} +0 -0
- /package/dist/{index116.mjs → components/ErrorBoundary/ErrorBoundary.module.css.mjs} +0 -0
- /package/dist/{index149.cjs → components/Field/Field.module.css.cjs} +0 -0
- /package/dist/{index149.mjs → components/Field/Field.module.css.mjs} +0 -0
- /package/dist/{index137.cjs → components/FileUploader/FileUploader.module.css.cjs} +0 -0
- /package/dist/{index137.mjs → components/FileUploader/FileUploader.module.css.mjs} +0 -0
- /package/dist/{index132.cjs → components/FilterBar/FilterBar.module.css.cjs} +0 -0
- /package/dist/{index132.mjs → components/FilterBar/FilterBar.module.css.mjs} +0 -0
- /package/dist/{index155.cjs → components/FormSection/FormSection.module.css.cjs} +0 -0
- /package/dist/{index155.mjs → components/FormSection/FormSection.module.css.mjs} +0 -0
- /package/dist/{index110.cjs → components/Icon/Icon.module.css.cjs} +0 -0
- /package/dist/{index110.mjs → components/Icon/Icon.module.css.mjs} +0 -0
- /package/dist/{index174.cjs → components/IconGallery/IconGallery.module.css.cjs} +0 -0
- /package/dist/{index174.mjs → components/IconGallery/IconGallery.module.css.mjs} +0 -0
- /package/dist/{index112.cjs → components/InputOTP/InputOTP.module.css.cjs} +0 -0
- /package/dist/{index112.mjs → components/InputOTP/InputOTP.module.css.mjs} +0 -0
- /package/dist/{index156.cjs → components/KanbanBoard/KanbanBoard.module.css.cjs} +0 -0
- /package/dist/{index156.mjs → components/KanbanBoard/KanbanBoard.module.css.mjs} +0 -0
- /package/dist/{index121.cjs → components/Link/Link.module.css.cjs} +0 -0
- /package/dist/{index121.mjs → components/Link/Link.module.css.mjs} +0 -0
- /package/dist/{index142.cjs → components/List/List.module.css.cjs} +0 -0
- /package/dist/{index142.mjs → components/List/List.module.css.mjs} +0 -0
- /package/dist/{index172.cjs → components/MetricCards/MetricCards.module.css.cjs} +0 -0
- /package/dist/{index172.mjs → components/MetricCards/MetricCards.module.css.mjs} +0 -0
- /package/dist/{index138.cjs → components/Modal/Modal.module.css.cjs} +0 -0
- /package/dist/{index138.mjs → components/Modal/Modal.module.css.mjs} +0 -0
- /package/dist/{index114.cjs → components/NavTree/NavTree.module.css.cjs} +0 -0
- /package/dist/{index114.mjs → components/NavTree/NavTree.module.css.mjs} +0 -0
- /package/dist/{index108.cjs → components/Navbar/Navbar.module.css.cjs} +0 -0
- /package/dist/{index108.mjs → components/Navbar/Navbar.module.css.mjs} +0 -0
- /package/dist/{index148.cjs → components/NotificationCenter/NotificationCenter.module.css.cjs} +0 -0
- /package/dist/{index148.mjs → components/NotificationCenter/NotificationCenter.module.css.mjs} +0 -0
- /package/dist/{index134.cjs → components/PageHeader/PageHeader.module.css.cjs} +0 -0
- /package/dist/{index134.mjs → components/PageHeader/PageHeader.module.css.mjs} +0 -0
- /package/dist/{index143.cjs → components/Pagination/Pagination.module.css.cjs} +0 -0
- /package/dist/{index143.mjs → components/Pagination/Pagination.module.css.mjs} +0 -0
- /package/dist/{index135.cjs → components/Popover/Popover.module.css.cjs} +0 -0
- /package/dist/{index135.mjs → components/Popover/Popover.module.css.mjs} +0 -0
- /package/dist/{index176.cjs → components/ProgressBar/ProgressBar.module.css.cjs} +0 -0
- /package/dist/{index176.mjs → components/ProgressBar/ProgressBar.module.css.mjs} +0 -0
- /package/dist/{index175.cjs → components/QuickActions/QuickActions.module.css.cjs} +0 -0
- /package/dist/{index175.mjs → components/QuickActions/QuickActions.module.css.mjs} +0 -0
- /package/dist/{index103.cjs → components/Radio/Radio.module.css.cjs} +0 -0
- /package/dist/{index103.mjs → components/Radio/Radio.module.css.mjs} +0 -0
- /package/dist/{index105.cjs → components/SearchInput/SearchInput.module.css.cjs} +0 -0
- /package/dist/{index105.mjs → components/SearchInput/SearchInput.module.css.mjs} +0 -0
- /package/dist/{index173.cjs → components/Select/Select.module.css.cjs} +0 -0
- /package/dist/{index173.mjs → components/Select/Select.module.css.mjs} +0 -0
- /package/dist/{index151.cjs → components/Sidebar/Sidebar.module.css.cjs} +0 -0
- /package/dist/{index151.mjs → components/Sidebar/Sidebar.module.css.mjs} +0 -0
- /package/dist/{index130.cjs → components/Skeleton/Skeleton.module.css.cjs} +0 -0
- /package/dist/{index130.mjs → components/Skeleton/Skeleton.module.css.mjs} +0 -0
- /package/dist/{index99.cjs → components/Slider/Slider.module.css.cjs} +0 -0
- /package/dist/{index99.mjs → components/Slider/Slider.module.css.mjs} +0 -0
- /package/dist/{index115.cjs → components/Spinner/Spinner.module.css.cjs} +0 -0
- /package/dist/{index115.mjs → components/Spinner/Spinner.module.css.mjs} +0 -0
- /package/dist/{index118.cjs → components/Stepper/Stepper.module.css.cjs} +0 -0
- /package/dist/{index118.mjs → components/Stepper/Stepper.module.css.mjs} +0 -0
- /package/dist/{index126.cjs → components/Switch/Switch.module.css.cjs} +0 -0
- /package/dist/{index126.mjs → components/Switch/Switch.module.css.mjs} +0 -0
- /package/dist/{index144.cjs → components/Table/Table.module.css.cjs} +0 -0
- /package/dist/{index144.mjs → components/Table/Table.module.css.mjs} +0 -0
- /package/dist/{index109.cjs → components/Tabs/Tabs.module.css.cjs} +0 -0
- /package/dist/{index109.mjs → components/Tabs/Tabs.module.css.mjs} +0 -0
- /package/dist/{index104.cjs → components/Textarea/Textarea.module.css.cjs} +0 -0
- /package/dist/{index104.mjs → components/Textarea/Textarea.module.css.mjs} +0 -0
- /package/dist/{index100.cjs → components/Toast/Toast.module.css.cjs} +0 -0
- /package/dist/{index100.mjs → components/Toast/Toast.module.css.mjs} +0 -0
- /package/dist/{index101.cjs → components/Toggle/Toggle.module.css.cjs} +0 -0
- /package/dist/{index101.mjs → components/Toggle/Toggle.module.css.mjs} +0 -0
- /package/dist/{index180.cjs → components/ToggleGroup/ToggleGroup.module.css.cjs} +0 -0
- /package/dist/{index180.mjs → components/ToggleGroup/ToggleGroup.module.css.mjs} +0 -0
- /package/dist/{index107.cjs → components/Tooltip/Tooltip.module.css.cjs} +0 -0
- /package/dist/{index107.mjs → components/Tooltip/Tooltip.module.css.mjs} +0 -0
- /package/dist/{index154.cjs → components/UserMenu/UserMenu.module.css.cjs} +0 -0
- /package/dist/{index154.mjs → components/UserMenu/UserMenu.module.css.mjs} +0 -0
- /package/dist/{index177.cjs → components/WorkspaceSwitcher/WorkspaceSwitcher.module.css.cjs} +0 -0
- /package/dist/{index177.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,111 @@
|
|
|
1
|
+
import { jsx as r, jsxs as c } from "react/jsx-runtime";
|
|
2
|
+
import { X as t, Square as b, Send as C, Mic as j } from "lucide-react";
|
|
3
|
+
import { useVoiceRecorder as S } from "../hooks/useVoiceRecorder.mjs";
|
|
4
|
+
import { formatTime as k } from "../utils.mjs";
|
|
5
|
+
import e from "../Chat.module.css.mjs";
|
|
6
|
+
const z = ({
|
|
7
|
+
onRecordingComplete: d,
|
|
8
|
+
onCancel: v,
|
|
9
|
+
maxDuration: m = 300,
|
|
10
|
+
className: a,
|
|
11
|
+
...n
|
|
12
|
+
}) => {
|
|
13
|
+
const {
|
|
14
|
+
isRecording: o,
|
|
15
|
+
duration: R,
|
|
16
|
+
audioBlob: i,
|
|
17
|
+
error: s,
|
|
18
|
+
startRecording: h,
|
|
19
|
+
stopRecording: u,
|
|
20
|
+
cancelRecording: N,
|
|
21
|
+
reset: l,
|
|
22
|
+
isSupported: f
|
|
23
|
+
} = S({
|
|
24
|
+
maxDuration: m,
|
|
25
|
+
onRecordingComplete: d,
|
|
26
|
+
onError: (g) => console.error("Recording error:", g)
|
|
27
|
+
}), p = () => {
|
|
28
|
+
o ? u() : i ? (d?.(i), l()) : h();
|
|
29
|
+
}, B = () => {
|
|
30
|
+
N(), v?.();
|
|
31
|
+
};
|
|
32
|
+
return f ? s ? /* @__PURE__ */ c(
|
|
33
|
+
"div",
|
|
34
|
+
{
|
|
35
|
+
className: [e.voiceRecorder, a].filter(Boolean).join(" "),
|
|
36
|
+
...n,
|
|
37
|
+
children: [
|
|
38
|
+
/* @__PURE__ */ r("div", { className: e.voiceRecorderInfo, children: /* @__PURE__ */ r(
|
|
39
|
+
"span",
|
|
40
|
+
{
|
|
41
|
+
className: [
|
|
42
|
+
e.voiceRecorderLabel,
|
|
43
|
+
e.voiceRecorderError
|
|
44
|
+
].join(" "),
|
|
45
|
+
children: s
|
|
46
|
+
}
|
|
47
|
+
) }),
|
|
48
|
+
/* @__PURE__ */ r(
|
|
49
|
+
"button",
|
|
50
|
+
{
|
|
51
|
+
className: e.inputButton,
|
|
52
|
+
onClick: l,
|
|
53
|
+
"aria-label": "Try again",
|
|
54
|
+
children: /* @__PURE__ */ r(t, { size: 20 })
|
|
55
|
+
}
|
|
56
|
+
)
|
|
57
|
+
]
|
|
58
|
+
}
|
|
59
|
+
) : /* @__PURE__ */ c(
|
|
60
|
+
"div",
|
|
61
|
+
{
|
|
62
|
+
className: [e.voiceRecorder, a].filter(Boolean).join(" "),
|
|
63
|
+
...n,
|
|
64
|
+
children: [
|
|
65
|
+
/* @__PURE__ */ r(
|
|
66
|
+
"button",
|
|
67
|
+
{
|
|
68
|
+
className: [
|
|
69
|
+
e.voiceRecorderButton,
|
|
70
|
+
!o && !i && e.voiceRecorderButtonIdle
|
|
71
|
+
].filter(Boolean).join(" "),
|
|
72
|
+
onClick: p,
|
|
73
|
+
"aria-label": o ? "Stop recording" : i ? "Send recording" : "Start recording",
|
|
74
|
+
children: o ? /* @__PURE__ */ r(b, { size: 20 }) : i ? /* @__PURE__ */ r(C, { size: 20 }) : /* @__PURE__ */ r(j, { size: 20 })
|
|
75
|
+
}
|
|
76
|
+
),
|
|
77
|
+
/* @__PURE__ */ c("div", { className: e.voiceRecorderInfo, children: [
|
|
78
|
+
/* @__PURE__ */ r("span", { className: e.voiceRecorderDuration, children: k(R) }),
|
|
79
|
+
/* @__PURE__ */ r("span", { className: e.voiceRecorderLabel, children: o ? "Recording..." : i ? "Recording ready" : "Click to record" })
|
|
80
|
+
] }),
|
|
81
|
+
o && /* @__PURE__ */ c("div", { className: e.voiceRecorderWaveform, children: [
|
|
82
|
+
/* @__PURE__ */ r("div", { className: e.voiceRecorderBar }),
|
|
83
|
+
/* @__PURE__ */ r("div", { className: e.voiceRecorderBar }),
|
|
84
|
+
/* @__PURE__ */ r("div", { className: e.voiceRecorderBar }),
|
|
85
|
+
/* @__PURE__ */ r("div", { className: e.voiceRecorderBar }),
|
|
86
|
+
/* @__PURE__ */ r("div", { className: e.voiceRecorderBar })
|
|
87
|
+
] }),
|
|
88
|
+
(o || i) && /* @__PURE__ */ r("div", { className: e.voiceRecorderActions, children: /* @__PURE__ */ r(
|
|
89
|
+
"button",
|
|
90
|
+
{
|
|
91
|
+
className: e.inputButton,
|
|
92
|
+
onClick: B,
|
|
93
|
+
"aria-label": "Cancel recording",
|
|
94
|
+
children: /* @__PURE__ */ r(t, { size: 20 })
|
|
95
|
+
}
|
|
96
|
+
) })
|
|
97
|
+
]
|
|
98
|
+
}
|
|
99
|
+
) : /* @__PURE__ */ r(
|
|
100
|
+
"div",
|
|
101
|
+
{
|
|
102
|
+
className: [e.voiceRecorder, a].filter(Boolean).join(" "),
|
|
103
|
+
...n,
|
|
104
|
+
children: /* @__PURE__ */ r("div", { className: e.voiceRecorderInfo, children: /* @__PURE__ */ r("span", { className: e.voiceRecorderLabel, children: "Voice recording is not supported in this browser" }) })
|
|
105
|
+
}
|
|
106
|
+
);
|
|
107
|
+
};
|
|
108
|
+
z.displayName = "ChatVoiceRecorder";
|
|
109
|
+
export {
|
|
110
|
+
z as ChatVoiceRecorder
|
|
111
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),t=require("react"),u=require("lucide-react"),s=require("./Checkbox.module.css.cjs"),m=t.forwardRef(({label:i,helperText:n,error:a,size:j="md",indeterminate:r=!1,className:k,id:N,disabled:h,required:o,checked:v,"aria-label":f,"aria-describedby":p,...C},y)=>{const R=t.useId(),l=N||`checkbox-${R}`,x=`${l}-error`,b=`${l}-helper`,g=t.useRef(null),d=y||g;t.useEffect(()=>{d.current&&(d.current.indeterminate=r)},[r,d]);const c=[];a&&c.push(x),n&&!a&&c.push(b),p&&c.push(p);const I=c.length>0?c.join(" "):void 0;!(i||f)&&process.env.NODE_ENV==="development"&&console.warn("Checkbox: Missing accessible name. Provide either a `label` prop or `aria-label` for screen reader users.");const q=r?"mixed":void 0,M=[s.default.container,s.default[j],a&&s.default.error,h&&s.default.disabled,k].filter(Boolean).join(" ");return e.jsxs("div",{className:M,children:[e.jsx("input",{ref:d,type:"checkbox",id:l,className:s.default.input,disabled:h,required:o,checked:v,"aria-required":o||void 0,"aria-invalid":a?"true":"false","aria-checked":q,"aria-describedby":I,"aria-label":i?void 0:f,...C}),e.jsxs("label",{htmlFor:l,className:s.default.labelWrapper,children:[e.jsx("span",{className:s.default.checkbox,"aria-hidden":"true",children:e.jsx("span",{className:s.default.checkmark,children:r?e.jsx(u.Minus,{strokeWidth:3}):e.jsx(u.Check,{strokeWidth:3})})}),i&&e.jsxs("span",{className:s.default.label,children:[i,o&&e.jsx("span",{className:s.default.required,"aria-hidden":"true",children:"*"})]})]}),n&&!a&&e.jsx("p",{id:b,className:s.default.helperText,children:n}),a&&e.jsxs("p",{id:x,className:s.default.errorMessage,role:"alert","aria-live":"assertive",children:[e.jsx(u.AlertCircle,{size:14,"aria-hidden":"true"}),e.jsx("span",{children:a})]})]})});m.displayName="Checkbox";exports.Checkbox=m;
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import { jsxs as l, jsx as s } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as A, useId as B, useRef as E, useEffect as M } from "react";
|
|
3
|
+
import { Minus as W, Check as $, AlertCircle as w } from "lucide-react";
|
|
4
|
+
import e from "./Checkbox.module.css.mjs";
|
|
5
|
+
const z = A(
|
|
6
|
+
({
|
|
7
|
+
label: i,
|
|
8
|
+
helperText: d,
|
|
9
|
+
error: a,
|
|
10
|
+
size: b = "md",
|
|
11
|
+
indeterminate: r = !1,
|
|
12
|
+
className: k,
|
|
13
|
+
id: N,
|
|
14
|
+
disabled: h,
|
|
15
|
+
required: t,
|
|
16
|
+
checked: v,
|
|
17
|
+
"aria-label": p,
|
|
18
|
+
"aria-describedby": m,
|
|
19
|
+
...x
|
|
20
|
+
}, C) => {
|
|
21
|
+
const y = B(), n = N || `checkbox-${y}`, f = `${n}-error`, u = `${n}-helper`, I = E(null), o = C || I;
|
|
22
|
+
M(() => {
|
|
23
|
+
o.current && (o.current.indeterminate = r);
|
|
24
|
+
}, [r, o]);
|
|
25
|
+
const c = [];
|
|
26
|
+
a && c.push(f), d && !a && c.push(u), m && c.push(m);
|
|
27
|
+
const g = c.length > 0 ? c.join(" ") : void 0;
|
|
28
|
+
!(i || p) && process.env.NODE_ENV === "development" && console.warn(
|
|
29
|
+
"Checkbox: Missing accessible name. Provide either a `label` prop or `aria-label` for screen reader users."
|
|
30
|
+
);
|
|
31
|
+
const j = r ? "mixed" : void 0, R = [
|
|
32
|
+
e.container,
|
|
33
|
+
e[b],
|
|
34
|
+
a && e.error,
|
|
35
|
+
h && e.disabled,
|
|
36
|
+
k
|
|
37
|
+
].filter(Boolean).join(" ");
|
|
38
|
+
return /* @__PURE__ */ l("div", { className: R, children: [
|
|
39
|
+
/* @__PURE__ */ s(
|
|
40
|
+
"input",
|
|
41
|
+
{
|
|
42
|
+
ref: o,
|
|
43
|
+
type: "checkbox",
|
|
44
|
+
id: n,
|
|
45
|
+
className: e.input,
|
|
46
|
+
disabled: h,
|
|
47
|
+
required: t,
|
|
48
|
+
checked: v,
|
|
49
|
+
"aria-required": t || void 0,
|
|
50
|
+
"aria-invalid": a ? "true" : "false",
|
|
51
|
+
"aria-checked": j,
|
|
52
|
+
"aria-describedby": g,
|
|
53
|
+
"aria-label": i ? void 0 : p,
|
|
54
|
+
...x
|
|
55
|
+
}
|
|
56
|
+
),
|
|
57
|
+
/* @__PURE__ */ l("label", { htmlFor: n, className: e.labelWrapper, children: [
|
|
58
|
+
/* @__PURE__ */ s("span", { className: e.checkbox, "aria-hidden": "true", children: /* @__PURE__ */ s("span", { className: e.checkmark, children: r ? /* @__PURE__ */ s(W, { strokeWidth: 3 }) : /* @__PURE__ */ s($, { strokeWidth: 3 }) }) }),
|
|
59
|
+
i && /* @__PURE__ */ l("span", { className: e.label, children: [
|
|
60
|
+
i,
|
|
61
|
+
t && /* @__PURE__ */ s("span", { className: e.required, "aria-hidden": "true", children: "*" })
|
|
62
|
+
] })
|
|
63
|
+
] }),
|
|
64
|
+
d && !a && /* @__PURE__ */ s("p", { id: u, className: e.helperText, children: d }),
|
|
65
|
+
a && /* @__PURE__ */ l(
|
|
66
|
+
"p",
|
|
67
|
+
{
|
|
68
|
+
id: f,
|
|
69
|
+
className: e.errorMessage,
|
|
70
|
+
role: "alert",
|
|
71
|
+
"aria-live": "assertive",
|
|
72
|
+
children: [
|
|
73
|
+
/* @__PURE__ */ s(w, { size: 14, "aria-hidden": "true" }),
|
|
74
|
+
/* @__PURE__ */ s("span", { children: a })
|
|
75
|
+
]
|
|
76
|
+
}
|
|
77
|
+
)
|
|
78
|
+
] });
|
|
79
|
+
}
|
|
80
|
+
);
|
|
81
|
+
z.displayName = "Checkbox";
|
|
82
|
+
export {
|
|
83
|
+
z as Checkbox
|
|
84
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react/jsx-runtime"),w=require("react"),e=require("./Chip.module.css.cjs"),u=w.forwardRef(({variant:c="default",size:d="md",icon:i,clickable:f=!1,onClick:s,onRemove:l,disabled:a=!1,selected:o=!1,children:h,className:p,...v},m)=>{const r=f||!!s,j=[e.default.chip,e.default[c],e.default[d],r&&e.default.clickable,o&&e.default.selected,a&&e.default.disabled,p].filter(Boolean).join(" "),k=()=>{!a&&s&&s()},x=t=>{t.stopPropagation(),!a&&l&&l()},y=t=>{a||((t.key==="Enter"||t.key===" ")&&(t.preventDefault(),s?.()),(t.key==="Backspace"||t.key==="Delete")&&(t.preventDefault(),l?.()))};return n.jsxs("div",{ref:m,className:j,role:r?"button":void 0,tabIndex:r&&!a?0:void 0,"aria-disabled":a,"aria-pressed":o,onClick:r?k:void 0,onKeyDown:r?y:void 0,...v,children:[i&&n.jsx("span",{className:e.default.icon,"aria-hidden":"true",children:i}),n.jsx("span",{className:e.default.label,children:h}),l&&n.jsx("button",{type:"button",className:e.default.removeButton,onClick:x,disabled:a,"aria-label":"Remove",children:n.jsx("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:n.jsx("path",{d:"M10.5 3.5L3.5 10.5M3.5 3.5l7 7",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})})]})});u.displayName="Chip";exports.Chip=u;
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import { jsxs as y, jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as x } from "react";
|
|
3
|
+
import e from "./Chip.module.css.mjs";
|
|
4
|
+
const D = x(
|
|
5
|
+
({
|
|
6
|
+
variant: c = "default",
|
|
7
|
+
size: p = "md",
|
|
8
|
+
icon: s,
|
|
9
|
+
clickable: d = !1,
|
|
10
|
+
onClick: n,
|
|
11
|
+
onRemove: i,
|
|
12
|
+
disabled: a = !1,
|
|
13
|
+
selected: l = !1,
|
|
14
|
+
children: f,
|
|
15
|
+
className: h,
|
|
16
|
+
...m
|
|
17
|
+
}, u) => {
|
|
18
|
+
const o = d || !!n, v = [
|
|
19
|
+
e.chip,
|
|
20
|
+
e[c],
|
|
21
|
+
e[p],
|
|
22
|
+
o && e.clickable,
|
|
23
|
+
l && e.selected,
|
|
24
|
+
a && e.disabled,
|
|
25
|
+
h
|
|
26
|
+
].filter(Boolean).join(" "), k = () => {
|
|
27
|
+
!a && n && n();
|
|
28
|
+
}, w = (t) => {
|
|
29
|
+
t.stopPropagation(), !a && i && i();
|
|
30
|
+
};
|
|
31
|
+
return /* @__PURE__ */ y(
|
|
32
|
+
"div",
|
|
33
|
+
{
|
|
34
|
+
ref: u,
|
|
35
|
+
className: v,
|
|
36
|
+
role: o ? "button" : void 0,
|
|
37
|
+
tabIndex: o && !a ? 0 : void 0,
|
|
38
|
+
"aria-disabled": a,
|
|
39
|
+
"aria-pressed": l,
|
|
40
|
+
onClick: o ? k : void 0,
|
|
41
|
+
onKeyDown: o ? (t) => {
|
|
42
|
+
a || ((t.key === "Enter" || t.key === " ") && (t.preventDefault(), n?.()), (t.key === "Backspace" || t.key === "Delete") && (t.preventDefault(), i?.()));
|
|
43
|
+
} : void 0,
|
|
44
|
+
...m,
|
|
45
|
+
children: [
|
|
46
|
+
s && /* @__PURE__ */ r("span", { className: e.icon, "aria-hidden": "true", children: s }),
|
|
47
|
+
/* @__PURE__ */ r("span", { className: e.label, children: f }),
|
|
48
|
+
i && /* @__PURE__ */ r(
|
|
49
|
+
"button",
|
|
50
|
+
{
|
|
51
|
+
type: "button",
|
|
52
|
+
className: e.removeButton,
|
|
53
|
+
onClick: w,
|
|
54
|
+
disabled: a,
|
|
55
|
+
"aria-label": "Remove",
|
|
56
|
+
children: /* @__PURE__ */ r(
|
|
57
|
+
"svg",
|
|
58
|
+
{
|
|
59
|
+
width: "14",
|
|
60
|
+
height: "14",
|
|
61
|
+
viewBox: "0 0 14 14",
|
|
62
|
+
fill: "none",
|
|
63
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
64
|
+
children: /* @__PURE__ */ r(
|
|
65
|
+
"path",
|
|
66
|
+
{
|
|
67
|
+
d: "M10.5 3.5L3.5 10.5M3.5 3.5l7 7",
|
|
68
|
+
stroke: "currentColor",
|
|
69
|
+
strokeWidth: "1.5",
|
|
70
|
+
strokeLinecap: "round",
|
|
71
|
+
strokeLinejoin: "round"
|
|
72
|
+
}
|
|
73
|
+
)
|
|
74
|
+
}
|
|
75
|
+
)
|
|
76
|
+
}
|
|
77
|
+
)
|
|
78
|
+
]
|
|
79
|
+
}
|
|
80
|
+
);
|
|
81
|
+
}
|
|
82
|
+
);
|
|
83
|
+
D.displayName = "Chip";
|
|
84
|
+
export {
|
|
85
|
+
D as Chip
|
|
86
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react/jsx-runtime"),i=require("react"),_=require("react-syntax-highlighter"),$=require("react-syntax-highlighter/dist/esm/styles/prism"),l=require("./CodeEditor.module.css.cjs"),z=require("../../contexts/ThemeContext.cjs");try{const r=require("refractor/all");r.default&&r.default.registered&&r.default.registered("markdown")&&!r.default.languages.markdown?.["quoted-string"]&&r.default.languages.insertBefore("markdown","bold",{"quoted-string":{pattern:/"(?:\\.|[^"\\])*"/,greedy:!0,alias:"string"}})}catch{}const A=i.forwardRef(({value:r="",onChange:g,language:j,readOnly:T=!1,showLineNumbers:k=!0,placeholder:C,minRows:m=10,className:B,"aria-label":S,...R},D)=>{const p=i.useRef(null),x=i.useRef(null),v=i.useRef(null),E=i.useRef(null),K=i.useRef(null),u=i.useRef(null),h=D||K,[y,F]=i.useState(0),[d,O]=i.useState([]);let q="dark";try{q=z.useThemeContext().theme}catch{}const P=q==="light"?$.oneLight:$.oneDark,L=Math.max(r.split(`
|
|
2
|
+
`).length,m);i.useEffect(()=>{if(u.current&&h.current){const{start:e,end:t}=u.current;h.current.setSelectionRange(e,t),u.current=null}}),i.useEffect(()=>{const e=v.current,t=E.current;if(!e||!t)return;const n=()=>{const o=t.clientWidth;if(o<=0)return;e.style.width=`${o}px`;const a=r.split(`
|
|
3
|
+
`),f=Math.max(a.length,m),b=[];for(let N=0;N<f;N++){const V=a[N]??"";e.textContent=V||" ",b.push(e.scrollHeight)}O(b)};n();const c=new ResizeObserver(n);return c.observe(t),()=>c.disconnect()},[r,m]),i.useEffect(()=>{const e=n=>{const c=n.target;p.current&&(p.current.scrollTop=c.scrollTop),x.current&&(x.current.scrollTop=c.scrollTop,x.current.scrollLeft=c.scrollLeft)},t=h?.current;if(t)return t.addEventListener("scroll",e),()=>{t.removeEventListener("scroll",e)}},[h]);const w=e=>{const t=e.value.substring(0,e.selectionStart);F(t.split(`
|
|
4
|
+
`).length-1)},H=e=>{if(e.key==="Tab"){e.preventDefault();const t=e.currentTarget,n=t.selectionStart,c=t.selectionEnd,o=" ";if(n===c){const a=r.substring(0,n)+o+r.substring(c);u.current={start:n+o.length,end:n+o.length},g?.(a)}else if(e.shiftKey){const a=r.lastIndexOf(`
|
|
5
|
+
`,n-1)+1,f=r.substring(a).match(/^ {1,2}/)?.[0]??"";if(f.length>0){const b=r.substring(0,a)+r.substring(a+f.length);u.current={start:Math.max(a,n-f.length),end:Math.max(a,c-f.length)},g?.(b)}}else{const a=r.substring(0,n)+o+r.substring(c);u.current={start:n+o.length,end:n+o.length},g?.(a)}}},M=[l.default.wrapper,B].filter(Boolean).join(" ");return j?s.jsxs("div",{className:M,style:{minHeight:`calc(${m} * 1.6em + 2 * var(--spacing-4))`},children:[s.jsx("div",{ref:v,className:l.default.lineMirror,"aria-hidden":"true"}),k&&s.jsx("div",{ref:p,className:l.default.lineNumbers,"aria-hidden":"true",children:Array.from({length:L}).map((e,t)=>s.jsx("div",{className:l.default.lineNumber,style:d[t]!==void 0?{height:`${d[t]}px`}:void 0,children:t+1},t))}),s.jsxs("div",{ref:E,className:l.default.editorArea,children:[s.jsx("div",{className:l.default.lineHighlight,style:{top:d.length>0?`calc(var(--spacing-4) + ${d.slice(0,y).reduce((e,t)=>e+t,0)}px)`:`calc(var(--spacing-4) + ${(y*1.6).toFixed(2)}em)`,...d[y]!==void 0?{height:`${d[y]}px`}:{}},"aria-hidden":"true"}),s.jsx("div",{ref:x,className:l.default.highlightLayer,"aria-hidden":"true",children:s.jsx(_.Prism,{language:j,style:P,customStyle:{margin:0,padding:0,background:"transparent",fontSize:"inherit",lineHeight:"inherit",fontFamily:"inherit",whiteSpace:"pre-wrap",wordBreak:"break-word",overflow:"visible"},codeTagProps:{style:{fontFamily:"inherit",background:"transparent",color:"var(--text-primary)",whiteSpace:"pre-wrap",wordBreak:"break-word"}},children:r+`
|
|
6
|
+
`})}),s.jsx("textarea",{ref:h,className:l.default.textareaOverlay,value:r,onChange:e=>g?.(e.target.value),onKeyDown:H,onKeyUp:e=>w(e.currentTarget),onMouseUp:e=>w(e.currentTarget),onClick:e=>w(e.currentTarget),placeholder:C,readOnly:T,"aria-label":S||"Code editor",spellCheck:"false",...R})]})]}):s.jsxs("div",{className:M,style:{minHeight:`calc(${m} * 1.6em + 2 * var(--spacing-4))`},children:[s.jsx("div",{ref:v,className:l.default.lineMirror,"aria-hidden":"true"}),k&&s.jsx("div",{ref:p,className:l.default.lineNumbers,"aria-hidden":"true",children:Array.from({length:L}).map((e,t)=>s.jsx("div",{className:l.default.lineNumber,style:d[t]!==void 0?{height:`${d[t]}px`}:void 0,children:t+1},t))}),s.jsx("textarea",{ref:h,className:l.default.textarea,value:r,onChange:e=>g?.(e.target.value),onKeyDown:H,placeholder:C,readOnly:T,"aria-label":S||"Code editor",spellCheck:"false",...R})]})});A.displayName="CodeEditor";exports.CodeEditor=A;
|
|
@@ -0,0 +1,255 @@
|
|
|
1
|
+
import { jsxs as k, jsx as l } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as U, useRef as g, useState as K, useEffect as T } from "react";
|
|
3
|
+
import { Prism as W } from "react-syntax-highlighter";
|
|
4
|
+
import { oneLight as _, oneDark as I } from "react-syntax-highlighter/dist/esm/styles/prism";
|
|
5
|
+
import i from "./CodeEditor.module.css.mjs";
|
|
6
|
+
import { useThemeContext as G } from "../../contexts/ThemeContext.mjs";
|
|
7
|
+
try {
|
|
8
|
+
const r = require("refractor/all");
|
|
9
|
+
r.default && r.default.registered && r.default.registered("markdown") && !r.default.languages.markdown?.["quoted-string"] && r.default.languages.insertBefore("markdown", "bold", {
|
|
10
|
+
"quoted-string": {
|
|
11
|
+
pattern: /"(?:\\.|[^"\\])*"/,
|
|
12
|
+
greedy: !0,
|
|
13
|
+
alias: "string"
|
|
14
|
+
}
|
|
15
|
+
});
|
|
16
|
+
} catch {
|
|
17
|
+
}
|
|
18
|
+
const J = U(
|
|
19
|
+
({
|
|
20
|
+
value: r = "",
|
|
21
|
+
onChange: f,
|
|
22
|
+
language: C,
|
|
23
|
+
readOnly: S = !1,
|
|
24
|
+
showLineNumbers: L = !0,
|
|
25
|
+
placeholder: $,
|
|
26
|
+
minRows: m = 10,
|
|
27
|
+
className: j,
|
|
28
|
+
"aria-label": H,
|
|
29
|
+
...M
|
|
30
|
+
}, q) => {
|
|
31
|
+
const p = g(null), x = g(null), v = g(null), A = g(null), F = g(null), d = g(null), h = q || F, [y, V] = K(0), [c, z] = K([]);
|
|
32
|
+
let E = "dark";
|
|
33
|
+
try {
|
|
34
|
+
E = G().theme;
|
|
35
|
+
} catch {
|
|
36
|
+
}
|
|
37
|
+
const O = E === "light" ? _ : I, R = Math.max(r.split(`
|
|
38
|
+
`).length, m);
|
|
39
|
+
T(() => {
|
|
40
|
+
if (d.current && h.current) {
|
|
41
|
+
const { start: e, end: t } = d.current;
|
|
42
|
+
h.current.setSelectionRange(e, t), d.current = null;
|
|
43
|
+
}
|
|
44
|
+
}), T(() => {
|
|
45
|
+
const e = v.current, t = A.current;
|
|
46
|
+
if (!e || !t) return;
|
|
47
|
+
const n = () => {
|
|
48
|
+
const o = t.clientWidth;
|
|
49
|
+
if (o <= 0) return;
|
|
50
|
+
e.style.width = `${o}px`;
|
|
51
|
+
const s = r.split(`
|
|
52
|
+
`), u = Math.max(s.length, m), b = [];
|
|
53
|
+
for (let N = 0; N < u; N++) {
|
|
54
|
+
const P = s[N] ?? "";
|
|
55
|
+
e.textContent = P || " ", b.push(e.scrollHeight);
|
|
56
|
+
}
|
|
57
|
+
z(b);
|
|
58
|
+
};
|
|
59
|
+
n();
|
|
60
|
+
const a = new ResizeObserver(n);
|
|
61
|
+
return a.observe(t), () => a.disconnect();
|
|
62
|
+
}, [r, m]), T(() => {
|
|
63
|
+
const e = (n) => {
|
|
64
|
+
const a = n.target;
|
|
65
|
+
p.current && (p.current.scrollTop = a.scrollTop), x.current && (x.current.scrollTop = a.scrollTop, x.current.scrollLeft = a.scrollLeft);
|
|
66
|
+
}, t = h?.current;
|
|
67
|
+
if (t)
|
|
68
|
+
return t.addEventListener("scroll", e), () => {
|
|
69
|
+
t.removeEventListener("scroll", e);
|
|
70
|
+
};
|
|
71
|
+
}, [h]);
|
|
72
|
+
const w = (e) => {
|
|
73
|
+
const t = e.value.substring(0, e.selectionStart);
|
|
74
|
+
V(t.split(`
|
|
75
|
+
`).length - 1);
|
|
76
|
+
}, B = (e) => {
|
|
77
|
+
if (e.key === "Tab") {
|
|
78
|
+
e.preventDefault();
|
|
79
|
+
const t = e.currentTarget, n = t.selectionStart, a = t.selectionEnd, o = " ";
|
|
80
|
+
if (n === a) {
|
|
81
|
+
const s = r.substring(0, n) + o + r.substring(a);
|
|
82
|
+
d.current = {
|
|
83
|
+
start: n + o.length,
|
|
84
|
+
end: n + o.length
|
|
85
|
+
}, f?.(s);
|
|
86
|
+
} else if (e.shiftKey) {
|
|
87
|
+
const s = r.lastIndexOf(`
|
|
88
|
+
`, n - 1) + 1, u = r.substring(s).match(/^ {1,2}/)?.[0] ?? "";
|
|
89
|
+
if (u.length > 0) {
|
|
90
|
+
const b = r.substring(0, s) + r.substring(s + u.length);
|
|
91
|
+
d.current = {
|
|
92
|
+
start: Math.max(s, n - u.length),
|
|
93
|
+
end: Math.max(s, a - u.length)
|
|
94
|
+
}, f?.(b);
|
|
95
|
+
}
|
|
96
|
+
} else {
|
|
97
|
+
const s = r.substring(0, n) + o + r.substring(a);
|
|
98
|
+
d.current = {
|
|
99
|
+
start: n + o.length,
|
|
100
|
+
end: n + o.length
|
|
101
|
+
}, f?.(s);
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
}, D = [i.wrapper, j].filter(Boolean).join(" ");
|
|
105
|
+
return C ? /* @__PURE__ */ k(
|
|
106
|
+
"div",
|
|
107
|
+
{
|
|
108
|
+
className: D,
|
|
109
|
+
style: {
|
|
110
|
+
minHeight: `calc(${m} * 1.6em + 2 * var(--spacing-4))`
|
|
111
|
+
},
|
|
112
|
+
children: [
|
|
113
|
+
/* @__PURE__ */ l(
|
|
114
|
+
"div",
|
|
115
|
+
{
|
|
116
|
+
ref: v,
|
|
117
|
+
className: i.lineMirror,
|
|
118
|
+
"aria-hidden": "true"
|
|
119
|
+
}
|
|
120
|
+
),
|
|
121
|
+
L && /* @__PURE__ */ l(
|
|
122
|
+
"div",
|
|
123
|
+
{
|
|
124
|
+
ref: p,
|
|
125
|
+
className: i.lineNumbers,
|
|
126
|
+
"aria-hidden": "true",
|
|
127
|
+
children: Array.from({ length: R }).map((e, t) => /* @__PURE__ */ l(
|
|
128
|
+
"div",
|
|
129
|
+
{
|
|
130
|
+
className: i.lineNumber,
|
|
131
|
+
style: c[t] !== void 0 ? { height: `${c[t]}px` } : void 0,
|
|
132
|
+
children: t + 1
|
|
133
|
+
},
|
|
134
|
+
t
|
|
135
|
+
))
|
|
136
|
+
}
|
|
137
|
+
),
|
|
138
|
+
/* @__PURE__ */ k("div", { ref: A, className: i.editorArea, children: [
|
|
139
|
+
/* @__PURE__ */ l(
|
|
140
|
+
"div",
|
|
141
|
+
{
|
|
142
|
+
className: i.lineHighlight,
|
|
143
|
+
style: {
|
|
144
|
+
top: c.length > 0 ? `calc(var(--spacing-4) + ${c.slice(0, y).reduce((e, t) => e + t, 0)}px)` : `calc(var(--spacing-4) + ${(y * 1.6).toFixed(2)}em)`,
|
|
145
|
+
...c[y] !== void 0 ? { height: `${c[y]}px` } : {}
|
|
146
|
+
},
|
|
147
|
+
"aria-hidden": "true"
|
|
148
|
+
}
|
|
149
|
+
),
|
|
150
|
+
/* @__PURE__ */ l(
|
|
151
|
+
"div",
|
|
152
|
+
{
|
|
153
|
+
ref: x,
|
|
154
|
+
className: i.highlightLayer,
|
|
155
|
+
"aria-hidden": "true",
|
|
156
|
+
children: /* @__PURE__ */ l(
|
|
157
|
+
W,
|
|
158
|
+
{
|
|
159
|
+
language: C,
|
|
160
|
+
style: O,
|
|
161
|
+
customStyle: {
|
|
162
|
+
margin: 0,
|
|
163
|
+
padding: 0,
|
|
164
|
+
background: "transparent",
|
|
165
|
+
fontSize: "inherit",
|
|
166
|
+
lineHeight: "inherit",
|
|
167
|
+
fontFamily: "inherit",
|
|
168
|
+
whiteSpace: "pre-wrap",
|
|
169
|
+
wordBreak: "break-word",
|
|
170
|
+
overflow: "visible"
|
|
171
|
+
},
|
|
172
|
+
codeTagProps: {
|
|
173
|
+
style: {
|
|
174
|
+
fontFamily: "inherit",
|
|
175
|
+
background: "transparent",
|
|
176
|
+
color: "var(--text-primary)",
|
|
177
|
+
whiteSpace: "pre-wrap",
|
|
178
|
+
wordBreak: "break-word"
|
|
179
|
+
}
|
|
180
|
+
},
|
|
181
|
+
children: r + `
|
|
182
|
+
`
|
|
183
|
+
}
|
|
184
|
+
)
|
|
185
|
+
}
|
|
186
|
+
),
|
|
187
|
+
/* @__PURE__ */ l(
|
|
188
|
+
"textarea",
|
|
189
|
+
{
|
|
190
|
+
ref: h,
|
|
191
|
+
className: i.textareaOverlay,
|
|
192
|
+
value: r,
|
|
193
|
+
onChange: (e) => f?.(e.target.value),
|
|
194
|
+
onKeyDown: B,
|
|
195
|
+
onKeyUp: (e) => w(e.currentTarget),
|
|
196
|
+
onMouseUp: (e) => w(e.currentTarget),
|
|
197
|
+
onClick: (e) => w(e.currentTarget),
|
|
198
|
+
placeholder: $,
|
|
199
|
+
readOnly: S,
|
|
200
|
+
"aria-label": H || "Code editor",
|
|
201
|
+
spellCheck: "false",
|
|
202
|
+
...M
|
|
203
|
+
}
|
|
204
|
+
)
|
|
205
|
+
] })
|
|
206
|
+
]
|
|
207
|
+
}
|
|
208
|
+
) : /* @__PURE__ */ k(
|
|
209
|
+
"div",
|
|
210
|
+
{
|
|
211
|
+
className: D,
|
|
212
|
+
style: { minHeight: `calc(${m} * 1.6em + 2 * var(--spacing-4))` },
|
|
213
|
+
children: [
|
|
214
|
+
/* @__PURE__ */ l("div", { ref: v, className: i.lineMirror, "aria-hidden": "true" }),
|
|
215
|
+
L && /* @__PURE__ */ l(
|
|
216
|
+
"div",
|
|
217
|
+
{
|
|
218
|
+
ref: p,
|
|
219
|
+
className: i.lineNumbers,
|
|
220
|
+
"aria-hidden": "true",
|
|
221
|
+
children: Array.from({ length: R }).map((e, t) => /* @__PURE__ */ l(
|
|
222
|
+
"div",
|
|
223
|
+
{
|
|
224
|
+
className: i.lineNumber,
|
|
225
|
+
style: c[t] !== void 0 ? { height: `${c[t]}px` } : void 0,
|
|
226
|
+
children: t + 1
|
|
227
|
+
},
|
|
228
|
+
t
|
|
229
|
+
))
|
|
230
|
+
}
|
|
231
|
+
),
|
|
232
|
+
/* @__PURE__ */ l(
|
|
233
|
+
"textarea",
|
|
234
|
+
{
|
|
235
|
+
ref: h,
|
|
236
|
+
className: i.textarea,
|
|
237
|
+
value: r,
|
|
238
|
+
onChange: (e) => f?.(e.target.value),
|
|
239
|
+
onKeyDown: B,
|
|
240
|
+
placeholder: $,
|
|
241
|
+
readOnly: S,
|
|
242
|
+
"aria-label": H || "Code editor",
|
|
243
|
+
spellCheck: "false",
|
|
244
|
+
...M
|
|
245
|
+
}
|
|
246
|
+
)
|
|
247
|
+
]
|
|
248
|
+
}
|
|
249
|
+
);
|
|
250
|
+
}
|
|
251
|
+
);
|
|
252
|
+
J.displayName = "CodeEditor";
|
|
253
|
+
export {
|
|
254
|
+
J as CodeEditor
|
|
255
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const C=require("react/jsx-runtime"),e=require("react"),p=require("./Collapsible.module.css.cjs"),x=e.createContext(null);function j(){const t=e.useContext(x);if(!t)throw new Error("Collapsible.Trigger/Content must be used within a Collapsible");return t}const I=e.forwardRef(({asChild:t,className:d,children:l,onClick:n,...u},s)=>{const{open:a,disabled:r,toggle:i,contentId:b,triggerId:c}=j(),o=e.useCallback(g=>{i(),n?.(g)},[i,n]);if(t&&e.isValidElement(l))return e.cloneElement(l,{id:c,"aria-expanded":a,"aria-controls":b,disabled:r,onClick:o});const f=[p.default.trigger,d].filter(Boolean).join(" ");return C.jsx("button",{ref:s,id:c,type:"button",className:f,"aria-expanded":a,"aria-controls":b,disabled:r,onClick:o,...u,children:l})});I.displayName="Collapsible.Trigger";const N=e.forwardRef(({forceMount:t,className:d,children:l,...n},u)=>{const{open:s,triggerId:a,contentId:r}=j();if(!t&&!s)return null;const i=[p.default.content,s&&p.default.contentOpen,d].filter(Boolean).join(" ");return C.jsx("div",{ref:u,id:r,role:"region","aria-labelledby":a,className:i,...n,children:C.jsx("div",{className:p.default.contentInner,children:l})})});N.displayName="Collapsible.Content";const v=e.forwardRef(({open:t,defaultOpen:d=!1,onOpenChange:l,disabled:n=!1,className:u,children:s,...a},r)=>{const[i,b]=e.useState(d),c=t!==void 0,o=c?t:i,f=e.useId(),g=e.useId(),y=e.useCallback(()=>{if(n)return;const m=!o;c||b(m),l?.(m)},[o,c,n,l]),w=[p.default.collapsible,u].filter(Boolean).join(" "),R={open:o,disabled:n,toggle:y,contentId:f,triggerId:g};return C.jsx(x.Provider,{value:R,children:C.jsx("div",{ref:r,className:w,"data-state":o?"open":"closed",...a,children:s})})});v.displayName="Collapsible";const O=Object.assign(v,{Trigger:I,Content:N});exports.Collapsible=O;
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
import { jsx as C } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as m, useState as B, useId as x, useCallback as I, isValidElement as E, cloneElement as h, createContext as R, useContext as P } from "react";
|
|
3
|
+
import p from "./Collapsible.module.css.mjs";
|
|
4
|
+
const N = R(null);
|
|
5
|
+
function v() {
|
|
6
|
+
const e = P(N);
|
|
7
|
+
if (!e)
|
|
8
|
+
throw new Error(
|
|
9
|
+
"Collapsible.Trigger/Content must be used within a Collapsible"
|
|
10
|
+
);
|
|
11
|
+
return e;
|
|
12
|
+
}
|
|
13
|
+
const y = m(({ asChild: e, className: c, children: t, onClick: n, ...d }, l) => {
|
|
14
|
+
const { open: s, disabled: a, toggle: r, contentId: g, triggerId: i } = v(), o = I(
|
|
15
|
+
(b) => {
|
|
16
|
+
r(), n?.(b);
|
|
17
|
+
},
|
|
18
|
+
[r, n]
|
|
19
|
+
);
|
|
20
|
+
if (e && E(t))
|
|
21
|
+
return h(
|
|
22
|
+
t,
|
|
23
|
+
{
|
|
24
|
+
id: i,
|
|
25
|
+
"aria-expanded": s,
|
|
26
|
+
"aria-controls": g,
|
|
27
|
+
disabled: a,
|
|
28
|
+
onClick: o
|
|
29
|
+
}
|
|
30
|
+
);
|
|
31
|
+
const u = [p.trigger, c].filter(Boolean).join(" ");
|
|
32
|
+
return /* @__PURE__ */ C(
|
|
33
|
+
"button",
|
|
34
|
+
{
|
|
35
|
+
ref: l,
|
|
36
|
+
id: i,
|
|
37
|
+
type: "button",
|
|
38
|
+
className: u,
|
|
39
|
+
"aria-expanded": s,
|
|
40
|
+
"aria-controls": g,
|
|
41
|
+
disabled: a,
|
|
42
|
+
onClick: o,
|
|
43
|
+
...d,
|
|
44
|
+
children: t
|
|
45
|
+
}
|
|
46
|
+
);
|
|
47
|
+
});
|
|
48
|
+
y.displayName = "Collapsible.Trigger";
|
|
49
|
+
const j = m(
|
|
50
|
+
({ forceMount: e, className: c, children: t, ...n }, d) => {
|
|
51
|
+
const { open: l, triggerId: s, contentId: a } = v();
|
|
52
|
+
if (!e && !l)
|
|
53
|
+
return null;
|
|
54
|
+
const r = [
|
|
55
|
+
p.content,
|
|
56
|
+
l && p.contentOpen,
|
|
57
|
+
c
|
|
58
|
+
].filter(Boolean).join(" ");
|
|
59
|
+
return /* @__PURE__ */ C(
|
|
60
|
+
"div",
|
|
61
|
+
{
|
|
62
|
+
ref: d,
|
|
63
|
+
id: a,
|
|
64
|
+
role: "region",
|
|
65
|
+
"aria-labelledby": s,
|
|
66
|
+
className: r,
|
|
67
|
+
...n,
|
|
68
|
+
children: /* @__PURE__ */ C("div", { className: p.contentInner, children: t })
|
|
69
|
+
}
|
|
70
|
+
);
|
|
71
|
+
}
|
|
72
|
+
);
|
|
73
|
+
j.displayName = "Collapsible.Content";
|
|
74
|
+
const w = m(
|
|
75
|
+
({
|
|
76
|
+
open: e,
|
|
77
|
+
defaultOpen: c = !1,
|
|
78
|
+
onOpenChange: t,
|
|
79
|
+
disabled: n = !1,
|
|
80
|
+
className: d,
|
|
81
|
+
children: l,
|
|
82
|
+
...s
|
|
83
|
+
}, a) => {
|
|
84
|
+
const [r, g] = B(c), i = e !== void 0, o = i ? e : r, u = x(), b = x(), O = I(() => {
|
|
85
|
+
if (n) return;
|
|
86
|
+
const f = !o;
|
|
87
|
+
i || g(f), t?.(f);
|
|
88
|
+
}, [o, i, n, t]), T = [p.collapsible, d].filter(Boolean).join(" "), k = {
|
|
89
|
+
open: o,
|
|
90
|
+
disabled: n,
|
|
91
|
+
toggle: O,
|
|
92
|
+
contentId: u,
|
|
93
|
+
triggerId: b
|
|
94
|
+
};
|
|
95
|
+
return /* @__PURE__ */ C(N.Provider, { value: k, children: /* @__PURE__ */ C(
|
|
96
|
+
"div",
|
|
97
|
+
{
|
|
98
|
+
ref: a,
|
|
99
|
+
className: T,
|
|
100
|
+
"data-state": o ? "open" : "closed",
|
|
101
|
+
...s,
|
|
102
|
+
children: l
|
|
103
|
+
}
|
|
104
|
+
) });
|
|
105
|
+
}
|
|
106
|
+
);
|
|
107
|
+
w.displayName = "Collapsible";
|
|
108
|
+
const z = Object.assign(w, {
|
|
109
|
+
Trigger: y,
|
|
110
|
+
Content: j
|
|
111
|
+
});
|
|
112
|
+
export {
|
|
113
|
+
z as Collapsible
|
|
114
|
+
};
|