@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,267 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useCallback, useEffect, useState, useRef } from "react";
|
|
3
|
+
import { ShortcutTooltip } from "../../custom-components/shortcut-tooltip/shortcut-tooltip";
|
|
4
|
+
import { ShortcutContext } from "./shortcut-context";
|
|
5
|
+
import { normalizeEventKey, getDisplayKeys, normalizeShortcutInput } from "../../utils/shortcut-utils";
|
|
6
|
+
/**
|
|
7
|
+
* ShortcutProvider manages global keyboard shortcuts and displays visual feedback tooltips.
|
|
8
|
+
*
|
|
9
|
+
* Features:
|
|
10
|
+
* - Global and component-scoped shortcuts
|
|
11
|
+
* - Visual feedback with tooltips appearing near cursor
|
|
12
|
+
* - Hold-to-execute shortcuts with progress indicators (3s default)
|
|
13
|
+
* - Automatic cleanup of component-scoped shortcuts
|
|
14
|
+
* - Key release detection for cancelling hold shortcuts
|
|
15
|
+
*
|
|
16
|
+
* How it works:
|
|
17
|
+
* 1. Maintains a map of registered shortcuts with their configurations
|
|
18
|
+
* 2. Tracks active components for scoping validation
|
|
19
|
+
* 3. Listens for keyboard events and matches against registered shortcuts
|
|
20
|
+
* 4. Shows tooltip with shortcut keys and function name near cursor
|
|
21
|
+
* 5. Executes actions only after full hold duration (for hold shortcuts)
|
|
22
|
+
* 6. Cancels hold shortcuts when any key is released
|
|
23
|
+
*
|
|
24
|
+
* Component Scoping:
|
|
25
|
+
* - Global shortcuts (no componentId) always available
|
|
26
|
+
* - Component shortcuts only trigger when their component is registered as active
|
|
27
|
+
* - Components auto-register/unregister through useShortcut hook focus/hover handlers
|
|
28
|
+
*
|
|
29
|
+
* @param children - Child components that will have access to shortcut context
|
|
30
|
+
*/
|
|
31
|
+
export const ShortcutProvider = ({ children }) => {
|
|
32
|
+
const [shortcuts] = useState(new Map());
|
|
33
|
+
const [activeComponents, setActiveComponents] = useState(new Set());
|
|
34
|
+
const [tooltipState, setTooltipState] = useState({
|
|
35
|
+
isVisible: false,
|
|
36
|
+
shortcut: [],
|
|
37
|
+
functionName: "",
|
|
38
|
+
holdProgress: 0,
|
|
39
|
+
position: { x: 0, y: 0 },
|
|
40
|
+
});
|
|
41
|
+
const holdTimeoutRef = useRef(undefined);
|
|
42
|
+
const progressIntervalRef = useRef(undefined);
|
|
43
|
+
const cursorPositionRef = useRef({ x: 0, y: 0 });
|
|
44
|
+
// Track currently held keys and active hold shortcuts for proper cancellation
|
|
45
|
+
const heldKeysRef = useRef(new Set());
|
|
46
|
+
const activeHoldShortcutRef = useRef(null);
|
|
47
|
+
const executedHoldShortcutsRef = useRef(new Set());
|
|
48
|
+
// Track cursor position for tooltip positioning
|
|
49
|
+
useEffect(() => {
|
|
50
|
+
const handleMouseMove = (e) => {
|
|
51
|
+
cursorPositionRef.current = { x: e.clientX, y: e.clientY };
|
|
52
|
+
};
|
|
53
|
+
document.addEventListener("mousemove", handleMouseMove);
|
|
54
|
+
return () => document.removeEventListener("mousemove", handleMouseMove);
|
|
55
|
+
}, []);
|
|
56
|
+
/**
|
|
57
|
+
* Hides the shortcut tooltip and clears any active timers
|
|
58
|
+
* Used when shortcuts complete or are cancelled
|
|
59
|
+
*/
|
|
60
|
+
const hideTooltip = useCallback(() => {
|
|
61
|
+
setTooltipState((prev) => ({ ...prev, isVisible: false }));
|
|
62
|
+
if (holdTimeoutRef.current) {
|
|
63
|
+
clearTimeout(holdTimeoutRef.current);
|
|
64
|
+
holdTimeoutRef.current = undefined;
|
|
65
|
+
}
|
|
66
|
+
if (progressIntervalRef.current) {
|
|
67
|
+
clearInterval(progressIntervalRef.current);
|
|
68
|
+
progressIntervalRef.current = undefined;
|
|
69
|
+
}
|
|
70
|
+
activeHoldShortcutRef.current = null; // Clear active hold shortcut
|
|
71
|
+
executedHoldShortcutsRef.current.clear(); // Clear executed shortcuts tracking
|
|
72
|
+
}, []);
|
|
73
|
+
/**
|
|
74
|
+
* Registers a keyboard shortcut with optional component scoping
|
|
75
|
+
*
|
|
76
|
+
* @param keys - Keyboard combination (e.g., "ctrl+y", "cmd+shift+s")
|
|
77
|
+
* @param config - Shortcut configuration with action, name, and optional hold duration
|
|
78
|
+
* @param componentId - Optional component ID for scoped shortcuts. If provided,
|
|
79
|
+
* shortcut only triggers when that component is active
|
|
80
|
+
*
|
|
81
|
+
* Examples:
|
|
82
|
+
* - Global: registerShortcut("ctrl+s", { name: "Save", action: save })
|
|
83
|
+
* - Scoped: registerShortcut("enter", { name: "Submit", action: submit }, "form-123")
|
|
84
|
+
*/
|
|
85
|
+
const registerShortcut = useCallback((keys, config, componentId) => {
|
|
86
|
+
// Normalize the input keys to handle platform-specific variations (cmd -> ctrl, etc.)
|
|
87
|
+
const normalizedKeys = normalizeShortcutInput(keys);
|
|
88
|
+
const entry = {
|
|
89
|
+
...config,
|
|
90
|
+
componentId,
|
|
91
|
+
// Only set default 3s duration if holdDuration was explicitly provided but is 0
|
|
92
|
+
holdDuration: config.holdDuration === 0 ? 3000 : config.holdDuration,
|
|
93
|
+
};
|
|
94
|
+
shortcuts.set(normalizedKeys, entry);
|
|
95
|
+
}, [shortcuts]);
|
|
96
|
+
/**
|
|
97
|
+
* Unregisters a keyboard shortcut
|
|
98
|
+
*
|
|
99
|
+
* @param keys - The keyboard combination to remove (e.g., "ctrl+y")
|
|
100
|
+
*/
|
|
101
|
+
const unregisterShortcut = useCallback((keys) => {
|
|
102
|
+
shortcuts.delete(keys);
|
|
103
|
+
}, [shortcuts]);
|
|
104
|
+
/**
|
|
105
|
+
* Registers a component as active, enabling its component-scoped shortcuts
|
|
106
|
+
* Called automatically by useShortcut hook when components gain focus/hover
|
|
107
|
+
*
|
|
108
|
+
* @param componentId - Unique identifier for the component
|
|
109
|
+
*/
|
|
110
|
+
const registerComponent = useCallback((componentId) => {
|
|
111
|
+
setActiveComponents((prev) => new Set(prev).add(componentId));
|
|
112
|
+
}, []);
|
|
113
|
+
/**
|
|
114
|
+
* Unregisters a component, disabling its component-scoped shortcuts
|
|
115
|
+
* Called automatically by useShortcut hook when components lose focus/hover
|
|
116
|
+
*
|
|
117
|
+
* @param componentId - Unique identifier for the component to remove
|
|
118
|
+
*/
|
|
119
|
+
const unregisterComponent = useCallback((componentId) => {
|
|
120
|
+
setActiveComponents((prev) => {
|
|
121
|
+
const next = new Set(prev);
|
|
122
|
+
next.delete(componentId);
|
|
123
|
+
return next;
|
|
124
|
+
});
|
|
125
|
+
}, []);
|
|
126
|
+
/**
|
|
127
|
+
* Triggers a registered shortcut by key combination
|
|
128
|
+
*
|
|
129
|
+
* Process:
|
|
130
|
+
* 1. Looks up shortcut entry by keys
|
|
131
|
+
* 2. Validates component scope (if applicable)
|
|
132
|
+
* 3. Blocks if another hold shortcut is already active
|
|
133
|
+
* 4. Shows tooltip with shortcut visualization
|
|
134
|
+
* 5. For hold shortcuts: starts progress tracking and only executes after full duration
|
|
135
|
+
* 6. For instant shortcuts: executes immediately
|
|
136
|
+
*
|
|
137
|
+
* @param keys - The keyboard combination that was pressed (e.g., "ctrl+y")
|
|
138
|
+
*/
|
|
139
|
+
const triggerShortcut = useCallback((keys) => {
|
|
140
|
+
const entry = shortcuts.get(keys);
|
|
141
|
+
if (!entry)
|
|
142
|
+
return;
|
|
143
|
+
// Block new shortcuts if another hold shortcut is already active
|
|
144
|
+
if (activeHoldShortcutRef.current && activeHoldShortcutRef.current !== keys) {
|
|
145
|
+
return;
|
|
146
|
+
}
|
|
147
|
+
// Check component scope - if entry has componentId, that component must be active
|
|
148
|
+
if (entry.componentId && !activeComponents.has(entry.componentId)) {
|
|
149
|
+
return;
|
|
150
|
+
}
|
|
151
|
+
const shortcutArray = keys.split("+").map((k) => k.trim());
|
|
152
|
+
// Convert internal keys to platform-specific display keys for the tooltip
|
|
153
|
+
const displayKeys = getDisplayKeys(shortcutArray);
|
|
154
|
+
setTooltipState({
|
|
155
|
+
isVisible: true,
|
|
156
|
+
shortcut: displayKeys,
|
|
157
|
+
functionName: entry.name,
|
|
158
|
+
holdDuration: entry.holdDuration,
|
|
159
|
+
holdProgress: 0,
|
|
160
|
+
position: cursorPositionRef.current,
|
|
161
|
+
});
|
|
162
|
+
if (entry.holdDuration) {
|
|
163
|
+
// Mark this shortcut as actively being held
|
|
164
|
+
activeHoldShortcutRef.current = keys;
|
|
165
|
+
const startTime = Date.now();
|
|
166
|
+
// Update progress at 60fps for smooth animation
|
|
167
|
+
progressIntervalRef.current = setInterval(() => {
|
|
168
|
+
const elapsed = Date.now() - startTime;
|
|
169
|
+
const progress = Math.min(elapsed, entry.holdDuration);
|
|
170
|
+
setTooltipState((prev) => ({
|
|
171
|
+
...prev,
|
|
172
|
+
holdProgress: progress,
|
|
173
|
+
}));
|
|
174
|
+
}, 16); // ~60fps updates
|
|
175
|
+
// Execute action only after full hold duration
|
|
176
|
+
holdTimeoutRef.current = setTimeout(() => {
|
|
177
|
+
// Only execute if this shortcut hasn't been executed yet
|
|
178
|
+
if (activeHoldShortcutRef.current === keys) {
|
|
179
|
+
entry.action();
|
|
180
|
+
executedHoldShortcutsRef.current.add(keys); // Mark as executed
|
|
181
|
+
hideTooltip();
|
|
182
|
+
}
|
|
183
|
+
}, entry.holdDuration);
|
|
184
|
+
}
|
|
185
|
+
else {
|
|
186
|
+
// Instant shortcut - execute immediately
|
|
187
|
+
entry.action();
|
|
188
|
+
setTimeout(hideTooltip, 1500); // Show for 1.5s then hide
|
|
189
|
+
}
|
|
190
|
+
}, [shortcuts, activeComponents, hideTooltip]);
|
|
191
|
+
// Use the normalized key utility from our shortcut utils
|
|
192
|
+
// Global keyboard listener with hold detection and cancellation
|
|
193
|
+
useEffect(() => {
|
|
194
|
+
const handleKeyDown = (e) => {
|
|
195
|
+
const keys = [];
|
|
196
|
+
if (e.ctrlKey || e.metaKey)
|
|
197
|
+
keys.push("ctrl");
|
|
198
|
+
if (e.shiftKey)
|
|
199
|
+
keys.push("shift");
|
|
200
|
+
if (e.altKey)
|
|
201
|
+
keys.push("alt");
|
|
202
|
+
const mainKey = normalizeEventKey(e.key);
|
|
203
|
+
if (mainKey && !["ctrl", "shift", "alt", "cmd"].includes(mainKey)) {
|
|
204
|
+
keys.push(mainKey);
|
|
205
|
+
}
|
|
206
|
+
const shortcutString = keys.join("+");
|
|
207
|
+
// Track currently held keys for release detection
|
|
208
|
+
keys.forEach((key) => heldKeysRef.current.add(key));
|
|
209
|
+
if (shortcuts.has(shortcutString)) {
|
|
210
|
+
e.preventDefault();
|
|
211
|
+
// Prevent repeated triggering from key repeat events
|
|
212
|
+
if (e.repeat)
|
|
213
|
+
return;
|
|
214
|
+
// Don't trigger if this hold shortcut has already been executed
|
|
215
|
+
if (executedHoldShortcutsRef.current.has(shortcutString))
|
|
216
|
+
return;
|
|
217
|
+
triggerShortcut(shortcutString);
|
|
218
|
+
}
|
|
219
|
+
};
|
|
220
|
+
const handleKeyUp = (e) => {
|
|
221
|
+
const releasedKey = normalizeEventKey(e.key);
|
|
222
|
+
// Remove released key from held keys
|
|
223
|
+
if (releasedKey === "control" || releasedKey === "meta") {
|
|
224
|
+
heldKeysRef.current.delete("ctrl");
|
|
225
|
+
}
|
|
226
|
+
else if (releasedKey === "shift") {
|
|
227
|
+
heldKeysRef.current.delete("shift");
|
|
228
|
+
}
|
|
229
|
+
else if (releasedKey === "alt") {
|
|
230
|
+
heldKeysRef.current.delete("alt");
|
|
231
|
+
}
|
|
232
|
+
else {
|
|
233
|
+
heldKeysRef.current.delete(releasedKey);
|
|
234
|
+
}
|
|
235
|
+
// If there's an active hold shortcut, check if its keys are still held
|
|
236
|
+
if (activeHoldShortcutRef.current) {
|
|
237
|
+
const activeShortcutKeys = activeHoldShortcutRef.current.split("+");
|
|
238
|
+
const stillHeld = activeShortcutKeys.every((key) => heldKeysRef.current.has(key.trim()));
|
|
239
|
+
// If any key was released, cancel the hold shortcut
|
|
240
|
+
if (!stillHeld) {
|
|
241
|
+
// Mark as executed to prevent re-triggering if keys are pressed again
|
|
242
|
+
executedHoldShortcutsRef.current.add(activeHoldShortcutRef.current);
|
|
243
|
+
hideTooltip();
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
// Clear executed shortcuts when all keys are released
|
|
247
|
+
if (heldKeysRef.current.size === 0) {
|
|
248
|
+
executedHoldShortcutsRef.current.clear();
|
|
249
|
+
}
|
|
250
|
+
};
|
|
251
|
+
document.addEventListener("keydown", handleKeyDown);
|
|
252
|
+
document.addEventListener("keyup", handleKeyUp);
|
|
253
|
+
return () => {
|
|
254
|
+
document.removeEventListener("keydown", handleKeyDown);
|
|
255
|
+
document.removeEventListener("keyup", handleKeyUp);
|
|
256
|
+
};
|
|
257
|
+
}, [shortcuts, triggerShortcut, hideTooltip]);
|
|
258
|
+
const contextValue = {
|
|
259
|
+
registerShortcut,
|
|
260
|
+
unregisterShortcut,
|
|
261
|
+
triggerShortcut,
|
|
262
|
+
registerComponent,
|
|
263
|
+
unregisterComponent,
|
|
264
|
+
};
|
|
265
|
+
return (_jsxs(ShortcutContext.Provider, { value: contextValue, children: [children, _jsx(ShortcutTooltip, { ...tooltipState })] }));
|
|
266
|
+
};
|
|
267
|
+
//# sourceMappingURL=shortcut-provider.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"shortcut-provider.js","sourceRoot":"","sources":["../../../src/providers/shortcut/shortcut-provider.tsx"],"names":[],"mappings":";AAAA,OAAc,EAAE,WAAW,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AACxE,OAAO,EAAE,eAAe,EAAE,MAAM,2DAA2D,CAAC;AAC5F,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAErD,OAAO,EAAE,iBAAiB,EAAE,cAAc,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;AA6BvG;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAoC,CAAC,EAAE,QAAQ,EAAE,EAAE,EAAE;IAChF,MAAM,CAAC,SAAS,CAAC,GAAG,QAAQ,CAA6B,IAAI,GAAG,EAAE,CAAC,CAAC;IACpE,MAAM,CAAC,gBAAgB,EAAE,mBAAmB,CAAC,GAAG,QAAQ,CAAc,IAAI,GAAG,EAAE,CAAC,CAAC;IACjF,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;QAEF,QAAQ,CAAC,gBAAgB,CAAC,SAAS,EAAE,aAAa,CAAC,CAAC;QACpD,QAAQ,CAAC,gBAAgB,CAAC,OAAO,EAAE,WAAW,CAAC,CAAC;QAChD,OAAO,GAAG,EAAE;YACV,QAAQ,CAAC,mBAAmB,CAAC,SAAS,EAAE,aAAa,CAAC,CAAC;YACvD,QAAQ,CAAC,mBAAmB,CAAC,OAAO,EAAE,WAAW,CAAC,CAAC;QACrD,CAAC,CAAC;IACJ,CAAC,EAAE,CAAC,SAAS,EAAE,eAAe,EAAE,WAAW,CAAC,CAAC,CAAC;IAE9C,MAAM,YAAY,GAAyB;QACzC,gBAAgB;QAChB,kBAAkB;QAClB,eAAe;QACf,iBAAiB;QACjB,mBAAmB;KACpB,CAAC;IAEF,OAAO,CACL,MAAC,eAAe,CAAC,QAAQ,IAAC,KAAK,EAAE,YAAY,aAC1C,QAAQ,EACT,KAAC,eAAe,OAAK,YAAY,GAAI,IACZ,CAC5B,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/providers/theme/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"theme-provider-types.js","sourceRoot":"","sources":["../../../src/providers/theme/theme-provider-types.ts"],"names":[],"mappings":""}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { ThemeProviderProps, ThemeName } from
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { ThemeProviderProps, ThemeName } from "./theme-provider-types";
|
|
3
3
|
interface ThemeContextValue {
|
|
4
4
|
theme: ThemeName;
|
|
5
5
|
setTheme: (t: ThemeName) => void;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { createContext, useContext, useEffect, useState } from "react";
|
|
3
|
+
const ThemeContext = createContext(undefined);
|
|
4
|
+
export const ThemeProvider = ({ defaultTheme = "light", children }) => {
|
|
5
|
+
const [theme, setTheme] = useState(defaultTheme);
|
|
6
|
+
useEffect(() => {
|
|
7
|
+
document.documentElement.setAttribute("data-theme", theme);
|
|
8
|
+
}, [theme]);
|
|
9
|
+
return _jsx(ThemeContext.Provider, { value: { theme, setTheme }, children: children });
|
|
10
|
+
};
|
|
11
|
+
export const useTheme = () => {
|
|
12
|
+
const ctx = useContext(ThemeContext);
|
|
13
|
+
if (!ctx)
|
|
14
|
+
throw new Error("useTheme must be used inside ThemeProvider");
|
|
15
|
+
return ctx;
|
|
16
|
+
};
|
|
17
|
+
//# sourceMappingURL=themeProvider.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"themeProvider.js","sourceRoot":"","sources":["../../../src/providers/theme/themeProvider.tsx"],"names":[],"mappings":";AAAA,OAAc,EAAE,aAAa,EAAE,UAAU,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAQ9E,MAAM,YAAY,GAAG,aAAa,CAAgC,SAAS,CAAC,CAAC;AAE7E,MAAM,CAAC,MAAM,aAAa,GAAiC,CAAC,EAAE,YAAY,GAAG,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE;IAClG,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,QAAQ,CAAY,YAAY,CAAC,CAAC;IAE5D,SAAS,CAAC,GAAG,EAAE;QACb,QAAQ,CAAC,eAAe,CAAC,YAAY,CAAC,YAAY,EAAE,KAAK,CAAC,CAAC;IAC7D,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC;IAEZ,OAAO,KAAC,YAAY,CAAC,QAAQ,IAAC,KAAK,EAAE,EAAE,KAAK,EAAE,QAAQ,EAAE,YAAG,QAAQ,GAAyB,CAAC;AAC/F,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,QAAQ,GAAG,GAAG,EAAE;IAC3B,MAAM,GAAG,GAAG,UAAU,CAAC,YAAY,CAAC,CAAC;IACrC,IAAI,CAAC,GAAG;QAAE,MAAM,IAAI,KAAK,CAAC,4CAA4C,CAAC,CAAC;IACxE,OAAO,GAAG,CAAC;AACb,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vitest.utils.js","sourceRoot":"","sources":["../../src/test/vitest.utils.tsx"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"global-types.js","sourceRoot":"","sources":["../../src/types/global-types.ts"],"names":[],"mappings":"AAeA,wCAAwC;AACxC,MAAM,CAAC,MAAM,QAAQ,GAAG;IACpB,MAAM,EAAE,QAAQ;IAChB,YAAY,EAAE,cAAc;IAC5B,IAAI,EAAE,MAAM;IACZ,MAAM,EAAE,QAAQ;IAChB,IAAI,EAAE,MAAM;IACZ,UAAU,EAAE,YAAY;CAClB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"storybook-types.js","sourceRoot":"","sources":["../../src/types/storybook-types.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,YAAY,EAAE,OAAO,EAAC,MAAM,EAAC,OAAO,CAAC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"avatar-types.js","sourceRoot":"","sources":["../../../src/utility-components/avatar/avatar-types.ts"],"names":[],"mappings":""}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { AvatarProps } from
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { AvatarProps } from "./avatar-types";
|
|
3
3
|
export declare const Avatar: React.FC<AvatarProps>;
|
|
4
4
|
export default Avatar;
|
|
5
5
|
//# sourceMappingURL=avatar.d.ts.map
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { Icon } from "../icon/icon";
|
|
3
|
+
import styles from "./avatar.module.css";
|
|
4
|
+
export const Avatar = ({ src, size = "default", className, ...props }) => {
|
|
5
|
+
// Build CSS classes
|
|
6
|
+
const avatarClasses = [styles["rst-avatar"], styles[`rst-avatar-${size}`], className].filter(Boolean).join(" ");
|
|
7
|
+
return (_jsx("div", { className: avatarClasses, ...props, children: _jsx(Icon, { src: src || "user" }) }));
|
|
8
|
+
};
|
|
9
|
+
export default Avatar;
|
|
10
|
+
//# sourceMappingURL=avatar.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"avatar.js","sourceRoot":"","sources":["../../../src/utility-components/avatar/avatar.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AACpC,OAAO,MAAM,MAAM,qBAAqB,CAAC;AAEzC,MAAM,CAAC,MAAM,MAAM,GAA0B,CAAC,EAAE,GAAG,EAAE,IAAI,GAAG,SAAS,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,EAAE;IAC9F,oBAAoB;IACpB,MAAM,aAAa,GAAG,CAAC,MAAM,CAAC,YAAY,CAAC,EAAE,MAAM,CAAC,cAAc,IAAI,EAAE,CAAC,EAAE,SAAS,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IAEhH,OAAO,CACL,cAAK,SAAS,EAAE,aAAa,KAAM,KAAK,YACtC,KAAC,IAAI,IAAC,GAAG,EAAE,GAAG,IAAI,MAAM,GAAI,GACxB,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,MAAM,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { Size } from
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { Size } from "../../types/global-types";
|
|
3
3
|
export interface ChipProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
4
4
|
/** The content of the chip */
|
|
5
5
|
children: React.ReactNode;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chip-types.js","sourceRoot":"","sources":["../../../src/utility-components/chip/chip-types.ts"],"names":[],"mappings":""}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { ChipProps } from
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { ChipProps } from "./chip-types";
|
|
3
3
|
export declare const Chip: React.ForwardRefExoticComponent<ChipProps & React.RefAttributes<HTMLDivElement>>;
|
|
4
4
|
//# sourceMappingURL=chip.d.ts.map
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import styles from "./chip.module.css";
|
|
4
|
+
import { Icon } from "../icon/icon";
|
|
5
|
+
import Typography from "../../components/typography/typography";
|
|
6
|
+
import { Button } from "../../components/button/button";
|
|
7
|
+
export const Chip = React.forwardRef(({ children, leadingVisual, trailingVisual, onRemove, variant = "default", size = "small", className, draggable, onDragStart, onDragOver, onDragEnd, ...props }, ref) => {
|
|
8
|
+
const classNames = [styles["rst-chip"], styles[`rst-chip-variant-${variant}`], styles[`rst-chip-size-${size}`], className].filter(Boolean).join(" ");
|
|
9
|
+
return (_jsxs("div", { "data-component": "chip", ref: ref, className: classNames, ...props, "data-draggable": draggable, "data-clearable": !!onRemove, children: [draggable && (_jsx("span", { draggable: true, onDragStart: onDragStart, onDragOver: onDragOver, onDragEnd: onDragEnd, className: styles["drag-handle"], children: _jsx(Button, { leadingVisual: "drag", variant: "invisible", "aria-label": "Drag", size: "small" }) })), leadingVisual && _jsx(Icon, { src: leadingVisual }), _jsx(Typography, { variant: "caption", children: children }), trailingVisual && !onRemove && _jsx(Icon, { src: trailingVisual }), onRemove && _jsx(Button, { onClick: onRemove, variant: "invisible", "aria-label": "Remove", leadingVisual: "delete", size: "small" })] }));
|
|
10
|
+
});
|
|
11
|
+
//# sourceMappingURL=chip.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chip.js","sourceRoot":"","sources":["../../../src/utility-components/chip/chip.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,MAAM,MAAM,mBAAmB,CAAC;AAEvC,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AACpC,OAAO,UAAU,MAAM,wCAAwC,CAAC;AAChE,OAAO,EAAE,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAExD,MAAM,CAAC,MAAM,IAAI,GAAG,KAAK,CAAC,UAAU,CAClC,CACE,EACE,QAAQ,EACR,aAAa,EACb,cAAc,EACd,QAAQ,EACR,OAAO,GAAG,SAAS,EACnB,IAAI,GAAG,OAAO,EACd,SAAS,EACT,SAAS,EACT,WAAW,EACX,UAAU,EACV,SAAS,EACT,GAAG,KAAK,EACT,EACD,GAAG,EACH,EAAE;IACF,MAAM,UAAU,GAAG,CAAC,MAAM,CAAC,UAAU,CAAC,EAAE,MAAM,CAAC,oBAAoB,OAAO,EAAE,CAAC,EAAE,MAAM,CAAC,iBAAiB,IAAI,EAAE,CAAC,EAAE,SAAS,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IAErJ,OAAO,CACL,iCAAoB,MAAM,EAAC,GAAG,EAAE,GAAG,EAAE,SAAS,EAAE,UAAU,KAAM,KAAK,oBAAkB,SAAS,oBAAkB,CAAC,CAAC,QAAQ,aACzH,SAAS,IAAI,CACZ,eAAM,SAAS,QAAC,WAAW,EAAE,WAAW,EAAE,UAAU,EAAE,UAAU,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,CAAC,aAAa,CAAC,YACtH,KAAC,MAAM,IAAC,aAAa,EAAC,MAAM,EAAC,OAAO,EAAC,WAAW,gBAAY,MAAM,EAAC,IAAI,EAAC,OAAO,GAAU,GACpF,CACR,EACA,aAAa,IAAI,KAAC,IAAI,IAAC,GAAG,EAAE,aAAa,GAAI,EAC9C,KAAC,UAAU,IAAC,OAAO,EAAC,SAAS,YAAE,QAAQ,GAAc,EAEpD,cAAc,IAAI,CAAC,QAAQ,IAAI,KAAC,IAAI,IAAC,GAAG,EAAE,cAAc,GAAI,EAC5D,QAAQ,IAAI,KAAC,MAAM,IAAC,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAC,WAAW,gBAAY,QAAQ,EAAC,aAAa,EAAC,QAAQ,EAAC,IAAI,EAAC,OAAO,GAAG,IAClH,CACP,CAAC;AACJ,CAAC,CACF,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"helper-text-types.js","sourceRoot":"","sources":["../../../src/utility-components/helper-text/helper-text-types.tsx"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import Typography from "../../components/typography/typography";
|
|
3
|
+
import { Icon } from "../icon/icon";
|
|
4
|
+
import styles from "./helper-text.module.css";
|
|
5
|
+
export const HelperText = ({ id, helperText, disabled, state }) => {
|
|
6
|
+
const computedIcon = state == "success" ? "check" : state == "warning" ? "warning" : "error";
|
|
7
|
+
const helperTextClass = {
|
|
8
|
+
helperText: ` ${styles["rst-helper-text"]} ${state ? styles[`rst-helper-text-${state}`] : ""}`,
|
|
9
|
+
};
|
|
10
|
+
return (_jsxs(Typography, { variant: "caption", id: id, "aria-live": "polite", className: helperTextClass.helperText, "aria-disabled": disabled, children: [state && _jsx(Icon, { src: computedIcon, state: state, disabled: disabled }), helperText] }));
|
|
11
|
+
};
|
|
12
|
+
//# sourceMappingURL=helper-text.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"helper-text.js","sourceRoot":"","sources":["../../../src/utility-components/helper-text/helper-text.tsx"],"names":[],"mappings":";AAAA,OAAO,UAAU,MAAM,wCAAwC,CAAC;AAChE,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAEpC,OAAO,MAAM,MAAM,0BAA0B,CAAC;AAE9C,MAAM,CAAC,MAAM,UAAU,GAA8B,CAAC,EAAE,EAAE,EAAE,UAAU,EAAE,QAAQ,EAAE,KAAK,EAAE,EAAE,EAAE;IAC3F,MAAM,YAAY,GAAG,KAAK,IAAI,SAAS,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,KAAK,IAAI,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,OAAO,CAAC;IAE7F,MAAM,eAAe,GAAG;QACtB,UAAU,EAAE,IAAI,MAAM,CAAC,iBAAiB,CAAC,IAAI,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,mBAAmB,KAAK,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE,EAAE;KAC/F,CAAC;IAEF,OAAO,CACL,MAAC,UAAU,IAAC,OAAO,EAAC,SAAS,EAAC,EAAE,EAAE,EAAE,eAAY,QAAQ,EAAC,SAAS,EAAE,eAAe,CAAC,UAAU,mBAAiB,QAAQ,aACpH,KAAK,IAAI,KAAC,IAAI,IAAC,GAAG,EAAE,YAAY,EAAE,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE,QAAQ,GAAS,EAC3E,UAAU,IACA,CACd,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import alertSvg from "../../../public/assets/svg/alert.svg?raw";
|
|
2
|
+
import arrowDownUpSvg from "../../../public/assets/svg/arrow-down-up.svg?raw";
|
|
3
|
+
import arrowDownSvg from "../../../public/assets/svg/arrow-down.svg?raw";
|
|
4
|
+
import arrowLeftSvg from "../../../public/assets/svg/arrow-left.svg?raw";
|
|
5
|
+
import arrowRightSvg from "../../../public/assets/svg/arrow-right.svg?raw";
|
|
6
|
+
import arrowUpSvg from "../../../public/assets/svg/arrow-up.svg?raw";
|
|
7
|
+
import arrowDropDownSvg from "../../../public/assets/svg/arrow_drop_down.svg?raw";
|
|
8
|
+
import calendar from "../../../public/assets/svg/calendar.svg?raw";
|
|
9
|
+
import checkSvg from "../../../public/assets/svg/check.svg?raw";
|
|
10
|
+
import chevronDownSvg from "../../../public/assets/svg/chevron-down.svg?raw";
|
|
11
|
+
import chevronRightSvg from "../../../public/assets/svg/chevron-right.svg?raw";
|
|
12
|
+
import clipboardSvg from "../../../public/assets/svg/clipboard.svg?raw";
|
|
13
|
+
import closeSvg from "../../../public/assets/svg/close.svg?raw";
|
|
14
|
+
import copySvg from "../../../public/assets/svg/copy.svg?raw";
|
|
15
|
+
import cursorSvg from "../../../public/assets/svg/cursor.svg?raw";
|
|
16
|
+
import cutSvg from "../../../public/assets/svg/cut.svg?raw";
|
|
17
|
+
import deleteSvg from "../../../public/assets/svg/delete.svg?raw";
|
|
18
|
+
import dockLeftArrowSvg from "../../../public/assets/svg/dock-left-arrow.svg?raw";
|
|
19
|
+
import dockRightArrowSvg from "../../../public/assets/svg/dock-right-arrow.svg?raw";
|
|
20
|
+
import documentOutlineSvg from "../../../public/assets/svg/document-outline.svg?raw";
|
|
21
|
+
import downloadSvg from "../../../public/assets/svg/download.svg?raw";
|
|
22
|
+
import dragSvg from "../../../public/assets/svg/drag.svg?raw";
|
|
23
|
+
import errorSvg from "../../../public/assets/svg/error.svg?raw";
|
|
24
|
+
import expandRightSvg from "../../../public/assets/svg/expand-right.svg?raw";
|
|
25
|
+
import expandSvg from "../../../public/assets/svg/expand.svg?raw";
|
|
26
|
+
import eyeSvg from "../../../public/assets/svg/eye.svg?raw";
|
|
27
|
+
import fullscreenSvg from "../../../public/assets/svg/fullscreen.svg?raw";
|
|
28
|
+
import gearSvg from "../../../public/assets/svg/gear.svg?raw";
|
|
29
|
+
import groupsSvg from "../../../public/assets/svg/groups.svg?raw";
|
|
30
|
+
import helpSvg from "../../../public/assets/svg/help.svg?raw";
|
|
31
|
+
import infoSvg from "../../../public/assets/svg/info.svg?raw";
|
|
32
|
+
import logoSvg from "../../../public/assets/svg/logo.svg?raw";
|
|
33
|
+
import menuSvg from "../../../public/assets/svg/menu.svg?raw";
|
|
34
|
+
import messageBubbleQuestionMarkSvg from "../../../public/assets/svg/message-bubble-question-mark.svg?raw";
|
|
35
|
+
import pencilSvg from "../../../public/assets/svg/pencil.svg?raw";
|
|
36
|
+
import plusSvg from "../../../public/assets/svg/plus.svg?raw";
|
|
37
|
+
import restioSvg from "../../../public/assets/svg/restio.svg?raw";
|
|
38
|
+
import searchSvg from "../../../public/assets/svg/search.svg?raw";
|
|
39
|
+
import sendSvg from "../../../public/assets/svg/send.svg?raw";
|
|
40
|
+
import shrinkRightSvg from "../../../public/assets/svg/shrink-right.svg?raw";
|
|
41
|
+
import sidebarSvg from "../../../public/assets/svg/sidebar.svg?raw";
|
|
42
|
+
import terminalSvg from "../../../public/assets/svg/terminal.svg?raw";
|
|
43
|
+
import timerSvg from "../../../public/assets/svg/timer.svg?raw";
|
|
44
|
+
import warningSvg from "../../../public/assets/svg/warning.svg?raw";
|
|
45
|
+
import zoomMinusSvg from "../../../public/assets/svg/zoom-minus.svg?raw";
|
|
46
|
+
import zoomPlusSvg from "../../../public/assets/svg/zoom-plus.svg?raw";
|
|
47
|
+
export const svgAssets = {
|
|
48
|
+
"alert": alertSvg,
|
|
49
|
+
"arrow-down-up": arrowDownUpSvg,
|
|
50
|
+
"arrow-down": arrowDownSvg,
|
|
51
|
+
"arrow-left": arrowLeftSvg,
|
|
52
|
+
"arrow-right": arrowRightSvg,
|
|
53
|
+
"arrow-up": arrowUpSvg,
|
|
54
|
+
"arrow_drop_down": arrowDropDownSvg,
|
|
55
|
+
"calendar": calendar,
|
|
56
|
+
"check": checkSvg,
|
|
57
|
+
"chevron-down": chevronDownSvg,
|
|
58
|
+
"chevron-right": chevronRightSvg,
|
|
59
|
+
"clipboard": clipboardSvg,
|
|
60
|
+
"close": closeSvg,
|
|
61
|
+
"copy": copySvg,
|
|
62
|
+
"cursor": cursorSvg,
|
|
63
|
+
"cut": cutSvg,
|
|
64
|
+
"delete": deleteSvg,
|
|
65
|
+
"dock-left-arrow": dockLeftArrowSvg,
|
|
66
|
+
"dock-right-arrow": dockRightArrowSvg,
|
|
67
|
+
"document-outline": documentOutlineSvg,
|
|
68
|
+
"download": downloadSvg,
|
|
69
|
+
"drag": dragSvg,
|
|
70
|
+
"error": errorSvg,
|
|
71
|
+
"expand-right": expandRightSvg,
|
|
72
|
+
"expand": expandSvg,
|
|
73
|
+
"eye": eyeSvg,
|
|
74
|
+
"fullscreen": fullscreenSvg,
|
|
75
|
+
"gear": gearSvg,
|
|
76
|
+
"groups": groupsSvg,
|
|
77
|
+
"help": helpSvg,
|
|
78
|
+
"info": infoSvg,
|
|
79
|
+
"logo": logoSvg,
|
|
80
|
+
"menu": menuSvg,
|
|
81
|
+
"message-bubble-question-mark": messageBubbleQuestionMarkSvg,
|
|
82
|
+
"pencil": pencilSvg,
|
|
83
|
+
"plus": plusSvg,
|
|
84
|
+
"restio": restioSvg,
|
|
85
|
+
"search": searchSvg,
|
|
86
|
+
"send": sendSvg,
|
|
87
|
+
"shrink-right": shrinkRightSvg,
|
|
88
|
+
"sidebar": sidebarSvg,
|
|
89
|
+
"terminal": terminalSvg,
|
|
90
|
+
"timer": timerSvg,
|
|
91
|
+
"warning": warningSvg,
|
|
92
|
+
"zoom-minus": zoomMinusSvg,
|
|
93
|
+
"zoom-plus": zoomPlusSvg,
|
|
94
|
+
};
|
|
95
|
+
//# sourceMappingURL=icon-assets.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"icon-assets.js","sourceRoot":"","sources":["../../../src/utility-components/icon/icon-assets.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,MAAM,0CAA0C,CAAC;AAChE,OAAO,cAAc,MAAM,kDAAkD,CAAC;AAC9E,OAAO,YAAY,MAAM,+CAA+C,CAAC;AACzE,OAAO,YAAY,MAAM,+CAA+C,CAAC;AACzE,OAAO,aAAa,MA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