@slipstream-ui/core 0.8.0 → 0.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +184 -8
- package/dist/index.d.ts +184 -8
- package/dist/index.js +1609 -887
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1651 -933
- package/dist/index.mjs.map +1 -1
- package/dist/manifests/accordion.manifest.json +2 -2
- 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 +175 -0
- 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 +8 -1
- package/dist/manifests/date-picker-popover.manifest.json +202 -0
- 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 +142 -0
- package/dist/manifests/input-group.manifest.json +1 -1
- package/dist/manifests/input.manifest.json +1 -1
- package/dist/manifests/label.manifest.json +1 -1
- package/dist/manifests/link-tabs.manifest.json +1 -1
- package/dist/manifests/link.manifest.json +1 -1
- package/dist/manifests/list.manifest.json +1 -1
- package/dist/manifests/load-more.manifest.json +1 -1
- package/dist/manifests/logo-cloud.manifest.json +1 -1
- package/dist/manifests/menu.manifest.json +1 -1
- package/dist/manifests/metric-card.manifest.json +1 -1
- package/dist/manifests/multi-select.manifest.json +1 -1
- package/dist/manifests/newsletter.manifest.json +1 -1
- package/dist/manifests/page-header.manifest.json +1 -1
- package/dist/manifests/pagination.manifest.json +1 -1
- package/dist/manifests/password-input.manifest.json +1 -1
- package/dist/manifests/popover.manifest.json +86 -4
- package/dist/manifests/process-steps.manifest.json +1 -1
- package/dist/manifests/progress.manifest.json +1 -1
- package/dist/manifests/prose.manifest.json +1 -1
- package/dist/manifests/radio.manifest.json +1 -1
- package/dist/manifests/range-slider.manifest.json +1 -1
- package/dist/manifests/search.manifest.json +1 -1
- package/dist/manifests/section-heading.manifest.json +1 -1
- package/dist/manifests/section.manifest.json +1 -1
- package/dist/manifests/segmented-control.manifest.json +1 -1
- package/dist/manifests/select-menu.manifest.json +1 -1
- package/dist/manifests/select.manifest.json +1 -1
- package/dist/manifests/separator.manifest.json +1 -1
- package/dist/manifests/site-footer.manifest.json +1 -1
- package/dist/manifests/site-header.manifest.json +13 -3
- 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 +7 -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/alert/Alert.js +1 -1
- package/dist/src/components/alert/Alert.js.map +1 -1
- package/dist/src/components/alert/Alert.mjs +1 -1
- package/dist/src/components/alert/Alert.mjs.map +1 -1
- package/dist/src/components/app-shell/AppShell.js +1 -1
- package/dist/src/components/app-shell/AppShell.js.map +1 -1
- package/dist/src/components/app-shell/AppShell.mjs +1 -1
- package/dist/src/components/app-shell/AppShell.mjs.map +1 -1
- package/dist/src/components/article-card/ArticleCard.js +2 -2
- package/dist/src/components/article-card/ArticleCard.js.map +1 -1
- package/dist/src/components/article-card/ArticleCard.mjs +2 -2
- package/dist/src/components/article-card/ArticleCard.mjs.map +1 -1
- package/dist/src/components/calendar/Calendar.d.ts +34 -0
- package/dist/src/components/calendar/Calendar.js +233 -0
- package/dist/src/components/calendar/Calendar.js.map +1 -0
- package/dist/src/components/calendar/Calendar.mjs +208 -0
- package/dist/src/components/calendar/Calendar.mjs.map +1 -0
- package/dist/src/components/calendar/index.d.ts +1 -0
- package/dist/src/components/calendar/index.js +23 -0
- package/dist/src/components/calendar/index.js.map +1 -0
- package/dist/src/components/calendar/index.mjs +2 -0
- package/dist/src/components/calendar/index.mjs.map +1 -0
- package/dist/src/components/comparison-table/ComparisonTable.js +1 -1
- package/dist/src/components/comparison-table/ComparisonTable.js.map +1 -1
- package/dist/src/components/comparison-table/ComparisonTable.mjs +1 -1
- package/dist/src/components/comparison-table/ComparisonTable.mjs.map +1 -1
- package/dist/src/components/cta-section/CTASection.js +1 -1
- package/dist/src/components/cta-section/CTASection.js.map +1 -1
- package/dist/src/components/cta-section/CTASection.mjs +1 -1
- package/dist/src/components/cta-section/CTASection.mjs.map +1 -1
- package/dist/src/components/data-table/DataTable.d.ts +3 -1
- package/dist/src/components/data-table/DataTable.js +2 -4
- package/dist/src/components/data-table/DataTable.js.map +1 -1
- package/dist/src/components/data-table/DataTable.mjs +2 -4
- package/dist/src/components/data-table/DataTable.mjs.map +1 -1
- package/dist/src/components/date-picker-popover/DatePickerPopover.d.ts +33 -0
- package/dist/src/components/date-picker-popover/DatePickerPopover.js +117 -0
- package/dist/src/components/date-picker-popover/DatePickerPopover.js.map +1 -0
- package/dist/src/components/date-picker-popover/DatePickerPopover.mjs +83 -0
- package/dist/src/components/date-picker-popover/DatePickerPopover.mjs.map +1 -0
- package/dist/src/components/date-picker-popover/index.d.ts +1 -0
- package/dist/src/components/date-picker-popover/index.js +23 -0
- package/dist/src/components/date-picker-popover/index.js.map +1 -0
- package/dist/src/components/date-picker-popover/index.mjs +2 -0
- package/dist/src/components/date-picker-popover/index.mjs.map +1 -0
- package/dist/src/components/image/Image.d.ts +34 -0
- package/dist/src/components/image/Image.js +75 -0
- package/dist/src/components/image/Image.js.map +1 -0
- package/dist/src/components/image/Image.mjs +41 -0
- package/dist/src/components/image/Image.mjs.map +1 -0
- package/dist/src/components/image/index.d.ts +1 -0
- package/dist/src/components/image/index.js +29 -0
- package/dist/src/components/image/index.js.map +1 -0
- package/dist/src/components/image/index.mjs +5 -0
- package/dist/src/components/image/index.mjs.map +1 -0
- package/dist/src/components/link/Link.js +4 -4
- package/dist/src/components/link/Link.js.map +1 -1
- package/dist/src/components/link/Link.mjs +4 -4
- package/dist/src/components/link/Link.mjs.map +1 -1
- package/dist/src/components/page-header/PageHeader.js +1 -1
- package/dist/src/components/page-header/PageHeader.js.map +1 -1
- package/dist/src/components/page-header/PageHeader.mjs +1 -1
- package/dist/src/components/page-header/PageHeader.mjs.map +1 -1
- package/dist/src/components/popover/Popover.d.ts +36 -3
- package/dist/src/components/popover/Popover.js +118 -22
- package/dist/src/components/popover/Popover.js.map +1 -1
- package/dist/src/components/popover/Popover.mjs +117 -22
- package/dist/src/components/popover/Popover.mjs.map +1 -1
- package/dist/src/components/section-heading/SectionHeading.js +1 -1
- package/dist/src/components/section-heading/SectionHeading.js.map +1 -1
- package/dist/src/components/section-heading/SectionHeading.mjs +1 -1
- package/dist/src/components/section-heading/SectionHeading.mjs.map +1 -1
- package/dist/src/components/site-header/SiteHeader.d.ts +25 -3
- package/dist/src/components/site-header/SiteHeader.js +141 -6
- package/dist/src/components/site-header/SiteHeader.js.map +1 -1
- package/dist/src/components/site-header/SiteHeader.mjs +141 -6
- package/dist/src/components/site-header/SiteHeader.mjs.map +1 -1
- package/dist/src/components/stepper/Stepper.d.ts +18 -0
- package/dist/src/components/stepper/Stepper.js +2 -1
- package/dist/src/components/stepper/Stepper.js.map +1 -1
- package/dist/src/components/stepper/Stepper.mjs +2 -1
- package/dist/src/components/stepper/Stepper.mjs.map +1 -1
- package/dist/src/index.d.ts +3 -0
- package/dist/src/utils/date.d.ts +32 -0
- package/dist/src/utils/date.js +171 -0
- package/dist/src/utils/date.js.map +1 -0
- package/dist/src/utils/date.mjs +134 -0
- package/dist/src/utils/date.mjs.map +1 -0
- package/dist/src/utils/position.d.ts +42 -0
- package/dist/src/utils/position.js +91 -0
- package/dist/src/utils/position.js.map +1 -0
- package/dist/src/utils/position.mjs +67 -0
- package/dist/src/utils/position.mjs.map +1 -0
- package/dist/styles-full.css +1 -1
- package/dist/styles.css +1 -1
- package/package.json +1 -1
- package/src/components/alert/Alert.tsx +1 -1
- package/src/components/app-shell/AppShell.tsx +1 -1
- package/src/components/article-card/ArticleCard.tsx +2 -2
- package/src/components/calendar/Calendar.test.tsx +277 -0
- package/src/components/calendar/Calendar.tsx +273 -0
- package/src/components/calendar/index.ts +1 -0
- package/src/components/comparison-table/ComparisonTable.tsx +1 -1
- package/src/components/cta-section/CTASection.tsx +1 -1
- package/src/components/data-table/DataTable.test.tsx +21 -0
- package/src/components/data-table/DataTable.tsx +4 -1
- package/src/components/date-picker-popover/DatePickerPopover.test.tsx +223 -0
- package/src/components/date-picker-popover/DatePickerPopover.tsx +117 -0
- package/src/components/date-picker-popover/index.ts +1 -0
- package/src/components/image/Image.test.tsx +94 -0
- package/src/components/image/Image.tsx +71 -0
- package/src/components/image/index.ts +1 -0
- package/src/components/link/Link.test.tsx +2 -1
- package/src/components/link/Link.tsx +4 -4
- package/src/components/page-header/PageHeader.tsx +1 -1
- package/src/components/popover/Popover.test.tsx +307 -3
- package/src/components/popover/Popover.tsx +228 -91
- package/src/components/section-heading/SectionHeading.tsx +1 -1
- package/src/components/site-header/SiteHeader.test.tsx +103 -1
- package/src/components/site-header/SiteHeader.tsx +220 -16
- package/src/components/stepper/Stepper.test.tsx +12 -0
- package/src/components/stepper/Stepper.tsx +15 -1
- package/src/index.ts +3 -0
- package/src/manifests/accordion.manifest.json +2 -2
- 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 +175 -0
- 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 +8 -1
- package/src/manifests/date-picker-popover.manifest.json +202 -0
- 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 +142 -0
- package/src/manifests/input-group.manifest.json +1 -1
- package/src/manifests/input.manifest.json +1 -1
- package/src/manifests/label.manifest.json +1 -1
- package/src/manifests/link-tabs.manifest.json +1 -1
- package/src/manifests/link.manifest.json +1 -1
- package/src/manifests/list.manifest.json +1 -1
- package/src/manifests/load-more.manifest.json +1 -1
- package/src/manifests/logo-cloud.manifest.json +1 -1
- package/src/manifests/menu.manifest.json +1 -1
- package/src/manifests/metric-card.manifest.json +1 -1
- package/src/manifests/multi-select.manifest.json +1 -1
- package/src/manifests/newsletter.manifest.json +1 -1
- package/src/manifests/page-header.manifest.json +1 -1
- package/src/manifests/pagination.manifest.json +1 -1
- package/src/manifests/password-input.manifest.json +1 -1
- package/src/manifests/popover.manifest.json +86 -4
- package/src/manifests/process-steps.manifest.json +1 -1
- package/src/manifests/progress.manifest.json +1 -1
- package/src/manifests/prose.manifest.json +1 -1
- package/src/manifests/radio.manifest.json +1 -1
- package/src/manifests/range-slider.manifest.json +1 -1
- package/src/manifests/search.manifest.json +1 -1
- package/src/manifests/section-heading.manifest.json +1 -1
- package/src/manifests/section.manifest.json +1 -1
- package/src/manifests/segmented-control.manifest.json +1 -1
- package/src/manifests/select-menu.manifest.json +1 -1
- package/src/manifests/select.manifest.json +1 -1
- package/src/manifests/separator.manifest.json +1 -1
- package/src/manifests/site-footer.manifest.json +1 -1
- package/src/manifests/site-header.manifest.json +13 -3
- 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 +7 -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/src/utils/date.test.ts +190 -0
- package/src/utils/date.ts +162 -0
- package/src/utils/position.test.ts +227 -0
- package/src/utils/position.ts +129 -0
|
@@ -82,7 +82,7 @@
|
|
|
82
82
|
"examples": [
|
|
83
83
|
{
|
|
84
84
|
"title": "FAQ accordion",
|
|
85
|
-
"code": "<Accordion defaultValue={['a']}>\n <AccordionItem id=\"a\">\n <AccordionTrigger>What is Slipstream?</AccordionTrigger>\n <AccordionContent>An AI-first component system.</AccordionContent>\n </AccordionItem>\n <AccordionItem id=\"b\">\n <AccordionTrigger>How do I install?</AccordionTrigger>\n <AccordionContent>Run npx slipstream-ui init.</AccordionContent>\n </AccordionItem>\n</Accordion>",
|
|
85
|
+
"code": "<Accordion defaultValue={['a']}>\n <AccordionItem id=\"a\">\n <AccordionTrigger>What is Slipstream?</AccordionTrigger>\n <AccordionContent>An AI-first component system.</AccordionContent>\n </AccordionItem>\n <AccordionItem id=\"b\">\n <AccordionTrigger>How do I install?</AccordionTrigger>\n <AccordionContent>Run npx @slipstream-ui/cli@latest init.</AccordionContent>\n </AccordionItem>\n</Accordion>",
|
|
86
86
|
"description": "Single-open accordion for FAQs"
|
|
87
87
|
}
|
|
88
88
|
],
|
|
@@ -138,7 +138,7 @@
|
|
|
138
138
|
],
|
|
139
139
|
"package": "@slipstream-ui/core",
|
|
140
140
|
"importPath": "@slipstream-ui/core",
|
|
141
|
-
"version": "0.
|
|
141
|
+
"version": "0.9.0",
|
|
142
142
|
"sourceDir": "accordion",
|
|
143
143
|
"exportName": "Accordion"
|
|
144
144
|
}
|
|
@@ -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.9.0",
|
|
8
8
|
"sourceDir": "announcement-bar",
|
|
9
9
|
"exportName": "AnnouncementBar",
|
|
10
10
|
"description": "Dismissible announcement bar with optional action, tone and sticky positioning.",
|
|
@@ -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.9.0",
|
|
8
8
|
"sourceDir": "applied-filters",
|
|
9
9
|
"exportName": "AppliedFilters",
|
|
10
10
|
"description": "Applied-filter summary with a live count, removable chips and an edit action.",
|
|
@@ -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.9.0",
|
|
8
8
|
"sourceDir": "article-card",
|
|
9
9
|
"exportName": "ArticleCard",
|
|
10
10
|
"description": "Linked article or resource card with media, eyebrow, title, summary and metadata.",
|
|
@@ -0,0 +1,175 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "calendar",
|
|
3
|
+
"name": "Calendar",
|
|
4
|
+
"tier": "organism",
|
|
5
|
+
"description": "Month grid with ISO date keys, min/max bounds and full keyboard navigation.",
|
|
6
|
+
"designIntent": "A native date input renders browser chrome that cannot be themed and differs per browser. Calendar is the visible grid behind a date field: controlled by ISO strings so a timezone cannot shift the chosen day, keyboard-operable cell by cell, and usable standalone or inside a Popover.",
|
|
7
|
+
"props": [
|
|
8
|
+
{
|
|
9
|
+
"name": "value",
|
|
10
|
+
"type": "string",
|
|
11
|
+
"required": false,
|
|
12
|
+
"description": "Selected day as `YYYY-MM-DD` (controlled)."
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
"name": "defaultValue",
|
|
16
|
+
"type": "string",
|
|
17
|
+
"required": false,
|
|
18
|
+
"description": "Initial day when uncontrolled."
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"name": "onValueChange",
|
|
22
|
+
"type": "(value: string) => void",
|
|
23
|
+
"required": false,
|
|
24
|
+
"description": "Fired with the ISO key when a day is chosen."
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"name": "min",
|
|
28
|
+
"type": "string",
|
|
29
|
+
"required": false,
|
|
30
|
+
"description": "Earliest selectable day, inclusive."
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"name": "max",
|
|
34
|
+
"type": "string",
|
|
35
|
+
"required": false,
|
|
36
|
+
"description": "Latest selectable day, inclusive."
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"name": "today",
|
|
40
|
+
"type": "string",
|
|
41
|
+
"required": false,
|
|
42
|
+
"description": "Overrides the highlighted today, for deterministic rendering."
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"name": "locale",
|
|
46
|
+
"type": "string",
|
|
47
|
+
"required": false,
|
|
48
|
+
"defaultValue": "en-US",
|
|
49
|
+
"description": "BCP-47 locale for month and weekday labels."
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
"name": "weekStartsOn",
|
|
53
|
+
"type": "0 | 1",
|
|
54
|
+
"required": false,
|
|
55
|
+
"defaultValue": "0",
|
|
56
|
+
"description": "0 starts the week on Sunday, 1 on Monday."
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"name": "isDateDisabled",
|
|
60
|
+
"type": "(value: string) => boolean",
|
|
61
|
+
"required": false,
|
|
62
|
+
"description": "Blocks individual days beyond min/max."
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
"name": "showOutsideDays",
|
|
66
|
+
"type": "boolean",
|
|
67
|
+
"required": false,
|
|
68
|
+
"defaultValue": "true",
|
|
69
|
+
"description": "Show leading/trailing days from neighbouring months."
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
"name": "autoFocus",
|
|
73
|
+
"type": "boolean",
|
|
74
|
+
"required": false,
|
|
75
|
+
"defaultValue": "false",
|
|
76
|
+
"description": "Focus the active day on mount, for popover use."
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
"name": "disabled",
|
|
80
|
+
"type": "boolean",
|
|
81
|
+
"required": false,
|
|
82
|
+
"description": "Disables every day and the month controls."
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
"name": "className",
|
|
86
|
+
"type": "string",
|
|
87
|
+
"required": false,
|
|
88
|
+
"description": "Additional CSS classes."
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
"name": "aria-label",
|
|
92
|
+
"type": "string",
|
|
93
|
+
"required": false,
|
|
94
|
+
"description": "Overrides the grid label (defaults to the month name)."
|
|
95
|
+
}
|
|
96
|
+
],
|
|
97
|
+
"examples": [
|
|
98
|
+
{
|
|
99
|
+
"title": "Controlled calendar",
|
|
100
|
+
"code": "<Calendar value={date} onValueChange={setDate} min=\"2026-01-01\" max=\"2026-12-31\" />",
|
|
101
|
+
"description": "ISO strings in and out."
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
"title": "Monday-first with blocked days",
|
|
105
|
+
"code": "<Calendar weekStartsOn={1} locale=\"es-ES\" isDateDisabled={(d) => d.endsWith('-01')} />",
|
|
106
|
+
"description": "Locale-aware week start and a predicate for holidays."
|
|
107
|
+
}
|
|
108
|
+
],
|
|
109
|
+
"antiPatterns": [
|
|
110
|
+
{
|
|
111
|
+
"title": "Don't store Date objects",
|
|
112
|
+
"explanation": "A Date crossing a timezone boundary can land on the previous or next day. Keep ISO `YYYY-MM-DD` keys until you need to format them.",
|
|
113
|
+
"example": "// Avoid\nonValueChange={(d) => setDate(d.toISOString())}\n\n// Prefer\nonValueChange={setDateKey}"
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
"title": "Don't disable days by removing them",
|
|
117
|
+
"explanation": "Removing cells breaks the grid rhythm and keyboard movement. Mark them with min/max/isDateDisabled so they stay visible."
|
|
118
|
+
}
|
|
119
|
+
],
|
|
120
|
+
"accessibility": [
|
|
121
|
+
{
|
|
122
|
+
"feature": "Grid semantics",
|
|
123
|
+
"implementation": "role=grid with rows, columnheaders and gridcells; the month label is announced and polite.",
|
|
124
|
+
"userRequirements": "Provide aria-label when several calendars share a page."
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
"feature": "Keyboard",
|
|
128
|
+
"implementation": "Arrows move by day/week, Home/End jump to week bounds, PageUp/PageDown change month, Enter/Space selects.",
|
|
129
|
+
"userRequirements": "One tab stop; roving tabindex keeps the grid compact."
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
"feature": "Selection state",
|
|
133
|
+
"implementation": "aria-selected on the gridcell and aria-current=\"date\" for today.",
|
|
134
|
+
"userRequirements": "Do not communicate selection by colour alone."
|
|
135
|
+
}
|
|
136
|
+
],
|
|
137
|
+
"contentGuidelines": [
|
|
138
|
+
{
|
|
139
|
+
"contentType": "Day labels",
|
|
140
|
+
"guidelines": [
|
|
141
|
+
"Use the full date as the accessible name",
|
|
142
|
+
"Keep visible cells to the day number"
|
|
143
|
+
],
|
|
144
|
+
"goodExamples": [
|
|
145
|
+
"13"
|
|
146
|
+
],
|
|
147
|
+
"badExamples": [
|
|
148
|
+
"Nov 13"
|
|
149
|
+
]
|
|
150
|
+
}
|
|
151
|
+
],
|
|
152
|
+
"compositionRules": [
|
|
153
|
+
{
|
|
154
|
+
"component": "Popover",
|
|
155
|
+
"relationship": "Wrap Calendar in PopoverContent for a date field",
|
|
156
|
+
"example": "<PopoverContent><Calendar autoFocus /></PopoverContent>"
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
"component": "DatePickerPopover",
|
|
160
|
+
"relationship": "Use DatePickerPopover when the field and panel should ship together",
|
|
161
|
+
"example": "<DatePickerPopover value={date} onValueChange={setDate} />"
|
|
162
|
+
}
|
|
163
|
+
],
|
|
164
|
+
"relatedComponents": [
|
|
165
|
+
"DatePicker",
|
|
166
|
+
"DatePickerPopover",
|
|
167
|
+
"Popover",
|
|
168
|
+
"DateRangePicker"
|
|
169
|
+
],
|
|
170
|
+
"package": "@slipstream-ui/core",
|
|
171
|
+
"importPath": "@slipstream-ui/core",
|
|
172
|
+
"version": "0.9.0",
|
|
173
|
+
"sourceDir": "calendar",
|
|
174
|
+
"exportName": "Calendar"
|
|
175
|
+
}
|
|
@@ -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.9.0",
|
|
8
8
|
"sourceDir": "comparison-table",
|
|
9
9
|
"exportName": "ComparisonTable",
|
|
10
10
|
"description": "Marketing comparison table with check/dash boolean cells, a highlighted column and responsive overflow.",
|
|
@@ -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.9.0",
|
|
8
8
|
"sourceDir": "confirm-dialog",
|
|
9
9
|
"exportName": "ConfirmDialog",
|
|
10
10
|
"description": "Accessible confirmation dialog with async pending state, destructive variant and cancellable actions, built on Dialog.",
|
|
@@ -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.9.0",
|
|
8
8
|
"sourceDir": "contact-strip",
|
|
9
9
|
"exportName": "ContactStrip",
|
|
10
10
|
"description": "Compact labelled contact rows with optional icons and links.",
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"tier": "atom",
|
|
5
5
|
"package": "@slipstream-ui/core",
|
|
6
6
|
"importPath": "@slipstream-ui/core",
|
|
7
|
-
"version": "0.
|
|
7
|
+
"version": "0.9.0",
|
|
8
8
|
"sourceDir": "container",
|
|
9
9
|
"exportName": "Container",
|
|
10
10
|
"description": "Centered, width-constrained page container with shared gutters and four width presets.",
|
|
@@ -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.9.0",
|
|
8
8
|
"sourceDir": "cta-section",
|
|
9
9
|
"exportName": "CTASection",
|
|
10
10
|
"description": "Full-width conversion band with eyebrow, headline, supporting copy and actions.",
|
|
@@ -172,6 +172,13 @@
|
|
|
172
172
|
"defaultValue": "'Select all rows'",
|
|
173
173
|
"description": "Accessible label for the select-all checkbox."
|
|
174
174
|
},
|
|
175
|
+
{
|
|
176
|
+
"name": "selectedLabel",
|
|
177
|
+
"type": "string",
|
|
178
|
+
"required": false,
|
|
179
|
+
"defaultValue": "'{count} selected'",
|
|
180
|
+
"description": "Selection summary shown above the table while rows are selected. `{count}` is replaced with the selection size."
|
|
181
|
+
},
|
|
175
182
|
{
|
|
176
183
|
"name": "className",
|
|
177
184
|
"type": "string",
|
|
@@ -315,7 +322,7 @@
|
|
|
315
322
|
],
|
|
316
323
|
"package": "@slipstream-ui/core",
|
|
317
324
|
"importPath": "@slipstream-ui/core",
|
|
318
|
-
"version": "0.
|
|
325
|
+
"version": "0.9.0",
|
|
319
326
|
"sourceDir": "data-table",
|
|
320
327
|
"exportName": "DataTable"
|
|
321
328
|
}
|
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "date-picker-popover",
|
|
3
|
+
"name": "DatePickerPopover",
|
|
4
|
+
"tier": "molecule",
|
|
5
|
+
"description": "Date field with a Calendar panel, ISO strings, min/max and keyboard selection.",
|
|
6
|
+
"designIntent": "The native date input opens browser chrome that differs per browser. DatePickerPopover pairs a themed trigger with Calendar in a Popover, so the visible month, week start and disabled days are yours, while the value remains a plain ISO string.",
|
|
7
|
+
"props": [
|
|
8
|
+
{
|
|
9
|
+
"name": "value",
|
|
10
|
+
"type": "string",
|
|
11
|
+
"required": false,
|
|
12
|
+
"description": "Selected day as `YYYY-MM-DD`."
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
"name": "onValueChange",
|
|
16
|
+
"type": "(value: string) => void",
|
|
17
|
+
"required": false,
|
|
18
|
+
"description": "Fired with the ISO key when a day is chosen."
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"name": "min",
|
|
22
|
+
"type": "string",
|
|
23
|
+
"required": false,
|
|
24
|
+
"description": "Earliest selectable day."
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"name": "max",
|
|
28
|
+
"type": "string",
|
|
29
|
+
"required": false,
|
|
30
|
+
"description": "Latest selectable day."
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"name": "today",
|
|
34
|
+
"type": "string",
|
|
35
|
+
"required": false,
|
|
36
|
+
"description": "Overrides the highlighted today."
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"name": "locale",
|
|
40
|
+
"type": "string",
|
|
41
|
+
"required": false,
|
|
42
|
+
"defaultValue": "en-US",
|
|
43
|
+
"description": "Locale for the trigger label and the grid."
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"name": "weekStartsOn",
|
|
47
|
+
"type": "0 | 1",
|
|
48
|
+
"required": false,
|
|
49
|
+
"defaultValue": "0",
|
|
50
|
+
"description": "Week start for the panel."
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"name": "placeholder",
|
|
54
|
+
"type": "string",
|
|
55
|
+
"required": false,
|
|
56
|
+
"defaultValue": "Pick a date",
|
|
57
|
+
"description": "Trigger text before a date is chosen."
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
"name": "name",
|
|
61
|
+
"type": "string",
|
|
62
|
+
"required": false,
|
|
63
|
+
"description": "Renders a hidden input so the value posts with a native form."
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
"name": "required",
|
|
67
|
+
"type": "boolean",
|
|
68
|
+
"required": false,
|
|
69
|
+
"description": "Marks the hidden input required."
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
"name": "disabled",
|
|
73
|
+
"type": "boolean",
|
|
74
|
+
"required": false,
|
|
75
|
+
"description": "Disables the trigger."
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
"name": "side",
|
|
79
|
+
"type": "'top' | 'right' | 'bottom' | 'left'",
|
|
80
|
+
"required": false,
|
|
81
|
+
"defaultValue": "bottom",
|
|
82
|
+
"enum": [
|
|
83
|
+
"top",
|
|
84
|
+
"right",
|
|
85
|
+
"bottom",
|
|
86
|
+
"left"
|
|
87
|
+
],
|
|
88
|
+
"description": "Preferred side of the panel; flips when it cannot fit."
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
"name": "align",
|
|
92
|
+
"type": "'start' | 'center' | 'end'",
|
|
93
|
+
"required": false,
|
|
94
|
+
"defaultValue": "start",
|
|
95
|
+
"enum": [
|
|
96
|
+
"start",
|
|
97
|
+
"center",
|
|
98
|
+
"end"
|
|
99
|
+
],
|
|
100
|
+
"description": "Cross-axis alignment of the panel."
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
"name": "id",
|
|
104
|
+
"type": "string",
|
|
105
|
+
"required": false,
|
|
106
|
+
"description": "Id for the trigger button, for label association."
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
"name": "className",
|
|
110
|
+
"type": "string",
|
|
111
|
+
"required": false,
|
|
112
|
+
"description": "Additional CSS classes on the trigger."
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
"name": "aria-label",
|
|
116
|
+
"type": "string",
|
|
117
|
+
"required": false,
|
|
118
|
+
"description": "Accessible name for the trigger."
|
|
119
|
+
}
|
|
120
|
+
],
|
|
121
|
+
"examples": [
|
|
122
|
+
{
|
|
123
|
+
"title": "Basic",
|
|
124
|
+
"code": "<DatePickerPopover value={date} onValueChange={setDate} />",
|
|
125
|
+
"description": "Themed field with a calendar panel."
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
"title": "Bounded",
|
|
129
|
+
"code": "<DatePickerPopover value={date} onValueChange={setDate} min={today} max={in90Days} side=\"top\" />",
|
|
130
|
+
"description": "Only future dates, opening upward."
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
"title": "In a form",
|
|
134
|
+
"code": "<form><Label htmlFor=\"d\">Date</Label><DatePickerPopover id=\"d\" name=\"date\" required value={date} onValueChange={setDate} /></form>",
|
|
135
|
+
"description": "Hidden input carries the ISO value."
|
|
136
|
+
}
|
|
137
|
+
],
|
|
138
|
+
"antiPatterns": [
|
|
139
|
+
{
|
|
140
|
+
"title": "Don't parse the label",
|
|
141
|
+
"explanation": "The visible text is localized. Read the ISO value, never the trigger text.",
|
|
142
|
+
"example": "// Avoid\nnew Date(trigger.textContent)\n\n// Prefer\nconst value = dateKey"
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
"title": "Don't nest inside another dialog",
|
|
146
|
+
"explanation": "Popover is non-modal; nesting it in a Dialog works, but nesting a Dialog inside it does not. Use a Drawer for long forms."
|
|
147
|
+
}
|
|
148
|
+
],
|
|
149
|
+
"accessibility": [
|
|
150
|
+
{
|
|
151
|
+
"feature": "Trigger semantics",
|
|
152
|
+
"implementation": "The trigger is a button with aria-haspopup=\"dialog\" and aria-expanded.",
|
|
153
|
+
"userRequirements": "Give it a label when the field has no visible one."
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
"feature": "Keyboard",
|
|
157
|
+
"implementation": "Enter/Space opens; arrows navigate; Enter selects and returns focus to the trigger; Escape closes.",
|
|
158
|
+
"userRequirements": "Do not trap focus: the panel is non-modal."
|
|
159
|
+
}
|
|
160
|
+
],
|
|
161
|
+
"contentGuidelines": [
|
|
162
|
+
{
|
|
163
|
+
"contentType": "Trigger label",
|
|
164
|
+
"guidelines": [
|
|
165
|
+
"Show a localized date once chosen",
|
|
166
|
+
"Show a short placeholder before"
|
|
167
|
+
],
|
|
168
|
+
"goodExamples": [
|
|
169
|
+
"Nov 13, 2026",
|
|
170
|
+
"Pick a date"
|
|
171
|
+
],
|
|
172
|
+
"badExamples": [
|
|
173
|
+
"2026-11-13",
|
|
174
|
+
"Select"
|
|
175
|
+
]
|
|
176
|
+
}
|
|
177
|
+
],
|
|
178
|
+
"compositionRules": [
|
|
179
|
+
{
|
|
180
|
+
"component": "Calendar",
|
|
181
|
+
"relationship": "The panel is a Calendar; use it directly for an inline grid",
|
|
182
|
+
"example": "<Calendar value={date} onValueChange={setDate} />"
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
"component": "FormField",
|
|
186
|
+
"relationship": "Wrap with FormField for label, hint and error wiring",
|
|
187
|
+
"example": "<FormField label=\"Date\"><DatePickerPopover /></FormField>"
|
|
188
|
+
}
|
|
189
|
+
],
|
|
190
|
+
"relatedComponents": [
|
|
191
|
+
"Calendar",
|
|
192
|
+
"DatePicker",
|
|
193
|
+
"Popover",
|
|
194
|
+
"DateRangePicker",
|
|
195
|
+
"FormField"
|
|
196
|
+
],
|
|
197
|
+
"package": "@slipstream-ui/core",
|
|
198
|
+
"importPath": "@slipstream-ui/core",
|
|
199
|
+
"version": "0.9.0",
|
|
200
|
+
"sourceDir": "date-picker-popover",
|
|
201
|
+
"exportName": "DatePickerPopover"
|
|
202
|
+
}
|
|
@@ -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.9.0",
|
|
8
8
|
"sourceDir": "date-range-picker",
|
|
9
9
|
"exportName": "DateRangePicker",
|
|
10
10
|
"description": "Start/end date range with ISO strings and quick presets.",
|