impact-nova 3.0.0-alpha.2 → 3.0.0-alpha.20

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 (294) hide show
  1. package/README.md +1 -1
  2. package/dist/_virtual/index.js +4 -4
  3. package/dist/_virtual/index2.js +4 -4
  4. package/dist/components/data/ag-grid-react/ag-grid-list.d.ts +3 -1
  5. package/dist/components/data/ag-grid-react/ag-grid-list.demo-board.d.ts +46 -0
  6. package/dist/components/data/ag-grid-react/ag-grid-list.js +9 -8
  7. package/dist/components/data/ag-grid-react/ag-grid-list.key-attributes.d.ts +1 -0
  8. package/dist/components/data/ag-grid-react/ag-grid.types.d.ts +65 -3
  9. package/dist/components/data/ag-grid-react/build-list-drag-column-defs.d.ts +8 -0
  10. package/dist/components/data/ag-grid-react/build-list-drag-column-defs.js +28 -0
  11. package/dist/components/data/ag-grid-react/cell-renderers/badge-cell-renderer.d.ts +2 -0
  12. package/dist/components/data/ag-grid-react/cell-renderers/badge-cell-renderer.js +15 -14
  13. package/dist/components/data/ag-grid-react/cell-renderers/badge-icon-registry.d.ts +10 -0
  14. package/dist/components/data/ag-grid-react/cell-renderers/badge-icon-registry.js +17 -0
  15. package/dist/components/data/ag-grid-react/cell-renderers/drag-handle-cell-renderer.d.ts +18 -0
  16. package/dist/components/data/ag-grid-react/cell-renderers/drag-handle-cell-renderer.js +32 -0
  17. package/dist/components/data/ag-grid-react/cell-renderers/editors/list-select-cell-editor.js +71 -46
  18. package/dist/components/data/ag-grid-react/cell-renderers/editors/select-cell-editor.js +48 -45
  19. package/dist/components/data/ag-grid-react/cell-renderers/index.d.ts +45 -7
  20. package/dist/components/data/ag-grid-react/cell-renderers/index.js +70 -58
  21. package/dist/components/data/ag-grid-react/cell-renderers/link-with-batch-cell-renderer.js +88 -76
  22. package/dist/components/data/ag-grid-react/cell-renderers/list-select-display-renderer.js +31 -33
  23. package/dist/components/data/ag-grid-react/cell-renderers/select-display-renderer.js +18 -17
  24. package/dist/components/data/ag-grid-react/cell-renderers/style-description-display-renderer.d.ts +5 -11
  25. package/dist/components/data/ag-grid-react/cell-renderers/style-description-display-renderer.js +127 -51
  26. package/dist/components/data/ag-grid-react/editable-utils.d.ts +9 -1
  27. package/dist/components/data/ag-grid-react/editable-utils.js +46 -41
  28. package/dist/components/data/ag-grid-react/headers/custom-header.js +110 -108
  29. package/dist/components/data/ag-grid-react/headers/header-search-input.js +203 -199
  30. package/dist/components/data/ag-grid-react/index.d.ts +6 -1
  31. package/dist/components/data/ag-grid-react/index.js +316 -248
  32. package/dist/components/data/ag-grid-react/list-drag-grid-options.d.ts +34 -0
  33. package/dist/components/data/ag-grid-react/list-drag-grid-options.js +110 -0
  34. package/dist/components/data/ag-grid-react/list-drag-preview-card.d.ts +4 -0
  35. package/dist/components/data/ag-grid-react/list-drag-preview-card.js +14 -0
  36. package/dist/components/data/ag-grid-react/list-drag-preview-snapshot.d.ts +20 -0
  37. package/dist/components/data/ag-grid-react/list-drag-preview-snapshot.js +42 -0
  38. package/dist/components/data/ag-grid-react/list-find-highlight.d.ts +6 -0
  39. package/dist/components/data/ag-grid-react/list-find-highlight.js +7 -0
  40. package/dist/components/data/ag-grid-react/list-row-move.d.ts +84 -0
  41. package/dist/components/data/ag-grid-react/list-row-move.js +74 -0
  42. package/dist/components/data/ag-grid-react/numeric-column-header-alignment.d.ts +9 -0
  43. package/dist/components/data/ag-grid-react/numeric-column-header-alignment.js +67 -0
  44. package/dist/components/data/ag-grid-react/process-backend-columndefs.d.ts +10 -2
  45. package/dist/components/data/ag-grid-react/process-backend-columndefs.js +84 -0
  46. package/dist/components/data/ag-grid-react/use-ag-grid-list-drag.d.ts +67 -0
  47. package/dist/components/data/ag-grid-react/use-ag-grid-list-drag.js +162 -0
  48. package/dist/components/data/ag-grid-react/use-list-drag-preview.d.ts +20 -0
  49. package/dist/components/data/ag-grid-react/use-list-drag-preview.js +148 -0
  50. package/dist/components/data/ag-grid-react/use-list-find.d.ts +36 -0
  51. package/dist/components/data/ag-grid-react/use-list-row-drop-zones.d.ts +46 -0
  52. package/dist/components/data/ag-grid-react/use-list-row-drop-zones.js +92 -0
  53. package/dist/components/data/data-table/build-column-tree-from-grid.js +15 -15
  54. package/dist/components/data/data-table/column-picker-authority.js +9 -9
  55. package/dist/components/data/data-table/data-table-column-apply.js +30 -29
  56. package/dist/components/data/data-table/data-table-column-tree-cache.js +62 -60
  57. package/dist/components/data/data-table/data-table-list-header.d.ts +7 -0
  58. package/dist/components/data/data-table/data-table-list-header.js +31 -0
  59. package/dist/components/data/data-table/data-table-overlay.d.ts +6 -0
  60. package/dist/components/data/data-table/data-table-overlay.js +18 -0
  61. package/dist/components/data/data-table/data-table-picker-column-eligibility.d.ts +3 -0
  62. package/dist/components/data/data-table/data-table-picker-column-eligibility.js +24 -4
  63. package/dist/components/data/data-table/data-table.js +35 -34
  64. package/dist/components/data/data-table/data-table.types.d.ts +13 -2
  65. package/dist/components/data/data-table/index.d.ts +10 -0
  66. package/dist/components/data/data-table/index.js +64 -52
  67. package/dist/components/data/data-table/use-data-table-viewport.d.ts +10 -0
  68. package/dist/components/data/data-table/use-data-table-viewport.js +31 -0
  69. package/dist/components/data/expandable-list-item/expandable-list-item-attributes.js +3 -2
  70. package/dist/components/data/expandable-list-item/expandable-list-item-metrics.js +3 -2
  71. package/dist/components/data/expandable-list-item/index.d.ts +2 -0
  72. package/dist/components/data/expandable-list-item/index.js +20 -16
  73. package/dist/components/data/expandable-list-item/product-card-hero.d.ts +15 -0
  74. package/dist/components/data/expandable-list-item/product-card-iris-insight-trigger.d.ts +8 -0
  75. package/dist/components/data/expandable-list-item/product-card-iris-insight-trigger.js +41 -0
  76. package/dist/components/data/expandable-list-item/product-card-metrics-toggle.d.ts +13 -0
  77. package/dist/components/data/expandable-list-item/product-card-metrics-toggle.js +27 -0
  78. package/dist/components/data/expandable-list-item/sku-picker-chrome.d.ts +40 -0
  79. package/dist/components/data/expandable-list-item/sku-picker-chrome.js +150 -0
  80. package/dist/components/data/expandable-list-item/useServerSkuInfinitePages.d.ts +2 -1
  81. package/dist/components/data/expandable-list-item/virtualized-responsive-grid.catalog.d.ts +5 -4
  82. package/dist/components/data/expandable-list-item/virtualized-responsive-grid.sku-picker.d.ts +3 -2
  83. package/dist/components/data/scenario-comparison/flatten-scenario-comparison-rows.d.ts +2 -0
  84. package/dist/components/data/scenario-comparison/flatten-scenario-comparison-rows.js +16 -0
  85. package/dist/components/data/scenario-comparison/index.d.ts +3 -0
  86. package/dist/components/data/scenario-comparison/index.js +6 -0
  87. package/dist/components/data/scenario-comparison/scenario-comparison-column.d.ts +12 -0
  88. package/dist/components/data/scenario-comparison/scenario-comparison-column.js +172 -0
  89. package/dist/components/data/scenario-comparison/scenario-comparison-label.d.ts +6 -0
  90. package/dist/components/data/scenario-comparison/scenario-comparison-label.js +64 -0
  91. package/dist/components/data/scenario-comparison/scenario-comparison.d.ts +5 -0
  92. package/dist/components/data/scenario-comparison/scenario-comparison.js +127 -0
  93. package/dist/components/data/scenario-comparison/scenario-comparison.types.d.ts +56 -0
  94. package/dist/components/data/scenario-comparison/scenario-comparison.variants.d.ts +7 -0
  95. package/dist/components/data/scenario-comparison/scenario-comparison.variants.js +29 -0
  96. package/dist/components/data-display/badge/index.d.ts +2 -0
  97. package/dist/components/data-display/badge/index.js +4 -2
  98. package/dist/components/data-display/badge/trophy-icon.d.ts +6 -0
  99. package/dist/components/data-display/badge/trophy-icon.js +28 -0
  100. package/dist/components/data-display/chart/chart-scatter3d.d.ts +39 -0
  101. package/dist/components/data-display/chart/chart-scatter3d.js +180 -0
  102. package/dist/components/data-display/chart/chart.js +125 -112
  103. package/dist/components/data-display/chart/chart.utils.js +122 -92
  104. package/dist/components/data-display/stereo-scatter/index.d.ts +2 -0
  105. package/dist/components/data-display/stereo-scatter/index.js +10 -0
  106. package/dist/components/data-display/stereo-scatter/internals/stereo-engine-frame.d.ts +41 -0
  107. package/dist/components/data-display/stereo-scatter/internals/stereo-engine-frame.js +178 -0
  108. package/dist/components/data-display/stereo-scatter/internals/stereo-engine-theme.d.ts +14 -0
  109. package/dist/components/data-display/stereo-scatter/internals/stereo-engine-theme.js +29 -0
  110. package/dist/components/data-display/stereo-scatter/internals/stereo-engine-wedges.d.ts +23 -0
  111. package/dist/components/data-display/stereo-scatter/internals/stereo-engine-wedges.js +80 -0
  112. package/dist/components/data-display/stereo-scatter/internals/stereo-engine.d.ts +120 -0
  113. package/dist/components/data-display/stereo-scatter/internals/stereo-engine.js +519 -0
  114. package/dist/components/data-display/stereo-scatter/internals/stereo-math.d.ts +64 -0
  115. package/dist/components/data-display/stereo-scatter/internals/stereo-math.js +129 -0
  116. package/dist/components/data-display/stereo-scatter/internals/stereo-model.d.ts +37 -0
  117. package/dist/components/data-display/stereo-scatter/internals/stereo-model.js +71 -0
  118. package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-context.d.ts +33 -0
  119. package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-context.js +19 -0
  120. package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-key.d.ts +4 -0
  121. package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-key.js +19 -0
  122. package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-legend.d.ts +2 -0
  123. package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-legend.js +75 -0
  124. package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-scene.d.ts +2 -0
  125. package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-scene.js +149 -0
  126. package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-toolbar.d.ts +13 -0
  127. package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-toolbar.js +93 -0
  128. package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-tooltip.d.ts +2 -0
  129. package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-tooltip.js +62 -0
  130. package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-viewport.d.ts +3 -0
  131. package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-viewport.js +41 -0
  132. package/dist/components/data-display/stereo-scatter/stereo-scatter.d.ts +12 -0
  133. package/dist/components/data-display/stereo-scatter/stereo-scatter.js +107 -0
  134. package/dist/components/data-display/stereo-scatter/stereo-scatter.stories-data.d.ts +11 -0
  135. package/dist/components/data-display/stereo-scatter/stereo-scatter.types.d.ts +69 -0
  136. package/dist/components/data-display/stereo-scatter/stereo-scatter.variants.d.ts +13 -0
  137. package/dist/components/data-display/stereo-scatter/stereo-scatter.variants.js +42 -0
  138. package/dist/components/feedback/find-bar/collect-find-matches.d.ts +35 -0
  139. package/dist/components/feedback/find-bar/collect-find-matches.js +68 -0
  140. package/dist/components/feedback/find-bar/find-bar-shortcuts.d.ts +5 -0
  141. package/dist/components/feedback/find-bar/find-bar-shortcuts.js +27 -0
  142. package/dist/components/feedback/find-bar/find-bar.d.ts +7 -0
  143. package/dist/components/feedback/find-bar/find-bar.js +266 -0
  144. package/dist/components/feedback/find-bar/find-bar.types.d.ts +32 -0
  145. package/dist/components/feedback/find-bar/index.d.ts +4 -0
  146. package/dist/components/feedback/find-bar/index.js +11 -0
  147. package/dist/components/feedback/tooltip/button-icon-tooltip.d.ts +6 -1
  148. package/dist/components/feedback/tooltip/button-icon-tooltip.js +22 -17
  149. package/dist/components/feedback/tooltip/tab-tooltip-render.js +3 -2
  150. package/dist/components/feedback/tooltip/use-overflow-tooltip.js +44 -36
  151. package/dist/components/flows/command-palette/shortcut-settings.js +10 -10
  152. package/dist/components/flows/filter-panel/filter-panel.js +4 -4
  153. package/dist/components/flows/iris-chat/IrisChatComposerVoiceCapture.d.ts +5 -0
  154. package/dist/components/flows/iris-chat/IrisChatComposerVoiceCapture.js +73 -0
  155. package/dist/components/flows/iris-chat/IrisChatHeaderWindowSizeButton.d.ts +5 -0
  156. package/dist/components/flows/iris-chat/IrisChatHeaderWindowSizeButton.js +49 -0
  157. package/dist/components/flows/iris-chat/IrisChatSnapTile.d.ts +8 -0
  158. package/dist/components/flows/iris-chat/IrisChatSnapTile.js +30 -0
  159. package/dist/components/flows/iris-chat/IrisChatVoiceWaveform.d.ts +3 -0
  160. package/dist/components/flows/iris-chat/IrisChatVoiceWaveform.js +25 -0
  161. package/dist/components/flows/iris-chat/IrisChatWindowSnapMenu.d.ts +4 -0
  162. package/dist/components/flows/iris-chat/IrisChatWindowSnapMenu.js +113 -0
  163. package/dist/components/flows/iris-chat/index.d.ts +3 -1
  164. package/dist/components/flows/iris-chat/index.js +58 -53
  165. package/dist/components/flows/iris-chat/iris-chat-artifact.js +46 -36
  166. package/dist/components/flows/iris-chat/iris-chat-chrome.d.ts +39 -0
  167. package/dist/components/flows/iris-chat/iris-chat-chrome.js +311 -0
  168. package/dist/components/flows/iris-chat/iris-chat-close-animation.d.ts +12 -0
  169. package/dist/components/flows/iris-chat/iris-chat-close-animation.js +21 -0
  170. package/dist/components/flows/iris-chat/iris-chat-composer.js +291 -234
  171. package/dist/components/flows/iris-chat/iris-chat-context.d.ts +16 -0
  172. package/dist/components/flows/iris-chat/iris-chat-context.js +14 -10
  173. package/dist/components/flows/iris-chat/iris-chat-copy-feedback.d.ts +4 -0
  174. package/dist/components/flows/iris-chat/iris-chat-copy-feedback.js +16 -0
  175. package/dist/components/flows/iris-chat/iris-chat-frame.d.ts +32 -0
  176. package/dist/components/flows/iris-chat/iris-chat-frame.js +88 -0
  177. package/dist/components/flows/iris-chat/iris-chat-icons.d.ts +2 -0
  178. package/dist/components/flows/iris-chat/iris-chat-icons.js +46 -20
  179. package/dist/components/flows/iris-chat/iris-chat-launch-animation.d.ts +11 -0
  180. package/dist/components/flows/iris-chat/iris-chat-launch-animation.js +35 -0
  181. package/dist/components/flows/iris-chat/iris-chat-markdown.js +82 -42
  182. package/dist/components/flows/iris-chat/iris-chat-menu.js +149 -117
  183. package/dist/components/flows/iris-chat/iris-chat-snap-presets.d.ts +7 -0
  184. package/dist/components/flows/iris-chat/iris-chat-snap-presets.js +83 -0
  185. package/dist/components/flows/iris-chat/iris-chat-speech.d.ts +52 -0
  186. package/dist/components/flows/iris-chat/iris-chat-speech.js +121 -0
  187. package/dist/components/flows/iris-chat/iris-chat-thread.d.ts +4 -0
  188. package/dist/components/flows/iris-chat/iris-chat-thread.js +277 -220
  189. package/dist/components/flows/iris-chat/iris-chat-window-chrome.d.ts +33 -0
  190. package/dist/components/flows/iris-chat/iris-chat-window-chrome.js +37 -0
  191. package/dist/components/flows/iris-chat/iris-chat-window-geometry-context.d.ts +14 -0
  192. package/dist/components/flows/iris-chat/iris-chat-window-geometry-context.js +15 -0
  193. package/dist/components/flows/iris-chat/iris-chat-window-geometry.d.ts +12 -0
  194. package/dist/components/flows/iris-chat/iris-chat-window-geometry.js +113 -0
  195. package/dist/components/flows/iris-chat/iris-chat-window-handles.d.ts +6 -0
  196. package/dist/components/flows/iris-chat/iris-chat-window-handles.js +50 -0
  197. package/dist/components/flows/iris-chat/iris-chat-window-shell.d.ts +8 -0
  198. package/dist/components/flows/iris-chat/iris-chat-window-shell.js +37 -0
  199. package/dist/components/flows/iris-chat/iris-chat.d.ts +3 -39
  200. package/dist/components/flows/iris-chat/iris-chat.js +22 -330
  201. package/dist/components/flows/iris-chat/iris-chat.types.d.ts +20 -0
  202. package/dist/components/flows/iris-chat/iris-chat.variants.d.ts +4 -3
  203. package/dist/components/flows/iris-chat/iris-chat.variants.js +45 -22
  204. package/dist/components/flows/iris-chat/sync-iris-chat-composer-textarea.d.ts +6 -0
  205. package/dist/components/flows/iris-chat/sync-iris-chat-composer-textarea.js +23 -0
  206. package/dist/components/flows/iris-chat/use-iris-chat-root.d.ts +29 -0
  207. package/dist/components/flows/iris-chat/use-iris-chat-root.js +162 -0
  208. package/dist/components/forms/choice-card/choice-card-compare-scroll.d.ts +4 -0
  209. package/dist/components/forms/choice-card/choice-card-compare-scroll.js +6 -0
  210. package/dist/components/forms/choice-card/choice-card-percent.js +82 -51
  211. package/dist/components/forms/choice-card/choice-card.d.ts +14 -2
  212. package/dist/components/forms/choice-card/choice-card.js +470 -381
  213. package/dist/components/forms/choice-card/choice-card.types.d.ts +9 -2
  214. package/dist/components/forms/choice-card/choice-card.variants.js +24 -3
  215. package/dist/components/forms/input/input.js +5 -5
  216. package/dist/components/forms/select/components/SelectMenuPanel.js +15 -15
  217. package/dist/components/forms/select/components/SelectTriggerValue.js +3 -2
  218. package/dist/components/forms/select/components/Submenu.js +3 -2
  219. package/dist/components/layout/header/header.js +1 -0
  220. package/dist/components/layout/horizontal-scroller/horizontal-scroller-mask.d.ts +3 -0
  221. package/dist/components/layout/horizontal-scroller/horizontal-scroller-mask.js +12 -0
  222. package/dist/components/layout/horizontal-scroller/horizontal-scroller.js +181 -125
  223. package/dist/components/layout/horizontal-scroller/horizontal-scroller.types.d.ts +2 -0
  224. package/dist/components/layout/horizontal-scroller/scroll-overflow-affordance.d.ts +3 -1
  225. package/dist/components/layout/horizontal-scroller/scroll-overflow-affordance.js +77 -67
  226. package/dist/components/primitives/button/button.variants.js +1 -1
  227. package/dist/components/primitives/iris/iris-insight-truncated-text.d.ts +3 -0
  228. package/dist/components/primitives/iris/iris-insight-truncated-text.js +33 -0
  229. package/dist/components/primitives/iris/iris.d.ts +3 -1
  230. package/dist/components/primitives/iris/iris.js +85 -91
  231. package/dist/components/primitives/iris/iris.types.d.ts +9 -0
  232. package/dist/components/primitives/stepper/internals/step-model.d.ts +1 -1
  233. package/dist/components/primitives/stepper/internals/step-model.js +5 -5
  234. package/dist/components/primitives/stepper/internals/stepper-compact.js +13 -13
  235. package/dist/components/primitives/stepper/internals/stepper-pipeline.js +6 -6
  236. package/dist/components/primitives/stepper/internals/stepper-rail.js +15 -15
  237. package/dist/components/primitives/stepper/internals/stepper-summary.js +7 -7
  238. package/dist/components/primitives/stepper/internals/stepper-track.js +2 -2
  239. package/dist/components/primitives/stepper/stepper.js +99 -97
  240. package/dist/components/primitives/stepper/stepper.types.d.ts +4 -0
  241. package/dist/components/primitives/tabs/folder-tab-path.d.ts +6 -0
  242. package/dist/components/primitives/tabs/folder-tab-path.js +16 -0
  243. package/dist/components/primitives/tabs/tabs.js +178 -112
  244. package/dist/components/primitives/tabs/tabs.types.d.ts +1 -1
  245. package/dist/form-react/Fields/SelectField.js +66 -57
  246. package/dist/form-react/Fields/VirtualizedListField.d.ts +3 -0
  247. package/dist/form-react/Fields/VirtualizedListField.js +223 -0
  248. package/dist/form-react/fields.d.ts +1 -0
  249. package/dist/form-react/fields.js +28 -26
  250. package/dist/form-react/index.d.ts +1 -1
  251. package/dist/form-react/registry/defaultFieldRegistrations.d.ts +1 -1
  252. package/dist/form-react/registry/defaultFieldRegistrations.js +13 -12
  253. package/dist/form-react/types/fields.types.d.ts +48 -1
  254. package/dist/form-react/types/fieldsOutput.types.d.ts +4 -1
  255. package/dist/form-react/types/reactHookForm.types.d.ts +18 -1
  256. package/dist/form-react/utils/fieldDefaults.utils.js +1 -1
  257. package/dist/i18n/defaultMessages.d.ts +69 -0
  258. package/dist/i18n/defaultMessages.js +107 -42
  259. package/dist/i18n/impact-nova-i18n-defaults.d.ts +5 -0
  260. package/dist/i18n/impact-nova-i18n-defaults.js +4 -9
  261. package/dist/i18n/index.d.ts +1 -1
  262. package/dist/i18n/locales/de.js +66 -1
  263. package/dist/i18n/locales/es.js +66 -1
  264. package/dist/i18n/locales/hi.js +66 -1
  265. package/dist/i18n/locales/kn.js +66 -1
  266. package/dist/impact-nova-components.css +372 -14
  267. package/dist/impact-nova-tokens.scss +4 -0
  268. package/dist/impact-nova.css +1 -1
  269. package/dist/index.d.ts +1 -0
  270. package/dist/index.js +627 -601
  271. package/dist/lib/alphabetical-sort.d.ts +3 -0
  272. package/dist/lib/alphabetical-sort.js +13 -0
  273. package/dist/lib/guidance/engine/guidance-engine.js +26 -27
  274. package/dist/lib/guidance/engine/step-navigation.d.ts +1 -0
  275. package/dist/lib/guidance/engine/step-navigation.js +16 -9
  276. package/dist/lib/guidance/types/guidance.types.d.ts +9 -1
  277. package/dist/lib/virtualized/index.d.ts +2 -0
  278. package/dist/lib/virtualized/index.js +35 -31
  279. package/dist/lib/virtualized/list-index.d.ts +5 -0
  280. package/dist/lib/virtualized/list-index.js +13 -0
  281. package/dist/lib/virtualized/read-infinite-query-list.d.ts +14 -0
  282. package/dist/lib/virtualized/read-infinite-query-list.js +12 -0
  283. package/dist/lib/virtualized/types.d.ts +4 -2
  284. package/dist/lib/virtualized/useRowState.js +60 -56
  285. package/dist/lib/virtualized/useVirtualizedList.d.ts +5 -0
  286. package/dist/llms/rules/ag-grid.js +1 -1
  287. package/dist/llms/rules/installation.js +1 -1
  288. package/dist/llms/rules/real-world-patterns.js +1 -1
  289. package/dist/llms/rules/requirements.js +1 -1
  290. package/dist/node_modules/hast-util-to-jsx-runtime/lib/index.js +1 -1
  291. package/dist/node_modules/unified/lib/index.js +1 -1
  292. package/dist/tailwind.config.js +3 -0
  293. package/dist/theme/tailwind-colors.js +3 -0
  294. package/package.json +23 -4
