@slipstream-ui/core 0.9.0 → 0.10.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +0 -4
- package/dist/index.d.mts +32 -4
- package/dist/index.d.ts +32 -4
- package/dist/index.js +162 -88
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +162 -88
- package/dist/index.mjs.map +1 -1
- package/dist/manifests/accordion.manifest.json +1 -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 +1 -1
- package/dist/manifests/autocomplete.manifest.json +1 -1
- package/dist/manifests/avatar.manifest.json +1 -1
- package/dist/manifests/badge.manifest.json +1 -1
- package/dist/manifests/block.manifest.json +1 -1
- package/dist/manifests/bottom-nav.manifest.json +1 -1
- 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/calendar.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-popover.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 +1 -1
- package/dist/manifests/dialog.manifest.json +1 -1
- package/dist/manifests/document-card.manifest.json +1 -1
- package/dist/manifests/drawer.manifest.json +1 -1
- package/dist/manifests/empty-state.manifest.json +1 -1
- package/dist/manifests/entity-card.manifest.json +1 -1
- 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 +13 -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 +1 -1
- package/dist/manifests/image.manifest.json +1 -1
- 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 +1 -1
- package/dist/manifests/logo-cloud.manifest.json +1 -1
- package/dist/manifests/menu.manifest.json +1 -1
- package/dist/manifests/metric-card.manifest.json +1 -1
- package/dist/manifests/multi-select.manifest.json +1 -1
- package/dist/manifests/newsletter.manifest.json +1 -1
- package/dist/manifests/page-header.manifest.json +1 -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 +1 -1
- package/dist/manifests/select.manifest.json +8 -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 +1 -1
- 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 +1 -1
- 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 +1 -1
- package/dist/manifests/tooltip.manifest.json +12 -1
- package/dist/src/components/accordion/Accordion.js +26 -19
- package/dist/src/components/accordion/Accordion.js.map +1 -1
- package/dist/src/components/accordion/Accordion.mjs +26 -19
- package/dist/src/components/accordion/Accordion.mjs.map +1 -1
- package/dist/src/components/bottom-nav/BottomNav.js +1 -1
- package/dist/src/components/bottom-nav/BottomNav.js.map +1 -1
- package/dist/src/components/bottom-nav/BottomNav.mjs +1 -1
- package/dist/src/components/bottom-nav/BottomNav.mjs.map +1 -1
- package/dist/src/components/button/Button.js +1 -1
- package/dist/src/components/button/Button.js.map +1 -1
- package/dist/src/components/button/Button.mjs +1 -1
- package/dist/src/components/button/Button.mjs.map +1 -1
- package/dist/src/components/checkbox/Checkbox.js +1 -1
- package/dist/src/components/checkbox/Checkbox.js.map +1 -1
- package/dist/src/components/checkbox/Checkbox.mjs +1 -1
- package/dist/src/components/checkbox/Checkbox.mjs.map +1 -1
- package/dist/src/components/contact-strip/ContactStrip.js +2 -2
- package/dist/src/components/contact-strip/ContactStrip.js.map +1 -1
- package/dist/src/components/contact-strip/ContactStrip.mjs +2 -2
- package/dist/src/components/contact-strip/ContactStrip.mjs.map +1 -1
- package/dist/src/components/date-picker-popover/DatePickerPopover.d.ts +3 -0
- package/dist/src/components/date-picker-popover/DatePickerPopover.js +5 -1
- package/dist/src/components/date-picker-popover/DatePickerPopover.js.map +1 -1
- package/dist/src/components/date-picker-popover/DatePickerPopover.mjs +5 -1
- package/dist/src/components/date-picker-popover/DatePickerPopover.mjs.map +1 -1
- package/dist/src/components/deal-card/DealCard.js +2 -2
- package/dist/src/components/deal-card/DealCard.js.map +1 -1
- package/dist/src/components/deal-card/DealCard.mjs +2 -2
- package/dist/src/components/deal-card/DealCard.mjs.map +1 -1
- package/dist/src/components/document-card/DocumentCard.js +1 -1
- package/dist/src/components/document-card/DocumentCard.js.map +1 -1
- package/dist/src/components/document-card/DocumentCard.mjs +1 -1
- package/dist/src/components/document-card/DocumentCard.mjs.map +1 -1
- package/dist/src/components/drawer/Drawer.js +2 -1
- package/dist/src/components/drawer/Drawer.js.map +1 -1
- package/dist/src/components/drawer/Drawer.mjs +2 -1
- package/dist/src/components/drawer/Drawer.mjs.map +1 -1
- package/dist/src/components/entity-card/EntityCard.js +2 -2
- package/dist/src/components/entity-card/EntityCard.js.map +1 -1
- package/dist/src/components/entity-card/EntityCard.mjs +2 -2
- package/dist/src/components/entity-card/EntityCard.mjs.map +1 -1
- package/dist/src/components/feature-grid/FeatureGrid.js +2 -2
- package/dist/src/components/feature-grid/FeatureGrid.js.map +1 -1
- package/dist/src/components/feature-grid/FeatureGrid.mjs +2 -2
- package/dist/src/components/feature-grid/FeatureGrid.mjs.map +1 -1
- package/dist/src/components/feature-row/FeatureRow.js +1 -1
- package/dist/src/components/feature-row/FeatureRow.js.map +1 -1
- package/dist/src/components/feature-row/FeatureRow.mjs +1 -1
- package/dist/src/components/feature-row/FeatureRow.mjs.map +1 -1
- package/dist/src/components/file-upload/FileUpload.d.ts +8 -2
- package/dist/src/components/file-upload/FileUpload.js +12 -2
- package/dist/src/components/file-upload/FileUpload.js.map +1 -1
- package/dist/src/components/file-upload/FileUpload.mjs +12 -2
- package/dist/src/components/file-upload/FileUpload.mjs.map +1 -1
- package/dist/src/components/filter-chips/FilterChips.d.ts +4 -0
- package/dist/src/components/filter-chips/FilterChips.js +35 -4
- package/dist/src/components/filter-chips/FilterChips.js.map +1 -1
- package/dist/src/components/filter-chips/FilterChips.mjs +35 -4
- package/dist/src/components/filter-chips/FilterChips.mjs.map +1 -1
- package/dist/src/components/filter-panel/FilterPanel.js +16 -12
- package/dist/src/components/filter-panel/FilterPanel.js.map +1 -1
- package/dist/src/components/filter-panel/FilterPanel.mjs +16 -12
- package/dist/src/components/filter-panel/FilterPanel.mjs.map +1 -1
- package/dist/src/components/hero/Hero.js +2 -2
- package/dist/src/components/hero/Hero.js.map +1 -1
- package/dist/src/components/hero/Hero.mjs +2 -2
- package/dist/src/components/hero/Hero.mjs.map +1 -1
- package/dist/src/components/image/Image.js +5 -0
- package/dist/src/components/image/Image.js.map +1 -1
- package/dist/src/components/image/Image.mjs +5 -0
- package/dist/src/components/image/Image.mjs.map +1 -1
- package/dist/src/components/list/List.js +5 -4
- package/dist/src/components/list/List.js.map +1 -1
- package/dist/src/components/list/List.mjs +5 -4
- package/dist/src/components/list/List.mjs.map +1 -1
- package/dist/src/components/menu/Menu.d.ts +2 -2
- package/dist/src/components/menu/Menu.js.map +1 -1
- package/dist/src/components/menu/Menu.mjs.map +1 -1
- package/dist/src/components/process-steps/ProcessSteps.js +1 -1
- package/dist/src/components/process-steps/ProcessSteps.js.map +1 -1
- package/dist/src/components/process-steps/ProcessSteps.mjs +1 -1
- package/dist/src/components/process-steps/ProcessSteps.mjs.map +1 -1
- package/dist/src/components/prose/Prose.js +1 -1
- package/dist/src/components/prose/Prose.js.map +1 -1
- package/dist/src/components/prose/Prose.mjs +1 -1
- package/dist/src/components/prose/Prose.mjs.map +1 -1
- package/dist/src/components/radio/Radio.js +2 -2
- package/dist/src/components/radio/Radio.js.map +1 -1
- package/dist/src/components/radio/Radio.mjs +2 -2
- package/dist/src/components/radio/Radio.mjs.map +1 -1
- package/dist/src/components/range-slider/RangeSlider.js +3 -3
- package/dist/src/components/range-slider/RangeSlider.js.map +1 -1
- package/dist/src/components/range-slider/RangeSlider.mjs +3 -3
- package/dist/src/components/range-slider/RangeSlider.mjs.map +1 -1
- package/dist/src/components/select/Select.d.ts +10 -0
- package/dist/src/components/select/Select.js +2 -2
- package/dist/src/components/select/Select.js.map +1 -1
- package/dist/src/components/select/Select.mjs +2 -2
- package/dist/src/components/select/Select.mjs.map +1 -1
- package/dist/src/components/select-menu/SelectMenu.js +1 -1
- package/dist/src/components/select-menu/SelectMenu.js.map +1 -1
- package/dist/src/components/select-menu/SelectMenu.mjs +1 -1
- package/dist/src/components/select-menu/SelectMenu.mjs.map +1 -1
- package/dist/src/components/stepper/Stepper.js +1 -1
- package/dist/src/components/stepper/Stepper.js.map +1 -1
- package/dist/src/components/stepper/Stepper.mjs +1 -1
- package/dist/src/components/stepper/Stepper.mjs.map +1 -1
- package/dist/src/components/table-of-contents/TableOfContents.js +1 -1
- package/dist/src/components/table-of-contents/TableOfContents.js.map +1 -1
- package/dist/src/components/table-of-contents/TableOfContents.mjs +1 -1
- package/dist/src/components/table-of-contents/TableOfContents.mjs.map +1 -1
- package/dist/src/components/timeline/Timeline.js +17 -13
- package/dist/src/components/timeline/Timeline.js.map +1 -1
- package/dist/src/components/timeline/Timeline.mjs +17 -13
- package/dist/src/components/timeline/Timeline.mjs.map +1 -1
- package/dist/src/components/toast/Toast.js +1 -1
- package/dist/src/components/toast/Toast.js.map +1 -1
- package/dist/src/components/toast/Toast.mjs +1 -1
- package/dist/src/components/toast/Toast.mjs.map +1 -1
- package/dist/src/components/toast/Toaster.js +1 -1
- package/dist/src/components/toast/Toaster.js.map +1 -1
- package/dist/src/components/toast/Toaster.mjs +1 -1
- package/dist/src/components/toast/Toaster.mjs.map +1 -1
- package/dist/src/components/tombstone-card/TombstoneCard.js +1 -1
- package/dist/src/components/tombstone-card/TombstoneCard.js.map +1 -1
- package/dist/src/components/tombstone-card/TombstoneCard.mjs +1 -1
- package/dist/src/components/tombstone-card/TombstoneCard.mjs.map +1 -1
- package/dist/src/components/tooltip/Tooltip.d.ts +5 -0
- package/dist/src/components/tooltip/Tooltip.js +9 -2
- package/dist/src/components/tooltip/Tooltip.js.map +1 -1
- package/dist/src/components/tooltip/Tooltip.mjs +9 -2
- package/dist/src/components/tooltip/Tooltip.mjs.map +1 -1
- package/dist/styles-full.css +1 -1
- package/dist/styles.css +1 -1
- package/package.json +6 -6
- package/src/components/accordion/Accordion.test.tsx +14 -3
- package/src/components/accordion/Accordion.tsx +34 -21
- package/src/components/bottom-nav/BottomNav.tsx +1 -1
- package/src/components/button/Button.tsx +1 -1
- package/src/components/calendar/Calendar.test.tsx +1 -1
- package/src/components/checkbox/Checkbox.tsx +1 -1
- package/src/components/contact-strip/ContactStrip.tsx +2 -2
- package/src/components/date-picker-popover/DatePickerPopover.test.tsx +15 -0
- package/src/components/date-picker-popover/DatePickerPopover.tsx +7 -0
- package/src/components/deal-card/DealCard.tsx +2 -2
- package/src/components/document-card/DocumentCard.tsx +1 -1
- package/src/components/drawer/Drawer.test.tsx +12 -0
- package/src/components/drawer/Drawer.tsx +8 -1
- package/src/components/entity-card/EntityCard.tsx +2 -2
- package/src/components/feature-grid/FeatureGrid.tsx +2 -2
- package/src/components/feature-row/FeatureRow.tsx +1 -1
- package/src/components/file-upload/FileUpload.test.tsx +10 -0
- package/src/components/file-upload/FileUpload.tsx +18 -3
- package/src/components/filter-chips/FilterChips.test.tsx +11 -0
- package/src/components/filter-chips/FilterChips.tsx +40 -4
- package/src/components/filter-panel/FilterPanel.test.tsx +19 -0
- package/src/components/filter-panel/FilterPanel.tsx +18 -14
- package/src/components/hero/Hero.tsx +2 -2
- package/src/components/image/Image.test.tsx +24 -0
- package/src/components/image/Image.tsx +7 -0
- package/src/components/list/List.test.tsx +18 -0
- package/src/components/list/List.tsx +18 -12
- package/src/components/menu/Menu.tsx +2 -2
- package/src/components/process-steps/ProcessSteps.tsx +1 -1
- package/src/components/prose/Prose.tsx +1 -1
- package/src/components/radio/Radio.test.tsx +10 -0
- package/src/components/radio/Radio.tsx +2 -2
- package/src/components/range-slider/RangeSlider.tsx +3 -3
- package/src/components/select/Select.test.tsx +14 -0
- package/src/components/select/Select.tsx +7 -2
- package/src/components/select-menu/SelectMenu.tsx +1 -1
- package/src/components/stepper/Stepper.tsx +1 -1
- package/src/components/table-of-contents/TableOfContents.tsx +1 -1
- package/src/components/timeline/Timeline.test.tsx +11 -0
- package/src/components/timeline/Timeline.tsx +13 -2
- package/src/components/toast/Toast.tsx +1 -1
- package/src/components/toast/Toaster.tsx +1 -1
- package/src/components/tombstone-card/TombstoneCard.tsx +1 -1
- package/src/components/tooltip/Tooltip.test.tsx +15 -0
- package/src/components/tooltip/Tooltip.tsx +19 -2
- package/src/manifests/accordion.manifest.json +1 -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 +1 -1
- package/src/manifests/autocomplete.manifest.json +1 -1
- package/src/manifests/avatar.manifest.json +1 -1
- package/src/manifests/badge.manifest.json +1 -1
- package/src/manifests/block.manifest.json +1 -1
- package/src/manifests/bottom-nav.manifest.json +1 -1
- 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/calendar.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-popover.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 +1 -1
- package/src/manifests/dialog.manifest.json +1 -1
- package/src/manifests/document-card.manifest.json +1 -1
- package/src/manifests/drawer.manifest.json +1 -1
- package/src/manifests/empty-state.manifest.json +1 -1
- package/src/manifests/entity-card.manifest.json +1 -1
- 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 +13 -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 +1 -1
- package/src/manifests/image.manifest.json +1 -1
- 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 +1 -1
- package/src/manifests/logo-cloud.manifest.json +1 -1
- package/src/manifests/menu.manifest.json +1 -1
- package/src/manifests/metric-card.manifest.json +1 -1
- package/src/manifests/multi-select.manifest.json +1 -1
- package/src/manifests/newsletter.manifest.json +1 -1
- package/src/manifests/page-header.manifest.json +1 -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 +1 -1
- package/src/manifests/select.manifest.json +8 -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 +1 -1
- 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 +1 -1
- 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 +1 -1
- package/src/manifests/tooltip.manifest.json +12 -1
package/dist/index.mjs
CHANGED
|
@@ -276,11 +276,12 @@ function Drawer({
|
|
|
276
276
|
"duration-200 motion-reduce:animate-none",
|
|
277
277
|
exiting ? `animate-out ${slideOut[side]}` : `animate-in ${slideIn[side]}`
|
|
278
278
|
) : void 0;
|
|
279
|
+
const backdropMotion = animate ? cn("motion-reduce:animate-none", exiting ? "animate-out fade-out-0" : "animate-in fade-in-0") : void 0;
|
|
279
280
|
return createPortal(
|
|
280
281
|
/* @__PURE__ */ jsx(
|
|
281
282
|
"div",
|
|
282
283
|
{
|
|
283
|
-
className: "fixed inset-0 z-50",
|
|
284
|
+
className: cn("fixed inset-0 z-50 bg-background/80", backdropMotion),
|
|
284
285
|
onMouseDown: (event) => {
|
|
285
286
|
if (closeOnBackdrop && event.target === event.currentTarget) requestClose();
|
|
286
287
|
},
|
|
@@ -540,7 +541,7 @@ var buttonVariants = cva(
|
|
|
540
541
|
"outline-info": "border border-info/50 bg-background text-info-ink hover:border-info hover:bg-info/10",
|
|
541
542
|
secondary: "bg-secondary text-secondary-foreground hover:bg-secondary/80",
|
|
542
543
|
ghost: "hover:bg-accent hover:text-accent-foreground",
|
|
543
|
-
link: "text-primary underline-offset-4 hover:underline",
|
|
544
|
+
link: "text-primary-ink underline-offset-4 hover:underline",
|
|
544
545
|
// High-contrast fills for hero and other always-dark surfaces. These
|
|
545
546
|
// do not read the theme surface, so they stay legible in both modes.
|
|
546
547
|
// Fixed ink, not --primary: in dark mode --primary lightens and would
|
|
@@ -671,13 +672,13 @@ Textarea.displayName = "Textarea";
|
|
|
671
672
|
// src/components/select/Select.tsx
|
|
672
673
|
import * as React9 from "react";
|
|
673
674
|
import { jsx as jsx7, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
674
|
-
var Select = React9.forwardRef(function Select2({ options, groups, label, placeholder, multiple = false, value, defaultValue, onChange, onValueChange, children, id, className, ...props }, ref) {
|
|
675
|
+
var Select = React9.forwardRef(function Select2({ options, groups, label, labelHidden = false, placeholder, multiple = false, value, defaultValue, onChange, onValueChange, children, id, className, ...props }, ref) {
|
|
675
676
|
const generatedId = React9.useId();
|
|
676
677
|
const selectId = id ?? generatedId;
|
|
677
678
|
const labelId = `${selectId}-label`;
|
|
678
679
|
const renderOption = (option) => /* @__PURE__ */ jsx7("option", { value: option.value, disabled: option.disabled, children: option.label }, option.value);
|
|
679
680
|
return /* @__PURE__ */ jsxs4("div", { className: "flex w-full flex-col gap-1.5", children: [
|
|
680
|
-
label && /* @__PURE__ */ jsx7("label", { id: labelId, htmlFor: selectId, className: "text-sm font-medium", children: label }),
|
|
681
|
+
label && /* @__PURE__ */ jsx7("label", { id: labelId, htmlFor: selectId, className: labelHidden ? "sr-only" : "text-sm font-medium", children: label }),
|
|
681
682
|
/* @__PURE__ */ jsxs4(
|
|
682
683
|
"select",
|
|
683
684
|
{
|
|
@@ -877,7 +878,7 @@ function BottomNav({
|
|
|
877
878
|
"aria-current": item.active ? "page" : void 0,
|
|
878
879
|
className: cn(
|
|
879
880
|
tabClass,
|
|
880
|
-
item.active ? "text-primary" : "text-muted-foreground hover:text-foreground"
|
|
881
|
+
item.active ? "text-primary-ink" : "text-muted-foreground hover:text-foreground"
|
|
881
882
|
),
|
|
882
883
|
children: content
|
|
883
884
|
}
|
|
@@ -1041,7 +1042,7 @@ function ToastRegion({
|
|
|
1041
1042
|
entry.action?.onClick();
|
|
1042
1043
|
onDismiss(entry.id);
|
|
1043
1044
|
},
|
|
1044
|
-
className: "mt-2 text-sm font-medium text-primary hover:underline",
|
|
1045
|
+
className: "mt-2 text-sm font-medium text-primary-ink hover:underline",
|
|
1045
1046
|
children: entry.action.label
|
|
1046
1047
|
}
|
|
1047
1048
|
)
|
|
@@ -1167,7 +1168,7 @@ function Toaster({ position = "bottom-right", label = "Notifications", dismissLa
|
|
|
1167
1168
|
entry.action?.onClick();
|
|
1168
1169
|
toast.dismiss(entry.id);
|
|
1169
1170
|
},
|
|
1170
|
-
className: "mt-2 text-sm font-medium text-primary hover:underline",
|
|
1171
|
+
className: "mt-2 text-sm font-medium text-primary-ink hover:underline",
|
|
1171
1172
|
children: entry.action.label
|
|
1172
1173
|
}
|
|
1173
1174
|
)
|
|
@@ -1639,7 +1640,7 @@ var SelectMenu = React17.forwardRef(function SelectMenu2({
|
|
|
1639
1640
|
/* @__PURE__ */ jsx17("span", { className: "block", children: row.item.label }),
|
|
1640
1641
|
row.item.description && /* @__PURE__ */ jsx17("span", { className: "mt-0.5 block text-xs text-muted-foreground", children: row.item.description })
|
|
1641
1642
|
] }),
|
|
1642
|
-
multiple && selectedValues.includes(row.item.value) && /* @__PURE__ */ jsx17("span", { "aria-hidden": "true", className: "ml-auto text-primary", children: "\u2713" })
|
|
1643
|
+
multiple && selectedValues.includes(row.item.value) && /* @__PURE__ */ jsx17("span", { "aria-hidden": "true", className: "ml-auto text-primary-ink", children: "\u2713" })
|
|
1643
1644
|
] })
|
|
1644
1645
|
},
|
|
1645
1646
|
row.item.value
|
|
@@ -2079,7 +2080,7 @@ var Checkbox = React21.forwardRef(
|
|
|
2079
2080
|
onChange?.(event);
|
|
2080
2081
|
},
|
|
2081
2082
|
className: cn(
|
|
2082
|
-
"peer h-4 w-4 shrink-0 rounded-sm border border-primary",
|
|
2083
|
+
"peer h-4 w-4 shrink-0 rounded-sm border border-primary accent-primary",
|
|
2083
2084
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background",
|
|
2084
2085
|
"disabled:cursor-not-allowed disabled:opacity-50",
|
|
2085
2086
|
"checked:bg-primary checked:text-primary-foreground",
|
|
@@ -2164,7 +2165,7 @@ var Radio = React23.forwardRef(
|
|
|
2164
2165
|
onChange?.(event);
|
|
2165
2166
|
},
|
|
2166
2167
|
className: cn(
|
|
2167
|
-
"h-4 w-4 shrink-0 rounded-full border border-primary",
|
|
2168
|
+
"h-4 w-4 shrink-0 rounded-full border border-primary accent-primary",
|
|
2168
2169
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background",
|
|
2169
2170
|
"disabled:cursor-not-allowed disabled:opacity-50",
|
|
2170
2171
|
"checked:bg-primary checked:text-primary-foreground",
|
|
@@ -2222,7 +2223,7 @@ var RadioGroupItem = React23.forwardRef(
|
|
|
2222
2223
|
value,
|
|
2223
2224
|
checked: group.value === value,
|
|
2224
2225
|
onCheckedChange: (checked) => checked && group.onChange(value),
|
|
2225
|
-
className,
|
|
2226
|
+
className: cn("peer", className),
|
|
2226
2227
|
...props
|
|
2227
2228
|
}
|
|
2228
2229
|
),
|
|
@@ -2324,8 +2325,12 @@ import * as React27 from "react";
|
|
|
2324
2325
|
import { createPortal as createPortal6 } from "react-dom";
|
|
2325
2326
|
import { jsx as jsx26, jsxs as jsxs17 } from "react/jsx-runtime";
|
|
2326
2327
|
var GAP = 8;
|
|
2328
|
+
var VARIANTS = {
|
|
2329
|
+
default: "border-border bg-popover text-popover-foreground",
|
|
2330
|
+
inverse: "border-inverse-border bg-inverse text-inverse-foreground"
|
|
2331
|
+
};
|
|
2327
2332
|
var Tooltip = React27.forwardRef(
|
|
2328
|
-
({ content, side = "top", delay = 300, className, children }, ref) => {
|
|
2333
|
+
({ content, side = "top", delay = 300, variant = "default", className, children }, ref) => {
|
|
2329
2334
|
const [open, setOpen] = React27.useState(false);
|
|
2330
2335
|
const [pos, setPos] = React27.useState(null);
|
|
2331
2336
|
const anchorRef = React27.useRef(null);
|
|
@@ -2391,7 +2396,10 @@ var Tooltip = React27.forwardRef(
|
|
|
2391
2396
|
id,
|
|
2392
2397
|
role: "tooltip",
|
|
2393
2398
|
style: { position: "fixed", top: pos.top, left: pos.left, transform: pos.transform, zIndex: 60 },
|
|
2394
|
-
className:
|
|
2399
|
+
className: cn(
|
|
2400
|
+
"pointer-events-none w-max max-w-xs rounded-md border px-3 py-1.5 text-xs shadow-md",
|
|
2401
|
+
VARIANTS[variant]
|
|
2402
|
+
),
|
|
2395
2403
|
children: content
|
|
2396
2404
|
}
|
|
2397
2405
|
),
|
|
@@ -3502,7 +3510,7 @@ function TableOfContents({
|
|
|
3502
3510
|
onClick: () => onNavigate?.(heading.id),
|
|
3503
3511
|
className: cn(
|
|
3504
3512
|
"-ml-px block border-l py-1 pl-3 no-underline transition-colors",
|
|
3505
|
-
active ? "border-primary font-medium text-primary underline" : "border-transparent text-muted-foreground hover:border-border hover:text-foreground"
|
|
3513
|
+
active ? "border-primary font-medium text-primary-ink underline" : "border-transparent text-muted-foreground hover:border-border hover:text-foreground"
|
|
3506
3514
|
),
|
|
3507
3515
|
children: heading.text
|
|
3508
3516
|
}
|
|
@@ -3568,7 +3576,7 @@ var Prose = React42.forwardRef(function Prose2({ size = "md", className, ...prop
|
|
|
3568
3576
|
"[&_h4]:mb-2 [&_h4]:mt-6 [&_h4]:scroll-mt-24 [&_h4]:font-semibold",
|
|
3569
3577
|
// Body copy
|
|
3570
3578
|
"[&_p]:my-4 [&_p]:leading-7",
|
|
3571
|
-
"[&_a]:text-primary [&_a]:underline [&_a]:decoration-primary/40 [&_a]:underline-offset-4 hover:[&_a]:decoration-primary",
|
|
3579
|
+
"[&_a]:text-primary-ink [&_a]:underline [&_a]:decoration-primary/40 [&_a]:underline-offset-4 hover:[&_a]:decoration-primary",
|
|
3572
3580
|
"[&_strong]:font-semibold [&_strong]:text-foreground [&_em]:italic",
|
|
3573
3581
|
"[&_ul]:my-4 [&_ul]:list-disc [&_ul]:space-y-1.5 [&_ul]:pl-6",
|
|
3574
3582
|
"[&_ol]:my-4 [&_ol]:list-decimal [&_ol]:space-y-1.5 [&_ol]:pl-6",
|
|
@@ -4024,25 +4032,32 @@ var AccordionContent = React44.forwardRef(
|
|
|
4024
4032
|
const { id } = React44.useContext(AccordionItemContext);
|
|
4025
4033
|
const { openItems } = React44.useContext(AccordionContext);
|
|
4026
4034
|
const open = openItems.has(id);
|
|
4035
|
+
const [mounted, setMounted] = React44.useState(open);
|
|
4027
4036
|
const [expanded, setExpanded] = React44.useState(open);
|
|
4028
4037
|
React44.useEffect(() => {
|
|
4029
|
-
if (!open) {
|
|
4030
|
-
setExpanded(false);
|
|
4031
|
-
return;
|
|
4032
|
-
}
|
|
4033
4038
|
const reduce = typeof window.matchMedia === "function" && window.matchMedia("(prefers-reduced-motion: reduce)").matches;
|
|
4039
|
+
if (open) {
|
|
4040
|
+
setMounted(true);
|
|
4041
|
+
if (reduce) {
|
|
4042
|
+
setExpanded(true);
|
|
4043
|
+
return;
|
|
4044
|
+
}
|
|
4045
|
+
let second = 0;
|
|
4046
|
+
const first = requestAnimationFrame(() => {
|
|
4047
|
+
second = requestAnimationFrame(() => setExpanded(true));
|
|
4048
|
+
});
|
|
4049
|
+
return () => {
|
|
4050
|
+
cancelAnimationFrame(first);
|
|
4051
|
+
cancelAnimationFrame(second);
|
|
4052
|
+
};
|
|
4053
|
+
}
|
|
4054
|
+
setExpanded(false);
|
|
4034
4055
|
if (reduce) {
|
|
4035
|
-
|
|
4056
|
+
setMounted(false);
|
|
4036
4057
|
return;
|
|
4037
4058
|
}
|
|
4038
|
-
|
|
4039
|
-
|
|
4040
|
-
second = requestAnimationFrame(() => setExpanded(true));
|
|
4041
|
-
});
|
|
4042
|
-
return () => {
|
|
4043
|
-
cancelAnimationFrame(first);
|
|
4044
|
-
cancelAnimationFrame(second);
|
|
4045
|
-
};
|
|
4059
|
+
const timer = setTimeout(() => setMounted(false), 320);
|
|
4060
|
+
return () => clearTimeout(timer);
|
|
4046
4061
|
}, [open]);
|
|
4047
4062
|
return /* @__PURE__ */ jsx44(
|
|
4048
4063
|
"div",
|
|
@@ -4051,15 +4066,15 @@ var AccordionContent = React44.forwardRef(
|
|
|
4051
4066
|
id: `${id}-panel`,
|
|
4052
4067
|
role: "region",
|
|
4053
4068
|
"aria-labelledby": `${id}-trigger`,
|
|
4054
|
-
hidden:
|
|
4069
|
+
"aria-hidden": open ? void 0 : true,
|
|
4070
|
+
hidden: !mounted,
|
|
4055
4071
|
className: cn(
|
|
4056
|
-
// No display utility while
|
|
4072
|
+
// No display utility while unmounted: author styles would beat the
|
|
4057
4073
|
// UA [hidden] rule and keep the collapsed panel visible.
|
|
4058
|
-
|
|
4059
|
-
"grid transition-[grid-template-rows] duration-
|
|
4060
|
-
expanded ? "grid-rows-[1fr]" : "grid-rows-[0fr]"
|
|
4074
|
+
mounted && cn(
|
|
4075
|
+
"grid transition-[grid-template-rows,opacity] duration-300 ease-out motion-reduce:transition-none",
|
|
4076
|
+
expanded ? "grid-rows-[1fr] opacity-100" : "grid-rows-[0fr] pointer-events-none opacity-0"
|
|
4061
4077
|
),
|
|
4062
|
-
!open && "grid-rows-[0fr]",
|
|
4063
4078
|
className
|
|
4064
4079
|
),
|
|
4065
4080
|
...props,
|
|
@@ -4535,8 +4550,9 @@ function DataTable({
|
|
|
4535
4550
|
// src/components/list/List.tsx
|
|
4536
4551
|
import * as React48 from "react";
|
|
4537
4552
|
import { Fragment as Fragment9, jsx as jsx48, jsxs as jsxs32 } from "react/jsx-runtime";
|
|
4553
|
+
var ListDensityContext = React48.createContext("default");
|
|
4538
4554
|
var List = React48.forwardRef(
|
|
4539
|
-
({ divided, bordered, size = "default", className, ...props }, ref) => /* @__PURE__ */ jsx48(
|
|
4555
|
+
({ divided, bordered, size = "default", className, ...props }, ref) => /* @__PURE__ */ jsx48(ListDensityContext.Provider, { value: size, children: /* @__PURE__ */ jsx48(
|
|
4540
4556
|
"ul",
|
|
4541
4557
|
{
|
|
4542
4558
|
ref,
|
|
@@ -4544,17 +4560,17 @@ var List = React48.forwardRef(
|
|
|
4544
4560
|
"flex flex-col",
|
|
4545
4561
|
bordered && "overflow-hidden rounded-lg border border-border bg-card",
|
|
4546
4562
|
divided && "divide-y divide-border",
|
|
4547
|
-
size === "compact" ? "gap-0" : "gap-0",
|
|
4548
4563
|
className
|
|
4549
4564
|
),
|
|
4550
4565
|
...props
|
|
4551
4566
|
}
|
|
4552
|
-
)
|
|
4567
|
+
) })
|
|
4553
4568
|
);
|
|
4554
4569
|
List.displayName = "List";
|
|
4555
4570
|
var ListItem = React48.forwardRef(
|
|
4556
4571
|
({ leading, trailing, selected, onClick, description, disabled, className, children, ...props }, ref) => {
|
|
4557
|
-
const
|
|
4572
|
+
const density = React48.useContext(ListDensityContext);
|
|
4573
|
+
const padding = density === "compact" ? "px-3 py-1.5" : "px-3 py-2.5";
|
|
4558
4574
|
const rowClass = cn(
|
|
4559
4575
|
"flex w-full items-center gap-3 text-left text-sm",
|
|
4560
4576
|
selected && "bg-accent text-accent-foreground",
|
|
@@ -4645,6 +4661,11 @@ function Image2({
|
|
|
4645
4661
|
style
|
|
4646
4662
|
}) {
|
|
4647
4663
|
const [stage, setStage] = React50.useState(0);
|
|
4664
|
+
const [prevUrls, setPrevUrls] = React50.useState({ src, fallbackSrc });
|
|
4665
|
+
if (prevUrls.src !== src || prevUrls.fallbackSrc !== fallbackSrc) {
|
|
4666
|
+
setPrevUrls({ src, fallbackSrc });
|
|
4667
|
+
setStage(0);
|
|
4668
|
+
}
|
|
4648
4669
|
const onError = () => setStage((current2) => current2 === 0 && fallbackSrc ? 1 : 2);
|
|
4649
4670
|
const current = stage === 0 ? src : stage === 1 ? fallbackSrc : null;
|
|
4650
4671
|
if (!current || stage === 2) return /* @__PURE__ */ jsx50(Fragment11, { children: fallback ?? null });
|
|
@@ -5453,7 +5474,9 @@ var DatePickerPopover = React62.forwardRef(
|
|
|
5453
5474
|
align = "start",
|
|
5454
5475
|
id,
|
|
5455
5476
|
className,
|
|
5456
|
-
"aria-label": ariaLabel
|
|
5477
|
+
"aria-label": ariaLabel,
|
|
5478
|
+
"aria-describedby": ariaDescribedBy,
|
|
5479
|
+
"aria-invalid": ariaInvalid
|
|
5457
5480
|
}, ref) => {
|
|
5458
5481
|
const [open, setOpen] = React62.useState(false);
|
|
5459
5482
|
const triggerRef = React62.useRef(null);
|
|
@@ -5475,6 +5498,8 @@ var DatePickerPopover = React62.forwardRef(
|
|
|
5475
5498
|
id,
|
|
5476
5499
|
disabled,
|
|
5477
5500
|
"aria-label": ariaLabel,
|
|
5501
|
+
"aria-describedby": ariaDescribedBy,
|
|
5502
|
+
"aria-invalid": ariaInvalid,
|
|
5478
5503
|
className: cn(
|
|
5479
5504
|
buttonVariants({ variant: "outline" }),
|
|
5480
5505
|
"w-full justify-start font-normal",
|
|
@@ -5601,7 +5626,7 @@ var Stepper = React64.forwardRef(function Stepper2({
|
|
|
5601
5626
|
"rounded-full border font-medium",
|
|
5602
5627
|
markerSizeClass,
|
|
5603
5628
|
state === "complete" && "border-primary bg-primary text-primary-foreground",
|
|
5604
|
-
state === "current" && "border-primary text-primary",
|
|
5629
|
+
state === "current" && "border-primary text-primary-ink",
|
|
5605
5630
|
state === "upcoming" && "border-border text-muted-foreground"
|
|
5606
5631
|
)
|
|
5607
5632
|
),
|
|
@@ -5725,6 +5750,16 @@ var FileUpload = React65.forwardRef(function FileUpload2({
|
|
|
5725
5750
|
const current = files ?? internal;
|
|
5726
5751
|
const generatedId = React65.useId();
|
|
5727
5752
|
const inputId = id ?? generatedId;
|
|
5753
|
+
const fileIds = React65.useRef(/* @__PURE__ */ new WeakMap());
|
|
5754
|
+
const nextFileId = React65.useRef(0);
|
|
5755
|
+
const idFor = (file) => {
|
|
5756
|
+
let fileId = fileIds.current.get(file);
|
|
5757
|
+
if (!fileId) {
|
|
5758
|
+
fileId = `file-${nextFileId.current++}`;
|
|
5759
|
+
fileIds.current.set(file, fileId);
|
|
5760
|
+
}
|
|
5761
|
+
return fileId;
|
|
5762
|
+
};
|
|
5728
5763
|
const commit = (next) => {
|
|
5729
5764
|
if (files === void 0) setInternal(next);
|
|
5730
5765
|
onFilesChange?.(next);
|
|
@@ -5801,13 +5836,13 @@ var FileUpload = React65.forwardRef(function FileUpload2({
|
|
|
5801
5836
|
"button",
|
|
5802
5837
|
{
|
|
5803
5838
|
type: "button",
|
|
5804
|
-
onClick: () => commit(current.filter((entry) => entry
|
|
5839
|
+
onClick: () => commit(current.filter((entry) => entry !== file)),
|
|
5805
5840
|
"aria-label": removeLabel(file),
|
|
5806
5841
|
className: "rounded p-1 text-muted-foreground hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
5807
5842
|
children: "\u2715"
|
|
5808
5843
|
}
|
|
5809
5844
|
)
|
|
5810
|
-
] }, file
|
|
5845
|
+
] }, idFor(file))) })
|
|
5811
5846
|
] });
|
|
5812
5847
|
});
|
|
5813
5848
|
|
|
@@ -5816,19 +5851,23 @@ import * as React66 from "react";
|
|
|
5816
5851
|
import { jsx as jsx66, jsxs as jsxs46 } from "react/jsx-runtime";
|
|
5817
5852
|
var Timeline = React66.forwardRef(function Timeline2({ items, className, ...props }, ref) {
|
|
5818
5853
|
return /* @__PURE__ */ jsx66("ol", { ref, className: cn("relative flex flex-col gap-6", className), ...props, children: items.map((item, index) => /* @__PURE__ */ jsxs46("li", { className: "relative flex gap-4", children: [
|
|
5819
|
-
|
|
5820
|
-
|
|
5821
|
-
|
|
5822
|
-
|
|
5823
|
-
|
|
5824
|
-
|
|
5825
|
-
|
|
5826
|
-
|
|
5827
|
-
|
|
5828
|
-
|
|
5829
|
-
|
|
5830
|
-
|
|
5831
|
-
|
|
5854
|
+
index < items.length - 1 && /* @__PURE__ */ jsx66(
|
|
5855
|
+
"span",
|
|
5856
|
+
{
|
|
5857
|
+
"aria-hidden": "true",
|
|
5858
|
+
className: "absolute left-[5.5px] top-4 -bottom-7 w-px bg-border"
|
|
5859
|
+
}
|
|
5860
|
+
),
|
|
5861
|
+
/* @__PURE__ */ jsx66("div", { className: "relative z-10 flex flex-col items-center", children: /* @__PURE__ */ jsx66(
|
|
5862
|
+
"span",
|
|
5863
|
+
{
|
|
5864
|
+
"aria-hidden": "true",
|
|
5865
|
+
className: cn(
|
|
5866
|
+
"mt-1 flex h-3 w-3 shrink-0 items-center justify-center rounded-full border-2",
|
|
5867
|
+
item.muted ? "border-border bg-background" : "border-primary bg-primary"
|
|
5868
|
+
)
|
|
5869
|
+
}
|
|
5870
|
+
) }),
|
|
5832
5871
|
/* @__PURE__ */ jsxs46("div", { className: "min-w-0 pb-1", children: [
|
|
5833
5872
|
item.period && /* @__PURE__ */ jsx66("p", { className: "text-xs font-medium uppercase tracking-wide text-muted-foreground", children: item.period }),
|
|
5834
5873
|
/* @__PURE__ */ jsx66("p", { className: cn("text-sm font-semibold", item.muted && "text-muted-foreground"), children: item.title }),
|
|
@@ -6186,7 +6225,7 @@ var Hero = React72.forwardRef(function Hero2({
|
|
|
6186
6225
|
{
|
|
6187
6226
|
className: cn(
|
|
6188
6227
|
"mb-5 inline-flex rounded-full border px-3 py-1 text-xs font-medium",
|
|
6189
|
-
overlay ? "border-background/30 bg-background/10 text-background" : "border-primary/30 bg-primary/10 text-primary",
|
|
6228
|
+
overlay ? "border-background/30 bg-background/10 text-background" : "border-primary/30 bg-primary/10 text-primary-ink",
|
|
6190
6229
|
badgeClassName
|
|
6191
6230
|
),
|
|
6192
6231
|
children: badge
|
|
@@ -6197,7 +6236,7 @@ var Hero = React72.forwardRef(function Hero2({
|
|
|
6197
6236
|
{
|
|
6198
6237
|
className: cn(
|
|
6199
6238
|
"mb-3 text-xs font-semibold uppercase tracking-widest",
|
|
6200
|
-
overlay ? "text-background/90" : "text-primary",
|
|
6239
|
+
overlay ? "text-background/90" : "text-primary-ink",
|
|
6201
6240
|
eyebrowClassName
|
|
6202
6241
|
),
|
|
6203
6242
|
children: eyebrow
|
|
@@ -6557,10 +6596,10 @@ var FeatureGrid = React77.forwardRef(function FeatureGrid2({ features, columns =
|
|
|
6557
6596
|
align === "center" && "items-center text-center"
|
|
6558
6597
|
);
|
|
6559
6598
|
const content = (feature) => /* @__PURE__ */ jsxs52(Fragment16, { children: [
|
|
6560
|
-
feature.icon && /* @__PURE__ */ jsx77("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 }),
|
|
6599
|
+
feature.icon && /* @__PURE__ */ jsx77("span", { className: "flex h-10 w-10 shrink-0 items-center justify-center rounded-lg bg-primary/10 text-primary-ink [&_svg]:size-5", children: feature.icon }),
|
|
6561
6600
|
/* @__PURE__ */ jsx77("h3", { className: "text-base font-semibold tracking-tight", children: feature.title }),
|
|
6562
6601
|
feature.description && /* @__PURE__ */ jsx77("p", { className: "text-sm leading-relaxed text-muted-foreground", children: feature.description }),
|
|
6563
|
-
feature.href && feature.actionLabel && /* @__PURE__ */ jsxs52("span", { className: "mt-auto pt-2 text-sm font-medium text-primary", children: [
|
|
6602
|
+
feature.href && feature.actionLabel && /* @__PURE__ */ jsxs52("span", { className: "mt-auto pt-2 text-sm font-medium text-primary-ink", children: [
|
|
6564
6603
|
feature.actionLabel,
|
|
6565
6604
|
" ",
|
|
6566
6605
|
/* @__PURE__ */ jsx77("span", { "aria-hidden": "true", children: "\u2192" })
|
|
@@ -6597,7 +6636,7 @@ var FeatureRow = React78.forwardRef(function FeatureRow2({
|
|
|
6597
6636
|
...props,
|
|
6598
6637
|
children: [
|
|
6599
6638
|
/* @__PURE__ */ jsxs53("div", { className: cn("min-w-0", mediaPosition === "left" && "lg:order-2"), children: [
|
|
6600
|
-
eyebrow && /* @__PURE__ */ jsx78("p", { className: "mb-3 text-xs font-semibold uppercase tracking-widest text-primary", children: eyebrow }),
|
|
6639
|
+
eyebrow && /* @__PURE__ */ jsx78("p", { className: "mb-3 text-xs font-semibold uppercase tracking-widest text-primary-ink", children: eyebrow }),
|
|
6601
6640
|
/* @__PURE__ */ jsx78(Heading2, { className: cn("font-semibold tracking-tight text-balance", titleSizes2[size]), children: title }),
|
|
6602
6641
|
description && /* @__PURE__ */ jsx78("div", { className: "mt-4 max-w-xl text-base leading-relaxed text-muted-foreground sm:text-lg", children: description }),
|
|
6603
6642
|
actions && /* @__PURE__ */ jsx78("div", { className: "mt-7 flex flex-wrap items-center gap-3", children: actions })
|
|
@@ -6660,7 +6699,7 @@ var ProcessSteps = React80.forwardRef(function ProcessSteps2({ steps, columns =
|
|
|
6660
6699
|
{
|
|
6661
6700
|
className: cn("flex min-w-0 flex-col gap-4", align === "center" && "items-center text-center"),
|
|
6662
6701
|
children: [
|
|
6663
|
-
/* @__PURE__ */ jsx80("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) }),
|
|
6702
|
+
/* @__PURE__ */ jsx80("span", { className: "flex h-10 w-10 shrink-0 items-center justify-center rounded-full bg-primary/10 text-sm font-semibold text-primary-ink [&_svg]:size-5", children: step.icon ?? (numbered ? String(index + 1).padStart(2, "0") : null) }),
|
|
6664
6703
|
/* @__PURE__ */ jsxs55("div", { className: "min-w-0", children: [
|
|
6665
6704
|
/* @__PURE__ */ jsx80("h3", { className: "text-base font-semibold tracking-tight", children: step.title }),
|
|
6666
6705
|
step.description && /* @__PURE__ */ jsx80("p", { className: "mt-1 text-sm leading-relaxed text-muted-foreground", children: step.description })
|
|
@@ -6785,10 +6824,10 @@ var columnClasses5 = {
|
|
|
6785
6824
|
var ContactStrip = React83.forwardRef(function ContactStrip2({ items, columns = 2, align = "left", linkComponent, className, ...props }, ref) {
|
|
6786
6825
|
const Link3 = linkComponent ?? "a";
|
|
6787
6826
|
return /* @__PURE__ */ jsx83("ul", { ref, className: cn("grid gap-6", columnClasses5[columns], className), ...props, children: items.map((item) => /* @__PURE__ */ jsxs58("li", { className: cn("flex min-w-0 items-start gap-3", align === "center" && "justify-center text-center"), children: [
|
|
6788
|
-
item.icon && /* @__PURE__ */ jsx83("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 }),
|
|
6827
|
+
item.icon && /* @__PURE__ */ jsx83("span", { className: "mt-0.5 flex h-8 w-8 shrink-0 items-center justify-center rounded-lg bg-primary/10 text-primary-ink [&_svg]:size-4", children: item.icon }),
|
|
6789
6828
|
/* @__PURE__ */ jsxs58("div", { className: "min-w-0", children: [
|
|
6790
6829
|
/* @__PURE__ */ jsx83("p", { className: "text-xs font-semibold uppercase tracking-wider text-muted-foreground", children: item.label }),
|
|
6791
|
-
item.href ? /* @__PURE__ */ jsx83(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__ */ jsx83("p", { className: "mt-0.5 break-words text-sm font-medium", children: item.value })
|
|
6830
|
+
item.href ? /* @__PURE__ */ jsx83(Link3, { href: item.href, className: "mt-0.5 block break-words text-sm font-medium text-primary-ink underline-offset-4 hover:underline", children: item.value }) : /* @__PURE__ */ jsx83("p", { className: "mt-0.5 break-words text-sm font-medium", children: item.value })
|
|
6792
6831
|
] })
|
|
6793
6832
|
] }, item.label)) });
|
|
6794
6833
|
});
|
|
@@ -6893,10 +6932,10 @@ var DealCard = React85.forwardRef(function DealCard2({
|
|
|
6893
6932
|
return /* @__PURE__ */ jsxs60(Card, { ref, className: cn("flex h-full flex-col overflow-hidden", className), ...props, children: [
|
|
6894
6933
|
/* @__PURE__ */ jsxs60(CardHeader, { className: "gap-2 p-5 pb-3", children: [
|
|
6895
6934
|
/* @__PURE__ */ jsxs60("div", { className: "flex items-start justify-between gap-2", children: [
|
|
6896
|
-
/* @__PURE__ */ jsx85("p", { className: "text-xs font-semibold uppercase tracking-widest text-primary", children: sector }),
|
|
6935
|
+
/* @__PURE__ */ jsx85("p", { className: "text-xs font-semibold uppercase tracking-widest text-primary-ink", children: sector }),
|
|
6897
6936
|
/* @__PURE__ */ jsx85(Badge, { variant: statusInfo.variant, children: statusInfo.label })
|
|
6898
6937
|
] }),
|
|
6899
|
-
/* @__PURE__ */ jsx85("h3", { className: "text-lg font-semibold leading-snug tracking-tight", children: href ? /* @__PURE__ */ jsx85(Link3, { href, className: "rounded-sm hover:text-primary focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring", children: title }) : title }),
|
|
6938
|
+
/* @__PURE__ */ jsx85("h3", { className: "text-lg font-semibold leading-snug tracking-tight", children: href ? /* @__PURE__ */ jsx85(Link3, { href, className: "rounded-sm hover:text-primary-ink focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring", children: title }) : title }),
|
|
6900
6939
|
location && /* @__PURE__ */ jsx85("p", { className: "text-xs text-muted-foreground", children: location })
|
|
6901
6940
|
] }),
|
|
6902
6941
|
/* @__PURE__ */ jsxs60(CardContent, { className: "flex-1 px-5 pb-3", children: [
|
|
@@ -6953,7 +6992,7 @@ var EntityCard = React86.forwardRef(function EntityCard2({
|
|
|
6953
6992
|
/* @__PURE__ */ jsxs61(CardHeader, { className: "flex-row items-start gap-3 p-5 pb-3", children: [
|
|
6954
6993
|
/* @__PURE__ */ jsx86("div", { className: "shrink-0", children: logo ?? /* @__PURE__ */ jsx86(Avatar, { children: /* @__PURE__ */ jsx86(AvatarFallback, { children: initials(name) }) }) }),
|
|
6955
6994
|
/* @__PURE__ */ jsxs61("div", { className: "min-w-0 flex-1", children: [
|
|
6956
|
-
/* @__PURE__ */ jsx86("h3", { className: "truncate text-base font-semibold tracking-tight", children: href ? /* @__PURE__ */ jsx86(Link3, { href, className: "rounded-sm hover:text-primary focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring", children: name }) : name }),
|
|
6995
|
+
/* @__PURE__ */ jsx86("h3", { className: "truncate text-base font-semibold tracking-tight", children: href ? /* @__PURE__ */ jsx86(Link3, { href, className: "rounded-sm hover:text-primary-ink focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring", children: name }) : name }),
|
|
6957
6996
|
/* @__PURE__ */ jsx86("p", { className: "mt-0.5 truncate text-xs text-muted-foreground", children: entityType }),
|
|
6958
6997
|
location && /* @__PURE__ */ jsx86("p", { className: "mt-0.5 truncate text-xs text-muted-foreground", children: location })
|
|
6959
6998
|
] })
|
|
@@ -6971,7 +7010,7 @@ var EntityCard = React86.forwardRef(function EntityCard2({
|
|
|
6971
7010
|
Link3,
|
|
6972
7011
|
{
|
|
6973
7012
|
href,
|
|
6974
|
-
className: "text-sm font-medium text-primary underline-offset-4 hover:underline focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
7013
|
+
className: "text-sm font-medium text-primary-ink underline-offset-4 hover:underline focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
6975
7014
|
children: "View profile"
|
|
6976
7015
|
}
|
|
6977
7016
|
),
|
|
@@ -7019,7 +7058,7 @@ var TombstoneCard = React87.forwardRef(function TombstoneCard2({
|
|
|
7019
7058
|
Link3,
|
|
7020
7059
|
{
|
|
7021
7060
|
href,
|
|
7022
|
-
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",
|
|
7061
|
+
className: "mt-auto text-sm font-medium text-primary-ink underline-offset-4 hover:underline focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
7023
7062
|
children: actionLabel
|
|
7024
7063
|
}
|
|
7025
7064
|
)
|
|
@@ -7051,7 +7090,7 @@ var DocumentCard = React88.forwardRef(function DocumentCard2({
|
|
|
7051
7090
|
const statusInfo = statusConfig3[status];
|
|
7052
7091
|
const meta = [fileType, size, updatedAt].filter(Boolean).join(" \xB7 ");
|
|
7053
7092
|
return /* @__PURE__ */ jsx88(Card, { ref, className: cn("w-full", className), ...props, children: /* @__PURE__ */ jsxs63(CardContent, { className: "flex items-center gap-3 p-4", children: [
|
|
7054
|
-
/* @__PURE__ */ jsx88("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__ */ jsx88("span", { className: "text-[10px] font-bold uppercase tracking-wide", children: fileType }) }),
|
|
7093
|
+
/* @__PURE__ */ jsx88("span", { className: "flex h-10 w-10 shrink-0 items-center justify-center rounded-lg bg-primary/10 text-primary-ink [&_svg]:size-5", children: icon ?? /* @__PURE__ */ jsx88("span", { className: "text-[10px] font-bold uppercase tracking-wide", children: fileType }) }),
|
|
7055
7094
|
/* @__PURE__ */ jsxs63("div", { className: "min-w-0 flex-1", children: [
|
|
7056
7095
|
/* @__PURE__ */ jsx88("p", { className: "truncate text-sm font-medium", children: name }),
|
|
7057
7096
|
meta && /* @__PURE__ */ jsx88("p", { className: "mt-0.5 truncate text-xs text-muted-foreground", children: meta })
|
|
@@ -7222,9 +7261,9 @@ import { jsx as jsx91, jsxs as jsxs65 } from "react/jsx-runtime";
|
|
|
7222
7261
|
var rangeInputClass = cn(
|
|
7223
7262
|
"pointer-events-none absolute inset-x-0 top-1/2 h-6 w-full -translate-y-1/2 appearance-none bg-transparent",
|
|
7224
7263
|
"[&::-webkit-slider-runnable-track]:h-1 [&::-webkit-slider-runnable-track]:rounded-full [&::-webkit-slider-runnable-track]:bg-transparent",
|
|
7225
|
-
"[&::-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-
|
|
7264
|
+
"[&::-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-background [&::-webkit-slider-thumb]:bg-primary [&::-webkit-slider-thumb]:shadow-md",
|
|
7226
7265
|
"[&::-moz-range-track]:h-1 [&::-moz-range-track]:rounded-full [&::-moz-range-track]:bg-transparent",
|
|
7227
|
-
"[&::-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-
|
|
7266
|
+
"[&::-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-background [&::-moz-range-thumb]:bg-primary [&::-moz-range-thumb]:shadow-md",
|
|
7228
7267
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background",
|
|
7229
7268
|
"disabled:cursor-not-allowed disabled:opacity-50"
|
|
7230
7269
|
);
|
|
@@ -7264,7 +7303,7 @@ var RangeSlider = React91.forwardRef(function RangeSlider2({
|
|
|
7264
7303
|
/* @__PURE__ */ jsx91("span", { children: formatValue(high) })
|
|
7265
7304
|
] }),
|
|
7266
7305
|
/* @__PURE__ */ jsxs65("div", { className: "relative h-6 w-full", children: [
|
|
7267
|
-
/* @__PURE__ */ jsx91("div", { className: "absolute inset-x-0 top-1/2 h-1 -translate-y-1/2 rounded-full bg-
|
|
7306
|
+
/* @__PURE__ */ jsx91("div", { className: "absolute inset-x-0 top-1/2 h-1 -translate-y-1/2 rounded-full bg-border" }),
|
|
7268
7307
|
/* @__PURE__ */ jsx91(
|
|
7269
7308
|
"div",
|
|
7270
7309
|
{
|
|
@@ -7309,8 +7348,29 @@ var RangeSlider = React91.forwardRef(function RangeSlider2({
|
|
|
7309
7348
|
// src/components/filter-chips/FilterChips.tsx
|
|
7310
7349
|
import * as React92 from "react";
|
|
7311
7350
|
import { jsx as jsx92, jsxs as jsxs66 } from "react/jsx-runtime";
|
|
7351
|
+
var CHIP_SIZES = {
|
|
7352
|
+
sm: {
|
|
7353
|
+
chip: "gap-1 py-0.5 pl-2.5 pr-0.5 text-xs",
|
|
7354
|
+
remove: "p-0.5",
|
|
7355
|
+
icon: "h-3 w-3",
|
|
7356
|
+
clear: "text-xs"
|
|
7357
|
+
},
|
|
7358
|
+
md: {
|
|
7359
|
+
chip: "gap-1.5 py-1 pl-3 pr-1 text-sm",
|
|
7360
|
+
remove: "p-1",
|
|
7361
|
+
icon: "h-3.5 w-3.5",
|
|
7362
|
+
clear: "text-sm"
|
|
7363
|
+
},
|
|
7364
|
+
lg: {
|
|
7365
|
+
chip: "gap-2 py-1.5 pl-3.5 pr-1.5 text-base",
|
|
7366
|
+
remove: "p-1.5",
|
|
7367
|
+
icon: "h-4 w-4",
|
|
7368
|
+
clear: "text-base"
|
|
7369
|
+
}
|
|
7370
|
+
};
|
|
7312
7371
|
var FilterChips = React92.forwardRef(function FilterChips2({
|
|
7313
7372
|
filters,
|
|
7373
|
+
size = "md",
|
|
7314
7374
|
onClearAll,
|
|
7315
7375
|
clearLabel = "Clear all",
|
|
7316
7376
|
emptyLabel,
|
|
@@ -7321,6 +7381,7 @@ var FilterChips = React92.forwardRef(function FilterChips2({
|
|
|
7321
7381
|
if (filters.length === 0) {
|
|
7322
7382
|
return emptyLabel ? /* @__PURE__ */ jsx92("div", { ref, className: cn("text-sm text-muted-foreground", className), ...props, children: emptyLabel }) : null;
|
|
7323
7383
|
}
|
|
7384
|
+
const scale = CHIP_SIZES[size];
|
|
7324
7385
|
return /* @__PURE__ */ jsxs66(
|
|
7325
7386
|
"div",
|
|
7326
7387
|
{
|
|
@@ -7333,7 +7394,10 @@ var FilterChips = React92.forwardRef(function FilterChips2({
|
|
|
7333
7394
|
filters.map((filter) => /* @__PURE__ */ jsxs66(
|
|
7334
7395
|
"span",
|
|
7335
7396
|
{
|
|
7336
|
-
className:
|
|
7397
|
+
className: cn(
|
|
7398
|
+
"inline-flex max-w-full items-center rounded-full border border-border bg-muted/60",
|
|
7399
|
+
scale.chip
|
|
7400
|
+
),
|
|
7337
7401
|
children: [
|
|
7338
7402
|
/* @__PURE__ */ jsxs66("span", { className: "truncate", children: [
|
|
7339
7403
|
/* @__PURE__ */ jsxs66("span", { className: "text-muted-foreground", children: [
|
|
@@ -7349,8 +7413,11 @@ var FilterChips = React92.forwardRef(function FilterChips2({
|
|
|
7349
7413
|
type: "button",
|
|
7350
7414
|
onClick: filter.onRemove,
|
|
7351
7415
|
"aria-label": `Remove ${filter.label}${filter.value ? `: ${filter.value}` : ""}`,
|
|
7352
|
-
className:
|
|
7353
|
-
|
|
7416
|
+
className: cn(
|
|
7417
|
+
"rounded-full text-muted-foreground transition-colors hover:bg-background hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
7418
|
+
scale.remove
|
|
7419
|
+
),
|
|
7420
|
+
children: /* @__PURE__ */ jsx92("svg", { "aria-hidden": "true", viewBox: "0 0 20 20", className: scale.icon, fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", children: /* @__PURE__ */ jsx92("path", { d: "m5 5 10 10M15 5 5 15" }) })
|
|
7354
7421
|
}
|
|
7355
7422
|
)
|
|
7356
7423
|
]
|
|
@@ -7362,7 +7429,10 @@ var FilterChips = React92.forwardRef(function FilterChips2({
|
|
|
7362
7429
|
{
|
|
7363
7430
|
type: "button",
|
|
7364
7431
|
onClick: onClearAll,
|
|
7365
|
-
className:
|
|
7432
|
+
className: cn(
|
|
7433
|
+
"rounded-sm px-1 font-medium text-primary-ink underline-offset-4 hover:underline focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
7434
|
+
scale.clear
|
|
7435
|
+
),
|
|
7366
7436
|
children: clearLabel
|
|
7367
7437
|
}
|
|
7368
7438
|
)
|
|
@@ -7529,14 +7599,17 @@ var FilterPanel = React94.forwardRef(function FilterPanel2({
|
|
|
7529
7599
|
...props
|
|
7530
7600
|
}, ref) {
|
|
7531
7601
|
const Tag = as;
|
|
7532
|
-
const [open, setOpen] = React94.useState(
|
|
7533
|
-
|
|
7534
|
-
|
|
7535
|
-
|
|
7536
|
-
|
|
7602
|
+
const [open, setOpen] = React94.useState(() => {
|
|
7603
|
+
if (defaultOpen) {
|
|
7604
|
+
return sections.flatMap((section, index) => defaultOpen.includes(section.title) ? [index] : []);
|
|
7605
|
+
}
|
|
7606
|
+
return sections.flatMap((section, index) => section.defaultOpen ? [index] : []);
|
|
7607
|
+
});
|
|
7608
|
+
const isOpen = (index) => !collapsible || open.includes(index);
|
|
7609
|
+
const toggle = (index) => {
|
|
7537
7610
|
if (!collapsible) return;
|
|
7538
7611
|
setOpen(
|
|
7539
|
-
(current) => current.includes(
|
|
7612
|
+
(current) => current.includes(index) ? current.filter((entry) => entry !== index) : [...current, index]
|
|
7540
7613
|
);
|
|
7541
7614
|
};
|
|
7542
7615
|
return /* @__PURE__ */ jsxs68(Tag, { ref, className: cn("w-full rounded-xl border border-border bg-card", className), ...props, children: [
|
|
@@ -7544,16 +7617,17 @@ var FilterPanel = React94.forwardRef(function FilterPanel2({
|
|
|
7544
7617
|
title && /* @__PURE__ */ jsx94("h2", { className: "text-sm font-semibold", children: title }),
|
|
7545
7618
|
description && /* @__PURE__ */ jsx94("p", { className: "mt-1 text-xs text-muted-foreground", children: description })
|
|
7546
7619
|
] }),
|
|
7547
|
-
/* @__PURE__ */ jsx94("div", { className: "divide-y divide-border", children: sections.map((section) => {
|
|
7548
|
-
const expanded = isOpen(
|
|
7620
|
+
/* @__PURE__ */ jsx94("div", { className: "divide-y divide-border", children: sections.map((section, index) => {
|
|
7621
|
+
const expanded = isOpen(index);
|
|
7622
|
+
const sectionId = `filter-section-${index}`;
|
|
7549
7623
|
return /* @__PURE__ */ jsxs68("div", { className: "px-4 py-3", children: [
|
|
7550
7624
|
/* @__PURE__ */ jsx94("h3", { children: /* @__PURE__ */ jsxs68(
|
|
7551
7625
|
"button",
|
|
7552
7626
|
{
|
|
7553
7627
|
type: "button",
|
|
7554
|
-
onClick: () => toggle(
|
|
7628
|
+
onClick: () => toggle(index),
|
|
7555
7629
|
"aria-expanded": expanded,
|
|
7556
|
-
"aria-controls":
|
|
7630
|
+
"aria-controls": sectionId,
|
|
7557
7631
|
disabled: !collapsible,
|
|
7558
7632
|
className: cn(
|
|
7559
7633
|
"flex w-full items-center justify-between gap-2 text-left text-sm font-medium",
|
|
@@ -7568,8 +7642,8 @@ var FilterPanel = React94.forwardRef(function FilterPanel2({
|
|
|
7568
7642
|
]
|
|
7569
7643
|
}
|
|
7570
7644
|
) }),
|
|
7571
|
-
expanded && /* @__PURE__ */ jsx94("div", { id:
|
|
7572
|
-
] },
|
|
7645
|
+
expanded && /* @__PURE__ */ jsx94("div", { id: sectionId, className: "mt-3", children: section.content })
|
|
7646
|
+
] }, index);
|
|
7573
7647
|
}) }),
|
|
7574
7648
|
(onReset || onApply || actions) && /* @__PURE__ */ jsxs68("div", { className: "flex flex-wrap items-center gap-2 border-t border-border px-4 py-3", children: [
|
|
7575
7649
|
actions,
|