@slipstream-ui/core 0.5.0 → 0.6.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/README.md +95 -0
- package/dist/index.d.mts +1373 -90
- package/dist/index.d.ts +1373 -90
- package/dist/index.js +2620 -832
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2621 -858
- package/dist/index.mjs.map +1 -1
- package/dist/manifests/accordion.manifest.json +1 -1
- package/dist/manifests/alert.manifest.json +55 -9
- package/dist/manifests/announcement-bar.manifest.json +108 -0
- package/dist/manifests/app-shell.manifest.json +15 -1
- package/dist/manifests/applied-filters.manifest.json +89 -0
- package/dist/manifests/article-card.manifest.json +106 -0
- package/dist/manifests/auth-layout.manifest.json +16 -3
- package/dist/manifests/autocomplete.manifest.json +15 -1
- package/dist/manifests/avatar.manifest.json +1 -1
- package/dist/manifests/badge.manifest.json +5 -3
- package/dist/manifests/block.manifest.json +33 -8
- package/dist/manifests/breadcrumb.manifest.json +26 -1
- package/dist/manifests/button-group.manifest.json +23 -5
- package/dist/manifests/button.manifest.json +11 -7
- package/dist/manifests/card.manifest.json +1 -1
- package/dist/manifests/checkbox.manifest.json +29 -8
- package/dist/manifests/comparison-table.manifest.json +106 -0
- package/dist/manifests/confirm-dialog.manifest.json +1 -1
- package/dist/manifests/contact-strip.manifest.json +82 -0
- package/dist/manifests/container.manifest.json +81 -0
- package/dist/manifests/cta-section.manifest.json +154 -0
- package/dist/manifests/data-table.manifest.json +1 -1
- package/dist/manifests/date-picker.manifest.json +8 -1
- package/dist/manifests/date-range-picker.manifest.json +103 -0
- package/dist/manifests/dialog.manifest.json +1 -1
- package/dist/manifests/drawer.manifest.json +50 -12
- package/dist/manifests/empty-state.manifest.json +14 -1
- package/dist/manifests/feature-grid.manifest.json +93 -0
- package/dist/manifests/feature-row.manifest.json +111 -0
- package/dist/manifests/fieldset.manifest.json +30 -8
- package/dist/manifests/file-upload.manifest.json +22 -1
- package/dist/manifests/filter-bar.manifest.json +29 -3
- package/dist/manifests/filter-chips.manifest.json +98 -0
- package/dist/manifests/filter-panel.manifest.json +130 -0
- package/dist/manifests/flex.manifest.json +73 -16
- package/dist/manifests/form-field.manifest.json +1 -1
- package/dist/manifests/form-layout.manifest.json +36 -10
- package/dist/manifests/form.manifest.json +25 -7
- package/dist/manifests/grid.manifest.json +55 -15
- package/dist/manifests/heading.manifest.json +29 -8
- package/dist/manifests/hero.manifest.json +202 -0
- package/dist/manifests/input-group.manifest.json +25 -6
- package/dist/manifests/input.manifest.json +1 -1
- package/dist/manifests/label.manifest.json +21 -5
- package/dist/manifests/link-tabs.manifest.json +152 -0
- package/dist/manifests/link.manifest.json +1 -1
- package/dist/manifests/list.manifest.json +24 -9
- package/dist/manifests/logo-cloud.manifest.json +107 -0
- package/dist/manifests/menu.manifest.json +1 -1
- package/dist/manifests/metric-card.manifest.json +2 -2
- package/dist/manifests/multi-select.manifest.json +127 -0
- package/dist/manifests/newsletter.manifest.json +130 -0
- package/dist/manifests/page-header.manifest.json +24 -1
- package/dist/manifests/pagination.manifest.json +24 -1
- package/dist/manifests/password-input.manifest.json +1 -1
- package/dist/manifests/popover.manifest.json +62 -10
- package/dist/manifests/process-steps.manifest.json +83 -0
- package/dist/manifests/progress.manifest.json +29 -5
- package/dist/manifests/prose.manifest.json +1 -1
- package/dist/manifests/radio.manifest.json +26 -7
- package/dist/manifests/range-slider.manifest.json +145 -0
- package/dist/manifests/search.manifest.json +7 -1
- package/dist/manifests/section-heading.manifest.json +19 -1
- package/dist/manifests/section.manifest.json +146 -0
- package/dist/manifests/segmented-control.manifest.json +141 -0
- package/dist/manifests/select-menu.manifest.json +1 -1
- package/dist/manifests/select.manifest.json +18 -7
- package/dist/manifests/separator.manifest.json +15 -5
- package/dist/manifests/site-footer.manifest.json +29 -1
- package/dist/manifests/site-header.manifest.json +63 -1
- package/dist/manifests/skeleton.manifest.json +7 -1
- package/dist/manifests/spinner.manifest.json +1 -1
- package/dist/manifests/stat-band.manifest.json +116 -0
- package/dist/manifests/stepper.manifest.json +1 -1
- package/dist/manifests/switch.manifest.json +17 -5
- package/dist/manifests/table-card.manifest.json +1 -1
- package/dist/manifests/table-of-contents.manifest.json +13 -1
- package/dist/manifests/table.manifest.json +47 -8
- package/dist/manifests/tabs.manifest.json +1 -1
- package/dist/manifests/testimonial.manifest.json +112 -0
- package/dist/manifests/text.manifest.json +32 -8
- package/dist/manifests/textarea.manifest.json +17 -5
- package/dist/manifests/theme-toggle.manifest.json +118 -0
- package/dist/manifests/time-picker.manifest.json +8 -1
- package/dist/manifests/timeline.manifest.json +1 -1
- package/dist/manifests/toast.manifest.json +8 -1
- package/dist/manifests/tooltip.manifest.json +18 -5
- package/dist/src/components/accordion/Accordion.d.ts +45 -0
- package/dist/src/components/accordion/Accordion.js +197 -0
- package/dist/src/components/accordion/Accordion.js.map +1 -0
- package/dist/src/components/accordion/Accordion.mjs +160 -0
- package/dist/src/components/accordion/Accordion.mjs.map +1 -0
- package/dist/src/components/accordion/index.d.ts +1 -0
- package/dist/src/components/accordion/index.js +23 -0
- package/dist/src/components/accordion/index.js.map +1 -0
- package/dist/src/components/accordion/index.mjs +2 -0
- package/dist/src/components/accordion/index.mjs.map +1 -0
- package/dist/src/components/alert/Alert.d.ts +21 -0
- package/dist/src/components/alert/Alert.js +101 -0
- package/dist/src/components/alert/Alert.js.map +1 -0
- package/dist/src/components/alert/Alert.mjs +64 -0
- package/dist/src/components/alert/Alert.mjs.map +1 -0
- package/dist/src/components/alert/index.d.ts +1 -0
- package/dist/src/components/alert/index.js +23 -0
- package/dist/src/components/alert/index.js.map +1 -0
- package/dist/src/components/alert/index.mjs +2 -0
- package/dist/src/components/alert/index.mjs.map +1 -0
- package/dist/src/components/announcement-bar/AnnouncementBar.d.ts +41 -0
- package/dist/src/components/announcement-bar/AnnouncementBar.js +105 -0
- package/dist/src/components/announcement-bar/AnnouncementBar.js.map +1 -0
- package/dist/src/components/announcement-bar/AnnouncementBar.mjs +71 -0
- package/dist/src/components/announcement-bar/AnnouncementBar.mjs.map +1 -0
- package/dist/src/components/announcement-bar/index.d.ts +2 -0
- package/dist/src/components/announcement-bar/index.js +29 -0
- package/dist/src/components/announcement-bar/index.js.map +1 -0
- package/dist/src/components/announcement-bar/index.mjs +5 -0
- package/dist/src/components/announcement-bar/index.mjs.map +1 -0
- package/dist/src/components/app-shell/AppShell.d.ts +67 -0
- package/dist/src/components/app-shell/AppShell.js +207 -0
- package/dist/src/components/app-shell/AppShell.js.map +1 -0
- package/dist/src/components/app-shell/AppShell.mjs +172 -0
- package/dist/src/components/app-shell/AppShell.mjs.map +1 -0
- package/dist/src/components/app-shell/index.d.ts +1 -0
- package/dist/src/components/app-shell/index.js +23 -0
- package/dist/src/components/app-shell/index.js.map +1 -0
- package/dist/src/components/app-shell/index.mjs +2 -0
- package/dist/src/components/app-shell/index.mjs.map +1 -0
- package/dist/src/components/applied-filters/AppliedFilters.d.ts +35 -0
- package/dist/src/components/applied-filters/AppliedFilters.js +75 -0
- package/dist/src/components/applied-filters/AppliedFilters.js.map +1 -0
- package/dist/src/components/applied-filters/AppliedFilters.mjs +41 -0
- package/dist/src/components/applied-filters/AppliedFilters.mjs.map +1 -0
- package/dist/src/components/applied-filters/index.d.ts +2 -0
- package/dist/src/components/applied-filters/index.js +29 -0
- package/dist/src/components/applied-filters/index.js.map +1 -0
- package/dist/src/components/applied-filters/index.mjs +5 -0
- package/dist/src/components/applied-filters/index.mjs.map +1 -0
- package/dist/src/components/article-card/ArticleCard.d.ts +42 -0
- package/dist/src/components/article-card/ArticleCard.js +75 -0
- package/dist/src/components/article-card/ArticleCard.js.map +1 -0
- package/dist/src/components/article-card/ArticleCard.mjs +41 -0
- package/dist/src/components/article-card/ArticleCard.mjs.map +1 -0
- package/dist/src/components/article-card/index.d.ts +2 -0
- package/dist/src/components/article-card/index.js +29 -0
- package/dist/src/components/article-card/index.js.map +1 -0
- package/dist/src/components/article-card/index.mjs +5 -0
- package/dist/src/components/article-card/index.mjs.map +1 -0
- package/dist/src/components/auth-layout/AuthLayout.d.ts +46 -0
- package/dist/src/components/auth-layout/AuthLayout.js +113 -0
- package/dist/src/components/auth-layout/AuthLayout.js.map +1 -0
- package/dist/src/components/auth-layout/AuthLayout.mjs +79 -0
- package/dist/src/components/auth-layout/AuthLayout.mjs.map +1 -0
- package/dist/src/components/auth-layout/index.d.ts +1 -0
- package/dist/src/components/auth-layout/index.js +23 -0
- package/dist/src/components/auth-layout/index.js.map +1 -0
- package/dist/src/components/auth-layout/index.mjs +2 -0
- package/dist/src/components/auth-layout/index.mjs.map +1 -0
- package/dist/src/components/autocomplete/Autocomplete.d.ts +54 -0
- package/dist/src/components/autocomplete/Autocomplete.js +218 -0
- package/dist/src/components/autocomplete/Autocomplete.js.map +1 -0
- package/dist/src/components/autocomplete/Autocomplete.mjs +184 -0
- package/dist/src/components/autocomplete/Autocomplete.mjs.map +1 -0
- package/dist/src/components/autocomplete/index.d.ts +1 -0
- package/dist/src/components/autocomplete/index.js +23 -0
- package/dist/src/components/autocomplete/index.js.map +1 -0
- package/dist/src/components/autocomplete/index.mjs +2 -0
- package/dist/src/components/autocomplete/index.mjs.map +1 -0
- package/dist/src/components/avatar/Avatar.d.ts +6 -0
- package/dist/src/components/avatar/Avatar.js +79 -0
- package/dist/src/components/avatar/Avatar.js.map +1 -0
- package/dist/src/components/avatar/Avatar.mjs +43 -0
- package/dist/src/components/avatar/Avatar.mjs.map +1 -0
- package/dist/src/components/avatar/index.d.ts +1 -0
- package/dist/src/components/avatar/index.js +33 -0
- package/dist/src/components/avatar/index.js.map +1 -0
- package/dist/src/components/avatar/index.mjs +7 -0
- package/dist/src/components/avatar/index.mjs.map +1 -0
- package/dist/src/components/badge/Badge.d.ts +16 -0
- package/dist/src/components/badge/Badge.js +78 -0
- package/dist/src/components/badge/Badge.js.map +1 -0
- package/dist/src/components/badge/Badge.mjs +43 -0
- package/dist/src/components/badge/Badge.mjs.map +1 -0
- package/dist/src/components/badge/index.d.ts +2 -0
- package/dist/src/components/badge/index.js +31 -0
- package/dist/src/components/badge/index.js.map +1 -0
- package/dist/src/components/badge/index.mjs +6 -0
- package/dist/src/components/badge/index.mjs.map +1 -0
- package/dist/src/components/block/Block.d.ts +25 -0
- package/dist/src/components/block/Block.js +55 -0
- package/dist/src/components/block/Block.js.map +1 -0
- package/dist/src/components/block/Block.mjs +21 -0
- package/dist/src/components/block/Block.mjs.map +1 -0
- package/dist/src/components/block/index.d.ts +1 -0
- package/dist/src/components/block/index.js +23 -0
- package/dist/src/components/block/index.js.map +1 -0
- package/dist/src/components/block/index.mjs +2 -0
- package/dist/src/components/block/index.mjs.map +1 -0
- package/dist/src/components/breadcrumb/Breadcrumb.d.ts +59 -0
- package/dist/src/components/breadcrumb/Breadcrumb.js +82 -0
- package/dist/src/components/breadcrumb/Breadcrumb.js.map +1 -0
- package/dist/src/components/breadcrumb/Breadcrumb.mjs +48 -0
- package/dist/src/components/breadcrumb/Breadcrumb.mjs.map +1 -0
- package/dist/src/components/breadcrumb/index.d.ts +1 -0
- package/dist/src/components/breadcrumb/index.js +23 -0
- package/dist/src/components/breadcrumb/index.js.map +1 -0
- package/dist/src/components/breadcrumb/index.mjs +2 -0
- package/dist/src/components/breadcrumb/index.mjs.map +1 -0
- package/dist/src/components/button/Button.d.ts +24 -0
- package/dist/src/components/button/Button.js +119 -0
- package/dist/src/components/button/Button.js.map +1 -0
- package/dist/src/components/button/Button.mjs +84 -0
- package/dist/src/components/button/Button.mjs.map +1 -0
- package/dist/src/components/button/index.d.ts +1 -0
- package/dist/src/components/button/index.js +31 -0
- package/dist/src/components/button/index.js.map +1 -0
- package/dist/src/components/button/index.mjs +6 -0
- package/dist/src/components/button/index.mjs.map +1 -0
- package/dist/src/components/button-group/ButtonGroup.d.ts +22 -0
- package/dist/src/components/button-group/ButtonGroup.js +62 -0
- package/dist/src/components/button-group/ButtonGroup.js.map +1 -0
- package/dist/src/components/button-group/ButtonGroup.mjs +28 -0
- package/dist/src/components/button-group/ButtonGroup.mjs.map +1 -0
- package/dist/src/components/button-group/index.d.ts +1 -0
- package/dist/src/components/button-group/index.js +23 -0
- package/dist/src/components/button-group/index.js.map +1 -0
- package/dist/src/components/button-group/index.mjs +2 -0
- package/dist/src/components/button-group/index.mjs.map +1 -0
- package/dist/src/components/card/Card.d.ts +26 -0
- package/dist/src/components/card/Card.js +93 -0
- package/dist/src/components/card/Card.js.map +1 -0
- package/dist/src/components/card/Card.mjs +54 -0
- package/dist/src/components/card/Card.mjs.map +1 -0
- package/dist/src/components/card/index.d.ts +1 -0
- package/dist/src/components/card/index.js +23 -0
- package/dist/src/components/card/index.js.map +1 -0
- package/dist/src/components/card/index.mjs +2 -0
- package/dist/src/components/card/index.mjs.map +1 -0
- package/dist/src/components/checkbox/Checkbox.d.ts +19 -0
- package/dist/src/components/checkbox/Checkbox.js +64 -0
- package/dist/src/components/checkbox/Checkbox.js.map +1 -0
- package/dist/src/components/checkbox/Checkbox.mjs +30 -0
- package/dist/src/components/checkbox/Checkbox.mjs.map +1 -0
- package/dist/src/components/checkbox/CheckboxGroup.d.ts +41 -0
- package/dist/src/components/checkbox/CheckboxGroup.js +99 -0
- package/dist/src/components/checkbox/CheckboxGroup.js.map +1 -0
- package/dist/src/components/checkbox/CheckboxGroup.mjs +64 -0
- package/dist/src/components/checkbox/CheckboxGroup.mjs.map +1 -0
- package/dist/src/components/checkbox/index.d.ts +2 -0
- package/dist/src/components/checkbox/index.js +25 -0
- package/dist/src/components/checkbox/index.js.map +1 -0
- package/dist/src/components/checkbox/index.mjs +3 -0
- package/dist/src/components/checkbox/index.mjs.map +1 -0
- package/dist/src/components/comparison-table/ComparisonTable.d.ts +50 -0
- package/dist/src/components/comparison-table/ComparisonTable.js +124 -0
- package/dist/src/components/comparison-table/ComparisonTable.js.map +1 -0
- package/dist/src/components/comparison-table/ComparisonTable.mjs +90 -0
- package/dist/src/components/comparison-table/ComparisonTable.mjs.map +1 -0
- package/dist/src/components/comparison-table/index.d.ts +2 -0
- package/dist/src/components/comparison-table/index.js +29 -0
- package/dist/src/components/comparison-table/index.js.map +1 -0
- package/dist/src/components/comparison-table/index.mjs +5 -0
- package/dist/src/components/comparison-table/index.mjs.map +1 -0
- package/dist/src/components/confirm-dialog/ConfirmDialog.d.ts +28 -0
- package/dist/src/components/confirm-dialog/ConfirmDialog.js +92 -0
- package/dist/src/components/confirm-dialog/ConfirmDialog.js.map +1 -0
- package/dist/src/components/confirm-dialog/ConfirmDialog.mjs +58 -0
- package/dist/src/components/confirm-dialog/ConfirmDialog.mjs.map +1 -0
- package/dist/src/components/confirm-dialog/index.d.ts +1 -0
- package/dist/src/components/confirm-dialog/index.js +23 -0
- package/dist/src/components/confirm-dialog/index.js.map +1 -0
- package/dist/src/components/confirm-dialog/index.mjs +2 -0
- package/dist/src/components/confirm-dialog/index.mjs.map +1 -0
- package/dist/src/components/contact-strip/ContactStrip.d.ts +31 -0
- package/dist/src/components/contact-strip/ContactStrip.js +55 -0
- package/dist/src/components/contact-strip/ContactStrip.js.map +1 -0
- package/dist/src/components/contact-strip/ContactStrip.mjs +21 -0
- package/dist/src/components/contact-strip/ContactStrip.mjs.map +1 -0
- package/dist/src/components/contact-strip/index.d.ts +2 -0
- package/dist/src/components/contact-strip/index.js +29 -0
- package/dist/src/components/contact-strip/index.js.map +1 -0
- package/dist/src/components/contact-strip/index.mjs +5 -0
- package/dist/src/components/contact-strip/index.mjs.map +1 -0
- package/dist/src/components/container/Container.d.ts +23 -0
- package/dist/src/components/container/Container.js +65 -0
- package/dist/src/components/container/Container.js.map +1 -0
- package/dist/src/components/container/Container.mjs +31 -0
- package/dist/src/components/container/Container.mjs.map +1 -0
- package/dist/src/components/container/index.d.ts +2 -0
- package/dist/src/components/container/index.js +29 -0
- package/dist/src/components/container/index.js.map +1 -0
- package/dist/src/components/container/index.mjs +5 -0
- package/dist/src/components/container/index.mjs.map +1 -0
- package/dist/src/components/cta-section/CTASection.d.ts +46 -0
- package/dist/src/components/cta-section/CTASection.js +86 -0
- package/dist/src/components/cta-section/CTASection.js.map +1 -0
- package/dist/src/components/cta-section/CTASection.mjs +52 -0
- package/dist/src/components/cta-section/CTASection.mjs.map +1 -0
- package/dist/src/components/cta-section/index.d.ts +2 -0
- package/dist/src/components/cta-section/index.js +29 -0
- package/dist/src/components/cta-section/index.js.map +1 -0
- package/dist/src/components/cta-section/index.mjs +5 -0
- package/dist/src/components/cta-section/index.mjs.map +1 -0
- package/dist/src/components/data-table/DataTable.d.ts +93 -0
- package/dist/src/components/data-table/DataTable.js +302 -0
- package/dist/src/components/data-table/DataTable.js.map +1 -0
- package/dist/src/components/data-table/DataTable.mjs +268 -0
- package/dist/src/components/data-table/DataTable.mjs.map +1 -0
- package/dist/src/components/data-table/index.d.ts +1 -0
- package/dist/src/components/data-table/index.js +23 -0
- package/dist/src/components/data-table/index.js.map +1 -0
- package/dist/src/components/data-table/index.mjs +2 -0
- package/dist/src/components/data-table/index.mjs.map +1 -0
- package/dist/src/components/date-picker/DatePicker.d.ts +31 -0
- package/dist/src/components/date-picker/DatePicker.js +77 -0
- package/dist/src/components/date-picker/DatePicker.js.map +1 -0
- package/dist/src/components/date-picker/DatePicker.mjs +43 -0
- package/dist/src/components/date-picker/DatePicker.mjs.map +1 -0
- package/dist/src/components/date-picker/index.d.ts +1 -0
- package/dist/src/components/date-picker/index.js +23 -0
- package/dist/src/components/date-picker/index.js.map +1 -0
- package/dist/src/components/date-picker/index.mjs +2 -0
- package/dist/src/components/date-picker/index.mjs.map +1 -0
- package/dist/src/components/date-range-picker/DateRangePicker.d.ts +51 -0
- package/dist/src/components/date-range-picker/DateRangePicker.js +141 -0
- package/dist/src/components/date-range-picker/DateRangePicker.js.map +1 -0
- package/dist/src/components/date-range-picker/DateRangePicker.mjs +107 -0
- package/dist/src/components/date-range-picker/DateRangePicker.mjs.map +1 -0
- package/dist/src/components/date-range-picker/index.d.ts +2 -0
- package/dist/src/components/date-range-picker/index.js +29 -0
- package/dist/src/components/date-range-picker/index.js.map +1 -0
- package/dist/src/components/date-range-picker/index.mjs +5 -0
- package/dist/src/components/date-range-picker/index.mjs.map +1 -0
- package/dist/src/components/dialog/Dialog.d.ts +64 -0
- package/dist/src/components/dialog/Dialog.js +212 -0
- package/dist/src/components/dialog/Dialog.js.map +1 -0
- package/dist/src/components/dialog/Dialog.mjs +173 -0
- package/dist/src/components/dialog/Dialog.mjs.map +1 -0
- package/dist/src/components/dialog/index.d.ts +1 -0
- package/dist/src/components/dialog/index.js +23 -0
- package/dist/src/components/dialog/index.js.map +1 -0
- package/dist/src/components/dialog/index.mjs +2 -0
- package/dist/src/components/dialog/index.mjs.map +1 -0
- package/dist/src/components/drawer/Drawer.d.ts +48 -0
- package/dist/src/components/drawer/Drawer.js +214 -0
- package/dist/src/components/drawer/Drawer.js.map +1 -0
- package/dist/src/components/drawer/Drawer.mjs +180 -0
- package/dist/src/components/drawer/Drawer.mjs.map +1 -0
- package/dist/src/components/drawer/index.d.ts +1 -0
- package/dist/src/components/drawer/index.js +23 -0
- package/dist/src/components/drawer/index.js.map +1 -0
- package/dist/src/components/drawer/index.mjs +2 -0
- package/dist/src/components/drawer/index.mjs.map +1 -0
- package/dist/src/components/empty-state/EmptyState.d.ts +38 -0
- package/dist/src/components/empty-state/EmptyState.js +78 -0
- package/dist/src/components/empty-state/EmptyState.js.map +1 -0
- package/dist/src/components/empty-state/EmptyState.mjs +44 -0
- package/dist/src/components/empty-state/EmptyState.mjs.map +1 -0
- package/dist/src/components/empty-state/index.d.ts +1 -0
- package/dist/src/components/empty-state/index.js +23 -0
- package/dist/src/components/empty-state/index.js.map +1 -0
- package/dist/src/components/empty-state/index.mjs +2 -0
- package/dist/src/components/empty-state/index.mjs.map +1 -0
- package/dist/src/components/feature-grid/FeatureGrid.d.ts +38 -0
- package/dist/src/components/feature-grid/FeatureGrid.js +65 -0
- package/dist/src/components/feature-grid/FeatureGrid.js.map +1 -0
- package/dist/src/components/feature-grid/FeatureGrid.mjs +31 -0
- package/dist/src/components/feature-grid/FeatureGrid.mjs.map +1 -0
- package/dist/src/components/feature-grid/index.d.ts +2 -0
- package/dist/src/components/feature-grid/index.js +29 -0
- package/dist/src/components/feature-grid/index.js.map +1 -0
- package/dist/src/components/feature-grid/index.mjs +5 -0
- package/dist/src/components/feature-grid/index.mjs.map +1 -0
- package/dist/src/components/feature-row/FeatureRow.d.ts +42 -0
- package/dist/src/components/feature-row/FeatureRow.js +76 -0
- package/dist/src/components/feature-row/FeatureRow.js.map +1 -0
- package/dist/src/components/feature-row/FeatureRow.mjs +42 -0
- package/dist/src/components/feature-row/FeatureRow.mjs.map +1 -0
- package/dist/src/components/feature-row/index.d.ts +2 -0
- package/dist/src/components/feature-row/index.js +29 -0
- package/dist/src/components/feature-row/index.js.map +1 -0
- package/dist/src/components/feature-row/index.mjs +5 -0
- package/dist/src/components/feature-row/index.mjs.map +1 -0
- package/dist/src/components/fieldset/Fieldset.d.ts +23 -0
- package/dist/src/components/fieldset/Fieldset.js +58 -0
- package/dist/src/components/fieldset/Fieldset.js.map +1 -0
- package/dist/src/components/fieldset/Fieldset.mjs +24 -0
- package/dist/src/components/fieldset/Fieldset.mjs.map +1 -0
- package/dist/src/components/fieldset/index.d.ts +1 -0
- package/dist/src/components/fieldset/index.js +23 -0
- package/dist/src/components/fieldset/index.js.map +1 -0
- package/dist/src/components/fieldset/index.mjs +2 -0
- package/dist/src/components/fieldset/index.mjs.map +1 -0
- package/dist/src/components/file-upload/FileUpload.d.ts +45 -0
- package/dist/src/components/file-upload/FileUpload.js +154 -0
- package/dist/src/components/file-upload/FileUpload.js.map +1 -0
- package/dist/src/components/file-upload/FileUpload.mjs +120 -0
- package/dist/src/components/file-upload/FileUpload.mjs.map +1 -0
- package/dist/src/components/file-upload/index.d.ts +1 -0
- package/dist/src/components/file-upload/index.js +23 -0
- package/dist/src/components/file-upload/index.js.map +1 -0
- package/dist/src/components/file-upload/index.mjs +2 -0
- package/dist/src/components/file-upload/index.mjs.map +1 -0
- package/dist/src/components/filter-bar/FilterBar.d.ts +50 -0
- package/dist/src/components/filter-bar/FilterBar.js +100 -0
- package/dist/src/components/filter-bar/FilterBar.js.map +1 -0
- package/dist/src/components/filter-bar/FilterBar.mjs +66 -0
- package/dist/src/components/filter-bar/FilterBar.mjs.map +1 -0
- package/dist/src/components/filter-bar/index.d.ts +1 -0
- package/dist/src/components/filter-bar/index.js +23 -0
- package/dist/src/components/filter-bar/index.js.map +1 -0
- package/dist/src/components/filter-bar/index.mjs +2 -0
- package/dist/src/components/filter-bar/index.mjs.map +1 -0
- package/dist/src/components/filter-chips/FilterChips.d.ts +37 -0
- package/dist/src/components/filter-chips/FilterChips.js +103 -0
- package/dist/src/components/filter-chips/FilterChips.js.map +1 -0
- package/dist/src/components/filter-chips/FilterChips.mjs +69 -0
- package/dist/src/components/filter-chips/FilterChips.mjs.map +1 -0
- package/dist/src/components/filter-chips/index.d.ts +2 -0
- package/dist/src/components/filter-chips/index.js +29 -0
- package/dist/src/components/filter-chips/index.js.map +1 -0
- package/dist/src/components/filter-chips/index.mjs +5 -0
- package/dist/src/components/filter-chips/index.mjs.map +1 -0
- package/dist/src/components/filter-panel/FilterPanel.d.ts +64 -0
- package/dist/src/components/filter-panel/FilterPanel.js +108 -0
- package/dist/src/components/filter-panel/FilterPanel.js.map +1 -0
- package/dist/src/components/filter-panel/FilterPanel.mjs +74 -0
- package/dist/src/components/filter-panel/FilterPanel.mjs.map +1 -0
- package/dist/src/components/filter-panel/index.d.ts +2 -0
- package/dist/src/components/filter-panel/index.js +29 -0
- package/dist/src/components/filter-panel/index.js.map +1 -0
- package/dist/src/components/filter-panel/index.mjs +5 -0
- package/dist/src/components/filter-panel/index.mjs.map +1 -0
- package/dist/src/components/flex/Flex.d.ts +61 -0
- package/dist/src/components/flex/Flex.js +110 -0
- package/dist/src/components/flex/Flex.js.map +1 -0
- package/dist/src/components/flex/Flex.mjs +75 -0
- package/dist/src/components/flex/Flex.mjs.map +1 -0
- package/dist/src/components/flex/index.d.ts +1 -0
- package/dist/src/components/flex/index.js +23 -0
- package/dist/src/components/flex/index.js.map +1 -0
- package/dist/src/components/flex/index.mjs +2 -0
- package/dist/src/components/flex/index.mjs.map +1 -0
- package/dist/src/components/form/Form.d.ts +23 -0
- package/dist/src/components/form/Form.js +63 -0
- package/dist/src/components/form/Form.js.map +1 -0
- package/dist/src/components/form/Form.mjs +29 -0
- package/dist/src/components/form/Form.mjs.map +1 -0
- package/dist/src/components/form/index.d.ts +1 -0
- package/dist/src/components/form/index.js +23 -0
- package/dist/src/components/form/index.js.map +1 -0
- package/dist/src/components/form/index.mjs +2 -0
- package/dist/src/components/form/index.mjs.map +1 -0
- package/dist/src/components/form-field/FormField.d.ts +47 -0
- package/dist/src/components/form-field/FormField.js +113 -0
- package/dist/src/components/form-field/FormField.js.map +1 -0
- package/dist/src/components/form-field/FormField.mjs +79 -0
- package/dist/src/components/form-field/FormField.mjs.map +1 -0
- package/dist/src/components/form-field/index.d.ts +1 -0
- package/dist/src/components/form-field/index.js +23 -0
- package/dist/src/components/form-field/index.js.map +1 -0
- package/dist/src/components/form-field/index.mjs +2 -0
- package/dist/src/components/form-field/index.mjs.map +1 -0
- package/dist/src/components/form-layout/FormLayout.d.ts +37 -0
- package/dist/src/components/form-layout/FormLayout.js +87 -0
- package/dist/src/components/form-layout/FormLayout.js.map +1 -0
- package/dist/src/components/form-layout/FormLayout.mjs +53 -0
- package/dist/src/components/form-layout/FormLayout.mjs.map +1 -0
- package/dist/src/components/form-layout/index.d.ts +1 -0
- package/dist/src/components/form-layout/index.js +23 -0
- package/dist/src/components/form-layout/index.js.map +1 -0
- package/dist/src/components/form-layout/index.mjs +2 -0
- package/dist/src/components/form-layout/index.mjs.map +1 -0
- package/dist/src/components/grid/Grid.d.ts +71 -0
- package/dist/src/components/grid/Grid.js +156 -0
- package/dist/src/components/grid/Grid.js.map +1 -0
- package/dist/src/components/grid/Grid.mjs +121 -0
- package/dist/src/components/grid/Grid.mjs.map +1 -0
- package/dist/src/components/grid/index.d.ts +1 -0
- package/dist/src/components/grid/index.js +23 -0
- package/dist/src/components/grid/index.js.map +1 -0
- package/dist/src/components/grid/index.mjs +2 -0
- package/dist/src/components/grid/index.mjs.map +1 -0
- package/dist/src/components/heading/Heading.d.ts +32 -0
- package/dist/src/components/heading/Heading.js +76 -0
- package/dist/src/components/heading/Heading.js.map +1 -0
- package/dist/src/components/heading/Heading.mjs +42 -0
- package/dist/src/components/heading/Heading.mjs.map +1 -0
- package/dist/src/components/heading/index.d.ts +1 -0
- package/dist/src/components/heading/index.js +23 -0
- package/dist/src/components/heading/index.js.map +1 -0
- package/dist/src/components/heading/index.mjs +2 -0
- package/dist/src/components/heading/index.mjs.map +1 -0
- package/dist/src/components/hero/Hero.d.ts +81 -0
- package/dist/src/components/hero/Hero.js +95 -0
- package/dist/src/components/hero/Hero.js.map +1 -0
- package/dist/src/components/hero/Hero.mjs +61 -0
- package/dist/src/components/hero/Hero.mjs.map +1 -0
- package/dist/src/components/hero/index.d.ts +2 -0
- package/dist/src/components/hero/index.js +29 -0
- package/dist/src/components/hero/index.js.map +1 -0
- package/dist/src/components/hero/index.mjs +5 -0
- package/dist/src/components/hero/index.mjs.map +1 -0
- package/dist/src/components/input/Input.d.ts +4 -0
- package/dist/src/components/input/Input.js +63 -0
- package/dist/src/components/input/Input.js.map +1 -0
- package/dist/src/components/input/Input.mjs +29 -0
- package/dist/src/components/input/Input.mjs.map +1 -0
- package/dist/src/components/input/index.d.ts +2 -0
- package/dist/src/components/input/index.js +29 -0
- package/dist/src/components/input/index.js.map +1 -0
- package/dist/src/components/input/index.mjs +5 -0
- package/dist/src/components/input/index.mjs.map +1 -0
- package/dist/src/components/input-group/InputGroup.d.ts +31 -0
- package/dist/src/components/input-group/InputGroup.js +114 -0
- package/dist/src/components/input-group/InputGroup.js.map +1 -0
- package/dist/src/components/input-group/InputGroup.mjs +79 -0
- package/dist/src/components/input-group/InputGroup.mjs.map +1 -0
- package/dist/src/components/input-group/index.d.ts +1 -0
- package/dist/src/components/input-group/index.js +23 -0
- package/dist/src/components/input-group/index.js.map +1 -0
- package/dist/src/components/input-group/index.mjs +2 -0
- package/dist/src/components/input-group/index.mjs.map +1 -0
- package/dist/src/components/label/Label.d.ts +9 -0
- package/dist/src/components/label/Label.js +55 -0
- package/dist/src/components/label/Label.js.map +1 -0
- package/dist/src/components/label/Label.mjs +21 -0
- package/dist/src/components/label/Label.mjs.map +1 -0
- package/dist/src/components/label/index.d.ts +1 -0
- package/dist/src/components/label/index.js +23 -0
- package/dist/src/components/label/index.js.map +1 -0
- package/dist/src/components/label/index.mjs +2 -0
- package/dist/src/components/label/index.mjs.map +1 -0
- package/dist/src/components/link/Link.d.ts +35 -0
- package/dist/src/components/link/Link.js +92 -0
- package/dist/src/components/link/Link.js.map +1 -0
- package/dist/src/components/link/Link.mjs +58 -0
- package/dist/src/components/link/Link.mjs.map +1 -0
- package/dist/src/components/link/index.d.ts +1 -0
- package/dist/src/components/link/index.js +23 -0
- package/dist/src/components/link/index.js.map +1 -0
- package/dist/src/components/link/index.mjs +2 -0
- package/dist/src/components/link/index.mjs.map +1 -0
- package/dist/src/components/link-tabs/LinkTabs.d.ts +60 -0
- package/dist/src/components/link-tabs/LinkTabs.js +126 -0
- package/dist/src/components/link-tabs/LinkTabs.js.map +1 -0
- package/dist/src/components/link-tabs/LinkTabs.mjs +92 -0
- package/dist/src/components/link-tabs/LinkTabs.mjs.map +1 -0
- package/dist/src/components/link-tabs/index.d.ts +2 -0
- package/dist/src/components/link-tabs/index.js +29 -0
- package/dist/src/components/link-tabs/index.js.map +1 -0
- package/dist/src/components/link-tabs/index.mjs +5 -0
- package/dist/src/components/link-tabs/index.mjs.map +1 -0
- package/dist/src/components/list/List.d.ts +58 -0
- package/dist/src/components/list/List.js +82 -0
- package/dist/src/components/list/List.js.map +1 -0
- package/dist/src/components/list/List.mjs +47 -0
- package/dist/src/components/list/List.mjs.map +1 -0
- package/dist/src/components/list/index.d.ts +1 -0
- package/dist/src/components/list/index.js +23 -0
- package/dist/src/components/list/index.js.map +1 -0
- package/dist/src/components/list/index.mjs +2 -0
- package/dist/src/components/list/index.mjs.map +1 -0
- package/dist/src/components/logo-cloud/LogoCloud.d.ts +46 -0
- package/dist/src/components/logo-cloud/LogoCloud.js +96 -0
- package/dist/src/components/logo-cloud/LogoCloud.js.map +1 -0
- package/dist/src/components/logo-cloud/LogoCloud.mjs +62 -0
- package/dist/src/components/logo-cloud/LogoCloud.mjs.map +1 -0
- package/dist/src/components/logo-cloud/index.d.ts +2 -0
- package/dist/src/components/logo-cloud/index.js +29 -0
- package/dist/src/components/logo-cloud/index.js.map +1 -0
- package/dist/src/components/logo-cloud/index.mjs +5 -0
- package/dist/src/components/logo-cloud/index.mjs.map +1 -0
- package/dist/src/components/menu/Menu.d.ts +41 -0
- package/dist/src/components/menu/Menu.js +254 -0
- package/dist/src/components/menu/Menu.js.map +1 -0
- package/dist/src/components/menu/Menu.mjs +215 -0
- package/dist/src/components/menu/Menu.mjs.map +1 -0
- package/dist/src/components/menu/index.d.ts +1 -0
- package/dist/src/components/menu/index.js +23 -0
- package/dist/src/components/menu/index.js.map +1 -0
- package/dist/src/components/menu/index.mjs +2 -0
- package/dist/src/components/menu/index.mjs.map +1 -0
- package/dist/src/components/metric-card/MetricCard.d.ts +29 -0
- package/dist/src/components/metric-card/MetricCard.js +64 -0
- package/dist/src/components/metric-card/MetricCard.js.map +1 -0
- package/dist/src/components/metric-card/MetricCard.mjs +30 -0
- package/dist/src/components/metric-card/MetricCard.mjs.map +1 -0
- package/dist/src/components/metric-card/index.d.ts +1 -0
- package/dist/src/components/metric-card/index.js +23 -0
- package/dist/src/components/metric-card/index.js.map +1 -0
- package/dist/src/components/metric-card/index.mjs +2 -0
- package/dist/src/components/metric-card/index.mjs.map +1 -0
- package/dist/src/components/multi-select/MultiSelect.d.ts +56 -0
- package/dist/src/components/multi-select/MultiSelect.js +181 -0
- package/dist/src/components/multi-select/MultiSelect.js.map +1 -0
- package/dist/src/components/multi-select/MultiSelect.mjs +147 -0
- package/dist/src/components/multi-select/MultiSelect.mjs.map +1 -0
- package/dist/src/components/multi-select/index.d.ts +2 -0
- package/dist/src/components/multi-select/index.js +29 -0
- package/dist/src/components/multi-select/index.js.map +1 -0
- package/dist/src/components/multi-select/index.mjs +5 -0
- package/dist/src/components/multi-select/index.mjs.map +1 -0
- package/dist/src/components/newsletter/Newsletter.d.ts +54 -0
- package/dist/src/components/newsletter/Newsletter.js +106 -0
- package/dist/src/components/newsletter/Newsletter.js.map +1 -0
- package/dist/src/components/newsletter/Newsletter.mjs +72 -0
- package/dist/src/components/newsletter/Newsletter.mjs.map +1 -0
- package/dist/src/components/newsletter/index.d.ts +2 -0
- package/dist/src/components/newsletter/index.js +29 -0
- package/dist/src/components/newsletter/index.js.map +1 -0
- package/dist/src/components/newsletter/index.mjs +5 -0
- package/dist/src/components/newsletter/index.mjs.map +1 -0
- package/dist/src/components/page-header/PageHeader.d.ts +50 -0
- package/dist/src/components/page-header/PageHeader.js +61 -0
- package/dist/src/components/page-header/PageHeader.js.map +1 -0
- package/dist/src/components/page-header/PageHeader.mjs +27 -0
- package/dist/src/components/page-header/PageHeader.mjs.map +1 -0
- package/dist/src/components/page-header/document-head.d.ts +25 -0
- package/dist/src/components/page-header/document-head.js +41 -0
- package/dist/src/components/page-header/document-head.js.map +1 -0
- package/dist/src/components/page-header/document-head.mjs +17 -0
- package/dist/src/components/page-header/document-head.mjs.map +1 -0
- package/dist/src/components/page-header/index.d.ts +2 -0
- package/dist/src/components/page-header/index.js +25 -0
- package/dist/src/components/page-header/index.js.map +1 -0
- package/dist/src/components/page-header/index.mjs +3 -0
- package/dist/src/components/page-header/index.mjs.map +1 -0
- package/dist/src/components/pagination/Pagination.d.ts +123 -0
- package/dist/src/components/pagination/Pagination.js +168 -0
- package/dist/src/components/pagination/Pagination.js.map +1 -0
- package/dist/src/components/pagination/Pagination.mjs +134 -0
- package/dist/src/components/pagination/Pagination.mjs.map +1 -0
- package/dist/src/components/pagination/index.d.ts +1 -0
- package/dist/src/components/pagination/index.js +23 -0
- package/dist/src/components/pagination/index.js.map +1 -0
- package/dist/src/components/pagination/index.mjs +2 -0
- package/dist/src/components/pagination/index.mjs.map +1 -0
- package/dist/src/components/password-input/PasswordInput.d.ts +17 -0
- package/dist/src/components/password-input/PasswordInput.js +63 -0
- package/dist/src/components/password-input/PasswordInput.js.map +1 -0
- package/dist/src/components/password-input/PasswordInput.mjs +29 -0
- package/dist/src/components/password-input/PasswordInput.mjs.map +1 -0
- package/dist/src/components/password-input/index.d.ts +1 -0
- package/dist/src/components/password-input/index.js +23 -0
- package/dist/src/components/password-input/index.js.map +1 -0
- package/dist/src/components/password-input/index.mjs +2 -0
- package/dist/src/components/password-input/index.mjs.map +1 -0
- package/dist/src/components/popover/Popover.d.ts +22 -0
- package/dist/src/components/popover/Popover.js +188 -0
- package/dist/src/components/popover/Popover.js.map +1 -0
- package/dist/src/components/popover/Popover.mjs +152 -0
- package/dist/src/components/popover/Popover.mjs.map +1 -0
- package/dist/src/components/popover/index.d.ts +1 -0
- package/dist/src/components/popover/index.js +23 -0
- package/dist/src/components/popover/index.js.map +1 -0
- package/dist/src/components/popover/index.mjs +2 -0
- package/dist/src/components/popover/index.mjs.map +1 -0
- package/dist/src/components/process-steps/ProcessSteps.d.ts +31 -0
- package/dist/src/components/process-steps/ProcessSteps.js +62 -0
- package/dist/src/components/process-steps/ProcessSteps.js.map +1 -0
- package/dist/src/components/process-steps/ProcessSteps.mjs +28 -0
- package/dist/src/components/process-steps/ProcessSteps.mjs.map +1 -0
- package/dist/src/components/process-steps/index.d.ts +2 -0
- package/dist/src/components/process-steps/index.js +29 -0
- package/dist/src/components/process-steps/index.js.map +1 -0
- package/dist/src/components/process-steps/index.mjs +5 -0
- package/dist/src/components/process-steps/index.mjs.map +1 -0
- package/dist/src/components/progress/Progress.d.ts +31 -0
- package/dist/src/components/progress/Progress.js +71 -0
- package/dist/src/components/progress/Progress.js.map +1 -0
- package/dist/src/components/progress/Progress.mjs +37 -0
- package/dist/src/components/progress/Progress.mjs.map +1 -0
- package/dist/src/components/progress/index.d.ts +1 -0
- package/dist/src/components/progress/index.js +23 -0
- package/dist/src/components/progress/index.js.map +1 -0
- package/dist/src/components/progress/index.mjs +2 -0
- package/dist/src/components/progress/index.mjs.map +1 -0
- package/dist/src/components/prose/Prose.d.ts +16 -0
- package/dist/src/components/prose/Prose.js +84 -0
- package/dist/src/components/prose/Prose.js.map +1 -0
- package/dist/src/components/prose/Prose.mjs +50 -0
- package/dist/src/components/prose/Prose.mjs.map +1 -0
- package/dist/src/components/prose/index.d.ts +1 -0
- package/dist/src/components/prose/index.js +23 -0
- package/dist/src/components/prose/index.js.map +1 -0
- package/dist/src/components/prose/index.mjs +2 -0
- package/dist/src/components/prose/index.mjs.map +1 -0
- package/dist/src/components/radio/Radio.d.ts +63 -0
- package/dist/src/components/radio/Radio.js +127 -0
- package/dist/src/components/radio/Radio.js.map +1 -0
- package/dist/src/components/radio/Radio.mjs +90 -0
- package/dist/src/components/radio/Radio.mjs.map +1 -0
- package/dist/src/components/radio/RadioCard.d.ts +24 -0
- package/dist/src/components/radio/RadioCard.js +84 -0
- package/dist/src/components/radio/RadioCard.js.map +1 -0
- package/dist/src/components/radio/RadioCard.mjs +50 -0
- package/dist/src/components/radio/RadioCard.mjs.map +1 -0
- package/dist/src/components/radio/index.d.ts +2 -0
- package/dist/src/components/radio/index.js +25 -0
- package/dist/src/components/radio/index.js.map +1 -0
- package/dist/src/components/radio/index.mjs +3 -0
- package/dist/src/components/radio/index.mjs.map +1 -0
- package/dist/src/components/range-slider/RangeSlider.d.ts +53 -0
- package/dist/src/components/range-slider/RangeSlider.js +128 -0
- package/dist/src/components/range-slider/RangeSlider.js.map +1 -0
- package/dist/src/components/range-slider/RangeSlider.mjs +94 -0
- package/dist/src/components/range-slider/RangeSlider.mjs.map +1 -0
- package/dist/src/components/range-slider/index.d.ts +2 -0
- package/dist/src/components/range-slider/index.js +29 -0
- package/dist/src/components/range-slider/index.js.map +1 -0
- package/dist/src/components/range-slider/index.mjs +5 -0
- package/dist/src/components/range-slider/index.mjs.map +1 -0
- package/dist/src/components/search/Search.d.ts +37 -0
- package/dist/src/components/search/Search.js +152 -0
- package/dist/src/components/search/Search.js.map +1 -0
- package/dist/src/components/search/Search.mjs +118 -0
- package/dist/src/components/search/Search.mjs.map +1 -0
- package/dist/src/components/search/index.d.ts +2 -0
- package/dist/src/components/search/index.js +25 -0
- package/dist/src/components/search/index.js.map +1 -0
- package/dist/src/components/search/index.mjs +3 -0
- package/dist/src/components/search/index.mjs.map +1 -0
- package/dist/src/components/search/use-combobox.d.ts +52 -0
- package/dist/src/components/search/use-combobox.js +156 -0
- package/dist/src/components/search/use-combobox.js.map +1 -0
- package/dist/src/components/search/use-combobox.mjs +122 -0
- package/dist/src/components/search/use-combobox.mjs.map +1 -0
- package/dist/src/components/section/Section.d.ts +37 -0
- package/dist/src/components/section/Section.js +107 -0
- package/dist/src/components/section/Section.js.map +1 -0
- package/dist/src/components/section/Section.mjs +73 -0
- package/dist/src/components/section/Section.mjs.map +1 -0
- package/dist/src/components/section/index.d.ts +2 -0
- package/dist/src/components/section/index.js +29 -0
- package/dist/src/components/section/index.js.map +1 -0
- package/dist/src/components/section/index.mjs +5 -0
- package/dist/src/components/section/index.mjs.map +1 -0
- package/dist/src/components/section-heading/SectionHeading.d.ts +42 -0
- package/dist/src/components/section-heading/SectionHeading.js +69 -0
- package/dist/src/components/section-heading/SectionHeading.js.map +1 -0
- package/dist/src/components/section-heading/SectionHeading.mjs +35 -0
- package/dist/src/components/section-heading/SectionHeading.mjs.map +1 -0
- package/dist/src/components/section-heading/index.d.ts +1 -0
- package/dist/src/components/section-heading/index.js +23 -0
- package/dist/src/components/section-heading/index.js.map +1 -0
- package/dist/src/components/section-heading/index.mjs +2 -0
- package/dist/src/components/section-heading/index.mjs.map +1 -0
- package/dist/src/components/segmented-control/SegmentedControl.d.ts +46 -0
- package/dist/src/components/segmented-control/SegmentedControl.js +166 -0
- package/dist/src/components/segmented-control/SegmentedControl.js.map +1 -0
- package/dist/src/components/segmented-control/SegmentedControl.mjs +132 -0
- package/dist/src/components/segmented-control/SegmentedControl.mjs.map +1 -0
- package/dist/src/components/segmented-control/index.d.ts +2 -0
- package/dist/src/components/segmented-control/index.js +29 -0
- package/dist/src/components/segmented-control/index.js.map +1 -0
- package/dist/src/components/segmented-control/index.mjs +5 -0
- package/dist/src/components/segmented-control/index.mjs.map +1 -0
- package/dist/src/components/select/Select.d.ts +51 -0
- package/dist/src/components/select/Select.js +80 -0
- package/dist/src/components/select/Select.js.map +1 -0
- package/dist/src/components/select/Select.mjs +46 -0
- package/dist/src/components/select/Select.mjs.map +1 -0
- package/dist/src/components/select/index.d.ts +2 -0
- package/dist/src/components/select/index.js +29 -0
- package/dist/src/components/select/index.js.map +1 -0
- package/dist/src/components/select/index.mjs +5 -0
- package/dist/src/components/select/index.mjs.map +1 -0
- package/dist/src/components/select-menu/SelectMenu.d.ts +59 -0
- package/dist/src/components/select-menu/SelectMenu.js +308 -0
- package/dist/src/components/select-menu/SelectMenu.js.map +1 -0
- package/dist/src/components/select-menu/SelectMenu.mjs +274 -0
- package/dist/src/components/select-menu/SelectMenu.mjs.map +1 -0
- package/dist/src/components/select-menu/index.d.ts +1 -0
- package/dist/src/components/select-menu/index.js +23 -0
- package/dist/src/components/select-menu/index.js.map +1 -0
- package/dist/src/components/select-menu/index.mjs +2 -0
- package/dist/src/components/select-menu/index.mjs.map +1 -0
- package/dist/src/components/separator/Separator.d.ts +32 -0
- package/dist/src/components/separator/Separator.js +72 -0
- package/dist/src/components/separator/Separator.js.map +1 -0
- package/dist/src/components/separator/Separator.mjs +36 -0
- package/dist/src/components/separator/Separator.mjs.map +1 -0
- package/dist/src/components/separator/index.d.ts +1 -0
- package/dist/src/components/separator/index.js +23 -0
- package/dist/src/components/separator/index.js.map +1 -0
- package/dist/src/components/separator/index.mjs +2 -0
- package/dist/src/components/separator/index.mjs.map +1 -0
- package/dist/src/components/site-footer/SiteFooter.d.ts +37 -0
- package/dist/src/components/site-footer/SiteFooter.js +79 -0
- package/dist/src/components/site-footer/SiteFooter.js.map +1 -0
- package/dist/src/components/site-footer/SiteFooter.mjs +55 -0
- package/dist/src/components/site-footer/SiteFooter.mjs.map +1 -0
- package/dist/src/components/site-footer/index.d.ts +1 -0
- package/dist/src/components/site-footer/index.js +23 -0
- package/dist/src/components/site-footer/index.js.map +1 -0
- package/dist/src/components/site-footer/index.mjs +2 -0
- package/dist/src/components/site-footer/index.mjs.map +1 -0
- package/dist/src/components/site-header/SiteHeader.d.ts +54 -0
- package/dist/src/components/site-header/SiteHeader.js +174 -0
- package/dist/src/components/site-header/SiteHeader.js.map +1 -0
- package/dist/src/components/site-header/SiteHeader.mjs +140 -0
- package/dist/src/components/site-header/SiteHeader.mjs.map +1 -0
- package/dist/src/components/site-header/index.d.ts +1 -0
- package/dist/src/components/site-header/index.js +23 -0
- package/dist/src/components/site-header/index.js.map +1 -0
- package/dist/src/components/site-header/index.mjs +2 -0
- package/dist/src/components/site-header/index.mjs.map +1 -0
- package/dist/src/components/skeleton/Skeleton.d.ts +41 -0
- package/dist/src/components/skeleton/Skeleton.js +71 -0
- package/dist/src/components/skeleton/Skeleton.js.map +1 -0
- package/dist/src/components/skeleton/Skeleton.mjs +37 -0
- package/dist/src/components/skeleton/Skeleton.mjs.map +1 -0
- package/dist/src/components/skeleton/index.d.ts +1 -0
- package/dist/src/components/skeleton/index.js +23 -0
- package/dist/src/components/skeleton/index.js.map +1 -0
- package/dist/src/components/skeleton/index.mjs +2 -0
- package/dist/src/components/skeleton/index.mjs.map +1 -0
- package/dist/src/components/spinner/Spinner.d.ts +11 -0
- package/dist/src/components/spinner/Spinner.js +59 -0
- package/dist/src/components/spinner/Spinner.js.map +1 -0
- package/dist/src/components/spinner/Spinner.mjs +34 -0
- package/dist/src/components/spinner/Spinner.mjs.map +1 -0
- package/dist/src/components/spinner/index.d.ts +2 -0
- package/dist/src/components/spinner/index.js +31 -0
- package/dist/src/components/spinner/index.js.map +1 -0
- package/dist/src/components/spinner/index.mjs +6 -0
- package/dist/src/components/spinner/index.mjs.map +1 -0
- package/dist/src/components/stat-band/StatBand.d.ts +38 -0
- package/dist/src/components/stat-band/StatBand.js +83 -0
- package/dist/src/components/stat-band/StatBand.js.map +1 -0
- package/dist/src/components/stat-band/StatBand.mjs +49 -0
- package/dist/src/components/stat-band/StatBand.mjs.map +1 -0
- package/dist/src/components/stat-band/index.d.ts +2 -0
- package/dist/src/components/stat-band/index.js +29 -0
- package/dist/src/components/stat-band/index.js.map +1 -0
- package/dist/src/components/stat-band/index.mjs +5 -0
- package/dist/src/components/stat-band/index.mjs.map +1 -0
- package/dist/src/components/stepper/Stepper.d.ts +26 -0
- package/dist/src/components/stepper/Stepper.js +92 -0
- package/dist/src/components/stepper/Stepper.js.map +1 -0
- package/dist/src/components/stepper/Stepper.mjs +58 -0
- package/dist/src/components/stepper/Stepper.mjs.map +1 -0
- package/dist/src/components/stepper/index.d.ts +1 -0
- package/dist/src/components/stepper/index.js +23 -0
- package/dist/src/components/stepper/index.js.map +1 -0
- package/dist/src/components/stepper/index.mjs +2 -0
- package/dist/src/components/stepper/index.mjs.map +1 -0
- package/dist/src/components/switch/Switch.d.ts +27 -0
- package/dist/src/components/switch/Switch.js +95 -0
- package/dist/src/components/switch/Switch.js.map +1 -0
- package/dist/src/components/switch/Switch.mjs +61 -0
- package/dist/src/components/switch/Switch.mjs.map +1 -0
- package/dist/src/components/switch/index.d.ts +1 -0
- package/dist/src/components/switch/index.js +23 -0
- package/dist/src/components/switch/index.js.map +1 -0
- package/dist/src/components/switch/index.mjs +2 -0
- package/dist/src/components/switch/index.mjs.map +1 -0
- package/dist/src/components/table/Table.d.ts +26 -0
- package/dist/src/components/table/Table.js +122 -0
- package/dist/src/components/table/Table.js.map +1 -0
- package/dist/src/components/table/Table.mjs +81 -0
- package/dist/src/components/table/Table.mjs.map +1 -0
- package/dist/src/components/table/index.d.ts +1 -0
- package/dist/src/components/table/index.js +23 -0
- package/dist/src/components/table/index.js.map +1 -0
- package/dist/src/components/table/index.mjs +2 -0
- package/dist/src/components/table/index.mjs.map +1 -0
- package/dist/src/components/table-card/TableCard.d.ts +34 -0
- package/dist/src/components/table-card/TableCard.js +63 -0
- package/dist/src/components/table-card/TableCard.js.map +1 -0
- package/dist/src/components/table-card/TableCard.mjs +29 -0
- package/dist/src/components/table-card/TableCard.mjs.map +1 -0
- package/dist/src/components/table-card/index.d.ts +1 -0
- package/dist/src/components/table-card/index.js +23 -0
- package/dist/src/components/table-card/index.js.map +1 -0
- package/dist/src/components/table-card/index.mjs +2 -0
- package/dist/src/components/table-card/index.mjs.map +1 -0
- package/dist/src/components/table-of-contents/TableOfContents.d.ts +32 -0
- package/dist/src/components/table-of-contents/TableOfContents.js +102 -0
- package/dist/src/components/table-of-contents/TableOfContents.js.map +1 -0
- package/dist/src/components/table-of-contents/TableOfContents.mjs +67 -0
- package/dist/src/components/table-of-contents/TableOfContents.mjs.map +1 -0
- package/dist/src/components/table-of-contents/index.d.ts +1 -0
- package/dist/src/components/table-of-contents/index.js +23 -0
- package/dist/src/components/table-of-contents/index.js.map +1 -0
- package/dist/src/components/table-of-contents/index.mjs +2 -0
- package/dist/src/components/table-of-contents/index.mjs.map +1 -0
- package/dist/src/components/tabs/Tabs.d.ts +45 -0
- package/dist/src/components/tabs/Tabs.js +216 -0
- package/dist/src/components/tabs/Tabs.js.map +1 -0
- package/dist/src/components/tabs/Tabs.mjs +179 -0
- package/dist/src/components/tabs/Tabs.mjs.map +1 -0
- package/dist/src/components/tabs/index.d.ts +1 -0
- package/dist/src/components/tabs/index.js +23 -0
- package/dist/src/components/tabs/index.js.map +1 -0
- package/dist/src/components/tabs/index.mjs +2 -0
- package/dist/src/components/tabs/index.mjs.map +1 -0
- package/dist/src/components/testimonial/Testimonial.d.ts +41 -0
- package/dist/src/components/testimonial/Testimonial.js +75 -0
- package/dist/src/components/testimonial/Testimonial.js.map +1 -0
- package/dist/src/components/testimonial/Testimonial.mjs +41 -0
- package/dist/src/components/testimonial/Testimonial.mjs.map +1 -0
- package/dist/src/components/testimonial/index.d.ts +2 -0
- package/dist/src/components/testimonial/index.js +29 -0
- package/dist/src/components/testimonial/index.js.map +1 -0
- package/dist/src/components/testimonial/index.mjs +5 -0
- package/dist/src/components/testimonial/index.mjs.map +1 -0
- package/dist/src/components/text/Text.d.ts +40 -0
- package/dist/src/components/text/Text.js +74 -0
- package/dist/src/components/text/Text.js.map +1 -0
- package/dist/src/components/text/Text.mjs +40 -0
- package/dist/src/components/text/Text.mjs.map +1 -0
- package/dist/src/components/text/index.d.ts +1 -0
- package/dist/src/components/text/index.js +23 -0
- package/dist/src/components/text/index.js.map +1 -0
- package/dist/src/components/text/index.mjs +2 -0
- package/dist/src/components/text/index.mjs.map +1 -0
- package/dist/src/components/textarea/Textarea.d.ts +9 -0
- package/dist/src/components/textarea/Textarea.js +59 -0
- package/dist/src/components/textarea/Textarea.js.map +1 -0
- package/dist/src/components/textarea/Textarea.mjs +25 -0
- package/dist/src/components/textarea/Textarea.mjs.map +1 -0
- package/dist/src/components/textarea/index.d.ts +1 -0
- package/dist/src/components/textarea/index.js +23 -0
- package/dist/src/components/textarea/index.js.map +1 -0
- package/dist/src/components/textarea/index.mjs +2 -0
- package/dist/src/components/textarea/index.mjs.map +1 -0
- package/dist/src/components/theme-toggle/ThemeToggle.d.ts +32 -0
- package/dist/src/components/theme-toggle/ThemeToggle.js +95 -0
- package/dist/src/components/theme-toggle/ThemeToggle.js.map +1 -0
- package/dist/src/components/theme-toggle/ThemeToggle.mjs +61 -0
- package/dist/src/components/theme-toggle/ThemeToggle.mjs.map +1 -0
- package/dist/src/components/theme-toggle/index.d.ts +2 -0
- package/dist/src/components/theme-toggle/index.js +29 -0
- package/dist/src/components/theme-toggle/index.js.map +1 -0
- package/dist/src/components/theme-toggle/index.mjs +5 -0
- package/dist/src/components/theme-toggle/index.mjs.map +1 -0
- package/dist/src/components/time-picker/TimePicker.d.ts +30 -0
- package/dist/src/components/time-picker/TimePicker.js +77 -0
- package/dist/src/components/time-picker/TimePicker.js.map +1 -0
- package/dist/src/components/time-picker/TimePicker.mjs +43 -0
- package/dist/src/components/time-picker/TimePicker.mjs.map +1 -0
- package/dist/src/components/time-picker/index.d.ts +1 -0
- package/dist/src/components/time-picker/index.js +23 -0
- package/dist/src/components/time-picker/index.js.map +1 -0
- package/dist/src/components/time-picker/index.mjs +2 -0
- package/dist/src/components/time-picker/index.mjs.map +1 -0
- package/dist/src/components/timeline/Timeline.d.ts +21 -0
- package/dist/src/components/timeline/Timeline.js +64 -0
- package/dist/src/components/timeline/Timeline.js.map +1 -0
- package/dist/src/components/timeline/Timeline.mjs +30 -0
- package/dist/src/components/timeline/Timeline.mjs.map +1 -0
- package/dist/src/components/timeline/index.d.ts +1 -0
- package/dist/src/components/timeline/index.js +23 -0
- package/dist/src/components/timeline/index.js.map +1 -0
- package/dist/src/components/timeline/index.mjs +2 -0
- package/dist/src/components/timeline/index.mjs.map +1 -0
- package/dist/src/components/toast/Toast.d.ts +18 -0
- package/dist/src/components/toast/Toast.js +132 -0
- package/dist/src/components/toast/Toast.js.map +1 -0
- package/dist/src/components/toast/Toast.mjs +97 -0
- package/dist/src/components/toast/Toast.mjs.map +1 -0
- package/dist/src/components/toast/Toaster.d.ts +23 -0
- package/dist/src/components/toast/Toaster.js +118 -0
- package/dist/src/components/toast/Toaster.js.map +1 -0
- package/dist/src/components/toast/Toaster.mjs +89 -0
- package/dist/src/components/toast/Toaster.mjs.map +1 -0
- package/dist/src/components/toast/index.d.ts +6 -0
- package/dist/src/components/toast/index.js +37 -0
- package/dist/src/components/toast/index.js.map +1 -0
- package/dist/src/components/toast/index.mjs +10 -0
- package/dist/src/components/toast/index.mjs.map +1 -0
- package/dist/src/components/toast/toast-store.d.ts +49 -0
- package/dist/src/components/toast/toast-store.js +93 -0
- package/dist/src/components/toast/toast-store.js.map +1 -0
- package/dist/src/components/toast/toast-store.mjs +66 -0
- package/dist/src/components/toast/toast-store.mjs.map +1 -0
- package/dist/src/components/tooltip/Tooltip.d.ts +23 -0
- package/dist/src/components/tooltip/Tooltip.js +123 -0
- package/dist/src/components/tooltip/Tooltip.js.map +1 -0
- package/dist/src/components/tooltip/Tooltip.mjs +89 -0
- package/dist/src/components/tooltip/Tooltip.mjs.map +1 -0
- package/dist/src/components/tooltip/index.d.ts +1 -0
- package/dist/src/components/tooltip/index.js +23 -0
- package/dist/src/components/tooltip/index.js.map +1 -0
- package/dist/src/components/tooltip/index.mjs +2 -0
- package/dist/src/components/tooltip/index.mjs.map +1 -0
- package/dist/src/index.d.ts +91 -0
- package/dist/src/test/setup.d.ts +1 -0
- package/dist/src/test/ssr-test-utils.d.ts +43 -0
- package/dist/src/types/manifest.d.ts +118 -0
- package/dist/src/types/manifest.js +33 -0
- package/dist/src/types/manifest.js.map +1 -0
- package/dist/src/types/manifest.mjs +9 -0
- package/dist/src/types/manifest.mjs.map +1 -0
- package/dist/src/utils/cn.d.ts +2 -0
- package/dist/src/utils/cn.js +33 -0
- package/dist/src/utils/cn.js.map +1 -0
- package/dist/src/utils/cn.mjs +9 -0
- package/dist/src/utils/cn.mjs.map +1 -0
- package/dist/src/utils/gap.d.ts +16 -0
- package/dist/src/utils/gap.js +40 -0
- package/dist/src/utils/gap.js.map +1 -0
- package/dist/src/utils/gap.mjs +16 -0
- package/dist/src/utils/gap.mjs.map +1 -0
- package/dist/src/utils/modal-layer.d.ts +3 -0
- package/dist/src/utils/modal-layer.js +69 -0
- package/dist/src/utils/modal-layer.js.map +1 -0
- package/dist/src/utils/modal-layer.mjs +34 -0
- package/dist/src/utils/modal-layer.mjs.map +1 -0
- package/dist/src/utils/presence.d.ts +12 -0
- package/dist/src/utils/presence.js +56 -0
- package/dist/src/utils/presence.js.map +1 -0
- package/dist/src/utils/presence.mjs +22 -0
- package/dist/src/utils/presence.mjs.map +1 -0
- package/dist/styles-full.css +2 -0
- package/dist/styles.css +1 -0
- package/package.json +16 -7
- package/src/components/alert/Alert.test.tsx +6 -1
- package/src/components/alert/Alert.tsx +2 -0
- package/src/components/announcement-bar/AnnouncementBar.test.tsx +34 -0
- package/src/components/announcement-bar/AnnouncementBar.tsx +100 -0
- package/src/components/announcement-bar/index.ts +2 -0
- package/src/components/app-shell/AppShell.test.tsx +27 -0
- package/src/components/app-shell/AppShell.tsx +12 -3
- package/src/components/applied-filters/AppliedFilters.test.tsx +50 -0
- package/src/components/applied-filters/AppliedFilters.tsx +69 -0
- package/src/components/applied-filters/index.ts +2 -0
- package/src/components/article-card/ArticleCard.test.tsx +39 -0
- package/src/components/article-card/ArticleCard.tsx +75 -0
- package/src/components/article-card/index.ts +2 -0
- package/src/components/auth-layout/AuthLayout.test.tsx +45 -0
- package/src/components/auth-layout/AuthLayout.tsx +66 -10
- package/src/components/autocomplete/Autocomplete.test.tsx +18 -0
- package/src/components/autocomplete/Autocomplete.tsx +8 -2
- package/src/components/badge/Badge.test.tsx +11 -4
- package/src/components/badge/Badge.tsx +7 -3
- package/src/components/breadcrumb/Breadcrumb.test.tsx +7 -0
- package/src/components/breadcrumb/Breadcrumb.tsx +15 -5
- package/src/components/button/Button.tsx +7 -0
- package/src/components/checkbox/Checkbox.tsx +6 -3
- package/src/components/comparison-table/ComparisonTable.test.tsx +43 -0
- package/src/components/comparison-table/ComparisonTable.tsx +142 -0
- package/src/components/comparison-table/index.ts +2 -0
- package/src/components/contact-strip/ContactStrip.test.tsx +25 -0
- package/src/components/contact-strip/ContactStrip.tsx +60 -0
- package/src/components/contact-strip/index.ts +2 -0
- package/src/components/container/Container.test.tsx +23 -0
- package/src/components/container/Container.tsx +48 -0
- package/src/components/container/index.ts +2 -0
- package/src/components/cta-section/CTASection.test.tsx +30 -0
- package/src/components/cta-section/CTASection.tsx +88 -0
- package/src/components/cta-section/index.ts +2 -0
- package/src/components/date-picker/DatePicker.test.tsx +7 -0
- package/src/components/date-picker/DatePicker.tsx +9 -4
- package/src/components/date-range-picker/DateRangePicker.test.tsx +36 -0
- package/src/components/date-range-picker/DateRangePicker.tsx +154 -0
- package/src/components/date-range-picker/index.ts +2 -0
- package/src/components/dialog/Dialog.nested.test.tsx +72 -0
- package/src/components/dialog/Dialog.tsx +4 -1
- package/src/components/drawer/Drawer.tsx +4 -1
- package/src/components/empty-state/EmptyState.test.tsx +12 -0
- package/src/components/empty-state/EmptyState.tsx +21 -4
- package/src/components/feature-grid/FeatureGrid.test.tsx +33 -0
- package/src/components/feature-grid/FeatureGrid.tsx +80 -0
- package/src/components/feature-grid/index.ts +2 -0
- package/src/components/feature-row/FeatureRow.test.tsx +33 -0
- package/src/components/feature-row/FeatureRow.tsx +71 -0
- package/src/components/feature-row/index.ts +2 -0
- package/src/components/file-upload/FileUpload.test.tsx +16 -0
- package/src/components/file-upload/FileUpload.tsx +12 -3
- package/src/components/filter-bar/FilterBar.test.tsx +16 -0
- package/src/components/filter-bar/FilterBar.tsx +24 -1
- package/src/components/filter-chips/FilterChips.test.tsx +47 -0
- package/src/components/filter-chips/FilterChips.tsx +96 -0
- package/src/components/filter-chips/index.ts +2 -0
- package/src/components/filter-panel/FilterPanel.test.tsx +46 -0
- package/src/components/filter-panel/FilterPanel.tsx +146 -0
- package/src/components/filter-panel/index.ts +2 -0
- package/src/components/form-field/FormField.tsx +1 -1
- package/src/components/hero/Hero.test.tsx +34 -0
- package/src/components/hero/Hero.tsx +128 -0
- package/src/components/hero/index.ts +2 -0
- package/src/components/link-tabs/LinkTabs.test.tsx +51 -0
- package/src/components/link-tabs/LinkTabs.tsx +150 -0
- package/src/components/link-tabs/index.ts +2 -0
- package/src/components/list/List.test.tsx +12 -0
- package/src/components/list/List.tsx +3 -3
- package/src/components/logo-cloud/LogoCloud.test.tsx +39 -0
- package/src/components/logo-cloud/LogoCloud.tsx +110 -0
- package/src/components/logo-cloud/index.ts +2 -0
- package/src/components/metric-card/MetricCard.tsx +1 -1
- package/src/components/multi-select/MultiSelect.test.tsx +46 -0
- package/src/components/multi-select/MultiSelect.tsx +206 -0
- package/src/components/multi-select/index.ts +2 -0
- package/src/components/newsletter/Newsletter.test.tsx +28 -0
- package/src/components/newsletter/Newsletter.tsx +113 -0
- package/src/components/newsletter/index.ts +2 -0
- package/src/components/page-header/PageHeader.tsx +11 -5
- package/src/components/page-header/document-head.test.ts +30 -0
- package/src/components/page-header/document-head.ts +40 -0
- package/src/components/page-header/index.ts +1 -0
- package/src/components/pagination/Pagination.test.tsx +30 -0
- package/src/components/pagination/Pagination.tsx +107 -64
- package/src/components/process-steps/ProcessSteps.test.tsx +33 -0
- package/src/components/process-steps/ProcessSteps.tsx +56 -0
- package/src/components/process-steps/index.ts +2 -0
- package/src/components/progress/Progress.tsx +10 -3
- package/src/components/radio/Radio.test.tsx +9 -0
- package/src/components/radio/Radio.tsx +6 -3
- package/src/components/range-slider/RangeSlider.test.tsx +40 -0
- package/src/components/range-slider/RangeSlider.tsx +123 -0
- package/src/components/range-slider/index.ts +2 -0
- package/src/components/search/Search.test.tsx +11 -0
- package/src/components/search/Search.tsx +4 -1
- package/src/components/section/Section.test.tsx +47 -0
- package/src/components/section/Section.tsx +111 -0
- package/src/components/section/index.ts +2 -0
- package/src/components/section-heading/SectionHeading.tsx +10 -4
- package/src/components/segmented-control/SegmentedControl.test.tsx +62 -0
- package/src/components/segmented-control/SegmentedControl.tsx +189 -0
- package/src/components/segmented-control/index.ts +2 -0
- package/src/components/select/Select.test.tsx +48 -8
- package/src/components/select/Select.tsx +16 -12
- package/src/components/site-footer/SiteFooter.test.tsx +17 -0
- package/src/components/site-footer/SiteFooter.tsx +45 -15
- package/src/components/site-header/SiteHeader.test.tsx +34 -1
- package/src/components/site-header/SiteHeader.tsx +96 -21
- package/src/components/skeleton/Skeleton.test.tsx +10 -1
- package/src/components/skeleton/Skeleton.tsx +12 -3
- package/src/components/stat-band/StatBand.test.tsx +42 -0
- package/src/components/stat-band/StatBand.tsx +77 -0
- package/src/components/stat-band/index.ts +2 -0
- package/src/components/switch/Switch.test.tsx +20 -5
- package/src/components/switch/Switch.tsx +12 -3
- package/src/components/table-of-contents/TableOfContents.tsx +10 -4
- package/src/components/testimonial/Testimonial.test.tsx +34 -0
- package/src/components/testimonial/Testimonial.tsx +64 -0
- package/src/components/testimonial/index.ts +2 -0
- package/src/components/textarea/Textarea.tsx +1 -6
- package/src/components/theme-toggle/ThemeToggle.test.tsx +41 -0
- package/src/components/theme-toggle/ThemeToggle.tsx +83 -0
- package/src/components/theme-toggle/index.ts +2 -0
- package/src/components/time-picker/TimePicker.test.tsx +7 -0
- package/src/components/time-picker/TimePicker.tsx +9 -4
- package/src/components/toast/Toaster.test.tsx +13 -2
- package/src/components/toast/Toaster.tsx +5 -2
- package/src/index.ts +24 -0
- package/src/manifests/accordion.manifest.json +1 -1
- package/src/manifests/alert.manifest.json +55 -9
- package/src/manifests/announcement-bar.manifest.json +108 -0
- package/src/manifests/app-shell.manifest.json +15 -1
- package/src/manifests/applied-filters.manifest.json +89 -0
- package/src/manifests/article-card.manifest.json +106 -0
- package/src/manifests/auth-layout.manifest.json +16 -3
- package/src/manifests/autocomplete.manifest.json +15 -1
- package/src/manifests/avatar.manifest.json +1 -1
- package/src/manifests/badge.manifest.json +5 -3
- package/src/manifests/block.manifest.json +33 -8
- package/src/manifests/breadcrumb.manifest.json +26 -1
- package/src/manifests/button-group.manifest.json +23 -5
- package/src/manifests/button.manifest.json +11 -7
- package/src/manifests/card.manifest.json +1 -1
- package/src/manifests/checkbox.manifest.json +29 -8
- package/src/manifests/comparison-table.manifest.json +106 -0
- package/src/manifests/confirm-dialog.manifest.json +1 -1
- package/src/manifests/contact-strip.manifest.json +82 -0
- package/src/manifests/container.manifest.json +81 -0
- package/src/manifests/cta-section.manifest.json +154 -0
- package/src/manifests/data-table.manifest.json +1 -1
- package/src/manifests/date-picker.manifest.json +8 -1
- package/src/manifests/date-range-picker.manifest.json +103 -0
- package/src/manifests/dialog.manifest.json +1 -1
- package/src/manifests/drawer.manifest.json +50 -12
- package/src/manifests/empty-state.manifest.json +14 -1
- package/src/manifests/feature-grid.manifest.json +93 -0
- package/src/manifests/feature-row.manifest.json +111 -0
- package/src/manifests/fieldset.manifest.json +30 -8
- package/src/manifests/file-upload.manifest.json +22 -1
- package/src/manifests/filter-bar.manifest.json +29 -3
- package/src/manifests/filter-chips.manifest.json +98 -0
- package/src/manifests/filter-panel.manifest.json +130 -0
- package/src/manifests/flex.manifest.json +73 -16
- package/src/manifests/form-field.manifest.json +1 -1
- package/src/manifests/form-layout.manifest.json +36 -10
- package/src/manifests/form.manifest.json +25 -7
- package/src/manifests/grid.manifest.json +55 -15
- package/src/manifests/heading.manifest.json +29 -8
- package/src/manifests/hero.manifest.json +202 -0
- package/src/manifests/input-group.manifest.json +25 -6
- package/src/manifests/input.manifest.json +1 -1
- package/src/manifests/label.manifest.json +21 -5
- package/src/manifests/link-tabs.manifest.json +152 -0
- package/src/manifests/link.manifest.json +1 -1
- package/src/manifests/list.manifest.json +24 -9
- package/src/manifests/logo-cloud.manifest.json +107 -0
- package/src/manifests/menu.manifest.json +1 -1
- package/src/manifests/metric-card.manifest.json +2 -2
- package/src/manifests/multi-select.manifest.json +127 -0
- package/src/manifests/newsletter.manifest.json +130 -0
- package/src/manifests/page-header.manifest.json +24 -1
- package/src/manifests/pagination.manifest.json +24 -1
- package/src/manifests/password-input.manifest.json +1 -1
- package/src/manifests/popover.manifest.json +62 -10
- package/src/manifests/process-steps.manifest.json +83 -0
- package/src/manifests/progress.manifest.json +29 -5
- package/src/manifests/prose.manifest.json +1 -1
- package/src/manifests/radio.manifest.json +26 -7
- package/src/manifests/range-slider.manifest.json +145 -0
- package/src/manifests/search.manifest.json +7 -1
- package/src/manifests/section-heading.manifest.json +19 -1
- package/src/manifests/section.manifest.json +146 -0
- package/src/manifests/segmented-control.manifest.json +141 -0
- package/src/manifests/select-menu.manifest.json +1 -1
- package/src/manifests/select.manifest.json +18 -7
- package/src/manifests/separator.manifest.json +15 -5
- package/src/manifests/site-footer.manifest.json +29 -1
- package/src/manifests/site-header.manifest.json +63 -1
- package/src/manifests/skeleton.manifest.json +7 -1
- package/src/manifests/spinner.manifest.json +1 -1
- package/src/manifests/stat-band.manifest.json +116 -0
- package/src/manifests/stepper.manifest.json +1 -1
- package/src/manifests/switch.manifest.json +17 -5
- package/src/manifests/table-card.manifest.json +1 -1
- package/src/manifests/table-of-contents.manifest.json +13 -1
- package/src/manifests/table.manifest.json +47 -8
- package/src/manifests/tabs.manifest.json +1 -1
- package/src/manifests/testimonial.manifest.json +112 -0
- package/src/manifests/text.manifest.json +32 -8
- package/src/manifests/textarea.manifest.json +17 -5
- package/src/manifests/theme-toggle.manifest.json +118 -0
- package/src/manifests/time-picker.manifest.json +8 -1
- package/src/manifests/timeline.manifest.json +1 -1
- package/src/manifests/toast.manifest.json +8 -1
- package/src/manifests/tooltip.manifest.json +18 -5
- package/src/styles-full.css +9 -0
- package/src/styles.css +133 -0
- package/src/utils/modal-layer.ts +43 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../src/components/data-table/DataTable.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { cn } from '../../utils/cn';\nimport { Pagination } from '../pagination/Pagination';\nimport { Skeleton } from '../skeleton/Skeleton';\nimport { Checkbox } from '../checkbox/Checkbox';\n\nexport type DataTableColumn<T> = {\n /** Unique column key; also the value passed to onSortChange when sortable. */\n key: string;\n /** Header cell content. */\n header: React.ReactNode;\n /**\n * Cell renderer. Defaults to reading `row[key]` (nullish values render\n * as an em dash).\n */\n cell?: (row: T, index: number) => React.ReactNode;\n /** Enables a sort toggle on this column's header. */\n sortable?: boolean;\n align?: 'left' | 'center' | 'right';\n /** Extra classes for the th/td cells (e.g. 'w-40', 'hidden sm:table-cell'). */\n className?: string;\n /** Per-cell click callback — the cell content renders as a button. */\n onClick?: (row: T) => void;\n};\n\nexport type SortIconState = 'none' | 'asc' | 'desc';\n\nexport type DataTableProps<T> = {\n /** Column configuration — everything about the table's shape. */\n columns: DataTableColumn<T>[];\n /** Row data. */\n data: T[];\n /** Stable id per row (React key + test hooks). */\n rowId: (row: T) => string;\n /** Accessible table caption (visible; pass captionHidden styling to hide). */\n caption?: string;\n /** Initial sort (uncontrolled). Omit for no initial sort. */\n defaultSort?: { key: string; dir: 'asc' | 'desc' } | null;\n /** Controlled sort. */\n sortKey?: string | null;\n sortDir?: 'asc' | 'desc';\n /**\n * Fires when the sort changes (controlled or not) — wire it to a server\n * query to sort at the database while DataTable renders aria-sort.\n */\n onSortChange?: (key: string, dir: 'asc' | 'desc') => void;\n /** Replace the default ▲/▼/↕ header glyphs. */\n renderSortIcon?: (state: SortIconState) => React.ReactNode;\n /** Rows per page; enables pagination when set. */\n pageSize?: number;\n /** Controlled page (1-based) when pageSize is set. */\n page?: number;\n /** Total page count (manual/server pagination). */\n pageCount?: number;\n /** Total row count across all pages (summary + derived page count). */\n total?: number;\n /** Server pagination: render `data` as-is; don't slice or sort client-side. */\n manualPagination?: boolean;\n /** Selected row ids (controlled). Enables the leading selection column. */\n selectedRowIds?: string[];\n /** Fires with the full selection after a row or select-all toggle. */\n onSelectedRowIdsChange?: (ids: string[]) => void;\n /** Disable selection for individual rows. */\n isRowSelectable?: (row: T) => boolean;\n /** Rendered above the table while at least one row is selected. */\n bulkActions?: React.ReactNode;\n /** Fires on page change (controlled or not). */\n onPageChange?: (page: number) => void;\n /** Click/keyboard activation on a row. */\n onRowClick?: (row: T) => void;\n /** Message shown when data is empty. */\n emptyMessage?: string;\n /** Accessible label for the select-all checkbox (default \"Select all rows\"). */\n selectAllLabel?: string;\n /** Pin the header while the body scrolls (needs a max-height on the wrapper via className). */\n stickyHeader?: boolean;\n /** Compact row density. */\n density?: 'default' | 'compact';\n /** Zebra-striped rows. */\n zebra?: boolean;\n /** Render skeleton placeholder rows (announced via aria-busy). */\n loading?: boolean;\n /**\n * Skeleton row count while loading (defaults to the page size, else 5).\n * Match it to your visible data length so rows don't jump when real\n * data replaces the placeholders.\n */\n loadingRows?: number;\n className?: string;\n};\n\ntype SortState = { key: string; dir: 'asc' | 'desc' } | null;\n\nfunction compareValues(a: unknown, b: unknown): number {\n if (typeof a === 'number' && typeof b === 'number') return a - b;\n if (a instanceof Date && b instanceof Date) return a.getTime() - b.getTime();\n const an = a == null ? '' : String(a);\n const bn = b == null ? '' : String(b);\n return an.localeCompare(bn, undefined, { numeric: true, sensitivity: 'base' });\n}\n\n/**\n * Config-driven table: one component + a `columns` config that owns shape,\n * sorting, pagination, and row interaction. Built-in sorting toggles with\n * aria-sort, cursor pagination when `pageSize` is set, and a friendly empty\n * state — so most tables never need hand-rolled table code.\n */\nexport function DataTable<T>({\n columns,\n data,\n rowId,\n caption,\n defaultSort = null,\n sortKey,\n sortDir,\n onSortChange,\n renderSortIcon,\n pageSize,\n page,\n onPageChange,\n pageCount: pageCountProp,\n total,\n manualPagination = false,\n selectedRowIds,\n onSelectedRowIdsChange,\n isRowSelectable,\n bulkActions,\n onRowClick,\n emptyMessage = 'No results.',\n selectAllLabel = 'Select all rows',\n stickyHeader,\n density = 'default',\n zebra,\n loading,\n loadingRows,\n className,\n}: DataTableProps<T>) {\n const [internalSort, setInternalSort] = React.useState<SortState>(defaultSort);\n const [internalPage, setInternalPage] = React.useState(1);\n\n const sort = React.useMemo<SortState>(() => {\n if (sortKey !== undefined) {\n return sortKey === null ? null : { key: sortKey, dir: sortDir ?? 'asc' };\n }\n return internalSort;\n }, [sortKey, sortDir, internalSort]);\n const currentPage = page ?? internalPage;\n\n const applySort = (key: string) => {\n const nextDir: 'asc' | 'desc' = sort?.key === key && sort.dir === 'asc' ? 'desc' : 'asc';\n if (sortKey === undefined) setInternalSort({ key, dir: nextDir });\n onSortChange?.(key, nextDir);\n if (pageSize && currentPage !== 1) setPage(1);\n };\n\n const setPage = (next: number) => {\n if (page === undefined) setInternalPage(next);\n onPageChange?.(next);\n };\n\n const sorted = React.useMemo(() => {\n if (!sort) return data;\n const column = columns.find((c) => c.key === sort.key);\n if (!column) return data;\n const read = (row: T): unknown =>\n column.cell ? undefined : (row as unknown as Record<string, unknown>)[column.key];\n // When a custom cell renders the value, fall back to the raw key access\n // for sorting — configs should keep row data addressable by column.key.\n const copy = [...data];\n copy.sort((a, b) => {\n const cmp = compareValues(\n (a as unknown as Record<string, unknown>)[column.key] ?? read(a),\n (b as unknown as Record<string, unknown>)[column.key] ?? read(b)\n );\n return sort.dir === 'asc' ? cmp : -cmp;\n });\n return copy;\n }, [data, sort, columns]);\n\n const effectiveTotal = total ?? sorted.length;\n const computedPageCount = pageSize ? Math.max(1, Math.ceil(effectiveTotal / pageSize)) : 0;\n const pageCount = pageCountProp ?? computedPageCount;\n const safePage = Math.min(currentPage, pageCount || 1);\n const visible = manualPagination\n ? data\n : pageSize\n ? sorted.slice((safePage - 1) * pageSize, safePage * pageSize)\n : sorted;\n\n // ----- Row selection (controlled or uncontrolled) -----\n const [internalSelected, setInternalSelected] = React.useState<string[]>([]);\n const selectionEnabled = selectedRowIds !== undefined || onSelectedRowIdsChange !== undefined;\n const selectedIds = selectedRowIds ?? internalSelected;\n const selectedSet = React.useMemo(() => new Set(selectedIds), [selectedIds]);\n const selectableVisible = isRowSelectable ? visible.filter(isRowSelectable) : visible;\n const allSelected = selectableVisible.length > 0 && selectableVisible.every((row) => selectedSet.has(rowId(row)));\n const someSelected = selectableVisible.some((row) => selectedSet.has(rowId(row)));\n\n const commitSelection = (next: string[]) => {\n if (selectedRowIds === undefined) setInternalSelected(next);\n onSelectedRowIdsChange?.(next);\n };\n const toggleAll = () => {\n if (allSelected) {\n const visibleIds = new Set(selectableVisible.map((row) => rowId(row)));\n commitSelection(selectedIds.filter((id) => !visibleIds.has(id)));\n return;\n }\n const merged = new Set([...selectedIds, ...selectableVisible.map((row) => rowId(row))]);\n commitSelection([...merged]);\n };\n const toggleRow = (id: string) => {\n commitSelection(selectedSet.has(id) ? selectedIds.filter((entry) => entry !== id) : [...selectedIds, id]);\n };\n\n const cellValue = (row: T, column: DataTableColumn<T>, index: number): React.ReactNode => {\n if (column.cell) return column.cell(row, index);\n const raw = (row as unknown as Record<string, unknown>)[column.key];\n if (raw == null) return '—';\n if (typeof raw === 'string' || typeof raw === 'number') return raw;\n return String(raw);\n };\n\n const alignClass = (align?: DataTableColumn<T>['align']) =>\n align === 'right' ? 'text-right' : align === 'center' ? 'text-center' : 'text-left';\n\n return (\n <div className={cn('w-full space-y-3', className)}>\n {selectionEnabled && selectedIds.length > 0 && bulkActions && (\n <div className=\"flex flex-wrap items-center justify-between gap-2 rounded-lg border border-border bg-muted/40 px-3 py-2 text-sm\">\n <span className=\"font-medium\">{selectedIds.length} selected</span>\n <div className=\"flex flex-wrap items-center gap-2\">{bulkActions}</div>\n </div>\n )}\n <div className=\"w-full overflow-x-auto rounded-lg border border-border\">\n <table\n className={cn('w-full caption-bottom', density === 'compact' ? 'text-xs' : 'text-sm')}\n >\n {caption && <caption className=\"px-3 py-2 text-left text-xs text-muted-foreground\">{caption}</caption>}\n <thead className={cn('bg-muted/50', stickyHeader && 'sticky top-0 z-10 bg-background')}>\n <tr>\n {selectionEnabled && (\n <th scope=\"col\" className=\"w-10 border-b border-border px-3 py-2\">\n <Checkbox\n aria-label={selectAllLabel}\n checked={allSelected}\n ref={(node) => {\n if (node) node.indeterminate = someSelected && !allSelected;\n }}\n onCheckedChange={toggleAll}\n />\n </th>\n )}\n {columns.map((column) => {\n const isSorted = sort?.key === column.key;\n const ariaSort = !column.sortable\n ? undefined\n : isSorted\n ? sort!.dir === 'asc'\n ? 'ascending'\n : 'descending'\n : 'none';\n return (\n <th\n key={column.key}\n scope=\"col\"\n aria-sort={ariaSort}\n className={cn(\n 'border-b border-border px-3 py-2 font-medium',\n alignClass(column.align),\n column.className\n )}\n >\n {column.sortable ? (\n <button\n type=\"button\"\n onClick={() => applySort(column.key)}\n className=\"inline-flex items-center gap-1 rounded px-1 py-0.5 transition-colors hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring\"\n >\n {column.header}\n <span aria-hidden=\"true\" className=\"text-[10px] text-muted-foreground\">\n {renderSortIcon\n ? renderSortIcon(isSorted ? (sort!.dir === 'asc' ? 'asc' : 'desc') : 'none')\n : isSorted\n ? sort!.dir === 'asc'\n ? '▲'\n : '▼'\n : '↕'}\n </span>\n </button>\n ) : (\n column.header\n )}\n </th>\n );\n })}\n </tr>\n </thead>\n <tbody aria-busy={loading || undefined}>\n {loading ? (\n Array.from(\n { length: (loadingRows ?? pageSize ?? Math.min(visible.length, 5)) || 5 },\n (_, skeletonRow) => (\n <tr key={`skeleton-${skeletonRow}`}>\n {selectionEnabled && (\n <td className={cn('px-3 py-2', density === 'compact' && 'px-2 py-1')}>\n <Skeleton className=\"h-4 w-4\" />\n </td>\n )}\n {columns.map((column) => (\n <td key={column.key} className={cn('px-3 py-2', density === 'compact' && 'px-2 py-1')}>\n {/* Height tracks density so skeleton rows match real row\n height and replacing them doesn't shift the table. */}\n <Skeleton className={density === 'compact' ? 'h-3 w-full' : 'h-4 w-full'} />\n </td>\n ))}\n </tr>\n )\n )\n ) : visible.length === 0 ? (\n <tr>\n <td\n colSpan={columns.length + (selectionEnabled ? 1 : 0)}\n className=\"px-3 py-8 text-center text-sm text-muted-foreground\"\n >\n {emptyMessage}\n </td>\n </tr>\n ) : (\n visible.map((row, index) => (\n <tr\n key={rowId(row)}\n tabIndex={onRowClick ? 0 : undefined}\n onClick={onRowClick ? () => onRowClick(row) : undefined}\n onKeyDown={\n onRowClick\n ? (event) => {\n if (event.key === 'Enter' || event.key === ' ') {\n event.preventDefault();\n onRowClick(row);\n }\n }\n : undefined\n }\n className={cn(\n 'border-b border-border last:border-0',\n zebra && '[&:nth-child(odd)]:bg-muted/30',\n onRowClick &&\n 'cursor-pointer transition-colors hover:bg-muted/50 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-ring'\n )}\n >\n {selectionEnabled && (\n <td\n className={cn('align-middle', density === 'compact' ? 'px-2 py-1' : 'px-3 py-2')}\n onClick={(event) => event.stopPropagation()}\n >\n <Checkbox\n aria-label={`Select row ${rowId(row)}`}\n checked={selectedSet.has(rowId(row))}\n disabled={isRowSelectable ? !isRowSelectable(row) : undefined}\n onCheckedChange={() => toggleRow(rowId(row))}\n />\n </td>\n )}\n {columns.map((column) => (\n <td\n key={column.key}\n className={cn(\n 'align-middle',\n density === 'compact' ? 'px-2 py-1' : 'px-3 py-2',\n alignClass(column.align),\n column.className\n )}\n >\n {column.onClick ? (\n <button\n type=\"button\"\n onClick={() => column.onClick!(row)}\n className=\"block w-full rounded px-1.5 py-0.5 text-left transition-colors hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring\"\n >\n {cellValue(row, column, index)}\n </button>\n ) : (\n cellValue(row, column, index)\n )}\n </td>\n ))}\n </tr>\n ))\n )}\n </tbody>\n </table>\n </div>\n {pageSize && pageCount > 1 && (\n <div className=\"flex flex-wrap items-center justify-between gap-x-4 gap-y-2\">\n <p\n className=\"min-h-8 leading-none text-xs text-muted-foreground\"\n aria-live=\"polite\"\n >\n {(safePage - 1) * pageSize + 1}–{Math.min(safePage * pageSize, effectiveTotal)} of{' '}\n {effectiveTotal}\n </p>\n <Pagination page={safePage} pageCount={pageCount} onPageChange={setPage} />\n </div>\n )}\n </div>\n );\n}\n"],"mappings":"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","names":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './DataTable';
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __copyProps = (to, from, except, desc) => {
|
|
7
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
|
+
for (let key of __getOwnPropNames(from))
|
|
9
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
10
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
11
|
+
}
|
|
12
|
+
return to;
|
|
13
|
+
};
|
|
14
|
+
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
15
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
16
|
+
var data_table_exports = {};
|
|
17
|
+
module.exports = __toCommonJS(data_table_exports);
|
|
18
|
+
__reExport(data_table_exports, require("./DataTable.js"), module.exports);
|
|
19
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
20
|
+
0 && (module.exports = {
|
|
21
|
+
...require("./DataTable.js")
|
|
22
|
+
});
|
|
23
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../src/components/data-table/index.ts"],"sourcesContent":["export * from './DataTable';\n"],"mappings":";;;;;;;;;;;;;;;AAAA;AAAA;AAAA,+BAAc,wBAAd;","names":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../src/components/data-table/index.ts"],"sourcesContent":["export * from './DataTable';\n"],"mappings":"AAAA,cAAc;","names":[]}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { type InputProps } from '../input/Input';
|
|
3
|
+
export type DatePickerProps = Omit<InputProps, 'type' | 'value' | 'defaultValue'> & {
|
|
4
|
+
/** ISO date string (YYYY-MM-DD) — controlled. */
|
|
5
|
+
value?: string;
|
|
6
|
+
/** ISO date string — initial value when uncontrolled. */
|
|
7
|
+
defaultValue?: string;
|
|
8
|
+
/** Fired with the ISO string ('' when cleared). */
|
|
9
|
+
onValueChange?: (value: string) => void;
|
|
10
|
+
/** Show a clear button once a date is selected. */
|
|
11
|
+
clearable?: boolean;
|
|
12
|
+
/** Accessible label for the clear button. Default 'Clear date'. */
|
|
13
|
+
clearLabel?: string;
|
|
14
|
+
};
|
|
15
|
+
/**
|
|
16
|
+
* Native date field with an ISO-string contract. Uses the platform picker
|
|
17
|
+
* (mobile date wheels, keyboard editing, locale formatting) rather than a
|
|
18
|
+
* custom calendar, so accessibility and input methods come for free.
|
|
19
|
+
*/
|
|
20
|
+
export declare const DatePicker: React.ForwardRefExoticComponent<Omit<InputProps, "type" | "defaultValue" | "value"> & {
|
|
21
|
+
/** ISO date string (YYYY-MM-DD) — controlled. */
|
|
22
|
+
value?: string;
|
|
23
|
+
/** ISO date string — initial value when uncontrolled. */
|
|
24
|
+
defaultValue?: string;
|
|
25
|
+
/** Fired with the ISO string ('' when cleared). */
|
|
26
|
+
onValueChange?: (value: string) => void;
|
|
27
|
+
/** Show a clear button once a date is selected. */
|
|
28
|
+
clearable?: boolean;
|
|
29
|
+
/** Accessible label for the clear button. Default 'Clear date'. */
|
|
30
|
+
clearLabel?: string;
|
|
31
|
+
} & React.RefAttributes<HTMLInputElement>>;
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
"use client";
|
|
3
|
+
var __create = Object.create;
|
|
4
|
+
var __defProp = Object.defineProperty;
|
|
5
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
6
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
7
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
8
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
9
|
+
var __export = (target, all) => {
|
|
10
|
+
for (var name in all)
|
|
11
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
12
|
+
};
|
|
13
|
+
var __copyProps = (to, from, except, desc) => {
|
|
14
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
15
|
+
for (let key of __getOwnPropNames(from))
|
|
16
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
17
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
18
|
+
}
|
|
19
|
+
return to;
|
|
20
|
+
};
|
|
21
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
22
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
23
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
24
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
25
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
26
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
27
|
+
mod
|
|
28
|
+
));
|
|
29
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
30
|
+
var DatePicker_exports = {};
|
|
31
|
+
__export(DatePicker_exports, {
|
|
32
|
+
DatePicker: () => DatePicker
|
|
33
|
+
});
|
|
34
|
+
module.exports = __toCommonJS(DatePicker_exports);
|
|
35
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
36
|
+
var React = __toESM(require("react"));
|
|
37
|
+
var import_cn = require("../../utils/cn.js");
|
|
38
|
+
var import_Input = require("../input/Input.js");
|
|
39
|
+
const DatePicker = React.forwardRef(function DatePicker2({ value, defaultValue, onValueChange, onChange, clearable = false, clearLabel = "Clear date", className, ...props }, ref) {
|
|
40
|
+
const [internal, setInternal] = React.useState(defaultValue ?? "");
|
|
41
|
+
const current = value ?? internal;
|
|
42
|
+
const commit = (next) => {
|
|
43
|
+
if (value === void 0) setInternal(next);
|
|
44
|
+
onValueChange?.(next);
|
|
45
|
+
};
|
|
46
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: (0, import_cn.cn)("relative flex items-center", className), children: [
|
|
47
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
48
|
+
import_Input.Input,
|
|
49
|
+
{
|
|
50
|
+
ref,
|
|
51
|
+
type: "date",
|
|
52
|
+
value: current,
|
|
53
|
+
onChange: (event) => {
|
|
54
|
+
commit(event.target.value);
|
|
55
|
+
onChange?.(event);
|
|
56
|
+
},
|
|
57
|
+
className: clearable && current ? "pr-9" : void 0,
|
|
58
|
+
...props
|
|
59
|
+
}
|
|
60
|
+
),
|
|
61
|
+
clearable && current && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
62
|
+
"button",
|
|
63
|
+
{
|
|
64
|
+
type: "button",
|
|
65
|
+
onClick: () => commit(""),
|
|
66
|
+
"aria-label": clearLabel,
|
|
67
|
+
className: "absolute right-2 rounded p-1 text-muted-foreground hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
68
|
+
children: "\u2715"
|
|
69
|
+
}
|
|
70
|
+
)
|
|
71
|
+
] });
|
|
72
|
+
});
|
|
73
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
74
|
+
0 && (module.exports = {
|
|
75
|
+
DatePicker
|
|
76
|
+
});
|
|
77
|
+
//# sourceMappingURL=DatePicker.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../src/components/date-picker/DatePicker.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { cn } from '../../utils/cn';\nimport { Input, type InputProps } from '../input/Input';\n\nexport type DatePickerProps = Omit<InputProps, 'type' | 'value' | 'defaultValue'> & {\n /** ISO date string (YYYY-MM-DD) — controlled. */\n value?: string;\n /** ISO date string — initial value when uncontrolled. */\n defaultValue?: string;\n /** Fired with the ISO string ('' when cleared). */\n onValueChange?: (value: string) => void;\n /** Show a clear button once a date is selected. */\n clearable?: boolean;\n /** Accessible label for the clear button. Default 'Clear date'. */\n clearLabel?: string;\n};\n\n/**\n * Native date field with an ISO-string contract. Uses the platform picker\n * (mobile date wheels, keyboard editing, locale formatting) rather than a\n * custom calendar, so accessibility and input methods come for free.\n */\nexport const DatePicker = React.forwardRef<HTMLInputElement, DatePickerProps>(function DatePicker(\n { value, defaultValue, onValueChange, onChange, clearable = false, clearLabel = 'Clear date', className, ...props },\n ref\n) {\n const [internal, setInternal] = React.useState(defaultValue ?? '');\n const current = value ?? internal;\n\n const commit = (next: string) => {\n if (value === undefined) setInternal(next);\n onValueChange?.(next);\n };\n\n return (\n <div className={cn('relative flex items-center', className)}>\n <Input\n ref={ref}\n type=\"date\"\n value={current}\n onChange={(event) => {\n commit(event.target.value);\n onChange?.(event);\n }}\n className={clearable && current ? 'pr-9' : undefined}\n {...props}\n />\n {clearable && current && (\n <button\n type=\"button\"\n onClick={() => commit('')}\n aria-label={clearLabel}\n className=\"absolute right-2 rounded p-1 text-muted-foreground hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring\"\n >\n ✕\n </button>\n )}\n </div>\n );\n});\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAqCI;AAnCJ,YAAuB;AACvB,gBAAmB;AACnB,mBAAuC;AAoBhC,MAAM,aAAa,MAAM,WAA8C,SAASA,YACrF,EAAE,OAAO,cAAc,eAAe,UAAU,YAAY,OAAO,aAAa,cAAc,WAAW,GAAG,MAAM,GAClH,KACA;AACA,QAAM,CAAC,UAAU,WAAW,IAAI,MAAM,SAAS,gBAAgB,EAAE;AACjE,QAAM,UAAU,SAAS;AAEzB,QAAM,SAAS,CAAC,SAAiB;AAC/B,QAAI,UAAU,OAAW,aAAY,IAAI;AACzC,oBAAgB,IAAI;AAAA,EACtB;AAEA,SACE,6CAAC,SAAI,eAAW,cAAG,8BAA8B,SAAS,GACxD;AAAA;AAAA,MAAC;AAAA;AAAA,QACC;AAAA,QACA,MAAK;AAAA,QACL,OAAO;AAAA,QACP,UAAU,CAAC,UAAU;AACnB,iBAAO,MAAM,OAAO,KAAK;AACzB,qBAAW,KAAK;AAAA,QAClB;AAAA,QACA,WAAW,aAAa,UAAU,SAAS;AAAA,QAC1C,GAAG;AAAA;AAAA,IACN;AAAA,IACC,aAAa,WACZ;AAAA,MAAC;AAAA;AAAA,QACC,MAAK;AAAA,QACL,SAAS,MAAM,OAAO,EAAE;AAAA,QACxB,cAAY;AAAA,QACZ,WAAU;AAAA,QACX;AAAA;AAAA,IAED;AAAA,KAEJ;AAEJ,CAAC;","names":["DatePicker"]}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
+
import * as React from "react";
|
|
4
|
+
import { cn } from "../../utils/cn.mjs";
|
|
5
|
+
import { Input } from "../input/Input.mjs";
|
|
6
|
+
const DatePicker = React.forwardRef(function DatePicker2({ value, defaultValue, onValueChange, onChange, clearable = false, clearLabel = "Clear date", className, ...props }, ref) {
|
|
7
|
+
const [internal, setInternal] = React.useState(defaultValue ?? "");
|
|
8
|
+
const current = value ?? internal;
|
|
9
|
+
const commit = (next) => {
|
|
10
|
+
if (value === void 0) setInternal(next);
|
|
11
|
+
onValueChange?.(next);
|
|
12
|
+
};
|
|
13
|
+
return /* @__PURE__ */ jsxs("div", { className: cn("relative flex items-center", className), children: [
|
|
14
|
+
/* @__PURE__ */ jsx(
|
|
15
|
+
Input,
|
|
16
|
+
{
|
|
17
|
+
ref,
|
|
18
|
+
type: "date",
|
|
19
|
+
value: current,
|
|
20
|
+
onChange: (event) => {
|
|
21
|
+
commit(event.target.value);
|
|
22
|
+
onChange?.(event);
|
|
23
|
+
},
|
|
24
|
+
className: clearable && current ? "pr-9" : void 0,
|
|
25
|
+
...props
|
|
26
|
+
}
|
|
27
|
+
),
|
|
28
|
+
clearable && current && /* @__PURE__ */ jsx(
|
|
29
|
+
"button",
|
|
30
|
+
{
|
|
31
|
+
type: "button",
|
|
32
|
+
onClick: () => commit(""),
|
|
33
|
+
"aria-label": clearLabel,
|
|
34
|
+
className: "absolute right-2 rounded p-1 text-muted-foreground hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
35
|
+
children: "\u2715"
|
|
36
|
+
}
|
|
37
|
+
)
|
|
38
|
+
] });
|
|
39
|
+
});
|
|
40
|
+
export {
|
|
41
|
+
DatePicker
|
|
42
|
+
};
|
|
43
|
+
//# sourceMappingURL=DatePicker.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../src/components/date-picker/DatePicker.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { cn } from '../../utils/cn';\nimport { Input, type InputProps } from '../input/Input';\n\nexport type DatePickerProps = Omit<InputProps, 'type' | 'value' | 'defaultValue'> & {\n /** ISO date string (YYYY-MM-DD) — controlled. */\n value?: string;\n /** ISO date string — initial value when uncontrolled. */\n defaultValue?: string;\n /** Fired with the ISO string ('' when cleared). */\n onValueChange?: (value: string) => void;\n /** Show a clear button once a date is selected. */\n clearable?: boolean;\n /** Accessible label for the clear button. Default 'Clear date'. */\n clearLabel?: string;\n};\n\n/**\n * Native date field with an ISO-string contract. Uses the platform picker\n * (mobile date wheels, keyboard editing, locale formatting) rather than a\n * custom calendar, so accessibility and input methods come for free.\n */\nexport const DatePicker = React.forwardRef<HTMLInputElement, DatePickerProps>(function DatePicker(\n { value, defaultValue, onValueChange, onChange, clearable = false, clearLabel = 'Clear date', className, ...props },\n ref\n) {\n const [internal, setInternal] = React.useState(defaultValue ?? '');\n const current = value ?? internal;\n\n const commit = (next: string) => {\n if (value === undefined) setInternal(next);\n onValueChange?.(next);\n };\n\n return (\n <div className={cn('relative flex items-center', className)}>\n <Input\n ref={ref}\n type=\"date\"\n value={current}\n onChange={(event) => {\n commit(event.target.value);\n onChange?.(event);\n }}\n className={clearable && current ? 'pr-9' : undefined}\n {...props}\n />\n {clearable && current && (\n <button\n type=\"button\"\n onClick={() => commit('')}\n aria-label={clearLabel}\n className=\"absolute right-2 rounded p-1 text-muted-foreground hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring\"\n >\n ✕\n </button>\n )}\n </div>\n );\n});\n"],"mappings":";AAqCI,SACE,KADF;AAnCJ,YAAY,WAAW;AACvB,SAAS,UAAU;AACnB,SAAS,aAA8B;AAoBhC,MAAM,aAAa,MAAM,WAA8C,SAASA,YACrF,EAAE,OAAO,cAAc,eAAe,UAAU,YAAY,OAAO,aAAa,cAAc,WAAW,GAAG,MAAM,GAClH,KACA;AACA,QAAM,CAAC,UAAU,WAAW,IAAI,MAAM,SAAS,gBAAgB,EAAE;AACjE,QAAM,UAAU,SAAS;AAEzB,QAAM,SAAS,CAAC,SAAiB;AAC/B,QAAI,UAAU,OAAW,aAAY,IAAI;AACzC,oBAAgB,IAAI;AAAA,EACtB;AAEA,SACE,qBAAC,SAAI,WAAW,GAAG,8BAA8B,SAAS,GACxD;AAAA;AAAA,MAAC;AAAA;AAAA,QACC;AAAA,QACA,MAAK;AAAA,QACL,OAAO;AAAA,QACP,UAAU,CAAC,UAAU;AACnB,iBAAO,MAAM,OAAO,KAAK;AACzB,qBAAW,KAAK;AAAA,QAClB;AAAA,QACA,WAAW,aAAa,UAAU,SAAS;AAAA,QAC1C,GAAG;AAAA;AAAA,IACN;AAAA,IACC,aAAa,WACZ;AAAA,MAAC;AAAA;AAAA,QACC,MAAK;AAAA,QACL,SAAS,MAAM,OAAO,EAAE;AAAA,QACxB,cAAY;AAAA,QACZ,WAAU;AAAA,QACX;AAAA;AAAA,IAED;AAAA,KAEJ;AAEJ,CAAC;","names":["DatePicker"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './DatePicker';
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __copyProps = (to, from, except, desc) => {
|
|
7
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
|
+
for (let key of __getOwnPropNames(from))
|
|
9
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
10
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
11
|
+
}
|
|
12
|
+
return to;
|
|
13
|
+
};
|
|
14
|
+
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
15
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
16
|
+
var date_picker_exports = {};
|
|
17
|
+
module.exports = __toCommonJS(date_picker_exports);
|
|
18
|
+
__reExport(date_picker_exports, require("./DatePicker.js"), module.exports);
|
|
19
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
20
|
+
0 && (module.exports = {
|
|
21
|
+
...require("./DatePicker.js")
|
|
22
|
+
});
|
|
23
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../src/components/date-picker/index.ts"],"sourcesContent":["export * from './DatePicker';\n"],"mappings":";;;;;;;;;;;;;;;AAAA;AAAA;AAAA,gCAAc,yBAAd;","names":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../src/components/date-picker/index.ts"],"sourcesContent":["export * from './DatePicker';\n"],"mappings":"AAAA,cAAc;","names":[]}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export type DateRange = {
|
|
3
|
+
/** ISO date (YYYY-MM-DD) or an empty string. */
|
|
4
|
+
start?: string;
|
|
5
|
+
end?: string;
|
|
6
|
+
};
|
|
7
|
+
export type DateRangePreset = {
|
|
8
|
+
label: string;
|
|
9
|
+
/** Number of days back from today. */
|
|
10
|
+
days?: number;
|
|
11
|
+
/** Start at January 1 of the current year. */
|
|
12
|
+
ytd?: boolean;
|
|
13
|
+
};
|
|
14
|
+
export type DateRangePickerProps = Omit<React.HTMLAttributes<HTMLDivElement>, 'value' | 'defaultValue' | 'onChange'> & {
|
|
15
|
+
/** Controlled range. */
|
|
16
|
+
value?: DateRange;
|
|
17
|
+
/** Initial range when uncontrolled. */
|
|
18
|
+
defaultValue?: DateRange;
|
|
19
|
+
/** Fires with the next ISO range. */
|
|
20
|
+
onValueChange?: (range: DateRange) => void;
|
|
21
|
+
/** Accessible label for the start field. Default "From". */
|
|
22
|
+
startLabel?: string;
|
|
23
|
+
/** Accessible label for the end field. Default "To". */
|
|
24
|
+
endLabel?: string;
|
|
25
|
+
/** Preset buttons. Defaults to 7 days, 30 days, 90 days and YTD. */
|
|
26
|
+
presets?: DateRangePreset[];
|
|
27
|
+
/** Show the preset row. Default true. */
|
|
28
|
+
showPresets?: boolean;
|
|
29
|
+
disabled?: boolean;
|
|
30
|
+
};
|
|
31
|
+
/**
|
|
32
|
+
* Start/end date range with ISO strings and quick presets. Partial ranges are
|
|
33
|
+
* allowed; when both ends are present the end can never precede the start.
|
|
34
|
+
*/
|
|
35
|
+
export declare const DateRangePicker: React.ForwardRefExoticComponent<Omit<React.HTMLAttributes<HTMLDivElement>, "defaultValue" | "onChange" | "value"> & {
|
|
36
|
+
/** Controlled range. */
|
|
37
|
+
value?: DateRange;
|
|
38
|
+
/** Initial range when uncontrolled. */
|
|
39
|
+
defaultValue?: DateRange;
|
|
40
|
+
/** Fires with the next ISO range. */
|
|
41
|
+
onValueChange?: (range: DateRange) => void;
|
|
42
|
+
/** Accessible label for the start field. Default "From". */
|
|
43
|
+
startLabel?: string;
|
|
44
|
+
/** Accessible label for the end field. Default "To". */
|
|
45
|
+
endLabel?: string;
|
|
46
|
+
/** Preset buttons. Defaults to 7 days, 30 days, 90 days and YTD. */
|
|
47
|
+
presets?: DateRangePreset[];
|
|
48
|
+
/** Show the preset row. Default true. */
|
|
49
|
+
showPresets?: boolean;
|
|
50
|
+
disabled?: boolean;
|
|
51
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
"use client";
|
|
3
|
+
var __create = Object.create;
|
|
4
|
+
var __defProp = Object.defineProperty;
|
|
5
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
6
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
7
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
8
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
9
|
+
var __export = (target, all) => {
|
|
10
|
+
for (var name in all)
|
|
11
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
12
|
+
};
|
|
13
|
+
var __copyProps = (to, from, except, desc) => {
|
|
14
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
15
|
+
for (let key of __getOwnPropNames(from))
|
|
16
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
17
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
18
|
+
}
|
|
19
|
+
return to;
|
|
20
|
+
};
|
|
21
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
22
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
23
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
24
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
25
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
26
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
27
|
+
mod
|
|
28
|
+
));
|
|
29
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
30
|
+
var DateRangePicker_exports = {};
|
|
31
|
+
__export(DateRangePicker_exports, {
|
|
32
|
+
DateRangePicker: () => DateRangePicker
|
|
33
|
+
});
|
|
34
|
+
module.exports = __toCommonJS(DateRangePicker_exports);
|
|
35
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
36
|
+
var React = __toESM(require("react"));
|
|
37
|
+
var import_cn = require("../../utils/cn.js");
|
|
38
|
+
var import_Button = require("../button/Button.js");
|
|
39
|
+
var import_DatePicker = require("../date-picker/DatePicker.js");
|
|
40
|
+
const DEFAULT_PRESETS = [
|
|
41
|
+
{ label: "7 days", days: 7 },
|
|
42
|
+
{ label: "30 days", days: 30 },
|
|
43
|
+
{ label: "90 days", days: 90 },
|
|
44
|
+
{ label: "YTD", ytd: true }
|
|
45
|
+
];
|
|
46
|
+
function toIsoDate(date) {
|
|
47
|
+
const year = date.getFullYear();
|
|
48
|
+
const month = String(date.getMonth() + 1).padStart(2, "0");
|
|
49
|
+
const day = String(date.getDate()).padStart(2, "0");
|
|
50
|
+
return `${year}-${month}-${day}`;
|
|
51
|
+
}
|
|
52
|
+
const DateRangePicker = React.forwardRef(
|
|
53
|
+
function DateRangePicker2({
|
|
54
|
+
value,
|
|
55
|
+
defaultValue,
|
|
56
|
+
onValueChange,
|
|
57
|
+
startLabel = "From",
|
|
58
|
+
endLabel = "To",
|
|
59
|
+
presets = DEFAULT_PRESETS,
|
|
60
|
+
showPresets = true,
|
|
61
|
+
disabled = false,
|
|
62
|
+
className,
|
|
63
|
+
...props
|
|
64
|
+
}, ref) {
|
|
65
|
+
const startId = React.useId();
|
|
66
|
+
const endId = React.useId();
|
|
67
|
+
const [internal, setInternal] = React.useState(defaultValue ?? {});
|
|
68
|
+
const current = value ?? internal;
|
|
69
|
+
const commit = (next) => {
|
|
70
|
+
if (value === void 0) setInternal(next);
|
|
71
|
+
onValueChange?.(next);
|
|
72
|
+
};
|
|
73
|
+
const setStart = (start) => {
|
|
74
|
+
const end = current.end && start && current.end < start ? start : current.end;
|
|
75
|
+
commit({ start, end });
|
|
76
|
+
};
|
|
77
|
+
const setEnd = (end) => {
|
|
78
|
+
const start = current.start && end && end < current.start ? end : current.start;
|
|
79
|
+
commit({ start, end });
|
|
80
|
+
};
|
|
81
|
+
const applyPreset = (preset) => {
|
|
82
|
+
const end = /* @__PURE__ */ new Date();
|
|
83
|
+
const start = /* @__PURE__ */ new Date();
|
|
84
|
+
if (preset.ytd) {
|
|
85
|
+
start.setMonth(0, 1);
|
|
86
|
+
} else {
|
|
87
|
+
start.setDate(start.getDate() - Math.max(0, (preset.days ?? 1) - 1));
|
|
88
|
+
}
|
|
89
|
+
commit({ start: toIsoDate(start), end: toIsoDate(end) });
|
|
90
|
+
};
|
|
91
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { ref, className: (0, import_cn.cn)("flex flex-col gap-3", className), ...props, children: [
|
|
92
|
+
showPresets && presets.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "flex flex-wrap gap-2", children: presets.map((preset) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
93
|
+
import_Button.Button,
|
|
94
|
+
{
|
|
95
|
+
type: "button",
|
|
96
|
+
variant: "outline",
|
|
97
|
+
size: "sm",
|
|
98
|
+
onClick: () => applyPreset(preset),
|
|
99
|
+
disabled,
|
|
100
|
+
children: preset.label
|
|
101
|
+
},
|
|
102
|
+
preset.label
|
|
103
|
+
)) }),
|
|
104
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "grid gap-3 sm:grid-cols-2", children: [
|
|
105
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { children: [
|
|
106
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("label", { htmlFor: startId, className: "mb-1 block text-xs font-medium text-muted-foreground", children: startLabel }),
|
|
107
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
108
|
+
import_DatePicker.DatePicker,
|
|
109
|
+
{
|
|
110
|
+
id: startId,
|
|
111
|
+
value: current.start ?? "",
|
|
112
|
+
onValueChange: setStart,
|
|
113
|
+
max: current.end || void 0,
|
|
114
|
+
disabled,
|
|
115
|
+
clearable: true
|
|
116
|
+
}
|
|
117
|
+
)
|
|
118
|
+
] }),
|
|
119
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { children: [
|
|
120
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("label", { htmlFor: endId, className: "mb-1 block text-xs font-medium text-muted-foreground", children: endLabel }),
|
|
121
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
122
|
+
import_DatePicker.DatePicker,
|
|
123
|
+
{
|
|
124
|
+
id: endId,
|
|
125
|
+
value: current.end ?? "",
|
|
126
|
+
onValueChange: setEnd,
|
|
127
|
+
min: current.start || void 0,
|
|
128
|
+
disabled,
|
|
129
|
+
clearable: true
|
|
130
|
+
}
|
|
131
|
+
)
|
|
132
|
+
] })
|
|
133
|
+
] })
|
|
134
|
+
] });
|
|
135
|
+
}
|
|
136
|
+
);
|
|
137
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
138
|
+
0 && (module.exports = {
|
|
139
|
+
DateRangePicker
|
|
140
|
+
});
|
|
141
|
+
//# sourceMappingURL=DateRangePicker.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../src/components/date-range-picker/DateRangePicker.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { cn } from '../../utils/cn';\nimport { Button } from '../button/Button';\nimport { DatePicker } from '../date-picker/DatePicker';\n\nexport type DateRange = {\n /** ISO date (YYYY-MM-DD) or an empty string. */\n start?: string;\n end?: string;\n};\n\nexport type DateRangePreset = {\n label: string;\n /** Number of days back from today. */\n days?: number;\n /** Start at January 1 of the current year. */\n ytd?: boolean;\n};\n\nexport type DateRangePickerProps = Omit<React.HTMLAttributes<HTMLDivElement>, 'value' | 'defaultValue' | 'onChange'> & {\n /** Controlled range. */\n value?: DateRange;\n /** Initial range when uncontrolled. */\n defaultValue?: DateRange;\n /** Fires with the next ISO range. */\n onValueChange?: (range: DateRange) => void;\n /** Accessible label for the start field. Default \"From\". */\n startLabel?: string;\n /** Accessible label for the end field. Default \"To\". */\n endLabel?: string;\n /** Preset buttons. Defaults to 7 days, 30 days, 90 days and YTD. */\n presets?: DateRangePreset[];\n /** Show the preset row. Default true. */\n showPresets?: boolean;\n disabled?: boolean;\n};\n\nconst DEFAULT_PRESETS: DateRangePreset[] = [\n { label: '7 days', days: 7 },\n { label: '30 days', days: 30 },\n { label: '90 days', days: 90 },\n { label: 'YTD', ytd: true },\n];\n\nfunction toIsoDate(date: Date): string {\n const year = date.getFullYear();\n const month = String(date.getMonth() + 1).padStart(2, '0');\n const day = String(date.getDate()).padStart(2, '0');\n return `${year}-${month}-${day}`;\n}\n\n/**\n * Start/end date range with ISO strings and quick presets. Partial ranges are\n * allowed; when both ends are present the end can never precede the start.\n */\nexport const DateRangePicker = React.forwardRef<HTMLDivElement, DateRangePickerProps>(\n function DateRangePicker(\n {\n value,\n defaultValue,\n onValueChange,\n startLabel = 'From',\n endLabel = 'To',\n presets = DEFAULT_PRESETS,\n showPresets = true,\n disabled = false,\n className,\n ...props\n },\n ref\n ) {\n const startId = React.useId();\n const endId = React.useId();\n const [internal, setInternal] = React.useState<DateRange>(defaultValue ?? {});\n const current = value ?? internal;\n\n const commit = (next: DateRange) => {\n if (value === undefined) setInternal(next);\n onValueChange?.(next);\n };\n\n const setStart = (start: string) => {\n const end = current.end && start && current.end < start ? start : current.end;\n commit({ start, end });\n };\n\n const setEnd = (end: string) => {\n const start = current.start && end && end < current.start ? end : current.start;\n commit({ start, end });\n };\n\n const applyPreset = (preset: DateRangePreset) => {\n const end = new Date();\n const start = new Date();\n if (preset.ytd) {\n start.setMonth(0, 1);\n } else {\n start.setDate(start.getDate() - Math.max(0, (preset.days ?? 1) - 1));\n }\n commit({ start: toIsoDate(start), end: toIsoDate(end) });\n };\n\n return (\n <div ref={ref} className={cn('flex flex-col gap-3', className)} {...props}>\n {showPresets && presets.length > 0 && (\n <div className=\"flex flex-wrap gap-2\">\n {presets.map((preset) => (\n <Button\n key={preset.label}\n type=\"button\"\n variant=\"outline\"\n size=\"sm\"\n onClick={() => applyPreset(preset)}\n disabled={disabled}\n >\n {preset.label}\n </Button>\n ))}\n </div>\n )}\n <div className=\"grid gap-3 sm:grid-cols-2\">\n <div>\n <label htmlFor={startId} className=\"mb-1 block text-xs font-medium text-muted-foreground\">\n {startLabel}\n </label>\n <DatePicker\n id={startId}\n value={current.start ?? ''}\n onValueChange={setStart}\n max={current.end || undefined}\n disabled={disabled}\n clearable\n />\n </div>\n <div>\n <label htmlFor={endId} className=\"mb-1 block text-xs font-medium text-muted-foreground\">\n {endLabel}\n </label>\n <DatePicker\n id={endId}\n value={current.end ?? ''}\n onValueChange={setEnd}\n min={current.start || undefined}\n disabled={disabled}\n clearable\n />\n </div>\n </div>\n </div>\n );\n }\n);\n"],"mappings":"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","names":["DateRangePicker"]}
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
+
import * as React from "react";
|
|
4
|
+
import { cn } from "../../utils/cn.mjs";
|
|
5
|
+
import { Button } from "../button/Button.mjs";
|
|
6
|
+
import { DatePicker } from "../date-picker/DatePicker.mjs";
|
|
7
|
+
const DEFAULT_PRESETS = [
|
|
8
|
+
{ label: "7 days", days: 7 },
|
|
9
|
+
{ label: "30 days", days: 30 },
|
|
10
|
+
{ label: "90 days", days: 90 },
|
|
11
|
+
{ label: "YTD", ytd: true }
|
|
12
|
+
];
|
|
13
|
+
function toIsoDate(date) {
|
|
14
|
+
const year = date.getFullYear();
|
|
15
|
+
const month = String(date.getMonth() + 1).padStart(2, "0");
|
|
16
|
+
const day = String(date.getDate()).padStart(2, "0");
|
|
17
|
+
return `${year}-${month}-${day}`;
|
|
18
|
+
}
|
|
19
|
+
const DateRangePicker = React.forwardRef(
|
|
20
|
+
function DateRangePicker2({
|
|
21
|
+
value,
|
|
22
|
+
defaultValue,
|
|
23
|
+
onValueChange,
|
|
24
|
+
startLabel = "From",
|
|
25
|
+
endLabel = "To",
|
|
26
|
+
presets = DEFAULT_PRESETS,
|
|
27
|
+
showPresets = true,
|
|
28
|
+
disabled = false,
|
|
29
|
+
className,
|
|
30
|
+
...props
|
|
31
|
+
}, ref) {
|
|
32
|
+
const startId = React.useId();
|
|
33
|
+
const endId = React.useId();
|
|
34
|
+
const [internal, setInternal] = React.useState(defaultValue ?? {});
|
|
35
|
+
const current = value ?? internal;
|
|
36
|
+
const commit = (next) => {
|
|
37
|
+
if (value === void 0) setInternal(next);
|
|
38
|
+
onValueChange?.(next);
|
|
39
|
+
};
|
|
40
|
+
const setStart = (start) => {
|
|
41
|
+
const end = current.end && start && current.end < start ? start : current.end;
|
|
42
|
+
commit({ start, end });
|
|
43
|
+
};
|
|
44
|
+
const setEnd = (end) => {
|
|
45
|
+
const start = current.start && end && end < current.start ? end : current.start;
|
|
46
|
+
commit({ start, end });
|
|
47
|
+
};
|
|
48
|
+
const applyPreset = (preset) => {
|
|
49
|
+
const end = /* @__PURE__ */ new Date();
|
|
50
|
+
const start = /* @__PURE__ */ new Date();
|
|
51
|
+
if (preset.ytd) {
|
|
52
|
+
start.setMonth(0, 1);
|
|
53
|
+
} else {
|
|
54
|
+
start.setDate(start.getDate() - Math.max(0, (preset.days ?? 1) - 1));
|
|
55
|
+
}
|
|
56
|
+
commit({ start: toIsoDate(start), end: toIsoDate(end) });
|
|
57
|
+
};
|
|
58
|
+
return /* @__PURE__ */ jsxs("div", { ref, className: cn("flex flex-col gap-3", className), ...props, children: [
|
|
59
|
+
showPresets && presets.length > 0 && /* @__PURE__ */ jsx("div", { className: "flex flex-wrap gap-2", children: presets.map((preset) => /* @__PURE__ */ jsx(
|
|
60
|
+
Button,
|
|
61
|
+
{
|
|
62
|
+
type: "button",
|
|
63
|
+
variant: "outline",
|
|
64
|
+
size: "sm",
|
|
65
|
+
onClick: () => applyPreset(preset),
|
|
66
|
+
disabled,
|
|
67
|
+
children: preset.label
|
|
68
|
+
},
|
|
69
|
+
preset.label
|
|
70
|
+
)) }),
|
|
71
|
+
/* @__PURE__ */ jsxs("div", { className: "grid gap-3 sm:grid-cols-2", children: [
|
|
72
|
+
/* @__PURE__ */ jsxs("div", { children: [
|
|
73
|
+
/* @__PURE__ */ jsx("label", { htmlFor: startId, className: "mb-1 block text-xs font-medium text-muted-foreground", children: startLabel }),
|
|
74
|
+
/* @__PURE__ */ jsx(
|
|
75
|
+
DatePicker,
|
|
76
|
+
{
|
|
77
|
+
id: startId,
|
|
78
|
+
value: current.start ?? "",
|
|
79
|
+
onValueChange: setStart,
|
|
80
|
+
max: current.end || void 0,
|
|
81
|
+
disabled,
|
|
82
|
+
clearable: true
|
|
83
|
+
}
|
|
84
|
+
)
|
|
85
|
+
] }),
|
|
86
|
+
/* @__PURE__ */ jsxs("div", { children: [
|
|
87
|
+
/* @__PURE__ */ jsx("label", { htmlFor: endId, className: "mb-1 block text-xs font-medium text-muted-foreground", children: endLabel }),
|
|
88
|
+
/* @__PURE__ */ jsx(
|
|
89
|
+
DatePicker,
|
|
90
|
+
{
|
|
91
|
+
id: endId,
|
|
92
|
+
value: current.end ?? "",
|
|
93
|
+
onValueChange: setEnd,
|
|
94
|
+
min: current.start || void 0,
|
|
95
|
+
disabled,
|
|
96
|
+
clearable: true
|
|
97
|
+
}
|
|
98
|
+
)
|
|
99
|
+
] })
|
|
100
|
+
] })
|
|
101
|
+
] });
|
|
102
|
+
}
|
|
103
|
+
);
|
|
104
|
+
export {
|
|
105
|
+
DateRangePicker
|
|
106
|
+
};
|
|
107
|
+
//# sourceMappingURL=DateRangePicker.mjs.map
|