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.
Files changed (254) hide show
  1. package/dist/components/data/ag-grid-react/ag-grid-cell-components.d.ts +9 -0
  2. package/dist/components/data/ag-grid-react/ag-grid-list.d.ts +16 -0
  3. package/dist/components/data/ag-grid-react/ag-grid-list.js +23 -0
  4. package/dist/components/data/ag-grid-react/ag-grid.types.d.ts +7 -0
  5. package/dist/components/data/ag-grid-react/cell-renderers/editors/list-select-cell-editor.d.ts +14 -0
  6. package/dist/components/data/ag-grid-react/cell-renderers/editors/list-select-cell-editor.js +70 -0
  7. package/dist/components/data/ag-grid-react/cell-renderers/editors/select-cell-editor.d.ts +10 -5
  8. package/dist/components/data/ag-grid-react/cell-renderers/editors/select-cell-editor.js +73 -41
  9. package/dist/components/data/ag-grid-react/cell-renderers/index.d.ts +7 -0
  10. package/dist/components/data/ag-grid-react/cell-renderers/index.js +42 -36
  11. package/dist/components/data/ag-grid-react/cell-renderers/list-select-display-renderer.d.ts +19 -0
  12. package/dist/components/data/ag-grid-react/cell-renderers/list-select-display-renderer.js +89 -0
  13. package/dist/components/data/ag-grid-react/cell-renderers/select-ai-insight-affordance.d.ts +28 -0
  14. package/dist/components/data/ag-grid-react/cell-renderers/select-ai-insight-affordance.js +96 -0
  15. package/dist/components/data/ag-grid-react/cell-renderers/select-display-renderer.d.ts +30 -10
  16. package/dist/components/data/ag-grid-react/cell-renderers/select-display-renderer.js +72 -24
  17. package/dist/components/data/ag-grid-react/cell-renderers/style-description-display-renderer.d.ts +42 -0
  18. package/dist/components/data/ag-grid-react/cell-renderers/style-description-display-renderer.js +86 -0
  19. package/dist/components/data/ag-grid-react/index.d.ts +1 -1
  20. package/dist/components/data/ag-grid-react/index.js +162 -146
  21. package/dist/components/data/data-table/data-table.js +85 -82
  22. package/dist/components/data/data-table/data-table.types.d.ts +5 -0
  23. package/dist/components/data/expandable-list-item/expandable-list-item-attributes.js +2 -3
  24. package/dist/components/data/expandable-list-item/expandable-list-item-metrics.js +2 -3
  25. package/dist/components/data/expandable-list-item/sku-next-page-coordinator.d.ts +14 -0
  26. package/dist/components/data/expandable-list-item/sku-strip-lookahead.d.ts +26 -0
  27. package/dist/components/data/expandable-list-item/useServerSkuInfinitePages.d.ts +10 -0
  28. package/dist/components/data/expandable-list-item/useSkuStripVirtualizer.d.ts +30 -0
  29. package/dist/components/data/expandable-list-item/virtualized-responsive-grid.catalog.d.ts +81 -0
  30. package/dist/components/data/expandable-list-item/virtualized-responsive-grid.item-grid.d.ts +1 -0
  31. package/dist/components/data/expandable-list-item/virtualized-responsive-grid.product-card.d.ts +7 -0
  32. package/dist/components/data/expandable-list-item/virtualized-responsive-grid.sku-picker.d.ts +2 -0
  33. package/dist/components/data-display/chart/chart-heatmap-demos.d.ts +3 -0
  34. package/dist/components/data-display/chart/chart-heatmap-play.d.ts +9 -0
  35. package/dist/components/data-display/chart/chart.category-cluster-heatmap.stories-data.d.ts +22 -0
  36. package/dist/components/data-display/chart/chart.diverging-heatmap.stories-data.d.ts +43 -0
  37. package/dist/components/data-display/chart/chart.js +100 -93
  38. package/dist/components/data-display/chart/chart.types.d.ts +10 -0
  39. package/dist/components/data-display/chart/chart.utils.d.ts +14 -2
  40. package/dist/components/data-display/chart/chart.utils.js +132 -35
  41. package/dist/components/data-display/chart/index.js +15 -13
  42. package/dist/components/data-display/chart/resolve-highcharts-options.js +19 -14
  43. package/dist/components/data-display/globe-map/globe-map.d.ts +8 -0
  44. package/dist/components/data-display/globe-map/globe-map.js +161 -0
  45. package/dist/components/data-display/globe-map/globe-map.stories-data.d.ts +12 -0
  46. package/dist/components/data-display/globe-map/globe-map.types.d.ts +83 -0
  47. package/dist/components/data-display/globe-map/globe-map.utils.d.ts +115 -0
  48. package/dist/components/data-display/globe-map/globe-map.utils.js +259 -0
  49. package/dist/components/data-display/globe-map/globe-map.variants.d.ts +19 -0
  50. package/dist/components/data-display/globe-map/globe-map.variants.js +80 -0
  51. package/dist/components/data-display/globe-map/index.d.ts +2 -0
  52. package/dist/components/data-display/globe-map/index.js +10 -0
  53. package/dist/components/data-display/globe-map/internals/globe-countries-110m.json.d.ts +4 -0
  54. package/dist/components/data-display/globe-map/internals/globe-countries-110m.json.js +7 -0
  55. package/dist/components/data-display/globe-map/internals/globe-map-context.d.ts +25 -0
  56. package/dist/components/data-display/globe-map/internals/globe-map-context.js +19 -0
  57. package/dist/components/data-display/globe-map/internals/globe-map-legend.d.ts +2 -0
  58. package/dist/components/data-display/globe-map/internals/globe-map-legend.js +51 -0
  59. package/dist/components/data-display/globe-map/internals/globe-map-point-card-carousel.d.ts +6 -0
  60. package/dist/components/data-display/globe-map/internals/globe-map-point-card-carousel.js +119 -0
  61. package/dist/components/data-display/globe-map/internals/globe-map-point-card.d.ts +2 -0
  62. package/dist/components/data-display/globe-map/internals/globe-map-point-card.js +106 -0
  63. package/dist/components/data-display/globe-map/internals/globe-map-scene.d.ts +17 -0
  64. package/dist/components/data-display/globe-map/internals/globe-map-scene.js +218 -0
  65. package/dist/components/data-display/globe-map/internals/globe-map-tooltip.d.ts +2 -0
  66. package/dist/components/data-display/globe-map/internals/globe-map-tooltip.js +33 -0
  67. package/dist/components/data-display/globe-map/internals/use-globe-map-scene.d.ts +45 -0
  68. package/dist/components/data-display/globe-map/internals/use-globe-map-scene.js +270 -0
  69. package/dist/components/data-display/hex-tilemap/hex-tilemap.d.ts +9 -0
  70. package/dist/components/data-display/hex-tilemap/hex-tilemap.js +94 -0
  71. package/dist/components/data-display/hex-tilemap/hex-tilemap.stories-data.d.ts +7 -0
  72. package/dist/components/data-display/hex-tilemap/hex-tilemap.types.d.ts +43 -0
  73. package/dist/components/data-display/hex-tilemap/hex-tilemap.variants.d.ts +11 -0
  74. package/dist/components/data-display/hex-tilemap/hex-tilemap.variants.js +47 -0
  75. package/dist/components/data-display/hex-tilemap/index.d.ts +2 -0
  76. package/dist/components/data-display/hex-tilemap/index.js +12 -0
  77. package/dist/components/data-display/hex-tilemap/internals/hex-camera.d.ts +40 -0
  78. package/dist/components/data-display/hex-tilemap/internals/hex-camera.js +103 -0
  79. package/dist/components/data-display/hex-tilemap/internals/hex-country-lattices.d.ts +9 -0
  80. package/dist/components/data-display/hex-tilemap/internals/hex-country-lattices.js +1387 -0
  81. package/dist/components/data-display/hex-tilemap/internals/hex-geometry.d.ts +21 -0
  82. package/dist/components/data-display/hex-tilemap/internals/hex-geometry.js +82 -0
  83. package/dist/components/data-display/hex-tilemap/internals/hex-lattice.d.ts +18 -0
  84. package/dist/components/data-display/hex-tilemap/internals/hex-lattice.js +47 -0
  85. package/dist/components/data-display/hex-tilemap/internals/hex-layout.d.ts +10 -0
  86. package/dist/components/data-display/hex-tilemap/internals/hex-layout.js +35 -0
  87. package/dist/components/data-display/hex-tilemap/internals/hex-new-zealand-grid.d.ts +31 -0
  88. package/dist/components/data-display/hex-tilemap/internals/hex-new-zealand-grid.js +138 -0
  89. package/dist/components/data-display/hex-tilemap/internals/hex-regions.d.ts +6 -0
  90. package/dist/components/data-display/hex-tilemap/internals/hex-regions.js +18 -0
  91. package/dist/components/data-display/hex-tilemap/internals/hex-tilemap-context.d.ts +24 -0
  92. package/dist/components/data-display/hex-tilemap/internals/hex-tilemap-context.js +19 -0
  93. package/dist/components/data-display/hex-tilemap/internals/hex-tilemap-legend.d.ts +2 -0
  94. package/dist/components/data-display/hex-tilemap/internals/hex-tilemap-legend.js +51 -0
  95. package/dist/components/data-display/hex-tilemap/internals/hex-tilemap-tooltip.d.ts +2 -0
  96. package/dist/components/data-display/hex-tilemap/internals/hex-tilemap-tooltip.js +36 -0
  97. package/dist/components/data-display/hex-tilemap/internals/hex-tilemap-viewport.d.ts +3 -0
  98. package/dist/components/data-display/hex-tilemap/internals/hex-tilemap-viewport.js +147 -0
  99. package/dist/components/data-display/hex-tilemap/internals/hex-tilemap-zoom.d.ts +13 -0
  100. package/dist/components/data-display/hex-tilemap/internals/hex-tilemap-zoom.js +99 -0
  101. package/dist/components/data-display/hex-tilemap/internals/hex-world-grid.d.ts +8 -0
  102. package/dist/components/data-display/hex-tilemap/internals/use-hex-camera.d.ts +27 -0
  103. package/dist/components/data-display/hex-tilemap/internals/use-hex-camera.js +137 -0
  104. package/dist/components/data-display/notch-card/index.d.ts +2 -0
  105. package/dist/components/data-display/notch-card/index.js +6 -0
  106. package/dist/components/data-display/notch-card/notch-card.d.ts +7 -0
  107. package/dist/components/data-display/notch-card/notch-card.js +151 -0
  108. package/dist/components/data-display/notch-card/notch-card.path.d.ts +19 -0
  109. package/dist/components/data-display/notch-card/notch-card.path.js +118 -0
  110. package/dist/components/data-display/notch-card/notch-card.types.d.ts +15 -0
  111. package/dist/components/data-display/notch-card/notch-card.variants.d.ts +15 -0
  112. package/dist/components/data-display/notch-card/notch-card.variants.js +86 -0
  113. package/dist/components/feedback/hover-card/hover-card.d.ts +3 -1
  114. package/dist/components/feedback/hover-card/hover-card.js +28 -24
  115. package/dist/components/feedback/tooltip/overflow-tooltip.d.ts +1 -1
  116. package/dist/components/feedback/tooltip/overflow-tooltip.js +63 -57
  117. package/dist/components/feedback/tooltip/overflow-tooltip.types.d.ts +4 -0
  118. package/dist/components/feedback/tooltip/tab-tooltip-render.js +2 -3
  119. package/dist/components/flows/command-palette/shortcut-settings.js +10 -10
  120. package/dist/components/flows/filter-panel/filter-panel.js +4 -4
  121. package/dist/components/flows/filter-strip/index.d.ts +1 -0
  122. package/dist/components/flows/filter-strip/index.js +4 -2
  123. package/dist/components/flows/iris-chat/index.d.ts +10 -0
  124. package/dist/components/flows/iris-chat/index.js +55 -0
  125. package/dist/components/flows/iris-chat/iris-chat-artifact.d.ts +4 -0
  126. package/dist/components/flows/iris-chat/iris-chat-artifact.js +125 -0
  127. package/dist/components/flows/iris-chat/iris-chat-composer.d.ts +3 -0
  128. package/dist/components/flows/iris-chat/iris-chat-composer.js +297 -0
  129. package/dist/components/flows/iris-chat/iris-chat-context.d.ts +14 -0
  130. package/dist/components/flows/iris-chat/iris-chat-context.js +23 -0
  131. package/dist/components/flows/iris-chat/iris-chat-icons.d.ts +18 -0
  132. package/dist/components/flows/iris-chat/iris-chat-icons.js +176 -0
  133. package/dist/components/flows/iris-chat/iris-chat-markdown.d.ts +3 -0
  134. package/dist/components/flows/iris-chat/iris-chat-markdown.js +62 -0
  135. package/dist/components/flows/iris-chat/iris-chat-menu.d.ts +15 -0
  136. package/dist/components/flows/iris-chat/iris-chat-menu.js +259 -0
  137. package/dist/components/flows/iris-chat/iris-chat-prompt.d.ts +3 -0
  138. package/dist/components/flows/iris-chat/iris-chat-prompt.js +46 -0
  139. package/dist/components/flows/iris-chat/iris-chat-thinking.d.ts +12 -0
  140. package/dist/components/flows/iris-chat/iris-chat-thinking.js +202 -0
  141. package/dist/components/flows/iris-chat/iris-chat-thread.d.ts +37 -0
  142. package/dist/components/flows/iris-chat/iris-chat-thread.js +493 -0
  143. package/dist/components/flows/iris-chat/iris-chat.d.ts +43 -0
  144. package/dist/components/flows/iris-chat/iris-chat.js +336 -0
  145. package/dist/components/flows/iris-chat/iris-chat.types.d.ts +208 -0
  146. package/dist/components/flows/iris-chat/iris-chat.variants.d.ts +14 -0
  147. package/dist/components/flows/iris-chat/iris-chat.variants.js +78 -0
  148. package/dist/components/flows/iris-chat/read-iris-greeting-period.d.ts +4 -0
  149. package/dist/components/flows/iris-chat/read-iris-greeting-period.js +16 -0
  150. package/dist/components/flows/wizard/index.d.ts +2 -2
  151. package/dist/components/flows/wizard/index.js +17 -13
  152. package/dist/components/flows/wizard/wizard-context.d.ts +6 -1
  153. package/dist/components/flows/wizard/wizard-context.js +15 -7
  154. package/dist/components/flows/wizard/wizard.d.ts +22 -4
  155. package/dist/components/flows/wizard/wizard.js +278 -174
  156. package/dist/components/flows/wizard/wizard.types.d.ts +40 -0
  157. package/dist/components/forms/choice-card/assets/featured-backdrop-baked.webp.js +4 -0
  158. package/dist/components/forms/choice-card/assets/featured-noise.webp.js +4 -0
  159. package/dist/components/forms/choice-card/choice-card-featured-arcs.d.ts +4 -0
  160. package/dist/components/forms/choice-card/choice-card-featured-arcs.js +42 -0
  161. package/dist/components/forms/choice-card/choice-card-featured-backdrop.d.ts +4 -0
  162. package/dist/components/forms/choice-card/choice-card-featured-backdrop.js +45 -0
  163. package/dist/components/forms/choice-card/choice-card-indicator.variants.d.ts +8 -0
  164. package/dist/components/forms/choice-card/choice-card-indicator.variants.js +5 -0
  165. package/dist/components/forms/choice-card/choice-card-percent.d.ts +11 -0
  166. package/dist/components/forms/choice-card/choice-card-percent.js +80 -0
  167. package/dist/components/forms/choice-card/choice-card.d.ts +40 -3
  168. package/dist/components/forms/choice-card/choice-card.js +651 -170
  169. package/dist/components/forms/choice-card/choice-card.types.d.ts +40 -0
  170. package/dist/components/forms/choice-card/choice-card.variants.d.ts +7 -0
  171. package/dist/components/forms/choice-card/choice-card.variants.js +100 -0
  172. package/dist/components/forms/choice-card/index.d.ts +2 -1
  173. package/dist/components/forms/choice-card/index.js +27 -10
  174. package/dist/components/forms/select/components/SelectTriggerValue.js +2 -3
  175. package/dist/components/forms/select/components/Submenu.js +2 -3
  176. package/dist/components/layout/header/header.d.ts +3 -2
  177. package/dist/components/layout/header/header.js +67 -47
  178. package/dist/components/layout/header/header.types.d.ts +1 -0
  179. package/dist/components/primitives/iris/iris-agent-cursor.d.ts +3 -0
  180. package/dist/components/primitives/iris/iris-agent-cursor.js +89 -0
  181. package/dist/components/primitives/iris/iris-alan-gradient-icon.d.ts +5 -0
  182. package/dist/components/primitives/iris/iris-alan-gradient-icon.js +69 -0
  183. package/dist/components/primitives/iris/iris-control-context.d.ts +15 -0
  184. package/dist/components/primitives/iris/iris-control-context.js +44 -0
  185. package/dist/components/primitives/iris/iris-control-region.d.ts +10 -0
  186. package/dist/components/primitives/iris/iris-control-region.js +102 -0
  187. package/dist/components/primitives/iris/iris-control.types.d.ts +24 -0
  188. package/dist/components/primitives/iris/iris-control.variants.d.ts +4 -0
  189. package/dist/components/primitives/iris/iris-control.variants.js +20 -0
  190. package/dist/components/primitives/iris/iris.d.ts +24 -0
  191. package/dist/components/primitives/iris/iris.js +232 -0
  192. package/dist/components/primitives/iris/iris.types.d.ts +35 -0
  193. package/dist/components/primitives/iris/iris.variants.d.ts +30 -0
  194. package/dist/components/primitives/iris/iris.variants.js +120 -0
  195. package/dist/components/primitives/stepper/internals/pipeline-current-mark.d.ts +6 -0
  196. package/dist/components/primitives/stepper/internals/pipeline-current-mark.js +35 -0
  197. package/dist/components/primitives/stepper/internals/rail-status-dot.d.ts +13 -0
  198. package/dist/components/primitives/stepper/internals/rail-status-dot.js +70 -0
  199. package/dist/components/primitives/stepper/internals/step-hit-target.d.ts +15 -0
  200. package/dist/components/primitives/stepper/internals/step-hit-target.js +51 -0
  201. package/dist/components/primitives/stepper/internals/step-model.d.ts +3 -0
  202. package/dist/components/primitives/stepper/internals/step-model.js +10 -0
  203. package/dist/components/primitives/stepper/internals/stepper-compact.d.ts +5 -0
  204. package/dist/components/primitives/stepper/internals/stepper-compact.js +68 -0
  205. package/dist/components/primitives/stepper/internals/stepper-pipeline.d.ts +7 -0
  206. package/dist/components/primitives/stepper/internals/stepper-pipeline.js +87 -0
  207. package/dist/components/primitives/stepper/internals/stepper-rail.d.ts +5 -0
  208. package/dist/components/primitives/stepper/internals/stepper-rail.js +105 -0
  209. package/dist/components/primitives/stepper/internals/stepper-summary.d.ts +5 -0
  210. package/dist/components/primitives/stepper/internals/stepper-summary.js +103 -0
  211. package/dist/components/primitives/stepper/internals/stepper-track.d.ts +8 -0
  212. package/dist/components/primitives/stepper/internals/stepper-track.js +170 -0
  213. package/dist/components/primitives/stepper/stepper.d.ts +1 -0
  214. package/dist/components/primitives/stepper/stepper.js +134 -52
  215. package/dist/components/primitives/stepper/stepper.types.d.ts +17 -0
  216. package/dist/components/primitives/stepper/stepper.variants.d.ts +26 -0
  217. package/dist/components/primitives/stepper/stepper.variants.js +165 -5
  218. package/dist/components/primitives/tabs/tabs.d.ts +4 -1
  219. package/dist/components/primitives/tabs/tabs.js +131 -59
  220. package/dist/components/primitives/tabs/tabs.types.d.ts +5 -1
  221. package/dist/i18n/defaultMessages.d.ts +100 -0
  222. package/dist/i18n/defaultMessages.js +118 -21
  223. package/dist/i18n/index.d.ts +1 -1
  224. package/dist/i18n/locales/de.js +99 -2
  225. package/dist/i18n/locales/es.js +99 -2
  226. package/dist/i18n/locales/hi.js +99 -2
  227. package/dist/i18n/locales/kn.js +99 -2
  228. package/dist/impact-nova-components.css +972 -2
  229. package/dist/impact-nova-tokens.scss +109 -1
  230. package/dist/impact-nova.css +1 -1
  231. package/dist/index.d.ts +1 -1
  232. package/dist/index.js +585 -551
  233. package/dist/lib/virtualized/directional-range-extractor.d.ts +26 -0
  234. package/dist/lib/virtualized/directional-range-extractor.js +39 -0
  235. package/dist/lib/virtualized/index.d.ts +3 -0
  236. package/dist/lib/virtualized/index.js +35 -27
  237. package/dist/lib/virtualized/scroll-seek.d.ts +61 -0
  238. package/dist/lib/virtualized/scroll-seek.js +61 -0
  239. package/dist/lib/virtualized/usePaintedRangeVirtualizer.d.ts +19 -0
  240. package/dist/lib/virtualized/usePaintedRangeVirtualizer.js +30 -0
  241. package/dist/lib/virtualized/useResponsiveColumnCount.d.ts +35 -0
  242. package/dist/lib/virtualized/useResponsiveColumnCount.js +51 -0
  243. package/dist/lib/virtualized/useScrollSeekPaintedRange.d.ts +13 -0
  244. package/dist/lib/virtualized/useScrollSeekPaintedRange.js +45 -0
  245. package/dist/lib/virtualized/useVirtualizedList.d.ts +7 -0
  246. package/dist/lib/virtualized/useVirtualizedList.js +89 -87
  247. package/dist/lib/virtualized/useVirtualizedRows.d.ts +9 -2
  248. package/dist/lib/virtualized/useVirtualizedRows.js +15 -13
  249. package/dist/lib/virtualized/virtualized.types.d.ts +2 -0
  250. package/dist/llms/rules/installation.js +1 -1
  251. package/dist/llms/rules/requirements.js +1 -1
  252. package/dist/tailwind.config.js +3 -1
  253. package/dist/theme/tailwind-colors.js +2 -1
  254. package/package.json +39 -4
