@restio/ui 0.0.8-SNAPSHOT → 0.0.9-SNAPSHOT
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/components/anchored-overlay/anchored-overlay-types.d.ts +1 -1
- package/dist/components/anchored-overlay/anchored-overlay-types.js +2 -0
- package/dist/components/anchored-overlay/anchored-overlay-types.js.map +1 -0
- package/dist/components/anchored-overlay/anchored-overlay.d.ts +2 -2
- package/dist/components/anchored-overlay/anchored-overlay.js +67 -0
- package/dist/components/anchored-overlay/anchored-overlay.js.map +1 -0
- package/dist/components/banner/banner-types.d.ts +1 -1
- package/dist/components/banner/banner-types.js +2 -0
- package/dist/components/banner/banner-types.js.map +1 -0
- package/dist/components/banner/banner.d.ts +2 -2
- package/dist/components/banner/banner.js +29 -0
- package/dist/components/banner/banner.js.map +1 -0
- package/dist/components/button/button-types.d.ts +1 -1
- package/dist/components/button/button-types.js +2 -0
- package/dist/components/button/button-types.js.map +1 -0
- package/dist/components/button/button.d.ts +2 -2
- package/dist/components/button/button.js +20 -0
- package/dist/components/button/button.js.map +1 -0
- package/dist/components/button-group/button-group-types.js +2 -0
- package/dist/components/button-group/button-group-types.js.map +1 -0
- package/dist/components/button-group/button-group.d.ts +2 -2
- package/dist/components/button-group/button-group.js +16 -0
- package/dist/components/button-group/button-group.js.map +1 -0
- package/dist/components/checkbox/checkbox-types.d.ts +1 -1
- package/dist/components/checkbox/checkbox-types.js +2 -0
- package/dist/components/checkbox/checkbox-types.js.map +1 -0
- package/dist/components/checkbox/checkbox.d.ts +2 -2
- package/dist/components/checkbox/checkbox.js +19 -0
- package/dist/components/checkbox/checkbox.js.map +1 -0
- package/dist/components/code-block/code-block.d.ts +1 -1
- package/dist/components/code-block/code-block.js +9 -0
- package/dist/components/code-block/code-block.js.map +1 -0
- package/dist/components/file-upload/file-upload-types.d.ts +1 -1
- package/dist/components/file-upload/file-upload-types.js +2 -0
- package/dist/components/file-upload/file-upload-types.js.map +1 -0
- package/dist/components/file-upload/file-upload-utils.js +10 -0
- package/dist/components/file-upload/file-upload-utils.js.map +1 -0
- package/dist/components/file-upload/file-upload.d.ts +2 -2
- package/dist/components/file-upload/file-upload.js +106 -0
- package/dist/components/file-upload/file-upload.js.map +1 -0
- package/dist/components/graph/graph-types.js +2 -0
- package/dist/components/graph/graph-types.js.map +1 -0
- package/dist/components/graph/graph.d.ts +1 -1
- package/dist/components/graph/graph.js +21 -0
- package/dist/components/graph/graph.js.map +1 -0
- package/dist/components/input/date/date-calendar.d.ts +2 -2
- package/dist/components/input/date/date-calendar.js +114 -0
- package/dist/components/input/date/date-calendar.js.map +1 -0
- package/dist/components/input/date/date-input-field.d.ts +2 -2
- package/dist/components/input/date/date-input-field.js +61 -0
- package/dist/components/input/date/date-input-field.js.map +1 -0
- package/dist/components/input/date/date-picker.d.ts +2 -2
- package/dist/components/input/date/date-picker.js +35 -0
- package/dist/components/input/date/date-picker.js.map +1 -0
- package/dist/components/input/date/date-range-input-field.d.ts +2 -2
- package/dist/components/input/date/date-range-input-field.js +90 -0
- package/dist/components/input/date/date-range-input-field.js.map +1 -0
- package/dist/components/input/date/date-range-picker.d.ts +2 -2
- package/dist/components/input/date/date-range-picker.js +74 -0
- package/dist/components/input/date/date-range-picker.js.map +1 -0
- package/dist/components/input/date/date-shortcuts.d.ts +2 -2
- package/dist/components/input/date/date-shortcuts.js +47 -0
- package/dist/components/input/date/date-shortcuts.js.map +1 -0
- package/dist/components/input/date/date-types.d.ts +1 -1
- package/dist/components/input/date/date-types.js +2 -0
- package/dist/components/input/date/date-types.js.map +1 -0
- package/dist/components/input/date/date-utils.d.ts +1 -1
- package/dist/components/input/date/date-utils.js +203 -0
- package/dist/components/input/date/date-utils.js.map +1 -0
- package/dist/components/input/input-types.js +2 -0
- package/dist/components/input/input-types.js.map +1 -0
- package/dist/components/input/input.d.ts +2 -2
- package/dist/components/input/input.js +14 -0
- package/dist/components/input/input.js.map +1 -0
- package/dist/components/input/number/input-number-types.d.ts +1 -1
- package/dist/components/input/number/input-number-types.js +2 -0
- package/dist/components/input/number/input-number-types.js.map +1 -0
- package/dist/components/input/number/input-number.d.ts +2 -2
- package/dist/components/input/number/input-number.js +11 -0
- package/dist/components/input/number/input-number.js.map +1 -0
- package/dist/components/input/text/input-text-types.d.ts +1 -1
- package/dist/components/input/text/input-text-types.js +2 -0
- package/dist/components/input/text/input-text-types.js.map +1 -0
- package/dist/components/input/text/input-text.d.ts +2 -2
- package/dist/components/input/text/input-text.js +8 -0
- package/dist/components/input/text/input-text.js.map +1 -0
- package/dist/components/kbd/kbd-types.js +2 -0
- package/dist/components/kbd/kbd-types.js.map +1 -0
- package/dist/components/kbd/kbd.d.ts +2 -2
- package/dist/components/kbd/kbd.js +12 -0
- package/dist/components/kbd/kbd.js.map +1 -0
- package/dist/components/kbd-group/kbd-group-types.js +2 -0
- package/dist/components/kbd-group/kbd-group-types.js.map +1 -0
- package/dist/components/kbd-group/kbd-group.d.ts +2 -2
- package/dist/components/kbd-group/kbd-group.js +15 -0
- package/dist/components/kbd-group/kbd-group.js.map +1 -0
- package/dist/components/list/list-types.d.ts +1 -1
- package/dist/components/list/list-types.js +2 -0
- package/dist/components/list/list-types.js.map +1 -0
- package/dist/components/list/list-utils.d.ts +4 -4
- package/dist/components/list/list-utils.js +73 -0
- package/dist/components/list/list-utils.js.map +1 -0
- package/dist/components/list/list.d.ts +1 -1
- package/dist/components/list/list.js +68 -0
- package/dist/components/list/list.js.map +1 -0
- package/dist/components/menu/anchored-navigation-menu.d.ts +3 -3
- package/dist/components/menu/anchored-navigation-menu.js +48 -0
- package/dist/components/menu/anchored-navigation-menu.js.map +1 -0
- package/dist/components/menu/menu-assets.d.ts +1 -1
- package/dist/components/menu/menu-assets.js +35 -0
- package/dist/components/menu/menu-assets.js.map +1 -0
- package/dist/components/menu/menu-types.d.ts +2 -2
- package/dist/components/menu/menu-types.js +2 -0
- package/dist/components/menu/menu-types.js.map +1 -0
- package/dist/components/menu/menu.d.ts +2 -2
- package/dist/components/menu/menu.js +86 -0
- package/dist/components/menu/menu.js.map +1 -0
- package/dist/components/otp/otp-types.js +2 -0
- package/dist/components/otp/otp-types.js.map +1 -0
- package/dist/components/otp/otp-utils.js +22 -0
- package/dist/components/otp/otp-utils.js.map +1 -0
- package/dist/components/otp/otp.d.ts +3 -2
- package/dist/components/otp/otp.js +85 -0
- package/dist/components/otp/otp.js.map +1 -0
- package/dist/components/select/select-types.d.ts +1 -1
- package/dist/components/select/select-types.js +2 -0
- package/dist/components/select/select-types.js.map +1 -0
- package/dist/components/select/select.d.ts +2 -2
- package/dist/components/select/select.js +52 -0
- package/dist/components/select/select.js.map +1 -0
- package/dist/components/tag/tag-types.d.ts +1 -1
- package/dist/components/tag/tag-types.js +2 -0
- package/dist/components/tag/tag-types.js.map +1 -0
- package/dist/components/tag/tag.d.ts +2 -2
- package/dist/components/tag/tag.js +16 -0
- package/dist/components/tag/tag.js.map +1 -0
- package/dist/components/textarea/textarea-types.d.ts +2 -2
- package/dist/components/textarea/textarea-types.js +2 -0
- package/dist/components/textarea/textarea-types.js.map +1 -0
- package/dist/components/textarea/textarea.d.ts +2 -2
- package/dist/components/textarea/textarea.js +19 -0
- package/dist/components/textarea/textarea.js.map +1 -0
- package/dist/components/toast-group/toast-group-types.d.ts +1 -1
- package/dist/components/toast-group/toast-group-types.js +2 -0
- package/dist/components/toast-group/toast-group-types.js.map +1 -0
- package/dist/components/toast-group/toast-group.d.ts +2 -2
- package/dist/components/toast-group/toast-group.js +25 -0
- package/dist/components/toast-group/toast-group.js.map +1 -0
- package/dist/components/typography/typography-types.d.ts +1 -1
- package/dist/components/typography/typography-types.js +11 -0
- package/dist/components/typography/typography-types.js.map +1 -0
- package/dist/components/typography/typography.d.ts +2 -2
- package/dist/components/typography/typography.js +17 -0
- package/dist/components/typography/typography.js.map +1 -0
- package/dist/custom-components/chat/chat-types.d.ts +1 -1
- package/dist/custom-components/chat/chat-types.js +2 -0
- package/dist/custom-components/chat/chat-types.js.map +1 -0
- package/dist/custom-components/chat/chat.d.ts +1 -1
- package/dist/custom-components/chat/chat.js +14 -0
- package/dist/custom-components/chat/chat.js.map +1 -0
- package/dist/custom-components/layout/layout-types.js +2 -0
- package/dist/custom-components/layout/layout-types.js.map +1 -0
- package/dist/custom-components/layout/layout.d.ts +2 -2
- package/dist/custom-components/layout/layout.js +46 -0
- package/dist/custom-components/layout/layout.js.map +1 -0
- package/dist/custom-components/layout-builder/layout-builder-constants.js +25 -0
- package/dist/custom-components/layout-builder/layout-builder-constants.js.map +1 -0
- package/dist/custom-components/layout-builder/layout-builder-schema.js +169 -0
- package/dist/custom-components/layout-builder/layout-builder-schema.js.map +1 -0
- package/dist/custom-components/layout-builder/layout-builder-templates.js +206 -0
- package/dist/custom-components/layout-builder/layout-builder-templates.js.map +1 -0
- package/dist/custom-components/layout-builder/layout-builder-types.js +2 -0
- package/dist/custom-components/layout-builder/layout-builder-types.js.map +1 -0
- package/dist/custom-components/layout-builder/layout-builder-utils.js +251 -0
- package/dist/custom-components/layout-builder/layout-builder-utils.js.map +1 -0
- package/dist/custom-components/layout-builder/layout-builder-validation.d.ts +8 -2
- package/dist/custom-components/layout-builder/layout-builder-validation.js +445 -0
- package/dist/custom-components/layout-builder/layout-builder-validation.js.map +1 -0
- package/dist/custom-components/layout-builder/layout-builder.d.ts +2 -2
- package/dist/custom-components/layout-builder/layout-builder.js +908 -0
- package/dist/custom-components/layout-builder/layout-builder.js.map +1 -0
- package/dist/custom-components/layout-builder/layout-json-editor-types.d.ts +1 -1
- package/dist/custom-components/layout-builder/layout-json-editor-types.js +2 -0
- package/dist/custom-components/layout-builder/layout-json-editor-types.js.map +1 -0
- package/dist/custom-components/layout-builder/layout-json-editor.d.ts +2 -2
- package/dist/custom-components/layout-builder/layout-json-editor.js +103 -0
- package/dist/custom-components/layout-builder/layout-json-editor.js.map +1 -0
- package/dist/custom-components/layout-builder/stories/hooks/useHistory.js +100 -0
- package/dist/custom-components/layout-builder/stories/hooks/useHistory.js.map +1 -0
- package/dist/custom-components/markdown/markdown-types.d.ts +3 -3
- package/dist/custom-components/markdown/markdown-types.js +2 -0
- package/dist/custom-components/markdown/markdown-types.js.map +1 -0
- package/dist/custom-components/markdown/markdown-utils.js +10 -0
- package/dist/custom-components/markdown/markdown-utils.js.map +1 -0
- package/dist/custom-components/markdown/markdown.d.ts +2 -2
- package/dist/custom-components/markdown/markdown.js +39 -0
- package/dist/custom-components/markdown/markdown.js.map +1 -0
- package/dist/custom-components/mindmap/index.d.ts +2 -2
- package/dist/custom-components/mindmap/index.js +2 -0
- package/dist/custom-components/mindmap/index.js.map +1 -0
- package/dist/custom-components/mindmap/mind-tree-types.d.ts +1 -1
- package/dist/custom-components/mindmap/mind-tree-types.js +2 -0
- package/dist/custom-components/mindmap/mind-tree-types.js.map +1 -0
- package/dist/custom-components/mindmap/mind-tree.d.ts +1 -1
- package/dist/custom-components/mindmap/mind-tree.js +201 -0
- package/dist/custom-components/mindmap/mind-tree.js.map +1 -0
- package/dist/custom-components/mindmap/reingold-tilford-algorithm.d.ts +1 -1
- package/dist/custom-components/mindmap/reingold-tilford-algorithm.js +277 -0
- package/dist/custom-components/mindmap/reingold-tilford-algorithm.js.map +1 -0
- package/dist/custom-components/shortcut-tooltip/shortcut-tooltip-types.js +2 -0
- package/dist/custom-components/shortcut-tooltip/shortcut-tooltip-types.js.map +1 -0
- package/dist/custom-components/shortcut-tooltip/shortcut-tooltip.d.ts +2 -2
- package/dist/custom-components/shortcut-tooltip/shortcut-tooltip.js +32 -0
- package/dist/custom-components/shortcut-tooltip/shortcut-tooltip.js.map +1 -0
- package/dist/custom-components/timeline/skeleton/timeline-skeleton.d.ts +1 -1
- package/dist/custom-components/timeline/skeleton/timeline-skeleton.js +19 -0
- package/dist/custom-components/timeline/skeleton/timeline-skeleton.js.map +1 -0
- package/dist/custom-components/timeline/timeline-types.js +2 -0
- package/dist/custom-components/timeline/timeline-types.js.map +1 -0
- package/dist/custom-components/timeline/timeline.d.ts +2 -2
- package/dist/custom-components/timeline/timeline.js +64 -0
- package/dist/custom-components/timeline/timeline.js.map +1 -0
- package/dist/custom-components/workflow/layout/workflow-edge.d.ts +1 -1
- package/dist/custom-components/workflow/layout/workflow-edge.js +31 -0
- package/dist/custom-components/workflow/layout/workflow-edge.js.map +1 -0
- package/dist/custom-components/workflow/layout/workflow-layout-types.d.ts +1 -1
- package/dist/custom-components/workflow/layout/workflow-layout-types.js +2 -0
- package/dist/custom-components/workflow/layout/workflow-layout-types.js.map +1 -0
- package/dist/custom-components/workflow/layout/workflow-layout.d.ts +2 -2
- package/dist/custom-components/workflow/layout/workflow-layout.js +284 -0
- package/dist/custom-components/workflow/layout/workflow-layout.js.map +1 -0
- package/dist/custom-components/workflow/node/workflow-node.d.ts +1 -1
- package/dist/custom-components/workflow/node/workflow-node.js +22 -0
- package/dist/custom-components/workflow/node/workflow-node.js.map +1 -0
- package/dist/custom-components/workflow/panel/workflow-panel-types.d.ts +1 -1
- package/dist/custom-components/workflow/panel/workflow-panel-types.js +2 -0
- package/dist/custom-components/workflow/panel/workflow-panel-types.js.map +1 -0
- package/dist/custom-components/workflow/panel/workflow-panel.d.ts +1 -1
- package/dist/custom-components/workflow/panel/workflow-panel.js +53 -0
- package/dist/custom-components/workflow/panel/workflow-panel.js.map +1 -0
- package/dist/custom-components/workflow/toolbar/workflow-toolbar-types.js +2 -0
- package/dist/custom-components/workflow/toolbar/workflow-toolbar-types.js.map +1 -0
- package/dist/custom-components/workflow/toolbar/workflow-toolbar.d.ts +1 -1
- package/dist/custom-components/workflow/toolbar/workflow-toolbar.js +19 -0
- package/dist/custom-components/workflow/toolbar/workflow-toolbar.js.map +1 -0
- package/dist/custom-components/workflow/utils/workflow-validation.d.ts +2 -2
- package/dist/custom-components/workflow/utils/workflow-validation.js +257 -0
- package/dist/custom-components/workflow/utils/workflow-validation.js.map +1 -0
- package/dist/custom-components/workflow/workflow-types.d.ts +3 -3
- package/dist/custom-components/workflow/workflow-types.js +2 -0
- package/dist/custom-components/workflow/workflow-types.js.map +1 -0
- package/dist/custom-components/workflow/workflow.d.ts +1 -1
- package/dist/custom-components/workflow/workflow.js +125 -0
- package/dist/custom-components/workflow/workflow.js.map +1 -0
- package/dist/data-components/assets/data-components-asset.js +2 -0
- package/dist/data-components/assets/data-components-asset.js.map +1 -0
- package/dist/data-components/calendar/calendar-types.d.ts +1 -1
- package/dist/data-components/calendar/calendar-types.js +2 -0
- package/dist/data-components/calendar/calendar-types.js.map +1 -0
- package/dist/data-components/calendar/calendar-utils.js +2 -0
- package/dist/data-components/calendar/calendar-utils.js.map +1 -0
- package/dist/data-components/calendar/calendar.d.ts +1 -1
- package/dist/data-components/calendar/calendar.js +78 -0
- package/dist/data-components/calendar/calendar.js.map +1 -0
- package/dist/data-components/cell/cell-switch.d.ts +1 -1
- package/dist/data-components/cell/cell-switch.js +68 -0
- package/dist/data-components/cell/cell-switch.js.map +1 -0
- package/dist/data-components/cell/cell-types.d.ts +2 -2
- package/dist/data-components/cell/cell-types.js +2 -0
- package/dist/data-components/cell/cell-types.js.map +1 -0
- package/dist/data-components/cell/cell-utils.js +60 -0
- package/dist/data-components/cell/cell-utils.js.map +1 -0
- package/dist/data-components/cell/cell.d.ts +1 -1
- package/dist/data-components/cell/cell.js +63 -0
- package/dist/data-components/cell/cell.js.map +1 -0
- package/dist/data-components/chart/chart-types.d.ts +1 -1
- package/dist/data-components/chart/chart-types.js +2 -0
- package/dist/data-components/chart/chart-types.js.map +1 -0
- package/dist/data-components/chart/chart.d.ts +1 -1
- package/dist/data-components/chart/chart.js +121 -0
- package/dist/data-components/chart/chart.js.map +1 -0
- package/dist/data-components/chart/sankey/sankeyChart.d.ts +1 -1
- package/dist/data-components/chart/sankey/sankeyChart.js +111 -0
- package/dist/data-components/chart/sankey/sankeyChart.js.map +1 -0
- package/dist/data-components/data-structure/data-structure-utils.d.ts +1 -1
- package/dist/data-components/data-structure/data-structure-utils.js +28 -0
- package/dist/data-components/data-structure/data-structure-utils.js.map +1 -0
- package/dist/data-components/data-structure/data-structure.d.ts +1 -1
- package/dist/data-components/data-structure/data-structure.js +2 -0
- package/dist/data-components/data-structure/data-structure.js.map +1 -0
- package/dist/data-components/data-structure/stories-assets.d.ts +5 -1
- package/dist/data-components/data-structure/stories-assets.js +199 -0
- package/dist/data-components/data-structure/stories-assets.js.map +1 -0
- package/dist/data-components/form/form-types.d.ts +2 -2
- package/dist/data-components/form/form-types.js +2 -0
- package/dist/data-components/form/form-types.js.map +1 -0
- package/dist/data-components/form/form.d.ts +1 -1
- package/dist/data-components/form/form.js +124 -0
- package/dist/data-components/form/form.js.map +1 -0
- package/dist/data-components/table-grid/aggregation/aggregation-utils.js +31 -0
- package/dist/data-components/table-grid/aggregation/aggregation-utils.js.map +1 -0
- package/dist/data-components/table-grid/ai-assistant/ai-assistant-executor.d.ts +1 -1
- package/dist/data-components/table-grid/ai-assistant/ai-assistant-executor.js +264 -0
- package/dist/data-components/table-grid/ai-assistant/ai-assistant-executor.js.map +1 -0
- package/dist/data-components/table-grid/ai-assistant/ai-assistant-mock.d.ts +1 -1
- package/dist/data-components/table-grid/ai-assistant/ai-assistant-mock.js +306 -0
- package/dist/data-components/table-grid/ai-assistant/ai-assistant-mock.js.map +1 -0
- package/dist/data-components/table-grid/ai-assistant/ai-assistant-panel-types.d.ts +1 -1
- package/dist/data-components/table-grid/ai-assistant/ai-assistant-panel-types.js +2 -0
- package/dist/data-components/table-grid/ai-assistant/ai-assistant-panel-types.js.map +1 -0
- package/dist/data-components/table-grid/ai-assistant/ai-assistant-panel.d.ts +1 -1
- package/dist/data-components/table-grid/ai-assistant/ai-assistant-panel.js +33 -0
- package/dist/data-components/table-grid/ai-assistant/ai-assistant-panel.js.map +1 -0
- package/dist/data-components/table-grid/ai-assistant/ai-assistant-schema.d.ts +2 -2
- package/dist/data-components/table-grid/ai-assistant/ai-assistant-schema.js +59 -0
- package/dist/data-components/table-grid/ai-assistant/ai-assistant-schema.js.map +1 -0
- package/dist/data-components/table-grid/ai-assistant/ai-assistant-tools.d.ts +1 -1
- package/dist/data-components/table-grid/ai-assistant/ai-assistant-tools.js +167 -0
- package/dist/data-components/table-grid/ai-assistant/ai-assistant-tools.js.map +1 -0
- package/dist/data-components/table-grid/ai-assistant/ai-assistant-types.d.ts +1 -1
- package/dist/data-components/table-grid/ai-assistant/ai-assistant-types.js +2 -0
- package/dist/data-components/table-grid/ai-assistant/ai-assistant-types.js.map +1 -0
- package/dist/data-components/table-grid/ai-assistant/ai-assistant-validator.d.ts +2 -2
- package/dist/data-components/table-grid/ai-assistant/ai-assistant-validator.js +157 -0
- package/dist/data-components/table-grid/ai-assistant/ai-assistant-validator.js.map +1 -0
- package/dist/data-components/table-grid/external-functionalities/import/csv/autoDetect.js +27 -0
- package/dist/data-components/table-grid/external-functionalities/import/csv/autoDetect.js.map +1 -0
- package/dist/data-components/table-grid/external-functionalities/import/csv/createDataStructureFromFile.d.ts +1 -1
- package/dist/data-components/table-grid/external-functionalities/import/csv/createDataStructureFromFile.js +21 -0
- package/dist/data-components/table-grid/external-functionalities/import/csv/createDataStructureFromFile.js.map +1 -0
- package/dist/data-components/table-grid/external-functionalities/import/csv/csvToObj.js +21 -0
- package/dist/data-components/table-grid/external-functionalities/import/csv/csvToObj.js.map +1 -0
- package/dist/data-components/table-grid/external-functionalities/import/csv/detectDelimeter.js +12 -0
- package/dist/data-components/table-grid/external-functionalities/import/csv/detectDelimeter.js.map +1 -0
- package/dist/data-components/table-grid/external-functionalities/import/csv/index.d.ts +6 -6
- package/dist/data-components/table-grid/external-functionalities/import/csv/index.js +7 -0
- package/dist/data-components/table-grid/external-functionalities/import/csv/index.js.map +1 -0
- package/dist/data-components/table-grid/external-functionalities/import/csv/inferColumns.d.ts +1 -1
- package/dist/data-components/table-grid/external-functionalities/import/csv/inferColumns.js +15 -0
- package/dist/data-components/table-grid/external-functionalities/import/csv/inferColumns.js.map +1 -0
- package/dist/data-components/table-grid/external-functionalities/import/csv/parseDelimeted.js +50 -0
- package/dist/data-components/table-grid/external-functionalities/import/csv/parseDelimeted.js.map +1 -0
- package/dist/data-components/table-grid/footer/table-grid-footer-types.d.ts +1 -1
- package/dist/data-components/table-grid/footer/table-grid-footer-types.js +2 -0
- package/dist/data-components/table-grid/footer/table-grid-footer-types.js.map +1 -0
- package/dist/data-components/table-grid/footer/table-grid-footer.d.ts +1 -1
- package/dist/data-components/table-grid/footer/table-grid-footer.js +47 -0
- package/dist/data-components/table-grid/footer/table-grid-footer.js.map +1 -0
- package/dist/data-components/table-grid/formula/evaluator.js +91 -0
- package/dist/data-components/table-grid/formula/evaluator.js.map +1 -0
- package/dist/data-components/table-grid/formula/formula-builder-types.d.ts +1 -1
- package/dist/data-components/table-grid/formula/formula-builder-types.js +2 -0
- package/dist/data-components/table-grid/formula/formula-builder-types.js.map +1 -0
- package/dist/data-components/table-grid/formula/formula-builder.d.ts +1 -1
- package/dist/data-components/table-grid/formula/formula-builder.js +47 -0
- package/dist/data-components/table-grid/formula/formula-builder.js.map +1 -0
- package/dist/data-components/table-grid/formula/formula.test.js +50 -0
- package/dist/data-components/table-grid/formula/formula.test.js.map +1 -0
- package/dist/data-components/table-grid/formula/index.js +40 -0
- package/dist/data-components/table-grid/formula/index.js.map +1 -0
- package/dist/data-components/table-grid/formula/parser.js +179 -0
- package/dist/data-components/table-grid/formula/parser.js.map +1 -0
- package/dist/data-components/table-grid/formula/tokenizer.js +140 -0
- package/dist/data-components/table-grid/formula/tokenizer.js.map +1 -0
- package/dist/data-components/table-grid/formula/types.js +2 -0
- package/dist/data-components/table-grid/formula/types.js.map +1 -0
- package/dist/data-components/table-grid/header/grouping/group-panel-types.d.ts +1 -1
- package/dist/data-components/table-grid/header/grouping/group-panel-types.js +2 -0
- package/dist/data-components/table-grid/header/grouping/group-panel-types.js.map +1 -0
- package/dist/data-components/table-grid/header/grouping/group-panel.d.ts +1 -1
- package/dist/data-components/table-grid/header/grouping/group-panel.js +91 -0
- package/dist/data-components/table-grid/header/grouping/group-panel.js.map +1 -0
- package/dist/data-components/table-grid/header/table-grid-column-menu.d.ts +1 -1
- package/dist/data-components/table-grid/header/table-grid-column-menu.js +84 -0
- package/dist/data-components/table-grid/header/table-grid-column-menu.js.map +1 -0
- package/dist/data-components/table-grid/header/table-grid-header-types.d.ts +1 -1
- package/dist/data-components/table-grid/header/table-grid-header-types.js +2 -0
- package/dist/data-components/table-grid/header/table-grid-header-types.js.map +1 -0
- package/dist/data-components/table-grid/header/table-grid-header.d.ts +1 -1
- package/dist/data-components/table-grid/header/table-grid-header.js +148 -0
- package/dist/data-components/table-grid/header/table-grid-header.js.map +1 -0
- package/dist/data-components/table-grid/hooks/use-table.d.ts +1 -1
- package/dist/data-components/table-grid/hooks/use-table.js +18 -0
- package/dist/data-components/table-grid/hooks/use-table.js.map +1 -0
- package/dist/data-components/table-grid/pinning/pinning-utils.d.ts +1 -1
- package/dist/data-components/table-grid/pinning/pinning-utils.js +70 -0
- package/dist/data-components/table-grid/pinning/pinning-utils.js.map +1 -0
- package/dist/data-components/table-grid/pivot/pivot-config-panel-types.d.ts +2 -2
- package/dist/data-components/table-grid/pivot/pivot-config-panel-types.js +2 -0
- package/dist/data-components/table-grid/pivot/pivot-config-panel-types.js.map +1 -0
- package/dist/data-components/table-grid/pivot/pivot-config-panel.d.ts +1 -1
- package/dist/data-components/table-grid/pivot/pivot-config-panel.js +89 -0
- package/dist/data-components/table-grid/pivot/pivot-config-panel.js.map +1 -0
- package/dist/data-components/table-grid/pivot/pivot-table.d.ts +1 -1
- package/dist/data-components/table-grid/pivot/pivot-table.js +26 -0
- package/dist/data-components/table-grid/pivot/pivot-table.js.map +1 -0
- package/dist/data-components/table-grid/pivot/pivot-types.d.ts +1 -1
- package/dist/data-components/table-grid/pivot/pivot-types.js +2 -0
- package/dist/data-components/table-grid/pivot/pivot-types.js.map +1 -0
- package/dist/data-components/table-grid/pivot/pivot-utils.d.ts +2 -2
- package/dist/data-components/table-grid/pivot/pivot-utils.js +150 -0
- package/dist/data-components/table-grid/pivot/pivot-utils.js.map +1 -0
- package/dist/data-components/table-grid/row/table-grid-row-types.d.ts +3 -1
- package/dist/data-components/table-grid/row/table-grid-row-types.d.ts.map +1 -1
- package/dist/data-components/table-grid/row/table-grid-row-types.js +2 -0
- package/dist/data-components/table-grid/row/table-grid-row-types.js.map +1 -0
- package/dist/data-components/table-grid/row/table-grid-row-utils.d.ts +2 -2
- package/dist/data-components/table-grid/row/table-grid-row-utils.js +35 -0
- package/dist/data-components/table-grid/row/table-grid-row-utils.js.map +1 -0
- package/dist/data-components/table-grid/row/table-grid-row.d.ts +2 -2
- package/dist/data-components/table-grid/row/table-grid-row.d.ts.map +1 -1
- package/dist/data-components/table-grid/row/table-grid-row.js +68 -0
- package/dist/data-components/table-grid/row/table-grid-row.js.map +1 -0
- package/dist/data-components/table-grid/selection/selection-types.js +2 -0
- package/dist/data-components/table-grid/selection/selection-types.js.map +1 -0
- package/dist/data-components/table-grid/selection/selection-utils.d.ts +2 -2
- package/dist/data-components/table-grid/selection/selection-utils.js +136 -0
- package/dist/data-components/table-grid/selection/selection-utils.js.map +1 -0
- package/dist/data-components/table-grid/sidebar/table-grid-sidebar-types.js +2 -0
- package/dist/data-components/table-grid/sidebar/table-grid-sidebar-types.js.map +1 -0
- package/dist/data-components/table-grid/sidebar/table-grid-sidebar.d.ts +1 -1
- package/dist/data-components/table-grid/sidebar/table-grid-sidebar.js +7 -0
- package/dist/data-components/table-grid/sidebar/table-grid-sidebar.js.map +1 -0
- package/dist/data-components/table-grid/sorting/sorting.d.ts +1 -1
- package/dist/data-components/table-grid/sorting/sorting.js +45 -0
- package/dist/data-components/table-grid/sorting/sorting.js.map +1 -0
- package/dist/data-components/table-grid/table-context/table-context-types.d.ts +2 -2
- package/dist/data-components/table-grid/table-context/table-context-types.js +2 -0
- package/dist/data-components/table-grid/table-context/table-context-types.js.map +1 -0
- package/dist/data-components/table-grid/table-context/table-context.d.ts +2 -2
- package/dist/data-components/table-grid/table-context/table-context.js +4 -0
- package/dist/data-components/table-grid/table-context/table-context.js.map +1 -0
- package/dist/data-components/table-grid/table-grid-context.d.ts +2 -2
- package/dist/data-components/table-grid/table-grid-context.d.ts.map +1 -1
- package/dist/data-components/table-grid/table-grid-context.js +258 -0
- package/dist/data-components/table-grid/table-grid-context.js.map +1 -0
- package/dist/data-components/table-grid/table-grid-types.d.ts +9 -7
- package/dist/data-components/table-grid/table-grid-types.d.ts.map +1 -1
- package/dist/data-components/table-grid/table-grid-types.js +2 -0
- package/dist/data-components/table-grid/table-grid-types.js.map +1 -0
- package/dist/data-components/table-grid/table-grid.d.ts +1 -1
- package/dist/data-components/table-grid/table-grid.d.ts.map +1 -1
- package/dist/data-components/table-grid/table-grid.js +144 -0
- package/dist/data-components/table-grid/table-grid.js.map +1 -0
- package/dist/data-components/table-grid/table-utils.d.ts +1 -1
- package/dist/data-components/table-grid/table-utils.js +116 -0
- package/dist/data-components/table-grid/table-utils.js.map +1 -0
- package/dist/experimental-components/contribution-heatmap/contribution-heatmap-types.js +2 -0
- package/dist/experimental-components/contribution-heatmap/contribution-heatmap-types.js.map +1 -0
- package/dist/experimental-components/contribution-heatmap/contribution-heatmap-utils.d.ts +1 -1
- package/dist/experimental-components/contribution-heatmap/contribution-heatmap-utils.js +61 -0
- package/dist/experimental-components/contribution-heatmap/contribution-heatmap-utils.js.map +1 -0
- package/dist/experimental-components/contribution-heatmap/contribution-heatmap.d.ts +2 -2
- package/dist/experimental-components/contribution-heatmap/contribution-heatmap.js +23 -0
- package/dist/experimental-components/contribution-heatmap/contribution-heatmap.js.map +1 -0
- package/dist/experimental-components/filter-builder/filter-builder-types.d.ts +1 -1
- package/dist/experimental-components/filter-builder/filter-builder-types.js +2 -0
- package/dist/experimental-components/filter-builder/filter-builder-types.js.map +1 -0
- package/dist/experimental-components/filter-builder/filter-builder.d.ts +3 -2
- package/dist/experimental-components/filter-builder/filter-builder.js +139 -0
- package/dist/experimental-components/filter-builder/filter-builder.js.map +1 -0
- package/dist/framework-components/appbar/appbar-assets.js +5 -0
- package/dist/framework-components/appbar/appbar-assets.js.map +1 -0
- package/dist/framework-components/appbar/appbar-types.d.ts +1 -1
- package/dist/framework-components/appbar/appbar-types.js +2 -0
- package/dist/framework-components/appbar/appbar-types.js.map +1 -0
- package/dist/framework-components/appbar/appbar.d.ts +2 -2
- package/dist/framework-components/appbar/appbar.js +36 -0
- package/dist/framework-components/appbar/appbar.js.map +1 -0
- package/dist/framework-components/breadcrumbs/breadcrumbs-types.js +2 -0
- package/dist/framework-components/breadcrumbs/breadcrumbs-types.js.map +1 -0
- package/dist/framework-components/breadcrumbs/breadcrumbs.d.ts +2 -2
- package/dist/framework-components/breadcrumbs/breadcrumbs.js +31 -0
- package/dist/framework-components/breadcrumbs/breadcrumbs.js.map +1 -0
- package/dist/framework-components/drawer/drawer-types.d.ts +2 -2
- package/dist/framework-components/drawer/drawer-types.js +2 -0
- package/dist/framework-components/drawer/drawer-types.js.map +1 -0
- package/dist/framework-components/drawer/drawer.d.ts +2 -2
- package/dist/framework-components/drawer/drawer.js +10 -0
- package/dist/framework-components/drawer/drawer.js.map +1 -0
- package/dist/framework-components/scaffold/scaffold-context.d.ts +2 -2
- package/dist/framework-components/scaffold/scaffold-context.js +10 -0
- package/dist/framework-components/scaffold/scaffold-context.js.map +1 -0
- package/dist/framework-components/scaffold/scaffold-types.d.ts +1 -1
- package/dist/framework-components/scaffold/scaffold-types.js +2 -0
- package/dist/framework-components/scaffold/scaffold-types.js.map +1 -0
- package/dist/framework-components/scaffold/scaffold.d.ts +2 -2
- package/dist/framework-components/scaffold/scaffold.js +76 -0
- package/dist/framework-components/scaffold/scaffold.js.map +1 -0
- package/dist/framework-components/sidebar/sidebar-assets.js +4 -0
- package/dist/framework-components/sidebar/sidebar-assets.js.map +1 -0
- package/dist/framework-components/sidebar/sidebar-context.d.ts +2 -2
- package/dist/framework-components/sidebar/sidebar-context.js +9 -0
- package/dist/framework-components/sidebar/sidebar-context.js.map +1 -0
- package/dist/framework-components/sidebar/sidebar-logo/sidebar-logo-types.js +2 -0
- package/dist/framework-components/sidebar/sidebar-logo/sidebar-logo-types.js.map +1 -0
- package/dist/framework-components/sidebar/sidebar-logo/sidebar-logo.d.ts +1 -1
- package/dist/framework-components/sidebar/sidebar-logo/sidebar-logo.js +12 -0
- package/dist/framework-components/sidebar/sidebar-logo/sidebar-logo.js.map +1 -0
- package/dist/framework-components/sidebar/sidebar-types.d.ts +1 -1
- package/dist/framework-components/sidebar/sidebar-types.js +2 -0
- package/dist/framework-components/sidebar/sidebar-types.js.map +1 -0
- package/dist/framework-components/sidebar/sidebar.d.ts +3 -3
- package/dist/framework-components/sidebar/sidebar.js +42 -0
- package/dist/framework-components/sidebar/sidebar.js.map +1 -0
- package/dist/hooks/useDynamicVirtualList.d.ts +76 -0
- package/dist/hooks/useDynamicVirtualList.d.ts.map +1 -0
- package/dist/hooks/useDynamicVirtualList.js +208 -0
- package/dist/hooks/useDynamicVirtualList.js.map +1 -0
- package/dist/hooks/useFixedVirtualList.d.ts +1 -1
- package/dist/hooks/useFixedVirtualList.js +64 -0
- package/dist/hooks/useFixedVirtualList.js.map +1 -0
- package/dist/hooks/useShortcut.d.ts +1 -1
- package/dist/hooks/useShortcut.js +86 -0
- package/dist/hooks/useShortcut.js.map +1 -0
- package/dist/hooks/useTour/useTour-context-internal.d.ts +2 -2
- package/dist/hooks/useTour/useTour-context-internal.js +7 -0
- package/dist/hooks/useTour/useTour-context-internal.js.map +1 -0
- package/dist/hooks/useTour/useTour-context.d.ts +3 -3
- package/dist/hooks/useTour/useTour-context.js +54 -0
- package/dist/hooks/useTour/useTour-context.js.map +1 -0
- package/dist/hooks/useTour/useTour-types.d.ts +1 -1
- package/dist/hooks/useTour/useTour-types.js +2 -0
- package/dist/hooks/useTour/useTour-types.js.map +1 -0
- package/dist/hooks/useTour/useTour.d.ts +1 -1
- package/dist/hooks/useTour/useTour.js +408 -0
- package/dist/hooks/useTour/useTour.js.map +1 -0
- package/dist/hooks/useVirtualListScroll.d.ts +1 -1
- package/dist/hooks/useVirtualListScroll.js +79 -0
- package/dist/hooks/useVirtualListScroll.js.map +1 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +63 -0
- package/dist/index.js.map +1 -0
- package/dist/providers/ai-assistant/ai-assistant-prompts.d.ts +1 -1
- package/dist/providers/ai-assistant/ai-assistant-prompts.js +98 -0
- package/dist/providers/ai-assistant/ai-assistant-prompts.js.map +1 -0
- package/dist/providers/ai-assistant/ai-assistant-types.js +5 -0
- package/dist/providers/ai-assistant/ai-assistant-types.js.map +1 -0
- package/dist/providers/ai-assistant/ai-assistant-validator.d.ts +1 -1
- package/dist/providers/ai-assistant/ai-assistant-validator.js +74 -0
- package/dist/providers/ai-assistant/ai-assistant-validator.js.map +1 -0
- package/dist/providers/ai-assistant/ai-chat-panel-types.d.ts +1 -1
- package/dist/providers/ai-assistant/ai-chat-panel-types.js +2 -0
- package/dist/providers/ai-assistant/ai-chat-panel-types.js.map +1 -0
- package/dist/providers/ai-assistant/ai-chat-panel.d.ts +1 -1
- package/dist/providers/ai-assistant/ai-chat-panel.js +111 -0
- package/dist/providers/ai-assistant/ai-chat-panel.js.map +1 -0
- package/dist/providers/shortcut/shortcut-context.d.ts +2 -2
- package/dist/providers/shortcut/shortcut-context.js +7 -0
- package/dist/providers/shortcut/shortcut-context.js.map +1 -0
- package/dist/providers/shortcut/shortcut-provider.d.ts +1 -1
- package/dist/providers/shortcut/shortcut-provider.js +267 -0
- package/dist/providers/shortcut/shortcut-provider.js.map +1 -0
- package/dist/providers/theme/index.js +2 -0
- package/dist/providers/theme/index.js.map +1 -0
- package/dist/providers/theme/theme-provider-types.js +2 -0
- package/dist/providers/theme/theme-provider-types.js.map +1 -0
- package/dist/providers/theme/themeProvider.d.ts +2 -2
- package/dist/providers/theme/themeProvider.js +17 -0
- package/dist/providers/theme/themeProvider.js.map +1 -0
- package/dist/test/vitest.utils.js +2 -0
- package/dist/test/vitest.utils.js.map +1 -0
- package/dist/types/global-types.js +10 -0
- package/dist/types/global-types.js.map +1 -0
- package/dist/types/storybook-types.js +2 -0
- package/dist/types/storybook-types.js.map +1 -0
- package/dist/utility-components/avatar/avatar-types.d.ts +1 -1
- package/dist/utility-components/avatar/avatar-types.js +2 -0
- package/dist/utility-components/avatar/avatar-types.js.map +1 -0
- package/dist/utility-components/avatar/avatar.d.ts +2 -2
- package/dist/utility-components/avatar/avatar.js +10 -0
- package/dist/utility-components/avatar/avatar.js.map +1 -0
- package/dist/utility-components/chip/chip-types.d.ts +2 -2
- package/dist/utility-components/chip/chip-types.js +2 -0
- package/dist/utility-components/chip/chip-types.js.map +1 -0
- package/dist/utility-components/chip/chip.d.ts +2 -2
- package/dist/utility-components/chip/chip.js +11 -0
- package/dist/utility-components/chip/chip.js.map +1 -0
- package/dist/utility-components/helper-text/helper-text-types.d.ts +1 -1
- package/dist/utility-components/helper-text/helper-text-types.js +2 -0
- package/dist/utility-components/helper-text/helper-text-types.js.map +1 -0
- package/dist/utility-components/helper-text/helper-text.d.ts +1 -1
- package/dist/utility-components/helper-text/helper-text.js +12 -0
- package/dist/utility-components/helper-text/helper-text.js.map +1 -0
- package/dist/utility-components/icon/icon-assets.js +95 -0
- package/dist/utility-components/icon/icon-assets.js.map +1 -0
- package/dist/utility-components/icon/icon-types.d.ts +1 -1
- package/dist/utility-components/icon/icon-types.js +2 -0
- package/dist/utility-components/icon/icon-types.js.map +1 -0
- package/dist/utility-components/icon/icon.d.ts +2 -2
- package/dist/utility-components/icon/icon.js +28 -0
- package/dist/utility-components/icon/icon.js.map +1 -0
- package/dist/utility-components/label/label-types.js +2 -0
- package/dist/utility-components/label/label-types.js.map +1 -0
- package/dist/utility-components/label/label.d.ts +1 -1
- package/dist/utility-components/label/label.js +10 -0
- package/dist/utility-components/label/label.js.map +1 -0
- package/dist/utility-components/overlay-panel/overlay-panel-types.js +2 -0
- package/dist/utility-components/overlay-panel/overlay-panel-types.js.map +1 -0
- package/dist/utility-components/overlay-panel/overlay-panel.d.ts +2 -2
- package/dist/utility-components/overlay-panel/overlay-panel.js +98 -0
- package/dist/utility-components/overlay-panel/overlay-panel.js.map +1 -0
- package/dist/utility-components/overlay-panel/use-focus-trap.d.ts +1 -1
- package/dist/utility-components/overlay-panel/use-focus-trap.js +61 -0
- package/dist/utility-components/overlay-panel/use-focus-trap.js.map +1 -0
- package/dist/utility-components/skeleton/skeleton-types.js +2 -0
- package/dist/utility-components/skeleton/skeleton-types.js.map +1 -0
- package/dist/utility-components/skeleton/skeleton.d.ts +2 -2
- package/dist/utility-components/skeleton/skeleton.js +14 -0
- package/dist/utility-components/skeleton/skeleton.js.map +1 -0
- package/dist/utility-components/stack/stack-types.js +2 -0
- package/dist/utility-components/stack/stack-types.js.map +1 -0
- package/dist/utility-components/stack/stack.d.ts +2 -2
- package/dist/utility-components/stack/stack.js +12 -0
- package/dist/utility-components/stack/stack.js.map +1 -0
- package/dist/utility-components/toast/toast-types.d.ts +1 -1
- package/dist/utility-components/toast/toast-types.js +2 -0
- package/dist/utility-components/toast/toast-types.js.map +1 -0
- package/dist/utility-components/toast/toast.d.ts +2 -2
- package/dist/utility-components/toast/toast.js +21 -0
- package/dist/utility-components/toast/toast.js.map +1 -0
- package/dist/utils/general.d.ts +1 -1
- package/dist/utils/general.js +27 -0
- package/dist/utils/general.js.map +1 -0
- package/dist/utils/shortcut-utils.js +164 -0
- package/dist/utils/shortcut-utils.js.map +1 -0
- package/package.json +1 -1
- package/dist/assets/svg/alert.svg +0 -1
- package/dist/assets/svg/arrow-down-up.svg +0 -1
- package/dist/assets/svg/arrow-down.svg +0 -1
- package/dist/assets/svg/arrow-left.svg +0 -1
- package/dist/assets/svg/arrow-right.svg +0 -1
- package/dist/assets/svg/arrow-up.svg +0 -1
- package/dist/assets/svg/arrow_drop_down.svg +0 -1
- package/dist/assets/svg/calendar.svg +0 -1
- package/dist/assets/svg/check.svg +0 -1
- package/dist/assets/svg/chevron-down.svg +0 -1
- package/dist/assets/svg/chevron-right.svg +0 -1
- package/dist/assets/svg/clipboard.svg +0 -1
- package/dist/assets/svg/close.svg +0 -1
- package/dist/assets/svg/copy.svg +0 -1
- package/dist/assets/svg/cursor.svg +0 -1
- package/dist/assets/svg/cut.svg +0 -1
- package/dist/assets/svg/delete.svg +0 -1
- package/dist/assets/svg/dock-left-arrow.svg +0 -1
- package/dist/assets/svg/dock-right-arrow.svg +0 -1
- package/dist/assets/svg/document-outline.svg +0 -1
- package/dist/assets/svg/download.svg +0 -1
- package/dist/assets/svg/drag.svg +0 -1
- package/dist/assets/svg/error.svg +0 -1
- package/dist/assets/svg/expand-right.svg +0 -1
- package/dist/assets/svg/expand.svg +0 -1
- package/dist/assets/svg/eye.svg +0 -1
- package/dist/assets/svg/fullscreen.svg +0 -1
- package/dist/assets/svg/gear.svg +0 -1
- package/dist/assets/svg/groups.svg +0 -1
- package/dist/assets/svg/help.svg +0 -1
- package/dist/assets/svg/info.svg +0 -1
- package/dist/assets/svg/logo.svg +0 -9
- package/dist/assets/svg/menu.svg +0 -1
- package/dist/assets/svg/message-bubble-question-mark.svg +0 -1
- package/dist/assets/svg/pencil.svg +0 -1
- package/dist/assets/svg/plus.svg +0 -1
- package/dist/assets/svg/restio.svg +0 -5
- package/dist/assets/svg/search.svg +0 -1
- package/dist/assets/svg/send.svg +0 -1
- package/dist/assets/svg/shrink-right.svg +0 -1
- package/dist/assets/svg/sidebar.svg +0 -1
- package/dist/assets/svg/terminal.svg +0 -1
- package/dist/assets/svg/timer.svg +0 -1
- package/dist/assets/svg/warning.svg +0 -1
- package/dist/assets/svg/zoom-minus.svg +0 -1
- package/dist/assets/svg/zoom-plus.svg +0 -1
- package/dist/restio-ui.cjs.js +0 -109
- package/dist/restio-ui.es.js +0 -34431
- package/dist/ui.css +0 -2
|
@@ -0,0 +1,408 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
+
import { useState, useCallback, useEffect, useRef, useContext } from "react";
|
|
3
|
+
import { Button } from "../../components/button/button";
|
|
4
|
+
import { Stack } from "../../utility-components/stack/stack";
|
|
5
|
+
import { Skeleton } from "../../utility-components/skeleton/skeleton";
|
|
6
|
+
import { TourContext } from "./useTour-context-internal";
|
|
7
|
+
import styles from "./useTour.module.css";
|
|
8
|
+
import Typography from "../../components/typography/typography";
|
|
9
|
+
// ─── Placement helpers ────────────────────────────────────────────────────────
|
|
10
|
+
function computePlacement(rect, preferred) {
|
|
11
|
+
if (preferred !== "auto")
|
|
12
|
+
return preferred;
|
|
13
|
+
const spaceTop = rect.top;
|
|
14
|
+
const spaceBottom = window.innerHeight - rect.bottom;
|
|
15
|
+
const spaceLeft = rect.left;
|
|
16
|
+
const spaceRight = window.innerWidth - rect.right;
|
|
17
|
+
const max = Math.max(spaceBottom, spaceTop, spaceLeft, spaceRight);
|
|
18
|
+
if (max === spaceBottom)
|
|
19
|
+
return "bottom";
|
|
20
|
+
if (max === spaceTop)
|
|
21
|
+
return "top";
|
|
22
|
+
if (max === spaceRight)
|
|
23
|
+
return "right";
|
|
24
|
+
return "left";
|
|
25
|
+
}
|
|
26
|
+
function computeTooltipPosition(paddedRect, placement) {
|
|
27
|
+
const sx = window.scrollX;
|
|
28
|
+
const sy = window.scrollY;
|
|
29
|
+
switch (placement) {
|
|
30
|
+
case "top":
|
|
31
|
+
return { top: paddedRect.top + sy, left: paddedRect.left + sx, placement };
|
|
32
|
+
case "bottom":
|
|
33
|
+
return { top: paddedRect.bottom + sy + 12, left: paddedRect.left + sx, placement };
|
|
34
|
+
case "right":
|
|
35
|
+
return { top: paddedRect.top + sy, left: paddedRect.right + sx + 12, placement };
|
|
36
|
+
case "left":
|
|
37
|
+
return { top: paddedRect.top + sy, left: paddedRect.left + sx, placement };
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
// ─── Progress helpers ─────────────────────────────────────────────────────────
|
|
41
|
+
function buildProgress(overrides = {}) {
|
|
42
|
+
return {
|
|
43
|
+
currentStepIndex: 0,
|
|
44
|
+
completedSteps: [],
|
|
45
|
+
skippedSteps: [],
|
|
46
|
+
completed: false,
|
|
47
|
+
startedAt: Date.now(),
|
|
48
|
+
...overrides,
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
// ─── Main hook ────────────────────────────────────────────────────────────────
|
|
52
|
+
export function useTour(options) {
|
|
53
|
+
const { tourId, steps, persistence, analytics, autoScroll = true, autoScrollOptions = { behavior: "smooth", block: "center" }, onComplete, onStart, } = options;
|
|
54
|
+
const [activeStep, setActiveStep] = useState(null);
|
|
55
|
+
const [rect, setRect] = useState(null);
|
|
56
|
+
const [isLoading, setIsLoading] = useState(false);
|
|
57
|
+
const [isComplete, setIsComplete] = useState(false);
|
|
58
|
+
const [progress, setProgress] = useState(null);
|
|
59
|
+
const stepStartTimeRef = useRef(0);
|
|
60
|
+
const completedStepsRef = useRef(new Set());
|
|
61
|
+
const skippedStepsRef = useRef(new Set());
|
|
62
|
+
const instanceRef = useRef(null);
|
|
63
|
+
// nextRef lets trigger listeners always call the latest next() without
|
|
64
|
+
// being recreated (avoids re-attaching listeners on every render).
|
|
65
|
+
const nextRef = useRef(() => { });
|
|
66
|
+
// navGenRef is incremented on every navigation (next, prev, skip, start,
|
|
67
|
+
// resume, stop, reset). runBeforeShow captures it before await and bails
|
|
68
|
+
// out if the user has already navigated away before the promise resolves.
|
|
69
|
+
const navGenRef = useRef(0);
|
|
70
|
+
// Stable ref for options that change identity every render
|
|
71
|
+
const stepsRef = useRef(steps);
|
|
72
|
+
stepsRef.current = steps;
|
|
73
|
+
const autoScrollRef = useRef(autoScroll);
|
|
74
|
+
autoScrollRef.current = autoScroll;
|
|
75
|
+
const autoScrollOptionsRef = useRef(autoScrollOptions);
|
|
76
|
+
autoScrollOptionsRef.current = autoScrollOptions;
|
|
77
|
+
const ctx = useContext(TourContext);
|
|
78
|
+
// ─── Load persisted progress on mount ────────────────────────────────────
|
|
79
|
+
useEffect(() => {
|
|
80
|
+
if (!persistence)
|
|
81
|
+
return;
|
|
82
|
+
const load = async () => {
|
|
83
|
+
const saved = await Promise.resolve(persistence.getProgress(tourId));
|
|
84
|
+
if (saved) {
|
|
85
|
+
setProgress(saved);
|
|
86
|
+
if (saved.completed)
|
|
87
|
+
setIsComplete(true);
|
|
88
|
+
completedStepsRef.current = new Set(saved.completedSteps);
|
|
89
|
+
skippedStepsRef.current = new Set(saved.skippedSteps);
|
|
90
|
+
}
|
|
91
|
+
};
|
|
92
|
+
load();
|
|
93
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
94
|
+
}, [tourId]);
|
|
95
|
+
// ─── Register / unregister with TourContext ───────────────────────────────
|
|
96
|
+
useEffect(() => {
|
|
97
|
+
if (!ctx)
|
|
98
|
+
return;
|
|
99
|
+
ctx.registerTour(tourId, instanceRef.current);
|
|
100
|
+
return () => ctx.unregisterTour(tourId);
|
|
101
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
102
|
+
}, [tourId]);
|
|
103
|
+
// ─── Rect update ─────────────────────────────────────────────────────────
|
|
104
|
+
// Uses refs for steps/autoScroll so the function identity is stable and
|
|
105
|
+
// never causes cascading useEffect re-runs.
|
|
106
|
+
const updateRect = useCallback((stepIndex) => {
|
|
107
|
+
if (stepIndex === null) {
|
|
108
|
+
setRect(null);
|
|
109
|
+
return;
|
|
110
|
+
}
|
|
111
|
+
const step = stepsRef.current[stepIndex];
|
|
112
|
+
if (!step) {
|
|
113
|
+
setRect(null);
|
|
114
|
+
return;
|
|
115
|
+
}
|
|
116
|
+
const el = document.querySelector(step.selector);
|
|
117
|
+
if (!el) {
|
|
118
|
+
setRect(null);
|
|
119
|
+
return;
|
|
120
|
+
}
|
|
121
|
+
if (autoScrollRef.current)
|
|
122
|
+
el.scrollIntoView(autoScrollOptionsRef.current);
|
|
123
|
+
setRect(el.getBoundingClientRect());
|
|
124
|
+
// stable: only uses refs, never re-created
|
|
125
|
+
}, []);
|
|
126
|
+
// Reposition on resize/scroll
|
|
127
|
+
useEffect(() => {
|
|
128
|
+
if (activeStep === null)
|
|
129
|
+
return;
|
|
130
|
+
const handle = () => updateRect(activeStep);
|
|
131
|
+
window.addEventListener("resize", handle);
|
|
132
|
+
window.addEventListener("scroll", handle, true);
|
|
133
|
+
return () => {
|
|
134
|
+
window.removeEventListener("resize", handle);
|
|
135
|
+
window.removeEventListener("scroll", handle, true);
|
|
136
|
+
};
|
|
137
|
+
}, [activeStep, updateRect]);
|
|
138
|
+
// Update rect when active step changes
|
|
139
|
+
useEffect(() => {
|
|
140
|
+
updateRect(activeStep);
|
|
141
|
+
// updateRect is stable (no deps), activeStep changes trigger this once.
|
|
142
|
+
}, [activeStep, updateRect]);
|
|
143
|
+
// ─── Interaction trigger ───────────────────────────────────────────────────────
|
|
144
|
+
// Attach element-level listeners so interacting with the highlighted element
|
|
145
|
+
// (click, change, or a custom handler) automatically advances the step.
|
|
146
|
+
// Uses nextRef so listeners are never stale without needing to re-attach.
|
|
147
|
+
useEffect(() => {
|
|
148
|
+
if (activeStep === null || isLoading)
|
|
149
|
+
return;
|
|
150
|
+
const step = stepsRef.current[activeStep];
|
|
151
|
+
if (!step?.trigger || step.trigger === "manual")
|
|
152
|
+
return;
|
|
153
|
+
const el = document.querySelector(step.selector);
|
|
154
|
+
if (!el)
|
|
155
|
+
return;
|
|
156
|
+
const advance = () => nextRef.current();
|
|
157
|
+
if (typeof step.trigger === "function") {
|
|
158
|
+
return step.trigger(el, advance);
|
|
159
|
+
}
|
|
160
|
+
if (step.trigger === "click") {
|
|
161
|
+
el.addEventListener("click", advance);
|
|
162
|
+
return () => el.removeEventListener("click", advance);
|
|
163
|
+
}
|
|
164
|
+
// 'change' — useful for inputs, selects, checkboxes
|
|
165
|
+
el.addEventListener("change", advance);
|
|
166
|
+
el.addEventListener("input", advance);
|
|
167
|
+
return () => {
|
|
168
|
+
el.removeEventListener("change", advance);
|
|
169
|
+
el.removeEventListener("input", advance);
|
|
170
|
+
};
|
|
171
|
+
}, [activeStep, isLoading]);
|
|
172
|
+
// ─── Helpers ──────────────────────────────────────────────────────────────
|
|
173
|
+
const saveProgress = useCallback((p) => {
|
|
174
|
+
persistence?.saveProgress(tourId, p);
|
|
175
|
+
}, [persistence, tourId]);
|
|
176
|
+
const runBeforeShow = useCallback(async (step) => {
|
|
177
|
+
if (!step.beforeShow)
|
|
178
|
+
return;
|
|
179
|
+
const gen = ++navGenRef.current;
|
|
180
|
+
setIsLoading(true);
|
|
181
|
+
try {
|
|
182
|
+
await step.beforeShow();
|
|
183
|
+
}
|
|
184
|
+
finally {
|
|
185
|
+
// Only clear loading if no newer navigation has started since we began.
|
|
186
|
+
if (navGenRef.current === gen)
|
|
187
|
+
setIsLoading(false);
|
|
188
|
+
}
|
|
189
|
+
}, []);
|
|
190
|
+
// ─── Actions ─────────────────────────────────────────────────────────────
|
|
191
|
+
const start = useCallback(() => {
|
|
192
|
+
if (steps.length === 0)
|
|
193
|
+
return;
|
|
194
|
+
completedStepsRef.current = new Set();
|
|
195
|
+
skippedStepsRef.current = new Set();
|
|
196
|
+
const p = buildProgress();
|
|
197
|
+
setProgress(p);
|
|
198
|
+
setIsComplete(false);
|
|
199
|
+
setActiveStep(0);
|
|
200
|
+
stepStartTimeRef.current = Date.now();
|
|
201
|
+
analytics?.onTourStart?.({ tourId, totalSteps: steps.length, completedSteps: [], skippedSteps: [] });
|
|
202
|
+
onStart?.();
|
|
203
|
+
ctx?.setActiveTourId(tourId);
|
|
204
|
+
runBeforeShow(steps[0]);
|
|
205
|
+
}, [steps, analytics, tourId, onStart, ctx, runBeforeShow]);
|
|
206
|
+
const stop = useCallback(() => {
|
|
207
|
+
navGenRef.current++;
|
|
208
|
+
setIsLoading(false);
|
|
209
|
+
setActiveStep((current) => {
|
|
210
|
+
if (current !== null && !isComplete) {
|
|
211
|
+
const step = steps[current];
|
|
212
|
+
analytics?.onTourDrop?.({
|
|
213
|
+
tourId,
|
|
214
|
+
totalSteps: steps.length,
|
|
215
|
+
completedSteps: [...completedStepsRef.current],
|
|
216
|
+
skippedSteps: [...skippedStepsRef.current],
|
|
217
|
+
dropStepId: step?.id ?? "",
|
|
218
|
+
dropStepIndex: current,
|
|
219
|
+
});
|
|
220
|
+
const p = buildProgress({
|
|
221
|
+
currentStepIndex: current,
|
|
222
|
+
completedSteps: [...completedStepsRef.current],
|
|
223
|
+
skippedSteps: [...skippedStepsRef.current],
|
|
224
|
+
completed: false,
|
|
225
|
+
startedAt: progress?.startedAt ?? Date.now(),
|
|
226
|
+
});
|
|
227
|
+
saveProgress(p);
|
|
228
|
+
setProgress(p);
|
|
229
|
+
}
|
|
230
|
+
return null;
|
|
231
|
+
});
|
|
232
|
+
ctx?.setActiveTourId(null);
|
|
233
|
+
}, [isComplete, steps, analytics, tourId, progress, saveProgress, ctx]);
|
|
234
|
+
const resume = useCallback(async () => {
|
|
235
|
+
const saved = persistence ? await Promise.resolve(persistence.getProgress(tourId)) : progress;
|
|
236
|
+
if (!saved || saved.completed) {
|
|
237
|
+
start();
|
|
238
|
+
return;
|
|
239
|
+
}
|
|
240
|
+
completedStepsRef.current = new Set(saved.completedSteps);
|
|
241
|
+
skippedStepsRef.current = new Set(saved.skippedSteps);
|
|
242
|
+
setProgress(saved);
|
|
243
|
+
setIsComplete(false);
|
|
244
|
+
const idx = Math.min(saved.currentStepIndex, steps.length - 1);
|
|
245
|
+
setActiveStep(idx);
|
|
246
|
+
stepStartTimeRef.current = Date.now();
|
|
247
|
+
analytics?.onTourStart?.({
|
|
248
|
+
tourId,
|
|
249
|
+
totalSteps: steps.length,
|
|
250
|
+
completedSteps: saved.completedSteps,
|
|
251
|
+
skippedSteps: saved.skippedSteps,
|
|
252
|
+
});
|
|
253
|
+
ctx?.setActiveTourId(tourId);
|
|
254
|
+
runBeforeShow(steps[idx]);
|
|
255
|
+
}, [persistence, tourId, progress, steps, start, analytics, ctx, runBeforeShow]);
|
|
256
|
+
const advanceTo = useCallback((nextIndex, currentIndex, wasSkipped) => {
|
|
257
|
+
const timeSpentMs = Date.now() - stepStartTimeRef.current;
|
|
258
|
+
const currentStep = steps[currentIndex];
|
|
259
|
+
currentStep.afterLeave?.();
|
|
260
|
+
if (wasSkipped) {
|
|
261
|
+
skippedStepsRef.current.add(currentStep.id);
|
|
262
|
+
analytics?.onStepSkip?.({ tourId, stepId: currentStep.id, stepIndex: currentIndex, timeSpentMs });
|
|
263
|
+
}
|
|
264
|
+
else {
|
|
265
|
+
completedStepsRef.current.add(currentStep.id);
|
|
266
|
+
analytics?.onStepComplete?.({ tourId, stepId: currentStep.id, stepIndex: currentIndex, timeSpentMs });
|
|
267
|
+
}
|
|
268
|
+
if (nextIndex >= steps.length) {
|
|
269
|
+
const finalProgress = buildProgress({
|
|
270
|
+
currentStepIndex: currentIndex,
|
|
271
|
+
completedSteps: [...completedStepsRef.current],
|
|
272
|
+
skippedSteps: [...skippedStepsRef.current],
|
|
273
|
+
completed: true,
|
|
274
|
+
startedAt: progress?.startedAt ?? Date.now(),
|
|
275
|
+
});
|
|
276
|
+
setProgress(finalProgress);
|
|
277
|
+
setIsComplete(true);
|
|
278
|
+
setActiveStep(null);
|
|
279
|
+
saveProgress(finalProgress);
|
|
280
|
+
analytics?.onTourComplete?.({
|
|
281
|
+
tourId,
|
|
282
|
+
totalSteps: steps.length,
|
|
283
|
+
completedSteps: [...completedStepsRef.current],
|
|
284
|
+
skippedSteps: [...skippedStepsRef.current],
|
|
285
|
+
});
|
|
286
|
+
onComplete?.();
|
|
287
|
+
return;
|
|
288
|
+
}
|
|
289
|
+
stepStartTimeRef.current = Date.now();
|
|
290
|
+
const p = buildProgress({
|
|
291
|
+
currentStepIndex: nextIndex,
|
|
292
|
+
completedSteps: [...completedStepsRef.current],
|
|
293
|
+
skippedSteps: [...skippedStepsRef.current],
|
|
294
|
+
startedAt: progress?.startedAt ?? Date.now(),
|
|
295
|
+
});
|
|
296
|
+
setProgress(p);
|
|
297
|
+
setActiveStep(nextIndex);
|
|
298
|
+
saveProgress(p);
|
|
299
|
+
analytics?.onStepStart?.({ tourId, stepId: steps[nextIndex].id, stepIndex: nextIndex, timeSpentMs: 0 });
|
|
300
|
+
runBeforeShow(steps[nextIndex]);
|
|
301
|
+
}, [steps, analytics, tourId, progress, saveProgress, onComplete, runBeforeShow]);
|
|
302
|
+
const next = useCallback(() => {
|
|
303
|
+
setActiveStep((current) => {
|
|
304
|
+
if (current === null)
|
|
305
|
+
return null;
|
|
306
|
+
advanceTo(current + 1, current, false);
|
|
307
|
+
return current;
|
|
308
|
+
});
|
|
309
|
+
}, [advanceTo]);
|
|
310
|
+
const skip = useCallback(() => {
|
|
311
|
+
setActiveStep((current) => {
|
|
312
|
+
if (current === null)
|
|
313
|
+
return null;
|
|
314
|
+
const step = steps[current];
|
|
315
|
+
if (step.skipable === false)
|
|
316
|
+
return current;
|
|
317
|
+
advanceTo(current + 1, current, true);
|
|
318
|
+
return current;
|
|
319
|
+
});
|
|
320
|
+
}, [advanceTo, steps]);
|
|
321
|
+
const prev = useCallback(() => {
|
|
322
|
+
// Increment generation to cancel any in-flight beforeShow and clear
|
|
323
|
+
// the skeleton immediately — prev() never runs beforeShow on the target.
|
|
324
|
+
navGenRef.current++;
|
|
325
|
+
setIsLoading(false);
|
|
326
|
+
setActiveStep((current) => {
|
|
327
|
+
if (current === null || current === 0)
|
|
328
|
+
return current;
|
|
329
|
+
stepStartTimeRef.current = Date.now();
|
|
330
|
+
return current - 1;
|
|
331
|
+
});
|
|
332
|
+
}, []);
|
|
333
|
+
const reset = useCallback(async () => {
|
|
334
|
+
navGenRef.current++;
|
|
335
|
+
setIsLoading(false);
|
|
336
|
+
if (persistence)
|
|
337
|
+
await Promise.resolve(persistence.clearProgress(tourId));
|
|
338
|
+
completedStepsRef.current = new Set();
|
|
339
|
+
skippedStepsRef.current = new Set();
|
|
340
|
+
setProgress(null);
|
|
341
|
+
setIsComplete(false);
|
|
342
|
+
setActiveStep(null);
|
|
343
|
+
setRect(null);
|
|
344
|
+
}, [persistence, tourId]);
|
|
345
|
+
const replay = useCallback(async () => {
|
|
346
|
+
await reset();
|
|
347
|
+
setTimeout(start, 0);
|
|
348
|
+
}, [reset, start]);
|
|
349
|
+
// ─── Render ───────────────────────────────────────────────────────────────
|
|
350
|
+
const render = useCallback(() => {
|
|
351
|
+
if (activeStep === null)
|
|
352
|
+
return null;
|
|
353
|
+
const step = steps[activeStep];
|
|
354
|
+
const padding = 8;
|
|
355
|
+
if (isLoading || !rect) {
|
|
356
|
+
return (_jsx("div", { className: styles["rst-tour-backdrop-loading"], onClick: stop, children: _jsxs("div", { className: `${styles["rst-tour-tooltip"]} ${styles["rst-tour-tooltip--loading"]}`, "data-placement": "bottom", children: [_jsx(Skeleton, { height: 16, width: 120 }), _jsx(Skeleton, { height: 52, width: 220 })] }) }));
|
|
357
|
+
}
|
|
358
|
+
const paddedRect = {
|
|
359
|
+
top: rect.top - padding,
|
|
360
|
+
left: rect.left - padding,
|
|
361
|
+
width: rect.width + padding * 2,
|
|
362
|
+
height: rect.height + padding * 2,
|
|
363
|
+
right: rect.right + padding,
|
|
364
|
+
bottom: rect.bottom + padding,
|
|
365
|
+
};
|
|
366
|
+
const resolved = computePlacement(rect, step.placement ?? "auto");
|
|
367
|
+
const pos = computeTooltipPosition(paddedRect, resolved);
|
|
368
|
+
const isFirst = activeStep === 0;
|
|
369
|
+
const isLast = activeStep === steps.length - 1;
|
|
370
|
+
const canSkip = step.skipable !== false;
|
|
371
|
+
const progressPct = steps.length > 1 ? (activeStep / (steps.length - 1)) * 100 : 100;
|
|
372
|
+
return (_jsxs(_Fragment, { children: [_jsx("svg", { className: styles["rst-tour-backdrop"], children: _jsx("path", { d: [
|
|
373
|
+
// Outer frame (clockwise) — large enough to cover any viewport
|
|
374
|
+
`M 0 0 L 10000 0 L 10000 10000 L 0 10000 Z`,
|
|
375
|
+
// Inner hole (also clockwise — evenodd rule makes it transparent)
|
|
376
|
+
`M ${paddedRect.left} ${paddedRect.top}`,
|
|
377
|
+
`L ${paddedRect.right} ${paddedRect.top}`,
|
|
378
|
+
`L ${paddedRect.right} ${paddedRect.bottom}`,
|
|
379
|
+
`L ${paddedRect.left} ${paddedRect.bottom} Z`,
|
|
380
|
+
].join(" "), fill: "oklch(0% 0 0deg / 60%)", fillRule: "evenodd", className: styles["rst-tour-backdrop-path"], onClick: stop }) }), _jsx("div", { className: styles["rst-tour-spotlight"], style: {
|
|
381
|
+
top: paddedRect.top + window.scrollY,
|
|
382
|
+
left: paddedRect.left + window.scrollX,
|
|
383
|
+
width: paddedRect.width,
|
|
384
|
+
height: paddedRect.height,
|
|
385
|
+
} }), _jsxs("div", { className: styles["rst-tour-tooltip"], "data-placement": pos.placement, style: { top: pos.top, left: pos.left }, children: [_jsx("div", { children: _jsx(Button, { leadingVisual: "close", size: "small", variant: "invisible", value: "", onClick: stop }) }), _jsx("div", { className: styles["rst-tour-progress-bar"], children: _jsx("div", { className: styles["rst-tour-progress-fill"], style: { width: `${progressPct}%` } }) }), _jsxs("div", { className: styles["rst-tour-step-counter"], children: [activeStep + 1, " / ", steps.length] }), step.title && _jsx(Typography, { variant: "title", children: step.title }), _jsx("div", { className: styles["rst-tour-tooltip-content"], children: step.content }), _jsxs("div", { className: styles["rst-tour-button-group"], children: [canSkip && !isLast && _jsx(Button, { size: "small", variant: "invisible", value: "Skip", onClick: skip }), _jsxs(Stack, { direction: "row", gap: 1, children: [!isFirst && _jsx(Button, { size: "small", variant: "invisible", value: "Prev", onClick: prev }), isLast ? (_jsx(Button, { size: "small", variant: "primary", value: "Finish", onClick: next })) : (_jsx(Button, { size: "small", variant: "primary", value: "Next", onClick: next }))] })] })] })] }));
|
|
386
|
+
}, [activeStep, rect, steps, isLoading, skip, prev, next, stop]);
|
|
387
|
+
// ─── Build and keep instance ref in sync ─────────────────────────────────
|
|
388
|
+
// Keep nextRef current so trigger listeners always call the latest next().
|
|
389
|
+
nextRef.current = next;
|
|
390
|
+
const instance = {
|
|
391
|
+
start,
|
|
392
|
+
resume,
|
|
393
|
+
stop,
|
|
394
|
+
next,
|
|
395
|
+
prev,
|
|
396
|
+
skip,
|
|
397
|
+
reset,
|
|
398
|
+
replay,
|
|
399
|
+
activeStep,
|
|
400
|
+
isLoading,
|
|
401
|
+
isComplete,
|
|
402
|
+
progress,
|
|
403
|
+
render,
|
|
404
|
+
};
|
|
405
|
+
instanceRef.current = instance;
|
|
406
|
+
return instance;
|
|
407
|
+
}
|
|
408
|
+
//# sourceMappingURL=useTour.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useTour.js","sourceRoot":"","sources":["../../../src/hooks/useTour/useTour.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAE7E,OAAO,EAAE,MAAM,EAAE,MAAM,gCAAgC,CAAC;AACxD,OAAO,EAAE,KAAK,EAAE,MAAM,sCAAsC,CAAC;AAC7D,OAAO,EAAE,QAAQ,EAAE,MAAM,4CAA4C,CAAC;AACtE,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AAEzD,OAAO,MAAM,MAAM,sBAAsB,CAAC;AAC1C,OAAO,UAAU,MAAM,wCAAwC,CAAC;AAEhE,iFAAiF;AAEjF,SAAS,gBAAgB,CAAC,IAAa,EAAE,SAAwB;IAC/D,IAAI,SAAS,KAAK,MAAM;QAAE,OAAO,SAAS,CAAC;IAE3C,MAAM,QAAQ,GAAG,IAAI,CAAC,GAAG,CAAC;IAC1B,MAAM,WAAW,GAAG,MAAM,CAAC,WAAW,GAAG,IAAI,CAAC,MAAM,CAAC;IACrD,MAAM,SAAS,GAAG,IAAI,CAAC,IAAI,CAAC;IAC5B,MAAM,UAAU,GAAG,MAAM,CAAC,UAAU,GAAG,IAAI,CAAC,KAAK,CAAC;IAElD,MAAM,GAAG,GAAG,IAAI,CAAC,GAAG,CAAC,WAAW,EAAE,QAAQ,EAAE,SAAS,EAAE,UAAU,CAAC,CAAC;IAEnE,IA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C7B,KAAK;QACL,MAAM;QACN,IAAI;QACJ,IAAI;QACJ,IAAI;QACJ,IAAI;QACJ,KAAK;QACL,MAAM;QACN,UAAU;QACV,SAAS;QACT,UAAU;QACV,QAAQ;QACR,MAAM;KACP,CAAC;IACF,WAAW,CAAC,OAAO,GAAG,QAAQ,CAAC;IAE/B,OAAO,QAAQ,CAAC;AAClB,CAAC"}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { useCallback, useRef, useState } from "react";
|
|
2
|
+
/**
|
|
3
|
+
* A custom hook to implement virtual scrolling for a list of items.
|
|
4
|
+
*
|
|
5
|
+
* @param items - The list of items to be displayed
|
|
6
|
+
* @param itemHeight - Height of each item in pixels
|
|
7
|
+
* @param containerHeight - Height of the visible container
|
|
8
|
+
* @param overscan - Number of extra items to render above/below viewport
|
|
9
|
+
*/
|
|
10
|
+
export function useVirtualListScroll({ items, itemHeight, containerHeight, overscan = 5, }) {
|
|
11
|
+
// Track the scroll position
|
|
12
|
+
const [scrollTop, setScrollTop] = useState(0);
|
|
13
|
+
// Reference to the scrollable container element
|
|
14
|
+
const containerRef = useRef(null);
|
|
15
|
+
// Calculate the total height of all items
|
|
16
|
+
const totalHeight = items.length * itemHeight;
|
|
17
|
+
// Calculate which items should be visible
|
|
18
|
+
const startIndex = Math.max(0, Math.floor(scrollTop / itemHeight) - overscan);
|
|
19
|
+
const endIndex = Math.min(items.length - 1, Math.floor((scrollTop + containerHeight) / itemHeight) + overscan);
|
|
20
|
+
// Create the array of virtual items that should be rendered
|
|
21
|
+
const virtualItems = [];
|
|
22
|
+
for (let i = startIndex; i <= endIndex; i++) {
|
|
23
|
+
virtualItems.push({
|
|
24
|
+
item: items[i],
|
|
25
|
+
index: i,
|
|
26
|
+
offsetTop: i * itemHeight,
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
// Handle scroll events
|
|
30
|
+
const handleScroll = useCallback((event) => {
|
|
31
|
+
const scrollTop = event.target.scrollTop;
|
|
32
|
+
setScrollTop(scrollTop);
|
|
33
|
+
}, []);
|
|
34
|
+
// Handle scroll to view element in the list with keyboard
|
|
35
|
+
const scrollToIndex = (index) => {
|
|
36
|
+
if (!containerRef.current)
|
|
37
|
+
return;
|
|
38
|
+
const itemTop = index * itemHeight;
|
|
39
|
+
const itemBottom = itemTop + itemHeight;
|
|
40
|
+
const container = containerRef.current;
|
|
41
|
+
const containerScrollTop = container.scrollTop;
|
|
42
|
+
const containerBottom = containerScrollTop + containerHeight;
|
|
43
|
+
if (itemTop < containerScrollTop) {
|
|
44
|
+
container.scrollTop = itemTop;
|
|
45
|
+
}
|
|
46
|
+
else if (itemBottom > containerBottom) {
|
|
47
|
+
container.scrollTop = itemBottom - containerHeight;
|
|
48
|
+
}
|
|
49
|
+
};
|
|
50
|
+
return {
|
|
51
|
+
virtualItems,
|
|
52
|
+
containerProps: {
|
|
53
|
+
ref: containerRef,
|
|
54
|
+
style: {
|
|
55
|
+
maxHeight: `${containerHeight}px`,
|
|
56
|
+
overflowY: "auto",
|
|
57
|
+
position: "relative",
|
|
58
|
+
willChange: "transform",
|
|
59
|
+
},
|
|
60
|
+
onScroll: handleScroll,
|
|
61
|
+
},
|
|
62
|
+
innerProps: {
|
|
63
|
+
style: {
|
|
64
|
+
height: `${totalHeight}px`,
|
|
65
|
+
position: "relative",
|
|
66
|
+
width: "100%",
|
|
67
|
+
},
|
|
68
|
+
},
|
|
69
|
+
scrollInfo: {
|
|
70
|
+
scrollTop,
|
|
71
|
+
viewportHeight: containerHeight,
|
|
72
|
+
totalHeight,
|
|
73
|
+
startIndex,
|
|
74
|
+
endIndex,
|
|
75
|
+
},
|
|
76
|
+
scrollToIndex,
|
|
77
|
+
};
|
|
78
|
+
}
|
|
79
|
+
//# sourceMappingURL=useVirtualListScroll.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useVirtualListScroll.js","sourceRoot":"","sources":["../../src/hooks/useVirtualListScroll.tsx"],"names":[],"mappings":"AAEA,OAA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3
|
export type { OTPProps } from './components/otp/otp-types';
|
|
3
4
|
export { Banner } from './components/banner/banner';
|
|
@@ -69,6 +70,8 @@ export { DateRangePicker } from './components/input/date/date-range-picker';
|
|
|
69
70
|
export type { DatePickerProps, DateRangePickerProps, DatePickerMode } from './components/input/date/date-types';
|
|
70
71
|
export { ShortcutProvider } from './providers/shortcut/shortcut-provider';
|
|
71
72
|
export { useShortcut } from './hooks/useShortcut';
|
|
73
|
+
export { useDynamicVirtualList } from './hooks/useDynamicVirtualList';
|
|
74
|
+
export type { DynamicVirtualItem, UseDynamicVirtualListOptions, UseDynamicVirtualListResult } from './hooks/useDynamicVirtualList';
|
|
72
75
|
export type { ShortcutConfig, ShortcutTooltipProps, ShortcutContextValue, UseShortcutOptions } from './custom-components/shortcut-tooltip/shortcut-tooltip-types';
|
|
73
76
|
export { AppBar } from './framework-components/appbar/appbar';
|
|
74
77
|
export type { AppBarProps, AppBarTitleProps, AppBarActionsProps, AppBarMenuButtonProps } from './framework-components/appbar/appbar-types';
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,eAAe,CAAA;AAEtB,OAAO,EAAE,YAAY,IAAI,GAAG,EAAE,MAAM,sBAAsB,CAAC;AAC3D,YAAY,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAC;AAE3D,OAAO,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAC;AACpD,YAAY,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAC;AAEpE,OAAO,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAC;AACpD,YAAY,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAA;AAEnE,OAAO,EAAE,QAAQ,EAAE,MAAM,gCAAgC,CAAC;AAC1D,YAAY,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAC;AAE1E,OAAO,EAAE,eAAe,EAAE,MA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.js
ADDED
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import './globals.css';
|
|
2
|
+
export { OTPComponent as OTP } from './components/otp/otp';
|
|
3
|
+
export { Banner } from './components/banner/banner';
|
|
4
|
+
export { Button } from './components/button/button';
|
|
5
|
+
export { Checkbox } from './components/checkbox/checkbox';
|
|
6
|
+
export { AnchoredOverlay } from './components/anchored-overlay/anchored-overlay';
|
|
7
|
+
export { Graph } from './components/graph/graph';
|
|
8
|
+
export { Kbd } from './components/kbd/kbd';
|
|
9
|
+
export { Icon } from './utility-components/icon/icon';
|
|
10
|
+
export { Avatar } from './utility-components/avatar/avatar';
|
|
11
|
+
export { Markdown } from './custom-components/markdown/markdown';
|
|
12
|
+
export { Select } from './components/select/select';
|
|
13
|
+
export { ContributionHeatmap } from './experimental-components/contribution-heatmap/contribution-heatmap';
|
|
14
|
+
export { Typography } from './components/typography/typography';
|
|
15
|
+
export { TextInput } from './components/input/text/input-text';
|
|
16
|
+
export { NumberInput } from './components/input/number/input-number';
|
|
17
|
+
export { Label } from './utility-components/label/label';
|
|
18
|
+
export { Timeline } from './custom-components/timeline/timeline';
|
|
19
|
+
export { Layout } from './custom-components/layout/layout';
|
|
20
|
+
export { useTour } from './hooks/useTour/useTour';
|
|
21
|
+
export { TourProvider, useTourManager } from './hooks/useTour/useTour-context';
|
|
22
|
+
export { useHistory } from './custom-components/layout-builder/stories/hooks/useHistory';
|
|
23
|
+
export { Stack } from './utility-components/stack/stack';
|
|
24
|
+
export { Menu } from './components/menu/menu';
|
|
25
|
+
export { Chart } from './data-components/chart/chart';
|
|
26
|
+
export { TableGrid } from './data-components/table-grid/table-grid';
|
|
27
|
+
export { TableGridRow } from './data-components/table-grid/row/table-grid-row';
|
|
28
|
+
export { TableProvider } from './data-components/table-grid/table-grid-context';
|
|
29
|
+
export { AIChatPanel } from './providers/ai-assistant/ai-chat-panel';
|
|
30
|
+
export { buildSystemPrompt } from './providers/ai-assistant/ai-assistant-prompts';
|
|
31
|
+
export { validateToolCalls as validateToolCallsGeneric } from './providers/ai-assistant/ai-assistant-validator';
|
|
32
|
+
// AI Assistant — table-grid-specific
|
|
33
|
+
export { MockAIProvider } from './data-components/table-grid/ai-assistant/ai-assistant-mock';
|
|
34
|
+
export { toolDefinitions as tableGridToolDefinitions } from './data-components/table-grid/ai-assistant/ai-assistant-tools';
|
|
35
|
+
export { buildColumnSchema } from './data-components/table-grid/ai-assistant/ai-assistant-schema';
|
|
36
|
+
// Reusable Cell component (works with both TableGrid and Form components)
|
|
37
|
+
export { Cell } from './data-components/cell/cell';
|
|
38
|
+
// Global types
|
|
39
|
+
export { CellType } from './types/global-types';
|
|
40
|
+
// Date components
|
|
41
|
+
export { DatePicker } from './components/input/date/date-picker';
|
|
42
|
+
export { DateRangePicker } from './components/input/date/date-range-picker';
|
|
43
|
+
// Shortcut Provider and Hook
|
|
44
|
+
export { ShortcutProvider } from './providers/shortcut/shortcut-provider';
|
|
45
|
+
export { useShortcut } from './hooks/useShortcut';
|
|
46
|
+
export { useDynamicVirtualList } from './hooks/useDynamicVirtualList';
|
|
47
|
+
// Layout System Components
|
|
48
|
+
export { AppBar } from './framework-components/appbar/appbar';
|
|
49
|
+
export { Breadcrumbs } from './framework-components/breadcrumbs/breadcrumbs';
|
|
50
|
+
export { Sidebar } from './framework-components/sidebar/sidebar';
|
|
51
|
+
export { Scaffold } from './framework-components/scaffold/scaffold';
|
|
52
|
+
export { useScaffold } from './framework-components/scaffold/scaffold-context';
|
|
53
|
+
// Mind Tree Component
|
|
54
|
+
export { MindTree } from './custom-components/mindmap/mind-tree';
|
|
55
|
+
export { Calendar } from './data-components/calendar/calendar';
|
|
56
|
+
export { Form } from './data-components/form/form';
|
|
57
|
+
export { LayoutBuilder } from './custom-components/layout-builder/layout-builder';
|
|
58
|
+
export { FileUpload } from './components/file-upload/file-upload';
|
|
59
|
+
export { Workflow } from './custom-components/workflow/workflow';
|
|
60
|
+
export { WorkflowToolbar } from './custom-components/workflow/toolbar/workflow-toolbar';
|
|
61
|
+
export { WorkflowPanel } from './custom-components/workflow/panel/workflow-panel';
|
|
62
|
+
export { validateWorkflow, getReachableNodes, getTopologicalOrder } from './custom-components/workflow/utils/workflow-validation';
|
|
63
|
+
//# sourceMappingURL=index.js.map
|