@pibit.ai/cure-design-system 0.4.0 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/applications/loading-indicator/index.d.ts +2 -0
- package/dist/applications/loading-indicator/index.d.ts.map +1 -0
- package/dist/applications/loading-indicator/loading-indicator.d.ts +1 -2
- package/dist/applications/loading-indicator/loading-indicator.d.ts.map +1 -1
- package/dist/assets/icons/filtered-view.svg.js +4 -0
- package/dist/index.d.ts +10 -5
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +415 -134
- package/dist/patterns/table/TableWrapper.d.ts +1 -1
- package/dist/patterns/table/TableWrapper.d.ts.map +1 -1
- package/dist/patterns/table/TableWrapper.js +1003 -565
- package/dist/patterns/table/TableZoomControl.d.ts +12 -0
- package/dist/patterns/table/TableZoomControl.d.ts.map +1 -0
- package/dist/patterns/table/TableZoomControl.js +136 -0
- package/dist/patterns/table/cellRangeSelection.d.ts +83 -0
- package/dist/patterns/table/cellRangeSelection.d.ts.map +1 -0
- package/dist/patterns/table/cellRangeSelection.js +162 -0
- package/dist/patterns/table/cellRangeSelection.test.d.ts +2 -0
- package/dist/patterns/table/cellRangeSelection.test.d.ts.map +1 -0
- package/dist/patterns/table/index.d.ts +13 -6
- package/dist/patterns/table/index.d.ts.map +1 -1
- package/dist/patterns/table/integrateTableUndoRedo.d.ts +41 -0
- package/dist/patterns/table/integrateTableUndoRedo.d.ts.map +1 -0
- package/dist/patterns/table/integrateTableUndoRedo.js +63 -0
- package/dist/patterns/table/rowReorderDrag.d.ts +70 -0
- package/dist/patterns/table/rowReorderDrag.d.ts.map +1 -0
- package/dist/patterns/table/rowReorderDrag.js +151 -0
- package/dist/patterns/table/rowReorderDrag.test.d.ts +2 -0
- package/dist/patterns/table/rowReorderDrag.test.d.ts.map +1 -0
- package/dist/patterns/table/scrollCellIntoView.d.ts +48 -0
- package/dist/patterns/table/scrollCellIntoView.d.ts.map +1 -0
- package/dist/patterns/table/scrollCellIntoView.js +122 -0
- package/dist/patterns/table/storyHelpers/mockTableViewsApi.d.ts +25 -0
- package/dist/patterns/table/storyHelpers/mockTableViewsApi.d.ts.map +1 -0
- package/dist/patterns/table/storyHelpers/useMockTableState.d.ts +3 -1
- package/dist/patterns/table/storyHelpers/useMockTableState.d.ts.map +1 -1
- package/dist/patterns/table/table.d.ts +2 -1
- package/dist/patterns/table/table.d.ts.map +1 -1
- package/dist/patterns/table/table.js +203 -177
- package/dist/patterns/table/tableUndoRedo.d.ts +38 -0
- package/dist/patterns/table/tableUndoRedo.d.ts.map +1 -0
- package/dist/patterns/table/tableUndoRedo.js +150 -0
- package/dist/patterns/table/tableZoomLayout.d.ts +87 -0
- package/dist/patterns/table/tableZoomLayout.d.ts.map +1 -0
- package/dist/patterns/table/tableZoomLayout.js +55 -0
- package/dist/patterns/table/tableZoomLayout.test.d.ts +2 -0
- package/dist/patterns/table/tableZoomLayout.test.d.ts.map +1 -0
- package/dist/patterns/table/toolbar/AlignDropdown.d.ts.map +1 -1
- package/dist/patterns/table/toolbar/AlignDropdown.js +5 -11
- package/dist/patterns/table/toolbar/ColumnHeaderMenu.d.ts +4 -0
- package/dist/patterns/table/toolbar/ColumnHeaderMenu.d.ts.map +1 -1
- package/dist/patterns/table/toolbar/ColumnHeaderMenu.js +81 -77
- package/dist/patterns/table/toolbar/GroupByDropdown.d.ts.map +1 -1
- package/dist/patterns/table/toolbar/GroupByDropdown.js +48 -43
- package/dist/patterns/table/toolbar/HideFieldsDropdown.d.ts.map +1 -1
- package/dist/patterns/table/toolbar/HideFieldsDropdown.js +75 -32
- package/dist/patterns/table/toolbar/RowActionsMenu.d.ts +17 -1
- package/dist/patterns/table/toolbar/RowActionsMenu.d.ts.map +1 -1
- package/dist/patterns/table/toolbar/RowActionsMenu.js +69 -51
- package/dist/patterns/table/toolbar/SummaryFooter.d.ts +10 -3
- package/dist/patterns/table/toolbar/SummaryFooter.d.ts.map +1 -1
- package/dist/patterns/table/toolbar/SummaryFooter.js +61 -71
- package/dist/patterns/table/toolbar/TableToolbar.d.ts +22 -1
- package/dist/patterns/table/toolbar/TableToolbar.d.ts.map +1 -1
- package/dist/patterns/table/toolbar/TableToolbar.js +234 -139
- package/dist/patterns/table/toolbar/TableViewDirtyActions.d.ts +7 -0
- package/dist/patterns/table/toolbar/TableViewDirtyActions.d.ts.map +1 -0
- package/dist/patterns/table/toolbar/TableViewDirtyActions.js +39 -0
- package/dist/patterns/table/toolbar/TableViewsDropdown.d.ts +8 -0
- package/dist/patterns/table/toolbar/TableViewsDropdown.d.ts.map +1 -0
- package/dist/patterns/table/toolbar/TableViewsDropdown.js +204 -0
- package/dist/patterns/table/toolbar/index.d.ts +6 -2
- package/dist/patterns/table/toolbar/index.d.ts.map +1 -1
- package/dist/patterns/table/toolbar/tableToolbarHelpers.d.ts +10 -1
- package/dist/patterns/table/toolbar/tableToolbarHelpers.d.ts.map +1 -1
- package/dist/patterns/table/toolbar/tableToolbarHelpers.js +116 -116
- package/dist/patterns/table/toolbar/tableViewSnapshot.d.ts +18 -0
- package/dist/patterns/table/toolbar/tableViewSnapshot.d.ts.map +1 -0
- package/dist/patterns/table/toolbar/tableViewSnapshot.js +168 -0
- package/dist/patterns/table/toolbar/tableViewSnapshot.test.d.ts +2 -0
- package/dist/patterns/table/toolbar/tableViewSnapshot.test.d.ts.map +1 -0
- package/dist/patterns/table/toolbar/tableViewTypes.d.ts +75 -0
- package/dist/patterns/table/toolbar/tableViewTypes.d.ts.map +1 -0
- package/dist/patterns/table/toolbar/tableViewTypes.js +4 -0
- package/dist/patterns/table/toolbar/useUndoRedoShortcuts.d.ts +9 -0
- package/dist/patterns/table/toolbar/useUndoRedoShortcuts.d.ts.map +1 -0
- package/dist/patterns/table/toolbar/useUndoRedoShortcuts.js +21 -0
- package/dist/patterns/table/types.d.ts +98 -1
- package/dist/patterns/table/types.d.ts.map +1 -1
- package/dist/patterns/table/useFitTableToViewport.d.ts +15 -0
- package/dist/patterns/table/useFitTableToViewport.d.ts.map +1 -0
- package/dist/patterns/table/useFitTableToViewport.js +47 -0
- package/dist/patterns/table/useGridKeyboardNavigation.d.ts +14 -3
- package/dist/patterns/table/useGridKeyboardNavigation.d.ts.map +1 -1
- package/dist/patterns/table/useGridKeyboardNavigation.js +47 -46
- package/dist/patterns/table/useTableUndoRedo.d.ts +50 -0
- package/dist/patterns/table/useTableUndoRedo.d.ts.map +1 -0
- package/dist/patterns/table/useTableUndoRedo.js +258 -0
- package/dist/patterns/table/useTableZoomState.d.ts +20 -0
- package/dist/patterns/table/useTableZoomState.d.ts.map +1 -0
- package/dist/patterns/table/useTableZoomState.js +30 -0
- package/dist/patterns/table-component/TableComponent.d.ts +6 -0
- package/dist/patterns/table-component/TableComponent.d.ts.map +1 -0
- package/dist/patterns/table-component/TableComponent.js +810 -0
- package/dist/patterns/table-component/buildTableColumns.d.ts +10 -0
- package/dist/patterns/table-component/buildTableColumns.d.ts.map +1 -0
- package/dist/patterns/table-component/buildTableColumns.js +65 -0
- package/dist/patterns/table-component/buildTableColumns.test.d.ts +2 -0
- package/dist/patterns/table-component/buildTableColumns.test.d.ts.map +1 -0
- package/dist/patterns/table-component/index.d.ts +5 -0
- package/dist/patterns/table-component/index.d.ts.map +1 -0
- package/dist/patterns/table-component/rowMetrics.d.ts +11 -0
- package/dist/patterns/table-component/rowMetrics.d.ts.map +1 -0
- package/dist/patterns/table-component/rowMetrics.js +15 -0
- package/dist/patterns/table-component/tableFeatures.d.ts +12 -0
- package/dist/patterns/table-component/tableFeatures.d.ts.map +1 -0
- package/dist/patterns/table-component/tableFeatures.js +14 -0
- package/dist/patterns/table-component/types.d.ts +207 -0
- package/dist/patterns/table-component/types.d.ts.map +1 -0
- package/dist/patterns/table-component/useCellRangeSelection.d.ts +50 -0
- package/dist/patterns/table-component/useCellRangeSelection.d.ts.map +1 -0
- package/dist/patterns/table-component/useCellRangeSelection.js +218 -0
- package/dist/patterns/table-component/useRowReorderDrag.d.ts +17 -0
- package/dist/patterns/table-component/useRowReorderDrag.d.ts.map +1 -0
- package/dist/patterns/table-component/useRowReorderDrag.js +109 -0
- package/dist/primitives/badge/badge.js +5 -5
- package/dist/primitives/checkbox/checkbox.d.ts.map +1 -1
- package/dist/primitives/checkbox/checkbox.js +16 -16
- package/dist/primitives/custom-icon/custom-icon.d.ts +5 -0
- package/dist/primitives/custom-icon/custom-icon.d.ts.map +1 -1
- package/dist/primitives/custom-icon/custom-icon.js +14 -16
- package/dist/primitives/custom-icon/icons/activity-icon-16x16.d.ts +6 -0
- package/dist/primitives/custom-icon/icons/activity-icon-16x16.d.ts.map +1 -0
- package/dist/primitives/custom-icon/icons/activity-icon-16x16.js +32 -0
- package/dist/primitives/custom-icon/icons/activity-icon.d.ts +6 -0
- package/dist/primitives/custom-icon/icons/activity-icon.d.ts.map +1 -0
- package/dist/primitives/custom-icon/icons/activity-icon.js +32 -0
- package/dist/primitives/custom-icon/icons/activity-solid.d.ts +1 -1
- package/dist/primitives/custom-icon/icons/activity-solid.d.ts.map +1 -1
- package/dist/primitives/custom-icon/icons/activity-solid.js +24 -33
- package/dist/primitives/custom-icon/icons/activity.d.ts +6 -0
- package/dist/primitives/custom-icon/icons/activity.d.ts.map +1 -0
- package/dist/primitives/custom-icon/icons/activity.js +32 -0
- package/dist/primitives/custom-icon/icons/ai-extraction.d.ts +1 -1
- package/dist/primitives/custom-icon/icons/ai-extraction.d.ts.map +1 -1
- package/dist/primitives/custom-icon/icons/ai-extraction.js +24 -33
- package/dist/primitives/custom-icon/icons/aiservice.d.ts +6 -0
- package/dist/primitives/custom-icon/icons/aiservice.d.ts.map +1 -0
- package/dist/primitives/custom-icon/icons/aiservice.js +38 -0
- package/dist/primitives/custom-icon/icons/all-nodes.d.ts +6 -0
- package/dist/primitives/custom-icon/icons/all-nodes.d.ts.map +1 -0
- package/dist/primitives/custom-icon/icons/all-nodes.js +35 -0
- package/dist/primitives/custom-icon/icons/api-solid.d.ts +6 -0
- package/dist/primitives/custom-icon/icons/api-solid.d.ts.map +1 -0
- package/dist/primitives/custom-icon/icons/api-solid.js +32 -0
- package/dist/primitives/custom-icon/icons/api.d.ts +6 -0
- package/dist/primitives/custom-icon/icons/api.d.ts.map +1 -0
- package/dist/primitives/custom-icon/icons/api.js +32 -0
- package/dist/primitives/custom-icon/icons/arrow-up-2.d.ts +6 -0
- package/dist/primitives/custom-icon/icons/arrow-up-2.d.ts.map +1 -0
- package/dist/primitives/custom-icon/icons/arrow-up-2.js +32 -0
- package/dist/primitives/custom-icon/icons/azure.d.ts +6 -0
- package/dist/primitives/custom-icon/icons/azure.d.ts.map +1 -0
- package/dist/primitives/custom-icon/icons/azure.js +32 -0
- package/dist/primitives/custom-icon/icons/beaker-03.d.ts +6 -0
- package/dist/primitives/custom-icon/icons/beaker-03.d.ts.map +1 -0
- package/dist/primitives/custom-icon/icons/beaker-03.js +32 -0
- package/dist/primitives/custom-icon/icons/bell-with-dots.d.ts +6 -0
- package/dist/primitives/custom-icon/icons/bell-with-dots.d.ts.map +1 -0
- package/dist/primitives/custom-icon/icons/bell-with-dots.js +33 -0
- package/dist/primitives/custom-icon/icons/bell-without-dots.d.ts +6 -0
- package/dist/primitives/custom-icon/icons/bell-without-dots.d.ts.map +1 -0
- package/dist/primitives/custom-icon/icons/bell-without-dots.js +32 -0
- package/dist/primitives/custom-icon/icons/bill-02-18x23.d.ts +6 -0
- package/dist/primitives/custom-icon/icons/bill-02-18x23.d.ts.map +1 -0
- package/dist/primitives/custom-icon/icons/bill-02-18x23.js +32 -0
- package/dist/primitives/custom-icon/icons/bill-02.d.ts +6 -0
- package/dist/primitives/custom-icon/icons/bill-02.d.ts.map +1 -0
- package/dist/primitives/custom-icon/icons/bill-02.js +32 -0
- package/dist/primitives/custom-icon/icons/branch.d.ts +1 -1
- package/dist/primitives/custom-icon/icons/branch.d.ts.map +1 -1
- package/dist/primitives/custom-icon/icons/branch.js +16 -15
- package/dist/primitives/custom-icon/icons/calendar.d.ts +1 -1
- package/dist/primitives/custom-icon/icons/calendar.d.ts.map +1 -1
- package/dist/primitives/custom-icon/icons/calendar.js +24 -33
- package/dist/primitives/custom-icon/icons/callable.d.ts +1 -1
- package/dist/primitives/custom-icon/icons/callable.d.ts.map +1 -1
- package/dist/primitives/custom-icon/icons/callable.js +23 -22
- package/dist/primitives/custom-icon/icons/camico.d.ts +6 -0
- package/dist/primitives/custom-icon/icons/camico.d.ts.map +1 -0
- package/dist/primitives/custom-icon/icons/camico.js +38 -0
- package/dist/primitives/custom-icon/icons/check-circle-broken-solid.d.ts +1 -1
- package/dist/primitives/custom-icon/icons/check-circle-broken-solid.d.ts.map +1 -1
- package/dist/primitives/custom-icon/icons/check-circle-broken-solid.js +21 -20
- package/dist/primitives/custom-icon/icons/check-icon-20.d.ts +6 -0
- package/dist/primitives/custom-icon/icons/check-icon-20.d.ts.map +1 -0
- package/dist/primitives/custom-icon/icons/check-icon-20.js +33 -0
- package/dist/primitives/custom-icon/icons/check-icon-v2.d.ts +6 -0
- package/dist/primitives/custom-icon/icons/check-icon-v2.d.ts.map +1 -0
- package/dist/primitives/custom-icon/icons/check-icon-v2.js +33 -0
- package/dist/primitives/custom-icon/icons/check-icon.d.ts +6 -0
- package/dist/primitives/custom-icon/icons/check-icon.d.ts.map +1 -0
- package/dist/primitives/custom-icon/icons/check-icon.js +33 -0
- package/dist/primitives/custom-icon/icons/clear-cure.d.ts +1 -1
- package/dist/primitives/custom-icon/icons/clear-cure.d.ts.map +1 -1
- package/dist/primitives/custom-icon/icons/clear-cure.js +24 -35
- package/dist/primitives/custom-icon/icons/code-node.d.ts +1 -1
- package/dist/primitives/custom-icon/icons/code-node.d.ts.map +1 -1
- package/dist/primitives/custom-icon/icons/code-node.js +22 -23
- package/dist/primitives/custom-icon/icons/collapse-left.d.ts +1 -1
- package/dist/primitives/custom-icon/icons/collapse-left.d.ts.map +1 -1
- package/dist/primitives/custom-icon/icons/collapse-left.js +21 -23
- package/dist/primitives/custom-icon/icons/collapse-right.d.ts +1 -1
- package/dist/primitives/custom-icon/icons/collapse-right.d.ts.map +1 -1
- package/dist/primitives/custom-icon/icons/collapse-right.js +21 -23
- package/dist/primitives/custom-icon/icons/condition.d.ts +6 -0
- package/dist/primitives/custom-icon/icons/condition.d.ts.map +1 -0
- package/dist/primitives/custom-icon/icons/condition.js +32 -0
- package/dist/primitives/custom-icon/icons/custom-endpoint.d.ts +6 -0
- package/dist/primitives/custom-icon/icons/custom-endpoint.d.ts.map +1 -0
- package/dist/primitives/custom-icon/icons/custom-endpoint.js +32 -0
- package/dist/primitives/custom-icon/icons/dots.d.ts +6 -0
- package/dist/primitives/custom-icon/icons/dots.d.ts.map +1 -0
- package/dist/primitives/custom-icon/icons/dots.js +32 -0
- package/dist/primitives/custom-icon/icons/file-04-solid.d.ts +1 -1
- package/dist/primitives/custom-icon/icons/file-04-solid.d.ts.map +1 -1
- package/dist/primitives/custom-icon/icons/file-04-solid.js +22 -23
- package/dist/primitives/custom-icon/icons/file-edit-18x19.d.ts +6 -0
- package/dist/primitives/custom-icon/icons/file-edit-18x19.d.ts.map +1 -0
- package/dist/primitives/custom-icon/icons/file-edit-18x19.js +32 -0
- package/dist/primitives/custom-icon/icons/file-edit.d.ts +1 -1
- package/dist/primitives/custom-icon/icons/file-edit.d.ts.map +1 -1
- package/dist/primitives/custom-icon/icons/file-edit.js +23 -25
- package/dist/primitives/custom-icon/icons/files-manager.d.ts +6 -0
- package/dist/primitives/custom-icon/icons/files-manager.d.ts.map +1 -0
- package/dist/primitives/custom-icon/icons/files-manager.js +32 -0
- package/dist/primitives/custom-icon/icons/filtered-view.d.ts +6 -0
- package/dist/primitives/custom-icon/icons/filtered-view.d.ts.map +1 -0
- package/dist/primitives/custom-icon/icons/filtered-view.js +32 -0
- package/dist/primitives/custom-icon/icons/folder-open-40x40.d.ts +6 -0
- package/dist/primitives/custom-icon/icons/folder-open-40x40.d.ts.map +1 -0
- package/dist/primitives/custom-icon/icons/folder-open-40x40.js +68 -0
- package/dist/primitives/custom-icon/icons/folder-open.d.ts +6 -0
- package/dist/primitives/custom-icon/icons/folder-open.d.ts.map +1 -0
- package/dist/primitives/custom-icon/icons/folder-open.js +68 -0
- package/dist/primitives/custom-icon/icons/foresight.d.ts +6 -0
- package/dist/primitives/custom-icon/icons/foresight.d.ts.map +1 -0
- package/dist/primitives/custom-icon/icons/foresight.js +32 -0
- package/dist/primitives/custom-icon/icons/formula.d.ts +1 -1
- package/dist/primitives/custom-icon/icons/formula.d.ts.map +1 -1
- package/dist/primitives/custom-icon/icons/formula.js +20 -22
- package/dist/primitives/custom-icon/icons/gmail-big.d.ts +6 -0
- package/dist/primitives/custom-icon/icons/gmail-big.d.ts.map +1 -0
- package/dist/primitives/custom-icon/icons/gmail-big.js +38 -0
- package/dist/primitives/custom-icon/icons/gmail.d.ts +6 -0
- package/dist/primitives/custom-icon/icons/gmail.d.ts.map +1 -0
- package/dist/primitives/custom-icon/icons/gmail.js +39 -0
- package/dist/primitives/custom-icon/icons/google-chat.d.ts +6 -0
- package/dist/primitives/custom-icon/icons/google-chat.d.ts.map +1 -0
- package/dist/primitives/custom-icon/icons/google-chat.js +32 -0
- package/dist/primitives/custom-icon/icons/google.d.ts +6 -0
- package/dist/primitives/custom-icon/icons/google.d.ts.map +1 -0
- package/dist/primitives/custom-icon/icons/google.js +35 -0
- package/dist/primitives/custom-icon/icons/grid-plus.d.ts +1 -1
- package/dist/primitives/custom-icon/icons/grid-plus.d.ts.map +1 -1
- package/dist/primitives/custom-icon/icons/grid-plus.js +23 -25
- package/dist/primitives/custom-icon/icons/group-by.d.ts +6 -0
- package/dist/primitives/custom-icon/icons/group-by.d.ts.map +1 -0
- package/dist/primitives/custom-icon/icons/group-by.js +33 -0
- package/dist/primitives/custom-icon/icons/guidewire.d.ts +6 -0
- package/dist/primitives/custom-icon/icons/guidewire.d.ts.map +1 -0
- package/dist/primitives/custom-icon/icons/guidewire.js +33 -0
- package/dist/primitives/custom-icon/icons/http-endpoint.d.ts +1 -1
- package/dist/primitives/custom-icon/icons/http-endpoint.d.ts.map +1 -1
- package/dist/primitives/custom-icon/icons/http-endpoint.js +23 -22
- package/dist/primitives/custom-icon/icons/hubspot.d.ts +6 -0
- package/dist/primitives/custom-icon/icons/hubspot.d.ts.map +1 -0
- package/dist/primitives/custom-icon/icons/hubspot.js +32 -0
- package/dist/primitives/custom-icon/icons/integer-20.d.ts +6 -0
- package/dist/primitives/custom-icon/icons/integer-20.d.ts.map +1 -0
- package/dist/primitives/custom-icon/icons/integer-20.js +32 -0
- package/dist/primitives/custom-icon/icons/integer.d.ts +1 -1
- package/dist/primitives/custom-icon/icons/integer.d.ts.map +1 -1
- package/dist/primitives/custom-icon/icons/integer.js +22 -24
- package/dist/primitives/custom-icon/icons/loop.d.ts +1 -1
- package/dist/primitives/custom-icon/icons/loop.d.ts.map +1 -1
- package/dist/primitives/custom-icon/icons/loop.js +25 -46
- package/dist/primitives/custom-icon/icons/mail-01-solid.d.ts +1 -1
- package/dist/primitives/custom-icon/icons/mail-01-solid.d.ts.map +1 -1
- package/dist/primitives/custom-icon/icons/mail-01-solid.js +23 -30
- package/dist/primitives/custom-icon/icons/message-dots-square-solid.d.ts +1 -1
- package/dist/primitives/custom-icon/icons/message-dots-square-solid.d.ts.map +1 -1
- package/dist/primitives/custom-icon/icons/message-dots-square-solid.js +18 -21
- package/dist/primitives/custom-icon/icons/microsoft-outlook.d.ts +6 -0
- package/dist/primitives/custom-icon/icons/microsoft-outlook.d.ts.map +1 -0
- package/dist/primitives/custom-icon/icons/microsoft-outlook.js +103 -0
- package/dist/primitives/custom-icon/icons/microsoft.d.ts +6 -0
- package/dist/primitives/custom-icon/icons/microsoft.d.ts.map +1 -0
- package/dist/primitives/custom-icon/icons/microsoft.js +32 -0
- package/dist/primitives/custom-icon/icons/object-manager.d.ts +1 -1
- package/dist/primitives/custom-icon/icons/object-manager.d.ts.map +1 -1
- package/dist/primitives/custom-icon/icons/object-manager.js +23 -44
- package/dist/primitives/custom-icon/icons/okta.d.ts +6 -0
- package/dist/primitives/custom-icon/icons/okta.d.ts.map +1 -0
- package/dist/primitives/custom-icon/icons/okta.js +32 -0
- package/dist/primitives/custom-icon/icons/onedrive.d.ts +6 -0
- package/dist/primitives/custom-icon/icons/onedrive.d.ts.map +1 -0
- package/dist/primitives/custom-icon/icons/onedrive.js +78 -0
- package/dist/primitives/custom-icon/icons/outlook.d.ts +6 -0
- package/dist/primitives/custom-icon/icons/outlook.d.ts.map +1 -0
- package/dist/primitives/custom-icon/icons/outlook.js +103 -0
- package/dist/primitives/custom-icon/icons/platform.d.ts +6 -0
- package/dist/primitives/custom-icon/icons/platform.d.ts.map +1 -0
- package/dist/primitives/custom-icon/icons/platform.js +34 -0
- package/dist/primitives/custom-icon/icons/plus-circle-solid.d.ts +1 -1
- package/dist/primitives/custom-icon/icons/plus-circle-solid.d.ts.map +1 -1
- package/dist/primitives/custom-icon/icons/plus-circle-solid.js +22 -25
- package/dist/primitives/custom-icon/icons/primespecialty.d.ts +6 -0
- package/dist/primitives/custom-icon/icons/primespecialty.d.ts.map +1 -0
- package/dist/primitives/custom-icon/icons/primespecialty.js +41 -0
- package/dist/primitives/custom-icon/icons/queue.d.ts +6 -0
- package/dist/primitives/custom-icon/icons/queue.d.ts.map +1 -0
- package/dist/primitives/custom-icon/icons/queue.js +34 -0
- package/dist/primitives/custom-icon/icons/reorder-dots-8x14.d.ts +6 -0
- package/dist/primitives/custom-icon/icons/reorder-dots-8x14.d.ts.map +1 -0
- package/dist/primitives/custom-icon/icons/reorder-dots-8x14.js +37 -0
- package/dist/primitives/custom-icon/icons/reorder-dots-new.d.ts +6 -0
- package/dist/primitives/custom-icon/icons/reorder-dots-new.d.ts.map +1 -0
- package/dist/primitives/custom-icon/icons/reorder-dots-new.js +37 -0
- package/dist/primitives/custom-icon/icons/reorder-dots.d.ts +6 -0
- package/dist/primitives/custom-icon/icons/reorder-dots.d.ts.map +1 -0
- package/dist/primitives/custom-icon/icons/reorder-dots.js +37 -0
- package/dist/primitives/custom-icon/icons/rotate-icon-19x18.d.ts +6 -0
- package/dist/primitives/custom-icon/icons/rotate-icon-19x18.d.ts.map +1 -0
- package/dist/primitives/custom-icon/icons/rotate-icon-19x18.js +32 -0
- package/dist/primitives/custom-icon/icons/rotate-icon.d.ts +6 -0
- package/dist/primitives/custom-icon/icons/rotate-icon.d.ts.map +1 -0
- package/dist/primitives/custom-icon/icons/rotate-icon.js +32 -0
- package/dist/primitives/custom-icon/icons/salesforce.d.ts +6 -0
- package/dist/primitives/custom-icon/icons/salesforce.d.ts.map +1 -0
- package/dist/primitives/custom-icon/icons/salesforce.js +40 -0
- package/dist/primitives/custom-icon/icons/saml.d.ts +6 -0
- package/dist/primitives/custom-icon/icons/saml.d.ts.map +1 -0
- package/dist/primitives/custom-icon/icons/saml.js +35 -0
- package/dist/primitives/custom-icon/icons/show-summary.d.ts +6 -0
- package/dist/primitives/custom-icon/icons/show-summary.d.ts.map +1 -0
- package/dist/primitives/custom-icon/icons/show-summary.js +32 -0
- package/dist/primitives/custom-icon/icons/slack.d.ts +6 -0
- package/dist/primitives/custom-icon/icons/slack.d.ts.map +1 -0
- package/dist/primitives/custom-icon/icons/slack.js +35 -0
- package/dist/primitives/custom-icon/icons/sqs.d.ts +6 -0
- package/dist/primitives/custom-icon/icons/sqs.d.ts.map +1 -0
- package/dist/primitives/custom-icon/icons/sqs.js +34 -0
- package/dist/primitives/custom-icon/icons/stop-circle-solid.d.ts +6 -0
- package/dist/primitives/custom-icon/icons/stop-circle-solid.d.ts.map +1 -0
- package/dist/primitives/custom-icon/icons/stop-circle-solid.js +32 -0
- package/dist/primitives/custom-icon/icons/stop.d.ts +6 -0
- package/dist/primitives/custom-icon/icons/stop.d.ts.map +1 -0
- package/dist/primitives/custom-icon/icons/stop.js +33 -0
- package/dist/primitives/custom-icon/icons/submission.d.ts +1 -1
- package/dist/primitives/custom-icon/icons/submission.d.ts.map +1 -1
- package/dist/primitives/custom-icon/icons/submission.js +23 -22
- package/dist/primitives/custom-icon/icons/swap.d.ts +1 -1
- package/dist/primitives/custom-icon/icons/swap.d.ts.map +1 -1
- package/dist/primitives/custom-icon/icons/swap.js +30 -25
- package/dist/primitives/custom-icon/icons/test-tube.d.ts +6 -0
- package/dist/primitives/custom-icon/icons/test-tube.d.ts.map +1 -0
- package/dist/primitives/custom-icon/icons/test-tube.js +32 -0
- package/dist/primitives/custom-icon/icons/thumbs-down-solid.d.ts +1 -1
- package/dist/primitives/custom-icon/icons/thumbs-down-solid.d.ts.map +1 -1
- package/dist/primitives/custom-icon/icons/thumbs-down-solid.js +23 -30
- package/dist/primitives/custom-icon/icons/thumbs-up-solid.d.ts +1 -1
- package/dist/primitives/custom-icon/icons/thumbs-up-solid.d.ts.map +1 -1
- package/dist/primitives/custom-icon/icons/thumbs-up-solid.js +23 -30
- package/dist/primitives/custom-icon/icons/variable-node.d.ts +1 -1
- package/dist/primitives/custom-icon/icons/variable-node.d.ts.map +1 -1
- package/dist/primitives/custom-icon/icons/variable-node.js +23 -33
- package/dist/primitives/custom-icon/icons/variable.d.ts +6 -0
- package/dist/primitives/custom-icon/icons/variable.d.ts.map +1 -0
- package/dist/primitives/custom-icon/icons/variable.js +33 -0
- package/dist/primitives/custom-icon/icons/webhook-solid.d.ts +6 -0
- package/dist/primitives/custom-icon/icons/webhook-solid.d.ts.map +1 -0
- package/dist/primitives/custom-icon/icons/webhook-solid.js +34 -0
- package/dist/primitives/custom-icon/index.d.ts +2 -1
- package/dist/primitives/custom-icon/index.d.ts.map +1 -1
- package/dist/primitives/custom-icon/named-icons.d.ts +112 -0
- package/dist/primitives/custom-icon/named-icons.d.ts.map +1 -0
- package/dist/primitives/custom-icon/registry.d.ts +244 -4
- package/dist/primitives/custom-icon/registry.d.ts.map +1 -1
- package/dist/primitives/custom-icon/registry.js +472 -108
- package/dist/primitives/dropdown/dropdown.d.ts +11 -2
- package/dist/primitives/dropdown/dropdown.d.ts.map +1 -1
- package/dist/primitives/dropdown/dropdown.js +95 -66
- package/dist/primitives/dropdown/dropdown.nestedOverlay.test.d.ts +2 -0
- package/dist/primitives/dropdown/dropdown.nestedOverlay.test.d.ts.map +1 -0
- package/dist/primitives/icon/icons.js +1 -0
- package/dist/primitives/input/hint-text.d.ts +1 -2
- package/dist/primitives/input/hint-text.d.ts.map +1 -1
- package/dist/primitives/input/hint-text.js +1 -1
- package/dist/primitives/input/index.d.ts +3 -1
- package/dist/primitives/input/index.d.ts.map +1 -1
- package/dist/primitives/input/input.d.ts +2 -2
- package/dist/primitives/input/input.d.ts.map +1 -1
- package/dist/primitives/input/input.js +136 -129
- package/dist/primitives/input/label.d.ts +1 -2
- package/dist/primitives/input/label.d.ts.map +1 -1
- package/dist/primitives/multi-chips-select/MultiChipsSelect.d.ts +20 -0
- package/dist/primitives/multi-chips-select/MultiChipsSelect.d.ts.map +1 -0
- package/dist/primitives/multi-chips-select/MultiChipsSelect.js +233 -0
- package/dist/primitives/multi-chips-select/index.d.ts +3 -0
- package/dist/primitives/multi-chips-select/index.d.ts.map +1 -0
- package/dist/primitives/multi-chips-select/tagKeyFromLabel.d.ts +3 -0
- package/dist/primitives/multi-chips-select/tagKeyFromLabel.d.ts.map +1 -0
- package/dist/primitives/multi-chips-select/tagKeyFromLabel.js +6 -0
- package/dist/primitives/select/ExpandableSearchInput.d.ts +3 -1
- package/dist/primitives/select/ExpandableSearchInput.d.ts.map +1 -1
- package/dist/primitives/select/ExpandableSearchInput.js +101 -78
- package/dist/primitives/select/SearchInput.d.ts +10 -6
- package/dist/primitives/select/SearchInput.d.ts.map +1 -1
- package/dist/primitives/select/SearchInput.js +110 -85
- package/dist/primitives/select/combobox.d.ts.map +1 -1
- package/dist/primitives/select/combobox.js +48 -47
- package/dist/primitives/select/index.d.ts +1 -0
- package/dist/primitives/select/index.d.ts.map +1 -1
- package/dist/primitives/select/multi-select.d.ts.map +1 -1
- package/dist/primitives/select/multi-select.js +50 -49
- package/dist/primitives/select/select-item.d.ts +1 -2
- package/dist/primitives/select/select-item.d.ts.map +1 -1
- package/dist/primitives/tooltip/tooltip.d.ts +5 -1
- package/dist/primitives/tooltip/tooltip.d.ts.map +1 -1
- package/dist/primitives/tooltip/tooltip.js +35 -33
- package/dist/styles/components.css +1 -1
- package/dist/styles/theme.css +1 -1
- package/dist/utils/keyboard-shortcut.d.ts +4 -0
- package/dist/utils/keyboard-shortcut.d.ts.map +1 -0
- package/dist/utils/keyboard-shortcut.js +29 -0
- package/package.json +5 -2
- package/dist/primitives/custom-icon/icons/Placeholder.js +0 -39
|
@@ -1,133 +1,133 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { forwardRef as F, useContext as
|
|
3
|
-
import { Edit01 as Y, Copy01 as Z, Trash01 as ee, HelpCircle as te, ArrowDown as re, ChevronSelectorVertical as oe, ChevronRight as
|
|
4
|
-
import { Table as
|
|
5
|
-
import { cn as
|
|
1
|
+
import { jsxs as h, jsx as e, Fragment as V } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as F, useContext as N, createContext as G, useState as R, isValidElement as k, useRef as J, useEffect as Q, cloneElement as _, Children as X } from "react";
|
|
3
|
+
import { Edit01 as Y, Copy01 as Z, Trash01 as ee, HelpCircle as te, ArrowDown as re, ChevronSelectorVertical as oe, ChevronRight as se } from "@untitledui/icons";
|
|
4
|
+
import { Table as ne, useTableOptions as T, Cell as z, TableBody as ie, Column as H, Group as le, TableHeader as ae, Collection as A, Row as B } from "react-aria-components";
|
|
5
|
+
import { cn as d } from "../../utils/cn.js";
|
|
6
6
|
import { isWithinCellEditor as ce } from "./useGridKeyboardNavigation.js";
|
|
7
7
|
import { Badge as de } from "../../primitives/badge/badge.js";
|
|
8
|
-
import { Dropdown as
|
|
9
|
-
import { Tooltip as
|
|
10
|
-
import { Checkbox as
|
|
11
|
-
const be = () => /* @__PURE__ */
|
|
12
|
-
/* @__PURE__ */ e(
|
|
13
|
-
/* @__PURE__ */ e(
|
|
14
|
-
/* @__PURE__ */ e(
|
|
15
|
-
/* @__PURE__ */ e(
|
|
16
|
-
/* @__PURE__ */ e(
|
|
8
|
+
import { Dropdown as b } from "../../primitives/dropdown/dropdown.js";
|
|
9
|
+
import { Tooltip as O, TooltipTrigger as P } from "../../primitives/tooltip/tooltip.js";
|
|
10
|
+
import { Checkbox as M } from "../../primitives/checkbox/checkbox.js";
|
|
11
|
+
const be = () => /* @__PURE__ */ h(b.Root, { children: [
|
|
12
|
+
/* @__PURE__ */ e(b.DotsButton, {}),
|
|
13
|
+
/* @__PURE__ */ e(b.Popover, { className: "w-min", children: /* @__PURE__ */ h(b.Menu, { children: [
|
|
14
|
+
/* @__PURE__ */ e(b.Item, { icon: Y, children: /* @__PURE__ */ e("span", { className: "pr-4", children: "Edit" }) }),
|
|
15
|
+
/* @__PURE__ */ e(b.Item, { icon: Z, children: /* @__PURE__ */ e("span", { className: "pr-4", children: "Copy link" }) }),
|
|
16
|
+
/* @__PURE__ */ e(b.Item, { icon: ee, children: /* @__PURE__ */ e("span", { className: "pr-4", children: "Delete" }) })
|
|
17
17
|
] }) })
|
|
18
|
-
] }),
|
|
18
|
+
] }), w = G({
|
|
19
19
|
size: "sm",
|
|
20
20
|
expandedRows: /* @__PURE__ */ new Set(),
|
|
21
21
|
toggleRow: () => {
|
|
22
22
|
},
|
|
23
23
|
inlineSelection: !1
|
|
24
|
-
}),
|
|
25
|
-
const t =
|
|
26
|
-
|
|
24
|
+
}), W = F(({ children: s, className: i, size: n = "md", ...a }, o) => {
|
|
25
|
+
const t = J(null), [u, f] = R(!1), [l, p] = R(/* @__PURE__ */ new Set());
|
|
26
|
+
Q(() => {
|
|
27
27
|
const r = t.current;
|
|
28
28
|
if (!r) return;
|
|
29
|
-
const
|
|
30
|
-
const { scrollWidth: v, clientWidth:
|
|
31
|
-
f(v >
|
|
29
|
+
const y = () => {
|
|
30
|
+
const { scrollWidth: v, clientWidth: m } = r;
|
|
31
|
+
f(v > m);
|
|
32
32
|
};
|
|
33
|
-
|
|
34
|
-
const
|
|
35
|
-
return
|
|
36
|
-
|
|
33
|
+
y();
|
|
34
|
+
const c = new ResizeObserver(y);
|
|
35
|
+
return c.observe(r), () => {
|
|
36
|
+
c.disconnect();
|
|
37
37
|
};
|
|
38
38
|
}, []);
|
|
39
|
-
const
|
|
40
|
-
|
|
41
|
-
const
|
|
42
|
-
return
|
|
39
|
+
const x = (r) => {
|
|
40
|
+
p((y) => {
|
|
41
|
+
const c = new Set(y);
|
|
42
|
+
return c.has(r) ? c.delete(r) : c.add(r), c;
|
|
43
43
|
});
|
|
44
44
|
};
|
|
45
|
-
return /* @__PURE__ */ e(
|
|
45
|
+
return /* @__PURE__ */ e(w.Provider, { value: { size: n, hasOverflow: u, expandedRows: l, toggleRow: x }, children: /* @__PURE__ */ e(
|
|
46
46
|
"div",
|
|
47
47
|
{
|
|
48
48
|
ref: (r) => {
|
|
49
49
|
t.current = r, typeof o == "function" ? o(r) : o && (o.current = r);
|
|
50
50
|
},
|
|
51
|
-
...
|
|
52
|
-
className:
|
|
53
|
-
children:
|
|
51
|
+
...a,
|
|
52
|
+
className: d("overflow-hidden rounded-lg bg-primary", i),
|
|
53
|
+
children: s
|
|
54
54
|
}
|
|
55
55
|
) });
|
|
56
56
|
});
|
|
57
|
-
|
|
58
|
-
const
|
|
59
|
-
title:
|
|
57
|
+
W.displayName = "TableCardRoot";
|
|
58
|
+
const j = ({
|
|
59
|
+
title: s,
|
|
60
60
|
badge: i,
|
|
61
|
-
description:
|
|
62
|
-
contentTrailing:
|
|
61
|
+
description: n,
|
|
62
|
+
contentTrailing: a,
|
|
63
63
|
className: o
|
|
64
64
|
}) => {
|
|
65
|
-
const { size: t } =
|
|
66
|
-
return /* @__PURE__ */
|
|
65
|
+
const { size: t } = N(w);
|
|
66
|
+
return /* @__PURE__ */ h(
|
|
67
67
|
"div",
|
|
68
68
|
{
|
|
69
|
-
className:
|
|
69
|
+
className: d(
|
|
70
70
|
"relative flex flex-col items-start gap-4 border-b border-tertiary bg-primary px-4 md:flex-row",
|
|
71
71
|
t === "sm" ? "py-2 md:px-4" : t === "xs" ? "py-0 md:px-3" : "py-3 md:px-6",
|
|
72
72
|
o
|
|
73
73
|
),
|
|
74
74
|
children: [
|
|
75
|
-
/* @__PURE__ */
|
|
76
|
-
/* @__PURE__ */
|
|
75
|
+
/* @__PURE__ */ h("div", { className: "flex flex-1 flex-col gap-0.5", children: [
|
|
76
|
+
/* @__PURE__ */ h("div", { className: "flex items-center gap-2", children: [
|
|
77
77
|
/* @__PURE__ */ e(
|
|
78
78
|
"h2",
|
|
79
79
|
{
|
|
80
|
-
className:
|
|
80
|
+
className: d(
|
|
81
81
|
"font-semibold text-primary",
|
|
82
82
|
t === "sm" ? "text-md" : t === "xs" ? "text-sm" : "text-lg"
|
|
83
83
|
),
|
|
84
|
-
children:
|
|
84
|
+
children: s
|
|
85
85
|
}
|
|
86
86
|
),
|
|
87
|
-
i ?
|
|
87
|
+
i ? k(i) ? i : /* @__PURE__ */ e(de, { color: "brand", size: "sm", children: i }) : null
|
|
88
88
|
] }),
|
|
89
|
-
|
|
89
|
+
n && /* @__PURE__ */ e("p", { className: d("text-sm text-tertiary", t === "xs" ? "text-xs" : "text-sm"), children: n })
|
|
90
90
|
] }),
|
|
91
|
-
|
|
91
|
+
a
|
|
92
92
|
]
|
|
93
93
|
}
|
|
94
94
|
);
|
|
95
95
|
};
|
|
96
|
-
|
|
97
|
-
const
|
|
98
|
-
className:
|
|
96
|
+
j.displayName = "TableCardHeader";
|
|
97
|
+
const I = ({
|
|
98
|
+
className: s,
|
|
99
99
|
size: i = "sm",
|
|
100
|
-
isEditable:
|
|
101
|
-
inlineSelection:
|
|
100
|
+
isEditable: n = !1,
|
|
101
|
+
inlineSelection: a = !1,
|
|
102
102
|
...o
|
|
103
103
|
}) => {
|
|
104
|
-
const t =
|
|
105
|
-
f((
|
|
106
|
-
const
|
|
107
|
-
return
|
|
104
|
+
const t = N(w), [u, f] = R(/* @__PURE__ */ new Set()), l = (t == null ? void 0 : t.expandedRows) ?? u, p = (t == null ? void 0 : t.toggleRow) ?? ((r) => {
|
|
105
|
+
f((y) => {
|
|
106
|
+
const c = new Set(y);
|
|
107
|
+
return c.has(r) ? c.delete(r) : c.add(r), c;
|
|
108
108
|
});
|
|
109
|
-
}),
|
|
110
|
-
|
|
109
|
+
}), x = /* @__PURE__ */ e(
|
|
110
|
+
ne,
|
|
111
111
|
{
|
|
112
|
-
className: (r) =>
|
|
112
|
+
className: (r) => d(
|
|
113
113
|
"w-full overflow-x-hidden",
|
|
114
114
|
i === "xs" && "px-3 py-0",
|
|
115
|
-
typeof
|
|
115
|
+
typeof s == "function" ? s(r) : s
|
|
116
116
|
),
|
|
117
117
|
...o
|
|
118
118
|
}
|
|
119
119
|
);
|
|
120
120
|
return /* @__PURE__ */ e(
|
|
121
|
-
|
|
121
|
+
w.Provider,
|
|
122
122
|
{
|
|
123
123
|
value: {
|
|
124
124
|
size: (t == null ? void 0 : t.size) ?? i,
|
|
125
125
|
hasOverflow: t == null ? void 0 : t.hasOverflow,
|
|
126
|
-
expandedRows:
|
|
127
|
-
toggleRow:
|
|
128
|
-
inlineSelection:
|
|
126
|
+
expandedRows: l,
|
|
127
|
+
toggleRow: p,
|
|
128
|
+
inlineSelection: a
|
|
129
129
|
},
|
|
130
|
-
children:
|
|
130
|
+
children: n ? /* @__PURE__ */ e(
|
|
131
131
|
"div",
|
|
132
132
|
{
|
|
133
133
|
onKeyDownCapture: (r) => {
|
|
@@ -143,202 +143,228 @@ const W = ({
|
|
|
143
143
|
" "
|
|
144
144
|
])).has(r.key) && ce(r.target) && r.stopPropagation();
|
|
145
145
|
},
|
|
146
|
-
children:
|
|
146
|
+
children: x
|
|
147
147
|
}
|
|
148
|
-
) :
|
|
148
|
+
) : x
|
|
149
149
|
}
|
|
150
150
|
);
|
|
151
151
|
};
|
|
152
|
-
|
|
153
|
-
const
|
|
154
|
-
columns:
|
|
152
|
+
I.displayName = "Table";
|
|
153
|
+
const K = ({
|
|
154
|
+
columns: s,
|
|
155
155
|
children: i,
|
|
156
|
-
bordered:
|
|
157
|
-
hasExpandableRows:
|
|
156
|
+
bordered: n = !1,
|
|
157
|
+
hasExpandableRows: a = !1,
|
|
158
158
|
className: o,
|
|
159
159
|
...t
|
|
160
160
|
}) => {
|
|
161
|
-
const { size:
|
|
162
|
-
return /* @__PURE__ */
|
|
161
|
+
const { size: u, inlineSelection: f } = N(w), { selectionBehavior: l, selectionMode: p } = T();
|
|
162
|
+
return /* @__PURE__ */ h(
|
|
163
163
|
ae,
|
|
164
164
|
{
|
|
165
165
|
...t,
|
|
166
|
-
className: (
|
|
167
|
-
"sticky top-0 z-30
|
|
168
|
-
|
|
169
|
-
typeof o == "function" ? o(
|
|
166
|
+
className: (x) => d(
|
|
167
|
+
"sticky top-0 z-30 rounded-t-lg bg-secondary_subtle [&>tr>th]:h-9 [&>tr>th:first-child]:rounded-tl-lg [&>tr>th:last-child]:rounded-tr-lg",
|
|
168
|
+
n && "[&>tr>th]:after:pointer-events-none [&>tr>th]:after:absolute [&>tr>th]:after:inset-x-0 [&>tr>th]:after:bottom-0 [&>tr>th]:after:h-px [&>tr>th]:after:bg-border-tertiary [&>tr>th]:focus-visible:after:bg-transparent",
|
|
169
|
+
typeof o == "function" ? o(x) : o
|
|
170
170
|
),
|
|
171
171
|
children: [
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
/* @__PURE__ */ e(A, { items:
|
|
172
|
+
a && /* @__PURE__ */ e(H, { className: d("relative p-0", u === "sm" ? "w-9" : "w-11") }),
|
|
173
|
+
l === "toggle" && !f && /* @__PURE__ */ e(H, { className: d("relative p-0", u === "sm" ? "w-9" : "w-11"), children: p === "multiple" && /* @__PURE__ */ e("div", { className: "flex items-start", children: /* @__PURE__ */ e(M, { className: "hidden", slot: "selection" }) }) }),
|
|
174
|
+
/* @__PURE__ */ e(A, { items: s, children: i })
|
|
175
175
|
]
|
|
176
176
|
}
|
|
177
177
|
);
|
|
178
178
|
};
|
|
179
|
-
|
|
180
|
-
const
|
|
181
|
-
className:
|
|
179
|
+
K.displayName = "TableHeader";
|
|
180
|
+
const $ = ({
|
|
181
|
+
className: s,
|
|
182
182
|
tooltip: i,
|
|
183
|
-
label:
|
|
184
|
-
children:
|
|
183
|
+
label: n,
|
|
184
|
+
children: a,
|
|
185
185
|
sticky: o,
|
|
186
186
|
stickyOffset: t = 0,
|
|
187
|
-
headerCellClass:
|
|
187
|
+
headerCellClass: u,
|
|
188
188
|
tooltipHeader: f = !1,
|
|
189
|
-
|
|
189
|
+
headerAction: l,
|
|
190
|
+
...p
|
|
190
191
|
}) => {
|
|
191
|
-
const { selectionBehavior: x } =
|
|
192
|
+
const { selectionBehavior: x } = T(), { size: r, inlineSelection: y } = N(w), [c, v] = R(!1);
|
|
192
193
|
return /* @__PURE__ */ e(
|
|
193
|
-
|
|
194
|
+
H,
|
|
194
195
|
{
|
|
195
|
-
...
|
|
196
|
-
|
|
197
|
-
|
|
196
|
+
...p,
|
|
197
|
+
onMouseEnter: () => v(!0),
|
|
198
|
+
onMouseLeave: () => v(!1),
|
|
199
|
+
style: (m) => {
|
|
200
|
+
const S = o ? {
|
|
198
201
|
position: "sticky",
|
|
199
202
|
[o]: t,
|
|
200
|
-
zIndex:
|
|
203
|
+
zIndex: 20
|
|
201
204
|
} : {};
|
|
202
|
-
return { ...typeof
|
|
205
|
+
return { ...typeof p.style == "function" ? p.style(m) : p.style || {}, ...S };
|
|
203
206
|
},
|
|
204
|
-
className: (
|
|
207
|
+
className: (m) => d(
|
|
205
208
|
"relative p-0 outline-hidden focus-visible:z-1 focus-visible:ring-2 focus-visible:ring-focus-ring focus-visible:ring-offset-bg-primary focus-visible:ring-inset",
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
x === "toggle" && !
|
|
209
|
+
r === "xs" && "px-3 py-0",
|
|
210
|
+
r === "sm" && "px-4 py-2",
|
|
211
|
+
r === "md" && "px-6 py-2",
|
|
212
|
+
x === "toggle" && !y && "nth-2:pl-3",
|
|
210
213
|
o && "bg-secondary",
|
|
211
|
-
|
|
212
|
-
typeof
|
|
214
|
+
m.allowsSorting && "cursor-pointer",
|
|
215
|
+
typeof s == "function" ? s(m) : s
|
|
213
216
|
),
|
|
214
|
-
children: (
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
217
|
+
children: (m) => /* @__PURE__ */ h(
|
|
218
|
+
le,
|
|
219
|
+
{
|
|
220
|
+
className: d(
|
|
221
|
+
"relative flex w-full min-w-0 items-center gap-1",
|
|
222
|
+
l && "pr-5"
|
|
223
|
+
),
|
|
224
|
+
children: [
|
|
225
|
+
/* @__PURE__ */ h(
|
|
226
|
+
"div",
|
|
227
|
+
{
|
|
228
|
+
className: d(
|
|
229
|
+
"flex min-w-0 flex-1 items-center gap-1 overflow-hidden",
|
|
230
|
+
u
|
|
231
|
+
),
|
|
232
|
+
children: [
|
|
233
|
+
f ? /* @__PURE__ */ e(O, { title: n, placement: "top", children: /* @__PURE__ */ e(P, { className: "cursor-pointer overflow-hidden text-fg-quaternary transition duration-100 ease-linear hover:text-fg-quaternary_hover focus:text-fg-quaternary_hover", children: /* @__PURE__ */ h("div", { className: "flex items-center gap-1 overflow-hidden", children: [
|
|
234
|
+
n && /* @__PURE__ */ e("span", { className: "overflow-hidden text-xs font-medium text-ellipsis whitespace-nowrap text-secondary", children: n }),
|
|
235
|
+
typeof a == "function" ? a(m) : a
|
|
236
|
+
] }) }) }) : /* @__PURE__ */ h("div", { className: "flex items-center gap-1 overflow-hidden", children: [
|
|
237
|
+
n && /* @__PURE__ */ e("span", { className: "overflow-hidden text-xs font-medium text-ellipsis whitespace-nowrap text-secondary", children: n }),
|
|
238
|
+
typeof a == "function" ? a(m) : a
|
|
239
|
+
] }),
|
|
240
|
+
i && /* @__PURE__ */ e(O, { title: i, placement: "top", children: /* @__PURE__ */ e(P, { className: "cursor-pointer overflow-hidden text-fg-quaternary transition duration-100 ease-linear hover:text-fg-quaternary_hover focus:text-fg-quaternary_hover", children: /* @__PURE__ */ e(te, { className: "size-4" }) }) }),
|
|
241
|
+
m.allowsSorting && (m.sortDirection ? /* @__PURE__ */ e(
|
|
242
|
+
re,
|
|
243
|
+
{
|
|
244
|
+
className: d(
|
|
245
|
+
"size-3 stroke-[3px] text-fg-quaternary",
|
|
246
|
+
m.sortDirection === "ascending" && "rotate-180"
|
|
247
|
+
)
|
|
248
|
+
}
|
|
249
|
+
) : /* @__PURE__ */ e(oe, { size: 12, strokeWidth: 3, className: "text-fg-quaternary" }))
|
|
250
|
+
]
|
|
251
|
+
}
|
|
252
|
+
),
|
|
253
|
+
l && /* @__PURE__ */ e("div", { className: "absolute inset-y-0 right-0 flex items-center", children: k(l) ? _(l, {
|
|
254
|
+
isHeaderHovered: c
|
|
255
|
+
}) : l })
|
|
256
|
+
]
|
|
257
|
+
}
|
|
258
|
+
)
|
|
233
259
|
}
|
|
234
260
|
);
|
|
235
261
|
};
|
|
236
|
-
|
|
237
|
-
const
|
|
238
|
-
columns:
|
|
262
|
+
$.displayName = "TableHead";
|
|
263
|
+
const L = ({
|
|
264
|
+
columns: s,
|
|
239
265
|
children: i,
|
|
240
|
-
className:
|
|
241
|
-
highlightSelectedRow:
|
|
266
|
+
className: n,
|
|
267
|
+
highlightSelectedRow: a = !0,
|
|
242
268
|
isExpandable: o = !1,
|
|
243
269
|
renderExpandedContent: t,
|
|
244
|
-
expandedColSpan:
|
|
270
|
+
expandedColSpan: u,
|
|
245
271
|
...f
|
|
246
272
|
}) => {
|
|
247
|
-
const { size:
|
|
273
|
+
const { size: l, expandedRows: p, toggleRow: x, inlineSelection: r } = N(w), { selectionBehavior: y } = T(), c = typeof f.id == "string" ? f.id : String(f.id), v = p.has(c), S = o ? /* @__PURE__ */ e(
|
|
248
274
|
"button",
|
|
249
275
|
{
|
|
250
276
|
type: "button",
|
|
251
|
-
onClick: (
|
|
252
|
-
|
|
277
|
+
onClick: (g) => {
|
|
278
|
+
g.stopPropagation(), x(c);
|
|
253
279
|
},
|
|
254
|
-
className:
|
|
280
|
+
className: d(
|
|
255
281
|
"flex items-center justify-center transition-transform duration-200 ease-in-out cursor-pointer hover:bg-secondary_subtle rounded p-1 flex-shrink-0 -ml-1 mr-2",
|
|
256
282
|
v && "rotate-90"
|
|
257
283
|
),
|
|
258
284
|
"aria-label": v ? "Collapse row" : "Expand row",
|
|
259
|
-
children: /* @__PURE__ */ e(
|
|
285
|
+
children: /* @__PURE__ */ e(se, { className: "size-4 text-fg-quaternary" })
|
|
260
286
|
}
|
|
261
|
-
) : null,
|
|
262
|
-
const
|
|
263
|
-
if (
|
|
264
|
-
const
|
|
287
|
+
) : null, E = o ? (() => {
|
|
288
|
+
const g = X.toArray(i);
|
|
289
|
+
if (g.length > 0 && k(g[0])) {
|
|
290
|
+
const D = g[0], q = D.props;
|
|
265
291
|
return [
|
|
266
|
-
|
|
267
|
-
...
|
|
268
|
-
children: /* @__PURE__ */
|
|
269
|
-
|
|
270
|
-
|
|
292
|
+
_(D, {
|
|
293
|
+
...q,
|
|
294
|
+
children: /* @__PURE__ */ h("div", { className: "flex items-center gap-2", children: [
|
|
295
|
+
S,
|
|
296
|
+
q.children
|
|
271
297
|
] })
|
|
272
298
|
}),
|
|
273
|
-
...
|
|
299
|
+
...g.slice(1)
|
|
274
300
|
];
|
|
275
301
|
}
|
|
276
302
|
return i;
|
|
277
303
|
})() : i;
|
|
278
|
-
return /* @__PURE__ */
|
|
279
|
-
/* @__PURE__ */
|
|
280
|
-
|
|
304
|
+
return /* @__PURE__ */ h(V, { children: [
|
|
305
|
+
/* @__PURE__ */ h(
|
|
306
|
+
B,
|
|
281
307
|
{
|
|
282
308
|
...f,
|
|
283
|
-
className: (
|
|
309
|
+
className: (g) => d(
|
|
284
310
|
"relative outline-focus-ring transition-colors after:pointer-events-none hover:bg-secondary_subtle focus-visible:outline-2 focus-visible:-outline-offset-2",
|
|
285
|
-
|
|
286
|
-
|
|
311
|
+
l === "xs" ? "h-10" : l === "sm" ? "h-12" : l === "md" ? "h-18" : "h-10",
|
|
312
|
+
a && !r && "selected:bg-secondary",
|
|
287
313
|
r && "selected:!bg-transparent",
|
|
288
314
|
!v && "[&>td]:after:absolute [&>td]:after:inset-x-0 [&>td]:after:bottom-0 [&>td]:after:h-px [&>td]:after:w-full [&>td]:after:bg-border-tertiary last:[&>td]:after:hidden [&>td]:focus-visible:after:opacity-0 focus-visible:[&>td]:after:opacity-0",
|
|
289
|
-
typeof
|
|
315
|
+
typeof n == "function" ? n(g) : n
|
|
290
316
|
),
|
|
291
317
|
children: [
|
|
292
|
-
|
|
293
|
-
/* @__PURE__ */ e(A, { items:
|
|
318
|
+
y === "toggle" && !r && /* @__PURE__ */ e(z, { className: d("relative p-0", l === "sm" ? "w-9" : "w-11"), children: /* @__PURE__ */ e("div", { className: "flex items-end", children: /* @__PURE__ */ e(M, { className: "hidden", slot: "selection" }) }) }),
|
|
319
|
+
/* @__PURE__ */ e(A, { items: s, children: E })
|
|
294
320
|
]
|
|
295
321
|
}
|
|
296
322
|
),
|
|
297
|
-
o && v && t && /* @__PURE__ */ e(
|
|
323
|
+
o && v && t && /* @__PURE__ */ e(B, { id: `${c}-expanded`, className: "relative bg-secondary_subtle", children: /* @__PURE__ */ e(z, { className: "p-0", colSpan: u ?? (s == null ? void 0 : s.length) ?? 1, children: /* @__PURE__ */ e("div", { className: "w-full", children: t(f.value) }) }) })
|
|
298
324
|
] });
|
|
299
325
|
};
|
|
300
|
-
|
|
301
|
-
const
|
|
302
|
-
const { size: t, inlineSelection:
|
|
326
|
+
L.displayName = "TableRow";
|
|
327
|
+
const U = ({ className: s, children: i, sticky: n, stickyOffset: a = 0, ...o }) => {
|
|
328
|
+
const { size: t, inlineSelection: u } = N(w), { selectionBehavior: f } = T();
|
|
303
329
|
return /* @__PURE__ */ e(
|
|
304
|
-
|
|
330
|
+
z,
|
|
305
331
|
{
|
|
306
332
|
...o,
|
|
307
|
-
style: (
|
|
308
|
-
const
|
|
333
|
+
style: (l) => {
|
|
334
|
+
const p = n ? {
|
|
309
335
|
position: "sticky",
|
|
310
|
-
[
|
|
311
|
-
zIndex:
|
|
336
|
+
[n]: a,
|
|
337
|
+
zIndex: 10,
|
|
312
338
|
backgroundColor: "white",
|
|
313
|
-
boxShadow:
|
|
339
|
+
boxShadow: n === "right" ? "inset 2px 0 0px 0px var(--color-border-tertiary)" : "inset -2px 0 0px 0px var(--color-border-tertiary)"
|
|
314
340
|
} : {};
|
|
315
|
-
return { ...typeof o.style == "function" ? o.style(
|
|
341
|
+
return { ...typeof o.style == "function" ? o.style(l) : o.style || {}, ...p };
|
|
316
342
|
},
|
|
317
|
-
className: (
|
|
343
|
+
className: (l) => d(
|
|
318
344
|
"relative text-secondary outline-focus-ring focus-visible:z-1 focus-visible:outline-2 focus-visible:-outline-offset-2",
|
|
319
345
|
t === "xs" && "p-0 px-3 py-0 text-xs",
|
|
320
346
|
t === "sm" && "p-0 px-4 py-2 text-sm",
|
|
321
347
|
t === "md" && "p-0 px-6 py-2 text-base",
|
|
322
|
-
f === "toggle" && !
|
|
323
|
-
typeof
|
|
348
|
+
f === "toggle" && !u && "nth-2:pl-3",
|
|
349
|
+
typeof s == "function" ? s(l) : s
|
|
324
350
|
),
|
|
325
351
|
children: i
|
|
326
352
|
}
|
|
327
353
|
);
|
|
328
354
|
};
|
|
329
|
-
|
|
355
|
+
U.displayName = "TableCell";
|
|
330
356
|
const Ne = {
|
|
331
|
-
Root:
|
|
332
|
-
Header:
|
|
333
|
-
},
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
357
|
+
Root: W,
|
|
358
|
+
Header: j
|
|
359
|
+
}, C = I;
|
|
360
|
+
C.Body = ie;
|
|
361
|
+
C.Cell = U;
|
|
362
|
+
C.Head = $;
|
|
363
|
+
C.Header = K;
|
|
364
|
+
C.Row = L;
|
|
339
365
|
export {
|
|
340
|
-
|
|
366
|
+
C as Table,
|
|
341
367
|
Ne as TableCard,
|
|
342
|
-
|
|
368
|
+
U as TableCell,
|
|
343
369
|
be as TableRowActionsDropdown
|
|
344
370
|
};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { TableWrapperToolbarConfig, TableWrapperEditChrome } from './types';
|
|
2
|
+
import { SummaryFooterRowProps } from './toolbar/SummaryFooter';
|
|
3
|
+
import { CellAlignment, AggregationType } from './toolbar/tableToolbarHelpers';
|
|
4
|
+
import { RowHeightOption } from './toolbar/RowHeightDropdown';
|
|
5
|
+
import { LegacyFilterCondition, LegacySort } from './toolbar/legacyToolbarTypes';
|
|
6
|
+
import { RowActionsConfig } from './toolbar/RowActionsMenu';
|
|
7
|
+
import { ColumnMenuAction } from './toolbar/ColumnHeaderMenu';
|
|
8
|
+
export type TableUndoSnapshot = {
|
|
9
|
+
hiddenColumns?: Set<string>;
|
|
10
|
+
columnOrder?: string[];
|
|
11
|
+
columnAlignments?: Map<string, CellAlignment>;
|
|
12
|
+
groupBy?: string | null;
|
|
13
|
+
showSummary?: boolean;
|
|
14
|
+
summaryAggregations?: Map<string, AggregationType>;
|
|
15
|
+
rowHeight?: RowHeightOption;
|
|
16
|
+
sorts?: LegacySort[];
|
|
17
|
+
filterConditions?: LegacyFilterCondition[];
|
|
18
|
+
data?: unknown[];
|
|
19
|
+
};
|
|
20
|
+
export type TableUndoSnapshotSources = {
|
|
21
|
+
toolbar?: TableWrapperToolbarConfig;
|
|
22
|
+
columnAlignments?: ReadonlyMap<string, CellAlignment>;
|
|
23
|
+
summaryFooterProps?: SummaryFooterRowProps;
|
|
24
|
+
/** When set, used for filter snapshots instead of `toolbar.filter.pendingConditions`. */
|
|
25
|
+
appliedFilterConditions?: readonly LegacyFilterCondition[];
|
|
26
|
+
data?: unknown[];
|
|
27
|
+
getData?: () => unknown[] | undefined;
|
|
28
|
+
};
|
|
29
|
+
export declare function captureTableUndoSnapshot(sources: TableUndoSnapshotSources): TableUndoSnapshot;
|
|
30
|
+
export declare function applyTableUndoSnapshot(snapshot: TableUndoSnapshot, sources: TableUndoSnapshotSources & {
|
|
31
|
+
onDataRestore?: (data: unknown[]) => void;
|
|
32
|
+
}): void;
|
|
33
|
+
export declare function wrapToolbarWithUndoRedo(toolbar: TableWrapperToolbarConfig, commit: () => void): TableWrapperToolbarConfig;
|
|
34
|
+
export declare function wrapSummaryFooterWithUndoRedo(props: SummaryFooterRowProps, commit: () => void): SummaryFooterRowProps;
|
|
35
|
+
export declare function wrapEditChromeWithUndoRedo(editChrome: TableWrapperEditChrome, commit: () => void): TableWrapperEditChrome;
|
|
36
|
+
export declare function wrapRowActionsWithUndoRedo<T extends Record<string, unknown>>(config: RowActionsConfig<T>, commit: () => void): RowActionsConfig<T>;
|
|
37
|
+
export declare function wrapColumnHeaderActionWithUndoRedo(onColumnHeaderAction: (columnKey: string, action: ColumnMenuAction) => void, commit: () => void): (columnKey: string, action: ColumnMenuAction) => void;
|
|
38
|
+
//# sourceMappingURL=tableUndoRedo.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tableUndoRedo.d.ts","sourceRoot":"","sources":["../../../src/patterns/table/tableUndoRedo.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,SAAS,CAAC;AACzD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AACrE,OAAO,KAAK,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AACpF,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AACnE,OAAO,KAAK,EAAE,qBAAqB,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AACtF,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AACjE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AACnE,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAC;AAEtD,MAAM,MAAM,iBAAiB,GAAG;IAC9B,aAAa,CAAC,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;IAC5B,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;IACvB,gBAAgB,CAAC,EAAE,GAAG,CAAC,MAAM,EAAE,aAAa,CAAC,CAAC;IAC9C,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,mBAAmB,CAAC,EAAE,GAAG,CAAC,MAAM,EAAE,eAAe,CAAC,CAAC;IACnD,SAAS,CAAC,EAAE,eAAe,CAAC;IAC5B,KAAK,CAAC,EAAE,UAAU,EAAE,CAAC;IACrB,gBAAgB,CAAC,EAAE,qBAAqB,EAAE,CAAC;IAC3C,IAAI,CAAC,EAAE,OAAO,EAAE,CAAC;CAClB,CAAC;AAEF,MAAM,MAAM,wBAAwB,GAAG;IACrC,OAAO,CAAC,EAAE,yBAAyB,CAAC;IACpC,gBAAgB,CAAC,EAAE,WAAW,CAAC,MAAM,EAAE,aAAa,CAAC,CAAC;IACtD,kBAAkB,CAAC,EAAE,qBAAqB,CAAC;IAC3C,yFAAyF;IACzF,uBAAuB,CAAC,EAAE,SAAS,qBAAqB,EAAE,CAAC;IAC3D,IAAI,CAAC,EAAE,OAAO,EAAE,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,OAAO,EAAE,GAAG,SAAS,CAAC;CACvC,CAAC;AA4BF,wBAAgB,wBAAwB,CAAC,OAAO,EAAE,wBAAwB,GAAG,iBAAiB,CAoB7F;AAED,wBAAgB,sBAAsB,CACpC,QAAQ,EAAE,iBAAiB,EAC3B,OAAO,EAAE,wBAAwB,GAAG;IAAE,aAAa,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,EAAE,KAAK,IAAI,CAAA;CAAE,GAChF,IAAI,CAmCN;AAcD,wBAAgB,uBAAuB,CACrC,OAAO,EAAE,yBAAyB,EAClC,MAAM,EAAE,MAAM,IAAI,GACjB,yBAAyB,CAiF3B;AAED,wBAAgB,6BAA6B,CAC3C,KAAK,EAAE,qBAAqB,EAC5B,MAAM,EAAE,MAAM,IAAI,GACjB,qBAAqB,CAQvB;AAED,wBAAgB,0BAA0B,CACxC,UAAU,EAAE,sBAAsB,EAClC,MAAM,EAAE,MAAM,IAAI,GACjB,sBAAsB,CAYxB;AAED,wBAAgB,0BAA0B,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC1E,MAAM,EAAE,gBAAgB,CAAC,CAAC,CAAC,EAC3B,MAAM,EAAE,MAAM,IAAI,GACjB,gBAAgB,CAAC,CAAC,CAAC,CAwBrB;AAED,wBAAgB,kCAAkC,CAChD,oBAAoB,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,gBAAgB,KAAK,IAAI,EAC3E,MAAM,EAAE,MAAM,IAAI,GACjB,CAAC,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,gBAAgB,KAAK,IAAI,CAOvD"}
|