@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
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"tier": "organism",
|
|
5
5
|
"package": "@slipstream-ui/core",
|
|
6
6
|
"importPath": "@slipstream-ui/core",
|
|
7
|
-
"version": "0.
|
|
7
|
+
"version": "0.11.0",
|
|
8
8
|
"sourceDir": "newsletter",
|
|
9
9
|
"exportName": "Newsletter",
|
|
10
10
|
"description": "Email capture block with inline or stacked layout, pending state, success and failure feedback.",
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"tier": "organism",
|
|
5
5
|
"package": "@slipstream-ui/core",
|
|
6
6
|
"importPath": "@slipstream-ui/core",
|
|
7
|
-
"version": "0.
|
|
7
|
+
"version": "0.11.0",
|
|
8
8
|
"sourceDir": "process-steps",
|
|
9
9
|
"exportName": "ProcessSteps",
|
|
10
10
|
"description": "Ordered process cards with derived step numbers or custom icons.",
|
|
@@ -40,6 +40,13 @@
|
|
|
40
40
|
"center"
|
|
41
41
|
],
|
|
42
42
|
"description": "Content alignment."
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"name": "headingLevel",
|
|
46
|
+
"type": "2 | 3 | 4",
|
|
47
|
+
"required": false,
|
|
48
|
+
"defaultValue": "3",
|
|
49
|
+
"description": "Heading level for step titles (h2-h4); pick the level that continues the page outline without skipping a rank."
|
|
43
50
|
}
|
|
44
51
|
],
|
|
45
52
|
"examples": [
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"tier": "molecule",
|
|
5
5
|
"package": "@slipstream-ui/core",
|
|
6
6
|
"importPath": "@slipstream-ui/core",
|
|
7
|
-
"version": "0.
|
|
7
|
+
"version": "0.11.0",
|
|
8
8
|
"sourceDir": "prose",
|
|
9
9
|
"exportName": "Prose",
|
|
10
10
|
"description": "Self-contained long-form typography for rendered markdown/MDX: headings, links, lists, code, tables, quotes and figures.",
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"tier": "molecule",
|
|
5
5
|
"package": "@slipstream-ui/core",
|
|
6
6
|
"importPath": "@slipstream-ui/core",
|
|
7
|
-
"version": "0.
|
|
7
|
+
"version": "0.11.0",
|
|
8
8
|
"sourceDir": "range-slider",
|
|
9
9
|
"exportName": "RangeSlider",
|
|
10
10
|
"description": "Dual-thumb numeric range slider with labeled native inputs and formatted values.",
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"tier": "molecule",
|
|
5
5
|
"package": "@slipstream-ui/core",
|
|
6
6
|
"importPath": "@slipstream-ui/core",
|
|
7
|
-
"version": "0.
|
|
7
|
+
"version": "0.11.0",
|
|
8
8
|
"sourceDir": "section-heading",
|
|
9
9
|
"exportName": "SectionHeading",
|
|
10
10
|
"description": "Section heading block: eyebrow, title (level 2-4), description and actions, with left/center alignment and three sizes.",
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"tier": "organism",
|
|
5
5
|
"package": "@slipstream-ui/core",
|
|
6
6
|
"importPath": "@slipstream-ui/core",
|
|
7
|
-
"version": "0.
|
|
7
|
+
"version": "0.11.0",
|
|
8
8
|
"sourceDir": "section",
|
|
9
9
|
"exportName": "Section",
|
|
10
10
|
"description": "Full-width page section with a surface tone, vertical rhythm and an optional centered container.",
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"tier": "molecule",
|
|
5
5
|
"package": "@slipstream-ui/core",
|
|
6
6
|
"importPath": "@slipstream-ui/core",
|
|
7
|
-
"version": "0.
|
|
7
|
+
"version": "0.11.0",
|
|
8
8
|
"sourceDir": "segmented-control",
|
|
9
9
|
"exportName": "SegmentedControl",
|
|
10
10
|
"description": "Single- or multi-select segmented control for view and filter switches.",
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"tier": "molecule",
|
|
5
5
|
"package": "@slipstream-ui/core",
|
|
6
6
|
"importPath": "@slipstream-ui/core",
|
|
7
|
-
"version": "0.
|
|
7
|
+
"version": "0.11.0",
|
|
8
8
|
"sourceDir": "select-menu",
|
|
9
9
|
"exportName": "SelectMenu",
|
|
10
10
|
"description": "Custom listbox select for rich options: descriptions, icons, groups, multi-select, custom rows and hidden inputs for forms.",
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"tier": "organism",
|
|
5
5
|
"package": "@slipstream-ui/core",
|
|
6
6
|
"importPath": "@slipstream-ui/core",
|
|
7
|
-
"version": "0.
|
|
7
|
+
"version": "0.11.0",
|
|
8
8
|
"sourceDir": "site-footer",
|
|
9
9
|
"exportName": "SiteFooter",
|
|
10
10
|
"description": "Marketing footer: brand + tagline column, link columns and a legal bar; router-agnostic via linkComponent.",
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"tier": "organism",
|
|
5
5
|
"package": "@slipstream-ui/core",
|
|
6
6
|
"importPath": "@slipstream-ui/core",
|
|
7
|
-
"version": "0.
|
|
7
|
+
"version": "0.11.0",
|
|
8
8
|
"sourceDir": "site-header",
|
|
9
9
|
"exportName": "SiteHeader",
|
|
10
10
|
"description": "Marketing/site header: sticky bar with brand, horizontal navigation with prefix-aware active states, right-aligned actions and a mobile drawer.",
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"tier": "molecule",
|
|
5
5
|
"package": "@slipstream-ui/core",
|
|
6
6
|
"importPath": "@slipstream-ui/core",
|
|
7
|
-
"version": "0.
|
|
7
|
+
"version": "0.11.0",
|
|
8
8
|
"sourceDir": "stat-band",
|
|
9
9
|
"exportName": "StatBand",
|
|
10
10
|
"description": "Semantic description list of headline stats with labels, optional hints and column presets.",
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"tier": "molecule",
|
|
5
5
|
"package": "@slipstream-ui/core",
|
|
6
6
|
"importPath": "@slipstream-ui/core",
|
|
7
|
-
"version": "0.
|
|
7
|
+
"version": "0.11.0",
|
|
8
8
|
"sourceDir": "table-card",
|
|
9
9
|
"exportName": "TableCard",
|
|
10
10
|
"description": "Table shell with title/description, header actions, optional toolbar, edge-to-edge body and a footer row.",
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"tier": "molecule",
|
|
5
5
|
"package": "@slipstream-ui/core",
|
|
6
6
|
"importPath": "@slipstream-ui/core",
|
|
7
|
-
"version": "0.
|
|
7
|
+
"version": "0.11.0",
|
|
8
8
|
"sourceDir": "table-of-contents",
|
|
9
9
|
"exportName": "TableOfContents",
|
|
10
10
|
"description": "Sticky 'On this page' navigation with real anchor links, nested levels and aria-current, plus a useScrollSpy hook for the active heading.",
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"tier": "molecule",
|
|
5
5
|
"package": "@slipstream-ui/core",
|
|
6
6
|
"importPath": "@slipstream-ui/core",
|
|
7
|
-
"version": "0.
|
|
7
|
+
"version": "0.11.0",
|
|
8
8
|
"sourceDir": "testimonial",
|
|
9
9
|
"exportName": "Testimonial",
|
|
10
10
|
"description": "Semantic written testimonial with quote, person, role, company, avatar and logo slots.",
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"tier": "molecule",
|
|
5
5
|
"package": "@slipstream-ui/core",
|
|
6
6
|
"importPath": "@slipstream-ui/core",
|
|
7
|
-
"version": "0.
|
|
7
|
+
"version": "0.11.0",
|
|
8
8
|
"sourceDir": "tombstone-card",
|
|
9
9
|
"exportName": "TombstoneCard",
|
|
10
10
|
"description": "Placeholder card for archived, closed or unavailable marketplace items.",
|
|
@@ -72,7 +72,7 @@ function BottomNav({
|
|
|
72
72
|
"aria-current": item.active ? "page" : void 0,
|
|
73
73
|
className: (0, import_cn.cn)(
|
|
74
74
|
tabClass,
|
|
75
|
-
item.active ? "text-primary" : "text-muted-foreground hover:text-foreground"
|
|
75
|
+
item.active ? "text-primary-ink" : "text-muted-foreground hover:text-foreground"
|
|
76
76
|
),
|
|
77
77
|
children: content
|
|
78
78
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../src/components/bottom-nav/BottomNav.tsx"],"sourcesContent":["import * as React from 'react';\nimport { cn } from '../../utils/cn';\n\nexport type BottomNavItem = {\n /** Destination URL for the tab. */\n href: string;\n /** Visible tab label. */\n label: string;\n /** Icon shown above the label; always rendered aria-hidden. */\n icon?: React.ReactNode;\n /** Marks the current tab and sets aria-current=\"page\". */\n active?: boolean;\n /** Small count or dot shown in the tab's top corner. */\n badge?: React.ReactNode;\n /** Renders the tab as non-interactive. */\n disabled?: boolean;\n};\n\nexport type BottomNavProps = React.HTMLAttributes<HTMLElement> & {\n /** Tabs in order. Keep to 3-5 so every target stays thumb-reachable. */\n items: BottomNavItem[];\n /** Router link component (Next Link, react-router Link). */\n linkComponent?: React.ElementType;\n /** Prop used to pass the destination to `linkComponent`. */\n linkHrefProp?: 'href' | 'to';\n /** Landmark label. Default \"Primary\". */\n label?: string;\n /** Pin the bar to the bottom edge with safe-area padding (default true). */\n fixed?: boolean;\n /** Hide the bar from the md breakpoint up (default true). */\n mobileOnly?: boolean;\n};\n\nconst tabClass =\n 'relative flex min-h-14 w-full flex-col items-center justify-center gap-0.5 px-2 py-2 text-[11px] font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-inset';\n\n/**\n * Mobile bottom tab bar for the 3-5 primary destinations of an app shell.\n * A nav landmark with aria-current=\"page\" on the active tab, 44px minimum\n * targets, an optional count badge and safe-area padding so the bar clears\n * the iOS home indicator.\n */\nexport function BottomNav({\n items,\n linkComponent,\n linkHrefProp = 'href',\n label = 'Primary',\n fixed = true,\n mobileOnly = true,\n className,\n ...props\n}: BottomNavProps) {\n const LinkEl = linkComponent ?? 'a';\n const destination = (href: string) => (linkHrefProp === 'to' ? { to: href } : { href });\n\n return (\n <nav\n aria-label={label}\n className={cn(\n 'w-full border-t border-border bg-background pb-[env(safe-area-inset-bottom)]',\n fixed && 'fixed inset-x-0 bottom-0 z-40',\n mobileOnly && 'md:hidden',\n className\n )}\n {...props}\n >\n <ul\n className=\"mx-auto grid w-full max-w-lg\"\n style={{ gridTemplateColumns: `repeat(${Math.max(items.length, 1)}, minmax(0, 1fr))` }}\n >\n {items.map((item) => {\n const content = (\n <>\n {item.icon && (\n <span aria-hidden=\"true\" className=\"[&_svg]:size-5\">\n {item.icon}\n </span>\n )}\n <span>{item.label}</span>\n {item.badge != null && (\n <span className=\"absolute right-1/4 top-1 rounded-full bg-primary px-1.5 text-[10px] font-semibold leading-4 text-primary-foreground\">\n {item.badge}\n </span>\n )}\n </>\n );\n\n return (\n <li key={item.href}>\n {item.disabled ? (\n <span\n aria-disabled=\"true\"\n className={cn(tabClass, 'text-muted-foreground opacity-50')}\n >\n {content}\n </span>\n ) : (\n <LinkEl\n {...destination(item.href)}\n aria-current={item.active ? 'page' : undefined}\n className={cn(\n tabClass,\n item.active\n ? 'text-primary'\n : 'text-muted-foreground hover:text-foreground'\n )}\n >\n {content}\n </LinkEl>\n )}\n </li>\n );\n })}\n </ul>\n </nav>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAwEY;AAvEZ,gBAAmB;AAgCnB,MAAM,WACJ;AAQK,SAAS,UAAU;AAAA,EACxB;AAAA,EACA;AAAA,EACA,eAAe;AAAA,EACf,QAAQ;AAAA,EACR,QAAQ;AAAA,EACR,aAAa;AAAA,EACb;AAAA,EACA,GAAG;AACL,GAAmB;AACjB,QAAM,SAAS,iBAAiB;AAChC,QAAM,cAAc,CAAC,SAAkB,iBAAiB,OAAO,EAAE,IAAI,KAAK,IAAI,EAAE,KAAK;AAErF,SACE;AAAA,IAAC;AAAA;AAAA,MACC,cAAY;AAAA,MACZ,eAAW;AAAA,QACT;AAAA,QACA,SAAS;AAAA,QACT,cAAc;AAAA,QACd;AAAA,MACF;AAAA,MACC,GAAG;AAAA,MAEJ;AAAA,QAAC;AAAA;AAAA,UACC,WAAU;AAAA,UACV,OAAO,EAAE,qBAAqB,UAAU,KAAK,IAAI,MAAM,QAAQ,CAAC,CAAC,oBAAoB;AAAA,UAEpF,gBAAM,IAAI,CAAC,SAAS;AACnB,kBAAM,UACJ,4EACG;AAAA,mBAAK,QACJ,4CAAC,UAAK,eAAY,QAAO,WAAU,kBAChC,eAAK,MACR;AAAA,cAEF,4CAAC,UAAM,eAAK,OAAM;AAAA,cACjB,KAAK,SAAS,QACb,4CAAC,UAAK,WAAU,uHACb,eAAK,OACR;AAAA,eAEJ;AAGF,mBACE,4CAAC,QACE,eAAK,WACJ;AAAA,cAAC;AAAA;AAAA,gBACC,iBAAc;AAAA,gBACd,eAAW,cAAG,UAAU,kCAAkC;AAAA,gBAEzD;AAAA;AAAA,YACH,IAEA;AAAA,cAAC;AAAA;AAAA,gBACE,GAAG,YAAY,KAAK,IAAI;AAAA,gBACzB,gBAAc,KAAK,SAAS,SAAS;AAAA,gBACrC,eAAW;AAAA,kBACT;AAAA,kBACA,KAAK,SACD,
|
|
1
|
+
{"version":3,"sources":["../../../../src/components/bottom-nav/BottomNav.tsx"],"sourcesContent":["import * as React from 'react';\nimport { cn } from '../../utils/cn';\n\nexport type BottomNavItem = {\n /** Destination URL for the tab. */\n href: string;\n /** Visible tab label. */\n label: string;\n /** Icon shown above the label; always rendered aria-hidden. */\n icon?: React.ReactNode;\n /** Marks the current tab and sets aria-current=\"page\". */\n active?: boolean;\n /** Small count or dot shown in the tab's top corner. */\n badge?: React.ReactNode;\n /** Renders the tab as non-interactive. */\n disabled?: boolean;\n};\n\nexport type BottomNavProps = React.HTMLAttributes<HTMLElement> & {\n /** Tabs in order. Keep to 3-5 so every target stays thumb-reachable. */\n items: BottomNavItem[];\n /** Router link component (Next Link, react-router Link). */\n linkComponent?: React.ElementType;\n /** Prop used to pass the destination to `linkComponent`. */\n linkHrefProp?: 'href' | 'to';\n /** Landmark label. Default \"Primary\". */\n label?: string;\n /** Pin the bar to the bottom edge with safe-area padding (default true). */\n fixed?: boolean;\n /** Hide the bar from the md breakpoint up (default true). */\n mobileOnly?: boolean;\n};\n\nconst tabClass =\n 'relative flex min-h-14 w-full flex-col items-center justify-center gap-0.5 px-2 py-2 text-[11px] font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-inset';\n\n/**\n * Mobile bottom tab bar for the 3-5 primary destinations of an app shell.\n * A nav landmark with aria-current=\"page\" on the active tab, 44px minimum\n * targets, an optional count badge and safe-area padding so the bar clears\n * the iOS home indicator.\n */\nexport function BottomNav({\n items,\n linkComponent,\n linkHrefProp = 'href',\n label = 'Primary',\n fixed = true,\n mobileOnly = true,\n className,\n ...props\n}: BottomNavProps) {\n const LinkEl = linkComponent ?? 'a';\n const destination = (href: string) => (linkHrefProp === 'to' ? { to: href } : { href });\n\n return (\n <nav\n aria-label={label}\n className={cn(\n 'w-full border-t border-border bg-background pb-[env(safe-area-inset-bottom)]',\n fixed && 'fixed inset-x-0 bottom-0 z-40',\n mobileOnly && 'md:hidden',\n className\n )}\n {...props}\n >\n <ul\n className=\"mx-auto grid w-full max-w-lg\"\n style={{ gridTemplateColumns: `repeat(${Math.max(items.length, 1)}, minmax(0, 1fr))` }}\n >\n {items.map((item) => {\n const content = (\n <>\n {item.icon && (\n <span aria-hidden=\"true\" className=\"[&_svg]:size-5\">\n {item.icon}\n </span>\n )}\n <span>{item.label}</span>\n {item.badge != null && (\n <span className=\"absolute right-1/4 top-1 rounded-full bg-primary px-1.5 text-[10px] font-semibold leading-4 text-primary-foreground\">\n {item.badge}\n </span>\n )}\n </>\n );\n\n return (\n <li key={item.href}>\n {item.disabled ? (\n <span\n aria-disabled=\"true\"\n className={cn(tabClass, 'text-muted-foreground opacity-50')}\n >\n {content}\n </span>\n ) : (\n <LinkEl\n {...destination(item.href)}\n aria-current={item.active ? 'page' : undefined}\n className={cn(\n tabClass,\n item.active\n ? 'text-primary-ink'\n : 'text-muted-foreground hover:text-foreground'\n )}\n >\n {content}\n </LinkEl>\n )}\n </li>\n );\n })}\n </ul>\n </nav>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAwEY;AAvEZ,gBAAmB;AAgCnB,MAAM,WACJ;AAQK,SAAS,UAAU;AAAA,EACxB;AAAA,EACA;AAAA,EACA,eAAe;AAAA,EACf,QAAQ;AAAA,EACR,QAAQ;AAAA,EACR,aAAa;AAAA,EACb;AAAA,EACA,GAAG;AACL,GAAmB;AACjB,QAAM,SAAS,iBAAiB;AAChC,QAAM,cAAc,CAAC,SAAkB,iBAAiB,OAAO,EAAE,IAAI,KAAK,IAAI,EAAE,KAAK;AAErF,SACE;AAAA,IAAC;AAAA;AAAA,MACC,cAAY;AAAA,MACZ,eAAW;AAAA,QACT;AAAA,QACA,SAAS;AAAA,QACT,cAAc;AAAA,QACd;AAAA,MACF;AAAA,MACC,GAAG;AAAA,MAEJ;AAAA,QAAC;AAAA;AAAA,UACC,WAAU;AAAA,UACV,OAAO,EAAE,qBAAqB,UAAU,KAAK,IAAI,MAAM,QAAQ,CAAC,CAAC,oBAAoB;AAAA,UAEpF,gBAAM,IAAI,CAAC,SAAS;AACnB,kBAAM,UACJ,4EACG;AAAA,mBAAK,QACJ,4CAAC,UAAK,eAAY,QAAO,WAAU,kBAChC,eAAK,MACR;AAAA,cAEF,4CAAC,UAAM,eAAK,OAAM;AAAA,cACjB,KAAK,SAAS,QACb,4CAAC,UAAK,WAAU,uHACb,eAAK,OACR;AAAA,eAEJ;AAGF,mBACE,4CAAC,QACE,eAAK,WACJ;AAAA,cAAC;AAAA;AAAA,gBACC,iBAAc;AAAA,gBACd,eAAW,cAAG,UAAU,kCAAkC;AAAA,gBAEzD;AAAA;AAAA,YACH,IAEA;AAAA,cAAC;AAAA;AAAA,gBACE,GAAG,YAAY,KAAK,IAAI;AAAA,gBACzB,gBAAc,KAAK,SAAS,SAAS;AAAA,gBACrC,eAAW;AAAA,kBACT;AAAA,kBACA,KAAK,SACD,qBACA;AAAA,gBACN;AAAA,gBAEC;AAAA;AAAA,YACH,KApBK,KAAK,IAsBd;AAAA,UAEJ,CAAC;AAAA;AAAA,MACH;AAAA;AAAA,EACF;AAEJ;","names":[]}
|
|
@@ -49,7 +49,7 @@ function BottomNav({
|
|
|
49
49
|
"aria-current": item.active ? "page" : void 0,
|
|
50
50
|
className: cn(
|
|
51
51
|
tabClass,
|
|
52
|
-
item.active ? "text-primary" : "text-muted-foreground hover:text-foreground"
|
|
52
|
+
item.active ? "text-primary-ink" : "text-muted-foreground hover:text-foreground"
|
|
53
53
|
),
|
|
54
54
|
children: content
|
|
55
55
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../src/components/bottom-nav/BottomNav.tsx"],"sourcesContent":["import * as React from 'react';\nimport { cn } from '../../utils/cn';\n\nexport type BottomNavItem = {\n /** Destination URL for the tab. */\n href: string;\n /** Visible tab label. */\n label: string;\n /** Icon shown above the label; always rendered aria-hidden. */\n icon?: React.ReactNode;\n /** Marks the current tab and sets aria-current=\"page\". */\n active?: boolean;\n /** Small count or dot shown in the tab's top corner. */\n badge?: React.ReactNode;\n /** Renders the tab as non-interactive. */\n disabled?: boolean;\n};\n\nexport type BottomNavProps = React.HTMLAttributes<HTMLElement> & {\n /** Tabs in order. Keep to 3-5 so every target stays thumb-reachable. */\n items: BottomNavItem[];\n /** Router link component (Next Link, react-router Link). */\n linkComponent?: React.ElementType;\n /** Prop used to pass the destination to `linkComponent`. */\n linkHrefProp?: 'href' | 'to';\n /** Landmark label. Default \"Primary\". */\n label?: string;\n /** Pin the bar to the bottom edge with safe-area padding (default true). */\n fixed?: boolean;\n /** Hide the bar from the md breakpoint up (default true). */\n mobileOnly?: boolean;\n};\n\nconst tabClass =\n 'relative flex min-h-14 w-full flex-col items-center justify-center gap-0.5 px-2 py-2 text-[11px] font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-inset';\n\n/**\n * Mobile bottom tab bar for the 3-5 primary destinations of an app shell.\n * A nav landmark with aria-current=\"page\" on the active tab, 44px minimum\n * targets, an optional count badge and safe-area padding so the bar clears\n * the iOS home indicator.\n */\nexport function BottomNav({\n items,\n linkComponent,\n linkHrefProp = 'href',\n label = 'Primary',\n fixed = true,\n mobileOnly = true,\n className,\n ...props\n}: BottomNavProps) {\n const LinkEl = linkComponent ?? 'a';\n const destination = (href: string) => (linkHrefProp === 'to' ? { to: href } : { href });\n\n return (\n <nav\n aria-label={label}\n className={cn(\n 'w-full border-t border-border bg-background pb-[env(safe-area-inset-bottom)]',\n fixed && 'fixed inset-x-0 bottom-0 z-40',\n mobileOnly && 'md:hidden',\n className\n )}\n {...props}\n >\n <ul\n className=\"mx-auto grid w-full max-w-lg\"\n style={{ gridTemplateColumns: `repeat(${Math.max(items.length, 1)}, minmax(0, 1fr))` }}\n >\n {items.map((item) => {\n const content = (\n <>\n {item.icon && (\n <span aria-hidden=\"true\" className=\"[&_svg]:size-5\">\n {item.icon}\n </span>\n )}\n <span>{item.label}</span>\n {item.badge != null && (\n <span className=\"absolute right-1/4 top-1 rounded-full bg-primary px-1.5 text-[10px] font-semibold leading-4 text-primary-foreground\">\n {item.badge}\n </span>\n )}\n </>\n );\n\n return (\n <li key={item.href}>\n {item.disabled ? (\n <span\n aria-disabled=\"true\"\n className={cn(tabClass, 'text-muted-foreground opacity-50')}\n >\n {content}\n </span>\n ) : (\n <LinkEl\n {...destination(item.href)}\n aria-current={item.active ? 'page' : undefined}\n className={cn(\n tabClass,\n item.active\n ? 'text-primary'\n : 'text-muted-foreground hover:text-foreground'\n )}\n >\n {content}\n </LinkEl>\n )}\n </li>\n );\n })}\n </ul>\n </nav>\n );\n}\n"],"mappings":"AAwEY,mBAEI,KAFJ;AAvEZ,SAAS,UAAU;AAgCnB,MAAM,WACJ;AAQK,SAAS,UAAU;AAAA,EACxB;AAAA,EACA;AAAA,EACA,eAAe;AAAA,EACf,QAAQ;AAAA,EACR,QAAQ;AAAA,EACR,aAAa;AAAA,EACb;AAAA,EACA,GAAG;AACL,GAAmB;AACjB,QAAM,SAAS,iBAAiB;AAChC,QAAM,cAAc,CAAC,SAAkB,iBAAiB,OAAO,EAAE,IAAI,KAAK,IAAI,EAAE,KAAK;AAErF,SACE;AAAA,IAAC;AAAA;AAAA,MACC,cAAY;AAAA,MACZ,WAAW;AAAA,QACT;AAAA,QACA,SAAS;AAAA,QACT,cAAc;AAAA,QACd;AAAA,MACF;AAAA,MACC,GAAG;AAAA,MAEJ;AAAA,QAAC;AAAA;AAAA,UACC,WAAU;AAAA,UACV,OAAO,EAAE,qBAAqB,UAAU,KAAK,IAAI,MAAM,QAAQ,CAAC,CAAC,oBAAoB;AAAA,UAEpF,gBAAM,IAAI,CAAC,SAAS;AACnB,kBAAM,UACJ,iCACG;AAAA,mBAAK,QACJ,oBAAC,UAAK,eAAY,QAAO,WAAU,kBAChC,eAAK,MACR;AAAA,cAEF,oBAAC,UAAM,eAAK,OAAM;AAAA,cACjB,KAAK,SAAS,QACb,oBAAC,UAAK,WAAU,uHACb,eAAK,OACR;AAAA,eAEJ;AAGF,mBACE,oBAAC,QACE,eAAK,WACJ;AAAA,cAAC;AAAA;AAAA,gBACC,iBAAc;AAAA,gBACd,WAAW,GAAG,UAAU,kCAAkC;AAAA,gBAEzD;AAAA;AAAA,YACH,IAEA;AAAA,cAAC;AAAA;AAAA,gBACE,GAAG,YAAY,KAAK,IAAI;AAAA,gBACzB,gBAAc,KAAK,SAAS,SAAS;AAAA,gBACrC,WAAW;AAAA,kBACT;AAAA,kBACA,KAAK,SACD,
|
|
1
|
+
{"version":3,"sources":["../../../../src/components/bottom-nav/BottomNav.tsx"],"sourcesContent":["import * as React from 'react';\nimport { cn } from '../../utils/cn';\n\nexport type BottomNavItem = {\n /** Destination URL for the tab. */\n href: string;\n /** Visible tab label. */\n label: string;\n /** Icon shown above the label; always rendered aria-hidden. */\n icon?: React.ReactNode;\n /** Marks the current tab and sets aria-current=\"page\". */\n active?: boolean;\n /** Small count or dot shown in the tab's top corner. */\n badge?: React.ReactNode;\n /** Renders the tab as non-interactive. */\n disabled?: boolean;\n};\n\nexport type BottomNavProps = React.HTMLAttributes<HTMLElement> & {\n /** Tabs in order. Keep to 3-5 so every target stays thumb-reachable. */\n items: BottomNavItem[];\n /** Router link component (Next Link, react-router Link). */\n linkComponent?: React.ElementType;\n /** Prop used to pass the destination to `linkComponent`. */\n linkHrefProp?: 'href' | 'to';\n /** Landmark label. Default \"Primary\". */\n label?: string;\n /** Pin the bar to the bottom edge with safe-area padding (default true). */\n fixed?: boolean;\n /** Hide the bar from the md breakpoint up (default true). */\n mobileOnly?: boolean;\n};\n\nconst tabClass =\n 'relative flex min-h-14 w-full flex-col items-center justify-center gap-0.5 px-2 py-2 text-[11px] font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-inset';\n\n/**\n * Mobile bottom tab bar for the 3-5 primary destinations of an app shell.\n * A nav landmark with aria-current=\"page\" on the active tab, 44px minimum\n * targets, an optional count badge and safe-area padding so the bar clears\n * the iOS home indicator.\n */\nexport function BottomNav({\n items,\n linkComponent,\n linkHrefProp = 'href',\n label = 'Primary',\n fixed = true,\n mobileOnly = true,\n className,\n ...props\n}: BottomNavProps) {\n const LinkEl = linkComponent ?? 'a';\n const destination = (href: string) => (linkHrefProp === 'to' ? { to: href } : { href });\n\n return (\n <nav\n aria-label={label}\n className={cn(\n 'w-full border-t border-border bg-background pb-[env(safe-area-inset-bottom)]',\n fixed && 'fixed inset-x-0 bottom-0 z-40',\n mobileOnly && 'md:hidden',\n className\n )}\n {...props}\n >\n <ul\n className=\"mx-auto grid w-full max-w-lg\"\n style={{ gridTemplateColumns: `repeat(${Math.max(items.length, 1)}, minmax(0, 1fr))` }}\n >\n {items.map((item) => {\n const content = (\n <>\n {item.icon && (\n <span aria-hidden=\"true\" className=\"[&_svg]:size-5\">\n {item.icon}\n </span>\n )}\n <span>{item.label}</span>\n {item.badge != null && (\n <span className=\"absolute right-1/4 top-1 rounded-full bg-primary px-1.5 text-[10px] font-semibold leading-4 text-primary-foreground\">\n {item.badge}\n </span>\n )}\n </>\n );\n\n return (\n <li key={item.href}>\n {item.disabled ? (\n <span\n aria-disabled=\"true\"\n className={cn(tabClass, 'text-muted-foreground opacity-50')}\n >\n {content}\n </span>\n ) : (\n <LinkEl\n {...destination(item.href)}\n aria-current={item.active ? 'page' : undefined}\n className={cn(\n tabClass,\n item.active\n ? 'text-primary-ink'\n : 'text-muted-foreground hover:text-foreground'\n )}\n >\n {content}\n </LinkEl>\n )}\n </li>\n );\n })}\n </ul>\n </nav>\n );\n}\n"],"mappings":"AAwEY,mBAEI,KAFJ;AAvEZ,SAAS,UAAU;AAgCnB,MAAM,WACJ;AAQK,SAAS,UAAU;AAAA,EACxB;AAAA,EACA;AAAA,EACA,eAAe;AAAA,EACf,QAAQ;AAAA,EACR,QAAQ;AAAA,EACR,aAAa;AAAA,EACb;AAAA,EACA,GAAG;AACL,GAAmB;AACjB,QAAM,SAAS,iBAAiB;AAChC,QAAM,cAAc,CAAC,SAAkB,iBAAiB,OAAO,EAAE,IAAI,KAAK,IAAI,EAAE,KAAK;AAErF,SACE;AAAA,IAAC;AAAA;AAAA,MACC,cAAY;AAAA,MACZ,WAAW;AAAA,QACT;AAAA,QACA,SAAS;AAAA,QACT,cAAc;AAAA,QACd;AAAA,MACF;AAAA,MACC,GAAG;AAAA,MAEJ;AAAA,QAAC;AAAA;AAAA,UACC,WAAU;AAAA,UACV,OAAO,EAAE,qBAAqB,UAAU,KAAK,IAAI,MAAM,QAAQ,CAAC,CAAC,oBAAoB;AAAA,UAEpF,gBAAM,IAAI,CAAC,SAAS;AACnB,kBAAM,UACJ,iCACG;AAAA,mBAAK,QACJ,oBAAC,UAAK,eAAY,QAAO,WAAU,kBAChC,eAAK,MACR;AAAA,cAEF,oBAAC,UAAM,eAAK,OAAM;AAAA,cACjB,KAAK,SAAS,QACb,oBAAC,UAAK,WAAU,uHACb,eAAK,OACR;AAAA,eAEJ;AAGF,mBACE,oBAAC,QACE,eAAK,WACJ;AAAA,cAAC;AAAA;AAAA,gBACC,iBAAc;AAAA,gBACd,WAAW,GAAG,UAAU,kCAAkC;AAAA,gBAEzD;AAAA;AAAA,YACH,IAEA;AAAA,cAAC;AAAA;AAAA,gBACE,GAAG,YAAY,KAAK,IAAI;AAAA,gBACzB,gBAAc,KAAK,SAAS,SAAS;AAAA,gBACrC,WAAW;AAAA,kBACT;AAAA,kBACA,KAAK,SACD,qBACA;AAAA,gBACN;AAAA,gBAEC;AAAA;AAAA,YACH,KApBK,KAAK,IAsBd;AAAA,UAEJ,CAAC;AAAA;AAAA,MACH;AAAA;AAAA,EACF;AAEJ;","names":[]}
|
|
@@ -60,7 +60,7 @@ const buttonVariants = (0, import_class_variance_authority.cva)(
|
|
|
60
60
|
"outline-info": "border border-info/50 bg-background text-info-ink hover:border-info hover:bg-info/10",
|
|
61
61
|
secondary: "bg-secondary text-secondary-foreground hover:bg-secondary/80",
|
|
62
62
|
ghost: "hover:bg-accent hover:text-accent-foreground",
|
|
63
|
-
link: "text-primary underline-offset-4 hover:underline",
|
|
63
|
+
link: "text-primary-ink underline-offset-4 hover:underline",
|
|
64
64
|
// High-contrast fills for hero and other always-dark surfaces. These
|
|
65
65
|
// do not read the theme surface, so they stay legible in both modes.
|
|
66
66
|
// Fixed ink, not --primary: in dark mode --primary lightens and would
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../src/components/button/Button.tsx"],"sourcesContent":["import * as React from 'react';\nimport { Slot } from '@radix-ui/react-slot';\nimport { cva, type VariantProps } from 'class-variance-authority';\nimport { cn } from '../../utils/cn';\n\nconst buttonVariants = cva(\n 'inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0',\n {\n variants: {\n variant: {\n default: 'bg-primary text-primary-foreground hover:bg-primary/90',\n primary: 'bg-primary text-primary-foreground hover:bg-primary/90',\n destructive: 'bg-destructive text-destructive-foreground hover:bg-destructive/90',\n danger: 'bg-destructive text-destructive-foreground hover:bg-destructive/90',\n // Semantic status variants — foregrounds are the paired AA tokens\n // (white on dark green, ink on amber/cyan) in both themes.\n success: 'bg-success text-success-foreground hover:bg-success/90',\n warning: 'bg-warning text-warning-foreground hover:bg-warning/90',\n info: 'bg-info text-info-foreground hover:bg-info/90',\n outline: 'border border-input bg-background hover:bg-accent hover:text-accent-foreground',\n // Colored outlines: semantic border + AA ink label on the page\n // surface, with a faint tint on hover - mirrors the Alert recipe.\n 'outline-destructive':\n 'border border-destructive/50 bg-background text-destructive hover:border-destructive hover:bg-destructive/10',\n 'outline-success':\n 'border border-success/50 bg-background text-success hover:border-success hover:bg-success/10',\n 'outline-warning':\n 'border border-warning/50 bg-background text-warning-ink hover:border-warning hover:bg-warning/10',\n 'outline-info':\n 'border border-info/50 bg-background text-info-ink hover:border-info hover:bg-info/10',\n secondary: 'bg-secondary text-secondary-foreground hover:bg-secondary/80',\n ghost: 'hover:bg-accent hover:text-accent-foreground',\n link: 'text-primary underline-offset-4 hover:underline',\n // High-contrast fills for hero and other always-dark surfaces. These\n // do not read the theme surface, so they stay legible in both modes.\n // Fixed ink, not --primary: in dark mode --primary lightens and would\n // sit at low contrast on the white surface.\n contrast: 'bg-white text-slate-900 shadow-sm hover:bg-slate-100',\n onDark:\n 'border border-white/45 bg-transparent text-white hover:border-white/70 hover:bg-white/10',\n },\n size: {\n default: 'h-10 px-4 py-2',\n sm: 'h-9 rounded-md px-3',\n lg: 'h-11 rounded-md px-8',\n icon: 'h-10 w-10',\n },\n },\n defaultVariants: {\n variant: 'default',\n size: 'default',\n },\n }\n);\n\nexport type ButtonProps = React.ButtonHTMLAttributes<HTMLButtonElement> & VariantProps<typeof buttonVariants> & {\n asChild?: boolean;\n /** Shows a spinner, disables the button and sets aria-busy while an action runs. */\n loading?: boolean;\n /** Screen-reader text while loading (default \"Loading\"). */\n loadingLabel?: string;\n};\n\nconst Button = React.forwardRef<HTMLButtonElement, ButtonProps>(\n ({ className, variant, size, asChild = false, loading = false, loadingLabel = 'Loading', disabled, children, ...props }, ref) => {\n const Comp = asChild ? Slot : 'button';\n if (asChild) {\n return (\n <Comp className={cn(buttonVariants({ variant, size, className }))} ref={ref} {...props}>\n {children}\n </Comp>\n );\n }\n return (\n <button\n className={cn(buttonVariants({ variant, size, className }))}\n ref={ref}\n disabled={disabled || loading}\n aria-busy={loading || undefined}\n {...props}\n >\n {loading && (\n <span\n aria-hidden=\"true\"\n className=\"h-4 w-4 shrink-0 animate-spin rounded-full border-2 border-current border-t-transparent\"\n />\n )}\n {loading && <span className=\"sr-only\">{loadingLabel}</span>}\n {children}\n </button>\n );\n }\n);\nButton.displayName = 'Button';\n\nexport { Button, buttonVariants };\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAoEQ;AApER,YAAuB;AACvB,wBAAqB;AACrB,sCAAuC;AACvC,gBAAmB;AAEnB,MAAM,qBAAiB;AAAA,EACrB;AAAA,EACA;AAAA,IACE,UAAU;AAAA,MACR,SAAS;AAAA,QACP,SAAS;AAAA,QACT,SAAS;AAAA,QACT,aAAa;AAAA,QACb,QAAQ;AAAA;AAAA;AAAA,QAGR,SAAS;AAAA,QACT,SAAS;AAAA,QACT,MAAM;AAAA,QACN,SAAS;AAAA;AAAA;AAAA,QAGT,uBACE;AAAA,QACF,mBACE;AAAA,QACF,mBACE;AAAA,QACF,gBACE;AAAA,QACF,WAAW;AAAA,QACX,OAAO;AAAA,QACP,MAAM;AAAA;AAAA;AAAA;AAAA;AAAA,QAKN,UAAU;AAAA,QACV,QACE;AAAA,MACJ;AAAA,MACA,MAAM;AAAA,QACJ,SAAS;AAAA,QACT,IAAI;AAAA,QACJ,IAAI;AAAA,QACJ,MAAM;AAAA,MACR;AAAA,IACF;AAAA,IACA,iBAAiB;AAAA,MACf,SAAS;AAAA,MACT,MAAM;AAAA,IACR;AAAA,EACF;AACF;AAUA,MAAM,SAAS,MAAM;AAAA,EACnB,CAAC,EAAE,WAAW,SAAS,MAAM,UAAU,OAAO,UAAU,OAAO,eAAe,WAAW,UAAU,UAAU,GAAG,MAAM,GAAG,QAAQ;AAC/H,UAAM,OAAO,UAAU,yBAAO;AAC9B,QAAI,SAAS;AACX,aACE,4CAAC,QAAK,eAAW,cAAG,eAAe,EAAE,SAAS,MAAM,UAAU,CAAC,CAAC,GAAG,KAAW,GAAG,OAC9E,UACH;AAAA,IAEJ;AACA,WACE;AAAA,MAAC;AAAA;AAAA,QACC,eAAW,cAAG,eAAe,EAAE,SAAS,MAAM,UAAU,CAAC,CAAC;AAAA,QAC1D;AAAA,QACA,UAAU,YAAY;AAAA,QACtB,aAAW,WAAW;AAAA,QACrB,GAAG;AAAA,QAEH;AAAA,qBACC;AAAA,YAAC;AAAA;AAAA,cACC,eAAY;AAAA,cACZ,WAAU;AAAA;AAAA,UACZ;AAAA,UAED,WAAW,4CAAC,UAAK,WAAU,WAAW,wBAAa;AAAA,UACnD;AAAA;AAAA;AAAA,IACH;AAAA,EAEJ;AACF;AACA,OAAO,cAAc;","names":[]}
|
|
1
|
+
{"version":3,"sources":["../../../../src/components/button/Button.tsx"],"sourcesContent":["import * as React from 'react';\nimport { Slot } from '@radix-ui/react-slot';\nimport { cva, type VariantProps } from 'class-variance-authority';\nimport { cn } from '../../utils/cn';\n\nconst buttonVariants = cva(\n 'inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0',\n {\n variants: {\n variant: {\n default: 'bg-primary text-primary-foreground hover:bg-primary/90',\n primary: 'bg-primary text-primary-foreground hover:bg-primary/90',\n destructive: 'bg-destructive text-destructive-foreground hover:bg-destructive/90',\n danger: 'bg-destructive text-destructive-foreground hover:bg-destructive/90',\n // Semantic status variants — foregrounds are the paired AA tokens\n // (white on dark green, ink on amber/cyan) in both themes.\n success: 'bg-success text-success-foreground hover:bg-success/90',\n warning: 'bg-warning text-warning-foreground hover:bg-warning/90',\n info: 'bg-info text-info-foreground hover:bg-info/90',\n outline: 'border border-input bg-background hover:bg-accent hover:text-accent-foreground',\n // Colored outlines: semantic border + AA ink label on the page\n // surface, with a faint tint on hover - mirrors the Alert recipe.\n 'outline-destructive':\n 'border border-destructive/50 bg-background text-destructive hover:border-destructive hover:bg-destructive/10',\n 'outline-success':\n 'border border-success/50 bg-background text-success hover:border-success hover:bg-success/10',\n 'outline-warning':\n 'border border-warning/50 bg-background text-warning-ink hover:border-warning hover:bg-warning/10',\n 'outline-info':\n 'border border-info/50 bg-background text-info-ink hover:border-info hover:bg-info/10',\n secondary: 'bg-secondary text-secondary-foreground hover:bg-secondary/80',\n ghost: 'hover:bg-accent hover:text-accent-foreground',\n link: 'text-primary-ink underline-offset-4 hover:underline',\n // High-contrast fills for hero and other always-dark surfaces. These\n // do not read the theme surface, so they stay legible in both modes.\n // Fixed ink, not --primary: in dark mode --primary lightens and would\n // sit at low contrast on the white surface.\n contrast: 'bg-white text-slate-900 shadow-sm hover:bg-slate-100',\n onDark:\n 'border border-white/45 bg-transparent text-white hover:border-white/70 hover:bg-white/10',\n },\n size: {\n default: 'h-10 px-4 py-2',\n sm: 'h-9 rounded-md px-3',\n lg: 'h-11 rounded-md px-8',\n icon: 'h-10 w-10',\n },\n },\n defaultVariants: {\n variant: 'default',\n size: 'default',\n },\n }\n);\n\nexport type ButtonProps = React.ButtonHTMLAttributes<HTMLButtonElement> & VariantProps<typeof buttonVariants> & {\n asChild?: boolean;\n /** Shows a spinner, disables the button and sets aria-busy while an action runs. */\n loading?: boolean;\n /** Screen-reader text while loading (default \"Loading\"). */\n loadingLabel?: string;\n};\n\nconst Button = React.forwardRef<HTMLButtonElement, ButtonProps>(\n ({ className, variant, size, asChild = false, loading = false, loadingLabel = 'Loading', disabled, children, ...props }, ref) => {\n const Comp = asChild ? Slot : 'button';\n if (asChild) {\n return (\n <Comp className={cn(buttonVariants({ variant, size, className }))} ref={ref} {...props}>\n {children}\n </Comp>\n );\n }\n return (\n <button\n className={cn(buttonVariants({ variant, size, className }))}\n ref={ref}\n disabled={disabled || loading}\n aria-busy={loading || undefined}\n {...props}\n >\n {loading && (\n <span\n aria-hidden=\"true\"\n className=\"h-4 w-4 shrink-0 animate-spin rounded-full border-2 border-current border-t-transparent\"\n />\n )}\n {loading && <span className=\"sr-only\">{loadingLabel}</span>}\n {children}\n </button>\n );\n }\n);\nButton.displayName = 'Button';\n\nexport { Button, buttonVariants };\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAoEQ;AApER,YAAuB;AACvB,wBAAqB;AACrB,sCAAuC;AACvC,gBAAmB;AAEnB,MAAM,qBAAiB;AAAA,EACrB;AAAA,EACA;AAAA,IACE,UAAU;AAAA,MACR,SAAS;AAAA,QACP,SAAS;AAAA,QACT,SAAS;AAAA,QACT,aAAa;AAAA,QACb,QAAQ;AAAA;AAAA;AAAA,QAGR,SAAS;AAAA,QACT,SAAS;AAAA,QACT,MAAM;AAAA,QACN,SAAS;AAAA;AAAA;AAAA,QAGT,uBACE;AAAA,QACF,mBACE;AAAA,QACF,mBACE;AAAA,QACF,gBACE;AAAA,QACF,WAAW;AAAA,QACX,OAAO;AAAA,QACP,MAAM;AAAA;AAAA;AAAA;AAAA;AAAA,QAKN,UAAU;AAAA,QACV,QACE;AAAA,MACJ;AAAA,MACA,MAAM;AAAA,QACJ,SAAS;AAAA,QACT,IAAI;AAAA,QACJ,IAAI;AAAA,QACJ,MAAM;AAAA,MACR;AAAA,IACF;AAAA,IACA,iBAAiB;AAAA,MACf,SAAS;AAAA,MACT,MAAM;AAAA,IACR;AAAA,EACF;AACF;AAUA,MAAM,SAAS,MAAM;AAAA,EACnB,CAAC,EAAE,WAAW,SAAS,MAAM,UAAU,OAAO,UAAU,OAAO,eAAe,WAAW,UAAU,UAAU,GAAG,MAAM,GAAG,QAAQ;AAC/H,UAAM,OAAO,UAAU,yBAAO;AAC9B,QAAI,SAAS;AACX,aACE,4CAAC,QAAK,eAAW,cAAG,eAAe,EAAE,SAAS,MAAM,UAAU,CAAC,CAAC,GAAG,KAAW,GAAG,OAC9E,UACH;AAAA,IAEJ;AACA,WACE;AAAA,MAAC;AAAA;AAAA,QACC,eAAW,cAAG,eAAe,EAAE,SAAS,MAAM,UAAU,CAAC,CAAC;AAAA,QAC1D;AAAA,QACA,UAAU,YAAY;AAAA,QACtB,aAAW,WAAW;AAAA,QACrB,GAAG;AAAA,QAEH;AAAA,qBACC;AAAA,YAAC;AAAA;AAAA,cACC,eAAY;AAAA,cACZ,WAAU;AAAA;AAAA,UACZ;AAAA,UAED,WAAW,4CAAC,UAAK,WAAU,WAAW,wBAAa;AAAA,UACnD;AAAA;AAAA;AAAA,IACH;AAAA,EAEJ;AACF;AACA,OAAO,cAAc;","names":[]}
|
|
@@ -26,7 +26,7 @@ const buttonVariants = cva(
|
|
|
26
26
|
"outline-info": "border border-info/50 bg-background text-info-ink hover:border-info hover:bg-info/10",
|
|
27
27
|
secondary: "bg-secondary text-secondary-foreground hover:bg-secondary/80",
|
|
28
28
|
ghost: "hover:bg-accent hover:text-accent-foreground",
|
|
29
|
-
link: "text-primary underline-offset-4 hover:underline",
|
|
29
|
+
link: "text-primary-ink underline-offset-4 hover:underline",
|
|
30
30
|
// High-contrast fills for hero and other always-dark surfaces. These
|
|
31
31
|
// do not read the theme surface, so they stay legible in both modes.
|
|
32
32
|
// Fixed ink, not --primary: in dark mode --primary lightens and would
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../src/components/button/Button.tsx"],"sourcesContent":["import * as React from 'react';\nimport { Slot } from '@radix-ui/react-slot';\nimport { cva, type VariantProps } from 'class-variance-authority';\nimport { cn } from '../../utils/cn';\n\nconst buttonVariants = cva(\n 'inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0',\n {\n variants: {\n variant: {\n default: 'bg-primary text-primary-foreground hover:bg-primary/90',\n primary: 'bg-primary text-primary-foreground hover:bg-primary/90',\n destructive: 'bg-destructive text-destructive-foreground hover:bg-destructive/90',\n danger: 'bg-destructive text-destructive-foreground hover:bg-destructive/90',\n // Semantic status variants — foregrounds are the paired AA tokens\n // (white on dark green, ink on amber/cyan) in both themes.\n success: 'bg-success text-success-foreground hover:bg-success/90',\n warning: 'bg-warning text-warning-foreground hover:bg-warning/90',\n info: 'bg-info text-info-foreground hover:bg-info/90',\n outline: 'border border-input bg-background hover:bg-accent hover:text-accent-foreground',\n // Colored outlines: semantic border + AA ink label on the page\n // surface, with a faint tint on hover - mirrors the Alert recipe.\n 'outline-destructive':\n 'border border-destructive/50 bg-background text-destructive hover:border-destructive hover:bg-destructive/10',\n 'outline-success':\n 'border border-success/50 bg-background text-success hover:border-success hover:bg-success/10',\n 'outline-warning':\n 'border border-warning/50 bg-background text-warning-ink hover:border-warning hover:bg-warning/10',\n 'outline-info':\n 'border border-info/50 bg-background text-info-ink hover:border-info hover:bg-info/10',\n secondary: 'bg-secondary text-secondary-foreground hover:bg-secondary/80',\n ghost: 'hover:bg-accent hover:text-accent-foreground',\n link: 'text-primary underline-offset-4 hover:underline',\n // High-contrast fills for hero and other always-dark surfaces. These\n // do not read the theme surface, so they stay legible in both modes.\n // Fixed ink, not --primary: in dark mode --primary lightens and would\n // sit at low contrast on the white surface.\n contrast: 'bg-white text-slate-900 shadow-sm hover:bg-slate-100',\n onDark:\n 'border border-white/45 bg-transparent text-white hover:border-white/70 hover:bg-white/10',\n },\n size: {\n default: 'h-10 px-4 py-2',\n sm: 'h-9 rounded-md px-3',\n lg: 'h-11 rounded-md px-8',\n icon: 'h-10 w-10',\n },\n },\n defaultVariants: {\n variant: 'default',\n size: 'default',\n },\n }\n);\n\nexport type ButtonProps = React.ButtonHTMLAttributes<HTMLButtonElement> & VariantProps<typeof buttonVariants> & {\n asChild?: boolean;\n /** Shows a spinner, disables the button and sets aria-busy while an action runs. */\n loading?: boolean;\n /** Screen-reader text while loading (default \"Loading\"). */\n loadingLabel?: string;\n};\n\nconst Button = React.forwardRef<HTMLButtonElement, ButtonProps>(\n ({ className, variant, size, asChild = false, loading = false, loadingLabel = 'Loading', disabled, children, ...props }, ref) => {\n const Comp = asChild ? Slot : 'button';\n if (asChild) {\n return (\n <Comp className={cn(buttonVariants({ variant, size, className }))} ref={ref} {...props}>\n {children}\n </Comp>\n );\n }\n return (\n <button\n className={cn(buttonVariants({ variant, size, className }))}\n ref={ref}\n disabled={disabled || loading}\n aria-busy={loading || undefined}\n {...props}\n >\n {loading && (\n <span\n aria-hidden=\"true\"\n className=\"h-4 w-4 shrink-0 animate-spin rounded-full border-2 border-current border-t-transparent\"\n />\n )}\n {loading && <span className=\"sr-only\">{loadingLabel}</span>}\n {children}\n </button>\n );\n }\n);\nButton.displayName = 'Button';\n\nexport { Button, buttonVariants };\n"],"mappings":"AAoEQ,cAMF,YANE;AApER,YAAY,WAAW;AACvB,SAAS,YAAY;AACrB,SAAS,WAA8B;AACvC,SAAS,UAAU;AAEnB,MAAM,iBAAiB;AAAA,EACrB;AAAA,EACA;AAAA,IACE,UAAU;AAAA,MACR,SAAS;AAAA,QACP,SAAS;AAAA,QACT,SAAS;AAAA,QACT,aAAa;AAAA,QACb,QAAQ;AAAA;AAAA;AAAA,QAGR,SAAS;AAAA,QACT,SAAS;AAAA,QACT,MAAM;AAAA,QACN,SAAS;AAAA;AAAA;AAAA,QAGT,uBACE;AAAA,QACF,mBACE;AAAA,QACF,mBACE;AAAA,QACF,gBACE;AAAA,QACF,WAAW;AAAA,QACX,OAAO;AAAA,QACP,MAAM;AAAA;AAAA;AAAA;AAAA;AAAA,QAKN,UAAU;AAAA,QACV,QACE;AAAA,MACJ;AAAA,MACA,MAAM;AAAA,QACJ,SAAS;AAAA,QACT,IAAI;AAAA,QACJ,IAAI;AAAA,QACJ,MAAM;AAAA,MACR;AAAA,IACF;AAAA,IACA,iBAAiB;AAAA,MACf,SAAS;AAAA,MACT,MAAM;AAAA,IACR;AAAA,EACF;AACF;AAUA,MAAM,SAAS,MAAM;AAAA,EACnB,CAAC,EAAE,WAAW,SAAS,MAAM,UAAU,OAAO,UAAU,OAAO,eAAe,WAAW,UAAU,UAAU,GAAG,MAAM,GAAG,QAAQ;AAC/H,UAAM,OAAO,UAAU,OAAO;AAC9B,QAAI,SAAS;AACX,aACE,oBAAC,QAAK,WAAW,GAAG,eAAe,EAAE,SAAS,MAAM,UAAU,CAAC,CAAC,GAAG,KAAW,GAAG,OAC9E,UACH;AAAA,IAEJ;AACA,WACE;AAAA,MAAC;AAAA;AAAA,QACC,WAAW,GAAG,eAAe,EAAE,SAAS,MAAM,UAAU,CAAC,CAAC;AAAA,QAC1D;AAAA,QACA,UAAU,YAAY;AAAA,QACtB,aAAW,WAAW;AAAA,QACrB,GAAG;AAAA,QAEH;AAAA,qBACC;AAAA,YAAC;AAAA;AAAA,cACC,eAAY;AAAA,cACZ,WAAU;AAAA;AAAA,UACZ;AAAA,UAED,WAAW,oBAAC,UAAK,WAAU,WAAW,wBAAa;AAAA,UACnD;AAAA;AAAA;AAAA,IACH;AAAA,EAEJ;AACF;AACA,OAAO,cAAc;","names":[]}
|
|
1
|
+
{"version":3,"sources":["../../../../src/components/button/Button.tsx"],"sourcesContent":["import * as React from 'react';\nimport { Slot } from '@radix-ui/react-slot';\nimport { cva, type VariantProps } from 'class-variance-authority';\nimport { cn } from '../../utils/cn';\n\nconst buttonVariants = cva(\n 'inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0',\n {\n variants: {\n variant: {\n default: 'bg-primary text-primary-foreground hover:bg-primary/90',\n primary: 'bg-primary text-primary-foreground hover:bg-primary/90',\n destructive: 'bg-destructive text-destructive-foreground hover:bg-destructive/90',\n danger: 'bg-destructive text-destructive-foreground hover:bg-destructive/90',\n // Semantic status variants — foregrounds are the paired AA tokens\n // (white on dark green, ink on amber/cyan) in both themes.\n success: 'bg-success text-success-foreground hover:bg-success/90',\n warning: 'bg-warning text-warning-foreground hover:bg-warning/90',\n info: 'bg-info text-info-foreground hover:bg-info/90',\n outline: 'border border-input bg-background hover:bg-accent hover:text-accent-foreground',\n // Colored outlines: semantic border + AA ink label on the page\n // surface, with a faint tint on hover - mirrors the Alert recipe.\n 'outline-destructive':\n 'border border-destructive/50 bg-background text-destructive hover:border-destructive hover:bg-destructive/10',\n 'outline-success':\n 'border border-success/50 bg-background text-success hover:border-success hover:bg-success/10',\n 'outline-warning':\n 'border border-warning/50 bg-background text-warning-ink hover:border-warning hover:bg-warning/10',\n 'outline-info':\n 'border border-info/50 bg-background text-info-ink hover:border-info hover:bg-info/10',\n secondary: 'bg-secondary text-secondary-foreground hover:bg-secondary/80',\n ghost: 'hover:bg-accent hover:text-accent-foreground',\n link: 'text-primary-ink underline-offset-4 hover:underline',\n // High-contrast fills for hero and other always-dark surfaces. These\n // do not read the theme surface, so they stay legible in both modes.\n // Fixed ink, not --primary: in dark mode --primary lightens and would\n // sit at low contrast on the white surface.\n contrast: 'bg-white text-slate-900 shadow-sm hover:bg-slate-100',\n onDark:\n 'border border-white/45 bg-transparent text-white hover:border-white/70 hover:bg-white/10',\n },\n size: {\n default: 'h-10 px-4 py-2',\n sm: 'h-9 rounded-md px-3',\n lg: 'h-11 rounded-md px-8',\n icon: 'h-10 w-10',\n },\n },\n defaultVariants: {\n variant: 'default',\n size: 'default',\n },\n }\n);\n\nexport type ButtonProps = React.ButtonHTMLAttributes<HTMLButtonElement> & VariantProps<typeof buttonVariants> & {\n asChild?: boolean;\n /** Shows a spinner, disables the button and sets aria-busy while an action runs. */\n loading?: boolean;\n /** Screen-reader text while loading (default \"Loading\"). */\n loadingLabel?: string;\n};\n\nconst Button = React.forwardRef<HTMLButtonElement, ButtonProps>(\n ({ className, variant, size, asChild = false, loading = false, loadingLabel = 'Loading', disabled, children, ...props }, ref) => {\n const Comp = asChild ? Slot : 'button';\n if (asChild) {\n return (\n <Comp className={cn(buttonVariants({ variant, size, className }))} ref={ref} {...props}>\n {children}\n </Comp>\n );\n }\n return (\n <button\n className={cn(buttonVariants({ variant, size, className }))}\n ref={ref}\n disabled={disabled || loading}\n aria-busy={loading || undefined}\n {...props}\n >\n {loading && (\n <span\n aria-hidden=\"true\"\n className=\"h-4 w-4 shrink-0 animate-spin rounded-full border-2 border-current border-t-transparent\"\n />\n )}\n {loading && <span className=\"sr-only\">{loadingLabel}</span>}\n {children}\n </button>\n );\n }\n);\nButton.displayName = 'Button';\n\nexport { Button, buttonVariants };\n"],"mappings":"AAoEQ,cAMF,YANE;AApER,YAAY,WAAW;AACvB,SAAS,YAAY;AACrB,SAAS,WAA8B;AACvC,SAAS,UAAU;AAEnB,MAAM,iBAAiB;AAAA,EACrB;AAAA,EACA;AAAA,IACE,UAAU;AAAA,MACR,SAAS;AAAA,QACP,SAAS;AAAA,QACT,SAAS;AAAA,QACT,aAAa;AAAA,QACb,QAAQ;AAAA;AAAA;AAAA,QAGR,SAAS;AAAA,QACT,SAAS;AAAA,QACT,MAAM;AAAA,QACN,SAAS;AAAA;AAAA;AAAA,QAGT,uBACE;AAAA,QACF,mBACE;AAAA,QACF,mBACE;AAAA,QACF,gBACE;AAAA,QACF,WAAW;AAAA,QACX,OAAO;AAAA,QACP,MAAM;AAAA;AAAA;AAAA;AAAA;AAAA,QAKN,UAAU;AAAA,QACV,QACE;AAAA,MACJ;AAAA,MACA,MAAM;AAAA,QACJ,SAAS;AAAA,QACT,IAAI;AAAA,QACJ,IAAI;AAAA,QACJ,MAAM;AAAA,MACR;AAAA,IACF;AAAA,IACA,iBAAiB;AAAA,MACf,SAAS;AAAA,MACT,MAAM;AAAA,IACR;AAAA,EACF;AACF;AAUA,MAAM,SAAS,MAAM;AAAA,EACnB,CAAC,EAAE,WAAW,SAAS,MAAM,UAAU,OAAO,UAAU,OAAO,eAAe,WAAW,UAAU,UAAU,GAAG,MAAM,GAAG,QAAQ;AAC/H,UAAM,OAAO,UAAU,OAAO;AAC9B,QAAI,SAAS;AACX,aACE,oBAAC,QAAK,WAAW,GAAG,eAAe,EAAE,SAAS,MAAM,UAAU,CAAC,CAAC,GAAG,KAAW,GAAG,OAC9E,UACH;AAAA,IAEJ;AACA,WACE;AAAA,MAAC;AAAA;AAAA,QACC,WAAW,GAAG,eAAe,EAAE,SAAS,MAAM,UAAU,CAAC,CAAC;AAAA,QAC1D;AAAA,QACA,UAAU,YAAY;AAAA,QACtB,aAAW,WAAW;AAAA,QACrB,GAAG;AAAA,QAEH;AAAA,qBACC;AAAA,YAAC;AAAA;AAAA,cACC,eAAY;AAAA,cACZ,WAAU;AAAA;AAAA,UACZ;AAAA,UAED,WAAW,oBAAC,UAAK,WAAU,WAAW,wBAAa;AAAA,UACnD;AAAA;AAAA;AAAA,IACH;AAAA,EAEJ;AACF;AACA,OAAO,cAAc;","names":[]}
|
|
@@ -41,10 +41,10 @@ const columnClasses = {
|
|
|
41
41
|
const ContactStrip = React.forwardRef(function ContactStrip2({ items, columns = 2, align = "left", linkComponent, className, ...props }, ref) {
|
|
42
42
|
const Link = linkComponent ?? "a";
|
|
43
43
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("ul", { ref, className: (0, import_cn.cn)("grid gap-6", columnClasses[columns], className), ...props, children: items.map((item) => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("li", { className: (0, import_cn.cn)("flex min-w-0 items-start gap-3", align === "center" && "justify-center text-center"), children: [
|
|
44
|
-
item.icon && /* @__PURE__ */ (0, import_jsx_runtime.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 }),
|
|
44
|
+
item.icon && /* @__PURE__ */ (0, import_jsx_runtime.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 }),
|
|
45
45
|
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "min-w-0", children: [
|
|
46
46
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: "text-xs font-semibold uppercase tracking-wider text-muted-foreground", children: item.label }),
|
|
47
|
-
item.href ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Link, { 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_runtime.jsx)("p", { className: "mt-0.5 break-words text-sm font-medium", children: item.value })
|
|
47
|
+
item.href ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Link, { 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_runtime.jsx)("p", { className: "mt-0.5 break-words text-sm font-medium", children: item.value })
|
|
48
48
|
] })
|
|
49
49
|
] }, item.label)) });
|
|
50
50
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../src/components/contact-strip/ContactStrip.tsx"],"sourcesContent":["import * as React from 'react';\nimport { cn } from '../../utils/cn';\n\nexport type ContactItem = {\n label: string;\n value: string;\n href?: string;\n icon?: React.ReactNode;\n};\n\nexport type ContactStripProps = React.HTMLAttributes<HTMLUListElement> & {\n /** Contact rows to display. */\n items: ContactItem[];\n /** Desktop column count (2-3). Default 2. */\n columns?: 2 | 3;\n /** Content alignment. Default 'left'. */\n align?: 'left' | 'center';\n /** Custom link element for routers. */\n linkComponent?: React.ElementType;\n};\n\nconst columnClasses: Record<NonNullable<ContactStripProps['columns']>, string> = {\n 2: 'sm:grid-cols-2',\n 3: 'sm:grid-cols-3',\n};\n\n/**\n * Compact contact details strip for the end of a marketing page. Each row\n * pairs a short label with a phone, email, address or link.\n */\nexport const ContactStrip = React.forwardRef<HTMLUListElement, ContactStripProps>(function ContactStrip(\n { items, columns = 2, align = 'left', linkComponent, className, ...props },\n ref\n) {\n const Link = linkComponent ?? 'a';\n\n return (\n <ul ref={ref} className={cn('grid gap-6', columnClasses[columns], className)} {...props}>\n {items.map((item) => (\n <li key={item.label} className={cn('flex min-w-0 items-start gap-3', align === 'center' && 'justify-center text-center')}>\n {item.icon && (\n <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\">\n {item.icon}\n </span>\n )}\n <div className=\"min-w-0\">\n <p className=\"text-xs font-semibold uppercase tracking-wider text-muted-foreground\">{item.label}</p>\n {item.href ? (\n <Link href={item.href} className=\"mt-0.5 block break-words text-sm font-medium text-primary underline-offset-4 hover:underline\">\n {item.value}\n </Link>\n ) : (\n <p className=\"mt-0.5 break-words text-sm font-medium\">{item.value}</p>\n )}\n </div>\n </li>\n ))}\n </ul>\n );\n});\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAyCY;AAzCZ,YAAuB;AACvB,gBAAmB;AAoBnB,MAAM,gBAA2E;AAAA,EAC/E,GAAG;AAAA,EACH,GAAG;AACL;AAMO,MAAM,eAAe,MAAM,WAAgD,SAASA,cACzF,EAAE,OAAO,UAAU,GAAG,QAAQ,QAAQ,eAAe,WAAW,GAAG,MAAM,GACzE,KACA;AACA,QAAM,OAAO,iBAAiB;AAE9B,SACE,4CAAC,QAAG,KAAU,eAAW,cAAG,cAAc,cAAc,OAAO,GAAG,SAAS,GAAI,GAAG,OAC/E,gBAAM,IAAI,CAAC,SACV,6CAAC,QAAoB,eAAW,cAAG,kCAAkC,UAAU,YAAY,4BAA4B,GACpH;AAAA,SAAK,QACJ,4CAAC,UAAK,WAAU,
|
|
1
|
+
{"version":3,"sources":["../../../../src/components/contact-strip/ContactStrip.tsx"],"sourcesContent":["import * as React from 'react';\nimport { cn } from '../../utils/cn';\n\nexport type ContactItem = {\n label: string;\n value: string;\n href?: string;\n icon?: React.ReactNode;\n};\n\nexport type ContactStripProps = React.HTMLAttributes<HTMLUListElement> & {\n /** Contact rows to display. */\n items: ContactItem[];\n /** Desktop column count (2-3). Default 2. */\n columns?: 2 | 3;\n /** Content alignment. Default 'left'. */\n align?: 'left' | 'center';\n /** Custom link element for routers. */\n linkComponent?: React.ElementType;\n};\n\nconst columnClasses: Record<NonNullable<ContactStripProps['columns']>, string> = {\n 2: 'sm:grid-cols-2',\n 3: 'sm:grid-cols-3',\n};\n\n/**\n * Compact contact details strip for the end of a marketing page. Each row\n * pairs a short label with a phone, email, address or link.\n */\nexport const ContactStrip = React.forwardRef<HTMLUListElement, ContactStripProps>(function ContactStrip(\n { items, columns = 2, align = 'left', linkComponent, className, ...props },\n ref\n) {\n const Link = linkComponent ?? 'a';\n\n return (\n <ul ref={ref} className={cn('grid gap-6', columnClasses[columns], className)} {...props}>\n {items.map((item) => (\n <li key={item.label} className={cn('flex min-w-0 items-start gap-3', align === 'center' && 'justify-center text-center')}>\n {item.icon && (\n <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\">\n {item.icon}\n </span>\n )}\n <div className=\"min-w-0\">\n <p className=\"text-xs font-semibold uppercase tracking-wider text-muted-foreground\">{item.label}</p>\n {item.href ? (\n <Link href={item.href} className=\"mt-0.5 block break-words text-sm font-medium text-primary-ink underline-offset-4 hover:underline\">\n {item.value}\n </Link>\n ) : (\n <p className=\"mt-0.5 break-words text-sm font-medium\">{item.value}</p>\n )}\n </div>\n </li>\n ))}\n </ul>\n );\n});\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAyCY;AAzCZ,YAAuB;AACvB,gBAAmB;AAoBnB,MAAM,gBAA2E;AAAA,EAC/E,GAAG;AAAA,EACH,GAAG;AACL;AAMO,MAAM,eAAe,MAAM,WAAgD,SAASA,cACzF,EAAE,OAAO,UAAU,GAAG,QAAQ,QAAQ,eAAe,WAAW,GAAG,MAAM,GACzE,KACA;AACA,QAAM,OAAO,iBAAiB;AAE9B,SACE,4CAAC,QAAG,KAAU,eAAW,cAAG,cAAc,cAAc,OAAO,GAAG,SAAS,GAAI,GAAG,OAC/E,gBAAM,IAAI,CAAC,SACV,6CAAC,QAAoB,eAAW,cAAG,kCAAkC,UAAU,YAAY,4BAA4B,GACpH;AAAA,SAAK,QACJ,4CAAC,UAAK,WAAU,qHACb,eAAK,MACR;AAAA,IAEF,6CAAC,SAAI,WAAU,WACb;AAAA,kDAAC,OAAE,WAAU,wEAAwE,eAAK,OAAM;AAAA,MAC/F,KAAK,OACJ,4CAAC,QAAK,MAAM,KAAK,MAAM,WAAU,oGAC9B,eAAK,OACR,IAEA,4CAAC,OAAE,WAAU,0CAA0C,eAAK,OAAM;AAAA,OAEtE;AAAA,OAfO,KAAK,KAgBd,CACD,GACH;AAEJ,CAAC;","names":["ContactStrip"]}
|