rothzerg-ui 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +216 -0
- package/dist/_virtual/index.cjs +6 -0
- package/dist/_virtual/index.cjs.map +1 -0
- package/dist/_virtual/index.js +6 -0
- package/dist/_virtual/index.js.map +1 -0
- package/dist/_virtual/index2.cjs +5 -0
- package/dist/_virtual/index2.cjs.map +1 -0
- package/dist/_virtual/index2.js +5 -0
- package/dist/_virtual/index2.js.map +1 -0
- package/dist/_virtual/use-sync-external-store-shim.development.cjs +5 -0
- package/dist/_virtual/use-sync-external-store-shim.development.cjs.map +1 -0
- package/dist/_virtual/use-sync-external-store-shim.development.js +5 -0
- package/dist/_virtual/use-sync-external-store-shim.development.js.map +1 -0
- package/dist/_virtual/use-sync-external-store-shim.production.cjs +5 -0
- package/dist/_virtual/use-sync-external-store-shim.production.cjs.map +1 -0
- package/dist/_virtual/use-sync-external-store-shim.production.js +5 -0
- package/dist/_virtual/use-sync-external-store-shim.production.js.map +1 -0
- package/dist/blocks/activity-feed/ActivityFeed.cjs +140 -0
- package/dist/blocks/activity-feed/ActivityFeed.cjs.map +1 -0
- package/dist/blocks/activity-feed/ActivityFeed.d.ts +28 -0
- package/dist/blocks/activity-feed/ActivityFeed.d.ts.map +1 -0
- package/dist/blocks/activity-feed/ActivityFeed.js +140 -0
- package/dist/blocks/activity-feed/ActivityFeed.js.map +1 -0
- package/dist/blocks/activity-feed/index.d.ts +3 -0
- package/dist/blocks/activity-feed/index.d.ts.map +1 -0
- package/dist/blocks/app-download/AppDownload.cjs +100 -0
- package/dist/blocks/app-download/AppDownload.cjs.map +1 -0
- package/dist/blocks/app-download/AppDownload.d.ts +24 -0
- package/dist/blocks/app-download/AppDownload.d.ts.map +1 -0
- package/dist/blocks/app-download/AppDownload.js +100 -0
- package/dist/blocks/app-download/AppDownload.js.map +1 -0
- package/dist/blocks/app-download/index.d.ts +3 -0
- package/dist/blocks/app-download/index.d.ts.map +1 -0
- package/dist/blocks/auth-form/AuthForm.cjs +105 -0
- package/dist/blocks/auth-form/AuthForm.cjs.map +1 -0
- package/dist/blocks/auth-form/AuthForm.d.ts +39 -0
- package/dist/blocks/auth-form/AuthForm.d.ts.map +1 -0
- package/dist/blocks/auth-form/AuthForm.js +105 -0
- package/dist/blocks/auth-form/AuthForm.js.map +1 -0
- package/dist/blocks/auth-form/index.d.ts +3 -0
- package/dist/blocks/auth-form/index.d.ts.map +1 -0
- package/dist/blocks/blog-post/BlogPost.cjs +50 -0
- package/dist/blocks/blog-post/BlogPost.cjs.map +1 -0
- package/dist/blocks/blog-post/BlogPost.d.ts +25 -0
- package/dist/blocks/blog-post/BlogPost.d.ts.map +1 -0
- package/dist/blocks/blog-post/BlogPost.js +50 -0
- package/dist/blocks/blog-post/BlogPost.js.map +1 -0
- package/dist/blocks/blog-post/index.d.ts +3 -0
- package/dist/blocks/blog-post/index.d.ts.map +1 -0
- package/dist/blocks/changelog/Changelog.cjs +47 -0
- package/dist/blocks/changelog/Changelog.cjs.map +1 -0
- package/dist/blocks/changelog/Changelog.d.ts +21 -0
- package/dist/blocks/changelog/Changelog.d.ts.map +1 -0
- package/dist/blocks/changelog/Changelog.js +47 -0
- package/dist/blocks/changelog/Changelog.js.map +1 -0
- package/dist/blocks/changelog/index.d.ts +3 -0
- package/dist/blocks/changelog/index.d.ts.map +1 -0
- package/dist/blocks/chat/Chat.cjs +176 -0
- package/dist/blocks/chat/Chat.cjs.map +1 -0
- package/dist/blocks/chat/Chat.d.ts +27 -0
- package/dist/blocks/chat/Chat.d.ts.map +1 -0
- package/dist/blocks/chat/Chat.js +176 -0
- package/dist/blocks/chat/Chat.js.map +1 -0
- package/dist/blocks/chat/index.d.ts +3 -0
- package/dist/blocks/chat/index.d.ts.map +1 -0
- package/dist/blocks/coming-soon/ComingSoon.cjs +78 -0
- package/dist/blocks/coming-soon/ComingSoon.cjs.map +1 -0
- package/dist/blocks/coming-soon/ComingSoon.d.ts +20 -0
- package/dist/blocks/coming-soon/ComingSoon.d.ts.map +1 -0
- package/dist/blocks/coming-soon/ComingSoon.js +78 -0
- package/dist/blocks/coming-soon/ComingSoon.js.map +1 -0
- package/dist/blocks/coming-soon/index.d.ts +3 -0
- package/dist/blocks/coming-soon/index.d.ts.map +1 -0
- package/dist/blocks/contact-form/ContactForm.cjs +83 -0
- package/dist/blocks/contact-form/ContactForm.cjs.map +1 -0
- package/dist/blocks/contact-form/ContactForm.d.ts +25 -0
- package/dist/blocks/contact-form/ContactForm.d.ts.map +1 -0
- package/dist/blocks/contact-form/ContactForm.js +83 -0
- package/dist/blocks/contact-form/ContactForm.js.map +1 -0
- package/dist/blocks/contact-form/index.d.ts +3 -0
- package/dist/blocks/contact-form/index.d.ts.map +1 -0
- package/dist/blocks/cookie-consent/CookieConsent.cjs +74 -0
- package/dist/blocks/cookie-consent/CookieConsent.cjs.map +1 -0
- package/dist/blocks/cookie-consent/CookieConsent.d.ts +20 -0
- package/dist/blocks/cookie-consent/CookieConsent.d.ts.map +1 -0
- package/dist/blocks/cookie-consent/CookieConsent.js +74 -0
- package/dist/blocks/cookie-consent/CookieConsent.js.map +1 -0
- package/dist/blocks/cookie-consent/index.d.ts +3 -0
- package/dist/blocks/cookie-consent/index.d.ts.map +1 -0
- package/dist/blocks/cta/CTA.cjs +16 -0
- package/dist/blocks/cta/CTA.cjs.map +1 -0
- package/dist/blocks/cta/CTA.d.ts +27 -0
- package/dist/blocks/cta/CTA.d.ts.map +1 -0
- package/dist/blocks/cta/CTA.js +16 -0
- package/dist/blocks/cta/CTA.js.map +1 -0
- package/dist/blocks/cta/index.d.ts +3 -0
- package/dist/blocks/cta/index.d.ts.map +1 -0
- package/dist/blocks/dashboard/Dashboard.cjs +62 -0
- package/dist/blocks/dashboard/Dashboard.cjs.map +1 -0
- package/dist/blocks/dashboard/Dashboard.d.ts +27 -0
- package/dist/blocks/dashboard/Dashboard.d.ts.map +1 -0
- package/dist/blocks/dashboard/Dashboard.js +62 -0
- package/dist/blocks/dashboard/Dashboard.js.map +1 -0
- package/dist/blocks/dashboard/index.d.ts +3 -0
- package/dist/blocks/dashboard/index.d.ts.map +1 -0
- package/dist/blocks/data-table-page/DataTablePage.cjs +106 -0
- package/dist/blocks/data-table-page/DataTablePage.cjs.map +1 -0
- package/dist/blocks/data-table-page/DataTablePage.d.ts +37 -0
- package/dist/blocks/data-table-page/DataTablePage.d.ts.map +1 -0
- package/dist/blocks/data-table-page/DataTablePage.js +106 -0
- package/dist/blocks/data-table-page/DataTablePage.js.map +1 -0
- package/dist/blocks/data-table-page/index.d.ts +3 -0
- package/dist/blocks/data-table-page/index.d.ts.map +1 -0
- package/dist/blocks/empty-state/EmptyState.cjs +27 -0
- package/dist/blocks/empty-state/EmptyState.cjs.map +1 -0
- package/dist/blocks/empty-state/EmptyState.d.ts +12 -0
- package/dist/blocks/empty-state/EmptyState.d.ts.map +1 -0
- package/dist/blocks/empty-state/EmptyState.js +27 -0
- package/dist/blocks/empty-state/EmptyState.js.map +1 -0
- package/dist/blocks/empty-state/index.d.ts +3 -0
- package/dist/blocks/empty-state/index.d.ts.map +1 -0
- package/dist/blocks/error-page/ErrorPage.cjs +34 -0
- package/dist/blocks/error-page/ErrorPage.cjs.map +1 -0
- package/dist/blocks/error-page/ErrorPage.d.ts +14 -0
- package/dist/blocks/error-page/ErrorPage.d.ts.map +1 -0
- package/dist/blocks/error-page/ErrorPage.js +34 -0
- package/dist/blocks/error-page/ErrorPage.js.map +1 -0
- package/dist/blocks/error-page/index.d.ts +3 -0
- package/dist/blocks/error-page/index.d.ts.map +1 -0
- package/dist/blocks/faq/FAQ.cjs +88 -0
- package/dist/blocks/faq/FAQ.cjs.map +1 -0
- package/dist/blocks/faq/FAQ.d.ts +20 -0
- package/dist/blocks/faq/FAQ.d.ts.map +1 -0
- package/dist/blocks/faq/FAQ.js +88 -0
- package/dist/blocks/faq/FAQ.js.map +1 -0
- package/dist/blocks/faq/index.d.ts +3 -0
- package/dist/blocks/faq/index.d.ts.map +1 -0
- package/dist/blocks/features-grid/FeaturesGrid.cjs +26 -0
- package/dist/blocks/features-grid/FeaturesGrid.cjs.map +1 -0
- package/dist/blocks/features-grid/FeaturesGrid.d.ts +35 -0
- package/dist/blocks/features-grid/FeaturesGrid.d.ts.map +1 -0
- package/dist/blocks/features-grid/FeaturesGrid.js +26 -0
- package/dist/blocks/features-grid/FeaturesGrid.js.map +1 -0
- package/dist/blocks/features-grid/index.d.ts +3 -0
- package/dist/blocks/features-grid/index.d.ts.map +1 -0
- package/dist/blocks/footer/Footer.cjs +41 -0
- package/dist/blocks/footer/Footer.cjs.map +1 -0
- package/dist/blocks/footer/Footer.d.ts +27 -0
- package/dist/blocks/footer/Footer.d.ts.map +1 -0
- package/dist/blocks/footer/Footer.js +41 -0
- package/dist/blocks/footer/Footer.js.map +1 -0
- package/dist/blocks/footer/index.d.ts +3 -0
- package/dist/blocks/footer/index.d.ts.map +1 -0
- package/dist/blocks/hero/Hero.cjs +38 -0
- package/dist/blocks/hero/Hero.cjs.map +1 -0
- package/dist/blocks/hero/Hero.d.ts +45 -0
- package/dist/blocks/hero/Hero.d.ts.map +1 -0
- package/dist/blocks/hero/Hero.js +38 -0
- package/dist/blocks/hero/Hero.js.map +1 -0
- package/dist/blocks/hero/index.d.ts +3 -0
- package/dist/blocks/hero/index.d.ts.map +1 -0
- package/dist/blocks/index.d.ts +73 -0
- package/dist/blocks/index.d.ts.map +1 -0
- package/dist/blocks/invoice/Invoice.cjs +114 -0
- package/dist/blocks/invoice/Invoice.cjs.map +1 -0
- package/dist/blocks/invoice/Invoice.d.ts +37 -0
- package/dist/blocks/invoice/Invoice.d.ts.map +1 -0
- package/dist/blocks/invoice/Invoice.js +114 -0
- package/dist/blocks/invoice/Invoice.js.map +1 -0
- package/dist/blocks/invoice/index.d.ts +3 -0
- package/dist/blocks/invoice/index.d.ts.map +1 -0
- package/dist/blocks/kanban/Kanban.cjs +223 -0
- package/dist/blocks/kanban/Kanban.cjs.map +1 -0
- package/dist/blocks/kanban/Kanban.d.ts +33 -0
- package/dist/blocks/kanban/Kanban.d.ts.map +1 -0
- package/dist/blocks/kanban/Kanban.js +223 -0
- package/dist/blocks/kanban/Kanban.js.map +1 -0
- package/dist/blocks/kanban/index.d.ts +3 -0
- package/dist/blocks/kanban/index.d.ts.map +1 -0
- package/dist/blocks/loading-page/LoadingPage.cjs +72 -0
- package/dist/blocks/loading-page/LoadingPage.cjs.map +1 -0
- package/dist/blocks/loading-page/LoadingPage.d.ts +10 -0
- package/dist/blocks/loading-page/LoadingPage.d.ts.map +1 -0
- package/dist/blocks/loading-page/LoadingPage.js +72 -0
- package/dist/blocks/loading-page/LoadingPage.js.map +1 -0
- package/dist/blocks/loading-page/index.d.ts +3 -0
- package/dist/blocks/loading-page/index.d.ts.map +1 -0
- package/dist/blocks/maintenance/Maintenance.cjs +109 -0
- package/dist/blocks/maintenance/Maintenance.cjs.map +1 -0
- package/dist/blocks/maintenance/Maintenance.d.ts +18 -0
- package/dist/blocks/maintenance/Maintenance.d.ts.map +1 -0
- package/dist/blocks/maintenance/Maintenance.js +109 -0
- package/dist/blocks/maintenance/Maintenance.js.map +1 -0
- package/dist/blocks/maintenance/index.d.ts +3 -0
- package/dist/blocks/maintenance/index.d.ts.map +1 -0
- package/dist/blocks/media-gallery/MediaGallery.cjs +114 -0
- package/dist/blocks/media-gallery/MediaGallery.cjs.map +1 -0
- package/dist/blocks/media-gallery/MediaGallery.d.ts +19 -0
- package/dist/blocks/media-gallery/MediaGallery.d.ts.map +1 -0
- package/dist/blocks/media-gallery/MediaGallery.js +114 -0
- package/dist/blocks/media-gallery/MediaGallery.js.map +1 -0
- package/dist/blocks/media-gallery/index.d.ts +3 -0
- package/dist/blocks/media-gallery/index.d.ts.map +1 -0
- package/dist/blocks/navbar/Navbar.cjs +74 -0
- package/dist/blocks/navbar/Navbar.cjs.map +1 -0
- package/dist/blocks/navbar/Navbar.d.ts +34 -0
- package/dist/blocks/navbar/Navbar.d.ts.map +1 -0
- package/dist/blocks/navbar/Navbar.js +74 -0
- package/dist/blocks/navbar/Navbar.js.map +1 -0
- package/dist/blocks/navbar/index.d.ts +3 -0
- package/dist/blocks/navbar/index.d.ts.map +1 -0
- package/dist/blocks/newsletter/Newsletter.cjs +83 -0
- package/dist/blocks/newsletter/Newsletter.cjs.map +1 -0
- package/dist/blocks/newsletter/Newsletter.d.ts +21 -0
- package/dist/blocks/newsletter/Newsletter.d.ts.map +1 -0
- package/dist/blocks/newsletter/Newsletter.js +83 -0
- package/dist/blocks/newsletter/Newsletter.js.map +1 -0
- package/dist/blocks/newsletter/index.d.ts +3 -0
- package/dist/blocks/newsletter/index.d.ts.map +1 -0
- package/dist/blocks/notification-center/NotificationCenter.cjs +73 -0
- package/dist/blocks/notification-center/NotificationCenter.cjs.map +1 -0
- package/dist/blocks/notification-center/NotificationCenter.d.ts +22 -0
- package/dist/blocks/notification-center/NotificationCenter.d.ts.map +1 -0
- package/dist/blocks/notification-center/NotificationCenter.js +73 -0
- package/dist/blocks/notification-center/NotificationCenter.js.map +1 -0
- package/dist/blocks/notification-center/index.d.ts +3 -0
- package/dist/blocks/notification-center/index.d.ts.map +1 -0
- package/dist/blocks/onboarding/Onboarding.cjs +100 -0
- package/dist/blocks/onboarding/Onboarding.cjs.map +1 -0
- package/dist/blocks/onboarding/Onboarding.d.ts +26 -0
- package/dist/blocks/onboarding/Onboarding.d.ts.map +1 -0
- package/dist/blocks/onboarding/Onboarding.js +100 -0
- package/dist/blocks/onboarding/Onboarding.js.map +1 -0
- package/dist/blocks/onboarding/index.d.ts +3 -0
- package/dist/blocks/onboarding/index.d.ts.map +1 -0
- package/dist/blocks/pricing/Pricing.cjs +92 -0
- package/dist/blocks/pricing/Pricing.cjs.map +1 -0
- package/dist/blocks/pricing/Pricing.d.ts +29 -0
- package/dist/blocks/pricing/Pricing.d.ts.map +1 -0
- package/dist/blocks/pricing/Pricing.js +92 -0
- package/dist/blocks/pricing/Pricing.js.map +1 -0
- package/dist/blocks/pricing/index.d.ts +3 -0
- package/dist/blocks/pricing/index.d.ts.map +1 -0
- package/dist/blocks/pricing-comparison/PricingComparison.cjs +85 -0
- package/dist/blocks/pricing-comparison/PricingComparison.cjs.map +1 -0
- package/dist/blocks/pricing-comparison/PricingComparison.d.ts +31 -0
- package/dist/blocks/pricing-comparison/PricingComparison.d.ts.map +1 -0
- package/dist/blocks/pricing-comparison/PricingComparison.js +85 -0
- package/dist/blocks/pricing-comparison/PricingComparison.js.map +1 -0
- package/dist/blocks/pricing-comparison/index.d.ts +3 -0
- package/dist/blocks/pricing-comparison/index.d.ts.map +1 -0
- package/dist/blocks/profile-page/ProfilePage.cjs +53 -0
- package/dist/blocks/profile-page/ProfilePage.cjs.map +1 -0
- package/dist/blocks/profile-page/ProfilePage.d.ts +25 -0
- package/dist/blocks/profile-page/ProfilePage.d.ts.map +1 -0
- package/dist/blocks/profile-page/ProfilePage.js +53 -0
- package/dist/blocks/profile-page/ProfilePage.js.map +1 -0
- package/dist/blocks/profile-page/index.d.ts +3 -0
- package/dist/blocks/profile-page/index.d.ts.map +1 -0
- package/dist/blocks/settings-page/SettingsPage.cjs +51 -0
- package/dist/blocks/settings-page/SettingsPage.cjs.map +1 -0
- package/dist/blocks/settings-page/SettingsPage.d.ts +36 -0
- package/dist/blocks/settings-page/SettingsPage.d.ts.map +1 -0
- package/dist/blocks/settings-page/SettingsPage.js +51 -0
- package/dist/blocks/settings-page/SettingsPage.js.map +1 -0
- package/dist/blocks/settings-page/index.d.ts +3 -0
- package/dist/blocks/settings-page/index.d.ts.map +1 -0
- package/dist/blocks/sidebar/Sidebar.cjs +75 -0
- package/dist/blocks/sidebar/Sidebar.cjs.map +1 -0
- package/dist/blocks/sidebar/Sidebar.d.ts +53 -0
- package/dist/blocks/sidebar/Sidebar.d.ts.map +1 -0
- package/dist/blocks/sidebar/Sidebar.js +75 -0
- package/dist/blocks/sidebar/Sidebar.js.map +1 -0
- package/dist/blocks/sidebar/index.d.ts +3 -0
- package/dist/blocks/sidebar/index.d.ts.map +1 -0
- package/dist/blocks/split-view/SplitView.cjs +105 -0
- package/dist/blocks/split-view/SplitView.cjs.map +1 -0
- package/dist/blocks/split-view/SplitView.d.ts +33 -0
- package/dist/blocks/split-view/SplitView.d.ts.map +1 -0
- package/dist/blocks/split-view/SplitView.js +105 -0
- package/dist/blocks/split-view/SplitView.js.map +1 -0
- package/dist/blocks/split-view/index.d.ts +3 -0
- package/dist/blocks/split-view/index.d.ts.map +1 -0
- package/dist/blocks/stats/Stats.cjs +34 -0
- package/dist/blocks/stats/Stats.cjs.map +1 -0
- package/dist/blocks/stats/Stats.d.ts +22 -0
- package/dist/blocks/stats/Stats.d.ts.map +1 -0
- package/dist/blocks/stats/Stats.js +34 -0
- package/dist/blocks/stats/Stats.js.map +1 -0
- package/dist/blocks/stats/index.d.ts +3 -0
- package/dist/blocks/stats/index.d.ts.map +1 -0
- package/dist/blocks/team-grid/TeamGrid.cjs +23 -0
- package/dist/blocks/team-grid/TeamGrid.cjs.map +1 -0
- package/dist/blocks/team-grid/TeamGrid.d.ts +23 -0
- package/dist/blocks/team-grid/TeamGrid.d.ts.map +1 -0
- package/dist/blocks/team-grid/TeamGrid.js +23 -0
- package/dist/blocks/team-grid/TeamGrid.js.map +1 -0
- package/dist/blocks/team-grid/index.d.ts +3 -0
- package/dist/blocks/team-grid/index.d.ts.map +1 -0
- package/dist/blocks/testimonials/Testimonials.cjs +35 -0
- package/dist/blocks/testimonials/Testimonials.cjs.map +1 -0
- package/dist/blocks/testimonials/Testimonials.d.ts +20 -0
- package/dist/blocks/testimonials/Testimonials.d.ts.map +1 -0
- package/dist/blocks/testimonials/Testimonials.js +35 -0
- package/dist/blocks/testimonials/Testimonials.js.map +1 -0
- package/dist/blocks/testimonials/index.d.ts +3 -0
- package/dist/blocks/testimonials/index.d.ts.map +1 -0
- package/dist/components/accordion/Accordion.cjs +45 -0
- package/dist/components/accordion/Accordion.cjs.map +1 -0
- package/dist/components/accordion/Accordion.d.ts +16 -0
- package/dist/components/accordion/Accordion.d.ts.map +1 -0
- package/dist/components/accordion/Accordion.js +45 -0
- package/dist/components/accordion/Accordion.js.map +1 -0
- package/dist/components/accordion/index.d.ts +3 -0
- package/dist/components/accordion/index.d.ts.map +1 -0
- package/dist/components/alert/Alert.cjs +73 -0
- package/dist/components/alert/Alert.cjs.map +1 -0
- package/dist/components/alert/Alert.d.ts +25 -0
- package/dist/components/alert/Alert.d.ts.map +1 -0
- package/dist/components/alert/Alert.js +73 -0
- package/dist/components/alert/Alert.js.map +1 -0
- package/dist/components/alert/index.d.ts +3 -0
- package/dist/components/alert/index.d.ts.map +1 -0
- package/dist/components/alert-dialog/AlertDialog.cjs +81 -0
- package/dist/components/alert-dialog/AlertDialog.cjs.map +1 -0
- package/dist/components/alert-dialog/AlertDialog.d.ts +34 -0
- package/dist/components/alert-dialog/AlertDialog.d.ts.map +1 -0
- package/dist/components/alert-dialog/AlertDialog.js +81 -0
- package/dist/components/alert-dialog/AlertDialog.js.map +1 -0
- package/dist/components/alert-dialog/index.d.ts +3 -0
- package/dist/components/alert-dialog/index.d.ts.map +1 -0
- package/dist/components/avatar/Avatar.cjs +93 -0
- package/dist/components/avatar/Avatar.cjs.map +1 -0
- package/dist/components/avatar/Avatar.d.ts +34 -0
- package/dist/components/avatar/Avatar.d.ts.map +1 -0
- package/dist/components/avatar/Avatar.js +93 -0
- package/dist/components/avatar/Avatar.js.map +1 -0
- package/dist/components/avatar/index.d.ts +3 -0
- package/dist/components/avatar/index.d.ts.map +1 -0
- package/dist/components/badge/Badge.cjs +28 -0
- package/dist/components/badge/Badge.cjs.map +1 -0
- package/dist/components/badge/Badge.d.ts +18 -0
- package/dist/components/badge/Badge.d.ts.map +1 -0
- package/dist/components/badge/Badge.js +28 -0
- package/dist/components/badge/Badge.js.map +1 -0
- package/dist/components/badge/index.d.ts +3 -0
- package/dist/components/badge/index.d.ts.map +1 -0
- package/dist/components/banner/Banner.cjs +49 -0
- package/dist/components/banner/Banner.cjs.map +1 -0
- package/dist/components/banner/Banner.d.ts +16 -0
- package/dist/components/banner/Banner.d.ts.map +1 -0
- package/dist/components/banner/Banner.js +49 -0
- package/dist/components/banner/Banner.js.map +1 -0
- package/dist/components/banner/index.d.ts +3 -0
- package/dist/components/banner/index.d.ts.map +1 -0
- package/dist/components/breadcrumb/Breadcrumb.cjs +70 -0
- package/dist/components/breadcrumb/Breadcrumb.cjs.map +1 -0
- package/dist/components/breadcrumb/Breadcrumb.d.ts +44 -0
- package/dist/components/breadcrumb/Breadcrumb.d.ts.map +1 -0
- package/dist/components/breadcrumb/Breadcrumb.js +70 -0
- package/dist/components/breadcrumb/Breadcrumb.js.map +1 -0
- package/dist/components/breadcrumb/index.d.ts +3 -0
- package/dist/components/breadcrumb/index.d.ts.map +1 -0
- package/dist/components/button/Button.cjs +71 -0
- package/dist/components/button/Button.cjs.map +1 -0
- package/dist/components/button/Button.d.ts +41 -0
- package/dist/components/button/Button.d.ts.map +1 -0
- package/dist/components/button/Button.js +71 -0
- package/dist/components/button/Button.js.map +1 -0
- package/dist/components/button/index.d.ts +3 -0
- package/dist/components/button/index.d.ts.map +1 -0
- package/dist/components/calendar/Calendar.cjs +165 -0
- package/dist/components/calendar/Calendar.cjs.map +1 -0
- package/dist/components/calendar/Calendar.d.ts +25 -0
- package/dist/components/calendar/Calendar.d.ts.map +1 -0
- package/dist/components/calendar/Calendar.js +165 -0
- package/dist/components/calendar/Calendar.js.map +1 -0
- package/dist/components/calendar/index.d.ts +3 -0
- package/dist/components/calendar/index.d.ts.map +1 -0
- package/dist/components/card/Card.cjs +81 -0
- package/dist/components/card/Card.cjs.map +1 -0
- package/dist/components/card/Card.d.ts +27 -0
- package/dist/components/card/Card.d.ts.map +1 -0
- package/dist/components/card/Card.js +81 -0
- package/dist/components/card/Card.js.map +1 -0
- package/dist/components/card/index.d.ts +3 -0
- package/dist/components/card/index.d.ts.map +1 -0
- package/dist/components/carousel/Carousel.cjs +125 -0
- package/dist/components/carousel/Carousel.cjs.map +1 -0
- package/dist/components/carousel/Carousel.d.ts +16 -0
- package/dist/components/carousel/Carousel.d.ts.map +1 -0
- package/dist/components/carousel/Carousel.js +125 -0
- package/dist/components/carousel/Carousel.js.map +1 -0
- package/dist/components/carousel/index.d.ts +3 -0
- package/dist/components/carousel/index.d.ts.map +1 -0
- package/dist/components/chart/Chart.cjs +155 -0
- package/dist/components/chart/Chart.cjs.map +1 -0
- package/dist/components/chart/Chart.d.ts +42 -0
- package/dist/components/chart/Chart.d.ts.map +1 -0
- package/dist/components/chart/Chart.js +155 -0
- package/dist/components/chart/Chart.js.map +1 -0
- package/dist/components/chart/index.d.ts +3 -0
- package/dist/components/chart/index.d.ts.map +1 -0
- package/dist/components/checkbox/Checkbox.cjs +33 -0
- package/dist/components/checkbox/Checkbox.cjs.map +1 -0
- package/dist/components/checkbox/Checkbox.d.ts +25 -0
- package/dist/components/checkbox/Checkbox.d.ts.map +1 -0
- package/dist/components/checkbox/Checkbox.js +33 -0
- package/dist/components/checkbox/Checkbox.js.map +1 -0
- package/dist/components/checkbox/index.d.ts +3 -0
- package/dist/components/checkbox/index.d.ts.map +1 -0
- package/dist/components/chip/Chip.cjs +70 -0
- package/dist/components/chip/Chip.cjs.map +1 -0
- package/dist/components/chip/Chip.d.ts +19 -0
- package/dist/components/chip/Chip.d.ts.map +1 -0
- package/dist/components/chip/Chip.js +70 -0
- package/dist/components/chip/Chip.js.map +1 -0
- package/dist/components/chip/index.d.ts +3 -0
- package/dist/components/chip/index.d.ts.map +1 -0
- package/dist/components/code-block/CodeBlock.cjs +54 -0
- package/dist/components/code-block/CodeBlock.cjs.map +1 -0
- package/dist/components/code-block/CodeBlock.d.ts +12 -0
- package/dist/components/code-block/CodeBlock.d.ts.map +1 -0
- package/dist/components/code-block/CodeBlock.js +54 -0
- package/dist/components/code-block/CodeBlock.js.map +1 -0
- package/dist/components/code-block/index.d.ts +3 -0
- package/dist/components/code-block/index.d.ts.map +1 -0
- package/dist/components/collapsible/Collapsible.cjs +42 -0
- package/dist/components/collapsible/Collapsible.cjs.map +1 -0
- package/dist/components/collapsible/Collapsible.d.ts +17 -0
- package/dist/components/collapsible/Collapsible.d.ts.map +1 -0
- package/dist/components/collapsible/Collapsible.js +42 -0
- package/dist/components/collapsible/Collapsible.js.map +1 -0
- package/dist/components/collapsible/index.d.ts +3 -0
- package/dist/components/collapsible/index.d.ts.map +1 -0
- package/dist/components/color-picker/ColorPicker.cjs +124 -0
- package/dist/components/color-picker/ColorPicker.cjs.map +1 -0
- package/dist/components/color-picker/ColorPicker.d.ts +13 -0
- package/dist/components/color-picker/ColorPicker.d.ts.map +1 -0
- package/dist/components/color-picker/ColorPicker.js +124 -0
- package/dist/components/color-picker/ColorPicker.js.map +1 -0
- package/dist/components/color-picker/index.d.ts +3 -0
- package/dist/components/color-picker/index.d.ts.map +1 -0
- package/dist/components/combobox/Combobox.cjs +104 -0
- package/dist/components/combobox/Combobox.cjs.map +1 -0
- package/dist/components/combobox/Combobox.d.ts +29 -0
- package/dist/components/combobox/Combobox.d.ts.map +1 -0
- package/dist/components/combobox/Combobox.js +104 -0
- package/dist/components/combobox/Combobox.js.map +1 -0
- package/dist/components/combobox/index.d.ts +3 -0
- package/dist/components/combobox/index.d.ts.map +1 -0
- package/dist/components/command/Command.cjs +87 -0
- package/dist/components/command/Command.cjs.map +1 -0
- package/dist/components/command/Command.d.ts +81 -0
- package/dist/components/command/Command.d.ts.map +1 -0
- package/dist/components/command/Command.js +87 -0
- package/dist/components/command/Command.js.map +1 -0
- package/dist/components/command/index.d.ts +3 -0
- package/dist/components/command/index.d.ts.map +1 -0
- package/dist/components/context-menu/ContextMenu.cjs +120 -0
- package/dist/components/context-menu/ContextMenu.cjs.map +1 -0
- package/dist/components/context-menu/ContextMenu.d.ts +21 -0
- package/dist/components/context-menu/ContextMenu.d.ts.map +1 -0
- package/dist/components/context-menu/ContextMenu.js +120 -0
- package/dist/components/context-menu/ContextMenu.js.map +1 -0
- package/dist/components/context-menu/index.d.ts +3 -0
- package/dist/components/context-menu/index.d.ts.map +1 -0
- package/dist/components/copy-button/CopyButton.cjs +56 -0
- package/dist/components/copy-button/CopyButton.cjs.map +1 -0
- package/dist/components/copy-button/CopyButton.d.ts +15 -0
- package/dist/components/copy-button/CopyButton.d.ts.map +1 -0
- package/dist/components/copy-button/CopyButton.js +56 -0
- package/dist/components/copy-button/CopyButton.js.map +1 -0
- package/dist/components/copy-button/index.d.ts +3 -0
- package/dist/components/copy-button/index.d.ts.map +1 -0
- package/dist/components/date-picker/DatePicker.cjs +147 -0
- package/dist/components/date-picker/DatePicker.cjs.map +1 -0
- package/dist/components/date-picker/DatePicker.d.ts +26 -0
- package/dist/components/date-picker/DatePicker.d.ts.map +1 -0
- package/dist/components/date-picker/DatePicker.js +147 -0
- package/dist/components/date-picker/DatePicker.js.map +1 -0
- package/dist/components/date-picker/index.d.ts +3 -0
- package/dist/components/date-picker/index.d.ts.map +1 -0
- package/dist/components/dialog/Dialog.cjs +91 -0
- package/dist/components/dialog/Dialog.cjs.map +1 -0
- package/dist/components/dialog/Dialog.d.ts +32 -0
- package/dist/components/dialog/Dialog.d.ts.map +1 -0
- package/dist/components/dialog/Dialog.js +91 -0
- package/dist/components/dialog/Dialog.js.map +1 -0
- package/dist/components/dialog/index.d.ts +3 -0
- package/dist/components/dialog/index.d.ts.map +1 -0
- package/dist/components/drawer/Drawer.cjs +51 -0
- package/dist/components/drawer/Drawer.cjs.map +1 -0
- package/dist/components/drawer/Drawer.d.ts +27 -0
- package/dist/components/drawer/Drawer.d.ts.map +1 -0
- package/dist/components/drawer/Drawer.js +51 -0
- package/dist/components/drawer/Drawer.js.map +1 -0
- package/dist/components/drawer/index.d.ts +3 -0
- package/dist/components/drawer/index.d.ts.map +1 -0
- package/dist/components/dropdown-menu/DropdownMenu.cjs +133 -0
- package/dist/components/dropdown-menu/DropdownMenu.cjs.map +1 -0
- package/dist/components/dropdown-menu/DropdownMenu.d.ts +44 -0
- package/dist/components/dropdown-menu/DropdownMenu.d.ts.map +1 -0
- package/dist/components/dropdown-menu/DropdownMenu.js +133 -0
- package/dist/components/dropdown-menu/DropdownMenu.js.map +1 -0
- package/dist/components/dropdown-menu/index.d.ts +3 -0
- package/dist/components/dropdown-menu/index.d.ts.map +1 -0
- package/dist/components/empty-content/EmptyContent.cjs +38 -0
- package/dist/components/empty-content/EmptyContent.cjs.map +1 -0
- package/dist/components/empty-content/EmptyContent.d.ts +16 -0
- package/dist/components/empty-content/EmptyContent.d.ts.map +1 -0
- package/dist/components/empty-content/EmptyContent.js +38 -0
- package/dist/components/empty-content/EmptyContent.js.map +1 -0
- package/dist/components/empty-content/index.d.ts +3 -0
- package/dist/components/empty-content/index.d.ts.map +1 -0
- package/dist/components/file-upload/FileUpload.cjs +126 -0
- package/dist/components/file-upload/FileUpload.cjs.map +1 -0
- package/dist/components/file-upload/FileUpload.d.ts +15 -0
- package/dist/components/file-upload/FileUpload.d.ts.map +1 -0
- package/dist/components/file-upload/FileUpload.js +126 -0
- package/dist/components/file-upload/FileUpload.js.map +1 -0
- package/dist/components/file-upload/index.d.ts +3 -0
- package/dist/components/file-upload/index.d.ts.map +1 -0
- package/dist/components/form/Form.cjs +81 -0
- package/dist/components/form/Form.cjs.map +1 -0
- package/dist/components/form/Form.d.ts +15 -0
- package/dist/components/form/Form.d.ts.map +1 -0
- package/dist/components/form/Form.js +82 -0
- package/dist/components/form/Form.js.map +1 -0
- package/dist/components/form/index.d.ts +3 -0
- package/dist/components/form/index.d.ts.map +1 -0
- package/dist/components/hover-card/HoverCard.cjs +24 -0
- package/dist/components/hover-card/HoverCard.cjs.map +1 -0
- package/dist/components/hover-card/HoverCard.d.ts +6 -0
- package/dist/components/hover-card/HoverCard.d.ts.map +1 -0
- package/dist/components/hover-card/HoverCard.js +24 -0
- package/dist/components/hover-card/HoverCard.js.map +1 -0
- package/dist/components/hover-card/index.d.ts +2 -0
- package/dist/components/hover-card/index.d.ts.map +1 -0
- package/dist/components/index.d.ts +128 -0
- package/dist/components/index.d.ts.map +1 -0
- package/dist/components/input/Input.cjs +64 -0
- package/dist/components/input/Input.cjs.map +1 -0
- package/dist/components/input/Input.d.ts +32 -0
- package/dist/components/input/Input.d.ts.map +1 -0
- package/dist/components/input/Input.js +64 -0
- package/dist/components/input/Input.js.map +1 -0
- package/dist/components/input/index.d.ts +3 -0
- package/dist/components/input/index.d.ts.map +1 -0
- package/dist/components/input-otp/InputOTP.cjs +126 -0
- package/dist/components/input-otp/InputOTP.cjs.map +1 -0
- package/dist/components/input-otp/InputOTP.d.ts +19 -0
- package/dist/components/input-otp/InputOTP.d.ts.map +1 -0
- package/dist/components/input-otp/InputOTP.js +126 -0
- package/dist/components/input-otp/InputOTP.js.map +1 -0
- package/dist/components/input-otp/index.d.ts +3 -0
- package/dist/components/input-otp/index.d.ts.map +1 -0
- package/dist/components/kbd/Kbd.cjs +40 -0
- package/dist/components/kbd/Kbd.cjs.map +1 -0
- package/dist/components/kbd/Kbd.d.ts +10 -0
- package/dist/components/kbd/Kbd.d.ts.map +1 -0
- package/dist/components/kbd/Kbd.js +40 -0
- package/dist/components/kbd/Kbd.js.map +1 -0
- package/dist/components/kbd/index.d.ts +3 -0
- package/dist/components/kbd/index.d.ts.map +1 -0
- package/dist/components/label/Label.cjs +23 -0
- package/dist/components/label/Label.cjs.map +1 -0
- package/dist/components/label/Label.d.ts +20 -0
- package/dist/components/label/Label.d.ts.map +1 -0
- package/dist/components/label/Label.js +23 -0
- package/dist/components/label/Label.js.map +1 -0
- package/dist/components/label/index.d.ts +3 -0
- package/dist/components/label/index.d.ts.map +1 -0
- package/dist/components/marquee/Marquee.cjs +48 -0
- package/dist/components/marquee/Marquee.cjs.map +1 -0
- package/dist/components/marquee/Marquee.d.ts +16 -0
- package/dist/components/marquee/Marquee.d.ts.map +1 -0
- package/dist/components/marquee/Marquee.js +48 -0
- package/dist/components/marquee/Marquee.js.map +1 -0
- package/dist/components/marquee/index.d.ts +3 -0
- package/dist/components/marquee/index.d.ts.map +1 -0
- package/dist/components/menubar/Menubar.cjs +119 -0
- package/dist/components/menubar/Menubar.cjs.map +1 -0
- package/dist/components/menubar/Menubar.d.ts +30 -0
- package/dist/components/menubar/Menubar.d.ts.map +1 -0
- package/dist/components/menubar/Menubar.js +119 -0
- package/dist/components/menubar/Menubar.js.map +1 -0
- package/dist/components/menubar/index.d.ts +3 -0
- package/dist/components/menubar/index.d.ts.map +1 -0
- package/dist/components/multi-select/MultiSelect.cjs +101 -0
- package/dist/components/multi-select/MultiSelect.cjs.map +1 -0
- package/dist/components/multi-select/MultiSelect.d.ts +27 -0
- package/dist/components/multi-select/MultiSelect.d.ts.map +1 -0
- package/dist/components/multi-select/MultiSelect.js +101 -0
- package/dist/components/multi-select/MultiSelect.js.map +1 -0
- package/dist/components/multi-select/index.d.ts +3 -0
- package/dist/components/multi-select/index.d.ts.map +1 -0
- package/dist/components/navigation-menu/NavigationMenu.cjs +123 -0
- package/dist/components/navigation-menu/NavigationMenu.cjs.map +1 -0
- package/dist/components/navigation-menu/NavigationMenu.d.ts +44 -0
- package/dist/components/navigation-menu/NavigationMenu.d.ts.map +1 -0
- package/dist/components/navigation-menu/NavigationMenu.js +123 -0
- package/dist/components/navigation-menu/NavigationMenu.js.map +1 -0
- package/dist/components/navigation-menu/index.d.ts +3 -0
- package/dist/components/navigation-menu/index.d.ts.map +1 -0
- package/dist/components/number-input/NumberInput.cjs +118 -0
- package/dist/components/number-input/NumberInput.cjs.map +1 -0
- package/dist/components/number-input/NumberInput.d.ts +21 -0
- package/dist/components/number-input/NumberInput.d.ts.map +1 -0
- package/dist/components/number-input/NumberInput.js +118 -0
- package/dist/components/number-input/NumberInput.js.map +1 -0
- package/dist/components/number-input/index.d.ts +3 -0
- package/dist/components/number-input/index.d.ts.map +1 -0
- package/dist/components/pagination/Pagination.cjs +88 -0
- package/dist/components/pagination/Pagination.cjs.map +1 -0
- package/dist/components/pagination/Pagination.d.ts +18 -0
- package/dist/components/pagination/Pagination.d.ts.map +1 -0
- package/dist/components/pagination/Pagination.js +88 -0
- package/dist/components/pagination/Pagination.js.map +1 -0
- package/dist/components/pagination/index.d.ts +3 -0
- package/dist/components/pagination/index.d.ts.map +1 -0
- package/dist/components/popover/Popover.cjs +72 -0
- package/dist/components/popover/Popover.cjs.map +1 -0
- package/dist/components/popover/Popover.d.ts +24 -0
- package/dist/components/popover/Popover.d.ts.map +1 -0
- package/dist/components/popover/Popover.js +72 -0
- package/dist/components/popover/Popover.js.map +1 -0
- package/dist/components/popover/index.d.ts +3 -0
- package/dist/components/popover/index.d.ts.map +1 -0
- package/dist/components/progress/Progress.cjs +61 -0
- package/dist/components/progress/Progress.cjs.map +1 -0
- package/dist/components/progress/Progress.d.ts +26 -0
- package/dist/components/progress/Progress.d.ts.map +1 -0
- package/dist/components/progress/Progress.js +61 -0
- package/dist/components/progress/Progress.js.map +1 -0
- package/dist/components/progress/index.d.ts +3 -0
- package/dist/components/progress/index.d.ts.map +1 -0
- package/dist/components/progress-ring/ProgressRing.cjs +110 -0
- package/dist/components/progress-ring/ProgressRing.cjs.map +1 -0
- package/dist/components/progress-ring/ProgressRing.d.ts +17 -0
- package/dist/components/progress-ring/ProgressRing.d.ts.map +1 -0
- package/dist/components/progress-ring/ProgressRing.js +110 -0
- package/dist/components/progress-ring/ProgressRing.js.map +1 -0
- package/dist/components/progress-ring/index.d.ts +3 -0
- package/dist/components/progress-ring/index.d.ts.map +1 -0
- package/dist/components/radio-group/RadioGroup.cjs +54 -0
- package/dist/components/radio-group/RadioGroup.cjs.map +1 -0
- package/dist/components/radio-group/RadioGroup.d.ts +38 -0
- package/dist/components/radio-group/RadioGroup.d.ts.map +1 -0
- package/dist/components/radio-group/RadioGroup.js +54 -0
- package/dist/components/radio-group/RadioGroup.js.map +1 -0
- package/dist/components/radio-group/index.d.ts +3 -0
- package/dist/components/radio-group/index.d.ts.map +1 -0
- package/dist/components/rating/Rating.cjs +95 -0
- package/dist/components/rating/Rating.cjs.map +1 -0
- package/dist/components/rating/Rating.d.ts +16 -0
- package/dist/components/rating/Rating.d.ts.map +1 -0
- package/dist/components/rating/Rating.js +95 -0
- package/dist/components/rating/Rating.js.map +1 -0
- package/dist/components/rating/index.d.ts +3 -0
- package/dist/components/rating/index.d.ts.map +1 -0
- package/dist/components/resizable/Resizable.cjs +98 -0
- package/dist/components/resizable/Resizable.cjs.map +1 -0
- package/dist/components/resizable/Resizable.d.ts +21 -0
- package/dist/components/resizable/Resizable.d.ts.map +1 -0
- package/dist/components/resizable/Resizable.js +98 -0
- package/dist/components/resizable/Resizable.js.map +1 -0
- package/dist/components/resizable/index.d.ts +3 -0
- package/dist/components/resizable/index.d.ts.map +1 -0
- package/dist/components/scroll-area/ScrollArea.cjs +36 -0
- package/dist/components/scroll-area/ScrollArea.cjs.map +1 -0
- package/dist/components/scroll-area/ScrollArea.d.ts +9 -0
- package/dist/components/scroll-area/ScrollArea.d.ts.map +1 -0
- package/dist/components/scroll-area/ScrollArea.js +36 -0
- package/dist/components/scroll-area/ScrollArea.js.map +1 -0
- package/dist/components/scroll-area/index.d.ts +3 -0
- package/dist/components/scroll-area/index.d.ts.map +1 -0
- package/dist/components/select/Select.cjs +66 -0
- package/dist/components/select/Select.cjs.map +1 -0
- package/dist/components/select/Select.d.ts +49 -0
- package/dist/components/select/Select.d.ts.map +1 -0
- package/dist/components/select/Select.js +66 -0
- package/dist/components/select/Select.js.map +1 -0
- package/dist/components/select/index.d.ts +3 -0
- package/dist/components/select/index.d.ts.map +1 -0
- package/dist/components/separator/Separator.cjs +45 -0
- package/dist/components/separator/Separator.cjs.map +1 -0
- package/dist/components/separator/Separator.d.ts +17 -0
- package/dist/components/separator/Separator.d.ts.map +1 -0
- package/dist/components/separator/Separator.js +45 -0
- package/dist/components/separator/Separator.js.map +1 -0
- package/dist/components/separator/index.d.ts +3 -0
- package/dist/components/separator/index.d.ts.map +1 -0
- package/dist/components/sheet/Sheet.cjs +59 -0
- package/dist/components/sheet/Sheet.cjs.map +1 -0
- package/dist/components/sheet/Sheet.d.ts +28 -0
- package/dist/components/sheet/Sheet.d.ts.map +1 -0
- package/dist/components/sheet/Sheet.js +59 -0
- package/dist/components/sheet/Sheet.js.map +1 -0
- package/dist/components/sheet/index.d.ts +3 -0
- package/dist/components/sheet/index.d.ts.map +1 -0
- package/dist/components/skeleton/Skeleton.cjs +70 -0
- package/dist/components/skeleton/Skeleton.cjs.map +1 -0
- package/dist/components/skeleton/Skeleton.d.ts +30 -0
- package/dist/components/skeleton/Skeleton.d.ts.map +1 -0
- package/dist/components/skeleton/Skeleton.js +70 -0
- package/dist/components/skeleton/Skeleton.js.map +1 -0
- package/dist/components/skeleton/index.d.ts +3 -0
- package/dist/components/skeleton/index.d.ts.map +1 -0
- package/dist/components/slider/Slider.cjs +27 -0
- package/dist/components/slider/Slider.cjs.map +1 -0
- package/dist/components/slider/Slider.d.ts +10 -0
- package/dist/components/slider/Slider.d.ts.map +1 -0
- package/dist/components/slider/Slider.js +27 -0
- package/dist/components/slider/Slider.js.map +1 -0
- package/dist/components/slider/index.d.ts +3 -0
- package/dist/components/slider/index.d.ts.map +1 -0
- package/dist/components/spinner/Spinner.cjs +79 -0
- package/dist/components/spinner/Spinner.cjs.map +1 -0
- package/dist/components/spinner/Spinner.d.ts +12 -0
- package/dist/components/spinner/Spinner.d.ts.map +1 -0
- package/dist/components/spinner/Spinner.js +79 -0
- package/dist/components/spinner/Spinner.js.map +1 -0
- package/dist/components/spinner/index.d.ts +3 -0
- package/dist/components/spinner/index.d.ts.map +1 -0
- package/dist/components/stat-card/StatCard.cjs +73 -0
- package/dist/components/stat-card/StatCard.cjs.map +1 -0
- package/dist/components/stat-card/StatCard.d.ts +24 -0
- package/dist/components/stat-card/StatCard.d.ts.map +1 -0
- package/dist/components/stat-card/StatCard.js +73 -0
- package/dist/components/stat-card/StatCard.js.map +1 -0
- package/dist/components/stat-card/index.d.ts +3 -0
- package/dist/components/stat-card/index.d.ts.map +1 -0
- package/dist/components/stepper/Stepper.cjs +90 -0
- package/dist/components/stepper/Stepper.cjs.map +1 -0
- package/dist/components/stepper/Stepper.d.ts +24 -0
- package/dist/components/stepper/Stepper.d.ts.map +1 -0
- package/dist/components/stepper/Stepper.js +90 -0
- package/dist/components/stepper/Stepper.js.map +1 -0
- package/dist/components/stepper/index.d.ts +3 -0
- package/dist/components/stepper/index.d.ts.map +1 -0
- package/dist/components/switch/Switch.cjs +29 -0
- package/dist/components/switch/Switch.cjs.map +1 -0
- package/dist/components/switch/Switch.d.ts +20 -0
- package/dist/components/switch/Switch.d.ts.map +1 -0
- package/dist/components/switch/Switch.js +29 -0
- package/dist/components/switch/Switch.js.map +1 -0
- package/dist/components/switch/index.d.ts +3 -0
- package/dist/components/switch/index.d.ts.map +1 -0
- package/dist/components/table/Table.cjs +113 -0
- package/dist/components/table/Table.cjs.map +1 -0
- package/dist/components/table/Table.d.ts +48 -0
- package/dist/components/table/Table.d.ts.map +1 -0
- package/dist/components/table/Table.js +113 -0
- package/dist/components/table/Table.js.map +1 -0
- package/dist/components/table/index.d.ts +3 -0
- package/dist/components/table/index.d.ts.map +1 -0
- package/dist/components/tabs/Tabs.cjs +40 -0
- package/dist/components/tabs/Tabs.cjs.map +1 -0
- package/dist/components/tabs/Tabs.d.ts +19 -0
- package/dist/components/tabs/Tabs.d.ts.map +1 -0
- package/dist/components/tabs/Tabs.js +40 -0
- package/dist/components/tabs/Tabs.js.map +1 -0
- package/dist/components/tabs/index.d.ts +3 -0
- package/dist/components/tabs/index.d.ts.map +1 -0
- package/dist/components/tag-input/TagInput.cjs +113 -0
- package/dist/components/tag-input/TagInput.cjs.map +1 -0
- package/dist/components/tag-input/TagInput.d.ts +16 -0
- package/dist/components/tag-input/TagInput.d.ts.map +1 -0
- package/dist/components/tag-input/TagInput.js +113 -0
- package/dist/components/tag-input/TagInput.js.map +1 -0
- package/dist/components/tag-input/index.d.ts +3 -0
- package/dist/components/tag-input/index.d.ts.map +1 -0
- package/dist/components/textarea/Textarea.cjs +83 -0
- package/dist/components/textarea/Textarea.cjs.map +1 -0
- package/dist/components/textarea/Textarea.d.ts +28 -0
- package/dist/components/textarea/Textarea.d.ts.map +1 -0
- package/dist/components/textarea/Textarea.js +83 -0
- package/dist/components/textarea/Textarea.js.map +1 -0
- package/dist/components/textarea/index.d.ts +3 -0
- package/dist/components/textarea/index.d.ts.map +1 -0
- package/dist/components/timeline/Timeline.cjs +28 -0
- package/dist/components/timeline/Timeline.cjs.map +1 -0
- package/dist/components/timeline/Timeline.d.ts +17 -0
- package/dist/components/timeline/Timeline.d.ts.map +1 -0
- package/dist/components/timeline/Timeline.js +28 -0
- package/dist/components/timeline/Timeline.js.map +1 -0
- package/dist/components/timeline/index.d.ts +3 -0
- package/dist/components/timeline/index.d.ts.map +1 -0
- package/dist/components/toast/Toast.cjs +88 -0
- package/dist/components/toast/Toast.cjs.map +1 -0
- package/dist/components/toast/Toast.d.ts +45 -0
- package/dist/components/toast/Toast.d.ts.map +1 -0
- package/dist/components/toast/Toast.js +88 -0
- package/dist/components/toast/Toast.js.map +1 -0
- package/dist/components/toast/index.d.ts +3 -0
- package/dist/components/toast/index.d.ts.map +1 -0
- package/dist/components/toggle-group/ToggleGroup.cjs +35 -0
- package/dist/components/toggle-group/ToggleGroup.cjs.map +1 -0
- package/dist/components/toggle-group/ToggleGroup.d.ts +12 -0
- package/dist/components/toggle-group/ToggleGroup.d.ts.map +1 -0
- package/dist/components/toggle-group/ToggleGroup.js +35 -0
- package/dist/components/toggle-group/ToggleGroup.js.map +1 -0
- package/dist/components/toggle-group/index.d.ts +3 -0
- package/dist/components/toggle-group/index.d.ts.map +1 -0
- package/dist/components/tooltip/Tooltip.cjs +36 -0
- package/dist/components/tooltip/Tooltip.cjs.map +1 -0
- package/dist/components/tooltip/Tooltip.d.ts +33 -0
- package/dist/components/tooltip/Tooltip.d.ts.map +1 -0
- package/dist/components/tooltip/Tooltip.js +36 -0
- package/dist/components/tooltip/Tooltip.js.map +1 -0
- package/dist/components/tooltip/index.d.ts +3 -0
- package/dist/components/tooltip/index.d.ts.map +1 -0
- package/dist/components/tree/Tree.cjs +132 -0
- package/dist/components/tree/Tree.cjs.map +1 -0
- package/dist/components/tree/Tree.d.ts +23 -0
- package/dist/components/tree/Tree.d.ts.map +1 -0
- package/dist/components/tree/Tree.js +132 -0
- package/dist/components/tree/Tree.js.map +1 -0
- package/dist/components/tree/index.d.ts +3 -0
- package/dist/components/tree/index.d.ts.map +1 -0
- package/dist/config/defaults.cjs +83 -0
- package/dist/config/defaults.cjs.map +1 -0
- package/dist/config/defaults.d.ts +3 -0
- package/dist/config/defaults.d.ts.map +1 -0
- package/dist/config/defaults.js +83 -0
- package/dist/config/defaults.js.map +1 -0
- package/dist/config/index.cjs +26 -0
- package/dist/config/index.cjs.map +1 -0
- package/dist/config/index.d.ts +21 -0
- package/dist/config/index.d.ts.map +1 -0
- package/dist/config/index.js +26 -0
- package/dist/config/index.js.map +1 -0
- package/dist/config/types.d.ts +114 -0
- package/dist/config/types.d.ts.map +1 -0
- package/dist/hooks/index.d.ts +34 -0
- package/dist/hooks/index.d.ts.map +1 -0
- package/dist/hooks/useArray.cjs +15 -0
- package/dist/hooks/useArray.cjs.map +1 -0
- package/dist/hooks/useArray.d.ts +18 -0
- package/dist/hooks/useArray.d.ts.map +1 -0
- package/dist/hooks/useArray.js +15 -0
- package/dist/hooks/useArray.js.map +1 -0
- package/dist/hooks/useBreakpoint.cjs +25 -0
- package/dist/hooks/useBreakpoint.cjs.map +1 -0
- package/dist/hooks/useBreakpoint.d.ts +10 -0
- package/dist/hooks/useBreakpoint.d.ts.map +1 -0
- package/dist/hooks/useBreakpoint.js +25 -0
- package/dist/hooks/useBreakpoint.js.map +1 -0
- package/dist/hooks/useClickOutside.cjs +19 -0
- package/dist/hooks/useClickOutside.cjs.map +1 -0
- package/dist/hooks/useClickOutside.d.ts +10 -0
- package/dist/hooks/useClickOutside.d.ts.map +1 -0
- package/dist/hooks/useClickOutside.js +19 -0
- package/dist/hooks/useClickOutside.js.map +1 -0
- package/dist/hooks/useClipboard.cjs +18 -0
- package/dist/hooks/useClipboard.cjs.map +1 -0
- package/dist/hooks/useClipboard.d.ts +12 -0
- package/dist/hooks/useClipboard.d.ts.map +1 -0
- package/dist/hooks/useClipboard.js +18 -0
- package/dist/hooks/useClipboard.js.map +1 -0
- package/dist/hooks/useCounter.cjs +15 -0
- package/dist/hooks/useCounter.cjs.map +1 -0
- package/dist/hooks/useCounter.d.ts +18 -0
- package/dist/hooks/useCounter.d.ts.map +1 -0
- package/dist/hooks/useCounter.js +15 -0
- package/dist/hooks/useCounter.js.map +1 -0
- package/dist/hooks/useDebounce.cjs +13 -0
- package/dist/hooks/useDebounce.cjs.map +1 -0
- package/dist/hooks/useDebounce.d.ts +8 -0
- package/dist/hooks/useDebounce.d.ts.map +1 -0
- package/dist/hooks/useDebounce.js +13 -0
- package/dist/hooks/useDebounce.js.map +1 -0
- package/dist/hooks/useEventListener.cjs +15 -0
- package/dist/hooks/useEventListener.cjs.map +1 -0
- package/dist/hooks/useEventListener.d.ts +10 -0
- package/dist/hooks/useEventListener.d.ts.map +1 -0
- package/dist/hooks/useEventListener.js +15 -0
- package/dist/hooks/useEventListener.js.map +1 -0
- package/dist/hooks/useFetch.cjs +33 -0
- package/dist/hooks/useFetch.cjs.map +1 -0
- package/dist/hooks/useFetch.d.ts +14 -0
- package/dist/hooks/useFetch.d.ts.map +1 -0
- package/dist/hooks/useFetch.js +33 -0
- package/dist/hooks/useFetch.js.map +1 -0
- package/dist/hooks/useFocus.cjs +22 -0
- package/dist/hooks/useFocus.cjs.map +1 -0
- package/dist/hooks/useFocus.d.ts +10 -0
- package/dist/hooks/useFocus.d.ts.map +1 -0
- package/dist/hooks/useFocus.js +22 -0
- package/dist/hooks/useFocus.js.map +1 -0
- package/dist/hooks/useHover.cjs +22 -0
- package/dist/hooks/useHover.cjs.map +1 -0
- package/dist/hooks/useHover.d.ts +10 -0
- package/dist/hooks/useHover.d.ts.map +1 -0
- package/dist/hooks/useHover.js +22 -0
- package/dist/hooks/useHover.js.map +1 -0
- package/dist/hooks/useInterval.cjs +14 -0
- package/dist/hooks/useInterval.cjs.map +1 -0
- package/dist/hooks/useInterval.d.ts +10 -0
- package/dist/hooks/useInterval.d.ts.map +1 -0
- package/dist/hooks/useInterval.js +14 -0
- package/dist/hooks/useInterval.js.map +1 -0
- package/dist/hooks/useIsMounted.cjs +15 -0
- package/dist/hooks/useIsMounted.cjs.map +1 -0
- package/dist/hooks/useIsMounted.d.ts +10 -0
- package/dist/hooks/useIsMounted.d.ts.map +1 -0
- package/dist/hooks/useIsMounted.js +15 -0
- package/dist/hooks/useIsMounted.js.map +1 -0
- package/dist/hooks/useIsVisible.cjs +18 -0
- package/dist/hooks/useIsVisible.cjs.map +1 -0
- package/dist/hooks/useIsVisible.d.ts +10 -0
- package/dist/hooks/useIsVisible.d.ts.map +1 -0
- package/dist/hooks/useIsVisible.js +18 -0
- package/dist/hooks/useIsVisible.js.map +1 -0
- package/dist/hooks/useKeyPress.cjs +25 -0
- package/dist/hooks/useKeyPress.cjs.map +1 -0
- package/dist/hooks/useKeyPress.d.ts +14 -0
- package/dist/hooks/useKeyPress.d.ts.map +1 -0
- package/dist/hooks/useKeyPress.js +25 -0
- package/dist/hooks/useKeyPress.js.map +1 -0
- package/dist/hooks/useLocalStorage.cjs +30 -0
- package/dist/hooks/useLocalStorage.cjs.map +1 -0
- package/dist/hooks/useLocalStorage.d.ts +8 -0
- package/dist/hooks/useLocalStorage.d.ts.map +1 -0
- package/dist/hooks/useLocalStorage.js +30 -0
- package/dist/hooks/useLocalStorage.js.map +1 -0
- package/dist/hooks/useMap.cjs +18 -0
- package/dist/hooks/useMap.cjs.map +1 -0
- package/dist/hooks/useMap.d.ts +17 -0
- package/dist/hooks/useMap.d.ts.map +1 -0
- package/dist/hooks/useMap.js +18 -0
- package/dist/hooks/useMap.js.map +1 -0
- package/dist/hooks/useMediaQuery.cjs +19 -0
- package/dist/hooks/useMediaQuery.cjs.map +1 -0
- package/dist/hooks/useMediaQuery.d.ts +9 -0
- package/dist/hooks/useMediaQuery.d.ts.map +1 -0
- package/dist/hooks/useMediaQuery.js +19 -0
- package/dist/hooks/useMediaQuery.js.map +1 -0
- package/dist/hooks/usePrevious.cjs +12 -0
- package/dist/hooks/usePrevious.cjs.map +1 -0
- package/dist/hooks/usePrevious.d.ts +8 -0
- package/dist/hooks/usePrevious.d.ts.map +1 -0
- package/dist/hooks/usePrevious.js +12 -0
- package/dist/hooks/usePrevious.js.map +1 -0
- package/dist/hooks/useScrollPosition.cjs +22 -0
- package/dist/hooks/useScrollPosition.cjs.map +1 -0
- package/dist/hooks/useScrollPosition.d.ts +14 -0
- package/dist/hooks/useScrollPosition.d.ts.map +1 -0
- package/dist/hooks/useScrollPosition.js +22 -0
- package/dist/hooks/useScrollPosition.js.map +1 -0
- package/dist/hooks/useSessionStorage.cjs +30 -0
- package/dist/hooks/useSessionStorage.cjs.map +1 -0
- package/dist/hooks/useSessionStorage.d.ts +8 -0
- package/dist/hooks/useSessionStorage.d.ts.map +1 -0
- package/dist/hooks/useSessionStorage.js +30 -0
- package/dist/hooks/useSessionStorage.js.map +1 -0
- package/dist/hooks/useSet.cjs +22 -0
- package/dist/hooks/useSet.cjs.map +1 -0
- package/dist/hooks/useSet.d.ts +17 -0
- package/dist/hooks/useSet.d.ts.map +1 -0
- package/dist/hooks/useSet.js +22 -0
- package/dist/hooks/useSet.js.map +1 -0
- package/dist/hooks/useThrottle.cjs +23 -0
- package/dist/hooks/useThrottle.cjs.map +1 -0
- package/dist/hooks/useThrottle.d.ts +8 -0
- package/dist/hooks/useThrottle.d.ts.map +1 -0
- package/dist/hooks/useThrottle.js +23 -0
- package/dist/hooks/useThrottle.js.map +1 -0
- package/dist/hooks/useTimeout.cjs +22 -0
- package/dist/hooks/useTimeout.cjs.map +1 -0
- package/dist/hooks/useTimeout.d.ts +12 -0
- package/dist/hooks/useTimeout.d.ts.map +1 -0
- package/dist/hooks/useTimeout.js +22 -0
- package/dist/hooks/useTimeout.js.map +1 -0
- package/dist/hooks/useToggle.cjs +10 -0
- package/dist/hooks/useToggle.cjs.map +1 -0
- package/dist/hooks/useToggle.d.ts +8 -0
- package/dist/hooks/useToggle.d.ts.map +1 -0
- package/dist/hooks/useToggle.js +10 -0
- package/dist/hooks/useToggle.js.map +1 -0
- package/dist/hooks/useWindowSize.cjs +17 -0
- package/dist/hooks/useWindowSize.cjs.map +1 -0
- package/dist/hooks/useWindowSize.d.ts +12 -0
- package/dist/hooks/useWindowSize.d.ts.map +1 -0
- package/dist/hooks/useWindowSize.js +17 -0
- package/dist/hooks/useWindowSize.js.map +1 -0
- package/dist/index.cjs +482 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.ts +28 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +482 -0
- package/dist/index.js.map +1 -0
- package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.cjs +729 -0
- package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.cjs.map +1 -0
- package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.js +729 -0
- package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.js.map +1 -0
- package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.cjs +630 -0
- package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.cjs.map +1 -0
- package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +630 -0
- package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.js.map +1 -0
- package/dist/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.cjs +341 -0
- package/dist/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.cjs.map +1 -0
- package/dist/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js +325 -0
- package/dist/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js.map +1 -0
- package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.cjs +152 -0
- package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.cjs.map +1 -0
- package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.cjs +177 -0
- package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.cjs.map +1 -0
- package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +177 -0
- package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js.map +1 -0
- package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +152 -0
- package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.js.map +1 -0
- package/dist/node_modules/@radix-ui/number/dist/index.cjs +7 -0
- package/dist/node_modules/@radix-ui/number/dist/index.cjs.map +1 -0
- package/dist/node_modules/@radix-ui/number/dist/index.js +7 -0
- package/dist/node_modules/@radix-ui/number/dist/index.js.map +1 -0
- package/dist/node_modules/@radix-ui/primitive/dist/index.cjs +12 -0
- package/dist/node_modules/@radix-ui/primitive/dist/index.cjs.map +1 -0
- package/dist/node_modules/@radix-ui/primitive/dist/index.js +12 -0
- package/dist/node_modules/@radix-ui/primitive/dist/index.js.map +1 -0
- package/dist/node_modules/@radix-ui/react-accordion/dist/index.cjs +319 -0
- package/dist/node_modules/@radix-ui/react-accordion/dist/index.cjs.map +1 -0
- package/dist/node_modules/@radix-ui/react-accordion/dist/index.js +319 -0
- package/dist/node_modules/@radix-ui/react-accordion/dist/index.js.map +1 -0
- package/dist/node_modules/@radix-ui/react-alert-dialog/dist/index.cjs +184 -0
- package/dist/node_modules/@radix-ui/react-alert-dialog/dist/index.cjs.map +1 -0
- package/dist/node_modules/@radix-ui/react-alert-dialog/dist/index.js +167 -0
- package/dist/node_modules/@radix-ui/react-alert-dialog/dist/index.js.map +1 -0
- package/dist/node_modules/@radix-ui/react-alert-dialog/node_modules/@radix-ui/react-slot/dist/index.cjs +16 -0
- package/dist/node_modules/@radix-ui/react-alert-dialog/node_modules/@radix-ui/react-slot/dist/index.cjs.map +1 -0
- package/dist/node_modules/@radix-ui/react-alert-dialog/node_modules/@radix-ui/react-slot/dist/index.js +16 -0
- package/dist/node_modules/@radix-ui/react-alert-dialog/node_modules/@radix-ui/react-slot/dist/index.js.map +1 -0
- package/dist/node_modules/@radix-ui/react-arrow/dist/index.cjs +43 -0
- package/dist/node_modules/@radix-ui/react-arrow/dist/index.cjs.map +1 -0
- package/dist/node_modules/@radix-ui/react-arrow/dist/index.js +26 -0
- package/dist/node_modules/@radix-ui/react-arrow/dist/index.js.map +1 -0
- package/dist/node_modules/@radix-ui/react-avatar/dist/index.cjs +141 -0
- package/dist/node_modules/@radix-ui/react-avatar/dist/index.cjs.map +1 -0
- package/dist/node_modules/@radix-ui/react-avatar/dist/index.js +124 -0
- package/dist/node_modules/@radix-ui/react-avatar/dist/index.js.map +1 -0
- package/dist/node_modules/@radix-ui/react-avatar/node_modules/@radix-ui/react-context/dist/index.cjs +83 -0
- package/dist/node_modules/@radix-ui/react-avatar/node_modules/@radix-ui/react-context/dist/index.cjs.map +1 -0
- package/dist/node_modules/@radix-ui/react-avatar/node_modules/@radix-ui/react-context/dist/index.js +66 -0
- package/dist/node_modules/@radix-ui/react-avatar/node_modules/@radix-ui/react-context/dist/index.js.map +1 -0
- package/dist/node_modules/@radix-ui/react-avatar/node_modules/@radix-ui/react-primitive/dist/index.cjs +57 -0
- package/dist/node_modules/@radix-ui/react-avatar/node_modules/@radix-ui/react-primitive/dist/index.cjs.map +1 -0
- package/dist/node_modules/@radix-ui/react-avatar/node_modules/@radix-ui/react-primitive/dist/index.js +40 -0
- package/dist/node_modules/@radix-ui/react-avatar/node_modules/@radix-ui/react-primitive/dist/index.js.map +1 -0
- package/dist/node_modules/@radix-ui/react-checkbox/dist/index.cjs +297 -0
- package/dist/node_modules/@radix-ui/react-checkbox/dist/index.cjs.map +1 -0
- package/dist/node_modules/@radix-ui/react-checkbox/dist/index.js +280 -0
- package/dist/node_modules/@radix-ui/react-checkbox/dist/index.js.map +1 -0
- package/dist/node_modules/@radix-ui/react-collapsible/dist/index.cjs +169 -0
- package/dist/node_modules/@radix-ui/react-collapsible/dist/index.cjs.map +1 -0
- package/dist/node_modules/@radix-ui/react-collapsible/dist/index.js +152 -0
- package/dist/node_modules/@radix-ui/react-collapsible/dist/index.js.map +1 -0
- package/dist/node_modules/@radix-ui/react-collection/dist/index.cjs +71 -0
- package/dist/node_modules/@radix-ui/react-collection/dist/index.cjs.map +1 -0
- package/dist/node_modules/@radix-ui/react-collection/dist/index.js +71 -0
- package/dist/node_modules/@radix-ui/react-collection/dist/index.js.map +1 -0
- package/dist/node_modules/@radix-ui/react-collection/node_modules/@radix-ui/react-slot/dist/index.cjs +107 -0
- package/dist/node_modules/@radix-ui/react-collection/node_modules/@radix-ui/react-slot/dist/index.cjs.map +1 -0
- package/dist/node_modules/@radix-ui/react-collection/node_modules/@radix-ui/react-slot/dist/index.js +90 -0
- package/dist/node_modules/@radix-ui/react-collection/node_modules/@radix-ui/react-slot/dist/index.js.map +1 -0
- package/dist/node_modules/@radix-ui/react-compose-refs/dist/index.cjs +57 -0
- package/dist/node_modules/@radix-ui/react-compose-refs/dist/index.cjs.map +1 -0
- package/dist/node_modules/@radix-ui/react-compose-refs/dist/index.js +40 -0
- package/dist/node_modules/@radix-ui/react-compose-refs/dist/index.js.map +1 -0
- package/dist/node_modules/@radix-ui/react-context/dist/index.cjs +99 -0
- package/dist/node_modules/@radix-ui/react-context/dist/index.cjs.map +1 -0
- package/dist/node_modules/@radix-ui/react-context/dist/index.js +82 -0
- package/dist/node_modules/@radix-ui/react-context/dist/index.js.map +1 -0
- package/dist/node_modules/@radix-ui/react-context-menu/dist/index.cjs +337 -0
- package/dist/node_modules/@radix-ui/react-context-menu/dist/index.cjs.map +1 -0
- package/dist/node_modules/@radix-ui/react-context-menu/dist/index.js +320 -0
- package/dist/node_modules/@radix-ui/react-context-menu/dist/index.js.map +1 -0
- package/dist/node_modules/@radix-ui/react-dialog/dist/index.cjs +360 -0
- package/dist/node_modules/@radix-ui/react-dialog/dist/index.cjs.map +1 -0
- package/dist/node_modules/@radix-ui/react-dialog/dist/index.js +343 -0
- package/dist/node_modules/@radix-ui/react-dialog/dist/index.js.map +1 -0
- package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-slot/dist/index.cjs +107 -0
- package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-slot/dist/index.cjs.map +1 -0
- package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-slot/dist/index.js +90 -0
- package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-slot/dist/index.js.map +1 -0
- package/dist/node_modules/@radix-ui/react-direction/dist/index.cjs +28 -0
- package/dist/node_modules/@radix-ui/react-direction/dist/index.cjs.map +1 -0
- package/dist/node_modules/@radix-ui/react-direction/dist/index.js +11 -0
- package/dist/node_modules/@radix-ui/react-direction/dist/index.js.map +1 -0
- package/dist/node_modules/@radix-ui/react-dismissable-layer/dist/index.cjs +234 -0
- package/dist/node_modules/@radix-ui/react-dismissable-layer/dist/index.cjs.map +1 -0
- package/dist/node_modules/@radix-ui/react-dismissable-layer/dist/index.js +217 -0
- package/dist/node_modules/@radix-ui/react-dismissable-layer/dist/index.js.map +1 -0
- package/dist/node_modules/@radix-ui/react-dropdown-menu/dist/index.cjs +316 -0
- package/dist/node_modules/@radix-ui/react-dropdown-menu/dist/index.cjs.map +1 -0
- package/dist/node_modules/@radix-ui/react-dropdown-menu/dist/index.js +299 -0
- package/dist/node_modules/@radix-ui/react-dropdown-menu/dist/index.js.map +1 -0
- package/dist/node_modules/@radix-ui/react-focus-guards/dist/index.cjs +47 -0
- package/dist/node_modules/@radix-ui/react-focus-guards/dist/index.cjs.map +1 -0
- package/dist/node_modules/@radix-ui/react-focus-guards/dist/index.js +30 -0
- package/dist/node_modules/@radix-ui/react-focus-guards/dist/index.js.map +1 -0
- package/dist/node_modules/@radix-ui/react-focus-scope/dist/index.cjs +226 -0
- package/dist/node_modules/@radix-ui/react-focus-scope/dist/index.cjs.map +1 -0
- package/dist/node_modules/@radix-ui/react-focus-scope/dist/index.js +209 -0
- package/dist/node_modules/@radix-ui/react-focus-scope/dist/index.js.map +1 -0
- package/dist/node_modules/@radix-ui/react-hover-card/dist/index.cjs +273 -0
- package/dist/node_modules/@radix-ui/react-hover-card/dist/index.cjs.map +1 -0
- package/dist/node_modules/@radix-ui/react-hover-card/dist/index.js +256 -0
- package/dist/node_modules/@radix-ui/react-hover-card/dist/index.js.map +1 -0
- package/dist/node_modules/@radix-ui/react-id/dist/index.cjs +32 -0
- package/dist/node_modules/@radix-ui/react-id/dist/index.cjs.map +1 -0
- package/dist/node_modules/@radix-ui/react-id/dist/index.js +15 -0
- package/dist/node_modules/@radix-ui/react-id/dist/index.js.map +1 -0
- package/dist/node_modules/@radix-ui/react-label/dist/index.cjs +44 -0
- package/dist/node_modules/@radix-ui/react-label/dist/index.cjs.map +1 -0
- package/dist/node_modules/@radix-ui/react-label/dist/index.js +27 -0
- package/dist/node_modules/@radix-ui/react-label/dist/index.js.map +1 -0
- package/dist/node_modules/@radix-ui/react-label/node_modules/@radix-ui/react-primitive/dist/index.cjs +57 -0
- package/dist/node_modules/@radix-ui/react-label/node_modules/@radix-ui/react-primitive/dist/index.cjs.map +1 -0
- package/dist/node_modules/@radix-ui/react-label/node_modules/@radix-ui/react-primitive/dist/index.js +40 -0
- package/dist/node_modules/@radix-ui/react-label/node_modules/@radix-ui/react-primitive/dist/index.js.map +1 -0
- package/dist/node_modules/@radix-ui/react-menu/dist/index.cjs +898 -0
- package/dist/node_modules/@radix-ui/react-menu/dist/index.cjs.map +1 -0
- package/dist/node_modules/@radix-ui/react-menu/dist/index.js +881 -0
- package/dist/node_modules/@radix-ui/react-menu/dist/index.js.map +1 -0
- package/dist/node_modules/@radix-ui/react-menu/node_modules/@radix-ui/react-slot/dist/index.cjs +107 -0
- package/dist/node_modules/@radix-ui/react-menu/node_modules/@radix-ui/react-slot/dist/index.cjs.map +1 -0
- package/dist/node_modules/@radix-ui/react-menu/node_modules/@radix-ui/react-slot/dist/index.js +90 -0
- package/dist/node_modules/@radix-ui/react-menu/node_modules/@radix-ui/react-slot/dist/index.js.map +1 -0
- package/dist/node_modules/@radix-ui/react-menubar/dist/index.cjs +484 -0
- package/dist/node_modules/@radix-ui/react-menubar/dist/index.cjs.map +1 -0
- package/dist/node_modules/@radix-ui/react-menubar/dist/index.js +467 -0
- package/dist/node_modules/@radix-ui/react-menubar/dist/index.js.map +1 -0
- package/dist/node_modules/@radix-ui/react-navigation-menu/dist/index.cjs +826 -0
- package/dist/node_modules/@radix-ui/react-navigation-menu/dist/index.cjs.map +1 -0
- package/dist/node_modules/@radix-ui/react-navigation-menu/dist/index.js +809 -0
- package/dist/node_modules/@radix-ui/react-navigation-menu/dist/index.js.map +1 -0
- package/dist/node_modules/@radix-ui/react-popover/dist/index.cjs +335 -0
- package/dist/node_modules/@radix-ui/react-popover/dist/index.cjs.map +1 -0
- package/dist/node_modules/@radix-ui/react-popover/dist/index.js +318 -0
- package/dist/node_modules/@radix-ui/react-popover/dist/index.js.map +1 -0
- package/dist/node_modules/@radix-ui/react-popover/node_modules/@radix-ui/react-slot/dist/index.cjs +107 -0
- package/dist/node_modules/@radix-ui/react-popover/node_modules/@radix-ui/react-slot/dist/index.cjs.map +1 -0
- package/dist/node_modules/@radix-ui/react-popover/node_modules/@radix-ui/react-slot/dist/index.js +90 -0
- package/dist/node_modules/@radix-ui/react-popover/node_modules/@radix-ui/react-slot/dist/index.js.map +1 -0
- package/dist/node_modules/@radix-ui/react-popper/dist/index.cjs +311 -0
- package/dist/node_modules/@radix-ui/react-popper/dist/index.cjs.map +1 -0
- package/dist/node_modules/@radix-ui/react-popper/dist/index.js +294 -0
- package/dist/node_modules/@radix-ui/react-popper/dist/index.js.map +1 -0
- package/dist/node_modules/@radix-ui/react-portal/dist/index.cjs +36 -0
- package/dist/node_modules/@radix-ui/react-portal/dist/index.cjs.map +1 -0
- package/dist/node_modules/@radix-ui/react-portal/dist/index.js +19 -0
- package/dist/node_modules/@radix-ui/react-portal/dist/index.js.map +1 -0
- package/dist/node_modules/@radix-ui/react-presence/dist/index.cjs +147 -0
- package/dist/node_modules/@radix-ui/react-presence/dist/index.cjs.map +1 -0
- package/dist/node_modules/@radix-ui/react-presence/dist/index.js +130 -0
- package/dist/node_modules/@radix-ui/react-presence/dist/index.js.map +1 -0
- package/dist/node_modules/@radix-ui/react-primitive/dist/index.cjs +62 -0
- package/dist/node_modules/@radix-ui/react-primitive/dist/index.cjs.map +1 -0
- package/dist/node_modules/@radix-ui/react-primitive/dist/index.js +44 -0
- package/dist/node_modules/@radix-ui/react-primitive/dist/index.js.map +1 -0
- package/dist/node_modules/@radix-ui/react-primitive/node_modules/@radix-ui/react-slot/dist/index.cjs +107 -0
- package/dist/node_modules/@radix-ui/react-primitive/node_modules/@radix-ui/react-slot/dist/index.cjs.map +1 -0
- package/dist/node_modules/@radix-ui/react-primitive/node_modules/@radix-ui/react-slot/dist/index.js +90 -0
- package/dist/node_modules/@radix-ui/react-primitive/node_modules/@radix-ui/react-slot/dist/index.js.map +1 -0
- package/dist/node_modules/@radix-ui/react-progress/dist/index.cjs +114 -0
- package/dist/node_modules/@radix-ui/react-progress/dist/index.cjs.map +1 -0
- package/dist/node_modules/@radix-ui/react-progress/dist/index.js +97 -0
- package/dist/node_modules/@radix-ui/react-progress/dist/index.js.map +1 -0
- package/dist/node_modules/@radix-ui/react-progress/node_modules/@radix-ui/react-context/dist/index.cjs +83 -0
- package/dist/node_modules/@radix-ui/react-progress/node_modules/@radix-ui/react-context/dist/index.cjs.map +1 -0
- package/dist/node_modules/@radix-ui/react-progress/node_modules/@radix-ui/react-context/dist/index.js +66 -0
- package/dist/node_modules/@radix-ui/react-progress/node_modules/@radix-ui/react-context/dist/index.js.map +1 -0
- package/dist/node_modules/@radix-ui/react-progress/node_modules/@radix-ui/react-primitive/dist/index.cjs +57 -0
- package/dist/node_modules/@radix-ui/react-progress/node_modules/@radix-ui/react-primitive/dist/index.cjs.map +1 -0
- package/dist/node_modules/@radix-ui/react-progress/node_modules/@radix-ui/react-primitive/dist/index.js +40 -0
- package/dist/node_modules/@radix-ui/react-progress/node_modules/@radix-ui/react-primitive/dist/index.js.map +1 -0
- package/dist/node_modules/@radix-ui/react-radio-group/dist/index.cjs +306 -0
- package/dist/node_modules/@radix-ui/react-radio-group/dist/index.cjs.map +1 -0
- package/dist/node_modules/@radix-ui/react-radio-group/dist/index.js +289 -0
- package/dist/node_modules/@radix-ui/react-radio-group/dist/index.js.map +1 -0
- package/dist/node_modules/@radix-ui/react-roving-focus/dist/index.cjs +245 -0
- package/dist/node_modules/@radix-ui/react-roving-focus/dist/index.cjs.map +1 -0
- package/dist/node_modules/@radix-ui/react-roving-focus/dist/index.js +228 -0
- package/dist/node_modules/@radix-ui/react-roving-focus/dist/index.js.map +1 -0
- package/dist/node_modules/@radix-ui/react-scroll-area/dist/index.cjs +749 -0
- package/dist/node_modules/@radix-ui/react-scroll-area/dist/index.cjs.map +1 -0
- package/dist/node_modules/@radix-ui/react-scroll-area/dist/index.js +732 -0
- package/dist/node_modules/@radix-ui/react-scroll-area/dist/index.js.map +1 -0
- package/dist/node_modules/@radix-ui/react-select/dist/index.cjs +1214 -0
- package/dist/node_modules/@radix-ui/react-select/dist/index.cjs.map +1 -0
- package/dist/node_modules/@radix-ui/react-select/dist/index.js +1196 -0
- package/dist/node_modules/@radix-ui/react-select/dist/index.js.map +1 -0
- package/dist/node_modules/@radix-ui/react-select/node_modules/@radix-ui/react-slot/dist/index.cjs +107 -0
- package/dist/node_modules/@radix-ui/react-select/node_modules/@radix-ui/react-slot/dist/index.cjs.map +1 -0
- package/dist/node_modules/@radix-ui/react-select/node_modules/@radix-ui/react-slot/dist/index.js +90 -0
- package/dist/node_modules/@radix-ui/react-select/node_modules/@radix-ui/react-slot/dist/index.js.map +1 -0
- package/dist/node_modules/@radix-ui/react-separator/dist/index.cjs +48 -0
- package/dist/node_modules/@radix-ui/react-separator/dist/index.cjs.map +1 -0
- package/dist/node_modules/@radix-ui/react-separator/dist/index.js +31 -0
- package/dist/node_modules/@radix-ui/react-separator/dist/index.js.map +1 -0
- package/dist/node_modules/@radix-ui/react-separator/node_modules/@radix-ui/react-primitive/dist/index.cjs +57 -0
- package/dist/node_modules/@radix-ui/react-separator/node_modules/@radix-ui/react-primitive/dist/index.cjs.map +1 -0
- package/dist/node_modules/@radix-ui/react-separator/node_modules/@radix-ui/react-primitive/dist/index.js +40 -0
- package/dist/node_modules/@radix-ui/react-separator/node_modules/@radix-ui/react-primitive/dist/index.js.map +1 -0
- package/dist/node_modules/@radix-ui/react-slider/dist/index.cjs +580 -0
- package/dist/node_modules/@radix-ui/react-slider/dist/index.cjs.map +1 -0
- package/dist/node_modules/@radix-ui/react-slider/dist/index.js +563 -0
- package/dist/node_modules/@radix-ui/react-slider/dist/index.js.map +1 -0
- package/dist/node_modules/@radix-ui/react-slot/dist/index.cjs +124 -0
- package/dist/node_modules/@radix-ui/react-slot/dist/index.cjs.map +1 -0
- package/dist/node_modules/@radix-ui/react-slot/dist/index.js +107 -0
- package/dist/node_modules/@radix-ui/react-slot/dist/index.js.map +1 -0
- package/dist/node_modules/@radix-ui/react-switch/dist/index.cjs +173 -0
- package/dist/node_modules/@radix-ui/react-switch/dist/index.cjs.map +1 -0
- package/dist/node_modules/@radix-ui/react-switch/dist/index.js +156 -0
- package/dist/node_modules/@radix-ui/react-switch/dist/index.js.map +1 -0
- package/dist/node_modules/@radix-ui/react-tabs/dist/index.cjs +212 -0
- package/dist/node_modules/@radix-ui/react-tabs/dist/index.cjs.map +1 -0
- package/dist/node_modules/@radix-ui/react-tabs/dist/index.js +195 -0
- package/dist/node_modules/@radix-ui/react-tabs/dist/index.js.map +1 -0
- package/dist/node_modules/@radix-ui/react-toast/dist/index.cjs +663 -0
- package/dist/node_modules/@radix-ui/react-toast/dist/index.cjs.map +1 -0
- package/dist/node_modules/@radix-ui/react-toast/dist/index.js +645 -0
- package/dist/node_modules/@radix-ui/react-toast/dist/index.js.map +1 -0
- package/dist/node_modules/@radix-ui/react-toggle/dist/index.cjs +53 -0
- package/dist/node_modules/@radix-ui/react-toggle/dist/index.cjs.map +1 -0
- package/dist/node_modules/@radix-ui/react-toggle/dist/index.js +36 -0
- package/dist/node_modules/@radix-ui/react-toggle/dist/index.js.map +1 -0
- package/dist/node_modules/@radix-ui/react-toggle-group/dist/index.cjs +172 -0
- package/dist/node_modules/@radix-ui/react-toggle-group/dist/index.cjs.map +1 -0
- package/dist/node_modules/@radix-ui/react-toggle-group/dist/index.js +172 -0
- package/dist/node_modules/@radix-ui/react-toggle-group/dist/index.js.map +1 -0
- package/dist/node_modules/@radix-ui/react-tooltip/dist/index.cjs +520 -0
- package/dist/node_modules/@radix-ui/react-tooltip/dist/index.cjs.map +1 -0
- package/dist/node_modules/@radix-ui/react-tooltip/dist/index.js +503 -0
- package/dist/node_modules/@radix-ui/react-tooltip/dist/index.js.map +1 -0
- package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-slot/dist/index.cjs +16 -0
- package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-slot/dist/index.cjs.map +1 -0
- package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-slot/dist/index.js +16 -0
- package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-slot/dist/index.js.map +1 -0
- package/dist/node_modules/@radix-ui/react-use-callback-ref/dist/index.cjs +32 -0
- package/dist/node_modules/@radix-ui/react-use-callback-ref/dist/index.cjs.map +1 -0
- package/dist/node_modules/@radix-ui/react-use-callback-ref/dist/index.js +15 -0
- package/dist/node_modules/@radix-ui/react-use-callback-ref/dist/index.js.map +1 -0
- package/dist/node_modules/@radix-ui/react-use-controllable-state/dist/index.cjs +89 -0
- package/dist/node_modules/@radix-ui/react-use-controllable-state/dist/index.cjs.map +1 -0
- package/dist/node_modules/@radix-ui/react-use-controllable-state/dist/index.js +72 -0
- package/dist/node_modules/@radix-ui/react-use-controllable-state/dist/index.js.map +1 -0
- package/dist/node_modules/@radix-ui/react-use-escape-keydown/dist/index.cjs +35 -0
- package/dist/node_modules/@radix-ui/react-use-escape-keydown/dist/index.cjs.map +1 -0
- package/dist/node_modules/@radix-ui/react-use-escape-keydown/dist/index.js +18 -0
- package/dist/node_modules/@radix-ui/react-use-escape-keydown/dist/index.js.map +1 -0
- package/dist/node_modules/@radix-ui/react-use-is-hydrated/dist/index.cjs +16 -0
- package/dist/node_modules/@radix-ui/react-use-is-hydrated/dist/index.cjs.map +1 -0
- package/dist/node_modules/@radix-ui/react-use-is-hydrated/dist/index.js +16 -0
- package/dist/node_modules/@radix-ui/react-use-is-hydrated/dist/index.js.map +1 -0
- package/dist/node_modules/@radix-ui/react-use-layout-effect/dist/index.cjs +24 -0
- package/dist/node_modules/@radix-ui/react-use-layout-effect/dist/index.cjs.map +1 -0
- package/dist/node_modules/@radix-ui/react-use-layout-effect/dist/index.js +7 -0
- package/dist/node_modules/@radix-ui/react-use-layout-effect/dist/index.js.map +1 -0
- package/dist/node_modules/@radix-ui/react-use-previous/dist/index.cjs +32 -0
- package/dist/node_modules/@radix-ui/react-use-previous/dist/index.cjs.map +1 -0
- package/dist/node_modules/@radix-ui/react-use-previous/dist/index.js +15 -0
- package/dist/node_modules/@radix-ui/react-use-previous/dist/index.js.map +1 -0
- package/dist/node_modules/@radix-ui/react-use-size/dist/index.cjs +57 -0
- package/dist/node_modules/@radix-ui/react-use-size/dist/index.cjs.map +1 -0
- package/dist/node_modules/@radix-ui/react-use-size/dist/index.js +40 -0
- package/dist/node_modules/@radix-ui/react-use-size/dist/index.js.map +1 -0
- package/dist/node_modules/@radix-ui/react-visually-hidden/dist/index.cjs +54 -0
- package/dist/node_modules/@radix-ui/react-visually-hidden/dist/index.cjs.map +1 -0
- package/dist/node_modules/@radix-ui/react-visually-hidden/dist/index.js +37 -0
- package/dist/node_modules/@radix-ui/react-visually-hidden/dist/index.js.map +1 -0
- package/dist/node_modules/aria-hidden/dist/es2015/index.cjs +123 -0
- package/dist/node_modules/aria-hidden/dist/es2015/index.cjs.map +1 -0
- package/dist/node_modules/aria-hidden/dist/es2015/index.js +123 -0
- package/dist/node_modules/aria-hidden/dist/es2015/index.js.map +1 -0
- package/dist/node_modules/class-variance-authority/dist/index.cjs +46 -0
- package/dist/node_modules/class-variance-authority/dist/index.cjs.map +1 -0
- package/dist/node_modules/class-variance-authority/dist/index.js +46 -0
- package/dist/node_modules/class-variance-authority/dist/index.js.map +1 -0
- package/dist/node_modules/clsx/dist/clsx.cjs +17 -0
- package/dist/node_modules/clsx/dist/clsx.cjs.map +1 -0
- package/dist/node_modules/clsx/dist/clsx.js +17 -0
- package/dist/node_modules/clsx/dist/clsx.js.map +1 -0
- package/dist/node_modules/cmdk/dist/chunk-NZJY6EH4.cjs +19 -0
- package/dist/node_modules/cmdk/dist/chunk-NZJY6EH4.cjs.map +1 -0
- package/dist/node_modules/cmdk/dist/chunk-NZJY6EH4.js +19 -0
- package/dist/node_modules/cmdk/dist/chunk-NZJY6EH4.js.map +1 -0
- package/dist/node_modules/cmdk/dist/index.cjs +330 -0
- package/dist/node_modules/cmdk/dist/index.cjs.map +1 -0
- package/dist/node_modules/cmdk/dist/index.js +313 -0
- package/dist/node_modules/cmdk/dist/index.js.map +1 -0
- package/dist/node_modules/cmdk/node_modules/@radix-ui/react-primitive/dist/index.cjs +57 -0
- package/dist/node_modules/cmdk/node_modules/@radix-ui/react-primitive/dist/index.cjs.map +1 -0
- package/dist/node_modules/cmdk/node_modules/@radix-ui/react-primitive/dist/index.js +40 -0
- package/dist/node_modules/cmdk/node_modules/@radix-ui/react-primitive/dist/index.js.map +1 -0
- package/dist/node_modules/get-nonce/dist/es2015/index.cjs +10 -0
- package/dist/node_modules/get-nonce/dist/es2015/index.cjs.map +1 -0
- package/dist/node_modules/get-nonce/dist/es2015/index.js +10 -0
- package/dist/node_modules/get-nonce/dist/es2015/index.js.map +1 -0
- package/dist/node_modules/lucide-react/dist/esm/Icon.cjs +42 -0
- package/dist/node_modules/lucide-react/dist/esm/Icon.cjs.map +1 -0
- package/dist/node_modules/lucide-react/dist/esm/Icon.js +43 -0
- package/dist/node_modules/lucide-react/dist/esm/Icon.js.map +1 -0
- package/dist/node_modules/lucide-react/dist/esm/createLucideIcon.cjs +24 -0
- package/dist/node_modules/lucide-react/dist/esm/createLucideIcon.cjs.map +1 -0
- package/dist/node_modules/lucide-react/dist/esm/createLucideIcon.js +25 -0
- package/dist/node_modules/lucide-react/dist/esm/createLucideIcon.js.map +1 -0
- package/dist/node_modules/lucide-react/dist/esm/defaultAttributes.cjs +20 -0
- package/dist/node_modules/lucide-react/dist/esm/defaultAttributes.cjs.map +1 -0
- package/dist/node_modules/lucide-react/dist/esm/defaultAttributes.js +21 -0
- package/dist/node_modules/lucide-react/dist/esm/defaultAttributes.js.map +1 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/arrow-right.cjs +14 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/arrow-right.cjs.map +1 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/arrow-right.js +15 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/arrow-right.js.map +1 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/calendar.cjs +16 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/calendar.cjs.map +1 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/calendar.js +17 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/calendar.js.map +1 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/check.cjs +11 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/check.cjs.map +1 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/check.js +12 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/check.js.map +1 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/chevron-down.cjs +13 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/chevron-down.cjs.map +1 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/chevron-down.js +14 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/chevron-down.js.map +1 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/chevron-left.cjs +13 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/chevron-left.cjs.map +1 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/chevron-left.js +14 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/chevron-left.js.map +1 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/chevron-right.cjs +13 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/chevron-right.cjs.map +1 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/chevron-right.js +14 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/chevron-right.js.map +1 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/circle-alert.cjs +15 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/circle-alert.cjs.map +1 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/circle-alert.js +16 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/circle-alert.js.map +1 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/circle-check.cjs +14 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/circle-check.cjs.map +1 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/circle-check.js +15 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/circle-check.js.map +1 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/circle.cjs +13 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/circle.cjs.map +1 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/circle.js +14 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/circle.js.map +1 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/ellipsis.cjs +15 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/ellipsis.cjs.map +1 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/ellipsis.js +16 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/ellipsis.js.map +1 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/info.cjs +15 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/info.cjs.map +1 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/info.js +16 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/info.js.map +1 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/menu.cjs +15 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/menu.cjs.map +1 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/menu.js +16 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/menu.js.map +1 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/minus.cjs +11 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/minus.cjs.map +1 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/minus.js +12 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/minus.js.map +1 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/panel-left-close.cjs +15 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/panel-left-close.cjs.map +1 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/panel-left-close.js +16 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/panel-left-close.js.map +1 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/panel-left-open.cjs +15 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/panel-left-open.cjs.map +1 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/panel-left-open.js +16 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/panel-left-open.js.map +1 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/search.cjs +14 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/search.cjs.map +1 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/search.js +15 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/search.js.map +1 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/star.cjs +19 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/star.cjs.map +1 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/star.js +20 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/star.js.map +1 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/trending-down.cjs +14 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/trending-down.cjs.map +1 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/trending-down.js +15 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/trending-down.js.map +1 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/trending-up.cjs +14 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/trending-up.cjs.map +1 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/trending-up.js +15 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/trending-up.js.map +1 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/triangle-alert.cjs +21 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/triangle-alert.cjs.map +1 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/triangle-alert.js +22 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/triangle-alert.js.map +1 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/user.cjs +14 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/user.cjs.map +1 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/user.js +15 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/user.js.map +1 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/x.cjs +14 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/x.cjs.map +1 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/x.js +15 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/x.js.map +1 -0
- package/dist/node_modules/lucide-react/dist/esm/shared/src/utils.cjs +15 -0
- package/dist/node_modules/lucide-react/dist/esm/shared/src/utils.cjs.map +1 -0
- package/dist/node_modules/lucide-react/dist/esm/shared/src/utils.js +15 -0
- package/dist/node_modules/lucide-react/dist/esm/shared/src/utils.js.map +1 -0
- package/dist/node_modules/react-hook-form/dist/index.esm.cjs +2135 -0
- package/dist/node_modules/react-hook-form/dist/index.esm.cjs.map +1 -0
- package/dist/node_modules/react-hook-form/dist/index.esm.js +2135 -0
- package/dist/node_modules/react-hook-form/dist/index.esm.js.map +1 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/Combination.cjs +28 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/Combination.cjs.map +1 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/Combination.js +12 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/Combination.js.map +1 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/SideEffect.cjs +198 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/SideEffect.cjs.map +1 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/SideEffect.js +181 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/SideEffect.js.map +1 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/UI.cjs +56 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/UI.cjs.map +1 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/UI.js +39 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/UI.js.map +1 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.cjs +20 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.cjs.map +1 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js +20 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js.map +1 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/handleScroll.cjs +103 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/handleScroll.cjs.map +1 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/handleScroll.js +103 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/handleScroll.js.map +1 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/medium.cjs +6 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/medium.cjs.map +1 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/medium.js +6 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/medium.js.map +1 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/sidecar.cjs +7 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/sidecar.cjs.map +1 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/sidecar.js +8 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/sidecar.js.map +1 -0
- package/dist/node_modules/react-remove-scroll-bar/dist/es2015/component.cjs +65 -0
- package/dist/node_modules/react-remove-scroll-bar/dist/es2015/component.cjs.map +1 -0
- package/dist/node_modules/react-remove-scroll-bar/dist/es2015/component.js +48 -0
- package/dist/node_modules/react-remove-scroll-bar/dist/es2015/component.js.map +1 -0
- package/dist/node_modules/react-remove-scroll-bar/dist/es2015/constants.cjs +11 -0
- package/dist/node_modules/react-remove-scroll-bar/dist/es2015/constants.cjs.map +1 -0
- package/dist/node_modules/react-remove-scroll-bar/dist/es2015/constants.js +11 -0
- package/dist/node_modules/react-remove-scroll-bar/dist/es2015/constants.js.map +1 -0
- package/dist/node_modules/react-remove-scroll-bar/dist/es2015/utils.cjs +38 -0
- package/dist/node_modules/react-remove-scroll-bar/dist/es2015/utils.cjs.map +1 -0
- package/dist/node_modules/react-remove-scroll-bar/dist/es2015/utils.js +38 -0
- package/dist/node_modules/react-remove-scroll-bar/dist/es2015/utils.js.map +1 -0
- package/dist/node_modules/react-style-singleton/dist/es2015/component.cjs +14 -0
- package/dist/node_modules/react-style-singleton/dist/es2015/component.cjs.map +1 -0
- package/dist/node_modules/react-style-singleton/dist/es2015/component.js +14 -0
- package/dist/node_modules/react-style-singleton/dist/es2015/component.js.map +1 -0
- package/dist/node_modules/react-style-singleton/dist/es2015/hook.cjs +34 -0
- package/dist/node_modules/react-style-singleton/dist/es2015/hook.cjs.map +1 -0
- package/dist/node_modules/react-style-singleton/dist/es2015/hook.js +17 -0
- package/dist/node_modules/react-style-singleton/dist/es2015/hook.js.map +1 -0
- package/dist/node_modules/react-style-singleton/dist/es2015/singleton.cjs +49 -0
- package/dist/node_modules/react-style-singleton/dist/es2015/singleton.cjs.map +1 -0
- package/dist/node_modules/react-style-singleton/dist/es2015/singleton.js +49 -0
- package/dist/node_modules/react-style-singleton/dist/es2015/singleton.js.map +1 -0
- package/dist/node_modules/tailwind-merge/dist/bundle-mjs.cjs +2467 -0
- package/dist/node_modules/tailwind-merge/dist/bundle-mjs.cjs.map +1 -0
- package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js +2467 -0
- package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js.map +1 -0
- package/dist/node_modules/tslib/tslib.es6.cjs +39 -0
- package/dist/node_modules/tslib/tslib.es6.cjs.map +1 -0
- package/dist/node_modules/tslib/tslib.es6.js +40 -0
- package/dist/node_modules/tslib/tslib.es6.js.map +1 -0
- package/dist/node_modules/use-callback-ref/dist/es2015/assignRef.cjs +12 -0
- package/dist/node_modules/use-callback-ref/dist/es2015/assignRef.cjs.map +1 -0
- package/dist/node_modules/use-callback-ref/dist/es2015/assignRef.js +12 -0
- package/dist/node_modules/use-callback-ref/dist/es2015/assignRef.js.map +1 -0
- package/dist/node_modules/use-callback-ref/dist/es2015/useMergeRef.cjs +53 -0
- package/dist/node_modules/use-callback-ref/dist/es2015/useMergeRef.cjs.map +1 -0
- package/dist/node_modules/use-callback-ref/dist/es2015/useMergeRef.js +36 -0
- package/dist/node_modules/use-callback-ref/dist/es2015/useMergeRef.js.map +1 -0
- package/dist/node_modules/use-callback-ref/dist/es2015/useRef.cjs +30 -0
- package/dist/node_modules/use-callback-ref/dist/es2015/useRef.cjs.map +1 -0
- package/dist/node_modules/use-callback-ref/dist/es2015/useRef.js +30 -0
- package/dist/node_modules/use-callback-ref/dist/es2015/useRef.js.map +1 -0
- package/dist/node_modules/use-sidecar/dist/es2015/exports.cjs +39 -0
- package/dist/node_modules/use-sidecar/dist/es2015/exports.cjs.map +1 -0
- package/dist/node_modules/use-sidecar/dist/es2015/exports.js +22 -0
- package/dist/node_modules/use-sidecar/dist/es2015/exports.js.map +1 -0
- package/dist/node_modules/use-sidecar/dist/es2015/medium.cjs +89 -0
- package/dist/node_modules/use-sidecar/dist/es2015/medium.cjs.map +1 -0
- package/dist/node_modules/use-sidecar/dist/es2015/medium.js +89 -0
- package/dist/node_modules/use-sidecar/dist/es2015/medium.js.map +1 -0
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.cjs +78 -0
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.cjs.map +1 -0
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.js +78 -0
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.js.map +1 -0
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.cjs +63 -0
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.cjs.map +1 -0
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.js +63 -0
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.js.map +1 -0
- package/dist/node_modules/use-sync-external-store/shim/index.cjs +18 -0
- package/dist/node_modules/use-sync-external-store/shim/index.cjs.map +1 -0
- package/dist/node_modules/use-sync-external-store/shim/index.js +18 -0
- package/dist/node_modules/use-sync-external-store/shim/index.js.map +1 -0
- package/dist/provider/RothzergProvider.cjs +89 -0
- package/dist/provider/RothzergProvider.cjs.map +1 -0
- package/dist/provider/RothzergProvider.d.ts +34 -0
- package/dist/provider/RothzergProvider.d.ts.map +1 -0
- package/dist/provider/RothzergProvider.js +89 -0
- package/dist/provider/RothzergProvider.js.map +1 -0
- package/dist/provider/index.d.ts +3 -0
- package/dist/provider/index.d.ts.map +1 -0
- package/dist/styles.css +12211 -0
- package/dist/test/globals.d.ts +2 -0
- package/dist/test/globals.d.ts.map +1 -0
- package/dist/test/happy-dom.d.ts +2 -0
- package/dist/test/happy-dom.d.ts.map +1 -0
- package/dist/test/setup.d.ts +1 -0
- package/dist/test/setup.d.ts.map +1 -0
- package/dist/utils/array.cjs +22 -0
- package/dist/utils/array.cjs.map +1 -0
- package/dist/utils/array.d.ts +17 -0
- package/dist/utils/array.d.ts.map +1 -0
- package/dist/utils/array.js +22 -0
- package/dist/utils/array.js.map +1 -0
- package/dist/utils/browser.cjs +34 -0
- package/dist/utils/browser.cjs.map +1 -0
- package/dist/utils/browser.d.ts +32 -0
- package/dist/utils/browser.d.ts.map +1 -0
- package/dist/utils/browser.js +34 -0
- package/dist/utils/browser.js.map +1 -0
- package/dist/utils/cn.cjs +9 -0
- package/dist/utils/cn.cjs.map +1 -0
- package/dist/utils/cn.d.ts +11 -0
- package/dist/utils/cn.d.ts.map +1 -0
- package/dist/utils/cn.js +9 -0
- package/dist/utils/cn.js.map +1 -0
- package/dist/utils/formatBytes.cjs +12 -0
- package/dist/utils/formatBytes.cjs.map +1 -0
- package/dist/utils/formatBytes.d.ts +11 -0
- package/dist/utils/formatBytes.d.ts.map +1 -0
- package/dist/utils/formatBytes.js +12 -0
- package/dist/utils/formatBytes.js.map +1 -0
- package/dist/utils/formatDate.cjs +15 -0
- package/dist/utils/formatDate.cjs.map +1 -0
- package/dist/utils/formatDate.d.ts +15 -0
- package/dist/utils/formatDate.d.ts.map +1 -0
- package/dist/utils/formatDate.js +15 -0
- package/dist/utils/formatDate.js.map +1 -0
- package/dist/utils/formatDuration.cjs +13 -0
- package/dist/utils/formatDuration.cjs.map +1 -0
- package/dist/utils/formatDuration.d.ts +10 -0
- package/dist/utils/formatDuration.d.ts.map +1 -0
- package/dist/utils/formatDuration.js +13 -0
- package/dist/utils/formatDuration.js.map +1 -0
- package/dist/utils/formatNumber.cjs +30 -0
- package/dist/utils/formatNumber.cjs.map +1 -0
- package/dist/utils/formatNumber.d.ts +17 -0
- package/dist/utils/formatNumber.d.ts.map +1 -0
- package/dist/utils/formatNumber.js +30 -0
- package/dist/utils/formatNumber.js.map +1 -0
- package/dist/utils/formatRelativeTime.cjs +25 -0
- package/dist/utils/formatRelativeTime.cjs.map +1 -0
- package/dist/utils/formatRelativeTime.d.ts +10 -0
- package/dist/utils/formatRelativeTime.d.ts.map +1 -0
- package/dist/utils/formatRelativeTime.js +25 -0
- package/dist/utils/formatRelativeTime.js.map +1 -0
- package/dist/utils/function.cjs +22 -0
- package/dist/utils/function.cjs.map +1 -0
- package/dist/utils/function.d.ts +16 -0
- package/dist/utils/function.d.ts.map +1 -0
- package/dist/utils/function.js +22 -0
- package/dist/utils/function.js.map +1 -0
- package/dist/utils/index.d.ts +15 -0
- package/dist/utils/index.d.ts.map +1 -0
- package/dist/utils/number.cjs +21 -0
- package/dist/utils/number.cjs.map +1 -0
- package/dist/utils/number.d.ts +26 -0
- package/dist/utils/number.d.ts.map +1 -0
- package/dist/utils/number.js +21 -0
- package/dist/utils/number.js.map +1 -0
- package/dist/utils/object.cjs +31 -0
- package/dist/utils/object.cjs.map +1 -0
- package/dist/utils/object.d.ts +23 -0
- package/dist/utils/object.d.ts.map +1 -0
- package/dist/utils/object.js +31 -0
- package/dist/utils/object.js.map +1 -0
- package/dist/utils/string.cjs +28 -0
- package/dist/utils/string.cjs.map +1 -0
- package/dist/utils/string.d.ts +41 -0
- package/dist/utils/string.d.ts.map +1 -0
- package/dist/utils/string.js +28 -0
- package/dist/utils/string.js.map +1 -0
- package/package.json +126 -0
- package/rothzerg.config.example.js +161 -0
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const React = require("react");
|
|
4
|
+
const index$4 = require("../../primitive/dist/index.cjs");
|
|
5
|
+
const index$7 = require("../../react-context/dist/index.cjs");
|
|
6
|
+
const index$1 = require("../../react-use-controllable-state/dist/index.cjs");
|
|
7
|
+
const index$6 = require("../../react-use-layout-effect/dist/index.cjs");
|
|
8
|
+
const index$5 = require("../../react-compose-refs/dist/index.cjs");
|
|
9
|
+
const index$2 = require("../../react-primitive/dist/index.cjs");
|
|
10
|
+
const index = require("../../react-presence/dist/index.cjs");
|
|
11
|
+
const index$3 = require("../../react-id/dist/index.cjs");
|
|
12
|
+
const jsxRuntime = require("react/jsx-runtime");
|
|
13
|
+
function _interopNamespaceDefault(e) {
|
|
14
|
+
const n = Object.create(null, { [Symbol.toStringTag]: { value: "Module" } });
|
|
15
|
+
if (e) {
|
|
16
|
+
for (const k in e) {
|
|
17
|
+
if (k !== "default") {
|
|
18
|
+
const d = Object.getOwnPropertyDescriptor(e, k);
|
|
19
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
20
|
+
enumerable: true,
|
|
21
|
+
get: () => e[k]
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
n.default = e;
|
|
27
|
+
return Object.freeze(n);
|
|
28
|
+
}
|
|
29
|
+
const React__namespace = /* @__PURE__ */ _interopNamespaceDefault(React);
|
|
30
|
+
var COLLAPSIBLE_NAME = "Collapsible";
|
|
31
|
+
var [createCollapsibleContext, createCollapsibleScope] = index$7.createContextScope(COLLAPSIBLE_NAME);
|
|
32
|
+
var [CollapsibleProvider, useCollapsibleContext] = createCollapsibleContext(COLLAPSIBLE_NAME);
|
|
33
|
+
var Collapsible = React__namespace.forwardRef(
|
|
34
|
+
(props, forwardedRef) => {
|
|
35
|
+
const {
|
|
36
|
+
__scopeCollapsible,
|
|
37
|
+
open: openProp,
|
|
38
|
+
defaultOpen,
|
|
39
|
+
disabled,
|
|
40
|
+
onOpenChange,
|
|
41
|
+
...collapsibleProps
|
|
42
|
+
} = props;
|
|
43
|
+
const [open, setOpen] = index$1.useControllableState({
|
|
44
|
+
prop: openProp,
|
|
45
|
+
defaultProp: defaultOpen ?? false,
|
|
46
|
+
onChange: onOpenChange,
|
|
47
|
+
caller: COLLAPSIBLE_NAME
|
|
48
|
+
});
|
|
49
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
50
|
+
CollapsibleProvider,
|
|
51
|
+
{
|
|
52
|
+
scope: __scopeCollapsible,
|
|
53
|
+
disabled,
|
|
54
|
+
contentId: index$3.useId(),
|
|
55
|
+
open,
|
|
56
|
+
onOpenToggle: React__namespace.useCallback(() => setOpen((prevOpen) => !prevOpen), [setOpen]),
|
|
57
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
58
|
+
index$2.Primitive.div,
|
|
59
|
+
{
|
|
60
|
+
"data-state": getState(open),
|
|
61
|
+
"data-disabled": disabled ? "" : void 0,
|
|
62
|
+
...collapsibleProps,
|
|
63
|
+
ref: forwardedRef
|
|
64
|
+
}
|
|
65
|
+
)
|
|
66
|
+
}
|
|
67
|
+
);
|
|
68
|
+
}
|
|
69
|
+
);
|
|
70
|
+
Collapsible.displayName = COLLAPSIBLE_NAME;
|
|
71
|
+
var TRIGGER_NAME = "CollapsibleTrigger";
|
|
72
|
+
var CollapsibleTrigger = React__namespace.forwardRef(
|
|
73
|
+
(props, forwardedRef) => {
|
|
74
|
+
const { __scopeCollapsible, ...triggerProps } = props;
|
|
75
|
+
const context = useCollapsibleContext(TRIGGER_NAME, __scopeCollapsible);
|
|
76
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
77
|
+
index$2.Primitive.button,
|
|
78
|
+
{
|
|
79
|
+
type: "button",
|
|
80
|
+
"aria-controls": context.contentId,
|
|
81
|
+
"aria-expanded": context.open || false,
|
|
82
|
+
"data-state": getState(context.open),
|
|
83
|
+
"data-disabled": context.disabled ? "" : void 0,
|
|
84
|
+
disabled: context.disabled,
|
|
85
|
+
...triggerProps,
|
|
86
|
+
ref: forwardedRef,
|
|
87
|
+
onClick: index$4.composeEventHandlers(props.onClick, context.onOpenToggle)
|
|
88
|
+
}
|
|
89
|
+
);
|
|
90
|
+
}
|
|
91
|
+
);
|
|
92
|
+
CollapsibleTrigger.displayName = TRIGGER_NAME;
|
|
93
|
+
var CONTENT_NAME = "CollapsibleContent";
|
|
94
|
+
var CollapsibleContent = React__namespace.forwardRef(
|
|
95
|
+
(props, forwardedRef) => {
|
|
96
|
+
const { forceMount, ...contentProps } = props;
|
|
97
|
+
const context = useCollapsibleContext(CONTENT_NAME, props.__scopeCollapsible);
|
|
98
|
+
return /* @__PURE__ */ jsxRuntime.jsx(index.Presence, { present: forceMount || context.open, children: ({ present }) => /* @__PURE__ */ jsxRuntime.jsx(CollapsibleContentImpl, { ...contentProps, ref: forwardedRef, present }) });
|
|
99
|
+
}
|
|
100
|
+
);
|
|
101
|
+
CollapsibleContent.displayName = CONTENT_NAME;
|
|
102
|
+
var CollapsibleContentImpl = React__namespace.forwardRef((props, forwardedRef) => {
|
|
103
|
+
const { __scopeCollapsible, present, children, ...contentProps } = props;
|
|
104
|
+
const context = useCollapsibleContext(CONTENT_NAME, __scopeCollapsible);
|
|
105
|
+
const [isPresent, setIsPresent] = React__namespace.useState(present);
|
|
106
|
+
const ref = React__namespace.useRef(null);
|
|
107
|
+
const composedRefs = index$5.useComposedRefs(forwardedRef, ref);
|
|
108
|
+
const heightRef = React__namespace.useRef(0);
|
|
109
|
+
const height = heightRef.current;
|
|
110
|
+
const widthRef = React__namespace.useRef(0);
|
|
111
|
+
const width = widthRef.current;
|
|
112
|
+
const isOpen = context.open || isPresent;
|
|
113
|
+
const isMountAnimationPreventedRef = React__namespace.useRef(isOpen);
|
|
114
|
+
const originalStylesRef = React__namespace.useRef(void 0);
|
|
115
|
+
React__namespace.useEffect(() => {
|
|
116
|
+
const rAF = requestAnimationFrame(() => isMountAnimationPreventedRef.current = false);
|
|
117
|
+
return () => cancelAnimationFrame(rAF);
|
|
118
|
+
}, []);
|
|
119
|
+
index$6.useLayoutEffect(() => {
|
|
120
|
+
const node = ref.current;
|
|
121
|
+
if (node) {
|
|
122
|
+
originalStylesRef.current = originalStylesRef.current || {
|
|
123
|
+
transitionDuration: node.style.transitionDuration,
|
|
124
|
+
animationName: node.style.animationName
|
|
125
|
+
};
|
|
126
|
+
node.style.transitionDuration = "0s";
|
|
127
|
+
node.style.animationName = "none";
|
|
128
|
+
const rect = node.getBoundingClientRect();
|
|
129
|
+
heightRef.current = rect.height;
|
|
130
|
+
widthRef.current = rect.width;
|
|
131
|
+
if (!isMountAnimationPreventedRef.current) {
|
|
132
|
+
node.style.transitionDuration = originalStylesRef.current.transitionDuration;
|
|
133
|
+
node.style.animationName = originalStylesRef.current.animationName;
|
|
134
|
+
}
|
|
135
|
+
setIsPresent(present);
|
|
136
|
+
}
|
|
137
|
+
}, [context.open, present]);
|
|
138
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
139
|
+
index$2.Primitive.div,
|
|
140
|
+
{
|
|
141
|
+
"data-state": getState(context.open),
|
|
142
|
+
"data-disabled": context.disabled ? "" : void 0,
|
|
143
|
+
id: context.contentId,
|
|
144
|
+
hidden: !isOpen,
|
|
145
|
+
...contentProps,
|
|
146
|
+
ref: composedRefs,
|
|
147
|
+
style: {
|
|
148
|
+
[`--radix-collapsible-content-height`]: height ? `${height}px` : void 0,
|
|
149
|
+
[`--radix-collapsible-content-width`]: width ? `${width}px` : void 0,
|
|
150
|
+
...props.style
|
|
151
|
+
},
|
|
152
|
+
children: isOpen && children
|
|
153
|
+
}
|
|
154
|
+
);
|
|
155
|
+
});
|
|
156
|
+
function getState(open) {
|
|
157
|
+
return open ? "open" : "closed";
|
|
158
|
+
}
|
|
159
|
+
var Root = Collapsible;
|
|
160
|
+
var Trigger = CollapsibleTrigger;
|
|
161
|
+
var Content = CollapsibleContent;
|
|
162
|
+
exports.Collapsible = Collapsible;
|
|
163
|
+
exports.CollapsibleContent = CollapsibleContent;
|
|
164
|
+
exports.CollapsibleTrigger = CollapsibleTrigger;
|
|
165
|
+
exports.Content = Content;
|
|
166
|
+
exports.Root = Root;
|
|
167
|
+
exports.Trigger = Trigger;
|
|
168
|
+
exports.createCollapsibleScope = createCollapsibleScope;
|
|
169
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs","sources":["../../../../../node_modules/@radix-ui/react-collapsible/dist/index.mjs"],"sourcesContent":["\"use client\";\n\n// src/collapsible.tsx\nimport * as React from \"react\";\nimport { composeEventHandlers } from \"@radix-ui/primitive\";\nimport { createContextScope } from \"@radix-ui/react-context\";\nimport { useControllableState } from \"@radix-ui/react-use-controllable-state\";\nimport { useLayoutEffect } from \"@radix-ui/react-use-layout-effect\";\nimport { useComposedRefs } from \"@radix-ui/react-compose-refs\";\nimport { Primitive } from \"@radix-ui/react-primitive\";\nimport { Presence } from \"@radix-ui/react-presence\";\nimport { useId } from \"@radix-ui/react-id\";\nimport { jsx } from \"react/jsx-runtime\";\nvar COLLAPSIBLE_NAME = \"Collapsible\";\nvar [createCollapsibleContext, createCollapsibleScope] = createContextScope(COLLAPSIBLE_NAME);\nvar [CollapsibleProvider, useCollapsibleContext] = createCollapsibleContext(COLLAPSIBLE_NAME);\nvar Collapsible = React.forwardRef(\n (props, forwardedRef) => {\n const {\n __scopeCollapsible,\n open: openProp,\n defaultOpen,\n disabled,\n onOpenChange,\n ...collapsibleProps\n } = props;\n const [open, setOpen] = useControllableState({\n prop: openProp,\n defaultProp: defaultOpen ?? false,\n onChange: onOpenChange,\n caller: COLLAPSIBLE_NAME\n });\n return /* @__PURE__ */ jsx(\n CollapsibleProvider,\n {\n scope: __scopeCollapsible,\n disabled,\n contentId: useId(),\n open,\n onOpenToggle: React.useCallback(() => setOpen((prevOpen) => !prevOpen), [setOpen]),\n children: /* @__PURE__ */ jsx(\n Primitive.div,\n {\n \"data-state\": getState(open),\n \"data-disabled\": disabled ? \"\" : void 0,\n ...collapsibleProps,\n ref: forwardedRef\n }\n )\n }\n );\n }\n);\nCollapsible.displayName = COLLAPSIBLE_NAME;\nvar TRIGGER_NAME = \"CollapsibleTrigger\";\nvar CollapsibleTrigger = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeCollapsible, ...triggerProps } = props;\n const context = useCollapsibleContext(TRIGGER_NAME, __scopeCollapsible);\n return /* @__PURE__ */ jsx(\n Primitive.button,\n {\n type: \"button\",\n \"aria-controls\": context.contentId,\n \"aria-expanded\": context.open || false,\n \"data-state\": getState(context.open),\n \"data-disabled\": context.disabled ? \"\" : void 0,\n disabled: context.disabled,\n ...triggerProps,\n ref: forwardedRef,\n onClick: composeEventHandlers(props.onClick, context.onOpenToggle)\n }\n );\n }\n);\nCollapsibleTrigger.displayName = TRIGGER_NAME;\nvar CONTENT_NAME = \"CollapsibleContent\";\nvar CollapsibleContent = React.forwardRef(\n (props, forwardedRef) => {\n const { forceMount, ...contentProps } = props;\n const context = useCollapsibleContext(CONTENT_NAME, props.__scopeCollapsible);\n return /* @__PURE__ */ jsx(Presence, { present: forceMount || context.open, children: ({ present }) => /* @__PURE__ */ jsx(CollapsibleContentImpl, { ...contentProps, ref: forwardedRef, present }) });\n }\n);\nCollapsibleContent.displayName = CONTENT_NAME;\nvar CollapsibleContentImpl = React.forwardRef((props, forwardedRef) => {\n const { __scopeCollapsible, present, children, ...contentProps } = props;\n const context = useCollapsibleContext(CONTENT_NAME, __scopeCollapsible);\n const [isPresent, setIsPresent] = React.useState(present);\n const ref = React.useRef(null);\n const composedRefs = useComposedRefs(forwardedRef, ref);\n const heightRef = React.useRef(0);\n const height = heightRef.current;\n const widthRef = React.useRef(0);\n const width = widthRef.current;\n const isOpen = context.open || isPresent;\n const isMountAnimationPreventedRef = React.useRef(isOpen);\n const originalStylesRef = React.useRef(void 0);\n React.useEffect(() => {\n const rAF = requestAnimationFrame(() => isMountAnimationPreventedRef.current = false);\n return () => cancelAnimationFrame(rAF);\n }, []);\n useLayoutEffect(() => {\n const node = ref.current;\n if (node) {\n originalStylesRef.current = originalStylesRef.current || {\n transitionDuration: node.style.transitionDuration,\n animationName: node.style.animationName\n };\n node.style.transitionDuration = \"0s\";\n node.style.animationName = \"none\";\n const rect = node.getBoundingClientRect();\n heightRef.current = rect.height;\n widthRef.current = rect.width;\n if (!isMountAnimationPreventedRef.current) {\n node.style.transitionDuration = originalStylesRef.current.transitionDuration;\n node.style.animationName = originalStylesRef.current.animationName;\n }\n setIsPresent(present);\n }\n }, [context.open, present]);\n return /* @__PURE__ */ jsx(\n Primitive.div,\n {\n \"data-state\": getState(context.open),\n \"data-disabled\": context.disabled ? \"\" : void 0,\n id: context.contentId,\n hidden: !isOpen,\n ...contentProps,\n ref: composedRefs,\n style: {\n [`--radix-collapsible-content-height`]: height ? `${height}px` : void 0,\n [`--radix-collapsible-content-width`]: width ? `${width}px` : void 0,\n ...props.style\n },\n children: isOpen && children\n }\n );\n});\nfunction getState(open) {\n return open ? \"open\" : \"closed\";\n}\nvar Root = Collapsible;\nvar Trigger = CollapsibleTrigger;\nvar Content = CollapsibleContent;\nexport {\n Collapsible,\n CollapsibleContent,\n CollapsibleTrigger,\n Content,\n Root,\n Trigger,\n createCollapsibleScope\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["createContextScope","React","useControllableState","jsx","useId","Primitive","composeEventHandlers","Presence","useComposedRefs","useLayoutEffect"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAaA,IAAI,mBAAmB;AACpB,IAAC,CAAC,0BAA0B,sBAAsB,IAAIA,QAAAA,mBAAmB,gBAAgB;AAC5F,IAAI,CAAC,qBAAqB,qBAAqB,IAAI,yBAAyB,gBAAgB;AACzF,IAAC,cAAcC,iBAAM;AAAA,EACtB,CAAC,OAAO,iBAAiB;AACvB,UAAM;AAAA,MACJ;AAAA,MACA,MAAM;AAAA,MACN;AAAA,MACA;AAAA,MACA;AAAA,MACA,GAAG;AAAA,IACT,IAAQ;AACJ,UAAM,CAAC,MAAM,OAAO,IAAIC,6BAAqB;AAAA,MAC3C,MAAM;AAAA,MACN,aAAa,eAAe;AAAA,MAC5B,UAAU;AAAA,MACV,QAAQ;AAAA,IACd,CAAK;AACD,WAAuBC,2BAAAA;AAAAA,MACrB;AAAA,MACA;AAAA,QACE,OAAO;AAAA,QACP;AAAA,QACA,WAAWC,QAAAA,MAAK;AAAA,QAChB;AAAA,QACA,cAAcH,iBAAM,YAAY,MAAM,QAAQ,CAAC,aAAa,CAAC,QAAQ,GAAG,CAAC,OAAO,CAAC;AAAA,QACjF,UAA0BE,2BAAAA;AAAAA,UACxBE,QAAAA,UAAU;AAAA,UACV;AAAA,YACE,cAAc,SAAS,IAAI;AAAA,YAC3B,iBAAiB,WAAW,KAAK;AAAA,YACjC,GAAG;AAAA,YACH,KAAK;AAAA,UACjB;AAAA,QACA;AAAA,MACA;AAAA,IACA;AAAA,EACE;AACF;AACA,YAAY,cAAc;AAC1B,IAAI,eAAe;AAChB,IAAC,qBAAqBJ,iBAAM;AAAA,EAC7B,CAAC,OAAO,iBAAiB;AACvB,UAAM,EAAE,oBAAoB,GAAG,aAAY,IAAK;AAChD,UAAM,UAAU,sBAAsB,cAAc,kBAAkB;AACtE,WAAuBE,2BAAAA;AAAAA,MACrBE,QAAAA,UAAU;AAAA,MACV;AAAA,QACE,MAAM;AAAA,QACN,iBAAiB,QAAQ;AAAA,QACzB,iBAAiB,QAAQ,QAAQ;AAAA,QACjC,cAAc,SAAS,QAAQ,IAAI;AAAA,QACnC,iBAAiB,QAAQ,WAAW,KAAK;AAAA,QACzC,UAAU,QAAQ;AAAA,QAClB,GAAG;AAAA,QACH,KAAK;AAAA,QACL,SAASC,QAAAA,qBAAqB,MAAM,SAAS,QAAQ,YAAY;AAAA,MACzE;AAAA,IACA;AAAA,EACE;AACF;AACA,mBAAmB,cAAc;AACjC,IAAI,eAAe;AAChB,IAAC,qBAAqBL,iBAAM;AAAA,EAC7B,CAAC,OAAO,iBAAiB;AACvB,UAAM,EAAE,YAAY,GAAG,aAAY,IAAK;AACxC,UAAM,UAAU,sBAAsB,cAAc,MAAM,kBAAkB;AAC5E,WAAuBE,2BAAAA,IAAII,MAAAA,UAAU,EAAE,SAAS,cAAc,QAAQ,MAAM,UAAU,CAAC,EAAE,QAAO,MAAuBJ,2BAAAA,IAAI,wBAAwB,EAAE,GAAG,cAAc,KAAK,cAAc,QAAO,CAAE,GAAG;AAAA,EACvM;AACF;AACA,mBAAmB,cAAc;AACjC,IAAI,yBAAyBF,iBAAM,WAAW,CAAC,OAAO,iBAAiB;AACrE,QAAM,EAAE,oBAAoB,SAAS,UAAU,GAAG,aAAY,IAAK;AACnE,QAAM,UAAU,sBAAsB,cAAc,kBAAkB;AACtE,QAAM,CAAC,WAAW,YAAY,IAAIA,iBAAM,SAAS,OAAO;AACxD,QAAM,MAAMA,iBAAM,OAAO,IAAI;AAC7B,QAAM,eAAeO,QAAAA,gBAAgB,cAAc,GAAG;AACtD,QAAM,YAAYP,iBAAM,OAAO,CAAC;AAChC,QAAM,SAAS,UAAU;AACzB,QAAM,WAAWA,iBAAM,OAAO,CAAC;AAC/B,QAAM,QAAQ,SAAS;AACvB,QAAM,SAAS,QAAQ,QAAQ;AAC/B,QAAM,+BAA+BA,iBAAM,OAAO,MAAM;AACxD,QAAM,oBAAoBA,iBAAM,OAAO,MAAM;AAC7CA,mBAAM,UAAU,MAAM;AACpB,UAAM,MAAM,sBAAsB,MAAM,6BAA6B,UAAU,KAAK;AACpF,WAAO,MAAM,qBAAqB,GAAG;AAAA,EACvC,GAAG,CAAA,CAAE;AACLQ,UAAAA,gBAAgB,MAAM;AACpB,UAAM,OAAO,IAAI;AACjB,QAAI,MAAM;AACR,wBAAkB,UAAU,kBAAkB,WAAW;AAAA,QACvD,oBAAoB,KAAK,MAAM;AAAA,QAC/B,eAAe,KAAK,MAAM;AAAA,MAClC;AACM,WAAK,MAAM,qBAAqB;AAChC,WAAK,MAAM,gBAAgB;AAC3B,YAAM,OAAO,KAAK,sBAAqB;AACvC,gBAAU,UAAU,KAAK;AACzB,eAAS,UAAU,KAAK;AACxB,UAAI,CAAC,6BAA6B,SAAS;AACzC,aAAK,MAAM,qBAAqB,kBAAkB,QAAQ;AAC1D,aAAK,MAAM,gBAAgB,kBAAkB,QAAQ;AAAA,MACvD;AACA,mBAAa,OAAO;AAAA,IACtB;AAAA,EACF,GAAG,CAAC,QAAQ,MAAM,OAAO,CAAC;AAC1B,SAAuBN,2BAAAA;AAAAA,IACrBE,QAAAA,UAAU;AAAA,IACV;AAAA,MACE,cAAc,SAAS,QAAQ,IAAI;AAAA,MACnC,iBAAiB,QAAQ,WAAW,KAAK;AAAA,MACzC,IAAI,QAAQ;AAAA,MACZ,QAAQ,CAAC;AAAA,MACT,GAAG;AAAA,MACH,KAAK;AAAA,MACL,OAAO;AAAA,QACL,CAAC,oCAAoC,GAAG,SAAS,GAAG,MAAM,OAAO;AAAA,QACjE,CAAC,mCAAmC,GAAG,QAAQ,GAAG,KAAK,OAAO;AAAA,QAC9D,GAAG,MAAM;AAAA,MACjB;AAAA,MACM,UAAU,UAAU;AAAA,IAC1B;AAAA,EACA;AACA,CAAC;AACD,SAAS,SAAS,MAAM;AACtB,SAAO,OAAO,SAAS;AACzB;AACG,IAAC,OAAO;AACR,IAAC,UAAU;AACX,IAAC,UAAU;;;;;;;;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { composeEventHandlers } from "../../primitive/dist/index.js";
|
|
3
|
+
import { createContextScope } from "../../react-context/dist/index.js";
|
|
4
|
+
import { useControllableState } from "../../react-use-controllable-state/dist/index.js";
|
|
5
|
+
import { useLayoutEffect as useLayoutEffect2 } from "../../react-use-layout-effect/dist/index.js";
|
|
6
|
+
import { useComposedRefs } from "../../react-compose-refs/dist/index.js";
|
|
7
|
+
import { Primitive } from "../../react-primitive/dist/index.js";
|
|
8
|
+
import { Presence } from "../../react-presence/dist/index.js";
|
|
9
|
+
import { useId } from "../../react-id/dist/index.js";
|
|
10
|
+
import { jsx } from "react/jsx-runtime";
|
|
11
|
+
var COLLAPSIBLE_NAME = "Collapsible";
|
|
12
|
+
var [createCollapsibleContext, createCollapsibleScope] = createContextScope(COLLAPSIBLE_NAME);
|
|
13
|
+
var [CollapsibleProvider, useCollapsibleContext] = createCollapsibleContext(COLLAPSIBLE_NAME);
|
|
14
|
+
var Collapsible = React.forwardRef(
|
|
15
|
+
(props, forwardedRef) => {
|
|
16
|
+
const {
|
|
17
|
+
__scopeCollapsible,
|
|
18
|
+
open: openProp,
|
|
19
|
+
defaultOpen,
|
|
20
|
+
disabled,
|
|
21
|
+
onOpenChange,
|
|
22
|
+
...collapsibleProps
|
|
23
|
+
} = props;
|
|
24
|
+
const [open, setOpen] = useControllableState({
|
|
25
|
+
prop: openProp,
|
|
26
|
+
defaultProp: defaultOpen ?? false,
|
|
27
|
+
onChange: onOpenChange,
|
|
28
|
+
caller: COLLAPSIBLE_NAME
|
|
29
|
+
});
|
|
30
|
+
return /* @__PURE__ */ jsx(
|
|
31
|
+
CollapsibleProvider,
|
|
32
|
+
{
|
|
33
|
+
scope: __scopeCollapsible,
|
|
34
|
+
disabled,
|
|
35
|
+
contentId: useId(),
|
|
36
|
+
open,
|
|
37
|
+
onOpenToggle: React.useCallback(() => setOpen((prevOpen) => !prevOpen), [setOpen]),
|
|
38
|
+
children: /* @__PURE__ */ jsx(
|
|
39
|
+
Primitive.div,
|
|
40
|
+
{
|
|
41
|
+
"data-state": getState(open),
|
|
42
|
+
"data-disabled": disabled ? "" : void 0,
|
|
43
|
+
...collapsibleProps,
|
|
44
|
+
ref: forwardedRef
|
|
45
|
+
}
|
|
46
|
+
)
|
|
47
|
+
}
|
|
48
|
+
);
|
|
49
|
+
}
|
|
50
|
+
);
|
|
51
|
+
Collapsible.displayName = COLLAPSIBLE_NAME;
|
|
52
|
+
var TRIGGER_NAME = "CollapsibleTrigger";
|
|
53
|
+
var CollapsibleTrigger = React.forwardRef(
|
|
54
|
+
(props, forwardedRef) => {
|
|
55
|
+
const { __scopeCollapsible, ...triggerProps } = props;
|
|
56
|
+
const context = useCollapsibleContext(TRIGGER_NAME, __scopeCollapsible);
|
|
57
|
+
return /* @__PURE__ */ jsx(
|
|
58
|
+
Primitive.button,
|
|
59
|
+
{
|
|
60
|
+
type: "button",
|
|
61
|
+
"aria-controls": context.contentId,
|
|
62
|
+
"aria-expanded": context.open || false,
|
|
63
|
+
"data-state": getState(context.open),
|
|
64
|
+
"data-disabled": context.disabled ? "" : void 0,
|
|
65
|
+
disabled: context.disabled,
|
|
66
|
+
...triggerProps,
|
|
67
|
+
ref: forwardedRef,
|
|
68
|
+
onClick: composeEventHandlers(props.onClick, context.onOpenToggle)
|
|
69
|
+
}
|
|
70
|
+
);
|
|
71
|
+
}
|
|
72
|
+
);
|
|
73
|
+
CollapsibleTrigger.displayName = TRIGGER_NAME;
|
|
74
|
+
var CONTENT_NAME = "CollapsibleContent";
|
|
75
|
+
var CollapsibleContent = React.forwardRef(
|
|
76
|
+
(props, forwardedRef) => {
|
|
77
|
+
const { forceMount, ...contentProps } = props;
|
|
78
|
+
const context = useCollapsibleContext(CONTENT_NAME, props.__scopeCollapsible);
|
|
79
|
+
return /* @__PURE__ */ jsx(Presence, { present: forceMount || context.open, children: ({ present }) => /* @__PURE__ */ jsx(CollapsibleContentImpl, { ...contentProps, ref: forwardedRef, present }) });
|
|
80
|
+
}
|
|
81
|
+
);
|
|
82
|
+
CollapsibleContent.displayName = CONTENT_NAME;
|
|
83
|
+
var CollapsibleContentImpl = React.forwardRef((props, forwardedRef) => {
|
|
84
|
+
const { __scopeCollapsible, present, children, ...contentProps } = props;
|
|
85
|
+
const context = useCollapsibleContext(CONTENT_NAME, __scopeCollapsible);
|
|
86
|
+
const [isPresent, setIsPresent] = React.useState(present);
|
|
87
|
+
const ref = React.useRef(null);
|
|
88
|
+
const composedRefs = useComposedRefs(forwardedRef, ref);
|
|
89
|
+
const heightRef = React.useRef(0);
|
|
90
|
+
const height = heightRef.current;
|
|
91
|
+
const widthRef = React.useRef(0);
|
|
92
|
+
const width = widthRef.current;
|
|
93
|
+
const isOpen = context.open || isPresent;
|
|
94
|
+
const isMountAnimationPreventedRef = React.useRef(isOpen);
|
|
95
|
+
const originalStylesRef = React.useRef(void 0);
|
|
96
|
+
React.useEffect(() => {
|
|
97
|
+
const rAF = requestAnimationFrame(() => isMountAnimationPreventedRef.current = false);
|
|
98
|
+
return () => cancelAnimationFrame(rAF);
|
|
99
|
+
}, []);
|
|
100
|
+
useLayoutEffect2(() => {
|
|
101
|
+
const node = ref.current;
|
|
102
|
+
if (node) {
|
|
103
|
+
originalStylesRef.current = originalStylesRef.current || {
|
|
104
|
+
transitionDuration: node.style.transitionDuration,
|
|
105
|
+
animationName: node.style.animationName
|
|
106
|
+
};
|
|
107
|
+
node.style.transitionDuration = "0s";
|
|
108
|
+
node.style.animationName = "none";
|
|
109
|
+
const rect = node.getBoundingClientRect();
|
|
110
|
+
heightRef.current = rect.height;
|
|
111
|
+
widthRef.current = rect.width;
|
|
112
|
+
if (!isMountAnimationPreventedRef.current) {
|
|
113
|
+
node.style.transitionDuration = originalStylesRef.current.transitionDuration;
|
|
114
|
+
node.style.animationName = originalStylesRef.current.animationName;
|
|
115
|
+
}
|
|
116
|
+
setIsPresent(present);
|
|
117
|
+
}
|
|
118
|
+
}, [context.open, present]);
|
|
119
|
+
return /* @__PURE__ */ jsx(
|
|
120
|
+
Primitive.div,
|
|
121
|
+
{
|
|
122
|
+
"data-state": getState(context.open),
|
|
123
|
+
"data-disabled": context.disabled ? "" : void 0,
|
|
124
|
+
id: context.contentId,
|
|
125
|
+
hidden: !isOpen,
|
|
126
|
+
...contentProps,
|
|
127
|
+
ref: composedRefs,
|
|
128
|
+
style: {
|
|
129
|
+
[`--radix-collapsible-content-height`]: height ? `${height}px` : void 0,
|
|
130
|
+
[`--radix-collapsible-content-width`]: width ? `${width}px` : void 0,
|
|
131
|
+
...props.style
|
|
132
|
+
},
|
|
133
|
+
children: isOpen && children
|
|
134
|
+
}
|
|
135
|
+
);
|
|
136
|
+
});
|
|
137
|
+
function getState(open) {
|
|
138
|
+
return open ? "open" : "closed";
|
|
139
|
+
}
|
|
140
|
+
var Root = Collapsible;
|
|
141
|
+
var Trigger = CollapsibleTrigger;
|
|
142
|
+
var Content = CollapsibleContent;
|
|
143
|
+
export {
|
|
144
|
+
Collapsible,
|
|
145
|
+
CollapsibleContent,
|
|
146
|
+
CollapsibleTrigger,
|
|
147
|
+
Content,
|
|
148
|
+
Root,
|
|
149
|
+
Trigger,
|
|
150
|
+
createCollapsibleScope
|
|
151
|
+
};
|
|
152
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../../node_modules/@radix-ui/react-collapsible/dist/index.mjs"],"sourcesContent":["\"use client\";\n\n// src/collapsible.tsx\nimport * as React from \"react\";\nimport { composeEventHandlers } from \"@radix-ui/primitive\";\nimport { createContextScope } from \"@radix-ui/react-context\";\nimport { useControllableState } from \"@radix-ui/react-use-controllable-state\";\nimport { useLayoutEffect } from \"@radix-ui/react-use-layout-effect\";\nimport { useComposedRefs } from \"@radix-ui/react-compose-refs\";\nimport { Primitive } from \"@radix-ui/react-primitive\";\nimport { Presence } from \"@radix-ui/react-presence\";\nimport { useId } from \"@radix-ui/react-id\";\nimport { jsx } from \"react/jsx-runtime\";\nvar COLLAPSIBLE_NAME = \"Collapsible\";\nvar [createCollapsibleContext, createCollapsibleScope] = createContextScope(COLLAPSIBLE_NAME);\nvar [CollapsibleProvider, useCollapsibleContext] = createCollapsibleContext(COLLAPSIBLE_NAME);\nvar Collapsible = React.forwardRef(\n (props, forwardedRef) => {\n const {\n __scopeCollapsible,\n open: openProp,\n defaultOpen,\n disabled,\n onOpenChange,\n ...collapsibleProps\n } = props;\n const [open, setOpen] = useControllableState({\n prop: openProp,\n defaultProp: defaultOpen ?? false,\n onChange: onOpenChange,\n caller: COLLAPSIBLE_NAME\n });\n return /* @__PURE__ */ jsx(\n CollapsibleProvider,\n {\n scope: __scopeCollapsible,\n disabled,\n contentId: useId(),\n open,\n onOpenToggle: React.useCallback(() => setOpen((prevOpen) => !prevOpen), [setOpen]),\n children: /* @__PURE__ */ jsx(\n Primitive.div,\n {\n \"data-state\": getState(open),\n \"data-disabled\": disabled ? \"\" : void 0,\n ...collapsibleProps,\n ref: forwardedRef\n }\n )\n }\n );\n }\n);\nCollapsible.displayName = COLLAPSIBLE_NAME;\nvar TRIGGER_NAME = \"CollapsibleTrigger\";\nvar CollapsibleTrigger = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeCollapsible, ...triggerProps } = props;\n const context = useCollapsibleContext(TRIGGER_NAME, __scopeCollapsible);\n return /* @__PURE__ */ jsx(\n Primitive.button,\n {\n type: \"button\",\n \"aria-controls\": context.contentId,\n \"aria-expanded\": context.open || false,\n \"data-state\": getState(context.open),\n \"data-disabled\": context.disabled ? \"\" : void 0,\n disabled: context.disabled,\n ...triggerProps,\n ref: forwardedRef,\n onClick: composeEventHandlers(props.onClick, context.onOpenToggle)\n }\n );\n }\n);\nCollapsibleTrigger.displayName = TRIGGER_NAME;\nvar CONTENT_NAME = \"CollapsibleContent\";\nvar CollapsibleContent = React.forwardRef(\n (props, forwardedRef) => {\n const { forceMount, ...contentProps } = props;\n const context = useCollapsibleContext(CONTENT_NAME, props.__scopeCollapsible);\n return /* @__PURE__ */ jsx(Presence, { present: forceMount || context.open, children: ({ present }) => /* @__PURE__ */ jsx(CollapsibleContentImpl, { ...contentProps, ref: forwardedRef, present }) });\n }\n);\nCollapsibleContent.displayName = CONTENT_NAME;\nvar CollapsibleContentImpl = React.forwardRef((props, forwardedRef) => {\n const { __scopeCollapsible, present, children, ...contentProps } = props;\n const context = useCollapsibleContext(CONTENT_NAME, __scopeCollapsible);\n const [isPresent, setIsPresent] = React.useState(present);\n const ref = React.useRef(null);\n const composedRefs = useComposedRefs(forwardedRef, ref);\n const heightRef = React.useRef(0);\n const height = heightRef.current;\n const widthRef = React.useRef(0);\n const width = widthRef.current;\n const isOpen = context.open || isPresent;\n const isMountAnimationPreventedRef = React.useRef(isOpen);\n const originalStylesRef = React.useRef(void 0);\n React.useEffect(() => {\n const rAF = requestAnimationFrame(() => isMountAnimationPreventedRef.current = false);\n return () => cancelAnimationFrame(rAF);\n }, []);\n useLayoutEffect(() => {\n const node = ref.current;\n if (node) {\n originalStylesRef.current = originalStylesRef.current || {\n transitionDuration: node.style.transitionDuration,\n animationName: node.style.animationName\n };\n node.style.transitionDuration = \"0s\";\n node.style.animationName = \"none\";\n const rect = node.getBoundingClientRect();\n heightRef.current = rect.height;\n widthRef.current = rect.width;\n if (!isMountAnimationPreventedRef.current) {\n node.style.transitionDuration = originalStylesRef.current.transitionDuration;\n node.style.animationName = originalStylesRef.current.animationName;\n }\n setIsPresent(present);\n }\n }, [context.open, present]);\n return /* @__PURE__ */ jsx(\n Primitive.div,\n {\n \"data-state\": getState(context.open),\n \"data-disabled\": context.disabled ? \"\" : void 0,\n id: context.contentId,\n hidden: !isOpen,\n ...contentProps,\n ref: composedRefs,\n style: {\n [`--radix-collapsible-content-height`]: height ? `${height}px` : void 0,\n [`--radix-collapsible-content-width`]: width ? `${width}px` : void 0,\n ...props.style\n },\n children: isOpen && children\n }\n );\n});\nfunction getState(open) {\n return open ? \"open\" : \"closed\";\n}\nvar Root = Collapsible;\nvar Trigger = CollapsibleTrigger;\nvar Content = CollapsibleContent;\nexport {\n Collapsible,\n CollapsibleContent,\n CollapsibleTrigger,\n Content,\n Root,\n Trigger,\n createCollapsibleScope\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["useLayoutEffect"],"mappings":";;;;;;;;;;AAaA,IAAI,mBAAmB;AACpB,IAAC,CAAC,0BAA0B,sBAAsB,IAAI,mBAAmB,gBAAgB;AAC5F,IAAI,CAAC,qBAAqB,qBAAqB,IAAI,yBAAyB,gBAAgB;AACzF,IAAC,cAAc,MAAM;AAAA,EACtB,CAAC,OAAO,iBAAiB;AACvB,UAAM;AAAA,MACJ;AAAA,MACA,MAAM;AAAA,MACN;AAAA,MACA;AAAA,MACA;AAAA,MACA,GAAG;AAAA,IACT,IAAQ;AACJ,UAAM,CAAC,MAAM,OAAO,IAAI,qBAAqB;AAAA,MAC3C,MAAM;AAAA,MACN,aAAa,eAAe;AAAA,MAC5B,UAAU;AAAA,MACV,QAAQ;AAAA,IACd,CAAK;AACD,WAAuB;AAAA,MACrB;AAAA,MACA;AAAA,QACE,OAAO;AAAA,QACP;AAAA,QACA,WAAW,MAAK;AAAA,QAChB;AAAA,QACA,cAAc,MAAM,YAAY,MAAM,QAAQ,CAAC,aAAa,CAAC,QAAQ,GAAG,CAAC,OAAO,CAAC;AAAA,QACjF,UAA0B;AAAA,UACxB,UAAU;AAAA,UACV;AAAA,YACE,cAAc,SAAS,IAAI;AAAA,YAC3B,iBAAiB,WAAW,KAAK;AAAA,YACjC,GAAG;AAAA,YACH,KAAK;AAAA,UACjB;AAAA,QACA;AAAA,MACA;AAAA,IACA;AAAA,EACE;AACF;AACA,YAAY,cAAc;AAC1B,IAAI,eAAe;AAChB,IAAC,qBAAqB,MAAM;AAAA,EAC7B,CAAC,OAAO,iBAAiB;AACvB,UAAM,EAAE,oBAAoB,GAAG,aAAY,IAAK;AAChD,UAAM,UAAU,sBAAsB,cAAc,kBAAkB;AACtE,WAAuB;AAAA,MACrB,UAAU;AAAA,MACV;AAAA,QACE,MAAM;AAAA,QACN,iBAAiB,QAAQ;AAAA,QACzB,iBAAiB,QAAQ,QAAQ;AAAA,QACjC,cAAc,SAAS,QAAQ,IAAI;AAAA,QACnC,iBAAiB,QAAQ,WAAW,KAAK;AAAA,QACzC,UAAU,QAAQ;AAAA,QAClB,GAAG;AAAA,QACH,KAAK;AAAA,QACL,SAAS,qBAAqB,MAAM,SAAS,QAAQ,YAAY;AAAA,MACzE;AAAA,IACA;AAAA,EACE;AACF;AACA,mBAAmB,cAAc;AACjC,IAAI,eAAe;AAChB,IAAC,qBAAqB,MAAM;AAAA,EAC7B,CAAC,OAAO,iBAAiB;AACvB,UAAM,EAAE,YAAY,GAAG,aAAY,IAAK;AACxC,UAAM,UAAU,sBAAsB,cAAc,MAAM,kBAAkB;AAC5E,WAAuB,oBAAI,UAAU,EAAE,SAAS,cAAc,QAAQ,MAAM,UAAU,CAAC,EAAE,QAAO,MAAuB,oBAAI,wBAAwB,EAAE,GAAG,cAAc,KAAK,cAAc,QAAO,CAAE,GAAG;AAAA,EACvM;AACF;AACA,mBAAmB,cAAc;AACjC,IAAI,yBAAyB,MAAM,WAAW,CAAC,OAAO,iBAAiB;AACrE,QAAM,EAAE,oBAAoB,SAAS,UAAU,GAAG,aAAY,IAAK;AACnE,QAAM,UAAU,sBAAsB,cAAc,kBAAkB;AACtE,QAAM,CAAC,WAAW,YAAY,IAAI,MAAM,SAAS,OAAO;AACxD,QAAM,MAAM,MAAM,OAAO,IAAI;AAC7B,QAAM,eAAe,gBAAgB,cAAc,GAAG;AACtD,QAAM,YAAY,MAAM,OAAO,CAAC;AAChC,QAAM,SAAS,UAAU;AACzB,QAAM,WAAW,MAAM,OAAO,CAAC;AAC/B,QAAM,QAAQ,SAAS;AACvB,QAAM,SAAS,QAAQ,QAAQ;AAC/B,QAAM,+BAA+B,MAAM,OAAO,MAAM;AACxD,QAAM,oBAAoB,MAAM,OAAO,MAAM;AAC7C,QAAM,UAAU,MAAM;AACpB,UAAM,MAAM,sBAAsB,MAAM,6BAA6B,UAAU,KAAK;AACpF,WAAO,MAAM,qBAAqB,GAAG;AAAA,EACvC,GAAG,CAAA,CAAE;AACLA,mBAAgB,MAAM;AACpB,UAAM,OAAO,IAAI;AACjB,QAAI,MAAM;AACR,wBAAkB,UAAU,kBAAkB,WAAW;AAAA,QACvD,oBAAoB,KAAK,MAAM;AAAA,QAC/B,eAAe,KAAK,MAAM;AAAA,MAClC;AACM,WAAK,MAAM,qBAAqB;AAChC,WAAK,MAAM,gBAAgB;AAC3B,YAAM,OAAO,KAAK,sBAAqB;AACvC,gBAAU,UAAU,KAAK;AACzB,eAAS,UAAU,KAAK;AACxB,UAAI,CAAC,6BAA6B,SAAS;AACzC,aAAK,MAAM,qBAAqB,kBAAkB,QAAQ;AAC1D,aAAK,MAAM,gBAAgB,kBAAkB,QAAQ;AAAA,MACvD;AACA,mBAAa,OAAO;AAAA,IACtB;AAAA,EACF,GAAG,CAAC,QAAQ,MAAM,OAAO,CAAC;AAC1B,SAAuB;AAAA,IACrB,UAAU;AAAA,IACV;AAAA,MACE,cAAc,SAAS,QAAQ,IAAI;AAAA,MACnC,iBAAiB,QAAQ,WAAW,KAAK;AAAA,MACzC,IAAI,QAAQ;AAAA,MACZ,QAAQ,CAAC;AAAA,MACT,GAAG;AAAA,MACH,KAAK;AAAA,MACL,OAAO;AAAA,QACL,CAAC,oCAAoC,GAAG,SAAS,GAAG,MAAM,OAAO;AAAA,QACjE,CAAC,mCAAmC,GAAG,QAAQ,GAAG,KAAK,OAAO;AAAA,QAC9D,GAAG,MAAM;AAAA,MACjB;AAAA,MACM,UAAU,UAAU;AAAA,IAC1B;AAAA,EACA;AACA,CAAC;AACD,SAAS,SAAS,MAAM;AACtB,SAAO,OAAO,SAAS;AACzB;AACG,IAAC,OAAO;AACR,IAAC,UAAU;AACX,IAAC,UAAU;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const React = require("react");
|
|
4
|
+
const index = require("../../react-context/dist/index.cjs");
|
|
5
|
+
const index$1 = require("../../react-compose-refs/dist/index.cjs");
|
|
6
|
+
const index$2 = require("../node_modules/@radix-ui/react-slot/dist/index.cjs");
|
|
7
|
+
const jsxRuntime = require("react/jsx-runtime");
|
|
8
|
+
function createCollection(name) {
|
|
9
|
+
const PROVIDER_NAME = name + "CollectionProvider";
|
|
10
|
+
const [createCollectionContext, createCollectionScope] = index.createContextScope(PROVIDER_NAME);
|
|
11
|
+
const [CollectionProviderImpl, useCollectionContext] = createCollectionContext(
|
|
12
|
+
PROVIDER_NAME,
|
|
13
|
+
{ collectionRef: { current: null }, itemMap: /* @__PURE__ */ new Map() }
|
|
14
|
+
);
|
|
15
|
+
const CollectionProvider = (props) => {
|
|
16
|
+
const { scope, children } = props;
|
|
17
|
+
const ref = React.useRef(null);
|
|
18
|
+
const itemMap = React.useRef(/* @__PURE__ */ new Map()).current;
|
|
19
|
+
return /* @__PURE__ */ jsxRuntime.jsx(CollectionProviderImpl, { scope, itemMap, collectionRef: ref, children });
|
|
20
|
+
};
|
|
21
|
+
CollectionProvider.displayName = PROVIDER_NAME;
|
|
22
|
+
const COLLECTION_SLOT_NAME = name + "CollectionSlot";
|
|
23
|
+
const CollectionSlotImpl = index$2.createSlot(COLLECTION_SLOT_NAME);
|
|
24
|
+
const CollectionSlot = React.forwardRef(
|
|
25
|
+
(props, forwardedRef) => {
|
|
26
|
+
const { scope, children } = props;
|
|
27
|
+
const context = useCollectionContext(COLLECTION_SLOT_NAME, scope);
|
|
28
|
+
const composedRefs = index$1.useComposedRefs(forwardedRef, context.collectionRef);
|
|
29
|
+
return /* @__PURE__ */ jsxRuntime.jsx(CollectionSlotImpl, { ref: composedRefs, children });
|
|
30
|
+
}
|
|
31
|
+
);
|
|
32
|
+
CollectionSlot.displayName = COLLECTION_SLOT_NAME;
|
|
33
|
+
const ITEM_SLOT_NAME = name + "CollectionItemSlot";
|
|
34
|
+
const ITEM_DATA_ATTR = "data-radix-collection-item";
|
|
35
|
+
const CollectionItemSlotImpl = index$2.createSlot(ITEM_SLOT_NAME);
|
|
36
|
+
const CollectionItemSlot = React.forwardRef(
|
|
37
|
+
(props, forwardedRef) => {
|
|
38
|
+
const { scope, children, ...itemData } = props;
|
|
39
|
+
const ref = React.useRef(null);
|
|
40
|
+
const composedRefs = index$1.useComposedRefs(forwardedRef, ref);
|
|
41
|
+
const context = useCollectionContext(ITEM_SLOT_NAME, scope);
|
|
42
|
+
React.useEffect(() => {
|
|
43
|
+
context.itemMap.set(ref, { ref, ...itemData });
|
|
44
|
+
return () => void context.itemMap.delete(ref);
|
|
45
|
+
});
|
|
46
|
+
return /* @__PURE__ */ jsxRuntime.jsx(CollectionItemSlotImpl, { ...{ [ITEM_DATA_ATTR]: "" }, ref: composedRefs, children });
|
|
47
|
+
}
|
|
48
|
+
);
|
|
49
|
+
CollectionItemSlot.displayName = ITEM_SLOT_NAME;
|
|
50
|
+
function useCollection(scope) {
|
|
51
|
+
const context = useCollectionContext(name + "CollectionConsumer", scope);
|
|
52
|
+
const getItems = React.useCallback(() => {
|
|
53
|
+
const collectionNode = context.collectionRef.current;
|
|
54
|
+
if (!collectionNode) return [];
|
|
55
|
+
const orderedNodes = Array.from(collectionNode.querySelectorAll(`[${ITEM_DATA_ATTR}]`));
|
|
56
|
+
const items = Array.from(context.itemMap.values());
|
|
57
|
+
const orderedItems = items.sort(
|
|
58
|
+
(a, b) => orderedNodes.indexOf(a.ref.current) - orderedNodes.indexOf(b.ref.current)
|
|
59
|
+
);
|
|
60
|
+
return orderedItems;
|
|
61
|
+
}, [context.collectionRef, context.itemMap]);
|
|
62
|
+
return getItems;
|
|
63
|
+
}
|
|
64
|
+
return [
|
|
65
|
+
{ Provider: CollectionProvider, Slot: CollectionSlot, ItemSlot: CollectionItemSlot },
|
|
66
|
+
useCollection,
|
|
67
|
+
createCollectionScope
|
|
68
|
+
];
|
|
69
|
+
}
|
|
70
|
+
exports.createCollection = createCollection;
|
|
71
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs","sources":["../../../../../node_modules/@radix-ui/react-collection/dist/index.mjs"],"sourcesContent":["\"use client\";\n\n// src/collection-legacy.tsx\nimport React from \"react\";\nimport { createContextScope } from \"@radix-ui/react-context\";\nimport { useComposedRefs } from \"@radix-ui/react-compose-refs\";\nimport { createSlot } from \"@radix-ui/react-slot\";\nimport { jsx } from \"react/jsx-runtime\";\nfunction createCollection(name) {\n const PROVIDER_NAME = name + \"CollectionProvider\";\n const [createCollectionContext, createCollectionScope] = createContextScope(PROVIDER_NAME);\n const [CollectionProviderImpl, useCollectionContext] = createCollectionContext(\n PROVIDER_NAME,\n { collectionRef: { current: null }, itemMap: /* @__PURE__ */ new Map() }\n );\n const CollectionProvider = (props) => {\n const { scope, children } = props;\n const ref = React.useRef(null);\n const itemMap = React.useRef(/* @__PURE__ */ new Map()).current;\n return /* @__PURE__ */ jsx(CollectionProviderImpl, { scope, itemMap, collectionRef: ref, children });\n };\n CollectionProvider.displayName = PROVIDER_NAME;\n const COLLECTION_SLOT_NAME = name + \"CollectionSlot\";\n const CollectionSlotImpl = createSlot(COLLECTION_SLOT_NAME);\n const CollectionSlot = React.forwardRef(\n (props, forwardedRef) => {\n const { scope, children } = props;\n const context = useCollectionContext(COLLECTION_SLOT_NAME, scope);\n const composedRefs = useComposedRefs(forwardedRef, context.collectionRef);\n return /* @__PURE__ */ jsx(CollectionSlotImpl, { ref: composedRefs, children });\n }\n );\n CollectionSlot.displayName = COLLECTION_SLOT_NAME;\n const ITEM_SLOT_NAME = name + \"CollectionItemSlot\";\n const ITEM_DATA_ATTR = \"data-radix-collection-item\";\n const CollectionItemSlotImpl = createSlot(ITEM_SLOT_NAME);\n const CollectionItemSlot = React.forwardRef(\n (props, forwardedRef) => {\n const { scope, children, ...itemData } = props;\n const ref = React.useRef(null);\n const composedRefs = useComposedRefs(forwardedRef, ref);\n const context = useCollectionContext(ITEM_SLOT_NAME, scope);\n React.useEffect(() => {\n context.itemMap.set(ref, { ref, ...itemData });\n return () => void context.itemMap.delete(ref);\n });\n return /* @__PURE__ */ jsx(CollectionItemSlotImpl, { ...{ [ITEM_DATA_ATTR]: \"\" }, ref: composedRefs, children });\n }\n );\n CollectionItemSlot.displayName = ITEM_SLOT_NAME;\n function useCollection(scope) {\n const context = useCollectionContext(name + \"CollectionConsumer\", scope);\n const getItems = React.useCallback(() => {\n const collectionNode = context.collectionRef.current;\n if (!collectionNode) return [];\n const orderedNodes = Array.from(collectionNode.querySelectorAll(`[${ITEM_DATA_ATTR}]`));\n const items = Array.from(context.itemMap.values());\n const orderedItems = items.sort(\n (a, b) => orderedNodes.indexOf(a.ref.current) - orderedNodes.indexOf(b.ref.current)\n );\n return orderedItems;\n }, [context.collectionRef, context.itemMap]);\n return getItems;\n }\n return [\n { Provider: CollectionProvider, Slot: CollectionSlot, ItemSlot: CollectionItemSlot },\n useCollection,\n createCollectionScope\n ];\n}\n\n// src/collection.tsx\nimport React2 from \"react\";\nimport { createContextScope as createContextScope2 } from \"@radix-ui/react-context\";\nimport { useComposedRefs as useComposedRefs2 } from \"@radix-ui/react-compose-refs\";\nimport { createSlot as createSlot2 } from \"@radix-ui/react-slot\";\n\n// src/ordered-dictionary.ts\nvar __instanciated = /* @__PURE__ */ new WeakMap();\nvar OrderedDict = class _OrderedDict extends Map {\n #keys;\n constructor(entries) {\n super(entries);\n this.#keys = [...super.keys()];\n __instanciated.set(this, true);\n }\n set(key, value) {\n if (__instanciated.get(this)) {\n if (this.has(key)) {\n this.#keys[this.#keys.indexOf(key)] = key;\n } else {\n this.#keys.push(key);\n }\n }\n super.set(key, value);\n return this;\n }\n insert(index, key, value) {\n const has = this.has(key);\n const length = this.#keys.length;\n const relativeIndex = toSafeInteger(index);\n let actualIndex = relativeIndex >= 0 ? relativeIndex : length + relativeIndex;\n const safeIndex = actualIndex < 0 || actualIndex >= length ? -1 : actualIndex;\n if (safeIndex === this.size || has && safeIndex === this.size - 1 || safeIndex === -1) {\n this.set(key, value);\n return this;\n }\n const size = this.size + (has ? 0 : 1);\n if (relativeIndex < 0) {\n actualIndex++;\n }\n const keys = [...this.#keys];\n let nextValue;\n let shouldSkip = false;\n for (let i = actualIndex; i < size; i++) {\n if (actualIndex === i) {\n let nextKey = keys[i];\n if (keys[i] === key) {\n nextKey = keys[i + 1];\n }\n if (has) {\n this.delete(key);\n }\n nextValue = this.get(nextKey);\n this.set(key, value);\n } else {\n if (!shouldSkip && keys[i - 1] === key) {\n shouldSkip = true;\n }\n const currentKey = keys[shouldSkip ? i : i - 1];\n const currentValue = nextValue;\n nextValue = this.get(currentKey);\n this.delete(currentKey);\n this.set(currentKey, currentValue);\n }\n }\n return this;\n }\n with(index, key, value) {\n const copy = new _OrderedDict(this);\n copy.insert(index, key, value);\n return copy;\n }\n before(key) {\n const index = this.#keys.indexOf(key) - 1;\n if (index < 0) {\n return void 0;\n }\n return this.entryAt(index);\n }\n /**\n * Sets a new key-value pair at the position before the given key.\n */\n setBefore(key, newKey, value) {\n const index = this.#keys.indexOf(key);\n if (index === -1) {\n return this;\n }\n return this.insert(index, newKey, value);\n }\n after(key) {\n let index = this.#keys.indexOf(key);\n index = index === -1 || index === this.size - 1 ? -1 : index + 1;\n if (index === -1) {\n return void 0;\n }\n return this.entryAt(index);\n }\n /**\n * Sets a new key-value pair at the position after the given key.\n */\n setAfter(key, newKey, value) {\n const index = this.#keys.indexOf(key);\n if (index === -1) {\n return this;\n }\n return this.insert(index + 1, newKey, value);\n }\n first() {\n return this.entryAt(0);\n }\n last() {\n return this.entryAt(-1);\n }\n clear() {\n this.#keys = [];\n return super.clear();\n }\n delete(key) {\n const deleted = super.delete(key);\n if (deleted) {\n this.#keys.splice(this.#keys.indexOf(key), 1);\n }\n return deleted;\n }\n deleteAt(index) {\n const key = this.keyAt(index);\n if (key !== void 0) {\n return this.delete(key);\n }\n return false;\n }\n at(index) {\n const key = at(this.#keys, index);\n if (key !== void 0) {\n return this.get(key);\n }\n }\n entryAt(index) {\n const key = at(this.#keys, index);\n if (key !== void 0) {\n return [key, this.get(key)];\n }\n }\n indexOf(key) {\n return this.#keys.indexOf(key);\n }\n keyAt(index) {\n return at(this.#keys, index);\n }\n from(key, offset) {\n const index = this.indexOf(key);\n if (index === -1) {\n return void 0;\n }\n let dest = index + offset;\n if (dest < 0) dest = 0;\n if (dest >= this.size) dest = this.size - 1;\n return this.at(dest);\n }\n keyFrom(key, offset) {\n const index = this.indexOf(key);\n if (index === -1) {\n return void 0;\n }\n let dest = index + offset;\n if (dest < 0) dest = 0;\n if (dest >= this.size) dest = this.size - 1;\n return this.keyAt(dest);\n }\n find(predicate, thisArg) {\n let index = 0;\n for (const entry of this) {\n if (Reflect.apply(predicate, thisArg, [entry, index, this])) {\n return entry;\n }\n index++;\n }\n return void 0;\n }\n findIndex(predicate, thisArg) {\n let index = 0;\n for (const entry of this) {\n if (Reflect.apply(predicate, thisArg, [entry, index, this])) {\n return index;\n }\n index++;\n }\n return -1;\n }\n filter(predicate, thisArg) {\n const entries = [];\n let index = 0;\n for (const entry of this) {\n if (Reflect.apply(predicate, thisArg, [entry, index, this])) {\n entries.push(entry);\n }\n index++;\n }\n return new _OrderedDict(entries);\n }\n map(callbackfn, thisArg) {\n const entries = [];\n let index = 0;\n for (const entry of this) {\n entries.push([entry[0], Reflect.apply(callbackfn, thisArg, [entry, index, this])]);\n index++;\n }\n return new _OrderedDict(entries);\n }\n reduce(...args) {\n const [callbackfn, initialValue] = args;\n let index = 0;\n let accumulator = initialValue ?? this.at(0);\n for (const entry of this) {\n if (index === 0 && args.length === 1) {\n accumulator = entry;\n } else {\n accumulator = Reflect.apply(callbackfn, this, [accumulator, entry, index, this]);\n }\n index++;\n }\n return accumulator;\n }\n reduceRight(...args) {\n const [callbackfn, initialValue] = args;\n let accumulator = initialValue ?? this.at(-1);\n for (let index = this.size - 1; index >= 0; index--) {\n const entry = this.at(index);\n if (index === this.size - 1 && args.length === 1) {\n accumulator = entry;\n } else {\n accumulator = Reflect.apply(callbackfn, this, [accumulator, entry, index, this]);\n }\n }\n return accumulator;\n }\n toSorted(compareFn) {\n const entries = [...this.entries()].sort(compareFn);\n return new _OrderedDict(entries);\n }\n toReversed() {\n const reversed = new _OrderedDict();\n for (let index = this.size - 1; index >= 0; index--) {\n const key = this.keyAt(index);\n const element = this.get(key);\n reversed.set(key, element);\n }\n return reversed;\n }\n toSpliced(...args) {\n const entries = [...this.entries()];\n entries.splice(...args);\n return new _OrderedDict(entries);\n }\n slice(start, end) {\n const result = new _OrderedDict();\n let stop = this.size - 1;\n if (start === void 0) {\n return result;\n }\n if (start < 0) {\n start = start + this.size;\n }\n if (end !== void 0 && end > 0) {\n stop = end - 1;\n }\n for (let index = start; index <= stop; index++) {\n const key = this.keyAt(index);\n const element = this.get(key);\n result.set(key, element);\n }\n return result;\n }\n every(predicate, thisArg) {\n let index = 0;\n for (const entry of this) {\n if (!Reflect.apply(predicate, thisArg, [entry, index, this])) {\n return false;\n }\n index++;\n }\n return true;\n }\n some(predicate, thisArg) {\n let index = 0;\n for (const entry of this) {\n if (Reflect.apply(predicate, thisArg, [entry, index, this])) {\n return true;\n }\n index++;\n }\n return false;\n }\n};\nfunction at(array, index) {\n if (\"at\" in Array.prototype) {\n return Array.prototype.at.call(array, index);\n }\n const actualIndex = toSafeIndex(array, index);\n return actualIndex === -1 ? void 0 : array[actualIndex];\n}\nfunction toSafeIndex(array, index) {\n const length = array.length;\n const relativeIndex = toSafeInteger(index);\n const actualIndex = relativeIndex >= 0 ? relativeIndex : length + relativeIndex;\n return actualIndex < 0 || actualIndex >= length ? -1 : actualIndex;\n}\nfunction toSafeInteger(number) {\n return number !== number || number === 0 ? 0 : Math.trunc(number);\n}\n\n// src/collection.tsx\nimport { jsx as jsx2 } from \"react/jsx-runtime\";\nfunction createCollection2(name) {\n const PROVIDER_NAME = name + \"CollectionProvider\";\n const [createCollectionContext, createCollectionScope] = createContextScope2(PROVIDER_NAME);\n const [CollectionContextProvider, useCollectionContext] = createCollectionContext(\n PROVIDER_NAME,\n {\n collectionElement: null,\n collectionRef: { current: null },\n collectionRefObject: { current: null },\n itemMap: new OrderedDict(),\n setItemMap: () => void 0\n }\n );\n const CollectionProvider = ({ state, ...props }) => {\n return state ? /* @__PURE__ */ jsx2(CollectionProviderImpl, { ...props, state }) : /* @__PURE__ */ jsx2(CollectionInit, { ...props });\n };\n CollectionProvider.displayName = PROVIDER_NAME;\n const CollectionInit = (props) => {\n const state = useInitCollection();\n return /* @__PURE__ */ jsx2(CollectionProviderImpl, { ...props, state });\n };\n CollectionInit.displayName = PROVIDER_NAME + \"Init\";\n const CollectionProviderImpl = (props) => {\n const { scope, children, state } = props;\n const ref = React2.useRef(null);\n const [collectionElement, setCollectionElement] = React2.useState(\n null\n );\n const composeRefs = useComposedRefs2(ref, setCollectionElement);\n const [itemMap, setItemMap] = state;\n React2.useEffect(() => {\n if (!collectionElement) return;\n const observer = getChildListObserver(() => {\n });\n observer.observe(collectionElement, {\n childList: true,\n subtree: true\n });\n return () => {\n observer.disconnect();\n };\n }, [collectionElement]);\n return /* @__PURE__ */ jsx2(\n CollectionContextProvider,\n {\n scope,\n itemMap,\n setItemMap,\n collectionRef: composeRefs,\n collectionRefObject: ref,\n collectionElement,\n children\n }\n );\n };\n CollectionProviderImpl.displayName = PROVIDER_NAME + \"Impl\";\n const COLLECTION_SLOT_NAME = name + \"CollectionSlot\";\n const CollectionSlotImpl = createSlot2(COLLECTION_SLOT_NAME);\n const CollectionSlot = React2.forwardRef(\n (props, forwardedRef) => {\n const { scope, children } = props;\n const context = useCollectionContext(COLLECTION_SLOT_NAME, scope);\n const composedRefs = useComposedRefs2(forwardedRef, context.collectionRef);\n return /* @__PURE__ */ jsx2(CollectionSlotImpl, { ref: composedRefs, children });\n }\n );\n CollectionSlot.displayName = COLLECTION_SLOT_NAME;\n const ITEM_SLOT_NAME = name + \"CollectionItemSlot\";\n const ITEM_DATA_ATTR = \"data-radix-collection-item\";\n const CollectionItemSlotImpl = createSlot2(ITEM_SLOT_NAME);\n const CollectionItemSlot = React2.forwardRef(\n (props, forwardedRef) => {\n const { scope, children, ...itemData } = props;\n const ref = React2.useRef(null);\n const [element, setElement] = React2.useState(null);\n const composedRefs = useComposedRefs2(forwardedRef, ref, setElement);\n const context = useCollectionContext(ITEM_SLOT_NAME, scope);\n const { setItemMap } = context;\n const itemDataRef = React2.useRef(itemData);\n if (!shallowEqual(itemDataRef.current, itemData)) {\n itemDataRef.current = itemData;\n }\n const memoizedItemData = itemDataRef.current;\n React2.useEffect(() => {\n const itemData2 = memoizedItemData;\n setItemMap((map) => {\n if (!element) {\n return map;\n }\n if (!map.has(element)) {\n map.set(element, { ...itemData2, element });\n return map.toSorted(sortByDocumentPosition);\n }\n return map.set(element, { ...itemData2, element }).toSorted(sortByDocumentPosition);\n });\n return () => {\n setItemMap((map) => {\n if (!element || !map.has(element)) {\n return map;\n }\n map.delete(element);\n return new OrderedDict(map);\n });\n };\n }, [element, memoizedItemData, setItemMap]);\n return /* @__PURE__ */ jsx2(CollectionItemSlotImpl, { ...{ [ITEM_DATA_ATTR]: \"\" }, ref: composedRefs, children });\n }\n );\n CollectionItemSlot.displayName = ITEM_SLOT_NAME;\n function useInitCollection() {\n return React2.useState(new OrderedDict());\n }\n function useCollection(scope) {\n const { itemMap } = useCollectionContext(name + \"CollectionConsumer\", scope);\n return itemMap;\n }\n const functions = {\n createCollectionScope,\n useCollection,\n useInitCollection\n };\n return [\n { Provider: CollectionProvider, Slot: CollectionSlot, ItemSlot: CollectionItemSlot },\n functions\n ];\n}\nfunction shallowEqual(a, b) {\n if (a === b) return true;\n if (typeof a !== \"object\" || typeof b !== \"object\") return false;\n if (a == null || b == null) return false;\n const keysA = Object.keys(a);\n const keysB = Object.keys(b);\n if (keysA.length !== keysB.length) return false;\n for (const key of keysA) {\n if (!Object.prototype.hasOwnProperty.call(b, key)) return false;\n if (a[key] !== b[key]) return false;\n }\n return true;\n}\nfunction isElementPreceding(a, b) {\n return !!(b.compareDocumentPosition(a) & Node.DOCUMENT_POSITION_PRECEDING);\n}\nfunction sortByDocumentPosition(a, b) {\n return !a[1].element || !b[1].element ? 0 : isElementPreceding(a[1].element, b[1].element) ? -1 : 1;\n}\nfunction getChildListObserver(callback) {\n const observer = new MutationObserver((mutationsList) => {\n for (const mutation of mutationsList) {\n if (mutation.type === \"childList\") {\n callback();\n return;\n }\n }\n });\n return observer;\n}\nexport {\n createCollection,\n createCollection2 as unstable_createCollection\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["createContextScope","jsx","createSlot","useComposedRefs"],"mappings":";;;;;;;AAQA,SAAS,iBAAiB,MAAM;AAC9B,QAAM,gBAAgB,OAAO;AAC7B,QAAM,CAAC,yBAAyB,qBAAqB,IAAIA,MAAAA,mBAAmB,aAAa;AACzF,QAAM,CAAC,wBAAwB,oBAAoB,IAAI;AAAA,IACrD;AAAA,IACA,EAAE,eAAe,EAAE,SAAS,KAAI,GAAI,SAAyB,oBAAI,IAAG,EAAE;AAAA,EAC1E;AACE,QAAM,qBAAqB,CAAC,UAAU;AACpC,UAAM,EAAE,OAAO,SAAQ,IAAK;AAC5B,UAAM,MAAM,MAAM,OAAO,IAAI;AAC7B,UAAM,UAAU,MAAM,OAAuB,oBAAI,IAAG,CAAE,EAAE;AACxD,WAAuBC,2BAAAA,IAAI,wBAAwB,EAAE,OAAO,SAAS,eAAe,KAAK,UAAU;AAAA,EACrG;AACA,qBAAmB,cAAc;AACjC,QAAM,uBAAuB,OAAO;AACpC,QAAM,qBAAqBC,QAAAA,WAAW,oBAAoB;AAC1D,QAAM,iBAAiB,MAAM;AAAA,IAC3B,CAAC,OAAO,iBAAiB;AACvB,YAAM,EAAE,OAAO,SAAQ,IAAK;AAC5B,YAAM,UAAU,qBAAqB,sBAAsB,KAAK;AAChE,YAAM,eAAeC,QAAAA,gBAAgB,cAAc,QAAQ,aAAa;AACxE,aAAuBF,2BAAAA,IAAI,oBAAoB,EAAE,KAAK,cAAc,SAAQ,CAAE;AAAA,IAChF;AAAA,EACJ;AACE,iBAAe,cAAc;AAC7B,QAAM,iBAAiB,OAAO;AAC9B,QAAM,iBAAiB;AACvB,QAAM,yBAAyBC,QAAAA,WAAW,cAAc;AACxD,QAAM,qBAAqB,MAAM;AAAA,IAC/B,CAAC,OAAO,iBAAiB;AACvB,YAAM,EAAE,OAAO,UAAU,GAAG,SAAQ,IAAK;AACzC,YAAM,MAAM,MAAM,OAAO,IAAI;AAC7B,YAAM,eAAeC,QAAAA,gBAAgB,cAAc,GAAG;AACtD,YAAM,UAAU,qBAAqB,gBAAgB,KAAK;AAC1D,YAAM,UAAU,MAAM;AACpB,gBAAQ,QAAQ,IAAI,KAAK,EAAE,KAAK,GAAG,UAAU;AAC7C,eAAO,MAAM,KAAK,QAAQ,QAAQ,OAAO,GAAG;AAAA,MAC9C,CAAC;AACD,aAAuBF,+BAAI,wBAAwB,EAAE,GAAG,EAAE,CAAC,cAAc,GAAG,GAAE,GAAI,KAAK,cAAc,UAAU;AAAA,IACjH;AAAA,EACJ;AACE,qBAAmB,cAAc;AACjC,WAAS,cAAc,OAAO;AAC5B,UAAM,UAAU,qBAAqB,OAAO,sBAAsB,KAAK;AACvE,UAAM,WAAW,MAAM,YAAY,MAAM;AACvC,YAAM,iBAAiB,QAAQ,cAAc;AAC7C,UAAI,CAAC,eAAgB,QAAO,CAAA;AAC5B,YAAM,eAAe,MAAM,KAAK,eAAe,iBAAiB,IAAI,cAAc,GAAG,CAAC;AACtF,YAAM,QAAQ,MAAM,KAAK,QAAQ,QAAQ,QAAQ;AACjD,YAAM,eAAe,MAAM;AAAA,QACzB,CAAC,GAAG,MAAM,aAAa,QAAQ,EAAE,IAAI,OAAO,IAAI,aAAa,QAAQ,EAAE,IAAI,OAAO;AAAA,MAC1F;AACM,aAAO;AAAA,IACT,GAAG,CAAC,QAAQ,eAAe,QAAQ,OAAO,CAAC;AAC3C,WAAO;AAAA,EACT;AACA,SAAO;AAAA,IACL,EAAE,UAAU,oBAAoB,MAAM,gBAAgB,UAAU,mBAAkB;AAAA,IAClF;AAAA,IACA;AAAA,EACJ;AACA;;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import React__default from "react";
|
|
2
|
+
import { createContextScope } from "../../react-context/dist/index.js";
|
|
3
|
+
import { useComposedRefs } from "../../react-compose-refs/dist/index.js";
|
|
4
|
+
import { createSlot } from "../node_modules/@radix-ui/react-slot/dist/index.js";
|
|
5
|
+
import { jsx } from "react/jsx-runtime";
|
|
6
|
+
function createCollection(name) {
|
|
7
|
+
const PROVIDER_NAME = name + "CollectionProvider";
|
|
8
|
+
const [createCollectionContext, createCollectionScope] = createContextScope(PROVIDER_NAME);
|
|
9
|
+
const [CollectionProviderImpl, useCollectionContext] = createCollectionContext(
|
|
10
|
+
PROVIDER_NAME,
|
|
11
|
+
{ collectionRef: { current: null }, itemMap: /* @__PURE__ */ new Map() }
|
|
12
|
+
);
|
|
13
|
+
const CollectionProvider = (props) => {
|
|
14
|
+
const { scope, children } = props;
|
|
15
|
+
const ref = React__default.useRef(null);
|
|
16
|
+
const itemMap = React__default.useRef(/* @__PURE__ */ new Map()).current;
|
|
17
|
+
return /* @__PURE__ */ jsx(CollectionProviderImpl, { scope, itemMap, collectionRef: ref, children });
|
|
18
|
+
};
|
|
19
|
+
CollectionProvider.displayName = PROVIDER_NAME;
|
|
20
|
+
const COLLECTION_SLOT_NAME = name + "CollectionSlot";
|
|
21
|
+
const CollectionSlotImpl = createSlot(COLLECTION_SLOT_NAME);
|
|
22
|
+
const CollectionSlot = React__default.forwardRef(
|
|
23
|
+
(props, forwardedRef) => {
|
|
24
|
+
const { scope, children } = props;
|
|
25
|
+
const context = useCollectionContext(COLLECTION_SLOT_NAME, scope);
|
|
26
|
+
const composedRefs = useComposedRefs(forwardedRef, context.collectionRef);
|
|
27
|
+
return /* @__PURE__ */ jsx(CollectionSlotImpl, { ref: composedRefs, children });
|
|
28
|
+
}
|
|
29
|
+
);
|
|
30
|
+
CollectionSlot.displayName = COLLECTION_SLOT_NAME;
|
|
31
|
+
const ITEM_SLOT_NAME = name + "CollectionItemSlot";
|
|
32
|
+
const ITEM_DATA_ATTR = "data-radix-collection-item";
|
|
33
|
+
const CollectionItemSlotImpl = createSlot(ITEM_SLOT_NAME);
|
|
34
|
+
const CollectionItemSlot = React__default.forwardRef(
|
|
35
|
+
(props, forwardedRef) => {
|
|
36
|
+
const { scope, children, ...itemData } = props;
|
|
37
|
+
const ref = React__default.useRef(null);
|
|
38
|
+
const composedRefs = useComposedRefs(forwardedRef, ref);
|
|
39
|
+
const context = useCollectionContext(ITEM_SLOT_NAME, scope);
|
|
40
|
+
React__default.useEffect(() => {
|
|
41
|
+
context.itemMap.set(ref, { ref, ...itemData });
|
|
42
|
+
return () => void context.itemMap.delete(ref);
|
|
43
|
+
});
|
|
44
|
+
return /* @__PURE__ */ jsx(CollectionItemSlotImpl, { ...{ [ITEM_DATA_ATTR]: "" }, ref: composedRefs, children });
|
|
45
|
+
}
|
|
46
|
+
);
|
|
47
|
+
CollectionItemSlot.displayName = ITEM_SLOT_NAME;
|
|
48
|
+
function useCollection(scope) {
|
|
49
|
+
const context = useCollectionContext(name + "CollectionConsumer", scope);
|
|
50
|
+
const getItems = React__default.useCallback(() => {
|
|
51
|
+
const collectionNode = context.collectionRef.current;
|
|
52
|
+
if (!collectionNode) return [];
|
|
53
|
+
const orderedNodes = Array.from(collectionNode.querySelectorAll(`[${ITEM_DATA_ATTR}]`));
|
|
54
|
+
const items = Array.from(context.itemMap.values());
|
|
55
|
+
const orderedItems = items.sort(
|
|
56
|
+
(a, b) => orderedNodes.indexOf(a.ref.current) - orderedNodes.indexOf(b.ref.current)
|
|
57
|
+
);
|
|
58
|
+
return orderedItems;
|
|
59
|
+
}, [context.collectionRef, context.itemMap]);
|
|
60
|
+
return getItems;
|
|
61
|
+
}
|
|
62
|
+
return [
|
|
63
|
+
{ Provider: CollectionProvider, Slot: CollectionSlot, ItemSlot: CollectionItemSlot },
|
|
64
|
+
useCollection,
|
|
65
|
+
createCollectionScope
|
|
66
|
+
];
|
|
67
|
+
}
|
|
68
|
+
export {
|
|
69
|
+
createCollection
|
|
70
|
+
};
|
|
71
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../../node_modules/@radix-ui/react-collection/dist/index.mjs"],"sourcesContent":["\"use client\";\n\n// src/collection-legacy.tsx\nimport React from \"react\";\nimport { createContextScope } from \"@radix-ui/react-context\";\nimport { useComposedRefs } from \"@radix-ui/react-compose-refs\";\nimport { createSlot } from \"@radix-ui/react-slot\";\nimport { jsx } from \"react/jsx-runtime\";\nfunction createCollection(name) {\n const PROVIDER_NAME = name + \"CollectionProvider\";\n const [createCollectionContext, createCollectionScope] = createContextScope(PROVIDER_NAME);\n const [CollectionProviderImpl, useCollectionContext] = createCollectionContext(\n PROVIDER_NAME,\n { collectionRef: { current: null }, itemMap: /* @__PURE__ */ new Map() }\n );\n const CollectionProvider = (props) => {\n const { scope, children } = props;\n const ref = React.useRef(null);\n const itemMap = React.useRef(/* @__PURE__ */ new Map()).current;\n return /* @__PURE__ */ jsx(CollectionProviderImpl, { scope, itemMap, collectionRef: ref, children });\n };\n CollectionProvider.displayName = PROVIDER_NAME;\n const COLLECTION_SLOT_NAME = name + \"CollectionSlot\";\n const CollectionSlotImpl = createSlot(COLLECTION_SLOT_NAME);\n const CollectionSlot = React.forwardRef(\n (props, forwardedRef) => {\n const { scope, children } = props;\n const context = useCollectionContext(COLLECTION_SLOT_NAME, scope);\n const composedRefs = useComposedRefs(forwardedRef, context.collectionRef);\n return /* @__PURE__ */ jsx(CollectionSlotImpl, { ref: composedRefs, children });\n }\n );\n CollectionSlot.displayName = COLLECTION_SLOT_NAME;\n const ITEM_SLOT_NAME = name + \"CollectionItemSlot\";\n const ITEM_DATA_ATTR = \"data-radix-collection-item\";\n const CollectionItemSlotImpl = createSlot(ITEM_SLOT_NAME);\n const CollectionItemSlot = React.forwardRef(\n (props, forwardedRef) => {\n const { scope, children, ...itemData } = props;\n const ref = React.useRef(null);\n const composedRefs = useComposedRefs(forwardedRef, ref);\n const context = useCollectionContext(ITEM_SLOT_NAME, scope);\n React.useEffect(() => {\n context.itemMap.set(ref, { ref, ...itemData });\n return () => void context.itemMap.delete(ref);\n });\n return /* @__PURE__ */ jsx(CollectionItemSlotImpl, { ...{ [ITEM_DATA_ATTR]: \"\" }, ref: composedRefs, children });\n }\n );\n CollectionItemSlot.displayName = ITEM_SLOT_NAME;\n function useCollection(scope) {\n const context = useCollectionContext(name + \"CollectionConsumer\", scope);\n const getItems = React.useCallback(() => {\n const collectionNode = context.collectionRef.current;\n if (!collectionNode) return [];\n const orderedNodes = Array.from(collectionNode.querySelectorAll(`[${ITEM_DATA_ATTR}]`));\n const items = Array.from(context.itemMap.values());\n const orderedItems = items.sort(\n (a, b) => orderedNodes.indexOf(a.ref.current) - orderedNodes.indexOf(b.ref.current)\n );\n return orderedItems;\n }, [context.collectionRef, context.itemMap]);\n return getItems;\n }\n return [\n { Provider: CollectionProvider, Slot: CollectionSlot, ItemSlot: CollectionItemSlot },\n useCollection,\n createCollectionScope\n ];\n}\n\n// src/collection.tsx\nimport React2 from \"react\";\nimport { createContextScope as createContextScope2 } from \"@radix-ui/react-context\";\nimport { useComposedRefs as useComposedRefs2 } from \"@radix-ui/react-compose-refs\";\nimport { createSlot as createSlot2 } from \"@radix-ui/react-slot\";\n\n// src/ordered-dictionary.ts\nvar __instanciated = /* @__PURE__ */ new WeakMap();\nvar OrderedDict = class _OrderedDict extends Map {\n #keys;\n constructor(entries) {\n super(entries);\n this.#keys = [...super.keys()];\n __instanciated.set(this, true);\n }\n set(key, value) {\n if (__instanciated.get(this)) {\n if (this.has(key)) {\n this.#keys[this.#keys.indexOf(key)] = key;\n } else {\n this.#keys.push(key);\n }\n }\n super.set(key, value);\n return this;\n }\n insert(index, key, value) {\n const has = this.has(key);\n const length = this.#keys.length;\n const relativeIndex = toSafeInteger(index);\n let actualIndex = relativeIndex >= 0 ? relativeIndex : length + relativeIndex;\n const safeIndex = actualIndex < 0 || actualIndex >= length ? -1 : actualIndex;\n if (safeIndex === this.size || has && safeIndex === this.size - 1 || safeIndex === -1) {\n this.set(key, value);\n return this;\n }\n const size = this.size + (has ? 0 : 1);\n if (relativeIndex < 0) {\n actualIndex++;\n }\n const keys = [...this.#keys];\n let nextValue;\n let shouldSkip = false;\n for (let i = actualIndex; i < size; i++) {\n if (actualIndex === i) {\n let nextKey = keys[i];\n if (keys[i] === key) {\n nextKey = keys[i + 1];\n }\n if (has) {\n this.delete(key);\n }\n nextValue = this.get(nextKey);\n this.set(key, value);\n } else {\n if (!shouldSkip && keys[i - 1] === key) {\n shouldSkip = true;\n }\n const currentKey = keys[shouldSkip ? i : i - 1];\n const currentValue = nextValue;\n nextValue = this.get(currentKey);\n this.delete(currentKey);\n this.set(currentKey, currentValue);\n }\n }\n return this;\n }\n with(index, key, value) {\n const copy = new _OrderedDict(this);\n copy.insert(index, key, value);\n return copy;\n }\n before(key) {\n const index = this.#keys.indexOf(key) - 1;\n if (index < 0) {\n return void 0;\n }\n return this.entryAt(index);\n }\n /**\n * Sets a new key-value pair at the position before the given key.\n */\n setBefore(key, newKey, value) {\n const index = this.#keys.indexOf(key);\n if (index === -1) {\n return this;\n }\n return this.insert(index, newKey, value);\n }\n after(key) {\n let index = this.#keys.indexOf(key);\n index = index === -1 || index === this.size - 1 ? -1 : index + 1;\n if (index === -1) {\n return void 0;\n }\n return this.entryAt(index);\n }\n /**\n * Sets a new key-value pair at the position after the given key.\n */\n setAfter(key, newKey, value) {\n const index = this.#keys.indexOf(key);\n if (index === -1) {\n return this;\n }\n return this.insert(index + 1, newKey, value);\n }\n first() {\n return this.entryAt(0);\n }\n last() {\n return this.entryAt(-1);\n }\n clear() {\n this.#keys = [];\n return super.clear();\n }\n delete(key) {\n const deleted = super.delete(key);\n if (deleted) {\n this.#keys.splice(this.#keys.indexOf(key), 1);\n }\n return deleted;\n }\n deleteAt(index) {\n const key = this.keyAt(index);\n if (key !== void 0) {\n return this.delete(key);\n }\n return false;\n }\n at(index) {\n const key = at(this.#keys, index);\n if (key !== void 0) {\n return this.get(key);\n }\n }\n entryAt(index) {\n const key = at(this.#keys, index);\n if (key !== void 0) {\n return [key, this.get(key)];\n }\n }\n indexOf(key) {\n return this.#keys.indexOf(key);\n }\n keyAt(index) {\n return at(this.#keys, index);\n }\n from(key, offset) {\n const index = this.indexOf(key);\n if (index === -1) {\n return void 0;\n }\n let dest = index + offset;\n if (dest < 0) dest = 0;\n if (dest >= this.size) dest = this.size - 1;\n return this.at(dest);\n }\n keyFrom(key, offset) {\n const index = this.indexOf(key);\n if (index === -1) {\n return void 0;\n }\n let dest = index + offset;\n if (dest < 0) dest = 0;\n if (dest >= this.size) dest = this.size - 1;\n return this.keyAt(dest);\n }\n find(predicate, thisArg) {\n let index = 0;\n for (const entry of this) {\n if (Reflect.apply(predicate, thisArg, [entry, index, this])) {\n return entry;\n }\n index++;\n }\n return void 0;\n }\n findIndex(predicate, thisArg) {\n let index = 0;\n for (const entry of this) {\n if (Reflect.apply(predicate, thisArg, [entry, index, this])) {\n return index;\n }\n index++;\n }\n return -1;\n }\n filter(predicate, thisArg) {\n const entries = [];\n let index = 0;\n for (const entry of this) {\n if (Reflect.apply(predicate, thisArg, [entry, index, this])) {\n entries.push(entry);\n }\n index++;\n }\n return new _OrderedDict(entries);\n }\n map(callbackfn, thisArg) {\n const entries = [];\n let index = 0;\n for (const entry of this) {\n entries.push([entry[0], Reflect.apply(callbackfn, thisArg, [entry, index, this])]);\n index++;\n }\n return new _OrderedDict(entries);\n }\n reduce(...args) {\n const [callbackfn, initialValue] = args;\n let index = 0;\n let accumulator = initialValue ?? this.at(0);\n for (const entry of this) {\n if (index === 0 && args.length === 1) {\n accumulator = entry;\n } else {\n accumulator = Reflect.apply(callbackfn, this, [accumulator, entry, index, this]);\n }\n index++;\n }\n return accumulator;\n }\n reduceRight(...args) {\n const [callbackfn, initialValue] = args;\n let accumulator = initialValue ?? this.at(-1);\n for (let index = this.size - 1; index >= 0; index--) {\n const entry = this.at(index);\n if (index === this.size - 1 && args.length === 1) {\n accumulator = entry;\n } else {\n accumulator = Reflect.apply(callbackfn, this, [accumulator, entry, index, this]);\n }\n }\n return accumulator;\n }\n toSorted(compareFn) {\n const entries = [...this.entries()].sort(compareFn);\n return new _OrderedDict(entries);\n }\n toReversed() {\n const reversed = new _OrderedDict();\n for (let index = this.size - 1; index >= 0; index--) {\n const key = this.keyAt(index);\n const element = this.get(key);\n reversed.set(key, element);\n }\n return reversed;\n }\n toSpliced(...args) {\n const entries = [...this.entries()];\n entries.splice(...args);\n return new _OrderedDict(entries);\n }\n slice(start, end) {\n const result = new _OrderedDict();\n let stop = this.size - 1;\n if (start === void 0) {\n return result;\n }\n if (start < 0) {\n start = start + this.size;\n }\n if (end !== void 0 && end > 0) {\n stop = end - 1;\n }\n for (let index = start; index <= stop; index++) {\n const key = this.keyAt(index);\n const element = this.get(key);\n result.set(key, element);\n }\n return result;\n }\n every(predicate, thisArg) {\n let index = 0;\n for (const entry of this) {\n if (!Reflect.apply(predicate, thisArg, [entry, index, this])) {\n return false;\n }\n index++;\n }\n return true;\n }\n some(predicate, thisArg) {\n let index = 0;\n for (const entry of this) {\n if (Reflect.apply(predicate, thisArg, [entry, index, this])) {\n return true;\n }\n index++;\n }\n return false;\n }\n};\nfunction at(array, index) {\n if (\"at\" in Array.prototype) {\n return Array.prototype.at.call(array, index);\n }\n const actualIndex = toSafeIndex(array, index);\n return actualIndex === -1 ? void 0 : array[actualIndex];\n}\nfunction toSafeIndex(array, index) {\n const length = array.length;\n const relativeIndex = toSafeInteger(index);\n const actualIndex = relativeIndex >= 0 ? relativeIndex : length + relativeIndex;\n return actualIndex < 0 || actualIndex >= length ? -1 : actualIndex;\n}\nfunction toSafeInteger(number) {\n return number !== number || number === 0 ? 0 : Math.trunc(number);\n}\n\n// src/collection.tsx\nimport { jsx as jsx2 } from \"react/jsx-runtime\";\nfunction createCollection2(name) {\n const PROVIDER_NAME = name + \"CollectionProvider\";\n const [createCollectionContext, createCollectionScope] = createContextScope2(PROVIDER_NAME);\n const [CollectionContextProvider, useCollectionContext] = createCollectionContext(\n PROVIDER_NAME,\n {\n collectionElement: null,\n collectionRef: { current: null },\n collectionRefObject: { current: null },\n itemMap: new OrderedDict(),\n setItemMap: () => void 0\n }\n );\n const CollectionProvider = ({ state, ...props }) => {\n return state ? /* @__PURE__ */ jsx2(CollectionProviderImpl, { ...props, state }) : /* @__PURE__ */ jsx2(CollectionInit, { ...props });\n };\n CollectionProvider.displayName = PROVIDER_NAME;\n const CollectionInit = (props) => {\n const state = useInitCollection();\n return /* @__PURE__ */ jsx2(CollectionProviderImpl, { ...props, state });\n };\n CollectionInit.displayName = PROVIDER_NAME + \"Init\";\n const CollectionProviderImpl = (props) => {\n const { scope, children, state } = props;\n const ref = React2.useRef(null);\n const [collectionElement, setCollectionElement] = React2.useState(\n null\n );\n const composeRefs = useComposedRefs2(ref, setCollectionElement);\n const [itemMap, setItemMap] = state;\n React2.useEffect(() => {\n if (!collectionElement) return;\n const observer = getChildListObserver(() => {\n });\n observer.observe(collectionElement, {\n childList: true,\n subtree: true\n });\n return () => {\n observer.disconnect();\n };\n }, [collectionElement]);\n return /* @__PURE__ */ jsx2(\n CollectionContextProvider,\n {\n scope,\n itemMap,\n setItemMap,\n collectionRef: composeRefs,\n collectionRefObject: ref,\n collectionElement,\n children\n }\n );\n };\n CollectionProviderImpl.displayName = PROVIDER_NAME + \"Impl\";\n const COLLECTION_SLOT_NAME = name + \"CollectionSlot\";\n const CollectionSlotImpl = createSlot2(COLLECTION_SLOT_NAME);\n const CollectionSlot = React2.forwardRef(\n (props, forwardedRef) => {\n const { scope, children } = props;\n const context = useCollectionContext(COLLECTION_SLOT_NAME, scope);\n const composedRefs = useComposedRefs2(forwardedRef, context.collectionRef);\n return /* @__PURE__ */ jsx2(CollectionSlotImpl, { ref: composedRefs, children });\n }\n );\n CollectionSlot.displayName = COLLECTION_SLOT_NAME;\n const ITEM_SLOT_NAME = name + \"CollectionItemSlot\";\n const ITEM_DATA_ATTR = \"data-radix-collection-item\";\n const CollectionItemSlotImpl = createSlot2(ITEM_SLOT_NAME);\n const CollectionItemSlot = React2.forwardRef(\n (props, forwardedRef) => {\n const { scope, children, ...itemData } = props;\n const ref = React2.useRef(null);\n const [element, setElement] = React2.useState(null);\n const composedRefs = useComposedRefs2(forwardedRef, ref, setElement);\n const context = useCollectionContext(ITEM_SLOT_NAME, scope);\n const { setItemMap } = context;\n const itemDataRef = React2.useRef(itemData);\n if (!shallowEqual(itemDataRef.current, itemData)) {\n itemDataRef.current = itemData;\n }\n const memoizedItemData = itemDataRef.current;\n React2.useEffect(() => {\n const itemData2 = memoizedItemData;\n setItemMap((map) => {\n if (!element) {\n return map;\n }\n if (!map.has(element)) {\n map.set(element, { ...itemData2, element });\n return map.toSorted(sortByDocumentPosition);\n }\n return map.set(element, { ...itemData2, element }).toSorted(sortByDocumentPosition);\n });\n return () => {\n setItemMap((map) => {\n if (!element || !map.has(element)) {\n return map;\n }\n map.delete(element);\n return new OrderedDict(map);\n });\n };\n }, [element, memoizedItemData, setItemMap]);\n return /* @__PURE__ */ jsx2(CollectionItemSlotImpl, { ...{ [ITEM_DATA_ATTR]: \"\" }, ref: composedRefs, children });\n }\n );\n CollectionItemSlot.displayName = ITEM_SLOT_NAME;\n function useInitCollection() {\n return React2.useState(new OrderedDict());\n }\n function useCollection(scope) {\n const { itemMap } = useCollectionContext(name + \"CollectionConsumer\", scope);\n return itemMap;\n }\n const functions = {\n createCollectionScope,\n useCollection,\n useInitCollection\n };\n return [\n { Provider: CollectionProvider, Slot: CollectionSlot, ItemSlot: CollectionItemSlot },\n functions\n ];\n}\nfunction shallowEqual(a, b) {\n if (a === b) return true;\n if (typeof a !== \"object\" || typeof b !== \"object\") return false;\n if (a == null || b == null) return false;\n const keysA = Object.keys(a);\n const keysB = Object.keys(b);\n if (keysA.length !== keysB.length) return false;\n for (const key of keysA) {\n if (!Object.prototype.hasOwnProperty.call(b, key)) return false;\n if (a[key] !== b[key]) return false;\n }\n return true;\n}\nfunction isElementPreceding(a, b) {\n return !!(b.compareDocumentPosition(a) & Node.DOCUMENT_POSITION_PRECEDING);\n}\nfunction sortByDocumentPosition(a, b) {\n return !a[1].element || !b[1].element ? 0 : isElementPreceding(a[1].element, b[1].element) ? -1 : 1;\n}\nfunction getChildListObserver(callback) {\n const observer = new MutationObserver((mutationsList) => {\n for (const mutation of mutationsList) {\n if (mutation.type === \"childList\") {\n callback();\n return;\n }\n }\n });\n return observer;\n}\nexport {\n createCollection,\n createCollection2 as unstable_createCollection\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["React"],"mappings":";;;;;AAQA,SAAS,iBAAiB,MAAM;AAC9B,QAAM,gBAAgB,OAAO;AAC7B,QAAM,CAAC,yBAAyB,qBAAqB,IAAI,mBAAmB,aAAa;AACzF,QAAM,CAAC,wBAAwB,oBAAoB,IAAI;AAAA,IACrD;AAAA,IACA,EAAE,eAAe,EAAE,SAAS,KAAI,GAAI,SAAyB,oBAAI,IAAG,EAAE;AAAA,EAC1E;AACE,QAAM,qBAAqB,CAAC,UAAU;AACpC,UAAM,EAAE,OAAO,SAAQ,IAAK;AAC5B,UAAM,MAAMA,eAAM,OAAO,IAAI;AAC7B,UAAM,UAAUA,eAAM,OAAuB,oBAAI,IAAG,CAAE,EAAE;AACxD,WAAuB,oBAAI,wBAAwB,EAAE,OAAO,SAAS,eAAe,KAAK,UAAU;AAAA,EACrG;AACA,qBAAmB,cAAc;AACjC,QAAM,uBAAuB,OAAO;AACpC,QAAM,qBAAqB,WAAW,oBAAoB;AAC1D,QAAM,iBAAiBA,eAAM;AAAA,IAC3B,CAAC,OAAO,iBAAiB;AACvB,YAAM,EAAE,OAAO,SAAQ,IAAK;AAC5B,YAAM,UAAU,qBAAqB,sBAAsB,KAAK;AAChE,YAAM,eAAe,gBAAgB,cAAc,QAAQ,aAAa;AACxE,aAAuB,oBAAI,oBAAoB,EAAE,KAAK,cAAc,SAAQ,CAAE;AAAA,IAChF;AAAA,EACJ;AACE,iBAAe,cAAc;AAC7B,QAAM,iBAAiB,OAAO;AAC9B,QAAM,iBAAiB;AACvB,QAAM,yBAAyB,WAAW,cAAc;AACxD,QAAM,qBAAqBA,eAAM;AAAA,IAC/B,CAAC,OAAO,iBAAiB;AACvB,YAAM,EAAE,OAAO,UAAU,GAAG,SAAQ,IAAK;AACzC,YAAM,MAAMA,eAAM,OAAO,IAAI;AAC7B,YAAM,eAAe,gBAAgB,cAAc,GAAG;AACtD,YAAM,UAAU,qBAAqB,gBAAgB,KAAK;AAC1DA,qBAAM,UAAU,MAAM;AACpB,gBAAQ,QAAQ,IAAI,KAAK,EAAE,KAAK,GAAG,UAAU;AAC7C,eAAO,MAAM,KAAK,QAAQ,QAAQ,OAAO,GAAG;AAAA,MAC9C,CAAC;AACD,aAAuB,oBAAI,wBAAwB,EAAE,GAAG,EAAE,CAAC,cAAc,GAAG,GAAE,GAAI,KAAK,cAAc,UAAU;AAAA,IACjH;AAAA,EACJ;AACE,qBAAmB,cAAc;AACjC,WAAS,cAAc,OAAO;AAC5B,UAAM,UAAU,qBAAqB,OAAO,sBAAsB,KAAK;AACvE,UAAM,WAAWA,eAAM,YAAY,MAAM;AACvC,YAAM,iBAAiB,QAAQ,cAAc;AAC7C,UAAI,CAAC,eAAgB,QAAO,CAAA;AAC5B,YAAM,eAAe,MAAM,KAAK,eAAe,iBAAiB,IAAI,cAAc,GAAG,CAAC;AACtF,YAAM,QAAQ,MAAM,KAAK,QAAQ,QAAQ,QAAQ;AACjD,YAAM,eAAe,MAAM;AAAA,QACzB,CAAC,GAAG,MAAM,aAAa,QAAQ,EAAE,IAAI,OAAO,IAAI,aAAa,QAAQ,EAAE,IAAI,OAAO;AAAA,MAC1F;AACM,aAAO;AAAA,IACT,GAAG,CAAC,QAAQ,eAAe,QAAQ,OAAO,CAAC;AAC3C,WAAO;AAAA,EACT;AACA,SAAO;AAAA,IACL,EAAE,UAAU,oBAAoB,MAAM,gBAAgB,UAAU,mBAAkB;AAAA,IAClF;AAAA,IACA;AAAA,EACJ;AACA;","x_google_ignoreList":[0]}
|