@slipstream-ui/core 0.6.1 → 0.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +470 -30
- package/dist/index.d.ts +470 -30
- package/dist/index.js +1455 -750
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1442 -744
- package/dist/index.mjs.map +1 -1
- package/dist/manifests/accordion.manifest.json +7 -1
- package/dist/manifests/alert.manifest.json +1 -1
- package/dist/manifests/announcement-bar.manifest.json +1 -1
- package/dist/manifests/app-shell.manifest.json +1 -1
- package/dist/manifests/applied-filters.manifest.json +1 -1
- package/dist/manifests/article-card.manifest.json +1 -1
- package/dist/manifests/auth-layout.manifest.json +19 -1
- package/dist/manifests/autocomplete.manifest.json +1 -1
- package/dist/manifests/avatar.manifest.json +1 -1
- package/dist/manifests/badge.manifest.json +13 -1
- package/dist/manifests/block.manifest.json +1 -1
- package/dist/manifests/bottom-nav.manifest.json +130 -0
- package/dist/manifests/breadcrumb.manifest.json +1 -1
- package/dist/manifests/button-group.manifest.json +1 -1
- package/dist/manifests/button.manifest.json +1 -1
- package/dist/manifests/card.manifest.json +1 -1
- package/dist/manifests/checkbox.manifest.json +1 -1
- package/dist/manifests/comparison-table.manifest.json +1 -1
- package/dist/manifests/confirm-dialog.manifest.json +1 -1
- package/dist/manifests/contact-strip.manifest.json +1 -1
- package/dist/manifests/container.manifest.json +1 -1
- package/dist/manifests/cta-section.manifest.json +1 -1
- package/dist/manifests/data-table.manifest.json +1 -1
- package/dist/manifests/date-picker.manifest.json +1 -1
- package/dist/manifests/date-range-picker.manifest.json +1 -1
- package/dist/manifests/deal-card.manifest.json +158 -0
- package/dist/manifests/dialog.manifest.json +1 -1
- package/dist/manifests/document-card.manifest.json +108 -0
- package/dist/manifests/drawer.manifest.json +48 -2
- package/dist/manifests/empty-state.manifest.json +1 -1
- package/dist/manifests/entity-card.manifest.json +114 -0
- package/dist/manifests/feature-grid.manifest.json +1 -1
- package/dist/manifests/feature-row.manifest.json +1 -1
- package/dist/manifests/fieldset.manifest.json +1 -1
- package/dist/manifests/file-upload.manifest.json +1 -1
- package/dist/manifests/filter-bar.manifest.json +1 -1
- package/dist/manifests/filter-chips.manifest.json +1 -1
- package/dist/manifests/filter-panel.manifest.json +1 -1
- package/dist/manifests/flex.manifest.json +1 -1
- package/dist/manifests/form-field.manifest.json +1 -1
- package/dist/manifests/form-layout.manifest.json +1 -1
- package/dist/manifests/form.manifest.json +1 -1
- package/dist/manifests/grid.manifest.json +1 -1
- package/dist/manifests/heading.manifest.json +1 -1
- package/dist/manifests/hero.manifest.json +40 -8
- package/dist/manifests/input-group.manifest.json +1 -1
- package/dist/manifests/input.manifest.json +1 -1
- package/dist/manifests/label.manifest.json +1 -1
- package/dist/manifests/link-tabs.manifest.json +1 -1
- package/dist/manifests/link.manifest.json +1 -1
- package/dist/manifests/list.manifest.json +1 -1
- package/dist/manifests/load-more.manifest.json +88 -0
- package/dist/manifests/logo-cloud.manifest.json +1 -1
- package/dist/manifests/menu.manifest.json +1 -1
- package/dist/manifests/metric-card.manifest.json +36 -4
- package/dist/manifests/multi-select.manifest.json +1 -1
- package/dist/manifests/newsletter.manifest.json +1 -1
- package/dist/manifests/page-header.manifest.json +7 -1
- package/dist/manifests/pagination.manifest.json +1 -1
- package/dist/manifests/password-input.manifest.json +1 -1
- package/dist/manifests/popover.manifest.json +1 -1
- package/dist/manifests/process-steps.manifest.json +1 -1
- package/dist/manifests/progress.manifest.json +1 -1
- package/dist/manifests/prose.manifest.json +1 -1
- package/dist/manifests/radio.manifest.json +1 -1
- package/dist/manifests/range-slider.manifest.json +1 -1
- package/dist/manifests/search.manifest.json +1 -1
- package/dist/manifests/section-heading.manifest.json +1 -1
- package/dist/manifests/section.manifest.json +1 -1
- package/dist/manifests/segmented-control.manifest.json +1 -1
- package/dist/manifests/select-menu.manifest.json +2 -2
- package/dist/manifests/select.manifest.json +1 -1
- package/dist/manifests/separator.manifest.json +1 -1
- package/dist/manifests/site-footer.manifest.json +1 -1
- package/dist/manifests/site-header.manifest.json +1 -1
- package/dist/manifests/skeleton.manifest.json +1 -1
- package/dist/manifests/spinner.manifest.json +1 -1
- package/dist/manifests/stat-band.manifest.json +1 -1
- package/dist/manifests/stepper.manifest.json +69 -5
- package/dist/manifests/switch.manifest.json +1 -1
- package/dist/manifests/table-card.manifest.json +1 -1
- package/dist/manifests/table-of-contents.manifest.json +26 -5
- package/dist/manifests/table.manifest.json +1 -1
- package/dist/manifests/tabs.manifest.json +1 -1
- package/dist/manifests/testimonial.manifest.json +1 -1
- package/dist/manifests/text.manifest.json +1 -1
- package/dist/manifests/textarea.manifest.json +1 -1
- package/dist/manifests/theme-toggle.manifest.json +1 -1
- package/dist/manifests/time-picker.manifest.json +1 -1
- package/dist/manifests/timeline.manifest.json +1 -1
- package/dist/manifests/toast.manifest.json +1 -1
- package/dist/manifests/tombstone-card.manifest.json +97 -0
- package/dist/manifests/tooltip.manifest.json +1 -1
- package/dist/src/components/accordion/Accordion.d.ts +17 -1
- package/dist/src/components/accordion/Accordion.js +5 -1
- package/dist/src/components/accordion/Accordion.js.map +1 -1
- package/dist/src/components/accordion/Accordion.mjs +5 -1
- package/dist/src/components/accordion/Accordion.mjs.map +1 -1
- package/dist/src/components/auth-layout/AuthLayout.d.ts +14 -2
- package/dist/src/components/auth-layout/AuthLayout.js +10 -2
- package/dist/src/components/auth-layout/AuthLayout.js.map +1 -1
- package/dist/src/components/auth-layout/AuthLayout.mjs +10 -2
- package/dist/src/components/auth-layout/AuthLayout.mjs.map +1 -1
- package/dist/src/components/badge/Badge.d.ts +2 -0
- package/dist/src/components/badge/Badge.js +9 -3
- package/dist/src/components/badge/Badge.js.map +1 -1
- package/dist/src/components/badge/Badge.mjs +9 -3
- package/dist/src/components/badge/Badge.mjs.map +1 -1
- package/dist/src/components/bottom-nav/BottomNav.d.ts +36 -0
- package/dist/src/components/bottom-nav/BottomNav.js +90 -0
- package/dist/src/components/bottom-nav/BottomNav.js.map +1 -0
- package/dist/src/components/bottom-nav/BottomNav.mjs +66 -0
- package/dist/src/components/bottom-nav/BottomNav.mjs.map +1 -0
- package/dist/src/components/bottom-nav/index.d.ts +1 -0
- package/dist/src/components/bottom-nav/index.js +23 -0
- package/dist/src/components/bottom-nav/index.js.map +1 -0
- package/dist/src/components/bottom-nav/index.mjs +2 -0
- package/dist/src/components/bottom-nav/index.mjs.map +1 -0
- package/dist/src/components/date-picker/DatePicker.js +1 -1
- package/dist/src/components/date-picker/DatePicker.js.map +1 -1
- package/dist/src/components/date-picker/DatePicker.mjs +1 -1
- package/dist/src/components/date-picker/DatePicker.mjs.map +1 -1
- package/dist/src/components/deal-card/DealCard.d.ts +72 -0
- package/dist/src/components/deal-card/DealCard.js +108 -0
- package/dist/src/components/deal-card/DealCard.js.map +1 -0
- package/dist/src/components/deal-card/DealCard.mjs +74 -0
- package/dist/src/components/deal-card/DealCard.mjs.map +1 -0
- package/dist/src/components/deal-card/index.d.ts +2 -0
- package/dist/src/components/deal-card/index.js +29 -0
- package/dist/src/components/deal-card/index.js.map +1 -0
- package/dist/src/components/deal-card/index.mjs +5 -0
- package/dist/src/components/deal-card/index.mjs.map +1 -0
- package/dist/src/components/document-card/DocumentCard.d.ts +42 -0
- package/dist/src/components/document-card/DocumentCard.js +84 -0
- package/dist/src/components/document-card/DocumentCard.js.map +1 -0
- package/dist/src/components/document-card/DocumentCard.mjs +50 -0
- package/dist/src/components/document-card/DocumentCard.mjs.map +1 -0
- package/dist/src/components/document-card/index.d.ts +2 -0
- package/dist/src/components/document-card/index.js +29 -0
- package/dist/src/components/document-card/index.js.map +1 -0
- package/dist/src/components/document-card/index.mjs +5 -0
- package/dist/src/components/document-card/index.mjs.map +1 -0
- package/dist/src/components/drawer/Drawer.d.ts +25 -2
- package/dist/src/components/drawer/Drawer.js +97 -6
- package/dist/src/components/drawer/Drawer.js.map +1 -1
- package/dist/src/components/drawer/Drawer.mjs +97 -6
- package/dist/src/components/drawer/Drawer.mjs.map +1 -1
- package/dist/src/components/empty-state/EmptyState.d.ts +13 -4
- package/dist/src/components/empty-state/EmptyState.js +13 -1
- package/dist/src/components/empty-state/EmptyState.js.map +1 -1
- package/dist/src/components/empty-state/EmptyState.mjs +13 -1
- package/dist/src/components/empty-state/EmptyState.mjs.map +1 -1
- package/dist/src/components/entity-card/EntityCard.d.ts +78 -0
- package/dist/src/components/entity-card/EntityCard.js +95 -0
- package/dist/src/components/entity-card/EntityCard.js.map +1 -0
- package/dist/src/components/entity-card/EntityCard.mjs +60 -0
- package/dist/src/components/entity-card/EntityCard.mjs.map +1 -0
- package/dist/src/components/entity-card/index.d.ts +2 -0
- package/dist/src/components/entity-card/index.js +31 -0
- package/dist/src/components/entity-card/index.js.map +1 -0
- package/dist/src/components/entity-card/index.mjs +6 -0
- package/dist/src/components/entity-card/index.mjs.map +1 -0
- package/dist/src/components/hero/Hero.d.ts +25 -13
- package/dist/src/components/hero/Hero.js +116 -12
- package/dist/src/components/hero/Hero.js.map +1 -1
- package/dist/src/components/hero/Hero.mjs +116 -12
- package/dist/src/components/hero/Hero.mjs.map +1 -1
- package/dist/src/components/load-more/LoadMore.d.ts +34 -0
- package/dist/src/components/load-more/LoadMore.js +55 -0
- package/dist/src/components/load-more/LoadMore.js.map +1 -0
- package/dist/src/components/load-more/LoadMore.mjs +21 -0
- package/dist/src/components/load-more/LoadMore.mjs.map +1 -0
- package/dist/src/components/load-more/index.d.ts +2 -0
- package/dist/src/components/load-more/index.js +29 -0
- package/dist/src/components/load-more/index.js.map +1 -0
- package/dist/src/components/load-more/index.mjs +5 -0
- package/dist/src/components/load-more/index.mjs.map +1 -0
- package/dist/src/components/metric-card/MetricCard.d.ts +23 -4
- package/dist/src/components/metric-card/MetricCard.js +32 -5
- package/dist/src/components/metric-card/MetricCard.js.map +1 -1
- package/dist/src/components/metric-card/MetricCard.mjs +32 -5
- package/dist/src/components/metric-card/MetricCard.mjs.map +1 -1
- package/dist/src/components/page-header/PageHeader.d.ts +4 -0
- package/dist/src/components/page-header/PageHeader.js +3 -2
- package/dist/src/components/page-header/PageHeader.js.map +1 -1
- package/dist/src/components/page-header/PageHeader.mjs +3 -2
- package/dist/src/components/page-header/PageHeader.mjs.map +1 -1
- package/dist/src/components/range-slider/RangeSlider.js +6 -6
- package/dist/src/components/range-slider/RangeSlider.js.map +1 -1
- package/dist/src/components/range-slider/RangeSlider.mjs +6 -6
- package/dist/src/components/range-slider/RangeSlider.mjs.map +1 -1
- package/dist/src/components/select-menu/SelectMenu.js +2 -0
- package/dist/src/components/select-menu/SelectMenu.js.map +1 -1
- package/dist/src/components/select-menu/SelectMenu.mjs +2 -0
- package/dist/src/components/select-menu/SelectMenu.mjs.map +1 -1
- package/dist/src/components/separator/Separator.d.ts +3 -3
- package/dist/src/components/separator/Separator.js +1 -1
- package/dist/src/components/separator/Separator.js.map +1 -1
- package/dist/src/components/separator/Separator.mjs +1 -1
- package/dist/src/components/separator/Separator.mjs.map +1 -1
- package/dist/src/components/stepper/Stepper.d.ts +35 -0
- package/dist/src/components/stepper/Stepper.js +118 -25
- package/dist/src/components/stepper/Stepper.js.map +1 -1
- package/dist/src/components/stepper/Stepper.mjs +118 -25
- package/dist/src/components/stepper/Stepper.mjs.map +1 -1
- package/dist/src/components/table-of-contents/TableOfContents.d.ts +10 -2
- package/dist/src/components/table-of-contents/TableOfContents.js +13 -0
- package/dist/src/components/table-of-contents/TableOfContents.js.map +1 -1
- package/dist/src/components/table-of-contents/TableOfContents.mjs +13 -0
- package/dist/src/components/table-of-contents/TableOfContents.mjs.map +1 -1
- package/dist/src/components/tabs/Tabs.js +43 -3
- package/dist/src/components/tabs/Tabs.js.map +1 -1
- package/dist/src/components/tabs/Tabs.mjs +43 -3
- package/dist/src/components/tabs/Tabs.mjs.map +1 -1
- package/dist/src/components/time-picker/TimePicker.js +1 -1
- package/dist/src/components/time-picker/TimePicker.js.map +1 -1
- package/dist/src/components/time-picker/TimePicker.mjs +1 -1
- package/dist/src/components/time-picker/TimePicker.mjs.map +1 -1
- package/dist/src/components/timeline/Timeline.js +2 -2
- package/dist/src/components/timeline/Timeline.js.map +1 -1
- package/dist/src/components/timeline/Timeline.mjs +2 -2
- package/dist/src/components/timeline/Timeline.mjs.map +1 -1
- package/dist/src/components/tombstone-card/TombstoneCard.d.ts +39 -0
- package/dist/src/components/tombstone-card/TombstoneCard.js +86 -0
- package/dist/src/components/tombstone-card/TombstoneCard.js.map +1 -0
- package/dist/src/components/tombstone-card/TombstoneCard.mjs +52 -0
- package/dist/src/components/tombstone-card/TombstoneCard.mjs.map +1 -0
- package/dist/src/components/tombstone-card/index.d.ts +2 -0
- package/dist/src/components/tombstone-card/index.js +29 -0
- package/dist/src/components/tombstone-card/index.js.map +1 -0
- package/dist/src/components/tombstone-card/index.mjs +5 -0
- package/dist/src/components/tombstone-card/index.mjs.map +1 -0
- package/dist/src/index.d.ts +6 -0
- package/dist/styles-full.css +1 -1
- package/dist/styles.css +1 -1
- package/package.json +3 -3
- package/src/components/accordion/Accordion.test.tsx +31 -0
- package/src/components/accordion/Accordion.tsx +27 -2
- package/src/components/auth-layout/AuthLayout.test.tsx +36 -0
- package/src/components/auth-layout/AuthLayout.tsx +20 -3
- package/src/components/badge/Badge.test.tsx +7 -0
- package/src/components/badge/Badge.tsx +8 -2
- package/src/components/bottom-nav/BottomNav.test.tsx +48 -0
- package/src/components/bottom-nav/BottomNav.tsx +117 -0
- package/src/components/bottom-nav/index.ts +1 -0
- package/src/components/date-picker/DatePicker.tsx +1 -1
- package/src/components/deal-card/DealCard.test.tsx +54 -0
- package/src/components/deal-card/DealCard.tsx +138 -0
- package/src/components/deal-card/index.ts +2 -0
- package/src/components/document-card/DocumentCard.test.tsx +41 -0
- package/src/components/document-card/DocumentCard.tsx +82 -0
- package/src/components/document-card/index.ts +2 -0
- package/src/components/drawer/Drawer.test.tsx +86 -1
- package/src/components/drawer/Drawer.tsx +135 -7
- package/src/components/empty-state/EmptyState.test.tsx +26 -1
- package/src/components/empty-state/EmptyState.tsx +40 -3
- package/src/components/entity-card/EntityCard.test.tsx +38 -0
- package/src/components/entity-card/EntityCard.tsx +133 -0
- package/src/components/entity-card/index.ts +2 -0
- package/src/components/hero/Hero.test.tsx +14 -0
- package/src/components/hero/Hero.tsx +111 -19
- package/src/components/load-more/LoadMore.test.tsx +28 -0
- package/src/components/load-more/LoadMore.tsx +53 -0
- package/src/components/load-more/index.ts +2 -0
- package/src/components/metric-card/MetricCard.test.tsx +32 -0
- package/src/components/metric-card/MetricCard.tsx +45 -7
- package/src/components/page-header/PageHeader.test.tsx +13 -0
- package/src/components/page-header/PageHeader.tsx +5 -2
- package/src/components/range-slider/RangeSlider.test.tsx +8 -0
- package/src/components/range-slider/RangeSlider.tsx +10 -6
- package/src/components/select-menu/SelectMenu.test.tsx +20 -10
- package/src/components/select-menu/SelectMenu.tsx +2 -0
- package/src/components/separator/Separator.test.tsx +9 -1
- package/src/components/separator/Separator.tsx +1 -1
- package/src/components/stepper/Stepper.test.tsx +19 -0
- package/src/components/stepper/Stepper.tsx +169 -37
- package/src/components/table-of-contents/TableOfContents.test.tsx +12 -1
- package/src/components/table-of-contents/TableOfContents.tsx +25 -1
- package/src/components/tabs/Tabs.test.tsx +12 -0
- package/src/components/tabs/Tabs.tsx +48 -4
- package/src/components/time-picker/TimePicker.tsx +1 -1
- package/src/components/timeline/Timeline.tsx +2 -2
- package/src/components/tombstone-card/TombstoneCard.test.tsx +26 -0
- package/src/components/tombstone-card/TombstoneCard.tsx +77 -0
- package/src/components/tombstone-card/index.ts +2 -0
- package/src/index.ts +6 -0
- package/src/manifests/accordion.manifest.json +7 -1
- package/src/manifests/alert.manifest.json +1 -1
- package/src/manifests/announcement-bar.manifest.json +1 -1
- package/src/manifests/app-shell.manifest.json +1 -1
- package/src/manifests/applied-filters.manifest.json +1 -1
- package/src/manifests/article-card.manifest.json +1 -1
- package/src/manifests/auth-layout.manifest.json +19 -1
- package/src/manifests/autocomplete.manifest.json +1 -1
- package/src/manifests/avatar.manifest.json +1 -1
- package/src/manifests/badge.manifest.json +13 -1
- package/src/manifests/block.manifest.json +1 -1
- package/src/manifests/bottom-nav.manifest.json +130 -0
- package/src/manifests/breadcrumb.manifest.json +1 -1
- package/src/manifests/button-group.manifest.json +1 -1
- package/src/manifests/button.manifest.json +1 -1
- package/src/manifests/card.manifest.json +1 -1
- package/src/manifests/checkbox.manifest.json +1 -1
- package/src/manifests/comparison-table.manifest.json +1 -1
- package/src/manifests/confirm-dialog.manifest.json +1 -1
- package/src/manifests/contact-strip.manifest.json +1 -1
- package/src/manifests/container.manifest.json +1 -1
- package/src/manifests/cta-section.manifest.json +1 -1
- package/src/manifests/data-table.manifest.json +1 -1
- package/src/manifests/date-picker.manifest.json +1 -1
- package/src/manifests/date-range-picker.manifest.json +1 -1
- package/src/manifests/deal-card.manifest.json +158 -0
- package/src/manifests/dialog.manifest.json +1 -1
- package/src/manifests/document-card.manifest.json +108 -0
- package/src/manifests/drawer.manifest.json +48 -2
- package/src/manifests/empty-state.manifest.json +1 -1
- package/src/manifests/entity-card.manifest.json +114 -0
- package/src/manifests/feature-grid.manifest.json +1 -1
- package/src/manifests/feature-row.manifest.json +1 -1
- package/src/manifests/fieldset.manifest.json +1 -1
- package/src/manifests/file-upload.manifest.json +1 -1
- package/src/manifests/filter-bar.manifest.json +1 -1
- package/src/manifests/filter-chips.manifest.json +1 -1
- package/src/manifests/filter-panel.manifest.json +1 -1
- package/src/manifests/flex.manifest.json +1 -1
- package/src/manifests/form-field.manifest.json +1 -1
- package/src/manifests/form-layout.manifest.json +1 -1
- package/src/manifests/form.manifest.json +1 -1
- package/src/manifests/grid.manifest.json +1 -1
- package/src/manifests/heading.manifest.json +1 -1
- package/src/manifests/hero.manifest.json +40 -8
- package/src/manifests/input-group.manifest.json +1 -1
- package/src/manifests/input.manifest.json +1 -1
- package/src/manifests/label.manifest.json +1 -1
- package/src/manifests/link-tabs.manifest.json +1 -1
- package/src/manifests/link.manifest.json +1 -1
- package/src/manifests/list.manifest.json +1 -1
- package/src/manifests/load-more.manifest.json +88 -0
- package/src/manifests/logo-cloud.manifest.json +1 -1
- package/src/manifests/menu.manifest.json +1 -1
- package/src/manifests/metric-card.manifest.json +36 -4
- package/src/manifests/multi-select.manifest.json +1 -1
- package/src/manifests/newsletter.manifest.json +1 -1
- package/src/manifests/page-header.manifest.json +7 -1
- package/src/manifests/pagination.manifest.json +1 -1
- package/src/manifests/password-input.manifest.json +1 -1
- package/src/manifests/popover.manifest.json +1 -1
- package/src/manifests/process-steps.manifest.json +1 -1
- package/src/manifests/progress.manifest.json +1 -1
- package/src/manifests/prose.manifest.json +1 -1
- package/src/manifests/radio.manifest.json +1 -1
- package/src/manifests/range-slider.manifest.json +1 -1
- package/src/manifests/search.manifest.json +1 -1
- package/src/manifests/section-heading.manifest.json +1 -1
- package/src/manifests/section.manifest.json +1 -1
- package/src/manifests/segmented-control.manifest.json +1 -1
- package/src/manifests/select-menu.manifest.json +2 -2
- package/src/manifests/select.manifest.json +1 -1
- package/src/manifests/separator.manifest.json +1 -1
- package/src/manifests/site-footer.manifest.json +1 -1
- package/src/manifests/site-header.manifest.json +1 -1
- package/src/manifests/skeleton.manifest.json +1 -1
- package/src/manifests/spinner.manifest.json +1 -1
- package/src/manifests/stat-band.manifest.json +1 -1
- package/src/manifests/stepper.manifest.json +69 -5
- package/src/manifests/switch.manifest.json +1 -1
- package/src/manifests/table-card.manifest.json +1 -1
- package/src/manifests/table-of-contents.manifest.json +26 -5
- package/src/manifests/table.manifest.json +1 -1
- package/src/manifests/tabs.manifest.json +1 -1
- package/src/manifests/testimonial.manifest.json +1 -1
- package/src/manifests/text.manifest.json +1 -1
- package/src/manifests/textarea.manifest.json +1 -1
- package/src/manifests/theme-toggle.manifest.json +1 -1
- package/src/manifests/time-picker.manifest.json +1 -1
- package/src/manifests/timeline.manifest.json +1 -1
- package/src/manifests/toast.manifest.json +1 -1
- package/src/manifests/tombstone-card.manifest.json +97 -0
- package/src/manifests/tooltip.manifest.json +1 -1
- package/src/test/jest-axe.d.ts +6 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../src/components/badge/Badge.tsx"],"sourcesContent":["import * as React from 'react';\nimport { Slot } from '@radix-ui/react-slot';\nimport { cva, type VariantProps } from 'class-variance-authority';\nimport { cn } from '../../utils/cn';\n\nconst badgeVariants = cva(\n 'inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2',\n {\n variants: {\n variant: {\n default: 'border-transparent bg-primary text-primary-foreground hover:bg-primary/80',\n // Aliases used by shadcn/Bootstrap-style codebases.\n primary: 'border-transparent bg-primary text-primary-foreground hover:bg-primary/80',\n // Neutral pill for metadata (counts, categories) and a tinted\n // brand accent that stays readable on the page surface.\n neutral: 'border-transparent bg-muted text-muted-foreground hover:bg-muted/80',\n accent: 'border-transparent bg-accent text-accent-foreground hover:bg-accent/80',\n danger: 'border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80',\n success: 'border-transparent bg-success text-success-foreground hover:bg-success/80',\n warning: 'border-transparent bg-warning text-warning-foreground hover:bg-warning/80',\n info: 'border-transparent bg-info text-info-foreground hover:bg-info/80',\n secondary: 'border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80',\n destructive: 'border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80',\n outline: 'text-foreground',\n },\n },\n defaultVariants: {\n variant: 'default',\n },\n }\n);\n\nexport type BadgeProps = React.HTMLAttributes<HTMLSpanElement> &\n VariantProps<typeof badgeVariants> & {\n /** Render the child element (e.g. a router Link) with badge styling. */\n asChild?: boolean;\n };\n\nconst Badge = React.forwardRef<HTMLSpanElement, BadgeProps>(\n ({ className, variant, asChild = false, ...props }, ref) => {\n const Comp = asChild ? Slot : 'span';\n return <Comp ref={ref} className={cn(badgeVariants({ variant }), className)} {...props} />;\n }\n);\nBadge.displayName = 'Badge';\n\nexport { Badge, badgeVariants };\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;
|
|
1
|
+
{"version":3,"sources":["../../../../src/components/badge/Badge.tsx"],"sourcesContent":["import * as React from 'react';\nimport { Slot } from '@radix-ui/react-slot';\nimport { cva, type VariantProps } from 'class-variance-authority';\nimport { cn } from '../../utils/cn';\n\nconst badgeVariants = cva(\n 'inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2',\n {\n variants: {\n variant: {\n default: 'border-transparent bg-primary text-primary-foreground hover:bg-primary/80',\n // Aliases used by shadcn/Bootstrap-style codebases.\n primary: 'border-transparent bg-primary text-primary-foreground hover:bg-primary/80',\n // Neutral pill for metadata (counts, categories) and a tinted\n // brand accent that stays readable on the page surface.\n neutral: 'border-transparent bg-muted text-muted-foreground hover:bg-muted/80',\n accent: 'border-transparent bg-accent text-accent-foreground hover:bg-accent/80',\n danger: 'border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80',\n success: 'border-transparent bg-success text-success-foreground hover:bg-success/80',\n warning: 'border-transparent bg-warning text-warning-foreground hover:bg-warning/80',\n info: 'border-transparent bg-info text-info-foreground hover:bg-info/80',\n secondary: 'border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80',\n destructive: 'border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80',\n outline: 'text-foreground',\n },\n size: {\n sm: 'px-2 py-0 text-[11px]',\n md: 'px-2.5 py-0.5 text-xs',\n lg: 'px-3 py-1 text-sm',\n },\n },\n defaultVariants: {\n variant: 'default',\n size: 'md',\n },\n }\n);\n\nexport type BadgeProps = React.HTMLAttributes<HTMLSpanElement> &\n VariantProps<typeof badgeVariants> & {\n /** Render the child element (e.g. a router Link) with badge styling. */\n asChild?: boolean;\n };\n\nconst Badge = React.forwardRef<HTMLSpanElement, BadgeProps>(\n ({ className, variant, size, asChild = false, ...props }, ref) => {\n const Comp = asChild ? Slot : 'span';\n return <Comp ref={ref} className={cn(badgeVariants({ variant, size }), className)} {...props} />;\n }\n);\nBadge.displayName = 'Badge';\n\nexport { Badge, badgeVariants };\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AA+CW;AA/CX,YAAuB;AACvB,wBAAqB;AACrB,sCAAuC;AACvC,gBAAmB;AAEnB,MAAM,oBAAgB;AAAA,EACpB;AAAA,EACA;AAAA,IACE,UAAU;AAAA,MACR,SAAS;AAAA,QACP,SAAS;AAAA;AAAA,QAET,SAAS;AAAA;AAAA;AAAA,QAGT,SAAS;AAAA,QACT,QAAQ;AAAA,QACR,QAAQ;AAAA,QACR,SAAS;AAAA,QACT,SAAS;AAAA,QACT,MAAM;AAAA,QACN,WAAW;AAAA,QACX,aAAa;AAAA,QACb,SAAS;AAAA,MACX;AAAA,MACA,MAAM;AAAA,QACJ,IAAI;AAAA,QACJ,IAAI;AAAA,QACJ,IAAI;AAAA,MACN;AAAA,IACF;AAAA,IACA,iBAAiB;AAAA,MACf,SAAS;AAAA,MACT,MAAM;AAAA,IACR;AAAA,EACF;AACF;AAQA,MAAM,QAAQ,MAAM;AAAA,EAClB,CAAC,EAAE,WAAW,SAAS,MAAM,UAAU,OAAO,GAAG,MAAM,GAAG,QAAQ;AAChE,UAAM,OAAO,UAAU,yBAAO;AAC9B,WAAO,4CAAC,QAAK,KAAU,eAAW,cAAG,cAAc,EAAE,SAAS,KAAK,CAAC,GAAG,SAAS,GAAI,GAAG,OAAO;AAAA,EAChG;AACF;AACA,MAAM,cAAc;","names":[]}
|
|
@@ -22,17 +22,23 @@ const badgeVariants = cva(
|
|
|
22
22
|
secondary: "border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",
|
|
23
23
|
destructive: "border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80",
|
|
24
24
|
outline: "text-foreground"
|
|
25
|
+
},
|
|
26
|
+
size: {
|
|
27
|
+
sm: "px-2 py-0 text-[11px]",
|
|
28
|
+
md: "px-2.5 py-0.5 text-xs",
|
|
29
|
+
lg: "px-3 py-1 text-sm"
|
|
25
30
|
}
|
|
26
31
|
},
|
|
27
32
|
defaultVariants: {
|
|
28
|
-
variant: "default"
|
|
33
|
+
variant: "default",
|
|
34
|
+
size: "md"
|
|
29
35
|
}
|
|
30
36
|
}
|
|
31
37
|
);
|
|
32
38
|
const Badge = React.forwardRef(
|
|
33
|
-
({ className, variant, asChild = false, ...props }, ref) => {
|
|
39
|
+
({ className, variant, size, asChild = false, ...props }, ref) => {
|
|
34
40
|
const Comp = asChild ? Slot : "span";
|
|
35
|
-
return /* @__PURE__ */ jsx(Comp, { ref, className: cn(badgeVariants({ variant }), className), ...props });
|
|
41
|
+
return /* @__PURE__ */ jsx(Comp, { ref, className: cn(badgeVariants({ variant, size }), className), ...props });
|
|
36
42
|
}
|
|
37
43
|
);
|
|
38
44
|
Badge.displayName = "Badge";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../src/components/badge/Badge.tsx"],"sourcesContent":["import * as React from 'react';\nimport { Slot } from '@radix-ui/react-slot';\nimport { cva, type VariantProps } from 'class-variance-authority';\nimport { cn } from '../../utils/cn';\n\nconst badgeVariants = cva(\n 'inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2',\n {\n variants: {\n variant: {\n default: 'border-transparent bg-primary text-primary-foreground hover:bg-primary/80',\n // Aliases used by shadcn/Bootstrap-style codebases.\n primary: 'border-transparent bg-primary text-primary-foreground hover:bg-primary/80',\n // Neutral pill for metadata (counts, categories) and a tinted\n // brand accent that stays readable on the page surface.\n neutral: 'border-transparent bg-muted text-muted-foreground hover:bg-muted/80',\n accent: 'border-transparent bg-accent text-accent-foreground hover:bg-accent/80',\n danger: 'border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80',\n success: 'border-transparent bg-success text-success-foreground hover:bg-success/80',\n warning: 'border-transparent bg-warning text-warning-foreground hover:bg-warning/80',\n info: 'border-transparent bg-info text-info-foreground hover:bg-info/80',\n secondary: 'border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80',\n destructive: 'border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80',\n outline: 'text-foreground',\n },\n },\n defaultVariants: {\n variant: 'default',\n },\n }\n);\n\nexport type BadgeProps = React.HTMLAttributes<HTMLSpanElement> &\n VariantProps<typeof badgeVariants> & {\n /** Render the child element (e.g. a router Link) with badge styling. */\n asChild?: boolean;\n };\n\nconst Badge = React.forwardRef<HTMLSpanElement, BadgeProps>(\n ({ className, variant, asChild = false, ...props }, ref) => {\n const Comp = asChild ? Slot : 'span';\n return <Comp ref={ref} className={cn(badgeVariants({ variant }), className)} {...props} />;\n }\n);\nBadge.displayName = 'Badge';\n\nexport { Badge, badgeVariants };\n"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../../../../src/components/badge/Badge.tsx"],"sourcesContent":["import * as React from 'react';\nimport { Slot } from '@radix-ui/react-slot';\nimport { cva, type VariantProps } from 'class-variance-authority';\nimport { cn } from '../../utils/cn';\n\nconst badgeVariants = cva(\n 'inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2',\n {\n variants: {\n variant: {\n default: 'border-transparent bg-primary text-primary-foreground hover:bg-primary/80',\n // Aliases used by shadcn/Bootstrap-style codebases.\n primary: 'border-transparent bg-primary text-primary-foreground hover:bg-primary/80',\n // Neutral pill for metadata (counts, categories) and a tinted\n // brand accent that stays readable on the page surface.\n neutral: 'border-transparent bg-muted text-muted-foreground hover:bg-muted/80',\n accent: 'border-transparent bg-accent text-accent-foreground hover:bg-accent/80',\n danger: 'border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80',\n success: 'border-transparent bg-success text-success-foreground hover:bg-success/80',\n warning: 'border-transparent bg-warning text-warning-foreground hover:bg-warning/80',\n info: 'border-transparent bg-info text-info-foreground hover:bg-info/80',\n secondary: 'border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80',\n destructive: 'border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80',\n outline: 'text-foreground',\n },\n size: {\n sm: 'px-2 py-0 text-[11px]',\n md: 'px-2.5 py-0.5 text-xs',\n lg: 'px-3 py-1 text-sm',\n },\n },\n defaultVariants: {\n variant: 'default',\n size: 'md',\n },\n }\n);\n\nexport type BadgeProps = React.HTMLAttributes<HTMLSpanElement> &\n VariantProps<typeof badgeVariants> & {\n /** Render the child element (e.g. a router Link) with badge styling. */\n asChild?: boolean;\n };\n\nconst Badge = React.forwardRef<HTMLSpanElement, BadgeProps>(\n ({ className, variant, size, asChild = false, ...props }, ref) => {\n const Comp = asChild ? Slot : 'span';\n return <Comp ref={ref} className={cn(badgeVariants({ variant, size }), className)} {...props} />;\n }\n);\nBadge.displayName = 'Badge';\n\nexport { Badge, badgeVariants };\n"],"mappings":"AA+CW;AA/CX,YAAY,WAAW;AACvB,SAAS,YAAY;AACrB,SAAS,WAA8B;AACvC,SAAS,UAAU;AAEnB,MAAM,gBAAgB;AAAA,EACpB;AAAA,EACA;AAAA,IACE,UAAU;AAAA,MACR,SAAS;AAAA,QACP,SAAS;AAAA;AAAA,QAET,SAAS;AAAA;AAAA;AAAA,QAGT,SAAS;AAAA,QACT,QAAQ;AAAA,QACR,QAAQ;AAAA,QACR,SAAS;AAAA,QACT,SAAS;AAAA,QACT,MAAM;AAAA,QACN,WAAW;AAAA,QACX,aAAa;AAAA,QACb,SAAS;AAAA,MACX;AAAA,MACA,MAAM;AAAA,QACJ,IAAI;AAAA,QACJ,IAAI;AAAA,QACJ,IAAI;AAAA,MACN;AAAA,IACF;AAAA,IACA,iBAAiB;AAAA,MACf,SAAS;AAAA,MACT,MAAM;AAAA,IACR;AAAA,EACF;AACF;AAQA,MAAM,QAAQ,MAAM;AAAA,EAClB,CAAC,EAAE,WAAW,SAAS,MAAM,UAAU,OAAO,GAAG,MAAM,GAAG,QAAQ;AAChE,UAAM,OAAO,UAAU,OAAO;AAC9B,WAAO,oBAAC,QAAK,KAAU,WAAW,GAAG,cAAc,EAAE,SAAS,KAAK,CAAC,GAAG,SAAS,GAAI,GAAG,OAAO;AAAA,EAChG;AACF;AACA,MAAM,cAAc;","names":[]}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export type BottomNavItem = {
|
|
3
|
+
/** Destination URL for the tab. */
|
|
4
|
+
href: string;
|
|
5
|
+
/** Visible tab label. */
|
|
6
|
+
label: string;
|
|
7
|
+
/** Icon shown above the label; always rendered aria-hidden. */
|
|
8
|
+
icon?: React.ReactNode;
|
|
9
|
+
/** Marks the current tab and sets aria-current="page". */
|
|
10
|
+
active?: boolean;
|
|
11
|
+
/** Small count or dot shown in the tab's top corner. */
|
|
12
|
+
badge?: React.ReactNode;
|
|
13
|
+
/** Renders the tab as non-interactive. */
|
|
14
|
+
disabled?: boolean;
|
|
15
|
+
};
|
|
16
|
+
export type BottomNavProps = React.HTMLAttributes<HTMLElement> & {
|
|
17
|
+
/** Tabs in order. Keep to 3-5 so every target stays thumb-reachable. */
|
|
18
|
+
items: BottomNavItem[];
|
|
19
|
+
/** Router link component (Next Link, react-router Link). */
|
|
20
|
+
linkComponent?: React.ElementType;
|
|
21
|
+
/** Prop used to pass the destination to `linkComponent`. */
|
|
22
|
+
linkHrefProp?: 'href' | 'to';
|
|
23
|
+
/** Landmark label. Default "Primary". */
|
|
24
|
+
label?: string;
|
|
25
|
+
/** Pin the bar to the bottom edge with safe-area padding (default true). */
|
|
26
|
+
fixed?: boolean;
|
|
27
|
+
/** Hide the bar from the md breakpoint up (default true). */
|
|
28
|
+
mobileOnly?: boolean;
|
|
29
|
+
};
|
|
30
|
+
/**
|
|
31
|
+
* Mobile bottom tab bar for the 3-5 primary destinations of an app shell.
|
|
32
|
+
* A nav landmark with aria-current="page" on the active tab, 44px minimum
|
|
33
|
+
* targets, an optional count badge and safe-area padding so the bar clears
|
|
34
|
+
* the iOS home indicator.
|
|
35
|
+
*/
|
|
36
|
+
export declare function BottomNav({ items, linkComponent, linkHrefProp, label, fixed, mobileOnly, className, ...props }: BottomNavProps): React.JSX.Element;
|
|
@@ -0,0 +1,90 @@
|
|
|
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 __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
var BottomNav_exports = {};
|
|
20
|
+
__export(BottomNav_exports, {
|
|
21
|
+
BottomNav: () => BottomNav
|
|
22
|
+
});
|
|
23
|
+
module.exports = __toCommonJS(BottomNav_exports);
|
|
24
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
25
|
+
var import_cn = require("../../utils/cn.js");
|
|
26
|
+
const tabClass = "relative flex min-h-14 w-full flex-col items-center justify-center gap-0.5 px-2 py-2 text-[11px] font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-inset";
|
|
27
|
+
function BottomNav({
|
|
28
|
+
items,
|
|
29
|
+
linkComponent,
|
|
30
|
+
linkHrefProp = "href",
|
|
31
|
+
label = "Primary",
|
|
32
|
+
fixed = true,
|
|
33
|
+
mobileOnly = true,
|
|
34
|
+
className,
|
|
35
|
+
...props
|
|
36
|
+
}) {
|
|
37
|
+
const LinkEl = linkComponent ?? "a";
|
|
38
|
+
const destination = (href) => linkHrefProp === "to" ? { to: href } : { href };
|
|
39
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
40
|
+
"nav",
|
|
41
|
+
{
|
|
42
|
+
"aria-label": label,
|
|
43
|
+
className: (0, import_cn.cn)(
|
|
44
|
+
"w-full border-t border-border bg-background pb-[env(safe-area-inset-bottom)]",
|
|
45
|
+
fixed && "fixed inset-x-0 bottom-0 z-40",
|
|
46
|
+
mobileOnly && "md:hidden",
|
|
47
|
+
className
|
|
48
|
+
),
|
|
49
|
+
...props,
|
|
50
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
51
|
+
"ul",
|
|
52
|
+
{
|
|
53
|
+
className: "mx-auto grid w-full max-w-lg",
|
|
54
|
+
style: { gridTemplateColumns: `repeat(${Math.max(items.length, 1)}, minmax(0, 1fr))` },
|
|
55
|
+
children: items.map((item) => {
|
|
56
|
+
const content = /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
|
|
57
|
+
item.icon && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { "aria-hidden": "true", className: "[&_svg]:size-5", children: item.icon }),
|
|
58
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { children: item.label }),
|
|
59
|
+
item.badge != null && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: "absolute right-1/4 top-1 rounded-full bg-primary px-1.5 text-[10px] font-semibold leading-4 text-primary-foreground", children: item.badge })
|
|
60
|
+
] });
|
|
61
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("li", { children: item.disabled ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
62
|
+
"span",
|
|
63
|
+
{
|
|
64
|
+
"aria-disabled": "true",
|
|
65
|
+
className: (0, import_cn.cn)(tabClass, "text-muted-foreground opacity-50"),
|
|
66
|
+
children: content
|
|
67
|
+
}
|
|
68
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
69
|
+
LinkEl,
|
|
70
|
+
{
|
|
71
|
+
...destination(item.href),
|
|
72
|
+
"aria-current": item.active ? "page" : void 0,
|
|
73
|
+
className: (0, import_cn.cn)(
|
|
74
|
+
tabClass,
|
|
75
|
+
item.active ? "text-primary" : "text-muted-foreground hover:text-foreground"
|
|
76
|
+
),
|
|
77
|
+
children: content
|
|
78
|
+
}
|
|
79
|
+
) }, item.href);
|
|
80
|
+
})
|
|
81
|
+
}
|
|
82
|
+
)
|
|
83
|
+
}
|
|
84
|
+
);
|
|
85
|
+
}
|
|
86
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
87
|
+
0 && (module.exports = {
|
|
88
|
+
BottomNav
|
|
89
|
+
});
|
|
90
|
+
//# sourceMappingURL=BottomNav.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../src/components/bottom-nav/BottomNav.tsx"],"sourcesContent":["import * as React from 'react';\nimport { cn } from '../../utils/cn';\n\nexport type BottomNavItem = {\n /** Destination URL for the tab. */\n href: string;\n /** Visible tab label. */\n label: string;\n /** Icon shown above the label; always rendered aria-hidden. */\n icon?: React.ReactNode;\n /** Marks the current tab and sets aria-current=\"page\". */\n active?: boolean;\n /** Small count or dot shown in the tab's top corner. */\n badge?: React.ReactNode;\n /** Renders the tab as non-interactive. */\n disabled?: boolean;\n};\n\nexport type BottomNavProps = React.HTMLAttributes<HTMLElement> & {\n /** Tabs in order. Keep to 3-5 so every target stays thumb-reachable. */\n items: BottomNavItem[];\n /** Router link component (Next Link, react-router Link). */\n linkComponent?: React.ElementType;\n /** Prop used to pass the destination to `linkComponent`. */\n linkHrefProp?: 'href' | 'to';\n /** Landmark label. Default \"Primary\". */\n label?: string;\n /** Pin the bar to the bottom edge with safe-area padding (default true). */\n fixed?: boolean;\n /** Hide the bar from the md breakpoint up (default true). */\n mobileOnly?: boolean;\n};\n\nconst tabClass =\n 'relative flex min-h-14 w-full flex-col items-center justify-center gap-0.5 px-2 py-2 text-[11px] font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-inset';\n\n/**\n * Mobile bottom tab bar for the 3-5 primary destinations of an app shell.\n * A nav landmark with aria-current=\"page\" on the active tab, 44px minimum\n * targets, an optional count badge and safe-area padding so the bar clears\n * the iOS home indicator.\n */\nexport function BottomNav({\n items,\n linkComponent,\n linkHrefProp = 'href',\n label = 'Primary',\n fixed = true,\n mobileOnly = true,\n className,\n ...props\n}: BottomNavProps) {\n const LinkEl = linkComponent ?? 'a';\n const destination = (href: string) => (linkHrefProp === 'to' ? { to: href } : { href });\n\n return (\n <nav\n aria-label={label}\n className={cn(\n 'w-full border-t border-border bg-background pb-[env(safe-area-inset-bottom)]',\n fixed && 'fixed inset-x-0 bottom-0 z-40',\n mobileOnly && 'md:hidden',\n className\n )}\n {...props}\n >\n <ul\n className=\"mx-auto grid w-full max-w-lg\"\n style={{ gridTemplateColumns: `repeat(${Math.max(items.length, 1)}, minmax(0, 1fr))` }}\n >\n {items.map((item) => {\n const content = (\n <>\n {item.icon && (\n <span aria-hidden=\"true\" className=\"[&_svg]:size-5\">\n {item.icon}\n </span>\n )}\n <span>{item.label}</span>\n {item.badge != null && (\n <span className=\"absolute right-1/4 top-1 rounded-full bg-primary px-1.5 text-[10px] font-semibold leading-4 text-primary-foreground\">\n {item.badge}\n </span>\n )}\n </>\n );\n\n return (\n <li key={item.href}>\n {item.disabled ? (\n <span\n aria-disabled=\"true\"\n className={cn(tabClass, 'text-muted-foreground opacity-50')}\n >\n {content}\n </span>\n ) : (\n <LinkEl\n {...destination(item.href)}\n aria-current={item.active ? 'page' : undefined}\n className={cn(\n tabClass,\n item.active\n ? 'text-primary'\n : 'text-muted-foreground hover:text-foreground'\n )}\n >\n {content}\n </LinkEl>\n )}\n </li>\n );\n })}\n </ul>\n </nav>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAwEY;AAvEZ,gBAAmB;AAgCnB,MAAM,WACJ;AAQK,SAAS,UAAU;AAAA,EACxB;AAAA,EACA;AAAA,EACA,eAAe;AAAA,EACf,QAAQ;AAAA,EACR,QAAQ;AAAA,EACR,aAAa;AAAA,EACb;AAAA,EACA,GAAG;AACL,GAAmB;AACjB,QAAM,SAAS,iBAAiB;AAChC,QAAM,cAAc,CAAC,SAAkB,iBAAiB,OAAO,EAAE,IAAI,KAAK,IAAI,EAAE,KAAK;AAErF,SACE;AAAA,IAAC;AAAA;AAAA,MACC,cAAY;AAAA,MACZ,eAAW;AAAA,QACT;AAAA,QACA,SAAS;AAAA,QACT,cAAc;AAAA,QACd;AAAA,MACF;AAAA,MACC,GAAG;AAAA,MAEJ;AAAA,QAAC;AAAA;AAAA,UACC,WAAU;AAAA,UACV,OAAO,EAAE,qBAAqB,UAAU,KAAK,IAAI,MAAM,QAAQ,CAAC,CAAC,oBAAoB;AAAA,UAEpF,gBAAM,IAAI,CAAC,SAAS;AACnB,kBAAM,UACJ,4EACG;AAAA,mBAAK,QACJ,4CAAC,UAAK,eAAY,QAAO,WAAU,kBAChC,eAAK,MACR;AAAA,cAEF,4CAAC,UAAM,eAAK,OAAM;AAAA,cACjB,KAAK,SAAS,QACb,4CAAC,UAAK,WAAU,uHACb,eAAK,OACR;AAAA,eAEJ;AAGF,mBACE,4CAAC,QACE,eAAK,WACJ;AAAA,cAAC;AAAA;AAAA,gBACC,iBAAc;AAAA,gBACd,eAAW,cAAG,UAAU,kCAAkC;AAAA,gBAEzD;AAAA;AAAA,YACH,IAEA;AAAA,cAAC;AAAA;AAAA,gBACE,GAAG,YAAY,KAAK,IAAI;AAAA,gBACzB,gBAAc,KAAK,SAAS,SAAS;AAAA,gBACrC,eAAW;AAAA,kBACT;AAAA,kBACA,KAAK,SACD,iBACA;AAAA,gBACN;AAAA,gBAEC;AAAA;AAAA,YACH,KApBK,KAAK,IAsBd;AAAA,UAEJ,CAAC;AAAA;AAAA,MACH;AAAA;AAAA,EACF;AAEJ;","names":[]}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { cn } from "../../utils/cn.mjs";
|
|
3
|
+
const tabClass = "relative flex min-h-14 w-full flex-col items-center justify-center gap-0.5 px-2 py-2 text-[11px] font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-inset";
|
|
4
|
+
function BottomNav({
|
|
5
|
+
items,
|
|
6
|
+
linkComponent,
|
|
7
|
+
linkHrefProp = "href",
|
|
8
|
+
label = "Primary",
|
|
9
|
+
fixed = true,
|
|
10
|
+
mobileOnly = true,
|
|
11
|
+
className,
|
|
12
|
+
...props
|
|
13
|
+
}) {
|
|
14
|
+
const LinkEl = linkComponent ?? "a";
|
|
15
|
+
const destination = (href) => linkHrefProp === "to" ? { to: href } : { href };
|
|
16
|
+
return /* @__PURE__ */ jsx(
|
|
17
|
+
"nav",
|
|
18
|
+
{
|
|
19
|
+
"aria-label": label,
|
|
20
|
+
className: cn(
|
|
21
|
+
"w-full border-t border-border bg-background pb-[env(safe-area-inset-bottom)]",
|
|
22
|
+
fixed && "fixed inset-x-0 bottom-0 z-40",
|
|
23
|
+
mobileOnly && "md:hidden",
|
|
24
|
+
className
|
|
25
|
+
),
|
|
26
|
+
...props,
|
|
27
|
+
children: /* @__PURE__ */ jsx(
|
|
28
|
+
"ul",
|
|
29
|
+
{
|
|
30
|
+
className: "mx-auto grid w-full max-w-lg",
|
|
31
|
+
style: { gridTemplateColumns: `repeat(${Math.max(items.length, 1)}, minmax(0, 1fr))` },
|
|
32
|
+
children: items.map((item) => {
|
|
33
|
+
const content = /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
34
|
+
item.icon && /* @__PURE__ */ jsx("span", { "aria-hidden": "true", className: "[&_svg]:size-5", children: item.icon }),
|
|
35
|
+
/* @__PURE__ */ jsx("span", { children: item.label }),
|
|
36
|
+
item.badge != null && /* @__PURE__ */ jsx("span", { className: "absolute right-1/4 top-1 rounded-full bg-primary px-1.5 text-[10px] font-semibold leading-4 text-primary-foreground", children: item.badge })
|
|
37
|
+
] });
|
|
38
|
+
return /* @__PURE__ */ jsx("li", { children: item.disabled ? /* @__PURE__ */ jsx(
|
|
39
|
+
"span",
|
|
40
|
+
{
|
|
41
|
+
"aria-disabled": "true",
|
|
42
|
+
className: cn(tabClass, "text-muted-foreground opacity-50"),
|
|
43
|
+
children: content
|
|
44
|
+
}
|
|
45
|
+
) : /* @__PURE__ */ jsx(
|
|
46
|
+
LinkEl,
|
|
47
|
+
{
|
|
48
|
+
...destination(item.href),
|
|
49
|
+
"aria-current": item.active ? "page" : void 0,
|
|
50
|
+
className: cn(
|
|
51
|
+
tabClass,
|
|
52
|
+
item.active ? "text-primary" : "text-muted-foreground hover:text-foreground"
|
|
53
|
+
),
|
|
54
|
+
children: content
|
|
55
|
+
}
|
|
56
|
+
) }, item.href);
|
|
57
|
+
})
|
|
58
|
+
}
|
|
59
|
+
)
|
|
60
|
+
}
|
|
61
|
+
);
|
|
62
|
+
}
|
|
63
|
+
export {
|
|
64
|
+
BottomNav
|
|
65
|
+
};
|
|
66
|
+
//# sourceMappingURL=BottomNav.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../src/components/bottom-nav/BottomNav.tsx"],"sourcesContent":["import * as React from 'react';\nimport { cn } from '../../utils/cn';\n\nexport type BottomNavItem = {\n /** Destination URL for the tab. */\n href: string;\n /** Visible tab label. */\n label: string;\n /** Icon shown above the label; always rendered aria-hidden. */\n icon?: React.ReactNode;\n /** Marks the current tab and sets aria-current=\"page\". */\n active?: boolean;\n /** Small count or dot shown in the tab's top corner. */\n badge?: React.ReactNode;\n /** Renders the tab as non-interactive. */\n disabled?: boolean;\n};\n\nexport type BottomNavProps = React.HTMLAttributes<HTMLElement> & {\n /** Tabs in order. Keep to 3-5 so every target stays thumb-reachable. */\n items: BottomNavItem[];\n /** Router link component (Next Link, react-router Link). */\n linkComponent?: React.ElementType;\n /** Prop used to pass the destination to `linkComponent`. */\n linkHrefProp?: 'href' | 'to';\n /** Landmark label. Default \"Primary\". */\n label?: string;\n /** Pin the bar to the bottom edge with safe-area padding (default true). */\n fixed?: boolean;\n /** Hide the bar from the md breakpoint up (default true). */\n mobileOnly?: boolean;\n};\n\nconst tabClass =\n 'relative flex min-h-14 w-full flex-col items-center justify-center gap-0.5 px-2 py-2 text-[11px] font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-inset';\n\n/**\n * Mobile bottom tab bar for the 3-5 primary destinations of an app shell.\n * A nav landmark with aria-current=\"page\" on the active tab, 44px minimum\n * targets, an optional count badge and safe-area padding so the bar clears\n * the iOS home indicator.\n */\nexport function BottomNav({\n items,\n linkComponent,\n linkHrefProp = 'href',\n label = 'Primary',\n fixed = true,\n mobileOnly = true,\n className,\n ...props\n}: BottomNavProps) {\n const LinkEl = linkComponent ?? 'a';\n const destination = (href: string) => (linkHrefProp === 'to' ? { to: href } : { href });\n\n return (\n <nav\n aria-label={label}\n className={cn(\n 'w-full border-t border-border bg-background pb-[env(safe-area-inset-bottom)]',\n fixed && 'fixed inset-x-0 bottom-0 z-40',\n mobileOnly && 'md:hidden',\n className\n )}\n {...props}\n >\n <ul\n className=\"mx-auto grid w-full max-w-lg\"\n style={{ gridTemplateColumns: `repeat(${Math.max(items.length, 1)}, minmax(0, 1fr))` }}\n >\n {items.map((item) => {\n const content = (\n <>\n {item.icon && (\n <span aria-hidden=\"true\" className=\"[&_svg]:size-5\">\n {item.icon}\n </span>\n )}\n <span>{item.label}</span>\n {item.badge != null && (\n <span className=\"absolute right-1/4 top-1 rounded-full bg-primary px-1.5 text-[10px] font-semibold leading-4 text-primary-foreground\">\n {item.badge}\n </span>\n )}\n </>\n );\n\n return (\n <li key={item.href}>\n {item.disabled ? (\n <span\n aria-disabled=\"true\"\n className={cn(tabClass, 'text-muted-foreground opacity-50')}\n >\n {content}\n </span>\n ) : (\n <LinkEl\n {...destination(item.href)}\n aria-current={item.active ? 'page' : undefined}\n className={cn(\n tabClass,\n item.active\n ? 'text-primary'\n : 'text-muted-foreground hover:text-foreground'\n )}\n >\n {content}\n </LinkEl>\n )}\n </li>\n );\n })}\n </ul>\n </nav>\n );\n}\n"],"mappings":"AAwEY,mBAEI,KAFJ;AAvEZ,SAAS,UAAU;AAgCnB,MAAM,WACJ;AAQK,SAAS,UAAU;AAAA,EACxB;AAAA,EACA;AAAA,EACA,eAAe;AAAA,EACf,QAAQ;AAAA,EACR,QAAQ;AAAA,EACR,aAAa;AAAA,EACb;AAAA,EACA,GAAG;AACL,GAAmB;AACjB,QAAM,SAAS,iBAAiB;AAChC,QAAM,cAAc,CAAC,SAAkB,iBAAiB,OAAO,EAAE,IAAI,KAAK,IAAI,EAAE,KAAK;AAErF,SACE;AAAA,IAAC;AAAA;AAAA,MACC,cAAY;AAAA,MACZ,WAAW;AAAA,QACT;AAAA,QACA,SAAS;AAAA,QACT,cAAc;AAAA,QACd;AAAA,MACF;AAAA,MACC,GAAG;AAAA,MAEJ;AAAA,QAAC;AAAA;AAAA,UACC,WAAU;AAAA,UACV,OAAO,EAAE,qBAAqB,UAAU,KAAK,IAAI,MAAM,QAAQ,CAAC,CAAC,oBAAoB;AAAA,UAEpF,gBAAM,IAAI,CAAC,SAAS;AACnB,kBAAM,UACJ,iCACG;AAAA,mBAAK,QACJ,oBAAC,UAAK,eAAY,QAAO,WAAU,kBAChC,eAAK,MACR;AAAA,cAEF,oBAAC,UAAM,eAAK,OAAM;AAAA,cACjB,KAAK,SAAS,QACb,oBAAC,UAAK,WAAU,uHACb,eAAK,OACR;AAAA,eAEJ;AAGF,mBACE,oBAAC,QACE,eAAK,WACJ;AAAA,cAAC;AAAA;AAAA,gBACC,iBAAc;AAAA,gBACd,WAAW,GAAG,UAAU,kCAAkC;AAAA,gBAEzD;AAAA;AAAA,YACH,IAEA;AAAA,cAAC;AAAA;AAAA,gBACE,GAAG,YAAY,KAAK,IAAI;AAAA,gBACzB,gBAAc,KAAK,SAAS,SAAS;AAAA,gBACrC,WAAW;AAAA,kBACT;AAAA,kBACA,KAAK,SACD,iBACA;AAAA,gBACN;AAAA,gBAEC;AAAA;AAAA,YACH,KApBK,KAAK,IAsBd;AAAA,UAEJ,CAAC;AAAA;AAAA,MACH;AAAA;AAAA,EACF;AAEJ;","names":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './BottomNav';
|
|
@@ -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 bottom_nav_exports = {};
|
|
17
|
+
module.exports = __toCommonJS(bottom_nav_exports);
|
|
18
|
+
__reExport(bottom_nav_exports, require("./BottomNav.js"), module.exports);
|
|
19
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
20
|
+
0 && (module.exports = {
|
|
21
|
+
...require("./BottomNav.js")
|
|
22
|
+
});
|
|
23
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../src/components/bottom-nav/index.ts"],"sourcesContent":["export * from './BottomNav';\n"],"mappings":";;;;;;;;;;;;;;;AAAA;AAAA;AAAA,+BAAc,wBAAd;","names":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../src/components/bottom-nav/index.ts"],"sourcesContent":["export * from './BottomNav';\n"],"mappings":"AAAA,cAAc;","names":[]}
|
|
@@ -64,7 +64,7 @@ const DatePicker = React.forwardRef(function DatePicker2({ value, defaultValue,
|
|
|
64
64
|
type: "button",
|
|
65
65
|
onClick: () => commit(""),
|
|
66
66
|
"aria-label": clearLabel,
|
|
67
|
-
className: "absolute right-
|
|
67
|
+
className: "absolute right-1.5 inline-flex h-6 w-6 items-center justify-center rounded text-muted-foreground hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
68
68
|
children: "\u2715"
|
|
69
69
|
}
|
|
70
70
|
)
|
|
@@ -1 +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-
|
|
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-1.5 inline-flex h-6 w-6 items-center justify-center rounded 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"]}
|
|
@@ -31,7 +31,7 @@ const DatePicker = React.forwardRef(function DatePicker2({ value, defaultValue,
|
|
|
31
31
|
type: "button",
|
|
32
32
|
onClick: () => commit(""),
|
|
33
33
|
"aria-label": clearLabel,
|
|
34
|
-
className: "absolute right-
|
|
34
|
+
className: "absolute right-1.5 inline-flex h-6 w-6 items-center justify-center rounded text-muted-foreground hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
35
35
|
children: "\u2715"
|
|
36
36
|
}
|
|
37
37
|
)
|
|
@@ -1 +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-
|
|
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-1.5 inline-flex h-6 w-6 items-center justify-center rounded 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,72 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export type DealMetric = {
|
|
3
|
+
label: string;
|
|
4
|
+
value: string;
|
|
5
|
+
};
|
|
6
|
+
export type DealStatus = 'available' | 'under-nda' | 'closed' | 'draft';
|
|
7
|
+
export type DealCardProps = Omit<React.HTMLAttributes<HTMLElement>, 'title'> & {
|
|
8
|
+
/** Deal headline. */
|
|
9
|
+
title: string;
|
|
10
|
+
/** Sector or industry label. */
|
|
11
|
+
sector: string;
|
|
12
|
+
/** Region or location. */
|
|
13
|
+
location?: string;
|
|
14
|
+
/** Optional short summary. */
|
|
15
|
+
description?: string;
|
|
16
|
+
/** Three headline metrics such as revenue, EBITDA and margin. */
|
|
17
|
+
metrics: DealMetric[];
|
|
18
|
+
/** Availability state. Default 'available'. */
|
|
19
|
+
status?: DealStatus;
|
|
20
|
+
/** Show the NDA badge. */
|
|
21
|
+
ndaAvailable?: boolean;
|
|
22
|
+
/** Show the CIM badge. */
|
|
23
|
+
cimAvailable?: boolean;
|
|
24
|
+
/** Optional deal detail link. */
|
|
25
|
+
href?: string;
|
|
26
|
+
/** Custom link element for routers. */
|
|
27
|
+
linkComponent?: React.ElementType;
|
|
28
|
+
/** Save toggle state. */
|
|
29
|
+
saved?: boolean;
|
|
30
|
+
onSave?: () => void;
|
|
31
|
+
/** Save button label. Default "Save". */
|
|
32
|
+
saveLabel?: string;
|
|
33
|
+
/** Request access handler. */
|
|
34
|
+
onRequestAccess?: () => void;
|
|
35
|
+
/** Request access label. Default "Request access". */
|
|
36
|
+
requestLabel?: string;
|
|
37
|
+
};
|
|
38
|
+
/**
|
|
39
|
+
* Deal opportunity card for trend, search and saved-deal surfaces. Metrics use
|
|
40
|
+
* tabular numerals; NDA and CIM access are stated as text badges, not implied.
|
|
41
|
+
*/
|
|
42
|
+
export declare const DealCard: React.ForwardRefExoticComponent<Omit<React.HTMLAttributes<HTMLElement>, "title"> & {
|
|
43
|
+
/** Deal headline. */
|
|
44
|
+
title: string;
|
|
45
|
+
/** Sector or industry label. */
|
|
46
|
+
sector: string;
|
|
47
|
+
/** Region or location. */
|
|
48
|
+
location?: string;
|
|
49
|
+
/** Optional short summary. */
|
|
50
|
+
description?: string;
|
|
51
|
+
/** Three headline metrics such as revenue, EBITDA and margin. */
|
|
52
|
+
metrics: DealMetric[];
|
|
53
|
+
/** Availability state. Default 'available'. */
|
|
54
|
+
status?: DealStatus;
|
|
55
|
+
/** Show the NDA badge. */
|
|
56
|
+
ndaAvailable?: boolean;
|
|
57
|
+
/** Show the CIM badge. */
|
|
58
|
+
cimAvailable?: boolean;
|
|
59
|
+
/** Optional deal detail link. */
|
|
60
|
+
href?: string;
|
|
61
|
+
/** Custom link element for routers. */
|
|
62
|
+
linkComponent?: React.ElementType;
|
|
63
|
+
/** Save toggle state. */
|
|
64
|
+
saved?: boolean;
|
|
65
|
+
onSave?: () => void;
|
|
66
|
+
/** Save button label. Default "Save". */
|
|
67
|
+
saveLabel?: string;
|
|
68
|
+
/** Request access handler. */
|
|
69
|
+
onRequestAccess?: () => void;
|
|
70
|
+
/** Request access label. Default "Request access". */
|
|
71
|
+
requestLabel?: string;
|
|
72
|
+
} & React.RefAttributes<HTMLElement>>;
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
for (var name in all)
|
|
10
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
+
};
|
|
12
|
+
var __copyProps = (to, from, except, desc) => {
|
|
13
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
+
for (let key of __getOwnPropNames(from))
|
|
15
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
20
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
+
mod
|
|
27
|
+
));
|
|
28
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
+
var DealCard_exports = {};
|
|
30
|
+
__export(DealCard_exports, {
|
|
31
|
+
DealCard: () => DealCard
|
|
32
|
+
});
|
|
33
|
+
module.exports = __toCommonJS(DealCard_exports);
|
|
34
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
35
|
+
var React = __toESM(require("react"));
|
|
36
|
+
var import_cn = require("../../utils/cn.js");
|
|
37
|
+
var import_Badge = require("../badge/Badge.js");
|
|
38
|
+
var import_Button = require("../button/Button.js");
|
|
39
|
+
var import_Card = require("../card/Card.js");
|
|
40
|
+
const statusConfig = {
|
|
41
|
+
available: { label: "Available", variant: "success" },
|
|
42
|
+
"under-nda": { label: "Under NDA", variant: "info" },
|
|
43
|
+
closed: { label: "Closed", variant: "secondary" },
|
|
44
|
+
draft: { label: "Draft", variant: "outline" }
|
|
45
|
+
};
|
|
46
|
+
const DealCard = React.forwardRef(function DealCard2({
|
|
47
|
+
title,
|
|
48
|
+
sector,
|
|
49
|
+
location,
|
|
50
|
+
description,
|
|
51
|
+
metrics,
|
|
52
|
+
status = "available",
|
|
53
|
+
ndaAvailable,
|
|
54
|
+
cimAvailable,
|
|
55
|
+
href,
|
|
56
|
+
linkComponent,
|
|
57
|
+
saved = false,
|
|
58
|
+
onSave,
|
|
59
|
+
saveLabel = "Save",
|
|
60
|
+
onRequestAccess,
|
|
61
|
+
requestLabel = "Request access",
|
|
62
|
+
className,
|
|
63
|
+
...props
|
|
64
|
+
}, ref) {
|
|
65
|
+
const Link = linkComponent ?? "a";
|
|
66
|
+
const statusInfo = statusConfig[status];
|
|
67
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_Card.Card, { ref, className: (0, import_cn.cn)("flex h-full flex-col overflow-hidden", className), ...props, children: [
|
|
68
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_Card.CardHeader, { className: "gap-2 p-5 pb-3", children: [
|
|
69
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "flex items-start justify-between gap-2", children: [
|
|
70
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: "text-xs font-semibold uppercase tracking-widest text-primary", children: sector }),
|
|
71
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Badge.Badge, { variant: statusInfo.variant, children: statusInfo.label })
|
|
72
|
+
] }),
|
|
73
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("h3", { className: "text-lg font-semibold leading-snug tracking-tight", children: href ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Link, { href, className: "rounded-sm hover:text-primary focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring", children: title }) : title }),
|
|
74
|
+
location && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: "text-xs text-muted-foreground", children: location })
|
|
75
|
+
] }),
|
|
76
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_Card.CardContent, { className: "flex-1 px-5 pb-3", children: [
|
|
77
|
+
description && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: "line-clamp-2 text-sm leading-relaxed text-muted-foreground", children: description }),
|
|
78
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("dl", { className: "mt-4 grid grid-cols-3 gap-3", children: metrics.map((metric) => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "min-w-0", children: [
|
|
79
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("dt", { className: "text-xs text-muted-foreground", children: metric.label }),
|
|
80
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("dd", { className: "mt-0.5 truncate text-sm font-semibold tabular-nums", children: metric.value })
|
|
81
|
+
] }, metric.label)) }),
|
|
82
|
+
(ndaAvailable || cimAvailable) && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "mt-4 flex flex-wrap gap-1.5", children: [
|
|
83
|
+
ndaAvailable && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Badge.Badge, { variant: "info", children: "NDA available" }),
|
|
84
|
+
cimAvailable && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Badge.Badge, { variant: "secondary", children: "CIM available" })
|
|
85
|
+
] })
|
|
86
|
+
] }),
|
|
87
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_Card.CardFooter, { className: "flex flex-wrap items-center gap-2 border-t border-border px-5 py-3", children: [
|
|
88
|
+
onRequestAccess && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Button.Button, { type: "button", size: "sm", onClick: onRequestAccess, children: requestLabel }),
|
|
89
|
+
onSave && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
90
|
+
import_Button.Button,
|
|
91
|
+
{
|
|
92
|
+
type: "button",
|
|
93
|
+
size: "sm",
|
|
94
|
+
variant: "ghost",
|
|
95
|
+
"aria-pressed": saved,
|
|
96
|
+
onClick: onSave,
|
|
97
|
+
className: "ml-auto",
|
|
98
|
+
children: saved ? "Saved" : saveLabel
|
|
99
|
+
}
|
|
100
|
+
)
|
|
101
|
+
] })
|
|
102
|
+
] });
|
|
103
|
+
});
|
|
104
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
105
|
+
0 && (module.exports = {
|
|
106
|
+
DealCard
|
|
107
|
+
});
|
|
108
|
+
//# sourceMappingURL=DealCard.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../src/components/deal-card/DealCard.tsx"],"sourcesContent":["import * as React from 'react';\nimport { cn } from '../../utils/cn';\nimport { Badge } from '../badge/Badge';\nimport { Button } from '../button/Button';\nimport { Card, CardContent, CardFooter, CardHeader } from '../card/Card';\n\nexport type DealMetric = {\n label: string;\n value: string;\n};\n\nexport type DealStatus = 'available' | 'under-nda' | 'closed' | 'draft';\n\nexport type DealCardProps = Omit<React.HTMLAttributes<HTMLElement>, 'title'> & {\n /** Deal headline. */\n title: string;\n /** Sector or industry label. */\n sector: string;\n /** Region or location. */\n location?: string;\n /** Optional short summary. */\n description?: string;\n /** Three headline metrics such as revenue, EBITDA and margin. */\n metrics: DealMetric[];\n /** Availability state. Default 'available'. */\n status?: DealStatus;\n /** Show the NDA badge. */\n ndaAvailable?: boolean;\n /** Show the CIM badge. */\n cimAvailable?: boolean;\n /** Optional deal detail link. */\n href?: string;\n /** Custom link element for routers. */\n linkComponent?: React.ElementType;\n /** Save toggle state. */\n saved?: boolean;\n onSave?: () => void;\n /** Save button label. Default \"Save\". */\n saveLabel?: string;\n /** Request access handler. */\n onRequestAccess?: () => void;\n /** Request access label. Default \"Request access\". */\n requestLabel?: string;\n};\n\nconst statusConfig: Record<DealStatus, { label: string; variant: 'success' | 'info' | 'secondary' | 'outline' }> = {\n available: { label: 'Available', variant: 'success' },\n 'under-nda': { label: 'Under NDA', variant: 'info' },\n closed: { label: 'Closed', variant: 'secondary' },\n draft: { label: 'Draft', variant: 'outline' },\n};\n\n/**\n * Deal opportunity card for trend, search and saved-deal surfaces. Metrics use\n * tabular numerals; NDA and CIM access are stated as text badges, not implied.\n */\nexport const DealCard = React.forwardRef<HTMLElement, DealCardProps>(function DealCard(\n {\n title,\n sector,\n location,\n description,\n metrics,\n status = 'available',\n ndaAvailable,\n cimAvailable,\n href,\n linkComponent,\n saved = false,\n onSave,\n saveLabel = 'Save',\n onRequestAccess,\n requestLabel = 'Request access',\n className,\n ...props\n },\n ref\n) {\n const Link = linkComponent ?? 'a';\n const statusInfo = statusConfig[status];\n\n return (\n <Card ref={ref as never} className={cn('flex h-full flex-col overflow-hidden', className)} {...props}>\n <CardHeader className=\"gap-2 p-5 pb-3\">\n <div className=\"flex items-start justify-between gap-2\">\n <p className=\"text-xs font-semibold uppercase tracking-widest text-primary\">{sector}</p>\n <Badge variant={statusInfo.variant}>{statusInfo.label}</Badge>\n </div>\n <h3 className=\"text-lg font-semibold leading-snug tracking-tight\">\n {href ? (\n <Link href={href} className=\"rounded-sm hover:text-primary focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring\">\n {title}\n </Link>\n ) : (\n title\n )}\n </h3>\n {location && <p className=\"text-xs text-muted-foreground\">{location}</p>}\n </CardHeader>\n <CardContent className=\"flex-1 px-5 pb-3\">\n {description && <p className=\"line-clamp-2 text-sm leading-relaxed text-muted-foreground\">{description}</p>}\n <dl className=\"mt-4 grid grid-cols-3 gap-3\">\n {metrics.map((metric) => (\n <div key={metric.label} className=\"min-w-0\">\n <dt className=\"text-xs text-muted-foreground\">{metric.label}</dt>\n <dd className=\"mt-0.5 truncate text-sm font-semibold tabular-nums\">{metric.value}</dd>\n </div>\n ))}\n </dl>\n {(ndaAvailable || cimAvailable) && (\n <div className=\"mt-4 flex flex-wrap gap-1.5\">\n {ndaAvailable && <Badge variant=\"info\">NDA available</Badge>}\n {cimAvailable && <Badge variant=\"secondary\">CIM available</Badge>}\n </div>\n )}\n </CardContent>\n <CardFooter className=\"flex flex-wrap items-center gap-2 border-t border-border px-5 py-3\">\n {onRequestAccess && (\n <Button type=\"button\" size=\"sm\" onClick={onRequestAccess}>\n {requestLabel}\n </Button>\n )}\n {onSave && (\n <Button\n type=\"button\"\n size=\"sm\"\n variant=\"ghost\"\n aria-pressed={saved}\n onClick={onSave}\n className=\"ml-auto\"\n >\n {saved ? 'Saved' : saveLabel}\n </Button>\n )}\n </CardFooter>\n </Card>\n );\n});\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAoFQ;AApFR,YAAuB;AACvB,gBAAmB;AACnB,mBAAsB;AACtB,oBAAuB;AACvB,kBAA0D;AAyC1D,MAAM,eAA6G;AAAA,EACjH,WAAW,EAAE,OAAO,aAAa,SAAS,UAAU;AAAA,EACpD,aAAa,EAAE,OAAO,aAAa,SAAS,OAAO;AAAA,EACnD,QAAQ,EAAE,OAAO,UAAU,SAAS,YAAY;AAAA,EAChD,OAAO,EAAE,OAAO,SAAS,SAAS,UAAU;AAC9C;AAMO,MAAM,WAAW,MAAM,WAAuC,SAASA,UAC5E;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA,SAAS;AAAA,EACT;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA,QAAQ;AAAA,EACR;AAAA,EACA,YAAY;AAAA,EACZ;AAAA,EACA,eAAe;AAAA,EACf;AAAA,EACA,GAAG;AACL,GACA,KACA;AACA,QAAM,OAAO,iBAAiB;AAC9B,QAAM,aAAa,aAAa,MAAM;AAEtC,SACE,6CAAC,oBAAK,KAAmB,eAAW,cAAG,wCAAwC,SAAS,GAAI,GAAG,OAC7F;AAAA,iDAAC,0BAAW,WAAU,kBACpB;AAAA,mDAAC,SAAI,WAAU,0CACb;AAAA,oDAAC,OAAE,WAAU,gEAAgE,kBAAO;AAAA,QACpF,4CAAC,sBAAM,SAAS,WAAW,SAAU,qBAAW,OAAM;AAAA,SACxD;AAAA,MACA,4CAAC,QAAG,WAAU,qDACX,iBACC,4CAAC,QAAK,MAAY,WAAU,yGACzB,iBACH,IAEA,OAEJ;AAAA,MACC,YAAY,4CAAC,OAAE,WAAU,iCAAiC,oBAAS;AAAA,OACtE;AAAA,IACA,6CAAC,2BAAY,WAAU,oBACpB;AAAA,qBAAe,4CAAC,OAAE,WAAU,8DAA8D,uBAAY;AAAA,MACvG,4CAAC,QAAG,WAAU,+BACX,kBAAQ,IAAI,CAAC,WACZ,6CAAC,SAAuB,WAAU,WAChC;AAAA,oDAAC,QAAG,WAAU,iCAAiC,iBAAO,OAAM;AAAA,QAC5D,4CAAC,QAAG,WAAU,sDAAsD,iBAAO,OAAM;AAAA,WAFzE,OAAO,KAGjB,CACD,GACH;AAAA,OACE,gBAAgB,iBAChB,6CAAC,SAAI,WAAU,+BACZ;AAAA,wBAAgB,4CAAC,sBAAM,SAAQ,QAAO,2BAAa;AAAA,QACnD,gBAAgB,4CAAC,sBAAM,SAAQ,aAAY,2BAAa;AAAA,SAC3D;AAAA,OAEJ;AAAA,IACA,6CAAC,0BAAW,WAAU,sEACnB;AAAA,yBACC,4CAAC,wBAAO,MAAK,UAAS,MAAK,MAAK,SAAS,iBACtC,wBACH;AAAA,MAED,UACC;AAAA,QAAC;AAAA;AAAA,UACC,MAAK;AAAA,UACL,MAAK;AAAA,UACL,SAAQ;AAAA,UACR,gBAAc;AAAA,UACd,SAAS;AAAA,UACT,WAAU;AAAA,UAET,kBAAQ,UAAU;AAAA;AAAA,MACrB;AAAA,OAEJ;AAAA,KACF;AAEJ,CAAC;","names":["DealCard"]}
|