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
|
@@ -1,18 +1,19 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import * as
|
|
3
|
-
import * as
|
|
4
|
-
import * as
|
|
5
|
-
import { Slot as
|
|
6
|
-
import { useControllableState as
|
|
7
|
-
import { Checkmark as
|
|
8
|
-
import { Badge as
|
|
9
|
-
import { createComponent as
|
|
10
|
-
import { useComposedRefs as
|
|
11
|
-
import { cn as
|
|
12
|
-
import { choiceCardCheckboxIndicatorClassName as
|
|
13
|
-
import { ChoiceCardFeaturedBackdrop as
|
|
14
|
-
import {
|
|
15
|
-
|
|
1
|
+
import { jsx as r, jsxs as x } from "react/jsx-runtime";
|
|
2
|
+
import * as s from "react";
|
|
3
|
+
import * as _ from "@radix-ui/react-checkbox";
|
|
4
|
+
import * as P from "@radix-ui/react-radio-group";
|
|
5
|
+
import { Slot as F } from "@radix-ui/react-slot";
|
|
6
|
+
import { useControllableState as A } from "@radix-ui/react-use-controllable-state";
|
|
7
|
+
import { Checkmark as M } from "impact-nova-icons";
|
|
8
|
+
import { Badge as $ } from "../../data-display/badge/badge.js";
|
|
9
|
+
import { createComponent as C } from "../../../lib/primitives/create-component.js";
|
|
10
|
+
import { useComposedRefs as H } from "../../../lib/compose-refs.js";
|
|
11
|
+
import { cn as i } from "../../../lib/utils.js";
|
|
12
|
+
import { choiceCardCheckboxIndicatorClassName as q, choiceCardRadioIndicatorClassName as K } from "./choice-card-indicator.variants.js";
|
|
13
|
+
import { ChoiceCardFeaturedBackdrop as W } from "./choice-card-featured-backdrop.js";
|
|
14
|
+
import { choiceCardCompareRowsScrollAccessibility as V } from "./choice-card-compare-scroll.js";
|
|
15
|
+
import { choiceCardVariants as Z } from "./choice-card.variants.js";
|
|
16
|
+
const R = s.createContext(null), v = s.createContext({
|
|
16
17
|
value: "",
|
|
17
18
|
selected: !1,
|
|
18
19
|
type: "single",
|
|
@@ -21,337 +22,346 @@ const y = n.createContext(null), x = n.createContext({
|
|
|
21
22
|
labelIsExplicit: !1,
|
|
22
23
|
setAccessibleName: () => {
|
|
23
24
|
}
|
|
24
|
-
}),
|
|
25
|
+
}), N = s.createContext({
|
|
25
26
|
inCompare: !1,
|
|
26
27
|
rows: 0,
|
|
27
|
-
fit: "scroll"
|
|
28
|
-
|
|
29
|
-
|
|
28
|
+
fit: "scroll",
|
|
29
|
+
scrollRows: !1,
|
|
30
|
+
rowMinHeight: "3.5rem",
|
|
31
|
+
syncRowsScroll: () => {
|
|
32
|
+
}
|
|
33
|
+
});
|
|
34
|
+
function ge() {
|
|
35
|
+
return s.useContext(N);
|
|
36
|
+
}
|
|
37
|
+
const B = () => {
|
|
38
|
+
const e = s.useContext(R);
|
|
30
39
|
if (!e)
|
|
31
40
|
throw new Error("ChoiceCard components must be used within ChoiceCardGroup");
|
|
32
41
|
return e;
|
|
33
42
|
};
|
|
34
|
-
function
|
|
35
|
-
const { value: e, type:
|
|
36
|
-
return
|
|
43
|
+
function xe() {
|
|
44
|
+
const { value: e, type: o, setValue: t, isSelected: a } = B();
|
|
45
|
+
return s.useMemo(
|
|
37
46
|
() => ({
|
|
38
47
|
value: e,
|
|
39
|
-
type:
|
|
48
|
+
type: o,
|
|
40
49
|
setValue: t,
|
|
41
|
-
isSelected:
|
|
50
|
+
isSelected: a
|
|
42
51
|
}),
|
|
43
|
-
[e,
|
|
52
|
+
[e, o, t, a]
|
|
44
53
|
);
|
|
45
54
|
}
|
|
46
|
-
function
|
|
47
|
-
return
|
|
55
|
+
function we() {
|
|
56
|
+
return s.useContext(v);
|
|
48
57
|
}
|
|
49
|
-
function
|
|
58
|
+
function J({
|
|
50
59
|
selected: e,
|
|
51
|
-
disabled:
|
|
60
|
+
disabled: o,
|
|
52
61
|
mode: t,
|
|
53
|
-
size:
|
|
62
|
+
size: a,
|
|
54
63
|
variant: c,
|
|
55
|
-
className:
|
|
64
|
+
className: n
|
|
56
65
|
}) {
|
|
57
|
-
return
|
|
58
|
-
|
|
66
|
+
return i(
|
|
67
|
+
Z({
|
|
59
68
|
variant: c,
|
|
60
|
-
size:
|
|
69
|
+
size: a,
|
|
61
70
|
selected: e,
|
|
62
71
|
mode: t,
|
|
63
|
-
disabled: !!
|
|
72
|
+
disabled: !!o
|
|
64
73
|
}),
|
|
65
|
-
|
|
74
|
+
n
|
|
66
75
|
);
|
|
67
76
|
}
|
|
68
|
-
const
|
|
77
|
+
const O = ({
|
|
69
78
|
value: e,
|
|
70
|
-
defaultValue:
|
|
79
|
+
defaultValue: o = "",
|
|
71
80
|
onValueChange: t,
|
|
72
|
-
disabled:
|
|
81
|
+
disabled: a,
|
|
73
82
|
orientation: c = "horizontal",
|
|
74
|
-
wrap:
|
|
83
|
+
wrap: n = !1,
|
|
75
84
|
className: m,
|
|
76
85
|
children: h
|
|
77
86
|
}) => {
|
|
78
|
-
const [
|
|
87
|
+
const [p, u] = A({
|
|
79
88
|
prop: e,
|
|
80
|
-
defaultProp:
|
|
89
|
+
defaultProp: o,
|
|
81
90
|
onChange: t
|
|
82
|
-
}),
|
|
83
|
-
(
|
|
84
|
-
[
|
|
85
|
-
), f =
|
|
91
|
+
}), d = s.useCallback(
|
|
92
|
+
(l) => p === l,
|
|
93
|
+
[p]
|
|
94
|
+
), f = s.useMemo(
|
|
86
95
|
() => ({
|
|
87
96
|
type: "single",
|
|
88
|
-
disabled:
|
|
89
|
-
value:
|
|
90
|
-
setValue: (
|
|
91
|
-
isSelected:
|
|
92
|
-
toggle: (
|
|
97
|
+
disabled: a,
|
|
98
|
+
value: p,
|
|
99
|
+
setValue: (l) => u(l),
|
|
100
|
+
isSelected: d,
|
|
101
|
+
toggle: (l) => u(l)
|
|
93
102
|
}),
|
|
94
|
-
[
|
|
103
|
+
[a, p, u, d]
|
|
95
104
|
);
|
|
96
|
-
return /* @__PURE__ */
|
|
97
|
-
|
|
105
|
+
return /* @__PURE__ */ r(R.Provider, { value: f, children: /* @__PURE__ */ r(
|
|
106
|
+
P.Root,
|
|
98
107
|
{
|
|
99
|
-
value:
|
|
100
|
-
onValueChange:
|
|
101
|
-
disabled:
|
|
108
|
+
value: p,
|
|
109
|
+
onValueChange: u,
|
|
110
|
+
disabled: a,
|
|
102
111
|
className: m,
|
|
103
112
|
"data-component": "choice-card-group",
|
|
104
113
|
"data-type": "single",
|
|
105
|
-
"data-layout":
|
|
114
|
+
"data-layout": n ? "wrap" : c === "vertical" ? "column" : "row",
|
|
106
115
|
children: h
|
|
107
116
|
}
|
|
108
117
|
) });
|
|
109
|
-
},
|
|
118
|
+
}, Q = ({
|
|
110
119
|
value: e,
|
|
111
|
-
defaultValue:
|
|
120
|
+
defaultValue: o = [],
|
|
112
121
|
onValueChange: t,
|
|
113
|
-
disabled:
|
|
122
|
+
disabled: a,
|
|
114
123
|
orientation: c = "horizontal",
|
|
115
|
-
wrap:
|
|
124
|
+
wrap: n = !1,
|
|
116
125
|
className: m,
|
|
117
126
|
children: h
|
|
118
127
|
}) => {
|
|
119
|
-
const [
|
|
128
|
+
const [p, u] = A({
|
|
120
129
|
prop: e,
|
|
121
|
-
defaultProp:
|
|
130
|
+
defaultProp: o,
|
|
122
131
|
onChange: t
|
|
123
|
-
}),
|
|
124
|
-
(b) =>
|
|
125
|
-
[
|
|
126
|
-
),
|
|
132
|
+
}), d = s.useMemo(() => p ?? [], [p]), f = s.useCallback(
|
|
133
|
+
(b) => d.includes(b),
|
|
134
|
+
[d]
|
|
135
|
+
), l = s.useCallback(
|
|
127
136
|
(b) => {
|
|
128
|
-
if (
|
|
129
|
-
|
|
137
|
+
if (d.includes(b)) {
|
|
138
|
+
u(d.filter((w) => w !== b));
|
|
130
139
|
return;
|
|
131
140
|
}
|
|
132
|
-
|
|
141
|
+
u([...d, b]);
|
|
133
142
|
},
|
|
134
|
-
[
|
|
135
|
-
),
|
|
143
|
+
[d, u]
|
|
144
|
+
), g = s.useMemo(
|
|
136
145
|
() => ({
|
|
137
146
|
type: "multiple",
|
|
138
|
-
disabled:
|
|
139
|
-
value:
|
|
140
|
-
setValue: (b) =>
|
|
147
|
+
disabled: a,
|
|
148
|
+
value: d,
|
|
149
|
+
setValue: (b) => u(b),
|
|
141
150
|
isSelected: f,
|
|
142
|
-
toggle:
|
|
151
|
+
toggle: l
|
|
143
152
|
}),
|
|
144
|
-
[
|
|
153
|
+
[a, d, u, f, l]
|
|
145
154
|
);
|
|
146
|
-
return /* @__PURE__ */
|
|
155
|
+
return /* @__PURE__ */ r(R.Provider, { value: g, children: /* @__PURE__ */ r(
|
|
147
156
|
"div",
|
|
148
157
|
{
|
|
149
158
|
role: "group",
|
|
150
159
|
className: m,
|
|
151
160
|
"data-component": "choice-card-group",
|
|
152
161
|
"data-type": "multiple",
|
|
153
|
-
"data-layout":
|
|
162
|
+
"data-layout": n ? "wrap" : c === "vertical" ? "column" : "row",
|
|
154
163
|
children: h
|
|
155
164
|
}
|
|
156
165
|
) });
|
|
157
|
-
},
|
|
158
|
-
|
|
159
|
-
function
|
|
166
|
+
}, U = (e) => e.type === "multiple" ? /* @__PURE__ */ r(Q, { ...e }) : /* @__PURE__ */ r(O, { ...e });
|
|
167
|
+
U.displayName = "ChoiceCardGroup";
|
|
168
|
+
function G(e, o, t) {
|
|
160
169
|
if (e) {
|
|
161
|
-
|
|
170
|
+
o.preventDefault(), o.stopPropagation();
|
|
162
171
|
return;
|
|
163
172
|
}
|
|
164
|
-
t?.(
|
|
173
|
+
t?.(o);
|
|
165
174
|
}
|
|
166
|
-
function
|
|
175
|
+
function X(e) {
|
|
167
176
|
return e instanceof Element && !!e.closest(
|
|
168
177
|
'a, button, input, textarea, select, [role="button"], [data-slot="choice-card-control"]'
|
|
169
178
|
);
|
|
170
179
|
}
|
|
171
|
-
const
|
|
180
|
+
const Y = C(
|
|
172
181
|
"ChoiceCardSurface",
|
|
173
182
|
({
|
|
174
183
|
className: e,
|
|
175
|
-
selected:
|
|
184
|
+
selected: o,
|
|
176
185
|
disabled: t = !1,
|
|
177
|
-
mode:
|
|
186
|
+
mode: a,
|
|
178
187
|
size: c,
|
|
179
|
-
variant:
|
|
188
|
+
variant: n,
|
|
180
189
|
children: m,
|
|
181
190
|
onClick: h,
|
|
182
|
-
onPointerDown:
|
|
183
|
-
onKeyDown:
|
|
184
|
-
...
|
|
185
|
-
}, f) => /* @__PURE__ */
|
|
191
|
+
onPointerDown: p,
|
|
192
|
+
onKeyDown: u,
|
|
193
|
+
...d
|
|
194
|
+
}, f) => /* @__PURE__ */ r(
|
|
186
195
|
"div",
|
|
187
196
|
{
|
|
188
197
|
ref: f,
|
|
189
|
-
className:
|
|
190
|
-
selected:
|
|
198
|
+
className: J({
|
|
199
|
+
selected: o,
|
|
191
200
|
disabled: t,
|
|
192
|
-
mode:
|
|
201
|
+
mode: a,
|
|
193
202
|
size: c,
|
|
194
|
-
variant:
|
|
203
|
+
variant: n,
|
|
195
204
|
className: e
|
|
196
205
|
}),
|
|
197
206
|
"data-component": "choice-card",
|
|
198
|
-
"data-selected":
|
|
207
|
+
"data-selected": o || void 0,
|
|
199
208
|
"data-disabled": t || void 0,
|
|
200
209
|
"data-size": c,
|
|
201
|
-
"data-variant":
|
|
210
|
+
"data-variant": n,
|
|
202
211
|
"aria-disabled": t || void 0,
|
|
203
|
-
onClick: (
|
|
204
|
-
onPointerDown: (
|
|
205
|
-
onKeyDown: (
|
|
206
|
-
if (t && (
|
|
207
|
-
|
|
212
|
+
onClick: (l) => G(t, l, h),
|
|
213
|
+
onPointerDown: (l) => G(t, l, p),
|
|
214
|
+
onKeyDown: (l) => {
|
|
215
|
+
if (t && (l.key === " " || l.key === "Enter")) {
|
|
216
|
+
l.preventDefault(), l.stopPropagation();
|
|
208
217
|
return;
|
|
209
218
|
}
|
|
210
|
-
|
|
219
|
+
u?.(l);
|
|
211
220
|
},
|
|
212
|
-
...
|
|
221
|
+
...d,
|
|
213
222
|
children: m
|
|
214
223
|
}
|
|
215
224
|
)
|
|
216
|
-
),
|
|
225
|
+
), ve = C(
|
|
217
226
|
"ChoiceCard",
|
|
218
227
|
({
|
|
219
228
|
value: e,
|
|
220
|
-
className:
|
|
229
|
+
className: o,
|
|
221
230
|
children: t,
|
|
222
|
-
disabled:
|
|
231
|
+
disabled: a,
|
|
223
232
|
size: c = "md",
|
|
224
|
-
variant:
|
|
233
|
+
variant: n = "default",
|
|
225
234
|
"aria-label": m,
|
|
226
235
|
...h
|
|
227
|
-
},
|
|
228
|
-
const
|
|
229
|
-
b((
|
|
230
|
-
}, []),
|
|
236
|
+
}, p) => {
|
|
237
|
+
const u = B(), d = s.useContext(N), f = a || u.disabled, l = u.isSelected(e), [g, b] = s.useState(""), w = s.useCallback((S) => {
|
|
238
|
+
b((I) => I === S ? I : S);
|
|
239
|
+
}, []), k = !!m, y = s.useMemo(
|
|
231
240
|
() => ({
|
|
232
241
|
value: e,
|
|
233
|
-
selected:
|
|
242
|
+
selected: l,
|
|
234
243
|
disabled: f,
|
|
235
|
-
type:
|
|
244
|
+
type: u.type,
|
|
236
245
|
size: c,
|
|
237
|
-
variant:
|
|
238
|
-
labelIsExplicit:
|
|
239
|
-
setAccessibleName:
|
|
246
|
+
variant: n,
|
|
247
|
+
labelIsExplicit: k,
|
|
248
|
+
setAccessibleName: w
|
|
240
249
|
}),
|
|
241
|
-
[e,
|
|
242
|
-
), z = m ?? (
|
|
243
|
-
f ||
|
|
244
|
-
},
|
|
245
|
-
|
|
246
|
-
},
|
|
250
|
+
[e, l, f, u.type, c, n, k, w]
|
|
251
|
+
), z = m ?? (g || e), T = () => {
|
|
252
|
+
f || u.toggle(e);
|
|
253
|
+
}, D = (S) => {
|
|
254
|
+
X(S.target) || T(), h.onClick?.(S);
|
|
255
|
+
}, E = i(
|
|
247
256
|
"pointer-events-none absolute inset-0 z-0 opacity-0 outline-none",
|
|
248
|
-
|
|
249
|
-
),
|
|
250
|
-
|
|
257
|
+
d.inCompare && "[grid-column:1] [grid-row:1/-1]"
|
|
258
|
+
), L = u.type === "single" ? /* @__PURE__ */ r(
|
|
259
|
+
P.Item,
|
|
251
260
|
{
|
|
252
261
|
value: e,
|
|
253
262
|
disabled: f,
|
|
254
|
-
className:
|
|
263
|
+
className: E,
|
|
255
264
|
"data-slot": "choice-card-control",
|
|
256
265
|
"aria-label": z
|
|
257
266
|
}
|
|
258
|
-
) : /* @__PURE__ */
|
|
259
|
-
|
|
267
|
+
) : /* @__PURE__ */ r(
|
|
268
|
+
_.Root,
|
|
260
269
|
{
|
|
261
|
-
checked:
|
|
270
|
+
checked: l,
|
|
262
271
|
disabled: f,
|
|
263
|
-
onCheckedChange:
|
|
264
|
-
className:
|
|
272
|
+
onCheckedChange: T,
|
|
273
|
+
className: E,
|
|
265
274
|
"data-slot": "choice-card-control",
|
|
266
275
|
"aria-label": z
|
|
267
276
|
}
|
|
268
277
|
);
|
|
269
|
-
return /* @__PURE__ */
|
|
270
|
-
|
|
278
|
+
return /* @__PURE__ */ r(v.Provider, { value: y, children: /* @__PURE__ */ x(
|
|
279
|
+
Y,
|
|
271
280
|
{
|
|
272
|
-
ref:
|
|
273
|
-
selected:
|
|
281
|
+
ref: p,
|
|
282
|
+
selected: l,
|
|
274
283
|
disabled: f,
|
|
275
|
-
mode:
|
|
284
|
+
mode: u.type,
|
|
276
285
|
size: c,
|
|
277
|
-
variant:
|
|
278
|
-
className:
|
|
279
|
-
|
|
280
|
-
u.inCompare && l(
|
|
286
|
+
variant: n,
|
|
287
|
+
className: i(
|
|
288
|
+
d.inCompare && i(
|
|
281
289
|
"isolate grid w-full grid-rows-subgrid [grid-row:1/-1] gap-0",
|
|
282
|
-
|
|
283
|
-
|
|
290
|
+
d.fit === "auto" && "min-w-0 max-w-[420px]",
|
|
291
|
+
d.fit === "fill" && "min-w-[17rem] w-full max-w-none",
|
|
292
|
+
d.fit === "scroll" && "w-[411px] min-w-[411px] max-w-[411px]"
|
|
293
|
+
),
|
|
294
|
+
o
|
|
284
295
|
),
|
|
285
296
|
...h,
|
|
286
|
-
onClick:
|
|
297
|
+
onClick: D,
|
|
287
298
|
children: [
|
|
288
|
-
|
|
289
|
-
|
|
299
|
+
L,
|
|
300
|
+
n === "featured" ? /* @__PURE__ */ r(W, {}) : null,
|
|
290
301
|
t
|
|
291
302
|
]
|
|
292
303
|
}
|
|
293
304
|
) });
|
|
294
305
|
}
|
|
295
|
-
),
|
|
296
|
-
|
|
297
|
-
(
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
), be = p(
|
|
306
|
+
), Ne = C("ChoiceCardIndicator", ({ className: e, shape: o }, t) => {
|
|
307
|
+
const { selected: a, type: c, disabled: n } = s.useContext(v);
|
|
308
|
+
return (o ?? (c === "multiple" ? "checkbox" : "radio")) === "checkbox" ? /* @__PURE__ */ r(
|
|
309
|
+
"span",
|
|
310
|
+
{
|
|
311
|
+
ref: t,
|
|
312
|
+
className: i(
|
|
313
|
+
q,
|
|
314
|
+
a && !n && "border-brand bg-accent text-brand",
|
|
315
|
+
a && n && "border-stroke-field bg-disabled-surface text-content-secondary",
|
|
316
|
+
!a && n && "border-stroke bg-disabled-surface text-disabled-foreground",
|
|
317
|
+
e
|
|
318
|
+
),
|
|
319
|
+
"data-slot": "choice-card-indicator",
|
|
320
|
+
"data-state": a ? "checked" : "unchecked",
|
|
321
|
+
"aria-hidden": "true",
|
|
322
|
+
children: a ? /* @__PURE__ */ r(M, { className: "h-3.5 w-3.5" }) : null
|
|
323
|
+
}
|
|
324
|
+
) : /* @__PURE__ */ r(
|
|
325
|
+
"span",
|
|
326
|
+
{
|
|
327
|
+
ref: t,
|
|
328
|
+
className: i(
|
|
329
|
+
K,
|
|
330
|
+
a && !n && "ring-brand",
|
|
331
|
+
a && n && "bg-disabled-surface text-stroke-field ring-stroke-field",
|
|
332
|
+
!a && n && "bg-disabled-surface ring-stroke",
|
|
333
|
+
e
|
|
334
|
+
),
|
|
335
|
+
"data-slot": "choice-card-indicator",
|
|
336
|
+
"aria-hidden": "true",
|
|
337
|
+
children: a ? /* @__PURE__ */ r("span", { className: "absolute inset-[3px] rounded-full bg-current" }) : null
|
|
338
|
+
}
|
|
339
|
+
);
|
|
340
|
+
}), ke = C(
|
|
331
341
|
"ChoiceCardBackground",
|
|
332
|
-
({ className: e, children:
|
|
342
|
+
({ className: e, children: o, ...t }, a) => /* @__PURE__ */ r(
|
|
333
343
|
"div",
|
|
334
344
|
{
|
|
335
|
-
ref:
|
|
336
|
-
className:
|
|
345
|
+
ref: a,
|
|
346
|
+
className: i("pointer-events-none absolute inset-0 overflow-hidden", e),
|
|
337
347
|
"data-slot": "choice-card-background",
|
|
338
348
|
"aria-hidden": "true",
|
|
339
349
|
...t,
|
|
340
|
-
children:
|
|
350
|
+
children: o
|
|
341
351
|
}
|
|
342
352
|
)
|
|
343
353
|
);
|
|
344
|
-
function
|
|
345
|
-
return /* @__PURE__ */
|
|
354
|
+
function ee({ className: e }) {
|
|
355
|
+
return /* @__PURE__ */ r(
|
|
346
356
|
"svg",
|
|
347
357
|
{
|
|
348
358
|
width: 28,
|
|
349
359
|
height: 32,
|
|
350
360
|
viewBox: "0 0 28 32",
|
|
351
|
-
className:
|
|
361
|
+
className: i("relative z-0 block h-8 w-7 shrink-0", e),
|
|
352
362
|
"data-slot": "choice-card-ribbon-wedge",
|
|
353
363
|
"aria-hidden": "true",
|
|
354
|
-
children: /* @__PURE__ */
|
|
364
|
+
children: /* @__PURE__ */ r(
|
|
355
365
|
"path",
|
|
356
366
|
{
|
|
357
367
|
d: "M11 16 0 0h28v32H0l11-16Z",
|
|
@@ -361,69 +371,69 @@ function X({ className: e }) {
|
|
|
361
371
|
}
|
|
362
372
|
);
|
|
363
373
|
}
|
|
364
|
-
const
|
|
374
|
+
const ye = C(
|
|
365
375
|
"ChoiceCardRibbon",
|
|
366
|
-
({ className: e, children:
|
|
376
|
+
({ className: e, children: o, ...t }, a) => /* @__PURE__ */ x(
|
|
367
377
|
"div",
|
|
368
378
|
{
|
|
369
|
-
ref:
|
|
370
|
-
className:
|
|
379
|
+
ref: a,
|
|
380
|
+
className: i("pointer-events-none absolute bottom-0 right-0 flex h-8 items-stretch", e),
|
|
371
381
|
"data-slot": "choice-card-ribbon",
|
|
372
382
|
...t,
|
|
373
383
|
children: [
|
|
374
|
-
/* @__PURE__ */
|
|
375
|
-
/* @__PURE__ */
|
|
384
|
+
/* @__PURE__ */ r(ee, {}),
|
|
385
|
+
/* @__PURE__ */ r(
|
|
376
386
|
"div",
|
|
377
387
|
{
|
|
378
|
-
className:
|
|
388
|
+
className: i(
|
|
379
389
|
// Start fill at the chevron tip (28 − 11) so no empty purple band sits before the label
|
|
380
390
|
"relative z-[1] -ms-[17px] flex h-8 items-center rounded-br-xl pe-2 ps-1",
|
|
381
391
|
"bg-[linear-gradient(90deg,var(--color-choice-card-ribbon-from)_0%,var(--color-choice-card-ribbon-to)_100%)]"
|
|
382
392
|
),
|
|
383
393
|
"data-slot": "choice-card-ribbon-fill",
|
|
384
|
-
children: /* @__PURE__ */
|
|
394
|
+
children: /* @__PURE__ */ r("span", { className: "text-xs font-bold leading-5 text-content capitalize whitespace-nowrap", children: o })
|
|
385
395
|
}
|
|
386
396
|
)
|
|
387
397
|
]
|
|
388
398
|
}
|
|
389
399
|
)
|
|
390
|
-
),
|
|
400
|
+
), Se = C(
|
|
391
401
|
"ChoiceCardFooter",
|
|
392
|
-
({ className: e, children:
|
|
393
|
-
const c =
|
|
394
|
-
return /* @__PURE__ */
|
|
402
|
+
({ className: e, children: o, ...t }, a) => {
|
|
403
|
+
const c = s.useContext(N);
|
|
404
|
+
return /* @__PURE__ */ r(
|
|
395
405
|
"div",
|
|
396
406
|
{
|
|
397
|
-
ref:
|
|
398
|
-
className:
|
|
407
|
+
ref: a,
|
|
408
|
+
className: i(
|
|
399
409
|
"flex flex-wrap items-start gap-2",
|
|
400
410
|
c.inCompare && "[grid-row:-1] self-end pt-4",
|
|
401
411
|
e
|
|
402
412
|
),
|
|
403
413
|
"data-slot": "choice-card-footer",
|
|
404
414
|
...t,
|
|
405
|
-
children:
|
|
415
|
+
children: o
|
|
406
416
|
}
|
|
407
417
|
);
|
|
408
418
|
}
|
|
409
|
-
),
|
|
419
|
+
), Re = C(
|
|
410
420
|
"ChoiceCardContent",
|
|
411
|
-
({ className: e, children:
|
|
412
|
-
const { variant: c } =
|
|
413
|
-
return
|
|
421
|
+
({ className: e, children: o, ...t }, a) => {
|
|
422
|
+
const { variant: c } = s.useContext(v);
|
|
423
|
+
return s.useContext(N).inCompare ? /* @__PURE__ */ r(
|
|
414
424
|
"div",
|
|
415
425
|
{
|
|
416
|
-
ref:
|
|
417
|
-
className:
|
|
426
|
+
ref: a,
|
|
427
|
+
className: i("contents", e),
|
|
418
428
|
"data-slot": "choice-card-content",
|
|
419
429
|
...t,
|
|
420
|
-
children:
|
|
430
|
+
children: o
|
|
421
431
|
}
|
|
422
|
-
) : /* @__PURE__ */
|
|
432
|
+
) : /* @__PURE__ */ r(
|
|
423
433
|
"div",
|
|
424
434
|
{
|
|
425
|
-
ref:
|
|
426
|
-
className:
|
|
435
|
+
ref: a,
|
|
436
|
+
className: i(
|
|
427
437
|
"relative z-[1] flex min-w-0 flex-1 flex-col items-start gap-1",
|
|
428
438
|
c === "featured" && "w-full flex-none gap-2 p-3",
|
|
429
439
|
c === "compare" && "w-full flex-none gap-4",
|
|
@@ -431,220 +441,269 @@ const ge = p(
|
|
|
431
441
|
),
|
|
432
442
|
"data-slot": "choice-card-content",
|
|
433
443
|
...t,
|
|
434
|
-
children:
|
|
444
|
+
children: o
|
|
435
445
|
}
|
|
436
446
|
);
|
|
437
447
|
}
|
|
438
|
-
),
|
|
448
|
+
), ze = C("ChoiceCardMedia", ({ className: e, children: o, ...t }, a) => /* @__PURE__ */ r(
|
|
439
449
|
"div",
|
|
440
450
|
{
|
|
441
|
-
ref:
|
|
442
|
-
className:
|
|
451
|
+
ref: a,
|
|
452
|
+
className: i("flex shrink-0 items-center justify-center", e),
|
|
443
453
|
"data-slot": "choice-card-media",
|
|
444
454
|
...t,
|
|
445
|
-
children:
|
|
455
|
+
children: o
|
|
446
456
|
}
|
|
447
|
-
)),
|
|
448
|
-
const { selected: c, disabled:
|
|
449
|
-
return
|
|
450
|
-
if (
|
|
451
|
-
const
|
|
452
|
-
|
|
453
|
-
}, [
|
|
457
|
+
)), Te = C("ChoiceCardTitle", ({ className: e, children: o, ...t }, a) => {
|
|
458
|
+
const { selected: c, disabled: n, size: m, variant: h, labelIsExplicit: p, setAccessibleName: u } = s.useContext(v), d = s.useRef(null), f = H(a, d);
|
|
459
|
+
return s.useLayoutEffect(() => {
|
|
460
|
+
if (p) return;
|
|
461
|
+
const l = d.current?.textContent?.trim();
|
|
462
|
+
l && u(l);
|
|
463
|
+
}, [o, p, u]), /* @__PURE__ */ r(
|
|
454
464
|
"h3",
|
|
455
465
|
{
|
|
456
466
|
ref: f,
|
|
457
|
-
className:
|
|
467
|
+
className: i(
|
|
458
468
|
"capitalize text-content",
|
|
459
469
|
m === "sm" ? "text-sm font-semibold leading-6" : "text-base font-bold leading-6",
|
|
460
470
|
(h === "featured" || h === "compare") && "text-base font-semibold leading-6",
|
|
461
|
-
|
|
471
|
+
n && !c && "text-content-secondary",
|
|
462
472
|
e
|
|
463
473
|
),
|
|
464
474
|
...t,
|
|
465
|
-
children:
|
|
475
|
+
children: o
|
|
466
476
|
}
|
|
467
477
|
);
|
|
468
|
-
}),
|
|
478
|
+
}), Ee = C(
|
|
469
479
|
"ChoiceCardHeader",
|
|
470
|
-
({ className: e, children:
|
|
471
|
-
const c =
|
|
472
|
-
return /* @__PURE__ */
|
|
480
|
+
({ className: e, children: o, ...t }, a) => {
|
|
481
|
+
const c = s.useContext(N);
|
|
482
|
+
return /* @__PURE__ */ r(
|
|
473
483
|
"div",
|
|
474
484
|
{
|
|
475
|
-
ref:
|
|
476
|
-
className:
|
|
485
|
+
ref: a,
|
|
486
|
+
className: i(
|
|
477
487
|
"flex w-full items-center gap-2",
|
|
478
488
|
c.inCompare && "[grid-row:1] min-w-0 overflow-hidden",
|
|
479
489
|
e
|
|
480
490
|
),
|
|
481
491
|
"data-slot": "choice-card-header",
|
|
482
492
|
...t,
|
|
483
|
-
children:
|
|
493
|
+
children: o
|
|
484
494
|
}
|
|
485
495
|
);
|
|
486
496
|
}
|
|
487
|
-
),
|
|
488
|
-
const { selected: c, disabled:
|
|
489
|
-
return /* @__PURE__ */
|
|
497
|
+
), Ie = C("ChoiceCardDescription", ({ className: e, children: o, ...t }, a) => {
|
|
498
|
+
const { selected: c, disabled: n, variant: m } = s.useContext(v);
|
|
499
|
+
return /* @__PURE__ */ r(
|
|
490
500
|
"p",
|
|
491
501
|
{
|
|
492
|
-
ref:
|
|
493
|
-
className:
|
|
502
|
+
ref: a,
|
|
503
|
+
className: i(
|
|
494
504
|
"text-xs font-medium leading-4 text-content-secondary",
|
|
495
505
|
m === "featured" && "leading-[18px]",
|
|
496
506
|
m === "compare" && "capitalize font-bold leading-5 text-content-icon",
|
|
497
|
-
|
|
507
|
+
n && !c && m !== "featured" && "text-content-muted",
|
|
498
508
|
e
|
|
499
509
|
),
|
|
500
510
|
...t,
|
|
501
|
-
children:
|
|
511
|
+
children: o
|
|
502
512
|
}
|
|
503
513
|
);
|
|
504
|
-
}),
|
|
514
|
+
}), Ge = C(
|
|
505
515
|
"ChoiceCardStatus",
|
|
506
516
|
({
|
|
507
517
|
className: e,
|
|
508
|
-
asChild:
|
|
518
|
+
asChild: o = !1,
|
|
509
519
|
placement: t = "start",
|
|
510
|
-
icon:
|
|
520
|
+
icon: a,
|
|
511
521
|
children: c = "Selected",
|
|
512
|
-
...
|
|
522
|
+
...n
|
|
513
523
|
}, m) => {
|
|
514
|
-
const { selected: h } =
|
|
515
|
-
return h ? /* @__PURE__ */
|
|
516
|
-
|
|
524
|
+
const { selected: h } = s.useContext(v);
|
|
525
|
+
return h ? /* @__PURE__ */ r(
|
|
526
|
+
o ? F : "div",
|
|
517
527
|
{
|
|
518
528
|
ref: m,
|
|
519
529
|
"data-slot": "choice-card-status",
|
|
520
530
|
"data-placement": t,
|
|
521
|
-
className:
|
|
531
|
+
className: i(
|
|
522
532
|
"pointer-events-none absolute z-10 -top-4",
|
|
523
533
|
t === "center" ? "left-1/2 -translate-x-1/2" : "start-3",
|
|
524
534
|
e
|
|
525
535
|
),
|
|
526
|
-
...
|
|
527
|
-
children:
|
|
536
|
+
...n,
|
|
537
|
+
children: o ? c : /* @__PURE__ */ r($, { variant: "solid", color: "success", size: "md", icon: a ?? /* @__PURE__ */ r(M, { className: "size-4" }), children: c })
|
|
528
538
|
}
|
|
529
539
|
) : null;
|
|
530
540
|
}
|
|
531
|
-
),
|
|
541
|
+
), Pe = C(
|
|
532
542
|
"ChoiceCardIndex",
|
|
533
|
-
({ className: e, children:
|
|
543
|
+
({ className: e, children: o, ...t }, a) => /* @__PURE__ */ r(
|
|
534
544
|
"span",
|
|
535
545
|
{
|
|
536
|
-
ref:
|
|
546
|
+
ref: a,
|
|
537
547
|
"data-slot": "choice-card-index",
|
|
538
|
-
className:
|
|
548
|
+
className: i(
|
|
539
549
|
"inline-flex size-[22px] shrink-0 items-center justify-center rounded-md bg-content-icon text-[12px] font-bold leading-none tracking-[-0.12px] text-brand-foreground group-data-[selected]:bg-success",
|
|
540
550
|
e
|
|
541
551
|
),
|
|
542
552
|
...t,
|
|
543
|
-
children:
|
|
553
|
+
children: o
|
|
544
554
|
}
|
|
545
555
|
)
|
|
546
|
-
),
|
|
556
|
+
), Ae = C(
|
|
547
557
|
"ChoiceCardStats",
|
|
548
|
-
({ className: e, children:
|
|
549
|
-
const c =
|
|
550
|
-
return /* @__PURE__ */
|
|
558
|
+
({ className: e, children: o, ...t }, a) => {
|
|
559
|
+
const c = s.Children.toArray(o);
|
|
560
|
+
return /* @__PURE__ */ r(
|
|
551
561
|
"div",
|
|
552
562
|
{
|
|
553
|
-
ref:
|
|
563
|
+
ref: a,
|
|
554
564
|
"data-slot": "choice-card-stats",
|
|
555
|
-
className:
|
|
565
|
+
className: i(
|
|
556
566
|
"flex h-[46px] w-full items-center rounded-lg bg-canvas-muted",
|
|
557
567
|
e
|
|
558
568
|
),
|
|
559
569
|
...t,
|
|
560
|
-
children: c.map((
|
|
561
|
-
m > 0 ? /* @__PURE__ */
|
|
562
|
-
|
|
570
|
+
children: c.map((n, m) => /* @__PURE__ */ x(s.Fragment, { children: [
|
|
571
|
+
m > 0 ? /* @__PURE__ */ r("div", { className: "h-3 w-px shrink-0 bg-stroke-field", "aria-hidden": "true" }) : null,
|
|
572
|
+
n
|
|
563
573
|
] }, m))
|
|
564
574
|
}
|
|
565
575
|
);
|
|
566
576
|
}
|
|
567
|
-
),
|
|
577
|
+
), Me = C(
|
|
568
578
|
"ChoiceCardStat",
|
|
569
|
-
({ className: e, value:
|
|
579
|
+
({ className: e, value: o, label: t, ...a }, c) => /* @__PURE__ */ x(
|
|
570
580
|
"div",
|
|
571
581
|
{
|
|
572
582
|
ref: c,
|
|
573
583
|
"data-slot": "choice-card-stat",
|
|
574
|
-
className:
|
|
584
|
+
className: i(
|
|
575
585
|
"flex min-w-0 flex-1 flex-col items-center gap-0.5 p-1",
|
|
576
586
|
e
|
|
577
587
|
),
|
|
578
|
-
...
|
|
588
|
+
...a,
|
|
579
589
|
children: [
|
|
580
|
-
/* @__PURE__ */
|
|
581
|
-
/* @__PURE__ */
|
|
590
|
+
/* @__PURE__ */ r("p", { className: "text-sm font-medium leading-5 text-content-secondary", children: o }),
|
|
591
|
+
/* @__PURE__ */ r("p", { className: "text-xs font-medium leading-4 text-content-heading capitalize", children: t })
|
|
582
592
|
]
|
|
583
593
|
}
|
|
584
594
|
)
|
|
585
595
|
);
|
|
586
|
-
function
|
|
596
|
+
function te(e) {
|
|
597
|
+
return e === "auto" ? "minmax(0, 420px)" : e === "fill" ? "minmax(17rem, 1fr)" : "411px";
|
|
598
|
+
}
|
|
599
|
+
function oe(e) {
|
|
600
|
+
return e === "fill" ? "3.9375rem" : "1rem";
|
|
601
|
+
}
|
|
602
|
+
function ae(e, o) {
|
|
587
603
|
if (e <= 0) return "max-content";
|
|
588
|
-
const t =
|
|
604
|
+
const t = te(o), a = oe(o);
|
|
589
605
|
return `max-content ${Array.from(
|
|
590
606
|
{ length: e },
|
|
591
|
-
(
|
|
607
|
+
(n, m) => m === 0 ? t : `${a} ${t}`
|
|
592
608
|
).join(" ")}`;
|
|
593
609
|
}
|
|
594
|
-
|
|
595
|
-
|
|
610
|
+
const j = "h-full min-h-0 self-stretch overflow-y-auto [grid-row:3] [scrollbar-width:none] [&::-webkit-scrollbar]:hidden";
|
|
611
|
+
function re({
|
|
612
|
+
rows: e,
|
|
613
|
+
fit: o,
|
|
614
|
+
scrollRows: t,
|
|
615
|
+
rowMinHeight: a,
|
|
616
|
+
onRowsScroll: c
|
|
617
|
+
}) {
|
|
618
|
+
const n = o === "fill" ? "w-[63px]" : "w-4";
|
|
619
|
+
return t ? /* @__PURE__ */ x(
|
|
596
620
|
"div",
|
|
597
621
|
{
|
|
598
622
|
"data-slot": "choice-card-compare-gutter",
|
|
599
|
-
className: "grid
|
|
623
|
+
className: i("grid grid-rows-subgrid [grid-row:1/-1]", n),
|
|
600
624
|
"aria-hidden": "true",
|
|
601
625
|
children: [
|
|
602
|
-
/* @__PURE__ */
|
|
603
|
-
/* @__PURE__ */
|
|
604
|
-
|
|
626
|
+
/* @__PURE__ */ r("span", { className: "[grid-row:1]" }),
|
|
627
|
+
/* @__PURE__ */ r("span", { className: "[grid-row:2]" }),
|
|
628
|
+
/* @__PURE__ */ r(
|
|
629
|
+
"div",
|
|
630
|
+
{
|
|
631
|
+
"data-slot": "choice-card-compare-rows",
|
|
632
|
+
className: j,
|
|
633
|
+
onScroll: c,
|
|
634
|
+
...V,
|
|
635
|
+
children: Array.from({ length: e }, (m, h) => /* @__PURE__ */ r("span", { className: "flex items-center", style: { height: a }, children: /* @__PURE__ */ r("span", { className: "h-px w-full border-t border-dotted border-stroke-accent" }) }, h))
|
|
636
|
+
}
|
|
637
|
+
),
|
|
638
|
+
/* @__PURE__ */ r("span", { className: "[grid-row:-1]" })
|
|
639
|
+
]
|
|
640
|
+
}
|
|
641
|
+
) : /* @__PURE__ */ x(
|
|
642
|
+
"div",
|
|
643
|
+
{
|
|
644
|
+
"data-slot": "choice-card-compare-gutter",
|
|
645
|
+
className: i("grid grid-rows-subgrid [grid-row:1/-1]", n),
|
|
646
|
+
"aria-hidden": "true",
|
|
647
|
+
children: [
|
|
648
|
+
/* @__PURE__ */ r("span", { className: "[grid-row:1]" }),
|
|
649
|
+
/* @__PURE__ */ r("span", { className: "[grid-row:2]" }),
|
|
650
|
+
Array.from({ length: e }, (m, h) => /* @__PURE__ */ r(
|
|
605
651
|
"span",
|
|
606
652
|
{
|
|
607
|
-
className: "w-full self-center border-t border-
|
|
653
|
+
className: "relative z-0 h-px w-full self-center border-t border-dotted border-stroke-accent",
|
|
654
|
+
style: { gridRow: h + 3 }
|
|
608
655
|
},
|
|
609
|
-
|
|
656
|
+
h
|
|
610
657
|
)),
|
|
611
|
-
/* @__PURE__ */
|
|
658
|
+
/* @__PURE__ */ r("span", { className: "[grid-row:-1]" })
|
|
612
659
|
]
|
|
613
660
|
}
|
|
614
661
|
);
|
|
615
662
|
}
|
|
616
|
-
const
|
|
663
|
+
const ce = C(
|
|
617
664
|
"ChoiceCardCompareLabels",
|
|
618
|
-
({ className: e, children:
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
"
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
665
|
+
({ className: e, children: o, ...t }, a) => {
|
|
666
|
+
const c = s.useContext(N);
|
|
667
|
+
return /* @__PURE__ */ x(
|
|
668
|
+
"div",
|
|
669
|
+
{
|
|
670
|
+
ref: a,
|
|
671
|
+
"data-slot": "choice-card-compare-labels",
|
|
672
|
+
className: i(
|
|
673
|
+
"sticky start-0 z-20 grid grid-rows-subgrid items-center justify-items-end bg-canvas [grid-row:1/-1]",
|
|
674
|
+
e
|
|
675
|
+
),
|
|
676
|
+
...t,
|
|
677
|
+
children: [
|
|
678
|
+
/* @__PURE__ */ r("span", { className: "[grid-row:1]", "aria-hidden": "true" }),
|
|
679
|
+
/* @__PURE__ */ r("span", { className: "[grid-row:2]", "aria-hidden": "true" }),
|
|
680
|
+
c.scrollRows ? /* @__PURE__ */ r(
|
|
681
|
+
"div",
|
|
682
|
+
{
|
|
683
|
+
"data-slot": "choice-card-compare-rows",
|
|
684
|
+
className: j,
|
|
685
|
+
onScroll: c.syncRowsScroll,
|
|
686
|
+
...V,
|
|
687
|
+
children: o
|
|
688
|
+
}
|
|
689
|
+
) : o,
|
|
690
|
+
/* @__PURE__ */ r("span", { className: "[grid-row:-1]", "aria-hidden": "true" })
|
|
691
|
+
]
|
|
692
|
+
}
|
|
693
|
+
);
|
|
694
|
+
}
|
|
695
|
+
), Ve = C(
|
|
637
696
|
"ChoiceCardCompareLabel",
|
|
638
|
-
({ className: e, children:
|
|
697
|
+
({ className: e, children: o, ...t }, a) => /* @__PURE__ */ x(
|
|
639
698
|
"div",
|
|
640
699
|
{
|
|
641
|
-
ref:
|
|
700
|
+
ref: a,
|
|
642
701
|
"data-slot": "choice-card-compare-label",
|
|
643
|
-
className:
|
|
702
|
+
className: i("flex items-center self-center", e),
|
|
644
703
|
...t,
|
|
645
704
|
children: [
|
|
646
|
-
/* @__PURE__ */
|
|
647
|
-
/* @__PURE__ */
|
|
705
|
+
/* @__PURE__ */ r("span", { className: "rounded-full border border-canvas-accordion bg-accent px-2 py-1 text-sm font-medium leading-[21px] text-accent-foreground capitalize whitespace-nowrap", children: o }),
|
|
706
|
+
/* @__PURE__ */ r(
|
|
648
707
|
"span",
|
|
649
708
|
{
|
|
650
709
|
className: "w-[18px] shrink-0 border-t border-dashed border-canvas-accordion",
|
|
@@ -654,96 +713,126 @@ const te = p(
|
|
|
654
713
|
]
|
|
655
714
|
}
|
|
656
715
|
)
|
|
657
|
-
),
|
|
716
|
+
), Be = C(
|
|
658
717
|
"ChoiceCardCompareLead",
|
|
659
|
-
({ className: e, ...
|
|
718
|
+
({ className: e, ...o }, t) => /* @__PURE__ */ r(
|
|
660
719
|
"div",
|
|
661
720
|
{
|
|
662
721
|
ref: t,
|
|
663
722
|
"data-slot": "choice-card-compare-lead",
|
|
664
|
-
className:
|
|
665
|
-
...
|
|
723
|
+
className: i("[grid-row:2] min-h-4 min-w-0", e),
|
|
724
|
+
...o
|
|
666
725
|
}
|
|
667
726
|
)
|
|
668
|
-
),
|
|
727
|
+
), je = C(
|
|
669
728
|
"ChoiceCardCompareRow",
|
|
670
|
-
({ className: e, ...
|
|
729
|
+
({ className: e, ...o }, t) => /* @__PURE__ */ r(
|
|
671
730
|
"div",
|
|
672
731
|
{
|
|
673
732
|
ref: t,
|
|
674
733
|
"data-slot": "choice-card-compare-row",
|
|
675
|
-
className:
|
|
676
|
-
...
|
|
734
|
+
className: i("flex w-full min-w-0 items-center justify-center self-stretch", e),
|
|
735
|
+
...o
|
|
677
736
|
}
|
|
678
737
|
)
|
|
679
|
-
),
|
|
738
|
+
), De = C(
|
|
680
739
|
"ChoiceCardCompare",
|
|
681
|
-
({ className: e, children:
|
|
682
|
-
const
|
|
683
|
-
(
|
|
684
|
-
),
|
|
685
|
-
|
|
686
|
-
) : 0
|
|
687
|
-
|
|
688
|
-
|
|
740
|
+
({ className: e, children: o, fit: t = "scroll", rowMinHeight: a = "3.5rem", scrollRows: c = !1, ...n }, m) => {
|
|
741
|
+
const h = s.Children.toArray(o), p = h.find(
|
|
742
|
+
(g) => s.isValidElement(g) && g.type === ce
|
|
743
|
+
), u = h.filter((g) => g !== p), d = s.isValidElement(p) && p.props ? s.Children.count(
|
|
744
|
+
p.props.children
|
|
745
|
+
) : 0, f = (g) => {
|
|
746
|
+
const b = g.currentTarget, w = b.closest("[data-slot=choice-card-compare]");
|
|
747
|
+
if (!(w instanceof HTMLElement)) return;
|
|
748
|
+
const k = b.scrollTop;
|
|
749
|
+
w.querySelectorAll(
|
|
750
|
+
"[data-slot=choice-card-compare-rows]"
|
|
751
|
+
).forEach((y) => {
|
|
752
|
+
y !== b && y.scrollTop !== k && (y.scrollTop = k);
|
|
753
|
+
});
|
|
754
|
+
}, l = c ? "auto auto minmax(0, 1fr) auto" : `auto auto repeat(${Math.max(d, 1)}, minmax(${a}, auto)) auto`;
|
|
755
|
+
return /* @__PURE__ */ r(
|
|
756
|
+
N.Provider,
|
|
689
757
|
{
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
"data-fit": t,
|
|
693
|
-
className: l(
|
|
694
|
-
"w-full min-w-0 overscroll-x-contain pt-5 pb-2",
|
|
695
|
-
t === "auto" ? "overflow-x-auto" : "overflow-x-scroll",
|
|
696
|
-
"[scrollbar-width:thin] [scrollbar-color:var(--color-stroke)_transparent]",
|
|
697
|
-
"[&::-webkit-scrollbar]:h-2 [&::-webkit-scrollbar-thumb]:rounded-full [&::-webkit-scrollbar-thumb]:bg-stroke",
|
|
698
|
-
e
|
|
699
|
-
),
|
|
700
|
-
...r,
|
|
701
|
-
children: /* @__PURE__ */ g(
|
|
758
|
+
value: { inCompare: !0, rows: d, fit: t, scrollRows: c, rowMinHeight: a, syncRowsScroll: f },
|
|
759
|
+
children: /* @__PURE__ */ r(
|
|
702
760
|
"div",
|
|
703
761
|
{
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
762
|
+
ref: m,
|
|
763
|
+
"data-slot": "choice-card-compare",
|
|
764
|
+
"data-fit": t,
|
|
765
|
+
"data-scroll-rows": c ? "true" : void 0,
|
|
766
|
+
className: i(
|
|
767
|
+
"min-w-0 overscroll-x-contain pt-5 pb-2",
|
|
768
|
+
c ? "h-full w-max min-w-full overflow-visible" : i(
|
|
769
|
+
"w-full",
|
|
770
|
+
t === "fill" ? "overflow-auto" : t === "auto" ? "overflow-x-auto" : "overflow-x-scroll",
|
|
771
|
+
"[scrollbar-width:thin] [scrollbar-color:var(--color-stroke)_transparent]",
|
|
772
|
+
"[&::-webkit-scrollbar]:h-2 [&::-webkit-scrollbar-thumb]:rounded-full [&::-webkit-scrollbar-thumb]:bg-stroke"
|
|
773
|
+
),
|
|
774
|
+
e
|
|
707
775
|
),
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
776
|
+
...n,
|
|
777
|
+
children: /* @__PURE__ */ x(
|
|
778
|
+
"div",
|
|
779
|
+
{
|
|
780
|
+
className: i(
|
|
781
|
+
"grid grid-flow-col items-stretch",
|
|
782
|
+
c ? "h-full min-h-0 w-max min-w-full" : "w-full",
|
|
783
|
+
!c && (t === "scroll" ? "min-w-max" : "min-w-0")
|
|
784
|
+
),
|
|
785
|
+
style: {
|
|
786
|
+
gridTemplateColumns: ae(u.length, t),
|
|
787
|
+
gridTemplateRows: l
|
|
788
|
+
},
|
|
789
|
+
children: [
|
|
790
|
+
p,
|
|
791
|
+
u.map((g, b) => /* @__PURE__ */ x(s.Fragment, { children: [
|
|
792
|
+
b > 0 && d > 0 ? /* @__PURE__ */ r(
|
|
793
|
+
re,
|
|
794
|
+
{
|
|
795
|
+
rows: d,
|
|
796
|
+
fit: t,
|
|
797
|
+
scrollRows: c,
|
|
798
|
+
rowMinHeight: a,
|
|
799
|
+
onRowsScroll: f
|
|
800
|
+
}
|
|
801
|
+
) : null,
|
|
802
|
+
g
|
|
803
|
+
] }, b))
|
|
804
|
+
]
|
|
805
|
+
}
|
|
806
|
+
)
|
|
719
807
|
}
|
|
720
808
|
)
|
|
721
809
|
}
|
|
722
|
-
)
|
|
810
|
+
);
|
|
723
811
|
}
|
|
724
812
|
);
|
|
725
813
|
export {
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
814
|
+
ve as ChoiceCard,
|
|
815
|
+
ke as ChoiceCardBackground,
|
|
816
|
+
De as ChoiceCardCompare,
|
|
817
|
+
Ve as ChoiceCardCompareLabel,
|
|
818
|
+
ce as ChoiceCardCompareLabels,
|
|
819
|
+
Be as ChoiceCardCompareLead,
|
|
820
|
+
je as ChoiceCardCompareRow,
|
|
821
|
+
Re as ChoiceCardContent,
|
|
822
|
+
Ie as ChoiceCardDescription,
|
|
823
|
+
W as ChoiceCardFeaturedBackdrop,
|
|
824
|
+
Se as ChoiceCardFooter,
|
|
825
|
+
U as ChoiceCardGroup,
|
|
826
|
+
Ee as ChoiceCardHeader,
|
|
827
|
+
Pe as ChoiceCardIndex,
|
|
828
|
+
Ne as ChoiceCardIndicator,
|
|
829
|
+
ze as ChoiceCardMedia,
|
|
830
|
+
ye as ChoiceCardRibbon,
|
|
831
|
+
Me as ChoiceCardStat,
|
|
832
|
+
Ae as ChoiceCardStats,
|
|
833
|
+
Ge as ChoiceCardStatus,
|
|
834
|
+
Te as ChoiceCardTitle,
|
|
835
|
+
ge as useChoiceCardCompare,
|
|
836
|
+
xe as useChoiceCardGroup,
|
|
837
|
+
we as useChoiceCardItem
|
|
749
838
|
};
|