@slipstream-ui/core 0.10.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 +13 -4
- package/dist/index.d.ts +13 -4
- package/dist/index.js +67 -43
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +67 -43
- 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 +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 +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 +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 +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 +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/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/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.js +1 -1
- package/dist/src/components/filter-chips/FilterChips.js.map +1 -1
- package/dist/src/components/filter-chips/FilterChips.mjs +1 -1
- 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 +1 -1
- package/dist/src/components/radio/Radio.js.map +1 -1
- package/dist/src/components/radio/Radio.mjs +1 -1
- package/dist/src/components/radio/Radio.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/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/styles-full.css +1 -1
- package/dist/styles.css +1 -1
- package/package.json +6 -6
- 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/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/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.tsx +1 -1
- 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 +1 -1
- 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/toast/Toast.tsx +1 -1
- package/src/components/toast/Toaster.tsx +1 -1
- package/src/components/tombstone-card/TombstoneCard.tsx +1 -1
- 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 +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 +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 +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 +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 +1 -1
package/dist/index.mjs
CHANGED
|
@@ -541,7 +541,7 @@ var buttonVariants = cva(
|
|
|
541
541
|
"outline-info": "border border-info/50 bg-background text-info-ink hover:border-info hover:bg-info/10",
|
|
542
542
|
secondary: "bg-secondary text-secondary-foreground hover:bg-secondary/80",
|
|
543
543
|
ghost: "hover:bg-accent hover:text-accent-foreground",
|
|
544
|
-
link: "text-primary underline-offset-4 hover:underline",
|
|
544
|
+
link: "text-primary-ink underline-offset-4 hover:underline",
|
|
545
545
|
// High-contrast fills for hero and other always-dark surfaces. These
|
|
546
546
|
// do not read the theme surface, so they stay legible in both modes.
|
|
547
547
|
// Fixed ink, not --primary: in dark mode --primary lightens and would
|
|
@@ -878,7 +878,7 @@ function BottomNav({
|
|
|
878
878
|
"aria-current": item.active ? "page" : void 0,
|
|
879
879
|
className: cn(
|
|
880
880
|
tabClass,
|
|
881
|
-
item.active ? "text-primary" : "text-muted-foreground hover:text-foreground"
|
|
881
|
+
item.active ? "text-primary-ink" : "text-muted-foreground hover:text-foreground"
|
|
882
882
|
),
|
|
883
883
|
children: content
|
|
884
884
|
}
|
|
@@ -1042,7 +1042,7 @@ function ToastRegion({
|
|
|
1042
1042
|
entry.action?.onClick();
|
|
1043
1043
|
onDismiss(entry.id);
|
|
1044
1044
|
},
|
|
1045
|
-
className: "mt-2 text-sm font-medium text-primary hover:underline",
|
|
1045
|
+
className: "mt-2 text-sm font-medium text-primary-ink hover:underline",
|
|
1046
1046
|
children: entry.action.label
|
|
1047
1047
|
}
|
|
1048
1048
|
)
|
|
@@ -1168,7 +1168,7 @@ function Toaster({ position = "bottom-right", label = "Notifications", dismissLa
|
|
|
1168
1168
|
entry.action?.onClick();
|
|
1169
1169
|
toast.dismiss(entry.id);
|
|
1170
1170
|
},
|
|
1171
|
-
className: "mt-2 text-sm font-medium text-primary hover:underline",
|
|
1171
|
+
className: "mt-2 text-sm font-medium text-primary-ink hover:underline",
|
|
1172
1172
|
children: entry.action.label
|
|
1173
1173
|
}
|
|
1174
1174
|
)
|
|
@@ -1640,7 +1640,7 @@ var SelectMenu = React17.forwardRef(function SelectMenu2({
|
|
|
1640
1640
|
/* @__PURE__ */ jsx17("span", { className: "block", children: row.item.label }),
|
|
1641
1641
|
row.item.description && /* @__PURE__ */ jsx17("span", { className: "mt-0.5 block text-xs text-muted-foreground", children: row.item.description })
|
|
1642
1642
|
] }),
|
|
1643
|
-
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" })
|
|
1644
1644
|
] })
|
|
1645
1645
|
},
|
|
1646
1646
|
row.item.value
|
|
@@ -2223,7 +2223,7 @@ var RadioGroupItem = React23.forwardRef(
|
|
|
2223
2223
|
value,
|
|
2224
2224
|
checked: group.value === value,
|
|
2225
2225
|
onCheckedChange: (checked) => checked && group.onChange(value),
|
|
2226
|
-
className,
|
|
2226
|
+
className: cn("peer", className),
|
|
2227
2227
|
...props
|
|
2228
2228
|
}
|
|
2229
2229
|
),
|
|
@@ -3510,7 +3510,7 @@ function TableOfContents({
|
|
|
3510
3510
|
onClick: () => onNavigate?.(heading.id),
|
|
3511
3511
|
className: cn(
|
|
3512
3512
|
"-ml-px block border-l py-1 pl-3 no-underline transition-colors",
|
|
3513
|
-
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"
|
|
3514
3514
|
),
|
|
3515
3515
|
children: heading.text
|
|
3516
3516
|
}
|
|
@@ -3576,7 +3576,7 @@ var Prose = React42.forwardRef(function Prose2({ size = "md", className, ...prop
|
|
|
3576
3576
|
"[&_h4]:mb-2 [&_h4]:mt-6 [&_h4]:scroll-mt-24 [&_h4]:font-semibold",
|
|
3577
3577
|
// Body copy
|
|
3578
3578
|
"[&_p]:my-4 [&_p]:leading-7",
|
|
3579
|
-
"[&_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",
|
|
3580
3580
|
"[&_strong]:font-semibold [&_strong]:text-foreground [&_em]:italic",
|
|
3581
3581
|
"[&_ul]:my-4 [&_ul]:list-disc [&_ul]:space-y-1.5 [&_ul]:pl-6",
|
|
3582
3582
|
"[&_ol]:my-4 [&_ol]:list-decimal [&_ol]:space-y-1.5 [&_ol]:pl-6",
|
|
@@ -4550,8 +4550,9 @@ function DataTable({
|
|
|
4550
4550
|
// src/components/list/List.tsx
|
|
4551
4551
|
import * as React48 from "react";
|
|
4552
4552
|
import { Fragment as Fragment9, jsx as jsx48, jsxs as jsxs32 } from "react/jsx-runtime";
|
|
4553
|
+
var ListDensityContext = React48.createContext("default");
|
|
4553
4554
|
var List = React48.forwardRef(
|
|
4554
|
-
({ 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(
|
|
4555
4556
|
"ul",
|
|
4556
4557
|
{
|
|
4557
4558
|
ref,
|
|
@@ -4559,17 +4560,17 @@ var List = React48.forwardRef(
|
|
|
4559
4560
|
"flex flex-col",
|
|
4560
4561
|
bordered && "overflow-hidden rounded-lg border border-border bg-card",
|
|
4561
4562
|
divided && "divide-y divide-border",
|
|
4562
|
-
size === "compact" ? "gap-0" : "gap-0",
|
|
4563
4563
|
className
|
|
4564
4564
|
),
|
|
4565
4565
|
...props
|
|
4566
4566
|
}
|
|
4567
|
-
)
|
|
4567
|
+
) })
|
|
4568
4568
|
);
|
|
4569
4569
|
List.displayName = "List";
|
|
4570
4570
|
var ListItem = React48.forwardRef(
|
|
4571
4571
|
({ leading, trailing, selected, onClick, description, disabled, className, children, ...props }, ref) => {
|
|
4572
|
-
const
|
|
4572
|
+
const density = React48.useContext(ListDensityContext);
|
|
4573
|
+
const padding = density === "compact" ? "px-3 py-1.5" : "px-3 py-2.5";
|
|
4573
4574
|
const rowClass = cn(
|
|
4574
4575
|
"flex w-full items-center gap-3 text-left text-sm",
|
|
4575
4576
|
selected && "bg-accent text-accent-foreground",
|
|
@@ -4660,6 +4661,11 @@ function Image2({
|
|
|
4660
4661
|
style
|
|
4661
4662
|
}) {
|
|
4662
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
|
+
}
|
|
4663
4669
|
const onError = () => setStage((current2) => current2 === 0 && fallbackSrc ? 1 : 2);
|
|
4664
4670
|
const current = stage === 0 ? src : stage === 1 ? fallbackSrc : null;
|
|
4665
4671
|
if (!current || stage === 2) return /* @__PURE__ */ jsx50(Fragment11, { children: fallback ?? null });
|
|
@@ -5468,7 +5474,9 @@ var DatePickerPopover = React62.forwardRef(
|
|
|
5468
5474
|
align = "start",
|
|
5469
5475
|
id,
|
|
5470
5476
|
className,
|
|
5471
|
-
"aria-label": ariaLabel
|
|
5477
|
+
"aria-label": ariaLabel,
|
|
5478
|
+
"aria-describedby": ariaDescribedBy,
|
|
5479
|
+
"aria-invalid": ariaInvalid
|
|
5472
5480
|
}, ref) => {
|
|
5473
5481
|
const [open, setOpen] = React62.useState(false);
|
|
5474
5482
|
const triggerRef = React62.useRef(null);
|
|
@@ -5490,6 +5498,8 @@ var DatePickerPopover = React62.forwardRef(
|
|
|
5490
5498
|
id,
|
|
5491
5499
|
disabled,
|
|
5492
5500
|
"aria-label": ariaLabel,
|
|
5501
|
+
"aria-describedby": ariaDescribedBy,
|
|
5502
|
+
"aria-invalid": ariaInvalid,
|
|
5493
5503
|
className: cn(
|
|
5494
5504
|
buttonVariants({ variant: "outline" }),
|
|
5495
5505
|
"w-full justify-start font-normal",
|
|
@@ -5616,7 +5626,7 @@ var Stepper = React64.forwardRef(function Stepper2({
|
|
|
5616
5626
|
"rounded-full border font-medium",
|
|
5617
5627
|
markerSizeClass,
|
|
5618
5628
|
state === "complete" && "border-primary bg-primary text-primary-foreground",
|
|
5619
|
-
state === "current" && "border-primary text-primary",
|
|
5629
|
+
state === "current" && "border-primary text-primary-ink",
|
|
5620
5630
|
state === "upcoming" && "border-border text-muted-foreground"
|
|
5621
5631
|
)
|
|
5622
5632
|
),
|
|
@@ -5740,6 +5750,16 @@ var FileUpload = React65.forwardRef(function FileUpload2({
|
|
|
5740
5750
|
const current = files ?? internal;
|
|
5741
5751
|
const generatedId = React65.useId();
|
|
5742
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
|
+
};
|
|
5743
5763
|
const commit = (next) => {
|
|
5744
5764
|
if (files === void 0) setInternal(next);
|
|
5745
5765
|
onFilesChange?.(next);
|
|
@@ -5816,13 +5836,13 @@ var FileUpload = React65.forwardRef(function FileUpload2({
|
|
|
5816
5836
|
"button",
|
|
5817
5837
|
{
|
|
5818
5838
|
type: "button",
|
|
5819
|
-
onClick: () => commit(current.filter((entry) => entry
|
|
5839
|
+
onClick: () => commit(current.filter((entry) => entry !== file)),
|
|
5820
5840
|
"aria-label": removeLabel(file),
|
|
5821
5841
|
className: "rounded p-1 text-muted-foreground hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
5822
5842
|
children: "\u2715"
|
|
5823
5843
|
}
|
|
5824
5844
|
)
|
|
5825
|
-
] }, file
|
|
5845
|
+
] }, idFor(file))) })
|
|
5826
5846
|
] });
|
|
5827
5847
|
});
|
|
5828
5848
|
|
|
@@ -6205,7 +6225,7 @@ var Hero = React72.forwardRef(function Hero2({
|
|
|
6205
6225
|
{
|
|
6206
6226
|
className: cn(
|
|
6207
6227
|
"mb-5 inline-flex rounded-full border px-3 py-1 text-xs font-medium",
|
|
6208
|
-
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",
|
|
6209
6229
|
badgeClassName
|
|
6210
6230
|
),
|
|
6211
6231
|
children: badge
|
|
@@ -6216,7 +6236,7 @@ var Hero = React72.forwardRef(function Hero2({
|
|
|
6216
6236
|
{
|
|
6217
6237
|
className: cn(
|
|
6218
6238
|
"mb-3 text-xs font-semibold uppercase tracking-widest",
|
|
6219
|
-
overlay ? "text-background/90" : "text-primary",
|
|
6239
|
+
overlay ? "text-background/90" : "text-primary-ink",
|
|
6220
6240
|
eyebrowClassName
|
|
6221
6241
|
),
|
|
6222
6242
|
children: eyebrow
|
|
@@ -6576,10 +6596,10 @@ var FeatureGrid = React77.forwardRef(function FeatureGrid2({ features, columns =
|
|
|
6576
6596
|
align === "center" && "items-center text-center"
|
|
6577
6597
|
);
|
|
6578
6598
|
const content = (feature) => /* @__PURE__ */ jsxs52(Fragment16, { children: [
|
|
6579
|
-
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 }),
|
|
6580
6600
|
/* @__PURE__ */ jsx77("h3", { className: "text-base font-semibold tracking-tight", children: feature.title }),
|
|
6581
6601
|
feature.description && /* @__PURE__ */ jsx77("p", { className: "text-sm leading-relaxed text-muted-foreground", children: feature.description }),
|
|
6582
|
-
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: [
|
|
6583
6603
|
feature.actionLabel,
|
|
6584
6604
|
" ",
|
|
6585
6605
|
/* @__PURE__ */ jsx77("span", { "aria-hidden": "true", children: "\u2192" })
|
|
@@ -6616,7 +6636,7 @@ var FeatureRow = React78.forwardRef(function FeatureRow2({
|
|
|
6616
6636
|
...props,
|
|
6617
6637
|
children: [
|
|
6618
6638
|
/* @__PURE__ */ jsxs53("div", { className: cn("min-w-0", mediaPosition === "left" && "lg:order-2"), children: [
|
|
6619
|
-
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 }),
|
|
6620
6640
|
/* @__PURE__ */ jsx78(Heading2, { className: cn("font-semibold tracking-tight text-balance", titleSizes2[size]), children: title }),
|
|
6621
6641
|
description && /* @__PURE__ */ jsx78("div", { className: "mt-4 max-w-xl text-base leading-relaxed text-muted-foreground sm:text-lg", children: description }),
|
|
6622
6642
|
actions && /* @__PURE__ */ jsx78("div", { className: "mt-7 flex flex-wrap items-center gap-3", children: actions })
|
|
@@ -6679,7 +6699,7 @@ var ProcessSteps = React80.forwardRef(function ProcessSteps2({ steps, columns =
|
|
|
6679
6699
|
{
|
|
6680
6700
|
className: cn("flex min-w-0 flex-col gap-4", align === "center" && "items-center text-center"),
|
|
6681
6701
|
children: [
|
|
6682
|
-
/* @__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) }),
|
|
6683
6703
|
/* @__PURE__ */ jsxs55("div", { className: "min-w-0", children: [
|
|
6684
6704
|
/* @__PURE__ */ jsx80("h3", { className: "text-base font-semibold tracking-tight", children: step.title }),
|
|
6685
6705
|
step.description && /* @__PURE__ */ jsx80("p", { className: "mt-1 text-sm leading-relaxed text-muted-foreground", children: step.description })
|
|
@@ -6804,10 +6824,10 @@ var columnClasses5 = {
|
|
|
6804
6824
|
var ContactStrip = React83.forwardRef(function ContactStrip2({ items, columns = 2, align = "left", linkComponent, className, ...props }, ref) {
|
|
6805
6825
|
const Link3 = linkComponent ?? "a";
|
|
6806
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: [
|
|
6807
|
-
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 }),
|
|
6808
6828
|
/* @__PURE__ */ jsxs58("div", { className: "min-w-0", children: [
|
|
6809
6829
|
/* @__PURE__ */ jsx83("p", { className: "text-xs font-semibold uppercase tracking-wider text-muted-foreground", children: item.label }),
|
|
6810
|
-
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 })
|
|
6811
6831
|
] })
|
|
6812
6832
|
] }, item.label)) });
|
|
6813
6833
|
});
|
|
@@ -6912,10 +6932,10 @@ var DealCard = React85.forwardRef(function DealCard2({
|
|
|
6912
6932
|
return /* @__PURE__ */ jsxs60(Card, { ref, className: cn("flex h-full flex-col overflow-hidden", className), ...props, children: [
|
|
6913
6933
|
/* @__PURE__ */ jsxs60(CardHeader, { className: "gap-2 p-5 pb-3", children: [
|
|
6914
6934
|
/* @__PURE__ */ jsxs60("div", { className: "flex items-start justify-between gap-2", children: [
|
|
6915
|
-
/* @__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 }),
|
|
6916
6936
|
/* @__PURE__ */ jsx85(Badge, { variant: statusInfo.variant, children: statusInfo.label })
|
|
6917
6937
|
] }),
|
|
6918
|
-
/* @__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 }),
|
|
6919
6939
|
location && /* @__PURE__ */ jsx85("p", { className: "text-xs text-muted-foreground", children: location })
|
|
6920
6940
|
] }),
|
|
6921
6941
|
/* @__PURE__ */ jsxs60(CardContent, { className: "flex-1 px-5 pb-3", children: [
|
|
@@ -6972,7 +6992,7 @@ var EntityCard = React86.forwardRef(function EntityCard2({
|
|
|
6972
6992
|
/* @__PURE__ */ jsxs61(CardHeader, { className: "flex-row items-start gap-3 p-5 pb-3", children: [
|
|
6973
6993
|
/* @__PURE__ */ jsx86("div", { className: "shrink-0", children: logo ?? /* @__PURE__ */ jsx86(Avatar, { children: /* @__PURE__ */ jsx86(AvatarFallback, { children: initials(name) }) }) }),
|
|
6974
6994
|
/* @__PURE__ */ jsxs61("div", { className: "min-w-0 flex-1", children: [
|
|
6975
|
-
/* @__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 }),
|
|
6976
6996
|
/* @__PURE__ */ jsx86("p", { className: "mt-0.5 truncate text-xs text-muted-foreground", children: entityType }),
|
|
6977
6997
|
location && /* @__PURE__ */ jsx86("p", { className: "mt-0.5 truncate text-xs text-muted-foreground", children: location })
|
|
6978
6998
|
] })
|
|
@@ -6990,7 +7010,7 @@ var EntityCard = React86.forwardRef(function EntityCard2({
|
|
|
6990
7010
|
Link3,
|
|
6991
7011
|
{
|
|
6992
7012
|
href,
|
|
6993
|
-
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",
|
|
6994
7014
|
children: "View profile"
|
|
6995
7015
|
}
|
|
6996
7016
|
),
|
|
@@ -7038,7 +7058,7 @@ var TombstoneCard = React87.forwardRef(function TombstoneCard2({
|
|
|
7038
7058
|
Link3,
|
|
7039
7059
|
{
|
|
7040
7060
|
href,
|
|
7041
|
-
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",
|
|
7042
7062
|
children: actionLabel
|
|
7043
7063
|
}
|
|
7044
7064
|
)
|
|
@@ -7070,7 +7090,7 @@ var DocumentCard = React88.forwardRef(function DocumentCard2({
|
|
|
7070
7090
|
const statusInfo = statusConfig3[status];
|
|
7071
7091
|
const meta = [fileType, size, updatedAt].filter(Boolean).join(" \xB7 ");
|
|
7072
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: [
|
|
7073
|
-
/* @__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 }) }),
|
|
7074
7094
|
/* @__PURE__ */ jsxs63("div", { className: "min-w-0 flex-1", children: [
|
|
7075
7095
|
/* @__PURE__ */ jsx88("p", { className: "truncate text-sm font-medium", children: name }),
|
|
7076
7096
|
meta && /* @__PURE__ */ jsx88("p", { className: "mt-0.5 truncate text-xs text-muted-foreground", children: meta })
|
|
@@ -7410,7 +7430,7 @@ var FilterChips = React92.forwardRef(function FilterChips2({
|
|
|
7410
7430
|
type: "button",
|
|
7411
7431
|
onClick: onClearAll,
|
|
7412
7432
|
className: cn(
|
|
7413
|
-
"rounded-sm px-1 font-medium text-primary underline-offset-4 hover:underline focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
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",
|
|
7414
7434
|
scale.clear
|
|
7415
7435
|
),
|
|
7416
7436
|
children: clearLabel
|
|
@@ -7579,14 +7599,17 @@ var FilterPanel = React94.forwardRef(function FilterPanel2({
|
|
|
7579
7599
|
...props
|
|
7580
7600
|
}, ref) {
|
|
7581
7601
|
const Tag = as;
|
|
7582
|
-
const [open, setOpen] = React94.useState(
|
|
7583
|
-
|
|
7584
|
-
|
|
7585
|
-
|
|
7586
|
-
|
|
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) => {
|
|
7587
7610
|
if (!collapsible) return;
|
|
7588
7611
|
setOpen(
|
|
7589
|
-
(current) => current.includes(
|
|
7612
|
+
(current) => current.includes(index) ? current.filter((entry) => entry !== index) : [...current, index]
|
|
7590
7613
|
);
|
|
7591
7614
|
};
|
|
7592
7615
|
return /* @__PURE__ */ jsxs68(Tag, { ref, className: cn("w-full rounded-xl border border-border bg-card", className), ...props, children: [
|
|
@@ -7594,16 +7617,17 @@ var FilterPanel = React94.forwardRef(function FilterPanel2({
|
|
|
7594
7617
|
title && /* @__PURE__ */ jsx94("h2", { className: "text-sm font-semibold", children: title }),
|
|
7595
7618
|
description && /* @__PURE__ */ jsx94("p", { className: "mt-1 text-xs text-muted-foreground", children: description })
|
|
7596
7619
|
] }),
|
|
7597
|
-
/* @__PURE__ */ jsx94("div", { className: "divide-y divide-border", children: sections.map((section) => {
|
|
7598
|
-
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}`;
|
|
7599
7623
|
return /* @__PURE__ */ jsxs68("div", { className: "px-4 py-3", children: [
|
|
7600
7624
|
/* @__PURE__ */ jsx94("h3", { children: /* @__PURE__ */ jsxs68(
|
|
7601
7625
|
"button",
|
|
7602
7626
|
{
|
|
7603
7627
|
type: "button",
|
|
7604
|
-
onClick: () => toggle(
|
|
7628
|
+
onClick: () => toggle(index),
|
|
7605
7629
|
"aria-expanded": expanded,
|
|
7606
|
-
"aria-controls":
|
|
7630
|
+
"aria-controls": sectionId,
|
|
7607
7631
|
disabled: !collapsible,
|
|
7608
7632
|
className: cn(
|
|
7609
7633
|
"flex w-full items-center justify-between gap-2 text-left text-sm font-medium",
|
|
@@ -7618,8 +7642,8 @@ var FilterPanel = React94.forwardRef(function FilterPanel2({
|
|
|
7618
7642
|
]
|
|
7619
7643
|
}
|
|
7620
7644
|
) }),
|
|
7621
|
-
expanded && /* @__PURE__ */ jsx94("div", { id:
|
|
7622
|
-
] },
|
|
7645
|
+
expanded && /* @__PURE__ */ jsx94("div", { id: sectionId, className: "mt-3", children: section.content })
|
|
7646
|
+
] }, index);
|
|
7623
7647
|
}) }),
|
|
7624
7648
|
(onReset || onApply || actions) && /* @__PURE__ */ jsxs68("div", { className: "flex flex-wrap items-center gap-2 border-t border-border px-4 py-3", children: [
|
|
7625
7649
|
actions,
|