impact-nova 2.6.2 → 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 +21 -9
- 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/headers/components/date-filter-picker.d.ts +2 -12
- package/dist/components/data/ag-grid-react/headers/header-search-input.js +200 -207
- package/dist/components/data/ag-grid-react/index.d.ts +1 -1
- package/dist/components/data/ag-grid-react/index.js +263 -244
- 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/guidance/renderers/guidance-tour-overlay.js +48 -46
- 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/form-react/Fields/DateRangeField.js +20 -19
- package/dist/form-react/Fields/WeekRangePicker.js +36 -36
- 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
|
@@ -1,22 +1,24 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as u, jsx as o, Fragment as z } from "react/jsx-runtime";
|
|
2
2
|
import * as f from "react";
|
|
3
|
-
import { createPortal as
|
|
3
|
+
import { createPortal as $ } from "react-dom";
|
|
4
4
|
import { GuidanceStepPanel as A } from "./guidance-card-shared.js";
|
|
5
5
|
import { useGuidanceOverlayGeometry as T } from "../hooks/useGuidanceOverlayGeometry.js";
|
|
6
6
|
import { useAdvanceOnTargetClick as G, buildHighlightRectForTarget as M, computePopoverPosition as P } from "./guidance-renderer-shared.js";
|
|
7
|
-
const H = 220,
|
|
7
|
+
const H = 220, g = `motion-safe:transition-[top,left,width,height] motion-safe:duration-[${H}ms] motion-safe:ease-[cubic-bezier(0.22,1,0.36,1)]`;
|
|
8
8
|
function L({
|
|
9
9
|
highlightRect: e,
|
|
10
|
-
blocksPointerEvents:
|
|
10
|
+
blocksPointerEvents: l = !0
|
|
11
11
|
}) {
|
|
12
|
-
|
|
12
|
+
if (!l)
|
|
13
|
+
return null;
|
|
14
|
+
const a = typeof window < "u" ? window.innerWidth : 0, i = typeof window < "u" ? window.innerHeight : 0, d = Math.max(0, e.y), m = Math.max(0, e.x), r = Math.min(
|
|
13
15
|
a,
|
|
14
16
|
e.x + e.width
|
|
15
17
|
), c = Math.min(
|
|
16
|
-
|
|
18
|
+
i,
|
|
17
19
|
e.y + e.height
|
|
18
|
-
), s = Math.max(0, c - d), n =
|
|
19
|
-
return /* @__PURE__ */
|
|
20
|
+
), s = Math.max(0, c - d), n = `pointer-events-auto absolute ${g}`;
|
|
21
|
+
return /* @__PURE__ */ u(z, { children: [
|
|
20
22
|
/* @__PURE__ */ o(
|
|
21
23
|
"div",
|
|
22
24
|
{
|
|
@@ -33,7 +35,7 @@ function L({
|
|
|
33
35
|
top: c,
|
|
34
36
|
left: 0,
|
|
35
37
|
width: a,
|
|
36
|
-
height: Math.max(0,
|
|
38
|
+
height: Math.max(0, i - c)
|
|
37
39
|
},
|
|
38
40
|
"aria-hidden": "true"
|
|
39
41
|
}
|
|
@@ -45,7 +47,7 @@ function L({
|
|
|
45
47
|
style: {
|
|
46
48
|
top: d,
|
|
47
49
|
left: 0,
|
|
48
|
-
width:
|
|
50
|
+
width: m,
|
|
49
51
|
height: s
|
|
50
52
|
},
|
|
51
53
|
"aria-hidden": "true"
|
|
@@ -70,14 +72,14 @@ const w = 12, R = Math.ceil(
|
|
|
70
72
|
16 + w * Math.SQRT2 / 2
|
|
71
73
|
);
|
|
72
74
|
function _(e) {
|
|
73
|
-
const
|
|
75
|
+
const l = w / 2, a = e.placement === "left" || e.placement === "right", i = a ? e.highlightRect.y + e.highlightRect.height / 2 : e.highlightRect.x + e.highlightRect.width / 2, d = a ? e.popoverTop : e.popoverLeft, m = a ? e.popoverHeight : e.popoverWidth, r = i - d - l, c = R, s = m - R - w;
|
|
74
76
|
return s < c || r < c || r > s ? null : r;
|
|
75
77
|
}
|
|
76
78
|
function B({
|
|
77
79
|
placement: e,
|
|
78
|
-
offset:
|
|
80
|
+
offset: l
|
|
79
81
|
}) {
|
|
80
|
-
const a = e === "left" || e === "right" ? { top:
|
|
82
|
+
const a = e === "left" || e === "right" ? { top: l } : { left: l }, i = {
|
|
81
83
|
bottom: "left-0 top-0 -translate-y-1/2 border-l border-t",
|
|
82
84
|
top: "bottom-0 left-0 translate-y-1/2 border-b border-r",
|
|
83
85
|
right: "left-0 top-0 -translate-x-1/2 border-b border-l",
|
|
@@ -87,31 +89,31 @@ function B({
|
|
|
87
89
|
"span",
|
|
88
90
|
{
|
|
89
91
|
"aria-hidden": "true",
|
|
90
|
-
className: `pointer-events-none absolute z-0 size-3 rotate-45 border border-[var(--color-border-accent-muted)] bg-[var(--color-border-accent-muted)] ${
|
|
92
|
+
className: `pointer-events-none absolute z-0 size-3 rotate-45 border border-[var(--color-border-accent-muted)] bg-[var(--color-border-accent-muted)] ${i}`,
|
|
91
93
|
style: a
|
|
92
94
|
}
|
|
93
95
|
);
|
|
94
96
|
}
|
|
95
97
|
function j({
|
|
96
98
|
instruction: e,
|
|
97
|
-
overlayComponent:
|
|
99
|
+
overlayComponent: l,
|
|
98
100
|
onNext: a,
|
|
99
|
-
onSkip:
|
|
101
|
+
onSkip: i,
|
|
100
102
|
onDismiss: d,
|
|
101
|
-
onBack:
|
|
103
|
+
onBack: m
|
|
102
104
|
}) {
|
|
103
|
-
const r = e.target?.element, c = T(r, e.stepId), s = e.stepIndex + 1 >= e.totalSteps, n = G(e, a), y = n || e.advanceOn === "auto",
|
|
105
|
+
const r = e.target?.element, c = T(r, e.stepId), s = e.stepIndex + 1 >= e.totalSteps, n = G(e, a), y = n || e.advanceOn === "auto", x = f.useRef(null), k = f.useRef(null), [v, E] = f.useState({ width: 400, height: 240 }), S = f.useCallback(() => {
|
|
104
106
|
r?.click();
|
|
105
107
|
}, [r]);
|
|
106
108
|
if (f.useLayoutEffect(() => {
|
|
107
|
-
const
|
|
108
|
-
|
|
109
|
+
const p = k.current;
|
|
110
|
+
p?.parentElement === document.body && document.body.appendChild(p);
|
|
109
111
|
}, [e.stepId, y]), f.useLayoutEffect(() => {
|
|
110
|
-
const
|
|
111
|
-
if (!
|
|
112
|
+
const p = x.current;
|
|
113
|
+
if (!p)
|
|
112
114
|
return;
|
|
113
115
|
const C = () => {
|
|
114
|
-
const b =
|
|
116
|
+
const b = p.getBoundingClientRect();
|
|
115
117
|
b.width > 0 && b.height > 0 && E({
|
|
116
118
|
width: b.width,
|
|
117
119
|
height: b.height
|
|
@@ -119,7 +121,7 @@ function j({
|
|
|
119
121
|
};
|
|
120
122
|
C();
|
|
121
123
|
const N = new ResizeObserver(C);
|
|
122
|
-
return N.observe(
|
|
124
|
+
return N.observe(p), () => {
|
|
123
125
|
N.disconnect();
|
|
124
126
|
};
|
|
125
127
|
}, [e.stepId, e.content.title, e.content.body]), !c || !r || typeof document > "u")
|
|
@@ -127,35 +129,35 @@ function j({
|
|
|
127
129
|
const t = M(r);
|
|
128
130
|
if (!t)
|
|
129
131
|
return null;
|
|
130
|
-
const
|
|
132
|
+
const h = P({
|
|
131
133
|
targetRect: t,
|
|
132
134
|
popoverWidth: v.width,
|
|
133
135
|
popoverHeight: v.height,
|
|
134
136
|
preferredPlacement: e.placement
|
|
135
137
|
}), O = _({
|
|
136
|
-
placement:
|
|
137
|
-
popoverTop:
|
|
138
|
-
popoverLeft:
|
|
138
|
+
placement: h.placement,
|
|
139
|
+
popoverTop: h.top,
|
|
140
|
+
popoverLeft: h.left,
|
|
139
141
|
highlightRect: t,
|
|
140
142
|
popoverWidth: v.width,
|
|
141
143
|
popoverHeight: v.height
|
|
142
144
|
}), I = `guidance-mask-${e.stepId}`;
|
|
143
|
-
return
|
|
144
|
-
/* @__PURE__ */
|
|
145
|
+
return $(
|
|
146
|
+
/* @__PURE__ */ u(
|
|
145
147
|
"div",
|
|
146
148
|
{
|
|
147
|
-
ref:
|
|
148
|
-
"data-component":
|
|
149
|
+
ref: k,
|
|
150
|
+
"data-component": l,
|
|
149
151
|
className: "fixed inset-0 z-[60] pointer-events-none",
|
|
150
152
|
role: "presentation",
|
|
151
153
|
children: [
|
|
152
|
-
/* @__PURE__ */
|
|
154
|
+
/* @__PURE__ */ u(
|
|
153
155
|
"svg",
|
|
154
156
|
{
|
|
155
|
-
className: `pointer-events-none absolute inset-0 size-full ${
|
|
157
|
+
className: `pointer-events-none absolute inset-0 size-full ${g}`,
|
|
156
158
|
"aria-hidden": "true",
|
|
157
159
|
children: [
|
|
158
|
-
/* @__PURE__ */ o("defs", { children: /* @__PURE__ */
|
|
160
|
+
/* @__PURE__ */ o("defs", { children: /* @__PURE__ */ u("mask", { id: I, children: [
|
|
159
161
|
/* @__PURE__ */ o("rect", { width: "100%", height: "100%", fill: "white" }),
|
|
160
162
|
/* @__PURE__ */ o(
|
|
161
163
|
"rect",
|
|
@@ -166,7 +168,7 @@ function j({
|
|
|
166
168
|
height: t.height,
|
|
167
169
|
rx: "8",
|
|
168
170
|
fill: "black",
|
|
169
|
-
className:
|
|
171
|
+
className: g
|
|
170
172
|
}
|
|
171
173
|
)
|
|
172
174
|
] }) }),
|
|
@@ -207,7 +209,7 @@ function j({
|
|
|
207
209
|
"button",
|
|
208
210
|
{
|
|
209
211
|
type: "button",
|
|
210
|
-
className: `absolute z-10 cursor-pointer border-0 bg-transparent p-0 pointer-events-auto ${
|
|
212
|
+
className: `absolute z-10 cursor-pointer border-0 bg-transparent p-0 pointer-events-auto ${g}`,
|
|
211
213
|
style: {
|
|
212
214
|
top: t.y,
|
|
213
215
|
left: t.x,
|
|
@@ -221,7 +223,7 @@ function j({
|
|
|
221
223
|
/* @__PURE__ */ o(
|
|
222
224
|
"div",
|
|
223
225
|
{
|
|
224
|
-
className: `pointer-events-none absolute rounded-lg ring-2 ring-[var(--guidance-highlight-ring,var(--color-primary))] ${
|
|
226
|
+
className: `pointer-events-none absolute rounded-lg ring-2 ring-[var(--guidance-highlight-ring,var(--color-primary))] ${g}`,
|
|
225
227
|
style: {
|
|
226
228
|
top: t.y,
|
|
227
229
|
left: t.x,
|
|
@@ -230,14 +232,14 @@ function j({
|
|
|
230
232
|
}
|
|
231
233
|
}
|
|
232
234
|
),
|
|
233
|
-
/* @__PURE__ */
|
|
235
|
+
/* @__PURE__ */ u(
|
|
234
236
|
"div",
|
|
235
237
|
{
|
|
236
|
-
ref:
|
|
237
|
-
className: `pointer-events-auto absolute z-20 w-[min(400px,calc(100vw-2rem))] ${
|
|
238
|
+
ref: x,
|
|
239
|
+
className: `pointer-events-auto absolute z-20 w-[min(400px,calc(100vw-2rem))] ${g}`,
|
|
238
240
|
style: {
|
|
239
|
-
top:
|
|
240
|
-
left:
|
|
241
|
+
top: h.top,
|
|
242
|
+
left: h.left
|
|
241
243
|
},
|
|
242
244
|
role: "dialog",
|
|
243
245
|
"aria-labelledby": `guidance-tour-title-${e.stepId}`,
|
|
@@ -246,7 +248,7 @@ function j({
|
|
|
246
248
|
O !== null ? /* @__PURE__ */ o(
|
|
247
249
|
B,
|
|
248
250
|
{
|
|
249
|
-
placement:
|
|
251
|
+
placement: h.placement,
|
|
250
252
|
offset: O
|
|
251
253
|
}
|
|
252
254
|
) : null,
|
|
@@ -260,9 +262,9 @@ function j({
|
|
|
260
262
|
totalSteps: e.totalSteps,
|
|
261
263
|
skippable: e.skippable,
|
|
262
264
|
primaryActionLabel: s ? "Done" : "Next",
|
|
263
|
-
onSkip:
|
|
265
|
+
onSkip: i,
|
|
264
266
|
onDismiss: d,
|
|
265
|
-
onBack:
|
|
267
|
+
onBack: m,
|
|
266
268
|
canGoBack: e.canGoBack,
|
|
267
269
|
advanceOn: e.advanceOn,
|
|
268
270
|
onPrimaryAction: a,
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export { IrisChat, IrisChatBody, IrisChatDisclaimer, IrisChatFooter, IrisChatHeader, IrisChatHeaderBackButton, IrisChatHeaderCloseButton, IrisChatHeaderLeading, IrisChatHeaderMenuButton, IrisChatHeaderMinimizeButton, IrisChatHeaderNewChatButton, IrisChatHeaderTitle, IrisChatHeaderTrailing, IrisChatIconButton, IrisChatPanel, IrisChatTrigger, } from './iris-chat';
|
|
2
|
+
export { IrisChatComposer } from './iris-chat-composer';
|
|
3
|
+
export { IrisChatActions, IrisChatAttachment, IrisChatChip, IrisChatDay, IrisChatError, IrisChatFollowUp, IrisChatFollowUps, IrisChatGreeting, IrisChatMessage, IrisChatSuggestion, IrisChatSuggestions, IrisChatThread, IrisChatWorkflow, IrisChatWorkflows, } from './iris-chat-thread';
|
|
4
|
+
export { IrisChatCitations, IrisChatProcessSteps, IrisChatThinking, IrisChatThinkingStatus, } from './iris-chat-thinking';
|
|
5
|
+
export { IrisChatMarkdown } from './iris-chat-markdown';
|
|
6
|
+
export { IrisChatPrompt } from './iris-chat-prompt';
|
|
7
|
+
export { IrisChatArtifact, IrisChatScenario } from './iris-chat-artifact';
|
|
8
|
+
export { IrisChatList, IrisChatListItem, IrisChatMenu, IrisChatMenuSection, } from './iris-chat-menu';
|
|
9
|
+
export { useIrisChat } from './iris-chat-context';
|
|
10
|
+
export type { IrisChatActionsProps, IrisChatArtifactColumn, IrisChatArtifactProps, IrisChatArtifactRow, IrisChatAttachmentKind, IrisChatAttachmentProps, IrisChatCitationGroup, IrisChatCitationTag, IrisChatCitationsProps, IrisChatErrorProps, IrisChatComposerProps, IrisChatDisclaimerProps, IrisChatFooterProps, IrisChatFeedback, IrisChatFeedbackReason, IrisChatFilterOption, IrisChatGreetingProps, IrisChatHeaderProps, IrisChatListItemAction, IrisChatListItemProps, IrisChatMarkdownProps, IrisChatMenuSectionId, IrisChatMessageProps, IrisChatModelOption, IrisChatPanelProps, IrisChatPlacement, IrisChatProcessStep, IrisChatProcessStepsProps, IrisChatPromptProps, IrisChatProps, IrisChatRole, IrisChatScenarioProps, } from './iris-chat.types';
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { IrisChat as i, IrisChatBody as a, IrisChatDisclaimer as s, IrisChatFooter as e, IrisChatHeader as h, IrisChatHeaderBackButton as o, IrisChatHeaderCloseButton as C, IrisChatHeaderLeading as I, IrisChatHeaderMenuButton as n, IrisChatHeaderMinimizeButton as m, IrisChatHeaderNewChatButton as p, IrisChatHeaderTitle as d, IrisChatHeaderTrailing as u, IrisChatIconButton as f, IrisChatPanel as g, IrisChatTrigger as l } from "./iris-chat.js";
|
|
2
|
+
import { IrisChatComposer as x } from "./iris-chat-composer.js";
|
|
3
|
+
import { IrisChatActions as B, IrisChatAttachment as k, IrisChatChip as w, IrisChatDay as M, IrisChatError as S, IrisChatFollowUp as T, IrisChatFollowUps as A, IrisChatGreeting as F, IrisChatMessage as L, IrisChatSuggestion as P, IrisChatSuggestions as y, IrisChatThread as D, IrisChatWorkflow as U, IrisChatWorkflows as W } from "./iris-chat-thread.js";
|
|
4
|
+
import { IrisChatCitations as E, IrisChatProcessSteps as G, IrisChatThinking as N, IrisChatThinkingStatus as b } from "./iris-chat-thinking.js";
|
|
5
|
+
import { IrisChatMarkdown as q } from "./iris-chat-markdown.js";
|
|
6
|
+
import { IrisChatPrompt as J } from "./iris-chat-prompt.js";
|
|
7
|
+
import { IrisChatArtifact as O, IrisChatScenario as Q } from "./iris-chat-artifact.js";
|
|
8
|
+
import { IrisChatList as V, IrisChatListItem as X, IrisChatMenu as Y, IrisChatMenuSection as Z } from "./iris-chat-menu.js";
|
|
9
|
+
import { useIrisChat as $ } from "./iris-chat-context.js";
|
|
10
|
+
export {
|
|
11
|
+
i as IrisChat,
|
|
12
|
+
B as IrisChatActions,
|
|
13
|
+
O as IrisChatArtifact,
|
|
14
|
+
k as IrisChatAttachment,
|
|
15
|
+
a as IrisChatBody,
|
|
16
|
+
w as IrisChatChip,
|
|
17
|
+
E as IrisChatCitations,
|
|
18
|
+
x as IrisChatComposer,
|
|
19
|
+
M as IrisChatDay,
|
|
20
|
+
s as IrisChatDisclaimer,
|
|
21
|
+
S as IrisChatError,
|
|
22
|
+
T as IrisChatFollowUp,
|
|
23
|
+
A as IrisChatFollowUps,
|
|
24
|
+
e as IrisChatFooter,
|
|
25
|
+
F as IrisChatGreeting,
|
|
26
|
+
h as IrisChatHeader,
|
|
27
|
+
o as IrisChatHeaderBackButton,
|
|
28
|
+
C as IrisChatHeaderCloseButton,
|
|
29
|
+
I as IrisChatHeaderLeading,
|
|
30
|
+
n as IrisChatHeaderMenuButton,
|
|
31
|
+
m as IrisChatHeaderMinimizeButton,
|
|
32
|
+
p as IrisChatHeaderNewChatButton,
|
|
33
|
+
d as IrisChatHeaderTitle,
|
|
34
|
+
u as IrisChatHeaderTrailing,
|
|
35
|
+
f as IrisChatIconButton,
|
|
36
|
+
V as IrisChatList,
|
|
37
|
+
X as IrisChatListItem,
|
|
38
|
+
q as IrisChatMarkdown,
|
|
39
|
+
Y as IrisChatMenu,
|
|
40
|
+
Z as IrisChatMenuSection,
|
|
41
|
+
L as IrisChatMessage,
|
|
42
|
+
g as IrisChatPanel,
|
|
43
|
+
G as IrisChatProcessSteps,
|
|
44
|
+
J as IrisChatPrompt,
|
|
45
|
+
Q as IrisChatScenario,
|
|
46
|
+
P as IrisChatSuggestion,
|
|
47
|
+
y as IrisChatSuggestions,
|
|
48
|
+
N as IrisChatThinking,
|
|
49
|
+
b as IrisChatThinkingStatus,
|
|
50
|
+
D as IrisChatThread,
|
|
51
|
+
l as IrisChatTrigger,
|
|
52
|
+
U as IrisChatWorkflow,
|
|
53
|
+
W as IrisChatWorkflows,
|
|
54
|
+
$ as useIrisChat
|
|
55
|
+
};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { IrisChatArtifactProps, IrisChatScenarioProps } from './iris-chat.types';
|
|
2
|
+
declare const IrisChatArtifact: import('react').ForwardRefExoticComponent<IrisChatArtifactProps & import('react').RefAttributes<HTMLElement>>;
|
|
3
|
+
declare const IrisChatScenario: import('react').ForwardRefExoticComponent<IrisChatScenarioProps & import('react').RefAttributes<HTMLElement>>;
|
|
4
|
+
export { IrisChatArtifact, IrisChatScenario };
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
import { jsxs as r, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { Download as y, ThreeDots as v } from "impact-nova-icons";
|
|
3
|
+
import { Checkbox as C } from "../../forms/checkbox/checkbox.js";
|
|
4
|
+
import { DropdownMenu as w, DropdownMenuTrigger as j, DropdownMenuContent as k, DropdownMenuItem as p } from "../../feedback/dropdown-menu/dropdown-menu.js";
|
|
5
|
+
import { ButtonIconTooltip as x } from "../../feedback/tooltip/button-icon-tooltip.js";
|
|
6
|
+
import { Button as b } from "../../primitives/button/button.js";
|
|
7
|
+
import { useImpactNovaI18n as I } from "../../../i18n/use-impact-nova-i18n.js";
|
|
8
|
+
import { createComponent as f } from "../../../lib/primitives/create-component.js";
|
|
9
|
+
import { cn as u } from "../../../lib/utils.js";
|
|
10
|
+
function N(o, i) {
|
|
11
|
+
const a = o.map((l) => l.header).join(","), n = i.map(
|
|
12
|
+
(l) => o.map((t) => {
|
|
13
|
+
const d = l.cells[t.id];
|
|
14
|
+
return `"${(typeof d == "string" || typeof d == "number" ? String(d) : "").replaceAll('"', '""')}"`;
|
|
15
|
+
}).join(",")
|
|
16
|
+
);
|
|
17
|
+
return [a, ...n].join(`
|
|
18
|
+
`);
|
|
19
|
+
}
|
|
20
|
+
function S(o, i, a) {
|
|
21
|
+
const n = new Blob([N(i, a)], { type: "text/csv;charset=utf-8" }), l = URL.createObjectURL(n), t = document.createElement("a");
|
|
22
|
+
t.href = l, t.download = `${o.replaceAll(/\s+/g, "-").toLowerCase()}.csv`, t.click(), URL.revokeObjectURL(l);
|
|
23
|
+
}
|
|
24
|
+
const O = f(
|
|
25
|
+
"IrisChatArtifact",
|
|
26
|
+
({ className: o, title: i, columns: a, rows: n, onDownload: l, onMore: t }, d) => {
|
|
27
|
+
const { t: c } = I(), m = () => {
|
|
28
|
+
S(i, a, n), l?.();
|
|
29
|
+
}, g = () => {
|
|
30
|
+
navigator.clipboard?.writeText(N(a, n)).catch(() => {
|
|
31
|
+
}), t?.();
|
|
32
|
+
};
|
|
33
|
+
return /* @__PURE__ */ r(
|
|
34
|
+
"section",
|
|
35
|
+
{
|
|
36
|
+
ref: d,
|
|
37
|
+
"data-component": "iris-chat-artifact",
|
|
38
|
+
className: u("min-w-0 w-full max-w-full overflow-hidden rounded-xl border border-stroke-subtle", o),
|
|
39
|
+
children: [
|
|
40
|
+
/* @__PURE__ */ r("header", { className: "flex items-center justify-between gap-2 px-3 py-2", children: [
|
|
41
|
+
/* @__PURE__ */ e("h3", { className: "text-sm font-semibold text-content", children: i }),
|
|
42
|
+
/* @__PURE__ */ r("div", { className: "flex items-center gap-1", children: [
|
|
43
|
+
/* @__PURE__ */ e(x, { label: c("irisChat.download"), children: /* @__PURE__ */ e(
|
|
44
|
+
b,
|
|
45
|
+
{
|
|
46
|
+
type: "button",
|
|
47
|
+
variant: "ghost",
|
|
48
|
+
size: "iconSm",
|
|
49
|
+
"aria-label": c("irisChat.download"),
|
|
50
|
+
onClick: m,
|
|
51
|
+
children: /* @__PURE__ */ e(y, { size: 16 })
|
|
52
|
+
}
|
|
53
|
+
) }),
|
|
54
|
+
/* @__PURE__ */ r(w, { children: [
|
|
55
|
+
/* @__PURE__ */ e(x, { label: c("irisChat.moreActions"), children: /* @__PURE__ */ e(j, { asChild: !0, children: /* @__PURE__ */ e(
|
|
56
|
+
b,
|
|
57
|
+
{
|
|
58
|
+
type: "button",
|
|
59
|
+
variant: "ghost",
|
|
60
|
+
size: "iconSm",
|
|
61
|
+
"aria-label": c("irisChat.moreActions"),
|
|
62
|
+
children: /* @__PURE__ */ e(v, { size: 16 })
|
|
63
|
+
}
|
|
64
|
+
) }) }),
|
|
65
|
+
/* @__PURE__ */ r(k, { align: "end", children: [
|
|
66
|
+
/* @__PURE__ */ e(p, { onSelect: g, children: c("irisChat.copy") }),
|
|
67
|
+
/* @__PURE__ */ e(p, { onSelect: m, children: c("irisChat.download") })
|
|
68
|
+
] })
|
|
69
|
+
] })
|
|
70
|
+
] })
|
|
71
|
+
] }),
|
|
72
|
+
/* @__PURE__ */ e("div", { className: "overflow-x-auto", children: /* @__PURE__ */ r("table", { className: "w-full table-fixed border-t border-stroke-subtle text-sm", children: [
|
|
73
|
+
/* @__PURE__ */ e("thead", { className: "bg-secondary", children: /* @__PURE__ */ r("tr", { children: [
|
|
74
|
+
/* @__PURE__ */ e("th", { className: "w-10 px-3 py-2", children: /* @__PURE__ */ e("span", { className: "sr-only", children: c("aria.toggleSelection") }) }),
|
|
75
|
+
a.map((s) => /* @__PURE__ */ e(
|
|
76
|
+
"th",
|
|
77
|
+
{
|
|
78
|
+
className: "px-3 py-2 text-start font-medium text-content",
|
|
79
|
+
children: s.header
|
|
80
|
+
},
|
|
81
|
+
s.id
|
|
82
|
+
))
|
|
83
|
+
] }) }),
|
|
84
|
+
/* @__PURE__ */ e("tbody", { children: n.map((s) => /* @__PURE__ */ r("tr", { className: "border-t border-stroke-subtle", children: [
|
|
85
|
+
/* @__PURE__ */ e("td", { className: "px-3 py-2", children: /* @__PURE__ */ e(C, { "aria-label": s.id }) }),
|
|
86
|
+
a.map((h) => /* @__PURE__ */ e("td", { className: "px-3 py-2 text-content", children: s.cells[h.id] }, h.id))
|
|
87
|
+
] }, s.id)) })
|
|
88
|
+
] }) })
|
|
89
|
+
]
|
|
90
|
+
}
|
|
91
|
+
);
|
|
92
|
+
}
|
|
93
|
+
), $ = f(
|
|
94
|
+
"IrisChatScenario",
|
|
95
|
+
({ className: o, title: i, rows: a, notes: n }, l) => /* @__PURE__ */ r(
|
|
96
|
+
"section",
|
|
97
|
+
{
|
|
98
|
+
ref: l,
|
|
99
|
+
"data-component": "iris-chat-scenario",
|
|
100
|
+
className: u("flex flex-col gap-2 rounded-xl bg-secondary p-3", o),
|
|
101
|
+
children: [
|
|
102
|
+
/* @__PURE__ */ e("h3", { className: "text-sm font-semibold text-content", children: i }),
|
|
103
|
+
a.length > 0 ? /* @__PURE__ */ e("dl", { className: "flex flex-col gap-2", children: a.map((t) => /* @__PURE__ */ r(
|
|
104
|
+
"div",
|
|
105
|
+
{
|
|
106
|
+
className: "flex items-center justify-between rounded-lg border border-stroke-subtle px-3 py-2 text-sm",
|
|
107
|
+
children: [
|
|
108
|
+
/* @__PURE__ */ e("dt", { className: "text-content-secondary", children: t.label }),
|
|
109
|
+
/* @__PURE__ */ e("dd", { className: "font-medium text-content", children: t.value })
|
|
110
|
+
]
|
|
111
|
+
},
|
|
112
|
+
t.label
|
|
113
|
+
)) }) : null,
|
|
114
|
+
n?.length ? /* @__PURE__ */ e("ul", { className: "flex flex-col gap-1 text-sm text-content", children: n.map((t) => /* @__PURE__ */ r("li", { className: "flex items-start gap-2", children: [
|
|
115
|
+
/* @__PURE__ */ e("span", { "aria-hidden": !0, className: "text-brand", children: "✓" }),
|
|
116
|
+
t
|
|
117
|
+
] }, t)) }) : null
|
|
118
|
+
]
|
|
119
|
+
}
|
|
120
|
+
)
|
|
121
|
+
);
|
|
122
|
+
export {
|
|
123
|
+
O as IrisChatArtifact,
|
|
124
|
+
$ as IrisChatScenario
|
|
125
|
+
};
|