@orion-ds/react 4.9.0 → 4.9.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ComponentShowcase.cjs +1 -0
- package/dist/ComponentShowcase.mjs +600 -0
- package/dist/blocks/index.cjs +1 -0
- package/dist/blocks/index.mjs +74 -0
- package/dist/blocks/sections/ActivityFeed/ActivityFeed.cjs +1 -0
- package/dist/blocks/sections/ActivityFeed/ActivityFeed.mjs +77 -0
- package/dist/blocks/sections/AgentFolder/AgentFolder.cjs +1 -0
- package/dist/blocks/sections/AgentFolder/AgentFolder.mjs +25 -0
- package/dist/blocks/sections/AppDownload/AppDownload.cjs +1 -0
- package/dist/blocks/sections/AppDownload/AppDownload.mjs +108 -0
- package/dist/blocks/sections/Blog/Blog.cjs +1 -0
- package/dist/blocks/sections/Blog/Blog.mjs +85 -0
- package/dist/blocks/sections/Breadcrumbs/Breadcrumbs.cjs +1 -0
- package/dist/blocks/sections/Breadcrumbs/Breadcrumbs.mjs +35 -0
- package/dist/blocks/sections/CTA/CTA.cjs +1 -0
- package/dist/blocks/sections/CTA/CTA.mjs +27 -0
- package/dist/blocks/sections/CarouselSection/CarouselCard.cjs +1 -0
- package/dist/blocks/sections/CarouselSection/CarouselCard.mjs +18 -0
- package/dist/blocks/sections/CarouselSection/CarouselSection.cjs +1 -0
- package/dist/blocks/sections/CarouselSection/CarouselSection.mjs +104 -0
- package/dist/blocks/sections/Chat/Chat.cjs +1 -0
- package/dist/blocks/sections/Chat/Chat.mjs +93 -0
- package/dist/blocks/sections/Comparison/Comparison.cjs +1 -0
- package/dist/blocks/sections/Comparison/Comparison.mjs +47 -0
- package/dist/blocks/sections/Contact/Contact.cjs +1 -0
- package/dist/blocks/sections/Contact/Contact.mjs +27 -0
- package/dist/blocks/sections/EmptyState/EmptyState.cjs +1 -0
- package/dist/blocks/sections/EmptyState/EmptyState.mjs +21 -0
- package/dist/blocks/sections/FAQ/FAQ.cjs +1 -0
- package/dist/blocks/sections/FAQ/FAQ.mjs +37 -0
- package/dist/blocks/sections/FAQ/FAQItemCard.cjs +1 -0
- package/dist/blocks/sections/FAQ/FAQItemCard.mjs +58 -0
- package/dist/blocks/sections/Features/FeatureCard.cjs +1 -0
- package/dist/blocks/sections/Features/FeatureCard.mjs +16 -0
- package/dist/blocks/sections/Features/Features.cjs +1 -0
- package/dist/blocks/sections/Features/Features.mjs +28 -0
- package/dist/blocks/sections/Footer/Footer.cjs +1 -0
- package/dist/blocks/sections/Footer/Footer.mjs +98 -0
- package/dist/blocks/sections/Gallery/Gallery.cjs +1 -0
- package/dist/blocks/sections/Gallery/Gallery.mjs +34 -0
- package/dist/blocks/sections/Hero/Hero.cjs +1 -0
- package/dist/blocks/sections/Hero/Hero.mjs +37 -0
- package/dist/blocks/sections/Hero/HeroHighlight.cjs +1 -0
- package/dist/blocks/sections/Hero/HeroHighlight.mjs +10 -0
- package/dist/blocks/sections/LogoCloud/LogoCloud.cjs +1 -0
- package/dist/blocks/sections/LogoCloud/LogoCloud.mjs +31 -0
- package/dist/blocks/sections/Newsletter/Newsletter.cjs +1 -0
- package/dist/blocks/sections/Newsletter/Newsletter.mjs +50 -0
- package/dist/blocks/sections/Pricing/Pricing.cjs +1 -0
- package/dist/blocks/sections/Pricing/Pricing.mjs +18 -0
- package/dist/blocks/sections/Pricing/PricingCard.cjs +1 -0
- package/dist/blocks/sections/Pricing/PricingCard.mjs +49 -0
- package/dist/blocks/sections/SettingsLayout/SettingsLayout.cjs +1 -0
- package/dist/blocks/sections/SettingsLayout/SettingsLayout.mjs +54 -0
- package/dist/blocks/sections/SocialProof/SocialProof.cjs +1 -0
- package/dist/blocks/sections/SocialProof/SocialProof.mjs +40 -0
- package/dist/blocks/sections/Stats/StatItemCard.cjs +1 -0
- package/dist/blocks/sections/Stats/StatItemCard.mjs +18 -0
- package/dist/blocks/sections/Stats/Stats.cjs +1 -0
- package/dist/blocks/sections/Stats/Stats.mjs +25 -0
- package/dist/blocks/sections/Stepper/Stepper.cjs +1 -0
- package/dist/blocks/sections/Stepper/Stepper.mjs +87 -0
- package/dist/blocks/sections/Team/Team.cjs +1 -0
- package/dist/blocks/sections/Team/Team.mjs +21 -0
- package/dist/blocks/sections/Team/TeamMemberCard.cjs +1 -0
- package/dist/blocks/sections/Team/TeamMemberCard.mjs +19 -0
- package/dist/blocks/sections/Testimonials/TestimonialCard.cjs +1 -0
- package/dist/blocks/sections/Testimonials/TestimonialCard.mjs +47 -0
- package/dist/blocks/sections/Testimonials/Testimonials.cjs +1 -0
- package/dist/blocks/sections/Testimonials/Testimonials.mjs +28 -0
- package/dist/blocks/sections/Timeline/Timeline.cjs +1 -0
- package/dist/blocks/sections/Timeline/Timeline.mjs +53 -0
- package/dist/blocks/templates/app/AgentEditor/AgentEditor.cjs +1 -0
- package/dist/blocks/templates/app/AgentEditor/AgentEditor.mjs +158 -0
- package/dist/blocks/templates/app/AgentWorkspace/AgentWorkspace.cjs +1 -0
- package/dist/blocks/templates/app/AgentWorkspace/AgentWorkspace.mjs +153 -0
- package/dist/blocks/templates/app/ChatPageTemplate/ChatPageTemplate.cjs +1 -0
- package/dist/blocks/templates/app/ChatPageTemplate/ChatPageTemplate.mjs +192 -0
- package/dist/blocks/templates/app/DashboardTemplate/DashboardTemplate.cjs +1 -0
- package/dist/blocks/templates/app/DashboardTemplate/DashboardTemplate.mjs +102 -0
- package/dist/blocks/templates/app/KanbanPageTemplate/KanbanPageTemplate.cjs +1 -0
- package/dist/blocks/templates/app/KanbanPageTemplate/KanbanPageTemplate.mjs +142 -0
- package/dist/blocks/templates/app/LoginTemplate/LoginTemplate.cjs +1 -0
- package/dist/blocks/templates/app/LoginTemplate/LoginTemplate.mjs +143 -0
- package/dist/blocks/templates/app/ProfilePageTemplate/ProfilePageTemplate.cjs +1 -0
- package/dist/blocks/templates/app/ProfilePageTemplate/ProfilePageTemplate.mjs +194 -0
- package/dist/blocks/templates/app/SettingsTemplate/SettingsTemplate.cjs +1 -0
- package/dist/blocks/templates/app/SettingsTemplate/SettingsTemplate.mjs +105 -0
- package/dist/calendar.cjs +1 -0
- package/dist/calendar.mjs +6 -0
- package/dist/chart.cjs +1 -0
- package/dist/chart.mjs +9 -0
- package/dist/client.cjs +1 -0
- package/dist/client.mjs +247 -0
- package/dist/components/Accordion/Accordion.cjs +1 -0
- package/dist/components/Accordion/Accordion.mjs +94 -0
- package/dist/components/ActivityFeed/ActivityFeed.cjs +1 -0
- package/dist/components/ActivityFeed/ActivityFeed.mjs +128 -0
- package/dist/components/AgentCard/AgentCard.cjs +1 -0
- package/dist/components/AgentCard/AgentCard.mjs +120 -0
- package/dist/components/Alert/Alert.cjs +1 -0
- package/dist/components/Alert/Alert.mjs +51 -0
- package/dist/components/AlertDialog/AlertDialog.cjs +1 -0
- package/dist/components/AlertDialog/AlertDialog.mjs +91 -0
- package/dist/components/Avatar/Avatar.cjs +1 -0
- package/dist/components/Avatar/Avatar.mjs +77 -0
- package/dist/components/Badge/Badge.cjs +1 -0
- package/dist/components/Badge/Badge.mjs +20 -0
- package/dist/components/Banner/Banner.cjs +1 -0
- package/dist/components/Banner/Banner.mjs +107 -0
- package/dist/components/Breadcrumb/Breadcrumb.cjs +1 -0
- package/dist/components/Breadcrumb/Breadcrumb.mjs +84 -0
- package/dist/components/Button/Button.cjs +1 -0
- package/dist/components/Button/Button.mjs +71 -0
- package/dist/components/Calendar/Calendar.cjs +1 -0
- package/dist/components/Calendar/Calendar.mjs +135 -0
- package/dist/components/Card/Card.cjs +1 -0
- package/dist/components/Card/Card.mjs +106 -0
- package/dist/components/Carousel/Carousel.cjs +1 -0
- package/dist/components/Carousel/Carousel.mjs +178 -0
- package/dist/components/Carousel/CarouselCard.cjs +1 -0
- package/dist/components/Carousel/CarouselCard.mjs +38 -0
- package/dist/components/Chart/Chart.cjs +1 -0
- package/dist/components/Chart/Chart.mjs +103 -0
- package/dist/components/Chat/Chat.cjs +1 -0
- package/dist/components/Chat/Chat.mjs +56 -0
- package/dist/components/Chat/components/ChatAttachment.cjs +1 -0
- package/dist/components/Chat/components/ChatAttachment.mjs +125 -0
- package/dist/components/Chat/components/ChatAudioPlayer.cjs +1 -0
- package/dist/components/Chat/components/ChatAudioPlayer.mjs +127 -0
- package/dist/components/Chat/components/ChatCodeBlock.cjs +1 -0
- package/dist/components/Chat/components/ChatCodeBlock.mjs +93 -0
- package/dist/components/Chat/components/ChatFileUpload.cjs +1 -0
- package/dist/components/Chat/components/ChatFileUpload.mjs +114 -0
- package/dist/components/Chat/components/ChatHeader.cjs +1 -0
- package/dist/components/Chat/components/ChatHeader.mjs +36 -0
- package/dist/components/Chat/components/ChatImagePreview.cjs +1 -0
- package/dist/components/Chat/components/ChatImagePreview.mjs +69 -0
- package/dist/components/Chat/components/ChatInput.cjs +1 -0
- package/dist/components/Chat/components/ChatInput.mjs +188 -0
- package/dist/components/Chat/components/ChatLightbox.cjs +1 -0
- package/dist/components/Chat/components/ChatLightbox.mjs +57 -0
- package/dist/components/Chat/components/ChatMarkdown.cjs +1 -0
- package/dist/components/Chat/components/ChatMarkdown.mjs +55 -0
- package/dist/components/Chat/components/ChatMessage.cjs +1 -0
- package/dist/components/Chat/components/ChatMessage.mjs +173 -0
- package/dist/components/Chat/components/ChatMessages.cjs +1 -0
- package/dist/components/Chat/components/ChatMessages.mjs +46 -0
- package/dist/components/Chat/components/ChatSidebar.cjs +1 -0
- package/dist/components/Chat/components/ChatSidebar.mjs +217 -0
- package/dist/components/Chat/components/ChatTypingIndicator.cjs +1 -0
- package/dist/components/Chat/components/ChatTypingIndicator.mjs +31 -0
- package/dist/components/Chat/components/ChatVoiceRecorder.cjs +1 -0
- package/dist/components/Chat/components/ChatVoiceRecorder.mjs +111 -0
- package/dist/components/Checkbox/Checkbox.cjs +1 -0
- package/dist/components/Checkbox/Checkbox.mjs +84 -0
- package/dist/components/Chip/Chip.cjs +1 -0
- package/dist/components/Chip/Chip.mjs +86 -0
- package/dist/components/CodeEditor/CodeEditor.cjs +6 -0
- package/dist/components/CodeEditor/CodeEditor.mjs +255 -0
- package/dist/components/Collapsible/Collapsible.cjs +1 -0
- package/dist/components/Collapsible/Collapsible.mjs +114 -0
- package/dist/components/CollapsibleFolder/CollapsibleFolder.cjs +1 -0
- package/dist/components/CollapsibleFolder/CollapsibleFolder.mjs +196 -0
- package/dist/components/Combobox/Combobox.cjs +1 -0
- package/dist/components/Combobox/Combobox.mjs +271 -0
- package/dist/components/Command/Command.cjs +1 -0
- package/dist/components/Command/Command.mjs +248 -0
- package/dist/components/CommandBar/CommandBar.cjs +1 -0
- package/dist/components/CommandBar/CommandBar.mjs +193 -0
- package/dist/components/DataTable/DataTable.cjs +1 -0
- package/dist/components/DataTable/DataTable.mjs +339 -0
- package/dist/components/DatePicker/DatePicker.cjs +1 -0
- package/dist/components/DatePicker/DatePicker.mjs +104 -0
- package/dist/components/DetailPanel/DetailPanel.cjs +1 -0
- package/dist/components/DetailPanel/DetailPanel.mjs +103 -0
- package/dist/components/Divider/Divider.cjs +1 -0
- package/dist/components/Divider/Divider.mjs +48 -0
- package/dist/components/Drawer/Drawer.cjs +1 -0
- package/dist/components/Drawer/Drawer.mjs +132 -0
- package/dist/components/Dropdown/Dropdown.cjs +1 -0
- package/dist/components/Dropdown/Dropdown.mjs +176 -0
- package/dist/components/EmptyState/EmptyState.cjs +1 -0
- package/dist/components/EmptyState/EmptyState.mjs +30 -0
- package/dist/components/ErrorBoundary/ErrorBoundary.cjs +1 -0
- package/dist/components/ErrorBoundary/ErrorBoundary.mjs +43 -0
- package/dist/components/Field/Field.cjs +1 -0
- package/dist/components/Field/Field.mjs +107 -0
- package/dist/components/FileUploader/FileUploader.cjs +1 -0
- package/dist/components/FileUploader/FileUploader.mjs +202 -0
- package/dist/components/FilterBar/FilterBar.cjs +1 -0
- package/dist/components/FilterBar/FilterBar.mjs +164 -0
- package/dist/components/FontLoader/FontLoader.cjs +1 -0
- package/dist/components/FontLoader/FontLoader.mjs +47 -0
- package/dist/components/FormSection/FormSection.cjs +1 -0
- package/dist/components/FormSection/FormSection.mjs +84 -0
- package/dist/components/Icon/Icon.cjs +1 -0
- package/dist/components/Icon/Icon.mjs +54 -0
- package/dist/components/IconGallery/IconGallery.cjs +3 -0
- package/dist/components/IconGallery/IconGallery.mjs +205 -0
- package/dist/components/InputOTP/InputOTP.cjs +1 -0
- package/dist/components/InputOTP/InputOTP.mjs +143 -0
- package/dist/components/KanbanBoard/KanbanBoard.cjs +1 -0
- package/dist/components/KanbanBoard/KanbanBoard.mjs +190 -0
- package/dist/components/Link/Link.cjs +1 -0
- package/dist/components/Link/Link.mjs +82 -0
- package/dist/components/List/List.cjs +1 -0
- package/dist/components/List/List.mjs +95 -0
- package/dist/components/MetricCards/MetricCards.cjs +1 -0
- package/dist/components/MetricCards/MetricCards.mjs +125 -0
- package/dist/components/Modal/Modal.cjs +1 -0
- package/dist/components/Modal/Modal.mjs +72 -0
- package/dist/components/NavTree/NavTree.cjs +1 -0
- package/dist/components/NavTree/NavTree.mjs +273 -0
- package/dist/components/Navbar/Navbar.cjs +1 -0
- package/dist/components/Navbar/Navbar.mjs +129 -0
- package/dist/components/NotificationCenter/NotificationCenter.cjs +1 -0
- package/dist/components/NotificationCenter/NotificationCenter.mjs +172 -0
- package/dist/components/PageHeader/PageHeader.cjs +1 -0
- package/dist/components/PageHeader/PageHeader.mjs +105 -0
- package/dist/components/Pagination/Pagination.cjs +1 -0
- package/dist/components/Pagination/Pagination.mjs +136 -0
- package/dist/components/Popover/Popover.cjs +1 -0
- package/dist/components/Popover/Popover.mjs +191 -0
- package/dist/components/ProgressBar/ProgressBar.cjs +1 -0
- package/dist/components/ProgressBar/ProgressBar.mjs +54 -0
- package/dist/components/QuickActions/QuickActions.cjs +1 -0
- package/dist/components/QuickActions/QuickActions.mjs +148 -0
- package/dist/components/Radio/Radio.cjs +1 -0
- package/dist/components/Radio/Radio.mjs +76 -0
- package/dist/components/SearchInput/SearchInput.cjs +1 -0
- package/dist/components/SearchInput/SearchInput.mjs +87 -0
- package/dist/components/Select/Select.cjs +1 -0
- package/dist/components/Select/Select.mjs +84 -0
- package/dist/components/Sidebar/Sidebar.cjs +1 -0
- package/dist/components/Sidebar/Sidebar.mjs +153 -0
- package/dist/components/Skeleton/Skeleton.cjs +1 -0
- package/dist/components/Skeleton/Skeleton.mjs +54 -0
- package/dist/components/Slider/Slider.cjs +1 -0
- package/dist/components/Slider/Slider.mjs +109 -0
- package/dist/components/Spinner/Spinner.cjs +1 -0
- package/dist/components/Spinner/Spinner.mjs +28 -0
- package/dist/components/Stack/Stack.cjs +1 -0
- package/dist/components/Stack/Stack.mjs +31 -0
- package/dist/components/Stepper/Stepper.cjs +1 -0
- package/dist/components/Stepper/Stepper.mjs +133 -0
- package/dist/components/Switch/Switch.cjs +1 -0
- package/dist/components/Switch/Switch.mjs +80 -0
- package/dist/components/Table/Table.cjs +1 -0
- package/dist/components/Table/Table.mjs +101 -0
- package/dist/components/Tabs/Tabs.cjs +1 -0
- package/dist/components/Tabs/Tabs.mjs +97 -0
- package/dist/components/Textarea/Textarea.cjs +1 -0
- package/dist/components/Textarea/Textarea.mjs +118 -0
- package/dist/components/ThemeController/ThemeController.cjs +1 -0
- package/dist/components/ThemeController/ThemeController.mjs +389 -0
- package/dist/components/Toast/Toast.cjs +1 -0
- package/dist/components/Toast/Toast.mjs +225 -0
- package/dist/components/Toggle/Toggle.cjs +1 -0
- package/dist/components/Toggle/Toggle.mjs +48 -0
- package/dist/components/ToggleGroup/ToggleGroup.cjs +1 -0
- package/dist/components/ToggleGroup/ToggleGroup.mjs +101 -0
- package/dist/components/Tooltip/Tooltip.cjs +1 -0
- package/dist/components/Tooltip/Tooltip.mjs +39 -0
- package/dist/components/UserMenu/UserMenu.cjs +1 -0
- package/dist/components/UserMenu/UserMenu.mjs +161 -0
- package/dist/components/WorkspaceSwitcher/WorkspaceSwitcher.cjs +1 -0
- package/dist/components/WorkspaceSwitcher/WorkspaceSwitcher.mjs +119 -0
- package/dist/contexts/ThemeContext.cjs +38 -0
- package/dist/contexts/ThemeContext.mjs +98 -0
- package/dist/dist/index19.cjs +1 -0
- package/dist/dist/index19.mjs +120 -0
- package/dist/dist/index22.cjs +1 -0
- package/dist/dist/index22.mjs +77 -0
- package/dist/dist/index23.cjs +1 -0
- package/dist/dist/index23.mjs +20 -0
- package/dist/dist/index26.cjs +1 -0
- package/dist/dist/index26.mjs +71 -0
- package/dist/dist/index28.cjs +1 -0
- package/dist/dist/index28.mjs +106 -0
- package/dist/dist/index36.cjs +1 -0
- package/dist/dist/index36.mjs +114 -0
- package/dist/dist/index37.cjs +1 -0
- package/dist/dist/index37.mjs +196 -0
- package/dist/dist/index47.cjs +1 -0
- package/dist/dist/index47.mjs +176 -0
- package/dist/dist/index50.cjs +1 -0
- package/dist/dist/index50.mjs +107 -0
- package/dist/dnd.cjs +1 -0
- package/dist/dnd.mjs +4 -0
- package/dist/editor.cjs +1 -0
- package/dist/editor.mjs +4 -0
- package/dist/examples/LandingPage.example.cjs +1 -0
- package/dist/examples/LandingPage.example.mjs +106 -0
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +96 -96
- package/dist/rich.cjs +1 -0
- package/dist/rich.mjs +4 -0
- package/dist/sections/Container/Container.cjs +1 -0
- package/dist/sections/Container/Container.mjs +26 -0
- package/dist/sections/Section/Section.cjs +1 -0
- package/dist/sections/Section/Section.mjs +36 -0
- package/dist/sections/index.cjs +1 -0
- package/dist/sections/index.mjs +43 -0
- package/dist/templates/index.cjs +1 -0
- package/dist/templates/index.mjs +18 -0
- package/dist/tokens/index.cjs +1 -0
- package/dist/tokens/index.mjs +24 -0
- package/dist/tokens/utils.cjs +1 -0
- package/dist/tokens/utils.mjs +45 -0
- package/package.json +1 -1
- package/dist/index10.cjs +0 -1
- package/dist/index10.mjs +0 -4
- package/dist/index11.cjs +0 -1
- package/dist/index11.mjs +0 -4
- package/dist/index110.cjs +0 -1
- package/dist/index110.mjs +0 -77
- package/dist/index111.cjs +0 -1
- package/dist/index111.mjs +0 -158
- package/dist/index112.cjs +0 -1
- package/dist/index112.mjs +0 -25
- package/dist/index113.cjs +0 -1
- package/dist/index113.mjs +0 -153
- package/dist/index114.cjs +0 -1
- package/dist/index114.mjs +0 -108
- package/dist/index115.cjs +0 -1
- package/dist/index115.mjs +0 -85
- package/dist/index116.cjs +0 -1
- package/dist/index116.mjs +0 -35
- package/dist/index117.cjs +0 -1
- package/dist/index117.mjs +0 -27
- package/dist/index118.cjs +0 -1
- package/dist/index118.mjs +0 -18
- package/dist/index119.cjs +0 -1
- package/dist/index119.mjs +0 -104
- package/dist/index120.cjs +0 -1
- package/dist/index120.mjs +0 -192
- package/dist/index121.cjs +0 -1
- package/dist/index121.mjs +0 -93
- package/dist/index122.cjs +0 -1
- package/dist/index122.mjs +0 -47
- package/dist/index123.cjs +0 -1
- package/dist/index123.mjs +0 -27
- package/dist/index124.cjs +0 -1
- package/dist/index124.mjs +0 -102
- package/dist/index125.cjs +0 -1
- package/dist/index125.mjs +0 -21
- package/dist/index126.cjs +0 -1
- package/dist/index126.mjs +0 -37
- package/dist/index127.cjs +0 -1
- package/dist/index127.mjs +0 -28
- package/dist/index128.cjs +0 -1
- package/dist/index128.mjs +0 -98
- package/dist/index129.cjs +0 -1
- package/dist/index129.mjs +0 -34
- package/dist/index130.cjs +0 -1
- package/dist/index130.mjs +0 -37
- package/dist/index131.cjs +0 -1
- package/dist/index131.mjs +0 -10
- package/dist/index132.cjs +0 -1
- package/dist/index132.mjs +0 -142
- package/dist/index133.cjs +0 -1
- package/dist/index133.mjs +0 -143
- package/dist/index134.cjs +0 -1
- package/dist/index134.mjs +0 -31
- package/dist/index135.cjs +0 -1
- package/dist/index135.mjs +0 -50
- package/dist/index136.cjs +0 -1
- package/dist/index136.mjs +0 -18
- package/dist/index137.cjs +0 -1
- package/dist/index137.mjs +0 -194
- package/dist/index138.cjs +0 -1
- package/dist/index138.mjs +0 -54
- package/dist/index139.cjs +0 -1
- package/dist/index139.mjs +0 -105
- package/dist/index14.cjs +0 -1
- package/dist/index14.mjs +0 -45
- package/dist/index140.cjs +0 -1
- package/dist/index140.mjs +0 -40
- package/dist/index141.cjs +0 -1
- package/dist/index141.mjs +0 -25
- package/dist/index142.cjs +0 -1
- package/dist/index142.mjs +0 -87
- package/dist/index143.cjs +0 -1
- package/dist/index143.mjs +0 -21
- package/dist/index144.cjs +0 -1
- package/dist/index144.mjs +0 -28
- package/dist/index145.cjs +0 -1
- package/dist/index145.mjs +0 -53
- package/dist/index15.cjs +0 -1
- package/dist/index15.mjs +0 -600
- package/dist/index17.cjs +0 -1
- package/dist/index17.mjs +0 -94
- package/dist/index178.cjs +0 -1
- package/dist/index178.mjs +0 -20
- package/dist/index179.cjs +0 -1
- package/dist/index179.mjs +0 -106
- package/dist/index18.cjs +0 -1
- package/dist/index18.mjs +0 -128
- package/dist/index187.cjs +0 -1
- package/dist/index187.mjs +0 -71
- package/dist/index189.cjs +0 -1
- package/dist/index189.mjs +0 -107
- package/dist/index19.cjs +0 -1
- package/dist/index19.mjs +0 -120
- package/dist/index2.cjs +0 -1
- package/dist/index2.mjs +0 -247
- package/dist/index20.cjs +0 -1
- package/dist/index20.mjs +0 -51
- package/dist/index21.cjs +0 -1
- package/dist/index21.mjs +0 -91
- package/dist/index22.cjs +0 -1
- package/dist/index22.mjs +0 -77
- package/dist/index221.cjs +0 -1
- package/dist/index221.mjs +0 -36
- package/dist/index222.cjs +0 -1
- package/dist/index222.mjs +0 -46
- package/dist/index223.cjs +0 -1
- package/dist/index223.mjs +0 -173
- package/dist/index224.cjs +0 -1
- package/dist/index224.mjs +0 -188
- package/dist/index225.cjs +0 -1
- package/dist/index225.mjs +0 -31
- package/dist/index226.cjs +0 -1
- package/dist/index226.mjs +0 -93
- package/dist/index227.cjs +0 -1
- package/dist/index227.mjs +0 -55
- package/dist/index228.cjs +0 -1
- package/dist/index228.mjs +0 -69
- package/dist/index229.cjs +0 -1
- package/dist/index229.mjs +0 -127
- package/dist/index23.cjs +0 -1
- package/dist/index23.mjs +0 -20
- package/dist/index230.cjs +0 -1
- package/dist/index230.mjs +0 -111
- package/dist/index231.cjs +0 -1
- package/dist/index231.mjs +0 -114
- package/dist/index232.cjs +0 -1
- package/dist/index232.mjs +0 -125
- package/dist/index233.cjs +0 -1
- package/dist/index233.mjs +0 -217
- package/dist/index24.cjs +0 -1
- package/dist/index24.mjs +0 -107
- package/dist/index244.cjs +0 -1
- package/dist/index244.mjs +0 -16
- package/dist/index25.cjs +0 -1
- package/dist/index25.mjs +0 -84
- package/dist/index256.cjs +0 -1
- package/dist/index256.mjs +0 -47
- package/dist/index258.cjs +0 -1
- package/dist/index258.mjs +0 -120
- package/dist/index259.cjs +0 -1
- package/dist/index259.mjs +0 -196
- package/dist/index26.cjs +0 -1
- package/dist/index26.mjs +0 -71
- package/dist/index262.cjs +0 -1
- package/dist/index262.mjs +0 -18
- package/dist/index264.cjs +0 -1
- package/dist/index264.mjs +0 -58
- package/dist/index27.cjs +0 -1
- package/dist/index27.mjs +0 -135
- package/dist/index272.cjs +0 -1
- package/dist/index272.mjs +0 -49
- package/dist/index275.cjs +0 -1
- package/dist/index275.mjs +0 -19
- package/dist/index278.cjs +0 -1
- package/dist/index278.mjs +0 -77
- package/dist/index279.cjs +0 -1
- package/dist/index279.mjs +0 -176
- package/dist/index28.cjs +0 -1
- package/dist/index28.mjs +0 -106
- package/dist/index284.cjs +0 -1
- package/dist/index284.mjs +0 -114
- package/dist/index29.cjs +0 -1
- package/dist/index29.mjs +0 -178
- package/dist/index290.cjs +0 -1
- package/dist/index290.mjs +0 -57
- package/dist/index3.cjs +0 -1
- package/dist/index3.mjs +0 -24
- package/dist/index30.cjs +0 -1
- package/dist/index30.mjs +0 -38
- package/dist/index31.cjs +0 -1
- package/dist/index31.mjs +0 -103
- package/dist/index32.cjs +0 -1
- package/dist/index32.mjs +0 -56
- package/dist/index33.cjs +0 -1
- package/dist/index33.mjs +0 -84
- package/dist/index34.cjs +0 -1
- package/dist/index34.mjs +0 -86
- package/dist/index35.cjs +0 -6
- package/dist/index35.mjs +0 -255
- package/dist/index36.cjs +0 -1
- package/dist/index36.mjs +0 -114
- package/dist/index37.cjs +0 -1
- package/dist/index37.mjs +0 -196
- package/dist/index38.cjs +0 -1
- package/dist/index38.mjs +0 -271
- package/dist/index39.cjs +0 -1
- package/dist/index39.mjs +0 -248
- package/dist/index4.cjs +0 -1
- package/dist/index4.mjs +0 -43
- package/dist/index40.cjs +0 -1
- package/dist/index40.mjs +0 -193
- package/dist/index41.cjs +0 -1
- package/dist/index41.mjs +0 -26
- package/dist/index42.cjs +0 -1
- package/dist/index42.mjs +0 -339
- package/dist/index43.cjs +0 -1
- package/dist/index43.mjs +0 -104
- package/dist/index44.cjs +0 -1
- package/dist/index44.mjs +0 -103
- package/dist/index45.cjs +0 -1
- package/dist/index45.mjs +0 -48
- package/dist/index46.cjs +0 -1
- package/dist/index46.mjs +0 -132
- package/dist/index47.cjs +0 -1
- package/dist/index47.mjs +0 -176
- package/dist/index48.cjs +0 -1
- package/dist/index48.mjs +0 -30
- package/dist/index49.cjs +0 -1
- package/dist/index49.mjs +0 -43
- package/dist/index5.cjs +0 -1
- package/dist/index5.mjs +0 -74
- package/dist/index50.cjs +0 -1
- package/dist/index50.mjs +0 -107
- package/dist/index51.cjs +0 -1
- package/dist/index51.mjs +0 -202
- package/dist/index52.cjs +0 -1
- package/dist/index52.mjs +0 -164
- package/dist/index53.cjs +0 -1
- package/dist/index53.mjs +0 -47
- package/dist/index54.cjs +0 -1
- package/dist/index54.mjs +0 -84
- package/dist/index55.cjs +0 -1
- package/dist/index55.mjs +0 -54
- package/dist/index56.cjs +0 -3
- package/dist/index56.mjs +0 -205
- package/dist/index58.cjs +0 -1
- package/dist/index58.mjs +0 -143
- package/dist/index59.cjs +0 -1
- package/dist/index59.mjs +0 -190
- package/dist/index6.cjs +0 -1
- package/dist/index6.mjs +0 -18
- package/dist/index60.cjs +0 -1
- package/dist/index60.mjs +0 -106
- package/dist/index61.cjs +0 -1
- package/dist/index61.mjs +0 -82
- package/dist/index62.cjs +0 -1
- package/dist/index62.mjs +0 -95
- package/dist/index63.cjs +0 -1
- package/dist/index63.mjs +0 -125
- package/dist/index64.cjs +0 -1
- package/dist/index64.mjs +0 -72
- package/dist/index65.cjs +0 -1
- package/dist/index65.mjs +0 -273
- package/dist/index66.cjs +0 -1
- package/dist/index66.mjs +0 -129
- package/dist/index67.cjs +0 -1
- package/dist/index67.mjs +0 -172
- package/dist/index68.cjs +0 -1
- package/dist/index68.mjs +0 -105
- package/dist/index69.cjs +0 -1
- package/dist/index69.mjs +0 -136
- package/dist/index7.cjs +0 -1
- package/dist/index7.mjs +0 -9
- package/dist/index70.cjs +0 -1
- package/dist/index70.mjs +0 -191
- package/dist/index71.cjs +0 -1
- package/dist/index71.mjs +0 -54
- package/dist/index72.cjs +0 -1
- package/dist/index72.mjs +0 -148
- package/dist/index73.cjs +0 -1
- package/dist/index73.mjs +0 -76
- package/dist/index74.cjs +0 -1
- package/dist/index74.mjs +0 -87
- package/dist/index75.cjs +0 -1
- package/dist/index75.mjs +0 -36
- package/dist/index76.cjs +0 -1
- package/dist/index76.mjs +0 -84
- package/dist/index77.cjs +0 -1
- package/dist/index77.mjs +0 -153
- package/dist/index78.cjs +0 -1
- package/dist/index78.mjs +0 -54
- package/dist/index79.cjs +0 -1
- package/dist/index79.mjs +0 -109
- package/dist/index8.cjs +0 -1
- package/dist/index8.mjs +0 -6
- package/dist/index80.cjs +0 -1
- package/dist/index80.mjs +0 -28
- package/dist/index81.cjs +0 -1
- package/dist/index81.mjs +0 -31
- package/dist/index82.cjs +0 -1
- package/dist/index82.mjs +0 -133
- package/dist/index83.cjs +0 -1
- package/dist/index83.mjs +0 -80
- package/dist/index84.cjs +0 -1
- package/dist/index84.mjs +0 -101
- package/dist/index85.cjs +0 -1
- package/dist/index85.mjs +0 -97
- package/dist/index86.cjs +0 -1
- package/dist/index86.mjs +0 -118
- package/dist/index87.cjs +0 -1
- package/dist/index87.mjs +0 -389
- package/dist/index88.cjs +0 -38
- package/dist/index88.mjs +0 -98
- package/dist/index89.cjs +0 -1
- package/dist/index89.mjs +0 -225
- package/dist/index9.cjs +0 -1
- package/dist/index9.mjs +0 -4
- package/dist/index90.cjs +0 -1
- package/dist/index90.mjs +0 -48
- package/dist/index91.cjs +0 -1
- package/dist/index91.mjs +0 -101
- package/dist/index92.cjs +0 -1
- package/dist/index92.mjs +0 -39
- package/dist/index93.cjs +0 -1
- package/dist/index93.mjs +0 -161
- package/dist/index94.cjs +0 -1
- package/dist/index94.mjs +0 -119
- /package/dist/{index248.cjs → blocks/sections/ActivityFeed/ActivityFeed.module.css.cjs} +0 -0
- /package/dist/{index248.mjs → blocks/sections/ActivityFeed/ActivityFeed.module.css.mjs} +0 -0
- /package/dist/{index255.cjs → blocks/sections/AppDownload/AppDownload.module.css.cjs} +0 -0
- /package/dist/{index255.mjs → blocks/sections/AppDownload/AppDownload.module.css.mjs} +0 -0
- /package/dist/{index250.cjs → blocks/sections/Blog/Blog.module.css.cjs} +0 -0
- /package/dist/{index250.mjs → blocks/sections/Blog/Blog.module.css.mjs} +0 -0
- /package/dist/{index251.cjs → blocks/sections/Breadcrumbs/Breadcrumbs.module.css.cjs} +0 -0
- /package/dist/{index251.mjs → blocks/sections/Breadcrumbs/Breadcrumbs.module.css.mjs} +0 -0
- /package/dist/{index274.cjs → blocks/sections/CTA/CTA.module.css.cjs} +0 -0
- /package/dist/{index274.mjs → blocks/sections/CTA/CTA.module.css.mjs} +0 -0
- /package/dist/{index268.cjs → blocks/sections/CarouselSection/CarouselSection.module.css.cjs} +0 -0
- /package/dist/{index268.mjs → blocks/sections/CarouselSection/CarouselSection.module.css.mjs} +0 -0
- /package/dist/{index266.cjs → blocks/sections/Chat/Chat.module.css.cjs} +0 -0
- /package/dist/{index266.mjs → blocks/sections/Chat/Chat.module.css.mjs} +0 -0
- /package/dist/{index271.cjs → blocks/sections/Comparison/Comparison.module.css.cjs} +0 -0
- /package/dist/{index271.mjs → blocks/sections/Comparison/Comparison.module.css.mjs} +0 -0
- /package/dist/{index253.cjs → blocks/sections/Contact/Contact.module.css.cjs} +0 -0
- /package/dist/{index253.mjs → blocks/sections/Contact/Contact.module.css.mjs} +0 -0
- /package/dist/{index246.cjs → blocks/sections/EmptyState/EmptyState.module.css.cjs} +0 -0
- /package/dist/{index246.mjs → blocks/sections/EmptyState/EmptyState.module.css.mjs} +0 -0
- /package/dist/{index265.cjs → blocks/sections/FAQ/FAQ.module.css.cjs} +0 -0
- /package/dist/{index265.mjs → blocks/sections/FAQ/FAQ.module.css.mjs} +0 -0
- /package/dist/{index245.cjs → blocks/sections/Features/Features.module.css.cjs} +0 -0
- /package/dist/{index245.mjs → blocks/sections/Features/Features.module.css.mjs} +0 -0
- /package/dist/{index269.cjs → blocks/sections/Footer/Footer.module.css.cjs} +0 -0
- /package/dist/{index269.mjs → blocks/sections/Footer/Footer.module.css.mjs} +0 -0
- /package/dist/{index247.cjs → blocks/sections/Gallery/Gallery.module.css.cjs} +0 -0
- /package/dist/{index247.mjs → blocks/sections/Gallery/Gallery.module.css.mjs} +0 -0
- /package/dist/{index249.cjs → blocks/sections/Hero/Hero.module.css.cjs} +0 -0
- /package/dist/{index249.mjs → blocks/sections/Hero/Hero.module.css.mjs} +0 -0
- /package/dist/{index261.cjs → blocks/sections/LogoCloud/LogoCloud.module.css.cjs} +0 -0
- /package/dist/{index261.mjs → blocks/sections/LogoCloud/LogoCloud.module.css.mjs} +0 -0
- /package/dist/{index270.cjs → blocks/sections/Newsletter/Newsletter.module.css.cjs} +0 -0
- /package/dist/{index270.mjs → blocks/sections/Newsletter/Newsletter.module.css.mjs} +0 -0
- /package/dist/{index273.cjs → blocks/sections/Pricing/Pricing.module.css.cjs} +0 -0
- /package/dist/{index273.mjs → blocks/sections/Pricing/Pricing.module.css.mjs} +0 -0
- /package/dist/{index267.cjs → blocks/sections/SettingsLayout/SettingsLayout.module.css.cjs} +0 -0
- /package/dist/{index267.mjs → blocks/sections/SettingsLayout/SettingsLayout.module.css.mjs} +0 -0
- /package/dist/{index254.cjs → blocks/sections/SocialProof/SocialProof.module.css.cjs} +0 -0
- /package/dist/{index254.mjs → blocks/sections/SocialProof/SocialProof.module.css.mjs} +0 -0
- /package/dist/{index263.cjs → blocks/sections/Stats/Stats.module.css.cjs} +0 -0
- /package/dist/{index263.mjs → blocks/sections/Stats/Stats.module.css.mjs} +0 -0
- /package/dist/{index260.cjs → blocks/sections/Stepper/Stepper.module.css.cjs} +0 -0
- /package/dist/{index260.mjs → blocks/sections/Stepper/Stepper.module.css.mjs} +0 -0
- /package/dist/{index276.cjs → blocks/sections/Team/Team.module.css.cjs} +0 -0
- /package/dist/{index276.mjs → blocks/sections/Team/Team.module.css.mjs} +0 -0
- /package/dist/{index257.cjs → blocks/sections/Testimonials/Testimonials.module.css.cjs} +0 -0
- /package/dist/{index257.mjs → blocks/sections/Testimonials/Testimonials.module.css.mjs} +0 -0
- /package/dist/{index252.cjs → blocks/sections/Timeline/Timeline.module.css.cjs} +0 -0
- /package/dist/{index252.mjs → blocks/sections/Timeline/Timeline.module.css.mjs} +0 -0
- /package/dist/{index203.cjs → blocks/templates/app/AgentEditor/AgentEditor.module.css.cjs} +0 -0
- /package/dist/{index203.mjs → blocks/templates/app/AgentEditor/AgentEditor.module.css.mjs} +0 -0
- /package/dist/{index206.cjs → blocks/templates/app/AgentWorkspace/AgentWorkspace.module.css.cjs} +0 -0
- /package/dist/{index206.mjs → blocks/templates/app/AgentWorkspace/AgentWorkspace.module.css.mjs} +0 -0
- /package/dist/{index213.cjs → blocks/templates/app/ChatPageTemplate/ChatPageTemplate.module.css.cjs} +0 -0
- /package/dist/{index213.mjs → blocks/templates/app/ChatPageTemplate/ChatPageTemplate.module.css.mjs} +0 -0
- /package/dist/{index180.cjs → blocks/templates/app/DashboardTemplate/DashboardTemplate.module.css.cjs} +0 -0
- /package/dist/{index180.mjs → blocks/templates/app/DashboardTemplate/DashboardTemplate.module.css.mjs} +0 -0
- /package/dist/{index211.cjs → blocks/templates/app/KanbanPageTemplate/KanbanPageTemplate.module.css.cjs} +0 -0
- /package/dist/{index211.mjs → blocks/templates/app/KanbanPageTemplate/KanbanPageTemplate.module.css.mjs} +0 -0
- /package/dist/{index190.cjs → blocks/templates/app/LoginTemplate/LoginTemplate.module.css.cjs} +0 -0
- /package/dist/{index190.mjs → blocks/templates/app/LoginTemplate/LoginTemplate.module.css.mjs} +0 -0
- /package/dist/{index208.cjs → blocks/templates/app/ProfilePageTemplate/ProfilePageTemplate.module.css.cjs} +0 -0
- /package/dist/{index208.mjs → blocks/templates/app/ProfilePageTemplate/ProfilePageTemplate.module.css.mjs} +0 -0
- /package/dist/{index188.cjs → blocks/templates/app/SettingsTemplate/SettingsTemplate.module.css.cjs} +0 -0
- /package/dist/{index188.mjs → blocks/templates/app/SettingsTemplate/SettingsTemplate.module.css.mjs} +0 -0
- /package/dist/{index195.cjs → components/Accordion/Accordion.module.css.cjs} +0 -0
- /package/dist/{index195.mjs → components/Accordion/Accordion.module.css.mjs} +0 -0
- /package/dist/{index239.cjs → components/ActivityFeed/ActivityFeed.module.css.cjs} +0 -0
- /package/dist/{index239.mjs → components/ActivityFeed/ActivityFeed.module.css.mjs} +0 -0
- /package/dist/{index152.cjs → components/AgentCard/AgentCard.module.css.cjs} +0 -0
- /package/dist/{index152.mjs → components/AgentCard/AgentCard.module.css.mjs} +0 -0
- /package/dist/{index200.cjs → components/Alert/Alert.module.css.cjs} +0 -0
- /package/dist/{index200.mjs → components/Alert/Alert.module.css.mjs} +0 -0
- /package/dist/{index212.cjs → components/AlertDialog/AlertDialog.module.css.cjs} +0 -0
- /package/dist/{index212.mjs → components/AlertDialog/AlertDialog.module.css.mjs} +0 -0
- /package/dist/{index184.cjs → components/Avatar/Avatar.module.css.cjs} +0 -0
- /package/dist/{index184.mjs → components/Avatar/Avatar.module.css.mjs} +0 -0
- /package/dist/{index194.cjs → components/Badge/Badge.module.css.cjs} +0 -0
- /package/dist/{index194.mjs → components/Badge/Badge.module.css.mjs} +0 -0
- /package/dist/{index207.cjs → components/Banner/Banner.module.css.cjs} +0 -0
- /package/dist/{index207.mjs → components/Banner/Banner.module.css.mjs} +0 -0
- /package/dist/{index201.cjs → components/Breadcrumb/Breadcrumb.module.css.cjs} +0 -0
- /package/dist/{index201.mjs → components/Breadcrumb/Breadcrumb.module.css.mjs} +0 -0
- /package/dist/{index156.cjs → components/Button/Button.module.css.cjs} +0 -0
- /package/dist/{index156.mjs → components/Button/Button.module.css.mjs} +0 -0
- /package/dist/{index209.cjs → components/Calendar/Calendar.module.css.cjs} +0 -0
- /package/dist/{index209.mjs → components/Calendar/Calendar.module.css.mjs} +0 -0
- /package/dist/{index175.cjs → components/Card/Card.module.css.cjs} +0 -0
- /package/dist/{index175.mjs → components/Card/Card.module.css.mjs} +0 -0
- /package/dist/{index171.cjs → components/Carousel/Carousel.module.css.cjs} +0 -0
- /package/dist/{index171.mjs → components/Carousel/Carousel.module.css.mjs} +0 -0
- /package/dist/{index155.cjs → components/Chart/Chart.module.css.cjs} +0 -0
- /package/dist/{index155.mjs → components/Chart/Chart.module.css.mjs} +0 -0
- /package/dist/{index154.cjs → components/Chart/useResolvedChartColors.cjs} +0 -0
- /package/dist/{index154.mjs → components/Chart/useResolvedChartColors.mjs} +0 -0
- /package/dist/{index220.cjs → components/Chat/Chat.module.css.cjs} +0 -0
- /package/dist/{index220.mjs → components/Chat/Chat.module.css.mjs} +0 -0
- /package/dist/{index95.cjs → components/Chat/hooks/useAutoScroll.cjs} +0 -0
- /package/dist/{index95.mjs → components/Chat/hooks/useAutoScroll.mjs} +0 -0
- /package/dist/{index96.cjs → components/Chat/hooks/useChatInput.cjs} +0 -0
- /package/dist/{index96.mjs → components/Chat/hooks/useChatInput.mjs} +0 -0
- /package/dist/{index104.cjs → components/Chat/hooks/useStreamingText.cjs} +0 -0
- /package/dist/{index104.mjs → components/Chat/hooks/useStreamingText.mjs} +0 -0
- /package/dist/{index106.cjs → components/Chat/hooks/useVoiceRecorder.cjs} +0 -0
- /package/dist/{index106.mjs → components/Chat/hooks/useVoiceRecorder.mjs} +0 -0
- /package/dist/{index289.cjs → components/Chat/utils.cjs} +0 -0
- /package/dist/{index289.mjs → components/Chat/utils.mjs} +0 -0
- /package/dist/{index170.cjs → components/Checkbox/Checkbox.module.css.cjs} +0 -0
- /package/dist/{index170.mjs → components/Checkbox/Checkbox.module.css.mjs} +0 -0
- /package/dist/{index153.cjs → components/Chip/Chip.module.css.cjs} +0 -0
- /package/dist/{index153.mjs → components/Chip/Chip.module.css.mjs} +0 -0
- /package/dist/{index147.cjs → components/CodeEditor/CodeEditor.module.css.cjs} +0 -0
- /package/dist/{index147.mjs → components/CodeEditor/CodeEditor.module.css.mjs} +0 -0
- /package/dist/{index148.cjs → components/Collapsible/Collapsible.module.css.cjs} +0 -0
- /package/dist/{index148.mjs → components/Collapsible/Collapsible.module.css.mjs} +0 -0
- /package/dist/{index151.cjs → components/CollapsibleFolder/CollapsibleFolder.module.css.cjs} +0 -0
- /package/dist/{index151.mjs → components/CollapsibleFolder/CollapsibleFolder.module.css.mjs} +0 -0
- /package/dist/{index172.cjs → components/Combobox/Combobox.module.css.cjs} +0 -0
- /package/dist/{index172.mjs → components/Combobox/Combobox.module.css.mjs} +0 -0
- /package/dist/{index199.cjs → components/Command/Command.module.css.cjs} +0 -0
- /package/dist/{index199.mjs → components/Command/Command.module.css.mjs} +0 -0
- /package/dist/{index238.cjs → components/CommandBar/CommandBar.module.css.cjs} +0 -0
- /package/dist/{index238.mjs → components/CommandBar/CommandBar.module.css.mjs} +0 -0
- /package/dist/{index215.cjs → components/DataTable/DataTable.module.css.cjs} +0 -0
- /package/dist/{index215.mjs → components/DataTable/DataTable.module.css.mjs} +0 -0
- /package/dist/{index157.cjs → components/DatePicker/DatePicker.module.css.cjs} +0 -0
- /package/dist/{index157.mjs → components/DatePicker/DatePicker.module.css.mjs} +0 -0
- /package/dist/{index236.cjs → components/DetailPanel/DetailPanel.module.css.cjs} +0 -0
- /package/dist/{index236.mjs → components/DetailPanel/DetailPanel.module.css.mjs} +0 -0
- /package/dist/{index192.cjs → components/Divider/Divider.module.css.cjs} +0 -0
- /package/dist/{index192.mjs → components/Divider/Divider.module.css.mjs} +0 -0
- /package/dist/{index241.cjs → components/Drawer/Drawer.module.css.cjs} +0 -0
- /package/dist/{index241.mjs → components/Drawer/Drawer.module.css.mjs} +0 -0
- /package/dist/{index167.cjs → components/Dropdown/Dropdown.module.css.cjs} +0 -0
- /package/dist/{index167.mjs → components/Dropdown/Dropdown.module.css.mjs} +0 -0
- /package/dist/{index168.cjs → components/EmptyState/EmptyState.module.css.cjs} +0 -0
- /package/dist/{index168.mjs → components/EmptyState/EmptyState.module.css.mjs} +0 -0
- /package/dist/{index202.cjs → components/ErrorBoundary/ErrorBoundary.module.css.cjs} +0 -0
- /package/dist/{index202.mjs → components/ErrorBoundary/ErrorBoundary.module.css.mjs} +0 -0
- /package/dist/{index191.cjs → components/Field/Field.module.css.cjs} +0 -0
- /package/dist/{index191.mjs → components/Field/Field.module.css.mjs} +0 -0
- /package/dist/{index216.cjs → components/FileUploader/FileUploader.module.css.cjs} +0 -0
- /package/dist/{index216.mjs → components/FileUploader/FileUploader.module.css.mjs} +0 -0
- /package/dist/{index163.cjs → components/FilterBar/FilterBar.module.css.cjs} +0 -0
- /package/dist/{index163.mjs → components/FilterBar/FilterBar.module.css.mjs} +0 -0
- /package/dist/{index242.cjs → components/FormSection/FormSection.module.css.cjs} +0 -0
- /package/dist/{index242.mjs → components/FormSection/FormSection.module.css.mjs} +0 -0
- /package/dist/{index146.cjs → components/Icon/Icon.module.css.cjs} +0 -0
- /package/dist/{index146.mjs → components/Icon/Icon.module.css.mjs} +0 -0
- /package/dist/{index218.cjs → components/IconGallery/IconGallery.module.css.cjs} +0 -0
- /package/dist/{index218.mjs → components/IconGallery/IconGallery.module.css.mjs} +0 -0
- /package/dist/{index197.cjs → components/InputOTP/InputOTP.module.css.cjs} +0 -0
- /package/dist/{index197.mjs → components/InputOTP/InputOTP.module.css.mjs} +0 -0
- /package/dist/{index243.cjs → components/KanbanBoard/KanbanBoard.module.css.cjs} +0 -0
- /package/dist/{index243.mjs → components/KanbanBoard/KanbanBoard.module.css.mjs} +0 -0
- /package/dist/{index205.cjs → components/Link/Link.module.css.cjs} +0 -0
- /package/dist/{index205.mjs → components/Link/Link.module.css.mjs} +0 -0
- /package/dist/{index169.cjs → components/List/List.module.css.cjs} +0 -0
- /package/dist/{index169.mjs → components/List/List.module.css.mjs} +0 -0
- /package/dist/{index196.cjs → components/MetricCards/MetricCards.module.css.cjs} +0 -0
- /package/dist/{index196.mjs → components/MetricCards/MetricCards.module.css.mjs} +0 -0
- /package/dist/{index186.cjs → components/Modal/Modal.module.css.cjs} +0 -0
- /package/dist/{index186.mjs → components/Modal/Modal.module.css.mjs} +0 -0
- /package/dist/{index177.cjs → components/NavTree/NavTree.module.css.cjs} +0 -0
- /package/dist/{index177.mjs → components/NavTree/NavTree.module.css.mjs} +0 -0
- /package/dist/{index166.cjs → components/Navbar/Navbar.module.css.cjs} +0 -0
- /package/dist/{index166.mjs → components/Navbar/Navbar.module.css.mjs} +0 -0
- /package/dist/{index204.cjs → components/NotificationCenter/NotificationCenter.module.css.cjs} +0 -0
- /package/dist/{index204.mjs → components/NotificationCenter/NotificationCenter.module.css.mjs} +0 -0
- /package/dist/{index235.cjs → components/PageHeader/PageHeader.module.css.cjs} +0 -0
- /package/dist/{index235.mjs → components/PageHeader/PageHeader.module.css.mjs} +0 -0
- /package/dist/{index183.cjs → components/Pagination/Pagination.module.css.cjs} +0 -0
- /package/dist/{index183.mjs → components/Pagination/Pagination.module.css.mjs} +0 -0
- /package/dist/{index240.cjs → components/Popover/Popover.module.css.cjs} +0 -0
- /package/dist/{index240.mjs → components/Popover/Popover.module.css.mjs} +0 -0
- /package/dist/{index237.cjs → components/ProgressBar/ProgressBar.module.css.cjs} +0 -0
- /package/dist/{index237.mjs → components/ProgressBar/ProgressBar.module.css.mjs} +0 -0
- /package/dist/{index219.cjs → components/QuickActions/QuickActions.module.css.cjs} +0 -0
- /package/dist/{index219.mjs → components/QuickActions/QuickActions.module.css.mjs} +0 -0
- /package/dist/{index198.cjs → components/Radio/Radio.module.css.cjs} +0 -0
- /package/dist/{index198.mjs → components/Radio/Radio.module.css.mjs} +0 -0
- /package/dist/{index185.cjs → components/SearchInput/SearchInput.module.css.cjs} +0 -0
- /package/dist/{index185.mjs → components/SearchInput/SearchInput.module.css.mjs} +0 -0
- /package/dist/{index159.cjs → components/Select/Select.module.css.cjs} +0 -0
- /package/dist/{index159.mjs → components/Select/Select.module.css.mjs} +0 -0
- /package/dist/{index214.cjs → components/Sidebar/Sidebar.module.css.cjs} +0 -0
- /package/dist/{index214.mjs → components/Sidebar/Sidebar.module.css.mjs} +0 -0
- /package/dist/{index173.cjs → components/Skeleton/Skeleton.module.css.cjs} +0 -0
- /package/dist/{index173.mjs → components/Skeleton/Skeleton.module.css.mjs} +0 -0
- /package/dist/{index161.cjs → components/Slider/Slider.module.css.cjs} +0 -0
- /package/dist/{index161.mjs → components/Slider/Slider.module.css.mjs} +0 -0
- /package/dist/{index164.cjs → components/Spinner/Spinner.module.css.cjs} +0 -0
- /package/dist/{index164.mjs → components/Spinner/Spinner.module.css.mjs} +0 -0
- /package/dist/{index193.cjs → components/Stack/Stack.module.css.cjs} +0 -0
- /package/dist/{index193.mjs → components/Stack/Stack.module.css.mjs} +0 -0
- /package/dist/{index162.cjs → components/Stepper/Stepper.module.css.cjs} +0 -0
- /package/dist/{index162.mjs → components/Stepper/Stepper.module.css.mjs} +0 -0
- /package/dist/{index150.cjs → components/Switch/Switch.module.css.cjs} +0 -0
- /package/dist/{index150.mjs → components/Switch/Switch.module.css.mjs} +0 -0
- /package/dist/{index165.cjs → components/Table/Table.module.css.cjs} +0 -0
- /package/dist/{index165.mjs → components/Table/Table.module.css.mjs} +0 -0
- /package/dist/{index181.cjs → components/Tabs/Tabs.module.css.cjs} +0 -0
- /package/dist/{index181.mjs → components/Tabs/Tabs.module.css.mjs} +0 -0
- /package/dist/{index182.cjs → components/Textarea/Textarea.module.css.cjs} +0 -0
- /package/dist/{index182.mjs → components/Textarea/Textarea.module.css.mjs} +0 -0
- /package/dist/{index234.cjs → components/Toast/Toast.module.css.cjs} +0 -0
- /package/dist/{index234.mjs → components/Toast/Toast.module.css.mjs} +0 -0
- /package/dist/{index158.cjs → components/Toggle/Toggle.module.css.cjs} +0 -0
- /package/dist/{index158.mjs → components/Toggle/Toggle.module.css.mjs} +0 -0
- /package/dist/{index174.cjs → components/ToggleGroup/ToggleGroup.module.css.cjs} +0 -0
- /package/dist/{index174.mjs → components/ToggleGroup/ToggleGroup.module.css.mjs} +0 -0
- /package/dist/{index176.cjs → components/Tooltip/Tooltip.module.css.cjs} +0 -0
- /package/dist/{index176.mjs → components/Tooltip/Tooltip.module.css.mjs} +0 -0
- /package/dist/{index210.cjs → components/UserMenu/UserMenu.module.css.cjs} +0 -0
- /package/dist/{index210.mjs → components/UserMenu/UserMenu.module.css.mjs} +0 -0
- /package/dist/{index217.cjs → components/WorkspaceSwitcher/WorkspaceSwitcher.module.css.cjs} +0 -0
- /package/dist/{index217.mjs → components/WorkspaceSwitcher/WorkspaceSwitcher.module.css.mjs} +0 -0
- /package/dist/{index286.cjs → dist/index146.cjs} +0 -0
- /package/dist/{index286.mjs → dist/index146.mjs} +0 -0
- /package/dist/{index283.cjs → dist/index149.cjs} +0 -0
- /package/dist/{index283.mjs → dist/index149.mjs} +0 -0
- /package/dist/{index277.cjs → dist/index172.cjs} +0 -0
- /package/dist/{index277.mjs → dist/index172.mjs} +0 -0
- /package/dist/{index280.cjs → dist/index175.cjs} +0 -0
- /package/dist/{index280.mjs → dist/index175.mjs} +0 -0
- /package/dist/{index287.cjs → dist/index180.cjs} +0 -0
- /package/dist/{index287.mjs → dist/index180.mjs} +0 -0
- /package/dist/{index288.cjs → dist/index189.cjs} +0 -0
- /package/dist/{index288.mjs → dist/index189.mjs} +0 -0
- /package/dist/{index282.cjs → dist/index225.cjs} +0 -0
- /package/dist/{index282.mjs → dist/index225.mjs} +0 -0
- /package/dist/{index281.cjs → dist/index232.cjs} +0 -0
- /package/dist/{index281.mjs → dist/index232.mjs} +0 -0
- /package/dist/{index285.cjs → dist/index240.cjs} +0 -0
- /package/dist/{index285.mjs → dist/index240.mjs} +0 -0
- /package/dist/{index97.cjs → hooks/useClickOutside.cjs} +0 -0
- /package/dist/{index97.mjs → hooks/useClickOutside.mjs} +0 -0
- /package/dist/{index98.cjs → hooks/useCopyToClipboard.cjs} +0 -0
- /package/dist/{index98.mjs → hooks/useCopyToClipboard.mjs} +0 -0
- /package/dist/{index99.cjs → hooks/useDebounce.cjs} +0 -0
- /package/dist/{index99.mjs → hooks/useDebounce.mjs} +0 -0
- /package/dist/{index100.cjs → hooks/useDisclosure.cjs} +0 -0
- /package/dist/{index100.mjs → hooks/useDisclosure.mjs} +0 -0
- /package/dist/{index102.cjs → hooks/useKeyboard.cjs} +0 -0
- /package/dist/{index102.mjs → hooks/useKeyboard.mjs} +0 -0
- /package/dist/{index103.cjs → hooks/useLocalStorage.cjs} +0 -0
- /package/dist/{index103.mjs → hooks/useLocalStorage.mjs} +0 -0
- /package/dist/{index101.cjs → hooks/useMediaQuery.cjs} +0 -0
- /package/dist/{index101.mjs → hooks/useMediaQuery.mjs} +0 -0
- /package/dist/{index105.cjs → hooks/useTheme.cjs} +0 -0
- /package/dist/{index105.mjs → hooks/useTheme.mjs} +0 -0
- /package/dist/{index149.cjs → sections/Container/Container.module.css.cjs} +0 -0
- /package/dist/{index149.mjs → sections/Container/Container.module.css.mjs} +0 -0
- /package/dist/{index160.cjs → sections/Section/Section.module.css.cjs} +0 -0
- /package/dist/{index160.mjs → sections/Section/Section.module.css.mjs} +0 -0
- /package/dist/{index109.cjs → tokens/brands.cjs} +0 -0
- /package/dist/{index109.mjs → tokens/brands.mjs} +0 -0
- /package/dist/{index13.cjs → tokens/primitives.cjs} +0 -0
- /package/dist/{index13.mjs → tokens/primitives.mjs} +0 -0
- /package/dist/{index108.cjs → tokens/themes.cjs} +0 -0
- /package/dist/{index108.mjs → tokens/themes.mjs} +0 -0
- /package/dist/{index16.cjs → utils/fonts.cjs} +0 -0
- /package/dist/{index16.mjs → utils/fonts.mjs} +0 -0
- /package/dist/{index57.cjs → utils/icons.cjs} +0 -0
- /package/dist/{index57.mjs → utils/icons.mjs} +0 -0
- /package/dist/{index107.cjs → utils/validation.cjs} +0 -0
- /package/dist/{index107.mjs → utils/validation.mjs} +0 -0
|
@@ -0,0 +1,389 @@
|
|
|
1
|
+
import { jsxs as a, jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { useThemeContext as B } from "../../contexts/ThemeContext.mjs";
|
|
3
|
+
import { useTheme as S } from "../../hooks/useTheme.mjs";
|
|
4
|
+
import { Switch as v } from "../Switch/Switch.mjs";
|
|
5
|
+
import { Button as d } from "../Button/Button.mjs";
|
|
6
|
+
import { Card as o } from "../Card/Card.mjs";
|
|
7
|
+
import { Badge as n } from "../Badge/Badge.mjs";
|
|
8
|
+
import { Radio as F } from "../Radio/Radio.mjs";
|
|
9
|
+
import { Alert as I } from "../Alert/Alert.mjs";
|
|
10
|
+
const l = {
|
|
11
|
+
orion: {
|
|
12
|
+
accent: "#1B5BFF",
|
|
13
|
+
radius: "12px",
|
|
14
|
+
description: "Blue accent • 12px radius"
|
|
15
|
+
},
|
|
16
|
+
red: {
|
|
17
|
+
accent: "#D7282F",
|
|
18
|
+
radius: "9999px",
|
|
19
|
+
description: "Red accent • Pill buttons"
|
|
20
|
+
},
|
|
21
|
+
deepblue: {
|
|
22
|
+
accent: "#006FBA",
|
|
23
|
+
radius: "12px",
|
|
24
|
+
description: "Deep Blue accent • 12px radius"
|
|
25
|
+
},
|
|
26
|
+
orange: {
|
|
27
|
+
accent: "#F15D22",
|
|
28
|
+
radius: "9999px",
|
|
29
|
+
description: "Red-Orange accent • Pill buttons"
|
|
30
|
+
},
|
|
31
|
+
ember: {
|
|
32
|
+
accent: "#F15D22",
|
|
33
|
+
radius: "12px",
|
|
34
|
+
description: "Orange accent • Black buttons • 12px radius"
|
|
35
|
+
},
|
|
36
|
+
lemon: {
|
|
37
|
+
accent: "#72FF43",
|
|
38
|
+
radius: "9999px",
|
|
39
|
+
description: "Lime green accent • Highly rounded"
|
|
40
|
+
}
|
|
41
|
+
}, T = ({
|
|
42
|
+
showBrandSelector: p = !0,
|
|
43
|
+
showThemeToggle: g = !0,
|
|
44
|
+
showSummary: y = !0,
|
|
45
|
+
compact: u = !1,
|
|
46
|
+
className: h,
|
|
47
|
+
style: x,
|
|
48
|
+
onThemeChange: f,
|
|
49
|
+
onBrandChange: k
|
|
50
|
+
}) => {
|
|
51
|
+
const C = S();
|
|
52
|
+
let m = null;
|
|
53
|
+
try {
|
|
54
|
+
m = B();
|
|
55
|
+
} catch {
|
|
56
|
+
}
|
|
57
|
+
const { theme: t, brand: i, setTheme: b, setBrand: z } = m ?? C, c = (e) => {
|
|
58
|
+
b(e), f?.(e);
|
|
59
|
+
}, s = (e) => {
|
|
60
|
+
z(e), k?.(e);
|
|
61
|
+
};
|
|
62
|
+
return u ? /* @__PURE__ */ a(
|
|
63
|
+
"div",
|
|
64
|
+
{
|
|
65
|
+
className: h,
|
|
66
|
+
style: {
|
|
67
|
+
display: "flex",
|
|
68
|
+
gap: "var(--spacing-3)",
|
|
69
|
+
alignItems: "center",
|
|
70
|
+
flexWrap: "wrap"
|
|
71
|
+
},
|
|
72
|
+
children: [
|
|
73
|
+
g && /* @__PURE__ */ a(
|
|
74
|
+
"div",
|
|
75
|
+
{
|
|
76
|
+
style: {
|
|
77
|
+
display: "flex",
|
|
78
|
+
alignItems: "center",
|
|
79
|
+
gap: "var(--spacing-2)"
|
|
80
|
+
},
|
|
81
|
+
children: [
|
|
82
|
+
/* @__PURE__ */ r("span", { style: { fontSize: "20px" }, children: "☀️" }),
|
|
83
|
+
/* @__PURE__ */ r(
|
|
84
|
+
v,
|
|
85
|
+
{
|
|
86
|
+
checked: t === "dark",
|
|
87
|
+
onChange: (e) => c(e.target.checked ? "dark" : "light")
|
|
88
|
+
}
|
|
89
|
+
),
|
|
90
|
+
/* @__PURE__ */ r("span", { style: { fontSize: "20px" }, children: "🌙" })
|
|
91
|
+
]
|
|
92
|
+
}
|
|
93
|
+
),
|
|
94
|
+
p && /* @__PURE__ */ r("div", { style: { display: "flex", gap: "var(--spacing-2)" }, children: Object.keys(l).map((e) => /* @__PURE__ */ r(
|
|
95
|
+
d,
|
|
96
|
+
{
|
|
97
|
+
variant: i === e ? "primary" : "secondary",
|
|
98
|
+
size: "sm",
|
|
99
|
+
onClick: () => s(e),
|
|
100
|
+
children: e.charAt(0).toUpperCase() + e.slice(1)
|
|
101
|
+
},
|
|
102
|
+
e
|
|
103
|
+
)) })
|
|
104
|
+
]
|
|
105
|
+
}
|
|
106
|
+
) : /* @__PURE__ */ a(
|
|
107
|
+
o,
|
|
108
|
+
{
|
|
109
|
+
variant: "elevated",
|
|
110
|
+
className: h,
|
|
111
|
+
style: {
|
|
112
|
+
background: "var(--interactive-primary)",
|
|
113
|
+
color: "var(--interactive-primary-text)",
|
|
114
|
+
...x
|
|
115
|
+
},
|
|
116
|
+
children: [
|
|
117
|
+
/* @__PURE__ */ r(o.Header, { children: /* @__PURE__ */ a(
|
|
118
|
+
"div",
|
|
119
|
+
{
|
|
120
|
+
style: {
|
|
121
|
+
display: "flex",
|
|
122
|
+
alignItems: "center",
|
|
123
|
+
gap: "var(--spacing-2)"
|
|
124
|
+
},
|
|
125
|
+
children: [
|
|
126
|
+
/* @__PURE__ */ r("span", { style: { fontSize: "24px" }, children: "🎨" }),
|
|
127
|
+
/* @__PURE__ */ a("div", { children: [
|
|
128
|
+
/* @__PURE__ */ r("h3", { style: { margin: 0, color: "var(--interactive-primary-text)" }, children: "Theme & Brand Settings" }),
|
|
129
|
+
/* @__PURE__ */ r(
|
|
130
|
+
"p",
|
|
131
|
+
{
|
|
132
|
+
style: {
|
|
133
|
+
margin: 0,
|
|
134
|
+
fontSize: "var(--text-sm)",
|
|
135
|
+
opacity: 0.9,
|
|
136
|
+
color: "var(--interactive-primary-text)"
|
|
137
|
+
},
|
|
138
|
+
children: "Customize the appearance in real-time"
|
|
139
|
+
}
|
|
140
|
+
)
|
|
141
|
+
] })
|
|
142
|
+
]
|
|
143
|
+
}
|
|
144
|
+
) }),
|
|
145
|
+
/* @__PURE__ */ r(
|
|
146
|
+
o.Body,
|
|
147
|
+
{
|
|
148
|
+
style: {
|
|
149
|
+
background: "var(--surface-base)",
|
|
150
|
+
color: "var(--text-primary)"
|
|
151
|
+
},
|
|
152
|
+
children: /* @__PURE__ */ a("div", { style: { display: "grid", gap: "var(--spacing-6)" }, children: [
|
|
153
|
+
g && /* @__PURE__ */ a("div", { children: [
|
|
154
|
+
/* @__PURE__ */ a(
|
|
155
|
+
"div",
|
|
156
|
+
{
|
|
157
|
+
style: {
|
|
158
|
+
display: "flex",
|
|
159
|
+
alignItems: "center",
|
|
160
|
+
justifyContent: "space-between",
|
|
161
|
+
marginBottom: "var(--spacing-3)"
|
|
162
|
+
},
|
|
163
|
+
children: [
|
|
164
|
+
/* @__PURE__ */ a("div", { children: [
|
|
165
|
+
/* @__PURE__ */ r(
|
|
166
|
+
"label",
|
|
167
|
+
{
|
|
168
|
+
style: {
|
|
169
|
+
display: "block",
|
|
170
|
+
fontSize: "var(--text-lg)",
|
|
171
|
+
fontWeight: "var(--font-weight-bold)",
|
|
172
|
+
color: "var(--text-primary)",
|
|
173
|
+
marginBottom: "var(--spacing-1)"
|
|
174
|
+
},
|
|
175
|
+
children: "Color Mode"
|
|
176
|
+
}
|
|
177
|
+
),
|
|
178
|
+
/* @__PURE__ */ r(
|
|
179
|
+
"p",
|
|
180
|
+
{
|
|
181
|
+
style: {
|
|
182
|
+
fontSize: "var(--text-sm)",
|
|
183
|
+
color: "var(--text-secondary)",
|
|
184
|
+
margin: 0
|
|
185
|
+
},
|
|
186
|
+
children: "Switch between light and dark themes"
|
|
187
|
+
}
|
|
188
|
+
)
|
|
189
|
+
] }),
|
|
190
|
+
/* @__PURE__ */ r(
|
|
191
|
+
n,
|
|
192
|
+
{
|
|
193
|
+
variant: t === "light" ? "warning" : "primary",
|
|
194
|
+
size: "lg",
|
|
195
|
+
children: t === "light" ? "☀️ Light" : "🌙 Dark"
|
|
196
|
+
}
|
|
197
|
+
)
|
|
198
|
+
]
|
|
199
|
+
}
|
|
200
|
+
),
|
|
201
|
+
/* @__PURE__ */ a(
|
|
202
|
+
"div",
|
|
203
|
+
{
|
|
204
|
+
style: {
|
|
205
|
+
display: "flex",
|
|
206
|
+
alignItems: "center",
|
|
207
|
+
gap: "var(--spacing-3)",
|
|
208
|
+
padding: "var(--spacing-4)",
|
|
209
|
+
background: "var(--surface-subtle)",
|
|
210
|
+
borderRadius: "var(--radius-control)",
|
|
211
|
+
border: "2px solid var(--border-subtle)"
|
|
212
|
+
},
|
|
213
|
+
children: [
|
|
214
|
+
/* @__PURE__ */ r("span", { style: { fontSize: "32px" }, children: "☀️" }),
|
|
215
|
+
/* @__PURE__ */ r(
|
|
216
|
+
v,
|
|
217
|
+
{
|
|
218
|
+
checked: t === "dark",
|
|
219
|
+
onChange: (e) => c(e.target.checked ? "dark" : "light"),
|
|
220
|
+
size: "lg"
|
|
221
|
+
}
|
|
222
|
+
),
|
|
223
|
+
/* @__PURE__ */ r("span", { style: { fontSize: "32px" }, children: "🌙" }),
|
|
224
|
+
/* @__PURE__ */ a(
|
|
225
|
+
"div",
|
|
226
|
+
{
|
|
227
|
+
style: {
|
|
228
|
+
marginLeft: "auto",
|
|
229
|
+
display: "flex",
|
|
230
|
+
gap: "var(--spacing-2)"
|
|
231
|
+
},
|
|
232
|
+
children: [
|
|
233
|
+
/* @__PURE__ */ r(
|
|
234
|
+
d,
|
|
235
|
+
{
|
|
236
|
+
variant: t === "light" ? "primary" : "ghost",
|
|
237
|
+
size: "sm",
|
|
238
|
+
onClick: () => c("light"),
|
|
239
|
+
children: "Light"
|
|
240
|
+
}
|
|
241
|
+
),
|
|
242
|
+
/* @__PURE__ */ r(
|
|
243
|
+
d,
|
|
244
|
+
{
|
|
245
|
+
variant: t === "dark" ? "primary" : "ghost",
|
|
246
|
+
size: "sm",
|
|
247
|
+
onClick: () => c("dark"),
|
|
248
|
+
children: "Dark"
|
|
249
|
+
}
|
|
250
|
+
)
|
|
251
|
+
]
|
|
252
|
+
}
|
|
253
|
+
)
|
|
254
|
+
]
|
|
255
|
+
}
|
|
256
|
+
)
|
|
257
|
+
] }),
|
|
258
|
+
p && /* @__PURE__ */ a("div", { children: [
|
|
259
|
+
/* @__PURE__ */ a("div", { style: { marginBottom: "var(--spacing-3)" }, children: [
|
|
260
|
+
/* @__PURE__ */ r(
|
|
261
|
+
"label",
|
|
262
|
+
{
|
|
263
|
+
style: {
|
|
264
|
+
display: "block",
|
|
265
|
+
fontSize: "var(--text-lg)",
|
|
266
|
+
fontWeight: "var(--font-weight-bold)",
|
|
267
|
+
color: "var(--text-primary)",
|
|
268
|
+
marginBottom: "var(--spacing-1)"
|
|
269
|
+
},
|
|
270
|
+
children: "Brand Identity"
|
|
271
|
+
}
|
|
272
|
+
),
|
|
273
|
+
/* @__PURE__ */ r(
|
|
274
|
+
"p",
|
|
275
|
+
{
|
|
276
|
+
style: {
|
|
277
|
+
fontSize: "var(--text-sm)",
|
|
278
|
+
color: "var(--text-secondary)",
|
|
279
|
+
margin: 0
|
|
280
|
+
},
|
|
281
|
+
children: "Select a brand to see different accent colors and styling"
|
|
282
|
+
}
|
|
283
|
+
)
|
|
284
|
+
] }),
|
|
285
|
+
/* @__PURE__ */ r(
|
|
286
|
+
"div",
|
|
287
|
+
{
|
|
288
|
+
style: {
|
|
289
|
+
display: "grid",
|
|
290
|
+
gridTemplateColumns: "repeat(auto-fit, minmax(250px, 1fr))",
|
|
291
|
+
gap: "var(--spacing-3)"
|
|
292
|
+
},
|
|
293
|
+
children: Object.keys(l).map((e) => /* @__PURE__ */ a(
|
|
294
|
+
"div",
|
|
295
|
+
{
|
|
296
|
+
onClick: () => s(e),
|
|
297
|
+
style: {
|
|
298
|
+
padding: "var(--spacing-4)",
|
|
299
|
+
background: i === e ? "var(--interactive-primary)" : "var(--surface-subtle)",
|
|
300
|
+
color: i === e ? "white" : "var(--text-primary)",
|
|
301
|
+
borderRadius: "var(--radius-control)",
|
|
302
|
+
border: `2px solid ${i === e ? "var(--interactive-primary)" : "var(--border-subtle)"}`,
|
|
303
|
+
cursor: "pointer",
|
|
304
|
+
transition: "all 150ms ease"
|
|
305
|
+
},
|
|
306
|
+
children: [
|
|
307
|
+
/* @__PURE__ */ a(
|
|
308
|
+
"div",
|
|
309
|
+
{
|
|
310
|
+
style: {
|
|
311
|
+
display: "flex",
|
|
312
|
+
alignItems: "center",
|
|
313
|
+
justifyContent: "space-between",
|
|
314
|
+
marginBottom: "var(--spacing-2)"
|
|
315
|
+
},
|
|
316
|
+
children: [
|
|
317
|
+
/* @__PURE__ */ r(
|
|
318
|
+
F,
|
|
319
|
+
{
|
|
320
|
+
name: "brand",
|
|
321
|
+
value: e,
|
|
322
|
+
checked: i === e,
|
|
323
|
+
onChange: () => s(e),
|
|
324
|
+
label: e.charAt(0).toUpperCase() + e.slice(1),
|
|
325
|
+
size: "lg"
|
|
326
|
+
}
|
|
327
|
+
),
|
|
328
|
+
i === e && /* @__PURE__ */ r(n, { variant: "success", children: "Active" })
|
|
329
|
+
]
|
|
330
|
+
}
|
|
331
|
+
),
|
|
332
|
+
/* @__PURE__ */ r(
|
|
333
|
+
"p",
|
|
334
|
+
{
|
|
335
|
+
style: {
|
|
336
|
+
fontSize: "var(--text-sm)",
|
|
337
|
+
margin: 0,
|
|
338
|
+
opacity: 0.8
|
|
339
|
+
},
|
|
340
|
+
children: l[e].description
|
|
341
|
+
}
|
|
342
|
+
)
|
|
343
|
+
]
|
|
344
|
+
},
|
|
345
|
+
e
|
|
346
|
+
))
|
|
347
|
+
}
|
|
348
|
+
)
|
|
349
|
+
] }),
|
|
350
|
+
y && /* @__PURE__ */ r(I, { variant: "info", title: "Current Settings", children: /* @__PURE__ */ a(
|
|
351
|
+
"div",
|
|
352
|
+
{
|
|
353
|
+
style: {
|
|
354
|
+
display: "flex",
|
|
355
|
+
gap: "var(--spacing-2)",
|
|
356
|
+
flexWrap: "wrap"
|
|
357
|
+
},
|
|
358
|
+
children: [
|
|
359
|
+
/* @__PURE__ */ a(n, { variant: "primary", children: [
|
|
360
|
+
"Theme: ",
|
|
361
|
+
t
|
|
362
|
+
] }),
|
|
363
|
+
/* @__PURE__ */ a(n, { variant: "secondary", children: [
|
|
364
|
+
"Brand: ",
|
|
365
|
+
i
|
|
366
|
+
] }),
|
|
367
|
+
/* @__PURE__ */ a(n, { variant: "secondary", children: [
|
|
368
|
+
"Accent: ",
|
|
369
|
+
l[i].accent
|
|
370
|
+
] }),
|
|
371
|
+
/* @__PURE__ */ a(n, { variant: "secondary", children: [
|
|
372
|
+
"Radius:",
|
|
373
|
+
" ",
|
|
374
|
+
l[i].radius === "9999px" ? "9999px (pills)" : l[i].radius
|
|
375
|
+
] })
|
|
376
|
+
]
|
|
377
|
+
}
|
|
378
|
+
) })
|
|
379
|
+
] })
|
|
380
|
+
}
|
|
381
|
+
)
|
|
382
|
+
]
|
|
383
|
+
}
|
|
384
|
+
);
|
|
385
|
+
};
|
|
386
|
+
T.displayName = "ThemeController";
|
|
387
|
+
export {
|
|
388
|
+
T as ThemeController
|
|
389
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),r=require("react"),N=require("react-dom"),i=require("./Toast.module.css.cjs");let W=0;const B=()=>`toast-${++W}`,j=r.createContext(null),P=()=>{const e=r.useContext(j);if(!e)throw new Error("useToast must be used within a ToastProvider");return e},E=({toast:e,onDismiss:u})=>{const[l,d]=r.useState(!1),a=r.useRef(null),c=r.useCallback(()=>{d(!0),setTimeout(()=>{u(e.id),e.onDismiss?.()},200)},[e,u]);r.useEffect(()=>{if(e.duration&&e.duration>0)return a.current=setTimeout(c,e.duration),()=>{a.current&&clearTimeout(a.current)}},[e.duration,c]);const o=()=>{a.current&&clearTimeout(a.current)},h=()=>{e.duration&&e.duration>0&&(a.current=setTimeout(c,e.duration))},v=[i.default.toast,i.default[e.variant||"info"],l&&i.default.exiting].filter(Boolean).join(" "),f=()=>{switch(e.variant){case"success":return t.jsx("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",children:t.jsx("path",{d:"M16.667 5L7.5 14.167 3.333 10",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})});case"error":return t.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",children:[t.jsx("circle",{cx:"10",cy:"10",r:"7.5",stroke:"currentColor",strokeWidth:"1.5"}),t.jsx("path",{d:"M10 6v5M10 13.5v.5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})]});case"warning":return t.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",children:[t.jsx("path",{d:"M8.57 3.216L1.538 15.143a1.667 1.667 0 001.429 2.524h14.066a1.667 1.667 0 001.429-2.524L11.43 3.216a1.667 1.667 0 00-2.858 0z",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),t.jsx("path",{d:"M10 7.5v3.333M10 14.167h.008",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]});default:return t.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",children:[t.jsx("circle",{cx:"10",cy:"10",r:"7.5",stroke:"currentColor",strokeWidth:"1.5"}),t.jsx("path",{d:"M10 9v4.5M10 6.5v.5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})]})}};return t.jsxs("div",{className:v,role:"alert","aria-live":"polite",onMouseEnter:o,onMouseLeave:h,children:[t.jsx("span",{className:i.default.icon,"aria-hidden":"true",children:f()}),t.jsxs("div",{className:i.default.content,children:[e.title&&t.jsx("div",{className:i.default.title,children:e.title}),t.jsx("div",{className:i.default.message,children:e.message})]}),e.action&&t.jsx("button",{type:"button",className:i.default.action,onClick:()=>{e.action?.onClick(),c()},children:e.action.label}),e.dismissible!==!1&&t.jsx("button",{type:"button",className:i.default.closeButton,onClick:c,"aria-label":"Dismiss",children:t.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:t.jsx("path",{d:"M12 4L4 12M4 4l8 8",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})})]})},g=({children:e,position:u="bottom-right",maxToasts:l=5,defaultDuration:d=5e3})=>{const[a,c]=r.useState([]),o=r.useCallback(s=>{const n=B(),{type:k,...m}=s,L=m.variant||k||"info",M={id:n,duration:d,dismissible:!0,variant:L,...m};return c(y=>{const x=[...y,M];return x.length>l?x.slice(-l):x}),n},[d,l]),h=r.useCallback(s=>{c(n=>n.filter(k=>k.id!==s))},[]),v=r.useCallback(()=>{c([])},[]),f=r.useCallback((s,n)=>o({message:s,variant:"info",...n}),[o]),C=r.useCallback((s,n)=>o({message:s,variant:"success",...n}),[o]),p=r.useCallback((s,n)=>o({message:s,variant:"warning",...n}),[o]),b=r.useCallback((s,n)=>o({message:s,variant:"error",...n}),[o]),T={toast:o,info:f,success:C,warning:p,error:b,dismiss:h,dismissAll:v},w=[i.default.container,i.default[u]].filter(Boolean).join(" ");return t.jsxs(j.Provider,{value:T,children:[e,a.length>0&&N.createPortal(t.jsx("div",{className:w,"aria-label":"Notifications",children:a.map(s=>t.jsx(E,{toast:s,onDismiss:h},s.id))}),document.body)]})};g.displayName="ToastProvider";exports.ToastProvider=g;exports.useToast=P;
|
|
@@ -0,0 +1,225 @@
|
|
|
1
|
+
import { jsxs as l, jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { useState as w, useCallback as a, useContext as j, createContext as B, useRef as E, useEffect as P } from "react";
|
|
3
|
+
import { createPortal as I } from "react-dom";
|
|
4
|
+
import i from "./Toast.module.css.mjs";
|
|
5
|
+
let D = 0;
|
|
6
|
+
const R = () => `toast-${++D}`, C = B(null), G = () => {
|
|
7
|
+
const e = j(C);
|
|
8
|
+
if (!e)
|
|
9
|
+
throw new Error("useToast must be used within a ToastProvider");
|
|
10
|
+
return e;
|
|
11
|
+
}, z = ({ toast: e, onDismiss: u }) => {
|
|
12
|
+
const [d, h] = w(!1), s = E(null), c = a(() => {
|
|
13
|
+
h(!0), setTimeout(() => {
|
|
14
|
+
u(e.id), e.onDismiss?.();
|
|
15
|
+
}, 200);
|
|
16
|
+
}, [e, u]);
|
|
17
|
+
P(() => {
|
|
18
|
+
if (e.duration && e.duration > 0)
|
|
19
|
+
return s.current = setTimeout(c, e.duration), () => {
|
|
20
|
+
s.current && clearTimeout(s.current);
|
|
21
|
+
};
|
|
22
|
+
}, [e.duration, c]);
|
|
23
|
+
const o = () => {
|
|
24
|
+
s.current && clearTimeout(s.current);
|
|
25
|
+
}, m = () => {
|
|
26
|
+
e.duration && e.duration > 0 && (s.current = setTimeout(c, e.duration));
|
|
27
|
+
}, v = [
|
|
28
|
+
i.toast,
|
|
29
|
+
i[e.variant || "info"],
|
|
30
|
+
d && i.exiting
|
|
31
|
+
].filter(Boolean).join(" "), k = () => {
|
|
32
|
+
switch (e.variant) {
|
|
33
|
+
case "success":
|
|
34
|
+
return /* @__PURE__ */ t("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", children: /* @__PURE__ */ t(
|
|
35
|
+
"path",
|
|
36
|
+
{
|
|
37
|
+
d: "M16.667 5L7.5 14.167 3.333 10",
|
|
38
|
+
stroke: "currentColor",
|
|
39
|
+
strokeWidth: "2",
|
|
40
|
+
strokeLinecap: "round",
|
|
41
|
+
strokeLinejoin: "round"
|
|
42
|
+
}
|
|
43
|
+
) });
|
|
44
|
+
case "error":
|
|
45
|
+
return /* @__PURE__ */ l("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", children: [
|
|
46
|
+
/* @__PURE__ */ t(
|
|
47
|
+
"circle",
|
|
48
|
+
{
|
|
49
|
+
cx: "10",
|
|
50
|
+
cy: "10",
|
|
51
|
+
r: "7.5",
|
|
52
|
+
stroke: "currentColor",
|
|
53
|
+
strokeWidth: "1.5"
|
|
54
|
+
}
|
|
55
|
+
),
|
|
56
|
+
/* @__PURE__ */ t(
|
|
57
|
+
"path",
|
|
58
|
+
{
|
|
59
|
+
d: "M10 6v5M10 13.5v.5",
|
|
60
|
+
stroke: "currentColor",
|
|
61
|
+
strokeWidth: "1.5",
|
|
62
|
+
strokeLinecap: "round"
|
|
63
|
+
}
|
|
64
|
+
)
|
|
65
|
+
] });
|
|
66
|
+
case "warning":
|
|
67
|
+
return /* @__PURE__ */ l("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", children: [
|
|
68
|
+
/* @__PURE__ */ t(
|
|
69
|
+
"path",
|
|
70
|
+
{
|
|
71
|
+
d: "M8.57 3.216L1.538 15.143a1.667 1.667 0 001.429 2.524h14.066a1.667 1.667 0 001.429-2.524L11.43 3.216a1.667 1.667 0 00-2.858 0z",
|
|
72
|
+
stroke: "currentColor",
|
|
73
|
+
strokeWidth: "1.5",
|
|
74
|
+
strokeLinecap: "round",
|
|
75
|
+
strokeLinejoin: "round"
|
|
76
|
+
}
|
|
77
|
+
),
|
|
78
|
+
/* @__PURE__ */ t(
|
|
79
|
+
"path",
|
|
80
|
+
{
|
|
81
|
+
d: "M10 7.5v3.333M10 14.167h.008",
|
|
82
|
+
stroke: "currentColor",
|
|
83
|
+
strokeWidth: "1.5",
|
|
84
|
+
strokeLinecap: "round",
|
|
85
|
+
strokeLinejoin: "round"
|
|
86
|
+
}
|
|
87
|
+
)
|
|
88
|
+
] });
|
|
89
|
+
default:
|
|
90
|
+
return /* @__PURE__ */ l("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", children: [
|
|
91
|
+
/* @__PURE__ */ t(
|
|
92
|
+
"circle",
|
|
93
|
+
{
|
|
94
|
+
cx: "10",
|
|
95
|
+
cy: "10",
|
|
96
|
+
r: "7.5",
|
|
97
|
+
stroke: "currentColor",
|
|
98
|
+
strokeWidth: "1.5"
|
|
99
|
+
}
|
|
100
|
+
),
|
|
101
|
+
/* @__PURE__ */ t(
|
|
102
|
+
"path",
|
|
103
|
+
{
|
|
104
|
+
d: "M10 9v4.5M10 6.5v.5",
|
|
105
|
+
stroke: "currentColor",
|
|
106
|
+
strokeWidth: "1.5",
|
|
107
|
+
strokeLinecap: "round"
|
|
108
|
+
}
|
|
109
|
+
)
|
|
110
|
+
] });
|
|
111
|
+
}
|
|
112
|
+
};
|
|
113
|
+
return /* @__PURE__ */ l(
|
|
114
|
+
"div",
|
|
115
|
+
{
|
|
116
|
+
className: v,
|
|
117
|
+
role: "alert",
|
|
118
|
+
"aria-live": "polite",
|
|
119
|
+
onMouseEnter: o,
|
|
120
|
+
onMouseLeave: m,
|
|
121
|
+
children: [
|
|
122
|
+
/* @__PURE__ */ t("span", { className: i.icon, "aria-hidden": "true", children: k() }),
|
|
123
|
+
/* @__PURE__ */ l("div", { className: i.content, children: [
|
|
124
|
+
e.title && /* @__PURE__ */ t("div", { className: i.title, children: e.title }),
|
|
125
|
+
/* @__PURE__ */ t("div", { className: i.message, children: e.message })
|
|
126
|
+
] }),
|
|
127
|
+
e.action && /* @__PURE__ */ t(
|
|
128
|
+
"button",
|
|
129
|
+
{
|
|
130
|
+
type: "button",
|
|
131
|
+
className: i.action,
|
|
132
|
+
onClick: () => {
|
|
133
|
+
e.action?.onClick(), c();
|
|
134
|
+
},
|
|
135
|
+
children: e.action.label
|
|
136
|
+
}
|
|
137
|
+
),
|
|
138
|
+
e.dismissible !== !1 && /* @__PURE__ */ t(
|
|
139
|
+
"button",
|
|
140
|
+
{
|
|
141
|
+
type: "button",
|
|
142
|
+
className: i.closeButton,
|
|
143
|
+
onClick: c,
|
|
144
|
+
"aria-label": "Dismiss",
|
|
145
|
+
children: /* @__PURE__ */ t("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", children: /* @__PURE__ */ t(
|
|
146
|
+
"path",
|
|
147
|
+
{
|
|
148
|
+
d: "M12 4L4 12M4 4l8 8",
|
|
149
|
+
stroke: "currentColor",
|
|
150
|
+
strokeWidth: "1.5",
|
|
151
|
+
strokeLinecap: "round",
|
|
152
|
+
strokeLinejoin: "round"
|
|
153
|
+
}
|
|
154
|
+
) })
|
|
155
|
+
}
|
|
156
|
+
)
|
|
157
|
+
]
|
|
158
|
+
}
|
|
159
|
+
);
|
|
160
|
+
}, A = ({
|
|
161
|
+
children: e,
|
|
162
|
+
position: u = "bottom-right",
|
|
163
|
+
maxToasts: d = 5,
|
|
164
|
+
defaultDuration: h = 5e3
|
|
165
|
+
}) => {
|
|
166
|
+
const [s, c] = w([]), o = a(
|
|
167
|
+
(r) => {
|
|
168
|
+
const n = R(), { type: f, ...g } = r, N = g.variant || f || "info", y = {
|
|
169
|
+
id: n,
|
|
170
|
+
duration: h,
|
|
171
|
+
dismissible: !0,
|
|
172
|
+
variant: N,
|
|
173
|
+
...g
|
|
174
|
+
};
|
|
175
|
+
return c((W) => {
|
|
176
|
+
const p = [...W, y];
|
|
177
|
+
return p.length > d ? p.slice(-d) : p;
|
|
178
|
+
}), n;
|
|
179
|
+
},
|
|
180
|
+
[h, d]
|
|
181
|
+
), m = a((r) => {
|
|
182
|
+
c((n) => n.filter((f) => f.id !== r));
|
|
183
|
+
}, []), v = a(() => {
|
|
184
|
+
c([]);
|
|
185
|
+
}, []), k = a(
|
|
186
|
+
(r, n) => o({ message: r, variant: "info", ...n }),
|
|
187
|
+
[o]
|
|
188
|
+
), L = a(
|
|
189
|
+
(r, n) => o({ message: r, variant: "success", ...n }),
|
|
190
|
+
[o]
|
|
191
|
+
), x = a(
|
|
192
|
+
(r, n) => o({ message: r, variant: "warning", ...n }),
|
|
193
|
+
[o]
|
|
194
|
+
), T = a(
|
|
195
|
+
(r, n) => o({ message: r, variant: "error", ...n }),
|
|
196
|
+
[o]
|
|
197
|
+
), M = {
|
|
198
|
+
toast: o,
|
|
199
|
+
info: k,
|
|
200
|
+
success: L,
|
|
201
|
+
warning: x,
|
|
202
|
+
error: T,
|
|
203
|
+
dismiss: m,
|
|
204
|
+
dismissAll: v
|
|
205
|
+
}, b = [i.container, i[u]].filter(Boolean).join(" ");
|
|
206
|
+
return /* @__PURE__ */ l(C.Provider, { value: M, children: [
|
|
207
|
+
e,
|
|
208
|
+
s.length > 0 && I(
|
|
209
|
+
/* @__PURE__ */ t("div", { className: b, "aria-label": "Notifications", children: s.map((r) => /* @__PURE__ */ t(
|
|
210
|
+
z,
|
|
211
|
+
{
|
|
212
|
+
toast: r,
|
|
213
|
+
onDismiss: m
|
|
214
|
+
},
|
|
215
|
+
r.id
|
|
216
|
+
)) }),
|
|
217
|
+
document.body
|
|
218
|
+
)
|
|
219
|
+
] });
|
|
220
|
+
};
|
|
221
|
+
A.displayName = "ToastProvider";
|
|
222
|
+
export {
|
|
223
|
+
A as ToastProvider,
|
|
224
|
+
G as useToast
|
|
225
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const N=require("react/jsx-runtime"),l=require("react"),t=require("./Toggle.module.css.cjs"),u=l.forwardRef(({pressed:o,defaultPressed:c=!1,onPressedChange:a,variant:d="default",size:i="md",disabled:f,className:g,children:m,onClick:n,...b},T)=>{const[j,p]=l.useState(c),s=o!==void 0,e=s?o:j,y=l.useCallback(x=>{const r=!e;s||p(r),a?.(r),n?.(x)},[e,s,a,n]),q=[t.default.toggle,t.default[d],t.default[i],e&&t.default.pressed,g].filter(Boolean).join(" ");return N.jsx("button",{ref:T,type:"button",className:q,"aria-pressed":e,disabled:f,onClick:y,...b,children:m})});u.displayName="Toggle";exports.Toggle=u;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { jsx as j } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as k, useState as C, useCallback as P } from "react";
|
|
3
|
+
import s from "./Toggle.module.css.mjs";
|
|
4
|
+
const T = k(
|
|
5
|
+
({
|
|
6
|
+
pressed: o,
|
|
7
|
+
defaultPressed: n = !1,
|
|
8
|
+
onPressedChange: l,
|
|
9
|
+
variant: i = "default",
|
|
10
|
+
size: c = "md",
|
|
11
|
+
disabled: d,
|
|
12
|
+
className: m,
|
|
13
|
+
children: f,
|
|
14
|
+
onClick: r,
|
|
15
|
+
...p
|
|
16
|
+
}, u) => {
|
|
17
|
+
const [g, b] = C(n), t = o !== void 0, e = t ? o : g, x = P(
|
|
18
|
+
(N) => {
|
|
19
|
+
const a = !e;
|
|
20
|
+
t || b(a), l?.(a), r?.(N);
|
|
21
|
+
},
|
|
22
|
+
[e, t, l, r]
|
|
23
|
+
), y = [
|
|
24
|
+
s.toggle,
|
|
25
|
+
s[i],
|
|
26
|
+
s[c],
|
|
27
|
+
e && s.pressed,
|
|
28
|
+
m
|
|
29
|
+
].filter(Boolean).join(" ");
|
|
30
|
+
return /* @__PURE__ */ j(
|
|
31
|
+
"button",
|
|
32
|
+
{
|
|
33
|
+
ref: u,
|
|
34
|
+
type: "button",
|
|
35
|
+
className: y,
|
|
36
|
+
"aria-pressed": e,
|
|
37
|
+
disabled: d,
|
|
38
|
+
onClick: x,
|
|
39
|
+
...p,
|
|
40
|
+
children: f
|
|
41
|
+
}
|
|
42
|
+
);
|
|
43
|
+
}
|
|
44
|
+
);
|
|
45
|
+
T.displayName = "Toggle";
|
|
46
|
+
export {
|
|
47
|
+
T as Toggle
|
|
48
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const G=require("react/jsx-runtime"),n=require("react"),a=require("./ToggleGroup.module.css.cjs"),j=n.createContext(null);function q(){const t=n.useContext(j);if(!t)throw new Error("ToggleGroup.Item must be used within a ToggleGroup");return t}const A=n.forwardRef(({value:t,disabled:c,className:y,children:g,...d},f)=>{const{type:I,value:b,onItemToggle:x,variant:h,size:s,disabled:p}=q(),m=b.includes(t),T=c||p,u=[a.default.item,m&&a.default.itemPressed,y].filter(Boolean).join(" ");return G.jsx("button",{ref:f,type:"button",className:u,"aria-pressed":m,disabled:T,onClick:()=>x(t),...d,children:g})});A.displayName="ToggleGroup.Item";const R=n.forwardRef(({type:t,value:c,defaultValue:y,onValueChange:g,variant:d="default",size:f="md",disabled:I=!1,className:b,children:x,...h},s)=>{const p=e=>e===void 0?[]:Array.isArray(e)?e:[e],[m,T]=n.useState(p(y)),u=c!==void 0,i=u?p(c):m,k=n.useRef(null),C=n.useCallback(e=>{let o;i.includes(e)?o=i.filter(r=>r!==e):t==="multiple"?o=[...i,e]:o=[e],u||T(o),g?.(t==="single"?o[0]??"":o)},[i,t,u,g]),v=n.useCallback(e=>{const o=k.current;if(!o)return;const r=Array.from(o.querySelectorAll("button:not(:disabled)")),w=r.indexOf(e.target);if(w===-1)return;let l;e.key==="ArrowRight"||e.key==="ArrowDown"?l=(w+1)%r.length:e.key==="ArrowLeft"||e.key==="ArrowUp"?l=(w-1+r.length)%r.length:e.key==="Home"?l=0:e.key==="End"&&(l=r.length-1),l!==void 0&&(e.preventDefault(),r[l]?.focus())},[]),D=[a.default.group,a.default[d],a.default[f],b].filter(Boolean).join(" "),N={type:t,value:i,onItemToggle:C,variant:d,size:f,disabled:I};return G.jsx(j.Provider,{value:N,children:G.jsx("div",{ref:e=>{k.current=e,typeof s=="function"?s(e):s&&(s.current=e)},role:"group",className:D,onKeyDown:v,...h,children:x})})});R.displayName="ToggleGroup";const P=Object.assign(R,{Item:A});exports.ToggleGroup=P;
|