@@ -0,0 +1,493 @@
1
+ import { jsxs as o, jsx as e, Fragment as W } from "react/jsx-runtime";
2
+ import { useState as g } from "react";
3
+ import { Cross as U, ChevronRight as z } from "impact-nova-icons";
4
+ import { Popover as K, PopoverTrigger as H, PopoverContent as L, PopoverHeader as R, PopoverTitle as V, PopoverBody as q } from "../../feedback/popover/popover.js";
5
+ import { ButtonIconTooltip as f } from "../../feedback/tooltip/button-icon-tooltip.js";
6
+ import { Alert as J, AlertIcon as Q, AlertTitle as X, AlertDescription as Y } from "../../feedback/alert/alert.js";
7
+ import { Button as p } from "../../primitives/button/button.js";
8
+ import { IrisAlanGradientIcon as _ } from "../../primitives/iris/iris-alan-gradient-icon.js";
9
+ import { useImpactNovaI18n as b } from "../../../i18n/use-impact-nova-i18n.js";
10
+ import { createComponent as d } from "../../../lib/primitives/create-component.js";
11
+ import { cn as c } from "../../../lib/utils.js";
12
+ import { IrisChatLikeIcon as Z, IrisChatDislikeIcon as E, IrisChatCopyIcon as $, IrisChatSpeakIcon as ee, IrisChatRetryIcon as te, IrisChatAttachIcon as ae, IrisChatSuggestIcon as se } from "./iris-chat-icons.js";
13
+ import { useIrisChatOptional as re } from "./iris-chat-context.js";
14
+ import { irisChatMessageVariants as ie } from "./iris-chat.variants.js";
15
+ import { readIrisGreetingPeriod as ne, readIrisGreetingMark as oe, readIrisGreetingMessageKey as le } from "./read-iris-greeting-period.js";
16
+ const we = d(
17
+ "IrisChatGreeting",
18
+ ({ className: r, name: a, greeting: t, subtitle: s, children: n, mark: l }, x) => {
19
+ const { t: u } = b(), C = re(), m = C?.placement === "minimized" || C?.placement === "composer", y = ne(), w = l ?? oe(), i = t ?? u(le(y)), k = m ? "text-lg font-semibold leading-6 text-content" : "text-[26px] font-semibold leading-[46.8px] text-content", v = m ? "bg-clip-text text-lg font-extrabold leading-6 text-transparent" : "bg-clip-text text-[26px] font-extrabold leading-[46.8px] text-transparent";
20
+ return /* @__PURE__ */ o(
21
+ "div",
22
+ {
23
+ ref: x,
24
+ "data-component": "iris-chat-greeting",
25
+ "data-compact": m ? "" : void 0,
26
+ className: c(
27
+ "relative flex flex-col items-center justify-center text-center",
28
+ m ? "gap-1.5 py-4" : "gap-2 py-8",
29
+ "bg-[radial-gradient(ellipse_80%_70%_at_50%_45%,var(--color-iris-menu-surface-from),transparent_70%),radial-gradient(ellipse_70%_50%_at_50%_85%,color-mix(in_srgb,var(--color-iris-control-glow-cyan)_16%,transparent),transparent_72%)]",
30
+ r
31
+ ),
32
+ children: [
33
+ /* @__PURE__ */ e(_, { size: m ? 56 : 84 }),
34
+ /* @__PURE__ */ o("div", { className: "flex flex-wrap items-center justify-center gap-1", children: [
35
+ /* @__PURE__ */ e("p", { className: k, children: i }),
36
+ a ? /* @__PURE__ */ e(
37
+ "p",
38
+ {
39
+ className: v,
40
+ style: {
41
+ backgroundImage: "linear-gradient(90deg, var(--color-header-bot-gradient-orange), var(--color-header-bot-gradient-purple))"
42
+ },
43
+ children: a
44
+ }
45
+ ) : null,
46
+ /* @__PURE__ */ e("span", { "aria-hidden": !0, className: m ? "text-base" : "text-[23px]", children: w })
47
+ ] }),
48
+ /* @__PURE__ */ e(
49
+ "p",
50
+ {
51
+ className: m ? "max-w-[20rem] text-sm font-medium leading-5 text-content-caption" : "text-base font-medium leading-5 text-content-caption",
52
+ children: s ?? u("irisChat.greetingSubtitle")
53
+ }
54
+ ),
55
+ n
56
+ ]
57
+ }
58
+ );
59
+ }
60
+ ), ze = d("IrisChatSuggestions", ({ className: r, children: a, ...t }, s) => {
61
+ const { t: n } = b();
62
+ return /* @__PURE__ */ o(
63
+ "div",
64
+ {
65
+ ref: s,
66
+ "data-component": "iris-chat-suggestions",
67
+ className: c(
68
+ "flex flex-col gap-2 bg-[radial-gradient(ellipse_at_center,color-mix(in_srgb,var(--color-iris-control-glow-cyan)_12%,transparent),transparent_72%)] pb-6",
69
+ r
70
+ ),
71
+ ...t,
72
+ children: [
73
+ /* @__PURE__ */ e("p", { className: "text-xs font-medium capitalize leading-4 text-content-secondary", children: n("irisChat.suggested") }),
74
+ /* @__PURE__ */ e("div", { className: "flex flex-col gap-2", children: a })
75
+ ]
76
+ }
77
+ );
78
+ }), _e = d(
79
+ "IrisChatSuggestion",
80
+ ({ className: r, children: a, type: t = "button", ...s }, n) => /* @__PURE__ */ o(
81
+ "button",
82
+ {
83
+ ref: n,
84
+ type: t,
85
+ "data-component": "iris-chat-suggestion",
86
+ className: c(
87
+ "flex h-8 items-center gap-1 rounded-md px-2 text-start text-sm font-medium leading-5 text-content-secondary hover:bg-accent",
88
+ r
89
+ ),
90
+ ...s,
91
+ children: [
92
+ /* @__PURE__ */ e(se, { size: 14 }),
93
+ /* @__PURE__ */ e("span", { className: "truncate", children: a })
94
+ ]
95
+ }
96
+ )
97
+ ), Ae = d("IrisChatWorkflows", ({ className: r, children: a, onShowMore: t, ...s }, n) => {
98
+ const { t: l } = b();
99
+ return /* @__PURE__ */ o(
100
+ "div",
101
+ {
102
+ ref: n,
103
+ "data-component": "iris-chat-workflows",
104
+ className: c("flex flex-col gap-2 pb-6", r),
105
+ ...s,
106
+ children: [
107
+ /* @__PURE__ */ e("p", { className: "text-xs font-medium capitalize leading-4 text-content-secondary", children: l("irisChat.suggestedWorkflows") }),
108
+ /* @__PURE__ */ e("div", { className: "flex flex-col", children: a }),
109
+ t ? /* @__PURE__ */ o(
110
+ p,
111
+ {
112
+ type: "button",
113
+ variant: "link",
114
+ className: "h-auto justify-start px-0 text-sm",
115
+ onClick: t,
116
+ children: [
117
+ l("irisChat.showMore"),
118
+ /* @__PURE__ */ e(z, { size: 16, className: "rotate-90" })
119
+ ]
120
+ }
121
+ ) : null
122
+ ]
123
+ }
124
+ );
125
+ }), Se = d(
126
+ "IrisChatWorkflow",
127
+ ({ className: r, title: a, description: t, type: s = "button", ...n }, l) => /* @__PURE__ */ o(
128
+ "button",
129
+ {
130
+ ref: l,
131
+ type: s,
132
+ "data-component": "iris-chat-workflow",
133
+ className: c(
134
+ "flex items-center gap-2 rounded-md py-2 text-start hover:bg-accent",
135
+ r
136
+ ),
137
+ ...n,
138
+ children: [
139
+ /* @__PURE__ */ e(_, { size: 16 }),
140
+ /* @__PURE__ */ o("span", { className: "min-w-0 flex-1", children: [
141
+ /* @__PURE__ */ e("span", { className: "block truncate text-sm font-medium text-content", children: a }),
142
+ t ? /* @__PURE__ */ e("span", { className: "block truncate text-xs text-content-caption", children: t }) : null
143
+ ] }),
144
+ /* @__PURE__ */ e(z, { size: 16, className: "text-content-secondary" })
145
+ ]
146
+ }
147
+ )
148
+ ), Te = d(
149
+ "IrisChatThread",
150
+ ({ className: r, ...a }, t) => /* @__PURE__ */ e(
151
+ "div",
152
+ {
153
+ ref: t,
154
+ "data-component": "iris-chat-thread",
155
+ role: "log",
156
+ "aria-live": "polite",
157
+ "aria-relevant": "additions",
158
+ className: c("flex min-w-0 w-full flex-col gap-4 py-4", r),
159
+ ...a
160
+ }
161
+ )
162
+ ), je = d(
163
+ "IrisChatDay",
164
+ ({ className: r, children: a, ...t }, s) => /* @__PURE__ */ e(
165
+ "div",
166
+ {
167
+ ref: s,
168
+ "data-component": "iris-chat-day",
169
+ className: c("flex justify-center", r),
170
+ ...t,
171
+ children: /* @__PURE__ */ e("span", { className: "rounded-full bg-secondary px-3 py-1 text-xs font-medium text-content-secondary", children: a })
172
+ }
173
+ )
174
+ ), Pe = d(
175
+ "IrisChatMessage",
176
+ ({ className: r, role: a, time: t, children: s, ...n }, l) => /* @__PURE__ */ o(
177
+ "article",
178
+ {
179
+ ref: l,
180
+ "data-component": "iris-chat-message",
181
+ "data-role": a,
182
+ className: c(
183
+ "flex min-w-0 w-full flex-col gap-1",
184
+ a === "user" ? "items-end" : "items-start",
185
+ r
186
+ ),
187
+ ...n,
188
+ children: [
189
+ /* @__PURE__ */ e("div", { "data-slot": "bubble", className: ie({ role: a }), children: s }),
190
+ t ? /* @__PURE__ */ e("time", { className: "px-1 text-[10px] leading-4 text-content-caption", children: t }) : null
191
+ ]
192
+ }
193
+ )
194
+ ), ce = ["notAsked", "tone", "incorrect", "other"], Ee = d(
195
+ "IrisChatActions",
196
+ ({
197
+ className: r,
198
+ liked: a,
199
+ disliked: t,
200
+ copyText: s,
201
+ onLike: n,
202
+ onDislike: l,
203
+ onCopy: x,
204
+ onRetry: u,
205
+ onSpeak: C,
206
+ onFeedback: m,
207
+ ...y
208
+ }, w) => {
209
+ const { t: i } = b(), [k, v] = g(!1), [N, I] = g(!1), [G, A] = g(!1), [S, F] = g("notAsked"), [T, j] = g(""), [M, P] = g(!1), O = {
210
+ notAsked: i("irisChat.feedbackNotAsked"),
211
+ tone: i("irisChat.feedbackTone"),
212
+ incorrect: i("irisChat.feedbackIncorrect"),
213
+ other: i("irisChat.feedbackOther")
214
+ }, B = () => {
215
+ s && navigator.clipboard?.writeText(s).catch(() => {
216
+ }), x?.(), v(!0), window.setTimeout(() => v(!1), 1600);
217
+ }, D = () => {
218
+ if (C) {
219
+ C();
220
+ return;
221
+ }
222
+ if (!s || typeof window.speechSynthesis > "u")
223
+ return;
224
+ if (N) {
225
+ window.speechSynthesis.cancel(), I(!1);
226
+ return;
227
+ }
228
+ const h = new SpeechSynthesisUtterance(s);
229
+ h.onend = () => I(!1), h.onerror = () => I(!1), window.speechSynthesis.speak(h), I(!0);
230
+ };
231
+ return /* @__PURE__ */ o(
232
+ "div",
233
+ {
234
+ ref: w,
235
+ "data-component": "iris-chat-actions",
236
+ className: c("flex items-center gap-0.5", r),
237
+ ...y,
238
+ children: [
239
+ /* @__PURE__ */ e(f, { label: i("irisChat.like"), children: /* @__PURE__ */ e(
240
+ p,
241
+ {
242
+ type: "button",
243
+ variant: "ghost",
244
+ size: "icon",
245
+ "aria-label": i("irisChat.like"),
246
+ "aria-pressed": a,
247
+ className: c(a && "text-brand"),
248
+ onClick: n,
249
+ children: /* @__PURE__ */ e(Z, { size: 16 })
250
+ }
251
+ ) }),
252
+ m ? /* @__PURE__ */ o(
253
+ K,
254
+ {
255
+ open: G,
256
+ onOpenChange: (h) => {
257
+ A(h), h || (P(!1), j(""));
258
+ },
259
+ children: [
260
+ /* @__PURE__ */ e(f, { label: i("irisChat.dislike"), children: /* @__PURE__ */ e(H, { asChild: !0, children: /* @__PURE__ */ e(
261
+ p,
262
+ {
263
+ type: "button",
264
+ variant: "ghost",
265
+ size: "icon",
266
+ "aria-label": i("irisChat.dislike"),
267
+ "aria-pressed": t,
268
+ className: c(t && "text-brand"),
269
+ onClick: l,
270
+ children: /* @__PURE__ */ e(E, { size: 16 })
271
+ }
272
+ ) }) }),
273
+ /* @__PURE__ */ e(L, { align: "start", side: "top", className: "w-[320px] rounded-xl p-4", children: M ? /* @__PURE__ */ e("p", { className: "text-sm font-medium text-content", children: i("irisChat.feedbackThanks") }) : /* @__PURE__ */ o(W, { children: [
274
+ /* @__PURE__ */ e(R, { className: "mb-3", children: /* @__PURE__ */ e(V, { className: "text-sm font-semibold", children: i("irisChat.feedbackTitle") }) }),
275
+ /* @__PURE__ */ o(q, { className: "flex flex-col gap-3", children: [
276
+ /* @__PURE__ */ e("div", { className: "flex flex-wrap gap-2", children: ce.map((h) => /* @__PURE__ */ e(
277
+ "button",
278
+ {
279
+ type: "button",
280
+ className: c(
281
+ "rounded-full border px-3 py-1 text-xs font-medium",
282
+ S === h ? "border-brand bg-brand-subtle text-brand" : "border-stroke-subtle text-content"
283
+ ),
284
+ onClick: () => F(h),
285
+ children: O[h]
286
+ },
287
+ h
288
+ )) }),
289
+ /* @__PURE__ */ e(
290
+ "textarea",
291
+ {
292
+ value: T,
293
+ placeholder: i("irisChat.feedbackPlaceholder"),
294
+ className: "min-h-16 w-full resize-none rounded-lg border border-stroke-subtle bg-transparent px-3 py-2 text-sm outline-none",
295
+ onChange: (h) => j(h.target.value)
296
+ }
297
+ ),
298
+ /* @__PURE__ */ e(
299
+ p,
300
+ {
301
+ type: "button",
302
+ size: "sm",
303
+ className: "self-end",
304
+ onClick: () => {
305
+ m({ reason: S, details: T }), P(!0), window.setTimeout(() => A(!1), 1200);
306
+ },
307
+ children: i("irisChat.feedbackSubmit")
308
+ }
309
+ )
310
+ ] })
311
+ ] }) })
312
+ ]
313
+ }
314
+ ) : /* @__PURE__ */ e(f, { label: i("irisChat.dislike"), children: /* @__PURE__ */ e(
315
+ p,
316
+ {
317
+ type: "button",
318
+ variant: "ghost",
319
+ size: "icon",
320
+ "aria-label": i("irisChat.dislike"),
321
+ "aria-pressed": t,
322
+ className: c(t && "text-brand"),
323
+ onClick: l,
324
+ children: /* @__PURE__ */ e(E, { size: 16 })
325
+ }
326
+ ) }),
327
+ s || x ? /* @__PURE__ */ e(f, { label: i(k ? "irisChat.copied" : "irisChat.copy"), children: /* @__PURE__ */ e(
328
+ p,
329
+ {
330
+ type: "button",
331
+ variant: "ghost",
332
+ size: "icon",
333
+ "aria-label": i(k ? "irisChat.copied" : "irisChat.copy"),
334
+ "data-testid": "iris-chat-copy",
335
+ onClick: B,
336
+ children: /* @__PURE__ */ e($, { size: 16 })
337
+ }
338
+ ) }) : null,
339
+ /* @__PURE__ */ e(f, { label: i(N ? "irisChat.stopSpeaking" : "irisChat.speak"), children: /* @__PURE__ */ e(
340
+ p,
341
+ {
342
+ type: "button",
343
+ variant: "ghost",
344
+ size: "icon",
345
+ "aria-label": i(N ? "irisChat.stopSpeaking" : "irisChat.speak"),
346
+ "aria-pressed": N,
347
+ onClick: D,
348
+ children: /* @__PURE__ */ e(ee, { size: 16 })
349
+ }
350
+ ) }),
351
+ u ? /* @__PURE__ */ e(f, { label: i("irisChat.retry"), children: /* @__PURE__ */ e(
352
+ p,
353
+ {
354
+ type: "button",
355
+ variant: "ghost",
356
+ size: "icon",
357
+ "aria-label": i("irisChat.retry"),
358
+ "data-testid": "iris-chat-retry",
359
+ onClick: u,
360
+ children: /* @__PURE__ */ e(te, { size: 16 })
361
+ }
362
+ ) }) : null
363
+ ]
364
+ }
365
+ );
366
+ }
367
+ ), Ge = d(
368
+ "IrisChatFollowUps",
369
+ ({ className: r, ...a }, t) => /* @__PURE__ */ e(
370
+ "div",
371
+ {
372
+ ref: t,
373
+ "data-component": "iris-chat-follow-ups",
374
+ className: c("flex w-full flex-col overflow-hidden rounded-xl border border-stroke-subtle", r),
375
+ ...a
376
+ }
377
+ )
378
+ ), Fe = d(
379
+ "IrisChatFollowUp",
380
+ ({ className: r, children: a, type: t = "button", ...s }, n) => /* @__PURE__ */ o(
381
+ "button",
382
+ {
383
+ ref: n,
384
+ type: t,
385
+ "data-component": "iris-chat-follow-up",
386
+ className: c(
387
+ "flex w-full items-center justify-between gap-3 border-b border-stroke-subtle px-3 py-2.5 text-start text-sm last:border-b-0 hover:bg-accent",
388
+ r
389
+ ),
390
+ ...s,
391
+ children: [
392
+ /* @__PURE__ */ o("span", { className: "flex min-w-0 flex-1 items-center gap-2", children: [
393
+ /* @__PURE__ */ e(_, { size: 14 }),
394
+ /* @__PURE__ */ e("span", { className: "min-w-0 whitespace-normal", children: a })
395
+ ] }),
396
+ /* @__PURE__ */ e(z, { size: 16, className: "shrink-0 text-content-secondary" })
397
+ ]
398
+ }
399
+ )
400
+ ), Me = d(
401
+ "IrisChatAttachment",
402
+ ({ className: r, name: a, kind: t = "file", sizeLabel: s, previewUrl: n, onRemove: l }, x) => {
403
+ const { t: u } = b();
404
+ return /* @__PURE__ */ o(
405
+ "div",
406
+ {
407
+ ref: x,
408
+ "data-component": "iris-chat-attachment",
409
+ "data-kind": t,
410
+ className: c(
411
+ "flex max-w-full items-center gap-2 rounded-xl bg-canvas-elevated px-2 py-1.5 text-xs text-content",
412
+ r
413
+ ),
414
+ children: [
415
+ t === "image" && n ? /* @__PURE__ */ e("img", { src: n, alt: "", className: "size-10 shrink-0 rounded-lg object-cover" }) : /* @__PURE__ */ e(ae, { size: 14 }),
416
+ /* @__PURE__ */ o("span", { className: "min-w-0", children: [
417
+ /* @__PURE__ */ e("span", { className: "block truncate font-medium", children: a }),
418
+ s ? /* @__PURE__ */ e("span", { className: "block text-content-caption", children: s }) : null
419
+ ] }),
420
+ l ? /* @__PURE__ */ e(f, { label: u("irisChat.removeAttachment"), children: /* @__PURE__ */ e(
421
+ p,
422
+ {
423
+ type: "button",
424
+ variant: "ghost",
425
+ size: "icon",
426
+ className: "size-6",
427
+ "aria-label": u("irisChat.removeAttachment"),
428
+ onClick: l,
429
+ children: /* @__PURE__ */ e(U, { size: 12 })
430
+ }
431
+ ) }) : null
432
+ ]
433
+ }
434
+ );
435
+ }
436
+ ), Oe = d(
437
+ "IrisChatError",
438
+ ({ className: r, title: a, description: t, onRetry: s }, n) => {
439
+ const { t: l } = b();
440
+ return /* @__PURE__ */ e("div", { ref: n, "data-component": "iris-chat-error", className: c("w-full", r), children: /* @__PURE__ */ o(J, { variant: "error", children: [
441
+ /* @__PURE__ */ e(Q, { variant: "error" }),
442
+ /* @__PURE__ */ o("div", { className: "flex min-w-0 flex-1 flex-col gap-2", children: [
443
+ /* @__PURE__ */ e(X, { children: a ?? l("irisChat.generationError") }),
444
+ /* @__PURE__ */ e(Y, { children: t ?? l("irisChat.generationErrorBody") }),
445
+ s ? /* @__PURE__ */ e(
446
+ p,
447
+ {
448
+ type: "button",
449
+ size: "sm",
450
+ variant: "outline",
451
+ className: "w-fit",
452
+ "data-testid": "iris-chat-error-retry",
453
+ onClick: s,
454
+ children: l("irisChat.retry")
455
+ }
456
+ ) : null
457
+ ] })
458
+ ] }) });
459
+ }
460
+ ), Be = d(
461
+ "IrisChatChip",
462
+ ({ className: r, type: a = "button", variant: t = "default", ...s }, n) => /* @__PURE__ */ e(
463
+ "button",
464
+ {
465
+ ref: n,
466
+ type: a,
467
+ "data-component": "iris-chat-chip",
468
+ "data-variant": t,
469
+ className: c(
470
+ "rounded-full px-3 py-1.5 text-sm font-medium leading-5 disabled:pointer-events-none disabled:opacity-50",
471
+ t === "outline" ? "border border-stroke bg-canvas text-content hover:bg-accent" : "border border-stroke-subtle bg-secondary text-content hover:bg-accent",
472
+ r
473
+ ),
474
+ ...s
475
+ }
476
+ )
477
+ );
478
+ export {
479
+ Ee as IrisChatActions,
480
+ Me as IrisChatAttachment,
481
+ Be as IrisChatChip,
482
+ je as IrisChatDay,
483
+ Oe as IrisChatError,
484
+ Fe as IrisChatFollowUp,
485
+ Ge as IrisChatFollowUps,
486
+ we as IrisChatGreeting,
487
+ Pe as IrisChatMessage,
488
+ _e as IrisChatSuggestion,
489
+ ze as IrisChatSuggestions,
490
+ Te as IrisChatThread,
491
+ Se as IrisChatWorkflow,
492
+ Ae as IrisChatWorkflows
493
+ };
@@ -0,0 +1,43 @@
1
+ import { IrisChatBodyProps, IrisChatFooterProps, IrisChatHeaderProps, IrisChatIconButtonProps, IrisChatPanelProps, IrisChatProps } from './iris-chat.types';
2
+ import * as React from "react";
3
+ declare const IrisChat: {
4
+ ({ open, defaultOpen, onOpenChange, placement, defaultPlacement, onPlacementChange, className, children, }: IrisChatProps): import("react/jsx-runtime").JSX.Element;
5
+ displayName: string;
6
+ };
7
+ declare const IrisChatPanel: React.ForwardRefExoticComponent<IrisChatPanelProps & React.RefAttributes<HTMLDivElement>>;
8
+ declare const IrisChatHeader: React.ForwardRefExoticComponent<IrisChatHeaderProps & React.RefAttributes<HTMLElement>>;
9
+ declare const IrisChatHeaderLeading: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
10
+ declare const IrisChatHeaderTrailing: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
11
+ declare const IrisChatHeaderTitle: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLHeadingElement> & {
12
+ showBrand?: boolean;
13
+ } & React.RefAttributes<HTMLHeadingElement>>;
14
+ declare const IrisChatIconButton: React.ForwardRefExoticComponent<React.ButtonHTMLAttributes<HTMLButtonElement> & {
15
+ label: string;
16
+ variant?: "secondary" | "ghost";
17
+ } & React.RefAttributes<HTMLButtonElement>>;
18
+ declare const IrisChatHeaderMenuButton: React.ForwardRefExoticComponent<Omit<IrisChatIconButtonProps, "label"> & {
19
+ label?: string;
20
+ } & React.RefAttributes<HTMLButtonElement>>;
21
+ declare const IrisChatHeaderBackButton: React.ForwardRefExoticComponent<Omit<IrisChatIconButtonProps, "label"> & {
22
+ label?: string;
23
+ } & React.RefAttributes<HTMLButtonElement>>;
24
+ declare const IrisChatHeaderNewChatButton: React.ForwardRefExoticComponent<Omit<IrisChatIconButtonProps, "label"> & {
25
+ label?: string;
26
+ } & React.RefAttributes<HTMLButtonElement>>;
27
+ declare const IrisChatHeaderMinimizeButton: React.ForwardRefExoticComponent<Omit<IrisChatIconButtonProps, "label"> & {
28
+ label?: string;
29
+ } & React.RefAttributes<HTMLButtonElement>>;
30
+ declare const IrisChatHeaderCloseButton: React.ForwardRefExoticComponent<Omit<IrisChatIconButtonProps, "label"> & {
31
+ label?: string;
32
+ } & React.RefAttributes<HTMLButtonElement>>;
33
+ declare const IrisChatBody: React.ForwardRefExoticComponent<IrisChatBodyProps & React.RefAttributes<HTMLDivElement>>;
34
+ declare const IrisChatFooter: React.ForwardRefExoticComponent<IrisChatFooterProps & React.RefAttributes<HTMLDivElement>>;
35
+ declare const IrisChatDisclaimer: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLParagraphElement> & {
36
+ href?: string;
37
+ } & React.RefAttributes<HTMLParagraphElement>>;
38
+ declare const IrisChatTrigger: React.ForwardRefExoticComponent<React.ButtonHTMLAttributes<HTMLButtonElement> & {
39
+ asChild?: boolean;
40
+ size?: "sm" | "md" | "lg";
41
+ shape?: "default" | "pill";
42
+ } & React.RefAttributes<HTMLButtonElement>>;
43
+ export { IrisChat, IrisChatBody, IrisChatDisclaimer, IrisChatFooter, IrisChatHeader, IrisChatHeaderBackButton, IrisChatHeaderCloseButton, IrisChatHeaderLeading, IrisChatHeaderMenuButton, IrisChatHeaderMinimizeButton, IrisChatHeaderNewChatButton, IrisChatHeaderTitle, IrisChatHeaderTrailing, IrisChatIconButton, IrisChatPanel, IrisChatTrigger, };