impact-nova 3.0.0-alpha.2 → 3.0.0-alpha.20
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/README.md +1 -1
- package/dist/_virtual/index.js +4 -4
- package/dist/_virtual/index2.js +4 -4
- package/dist/components/data/ag-grid-react/ag-grid-list.d.ts +3 -1
- package/dist/components/data/ag-grid-react/ag-grid-list.demo-board.d.ts +46 -0
- package/dist/components/data/ag-grid-react/ag-grid-list.js +9 -8
- package/dist/components/data/ag-grid-react/ag-grid-list.key-attributes.d.ts +1 -0
- package/dist/components/data/ag-grid-react/ag-grid.types.d.ts +65 -3
- package/dist/components/data/ag-grid-react/build-list-drag-column-defs.d.ts +8 -0
- package/dist/components/data/ag-grid-react/build-list-drag-column-defs.js +28 -0
- package/dist/components/data/ag-grid-react/cell-renderers/badge-cell-renderer.d.ts +2 -0
- package/dist/components/data/ag-grid-react/cell-renderers/badge-cell-renderer.js +15 -14
- package/dist/components/data/ag-grid-react/cell-renderers/badge-icon-registry.d.ts +10 -0
- package/dist/components/data/ag-grid-react/cell-renderers/badge-icon-registry.js +17 -0
- package/dist/components/data/ag-grid-react/cell-renderers/drag-handle-cell-renderer.d.ts +18 -0
- package/dist/components/data/ag-grid-react/cell-renderers/drag-handle-cell-renderer.js +32 -0
- package/dist/components/data/ag-grid-react/cell-renderers/editors/list-select-cell-editor.js +71 -46
- package/dist/components/data/ag-grid-react/cell-renderers/editors/select-cell-editor.js +48 -45
- package/dist/components/data/ag-grid-react/cell-renderers/index.d.ts +45 -7
- package/dist/components/data/ag-grid-react/cell-renderers/index.js +70 -58
- package/dist/components/data/ag-grid-react/cell-renderers/link-with-batch-cell-renderer.js +88 -76
- package/dist/components/data/ag-grid-react/cell-renderers/list-select-display-renderer.js +31 -33
- package/dist/components/data/ag-grid-react/cell-renderers/select-display-renderer.js +18 -17
- package/dist/components/data/ag-grid-react/cell-renderers/style-description-display-renderer.d.ts +5 -11
- package/dist/components/data/ag-grid-react/cell-renderers/style-description-display-renderer.js +127 -51
- package/dist/components/data/ag-grid-react/editable-utils.d.ts +9 -1
- package/dist/components/data/ag-grid-react/editable-utils.js +46 -41
- package/dist/components/data/ag-grid-react/headers/custom-header.js +110 -108
- package/dist/components/data/ag-grid-react/headers/header-search-input.js +203 -199
- package/dist/components/data/ag-grid-react/index.d.ts +6 -1
- package/dist/components/data/ag-grid-react/index.js +316 -248
- package/dist/components/data/ag-grid-react/list-drag-grid-options.d.ts +34 -0
- package/dist/components/data/ag-grid-react/list-drag-grid-options.js +110 -0
- package/dist/components/data/ag-grid-react/list-drag-preview-card.d.ts +4 -0
- package/dist/components/data/ag-grid-react/list-drag-preview-card.js +14 -0
- package/dist/components/data/ag-grid-react/list-drag-preview-snapshot.d.ts +20 -0
- package/dist/components/data/ag-grid-react/list-drag-preview-snapshot.js +42 -0
- package/dist/components/data/ag-grid-react/list-find-highlight.d.ts +6 -0
- package/dist/components/data/ag-grid-react/list-find-highlight.js +7 -0
- package/dist/components/data/ag-grid-react/list-row-move.d.ts +84 -0
- package/dist/components/data/ag-grid-react/list-row-move.js +74 -0
- package/dist/components/data/ag-grid-react/numeric-column-header-alignment.d.ts +9 -0
- package/dist/components/data/ag-grid-react/numeric-column-header-alignment.js +67 -0
- package/dist/components/data/ag-grid-react/process-backend-columndefs.d.ts +10 -2
- package/dist/components/data/ag-grid-react/process-backend-columndefs.js +84 -0
- package/dist/components/data/ag-grid-react/use-ag-grid-list-drag.d.ts +67 -0
- package/dist/components/data/ag-grid-react/use-ag-grid-list-drag.js +162 -0
- package/dist/components/data/ag-grid-react/use-list-drag-preview.d.ts +20 -0
- package/dist/components/data/ag-grid-react/use-list-drag-preview.js +148 -0
- package/dist/components/data/ag-grid-react/use-list-find.d.ts +36 -0
- package/dist/components/data/ag-grid-react/use-list-row-drop-zones.d.ts +46 -0
- package/dist/components/data/ag-grid-react/use-list-row-drop-zones.js +92 -0
- package/dist/components/data/data-table/build-column-tree-from-grid.js +15 -15
- package/dist/components/data/data-table/column-picker-authority.js +9 -9
- package/dist/components/data/data-table/data-table-column-apply.js +30 -29
- package/dist/components/data/data-table/data-table-column-tree-cache.js +62 -60
- package/dist/components/data/data-table/data-table-list-header.d.ts +7 -0
- package/dist/components/data/data-table/data-table-list-header.js +31 -0
- package/dist/components/data/data-table/data-table-overlay.d.ts +6 -0
- package/dist/components/data/data-table/data-table-overlay.js +18 -0
- package/dist/components/data/data-table/data-table-picker-column-eligibility.d.ts +3 -0
- package/dist/components/data/data-table/data-table-picker-column-eligibility.js +24 -4
- package/dist/components/data/data-table/data-table.js +35 -34
- package/dist/components/data/data-table/data-table.types.d.ts +13 -2
- package/dist/components/data/data-table/index.d.ts +10 -0
- package/dist/components/data/data-table/index.js +64 -52
- package/dist/components/data/data-table/use-data-table-viewport.d.ts +10 -0
- package/dist/components/data/data-table/use-data-table-viewport.js +31 -0
- package/dist/components/data/expandable-list-item/expandable-list-item-attributes.js +3 -2
- package/dist/components/data/expandable-list-item/expandable-list-item-metrics.js +3 -2
- package/dist/components/data/expandable-list-item/index.d.ts +2 -0
- package/dist/components/data/expandable-list-item/index.js +20 -16
- package/dist/components/data/expandable-list-item/product-card-hero.d.ts +15 -0
- package/dist/components/data/expandable-list-item/product-card-iris-insight-trigger.d.ts +8 -0
- package/dist/components/data/expandable-list-item/product-card-iris-insight-trigger.js +41 -0
- package/dist/components/data/expandable-list-item/product-card-metrics-toggle.d.ts +13 -0
- package/dist/components/data/expandable-list-item/product-card-metrics-toggle.js +27 -0
- package/dist/components/data/expandable-list-item/sku-picker-chrome.d.ts +40 -0
- package/dist/components/data/expandable-list-item/sku-picker-chrome.js +150 -0
- package/dist/components/data/expandable-list-item/useServerSkuInfinitePages.d.ts +2 -1
- package/dist/components/data/expandable-list-item/virtualized-responsive-grid.catalog.d.ts +5 -4
- package/dist/components/data/expandable-list-item/virtualized-responsive-grid.sku-picker.d.ts +3 -2
- package/dist/components/data/scenario-comparison/flatten-scenario-comparison-rows.d.ts +2 -0
- package/dist/components/data/scenario-comparison/flatten-scenario-comparison-rows.js +16 -0
- package/dist/components/data/scenario-comparison/index.d.ts +3 -0
- package/dist/components/data/scenario-comparison/index.js +6 -0
- package/dist/components/data/scenario-comparison/scenario-comparison-column.d.ts +12 -0
- package/dist/components/data/scenario-comparison/scenario-comparison-column.js +172 -0
- package/dist/components/data/scenario-comparison/scenario-comparison-label.d.ts +6 -0
- package/dist/components/data/scenario-comparison/scenario-comparison-label.js +64 -0
- package/dist/components/data/scenario-comparison/scenario-comparison.d.ts +5 -0
- package/dist/components/data/scenario-comparison/scenario-comparison.js +127 -0
- package/dist/components/data/scenario-comparison/scenario-comparison.types.d.ts +56 -0
- package/dist/components/data/scenario-comparison/scenario-comparison.variants.d.ts +7 -0
- package/dist/components/data/scenario-comparison/scenario-comparison.variants.js +29 -0
- package/dist/components/data-display/badge/index.d.ts +2 -0
- package/dist/components/data-display/badge/index.js +4 -2
- package/dist/components/data-display/badge/trophy-icon.d.ts +6 -0
- package/dist/components/data-display/badge/trophy-icon.js +28 -0
- package/dist/components/data-display/chart/chart-scatter3d.d.ts +39 -0
- package/dist/components/data-display/chart/chart-scatter3d.js +180 -0
- package/dist/components/data-display/chart/chart.js +125 -112
- package/dist/components/data-display/chart/chart.utils.js +122 -92
- package/dist/components/data-display/stereo-scatter/index.d.ts +2 -0
- package/dist/components/data-display/stereo-scatter/index.js +10 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-engine-frame.d.ts +41 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-engine-frame.js +178 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-engine-theme.d.ts +14 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-engine-theme.js +29 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-engine-wedges.d.ts +23 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-engine-wedges.js +80 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-engine.d.ts +120 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-engine.js +519 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-math.d.ts +64 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-math.js +129 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-model.d.ts +37 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-model.js +71 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-context.d.ts +33 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-context.js +19 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-key.d.ts +4 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-key.js +19 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-legend.d.ts +2 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-legend.js +75 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-scene.d.ts +2 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-scene.js +149 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-toolbar.d.ts +13 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-toolbar.js +93 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-tooltip.d.ts +2 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-tooltip.js +62 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-viewport.d.ts +3 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-viewport.js +41 -0
- package/dist/components/data-display/stereo-scatter/stereo-scatter.d.ts +12 -0
- package/dist/components/data-display/stereo-scatter/stereo-scatter.js +107 -0
- package/dist/components/data-display/stereo-scatter/stereo-scatter.stories-data.d.ts +11 -0
- package/dist/components/data-display/stereo-scatter/stereo-scatter.types.d.ts +69 -0
- package/dist/components/data-display/stereo-scatter/stereo-scatter.variants.d.ts +13 -0
- package/dist/components/data-display/stereo-scatter/stereo-scatter.variants.js +42 -0
- package/dist/components/feedback/find-bar/collect-find-matches.d.ts +35 -0
- package/dist/components/feedback/find-bar/collect-find-matches.js +68 -0
- package/dist/components/feedback/find-bar/find-bar-shortcuts.d.ts +5 -0
- package/dist/components/feedback/find-bar/find-bar-shortcuts.js +27 -0
- package/dist/components/feedback/find-bar/find-bar.d.ts +7 -0
- package/dist/components/feedback/find-bar/find-bar.js +266 -0
- package/dist/components/feedback/find-bar/find-bar.types.d.ts +32 -0
- package/dist/components/feedback/find-bar/index.d.ts +4 -0
- package/dist/components/feedback/find-bar/index.js +11 -0
- package/dist/components/feedback/tooltip/button-icon-tooltip.d.ts +6 -1
- package/dist/components/feedback/tooltip/button-icon-tooltip.js +22 -17
- package/dist/components/feedback/tooltip/tab-tooltip-render.js +3 -2
- package/dist/components/feedback/tooltip/use-overflow-tooltip.js +44 -36
- package/dist/components/flows/command-palette/shortcut-settings.js +10 -10
- package/dist/components/flows/filter-panel/filter-panel.js +4 -4
- package/dist/components/flows/iris-chat/IrisChatComposerVoiceCapture.d.ts +5 -0
- package/dist/components/flows/iris-chat/IrisChatComposerVoiceCapture.js +73 -0
- package/dist/components/flows/iris-chat/IrisChatHeaderWindowSizeButton.d.ts +5 -0
- package/dist/components/flows/iris-chat/IrisChatHeaderWindowSizeButton.js +49 -0
- package/dist/components/flows/iris-chat/IrisChatSnapTile.d.ts +8 -0
- package/dist/components/flows/iris-chat/IrisChatSnapTile.js +30 -0
- package/dist/components/flows/iris-chat/IrisChatVoiceWaveform.d.ts +3 -0
- package/dist/components/flows/iris-chat/IrisChatVoiceWaveform.js +25 -0
- package/dist/components/flows/iris-chat/IrisChatWindowSnapMenu.d.ts +4 -0
- package/dist/components/flows/iris-chat/IrisChatWindowSnapMenu.js +113 -0
- package/dist/components/flows/iris-chat/index.d.ts +3 -1
- package/dist/components/flows/iris-chat/index.js +58 -53
- package/dist/components/flows/iris-chat/iris-chat-artifact.js +46 -36
- package/dist/components/flows/iris-chat/iris-chat-chrome.d.ts +39 -0
- package/dist/components/flows/iris-chat/iris-chat-chrome.js +311 -0
- package/dist/components/flows/iris-chat/iris-chat-close-animation.d.ts +12 -0
- package/dist/components/flows/iris-chat/iris-chat-close-animation.js +21 -0
- package/dist/components/flows/iris-chat/iris-chat-composer.js +291 -234
- package/dist/components/flows/iris-chat/iris-chat-context.d.ts +16 -0
- package/dist/components/flows/iris-chat/iris-chat-context.js +14 -10
- package/dist/components/flows/iris-chat/iris-chat-copy-feedback.d.ts +4 -0
- package/dist/components/flows/iris-chat/iris-chat-copy-feedback.js +16 -0
- package/dist/components/flows/iris-chat/iris-chat-frame.d.ts +32 -0
- package/dist/components/flows/iris-chat/iris-chat-frame.js +88 -0
- package/dist/components/flows/iris-chat/iris-chat-icons.d.ts +2 -0
- package/dist/components/flows/iris-chat/iris-chat-icons.js +46 -20
- package/dist/components/flows/iris-chat/iris-chat-launch-animation.d.ts +11 -0
- package/dist/components/flows/iris-chat/iris-chat-launch-animation.js +35 -0
- package/dist/components/flows/iris-chat/iris-chat-markdown.js +82 -42
- package/dist/components/flows/iris-chat/iris-chat-menu.js +149 -117
- package/dist/components/flows/iris-chat/iris-chat-snap-presets.d.ts +7 -0
- package/dist/components/flows/iris-chat/iris-chat-snap-presets.js +83 -0
- package/dist/components/flows/iris-chat/iris-chat-speech.d.ts +52 -0
- package/dist/components/flows/iris-chat/iris-chat-speech.js +121 -0
- package/dist/components/flows/iris-chat/iris-chat-thread.d.ts +4 -0
- package/dist/components/flows/iris-chat/iris-chat-thread.js +277 -220
- package/dist/components/flows/iris-chat/iris-chat-window-chrome.d.ts +33 -0
- package/dist/components/flows/iris-chat/iris-chat-window-chrome.js +37 -0
- package/dist/components/flows/iris-chat/iris-chat-window-geometry-context.d.ts +14 -0
- package/dist/components/flows/iris-chat/iris-chat-window-geometry-context.js +15 -0
- package/dist/components/flows/iris-chat/iris-chat-window-geometry.d.ts +12 -0
- package/dist/components/flows/iris-chat/iris-chat-window-geometry.js +113 -0
- package/dist/components/flows/iris-chat/iris-chat-window-handles.d.ts +6 -0
- package/dist/components/flows/iris-chat/iris-chat-window-handles.js +50 -0
- package/dist/components/flows/iris-chat/iris-chat-window-shell.d.ts +8 -0
- package/dist/components/flows/iris-chat/iris-chat-window-shell.js +37 -0
- package/dist/components/flows/iris-chat/iris-chat.d.ts +3 -39
- package/dist/components/flows/iris-chat/iris-chat.js +22 -330
- package/dist/components/flows/iris-chat/iris-chat.types.d.ts +20 -0
- package/dist/components/flows/iris-chat/iris-chat.variants.d.ts +4 -3
- package/dist/components/flows/iris-chat/iris-chat.variants.js +45 -22
- package/dist/components/flows/iris-chat/sync-iris-chat-composer-textarea.d.ts +6 -0
- package/dist/components/flows/iris-chat/sync-iris-chat-composer-textarea.js +23 -0
- package/dist/components/flows/iris-chat/use-iris-chat-root.d.ts +29 -0
- package/dist/components/flows/iris-chat/use-iris-chat-root.js +162 -0
- package/dist/components/forms/choice-card/choice-card-compare-scroll.d.ts +4 -0
- package/dist/components/forms/choice-card/choice-card-compare-scroll.js +6 -0
- package/dist/components/forms/choice-card/choice-card-percent.js +82 -51
- package/dist/components/forms/choice-card/choice-card.d.ts +14 -2
- package/dist/components/forms/choice-card/choice-card.js +470 -381
- package/dist/components/forms/choice-card/choice-card.types.d.ts +9 -2
- package/dist/components/forms/choice-card/choice-card.variants.js +24 -3
- package/dist/components/forms/input/input.js +5 -5
- package/dist/components/forms/select/components/SelectMenuPanel.js +15 -15
- package/dist/components/forms/select/components/SelectTriggerValue.js +3 -2
- package/dist/components/forms/select/components/Submenu.js +3 -2
- package/dist/components/layout/header/header.js +1 -0
- package/dist/components/layout/horizontal-scroller/horizontal-scroller-mask.d.ts +3 -0
- package/dist/components/layout/horizontal-scroller/horizontal-scroller-mask.js +12 -0
- package/dist/components/layout/horizontal-scroller/horizontal-scroller.js +181 -125
- package/dist/components/layout/horizontal-scroller/horizontal-scroller.types.d.ts +2 -0
- package/dist/components/layout/horizontal-scroller/scroll-overflow-affordance.d.ts +3 -1
- package/dist/components/layout/horizontal-scroller/scroll-overflow-affordance.js +77 -67
- package/dist/components/primitives/button/button.variants.js +1 -1
- package/dist/components/primitives/iris/iris-insight-truncated-text.d.ts +3 -0
- package/dist/components/primitives/iris/iris-insight-truncated-text.js +33 -0
- package/dist/components/primitives/iris/iris.d.ts +3 -1
- package/dist/components/primitives/iris/iris.js +85 -91
- package/dist/components/primitives/iris/iris.types.d.ts +9 -0
- package/dist/components/primitives/stepper/internals/step-model.d.ts +1 -1
- package/dist/components/primitives/stepper/internals/step-model.js +5 -5
- package/dist/components/primitives/stepper/internals/stepper-compact.js +13 -13
- package/dist/components/primitives/stepper/internals/stepper-pipeline.js +6 -6
- package/dist/components/primitives/stepper/internals/stepper-rail.js +15 -15
- package/dist/components/primitives/stepper/internals/stepper-summary.js +7 -7
- package/dist/components/primitives/stepper/internals/stepper-track.js +2 -2
- package/dist/components/primitives/stepper/stepper.js +99 -97
- package/dist/components/primitives/stepper/stepper.types.d.ts +4 -0
- package/dist/components/primitives/tabs/folder-tab-path.d.ts +6 -0
- package/dist/components/primitives/tabs/folder-tab-path.js +16 -0
- package/dist/components/primitives/tabs/tabs.js +178 -112
- package/dist/components/primitives/tabs/tabs.types.d.ts +1 -1
- package/dist/form-react/Fields/SelectField.js +66 -57
- package/dist/form-react/Fields/VirtualizedListField.d.ts +3 -0
- package/dist/form-react/Fields/VirtualizedListField.js +223 -0
- package/dist/form-react/fields.d.ts +1 -0
- package/dist/form-react/fields.js +28 -26
- package/dist/form-react/index.d.ts +1 -1
- package/dist/form-react/registry/defaultFieldRegistrations.d.ts +1 -1
- package/dist/form-react/registry/defaultFieldRegistrations.js +13 -12
- package/dist/form-react/types/fields.types.d.ts +48 -1
- package/dist/form-react/types/fieldsOutput.types.d.ts +4 -1
- package/dist/form-react/types/reactHookForm.types.d.ts +18 -1
- package/dist/form-react/utils/fieldDefaults.utils.js +1 -1
- package/dist/i18n/defaultMessages.d.ts +69 -0
- package/dist/i18n/defaultMessages.js +107 -42
- package/dist/i18n/impact-nova-i18n-defaults.d.ts +5 -0
- package/dist/i18n/impact-nova-i18n-defaults.js +4 -9
- package/dist/i18n/index.d.ts +1 -1
- package/dist/i18n/locales/de.js +66 -1
- package/dist/i18n/locales/es.js +66 -1
- package/dist/i18n/locales/hi.js +66 -1
- package/dist/i18n/locales/kn.js +66 -1
- package/dist/impact-nova-components.css +372 -14
- package/dist/impact-nova-tokens.scss +4 -0
- package/dist/impact-nova.css +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +627 -601
- package/dist/lib/alphabetical-sort.d.ts +3 -0
- package/dist/lib/alphabetical-sort.js +13 -0
- package/dist/lib/guidance/engine/guidance-engine.js +26 -27
- package/dist/lib/guidance/engine/step-navigation.d.ts +1 -0
- package/dist/lib/guidance/engine/step-navigation.js +16 -9
- package/dist/lib/guidance/types/guidance.types.d.ts +9 -1
- package/dist/lib/virtualized/index.d.ts +2 -0
- package/dist/lib/virtualized/index.js +35 -31
- package/dist/lib/virtualized/list-index.d.ts +5 -0
- package/dist/lib/virtualized/list-index.js +13 -0
- package/dist/lib/virtualized/read-infinite-query-list.d.ts +14 -0
- package/dist/lib/virtualized/read-infinite-query-list.js +12 -0
- package/dist/lib/virtualized/types.d.ts +4 -2
- package/dist/lib/virtualized/useRowState.js +60 -56
- package/dist/lib/virtualized/useVirtualizedList.d.ts +5 -0
- package/dist/llms/rules/ag-grid.js +1 -1
- package/dist/llms/rules/installation.js +1 -1
- package/dist/llms/rules/real-world-patterns.js +1 -1
- package/dist/llms/rules/requirements.js +1 -1
- package/dist/node_modules/hast-util-to-jsx-runtime/lib/index.js +1 -1
- package/dist/node_modules/unified/lib/index.js +1 -1
- package/dist/tailwind.config.js +3 -0
- package/dist/theme/tailwind-colors.js +3 -0
- package/package.json +23 -4
|
@@ -3,19 +3,19 @@ import * as p from "react";
|
|
|
3
3
|
import { Checkmark as k } from "impact-nova-icons";
|
|
4
4
|
import { cn as l } from "../../../../lib/utils.js";
|
|
5
5
|
import { compactIconVariants as g, compactLabelVariants as x, compactStepVariants as V, stepperVariants as w } from "../stepper.variants.js";
|
|
6
|
-
import {
|
|
6
|
+
import { stepStatus as I, resolveStepItem as j } from "./step-model.js";
|
|
7
7
|
import { StepHitTarget as C } from "./step-hit-target.js";
|
|
8
8
|
const L = p.forwardRef(
|
|
9
9
|
({
|
|
10
10
|
className: n,
|
|
11
11
|
currentStep: d,
|
|
12
|
-
steps:
|
|
12
|
+
steps: o,
|
|
13
13
|
orientation: a = "vertical",
|
|
14
14
|
onStepClick: m,
|
|
15
15
|
stepAriaLabel: h,
|
|
16
16
|
...b
|
|
17
17
|
}, v) => {
|
|
18
|
-
const f =
|
|
18
|
+
const f = o.length, u = !!m;
|
|
19
19
|
return /* @__PURE__ */ e(
|
|
20
20
|
"div",
|
|
21
21
|
{
|
|
@@ -26,27 +26,27 @@ const L = p.forwardRef(
|
|
|
26
26
|
"data-component": "stepper",
|
|
27
27
|
role: "list",
|
|
28
28
|
...b,
|
|
29
|
-
children:
|
|
30
|
-
const
|
|
29
|
+
children: o.map((N, c) => {
|
|
30
|
+
const r = j(N), s = c + 1, t = I(s, d, r.status), S = t === "active";
|
|
31
31
|
return /* @__PURE__ */ i(p.Fragment, { children: [
|
|
32
32
|
/* @__PURE__ */ i(
|
|
33
33
|
C,
|
|
34
34
|
{
|
|
35
|
-
stepNumber:
|
|
35
|
+
stepNumber: s,
|
|
36
36
|
status: t,
|
|
37
|
-
disabled:
|
|
38
|
-
interactive:
|
|
39
|
-
ariaLabel: h(
|
|
37
|
+
disabled: r.disabled,
|
|
38
|
+
interactive: u,
|
|
39
|
+
ariaLabel: h(s, f),
|
|
40
40
|
isActive: S,
|
|
41
41
|
onStepClick: m,
|
|
42
42
|
className: V({ orientation: a, status: t }),
|
|
43
43
|
children: [
|
|
44
|
-
/* @__PURE__ */ e("div", { className: g({ status: t }), children: t === "completed" ? /* @__PURE__ */ e(k, { className: "size-3.5 stroke-[3px]" }) : /* @__PURE__ */ e("span", { children:
|
|
45
|
-
/* @__PURE__ */ e("span", { className: x({ status: t }), children:
|
|
44
|
+
/* @__PURE__ */ e("div", { className: g({ status: t }), children: t === "completed" ? /* @__PURE__ */ e(k, { className: "size-3.5 stroke-[3px]" }) : /* @__PURE__ */ e("span", { children: r.icon || s }) }),
|
|
45
|
+
/* @__PURE__ */ e("span", { className: x({ status: t }), children: r.label })
|
|
46
46
|
]
|
|
47
47
|
}
|
|
48
48
|
),
|
|
49
|
-
|
|
49
|
+
c < o.length - 1 ? /* @__PURE__ */ e(
|
|
50
50
|
"div",
|
|
51
51
|
{
|
|
52
52
|
"aria-hidden": !0,
|
|
@@ -56,7 +56,7 @@ const L = p.forwardRef(
|
|
|
56
56
|
)
|
|
57
57
|
}
|
|
58
58
|
) : null
|
|
59
|
-
] },
|
|
59
|
+
] }, c);
|
|
60
60
|
})
|
|
61
61
|
}
|
|
62
62
|
);
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { jsxs as t, jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import * as j from "react";
|
|
3
|
-
import { cn as
|
|
3
|
+
import { cn as u } from "../../../../lib/utils.js";
|
|
4
4
|
import { pipelineDotVariants as M, stepperVariants as S } from "../stepper.variants.js";
|
|
5
5
|
import { PipelineCurrentMark as z } from "./pipeline-current-mark.js";
|
|
6
|
-
import {
|
|
6
|
+
import { stepStatus as I, resolveStepItem as P } from "./step-model.js";
|
|
7
7
|
import { StepHitTarget as R } from "./step-hit-target.js";
|
|
8
8
|
const V = j.forwardRef(
|
|
9
9
|
({
|
|
10
|
-
className:
|
|
10
|
+
className: f,
|
|
11
11
|
currentStep: n,
|
|
12
12
|
steps: o,
|
|
13
13
|
onStepClick: l,
|
|
@@ -22,7 +22,7 @@ const V = j.forwardRef(
|
|
|
22
22
|
"div",
|
|
23
23
|
{
|
|
24
24
|
ref: N,
|
|
25
|
-
className:
|
|
25
|
+
className: u(S({ variant: "pipeline" }), f),
|
|
26
26
|
"data-orientation": "horizontal",
|
|
27
27
|
"data-variant": "pipeline",
|
|
28
28
|
"data-component": "stepper",
|
|
@@ -54,7 +54,7 @@ const V = j.forwardRef(
|
|
|
54
54
|
}
|
|
55
55
|
),
|
|
56
56
|
o.map((y, d) => {
|
|
57
|
-
const r =
|
|
57
|
+
const r = P(y), s = d + 1, a = I(s, n, r.status), m = a === "active";
|
|
58
58
|
return /* @__PURE__ */ e(
|
|
59
59
|
R,
|
|
60
60
|
{
|
|
@@ -65,7 +65,7 @@ const V = j.forwardRef(
|
|
|
65
65
|
ariaLabel: b(s, i),
|
|
66
66
|
isActive: m,
|
|
67
67
|
onStepClick: l,
|
|
68
|
-
className:
|
|
68
|
+
className: u(
|
|
69
69
|
"relative z-[1] flex items-center justify-center p-0",
|
|
70
70
|
M({ status: a }),
|
|
71
71
|
p && !r.disabled && "focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-focus-ring/25"
|
|
@@ -3,7 +3,7 @@ import * as y from "react";
|
|
|
3
3
|
import { cn as n } from "../../../../lib/utils.js";
|
|
4
4
|
import { stepperVariants as k } from "../stepper.variants.js";
|
|
5
5
|
import { RailStatusDot as f } from "./rail-status-dot.js";
|
|
6
|
-
import {
|
|
6
|
+
import { stepStatus as R, resolveStepItem as j } from "./step-model.js";
|
|
7
7
|
const S = y.forwardRef(
|
|
8
8
|
({
|
|
9
9
|
className: v,
|
|
@@ -14,7 +14,7 @@ const S = y.forwardRef(
|
|
|
14
14
|
stepAriaLabel: p,
|
|
15
15
|
...N
|
|
16
16
|
}, g) => {
|
|
17
|
-
const
|
|
17
|
+
const i = c.length, x = !!d;
|
|
18
18
|
return /* @__PURE__ */ o(
|
|
19
19
|
"div",
|
|
20
20
|
{
|
|
@@ -26,7 +26,7 @@ const S = y.forwardRef(
|
|
|
26
26
|
role: "list",
|
|
27
27
|
...N,
|
|
28
28
|
children: [
|
|
29
|
-
|
|
29
|
+
i > 1 ? /* @__PURE__ */ e(
|
|
30
30
|
"div",
|
|
31
31
|
{
|
|
32
32
|
"aria-hidden": !0,
|
|
@@ -34,17 +34,17 @@ const S = y.forwardRef(
|
|
|
34
34
|
className: "pointer-events-none absolute start-2 top-6 bottom-6 w-0 border-s border-dashed border-stroke-hairline"
|
|
35
35
|
}
|
|
36
36
|
) : null,
|
|
37
|
-
c.map((w,
|
|
38
|
-
const
|
|
37
|
+
c.map((w, s) => {
|
|
38
|
+
const a = j(w), r = s + 1, t = R(r, h, a.status), u = t === "active", b = !!a.disabled || t === "default", l = x && !b;
|
|
39
39
|
return /* @__PURE__ */ o(
|
|
40
40
|
"div",
|
|
41
41
|
{
|
|
42
42
|
role: "listitem",
|
|
43
|
-
"data-step":
|
|
43
|
+
"data-step": r,
|
|
44
44
|
"data-status": t,
|
|
45
45
|
"data-disabled": b || void 0,
|
|
46
46
|
"aria-current": !l && u ? "step" : void 0,
|
|
47
|
-
"aria-label": l ? void 0 : p(
|
|
47
|
+
"aria-label": l ? void 0 : p(r, i),
|
|
48
48
|
className: "relative flex w-full items-start gap-3 overflow-visible",
|
|
49
49
|
children: [
|
|
50
50
|
/* @__PURE__ */ e(
|
|
@@ -56,10 +56,10 @@ const S = y.forwardRef(
|
|
|
56
56
|
"button",
|
|
57
57
|
{
|
|
58
58
|
type: "button",
|
|
59
|
-
"aria-label": p(
|
|
59
|
+
"aria-label": p(r, i),
|
|
60
60
|
"aria-current": u ? "step" : void 0,
|
|
61
61
|
onClick: () => {
|
|
62
|
-
d?.(
|
|
62
|
+
d?.(s);
|
|
63
63
|
},
|
|
64
64
|
className: n(
|
|
65
65
|
"flex size-4 items-center justify-center border-0 bg-transparent p-0",
|
|
@@ -67,16 +67,16 @@ const S = y.forwardRef(
|
|
|
67
67
|
),
|
|
68
68
|
children: [
|
|
69
69
|
/* @__PURE__ */ e(f, { status: t }),
|
|
70
|
-
/* @__PURE__ */ e("span", { className: "sr-only", children:
|
|
70
|
+
/* @__PURE__ */ e("span", { className: "sr-only", children: a.label })
|
|
71
71
|
]
|
|
72
72
|
}
|
|
73
73
|
) : /* @__PURE__ */ e(f, { status: t })
|
|
74
74
|
}
|
|
75
75
|
),
|
|
76
76
|
/* @__PURE__ */ e("div", { className: "min-w-0 flex-1", children: m ? m({
|
|
77
|
-
step:
|
|
78
|
-
index:
|
|
79
|
-
stepNumber:
|
|
77
|
+
step: a,
|
|
78
|
+
index: s,
|
|
79
|
+
stepNumber: r,
|
|
80
80
|
status: t
|
|
81
81
|
}) : /* @__PURE__ */ e(
|
|
82
82
|
"div",
|
|
@@ -86,12 +86,12 @@ const S = y.forwardRef(
|
|
|
86
86
|
"flex h-12 items-center rounded-lg border border-stroke-hairline bg-canvas-elevated px-4 py-2",
|
|
87
87
|
t === "default" && "text-disabled-foreground"
|
|
88
88
|
),
|
|
89
|
-
children: /* @__PURE__ */ e("span", { className: "truncate text-sm font-semibold capitalize leading-[21px]", children:
|
|
89
|
+
children: /* @__PURE__ */ e("span", { className: "truncate text-sm font-semibold capitalize leading-[21px]", children: a.label })
|
|
90
90
|
}
|
|
91
91
|
) })
|
|
92
92
|
]
|
|
93
93
|
},
|
|
94
|
-
|
|
94
|
+
s
|
|
95
95
|
);
|
|
96
96
|
})
|
|
97
97
|
]
|
|
@@ -4,7 +4,7 @@ import { Checkmark as y } from "impact-nova-icons";
|
|
|
4
4
|
import { cn as i } from "../../../../lib/utils.js";
|
|
5
5
|
import { summaryIconVariants as N, summaryStepVariants as w, stepperVariants as S } from "../stepper.variants.js";
|
|
6
6
|
import { ClickMeArrow as k } from "../../../ui/local-raster-icons/rasterIcons.js";
|
|
7
|
-
import {
|
|
7
|
+
import { stepStatus as z, resolveStepItem as j } from "./step-model.js";
|
|
8
8
|
import { StepHitTarget as I, StepBrandRail as R } from "./step-hit-target.js";
|
|
9
9
|
const V = p.forwardRef(
|
|
10
10
|
({
|
|
@@ -14,12 +14,12 @@ const V = p.forwardRef(
|
|
|
14
14
|
onStepClick: m,
|
|
15
15
|
stepAriaLabel: f,
|
|
16
16
|
...h
|
|
17
|
-
},
|
|
18
|
-
const
|
|
17
|
+
}, x) => {
|
|
18
|
+
const b = o.length, c = !!m;
|
|
19
19
|
return /* @__PURE__ */ e(
|
|
20
20
|
"div",
|
|
21
21
|
{
|
|
22
|
-
ref:
|
|
22
|
+
ref: x,
|
|
23
23
|
className: i(S({ variant: "summary" }), d),
|
|
24
24
|
"data-orientation": "horizontal",
|
|
25
25
|
"data-variant": "summary",
|
|
@@ -27,7 +27,7 @@ const V = p.forwardRef(
|
|
|
27
27
|
role: "list",
|
|
28
28
|
...h,
|
|
29
29
|
children: o.map((g, l) => {
|
|
30
|
-
const t =
|
|
30
|
+
const t = j(g), s = l + 1, a = z(s, u, t.status), r = a === "active", v = l < o.length - 1;
|
|
31
31
|
return /* @__PURE__ */ n(p.Fragment, { children: [
|
|
32
32
|
/* @__PURE__ */ n(
|
|
33
33
|
I,
|
|
@@ -36,7 +36,7 @@ const V = p.forwardRef(
|
|
|
36
36
|
status: a,
|
|
37
37
|
disabled: t.disabled,
|
|
38
38
|
interactive: c,
|
|
39
|
-
ariaLabel: f(s,
|
|
39
|
+
ariaLabel: f(s, b),
|
|
40
40
|
isActive: r,
|
|
41
41
|
onStepClick: m,
|
|
42
42
|
className: i(
|
|
@@ -87,7 +87,7 @@ const V = p.forwardRef(
|
|
|
87
87
|
alt: "",
|
|
88
88
|
"aria-hidden": !0,
|
|
89
89
|
"data-summary-connector": "",
|
|
90
|
-
className: "relative z-[1] -rotate-90
|
|
90
|
+
className: "relative z-[1] -rotate-90"
|
|
91
91
|
}
|
|
92
92
|
) : null
|
|
93
93
|
] }) : null
|
|
@@ -4,7 +4,7 @@ import { Checkmark as E, ChevronRight as y } from "impact-nova-icons";
|
|
|
4
4
|
import { Button as z } from "../../button/button.js";
|
|
5
5
|
import { cn as m } from "../../../../lib/utils.js";
|
|
6
6
|
import { trackIconVariants as _, trackStepVariants as T, stepperVariants as q } from "../stepper.variants.js";
|
|
7
|
-
import {
|
|
7
|
+
import { stepStatus as D, resolveStepItem as F } from "./step-model.js";
|
|
8
8
|
import { StepHitTarget as H } from "./step-hit-target.js";
|
|
9
9
|
const M = l.forwardRef(
|
|
10
10
|
({
|
|
@@ -63,7 +63,7 @@ const M = l.forwardRef(
|
|
|
63
63
|
v ? "px-8 [mask-image:linear-gradient(to_right,transparent,black_28px,black_calc(100%-28px),transparent)]" : "justify-center"
|
|
64
64
|
),
|
|
65
65
|
children: c.map((e, t) => {
|
|
66
|
-
const a =
|
|
66
|
+
const a = F(e), s = t + 1, n = D(s, u, a.status), g = n === "active", j = v && (t === 0 && b || t === c.length - 1 && h);
|
|
67
67
|
return /* @__PURE__ */ p(
|
|
68
68
|
H,
|
|
69
69
|
{
|
|
@@ -1,177 +1,179 @@
|
|
|
1
1
|
import { jsx as t, jsxs as g } from "react/jsx-runtime";
|
|
2
|
-
import * as
|
|
3
|
-
import { Checkmark as
|
|
4
|
-
import { createComponent as
|
|
5
|
-
import { cn as
|
|
6
|
-
import { OverflowTooltip as
|
|
7
|
-
import { useImpactNovaI18n as
|
|
8
|
-
import { iconVariants as
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
|
|
2
|
+
import * as D from "react";
|
|
3
|
+
import { Checkmark as P } from "impact-nova-icons";
|
|
4
|
+
import { createComponent as T } from "../../../lib/primitives/create-component.js";
|
|
5
|
+
import { cn as u } from "../../../lib/utils.js";
|
|
6
|
+
import { OverflowTooltip as w } from "../../feedback/tooltip/overflow-tooltip.js";
|
|
7
|
+
import { useImpactNovaI18n as V } from "../../../i18n/use-impact-nova-i18n.js";
|
|
8
|
+
import { iconVariants as k, stepVariants as A, stepperVariants as O } from "./stepper.variants.js";
|
|
9
|
+
import { stepStatus as R, resolveStepItem as E } from "./internals/step-model.js";
|
|
10
|
+
import { CompactStepper as F } from "./internals/stepper-compact.js";
|
|
11
|
+
import { PipelineStepper as K } from "./internals/stepper-pipeline.js";
|
|
12
|
+
import { RailStepper as q } from "./internals/stepper-rail.js";
|
|
13
|
+
import { SummaryStepper as B } from "./internals/stepper-summary.js";
|
|
14
|
+
import { TrackStepper as C } from "./internals/stepper-track.js";
|
|
15
|
+
const tt = T(
|
|
15
16
|
"Stepper",
|
|
16
17
|
({
|
|
17
|
-
className:
|
|
18
|
+
className: p,
|
|
18
19
|
currentStep: r,
|
|
19
|
-
steps:
|
|
20
|
-
orientation:
|
|
21
|
-
variant:
|
|
20
|
+
steps: o,
|
|
21
|
+
orientation: s = "horizontal",
|
|
22
|
+
variant: f = "default",
|
|
22
23
|
heading: I,
|
|
23
|
-
|
|
24
|
+
stepsCountLabel: L,
|
|
25
|
+
renderStep: N,
|
|
24
26
|
onStepClick: e,
|
|
25
|
-
...
|
|
26
|
-
},
|
|
27
|
-
const { t:
|
|
28
|
-
return
|
|
29
|
-
|
|
27
|
+
...m
|
|
28
|
+
}, n) => {
|
|
29
|
+
const { t: c } = V(), b = o.length, d = (v, l) => c("stepper.stepOfTotal", { current: v, total: l });
|
|
30
|
+
return f === "rail" ? /* @__PURE__ */ t(
|
|
31
|
+
q,
|
|
30
32
|
{
|
|
31
|
-
ref:
|
|
32
|
-
className:
|
|
33
|
+
ref: n,
|
|
34
|
+
className: p,
|
|
33
35
|
currentStep: r,
|
|
34
|
-
steps:
|
|
36
|
+
steps: o,
|
|
35
37
|
onStepClick: e,
|
|
36
|
-
renderStep:
|
|
38
|
+
renderStep: N,
|
|
37
39
|
stepAriaLabel: d,
|
|
38
|
-
...
|
|
40
|
+
...m
|
|
39
41
|
}
|
|
40
|
-
) :
|
|
41
|
-
|
|
42
|
+
) : f === "compact" ? /* @__PURE__ */ t(
|
|
43
|
+
F,
|
|
42
44
|
{
|
|
43
|
-
ref:
|
|
44
|
-
className:
|
|
45
|
+
ref: n,
|
|
46
|
+
className: p,
|
|
45
47
|
currentStep: r,
|
|
46
|
-
steps:
|
|
47
|
-
orientation:
|
|
48
|
+
steps: o,
|
|
49
|
+
orientation: s,
|
|
48
50
|
onStepClick: e,
|
|
49
51
|
stepAriaLabel: d,
|
|
50
|
-
...
|
|
52
|
+
...m
|
|
51
53
|
}
|
|
52
|
-
) :
|
|
53
|
-
|
|
54
|
+
) : f === "pipeline" ? /* @__PURE__ */ t(
|
|
55
|
+
K,
|
|
54
56
|
{
|
|
55
|
-
ref:
|
|
56
|
-
className:
|
|
57
|
+
ref: n,
|
|
58
|
+
className: p,
|
|
57
59
|
currentStep: r,
|
|
58
|
-
steps:
|
|
60
|
+
steps: o,
|
|
59
61
|
onStepClick: e,
|
|
60
62
|
heading: I,
|
|
61
63
|
stepAriaLabel: d,
|
|
62
|
-
pipelinePrefix:
|
|
63
|
-
stepsCountLabel:
|
|
64
|
-
...
|
|
64
|
+
pipelinePrefix: c("stepper.pipelinePrefix"),
|
|
65
|
+
stepsCountLabel: L ?? c("stepper.stepsCount", { current: r, total: b }),
|
|
66
|
+
...m
|
|
65
67
|
}
|
|
66
|
-
) :
|
|
67
|
-
|
|
68
|
+
) : f === "track" ? /* @__PURE__ */ t(
|
|
69
|
+
C,
|
|
68
70
|
{
|
|
69
|
-
ref:
|
|
70
|
-
className:
|
|
71
|
+
ref: n,
|
|
72
|
+
className: p,
|
|
71
73
|
currentStep: r,
|
|
72
|
-
steps:
|
|
74
|
+
steps: o,
|
|
73
75
|
onStepClick: e,
|
|
74
76
|
stepAriaLabel: d,
|
|
75
|
-
currentlyStepLabel:
|
|
77
|
+
currentlyStepLabel: c("stepper.currentlyStep", {
|
|
76
78
|
current: r,
|
|
77
|
-
total:
|
|
79
|
+
total: b
|
|
78
80
|
}),
|
|
79
|
-
previousLabel:
|
|
80
|
-
nextLabel:
|
|
81
|
-
...
|
|
81
|
+
previousLabel: c("stepper.previousSteps"),
|
|
82
|
+
nextLabel: c("stepper.nextSteps"),
|
|
83
|
+
...m
|
|
82
84
|
}
|
|
83
|
-
) :
|
|
84
|
-
|
|
85
|
+
) : f === "summary" ? /* @__PURE__ */ t(
|
|
86
|
+
B,
|
|
85
87
|
{
|
|
86
|
-
ref:
|
|
87
|
-
className:
|
|
88
|
+
ref: n,
|
|
89
|
+
className: p,
|
|
88
90
|
currentStep: r,
|
|
89
|
-
steps:
|
|
91
|
+
steps: o,
|
|
90
92
|
onStepClick: e,
|
|
91
93
|
stepAriaLabel: d,
|
|
92
|
-
...
|
|
94
|
+
...m
|
|
93
95
|
}
|
|
94
96
|
) : /* @__PURE__ */ t(
|
|
95
97
|
"div",
|
|
96
98
|
{
|
|
97
|
-
ref:
|
|
98
|
-
className:
|
|
99
|
-
"data-orientation":
|
|
99
|
+
ref: n,
|
|
100
|
+
className: u(O({ orientation: s, variant: "default" }), p),
|
|
101
|
+
"data-orientation": s,
|
|
100
102
|
"data-variant": "default",
|
|
101
103
|
"data-component": "stepper",
|
|
102
104
|
role: "list",
|
|
103
|
-
...
|
|
104
|
-
children:
|
|
105
|
-
const
|
|
106
|
-
return /* @__PURE__ */ g(
|
|
105
|
+
...m,
|
|
106
|
+
children: o.map((v, l) => {
|
|
107
|
+
const a = E(v), h = l + 1, x = a.disabled, i = R(h, r, a.status), j = i === "active", z = i === "completed";
|
|
108
|
+
return /* @__PURE__ */ g(D.Fragment, { children: [
|
|
107
109
|
/* @__PURE__ */ g(
|
|
108
110
|
"div",
|
|
109
111
|
{
|
|
110
112
|
role: "listitem",
|
|
111
|
-
onClick: () => !
|
|
112
|
-
"aria-label": d(
|
|
113
|
-
"aria-current":
|
|
114
|
-
tabIndex: e && !
|
|
115
|
-
onKeyDown: e && !
|
|
116
|
-
(y.key === "Enter" || y.key === " ") && (y.preventDefault(), e(
|
|
113
|
+
onClick: () => !x && e?.(l),
|
|
114
|
+
"aria-label": d(h, b),
|
|
115
|
+
"aria-current": j ? "step" : void 0,
|
|
116
|
+
tabIndex: e && !x ? 0 : void 0,
|
|
117
|
+
onKeyDown: e && !x ? (y) => {
|
|
118
|
+
(y.key === "Enter" || y.key === " ") && (y.preventDefault(), e(l));
|
|
117
119
|
} : void 0,
|
|
118
|
-
"data-step":
|
|
119
|
-
"data-status":
|
|
120
|
-
"data-disabled":
|
|
121
|
-
className:
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
120
|
+
"data-step": h,
|
|
121
|
+
"data-status": i,
|
|
122
|
+
"data-disabled": x || void 0,
|
|
123
|
+
className: u(
|
|
124
|
+
A({ orientation: s, status: i }),
|
|
125
|
+
s === "horizontal" && "min-w-[140px]",
|
|
126
|
+
x ? "opacity-80 cursor-not-allowed" : e ? "cursor-pointer" : "cursor-default"
|
|
125
127
|
),
|
|
126
128
|
children: [
|
|
127
|
-
/* @__PURE__ */ t("div", { className:
|
|
129
|
+
/* @__PURE__ */ t("div", { className: u(k({ status: i }), "mr-2"), children: z ? /* @__PURE__ */ t(P, { className: "h-5 w-5 stroke-[3px]" }) : /* @__PURE__ */ t("span", { children: a.icon || h }) }),
|
|
128
130
|
/* @__PURE__ */ g("div", { className: "flex min-w-0 flex-col justify-center overflow-hidden", children: [
|
|
129
131
|
/* @__PURE__ */ t(
|
|
130
|
-
|
|
132
|
+
w,
|
|
131
133
|
{
|
|
132
|
-
triggerClassName:
|
|
134
|
+
triggerClassName: u(
|
|
133
135
|
"text-[14px] leading-tight font-medium truncate max-w-[200px] block",
|
|
134
|
-
|
|
135
|
-
|
|
136
|
+
i === "completed" ? "text-success" : "text-content",
|
|
137
|
+
i === "active" && s === "vertical" ? "text-brand" : ""
|
|
136
138
|
),
|
|
137
|
-
content:
|
|
139
|
+
content: a.label,
|
|
138
140
|
side: "top",
|
|
139
141
|
variant: "tertiary",
|
|
140
|
-
children:
|
|
142
|
+
children: a.label
|
|
141
143
|
}
|
|
142
144
|
),
|
|
143
|
-
|
|
144
|
-
|
|
145
|
+
a.description && /* @__PURE__ */ t(
|
|
146
|
+
w,
|
|
145
147
|
{
|
|
146
|
-
triggerClassName:
|
|
148
|
+
triggerClassName: u(
|
|
147
149
|
"text-[12px] leading-tight mt-0.5 truncate max-w-[200px] block",
|
|
148
|
-
|
|
150
|
+
i === "completed" ? "text-success" : "text-secondary-foreground"
|
|
149
151
|
),
|
|
150
|
-
content:
|
|
152
|
+
content: a.description,
|
|
151
153
|
side: "top",
|
|
152
154
|
variant: "tertiary",
|
|
153
|
-
children:
|
|
155
|
+
children: a.description
|
|
154
156
|
}
|
|
155
157
|
)
|
|
156
158
|
] })
|
|
157
159
|
]
|
|
158
160
|
}
|
|
159
161
|
),
|
|
160
|
-
|
|
162
|
+
l < o.length - 1 && /* @__PURE__ */ t(
|
|
161
163
|
"div",
|
|
162
164
|
{
|
|
163
|
-
className:
|
|
165
|
+
className: u(
|
|
164
166
|
"border-t border-dashed border-stroke-hairline transition-colors",
|
|
165
|
-
|
|
167
|
+
s === "horizontal" ? "mx-1 min-w-[24px] flex-1 self-center" : "my-[-4px] ml-[12px] h-6 w-0 border-l"
|
|
166
168
|
)
|
|
167
169
|
}
|
|
168
170
|
)
|
|
169
|
-
] },
|
|
171
|
+
] }, l);
|
|
170
172
|
})
|
|
171
173
|
}
|
|
172
174
|
);
|
|
173
175
|
}
|
|
174
176
|
);
|
|
175
177
|
export {
|
|
176
|
-
|
|
178
|
+
tt as Stepper
|
|
177
179
|
};
|
|
@@ -6,6 +6,8 @@ export interface StepItem {
|
|
|
6
6
|
description?: string;
|
|
7
7
|
icon?: React.ReactNode;
|
|
8
8
|
disabled?: boolean;
|
|
9
|
+
/** Overrides progress inferred from `currentStep`. The selected step stays `active`. */
|
|
10
|
+
status?: StepStatus;
|
|
9
11
|
}
|
|
10
12
|
export type StepperVariant = NonNullable<VariantProps<typeof stepperVariants>["variant"]>;
|
|
11
13
|
export type StepperOrientation = NonNullable<VariantProps<typeof stepperVariants>["orientation"]>;
|
|
@@ -23,6 +25,8 @@ export interface StepperProps extends React.HTMLAttributes<HTMLDivElement>, Vari
|
|
|
23
25
|
onStepClick?: (index: number) => void;
|
|
24
26
|
/** Pipeline heading after the "Pipeline:" prefix. Ignored on other variants. */
|
|
25
27
|
heading?: string;
|
|
28
|
+
/** Pipeline variant: overrides the built-in steps count label (app i18n). */
|
|
29
|
+
stepsCountLabel?: string;
|
|
26
30
|
/**
|
|
27
31
|
* Rail variant only: custom step body (e.g. `AccordionItem`).
|
|
28
32
|
* Falls back to a label-only card when omitted.
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export declare function folderTabPaths(width: number, bothSides: boolean): {
|
|
2
|
+
fill: string;
|
|
3
|
+
border: string;
|
|
4
|
+
};
|
|
5
|
+
/** One clip path, same idea as pinned KPI cards: the corner curve is part of the shape. */
|
|
6
|
+
export declare function folderTabClipPath(width: number, bothSides: boolean): string;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
function F(A, E) {
|
|
2
|
+
const R = A - 16, t = `C${R} ${55 - 7.16344} ${R + 7.16344} 55 ${A} 55`, D = `H${R - 16} Q${R} 0 ${R} 16 V39 ${t}`;
|
|
3
|
+
if (!E)
|
|
4
|
+
return {
|
|
5
|
+
fill: `M16 0 ${D} H0 V16 Q0 0 16 0 Z`,
|
|
6
|
+
border: `M0 55 V16 Q0 0 16 0 ${D}`
|
|
7
|
+
};
|
|
8
|
+
const _ = 16, $ = `C${8.83656} 55 ${_} ${55 - 7.16344} ${_} 39`;
|
|
9
|
+
return {
|
|
10
|
+
fill: `M${_ + 16} 0 ${D} H0 ${$} V16 Q${_} 0 ${_ + 16} 0 Z`,
|
|
11
|
+
border: `M0 55 ${$} V16 Q${_} 0 ${_ + 16} 0 ${D}`
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
export {
|
|
15
|
+
F as folderTabPaths
|
|
16
|
+
};
|