@exxatdesignux/ui 0.2.19 → 0.4.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/CHANGELOG.md +662 -7
- package/bin/sync-extras.mjs +116 -29
- package/consumer-extras/README.md +42 -7
- package/consumer-extras/cursor-rules/exxat-accessibility.mdc +39 -0
- package/consumer-extras/cursor-rules/exxat-board-cards.mdc +26 -0
- package/consumer-extras/cursor-rules/exxat-breadcrumbs-no-back.mdc +21 -0
- package/consumer-extras/cursor-rules/exxat-card-vs-list-rows.mdc +21 -0
- package/consumer-extras/cursor-rules/exxat-centralized-list-dataset.mdc +44 -0
- package/consumer-extras/cursor-rules/exxat-collaboration-access.mdc +32 -0
- package/consumer-extras/cursor-rules/exxat-command-menu.mdc +22 -0
- package/consumer-extras/cursor-rules/exxat-dashboard-view-charts.mdc +53 -0
- package/consumer-extras/cursor-rules/exxat-data-tables.mdc +43 -0
- package/consumer-extras/cursor-rules/exxat-dedicated-search-surfaces.mdc +25 -0
- package/consumer-extras/cursor-rules/exxat-drawer-vs-dialog.mdc +22 -0
- package/consumer-extras/cursor-rules/exxat-ds-agents.mdc +56 -0
- package/consumer-extras/cursor-rules/exxat-fontawesome-icons.mdc +31 -0
- package/consumer-extras/cursor-rules/exxat-kbd-shortcuts.mdc +100 -0
- package/consumer-extras/cursor-rules/exxat-kpi-flat-band.mdc +28 -0
- package/consumer-extras/cursor-rules/exxat-kpi-max-four.mdc +21 -0
- package/consumer-extras/cursor-rules/exxat-kpi-trends.mdc +31 -0
- package/consumer-extras/cursor-rules/exxat-library-hub-header.mdc +28 -0
- package/consumer-extras/cursor-rules/exxat-list-page-connected-views.mdc +24 -0
- package/consumer-extras/cursor-rules/exxat-list-page-view-shells.mdc +31 -0
- package/consumer-extras/cursor-rules/exxat-mono-ids.mdc +30 -0
- package/consumer-extras/cursor-rules/exxat-no-slds-leakage.mdc +78 -0
- package/consumer-extras/cursor-rules/exxat-no-toast.mdc +25 -0
- package/consumer-extras/cursor-rules/exxat-page-vs-drawer.mdc +23 -0
- package/consumer-extras/cursor-rules/exxat-person-identity-display.mdc +47 -0
- package/consumer-extras/cursor-rules/exxat-primary-nav-secondary-panel.mdc +52 -0
- package/consumer-extras/cursor-rules/exxat-reuse-before-custom.mdc +34 -0
- package/consumer-extras/cursor-rules/exxat-table-properties-drawer.mdc +77 -0
- package/consumer-extras/cursor-rules/exxat-token-discipline.mdc +103 -0
- package/consumer-extras/cursor-skills/exxat-accessibility/SKILL.md +1 -1
- package/consumer-extras/cursor-skills/exxat-board-cards/SKILL.md +3 -3
- package/consumer-extras/cursor-skills/exxat-centralized-list-dataset/SKILL.md +5 -16
- package/consumer-extras/cursor-skills/exxat-collaboration-access/SKILL.md +3 -3
- package/consumer-extras/cursor-skills/exxat-dedicated-search-surfaces/SKILL.md +2 -2
- package/consumer-extras/cursor-skills/exxat-ds-skill/SKILL.md +19 -34
- package/consumer-extras/cursor-skills/exxat-ds-skill/references/data-table-pattern.md +1 -1
- package/consumer-extras/cursor-skills/exxat-kpi-flat-band/SKILL.md +1 -1
- package/consumer-extras/cursor-skills/exxat-list-page-view-shells/SKILL.md +1 -1
- package/consumer-extras/cursor-skills/exxat-mono-ids/SKILL.md +4 -4
- package/consumer-extras/cursor-skills/exxat-primary-nav-secondary-panel/SKILL.md +10 -12
- package/consumer-extras/cursor-skills/exxat-token-economy/SKILL.md +277 -0
- package/consumer-extras/handbook/HANDBOOK.md +187 -0
- package/consumer-extras/handbook/glossary.md +58 -0
- package/consumer-extras/handbook/reference-implementations.md +153 -0
- package/consumer-extras/handbook/voice-and-tone.md +262 -0
- package/consumer-extras/patterns/collaboration-access-pattern.md +7 -7
- package/consumer-extras/patterns/command-menu-pattern.md +1 -1
- package/consumer-extras/patterns/consumer-upgrade-checklist.md +0 -20
- package/consumer-extras/patterns/data-views-pattern.md +31 -66
- package/consumer-extras/patterns/kpi-flat-band-pattern.md +2 -2
- package/consumer-extras/patterns/shell-surface-elevation-pattern.md +3 -5
- package/dist/components/data-table/filter-date-calendar.d.ts +10 -0
- package/dist/components/data-table/filter-date-calendar.js +280 -0
- package/dist/components/data-table/filter-date-calendar.js.map +1 -0
- package/dist/components/data-table/filter-text-value-input.d.ts +15 -0
- package/dist/components/data-table/filter-text-value-input.js +561 -0
- package/dist/components/data-table/filter-text-value-input.js.map +1 -0
- package/dist/components/data-table/index.d.ts +45 -0
- package/dist/components/data-table/index.js +3085 -0
- package/dist/components/data-table/index.js.map +1 -0
- package/dist/components/data-table/pagination.d.ts +28 -0
- package/dist/components/data-table/pagination.js +3264 -0
- package/dist/components/data-table/pagination.js.map +1 -0
- package/dist/components/data-table/types.d.ts +84 -0
- package/dist/components/data-table/types.js +3 -0
- package/dist/components/data-table/types.js.map +1 -0
- package/dist/components/data-table/use-table-state.d.ts +116 -0
- package/dist/components/data-table/use-table-state.js +670 -0
- package/dist/components/data-table/use-table-state.js.map +1 -0
- package/dist/components/data-views/board-card-primitives.d.ts +22 -0
- package/dist/components/data-views/board-card-primitives.js +84 -0
- package/dist/components/data-views/board-card-primitives.js.map +1 -0
- package/dist/components/data-views/data-row-list.d.ts +33 -0
- package/dist/components/data-views/data-row-list.js +106 -0
- package/dist/components/data-views/data-row-list.js.map +1 -0
- package/dist/components/data-views/finder-panel-view.d.ts +54 -0
- package/dist/components/data-views/finder-panel-view.js +388 -0
- package/dist/components/data-views/finder-panel-view.js.map +1 -0
- package/dist/components/data-views/folder-grid-view.d.ts +22 -0
- package/dist/components/data-views/folder-grid-view.js +58 -0
- package/dist/components/data-views/folder-grid-view.js.map +1 -0
- package/dist/components/data-views/hub-table.d.ts +173 -0
- package/dist/components/data-views/hub-table.js +5783 -0
- package/dist/components/data-views/hub-table.js.map +1 -0
- package/dist/components/data-views/index.d.ts +27 -0
- package/dist/components/data-views/index.js +6797 -0
- package/dist/components/data-views/index.js.map +1 -0
- package/dist/components/data-views/list-page-board-card.d.ts +72 -0
- package/dist/components/data-views/list-page-board-card.js +264 -0
- package/dist/components/data-views/list-page-board-card.js.map +1 -0
- package/dist/components/data-views/list-page-board-template.d.ts +24 -0
- package/dist/components/data-views/list-page-board-template.js +137 -0
- package/dist/components/data-views/list-page-board-template.js.map +1 -0
- package/dist/components/data-views/list-page-connected-view-body.d.ts +19 -0
- package/dist/components/data-views/list-page-connected-view-body.js +116 -0
- package/dist/components/data-views/list-page-connected-view-body.js.map +1 -0
- package/dist/components/data-views/list-page-split-details-placeholder.d.ts +14 -0
- package/dist/components/data-views/list-page-split-details-placeholder.js +38 -0
- package/dist/components/data-views/list-page-split-details-placeholder.js.map +1 -0
- package/dist/components/data-views/list-page-split-hub-chrome.d.ts +17 -0
- package/dist/components/data-views/list-page-split-hub-chrome.js +54 -0
- package/dist/components/data-views/list-page-split-hub-chrome.js.map +1 -0
- package/dist/components/data-views/list-page-split-hub-tokens.d.ts +12 -0
- package/dist/components/data-views/list-page-split-hub-tokens.js +8 -0
- package/dist/components/data-views/list-page-split-hub-tokens.js.map +1 -0
- package/dist/components/data-views/list-page-tree-column-header.d.ts +15 -0
- package/dist/components/data-views/list-page-tree-column-header.js +22 -0
- package/dist/components/data-views/list-page-tree-column-header.js.map +1 -0
- package/dist/components/data-views/list-page-tree-panel-shell.d.ts +25 -0
- package/dist/components/data-views/list-page-tree-panel-shell.js +146 -0
- package/dist/components/data-views/list-page-tree-panel-shell.js.map +1 -0
- package/dist/components/data-views/os-folder-glyph.d.ts +35 -0
- package/dist/components/data-views/os-folder-glyph.js +104 -0
- package/dist/components/data-views/os-folder-glyph.js.map +1 -0
- package/dist/components/data-views/outline-tree-menu.d.ts +36 -0
- package/dist/components/data-views/outline-tree-menu.js +131 -0
- package/dist/components/data-views/outline-tree-menu.js.map +1 -0
- package/dist/components/table-properties/column-row.d.ts +22 -0
- package/dist/components/table-properties/column-row.js +153 -0
- package/dist/components/table-properties/column-row.js.map +1 -0
- package/dist/components/table-properties/draggable-list.d.ts +24 -0
- package/dist/components/table-properties/draggable-list.js +53 -0
- package/dist/components/table-properties/draggable-list.js.map +1 -0
- package/dist/components/table-properties/drawer-button.d.ts +110 -0
- package/dist/components/table-properties/drawer-button.js +2748 -0
- package/dist/components/table-properties/drawer-button.js.map +1 -0
- package/dist/components/table-properties/drawer.d.ts +100 -0
- package/dist/components/table-properties/drawer.js +2595 -0
- package/dist/components/table-properties/drawer.js.map +1 -0
- package/dist/components/table-properties/filter-card.d.ts +24 -0
- package/dist/components/table-properties/filter-card.js +854 -0
- package/dist/components/table-properties/filter-card.js.map +1 -0
- package/dist/components/table-properties/index.d.ts +14 -0
- package/dist/components/table-properties/index.js +2768 -0
- package/dist/components/table-properties/index.js.map +1 -0
- package/dist/components/table-properties/sort-card.d.ts +20 -0
- package/dist/components/table-properties/sort-card.js +102 -0
- package/dist/components/table-properties/sort-card.js.map +1 -0
- package/dist/components/templates/dedicated-search-landing-template.d.ts +21 -0
- package/dist/components/templates/dedicated-search-landing-template.js +254 -0
- package/dist/components/templates/dedicated-search-landing-template.js.map +1 -0
- package/dist/components/templates/dedicated-search-results-template.d.ts +15 -0
- package/dist/components/templates/dedicated-search-results-template.js +16 -0
- package/dist/components/templates/dedicated-search-results-template.js.map +1 -0
- package/dist/components/templates/index.d.ts +9 -0
- package/dist/components/templates/index.js +2720 -0
- package/dist/components/templates/index.js.map +1 -0
- package/dist/components/templates/list-page.d.ts +83 -0
- package/dist/components/templates/list-page.js +2433 -0
- package/dist/components/templates/list-page.js.map +1 -0
- package/dist/components/templates/nested-secondary-panel-shell.d.ts +20 -0
- package/dist/components/templates/nested-secondary-panel-shell.js +54 -0
- package/dist/components/templates/nested-secondary-panel-shell.js.map +1 -0
- package/dist/components/ui/accordion.d.ts +10 -0
- package/dist/components/ui/accordion.js +74 -0
- package/dist/components/ui/accordion.js.map +1 -0
- package/dist/components/ui/alert-dialog.d.ts +37 -0
- package/dist/components/ui/alert-dialog.js +201 -0
- package/dist/components/ui/alert-dialog.js.map +1 -0
- package/dist/components/ui/avatar.d.ts +84 -0
- package/dist/components/ui/avatar.js +328 -0
- package/dist/components/ui/avatar.js.map +1 -0
- package/dist/components/ui/badge.d.ts +13 -0
- package/dist/components/ui/badge.js +49 -0
- package/dist/components/ui/badge.js.map +1 -0
- package/dist/components/ui/banner.d.ts +62 -0
- package/dist/components/ui/banner.js +364 -0
- package/dist/components/ui/banner.js.map +1 -0
- package/dist/components/ui/breadcrumb.d.ts +14 -0
- package/dist/components/ui/breadcrumb.js +114 -0
- package/dist/components/ui/breadcrumb.js.map +1 -0
- package/dist/components/ui/button.d.ts +16 -0
- package/dist/components/ui/button.js +59 -0
- package/dist/components/ui/button.js.map +1 -0
- package/dist/components/ui/calendar.d.ts +13 -0
- package/dist/components/ui/calendar.js +238 -0
- package/dist/components/ui/calendar.js.map +1 -0
- package/dist/components/ui/card.d.ts +14 -0
- package/dist/components/ui/card.js +102 -0
- package/dist/components/ui/card.js.map +1 -0
- package/dist/components/ui/chart.d.ts +58 -0
- package/dist/components/ui/chart.js +292 -0
- package/dist/components/ui/chart.js.map +1 -0
- package/dist/components/ui/checkbox.d.ts +23 -0
- package/dist/components/ui/checkbox.js +155 -0
- package/dist/components/ui/checkbox.js.map +1 -0
- package/dist/components/ui/coach-mark.d.ts +27 -0
- package/dist/components/ui/coach-mark.js +306 -0
- package/dist/components/ui/coach-mark.js.map +1 -0
- package/dist/components/ui/collapsible.d.ts +8 -0
- package/dist/components/ui/collapsible.js +35 -0
- package/dist/components/ui/collapsible.js.map +1 -0
- package/dist/components/ui/command.d.ts +36 -0
- package/dist/components/ui/command.js +274 -0
- package/dist/components/ui/command.js.map +1 -0
- package/dist/components/ui/context-menu.d.ts +32 -0
- package/dist/components/ui/context-menu.js +245 -0
- package/dist/components/ui/context-menu.js.map +1 -0
- package/dist/components/ui/date-picker-field.d.ts +38 -0
- package/dist/components/ui/date-picker-field.js +550 -0
- package/dist/components/ui/date-picker-field.js.map +1 -0
- package/dist/components/ui/dialog.d.ts +22 -0
- package/dist/components/ui/dialog.js +200 -0
- package/dist/components/ui/dialog.js.map +1 -0
- package/dist/components/ui/dot-pattern.d.ts +21 -0
- package/dist/components/ui/dot-pattern.js +139 -0
- package/dist/components/ui/dot-pattern.js.map +1 -0
- package/dist/components/ui/drag-handle-grip.d.ts +10 -0
- package/dist/components/ui/drag-handle-grip.js +15 -0
- package/dist/components/ui/drag-handle-grip.js.map +1 -0
- package/dist/components/ui/drawer.d.ts +16 -0
- package/dist/components/ui/drawer.js +125 -0
- package/dist/components/ui/drawer.js.map +1 -0
- package/dist/components/ui/dropdown-menu.d.ts +45 -0
- package/dist/components/ui/dropdown-menu.js +353 -0
- package/dist/components/ui/dropdown-menu.js.map +1 -0
- package/dist/components/ui/export-drawer.d.ts +11 -0
- package/dist/components/ui/export-drawer.js +1658 -0
- package/dist/components/ui/export-drawer.js.map +1 -0
- package/dist/components/ui/field.d.ts +30 -0
- package/dist/components/ui/field.js +249 -0
- package/dist/components/ui/field.js.map +1 -0
- package/dist/components/ui/form.d.ts +28 -0
- package/dist/components/ui/form.js +110 -0
- package/dist/components/ui/form.js.map +1 -0
- package/dist/components/ui/hover-card.d.ts +9 -0
- package/dist/components/ui/hover-card.js +43 -0
- package/dist/components/ui/hover-card.js.map +1 -0
- package/dist/components/ui/input-group.d.ts +20 -0
- package/dist/components/ui/input-group.js +219 -0
- package/dist/components/ui/input-group.js.map +1 -0
- package/dist/components/ui/input-mask.d.ts +39 -0
- package/dist/components/ui/input-mask.js +118 -0
- package/dist/components/ui/input-mask.js.map +1 -0
- package/dist/components/ui/input.d.ts +5 -0
- package/dist/components/ui/input.js +30 -0
- package/dist/components/ui/input.js.map +1 -0
- package/dist/components/ui/kbd.d.ts +20 -0
- package/dist/components/ui/kbd.js +45 -0
- package/dist/components/ui/kbd.js.map +1 -0
- package/dist/components/ui/key-metrics-context.d.ts +19 -0
- package/dist/components/ui/key-metrics-context.js +26 -0
- package/dist/components/ui/key-metrics-context.js.map +1 -0
- package/dist/components/ui/key-metrics.d.ts +131 -0
- package/dist/components/ui/key-metrics.js +1015 -0
- package/dist/components/ui/key-metrics.js.map +1 -0
- package/dist/components/ui/label.d.ts +6 -0
- package/dist/components/ui/label.js +28 -0
- package/dist/components/ui/label.js.map +1 -0
- package/dist/components/ui/list-page-view-frame.d.ts +22 -0
- package/dist/components/ui/list-page-view-frame.js +24 -0
- package/dist/components/ui/list-page-view-frame.js.map +1 -0
- package/dist/components/ui/page-header.d.ts +51 -0
- package/dist/components/ui/page-header.js +372 -0
- package/dist/components/ui/page-header.js.map +1 -0
- package/dist/components/ui/payment-card-fields.d.ts +10 -0
- package/dist/components/ui/payment-card-fields.js +80 -0
- package/dist/components/ui/payment-card-fields.js.map +1 -0
- package/dist/components/ui/popover.d.ts +10 -0
- package/dist/components/ui/popover.js +47 -0
- package/dist/components/ui/popover.js.map +1 -0
- package/dist/components/ui/radio-group.d.ts +29 -0
- package/dist/components/ui/radio-group.js +190 -0
- package/dist/components/ui/radio-group.js.map +1 -0
- package/dist/components/ui/resizable.d.ts +16 -0
- package/dist/components/ui/resizable.js +51 -0
- package/dist/components/ui/resizable.js.map +1 -0
- package/dist/components/ui/scroll-area.d.ts +8 -0
- package/dist/components/ui/scroll-area.js +66 -0
- package/dist/components/ui/scroll-area.js.map +1 -0
- package/dist/components/ui/select.d.ts +18 -0
- package/dist/components/ui/select.js +186 -0
- package/dist/components/ui/select.js.map +1 -0
- package/dist/components/ui/selection-tile-grid.d.ts +52 -0
- package/dist/components/ui/selection-tile-grid.js +347 -0
- package/dist/components/ui/selection-tile-grid.js.map +1 -0
- package/dist/components/ui/separator.d.ts +7 -0
- package/dist/components/ui/separator.js +33 -0
- package/dist/components/ui/separator.js.map +1 -0
- package/dist/components/ui/sheet.d.ts +18 -0
- package/dist/components/ui/sheet.js +181 -0
- package/dist/components/ui/sheet.js.map +1 -0
- package/dist/components/ui/sidebar.d.ts +94 -0
- package/dist/components/ui/sidebar.js +805 -0
- package/dist/components/ui/sidebar.js.map +1 -0
- package/dist/components/ui/skeleton.d.ts +5 -0
- package/dist/components/ui/skeleton.js +22 -0
- package/dist/components/ui/skeleton.js.map +1 -0
- package/dist/components/ui/slider.d.ts +7 -0
- package/dist/components/ui/slider.js +66 -0
- package/dist/components/ui/slider.js.map +1 -0
- package/dist/components/ui/sonner.d.ts +6 -0
- package/dist/components/ui/sonner.js +38 -0
- package/dist/components/ui/sonner.js.map +1 -0
- package/dist/components/ui/status-badge.d.ts +38 -0
- package/dist/components/ui/status-badge.js +77 -0
- package/dist/components/ui/status-badge.js.map +1 -0
- package/dist/components/ui/table.d.ts +13 -0
- package/dist/components/ui/table.js +115 -0
- package/dist/components/ui/table.js.map +1 -0
- package/dist/components/ui/tabs.d.ts +15 -0
- package/dist/components/ui/tabs.js +93 -0
- package/dist/components/ui/tabs.js.map +1 -0
- package/dist/components/ui/textarea.d.ts +6 -0
- package/dist/components/ui/textarea.js +25 -0
- package/dist/components/ui/textarea.js.map +1 -0
- package/dist/components/ui/tip.d.ts +12 -0
- package/dist/components/ui/tip.js +61 -0
- package/dist/components/ui/tip.js.map +1 -0
- package/dist/components/ui/toggle-group.d.ts +14 -0
- package/dist/components/ui/toggle-group.js +104 -0
- package/dist/components/ui/toggle-group.js.map +1 -0
- package/dist/components/ui/toggle-switch.d.ts +10 -0
- package/dist/components/ui/toggle-switch.js +33 -0
- package/dist/components/ui/toggle-switch.js.map +1 -0
- package/dist/components/ui/toggle.d.ts +13 -0
- package/dist/components/ui/toggle.js +51 -0
- package/dist/components/ui/toggle.js.map +1 -0
- package/dist/components/ui/tooltip.d.ts +10 -0
- package/dist/components/ui/tooltip.js +68 -0
- package/dist/components/ui/tooltip.js.map +1 -0
- package/dist/components/ui/view-segmented-control.d.ts +31 -0
- package/dist/components/ui/view-segmented-control.js +167 -0
- package/dist/components/ui/view-segmented-control.js.map +1 -0
- package/dist/data-list-view-registry-CyBoBML4.d.ts +73 -0
- package/dist/hooks/use-app-theme.d.ts +24 -0
- package/dist/hooks/use-app-theme.js +286 -0
- package/dist/hooks/use-app-theme.js.map +1 -0
- package/dist/hooks/use-coach-mark.d.ts +86 -0
- package/dist/hooks/use-coach-mark.js +218 -0
- package/dist/hooks/use-coach-mark.js.map +1 -0
- package/dist/hooks/use-mobile.d.ts +3 -0
- package/dist/hooks/use-mobile.js +29 -0
- package/dist/hooks/use-mobile.js.map +1 -0
- package/dist/hooks/use-mod-key-label.d.ts +6 -0
- package/dist/hooks/use-mod-key-label.js +25 -0
- package/dist/hooks/use-mod-key-label.js.map +1 -0
- package/dist/index.d.ts +120 -0
- package/dist/index.js +13421 -0
- package/dist/index.js.map +1 -0
- package/dist/lib/compose-refs.d.ts +6 -0
- package/dist/lib/compose-refs.js +17 -0
- package/dist/lib/compose-refs.js.map +1 -0
- package/dist/lib/conditional-rule-match.d.ts +30 -0
- package/dist/lib/conditional-rule-match.js +66 -0
- package/dist/lib/conditional-rule-match.js.map +1 -0
- package/dist/lib/data-list-display-options.d.ts +26 -0
- package/dist/lib/data-list-display-options.js +14 -0
- package/dist/lib/data-list-display-options.js.map +1 -0
- package/dist/lib/data-list-view-registry.d.ts +2 -0
- package/dist/lib/data-list-view-registry.js +102 -0
- package/dist/lib/data-list-view-registry.js.map +1 -0
- package/dist/lib/data-list-view-surface.d.ts +2 -0
- package/dist/lib/data-list-view-surface.js +80 -0
- package/dist/lib/data-list-view-surface.js.map +1 -0
- package/dist/lib/data-list-view.d.ts +21 -0
- package/dist/lib/data-list-view.js +25 -0
- package/dist/lib/data-list-view.js.map +1 -0
- package/dist/lib/date-filter.d.ts +22 -0
- package/dist/lib/date-filter.js +61 -0
- package/dist/lib/date-filter.js.map +1 -0
- package/dist/lib/dev-log.d.ts +8 -0
- package/dist/lib/dev-log.js +10 -0
- package/dist/lib/dev-log.js.map +1 -0
- package/dist/lib/dropdown-menu-surface.d.ts +14 -0
- package/dist/lib/dropdown-menu-surface.js +6 -0
- package/dist/lib/dropdown-menu-surface.js.map +1 -0
- package/dist/lib/editable-target.d.ts +12 -0
- package/dist/lib/editable-target.js +12 -0
- package/dist/lib/editable-target.js.map +1 -0
- package/dist/lib/list-page-table-properties.d.ts +35 -0
- package/dist/lib/list-page-table-properties.js +81 -0
- package/dist/lib/list-page-table-properties.js.map +1 -0
- package/dist/lib/raf-throttle.d.ts +23 -0
- package/dist/lib/raf-throttle.js +27 -0
- package/dist/lib/raf-throttle.js.map +1 -0
- package/dist/lib/row-height.d.ts +16 -0
- package/dist/lib/row-height.js +10 -0
- package/dist/lib/row-height.js.map +1 -0
- package/dist/lib/table-properties-types.d.ts +83 -0
- package/dist/lib/table-properties-types.js +19 -0
- package/dist/lib/table-properties-types.js.map +1 -0
- package/dist/lib/utils.d.ts +5 -0
- package/dist/lib/utils.js +11 -0
- package/dist/lib/utils.js.map +1 -0
- package/package.json +83 -19
- package/src/components/data-table/filter-date-calendar.tsx +38 -0
- package/src/components/data-table/filter-text-value-input.tsx +77 -0
- package/src/components/data-table/index.tsx +1678 -0
- package/src/components/data-table/pagination.tsx +259 -0
- package/src/components/data-table/types.ts +96 -0
- package/src/components/data-table/use-table-state.ts +767 -0
- package/src/components/data-views/board-card-primitives.tsx +93 -0
- package/src/components/data-views/data-row-list.tsx +183 -0
- package/src/components/data-views/finder-panel-view.tsx +405 -0
- package/src/components/data-views/folder-grid-view.tsx +86 -0
- package/src/components/data-views/hub-table.tsx +606 -0
- package/src/components/data-views/index.ts +28 -0
- package/src/components/data-views/list-page-board-card.tsx +192 -0
- package/src/components/data-views/list-page-board-template.tsx +122 -0
- package/src/components/data-views/list-page-connected-view-body.tsx +66 -0
- package/src/components/data-views/list-page-split-details-placeholder.tsx +39 -0
- package/src/components/data-views/list-page-split-hub-chrome.tsx +60 -0
- package/src/components/data-views/list-page-split-hub-tokens.ts +16 -0
- package/src/components/data-views/list-page-tree-column-header.tsx +31 -0
- package/src/components/data-views/list-page-tree-panel-shell.tsx +91 -0
- package/src/components/data-views/os-folder-glyph.tsx +141 -0
- package/src/components/data-views/outline-tree-menu.tsx +157 -0
- package/src/components/table-properties/column-row.tsx +90 -0
- package/src/components/table-properties/draggable-list.ts +54 -0
- package/src/components/table-properties/drawer-button.tsx +300 -0
- package/src/components/table-properties/drawer.tsx +1148 -0
- package/src/components/table-properties/filter-card.tsx +251 -0
- package/src/components/table-properties/index.ts +36 -0
- package/src/components/table-properties/sort-card.tsx +63 -0
- package/src/components/templates/dedicated-search-landing-template.tsx +124 -0
- package/src/components/templates/dedicated-search-results-template.tsx +19 -0
- package/src/components/templates/index.ts +33 -0
- package/src/components/templates/list-page.tsx +602 -0
- package/src/components/templates/nested-secondary-panel-shell.tsx +70 -0
- package/src/components/ui/accordion.tsx +92 -0
- package/src/components/ui/alert-dialog.tsx +221 -0
- package/src/components/ui/avatar.tsx +13 -2
- package/src/components/ui/banner.tsx +2 -2
- package/src/components/ui/button.tsx +4 -4
- package/src/components/ui/calendar.tsx +1 -1
- package/src/components/ui/coach-mark.tsx +1 -1
- package/src/components/ui/context-menu.tsx +291 -0
- package/src/components/ui/date-picker-field.tsx +2 -2
- package/src/components/ui/dot-pattern.tsx +183 -0
- package/src/components/ui/export-drawer.tsx +375 -0
- package/src/components/ui/hover-card.tsx +66 -0
- package/src/components/ui/key-metrics-context.tsx +78 -0
- package/src/components/ui/key-metrics.tsx +1133 -0
- package/src/components/ui/list-page-view-frame.tsx +64 -0
- package/src/components/ui/page-header.tsx +244 -0
- package/src/components/ui/payment-card-fields.tsx +2 -2
- package/src/components/ui/resizable.tsx +68 -0
- package/src/components/ui/scroll-area.tsx +72 -0
- package/src/components/ui/selection-tile-grid.tsx +9 -2
- package/src/components/ui/sidebar.tsx +84 -12
- package/src/components/ui/slider.tsx +83 -0
- package/src/globals.css +2201 -7
- package/src/globals.d.ts +20 -0
- package/src/index.ts +68 -1
- package/src/lib/conditional-rule-match.ts +119 -0
- package/src/lib/data-list-display-options.ts +35 -0
- package/src/lib/data-list-view-registry.ts +104 -0
- package/src/lib/data-list-view-surface.ts +83 -0
- package/src/lib/data-list-view.ts +47 -0
- package/src/lib/dev-log.ts +10 -0
- package/src/lib/editable-target.ts +20 -0
- package/src/lib/list-page-table-properties.ts +48 -0
- package/src/lib/raf-throttle.ts +45 -0
- package/src/lib/row-height.ts +19 -0
- package/src/lib/table-properties-types.ts +98 -0
- package/template/.claude/skills/exxat-ds-skill/SKILL.md +8 -7
- package/template/.cursor/rules/exxat-accessibility.mdc +1 -1
- package/template/.cursor/rules/exxat-command-menu.mdc +2 -2
- package/template/.cursor/rules/exxat-dashboard-view-charts.mdc +7 -7
- package/template/.cursor/rules/exxat-data-tables.mdc +3 -3
- package/template/.cursor/rules/exxat-ds-agents.mdc +2 -2
- package/template/.cursor/rules/exxat-kbd-shortcuts.mdc +7 -7
- package/template/.cursor/rules/exxat-mono-ids.mdc +1 -1
- package/template/.cursor/rules/exxat-page-vs-drawer.mdc +1 -1
- package/template/.cursor/rules/exxat-table-properties-drawer.mdc +1 -1
- package/template/AGENTS.md +135 -103
- package/template/app/(app)/columns/page.tsx +11 -0
- package/template/app/(app)/dashboard/loading.tsx +15 -3
- package/template/app/(app)/dashboard/page.tsx +14 -2
- package/template/app/(app)/layout.tsx +17 -4
- package/template/app/(app)/library/all/page.tsx +11 -0
- package/template/app/(app)/library/find/page.tsx +12 -0
- package/template/app/(app)/{question-bank → library}/layout.tsx +17 -17
- package/template/app/(app)/library/list/page.tsx +12 -0
- package/template/app/(app)/library/new/page.tsx +45 -0
- package/template/app/(app)/library/page.tsx +11 -0
- package/template/app/(app)/loading.tsx +18 -1
- package/template/app/(app)/settings/page.tsx +5 -4
- package/template/app/(app)/tokens-themes/page.tsx +11 -0
- package/template/app/globals.css +14 -16
- package/template/components/ask-leo-composer.tsx +2 -2
- package/template/components/ask-leo-sidebar.tsx +5 -1
- package/template/components/brand-color-picker.tsx +2 -2
- package/template/components/charts-overview.tsx +1 -1
- package/template/components/columns-client.tsx +158 -0
- package/template/components/columns-showcase.tsx +541 -0
- package/template/components/dashboard-report-charts.tsx +1 -1
- package/template/components/dashboard-tabs.tsx +1 -1
- package/template/components/data-table/filter-date-calendar.tsx +1 -38
- package/template/components/data-table/filter-text-value-input.tsx +1 -77
- package/template/components/data-table/index.tsx +1 -1634
- package/template/components/data-table/pagination.tsx +1 -255
- package/template/components/data-table/types.ts +1 -94
- package/template/components/data-table/use-table-state.test.ts +420 -0
- package/template/components/data-table/use-table-state.ts +1 -758
- package/template/components/data-views/board-card-primitives.tsx +1 -93
- package/template/components/data-views/data-row-list.tsx +1 -183
- package/template/components/data-views/finder-panel-view.tsx +1 -405
- package/template/components/data-views/folder-grid-view.tsx +1 -86
- package/template/components/data-views/hub-table.tsx +1 -0
- package/template/components/data-views/index.ts +77 -38
- package/template/components/data-views/{question-bank-folder-tree-branch.tsx → library-folder-tree-branch.tsx} +19 -19
- package/template/components/data-views/list-page-board-card.tsx +1 -192
- package/template/components/data-views/list-page-board-template.tsx +1 -122
- package/template/components/data-views/list-page-connected-view-body.tsx +1 -66
- package/template/components/data-views/list-page-split-details-placeholder.tsx +1 -39
- package/template/components/data-views/list-page-split-hub-chrome.tsx +1 -68
- package/template/components/data-views/list-page-split-hub-tokens.ts +1 -16
- package/template/components/data-views/list-page-tree-column-header.tsx +1 -31
- package/template/components/data-views/list-page-tree-panel-shell.tsx +1 -91
- package/template/components/data-views/list-page-view-frame.tsx +5 -53
- package/template/components/data-views/os-folder-glyph.tsx +1 -129
- package/template/components/data-views/outline-tree-menu.tsx +1 -157
- package/template/components/data-views/table-cells.tsx +673 -0
- package/template/components/export-drawer.test.tsx +71 -0
- package/template/components/export-drawer.tsx +1 -375
- package/template/components/exxat-product-logo.tsx +5 -5
- package/template/components/folder-details-shell.tsx +11 -11
- package/template/components/hub-tree-panel-view.tsx +26 -26
- package/template/components/invite-collaborators-drawer.tsx +3 -3
- package/template/components/key-metrics-ask-leo-bridge.tsx +40 -0
- package/template/components/key-metrics.tsx +1 -1063
- package/template/components/leo-insight-indicator.tsx +2 -2
- package/template/components/{question-bank-board-view.tsx → library-board-view.tsx} +44 -44
- package/template/components/{question-bank-client.tsx → library-client.tsx} +83 -83
- package/template/components/{question-bank-dashboard-charts.tsx → library-dashboard-charts.tsx} +14 -14
- package/template/components/{question-bank-favorite-button.tsx → library-favorite-button.tsx} +7 -7
- package/template/components/{question-bank-hub-client.tsx → library-hub-client.tsx} +44 -44
- package/template/components/{question-bank-new-folder-sheet.tsx → library-new-folder-sheet.tsx} +16 -16
- package/template/components/{question-bank-os-folder-view.tsx → library-os-folder-view.tsx} +31 -31
- package/template/components/{question-bank-page-header.tsx → library-page-header.tsx} +6 -6
- package/template/components/library-panel-activator.tsx +8 -0
- package/template/components/{question-bank-secondary-nav.tsx → library-secondary-nav.tsx} +63 -63
- package/template/components/library-table.tsx +839 -0
- package/template/components/list-hub-status-badge.tsx +2 -2
- package/template/components/{new-question-composer.tsx → new-library-item-form.tsx} +489 -441
- package/template/components/onboarding/index.ts +9 -0
- package/template/components/onboarding/onboarding-01.tsx +1 -1
- package/template/components/onboarding/onboarding-02.tsx +1 -1
- package/template/components/onboarding/onboarding-03.tsx +1 -1
- package/template/components/onboarding/onboarding-04.tsx +1 -1
- package/template/components/page-header.tsx +8 -226
- package/template/components/product-switcher.tsx +3 -4
- package/template/components/product-wordmark.tsx +2 -1
- package/template/components/settings-appearance-card.tsx +3 -4
- package/template/components/settings-client.tsx +15 -59
- package/template/components/settings-form-row.tsx +4 -9
- package/template/components/{app-sidebar-dynamic.tsx → sidebar/app-sidebar-dynamic.tsx} +1 -1
- package/template/components/{app-sidebar.tsx → sidebar/app-sidebar.tsx} +114 -73
- package/template/components/sidebar/index.ts +16 -0
- package/template/components/{secondary-nav.tsx → sidebar/secondary-nav.tsx} +2 -2
- package/template/components/sidebar/secondary-panel.tsx +316 -0
- package/template/components/sidebar/sidebar-auto-collapse.tsx +27 -0
- package/template/components/{sidebar-auto-open.tsx → sidebar/sidebar-auto-open.tsx} +2 -1
- package/template/components/{sidebar-shell.tsx → sidebar/sidebar-shell.tsx} +1 -1
- package/template/components/site-header.tsx +1 -1
- package/template/components/table-properties/column-row.tsx +1 -90
- package/template/components/table-properties/draggable-list.ts +1 -49
- package/template/components/table-properties/drawer-button.tsx +1 -262
- package/template/components/table-properties/drawer.tsx +1 -1166
- package/template/components/table-properties/filter-card.tsx +1 -251
- package/template/components/table-properties/sort-card.tsx +1 -59
- package/template/components/table-properties/types.ts +28 -71
- package/template/components/templates/dedicated-search-landing-template.tsx +1 -124
- package/template/components/templates/dedicated-search-results-template.tsx +1 -19
- package/template/components/templates/discovery-hub-template.tsx +1 -1
- package/template/components/templates/list-page.tsx +1 -608
- package/template/components/templates/nested-secondary-panel-shell.tsx +1 -63
- package/template/components/templates/new-focus-template.tsx +659 -0
- package/template/components/templates/secondary-panel-hub-template.tsx +2 -2
- package/template/components/tokens-secondary-nav.tsx +192 -0
- package/template/components/tokens-themes-client.tsx +476 -0
- package/template/components/tokens-themes-section.tsx +386 -0
- package/template/components/ui/accordion.tsx +1 -0
- package/template/components/ui/alert-dialog.tsx +1 -0
- package/template/components/ui/context-menu.tsx +1 -0
- package/template/components/ui/dot-pattern.tsx +1 -183
- package/template/components/ui/hover-card.tsx +1 -0
- package/template/components/ui/resizable.tsx +1 -68
- package/template/components/ui/scroll-area.tsx +1 -0
- package/template/components/ui/slider.tsx +1 -0
- package/template/docs/HANDBOOK.md +187 -0
- package/template/docs/blueprints/README.md +86 -0
- package/template/docs/blueprints/_template.md +91 -0
- package/template/docs/blueprints/board-card.md +123 -0
- package/template/docs/blueprints/data-table.md +139 -0
- package/template/docs/blueprints/key-metrics.md +128 -0
- package/template/docs/blueprints/list-page-template.md +123 -0
- package/template/docs/blueprints/page-header.md +130 -0
- package/template/docs/collaboration-access-pattern.md +7 -7
- package/template/docs/command-menu-pattern.md +1 -1
- package/template/docs/component-selection-guide.md +224 -0
- package/template/docs/components-audit-2026-05.md +158 -0
- package/template/docs/data-views-pattern.md +31 -66
- package/template/docs/drawer-vs-dialog-pattern.md +1 -3
- package/template/docs/glossary.md +58 -0
- package/template/docs/kpi-flat-band-pattern.md +3 -3
- package/template/docs/kpi-trend-pattern.md +18 -3
- package/template/docs/large-dataset-strategy.md +155 -0
- package/template/docs/library-hub-header-pattern.md +25 -0
- package/template/docs/migrations/0001-brand-deep-alias-stabilization.md +95 -0
- package/template/docs/migrations/0002-exxat-token-namespace.md +154 -0
- package/template/docs/migrations/0003-globals-css-canonical.md +110 -0
- package/template/docs/migrations/README.md +100 -0
- package/template/docs/migrations/_template.md +64 -0
- package/template/docs/reference-implementations.md +151 -0
- package/template/docs/shell-surface-elevation-pattern.md +3 -5
- package/template/docs/token-taxonomy.md +416 -0
- package/template/docs/voice-and-tone.md +262 -0
- package/template/eslint.config.mjs +27 -0
- package/template/hooks/use-secondary-panel-hub-nav.ts +11 -11
- package/template/lib/ask-leo-route-context.ts +6 -18
- package/template/lib/coach-mark-registry.ts +0 -16
- package/template/lib/command-menu-config.ts +5 -13
- package/template/lib/command-menu-search-data.ts +8 -23
- package/template/lib/conditional-rule-match.ts +6 -97
- package/template/lib/data-list-display-options.ts +1 -49
- package/template/lib/data-list-view-registry.ts +1 -104
- package/template/lib/data-list-view-surface.ts +1 -83
- package/template/lib/data-list-view.ts +1 -47
- package/template/lib/data-view-dashboard-storage.ts +35 -38
- package/template/lib/dev-log.ts +1 -8
- package/template/lib/editable-target.ts +1 -10
- package/template/lib/{question-bank-authoring.ts → library-authoring.ts} +89 -88
- package/template/lib/library-dedicated-search.ts +19 -0
- package/template/lib/library-hub-search.ts +90 -0
- package/template/lib/library-nav.ts +477 -0
- package/template/lib/library-recent-searches.ts +22 -0
- package/template/lib/{question-bank-supported-views.ts → library-supported-views.ts} +2 -3
- package/template/lib/list-page-table-properties.ts +1 -48
- package/template/lib/list-status-badges.ts +16 -11
- package/template/lib/mock/dashboard.ts +1 -1
- package/template/lib/mock/{question-bank-folders.ts → library-folders.ts} +30 -30
- package/template/lib/mock/library-header-collaborators.ts +54 -0
- package/template/lib/mock/{question-bank-inspector.ts → library-inspector.ts} +29 -29
- package/template/lib/mock/{question-bank-kpi.ts → library-kpi.ts} +20 -20
- package/template/lib/mock/library.ts +249 -0
- package/template/lib/mock/navigation.tsx +32 -35
- package/template/lib/raf-throttle.ts +1 -45
- package/template/lib/row-height.ts +4 -10
- package/template/lib/sidebar-state-cookie.ts +11 -2
- package/template/lib/table-state-lifecycle.ts +3 -3
- package/template/next.config.mjs +7 -4
- package/template/package.json +1 -0
- package/template/tests/setup.ts +25 -0
- package/consumer-extras/AGENTS.md +0 -76
- package/consumer-extras/cursor-skills/exxat-consumer-app/SKILL.md +0 -37
- package/consumer-extras/cursor-skills/exxat-focused-workflow-page/SKILL.md +0 -57
- package/consumer-extras/patterns/consumer-app-pattern.md +0 -39
- package/consumer-extras/patterns/focused-workflow-page-pattern.md +0 -84
- package/src/components/ui/button-group.tsx +0 -81
- package/src/theme.css +0 -16
- package/src/tokens/README.md +0 -15
- package/src/tokens/base.css +0 -337
- package/src/tokens/high-contrast.css +0 -1195
- package/src/tokens/layers.css +0 -224
- package/src/tokens/tailwind-bridge.css +0 -118
- package/src/tokens/themes.css +0 -201
- package/template/app/(app)/data-list/layout.tsx +0 -43
- package/template/app/(app)/data-list/page.tsx +0 -10
- package/template/app/(app)/examples/focused-workflow/page.tsx +0 -5
- package/template/app/(app)/examples/page.tsx +0 -43
- package/template/app/(app)/question-bank/find/page.tsx +0 -13
- package/template/app/(app)/question-bank/library/page.tsx +0 -12
- package/template/app/(app)/question-bank/list/page.tsx +0 -13
- package/template/app/(app)/question-bank/new/page.tsx +0 -50
- package/template/app/(app)/question-bank/page.tsx +0 -12
- package/template/components/app-route-loading.tsx +0 -14
- package/template/components/dashboard-onboarding-gallery.tsx +0 -13
- package/template/components/dashboard-onboarding.tsx +0 -21
- package/template/components/data-views/list-page-calendar-view.tsx +0 -593
- package/template/components/data-views/list-page-folder-columns-panel.tsx +0 -345
- package/template/components/examples/focused-workflow-showcase.tsx +0 -183
- package/template/components/list-hub-board-view.tsx +0 -68
- package/template/components/list-hub-client.tsx +0 -186
- package/template/components/list-hub-list-view.tsx +0 -36
- package/template/components/list-hub-panel-activator.tsx +0 -8
- package/template/components/list-hub-secondary-nav.tsx +0 -121
- package/template/components/list-hub-table.tsx +0 -336
- package/template/components/question-bank-folder-columns-panel.tsx +0 -104
- package/template/components/question-bank-list-view.tsx +0 -53
- package/template/components/question-bank-panel-activator.tsx +0 -8
- package/template/components/question-bank-table.tsx +0 -729
- package/template/components/secondary-panel/nav-link-rows.tsx +0 -83
- package/template/components/secondary-panel.tsx +0 -220
- package/template/components/secondary-panels/list-hub-panel.tsx +0 -39
- package/template/components/secondary-panels/question-bank-panel.tsx +0 -39
- package/template/components/secondary-panels/registry.tsx +0 -15
- package/template/components/section-cards.tsx +0 -106
- package/template/components/sidebar-auto-collapse.tsx +0 -23
- package/template/components/templates/focused-workflow-layouts.tsx +0 -448
- package/template/components/templates/focused-workflow-page-template.tsx +0 -69
- package/template/components/templates/page-loading-shell.tsx +0 -262
- package/template/components/ui/button-group.tsx +0 -1
- package/template/docs/consumer-app-pattern.md +0 -39
- package/template/docs/focused-workflow-page-pattern.md +0 -84
- package/template/docs/question-bank-hub-header-pattern.md +0 -25
- package/template/lib/list-hub-nav.ts +0 -121
- package/template/lib/mock/list-hub-directory.ts +0 -27
- package/template/lib/mock/list-hub-kpi.ts +0 -27
- package/template/lib/mock/question-bank-header-collaborators.ts +0 -54
- package/template/lib/mock/question-bank.ts +0 -249
- package/template/lib/page-loading-variant.ts +0 -40
- package/template/lib/question-bank-dedicated-search.ts +0 -19
- package/template/lib/question-bank-hub-search.ts +0 -90
- package/template/lib/question-bank-nav.ts +0 -477
- package/template/lib/question-bank-recent-searches.ts +0 -22
- /package/template/components/{getting-started.tsx → onboarding/getting-started.tsx} +0 -0
- /package/template/components/{nav-documents.tsx → sidebar/nav-documents.tsx} +0 -0
- /package/template/components/{nav-main.tsx → sidebar/nav-main.tsx} +0 -0
- /package/template/components/{nav-secondary.tsx → sidebar/nav-secondary.tsx} +0 -0
- /package/template/components/{nav-user.tsx → sidebar/nav-user.tsx} +0 -0
|
@@ -0,0 +1,854 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import * as React3 from 'react';
|
|
3
|
+
import { clsx } from 'clsx';
|
|
4
|
+
import { twMerge } from 'tailwind-merge';
|
|
5
|
+
import { cva } from 'class-variance-authority';
|
|
6
|
+
import { Slot, Tooltip as Tooltip$1, Popover as Popover$1 } from 'radix-ui';
|
|
7
|
+
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
8
|
+
import { ChevronLeftIcon, ChevronRightIcon, ChevronDownIcon } from 'lucide-react';
|
|
9
|
+
import { getDefaultClassNames, DayPicker } from 'react-day-picker';
|
|
10
|
+
import { useMaskInput } from 'use-mask-input';
|
|
11
|
+
|
|
12
|
+
function cn(...inputs) {
|
|
13
|
+
return twMerge(clsx(inputs));
|
|
14
|
+
}
|
|
15
|
+
var buttonVariants = cva(
|
|
16
|
+
"group/button inline-flex shrink-0 cursor-pointer items-center justify-center rounded-md border border-transparent bg-clip-padding text-sm font-medium whitespace-nowrap transition-all outline-none select-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 active:translate-y-px disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
17
|
+
{
|
|
18
|
+
variants: {
|
|
19
|
+
variant: {
|
|
20
|
+
default: "bg-primary text-primary-foreground hover:bg-primary/80",
|
|
21
|
+
outline: "border-input bg-background hover:bg-interactive-hover hover:text-interactive-hover-foreground aria-expanded:bg-interactive-hover aria-expanded:text-interactive-hover-foreground dark:bg-input/15 dark:hover:bg-input/25",
|
|
22
|
+
secondary: "bg-secondary text-secondary-foreground hover:bg-secondary/80 aria-expanded:bg-secondary aria-expanded:text-secondary-foreground",
|
|
23
|
+
ghost: "hover:bg-interactive-hover hover:text-interactive-hover-foreground aria-expanded:bg-interactive-hover aria-expanded:text-interactive-hover-foreground dark:hover:bg-interactive-hover-subtle",
|
|
24
|
+
destructive: "bg-destructive/10 text-destructive hover:bg-destructive/20 focus-visible:border-destructive/40 focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:hover:bg-destructive/30 dark:focus-visible:ring-destructive/40",
|
|
25
|
+
link: "text-primary underline-offset-4 hover:underline"
|
|
26
|
+
},
|
|
27
|
+
size: {
|
|
28
|
+
default: "h-9 gap-1.5 px-3 has-data-[icon=inline-end]:pe-2.5 has-data-[icon=inline-start]:ps-2.5",
|
|
29
|
+
xs: "h-6 gap-1 px-2 text-xs in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pe-1.5 has-data-[icon=inline-start]:ps-1.5 [&_svg:not([class*='size-'])]:size-3",
|
|
30
|
+
sm: "h-8 gap-1 px-3 text-[0.8rem] in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pe-2 has-data-[icon=inline-start]:ps-2 [&_svg:not([class*='size-'])]:size-3.5",
|
|
31
|
+
lg: "h-10 gap-1.5 px-4 has-data-[icon=inline-end]:pe-3.5 has-data-[icon=inline-start]:ps-3.5",
|
|
32
|
+
icon: "size-9",
|
|
33
|
+
"icon-xs": "size-6 in-data-[slot=button-group]:rounded-lg [&_svg:not([class*='size-'])]:size-3",
|
|
34
|
+
"icon-sm": "size-8 in-data-[slot=button-group]:rounded-lg",
|
|
35
|
+
"icon-lg": "size-10"
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
defaultVariants: {
|
|
39
|
+
variant: "default",
|
|
40
|
+
size: "default"
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
);
|
|
44
|
+
var Button = React3.forwardRef(({ className, variant = "default", size = "default", asChild = false, ...props }, ref) => {
|
|
45
|
+
const Comp = asChild ? Slot.Root : "button";
|
|
46
|
+
return /* @__PURE__ */ jsx(
|
|
47
|
+
Comp,
|
|
48
|
+
{
|
|
49
|
+
ref,
|
|
50
|
+
"data-slot": "button",
|
|
51
|
+
"data-variant": variant,
|
|
52
|
+
"data-size": size,
|
|
53
|
+
className: cn(buttonVariants({ variant, size }), className),
|
|
54
|
+
...props
|
|
55
|
+
}
|
|
56
|
+
);
|
|
57
|
+
});
|
|
58
|
+
Button.displayName = "Button";
|
|
59
|
+
var Input = React3.forwardRef(
|
|
60
|
+
function Input2({ className, type, ...props }, ref) {
|
|
61
|
+
return /* @__PURE__ */ jsx(
|
|
62
|
+
"input",
|
|
63
|
+
{
|
|
64
|
+
ref,
|
|
65
|
+
type,
|
|
66
|
+
"data-slot": "input",
|
|
67
|
+
className: cn(
|
|
68
|
+
"h-8 w-full min-w-0 rounded-md border border-input bg-transparent px-2.5 py-1 text-base transition-colors outline-none file:inline-flex file:h-6 file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:pointer-events-none disabled:cursor-not-allowed disabled:bg-input/50 disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 md:text-sm dark:disabled:bg-input/80 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40",
|
|
69
|
+
className
|
|
70
|
+
),
|
|
71
|
+
...props
|
|
72
|
+
}
|
|
73
|
+
);
|
|
74
|
+
}
|
|
75
|
+
);
|
|
76
|
+
function Tooltip({
|
|
77
|
+
...props
|
|
78
|
+
}) {
|
|
79
|
+
return /* @__PURE__ */ jsx(Tooltip$1.Root, { "data-slot": "tooltip", ...props });
|
|
80
|
+
}
|
|
81
|
+
function TooltipTrigger({
|
|
82
|
+
className,
|
|
83
|
+
...props
|
|
84
|
+
}) {
|
|
85
|
+
return /* @__PURE__ */ jsx(
|
|
86
|
+
Tooltip$1.Trigger,
|
|
87
|
+
{
|
|
88
|
+
"data-slot": "tooltip-trigger",
|
|
89
|
+
suppressHydrationWarning: true,
|
|
90
|
+
className: cn("cursor-pointer", className),
|
|
91
|
+
...props
|
|
92
|
+
}
|
|
93
|
+
);
|
|
94
|
+
}
|
|
95
|
+
function TooltipContent({
|
|
96
|
+
className,
|
|
97
|
+
sideOffset = 0,
|
|
98
|
+
children,
|
|
99
|
+
...props
|
|
100
|
+
}) {
|
|
101
|
+
return /* @__PURE__ */ jsx(Tooltip$1.Portal, { children: /* @__PURE__ */ jsxs(
|
|
102
|
+
Tooltip$1.Content,
|
|
103
|
+
{
|
|
104
|
+
"data-slot": "tooltip-content",
|
|
105
|
+
sideOffset,
|
|
106
|
+
className: cn(
|
|
107
|
+
"z-50 inline-flex w-fit max-w-xs origin-(--radix-tooltip-content-transform-origin) items-center gap-1.5 rounded-md bg-foreground px-3 py-1.5 text-xs text-background has-data-[slot=kbd]:pe-1.5 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 **:data-[slot=kbd]:relative **:data-[slot=kbd]:isolate **:data-[slot=kbd]:z-50 **:data-[slot=kbd]:rounded-sm data-[state=delayed-open]:animate-in data-[state=delayed-open]:fade-in-0 data-[state=delayed-open]:zoom-in-95 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",
|
|
108
|
+
className
|
|
109
|
+
),
|
|
110
|
+
...props,
|
|
111
|
+
children: [
|
|
112
|
+
children,
|
|
113
|
+
/* @__PURE__ */ jsx(Tooltip$1.Arrow, { className: "z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px] bg-foreground fill-foreground" })
|
|
114
|
+
]
|
|
115
|
+
}
|
|
116
|
+
) });
|
|
117
|
+
}
|
|
118
|
+
function Tip({ label, children, side = "top" }) {
|
|
119
|
+
return /* @__PURE__ */ jsxs(Tooltip, { children: [
|
|
120
|
+
/* @__PURE__ */ jsx(TooltipTrigger, { asChild: true, children }),
|
|
121
|
+
/* @__PURE__ */ jsx(TooltipContent, { side, className: "flex flex-wrap items-center gap-1.5", children: label })
|
|
122
|
+
] });
|
|
123
|
+
}
|
|
124
|
+
function Calendar({
|
|
125
|
+
className,
|
|
126
|
+
classNames,
|
|
127
|
+
showOutsideDays = true,
|
|
128
|
+
captionLayout = "label",
|
|
129
|
+
buttonVariant = "ghost",
|
|
130
|
+
formatters,
|
|
131
|
+
components,
|
|
132
|
+
...props
|
|
133
|
+
}) {
|
|
134
|
+
const defaultClassNames = getDefaultClassNames();
|
|
135
|
+
return /* @__PURE__ */ jsx(
|
|
136
|
+
DayPicker,
|
|
137
|
+
{
|
|
138
|
+
showOutsideDays,
|
|
139
|
+
className: cn(
|
|
140
|
+
"group/calendar bg-background p-3 [--cell-size:--spacing(8)] [[data-slot=card-content]_&]:bg-transparent [[data-slot=popover-content]_&]:bg-transparent",
|
|
141
|
+
String.raw`rtl:**:[.rdp-button\_next>svg]:rotate-180`,
|
|
142
|
+
String.raw`rtl:**:[.rdp-button\_previous>svg]:rotate-180`,
|
|
143
|
+
className
|
|
144
|
+
),
|
|
145
|
+
captionLayout,
|
|
146
|
+
formatters: {
|
|
147
|
+
formatMonthDropdown: (date) => date.toLocaleString("default", { month: "short" }),
|
|
148
|
+
...formatters
|
|
149
|
+
},
|
|
150
|
+
classNames: {
|
|
151
|
+
root: cn("w-fit", defaultClassNames.root),
|
|
152
|
+
months: cn(
|
|
153
|
+
"relative flex flex-col gap-4 md:flex-row",
|
|
154
|
+
defaultClassNames.months
|
|
155
|
+
),
|
|
156
|
+
month: cn("flex w-full flex-col gap-4", defaultClassNames.month),
|
|
157
|
+
nav: cn(
|
|
158
|
+
"absolute inset-x-0 top-0 flex w-full items-center justify-between gap-1",
|
|
159
|
+
defaultClassNames.nav
|
|
160
|
+
),
|
|
161
|
+
button_previous: cn(
|
|
162
|
+
buttonVariants({ variant: buttonVariant }),
|
|
163
|
+
"size-(--cell-size) p-0 select-none aria-disabled:opacity-50",
|
|
164
|
+
defaultClassNames.button_previous
|
|
165
|
+
),
|
|
166
|
+
button_next: cn(
|
|
167
|
+
buttonVariants({ variant: buttonVariant }),
|
|
168
|
+
"size-(--cell-size) p-0 select-none aria-disabled:opacity-50",
|
|
169
|
+
defaultClassNames.button_next
|
|
170
|
+
),
|
|
171
|
+
month_caption: cn(
|
|
172
|
+
"flex h-(--cell-size) w-full items-center justify-center px-(--cell-size)",
|
|
173
|
+
defaultClassNames.month_caption
|
|
174
|
+
),
|
|
175
|
+
dropdowns: cn(
|
|
176
|
+
"flex h-(--cell-size) w-full items-center justify-center gap-1.5 text-sm font-medium",
|
|
177
|
+
defaultClassNames.dropdowns
|
|
178
|
+
),
|
|
179
|
+
dropdown_root: cn(
|
|
180
|
+
"relative rounded-md border border-input shadow-xs has-focus:border-ring has-focus:ring-[3px] has-focus:ring-ring/50",
|
|
181
|
+
defaultClassNames.dropdown_root
|
|
182
|
+
),
|
|
183
|
+
dropdown: cn(
|
|
184
|
+
"absolute inset-0 bg-popover opacity-0",
|
|
185
|
+
defaultClassNames.dropdown
|
|
186
|
+
),
|
|
187
|
+
caption_label: cn(
|
|
188
|
+
"font-medium select-none",
|
|
189
|
+
captionLayout === "label" ? "text-sm" : "flex h-8 items-center gap-1 rounded-md pe-1 ps-2 text-sm [&>svg]:size-3.5 [&>svg]:text-muted-foreground",
|
|
190
|
+
defaultClassNames.caption_label
|
|
191
|
+
),
|
|
192
|
+
table: "w-full border-collapse",
|
|
193
|
+
weekdays: cn("flex", defaultClassNames.weekdays),
|
|
194
|
+
weekday: cn(
|
|
195
|
+
"flex-1 rounded-md text-[0.8rem] font-normal text-muted-foreground select-none",
|
|
196
|
+
defaultClassNames.weekday
|
|
197
|
+
),
|
|
198
|
+
week: cn("mt-2 flex w-full", defaultClassNames.week),
|
|
199
|
+
week_number_header: cn(
|
|
200
|
+
"w-(--cell-size) select-none",
|
|
201
|
+
defaultClassNames.week_number_header
|
|
202
|
+
),
|
|
203
|
+
week_number: cn(
|
|
204
|
+
"text-[0.8rem] text-muted-foreground select-none",
|
|
205
|
+
defaultClassNames.week_number
|
|
206
|
+
),
|
|
207
|
+
day: cn(
|
|
208
|
+
"group/day relative aspect-square h-full w-full p-0 text-center select-none [&:last-child[data-selected=true]_button]:rounded-r-md",
|
|
209
|
+
props.showWeekNumber ? "[&:nth-child(2)[data-selected=true]_button]:rounded-l-md" : "[&:first-child[data-selected=true]_button]:rounded-l-md",
|
|
210
|
+
defaultClassNames.day
|
|
211
|
+
),
|
|
212
|
+
range_start: cn(
|
|
213
|
+
"rounded-l-md bg-accent",
|
|
214
|
+
defaultClassNames.range_start
|
|
215
|
+
),
|
|
216
|
+
range_middle: cn("rounded-none", defaultClassNames.range_middle),
|
|
217
|
+
range_end: cn("rounded-r-md bg-accent", defaultClassNames.range_end),
|
|
218
|
+
today: cn(
|
|
219
|
+
"rounded-md bg-accent text-accent-foreground data-[selected=true]:rounded-none",
|
|
220
|
+
defaultClassNames.today
|
|
221
|
+
),
|
|
222
|
+
outside: cn(
|
|
223
|
+
"text-muted-foreground aria-selected:text-muted-foreground",
|
|
224
|
+
defaultClassNames.outside
|
|
225
|
+
),
|
|
226
|
+
disabled: cn(
|
|
227
|
+
"text-muted-foreground opacity-50",
|
|
228
|
+
defaultClassNames.disabled
|
|
229
|
+
),
|
|
230
|
+
hidden: cn("invisible", defaultClassNames.hidden),
|
|
231
|
+
...classNames
|
|
232
|
+
},
|
|
233
|
+
components: {
|
|
234
|
+
Root: ({ className: className2, rootRef, ...props2 }) => {
|
|
235
|
+
return /* @__PURE__ */ jsx(
|
|
236
|
+
"div",
|
|
237
|
+
{
|
|
238
|
+
"data-slot": "calendar",
|
|
239
|
+
ref: rootRef,
|
|
240
|
+
className: cn(className2),
|
|
241
|
+
...props2
|
|
242
|
+
}
|
|
243
|
+
);
|
|
244
|
+
},
|
|
245
|
+
Chevron: ({ className: className2, orientation, ...props2 }) => {
|
|
246
|
+
if (orientation === "left") {
|
|
247
|
+
return /* @__PURE__ */ jsx(ChevronLeftIcon, { className: cn("size-4", className2), ...props2 });
|
|
248
|
+
}
|
|
249
|
+
if (orientation === "right") {
|
|
250
|
+
return /* @__PURE__ */ jsx(
|
|
251
|
+
ChevronRightIcon,
|
|
252
|
+
{
|
|
253
|
+
className: cn("size-4", className2),
|
|
254
|
+
...props2
|
|
255
|
+
}
|
|
256
|
+
);
|
|
257
|
+
}
|
|
258
|
+
return /* @__PURE__ */ jsx(ChevronDownIcon, { className: cn("size-4", className2), ...props2 });
|
|
259
|
+
},
|
|
260
|
+
DayButton: CalendarDayButton,
|
|
261
|
+
WeekNumber: ({ children, ...props2 }) => {
|
|
262
|
+
return /* @__PURE__ */ jsx("td", { ...props2, children: /* @__PURE__ */ jsx("div", { className: "flex size-(--cell-size) items-center justify-center text-center", children }) });
|
|
263
|
+
},
|
|
264
|
+
...components
|
|
265
|
+
},
|
|
266
|
+
...props
|
|
267
|
+
}
|
|
268
|
+
);
|
|
269
|
+
}
|
|
270
|
+
function CalendarDayButton({
|
|
271
|
+
className,
|
|
272
|
+
day,
|
|
273
|
+
modifiers,
|
|
274
|
+
...props
|
|
275
|
+
}) {
|
|
276
|
+
const defaultClassNames = getDefaultClassNames();
|
|
277
|
+
const ref = React3.useRef(null);
|
|
278
|
+
React3.useEffect(() => {
|
|
279
|
+
if (modifiers.focused) ref.current?.focus();
|
|
280
|
+
}, [modifiers.focused]);
|
|
281
|
+
return /* @__PURE__ */ jsx(
|
|
282
|
+
Button,
|
|
283
|
+
{
|
|
284
|
+
ref,
|
|
285
|
+
variant: "ghost",
|
|
286
|
+
size: "icon",
|
|
287
|
+
"data-day": day.date.toLocaleDateString(),
|
|
288
|
+
"data-selected-single": modifiers.selected && !modifiers.range_start && !modifiers.range_end && !modifiers.range_middle,
|
|
289
|
+
"data-range-start": modifiers.range_start,
|
|
290
|
+
"data-range-end": modifiers.range_end,
|
|
291
|
+
"data-range-middle": modifiers.range_middle,
|
|
292
|
+
className: cn(
|
|
293
|
+
"flex aspect-square size-auto w-full min-w-(--cell-size) flex-col gap-1 leading-none font-normal group-data-[focused=true]/day:relative group-data-[focused=true]/day:z-10 group-data-[focused=true]/day:border-ring group-data-[focused=true]/day:ring-[3px] group-data-[focused=true]/day:ring-ring/50 data-[range-end=true]:rounded-md data-[range-end=true]:rounded-r-md data-[range-end=true]:bg-primary data-[range-end=true]:text-primary-foreground data-[range-middle=true]:rounded-none data-[range-middle=true]:bg-accent data-[range-middle=true]:text-accent-foreground data-[range-start=true]:rounded-md data-[range-start=true]:rounded-l-md data-[range-start=true]:bg-primary data-[range-start=true]:text-primary-foreground data-[selected-single=true]:bg-primary data-[selected-single=true]:text-primary-foreground dark:hover:text-accent-foreground [&>span]:text-xs [&>span]:opacity-70",
|
|
294
|
+
defaultClassNames.day,
|
|
295
|
+
className
|
|
296
|
+
),
|
|
297
|
+
...props
|
|
298
|
+
}
|
|
299
|
+
);
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
// src/lib/date-filter.ts
|
|
303
|
+
function ymdToLocalDate(ymd) {
|
|
304
|
+
if (!ymd || !/^\d{4}-\d{2}-\d{2}$/.test(ymd)) return void 0;
|
|
305
|
+
const [y, m, d] = ymd.split("-").map(Number);
|
|
306
|
+
return new Date(y, m - 1, d, 12, 0, 0, 0);
|
|
307
|
+
}
|
|
308
|
+
function localDateToYmd(d) {
|
|
309
|
+
const y = d.getFullYear();
|
|
310
|
+
const m = String(d.getMonth() + 1).padStart(2, "0");
|
|
311
|
+
const day = String(d.getDate()).padStart(2, "0");
|
|
312
|
+
return `${y}-${m}-${day}`;
|
|
313
|
+
}
|
|
314
|
+
function FilterDateCalendar({
|
|
315
|
+
valueYmd,
|
|
316
|
+
onChangeYmd,
|
|
317
|
+
label
|
|
318
|
+
}) {
|
|
319
|
+
const [timeZone, setTimeZone] = React3.useState();
|
|
320
|
+
React3.useEffect(() => {
|
|
321
|
+
setTimeZone(Intl.DateTimeFormat().resolvedOptions().timeZone);
|
|
322
|
+
}, []);
|
|
323
|
+
return /* @__PURE__ */ jsx(
|
|
324
|
+
"div",
|
|
325
|
+
{
|
|
326
|
+
className: "rounded-lg border border-border overflow-hidden",
|
|
327
|
+
role: "group",
|
|
328
|
+
"aria-label": label,
|
|
329
|
+
children: /* @__PURE__ */ jsx(
|
|
330
|
+
Calendar,
|
|
331
|
+
{
|
|
332
|
+
mode: "single",
|
|
333
|
+
selected: ymdToLocalDate(valueYmd),
|
|
334
|
+
onSelect: (d) => onChangeYmd(d ? localDateToYmd(d) : void 0),
|
|
335
|
+
captionLayout: "dropdown",
|
|
336
|
+
timeZone,
|
|
337
|
+
className: "rounded-lg border-0"
|
|
338
|
+
}
|
|
339
|
+
)
|
|
340
|
+
}
|
|
341
|
+
);
|
|
342
|
+
}
|
|
343
|
+
function InputGroup({ className, ...props }) {
|
|
344
|
+
return /* @__PURE__ */ jsx(
|
|
345
|
+
"div",
|
|
346
|
+
{
|
|
347
|
+
"data-slot": "input-group",
|
|
348
|
+
role: "group",
|
|
349
|
+
className: cn(
|
|
350
|
+
"group/input-group relative flex h-8 w-full min-w-0 items-center rounded-md border border-input transition-colors outline-none in-data-[slot=combobox-content]:focus-within:border-inherit in-data-[slot=combobox-content]:focus-within:ring-0 has-disabled:bg-input/50 has-disabled:opacity-50 has-[[data-slot=input-group-control]:focus-visible]:border-ring has-[[data-slot=input-group-control]:focus-visible]:ring-3 has-[[data-slot=input-group-control]:focus-visible]:ring-ring/50 has-[[data-slot][aria-invalid=true]]:border-destructive has-[[data-slot][aria-invalid=true]]:ring-3 has-[[data-slot][aria-invalid=true]]:ring-destructive/20 has-[>[data-align=block-end]]:h-auto has-[>[data-align=block-end]]:flex-col has-[>[data-align=block-start]]:h-auto has-[>[data-align=block-start]]:flex-col has-[>textarea]:h-auto dark:bg-input/30 dark:has-disabled:bg-input/80 dark:has-[[data-slot][aria-invalid=true]]:ring-destructive/40 has-[>[data-align=block-end]]:[&>input]:pt-3 has-[>[data-align=block-start]]:[&>input]:pb-3 has-[>[data-align=inline-end]]:[&>input]:pe-1.5 has-[>[data-align=inline-start]]:[&>input]:ps-1.5",
|
|
351
|
+
className
|
|
352
|
+
),
|
|
353
|
+
...props
|
|
354
|
+
}
|
|
355
|
+
);
|
|
356
|
+
}
|
|
357
|
+
var inputGroupAddonVariants = cva(
|
|
358
|
+
"flex h-auto cursor-text items-center justify-center gap-2 py-1.5 text-sm font-medium text-muted-foreground select-none group-data-[disabled=true]/input-group:opacity-50 [&>kbd]:rounded-[calc(var(--radius)-5px)] [&>svg:not([class*='size-'])]:size-4",
|
|
359
|
+
{
|
|
360
|
+
variants: {
|
|
361
|
+
align: {
|
|
362
|
+
"inline-start": "order-first ps-2 has-[>button]:ms-[-0.3rem] has-[>kbd]:ms-[-0.15rem]",
|
|
363
|
+
"inline-end": "order-last pe-2 has-[>button]:me-[-0.3rem] has-[>kbd]:me-[-0.15rem]",
|
|
364
|
+
"block-start": "order-first w-full justify-start px-2.5 pt-2 group-has-[>input]/input-group:pt-2 [.border-b]:pb-2",
|
|
365
|
+
"block-end": "order-last w-full justify-start px-2.5 pb-2 group-has-[>input]/input-group:pb-2 [.border-t]:pt-2"
|
|
366
|
+
}
|
|
367
|
+
},
|
|
368
|
+
defaultVariants: {
|
|
369
|
+
align: "inline-start"
|
|
370
|
+
}
|
|
371
|
+
}
|
|
372
|
+
);
|
|
373
|
+
function InputGroupAddon({
|
|
374
|
+
className,
|
|
375
|
+
align = "inline-start",
|
|
376
|
+
...props
|
|
377
|
+
}) {
|
|
378
|
+
return /* @__PURE__ */ jsx(
|
|
379
|
+
"div",
|
|
380
|
+
{
|
|
381
|
+
role: "group",
|
|
382
|
+
"data-slot": "input-group-addon",
|
|
383
|
+
"data-align": align,
|
|
384
|
+
className: cn(inputGroupAddonVariants({ align }), className),
|
|
385
|
+
onClick: (e) => {
|
|
386
|
+
if (e.target.closest("button")) {
|
|
387
|
+
return;
|
|
388
|
+
}
|
|
389
|
+
e.currentTarget.parentElement?.querySelector("input")?.focus();
|
|
390
|
+
},
|
|
391
|
+
...props
|
|
392
|
+
}
|
|
393
|
+
);
|
|
394
|
+
}
|
|
395
|
+
var inputGroupButtonVariants = cva(
|
|
396
|
+
"flex items-center gap-2 text-sm shadow-none",
|
|
397
|
+
{
|
|
398
|
+
variants: {
|
|
399
|
+
size: {
|
|
400
|
+
xs: "h-6 gap-1 rounded-[calc(var(--radius)-3px)] px-1.5 [&>svg:not([class*='size-'])]:size-3.5",
|
|
401
|
+
sm: "",
|
|
402
|
+
"icon-xs": "size-6 rounded-[calc(var(--radius)-3px)] p-0 has-[>svg]:p-0",
|
|
403
|
+
"icon-sm": "size-8 p-0 has-[>svg]:p-0"
|
|
404
|
+
}
|
|
405
|
+
},
|
|
406
|
+
defaultVariants: {
|
|
407
|
+
size: "xs"
|
|
408
|
+
}
|
|
409
|
+
}
|
|
410
|
+
);
|
|
411
|
+
function InputGroupButton({
|
|
412
|
+
className,
|
|
413
|
+
type = "button",
|
|
414
|
+
variant = "ghost",
|
|
415
|
+
size = "xs",
|
|
416
|
+
...props
|
|
417
|
+
}) {
|
|
418
|
+
return /* @__PURE__ */ jsx(
|
|
419
|
+
Button,
|
|
420
|
+
{
|
|
421
|
+
type,
|
|
422
|
+
"data-size": size,
|
|
423
|
+
variant,
|
|
424
|
+
className: cn(inputGroupButtonVariants({ size }), className),
|
|
425
|
+
...props
|
|
426
|
+
}
|
|
427
|
+
);
|
|
428
|
+
}
|
|
429
|
+
|
|
430
|
+
// src/lib/compose-refs.ts
|
|
431
|
+
function composeRefs(...refs) {
|
|
432
|
+
return (node) => {
|
|
433
|
+
for (const ref of refs) {
|
|
434
|
+
if (ref == null) continue;
|
|
435
|
+
if (typeof ref === "function") {
|
|
436
|
+
ref(node);
|
|
437
|
+
} else {
|
|
438
|
+
ref.current = node;
|
|
439
|
+
}
|
|
440
|
+
}
|
|
441
|
+
};
|
|
442
|
+
}
|
|
443
|
+
var exxatInputMaskDefaults = {
|
|
444
|
+
placeholder: "_",
|
|
445
|
+
showMaskOnHover: false
|
|
446
|
+
};
|
|
447
|
+
var exxatMaskPatterns = {
|
|
448
|
+
/** US NANP 10-digit display */
|
|
449
|
+
phoneUS: "(999) 999-9999",
|
|
450
|
+
/** US ZIP or ZIP+4 */
|
|
451
|
+
zipUS: "99999[-9999]",
|
|
452
|
+
/** Calendar-style date (validate separately). */
|
|
453
|
+
dateMDY: "99/99/9999"};
|
|
454
|
+
var MaskedInput = React3.forwardRef(function MaskedInput2({ mask, maskOptions, className, type = "text", ...props }, ref) {
|
|
455
|
+
const maskRef = useMaskInput({
|
|
456
|
+
mask,
|
|
457
|
+
options: { ...exxatInputMaskDefaults, ...maskOptions }
|
|
458
|
+
});
|
|
459
|
+
return /* @__PURE__ */ jsx(
|
|
460
|
+
Input,
|
|
461
|
+
{
|
|
462
|
+
ref: composeRefs(ref, maskRef),
|
|
463
|
+
type,
|
|
464
|
+
className: cn(className),
|
|
465
|
+
...props
|
|
466
|
+
}
|
|
467
|
+
);
|
|
468
|
+
});
|
|
469
|
+
function Popover({ ...props }) {
|
|
470
|
+
return /* @__PURE__ */ jsx(Popover$1.Root, { ...props });
|
|
471
|
+
}
|
|
472
|
+
function PopoverTrigger({ className, ...props }) {
|
|
473
|
+
return /* @__PURE__ */ jsx(Popover$1.Trigger, { className: cn("cursor-pointer", className), ...props });
|
|
474
|
+
}
|
|
475
|
+
function PopoverContent({
|
|
476
|
+
className,
|
|
477
|
+
align = "start",
|
|
478
|
+
sideOffset = 4,
|
|
479
|
+
...props
|
|
480
|
+
}) {
|
|
481
|
+
return /* @__PURE__ */ jsx(Popover$1.Portal, { children: /* @__PURE__ */ jsx(
|
|
482
|
+
Popover$1.Content,
|
|
483
|
+
{
|
|
484
|
+
"data-slot": "popover-content",
|
|
485
|
+
align,
|
|
486
|
+
sideOffset,
|
|
487
|
+
className: cn(
|
|
488
|
+
"z-50 rounded-lg border border-border bg-popover shadow-md outline-none",
|
|
489
|
+
"data-[state=open]:animate-in data-[state=closed]:animate-out",
|
|
490
|
+
"data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
|
|
491
|
+
"data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95",
|
|
492
|
+
"data-[side=bottom]:slide-in-from-top-2 data-[side=top]:slide-in-from-bottom-2",
|
|
493
|
+
"data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2",
|
|
494
|
+
className
|
|
495
|
+
),
|
|
496
|
+
...props
|
|
497
|
+
}
|
|
498
|
+
) });
|
|
499
|
+
}
|
|
500
|
+
var DATE_PICKER_ICON_CLASS = "fa-light fa-calendar";
|
|
501
|
+
function parseMdyToLocalDate(raw) {
|
|
502
|
+
const match = raw.trim().match(/^(\d{2})\/(\d{2})\/(\d{4})$/);
|
|
503
|
+
if (!match) return void 0;
|
|
504
|
+
const month = Number(match[1]);
|
|
505
|
+
const day = Number(match[2]);
|
|
506
|
+
const year = Number(match[3]);
|
|
507
|
+
if (month < 1 || month > 12 || day < 1 || day > 31) return void 0;
|
|
508
|
+
const date = new Date(year, month - 1, day, 12, 0, 0, 0);
|
|
509
|
+
if (date.getFullYear() !== year || date.getMonth() !== month - 1 || date.getDate() !== day) return void 0;
|
|
510
|
+
return date;
|
|
511
|
+
}
|
|
512
|
+
function formatLocalDateToMdy(date) {
|
|
513
|
+
const month = String(date.getMonth() + 1).padStart(2, "0");
|
|
514
|
+
const day = String(date.getDate()).padStart(2, "0");
|
|
515
|
+
const year = String(date.getFullYear());
|
|
516
|
+
return `${month}/${day}/${year}`;
|
|
517
|
+
}
|
|
518
|
+
function DateTextInputField({
|
|
519
|
+
value,
|
|
520
|
+
onValueChange,
|
|
521
|
+
"aria-label": ariaLabel,
|
|
522
|
+
id,
|
|
523
|
+
placeholder = "MM/DD/YYYY",
|
|
524
|
+
className,
|
|
525
|
+
inputClassName,
|
|
526
|
+
autoFocus,
|
|
527
|
+
disabled,
|
|
528
|
+
fromYear = 2020,
|
|
529
|
+
toYear = 2032,
|
|
530
|
+
iconButtonVariant = "ghost",
|
|
531
|
+
popoverAlign = "end",
|
|
532
|
+
popoverClassName
|
|
533
|
+
}) {
|
|
534
|
+
return /* @__PURE__ */ jsxs(InputGroup, { className, children: [
|
|
535
|
+
/* @__PURE__ */ jsx(
|
|
536
|
+
MaskedInput,
|
|
537
|
+
{
|
|
538
|
+
"data-slot": "input-group-control",
|
|
539
|
+
id,
|
|
540
|
+
mask: exxatMaskPatterns.dateMDY,
|
|
541
|
+
"aria-label": ariaLabel,
|
|
542
|
+
placeholder,
|
|
543
|
+
value,
|
|
544
|
+
onChange: (event) => onValueChange(event.target.value),
|
|
545
|
+
className: cn(
|
|
546
|
+
"flex-1 rounded-none border-0 bg-transparent shadow-none ring-0 focus-visible:ring-0 disabled:bg-transparent aria-invalid:ring-0 dark:bg-transparent dark:disabled:bg-transparent",
|
|
547
|
+
inputClassName
|
|
548
|
+
),
|
|
549
|
+
autoFocus,
|
|
550
|
+
disabled
|
|
551
|
+
}
|
|
552
|
+
),
|
|
553
|
+
/* @__PURE__ */ jsx(InputGroupAddon, { align: "inline-end", children: /* @__PURE__ */ jsxs(Popover, { children: [
|
|
554
|
+
/* @__PURE__ */ jsx(PopoverTrigger, { asChild: true, children: /* @__PURE__ */ jsx(
|
|
555
|
+
InputGroupButton,
|
|
556
|
+
{
|
|
557
|
+
type: "button",
|
|
558
|
+
variant: iconButtonVariant,
|
|
559
|
+
size: "icon-xs",
|
|
560
|
+
disabled,
|
|
561
|
+
"aria-label": `${ariaLabel} pick date`,
|
|
562
|
+
children: /* @__PURE__ */ jsx("i", { className: DATE_PICKER_ICON_CLASS, "aria-hidden": "true" })
|
|
563
|
+
}
|
|
564
|
+
) }),
|
|
565
|
+
/* @__PURE__ */ jsx(
|
|
566
|
+
PopoverContent,
|
|
567
|
+
{
|
|
568
|
+
className: cn("z-[80] w-auto p-0", popoverClassName),
|
|
569
|
+
align: popoverAlign,
|
|
570
|
+
sideOffset: 6,
|
|
571
|
+
children: /* @__PURE__ */ jsx(
|
|
572
|
+
Calendar,
|
|
573
|
+
{
|
|
574
|
+
mode: "single",
|
|
575
|
+
selected: parseMdyToLocalDate(value),
|
|
576
|
+
onSelect: (next) => onValueChange(next ? formatLocalDateToMdy(next) : ""),
|
|
577
|
+
initialFocus: true,
|
|
578
|
+
fromYear,
|
|
579
|
+
toYear,
|
|
580
|
+
captionLayout: "dropdown"
|
|
581
|
+
}
|
|
582
|
+
)
|
|
583
|
+
}
|
|
584
|
+
)
|
|
585
|
+
] }) })
|
|
586
|
+
] });
|
|
587
|
+
}
|
|
588
|
+
var MASK_BY_KIND = {
|
|
589
|
+
phone: exxatMaskPatterns.phoneUS,
|
|
590
|
+
zip: exxatMaskPatterns.zipUS,
|
|
591
|
+
dateMDY: exxatMaskPatterns.dateMDY
|
|
592
|
+
};
|
|
593
|
+
function FilterTextValueInput({
|
|
594
|
+
id,
|
|
595
|
+
mask,
|
|
596
|
+
value,
|
|
597
|
+
onValueChange,
|
|
598
|
+
"aria-label": ariaLabel,
|
|
599
|
+
placeholder,
|
|
600
|
+
className,
|
|
601
|
+
autoFocus
|
|
602
|
+
}) {
|
|
603
|
+
if (mask === "dateMDY") {
|
|
604
|
+
return /* @__PURE__ */ jsx(
|
|
605
|
+
DateTextInputField,
|
|
606
|
+
{
|
|
607
|
+
id,
|
|
608
|
+
value,
|
|
609
|
+
onValueChange,
|
|
610
|
+
"aria-label": ariaLabel,
|
|
611
|
+
placeholder,
|
|
612
|
+
inputClassName: className,
|
|
613
|
+
autoFocus,
|
|
614
|
+
iconButtonVariant: "ghost",
|
|
615
|
+
popoverAlign: "end"
|
|
616
|
+
}
|
|
617
|
+
);
|
|
618
|
+
}
|
|
619
|
+
if (mask) {
|
|
620
|
+
return /* @__PURE__ */ jsx(
|
|
621
|
+
MaskedInput,
|
|
622
|
+
{
|
|
623
|
+
id,
|
|
624
|
+
mask: MASK_BY_KIND[mask],
|
|
625
|
+
"aria-label": ariaLabel,
|
|
626
|
+
placeholder,
|
|
627
|
+
value,
|
|
628
|
+
onChange: (e) => onValueChange(e.target.value),
|
|
629
|
+
className,
|
|
630
|
+
autoFocus
|
|
631
|
+
}
|
|
632
|
+
);
|
|
633
|
+
}
|
|
634
|
+
return /* @__PURE__ */ jsx(
|
|
635
|
+
Input,
|
|
636
|
+
{
|
|
637
|
+
id,
|
|
638
|
+
type: "text",
|
|
639
|
+
"aria-label": ariaLabel,
|
|
640
|
+
placeholder,
|
|
641
|
+
value,
|
|
642
|
+
onChange: (e) => onValueChange(e.target.value),
|
|
643
|
+
className,
|
|
644
|
+
autoFocus
|
|
645
|
+
}
|
|
646
|
+
);
|
|
647
|
+
}
|
|
648
|
+
|
|
649
|
+
// src/lib/table-properties-types.ts
|
|
650
|
+
var OPERATOR_LABELS = {
|
|
651
|
+
is: "is",
|
|
652
|
+
is_not: "is not",
|
|
653
|
+
contains: "contains",
|
|
654
|
+
not_contains: "does not contain"
|
|
655
|
+
};
|
|
656
|
+
var RULE_COLORS = [
|
|
657
|
+
{ name: "Green", bg: "var(--conditional-rule-green)" },
|
|
658
|
+
{ name: "Yellow", bg: "var(--conditional-rule-yellow)" },
|
|
659
|
+
{ name: "Blue", bg: "var(--conditional-rule-blue)" },
|
|
660
|
+
{ name: "Red", bg: "var(--conditional-rule-red)" },
|
|
661
|
+
{ name: "Purple", bg: "var(--conditional-rule-purple)" },
|
|
662
|
+
{ name: "Orange", bg: "var(--conditional-rule-orange)" }
|
|
663
|
+
];
|
|
664
|
+
function DrawerFilterCard(props) {
|
|
665
|
+
const {
|
|
666
|
+
fieldDef,
|
|
667
|
+
expanded,
|
|
668
|
+
onToggleExpand,
|
|
669
|
+
onRemove,
|
|
670
|
+
renderOptionLabel
|
|
671
|
+
} = props;
|
|
672
|
+
const isCond = props.variant === "conditional";
|
|
673
|
+
const filter = props.filter;
|
|
674
|
+
const filterId = filter.id;
|
|
675
|
+
const onUpdate = props.onUpdate;
|
|
676
|
+
const [optSearch, setOptSearch] = React3.useState("");
|
|
677
|
+
const options = fieldDef.options ?? [];
|
|
678
|
+
const showSearch = options.length > 8;
|
|
679
|
+
const filteredOpts = optSearch ? options.filter((o) => o.label.toLowerCase().includes(optSearch.toLowerCase())) : options;
|
|
680
|
+
const values = filter.values;
|
|
681
|
+
React3.useEffect(() => {
|
|
682
|
+
if (fieldDef.type !== "select" && fieldDef.type !== "date") return;
|
|
683
|
+
if (filter.operator !== "is" && filter.operator !== "is_not") {
|
|
684
|
+
onUpdate(filterId, { operator: "is" });
|
|
685
|
+
}
|
|
686
|
+
}, [filter.operator, filter.id, fieldDef.type, filterId, onUpdate]);
|
|
687
|
+
function toggleValue(val) {
|
|
688
|
+
const next = values.includes(val) ? values.filter((v) => v !== val) : [...values, val];
|
|
689
|
+
onUpdate(filterId, { values: next });
|
|
690
|
+
}
|
|
691
|
+
function cycleOperator() {
|
|
692
|
+
const ops = fieldDef.operators;
|
|
693
|
+
const idx = ops.indexOf(filter.operator);
|
|
694
|
+
const i = idx === -1 ? 0 : idx;
|
|
695
|
+
onUpdate(filterId, { operator: ops[(i + 1) % ops.length] });
|
|
696
|
+
}
|
|
697
|
+
const removeLabel = isCond ? "rule" : "filter";
|
|
698
|
+
const rule = isCond ? props.filter : null;
|
|
699
|
+
return /* @__PURE__ */ jsx("div", { className: "rounded-lg border border-border overflow-hidden", children: /* @__PURE__ */ jsxs("div", { children: [
|
|
700
|
+
/* @__PURE__ */ jsxs(
|
|
701
|
+
"div",
|
|
702
|
+
{
|
|
703
|
+
className: "flex items-start justify-between px-3 pt-2.5 pb-2 gap-2 cursor-pointer",
|
|
704
|
+
role: "button",
|
|
705
|
+
tabIndex: 0,
|
|
706
|
+
"aria-label": expanded ? `Collapse ${fieldDef.label}` : `Expand ${fieldDef.label}`,
|
|
707
|
+
onClick: onToggleExpand,
|
|
708
|
+
onKeyDown: (e) => {
|
|
709
|
+
if (e.key === "Enter" || e.key === " ") {
|
|
710
|
+
e.preventDefault();
|
|
711
|
+
onToggleExpand();
|
|
712
|
+
}
|
|
713
|
+
},
|
|
714
|
+
children: [
|
|
715
|
+
/* @__PURE__ */ jsxs("div", { className: "flex-1 min-w-0", children: [
|
|
716
|
+
/* @__PURE__ */ jsx("p", { className: "text-sm font-semibold text-foreground", children: fieldDef.label }),
|
|
717
|
+
/* @__PURE__ */ jsxs(
|
|
718
|
+
Button,
|
|
719
|
+
{
|
|
720
|
+
type: "button",
|
|
721
|
+
variant: "ghost",
|
|
722
|
+
size: "xs",
|
|
723
|
+
"aria-label": `Operator: ${OPERATOR_LABELS[filter.operator]} \u2014 click to cycle`,
|
|
724
|
+
onClick: (e) => {
|
|
725
|
+
e.stopPropagation();
|
|
726
|
+
cycleOperator();
|
|
727
|
+
},
|
|
728
|
+
className: "h-auto py-0 px-1 -ms-1 text-xs text-muted-foreground font-normal",
|
|
729
|
+
children: [
|
|
730
|
+
OPERATOR_LABELS[filter.operator],
|
|
731
|
+
/* @__PURE__ */ jsx("i", { className: "fa-light fa-chevron-down text-xs", "aria-hidden": "true" })
|
|
732
|
+
]
|
|
733
|
+
}
|
|
734
|
+
)
|
|
735
|
+
] }),
|
|
736
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-0.5 shrink-0 self-start", children: [
|
|
737
|
+
/* @__PURE__ */ jsx(Tip, { label: `Remove ${fieldDef.label} ${removeLabel}`, side: "top", children: /* @__PURE__ */ jsx(
|
|
738
|
+
Button,
|
|
739
|
+
{
|
|
740
|
+
type: "button",
|
|
741
|
+
variant: "ghost",
|
|
742
|
+
size: "icon-sm",
|
|
743
|
+
"aria-label": `Remove ${fieldDef.label} ${removeLabel}`,
|
|
744
|
+
className: "text-muted-foreground hover:text-destructive",
|
|
745
|
+
onClick: (e) => {
|
|
746
|
+
e.stopPropagation();
|
|
747
|
+
onRemove(filterId);
|
|
748
|
+
},
|
|
749
|
+
children: /* @__PURE__ */ jsx("i", { className: "fa-light fa-trash text-xs", "aria-hidden": "true" })
|
|
750
|
+
}
|
|
751
|
+
) }),
|
|
752
|
+
/* @__PURE__ */ jsx(
|
|
753
|
+
"i",
|
|
754
|
+
{
|
|
755
|
+
className: `fa-light ${expanded ? "fa-chevron-up" : "fa-chevron-down"} text-xs text-muted-foreground mt-2`,
|
|
756
|
+
"aria-hidden": "true"
|
|
757
|
+
}
|
|
758
|
+
)
|
|
759
|
+
] })
|
|
760
|
+
]
|
|
761
|
+
}
|
|
762
|
+
),
|
|
763
|
+
expanded && /* @__PURE__ */ jsxs("div", { className: "border-t border-border", children: [
|
|
764
|
+
fieldDef.type === "select" ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
765
|
+
showSearch && /* @__PURE__ */ jsx("div", { className: "px-3 pt-2 pb-1", children: /* @__PURE__ */ jsx(Input, { placeholder: "Search\u2026", value: optSearch, onChange: (e) => setOptSearch(e.target.value), className: "h-7 text-xs" }) }),
|
|
766
|
+
/* @__PURE__ */ jsxs("div", { role: "listbox", "aria-multiselectable": "true", "aria-label": `${fieldDef.label} options`, className: "py-1 max-h-52 overflow-y-auto", children: [
|
|
767
|
+
filteredOpts.map((opt) => {
|
|
768
|
+
const checked = values.includes(opt.value);
|
|
769
|
+
return /* @__PURE__ */ jsxs(
|
|
770
|
+
"div",
|
|
771
|
+
{
|
|
772
|
+
role: "option",
|
|
773
|
+
"aria-selected": checked,
|
|
774
|
+
tabIndex: 0,
|
|
775
|
+
onClick: () => toggleValue(opt.value),
|
|
776
|
+
onKeyDown: (e) => {
|
|
777
|
+
if (e.key === "Enter" || e.key === " ") {
|
|
778
|
+
e.preventDefault();
|
|
779
|
+
toggleValue(opt.value);
|
|
780
|
+
}
|
|
781
|
+
},
|
|
782
|
+
className: "flex items-center gap-2.5 px-3 py-2 text-sm hover:bg-interactive-hover cursor-pointer select-none focus-visible:outline-none focus-visible:bg-interactive-hover",
|
|
783
|
+
children: [
|
|
784
|
+
/* @__PURE__ */ jsx("span", { "aria-hidden": "true", "data-slot": "checkbox", "data-state": checked ? "checked" : "unchecked", className: cn(
|
|
785
|
+
"inline-flex items-center justify-center size-3.5 shrink-0 rounded-[3px] border transition-colors",
|
|
786
|
+
checked ? "bg-primary border-primary text-primary-foreground" : "border-input bg-background"
|
|
787
|
+
), children: checked && /* @__PURE__ */ jsx("i", { className: "fa-solid fa-check text-current", style: { fontSize: "7px" } }) }),
|
|
788
|
+
renderOptionLabel ? renderOptionLabel(opt.value) : /* @__PURE__ */ jsx("span", { className: "text-foreground", children: opt.label })
|
|
789
|
+
]
|
|
790
|
+
},
|
|
791
|
+
opt.value
|
|
792
|
+
);
|
|
793
|
+
}),
|
|
794
|
+
filteredOpts.length === 0 && /* @__PURE__ */ jsx("p", { className: "px-3 py-2 text-xs text-muted-foreground", children: "No options found" })
|
|
795
|
+
] })
|
|
796
|
+
] }) : fieldDef.type === "date" ? /* @__PURE__ */ jsx("div", { className: "p-2", children: /* @__PURE__ */ jsx(
|
|
797
|
+
FilterDateCalendar,
|
|
798
|
+
{
|
|
799
|
+
label: `${fieldDef.label} \u2014 choose date`,
|
|
800
|
+
valueYmd: filter.values[0],
|
|
801
|
+
onChangeYmd: (ymd) => onUpdate(filterId, { values: ymd ? [ymd] : [] })
|
|
802
|
+
}
|
|
803
|
+
) }) : fieldDef.type === "text" ? /* @__PURE__ */ jsx("div", { className: "p-3", children: /* @__PURE__ */ jsx(
|
|
804
|
+
FilterTextValueInput,
|
|
805
|
+
{
|
|
806
|
+
mask: fieldDef.textMask,
|
|
807
|
+
"aria-label": `${fieldDef.label} value`,
|
|
808
|
+
placeholder: `Enter ${fieldDef.label.toLowerCase()}\u2026`,
|
|
809
|
+
value: values[0] ?? "",
|
|
810
|
+
onValueChange: (next) => onUpdate(filterId, { values: [next] }),
|
|
811
|
+
className: "text-sm",
|
|
812
|
+
autoFocus: true
|
|
813
|
+
}
|
|
814
|
+
) }) : null,
|
|
815
|
+
values.length > 0 ? /* @__PURE__ */ jsx("div", { className: "sticky bottom-0 border-t border-border bg-card p-2", children: /* @__PURE__ */ jsxs(
|
|
816
|
+
Button,
|
|
817
|
+
{
|
|
818
|
+
type: "button",
|
|
819
|
+
variant: "outline",
|
|
820
|
+
size: "sm",
|
|
821
|
+
onClick: () => onUpdate(filterId, { values: [] }),
|
|
822
|
+
className: "w-full justify-center gap-1.5 text-xs text-muted-foreground",
|
|
823
|
+
children: [
|
|
824
|
+
/* @__PURE__ */ jsx("i", { className: "fa-light fa-xmark text-xs", "aria-hidden": "true" }),
|
|
825
|
+
"Clear selection"
|
|
826
|
+
]
|
|
827
|
+
}
|
|
828
|
+
) }) : null
|
|
829
|
+
] }),
|
|
830
|
+
isCond && rule && /* @__PURE__ */ jsxs("div", { className: "border-t border-border px-3 py-2.5", children: [
|
|
831
|
+
/* @__PURE__ */ jsx("p", { className: "text-xs font-semibold text-muted-foreground uppercase tracking-wider mb-2", children: "Highlight color" }),
|
|
832
|
+
/* @__PURE__ */ jsx("div", { className: "flex flex-wrap gap-1.5", children: RULE_COLORS.map((c) => /* @__PURE__ */ jsx(
|
|
833
|
+
Button,
|
|
834
|
+
{
|
|
835
|
+
type: "button",
|
|
836
|
+
size: "icon-xs",
|
|
837
|
+
variant: "outline",
|
|
838
|
+
"aria-label": c.name,
|
|
839
|
+
className: cn(
|
|
840
|
+
"rounded-md border-2 p-0 transition-all",
|
|
841
|
+
rule.bgColor === c.bg ? "border-foreground scale-110" : "border-transparent hover:scale-105"
|
|
842
|
+
),
|
|
843
|
+
style: { background: c.bg },
|
|
844
|
+
onClick: () => onUpdate(filterId, { bgColor: c.bg })
|
|
845
|
+
},
|
|
846
|
+
c.name
|
|
847
|
+
)) })
|
|
848
|
+
] })
|
|
849
|
+
] }) });
|
|
850
|
+
}
|
|
851
|
+
|
|
852
|
+
export { DrawerFilterCard };
|
|
853
|
+
//# sourceMappingURL=filter-card.js.map
|
|
854
|
+
//# sourceMappingURL=filter-card.js.map
|