@@ -1,72 +1,87 @@
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(
1
+ import { jsxs as l, jsx as e, Fragment as J } from "react/jsx-runtime";
2
+ import { useState as x, useRef as Q, useEffect as X } from "react";
3
+ import { Cross as Z, ChevronRight as P } from "impact-nova-icons";
4
+ import { Popover as $, PopoverTrigger as ee, PopoverContent as te, PopoverHeader as ae, PopoverTitle as re, PopoverBody as se } from "../../feedback/popover/popover.js";
5
+ import { ButtonIconTooltip as C } from "../../feedback/tooltip/button-icon-tooltip.js";
6
+ import { Alert as ie, AlertIcon as ne, AlertTitle as oe, AlertDescription as le } from "../../feedback/alert/alert.js";
7
+ import { Button as u } from "../../primitives/button/button.js";
8
+ import { IrisAlanGradientIcon as T } from "../../primitives/iris/iris-alan-gradient-icon.js";
9
+ import { useImpactNovaI18n as v } from "../../../i18n/use-impact-nova-i18n.js";
10
+ import { createComponent as m } from "../../../lib/primitives/create-component.js";
11
+ import { cn as o } from "../../../lib/utils.js";
12
+ import { IrisChatLikeIcon as ce, IrisChatDislikeIcon as D, IrisChatCheckIcon as de, IrisChatCopyIcon as me, IrisChatSpeakIcon as he, IrisChatRetryIcon as pe, IrisChatAttachIcon as ue, IrisChatSuggestIcon as fe } from "./iris-chat-icons.js";
13
+ import { irisChatActionIconPressClassName as N, irisChatCopySuccessClassName as be, writeIrisChatClipboardText as ge, IRIS_CHAT_COPY_FEEDBACK_MS as xe } from "./iris-chat-copy-feedback.js";
14
+ import { readIrisChatActionsSpeakText as Ce, cancelPlainTextSpeech as Ie, speakPlainText as ke } from "./iris-chat-speech.js";
15
+ import { useIrisChatOptional as Ne } from "./iris-chat-context.js";
16
+ import { readIrisChatGreetingCompact as ve, readIrisChatGreetingShowSubtitle as we, readIrisChatGreetingIconSize as ye } from "./iris-chat-window-chrome.js";
17
+ import { irisChatMessageVariants as ze } from "./iris-chat.variants.js";
18
+ import { readIrisGreetingPeriod as _e, readIrisGreetingMark as Ae, readIrisGreetingMessageKey as Se } from "./read-iris-greeting-period.js";
19
+ const Je = m(
17
20
  "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
+ ({ className: s, name: a, greeting: t, subtitle: r, children: n, mark: d }, b) => {
22
+ const { t: f } = v(), c = Ne(), h = c != null ? ve({
23
+ isWindowPlacement: c.isWindowPlacement,
24
+ placement: c.placement,
25
+ frame: c.frame
26
+ }) : !1, I = c != null ? we({
27
+ isWindowPlacement: c.isWindowPlacement,
28
+ frame: c.frame
29
+ }) : !0, z = c != null ? ye({
30
+ isWindowPlacement: c.isWindowPlacement,
31
+ placement: c.placement,
32
+ frame: c.frame,
33
+ compact: h
34
+ }) : h ? 56 : 84, y = _e(), _ = d ?? Ae(), A = t ?? f(Se(y)), i = h ? "text-lg font-semibold leading-6 text-content" : "text-[26px] font-semibold leading-[46.8px] text-content", g = h ? "bg-clip-text text-lg font-extrabold leading-6 text-transparent" : "bg-clip-text text-[26px] font-extrabold leading-[46.8px] text-transparent";
35
+ return /* @__PURE__ */ l(
21
36
  "div",
22
37
  {
23
- ref: x,
38
+ ref: b,
24
39
  "data-component": "iris-chat-greeting",
25
- "data-compact": m ? "" : void 0,
26
- className: c(
40
+ "data-compact": h ? "" : void 0,
41
+ className: o(
27
42
  "relative flex flex-col items-center justify-center text-center",
28
- m ? "gap-1.5 py-4" : "gap-2 py-8",
43
+ h ? "gap-1.5 py-2" : "gap-2 py-8",
29
44
  "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
45
+ s
31
46
  ),
32
47
  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 }),
48
+ /* @__PURE__ */ e(T, { size: z }),
49
+ /* @__PURE__ */ l("div", { className: "flex flex-wrap items-center justify-center gap-1", children: [
50
+ /* @__PURE__ */ e("p", { className: i, children: A }),
36
51
  a ? /* @__PURE__ */ e(
37
52
  "p",
38
53
  {
39
- className: v,
54
+ className: g,
40
55
  style: {
41
56
  backgroundImage: "linear-gradient(90deg, var(--color-header-bot-gradient-orange), var(--color-header-bot-gradient-purple))"
42
57
  },
43
58
  children: a
44
59
  }
45
60
  ) : null,
46
- /* @__PURE__ */ e("span", { "aria-hidden": !0, className: m ? "text-base" : "text-[23px]", children: w })
61
+ /* @__PURE__ */ e("span", { "aria-hidden": !0, className: h ? "text-base" : "text-[23px]", children: _ })
47
62
  ] }),
48
- /* @__PURE__ */ e(
63
+ I ? /* @__PURE__ */ e(
49
64
  "p",
50
65
  {
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")
66
+ className: h ? "max-w-[20rem] text-sm font-medium leading-5 text-content-caption" : "text-base font-medium leading-5 text-content-caption",
67
+ children: r ?? f("irisChat.greetingSubtitle")
53
68
  }
54
- ),
69
+ ) : null,
55
70
  n
56
71
  ]
57
72
  }
58
73
  );
59
74
  }
