impact-nova 2.6.3 → 3.0.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/data/ag-grid-react/ag-grid-cell-components.d.ts +9 -0
- package/dist/components/data/ag-grid-react/ag-grid-list.d.ts +16 -0
- package/dist/components/data/ag-grid-react/ag-grid-list.js +23 -0
- package/dist/components/data/ag-grid-react/ag-grid.types.d.ts +7 -0
- package/dist/components/data/ag-grid-react/cell-renderers/editors/list-select-cell-editor.d.ts +14 -0
- package/dist/components/data/ag-grid-react/cell-renderers/editors/list-select-cell-editor.js +70 -0
- package/dist/components/data/ag-grid-react/cell-renderers/editors/select-cell-editor.d.ts +10 -5
- package/dist/components/data/ag-grid-react/cell-renderers/editors/select-cell-editor.js +73 -41
- package/dist/components/data/ag-grid-react/cell-renderers/index.d.ts +7 -0
- package/dist/components/data/ag-grid-react/cell-renderers/index.js +42 -36
- package/dist/components/data/ag-grid-react/cell-renderers/list-select-display-renderer.d.ts +19 -0
- package/dist/components/data/ag-grid-react/cell-renderers/list-select-display-renderer.js +89 -0
- package/dist/components/data/ag-grid-react/cell-renderers/select-ai-insight-affordance.d.ts +28 -0
- package/dist/components/data/ag-grid-react/cell-renderers/select-ai-insight-affordance.js +96 -0
- package/dist/components/data/ag-grid-react/cell-renderers/select-display-renderer.d.ts +30 -10
- package/dist/components/data/ag-grid-react/cell-renderers/select-display-renderer.js +72 -24
- package/dist/components/data/ag-grid-react/cell-renderers/style-description-display-renderer.d.ts +42 -0
- package/dist/components/data/ag-grid-react/cell-renderers/style-description-display-renderer.js +86 -0
- package/dist/components/data/ag-grid-react/index.d.ts +1 -1
- package/dist/components/data/ag-grid-react/index.js +162 -146
- package/dist/components/data/data-table/data-table.js +85 -82
- package/dist/components/data/data-table/data-table.types.d.ts +5 -0
- package/dist/components/data/expandable-list-item/expandable-list-item-attributes.js +2 -3
- package/dist/components/data/expandable-list-item/expandable-list-item-metrics.js +2 -3
- package/dist/components/data/expandable-list-item/sku-next-page-coordinator.d.ts +14 -0
- package/dist/components/data/expandable-list-item/sku-strip-lookahead.d.ts +26 -0
- package/dist/components/data/expandable-list-item/useServerSkuInfinitePages.d.ts +10 -0
- package/dist/components/data/expandable-list-item/useSkuStripVirtualizer.d.ts +30 -0
- package/dist/components/data/expandable-list-item/virtualized-responsive-grid.catalog.d.ts +81 -0
- package/dist/components/data/expandable-list-item/virtualized-responsive-grid.item-grid.d.ts +1 -0
- package/dist/components/data/expandable-list-item/virtualized-responsive-grid.product-card.d.ts +7 -0
- package/dist/components/data/expandable-list-item/virtualized-responsive-grid.sku-picker.d.ts +2 -0
- package/dist/components/data-display/chart/chart-heatmap-demos.d.ts +3 -0
- package/dist/components/data-display/chart/chart-heatmap-play.d.ts +9 -0
- package/dist/components/data-display/chart/chart.category-cluster-heatmap.stories-data.d.ts +22 -0
- package/dist/components/data-display/chart/chart.diverging-heatmap.stories-data.d.ts +43 -0
- package/dist/components/data-display/chart/chart.js +100 -93
- package/dist/components/data-display/chart/chart.types.d.ts +10 -0
- package/dist/components/data-display/chart/chart.utils.d.ts +14 -2
- package/dist/components/data-display/chart/chart.utils.js +132 -35
- package/dist/components/data-display/chart/index.js +15 -13
- package/dist/components/data-display/chart/resolve-highcharts-options.js +19 -14
- package/dist/components/data-display/globe-map/globe-map.d.ts +8 -0
- package/dist/components/data-display/globe-map/globe-map.js +161 -0
- package/dist/components/data-display/globe-map/globe-map.stories-data.d.ts +12 -0
- package/dist/components/data-display/globe-map/globe-map.types.d.ts +83 -0
- package/dist/components/data-display/globe-map/globe-map.utils.d.ts +115 -0
- package/dist/components/data-display/globe-map/globe-map.utils.js +259 -0
- package/dist/components/data-display/globe-map/globe-map.variants.d.ts +19 -0
- package/dist/components/data-display/globe-map/globe-map.variants.js +80 -0
- package/dist/components/data-display/globe-map/index.d.ts +2 -0
- package/dist/components/data-display/globe-map/index.js +10 -0
- package/dist/components/data-display/globe-map/internals/globe-countries-110m.json.d.ts +4 -0
- package/dist/components/data-display/globe-map/internals/globe-countries-110m.json.js +7 -0
- package/dist/components/data-display/globe-map/internals/globe-map-context.d.ts +25 -0
- package/dist/components/data-display/globe-map/internals/globe-map-context.js +19 -0
- package/dist/components/data-display/globe-map/internals/globe-map-legend.d.ts +2 -0
- package/dist/components/data-display/globe-map/internals/globe-map-legend.js +51 -0
- package/dist/components/data-display/globe-map/internals/globe-map-point-card-carousel.d.ts +6 -0
- package/dist/components/data-display/globe-map/internals/globe-map-point-card-carousel.js +119 -0
- package/dist/components/data-display/globe-map/internals/globe-map-point-card.d.ts +2 -0
- package/dist/components/data-display/globe-map/internals/globe-map-point-card.js +106 -0
- package/dist/components/data-display/globe-map/internals/globe-map-scene.d.ts +17 -0
- package/dist/components/data-display/globe-map/internals/globe-map-scene.js +218 -0
- package/dist/components/data-display/globe-map/internals/globe-map-tooltip.d.ts +2 -0
- package/dist/components/data-display/globe-map/internals/globe-map-tooltip.js +33 -0
- package/dist/components/data-display/globe-map/internals/use-globe-map-scene.d.ts +45 -0
- package/dist/components/data-display/globe-map/internals/use-globe-map-scene.js +270 -0
- package/dist/components/data-display/hex-tilemap/hex-tilemap.d.ts +9 -0
- package/dist/components/data-display/hex-tilemap/hex-tilemap.js +94 -0
- package/dist/components/data-display/hex-tilemap/hex-tilemap.stories-data.d.ts +7 -0
- package/dist/components/data-display/hex-tilemap/hex-tilemap.types.d.ts +43 -0
- package/dist/components/data-display/hex-tilemap/hex-tilemap.variants.d.ts +11 -0
- package/dist/components/data-display/hex-tilemap/hex-tilemap.variants.js +47 -0
- package/dist/components/data-display/hex-tilemap/index.d.ts +2 -0
- package/dist/components/data-display/hex-tilemap/index.js +12 -0
- package/dist/components/data-display/hex-tilemap/internals/hex-camera.d.ts +40 -0
- package/dist/components/data-display/hex-tilemap/internals/hex-camera.js +103 -0
- package/dist/components/data-display/hex-tilemap/internals/hex-country-lattices.d.ts +9 -0
- package/dist/components/data-display/hex-tilemap/internals/hex-country-lattices.js +1387 -0
- package/dist/components/data-display/hex-tilemap/internals/hex-geometry.d.ts +21 -0
- package/dist/components/data-display/hex-tilemap/internals/hex-geometry.js +82 -0
- package/dist/components/data-display/hex-tilemap/internals/hex-lattice.d.ts +18 -0
- package/dist/components/data-display/hex-tilemap/internals/hex-lattice.js +47 -0
- package/dist/components/data-display/hex-tilemap/internals/hex-layout.d.ts +10 -0
- package/dist/components/data-display/hex-tilemap/internals/hex-layout.js +35 -0
- package/dist/components/data-display/hex-tilemap/internals/hex-new-zealand-grid.d.ts +31 -0
- package/dist/components/data-display/hex-tilemap/internals/hex-new-zealand-grid.js +138 -0
- package/dist/components/data-display/hex-tilemap/internals/hex-regions.d.ts +6 -0
- package/dist/components/data-display/hex-tilemap/internals/hex-regions.js +18 -0
- package/dist/components/data-display/hex-tilemap/internals/hex-tilemap-context.d.ts +24 -0
- package/dist/components/data-display/hex-tilemap/internals/hex-tilemap-context.js +19 -0
- package/dist/components/data-display/hex-tilemap/internals/hex-tilemap-legend.d.ts +2 -0
- package/dist/components/data-display/hex-tilemap/internals/hex-tilemap-legend.js +51 -0
- package/dist/components/data-display/hex-tilemap/internals/hex-tilemap-tooltip.d.ts +2 -0
- package/dist/components/data-display/hex-tilemap/internals/hex-tilemap-tooltip.js +36 -0
- package/dist/components/data-display/hex-tilemap/internals/hex-tilemap-viewport.d.ts +3 -0
- package/dist/components/data-display/hex-tilemap/internals/hex-tilemap-viewport.js +147 -0
- package/dist/components/data-display/hex-tilemap/internals/hex-tilemap-zoom.d.ts +13 -0
- package/dist/components/data-display/hex-tilemap/internals/hex-tilemap-zoom.js +99 -0
- package/dist/components/data-display/hex-tilemap/internals/hex-world-grid.d.ts +8 -0
- package/dist/components/data-display/hex-tilemap/internals/use-hex-camera.d.ts +27 -0
- package/dist/components/data-display/hex-tilemap/internals/use-hex-camera.js +137 -0
- package/dist/components/data-display/notch-card/index.d.ts +2 -0
- package/dist/components/data-display/notch-card/index.js +6 -0
- package/dist/components/data-display/notch-card/notch-card.d.ts +7 -0
- package/dist/components/data-display/notch-card/notch-card.js +151 -0
- package/dist/components/data-display/notch-card/notch-card.path.d.ts +19 -0
- package/dist/components/data-display/notch-card/notch-card.path.js +118 -0
- package/dist/components/data-display/notch-card/notch-card.types.d.ts +15 -0
- package/dist/components/data-display/notch-card/notch-card.variants.d.ts +15 -0
- package/dist/components/data-display/notch-card/notch-card.variants.js +86 -0
- package/dist/components/feedback/hover-card/hover-card.d.ts +3 -1
- package/dist/components/feedback/hover-card/hover-card.js +28 -24
- package/dist/components/feedback/tooltip/overflow-tooltip.d.ts +1 -1
- package/dist/components/feedback/tooltip/overflow-tooltip.js +63 -57
- package/dist/components/feedback/tooltip/overflow-tooltip.types.d.ts +4 -0
- package/dist/components/feedback/tooltip/tab-tooltip-render.js +2 -3
- 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/filter-strip/index.d.ts +1 -0
- package/dist/components/flows/filter-strip/index.js +4 -2
- package/dist/components/flows/iris-chat/index.d.ts +10 -0
- package/dist/components/flows/iris-chat/index.js +55 -0
- package/dist/components/flows/iris-chat/iris-chat-artifact.d.ts +4 -0
- package/dist/components/flows/iris-chat/iris-chat-artifact.js +125 -0
- package/dist/components/flows/iris-chat/iris-chat-composer.d.ts +3 -0
- package/dist/components/flows/iris-chat/iris-chat-composer.js +297 -0
- package/dist/components/flows/iris-chat/iris-chat-context.d.ts +14 -0
- package/dist/components/flows/iris-chat/iris-chat-context.js +23 -0
- package/dist/components/flows/iris-chat/iris-chat-icons.d.ts +18 -0
- package/dist/components/flows/iris-chat/iris-chat-icons.js +176 -0
- package/dist/components/flows/iris-chat/iris-chat-markdown.d.ts +3 -0
- package/dist/components/flows/iris-chat/iris-chat-markdown.js +62 -0
- package/dist/components/flows/iris-chat/iris-chat-menu.d.ts +15 -0
- package/dist/components/flows/iris-chat/iris-chat-menu.js +259 -0
- package/dist/components/flows/iris-chat/iris-chat-prompt.d.ts +3 -0
- package/dist/components/flows/iris-chat/iris-chat-prompt.js +46 -0
- package/dist/components/flows/iris-chat/iris-chat-thinking.d.ts +12 -0
- package/dist/components/flows/iris-chat/iris-chat-thinking.js +202 -0
- package/dist/components/flows/iris-chat/iris-chat-thread.d.ts +37 -0
- package/dist/components/flows/iris-chat/iris-chat-thread.js +493 -0
- package/dist/components/flows/iris-chat/iris-chat.d.ts +43 -0
- package/dist/components/flows/iris-chat/iris-chat.js +336 -0
- package/dist/components/flows/iris-chat/iris-chat.types.d.ts +208 -0
- package/dist/components/flows/iris-chat/iris-chat.variants.d.ts +14 -0
- package/dist/components/flows/iris-chat/iris-chat.variants.js +78 -0
- package/dist/components/flows/iris-chat/read-iris-greeting-period.d.ts +4 -0
- package/dist/components/flows/iris-chat/read-iris-greeting-period.js +16 -0
- package/dist/components/flows/wizard/index.d.ts +2 -2
- package/dist/components/flows/wizard/index.js +17 -13
- package/dist/components/flows/wizard/wizard-context.d.ts +6 -1
- package/dist/components/flows/wizard/wizard-context.js +15 -7
- package/dist/components/flows/wizard/wizard.d.ts +22 -4
- package/dist/components/flows/wizard/wizard.js +278 -174
- package/dist/components/flows/wizard/wizard.types.d.ts +40 -0
- package/dist/components/forms/choice-card/assets/featured-backdrop-baked.webp.js +4 -0
- package/dist/components/forms/choice-card/assets/featured-noise.webp.js +4 -0
- package/dist/components/forms/choice-card/choice-card-featured-arcs.d.ts +4 -0
- package/dist/components/forms/choice-card/choice-card-featured-arcs.js +42 -0
- package/dist/components/forms/choice-card/choice-card-featured-backdrop.d.ts +4 -0
- package/dist/components/forms/choice-card/choice-card-featured-backdrop.js +45 -0
- package/dist/components/forms/choice-card/choice-card-indicator.variants.d.ts +8 -0
- package/dist/components/forms/choice-card/choice-card-indicator.variants.js +5 -0
- package/dist/components/forms/choice-card/choice-card-percent.d.ts +11 -0
- package/dist/components/forms/choice-card/choice-card-percent.js +80 -0
- package/dist/components/forms/choice-card/choice-card.d.ts +40 -3
- package/dist/components/forms/choice-card/choice-card.js +651 -170
- package/dist/components/forms/choice-card/choice-card.types.d.ts +40 -0
- package/dist/components/forms/choice-card/choice-card.variants.d.ts +7 -0
- package/dist/components/forms/choice-card/choice-card.variants.js +100 -0
- package/dist/components/forms/choice-card/index.d.ts +2 -1
- package/dist/components/forms/choice-card/index.js +27 -10
- package/dist/components/forms/select/components/SelectTriggerValue.js +2 -3
- package/dist/components/forms/select/components/Submenu.js +2 -3
- package/dist/components/layout/header/header.d.ts +3 -2
- package/dist/components/layout/header/header.js +67 -47
- package/dist/components/layout/header/header.types.d.ts +1 -0
- package/dist/components/primitives/iris/iris-agent-cursor.d.ts +3 -0
- package/dist/components/primitives/iris/iris-agent-cursor.js +89 -0
- package/dist/components/primitives/iris/iris-alan-gradient-icon.d.ts +5 -0
- package/dist/components/primitives/iris/iris-alan-gradient-icon.js +69 -0
- package/dist/components/primitives/iris/iris-control-context.d.ts +15 -0
- package/dist/components/primitives/iris/iris-control-context.js +44 -0
- package/dist/components/primitives/iris/iris-control-region.d.ts +10 -0
- package/dist/components/primitives/iris/iris-control-region.js +102 -0
- package/dist/components/primitives/iris/iris-control.types.d.ts +24 -0
- package/dist/components/primitives/iris/iris-control.variants.d.ts +4 -0
- package/dist/components/primitives/iris/iris-control.variants.js +20 -0
- package/dist/components/primitives/iris/iris.d.ts +24 -0
- package/dist/components/primitives/iris/iris.js +232 -0
- package/dist/components/primitives/iris/iris.types.d.ts +35 -0
- package/dist/components/primitives/iris/iris.variants.d.ts +30 -0
- package/dist/components/primitives/iris/iris.variants.js +120 -0
- package/dist/components/primitives/stepper/internals/pipeline-current-mark.d.ts +6 -0
- package/dist/components/primitives/stepper/internals/pipeline-current-mark.js +35 -0
- package/dist/components/primitives/stepper/internals/rail-status-dot.d.ts +13 -0
- package/dist/components/primitives/stepper/internals/rail-status-dot.js +70 -0
- package/dist/components/primitives/stepper/internals/step-hit-target.d.ts +15 -0
- package/dist/components/primitives/stepper/internals/step-hit-target.js +51 -0
- package/dist/components/primitives/stepper/internals/step-model.d.ts +3 -0
- package/dist/components/primitives/stepper/internals/step-model.js +10 -0
- package/dist/components/primitives/stepper/internals/stepper-compact.d.ts +5 -0
- package/dist/components/primitives/stepper/internals/stepper-compact.js +68 -0
- package/dist/components/primitives/stepper/internals/stepper-pipeline.d.ts +7 -0
- package/dist/components/primitives/stepper/internals/stepper-pipeline.js +87 -0
- package/dist/components/primitives/stepper/internals/stepper-rail.d.ts +5 -0
- package/dist/components/primitives/stepper/internals/stepper-rail.js +105 -0
- package/dist/components/primitives/stepper/internals/stepper-summary.d.ts +5 -0
- package/dist/components/primitives/stepper/internals/stepper-summary.js +103 -0
- package/dist/components/primitives/stepper/internals/stepper-track.d.ts +8 -0
- package/dist/components/primitives/stepper/internals/stepper-track.js +170 -0
- package/dist/components/primitives/stepper/stepper.d.ts +1 -0
- package/dist/components/primitives/stepper/stepper.js +134 -52
- package/dist/components/primitives/stepper/stepper.types.d.ts +17 -0
- package/dist/components/primitives/stepper/stepper.variants.d.ts +26 -0
- package/dist/components/primitives/stepper/stepper.variants.js +165 -5
- package/dist/components/primitives/tabs/tabs.d.ts +4 -1
- package/dist/components/primitives/tabs/tabs.js +131 -59
- package/dist/components/primitives/tabs/tabs.types.d.ts +5 -1
- package/dist/i18n/defaultMessages.d.ts +100 -0
- package/dist/i18n/defaultMessages.js +118 -21
- package/dist/i18n/index.d.ts +1 -1
- package/dist/i18n/locales/de.js +99 -2
- package/dist/i18n/locales/es.js +99 -2
- package/dist/i18n/locales/hi.js +99 -2
- package/dist/i18n/locales/kn.js +99 -2
- package/dist/impact-nova-components.css +972 -2
- package/dist/impact-nova-tokens.scss +109 -1
- package/dist/impact-nova.css +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +585 -551
- package/dist/lib/virtualized/directional-range-extractor.d.ts +26 -0
- package/dist/lib/virtualized/directional-range-extractor.js +39 -0
- package/dist/lib/virtualized/index.d.ts +3 -0
- package/dist/lib/virtualized/index.js +35 -27
- package/dist/lib/virtualized/scroll-seek.d.ts +61 -0
- package/dist/lib/virtualized/scroll-seek.js +61 -0
- package/dist/lib/virtualized/usePaintedRangeVirtualizer.d.ts +19 -0
- package/dist/lib/virtualized/usePaintedRangeVirtualizer.js +30 -0
- package/dist/lib/virtualized/useResponsiveColumnCount.d.ts +35 -0
- package/dist/lib/virtualized/useResponsiveColumnCount.js +51 -0
- package/dist/lib/virtualized/useScrollSeekPaintedRange.d.ts +13 -0
- package/dist/lib/virtualized/useScrollSeekPaintedRange.js +45 -0
- package/dist/lib/virtualized/useVirtualizedList.d.ts +7 -0
- package/dist/lib/virtualized/useVirtualizedList.js +89 -87
- package/dist/lib/virtualized/useVirtualizedRows.d.ts +9 -2
- package/dist/lib/virtualized/useVirtualizedRows.js +15 -13
- package/dist/lib/virtualized/virtualized.types.d.ts +2 -0
- package/dist/llms/rules/installation.js +1 -1
- package/dist/llms/rules/requirements.js +1 -1
- package/dist/tailwind.config.js +3 -1
- package/dist/theme/tailwind-colors.js +2 -1
- package/package.json +39 -4
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
import { cva as e } from "class-variance-authority";
|
|
2
|
+
const n = {
|
|
3
|
+
sm: "sm",
|
|
4
|
+
md: "default",
|
|
5
|
+
lg: "lg"
|
|
6
|
+
}, t = e(
|
|
7
|
+
"iris-edge-wash-button motion-reduce:animate-none",
|
|
8
|
+
{
|
|
9
|
+
variants: {
|
|
10
|
+
shape: {
|
|
11
|
+
default: "rounded-md",
|
|
12
|
+
pill: "rounded-full"
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
defaultVariants: {
|
|
16
|
+
shape: "default"
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
), r = e(
|
|
20
|
+
[
|
|
21
|
+
"rounded-[inherit] border-0 bg-transparent text-foreground-title shadow-none",
|
|
22
|
+
"transition-transform duration-150 ease-out",
|
|
23
|
+
"hover:bg-transparent hover:text-foreground-title",
|
|
24
|
+
"active:scale-[0.98] active:brightness-[0.98]",
|
|
25
|
+
"focus-visible:ring-1 focus-visible:ring-focus-ring"
|
|
26
|
+
],
|
|
27
|
+
{
|
|
28
|
+
variants: {
|
|
29
|
+
size: {
|
|
30
|
+
sm: "",
|
|
31
|
+
md: "",
|
|
32
|
+
lg: ""
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
defaultVariants: {
|
|
36
|
+
size: "md"
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
), a = {
|
|
40
|
+
sm: "iconSm",
|
|
41
|
+
md: "icon"
|
|
42
|
+
}, s = e("inline-flex align-middle", {
|
|
43
|
+
variants: {
|
|
44
|
+
appearance: {
|
|
45
|
+
outline: "iris-edge-wash-button motion-reduce:animate-none",
|
|
46
|
+
filled: "overflow-hidden motion-reduce:animate-none"
|
|
47
|
+
},
|
|
48
|
+
shape: {
|
|
49
|
+
default: "rounded-md",
|
|
50
|
+
pill: "rounded-full"
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
defaultVariants: {
|
|
54
|
+
appearance: "outline",
|
|
55
|
+
shape: "default"
|
|
56
|
+
}
|
|
57
|
+
}), o = e(
|
|
58
|
+
[
|
|
59
|
+
"rounded-[inherit] border-0 bg-transparent shadow-none text-foreground-title",
|
|
60
|
+
"transition-transform duration-150 ease-out",
|
|
61
|
+
"hover:bg-transparent hover:text-foreground-title",
|
|
62
|
+
"active:scale-[0.98] active:brightness-[0.98]",
|
|
63
|
+
"focus-visible:ring-1 focus-visible:ring-focus-ring"
|
|
64
|
+
],
|
|
65
|
+
{
|
|
66
|
+
variants: {
|
|
67
|
+
size: {
|
|
68
|
+
md: "",
|
|
69
|
+
sm: ""
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
defaultVariants: {
|
|
73
|
+
size: "md"
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
), d = e(
|
|
77
|
+
[
|
|
78
|
+
"relative inline-flex items-center justify-center shrink-0 gap-0 p-0",
|
|
79
|
+
"cursor-pointer rounded-[inherit] border-0 outline-none",
|
|
80
|
+
"header-bot-button-gradient",
|
|
81
|
+
"animate-header-bot-gradient-iris hover:animate-header-bot-gradient-fast motion-reduce:animate-none",
|
|
82
|
+
"text-brand-foreground focus-visible:ring-1 focus-visible:ring-focus-ring"
|
|
83
|
+
],
|
|
84
|
+
{
|
|
85
|
+
variants: {
|
|
86
|
+
size: {
|
|
87
|
+
md: "h-8 w-8 min-h-8 min-w-8 [&_svg]:size-4",
|
|
88
|
+
sm: "h-6 w-6 min-h-6 min-w-6 [&_svg]:size-3.5"
|
|
89
|
+
}
|
|
90
|
+
},
|
|
91
|
+
defaultVariants: {
|
|
92
|
+
size: "md"
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
), u = e(
|
|
96
|
+
["flex text-sm font-medium capitalize leading-[25px] text-foreground"],
|
|
97
|
+
{
|
|
98
|
+
variants: {
|
|
99
|
+
appearance: {
|
|
100
|
+
loading: "iris-menu-surface w-[189px] items-center gap-2 rounded-[inherit] px-3 py-2",
|
|
101
|
+
wrap: "iris-menu-surface iris-menu-surface-wrap w-[274px] items-start gap-0.5 rounded-[inherit] px-3 py-2",
|
|
102
|
+
card: "iris-menu-surface-card w-[378px] flex-col items-start gap-2 rounded-xl px-3 py-2 backdrop-blur-[3px]",
|
|
103
|
+
status: "iris-menu-surface w-full min-w-0 max-w-full items-center gap-2 overflow-hidden rounded-[inherit] px-3 py-2"
|
|
104
|
+
}
|
|
105
|
+
},
|
|
106
|
+
defaultVariants: {
|
|
107
|
+
appearance: "loading"
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
);
|
|
111
|
+
export {
|
|
112
|
+
n as irisButtonToButtonSize,
|
|
113
|
+
r as irisButtonVariants,
|
|
114
|
+
t as irisChromeWrapperVariants,
|
|
115
|
+
a as irisIconButtonToButtonSize,
|
|
116
|
+
o as irisIconButtonVariants,
|
|
117
|
+
s as irisIconChromeWrapperVariants,
|
|
118
|
+
d as irisIconFilledButtonVariants,
|
|
119
|
+
u as irisMenuVariants
|
|
120
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
/** Figma CurrentStep (2461:63705): 24px disc + white stroke + gaussian-blurred halo. */
|
|
3
|
+
export declare function PipelineCurrentMark({ className, children, }: {
|
|
4
|
+
className?: string;
|
|
5
|
+
children?: ReactNode;
|
|
6
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { jsxs as s, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { DrawBrush as t } from "impact-nova-icons";
|
|
3
|
+
import { cn as i } from "../../../../lib/utils.js";
|
|
4
|
+
function p({
|
|
5
|
+
className: r,
|
|
6
|
+
children: a
|
|
7
|
+
}) {
|
|
8
|
+
return /* @__PURE__ */ s(
|
|
9
|
+
"span",
|
|
10
|
+
{
|
|
11
|
+
className: i("relative flex size-11 items-center justify-center", r),
|
|
12
|
+
"data-pipeline-mark": "sparkle",
|
|
13
|
+
children: [
|
|
14
|
+
/* @__PURE__ */ e(
|
|
15
|
+
"span",
|
|
16
|
+
{
|
|
17
|
+
"aria-hidden": !0,
|
|
18
|
+
className: "absolute inset-[10px] rounded-full bg-[var(--color-stepper-pipeline-dot-soft)] blur-[5px]"
|
|
19
|
+
}
|
|
20
|
+
),
|
|
21
|
+
/* @__PURE__ */ e(
|
|
22
|
+
"span",
|
|
23
|
+
{
|
|
24
|
+
"aria-hidden": !0,
|
|
25
|
+
className: "absolute inset-[10px] rounded-full border border-solid border-canvas-elevated bg-[var(--color-stepper-pipeline-dot)]"
|
|
26
|
+
}
|
|
27
|
+
),
|
|
28
|
+
/* @__PURE__ */ e("span", { className: "relative z-[1] text-brand-foreground", children: a ?? /* @__PURE__ */ e(t, { size: 12 }) })
|
|
29
|
+
]
|
|
30
|
+
}
|
|
31
|
+
);
|
|
32
|
+
}
|
|
33
|
+
export {
|
|
34
|
+
p as PipelineCurrentMark
|
|
35
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { StepStatus } from '../stepper.types';
|
|
2
|
+
type RailStatusDotProps = {
|
|
3
|
+
status: StepStatus;
|
|
4
|
+
className?: string;
|
|
5
|
+
};
|
|
6
|
+
/**
|
|
7
|
+
* Figma 2015:49847 / PoppingCircle (2018:50230) rail markers:
|
|
8
|
+
* - completed: mint ring (#89d1ab) with white core
|
|
9
|
+
* - active: deep purple core (#931ce3) + soft halo (#dfbbf7) that pulses
|
|
10
|
+
* - default: gray ring (#d9dde7) with white core (same geometry as completed)
|
|
11
|
+
*/
|
|
12
|
+
export declare function RailStatusDot({ status, className }: RailStatusDotProps): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { jsx as e, jsxs as i } from "react/jsx-runtime";
|
|
2
|
+
import { cn as r } from "../../../../lib/utils.js";
|
|
3
|
+
function s({ status: a, className: t }) {
|
|
4
|
+
return a === "completed" ? /* @__PURE__ */ e(
|
|
5
|
+
"span",
|
|
6
|
+
{
|
|
7
|
+
"aria-hidden": !0,
|
|
8
|
+
"data-rail-dot": "",
|
|
9
|
+
"data-status": a,
|
|
10
|
+
className: r(
|
|
11
|
+
"relative z-[1] flex size-4 shrink-0 items-center justify-center rounded-full",
|
|
12
|
+
"bg-[var(--color-stepper-rail-complete)]",
|
|
13
|
+
t
|
|
14
|
+
),
|
|
15
|
+
children: /* @__PURE__ */ e("span", { className: "size-1.5 rounded-full bg-background" })
|
|
16
|
+
}
|
|
17
|
+
) : a === "active" ? /* @__PURE__ */ i(
|
|
18
|
+
"span",
|
|
19
|
+
{
|
|
20
|
+
"aria-hidden": !0,
|
|
21
|
+
"data-rail-dot": "",
|
|
22
|
+
"data-status": a,
|
|
23
|
+
className: r(
|
|
24
|
+
"relative z-[1] flex size-4 shrink-0 items-center justify-center overflow-visible",
|
|
25
|
+
t
|
|
26
|
+
),
|
|
27
|
+
children: [
|
|
28
|
+
/* @__PURE__ */ e(
|
|
29
|
+
"span",
|
|
30
|
+
{
|
|
31
|
+
"data-rail-pulse": "",
|
|
32
|
+
className: r(
|
|
33
|
+
"pointer-events-none absolute size-4 rounded-full",
|
|
34
|
+
"bg-[var(--color-stepper-pipeline-dot-soft)]",
|
|
35
|
+
"animate-ping opacity-70 motion-reduce:animate-none motion-reduce:opacity-80"
|
|
36
|
+
)
|
|
37
|
+
}
|
|
38
|
+
),
|
|
39
|
+
/* @__PURE__ */ e(
|
|
40
|
+
"span",
|
|
41
|
+
{
|
|
42
|
+
className: "absolute size-4 rounded-full bg-[var(--color-stepper-pipeline-dot-soft)] opacity-80"
|
|
43
|
+
}
|
|
44
|
+
),
|
|
45
|
+
/* @__PURE__ */ e(
|
|
46
|
+
"span",
|
|
47
|
+
{
|
|
48
|
+
"data-rail-core": "",
|
|
49
|
+
className: "relative size-2.5 rounded-full bg-[var(--color-stepper-rail-active)]"
|
|
50
|
+
}
|
|
51
|
+
)
|
|
52
|
+
]
|
|
53
|
+
}
|
|
54
|
+
) : /* @__PURE__ */ e(
|
|
55
|
+
"span",
|
|
56
|
+
{
|
|
57
|
+
"aria-hidden": !0,
|
|
58
|
+
"data-rail-dot": "",
|
|
59
|
+
"data-status": a,
|
|
60
|
+
className: r(
|
|
61
|
+
"relative z-[1] flex size-4 shrink-0 items-center justify-center rounded-full bg-muted",
|
|
62
|
+
t
|
|
63
|
+
),
|
|
64
|
+
children: /* @__PURE__ */ e("span", { className: "size-1.5 rounded-full bg-background" })
|
|
65
|
+
}
|
|
66
|
+
);
|
|
67
|
+
}
|
|
68
|
+
export {
|
|
69
|
+
s as RailStatusDot
|
|
70
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
type StepHitTargetProps = {
|
|
3
|
+
stepNumber: number;
|
|
4
|
+
status: string;
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
interactive: boolean;
|
|
7
|
+
ariaLabel: string;
|
|
8
|
+
isActive: boolean;
|
|
9
|
+
className?: string;
|
|
10
|
+
children: ReactNode;
|
|
11
|
+
onStepClick?: (index: number) => void;
|
|
12
|
+
};
|
|
13
|
+
export declare function StepHitTarget({ stepNumber, status, disabled, interactive, ariaLabel, isActive, className, children, onStepClick, }: StepHitTargetProps): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export declare function StepBrandRail(): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { jsx as s } from "react/jsx-runtime";
|
|
2
|
+
import { cn as p } from "../../../../lib/utils.js";
|
|
3
|
+
function m({
|
|
4
|
+
stepNumber: r,
|
|
5
|
+
status: l,
|
|
6
|
+
disabled: t,
|
|
7
|
+
interactive: n,
|
|
8
|
+
ariaLabel: d,
|
|
9
|
+
isActive: u,
|
|
10
|
+
className: c,
|
|
11
|
+
children: f,
|
|
12
|
+
onStepClick: e
|
|
13
|
+
}) {
|
|
14
|
+
const o = n && !t, i = r - 1;
|
|
15
|
+
return /* @__PURE__ */ s(
|
|
16
|
+
"div",
|
|
17
|
+
{
|
|
18
|
+
role: "listitem",
|
|
19
|
+
"aria-label": d,
|
|
20
|
+
"aria-current": u ? "step" : void 0,
|
|
21
|
+
tabIndex: o ? 0 : void 0,
|
|
22
|
+
"data-step": r,
|
|
23
|
+
"data-status": l,
|
|
24
|
+
"data-disabled": t || void 0,
|
|
25
|
+
onClick: o ? () => e?.(i) : void 0,
|
|
26
|
+
onKeyDown: o ? (a) => {
|
|
27
|
+
(a.key === "Enter" || a.key === " ") && (a.preventDefault(), e?.(i));
|
|
28
|
+
} : void 0,
|
|
29
|
+
className: p(
|
|
30
|
+
c,
|
|
31
|
+
t ? "cursor-not-allowed opacity-80" : n ? "cursor-pointer" : "cursor-not-allowed",
|
|
32
|
+
o && "focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-focus-ring/25"
|
|
33
|
+
),
|
|
34
|
+
children: f
|
|
35
|
+
}
|
|
36
|
+
);
|
|
37
|
+
}
|
|
38
|
+
function g() {
|
|
39
|
+
return /* @__PURE__ */ s(
|
|
40
|
+
"span",
|
|
41
|
+
{
|
|
42
|
+
"aria-hidden": !0,
|
|
43
|
+
"data-brand-rail": "",
|
|
44
|
+
className: "pointer-events-none absolute left-[-8px] top-1/2 h-8 w-1 -translate-y-1/2 rounded-full bg-brand"
|
|
45
|
+
}
|
|
46
|
+
);
|
|
47
|
+
}
|
|
48
|
+
export {
|
|
49
|
+
g as StepBrandRail,
|
|
50
|
+
m as StepHitTarget
|
|
51
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { StepperProps } from '../stepper.types';
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
export declare const CompactStepper: React.ForwardRefExoticComponent<Omit<StepperProps, "variant"> & {
|
|
4
|
+
stepAriaLabel: (stepNumber: number, total: number) => string;
|
|
5
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { jsx as e, jsxs as i } from "react/jsx-runtime";
|
|
2
|
+
import * as p from "react";
|
|
3
|
+
import { Checkmark as k } from "impact-nova-icons";
|
|
4
|
+
import { cn as l } from "../../../../lib/utils.js";
|
|
5
|
+
import { compactIconVariants as g, compactLabelVariants as x, compactStepVariants as V, stepperVariants as w } from "../stepper.variants.js";
|
|
6
|
+
import { resolveStepItem as I, stepStatus as j } from "./step-model.js";
|
|
7
|
+
import { StepHitTarget as C } from "./step-hit-target.js";
|
|
8
|
+
const L = p.forwardRef(
|
|
9
|
+
({
|
|
10
|
+
className: n,
|
|
11
|
+
currentStep: d,
|
|
12
|
+
steps: s,
|
|
13
|
+
orientation: a = "vertical",
|
|
14
|
+
onStepClick: m,
|
|
15
|
+
stepAriaLabel: h,
|
|
16
|
+
...b
|
|
17
|
+
}, v) => {
|
|
18
|
+
const f = s.length, N = !!m;
|
|
19
|
+
return /* @__PURE__ */ e(
|
|
20
|
+
"div",
|
|
21
|
+
{
|
|
22
|
+
ref: v,
|
|
23
|
+
className: l(w({ orientation: a, variant: "compact" }), n),
|
|
24
|
+
"data-orientation": a,
|
|
25
|
+
"data-variant": "compact",
|
|
26
|
+
"data-component": "stepper",
|
|
27
|
+
role: "list",
|
|
28
|
+
...b,
|
|
29
|
+
children: s.map((u, o) => {
|
|
30
|
+
const c = I(u), r = o + 1, t = j(r, d), S = t === "active";
|
|
31
|
+
return /* @__PURE__ */ i(p.Fragment, { children: [
|
|
32
|
+
/* @__PURE__ */ i(
|
|
33
|
+
C,
|
|
34
|
+
{
|
|
35
|
+
stepNumber: r,
|
|
36
|
+
status: t,
|
|
37
|
+
disabled: c.disabled,
|
|
38
|
+
interactive: N,
|
|
39
|
+
ariaLabel: h(r, f),
|
|
40
|
+
isActive: S,
|
|
41
|
+
onStepClick: m,
|
|
42
|
+
className: V({ orientation: a, status: t }),
|
|
43
|
+
children: [
|
|
44
|
+
/* @__PURE__ */ e("div", { className: g({ status: t }), children: t === "completed" ? /* @__PURE__ */ e(k, { className: "size-3.5 stroke-[3px]" }) : /* @__PURE__ */ e("span", { children: c.icon || r }) }),
|
|
45
|
+
/* @__PURE__ */ e("span", { className: x({ status: t }), children: c.label })
|
|
46
|
+
]
|
|
47
|
+
}
|
|
48
|
+
),
|
|
49
|
+
o < s.length - 1 ? /* @__PURE__ */ e(
|
|
50
|
+
"div",
|
|
51
|
+
{
|
|
52
|
+
"aria-hidden": !0,
|
|
53
|
+
className: l(
|
|
54
|
+
"border-stroke-hairline",
|
|
55
|
+
a === "vertical" ? "ms-[18px] h-6 w-0 shrink-0 border-s border-dotted" : "mx-1 h-0 w-6 shrink-0 self-center border-t border-dotted"
|
|
56
|
+
)
|
|
57
|
+
}
|
|
58
|
+
) : null
|
|
59
|
+
] }, o);
|
|
60
|
+
})
|
|
61
|
+
}
|
|
62
|
+
);
|
|
63
|
+
}
|
|
64
|
+
);
|
|
65
|
+
L.displayName = "CompactStepper";
|
|
66
|
+
export {
|
|
67
|
+
L as CompactStepper
|
|
68
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { StepperProps } from '../stepper.types';
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
export declare const PipelineStepper: React.ForwardRefExoticComponent<Omit<StepperProps, "variant"> & {
|
|
4
|
+
stepAriaLabel: (stepNumber: number, total: number) => string;
|
|
5
|
+
pipelinePrefix: string;
|
|
6
|
+
stepsCountLabel: string;
|
|
7
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import { jsxs as t, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import * as j from "react";
|
|
3
|
+
import { cn as f } from "../../../../lib/utils.js";
|
|
4
|
+
import { pipelineDotVariants as M, stepperVariants as S } from "../stepper.variants.js";
|
|
5
|
+
import { PipelineCurrentMark as z } from "./pipeline-current-mark.js";
|
|
6
|
+
import { resolveStepItem as I, stepStatus as P } from "./step-model.js";
|
|
7
|
+
import { StepHitTarget as R } from "./step-hit-target.js";
|
|
8
|
+
const V = j.forwardRef(
|
|
9
|
+
({
|
|
10
|
+
className: u,
|
|
11
|
+
currentStep: n,
|
|
12
|
+
steps: o,
|
|
13
|
+
onStepClick: l,
|
|
14
|
+
heading: c,
|
|
15
|
+
stepAriaLabel: b,
|
|
16
|
+
pipelinePrefix: v,
|
|
17
|
+
stepsCountLabel: h,
|
|
18
|
+
...x
|
|
19
|
+
}, N) => {
|
|
20
|
+
const i = o.length, p = !!l, g = Math.max(0, Math.min(n, i) - 1), w = i <= 1 ? 1 : g / Math.max(i - 1, 1);
|
|
21
|
+
return /* @__PURE__ */ t(
|
|
22
|
+
"div",
|
|
23
|
+
{
|
|
24
|
+
ref: N,
|
|
25
|
+
className: f(S({ variant: "pipeline" }), u),
|
|
26
|
+
"data-orientation": "horizontal",
|
|
27
|
+
"data-variant": "pipeline",
|
|
28
|
+
"data-component": "stepper",
|
|
29
|
+
...x,
|
|
30
|
+
children: [
|
|
31
|
+
/* @__PURE__ */ t("div", { className: "flex w-full items-center justify-between gap-4 whitespace-nowrap text-sm capitalize", children: [
|
|
32
|
+
c ? /* @__PURE__ */ t("p", { className: "min-w-0 truncate font-medium leading-[21px] text-content", children: [
|
|
33
|
+
/* @__PURE__ */ e("span", { className: "text-secondary-foreground", children: v }),
|
|
34
|
+
/* @__PURE__ */ e("span", { className: "font-semibold", children: ` ${c}` })
|
|
35
|
+
] }) : /* @__PURE__ */ e("span", {}),
|
|
36
|
+
/* @__PURE__ */ e("p", { className: "shrink-0 text-xs font-medium leading-4 text-secondary-foreground", children: h })
|
|
37
|
+
] }),
|
|
38
|
+
/* @__PURE__ */ t("div", { className: "relative flex w-full items-center justify-between overflow-visible", role: "list", children: [
|
|
39
|
+
/* @__PURE__ */ t(
|
|
40
|
+
"div",
|
|
41
|
+
{
|
|
42
|
+
"aria-hidden": !0,
|
|
43
|
+
className: "pointer-events-none absolute inset-x-1 top-1/2 h-px -translate-y-1/2",
|
|
44
|
+
children: [
|
|
45
|
+
/* @__PURE__ */ e("div", { className: "absolute inset-0 border-t border-dotted border-muted" }),
|
|
46
|
+
/* @__PURE__ */ e(
|
|
47
|
+
"div",
|
|
48
|
+
{
|
|
49
|
+
className: "absolute inset-y-0 start-0 border-t border-solid border-[var(--color-stepper-pipeline-dot)]",
|
|
50
|
+
style: { width: `${w * 100}%` }
|
|
51
|
+
}
|
|
52
|
+
)
|
|
53
|
+
]
|
|
54
|
+
}
|
|
55
|
+
),
|
|
56
|
+
o.map((y, d) => {
|
|
57
|
+
const r = I(y), s = d + 1, a = P(s, n), m = a === "active";
|
|
58
|
+
return /* @__PURE__ */ e(
|
|
59
|
+
R,
|
|
60
|
+
{
|
|
61
|
+
stepNumber: s,
|
|
62
|
+
status: a,
|
|
63
|
+
disabled: r.disabled,
|
|
64
|
+
interactive: p,
|
|
65
|
+
ariaLabel: b(s, i),
|
|
66
|
+
isActive: m,
|
|
67
|
+
onStepClick: l,
|
|
68
|
+
className: f(
|
|
69
|
+
"relative z-[1] flex items-center justify-center p-0",
|
|
70
|
+
M({ status: a }),
|
|
71
|
+
p && !r.disabled && "focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-focus-ring/25"
|
|
72
|
+
),
|
|
73
|
+
children: m ? /* @__PURE__ */ e(z, { children: r.icon }) : null
|
|
74
|
+
},
|
|
75
|
+
d
|
|
76
|
+
);
|
|
77
|
+
})
|
|
78
|
+
] })
|
|
79
|
+
]
|
|
80
|
+
}
|
|
81
|
+
);
|
|
82
|
+
}
|
|
83
|
+
);
|
|
84
|
+
V.displayName = "PipelineStepper";
|
|
85
|
+
export {
|
|
86
|
+
V as PipelineStepper
|
|
87
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { StepperProps } from '../stepper.types';
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
export declare const RailStepper: React.ForwardRefExoticComponent<Omit<StepperProps, "variant" | "orientation"> & {
|
|
4
|
+
stepAriaLabel: (stepNumber: number, total: number) => string;
|
|
5
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
import { jsxs as o, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import * as y from "react";
|
|
3
|
+
import { cn as n } from "../../../../lib/utils.js";
|
|
4
|
+
import { stepperVariants as k } from "../stepper.variants.js";
|
|
5
|
+
import { RailStatusDot as f } from "./rail-status-dot.js";
|
|
6
|
+
import { resolveStepItem as R, stepStatus as j } from "./step-model.js";
|
|
7
|
+
const S = y.forwardRef(
|
|
8
|
+
({
|
|
9
|
+
className: v,
|
|
10
|
+
currentStep: h,
|
|
11
|
+
steps: c,
|
|
12
|
+
onStepClick: d,
|
|
13
|
+
renderStep: m,
|
|
14
|
+
stepAriaLabel: p,
|
|
15
|
+
...N
|
|
16
|
+
}, g) => {
|
|
17
|
+
const s = c.length, x = !!d;
|
|
18
|
+
return /* @__PURE__ */ o(
|
|
19
|
+
"div",
|
|
20
|
+
{
|
|
21
|
+
ref: g,
|
|
22
|
+
className: n(k({ variant: "rail" }), v),
|
|
23
|
+
"data-orientation": "vertical",
|
|
24
|
+
"data-variant": "rail",
|
|
25
|
+
"data-component": "stepper",
|
|
26
|
+
role: "list",
|
|
27
|
+
...N,
|
|
28
|
+
children: [
|
|
29
|
+
s > 1 ? /* @__PURE__ */ e(
|
|
30
|
+
"div",
|
|
31
|
+
{
|
|
32
|
+
"aria-hidden": !0,
|
|
33
|
+
"data-rail-line": "",
|
|
34
|
+
className: "pointer-events-none absolute start-2 top-6 bottom-6 w-0 border-s border-dashed border-stroke-hairline"
|
|
35
|
+
}
|
|
36
|
+
) : null,
|
|
37
|
+
c.map((w, r) => {
|
|
38
|
+
const i = R(w), a = r + 1, t = j(a, h), u = t === "active", b = !!i.disabled || t === "default", l = x && !b;
|
|
39
|
+
return /* @__PURE__ */ o(
|
|
40
|
+
"div",
|
|
41
|
+
{
|
|
42
|
+
role: "listitem",
|
|
43
|
+
"data-step": a,
|
|
44
|
+
"data-status": t,
|
|
45
|
+
"data-disabled": b || void 0,
|
|
46
|
+
"aria-current": !l && u ? "step" : void 0,
|
|
47
|
+
"aria-label": l ? void 0 : p(a, s),
|
|
48
|
+
className: "relative flex w-full items-start gap-3 overflow-visible",
|
|
49
|
+
children: [
|
|
50
|
+
/* @__PURE__ */ e(
|
|
51
|
+
"div",
|
|
52
|
+
{
|
|
53
|
+
"data-rail-slot": "",
|
|
54
|
+
className: "mt-4 flex w-4 shrink-0 items-center justify-center",
|
|
55
|
+
children: l ? /* @__PURE__ */ o(
|
|
56
|
+
"button",
|
|
57
|
+
{
|
|
58
|
+
type: "button",
|
|
59
|
+
"aria-label": p(a, s),
|
|
60
|
+
"aria-current": u ? "step" : void 0,
|
|
61
|
+
onClick: () => {
|
|
62
|
+
d?.(r);
|
|
63
|
+
},
|
|
64
|
+
className: n(
|
|
65
|
+
"flex size-4 items-center justify-center border-0 bg-transparent p-0",
|
|
66
|
+
"cursor-pointer focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-focus-ring/25"
|
|
67
|
+
),
|
|
68
|
+
children: [
|
|
69
|
+
/* @__PURE__ */ e(f, { status: t }),
|
|
70
|
+
/* @__PURE__ */ e("span", { className: "sr-only", children: i.label })
|
|
71
|
+
]
|
|
72
|
+
}
|
|
73
|
+
) : /* @__PURE__ */ e(f, { status: t })
|
|
74
|
+
}
|
|
75
|
+
),
|
|
76
|
+
/* @__PURE__ */ e("div", { className: "min-w-0 flex-1", children: m ? m({
|
|
77
|
+
step: i,
|
|
78
|
+
index: r,
|
|
79
|
+
stepNumber: a,
|
|
80
|
+
status: t
|
|
81
|
+
}) : /* @__PURE__ */ e(
|
|
82
|
+
"div",
|
|
83
|
+
{
|
|
84
|
+
"data-rail-fallback": "",
|
|
85
|
+
className: n(
|
|
86
|
+
"flex h-12 items-center rounded-lg border border-stroke-hairline bg-canvas-elevated px-4 py-2",
|
|
87
|
+
t === "default" && "text-disabled-foreground"
|
|
88
|
+
),
|
|
89
|
+
children: /* @__PURE__ */ e("span", { className: "truncate text-sm font-semibold capitalize leading-[21px]", children: i.label })
|
|
90
|
+
}
|
|
91
|
+
) })
|
|
92
|
+
]
|
|
93
|
+
},
|
|
94
|
+
r
|
|
95
|
+
);
|
|
96
|
+
})
|
|
97
|
+
]
|
|
98
|
+
}
|
|
99
|
+
);
|
|
100
|
+
}
|
|
101
|
+
);
|
|
102
|
+
S.displayName = "RailStepper";
|
|
103
|
+
export {
|
|
104
|
+
S as RailStepper
|
|
105
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { StepperProps } from '../stepper.types';
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
export declare const SummaryStepper: React.ForwardRefExoticComponent<Omit<StepperProps, "variant"> & {
|
|
4
|
+
stepAriaLabel: (stepNumber: number, total: number) => string;
|
|
5
|
+
} & React.RefAttributes<HTMLDivElement>>;
|