@slipstream-ui/core 0.6.1 → 0.8.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/dist/index.d.mts +470 -30
- package/dist/index.d.ts +470 -30
- package/dist/index.js +1455 -750
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1442 -744
- package/dist/index.mjs.map +1 -1
- package/dist/manifests/accordion.manifest.json +7 -1
- package/dist/manifests/alert.manifest.json +1 -1
- package/dist/manifests/announcement-bar.manifest.json +1 -1
- package/dist/manifests/app-shell.manifest.json +1 -1
- package/dist/manifests/applied-filters.manifest.json +1 -1
- package/dist/manifests/article-card.manifest.json +1 -1
- package/dist/manifests/auth-layout.manifest.json +19 -1
- package/dist/manifests/autocomplete.manifest.json +1 -1
- package/dist/manifests/avatar.manifest.json +1 -1
- package/dist/manifests/badge.manifest.json +13 -1
- package/dist/manifests/block.manifest.json +1 -1
- package/dist/manifests/bottom-nav.manifest.json +130 -0
- package/dist/manifests/breadcrumb.manifest.json +1 -1
- package/dist/manifests/button-group.manifest.json +1 -1
- package/dist/manifests/button.manifest.json +1 -1
- package/dist/manifests/card.manifest.json +1 -1
- package/dist/manifests/checkbox.manifest.json +1 -1
- package/dist/manifests/comparison-table.manifest.json +1 -1
- package/dist/manifests/confirm-dialog.manifest.json +1 -1
- package/dist/manifests/contact-strip.manifest.json +1 -1
- package/dist/manifests/container.manifest.json +1 -1
- package/dist/manifests/cta-section.manifest.json +1 -1
- package/dist/manifests/data-table.manifest.json +1 -1
- package/dist/manifests/date-picker.manifest.json +1 -1
- package/dist/manifests/date-range-picker.manifest.json +1 -1
- package/dist/manifests/deal-card.manifest.json +158 -0
- package/dist/manifests/dialog.manifest.json +1 -1
- package/dist/manifests/document-card.manifest.json +108 -0
- package/dist/manifests/drawer.manifest.json +48 -2
- package/dist/manifests/empty-state.manifest.json +1 -1
- package/dist/manifests/entity-card.manifest.json +114 -0
- package/dist/manifests/feature-grid.manifest.json +1 -1
- package/dist/manifests/feature-row.manifest.json +1 -1
- package/dist/manifests/fieldset.manifest.json +1 -1
- package/dist/manifests/file-upload.manifest.json +1 -1
- package/dist/manifests/filter-bar.manifest.json +1 -1
- package/dist/manifests/filter-chips.manifest.json +1 -1
- package/dist/manifests/filter-panel.manifest.json +1 -1
- package/dist/manifests/flex.manifest.json +1 -1
- package/dist/manifests/form-field.manifest.json +1 -1
- package/dist/manifests/form-layout.manifest.json +1 -1
- package/dist/manifests/form.manifest.json +1 -1
- package/dist/manifests/grid.manifest.json +1 -1
- package/dist/manifests/heading.manifest.json +1 -1
- package/dist/manifests/hero.manifest.json +40 -8
- package/dist/manifests/input-group.manifest.json +1 -1
- package/dist/manifests/input.manifest.json +1 -1
- package/dist/manifests/label.manifest.json +1 -1
- package/dist/manifests/link-tabs.manifest.json +1 -1
- package/dist/manifests/link.manifest.json +1 -1
- package/dist/manifests/list.manifest.json +1 -1
- package/dist/manifests/load-more.manifest.json +88 -0
- package/dist/manifests/logo-cloud.manifest.json +1 -1
- package/dist/manifests/menu.manifest.json +1 -1
- package/dist/manifests/metric-card.manifest.json +36 -4
- package/dist/manifests/multi-select.manifest.json +1 -1
- package/dist/manifests/newsletter.manifest.json +1 -1
- package/dist/manifests/page-header.manifest.json +7 -1
- package/dist/manifests/pagination.manifest.json +1 -1
- package/dist/manifests/password-input.manifest.json +1 -1
- package/dist/manifests/popover.manifest.json +1 -1
- package/dist/manifests/process-steps.manifest.json +1 -1
- package/dist/manifests/progress.manifest.json +1 -1
- package/dist/manifests/prose.manifest.json +1 -1
- package/dist/manifests/radio.manifest.json +1 -1
- package/dist/manifests/range-slider.manifest.json +1 -1
- package/dist/manifests/search.manifest.json +1 -1
- package/dist/manifests/section-heading.manifest.json +1 -1
- package/dist/manifests/section.manifest.json +1 -1
- package/dist/manifests/segmented-control.manifest.json +1 -1
- package/dist/manifests/select-menu.manifest.json +2 -2
- package/dist/manifests/select.manifest.json +1 -1
- package/dist/manifests/separator.manifest.json +1 -1
- package/dist/manifests/site-footer.manifest.json +1 -1
- package/dist/manifests/site-header.manifest.json +1 -1
- package/dist/manifests/skeleton.manifest.json +1 -1
- package/dist/manifests/spinner.manifest.json +1 -1
- package/dist/manifests/stat-band.manifest.json +1 -1
- package/dist/manifests/stepper.manifest.json +69 -5
- package/dist/manifests/switch.manifest.json +1 -1
- package/dist/manifests/table-card.manifest.json +1 -1
- package/dist/manifests/table-of-contents.manifest.json +26 -5
- package/dist/manifests/table.manifest.json +1 -1
- package/dist/manifests/tabs.manifest.json +1 -1
- package/dist/manifests/testimonial.manifest.json +1 -1
- package/dist/manifests/text.manifest.json +1 -1
- package/dist/manifests/textarea.manifest.json +1 -1
- package/dist/manifests/theme-toggle.manifest.json +1 -1
- package/dist/manifests/time-picker.manifest.json +1 -1
- package/dist/manifests/timeline.manifest.json +1 -1
- package/dist/manifests/toast.manifest.json +1 -1
- package/dist/manifests/tombstone-card.manifest.json +97 -0
- package/dist/manifests/tooltip.manifest.json +1 -1
- package/dist/src/components/accordion/Accordion.d.ts +17 -1
- package/dist/src/components/accordion/Accordion.js +5 -1
- package/dist/src/components/accordion/Accordion.js.map +1 -1
- package/dist/src/components/accordion/Accordion.mjs +5 -1
- package/dist/src/components/accordion/Accordion.mjs.map +1 -1
- package/dist/src/components/auth-layout/AuthLayout.d.ts +14 -2
- package/dist/src/components/auth-layout/AuthLayout.js +10 -2
- package/dist/src/components/auth-layout/AuthLayout.js.map +1 -1
- package/dist/src/components/auth-layout/AuthLayout.mjs +10 -2
- package/dist/src/components/auth-layout/AuthLayout.mjs.map +1 -1
- package/dist/src/components/badge/Badge.d.ts +2 -0
- package/dist/src/components/badge/Badge.js +9 -3
- package/dist/src/components/badge/Badge.js.map +1 -1
- package/dist/src/components/badge/Badge.mjs +9 -3
- package/dist/src/components/badge/Badge.mjs.map +1 -1
- package/dist/src/components/bottom-nav/BottomNav.d.ts +36 -0
- package/dist/src/components/bottom-nav/BottomNav.js +90 -0
- package/dist/src/components/bottom-nav/BottomNav.js.map +1 -0
- package/dist/src/components/bottom-nav/BottomNav.mjs +66 -0
- package/dist/src/components/bottom-nav/BottomNav.mjs.map +1 -0
- package/dist/src/components/bottom-nav/index.d.ts +1 -0
- package/dist/src/components/bottom-nav/index.js +23 -0
- package/dist/src/components/bottom-nav/index.js.map +1 -0
- package/dist/src/components/bottom-nav/index.mjs +2 -0
- package/dist/src/components/bottom-nav/index.mjs.map +1 -0
- package/dist/src/components/date-picker/DatePicker.js +1 -1
- package/dist/src/components/date-picker/DatePicker.js.map +1 -1
- package/dist/src/components/date-picker/DatePicker.mjs +1 -1
- package/dist/src/components/date-picker/DatePicker.mjs.map +1 -1
- package/dist/src/components/deal-card/DealCard.d.ts +72 -0
- package/dist/src/components/deal-card/DealCard.js +108 -0
- package/dist/src/components/deal-card/DealCard.js.map +1 -0
- package/dist/src/components/deal-card/DealCard.mjs +74 -0
- package/dist/src/components/deal-card/DealCard.mjs.map +1 -0
- package/dist/src/components/deal-card/index.d.ts +2 -0
- package/dist/src/components/deal-card/index.js +29 -0
- package/dist/src/components/deal-card/index.js.map +1 -0
- package/dist/src/components/deal-card/index.mjs +5 -0
- package/dist/src/components/deal-card/index.mjs.map +1 -0
- package/dist/src/components/document-card/DocumentCard.d.ts +42 -0
- package/dist/src/components/document-card/DocumentCard.js +84 -0
- package/dist/src/components/document-card/DocumentCard.js.map +1 -0
- package/dist/src/components/document-card/DocumentCard.mjs +50 -0
- package/dist/src/components/document-card/DocumentCard.mjs.map +1 -0
- package/dist/src/components/document-card/index.d.ts +2 -0
- package/dist/src/components/document-card/index.js +29 -0
- package/dist/src/components/document-card/index.js.map +1 -0
- package/dist/src/components/document-card/index.mjs +5 -0
- package/dist/src/components/document-card/index.mjs.map +1 -0
- package/dist/src/components/drawer/Drawer.d.ts +25 -2
- package/dist/src/components/drawer/Drawer.js +97 -6
- package/dist/src/components/drawer/Drawer.js.map +1 -1
- package/dist/src/components/drawer/Drawer.mjs +97 -6
- package/dist/src/components/drawer/Drawer.mjs.map +1 -1
- package/dist/src/components/empty-state/EmptyState.d.ts +13 -4
- package/dist/src/components/empty-state/EmptyState.js +13 -1
- package/dist/src/components/empty-state/EmptyState.js.map +1 -1
- package/dist/src/components/empty-state/EmptyState.mjs +13 -1
- package/dist/src/components/empty-state/EmptyState.mjs.map +1 -1
- package/dist/src/components/entity-card/EntityCard.d.ts +78 -0
- package/dist/src/components/entity-card/EntityCard.js +95 -0
- package/dist/src/components/entity-card/EntityCard.js.map +1 -0
- package/dist/src/components/entity-card/EntityCard.mjs +60 -0
- package/dist/src/components/entity-card/EntityCard.mjs.map +1 -0
- package/dist/src/components/entity-card/index.d.ts +2 -0
- package/dist/src/components/entity-card/index.js +31 -0
- package/dist/src/components/entity-card/index.js.map +1 -0
- package/dist/src/components/entity-card/index.mjs +6 -0
- package/dist/src/components/entity-card/index.mjs.map +1 -0
- package/dist/src/components/hero/Hero.d.ts +25 -13
- package/dist/src/components/hero/Hero.js +116 -12
- package/dist/src/components/hero/Hero.js.map +1 -1
- package/dist/src/components/hero/Hero.mjs +116 -12
- package/dist/src/components/hero/Hero.mjs.map +1 -1
- package/dist/src/components/load-more/LoadMore.d.ts +34 -0
- package/dist/src/components/load-more/LoadMore.js +55 -0
- package/dist/src/components/load-more/LoadMore.js.map +1 -0
- package/dist/src/components/load-more/LoadMore.mjs +21 -0
- package/dist/src/components/load-more/LoadMore.mjs.map +1 -0
- package/dist/src/components/load-more/index.d.ts +2 -0
- package/dist/src/components/load-more/index.js +29 -0
- package/dist/src/components/load-more/index.js.map +1 -0
- package/dist/src/components/load-more/index.mjs +5 -0
- package/dist/src/components/load-more/index.mjs.map +1 -0
- package/dist/src/components/metric-card/MetricCard.d.ts +23 -4
- package/dist/src/components/metric-card/MetricCard.js +32 -5
- package/dist/src/components/metric-card/MetricCard.js.map +1 -1
- package/dist/src/components/metric-card/MetricCard.mjs +32 -5
- package/dist/src/components/metric-card/MetricCard.mjs.map +1 -1
- package/dist/src/components/page-header/PageHeader.d.ts +4 -0
- package/dist/src/components/page-header/PageHeader.js +3 -2
- package/dist/src/components/page-header/PageHeader.js.map +1 -1
- package/dist/src/components/page-header/PageHeader.mjs +3 -2
- package/dist/src/components/page-header/PageHeader.mjs.map +1 -1
- package/dist/src/components/range-slider/RangeSlider.js +6 -6
- package/dist/src/components/range-slider/RangeSlider.js.map +1 -1
- package/dist/src/components/range-slider/RangeSlider.mjs +6 -6
- package/dist/src/components/range-slider/RangeSlider.mjs.map +1 -1
- package/dist/src/components/select-menu/SelectMenu.js +2 -0
- package/dist/src/components/select-menu/SelectMenu.js.map +1 -1
- package/dist/src/components/select-menu/SelectMenu.mjs +2 -0
- package/dist/src/components/select-menu/SelectMenu.mjs.map +1 -1
- package/dist/src/components/separator/Separator.d.ts +3 -3
- package/dist/src/components/separator/Separator.js +1 -1
- package/dist/src/components/separator/Separator.js.map +1 -1
- package/dist/src/components/separator/Separator.mjs +1 -1
- package/dist/src/components/separator/Separator.mjs.map +1 -1
- package/dist/src/components/stepper/Stepper.d.ts +35 -0
- package/dist/src/components/stepper/Stepper.js +118 -25
- package/dist/src/components/stepper/Stepper.js.map +1 -1
- package/dist/src/components/stepper/Stepper.mjs +118 -25
- package/dist/src/components/stepper/Stepper.mjs.map +1 -1
- package/dist/src/components/table-of-contents/TableOfContents.d.ts +10 -2
- package/dist/src/components/table-of-contents/TableOfContents.js +13 -0
- package/dist/src/components/table-of-contents/TableOfContents.js.map +1 -1
- package/dist/src/components/table-of-contents/TableOfContents.mjs +13 -0
- package/dist/src/components/table-of-contents/TableOfContents.mjs.map +1 -1
- package/dist/src/components/tabs/Tabs.js +43 -3
- package/dist/src/components/tabs/Tabs.js.map +1 -1
- package/dist/src/components/tabs/Tabs.mjs +43 -3
- package/dist/src/components/tabs/Tabs.mjs.map +1 -1
- package/dist/src/components/time-picker/TimePicker.js +1 -1
- package/dist/src/components/time-picker/TimePicker.js.map +1 -1
- package/dist/src/components/time-picker/TimePicker.mjs +1 -1
- package/dist/src/components/time-picker/TimePicker.mjs.map +1 -1
- package/dist/src/components/timeline/Timeline.js +2 -2
- package/dist/src/components/timeline/Timeline.js.map +1 -1
- package/dist/src/components/timeline/Timeline.mjs +2 -2
- package/dist/src/components/timeline/Timeline.mjs.map +1 -1
- package/dist/src/components/tombstone-card/TombstoneCard.d.ts +39 -0
- package/dist/src/components/tombstone-card/TombstoneCard.js +86 -0
- package/dist/src/components/tombstone-card/TombstoneCard.js.map +1 -0
- package/dist/src/components/tombstone-card/TombstoneCard.mjs +52 -0
- package/dist/src/components/tombstone-card/TombstoneCard.mjs.map +1 -0
- package/dist/src/components/tombstone-card/index.d.ts +2 -0
- package/dist/src/components/tombstone-card/index.js +29 -0
- package/dist/src/components/tombstone-card/index.js.map +1 -0
- package/dist/src/components/tombstone-card/index.mjs +5 -0
- package/dist/src/components/tombstone-card/index.mjs.map +1 -0
- package/dist/src/index.d.ts +6 -0
- package/dist/styles-full.css +1 -1
- package/dist/styles.css +1 -1
- package/package.json +3 -3
- package/src/components/accordion/Accordion.test.tsx +31 -0
- package/src/components/accordion/Accordion.tsx +27 -2
- package/src/components/auth-layout/AuthLayout.test.tsx +36 -0
- package/src/components/auth-layout/AuthLayout.tsx +20 -3
- package/src/components/badge/Badge.test.tsx +7 -0
- package/src/components/badge/Badge.tsx +8 -2
- package/src/components/bottom-nav/BottomNav.test.tsx +48 -0
- package/src/components/bottom-nav/BottomNav.tsx +117 -0
- package/src/components/bottom-nav/index.ts +1 -0
- package/src/components/date-picker/DatePicker.tsx +1 -1
- package/src/components/deal-card/DealCard.test.tsx +54 -0
- package/src/components/deal-card/DealCard.tsx +138 -0
- package/src/components/deal-card/index.ts +2 -0
- package/src/components/document-card/DocumentCard.test.tsx +41 -0
- package/src/components/document-card/DocumentCard.tsx +82 -0
- package/src/components/document-card/index.ts +2 -0
- package/src/components/drawer/Drawer.test.tsx +86 -1
- package/src/components/drawer/Drawer.tsx +135 -7
- package/src/components/empty-state/EmptyState.test.tsx +26 -1
- package/src/components/empty-state/EmptyState.tsx +40 -3
- package/src/components/entity-card/EntityCard.test.tsx +38 -0
- package/src/components/entity-card/EntityCard.tsx +133 -0
- package/src/components/entity-card/index.ts +2 -0
- package/src/components/hero/Hero.test.tsx +14 -0
- package/src/components/hero/Hero.tsx +111 -19
- package/src/components/load-more/LoadMore.test.tsx +28 -0
- package/src/components/load-more/LoadMore.tsx +53 -0
- package/src/components/load-more/index.ts +2 -0
- package/src/components/metric-card/MetricCard.test.tsx +32 -0
- package/src/components/metric-card/MetricCard.tsx +45 -7
- package/src/components/page-header/PageHeader.test.tsx +13 -0
- package/src/components/page-header/PageHeader.tsx +5 -2
- package/src/components/range-slider/RangeSlider.test.tsx +8 -0
- package/src/components/range-slider/RangeSlider.tsx +10 -6
- package/src/components/select-menu/SelectMenu.test.tsx +20 -10
- package/src/components/select-menu/SelectMenu.tsx +2 -0
- package/src/components/separator/Separator.test.tsx +9 -1
- package/src/components/separator/Separator.tsx +1 -1
- package/src/components/stepper/Stepper.test.tsx +19 -0
- package/src/components/stepper/Stepper.tsx +169 -37
- package/src/components/table-of-contents/TableOfContents.test.tsx +12 -1
- package/src/components/table-of-contents/TableOfContents.tsx +25 -1
- package/src/components/tabs/Tabs.test.tsx +12 -0
- package/src/components/tabs/Tabs.tsx +48 -4
- package/src/components/time-picker/TimePicker.tsx +1 -1
- package/src/components/timeline/Timeline.tsx +2 -2
- package/src/components/tombstone-card/TombstoneCard.test.tsx +26 -0
- package/src/components/tombstone-card/TombstoneCard.tsx +77 -0
- package/src/components/tombstone-card/index.ts +2 -0
- package/src/index.ts +6 -0
- package/src/manifests/accordion.manifest.json +7 -1
- package/src/manifests/alert.manifest.json +1 -1
- package/src/manifests/announcement-bar.manifest.json +1 -1
- package/src/manifests/app-shell.manifest.json +1 -1
- package/src/manifests/applied-filters.manifest.json +1 -1
- package/src/manifests/article-card.manifest.json +1 -1
- package/src/manifests/auth-layout.manifest.json +19 -1
- package/src/manifests/autocomplete.manifest.json +1 -1
- package/src/manifests/avatar.manifest.json +1 -1
- package/src/manifests/badge.manifest.json +13 -1
- package/src/manifests/block.manifest.json +1 -1
- package/src/manifests/bottom-nav.manifest.json +130 -0
- package/src/manifests/breadcrumb.manifest.json +1 -1
- package/src/manifests/button-group.manifest.json +1 -1
- package/src/manifests/button.manifest.json +1 -1
- package/src/manifests/card.manifest.json +1 -1
- package/src/manifests/checkbox.manifest.json +1 -1
- package/src/manifests/comparison-table.manifest.json +1 -1
- package/src/manifests/confirm-dialog.manifest.json +1 -1
- package/src/manifests/contact-strip.manifest.json +1 -1
- package/src/manifests/container.manifest.json +1 -1
- package/src/manifests/cta-section.manifest.json +1 -1
- package/src/manifests/data-table.manifest.json +1 -1
- package/src/manifests/date-picker.manifest.json +1 -1
- package/src/manifests/date-range-picker.manifest.json +1 -1
- package/src/manifests/deal-card.manifest.json +158 -0
- package/src/manifests/dialog.manifest.json +1 -1
- package/src/manifests/document-card.manifest.json +108 -0
- package/src/manifests/drawer.manifest.json +48 -2
- package/src/manifests/empty-state.manifest.json +1 -1
- package/src/manifests/entity-card.manifest.json +114 -0
- package/src/manifests/feature-grid.manifest.json +1 -1
- package/src/manifests/feature-row.manifest.json +1 -1
- package/src/manifests/fieldset.manifest.json +1 -1
- package/src/manifests/file-upload.manifest.json +1 -1
- package/src/manifests/filter-bar.manifest.json +1 -1
- package/src/manifests/filter-chips.manifest.json +1 -1
- package/src/manifests/filter-panel.manifest.json +1 -1
- package/src/manifests/flex.manifest.json +1 -1
- package/src/manifests/form-field.manifest.json +1 -1
- package/src/manifests/form-layout.manifest.json +1 -1
- package/src/manifests/form.manifest.json +1 -1
- package/src/manifests/grid.manifest.json +1 -1
- package/src/manifests/heading.manifest.json +1 -1
- package/src/manifests/hero.manifest.json +40 -8
- package/src/manifests/input-group.manifest.json +1 -1
- package/src/manifests/input.manifest.json +1 -1
- package/src/manifests/label.manifest.json +1 -1
- package/src/manifests/link-tabs.manifest.json +1 -1
- package/src/manifests/link.manifest.json +1 -1
- package/src/manifests/list.manifest.json +1 -1
- package/src/manifests/load-more.manifest.json +88 -0
- package/src/manifests/logo-cloud.manifest.json +1 -1
- package/src/manifests/menu.manifest.json +1 -1
- package/src/manifests/metric-card.manifest.json +36 -4
- package/src/manifests/multi-select.manifest.json +1 -1
- package/src/manifests/newsletter.manifest.json +1 -1
- package/src/manifests/page-header.manifest.json +7 -1
- package/src/manifests/pagination.manifest.json +1 -1
- package/src/manifests/password-input.manifest.json +1 -1
- package/src/manifests/popover.manifest.json +1 -1
- package/src/manifests/process-steps.manifest.json +1 -1
- package/src/manifests/progress.manifest.json +1 -1
- package/src/manifests/prose.manifest.json +1 -1
- package/src/manifests/radio.manifest.json +1 -1
- package/src/manifests/range-slider.manifest.json +1 -1
- package/src/manifests/search.manifest.json +1 -1
- package/src/manifests/section-heading.manifest.json +1 -1
- package/src/manifests/section.manifest.json +1 -1
- package/src/manifests/segmented-control.manifest.json +1 -1
- package/src/manifests/select-menu.manifest.json +2 -2
- package/src/manifests/select.manifest.json +1 -1
- package/src/manifests/separator.manifest.json +1 -1
- package/src/manifests/site-footer.manifest.json +1 -1
- package/src/manifests/site-header.manifest.json +1 -1
- package/src/manifests/skeleton.manifest.json +1 -1
- package/src/manifests/spinner.manifest.json +1 -1
- package/src/manifests/stat-band.manifest.json +1 -1
- package/src/manifests/stepper.manifest.json +69 -5
- package/src/manifests/switch.manifest.json +1 -1
- package/src/manifests/table-card.manifest.json +1 -1
- package/src/manifests/table-of-contents.manifest.json +26 -5
- package/src/manifests/table.manifest.json +1 -1
- package/src/manifests/tabs.manifest.json +1 -1
- package/src/manifests/testimonial.manifest.json +1 -1
- package/src/manifests/text.manifest.json +1 -1
- package/src/manifests/textarea.manifest.json +1 -1
- package/src/manifests/theme-toggle.manifest.json +1 -1
- package/src/manifests/time-picker.manifest.json +1 -1
- package/src/manifests/timeline.manifest.json +1 -1
- package/src/manifests/toast.manifest.json +1 -1
- package/src/manifests/tombstone-card.manifest.json +97 -0
- package/src/manifests/tooltip.manifest.json +1 -1
- package/src/test/jest-axe.d.ts +6 -1
package/dist/index.mjs
CHANGED
|
@@ -113,6 +113,13 @@ var sizeClasses = {
|
|
|
113
113
|
top: sideHeights,
|
|
114
114
|
bottom: sideHeights
|
|
115
115
|
};
|
|
116
|
+
var sizePx = {
|
|
117
|
+
sm: 288,
|
|
118
|
+
md: 384,
|
|
119
|
+
lg: 512,
|
|
120
|
+
xl: 640,
|
|
121
|
+
"2xl": 768
|
|
122
|
+
};
|
|
116
123
|
function extentStyle(value) {
|
|
117
124
|
if (value === void 0) return void 0;
|
|
118
125
|
return typeof value === "number" ? `${value}px` : value;
|
|
@@ -132,6 +139,7 @@ var slideOut = {
|
|
|
132
139
|
function Drawer({
|
|
133
140
|
open,
|
|
134
141
|
onOpenChange,
|
|
142
|
+
onClose,
|
|
135
143
|
title,
|
|
136
144
|
description,
|
|
137
145
|
children,
|
|
@@ -139,6 +147,12 @@ function Drawer({
|
|
|
139
147
|
size = "md",
|
|
140
148
|
width,
|
|
141
149
|
height,
|
|
150
|
+
resizable = false,
|
|
151
|
+
minWidth = 240,
|
|
152
|
+
maxWidth = 960,
|
|
153
|
+
defaultWidth,
|
|
154
|
+
onWidthChange,
|
|
155
|
+
resizeLabel = "Resize drawer",
|
|
142
156
|
closeOnBackdrop = true,
|
|
143
157
|
showClose = true,
|
|
144
158
|
closeLabel = "Close drawer",
|
|
@@ -152,6 +166,65 @@ function Drawer({
|
|
|
152
166
|
const descriptionId = React3.useId();
|
|
153
167
|
const { present, exiting } = usePresence(open, animate);
|
|
154
168
|
const isTopLayer = useModalLayer(open);
|
|
169
|
+
const requestClose = React3.useCallback(() => {
|
|
170
|
+
if (onOpenChange) onOpenChange(false);
|
|
171
|
+
else onClose?.();
|
|
172
|
+
}, [onOpenChange, onClose]);
|
|
173
|
+
const isVerticalSide = side === "top" || side === "bottom";
|
|
174
|
+
const canResize = resizable && !isVerticalSide;
|
|
175
|
+
const clampWidth = React3.useCallback(
|
|
176
|
+
(next) => Math.min(maxWidth, Math.max(minWidth, Math.round(next))),
|
|
177
|
+
[minWidth, maxWidth]
|
|
178
|
+
);
|
|
179
|
+
const [resizedWidth, setResizedWidth] = React3.useState(null);
|
|
180
|
+
const initialWidth = clampWidth(
|
|
181
|
+
defaultWidth ?? (typeof width === "number" ? width : sizePx[size])
|
|
182
|
+
);
|
|
183
|
+
const resizeWidth = resizedWidth ?? initialWidth;
|
|
184
|
+
const widthRef = React3.useRef(resizeWidth);
|
|
185
|
+
widthRef.current = resizeWidth;
|
|
186
|
+
const onWidthChangeRef = React3.useRef(onWidthChange);
|
|
187
|
+
onWidthChangeRef.current = onWidthChange;
|
|
188
|
+
const commitWidth = (next) => {
|
|
189
|
+
const clamped = clampWidth(next);
|
|
190
|
+
setResizedWidth(clamped);
|
|
191
|
+
onWidthChangeRef.current?.(clamped);
|
|
192
|
+
};
|
|
193
|
+
const onResizePointerDown = (event) => {
|
|
194
|
+
if (event.button !== 0) return;
|
|
195
|
+
event.preventDefault();
|
|
196
|
+
const startX = event.clientX;
|
|
197
|
+
const startWidth = resizeWidth;
|
|
198
|
+
const onMove = (moveEvent) => {
|
|
199
|
+
const delta = side === "right" ? startX - moveEvent.clientX : moveEvent.clientX - startX;
|
|
200
|
+
setResizedWidth(clampWidth(startWidth + delta));
|
|
201
|
+
};
|
|
202
|
+
const onUp = () => {
|
|
203
|
+
window.removeEventListener("pointermove", onMove);
|
|
204
|
+
window.removeEventListener("pointerup", onUp);
|
|
205
|
+
onWidthChangeRef.current?.(widthRef.current);
|
|
206
|
+
};
|
|
207
|
+
window.addEventListener("pointermove", onMove);
|
|
208
|
+
window.addEventListener("pointerup", onUp);
|
|
209
|
+
};
|
|
210
|
+
const onResizeKeyDown = (event) => {
|
|
211
|
+
const step = event.shiftKey ? 64 : 16;
|
|
212
|
+
const grow = side === "right" ? "ArrowLeft" : "ArrowRight";
|
|
213
|
+
const shrink = side === "right" ? "ArrowRight" : "ArrowLeft";
|
|
214
|
+
if (event.key === grow) {
|
|
215
|
+
event.preventDefault();
|
|
216
|
+
commitWidth(resizeWidth + step);
|
|
217
|
+
} else if (event.key === shrink) {
|
|
218
|
+
event.preventDefault();
|
|
219
|
+
commitWidth(resizeWidth - step);
|
|
220
|
+
} else if (event.key === "Home") {
|
|
221
|
+
event.preventDefault();
|
|
222
|
+
commitWidth(minWidth);
|
|
223
|
+
} else if (event.key === "End") {
|
|
224
|
+
event.preventDefault();
|
|
225
|
+
commitWidth(maxWidth);
|
|
226
|
+
}
|
|
227
|
+
};
|
|
155
228
|
React3.useEffect(() => {
|
|
156
229
|
if (open) {
|
|
157
230
|
previouslyFocused.current = document.activeElement;
|
|
@@ -172,7 +245,7 @@ function Drawer({
|
|
|
172
245
|
if (event.key === "Escape") {
|
|
173
246
|
if (!isTopLayer()) return;
|
|
174
247
|
event.stopPropagation();
|
|
175
|
-
|
|
248
|
+
requestClose();
|
|
176
249
|
return;
|
|
177
250
|
}
|
|
178
251
|
if (event.key !== "Tab") return;
|
|
@@ -196,10 +269,9 @@ function Drawer({
|
|
|
196
269
|
};
|
|
197
270
|
document.addEventListener("keydown", onKeyDown);
|
|
198
271
|
return () => document.removeEventListener("keydown", onKeyDown);
|
|
199
|
-
}, [open,
|
|
272
|
+
}, [open, requestClose, isTopLayer]);
|
|
200
273
|
if (!present || typeof document === "undefined") return null;
|
|
201
|
-
const
|
|
202
|
-
const customExtent = isVerticalSide ? extentStyle(height) : extentStyle(width);
|
|
274
|
+
const customExtent = canResize ? `${resizeWidth}px` : isVerticalSide ? extentStyle(height) : extentStyle(width);
|
|
203
275
|
const motion = animate ? cn(
|
|
204
276
|
"duration-200 motion-reduce:animate-none",
|
|
205
277
|
exiting ? `animate-out ${slideOut[side]}` : `animate-in ${slideIn[side]}`
|
|
@@ -210,7 +282,7 @@ function Drawer({
|
|
|
210
282
|
{
|
|
211
283
|
className: "fixed inset-0 z-50",
|
|
212
284
|
onMouseDown: (event) => {
|
|
213
|
-
if (closeOnBackdrop && event.target === event.currentTarget)
|
|
285
|
+
if (closeOnBackdrop && event.target === event.currentTarget) requestClose();
|
|
214
286
|
},
|
|
215
287
|
children: /* @__PURE__ */ jsxs(
|
|
216
288
|
"div",
|
|
@@ -230,6 +302,25 @@ function Drawer({
|
|
|
230
302
|
),
|
|
231
303
|
style: customExtent ? { [isVerticalSide ? "height" : "width"]: customExtent } : void 0,
|
|
232
304
|
children: [
|
|
305
|
+
canResize && /* @__PURE__ */ jsx(
|
|
306
|
+
"div",
|
|
307
|
+
{
|
|
308
|
+
role: "separator",
|
|
309
|
+
"aria-orientation": "vertical",
|
|
310
|
+
"aria-label": resizeLabel,
|
|
311
|
+
"aria-valuenow": resizeWidth,
|
|
312
|
+
"aria-valuemin": minWidth,
|
|
313
|
+
"aria-valuemax": maxWidth,
|
|
314
|
+
tabIndex: 0,
|
|
315
|
+
onPointerDown: onResizePointerDown,
|
|
316
|
+
onKeyDown: onResizeKeyDown,
|
|
317
|
+
className: cn(
|
|
318
|
+
"absolute inset-y-0 z-10 w-2 cursor-col-resize touch-none rounded-sm bg-transparent",
|
|
319
|
+
"hover:bg-primary/20 focus-visible:bg-primary/30 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
320
|
+
side === "right" ? "-left-1" : "-right-1"
|
|
321
|
+
)
|
|
322
|
+
}
|
|
323
|
+
),
|
|
233
324
|
/* @__PURE__ */ jsxs("div", { className: "flex items-start justify-between gap-4 border-b border-border px-5 py-4", children: [
|
|
234
325
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
235
326
|
/* @__PURE__ */ jsx("h2", { id: titleId, className: "text-base font-semibold leading-tight", children: title }),
|
|
@@ -239,7 +330,7 @@ function Drawer({
|
|
|
239
330
|
"button",
|
|
240
331
|
{
|
|
241
332
|
type: "button",
|
|
242
|
-
onClick:
|
|
333
|
+
onClick: requestClose,
|
|
243
334
|
"aria-label": closeLabel,
|
|
244
335
|
className: "-me-1 rounded p-1 text-muted-foreground hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
245
336
|
children: "\u2715"
|
|
@@ -714,26 +805,95 @@ var badgeVariants = cva2(
|
|
|
714
805
|
secondary: "border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",
|
|
715
806
|
destructive: "border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80",
|
|
716
807
|
outline: "text-foreground"
|
|
808
|
+
},
|
|
809
|
+
size: {
|
|
810
|
+
sm: "px-2 py-0 text-[11px]",
|
|
811
|
+
md: "px-2.5 py-0.5 text-xs",
|
|
812
|
+
lg: "px-3 py-1 text-sm"
|
|
717
813
|
}
|
|
718
814
|
},
|
|
719
815
|
defaultVariants: {
|
|
720
|
-
variant: "default"
|
|
816
|
+
variant: "default",
|
|
817
|
+
size: "md"
|
|
721
818
|
}
|
|
722
819
|
}
|
|
723
820
|
);
|
|
724
821
|
var Badge = React11.forwardRef(
|
|
725
|
-
({ className, variant, asChild = false, ...props }, ref) => {
|
|
822
|
+
({ className, variant, size, asChild = false, ...props }, ref) => {
|
|
726
823
|
const Comp = asChild ? Slot2 : "span";
|
|
727
|
-
return /* @__PURE__ */ jsx9(Comp, { ref, className: cn(badgeVariants({ variant }), className), ...props });
|
|
824
|
+
return /* @__PURE__ */ jsx9(Comp, { ref, className: cn(badgeVariants({ variant, size }), className), ...props });
|
|
728
825
|
}
|
|
729
826
|
);
|
|
730
827
|
Badge.displayName = "Badge";
|
|
731
828
|
|
|
829
|
+
// src/components/bottom-nav/BottomNav.tsx
|
|
830
|
+
import { Fragment, jsx as jsx10, jsxs as jsxs5 } from "react/jsx-runtime";
|
|
831
|
+
var tabClass = "relative flex min-h-14 w-full flex-col items-center justify-center gap-0.5 px-2 py-2 text-[11px] font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-inset";
|
|
832
|
+
function BottomNav({
|
|
833
|
+
items,
|
|
834
|
+
linkComponent,
|
|
835
|
+
linkHrefProp = "href",
|
|
836
|
+
label = "Primary",
|
|
837
|
+
fixed = true,
|
|
838
|
+
mobileOnly = true,
|
|
839
|
+
className,
|
|
840
|
+
...props
|
|
841
|
+
}) {
|
|
842
|
+
const LinkEl = linkComponent ?? "a";
|
|
843
|
+
const destination = (href) => linkHrefProp === "to" ? { to: href } : { href };
|
|
844
|
+
return /* @__PURE__ */ jsx10(
|
|
845
|
+
"nav",
|
|
846
|
+
{
|
|
847
|
+
"aria-label": label,
|
|
848
|
+
className: cn(
|
|
849
|
+
"w-full border-t border-border bg-background pb-[env(safe-area-inset-bottom)]",
|
|
850
|
+
fixed && "fixed inset-x-0 bottom-0 z-40",
|
|
851
|
+
mobileOnly && "md:hidden",
|
|
852
|
+
className
|
|
853
|
+
),
|
|
854
|
+
...props,
|
|
855
|
+
children: /* @__PURE__ */ jsx10(
|
|
856
|
+
"ul",
|
|
857
|
+
{
|
|
858
|
+
className: "mx-auto grid w-full max-w-lg",
|
|
859
|
+
style: { gridTemplateColumns: `repeat(${Math.max(items.length, 1)}, minmax(0, 1fr))` },
|
|
860
|
+
children: items.map((item) => {
|
|
861
|
+
const content = /* @__PURE__ */ jsxs5(Fragment, { children: [
|
|
862
|
+
item.icon && /* @__PURE__ */ jsx10("span", { "aria-hidden": "true", className: "[&_svg]:size-5", children: item.icon }),
|
|
863
|
+
/* @__PURE__ */ jsx10("span", { children: item.label }),
|
|
864
|
+
item.badge != null && /* @__PURE__ */ jsx10("span", { className: "absolute right-1/4 top-1 rounded-full bg-primary px-1.5 text-[10px] font-semibold leading-4 text-primary-foreground", children: item.badge })
|
|
865
|
+
] });
|
|
866
|
+
return /* @__PURE__ */ jsx10("li", { children: item.disabled ? /* @__PURE__ */ jsx10(
|
|
867
|
+
"span",
|
|
868
|
+
{
|
|
869
|
+
"aria-disabled": "true",
|
|
870
|
+
className: cn(tabClass, "text-muted-foreground opacity-50"),
|
|
871
|
+
children: content
|
|
872
|
+
}
|
|
873
|
+
) : /* @__PURE__ */ jsx10(
|
|
874
|
+
LinkEl,
|
|
875
|
+
{
|
|
876
|
+
...destination(item.href),
|
|
877
|
+
"aria-current": item.active ? "page" : void 0,
|
|
878
|
+
className: cn(
|
|
879
|
+
tabClass,
|
|
880
|
+
item.active ? "text-primary" : "text-muted-foreground hover:text-foreground"
|
|
881
|
+
),
|
|
882
|
+
children: content
|
|
883
|
+
}
|
|
884
|
+
) }, item.href);
|
|
885
|
+
})
|
|
886
|
+
}
|
|
887
|
+
)
|
|
888
|
+
}
|
|
889
|
+
);
|
|
890
|
+
}
|
|
891
|
+
|
|
732
892
|
// src/components/avatar/Avatar.tsx
|
|
733
893
|
import * as React12 from "react";
|
|
734
894
|
import * as AvatarPrimitive from "@radix-ui/react-avatar";
|
|
735
|
-
import { jsx as
|
|
736
|
-
var Avatar = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
895
|
+
import { jsx as jsx11 } from "react/jsx-runtime";
|
|
896
|
+
var Avatar = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx11(
|
|
737
897
|
AvatarPrimitive.Root,
|
|
738
898
|
{
|
|
739
899
|
ref,
|
|
@@ -745,7 +905,7 @@ var Avatar = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ *
|
|
|
745
905
|
}
|
|
746
906
|
));
|
|
747
907
|
Avatar.displayName = AvatarPrimitive.Root.displayName;
|
|
748
|
-
var AvatarImage = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
908
|
+
var AvatarImage = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx11(
|
|
749
909
|
AvatarPrimitive.Image,
|
|
750
910
|
{
|
|
751
911
|
ref,
|
|
@@ -754,7 +914,7 @@ var AvatarImage = React12.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
754
914
|
}
|
|
755
915
|
));
|
|
756
916
|
AvatarImage.displayName = AvatarPrimitive.Image.displayName;
|
|
757
|
-
var AvatarFallback = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
917
|
+
var AvatarFallback = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx11(
|
|
758
918
|
AvatarPrimitive.Fallback,
|
|
759
919
|
{
|
|
760
920
|
ref,
|
|
@@ -769,7 +929,7 @@ AvatarFallback.displayName = AvatarPrimitive.Fallback.displayName;
|
|
|
769
929
|
|
|
770
930
|
// src/components/spinner/Spinner.tsx
|
|
771
931
|
import { cva as cva3 } from "class-variance-authority";
|
|
772
|
-
import { jsx as
|
|
932
|
+
import { jsx as jsx12 } from "react/jsx-runtime";
|
|
773
933
|
var spinnerVariants = cva3(
|
|
774
934
|
"inline-block animate-spin rounded-full border-2 border-current border-t-transparent text-muted-foreground motion-reduce:animate-none",
|
|
775
935
|
{
|
|
@@ -786,20 +946,20 @@ var spinnerVariants = cva3(
|
|
|
786
946
|
}
|
|
787
947
|
);
|
|
788
948
|
function Spinner({ className, size, label = "Loading...", ...props }) {
|
|
789
|
-
return /* @__PURE__ */
|
|
949
|
+
return /* @__PURE__ */ jsx12(
|
|
790
950
|
"span",
|
|
791
951
|
{
|
|
792
952
|
role: "status",
|
|
793
953
|
className: cn(spinnerVariants({ size }), className),
|
|
794
954
|
...props,
|
|
795
|
-
children: /* @__PURE__ */
|
|
955
|
+
children: /* @__PURE__ */ jsx12("span", { className: "sr-only", children: label })
|
|
796
956
|
}
|
|
797
957
|
);
|
|
798
958
|
}
|
|
799
959
|
|
|
800
960
|
// src/components/toast/Toast.tsx
|
|
801
961
|
import * as React13 from "react";
|
|
802
|
-
import { jsx as
|
|
962
|
+
import { jsx as jsx13, jsxs as jsxs6 } from "react/jsx-runtime";
|
|
803
963
|
var ToastContext = React13.createContext(null);
|
|
804
964
|
var DEFAULT_DURATION = 5e3;
|
|
805
965
|
function ToastProvider({ children, label = "Notifications" }) {
|
|
@@ -836,9 +996,9 @@ function ToastProvider({ children, label = "Notifications" }) {
|
|
|
836
996
|
};
|
|
837
997
|
}, []);
|
|
838
998
|
const value = React13.useMemo(() => ({ toasts: toasts2, toast: toast2, dismiss: dismiss2 }), [toasts2, toast2, dismiss2]);
|
|
839
|
-
return /* @__PURE__ */
|
|
999
|
+
return /* @__PURE__ */ jsxs6(ToastContext.Provider, { value, children: [
|
|
840
1000
|
children,
|
|
841
|
-
/* @__PURE__ */
|
|
1001
|
+
/* @__PURE__ */ jsx13(ToastRegion, { toasts: toasts2, onDismiss: dismiss2, label })
|
|
842
1002
|
] });
|
|
843
1003
|
}
|
|
844
1004
|
function useToast() {
|
|
@@ -851,18 +1011,18 @@ function ToastRegion({
|
|
|
851
1011
|
onDismiss,
|
|
852
1012
|
label
|
|
853
1013
|
}) {
|
|
854
|
-
return /* @__PURE__ */
|
|
1014
|
+
return /* @__PURE__ */ jsx13(
|
|
855
1015
|
"ol",
|
|
856
1016
|
{
|
|
857
1017
|
"aria-label": label,
|
|
858
1018
|
className: "fixed bottom-4 right-4 z-50 flex w-full max-w-sm flex-col gap-2",
|
|
859
|
-
children: toasts2.map((entry) => /* @__PURE__ */
|
|
860
|
-
/* @__PURE__ */
|
|
861
|
-
/* @__PURE__ */
|
|
862
|
-
/* @__PURE__ */
|
|
863
|
-
entry.description && /* @__PURE__ */
|
|
1019
|
+
children: toasts2.map((entry) => /* @__PURE__ */ jsxs6("li", { className: "rounded-lg border border-border bg-card p-4 shadow-lg", children: [
|
|
1020
|
+
/* @__PURE__ */ jsxs6("div", { role: "status", className: "flex items-start justify-between gap-3", children: [
|
|
1021
|
+
/* @__PURE__ */ jsxs6("div", { children: [
|
|
1022
|
+
/* @__PURE__ */ jsx13("p", { className: "text-sm font-semibold", children: entry.title }),
|
|
1023
|
+
entry.description && /* @__PURE__ */ jsx13("p", { className: "mt-1 text-sm text-muted-foreground", children: entry.description })
|
|
864
1024
|
] }),
|
|
865
|
-
/* @__PURE__ */
|
|
1025
|
+
/* @__PURE__ */ jsx13(
|
|
866
1026
|
"button",
|
|
867
1027
|
{
|
|
868
1028
|
type: "button",
|
|
@@ -873,7 +1033,7 @@ function ToastRegion({
|
|
|
873
1033
|
}
|
|
874
1034
|
)
|
|
875
1035
|
] }),
|
|
876
|
-
entry.action && /* @__PURE__ */
|
|
1036
|
+
entry.action && /* @__PURE__ */ jsx13(
|
|
877
1037
|
"button",
|
|
878
1038
|
{
|
|
879
1039
|
type: "button",
|
|
@@ -955,7 +1115,7 @@ function getToastServerSnapshot() {
|
|
|
955
1115
|
}
|
|
956
1116
|
|
|
957
1117
|
// src/components/toast/Toaster.tsx
|
|
958
|
-
import { jsx as
|
|
1118
|
+
import { jsx as jsx14, jsxs as jsxs7 } from "react/jsx-runtime";
|
|
959
1119
|
var positionClasses = {
|
|
960
1120
|
"top-left": "left-4 top-4 items-start",
|
|
961
1121
|
"top-center": "left-1/2 top-4 -translate-x-1/2 items-center",
|
|
@@ -980,26 +1140,26 @@ var dotClasses = {
|
|
|
980
1140
|
};
|
|
981
1141
|
function Toaster({ position = "bottom-right", label = "Notifications", dismissLabel = "Dismiss notification", richColors = false }) {
|
|
982
1142
|
const entries = React14.useSyncExternalStore(subscribeToToasts, getToastSnapshot, getToastServerSnapshot);
|
|
983
|
-
return /* @__PURE__ */
|
|
1143
|
+
return /* @__PURE__ */ jsx14(
|
|
984
1144
|
"ol",
|
|
985
1145
|
{
|
|
986
1146
|
"aria-label": label,
|
|
987
1147
|
className: cn("fixed z-[60] flex w-full max-w-sm flex-col gap-2", positionClasses[position]),
|
|
988
1148
|
children: entries.map((entry) => {
|
|
989
1149
|
const variant = entry.variant ?? "default";
|
|
990
|
-
return /* @__PURE__ */
|
|
1150
|
+
return /* @__PURE__ */ jsx14(
|
|
991
1151
|
"li",
|
|
992
1152
|
{
|
|
993
1153
|
className: cn(
|
|
994
1154
|
"rounded-lg border p-4 shadow-lg",
|
|
995
1155
|
richColors ? richClasses[variant] : "border-border bg-card"
|
|
996
1156
|
),
|
|
997
|
-
children: /* @__PURE__ */
|
|
998
|
-
/* @__PURE__ */
|
|
999
|
-
/* @__PURE__ */
|
|
1000
|
-
/* @__PURE__ */
|
|
1001
|
-
entry.description && /* @__PURE__ */
|
|
1002
|
-
entry.action && /* @__PURE__ */
|
|
1157
|
+
children: /* @__PURE__ */ jsxs7("div", { role: "status", className: "flex items-start gap-3", children: [
|
|
1158
|
+
/* @__PURE__ */ jsx14("span", { "aria-hidden": "true", className: cn("mt-1 h-2 w-2 shrink-0 rounded-full", dotClasses[variant]) }),
|
|
1159
|
+
/* @__PURE__ */ jsxs7("div", { className: "min-w-0 flex-1", children: [
|
|
1160
|
+
/* @__PURE__ */ jsx14("p", { className: "text-sm font-semibold", children: entry.title }),
|
|
1161
|
+
entry.description && /* @__PURE__ */ jsx14("p", { className: "mt-1 text-sm text-muted-foreground", children: entry.description }),
|
|
1162
|
+
entry.action && /* @__PURE__ */ jsx14(
|
|
1003
1163
|
"button",
|
|
1004
1164
|
{
|
|
1005
1165
|
type: "button",
|
|
@@ -1012,7 +1172,7 @@ function Toaster({ position = "bottom-right", label = "Notifications", dismissLa
|
|
|
1012
1172
|
}
|
|
1013
1173
|
)
|
|
1014
1174
|
] }),
|
|
1015
|
-
/* @__PURE__ */
|
|
1175
|
+
/* @__PURE__ */ jsx14(
|
|
1016
1176
|
"button",
|
|
1017
1177
|
{
|
|
1018
1178
|
type: "button",
|
|
@@ -1035,7 +1195,7 @@ function Toaster({ position = "bottom-right", label = "Notifications", dismissLa
|
|
|
1035
1195
|
// src/components/dialog/Dialog.tsx
|
|
1036
1196
|
import * as React15 from "react";
|
|
1037
1197
|
import { createPortal as createPortal2 } from "react-dom";
|
|
1038
|
-
import { jsx as
|
|
1198
|
+
import { jsx as jsx15, jsxs as jsxs8 } from "react/jsx-runtime";
|
|
1039
1199
|
var FOCUSABLE2 = 'a[href], button:not([disabled]), textarea:not([disabled]), input:not([disabled]), select:not([disabled]), [tabindex]:not([tabindex="-1"])';
|
|
1040
1200
|
var sizeClasses2 = {
|
|
1041
1201
|
sm: "max-w-sm",
|
|
@@ -1046,21 +1206,21 @@ var sizeClasses2 = {
|
|
|
1046
1206
|
};
|
|
1047
1207
|
var DialogIdsContext = React15.createContext(null);
|
|
1048
1208
|
function DialogHeader({ className, ...props }) {
|
|
1049
|
-
return /* @__PURE__ */
|
|
1209
|
+
return /* @__PURE__ */ jsx15("div", { className: cn("flex items-start justify-between gap-4", className), ...props });
|
|
1050
1210
|
}
|
|
1051
1211
|
function DialogTitle({ className, ...props }) {
|
|
1052
1212
|
const ids = React15.useContext(DialogIdsContext);
|
|
1053
|
-
return /* @__PURE__ */
|
|
1213
|
+
return /* @__PURE__ */ jsx15("h2", { id: ids?.titleId, className: cn("text-lg font-semibold", className), ...props });
|
|
1054
1214
|
}
|
|
1055
1215
|
function DialogDescription({ className, ...props }) {
|
|
1056
1216
|
const ids = React15.useContext(DialogIdsContext);
|
|
1057
|
-
return /* @__PURE__ */
|
|
1217
|
+
return /* @__PURE__ */ jsx15("p", { id: ids?.descriptionId, className: cn("mt-2 text-sm text-muted-foreground", className), ...props });
|
|
1058
1218
|
}
|
|
1059
1219
|
function DialogBody({ className, ...props }) {
|
|
1060
|
-
return /* @__PURE__ */
|
|
1220
|
+
return /* @__PURE__ */ jsx15("div", { className: cn("mt-4", className), ...props });
|
|
1061
1221
|
}
|
|
1062
1222
|
function DialogFooter({ className, ...props }) {
|
|
1063
|
-
return /* @__PURE__ */
|
|
1223
|
+
return /* @__PURE__ */ jsx15("div", { className: cn("mt-6 flex items-center justify-end gap-2", className), ...props });
|
|
1064
1224
|
}
|
|
1065
1225
|
function Dialog({
|
|
1066
1226
|
open,
|
|
@@ -1134,14 +1294,14 @@ function Dialog({
|
|
|
1134
1294
|
exiting ? "animate-out fade-out-0 zoom-out-95" : "animate-in fade-in-0 zoom-in-95"
|
|
1135
1295
|
) : void 0;
|
|
1136
1296
|
return createPortal2(
|
|
1137
|
-
/* @__PURE__ */
|
|
1297
|
+
/* @__PURE__ */ jsx15(
|
|
1138
1298
|
"div",
|
|
1139
1299
|
{
|
|
1140
1300
|
className: cn("fixed inset-0 z-50 flex items-center justify-center bg-background/80 p-4", motion),
|
|
1141
1301
|
onMouseDown: (event) => {
|
|
1142
1302
|
if (closeOnBackdrop && event.target === event.currentTarget) onOpenChange(false);
|
|
1143
1303
|
},
|
|
1144
|
-
children: /* @__PURE__ */
|
|
1304
|
+
children: /* @__PURE__ */ jsx15(
|
|
1145
1305
|
"div",
|
|
1146
1306
|
{
|
|
1147
1307
|
ref: dialogRef,
|
|
@@ -1156,13 +1316,13 @@ function Dialog({
|
|
|
1156
1316
|
sizeClasses2[size],
|
|
1157
1317
|
motion
|
|
1158
1318
|
),
|
|
1159
|
-
children: /* @__PURE__ */
|
|
1160
|
-
header ?? /* @__PURE__ */
|
|
1161
|
-
/* @__PURE__ */
|
|
1162
|
-
title && /* @__PURE__ */
|
|
1163
|
-
description && /* @__PURE__ */
|
|
1319
|
+
children: /* @__PURE__ */ jsxs8(DialogIdsContext.Provider, { value: { titleId, descriptionId }, children: [
|
|
1320
|
+
header ?? /* @__PURE__ */ jsxs8(DialogHeader, { children: [
|
|
1321
|
+
/* @__PURE__ */ jsxs8("div", { className: "min-w-0", children: [
|
|
1322
|
+
title && /* @__PURE__ */ jsx15(DialogTitle, { children: title }),
|
|
1323
|
+
description && /* @__PURE__ */ jsx15(DialogDescription, { children: description })
|
|
1164
1324
|
] }),
|
|
1165
|
-
showClose && /* @__PURE__ */
|
|
1325
|
+
showClose && /* @__PURE__ */ jsx15(
|
|
1166
1326
|
"button",
|
|
1167
1327
|
{
|
|
1168
1328
|
type: "button",
|
|
@@ -1173,7 +1333,7 @@ function Dialog({
|
|
|
1173
1333
|
}
|
|
1174
1334
|
)
|
|
1175
1335
|
] }),
|
|
1176
|
-
/* @__PURE__ */
|
|
1336
|
+
/* @__PURE__ */ jsx15(
|
|
1177
1337
|
"div",
|
|
1178
1338
|
{
|
|
1179
1339
|
className: cn(
|
|
@@ -1184,7 +1344,7 @@ function Dialog({
|
|
|
1184
1344
|
children
|
|
1185
1345
|
}
|
|
1186
1346
|
),
|
|
1187
|
-
footer && /* @__PURE__ */
|
|
1347
|
+
footer && /* @__PURE__ */ jsx15(DialogFooter, { children: footer })
|
|
1188
1348
|
] })
|
|
1189
1349
|
}
|
|
1190
1350
|
)
|
|
@@ -1196,25 +1356,25 @@ function Dialog({
|
|
|
1196
1356
|
|
|
1197
1357
|
// src/components/table-card/TableCard.tsx
|
|
1198
1358
|
import * as React16 from "react";
|
|
1199
|
-
import { jsx as
|
|
1359
|
+
import { jsx as jsx16, jsxs as jsxs9 } from "react/jsx-runtime";
|
|
1200
1360
|
var TableCard = React16.forwardRef(function TableCard2({ title, description, actions, toolbar, children, footer, flush = true, className, ...props }, ref) {
|
|
1201
|
-
return /* @__PURE__ */
|
|
1361
|
+
return /* @__PURE__ */ jsxs9(
|
|
1202
1362
|
"div",
|
|
1203
1363
|
{
|
|
1204
1364
|
ref,
|
|
1205
1365
|
className: cn("overflow-hidden rounded-xl border border-border bg-card text-card-foreground", className),
|
|
1206
1366
|
...props,
|
|
1207
1367
|
children: [
|
|
1208
|
-
(title || description || actions) && /* @__PURE__ */
|
|
1209
|
-
/* @__PURE__ */
|
|
1210
|
-
title && /* @__PURE__ */
|
|
1211
|
-
description && /* @__PURE__ */
|
|
1368
|
+
(title || description || actions) && /* @__PURE__ */ jsxs9("div", { className: "flex flex-wrap items-start justify-between gap-3 border-b border-border px-4 py-3", children: [
|
|
1369
|
+
/* @__PURE__ */ jsxs9("div", { className: "min-w-0", children: [
|
|
1370
|
+
title && /* @__PURE__ */ jsx16("h2", { className: "text-sm font-semibold", children: title }),
|
|
1371
|
+
description && /* @__PURE__ */ jsx16("p", { className: "mt-0.5 text-sm text-muted-foreground", children: description })
|
|
1212
1372
|
] }),
|
|
1213
|
-
actions && /* @__PURE__ */
|
|
1373
|
+
actions && /* @__PURE__ */ jsx16("div", { className: "flex shrink-0 items-center gap-2", children: actions })
|
|
1214
1374
|
] }),
|
|
1215
|
-
toolbar && /* @__PURE__ */
|
|
1216
|
-
/* @__PURE__ */
|
|
1217
|
-
footer && /* @__PURE__ */
|
|
1375
|
+
toolbar && /* @__PURE__ */ jsx16("div", { className: "border-b border-border px-4 py-2", children: toolbar }),
|
|
1376
|
+
/* @__PURE__ */ jsx16("div", { className: cn(flush ? "overflow-x-auto" : "p-4"), children }),
|
|
1377
|
+
footer && /* @__PURE__ */ jsx16("div", { className: "border-t border-border px-4 py-3", children: footer })
|
|
1218
1378
|
]
|
|
1219
1379
|
}
|
|
1220
1380
|
);
|
|
@@ -1223,7 +1383,7 @@ var TableCard = React16.forwardRef(function TableCard2({ title, description, act
|
|
|
1223
1383
|
// src/components/select-menu/SelectMenu.tsx
|
|
1224
1384
|
import * as React17 from "react";
|
|
1225
1385
|
import { createPortal as createPortal3 } from "react-dom";
|
|
1226
|
-
import { Fragment, jsx as
|
|
1386
|
+
import { Fragment as Fragment2, jsx as jsx17, jsxs as jsxs10 } from "react/jsx-runtime";
|
|
1227
1387
|
function useOutsideClose(open, close, refs) {
|
|
1228
1388
|
React17.useEffect(() => {
|
|
1229
1389
|
if (!open) return;
|
|
@@ -1384,7 +1544,7 @@ var SelectMenu = React17.forwardRef(function SelectMenu2({
|
|
|
1384
1544
|
}
|
|
1385
1545
|
};
|
|
1386
1546
|
const selectedItems = items.filter((item) => selectedValues.includes(item.value));
|
|
1387
|
-
const triggerContent = renderValue ? renderValue(selectedItems) : selectedItems.length === 0 ? /* @__PURE__ */
|
|
1547
|
+
const triggerContent = renderValue ? renderValue(selectedItems) : selectedItems.length === 0 ? /* @__PURE__ */ jsx17("span", { className: "text-muted-foreground", children: placeholder }) : multiple ? /* @__PURE__ */ jsx17("span", { className: "truncate", children: selectedItems.length === 1 ? selectedItems[0].label : `${selectedItems.length} selected` }) : /* @__PURE__ */ jsx17("span", { className: "truncate", children: selectedItems[0].label });
|
|
1388
1548
|
const activeOptionId = activeIndex >= 0 ? `${listboxId}-option-${activeIndex}` : void 0;
|
|
1389
1549
|
const rows = React17.useMemo(() => {
|
|
1390
1550
|
const out = [];
|
|
@@ -1398,14 +1558,15 @@ var SelectMenu = React17.forwardRef(function SelectMenu2({
|
|
|
1398
1558
|
});
|
|
1399
1559
|
return out;
|
|
1400
1560
|
}, [items]);
|
|
1401
|
-
return /* @__PURE__ */
|
|
1402
|
-
/* @__PURE__ */
|
|
1403
|
-
name && selectedValues.map((selected) => /* @__PURE__ */
|
|
1404
|
-
/* @__PURE__ */
|
|
1561
|
+
return /* @__PURE__ */ jsxs10(Fragment2, { children: [
|
|
1562
|
+
/* @__PURE__ */ jsx17("span", { id: labelId, className: "sr-only", children: typeof buttonProps["aria-label"] === "string" ? buttonProps["aria-label"] : "Select" }),
|
|
1563
|
+
name && selectedValues.map((selected) => /* @__PURE__ */ jsx17("input", { type: "hidden", name, value: selected }, selected)),
|
|
1564
|
+
/* @__PURE__ */ jsxs10(
|
|
1405
1565
|
"button",
|
|
1406
1566
|
{
|
|
1407
1567
|
ref: setTriggerRef,
|
|
1408
1568
|
type: "button",
|
|
1569
|
+
role: "combobox",
|
|
1409
1570
|
"aria-haspopup": "listbox",
|
|
1410
1571
|
"aria-expanded": open,
|
|
1411
1572
|
"aria-controls": open ? listboxId : void 0,
|
|
@@ -1422,18 +1583,19 @@ var SelectMenu = React17.forwardRef(function SelectMenu2({
|
|
|
1422
1583
|
),
|
|
1423
1584
|
...buttonProps,
|
|
1424
1585
|
children: [
|
|
1425
|
-
/* @__PURE__ */
|
|
1426
|
-
/* @__PURE__ */
|
|
1586
|
+
/* @__PURE__ */ jsx17("span", { className: "min-w-0 flex-1", children: triggerContent }),
|
|
1587
|
+
/* @__PURE__ */ jsx17("span", { "aria-hidden": "true", className: "text-muted-foreground", children: "\u25BE" })
|
|
1427
1588
|
]
|
|
1428
1589
|
}
|
|
1429
1590
|
),
|
|
1430
1591
|
open && position && createPortal3(
|
|
1431
|
-
/* @__PURE__ */
|
|
1592
|
+
/* @__PURE__ */ jsx17(
|
|
1432
1593
|
"div",
|
|
1433
1594
|
{
|
|
1434
1595
|
ref: listRef,
|
|
1435
1596
|
id: listboxId,
|
|
1436
1597
|
role: "listbox",
|
|
1598
|
+
tabIndex: -1,
|
|
1437
1599
|
"aria-labelledby": labelId,
|
|
1438
1600
|
"aria-multiselectable": multiple || void 0,
|
|
1439
1601
|
style: {
|
|
@@ -1444,8 +1606,8 @@ var SelectMenu = React17.forwardRef(function SelectMenu2({
|
|
|
1444
1606
|
zIndex: 50
|
|
1445
1607
|
},
|
|
1446
1608
|
className: "max-h-64 overflow-y-auto rounded-md border border-border bg-popover p-1 text-popover-foreground shadow-md",
|
|
1447
|
-
children: items.length === 0 ? /* @__PURE__ */
|
|
1448
|
-
(row, rowIndex) => row.heading ? /* @__PURE__ */
|
|
1609
|
+
children: items.length === 0 ? /* @__PURE__ */ jsx17("p", { role: "presentation", className: "px-3 py-2 text-sm text-muted-foreground", children: emptyText }) : rows.map(
|
|
1610
|
+
(row, rowIndex) => row.heading ? /* @__PURE__ */ jsx17(
|
|
1449
1611
|
"p",
|
|
1450
1612
|
{
|
|
1451
1613
|
role: "presentation",
|
|
@@ -1453,7 +1615,7 @@ var SelectMenu = React17.forwardRef(function SelectMenu2({
|
|
|
1453
1615
|
children: row.heading
|
|
1454
1616
|
},
|
|
1455
1617
|
`heading-${row.heading}-${rowIndex}`
|
|
1456
|
-
) : /* @__PURE__ */
|
|
1618
|
+
) : /* @__PURE__ */ jsx17(
|
|
1457
1619
|
"div",
|
|
1458
1620
|
{
|
|
1459
1621
|
id: `${listboxId}-option-${row.index}`,
|
|
@@ -1471,13 +1633,13 @@ var SelectMenu = React17.forwardRef(function SelectMenu2({
|
|
|
1471
1633
|
children: renderItem ? renderItem(row.item, {
|
|
1472
1634
|
selected: selectedValues.includes(row.item.value),
|
|
1473
1635
|
active: row.index === activeIndex
|
|
1474
|
-
}) : /* @__PURE__ */
|
|
1475
|
-
row.item.icon && /* @__PURE__ */
|
|
1476
|
-
/* @__PURE__ */
|
|
1477
|
-
/* @__PURE__ */
|
|
1478
|
-
row.item.description && /* @__PURE__ */
|
|
1636
|
+
}) : /* @__PURE__ */ jsxs10(Fragment2, { children: [
|
|
1637
|
+
row.item.icon && /* @__PURE__ */ jsx17("span", { className: "mt-0.5 shrink-0 [&_svg]:size-4", children: row.item.icon }),
|
|
1638
|
+
/* @__PURE__ */ jsxs10("span", { className: "min-w-0 flex-1", children: [
|
|
1639
|
+
/* @__PURE__ */ jsx17("span", { className: "block", children: row.item.label }),
|
|
1640
|
+
row.item.description && /* @__PURE__ */ jsx17("span", { className: "mt-0.5 block text-xs text-muted-foreground", children: row.item.description })
|
|
1479
1641
|
] }),
|
|
1480
|
-
multiple && selectedValues.includes(row.item.value) && /* @__PURE__ */
|
|
1642
|
+
multiple && selectedValues.includes(row.item.value) && /* @__PURE__ */ jsx17("span", { "aria-hidden": "true", className: "ml-auto text-primary", children: "\u2713" })
|
|
1481
1643
|
] })
|
|
1482
1644
|
},
|
|
1483
1645
|
row.item.value
|
|
@@ -1615,7 +1777,7 @@ function useCombobox({
|
|
|
1615
1777
|
}
|
|
1616
1778
|
|
|
1617
1779
|
// src/components/search/Search.tsx
|
|
1618
|
-
import { jsx as
|
|
1780
|
+
import { jsx as jsx18, jsxs as jsxs11 } from "react/jsx-runtime";
|
|
1619
1781
|
function Search({
|
|
1620
1782
|
options,
|
|
1621
1783
|
value,
|
|
@@ -1658,8 +1820,8 @@ function Search({
|
|
|
1658
1820
|
onValueChange?.(item.value);
|
|
1659
1821
|
combobox.setOpen(false);
|
|
1660
1822
|
};
|
|
1661
|
-
return /* @__PURE__ */
|
|
1662
|
-
/* @__PURE__ */
|
|
1823
|
+
return /* @__PURE__ */ jsxs11("div", { ref: combobox.anchorRef, className: cn("relative w-full", className), children: [
|
|
1824
|
+
/* @__PURE__ */ jsx18(
|
|
1663
1825
|
Input,
|
|
1664
1826
|
{
|
|
1665
1827
|
id,
|
|
@@ -1683,7 +1845,7 @@ function Search({
|
|
|
1683
1845
|
}
|
|
1684
1846
|
),
|
|
1685
1847
|
combobox.ready && createPortal4(
|
|
1686
|
-
/* @__PURE__ */
|
|
1848
|
+
/* @__PURE__ */ jsx18(
|
|
1687
1849
|
"ul",
|
|
1688
1850
|
{
|
|
1689
1851
|
id: combobox.listboxId,
|
|
@@ -1697,7 +1859,7 @@ function Search({
|
|
|
1697
1859
|
zIndex: 50
|
|
1698
1860
|
},
|
|
1699
1861
|
className: "max-h-64 overflow-y-auto rounded-md border border-border bg-popover p-1 text-popover-foreground shadow-md",
|
|
1700
|
-
children: filtered.length === 0 ? /* @__PURE__ */
|
|
1862
|
+
children: filtered.length === 0 ? /* @__PURE__ */ jsx18("li", { role: "presentation", className: "px-3 py-2 text-sm text-muted-foreground", children: emptyText }) : filtered.map((option, index) => /* @__PURE__ */ jsxs11(
|
|
1701
1863
|
"li",
|
|
1702
1864
|
{
|
|
1703
1865
|
id: combobox.optionId(index),
|
|
@@ -1711,8 +1873,8 @@ function Search({
|
|
|
1711
1873
|
combobox.activeIndex === index ? "bg-accent text-accent-foreground" : "hover:bg-accent/60"
|
|
1712
1874
|
),
|
|
1713
1875
|
children: [
|
|
1714
|
-
/* @__PURE__ */
|
|
1715
|
-
option.description && /* @__PURE__ */
|
|
1876
|
+
/* @__PURE__ */ jsx18("span", { className: "block", children: option.label }),
|
|
1877
|
+
option.description && /* @__PURE__ */ jsx18("span", { className: "block text-xs text-muted-foreground", children: option.description })
|
|
1716
1878
|
]
|
|
1717
1879
|
},
|
|
1718
1880
|
option.value
|
|
@@ -1727,7 +1889,7 @@ function Search({
|
|
|
1727
1889
|
// src/components/autocomplete/Autocomplete.tsx
|
|
1728
1890
|
import * as React20 from "react";
|
|
1729
1891
|
import { createPortal as createPortal5 } from "react-dom";
|
|
1730
|
-
import { Fragment as
|
|
1892
|
+
import { Fragment as Fragment3, jsx as jsx19, jsxs as jsxs12 } from "react/jsx-runtime";
|
|
1731
1893
|
function normalize(entry) {
|
|
1732
1894
|
if (typeof entry === "string") return { value: entry, label: entry };
|
|
1733
1895
|
return { value: entry.value, label: entry.label ?? entry.value, group: entry.group, description: entry.description };
|
|
@@ -1808,8 +1970,8 @@ function Autocomplete({
|
|
|
1808
1970
|
});
|
|
1809
1971
|
return out;
|
|
1810
1972
|
}, [items]);
|
|
1811
|
-
return /* @__PURE__ */
|
|
1812
|
-
/* @__PURE__ */
|
|
1973
|
+
return /* @__PURE__ */ jsxs12("div", { ref: combobox.anchorRef, className: cn("relative w-full", className), children: [
|
|
1974
|
+
/* @__PURE__ */ jsx19(
|
|
1813
1975
|
Input,
|
|
1814
1976
|
{
|
|
1815
1977
|
id,
|
|
@@ -1835,7 +1997,7 @@ function Autocomplete({
|
|
|
1835
1997
|
...combobox.inputProps
|
|
1836
1998
|
}
|
|
1837
1999
|
),
|
|
1838
|
-
clearable && current && /* @__PURE__ */
|
|
2000
|
+
clearable && current && /* @__PURE__ */ jsx19(
|
|
1839
2001
|
"button",
|
|
1840
2002
|
{
|
|
1841
2003
|
type: "button",
|
|
@@ -1850,7 +2012,7 @@ function Autocomplete({
|
|
|
1850
2012
|
}
|
|
1851
2013
|
),
|
|
1852
2014
|
combobox.ready && createPortal5(
|
|
1853
|
-
/* @__PURE__ */
|
|
2015
|
+
/* @__PURE__ */ jsx19(
|
|
1854
2016
|
"ul",
|
|
1855
2017
|
{
|
|
1856
2018
|
id: combobox.listboxId,
|
|
@@ -1865,8 +2027,8 @@ function Autocomplete({
|
|
|
1865
2027
|
zIndex: 50
|
|
1866
2028
|
},
|
|
1867
2029
|
className: "max-h-60 overflow-y-auto rounded-md border border-border bg-popover p-1 text-popover-foreground shadow-md",
|
|
1868
|
-
children: loading && items.length === 0 ? /* @__PURE__ */
|
|
1869
|
-
(entry, rowIndex) => entry.heading ? /* @__PURE__ */
|
|
2030
|
+
children: loading && items.length === 0 ? /* @__PURE__ */ jsx19("li", { role: "presentation", className: "px-3 py-2 text-sm text-muted-foreground", children: loadingText ?? "Loading\u2026" }) : items.length === 0 ? /* @__PURE__ */ jsx19("li", { role: "presentation", className: "px-3 py-2 text-sm text-muted-foreground", children: emptyText ?? "No suggestions" }) : grouped.map(
|
|
2031
|
+
(entry, rowIndex) => entry.heading ? /* @__PURE__ */ jsx19(
|
|
1870
2032
|
"li",
|
|
1871
2033
|
{
|
|
1872
2034
|
role: "presentation",
|
|
@@ -1874,7 +2036,7 @@ function Autocomplete({
|
|
|
1874
2036
|
children: entry.heading
|
|
1875
2037
|
},
|
|
1876
2038
|
`group-${entry.heading}-${rowIndex}`
|
|
1877
|
-
) : /* @__PURE__ */
|
|
2039
|
+
) : /* @__PURE__ */ jsx19(
|
|
1878
2040
|
"li",
|
|
1879
2041
|
{
|
|
1880
2042
|
id: combobox.optionId(entry.index),
|
|
@@ -1887,9 +2049,9 @@ function Autocomplete({
|
|
|
1887
2049
|
"cursor-pointer rounded-sm px-3 py-1.5 text-sm outline-none",
|
|
1888
2050
|
combobox.activeIndex === entry.index ? "bg-accent text-accent-foreground" : "hover:bg-accent/60"
|
|
1889
2051
|
),
|
|
1890
|
-
children: renderOption ? renderOption(entry.option, { active: combobox.activeIndex === entry.index }) : /* @__PURE__ */
|
|
1891
|
-
/* @__PURE__ */
|
|
1892
|
-
entry.option.description && /* @__PURE__ */
|
|
2052
|
+
children: renderOption ? renderOption(entry.option, { active: combobox.activeIndex === entry.index }) : /* @__PURE__ */ jsxs12(Fragment3, { children: [
|
|
2053
|
+
/* @__PURE__ */ jsx19("span", { className: "block", children: entry.option.label }),
|
|
2054
|
+
entry.option.description && /* @__PURE__ */ jsx19("span", { className: "mt-0.5 block text-xs text-muted-foreground", children: entry.option.description })
|
|
1893
2055
|
] })
|
|
1894
2056
|
},
|
|
1895
2057
|
entry.option.value
|
|
@@ -1904,9 +2066,9 @@ function Autocomplete({
|
|
|
1904
2066
|
|
|
1905
2067
|
// src/components/checkbox/Checkbox.tsx
|
|
1906
2068
|
import * as React21 from "react";
|
|
1907
|
-
import { jsx as
|
|
2069
|
+
import { jsx as jsx20 } from "react/jsx-runtime";
|
|
1908
2070
|
var Checkbox = React21.forwardRef(
|
|
1909
|
-
({ className, checked, onCheckedChange, onChange, ...props }, ref) => /* @__PURE__ */
|
|
2071
|
+
({ className, checked, onCheckedChange, onChange, ...props }, ref) => /* @__PURE__ */ jsx20(
|
|
1910
2072
|
"input",
|
|
1911
2073
|
{
|
|
1912
2074
|
type: "checkbox",
|
|
@@ -1931,7 +2093,7 @@ Checkbox.displayName = "Checkbox";
|
|
|
1931
2093
|
|
|
1932
2094
|
// src/components/checkbox/CheckboxGroup.tsx
|
|
1933
2095
|
import * as React22 from "react";
|
|
1934
|
-
import { jsx as
|
|
2096
|
+
import { jsx as jsx21, jsxs as jsxs13 } from "react/jsx-runtime";
|
|
1935
2097
|
var CheckboxGroupContext = React22.createContext({
|
|
1936
2098
|
name: "",
|
|
1937
2099
|
values: [],
|
|
@@ -1947,10 +2109,10 @@ var CheckboxGroup = React22.forwardRef(
|
|
|
1947
2109
|
if (value === void 0) setInternalValue(updated);
|
|
1948
2110
|
onValueChange?.(updated);
|
|
1949
2111
|
};
|
|
1950
|
-
return /* @__PURE__ */
|
|
1951
|
-
legend && /* @__PURE__ */
|
|
1952
|
-
/* @__PURE__ */
|
|
1953
|
-
error && /* @__PURE__ */
|
|
2112
|
+
return /* @__PURE__ */ jsxs13("fieldset", { ref, className: cn(orientation === "vertical" ? "space-y-2" : "flex flex-row flex-wrap gap-x-4 gap-y-2", className), children: [
|
|
2113
|
+
legend && /* @__PURE__ */ jsx21("legend", { className: "text-sm font-medium", children: legend }),
|
|
2114
|
+
/* @__PURE__ */ jsx21(CheckboxGroupContext.Provider, { value: { name, values: currentValue, toggle }, children }),
|
|
2115
|
+
error && /* @__PURE__ */ jsx21("p", { role: "alert", className: "text-xs text-destructive", children: error })
|
|
1954
2116
|
] });
|
|
1955
2117
|
}
|
|
1956
2118
|
);
|
|
@@ -1960,8 +2122,8 @@ var CheckboxGroupItem = React22.forwardRef(
|
|
|
1960
2122
|
const group = React22.useContext(CheckboxGroupContext);
|
|
1961
2123
|
const generatedId = React22.useId();
|
|
1962
2124
|
const inputId = id ?? generatedId;
|
|
1963
|
-
return /* @__PURE__ */
|
|
1964
|
-
/* @__PURE__ */
|
|
2125
|
+
return /* @__PURE__ */ jsxs13("div", { className: "flex items-center gap-2", children: [
|
|
2126
|
+
/* @__PURE__ */ jsx21(
|
|
1965
2127
|
Checkbox,
|
|
1966
2128
|
{
|
|
1967
2129
|
ref,
|
|
@@ -1974,7 +2136,7 @@ var CheckboxGroupItem = React22.forwardRef(
|
|
|
1974
2136
|
...props
|
|
1975
2137
|
}
|
|
1976
2138
|
),
|
|
1977
|
-
label && /* @__PURE__ */
|
|
2139
|
+
label && /* @__PURE__ */ jsx21(
|
|
1978
2140
|
"label",
|
|
1979
2141
|
{
|
|
1980
2142
|
htmlFor: inputId,
|
|
@@ -1989,9 +2151,9 @@ CheckboxGroupItem.displayName = "CheckboxGroupItem";
|
|
|
1989
2151
|
|
|
1990
2152
|
// src/components/radio/Radio.tsx
|
|
1991
2153
|
import * as React23 from "react";
|
|
1992
|
-
import { jsx as
|
|
2154
|
+
import { jsx as jsx22, jsxs as jsxs14 } from "react/jsx-runtime";
|
|
1993
2155
|
var Radio = React23.forwardRef(
|
|
1994
|
-
({ className, checked, onCheckedChange, onChange, ...props }, ref) => /* @__PURE__ */
|
|
2156
|
+
({ className, checked, onCheckedChange, onChange, ...props }, ref) => /* @__PURE__ */ jsx22(
|
|
1995
2157
|
"input",
|
|
1996
2158
|
{
|
|
1997
2159
|
type: "radio",
|
|
@@ -2021,7 +2183,7 @@ var RadioGroup = React23.forwardRef(
|
|
|
2021
2183
|
if (value === void 0) setInternalValue(next);
|
|
2022
2184
|
onValueChange?.(next);
|
|
2023
2185
|
};
|
|
2024
|
-
return /* @__PURE__ */
|
|
2186
|
+
return /* @__PURE__ */ jsxs14(
|
|
2025
2187
|
"fieldset",
|
|
2026
2188
|
{
|
|
2027
2189
|
ref,
|
|
@@ -2030,9 +2192,9 @@ var RadioGroup = React23.forwardRef(
|
|
|
2030
2192
|
className
|
|
2031
2193
|
),
|
|
2032
2194
|
children: [
|
|
2033
|
-
legend && /* @__PURE__ */
|
|
2034
|
-
/* @__PURE__ */
|
|
2035
|
-
error && /* @__PURE__ */
|
|
2195
|
+
legend && /* @__PURE__ */ jsx22("legend", { className: "text-sm font-medium", children: legend }),
|
|
2196
|
+
/* @__PURE__ */ jsx22(RadioGroupContext.Provider, { value: { name, value: currentValue, onChange: handleChange }, children }),
|
|
2197
|
+
error && /* @__PURE__ */ jsx22("p", { role: "alert", className: "text-xs text-destructive", children: error })
|
|
2036
2198
|
]
|
|
2037
2199
|
}
|
|
2038
2200
|
);
|
|
@@ -2050,8 +2212,8 @@ var RadioGroupItem = React23.forwardRef(
|
|
|
2050
2212
|
const group = React23.useContext(RadioGroupContext);
|
|
2051
2213
|
const generatedId = React23.useId();
|
|
2052
2214
|
const inputId = id ?? generatedId;
|
|
2053
|
-
return /* @__PURE__ */
|
|
2054
|
-
/* @__PURE__ */
|
|
2215
|
+
return /* @__PURE__ */ jsxs14("div", { className: "flex items-center gap-2", children: [
|
|
2216
|
+
/* @__PURE__ */ jsx22(
|
|
2055
2217
|
Radio,
|
|
2056
2218
|
{
|
|
2057
2219
|
ref,
|
|
@@ -2064,7 +2226,7 @@ var RadioGroupItem = React23.forwardRef(
|
|
|
2064
2226
|
...props
|
|
2065
2227
|
}
|
|
2066
2228
|
),
|
|
2067
|
-
label && /* @__PURE__ */
|
|
2229
|
+
label && /* @__PURE__ */ jsx22("label", { htmlFor: inputId, className: "text-sm leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70", children: label })
|
|
2068
2230
|
] });
|
|
2069
2231
|
}
|
|
2070
2232
|
);
|
|
@@ -2072,13 +2234,13 @@ RadioGroupItem.displayName = "RadioGroupItem";
|
|
|
2072
2234
|
|
|
2073
2235
|
// src/components/radio/RadioCard.tsx
|
|
2074
2236
|
import * as React24 from "react";
|
|
2075
|
-
import { jsx as
|
|
2237
|
+
import { jsx as jsx23, jsxs as jsxs15 } from "react/jsx-runtime";
|
|
2076
2238
|
var RadioCard = React24.forwardRef(
|
|
2077
2239
|
({ value, title, description, children, rounded = true, disabled, className, id }, ref) => {
|
|
2078
2240
|
const group = React24.useContext(RadioGroupContext);
|
|
2079
2241
|
const generatedId = React24.useId();
|
|
2080
2242
|
const inputId = id ?? generatedId;
|
|
2081
|
-
return /* @__PURE__ */
|
|
2243
|
+
return /* @__PURE__ */ jsxs15(
|
|
2082
2244
|
"label",
|
|
2083
2245
|
{
|
|
2084
2246
|
ref,
|
|
@@ -2094,7 +2256,7 @@ var RadioCard = React24.forwardRef(
|
|
|
2094
2256
|
className
|
|
2095
2257
|
),
|
|
2096
2258
|
children: [
|
|
2097
|
-
/* @__PURE__ */
|
|
2259
|
+
/* @__PURE__ */ jsx23(
|
|
2098
2260
|
Radio,
|
|
2099
2261
|
{
|
|
2100
2262
|
id: inputId,
|
|
@@ -2105,8 +2267,8 @@ var RadioCard = React24.forwardRef(
|
|
|
2105
2267
|
className: "sr-only"
|
|
2106
2268
|
}
|
|
2107
2269
|
),
|
|
2108
|
-
title && /* @__PURE__ */
|
|
2109
|
-
description && /* @__PURE__ */
|
|
2270
|
+
title && /* @__PURE__ */ jsx23("span", { className: "text-sm font-medium leading-none", children: title }),
|
|
2271
|
+
description && /* @__PURE__ */ jsx23("span", { className: "text-sm text-muted-foreground", children: description }),
|
|
2110
2272
|
children
|
|
2111
2273
|
]
|
|
2112
2274
|
}
|
|
@@ -2117,9 +2279,9 @@ RadioCard.displayName = "RadioCard";
|
|
|
2117
2279
|
|
|
2118
2280
|
// src/components/label/Label.tsx
|
|
2119
2281
|
import * as React25 from "react";
|
|
2120
|
-
import { jsx as
|
|
2282
|
+
import { jsx as jsx24 } from "react/jsx-runtime";
|
|
2121
2283
|
var Label = React25.forwardRef(
|
|
2122
|
-
({ className, ...props }, ref) => /* @__PURE__ */
|
|
2284
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx24(
|
|
2123
2285
|
"label",
|
|
2124
2286
|
{
|
|
2125
2287
|
ref,
|
|
@@ -2135,19 +2297,19 @@ Label.displayName = "Label";
|
|
|
2135
2297
|
|
|
2136
2298
|
// src/components/fieldset/Fieldset.tsx
|
|
2137
2299
|
import * as React26 from "react";
|
|
2138
|
-
import { jsx as
|
|
2300
|
+
import { jsx as jsx25, jsxs as jsxs16 } from "react/jsx-runtime";
|
|
2139
2301
|
var Fieldset = React26.forwardRef(
|
|
2140
|
-
({ legend, description, error, className, children, ...props }, ref) => /* @__PURE__ */
|
|
2302
|
+
({ legend, description, error, className, children, ...props }, ref) => /* @__PURE__ */ jsxs16(
|
|
2141
2303
|
"fieldset",
|
|
2142
2304
|
{
|
|
2143
2305
|
ref,
|
|
2144
2306
|
className: cn("m-0 flex min-w-0 flex-col gap-1.5 border-0 p-0", className),
|
|
2145
2307
|
...props,
|
|
2146
2308
|
children: [
|
|
2147
|
-
legend && /* @__PURE__ */
|
|
2148
|
-
description && /* @__PURE__ */
|
|
2309
|
+
legend && /* @__PURE__ */ jsx25("legend", { className: "p-0 text-sm font-medium leading-none", children: legend }),
|
|
2310
|
+
description && /* @__PURE__ */ jsx25("p", { className: "text-xs text-muted-foreground", children: description }),
|
|
2149
2311
|
children,
|
|
2150
|
-
error && /* @__PURE__ */
|
|
2312
|
+
error && /* @__PURE__ */ jsx25("p", { role: "alert", className: "text-xs text-destructive", children: error })
|
|
2151
2313
|
]
|
|
2152
2314
|
}
|
|
2153
2315
|
)
|
|
@@ -2160,7 +2322,7 @@ import * as React28 from "react";
|
|
|
2160
2322
|
// src/components/tooltip/Tooltip.tsx
|
|
2161
2323
|
import * as React27 from "react";
|
|
2162
2324
|
import { createPortal as createPortal6 } from "react-dom";
|
|
2163
|
-
import { jsx as
|
|
2325
|
+
import { jsx as jsx26, jsxs as jsxs17 } from "react/jsx-runtime";
|
|
2164
2326
|
var GAP = 8;
|
|
2165
2327
|
var Tooltip = React27.forwardRef(
|
|
2166
2328
|
({ content, side = "top", delay = 300, className, children }, ref) => {
|
|
@@ -2201,7 +2363,7 @@ var Tooltip = React27.forwardRef(
|
|
|
2201
2363
|
const trigger = React27.cloneElement(children, {
|
|
2202
2364
|
"aria-describedby": open ? id : void 0
|
|
2203
2365
|
});
|
|
2204
|
-
return /* @__PURE__ */
|
|
2366
|
+
return /* @__PURE__ */ jsxs17(
|
|
2205
2367
|
"div",
|
|
2206
2368
|
{
|
|
2207
2369
|
ref: (node) => {
|
|
@@ -2223,7 +2385,7 @@ var Tooltip = React27.forwardRef(
|
|
|
2223
2385
|
children: [
|
|
2224
2386
|
trigger,
|
|
2225
2387
|
open && pos && typeof document !== "undefined" && createPortal6(
|
|
2226
|
-
/* @__PURE__ */
|
|
2388
|
+
/* @__PURE__ */ jsx26(
|
|
2227
2389
|
"div",
|
|
2228
2390
|
{
|
|
2229
2391
|
id,
|
|
@@ -2243,7 +2405,7 @@ var Tooltip = React27.forwardRef(
|
|
|
2243
2405
|
Tooltip.displayName = "Tooltip";
|
|
2244
2406
|
|
|
2245
2407
|
// src/components/form-field/FormField.tsx
|
|
2246
|
-
import { Fragment as
|
|
2408
|
+
import { Fragment as Fragment5, jsx as jsx27, jsxs as jsxs18 } from "react/jsx-runtime";
|
|
2247
2409
|
var FormField = ({
|
|
2248
2410
|
id,
|
|
2249
2411
|
label,
|
|
@@ -2268,41 +2430,41 @@ var FormField = ({
|
|
|
2268
2430
|
...error ? { "aria-invalid": true } : {}
|
|
2269
2431
|
});
|
|
2270
2432
|
}
|
|
2271
|
-
const labelNode = /* @__PURE__ */
|
|
2433
|
+
const labelNode = /* @__PURE__ */ jsxs18(Label, { htmlFor: id, className: labelHidden ? "sr-only" : void 0, children: [
|
|
2272
2434
|
label,
|
|
2273
|
-
required && /* @__PURE__ */
|
|
2435
|
+
required && /* @__PURE__ */ jsxs18(Fragment5, { children: [
|
|
2274
2436
|
" ",
|
|
2275
|
-
/* @__PURE__ */
|
|
2437
|
+
/* @__PURE__ */ jsx27("span", { "aria-hidden": "true", className: "ml-0.5 text-destructive", children: "*" })
|
|
2276
2438
|
] })
|
|
2277
2439
|
] });
|
|
2278
|
-
const tooltipNode = tooltip ? /* @__PURE__ */
|
|
2440
|
+
const tooltipNode = tooltip ? /* @__PURE__ */ jsx27(Tooltip, { content: tooltip, side: "top", children: /* @__PURE__ */ jsx27(
|
|
2279
2441
|
"button",
|
|
2280
2442
|
{
|
|
2281
2443
|
type: "button",
|
|
2282
2444
|
"aria-label": `${label} information`,
|
|
2283
2445
|
className: "ml-1 inline-flex h-4 w-4 shrink-0 items-center justify-center rounded-full text-muted-foreground hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
2284
|
-
children: /* @__PURE__ */
|
|
2446
|
+
children: /* @__PURE__ */ jsx27("svg", { viewBox: "0 0 16 16", className: "h-3.5 w-3.5", fill: "currentColor", "aria-hidden": "true", children: /* @__PURE__ */ jsx27("path", { d: "M8 1.5a6.5 6.5 0 1 0 0 13 6.5 6.5 0 0 0 0-13ZM8 7a.75.75 0 0 1 .75.75v3.5a.75.75 0 0 1-1.5 0v-3.5A.75.75 0 0 1 8 7Zm0-2.25a.9.9 0 1 1 0 1.8.9.9 0 0 1 0-1.8Z" }) })
|
|
2285
2447
|
}
|
|
2286
2448
|
) }) : null;
|
|
2287
|
-
const hintOrError = error ? /* @__PURE__ */
|
|
2449
|
+
const hintOrError = error ? /* @__PURE__ */ jsx27("p", { id: errorId, role: "alert", className: "text-xs text-destructive", children: error }) : hint ? /* @__PURE__ */ jsx27("p", { id: hintId, className: "text-xs text-muted-foreground", children: hint }) : null;
|
|
2288
2450
|
if (labelPlacement === "left") {
|
|
2289
|
-
return /* @__PURE__ */
|
|
2290
|
-
/* @__PURE__ */
|
|
2451
|
+
return /* @__PURE__ */ jsx27("div", { className: cn("flex min-w-0 flex-col gap-1.5", className), children: /* @__PURE__ */ jsxs18("div", { className: "flex items-start gap-3", children: [
|
|
2452
|
+
/* @__PURE__ */ jsxs18("div", { className: "flex w-40 shrink-0 items-center gap-1 pt-2", children: [
|
|
2291
2453
|
labelNode,
|
|
2292
2454
|
tooltipNode
|
|
2293
2455
|
] }),
|
|
2294
|
-
/* @__PURE__ */
|
|
2295
|
-
/* @__PURE__ */
|
|
2296
|
-
/* @__PURE__ */
|
|
2297
|
-
trailing && /* @__PURE__ */
|
|
2456
|
+
/* @__PURE__ */ jsxs18("div", { className: "flex min-w-0 flex-1 flex-col gap-1.5", children: [
|
|
2457
|
+
/* @__PURE__ */ jsxs18("div", { className: "flex min-w-0 items-center gap-2", children: [
|
|
2458
|
+
/* @__PURE__ */ jsx27("div", { className: "min-w-0 flex-1", children: control }),
|
|
2459
|
+
trailing && /* @__PURE__ */ jsx27("span", { className: "shrink-0 text-xs text-muted-foreground", children: trailing })
|
|
2298
2460
|
] }),
|
|
2299
2461
|
hintOrError
|
|
2300
2462
|
] })
|
|
2301
2463
|
] }) });
|
|
2302
2464
|
}
|
|
2303
|
-
return /* @__PURE__ */
|
|
2304
|
-
/* @__PURE__ */
|
|
2305
|
-
/* @__PURE__ */
|
|
2465
|
+
return /* @__PURE__ */ jsxs18("div", { className: cn("flex min-w-0 flex-col gap-1.5", className), children: [
|
|
2466
|
+
/* @__PURE__ */ jsxs18("div", { className: "flex items-center justify-between gap-2", children: [
|
|
2467
|
+
/* @__PURE__ */ jsxs18("span", { className: "flex min-w-0 items-center", children: [
|
|
2306
2468
|
labelNode,
|
|
2307
2469
|
tooltipNode
|
|
2308
2470
|
] }),
|
|
@@ -2316,11 +2478,11 @@ FormField.displayName = "FormField";
|
|
|
2316
2478
|
|
|
2317
2479
|
// src/components/form/Form.tsx
|
|
2318
2480
|
import * as React29 from "react";
|
|
2319
|
-
import { jsx as
|
|
2481
|
+
import { jsx as jsx28 } from "react/jsx-runtime";
|
|
2320
2482
|
var Form = React29.forwardRef(
|
|
2321
2483
|
({ variant = "default", gap, className, style, ...props }, ref) => {
|
|
2322
2484
|
const gapResolved = resolveGap(gap ?? "md");
|
|
2323
|
-
return /* @__PURE__ */
|
|
2485
|
+
return /* @__PURE__ */ jsx28(
|
|
2324
2486
|
"form",
|
|
2325
2487
|
{
|
|
2326
2488
|
ref,
|
|
@@ -2341,7 +2503,7 @@ Form.displayName = "Form";
|
|
|
2341
2503
|
|
|
2342
2504
|
// src/components/form-layout/FormLayout.tsx
|
|
2343
2505
|
import * as React30 from "react";
|
|
2344
|
-
import { jsx as
|
|
2506
|
+
import { jsx as jsx29, jsxs as jsxs19 } from "react/jsx-runtime";
|
|
2345
2507
|
var GRID_COLUMNS = {
|
|
2346
2508
|
1: "grid-cols-1",
|
|
2347
2509
|
2: "grid-cols-2",
|
|
@@ -2363,7 +2525,7 @@ var FormLayout = React30.forwardRef(
|
|
|
2363
2525
|
}, ref) => {
|
|
2364
2526
|
const Tag = as;
|
|
2365
2527
|
const gapResolved = resolveGap(gap ?? "md");
|
|
2366
|
-
return /* @__PURE__ */
|
|
2528
|
+
return /* @__PURE__ */ jsxs19(
|
|
2367
2529
|
Tag,
|
|
2368
2530
|
{
|
|
2369
2531
|
ref,
|
|
@@ -2378,8 +2540,8 @@ var FormLayout = React30.forwardRef(
|
|
|
2378
2540
|
style: { ...gapResolved.style, ...style },
|
|
2379
2541
|
...props,
|
|
2380
2542
|
children: [
|
|
2381
|
-
legend && as === "fieldset" && /* @__PURE__ */
|
|
2382
|
-
description && as === "fieldset" && /* @__PURE__ */
|
|
2543
|
+
legend && as === "fieldset" && /* @__PURE__ */ jsx29("legend", { className: "col-span-full p-0 text-sm font-medium leading-none", children: legend }),
|
|
2544
|
+
description && as === "fieldset" && /* @__PURE__ */ jsx29("p", { className: "col-span-full text-xs text-muted-foreground", children: description }),
|
|
2383
2545
|
children
|
|
2384
2546
|
]
|
|
2385
2547
|
}
|
|
@@ -2390,7 +2552,7 @@ FormLayout.displayName = "FormLayout";
|
|
|
2390
2552
|
|
|
2391
2553
|
// src/components/switch/Switch.tsx
|
|
2392
2554
|
import * as React31 from "react";
|
|
2393
|
-
import { Fragment as
|
|
2555
|
+
import { Fragment as Fragment6, jsx as jsx30, jsxs as jsxs20 } from "react/jsx-runtime";
|
|
2394
2556
|
var Switch = React31.forwardRef(
|
|
2395
2557
|
({ className, checked, defaultChecked, onCheckedChange, disabled, name, value, ...props }, ref) => {
|
|
2396
2558
|
const [internalChecked, setInternalChecked] = React31.useState(defaultChecked ?? false);
|
|
@@ -2399,8 +2561,8 @@ var Switch = React31.forwardRef(
|
|
|
2399
2561
|
if (checked === void 0) setInternalChecked((prev) => !prev);
|
|
2400
2562
|
onCheckedChange?.(!isOn);
|
|
2401
2563
|
};
|
|
2402
|
-
return /* @__PURE__ */
|
|
2403
|
-
name && /* @__PURE__ */
|
|
2564
|
+
return /* @__PURE__ */ jsxs20(Fragment6, { children: [
|
|
2565
|
+
name && /* @__PURE__ */ jsx30(
|
|
2404
2566
|
"input",
|
|
2405
2567
|
{
|
|
2406
2568
|
type: "checkbox",
|
|
@@ -2411,7 +2573,7 @@ var Switch = React31.forwardRef(
|
|
|
2411
2573
|
hidden: true
|
|
2412
2574
|
}
|
|
2413
2575
|
),
|
|
2414
|
-
/* @__PURE__ */
|
|
2576
|
+
/* @__PURE__ */ jsx30(
|
|
2415
2577
|
"button",
|
|
2416
2578
|
{
|
|
2417
2579
|
type: "button",
|
|
@@ -2428,7 +2590,7 @@ var Switch = React31.forwardRef(
|
|
|
2428
2590
|
className
|
|
2429
2591
|
),
|
|
2430
2592
|
...props,
|
|
2431
|
-
children: /* @__PURE__ */
|
|
2593
|
+
children: /* @__PURE__ */ jsx30(
|
|
2432
2594
|
"span",
|
|
2433
2595
|
{
|
|
2434
2596
|
"aria-hidden": "true",
|
|
@@ -2448,7 +2610,7 @@ Switch.displayName = "Switch";
|
|
|
2448
2610
|
// src/components/separator/Separator.tsx
|
|
2449
2611
|
import * as React32 from "react";
|
|
2450
2612
|
import { cva as cva4 } from "class-variance-authority";
|
|
2451
|
-
import { jsx as
|
|
2613
|
+
import { jsx as jsx31 } from "react/jsx-runtime";
|
|
2452
2614
|
var separatorVariants = cva4("shrink-0 bg-border", {
|
|
2453
2615
|
variants: {
|
|
2454
2616
|
orientation: {
|
|
@@ -2461,13 +2623,13 @@ var separatorVariants = cva4("shrink-0 bg-border", {
|
|
|
2461
2623
|
}
|
|
2462
2624
|
});
|
|
2463
2625
|
var Separator = React32.forwardRef(
|
|
2464
|
-
({ className, orientation, label, ...props }, ref) => /* @__PURE__ */
|
|
2626
|
+
({ className, orientation, label, ...props }, ref) => /* @__PURE__ */ jsx31(
|
|
2465
2627
|
"div",
|
|
2466
2628
|
{
|
|
2467
2629
|
ref,
|
|
2468
2630
|
role: label ? "separator" : "none",
|
|
2469
2631
|
"aria-label": label,
|
|
2470
|
-
"aria-orientation": orientation === "vertical" ? "vertical" : void 0,
|
|
2632
|
+
"aria-orientation": label && orientation === "vertical" ? "vertical" : void 0,
|
|
2471
2633
|
className: cn(separatorVariants({ orientation }), className),
|
|
2472
2634
|
...props
|
|
2473
2635
|
}
|
|
@@ -2478,7 +2640,7 @@ var Divider = Separator;
|
|
|
2478
2640
|
|
|
2479
2641
|
// src/components/skeleton/Skeleton.tsx
|
|
2480
2642
|
import * as React33 from "react";
|
|
2481
|
-
import { jsx as
|
|
2643
|
+
import { jsx as jsx32, jsxs as jsxs21 } from "react/jsx-runtime";
|
|
2482
2644
|
var roundedClasses = {
|
|
2483
2645
|
none: "rounded-none",
|
|
2484
2646
|
sm: "rounded-sm",
|
|
@@ -2487,7 +2649,7 @@ var roundedClasses = {
|
|
|
2487
2649
|
full: "rounded-full"
|
|
2488
2650
|
};
|
|
2489
2651
|
var Skeleton = React33.forwardRef(
|
|
2490
|
-
({ className, height, width, rounded = "md", label, children, ...props }, ref) => /* @__PURE__ */
|
|
2652
|
+
({ className, height, width, rounded = "md", label, children, ...props }, ref) => /* @__PURE__ */ jsxs21(
|
|
2491
2653
|
"div",
|
|
2492
2654
|
{
|
|
2493
2655
|
ref,
|
|
@@ -2502,7 +2664,7 @@ var Skeleton = React33.forwardRef(
|
|
|
2502
2664
|
),
|
|
2503
2665
|
...props,
|
|
2504
2666
|
children: [
|
|
2505
|
-
label ? /* @__PURE__ */
|
|
2667
|
+
label ? /* @__PURE__ */ jsx32("span", { className: "sr-only", children: label }) : null,
|
|
2506
2668
|
children
|
|
2507
2669
|
]
|
|
2508
2670
|
}
|
|
@@ -2512,12 +2674,12 @@ Skeleton.displayName = "Skeleton";
|
|
|
2512
2674
|
|
|
2513
2675
|
// src/components/progress/Progress.tsx
|
|
2514
2676
|
import * as React34 from "react";
|
|
2515
|
-
import { jsx as
|
|
2677
|
+
import { jsx as jsx33 } from "react/jsx-runtime";
|
|
2516
2678
|
var Progress = React34.forwardRef(
|
|
2517
2679
|
({ className, value = 0, max = 100, label, indicatorClassName, indicatorStyle, ...props }, ref) => {
|
|
2518
2680
|
const clamped = Math.min(Math.max(value, 0), max);
|
|
2519
2681
|
const percent = max > 0 ? clamped / max * 100 : 0;
|
|
2520
|
-
return /* @__PURE__ */
|
|
2682
|
+
return /* @__PURE__ */ jsx33(
|
|
2521
2683
|
"div",
|
|
2522
2684
|
{
|
|
2523
2685
|
ref,
|
|
@@ -2528,7 +2690,7 @@ var Progress = React34.forwardRef(
|
|
|
2528
2690
|
"aria-label": label,
|
|
2529
2691
|
className: cn("relative h-2 w-full overflow-hidden rounded-full bg-muted", className),
|
|
2530
2692
|
...props,
|
|
2531
|
-
children: /* @__PURE__ */
|
|
2693
|
+
children: /* @__PURE__ */ jsx33(
|
|
2532
2694
|
"div",
|
|
2533
2695
|
{
|
|
2534
2696
|
className: cn(
|
|
@@ -2547,20 +2709,42 @@ Progress.displayName = "Progress";
|
|
|
2547
2709
|
// src/components/tabs/Tabs.tsx
|
|
2548
2710
|
import * as React35 from "react";
|
|
2549
2711
|
import { cva as cva5 } from "class-variance-authority";
|
|
2550
|
-
import { jsx as
|
|
2712
|
+
import { jsx as jsx34 } from "react/jsx-runtime";
|
|
2551
2713
|
var TabsContext = React35.createContext({
|
|
2552
2714
|
value: "",
|
|
2553
2715
|
setValue: () => {
|
|
2554
2716
|
},
|
|
2555
2717
|
baseId: "",
|
|
2556
2718
|
variant: "default",
|
|
2557
|
-
size: "md"
|
|
2719
|
+
size: "md",
|
|
2720
|
+
panels: /* @__PURE__ */ new Set(),
|
|
2721
|
+
registerPanel: () => {
|
|
2722
|
+
},
|
|
2723
|
+
unregisterPanel: () => {
|
|
2724
|
+
}
|
|
2558
2725
|
});
|
|
2559
2726
|
var Tabs = React35.forwardRef(
|
|
2560
2727
|
({ value, defaultValue, onValueChange, variant = "default", size = "md", className, children }, ref) => {
|
|
2561
2728
|
const [internalValue, setInternalValue] = React35.useState(defaultValue ?? "");
|
|
2562
2729
|
const current = value ?? internalValue;
|
|
2563
2730
|
const baseId = React35.useId();
|
|
2731
|
+
const [panels, setPanels] = React35.useState(() => /* @__PURE__ */ new Set());
|
|
2732
|
+
const registerPanel = React35.useCallback((panelValue) => {
|
|
2733
|
+
setPanels((previous) => {
|
|
2734
|
+
if (previous.has(panelValue)) return previous;
|
|
2735
|
+
const next = new Set(previous);
|
|
2736
|
+
next.add(panelValue);
|
|
2737
|
+
return next;
|
|
2738
|
+
});
|
|
2739
|
+
}, []);
|
|
2740
|
+
const unregisterPanel = React35.useCallback((panelValue) => {
|
|
2741
|
+
setPanels((previous) => {
|
|
2742
|
+
if (!previous.has(panelValue)) return previous;
|
|
2743
|
+
const next = new Set(previous);
|
|
2744
|
+
next.delete(panelValue);
|
|
2745
|
+
return next;
|
|
2746
|
+
});
|
|
2747
|
+
}, []);
|
|
2564
2748
|
const setValue = React35.useCallback(
|
|
2565
2749
|
(next) => {
|
|
2566
2750
|
if (value === void 0) setInternalValue(next);
|
|
@@ -2568,7 +2752,20 @@ var Tabs = React35.forwardRef(
|
|
|
2568
2752
|
},
|
|
2569
2753
|
[value, onValueChange]
|
|
2570
2754
|
);
|
|
2571
|
-
|
|
2755
|
+
const contextValue = React35.useMemo(
|
|
2756
|
+
() => ({
|
|
2757
|
+
value: current,
|
|
2758
|
+
setValue,
|
|
2759
|
+
baseId,
|
|
2760
|
+
variant,
|
|
2761
|
+
size,
|
|
2762
|
+
panels,
|
|
2763
|
+
registerPanel,
|
|
2764
|
+
unregisterPanel
|
|
2765
|
+
}),
|
|
2766
|
+
[current, setValue, baseId, variant, size, panels, registerPanel, unregisterPanel]
|
|
2767
|
+
);
|
|
2768
|
+
return /* @__PURE__ */ jsx34("div", { ref, className, "data-value": current, "data-variant": variant, children: /* @__PURE__ */ jsx34(TabsContext.Provider, { value: contextValue, children }) });
|
|
2572
2769
|
}
|
|
2573
2770
|
);
|
|
2574
2771
|
Tabs.displayName = "Tabs";
|
|
@@ -2593,7 +2790,7 @@ var tabsListVariants = cva5("inline-flex items-center justify-center text-muted-
|
|
|
2593
2790
|
var TabsList = React35.forwardRef(
|
|
2594
2791
|
({ className, ...props }, ref) => {
|
|
2595
2792
|
const ctx = React35.useContext(TabsContext);
|
|
2596
|
-
return /* @__PURE__ */
|
|
2793
|
+
return /* @__PURE__ */ jsx34(
|
|
2597
2794
|
"div",
|
|
2598
2795
|
{
|
|
2599
2796
|
ref,
|
|
@@ -2645,7 +2842,7 @@ var TabsTrigger = React35.forwardRef(
|
|
|
2645
2842
|
target.click();
|
|
2646
2843
|
};
|
|
2647
2844
|
const siblingTabs = (button) => Array.from(button.parentElement?.querySelectorAll('[role="tab"]') ?? []);
|
|
2648
|
-
return /* @__PURE__ */
|
|
2845
|
+
return /* @__PURE__ */ jsx34(
|
|
2649
2846
|
"button",
|
|
2650
2847
|
{
|
|
2651
2848
|
ref,
|
|
@@ -2653,7 +2850,7 @@ var TabsTrigger = React35.forwardRef(
|
|
|
2653
2850
|
role: "tab",
|
|
2654
2851
|
id: `${ctx.baseId}-tab-${value}`,
|
|
2655
2852
|
"aria-selected": active,
|
|
2656
|
-
"aria-controls": `${ctx.baseId}-panel-${value}
|
|
2853
|
+
"aria-controls": ctx.panels.has(value) ? `${ctx.baseId}-panel-${value}` : void 0,
|
|
2657
2854
|
"data-state": active ? "active" : "inactive",
|
|
2658
2855
|
tabIndex: active ? 0 : -1,
|
|
2659
2856
|
onClick: () => ctx.setValue(value),
|
|
@@ -2694,8 +2891,13 @@ TabsTrigger.displayName = "TabsTrigger";
|
|
|
2694
2891
|
var TabsContent = React35.forwardRef(
|
|
2695
2892
|
({ value, className, ...props }, ref) => {
|
|
2696
2893
|
const ctx = React35.useContext(TabsContext);
|
|
2894
|
+
const { registerPanel, unregisterPanel } = ctx;
|
|
2697
2895
|
const active = ctx.value === value;
|
|
2698
|
-
|
|
2896
|
+
React35.useEffect(() => {
|
|
2897
|
+
registerPanel(value);
|
|
2898
|
+
return () => unregisterPanel(value);
|
|
2899
|
+
}, [registerPanel, unregisterPanel, value]);
|
|
2900
|
+
return /* @__PURE__ */ jsx34(
|
|
2699
2901
|
"div",
|
|
2700
2902
|
{
|
|
2701
2903
|
ref,
|
|
@@ -2719,7 +2921,7 @@ TabsContent.displayName = "TabsContent";
|
|
|
2719
2921
|
// src/components/link-tabs/LinkTabs.tsx
|
|
2720
2922
|
import * as React36 from "react";
|
|
2721
2923
|
import { cva as cva6 } from "class-variance-authority";
|
|
2722
|
-
import { Fragment as
|
|
2924
|
+
import { Fragment as Fragment7, jsx as jsx35, jsxs as jsxs22 } from "react/jsx-runtime";
|
|
2723
2925
|
var listVariants = cva6("inline-flex items-center", {
|
|
2724
2926
|
variants: {
|
|
2725
2927
|
variant: {
|
|
@@ -2771,14 +2973,14 @@ var LinkTabs = React36.forwardRef(function LinkTabs2({
|
|
|
2771
2973
|
...props
|
|
2772
2974
|
}, ref) {
|
|
2773
2975
|
const Link3 = linkComponent ?? "a";
|
|
2774
|
-
return /* @__PURE__ */
|
|
2976
|
+
return /* @__PURE__ */ jsx35("nav", { ref, "aria-label": label, className: cn(listVariants({ variant, size }), className), ...props, children: items.map((item) => {
|
|
2775
2977
|
const active = isActive(item, activeHref);
|
|
2776
|
-
const content = /* @__PURE__ */
|
|
2978
|
+
const content = /* @__PURE__ */ jsxs22(Fragment7, { children: [
|
|
2777
2979
|
item.icon,
|
|
2778
2980
|
item.label
|
|
2779
2981
|
] });
|
|
2780
2982
|
if (item.disabled) {
|
|
2781
|
-
return /* @__PURE__ */
|
|
2983
|
+
return /* @__PURE__ */ jsx35(
|
|
2782
2984
|
"span",
|
|
2783
2985
|
{
|
|
2784
2986
|
"aria-disabled": "true",
|
|
@@ -2789,7 +2991,7 @@ var LinkTabs = React36.forwardRef(function LinkTabs2({
|
|
|
2789
2991
|
item.href
|
|
2790
2992
|
);
|
|
2791
2993
|
}
|
|
2792
|
-
return /* @__PURE__ */
|
|
2994
|
+
return /* @__PURE__ */ jsx35(
|
|
2793
2995
|
Link3,
|
|
2794
2996
|
{
|
|
2795
2997
|
...linkHrefProp === "to" ? { to: item.href } : { href: item.href },
|
|
@@ -2806,11 +3008,11 @@ LinkTabs.displayName = "LinkTabs";
|
|
|
2806
3008
|
|
|
2807
3009
|
// src/components/theme-toggle/ThemeToggle.tsx
|
|
2808
3010
|
import * as React37 from "react";
|
|
2809
|
-
import { jsx as
|
|
3011
|
+
import { jsx as jsx36, jsxs as jsxs23 } from "react/jsx-runtime";
|
|
2810
3012
|
var ThemeToggle = React37.forwardRef(function ThemeToggle2({ theme, onThemeChange, labels, size = "md", className, ...props }, ref) {
|
|
2811
3013
|
const next = theme === "dark" ? "light" : "dark";
|
|
2812
3014
|
const label = next === "dark" ? labels?.toDark ?? "Switch to dark theme" : labels?.toLight ?? "Switch to light theme";
|
|
2813
|
-
return /* @__PURE__ */
|
|
3015
|
+
return /* @__PURE__ */ jsx36(
|
|
2814
3016
|
"button",
|
|
2815
3017
|
{
|
|
2816
3018
|
ref,
|
|
@@ -2826,7 +3028,7 @@ var ThemeToggle = React37.forwardRef(function ThemeToggle2({ theme, onThemeChang
|
|
|
2826
3028
|
className
|
|
2827
3029
|
),
|
|
2828
3030
|
...props,
|
|
2829
|
-
children: theme === "dark" ? /* @__PURE__ */
|
|
3031
|
+
children: theme === "dark" ? /* @__PURE__ */ jsxs23(
|
|
2830
3032
|
"svg",
|
|
2831
3033
|
{
|
|
2832
3034
|
viewBox: "0 0 24 24",
|
|
@@ -2838,11 +3040,11 @@ var ThemeToggle = React37.forwardRef(function ThemeToggle2({ theme, onThemeChang
|
|
|
2838
3040
|
strokeLinejoin: "round",
|
|
2839
3041
|
"aria-hidden": "true",
|
|
2840
3042
|
children: [
|
|
2841
|
-
/* @__PURE__ */
|
|
2842
|
-
/* @__PURE__ */
|
|
3043
|
+
/* @__PURE__ */ jsx36("circle", { cx: "12", cy: "12", r: "4" }),
|
|
3044
|
+
/* @__PURE__ */ jsx36("path", { d: "M12 2v2M12 20v2M4.93 4.93l1.41 1.41M17.66 17.66l1.41 1.41M2 12h2M20 12h2M6.34 17.66l-1.41 1.41M19.07 4.93l-1.41 1.41" })
|
|
2843
3045
|
]
|
|
2844
3046
|
}
|
|
2845
|
-
) : /* @__PURE__ */
|
|
3047
|
+
) : /* @__PURE__ */ jsx36(
|
|
2846
3048
|
"svg",
|
|
2847
3049
|
{
|
|
2848
3050
|
viewBox: "0 0 24 24",
|
|
@@ -2853,7 +3055,7 @@ var ThemeToggle = React37.forwardRef(function ThemeToggle2({ theme, onThemeChang
|
|
|
2853
3055
|
strokeLinecap: "round",
|
|
2854
3056
|
strokeLinejoin: "round",
|
|
2855
3057
|
"aria-hidden": "true",
|
|
2856
|
-
children: /* @__PURE__ */
|
|
3058
|
+
children: /* @__PURE__ */ jsx36("path", { d: "M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79Z" })
|
|
2857
3059
|
}
|
|
2858
3060
|
)
|
|
2859
3061
|
}
|
|
@@ -2864,11 +3066,11 @@ ThemeToggle.displayName = "ThemeToggle";
|
|
|
2864
3066
|
// src/components/card/Card.tsx
|
|
2865
3067
|
import * as React38 from "react";
|
|
2866
3068
|
import { Slot as Slot3 } from "@radix-ui/react-slot";
|
|
2867
|
-
import { jsx as
|
|
3069
|
+
import { jsx as jsx37 } from "react/jsx-runtime";
|
|
2868
3070
|
var Card = React38.forwardRef(
|
|
2869
3071
|
({ className, asChild = false, ...props }, ref) => {
|
|
2870
3072
|
const Comp = asChild ? Slot3 : "div";
|
|
2871
|
-
return /* @__PURE__ */
|
|
3073
|
+
return /* @__PURE__ */ jsx37(
|
|
2872
3074
|
Comp,
|
|
2873
3075
|
{
|
|
2874
3076
|
ref,
|
|
@@ -2880,11 +3082,11 @@ var Card = React38.forwardRef(
|
|
|
2880
3082
|
);
|
|
2881
3083
|
Card.displayName = "Card";
|
|
2882
3084
|
var CardHeader = React38.forwardRef(
|
|
2883
|
-
({ className, ...props }, ref) => /* @__PURE__ */
|
|
3085
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx37("div", { ref, className: cn("flex flex-col space-y-1.5 p-6", className), ...props })
|
|
2884
3086
|
);
|
|
2885
3087
|
CardHeader.displayName = "CardHeader";
|
|
2886
3088
|
var CardTitle = React38.forwardRef(
|
|
2887
|
-
({ className, ...props }, ref) => /* @__PURE__ */
|
|
3089
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx37(
|
|
2888
3090
|
"h3",
|
|
2889
3091
|
{
|
|
2890
3092
|
ref,
|
|
@@ -2895,21 +3097,21 @@ var CardTitle = React38.forwardRef(
|
|
|
2895
3097
|
);
|
|
2896
3098
|
CardTitle.displayName = "CardTitle";
|
|
2897
3099
|
var CardDescription = React38.forwardRef(
|
|
2898
|
-
({ className, ...props }, ref) => /* @__PURE__ */
|
|
3100
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx37("p", { ref, className: cn("text-sm text-muted-foreground", className), ...props })
|
|
2899
3101
|
);
|
|
2900
3102
|
CardDescription.displayName = "CardDescription";
|
|
2901
3103
|
var CardContent = React38.forwardRef(
|
|
2902
|
-
({ className, ...props }, ref) => /* @__PURE__ */
|
|
3104
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx37("div", { ref, className: cn("p-6 pt-0", className), ...props })
|
|
2903
3105
|
);
|
|
2904
3106
|
CardContent.displayName = "CardContent";
|
|
2905
3107
|
var CardFooter = React38.forwardRef(
|
|
2906
|
-
({ className, ...props }, ref) => /* @__PURE__ */
|
|
3108
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx37("div", { ref, className: cn("flex items-center p-6 pt-0", className), ...props })
|
|
2907
3109
|
);
|
|
2908
3110
|
CardFooter.displayName = "CardFooter";
|
|
2909
3111
|
|
|
2910
3112
|
// src/components/confirm-dialog/ConfirmDialog.tsx
|
|
2911
3113
|
import * as React39 from "react";
|
|
2912
|
-
import { jsx as
|
|
3114
|
+
import { jsx as jsx38, jsxs as jsxs24 } from "react/jsx-runtime";
|
|
2913
3115
|
function ConfirmDialog({
|
|
2914
3116
|
open,
|
|
2915
3117
|
onOpenChange,
|
|
@@ -2932,7 +3134,7 @@ function ConfirmDialog({
|
|
|
2932
3134
|
setPending(false);
|
|
2933
3135
|
}
|
|
2934
3136
|
};
|
|
2935
|
-
return /* @__PURE__ */
|
|
3137
|
+
return /* @__PURE__ */ jsx38(
|
|
2936
3138
|
Dialog,
|
|
2937
3139
|
{
|
|
2938
3140
|
open,
|
|
@@ -2943,9 +3145,9 @@ function ConfirmDialog({
|
|
|
2943
3145
|
title,
|
|
2944
3146
|
description,
|
|
2945
3147
|
size: "sm",
|
|
2946
|
-
footer: /* @__PURE__ */
|
|
2947
|
-
/* @__PURE__ */
|
|
2948
|
-
/* @__PURE__ */
|
|
3148
|
+
footer: /* @__PURE__ */ jsxs24(DialogFooter, { children: [
|
|
3149
|
+
/* @__PURE__ */ jsx38(Button, { variant: "ghost", onClick: () => onOpenChange(false), disabled: pending, children: cancelLabel }),
|
|
3150
|
+
/* @__PURE__ */ jsx38(
|
|
2949
3151
|
Button,
|
|
2950
3152
|
{
|
|
2951
3153
|
variant: destructive ? "destructive" : "default",
|
|
@@ -2962,7 +3164,7 @@ function ConfirmDialog({
|
|
|
2962
3164
|
|
|
2963
3165
|
// src/components/table-of-contents/TableOfContents.tsx
|
|
2964
3166
|
import * as React40 from "react";
|
|
2965
|
-
import { jsx as
|
|
3167
|
+
import { jsx as jsx39, jsxs as jsxs25 } from "react/jsx-runtime";
|
|
2966
3168
|
function TableOfContents({
|
|
2967
3169
|
headings,
|
|
2968
3170
|
activeId,
|
|
@@ -2970,24 +3172,26 @@ function TableOfContents({
|
|
|
2970
3172
|
ariaLabel,
|
|
2971
3173
|
labelClassName,
|
|
2972
3174
|
sticky = true,
|
|
3175
|
+
onNavigate,
|
|
2973
3176
|
className,
|
|
2974
3177
|
...props
|
|
2975
3178
|
}) {
|
|
2976
|
-
return /* @__PURE__ */
|
|
3179
|
+
return /* @__PURE__ */ jsxs25(
|
|
2977
3180
|
"nav",
|
|
2978
3181
|
{
|
|
2979
3182
|
"aria-label": ariaLabel ?? label,
|
|
2980
3183
|
className: cn("text-sm", sticky && "sticky top-20 max-h-[calc(100vh-6rem)] overflow-y-auto", className),
|
|
2981
3184
|
...props,
|
|
2982
3185
|
children: [
|
|
2983
|
-
/* @__PURE__ */
|
|
2984
|
-
/* @__PURE__ */
|
|
3186
|
+
/* @__PURE__ */ jsx39("p", { className: cn("mb-2 text-xs font-semibold uppercase tracking-wide text-muted-foreground", labelClassName), children: label }),
|
|
3187
|
+
/* @__PURE__ */ jsx39("ul", { className: "space-y-1 border-l border-border", children: headings.map((heading) => {
|
|
2985
3188
|
const active = heading.id === activeId;
|
|
2986
|
-
return /* @__PURE__ */
|
|
3189
|
+
return /* @__PURE__ */ jsx39("li", { style: { paddingLeft: `${(heading.level - 2) * 0.75}rem` }, children: /* @__PURE__ */ jsx39(
|
|
2987
3190
|
"a",
|
|
2988
3191
|
{
|
|
2989
3192
|
href: `#${heading.id}`,
|
|
2990
3193
|
"aria-current": active ? "location" : void 0,
|
|
3194
|
+
onClick: () => onNavigate?.(heading.id),
|
|
2991
3195
|
className: cn(
|
|
2992
3196
|
"-ml-px block border-l py-1 pl-3 no-underline transition-colors",
|
|
2993
3197
|
active ? "border-primary font-medium text-primary underline" : "border-transparent text-muted-foreground hover:border-border hover:text-foreground"
|
|
@@ -3019,19 +3223,30 @@ function useScrollSpy(ids, options) {
|
|
|
3019
3223
|
elements.forEach((element) => observer.observe(element));
|
|
3020
3224
|
return () => observer.disconnect();
|
|
3021
3225
|
}, [idKey, rootMargin]);
|
|
3226
|
+
React40.useEffect(() => {
|
|
3227
|
+
if (typeof window === "undefined") return;
|
|
3228
|
+
const ids2 = idKey.split("|").filter(Boolean);
|
|
3229
|
+
const syncFromHash = () => {
|
|
3230
|
+
const id = window.location.hash.replace(/^#/, "");
|
|
3231
|
+
if (id && ids2.includes(id)) setActiveId(id);
|
|
3232
|
+
};
|
|
3233
|
+
syncFromHash();
|
|
3234
|
+
window.addEventListener("hashchange", syncFromHash);
|
|
3235
|
+
return () => window.removeEventListener("hashchange", syncFromHash);
|
|
3236
|
+
}, [idKey]);
|
|
3022
3237
|
return activeId;
|
|
3023
3238
|
}
|
|
3024
3239
|
|
|
3025
3240
|
// src/components/prose/Prose.tsx
|
|
3026
3241
|
import * as React41 from "react";
|
|
3027
|
-
import { jsx as
|
|
3242
|
+
import { jsx as jsx40 } from "react/jsx-runtime";
|
|
3028
3243
|
var sizeClasses3 = {
|
|
3029
3244
|
sm: "text-sm [&_h2]:text-xl [&_h3]:text-lg",
|
|
3030
3245
|
md: "text-base [&_h2]:text-2xl [&_h3]:text-xl",
|
|
3031
3246
|
lg: "text-lg [&_h2]:text-3xl [&_h3]:text-2xl"
|
|
3032
3247
|
};
|
|
3033
3248
|
var Prose = React41.forwardRef(function Prose2({ size = "md", className, ...props }, ref) {
|
|
3034
|
-
return /* @__PURE__ */
|
|
3249
|
+
return /* @__PURE__ */ jsx40(
|
|
3035
3250
|
"div",
|
|
3036
3251
|
{
|
|
3037
3252
|
ref,
|
|
@@ -3070,7 +3285,7 @@ var Prose = React41.forwardRef(function Prose2({ size = "md", className, ...prop
|
|
|
3070
3285
|
});
|
|
3071
3286
|
|
|
3072
3287
|
// src/components/site-footer/SiteFooter.tsx
|
|
3073
|
-
import { jsx as
|
|
3288
|
+
import { jsx as jsx41, jsxs as jsxs26 } from "react/jsx-runtime";
|
|
3074
3289
|
function isActive2(itemHref, activeHref, match) {
|
|
3075
3290
|
if (!activeHref) return false;
|
|
3076
3291
|
if (itemHref === activeHref) return true;
|
|
@@ -3091,17 +3306,17 @@ function SiteFooter({
|
|
|
3091
3306
|
}) {
|
|
3092
3307
|
const Link3 = linkComponent ?? "a";
|
|
3093
3308
|
const destination = (href) => linkHrefProp === "to" ? { to: href } : { href };
|
|
3094
|
-
return /* @__PURE__ */
|
|
3095
|
-
/* @__PURE__ */
|
|
3096
|
-
/* @__PURE__ */
|
|
3309
|
+
return /* @__PURE__ */ jsxs26("footer", { className: cn("border-t border-border bg-muted/30", className), ...props, children: [
|
|
3310
|
+
/* @__PURE__ */ jsxs26("div", { className: "mx-auto grid w-full max-w-7xl gap-8 px-4 py-12 sm:grid-cols-2 sm:px-6 lg:grid-cols-4", children: [
|
|
3311
|
+
/* @__PURE__ */ jsxs26("div", { className: "min-w-0", children: [
|
|
3097
3312
|
brand,
|
|
3098
|
-
tagline && /* @__PURE__ */
|
|
3313
|
+
tagline && /* @__PURE__ */ jsx41("p", { className: "mt-3 max-w-56 text-sm text-muted-foreground", children: tagline })
|
|
3099
3314
|
] }),
|
|
3100
|
-
columns.map((column) => /* @__PURE__ */
|
|
3101
|
-
/* @__PURE__ */
|
|
3102
|
-
/* @__PURE__ */
|
|
3315
|
+
columns.map((column) => /* @__PURE__ */ jsxs26("div", { children: [
|
|
3316
|
+
/* @__PURE__ */ jsx41("h2", { className: "mb-3 text-xs font-semibold uppercase tracking-wider text-muted-foreground", children: column.title }),
|
|
3317
|
+
/* @__PURE__ */ jsx41("ul", { className: "m-0 list-none space-y-2 p-0 text-sm", children: column.links.map((link) => {
|
|
3103
3318
|
const active = isActive2(link.href, activeHref, match);
|
|
3104
|
-
return /* @__PURE__ */
|
|
3319
|
+
return /* @__PURE__ */ jsx41("li", { children: /* @__PURE__ */ jsx41(
|
|
3105
3320
|
Link3,
|
|
3106
3321
|
{
|
|
3107
3322
|
...destination(link.href),
|
|
@@ -3117,13 +3332,13 @@ function SiteFooter({
|
|
|
3117
3332
|
}) })
|
|
3118
3333
|
] }, column.title))
|
|
3119
3334
|
] }),
|
|
3120
|
-
legal && /* @__PURE__ */
|
|
3335
|
+
legal && /* @__PURE__ */ jsx41("div", { className: "border-t border-border", children: /* @__PURE__ */ jsx41("div", { className: "mx-auto flex w-full max-w-7xl flex-wrap items-center justify-between gap-2 px-4 py-4 text-xs text-muted-foreground sm:px-6", children: legal }) })
|
|
3121
3336
|
] });
|
|
3122
3337
|
}
|
|
3123
3338
|
|
|
3124
3339
|
// src/components/site-header/SiteHeader.tsx
|
|
3125
3340
|
import * as React42 from "react";
|
|
3126
|
-
import { Fragment as
|
|
3341
|
+
import { Fragment as Fragment8, jsx as jsx42, jsxs as jsxs27 } from "react/jsx-runtime";
|
|
3127
3342
|
function isActive3(itemHref, activeHref, match) {
|
|
3128
3343
|
if (!activeHref) return false;
|
|
3129
3344
|
if (itemHref === activeHref) return true;
|
|
@@ -3157,7 +3372,7 @@ function SiteHeader({
|
|
|
3157
3372
|
const destination = (href) => linkHrefProp === "to" ? { to: href } : { href };
|
|
3158
3373
|
const navLink = (item, extra) => {
|
|
3159
3374
|
const active = isActive3(item.href, activeHref, match);
|
|
3160
|
-
return /* @__PURE__ */
|
|
3375
|
+
return /* @__PURE__ */ jsx42(
|
|
3161
3376
|
Link3,
|
|
3162
3377
|
{
|
|
3163
3378
|
...destination(item.href),
|
|
@@ -3174,8 +3389,8 @@ function SiteHeader({
|
|
|
3174
3389
|
item.href
|
|
3175
3390
|
);
|
|
3176
3391
|
};
|
|
3177
|
-
return /* @__PURE__ */
|
|
3178
|
-
/* @__PURE__ */
|
|
3392
|
+
return /* @__PURE__ */ jsxs27(Fragment8, { children: [
|
|
3393
|
+
/* @__PURE__ */ jsx42(
|
|
3179
3394
|
"header",
|
|
3180
3395
|
{
|
|
3181
3396
|
className: cn(
|
|
@@ -3184,14 +3399,14 @@ function SiteHeader({
|
|
|
3184
3399
|
className
|
|
3185
3400
|
),
|
|
3186
3401
|
...props,
|
|
3187
|
-
children: /* @__PURE__ */
|
|
3402
|
+
children: /* @__PURE__ */ jsxs27(
|
|
3188
3403
|
"nav",
|
|
3189
3404
|
{
|
|
3190
3405
|
"aria-label": navLabel,
|
|
3191
3406
|
className: cn("mx-auto flex h-14 w-full max-w-7xl items-center justify-between gap-4 px-4 sm:px-6", navClassName),
|
|
3192
3407
|
children: [
|
|
3193
|
-
/* @__PURE__ */
|
|
3194
|
-
/* @__PURE__ */
|
|
3408
|
+
/* @__PURE__ */ jsxs27("div", { className: "flex min-w-0 items-center gap-6", children: [
|
|
3409
|
+
/* @__PURE__ */ jsx42(
|
|
3195
3410
|
Link3,
|
|
3196
3411
|
{
|
|
3197
3412
|
...destination("/"),
|
|
@@ -3200,11 +3415,11 @@ function SiteHeader({
|
|
|
3200
3415
|
children: brand
|
|
3201
3416
|
}
|
|
3202
3417
|
),
|
|
3203
|
-
/* @__PURE__ */
|
|
3418
|
+
/* @__PURE__ */ jsx42("div", { className: cn("hidden items-center gap-5", desktopBreakpoint === "lg" ? "lg:flex" : "md:flex"), children: items.map((item) => navLink(item)) })
|
|
3204
3419
|
] }),
|
|
3205
|
-
/* @__PURE__ */
|
|
3420
|
+
/* @__PURE__ */ jsxs27("div", { className: "flex items-center gap-2", children: [
|
|
3206
3421
|
actions,
|
|
3207
|
-
showMobileTrigger && /* @__PURE__ */
|
|
3422
|
+
showMobileTrigger && /* @__PURE__ */ jsx42(
|
|
3208
3423
|
"button",
|
|
3209
3424
|
{
|
|
3210
3425
|
type: "button",
|
|
@@ -3217,7 +3432,7 @@ function SiteHeader({
|
|
|
3217
3432
|
"rounded-md border border-border p-2 text-muted-foreground hover:bg-muted focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
3218
3433
|
desktopBreakpoint === "lg" ? "lg:hidden" : "md:hidden"
|
|
3219
3434
|
),
|
|
3220
|
-
children: /* @__PURE__ */
|
|
3435
|
+
children: /* @__PURE__ */ jsx42(
|
|
3221
3436
|
"svg",
|
|
3222
3437
|
{
|
|
3223
3438
|
"aria-hidden": "true",
|
|
@@ -3227,7 +3442,7 @@ function SiteHeader({
|
|
|
3227
3442
|
stroke: "currentColor",
|
|
3228
3443
|
strokeWidth: "2",
|
|
3229
3444
|
strokeLinecap: "round",
|
|
3230
|
-
children: mobileOpen ? /* @__PURE__ */
|
|
3445
|
+
children: mobileOpen ? /* @__PURE__ */ jsx42("path", { d: "M6 6l12 12M18 6L6 18" }) : /* @__PURE__ */ jsx42("path", { d: "M4 7h16M4 12h16M4 17h16" })
|
|
3231
3446
|
}
|
|
3232
3447
|
)
|
|
3233
3448
|
}
|
|
@@ -3238,7 +3453,7 @@ function SiteHeader({
|
|
|
3238
3453
|
)
|
|
3239
3454
|
}
|
|
3240
3455
|
),
|
|
3241
|
-
showMobileTrigger && /* @__PURE__ */
|
|
3456
|
+
showMobileTrigger && /* @__PURE__ */ jsxs27(
|
|
3242
3457
|
Drawer,
|
|
3243
3458
|
{
|
|
3244
3459
|
open: mobileOpen,
|
|
@@ -3248,8 +3463,8 @@ function SiteHeader({
|
|
|
3248
3463
|
size: "sm",
|
|
3249
3464
|
animate: true,
|
|
3250
3465
|
children: [
|
|
3251
|
-
/* @__PURE__ */
|
|
3252
|
-
(mobileActions ?? actions) && /* @__PURE__ */
|
|
3466
|
+
/* @__PURE__ */ jsx42("nav", { id: menuId, "aria-label": mobileNavLabel, className: "flex flex-col gap-1", children: items.map((item) => navLink(item, "mobile")) }),
|
|
3467
|
+
(mobileActions ?? actions) && /* @__PURE__ */ jsx42("div", { className: "mt-4 border-t border-border pt-4", children: mobileActions ?? actions })
|
|
3253
3468
|
]
|
|
3254
3469
|
}
|
|
3255
3470
|
)
|
|
@@ -3258,7 +3473,7 @@ function SiteHeader({
|
|
|
3258
3473
|
|
|
3259
3474
|
// src/components/accordion/Accordion.tsx
|
|
3260
3475
|
import * as React43 from "react";
|
|
3261
|
-
import { jsx as
|
|
3476
|
+
import { jsx as jsx43, jsxs as jsxs28 } from "react/jsx-runtime";
|
|
3262
3477
|
var AccordionContext = React43.createContext({
|
|
3263
3478
|
openItems: /* @__PURE__ */ new Set(),
|
|
3264
3479
|
toggle: () => {
|
|
@@ -3273,6 +3488,7 @@ var Accordion = React43.forwardRef(
|
|
|
3273
3488
|
collapsible = true,
|
|
3274
3489
|
variant = "default",
|
|
3275
3490
|
gap,
|
|
3491
|
+
items,
|
|
3276
3492
|
className,
|
|
3277
3493
|
style,
|
|
3278
3494
|
children
|
|
@@ -3288,7 +3504,7 @@ var Accordion = React43.forwardRef(
|
|
|
3288
3504
|
[current, collapsible, value, onValueChange]
|
|
3289
3505
|
);
|
|
3290
3506
|
const gapResolved = resolveGap(gap);
|
|
3291
|
-
return /* @__PURE__ */
|
|
3507
|
+
return /* @__PURE__ */ jsx43(
|
|
3292
3508
|
"div",
|
|
3293
3509
|
{
|
|
3294
3510
|
ref,
|
|
@@ -3301,14 +3517,17 @@ var Accordion = React43.forwardRef(
|
|
|
3301
3517
|
className
|
|
3302
3518
|
),
|
|
3303
3519
|
style: { ...gapResolved.style, ...style },
|
|
3304
|
-
children: /* @__PURE__ */
|
|
3520
|
+
children: /* @__PURE__ */ jsx43(AccordionContext.Provider, { value: { openItems: new Set(current), toggle, collapsible }, children: items ? items.map((item) => /* @__PURE__ */ jsxs28(AccordionItem, { id: item.id, children: [
|
|
3521
|
+
/* @__PURE__ */ jsx43(AccordionTrigger, { disabled: item.disabled, children: item.title }),
|
|
3522
|
+
/* @__PURE__ */ jsx43(AccordionContent, { children: item.content })
|
|
3523
|
+
] }, item.id)) : children })
|
|
3305
3524
|
}
|
|
3306
3525
|
);
|
|
3307
3526
|
}
|
|
3308
3527
|
);
|
|
3309
3528
|
Accordion.displayName = "Accordion";
|
|
3310
3529
|
var AccordionItem = React43.forwardRef(
|
|
3311
|
-
({ id, className, children }, ref) => /* @__PURE__ */
|
|
3530
|
+
({ id, className, children }, ref) => /* @__PURE__ */ jsx43("div", { ref, "data-accordion-item": id, className, children: /* @__PURE__ */ jsx43(AccordionItemContext.Provider, { value: { id }, children }) })
|
|
3312
3531
|
);
|
|
3313
3532
|
AccordionItem.displayName = "AccordionItem";
|
|
3314
3533
|
var AccordionItemContext = React43.createContext({ id: "" });
|
|
@@ -3319,7 +3538,7 @@ var AccordionTrigger = React43.forwardRef(
|
|
|
3319
3538
|
const open = openItems.has(id);
|
|
3320
3539
|
const panelId = `${id}-panel`;
|
|
3321
3540
|
const triggerId = `${id}-trigger`;
|
|
3322
|
-
return /* @__PURE__ */
|
|
3541
|
+
return /* @__PURE__ */ jsxs28(
|
|
3323
3542
|
"button",
|
|
3324
3543
|
{
|
|
3325
3544
|
ref,
|
|
@@ -3338,7 +3557,7 @@ var AccordionTrigger = React43.forwardRef(
|
|
|
3338
3557
|
...props,
|
|
3339
3558
|
children: [
|
|
3340
3559
|
children,
|
|
3341
|
-
icon ?? /* @__PURE__ */
|
|
3560
|
+
icon ?? /* @__PURE__ */ jsx43(
|
|
3342
3561
|
"svg",
|
|
3343
3562
|
{
|
|
3344
3563
|
"aria-hidden": "true",
|
|
@@ -3348,7 +3567,7 @@ var AccordionTrigger = React43.forwardRef(
|
|
|
3348
3567
|
strokeWidth: "2",
|
|
3349
3568
|
strokeLinecap: "round",
|
|
3350
3569
|
className: cn("h-4 w-4 shrink-0 transition-transform duration-200", open && "rotate-180"),
|
|
3351
|
-
children: /* @__PURE__ */
|
|
3570
|
+
children: /* @__PURE__ */ jsx43("polyline", { points: "6 9 12 15 18 9" })
|
|
3352
3571
|
}
|
|
3353
3572
|
)
|
|
3354
3573
|
]
|
|
@@ -3382,7 +3601,7 @@ var AccordionContent = React43.forwardRef(
|
|
|
3382
3601
|
cancelAnimationFrame(second);
|
|
3383
3602
|
};
|
|
3384
3603
|
}, [open]);
|
|
3385
|
-
return /* @__PURE__ */
|
|
3604
|
+
return /* @__PURE__ */ jsx43(
|
|
3386
3605
|
"div",
|
|
3387
3606
|
{
|
|
3388
3607
|
ref,
|
|
@@ -3401,7 +3620,7 @@ var AccordionContent = React43.forwardRef(
|
|
|
3401
3620
|
className
|
|
3402
3621
|
),
|
|
3403
3622
|
...props,
|
|
3404
|
-
children: /* @__PURE__ */
|
|
3623
|
+
children: /* @__PURE__ */ jsx43("div", { className: "overflow-hidden", children: /* @__PURE__ */ jsx43("div", { className: "px-4 pb-3 text-sm text-muted-foreground", children }) })
|
|
3405
3624
|
}
|
|
3406
3625
|
);
|
|
3407
3626
|
}
|
|
@@ -3410,9 +3629,9 @@ AccordionContent.displayName = "AccordionContent";
|
|
|
3410
3629
|
|
|
3411
3630
|
// src/components/table/Table.tsx
|
|
3412
3631
|
import * as React44 from "react";
|
|
3413
|
-
import { jsx as
|
|
3632
|
+
import { jsx as jsx44 } from "react/jsx-runtime";
|
|
3414
3633
|
var Table = React44.forwardRef(
|
|
3415
|
-
({ className, ...props }, ref) => /* @__PURE__ */
|
|
3634
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx44("div", { className: "relative w-full overflow-auto", children: /* @__PURE__ */ jsx44(
|
|
3416
3635
|
"table",
|
|
3417
3636
|
{
|
|
3418
3637
|
ref,
|
|
@@ -3423,15 +3642,15 @@ var Table = React44.forwardRef(
|
|
|
3423
3642
|
);
|
|
3424
3643
|
Table.displayName = "Table";
|
|
3425
3644
|
var TableHeader = React44.forwardRef(
|
|
3426
|
-
({ className, ...props }, ref) => /* @__PURE__ */
|
|
3645
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx44("thead", { ref, className: cn("[&_tr]:border-b", className), ...props })
|
|
3427
3646
|
);
|
|
3428
3647
|
TableHeader.displayName = "TableHeader";
|
|
3429
3648
|
var TableBody = React44.forwardRef(
|
|
3430
|
-
({ className, ...props }, ref) => /* @__PURE__ */
|
|
3649
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx44("tbody", { ref, className: cn("[&_tr:last-child]:border-0", className), ...props })
|
|
3431
3650
|
);
|
|
3432
3651
|
TableBody.displayName = "TableBody";
|
|
3433
3652
|
var TableFooter = React44.forwardRef(
|
|
3434
|
-
({ className, ...props }, ref) => /* @__PURE__ */
|
|
3653
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx44(
|
|
3435
3654
|
"tfoot",
|
|
3436
3655
|
{
|
|
3437
3656
|
ref,
|
|
@@ -3442,7 +3661,7 @@ var TableFooter = React44.forwardRef(
|
|
|
3442
3661
|
);
|
|
3443
3662
|
TableFooter.displayName = "TableFooter";
|
|
3444
3663
|
var TableRow = React44.forwardRef(
|
|
3445
|
-
({ className, ...props }, ref) => /* @__PURE__ */
|
|
3664
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx44(
|
|
3446
3665
|
"tr",
|
|
3447
3666
|
{
|
|
3448
3667
|
ref,
|
|
@@ -3456,7 +3675,7 @@ var TableRow = React44.forwardRef(
|
|
|
3456
3675
|
);
|
|
3457
3676
|
TableRow.displayName = "TableRow";
|
|
3458
3677
|
var TableHead = React44.forwardRef(
|
|
3459
|
-
({ className, ...props }, ref) => /* @__PURE__ */
|
|
3678
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx44(
|
|
3460
3679
|
"th",
|
|
3461
3680
|
{
|
|
3462
3681
|
ref,
|
|
@@ -3471,11 +3690,11 @@ var TableHead = React44.forwardRef(
|
|
|
3471
3690
|
);
|
|
3472
3691
|
TableHead.displayName = "TableHead";
|
|
3473
3692
|
var TableCell = React44.forwardRef(
|
|
3474
|
-
({ className, ...props }, ref) => /* @__PURE__ */
|
|
3693
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx44("td", { ref, className: cn("px-3 py-2 align-middle", className), ...props })
|
|
3475
3694
|
);
|
|
3476
3695
|
TableCell.displayName = "TableCell";
|
|
3477
3696
|
var TableCaption = React44.forwardRef(
|
|
3478
|
-
({ className, ...props }, ref) => /* @__PURE__ */
|
|
3697
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx44("caption", { ref, className: cn("mt-3 text-xs text-muted-foreground", className), ...props })
|
|
3479
3698
|
);
|
|
3480
3699
|
TableCaption.displayName = "TableCaption";
|
|
3481
3700
|
|
|
@@ -3484,7 +3703,7 @@ import * as React46 from "react";
|
|
|
3484
3703
|
|
|
3485
3704
|
// src/components/pagination/Pagination.tsx
|
|
3486
3705
|
import * as React45 from "react";
|
|
3487
|
-
import { jsx as
|
|
3706
|
+
import { jsx as jsx45, jsxs as jsxs29 } from "react/jsx-runtime";
|
|
3488
3707
|
var controlClass = "inline-flex h-8 items-center rounded-md border border-border px-2.5 text-sm transition-colors hover:bg-muted focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50";
|
|
3489
3708
|
var controlDisabledClass = "pointer-events-none opacity-50";
|
|
3490
3709
|
var pageClass = "inline-flex h-8 w-8 items-center justify-center rounded-md border text-sm transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring";
|
|
@@ -3537,11 +3756,11 @@ var Pagination = React45.forwardRef(
|
|
|
3537
3756
|
if (linkMode) {
|
|
3538
3757
|
const href = hrefFor(target);
|
|
3539
3758
|
if (disabled || href === void 0) {
|
|
3540
|
-
return /* @__PURE__ */
|
|
3759
|
+
return /* @__PURE__ */ jsx45("span", { "aria-label": label, "aria-disabled": "true", className: cn(controlClass, controlDisabledClass), children: content });
|
|
3541
3760
|
}
|
|
3542
|
-
return /* @__PURE__ */
|
|
3761
|
+
return /* @__PURE__ */ jsx45(LinkEl, { ...destination(href), "aria-label": label, className: controlClass, children: content });
|
|
3543
3762
|
}
|
|
3544
|
-
return /* @__PURE__ */
|
|
3763
|
+
return /* @__PURE__ */ jsx45(
|
|
3545
3764
|
"button",
|
|
3546
3765
|
{
|
|
3547
3766
|
type: "button",
|
|
@@ -3560,11 +3779,11 @@ var Pagination = React45.forwardRef(
|
|
|
3560
3779
|
if (linkMode) {
|
|
3561
3780
|
const href = hrefFor(entry);
|
|
3562
3781
|
if (isCurrent || href === void 0) {
|
|
3563
|
-
return /* @__PURE__ */
|
|
3782
|
+
return /* @__PURE__ */ jsx45("span", { "aria-current": "page", "aria-label": label, className: classes, children: entry }, entry);
|
|
3564
3783
|
}
|
|
3565
|
-
return /* @__PURE__ */
|
|
3784
|
+
return /* @__PURE__ */ jsx45(LinkEl, { ...destination(href), "aria-label": label, className: classes, children: entry }, entry);
|
|
3566
3785
|
}
|
|
3567
|
-
return /* @__PURE__ */
|
|
3786
|
+
return /* @__PURE__ */ jsx45(
|
|
3568
3787
|
"button",
|
|
3569
3788
|
{
|
|
3570
3789
|
type: "button",
|
|
@@ -3577,7 +3796,7 @@ var Pagination = React45.forwardRef(
|
|
|
3577
3796
|
entry
|
|
3578
3797
|
);
|
|
3579
3798
|
};
|
|
3580
|
-
const nav = /* @__PURE__ */
|
|
3799
|
+
const nav = /* @__PURE__ */ jsxs29(
|
|
3581
3800
|
"nav",
|
|
3582
3801
|
{
|
|
3583
3802
|
ref,
|
|
@@ -3588,7 +3807,7 @@ var Pagination = React45.forwardRef(
|
|
|
3588
3807
|
withFirst && step(1, labels?.first ?? "First page", icons?.first ?? "\xAB", page <= 1),
|
|
3589
3808
|
step(page - 1, labels?.previous ?? "Previous page", icons?.previous ?? "<", page <= 1),
|
|
3590
3809
|
pages.map(
|
|
3591
|
-
(entry, index) => entry === "ellipsis" ? /* @__PURE__ */
|
|
3810
|
+
(entry, index) => entry === "ellipsis" ? /* @__PURE__ */ jsx45(
|
|
3592
3811
|
"span",
|
|
3593
3812
|
{
|
|
3594
3813
|
"aria-hidden": "true",
|
|
@@ -3604,8 +3823,8 @@ var Pagination = React45.forwardRef(
|
|
|
3604
3823
|
}
|
|
3605
3824
|
);
|
|
3606
3825
|
if (!summaryEnabled) return nav;
|
|
3607
|
-
return /* @__PURE__ */
|
|
3608
|
-
/* @__PURE__ */
|
|
3826
|
+
return /* @__PURE__ */ jsxs29("div", { className: cn("flex flex-wrap items-center justify-between gap-3", className), children: [
|
|
3827
|
+
/* @__PURE__ */ jsx45("p", { className: "text-sm text-muted-foreground", children: rangeStart !== void 0 && rangeEnd !== void 0 && total !== void 0 ? `Showing ${rangeStart}\u2013${rangeEnd} of ${total} ${itemLabel}` : `Page ${page} of ${pageCount}` }),
|
|
3609
3828
|
nav
|
|
3610
3829
|
] });
|
|
3611
3830
|
}
|
|
@@ -3613,7 +3832,7 @@ var Pagination = React45.forwardRef(
|
|
|
3613
3832
|
Pagination.displayName = "Pagination";
|
|
3614
3833
|
|
|
3615
3834
|
// src/components/data-table/DataTable.tsx
|
|
3616
|
-
import { jsx as
|
|
3835
|
+
import { jsx as jsx46, jsxs as jsxs30 } from "react/jsx-runtime";
|
|
3617
3836
|
function compareValues(a, b) {
|
|
3618
3837
|
if (typeof a === "number" && typeof b === "number") return a - b;
|
|
3619
3838
|
if (a instanceof Date && b instanceof Date) return a.getTime() - b.getTime();
|
|
@@ -3721,22 +3940,22 @@ function DataTable({
|
|
|
3721
3940
|
return String(raw);
|
|
3722
3941
|
};
|
|
3723
3942
|
const alignClass = (align) => align === "right" ? "text-right" : align === "center" ? "text-center" : "text-left";
|
|
3724
|
-
return /* @__PURE__ */
|
|
3725
|
-
selectionEnabled && selectedIds.length > 0 && bulkActions && /* @__PURE__ */
|
|
3726
|
-
/* @__PURE__ */
|
|
3943
|
+
return /* @__PURE__ */ jsxs30("div", { className: cn("w-full space-y-3", className), children: [
|
|
3944
|
+
selectionEnabled && selectedIds.length > 0 && bulkActions && /* @__PURE__ */ jsxs30("div", { className: "flex flex-wrap items-center justify-between gap-2 rounded-lg border border-border bg-muted/40 px-3 py-2 text-sm", children: [
|
|
3945
|
+
/* @__PURE__ */ jsxs30("span", { className: "font-medium", children: [
|
|
3727
3946
|
selectedIds.length,
|
|
3728
3947
|
" selected"
|
|
3729
3948
|
] }),
|
|
3730
|
-
/* @__PURE__ */
|
|
3949
|
+
/* @__PURE__ */ jsx46("div", { className: "flex flex-wrap items-center gap-2", children: bulkActions })
|
|
3731
3950
|
] }),
|
|
3732
|
-
/* @__PURE__ */
|
|
3951
|
+
/* @__PURE__ */ jsx46("div", { className: "w-full overflow-x-auto rounded-lg border border-border", children: /* @__PURE__ */ jsxs30(
|
|
3733
3952
|
"table",
|
|
3734
3953
|
{
|
|
3735
3954
|
className: cn("w-full caption-bottom", density === "compact" ? "text-xs" : "text-sm"),
|
|
3736
3955
|
children: [
|
|
3737
|
-
caption && /* @__PURE__ */
|
|
3738
|
-
/* @__PURE__ */
|
|
3739
|
-
selectionEnabled && /* @__PURE__ */
|
|
3956
|
+
caption && /* @__PURE__ */ jsx46("caption", { className: "px-3 py-2 text-left text-xs text-muted-foreground", children: caption }),
|
|
3957
|
+
/* @__PURE__ */ jsx46("thead", { className: cn("bg-muted/50", stickyHeader && "sticky top-0 z-10 bg-background"), children: /* @__PURE__ */ jsxs30("tr", { children: [
|
|
3958
|
+
selectionEnabled && /* @__PURE__ */ jsx46("th", { scope: "col", className: "w-10 border-b border-border px-3 py-2", children: /* @__PURE__ */ jsx46(
|
|
3740
3959
|
Checkbox,
|
|
3741
3960
|
{
|
|
3742
3961
|
"aria-label": selectAllLabel,
|
|
@@ -3750,7 +3969,7 @@ function DataTable({
|
|
|
3750
3969
|
columns.map((column) => {
|
|
3751
3970
|
const isSorted = sort?.key === column.key;
|
|
3752
3971
|
const ariaSort = !column.sortable ? void 0 : isSorted ? sort.dir === "asc" ? "ascending" : "descending" : "none";
|
|
3753
|
-
return /* @__PURE__ */
|
|
3972
|
+
return /* @__PURE__ */ jsx46(
|
|
3754
3973
|
"th",
|
|
3755
3974
|
{
|
|
3756
3975
|
scope: "col",
|
|
@@ -3760,7 +3979,7 @@ function DataTable({
|
|
|
3760
3979
|
alignClass(column.align),
|
|
3761
3980
|
column.className
|
|
3762
3981
|
),
|
|
3763
|
-
children: column.sortable ? /* @__PURE__ */
|
|
3982
|
+
children: column.sortable ? /* @__PURE__ */ jsxs30(
|
|
3764
3983
|
"button",
|
|
3765
3984
|
{
|
|
3766
3985
|
type: "button",
|
|
@@ -3768,7 +3987,7 @@ function DataTable({
|
|
|
3768
3987
|
className: "inline-flex items-center gap-1 rounded px-1 py-0.5 transition-colors hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
3769
3988
|
children: [
|
|
3770
3989
|
column.header,
|
|
3771
|
-
/* @__PURE__ */
|
|
3990
|
+
/* @__PURE__ */ jsx46("span", { "aria-hidden": "true", className: "text-[10px] text-muted-foreground", children: renderSortIcon ? renderSortIcon(isSorted ? sort.dir === "asc" ? "asc" : "desc" : "none") : isSorted ? sort.dir === "asc" ? "\u25B2" : "\u25BC" : "\u2195" })
|
|
3772
3991
|
]
|
|
3773
3992
|
}
|
|
3774
3993
|
) : column.header
|
|
@@ -3777,20 +3996,20 @@ function DataTable({
|
|
|
3777
3996
|
);
|
|
3778
3997
|
})
|
|
3779
3998
|
] }) }),
|
|
3780
|
-
/* @__PURE__ */
|
|
3999
|
+
/* @__PURE__ */ jsx46("tbody", { "aria-busy": loading || void 0, children: loading ? Array.from(
|
|
3781
4000
|
{ length: (loadingRows ?? pageSize ?? Math.min(visible.length, 5)) || 5 },
|
|
3782
|
-
(_, skeletonRow) => /* @__PURE__ */
|
|
3783
|
-
selectionEnabled && /* @__PURE__ */
|
|
3784
|
-
columns.map((column) => /* @__PURE__ */
|
|
4001
|
+
(_, skeletonRow) => /* @__PURE__ */ jsxs30("tr", { children: [
|
|
4002
|
+
selectionEnabled && /* @__PURE__ */ jsx46("td", { className: cn("px-3 py-2", density === "compact" && "px-2 py-1"), children: /* @__PURE__ */ jsx46(Skeleton, { className: "h-4 w-4" }) }),
|
|
4003
|
+
columns.map((column) => /* @__PURE__ */ jsx46("td", { className: cn("px-3 py-2", density === "compact" && "px-2 py-1"), children: /* @__PURE__ */ jsx46(Skeleton, { className: density === "compact" ? "h-3 w-full" : "h-4 w-full" }) }, column.key))
|
|
3785
4004
|
] }, `skeleton-${skeletonRow}`)
|
|
3786
|
-
) : visible.length === 0 ? /* @__PURE__ */
|
|
4005
|
+
) : visible.length === 0 ? /* @__PURE__ */ jsx46("tr", { children: /* @__PURE__ */ jsx46(
|
|
3787
4006
|
"td",
|
|
3788
4007
|
{
|
|
3789
4008
|
colSpan: columns.length + (selectionEnabled ? 1 : 0),
|
|
3790
4009
|
className: "px-3 py-8 text-center text-sm text-muted-foreground",
|
|
3791
4010
|
children: emptyMessage
|
|
3792
4011
|
}
|
|
3793
|
-
) }) : visible.map((row, index) => /* @__PURE__ */
|
|
4012
|
+
) }) : visible.map((row, index) => /* @__PURE__ */ jsxs30(
|
|
3794
4013
|
"tr",
|
|
3795
4014
|
{
|
|
3796
4015
|
tabIndex: onRowClick ? 0 : void 0,
|
|
@@ -3807,12 +4026,12 @@ function DataTable({
|
|
|
3807
4026
|
onRowClick && "cursor-pointer transition-colors hover:bg-muted/50 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-ring"
|
|
3808
4027
|
),
|
|
3809
4028
|
children: [
|
|
3810
|
-
selectionEnabled && /* @__PURE__ */
|
|
4029
|
+
selectionEnabled && /* @__PURE__ */ jsx46(
|
|
3811
4030
|
"td",
|
|
3812
4031
|
{
|
|
3813
4032
|
className: cn("align-middle", density === "compact" ? "px-2 py-1" : "px-3 py-2"),
|
|
3814
4033
|
onClick: (event) => event.stopPropagation(),
|
|
3815
|
-
children: /* @__PURE__ */
|
|
4034
|
+
children: /* @__PURE__ */ jsx46(
|
|
3816
4035
|
Checkbox,
|
|
3817
4036
|
{
|
|
3818
4037
|
"aria-label": `Select row ${rowId(row)}`,
|
|
@@ -3823,7 +4042,7 @@ function DataTable({
|
|
|
3823
4042
|
)
|
|
3824
4043
|
}
|
|
3825
4044
|
),
|
|
3826
|
-
columns.map((column) => /* @__PURE__ */
|
|
4045
|
+
columns.map((column) => /* @__PURE__ */ jsx46(
|
|
3827
4046
|
"td",
|
|
3828
4047
|
{
|
|
3829
4048
|
className: cn(
|
|
@@ -3832,7 +4051,7 @@ function DataTable({
|
|
|
3832
4051
|
alignClass(column.align),
|
|
3833
4052
|
column.className
|
|
3834
4053
|
),
|
|
3835
|
-
children: column.onClick ? /* @__PURE__ */
|
|
4054
|
+
children: column.onClick ? /* @__PURE__ */ jsx46(
|
|
3836
4055
|
"button",
|
|
3837
4056
|
{
|
|
3838
4057
|
type: "button",
|
|
@@ -3851,8 +4070,8 @@ function DataTable({
|
|
|
3851
4070
|
]
|
|
3852
4071
|
}
|
|
3853
4072
|
) }),
|
|
3854
|
-
pageSize && pageCount > 1 && /* @__PURE__ */
|
|
3855
|
-
/* @__PURE__ */
|
|
4073
|
+
pageSize && pageCount > 1 && /* @__PURE__ */ jsxs30("div", { className: "flex flex-wrap items-center justify-between gap-x-4 gap-y-2", children: [
|
|
4074
|
+
/* @__PURE__ */ jsxs30(
|
|
3856
4075
|
"p",
|
|
3857
4076
|
{
|
|
3858
4077
|
className: "min-h-8 leading-none text-xs text-muted-foreground",
|
|
@@ -3867,16 +4086,16 @@ function DataTable({
|
|
|
3867
4086
|
]
|
|
3868
4087
|
}
|
|
3869
4088
|
),
|
|
3870
|
-
/* @__PURE__ */
|
|
4089
|
+
/* @__PURE__ */ jsx46(Pagination, { page: safePage, pageCount, onPageChange: setPage })
|
|
3871
4090
|
] })
|
|
3872
4091
|
] });
|
|
3873
4092
|
}
|
|
3874
4093
|
|
|
3875
4094
|
// src/components/list/List.tsx
|
|
3876
4095
|
import * as React47 from "react";
|
|
3877
|
-
import { Fragment as
|
|
4096
|
+
import { Fragment as Fragment9, jsx as jsx47, jsxs as jsxs31 } from "react/jsx-runtime";
|
|
3878
4097
|
var List = React47.forwardRef(
|
|
3879
|
-
({ divided, bordered, size = "default", className, ...props }, ref) => /* @__PURE__ */
|
|
4098
|
+
({ divided, bordered, size = "default", className, ...props }, ref) => /* @__PURE__ */ jsx47(
|
|
3880
4099
|
"ul",
|
|
3881
4100
|
{
|
|
3882
4101
|
ref,
|
|
@@ -3902,15 +4121,15 @@ var ListItem = React47.forwardRef(
|
|
|
3902
4121
|
disabled && "opacity-50",
|
|
3903
4122
|
className
|
|
3904
4123
|
);
|
|
3905
|
-
const body = /* @__PURE__ */
|
|
3906
|
-
leading && /* @__PURE__ */
|
|
3907
|
-
/* @__PURE__ */
|
|
3908
|
-
/* @__PURE__ */
|
|
3909
|
-
description && /* @__PURE__ */
|
|
4124
|
+
const body = /* @__PURE__ */ jsxs31(Fragment9, { children: [
|
|
4125
|
+
leading && /* @__PURE__ */ jsx47("span", { className: "flex shrink-0 items-center", children: leading }),
|
|
4126
|
+
/* @__PURE__ */ jsxs31("span", { className: "min-w-0 flex-1", children: [
|
|
4127
|
+
/* @__PURE__ */ jsx47("span", { className: "block truncate", children }),
|
|
4128
|
+
description && /* @__PURE__ */ jsx47("span", { className: "mt-0.5 block text-xs text-muted-foreground", children: description })
|
|
3910
4129
|
] }),
|
|
3911
|
-
trailing && /* @__PURE__ */
|
|
4130
|
+
trailing && /* @__PURE__ */ jsx47("span", { className: "flex shrink-0 items-center text-xs text-muted-foreground", children: trailing })
|
|
3912
4131
|
] });
|
|
3913
|
-
return /* @__PURE__ */
|
|
4132
|
+
return /* @__PURE__ */ jsx47("li", { ref, ...props, children: onClick ? /* @__PURE__ */ jsx47("button", { type: "button", onClick, disabled, className: cn(padding, rowClass), children: body }) : /* @__PURE__ */ jsx47("div", { className: cn(padding, rowClass), children: body }) });
|
|
3914
4133
|
}
|
|
3915
4134
|
);
|
|
3916
4135
|
ListItem.displayName = "ListItem";
|
|
@@ -3919,7 +4138,7 @@ ListItem.displayName = "ListItem";
|
|
|
3919
4138
|
import * as React48 from "react";
|
|
3920
4139
|
import { Slot as Slot4 } from "@radix-ui/react-slot";
|
|
3921
4140
|
import { cva as cva7 } from "class-variance-authority";
|
|
3922
|
-
import { Fragment as
|
|
4141
|
+
import { Fragment as Fragment10, jsx as jsx48, jsxs as jsxs32 } from "react/jsx-runtime";
|
|
3923
4142
|
var linkVariants = cva7("inline-flex items-center gap-1 transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background rounded-sm", {
|
|
3924
4143
|
variants: {
|
|
3925
4144
|
variant: {
|
|
@@ -3938,7 +4157,7 @@ var Link = React48.forwardRef(function Link2({ className, variant, asChild = fal
|
|
|
3938
4157
|
const isExternal = external ?? isAbsolute;
|
|
3939
4158
|
const Comp = asChild ? Slot4 : "a";
|
|
3940
4159
|
if (asChild) {
|
|
3941
|
-
return /* @__PURE__ */
|
|
4160
|
+
return /* @__PURE__ */ jsx48(
|
|
3942
4161
|
Comp,
|
|
3943
4162
|
{
|
|
3944
4163
|
ref,
|
|
@@ -3950,7 +4169,7 @@ var Link = React48.forwardRef(function Link2({ className, variant, asChild = fal
|
|
|
3950
4169
|
}
|
|
3951
4170
|
);
|
|
3952
4171
|
}
|
|
3953
|
-
return /* @__PURE__ */
|
|
4172
|
+
return /* @__PURE__ */ jsxs32(
|
|
3954
4173
|
Comp,
|
|
3955
4174
|
{
|
|
3956
4175
|
ref,
|
|
@@ -3960,9 +4179,9 @@ var Link = React48.forwardRef(function Link2({ className, variant, asChild = fal
|
|
|
3960
4179
|
...props,
|
|
3961
4180
|
children: [
|
|
3962
4181
|
children,
|
|
3963
|
-
isExternal && variant !== "muted" && /* @__PURE__ */
|
|
3964
|
-
/* @__PURE__ */
|
|
3965
|
-
/* @__PURE__ */
|
|
4182
|
+
isExternal && variant !== "muted" && /* @__PURE__ */ jsxs32(Fragment10, { children: [
|
|
4183
|
+
/* @__PURE__ */ jsx48("span", { "aria-hidden": "true", className: "text-[0.75em]", children: "\u2197" }),
|
|
4184
|
+
/* @__PURE__ */ jsx48("span", { className: "sr-only", children: "(opens in a new tab)" })
|
|
3966
4185
|
] })
|
|
3967
4186
|
]
|
|
3968
4187
|
}
|
|
@@ -3971,7 +4190,7 @@ var Link = React48.forwardRef(function Link2({ className, variant, asChild = fal
|
|
|
3971
4190
|
|
|
3972
4191
|
// src/components/text/Text.tsx
|
|
3973
4192
|
import * as React49 from "react";
|
|
3974
|
-
import { jsx as
|
|
4193
|
+
import { jsx as jsx49 } from "react/jsx-runtime";
|
|
3975
4194
|
var sizeClasses4 = {
|
|
3976
4195
|
xs: "text-xs",
|
|
3977
4196
|
sm: "text-sm",
|
|
@@ -3988,7 +4207,7 @@ var weightClasses = {
|
|
|
3988
4207
|
var Text = React49.forwardRef(
|
|
3989
4208
|
({ inline, size = "base", weight, muted, className, ...props }, ref) => {
|
|
3990
4209
|
const Tag = inline ? "span" : "p";
|
|
3991
|
-
return /* @__PURE__ */
|
|
4210
|
+
return /* @__PURE__ */ jsx49(
|
|
3992
4211
|
Tag,
|
|
3993
4212
|
{
|
|
3994
4213
|
ref,
|
|
@@ -4008,7 +4227,7 @@ Text.displayName = "Text";
|
|
|
4008
4227
|
|
|
4009
4228
|
// src/components/heading/Heading.tsx
|
|
4010
4229
|
import * as React50 from "react";
|
|
4011
|
-
import { jsx as
|
|
4230
|
+
import { jsx as jsx50 } from "react/jsx-runtime";
|
|
4012
4231
|
var levelClasses = {
|
|
4013
4232
|
1: "text-4xl",
|
|
4014
4233
|
2: "text-3xl",
|
|
@@ -4028,7 +4247,7 @@ var sizeClasses5 = {
|
|
|
4028
4247
|
var Heading = React50.forwardRef(
|
|
4029
4248
|
({ level, size, muted, className, ...props }, ref) => {
|
|
4030
4249
|
const Tag = `h${level}`;
|
|
4031
|
-
return /* @__PURE__ */
|
|
4250
|
+
return /* @__PURE__ */ jsx50(
|
|
4032
4251
|
Tag,
|
|
4033
4252
|
{
|
|
4034
4253
|
ref,
|
|
@@ -4047,7 +4266,18 @@ Heading.displayName = "Heading";
|
|
|
4047
4266
|
|
|
4048
4267
|
// src/components/empty-state/EmptyState.tsx
|
|
4049
4268
|
import * as React51 from "react";
|
|
4050
|
-
import { jsx as
|
|
4269
|
+
import { jsx as jsx51, jsxs as jsxs33 } from "react/jsx-runtime";
|
|
4270
|
+
function isActionObject(value) {
|
|
4271
|
+
return typeof value === "object" && value !== null && !React51.isValidElement(value) && "label" in value;
|
|
4272
|
+
}
|
|
4273
|
+
function renderAction(action) {
|
|
4274
|
+
if (!isActionObject(action)) return action;
|
|
4275
|
+
const { label, onClick, href, variant } = action;
|
|
4276
|
+
if (href) {
|
|
4277
|
+
return /* @__PURE__ */ jsx51(Button, { variant, asChild: true, children: /* @__PURE__ */ jsx51("a", { href, children: label }) });
|
|
4278
|
+
}
|
|
4279
|
+
return /* @__PURE__ */ jsx51(Button, { variant, onClick, children: label });
|
|
4280
|
+
}
|
|
4051
4281
|
var EmptyState = React51.forwardRef(function EmptyState2({
|
|
4052
4282
|
icon,
|
|
4053
4283
|
title,
|
|
@@ -4061,8 +4291,8 @@ var EmptyState = React51.forwardRef(function EmptyState2({
|
|
|
4061
4291
|
children,
|
|
4062
4292
|
...props
|
|
4063
4293
|
}, ref) {
|
|
4064
|
-
const primaryAction = action ?? actions;
|
|
4065
|
-
return /* @__PURE__ */
|
|
4294
|
+
const primaryAction = renderAction(action) ?? actions;
|
|
4295
|
+
return /* @__PURE__ */ jsxs33(
|
|
4066
4296
|
"div",
|
|
4067
4297
|
{
|
|
4068
4298
|
ref,
|
|
@@ -4073,11 +4303,11 @@ var EmptyState = React51.forwardRef(function EmptyState2({
|
|
|
4073
4303
|
),
|
|
4074
4304
|
...props,
|
|
4075
4305
|
children: [
|
|
4076
|
-
icon && /* @__PURE__ */
|
|
4077
|
-
/* @__PURE__ */
|
|
4078
|
-
description && /* @__PURE__ */
|
|
4306
|
+
icon && /* @__PURE__ */ jsx51("div", { className: "text-muted-foreground [&_svg]:size-8", children: icon }),
|
|
4307
|
+
/* @__PURE__ */ jsx51(Title, { className: cn("font-semibold", size === "md" ? "text-base" : "text-sm"), children: title }),
|
|
4308
|
+
description && /* @__PURE__ */ jsx51("p", { className: "max-w-sm text-sm text-muted-foreground", children: description }),
|
|
4079
4309
|
children,
|
|
4080
|
-
(primaryAction || secondaryAction) && /* @__PURE__ */
|
|
4310
|
+
(primaryAction || secondaryAction) && /* @__PURE__ */ jsxs33("div", { className: "mt-1 flex flex-wrap items-center justify-center gap-2", children: [
|
|
4081
4311
|
primaryAction,
|
|
4082
4312
|
secondaryAction
|
|
4083
4313
|
] })
|
|
@@ -4088,25 +4318,26 @@ var EmptyState = React51.forwardRef(function EmptyState2({
|
|
|
4088
4318
|
|
|
4089
4319
|
// src/components/page-header/PageHeader.tsx
|
|
4090
4320
|
import * as React52 from "react";
|
|
4091
|
-
import { jsx as
|
|
4321
|
+
import { jsx as jsx52, jsxs as jsxs34 } from "react/jsx-runtime";
|
|
4092
4322
|
var sizeClasses6 = {
|
|
4093
4323
|
sm: "text-xl",
|
|
4094
4324
|
md: "text-2xl",
|
|
4095
4325
|
lg: "text-3xl",
|
|
4096
4326
|
hero: "text-4xl sm:text-5xl lg:text-[3.4rem] lg:leading-[1.1]"
|
|
4097
4327
|
};
|
|
4098
|
-
var PageHeader = React52.forwardRef(function PageHeader2({ title, description, breadcrumbs, actions, eyebrow, size = "md", align = "left", titleClassName, descriptionClassName, eyebrowClassName, className, children, ...props }, ref) {
|
|
4099
|
-
|
|
4100
|
-
|
|
4101
|
-
|
|
4102
|
-
/* @__PURE__ */
|
|
4103
|
-
|
|
4104
|
-
|
|
4105
|
-
|
|
4328
|
+
var PageHeader = React52.forwardRef(function PageHeader2({ title, description, subtitle, breadcrumbs, actions, eyebrow, size = "md", align = "left", titleClassName, descriptionClassName, eyebrowClassName, className, children, ...props }, ref) {
|
|
4329
|
+
const supporting = description ?? subtitle;
|
|
4330
|
+
return /* @__PURE__ */ jsxs34("div", { ref, className: cn("flex flex-col gap-2", align === "center" && "items-center text-center", className), ...props, children: [
|
|
4331
|
+
breadcrumbs && /* @__PURE__ */ jsx52("div", { className: "text-sm text-muted-foreground", children: breadcrumbs }),
|
|
4332
|
+
eyebrow && /* @__PURE__ */ jsx52("div", { className: cn("text-xs font-medium uppercase tracking-wide text-primary", eyebrowClassName), children: eyebrow }),
|
|
4333
|
+
/* @__PURE__ */ jsxs34("div", { className: cn("flex w-full flex-wrap items-start justify-between gap-3", align === "center" && "justify-center"), children: [
|
|
4334
|
+
/* @__PURE__ */ jsxs34("div", { className: cn("min-w-0", align === "center" && "flex flex-col items-center"), children: [
|
|
4335
|
+
/* @__PURE__ */ jsx52("h1", { className: cn("font-semibold tracking-tight", sizeClasses6[size], titleClassName), children: title }),
|
|
4336
|
+
supporting && /* @__PURE__ */ jsx52("p", { className: cn("mt-2 max-w-2xl text-base text-muted-foreground", descriptionClassName), children: supporting })
|
|
4106
4337
|
] }),
|
|
4107
|
-
actions && /* @__PURE__ */
|
|
4338
|
+
actions && /* @__PURE__ */ jsx52("div", { className: "flex shrink-0 items-center gap-2", children: actions })
|
|
4108
4339
|
] }),
|
|
4109
|
-
children && /* @__PURE__ */
|
|
4340
|
+
children && /* @__PURE__ */ jsx52("div", { className: "mt-2", children })
|
|
4110
4341
|
] });
|
|
4111
4342
|
});
|
|
4112
4343
|
|
|
@@ -4127,7 +4358,7 @@ function documentHead({
|
|
|
4127
4358
|
|
|
4128
4359
|
// src/components/section-heading/SectionHeading.tsx
|
|
4129
4360
|
import * as React53 from "react";
|
|
4130
|
-
import { jsx as
|
|
4361
|
+
import { jsx as jsx53, jsxs as jsxs35 } from "react/jsx-runtime";
|
|
4131
4362
|
var sizeClasses7 = {
|
|
4132
4363
|
sm: "text-lg",
|
|
4133
4364
|
md: "text-2xl",
|
|
@@ -4135,7 +4366,7 @@ var sizeClasses7 = {
|
|
|
4135
4366
|
};
|
|
4136
4367
|
var SectionHeading = React53.forwardRef(function SectionHeading2({ title, description, eyebrow, actions, level = 2, align = "left", size = "md", titleClassName, descriptionClassName, eyebrowClassName, className, ...props }, ref) {
|
|
4137
4368
|
const Heading2 = `h${level}`;
|
|
4138
|
-
return /* @__PURE__ */
|
|
4369
|
+
return /* @__PURE__ */ jsxs35(
|
|
4139
4370
|
"div",
|
|
4140
4371
|
{
|
|
4141
4372
|
ref,
|
|
@@ -4146,12 +4377,12 @@ var SectionHeading = React53.forwardRef(function SectionHeading2({ title, descri
|
|
|
4146
4377
|
),
|
|
4147
4378
|
...props,
|
|
4148
4379
|
children: [
|
|
4149
|
-
/* @__PURE__ */
|
|
4150
|
-
eyebrow && /* @__PURE__ */
|
|
4151
|
-
/* @__PURE__ */
|
|
4152
|
-
description && /* @__PURE__ */
|
|
4380
|
+
/* @__PURE__ */ jsxs35("div", { className: cn("min-w-0", align === "center" && "flex flex-col items-center"), children: [
|
|
4381
|
+
eyebrow && /* @__PURE__ */ jsx53("div", { className: cn("mb-1 text-xs font-medium uppercase tracking-wide text-primary", eyebrowClassName), children: eyebrow }),
|
|
4382
|
+
/* @__PURE__ */ jsx53(Heading2, { className: cn("font-semibold tracking-tight", sizeClasses7[size], titleClassName), children: title }),
|
|
4383
|
+
description && /* @__PURE__ */ jsx53("p", { className: cn("mt-2 max-w-2xl text-muted-foreground", align === "center" ? "mx-auto" : "", descriptionClassName), children: description })
|
|
4153
4384
|
] }),
|
|
4154
|
-
actions && /* @__PURE__ */
|
|
4385
|
+
actions && /* @__PURE__ */ jsx53("div", { className: "flex shrink-0 items-center gap-2", children: actions })
|
|
4155
4386
|
]
|
|
4156
4387
|
}
|
|
4157
4388
|
);
|
|
@@ -4159,39 +4390,66 @@ var SectionHeading = React53.forwardRef(function SectionHeading2({ title, descri
|
|
|
4159
4390
|
|
|
4160
4391
|
// src/components/metric-card/MetricCard.tsx
|
|
4161
4392
|
import * as React54 from "react";
|
|
4162
|
-
import { jsx as
|
|
4393
|
+
import { jsx as jsx54, jsxs as jsxs36 } from "react/jsx-runtime";
|
|
4163
4394
|
var trendClasses = {
|
|
4164
4395
|
up: "text-success",
|
|
4165
4396
|
down: "text-destructive",
|
|
4166
4397
|
flat: "text-muted-foreground"
|
|
4167
4398
|
};
|
|
4399
|
+
var toneClasses = {
|
|
4400
|
+
default: "",
|
|
4401
|
+
success: "text-success",
|
|
4402
|
+
warning: "text-warning-ink",
|
|
4403
|
+
destructive: "text-destructive"
|
|
4404
|
+
};
|
|
4168
4405
|
var trendGlyph = { up: "\u2191", down: "\u2193", flat: "\u2192" };
|
|
4169
|
-
var MetricCard = React54.forwardRef(function MetricCard2({ label, value, hint, delta, trend = "flat", icon, className, ...props }, ref) {
|
|
4170
|
-
|
|
4171
|
-
|
|
4172
|
-
|
|
4173
|
-
|
|
4406
|
+
var MetricCard = React54.forwardRef(function MetricCard2({ label, value, hint, title, description, delta, trend = "flat", tone = "default", loading = false, icon, className, ...props }, ref) {
|
|
4407
|
+
const heading = label ?? title;
|
|
4408
|
+
const supporting = hint ?? description;
|
|
4409
|
+
if (loading) {
|
|
4410
|
+
return /* @__PURE__ */ jsxs36(
|
|
4411
|
+
"div",
|
|
4412
|
+
{
|
|
4413
|
+
ref,
|
|
4414
|
+
"aria-busy": "true",
|
|
4415
|
+
className: cn("rounded-xl border border-border bg-card p-5", className),
|
|
4416
|
+
...props,
|
|
4417
|
+
children: [
|
|
4418
|
+
/* @__PURE__ */ jsxs36("div", { className: "flex items-start justify-between gap-3", children: [
|
|
4419
|
+
heading && /* @__PURE__ */ jsx54("p", { className: "text-sm text-muted-foreground", children: heading }),
|
|
4420
|
+
icon && /* @__PURE__ */ jsx54("span", { className: "text-muted-foreground [&_svg]:size-4", children: icon })
|
|
4421
|
+
] }),
|
|
4422
|
+
/* @__PURE__ */ jsx54("span", { "aria-hidden": "true", className: "mt-3 block h-7 w-24 animate-pulse rounded-md bg-muted" }),
|
|
4423
|
+
/* @__PURE__ */ jsx54("span", { className: "sr-only", children: "Loading" })
|
|
4424
|
+
]
|
|
4425
|
+
}
|
|
4426
|
+
);
|
|
4427
|
+
}
|
|
4428
|
+
return /* @__PURE__ */ jsxs36("div", { ref, className: cn("rounded-xl border border-border bg-card p-5", className), ...props, children: [
|
|
4429
|
+
/* @__PURE__ */ jsxs36("div", { className: "flex items-start justify-between gap-3", children: [
|
|
4430
|
+
heading && /* @__PURE__ */ jsx54("p", { className: "text-sm text-muted-foreground", children: heading }),
|
|
4431
|
+
icon && /* @__PURE__ */ jsx54("span", { className: "text-muted-foreground [&_svg]:size-4", children: icon })
|
|
4174
4432
|
] }),
|
|
4175
|
-
/* @__PURE__ */
|
|
4176
|
-
(delta ||
|
|
4177
|
-
delta && /* @__PURE__ */
|
|
4178
|
-
/* @__PURE__ */
|
|
4433
|
+
/* @__PURE__ */ jsx54("p", { className: cn("mt-2 text-2xl font-semibold tabular-nums", toneClasses[tone]), children: value }),
|
|
4434
|
+
(delta || supporting) && /* @__PURE__ */ jsxs36("p", { className: "mt-1 flex items-center gap-2 text-sm", children: [
|
|
4435
|
+
delta && /* @__PURE__ */ jsxs36("span", { className: cn("font-medium tabular-nums", trendClasses[trend]), children: [
|
|
4436
|
+
/* @__PURE__ */ jsx54("span", { "aria-hidden": "true", children: trendGlyph[trend] }),
|
|
4179
4437
|
" ",
|
|
4180
4438
|
delta
|
|
4181
4439
|
] }),
|
|
4182
|
-
|
|
4440
|
+
supporting && /* @__PURE__ */ jsx54("span", { className: "text-muted-foreground", children: supporting })
|
|
4183
4441
|
] })
|
|
4184
4442
|
] });
|
|
4185
4443
|
});
|
|
4186
4444
|
|
|
4187
4445
|
// src/components/password-input/PasswordInput.tsx
|
|
4188
4446
|
import * as React55 from "react";
|
|
4189
|
-
import { jsx as
|
|
4447
|
+
import { jsx as jsx55, jsxs as jsxs37 } from "react/jsx-runtime";
|
|
4190
4448
|
var PasswordInput = React55.forwardRef(function PasswordInput2({ className, showLabel = "Show password", hideLabel = "Hide password", ...props }, ref) {
|
|
4191
4449
|
const [visible, setVisible] = React55.useState(false);
|
|
4192
|
-
return /* @__PURE__ */
|
|
4193
|
-
/* @__PURE__ */
|
|
4194
|
-
/* @__PURE__ */
|
|
4450
|
+
return /* @__PURE__ */ jsxs37("div", { className: cn("relative flex items-center", className), children: [
|
|
4451
|
+
/* @__PURE__ */ jsx55(Input, { ref, type: visible ? "text" : "password", className: "pr-24", ...props }),
|
|
4452
|
+
/* @__PURE__ */ jsx55(
|
|
4195
4453
|
Button,
|
|
4196
4454
|
{
|
|
4197
4455
|
type: "button",
|
|
@@ -4209,7 +4467,7 @@ var PasswordInput = React55.forwardRef(function PasswordInput2({ className, show
|
|
|
4209
4467
|
|
|
4210
4468
|
// src/components/auth-layout/AuthLayout.tsx
|
|
4211
4469
|
import * as React56 from "react";
|
|
4212
|
-
import { jsx as
|
|
4470
|
+
import { jsx as jsx56, jsxs as jsxs38 } from "react/jsx-runtime";
|
|
4213
4471
|
var sizeClasses8 = {
|
|
4214
4472
|
sm: "max-w-sm",
|
|
4215
4473
|
md: "max-w-md",
|
|
@@ -4218,58 +4476,66 @@ var sizeClasses8 = {
|
|
|
4218
4476
|
var AuthLayout = React56.forwardRef(function AuthLayout2({
|
|
4219
4477
|
title,
|
|
4220
4478
|
description,
|
|
4479
|
+
subtitle,
|
|
4221
4480
|
brand,
|
|
4481
|
+
logo,
|
|
4222
4482
|
footer,
|
|
4223
4483
|
children,
|
|
4224
4484
|
size = "md",
|
|
4225
4485
|
variant = "centered",
|
|
4226
4486
|
aside,
|
|
4487
|
+
maxWidth,
|
|
4227
4488
|
className,
|
|
4228
4489
|
...props
|
|
4229
4490
|
}, ref) {
|
|
4230
4491
|
const split = variant === "split" && aside != null;
|
|
4231
|
-
const
|
|
4492
|
+
const supporting = description ?? subtitle;
|
|
4493
|
+
const mark = brand ?? logo;
|
|
4494
|
+
const widthStyle = maxWidth === void 0 ? void 0 : { maxWidth: typeof maxWidth === "number" ? `${maxWidth}px` : maxWidth };
|
|
4495
|
+
const form = /* @__PURE__ */ jsxs38(
|
|
4232
4496
|
"div",
|
|
4233
4497
|
{
|
|
4234
4498
|
className: cn(
|
|
4235
4499
|
"flex w-full flex-col",
|
|
4236
4500
|
split ? sizeClasses8[size] : "items-center"
|
|
4237
4501
|
),
|
|
4502
|
+
style: widthStyle,
|
|
4238
4503
|
children: [
|
|
4239
|
-
|
|
4240
|
-
/* @__PURE__ */
|
|
4504
|
+
mark && /* @__PURE__ */ jsx56("div", { className: "mb-6", children: mark }),
|
|
4505
|
+
/* @__PURE__ */ jsxs38(
|
|
4241
4506
|
"div",
|
|
4242
4507
|
{
|
|
4243
4508
|
className: cn(
|
|
4244
4509
|
"w-full rounded-xl border border-border bg-card p-6 shadow-sm sm:p-8",
|
|
4245
4510
|
!split && sizeClasses8[size]
|
|
4246
4511
|
),
|
|
4512
|
+
style: widthStyle,
|
|
4247
4513
|
children: [
|
|
4248
|
-
/* @__PURE__ */
|
|
4249
|
-
|
|
4250
|
-
/* @__PURE__ */
|
|
4514
|
+
/* @__PURE__ */ jsx56("h1", { className: "text-xl font-semibold tracking-tight", children: title }),
|
|
4515
|
+
supporting && /* @__PURE__ */ jsx56("p", { className: "mt-1 text-sm text-muted-foreground", children: supporting }),
|
|
4516
|
+
/* @__PURE__ */ jsx56("div", { className: "mt-6", children })
|
|
4251
4517
|
]
|
|
4252
4518
|
}
|
|
4253
4519
|
),
|
|
4254
|
-
footer && /* @__PURE__ */
|
|
4520
|
+
footer && /* @__PURE__ */ jsx56("div", { className: "mt-6 text-center text-sm text-muted-foreground", children: footer })
|
|
4255
4521
|
]
|
|
4256
4522
|
}
|
|
4257
4523
|
);
|
|
4258
4524
|
if (split) {
|
|
4259
|
-
return /* @__PURE__ */
|
|
4525
|
+
return /* @__PURE__ */ jsx56(
|
|
4260
4526
|
"div",
|
|
4261
4527
|
{
|
|
4262
4528
|
ref,
|
|
4263
4529
|
className: cn("min-h-screen bg-muted/30 px-4 py-12 lg:px-8", className),
|
|
4264
4530
|
...props,
|
|
4265
|
-
children: /* @__PURE__ */
|
|
4531
|
+
children: /* @__PURE__ */ jsxs38("div", { className: "mx-auto grid min-h-[calc(100vh-6rem)] w-full max-w-6xl items-center gap-10 lg:grid-cols-[minmax(0,1fr)_minmax(0,1.1fr)]", children: [
|
|
4266
4532
|
form,
|
|
4267
|
-
/* @__PURE__ */
|
|
4533
|
+
/* @__PURE__ */ jsx56("aside", { className: "w-full", children: aside })
|
|
4268
4534
|
] })
|
|
4269
4535
|
}
|
|
4270
4536
|
);
|
|
4271
4537
|
}
|
|
4272
|
-
return /* @__PURE__ */
|
|
4538
|
+
return /* @__PURE__ */ jsx56(
|
|
4273
4539
|
"div",
|
|
4274
4540
|
{
|
|
4275
4541
|
ref,
|
|
@@ -4285,7 +4551,7 @@ var AuthLayout = React56.forwardRef(function AuthLayout2({
|
|
|
4285
4551
|
|
|
4286
4552
|
// src/components/filter-bar/FilterBar.tsx
|
|
4287
4553
|
import * as React57 from "react";
|
|
4288
|
-
import { jsx as
|
|
4554
|
+
import { jsx as jsx57, jsxs as jsxs39 } from "react/jsx-runtime";
|
|
4289
4555
|
var FilterBar = React57.forwardRef(function FilterBar2({
|
|
4290
4556
|
searchValue,
|
|
4291
4557
|
onSearchChange,
|
|
@@ -4301,7 +4567,7 @@ var FilterBar = React57.forwardRef(function FilterBar2({
|
|
|
4301
4567
|
children,
|
|
4302
4568
|
...props
|
|
4303
4569
|
}, ref) {
|
|
4304
|
-
return /* @__PURE__ */
|
|
4570
|
+
return /* @__PURE__ */ jsxs39(
|
|
4305
4571
|
"div",
|
|
4306
4572
|
{
|
|
4307
4573
|
ref,
|
|
@@ -4312,7 +4578,7 @@ var FilterBar = React57.forwardRef(function FilterBar2({
|
|
|
4312
4578
|
),
|
|
4313
4579
|
...props,
|
|
4314
4580
|
children: [
|
|
4315
|
-
onSearchChange !== void 0 && /* @__PURE__ */
|
|
4581
|
+
onSearchChange !== void 0 && /* @__PURE__ */ jsx57(
|
|
4316
4582
|
Input,
|
|
4317
4583
|
{
|
|
4318
4584
|
type: "search",
|
|
@@ -4323,21 +4589,21 @@ var FilterBar = React57.forwardRef(function FilterBar2({
|
|
|
4323
4589
|
className: "h-9 w-full min-w-40 flex-1 sm:w-auto"
|
|
4324
4590
|
}
|
|
4325
4591
|
),
|
|
4326
|
-
/* @__PURE__ */
|
|
4327
|
-
onOpenFilters && /* @__PURE__ */
|
|
4592
|
+
/* @__PURE__ */ jsx57("div", { className: "flex flex-wrap items-center gap-2", children }),
|
|
4593
|
+
onOpenFilters && /* @__PURE__ */ jsxs39(Button, { type: "button", variant: "outline", size: "sm", onClick: onOpenFilters, children: [
|
|
4328
4594
|
filtersLabel,
|
|
4329
4595
|
activeCount > 0 ? ` (${activeCount})` : ""
|
|
4330
4596
|
] }),
|
|
4331
|
-
onReset && /* @__PURE__ */
|
|
4597
|
+
onReset && /* @__PURE__ */ jsxs39(Button, { type: "button", variant: "ghost", size: "sm", onClick: onReset, children: [
|
|
4332
4598
|
"Reset",
|
|
4333
4599
|
activeCount > 0 ? ` (${activeCount})` : ""
|
|
4334
4600
|
] }),
|
|
4335
|
-
resultsCount !== void 0 && /* @__PURE__ */
|
|
4601
|
+
resultsCount !== void 0 && /* @__PURE__ */ jsxs39("span", { className: "ml-auto text-sm text-muted-foreground", children: [
|
|
4336
4602
|
resultsCount,
|
|
4337
4603
|
" ",
|
|
4338
4604
|
resultsLabel
|
|
4339
4605
|
] }),
|
|
4340
|
-
trailing && /* @__PURE__ */
|
|
4606
|
+
trailing && /* @__PURE__ */ jsx57("div", { className: cn("flex items-center gap-2", resultsCount === void 0 && "ml-auto"), children: trailing })
|
|
4341
4607
|
]
|
|
4342
4608
|
}
|
|
4343
4609
|
);
|
|
@@ -4345,7 +4611,7 @@ var FilterBar = React57.forwardRef(function FilterBar2({
|
|
|
4345
4611
|
|
|
4346
4612
|
// src/components/date-picker/DatePicker.tsx
|
|
4347
4613
|
import * as React58 from "react";
|
|
4348
|
-
import { jsx as
|
|
4614
|
+
import { jsx as jsx58, jsxs as jsxs40 } from "react/jsx-runtime";
|
|
4349
4615
|
var DatePicker = React58.forwardRef(function DatePicker2({ value, defaultValue, onValueChange, onChange, clearable = false, clearLabel = "Clear date", className, ...props }, ref) {
|
|
4350
4616
|
const [internal, setInternal] = React58.useState(defaultValue ?? "");
|
|
4351
4617
|
const current = value ?? internal;
|
|
@@ -4353,8 +4619,8 @@ var DatePicker = React58.forwardRef(function DatePicker2({ value, defaultValue,
|
|
|
4353
4619
|
if (value === void 0) setInternal(next);
|
|
4354
4620
|
onValueChange?.(next);
|
|
4355
4621
|
};
|
|
4356
|
-
return /* @__PURE__ */
|
|
4357
|
-
/* @__PURE__ */
|
|
4622
|
+
return /* @__PURE__ */ jsxs40("div", { className: cn("relative flex items-center", className), children: [
|
|
4623
|
+
/* @__PURE__ */ jsx58(
|
|
4358
4624
|
Input,
|
|
4359
4625
|
{
|
|
4360
4626
|
ref,
|
|
@@ -4368,13 +4634,13 @@ var DatePicker = React58.forwardRef(function DatePicker2({ value, defaultValue,
|
|
|
4368
4634
|
...props
|
|
4369
4635
|
}
|
|
4370
4636
|
),
|
|
4371
|
-
clearable && current && /* @__PURE__ */
|
|
4637
|
+
clearable && current && /* @__PURE__ */ jsx58(
|
|
4372
4638
|
"button",
|
|
4373
4639
|
{
|
|
4374
4640
|
type: "button",
|
|
4375
4641
|
onClick: () => commit(""),
|
|
4376
4642
|
"aria-label": clearLabel,
|
|
4377
|
-
className: "absolute right-
|
|
4643
|
+
className: "absolute right-1.5 inline-flex h-6 w-6 items-center justify-center rounded text-muted-foreground hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
4378
4644
|
children: "\u2715"
|
|
4379
4645
|
}
|
|
4380
4646
|
)
|
|
@@ -4383,7 +4649,7 @@ var DatePicker = React58.forwardRef(function DatePicker2({ value, defaultValue,
|
|
|
4383
4649
|
|
|
4384
4650
|
// src/components/time-picker/TimePicker.tsx
|
|
4385
4651
|
import * as React59 from "react";
|
|
4386
|
-
import { jsx as
|
|
4652
|
+
import { jsx as jsx59, jsxs as jsxs41 } from "react/jsx-runtime";
|
|
4387
4653
|
var TimePicker = React59.forwardRef(function TimePicker2({ value, defaultValue, onValueChange, onChange, clearable = false, clearLabel = "Clear time", className, ...props }, ref) {
|
|
4388
4654
|
const [internal, setInternal] = React59.useState(defaultValue ?? "");
|
|
4389
4655
|
const current = value ?? internal;
|
|
@@ -4391,8 +4657,8 @@ var TimePicker = React59.forwardRef(function TimePicker2({ value, defaultValue,
|
|
|
4391
4657
|
if (value === void 0) setInternal(next);
|
|
4392
4658
|
onValueChange?.(next);
|
|
4393
4659
|
};
|
|
4394
|
-
return /* @__PURE__ */
|
|
4395
|
-
/* @__PURE__ */
|
|
4660
|
+
return /* @__PURE__ */ jsxs41("div", { className: cn("relative flex items-center", className), children: [
|
|
4661
|
+
/* @__PURE__ */ jsx59(
|
|
4396
4662
|
Input,
|
|
4397
4663
|
{
|
|
4398
4664
|
ref,
|
|
@@ -4406,13 +4672,13 @@ var TimePicker = React59.forwardRef(function TimePicker2({ value, defaultValue,
|
|
|
4406
4672
|
...props
|
|
4407
4673
|
}
|
|
4408
4674
|
),
|
|
4409
|
-
clearable && current && /* @__PURE__ */
|
|
4675
|
+
clearable && current && /* @__PURE__ */ jsx59(
|
|
4410
4676
|
"button",
|
|
4411
4677
|
{
|
|
4412
4678
|
type: "button",
|
|
4413
4679
|
onClick: () => commit(""),
|
|
4414
4680
|
"aria-label": clearLabel,
|
|
4415
|
-
className: "absolute right-
|
|
4681
|
+
className: "absolute right-1.5 inline-flex h-6 w-6 items-center justify-center rounded text-muted-foreground hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
4416
4682
|
children: "\u2715"
|
|
4417
4683
|
}
|
|
4418
4684
|
)
|
|
@@ -4421,53 +4687,146 @@ var TimePicker = React59.forwardRef(function TimePicker2({ value, defaultValue,
|
|
|
4421
4687
|
|
|
4422
4688
|
// src/components/stepper/Stepper.tsx
|
|
4423
4689
|
import * as React60 from "react";
|
|
4424
|
-
import { Fragment as
|
|
4425
|
-
var Stepper = React60.forwardRef(function Stepper2({
|
|
4426
|
-
|
|
4690
|
+
import { Fragment as Fragment11, jsx as jsx60, jsxs as jsxs42 } from "react/jsx-runtime";
|
|
4691
|
+
var Stepper = React60.forwardRef(function Stepper2({
|
|
4692
|
+
steps,
|
|
4693
|
+
current,
|
|
4694
|
+
orientation = "horizontal",
|
|
4695
|
+
variant = "numbered",
|
|
4696
|
+
size = "md",
|
|
4697
|
+
labelPlacement = "inline",
|
|
4698
|
+
alignTitles = "center",
|
|
4699
|
+
onStepClick,
|
|
4700
|
+
className,
|
|
4701
|
+
...props
|
|
4702
|
+
}, ref) {
|
|
4703
|
+
const vertical = orientation === "vertical";
|
|
4704
|
+
const interactive = Boolean(onStepClick);
|
|
4705
|
+
const markerSizeClass = size === "sm" ? "h-6 w-6 text-[11px]" : "h-7 w-7 text-xs";
|
|
4706
|
+
const dotSizeClass = size === "sm" ? "h-2 w-2" : "h-2.5 w-2.5";
|
|
4707
|
+
const labelSizeClass = size === "sm" ? "text-xs" : "text-sm";
|
|
4708
|
+
const descriptionSizeClass = size === "sm" ? "text-[11px]" : "text-xs";
|
|
4709
|
+
const gapClass = size === "sm" ? "gap-1.5" : "gap-2";
|
|
4710
|
+
const verticalTitlePad = size === "sm" ? "pt-0.5" : "pt-1";
|
|
4711
|
+
const connectorTop = variant === "dots" ? size === "sm" ? "mt-1" : "mt-[5px]" : size === "sm" ? "mt-3" : "mt-3.5";
|
|
4712
|
+
const focusClass = "rounded-md focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background";
|
|
4713
|
+
return /* @__PURE__ */ jsx60(
|
|
4427
4714
|
"ol",
|
|
4428
4715
|
{
|
|
4429
4716
|
ref,
|
|
4430
4717
|
className: cn(
|
|
4431
|
-
"flex gap-4",
|
|
4432
|
-
orientation === "vertical" ? "flex-col" : "flex-wrap items-start",
|
|
4718
|
+
vertical ? "flex flex-col" : "flex flex-wrap items-start gap-4",
|
|
4433
4719
|
className
|
|
4434
4720
|
),
|
|
4435
4721
|
...props,
|
|
4436
4722
|
children: steps.map((step, index) => {
|
|
4437
4723
|
const state = index < current ? "complete" : index === current ? "current" : "upcoming";
|
|
4438
|
-
const
|
|
4439
|
-
const
|
|
4440
|
-
|
|
4441
|
-
|
|
4442
|
-
|
|
4443
|
-
|
|
4444
|
-
|
|
4445
|
-
|
|
4724
|
+
const isLast = index === steps.length - 1;
|
|
4725
|
+
const titleCentered = alignTitles === "center" && !step.description;
|
|
4726
|
+
const below = !vertical && labelPlacement === "below";
|
|
4727
|
+
const marker = /* @__PURE__ */ jsx60(
|
|
4728
|
+
"span",
|
|
4729
|
+
{
|
|
4730
|
+
"aria-hidden": "true",
|
|
4731
|
+
className: cn(
|
|
4732
|
+
"flex shrink-0 items-center justify-center",
|
|
4733
|
+
variant === "dots" ? cn(
|
|
4734
|
+
"rounded-full",
|
|
4735
|
+
dotSizeClass,
|
|
4736
|
+
state === "upcoming" ? "bg-border" : "bg-primary",
|
|
4737
|
+
state === "current" && "ring-2 ring-primary/30 ring-offset-2 ring-offset-background"
|
|
4738
|
+
) : cn(
|
|
4739
|
+
"rounded-full border font-medium",
|
|
4740
|
+
markerSizeClass,
|
|
4446
4741
|
state === "complete" && "border-primary bg-primary text-primary-foreground",
|
|
4447
4742
|
state === "current" && "border-primary text-primary",
|
|
4448
4743
|
state === "upcoming" && "border-border text-muted-foreground"
|
|
4744
|
+
)
|
|
4745
|
+
),
|
|
4746
|
+
children: variant === "numbered" ? state === "complete" ? "\u2713" : index + 1 : null
|
|
4747
|
+
}
|
|
4748
|
+
);
|
|
4749
|
+
const label = /* @__PURE__ */ jsxs42("span", { className: "min-w-0", children: [
|
|
4750
|
+
/* @__PURE__ */ jsx60(
|
|
4751
|
+
"span",
|
|
4752
|
+
{
|
|
4753
|
+
className: cn(
|
|
4754
|
+
"block leading-5",
|
|
4755
|
+
labelSizeClass,
|
|
4756
|
+
below && "text-center",
|
|
4757
|
+
state === "upcoming" ? "text-muted-foreground" : "font-medium"
|
|
4449
4758
|
),
|
|
4450
|
-
children:
|
|
4759
|
+
children: step.label
|
|
4451
4760
|
}
|
|
4452
4761
|
),
|
|
4453
|
-
/* @__PURE__ */
|
|
4454
|
-
|
|
4455
|
-
|
|
4456
|
-
|
|
4457
|
-
|
|
4762
|
+
step.description && /* @__PURE__ */ jsx60(
|
|
4763
|
+
"span",
|
|
4764
|
+
{
|
|
4765
|
+
className: cn(
|
|
4766
|
+
"mt-0.5 block leading-4 text-muted-foreground",
|
|
4767
|
+
descriptionSizeClass,
|
|
4768
|
+
below && "text-center"
|
|
4769
|
+
),
|
|
4770
|
+
children: step.description
|
|
4771
|
+
}
|
|
4772
|
+
),
|
|
4773
|
+
/* @__PURE__ */ jsx60("span", { className: "sr-only", children: state === "complete" ? " (completed)" : state === "current" ? " (current step)" : " (upcoming)" })
|
|
4458
4774
|
] });
|
|
4459
|
-
|
|
4460
|
-
|
|
4461
|
-
|
|
4775
|
+
const renderRow = (children, rowClassName) => interactive ? /* @__PURE__ */ jsx60(
|
|
4776
|
+
"button",
|
|
4777
|
+
{
|
|
4778
|
+
type: "button",
|
|
4779
|
+
onClick: () => onStepClick?.(index),
|
|
4780
|
+
"aria-current": state === "current" ? "step" : void 0,
|
|
4781
|
+
className: cn(rowClassName, focusClass),
|
|
4782
|
+
children
|
|
4783
|
+
}
|
|
4784
|
+
) : /* @__PURE__ */ jsx60("div", { "aria-current": state === "current" ? "step" : void 0, className: rowClassName, children });
|
|
4785
|
+
if (vertical) {
|
|
4786
|
+
return /* @__PURE__ */ jsx60("li", { className: "flex", children: renderRow(
|
|
4787
|
+
/* @__PURE__ */ jsxs42(Fragment11, { children: [
|
|
4788
|
+
/* @__PURE__ */ jsxs42("div", { className: "flex flex-col items-center", children: [
|
|
4789
|
+
marker,
|
|
4790
|
+
!isLast && /* @__PURE__ */ jsx60("span", { "aria-hidden": "true", className: "my-1 w-px flex-1 rounded-full bg-border" })
|
|
4791
|
+
] }),
|
|
4792
|
+
/* @__PURE__ */ jsx60("div", { className: cn("min-w-0 pb-6", titleCentered && verticalTitlePad), children: label })
|
|
4793
|
+
] }),
|
|
4794
|
+
"flex w-full items-stretch gap-3 text-left"
|
|
4795
|
+
) }, step.label);
|
|
4796
|
+
}
|
|
4797
|
+
if (below) {
|
|
4798
|
+
return /* @__PURE__ */ jsxs42("li", { className: "flex min-w-0 flex-1 items-start gap-2", children: [
|
|
4799
|
+
renderRow(
|
|
4800
|
+
/* @__PURE__ */ jsxs42(Fragment11, { children: [
|
|
4801
|
+
marker,
|
|
4802
|
+
label
|
|
4803
|
+
] }),
|
|
4804
|
+
"flex min-w-0 flex-1 flex-col items-center gap-2 text-center"
|
|
4805
|
+
),
|
|
4806
|
+
!isLast && /* @__PURE__ */ jsx60(
|
|
4807
|
+
"span",
|
|
4808
|
+
{
|
|
4809
|
+
"aria-hidden": "true",
|
|
4810
|
+
className: cn("h-px min-w-4 flex-1 bg-border", connectorTop)
|
|
4811
|
+
}
|
|
4812
|
+
)
|
|
4813
|
+
] }, step.label);
|
|
4814
|
+
}
|
|
4815
|
+
return /* @__PURE__ */ jsxs42("li", { className: "flex min-w-0 items-start gap-2", children: [
|
|
4816
|
+
renderRow(
|
|
4817
|
+
/* @__PURE__ */ jsxs42(Fragment11, { children: [
|
|
4818
|
+
marker,
|
|
4819
|
+
label
|
|
4820
|
+
] }),
|
|
4821
|
+
cn("flex min-w-0 text-left", gapClass, titleCentered ? "items-center" : "items-start")
|
|
4822
|
+
),
|
|
4823
|
+
!isLast && /* @__PURE__ */ jsx60(
|
|
4824
|
+
"span",
|
|
4462
4825
|
{
|
|
4463
|
-
|
|
4464
|
-
|
|
4465
|
-
"aria-current": state === "current" ? "step" : void 0,
|
|
4466
|
-
className: "flex items-start gap-2 rounded-md text-left focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
4467
|
-
children: content
|
|
4826
|
+
"aria-hidden": "true",
|
|
4827
|
+
className: cn("h-px w-6 shrink-0 bg-border sm:w-8", connectorTop)
|
|
4468
4828
|
}
|
|
4469
|
-
)
|
|
4470
|
-
orientation === "horizontal" && index < steps.length - 1 && /* @__PURE__ */ jsx59("span", { "aria-hidden": "true", className: "mt-3.5 hidden h-px w-8 bg-border sm:block" })
|
|
4829
|
+
)
|
|
4471
4830
|
] }, step.label);
|
|
4472
4831
|
})
|
|
4473
4832
|
}
|
|
@@ -4476,7 +4835,7 @@ var Stepper = React60.forwardRef(function Stepper2({ steps, current, orientation
|
|
|
4476
4835
|
|
|
4477
4836
|
// src/components/file-upload/FileUpload.tsx
|
|
4478
4837
|
import * as React61 from "react";
|
|
4479
|
-
import { jsx as
|
|
4838
|
+
import { jsx as jsx61, jsxs as jsxs43 } from "react/jsx-runtime";
|
|
4480
4839
|
function formatSize(bytes) {
|
|
4481
4840
|
if (bytes < 1024) return `${bytes} B`;
|
|
4482
4841
|
if (bytes < 1024 * 1024) return `${(bytes / 1024).toFixed(1)} KB`;
|
|
@@ -4513,8 +4872,8 @@ var FileUpload = React61.forwardRef(function FileUpload2({
|
|
|
4513
4872
|
const list = Array.from(incoming);
|
|
4514
4873
|
commit(multiple ? [...current, ...list] : list.slice(0, 1));
|
|
4515
4874
|
};
|
|
4516
|
-
return /* @__PURE__ */
|
|
4517
|
-
/* @__PURE__ */
|
|
4875
|
+
return /* @__PURE__ */ jsxs43("div", { className: cn("flex flex-col gap-3", className), children: [
|
|
4876
|
+
/* @__PURE__ */ jsxs43(
|
|
4518
4877
|
"div",
|
|
4519
4878
|
{
|
|
4520
4879
|
onDragOver: (event) => {
|
|
@@ -4535,9 +4894,9 @@ var FileUpload = React61.forwardRef(function FileUpload2({
|
|
|
4535
4894
|
disabled && "opacity-50"
|
|
4536
4895
|
),
|
|
4537
4896
|
children: [
|
|
4538
|
-
/* @__PURE__ */
|
|
4897
|
+
/* @__PURE__ */ jsxs43("label", { htmlFor: inputId, className: cn("block text-sm", disabled ? "cursor-not-allowed" : "cursor-pointer"), children: [
|
|
4539
4898
|
label,
|
|
4540
|
-
/* @__PURE__ */
|
|
4899
|
+
/* @__PURE__ */ jsx61(
|
|
4541
4900
|
"input",
|
|
4542
4901
|
{
|
|
4543
4902
|
ref,
|
|
@@ -4555,15 +4914,15 @@ var FileUpload = React61.forwardRef(function FileUpload2({
|
|
|
4555
4914
|
}
|
|
4556
4915
|
)
|
|
4557
4916
|
] }),
|
|
4558
|
-
/* @__PURE__ */
|
|
4917
|
+
/* @__PURE__ */ jsx61("p", { className: "mt-1 text-xs text-muted-foreground", children: hint ?? (accept ? `Accepted: ${accept}` : "Any file type") })
|
|
4559
4918
|
]
|
|
4560
4919
|
}
|
|
4561
4920
|
),
|
|
4562
|
-
current.length > 0 && /* @__PURE__ */
|
|
4563
|
-
/* @__PURE__ */
|
|
4564
|
-
/* @__PURE__ */
|
|
4565
|
-
/* @__PURE__ */
|
|
4566
|
-
progress?.[file.name] !== void 0 && /* @__PURE__ */
|
|
4921
|
+
current.length > 0 && /* @__PURE__ */ jsx61("ul", { "aria-label": selectedFilesLabel, className: "space-y-2", children: current.map((file) => /* @__PURE__ */ jsxs43("li", { className: "flex items-center justify-between gap-3 rounded-md border border-border px-3 py-2", children: [
|
|
4922
|
+
/* @__PURE__ */ jsxs43("div", { className: "min-w-0", children: [
|
|
4923
|
+
/* @__PURE__ */ jsx61("p", { className: "truncate text-sm", children: file.name }),
|
|
4924
|
+
/* @__PURE__ */ jsx61("p", { className: "text-xs text-muted-foreground", children: formatSize(file.size) }),
|
|
4925
|
+
progress?.[file.name] !== void 0 && /* @__PURE__ */ jsx61(
|
|
4567
4926
|
"div",
|
|
4568
4927
|
{
|
|
4569
4928
|
role: "progressbar",
|
|
@@ -4572,11 +4931,11 @@ var FileUpload = React61.forwardRef(function FileUpload2({
|
|
|
4572
4931
|
"aria-valuemax": 100,
|
|
4573
4932
|
"aria-label": uploadingLabel(file),
|
|
4574
4933
|
className: "mt-1 h-1.5 w-40 overflow-hidden rounded-full bg-muted",
|
|
4575
|
-
children: /* @__PURE__ */
|
|
4934
|
+
children: /* @__PURE__ */ jsx61("div", { className: "h-full bg-primary", style: { width: `${progress[file.name]}%` } })
|
|
4576
4935
|
}
|
|
4577
4936
|
)
|
|
4578
4937
|
] }),
|
|
4579
|
-
/* @__PURE__ */
|
|
4938
|
+
/* @__PURE__ */ jsx61(
|
|
4580
4939
|
"button",
|
|
4581
4940
|
{
|
|
4582
4941
|
type: "button",
|
|
@@ -4592,11 +4951,11 @@ var FileUpload = React61.forwardRef(function FileUpload2({
|
|
|
4592
4951
|
|
|
4593
4952
|
// src/components/timeline/Timeline.tsx
|
|
4594
4953
|
import * as React62 from "react";
|
|
4595
|
-
import { jsx as
|
|
4954
|
+
import { jsx as jsx62, jsxs as jsxs44 } from "react/jsx-runtime";
|
|
4596
4955
|
var Timeline = React62.forwardRef(function Timeline2({ items, className, ...props }, ref) {
|
|
4597
|
-
return /* @__PURE__ */
|
|
4598
|
-
/* @__PURE__ */
|
|
4599
|
-
/* @__PURE__ */
|
|
4956
|
+
return /* @__PURE__ */ jsx62("ol", { ref, className: cn("relative flex flex-col gap-6", className), ...props, children: items.map((item, index) => /* @__PURE__ */ jsxs44("li", { className: "relative flex gap-4", children: [
|
|
4957
|
+
/* @__PURE__ */ jsxs44("div", { className: "flex flex-col items-center", children: [
|
|
4958
|
+
/* @__PURE__ */ jsx62(
|
|
4600
4959
|
"span",
|
|
4601
4960
|
{
|
|
4602
4961
|
"aria-hidden": "true",
|
|
@@ -4606,24 +4965,24 @@ var Timeline = React62.forwardRef(function Timeline2({ items, className, ...prop
|
|
|
4606
4965
|
)
|
|
4607
4966
|
}
|
|
4608
4967
|
),
|
|
4609
|
-
index < items.length - 1 && /* @__PURE__ */
|
|
4968
|
+
index < items.length - 1 && /* @__PURE__ */ jsx62("span", { "aria-hidden": "true", className: "mt-1 w-px flex-1 bg-border" })
|
|
4610
4969
|
] }),
|
|
4611
|
-
/* @__PURE__ */
|
|
4612
|
-
item.period && /* @__PURE__ */
|
|
4613
|
-
/* @__PURE__ */
|
|
4614
|
-
item.description && /* @__PURE__ */
|
|
4615
|
-
item.icon && /* @__PURE__ */
|
|
4970
|
+
/* @__PURE__ */ jsxs44("div", { className: "min-w-0 pb-1", children: [
|
|
4971
|
+
item.period && /* @__PURE__ */ jsx62("p", { className: "text-xs font-medium uppercase tracking-wide text-muted-foreground", children: item.period }),
|
|
4972
|
+
/* @__PURE__ */ jsx62("p", { className: cn("text-sm font-semibold", item.muted && "text-muted-foreground"), children: item.title }),
|
|
4973
|
+
item.description && /* @__PURE__ */ jsx62("p", { className: "mt-1 text-sm text-muted-foreground", children: item.description }),
|
|
4974
|
+
item.icon && /* @__PURE__ */ jsx62("div", { className: "mt-1 text-muted-foreground [&_svg]:size-4", children: item.icon })
|
|
4616
4975
|
] })
|
|
4617
4976
|
] }, `${item.title}-${index}`)) });
|
|
4618
4977
|
});
|
|
4619
4978
|
|
|
4620
4979
|
// src/components/block/Block.tsx
|
|
4621
4980
|
import * as React63 from "react";
|
|
4622
|
-
import { jsx as
|
|
4981
|
+
import { jsx as jsx63 } from "react/jsx-runtime";
|
|
4623
4982
|
var Block = React63.forwardRef(
|
|
4624
4983
|
({ as = "div", inline, muted, className, ...props }, ref) => {
|
|
4625
4984
|
const Tag = inline ? "span" : as;
|
|
4626
|
-
return /* @__PURE__ */
|
|
4985
|
+
return /* @__PURE__ */ jsx63(
|
|
4627
4986
|
Tag,
|
|
4628
4987
|
{
|
|
4629
4988
|
ref,
|
|
@@ -4637,7 +4996,7 @@ Block.displayName = "Block";
|
|
|
4637
4996
|
|
|
4638
4997
|
// src/components/flex/Flex.tsx
|
|
4639
4998
|
import * as React64 from "react";
|
|
4640
|
-
import { jsx as
|
|
4999
|
+
import { jsx as jsx64 } from "react/jsx-runtime";
|
|
4641
5000
|
var justifyClasses = {
|
|
4642
5001
|
start: "justify-start",
|
|
4643
5002
|
center: "justify-center",
|
|
@@ -4657,7 +5016,7 @@ var Flex = React64.forwardRef(
|
|
|
4657
5016
|
({ direction = "row", align, justify, wrap, gap = "md", as = "div", className, style, ...props }, ref) => {
|
|
4658
5017
|
const Tag = as;
|
|
4659
5018
|
const gapResolved = resolveGap(gap);
|
|
4660
|
-
return /* @__PURE__ */
|
|
5019
|
+
return /* @__PURE__ */ jsx64(
|
|
4661
5020
|
Tag,
|
|
4662
5021
|
{
|
|
4663
5022
|
ref,
|
|
@@ -4692,7 +5051,7 @@ var FlexItem = React64.forwardRef(
|
|
|
4692
5051
|
...shrink === false ? { flexShrink: 0 } : typeof shrink === "string" && shrink ? { flexShrink: Number(shrink) || shrink } : {},
|
|
4693
5052
|
...basis ? { flexBasis: basis } : {}
|
|
4694
5053
|
};
|
|
4695
|
-
return /* @__PURE__ */
|
|
5054
|
+
return /* @__PURE__ */ jsx64(
|
|
4696
5055
|
Tag,
|
|
4697
5056
|
{
|
|
4698
5057
|
ref,
|
|
@@ -4707,7 +5066,7 @@ FlexItem.displayName = "FlexItem";
|
|
|
4707
5066
|
|
|
4708
5067
|
// src/components/grid/Grid.tsx
|
|
4709
5068
|
import * as React65 from "react";
|
|
4710
|
-
import { jsx as
|
|
5069
|
+
import { jsx as jsx65 } from "react/jsx-runtime";
|
|
4711
5070
|
var BASE_COLS = {
|
|
4712
5071
|
1: "grid-cols-1",
|
|
4713
5072
|
2: "grid-cols-2",
|
|
@@ -4776,7 +5135,7 @@ var Grid = React65.forwardRef(
|
|
|
4776
5135
|
({ cols, smCols, mdCols, lgCols, minCol, gap = "md", as = "div", className, style, ...props }, ref) => {
|
|
4777
5136
|
const Tag = as;
|
|
4778
5137
|
const gapResolved = resolveGap(gap);
|
|
4779
|
-
return /* @__PURE__ */
|
|
5138
|
+
return /* @__PURE__ */ jsx65(
|
|
4780
5139
|
Tag,
|
|
4781
5140
|
{
|
|
4782
5141
|
ref,
|
|
@@ -4803,7 +5162,7 @@ Grid.displayName = "Grid";
|
|
|
4803
5162
|
var GridItem = React65.forwardRef(
|
|
4804
5163
|
({ span, smSpan, mdSpan, lgSpan, as = "div", className, ...props }, ref) => {
|
|
4805
5164
|
const Tag = as;
|
|
4806
|
-
return /* @__PURE__ */
|
|
5165
|
+
return /* @__PURE__ */ jsx65(
|
|
4807
5166
|
Tag,
|
|
4808
5167
|
{
|
|
4809
5168
|
ref,
|
|
@@ -4823,7 +5182,7 @@ GridItem.displayName = "GridItem";
|
|
|
4823
5182
|
|
|
4824
5183
|
// src/components/container/Container.tsx
|
|
4825
5184
|
import * as React66 from "react";
|
|
4826
|
-
import { jsx as
|
|
5185
|
+
import { jsx as jsx66 } from "react/jsx-runtime";
|
|
4827
5186
|
var widthClasses = {
|
|
4828
5187
|
sm: "max-w-3xl",
|
|
4829
5188
|
md: "max-w-5xl",
|
|
@@ -4839,7 +5198,7 @@ var paddingClasses = {
|
|
|
4839
5198
|
};
|
|
4840
5199
|
var Container = React66.forwardRef(function Container2({ width = "lg", padding = "md", as = "div", className, ...props }, ref) {
|
|
4841
5200
|
const Tag = as;
|
|
4842
|
-
return /* @__PURE__ */
|
|
5201
|
+
return /* @__PURE__ */ jsx66(
|
|
4843
5202
|
Tag,
|
|
4844
5203
|
{
|
|
4845
5204
|
ref,
|
|
@@ -4851,8 +5210,8 @@ var Container = React66.forwardRef(function Container2({ width = "lg", padding =
|
|
|
4851
5210
|
|
|
4852
5211
|
// src/components/section/Section.tsx
|
|
4853
5212
|
import * as React67 from "react";
|
|
4854
|
-
import { jsx as
|
|
4855
|
-
var
|
|
5213
|
+
import { jsx as jsx67 } from "react/jsx-runtime";
|
|
5214
|
+
var toneClasses2 = {
|
|
4856
5215
|
default: "bg-background text-foreground",
|
|
4857
5216
|
muted: "bg-muted/40 text-foreground",
|
|
4858
5217
|
subtle: "bg-secondary/50 text-secondary-foreground",
|
|
@@ -4905,25 +5264,25 @@ var Section = React67.forwardRef(function Section2({
|
|
|
4905
5264
|
}, ref) {
|
|
4906
5265
|
const Tag = as;
|
|
4907
5266
|
const toneStyle = tone === "inverse" ? inverseVars : tone === "brand" ? brandVars : void 0;
|
|
4908
|
-
return /* @__PURE__ */
|
|
5267
|
+
return /* @__PURE__ */ jsx67(
|
|
4909
5268
|
Tag,
|
|
4910
5269
|
{
|
|
4911
5270
|
ref,
|
|
4912
5271
|
"data-tone": tone === "default" ? void 0 : tone,
|
|
4913
|
-
className: cn("w-full",
|
|
5272
|
+
className: cn("w-full", toneClasses2[tone], paddingClasses2[padding], className),
|
|
4914
5273
|
style: { ...toneStyle, ...style },
|
|
4915
5274
|
...props,
|
|
4916
|
-
children: container ? /* @__PURE__ */
|
|
5275
|
+
children: container ? /* @__PURE__ */ jsx67(Container, { width, className: containerClassName, children }) : children
|
|
4917
5276
|
}
|
|
4918
5277
|
);
|
|
4919
5278
|
});
|
|
4920
5279
|
|
|
4921
5280
|
// src/components/hero/Hero.tsx
|
|
4922
5281
|
import * as React68 from "react";
|
|
4923
|
-
import { jsx as
|
|
5282
|
+
import { jsx as jsx68, jsxs as jsxs45 } from "react/jsx-runtime";
|
|
4924
5283
|
var titleSizes = {
|
|
4925
|
-
md: "text-
|
|
4926
|
-
lg: "text-4xl sm:text-5xl
|
|
5284
|
+
md: "text-3xl sm:text-4xl md:text-5xl",
|
|
5285
|
+
lg: "text-4xl sm:text-5xl md:text-6xl lg:leading-[1.05]"
|
|
4927
5286
|
};
|
|
4928
5287
|
var Hero = React68.forwardRef(function Hero2({
|
|
4929
5288
|
title,
|
|
@@ -4942,6 +5301,7 @@ var Hero = React68.forwardRef(function Hero2({
|
|
|
4942
5301
|
descriptionClassName,
|
|
4943
5302
|
eyebrowClassName,
|
|
4944
5303
|
badgeClassName,
|
|
5304
|
+
mediaClassName,
|
|
4945
5305
|
className,
|
|
4946
5306
|
...props
|
|
4947
5307
|
}, ref) {
|
|
@@ -4949,28 +5309,131 @@ var Hero = React68.forwardRef(function Hero2({
|
|
|
4949
5309
|
const layout = variant ?? (media ? "split" : "centered");
|
|
4950
5310
|
const Heading2 = `h${level}`;
|
|
4951
5311
|
const centered = layout === "centered" || align === "center";
|
|
4952
|
-
const
|
|
4953
|
-
|
|
4954
|
-
|
|
4955
|
-
|
|
4956
|
-
|
|
4957
|
-
|
|
4958
|
-
|
|
5312
|
+
const overlay = layout === "overlay";
|
|
5313
|
+
const copy = /* @__PURE__ */ jsxs45(
|
|
5314
|
+
"div",
|
|
5315
|
+
{
|
|
5316
|
+
className: cn(
|
|
5317
|
+
"min-w-0",
|
|
5318
|
+
centered && "mx-auto flex max-w-3xl flex-col items-center text-center",
|
|
5319
|
+
overlay && "max-w-2xl"
|
|
5320
|
+
),
|
|
5321
|
+
children: [
|
|
5322
|
+
badge && /* @__PURE__ */ jsx68(
|
|
5323
|
+
"div",
|
|
5324
|
+
{
|
|
5325
|
+
className: cn(
|
|
5326
|
+
"mb-5 inline-flex rounded-full border px-3 py-1 text-xs font-medium",
|
|
5327
|
+
overlay ? "border-background/30 bg-background/10 text-background" : "border-primary/30 bg-primary/10 text-primary",
|
|
5328
|
+
badgeClassName
|
|
5329
|
+
),
|
|
5330
|
+
children: badge
|
|
5331
|
+
}
|
|
5332
|
+
),
|
|
5333
|
+
eyebrow && /* @__PURE__ */ jsx68(
|
|
5334
|
+
"p",
|
|
5335
|
+
{
|
|
5336
|
+
className: cn(
|
|
5337
|
+
"mb-3 text-xs font-semibold uppercase tracking-widest",
|
|
5338
|
+
overlay ? "text-background/90" : "text-primary",
|
|
5339
|
+
eyebrowClassName
|
|
5340
|
+
),
|
|
5341
|
+
children: eyebrow
|
|
5342
|
+
}
|
|
5343
|
+
),
|
|
5344
|
+
/* @__PURE__ */ jsx68(
|
|
5345
|
+
Heading2,
|
|
5346
|
+
{
|
|
5347
|
+
className: cn(
|
|
5348
|
+
"font-semibold tracking-tight text-balance",
|
|
5349
|
+
titleSizes[size],
|
|
5350
|
+
overlay && "text-background",
|
|
5351
|
+
titleClassName
|
|
5352
|
+
),
|
|
5353
|
+
children: title
|
|
5354
|
+
}
|
|
5355
|
+
),
|
|
5356
|
+
description && /* @__PURE__ */ jsx68(
|
|
5357
|
+
"p",
|
|
5358
|
+
{
|
|
5359
|
+
className: cn(
|
|
5360
|
+
"mt-5 text-base leading-relaxed sm:text-lg",
|
|
5361
|
+
overlay ? "text-background/80" : "text-muted-foreground",
|
|
5362
|
+
centered ? "max-w-2xl" : "max-w-xl",
|
|
5363
|
+
descriptionClassName
|
|
5364
|
+
),
|
|
5365
|
+
children: description
|
|
5366
|
+
}
|
|
5367
|
+
),
|
|
5368
|
+
actions && /* @__PURE__ */ jsx68(
|
|
5369
|
+
"div",
|
|
5370
|
+
{
|
|
5371
|
+
className: cn(
|
|
5372
|
+
"mt-8 flex flex-wrap items-center gap-3",
|
|
5373
|
+
centered && "justify-center"
|
|
5374
|
+
),
|
|
5375
|
+
children: actions
|
|
5376
|
+
}
|
|
5377
|
+
)
|
|
5378
|
+
]
|
|
5379
|
+
}
|
|
5380
|
+
);
|
|
5381
|
+
if (overlay) {
|
|
5382
|
+
return /* @__PURE__ */ jsxs45(
|
|
5383
|
+
Tag,
|
|
5384
|
+
{
|
|
5385
|
+
ref,
|
|
5386
|
+
className: cn(
|
|
5387
|
+
"relative isolate flex min-h-[22rem] w-full items-center overflow-hidden rounded-lg py-12 sm:min-h-[26rem] sm:py-16 lg:min-h-[32rem] lg:py-20",
|
|
5388
|
+
className
|
|
5389
|
+
),
|
|
5390
|
+
...props,
|
|
5391
|
+
children: [
|
|
5392
|
+
media && /* @__PURE__ */ jsx68(
|
|
5393
|
+
"div",
|
|
5394
|
+
{
|
|
5395
|
+
className: cn(
|
|
5396
|
+
"absolute inset-0 -z-20 [&>*]:h-full [&>*]:w-full [&>*]:object-cover",
|
|
5397
|
+
mediaClassName
|
|
5398
|
+
),
|
|
5399
|
+
children: media
|
|
5400
|
+
}
|
|
5401
|
+
),
|
|
5402
|
+
/* @__PURE__ */ jsx68("div", { "aria-hidden": "true", className: "absolute inset-0 -z-10 bg-foreground/60" }),
|
|
5403
|
+
/* @__PURE__ */ jsx68("div", { className: "relative w-full px-4 sm:px-6 lg:px-10", children: copy })
|
|
5404
|
+
]
|
|
5405
|
+
}
|
|
5406
|
+
);
|
|
5407
|
+
}
|
|
4959
5408
|
if (layout === "centered") {
|
|
4960
|
-
return /* @__PURE__ */
|
|
5409
|
+
return /* @__PURE__ */ jsxs45(Tag, { ref, className: cn("w-full", className), ...props, children: [
|
|
4961
5410
|
copy,
|
|
4962
|
-
media && /* @__PURE__ */
|
|
5411
|
+
media && /* @__PURE__ */ jsx68("div", { className: cn("mt-12 min-w-0", mediaClassName), children: media })
|
|
4963
5412
|
] });
|
|
4964
5413
|
}
|
|
4965
|
-
|
|
5414
|
+
if (layout === "stacked") {
|
|
5415
|
+
return /* @__PURE__ */ jsxs45(
|
|
5416
|
+
Tag,
|
|
5417
|
+
{
|
|
5418
|
+
ref,
|
|
5419
|
+
className: cn("flex w-full flex-col gap-10 lg:gap-14", className),
|
|
5420
|
+
...props,
|
|
5421
|
+
children: [
|
|
5422
|
+
copy,
|
|
5423
|
+
media && /* @__PURE__ */ jsx68("div", { className: cn("min-w-0 w-full", mediaClassName), children: media })
|
|
5424
|
+
]
|
|
5425
|
+
}
|
|
5426
|
+
);
|
|
5427
|
+
}
|
|
5428
|
+
return /* @__PURE__ */ jsxs45(
|
|
4966
5429
|
Tag,
|
|
4967
5430
|
{
|
|
4968
5431
|
ref,
|
|
4969
|
-
className: cn("grid w-full items-center gap-10 lg:grid-cols-2 lg:gap-16", className),
|
|
5432
|
+
className: cn("grid w-full items-center gap-10 lg:grid-cols-2 lg:gap-16 xl:gap-20", className),
|
|
4970
5433
|
...props,
|
|
4971
5434
|
children: [
|
|
4972
|
-
/* @__PURE__ */
|
|
4973
|
-
media && /* @__PURE__ */
|
|
5435
|
+
/* @__PURE__ */ jsx68("div", { className: cn(mediaPosition === "left" && "lg:order-2"), children: copy }),
|
|
5436
|
+
media && /* @__PURE__ */ jsx68("div", { className: cn("min-w-0", mediaPosition === "left" && "lg:order-1", mediaClassName), children: media })
|
|
4974
5437
|
]
|
|
4975
5438
|
}
|
|
4976
5439
|
);
|
|
@@ -4978,7 +5441,7 @@ var Hero = React68.forwardRef(function Hero2({
|
|
|
4978
5441
|
|
|
4979
5442
|
// src/components/stat-band/StatBand.tsx
|
|
4980
5443
|
import * as React69 from "react";
|
|
4981
|
-
import { jsx as
|
|
5444
|
+
import { jsx as jsx69, jsxs as jsxs46 } from "react/jsx-runtime";
|
|
4982
5445
|
var columnClasses = {
|
|
4983
5446
|
2: "sm:grid-cols-2",
|
|
4984
5447
|
3: "sm:grid-cols-2 lg:grid-cols-3",
|
|
@@ -4990,7 +5453,7 @@ var valueClasses = {
|
|
|
4990
5453
|
lg: "text-4xl sm:text-5xl"
|
|
4991
5454
|
};
|
|
4992
5455
|
var StatBand = React69.forwardRef(function StatBand2({ items, columns = 3, align = "center", size = "md", divided = true, className, ...props }, ref) {
|
|
4993
|
-
return /* @__PURE__ */
|
|
5456
|
+
return /* @__PURE__ */ jsx69(
|
|
4994
5457
|
"dl",
|
|
4995
5458
|
{
|
|
4996
5459
|
ref,
|
|
@@ -5001,7 +5464,7 @@ var StatBand = React69.forwardRef(function StatBand2({ items, columns = 3, align
|
|
|
5001
5464
|
className
|
|
5002
5465
|
),
|
|
5003
5466
|
...props,
|
|
5004
|
-
children: items.map((item) => /* @__PURE__ */
|
|
5467
|
+
children: items.map((item) => /* @__PURE__ */ jsxs46(
|
|
5005
5468
|
"div",
|
|
5006
5469
|
{
|
|
5007
5470
|
className: cn(
|
|
@@ -5009,11 +5472,11 @@ var StatBand = React69.forwardRef(function StatBand2({ items, columns = 3, align
|
|
|
5009
5472
|
align === "center" ? "items-center text-center" : "items-start text-left"
|
|
5010
5473
|
),
|
|
5011
5474
|
children: [
|
|
5012
|
-
/* @__PURE__ */
|
|
5475
|
+
/* @__PURE__ */ jsxs46("dt", { className: "order-2 text-sm font-medium text-muted-foreground", children: [
|
|
5013
5476
|
item.label,
|
|
5014
|
-
item.hint && /* @__PURE__ */
|
|
5477
|
+
item.hint && /* @__PURE__ */ jsx69("span", { className: "mt-1 block text-xs font-normal", children: item.hint })
|
|
5015
5478
|
] }),
|
|
5016
|
-
/* @__PURE__ */
|
|
5479
|
+
/* @__PURE__ */ jsx69("dd", { className: cn("order-1 m-0 font-semibold tracking-tight tabular-nums", valueClasses[size]), children: item.value })
|
|
5017
5480
|
]
|
|
5018
5481
|
},
|
|
5019
5482
|
item.label
|
|
@@ -5024,7 +5487,7 @@ var StatBand = React69.forwardRef(function StatBand2({ items, columns = 3, align
|
|
|
5024
5487
|
|
|
5025
5488
|
// src/components/cta-section/CTASection.tsx
|
|
5026
5489
|
import * as React70 from "react";
|
|
5027
|
-
import { jsx as
|
|
5490
|
+
import { jsx as jsx70, jsxs as jsxs47 } from "react/jsx-runtime";
|
|
5028
5491
|
var sizePadding = {
|
|
5029
5492
|
sm: "md",
|
|
5030
5493
|
md: "lg",
|
|
@@ -5042,7 +5505,7 @@ var CTASection = React70.forwardRef(function CTASection2({
|
|
|
5042
5505
|
className,
|
|
5043
5506
|
...props
|
|
5044
5507
|
}, ref) {
|
|
5045
|
-
return /* @__PURE__ */
|
|
5508
|
+
return /* @__PURE__ */ jsx70(
|
|
5046
5509
|
Section,
|
|
5047
5510
|
{
|
|
5048
5511
|
ref,
|
|
@@ -5051,7 +5514,7 @@ var CTASection = React70.forwardRef(function CTASection2({
|
|
|
5051
5514
|
width,
|
|
5052
5515
|
className,
|
|
5053
5516
|
...props,
|
|
5054
|
-
children: /* @__PURE__ */
|
|
5517
|
+
children: /* @__PURE__ */ jsxs47(
|
|
5055
5518
|
"div",
|
|
5056
5519
|
{
|
|
5057
5520
|
className: cn(
|
|
@@ -5059,10 +5522,10 @@ var CTASection = React70.forwardRef(function CTASection2({
|
|
|
5059
5522
|
align === "center" ? "items-center text-center" : "items-start text-left"
|
|
5060
5523
|
),
|
|
5061
5524
|
children: [
|
|
5062
|
-
eyebrow && /* @__PURE__ */
|
|
5063
|
-
/* @__PURE__ */
|
|
5064
|
-
description && /* @__PURE__ */
|
|
5065
|
-
actions && /* @__PURE__ */
|
|
5525
|
+
eyebrow && /* @__PURE__ */ jsx70("p", { className: "text-xs font-semibold uppercase tracking-widest text-primary", children: eyebrow }),
|
|
5526
|
+
/* @__PURE__ */ jsx70("h2", { className: "max-w-3xl text-3xl font-semibold tracking-tight text-balance sm:text-4xl", children: title }),
|
|
5527
|
+
description && /* @__PURE__ */ jsx70("p", { className: cn("max-w-2xl text-base leading-relaxed text-muted-foreground sm:text-lg"), children: description }),
|
|
5528
|
+
actions && /* @__PURE__ */ jsx70("div", { className: cn("mt-2 flex flex-wrap items-center gap-3", align === "center" && "justify-center"), children: actions })
|
|
5066
5529
|
]
|
|
5067
5530
|
}
|
|
5068
5531
|
)
|
|
@@ -5072,9 +5535,9 @@ var CTASection = React70.forwardRef(function CTASection2({
|
|
|
5072
5535
|
|
|
5073
5536
|
// src/components/comparison-table/ComparisonTable.tsx
|
|
5074
5537
|
import * as React71 from "react";
|
|
5075
|
-
import { Fragment as
|
|
5538
|
+
import { Fragment as Fragment12, jsx as jsx71, jsxs as jsxs48 } from "react/jsx-runtime";
|
|
5076
5539
|
function CheckMark() {
|
|
5077
|
-
return /* @__PURE__ */
|
|
5540
|
+
return /* @__PURE__ */ jsx71(
|
|
5078
5541
|
"svg",
|
|
5079
5542
|
{
|
|
5080
5543
|
"aria-hidden": "true",
|
|
@@ -5085,12 +5548,12 @@ function CheckMark() {
|
|
|
5085
5548
|
strokeLinecap: "round",
|
|
5086
5549
|
strokeLinejoin: "round",
|
|
5087
5550
|
className: "mx-auto h-5 w-5 text-success",
|
|
5088
|
-
children: /* @__PURE__ */
|
|
5551
|
+
children: /* @__PURE__ */ jsx71("path", { d: "m4 10.5 4 4 8-9" })
|
|
5089
5552
|
}
|
|
5090
5553
|
);
|
|
5091
5554
|
}
|
|
5092
5555
|
function DashMark() {
|
|
5093
|
-
return /* @__PURE__ */
|
|
5556
|
+
return /* @__PURE__ */ jsx71(
|
|
5094
5557
|
"svg",
|
|
5095
5558
|
{
|
|
5096
5559
|
"aria-hidden": "true",
|
|
@@ -5100,7 +5563,7 @@ function DashMark() {
|
|
|
5100
5563
|
strokeWidth: "2.2",
|
|
5101
5564
|
strokeLinecap: "round",
|
|
5102
5565
|
className: "mx-auto h-5 w-5 text-muted-foreground/60",
|
|
5103
|
-
children: /* @__PURE__ */
|
|
5566
|
+
children: /* @__PURE__ */ jsx71("path", { d: "M5 10h10" })
|
|
5104
5567
|
}
|
|
5105
5568
|
);
|
|
5106
5569
|
}
|
|
@@ -5116,11 +5579,11 @@ var ComparisonTable = React71.forwardRef(
|
|
|
5116
5579
|
}, ref) {
|
|
5117
5580
|
const yes = valueLabels?.yes ?? "Included";
|
|
5118
5581
|
const no = valueLabels?.no ?? "Not included";
|
|
5119
|
-
return /* @__PURE__ */
|
|
5120
|
-
/* @__PURE__ */
|
|
5121
|
-
/* @__PURE__ */
|
|
5122
|
-
/* @__PURE__ */
|
|
5123
|
-
columns.map((column) => /* @__PURE__ */
|
|
5582
|
+
return /* @__PURE__ */ jsx71("div", { className: "w-full overflow-x-auto rounded-xl border border-border bg-card", children: /* @__PURE__ */ jsxs48("table", { ref, className: cn("w-full border-collapse text-sm", className), ...props, children: [
|
|
5583
|
+
/* @__PURE__ */ jsx71("caption", { className: "sr-only", children: caption }),
|
|
5584
|
+
/* @__PURE__ */ jsx71("thead", { children: /* @__PURE__ */ jsxs48("tr", { className: "border-b border-border", children: [
|
|
5585
|
+
/* @__PURE__ */ jsx71("th", { scope: "col", className: "min-w-48 px-5 py-4 text-left font-medium text-muted-foreground", children: featureLabel }),
|
|
5586
|
+
columns.map((column) => /* @__PURE__ */ jsx71(
|
|
5124
5587
|
"th",
|
|
5125
5588
|
{
|
|
5126
5589
|
scope: "col",
|
|
@@ -5133,21 +5596,21 @@ var ComparisonTable = React71.forwardRef(
|
|
|
5133
5596
|
column.label
|
|
5134
5597
|
))
|
|
5135
5598
|
] }) }),
|
|
5136
|
-
/* @__PURE__ */
|
|
5137
|
-
/* @__PURE__ */
|
|
5599
|
+
/* @__PURE__ */ jsx71("tbody", { children: rows.map((row) => /* @__PURE__ */ jsxs48("tr", { className: "border-b border-border last:border-b-0", children: [
|
|
5600
|
+
/* @__PURE__ */ jsxs48("th", { scope: "row", className: "px-5 py-4 text-left font-medium", children: [
|
|
5138
5601
|
row.feature,
|
|
5139
|
-
row.hint && /* @__PURE__ */
|
|
5602
|
+
row.hint && /* @__PURE__ */ jsx71("span", { className: "mt-1 block text-xs font-normal text-muted-foreground", children: row.hint })
|
|
5140
5603
|
] }),
|
|
5141
5604
|
columns.map((column, index) => {
|
|
5142
5605
|
const value = row.values[index];
|
|
5143
|
-
return /* @__PURE__ */
|
|
5606
|
+
return /* @__PURE__ */ jsx71(
|
|
5144
5607
|
"td",
|
|
5145
5608
|
{
|
|
5146
5609
|
className: cn("px-5 py-4 text-center align-middle", column.highlight && "bg-primary/5"),
|
|
5147
|
-
children: typeof value === "boolean" ? /* @__PURE__ */
|
|
5148
|
-
value ? /* @__PURE__ */
|
|
5149
|
-
/* @__PURE__ */
|
|
5150
|
-
] }) : /* @__PURE__ */
|
|
5610
|
+
children: typeof value === "boolean" ? /* @__PURE__ */ jsxs48(Fragment12, { children: [
|
|
5611
|
+
value ? /* @__PURE__ */ jsx71(CheckMark, {}) : /* @__PURE__ */ jsx71(DashMark, {}),
|
|
5612
|
+
/* @__PURE__ */ jsx71("span", { className: "sr-only", children: value ? yes : no })
|
|
5613
|
+
] }) : /* @__PURE__ */ jsx71("span", { children: value ?? "" })
|
|
5151
5614
|
},
|
|
5152
5615
|
`${row.feature}-${column.label}`
|
|
5153
5616
|
);
|
|
@@ -5159,7 +5622,7 @@ var ComparisonTable = React71.forwardRef(
|
|
|
5159
5622
|
|
|
5160
5623
|
// src/components/logo-cloud/LogoCloud.tsx
|
|
5161
5624
|
import * as React72 from "react";
|
|
5162
|
-
import { Fragment as
|
|
5625
|
+
import { Fragment as Fragment13, jsx as jsx72, jsxs as jsxs49 } from "react/jsx-runtime";
|
|
5163
5626
|
var columnClasses2 = {
|
|
5164
5627
|
3: "grid-cols-2 sm:grid-cols-3",
|
|
5165
5628
|
4: "grid-cols-2 sm:grid-cols-4",
|
|
@@ -5188,8 +5651,8 @@ var LogoCloud = React72.forwardRef(function LogoCloud2({
|
|
|
5188
5651
|
sizeClasses9[size],
|
|
5189
5652
|
grayscale && "opacity-70 grayscale hover:opacity-100 hover:grayscale-0"
|
|
5190
5653
|
);
|
|
5191
|
-
return /* @__PURE__ */
|
|
5192
|
-
caption && /* @__PURE__ */
|
|
5654
|
+
return /* @__PURE__ */ jsxs49("div", { ref, className: cn("w-full", className), ...props, children: [
|
|
5655
|
+
caption && /* @__PURE__ */ jsx72(
|
|
5193
5656
|
"p",
|
|
5194
5657
|
{
|
|
5195
5658
|
className: cn(
|
|
@@ -5199,12 +5662,12 @@ var LogoCloud = React72.forwardRef(function LogoCloud2({
|
|
|
5199
5662
|
children: caption
|
|
5200
5663
|
}
|
|
5201
5664
|
),
|
|
5202
|
-
/* @__PURE__ */
|
|
5203
|
-
const content = /* @__PURE__ */
|
|
5204
|
-
/* @__PURE__ */
|
|
5205
|
-
/* @__PURE__ */
|
|
5665
|
+
/* @__PURE__ */ jsx72("ul", { className: cn("grid items-center gap-x-8 gap-y-6", columnClasses2[columns], align === "center" && "justify-items-center"), children: items.map((item) => {
|
|
5666
|
+
const content = /* @__PURE__ */ jsxs49(Fragment13, { children: [
|
|
5667
|
+
/* @__PURE__ */ jsx72("span", { className: logoClass, "aria-hidden": "true", children: item.logo }),
|
|
5668
|
+
/* @__PURE__ */ jsx72("span", { className: "sr-only", children: item.name })
|
|
5206
5669
|
] });
|
|
5207
|
-
return /* @__PURE__ */
|
|
5670
|
+
return /* @__PURE__ */ jsx72("li", { className: cn("min-w-0", align === "center" ? "justify-self-center" : "justify-self-start"), children: item.href ? /* @__PURE__ */ jsx72(
|
|
5208
5671
|
Link3,
|
|
5209
5672
|
{
|
|
5210
5673
|
href: item.href,
|
|
@@ -5218,7 +5681,7 @@ var LogoCloud = React72.forwardRef(function LogoCloud2({
|
|
|
5218
5681
|
|
|
5219
5682
|
// src/components/feature-grid/FeatureGrid.tsx
|
|
5220
5683
|
import * as React73 from "react";
|
|
5221
|
-
import { Fragment as
|
|
5684
|
+
import { Fragment as Fragment14, jsx as jsx73, jsxs as jsxs50 } from "react/jsx-runtime";
|
|
5222
5685
|
var columnClasses3 = {
|
|
5223
5686
|
2: "sm:grid-cols-2",
|
|
5224
5687
|
3: "sm:grid-cols-2 lg:grid-cols-3",
|
|
@@ -5231,22 +5694,22 @@ var FeatureGrid = React73.forwardRef(function FeatureGrid2({ features, columns =
|
|
|
5231
5694
|
variant === "card" && "border border-border bg-card shadow-sm transition-colors hover:border-primary/40",
|
|
5232
5695
|
align === "center" && "items-center text-center"
|
|
5233
5696
|
);
|
|
5234
|
-
const content = (feature) => /* @__PURE__ */
|
|
5235
|
-
feature.icon && /* @__PURE__ */
|
|
5236
|
-
/* @__PURE__ */
|
|
5237
|
-
feature.description && /* @__PURE__ */
|
|
5238
|
-
feature.href && feature.actionLabel && /* @__PURE__ */
|
|
5697
|
+
const content = (feature) => /* @__PURE__ */ jsxs50(Fragment14, { children: [
|
|
5698
|
+
feature.icon && /* @__PURE__ */ jsx73("span", { className: "flex h-10 w-10 shrink-0 items-center justify-center rounded-lg bg-primary/10 text-primary [&_svg]:size-5", children: feature.icon }),
|
|
5699
|
+
/* @__PURE__ */ jsx73("h3", { className: "text-base font-semibold tracking-tight", children: feature.title }),
|
|
5700
|
+
feature.description && /* @__PURE__ */ jsx73("p", { className: "text-sm leading-relaxed text-muted-foreground", children: feature.description }),
|
|
5701
|
+
feature.href && feature.actionLabel && /* @__PURE__ */ jsxs50("span", { className: "mt-auto pt-2 text-sm font-medium text-primary", children: [
|
|
5239
5702
|
feature.actionLabel,
|
|
5240
5703
|
" ",
|
|
5241
|
-
/* @__PURE__ */
|
|
5704
|
+
/* @__PURE__ */ jsx73("span", { "aria-hidden": "true", children: "\u2192" })
|
|
5242
5705
|
] })
|
|
5243
5706
|
] });
|
|
5244
|
-
return /* @__PURE__ */
|
|
5707
|
+
return /* @__PURE__ */ jsx73("ul", { ref, className: cn("grid gap-6", columnClasses3[columns], className), ...props, children: features.map((feature) => /* @__PURE__ */ jsx73("li", { className: "min-w-0", children: feature.href ? /* @__PURE__ */ jsx73(Link3, { href: feature.href, className: cn(cardClass, "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background"), children: content(feature) }) : /* @__PURE__ */ jsx73("div", { className: cardClass, children: content(feature) }) }, feature.title)) });
|
|
5245
5708
|
});
|
|
5246
5709
|
|
|
5247
5710
|
// src/components/feature-row/FeatureRow.tsx
|
|
5248
5711
|
import * as React74 from "react";
|
|
5249
|
-
import { jsx as
|
|
5712
|
+
import { jsx as jsx74, jsxs as jsxs51 } from "react/jsx-runtime";
|
|
5250
5713
|
var titleSizes2 = {
|
|
5251
5714
|
md: "text-3xl",
|
|
5252
5715
|
lg: "text-3xl sm:text-4xl"
|
|
@@ -5264,20 +5727,20 @@ var FeatureRow = React74.forwardRef(function FeatureRow2({
|
|
|
5264
5727
|
...props
|
|
5265
5728
|
}, ref) {
|
|
5266
5729
|
const Heading2 = `h${level}`;
|
|
5267
|
-
return /* @__PURE__ */
|
|
5730
|
+
return /* @__PURE__ */ jsxs51(
|
|
5268
5731
|
"div",
|
|
5269
5732
|
{
|
|
5270
5733
|
ref,
|
|
5271
5734
|
className: cn("grid items-center gap-10 lg:grid-cols-2 lg:gap-16", className),
|
|
5272
5735
|
...props,
|
|
5273
5736
|
children: [
|
|
5274
|
-
/* @__PURE__ */
|
|
5275
|
-
eyebrow && /* @__PURE__ */
|
|
5276
|
-
/* @__PURE__ */
|
|
5277
|
-
description && /* @__PURE__ */
|
|
5278
|
-
actions && /* @__PURE__ */
|
|
5737
|
+
/* @__PURE__ */ jsxs51("div", { className: cn("min-w-0", mediaPosition === "left" && "lg:order-2"), children: [
|
|
5738
|
+
eyebrow && /* @__PURE__ */ jsx74("p", { className: "mb-3 text-xs font-semibold uppercase tracking-widest text-primary", children: eyebrow }),
|
|
5739
|
+
/* @__PURE__ */ jsx74(Heading2, { className: cn("font-semibold tracking-tight text-balance", titleSizes2[size]), children: title }),
|
|
5740
|
+
description && /* @__PURE__ */ jsx74("div", { className: "mt-4 max-w-xl text-base leading-relaxed text-muted-foreground sm:text-lg", children: description }),
|
|
5741
|
+
actions && /* @__PURE__ */ jsx74("div", { className: "mt-7 flex flex-wrap items-center gap-3", children: actions })
|
|
5279
5742
|
] }),
|
|
5280
|
-
/* @__PURE__ */
|
|
5743
|
+
/* @__PURE__ */ jsx74("div", { className: cn("min-w-0", mediaPosition === "left" && "lg:order-1"), children: media })
|
|
5281
5744
|
]
|
|
5282
5745
|
}
|
|
5283
5746
|
);
|
|
@@ -5285,14 +5748,14 @@ var FeatureRow = React74.forwardRef(function FeatureRow2({
|
|
|
5285
5748
|
|
|
5286
5749
|
// src/components/testimonial/Testimonial.tsx
|
|
5287
5750
|
import * as React75 from "react";
|
|
5288
|
-
import { jsx as
|
|
5751
|
+
import { jsx as jsx75, jsxs as jsxs52 } from "react/jsx-runtime";
|
|
5289
5752
|
var quoteSizes = {
|
|
5290
5753
|
sm: "text-base",
|
|
5291
5754
|
md: "text-lg",
|
|
5292
5755
|
lg: "text-xl sm:text-2xl"
|
|
5293
5756
|
};
|
|
5294
5757
|
var Testimonial = React75.forwardRef(function Testimonial2({ quote, name, role, company, avatar, logo, variant = "card", size = "md", className, ...props }, ref) {
|
|
5295
|
-
return /* @__PURE__ */
|
|
5758
|
+
return /* @__PURE__ */ jsxs52(
|
|
5296
5759
|
"figure",
|
|
5297
5760
|
{
|
|
5298
5761
|
ref,
|
|
@@ -5303,17 +5766,17 @@ var Testimonial = React75.forwardRef(function Testimonial2({ quote, name, role,
|
|
|
5303
5766
|
),
|
|
5304
5767
|
...props,
|
|
5305
5768
|
children: [
|
|
5306
|
-
logo && /* @__PURE__ */
|
|
5307
|
-
/* @__PURE__ */
|
|
5769
|
+
logo && /* @__PURE__ */ jsx75("div", { className: "flex items-center", children: logo }),
|
|
5770
|
+
/* @__PURE__ */ jsx75("blockquote", { className: cn("flex-1 leading-relaxed", quoteSizes[size]), children: /* @__PURE__ */ jsxs52("p", { children: [
|
|
5308
5771
|
"\u201C",
|
|
5309
5772
|
quote,
|
|
5310
5773
|
"\u201D"
|
|
5311
5774
|
] }) }),
|
|
5312
|
-
/* @__PURE__ */
|
|
5313
|
-
avatar && /* @__PURE__ */
|
|
5314
|
-
/* @__PURE__ */
|
|
5315
|
-
/* @__PURE__ */
|
|
5316
|
-
(role || company) && /* @__PURE__ */
|
|
5775
|
+
/* @__PURE__ */ jsxs52("figcaption", { className: "flex items-center gap-3", children: [
|
|
5776
|
+
avatar && /* @__PURE__ */ jsx75("div", { className: "shrink-0", children: avatar }),
|
|
5777
|
+
/* @__PURE__ */ jsxs52("div", { className: "min-w-0", children: [
|
|
5778
|
+
/* @__PURE__ */ jsx75("p", { className: "text-sm font-semibold", children: name }),
|
|
5779
|
+
(role || company) && /* @__PURE__ */ jsx75("p", { className: "text-xs text-muted-foreground", children: [role, company].filter(Boolean).join(", ") })
|
|
5317
5780
|
] })
|
|
5318
5781
|
] })
|
|
5319
5782
|
]
|
|
@@ -5323,22 +5786,22 @@ var Testimonial = React75.forwardRef(function Testimonial2({ quote, name, role,
|
|
|
5323
5786
|
|
|
5324
5787
|
// src/components/process-steps/ProcessSteps.tsx
|
|
5325
5788
|
import * as React76 from "react";
|
|
5326
|
-
import { jsx as
|
|
5789
|
+
import { jsx as jsx76, jsxs as jsxs53 } from "react/jsx-runtime";
|
|
5327
5790
|
var columnClasses4 = {
|
|
5328
5791
|
2: "sm:grid-cols-2",
|
|
5329
5792
|
3: "sm:grid-cols-2 lg:grid-cols-3",
|
|
5330
5793
|
4: "sm:grid-cols-2 lg:grid-cols-4"
|
|
5331
5794
|
};
|
|
5332
5795
|
var ProcessSteps = React76.forwardRef(function ProcessSteps2({ steps, columns = 3, numbered = true, align = "left", className, ...props }, ref) {
|
|
5333
|
-
return /* @__PURE__ */
|
|
5796
|
+
return /* @__PURE__ */ jsx76("ol", { ref, className: cn("grid gap-8", columnClasses4[columns], className), ...props, children: steps.map((step, index) => /* @__PURE__ */ jsxs53(
|
|
5334
5797
|
"li",
|
|
5335
5798
|
{
|
|
5336
5799
|
className: cn("flex min-w-0 flex-col gap-4", align === "center" && "items-center text-center"),
|
|
5337
5800
|
children: [
|
|
5338
|
-
/* @__PURE__ */
|
|
5339
|
-
/* @__PURE__ */
|
|
5340
|
-
/* @__PURE__ */
|
|
5341
|
-
step.description && /* @__PURE__ */
|
|
5801
|
+
/* @__PURE__ */ jsx76("span", { className: "flex h-10 w-10 shrink-0 items-center justify-center rounded-full bg-primary/10 text-sm font-semibold text-primary [&_svg]:size-5", children: step.icon ?? (numbered ? String(index + 1).padStart(2, "0") : null) }),
|
|
5802
|
+
/* @__PURE__ */ jsxs53("div", { className: "min-w-0", children: [
|
|
5803
|
+
/* @__PURE__ */ jsx76("h3", { className: "text-base font-semibold tracking-tight", children: step.title }),
|
|
5804
|
+
step.description && /* @__PURE__ */ jsx76("p", { className: "mt-1 text-sm leading-relaxed text-muted-foreground", children: step.description })
|
|
5342
5805
|
] })
|
|
5343
5806
|
]
|
|
5344
5807
|
},
|
|
@@ -5348,7 +5811,7 @@ var ProcessSteps = React76.forwardRef(function ProcessSteps2({ steps, columns =
|
|
|
5348
5811
|
|
|
5349
5812
|
// src/components/article-card/ArticleCard.tsx
|
|
5350
5813
|
import * as React77 from "react";
|
|
5351
|
-
import { jsx as
|
|
5814
|
+
import { jsx as jsx77, jsxs as jsxs54 } from "react/jsx-runtime";
|
|
5352
5815
|
var ArticleCard = React77.forwardRef(function ArticleCard2({
|
|
5353
5816
|
title,
|
|
5354
5817
|
description,
|
|
@@ -5363,7 +5826,7 @@ var ArticleCard = React77.forwardRef(function ArticleCard2({
|
|
|
5363
5826
|
}, ref) {
|
|
5364
5827
|
const Link3 = linkComponent ?? "a";
|
|
5365
5828
|
const compact = variant === "compact";
|
|
5366
|
-
return /* @__PURE__ */
|
|
5829
|
+
return /* @__PURE__ */ jsx77("article", { ref, className: cn("h-full", className), ...props, children: /* @__PURE__ */ jsxs54(
|
|
5367
5830
|
Link3,
|
|
5368
5831
|
{
|
|
5369
5832
|
href,
|
|
@@ -5372,12 +5835,12 @@ var ArticleCard = React77.forwardRef(function ArticleCard2({
|
|
|
5372
5835
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background"
|
|
5373
5836
|
),
|
|
5374
5837
|
children: [
|
|
5375
|
-
media && !compact && /* @__PURE__ */
|
|
5376
|
-
/* @__PURE__ */
|
|
5377
|
-
eyebrow && /* @__PURE__ */
|
|
5378
|
-
/* @__PURE__ */
|
|
5379
|
-
description && /* @__PURE__ */
|
|
5380
|
-
meta && /* @__PURE__ */
|
|
5838
|
+
media && !compact && /* @__PURE__ */ jsx77("div", { className: "aspect-[16/10] w-full overflow-hidden bg-muted [&_img]:h-full [&_img]:w-full [&_img]:object-cover", children: media }),
|
|
5839
|
+
/* @__PURE__ */ jsxs54("div", { className: cn("flex flex-1 flex-col gap-2", compact ? "p-4" : "p-5"), children: [
|
|
5840
|
+
eyebrow && /* @__PURE__ */ jsx77("p", { className: "text-xs font-semibold uppercase tracking-widest text-primary", children: eyebrow }),
|
|
5841
|
+
/* @__PURE__ */ jsx77("h3", { className: cn("font-semibold tracking-tight transition-colors group-hover:text-primary", compact ? "text-base" : "text-lg"), children: title }),
|
|
5842
|
+
description && /* @__PURE__ */ jsx77("p", { className: "line-clamp-3 text-sm leading-relaxed text-muted-foreground", children: description }),
|
|
5843
|
+
meta && /* @__PURE__ */ jsx77("div", { className: "mt-auto pt-2 text-xs text-muted-foreground", children: meta })
|
|
5381
5844
|
] })
|
|
5382
5845
|
]
|
|
5383
5846
|
}
|
|
@@ -5386,7 +5849,7 @@ var ArticleCard = React77.forwardRef(function ArticleCard2({
|
|
|
5386
5849
|
|
|
5387
5850
|
// src/components/newsletter/Newsletter.tsx
|
|
5388
5851
|
import * as React78 from "react";
|
|
5389
|
-
import { jsx as
|
|
5852
|
+
import { jsx as jsx78, jsxs as jsxs55 } from "react/jsx-runtime";
|
|
5390
5853
|
var Newsletter = React78.forwardRef(function Newsletter2({
|
|
5391
5854
|
title,
|
|
5392
5855
|
description,
|
|
@@ -5418,13 +5881,13 @@ var Newsletter = React78.forwardRef(function Newsletter2({
|
|
|
5418
5881
|
setStatus("error");
|
|
5419
5882
|
}
|
|
5420
5883
|
};
|
|
5421
|
-
return /* @__PURE__ */
|
|
5422
|
-
/* @__PURE__ */
|
|
5423
|
-
description && /* @__PURE__ */
|
|
5424
|
-
/* @__PURE__ */
|
|
5425
|
-
/* @__PURE__ */
|
|
5426
|
-
/* @__PURE__ */
|
|
5427
|
-
/* @__PURE__ */
|
|
5884
|
+
return /* @__PURE__ */ jsxs55("div", { className: "w-full", children: [
|
|
5885
|
+
/* @__PURE__ */ jsx78(Heading2, { className: "text-2xl font-semibold tracking-tight", children: title }),
|
|
5886
|
+
description && /* @__PURE__ */ jsx78("p", { className: "mt-2 max-w-2xl text-sm leading-relaxed text-muted-foreground", children: description }),
|
|
5887
|
+
/* @__PURE__ */ jsxs55("form", { ref, onSubmit: handleSubmit, className: cn("mt-5", className), ...props, children: [
|
|
5888
|
+
/* @__PURE__ */ jsxs55("div", { className: cn("flex gap-2", layout === "inline" ? "flex-col sm:flex-row" : "flex-col"), children: [
|
|
5889
|
+
/* @__PURE__ */ jsx78("label", { htmlFor: id, className: "sr-only", children: label }),
|
|
5890
|
+
/* @__PURE__ */ jsx78(
|
|
5428
5891
|
Input,
|
|
5429
5892
|
{
|
|
5430
5893
|
id,
|
|
@@ -5439,12 +5902,12 @@ var Newsletter = React78.forwardRef(function Newsletter2({
|
|
|
5439
5902
|
className: "sm:flex-1"
|
|
5440
5903
|
}
|
|
5441
5904
|
),
|
|
5442
|
-
/* @__PURE__ */
|
|
5905
|
+
/* @__PURE__ */ jsx78(Button, { type: "submit", loading: status === "loading", className: "shrink-0", children: buttonLabel })
|
|
5443
5906
|
] }),
|
|
5444
|
-
consent && /* @__PURE__ */
|
|
5445
|
-
/* @__PURE__ */
|
|
5446
|
-
status === "success" && /* @__PURE__ */
|
|
5447
|
-
status === "error" && /* @__PURE__ */
|
|
5907
|
+
consent && /* @__PURE__ */ jsx78("div", { className: "mt-3 text-xs leading-relaxed text-muted-foreground", children: consent }),
|
|
5908
|
+
/* @__PURE__ */ jsxs55("div", { "aria-live": "polite", className: "mt-2 min-h-5 text-sm", children: [
|
|
5909
|
+
status === "success" && /* @__PURE__ */ jsx78("p", { className: "text-success", children: successMessage }),
|
|
5910
|
+
status === "error" && /* @__PURE__ */ jsx78("p", { role: "alert", className: "text-destructive", children: errorMessage })
|
|
5448
5911
|
] })
|
|
5449
5912
|
] })
|
|
5450
5913
|
] });
|
|
@@ -5452,26 +5915,26 @@ var Newsletter = React78.forwardRef(function Newsletter2({
|
|
|
5452
5915
|
|
|
5453
5916
|
// src/components/contact-strip/ContactStrip.tsx
|
|
5454
5917
|
import * as React79 from "react";
|
|
5455
|
-
import { jsx as
|
|
5918
|
+
import { jsx as jsx79, jsxs as jsxs56 } from "react/jsx-runtime";
|
|
5456
5919
|
var columnClasses5 = {
|
|
5457
5920
|
2: "sm:grid-cols-2",
|
|
5458
5921
|
3: "sm:grid-cols-3"
|
|
5459
5922
|
};
|
|
5460
5923
|
var ContactStrip = React79.forwardRef(function ContactStrip2({ items, columns = 2, align = "left", linkComponent, className, ...props }, ref) {
|
|
5461
5924
|
const Link3 = linkComponent ?? "a";
|
|
5462
|
-
return /* @__PURE__ */
|
|
5463
|
-
item.icon && /* @__PURE__ */
|
|
5464
|
-
/* @__PURE__ */
|
|
5465
|
-
/* @__PURE__ */
|
|
5466
|
-
item.href ? /* @__PURE__ */
|
|
5925
|
+
return /* @__PURE__ */ jsx79("ul", { ref, className: cn("grid gap-6", columnClasses5[columns], className), ...props, children: items.map((item) => /* @__PURE__ */ jsxs56("li", { className: cn("flex min-w-0 items-start gap-3", align === "center" && "justify-center text-center"), children: [
|
|
5926
|
+
item.icon && /* @__PURE__ */ jsx79("span", { className: "mt-0.5 flex h-8 w-8 shrink-0 items-center justify-center rounded-lg bg-primary/10 text-primary [&_svg]:size-4", children: item.icon }),
|
|
5927
|
+
/* @__PURE__ */ jsxs56("div", { className: "min-w-0", children: [
|
|
5928
|
+
/* @__PURE__ */ jsx79("p", { className: "text-xs font-semibold uppercase tracking-wider text-muted-foreground", children: item.label }),
|
|
5929
|
+
item.href ? /* @__PURE__ */ jsx79(Link3, { href: item.href, className: "mt-0.5 block break-words text-sm font-medium text-primary underline-offset-4 hover:underline", children: item.value }) : /* @__PURE__ */ jsx79("p", { className: "mt-0.5 break-words text-sm font-medium", children: item.value })
|
|
5467
5930
|
] })
|
|
5468
5931
|
] }, item.label)) });
|
|
5469
5932
|
});
|
|
5470
5933
|
|
|
5471
5934
|
// src/components/announcement-bar/AnnouncementBar.tsx
|
|
5472
5935
|
import * as React80 from "react";
|
|
5473
|
-
import { jsx as
|
|
5474
|
-
var
|
|
5936
|
+
import { jsx as jsx80, jsxs as jsxs57 } from "react/jsx-runtime";
|
|
5937
|
+
var toneClasses3 = {
|
|
5475
5938
|
muted: "bg-muted text-foreground",
|
|
5476
5939
|
brand: "bg-primary text-primary-foreground",
|
|
5477
5940
|
inverse: "bg-inverse text-inverse-foreground"
|
|
@@ -5496,7 +5959,7 @@ var AnnouncementBar = React80.forwardRef(
|
|
|
5496
5959
|
setDismissed(true);
|
|
5497
5960
|
onDismiss?.();
|
|
5498
5961
|
};
|
|
5499
|
-
return /* @__PURE__ */
|
|
5962
|
+
return /* @__PURE__ */ jsx80(
|
|
5500
5963
|
"div",
|
|
5501
5964
|
{
|
|
5502
5965
|
ref,
|
|
@@ -5504,14 +5967,14 @@ var AnnouncementBar = React80.forwardRef(
|
|
|
5504
5967
|
"aria-label": "Announcement",
|
|
5505
5968
|
className: cn(
|
|
5506
5969
|
"w-full border-b border-border/60",
|
|
5507
|
-
|
|
5970
|
+
toneClasses3[tone],
|
|
5508
5971
|
sticky && "sticky top-0 z-30",
|
|
5509
5972
|
className
|
|
5510
5973
|
),
|
|
5511
5974
|
...props,
|
|
5512
|
-
children: /* @__PURE__ */
|
|
5513
|
-
/* @__PURE__ */
|
|
5514
|
-
href && actionLabel && /* @__PURE__ */
|
|
5975
|
+
children: /* @__PURE__ */ jsxs57("div", { className: "mx-auto flex w-full max-w-7xl items-center justify-center gap-3 px-4 py-2 text-sm sm:px-6", children: [
|
|
5976
|
+
/* @__PURE__ */ jsx80("p", { className: "min-w-0 text-center", children: message }),
|
|
5977
|
+
href && actionLabel && /* @__PURE__ */ jsx80(
|
|
5515
5978
|
Link3,
|
|
5516
5979
|
{
|
|
5517
5980
|
href,
|
|
@@ -5519,14 +5982,14 @@ var AnnouncementBar = React80.forwardRef(
|
|
|
5519
5982
|
children: actionLabel
|
|
5520
5983
|
}
|
|
5521
5984
|
),
|
|
5522
|
-
dismissible && /* @__PURE__ */
|
|
5985
|
+
dismissible && /* @__PURE__ */ jsx80(
|
|
5523
5986
|
"button",
|
|
5524
5987
|
{
|
|
5525
5988
|
type: "button",
|
|
5526
5989
|
onClick: dismiss2,
|
|
5527
5990
|
"aria-label": "Dismiss announcement",
|
|
5528
5991
|
className: "shrink-0 rounded p-1 opacity-70 transition-opacity hover:opacity-100 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-current",
|
|
5529
|
-
children: /* @__PURE__ */
|
|
5992
|
+
children: /* @__PURE__ */ jsx80("svg", { "aria-hidden": "true", viewBox: "0 0 20 20", className: "h-4 w-4", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", children: /* @__PURE__ */ jsx80("path", { d: "m5 5 10 10M15 5 5 15" }) })
|
|
5530
5993
|
}
|
|
5531
5994
|
)
|
|
5532
5995
|
] })
|
|
@@ -5535,15 +5998,243 @@ var AnnouncementBar = React80.forwardRef(
|
|
|
5535
5998
|
}
|
|
5536
5999
|
);
|
|
5537
6000
|
|
|
5538
|
-
// src/components/
|
|
6001
|
+
// src/components/deal-card/DealCard.tsx
|
|
5539
6002
|
import * as React81 from "react";
|
|
5540
|
-
import { jsx as
|
|
6003
|
+
import { jsx as jsx81, jsxs as jsxs58 } from "react/jsx-runtime";
|
|
6004
|
+
var statusConfig = {
|
|
6005
|
+
available: { label: "Available", variant: "success" },
|
|
6006
|
+
"under-nda": { label: "Under NDA", variant: "info" },
|
|
6007
|
+
closed: { label: "Closed", variant: "secondary" },
|
|
6008
|
+
draft: { label: "Draft", variant: "outline" }
|
|
6009
|
+
};
|
|
6010
|
+
var DealCard = React81.forwardRef(function DealCard2({
|
|
6011
|
+
title,
|
|
6012
|
+
sector,
|
|
6013
|
+
location,
|
|
6014
|
+
description,
|
|
6015
|
+
metrics,
|
|
6016
|
+
status = "available",
|
|
6017
|
+
ndaAvailable,
|
|
6018
|
+
cimAvailable,
|
|
6019
|
+
href,
|
|
6020
|
+
linkComponent,
|
|
6021
|
+
saved = false,
|
|
6022
|
+
onSave,
|
|
6023
|
+
saveLabel = "Save",
|
|
6024
|
+
onRequestAccess,
|
|
6025
|
+
requestLabel = "Request access",
|
|
6026
|
+
className,
|
|
6027
|
+
...props
|
|
6028
|
+
}, ref) {
|
|
6029
|
+
const Link3 = linkComponent ?? "a";
|
|
6030
|
+
const statusInfo = statusConfig[status];
|
|
6031
|
+
return /* @__PURE__ */ jsxs58(Card, { ref, className: cn("flex h-full flex-col overflow-hidden", className), ...props, children: [
|
|
6032
|
+
/* @__PURE__ */ jsxs58(CardHeader, { className: "gap-2 p-5 pb-3", children: [
|
|
6033
|
+
/* @__PURE__ */ jsxs58("div", { className: "flex items-start justify-between gap-2", children: [
|
|
6034
|
+
/* @__PURE__ */ jsx81("p", { className: "text-xs font-semibold uppercase tracking-widest text-primary", children: sector }),
|
|
6035
|
+
/* @__PURE__ */ jsx81(Badge, { variant: statusInfo.variant, children: statusInfo.label })
|
|
6036
|
+
] }),
|
|
6037
|
+
/* @__PURE__ */ jsx81("h3", { className: "text-lg font-semibold leading-snug tracking-tight", children: href ? /* @__PURE__ */ jsx81(Link3, { href, className: "rounded-sm hover:text-primary focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring", children: title }) : title }),
|
|
6038
|
+
location && /* @__PURE__ */ jsx81("p", { className: "text-xs text-muted-foreground", children: location })
|
|
6039
|
+
] }),
|
|
6040
|
+
/* @__PURE__ */ jsxs58(CardContent, { className: "flex-1 px-5 pb-3", children: [
|
|
6041
|
+
description && /* @__PURE__ */ jsx81("p", { className: "line-clamp-2 text-sm leading-relaxed text-muted-foreground", children: description }),
|
|
6042
|
+
/* @__PURE__ */ jsx81("dl", { className: "mt-4 grid grid-cols-3 gap-3", children: metrics.map((metric) => /* @__PURE__ */ jsxs58("div", { className: "min-w-0", children: [
|
|
6043
|
+
/* @__PURE__ */ jsx81("dt", { className: "text-xs text-muted-foreground", children: metric.label }),
|
|
6044
|
+
/* @__PURE__ */ jsx81("dd", { className: "mt-0.5 truncate text-sm font-semibold tabular-nums", children: metric.value })
|
|
6045
|
+
] }, metric.label)) }),
|
|
6046
|
+
(ndaAvailable || cimAvailable) && /* @__PURE__ */ jsxs58("div", { className: "mt-4 flex flex-wrap gap-1.5", children: [
|
|
6047
|
+
ndaAvailable && /* @__PURE__ */ jsx81(Badge, { variant: "info", children: "NDA available" }),
|
|
6048
|
+
cimAvailable && /* @__PURE__ */ jsx81(Badge, { variant: "secondary", children: "CIM available" })
|
|
6049
|
+
] })
|
|
6050
|
+
] }),
|
|
6051
|
+
/* @__PURE__ */ jsxs58(CardFooter, { className: "flex flex-wrap items-center gap-2 border-t border-border px-5 py-3", children: [
|
|
6052
|
+
onRequestAccess && /* @__PURE__ */ jsx81(Button, { type: "button", size: "sm", onClick: onRequestAccess, children: requestLabel }),
|
|
6053
|
+
onSave && /* @__PURE__ */ jsx81(
|
|
6054
|
+
Button,
|
|
6055
|
+
{
|
|
6056
|
+
type: "button",
|
|
6057
|
+
size: "sm",
|
|
6058
|
+
variant: "ghost",
|
|
6059
|
+
"aria-pressed": saved,
|
|
6060
|
+
onClick: onSave,
|
|
6061
|
+
className: "ml-auto",
|
|
6062
|
+
children: saved ? "Saved" : saveLabel
|
|
6063
|
+
}
|
|
6064
|
+
)
|
|
6065
|
+
] })
|
|
6066
|
+
] });
|
|
6067
|
+
});
|
|
6068
|
+
|
|
6069
|
+
// src/components/entity-card/EntityCard.tsx
|
|
6070
|
+
import * as React82 from "react";
|
|
6071
|
+
import { jsx as jsx82, jsxs as jsxs59 } from "react/jsx-runtime";
|
|
6072
|
+
function initials(name) {
|
|
6073
|
+
return name.split(/\s+/).filter(Boolean).slice(0, 2).map((part) => part[0]?.toUpperCase() ?? "").join("");
|
|
6074
|
+
}
|
|
6075
|
+
var EntityCard = React82.forwardRef(function EntityCard2({
|
|
6076
|
+
name,
|
|
6077
|
+
entityType,
|
|
6078
|
+
location,
|
|
6079
|
+
description,
|
|
6080
|
+
logo,
|
|
6081
|
+
stats,
|
|
6082
|
+
tags,
|
|
6083
|
+
href,
|
|
6084
|
+
linkComponent,
|
|
6085
|
+
actions,
|
|
6086
|
+
className,
|
|
6087
|
+
...props
|
|
6088
|
+
}, ref) {
|
|
6089
|
+
const Link3 = linkComponent ?? "a";
|
|
6090
|
+
return /* @__PURE__ */ jsxs59(Card, { ref, className: cn("flex h-full flex-col", className), ...props, children: [
|
|
6091
|
+
/* @__PURE__ */ jsxs59(CardHeader, { className: "flex-row items-start gap-3 p-5 pb-3", children: [
|
|
6092
|
+
/* @__PURE__ */ jsx82("div", { className: "shrink-0", children: logo ?? /* @__PURE__ */ jsx82(Avatar, { children: /* @__PURE__ */ jsx82(AvatarFallback, { children: initials(name) }) }) }),
|
|
6093
|
+
/* @__PURE__ */ jsxs59("div", { className: "min-w-0 flex-1", children: [
|
|
6094
|
+
/* @__PURE__ */ jsx82("h3", { className: "truncate text-base font-semibold tracking-tight", children: href ? /* @__PURE__ */ jsx82(Link3, { href, className: "rounded-sm hover:text-primary focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring", children: name }) : name }),
|
|
6095
|
+
/* @__PURE__ */ jsx82("p", { className: "mt-0.5 truncate text-xs text-muted-foreground", children: entityType }),
|
|
6096
|
+
location && /* @__PURE__ */ jsx82("p", { className: "mt-0.5 truncate text-xs text-muted-foreground", children: location })
|
|
6097
|
+
] })
|
|
6098
|
+
] }),
|
|
6099
|
+
/* @__PURE__ */ jsxs59(CardContent, { className: "flex-1 px-5 pb-3", children: [
|
|
6100
|
+
description && /* @__PURE__ */ jsx82("p", { className: "line-clamp-3 text-sm leading-relaxed text-muted-foreground", children: description }),
|
|
6101
|
+
tags && tags.length > 0 && /* @__PURE__ */ jsx82("div", { className: "mt-3 flex flex-wrap gap-1.5", children: tags.map((tag) => /* @__PURE__ */ jsx82(Badge, { variant: "secondary", children: tag }, tag)) }),
|
|
6102
|
+
stats && stats.length > 0 && /* @__PURE__ */ jsx82("dl", { className: "mt-4 grid grid-cols-2 gap-3", children: stats.map((stat) => /* @__PURE__ */ jsxs59("div", { className: "min-w-0", children: [
|
|
6103
|
+
/* @__PURE__ */ jsx82("dt", { className: "text-xs text-muted-foreground", children: stat.label }),
|
|
6104
|
+
/* @__PURE__ */ jsx82("dd", { className: "mt-0.5 truncate text-sm font-semibold tabular-nums", children: stat.value })
|
|
6105
|
+
] }, stat.label)) })
|
|
6106
|
+
] }),
|
|
6107
|
+
(href || actions) && /* @__PURE__ */ jsxs59(CardFooter, { className: "flex flex-wrap items-center gap-2 border-t border-border px-5 py-3", children: [
|
|
6108
|
+
href && /* @__PURE__ */ jsx82(
|
|
6109
|
+
Link3,
|
|
6110
|
+
{
|
|
6111
|
+
href,
|
|
6112
|
+
className: "text-sm font-medium text-primary underline-offset-4 hover:underline focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
6113
|
+
children: "View profile"
|
|
6114
|
+
}
|
|
6115
|
+
),
|
|
6116
|
+
actions && /* @__PURE__ */ jsx82("div", { className: "ml-auto flex items-center gap-2", children: actions })
|
|
6117
|
+
] })
|
|
6118
|
+
] });
|
|
6119
|
+
});
|
|
6120
|
+
var ProfileCard = EntityCard;
|
|
6121
|
+
|
|
6122
|
+
// src/components/tombstone-card/TombstoneCard.tsx
|
|
6123
|
+
import * as React83 from "react";
|
|
6124
|
+
import { jsx as jsx83, jsxs as jsxs60 } from "react/jsx-runtime";
|
|
6125
|
+
var statusConfig2 = {
|
|
6126
|
+
archived: { label: "Archived", variant: "secondary" },
|
|
6127
|
+
unavailable: { label: "Unavailable", variant: "warning" },
|
|
6128
|
+
closed: { label: "Closed", variant: "outline" }
|
|
6129
|
+
};
|
|
6130
|
+
var TombstoneCard = React83.forwardRef(function TombstoneCard2({
|
|
6131
|
+
title,
|
|
6132
|
+
reason,
|
|
6133
|
+
status = "unavailable",
|
|
6134
|
+
logo,
|
|
6135
|
+
href,
|
|
6136
|
+
actionLabel = "View details",
|
|
6137
|
+
linkComponent,
|
|
6138
|
+
className,
|
|
6139
|
+
...props
|
|
6140
|
+
}, ref) {
|
|
6141
|
+
const Link3 = linkComponent ?? "a";
|
|
6142
|
+
const statusInfo = statusConfig2[status];
|
|
6143
|
+
return /* @__PURE__ */ jsx83(
|
|
6144
|
+
Card,
|
|
6145
|
+
{
|
|
6146
|
+
ref,
|
|
6147
|
+
className: cn("flex h-full flex-col border-dashed bg-muted/30 shadow-none", className),
|
|
6148
|
+
...props,
|
|
6149
|
+
children: /* @__PURE__ */ jsxs60(CardContent, { className: "flex flex-1 flex-col gap-3 p-5", children: [
|
|
6150
|
+
/* @__PURE__ */ jsxs60("div", { className: "flex items-start justify-between gap-2", children: [
|
|
6151
|
+
logo && /* @__PURE__ */ jsx83("div", { className: "min-w-0 opacity-70", children: logo }),
|
|
6152
|
+
/* @__PURE__ */ jsx83(Badge, { variant: statusInfo.variant, children: statusInfo.label })
|
|
6153
|
+
] }),
|
|
6154
|
+
/* @__PURE__ */ jsx83("h3", { className: "text-base font-semibold tracking-tight text-foreground/80", children: title }),
|
|
6155
|
+
reason && /* @__PURE__ */ jsx83("p", { className: "text-sm leading-relaxed text-muted-foreground", children: reason }),
|
|
6156
|
+
href && /* @__PURE__ */ jsx83(
|
|
6157
|
+
Link3,
|
|
6158
|
+
{
|
|
6159
|
+
href,
|
|
6160
|
+
className: "mt-auto text-sm font-medium text-primary underline-offset-4 hover:underline focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
6161
|
+
children: actionLabel
|
|
6162
|
+
}
|
|
6163
|
+
)
|
|
6164
|
+
] })
|
|
6165
|
+
}
|
|
6166
|
+
);
|
|
6167
|
+
});
|
|
6168
|
+
|
|
6169
|
+
// src/components/document-card/DocumentCard.tsx
|
|
6170
|
+
import * as React84 from "react";
|
|
6171
|
+
import { jsx as jsx84, jsxs as jsxs61 } from "react/jsx-runtime";
|
|
6172
|
+
var statusConfig3 = {
|
|
6173
|
+
available: { label: "Available", variant: "success" },
|
|
6174
|
+
restricted: { label: "Restricted", variant: "warning" },
|
|
6175
|
+
pending: { label: "Pending", variant: "info" }
|
|
6176
|
+
};
|
|
6177
|
+
var DocumentCard = React84.forwardRef(function DocumentCard2({
|
|
6178
|
+
name,
|
|
6179
|
+
fileType,
|
|
6180
|
+
size,
|
|
6181
|
+
updatedAt,
|
|
6182
|
+
status = "available",
|
|
6183
|
+
onDownload,
|
|
6184
|
+
downloadLabel = "Download",
|
|
6185
|
+
icon,
|
|
6186
|
+
className,
|
|
6187
|
+
...props
|
|
6188
|
+
}, ref) {
|
|
6189
|
+
const statusInfo = statusConfig3[status];
|
|
6190
|
+
const meta = [fileType, size, updatedAt].filter(Boolean).join(" \xB7 ");
|
|
6191
|
+
return /* @__PURE__ */ jsx84(Card, { ref, className: cn("w-full", className), ...props, children: /* @__PURE__ */ jsxs61(CardContent, { className: "flex items-center gap-3 p-4", children: [
|
|
6192
|
+
/* @__PURE__ */ jsx84("span", { className: "flex h-10 w-10 shrink-0 items-center justify-center rounded-lg bg-primary/10 text-primary [&_svg]:size-5", children: icon ?? /* @__PURE__ */ jsx84("span", { className: "text-[10px] font-bold uppercase tracking-wide", children: fileType }) }),
|
|
6193
|
+
/* @__PURE__ */ jsxs61("div", { className: "min-w-0 flex-1", children: [
|
|
6194
|
+
/* @__PURE__ */ jsx84("p", { className: "truncate text-sm font-medium", children: name }),
|
|
6195
|
+
meta && /* @__PURE__ */ jsx84("p", { className: "mt-0.5 truncate text-xs text-muted-foreground", children: meta })
|
|
6196
|
+
] }),
|
|
6197
|
+
/* @__PURE__ */ jsx84(Badge, { variant: statusInfo.variant, children: statusInfo.label }),
|
|
6198
|
+
onDownload && /* @__PURE__ */ jsx84(
|
|
6199
|
+
Button,
|
|
6200
|
+
{
|
|
6201
|
+
type: "button",
|
|
6202
|
+
variant: "outline",
|
|
6203
|
+
size: "sm",
|
|
6204
|
+
onClick: onDownload,
|
|
6205
|
+
disabled: status !== "available",
|
|
6206
|
+
"aria-label": `${downloadLabel} ${name}`,
|
|
6207
|
+
children: downloadLabel
|
|
6208
|
+
}
|
|
6209
|
+
)
|
|
6210
|
+
] }) });
|
|
6211
|
+
});
|
|
6212
|
+
|
|
6213
|
+
// src/components/load-more/LoadMore.tsx
|
|
6214
|
+
import * as React85 from "react";
|
|
6215
|
+
import { jsx as jsx85 } from "react/jsx-runtime";
|
|
6216
|
+
var LoadMore = React85.forwardRef(function LoadMore2({
|
|
6217
|
+
hasMore,
|
|
6218
|
+
onLoadMore,
|
|
6219
|
+
loading = false,
|
|
6220
|
+
loadLabel = "Load more",
|
|
6221
|
+
loadingLabel = "Loading...",
|
|
6222
|
+
endLabel = "You're all caught up.",
|
|
6223
|
+
className,
|
|
6224
|
+
...props
|
|
6225
|
+
}, ref) {
|
|
6226
|
+
return /* @__PURE__ */ jsx85("div", { ref, "aria-live": "polite", className: cn("flex w-full justify-center py-4", className), ...props, children: hasMore ? /* @__PURE__ */ jsx85(Button, { type: "button", variant: "outline", onClick: onLoadMore, loading, children: loading ? loadingLabel : loadLabel }) : /* @__PURE__ */ jsx85("p", { role: "status", className: "text-sm text-muted-foreground", children: endLabel }) });
|
|
6227
|
+
});
|
|
6228
|
+
|
|
6229
|
+
// src/components/segmented-control/SegmentedControl.tsx
|
|
6230
|
+
import * as React86 from "react";
|
|
6231
|
+
import { jsx as jsx86, jsxs as jsxs62 } from "react/jsx-runtime";
|
|
5541
6232
|
var sizeClasses10 = {
|
|
5542
6233
|
sm: "h-8 px-2.5 text-xs",
|
|
5543
6234
|
md: "h-9 px-3 text-sm",
|
|
5544
6235
|
lg: "h-10 px-4 text-sm"
|
|
5545
6236
|
};
|
|
5546
|
-
var SegmentedControl =
|
|
6237
|
+
var SegmentedControl = React86.forwardRef(
|
|
5547
6238
|
function SegmentedControl2({
|
|
5548
6239
|
options,
|
|
5549
6240
|
value,
|
|
@@ -5557,12 +6248,12 @@ var SegmentedControl = React81.forwardRef(
|
|
|
5557
6248
|
...props
|
|
5558
6249
|
}, ref) {
|
|
5559
6250
|
const isControlled = value !== void 0;
|
|
5560
|
-
const [internal, setInternal] =
|
|
6251
|
+
const [internal, setInternal] = React86.useState(
|
|
5561
6252
|
() => multiple ? Array.isArray(defaultValue) ? defaultValue : [] : typeof defaultValue === "string" ? defaultValue : ""
|
|
5562
6253
|
);
|
|
5563
6254
|
const current = isControlled ? value : internal;
|
|
5564
6255
|
const selected = multiple ? Array.isArray(current) ? current : [] : typeof current === "string" ? current : "";
|
|
5565
|
-
const refs =
|
|
6256
|
+
const refs = React86.useRef([]);
|
|
5566
6257
|
const commit = (next) => {
|
|
5567
6258
|
if (!isControlled) setInternal(next);
|
|
5568
6259
|
onValueChange?.(next);
|
|
@@ -5612,7 +6303,7 @@ var SegmentedControl = React81.forwardRef(
|
|
|
5612
6303
|
moveFocus("last");
|
|
5613
6304
|
}
|
|
5614
6305
|
};
|
|
5615
|
-
return /* @__PURE__ */
|
|
6306
|
+
return /* @__PURE__ */ jsx86(
|
|
5616
6307
|
"div",
|
|
5617
6308
|
{
|
|
5618
6309
|
ref,
|
|
@@ -5628,7 +6319,7 @@ var SegmentedControl = React81.forwardRef(
|
|
|
5628
6319
|
const active = multiple ? Array.isArray(selected) && selected.includes(option.value) : selected === option.value;
|
|
5629
6320
|
const firstEnabled = options.findIndex((entry) => !entry.disabled);
|
|
5630
6321
|
const focusable = multiple || active || !selected && index === firstEnabled;
|
|
5631
|
-
return /* @__PURE__ */
|
|
6322
|
+
return /* @__PURE__ */ jsxs62(
|
|
5632
6323
|
"button",
|
|
5633
6324
|
{
|
|
5634
6325
|
ref: (node) => {
|
|
@@ -5651,8 +6342,8 @@ var SegmentedControl = React81.forwardRef(
|
|
|
5651
6342
|
active ? "bg-background text-foreground shadow-sm" : "text-muted-foreground hover:text-foreground"
|
|
5652
6343
|
),
|
|
5653
6344
|
children: [
|
|
5654
|
-
option.icon && /* @__PURE__ */
|
|
5655
|
-
/* @__PURE__ */
|
|
6345
|
+
option.icon && /* @__PURE__ */ jsx86("span", { className: "shrink-0 [&_svg]:size-4", children: option.icon }),
|
|
6346
|
+
/* @__PURE__ */ jsx86("span", { className: "truncate", children: option.label })
|
|
5656
6347
|
]
|
|
5657
6348
|
},
|
|
5658
6349
|
option.value
|
|
@@ -5664,18 +6355,18 @@ var SegmentedControl = React81.forwardRef(
|
|
|
5664
6355
|
);
|
|
5665
6356
|
|
|
5666
6357
|
// src/components/range-slider/RangeSlider.tsx
|
|
5667
|
-
import * as
|
|
5668
|
-
import { jsx as
|
|
6358
|
+
import * as React87 from "react";
|
|
6359
|
+
import { jsx as jsx87, jsxs as jsxs63 } from "react/jsx-runtime";
|
|
5669
6360
|
var rangeInputClass = cn(
|
|
5670
|
-
"pointer-events-none absolute inset-x-0 top-1/2 h-
|
|
5671
|
-
"[&::-webkit-slider-runnable-track]:h-1 [&::-webkit-slider-runnable-track]:bg-transparent",
|
|
5672
|
-
"[&::-webkit-slider-thumb]:pointer-events-auto [&::-webkit-slider-thumb]:h-4 [&::-webkit-slider-thumb]:w-4 [&::-webkit-slider-thumb]:appearance-none [&::-webkit-slider-thumb]:rounded-full [&::-webkit-slider-thumb]:border-2 [&::-webkit-slider-thumb]:border-primary [&::-webkit-slider-thumb]:bg-background [&::-webkit-slider-thumb]:shadow",
|
|
5673
|
-
"[&::-moz-range-track]:h-1 [&::-moz-range-track]:bg-transparent",
|
|
5674
|
-
"[&::-moz-range-thumb]:pointer-events-auto [&::-moz-range-thumb]:h-4 [&::-moz-range-thumb]:w-4 [&::-moz-range-thumb]:rounded-full [&::-moz-range-thumb]:border-2 [&::-moz-range-thumb]:border-primary [&::-moz-range-thumb]:bg-background [&::-moz-range-thumb]:shadow",
|
|
6361
|
+
"pointer-events-none absolute inset-x-0 top-1/2 h-6 w-full -translate-y-1/2 appearance-none bg-transparent",
|
|
6362
|
+
"[&::-webkit-slider-runnable-track]:h-1 [&::-webkit-slider-runnable-track]:rounded-full [&::-webkit-slider-runnable-track]:bg-transparent",
|
|
6363
|
+
"[&::-webkit-slider-thumb]:pointer-events-auto [&::-webkit-slider-thumb]:mt-[-6px] [&::-webkit-slider-thumb]:h-4 [&::-webkit-slider-thumb]:w-4 [&::-webkit-slider-thumb]:cursor-grab [&::-webkit-slider-thumb]:appearance-none [&::-webkit-slider-thumb]:rounded-full [&::-webkit-slider-thumb]:border-2 [&::-webkit-slider-thumb]:border-primary [&::-webkit-slider-thumb]:bg-background [&::-webkit-slider-thumb]:shadow",
|
|
6364
|
+
"[&::-moz-range-track]:h-1 [&::-moz-range-track]:rounded-full [&::-moz-range-track]:bg-transparent",
|
|
6365
|
+
"[&::-moz-range-thumb]:pointer-events-auto [&::-moz-range-thumb]:h-4 [&::-moz-range-thumb]:w-4 [&::-moz-range-thumb]:cursor-grab [&::-moz-range-thumb]:rounded-full [&::-moz-range-thumb]:border-2 [&::-moz-range-thumb]:border-primary [&::-moz-range-thumb]:bg-background [&::-moz-range-thumb]:shadow",
|
|
5675
6366
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background",
|
|
5676
6367
|
"disabled:cursor-not-allowed disabled:opacity-50"
|
|
5677
6368
|
);
|
|
5678
|
-
var RangeSlider =
|
|
6369
|
+
var RangeSlider = React87.forwardRef(function RangeSlider2({
|
|
5679
6370
|
value,
|
|
5680
6371
|
defaultValue,
|
|
5681
6372
|
onValueChange,
|
|
@@ -5691,7 +6382,7 @@ var RangeSlider = React82.forwardRef(function RangeSlider2({
|
|
|
5691
6382
|
...props
|
|
5692
6383
|
}, ref) {
|
|
5693
6384
|
const clamp = (entry) => Math.min(Math.max(entry, min), max);
|
|
5694
|
-
const [internal, setInternal] =
|
|
6385
|
+
const [internal, setInternal] = React87.useState(() => {
|
|
5695
6386
|
const initial = defaultValue ?? [min, max];
|
|
5696
6387
|
return [clamp(initial[0]), clamp(initial[1])];
|
|
5697
6388
|
});
|
|
@@ -5705,21 +6396,21 @@ var RangeSlider = React82.forwardRef(function RangeSlider2({
|
|
|
5705
6396
|
const span = max - min || 1;
|
|
5706
6397
|
const lowPercent = (low - min) / span * 100;
|
|
5707
6398
|
const highPercent = (high - min) / span * 100;
|
|
5708
|
-
return /* @__PURE__ */
|
|
5709
|
-
showValues && /* @__PURE__ */
|
|
5710
|
-
/* @__PURE__ */
|
|
5711
|
-
/* @__PURE__ */
|
|
6399
|
+
return /* @__PURE__ */ jsxs63("div", { ref, className: cn("w-full", className), ...props, children: [
|
|
6400
|
+
showValues && /* @__PURE__ */ jsxs63("div", { className: "mb-2 flex items-center justify-between text-sm font-medium tabular-nums", children: [
|
|
6401
|
+
/* @__PURE__ */ jsx87("span", { children: formatValue(low) }),
|
|
6402
|
+
/* @__PURE__ */ jsx87("span", { children: formatValue(high) })
|
|
5712
6403
|
] }),
|
|
5713
|
-
/* @__PURE__ */
|
|
5714
|
-
/* @__PURE__ */
|
|
5715
|
-
/* @__PURE__ */
|
|
6404
|
+
/* @__PURE__ */ jsxs63("div", { className: "relative h-6 w-full", children: [
|
|
6405
|
+
/* @__PURE__ */ jsx87("div", { className: "absolute inset-x-0 top-1/2 h-1 -translate-y-1/2 rounded-full bg-muted" }),
|
|
6406
|
+
/* @__PURE__ */ jsx87(
|
|
5716
6407
|
"div",
|
|
5717
6408
|
{
|
|
5718
6409
|
className: "absolute top-1/2 h-1 -translate-y-1/2 rounded-full bg-primary",
|
|
5719
6410
|
style: { left: `${lowPercent}%`, right: `${100 - highPercent}%` }
|
|
5720
6411
|
}
|
|
5721
6412
|
),
|
|
5722
|
-
/* @__PURE__ */
|
|
6413
|
+
/* @__PURE__ */ jsx87(
|
|
5723
6414
|
"input",
|
|
5724
6415
|
{
|
|
5725
6416
|
type: "range",
|
|
@@ -5734,7 +6425,7 @@ var RangeSlider = React82.forwardRef(function RangeSlider2({
|
|
|
5734
6425
|
className: cn(rangeInputClass, "z-10")
|
|
5735
6426
|
}
|
|
5736
6427
|
),
|
|
5737
|
-
/* @__PURE__ */
|
|
6428
|
+
/* @__PURE__ */ jsx87(
|
|
5738
6429
|
"input",
|
|
5739
6430
|
{
|
|
5740
6431
|
type: "range",
|
|
@@ -5754,9 +6445,9 @@ var RangeSlider = React82.forwardRef(function RangeSlider2({
|
|
|
5754
6445
|
});
|
|
5755
6446
|
|
|
5756
6447
|
// src/components/filter-chips/FilterChips.tsx
|
|
5757
|
-
import * as
|
|
5758
|
-
import { jsx as
|
|
5759
|
-
var FilterChips =
|
|
6448
|
+
import * as React88 from "react";
|
|
6449
|
+
import { jsx as jsx88, jsxs as jsxs64 } from "react/jsx-runtime";
|
|
6450
|
+
var FilterChips = React88.forwardRef(function FilterChips2({
|
|
5760
6451
|
filters,
|
|
5761
6452
|
onClearAll,
|
|
5762
6453
|
clearLabel = "Clear all",
|
|
@@ -5766,9 +6457,9 @@ var FilterChips = React83.forwardRef(function FilterChips2({
|
|
|
5766
6457
|
...props
|
|
5767
6458
|
}, ref) {
|
|
5768
6459
|
if (filters.length === 0) {
|
|
5769
|
-
return emptyLabel ? /* @__PURE__ */
|
|
6460
|
+
return emptyLabel ? /* @__PURE__ */ jsx88("div", { ref, className: cn("text-sm text-muted-foreground", className), ...props, children: emptyLabel }) : null;
|
|
5770
6461
|
}
|
|
5771
|
-
return /* @__PURE__ */
|
|
6462
|
+
return /* @__PURE__ */ jsxs64(
|
|
5772
6463
|
"div",
|
|
5773
6464
|
{
|
|
5774
6465
|
ref,
|
|
@@ -5777,34 +6468,34 @@ var FilterChips = React83.forwardRef(function FilterChips2({
|
|
|
5777
6468
|
className: cn("flex flex-wrap items-center gap-2", className),
|
|
5778
6469
|
...props,
|
|
5779
6470
|
children: [
|
|
5780
|
-
filters.map((filter) => /* @__PURE__ */
|
|
6471
|
+
filters.map((filter) => /* @__PURE__ */ jsxs64(
|
|
5781
6472
|
"span",
|
|
5782
6473
|
{
|
|
5783
6474
|
className: "inline-flex max-w-full items-center gap-1.5 rounded-full border border-border bg-muted/60 py-1 pl-3 pr-1 text-sm",
|
|
5784
6475
|
children: [
|
|
5785
|
-
/* @__PURE__ */
|
|
5786
|
-
/* @__PURE__ */
|
|
6476
|
+
/* @__PURE__ */ jsxs64("span", { className: "truncate", children: [
|
|
6477
|
+
/* @__PURE__ */ jsxs64("span", { className: "text-muted-foreground", children: [
|
|
5787
6478
|
filter.label,
|
|
5788
6479
|
":"
|
|
5789
6480
|
] }),
|
|
5790
6481
|
" ",
|
|
5791
|
-
/* @__PURE__ */
|
|
6482
|
+
/* @__PURE__ */ jsx88("span", { className: "font-medium", children: filter.value ?? "Any" })
|
|
5792
6483
|
] }),
|
|
5793
|
-
filter.onRemove && /* @__PURE__ */
|
|
6484
|
+
filter.onRemove && /* @__PURE__ */ jsx88(
|
|
5794
6485
|
"button",
|
|
5795
6486
|
{
|
|
5796
6487
|
type: "button",
|
|
5797
6488
|
onClick: filter.onRemove,
|
|
5798
6489
|
"aria-label": `Remove ${filter.label}${filter.value ? `: ${filter.value}` : ""}`,
|
|
5799
6490
|
className: "rounded-full p-1 text-muted-foreground transition-colors hover:bg-background hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
5800
|
-
children: /* @__PURE__ */
|
|
6491
|
+
children: /* @__PURE__ */ jsx88("svg", { "aria-hidden": "true", viewBox: "0 0 20 20", className: "h-3.5 w-3.5", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", children: /* @__PURE__ */ jsx88("path", { d: "m5 5 10 10M15 5 5 15" }) })
|
|
5801
6492
|
}
|
|
5802
6493
|
)
|
|
5803
6494
|
]
|
|
5804
6495
|
},
|
|
5805
6496
|
filter.key
|
|
5806
6497
|
)),
|
|
5807
|
-
onClearAll && /* @__PURE__ */
|
|
6498
|
+
onClearAll && /* @__PURE__ */ jsx88(
|
|
5808
6499
|
"button",
|
|
5809
6500
|
{
|
|
5810
6501
|
type: "button",
|
|
@@ -5819,13 +6510,13 @@ var FilterChips = React83.forwardRef(function FilterChips2({
|
|
|
5819
6510
|
});
|
|
5820
6511
|
|
|
5821
6512
|
// src/components/multi-select/MultiSelect.tsx
|
|
5822
|
-
import * as
|
|
6513
|
+
import * as React90 from "react";
|
|
5823
6514
|
|
|
5824
6515
|
// src/components/popover/Popover.tsx
|
|
5825
|
-
import * as
|
|
6516
|
+
import * as React89 from "react";
|
|
5826
6517
|
import { createPortal as createPortal7 } from "react-dom";
|
|
5827
|
-
import { jsx as
|
|
5828
|
-
var PopoverContext =
|
|
6518
|
+
import { jsx as jsx89 } from "react/jsx-runtime";
|
|
6519
|
+
var PopoverContext = React89.createContext({
|
|
5829
6520
|
open: false,
|
|
5830
6521
|
setOpen: () => {
|
|
5831
6522
|
},
|
|
@@ -5833,14 +6524,14 @@ var PopoverContext = React84.createContext({
|
|
|
5833
6524
|
contentId: "",
|
|
5834
6525
|
wrapperRef: { current: null }
|
|
5835
6526
|
});
|
|
5836
|
-
var Popover =
|
|
6527
|
+
var Popover = React89.forwardRef(
|
|
5837
6528
|
({ open, onOpenChange, className, children }, ref) => {
|
|
5838
|
-
const [internalOpen, setInternalOpen] =
|
|
6529
|
+
const [internalOpen, setInternalOpen] = React89.useState(false);
|
|
5839
6530
|
const current = open ?? internalOpen;
|
|
5840
|
-
const triggerId =
|
|
5841
|
-
const contentId =
|
|
5842
|
-
const wrapperRef =
|
|
5843
|
-
const setRefs =
|
|
6531
|
+
const triggerId = React89.useId();
|
|
6532
|
+
const contentId = React89.useId();
|
|
6533
|
+
const wrapperRef = React89.useRef(null);
|
|
6534
|
+
const setRefs = React89.useCallback(
|
|
5844
6535
|
(node) => {
|
|
5845
6536
|
wrapperRef.current = node;
|
|
5846
6537
|
if (typeof ref === "function") ref(node);
|
|
@@ -5848,14 +6539,14 @@ var Popover = React84.forwardRef(
|
|
|
5848
6539
|
},
|
|
5849
6540
|
[ref]
|
|
5850
6541
|
);
|
|
5851
|
-
const setOpen =
|
|
6542
|
+
const setOpen = React89.useCallback(
|
|
5852
6543
|
(next) => {
|
|
5853
6544
|
if (open === void 0) setInternalOpen(next);
|
|
5854
6545
|
onOpenChange?.(next);
|
|
5855
6546
|
},
|
|
5856
6547
|
[open, onOpenChange]
|
|
5857
6548
|
);
|
|
5858
|
-
return /* @__PURE__ */
|
|
6549
|
+
return /* @__PURE__ */ jsx89("div", { ref: setRefs, className: cn("relative inline-block", className), children: /* @__PURE__ */ jsx89(
|
|
5859
6550
|
PopoverContext.Provider,
|
|
5860
6551
|
{
|
|
5861
6552
|
value: { open: current, setOpen, triggerId, contentId, wrapperRef },
|
|
@@ -5865,10 +6556,10 @@ var Popover = React84.forwardRef(
|
|
|
5865
6556
|
}
|
|
5866
6557
|
);
|
|
5867
6558
|
Popover.displayName = "Popover";
|
|
5868
|
-
var PopoverTrigger =
|
|
6559
|
+
var PopoverTrigger = React89.forwardRef(
|
|
5869
6560
|
({ className, children, onClick, ...props }, ref) => {
|
|
5870
|
-
const { open, setOpen, triggerId, contentId } =
|
|
5871
|
-
return /* @__PURE__ */
|
|
6561
|
+
const { open, setOpen, triggerId, contentId } = React89.useContext(PopoverContext);
|
|
6562
|
+
return /* @__PURE__ */ jsx89(
|
|
5872
6563
|
"button",
|
|
5873
6564
|
{
|
|
5874
6565
|
ref,
|
|
@@ -5893,12 +6584,12 @@ var PopoverTrigger = React84.forwardRef(
|
|
|
5893
6584
|
}
|
|
5894
6585
|
);
|
|
5895
6586
|
PopoverTrigger.displayName = "PopoverTrigger";
|
|
5896
|
-
var PopoverContent =
|
|
6587
|
+
var PopoverContent = React89.forwardRef(
|
|
5897
6588
|
({ className, children, onKeyDown, ...props }, ref) => {
|
|
5898
|
-
const { open, setOpen, triggerId, contentId, wrapperRef } =
|
|
5899
|
-
const contentRef =
|
|
5900
|
-
const [pos, setPos] =
|
|
5901
|
-
|
|
6589
|
+
const { open, setOpen, triggerId, contentId, wrapperRef } = React89.useContext(PopoverContext);
|
|
6590
|
+
const contentRef = React89.useRef(null);
|
|
6591
|
+
const [pos, setPos] = React89.useState(null);
|
|
6592
|
+
React89.useLayoutEffect(() => {
|
|
5902
6593
|
if (!open) {
|
|
5903
6594
|
setPos(null);
|
|
5904
6595
|
return;
|
|
@@ -5918,7 +6609,7 @@ var PopoverContent = React84.forwardRef(
|
|
|
5918
6609
|
window.removeEventListener("resize", measure);
|
|
5919
6610
|
};
|
|
5920
6611
|
}, [open, setOpen, wrapperRef]);
|
|
5921
|
-
|
|
6612
|
+
React89.useEffect(() => {
|
|
5922
6613
|
if (!open) return;
|
|
5923
6614
|
function onPointerDown(event) {
|
|
5924
6615
|
if (!contentRef.current?.contains(event.target)) setOpen(false);
|
|
@@ -5926,14 +6617,14 @@ var PopoverContent = React84.forwardRef(
|
|
|
5926
6617
|
document.addEventListener("pointerdown", onPointerDown);
|
|
5927
6618
|
return () => document.removeEventListener("pointerdown", onPointerDown);
|
|
5928
6619
|
}, [open, setOpen]);
|
|
5929
|
-
|
|
6620
|
+
React89.useEffect(() => {
|
|
5930
6621
|
if (open && pos && contentRef.current) {
|
|
5931
6622
|
contentRef.current.focus();
|
|
5932
6623
|
}
|
|
5933
6624
|
}, [open, pos]);
|
|
5934
6625
|
if (!open || !pos || typeof document === "undefined") return null;
|
|
5935
6626
|
return createPortal7(
|
|
5936
|
-
/* @__PURE__ */
|
|
6627
|
+
/* @__PURE__ */ jsx89(
|
|
5937
6628
|
"div",
|
|
5938
6629
|
{
|
|
5939
6630
|
ref: (node) => {
|
|
@@ -5968,8 +6659,8 @@ var PopoverContent = React84.forwardRef(
|
|
|
5968
6659
|
PopoverContent.displayName = "PopoverContent";
|
|
5969
6660
|
|
|
5970
6661
|
// src/components/multi-select/MultiSelect.tsx
|
|
5971
|
-
import { jsx as
|
|
5972
|
-
var MultiSelect =
|
|
6662
|
+
import { jsx as jsx90, jsxs as jsxs65 } from "react/jsx-runtime";
|
|
6663
|
+
var MultiSelect = React90.forwardRef(function MultiSelect2({
|
|
5973
6664
|
options,
|
|
5974
6665
|
value,
|
|
5975
6666
|
defaultValue,
|
|
@@ -5983,10 +6674,10 @@ var MultiSelect = React85.forwardRef(function MultiSelect2({
|
|
|
5983
6674
|
className,
|
|
5984
6675
|
...props
|
|
5985
6676
|
}, ref) {
|
|
5986
|
-
const labelId =
|
|
5987
|
-
const [internal, setInternal] =
|
|
5988
|
-
const [query, setQuery] =
|
|
5989
|
-
const [open, setOpen] =
|
|
6677
|
+
const labelId = React90.useId();
|
|
6678
|
+
const [internal, setInternal] = React90.useState(defaultValue ?? []);
|
|
6679
|
+
const [query, setQuery] = React90.useState("");
|
|
6680
|
+
const [open, setOpen] = React90.useState(false);
|
|
5990
6681
|
const selected = value ?? internal;
|
|
5991
6682
|
const commit = (next) => {
|
|
5992
6683
|
if (value === void 0) setInternal(next);
|
|
@@ -6003,7 +6694,7 @@ var MultiSelect = React85.forwardRef(function MultiSelect2({
|
|
|
6003
6694
|
const q = query.trim().toLowerCase();
|
|
6004
6695
|
return option.label.toLowerCase().includes(q) || option.value.toLowerCase().includes(q) || option.description?.toLowerCase().includes(q) || option.group?.toLowerCase().includes(q);
|
|
6005
6696
|
}) : options;
|
|
6006
|
-
const groups =
|
|
6697
|
+
const groups = React90.useMemo(() => {
|
|
6007
6698
|
let last;
|
|
6008
6699
|
return filtered.map((option) => {
|
|
6009
6700
|
const heading = option.group && option.group !== last ? option.group : void 0;
|
|
@@ -6013,16 +6704,16 @@ var MultiSelect = React85.forwardRef(function MultiSelect2({
|
|
|
6013
6704
|
}, [filtered]);
|
|
6014
6705
|
const visibleChips = selectedOptions.slice(0, maxDisplay);
|
|
6015
6706
|
const hiddenCount = selectedOptions.length - visibleChips.length;
|
|
6016
|
-
return /* @__PURE__ */
|
|
6017
|
-
label && /* @__PURE__ */
|
|
6018
|
-
visibleChips.length > 0 && /* @__PURE__ */
|
|
6019
|
-
visibleChips.map((option) => /* @__PURE__ */
|
|
6707
|
+
return /* @__PURE__ */ jsxs65("div", { ref, className: cn("flex flex-col gap-2", className), ...props, children: [
|
|
6708
|
+
label && /* @__PURE__ */ jsx90("span", { id: labelId, className: "text-sm font-medium", children: label }),
|
|
6709
|
+
visibleChips.length > 0 && /* @__PURE__ */ jsxs65("div", { className: "flex flex-wrap gap-1.5", children: [
|
|
6710
|
+
visibleChips.map((option) => /* @__PURE__ */ jsxs65(
|
|
6020
6711
|
"span",
|
|
6021
6712
|
{
|
|
6022
6713
|
className: "inline-flex max-w-full items-center gap-1 rounded-full border border-border bg-muted/60 py-0.5 pl-2.5 pr-1 text-xs",
|
|
6023
6714
|
children: [
|
|
6024
|
-
/* @__PURE__ */
|
|
6025
|
-
/* @__PURE__ */
|
|
6715
|
+
/* @__PURE__ */ jsx90("span", { className: "truncate", children: option.label }),
|
|
6716
|
+
/* @__PURE__ */ jsx90(
|
|
6026
6717
|
"button",
|
|
6027
6718
|
{
|
|
6028
6719
|
type: "button",
|
|
@@ -6030,26 +6721,26 @@ var MultiSelect = React85.forwardRef(function MultiSelect2({
|
|
|
6030
6721
|
disabled,
|
|
6031
6722
|
"aria-label": `Remove ${option.label}`,
|
|
6032
6723
|
className: "rounded-full p-1 text-muted-foreground hover:bg-background hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:pointer-events-none",
|
|
6033
|
-
children: /* @__PURE__ */
|
|
6724
|
+
children: /* @__PURE__ */ jsx90("svg", { "aria-hidden": "true", viewBox: "0 0 20 20", className: "h-3 w-3", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", children: /* @__PURE__ */ jsx90("path", { d: "m5 5 10 10M15 5 5 15" }) })
|
|
6034
6725
|
}
|
|
6035
6726
|
)
|
|
6036
6727
|
]
|
|
6037
6728
|
},
|
|
6038
6729
|
option.value
|
|
6039
6730
|
)),
|
|
6040
|
-
hiddenCount > 0 && /* @__PURE__ */
|
|
6731
|
+
hiddenCount > 0 && /* @__PURE__ */ jsxs65("span", { className: "self-center text-xs text-muted-foreground", children: [
|
|
6041
6732
|
"+",
|
|
6042
6733
|
hiddenCount,
|
|
6043
6734
|
" more"
|
|
6044
6735
|
] })
|
|
6045
6736
|
] }),
|
|
6046
|
-
/* @__PURE__ */
|
|
6047
|
-
/* @__PURE__ */
|
|
6048
|
-
/* @__PURE__ */
|
|
6049
|
-
/* @__PURE__ */
|
|
6737
|
+
/* @__PURE__ */ jsxs65(Popover, { open, onOpenChange: setOpen, children: [
|
|
6738
|
+
/* @__PURE__ */ jsxs65(PopoverTrigger, { "aria-labelledby": label ? labelId : void 0, disabled, className: "w-full justify-between", children: [
|
|
6739
|
+
/* @__PURE__ */ jsx90("span", { children: selected.length > 0 ? `${selected.length} selected` : triggerLabel }),
|
|
6740
|
+
/* @__PURE__ */ jsx90("span", { "aria-hidden": "true", className: "text-muted-foreground", children: "\u2304" })
|
|
6050
6741
|
] }),
|
|
6051
|
-
/* @__PURE__ */
|
|
6052
|
-
/* @__PURE__ */
|
|
6742
|
+
/* @__PURE__ */ jsxs65(PopoverContent, { className: "w-80 p-0", children: [
|
|
6743
|
+
/* @__PURE__ */ jsx90("div", { className: "border-b border-border p-3", children: /* @__PURE__ */ jsx90(
|
|
6053
6744
|
Input,
|
|
6054
6745
|
{
|
|
6055
6746
|
type: "search",
|
|
@@ -6060,9 +6751,9 @@ var MultiSelect = React85.forwardRef(function MultiSelect2({
|
|
|
6060
6751
|
autoFocus: true
|
|
6061
6752
|
}
|
|
6062
6753
|
) }),
|
|
6063
|
-
/* @__PURE__ */
|
|
6064
|
-
heading && /* @__PURE__ */
|
|
6065
|
-
/* @__PURE__ */
|
|
6754
|
+
/* @__PURE__ */ jsx90("div", { className: "max-h-64 overflow-y-auto p-1", children: groups.length === 0 ? /* @__PURE__ */ jsx90("p", { className: "px-3 py-3 text-sm text-muted-foreground", children: emptyText }) : groups.map(({ option, heading }) => /* @__PURE__ */ jsxs65(React90.Fragment, { children: [
|
|
6755
|
+
heading && /* @__PURE__ */ jsx90("p", { className: "px-3 pb-1 pt-2 text-xs font-medium uppercase tracking-wide text-muted-foreground", children: heading }),
|
|
6756
|
+
/* @__PURE__ */ jsxs65(
|
|
6066
6757
|
"label",
|
|
6067
6758
|
{
|
|
6068
6759
|
className: cn(
|
|
@@ -6070,7 +6761,7 @@ var MultiSelect = React85.forwardRef(function MultiSelect2({
|
|
|
6070
6761
|
option.disabled && "cursor-not-allowed opacity-50"
|
|
6071
6762
|
),
|
|
6072
6763
|
children: [
|
|
6073
|
-
/* @__PURE__ */
|
|
6764
|
+
/* @__PURE__ */ jsx90(
|
|
6074
6765
|
Checkbox,
|
|
6075
6766
|
{
|
|
6076
6767
|
checked: selected.includes(option.value),
|
|
@@ -6079,16 +6770,16 @@ var MultiSelect = React85.forwardRef(function MultiSelect2({
|
|
|
6079
6770
|
className: "mt-0.5"
|
|
6080
6771
|
}
|
|
6081
6772
|
),
|
|
6082
|
-
/* @__PURE__ */
|
|
6083
|
-
/* @__PURE__ */
|
|
6084
|
-
option.description && /* @__PURE__ */
|
|
6773
|
+
/* @__PURE__ */ jsxs65("span", { className: "min-w-0", children: [
|
|
6774
|
+
/* @__PURE__ */ jsx90("span", { className: "block", children: option.label }),
|
|
6775
|
+
option.description && /* @__PURE__ */ jsx90("span", { className: "mt-0.5 block text-xs text-muted-foreground", children: option.description })
|
|
6085
6776
|
] })
|
|
6086
6777
|
]
|
|
6087
6778
|
}
|
|
6088
6779
|
)
|
|
6089
6780
|
] }, option.value)) }),
|
|
6090
|
-
/* @__PURE__ */
|
|
6091
|
-
/* @__PURE__ */
|
|
6781
|
+
/* @__PURE__ */ jsxs65("div", { className: "flex items-center justify-between gap-2 border-t border-border p-2", children: [
|
|
6782
|
+
/* @__PURE__ */ jsx90(
|
|
6092
6783
|
Button,
|
|
6093
6784
|
{
|
|
6094
6785
|
type: "button",
|
|
@@ -6098,7 +6789,7 @@ var MultiSelect = React85.forwardRef(function MultiSelect2({
|
|
|
6098
6789
|
children: "Select all"
|
|
6099
6790
|
}
|
|
6100
6791
|
),
|
|
6101
|
-
/* @__PURE__ */
|
|
6792
|
+
/* @__PURE__ */ jsx90(Button, { type: "button", variant: "ghost", size: "sm", onClick: () => commit([]), children: "Clear" })
|
|
6102
6793
|
] })
|
|
6103
6794
|
] })
|
|
6104
6795
|
] })
|
|
@@ -6106,9 +6797,9 @@ var MultiSelect = React85.forwardRef(function MultiSelect2({
|
|
|
6106
6797
|
});
|
|
6107
6798
|
|
|
6108
6799
|
// src/components/filter-panel/FilterPanel.tsx
|
|
6109
|
-
import * as
|
|
6110
|
-
import { jsx as
|
|
6111
|
-
var FilterPanel =
|
|
6800
|
+
import * as React91 from "react";
|
|
6801
|
+
import { jsx as jsx91, jsxs as jsxs66 } from "react/jsx-runtime";
|
|
6802
|
+
var FilterPanel = React91.forwardRef(function FilterPanel2({
|
|
6112
6803
|
sections,
|
|
6113
6804
|
title = "Filters",
|
|
6114
6805
|
description,
|
|
@@ -6124,7 +6815,7 @@ var FilterPanel = React86.forwardRef(function FilterPanel2({
|
|
|
6124
6815
|
...props
|
|
6125
6816
|
}, ref) {
|
|
6126
6817
|
const Tag = as;
|
|
6127
|
-
const [open, setOpen] =
|
|
6818
|
+
const [open, setOpen] = React91.useState(
|
|
6128
6819
|
defaultOpen ?? sections.filter((section) => section.defaultOpen).map((section) => section.title)
|
|
6129
6820
|
);
|
|
6130
6821
|
const isOpen = (section) => !collapsible || open.includes(section.title);
|
|
@@ -6134,15 +6825,15 @@ var FilterPanel = React86.forwardRef(function FilterPanel2({
|
|
|
6134
6825
|
(current) => current.includes(section.title) ? current.filter((title2) => title2 !== section.title) : [...current, section.title]
|
|
6135
6826
|
);
|
|
6136
6827
|
};
|
|
6137
|
-
return /* @__PURE__ */
|
|
6138
|
-
(title || description) && /* @__PURE__ */
|
|
6139
|
-
title && /* @__PURE__ */
|
|
6140
|
-
description && /* @__PURE__ */
|
|
6828
|
+
return /* @__PURE__ */ jsxs66(Tag, { ref, className: cn("w-full rounded-xl border border-border bg-card", className), ...props, children: [
|
|
6829
|
+
(title || description) && /* @__PURE__ */ jsxs66("div", { className: "border-b border-border px-4 py-3", children: [
|
|
6830
|
+
title && /* @__PURE__ */ jsx91("h2", { className: "text-sm font-semibold", children: title }),
|
|
6831
|
+
description && /* @__PURE__ */ jsx91("p", { className: "mt-1 text-xs text-muted-foreground", children: description })
|
|
6141
6832
|
] }),
|
|
6142
|
-
/* @__PURE__ */
|
|
6833
|
+
/* @__PURE__ */ jsx91("div", { className: "divide-y divide-border", children: sections.map((section) => {
|
|
6143
6834
|
const expanded = isOpen(section);
|
|
6144
|
-
return /* @__PURE__ */
|
|
6145
|
-
/* @__PURE__ */
|
|
6835
|
+
return /* @__PURE__ */ jsxs66("div", { className: "px-4 py-3", children: [
|
|
6836
|
+
/* @__PURE__ */ jsx91("h3", { children: /* @__PURE__ */ jsxs66(
|
|
6146
6837
|
"button",
|
|
6147
6838
|
{
|
|
6148
6839
|
type: "button",
|
|
@@ -6155,28 +6846,28 @@ var FilterPanel = React86.forwardRef(function FilterPanel2({
|
|
|
6155
6846
|
collapsible && "rounded-sm focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
6156
6847
|
),
|
|
6157
6848
|
children: [
|
|
6158
|
-
/* @__PURE__ */
|
|
6849
|
+
/* @__PURE__ */ jsxs66("span", { children: [
|
|
6159
6850
|
section.title,
|
|
6160
|
-
section.description && /* @__PURE__ */
|
|
6851
|
+
section.description && /* @__PURE__ */ jsx91("span", { className: "mt-0.5 block text-xs font-normal text-muted-foreground", children: section.description })
|
|
6161
6852
|
] }),
|
|
6162
|
-
collapsible && /* @__PURE__ */
|
|
6853
|
+
collapsible && /* @__PURE__ */ jsx91("span", { "aria-hidden": "true", className: cn("text-muted-foreground transition-transform", expanded && "rotate-180"), children: "\u2304" })
|
|
6163
6854
|
]
|
|
6164
6855
|
}
|
|
6165
6856
|
) }),
|
|
6166
|
-
expanded && /* @__PURE__ */
|
|
6857
|
+
expanded && /* @__PURE__ */ jsx91("div", { id: `filter-section-${section.title.replace(/\s+/g, "-").toLowerCase()}`, className: "mt-3", children: section.content })
|
|
6167
6858
|
] }, section.title);
|
|
6168
6859
|
}) }),
|
|
6169
|
-
(onReset || onApply || actions) && /* @__PURE__ */
|
|
6860
|
+
(onReset || onApply || actions) && /* @__PURE__ */ jsxs66("div", { className: "flex flex-wrap items-center gap-2 border-t border-border px-4 py-3", children: [
|
|
6170
6861
|
actions,
|
|
6171
|
-
onReset && /* @__PURE__ */
|
|
6172
|
-
onApply && /* @__PURE__ */
|
|
6862
|
+
onReset && /* @__PURE__ */ jsx91(Button, { type: "button", variant: "ghost", size: "sm", onClick: onReset, className: "ml-auto", children: resetLabel }),
|
|
6863
|
+
onApply && /* @__PURE__ */ jsx91(Button, { type: "button", size: "sm", onClick: onApply, children: applyLabel })
|
|
6173
6864
|
] })
|
|
6174
6865
|
] });
|
|
6175
6866
|
});
|
|
6176
6867
|
|
|
6177
6868
|
// src/components/date-range-picker/DateRangePicker.tsx
|
|
6178
|
-
import * as
|
|
6179
|
-
import { jsx as
|
|
6869
|
+
import * as React92 from "react";
|
|
6870
|
+
import { jsx as jsx92, jsxs as jsxs67 } from "react/jsx-runtime";
|
|
6180
6871
|
var DEFAULT_PRESETS = [
|
|
6181
6872
|
{ label: "7 days", days: 7 },
|
|
6182
6873
|
{ label: "30 days", days: 30 },
|
|
@@ -6189,7 +6880,7 @@ function toIsoDate(date) {
|
|
|
6189
6880
|
const day = String(date.getDate()).padStart(2, "0");
|
|
6190
6881
|
return `${year}-${month}-${day}`;
|
|
6191
6882
|
}
|
|
6192
|
-
var DateRangePicker =
|
|
6883
|
+
var DateRangePicker = React92.forwardRef(
|
|
6193
6884
|
function DateRangePicker2({
|
|
6194
6885
|
value,
|
|
6195
6886
|
defaultValue,
|
|
@@ -6202,9 +6893,9 @@ var DateRangePicker = React87.forwardRef(
|
|
|
6202
6893
|
className,
|
|
6203
6894
|
...props
|
|
6204
6895
|
}, ref) {
|
|
6205
|
-
const startId =
|
|
6206
|
-
const endId =
|
|
6207
|
-
const [internal, setInternal] =
|
|
6896
|
+
const startId = React92.useId();
|
|
6897
|
+
const endId = React92.useId();
|
|
6898
|
+
const [internal, setInternal] = React92.useState(defaultValue ?? {});
|
|
6208
6899
|
const current = value ?? internal;
|
|
6209
6900
|
const commit = (next) => {
|
|
6210
6901
|
if (value === void 0) setInternal(next);
|
|
@@ -6228,8 +6919,8 @@ var DateRangePicker = React87.forwardRef(
|
|
|
6228
6919
|
}
|
|
6229
6920
|
commit({ start: toIsoDate(start), end: toIsoDate(end) });
|
|
6230
6921
|
};
|
|
6231
|
-
return /* @__PURE__ */
|
|
6232
|
-
showPresets && presets.length > 0 && /* @__PURE__ */
|
|
6922
|
+
return /* @__PURE__ */ jsxs67("div", { ref, className: cn("flex flex-col gap-3", className), ...props, children: [
|
|
6923
|
+
showPresets && presets.length > 0 && /* @__PURE__ */ jsx92("div", { className: "flex flex-wrap gap-2", children: presets.map((preset) => /* @__PURE__ */ jsx92(
|
|
6233
6924
|
Button,
|
|
6234
6925
|
{
|
|
6235
6926
|
type: "button",
|
|
@@ -6241,10 +6932,10 @@ var DateRangePicker = React87.forwardRef(
|
|
|
6241
6932
|
},
|
|
6242
6933
|
preset.label
|
|
6243
6934
|
)) }),
|
|
6244
|
-
/* @__PURE__ */
|
|
6245
|
-
/* @__PURE__ */
|
|
6246
|
-
/* @__PURE__ */
|
|
6247
|
-
/* @__PURE__ */
|
|
6935
|
+
/* @__PURE__ */ jsxs67("div", { className: "grid gap-3 sm:grid-cols-2", children: [
|
|
6936
|
+
/* @__PURE__ */ jsxs67("div", { children: [
|
|
6937
|
+
/* @__PURE__ */ jsx92("label", { htmlFor: startId, className: "mb-1 block text-xs font-medium text-muted-foreground", children: startLabel }),
|
|
6938
|
+
/* @__PURE__ */ jsx92(
|
|
6248
6939
|
DatePicker,
|
|
6249
6940
|
{
|
|
6250
6941
|
id: startId,
|
|
@@ -6256,9 +6947,9 @@ var DateRangePicker = React87.forwardRef(
|
|
|
6256
6947
|
}
|
|
6257
6948
|
)
|
|
6258
6949
|
] }),
|
|
6259
|
-
/* @__PURE__ */
|
|
6260
|
-
/* @__PURE__ */
|
|
6261
|
-
/* @__PURE__ */
|
|
6950
|
+
/* @__PURE__ */ jsxs67("div", { children: [
|
|
6951
|
+
/* @__PURE__ */ jsx92("label", { htmlFor: endId, className: "mb-1 block text-xs font-medium text-muted-foreground", children: endLabel }),
|
|
6952
|
+
/* @__PURE__ */ jsx92(
|
|
6262
6953
|
DatePicker,
|
|
6263
6954
|
{
|
|
6264
6955
|
id: endId,
|
|
@@ -6276,9 +6967,9 @@ var DateRangePicker = React87.forwardRef(
|
|
|
6276
6967
|
);
|
|
6277
6968
|
|
|
6278
6969
|
// src/components/applied-filters/AppliedFilters.tsx
|
|
6279
|
-
import * as
|
|
6280
|
-
import { jsx as
|
|
6281
|
-
var AppliedFilters =
|
|
6970
|
+
import * as React93 from "react";
|
|
6971
|
+
import { jsx as jsx93, jsxs as jsxs68 } from "react/jsx-runtime";
|
|
6972
|
+
var AppliedFilters = React93.forwardRef(
|
|
6282
6973
|
function AppliedFilters2({
|
|
6283
6974
|
filters,
|
|
6284
6975
|
onClearAll,
|
|
@@ -6291,9 +6982,9 @@ var AppliedFilters = React88.forwardRef(
|
|
|
6291
6982
|
}, ref) {
|
|
6292
6983
|
const summary = label ?? `${filters.length} active`;
|
|
6293
6984
|
if (filters.length === 0) {
|
|
6294
|
-
return emptyLabel ? /* @__PURE__ */
|
|
6985
|
+
return emptyLabel ? /* @__PURE__ */ jsx93("div", { ref, className: cn("text-sm text-muted-foreground", className), ...props, children: emptyLabel }) : null;
|
|
6295
6986
|
}
|
|
6296
|
-
return /* @__PURE__ */
|
|
6987
|
+
return /* @__PURE__ */ jsxs68(
|
|
6297
6988
|
"div",
|
|
6298
6989
|
{
|
|
6299
6990
|
ref,
|
|
@@ -6301,9 +6992,9 @@ var AppliedFilters = React88.forwardRef(
|
|
|
6301
6992
|
className: cn("flex flex-wrap items-center gap-2", className),
|
|
6302
6993
|
...props,
|
|
6303
6994
|
children: [
|
|
6304
|
-
/* @__PURE__ */
|
|
6305
|
-
/* @__PURE__ */
|
|
6306
|
-
onEdit && /* @__PURE__ */
|
|
6995
|
+
/* @__PURE__ */ jsx93("span", { className: "text-xs font-medium uppercase tracking-wide text-muted-foreground", children: summary }),
|
|
6996
|
+
/* @__PURE__ */ jsx93(FilterChips, { filters, onClearAll }),
|
|
6997
|
+
onEdit && /* @__PURE__ */ jsx93(Button, { type: "button", variant: "ghost", size: "sm", onClick: onEdit, children: editLabel })
|
|
6307
6998
|
]
|
|
6308
6999
|
}
|
|
6309
7000
|
);
|
|
@@ -6311,11 +7002,11 @@ var AppliedFilters = React88.forwardRef(
|
|
|
6311
7002
|
);
|
|
6312
7003
|
|
|
6313
7004
|
// src/components/menu/Menu.tsx
|
|
6314
|
-
import * as
|
|
7005
|
+
import * as React94 from "react";
|
|
6315
7006
|
import { createPortal as createPortal8 } from "react-dom";
|
|
6316
7007
|
import { Slot as Slot5 } from "@radix-ui/react-slot";
|
|
6317
|
-
import { jsx as
|
|
6318
|
-
var MenuContext =
|
|
7008
|
+
import { jsx as jsx94 } from "react/jsx-runtime";
|
|
7009
|
+
var MenuContext = React94.createContext({
|
|
6319
7010
|
open: false,
|
|
6320
7011
|
setOpen: () => {
|
|
6321
7012
|
},
|
|
@@ -6324,13 +7015,13 @@ var MenuContext = React89.createContext({
|
|
|
6324
7015
|
},
|
|
6325
7016
|
wrapperRef: { current: null }
|
|
6326
7017
|
});
|
|
6327
|
-
var Menu =
|
|
7018
|
+
var Menu = React94.forwardRef(
|
|
6328
7019
|
({ open, onOpenChange, className, children }, ref) => {
|
|
6329
|
-
const [internalOpen, setInternalOpen] =
|
|
6330
|
-
const [activeIndex, setActiveIndex] =
|
|
7020
|
+
const [internalOpen, setInternalOpen] = React94.useState(false);
|
|
7021
|
+
const [activeIndex, setActiveIndex] = React94.useState(-1);
|
|
6331
7022
|
const current = open ?? internalOpen;
|
|
6332
|
-
const wrapperRef =
|
|
6333
|
-
const setRefs =
|
|
7023
|
+
const wrapperRef = React94.useRef(null);
|
|
7024
|
+
const setRefs = React94.useCallback(
|
|
6334
7025
|
(node) => {
|
|
6335
7026
|
wrapperRef.current = node;
|
|
6336
7027
|
if (typeof ref === "function") ref(node);
|
|
@@ -6338,7 +7029,7 @@ var Menu = React89.forwardRef(
|
|
|
6338
7029
|
},
|
|
6339
7030
|
[ref]
|
|
6340
7031
|
);
|
|
6341
|
-
const setOpen =
|
|
7032
|
+
const setOpen = React94.useCallback(
|
|
6342
7033
|
(next) => {
|
|
6343
7034
|
if (open === void 0) setInternalOpen(next);
|
|
6344
7035
|
onOpenChange?.(next);
|
|
@@ -6346,7 +7037,7 @@ var Menu = React89.forwardRef(
|
|
|
6346
7037
|
},
|
|
6347
7038
|
[open, onOpenChange]
|
|
6348
7039
|
);
|
|
6349
|
-
return /* @__PURE__ */
|
|
7040
|
+
return /* @__PURE__ */ jsx94("div", { ref: setRefs, className: cn("relative inline-block", className), children: /* @__PURE__ */ jsx94(
|
|
6350
7041
|
MenuContext.Provider,
|
|
6351
7042
|
{
|
|
6352
7043
|
value: { open: current, setOpen, activeIndex, setActiveIndex, wrapperRef },
|
|
@@ -6356,10 +7047,10 @@ var Menu = React89.forwardRef(
|
|
|
6356
7047
|
}
|
|
6357
7048
|
);
|
|
6358
7049
|
Menu.displayName = "Menu";
|
|
6359
|
-
var MenuTrigger =
|
|
7050
|
+
var MenuTrigger = React94.forwardRef(
|
|
6360
7051
|
({ className, children, ...props }, ref) => {
|
|
6361
|
-
const { open, setOpen } =
|
|
6362
|
-
return /* @__PURE__ */
|
|
7052
|
+
const { open, setOpen } = React94.useContext(MenuContext);
|
|
7053
|
+
return /* @__PURE__ */ jsx94(
|
|
6363
7054
|
"button",
|
|
6364
7055
|
{
|
|
6365
7056
|
ref,
|
|
@@ -6379,13 +7070,13 @@ var MenuTrigger = React89.forwardRef(
|
|
|
6379
7070
|
}
|
|
6380
7071
|
);
|
|
6381
7072
|
MenuTrigger.displayName = "MenuTrigger";
|
|
6382
|
-
var MenuContent =
|
|
7073
|
+
var MenuContent = React94.forwardRef(
|
|
6383
7074
|
({ className, children, ...props }, ref) => {
|
|
6384
|
-
const { open, setOpen, activeIndex, setActiveIndex, wrapperRef } =
|
|
6385
|
-
const contentRef =
|
|
6386
|
-
const [pos, setPos] =
|
|
6387
|
-
const itemsRef =
|
|
6388
|
-
|
|
7075
|
+
const { open, setOpen, activeIndex, setActiveIndex, wrapperRef } = React94.useContext(MenuContext);
|
|
7076
|
+
const contentRef = React94.useRef(null);
|
|
7077
|
+
const [pos, setPos] = React94.useState(null);
|
|
7078
|
+
const itemsRef = React94.useRef([]);
|
|
7079
|
+
React94.useLayoutEffect(() => {
|
|
6389
7080
|
if (!open) {
|
|
6390
7081
|
setPos(null);
|
|
6391
7082
|
return;
|
|
@@ -6405,7 +7096,7 @@ var MenuContent = React89.forwardRef(
|
|
|
6405
7096
|
window.removeEventListener("resize", measure);
|
|
6406
7097
|
};
|
|
6407
7098
|
}, [open, setOpen, wrapperRef]);
|
|
6408
|
-
|
|
7099
|
+
React94.useEffect(() => {
|
|
6409
7100
|
if (!open) return;
|
|
6410
7101
|
function onPointerDown(event) {
|
|
6411
7102
|
if (!contentRef.current?.contains(event.target)) setOpen(false);
|
|
@@ -6413,7 +7104,7 @@ var MenuContent = React89.forwardRef(
|
|
|
6413
7104
|
document.addEventListener("pointerdown", onPointerDown);
|
|
6414
7105
|
return () => document.removeEventListener("pointerdown", onPointerDown);
|
|
6415
7106
|
}, [open, setOpen]);
|
|
6416
|
-
|
|
7107
|
+
React94.useEffect(() => {
|
|
6417
7108
|
if (open && pos && contentRef.current) {
|
|
6418
7109
|
itemsRef.current = Array.from(
|
|
6419
7110
|
contentRef.current.querySelectorAll('[role="menuitem"]:not([disabled])')
|
|
@@ -6449,7 +7140,7 @@ var MenuContent = React89.forwardRef(
|
|
|
6449
7140
|
};
|
|
6450
7141
|
if (!open || !pos || typeof document === "undefined") return null;
|
|
6451
7142
|
return createPortal8(
|
|
6452
|
-
/* @__PURE__ */
|
|
7143
|
+
/* @__PURE__ */ jsx94(
|
|
6453
7144
|
"div",
|
|
6454
7145
|
{
|
|
6455
7146
|
ref: (node) => {
|
|
@@ -6473,12 +7164,12 @@ var MenuContent = React89.forwardRef(
|
|
|
6473
7164
|
}
|
|
6474
7165
|
);
|
|
6475
7166
|
MenuContent.displayName = "MenuContent";
|
|
6476
|
-
var MenuItem =
|
|
7167
|
+
var MenuItem = React94.forwardRef(
|
|
6477
7168
|
({ className, destructive, asChild = false, onClick, ...props }, ref) => {
|
|
6478
|
-
const { setOpen } =
|
|
7169
|
+
const { setOpen } = React94.useContext(MenuContext);
|
|
6479
7170
|
const Comp = asChild ? Slot5 : "button";
|
|
6480
7171
|
const typeProp = asChild ? {} : { type: "button" };
|
|
6481
|
-
return /* @__PURE__ */
|
|
7172
|
+
return /* @__PURE__ */ jsx94(
|
|
6482
7173
|
Comp,
|
|
6483
7174
|
{
|
|
6484
7175
|
ref,
|
|
@@ -6500,12 +7191,12 @@ var MenuItem = React89.forwardRef(
|
|
|
6500
7191
|
}
|
|
6501
7192
|
);
|
|
6502
7193
|
MenuItem.displayName = "MenuItem";
|
|
6503
|
-
var MenuSeparator =
|
|
6504
|
-
({ className, ...props }, ref) => /* @__PURE__ */
|
|
7194
|
+
var MenuSeparator = React94.forwardRef(
|
|
7195
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx94("div", { ref, role: "separator", className: cn("-mx-1 my-1 h-px bg-border", className), ...props })
|
|
6505
7196
|
);
|
|
6506
7197
|
MenuSeparator.displayName = "MenuSeparator";
|
|
6507
|
-
var MenuLabel =
|
|
6508
|
-
({ className, ...props }, ref) => /* @__PURE__ */
|
|
7198
|
+
var MenuLabel = React94.forwardRef(
|
|
7199
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx94(
|
|
6509
7200
|
"div",
|
|
6510
7201
|
{
|
|
6511
7202
|
ref,
|
|
@@ -6517,9 +7208,9 @@ var MenuLabel = React89.forwardRef(
|
|
|
6517
7208
|
MenuLabel.displayName = "MenuLabel";
|
|
6518
7209
|
|
|
6519
7210
|
// src/components/alert/Alert.tsx
|
|
6520
|
-
import * as
|
|
7211
|
+
import * as React95 from "react";
|
|
6521
7212
|
import { cva as cva8 } from "class-variance-authority";
|
|
6522
|
-
import { jsx as
|
|
7213
|
+
import { jsx as jsx95 } from "react/jsx-runtime";
|
|
6523
7214
|
var alertVariants = cva8(
|
|
6524
7215
|
"relative w-full rounded-lg border px-4 py-3 text-sm [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground [&>svg~*]:pl-7",
|
|
6525
7216
|
{
|
|
@@ -6539,8 +7230,8 @@ var alertVariants = cva8(
|
|
|
6539
7230
|
}
|
|
6540
7231
|
}
|
|
6541
7232
|
);
|
|
6542
|
-
var Alert =
|
|
6543
|
-
({ className, variant, ...props }, ref) => /* @__PURE__ */
|
|
7233
|
+
var Alert = React95.forwardRef(
|
|
7234
|
+
({ className, variant, ...props }, ref) => /* @__PURE__ */ jsx95(
|
|
6544
7235
|
"div",
|
|
6545
7236
|
{
|
|
6546
7237
|
ref,
|
|
@@ -6551,8 +7242,8 @@ var Alert = React90.forwardRef(
|
|
|
6551
7242
|
)
|
|
6552
7243
|
);
|
|
6553
7244
|
Alert.displayName = "Alert";
|
|
6554
|
-
var AlertTitle =
|
|
6555
|
-
({ className, ...props }, ref) => /* @__PURE__ */
|
|
7245
|
+
var AlertTitle = React95.forwardRef(
|
|
7246
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx95(
|
|
6556
7247
|
"h5",
|
|
6557
7248
|
{
|
|
6558
7249
|
ref,
|
|
@@ -6562,8 +7253,8 @@ var AlertTitle = React90.forwardRef(
|
|
|
6562
7253
|
)
|
|
6563
7254
|
);
|
|
6564
7255
|
AlertTitle.displayName = "AlertTitle";
|
|
6565
|
-
var AlertDescription =
|
|
6566
|
-
({ className, ...props }, ref) => /* @__PURE__ */
|
|
7256
|
+
var AlertDescription = React95.forwardRef(
|
|
7257
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx95(
|
|
6567
7258
|
"div",
|
|
6568
7259
|
{
|
|
6569
7260
|
ref,
|
|
@@ -6575,23 +7266,23 @@ var AlertDescription = React90.forwardRef(
|
|
|
6575
7266
|
AlertDescription.displayName = "AlertDescription";
|
|
6576
7267
|
|
|
6577
7268
|
// src/components/breadcrumb/Breadcrumb.tsx
|
|
6578
|
-
import * as
|
|
6579
|
-
import { jsx as
|
|
6580
|
-
var Breadcrumb =
|
|
7269
|
+
import * as React96 from "react";
|
|
7270
|
+
import { jsx as jsx96, jsxs as jsxs69 } from "react/jsx-runtime";
|
|
7271
|
+
var Breadcrumb = React96.forwardRef(
|
|
6581
7272
|
({ items, label = "Breadcrumb", separator = "/", onItemClick, linkComponent, linkHrefProp = "href", truncateCurrent = false, className, ...props }, ref) => {
|
|
6582
7273
|
const LinkEl = linkComponent ?? "a";
|
|
6583
|
-
return /* @__PURE__ */
|
|
7274
|
+
return /* @__PURE__ */ jsx96(
|
|
6584
7275
|
"nav",
|
|
6585
7276
|
{
|
|
6586
7277
|
ref,
|
|
6587
7278
|
"aria-label": label,
|
|
6588
7279
|
className: cn("flex items-center space-x-1.5 text-sm text-muted-foreground", className),
|
|
6589
7280
|
...props,
|
|
6590
|
-
children: /* @__PURE__ */
|
|
7281
|
+
children: /* @__PURE__ */ jsx96("ol", { className: "flex flex-wrap items-center space-x-1.5", children: items.map((item, index) => {
|
|
6591
7282
|
const isLast = index === items.length - 1;
|
|
6592
|
-
return /* @__PURE__ */
|
|
6593
|
-
index > 0 && /* @__PURE__ */
|
|
6594
|
-
item.href && !isLast ? /* @__PURE__ */
|
|
7283
|
+
return /* @__PURE__ */ jsxs69("li", { className: cn("flex items-center space-x-1.5", truncateCurrent && isLast && "min-w-0"), children: [
|
|
7284
|
+
index > 0 && /* @__PURE__ */ jsx96("span", { "aria-hidden": "true", className: "text-muted-foreground/50", children: separator }),
|
|
7285
|
+
item.href && !isLast ? /* @__PURE__ */ jsx96(
|
|
6595
7286
|
LinkEl,
|
|
6596
7287
|
{
|
|
6597
7288
|
...linkHrefProp === "to" ? { to: item.href } : { href: item.href },
|
|
@@ -6602,7 +7293,7 @@ var Breadcrumb = React91.forwardRef(
|
|
|
6602
7293
|
} : void 0,
|
|
6603
7294
|
children: item.label
|
|
6604
7295
|
}
|
|
6605
|
-
) : /* @__PURE__ */
|
|
7296
|
+
) : /* @__PURE__ */ jsx96(
|
|
6606
7297
|
"span",
|
|
6607
7298
|
{
|
|
6608
7299
|
"aria-current": isLast ? "page" : void 0,
|
|
@@ -6637,6 +7328,7 @@ export {
|
|
|
6637
7328
|
AvatarImage,
|
|
6638
7329
|
Badge,
|
|
6639
7330
|
Block,
|
|
7331
|
+
BottomNav,
|
|
6640
7332
|
Breadcrumb,
|
|
6641
7333
|
Button,
|
|
6642
7334
|
ButtonGroup,
|
|
@@ -6657,6 +7349,7 @@ export {
|
|
|
6657
7349
|
DataTable,
|
|
6658
7350
|
DatePicker,
|
|
6659
7351
|
DateRangePicker,
|
|
7352
|
+
DealCard,
|
|
6660
7353
|
Dialog,
|
|
6661
7354
|
DialogBody,
|
|
6662
7355
|
DialogDescription,
|
|
@@ -6664,8 +7357,10 @@ export {
|
|
|
6664
7357
|
DialogHeader,
|
|
6665
7358
|
DialogTitle,
|
|
6666
7359
|
Divider,
|
|
7360
|
+
DocumentCard,
|
|
6667
7361
|
Drawer,
|
|
6668
7362
|
EmptyState,
|
|
7363
|
+
EntityCard,
|
|
6669
7364
|
FeatureGrid,
|
|
6670
7365
|
FeatureRow,
|
|
6671
7366
|
Fieldset,
|
|
@@ -6690,6 +7385,7 @@ export {
|
|
|
6690
7385
|
LinkTabs,
|
|
6691
7386
|
List,
|
|
6692
7387
|
ListItem,
|
|
7388
|
+
LoadMore,
|
|
6693
7389
|
LogoCloud,
|
|
6694
7390
|
Menu,
|
|
6695
7391
|
MenuContent,
|
|
@@ -6707,6 +7403,7 @@ export {
|
|
|
6707
7403
|
PopoverContent,
|
|
6708
7404
|
PopoverTrigger,
|
|
6709
7405
|
ProcessSteps,
|
|
7406
|
+
ProfileCard,
|
|
6710
7407
|
Progress,
|
|
6711
7408
|
Prose,
|
|
6712
7409
|
Radio,
|
|
@@ -6752,6 +7449,7 @@ export {
|
|
|
6752
7449
|
Timeline,
|
|
6753
7450
|
ToastProvider,
|
|
6754
7451
|
Toaster,
|
|
7452
|
+
TombstoneCard,
|
|
6755
7453
|
Tooltip,
|
|
6756
7454
|
alertVariants,
|
|
6757
7455
|
badgeVariants,
|