impact-nova 3.0.0-alpha.2 → 3.0.0-alpha.22
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/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 +53 -49
- 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-heatmap-layout.d.ts +31 -0
- package/dist/components/data-display/chart/chart-heatmap-layout.js +72 -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.category-cluster-heatmap.stories-data.d.ts +1 -1
- package/dist/components/data-display/chart/chart.js +171 -143
- package/dist/components/data-display/chart/chart.types.d.ts +17 -0
- package/dist/components/data-display/chart/chart.utils.js +122 -92
- package/dist/components/data-display/heatmap-grid/heatmap-grid-play.d.ts +9 -0
- package/dist/components/data-display/heatmap-grid/heatmap-grid.d.ts +32 -0
- package/dist/components/data-display/heatmap-grid/heatmap-grid.js +93 -0
- package/dist/components/data-display/heatmap-grid/heatmap-grid.layout.d.ts +46 -0
- package/dist/components/data-display/heatmap-grid/heatmap-grid.layout.js +80 -0
- package/dist/components/data-display/heatmap-grid/heatmap-grid.types.d.ts +54 -0
- package/dist/components/data-display/heatmap-grid/heatmap-grid.variants.d.ts +18 -0
- package/dist/components/data-display/heatmap-grid/heatmap-grid.variants.js +80 -0
- package/dist/components/data-display/heatmap-grid/index.d.ts +3 -0
- package/dist/components/data-display/heatmap-grid/index.js +14 -0
- package/dist/components/data-display/heatmap-grid/internals/heatmap-grid-cell.d.ts +14 -0
- package/dist/components/data-display/heatmap-grid/internals/heatmap-grid-cell.js +39 -0
- package/dist/components/data-display/heatmap-grid/internals/heatmap-grid-context.d.ts +29 -0
- package/dist/components/data-display/heatmap-grid/internals/heatmap-grid-context.js +33 -0
- package/dist/components/data-display/heatmap-grid/internals/heatmap-grid-tooltip.d.ts +4 -0
- package/dist/components/data-display/heatmap-grid/internals/heatmap-grid-tooltip.js +49 -0
- package/dist/components/data-display/heatmap-grid/internals/heatmap-grid-viewport.d.ts +3 -0
- package/dist/components/data-display/heatmap-grid/internals/heatmap-grid-viewport.js +173 -0
- package/dist/components/data-display/heatmap-grid/internals/use-heatmap-grid-viewport.d.ts +12 -0
- package/dist/components/data-display/heatmap-grid/internals/use-heatmap-grid-viewport.js +161 -0
- 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 +75 -0
- package/dist/i18n/defaultMessages.js +112 -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 +71 -1
- package/dist/i18n/locales/es.js +71 -1
- package/dist/i18n/locales/hi.js +71 -1
- package/dist/i18n/locales/kn.js +71 -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/tailwind.config.js +3 -0
- package/dist/theme/tailwind-colors.js +3 -0
- package/package.json +27 -4
|
@@ -59,10 +59,17 @@ export type ChoiceCardPercentProps = React.HTMLAttributes<HTMLDivElement> & {
|
|
|
59
59
|
decreaseLabel?: string;
|
|
60
60
|
disabled?: boolean;
|
|
61
61
|
};
|
|
62
|
-
export type ChoiceCardCompareFit = "scroll" | "auto";
|
|
62
|
+
export type ChoiceCardCompareFit = "scroll" | "auto" | "fill";
|
|
63
63
|
export type ChoiceCardCompareProps = React.HTMLAttributes<HTMLDivElement> & {
|
|
64
|
-
/** `scroll` keeps Figma 411px tiles. `auto` caps tiles at 420px and shrinks them to the row. */
|
|
64
|
+
/** `scroll` keeps Figma 411px tiles. `auto` caps tiles at 420px and shrinks them to the row. `fill` shares leftover width. */
|
|
65
65
|
fit?: ChoiceCardCompareFit;
|
|
66
|
+
/** Min height of each metric row. Default `3.5rem`. With `scrollRows`, this is the height of each line inside the shared scroller. */
|
|
67
|
+
rowMinHeight?: string;
|
|
68
|
+
/**
|
|
69
|
+
* One shared row scroller across the label column, gutters, and cards.
|
|
70
|
+
* Card title and footer stay put. Default off, so short compare rows keep one grid track each.
|
|
71
|
+
*/
|
|
72
|
+
scrollRows?: boolean;
|
|
66
73
|
};
|
|
67
74
|
export type ChoiceCardCompareLabelsProps = React.HTMLAttributes<HTMLDivElement>;
|
|
68
75
|
export type ChoiceCardCompareLabelProps = React.HTMLAttributes<HTMLDivElement>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { cva as e } from "class-variance-authority";
|
|
2
|
-
const r = "border-stroke-subtle p-3 hover:border-
|
|
2
|
+
const r = "border-stroke-subtle p-3 hover:border-stroke-field hover:bg-accent", a = "border-brand border-l-[3px] border-l-brand bg-brand-tint py-3 pr-3 pl-2.5 shadow-elevation-header hover:bg-brand-tint", d = "border-stroke-field border-l-[3px] border-l-stroke-field bg-canvas-muted py-3 pr-3 pl-2.5 shadow-none", o = e(
|
|
3
3
|
[
|
|
4
4
|
"group relative cursor-pointer select-none transition-[border-color,background-color,box-shadow] duration-150",
|
|
5
5
|
"has-[[data-slot=choice-card-control]:focus-visible]:outline-none has-[[data-slot=choice-card-control]:focus-visible]:ring-1 has-[[data-slot=choice-card-control]:focus-visible]:ring-focus-ring"
|
|
@@ -7,7 +7,7 @@ const r = "border-stroke-subtle p-3 hover:border-brand", a = "border-brand borde
|
|
|
7
7
|
{
|
|
8
8
|
variants: {
|
|
9
9
|
variant: {
|
|
10
|
-
default: "flex flex-row items-
|
|
10
|
+
default: "flex flex-row items-center justify-between gap-2 overflow-hidden rounded-xl border border-solid bg-canvas-elevated",
|
|
11
11
|
featured: "flex h-[116px] w-[215px] shrink-0 flex-col overflow-hidden rounded-2xl border border-solid bg-canvas-elevated p-0",
|
|
12
12
|
compare: "flex flex-col items-stretch gap-4 overflow-visible rounded-xl border border-solid p-3"
|
|
13
13
|
},
|
|
@@ -48,9 +48,16 @@ const r = "border-stroke-subtle p-3 hover:border-brand", a = "border-brand borde
|
|
|
48
48
|
},
|
|
49
49
|
{
|
|
50
50
|
variant: "default",
|
|
51
|
+
selected: !1,
|
|
51
52
|
disabled: !0,
|
|
52
53
|
class: "border-stroke-subtle bg-canvas-muted p-3"
|
|
53
54
|
},
|
|
55
|
+
{
|
|
56
|
+
variant: "default",
|
|
57
|
+
selected: !0,
|
|
58
|
+
disabled: !0,
|
|
59
|
+
class: d
|
|
60
|
+
},
|
|
54
61
|
{
|
|
55
62
|
variant: "featured",
|
|
56
63
|
selected: !1,
|
|
@@ -65,9 +72,16 @@ const r = "border-stroke-subtle p-3 hover:border-brand", a = "border-brand borde
|
|
|
65
72
|
},
|
|
66
73
|
{
|
|
67
74
|
variant: "featured",
|
|
75
|
+
selected: !1,
|
|
68
76
|
disabled: !0,
|
|
69
77
|
class: "border border-stroke-subtle border-b-[3px] border-b-stroke-subtle bg-canvas-muted"
|
|
70
78
|
},
|
|
79
|
+
{
|
|
80
|
+
variant: "featured",
|
|
81
|
+
selected: !0,
|
|
82
|
+
disabled: !0,
|
|
83
|
+
class: "border border-stroke-field border-b-[3px] border-b-stroke-field bg-canvas-muted"
|
|
84
|
+
},
|
|
71
85
|
{
|
|
72
86
|
variant: "compare",
|
|
73
87
|
selected: !1,
|
|
@@ -82,8 +96,15 @@ const r = "border-stroke-subtle p-3 hover:border-brand", a = "border-brand borde
|
|
|
82
96
|
},
|
|
83
97
|
{
|
|
84
98
|
variant: "compare",
|
|
99
|
+
selected: !1,
|
|
85
100
|
disabled: !0,
|
|
86
101
|
class: "border-stroke-subtle bg-canvas-muted"
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
variant: "compare",
|
|
105
|
+
selected: !0,
|
|
106
|
+
disabled: !0,
|
|
107
|
+
class: "border-stroke-field bg-canvas-muted shadow-none"
|
|
87
108
|
}
|
|
88
109
|
],
|
|
89
110
|
defaultVariants: {
|
|
@@ -96,5 +117,5 @@ const r = "border-stroke-subtle p-3 hover:border-brand", a = "border-brand borde
|
|
|
96
117
|
}
|
|
97
118
|
);
|
|
98
119
|
export {
|
|
99
|
-
|
|
120
|
+
o as choiceCardVariants
|
|
100
121
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { jsx as o, jsxs as
|
|
1
|
+
import { jsx as o, jsxs as j } from "react/jsx-runtime";
|
|
2
2
|
import { createComponent as C } from "../../../lib/primitives/create-component.js";
|
|
3
3
|
import { useFieldChrome as B } from "../../../lib/primitives/use-field-chrome.js";
|
|
4
4
|
import { cn as r } from "../../../lib/utils.js";
|
|
@@ -23,7 +23,7 @@ const V = C(
|
|
|
23
23
|
id: g,
|
|
24
24
|
...u
|
|
25
25
|
}, N) => {
|
|
26
|
-
const t = h ?? x,
|
|
26
|
+
const t = h ?? x, w = !!(i || a || t), n = B({
|
|
27
27
|
label: i,
|
|
28
28
|
helperText: a,
|
|
29
29
|
helperTextPosition: l,
|
|
@@ -38,7 +38,7 @@ const V = C(
|
|
|
38
38
|
className: r(
|
|
39
39
|
a && l === "absolute" && "relative"
|
|
40
40
|
),
|
|
41
|
-
children: /* @__PURE__ */
|
|
41
|
+
children: /* @__PURE__ */ j(
|
|
42
42
|
"div",
|
|
43
43
|
{
|
|
44
44
|
"data-component": "input-border",
|
|
@@ -70,7 +70,7 @@ const V = C(
|
|
|
70
70
|
type: f,
|
|
71
71
|
id: n.controlId,
|
|
72
72
|
className: r(
|
|
73
|
-
"flex h-full w-full bg-transparent p-0 text-sm font-medium outline-none placeholder:font-medium placeholder:text-content-empty disabled:cursor-not-allowed disabled:opacity-50",
|
|
73
|
+
"flex h-full w-full min-w-0 bg-transparent p-0 text-sm font-medium outline-none placeholder:font-medium placeholder:text-content-empty disabled:cursor-not-allowed disabled:opacity-50",
|
|
74
74
|
e && "opacity-100 text-disabled-foreground placeholder:text-disabled-foreground"
|
|
75
75
|
),
|
|
76
76
|
ref: N,
|
|
@@ -104,7 +104,7 @@ const V = C(
|
|
|
104
104
|
"data-component": "input",
|
|
105
105
|
"data-disabled": e || void 0,
|
|
106
106
|
"data-invalid": t || void 0,
|
|
107
|
-
children:
|
|
107
|
+
children: w ? n.wrapControl(p) : p
|
|
108
108
|
}
|
|
109
109
|
);
|
|
110
110
|
}
|
|
@@ -2,19 +2,19 @@ import { jsx as o } from "react/jsx-runtime";
|
|
|
2
2
|
import * as n from "@radix-ui/react-popover";
|
|
3
3
|
import { cn as a } from "../../../../lib/utils.js";
|
|
4
4
|
import { preventDismissOnTooltipOutside as t } from "../../../../lib/overlay/prevent-dismiss-on-tooltip-outside.js";
|
|
5
|
-
import { useOverlayPortalContainer as
|
|
6
|
-
import { OVERLAY_NESTED_FLOATING_INSTANT_HIDE_CLASS as
|
|
7
|
-
function
|
|
5
|
+
import { useOverlayPortalContainer as u } from "../../../../lib/overlay/overlay-portal-context.js";
|
|
6
|
+
import { OVERLAY_NESTED_FLOATING_INSTANT_HIDE_CLASS as v } from "../../../../lib/overlay/overlay-host.constants.js";
|
|
7
|
+
function O({
|
|
8
8
|
menuRef: l,
|
|
9
|
-
menuMinHeight:
|
|
9
|
+
menuMinHeight: r,
|
|
10
10
|
menuWidth: s,
|
|
11
|
-
isReadOnly:
|
|
11
|
+
isReadOnly: i,
|
|
12
12
|
id: d,
|
|
13
13
|
menuLabel: p,
|
|
14
|
-
children:
|
|
14
|
+
children: c
|
|
15
15
|
}) {
|
|
16
|
-
const
|
|
17
|
-
return /* @__PURE__ */ o(n.Portal, { container:
|
|
16
|
+
const m = u();
|
|
17
|
+
return /* @__PURE__ */ o(n.Portal, { container: m, children: /* @__PURE__ */ o(
|
|
18
18
|
n.Content,
|
|
19
19
|
{
|
|
20
20
|
ref: l,
|
|
@@ -25,7 +25,7 @@ function P({
|
|
|
25
25
|
collisionPadding: 8,
|
|
26
26
|
"aria-label": p,
|
|
27
27
|
onOpenAutoFocus: (e) => e.preventDefault(),
|
|
28
|
-
|
|
28
|
+
onCloseAutoFocus: (e) => e.preventDefault(),
|
|
29
29
|
onPointerDownOutside: t,
|
|
30
30
|
onInteractOutside: t,
|
|
31
31
|
onFocusOutside: t,
|
|
@@ -37,8 +37,8 @@ function P({
|
|
|
37
37
|
},
|
|
38
38
|
className: a(
|
|
39
39
|
"z-50 flex flex-col overflow-hidden rounded-[12px] p-0 text-base shadow-elevation-select focus:outline-none sm:text-sm border-none pointer-events-auto",
|
|
40
|
-
|
|
41
|
-
|
|
40
|
+
i ? "bg-disabled-surface" : "bg-canvas-elevated",
|
|
41
|
+
v
|
|
42
42
|
),
|
|
43
43
|
"data-testid": `select-menu-${d || "default"}`,
|
|
44
44
|
"data-component": "select-menu",
|
|
@@ -47,17 +47,17 @@ function P({
|
|
|
47
47
|
{
|
|
48
48
|
className: a(
|
|
49
49
|
"flex min-h-0 flex-1 flex-col overflow-hidden rounded-[12px]",
|
|
50
|
-
|
|
50
|
+
i ? "bg-disabled-surface" : "bg-canvas-elevated"
|
|
51
51
|
),
|
|
52
52
|
style: {
|
|
53
|
-
minHeight:
|
|
53
|
+
minHeight: r ? `${r}px` : void 0
|
|
54
54
|
},
|
|
55
|
-
children:
|
|
55
|
+
children: c
|
|
56
56
|
}
|
|
57
57
|
)
|
|
58
58
|
}
|
|
59
59
|
) });
|
|
60
60
|
}
|
|
61
61
|
export {
|
|
62
|
-
|
|
62
|
+
O as SelectMenuPanel
|
|
63
63
|
};
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { jsx as r } from "react/jsx-runtime";
|
|
2
2
|
import { cn as x } from "../../../../lib/utils.js";
|
|
3
|
+
import "react";
|
|
3
4
|
import { OverflowTooltip as m } from "../../../feedback/tooltip/overflow-tooltip.js";
|
|
4
5
|
import { isInvertedSelection as h, isOptionArray as d } from "../utils/select.js";
|
|
5
|
-
function
|
|
6
|
+
function C({
|
|
6
7
|
isMulti: u,
|
|
7
8
|
isDisabled: p,
|
|
8
9
|
internalValue: o,
|
|
@@ -52,5 +53,5 @@ function w({
|
|
|
52
53
|
);
|
|
53
54
|
}
|
|
54
55
|
export {
|
|
55
|
-
|
|
56
|
+
C as SelectTriggerValue
|
|
56
57
|
};
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import { jsxs as s, jsx as t } from "react/jsx-runtime";
|
|
2
2
|
import * as i from "@radix-ui/react-popover";
|
|
3
3
|
import { Checkbox as P } from "../../checkbox/checkbox.js";
|
|
4
|
+
import "react";
|
|
4
5
|
import { OverflowTooltip as y } from "../../../feedback/tooltip/overflow-tooltip.js";
|
|
5
6
|
import { ChevronRight as A, Checkmark as O } from "impact-nova-icons";
|
|
6
7
|
import { cn as v } from "../../../../lib/utils.js";
|
|
7
8
|
import { useOverlayPortalContainer as T } from "../../../../lib/overlay/overlay-portal-context.js";
|
|
8
9
|
import { OVERLAY_NESTED_FLOATING_INSTANT_HIDE_CLASS as _ } from "../../../../lib/overlay/overlay-host.constants.js";
|
|
9
10
|
import { useSuppressOptionClickForTextSelection as E } from "../hooks/useSuppressOptionClickForTextSelection.js";
|
|
10
|
-
const
|
|
11
|
+
const R = ({
|
|
11
12
|
parentOption: n,
|
|
12
13
|
isMulti: u,
|
|
13
14
|
isReadOnly: l,
|
|
@@ -105,5 +106,5 @@ const G = ({
|
|
|
105
106
|
] });
|
|
106
107
|
};
|
|
107
108
|
export {
|
|
108
|
-
|
|
109
|
+
R as Submenu
|
|
109
110
|
};
|
|
@@ -111,6 +111,7 @@ const P = i(
|
|
|
111
111
|
{
|
|
112
112
|
ref: o,
|
|
113
113
|
type: "button",
|
|
114
|
+
"data-component": "header-iris-button",
|
|
114
115
|
className: n(
|
|
115
116
|
"relative flex items-center justify-center h-8 gap-1 px-3 py-1.5 rounded-md cursor-pointer outline-none",
|
|
116
117
|
"header-iris-button-gradient",
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export declare const HORIZONTAL_SCROLLER_FADE_WIDTH_PX = 48;
|
|
2
|
+
export declare function buildHorizontalScrollerMaskImage(canScrollLeft: boolean, canScrollRight: boolean): string | undefined;
|
|
3
|
+
export declare const horizontalScrollerEdgeFadeClassName = "pointer-events-none absolute top-0 z-10 h-full w-14";
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
const e = 48;
|
|
2
|
+
function n(a, t) {
|
|
3
|
+
if (!a && !t) return;
|
|
4
|
+
const r = 48;
|
|
5
|
+
return a && t ? `linear-gradient(to right, transparent, black ${r}px, black calc(100% - ${r}px), transparent)` : t ? `linear-gradient(to right, black, black calc(100% - ${r}px), transparent 100%)` : `linear-gradient(to right, transparent, black ${r}px, black)`;
|
|
6
|
+
}
|
|
7
|
+
const i = "pointer-events-none absolute top-0 z-10 h-full w-14";
|
|
8
|
+
export {
|
|
9
|
+
e as HORIZONTAL_SCROLLER_FADE_WIDTH_PX,
|
|
10
|
+
n as buildHorizontalScrollerMaskImage,
|
|
11
|
+
i as horizontalScrollerEdgeFadeClassName
|
|
12
|
+
};
|
|
@@ -1,167 +1,223 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import * as
|
|
3
|
-
import { ChevronRight as
|
|
4
|
-
import { useVirtualizer as
|
|
5
|
-
import { cn as
|
|
6
|
-
import { Button as
|
|
7
|
-
import { useImpactNovaI18n as
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
const
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
1
|
+
import { jsx as t, jsxs as h, Fragment as $ } from "react/jsx-runtime";
|
|
2
|
+
import * as i from "react";
|
|
3
|
+
import { ChevronRight as L } from "impact-nova-icons";
|
|
4
|
+
import { useVirtualizer as D } from "@tanstack/react-virtual";
|
|
5
|
+
import { cn as r } from "../../../lib/utils.js";
|
|
6
|
+
import { Button as I } from "../../primitives/button/button.js";
|
|
7
|
+
import { useImpactNovaI18n as _ } from "../../../i18n/use-impact-nova-i18n.js";
|
|
8
|
+
import { horizontalScrollerEdgeFadeClassName as E, buildHorizontalScrollerMaskImage as q } from "./horizontal-scroller-mask.js";
|
|
9
|
+
function G({
|
|
10
|
+
className: B,
|
|
11
|
+
items: u,
|
|
12
|
+
renderItem: H,
|
|
13
|
+
scrollStep: x = 200,
|
|
14
|
+
hideScrollbar: v = !0,
|
|
15
|
+
edgeAffordance: c = !1,
|
|
16
|
+
controlsPosition: z = "right",
|
|
17
|
+
renderPrevious: b,
|
|
18
|
+
renderNext: w,
|
|
19
|
+
maxWidth: W = "100%",
|
|
20
|
+
estimateSize: p = 200,
|
|
21
|
+
overscan: M = 5,
|
|
22
|
+
...V
|
|
23
|
+
}, j) {
|
|
24
|
+
const { t: S } = _(), o = i.useRef(null), [n, F] = i.useState(!1), [a, O] = i.useState(!1);
|
|
25
|
+
i.useImperativeHandle(j, () => o.current);
|
|
26
|
+
const f = D({
|
|
27
|
+
count: u.length,
|
|
28
|
+
getScrollElement: () => o.current,
|
|
29
|
+
estimateSize: typeof p == "function" ? p : () => p,
|
|
28
30
|
horizontal: !0,
|
|
29
|
-
overscan:
|
|
30
|
-
}),
|
|
31
|
-
const e =
|
|
32
|
-
e && (
|
|
31
|
+
overscan: M
|
|
32
|
+
}), T = f.getTotalSize(), m = i.useCallback(() => {
|
|
33
|
+
const e = o.current;
|
|
34
|
+
e && (F(e.scrollLeft > 0), O(
|
|
33
35
|
Math.ceil(e.scrollLeft + e.clientWidth) < e.scrollWidth
|
|
34
36
|
));
|
|
35
37
|
}, []);
|
|
36
|
-
|
|
37
|
-
const e =
|
|
38
|
+
i.useEffect(() => {
|
|
39
|
+
const e = o.current;
|
|
38
40
|
if (!e) return;
|
|
39
|
-
|
|
40
|
-
const
|
|
41
|
-
e.addEventListener("scroll",
|
|
42
|
-
const
|
|
43
|
-
|
|
41
|
+
m();
|
|
42
|
+
const l = () => m();
|
|
43
|
+
e.addEventListener("scroll", l);
|
|
44
|
+
const s = new ResizeObserver(() => {
|
|
45
|
+
m();
|
|
44
46
|
});
|
|
45
|
-
return
|
|
46
|
-
e.removeEventListener("scroll",
|
|
47
|
+
return s.observe(e), () => {
|
|
48
|
+
e.removeEventListener("scroll", l), s.disconnect();
|
|
47
49
|
};
|
|
48
|
-
}, [
|
|
49
|
-
const
|
|
50
|
-
|
|
51
|
-
},
|
|
52
|
-
|
|
53
|
-
},
|
|
54
|
-
if (
|
|
55
|
-
const
|
|
56
|
-
return /* @__PURE__ */
|
|
57
|
-
|
|
50
|
+
}, [m, u, T]);
|
|
51
|
+
const N = () => {
|
|
52
|
+
o.current?.scrollBy({ left: -x, behavior: "smooth" });
|
|
53
|
+
}, y = () => {
|
|
54
|
+
o.current?.scrollBy({ left: x, behavior: "smooth" });
|
|
55
|
+
}, k = (e, l, s) => {
|
|
56
|
+
if (s) return null;
|
|
57
|
+
const g = S(e === "left" ? "horizontalScroller.scrollLeft" : "horizontalScroller.scrollRight");
|
|
58
|
+
return c ? /* @__PURE__ */ t(
|
|
59
|
+
I,
|
|
60
|
+
{
|
|
61
|
+
variant: "ghost",
|
|
62
|
+
size: "iconSm",
|
|
63
|
+
className: r(
|
|
64
|
+
"absolute top-1/2 z-20 !size-5 !min-h-5 !min-w-5 -translate-y-1/2 rounded-full border border-stroke-hairline p-0",
|
|
65
|
+
"bg-canvas-elevated/95 text-content-secondary shadow-sm",
|
|
66
|
+
"hover:bg-canvas-muted hover:text-content",
|
|
67
|
+
"[&_svg]:!size-3",
|
|
68
|
+
e === "left" ? "left-0.5" : "right-0.5"
|
|
69
|
+
),
|
|
70
|
+
onClick: l,
|
|
71
|
+
disabled: s,
|
|
72
|
+
"aria-label": g,
|
|
73
|
+
"data-component": e === "left" ? "horizontal-scroller-prev" : "horizontal-scroller-next",
|
|
74
|
+
tabIndex: -1,
|
|
75
|
+
children: /* @__PURE__ */ t(
|
|
76
|
+
L,
|
|
77
|
+
{
|
|
78
|
+
className: r(e === "left" && "rotate-180")
|
|
79
|
+
}
|
|
80
|
+
)
|
|
81
|
+
}
|
|
82
|
+
) : /* @__PURE__ */ h(
|
|
83
|
+
I,
|
|
58
84
|
{
|
|
59
85
|
variant: "ghost",
|
|
60
86
|
size: "icon",
|
|
61
|
-
className:
|
|
87
|
+
className: r(
|
|
62
88
|
"h-8 w-8 rounded-md bg-canvas-muted text-content-tertiary hover:bg-brand-tint hover:text-brand"
|
|
63
89
|
),
|
|
64
|
-
onClick:
|
|
65
|
-
disabled:
|
|
66
|
-
"aria-label":
|
|
90
|
+
onClick: l,
|
|
91
|
+
disabled: s,
|
|
92
|
+
"aria-label": g,
|
|
67
93
|
"data-component": e === "left" ? "horizontal-scroller-prev" : "horizontal-scroller-next",
|
|
68
94
|
children: [
|
|
69
|
-
/* @__PURE__ */
|
|
70
|
-
|
|
95
|
+
/* @__PURE__ */ t(
|
|
96
|
+
L,
|
|
71
97
|
{
|
|
72
|
-
className:
|
|
98
|
+
className: r("h-4 w-4", e === "left" && "rotate-180")
|
|
73
99
|
}
|
|
74
100
|
),
|
|
75
|
-
/* @__PURE__ */
|
|
101
|
+
/* @__PURE__ */ t("span", { className: "sr-only", children: g })
|
|
76
102
|
]
|
|
77
103
|
}
|
|
78
104
|
);
|
|
79
|
-
},
|
|
80
|
-
const e =
|
|
81
|
-
return
|
|
82
|
-
left:
|
|
83
|
-
right:
|
|
84
|
-
} :
|
|
85
|
-
left:
|
|
105
|
+
}, d = (() => {
|
|
106
|
+
const e = b ? b({ onClick: N, disabled: !n }) : k("left", N, !n), l = w ? w({ onClick: y, disabled: !a }) : k("right", y, !a);
|
|
107
|
+
return c || z === "split" ? {
|
|
108
|
+
left: n ? /* @__PURE__ */ t("div", { className: "flex-shrink-0", children: e }) : null,
|
|
109
|
+
right: a ? /* @__PURE__ */ t("div", { className: "flex-shrink-0", children: l }) : null
|
|
110
|
+
} : z === "left" ? {
|
|
111
|
+
left: n || a ? /* @__PURE__ */ h("div", { className: "flex-shrink-0 flex items-center gap-1", children: [
|
|
86
112
|
e,
|
|
87
|
-
|
|
113
|
+
l
|
|
88
114
|
] }) : null,
|
|
89
115
|
right: null
|
|
90
116
|
} : {
|
|
91
117
|
left: null,
|
|
92
|
-
right:
|
|
118
|
+
right: n || a ? /* @__PURE__ */ h("div", { className: "flex-shrink-0 flex items-center gap-1", children: [
|
|
93
119
|
e,
|
|
94
|
-
|
|
120
|
+
l
|
|
95
121
|
] }) : null
|
|
96
122
|
};
|
|
97
|
-
})()
|
|
98
|
-
return /* @__PURE__ */ i(
|
|
123
|
+
})(), C = c ? q(n, a) : void 0, R = /* @__PURE__ */ t(
|
|
99
124
|
"div",
|
|
100
125
|
{
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
126
|
+
ref: o,
|
|
127
|
+
tabIndex: 0,
|
|
128
|
+
className: r(
|
|
129
|
+
"flex flex-1 min-w-0 overflow-x-auto overflow-y-hidden whitespace-nowrap",
|
|
130
|
+
v && "scrollbar-hide",
|
|
131
|
+
"scroll-smooth",
|
|
132
|
+
c && "h-full overscroll-x-contain outline-none"
|
|
104
133
|
),
|
|
105
|
-
style: {
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
msOverflowStyle: u ? "none" : "auto"
|
|
123
|
-
},
|
|
124
|
-
"data-component": "horizontal-scroller-viewport",
|
|
125
|
-
children: /* @__PURE__ */ i(
|
|
134
|
+
style: {
|
|
135
|
+
scrollbarWidth: v ? "none" : "auto",
|
|
136
|
+
msOverflowStyle: v ? "none" : "auto",
|
|
137
|
+
WebkitMaskImage: C,
|
|
138
|
+
maskImage: C
|
|
139
|
+
},
|
|
140
|
+
"data-component": "horizontal-scroller-viewport",
|
|
141
|
+
children: /* @__PURE__ */ h(
|
|
142
|
+
"div",
|
|
143
|
+
{
|
|
144
|
+
style: {
|
|
145
|
+
width: `${f.getTotalSize()}px`,
|
|
146
|
+
display: "flex",
|
|
147
|
+
position: "relative"
|
|
148
|
+
},
|
|
149
|
+
children: [
|
|
150
|
+
/* @__PURE__ */ t(
|
|
126
151
|
"div",
|
|
127
152
|
{
|
|
128
153
|
style: {
|
|
129
|
-
width: `${
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
},
|
|
133
|
-
children: [
|
|
134
|
-
/* @__PURE__ */ l(
|
|
135
|
-
"div",
|
|
136
|
-
{
|
|
137
|
-
style: {
|
|
138
|
-
width: `${c.getVirtualItems()[0]?.start ?? 0}px`,
|
|
139
|
-
flexShrink: 0
|
|
140
|
-
}
|
|
141
|
-
}
|
|
142
|
-
),
|
|
143
|
-
c.getVirtualItems().map((e) => /* @__PURE__ */ l(
|
|
144
|
-
"div",
|
|
145
|
-
{
|
|
146
|
-
ref: c.measureElement,
|
|
147
|
-
"data-index": e.index,
|
|
148
|
-
className: "flex-shrink-0",
|
|
149
|
-
children: R(d[e.index], e.index)
|
|
150
|
-
},
|
|
151
|
-
e.key
|
|
152
|
-
))
|
|
153
|
-
]
|
|
154
|
+
width: `${f.getVirtualItems()[0]?.start ?? 0}px`,
|
|
155
|
+
flexShrink: 0
|
|
156
|
+
}
|
|
154
157
|
}
|
|
158
|
+
),
|
|
159
|
+
f.getVirtualItems().map((e) => /* @__PURE__ */ t(
|
|
160
|
+
"div",
|
|
161
|
+
{
|
|
162
|
+
ref: f.measureElement,
|
|
163
|
+
"data-index": e.index,
|
|
164
|
+
className: "flex-shrink-0",
|
|
165
|
+
children: H(u[e.index], e.index)
|
|
166
|
+
},
|
|
167
|
+
e.key
|
|
168
|
+
))
|
|
169
|
+
]
|
|
170
|
+
}
|
|
171
|
+
)
|
|
172
|
+
}
|
|
173
|
+
);
|
|
174
|
+
return /* @__PURE__ */ t(
|
|
175
|
+
"div",
|
|
176
|
+
{
|
|
177
|
+
className: r(
|
|
178
|
+
"flex items-center gap-2 min-w-0 w-full bg-transparent",
|
|
179
|
+
c && "gap-0",
|
|
180
|
+
B
|
|
181
|
+
),
|
|
182
|
+
style: { maxWidth: W },
|
|
183
|
+
"data-component": "horizontal-scroller",
|
|
184
|
+
...V,
|
|
185
|
+
children: c ? /* @__PURE__ */ h("div", { className: "relative flex min-h-0 min-w-0 flex-1 self-stretch", children: [
|
|
186
|
+
n ? /* @__PURE__ */ t(
|
|
187
|
+
"div",
|
|
188
|
+
{
|
|
189
|
+
"aria-hidden": !0,
|
|
190
|
+
"data-component": "horizontal-scroller-fade-left",
|
|
191
|
+
className: r(
|
|
192
|
+
E,
|
|
193
|
+
"left-0 bg-gradient-to-r from-canvas-elevated from-10% via-canvas-elevated/90 via-50% to-transparent"
|
|
155
194
|
)
|
|
156
195
|
}
|
|
157
|
-
),
|
|
158
|
-
|
|
159
|
-
|
|
196
|
+
) : null,
|
|
197
|
+
a ? /* @__PURE__ */ t(
|
|
198
|
+
"div",
|
|
199
|
+
{
|
|
200
|
+
"aria-hidden": !0,
|
|
201
|
+
"data-component": "horizontal-scroller-fade-right",
|
|
202
|
+
className: r(
|
|
203
|
+
E,
|
|
204
|
+
"right-0 bg-gradient-to-l from-canvas-elevated from-10% via-canvas-elevated/90 via-50% to-transparent"
|
|
205
|
+
)
|
|
206
|
+
}
|
|
207
|
+
) : null,
|
|
208
|
+
d.left,
|
|
209
|
+
d.right,
|
|
210
|
+
R
|
|
211
|
+
] }) : /* @__PURE__ */ h($, { children: [
|
|
212
|
+
d.left,
|
|
213
|
+
R,
|
|
214
|
+
d.right
|
|
215
|
+
] })
|
|
160
216
|
}
|
|
161
217
|
);
|
|
162
218
|
}
|
|
163
|
-
const
|
|
164
|
-
|
|
219
|
+
const J = i.forwardRef(G);
|
|
220
|
+
J.displayName = "HorizontalScroller";
|
|
165
221
|
export {
|
|
166
|
-
|
|
222
|
+
J as HorizontalScroller
|
|
167
223
|
};
|
|
@@ -4,6 +4,8 @@ export interface HorizontalScrollerProps<T> extends Omit<React.HTMLAttributes<HT
|
|
|
4
4
|
renderItem: (item: T, index: number) => React.ReactNode;
|
|
5
5
|
scrollStep?: number;
|
|
6
6
|
hideScrollbar?: boolean;
|
|
7
|
+
/** Overlay edge fades + split chevrons on the viewport (dashboard carousel pattern). */
|
|
8
|
+
edgeAffordance?: boolean;
|
|
7
9
|
controlsPosition?: "left" | "right" | "split";
|
|
8
10
|
renderPrevious?: (props: {
|
|
9
11
|
onClick: () => void;
|
|
@@ -6,5 +6,7 @@ export interface ScrollOverflowAffordanceProps extends Omit<React.HTMLAttributes
|
|
|
6
6
|
hideScrollbar?: boolean;
|
|
7
7
|
viewportClassName?: string;
|
|
8
8
|
viewportDataComponent?: string;
|
|
9
|
+
/** `compact` = small circular chevrons; `default` = 32px rounded-md dashboard controls. */
|
|
10
|
+
controlSize?: "compact" | "default";
|
|
9
11
|
}
|
|
10
|
-
export declare function ScrollOverflowAffordance({ children, scrollStep, contentDependency, hideScrollbar, viewportClassName, viewportDataComponent, className, ...props }: ScrollOverflowAffordanceProps): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export declare function ScrollOverflowAffordance({ children, scrollStep, contentDependency, hideScrollbar, viewportClassName, viewportDataComponent, controlSize, className, ...props }: ScrollOverflowAffordanceProps): import("react/jsx-runtime").JSX.Element;
|