@dads-framework/ui 0.0.0-stage → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.md +21 -0
- package/README.md +58 -2
- package/THIRD_PARTY_NOTICES.md +28 -0
- package/dist/data-table/components/data-table/applied-filter-chips.d.ts +19 -0
- package/dist/data-table/components/data-table/applied-filter-chips.d.ts.map +1 -0
- package/dist/data-table/components/data-table/applied-filter-chips.js +32 -0
- package/dist/data-table/components/data-table/applied-filter-chips.js.map +1 -0
- package/dist/data-table/components/data-table/data-table-advanced-toolbar.d.ts +5 -0
- package/dist/data-table/components/data-table/data-table-advanced-toolbar.d.ts.map +1 -0
- package/dist/data-table/components/data-table/data-table-advanced-toolbar.js +6 -0
- package/dist/data-table/components/data-table/data-table-advanced-toolbar.js.map +1 -0
- package/dist/data-table/components/data-table/data-table-body-row.d.ts +6 -0
- package/dist/data-table/components/data-table/data-table-body-row.d.ts.map +1 -0
- package/dist/data-table/components/data-table/data-table-body-row.js +27 -0
- package/dist/data-table/components/data-table/data-table-body-row.js.map +1 -0
- package/dist/data-table/components/data-table/data-table-card-list.d.ts +18 -0
- package/dist/data-table/components/data-table/data-table-card-list.d.ts.map +1 -0
- package/dist/data-table/components/data-table/data-table-card-list.js +108 -0
- package/dist/data-table/components/data-table/data-table-card-list.js.map +1 -0
- package/dist/data-table/components/data-table/data-table-column-header.d.ts +8 -0
- package/dist/data-table/components/data-table/data-table-column-header.d.ts.map +1 -0
- package/dist/data-table/components/data-table/data-table-column-header.js +29 -0
- package/dist/data-table/components/data-table/data-table-column-header.js.map +1 -0
- package/dist/data-table/components/data-table/data-table-columns-menu.d.ts +10 -0
- package/dist/data-table/components/data-table/data-table-columns-menu.d.ts.map +1 -0
- package/dist/data-table/components/data-table/data-table-columns-menu.js +34 -0
- package/dist/data-table/components/data-table/data-table-columns-menu.js.map +1 -0
- package/dist/data-table/components/data-table/data-table-date-filter.d.ts +10 -0
- package/dist/data-table/components/data-table/data-table-date-filter.d.ts.map +1 -0
- package/dist/data-table/components/data-table/data-table-date-filter.js +132 -0
- package/dist/data-table/components/data-table/data-table-date-filter.js.map +1 -0
- package/dist/data-table/components/data-table/data-table-desktop-content.d.ts +12 -0
- package/dist/data-table/components/data-table/data-table-desktop-content.d.ts.map +1 -0
- package/dist/data-table/components/data-table/data-table-desktop-content.js +20 -0
- package/dist/data-table/components/data-table/data-table-desktop-content.js.map +1 -0
- package/dist/data-table/components/data-table/data-table-faceted-filter.d.ts +13 -0
- package/dist/data-table/components/data-table/data-table-faceted-filter.d.ts.map +1 -0
- package/dist/data-table/components/data-table/data-table-faceted-filter.js +80 -0
- package/dist/data-table/components/data-table/data-table-faceted-filter.js.map +1 -0
- package/dist/data-table/components/data-table/data-table-filter-date-input.d.ts +5 -0
- package/dist/data-table/components/data-table/data-table-filter-date-input.d.ts.map +1 -0
- package/dist/data-table/components/data-table/data-table-filter-date-input.js +62 -0
- package/dist/data-table/components/data-table/data-table-filter-date-input.js.map +1 -0
- package/dist/data-table/components/data-table/data-table-filter-input-shared.d.ts +23 -0
- package/dist/data-table/components/data-table/data-table-filter-input-shared.d.ts.map +1 -0
- package/dist/data-table/components/data-table/data-table-filter-input-shared.js +11 -0
- package/dist/data-table/components/data-table/data-table-filter-input-shared.js.map +1 -0
- package/dist/data-table/components/data-table/data-table-filter-list-input.d.ts +4 -0
- package/dist/data-table/components/data-table/data-table-filter-list-input.d.ts.map +1 -0
- package/dist/data-table/components/data-table/data-table-filter-list-input.js +92 -0
- package/dist/data-table/components/data-table/data-table-filter-list-input.js.map +1 -0
- package/dist/data-table/components/data-table/data-table-filter-list-item.d.ts +17 -0
- package/dist/data-table/components/data-table/data-table-filter-list-item.d.ts.map +1 -0
- package/dist/data-table/components/data-table/data-table-filter-list-item.js +87 -0
- package/dist/data-table/components/data-table/data-table-filter-list-item.js.map +1 -0
- package/dist/data-table/components/data-table/data-table-filter-list.d.ts +11 -0
- package/dist/data-table/components/data-table/data-table-filter-list.d.ts.map +1 -0
- package/dist/data-table/components/data-table/data-table-filter-list.js +95 -0
- package/dist/data-table/components/data-table/data-table-filter-list.js.map +1 -0
- package/dist/data-table/components/data-table/data-table-filter-menu-input.d.ts +5 -0
- package/dist/data-table/components/data-table/data-table-filter-menu-input.d.ts.map +1 -0
- package/dist/data-table/components/data-table/data-table-filter-menu-input.js +48 -0
- package/dist/data-table/components/data-table/data-table-filter-menu-input.js.map +1 -0
- package/dist/data-table/components/data-table/data-table-filter-menu-item.d.ts +14 -0
- package/dist/data-table/components/data-table/data-table-filter-menu-item.d.ts.map +1 -0
- package/dist/data-table/components/data-table/data-table-filter-menu-item.js +77 -0
- package/dist/data-table/components/data-table/data-table-filter-menu-item.js.map +1 -0
- package/dist/data-table/components/data-table/data-table-filter-menu-options-input.d.ts +3 -0
- package/dist/data-table/components/data-table/data-table-filter-menu-options-input.d.ts.map +1 -0
- package/dist/data-table/components/data-table/data-table-filter-menu-options-input.js +28 -0
- package/dist/data-table/components/data-table/data-table-filter-menu-options-input.js.map +1 -0
- package/dist/data-table/components/data-table/data-table-filter-menu-value-selector.d.ts +9 -0
- package/dist/data-table/components/data-table/data-table-filter-menu-value-selector.d.ts.map +1 -0
- package/dist/data-table/components/data-table/data-table-filter-menu-value-selector.js +49 -0
- package/dist/data-table/components/data-table/data-table-filter-menu-value-selector.js.map +1 -0
- package/dist/data-table/components/data-table/data-table-filter-menu.d.ts +11 -0
- package/dist/data-table/components/data-table/data-table-filter-menu.d.ts.map +1 -0
- package/dist/data-table/components/data-table/data-table-filter-menu.js +127 -0
- package/dist/data-table/components/data-table/data-table-filter-menu.js.map +1 -0
- package/dist/data-table/components/data-table/data-table-hidden-columns-note.d.ts +9 -0
- package/dist/data-table/components/data-table/data-table-hidden-columns-note.d.ts.map +1 -0
- package/dist/data-table/components/data-table/data-table-hidden-columns-note.js +18 -0
- package/dist/data-table/components/data-table/data-table-hidden-columns-note.js.map +1 -0
- package/dist/data-table/components/data-table/data-table-pagination.d.ts +9 -0
- package/dist/data-table/components/data-table/data-table-pagination.d.ts.map +1 -0
- package/dist/data-table/components/data-table/data-table-pagination.js +25 -0
- package/dist/data-table/components/data-table/data-table-pagination.js.map +1 -0
- package/dist/data-table/components/data-table/data-table-range-filter.d.ts +12 -0
- package/dist/data-table/components/data-table/data-table-range-filter.d.ts.map +1 -0
- package/dist/data-table/components/data-table/data-table-range-filter.js +59 -0
- package/dist/data-table/components/data-table/data-table-range-filter.js.map +1 -0
- package/dist/data-table/components/data-table/data-table-row-hit-area.d.ts +10 -0
- package/dist/data-table/components/data-table/data-table-row-hit-area.d.ts.map +1 -0
- package/dist/data-table/components/data-table/data-table-row-hit-area.js +29 -0
- package/dist/data-table/components/data-table/data-table-row-hit-area.js.map +1 -0
- package/dist/data-table/components/data-table/data-table-search-input.d.ts +23 -0
- package/dist/data-table/components/data-table/data-table-search-input.d.ts.map +1 -0
- package/dist/data-table/components/data-table/data-table-search-input.js +81 -0
- package/dist/data-table/components/data-table/data-table-search-input.js.map +1 -0
- package/dist/data-table/components/data-table/data-table-skeleton.d.ts +19 -0
- package/dist/data-table/components/data-table/data-table-skeleton.d.ts.map +1 -0
- package/dist/data-table/components/data-table/data-table-skeleton.js +45 -0
- package/dist/data-table/components/data-table/data-table-skeleton.js.map +1 -0
- package/dist/data-table/components/data-table/data-table-slider-filter.d.ts +9 -0
- package/dist/data-table/components/data-table/data-table-slider-filter.d.ts.map +1 -0
- package/dist/data-table/components/data-table/data-table-slider-filter.js +88 -0
- package/dist/data-table/components/data-table/data-table-slider-filter.js.map +1 -0
- package/dist/data-table/components/data-table/data-table-sort-item.d.ts +16 -0
- package/dist/data-table/components/data-table/data-table-sort-item.d.ts.map +1 -0
- package/dist/data-table/components/data-table/data-table-sort-item.js +39 -0
- package/dist/data-table/components/data-table/data-table-sort-item.js.map +1 -0
- package/dist/data-table/components/data-table/data-table-sort-list.d.ts +10 -0
- package/dist/data-table/components/data-table/data-table-sort-list.d.ts.map +1 -0
- package/dist/data-table/components/data-table/data-table-sort-list.js +96 -0
- package/dist/data-table/components/data-table/data-table-sort-list.js.map +1 -0
- package/dist/data-table/components/data-table/data-table-toolbar-filter.d.ts +7 -0
- package/dist/data-table/components/data-table/data-table-toolbar-filter.d.ts.map +1 -0
- package/dist/data-table/components/data-table/data-table-toolbar-filter.js +59 -0
- package/dist/data-table/components/data-table/data-table-toolbar-filter.js.map +1 -0
- package/dist/data-table/components/data-table/data-table-toolbar.d.ts +86 -0
- package/dist/data-table/components/data-table/data-table-toolbar.d.ts.map +1 -0
- package/dist/data-table/components/data-table/data-table-toolbar.js +83 -0
- package/dist/data-table/components/data-table/data-table-toolbar.js.map +1 -0
- package/dist/data-table/components/data-table/data-table.d.ts +48 -0
- package/dist/data-table/components/data-table/data-table.d.ts.map +1 -0
- package/dist/data-table/components/data-table/data-table.js +48 -0
- package/dist/data-table/components/data-table/data-table.js.map +1 -0
- package/dist/data-table/components/data-table/filter-group-toggles.d.ts +9 -0
- package/dist/data-table/components/data-table/filter-group-toggles.d.ts.map +1 -0
- package/dist/data-table/components/data-table/filter-group-toggles.js +16 -0
- package/dist/data-table/components/data-table/filter-group-toggles.js.map +1 -0
- package/dist/data-table/components/data-table/filter-pill.d.ts +15 -0
- package/dist/data-table/components/data-table/filter-pill.d.ts.map +1 -0
- package/dist/data-table/components/data-table/filter-pill.js +69 -0
- package/dist/data-table/components/data-table/filter-pill.js.map +1 -0
- package/dist/data-table/components/ui/date-picker.d.ts +33 -0
- package/dist/data-table/components/ui/date-picker.d.ts.map +1 -0
- package/dist/data-table/components/ui/date-picker.js +60 -0
- package/dist/data-table/components/ui/date-picker.js.map +1 -0
- package/dist/data-table/components/ui/faceted.d.ts +39 -0
- package/dist/data-table/components/ui/faceted.d.ts.map +1 -0
- package/dist/data-table/components/ui/faceted.js +102 -0
- package/dist/data-table/components/ui/faceted.js.map +1 -0
- package/dist/data-table/components/ui/sortable-parts.d.ts +30 -0
- package/dist/data-table/components/ui/sortable-parts.d.ts.map +1 -0
- package/dist/data-table/components/ui/sortable-parts.js +128 -0
- package/dist/data-table/components/ui/sortable-parts.js.map +1 -0
- package/dist/data-table/components/ui/sortable-root-context.d.ts +15 -0
- package/dist/data-table/components/ui/sortable-root-context.d.ts.map +1 -0
- package/dist/data-table/components/ui/sortable-root-context.js +11 -0
- package/dist/data-table/components/ui/sortable-root-context.js.map +1 -0
- package/dist/data-table/components/ui/sortable-types.d.ts +27 -0
- package/dist/data-table/components/ui/sortable-types.d.ts.map +1 -0
- package/dist/data-table/components/ui/sortable-types.js +2 -0
- package/dist/data-table/components/ui/sortable-types.js.map +1 -0
- package/dist/data-table/components/ui/sortable.d.ts +5 -0
- package/dist/data-table/components/ui/sortable.d.ts.map +1 -0
- package/dist/data-table/components/ui/sortable.js +177 -0
- package/dist/data-table/components/ui/sortable.js.map +1 -0
- package/dist/data-table/config/data-table.d.ts +129 -0
- package/dist/data-table/config/data-table.d.ts.map +1 -0
- package/dist/data-table/config/data-table.js +88 -0
- package/dist/data-table/config/data-table.js.map +1 -0
- package/dist/data-table/copy/data-table-copy.d.ts +765 -0
- package/dist/data-table/copy/data-table-copy.d.ts.map +1 -0
- package/dist/data-table/copy/data-table-copy.js +190 -0
- package/dist/data-table/copy/data-table-copy.js.map +1 -0
- package/dist/data-table/hooks/use-callback-ref.d.ts +10 -0
- package/dist/data-table/hooks/use-callback-ref.d.ts.map +1 -0
- package/dist/data-table/hooks/use-callback-ref.js +17 -0
- package/dist/data-table/hooks/use-callback-ref.js.map +1 -0
- package/dist/data-table/hooks/use-data-table-search-params.d.ts +32 -0
- package/dist/data-table/hooks/use-data-table-search-params.d.ts.map +1 -0
- package/dist/data-table/hooks/use-data-table-search-params.js +32 -0
- package/dist/data-table/hooks/use-data-table-search-params.js.map +1 -0
- package/dist/data-table/hooks/use-data-table.d.ts +55 -0
- package/dist/data-table/hooks/use-data-table.d.ts.map +1 -0
- package/dist/data-table/hooks/use-data-table.js +150 -0
- package/dist/data-table/hooks/use-data-table.js.map +1 -0
- package/dist/data-table/hooks/use-debounced-callback.d.ts +8 -0
- package/dist/data-table/hooks/use-debounced-callback.d.ts.map +1 -0
- package/dist/data-table/hooks/use-debounced-callback.js +22 -0
- package/dist/data-table/hooks/use-debounced-callback.js.map +1 -0
- package/dist/data-table/hooks/use-is-phone-width.d.ts +7 -0
- package/dist/data-table/hooks/use-is-phone-width.d.ts.map +1 -0
- package/dist/data-table/hooks/use-is-phone-width.js +34 -0
- package/dist/data-table/hooks/use-is-phone-width.js.map +1 -0
- package/dist/data-table/hooks/use-list-emptiness.d.ts +14 -0
- package/dist/data-table/hooks/use-list-emptiness.d.ts.map +1 -0
- package/dist/data-table/hooks/use-list-emptiness.js +28 -0
- package/dist/data-table/hooks/use-list-emptiness.js.map +1 -0
- package/dist/data-table/hooks/use-reader-column-layout.d.ts +20 -0
- package/dist/data-table/hooks/use-reader-column-layout.d.ts.map +1 -0
- package/dist/data-table/hooks/use-reader-column-layout.js +31 -0
- package/dist/data-table/hooks/use-reader-column-layout.js.map +1 -0
- package/dist/data-table/index.d.ts +37 -0
- package/dist/data-table/index.d.ts.map +1 -0
- package/dist/data-table/index.js +37 -0
- package/dist/data-table/index.js.map +1 -0
- package/dist/data-table/lib/card-fields.d.ts +33 -0
- package/dist/data-table/lib/card-fields.d.ts.map +1 -0
- package/dist/data-table/lib/card-fields.js +39 -0
- package/dist/data-table/lib/card-fields.js.map +1 -0
- package/dist/data-table/lib/clearable-column-filters.d.ts +6 -0
- package/dist/data-table/lib/clearable-column-filters.d.ts.map +1 -0
- package/dist/data-table/lib/clearable-column-filters.js +19 -0
- package/dist/data-table/lib/clearable-column-filters.js.map +1 -0
- package/dist/data-table/lib/column-filters.d.ts +19 -0
- package/dist/data-table/lib/column-filters.d.ts.map +1 -0
- package/dist/data-table/lib/column-filters.js +60 -0
- package/dist/data-table/lib/column-filters.js.map +1 -0
- package/dist/data-table/lib/column-label.d.ts +13 -0
- package/dist/data-table/lib/column-label.d.ts.map +1 -0
- package/dist/data-table/lib/column-label.js +24 -0
- package/dist/data-table/lib/column-label.js.map +1 -0
- package/dist/data-table/lib/column-roles.d.ts +34 -0
- package/dist/data-table/lib/column-roles.d.ts.map +1 -0
- package/dist/data-table/lib/column-roles.js +79 -0
- package/dist/data-table/lib/column-roles.js.map +1 -0
- package/dist/data-table/lib/column-visibility-storage.d.ts +21 -0
- package/dist/data-table/lib/column-visibility-storage.d.ts.map +1 -0
- package/dist/data-table/lib/column-visibility-storage.js +52 -0
- package/dist/data-table/lib/column-visibility-storage.js.map +1 -0
- package/dist/data-table/lib/compose-refs.d.ts +17 -0
- package/dist/data-table/lib/compose-refs.d.ts.map +1 -0
- package/dist/data-table/lib/compose-refs.js +52 -0
- package/dist/data-table/lib/compose-refs.js.map +1 -0
- package/dist/data-table/lib/data-table-search-params.d.ts +131 -0
- package/dist/data-table/lib/data-table-search-params.d.ts.map +1 -0
- package/dist/data-table/lib/data-table-search-params.js +116 -0
- package/dist/data-table/lib/data-table-search-params.js.map +1 -0
- package/dist/data-table/lib/data-table-types.d.ts +44 -0
- package/dist/data-table/lib/data-table-types.d.ts.map +1 -0
- package/dist/data-table/lib/data-table-types.js +2 -0
- package/dist/data-table/lib/data-table-types.js.map +1 -0
- package/dist/data-table/lib/data-table.d.ts +42 -0
- package/dist/data-table/lib/data-table.d.ts.map +1 -0
- package/dist/data-table/lib/data-table.js +92 -0
- package/dist/data-table/lib/data-table.js.map +1 -0
- package/dist/data-table/lib/filter-groups.d.ts +63 -0
- package/dist/data-table/lib/filter-groups.d.ts.map +1 -0
- package/dist/data-table/lib/filter-groups.js +55 -0
- package/dist/data-table/lib/filter-groups.js.map +1 -0
- package/dist/data-table/lib/filter-param.d.ts +111 -0
- package/dist/data-table/lib/filter-param.d.ts.map +1 -0
- package/dist/data-table/lib/filter-param.js +146 -0
- package/dist/data-table/lib/filter-param.js.map +1 -0
- package/dist/data-table/lib/format.d.ts +18 -0
- package/dist/data-table/lib/format.d.ts.map +1 -0
- package/dist/data-table/lib/format.js +43 -0
- package/dist/data-table/lib/format.js.map +1 -0
- package/dist/data-table/lib/id.d.ts +7 -0
- package/dist/data-table/lib/id.d.ts.map +1 -0
- package/dist/data-table/lib/id.js +11 -0
- package/dist/data-table/lib/id.js.map +1 -0
- package/dist/data-table/lib/list-emptiness.d.ts +63 -0
- package/dist/data-table/lib/list-emptiness.d.ts.map +1 -0
- package/dist/data-table/lib/list-emptiness.js +59 -0
- package/dist/data-table/lib/list-emptiness.js.map +1 -0
- package/dist/data-table/lib/parsers.d.ts +51 -0
- package/dist/data-table/lib/parsers.d.ts.map +1 -0
- package/dist/data-table/lib/parsers.js +37 -0
- package/dist/data-table/lib/parsers.js.map +1 -0
- package/dist/data-table/lib/read-primary-row-link.d.ts +18 -0
- package/dist/data-table/lib/read-primary-row-link.d.ts.map +1 -0
- package/dist/data-table/lib/read-primary-row-link.js +38 -0
- package/dist/data-table/lib/read-primary-row-link.js.map +1 -0
- package/dist/data-table/lib/reader-hidden-columns.d.ts +11 -0
- package/dist/data-table/lib/reader-hidden-columns.d.ts.map +1 -0
- package/dist/data-table/lib/reader-hidden-columns.js +18 -0
- package/dist/data-table/lib/reader-hidden-columns.js.map +1 -0
- package/dist/data-table/lib/row-groups.d.ts +12 -0
- package/dist/data-table/lib/row-groups.d.ts.map +1 -0
- package/dist/data-table/lib/row-groups.js +10 -0
- package/dist/data-table/lib/row-groups.js.map +1 -0
- package/dist/data-table/lib/sort-param.d.ts +42 -0
- package/dist/data-table/lib/sort-param.d.ts.map +1 -0
- package/dist/data-table/lib/sort-param.js +70 -0
- package/dist/data-table/lib/sort-param.js.map +1 -0
- package/dist/data-table/routing.d.ts +8 -0
- package/dist/data-table/routing.d.ts.map +1 -0
- package/dist/data-table/routing.js +8 -0
- package/dist/data-table/routing.js.map +1 -0
- package/dist/display/components/ui/alert.d.ts +10 -0
- package/dist/display/components/ui/alert.d.ts.map +1 -0
- package/dist/display/components/ui/alert.js +26 -0
- package/dist/display/components/ui/alert.js.map +1 -0
- package/dist/display/components/ui/collapsible.d.ts +6 -0
- package/dist/display/components/ui/collapsible.d.ts.map +1 -0
- package/dist/display/components/ui/collapsible.js +13 -0
- package/dist/display/components/ui/collapsible.js.map +1 -0
- package/dist/display/components/ui/empty.d.ts +12 -0
- package/dist/display/components/ui/empty.d.ts.map +1 -0
- package/dist/display/components/ui/empty.js +34 -0
- package/dist/display/components/ui/empty.js.map +1 -0
- package/dist/display/components/ui/logic/horizontal-overflow-edges.d.ts +19 -0
- package/dist/display/components/ui/logic/horizontal-overflow-edges.d.ts.map +1 -0
- package/dist/display/components/ui/logic/horizontal-overflow-edges.js +19 -0
- package/dist/display/components/ui/logic/horizontal-overflow-edges.js.map +1 -0
- package/dist/display/components/ui/scroll-area.d.ts +6 -0
- package/dist/display/components/ui/scroll-area.d.ts.map +1 -0
- package/dist/display/components/ui/scroll-area.js +15 -0
- package/dist/display/components/ui/scroll-area.js.map +1 -0
- package/dist/display/components/ui/status-badge.d.ts +16 -0
- package/dist/display/components/ui/status-badge.d.ts.map +1 -0
- package/dist/display/components/ui/status-badge.js +20 -0
- package/dist/display/components/ui/status-badge.js.map +1 -0
- package/dist/display/components/ui/status-tone.d.ts +4 -0
- package/dist/display/components/ui/status-tone.d.ts.map +1 -0
- package/dist/display/components/ui/status-tone.js +8 -0
- package/dist/display/components/ui/status-tone.js.map +1 -0
- package/dist/display/components/ui/table-edge-fade.d.ts +12 -0
- package/dist/display/components/ui/table-edge-fade.d.ts.map +1 -0
- package/dist/display/components/ui/table-edge-fade.js +14 -0
- package/dist/display/components/ui/table-edge-fade.js.map +1 -0
- package/dist/display/components/ui/table.d.ts +46 -0
- package/dist/display/components/ui/table.d.ts.map +1 -0
- package/dist/display/components/ui/table.js +57 -0
- package/dist/display/components/ui/table.js.map +1 -0
- package/dist/display/components/ui/tabs.d.ts +12 -0
- package/dist/display/components/ui/tabs.d.ts.map +1 -0
- package/dist/display/components/ui/tabs.js +31 -0
- package/dist/display/components/ui/tabs.js.map +1 -0
- package/dist/display/components/ui/tone-bar.d.ts +13 -0
- package/dist/display/components/ui/tone-bar.d.ts.map +1 -0
- package/dist/display/components/ui/tone-bar.js +14 -0
- package/dist/display/components/ui/tone-bar.js.map +1 -0
- package/dist/display/components/ui/use-hidden-edges.d.ts +18 -0
- package/dist/display/components/ui/use-hidden-edges.d.ts.map +1 -0
- package/dist/display/components/ui/use-hidden-edges.js +67 -0
- package/dist/display/components/ui/use-hidden-edges.js.map +1 -0
- package/dist/display/index.d.ts +9 -0
- package/dist/display/index.d.ts.map +1 -0
- package/dist/display/index.js +9 -0
- package/dist/display/index.js.map +1 -0
- package/dist/elements/calendar.d.ts +7 -0
- package/dist/elements/calendar.d.ts.map +1 -0
- package/dist/elements/calendar.js +7 -0
- package/dist/elements/calendar.js.map +1 -0
- package/dist/elements/components/ui/avatar.d.ts +12 -0
- package/dist/elements/components/ui/avatar.d.ts.map +1 -0
- package/dist/elements/components/ui/avatar.js +24 -0
- package/dist/elements/components/ui/avatar.js.map +1 -0
- package/dist/elements/components/ui/badge.d.ts +10 -0
- package/dist/elements/components/ui/badge.d.ts.map +1 -0
- package/dist/elements/components/ui/badge.js +26 -0
- package/dist/elements/components/ui/badge.js.map +1 -0
- package/dist/elements/components/ui/button.d.ts +11 -0
- package/dist/elements/components/ui/button.d.ts.map +1 -0
- package/dist/elements/components/ui/button.js +39 -0
- package/dist/elements/components/ui/button.js.map +1 -0
- package/dist/elements/components/ui/calendar.d.ts +35 -0
- package/dist/elements/components/ui/calendar.d.ts.map +1 -0
- package/dist/elements/components/ui/calendar.js +69 -0
- package/dist/elements/components/ui/calendar.js.map +1 -0
- package/dist/elements/components/ui/card.d.ts +10 -0
- package/dist/elements/components/ui/card.d.ts.map +1 -0
- package/dist/elements/components/ui/card.js +26 -0
- package/dist/elements/components/ui/card.js.map +1 -0
- package/dist/elements/components/ui/kbd.d.ts +4 -0
- package/dist/elements/components/ui/kbd.d.ts.map +1 -0
- package/dist/elements/components/ui/kbd.js +10 -0
- package/dist/elements/components/ui/kbd.js.map +1 -0
- package/dist/elements/components/ui/separator.d.ts +5 -0
- package/dist/elements/components/ui/separator.d.ts.map +1 -0
- package/dist/elements/components/ui/separator.js +9 -0
- package/dist/elements/components/ui/separator.js.map +1 -0
- package/dist/elements/components/ui/skeleton.d.ts +3 -0
- package/dist/elements/components/ui/skeleton.d.ts.map +1 -0
- package/dist/elements/components/ui/skeleton.js +7 -0
- package/dist/elements/components/ui/skeleton.js.map +1 -0
- package/dist/elements/components/ui/spinner.d.ts +3 -0
- package/dist/elements/components/ui/spinner.d.ts.map +1 -0
- package/dist/elements/components/ui/spinner.js +10 -0
- package/dist/elements/components/ui/spinner.js.map +1 -0
- package/dist/elements/copy/elements-copy.d.ts +14 -0
- package/dist/elements/copy/elements-copy.d.ts.map +1 -0
- package/dist/elements/copy/elements-copy.js +6 -0
- package/dist/elements/copy/elements-copy.js.map +1 -0
- package/dist/elements/css-custom-properties.d.ts +3 -0
- package/dist/elements/css-custom-properties.d.ts.map +1 -0
- package/dist/elements/css-custom-properties.js +2 -0
- package/dist/elements/css-custom-properties.js.map +1 -0
- package/dist/elements/index.d.ts +14 -0
- package/dist/elements/index.d.ts.map +1 -0
- package/dist/elements/index.js +13 -0
- package/dist/elements/index.js.map +1 -0
- package/dist/elements/lib/attachment-item.d.ts +29 -0
- package/dist/elements/lib/attachment-item.d.ts.map +1 -0
- package/dist/elements/lib/attachment-item.js +57 -0
- package/dist/elements/lib/attachment-item.js.map +1 -0
- package/dist/elements/lib/get-initials.d.ts +9 -0
- package/dist/elements/lib/get-initials.d.ts.map +1 -0
- package/dist/elements/lib/get-initials.js +27 -0
- package/dist/elements/lib/get-initials.js.map +1 -0
- package/dist/elements/lib/utils.d.ts +3 -0
- package/dist/elements/lib/utils.d.ts.map +1 -0
- package/dist/elements/lib/utils.js +6 -0
- package/dist/elements/lib/utils.js.map +1 -0
- package/dist/forms/components/ui/checkbox.d.ts +5 -0
- package/dist/forms/components/ui/checkbox.d.ts.map +1 -0
- package/dist/forms/components/ui/checkbox.js +10 -0
- package/dist/forms/components/ui/checkbox.js.map +1 -0
- package/dist/forms/components/ui/combobox-options.d.ts +19 -0
- package/dist/forms/components/ui/combobox-options.d.ts.map +1 -0
- package/dist/forms/components/ui/combobox-options.js +48 -0
- package/dist/forms/components/ui/combobox-options.js.map +1 -0
- package/dist/forms/components/ui/combobox.d.ts +69 -0
- package/dist/forms/components/ui/combobox.d.ts.map +1 -0
- package/dist/forms/components/ui/combobox.js +115 -0
- package/dist/forms/components/ui/combobox.js.map +1 -0
- package/dist/forms/components/ui/date-range-field.d.ts +30 -0
- package/dist/forms/components/ui/date-range-field.d.ts.map +1 -0
- package/dist/forms/components/ui/date-range-field.js +22 -0
- package/dist/forms/components/ui/date-range-field.js.map +1 -0
- package/dist/forms/components/ui/field.d.ts +26 -0
- package/dist/forms/components/ui/field.d.ts.map +1 -0
- package/dist/forms/components/ui/field.js +73 -0
- package/dist/forms/components/ui/field.js.map +1 -0
- package/dist/forms/components/ui/input-group.d.ts +20 -0
- package/dist/forms/components/ui/input-group.d.ts.map +1 -0
- package/dist/forms/components/ui/input-group.js +66 -0
- package/dist/forms/components/ui/input-group.js.map +1 -0
- package/dist/forms/components/ui/input.d.ts +7 -0
- package/dist/forms/components/ui/input.d.ts.map +1 -0
- package/dist/forms/components/ui/input.js +8 -0
- package/dist/forms/components/ui/input.js.map +1 -0
- package/dist/forms/components/ui/label.d.ts +5 -0
- package/dist/forms/components/ui/label.d.ts.map +1 -0
- package/dist/forms/components/ui/label.js +9 -0
- package/dist/forms/components/ui/label.js.map +1 -0
- package/dist/forms/components/ui/radio-group.d.ts +6 -0
- package/dist/forms/components/ui/radio-group.d.ts.map +1 -0
- package/dist/forms/components/ui/radio-group.js +14 -0
- package/dist/forms/components/ui/radio-group.js.map +1 -0
- package/dist/forms/components/ui/remote-combobox-context.d.ts +6 -0
- package/dist/forms/components/ui/remote-combobox-context.d.ts.map +1 -0
- package/dist/forms/components/ui/remote-combobox-context.js +3 -0
- package/dist/forms/components/ui/remote-combobox-context.js.map +1 -0
- package/dist/forms/components/ui/remote-combobox.d.ts +37 -0
- package/dist/forms/components/ui/remote-combobox.d.ts.map +1 -0
- package/dist/forms/components/ui/remote-combobox.js +141 -0
- package/dist/forms/components/ui/remote-combobox.js.map +1 -0
- package/dist/forms/components/ui/select.d.ts +16 -0
- package/dist/forms/components/ui/select.d.ts.map +1 -0
- package/dist/forms/components/ui/select.js +40 -0
- package/dist/forms/components/ui/select.js.map +1 -0
- package/dist/forms/components/ui/slider.d.ts +5 -0
- package/dist/forms/components/ui/slider.d.ts.map +1 -0
- package/dist/forms/components/ui/slider.js +14 -0
- package/dist/forms/components/ui/slider.js.map +1 -0
- package/dist/forms/components/ui/switch.d.ts +21 -0
- package/dist/forms/components/ui/switch.d.ts.map +1 -0
- package/dist/forms/components/ui/switch.js +20 -0
- package/dist/forms/components/ui/switch.js.map +1 -0
- package/dist/forms/components/ui/textarea.d.ts +4 -0
- package/dist/forms/components/ui/textarea.d.ts.map +1 -0
- package/dist/forms/components/ui/textarea.js +8 -0
- package/dist/forms/components/ui/textarea.js.map +1 -0
- package/dist/forms/components/ui/toggle-group.d.ts +10 -0
- package/dist/forms/components/ui/toggle-group.d.ts.map +1 -0
- package/dist/forms/components/ui/toggle-group.js +25 -0
- package/dist/forms/components/ui/toggle-group.js.map +1 -0
- package/dist/forms/components/ui/toggle.d.ts +10 -0
- package/dist/forms/components/ui/toggle.d.ts.map +1 -0
- package/dist/forms/components/ui/toggle.js +30 -0
- package/dist/forms/components/ui/toggle.js.map +1 -0
- package/dist/forms/index.d.ts +16 -0
- package/dist/forms/index.d.ts.map +1 -0
- package/dist/forms/index.js +16 -0
- package/dist/forms/index.js.map +1 -0
- package/dist/forms/logic/remote-combobox-page.d.ts +26 -0
- package/dist/forms/logic/remote-combobox-page.d.ts.map +1 -0
- package/dist/forms/logic/remote-combobox-page.js +16 -0
- package/dist/forms/logic/remote-combobox-page.js.map +1 -0
- package/dist/icons/index.d.ts +13 -0
- package/dist/icons/index.d.ts.map +1 -0
- package/dist/icons/index.js +13 -0
- package/dist/icons/index.js.map +1 -0
- package/dist/overlays/components/attachment-viewer/attachment-viewer.d.ts +36 -0
- package/dist/overlays/components/attachment-viewer/attachment-viewer.d.ts.map +1 -0
- package/dist/overlays/components/attachment-viewer/attachment-viewer.js +153 -0
- package/dist/overlays/components/attachment-viewer/attachment-viewer.js.map +1 -0
- package/dist/overlays/components/attachment-viewer/full-screen-button.d.ts +4 -0
- package/dist/overlays/components/attachment-viewer/full-screen-button.d.ts.map +1 -0
- package/dist/overlays/components/attachment-viewer/full-screen-button.js +55 -0
- package/dist/overlays/components/attachment-viewer/full-screen-button.js.map +1 -0
- package/dist/overlays/components/attachment-viewer/image-stage.d.ts +12 -0
- package/dist/overlays/components/attachment-viewer/image-stage.d.ts.map +1 -0
- package/dist/overlays/components/attachment-viewer/image-stage.js +94 -0
- package/dist/overlays/components/attachment-viewer/image-stage.js.map +1 -0
- package/dist/overlays/components/attachment-viewer/logic/image-fit.d.ts +15 -0
- package/dist/overlays/components/attachment-viewer/logic/image-fit.d.ts.map +1 -0
- package/dist/overlays/components/attachment-viewer/logic/image-fit.js +24 -0
- package/dist/overlays/components/attachment-viewer/logic/image-fit.js.map +1 -0
- package/dist/overlays/components/attachment-viewer/logic/pdf-find.d.ts +65 -0
- package/dist/overlays/components/attachment-viewer/logic/pdf-find.d.ts.map +1 -0
- package/dist/overlays/components/attachment-viewer/logic/pdf-find.js +77 -0
- package/dist/overlays/components/attachment-viewer/logic/pdf-find.js.map +1 -0
- package/dist/overlays/components/attachment-viewer/logic/pdf-page-input.d.ts +9 -0
- package/dist/overlays/components/attachment-viewer/logic/pdf-page-input.d.ts.map +1 -0
- package/dist/overlays/components/attachment-viewer/logic/pdf-page-input.js +18 -0
- package/dist/overlays/components/attachment-viewer/logic/pdf-page-input.js.map +1 -0
- package/dist/overlays/components/attachment-viewer/logic/pdf-print.d.ts +43 -0
- package/dist/overlays/components/attachment-viewer/logic/pdf-print.d.ts.map +1 -0
- package/dist/overlays/components/attachment-viewer/logic/pdf-print.js +65 -0
- package/dist/overlays/components/attachment-viewer/logic/pdf-print.js.map +1 -0
- package/dist/overlays/components/attachment-viewer/logic/pdf-thumbnail.d.ts +40 -0
- package/dist/overlays/components/attachment-viewer/logic/pdf-thumbnail.d.ts.map +1 -0
- package/dist/overlays/components/attachment-viewer/logic/pdf-thumbnail.js +45 -0
- package/dist/overlays/components/attachment-viewer/logic/pdf-thumbnail.js.map +1 -0
- package/dist/overlays/components/attachment-viewer/logic/view-rotation.d.ts +14 -0
- package/dist/overlays/components/attachment-viewer/logic/view-rotation.d.ts.map +1 -0
- package/dist/overlays/components/attachment-viewer/logic/view-rotation.js +31 -0
- package/dist/overlays/components/attachment-viewer/logic/view-rotation.js.map +1 -0
- package/dist/overlays/components/attachment-viewer/logic/view-zoom.d.ts +9 -0
- package/dist/overlays/components/attachment-viewer/logic/view-zoom.d.ts.map +1 -0
- package/dist/overlays/components/attachment-viewer/logic/view-zoom.js +27 -0
- package/dist/overlays/components/attachment-viewer/logic/view-zoom.js.map +1 -0
- package/dist/overlays/components/attachment-viewer/pdf/pdf-find-bar.d.ts +14 -0
- package/dist/overlays/components/attachment-viewer/pdf/pdf-find-bar.d.ts.map +1 -0
- package/dist/overlays/components/attachment-viewer/pdf/pdf-find-bar.js +49 -0
- package/dist/overlays/components/attachment-viewer/pdf/pdf-find-bar.js.map +1 -0
- package/dist/overlays/components/attachment-viewer/pdf/pdf-page-canvas-content.d.ts +4 -0
- package/dist/overlays/components/attachment-viewer/pdf/pdf-page-canvas-content.d.ts.map +1 -0
- package/dist/overlays/components/attachment-viewer/pdf/pdf-page-canvas-content.js +47 -0
- package/dist/overlays/components/attachment-viewer/pdf/pdf-page-canvas-content.js.map +1 -0
- package/dist/overlays/components/attachment-viewer/pdf/pdf-page-field.d.ts +22 -0
- package/dist/overlays/components/attachment-viewer/pdf/pdf-page-field.d.ts.map +1 -0
- package/dist/overlays/components/attachment-viewer/pdf/pdf-page-field.js +57 -0
- package/dist/overlays/components/attachment-viewer/pdf/pdf-page-field.js.map +1 -0
- package/dist/overlays/components/attachment-viewer/pdf/pdf-print-button.d.ts +10 -0
- package/dist/overlays/components/attachment-viewer/pdf/pdf-print-button.d.ts.map +1 -0
- package/dist/overlays/components/attachment-viewer/pdf/pdf-print-button.js +26 -0
- package/dist/overlays/components/attachment-viewer/pdf/pdf-print-button.js.map +1 -0
- package/dist/overlays/components/attachment-viewer/pdf/pdf-struct-tree-guard.d.ts +19 -0
- package/dist/overlays/components/attachment-viewer/pdf/pdf-struct-tree-guard.d.ts.map +1 -0
- package/dist/overlays/components/attachment-viewer/pdf/pdf-struct-tree-guard.js +28 -0
- package/dist/overlays/components/attachment-viewer/pdf/pdf-struct-tree-guard.js.map +1 -0
- package/dist/overlays/components/attachment-viewer/pdf/pdf-thumbnail-rail.d.ts +17 -0
- package/dist/overlays/components/attachment-viewer/pdf/pdf-thumbnail-rail.d.ts.map +1 -0
- package/dist/overlays/components/attachment-viewer/pdf/pdf-thumbnail-rail.js +35 -0
- package/dist/overlays/components/attachment-viewer/pdf/pdf-thumbnail-rail.js.map +1 -0
- package/dist/overlays/components/attachment-viewer/pdf/pdf-types.d.ts +7 -0
- package/dist/overlays/components/attachment-viewer/pdf/pdf-types.d.ts.map +1 -0
- package/dist/overlays/components/attachment-viewer/pdf/pdf-types.js +2 -0
- package/dist/overlays/components/attachment-viewer/pdf/pdf-types.js.map +1 -0
- package/dist/overlays/components/attachment-viewer/pdf/pdfjs-document.d.ts +3 -0
- package/dist/overlays/components/attachment-viewer/pdf/pdfjs-document.d.ts.map +1 -0
- package/dist/overlays/components/attachment-viewer/pdf/pdfjs-document.js +13 -0
- package/dist/overlays/components/attachment-viewer/pdf/pdfjs-document.js.map +1 -0
- package/dist/overlays/components/attachment-viewer/pdf/pdfjs-viewer.d.ts +7 -0
- package/dist/overlays/components/attachment-viewer/pdf/pdfjs-viewer.d.ts.map +1 -0
- package/dist/overlays/components/attachment-viewer/pdf/pdfjs-viewer.js +8 -0
- package/dist/overlays/components/attachment-viewer/pdf/pdfjs-viewer.js.map +1 -0
- package/dist/overlays/components/attachment-viewer/pdf/use-keep-thumbnail-in-view.d.ts +11 -0
- package/dist/overlays/components/attachment-viewer/pdf/use-keep-thumbnail-in-view.d.ts.map +1 -0
- package/dist/overlays/components/attachment-viewer/pdf/use-keep-thumbnail-in-view.js +52 -0
- package/dist/overlays/components/attachment-viewer/pdf/use-keep-thumbnail-in-view.js.map +1 -0
- package/dist/overlays/components/attachment-viewer/pdf/use-pdf-find.d.ts +25 -0
- package/dist/overlays/components/attachment-viewer/pdf/use-pdf-find.d.ts.map +1 -0
- package/dist/overlays/components/attachment-viewer/pdf/use-pdf-find.js +94 -0
- package/dist/overlays/components/attachment-viewer/pdf/use-pdf-find.js.map +1 -0
- package/dist/overlays/components/attachment-viewer/pdf/use-pdf-print.d.ts +27 -0
- package/dist/overlays/components/attachment-viewer/pdf/use-pdf-print.d.ts.map +1 -0
- package/dist/overlays/components/attachment-viewer/pdf/use-pdf-print.js +216 -0
- package/dist/overlays/components/attachment-viewer/pdf/use-pdf-print.js.map +1 -0
- package/dist/overlays/components/attachment-viewer/pdf/use-pdf-viewer.d.ts +28 -0
- package/dist/overlays/components/attachment-viewer/pdf/use-pdf-viewer.d.ts.map +1 -0
- package/dist/overlays/components/attachment-viewer/pdf/use-pdf-viewer.js +255 -0
- package/dist/overlays/components/attachment-viewer/pdf/use-pdf-viewer.js.map +1 -0
- package/dist/overlays/components/attachment-viewer/pdf/use-thumbnail-render.d.ts +22 -0
- package/dist/overlays/components/attachment-viewer/pdf/use-thumbnail-render.d.ts.map +1 -0
- package/dist/overlays/components/attachment-viewer/pdf/use-thumbnail-render.js +75 -0
- package/dist/overlays/components/attachment-viewer/pdf/use-thumbnail-render.js.map +1 -0
- package/dist/overlays/components/attachment-viewer/pdf-document-view.d.ts +18 -0
- package/dist/overlays/components/attachment-viewer/pdf-document-view.d.ts.map +1 -0
- package/dist/overlays/components/attachment-viewer/pdf-document-view.js +128 -0
- package/dist/overlays/components/attachment-viewer/pdf-document-view.js.map +1 -0
- package/dist/overlays/components/attachment-viewer/pdf-page-canvas.d.ts +10 -0
- package/dist/overlays/components/attachment-viewer/pdf-page-canvas.d.ts.map +1 -0
- package/dist/overlays/components/attachment-viewer/pdf-page-canvas.js +26 -0
- package/dist/overlays/components/attachment-viewer/pdf-page-canvas.js.map +1 -0
- package/dist/overlays/components/attachment-viewer/use-attachment-source.d.ts +55 -0
- package/dist/overlays/components/attachment-viewer/use-attachment-source.d.ts.map +1 -0
- package/dist/overlays/components/attachment-viewer/use-attachment-source.js +117 -0
- package/dist/overlays/components/attachment-viewer/use-attachment-source.js.map +1 -0
- package/dist/overlays/components/attachment-viewer/viewer-toolbar.d.ts +32 -0
- package/dist/overlays/components/attachment-viewer/viewer-toolbar.d.ts.map +1 -0
- package/dist/overlays/components/attachment-viewer/viewer-toolbar.js +28 -0
- package/dist/overlays/components/attachment-viewer/viewer-toolbar.js.map +1 -0
- package/dist/overlays/components/ui/alert-dialog.d.ts +21 -0
- package/dist/overlays/components/ui/alert-dialog.d.ts.map +1 -0
- package/dist/overlays/components/ui/alert-dialog.js +47 -0
- package/dist/overlays/components/ui/alert-dialog.js.map +1 -0
- package/dist/overlays/components/ui/command.d.ts +19 -0
- package/dist/overlays/components/ui/command.d.ts.map +1 -0
- package/dist/overlays/components/ui/command.js +37 -0
- package/dist/overlays/components/ui/command.js.map +1 -0
- package/dist/overlays/components/ui/dialog.d.ts +23 -0
- package/dist/overlays/components/ui/dialog.d.ts.map +1 -0
- package/dist/overlays/components/ui/dialog.js +78 -0
- package/dist/overlays/components/ui/dialog.js.map +1 -0
- package/dist/overlays/components/ui/dropdown-menu.d.ts +26 -0
- package/dist/overlays/components/ui/dropdown-menu.d.ts.map +1 -0
- package/dist/overlays/components/ui/dropdown-menu.js +53 -0
- package/dist/overlays/components/ui/dropdown-menu.js.map +1 -0
- package/dist/overlays/components/ui/popover.d.ts +11 -0
- package/dist/overlays/components/ui/popover.d.ts.map +1 -0
- package/dist/overlays/components/ui/popover.js +28 -0
- package/dist/overlays/components/ui/popover.js.map +1 -0
- package/dist/overlays/components/ui/sheet.d.ts +15 -0
- package/dist/overlays/components/ui/sheet.d.ts.map +1 -0
- package/dist/overlays/components/ui/sheet.js +43 -0
- package/dist/overlays/components/ui/sheet.js.map +1 -0
- package/dist/overlays/components/ui/sonner.d.ts +20 -0
- package/dist/overlays/components/ui/sonner.d.ts.map +1 -0
- package/dist/overlays/components/ui/sonner.js +40 -0
- package/dist/overlays/components/ui/sonner.js.map +1 -0
- package/dist/overlays/components/ui/split-button.d.ts +37 -0
- package/dist/overlays/components/ui/split-button.d.ts.map +1 -0
- package/dist/overlays/components/ui/split-button.js +29 -0
- package/dist/overlays/components/ui/split-button.js.map +1 -0
- package/dist/overlays/components/ui/tooltip.d.ts +8 -0
- package/dist/overlays/components/ui/tooltip.d.ts.map +1 -0
- package/dist/overlays/components/ui/tooltip.js +18 -0
- package/dist/overlays/components/ui/tooltip.js.map +1 -0
- package/dist/overlays/copy/overlays-copy.d.ts +320 -0
- package/dist/overlays/copy/overlays-copy.d.ts.map +1 -0
- package/dist/overlays/copy/overlays-copy.js +85 -0
- package/dist/overlays/copy/overlays-copy.js.map +1 -0
- package/dist/overlays/index.d.ts +13 -0
- package/dist/overlays/index.d.ts.map +1 -0
- package/dist/overlays/index.js +13 -0
- package/dist/overlays/index.js.map +1 -0
- package/dist/page/components/attachment-list.d.ts +31 -0
- package/dist/page/components/attachment-list.d.ts.map +1 -0
- package/dist/page/components/attachment-list.js +112 -0
- package/dist/page/components/attachment-list.js.map +1 -0
- package/dist/page/components/content-hierarchy.d.ts +29 -0
- package/dist/page/components/content-hierarchy.d.ts.map +1 -0
- package/dist/page/components/content-hierarchy.js +30 -0
- package/dist/page/components/content-hierarchy.js.map +1 -0
- package/dist/page/components/detail-card.d.ts +18 -0
- package/dist/page/components/detail-card.d.ts.map +1 -0
- package/dist/page/components/detail-card.js +13 -0
- package/dist/page/components/detail-card.js.map +1 -0
- package/dist/page/components/detail-layout.d.ts +8 -0
- package/dist/page/components/detail-layout.d.ts.map +1 -0
- package/dist/page/components/detail-layout.js +16 -0
- package/dist/page/components/detail-layout.js.map +1 -0
- package/dist/page/components/detail-page.d.ts +48 -0
- package/dist/page/components/detail-page.d.ts.map +1 -0
- package/dist/page/components/detail-page.js +47 -0
- package/dist/page/components/detail-page.js.map +1 -0
- package/dist/page/components/list-page.d.ts +31 -0
- package/dist/page/components/list-page.d.ts.map +1 -0
- package/dist/page/components/list-page.js +31 -0
- package/dist/page/components/list-page.js.map +1 -0
- package/dist/page/components/list-view-tabs.d.ts +37 -0
- package/dist/page/components/list-view-tabs.d.ts.map +1 -0
- package/dist/page/components/list-view-tabs.js +74 -0
- package/dist/page/components/list-view-tabs.js.map +1 -0
- package/dist/page/components/master-detail/logic/rail-list.d.ts +61 -0
- package/dist/page/components/master-detail/logic/rail-list.d.ts.map +1 -0
- package/dist/page/components/master-detail/logic/rail-list.js +66 -0
- package/dist/page/components/master-detail/logic/rail-list.js.map +1 -0
- package/dist/page/components/master-detail/master-detail-layout.d.ts +70 -0
- package/dist/page/components/master-detail/master-detail-layout.d.ts.map +1 -0
- package/dist/page/components/master-detail/master-detail-layout.js +92 -0
- package/dist/page/components/master-detail/master-detail-layout.js.map +1 -0
- package/dist/page/components/master-detail/master-detail-list.d.ts +41 -0
- package/dist/page/components/master-detail/master-detail-list.d.ts.map +1 -0
- package/dist/page/components/master-detail/master-detail-list.js +178 -0
- package/dist/page/components/master-detail/master-detail-list.js.map +1 -0
- package/dist/page/components/master-detail/master-detail-rail.d.ts +51 -0
- package/dist/page/components/master-detail/master-detail-rail.d.ts.map +1 -0
- package/dist/page/components/master-detail/master-detail-rail.js +53 -0
- package/dist/page/components/master-detail/master-detail-rail.js.map +1 -0
- package/dist/page/components/master-detail/master-detail-row.d.ts +24 -0
- package/dist/page/components/master-detail/master-detail-row.d.ts.map +1 -0
- package/dist/page/components/master-detail/master-detail-row.js +31 -0
- package/dist/page/components/master-detail/master-detail-row.js.map +1 -0
- package/dist/page/components/master-detail/testing/rail-geometry.d.ts +23 -0
- package/dist/page/components/master-detail/testing/rail-geometry.d.ts.map +1 -0
- package/dist/page/components/master-detail/testing/rail-geometry.js +67 -0
- package/dist/page/components/master-detail/testing/rail-geometry.js.map +1 -0
- package/dist/page/components/object-switch.d.ts +22 -0
- package/dist/page/components/object-switch.d.ts.map +1 -0
- package/dist/page/components/object-switch.js +24 -0
- package/dist/page/components/object-switch.js.map +1 -0
- package/dist/page/components/section-nav.d.ts +28 -0
- package/dist/page/components/section-nav.d.ts.map +1 -0
- package/dist/page/components/section-nav.js +42 -0
- package/dist/page/components/section-nav.js.map +1 -0
- package/dist/page/components/stat-strip.d.ts +24 -0
- package/dist/page/components/stat-strip.d.ts.map +1 -0
- package/dist/page/components/stat-strip.js +24 -0
- package/dist/page/components/stat-strip.js.map +1 -0
- package/dist/page/copy/page-copy.d.ts +98 -0
- package/dist/page/copy/page-copy.d.ts.map +1 -0
- package/dist/page/copy/page-copy.js +20 -0
- package/dist/page/copy/page-copy.js.map +1 -0
- package/dist/page/index.d.ts +17 -0
- package/dist/page/index.d.ts.map +1 -0
- package/dist/page/index.js +17 -0
- package/dist/page/index.js.map +1 -0
- package/dist/shell/components/ui/breadcrumb.d.ts +13 -0
- package/dist/shell/components/ui/breadcrumb.d.ts.map +1 -0
- package/dist/shell/components/ui/breadcrumb.js +35 -0
- package/dist/shell/components/ui/breadcrumb.js.map +1 -0
- package/dist/shell/components/ui/sidebar-context.d.ts +22 -0
- package/dist/shell/components/ui/sidebar-context.d.ts.map +1 -0
- package/dist/shell/components/ui/sidebar-context.js +85 -0
- package/dist/shell/components/ui/sidebar-context.js.map +1 -0
- package/dist/shell/components/ui/sidebar-menu.d.ts +32 -0
- package/dist/shell/components/ui/sidebar-menu.d.ts.map +1 -0
- package/dist/shell/components/ui/sidebar-menu.js +76 -0
- package/dist/shell/components/ui/sidebar-menu.js.map +1 -0
- package/dist/shell/components/ui/sidebar.d.ts +28 -0
- package/dist/shell/components/ui/sidebar.d.ts.map +1 -0
- package/dist/shell/components/ui/sidebar.js +83 -0
- package/dist/shell/components/ui/sidebar.js.map +1 -0
- package/dist/shell/copy/shell-copy.d.ts +38 -0
- package/dist/shell/copy/shell-copy.d.ts.map +1 -0
- package/dist/shell/copy/shell-copy.js +12 -0
- package/dist/shell/copy/shell-copy.js.map +1 -0
- package/dist/shell/hooks/use-mobile.d.ts +2 -0
- package/dist/shell/hooks/use-mobile.d.ts.map +1 -0
- package/dist/shell/hooks/use-mobile.js +18 -0
- package/dist/shell/hooks/use-mobile.js.map +1 -0
- package/dist/shell/index.d.ts +5 -0
- package/dist/shell/index.d.ts.map +1 -0
- package/dist/shell/index.js +5 -0
- package/dist/shell/index.js.map +1 -0
- package/package.json +106 -4
- package/third-party-licenses/dice-ui.txt +21 -0
- package/third-party-licenses/mantine.txt +21 -0
- package/third-party-licenses/radix-primitives.txt +21 -0
- package/third-party-licenses/shadcn-ui.txt +21 -0
package/LICENSE.md
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Bryton Cooper
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,3 +1,59 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @dads-framework/ui
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
React controls, data tables, and application layouts with a neutral default theme.
|
|
4
|
+
|
|
5
|
+
## Try it
|
|
6
|
+
|
|
7
|
+
Install `@dads-framework/ui` and `@dads-framework/styles` in your React 19 app.
|
|
8
|
+
In the application's Tailwind CSS entry point, scan the installed UI package.
|
|
9
|
+
Adjust the source path relative to that stylesheet.
|
|
10
|
+
|
|
11
|
+
```css
|
|
12
|
+
@import "@dads-framework/styles/index.css";
|
|
13
|
+
@source "../node_modules/@dads-framework/ui/dist";
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
```tsx
|
|
17
|
+
import { Button } from "@dads-framework/ui/elements";
|
|
18
|
+
|
|
19
|
+
export function RefreshButton({ onRefresh }: { onRefresh: () => void }) {
|
|
20
|
+
return <Button onClick={onRefresh}>Refresh</Button>;
|
|
21
|
+
}
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
## Use it
|
|
25
|
+
|
|
26
|
+
| Import path | Includes |
|
|
27
|
+
| --------------------------------------- | --------------------------------------------------------- |
|
|
28
|
+
| `@dads-framework/ui/elements` | Buttons, badges, calendar, and class name utilities |
|
|
29
|
+
| `@dads-framework/ui/forms` | Inputs, fields, switches, checkbox, and combobox |
|
|
30
|
+
| `@dads-framework/ui/display` | Alert, empty state, scroll area, and table primitives |
|
|
31
|
+
| `@dads-framework/ui/overlays` | Dialogs, menus, sheets, tooltips, and attachment previews |
|
|
32
|
+
| `@dads-framework/ui/data-table` | Responsive data table, toolbar, filters, and sorting |
|
|
33
|
+
| `@dads-framework/ui/data-table/routing` | Table search schemas and helpers for route files |
|
|
34
|
+
| `@dads-framework/ui/page` | Page layout, list tabs, and master-detail views |
|
|
35
|
+
| `@dads-framework/ui/shell` | Sidebar, breadcrumb, and mobile detection |
|
|
36
|
+
| `@dads-framework/ui/icons` | Named icon exports |
|
|
37
|
+
|
|
38
|
+
The elements subpaths `/elements/calendar` and
|
|
39
|
+
`/elements/css-custom-properties` expose the standalone calendar and CSS
|
|
40
|
+
property types.
|
|
41
|
+
|
|
42
|
+
## Contract
|
|
43
|
+
|
|
44
|
+
- `MasterDetailRow` uses a native link by default. Pass a `linkComponent`
|
|
45
|
+
accepting `MasterDetailLinkProps` for router navigation. It receives the
|
|
46
|
+
destination as `href` and the list search values separately as `search`.
|
|
47
|
+
- Pass a stable `tableId` to `useDataTable` to remember visible columns on the
|
|
48
|
+
device. Without an ID, column preferences last for the current visit.
|
|
49
|
+
- `AttachmentViewer` accepts a URL or Blob from the caller's `loadSource`.
|
|
50
|
+
For PDFs, serve the PDF.js WASM decoders at `/pdfjs/wasm/`. The caller owns
|
|
51
|
+
the download handler.
|
|
52
|
+
|
|
53
|
+
## What it refuses to do
|
|
54
|
+
|
|
55
|
+
Application routes, loading, storage access for attachment sources, and product
|
|
56
|
+
copy belong to the host application.
|
|
57
|
+
|
|
58
|
+
[Third-party source notices](./THIRD_PARTY_NOTICES.md) identify the adapted
|
|
59
|
+
components and helpers included in this package.
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# Third-party notices for @dads-framework/ui
|
|
2
|
+
|
|
3
|
+
The following upstream sources are redistributed in adapted form. The notices
|
|
4
|
+
retain the upstream copyright and license text.
|
|
5
|
+
|
|
6
|
+
## Dice UI
|
|
7
|
+
|
|
8
|
+
Data-table registry components and related helpers adapted in `src/data-table/`.
|
|
9
|
+
|
|
10
|
+
[Source repository](https://github.com/sadmann7/diceui) · [Upstream MIT notice](https://github.com/sadmann7/diceui/blob/8e6a4f2c19a04e6dc42e4db8d6493f7e0a802910/LICENSE) · [Notice included in this package](./third-party-licenses/dice-ui.txt)
|
|
11
|
+
|
|
12
|
+
## shadcn/ui
|
|
13
|
+
|
|
14
|
+
Generated and adapted UI components, including the combobox in `src/forms/components/ui/`.
|
|
15
|
+
|
|
16
|
+
[Source repository](https://github.com/shadcn-ui/ui) · [Upstream MIT notice](https://github.com/shadcn-ui/ui/blob/f50887ae68d0fdcbfbe86b57be08af94a4c88a68/LICENSE.md) · [Notice included in this package](./third-party-licenses/shadcn-ui.txt)
|
|
17
|
+
|
|
18
|
+
## Radix Primitives
|
|
19
|
+
|
|
20
|
+
The `compose-refs` and `use-callback-ref` ports in `src/data-table/`.
|
|
21
|
+
|
|
22
|
+
[Source repository](https://github.com/radix-ui/primitives) · [Upstream MIT notice](https://github.com/radix-ui/primitives/blob/eb3a2b7091293e27df8f9ba906632d8daa3d81a3/LICENSE) · [Notice included in this package](./third-party-licenses/radix-primitives.txt)
|
|
23
|
+
|
|
24
|
+
## Mantine
|
|
25
|
+
|
|
26
|
+
The `use-debounced-callback` port in `src/data-table/hooks/`.
|
|
27
|
+
|
|
28
|
+
[Source repository](https://github.com/mantinedev/mantine) · [Upstream MIT notice](https://github.com/mantinedev/mantine/blob/2bdbb6cbaaec40b82618de84711afa6f6a86c8e7/LICENSE) · [Notice included in this package](./third-party-licenses/mantine.txt)
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { type FilterGroup } from "../../lib/filter-groups.js";
|
|
2
|
+
type AppliedFilterChipsProps = {
|
|
3
|
+
readonly groups: readonly FilterGroup[];
|
|
4
|
+
/**
|
|
5
|
+
* Clears every narrowing the chips stand for, in one write. Pages whose
|
|
6
|
+
* groups share one URL update pass this; without it each group is cleared
|
|
7
|
+
* through its own `onSelectedChange`.
|
|
8
|
+
*/
|
|
9
|
+
readonly onClearAll?: () => void;
|
|
10
|
+
readonly className?: string;
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* One removable chip per applied filter value ("Type: Sales ×") and a
|
|
14
|
+
* Clear All. Renders nothing while no value is applied. Chips wrap on wide
|
|
15
|
+
* screens and scroll in one row on phones.
|
|
16
|
+
*/
|
|
17
|
+
export declare function AppliedFilterChips({ groups, onClearAll, className, }: AppliedFilterChipsProps): import("react").JSX.Element | null;
|
|
18
|
+
export {};
|
|
19
|
+
//# sourceMappingURL=applied-filter-chips.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"applied-filter-chips.d.ts","sourceRoot":"","sources":["../../../../src/data-table/components/data-table/applied-filter-chips.tsx"],"names":[],"mappings":"AAKA,OAAO,EACL,KAAK,WAAW,EAGjB,MAAM,4BAA4B,CAAC;AAEpC,KAAK,uBAAuB,GAAG;IAC7B,QAAQ,CAAC,MAAM,EAAE,SAAS,WAAW,EAAE,CAAC;IACxC;;;;OAIG;IACH,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,IAAI,CAAC;IACjC,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC;CAC7B,CAAC;AAEF;;;;GAIG;AACH,wBAAgB,kBAAkB,CAAC,EACjC,MAAM,EACN,UAAU,EACV,SAAS,GACV,EAAE,uBAAuB,sCA4DzB"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { X } from "lucide-react";
|
|
3
|
+
import { cn } from "../../../elements/index.js";
|
|
4
|
+
import { useDataTableCopy } from "../../copy/data-table-copy.js";
|
|
5
|
+
import { listAppliedFilterValues, removeFilterValue, } from "../../lib/filter-groups.js";
|
|
6
|
+
/**
|
|
7
|
+
* One removable chip per applied filter value ("Type: Sales ×") and a
|
|
8
|
+
* Clear All. Renders nothing while no value is applied. Chips wrap on wide
|
|
9
|
+
* screens and scroll in one row on phones.
|
|
10
|
+
*/
|
|
11
|
+
export function AppliedFilterChips({ groups, onClearAll, className, }) {
|
|
12
|
+
const t = useDataTableCopy();
|
|
13
|
+
const applied = listAppliedFilterValues(groups);
|
|
14
|
+
if (applied.length === 0)
|
|
15
|
+
return null;
|
|
16
|
+
const clearAll = onClearAll ??
|
|
17
|
+
(() => {
|
|
18
|
+
for (const group of groups) {
|
|
19
|
+
if (group.selected.length > 0)
|
|
20
|
+
group.onSelectedChange([]);
|
|
21
|
+
}
|
|
22
|
+
});
|
|
23
|
+
return (_jsxs("div", { role: "group", "aria-label": t("dataTable.filter.appliedList"), "data-slot": "applied-filter-chips", className: cn("flex min-w-0 items-center gap-1.5 [scrollbar-width:none] max-md:overflow-x-auto md:flex-wrap", className), children: [applied.map((value) => {
|
|
24
|
+
const group = groups.find((candidate) => candidate.id === value.groupId);
|
|
25
|
+
const names = {
|
|
26
|
+
filterLabel: value.groupLabel,
|
|
27
|
+
valueLabel: value.valueLabel,
|
|
28
|
+
};
|
|
29
|
+
return (_jsxs("span", { "data-slot": "applied-filter-chip", className: "inline-flex shrink-0 items-center gap-0.5 rounded-full bg-primary/10 py-0.5 pr-0.5 pl-2.5 text-xs font-medium whitespace-nowrap text-link", children: [t("dataTable.filter.appliedValue", names), _jsx("button", { type: "button", "aria-label": t("dataTable.action.removeAppliedFilter", names), className: "inline-flex size-6 items-center justify-center rounded-full outline-none hover:bg-primary/15 focus-visible:ring-2 focus-visible:ring-ring/50 [@media(pointer:coarse)]:size-8", onClick: () => group?.onSelectedChange(removeFilterValue(group, value.value)), children: _jsx(X, { "aria-hidden": "true", className: "size-3.5" }) })] }, `${value.groupId}:${value.value}`));
|
|
30
|
+
}), _jsx("button", { type: "button", className: "shrink-0 rounded-sm px-1 text-xs whitespace-nowrap text-foreground underline underline-offset-2 outline-none hover:text-link focus-visible:ring-2 focus-visible:ring-ring/50", onClick: clearAll, children: t("dataTable.action.clearAll") })] }));
|
|
31
|
+
}
|
|
32
|
+
//# sourceMappingURL=applied-filter-chips.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"applied-filter-chips.js","sourceRoot":"","sources":["../../../../src/data-table/components/data-table/applied-filter-chips.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,cAAc,CAAC;AAEjC,OAAO,EAAE,EAAE,EAAE,MAAM,4BAA4B,CAAC;AAEhD,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AACjE,OAAO,EAEL,uBAAuB,EACvB,iBAAiB,GAClB,MAAM,4BAA4B,CAAC;AAapC;;;;GAIG;AACH,MAAM,UAAU,kBAAkB,CAAC,EACjC,MAAM,EACN,UAAU,EACV,SAAS,GACe;IACxB,MAAM,CAAC,GAAG,gBAAgB,EAAE,CAAC;IAC7B,MAAM,OAAO,GAAG,uBAAuB,CAAC,MAAM,CAAC,CAAC;IAChD,IAAI,OAAO,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,IAAI,CAAC;IAEtC,MAAM,QAAQ,GACZ,UAAU;QACV,CAAC,GAAG,EAAE;YACJ,KAAK,MAAM,KAAK,IAAI,MAAM,EAAE,CAAC;gBAC3B,IAAI,KAAK,CAAC,QAAQ,CAAC,MAAM,GAAG,CAAC;oBAAE,KAAK,CAAC,gBAAgB,CAAC,EAAE,CAAC,CAAC;YAC5D,CAAC;QACH,CAAC,CAAC,CAAC;IAEL,OAAO,CACL,eACE,IAAI,EAAC,OAAO,gBACA,CAAC,CAAC,8BAA8B,CAAC,eACnC,sBAAsB,EAChC,SAAS,EAAE,EAAE,CACX,8FAA8F,EAC9F,SAAS,CACV,aAEA,OAAO,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE;gBACrB,MAAM,KAAK,GAAG,MAAM,CAAC,IAAI,CACvB,CAAC,SAAS,EAAE,EAAE,CAAC,SAAS,CAAC,EAAE,KAAK,KAAK,CAAC,OAAO,CAC9C,CAAC;gBACF,MAAM,KAAK,GAAG;oBACZ,WAAW,EAAE,KAAK,CAAC,UAAU;oBAC7B,UAAU,EAAE,KAAK,CAAC,UAAU;iBAC7B,CAAC;gBACF,OAAO,CACL,6BAEY,qBAAqB,EAC/B,SAAS,EAAC,2IAA2I,aAEpJ,CAAC,CAAC,+BAA+B,EAAE,KAAK,CAAC,EAC1C,iBACE,IAAI,EAAC,QAAQ,gBACD,CAAC,CAAC,sCAAsC,EAAE,KAAK,CAAC,EAC5D,SAAS,EAAC,8KAA8K,EACxL,OAAO,EAAE,GAAG,EAAE,CACZ,KAAK,EAAE,gBAAgB,CAAC,iBAAiB,CAAC,KAAK,EAAE,KAAK,CAAC,KAAK,CAAC,CAAC,YAGhE,KAAC,CAAC,mBAAa,MAAM,EAAC,SAAS,EAAC,UAAU,GAAG,GACtC,KAdJ,GAAG,KAAK,CAAC,OAAO,IAAI,KAAK,CAAC,KAAK,EAAE,CAejC,CACR,CAAC;YACJ,CAAC,CAAC,EACF,iBACE,IAAI,EAAC,QAAQ,EACb,SAAS,EAAC,8KAA8K,EACxL,OAAO,EAAE,QAAQ,YAEhB,CAAC,CAAC,2BAA2B,CAAC,GACxB,IACL,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type * as React from "react";
|
|
2
|
+
type DataTableAdvancedToolbarProps = React.ComponentProps<"div">;
|
|
3
|
+
export declare function DataTableAdvancedToolbar({ children, className, ...props }: DataTableAdvancedToolbarProps): React.JSX.Element;
|
|
4
|
+
export {};
|
|
5
|
+
//# sourceMappingURL=data-table-advanced-toolbar.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"data-table-advanced-toolbar.d.ts","sourceRoot":"","sources":["../../../../src/data-table/components/data-table/data-table-advanced-toolbar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AAIpC,KAAK,6BAA6B,GAAG,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,CAAC;AAEjE,wBAAgB,wBAAwB,CAAC,EACvC,QAAQ,EACR,SAAS,EACT,GAAG,KAAK,EACT,EAAE,6BAA6B,qBAiB/B"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { cn } from "../../../elements/index.js";
|
|
3
|
+
export function DataTableAdvancedToolbar({ children, className, ...props }) {
|
|
4
|
+
return (_jsx("div", { role: "toolbar", "aria-orientation": "horizontal", className: cn("flex w-full flex-col gap-2 p-1 sm:flex-row sm:flex-wrap sm:items-start sm:justify-between", "[&_[data-slot=button]]:h-8 [&_[data-slot=button][data-variant=outline]]:border-input [&_[data-slot=popover-trigger]]:h-8 [&_[data-slot=popover-trigger]]:border-input [&_[data-slot=select-trigger]]:h-8 [&_[data-slot=select-trigger]]:border-input", className), ...props, children: _jsx("div", { className: "flex w-full min-w-0 flex-1 flex-wrap items-center gap-2 sm:w-auto", children: children }) }));
|
|
5
|
+
}
|
|
6
|
+
//# sourceMappingURL=data-table-advanced-toolbar.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"data-table-advanced-toolbar.js","sourceRoot":"","sources":["../../../../src/data-table/components/data-table/data-table-advanced-toolbar.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,EAAE,EAAE,MAAM,4BAA4B,CAAC;AAIhD,MAAM,UAAU,wBAAwB,CAAC,EACvC,QAAQ,EACR,SAAS,EACT,GAAG,KAAK,EACsB;IAC9B,OAAO,CACL,cACE,IAAI,EAAC,SAAS,sBACG,YAAY,EAC7B,SAAS,EAAE,EAAE,CACX,2FAA2F,EAC3F,sPAAsP,EACtP,SAAS,CACV,KACG,KAAK,YAET,cAAK,SAAS,EAAC,mEAAmE,YAC/E,QAAQ,GACL,GACF,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"data-table-body-row.d.ts","sourceRoot":"","sources":["../../../../src/data-table/components/data-table/data-table-body-row.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAc,KAAK,GAAG,EAAE,MAAM,uBAAuB,CAAC;AAC7D,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAe/B,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,EAAE,GAAG,EAAE,EAAE;IAAE,QAAQ,CAAC,GAAG,EAAE,GAAG,CAAC,KAAK,CAAC,CAAA;CAAE,qBA2C5E"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { flexRender } from "@tanstack/react-table";
|
|
3
|
+
import * as React from "react";
|
|
4
|
+
import { TableCell, TableRow } from "../../../display/index.js";
|
|
5
|
+
import { getColumnPinningStyle, readColumnWidth, readPinnedAttribute, } from "../../lib/data-table.js";
|
|
6
|
+
import { readPrimaryRowLink, samePrimaryRowLink, } from "../../lib/read-primary-row-link.js";
|
|
7
|
+
import { DataTableRowHitArea } from "./data-table-row-hit-area.js";
|
|
8
|
+
export function DataTableBodyRow({ row }) {
|
|
9
|
+
const rowRef = React.useRef(null);
|
|
10
|
+
const [rowLink, setRowLink] = React.useState(null);
|
|
11
|
+
const visibleCellKey = row
|
|
12
|
+
.getVisibleCells()
|
|
13
|
+
.map((cell) => cell.id)
|
|
14
|
+
.join("|");
|
|
15
|
+
React.useLayoutEffect(() => {
|
|
16
|
+
const rowElement = rowRef.current;
|
|
17
|
+
setRowLink((current) => {
|
|
18
|
+
const next = rowElement ? readPrimaryRowLink(rowElement) : null;
|
|
19
|
+
return samePrimaryRowLink(current, next) ? current : next;
|
|
20
|
+
});
|
|
21
|
+
}, [row.id, visibleCellKey]);
|
|
22
|
+
return (_jsx(TableRow, { ref: rowRef, "data-state": row.getIsSelected() && "selected", children: row.getVisibleCells().map((cell, cellIndex) => (_jsxs(TableCell, { className: cell.column.columnDef.meta?.cellClassName, "data-pinned": readPinnedAttribute(cell.column), style: {
|
|
23
|
+
...getColumnPinningStyle({ column: cell.column, withBorder: true }),
|
|
24
|
+
width: readColumnWidth(cell.column, cell.getContext().table.getVisibleLeafColumns()),
|
|
25
|
+
}, children: [flexRender(cell.column.columnDef.cell, cell.getContext()), rowLink && cellIndex !== rowLink.cellIndex ? (_jsx(DataTableRowHitArea, { href: rowLink.href })) : null] }, cell.id))) }));
|
|
26
|
+
}
|
|
27
|
+
//# sourceMappingURL=data-table-body-row.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"data-table-body-row.js","sourceRoot":"","sources":["../../../../src/data-table/components/data-table/data-table-body-row.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAY,MAAM,uBAAuB,CAAC;AAC7D,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AAEhE,OAAO,EACL,qBAAqB,EACrB,eAAe,EACf,mBAAmB,GACpB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,kBAAkB,EAClB,kBAAkB,GACnB,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AAEnE,MAAM,UAAU,gBAAgB,CAAQ,EAAE,GAAG,EAAgC;IAC3E,MAAM,MAAM,GAAG,KAAK,CAAC,MAAM,CAAsB,IAAI,CAAC,CAAC;IACvD,MAAM,CAAC,OAAO,EAAE,UAAU,CAAC,GAAG,KAAK,CAAC,QAAQ,CAGlC,IAAI,CAAC,CAAC;IAEhB,MAAM,cAAc,GAAG,GAAG;SACvB,eAAe,EAAE;SACjB,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,EAAE,CAAC;SACtB,IAAI,CAAC,GAAG,CAAC,CAAC;IAEb,KAAK,CAAC,eAAe,CAAC,GA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,IAAI,CAAC,EAAE,CAeF,CACb,CAAC,GACO,CACZ,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { type Table as TanstackTable } from "@tanstack/react-table";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
import { type DataTableRowGroupOf } from "../../lib/row-groups.js";
|
|
4
|
+
/**
|
|
5
|
+
* The phone layout of a DataTable: one card per row. The identifying column
|
|
6
|
+
* heads the card and a few summary fields sit under it.
|
|
7
|
+
*
|
|
8
|
+
* A card whose row has a primary link is one tap target that opens the
|
|
9
|
+
* record, where every field is shown; a chevron says so. A card without one
|
|
10
|
+
* expands in place on tap to reveal every other field, including columns the
|
|
11
|
+
* reader hid on a wide screen, so nothing is ever out of reach. Columns the
|
|
12
|
+
* page switched off for a mode (not reader-hideable) stay off.
|
|
13
|
+
*/
|
|
14
|
+
export declare function DataTableCardList<TData>({ table, rowGroupOf, }: {
|
|
15
|
+
readonly table: TanstackTable<TData>;
|
|
16
|
+
readonly rowGroupOf?: DataTableRowGroupOf<TData>;
|
|
17
|
+
}): React.JSX.Element;
|
|
18
|
+
//# sourceMappingURL=data-table-card-list.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"data-table-card-list.d.ts","sourceRoot":"","sources":["../../../../src/data-table/components/data-table/data-table-card-list.tsx"],"names":[],"mappings":"AAAA,OAAO,EAKL,KAAK,KAAK,IAAI,aAAa,EAC5B,MAAM,uBAAuB,CAAC;AAE/B,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAa/B,OAAO,EACL,KAAK,mBAAmB,EAEzB,MAAM,yBAAyB,CAAC;AAQjC;;;;;;;;;GASG;AACH,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,EACvC,KAAK,EACL,UAAU,GACX,EAAE;IACD,QAAQ,CAAC,KAAK,EAAE,aAAa,CAAC,KAAK,CAAC,CAAC;IACrC,QAAQ,CAAC,UAAU,CAAC,EAAE,mBAAmB,CAAC,KAAK,CAAC,CAAC;CAClD,qBAmBA"}
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { flexRender, } from "@tanstack/react-table";
|
|
3
|
+
import { ChevronDown, ChevronRight } from "lucide-react";
|
|
4
|
+
import * as React from "react";
|
|
5
|
+
import { Collapsible, CollapsibleContent, CollapsibleTrigger, } from "../../../display/index.js";
|
|
6
|
+
import { cn } from "../../../elements/index.js";
|
|
7
|
+
import { useDataTableCopy } from "../../copy/data-table-copy.js";
|
|
8
|
+
import { planCardFields } from "../../lib/card-fields.js";
|
|
9
|
+
import { readColumnLabel } from "../../lib/column-label.js";
|
|
10
|
+
import { readPrimaryCardHref } from "../../lib/read-primary-row-link.js";
|
|
11
|
+
import { startsRowGroup, } from "../../lib/row-groups.js";
|
|
12
|
+
import { DataTableRowHitArea } from "./data-table-row-hit-area.js";
|
|
13
|
+
const CARD_TOGGLE_SLOT = "data-table-card-toggle";
|
|
14
|
+
const INTERACTIVE_ABOVE_CARD_TARGET = "[&_a:not([data-slot=data-table-row-hit-area])]:relative [&_a:not([data-slot=data-table-row-hit-area])]:z-10 [&_button:not([data-slot=data-table-card-toggle])]:relative [&_button:not([data-slot=data-table-card-toggle])]:z-10 [&_[role=checkbox]]:relative [&_[role=checkbox]]:z-10";
|
|
15
|
+
/**
|
|
16
|
+
* The phone layout of a DataTable: one card per row. The identifying column
|
|
17
|
+
* heads the card and a few summary fields sit under it.
|
|
18
|
+
*
|
|
19
|
+
* A card whose row has a primary link is one tap target that opens the
|
|
20
|
+
* record, where every field is shown; a chevron says so. A card without one
|
|
21
|
+
* expands in place on tap to reveal every other field, including columns the
|
|
22
|
+
* reader hid on a wide screen, so nothing is ever out of reach. Columns the
|
|
23
|
+
* page switched off for a mode (not reader-hideable) stay off.
|
|
24
|
+
*/
|
|
25
|
+
export function DataTableCardList({ table, rowGroupOf, }) {
|
|
26
|
+
return (_jsx("ul", { "data-slot": "data-table-cards", className: "flex flex-col gap-2", children: table.getRowModel().rows.map((row, index, rows) => (_jsxs(React.Fragment, { children: [rowGroupOf !== undefined &&
|
|
27
|
+
startsRowGroup(rows, index, rowGroupOf) ? (_jsx("li", { "data-slot": "data-table-card-group", className: "px-1 pt-2 font-semibold text-muted-foreground text-xs", children: rowGroupOf(row.original).label })) : null, _jsx(DataTableCard, { row: row })] }, row.id))) }));
|
|
28
|
+
}
|
|
29
|
+
function DataTableCard({ row }) {
|
|
30
|
+
const t = useDataTableCopy();
|
|
31
|
+
const [expanded, setExpanded] = React.useState(false);
|
|
32
|
+
const { cardRef, href, cells } = useCardCells(row);
|
|
33
|
+
const expandable = href === null && cells.details.length > 0;
|
|
34
|
+
return (_jsx("li", { ref: cardRef, "data-slot": "data-table-card", "data-state": row.getIsSelected() ? "selected" : undefined, className: cn("relative rounded-md border bg-card p-3 text-sm data-[state=selected]:bg-table-row-selected", INTERACTIVE_ABOVE_CARD_TARGET), children: _jsxs(Collapsible, { open: expandable && expanded, onOpenChange: setExpanded, className: "flex flex-col gap-2", children: [href ? _jsx(DataTableRowHitArea, { href: href }) : null, expandable ? (_jsx(CollapsibleTrigger, { asChild: true, children: _jsx("button", { type: "button", "data-slot": CARD_TOGGLE_SLOT, "aria-label": t("dataTable.action.details"), className: "absolute inset-0 cursor-pointer rounded-md outline-none focus-visible:ring-2 focus-visible:ring-ring" }) })) : null, _jsx(CardHeading, { cells: cells, opensRecord: href !== null, expandable: expandable, expanded: expanded }), cells.summary.length > 0 ? (_jsx(CardFieldList, { slot: "data-table-card-summary", cells: cells.summary })) : null, expandable ? (_jsx(CollapsibleContent, { children: _jsx(CardFieldList, { slot: "data-table-card-details", cells: cells.details }) })) : null, cells.actions ? _jsx(CardActions, { cell: cells.actions }) : null] }) }));
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* Plans where each of a row's cells goes on its card, and reads the record
|
|
38
|
+
* link the rendered card exposes (a card with a link opens the record instead
|
|
39
|
+
* of expanding).
|
|
40
|
+
*/
|
|
41
|
+
function useCardCells(row) {
|
|
42
|
+
const cardRef = React.useRef(null);
|
|
43
|
+
const [href, setHref] = React.useState(null);
|
|
44
|
+
const cells = readCardCells(row);
|
|
45
|
+
const cellKey = cells.map((cell) => cell.id).join("|");
|
|
46
|
+
React.useLayoutEffect(() => {
|
|
47
|
+
const card = cardRef.current;
|
|
48
|
+
const next = card ? readPrimaryCardHref(card) : null;
|
|
49
|
+
setHref((current) => (current === next ? current : next));
|
|
50
|
+
}, [row.id, cellKey]);
|
|
51
|
+
return { cardRef, href, cells: placeCardCells(cells) };
|
|
52
|
+
}
|
|
53
|
+
function placeCardCells(cells) {
|
|
54
|
+
const cellById = new Map(cells.map((cell) => [cell.column.id, cell]));
|
|
55
|
+
const plan = planCardFields(cells.map((cell) => toCardColumn(cell.column)));
|
|
56
|
+
const pick = (id) => id === undefined ? undefined : cellById.get(id);
|
|
57
|
+
return {
|
|
58
|
+
selection: pick(plan.selectionId),
|
|
59
|
+
heading: pick(plan.headingId),
|
|
60
|
+
actions: pick(plan.actionsId),
|
|
61
|
+
summary: plan.summaryIds.flatMap((id) => pick(id) ?? []),
|
|
62
|
+
details: plan.detailIds.flatMap((id) => pick(id) ?? []),
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
function CardHeading({ cells, opensRecord, expandable, expanded, }) {
|
|
66
|
+
return (_jsxs("div", { className: "flex min-w-0 items-start gap-2", children: [cells.selection ? _jsx(CellContent, { cell: cells.selection }) : null, cells.heading ? (_jsx("div", { "data-slot": "data-table-card-heading", className: "min-w-0 flex-1 font-medium break-words", children: _jsx(CellContent, { cell: cells.heading }) })) : null, _jsx(CardChevron, { opensRecord: opensRecord, expandable: expandable, expanded: expanded })] }));
|
|
67
|
+
}
|
|
68
|
+
function CardActions({ cell }) {
|
|
69
|
+
return (_jsx("div", { "data-slot": "data-table-card-actions", className: "flex flex-wrap items-center justify-end gap-2", children: _jsx(CellContent, { cell: cell }) }));
|
|
70
|
+
}
|
|
71
|
+
function CardChevron({ opensRecord, expandable, expanded, }) {
|
|
72
|
+
if (opensRecord) {
|
|
73
|
+
return (_jsx(ChevronRight, { "aria-hidden": "true", "data-slot": "data-table-card-chevron", className: "ml-auto size-4 shrink-0 text-muted-foreground" }));
|
|
74
|
+
}
|
|
75
|
+
if (!expandable)
|
|
76
|
+
return null;
|
|
77
|
+
return (_jsx(ChevronDown, { "aria-hidden": "true", "data-slot": "data-table-card-chevron", className: cn("ml-auto size-4 shrink-0 text-muted-foreground transition-transform motion-reduce:transition-none", expanded && "rotate-180") }));
|
|
78
|
+
}
|
|
79
|
+
function readCardCells(row) {
|
|
80
|
+
return row
|
|
81
|
+
.getAllCells()
|
|
82
|
+
.filter((cell) => cell.column.getIsVisible() || cell.column.getCanHide());
|
|
83
|
+
}
|
|
84
|
+
function CardFieldList({ cells, slot, }) {
|
|
85
|
+
return (_jsx("dl", { "data-slot": slot, className: "grid grid-cols-[minmax(6rem,auto)_minmax(0,1fr)] gap-x-3 gap-y-1.5", children: cells.map((cell) => (_jsxs("div", { className: "contents", children: [_jsx("dt", { className: "text-muted-foreground", children: readColumnLabel({
|
|
86
|
+
id: cell.column.id,
|
|
87
|
+
metaLabel: cell.column.columnDef.meta?.label,
|
|
88
|
+
header: cell.column.columnDef.header,
|
|
89
|
+
}) }), _jsx("dd", { className: "min-w-0 break-words", children: _jsx(CellContent, { cell: cell }) })] }, cell.id))) }));
|
|
90
|
+
}
|
|
91
|
+
function CellContent({ cell }) {
|
|
92
|
+
return _jsx(_Fragment, { children: flexRender(cell.column.columnDef.cell, cell.getContext()) });
|
|
93
|
+
}
|
|
94
|
+
/** A column as the card layout reads it; unset meta flags stay unset. */
|
|
95
|
+
function toCardColumn(column) {
|
|
96
|
+
const meta = column.columnDef.meta;
|
|
97
|
+
return {
|
|
98
|
+
id: column.id,
|
|
99
|
+
readerHidden: !column.getIsVisible(),
|
|
100
|
+
...(meta?.cardHeading === undefined
|
|
101
|
+
? {}
|
|
102
|
+
: { cardHeading: meta.cardHeading }),
|
|
103
|
+
...(meta?.cardSummary === undefined
|
|
104
|
+
? {}
|
|
105
|
+
: { cardSummary: meta.cardSummary }),
|
|
106
|
+
};
|
|
107
|
+
}
|
|
108
|
+
//# sourceMappingURL=data-table-card-list.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"data-table-card-list.js","sourceRoot":"","sources":["../../../../src/data-table/components/data-table/data-table-card-list.tsx"],"names":[],"mappings":";AAAA,OAAO,EAGL,UAAU,GAGX,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AACzD,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EACL,WAAW,EACX,kBAAkB,EAClB,kBAAkB,GACnB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,EAAE,EAAE,MAAM,4BAA4B,CAAC;AAEhD,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AACjE,OAAO,EAAE,cAAc,EAAmB,MAAM,0BAA0B,CAAC;AAC3E,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAC5D,OAAO,EAAE,mBAAmB,EAAE,MAAM,oCAAoC,CAAC;AACzE,OAAO,EAEL,cAAc,GACf,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AAEnE,MAAM,gBAAgB,GAAG,wBAAwB,CAAC;AAElD,MAAM,6BAA6B,GACjC,uRAAuR,CAAC;AAE1R;;;;;;;;;GASG;AACH,MAAM,UAAU,iBAAiB,CAAQ,EACvC,KAAK,EACL,UAAU,GAIX;IACC,OAAO,CACL,0BAAc,kBAAkB,EAAC,SAAS,EAAC,qBAAqB,YAC7D,KAAK,CAAC,WAAW,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,KAAK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AAE,EAAE,MAAM,CAAC,EAAE;QACb,YAAY,EAAE,CAAC,MAAM,CAAC,YAAY,EAAE;QACpC,GAAG,CAAC,IAAI,EAAE,WAAW,KAAK,SAAS;YACjC,CAAC,CAAC,EAAE;YACJ,CAAC,CAAC,EAAE,WAAW,EAAE,IAAI,CAAC,WAAW,EAAE,CAAC;QACtC,GAAG,CAAC,IAAI,EAAE,WAAW,KAAK,SAAS;YACjC,CAAC,CAAC,EAAE;YACJ,CAAC,CAAC,EAAE,WAAW,EAAE,IAAI,CAAC,WAAW,EAAE,CAAC;KACvC,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { Column } from "@tanstack/react-table";
|
|
2
|
+
type DataTableColumnHeaderProps<TData, TValue> = React.ComponentProps<"button"> & {
|
|
3
|
+
column: Column<TData, TValue>;
|
|
4
|
+
label: string;
|
|
5
|
+
};
|
|
6
|
+
export declare function DataTableColumnHeader<TData, TValue>({ column, label, className, onClick, ...props }: DataTableColumnHeaderProps<TData, TValue>): import("react").JSX.Element;
|
|
7
|
+
export {};
|
|
8
|
+
//# sourceMappingURL=data-table-column-header.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"data-table-column-header.d.ts","sourceRoot":"","sources":["../../../../src/data-table/components/data-table/data-table-column-header.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAKpD,KAAK,0BAA0B,CAAC,KAAK,EAAE,MAAM,IAC3C,KAAK,CAAC,cAAc,CAAC,QAAQ,CAAC,GAAG;IAC/B,MAAM,EAAE,MAAM,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC;IAC9B,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEJ,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,MAAM,EAAE,EACnD,MAAM,EACN,KAAK,EACL,SAAS,EACT,OAAO,EACP,GAAG,KAAK,EACT,EAAE,0BAA0B,CAAC,KAAK,EAAE,MAAM,CAAC,+BAgC3C"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { ChevronDown, ChevronsUpDown, ChevronUp } from "lucide-react";
|
|
3
|
+
import { cn } from "../../../elements/index.js";
|
|
4
|
+
export function DataTableColumnHeader({ column, label, className, onClick, ...props }) {
|
|
5
|
+
if (!column.getCanSort()) {
|
|
6
|
+
return _jsx("div", { className: cn(className), children: label });
|
|
7
|
+
}
|
|
8
|
+
const sortState = column.getIsSorted();
|
|
9
|
+
return (_jsxs("button", { ...props, type: "button", className: cn("-ml-1.5 flex h-8 items-center gap-1.5 rounded-md px-2 py-1.5 hover:bg-accent focus:outline-none focus:ring-1 focus:ring-ring [&_svg]:size-4 [&_svg]:shrink-0", sortState === false
|
|
10
|
+
? "[&_svg]:text-muted-foreground"
|
|
11
|
+
: "text-primary [&_svg]:text-primary", className), onClick: (event) => {
|
|
12
|
+
onClick?.(event);
|
|
13
|
+
if (!event.defaultPrevented)
|
|
14
|
+
cycleColumnSort(column);
|
|
15
|
+
}, children: [label, sortState === "desc" ? (_jsx(ChevronDown, { "aria-hidden": true })) : sortState === "asc" ? (_jsx(ChevronUp, { "aria-hidden": true })) : (_jsx(ChevronsUpDown, { "aria-hidden": true }))] }));
|
|
16
|
+
}
|
|
17
|
+
function cycleColumnSort(column) {
|
|
18
|
+
const current = column.getIsSorted();
|
|
19
|
+
if (current === false) {
|
|
20
|
+
column.toggleSorting(false);
|
|
21
|
+
return;
|
|
22
|
+
}
|
|
23
|
+
if (current === "asc") {
|
|
24
|
+
column.toggleSorting(true);
|
|
25
|
+
return;
|
|
26
|
+
}
|
|
27
|
+
column.clearSorting();
|
|
28
|
+
}
|
|
29
|
+
//# sourceMappingURL=data-table-column-header.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"data-table-column-header.js","sourceRoot":"","sources":["../../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AAK,CAAC,CAAC;QAC5B,OAAO;IACT,CAAC;IACD,IAAI,OAAO,KAAK,KAAK,EAAE,CAAC;QACtB,MAAM,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC;QAC3B,OAAO;IACT,CAAC;IACD,MAAM,CAAC,YAAY,EAAE,CAAC;AACxB,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { Table } from "@tanstack/react-table";
|
|
2
|
+
/**
|
|
3
|
+
* The toolbar's Columns menu: one checkbox per column the reader may hide,
|
|
4
|
+
* plus Show All. Nothing is hidden until the reader unticks it here; the
|
|
5
|
+
* identifying, selection, and actions columns are never offered.
|
|
6
|
+
*/
|
|
7
|
+
export declare function DataTableColumnsMenu<TData>({ table, }: {
|
|
8
|
+
readonly table: Table<TData>;
|
|
9
|
+
}): import("react").JSX.Element | null;
|
|
10
|
+
//# sourceMappingURL=data-table-columns-menu.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"data-table-columns-menu.d.ts","sourceRoot":"","sources":["../../../../src/data-table/components/data-table/data-table-columns-menu.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAU,KAAK,EAAE,MAAM,uBAAuB,CAAC;AAqB3D;;;;GAIG;AACH,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,EAC1C,KAAK,GACN,EAAE;IACD,QAAQ,CAAC,KAAK,EAAE,KAAK,CAAC,KAAK,CAAC,CAAC;CAC9B,sCA0CA"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Columns3 } from "lucide-react";
|
|
3
|
+
import { Button } from "../../../elements/index.js";
|
|
4
|
+
import { DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuItem, DropdownMenuLabel, DropdownMenuSeparator, DropdownMenuTrigger, } from "../../../overlays/index.js";
|
|
5
|
+
import { useDataTableCopy } from "../../copy/data-table-copy.js";
|
|
6
|
+
import { readColumnLabel } from "../../lib/column-label.js";
|
|
7
|
+
import { readReaderHideableColumns, showAllColumns, } from "../../lib/reader-hidden-columns.js";
|
|
8
|
+
/**
|
|
9
|
+
* The toolbar's Columns menu: one checkbox per column the reader may hide,
|
|
10
|
+
* plus Show All. Nothing is hidden until the reader unticks it here; the
|
|
11
|
+
* identifying, selection, and actions columns are never offered.
|
|
12
|
+
*/
|
|
13
|
+
export function DataTableColumnsMenu({ table, }) {
|
|
14
|
+
const t = useDataTableCopy();
|
|
15
|
+
const columns = readReaderHideableColumns(table);
|
|
16
|
+
if (columns.length === 0)
|
|
17
|
+
return null;
|
|
18
|
+
const anyHidden = columns.some((column) => !column.getIsVisible());
|
|
19
|
+
return (_jsxs(DropdownMenu, { children: [_jsx(DropdownMenuTrigger, { asChild: true, children: _jsxs(Button, { type: "button", variant: "outline", size: "sm", children: [_jsx(Columns3, { "aria-hidden": "true" }), t("dataTable.action.columns")] }) }), _jsxs(DropdownMenuContent, { align: "end", className: "w-56", children: [_jsx(DropdownMenuLabel, { children: t("dataTable.columns.heading") }), columns.map((column) => (_jsx(DropdownMenuCheckboxItem, { checked: column.getIsVisible(), onCheckedChange: (checked) => {
|
|
20
|
+
column.toggleVisibility(checked);
|
|
21
|
+
}, onSelect: (event) => {
|
|
22
|
+
event.preventDefault();
|
|
23
|
+
}, children: labelOf(column) }, column.id))), _jsx(DropdownMenuSeparator, {}), _jsx(DropdownMenuItem, { disabled: !anyHidden, onSelect: () => {
|
|
24
|
+
showAllColumns(table);
|
|
25
|
+
}, children: t("dataTable.action.showAllColumns") })] })] }));
|
|
26
|
+
}
|
|
27
|
+
function labelOf(column) {
|
|
28
|
+
return readColumnLabel({
|
|
29
|
+
id: column.id,
|
|
30
|
+
metaLabel: column.columnDef.meta?.label,
|
|
31
|
+
header: column.columnDef.header,
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
//# sourceMappingURL=data-table-columns-menu.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"data-table-columns-menu.js","sourceRoot":"","sources":["../../../../src/data-table/components/data-table/data-table-columns-menu.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAExC,OAAO,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAC;AACpD,OAAO,EACL,YAAY,EACZ,wBAAwB,EACxB,mBAAmB,EACnB,gBAAgB,EAChB,iBAAiB,EACjB,qBAAqB,EACrB,mBAAmB,GACpB,MAAM,4BAA4B,CAAC;AAEpC,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AACjE,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAC5D,OAAO,EACL,yBAAyB,EACzB,cAAc,GACf,MAAM,oCAAoC,CAAC;AAE5C;;;;GAIG;AACH,MAAM,UAAU,oBAAoB,CAAQ,EAC1C,KAAK,GAGN;IACC,MAAM,CAAC,GAAG,gBAAgB,EAAE,CAAC;IAC7B,MAAM,OAAO,GAAG,yBAAyB,CAAC,KAAK,CAAC,CAAC;IACjD,IAAI,OAAO,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,IAAI,CAAC;IACtC,MAAM,SAAS,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,MAAM,CAAC,YAAY,EAAE,CAAC,CAAC;IAEnE,OAAO,CACL,MAAC,YAAY,eACX,KAAC,mBAAmB,IAAC,OAAO,kBAC1B,MAAC,MAAM,IAAC,IAAI,EAAC,QAAQ,EAAC,OAAO,EAAC,SAAS,EAAC,IAAI,EAAC,IAAI,aAC/C,KAAC,QAAQ,mBAAa,MAAM,GAAG,EAC9B,CAAC,CAAC,0BAA0B,CAAC,IACvB,GACW,EACtB,MAAC,mBAAmB,IAAC,KAAK,EAAC,KAAK,EAAC,SAAS,EAAC,MAAM,aAC/C,KAAC,iBAAiB,cAAE,CAAC,CAAC,2BAA2B,CAAC,GAAqB,EACtE,OAAO,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CACvB,KAAC,wBAAwB,IAEvB,OAAO,EAAE,MAAM,CAAC,YAAY,EAAE,EAC9B,eAAe,EAAE,CAAC,OAAO,EAAE,EAAE;4BAC3B,MAAM,CAAC,gBAAgB,CAAC,OAAO,CAAC,CAAC;wBACnC,CAAC,EACD,QAAQ,EAAE,CAAC,KAAK,EAAE,EAAE;4BAClB,KAAK,CAAC,cAAc,EAAE,CAAC;wBACzB,CAAC,YAEA,OAAO,CAAC,MAAM,CAAC,IATX,MAAM,CAAC,EAAE,CAUW,CAC5B,CAAC,EACF,KAAC,qBAAqB,KAAG,EACzB,KAAC,gBAAgB,IACf,QAAQ,EAAE,CAAC,SAAS,EACpB,QAAQ,EAAE,GAAG,EAAE;4BACb,cAAc,CAAC,KAAK,CAAC,CAAC;wBACxB,CAAC,YAEA,CAAC,CAAC,iCAAiC,CAAC,GACpB,IACC,IACT,CAChB,CAAC;AACJ,CAAC;AAED,SAAS,OAAO,CAAQ,MAAqB;IAC3C,OAAO,eAAe,CAAC;QACrB,EAAE,EAAE,MAAM,CAAC,EAAE;QACb,SAAS,EAAE,MAAM,CAAC,SAAS,CAAC,IAAI,EAAE,KAAK;QACvC,MAAM,EAAE,MAAM,CAAC,SAAS,CAAC,MAAM;KAChC,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { Column } from "@tanstack/react-table";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
type DataTableDateFilterProps<TData> = {
|
|
4
|
+
column: Column<TData>;
|
|
5
|
+
title?: string;
|
|
6
|
+
multiple?: boolean;
|
|
7
|
+
};
|
|
8
|
+
export declare function DataTableDateFilter<TData>({ column, title, multiple, }: DataTableDateFilterProps<TData>): React.JSX.Element;
|
|
9
|
+
export {};
|
|
10
|
+
//# sourceMappingURL=data-table-date-filter.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"data-table-date-filter.d.ts","sourceRoot":"","sources":["../../../../src/data-table/components/data-table/data-table-date-filter.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAEpD,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAgE/B,KAAK,wBAAwB,CAAC,KAAK,IAAI;IACrC,MAAM,EAAE,MAAM,CAAC,KAAK,CAAC,CAAC;IACtB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;AAEF,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,EACzC,MAAM,EACN,KAAK,EACL,QAAQ,GACT,EAAE,wBAAwB,CAAC,KAAK,CAAC,qBAoLjC"}
|