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,336 @@
1
+ import { jsx as r, jsxs as I, Fragment as z } from "react/jsx-runtime";
2
+ import * as H from "react";
3
+ import { Slot as P } from "@radix-ui/react-slot";
4
+ import { Back as k, Cross as w, Draw as T } from "impact-nova-icons";
5
+ import { Popover as y, PopoverTrigger as R, PopoverContent as M, PopoverHeader as O, PopoverTitle as D, PopoverBody as F } from "../../feedback/popover/popover.js";
6
+ import { ButtonIconTooltip as L } from "../../feedback/tooltip/button-icon-tooltip.js";
7
+ import { Button as S } from "../../primitives/button/button.js";
8
+ import { IrisButton as V } from "../../primitives/iris/iris.js";
9
+ import { IrisAlanGradientIcon as N } from "../../primitives/iris/iris-alan-gradient-icon.js";
10
+ import { useImpactNovaI18n as p } from "../../../i18n/use-impact-nova-i18n.js";
11
+ import { useComposedRefs as j } from "../../../lib/compose-refs.js";
12
+ import { useControllableState as b } from "@radix-ui/react-use-controllable-state";
13
+ import { createComponent as c } from "../../../lib/primitives/create-component.js";
14
+ import { cn as m } from "../../../lib/utils.js";
15
+ import { IrisChatProvider as A, useIrisChat as g, useIrisChatOptional as E } from "./iris-chat-context.js";
16
+ import { IrisChatHamburgerIcon as G, IrisChatMinimizeIcon as q } from "./iris-chat-icons.js";
17
+ import { irisChatRootVariants as J, irisChatHeaderVariants as K, irisChatPanelVariants as Q } from "./iris-chat.variants.js";
18
+ const U = ({
19
+ open: e,
20
+ defaultOpen: t = !0,
21
+ onOpenChange: a,
22
+ placement: i,
23
+ defaultPlacement: s = "dock-right",
24
+ onPlacementChange: n,
25
+ className: l,
26
+ children: d
27
+ }) => {
28
+ const [o, h] = b({
29
+ prop: e,
30
+ defaultProp: t,
31
+ onChange: a
32
+ }), [u, x] = b({
33
+ prop: i,
34
+ defaultProp: s,
35
+ onChange: n
36
+ }), C = o ?? t, f = u ?? s;
37
+ return /* @__PURE__ */ r(
38
+ A,
39
+ {
40
+ value: {
41
+ open: C,
42
+ setOpen: h,
43
+ placement: f,
44
+ setPlacement: x
45
+ },
46
+ children: /* @__PURE__ */ r(
47
+ "div",
48
+ {
49
+ "data-component": "iris-chat",
50
+ "data-placement": f,
51
+ "data-open": C ? "" : void 0,
52
+ className: m(J({ placement: f }), l),
53
+ children: d
54
+ }
55
+ )
56
+ }
57
+ );
58
+ };
59
+ U.displayName = "IrisChat";
60
+ const me = c(
61
+ "IrisChatPanel",
62
+ ({ className: e, hidden: t, ...a }, i) => {
63
+ const s = g();
64
+ return t ?? !s.open ? null : /* @__PURE__ */ r(
65
+ "div",
66
+ {
67
+ ref: i,
68
+ "data-component": "iris-chat-panel",
69
+ "data-placement": s.placement,
70
+ className: m(Q({ placement: s.placement }), e),
71
+ ...a
72
+ }
73
+ );
74
+ }
75
+ ), de = c(
76
+ "IrisChatHeader",
77
+ ({ className: e, ...t }, a) => /* @__PURE__ */ r(
78
+ "header",
79
+ {
80
+ ref: a,
81
+ "data-component": "iris-chat-header",
82
+ className: m(K(), e),
83
+ ...t
84
+ }
85
+ )
86
+ ), he = c("IrisChatHeaderLeading", ({ className: e, ...t }, a) => /* @__PURE__ */ r(
87
+ "div",
88
+ {
89
+ ref: a,
90
+ "data-component": "iris-chat-header-leading",
91
+ className: m("flex min-w-0 items-center gap-2", e),
92
+ ...t
93
+ }
94
+ )), pe = c("IrisChatHeaderTrailing", ({ className: e, ...t }, a) => /* @__PURE__ */ r(
95
+ "div",
96
+ {
97
+ ref: a,
98
+ "data-component": "iris-chat-header-trailing",
99
+ className: m("flex shrink-0 items-center gap-2", e),
100
+ ...t
101
+ }
102
+ )), ue = c(
103
+ "IrisChatHeaderTitle",
104
+ ({ className: e, showBrand: t = !1, children: a, ...i }, s) => {
105
+ const { t: n } = p();
106
+ return /* @__PURE__ */ I("div", { className: "flex min-w-0 items-center gap-1", children: [
107
+ t ? /* @__PURE__ */ r(N, { size: 18 }) : null,
108
+ /* @__PURE__ */ r(
109
+ "h2",
110
+ {
111
+ ref: s,
112
+ "data-component": "iris-chat-header-title",
113
+ className: m("truncate text-sm font-semibold leading-5 text-content", e),
114
+ ...i,
115
+ children: a ?? n("irisChat.askIris")
116
+ }
117
+ )
118
+ ] });
119
+ }
120
+ ), v = c(
121
+ "IrisChatIconButton",
122
+ ({ className: e, label: t, children: a, type: i = "button", variant: s = "secondary", disabled: n, ...l }, d) => /* @__PURE__ */ r(L, { label: t, disabled: n, children: /* @__PURE__ */ r(
123
+ S,
124
+ {
125
+ ref: d,
126
+ type: i,
127
+ variant: s,
128
+ size: "icon",
129
+ "aria-label": t,
130
+ disabled: n,
131
+ "data-component": "iris-chat-icon-button",
132
+ className: m(
133
+ "text-content",
134
+ s === "secondary" ? "rounded-full" : "rounded-lg",
135
+ e
136
+ ),
137
+ ...l,
138
+ children: a
139
+ }
140
+ ) })
141
+ ), Ce = c("IrisChatHeaderMenuButton", ({ label: e, ...t }, a) => {
142
+ const { t: i } = p();
143
+ return /* @__PURE__ */ r(v, { ref: a, variant: "ghost", label: e ?? i("irisChat.menu"), ...t, children: /* @__PURE__ */ r(G, { size: 16 }) });
144
+ }), fe = c("IrisChatHeaderBackButton", ({ label: e, ...t }, a) => {
145
+ const { t: i } = p();
146
+ return /* @__PURE__ */ r(v, { ref: a, variant: "ghost", label: e ?? i("irisChat.back"), ...t, children: /* @__PURE__ */ r(k, { size: 16 }) });
147
+ }), Ie = c("IrisChatHeaderNewChatButton", ({ label: e, ...t }, a) => {
148
+ const { t: i } = p();
149
+ return /* @__PURE__ */ r(v, { ref: a, label: e ?? i("irisChat.newChat"), ...t, children: /* @__PURE__ */ r(T, { size: 16 }) });
150
+ }), ge = c("IrisChatHeaderMinimizeButton", ({ label: e, onClick: t, ...a }, i) => {
151
+ const { t: s } = p(), n = g(), l = H.useRef(
152
+ n.placement === "minimized" ? "float" : n.placement
153
+ ), d = n.placement === "minimized";
154
+ return /* @__PURE__ */ r(
155
+ v,
156
+ {
157
+ ref: i,
158
+ label: e ?? s(d ? "irisChat.expand" : "irisChat.minimize"),
159
+ "aria-pressed": d,
160
+ onClick: (o) => {
161
+ d ? n.setPlacement(l.current) : (l.current = n.placement, n.setPlacement("minimized")), t?.(o);
162
+ },
163
+ ...a,
164
+ children: /* @__PURE__ */ r(q, { size: 16 })
165
+ }
166
+ );
167
+ }), ve = c("IrisChatHeaderCloseButton", ({ label: e, onClick: t, ...a }, i) => {
168
+ const { t: s } = p(), n = g();
169
+ return /* @__PURE__ */ r(
170
+ v,
171
+ {
172
+ ref: i,
173
+ label: e ?? s("aria.close"),
174
+ onClick: (l) => {
175
+ n.setOpen(!1), t?.(l);
176
+ },
177
+ ...a,
178
+ children: /* @__PURE__ */ r(w, { size: 16 })
179
+ }
180
+ );
181
+ });
182
+ function B(e) {
183
+ return e === "minimized" || e === "composer";
184
+ }
185
+ const xe = c(
186
+ "IrisChatBody",
187
+ ({ className: e, onScroll: t, ...a }, i) => {
188
+ const s = g(), n = H.useRef(null), l = H.useRef(!0), d = j(i, n);
189
+ return H.useEffect(() => {
190
+ const o = n.current;
191
+ if (!o)
192
+ return;
193
+ const h = () => {
194
+ l.current && (o.scrollTop = o.scrollHeight);
195
+ }, u = new ResizeObserver(h), x = () => {
196
+ u.disconnect(), u.observe(o);
197
+ for (const f of o.children)
198
+ u.observe(f);
199
+ }, C = new MutationObserver(() => {
200
+ x(), h();
201
+ });
202
+ return C.observe(o, { childList: !0, subtree: !0, characterData: !0 }), x(), h(), () => {
203
+ u.disconnect(), C.disconnect();
204
+ };
205
+ }, []), /* @__PURE__ */ r(
206
+ "div",
207
+ {
208
+ ref: d,
209
+ "data-component": "iris-chat-body",
210
+ "data-placement": s.placement,
211
+ className: m(
212
+ "flex min-h-0 min-w-0 flex-1 flex-col overflow-x-hidden overflow-y-auto",
213
+ B(s.placement) ? "px-4" : "px-12",
214
+ e
215
+ ),
216
+ onScroll: (o) => {
217
+ const h = o.currentTarget;
218
+ l.current = h.scrollHeight - h.scrollTop - h.clientHeight < 64, t?.(o);
219
+ },
220
+ ...a
221
+ }
222
+ );
223
+ }
224
+ ), He = c(
225
+ "IrisChatFooter",
226
+ ({ className: e, ...t }, a) => {
227
+ const i = g();
228
+ return /* @__PURE__ */ r(
229
+ "div",
230
+ {
231
+ ref: a,
232
+ "data-component": "iris-chat-footer",
233
+ "data-placement": i.placement,
234
+ className: m(
235
+ "min-w-0 shrink-0 pb-2",
236
+ B(i.placement) ? "px-4" : "px-12",
237
+ e
238
+ ),
239
+ ...t
240
+ }
241
+ );
242
+ }
243
+ ), be = c(
244
+ "IrisChatDisclaimer",
245
+ ({ className: e, href: t, children: a, ...i }, s) => {
246
+ const { t: n } = p();
247
+ return /* @__PURE__ */ r(
248
+ "p",
249
+ {
250
+ ref: s,
251
+ "data-component": "iris-chat-disclaimer",
252
+ className: m(
253
+ "shrink-0 px-4 py-3 text-center text-xs font-medium leading-4 text-content-caption",
254
+ e
255
+ ),
256
+ ...i,
257
+ children: a ?? /* @__PURE__ */ I(z, { children: [
258
+ n("irisChat.disclaimer"),
259
+ " ",
260
+ t ? /* @__PURE__ */ r("a", { href: t, className: "underline hover:text-brand", children: n("irisChat.learnMore") }) : /* @__PURE__ */ I(y, { children: [
261
+ /* @__PURE__ */ r(R, { asChild: !0, children: /* @__PURE__ */ r(
262
+ "button",
263
+ {
264
+ type: "button",
265
+ className: "underline hover:text-brand",
266
+ "data-testid": "iris-chat-learn-more",
267
+ children: n("irisChat.learnMore")
268
+ }
269
+ ) }),
270
+ /* @__PURE__ */ I(
271
+ M,
272
+ {
273
+ align: "center",
274
+ side: "top",
275
+ className: "iris-menu-surface w-[320px] rounded-xl p-4",
276
+ children: [
277
+ /* @__PURE__ */ r(O, { className: "mb-2", children: /* @__PURE__ */ I("div", { className: "flex items-center gap-2", children: [
278
+ /* @__PURE__ */ r(N, { size: 18 }),
279
+ /* @__PURE__ */ r(D, { className: "text-sm font-semibold", children: n("irisChat.disclaimerTitle") })
280
+ ] }) }),
281
+ /* @__PURE__ */ r(F, { className: "text-sm leading-5 text-content-secondary", children: n("irisChat.disclaimerBody") })
282
+ ]
283
+ }
284
+ )
285
+ ] })
286
+ ] })
287
+ }
288
+ );
289
+ }
290
+ ), Ne = c(
291
+ "IrisChatTrigger",
292
+ ({ asChild: e = !1, onClick: t, size: a = "md", shape: i = "default", className: s, ...n }, l) => {
293
+ const d = E(), o = (h) => {
294
+ d?.setOpen(!0), t?.(h);
295
+ };
296
+ return e ? /* @__PURE__ */ r(
297
+ P,
298
+ {
299
+ ref: l,
300
+ "data-component": "iris-chat-trigger",
301
+ className: m("pointer-events-auto", s),
302
+ onClick: o,
303
+ ...n
304
+ }
305
+ ) : /* @__PURE__ */ r(
306
+ V,
307
+ {
308
+ ref: l,
309
+ size: a,
310
+ shape: i,
311
+ "data-component": "iris-chat-trigger",
312
+ className: m("pointer-events-auto", s),
313
+ onClick: o,
314
+ ...n
315
+ }
316
+ );
317
+ }
318
+ );
319
+ export {
320
+ U as IrisChat,
321
+ xe as IrisChatBody,
322
+ be as IrisChatDisclaimer,
323
+ He as IrisChatFooter,
324
+ de as IrisChatHeader,
325
+ fe as IrisChatHeaderBackButton,
326
+ ve as IrisChatHeaderCloseButton,
327
+ he as IrisChatHeaderLeading,
328
+ Ce as IrisChatHeaderMenuButton,
329
+ ge as IrisChatHeaderMinimizeButton,
330
+ Ie as IrisChatHeaderNewChatButton,
331
+ ue as IrisChatHeaderTitle,
332
+ pe as IrisChatHeaderTrailing,
333
+ v as IrisChatIconButton,
334
+ me as IrisChatPanel,
335
+ Ne as IrisChatTrigger
336
+ };
@@ -0,0 +1,208 @@
1
+ import type * as React from "react";
2
+ export type IrisChatPlacement = "dock-right" | "float" | "minimized" | "composer";
3
+ export type IrisChatRole = "user" | "assistant";
4
+ export type IrisChatModelOption = {
5
+ label: string;
6
+ value: string;
7
+ };
8
+ export type IrisChatListItemAction = "pin" | "rename" | "archive" | "delete";
9
+ export type IrisChatMenuSectionId = "recent" | "artifacts";
10
+ export type IrisChatFilterOption = "type" | "status" | "lastActivity";
11
+ export type IrisChatProcessStepStatus = "active" | "complete";
12
+ export type IrisChatProcessStep = {
13
+ id: string;
14
+ label: string;
15
+ status: IrisChatProcessStepStatus;
16
+ chip?: string;
17
+ };
18
+ export type IrisChatCitationTag = string | {
19
+ label: string;
20
+ href?: string;
21
+ };
22
+ export type IrisChatCitationGroup = {
23
+ id: string;
24
+ label: string;
25
+ tags: IrisChatCitationTag[];
26
+ };
27
+ export type IrisChatAttachmentKind = "file" | "image";
28
+ export type IrisChatAttachmentProps = {
29
+ name: string;
30
+ kind?: IrisChatAttachmentKind;
31
+ sizeLabel?: string;
32
+ previewUrl?: string;
33
+ onRemove?: () => void;
34
+ className?: string;
35
+ };
36
+ export type IrisChatErrorProps = {
37
+ title?: string;
38
+ description?: string;
39
+ onRetry?: () => void;
40
+ className?: string;
41
+ };
42
+ export type IrisChatArtifactColumn = {
43
+ id: string;
44
+ header: string;
45
+ };
46
+ export type IrisChatArtifactRow = {
47
+ id: string;
48
+ cells: Record<string, React.ReactNode>;
49
+ };
50
+ export type IrisChatProps = {
51
+ open?: boolean;
52
+ defaultOpen?: boolean;
53
+ onOpenChange?: (open: boolean) => void;
54
+ placement?: IrisChatPlacement;
55
+ defaultPlacement?: IrisChatPlacement;
56
+ onPlacementChange?: (placement: IrisChatPlacement) => void;
57
+ className?: string;
58
+ children?: React.ReactNode;
59
+ };
60
+ export type IrisChatPanelProps = React.HTMLAttributes<HTMLDivElement>;
61
+ export type IrisChatHeaderProps = React.HTMLAttributes<HTMLElement>;
62
+ export type IrisChatHeaderTitleProps = React.HTMLAttributes<HTMLHeadingElement> & {
63
+ showBrand?: boolean;
64
+ };
65
+ export type IrisChatIconButtonProps = React.ButtonHTMLAttributes<HTMLButtonElement> & {
66
+ label: string;
67
+ variant?: "secondary" | "ghost";
68
+ };
69
+ export type IrisChatBodyProps = React.HTMLAttributes<HTMLDivElement>;
70
+ export type IrisChatFooterProps = React.HTMLAttributes<HTMLDivElement>;
71
+ export type IrisChatDisclaimerProps = React.HTMLAttributes<HTMLParagraphElement> & {
72
+ href?: string;
73
+ };
74
+ export type IrisChatTriggerProps = React.ButtonHTMLAttributes<HTMLButtonElement> & {
75
+ asChild?: boolean;
76
+ size?: "sm" | "md" | "lg";
77
+ shape?: "default" | "pill";
78
+ };
79
+ export type IrisChatComposerProps = {
80
+ value?: string;
81
+ defaultValue?: string;
82
+ onValueChange?: (value: string) => void;
83
+ pending?: boolean;
84
+ placeholder?: string;
85
+ model?: string;
86
+ defaultModel?: string;
87
+ onModelChange?: (value: string) => void;
88
+ models?: IrisChatModelOption[];
89
+ onSend?: (value: string, files?: File[]) => void;
90
+ onStop?: () => void;
91
+ onAddClick?: () => void;
92
+ onAttachClick?: () => void;
93
+ onAttach?: (files: File[]) => void;
94
+ onMicClick?: () => void;
95
+ className?: string;
96
+ };
97
+ export type IrisChatGreetingProps = {
98
+ name?: string;
99
+ greeting?: React.ReactNode;
100
+ subtitle?: React.ReactNode;
101
+ mark?: string;
102
+ className?: string;
103
+ children?: React.ReactNode;
104
+ };
105
+ export type IrisChatSuggestionProps = React.ButtonHTMLAttributes<HTMLButtonElement>;
106
+ export type IrisChatWorkflowProps = React.ButtonHTMLAttributes<HTMLButtonElement> & {
107
+ title: string;
108
+ description?: string;
109
+ };
110
+ export type IrisChatThreadProps = React.HTMLAttributes<HTMLDivElement>;
111
+ export type IrisChatDayProps = React.HTMLAttributes<HTMLDivElement>;
112
+ export type IrisChatMessageProps = React.HTMLAttributes<HTMLElement> & {
113
+ role: IrisChatRole;
114
+ time?: string;
115
+ };
116
+ export type IrisChatFeedbackReason = "notAsked" | "tone" | "incorrect" | "other";
117
+ export type IrisChatFeedback = {
118
+ reason: IrisChatFeedbackReason;
119
+ details: string;
120
+ };
121
+ export type IrisChatActionsProps = React.HTMLAttributes<HTMLDivElement> & {
122
+ liked?: boolean;
123
+ disliked?: boolean;
124
+ copyText?: string;
125
+ onLike?: () => void;
126
+ onDislike?: () => void;
127
+ onCopy?: () => void;
128
+ onRetry?: () => void;
129
+ onSpeak?: () => void;
130
+ onFeedback?: (feedback: IrisChatFeedback) => void;
131
+ };
132
+ export type IrisChatFollowUpProps = React.ButtonHTMLAttributes<HTMLButtonElement>;
133
+ export type IrisChatChipProps = React.ButtonHTMLAttributes<HTMLButtonElement> & {
134
+ variant?: "default" | "outline";
135
+ };
136
+ export type IrisChatFollowUpListProps = React.HTMLAttributes<HTMLDivElement>;
137
+ export type IrisChatThinkingProps = React.HTMLAttributes<HTMLDivElement>;
138
+ export type IrisChatThinkingStatusProps = React.HTMLAttributes<HTMLDivElement>;
139
+ export type IrisChatProcessStepsProps = {
140
+ title?: string;
141
+ steps: IrisChatProcessStep[];
142
+ defaultOpen?: boolean;
143
+ open?: boolean;
144
+ onOpenChange?: (open: boolean) => void;
145
+ className?: string;
146
+ };
147
+ export type IrisChatCitationsProps = {
148
+ title?: string;
149
+ groups: IrisChatCitationGroup[];
150
+ defaultOpen?: boolean;
151
+ open?: boolean;
152
+ onOpenChange?: (open: boolean) => void;
153
+ className?: string;
154
+ };
155
+ export type IrisChatMarkdownProps = {
156
+ children: string;
157
+ className?: string;
158
+ };
159
+ export type IrisChatArtifactProps = {
160
+ title: string;
161
+ columns: IrisChatArtifactColumn[];
162
+ rows: IrisChatArtifactRow[];
163
+ onDownload?: () => void;
164
+ onMore?: () => void;
165
+ className?: string;
166
+ };
167
+ export type IrisChatMenuProps = React.HTMLAttributes<HTMLDivElement>;
168
+ export type IrisChatMenuSectionProps = {
169
+ value: IrisChatMenuSectionId;
170
+ title: string;
171
+ onFilterSelect?: (option: IrisChatFilterOption) => void;
172
+ onViewMore?: () => void;
173
+ viewMoreLabel?: string;
174
+ className?: string;
175
+ children?: React.ReactNode;
176
+ };
177
+ export type IrisChatListItemProps = {
178
+ title: string;
179
+ onSelect?: () => void;
180
+ onAction?: (action: IrisChatListItemAction, title?: string) => void;
181
+ className?: string;
182
+ };
183
+ export type IrisChatListProps<T> = {
184
+ items: T[];
185
+ getItemId: (item: T) => string;
186
+ renderItem: (item: T) => React.ReactNode;
187
+ title?: string;
188
+ onFilterSelect?: (option: IrisChatFilterOption) => void;
189
+ estimateSize?: number;
190
+ className?: string;
191
+ };
192
+ export type IrisChatScenarioProps = {
193
+ title: string;
194
+ rows: Array<{
195
+ label: string;
196
+ value: string;
197
+ }>;
198
+ notes?: string[];
199
+ className?: string;
200
+ };
201
+ export type IrisChatPromptProps = {
202
+ title?: React.ReactNode;
203
+ submitLabel?: string;
204
+ submitDisabled?: boolean;
205
+ onSubmit?: () => void;
206
+ className?: string;
207
+ children?: React.ReactNode;
208
+ };
@@ -0,0 +1,14 @@
1
+ export declare const irisChatRootVariants: (props?: ({
2
+ placement?: "dock-right" | "float" | "minimized" | "composer" | null | undefined;
3
+ } & import('class-variance-authority/types').ClassProp) | undefined) => string;
4
+ export declare const irisChatPanelVariants: (props?: ({
5
+ placement?: "dock-right" | "float" | "minimized" | "composer" | null | undefined;
6
+ } & import('class-variance-authority/types').ClassProp) | undefined) => string;
7
+ export declare const irisChatHeaderVariants: (props?: import('class-variance-authority/types').ClassProp | undefined) => string;
8
+ export declare const irisChatComposerVariants: (props?: ({
9
+ layout?: "inline" | "stacked" | null | undefined;
10
+ } & import('class-variance-authority/types').ClassProp) | undefined) => string;
11
+ export declare const irisChatMessageVariants: (props?: ({
12
+ role?: "user" | "assistant" | null | undefined;
13
+ } & import('class-variance-authority/types').ClassProp) | undefined) => string;
14
+ export declare const irisChatMarkdownVariants: (props?: import('class-variance-authority/types').ClassProp | undefined) => string;
@@ -0,0 +1,78 @@
1
+ import { cva as e } from "class-variance-authority";
2
+ const l = e("relative min-h-0 min-w-0", {
3
+ variants: {
4
+ placement: {
5
+ "dock-right": "flex h-full w-full justify-end",
6
+ float: "pointer-events-none flex h-full w-full items-center justify-center",
7
+ minimized: "pointer-events-none flex h-full w-full items-center justify-center",
8
+ composer: "flex w-full justify-center"
9
+ }
10
+ },
11
+ defaultVariants: {
12
+ placement: "dock-right"
13
+ }
14
+ }), o = e(
15
+ "pointer-events-auto flex min-h-0 min-w-0 flex-col overflow-hidden bg-canvas-elevated",
16
+ {
17
+ variants: {
18
+ placement: {
19
+ "dock-right": "h-full w-[640px] max-w-full border-s border-stroke-subtle shadow-elevation-card",
20
+ float: "h-full max-h-[1028px] w-[640px] max-w-full rounded-3xl border border-stroke-subtle shadow-elevation-card",
21
+ minimized: "h-[490px] max-h-full w-[410px] max-w-full rounded-3xl border border-stroke-subtle shadow-elevation-card",
22
+ composer: "w-[624px] max-w-full bg-transparent"
23
+ }
24
+ },
25
+ defaultVariants: {
26
+ placement: "dock-right"
27
+ }
28
+ }
29
+ ), r = e(
30
+ "flex h-[50px] shrink-0 items-center justify-between px-4"
31
+ ), a = e(
32
+ "flex w-full min-w-0 max-w-full flex-col border border-stroke-subtle bg-canvas-elevated",
33
+ {
34
+ variants: {
35
+ layout: {
36
+ stacked: "min-h-[123px] justify-between rounded-3xl p-4",
37
+ inline: "h-14 justify-center rounded-3xl px-3"
38
+ }
39
+ },
40
+ defaultVariants: {
41
+ layout: "stacked"
42
+ }
43
+ }
44
+ ), n = e("text-sm leading-5", {
45
+ variants: {
46
+ role: {
47
+ user: "ms-auto max-w-[min(90%,100%)] break-words rounded-2xl px-4 py-3 text-content",
48
+ assistant: "flex w-full min-w-0 flex-col gap-3 break-words text-content"
49
+ }
50
+ }
51
+ }), s = e(
52
+ [
53
+ "iris-chat-markdown flex flex-col gap-3 text-sm font-medium leading-5 text-content",
54
+ "[&_a]:text-brand [&_a]:underline",
55
+ "[&_blockquote]:m-0 [&_blockquote]:rounded-xl [&_blockquote]:border-0 [&_blockquote]:bg-secondary [&_blockquote]:px-3 [&_blockquote]:py-2 [&_blockquote]:text-content-secondary",
56
+ "[&_code]:rounded-md [&_code]:bg-secondary [&_code]:px-1 [&_code]:py-0.5 [&_code]:text-xs [&_code]:font-medium",
57
+ "[&_h1]:m-0 [&_h1]:text-base [&_h1]:font-semibold [&_h1]:leading-5",
58
+ "[&_h2]:m-0 [&_h2]:text-sm [&_h2]:font-semibold [&_h2]:leading-5",
59
+ "[&_h3]:m-0 [&_h3]:text-sm [&_h3]:font-semibold [&_h3]:leading-5",
60
+ "[&_li]:ms-0 [&_li]:leading-5",
61
+ "[&_ol]:m-0 [&_ol]:flex [&_ol]:list-decimal [&_ol]:flex-col [&_ol]:gap-1.5 [&_ol]:ps-4",
62
+ "[&_p]:m-0",
63
+ "[&_pre]:m-0 [&_pre]:overflow-x-auto [&_pre]:rounded-xl [&_pre]:bg-secondary [&_pre]:p-3 [&_pre]:text-xs [&_pre]:leading-5",
64
+ "[&_pre_code]:bg-transparent [&_pre_code]:p-0",
65
+ "[&_table]:w-full [&_table]:border-separate [&_table]:border-spacing-0 [&_table]:overflow-hidden [&_table]:rounded-xl",
66
+ "[&_td]:border-t [&_td]:border-stroke-subtle [&_td]:px-3 [&_td]:py-2",
67
+ "[&_th]:bg-secondary [&_th]:px-3 [&_th]:py-2 [&_th]:text-start [&_th]:text-xs [&_th]:font-semibold",
68
+ "[&_ul]:m-0 [&_ul]:flex [&_ul]:list-disc [&_ul]:flex-col [&_ul]:gap-1.5 [&_ul]:ps-4"
69
+ ].join(" ")
70
+ );
71
+ export {
72
+ a as irisChatComposerVariants,
73
+ r as irisChatHeaderVariants,
74
+ s as irisChatMarkdownVariants,
75
+ n as irisChatMessageVariants,
76
+ o as irisChatPanelVariants,
77
+ l as irisChatRootVariants
78
+ };
@@ -0,0 +1,4 @@
1
+ export type IrisGreetingPeriod = "morning" | "afternoon" | "evening" | "night";
2
+ export declare function readIrisGreetingPeriod(now?: Date): IrisGreetingPeriod;
3
+ export declare function readIrisGreetingMark(now?: Date): string;
4
+ export declare function readIrisGreetingMessageKey(period: IrisGreetingPeriod): "irisChat.greetingHello" | "irisChat.greetingAfternoon" | "irisChat.greetingEvening" | "irisChat.greetingNight";
@@ -0,0 +1,16 @@
1
+ function e(r = /* @__PURE__ */ new Date()) {
2
+ const n = r.getHours();
3
+ return n >= 5 && n < 12 ? "morning" : n >= 12 && n < 17 ? "afternoon" : n >= 17 && n < 21 ? "evening" : "night";
4
+ }
5
+ function i(r = /* @__PURE__ */ new Date()) {
6
+ const n = e(r);
7
+ return n === "morning" ? "☀️" : n === "afternoon" ? "🌤️" : n === "evening" ? "🌇" : "🌙";
8
+ }
9
+ function t(r) {
10
+ return r === "morning" ? "irisChat.greetingHello" : r === "afternoon" ? "irisChat.greetingAfternoon" : r === "evening" ? "irisChat.greetingEvening" : "irisChat.greetingNight";
11
+ }
12
+ export {
13
+ i as readIrisGreetingMark,
14
+ t as readIrisGreetingMessageKey,
15
+ e as readIrisGreetingPeriod
16
+ };
@@ -1,3 +1,3 @@
1
- export { WizardRoot, WizardLayout, WizardSidebar, WizardTitle, WizardDescription, WizardMedia, WizardBody, WizardProgress, WizardHeader, WizardStepDescription, WizardContent, WizardStep, WizardFooter, } from './wizard';
1
+ export { WizardRoot, WizardLayout, WizardIntro, WizardMain, WizardNav, WizardDecoration, WizardSidebar, WizardTitle, WizardDescription, WizardMedia, WizardBody, WizardProgress, WizardHeader, WizardStepDescription, WizardContent, WizardStep, WizardFooter, } from './wizard';
2
2
  export { useWizard } from './wizard-context';
3
- export type { WizardRootProps, WizardMediaProps, WizardStepDefinition, WizardProgressProps, WizardStepProps, } from './wizard.types';
3
+ export type { WizardRootProps, WizardLayoutProps, WizardLayoutOrientation, WizardIntroProps, WizardNavProps, WizardDecorationProps, WizardMediaProps, WizardStepDefinition, WizardProgressProps, WizardStepProps, WizardFooterProps, } from './wizard.types';