60
- ), ze = d("IrisChatSuggestions", ({ className: r, children: a, ...t }, s) => {
61
- const { t: n } = b();
62
- return /* @__PURE__ */ o(
75
+ ), Qe = m("IrisChatSuggestions", ({ className: s, children: a, ...t }, r) => {
76
+ const { t: n } = v();
77
+ return /* @__PURE__ */ l(
63
78
  "div",
64
79
  {
65
- ref: s,
80
+ ref: r,
66
81
  "data-component": "iris-chat-suggestions",
67
- className: c(
82
+ className: o(
68
83
  "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
84
+ s
70
85
  ),
71
86
  ...t,
72
87
  children: [
@@ -75,79 +90,79 @@ const we = d(
75
90
  ]
76
91
  }
77
92
  );
78
- }), _e = d(
93
+ }), Xe = m(
79
94
  "IrisChatSuggestion",
80
- ({ className: r, children: a, type: t = "button", ...s }, n) => /* @__PURE__ */ o(
95
+ ({ className: s, children: a, type: t = "button", ...r }, n) => /* @__PURE__ */ l(
81
96
  "button",
82
97
  {
83
98
  ref: n,
84
99
  type: t,
85
100
  "data-component": "iris-chat-suggestion",
86
- className: c(
101
+ className: o(
87
102
  "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
103
+ s
89
104
  ),
90
- ...s,
105
+ ...r,
91
106
  children: [
92
- /* @__PURE__ */ e(se, { size: 14 }),
107
+ /* @__PURE__ */ e(fe, { size: 14 }),
93
108
  /* @__PURE__ */ e("span", { className: "truncate", children: a })
94
109
  ]
95
110
  }
96
111
  )
97
- ), Ae = d("IrisChatWorkflows", ({ className: r, children: a, onShowMore: t, ...s }, n) => {
98
- const { t: l } = b();
99
- return /* @__PURE__ */ o(
112
+ ), Ze = m("IrisChatWorkflows", ({ className: s, children: a, onShowMore: t, ...r }, n) => {
113
+ const { t: d } = v();
114
+ return /* @__PURE__ */ l(
100
115
  "div",
101
116
  {
102
117
  ref: n,
103
118
  "data-component": "iris-chat-workflows",
104
- className: c("flex flex-col gap-2 pb-6", r),
105
- ...s,
119
+ className: o("flex flex-col gap-2 pb-6", s),
120
+ ...r,
106
121
  children: [
107
- /* @__PURE__ */ e("p", { className: "text-xs font-medium capitalize leading-4 text-content-secondary", children: l("irisChat.suggestedWorkflows") }),
122
+ /* @__PURE__ */ e("p", { className: "text-xs font-medium capitalize leading-4 text-content-secondary", children: d("irisChat.suggestedWorkflows") }),
108
123
  /* @__PURE__ */ e("div", { className: "flex flex-col", children: a }),
109
- t ? /* @__PURE__ */ o(
110
- p,
124
+ t ? /* @__PURE__ */ l(
125
+ u,
111
126
  {
112
127
  type: "button",
113
128
  variant: "link",
114
129
  className: "h-auto justify-start px-0 text-sm",
115
130
  onClick: t,
116
131
  children: [
117
- l("irisChat.showMore"),
118
- /* @__PURE__ */ e(z, { size: 16, className: "rotate-90" })
132
+ d("irisChat.showMore"),
133
+ /* @__PURE__ */ e(P, { size: 16, className: "rotate-90" })
119
134
  ]
120
135
  }
121
136
  ) : null
122
137
  ]
123
138
  }
124
139
  );
125
- }), Se = d(
140
+ }), $e = m(
126
141
  "IrisChatWorkflow",
127
- ({ className: r, title: a, description: t, type: s = "button", ...n }, l) => /* @__PURE__ */ o(
142
+ ({ className: s, title: a, description: t, type: r = "button", ...n }, d) => /* @__PURE__ */ l(
128
143
  "button",
129
144
  {
130
- ref: l,
131
- type: s,
145
+ ref: d,
146
+ type: r,
132
147
  "data-component": "iris-chat-workflow",
133
- className: c(
148
+ className: o(
134
149
  "flex items-center gap-2 rounded-md py-2 text-start hover:bg-accent",
135
- r
150
+ s
136
151
  ),
137
152
  ...n,
138
153
  children: [
139
- /* @__PURE__ */ e(_, { size: 16 }),
140
- /* @__PURE__ */ o("span", { className: "min-w-0 flex-1", children: [
154
+ /* @__PURE__ */ e(T, { size: 16 }),
155
+ /* @__PURE__ */ l("span", { className: "min-w-0 flex-1", children: [
141
156
  /* @__PURE__ */ e("span", { className: "block truncate text-sm font-medium text-content", children: a }),
142
157
  t ? /* @__PURE__ */ e("span", { className: "block truncate text-xs text-content-caption", children: t }) : null
143
158
  ] }),
144
- /* @__PURE__ */ e(z, { size: 16, className: "text-content-secondary" })
159
+ /* @__PURE__ */ e(P, { size: 16, className: "text-content-secondary" })
145
160
  ]
146
161
  }
147
162
  )
148
- ), Te = d(
163
+ ), et = m(
149
164
  "IrisChatThread",
150
- ({ className: r, ...a }, t) => /* @__PURE__ */ e(
165
+ ({ className: s, ...a }, t) => /* @__PURE__ */ e(
151
166
  "div",
152
167
  {
153
168
  ref: t,
@@ -155,154 +170,179 @@ const we = d(
155
170
  role: "log",
156
171
  "aria-live": "polite",
157
172
  "aria-relevant": "additions",
158
- className: c("flex min-w-0 w-full flex-col gap-4 py-4", r),
173
+ className: o("flex min-w-0 w-full flex-col gap-4 py-4", s),
159
174
  ...a
160
175
  }
161
176
  )
162
- ), je = d(
177
+ ), tt = m(
163
178
  "IrisChatDay",
164
- ({ className: r, children: a, ...t }, s) => /* @__PURE__ */ e(
179
+ ({ className: s, children: a, ...t }, r) => /* @__PURE__ */ e(
165
180
  "div",
166
181
  {
167
- ref: s,
182
+ ref: r,
168
183
  "data-component": "iris-chat-day",
169
- className: c("flex justify-center", r),
184
+ className: o("flex justify-center", s),
170
185
  ...t,
171
186
  children: /* @__PURE__ */ e("span", { className: "rounded-full bg-secondary px-3 py-1 text-xs font-medium text-content-secondary", children: a })
172
187
  }
173
188
  )
174
- ), Pe = d(
189
+ ), at = m(
175
190
  "IrisChatMessage",
176
- ({ className: r, role: a, time: t, children: s, ...n }, l) => /* @__PURE__ */ o(
191
+ ({ className: s, role: a, time: t, framed: r, children: n, ...d }, b) => /* @__PURE__ */ e(
177
192
  "article",
178
193
  {
179
- ref: l,
194
+ ref: b,
180
195
  "data-component": "iris-chat-message",
181
196
  "data-role": a,
182
- className: c(
197
+ className: o(
183
198
  "flex min-w-0 w-full flex-col gap-1",
184
199
  a === "user" ? "items-end" : "items-start",
185
- r
200
+ s
186
201
  ),
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
- ]
202
+ ...d,
203
+ children: /* @__PURE__ */ l("div", { "data-slot": "bubble", className: ze({ role: a, framed: r }), children: [
204
+ n,
205
+ t ? /* @__PURE__ */ e(
206
+ "time",
207
+ {
208
+ className: "col-start-2 self-end text-[10px] font-medium leading-[10px] text-secondary-foreground",
209
+ children: t
210
+ }
211
+ ) : null
212
+ ] })
192
213
  }
193
214
  )
194
- ), ce = ["notAsked", "tone", "incorrect", "other"], Ee = d(
215
+ ), Pe = ["notAsked", "tone", "incorrect", "other"], rt = m(
195
216
  "IrisChatActions",
196
217
  ({
197
- className: r,
218
+ className: s,
198
219
  liked: a,
199
220
  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 = {
221
+ copyText: r,
222
+ speakText: n,
223
+ speechLocale: d,
224
+ onLike: b,
225
+ onDislike: f,
226
+ onCopy: c,
227
+ onRetry: h,
228
+ onSpeak: I,
229
+ onSpeechNotice: z,
230
+ onFeedback: y,
231
+ ..._
232
+ }, A) => {
233
+ const { t: i } = v(), [g, W] = x(!1), [R, S] = x(!1), k = Q(null);
234
+ X(
235
+ () => () => {
236
+ k.current !== null && window.clearTimeout(k.current);
237
+ },
238
+ []
239
+ );
240
+ const [w, E] = x(!1), [K, G] = x(!1), [O, U] = x("notAsked"), [j, F] = x(""), [H, B] = x(!1), L = {
210
241
  notAsked: i("irisChat.feedbackNotAsked"),
211
242
  tone: i("irisChat.feedbackTone"),
212
243
  incorrect: i("irisChat.feedbackIncorrect"),
213
244
  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();
245
+ }, M = Ce({ speakText: n, copyText: r }), V = M.length > 0 || !!I, Y = () => {
246
+ (async () => {
247
+ if (!r) {
248
+ c?.();
249
+ return;
250
+ }
251
+ await ge(r) && (c?.(), W(!0), S(!0), k.current !== null && window.clearTimeout(k.current), k.current = window.setTimeout(() => {
252
+ W(!1), S(!1), k.current = null;
253
+ }, xe));
254
+ })();
255
+ }, q = () => {
256
+ if (I) {
257
+ I();
220
258
  return;
221
259
  }
222
- if (!s || typeof window.speechSynthesis > "u")
223
- return;
224
- if (N) {
225
- window.speechSynthesis.cancel(), I(!1);
260
+ if (w) {
261
+ Ie(), E(!1);
226
262
  return;
227
263
  }
228
- const h = new SpeechSynthesisUtterance(s);
229
- h.onend = () => I(!1), h.onerror = () => I(!1), window.speechSynthesis.speak(h), I(!0);
264
+ ke({
265
+ text: n ?? r ?? "",
266
+ locale: d,
267
+ onSpeakingChange: E,
268
+ onNotice: z
269
+ });
230
270
  };
231
- return /* @__PURE__ */ o(
271
+ return /* @__PURE__ */ l(
232
272
  "div",
233
273
  {
234
- ref: w,
274
+ ref: A,
235
275
  "data-component": "iris-chat-actions",
236
- className: c("flex items-center gap-0.5", r),
237
- ...y,
276
+ className: o("flex items-center gap-0.5", s),
277
+ ..._,
238
278
  children: [
239
- /* @__PURE__ */ e(f, { label: i("irisChat.like"), children: /* @__PURE__ */ e(
240
- p,
279
+ /* @__PURE__ */ e(C, { label: i("irisChat.like"), children: /* @__PURE__ */ e(
280
+ u,
241
281
  {
242
282
  type: "button",
243
283
  variant: "ghost",
244
284
  size: "icon",
245
285
  "aria-label": i("irisChat.like"),
246
286
  "aria-pressed": a,
247
- className: c(a && "text-brand"),
248
- onClick: n,
249
- children: /* @__PURE__ */ e(Z, { size: 16 })
287
+ className: o(N, a && "text-brand bg-brand-subtle"),
288
+ onClick: b,
289
+ children: /* @__PURE__ */ e(ce, { size: 16 })
250
290
  }
251
291
  ) }),
252
- m ? /* @__PURE__ */ o(
253
- K,
292
+ y ? /* @__PURE__ */ l(
293
+ $,
254
294
  {
255
- open: G,
256
- onOpenChange: (h) => {
257
- A(h), h || (P(!1), j(""));
295
+ open: K,
296
+ onOpenChange: (p) => {
297
+ G(p), p || (B(!1), F(""));
258
298
  },
259
299
  children: [
260
- /* @__PURE__ */ e(f, { label: i("irisChat.dislike"), children: /* @__PURE__ */ e(H, { asChild: !0, children: /* @__PURE__ */ e(
261
- p,
300
+ /* @__PURE__ */ e(C, { label: i("irisChat.dislike"), children: /* @__PURE__ */ e(ee, { asChild: !0, children: /* @__PURE__ */ e(
301
+ u,
262
302
  {
263
303
  type: "button",
264
304
  variant: "ghost",
265
305
  size: "icon",
266
306
  "aria-label": i("irisChat.dislike"),
267
307
  "aria-pressed": t,
268
- className: c(t && "text-brand"),
269
- onClick: l,
270
- children: /* @__PURE__ */ e(E, { size: 16 })
308
+ className: o(N, t && "text-brand bg-brand-subtle"),
309
+ onClick: f,
310
+ children: /* @__PURE__ */ e(D, { size: 16 })
271
311
  }
272
312
  ) }) }),
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(
313
+ /* @__PURE__ */ e(te, { align: "start", side: "top", className: "w-[320px] rounded-xl p-4", children: H ? /* @__PURE__ */ e("p", { className: "text-sm font-medium text-content", children: i("irisChat.feedbackThanks") }) : /* @__PURE__ */ l(J, { children: [
314
+ /* @__PURE__ */ e(ae, { className: "mb-3", children: /* @__PURE__ */ e(re, { className: "text-sm font-semibold", children: i("irisChat.feedbackTitle") }) }),
315
+ /* @__PURE__ */ l(se, { className: "flex flex-col gap-3", children: [
316
+ /* @__PURE__ */ e("div", { className: "flex flex-wrap gap-2", children: Pe.map((p) => /* @__PURE__ */ e(
277
317
  "button",
278
318
  {
279
319
  type: "button",
280
- className: c(
320
+ className: o(
281
321
  "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"
322
+ O === p ? "border-brand bg-brand-subtle text-brand" : "border-stroke-subtle text-content"
283
323
  ),
284
- onClick: () => F(h),
285
- children: O[h]
324
+ onClick: () => U(p),
325
+ children: L[p]
286
326
  },
287
- h
327
+ p
288
328
  )) }),
289
329
  /* @__PURE__ */ e(
290
330
  "textarea",
291
331
  {
292
- value: T,
332
+ value: j,
293
333
  placeholder: i("irisChat.feedbackPlaceholder"),
294
334
  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)
335
+ onChange: (p) => F(p.target.value)
296
336
  }
297
337
  ),
298
338
  /* @__PURE__ */ e(
299
- p,
339
+ u,
300
340
  {
301
341
  type: "button",
302
342
  size: "sm",
303
343
  className: "self-end",
304
344
  onClick: () => {
305
- m({ reason: S, details: T }), P(!0), window.setTimeout(() => A(!1), 1200);
345
+ y({ reason: O, details: j }), B(!0), window.setTimeout(() => G(!1), 1200);
306
346
  },
307
347
  children: i("irisChat.feedbackSubmit")
308
348
  }
@@ -311,183 +351,200 @@ const we = d(
311
351
  ] }) })
312
352
  ]
313
353
  }
314
- ) : /* @__PURE__ */ e(f, { label: i("irisChat.dislike"), children: /* @__PURE__ */ e(
315
- p,
354
+ ) : /* @__PURE__ */ e(C, { label: i("irisChat.dislike"), children: /* @__PURE__ */ e(
355
+ u,
316
356
  {
317
357
  type: "button",
318
358
  variant: "ghost",
319
359
  size: "icon",
320
360
  "aria-label": i("irisChat.dislike"),
321
361
  "aria-pressed": t,
322
- className: c(t && "text-brand"),
323
- onClick: l,
324
- children: /* @__PURE__ */ e(E, { size: 16 })
362
+ className: o(N, t && "text-brand bg-brand-subtle"),
363
+ onClick: f,
364
+ children: /* @__PURE__ */ e(D, { size: 16 })
325
365
  }
326
366
  ) }),
327
- s || x ? /* @__PURE__ */ e(f, { label: i(k ? "irisChat.copied" : "irisChat.copy"), children: /* @__PURE__ */ e(
328
- p,
367
+ r || c ? /* @__PURE__ */ e(
368
+ C,
329
369
  {
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 })
370
+ label: i(g ? "irisChat.copied" : "irisChat.copy"),
371
+ open: R,
372
+ onOpenChange: S,
373
+ children: /* @__PURE__ */ e(
374
+ u,
375
+ {
376
+ type: "button",
377
+ variant: "ghost",
378
+ size: "icon",
379
+ "aria-label": i(g ? "irisChat.copied" : "irisChat.copy"),
380
+ "data-testid": "iris-chat-copy",
381
+ "data-copied": g ? "" : void 0,
382
+ className: o(
383
+ N,
384
+ g && be
385
+ ),
386
+ onClick: Y,
387
+ children: g ? /* @__PURE__ */ e(de, { size: 16 }) : /* @__PURE__ */ e(me, { size: 16 })
388
+ }
389
+ )
337
390
  }
338
- ) }) : null,
339
- /* @__PURE__ */ e(f, { label: i(N ? "irisChat.stopSpeaking" : "irisChat.speak"), children: /* @__PURE__ */ e(
340
- p,
391
+ ) : null,
392
+ V ? /* @__PURE__ */ e(C, { label: i(w ? "irisChat.stopSpeaking" : "irisChat.speak"), children: /* @__PURE__ */ e(
393
+ u,
341
394
  {
342
395
  type: "button",
343
396
  variant: "ghost",
344
397
  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 })
398
+ "aria-label": i(w ? "irisChat.stopSpeaking" : "irisChat.speak"),
399
+ "aria-pressed": w,
400
+ "data-testid": "iris-chat-speak",
401
+ disabled: !I && M.length === 0,
402
+ className: o(N, w && "text-brand bg-brand-subtle"),
403
+ onClick: q,
404
+ children: /* @__PURE__ */ e(he, { size: 16 })
349
405
  }
350
- ) }),
351
- u ? /* @__PURE__ */ e(f, { label: i("irisChat.retry"), children: /* @__PURE__ */ e(
352
- p,
406
+ ) }) : null,
407
+ h ? /* @__PURE__ */ e(C, { label: i("irisChat.retry"), children: /* @__PURE__ */ e(
408
+ u,
353
409
  {
354
410
  type: "button",
355
411
  variant: "ghost",
356
412
  size: "icon",
357
413
  "aria-label": i("irisChat.retry"),
358
414
  "data-testid": "iris-chat-retry",
359
- onClick: u,
360
- children: /* @__PURE__ */ e(te, { size: 16 })
415
+ className: N,
416
+ onClick: h,
417
+ children: /* @__PURE__ */ e(pe, { size: 16 })
361
418
  }
362
419
  ) }) : null
363
420
  ]
364
421
  }
365
422
  );
366
423
  }
367
- ), Ge = d(
424
+ ), st = m(
368
425
  "IrisChatFollowUps",
369
- ({ className: r, ...a }, t) => /* @__PURE__ */ e(
426
+ ({ className: s, ...a }, t) => /* @__PURE__ */ e(
370
427
  "div",
371
428
  {
372
429
  ref: t,
373
430
  "data-component": "iris-chat-follow-ups",
374
- className: c("flex w-full flex-col overflow-hidden rounded-xl border border-stroke-subtle", r),
431
+ className: o("flex w-full flex-col overflow-hidden rounded-xl border border-stroke-subtle", s),
375
432
  ...a
376
433
  }
377
434
  )
378
- ), Fe = d(
435
+ ), it = m(
379
436
  "IrisChatFollowUp",
380
- ({ className: r, children: a, type: t = "button", ...s }, n) => /* @__PURE__ */ o(
437
+ ({ className: s, children: a, type: t = "button", ...r }, n) => /* @__PURE__ */ l(
381
438
  "button",
382
439
  {
383
440
  ref: n,
384
441
  type: t,
385
442
  "data-component": "iris-chat-follow-up",
386
- className: c(
443
+ className: o(
387
444
  "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
445
+ s
389
446
  ),
390
- ...s,
447
+ ...r,
391
448
  children: [
392
- /* @__PURE__ */ o("span", { className: "flex min-w-0 flex-1 items-center gap-2", children: [
393
- /* @__PURE__ */ e(_, { size: 14 }),
449
+ /* @__PURE__ */ l("span", { className: "flex min-w-0 flex-1 items-center gap-2", children: [
450
+ /* @__PURE__ */ e(T, { size: 14 }),
394
451
  /* @__PURE__ */ e("span", { className: "min-w-0 whitespace-normal", children: a })
395
452
  ] }),
396
- /* @__PURE__ */ e(z, { size: 16, className: "shrink-0 text-content-secondary" })
453
+ /* @__PURE__ */ e(P, { size: 16, className: "shrink-0 text-content-secondary" })
397
454
  ]
398
455
  }
399
456
  )
400
- ), Me = d(
457
+ ), nt = m(
401
458
  "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(
459
+ ({ className: s, name: a, kind: t = "file", sizeLabel: r, previewUrl: n, onRemove: d }, b) => {
460
+ const { t: f } = v();
461
+ return /* @__PURE__ */ l(
405
462
  "div",
406
463
  {
407
- ref: x,
464
+ ref: b,
408
465
  "data-component": "iris-chat-attachment",
409
466
  "data-kind": t,
410
- className: c(
467
+ className: o(
411
468
  "flex max-w-full items-center gap-2 rounded-xl bg-canvas-elevated px-2 py-1.5 text-xs text-content",
412
- r
469
+ s
413
470
  ),
414
471
  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: [
472
+ t === "image" && n ? /* @__PURE__ */ e("img", { src: n, alt: "", className: "size-10 shrink-0 rounded-lg object-cover" }) : /* @__PURE__ */ e(ue, { size: 14 }),
473
+ /* @__PURE__ */ l("span", { className: "min-w-0", children: [
417
474
  /* @__PURE__ */ e("span", { className: "block truncate font-medium", children: a }),
418
- s ? /* @__PURE__ */ e("span", { className: "block text-content-caption", children: s }) : null
475
+ r ? /* @__PURE__ */ e("span", { className: "block text-content-caption", children: r }) : null
419
476
  ] }),
420
- l ? /* @__PURE__ */ e(f, { label: u("irisChat.removeAttachment"), children: /* @__PURE__ */ e(
421
- p,
477
+ d ? /* @__PURE__ */ e(C, { label: f("irisChat.removeAttachment"), children: /* @__PURE__ */ e(
478
+ u,
422
479
  {
423
480
  type: "button",
424
481
  variant: "ghost",
425
482
  size: "icon",
426
483
  className: "size-6",
427
- "aria-label": u("irisChat.removeAttachment"),
428
- onClick: l,
429
- children: /* @__PURE__ */ e(U, { size: 12 })
484
+ "aria-label": f("irisChat.removeAttachment"),
485
+ onClick: d,
486
+ children: /* @__PURE__ */ e(Z, { size: 12 })
430
487
  }
431
488
  ) }) : null
432
489
  ]
433
490
  }
434
491
  );
435
492
  }
436
- ), Oe = d(
493
+ ), ot = m(
437
494
  "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,
495
+ ({ className: s, title: a, description: t, onRetry: r }, n) => {
496
+ const { t: d } = v();
497
+ return /* @__PURE__ */ e("div", { ref: n, "data-component": "iris-chat-error", className: o("w-full", s), children: /* @__PURE__ */ l(ie, { variant: "error", children: [
498
+ /* @__PURE__ */ e(ne, { variant: "error" }),
499
+ /* @__PURE__ */ l("div", { className: "flex min-w-0 flex-1 flex-col gap-2", children: [
500
+ /* @__PURE__ */ e(oe, { children: a ?? d("irisChat.generationError") }),
501
+ /* @__PURE__ */ e(le, { children: t ?? d("irisChat.generationErrorBody") }),
502
+ r ? /* @__PURE__ */ e(
503
+ u,
447
504
  {
448
505
  type: "button",
449
506
  size: "sm",
450
507
  variant: "outline",
451
508
  className: "w-fit",
452
509
  "data-testid": "iris-chat-error-retry",
453
- onClick: s,
454
- children: l("irisChat.retry")
510
+ onClick: r,
511
+ children: d("irisChat.retry")
455
512
  }
456
513
  ) : null
457
514
  ] })
458
515
  ] }) });
459
516
  }
460
- ), Be = d(
517
+ ), lt = m(
461
518
  "IrisChatChip",
462
- ({ className: r, type: a = "button", variant: t = "default", ...s }, n) => /* @__PURE__ */ e(
519
+ ({ className: s, type: a = "button", variant: t = "default", ...r }, n) => /* @__PURE__ */ e(
463
520
  "button",
464
521
  {
465
522
  ref: n,
466
523
  type: a,
467
524
  "data-component": "iris-chat-chip",
468
525
  "data-variant": t,
469
- className: c(
526
+ className: o(
470
527
  "rounded-full px-3 py-1.5 text-sm font-medium leading-5 disabled:pointer-events-none disabled:opacity-50",
471
528
  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
529
+ s
473
530
  ),
474
- ...s
531
+ ...r
475
532
  }
476
533
  )
477
534
  );
478
535
  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
536
+ rt as IrisChatActions,
537
+ nt as IrisChatAttachment,
538
+ lt as IrisChatChip,
539
+ tt as IrisChatDay,
540
+ ot as IrisChatError,
541
+ it as IrisChatFollowUp,
542
+ st as IrisChatFollowUps,
543
+ Je as IrisChatGreeting,
544
+ at as IrisChatMessage,
545
+ Xe as IrisChatSuggestion,
546
+ Qe as IrisChatSuggestions,
547
+ et as IrisChatThread,
548
+ $e as IrisChatWorkflow,
549
+ Ze as IrisChatWorkflows
493
550
  };