@restio/ui 0.0.9-SNAPSHOT → 0.0.11-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/assets/svg/alert.svg +1 -0
- package/dist/assets/svg/arrow-down-up.svg +1 -0
- package/dist/assets/svg/arrow-down.svg +1 -0
- package/dist/assets/svg/arrow-left.svg +1 -0
- package/dist/assets/svg/arrow-right.svg +1 -0
- package/dist/assets/svg/arrow-up.svg +1 -0
- package/dist/assets/svg/arrow_drop_down.svg +1 -0
- package/dist/assets/svg/calendar.svg +1 -0
- package/dist/assets/svg/check.svg +1 -0
- package/dist/assets/svg/chevron-down.svg +1 -0
- package/dist/assets/svg/chevron-right.svg +1 -0
- package/dist/assets/svg/clipboard.svg +1 -0
- package/dist/assets/svg/close.svg +1 -0
- package/dist/assets/svg/copy.svg +1 -0
- package/dist/assets/svg/cursor.svg +1 -0
- package/dist/assets/svg/cut.svg +1 -0
- package/dist/assets/svg/delete.svg +1 -0
- package/dist/assets/svg/discussion.svg +1 -0
- package/dist/assets/svg/dock-left-arrow.svg +1 -0
- package/dist/assets/svg/dock-right-arrow.svg +1 -0
- package/dist/assets/svg/document-outline.svg +1 -0
- package/dist/assets/svg/download.svg +1 -0
- package/dist/assets/svg/drag.svg +1 -0
- package/dist/assets/svg/error.svg +1 -0
- package/dist/assets/svg/expand-right.svg +1 -0
- package/dist/assets/svg/expand.svg +1 -0
- package/dist/assets/svg/eye.svg +1 -0
- package/dist/assets/svg/fullscreen.svg +1 -0
- package/dist/assets/svg/gear.svg +1 -0
- package/dist/assets/svg/groups.svg +1 -0
- package/dist/assets/svg/help.svg +1 -0
- package/dist/assets/svg/info.svg +1 -0
- package/dist/assets/svg/logo.svg +9 -0
- package/dist/assets/svg/menu.svg +1 -0
- package/dist/assets/svg/message-bubble-question-mark.svg +1 -0
- package/dist/assets/svg/pencil.svg +1 -0
- package/dist/assets/svg/plus.svg +1 -0
- package/dist/assets/svg/restio.svg +5 -0
- package/dist/assets/svg/search.svg +1 -0
- package/dist/assets/svg/send.svg +1 -0
- package/dist/assets/svg/shrink-right.svg +1 -0
- package/dist/assets/svg/sidebar.svg +1 -0
- package/dist/assets/svg/terminal.svg +1 -0
- package/dist/assets/svg/timer.svg +1 -0
- package/dist/assets/svg/warning.svg +1 -0
- package/dist/assets/svg/zoom-minus.svg +1 -0
- package/dist/assets/svg/zoom-plus.svg +1 -0
- package/dist/components/anchored-overlay/anchored-overlay-types.d.ts +1 -1
- package/dist/components/anchored-overlay/anchored-overlay.d.ts +2 -2
- package/dist/components/banner/banner-types.d.ts +1 -1
- package/dist/components/banner/banner.d.ts +2 -2
- package/dist/components/button/button-types.d.ts +1 -1
- package/dist/components/button/button.d.ts +2 -2
- package/dist/components/button-group/button-group.d.ts +2 -2
- package/dist/components/checkbox/checkbox-types.d.ts +1 -1
- package/dist/components/checkbox/checkbox.d.ts +2 -2
- package/dist/components/code-block/code-block.d.ts +1 -1
- package/dist/components/file-upload/file-upload-types.d.ts +1 -1
- package/dist/components/file-upload/file-upload.d.ts +2 -2
- package/dist/components/graph/graph.d.ts +1 -1
- package/dist/components/input/date/date-calendar.d.ts +2 -2
- package/dist/components/input/date/date-input-field.d.ts +2 -2
- package/dist/components/input/date/date-picker.d.ts +2 -2
- package/dist/components/input/date/date-range-input-field.d.ts +2 -2
- package/dist/components/input/date/date-range-picker.d.ts +2 -2
- package/dist/components/input/date/date-shortcuts.d.ts +2 -2
- package/dist/components/input/date/date-types.d.ts +1 -1
- package/dist/components/input/date/date-utils.d.ts +1 -1
- package/dist/components/input/input.d.ts +2 -2
- package/dist/components/input/number/input-number-types.d.ts +1 -1
- package/dist/components/input/number/input-number.d.ts +2 -2
- package/dist/components/input/text/input-text-types.d.ts +1 -1
- package/dist/components/input/text/input-text.d.ts +2 -2
- package/dist/components/kbd/kbd.d.ts +2 -2
- package/dist/components/kbd-group/kbd-group.d.ts +2 -2
- package/dist/components/list/list-types.d.ts +1 -1
- package/dist/components/list/list-utils.d.ts +4 -4
- package/dist/components/list/list.d.ts +1 -1
- package/dist/components/menu/anchored-navigation-menu.d.ts +3 -3
- package/dist/components/menu/menu-assets.d.ts +1 -1
- package/dist/components/menu/menu-types.d.ts +2 -2
- package/dist/components/menu/menu.d.ts +2 -2
- package/dist/components/otp/otp.d.ts +2 -3
- package/dist/components/select/select-types.d.ts +1 -1
- package/dist/components/select/select.d.ts +2 -2
- package/dist/components/tag/tag-types.d.ts +1 -1
- package/dist/components/tag/tag.d.ts +2 -2
- package/dist/components/textarea/textarea-types.d.ts +2 -2
- package/dist/components/textarea/textarea.d.ts +2 -2
- package/dist/components/toast-group/toast-group-types.d.ts +1 -1
- package/dist/components/toast-group/toast-group.d.ts +2 -2
- package/dist/components/typography/typography-types.d.ts +12 -3
- package/dist/components/typography/typography-types.d.ts.map +1 -1
- package/dist/components/typography/typography.d.ts +2 -2
- package/dist/custom-components/chat/chat-types.d.ts +1 -1
- package/dist/custom-components/chat/chat.d.ts +1 -1
- package/dist/custom-components/chat/chat.d.ts.map +1 -1
- package/dist/custom-components/layout/layout.d.ts +2 -2
- package/dist/custom-components/layout-builder/layout-builder-validation.d.ts +2 -8
- package/dist/custom-components/layout-builder/layout-builder.d.ts +2 -2
- package/dist/custom-components/layout-builder/layout-json-editor-types.d.ts +1 -1
- package/dist/custom-components/layout-builder/layout-json-editor.d.ts +2 -2
- package/dist/custom-components/markdown/components/img/zoomable-image.d.ts +5 -0
- package/dist/custom-components/markdown/components/img/zoomable-image.d.ts.map +1 -0
- package/dist/custom-components/markdown/markdown-types.d.ts +6 -3
- package/dist/custom-components/markdown/markdown-types.d.ts.map +1 -1
- package/dist/custom-components/markdown/markdown.d.ts +2 -2
- package/dist/custom-components/markdown/markdown.d.ts.map +1 -1
- package/dist/custom-components/mindmap/index.d.ts +2 -2
- package/dist/custom-components/mindmap/mind-tree-types.d.ts +1 -1
- package/dist/custom-components/mindmap/mind-tree.d.ts +1 -1
- package/dist/custom-components/mindmap/reingold-tilford-algorithm.d.ts +1 -1
- package/dist/custom-components/shortcut-tooltip/shortcut-tooltip.d.ts +2 -2
- package/dist/custom-components/timeline/skeleton/timeline-skeleton.d.ts +1 -1
- package/dist/custom-components/timeline/timeline.d.ts +2 -2
- package/dist/custom-components/workflow/layout/workflow-edge.d.ts +1 -1
- package/dist/custom-components/workflow/layout/workflow-layout-types.d.ts +1 -1
- package/dist/custom-components/workflow/layout/workflow-layout.d.ts +2 -2
- package/dist/custom-components/workflow/node/workflow-node.d.ts +1 -1
- package/dist/custom-components/workflow/panel/workflow-panel-types.d.ts +1 -1
- package/dist/custom-components/workflow/panel/workflow-panel.d.ts +1 -1
- package/dist/custom-components/workflow/toolbar/workflow-toolbar.d.ts +1 -1
- package/dist/custom-components/workflow/utils/workflow-validation.d.ts +2 -2
- package/dist/custom-components/workflow/workflow-types.d.ts +3 -3
- package/dist/custom-components/workflow/workflow.d.ts +1 -1
- package/dist/data-components/calendar/calendar-types.d.ts +20 -1
- package/dist/data-components/calendar/calendar-types.d.ts.map +1 -1
- package/dist/data-components/calendar/calendar-utils.d.ts +5 -0
- package/dist/data-components/calendar/calendar-utils.d.ts.map +1 -1
- package/dist/data-components/calendar/calendar.d.ts +2 -2
- package/dist/data-components/calendar/calendar.d.ts.map +1 -1
- package/dist/data-components/cell/cell-switch.d.ts +1 -1
- package/dist/data-components/cell/cell-types.d.ts +2 -2
- package/dist/data-components/cell/cell.d.ts +1 -1
- package/dist/data-components/chart/chart-types.d.ts +1 -1
- package/dist/data-components/chart/chart.d.ts +1 -1
- package/dist/data-components/chart/sankey/sankeyChart.d.ts +1 -1
- package/dist/data-components/data-structure/data-structure-utils.d.ts +1 -1
- package/dist/data-components/data-structure/data-structure.d.ts +1 -1
- package/dist/data-components/data-structure/stories-assets.d.ts +1 -5
- package/dist/data-components/filter/filter-engine.d.ts +15 -0
- package/dist/data-components/filter/filter-engine.d.ts.map +1 -0
- package/dist/data-components/filter/filter-types.d.ts +41 -0
- package/dist/data-components/filter/filter-types.d.ts.map +1 -0
- package/dist/data-components/filter/filter-utils.d.ts +26 -0
- package/dist/data-components/filter/filter-utils.d.ts.map +1 -0
- package/dist/data-components/form/form-types.d.ts +2 -2
- package/dist/data-components/form/form.d.ts +1 -1
- package/dist/data-components/gantt/ai-assistant/gantt-ai-executor.d.ts +9 -0
- package/dist/data-components/gantt/ai-assistant/gantt-ai-executor.d.ts.map +1 -0
- package/dist/data-components/gantt/ai-assistant/gantt-ai-panel.d.ts +12 -0
- package/dist/data-components/gantt/ai-assistant/gantt-ai-panel.d.ts.map +1 -0
- package/dist/data-components/gantt/ai-assistant/gantt-ai-schema.d.ts +7 -0
- package/dist/data-components/gantt/ai-assistant/gantt-ai-schema.d.ts.map +1 -0
- package/dist/data-components/gantt/ai-assistant/gantt-ai-tools.d.ts +3 -0
- package/dist/data-components/gantt/ai-assistant/gantt-ai-tools.d.ts.map +1 -0
- package/dist/data-components/gantt/arrows/gantt-arrows.d.ts +21 -0
- package/dist/data-components/gantt/arrows/gantt-arrows.d.ts.map +1 -0
- package/dist/data-components/gantt/gantt-context.d.ts +13 -0
- package/dist/data-components/gantt/gantt-context.d.ts.map +1 -0
- package/dist/data-components/gantt/gantt-types.d.ts +101 -0
- package/dist/data-components/gantt/gantt-types.d.ts.map +1 -0
- package/dist/data-components/gantt/gantt-utils.d.ts +61 -0
- package/dist/data-components/gantt/gantt-utils.d.ts.map +1 -0
- package/dist/data-components/gantt/gantt.d.ts +4 -0
- package/dist/data-components/gantt/gantt.d.ts.map +1 -0
- package/dist/data-components/gantt/hooks/useGanttDrag.d.ts +15 -0
- package/dist/data-components/gantt/hooks/useGanttDrag.d.ts.map +1 -0
- package/dist/data-components/gantt/hooks/useGanttTimeline.d.ts +18 -0
- package/dist/data-components/gantt/hooks/useGanttTimeline.d.ts.map +1 -0
- package/dist/data-components/gantt/sidebar/gantt-sidebar-types.d.ts +10 -0
- package/dist/data-components/gantt/sidebar/gantt-sidebar-types.d.ts.map +1 -0
- package/dist/data-components/gantt/sidebar/gantt-sidebar.d.ts +3 -0
- package/dist/data-components/gantt/sidebar/gantt-sidebar.d.ts.map +1 -0
- package/dist/data-components/gantt/stories/gantt-stories-utils.d.ts +13 -0
- package/dist/data-components/gantt/stories/gantt-stories-utils.d.ts.map +1 -0
- package/dist/data-components/table-grid/ai-assistant/ai-assistant-executor.d.ts +6 -2
- package/dist/data-components/table-grid/ai-assistant/ai-assistant-executor.d.ts.map +1 -1
- 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-panel-types.d.ts +6 -1
- package/dist/data-components/table-grid/ai-assistant/ai-assistant-panel-types.d.ts.map +1 -1
- package/dist/data-components/table-grid/ai-assistant/ai-assistant-panel.d.ts +2 -2
- package/dist/data-components/table-grid/ai-assistant/ai-assistant-panel.d.ts.map +1 -1
- 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-tools.d.ts +3 -1
- package/dist/data-components/table-grid/ai-assistant/ai-assistant-tools.d.ts.map +1 -1
- package/dist/data-components/table-grid/ai-assistant/ai-assistant-types.d.ts +37 -1
- package/dist/data-components/table-grid/ai-assistant/ai-assistant-types.d.ts.map +1 -1
- 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.d.ts.map +1 -1
- 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/index.d.ts +6 -6
- package/dist/data-components/table-grid/external-functionalities/import/csv/inferColumns.d.ts +1 -1
- 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.d.ts +1 -1
- package/dist/data-components/table-grid/formula/formula-builder-types.d.ts +1 -1
- package/dist/data-components/table-grid/formula/formula-builder.d.ts +1 -1
- package/dist/data-components/table-grid/grouping/grouping.d.ts +15 -0
- package/dist/data-components/table-grid/grouping/grouping.d.ts.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.d.ts +1 -1
- 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.d.ts.map +1 -1
- 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.d.ts +1 -1
- package/dist/data-components/table-grid/hooks/use-table.d.ts +1 -1
- package/dist/data-components/table-grid/pinning/pinning-utils.d.ts +1 -1
- 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.d.ts +1 -1
- package/dist/data-components/table-grid/pivot/pivot-config-panel.d.ts.map +1 -1
- package/dist/data-components/table-grid/pivot/pivot-table.d.ts +1 -1
- package/dist/data-components/table-grid/pivot/pivot-types.d.ts +1 -1
- package/dist/data-components/table-grid/pivot/pivot-utils.d.ts +2 -2
- package/dist/data-components/table-grid/row/table-grid-row-types.d.ts +1 -1
- 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.d.ts +1 -1
- package/dist/data-components/table-grid/row/table-grid-row.d.ts.map +1 -1
- package/dist/data-components/table-grid/selection/selection-utils.d.ts +6 -6
- package/dist/data-components/table-grid/selection/selection-utils.d.ts.map +1 -1
- package/dist/data-components/table-grid/sidebar/table-grid-sidebar-types.d.ts +5 -1
- package/dist/data-components/table-grid/sidebar/table-grid-sidebar-types.d.ts.map +1 -1
- package/dist/data-components/table-grid/sidebar/table-grid-sidebar.d.ts +2 -2
- package/dist/data-components/table-grid/sidebar/table-grid-sidebar.d.ts.map +1 -1
- package/dist/data-components/table-grid/sorting/sorting.d.ts +4 -6
- package/dist/data-components/table-grid/sorting/sorting.d.ts.map +1 -1
- 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.d.ts +2 -2
- 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-panels.d.ts +22 -0
- package/dist/data-components/table-grid/table-grid-panels.d.ts.map +1 -0
- package/dist/data-components/table-grid/table-grid-types.d.ts +39 -9
- package/dist/data-components/table-grid/table-grid-types.d.ts.map +1 -1
- package/dist/data-components/table-grid/table-grid.d.ts +9 -2
- package/dist/data-components/table-grid/table-grid.d.ts.map +1 -1
- package/dist/data-components/table-grid/table-utils.d.ts +15 -3
- package/dist/data-components/table-grid/table-utils.d.ts.map +1 -1
- package/dist/experimental-components/contribution-heatmap/contribution-heatmap-utils.d.ts +1 -1
- package/dist/experimental-components/contribution-heatmap/contribution-heatmap.d.ts +2 -2
- package/dist/experimental-components/filter-builder/filter-builder-types.d.ts +11 -23
- package/dist/experimental-components/filter-builder/filter-builder-types.d.ts.map +1 -1
- package/dist/experimental-components/filter-builder/filter-builder.d.ts +5 -7
- package/dist/experimental-components/filter-builder/filter-builder.d.ts.map +1 -1
- package/dist/framework-components/appbar/appbar-types.d.ts +1 -1
- package/dist/framework-components/appbar/appbar.d.ts +2 -2
- package/dist/framework-components/breadcrumbs/breadcrumbs.d.ts +2 -2
- package/dist/framework-components/drawer/drawer-types.d.ts +2 -2
- package/dist/framework-components/drawer/drawer.d.ts +2 -2
- package/dist/framework-components/scaffold/scaffold-context.d.ts +2 -2
- package/dist/framework-components/scaffold/scaffold-types.d.ts +1 -1
- package/dist/framework-components/scaffold/scaffold.d.ts +2 -2
- package/dist/framework-components/sidebar/sidebar-context.d.ts +2 -2
- package/dist/framework-components/sidebar/sidebar-logo/sidebar-logo.d.ts +1 -1
- package/dist/framework-components/sidebar/sidebar-types.d.ts +1 -1
- package/dist/framework-components/sidebar/sidebar.d.ts +3 -3
- package/dist/hooks/useDynamicVirtualList.d.ts.map +1 -1
- package/dist/hooks/useFixedVirtualList.d.ts +1 -1
- package/dist/hooks/useShortcut.d.ts +1 -1
- package/dist/hooks/useTour/useTour-context-internal.d.ts +2 -2
- package/dist/hooks/useTour/useTour-context.d.ts +3 -3
- package/dist/hooks/useTour/useTour-types.d.ts +1 -1
- package/dist/hooks/useTour/useTour.d.ts +1 -1
- package/dist/hooks/useVirtualListScroll.d.ts +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/providers/ai-assistant/ai-assistant-prompts.d.ts +1 -1
- package/dist/providers/ai-assistant/ai-assistant-types.d.ts +2 -0
- package/dist/providers/ai-assistant/ai-assistant-types.d.ts.map +1 -1
- package/dist/providers/ai-assistant/ai-assistant-validator.d.ts +1 -1
- package/dist/providers/ai-assistant/ai-chat-panel-types.d.ts +1 -1
- package/dist/providers/ai-assistant/ai-chat-panel.d.ts +1 -1
- package/dist/providers/ai-assistant/ai-chat-panel.d.ts.map +1 -1
- package/dist/providers/shortcut/shortcut-context.d.ts +2 -2
- package/dist/providers/shortcut/shortcut-provider.d.ts +1 -1
- package/dist/providers/theme/themeProvider.d.ts +2 -2
- package/dist/restio-ui.cjs.js +137 -0
- package/dist/restio-ui.es.js +36326 -0
- package/dist/ui.css +2 -0
- package/dist/utility-components/avatar/avatar-types.d.ts +1 -1
- package/dist/utility-components/avatar/avatar.d.ts +2 -2
- package/dist/utility-components/chip/chip-types.d.ts +2 -2
- package/dist/utility-components/chip/chip.d.ts +2 -2
- package/dist/utility-components/helper-text/helper-text-types.d.ts +1 -1
- package/dist/utility-components/helper-text/helper-text.d.ts +1 -1
- package/dist/utility-components/icon/icon-assets.d.ts.map +1 -1
- package/dist/utility-components/icon/icon-types.d.ts +1 -1
- package/dist/utility-components/icon/icon.d.ts +2 -2
- package/dist/utility-components/label/label.d.ts +1 -1
- package/dist/utility-components/overlay-panel/overlay-panel.d.ts +2 -2
- package/dist/utility-components/overlay-panel/use-focus-trap.d.ts +1 -1
- package/dist/utility-components/skeleton/skeleton.d.ts +2 -2
- package/dist/utility-components/stack/stack.d.ts +2 -2
- package/dist/utility-components/toast/toast-types.d.ts +1 -1
- package/dist/utility-components/toast/toast.d.ts +2 -2
- package/dist/utils/general.d.ts +1 -1
- package/package.json +3 -3
- package/dist/components/anchored-overlay/anchored-overlay-types.js +0 -2
- package/dist/components/anchored-overlay/anchored-overlay-types.js.map +0 -1
- package/dist/components/anchored-overlay/anchored-overlay.js +0 -67
- package/dist/components/anchored-overlay/anchored-overlay.js.map +0 -1
- package/dist/components/banner/banner-types.js +0 -2
- package/dist/components/banner/banner-types.js.map +0 -1
- package/dist/components/banner/banner.js +0 -29
- package/dist/components/banner/banner.js.map +0 -1
- package/dist/components/button/button-types.js +0 -2
- package/dist/components/button/button-types.js.map +0 -1
- package/dist/components/button/button.js +0 -20
- package/dist/components/button/button.js.map +0 -1
- package/dist/components/button-group/button-group-types.js +0 -2
- package/dist/components/button-group/button-group-types.js.map +0 -1
- package/dist/components/button-group/button-group.js +0 -16
- package/dist/components/button-group/button-group.js.map +0 -1
- package/dist/components/checkbox/checkbox-types.js +0 -2
- package/dist/components/checkbox/checkbox-types.js.map +0 -1
- package/dist/components/checkbox/checkbox.js +0 -19
- package/dist/components/checkbox/checkbox.js.map +0 -1
- package/dist/components/code-block/code-block.js +0 -9
- package/dist/components/code-block/code-block.js.map +0 -1
- package/dist/components/file-upload/file-upload-types.js +0 -2
- package/dist/components/file-upload/file-upload-types.js.map +0 -1
- package/dist/components/file-upload/file-upload-utils.js +0 -10
- package/dist/components/file-upload/file-upload-utils.js.map +0 -1
- package/dist/components/file-upload/file-upload.js +0 -106
- package/dist/components/file-upload/file-upload.js.map +0 -1
- package/dist/components/graph/graph-types.js +0 -2
- package/dist/components/graph/graph-types.js.map +0 -1
- package/dist/components/graph/graph.js +0 -21
- package/dist/components/graph/graph.js.map +0 -1
- package/dist/components/input/date/date-calendar.js +0 -114
- package/dist/components/input/date/date-calendar.js.map +0 -1
- package/dist/components/input/date/date-input-field.js +0 -61
- package/dist/components/input/date/date-input-field.js.map +0 -1
- package/dist/components/input/date/date-picker.js +0 -35
- package/dist/components/input/date/date-picker.js.map +0 -1
- package/dist/components/input/date/date-range-input-field.js +0 -90
- package/dist/components/input/date/date-range-input-field.js.map +0 -1
- package/dist/components/input/date/date-range-picker.js +0 -74
- package/dist/components/input/date/date-range-picker.js.map +0 -1
- package/dist/components/input/date/date-shortcuts.js +0 -47
- package/dist/components/input/date/date-shortcuts.js.map +0 -1
- package/dist/components/input/date/date-types.js +0 -2
- package/dist/components/input/date/date-types.js.map +0 -1
- package/dist/components/input/date/date-utils.js +0 -203
- package/dist/components/input/date/date-utils.js.map +0 -1
- package/dist/components/input/input-types.js +0 -2
- package/dist/components/input/input-types.js.map +0 -1
- package/dist/components/input/input.js +0 -14
- package/dist/components/input/input.js.map +0 -1
- package/dist/components/input/number/input-number-types.js +0 -2
- package/dist/components/input/number/input-number-types.js.map +0 -1
- package/dist/components/input/number/input-number.js +0 -11
- package/dist/components/input/number/input-number.js.map +0 -1
- package/dist/components/input/text/input-text-types.js +0 -2
- package/dist/components/input/text/input-text-types.js.map +0 -1
- package/dist/components/input/text/input-text.js +0 -8
- package/dist/components/input/text/input-text.js.map +0 -1
- package/dist/components/kbd/kbd-types.js +0 -2
- package/dist/components/kbd/kbd-types.js.map +0 -1
- package/dist/components/kbd/kbd.js +0 -12
- package/dist/components/kbd/kbd.js.map +0 -1
- package/dist/components/kbd-group/kbd-group-types.js +0 -2
- package/dist/components/kbd-group/kbd-group-types.js.map +0 -1
- package/dist/components/kbd-group/kbd-group.js +0 -15
- package/dist/components/kbd-group/kbd-group.js.map +0 -1
- package/dist/components/list/list-types.js +0 -2
- package/dist/components/list/list-types.js.map +0 -1
- package/dist/components/list/list-utils.js +0 -73
- package/dist/components/list/list-utils.js.map +0 -1
- package/dist/components/list/list.js +0 -68
- package/dist/components/list/list.js.map +0 -1
- package/dist/components/menu/anchored-navigation-menu.js +0 -48
- package/dist/components/menu/anchored-navigation-menu.js.map +0 -1
- package/dist/components/menu/menu-assets.js +0 -35
- package/dist/components/menu/menu-assets.js.map +0 -1
- package/dist/components/menu/menu-types.js +0 -2
- package/dist/components/menu/menu-types.js.map +0 -1
- package/dist/components/menu/menu.js +0 -86
- package/dist/components/menu/menu.js.map +0 -1
- package/dist/components/otp/otp-types.js +0 -2
- package/dist/components/otp/otp-types.js.map +0 -1
- package/dist/components/otp/otp-utils.js +0 -22
- package/dist/components/otp/otp-utils.js.map +0 -1
- package/dist/components/otp/otp.js +0 -85
- package/dist/components/otp/otp.js.map +0 -1
- package/dist/components/select/select-types.js +0 -2
- package/dist/components/select/select-types.js.map +0 -1
- package/dist/components/select/select.js +0 -52
- package/dist/components/select/select.js.map +0 -1
- package/dist/components/tag/tag-types.js +0 -2
- package/dist/components/tag/tag-types.js.map +0 -1
- package/dist/components/tag/tag.js +0 -16
- package/dist/components/tag/tag.js.map +0 -1
- package/dist/components/textarea/textarea-types.js +0 -2
- package/dist/components/textarea/textarea-types.js.map +0 -1
- package/dist/components/textarea/textarea.js +0 -19
- package/dist/components/textarea/textarea.js.map +0 -1
- package/dist/components/toast-group/toast-group-types.js +0 -2
- package/dist/components/toast-group/toast-group-types.js.map +0 -1
- package/dist/components/toast-group/toast-group.js +0 -25
- package/dist/components/toast-group/toast-group.js.map +0 -1
- package/dist/components/typography/typography-types.js +0 -11
- package/dist/components/typography/typography-types.js.map +0 -1
- package/dist/components/typography/typography.js +0 -17
- package/dist/components/typography/typography.js.map +0 -1
- package/dist/custom-components/chat/chat-types.js +0 -2
- package/dist/custom-components/chat/chat-types.js.map +0 -1
- package/dist/custom-components/chat/chat.js +0 -14
- package/dist/custom-components/chat/chat.js.map +0 -1
- package/dist/custom-components/layout/layout-types.js +0 -2
- package/dist/custom-components/layout/layout-types.js.map +0 -1
- package/dist/custom-components/layout/layout.js +0 -46
- package/dist/custom-components/layout/layout.js.map +0 -1
- package/dist/custom-components/layout-builder/layout-builder-constants.js +0 -25
- package/dist/custom-components/layout-builder/layout-builder-constants.js.map +0 -1
- package/dist/custom-components/layout-builder/layout-builder-schema.js +0 -169
- package/dist/custom-components/layout-builder/layout-builder-schema.js.map +0 -1
- package/dist/custom-components/layout-builder/layout-builder-templates.js +0 -206
- package/dist/custom-components/layout-builder/layout-builder-templates.js.map +0 -1
- package/dist/custom-components/layout-builder/layout-builder-types.js +0 -2
- package/dist/custom-components/layout-builder/layout-builder-types.js.map +0 -1
- package/dist/custom-components/layout-builder/layout-builder-utils.js +0 -251
- package/dist/custom-components/layout-builder/layout-builder-utils.js.map +0 -1
- package/dist/custom-components/layout-builder/layout-builder-validation.js +0 -445
- package/dist/custom-components/layout-builder/layout-builder-validation.js.map +0 -1
- package/dist/custom-components/layout-builder/layout-builder.js +0 -908
- package/dist/custom-components/layout-builder/layout-builder.js.map +0 -1
- package/dist/custom-components/layout-builder/layout-json-editor-types.js +0 -2
- package/dist/custom-components/layout-builder/layout-json-editor-types.js.map +0 -1
- package/dist/custom-components/layout-builder/layout-json-editor.js +0 -103
- package/dist/custom-components/layout-builder/layout-json-editor.js.map +0 -1
- package/dist/custom-components/layout-builder/stories/hooks/useHistory.js +0 -100
- package/dist/custom-components/layout-builder/stories/hooks/useHistory.js.map +0 -1
- package/dist/custom-components/markdown/markdown-types.js +0 -2
- package/dist/custom-components/markdown/markdown-types.js.map +0 -1
- package/dist/custom-components/markdown/markdown-utils.js +0 -10
- package/dist/custom-components/markdown/markdown-utils.js.map +0 -1
- package/dist/custom-components/markdown/markdown.js +0 -39
- package/dist/custom-components/markdown/markdown.js.map +0 -1
- package/dist/custom-components/mindmap/index.js +0 -2
- package/dist/custom-components/mindmap/index.js.map +0 -1
- package/dist/custom-components/mindmap/mind-tree-types.js +0 -2
- package/dist/custom-components/mindmap/mind-tree-types.js.map +0 -1
- package/dist/custom-components/mindmap/mind-tree.js +0 -201
- package/dist/custom-components/mindmap/mind-tree.js.map +0 -1
- package/dist/custom-components/mindmap/reingold-tilford-algorithm.js +0 -277
- package/dist/custom-components/mindmap/reingold-tilford-algorithm.js.map +0 -1
- package/dist/custom-components/shortcut-tooltip/shortcut-tooltip-types.js +0 -2
- package/dist/custom-components/shortcut-tooltip/shortcut-tooltip-types.js.map +0 -1
- package/dist/custom-components/shortcut-tooltip/shortcut-tooltip.js +0 -32
- package/dist/custom-components/shortcut-tooltip/shortcut-tooltip.js.map +0 -1
- package/dist/custom-components/timeline/skeleton/timeline-skeleton.js +0 -19
- package/dist/custom-components/timeline/skeleton/timeline-skeleton.js.map +0 -1
- package/dist/custom-components/timeline/timeline-types.js +0 -2
- package/dist/custom-components/timeline/timeline-types.js.map +0 -1
- package/dist/custom-components/timeline/timeline.js +0 -64
- package/dist/custom-components/timeline/timeline.js.map +0 -1
- package/dist/custom-components/workflow/layout/workflow-edge.js +0 -31
- package/dist/custom-components/workflow/layout/workflow-edge.js.map +0 -1
- package/dist/custom-components/workflow/layout/workflow-layout-types.js +0 -2
- package/dist/custom-components/workflow/layout/workflow-layout-types.js.map +0 -1
- package/dist/custom-components/workflow/layout/workflow-layout.js +0 -284
- package/dist/custom-components/workflow/layout/workflow-layout.js.map +0 -1
- package/dist/custom-components/workflow/node/workflow-node.js +0 -22
- package/dist/custom-components/workflow/node/workflow-node.js.map +0 -1
- package/dist/custom-components/workflow/panel/workflow-panel-types.js +0 -2
- package/dist/custom-components/workflow/panel/workflow-panel-types.js.map +0 -1
- package/dist/custom-components/workflow/panel/workflow-panel.js +0 -53
- package/dist/custom-components/workflow/panel/workflow-panel.js.map +0 -1
- package/dist/custom-components/workflow/toolbar/workflow-toolbar-types.js +0 -2
- package/dist/custom-components/workflow/toolbar/workflow-toolbar-types.js.map +0 -1
- package/dist/custom-components/workflow/toolbar/workflow-toolbar.js +0 -19
- package/dist/custom-components/workflow/toolbar/workflow-toolbar.js.map +0 -1
- package/dist/custom-components/workflow/utils/workflow-validation.js +0 -257
- package/dist/custom-components/workflow/utils/workflow-validation.js.map +0 -1
- package/dist/custom-components/workflow/workflow-types.js +0 -2
- package/dist/custom-components/workflow/workflow-types.js.map +0 -1
- package/dist/custom-components/workflow/workflow.js +0 -125
- package/dist/custom-components/workflow/workflow.js.map +0 -1
- package/dist/data-components/assets/data-components-asset.js +0 -2
- package/dist/data-components/assets/data-components-asset.js.map +0 -1
- package/dist/data-components/calendar/calendar-types.js +0 -2
- package/dist/data-components/calendar/calendar-types.js.map +0 -1
- package/dist/data-components/calendar/calendar-utils.js +0 -2
- package/dist/data-components/calendar/calendar-utils.js.map +0 -1
- package/dist/data-components/calendar/calendar.js +0 -78
- package/dist/data-components/calendar/calendar.js.map +0 -1
- package/dist/data-components/cell/cell-switch.js +0 -68
- package/dist/data-components/cell/cell-switch.js.map +0 -1
- package/dist/data-components/cell/cell-types.js +0 -2
- package/dist/data-components/cell/cell-types.js.map +0 -1
- package/dist/data-components/cell/cell-utils.js +0 -60
- package/dist/data-components/cell/cell-utils.js.map +0 -1
- package/dist/data-components/cell/cell.js +0 -63
- package/dist/data-components/cell/cell.js.map +0 -1
- package/dist/data-components/chart/chart-types.js +0 -2
- package/dist/data-components/chart/chart-types.js.map +0 -1
- package/dist/data-components/chart/chart.js +0 -121
- package/dist/data-components/chart/chart.js.map +0 -1
- package/dist/data-components/chart/sankey/sankeyChart.js +0 -111
- package/dist/data-components/chart/sankey/sankeyChart.js.map +0 -1
- package/dist/data-components/data-structure/data-structure-utils.js +0 -28
- package/dist/data-components/data-structure/data-structure-utils.js.map +0 -1
- package/dist/data-components/data-structure/data-structure.js +0 -2
- package/dist/data-components/data-structure/data-structure.js.map +0 -1
- package/dist/data-components/data-structure/stories-assets.js +0 -199
- package/dist/data-components/data-structure/stories-assets.js.map +0 -1
- package/dist/data-components/form/form-types.js +0 -2
- package/dist/data-components/form/form-types.js.map +0 -1
- package/dist/data-components/form/form.js +0 -124
- package/dist/data-components/form/form.js.map +0 -1
- package/dist/data-components/table-grid/aggregation/aggregation-utils.js +0 -31
- package/dist/data-components/table-grid/aggregation/aggregation-utils.js.map +0 -1
- package/dist/data-components/table-grid/ai-assistant/ai-assistant-executor.js +0 -264
- package/dist/data-components/table-grid/ai-assistant/ai-assistant-executor.js.map +0 -1
- package/dist/data-components/table-grid/ai-assistant/ai-assistant-mock.js +0 -306
- package/dist/data-components/table-grid/ai-assistant/ai-assistant-mock.js.map +0 -1
- package/dist/data-components/table-grid/ai-assistant/ai-assistant-panel-types.js +0 -2
- package/dist/data-components/table-grid/ai-assistant/ai-assistant-panel-types.js.map +0 -1
- package/dist/data-components/table-grid/ai-assistant/ai-assistant-panel.js +0 -33
- package/dist/data-components/table-grid/ai-assistant/ai-assistant-panel.js.map +0 -1
- package/dist/data-components/table-grid/ai-assistant/ai-assistant-schema.js +0 -59
- package/dist/data-components/table-grid/ai-assistant/ai-assistant-schema.js.map +0 -1
- package/dist/data-components/table-grid/ai-assistant/ai-assistant-tools.js +0 -167
- package/dist/data-components/table-grid/ai-assistant/ai-assistant-tools.js.map +0 -1
- package/dist/data-components/table-grid/ai-assistant/ai-assistant-types.js +0 -2
- package/dist/data-components/table-grid/ai-assistant/ai-assistant-types.js.map +0 -1
- package/dist/data-components/table-grid/ai-assistant/ai-assistant-validator.js +0 -157
- package/dist/data-components/table-grid/ai-assistant/ai-assistant-validator.js.map +0 -1
- package/dist/data-components/table-grid/external-functionalities/import/csv/autoDetect.js +0 -27
- package/dist/data-components/table-grid/external-functionalities/import/csv/autoDetect.js.map +0 -1
- package/dist/data-components/table-grid/external-functionalities/import/csv/createDataStructureFromFile.js +0 -21
- package/dist/data-components/table-grid/external-functionalities/import/csv/createDataStructureFromFile.js.map +0 -1
- package/dist/data-components/table-grid/external-functionalities/import/csv/csvToObj.js +0 -21
- package/dist/data-components/table-grid/external-functionalities/import/csv/csvToObj.js.map +0 -1
- package/dist/data-components/table-grid/external-functionalities/import/csv/detectDelimeter.js +0 -12
- package/dist/data-components/table-grid/external-functionalities/import/csv/detectDelimeter.js.map +0 -1
- package/dist/data-components/table-grid/external-functionalities/import/csv/index.js +0 -7
- package/dist/data-components/table-grid/external-functionalities/import/csv/index.js.map +0 -1
- package/dist/data-components/table-grid/external-functionalities/import/csv/inferColumns.js +0 -15
- package/dist/data-components/table-grid/external-functionalities/import/csv/inferColumns.js.map +0 -1
- package/dist/data-components/table-grid/external-functionalities/import/csv/parseDelimeted.js +0 -50
- package/dist/data-components/table-grid/external-functionalities/import/csv/parseDelimeted.js.map +0 -1
- package/dist/data-components/table-grid/footer/table-grid-footer-types.js +0 -2
- package/dist/data-components/table-grid/footer/table-grid-footer-types.js.map +0 -1
- package/dist/data-components/table-grid/footer/table-grid-footer.js +0 -47
- package/dist/data-components/table-grid/footer/table-grid-footer.js.map +0 -1
- package/dist/data-components/table-grid/formula/evaluator.js +0 -91
- package/dist/data-components/table-grid/formula/evaluator.js.map +0 -1
- package/dist/data-components/table-grid/formula/formula-builder-types.js +0 -2
- package/dist/data-components/table-grid/formula/formula-builder-types.js.map +0 -1
- package/dist/data-components/table-grid/formula/formula-builder.js +0 -47
- package/dist/data-components/table-grid/formula/formula-builder.js.map +0 -1
- package/dist/data-components/table-grid/formula/formula.test.js +0 -50
- package/dist/data-components/table-grid/formula/formula.test.js.map +0 -1
- package/dist/data-components/table-grid/formula/index.js +0 -40
- package/dist/data-components/table-grid/formula/index.js.map +0 -1
- package/dist/data-components/table-grid/formula/parser.js +0 -179
- package/dist/data-components/table-grid/formula/parser.js.map +0 -1
- package/dist/data-components/table-grid/formula/tokenizer.js +0 -140
- package/dist/data-components/table-grid/formula/tokenizer.js.map +0 -1
- package/dist/data-components/table-grid/formula/types.js +0 -2
- package/dist/data-components/table-grid/formula/types.js.map +0 -1
- package/dist/data-components/table-grid/header/grouping/group-panel-types.js +0 -2
- package/dist/data-components/table-grid/header/grouping/group-panel-types.js.map +0 -1
- package/dist/data-components/table-grid/header/grouping/group-panel.js +0 -91
- package/dist/data-components/table-grid/header/grouping/group-panel.js.map +0 -1
- package/dist/data-components/table-grid/header/table-grid-column-menu.js +0 -84
- package/dist/data-components/table-grid/header/table-grid-column-menu.js.map +0 -1
- package/dist/data-components/table-grid/header/table-grid-header-types.js +0 -2
- package/dist/data-components/table-grid/header/table-grid-header-types.js.map +0 -1
- package/dist/data-components/table-grid/header/table-grid-header.js +0 -148
- package/dist/data-components/table-grid/header/table-grid-header.js.map +0 -1
- package/dist/data-components/table-grid/hooks/use-table.js +0 -18
- package/dist/data-components/table-grid/hooks/use-table.js.map +0 -1
- package/dist/data-components/table-grid/pinning/pinning-utils.js +0 -70
- package/dist/data-components/table-grid/pinning/pinning-utils.js.map +0 -1
- package/dist/data-components/table-grid/pivot/pivot-config-panel-types.js +0 -2
- package/dist/data-components/table-grid/pivot/pivot-config-panel-types.js.map +0 -1
- package/dist/data-components/table-grid/pivot/pivot-config-panel.js +0 -89
- package/dist/data-components/table-grid/pivot/pivot-config-panel.js.map +0 -1
- package/dist/data-components/table-grid/pivot/pivot-table.js +0 -26
- package/dist/data-components/table-grid/pivot/pivot-table.js.map +0 -1
- package/dist/data-components/table-grid/pivot/pivot-types.js +0 -2
- package/dist/data-components/table-grid/pivot/pivot-types.js.map +0 -1
- package/dist/data-components/table-grid/pivot/pivot-utils.js +0 -150
- package/dist/data-components/table-grid/pivot/pivot-utils.js.map +0 -1
- package/dist/data-components/table-grid/row/table-grid-row-types.js +0 -2
- package/dist/data-components/table-grid/row/table-grid-row-types.js.map +0 -1
- package/dist/data-components/table-grid/row/table-grid-row-utils.js +0 -35
- package/dist/data-components/table-grid/row/table-grid-row-utils.js.map +0 -1
- package/dist/data-components/table-grid/row/table-grid-row.js +0 -68
- package/dist/data-components/table-grid/row/table-grid-row.js.map +0 -1
- package/dist/data-components/table-grid/selection/selection-types.js +0 -2
- package/dist/data-components/table-grid/selection/selection-types.js.map +0 -1
- package/dist/data-components/table-grid/selection/selection-utils.js +0 -136
- package/dist/data-components/table-grid/selection/selection-utils.js.map +0 -1
- package/dist/data-components/table-grid/sidebar/table-grid-sidebar-types.js +0 -2
- package/dist/data-components/table-grid/sidebar/table-grid-sidebar-types.js.map +0 -1
- package/dist/data-components/table-grid/sidebar/table-grid-sidebar.js +0 -7
- package/dist/data-components/table-grid/sidebar/table-grid-sidebar.js.map +0 -1
- package/dist/data-components/table-grid/sorting/sorting.js +0 -45
- package/dist/data-components/table-grid/sorting/sorting.js.map +0 -1
- package/dist/data-components/table-grid/table-context/table-context-types.js +0 -2
- package/dist/data-components/table-grid/table-context/table-context-types.js.map +0 -1
- package/dist/data-components/table-grid/table-context/table-context.js +0 -4
- package/dist/data-components/table-grid/table-context/table-context.js.map +0 -1
- package/dist/data-components/table-grid/table-grid-context.js +0 -258
- package/dist/data-components/table-grid/table-grid-context.js.map +0 -1
- package/dist/data-components/table-grid/table-grid-types.js +0 -2
- package/dist/data-components/table-grid/table-grid-types.js.map +0 -1
- package/dist/data-components/table-grid/table-grid.js +0 -144
- package/dist/data-components/table-grid/table-grid.js.map +0 -1
- package/dist/data-components/table-grid/table-utils.js +0 -116
- package/dist/data-components/table-grid/table-utils.js.map +0 -1
- package/dist/experimental-components/contribution-heatmap/contribution-heatmap-types.js +0 -2
- package/dist/experimental-components/contribution-heatmap/contribution-heatmap-types.js.map +0 -1
- package/dist/experimental-components/contribution-heatmap/contribution-heatmap-utils.js +0 -61
- package/dist/experimental-components/contribution-heatmap/contribution-heatmap-utils.js.map +0 -1
- package/dist/experimental-components/contribution-heatmap/contribution-heatmap.js +0 -23
- package/dist/experimental-components/contribution-heatmap/contribution-heatmap.js.map +0 -1
- package/dist/experimental-components/filter-builder/filter-builder-types.js +0 -2
- package/dist/experimental-components/filter-builder/filter-builder-types.js.map +0 -1
- package/dist/experimental-components/filter-builder/filter-builder.js +0 -139
- package/dist/experimental-components/filter-builder/filter-builder.js.map +0 -1
- package/dist/framework-components/appbar/appbar-assets.js +0 -5
- package/dist/framework-components/appbar/appbar-assets.js.map +0 -1
- package/dist/framework-components/appbar/appbar-types.js +0 -2
- package/dist/framework-components/appbar/appbar-types.js.map +0 -1
- package/dist/framework-components/appbar/appbar.js +0 -36
- package/dist/framework-components/appbar/appbar.js.map +0 -1
- package/dist/framework-components/breadcrumbs/breadcrumbs-types.js +0 -2
- package/dist/framework-components/breadcrumbs/breadcrumbs-types.js.map +0 -1
- package/dist/framework-components/breadcrumbs/breadcrumbs.js +0 -31
- package/dist/framework-components/breadcrumbs/breadcrumbs.js.map +0 -1
- package/dist/framework-components/drawer/drawer-types.js +0 -2
- package/dist/framework-components/drawer/drawer-types.js.map +0 -1
- package/dist/framework-components/drawer/drawer.js +0 -10
- package/dist/framework-components/drawer/drawer.js.map +0 -1
- package/dist/framework-components/scaffold/scaffold-context.js +0 -10
- package/dist/framework-components/scaffold/scaffold-context.js.map +0 -1
- package/dist/framework-components/scaffold/scaffold-types.js +0 -2
- package/dist/framework-components/scaffold/scaffold-types.js.map +0 -1
- package/dist/framework-components/scaffold/scaffold.js +0 -76
- package/dist/framework-components/scaffold/scaffold.js.map +0 -1
- package/dist/framework-components/sidebar/sidebar-assets.js +0 -4
- package/dist/framework-components/sidebar/sidebar-assets.js.map +0 -1
- package/dist/framework-components/sidebar/sidebar-context.js +0 -9
- package/dist/framework-components/sidebar/sidebar-context.js.map +0 -1
- package/dist/framework-components/sidebar/sidebar-logo/sidebar-logo-types.js +0 -2
- package/dist/framework-components/sidebar/sidebar-logo/sidebar-logo-types.js.map +0 -1
- package/dist/framework-components/sidebar/sidebar-logo/sidebar-logo.js +0 -12
- package/dist/framework-components/sidebar/sidebar-logo/sidebar-logo.js.map +0 -1
- package/dist/framework-components/sidebar/sidebar-types.js +0 -2
- package/dist/framework-components/sidebar/sidebar-types.js.map +0 -1
- package/dist/framework-components/sidebar/sidebar.js +0 -42
- package/dist/framework-components/sidebar/sidebar.js.map +0 -1
- package/dist/hooks/useDynamicVirtualList.js +0 -208
- package/dist/hooks/useDynamicVirtualList.js.map +0 -1
- package/dist/hooks/useFixedVirtualList.js +0 -64
- package/dist/hooks/useFixedVirtualList.js.map +0 -1
- package/dist/hooks/useShortcut.js +0 -86
- package/dist/hooks/useShortcut.js.map +0 -1
- package/dist/hooks/useTour/useTour-context-internal.js +0 -7
- package/dist/hooks/useTour/useTour-context-internal.js.map +0 -1
- package/dist/hooks/useTour/useTour-context.js +0 -54
- package/dist/hooks/useTour/useTour-context.js.map +0 -1
- package/dist/hooks/useTour/useTour-types.js +0 -2
- package/dist/hooks/useTour/useTour-types.js.map +0 -1
- package/dist/hooks/useTour/useTour.js +0 -408
- package/dist/hooks/useTour/useTour.js.map +0 -1
- package/dist/hooks/useVirtualListScroll.js +0 -79
- package/dist/hooks/useVirtualListScroll.js.map +0 -1
- package/dist/index.js +0 -63
- package/dist/index.js.map +0 -1
- package/dist/providers/ai-assistant/ai-assistant-prompts.js +0 -98
- package/dist/providers/ai-assistant/ai-assistant-prompts.js.map +0 -1
- package/dist/providers/ai-assistant/ai-assistant-types.js +0 -5
- package/dist/providers/ai-assistant/ai-assistant-types.js.map +0 -1
- package/dist/providers/ai-assistant/ai-assistant-validator.js +0 -74
- package/dist/providers/ai-assistant/ai-assistant-validator.js.map +0 -1
- package/dist/providers/ai-assistant/ai-chat-panel-types.js +0 -2
- package/dist/providers/ai-assistant/ai-chat-panel-types.js.map +0 -1
- package/dist/providers/ai-assistant/ai-chat-panel.js +0 -111
- package/dist/providers/ai-assistant/ai-chat-panel.js.map +0 -1
- package/dist/providers/shortcut/shortcut-context.js +0 -7
- package/dist/providers/shortcut/shortcut-context.js.map +0 -1
- package/dist/providers/shortcut/shortcut-provider.js +0 -267
- package/dist/providers/shortcut/shortcut-provider.js.map +0 -1
- package/dist/providers/theme/index.js +0 -2
- package/dist/providers/theme/index.js.map +0 -1
- package/dist/providers/theme/theme-provider-types.js +0 -2
- package/dist/providers/theme/theme-provider-types.js.map +0 -1
- package/dist/providers/theme/themeProvider.js +0 -17
- package/dist/providers/theme/themeProvider.js.map +0 -1
- package/dist/test/vitest.utils.js +0 -2
- package/dist/test/vitest.utils.js.map +0 -1
- package/dist/types/global-types.js +0 -10
- package/dist/types/global-types.js.map +0 -1
- package/dist/types/storybook-types.js +0 -2
- package/dist/types/storybook-types.js.map +0 -1
- package/dist/utility-components/avatar/avatar-types.js +0 -2
- package/dist/utility-components/avatar/avatar-types.js.map +0 -1
- package/dist/utility-components/avatar/avatar.js +0 -10
- package/dist/utility-components/avatar/avatar.js.map +0 -1
- package/dist/utility-components/chip/chip-types.js +0 -2
- package/dist/utility-components/chip/chip-types.js.map +0 -1
- package/dist/utility-components/chip/chip.js +0 -11
- package/dist/utility-components/chip/chip.js.map +0 -1
- package/dist/utility-components/helper-text/helper-text-types.js +0 -2
- package/dist/utility-components/helper-text/helper-text-types.js.map +0 -1
- package/dist/utility-components/helper-text/helper-text.js +0 -12
- package/dist/utility-components/helper-text/helper-text.js.map +0 -1
- package/dist/utility-components/icon/icon-assets.js +0 -95
- package/dist/utility-components/icon/icon-assets.js.map +0 -1
- package/dist/utility-components/icon/icon-types.js +0 -2
- package/dist/utility-components/icon/icon-types.js.map +0 -1
- package/dist/utility-components/icon/icon.js +0 -28
- package/dist/utility-components/icon/icon.js.map +0 -1
- package/dist/utility-components/label/label-types.js +0 -2
- package/dist/utility-components/label/label-types.js.map +0 -1
- package/dist/utility-components/label/label.js +0 -10
- package/dist/utility-components/label/label.js.map +0 -1
- package/dist/utility-components/overlay-panel/overlay-panel-types.js +0 -2
- package/dist/utility-components/overlay-panel/overlay-panel-types.js.map +0 -1
- package/dist/utility-components/overlay-panel/overlay-panel.js +0 -98
- package/dist/utility-components/overlay-panel/overlay-panel.js.map +0 -1
- package/dist/utility-components/overlay-panel/use-focus-trap.js +0 -61
- package/dist/utility-components/overlay-panel/use-focus-trap.js.map +0 -1
- package/dist/utility-components/skeleton/skeleton-types.js +0 -2
- package/dist/utility-components/skeleton/skeleton-types.js.map +0 -1
- package/dist/utility-components/skeleton/skeleton.js +0 -14
- package/dist/utility-components/skeleton/skeleton.js.map +0 -1
- package/dist/utility-components/stack/stack-types.js +0 -2
- package/dist/utility-components/stack/stack-types.js.map +0 -1
- package/dist/utility-components/stack/stack.js +0 -12
- package/dist/utility-components/stack/stack.js.map +0 -1
- package/dist/utility-components/toast/toast-types.js +0 -2
- package/dist/utility-components/toast/toast-types.js.map +0 -1
- package/dist/utility-components/toast/toast.js +0 -21
- package/dist/utility-components/toast/toast.js.map +0 -1
- package/dist/utils/general.js +0 -27
- package/dist/utils/general.js.map +0 -1
- package/dist/utils/shortcut-utils.js +0 -164
- package/dist/utils/shortcut-utils.js.map +0 -1
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
/**
|
|
3
|
-
* Highlights the part of the `text` that matches the `query` using a <strong> tag.
|
|
4
|
-
*
|
|
5
|
-
* @param text - The original string to search in.
|
|
6
|
-
* @param query - The substring to highlight if found in the text.
|
|
7
|
-
* @returns A React node with the matched part wrapped in <strong>, or the plain text if no match.
|
|
8
|
-
*/
|
|
9
|
-
export function highlightMatch(text, query) {
|
|
10
|
-
if (!query)
|
|
11
|
-
return text;
|
|
12
|
-
const lowerText = text.toLowerCase();
|
|
13
|
-
const lowerQuery = query.toLowerCase();
|
|
14
|
-
const matchIndex = lowerText.indexOf(lowerQuery);
|
|
15
|
-
if (matchIndex === -1)
|
|
16
|
-
return text;
|
|
17
|
-
const before = text.slice(0, matchIndex);
|
|
18
|
-
const match = text.slice(matchIndex, matchIndex + query.length);
|
|
19
|
-
const after = text.slice(matchIndex + query.length);
|
|
20
|
-
return (_jsxs("span", { children: [before, _jsx("strong", { children: match }), after] }));
|
|
21
|
-
}
|
|
22
|
-
/**
|
|
23
|
-
* Filters the provided options based on the filter string, and appends a "create new item" option
|
|
24
|
-
* if the filter does not exactly match any existing option and `onCreate` is provided.
|
|
25
|
-
*
|
|
26
|
-
* @param options - The list of selectable options.
|
|
27
|
-
* @param filterValue - The string used to filter the options.
|
|
28
|
-
* @returns An object containing the filtered options, the final options (possibly including a create item),
|
|
29
|
-
* and a flag indicating whether the create item is shown.
|
|
30
|
-
*/
|
|
31
|
-
export const getFullOptions = (options, filterValue) => {
|
|
32
|
-
const filtered = options.filter((opt) => opt.value.toLowerCase().includes(filterValue.toLowerCase()));
|
|
33
|
-
const hasExactMatch = filtered.some((opt) => opt.value.toLowerCase() === filterValue.toLowerCase());
|
|
34
|
-
const showCreateItem = Boolean(filterValue && !hasExactMatch);
|
|
35
|
-
const full = filtered;
|
|
36
|
-
return {
|
|
37
|
-
filteredOptions: filtered,
|
|
38
|
-
fullOptions: full,
|
|
39
|
-
showCreateItem,
|
|
40
|
-
};
|
|
41
|
-
};
|
|
42
|
-
/**
|
|
43
|
-
* Handles keyboard navigation within a list component, including arrow navigation, selection (Enter),
|
|
44
|
-
* and escape behavior. Also triggers `onClick`, or `onKeyDown` as needed.
|
|
45
|
-
*
|
|
46
|
-
* @param params - An object containing the keyboard event and relevant list control functions and data.
|
|
47
|
-
* @param params.e - The keyboard event.
|
|
48
|
-
* @param params.localSelectedIndex - The current selected index in the list.
|
|
49
|
-
* @param params.setLocalSelectedIndex - Setter to update the selected index.
|
|
50
|
-
* @param params.filteredOptions - The options shown after filtering.
|
|
51
|
-
* @param params.fullOptions - The full list of options (may include "create new" entry).
|
|
52
|
-
* @param params.onClick - Callback when an item is selected.
|
|
53
|
-
* @param params.onKeyDown - Optional additional key down handler.
|
|
54
|
-
*/
|
|
55
|
-
export const handleKeyNavigation = ({ e, localSelectedIndex, setLocalSelectedIndex, filteredOptions, fullOptions, onClick, onKeyDown, }) => {
|
|
56
|
-
if (e.key === "ArrowDown" || e.key === "ArrowUp") {
|
|
57
|
-
e.preventDefault();
|
|
58
|
-
let newIndex = localSelectedIndex;
|
|
59
|
-
if (e.key === "ArrowDown") {
|
|
60
|
-
newIndex = localSelectedIndex < filteredOptions.length - 1 ? localSelectedIndex + 1 : 0;
|
|
61
|
-
}
|
|
62
|
-
else if (e.key === "ArrowUp") {
|
|
63
|
-
newIndex = localSelectedIndex > 0 ? localSelectedIndex - 1 : filteredOptions.length - 1;
|
|
64
|
-
}
|
|
65
|
-
setLocalSelectedIndex(newIndex);
|
|
66
|
-
}
|
|
67
|
-
else if (e.key === "Enter") {
|
|
68
|
-
const item = fullOptions[localSelectedIndex];
|
|
69
|
-
onClick?.(item);
|
|
70
|
-
}
|
|
71
|
-
onKeyDown?.(e);
|
|
72
|
-
};
|
|
73
|
-
//# sourceMappingURL=list-utils.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"list-utils.js","sourceRoot":"","sources":["../../../src/components/list/list-utils.tsx"],"names":[],"mappings":";AAGA;;;;;;GAMG;AACH,MAAM,UAAU,cAAc,CAAC,IAAY,EAAE,KAAa;IACxD,IAAI,CAAC,KAAK;QAAE,OAAO,IAAI,CAAC;IAExB,MAAM,SAAS,GAAG,IAAI,CAAC,WAAW,EAAE,CAAC;IACrC,MAAM,UAAU,GAAG,KAAK,CAAC,WAAW,EAAE,CAAC;IACvC,MAAM,UAAU,GAAG,SAAS,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC;IAEjD,IAAI,UAAU,KAAK,CAAC,CAAC;QAAE,OAAO,IAAI,CAAC;IAEnC,MAAM,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,EAAE,UAAU,CAAC,CAAC;IACzC,MAAM,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,UAAU,EAAE,UAAU,GAAG,KAAK,CAAC,MAAM,CAAC,CAAC;IAChE,MAAM,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,UAAU,GAAG,KAAK,CAAC,MAAM,CAAC,CAAC;IAEpD,OAAO,CACL,2BACG,MAAM,EACP,2BAAS,KAAK,GAAU,EACvB,KAAK,IACD,CACR,CAAC;AACJ,CAAC;AAED;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,OAA6B,EAAE,WAAmB,EAAE,EAAE;IACnF,MAAM,QAAQ,GAAG,OAAO,CAAC,MAAM,CA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,CAAC;QAED,qBAAqB,CAAC,QAAQ,CAAC,CAAC;IAClC,CAAC;SAAM,IAAI,CAAC,CAAC,GAAG,KAAK,OAAO,EAAE,CAAC;QAC7B,MAAM,IAAI,GAAG,WAAW,CAAC,kBAAkB,CAAC,CAAC;QAC7C,OAAO,EAAE,CAAC,IAAI,CAAC,CAAC;IAClB,CAAC;IACD,SAAS,EAAE,CAAC,CAAC,CAAC,CAAC;AACjB,CAAC,CAAC"}
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { useEffect, useState, useMemo } from "react";
|
|
3
|
-
import { Icon } from "../../utility-components/icon/icon";
|
|
4
|
-
import style from "./list.module.css";
|
|
5
|
-
import { getFullOptions, handleKeyNavigation, highlightMatch } from "./list-utils";
|
|
6
|
-
import { TextInput } from "../input/text/input-text";
|
|
7
|
-
import { useFixedVirtualList } from "../../hooks/useFixedVirtualList";
|
|
8
|
-
export const List = ({ id, options, ref: listRef, width, onClick, onKeyDown, multiple = false, selectedIndex = -1, activeIndex = [] }) => {
|
|
9
|
-
const [filterValue, setFilterValue] = useState("");
|
|
10
|
-
const [localSelectedIndex, setLocalSelectedIndex] = useState(selectedIndex);
|
|
11
|
-
useEffect(() => {
|
|
12
|
-
setLocalSelectedIndex(selectedIndex);
|
|
13
|
-
}, [selectedIndex]);
|
|
14
|
-
const { filteredOptions, fullOptions } = useMemo(() => getFullOptions(options, filterValue), [options, filterValue]);
|
|
15
|
-
const { virtualItems, containerProps, innerProps, scrollToIndex } = useFixedVirtualList({
|
|
16
|
-
items: filteredOptions,
|
|
17
|
-
itemHeight: 24,
|
|
18
|
-
containerHeight: 200,
|
|
19
|
-
overscan: 5,
|
|
20
|
-
});
|
|
21
|
-
// keep active item visible when external selection changes
|
|
22
|
-
useEffect(() => {
|
|
23
|
-
if (!activeIndex?.length)
|
|
24
|
-
return;
|
|
25
|
-
const firstActiveIndex = filteredOptions.findIndex((o) => o.value === activeIndex[0]);
|
|
26
|
-
if (firstActiveIndex !== -1) {
|
|
27
|
-
scrollToIndex(firstActiveIndex);
|
|
28
|
-
}
|
|
29
|
-
}, [activeIndex, filteredOptions, scrollToIndex]);
|
|
30
|
-
const listClass = {
|
|
31
|
-
wrapper: style["rst-list"],
|
|
32
|
-
input: style["rst-list-input"],
|
|
33
|
-
container: style["rst-list-container"],
|
|
34
|
-
virtualScroll: style["rst-list-virtualScroll"],
|
|
35
|
-
listItem: style["rst-list-listItem"],
|
|
36
|
-
listItemCreate: style["rst-list-listItem-create"],
|
|
37
|
-
noElements: style["rst-list-noElements"],
|
|
38
|
-
};
|
|
39
|
-
return (_jsxs("div", { id: id, ref: listRef, className: listClass.wrapper, "data-component": "list", style: { width }, children: [_jsx("div", { className: listClass.input, children: _jsx(TextInput, { autoFocus: true, value: filterValue, placeholder: "Search...", onChange: (v) => setFilterValue(v ?? ""), onKeyDown: (e) => handleKeyNavigation({
|
|
40
|
-
e,
|
|
41
|
-
localSelectedIndex,
|
|
42
|
-
setLocalSelectedIndex,
|
|
43
|
-
filteredOptions,
|
|
44
|
-
fullOptions,
|
|
45
|
-
onClick,
|
|
46
|
-
onKeyDown,
|
|
47
|
-
}) }) }), _jsx("div", { ...containerProps, className: listClass.container, tabIndex: 0, role: "listbox", "aria-label": "List", "aria-multiselectable": multiple, "aria-activedescendant": filteredOptions[localSelectedIndex]?.value, onKeyDown: (e) => handleKeyNavigation({
|
|
48
|
-
e,
|
|
49
|
-
localSelectedIndex,
|
|
50
|
-
setLocalSelectedIndex,
|
|
51
|
-
filteredOptions,
|
|
52
|
-
fullOptions,
|
|
53
|
-
onClick,
|
|
54
|
-
onKeyDown,
|
|
55
|
-
}), children: _jsx("div", { ...innerProps, className: listClass.virtualScroll, children: filteredOptions.length === 0 ? (_jsx("div", { className: listClass.noElements, children: "No elements" })) : (virtualItems.map(({ item, index, offsetTop }) => {
|
|
56
|
-
const isActive = activeIndex.includes(item.value);
|
|
57
|
-
const isSelected = localSelectedIndex === index;
|
|
58
|
-
return (_jsxs("li", { role: "option", id: item.value, "aria-selected": isSelected, tabIndex: -1, className: `${listClass.listItem} ${isActive ? "selected-item" : ""}`, "aria-label": item.value, style: {
|
|
59
|
-
height: 24,
|
|
60
|
-
lineHeight: "20px",
|
|
61
|
-
transform: `translateY(${offsetTop}px)`,
|
|
62
|
-
}, onClick: () => {
|
|
63
|
-
onClick?.(item);
|
|
64
|
-
setLocalSelectedIndex(index);
|
|
65
|
-
}, children: [_jsxs("span", { className: listClass.listItemCreate, children: [item.leadingVisual && _jsx(Icon, { src: item.leadingVisual }), highlightMatch(item.value, filterValue)] }), isActive && _jsx(Icon, { src: "check" })] }, item.value));
|
|
66
|
-
})) }) })] }));
|
|
67
|
-
};
|
|
68
|
-
//# sourceMappingURL=list.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"list.js","sourceRoot":"","sources":["../../../src/components/list/list.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAErD,OAAO,EAAE,IAAI,EAAE,MAAM,oCAAoC,CAAC;AAC1D,OAAO,KAAK,MAAM,mBAAmB,CAAC;AACtC,OAAO,EAAE,cAAc,EAAE,mBAAmB,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AACnF,OAAO,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AACrD,OAAO,EAAE,mBAAmB,EAAE,MAAM,iCAAiC,CAAC;AAEtE,MAAM,CAAC,MAAM,IAAI,GAAwB,CAAC,EAAE,EAAE,EAAE,OAAO,EAAE,GAAG,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,SAAS,EAAE,QAAQ,GAAG,KAAK,EAAE,aAAa,GAAG,CAAC,CAAC,EAAE,WAAW,GAAG,EAAE,EAAE,EAAE,EAAE;IAC5J,MAAM,CAAC,WAAW,EAAE,cAAc,CAAC,GAAG,Q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EAAE,KAAK,EAAE,SAAS,EAAE,EAAE,EAAE;wBAC9C,MAAM,QAAQ,GAAG,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;wBAClD,MAAM,UAAU,GAAG,kBAAkB,KAAK,KAAK,CAAC;wBAEhD,OAAO,CACL,cAEE,IAAI,EAAC,QAAQ,EACb,EAAE,EAAE,IAAI,CAAC,KAAK,mBACC,UAAU,EACzB,QAAQ,EAAE,CAAC,CAAC,EACZ,SAAS,EAAE,GAAG,SAAS,CAAC,QAAQ,IAAI,QAAQ,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC,EAAE,EAAE,gBACzD,IAAI,CAAC,KAAK,EACtB,KAAK,EAAE;gCACL,MAAM,EAAE,EAAE;gCACV,UAAU,EAAE,MAAM;gCAClB,SAAS,EAAE,cAAc,SAAS,KAAK;6BACxC,EACD,OAAO,EAAE,GAAG,EAAE;gCACZ,OAAO,EAAE,CAAC,IAAI,CAAC,CAAC;gCAChB,qBAAqB,CAAC,KAAK,CAAC,CAAC;4BAC/B,CAAC,aAED,gBAAM,SAAS,EAAE,SAAS,CAAC,cAAc,aACtC,IAAI,CAAC,aAAa,IAAI,KAAC,IAAI,IAAC,GAAG,EAAE,IAAI,CAAC,aAAa,GAAI,EACvD,cAAc,CAAC,IAAI,CAAC,KAAK,EAAE,WAAW,CAAC,IACnC,EAEN,QAAQ,IAAI,KAAC,IAAI,IAAC,GAAG,EAAC,OAAO,GAAG,KAtB5B,IAAI,CAAC,KAAK,CAuBZ,CACN,CAAC;oBACJ,CAAC,CAAC,CACH,GACG,GACF,IACF,CACP,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { useState } from "react";
|
|
3
|
-
import { AnchoredOverlay } from "../anchored-overlay/anchored-overlay";
|
|
4
|
-
import Menu from "./menu";
|
|
5
|
-
import styles from "./anchored-navigation-menu.module.css";
|
|
6
|
-
import { Button } from "../button/button";
|
|
7
|
-
export const MenuComponent = ({ items, anchor, isOpen, onClose, onItemClick, width = 320, initialTitle = "", isClosingOnSelect = false, variant = "stack", position, align, }) => {
|
|
8
|
-
const [stack, setStack] = useState([{ title: initialTitle, items }]);
|
|
9
|
-
const current = stack[stack.length - 1];
|
|
10
|
-
const goToSubmenu = (item) => {
|
|
11
|
-
if (!item.children)
|
|
12
|
-
return;
|
|
13
|
-
setStack((s) => [...s, { title: item.label, items: item.children }]);
|
|
14
|
-
};
|
|
15
|
-
const pop = () => {
|
|
16
|
-
setStack((s) => (s.length > 1 ? s.slice(0, -1) : s));
|
|
17
|
-
};
|
|
18
|
-
const handleSelect = (item) => {
|
|
19
|
-
if (variant === "stack" && item.children) {
|
|
20
|
-
goToSubmenu(item);
|
|
21
|
-
return;
|
|
22
|
-
}
|
|
23
|
-
if (variant === "flyout" && item.children) {
|
|
24
|
-
return;
|
|
25
|
-
}
|
|
26
|
-
onItemClick?.(item);
|
|
27
|
-
if (isClosingOnSelect)
|
|
28
|
-
onClose?.();
|
|
29
|
-
};
|
|
30
|
-
const renderFlyoutItem = (it) => {
|
|
31
|
-
if (it.type === "separator")
|
|
32
|
-
return _jsx(Menu.Separator, {}, it.id);
|
|
33
|
-
if (it.children && it.children.length > 0) {
|
|
34
|
-
return (_jsx(Menu.Submenu, { trigger: _jsx(Menu.Item, { label: it.label, leadingVisual: it.leadingVisual, disabled: it.disabled, shortcut: it.shortcut, children: it.children }), children: it.children.map(renderFlyoutItem) }, it.id));
|
|
35
|
-
}
|
|
36
|
-
return (_jsx(Menu.Item, { label: it.label, leadingVisual: it.leadingVisual, disabled: it.disabled, shortcut: it.shortcut, content: it.content, onClick: () => handleSelect(it) }, it.id));
|
|
37
|
-
};
|
|
38
|
-
const renderStackItem = (it) => {
|
|
39
|
-
if (it.type === "separator")
|
|
40
|
-
return _jsx(Menu.Separator, {}, it.id);
|
|
41
|
-
return (_jsx(Menu.Item, { label: it.label, leadingVisual: it.leadingVisual, disabled: it.disabled, shortcut: it.shortcut, children: it.children, content: it.content, onClick: () => handleSelect(it) }, it.id));
|
|
42
|
-
};
|
|
43
|
-
const title = variant === "stack" ? current.title : initialTitle;
|
|
44
|
-
const showBack = variant === "stack" && stack.length > 1;
|
|
45
|
-
return (_jsx(AnchoredOverlay, { isOpen: isOpen, onClose: onClose, anchor: anchor, position: position, align: align, target: _jsxs("div", { className: styles["rst-anchored-navigation"], style: { width }, role: "menu", children: [_jsxs("div", { className: styles["rst-anchored-navigation-header"], children: [_jsx("div", { className: styles["rst-anchored-navigation-back"], children: showBack ? _jsx(Button, { leadingVisual: "arrow-left", variant: "invisible", onClick: pop, "aria-label": "Back" }) : _jsx("div", { style: { width: 16 } }) }), _jsx("div", { className: styles["rst-anchored-navigation-title"], children: title }), _jsx("div", { className: styles["rst-anchored-navigation-close"], children: _jsx(Button, { leadingVisual: "close", variant: "invisible", onClick: onClose, "aria-label": "Close" }) })] }), _jsx("div", { className: styles["rst-anchored-navigation-content"], children: variant === "stack" ? current.items.map(renderStackItem) : items.map(renderFlyoutItem) })] }) }));
|
|
46
|
-
};
|
|
47
|
-
export default MenuComponent;
|
|
48
|
-
//# sourceMappingURL=anchored-navigation-menu.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"anchored-navigation-menu.js","sourceRoot":"","sources":["../../../src/components/menu/anchored-navigation-menu.tsx"],"names":[],"mappings":";AAAA,OAAc,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,eAAe,EAAE,MAAM,sCAAsC,CAAC;AACvE,OAAO,IAAI,MAAM,QAAQ,CAAC;AAE1B,OAAO,MAAM,MAAM,uCAAuC,CAAC;AAC3D,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAiB1C,MAAM,CAAC,MAAM,aAAa,GAAiC,CAAC,EAC1D,KAAK,EACL,MAAM,EACN,MAAM,EACN,O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CAAC,+BAA+B,CAAC,YACrD,KAAC,MAAM,IAAC,aAAa,EAAC,OAAO,EAAC,OAAO,EAAC,WAAW,EAAC,OAAO,EAAE,OAAO,gBAAa,OAAO,GAAU,GAC5F,IACF,EACN,cAAK,SAAS,EAAE,MAAM,CAAC,iCAAiC,CAAC,YACtD,OAAO,KAAK,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,gBAAgB,CAAC,GACnF,IACF,GAER,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,aAAa,CAAC"}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
export const dataMenuAsset = [
|
|
3
|
-
{
|
|
4
|
-
id: "1",
|
|
5
|
-
label: "File",
|
|
6
|
-
children: [
|
|
7
|
-
{ id: "1-1", label: "New File", leadingVisual: "file" },
|
|
8
|
-
{ id: "1-2", label: "Open", leadingVisual: "folder" },
|
|
9
|
-
{
|
|
10
|
-
id: "1-3",
|
|
11
|
-
label: "Recent",
|
|
12
|
-
children: [
|
|
13
|
-
{ id: "1-3-1", label: "project-a" },
|
|
14
|
-
{ id: "1-3-2", label: "project-b" },
|
|
15
|
-
],
|
|
16
|
-
},
|
|
17
|
-
],
|
|
18
|
-
},
|
|
19
|
-
{
|
|
20
|
-
id: "2",
|
|
21
|
-
label: "Edit",
|
|
22
|
-
children: [
|
|
23
|
-
{ id: "2-1", label: "Undo" },
|
|
24
|
-
{ id: "2-2", label: "Redo" },
|
|
25
|
-
],
|
|
26
|
-
},
|
|
27
|
-
{ id: "3", label: "View" },
|
|
28
|
-
{ id: "sep-1", type: "separator", label: "" },
|
|
29
|
-
{
|
|
30
|
-
id: "custom-1",
|
|
31
|
-
content: (_jsxs("div", { style: { display: "flex", gap: 12, alignItems: "center", padding: "4px 0" }, children: [_jsx("div", { style: { width: 32, height: 32, borderRadius: 4, backgroundColor: "var(--rst-backgroundColor-hover)" } }), _jsxs("div", { children: [_jsx("div", { style: { fontWeight: 600, fontSize: 13 }, children: "Custom Component" }), _jsx("div", { style: { fontSize: 11, color: "var(--rst-fontColor-muted)" }, children: "Example node" })] })] })),
|
|
32
|
-
},
|
|
33
|
-
{ id: "4", label: "Help" },
|
|
34
|
-
];
|
|
35
|
-
//# sourceMappingURL=menu-assets.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"menu-assets.js","sourceRoot":"","sources":["../../../src/components/menu/menu-assets.tsx"],"names":[],"mappings":";AAEA,MAAM,CAAC,MAAM,aAAa,GAAe;IACvC;QACE,EAAE,EAAE,GAAG;QACP,KAAK,EAAE,MAAM;QACb,QAAQ,EAAE;YACR,EAAE,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,EAAE;YACvD,EAAE,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,aAAa,EAAE,QAAQ,EAAE;YACrD;gBACE,EAAE,EAAE,KAAK;gBACT,KAAK,EAAE,QAAQ;gBACf,QAAQ,EAAE;oBACR,EAAE,EAAE,EAAE,OAAO,EAAE,KAAK,EAAE,WAAW,EAAE;oBACnC,EAAE,EAAE,EAAE,OAAO,EAAE,KAAK,EAAE,WAAW,EAAE;iBACpC;aACF;SACF;KACF;IACD;QACE,EAAE,EAAE,GAAG;QACP,KAAK,EAAE,MAAM;QACb,QAAQ,EAAE;YACR,EAAE,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE;YAC5B,EAAE,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE;SAC7B;KACF;IACD,EAAE,EAAE,EAAE,GAAG,EAAE,KAAK,EAAE,MAAM,EAAE;IAC1B,EAAE,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,WAAW,EAAE,KAAK,EAAE,EAAE,EAAE;IAC7C;QACE,EAAE,EAAE,UAAU;QACd,OAAO,EAAE,CACP,eAAK,KAAK,EAAE,EAAE,OAAO,EAAE,MAAM,EAAE,GAAG,EAAE,EAAE,EAAE,UAAU,EAAE,QAAQ,EAAE,OAAO,EAAE,OAAO,EAAE,aAC9E,cAAK,KAAK,EAAE,EAAE,KAAK,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,YAAY,EAAE,CAAC,EAAE,eAAe,EAAE,kCAAkC,EAAE,GAAI,EAC/G,0BACE,cAAK,KAAK,EAAE,EAAE,UAAU,EAAE,GAAG,EAAE,QAAQ,EAAE,EAAE,EAAE,iCAAwB,EACrE,cAAK,KAAK,EAAE,EAAE,QAAQ,EAAE,EAAE,EAAE,KAAK,EAAE,4BAA4B,EAAE,6BAAoB,IACjF,IACF,CACP;KACF;IACD,EAAE,EAAE,EAAE,GAAG,EAAE,KAAK,EAAE,MAAM,EAAE;CAC3B,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"menu-types.js","sourceRoot":"","sources":["../../../src/components/menu/menu-types.ts"],"names":[],"mappings":""}
|
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import React, { useState, useRef } from "react";
|
|
3
|
-
import { AnchoredOverlay } from "../anchored-overlay/anchored-overlay";
|
|
4
|
-
import { Icon } from "../../utility-components/icon/icon";
|
|
5
|
-
import { Typography } from "../typography/typography";
|
|
6
|
-
import { KbdGroup } from "../kbd-group/kbd-group";
|
|
7
|
-
import styles from "./menu.module.css";
|
|
8
|
-
// Main Menu component
|
|
9
|
-
const MenuRoot = ({ children, className, ...props }) => {
|
|
10
|
-
const menuClassNames = [styles["rst-menu"], className].filter(Boolean).join(" ");
|
|
11
|
-
return (_jsx("div", { className: menuClassNames, role: "menu", ...props, children: children }));
|
|
12
|
-
};
|
|
13
|
-
// Menu Item component
|
|
14
|
-
const MenuItemComponent = ({ label, children, disabled = false, leadingVisual, shortcut, onClick, content, id, ...props }) => {
|
|
15
|
-
const hasSubmenu = children && children.length >= 1;
|
|
16
|
-
console.log("Rendering MenuItem:", label, content);
|
|
17
|
-
const handleClick = () => {
|
|
18
|
-
if (disabled)
|
|
19
|
-
return;
|
|
20
|
-
onClick?.({ label, disabled, leadingVisual, shortcut });
|
|
21
|
-
};
|
|
22
|
-
const handleKeyDown = (e) => {
|
|
23
|
-
if ((e.key === "Enter" || e.key === " ") && !disabled) {
|
|
24
|
-
e.preventDefault();
|
|
25
|
-
handleClick();
|
|
26
|
-
}
|
|
27
|
-
};
|
|
28
|
-
const menuItemClassNames = [styles["rst-menu-item"], disabled ? styles["rst-menu-item-disabled"] : ""].filter(Boolean).join(" ");
|
|
29
|
-
return (_jsx("div", { className: menuItemClassNames, onClick: handleClick, onKeyDown: handleKeyDown, tabIndex: disabled ? -1 : 0, role: "menuitem", "aria-disabled": disabled, "aria-haspopup": hasSubmenu ? "menu" : undefined, ...props, children: content ? (_jsx(_Fragment, { children: content })) : (_jsxs("div", { className: styles["rst-menu-item-content"], children: [leadingVisual && (_jsx("div", { className: styles["rst-menu-item-leading-visual"], children: _jsx(Icon, { src: leadingVisual, state: "base" }) })), _jsx(Typography, { variant: "body", children: label }), shortcut && (_jsx("div", { className: styles["rst-menu-item-shortcut"], children: _jsx(KbdGroup, { keys: shortcut, showSeparator: false }) })), hasSubmenu && (_jsx("div", { className: styles["rst-menu-item-submenu-indicator"], children: _jsx(Icon, { src: "chevron-right", state: "base" }) }))] })) }, id));
|
|
30
|
-
};
|
|
31
|
-
// Menu Separator component
|
|
32
|
-
const MenuSeparator = ({ className, ...props }) => {
|
|
33
|
-
const separatorClassNames = [styles["rst-menu-separator"], className].filter(Boolean).join(" ");
|
|
34
|
-
return _jsx("hr", { className: separatorClassNames, role: "separator", ...props });
|
|
35
|
-
};
|
|
36
|
-
// Menu Submenu component
|
|
37
|
-
const MenuSubmenu = ({ trigger, children, position = "right", align = "center", className, ...props }) => {
|
|
38
|
-
const [isOpen, setIsOpen] = useState(false);
|
|
39
|
-
const parentRef = useRef(null);
|
|
40
|
-
const submenuRef = useRef(null);
|
|
41
|
-
const handleMouseEnter = () => {
|
|
42
|
-
setIsOpen(true);
|
|
43
|
-
};
|
|
44
|
-
const handleMouseLeave = (e) => {
|
|
45
|
-
const submenu = submenuRef.current;
|
|
46
|
-
// If the mouse leaves parent but enters submenu, don't close
|
|
47
|
-
if (submenu && submenu.contains(e.relatedTarget)) {
|
|
48
|
-
return;
|
|
49
|
-
}
|
|
50
|
-
setIsOpen(false);
|
|
51
|
-
};
|
|
52
|
-
const handleSubmenuLeave = (e) => {
|
|
53
|
-
const parent = parentRef.current;
|
|
54
|
-
// If the mouse leaves submenu but goes back to parent, keep open
|
|
55
|
-
if (parent && parent.contains(e.relatedTarget)) {
|
|
56
|
-
return;
|
|
57
|
-
}
|
|
58
|
-
setIsOpen(false);
|
|
59
|
-
};
|
|
60
|
-
const handleKeyDown = (e) => {
|
|
61
|
-
if (e.key === "ArrowRight") {
|
|
62
|
-
e.preventDefault();
|
|
63
|
-
setIsOpen(true);
|
|
64
|
-
}
|
|
65
|
-
else if (e.key === "ArrowLeft" && isOpen) {
|
|
66
|
-
e.preventDefault();
|
|
67
|
-
setIsOpen(false);
|
|
68
|
-
}
|
|
69
|
-
else if (e.key === "Escape") {
|
|
70
|
-
e.preventDefault();
|
|
71
|
-
setIsOpen(false);
|
|
72
|
-
}
|
|
73
|
-
};
|
|
74
|
-
const submenuClassNames = [styles["rst-menu-submenu"], className].filter(Boolean).join(" ");
|
|
75
|
-
// Clone the trigger and add hasSubmenu prop if it's a MenuItem
|
|
76
|
-
const triggerWithSubmenuProp = React.isValidElement(trigger) && trigger.type === MenuItemComponent ? React.cloneElement(trigger) : trigger;
|
|
77
|
-
return (_jsx("div", { className: submenuClassNames, ...props, children: _jsx(AnchoredOverlay, { isOpen: isOpen, onClose: () => setIsOpen(false), position: position, align: align, anchor: _jsx("div", { ref: parentRef, onMouseEnter: handleMouseEnter, onMouseLeave: handleMouseLeave, onKeyDown: handleKeyDown, "aria-haspopup": "menu", "aria-expanded": isOpen, children: triggerWithSubmenuProp }), target: _jsx("div", { ref: submenuRef, className: styles["rst-menu"], role: "menu", onMouseLeave: handleSubmenuLeave, children: children }) }) }));
|
|
78
|
-
};
|
|
79
|
-
// Compound component export
|
|
80
|
-
export const Menu = Object.assign(MenuRoot, {
|
|
81
|
-
Item: MenuItemComponent,
|
|
82
|
-
Separator: MenuSeparator,
|
|
83
|
-
Submenu: MenuSubmenu,
|
|
84
|
-
});
|
|
85
|
-
export default Menu;
|
|
86
|
-
//# sourceMappingURL=menu.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"menu.js","sourceRoot":"","sources":["../../../src/components/menu/menu.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAEhD,OAAO,EAAE,eAAe,EAAE,MAAM,sCAAsC,CAAC;AACvE,OAAO,EAAE,IAAI,EAAE,MAAM,oCAAoC,CAAC;AAC1D,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AACtD,OAAO,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAClD,OAAO,MAAM,MAAM,mBAAmB,CAAC;AAEvC,sBAAsB;AACtB,MAAM,QAAQ,GAAwB,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,EAAE;IAC1E,MAAM,cAAc,GAAG,CAAC,MAAM,CAAC,UAAU,CAAC,EAAE,SAAS,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IAEjF,OAAO,CACL,cAAK,SAAS,EAAE,cAAc,EAAE,IAAI,EAAC,MAAM,KAAK,KAAK,YAClD,QAAQ,GACL,CACP,CAAC;AACJ,CAA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WAAW;CACrB,CAAC,CAAC;AAEH,eAAe,IAAI,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"otp-types.js","sourceRoot":"","sources":["../../../src/components/otp/otp-types.ts"],"names":[],"mappings":""}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Focuses the input at the specified index in the ref array.
|
|
3
|
-
* @param refs - Array of input element references.
|
|
4
|
-
* @param index - Index of the input to focus.
|
|
5
|
-
*/
|
|
6
|
-
export function focusInput(refs, index) {
|
|
7
|
-
const input = refs[index];
|
|
8
|
-
if (input)
|
|
9
|
-
input.focus();
|
|
10
|
-
}
|
|
11
|
-
/**
|
|
12
|
-
* Processes a pasted string and returns an array of characters to fill the OTP input.
|
|
13
|
-
* Only numeric digits are retained.
|
|
14
|
-
* @param pasted - The pasted string.
|
|
15
|
-
* @param length - The length of the OTP input.
|
|
16
|
-
* @returns An array of characters to set as input values.
|
|
17
|
-
*/
|
|
18
|
-
export function processPastedValue(pasted, length) {
|
|
19
|
-
const clean = pasted.replace(/\D/g, "");
|
|
20
|
-
return Array.from({ length }, (_, i) => clean[i] || "");
|
|
21
|
-
}
|
|
22
|
-
//# sourceMappingURL=otp-utils.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"otp-utils.js","sourceRoot":"","sources":["../../../src/components/otp/otp-utils.tsx"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,MAAM,UAAU,UAAU,CACxB,IAAoC,EACpC,KAAa;IAEb,MAAM,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC;IAC1B,IAAI,KAAK;QAAE,KAAK,CAAC,KAAK,EAAE,CAAC;AAC3B,CAAC;AAED;;;;;;GAMG;AACH,MAAM,UAAU,kBAAkB,CAAC,MAAc,EAAE,MAAc;IAC/D,MAAM,KAAK,GAAG,MAAM,CAAC,OAAO,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;IACxC,OAAO,KAAK,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC;AAC1D,CAAC"}
|
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { useState, useRef, useEffect, useCallback, } from "react";
|
|
3
|
-
import "./otp.css";
|
|
4
|
-
export const OTPComponent = ({ length = 6, onChange, onComplete, ariaLabel = "One-time password input", className = "", }) => {
|
|
5
|
-
const [otp, setOtp] = useState("");
|
|
6
|
-
const inputRefs = useRef([]);
|
|
7
|
-
const focusInput = useCallback((index) => {
|
|
8
|
-
if (index >= 0 && index < length) {
|
|
9
|
-
inputRefs.current[index]?.focus();
|
|
10
|
-
inputRefs.current[index]?.select();
|
|
11
|
-
}
|
|
12
|
-
}, [length]);
|
|
13
|
-
const handleInput = (e, index) => {
|
|
14
|
-
const value = e.currentTarget.value;
|
|
15
|
-
if (!/^\d*$/.test(value))
|
|
16
|
-
return;
|
|
17
|
-
let newOtp = otp;
|
|
18
|
-
if (index >= newOtp.length) {
|
|
19
|
-
newOtp = newOtp.padEnd(index, "");
|
|
20
|
-
}
|
|
21
|
-
newOtp = newOtp.substring(0, index) + value + newOtp.substring(index + 1);
|
|
22
|
-
newOtp = newOtp.substring(0, length);
|
|
23
|
-
setOtp(newOtp);
|
|
24
|
-
onChange?.(newOtp);
|
|
25
|
-
// Sposta il focus solo se non siamo all'ultimo campo
|
|
26
|
-
if (value && index < length - 1) {
|
|
27
|
-
focusInput(index + 1);
|
|
28
|
-
}
|
|
29
|
-
if (newOtp.length === length) {
|
|
30
|
-
onComplete?.(newOtp);
|
|
31
|
-
}
|
|
32
|
-
};
|
|
33
|
-
const handleKeyDown = (e, index) => {
|
|
34
|
-
if (["ArrowLeft", "ArrowRight", "ArrowUp", "ArrowDown"].includes(e.key)) {
|
|
35
|
-
e.preventDefault();
|
|
36
|
-
if (e.key === "ArrowLeft" && index > 0) {
|
|
37
|
-
focusInput(index - 1);
|
|
38
|
-
}
|
|
39
|
-
else if (e.key === "ArrowRight" && index < length - 1) {
|
|
40
|
-
focusInput(index + 1);
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
if (e.key === "Backspace") {
|
|
44
|
-
if (!otp[index] && index > 0) {
|
|
45
|
-
focusInput(index - 1);
|
|
46
|
-
}
|
|
47
|
-
else if (otp[index]) {
|
|
48
|
-
const newOtp = otp.substring(0, index) + otp.substring(index + 1);
|
|
49
|
-
setOtp(newOtp);
|
|
50
|
-
onChange?.(newOtp);
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
else if (e.key === "Delete" && index < length - 1) {
|
|
54
|
-
focusInput(index + 1);
|
|
55
|
-
}
|
|
56
|
-
};
|
|
57
|
-
const handlePaste = (e) => {
|
|
58
|
-
e.preventDefault();
|
|
59
|
-
const pasteData = e.clipboardData.getData("text/plain").replace(/\D/g, "");
|
|
60
|
-
if (!pasteData)
|
|
61
|
-
return;
|
|
62
|
-
const newOtp = pasteData.substring(0, length);
|
|
63
|
-
setOtp(newOtp);
|
|
64
|
-
onChange?.(newOtp);
|
|
65
|
-
if (newOtp.length === length) {
|
|
66
|
-
onComplete?.(newOtp);
|
|
67
|
-
}
|
|
68
|
-
const lastFilledIndex = Math.min(pasteData.length, length) - 1;
|
|
69
|
-
focusInput(lastFilledIndex);
|
|
70
|
-
};
|
|
71
|
-
const handleFocus = (index) => {
|
|
72
|
-
inputRefs.current[index]?.select();
|
|
73
|
-
};
|
|
74
|
-
// Focus management
|
|
75
|
-
useEffect(() => {
|
|
76
|
-
// Solo quando l'OTP è vuoto o non completo
|
|
77
|
-
if (otp.length < length) {
|
|
78
|
-
focusInput(Math.min(otp.length, length - 1));
|
|
79
|
-
}
|
|
80
|
-
}, [focusInput, length, otp]);
|
|
81
|
-
return (_jsx("div", { className: `otp-container ${className}`, "aria-label": ariaLabel, role: "group", children: Array.from({ length }).map((_, index) => (_jsx("input", { ref: (el) => {
|
|
82
|
-
inputRefs.current[index] = el;
|
|
83
|
-
}, type: "text", inputMode: "numeric", pattern: "[0-9]*", maxLength: 1, value: otp[index] || "", onInput: (e) => handleInput(e, index), onKeyDown: (e) => handleKeyDown(e, index), onPaste: handlePaste, onFocus: () => handleFocus(index), className: "otp-input", "aria-label": `Digit ${index + 1} of ${length}`, autoComplete: "one-time-code" }, index))) }));
|
|
84
|
-
};
|
|
85
|
-
//# sourceMappingURL=otp.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"otp.js","sourceRoot":"","sources":["../../../src/components/otp/otp.tsx"],"names":[],"mappings":";AAAA,OAAc,EACZ,QAAQ,EACR,MAAM,EACN,SAAS,EAGT,WAAW,GACZ,MAAM,OAAO,CAAC;AACf,OAAO,WAAW,CAAC;AAGnB,MAAM,CAAC,MAAM,YAAY,GAAuB,CAAC,EAC/C,MAAM,GAAG,CAAC,EACV,QAAQ,EACR,UAAU,EACV,SAAS,GAAG,yBAAyB,EACrC,SAAS,GAAG,EAAE,GACf,EAAE,EAAE;IACH,MAAM,CAAC,GAAG,EAAE,MAAM,CAAC,GAAG,QAAQ,CAAS,EAAE,CAAC,CAAC;IAC3C,MAAM,SAAS,GAAG,MAAM,CAAqB,EAAE,CAAC,CAAC;IAEjD,MAAM,UAAU,GAAG,WAAW,CAC5B,CAAC,KAAa,EAAE,EAAE;QAChB,IAAI,KAAK,IAAI,CAAC,IAAI,KAAK,GAAG,MAAM,EAAE,CAAC;YACjC,SAAS,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,KAAK,EAAE,CAAC;YAClC,SAAS,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;QACrC,CAAC;IACH,CAAC,EACD,CAAC,MAAM,CAAC,CACT,CAAC;IAEF,MAAM,WAAW,GAAG,CAAC,CAAoC,EAAE,KAAa,EAAE,EAAE;QAC1E,MAAM,KAA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S,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,aAAa,CAAC,CAAC,EAAE,KAAK,CAAC,EACzC,OAAO,EAAE,WAAW,EACpB,OAAO,EAAE,GAAG,EAAE,CAAC,WAAW,CAAC,KAAK,CAAC,EACjC,SAAS,EAAC,WAAW,gBACT,SAAS,KAAK,GAAG,CAAC,OAAO,MAAM,EAAE,EAC7C,YAAY,EAAC,eAAe,IAfvB,KAAK,CAgBV,CACH,CAAC,GACE,CACP,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"select-types.js","sourceRoot":"","sources":["../../../src/components/select/select-types.tsx"],"names":[],"mappings":""}
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
// Select.tsx
|
|
3
|
-
import { useState, useId } from "react";
|
|
4
|
-
import { List } from "../list/list";
|
|
5
|
-
import { Button } from "../button/button";
|
|
6
|
-
import { AnchoredOverlay } from "../anchored-overlay/anchored-overlay";
|
|
7
|
-
import styles from "./select.module.css";
|
|
8
|
-
export const Select = ({ value, onChange, options, multiActiveIndex, disabled, multiple = false }) => {
|
|
9
|
-
const [isOpen, setIsOpen] = useState(false);
|
|
10
|
-
const [selectedIndex, setSelectedIndex] = useState(-1);
|
|
11
|
-
const [activeIndex, setActiveIndex] = useState(Array.isArray(value) ? value : [value]);
|
|
12
|
-
const listboxId = useId();
|
|
13
|
-
const selectOption = (option) => {
|
|
14
|
-
if (multiple) {
|
|
15
|
-
const current = Array.isArray(value) ? [...value] : [];
|
|
16
|
-
const exists = current.includes(option.value);
|
|
17
|
-
const newValues = exists ? current.filter((v) => v !== option.value) : [...current, option.value];
|
|
18
|
-
onChange?.(newValues);
|
|
19
|
-
setActiveIndex(newValues);
|
|
20
|
-
}
|
|
21
|
-
else {
|
|
22
|
-
onChange?.(option.value);
|
|
23
|
-
const index = options.findIndex((o) => o.value === option.value);
|
|
24
|
-
setSelectedIndex(index);
|
|
25
|
-
setActiveIndex([option.value]);
|
|
26
|
-
setIsOpen(false);
|
|
27
|
-
}
|
|
28
|
-
};
|
|
29
|
-
const handleClose = () => {
|
|
30
|
-
setIsOpen(false);
|
|
31
|
-
setSelectedIndex(-1);
|
|
32
|
-
};
|
|
33
|
-
const selectClass = {
|
|
34
|
-
fieldWrapper: styles["rst-field-select-wrapper"],
|
|
35
|
-
};
|
|
36
|
-
const getDisplayValue = () => {
|
|
37
|
-
if (multiple && Array.isArray(value)) {
|
|
38
|
-
if (value.length >= 4) {
|
|
39
|
-
return "Selected elements: ";
|
|
40
|
-
}
|
|
41
|
-
const labels = options.filter((o) => value.includes(o.value)).map((o) => o.value);
|
|
42
|
-
return labels.length > 0 ? labels.join(", ") : "Select options";
|
|
43
|
-
}
|
|
44
|
-
else {
|
|
45
|
-
const selected = options.find((o) => o.value === value);
|
|
46
|
-
return selected?.value || "Select an option";
|
|
47
|
-
}
|
|
48
|
-
};
|
|
49
|
-
return (_jsx("div", { role: "combobox", "aria-expanded": isOpen, "aria-controls": listboxId, "aria-owns": listboxId, "aria-disabled": disabled, "data-component": "combobox", className: selectClass.fieldWrapper, children: _jsx(AnchoredOverlay, { anchor: _jsx(Button, { value: getDisplayValue(), count: multiple && activeIndex.length >= 4 ? activeIndex.length : undefined, onClick: () => setIsOpen((prev) => !prev), "aria-label": "Toggle Select", trailingVisual: "expand", disabled: disabled }), target: _jsx(List, { id: listboxId, options: options, activeIndex: multiActiveIndex || activeIndex, onClick: selectOption, selectedIndex: selectedIndex, multiple: multiple }), isOpen: isOpen, onClose: handleClose, position: "center", align: "bottom" }) }));
|
|
50
|
-
};
|
|
51
|
-
export default Select;
|
|
52
|
-
//# sourceMappingURL=select.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"select.js","sourceRoot":"","sources":["../../../src/components/select/select.tsx"],"names":[],"mappings":";AAAA,aAAa;AACb,OAAc,EAAE,QAAQ,EAAE,KAAK,EA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@@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import styles from "./tag.module.css";
|
|
3
|
-
import { Icon } from "../../utility-components/icon/icon";
|
|
4
|
-
import { Button } from "../button/button";
|
|
5
|
-
import Typography from "../typography/typography";
|
|
6
|
-
export const Tag = ({ value, src, state, clearable = false, onClear }) => {
|
|
7
|
-
const tagClass = {
|
|
8
|
-
tag: `${styles["rst-tag"]} ${styles[`rst-tag-${state}`]} ${clearable ? styles["rst-tag-clearable"] : ""}`,
|
|
9
|
-
};
|
|
10
|
-
const handleClear = () => {
|
|
11
|
-
if (clearable && onClear)
|
|
12
|
-
onClear();
|
|
13
|
-
};
|
|
14
|
-
return (_jsxs("span", { className: tagClass.tag, children: [src && _jsx(Icon, { src: src }), _jsx(Typography, { variant: "caption", children: value }), clearable && _jsx(Button, { leadingVisual: "delete", onClick: handleClear, "aria-label": "Rimuovi tag", variant: "invisible", size: "small" })] }));
|
|
15
|
-
};
|
|
16
|
-
//# sourceMappingURL=tag.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tag.js","sourceRoot":"","sources":["../../../src/components/tag/tag.tsx"],"names":[],"mappings":";AACA,OAAO,MAAM,MAAM,kBAAkB,CAAC;AAEtC,OAAO,EAAE,IAAI,EAAE,MAAM,oCAAoC,CAAC;AAC1D,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAC1C,OAAO,UAAU,MAAM,0BAA0B,CAAC;AAElD,MAAM,CAAC,MAAM,GAAG,GAAuB,CAAC,EAAE,KAAK,EAAE,GAAG,EAAE,KAAK,EAAE,SAAS,GAAG,KAAK,EAAE,OAAO,EAAE,EAAE,EAAE;IAC3F,MAAM,QAAQ,GAAG;QACf,GAAG,EAAE,GAAG,MAAM,CAAC,SAAS,CAAC,IAAI,MAAM,CAAC,WAAW,KAAK,EAAE,CAAC,IAAI,SAAS,CAAC,CAAC,CAAC,MAAM,CAAC,mBAAmB,CAAC,CAAC,CAAC,CAAC,EAAE,EAAE;KAC1G,CAAC;IAEF,MAAM,WAAW,GAAG,GAAG,EAAE;QACvB,IAAI,SAAS,IAAI,OAAO;YAAE,OAAO,EAAE,CAAC;IACtC,CAAC,CAAC;IAEF,OAAO,CACL,gBAAM,SAAS,EAAE,QAAQ,CAAC,GAAG,aAC1B,GAAG,IAAI,KAAC,IAAI,IAAC,GAAG,EAAE,GAAG,GAAI,EAC1B,KAAC,UAAU,IAAC,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,KAAK,GAAI,EAClD,SAAS,IAAI,KAAC,MAAM,IAAC,aAAa,EAAC,QAAQ,EAAC,OAAO,EAAE,WAAW,gBAAa,aAAa,EAAC,OAAO,EAAC,WAAW,EAAC,IAAI,EAAC,OAAO,GAAU,IACjI,CACR,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"textarea-types.js","sourceRoot":"","sources":["../../../src/components/textarea/textarea-types.ts"],"names":[],"mappings":""}
|