@slipstream-ui/core 0.10.0 → 0.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +0 -4
- package/dist/index.d.mts +25 -6
- package/dist/index.d.ts +25 -6
- package/dist/index.js +85 -47
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +85 -47
- 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 +2 -2
- package/dist/manifests/logo-cloud.manifest.json +8 -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 +8 -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/load-more/LoadMore.d.ts +2 -2
- package/dist/src/components/load-more/LoadMore.js +1 -1
- package/dist/src/components/load-more/LoadMore.js.map +1 -1
- package/dist/src/components/load-more/LoadMore.mjs +1 -1
- package/dist/src/components/load-more/LoadMore.mjs.map +1 -1
- package/dist/src/components/logo-cloud/LogoCloud.d.ts +4 -0
- package/dist/src/components/logo-cloud/LogoCloud.js +2 -1
- package/dist/src/components/logo-cloud/LogoCloud.js.map +1 -1
- package/dist/src/components/logo-cloud/LogoCloud.mjs +2 -1
- package/dist/src/components/logo-cloud/LogoCloud.mjs.map +1 -1
- package/dist/src/components/menu/Menu.d.ts +2 -2
- package/dist/src/components/menu/Menu.js +12 -0
- package/dist/src/components/menu/Menu.js.map +1 -1
- package/dist/src/components/menu/Menu.mjs +12 -0
- package/dist/src/components/menu/Menu.mjs.map +1 -1
- package/dist/src/components/process-steps/ProcessSteps.d.ts +6 -0
- package/dist/src/components/process-steps/ProcessSteps.js +4 -3
- package/dist/src/components/process-steps/ProcessSteps.js.map +1 -1
- package/dist/src/components/process-steps/ProcessSteps.mjs +4 -3
- 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 +5 -3
- 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/grid/Grid.test.tsx +3 -1
- 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/input/Input.ssr.test.tsx +1 -1
- package/src/components/list/List.test.tsx +18 -0
- package/src/components/list/List.tsx +18 -12
- package/src/components/load-more/LoadMore.tsx +2 -2
- package/src/components/logo-cloud/LogoCloud.tsx +4 -1
- package/src/components/menu/Menu.test.tsx +15 -0
- package/src/components/menu/Menu.tsx +21 -2
- package/src/components/process-steps/ProcessSteps.tsx +7 -3
- 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/section/Section.test.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 +2 -2
- package/src/manifests/logo-cloud.manifest.json +8 -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 +8 -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/LICENSE
CHANGED
|
@@ -18,8 +18,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
|
18
18
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
19
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
20
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
<<<<<<< HEAD
|
|
22
21
|
SOFTWARE.
|
|
23
|
-
=======
|
|
24
|
-
SOFTWARE.
|
|
25
|
-
>>>>>>> origin/main
|
package/dist/index.d.mts
CHANGED
|
@@ -2465,6 +2465,9 @@ type DatePickerPopoverProps = {
|
|
|
2465
2465
|
id?: string;
|
|
2466
2466
|
className?: string;
|
|
2467
2467
|
'aria-label'?: string;
|
|
2468
|
+
/** Wired by FormField so hint/error copy is announced with the trigger. */
|
|
2469
|
+
'aria-describedby'?: string;
|
|
2470
|
+
'aria-invalid'?: boolean | 'true' | 'false';
|
|
2468
2471
|
};
|
|
2469
2472
|
/**
|
|
2470
2473
|
* Date field with a month-grid panel. Values stay ISO `YYYY-MM-DD` strings, so
|
|
@@ -2596,7 +2599,10 @@ type FileUploadProps = Omit<React.InputHTMLAttributes<HTMLInputElement>, 'type'
|
|
|
2596
2599
|
removeLabel?: (file: File) => string;
|
|
2597
2600
|
/** Accessible label for a file's upload progress. Default `Uploading <name>`. */
|
|
2598
2601
|
uploadingLabel?: (file: File) => string;
|
|
2599
|
-
/**
|
|
2602
|
+
/**
|
|
2603
|
+
* Per-file progress (0-100) keyed by file name, rendered as a bar.
|
|
2604
|
+
* Same-named files share one progress entry.
|
|
2605
|
+
*/
|
|
2600
2606
|
progress?: Record<string, number>;
|
|
2601
2607
|
};
|
|
2602
2608
|
/**
|
|
@@ -2621,7 +2627,10 @@ declare const FileUpload: React.ForwardRefExoticComponent<Omit<React.InputHTMLAt
|
|
|
2621
2627
|
removeLabel?: (file: File) => string;
|
|
2622
2628
|
/** Accessible label for a file's upload progress. Default `Uploading <name>`. */
|
|
2623
2629
|
uploadingLabel?: (file: File) => string;
|
|
2624
|
-
/**
|
|
2630
|
+
/**
|
|
2631
|
+
* Per-file progress (0-100) keyed by file name, rendered as a bar.
|
|
2632
|
+
* Same-named files share one progress entry.
|
|
2633
|
+
*/
|
|
2625
2634
|
progress?: Record<string, number>;
|
|
2626
2635
|
} & React.RefAttributes<HTMLInputElement>>;
|
|
2627
2636
|
|
|
@@ -3105,6 +3114,8 @@ type LogoCloudProps = React.HTMLAttributes<HTMLDivElement> & {
|
|
|
3105
3114
|
align?: 'left' | 'center';
|
|
3106
3115
|
/** Custom link element for routers. */
|
|
3107
3116
|
linkComponent?: React.ElementType;
|
|
3117
|
+
/** Prop used to pass the destination to linkComponent ('to' for react-router). */
|
|
3118
|
+
linkHrefProp?: 'href' | 'to';
|
|
3108
3119
|
};
|
|
3109
3120
|
/**
|
|
3110
3121
|
* Trust strip for member, customer or partner logos. Logos are decorative
|
|
@@ -3126,6 +3137,8 @@ declare const LogoCloud: React.ForwardRefExoticComponent<React.HTMLAttributes<HT
|
|
|
3126
3137
|
align?: "left" | "center";
|
|
3127
3138
|
/** Custom link element for routers. */
|
|
3128
3139
|
linkComponent?: React.ElementType;
|
|
3140
|
+
/** Prop used to pass the destination to linkComponent ('to' for react-router). */
|
|
3141
|
+
linkHrefProp?: "href" | "to";
|
|
3129
3142
|
} & React.RefAttributes<HTMLDivElement>>;
|
|
3130
3143
|
|
|
3131
3144
|
type FeatureItem = {
|
|
@@ -3263,6 +3276,9 @@ type ProcessStepsProps = React.HTMLAttributes<HTMLOListElement> & {
|
|
|
3263
3276
|
numbered?: boolean;
|
|
3264
3277
|
/** Content alignment. Default 'left'. */
|
|
3265
3278
|
align?: 'left' | 'center';
|
|
3279
|
+
/** Heading level for step titles (h2-h4). Default 3 — pick the level that
|
|
3280
|
+
* continues your page's outline without skipping a rank. */
|
|
3281
|
+
headingLevel?: 2 | 3 | 4;
|
|
3266
3282
|
};
|
|
3267
3283
|
/**
|
|
3268
3284
|
* Ordered process or onboarding steps. Numbers are derived from the list
|
|
@@ -3278,6 +3294,9 @@ declare const ProcessSteps: React.ForwardRefExoticComponent<React.HTMLAttributes
|
|
|
3278
3294
|
numbered?: boolean;
|
|
3279
3295
|
/** Content alignment. Default 'left'. */
|
|
3280
3296
|
align?: "left" | "center";
|
|
3297
|
+
/** Heading level for step titles (h2-h4). Default 3 — pick the level that
|
|
3298
|
+
* continues your page's outline without skipping a rank. */
|
|
3299
|
+
headingLevel?: 2 | 3 | 4;
|
|
3281
3300
|
} & React.RefAttributes<HTMLOListElement>>;
|
|
3282
3301
|
|
|
3283
3302
|
type ArticleCardProps = Omit<React.HTMLAttributes<HTMLElement>, 'title'> & {
|
|
@@ -3688,7 +3707,7 @@ type LoadMoreProps = React.HTMLAttributes<HTMLDivElement> & {
|
|
|
3688
3707
|
loading?: boolean;
|
|
3689
3708
|
/** Button label. Default "Load more". */
|
|
3690
3709
|
loadLabel?: string;
|
|
3691
|
-
/** Loading label. Default "Loading
|
|
3710
|
+
/** Loading label. Default "Loading…". */
|
|
3692
3711
|
loadingLabel?: string;
|
|
3693
3712
|
/** End-of-list message. Default "You're all caught up." */
|
|
3694
3713
|
endLabel?: string;
|
|
@@ -3707,7 +3726,7 @@ declare const LoadMore: React.ForwardRefExoticComponent<React.HTMLAttributes<HTM
|
|
|
3707
3726
|
loading?: boolean;
|
|
3708
3727
|
/** Button label. Default "Load more". */
|
|
3709
3728
|
loadLabel?: string;
|
|
3710
|
-
/** Loading label. Default "Loading
|
|
3729
|
+
/** Loading label. Default "Loading…". */
|
|
3711
3730
|
loadingLabel?: string;
|
|
3712
3731
|
/** End-of-list message. Default "You're all caught up." */
|
|
3713
3732
|
endLabel?: string;
|
|
@@ -4067,8 +4086,8 @@ type MenuProps = {
|
|
|
4067
4086
|
children: React.ReactNode;
|
|
4068
4087
|
};
|
|
4069
4088
|
/**
|
|
4070
|
-
* Dropdown menu with keyboard navigation (arrows, Home/End, Escape)
|
|
4071
|
-
*
|
|
4089
|
+
* Dropdown menu with keyboard navigation (arrows, Home/End, Escape)
|
|
4090
|
+
* and proper ARIA menu semantics. Items are rendered in a
|
|
4072
4091
|
* floating panel anchored to the trigger.
|
|
4073
4092
|
*/
|
|
4074
4093
|
declare const Menu: React.ForwardRefExoticComponent<MenuProps & React.RefAttributes<HTMLDivElement>>;
|
package/dist/index.d.ts
CHANGED
|
@@ -2465,6 +2465,9 @@ type DatePickerPopoverProps = {
|
|
|
2465
2465
|
id?: string;
|
|
2466
2466
|
className?: string;
|
|
2467
2467
|
'aria-label'?: string;
|
|
2468
|
+
/** Wired by FormField so hint/error copy is announced with the trigger. */
|
|
2469
|
+
'aria-describedby'?: string;
|
|
2470
|
+
'aria-invalid'?: boolean | 'true' | 'false';
|
|
2468
2471
|
};
|
|
2469
2472
|
/**
|
|
2470
2473
|
* Date field with a month-grid panel. Values stay ISO `YYYY-MM-DD` strings, so
|
|
@@ -2596,7 +2599,10 @@ type FileUploadProps = Omit<React.InputHTMLAttributes<HTMLInputElement>, 'type'
|
|
|
2596
2599
|
removeLabel?: (file: File) => string;
|
|
2597
2600
|
/** Accessible label for a file's upload progress. Default `Uploading <name>`. */
|
|
2598
2601
|
uploadingLabel?: (file: File) => string;
|
|
2599
|
-
/**
|
|
2602
|
+
/**
|
|
2603
|
+
* Per-file progress (0-100) keyed by file name, rendered as a bar.
|
|
2604
|
+
* Same-named files share one progress entry.
|
|
2605
|
+
*/
|
|
2600
2606
|
progress?: Record<string, number>;
|
|
2601
2607
|
};
|
|
2602
2608
|
/**
|
|
@@ -2621,7 +2627,10 @@ declare const FileUpload: React.ForwardRefExoticComponent<Omit<React.InputHTMLAt
|
|
|
2621
2627
|
removeLabel?: (file: File) => string;
|
|
2622
2628
|
/** Accessible label for a file's upload progress. Default `Uploading <name>`. */
|
|
2623
2629
|
uploadingLabel?: (file: File) => string;
|
|
2624
|
-
/**
|
|
2630
|
+
/**
|
|
2631
|
+
* Per-file progress (0-100) keyed by file name, rendered as a bar.
|
|
2632
|
+
* Same-named files share one progress entry.
|
|
2633
|
+
*/
|
|
2625
2634
|
progress?: Record<string, number>;
|
|
2626
2635
|
} & React.RefAttributes<HTMLInputElement>>;
|
|
2627
2636
|
|
|
@@ -3105,6 +3114,8 @@ type LogoCloudProps = React.HTMLAttributes<HTMLDivElement> & {
|
|
|
3105
3114
|
align?: 'left' | 'center';
|
|
3106
3115
|
/** Custom link element for routers. */
|
|
3107
3116
|
linkComponent?: React.ElementType;
|
|
3117
|
+
/** Prop used to pass the destination to linkComponent ('to' for react-router). */
|
|
3118
|
+
linkHrefProp?: 'href' | 'to';
|
|
3108
3119
|
};
|
|
3109
3120
|
/**
|
|
3110
3121
|
* Trust strip for member, customer or partner logos. Logos are decorative
|
|
@@ -3126,6 +3137,8 @@ declare const LogoCloud: React.ForwardRefExoticComponent<React.HTMLAttributes<HT
|
|
|
3126
3137
|
align?: "left" | "center";
|
|
3127
3138
|
/** Custom link element for routers. */
|
|
3128
3139
|
linkComponent?: React.ElementType;
|
|
3140
|
+
/** Prop used to pass the destination to linkComponent ('to' for react-router). */
|
|
3141
|
+
linkHrefProp?: "href" | "to";
|
|
3129
3142
|
} & React.RefAttributes<HTMLDivElement>>;
|
|
3130
3143
|
|
|
3131
3144
|
type FeatureItem = {
|
|
@@ -3263,6 +3276,9 @@ type ProcessStepsProps = React.HTMLAttributes<HTMLOListElement> & {
|
|
|
3263
3276
|
numbered?: boolean;
|
|
3264
3277
|
/** Content alignment. Default 'left'. */
|
|
3265
3278
|
align?: 'left' | 'center';
|
|
3279
|
+
/** Heading level for step titles (h2-h4). Default 3 — pick the level that
|
|
3280
|
+
* continues your page's outline without skipping a rank. */
|
|
3281
|
+
headingLevel?: 2 | 3 | 4;
|
|
3266
3282
|
};
|
|
3267
3283
|
/**
|
|
3268
3284
|
* Ordered process or onboarding steps. Numbers are derived from the list
|
|
@@ -3278,6 +3294,9 @@ declare const ProcessSteps: React.ForwardRefExoticComponent<React.HTMLAttributes
|
|
|
3278
3294
|
numbered?: boolean;
|
|
3279
3295
|
/** Content alignment. Default 'left'. */
|
|
3280
3296
|
align?: "left" | "center";
|
|
3297
|
+
/** Heading level for step titles (h2-h4). Default 3 — pick the level that
|
|
3298
|
+
* continues your page's outline without skipping a rank. */
|
|
3299
|
+
headingLevel?: 2 | 3 | 4;
|
|
3281
3300
|
} & React.RefAttributes<HTMLOListElement>>;
|
|
3282
3301
|
|
|
3283
3302
|
type ArticleCardProps = Omit<React.HTMLAttributes<HTMLElement>, 'title'> & {
|
|
@@ -3688,7 +3707,7 @@ type LoadMoreProps = React.HTMLAttributes<HTMLDivElement> & {
|
|
|
3688
3707
|
loading?: boolean;
|
|
3689
3708
|
/** Button label. Default "Load more". */
|
|
3690
3709
|
loadLabel?: string;
|
|
3691
|
-
/** Loading label. Default "Loading
|
|
3710
|
+
/** Loading label. Default "Loading…". */
|
|
3692
3711
|
loadingLabel?: string;
|
|
3693
3712
|
/** End-of-list message. Default "You're all caught up." */
|
|
3694
3713
|
endLabel?: string;
|
|
@@ -3707,7 +3726,7 @@ declare const LoadMore: React.ForwardRefExoticComponent<React.HTMLAttributes<HTM
|
|
|
3707
3726
|
loading?: boolean;
|
|
3708
3727
|
/** Button label. Default "Load more". */
|
|
3709
3728
|
loadLabel?: string;
|
|
3710
|
-
/** Loading label. Default "Loading
|
|
3729
|
+
/** Loading label. Default "Loading…". */
|
|
3711
3730
|
loadingLabel?: string;
|
|
3712
3731
|
/** End-of-list message. Default "You're all caught up." */
|
|
3713
3732
|
endLabel?: string;
|
|
@@ -4067,8 +4086,8 @@ type MenuProps = {
|
|
|
4067
4086
|
children: React.ReactNode;
|
|
4068
4087
|
};
|
|
4069
4088
|
/**
|
|
4070
|
-
* Dropdown menu with keyboard navigation (arrows, Home/End, Escape)
|
|
4071
|
-
*
|
|
4089
|
+
* Dropdown menu with keyboard navigation (arrows, Home/End, Escape)
|
|
4090
|
+
* and proper ARIA menu semantics. Items are rendered in a
|
|
4072
4091
|
* floating panel anchored to the trigger.
|
|
4073
4092
|
*/
|
|
4074
4093
|
declare const Menu: React.ForwardRefExoticComponent<MenuProps & React.RefAttributes<HTMLDivElement>>;
|
package/dist/index.js
CHANGED
|
@@ -733,7 +733,7 @@ var buttonVariants = (0, import_class_variance_authority.cva)(
|
|
|
733
733
|
"outline-info": "border border-info/50 bg-background text-info-ink hover:border-info hover:bg-info/10",
|
|
734
734
|
secondary: "bg-secondary text-secondary-foreground hover:bg-secondary/80",
|
|
735
735
|
ghost: "hover:bg-accent hover:text-accent-foreground",
|
|
736
|
-
link: "text-primary underline-offset-4 hover:underline",
|
|
736
|
+
link: "text-primary-ink underline-offset-4 hover:underline",
|
|
737
737
|
// High-contrast fills for hero and other always-dark surfaces. These
|
|
738
738
|
// do not read the theme surface, so they stay legible in both modes.
|
|
739
739
|
// Fixed ink, not --primary: in dark mode --primary lightens and would
|
|
@@ -1070,7 +1070,7 @@ function BottomNav({
|
|
|
1070
1070
|
"aria-current": item.active ? "page" : void 0,
|
|
1071
1071
|
className: cn(
|
|
1072
1072
|
tabClass,
|
|
1073
|
-
item.active ? "text-primary" : "text-muted-foreground hover:text-foreground"
|
|
1073
|
+
item.active ? "text-primary-ink" : "text-muted-foreground hover:text-foreground"
|
|
1074
1074
|
),
|
|
1075
1075
|
children: content
|
|
1076
1076
|
}
|
|
@@ -1234,7 +1234,7 @@ function ToastRegion({
|
|
|
1234
1234
|
entry.action?.onClick();
|
|
1235
1235
|
onDismiss(entry.id);
|
|
1236
1236
|
},
|
|
1237
|
-
className: "mt-2 text-sm font-medium text-primary hover:underline",
|
|
1237
|
+
className: "mt-2 text-sm font-medium text-primary-ink hover:underline",
|
|
1238
1238
|
children: entry.action.label
|
|
1239
1239
|
}
|
|
1240
1240
|
)
|
|
@@ -1360,7 +1360,7 @@ function Toaster({ position = "bottom-right", label = "Notifications", dismissLa
|
|
|
1360
1360
|
entry.action?.onClick();
|
|
1361
1361
|
toast.dismiss(entry.id);
|
|
1362
1362
|
},
|
|
1363
|
-
className: "mt-2 text-sm font-medium text-primary hover:underline",
|
|
1363
|
+
className: "mt-2 text-sm font-medium text-primary-ink hover:underline",
|
|
1364
1364
|
children: entry.action.label
|
|
1365
1365
|
}
|
|
1366
1366
|
)
|
|
@@ -1832,7 +1832,7 @@ var SelectMenu = React17.forwardRef(function SelectMenu2({
|
|
|
1832
1832
|
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)("span", { className: "block", children: row.item.label }),
|
|
1833
1833
|
row.item.description && /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("span", { className: "mt-0.5 block text-xs text-muted-foreground", children: row.item.description })
|
|
1834
1834
|
] }),
|
|
1835
|
-
multiple && selectedValues.includes(row.item.value) && /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("span", { "aria-hidden": "true", className: "ml-auto text-primary", children: "\u2713" })
|
|
1835
|
+
multiple && selectedValues.includes(row.item.value) && /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("span", { "aria-hidden": "true", className: "ml-auto text-primary-ink", children: "\u2713" })
|
|
1836
1836
|
] })
|
|
1837
1837
|
},
|
|
1838
1838
|
row.item.value
|
|
@@ -2415,7 +2415,7 @@ var RadioGroupItem = React23.forwardRef(
|
|
|
2415
2415
|
value,
|
|
2416
2416
|
checked: group.value === value,
|
|
2417
2417
|
onCheckedChange: (checked) => checked && group.onChange(value),
|
|
2418
|
-
className,
|
|
2418
|
+
className: cn("peer", className),
|
|
2419
2419
|
...props
|
|
2420
2420
|
}
|
|
2421
2421
|
),
|
|
@@ -3702,7 +3702,7 @@ function TableOfContents({
|
|
|
3702
3702
|
onClick: () => onNavigate?.(heading.id),
|
|
3703
3703
|
className: cn(
|
|
3704
3704
|
"-ml-px block border-l py-1 pl-3 no-underline transition-colors",
|
|
3705
|
-
active ? "border-primary font-medium text-primary underline" : "border-transparent text-muted-foreground hover:border-border hover:text-foreground"
|
|
3705
|
+
active ? "border-primary font-medium text-primary-ink underline" : "border-transparent text-muted-foreground hover:border-border hover:text-foreground"
|
|
3706
3706
|
),
|
|
3707
3707
|
children: heading.text
|
|
3708
3708
|
}
|
|
@@ -3768,7 +3768,7 @@ var Prose = React42.forwardRef(function Prose2({ size = "md", className, ...prop
|
|
|
3768
3768
|
"[&_h4]:mb-2 [&_h4]:mt-6 [&_h4]:scroll-mt-24 [&_h4]:font-semibold",
|
|
3769
3769
|
// Body copy
|
|
3770
3770
|
"[&_p]:my-4 [&_p]:leading-7",
|
|
3771
|
-
"[&_a]:text-primary [&_a]:underline [&_a]:decoration-primary/40 [&_a]:underline-offset-4 hover:[&_a]:decoration-primary",
|
|
3771
|
+
"[&_a]:text-primary-ink [&_a]:underline [&_a]:decoration-primary/40 [&_a]:underline-offset-4 hover:[&_a]:decoration-primary",
|
|
3772
3772
|
"[&_strong]:font-semibold [&_strong]:text-foreground [&_em]:italic",
|
|
3773
3773
|
"[&_ul]:my-4 [&_ul]:list-disc [&_ul]:space-y-1.5 [&_ul]:pl-6",
|
|
3774
3774
|
"[&_ol]:my-4 [&_ol]:list-decimal [&_ol]:space-y-1.5 [&_ol]:pl-6",
|
|
@@ -4742,8 +4742,9 @@ function DataTable({
|
|
|
4742
4742
|
// src/components/list/List.tsx
|
|
4743
4743
|
var React48 = __toESM(require("react"));
|
|
4744
4744
|
var import_jsx_runtime48 = require("react/jsx-runtime");
|
|
4745
|
+
var ListDensityContext = React48.createContext("default");
|
|
4745
4746
|
var List = React48.forwardRef(
|
|
4746
|
-
({ divided, bordered, size = "default", className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
|
|
4747
|
+
({ divided, bordered, size = "default", className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(ListDensityContext.Provider, { value: size, children: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
|
|
4747
4748
|
"ul",
|
|
4748
4749
|
{
|
|
4749
4750
|
ref,
|
|
@@ -4751,17 +4752,17 @@ var List = React48.forwardRef(
|
|
|
4751
4752
|
"flex flex-col",
|
|
4752
4753
|
bordered && "overflow-hidden rounded-lg border border-border bg-card",
|
|
4753
4754
|
divided && "divide-y divide-border",
|
|
4754
|
-
size === "compact" ? "gap-0" : "gap-0",
|
|
4755
4755
|
className
|
|
4756
4756
|
),
|
|
4757
4757
|
...props
|
|
4758
4758
|
}
|
|
4759
|
-
)
|
|
4759
|
+
) })
|
|
4760
4760
|
);
|
|
4761
4761
|
List.displayName = "List";
|
|
4762
4762
|
var ListItem = React48.forwardRef(
|
|
4763
4763
|
({ leading, trailing, selected, onClick, description, disabled, className, children, ...props }, ref) => {
|
|
4764
|
-
const
|
|
4764
|
+
const density = React48.useContext(ListDensityContext);
|
|
4765
|
+
const padding = density === "compact" ? "px-3 py-1.5" : "px-3 py-2.5";
|
|
4765
4766
|
const rowClass = cn(
|
|
4766
4767
|
"flex w-full items-center gap-3 text-left text-sm",
|
|
4767
4768
|
selected && "bg-accent text-accent-foreground",
|
|
@@ -4852,6 +4853,11 @@ function Image2({
|
|
|
4852
4853
|
style
|
|
4853
4854
|
}) {
|
|
4854
4855
|
const [stage, setStage] = React50.useState(0);
|
|
4856
|
+
const [prevUrls, setPrevUrls] = React50.useState({ src, fallbackSrc });
|
|
4857
|
+
if (prevUrls.src !== src || prevUrls.fallbackSrc !== fallbackSrc) {
|
|
4858
|
+
setPrevUrls({ src, fallbackSrc });
|
|
4859
|
+
setStage(0);
|
|
4860
|
+
}
|
|
4855
4861
|
const onError = () => setStage((current2) => current2 === 0 && fallbackSrc ? 1 : 2);
|
|
4856
4862
|
const current = stage === 0 ? src : stage === 1 ? fallbackSrc : null;
|
|
4857
4863
|
if (!current || stage === 2) return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(import_jsx_runtime50.Fragment, { children: fallback ?? null });
|
|
@@ -5660,7 +5666,9 @@ var DatePickerPopover = React62.forwardRef(
|
|
|
5660
5666
|
align = "start",
|
|
5661
5667
|
id,
|
|
5662
5668
|
className,
|
|
5663
|
-
"aria-label": ariaLabel
|
|
5669
|
+
"aria-label": ariaLabel,
|
|
5670
|
+
"aria-describedby": ariaDescribedBy,
|
|
5671
|
+
"aria-invalid": ariaInvalid
|
|
5664
5672
|
}, ref) => {
|
|
5665
5673
|
const [open, setOpen] = React62.useState(false);
|
|
5666
5674
|
const triggerRef = React62.useRef(null);
|
|
@@ -5682,6 +5690,8 @@ var DatePickerPopover = React62.forwardRef(
|
|
|
5682
5690
|
id,
|
|
5683
5691
|
disabled,
|
|
5684
5692
|
"aria-label": ariaLabel,
|
|
5693
|
+
"aria-describedby": ariaDescribedBy,
|
|
5694
|
+
"aria-invalid": ariaInvalid,
|
|
5685
5695
|
className: cn(
|
|
5686
5696
|
buttonVariants({ variant: "outline" }),
|
|
5687
5697
|
"w-full justify-start font-normal",
|
|
@@ -5808,7 +5818,7 @@ var Stepper = React64.forwardRef(function Stepper2({
|
|
|
5808
5818
|
"rounded-full border font-medium",
|
|
5809
5819
|
markerSizeClass,
|
|
5810
5820
|
state === "complete" && "border-primary bg-primary text-primary-foreground",
|
|
5811
|
-
state === "current" && "border-primary text-primary",
|
|
5821
|
+
state === "current" && "border-primary text-primary-ink",
|
|
5812
5822
|
state === "upcoming" && "border-border text-muted-foreground"
|
|
5813
5823
|
)
|
|
5814
5824
|
),
|
|
@@ -5932,6 +5942,16 @@ var FileUpload = React65.forwardRef(function FileUpload2({
|
|
|
5932
5942
|
const current = files ?? internal;
|
|
5933
5943
|
const generatedId = React65.useId();
|
|
5934
5944
|
const inputId = id ?? generatedId;
|
|
5945
|
+
const fileIds = React65.useRef(/* @__PURE__ */ new WeakMap());
|
|
5946
|
+
const nextFileId = React65.useRef(0);
|
|
5947
|
+
const idFor = (file) => {
|
|
5948
|
+
let fileId = fileIds.current.get(file);
|
|
5949
|
+
if (!fileId) {
|
|
5950
|
+
fileId = `file-${nextFileId.current++}`;
|
|
5951
|
+
fileIds.current.set(file, fileId);
|
|
5952
|
+
}
|
|
5953
|
+
return fileId;
|
|
5954
|
+
};
|
|
5935
5955
|
const commit = (next) => {
|
|
5936
5956
|
if (files === void 0) setInternal(next);
|
|
5937
5957
|
onFilesChange?.(next);
|
|
@@ -6008,13 +6028,13 @@ var FileUpload = React65.forwardRef(function FileUpload2({
|
|
|
6008
6028
|
"button",
|
|
6009
6029
|
{
|
|
6010
6030
|
type: "button",
|
|
6011
|
-
onClick: () => commit(current.filter((entry) => entry
|
|
6031
|
+
onClick: () => commit(current.filter((entry) => entry !== file)),
|
|
6012
6032
|
"aria-label": removeLabel(file),
|
|
6013
6033
|
className: "rounded p-1 text-muted-foreground hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
6014
6034
|
children: "\u2715"
|
|
6015
6035
|
}
|
|
6016
6036
|
)
|
|
6017
|
-
] }, file
|
|
6037
|
+
] }, idFor(file))) })
|
|
6018
6038
|
] });
|
|
6019
6039
|
});
|
|
6020
6040
|
|
|
@@ -6397,7 +6417,7 @@ var Hero = React72.forwardRef(function Hero2({
|
|
|
6397
6417
|
{
|
|
6398
6418
|
className: cn(
|
|
6399
6419
|
"mb-5 inline-flex rounded-full border px-3 py-1 text-xs font-medium",
|
|
6400
|
-
overlay ? "border-background/30 bg-background/10 text-background" : "border-primary/30 bg-primary/10 text-primary",
|
|
6420
|
+
overlay ? "border-background/30 bg-background/10 text-background" : "border-primary/30 bg-primary/10 text-primary-ink",
|
|
6401
6421
|
badgeClassName
|
|
6402
6422
|
),
|
|
6403
6423
|
children: badge
|
|
@@ -6408,7 +6428,7 @@ var Hero = React72.forwardRef(function Hero2({
|
|
|
6408
6428
|
{
|
|
6409
6429
|
className: cn(
|
|
6410
6430
|
"mb-3 text-xs font-semibold uppercase tracking-widest",
|
|
6411
|
-
overlay ? "text-background/90" : "text-primary",
|
|
6431
|
+
overlay ? "text-background/90" : "text-primary-ink",
|
|
6412
6432
|
eyebrowClassName
|
|
6413
6433
|
),
|
|
6414
6434
|
children: eyebrow
|
|
@@ -6715,6 +6735,7 @@ var LogoCloud = React76.forwardRef(function LogoCloud2({
|
|
|
6715
6735
|
size = "md",
|
|
6716
6736
|
align = "center",
|
|
6717
6737
|
linkComponent,
|
|
6738
|
+
linkHrefProp = "href",
|
|
6718
6739
|
className,
|
|
6719
6740
|
...props
|
|
6720
6741
|
}, ref) {
|
|
@@ -6743,7 +6764,7 @@ var LogoCloud = React76.forwardRef(function LogoCloud2({
|
|
|
6743
6764
|
return /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("li", { className: cn("min-w-0", align === "center" ? "justify-self-center" : "justify-self-start"), children: item.href ? /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
|
|
6744
6765
|
Link3,
|
|
6745
6766
|
{
|
|
6746
|
-
href: item.href,
|
|
6767
|
+
...linkHrefProp === "to" ? { to: item.href } : { href: item.href },
|
|
6747
6768
|
className: "rounded-sm focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background",
|
|
6748
6769
|
children: content
|
|
6749
6770
|
}
|
|
@@ -6768,10 +6789,10 @@ var FeatureGrid = React77.forwardRef(function FeatureGrid2({ features, columns =
|
|
|
6768
6789
|
align === "center" && "items-center text-center"
|
|
6769
6790
|
);
|
|
6770
6791
|
const content = (feature) => /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)(import_jsx_runtime77.Fragment, { children: [
|
|
6771
|
-
feature.icon && /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("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 }),
|
|
6792
|
+
feature.icon && /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("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 }),
|
|
6772
6793
|
/* @__PURE__ */ (0, import_jsx_runtime77.jsx)("h3", { className: "text-base font-semibold tracking-tight", children: feature.title }),
|
|
6773
6794
|
feature.description && /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("p", { className: "text-sm leading-relaxed text-muted-foreground", children: feature.description }),
|
|
6774
|
-
feature.href && feature.actionLabel && /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)("span", { className: "mt-auto pt-2 text-sm font-medium text-primary", children: [
|
|
6795
|
+
feature.href && feature.actionLabel && /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)("span", { className: "mt-auto pt-2 text-sm font-medium text-primary-ink", children: [
|
|
6775
6796
|
feature.actionLabel,
|
|
6776
6797
|
" ",
|
|
6777
6798
|
/* @__PURE__ */ (0, import_jsx_runtime77.jsx)("span", { "aria-hidden": "true", children: "\u2192" })
|
|
@@ -6808,7 +6829,7 @@ var FeatureRow = React78.forwardRef(function FeatureRow2({
|
|
|
6808
6829
|
...props,
|
|
6809
6830
|
children: [
|
|
6810
6831
|
/* @__PURE__ */ (0, import_jsx_runtime78.jsxs)("div", { className: cn("min-w-0", mediaPosition === "left" && "lg:order-2"), children: [
|
|
6811
|
-
eyebrow && /* @__PURE__ */ (0, import_jsx_runtime78.jsx)("p", { className: "mb-3 text-xs font-semibold uppercase tracking-widest text-primary", children: eyebrow }),
|
|
6832
|
+
eyebrow && /* @__PURE__ */ (0, import_jsx_runtime78.jsx)("p", { className: "mb-3 text-xs font-semibold uppercase tracking-widest text-primary-ink", children: eyebrow }),
|
|
6812
6833
|
/* @__PURE__ */ (0, import_jsx_runtime78.jsx)(Heading2, { className: cn("font-semibold tracking-tight text-balance", titleSizes2[size]), children: title }),
|
|
6813
6834
|
description && /* @__PURE__ */ (0, import_jsx_runtime78.jsx)("div", { className: "mt-4 max-w-xl text-base leading-relaxed text-muted-foreground sm:text-lg", children: description }),
|
|
6814
6835
|
actions && /* @__PURE__ */ (0, import_jsx_runtime78.jsx)("div", { className: "mt-7 flex flex-wrap items-center gap-3", children: actions })
|
|
@@ -6865,15 +6886,16 @@ var columnClasses4 = {
|
|
|
6865
6886
|
3: "sm:grid-cols-2 lg:grid-cols-3",
|
|
6866
6887
|
4: "sm:grid-cols-2 lg:grid-cols-4"
|
|
6867
6888
|
};
|
|
6868
|
-
var ProcessSteps = React80.forwardRef(function ProcessSteps2({ steps, columns = 3, numbered = true, align = "left", className, ...props }, ref) {
|
|
6889
|
+
var ProcessSteps = React80.forwardRef(function ProcessSteps2({ steps, columns = 3, numbered = true, align = "left", headingLevel = 3, className, ...props }, ref) {
|
|
6890
|
+
const HeadingTag = { 2: "h2", 3: "h3", 4: "h4" }[headingLevel];
|
|
6869
6891
|
return /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("ol", { ref, className: cn("grid gap-8", columnClasses4[columns], className), ...props, children: steps.map((step, index) => /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)(
|
|
6870
6892
|
"li",
|
|
6871
6893
|
{
|
|
6872
6894
|
className: cn("flex min-w-0 flex-col gap-4", align === "center" && "items-center text-center"),
|
|
6873
6895
|
children: [
|
|
6874
|
-
/* @__PURE__ */ (0, import_jsx_runtime80.jsx)("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) }),
|
|
6896
|
+
/* @__PURE__ */ (0, import_jsx_runtime80.jsx)("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) }),
|
|
6875
6897
|
/* @__PURE__ */ (0, import_jsx_runtime80.jsxs)("div", { className: "min-w-0", children: [
|
|
6876
|
-
/* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
|
|
6898
|
+
/* @__PURE__ */ (0, import_jsx_runtime80.jsx)(HeadingTag, { className: "text-base font-semibold tracking-tight", children: step.title }),
|
|
6877
6899
|
step.description && /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("p", { className: "mt-1 text-sm leading-relaxed text-muted-foreground", children: step.description })
|
|
6878
6900
|
] })
|
|
6879
6901
|
]
|
|
@@ -6996,10 +7018,10 @@ var columnClasses5 = {
|
|
|
6996
7018
|
var ContactStrip = React83.forwardRef(function ContactStrip2({ items, columns = 2, align = "left", linkComponent, className, ...props }, ref) {
|
|
6997
7019
|
const Link3 = linkComponent ?? "a";
|
|
6998
7020
|
return /* @__PURE__ */ (0, import_jsx_runtime83.jsx)("ul", { ref, className: cn("grid gap-6", columnClasses5[columns], className), ...props, children: items.map((item) => /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)("li", { className: cn("flex min-w-0 items-start gap-3", align === "center" && "justify-center text-center"), children: [
|
|
6999
|
-
item.icon && /* @__PURE__ */ (0, import_jsx_runtime83.jsx)("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 }),
|
|
7021
|
+
item.icon && /* @__PURE__ */ (0, import_jsx_runtime83.jsx)("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 }),
|
|
7000
7022
|
/* @__PURE__ */ (0, import_jsx_runtime83.jsxs)("div", { className: "min-w-0", children: [
|
|
7001
7023
|
/* @__PURE__ */ (0, import_jsx_runtime83.jsx)("p", { className: "text-xs font-semibold uppercase tracking-wider text-muted-foreground", children: item.label }),
|
|
7002
|
-
item.href ? /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(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__ */ (0, import_jsx_runtime83.jsx)("p", { className: "mt-0.5 break-words text-sm font-medium", children: item.value })
|
|
7024
|
+
item.href ? /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(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__ */ (0, import_jsx_runtime83.jsx)("p", { className: "mt-0.5 break-words text-sm font-medium", children: item.value })
|
|
7003
7025
|
] })
|
|
7004
7026
|
] }, item.label)) });
|
|
7005
7027
|
});
|
|
@@ -7104,10 +7126,10 @@ var DealCard = React85.forwardRef(function DealCard2({
|
|
|
7104
7126
|
return /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)(Card, { ref, className: cn("flex h-full flex-col overflow-hidden", className), ...props, children: [
|
|
7105
7127
|
/* @__PURE__ */ (0, import_jsx_runtime85.jsxs)(CardHeader, { className: "gap-2 p-5 pb-3", children: [
|
|
7106
7128
|
/* @__PURE__ */ (0, import_jsx_runtime85.jsxs)("div", { className: "flex items-start justify-between gap-2", children: [
|
|
7107
|
-
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)("p", { className: "text-xs font-semibold uppercase tracking-widest text-primary", children: sector }),
|
|
7129
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)("p", { className: "text-xs font-semibold uppercase tracking-widest text-primary-ink", children: sector }),
|
|
7108
7130
|
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)(Badge, { variant: statusInfo.variant, children: statusInfo.label })
|
|
7109
7131
|
] }),
|
|
7110
|
-
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)("h3", { className: "text-lg font-semibold leading-snug tracking-tight", children: href ? /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(Link3, { href, className: "rounded-sm hover:text-primary focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring", children: title }) : title }),
|
|
7132
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)("h3", { className: "text-lg font-semibold leading-snug tracking-tight", children: href ? /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(Link3, { href, className: "rounded-sm hover:text-primary-ink focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring", children: title }) : title }),
|
|
7111
7133
|
location && /* @__PURE__ */ (0, import_jsx_runtime85.jsx)("p", { className: "text-xs text-muted-foreground", children: location })
|
|
7112
7134
|
] }),
|
|
7113
7135
|
/* @__PURE__ */ (0, import_jsx_runtime85.jsxs)(CardContent, { className: "flex-1 px-5 pb-3", children: [
|
|
@@ -7164,7 +7186,7 @@ var EntityCard = React86.forwardRef(function EntityCard2({
|
|
|
7164
7186
|
/* @__PURE__ */ (0, import_jsx_runtime86.jsxs)(CardHeader, { className: "flex-row items-start gap-3 p-5 pb-3", children: [
|
|
7165
7187
|
/* @__PURE__ */ (0, import_jsx_runtime86.jsx)("div", { className: "shrink-0", children: logo ?? /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(Avatar, { children: /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(AvatarFallback, { children: initials(name) }) }) }),
|
|
7166
7188
|
/* @__PURE__ */ (0, import_jsx_runtime86.jsxs)("div", { className: "min-w-0 flex-1", children: [
|
|
7167
|
-
/* @__PURE__ */ (0, import_jsx_runtime86.jsx)("h3", { className: "truncate text-base font-semibold tracking-tight", children: href ? /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(Link3, { href, className: "rounded-sm hover:text-primary focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring", children: name }) : name }),
|
|
7189
|
+
/* @__PURE__ */ (0, import_jsx_runtime86.jsx)("h3", { className: "truncate text-base font-semibold tracking-tight", children: href ? /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(Link3, { href, className: "rounded-sm hover:text-primary-ink focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring", children: name }) : name }),
|
|
7168
7190
|
/* @__PURE__ */ (0, import_jsx_runtime86.jsx)("p", { className: "mt-0.5 truncate text-xs text-muted-foreground", children: entityType }),
|
|
7169
7191
|
location && /* @__PURE__ */ (0, import_jsx_runtime86.jsx)("p", { className: "mt-0.5 truncate text-xs text-muted-foreground", children: location })
|
|
7170
7192
|
] })
|
|
@@ -7182,7 +7204,7 @@ var EntityCard = React86.forwardRef(function EntityCard2({
|
|
|
7182
7204
|
Link3,
|
|
7183
7205
|
{
|
|
7184
7206
|
href,
|
|
7185
|
-
className: "text-sm font-medium text-primary underline-offset-4 hover:underline focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
7207
|
+
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",
|
|
7186
7208
|
children: "View profile"
|
|
7187
7209
|
}
|
|
7188
7210
|
),
|
|
@@ -7230,7 +7252,7 @@ var TombstoneCard = React87.forwardRef(function TombstoneCard2({
|
|
|
7230
7252
|
Link3,
|
|
7231
7253
|
{
|
|
7232
7254
|
href,
|
|
7233
|
-
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",
|
|
7255
|
+
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",
|
|
7234
7256
|
children: actionLabel
|
|
7235
7257
|
}
|
|
7236
7258
|
)
|
|
@@ -7262,7 +7284,7 @@ var DocumentCard = React88.forwardRef(function DocumentCard2({
|
|
|
7262
7284
|
const statusInfo = statusConfig3[status];
|
|
7263
7285
|
const meta = [fileType, size, updatedAt].filter(Boolean).join(" \xB7 ");
|
|
7264
7286
|
return /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(Card, { ref, className: cn("w-full", className), ...props, children: /* @__PURE__ */ (0, import_jsx_runtime88.jsxs)(CardContent, { className: "flex items-center gap-3 p-4", children: [
|
|
7265
|
-
/* @__PURE__ */ (0, import_jsx_runtime88.jsx)("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__ */ (0, import_jsx_runtime88.jsx)("span", { className: "text-[10px] font-bold uppercase tracking-wide", children: fileType }) }),
|
|
7287
|
+
/* @__PURE__ */ (0, import_jsx_runtime88.jsx)("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__ */ (0, import_jsx_runtime88.jsx)("span", { className: "text-[10px] font-bold uppercase tracking-wide", children: fileType }) }),
|
|
7266
7288
|
/* @__PURE__ */ (0, import_jsx_runtime88.jsxs)("div", { className: "min-w-0 flex-1", children: [
|
|
7267
7289
|
/* @__PURE__ */ (0, import_jsx_runtime88.jsx)("p", { className: "truncate text-sm font-medium", children: name }),
|
|
7268
7290
|
meta && /* @__PURE__ */ (0, import_jsx_runtime88.jsx)("p", { className: "mt-0.5 truncate text-xs text-muted-foreground", children: meta })
|
|
@@ -7291,7 +7313,7 @@ var LoadMore = React89.forwardRef(function LoadMore2({
|
|
|
7291
7313
|
onLoadMore,
|
|
7292
7314
|
loading = false,
|
|
7293
7315
|
loadLabel = "Load more",
|
|
7294
|
-
loadingLabel = "Loading
|
|
7316
|
+
loadingLabel = "Loading\u2026",
|
|
7295
7317
|
endLabel = "You're all caught up.",
|
|
7296
7318
|
className,
|
|
7297
7319
|
...props
|
|
@@ -7602,7 +7624,7 @@ var FilterChips = React92.forwardRef(function FilterChips2({
|
|
|
7602
7624
|
type: "button",
|
|
7603
7625
|
onClick: onClearAll,
|
|
7604
7626
|
className: cn(
|
|
7605
|
-
"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",
|
|
7627
|
+
"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",
|
|
7606
7628
|
scale.clear
|
|
7607
7629
|
),
|
|
7608
7630
|
children: clearLabel
|
|
@@ -7771,14 +7793,17 @@ var FilterPanel = React94.forwardRef(function FilterPanel2({
|
|
|
7771
7793
|
...props
|
|
7772
7794
|
}, ref) {
|
|
7773
7795
|
const Tag = as;
|
|
7774
|
-
const [open, setOpen] = React94.useState(
|
|
7775
|
-
|
|
7776
|
-
|
|
7777
|
-
|
|
7778
|
-
|
|
7796
|
+
const [open, setOpen] = React94.useState(() => {
|
|
7797
|
+
if (defaultOpen) {
|
|
7798
|
+
return sections.flatMap((section, index) => defaultOpen.includes(section.title) ? [index] : []);
|
|
7799
|
+
}
|
|
7800
|
+
return sections.flatMap((section, index) => section.defaultOpen ? [index] : []);
|
|
7801
|
+
});
|
|
7802
|
+
const isOpen = (index) => !collapsible || open.includes(index);
|
|
7803
|
+
const toggle = (index) => {
|
|
7779
7804
|
if (!collapsible) return;
|
|
7780
7805
|
setOpen(
|
|
7781
|
-
(current) => current.includes(
|
|
7806
|
+
(current) => current.includes(index) ? current.filter((entry) => entry !== index) : [...current, index]
|
|
7782
7807
|
);
|
|
7783
7808
|
};
|
|
7784
7809
|
return /* @__PURE__ */ (0, import_jsx_runtime94.jsxs)(Tag, { ref, className: cn("w-full rounded-xl border border-border bg-card", className), ...props, children: [
|
|
@@ -7786,16 +7811,17 @@ var FilterPanel = React94.forwardRef(function FilterPanel2({
|
|
|
7786
7811
|
title && /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("h2", { className: "text-sm font-semibold", children: title }),
|
|
7787
7812
|
description && /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("p", { className: "mt-1 text-xs text-muted-foreground", children: description })
|
|
7788
7813
|
] }),
|
|
7789
|
-
/* @__PURE__ */ (0, import_jsx_runtime94.jsx)("div", { className: "divide-y divide-border", children: sections.map((section) => {
|
|
7790
|
-
const expanded = isOpen(
|
|
7814
|
+
/* @__PURE__ */ (0, import_jsx_runtime94.jsx)("div", { className: "divide-y divide-border", children: sections.map((section, index) => {
|
|
7815
|
+
const expanded = isOpen(index);
|
|
7816
|
+
const sectionId = `filter-section-${index}`;
|
|
7791
7817
|
return /* @__PURE__ */ (0, import_jsx_runtime94.jsxs)("div", { className: "px-4 py-3", children: [
|
|
7792
7818
|
/* @__PURE__ */ (0, import_jsx_runtime94.jsx)("h3", { children: /* @__PURE__ */ (0, import_jsx_runtime94.jsxs)(
|
|
7793
7819
|
"button",
|
|
7794
7820
|
{
|
|
7795
7821
|
type: "button",
|
|
7796
|
-
onClick: () => toggle(
|
|
7822
|
+
onClick: () => toggle(index),
|
|
7797
7823
|
"aria-expanded": expanded,
|
|
7798
|
-
"aria-controls":
|
|
7824
|
+
"aria-controls": sectionId,
|
|
7799
7825
|
disabled: !collapsible,
|
|
7800
7826
|
className: cn(
|
|
7801
7827
|
"flex w-full items-center justify-between gap-2 text-left text-sm font-medium",
|
|
@@ -7810,8 +7836,8 @@ var FilterPanel = React94.forwardRef(function FilterPanel2({
|
|
|
7810
7836
|
]
|
|
7811
7837
|
}
|
|
7812
7838
|
) }),
|
|
7813
|
-
expanded && /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("div", { id:
|
|
7814
|
-
] },
|
|
7839
|
+
expanded && /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("div", { id: sectionId, className: "mt-3", children: section.content })
|
|
7840
|
+
] }, index);
|
|
7815
7841
|
}) }),
|
|
7816
7842
|
(onReset || onApply || actions) && /* @__PURE__ */ (0, import_jsx_runtime94.jsxs)("div", { className: "flex flex-wrap items-center gap-2 border-t border-border px-4 py-3", children: [
|
|
7817
7843
|
actions,
|
|
@@ -8092,6 +8118,18 @@ var MenuContent = React97.forwardRef(
|
|
|
8092
8118
|
event.preventDefault();
|
|
8093
8119
|
setActiveIndex(items.length - 1);
|
|
8094
8120
|
items[items.length - 1]?.focus();
|
|
8121
|
+
} else if (event.key.length === 1 && !event.ctrlKey && !event.metaKey && !event.altKey) {
|
|
8122
|
+
const char = event.key.toLowerCase();
|
|
8123
|
+
for (let i = 1; i <= items.length; i++) {
|
|
8124
|
+
const next = (activeIndex + i + items.length) % items.length;
|
|
8125
|
+
const label = items[next]?.textContent?.trim().toLowerCase() ?? "";
|
|
8126
|
+
if (label.startsWith(char)) {
|
|
8127
|
+
event.preventDefault();
|
|
8128
|
+
setActiveIndex(next);
|
|
8129
|
+
items[next]?.focus();
|
|
8130
|
+
break;
|
|
8131
|
+
}
|
|
8132
|
+
}
|
|
8095
8133
|
}
|
|
8096
8134
|
};
|
|
8097
8135
|
if (!open || !pos || typeof document === "undefined") return null;
|