impact-nova 3.0.0-alpha.0 → 3.0.0-alpha.10

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 (372) hide show
  1. package/README.md +1 -1
  2. package/dist/_virtual/_commonjsHelpers.js +6 -0
  3. package/dist/_virtual/index.js +7 -0
  4. package/dist/_virtual/index2.js +7 -0
  5. package/dist/_virtual/index3.js +4 -0
  6. package/dist/_virtual/utilities.js +4 -0
  7. package/dist/components/data/ag-grid-react/ag-grid.types.d.ts +5 -0
  8. package/dist/components/data/ag-grid-react/cell-renderers/cell-renderer-utils.js +12 -10
  9. package/dist/components/data/ag-grid-react/cell-renderers/editors/list-select-cell-editor.js +56 -42
  10. package/dist/components/data/ag-grid-react/cell-renderers/editors/select-cell-editor.js +48 -45
  11. package/dist/components/data/ag-grid-react/cell-renderers/list-select-display-renderer.js +31 -33
  12. package/dist/components/data/ag-grid-react/cell-renderers/select-display-renderer.d.ts +8 -0
  13. package/dist/components/data/ag-grid-react/cell-renderers/select-display-renderer.js +57 -42
  14. package/dist/components/data/ag-grid-react/cell-renderers/types.d.ts +4 -0
  15. package/dist/components/data/ag-grid-react/editable-utils.d.ts +9 -1
  16. package/dist/components/data/ag-grid-react/editable-utils.js +46 -41
  17. package/dist/components/data/ag-grid-react/headers/header-search-input.js +203 -199
  18. package/dist/components/data/ag-grid-react/index.d.ts +1 -1
  19. package/dist/components/data/ag-grid-react/index.js +115 -111
  20. package/dist/components/data/expandable-list-item/index.d.ts +2 -0
  21. package/dist/components/data/expandable-list-item/index.js +20 -16
  22. package/dist/components/data/expandable-list-item/product-card-hero.d.ts +15 -0
  23. package/dist/components/data/expandable-list-item/product-card-iris-insight-trigger.d.ts +8 -0
  24. package/dist/components/data/expandable-list-item/product-card-iris-insight-trigger.js +41 -0
  25. package/dist/components/data/expandable-list-item/product-card-metrics-toggle.d.ts +13 -0
  26. package/dist/components/data/expandable-list-item/product-card-metrics-toggle.js +27 -0
  27. package/dist/components/data/expandable-list-item/sku-picker-chrome.d.ts +40 -0
  28. package/dist/components/data/expandable-list-item/sku-picker-chrome.js +150 -0
  29. package/dist/components/data/expandable-list-item/useServerSkuInfinitePages.d.ts +2 -1
  30. package/dist/components/data/expandable-list-item/virtualized-responsive-grid.catalog.d.ts +5 -4
  31. package/dist/components/data/expandable-list-item/virtualized-responsive-grid.sku-picker.d.ts +3 -2
  32. package/dist/components/data-display/chart/chart-scatter3d.d.ts +39 -0
  33. package/dist/components/data-display/chart/chart-scatter3d.js +180 -0
  34. package/dist/components/data-display/chart/chart.js +125 -112
  35. package/dist/components/data-display/chart/chart.utils.js +122 -92
  36. package/dist/components/data-display/stereo-scatter/index.d.ts +2 -0
  37. package/dist/components/data-display/stereo-scatter/index.js +10 -0
  38. package/dist/components/data-display/stereo-scatter/internals/stereo-engine-frame.d.ts +41 -0
  39. package/dist/components/data-display/stereo-scatter/internals/stereo-engine-frame.js +178 -0
  40. package/dist/components/data-display/stereo-scatter/internals/stereo-engine-theme.d.ts +14 -0
  41. package/dist/components/data-display/stereo-scatter/internals/stereo-engine-theme.js +29 -0
  42. package/dist/components/data-display/stereo-scatter/internals/stereo-engine-wedges.d.ts +23 -0
  43. package/dist/components/data-display/stereo-scatter/internals/stereo-engine-wedges.js +80 -0
  44. package/dist/components/data-display/stereo-scatter/internals/stereo-engine.d.ts +120 -0
  45. package/dist/components/data-display/stereo-scatter/internals/stereo-engine.js +519 -0
  46. package/dist/components/data-display/stereo-scatter/internals/stereo-math.d.ts +64 -0
  47. package/dist/components/data-display/stereo-scatter/internals/stereo-math.js +129 -0
  48. package/dist/components/data-display/stereo-scatter/internals/stereo-model.d.ts +37 -0
  49. package/dist/components/data-display/stereo-scatter/internals/stereo-model.js +71 -0
  50. package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-context.d.ts +33 -0
  51. package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-context.js +19 -0
  52. package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-key.d.ts +4 -0
  53. package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-key.js +19 -0
  54. package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-legend.d.ts +2 -0
  55. package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-legend.js +75 -0
  56. package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-scene.d.ts +2 -0
  57. package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-scene.js +149 -0
  58. package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-toolbar.d.ts +13 -0
  59. package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-toolbar.js +93 -0
  60. package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-tooltip.d.ts +2 -0
  61. package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-tooltip.js +62 -0
  62. package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-viewport.d.ts +3 -0
  63. package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-viewport.js +41 -0
  64. package/dist/components/data-display/stereo-scatter/stereo-scatter.d.ts +12 -0
  65. package/dist/components/data-display/stereo-scatter/stereo-scatter.js +107 -0
  66. package/dist/components/data-display/stereo-scatter/stereo-scatter.stories-data.d.ts +11 -0
  67. package/dist/components/data-display/stereo-scatter/stereo-scatter.types.d.ts +69 -0
  68. package/dist/components/data-display/stereo-scatter/stereo-scatter.variants.d.ts +13 -0
  69. package/dist/components/data-display/stereo-scatter/stereo-scatter.variants.js +42 -0
  70. package/dist/components/feedback/tooltip/button-icon-tooltip.d.ts +6 -1
  71. package/dist/components/feedback/tooltip/button-icon-tooltip.js +22 -17
  72. package/dist/components/feedback/tooltip/use-overflow-tooltip.js +44 -36
  73. package/dist/components/flows/iris-chat/IrisChatComposerVoiceCapture.d.ts +5 -0
  74. package/dist/components/flows/iris-chat/IrisChatComposerVoiceCapture.js +73 -0
  75. package/dist/components/flows/iris-chat/IrisChatHeaderWindowSizeButton.d.ts +5 -0
  76. package/dist/components/flows/iris-chat/IrisChatHeaderWindowSizeButton.js +40 -0
  77. package/dist/components/flows/iris-chat/IrisChatVoiceWaveform.d.ts +3 -0
  78. package/dist/components/flows/iris-chat/IrisChatVoiceWaveform.js +25 -0
  79. package/dist/components/flows/iris-chat/IrisChatWindowSnapMenu.d.ts +4 -0
  80. package/dist/components/flows/iris-chat/IrisChatWindowSnapMenu.js +99 -0
  81. package/dist/components/flows/iris-chat/index.d.ts +3 -1
  82. package/dist/components/flows/iris-chat/index.js +58 -53
  83. package/dist/components/flows/iris-chat/iris-chat-artifact.js +46 -36
  84. package/dist/components/flows/iris-chat/iris-chat-chrome.d.ts +39 -0
  85. package/dist/components/flows/iris-chat/iris-chat-chrome.js +311 -0
  86. package/dist/components/flows/iris-chat/iris-chat-close-animation.d.ts +12 -0
  87. package/dist/components/flows/iris-chat/iris-chat-close-animation.js +21 -0
  88. package/dist/components/flows/iris-chat/iris-chat-composer.js +266 -238
  89. package/dist/components/flows/iris-chat/iris-chat-context.d.ts +16 -0
  90. package/dist/components/flows/iris-chat/iris-chat-context.js +14 -10
  91. package/dist/components/flows/iris-chat/iris-chat-copy-feedback.d.ts +4 -0
  92. package/dist/components/flows/iris-chat/iris-chat-copy-feedback.js +16 -0
  93. package/dist/components/flows/iris-chat/iris-chat-frame.d.ts +31 -0
  94. package/dist/components/flows/iris-chat/iris-chat-frame.js +79 -0
  95. package/dist/components/flows/iris-chat/iris-chat-icons.d.ts +1 -0
  96. package/dist/components/flows/iris-chat/iris-chat-icons.js +28 -15
  97. package/dist/components/flows/iris-chat/iris-chat-launch-animation.d.ts +11 -0
  98. package/dist/components/flows/iris-chat/iris-chat-launch-animation.js +35 -0
  99. package/dist/components/flows/iris-chat/iris-chat-markdown.js +82 -42
  100. package/dist/components/flows/iris-chat/iris-chat-menu.js +149 -117
  101. package/dist/components/flows/iris-chat/iris-chat-snap-presets.d.ts +4 -0
  102. package/dist/components/flows/iris-chat/iris-chat-snap-presets.js +63 -0
  103. package/dist/components/flows/iris-chat/iris-chat-speech.d.ts +52 -0
  104. package/dist/components/flows/iris-chat/iris-chat-speech.js +121 -0
  105. package/dist/components/flows/iris-chat/iris-chat-thread.d.ts +4 -0
  106. package/dist/components/flows/iris-chat/iris-chat-thread.js +289 -231
  107. package/dist/components/flows/iris-chat/iris-chat-window-chrome.d.ts +30 -0
  108. package/dist/components/flows/iris-chat/iris-chat-window-chrome.js +34 -0
  109. package/dist/components/flows/iris-chat/iris-chat-window-geometry-context.d.ts +14 -0
  110. package/dist/components/flows/iris-chat/iris-chat-window-geometry-context.js +15 -0
  111. package/dist/components/flows/iris-chat/iris-chat-window-geometry.d.ts +12 -0
  112. package/dist/components/flows/iris-chat/iris-chat-window-geometry.js +113 -0
  113. package/dist/components/flows/iris-chat/iris-chat-window-handles.d.ts +6 -0
  114. package/dist/components/flows/iris-chat/iris-chat-window-handles.js +50 -0
  115. package/dist/components/flows/iris-chat/iris-chat-window-shell.d.ts +8 -0
  116. package/dist/components/flows/iris-chat/iris-chat-window-shell.js +37 -0
  117. package/dist/components/flows/iris-chat/iris-chat.d.ts +3 -39
  118. package/dist/components/flows/iris-chat/iris-chat.js +22 -330
  119. package/dist/components/flows/iris-chat/iris-chat.types.d.ts +20 -0
  120. package/dist/components/flows/iris-chat/iris-chat.variants.d.ts +4 -3
  121. package/dist/components/flows/iris-chat/iris-chat.variants.js +46 -23
  122. package/dist/components/flows/iris-chat/use-iris-chat-root.d.ts +29 -0
  123. package/dist/components/flows/iris-chat/use-iris-chat-root.js +167 -0
  124. package/dist/components/forms/choice-card/choice-card-percent.js +82 -51
  125. package/dist/components/forms/choice-card/choice-card.d.ts +1 -0
  126. package/dist/components/forms/choice-card/choice-card.js +196 -199
  127. package/dist/components/forms/choice-card/choice-card.variants.js +3 -3
  128. package/dist/components/forms/input/input.js +5 -5
  129. package/dist/components/forms/select/components/SelectMenuPanel.js +15 -15
  130. package/dist/components/forms/select/components/SelectTriggerValue.js +6 -6
  131. package/dist/components/layout/header/header.js +1 -0
  132. package/dist/components/layout/horizontal-scroller/horizontal-scroller-mask.d.ts +3 -0
  133. package/dist/components/layout/horizontal-scroller/horizontal-scroller-mask.js +12 -0
  134. package/dist/components/layout/horizontal-scroller/horizontal-scroller.js +181 -125
  135. package/dist/components/layout/horizontal-scroller/horizontal-scroller.types.d.ts +2 -0
  136. package/dist/components/layout/horizontal-scroller/scroll-overflow-affordance.d.ts +3 -1
  137. package/dist/components/layout/horizontal-scroller/scroll-overflow-affordance.js +77 -67
  138. package/dist/components/primitives/button/button.variants.js +1 -1
  139. package/dist/components/primitives/iris/iris-insight-truncated-text.d.ts +3 -0
  140. package/dist/components/primitives/iris/iris-insight-truncated-text.js +33 -0
  141. package/dist/components/primitives/iris/iris.d.ts +3 -1
  142. package/dist/components/primitives/iris/iris.js +76 -84
  143. package/dist/components/primitives/iris/iris.types.d.ts +9 -0
  144. package/dist/components/primitives/stepper/internals/step-model.d.ts +1 -1
  145. package/dist/components/primitives/stepper/internals/step-model.js +5 -5
  146. package/dist/components/primitives/stepper/internals/stepper-compact.js +13 -13
  147. package/dist/components/primitives/stepper/internals/stepper-pipeline.js +6 -6
  148. package/dist/components/primitives/stepper/internals/stepper-rail.js +15 -15
  149. package/dist/components/primitives/stepper/internals/stepper-summary.js +7 -7
  150. package/dist/components/primitives/stepper/internals/stepper-track.js +2 -2
  151. package/dist/components/primitives/stepper/stepper.js +92 -91
  152. package/dist/components/primitives/stepper/stepper.types.d.ts +2 -0
  153. package/dist/form-react/Fields/SelectField.js +66 -57
  154. package/dist/form-react/Fields/VirtualizedListField.d.ts +3 -0
  155. package/dist/form-react/Fields/VirtualizedListField.js +223 -0
  156. package/dist/form-react/fields.d.ts +1 -0
  157. package/dist/form-react/fields.js +28 -26
  158. package/dist/form-react/index.d.ts +1 -1
  159. package/dist/form-react/registry/defaultFieldRegistrations.d.ts +1 -1
  160. package/dist/form-react/registry/defaultFieldRegistrations.js +13 -12
  161. package/dist/form-react/types/fields.types.d.ts +48 -1
  162. package/dist/form-react/types/fieldsOutput.types.d.ts +4 -1
  163. package/dist/form-react/types/reactHookForm.types.d.ts +18 -1
  164. package/dist/form-react/utils/fieldDefaults.utils.js +1 -1
  165. package/dist/i18n/defaultMessages.d.ts +45 -0
  166. package/dist/i18n/defaultMessages.js +58 -14
  167. package/dist/i18n/index.d.ts +1 -1
  168. package/dist/i18n/locales/de.js +44 -0
  169. package/dist/i18n/locales/es.js +44 -0
  170. package/dist/i18n/locales/hi.js +44 -0
  171. package/dist/i18n/locales/kn.js +44 -0
  172. package/dist/impact-nova-components.css +195 -8
  173. package/dist/impact-nova.css +1 -1
  174. package/dist/index.js +356 -352
  175. package/dist/lib/alphabetical-sort.d.ts +3 -0
  176. package/dist/lib/alphabetical-sort.js +13 -0
  177. package/dist/lib/overflow/is-text-overflowing.js +24 -6
  178. package/dist/llms/rules/installation.js +1 -1
  179. package/dist/llms/rules/requirements.js +1 -1
  180. package/dist/node_modules/@ungap/structured-clone/esm/deserialize.js +85 -0
  181. package/dist/node_modules/@ungap/structured-clone/esm/index.js +11 -0
  182. package/dist/node_modules/@ungap/structured-clone/esm/serialize.js +110 -0
  183. package/dist/node_modules/@ungap/structured-clone/esm/types.js +13 -0
  184. package/dist/node_modules/bail/index.js +7 -0
  185. package/dist/node_modules/ccount/index.js +12 -0
  186. package/dist/node_modules/comma-separated-tokens/index.js +9 -0
  187. package/dist/node_modules/decode-named-character-reference/index.dom.js +10 -0
  188. package/dist/node_modules/devlop/lib/default.js +8 -0
  189. package/dist/node_modules/estree-util-is-identifier-name/lib/index.js +7 -0
  190. package/dist/node_modules/extend/index.js +43 -0
  191. package/dist/node_modules/hast-util-to-jsx-runtime/lib/index.js +302 -0
  192. package/dist/node_modules/hast-util-whitespace/lib/index.js +10 -0
  193. package/dist/node_modules/html-url-attributes/lib/index.js +26 -0
  194. package/dist/node_modules/inline-style-parser/cjs/index.js +93 -0
  195. package/dist/node_modules/is-plain-obj/index.js +9 -0
  196. package/dist/node_modules/longest-streak/index.js +12 -0
  197. package/dist/node_modules/markdown-table/index.js +75 -0
  198. package/dist/node_modules/mdast-util-find-and-replace/lib/index.js +78 -0
  199. package/dist/node_modules/mdast-util-find-and-replace/node_modules/escape-string-regexp/index.js +8 -0
  200. package/dist/node_modules/mdast-util-from-markdown/lib/index.js +632 -0
  201. package/dist/node_modules/mdast-util-gfm/lib/index.js +29 -0
  202. package/dist/node_modules/mdast-util-gfm-autolink-literal/lib/index.js +130 -0
  203. package/dist/node_modules/mdast-util-gfm-footnote/lib/index.js +95 -0
  204. package/dist/node_modules/mdast-util-gfm-strikethrough/lib/index.js +54 -0
  205. package/dist/node_modules/mdast-util-gfm-table/lib/index.js +135 -0
  206. package/dist/node_modules/mdast-util-gfm-task-list-item/lib/index.js +58 -0
  207. package/dist/node_modules/mdast-util-phrasing/lib/index.js +30 -0
  208. package/dist/node_modules/mdast-util-to-hast/lib/footer.js +90 -0
  209. package/dist/node_modules/mdast-util-to-hast/lib/handlers/blockquote.js +12 -0
  210. package/dist/node_modules/mdast-util-to-hast/lib/handlers/break.js +8 -0
  211. package/dist/node_modules/mdast-util-to-hast/lib/handlers/code.js +15 -0
  212. package/dist/node_modules/mdast-util-to-hast/lib/handlers/delete.js +12 -0
  213. package/dist/node_modules/mdast-util-to-hast/lib/handlers/emphasis.js +12 -0
  214. package/dist/node_modules/mdast-util-to-hast/lib/handlers/footnote-reference.js +28 -0
  215. package/dist/node_modules/mdast-util-to-hast/lib/handlers/heading.js +12 -0
  216. package/dist/node_modules/mdast-util-to-hast/lib/handlers/html.js +9 -0
  217. package/dist/node_modules/mdast-util-to-hast/lib/handlers/image-reference.js +14 -0
  218. package/dist/node_modules/mdast-util-to-hast/lib/handlers/image.js +10 -0
  219. package/dist/node_modules/mdast-util-to-hast/lib/handlers/index.js +58 -0
  220. package/dist/node_modules/mdast-util-to-hast/lib/handlers/inline-code.js +14 -0
  221. package/dist/node_modules/mdast-util-to-hast/lib/handlers/link-reference.js +19 -0
  222. package/dist/node_modules/mdast-util-to-hast/lib/handlers/link.js +15 -0
  223. package/dist/node_modules/mdast-util-to-hast/lib/handlers/list-item.js +42 -0
  224. package/dist/node_modules/mdast-util-to-hast/lib/handlers/list.js +21 -0
  225. package/dist/node_modules/mdast-util-to-hast/lib/handlers/paragraph.js +12 -0
  226. package/dist/node_modules/mdast-util-to-hast/lib/handlers/root.js +7 -0
  227. package/dist/node_modules/mdast-util-to-hast/lib/handlers/strong.js +12 -0
  228. package/dist/node_modules/mdast-util-to-hast/lib/handlers/table-cell.js +13 -0
  229. package/dist/node_modules/mdast-util-to-hast/lib/handlers/table-row.js +21 -0
  230. package/dist/node_modules/mdast-util-to-hast/lib/handlers/table.js +32 -0
  231. package/dist/node_modules/mdast-util-to-hast/lib/handlers/text.js +8 -0
  232. package/dist/node_modules/mdast-util-to-hast/lib/handlers/thematic-break.js +12 -0
  233. package/dist/node_modules/mdast-util-to-hast/lib/index.js +10 -0
  234. package/dist/node_modules/mdast-util-to-hast/lib/revert.js +13 -0
  235. package/dist/node_modules/mdast-util-to-hast/lib/state.js +104 -0
  236. package/dist/node_modules/mdast-util-to-markdown/lib/handle/blockquote.js +15 -0
  237. package/dist/node_modules/mdast-util-to-markdown/lib/handle/break.js +15 -0
  238. package/dist/node_modules/mdast-util-to-markdown/lib/handle/code.js +44 -0
  239. package/dist/node_modules/mdast-util-to-markdown/lib/handle/definition.js +34 -0
  240. package/dist/node_modules/mdast-util-to-markdown/lib/handle/emphasis.js +20 -0
  241. package/dist/node_modules/mdast-util-to-markdown/lib/handle/heading.js +35 -0
  242. package/dist/node_modules/mdast-util-to-markdown/lib/handle/html.js +10 -0
  243. package/dist/node_modules/mdast-util-to-markdown/lib/handle/image-reference.js +29 -0
  244. package/dist/node_modules/mdast-util-to-markdown/lib/handle/image.js +33 -0
  245. package/dist/node_modules/mdast-util-to-markdown/lib/handle/index.js +44 -0
  246. package/dist/node_modules/mdast-util-to-markdown/lib/handle/inline-code.js +22 -0
  247. package/dist/node_modules/mdast-util-to-markdown/lib/handle/link-reference.js +29 -0
  248. package/dist/node_modules/mdast-util-to-markdown/lib/handle/link.js +52 -0
  249. package/dist/node_modules/mdast-util-to-markdown/lib/handle/list-item.js +22 -0
  250. package/dist/node_modules/mdast-util-to-markdown/lib/handle/list.js +35 -0
  251. package/dist/node_modules/mdast-util-to-markdown/lib/handle/paragraph.js +7 -0
  252. package/dist/node_modules/mdast-util-to-markdown/lib/handle/root.js +11 -0
  253. package/dist/node_modules/mdast-util-to-markdown/lib/handle/strong.js +20 -0
  254. package/dist/node_modules/mdast-util-to-markdown/lib/handle/text.js +11 -0
  255. package/dist/node_modules/mdast-util-to-markdown/lib/handle/thematic-break.js +9 -0
  256. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-bullet-ordered.js +11 -0
  257. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-bullet-other.js +18 -0
  258. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-bullet.js +11 -0
  259. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-emphasis.js +11 -0
  260. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-fence.js +11 -0
  261. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-list-item-indent.js +11 -0
  262. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-quote.js +11 -0
  263. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-rule-repetition.js +11 -0
  264. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-rule.js +11 -0
  265. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-strong.js +11 -0
  266. package/dist/node_modules/mdast-util-to-markdown/lib/util/encode-character-reference.js +6 -0
  267. package/dist/node_modules/mdast-util-to-markdown/lib/util/format-code-as-indented.js +9 -0
  268. package/dist/node_modules/mdast-util-to-markdown/lib/util/format-heading-as-setext.js +13 -0
  269. package/dist/node_modules/mdast-util-to-markdown/lib/util/format-link-as-autolink.js +15 -0
  270. package/dist/node_modules/mdast-util-to-markdown/lib/util/pattern-in-scope.js +15 -0
  271. package/dist/node_modules/mdast-util-to-string/lib/index.js +29 -0
  272. package/dist/node_modules/micromark/lib/constructs.js +85 -0
  273. package/dist/node_modules/micromark/lib/create-tokenizer.js +225 -0
  274. package/dist/node_modules/micromark/lib/initialize/content.js +37 -0
  275. package/dist/node_modules/micromark/lib/initialize/document.js +128 -0
  276. package/dist/node_modules/micromark/lib/initialize/flow.js +33 -0
  277. package/dist/node_modules/micromark/lib/initialize/text.js +98 -0
  278. package/dist/node_modules/micromark/lib/parse.js +32 -0
  279. package/dist/node_modules/micromark/lib/postprocess.js +9 -0
  280. package/dist/node_modules/micromark/lib/preprocess.js +44 -0
  281. package/dist/node_modules/micromark-core-commonmark/lib/attention.js +87 -0
  282. package/dist/node_modules/micromark-core-commonmark/lib/autolink.js +43 -0
  283. package/dist/node_modules/micromark-core-commonmark/lib/blank-line.js +18 -0
  284. package/dist/node_modules/micromark-core-commonmark/lib/block-quote.js +42 -0
  285. package/dist/node_modules/micromark-core-commonmark/lib/character-escape.js +17 -0
  286. package/dist/node_modules/micromark-core-commonmark/lib/character-reference.js +30 -0
  287. package/dist/node_modules/micromark-core-commonmark/lib/code-fenced.js +82 -0
  288. package/dist/node_modules/micromark-core-commonmark/lib/code-indented.js +37 -0
  289. package/dist/node_modules/micromark-core-commonmark/lib/code-text.js +45 -0
  290. package/dist/node_modules/micromark-core-commonmark/lib/content.js +50 -0
  291. package/dist/node_modules/micromark-core-commonmark/lib/definition.js +80 -0
  292. package/dist/node_modules/micromark-core-commonmark/lib/hard-break-escape.js +17 -0
  293. package/dist/node_modules/micromark-core-commonmark/lib/heading-atx.js +50 -0
  294. package/dist/node_modules/micromark-core-commonmark/lib/html-flow.js +132 -0
  295. package/dist/node_modules/micromark-core-commonmark/lib/html-text.js +102 -0
  296. package/dist/node_modules/micromark-core-commonmark/lib/label-end.js +154 -0
  297. package/dist/node_modules/micromark-core-commonmark/lib/label-start-image.js +23 -0
  298. package/dist/node_modules/micromark-core-commonmark/lib/label-start-link.js +20 -0
  299. package/dist/node_modules/micromark-core-commonmark/lib/line-ending.js +14 -0
  300. package/dist/node_modules/micromark-core-commonmark/lib/list.js +90 -0
  301. package/dist/node_modules/micromark-core-commonmark/lib/partial-non-lazy-continuation.js +17 -0
  302. package/dist/node_modules/micromark-core-commonmark/lib/setext-underline.js +59 -0
  303. package/dist/node_modules/micromark-core-commonmark/lib/thematic-break.js +25 -0
  304. package/dist/node_modules/micromark-extension-gfm/index.js +18 -0
  305. package/dist/node_modules/micromark-extension-gfm-autolink-literal/lib/syntax.js +193 -0
  306. package/dist/node_modules/micromark-extension-gfm-footnote/lib/syntax.js +192 -0
  307. package/dist/node_modules/micromark-extension-gfm-strikethrough/lib/syntax.js +67 -0
  308. package/dist/node_modules/micromark-extension-gfm-table/lib/edit-map.js +75 -0
  309. package/dist/node_modules/micromark-extension-gfm-table/lib/infer.js +23 -0
  310. package/dist/node_modules/micromark-extension-gfm-table/lib/syntax.js +149 -0
  311. package/dist/node_modules/micromark-extension-gfm-task-list-item/lib/syntax.js +45 -0
  312. package/dist/node_modules/micromark-factory-destination/index.js +31 -0
  313. package/dist/node_modules/micromark-factory-label/index.js +28 -0
  314. package/dist/node_modules/micromark-factory-space/index.js +29 -0
  315. package/dist/node_modules/micromark-factory-title/index.js +26 -0
  316. package/dist/node_modules/micromark-factory-whitespace/index.js +12 -0
  317. package/dist/node_modules/micromark-util-character/index.js +39 -0
  318. package/dist/node_modules/micromark-util-chunked/index.js +16 -0
  319. package/dist/node_modules/micromark-util-classify-character/index.js +10 -0
  320. package/dist/node_modules/micromark-util-combine-extensions/index.js +36 -0
  321. package/dist/node_modules/micromark-util-decode-numeric-character-reference/index.js +16 -0
  322. package/dist/node_modules/micromark-util-decode-string/index.js +18 -0
  323. package/dist/node_modules/micromark-util-edit-map/index.js +82 -0
  324. package/dist/node_modules/micromark-util-html-tag-name/index.js +68 -0
  325. package/dist/node_modules/micromark-util-normalize-identifier/index.js +6 -0
  326. package/dist/node_modules/micromark-util-resolve-all/index.js +12 -0
  327. package/dist/node_modules/micromark-util-sanitize-uri/index.js +23 -0
  328. package/dist/node_modules/micromark-util-subtokenize/index.js +55 -0
  329. package/dist/node_modules/micromark-util-subtokenize/lib/splice-buffer.js +175 -0
  330. package/dist/node_modules/property-information/index.js +12 -0
  331. package/dist/node_modules/property-information/lib/aria.js +61 -0
  332. package/dist/node_modules/property-information/lib/find.js +33 -0
  333. package/dist/node_modules/property-information/lib/hast-to-react.js +22 -0
  334. package/dist/node_modules/property-information/lib/html.js +378 -0
  335. package/dist/node_modules/property-information/lib/normalize.js +6 -0
  336. package/dist/node_modules/property-information/lib/svg.js +568 -0
  337. package/dist/node_modules/property-information/lib/util/case-insensitive-transform.js +7 -0
  338. package/dist/node_modules/property-information/lib/util/case-sensitive-transform.js +6 -0
  339. package/dist/node_modules/property-information/lib/util/create.js +19 -0
  340. package/dist/node_modules/property-information/lib/util/defined-info.js +36 -0
  341. package/dist/node_modules/property-information/lib/util/info.js +28 -0
  342. package/dist/node_modules/property-information/lib/util/merge.js +10 -0
  343. package/dist/node_modules/property-information/lib/util/schema.js +21 -0
  344. package/dist/node_modules/property-information/lib/util/types.js +14 -0
  345. package/dist/node_modules/property-information/lib/xlink.js +19 -0
  346. package/dist/node_modules/property-information/lib/xml.js +11 -0
  347. package/dist/node_modules/property-information/lib/xmlns.js +11 -0
  348. package/dist/node_modules/react-markdown/lib/index.js +102 -0
  349. package/dist/node_modules/remark-gfm/lib/index.js +13 -0
  350. package/dist/node_modules/remark-parse/lib/index.js +19 -0
  351. package/dist/node_modules/remark-rehype/lib/index.js +18 -0
  352. package/dist/node_modules/space-separated-tokens/index.js +6 -0
  353. package/dist/node_modules/style-to-js/cjs/index.js +20 -0
  354. package/dist/node_modules/style-to-js/cjs/utilities.js +19 -0
  355. package/dist/node_modules/style-to-object/cjs/index.js +28 -0
  356. package/dist/node_modules/trim-lines/index.js +28 -0
  357. package/dist/node_modules/trough/lib/index.js +60 -0
  358. package/dist/node_modules/unified/lib/callable-instance.js +25 -0
  359. package/dist/node_modules/unified/lib/index.js +529 -0
  360. package/dist/node_modules/unist-util-is/lib/index.js +91 -0
  361. package/dist/node_modules/unist-util-position/lib/index.js +23 -0
  362. package/dist/node_modules/unist-util-stringify-position/lib/index.js +15 -0
  363. package/dist/node_modules/unist-util-visit/lib/index.js +16 -0
  364. package/dist/node_modules/unist-util-visit-parents/lib/color.js +6 -0
  365. package/dist/node_modules/unist-util-visit-parents/lib/index.js +56 -0
  366. package/dist/node_modules/vfile/lib/index.js +406 -0
  367. package/dist/node_modules/vfile/lib/minpath.browser.js +112 -0
  368. package/dist/node_modules/vfile/lib/minproc.browser.js +7 -0
  369. package/dist/node_modules/vfile/lib/minurl.browser.js +41 -0
  370. package/dist/node_modules/vfile/lib/minurl.shared.js +7 -0
  371. package/dist/node_modules/vfile-message/lib/index.js +91 -0
  372. package/package.json +8 -2
@@ -1,5 +1,5 @@
1
1
  import { cva as e } from "class-variance-authority";
2
- const r = "border-stroke-subtle p-3 hover:border-brand", a = "border-brand border-l-[3px] border-l-brand bg-brand-tint py-3 pr-3 pl-2.5 shadow-elevation-header", s = e(
2
+ const r = "border-stroke-subtle p-3 hover:border-stroke-field hover:bg-accent", a = "border-brand border-l-[3px] border-l-brand bg-brand-tint py-3 pr-3 pl-2.5 shadow-elevation-header hover:bg-brand-tint", o = e(
3
3
  [
4
4
  "group relative cursor-pointer select-none transition-[border-color,background-color,box-shadow] duration-150",
5
5
  "has-[[data-slot=choice-card-control]:focus-visible]:outline-none has-[[data-slot=choice-card-control]:focus-visible]:ring-1 has-[[data-slot=choice-card-control]:focus-visible]:ring-focus-ring"
@@ -7,7 +7,7 @@ const r = "border-stroke-subtle p-3 hover:border-brand", a = "border-brand borde
7
7
  {
8
8
  variants: {
9
9
  variant: {
10
- default: "flex flex-row items-start justify-between gap-2 overflow-hidden rounded-xl border border-solid bg-canvas-elevated",
10
+ default: "flex flex-row items-center justify-between gap-2 overflow-hidden rounded-xl border border-solid bg-canvas-elevated",
11
11
  featured: "flex h-[116px] w-[215px] shrink-0 flex-col overflow-hidden rounded-2xl border border-solid bg-canvas-elevated p-0",
12
12
  compare: "flex flex-col items-stretch gap-4 overflow-visible rounded-xl border border-solid p-3"
13
13
  },
@@ -96,5 +96,5 @@ const r = "border-stroke-subtle p-3 hover:border-brand", a = "border-brand borde
96
96
  }
97
97
  );
98
98
  export {
99
- s as choiceCardVariants
99
+ o as choiceCardVariants
100
100
  };
@@ -1,4 +1,4 @@
1
- import { jsx as o, jsxs as w } from "react/jsx-runtime";
1
+ import { jsx as o, jsxs as j } from "react/jsx-runtime";
2
2
  import { createComponent as C } from "../../../lib/primitives/create-component.js";
3
3
  import { useFieldChrome as B } from "../../../lib/primitives/use-field-chrome.js";
4
4
  import { cn as r } from "../../../lib/utils.js";
@@ -23,7 +23,7 @@ const V = C(
23
23
  id: g,
24
24
  ...u
25
25
  }, N) => {
26
- const t = h ?? x, j = !!(i || a || t), n = B({
26
+ const t = h ?? x, w = !!(i || a || t), n = B({
27
27
  label: i,
28
28
  helperText: a,
29
29
  helperTextPosition: l,
@@ -38,7 +38,7 @@ const V = C(
38
38
  className: r(
39
39
  a && l === "absolute" && "relative"
40
40
  ),
41
- children: /* @__PURE__ */ w(
41
+ children: /* @__PURE__ */ j(
42
42
  "div",
43
43
  {
44
44
  "data-component": "input-border",
@@ -70,7 +70,7 @@ const V = C(
70
70
  type: f,
71
71
  id: n.controlId,
72
72
  className: r(
73
- "flex h-full w-full bg-transparent p-0 text-sm font-medium outline-none placeholder:font-medium placeholder:text-content-empty disabled:cursor-not-allowed disabled:opacity-50",
73
+ "flex h-full w-full min-w-0 bg-transparent p-0 text-sm font-medium outline-none placeholder:font-medium placeholder:text-content-empty disabled:cursor-not-allowed disabled:opacity-50",
74
74
  e && "opacity-100 text-disabled-foreground placeholder:text-disabled-foreground"
75
75
  ),
76
76
  ref: N,
@@ -104,7 +104,7 @@ const V = C(
104
104
  "data-component": "input",
105
105
  "data-disabled": e || void 0,
106
106
  "data-invalid": t || void 0,
107
- children: j ? n.wrapControl(p) : p
107
+ children: w ? n.wrapControl(p) : p
108
108
  }
109
109
  );
110
110
  }
@@ -2,19 +2,19 @@ import { jsx as o } from "react/jsx-runtime";
2
2
  import * as n from "@radix-ui/react-popover";
3
3
  import { cn as a } from "../../../../lib/utils.js";
4
4
  import { preventDismissOnTooltipOutside as t } from "../../../../lib/overlay/prevent-dismiss-on-tooltip-outside.js";
5
- import { useOverlayPortalContainer as v } from "../../../../lib/overlay/overlay-portal-context.js";
6
- import { OVERLAY_NESTED_FLOATING_INSTANT_HIDE_CLASS as f } from "../../../../lib/overlay/overlay-host.constants.js";
7
- function P({
5
+ import { useOverlayPortalContainer as u } from "../../../../lib/overlay/overlay-portal-context.js";
6
+ import { OVERLAY_NESTED_FLOATING_INSTANT_HIDE_CLASS as v } from "../../../../lib/overlay/overlay-host.constants.js";
7
+ function O({
8
8
  menuRef: l,
9
- menuMinHeight: i,
9
+ menuMinHeight: r,
10
10
  menuWidth: s,
11
- isReadOnly: r,
11
+ isReadOnly: i,
12
12
  id: d,
13
13
  menuLabel: p,
14
- children: m
14
+ children: c
15
15
  }) {
16
- const c = v();
17
- return /* @__PURE__ */ o(n.Portal, { container: c, children: /* @__PURE__ */ o(
16
+ const m = u();
17
+ return /* @__PURE__ */ o(n.Portal, { container: m, children: /* @__PURE__ */ o(
18
18
  n.Content,
19
19
  {
20
20
  ref: l,
@@ -25,7 +25,7 @@ function P({
25
25
  collisionPadding: 8,
26
26
  "aria-label": p,
27
27
  onOpenAutoFocus: (e) => e.preventDefault(),
28
- onPointerDown: (e) => e.stopPropagation(),
28
+ onCloseAutoFocus: (e) => e.preventDefault(),
29
29
  onPointerDownOutside: t,
30
30
  onInteractOutside: t,
31
31
  onFocusOutside: t,
@@ -37,8 +37,8 @@ function P({
37
37
  },
38
38
  className: a(
39
39
  "z-50 flex flex-col overflow-hidden rounded-[12px] p-0 text-base shadow-elevation-select focus:outline-none sm:text-sm border-none pointer-events-auto",
40
- r ? "bg-disabled-surface" : "bg-canvas-elevated",
41
- f
40
+ i ? "bg-disabled-surface" : "bg-canvas-elevated",
41
+ v
42
42
  ),
43
43
  "data-testid": `select-menu-${d || "default"}`,
44
44
  "data-component": "select-menu",
@@ -47,17 +47,17 @@ function P({
47
47
  {
48
48
  className: a(
49
49
  "flex min-h-0 flex-1 flex-col overflow-hidden rounded-[12px]",
50
- r ? "bg-disabled-surface" : "bg-canvas-elevated"
50
+ i ? "bg-disabled-surface" : "bg-canvas-elevated"
51
51
  ),
52
52
  style: {
53
- minHeight: i ? `${i}px` : void 0
53
+ minHeight: r ? `${r}px` : void 0
54
54
  },
55
- children: m
55
+ children: c
56
56
  }
57
57
  )
58
58
  }
59
59
  ) });
60
60
  }
61
61
  export {
62
- P as SelectMenuPanel
62
+ O as SelectMenuPanel
63
63
  };
@@ -6,23 +6,23 @@ function w({
6
6
  isMulti: u,
7
7
  isDisabled: p,
8
8
  internalValue: o,
9
- totalCount: s,
9
+ totalCount: a,
10
10
  totalOptionsCount: g,
11
11
  formatSelectedCount: v,
12
- resolveOptionLabel: a,
12
+ resolveOptionLabel: s,
13
13
  placeholder: c
14
14
  }) {
15
15
  const n = x(
16
- "text-[14px] font-medium truncate min-w-0 block",
16
+ "text-[14px] font-normal truncate min-w-0 block",
17
17
  p ? "text-disabled-foreground" : "text-foreground"
18
18
  );
19
19
  if (u) {
20
20
  const e = o || [];
21
21
  let t = 0;
22
- if (h(e) ? t = Math.max(0, (typeof s == "number" ? s : g) - e.excludedValues.length) : d(e) && (t = e.length), t === 0)
22
+ if (h(e) ? t = Math.max(0, (typeof a == "number" ? a : g) - e.excludedValues.length) : d(e) && (t = e.length), t === 0)
23
23
  return c;
24
24
  if (t === 1 && d(e)) {
25
- const i = a(e[0]);
25
+ const i = s(e[0]);
26
26
  return /* @__PURE__ */ r(
27
27
  m,
28
28
  {
@@ -39,7 +39,7 @@ function w({
39
39
  const l = o;
40
40
  if (!l)
41
41
  return c;
42
- const f = a(l);
42
+ const f = s(l);
43
43
  return /* @__PURE__ */ r(
44
44
  m,
45
45
  {
@@ -111,6 +111,7 @@ const P = i(
111
111
  {
112
112
  ref: o,
113
113
  type: "button",
114
+ "data-component": "header-iris-button",
114
115
  className: n(
115
116
  "relative flex items-center justify-center h-8 gap-1 px-3 py-1.5 rounded-md cursor-pointer outline-none",
116
117
  "header-iris-button-gradient",
@@ -0,0 +1,3 @@
1
+ export declare const HORIZONTAL_SCROLLER_FADE_WIDTH_PX = 48;
2
+ export declare function buildHorizontalScrollerMaskImage(canScrollLeft: boolean, canScrollRight: boolean): string | undefined;
3
+ export declare const horizontalScrollerEdgeFadeClassName = "pointer-events-none absolute top-0 z-10 h-full w-14";
@@ -0,0 +1,12 @@
1
+ const e = 48;
2
+ function n(a, t) {
3
+ if (!a && !t) return;
4
+ const r = 48;
5
+ return a && t ? `linear-gradient(to right, transparent, black ${r}px, black calc(100% - ${r}px), transparent)` : t ? `linear-gradient(to right, black, black calc(100% - ${r}px), transparent 100%)` : `linear-gradient(to right, transparent, black ${r}px, black)`;
6
+ }
7
+ const i = "pointer-events-none absolute top-0 z-10 h-full w-14";
8
+ export {
9
+ e as HORIZONTAL_SCROLLER_FADE_WIDTH_PX,
10
+ n as buildHorizontalScrollerMaskImage,
11
+ i as horizontalScrollerEdgeFadeClassName
12
+ };
@@ -1,167 +1,223 @@
1
- import { jsxs as i, jsx as l } from "react/jsx-runtime";
2
- import * as n from "react";
3
- import { ChevronRight as W } from "impact-nova-icons";
4
- import { useVirtualizer as j } from "@tanstack/react-virtual";
5
- import { cn as h } from "../../../lib/utils.js";
6
- import { Button as O } from "../../primitives/button/button.js";
7
- import { useImpactNovaI18n as T } from "../../../i18n/use-impact-nova-i18n.js";
8
- function $({
9
- className: N,
10
- items: d,
11
- renderItem: R,
12
- scrollStep: p = 200,
13
- hideScrollbar: u = !0,
14
- controlsPosition: v = "right",
15
- renderPrevious: x,
16
- renderNext: g,
17
- maxWidth: L = "100%",
18
- estimateSize: m = 200,
19
- overscan: C = 5,
20
- ...B
21
- }, E) {
22
- const { t: w } = T(), r = n.useRef(null), [o, H] = n.useState(!1), [s, I] = n.useState(!1);
23
- n.useImperativeHandle(E, () => r.current);
24
- const c = j({
25
- count: d.length,
26
- getScrollElement: () => r.current,
27
- estimateSize: typeof m == "function" ? m : () => m,
1
+ import { jsx as t, jsxs as h, Fragment as $ } from "react/jsx-runtime";
2
+ import * as i from "react";
3
+ import { ChevronRight as L } from "impact-nova-icons";
4
+ import { useVirtualizer as D } from "@tanstack/react-virtual";
5
+ import { cn as r } from "../../../lib/utils.js";
6
+ import { Button as I } from "../../primitives/button/button.js";
7
+ import { useImpactNovaI18n as _ } from "../../../i18n/use-impact-nova-i18n.js";
8
+ import { horizontalScrollerEdgeFadeClassName as E, buildHorizontalScrollerMaskImage as q } from "./horizontal-scroller-mask.js";
9
+ function G({
10
+ className: B,
11
+ items: u,
12
+ renderItem: H,
13
+ scrollStep: x = 200,
14
+ hideScrollbar: v = !0,
15
+ edgeAffordance: c = !1,
16
+ controlsPosition: z = "right",
17
+ renderPrevious: b,
18
+ renderNext: w,
19
+ maxWidth: W = "100%",
20
+ estimateSize: p = 200,
21
+ overscan: M = 5,
22
+ ...V
23
+ }, j) {
24
+ const { t: S } = _(), o = i.useRef(null), [n, F] = i.useState(!1), [a, O] = i.useState(!1);
25
+ i.useImperativeHandle(j, () => o.current);
26
+ const f = D({
27
+ count: u.length,
28
+ getScrollElement: () => o.current,
29
+ estimateSize: typeof p == "function" ? p : () => p,
28
30
  horizontal: !0,
29
- overscan: C
30
- }), V = c.getTotalSize(), f = n.useCallback(() => {
31
- const e = r.current;
32
- e && (H(e.scrollLeft > 0), I(
31
+ overscan: M
32
+ }), T = f.getTotalSize(), m = i.useCallback(() => {
33
+ const e = o.current;
34
+ e && (F(e.scrollLeft > 0), O(
33
35
  Math.ceil(e.scrollLeft + e.clientWidth) < e.scrollWidth
34
36
  ));
35
37
  }, []);
36
- n.useEffect(() => {
37
- const e = r.current;
38
+ i.useEffect(() => {
39
+ const e = o.current;
38
40
  if (!e) return;
39
- f();
40
- const t = () => f();
41
- e.addEventListener("scroll", t);
42
- const a = new ResizeObserver(() => {
43
- f();
41
+ m();
42
+ const l = () => m();
43
+ e.addEventListener("scroll", l);
44
+ const s = new ResizeObserver(() => {
45
+ m();
44
46
  });
45
- return a.observe(e), () => {
46
- e.removeEventListener("scroll", t), a.disconnect();
47
+ return s.observe(e), () => {
48
+ e.removeEventListener("scroll", l), s.disconnect();
47
49
  };
48
- }, [f, d, V]);
49
- const z = () => {
50
- r.current?.scrollBy({ left: -p, behavior: "smooth" });
51
- }, b = () => {
52
- r.current?.scrollBy({ left: p, behavior: "smooth" });
53
- }, S = (e, t, a) => {
54
- if (a) return null;
55
- const k = w(e === "left" ? "horizontalScroller.scrollLeft" : "horizontalScroller.scrollRight");
56
- return /* @__PURE__ */ i(
57
- O,
50
+ }, [m, u, T]);
51
+ const N = () => {
52
+ o.current?.scrollBy({ left: -x, behavior: "smooth" });
53
+ }, y = () => {
54
+ o.current?.scrollBy({ left: x, behavior: "smooth" });
55
+ }, k = (e, l, s) => {
56
+ if (s) return null;
57
+ const g = S(e === "left" ? "horizontalScroller.scrollLeft" : "horizontalScroller.scrollRight");
58
+ return c ? /* @__PURE__ */ t(
59
+ I,
60
+ {
61
+ variant: "ghost",
62
+ size: "iconSm",
63
+ className: r(
64
+ "absolute top-1/2 z-20 !size-5 !min-h-5 !min-w-5 -translate-y-1/2 rounded-full border border-stroke-hairline p-0",
65
+ "bg-canvas-elevated/95 text-content-secondary shadow-sm",
66
+ "hover:bg-canvas-muted hover:text-content",
67
+ "[&_svg]:!size-3",
68
+ e === "left" ? "left-0.5" : "right-0.5"
69
+ ),
70
+ onClick: l,
71
+ disabled: s,
72
+ "aria-label": g,
73
+ "data-component": e === "left" ? "horizontal-scroller-prev" : "horizontal-scroller-next",
74
+ tabIndex: -1,
75
+ children: /* @__PURE__ */ t(
76
+ L,
77
+ {
78
+ className: r(e === "left" && "rotate-180")
79
+ }
80
+ )
81
+ }
82
+ ) : /* @__PURE__ */ h(
83
+ I,
58
84
  {
59
85
  variant: "ghost",
60
86
  size: "icon",
61
- className: h(
87
+ className: r(
62
88
  "h-8 w-8 rounded-md bg-canvas-muted text-content-tertiary hover:bg-brand-tint hover:text-brand"
63
89
  ),
64
- onClick: t,
65
- disabled: a,
66
- "aria-label": k,
90
+ onClick: l,
91
+ disabled: s,
92
+ "aria-label": g,
67
93
  "data-component": e === "left" ? "horizontal-scroller-prev" : "horizontal-scroller-next",
68
94
  children: [
69
- /* @__PURE__ */ l(
70
- W,
95
+ /* @__PURE__ */ t(
96
+ L,
71
97
  {
72
- className: h("h-4 w-4", e === "left" && "rotate-180")
98
+ className: r("h-4 w-4", e === "left" && "rotate-180")
73
99
  }
74
100
  ),
75
- /* @__PURE__ */ l("span", { className: "sr-only", children: k })
101
+ /* @__PURE__ */ t("span", { className: "sr-only", children: g })
76
102
  ]
77
103
  }
78
104
  );
79
- }, y = (() => {
80
- const e = x ? x({ onClick: z, disabled: !o }) : S("left", z, !o), t = g ? g({ onClick: b, disabled: !s }) : S("right", b, !s);
81
- return v === "split" ? {
82
- left: o ? /* @__PURE__ */ l("div", { className: "flex-shrink-0", children: e }) : null,
83
- right: s ? /* @__PURE__ */ l("div", { className: "flex-shrink-0", children: t }) : null
84
- } : v === "left" ? {
85
- left: o || s ? /* @__PURE__ */ i("div", { className: "flex-shrink-0 flex items-center gap-1", children: [
105
+ }, d = (() => {
106
+ const e = b ? b({ onClick: N, disabled: !n }) : k("left", N, !n), l = w ? w({ onClick: y, disabled: !a }) : k("right", y, !a);
107
+ return c || z === "split" ? {
108
+ left: n ? /* @__PURE__ */ t("div", { className: "flex-shrink-0", children: e }) : null,
109
+ right: a ? /* @__PURE__ */ t("div", { className: "flex-shrink-0", children: l }) : null
110
+ } : z === "left" ? {
111
+ left: n || a ? /* @__PURE__ */ h("div", { className: "flex-shrink-0 flex items-center gap-1", children: [
86
112
  e,
87
- t
113
+ l
88
114
  ] }) : null,
89
115
  right: null
90
116
  } : {
91
117
  left: null,
92
- right: o || s ? /* @__PURE__ */ i("div", { className: "flex-shrink-0 flex items-center gap-1", children: [
118
+ right: n || a ? /* @__PURE__ */ h("div", { className: "flex-shrink-0 flex items-center gap-1", children: [
93
119
  e,
94
- t
120
+ l
95
121
  ] }) : null
96
122
  };
97
- })();
98
- return /* @__PURE__ */ i(
123
+ })(), C = c ? q(n, a) : void 0, R = /* @__PURE__ */ t(
99
124
  "div",
100
125
  {
101
- className: h(
102
- "flex items-center gap-2 min-w-0 w-full bg-transparent",
103
- N
126
+ ref: o,
127
+ tabIndex: 0,
128
+ className: r(
129
+ "flex flex-1 min-w-0 overflow-x-auto overflow-y-hidden whitespace-nowrap",
130
+ v && "scrollbar-hide",
131
+ "scroll-smooth",
132
+ c && "h-full overscroll-x-contain outline-none"
104
133
  ),
105
- style: { maxWidth: L },
106
- "data-component": "horizontal-scroller",
107
- ...B,
108
- children: [
109
- y.left,
110
- /* @__PURE__ */ l(
111
- "div",
112
- {
113
- ref: r,
114
- tabIndex: 0,
115
- className: h(
116
- "flex flex-1 min-w-0 overflow-x-auto overflow-y-hidden whitespace-nowrap",
117
- u && "scrollbar-hide",
118
- "scroll-smooth"
119
- ),
120
- style: {
121
- scrollbarWidth: u ? "none" : "auto",
122
- msOverflowStyle: u ? "none" : "auto"
123
- },
124
- "data-component": "horizontal-scroller-viewport",
125
- children: /* @__PURE__ */ i(
134
+ style: {
135
+ scrollbarWidth: v ? "none" : "auto",
136
+ msOverflowStyle: v ? "none" : "auto",
137
+ WebkitMaskImage: C,
138
+ maskImage: C
139
+ },
140
+ "data-component": "horizontal-scroller-viewport",
141
+ children: /* @__PURE__ */ h(
142
+ "div",
143
+ {
144
+ style: {
145
+ width: `${f.getTotalSize()}px`,
146
+ display: "flex",
147
+ position: "relative"
148
+ },
149
+ children: [
150
+ /* @__PURE__ */ t(
126
151
  "div",
127
152
  {
128
153
  style: {
129
- width: `${c.getTotalSize()}px`,
130
- display: "flex",
131
- position: "relative"
132
- },
133
- children: [
134
- /* @__PURE__ */ l(
135
- "div",
136
- {
137
- style: {
138
- width: `${c.getVirtualItems()[0]?.start ?? 0}px`,
139
- flexShrink: 0
140
- }
141
- }
142
- ),
143
- c.getVirtualItems().map((e) => /* @__PURE__ */ l(
144
- "div",
145
- {
146
- ref: c.measureElement,
147
- "data-index": e.index,
148
- className: "flex-shrink-0",
149
- children: R(d[e.index], e.index)
150
- },
151
- e.key
152
- ))
153
- ]
154
+ width: `${f.getVirtualItems()[0]?.start ?? 0}px`,
155
+ flexShrink: 0
156
+ }
154
157
  }
158
+ ),
159
+ f.getVirtualItems().map((e) => /* @__PURE__ */ t(
160
+ "div",
161
+ {
162
+ ref: f.measureElement,
163
+ "data-index": e.index,
164
+ className: "flex-shrink-0",
165
+ children: H(u[e.index], e.index)
166
+ },
167
+ e.key
168
+ ))
169
+ ]
170
+ }
171
+ )
172
+ }
173
+ );
174
+ return /* @__PURE__ */ t(
175
+ "div",
176
+ {
177
+ className: r(
178
+ "flex items-center gap-2 min-w-0 w-full bg-transparent",
179
+ c && "gap-0",
180
+ B
181
+ ),
182
+ style: { maxWidth: W },
183
+ "data-component": "horizontal-scroller",
184
+ ...V,
185
+ children: c ? /* @__PURE__ */ h("div", { className: "relative flex min-h-0 min-w-0 flex-1 self-stretch", children: [
186
+ n ? /* @__PURE__ */ t(
187
+ "div",
188
+ {
189
+ "aria-hidden": !0,
190
+ "data-component": "horizontal-scroller-fade-left",
191
+ className: r(
192
+ E,
193
+ "left-0 bg-gradient-to-r from-canvas-elevated from-10% via-canvas-elevated/90 via-50% to-transparent"
155
194
  )
156
195
  }
157
- ),
158
- y.right
159
- ]
196
+ ) : null,
197
+ a ? /* @__PURE__ */ t(
198
+ "div",
199
+ {
200
+ "aria-hidden": !0,
201
+ "data-component": "horizontal-scroller-fade-right",
202
+ className: r(
203
+ E,
204
+ "right-0 bg-gradient-to-l from-canvas-elevated from-10% via-canvas-elevated/90 via-50% to-transparent"
205
+ )
206
+ }
207
+ ) : null,
208
+ d.left,
209
+ d.right,
210
+ R
211
+ ] }) : /* @__PURE__ */ h($, { children: [
212
+ d.left,
213
+ R,
214
+ d.right
215
+ ] })
160
216
  }
161
217
  );
162
218
  }
163
- const A = n.forwardRef($);
164
- A.displayName = "HorizontalScroller";
219
+ const J = i.forwardRef(G);
220
+ J.displayName = "HorizontalScroller";
165
221
  export {
166
- A as HorizontalScroller
222
+ J as HorizontalScroller
167
223
  };
@@ -4,6 +4,8 @@ export interface HorizontalScrollerProps<T> extends Omit<React.HTMLAttributes<HT
4
4
  renderItem: (item: T, index: number) => React.ReactNode;
5
5
  scrollStep?: number;
6
6
  hideScrollbar?: boolean;
7
+ /** Overlay edge fades + split chevrons on the viewport (dashboard carousel pattern). */
8
+ edgeAffordance?: boolean;
7
9
  controlsPosition?: "left" | "right" | "split";
8
10
  renderPrevious?: (props: {
9
11
  onClick: () => void;
@@ -6,5 +6,7 @@ export interface ScrollOverflowAffordanceProps extends Omit<React.HTMLAttributes
6
6
  hideScrollbar?: boolean;
7
7
  viewportClassName?: string;
8
8
  viewportDataComponent?: string;
9
+ /** `compact` = small circular chevrons; `default` = 32px rounded-md dashboard controls. */
10
+ controlSize?: "compact" | "default";
9
11
  }
10
- export declare function ScrollOverflowAffordance({ children, scrollStep, contentDependency, hideScrollbar, viewportClassName, viewportDataComponent, className, ...props }: ScrollOverflowAffordanceProps): import("react/jsx-runtime").JSX.Element;
12
+ export declare function ScrollOverflowAffordance({ children, scrollStep, contentDependency, hideScrollbar, viewportClassName, viewportDataComponent, controlSize, className, ...props }: ScrollOverflowAffordanceProps): import("react/jsx-runtime").JSX.Element;