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,4 +1,4 @@
1
- import { jsx as o, jsxs as g } from "react/jsx-runtime";
1
+ import { jsx as r, jsxs as x } from "react/jsx-runtime";
2
2
  import * as n from "react";
3
3
  import * as L from "@radix-ui/react-checkbox";
4
4
  import * as G from "@radix-ui/react-radio-group";
@@ -8,11 +8,11 @@ import { Checkmark as V } from "impact-nova-icons";
8
8
  import { Badge as F } from "../../data-display/badge/badge.js";
9
9
  import { createComponent as p } from "../../../lib/primitives/create-component.js";
10
10
  import { useComposedRefs as _ } from "../../../lib/compose-refs.js";
11
- import { cn as l } from "../../../lib/utils.js";
11
+ import { cn as d } from "../../../lib/utils.js";
12
12
  import { choiceCardCheckboxIndicatorClassName as H, choiceCardRadioIndicatorClassName as $ } from "./choice-card-indicator.variants.js";
13
13
  import { ChoiceCardFeaturedBackdrop as K } from "./choice-card-featured-backdrop.js";
14
14
  import { choiceCardVariants as W } from "./choice-card.variants.js";
15
- const y = n.createContext(null), x = n.createContext({
15
+ const y = n.createContext(null), g = n.createContext({
16
16
  value: "",
17
17
  selected: !1,
18
18
  type: "single",
@@ -32,32 +32,32 @@ const y = n.createContext(null), x = n.createContext({
32
32
  return e;
33
33
  };
34
34
  function Ce() {
35
- const { value: e, type: a, setValue: t, isSelected: r } = B();
35
+ const { value: e, type: a, setValue: t, isSelected: o } = B();
36
36
  return n.useMemo(
37
37
  () => ({
38
38
  value: e,
39
39
  type: a,
40
40
  setValue: t,
41
- isSelected: r
41
+ isSelected: o
42
42
  }),
43
- [e, a, t, r]
43
+ [e, a, t, o]
44
44
  );
45
45
  }
46
46
  function pe() {
47
- return n.useContext(x);
47
+ return n.useContext(g);
48
48
  }
49
49
  function Z({
50
50
  selected: e,
51
51
  disabled: a,
52
52
  mode: t,
53
- size: r,
53
+ size: o,
54
54
  variant: c,
55
55
  className: i
56
56
  }) {
57
- return l(
57
+ return d(
58
58
  W({
59
59
  variant: c,
60
- size: r,
60
+ size: o,
61
61
  selected: e,
62
62
  mode: t,
63
63
  disabled: !!a
@@ -69,10 +69,10 @@ const q = ({
69
69
  value: e,
70
70
  defaultValue: a = "",
71
71
  onValueChange: t,
72
- disabled: r,
72
+ disabled: o,
73
73
  orientation: c = "horizontal",
74
74
  wrap: i = !1,
75
- className: m,
75
+ className: l,
76
76
  children: h
77
77
  }) => {
78
78
  const [C, s] = M({
@@ -80,26 +80,26 @@ const q = ({
80
80
  defaultProp: a,
81
81
  onChange: t
82
82
  }), u = n.useCallback(
83
- (d) => C === d,
83
+ (m) => C === m,
84
84
  [C]
85
85
  ), f = n.useMemo(
86
86
  () => ({
87
87
  type: "single",
88
- disabled: r,
88
+ disabled: o,
89
89
  value: C,
90
- setValue: (d) => s(d),
90
+ setValue: (m) => s(m),
91
91
  isSelected: u,
92
- toggle: (d) => s(d)
92
+ toggle: (m) => s(m)
93
93
  }),
94
- [r, C, s, u]
94
+ [o, C, s, u]
95
95
  );
96
- return /* @__PURE__ */ o(y.Provider, { value: f, children: /* @__PURE__ */ o(
96
+ return /* @__PURE__ */ r(y.Provider, { value: f, children: /* @__PURE__ */ r(
97
97
  G.Root,
98
98
  {
99
99
  value: C,
100
100
  onValueChange: s,
101
- disabled: r,
102
- className: m,
101
+ disabled: o,
102
+ className: l,
103
103
  "data-component": "choice-card-group",
104
104
  "data-type": "single",
105
105
  "data-layout": i ? "wrap" : c === "vertical" ? "column" : "row",
@@ -110,10 +110,10 @@ const q = ({
110
110
  value: e,
111
111
  defaultValue: a = [],
112
112
  onValueChange: t,
113
- disabled: r,
113
+ disabled: o,
114
114
  orientation: c = "horizontal",
115
115
  wrap: i = !1,
116
- className: m,
116
+ className: l,
117
117
  children: h
118
118
  }) => {
119
119
  const [C, s] = M({
@@ -123,7 +123,7 @@ const q = ({
123
123
  }), u = n.useMemo(() => C ?? [], [C]), f = n.useCallback(
124
124
  (b) => u.includes(b),
125
125
  [u]
126
- ), d = n.useCallback(
126
+ ), m = n.useCallback(
127
127
  (b) => {
128
128
  if (u.includes(b)) {
129
129
  s(u.filter((N) => N !== b));
@@ -135,26 +135,26 @@ const q = ({
135
135
  ), k = n.useMemo(
136
136
  () => ({
137
137
  type: "multiple",
138
- disabled: r,
138
+ disabled: o,
139
139
  value: u,
140
140
  setValue: (b) => s(b),
141
141
  isSelected: f,
142
- toggle: d
142
+ toggle: m
143
143
  }),
144
- [r, u, s, f, d]
144
+ [o, u, s, f, m]
145
145
  );
146
- return /* @__PURE__ */ o(y.Provider, { value: k, children: /* @__PURE__ */ o(
146
+ return /* @__PURE__ */ r(y.Provider, { value: k, children: /* @__PURE__ */ r(
147
147
  "div",
148
148
  {
149
149
  role: "group",
150
- className: m,
150
+ className: l,
151
151
  "data-component": "choice-card-group",
152
152
  "data-type": "multiple",
153
153
  "data-layout": i ? "wrap" : c === "vertical" ? "column" : "row",
154
154
  children: h
155
155
  }
156
156
  ) });
157
- }, O = (e) => e.type === "multiple" ? /* @__PURE__ */ o(J, { ...e }) : /* @__PURE__ */ o(q, { ...e });
157
+ }, O = (e) => e.type === "multiple" ? /* @__PURE__ */ r(J, { ...e }) : /* @__PURE__ */ r(q, { ...e });
158
158
  O.displayName = "ChoiceCardGroup";
159
159
  function E(e, a, t) {
160
160
  if (e) {
@@ -174,22 +174,22 @@ const U = p(
174
174
  className: e,
175
175
  selected: a,
176
176
  disabled: t = !1,
177
- mode: r,
177
+ mode: o,
178
178
  size: c,
179
179
  variant: i,
180
- children: m,
180
+ children: l,
181
181
  onClick: h,
182
182
  onPointerDown: C,
183
183
  onKeyDown: s,
184
184
  ...u
185
- }, f) => /* @__PURE__ */ o(
185
+ }, f) => /* @__PURE__ */ r(
186
186
  "div",
187
187
  {
188
188
  ref: f,
189
189
  className: Z({
190
190
  selected: a,
191
191
  disabled: t,
192
- mode: r,
192
+ mode: o,
193
193
  size: c,
194
194
  variant: i,
195
195
  className: e
@@ -200,17 +200,17 @@ const U = p(
200
200
  "data-size": c,
201
201
  "data-variant": i,
202
202
  "aria-disabled": t || void 0,
203
- onClick: (d) => E(t, d, h),
204
- onPointerDown: (d) => E(t, d, C),
205
- onKeyDown: (d) => {
206
- if (t && (d.key === " " || d.key === "Enter")) {
207
- d.preventDefault(), d.stopPropagation();
203
+ onClick: (m) => E(t, m, h),
204
+ onPointerDown: (m) => E(t, m, C),
205
+ onKeyDown: (m) => {
206
+ if (t && (m.key === " " || m.key === "Enter")) {
207
+ m.preventDefault(), m.stopPropagation();
208
208
  return;
209
209
  }
210
- s?.(d);
210
+ s?.(m);
211
211
  },
212
212
  ...u,
213
- children: m
213
+ children: l
214
214
  }
215
215
  )
216
216
  ), he = p(
@@ -219,18 +219,18 @@ const U = p(
219
219
  value: e,
220
220
  className: a,
221
221
  children: t,
222
- disabled: r,
222
+ disabled: o,
223
223
  size: c = "md",
224
224
  variant: i = "default",
225
- "aria-label": m,
225
+ "aria-label": l,
226
226
  ...h
227
227
  }, C) => {
228
- const s = B(), u = n.useContext(v), f = r || s.disabled, d = s.isSelected(e), [k, b] = n.useState(""), N = n.useCallback((w) => {
228
+ const s = B(), u = n.useContext(v), f = o || s.disabled, m = s.isSelected(e), [k, b] = n.useState(""), N = n.useCallback((w) => {
229
229
  b((P) => P === w ? P : w);
230
- }, []), S = !!m, j = n.useMemo(
230
+ }, []), S = !!l, j = n.useMemo(
231
231
  () => ({
232
232
  value: e,
233
- selected: d,
233
+ selected: m,
234
234
  disabled: f,
235
235
  type: s.type,
236
236
  size: c,
@@ -238,15 +238,15 @@ const U = p(
238
238
  labelIsExplicit: S,
239
239
  setAccessibleName: N
240
240
  }),
241
- [e, d, f, s.type, c, i, S, N]
242
- ), z = m ?? (k || e), R = () => {
241
+ [e, m, f, s.type, c, i, S, N]
242
+ ), z = l ?? (k || e), R = () => {
243
243
  f || s.toggle(e);
244
244
  }, A = (w) => {
245
245
  Q(w.target) || R(), h.onClick?.(w);
246
- }, I = l(
246
+ }, I = d(
247
247
  "pointer-events-none absolute inset-0 z-0 opacity-0 outline-none",
248
248
  u.inCompare && "[grid-column:1] [grid-row:1/-1]"
249
- ), D = s.type === "single" ? /* @__PURE__ */ o(
249
+ ), D = s.type === "single" ? /* @__PURE__ */ r(
250
250
  G.Item,
251
251
  {
252
252
  value: e,
@@ -255,10 +255,10 @@ const U = p(
255
255
  "data-slot": "choice-card-control",
256
256
  "aria-label": z
257
257
  }
258
- ) : /* @__PURE__ */ o(
258
+ ) : /* @__PURE__ */ r(
259
259
  L.Root,
260
260
  {
261
- checked: d,
261
+ checked: m,
262
262
  disabled: f,
263
263
  onCheckedChange: R,
264
264
  className: I,
@@ -266,74 +266,71 @@ const U = p(
266
266
  "aria-label": z
267
267
  }
268
268
  );
269
- return /* @__PURE__ */ o(x.Provider, { value: j, children: /* @__PURE__ */ g(
269
+ return /* @__PURE__ */ r(g.Provider, { value: j, children: /* @__PURE__ */ x(
270
270
  U,
271
271
  {
272
272
  ref: C,
273
- selected: d,
273
+ selected: m,
274
274
  disabled: f,
275
275
  mode: s.type,
276
276
  size: c,
277
277
  variant: i,
278
- className: l(
278
+ className: d(
279
279
  a,
280
- u.inCompare && l(
280
+ u.inCompare && d(
281
281
  "isolate grid w-full grid-rows-subgrid [grid-row:1/-1] gap-0",
282
- u.fit === "auto" ? "min-w-0 max-w-[420px]" : "min-w-[411px]"
282
+ u.fit === "auto" ? "min-w-0 max-w-[420px]" : "w-[411px] min-w-[411px] max-w-[411px]"
283
283
  )
284
284
  ),
285
285
  ...h,
286
286
  onClick: A,
287
287
  children: [
288
288
  D,
289
- i === "featured" ? /* @__PURE__ */ o(K, {}) : null,
289
+ i === "featured" ? /* @__PURE__ */ r(K, {}) : null,
290
290
  t
291
291
  ]
292
292
  }
293
293
  ) });
294
294
  }
295
- ), fe = p(
296
- "ChoiceCardIndicator",
297
- ({ className: e }, a) => {
298
- const { selected: t, type: r, disabled: c } = n.useContext(x);
299
- return r === "multiple" ? /* @__PURE__ */ o(
300
- "span",
301
- {
302
- ref: a,
303
- className: l(
304
- H,
305
- t && "border-brand bg-accent text-brand",
306
- c && "border-stroke bg-disabled-surface text-disabled-foreground data-[state=checked]:border-stroke data-[state=checked]:bg-disabled-surface",
307
- e
308
- ),
309
- "data-slot": "choice-card-indicator",
310
- "data-state": t ? "checked" : "unchecked",
311
- "aria-hidden": "true",
312
- children: t ? /* @__PURE__ */ o(V, { className: "h-3.5 w-3.5" }) : null
313
- }
314
- ) : /* @__PURE__ */ o(
315
- "span",
316
- {
317
- ref: a,
318
- className: l(
319
- $,
320
- t && "ring-brand",
321
- c && "bg-disabled-surface ring-stroke",
322
- e
323
- ),
324
- "data-slot": "choice-card-indicator",
325
- "aria-hidden": "true",
326
- children: t ? /* @__PURE__ */ o("span", { className: "absolute inset-[3px] rounded-full bg-current" }) : null
327
- }
328
- );
329
- }
330
- ), be = p(
295
+ ), fe = p("ChoiceCardIndicator", ({ className: e, shape: a }, t) => {
296
+ const { selected: o, type: c, disabled: i } = n.useContext(g);
297
+ return (a ?? (c === "multiple" ? "checkbox" : "radio")) === "checkbox" ? /* @__PURE__ */ r(
298
+ "span",
299
+ {
300
+ ref: t,
301
+ className: d(
302
+ H,
303
+ o && "border-brand bg-accent text-brand",
304
+ i && "border-stroke bg-disabled-surface text-disabled-foreground data-[state=checked]:border-stroke data-[state=checked]:bg-disabled-surface",
305
+ e
306
+ ),
307
+ "data-slot": "choice-card-indicator",
308
+ "data-state": o ? "checked" : "unchecked",
309
+ "aria-hidden": "true",
310
+ children: o ? /* @__PURE__ */ r(V, { className: "h-3.5 w-3.5" }) : null
311
+ }
312
+ ) : /* @__PURE__ */ r(
313
+ "span",
314
+ {
315
+ ref: t,
316
+ className: d(
317
+ $,
318
+ o && "ring-brand",
319
+ i && "bg-disabled-surface ring-stroke",
320
+ e
321
+ ),
322
+ "data-slot": "choice-card-indicator",
323
+ "aria-hidden": "true",
324
+ children: o ? /* @__PURE__ */ r("span", { className: "absolute inset-[3px] rounded-full bg-current" }) : null
325
+ }
326
+ );
327
+ }), be = p(
331
328
  "ChoiceCardBackground",
332
- ({ className: e, children: a, ...t }, r) => /* @__PURE__ */ o(
329
+ ({ className: e, children: a, ...t }, o) => /* @__PURE__ */ r(
333
330
  "div",
334
331
  {
335
- ref: r,
336
- className: l("pointer-events-none absolute inset-0 overflow-hidden", e),
332
+ ref: o,
333
+ className: d("pointer-events-none absolute inset-0 overflow-hidden", e),
337
334
  "data-slot": "choice-card-background",
338
335
  "aria-hidden": "true",
339
336
  ...t,
@@ -342,16 +339,16 @@ const U = p(
342
339
  )
343
340
  );
344
341
  function X({ className: e }) {
345
- return /* @__PURE__ */ o(
342
+ return /* @__PURE__ */ r(
346
343
  "svg",
347
344
  {
348
345
  width: 28,
349
346
  height: 32,
350
347
  viewBox: "0 0 28 32",
351
- className: l("relative z-0 block h-8 w-7 shrink-0", e),
348
+ className: d("relative z-0 block h-8 w-7 shrink-0", e),
352
349
  "data-slot": "choice-card-ribbon-wedge",
353
350
  "aria-hidden": "true",
354
- children: /* @__PURE__ */ o(
351
+ children: /* @__PURE__ */ r(
355
352
  "path",
356
353
  {
357
354
  d: "M11 16 0 0h28v32H0l11-16Z",
@@ -361,41 +358,41 @@ function X({ className: e }) {
361
358
  }
362
359
  );
363
360
  }
364
- const ge = p(
361
+ const xe = p(
365
362
  "ChoiceCardRibbon",
366
- ({ className: e, children: a, ...t }, r) => /* @__PURE__ */ g(
363
+ ({ className: e, children: a, ...t }, o) => /* @__PURE__ */ x(
367
364
  "div",
368
365
  {
369
- ref: r,
370
- className: l("pointer-events-none absolute bottom-0 right-0 flex h-8 items-stretch", e),
366
+ ref: o,
367
+ className: d("pointer-events-none absolute bottom-0 right-0 flex h-8 items-stretch", e),
371
368
  "data-slot": "choice-card-ribbon",
372
369
  ...t,
373
370
  children: [
374
- /* @__PURE__ */ o(X, {}),
375
- /* @__PURE__ */ o(
371
+ /* @__PURE__ */ r(X, {}),
372
+ /* @__PURE__ */ r(
376
373
  "div",
377
374
  {
378
- className: l(
375
+ className: d(
379
376
  // Start fill at the chevron tip (28 − 11) so no empty purple band sits before the label
380
377
  "relative z-[1] -ms-[17px] flex h-8 items-center rounded-br-xl pe-2 ps-1",
381
378
  "bg-[linear-gradient(90deg,var(--color-choice-card-ribbon-from)_0%,var(--color-choice-card-ribbon-to)_100%)]"
382
379
  ),
383
380
  "data-slot": "choice-card-ribbon-fill",
384
- children: /* @__PURE__ */ o("span", { className: "text-xs font-bold leading-5 text-content capitalize whitespace-nowrap", children: a })
381
+ children: /* @__PURE__ */ r("span", { className: "text-xs font-bold leading-5 text-content capitalize whitespace-nowrap", children: a })
385
382
  }
386
383
  )
387
384
  ]
388
385
  }
389
386
  )
390
- ), xe = p(
387
+ ), ge = p(
391
388
  "ChoiceCardFooter",
392
- ({ className: e, children: a, ...t }, r) => {
389
+ ({ className: e, children: a, ...t }, o) => {
393
390
  const c = n.useContext(v);
394
- return /* @__PURE__ */ o(
391
+ return /* @__PURE__ */ r(
395
392
  "div",
396
393
  {
397
- ref: r,
398
- className: l(
394
+ ref: o,
395
+ className: d(
399
396
  "flex flex-wrap items-start gap-2",
400
397
  c.inCompare && "[grid-row:-1] self-end pt-4",
401
398
  e
@@ -408,22 +405,22 @@ const ge = p(
408
405
  }
409
406
  ), we = p(
410
407
  "ChoiceCardContent",
411
- ({ className: e, children: a, ...t }, r) => {
412
- const { variant: c } = n.useContext(x);
413
- return n.useContext(v).inCompare ? /* @__PURE__ */ o(
408
+ ({ className: e, children: a, ...t }, o) => {
409
+ const { variant: c } = n.useContext(g);
410
+ return n.useContext(v).inCompare ? /* @__PURE__ */ r(
414
411
  "div",
415
412
  {
416
- ref: r,
417
- className: l("contents", e),
413
+ ref: o,
414
+ className: d("contents", e),
418
415
  "data-slot": "choice-card-content",
419
416
  ...t,
420
417
  children: a
421
418
  }
422
- ) : /* @__PURE__ */ o(
419
+ ) : /* @__PURE__ */ r(
423
420
  "div",
424
421
  {
425
- ref: r,
426
- className: l(
422
+ ref: o,
423
+ className: d(
427
424
  "relative z-[1] flex min-w-0 flex-1 flex-col items-start gap-1",
428
425
  c === "featured" && "w-full flex-none gap-2 p-3",
429
426
  c === "compare" && "w-full flex-none gap-4",
@@ -435,28 +432,28 @@ const ge = p(
435
432
  }
436
433
  );
437
434
  }
438
- ), ve = p("ChoiceCardMedia", ({ className: e, children: a, ...t }, r) => /* @__PURE__ */ o(
435
+ ), ve = p("ChoiceCardMedia", ({ className: e, children: a, ...t }, o) => /* @__PURE__ */ r(
439
436
  "div",
440
437
  {
441
- ref: r,
442
- className: l("flex shrink-0 items-center justify-center", e),
438
+ ref: o,
439
+ className: d("flex shrink-0 items-center justify-center", e),
443
440
  "data-slot": "choice-card-media",
444
441
  ...t,
445
442
  children: a
446
443
  }
447
- )), Ne = p("ChoiceCardTitle", ({ className: e, children: a, ...t }, r) => {
448
- const { selected: c, disabled: i, size: m, variant: h, labelIsExplicit: C, setAccessibleName: s } = n.useContext(x), u = n.useRef(null), f = _(r, u);
444
+ )), Ne = p("ChoiceCardTitle", ({ className: e, children: a, ...t }, o) => {
445
+ const { selected: c, disabled: i, size: l, variant: h, labelIsExplicit: C, setAccessibleName: s } = n.useContext(g), u = n.useRef(null), f = _(o, u);
449
446
  return n.useLayoutEffect(() => {
450
447
  if (C) return;
451
- const d = u.current?.textContent?.trim();
452
- d && s(d);
453
- }, [a, C, s]), /* @__PURE__ */ o(
448
+ const m = u.current?.textContent?.trim();
449
+ m && s(m);
450
+ }, [a, C, s]), /* @__PURE__ */ r(
454
451
  "h3",
455
452
  {
456
453
  ref: f,
457
- className: l(
454
+ className: d(
458
455
  "capitalize text-content",
459
- m === "sm" ? "text-sm font-semibold leading-6" : "text-base font-bold leading-6",
456
+ l === "sm" ? "text-sm font-semibold leading-6" : "text-base font-bold leading-6",
460
457
  (h === "featured" || h === "compare") && "text-base font-semibold leading-6",
461
458
  i && !c && "text-content-secondary",
462
459
  e
@@ -467,13 +464,13 @@ const ge = p(
467
464
  );
468
465
  }), ke = p(
469
466
  "ChoiceCardHeader",
470
- ({ className: e, children: a, ...t }, r) => {
467
+ ({ className: e, children: a, ...t }, o) => {
471
468
  const c = n.useContext(v);
472
- return /* @__PURE__ */ o(
469
+ return /* @__PURE__ */ r(
473
470
  "div",
474
471
  {
475
- ref: r,
476
- className: l(
472
+ ref: o,
473
+ className: d(
477
474
  "flex w-full items-center gap-2",
478
475
  c.inCompare && "[grid-row:1] min-w-0 overflow-hidden",
479
476
  e
@@ -484,17 +481,17 @@ const ge = p(
484
481
  }
485
482
  );
486
483
  }
487
- ), ye = p("ChoiceCardDescription", ({ className: e, children: a, ...t }, r) => {
488
- const { selected: c, disabled: i, variant: m } = n.useContext(x);
489
- return /* @__PURE__ */ o(
484
+ ), ye = p("ChoiceCardDescription", ({ className: e, children: a, ...t }, o) => {
485
+ const { selected: c, disabled: i, variant: l } = n.useContext(g);
486
+ return /* @__PURE__ */ r(
490
487
  "p",
491
488
  {
492
- ref: r,
493
- className: l(
489
+ ref: o,
490
+ className: d(
494
491
  "text-xs font-medium leading-4 text-content-secondary",
495
- m === "featured" && "leading-[18px]",
496
- m === "compare" && "capitalize font-bold leading-5 text-content-icon",
497
- i && !c && m !== "featured" && "text-content-muted",
492
+ l === "featured" && "leading-[18px]",
493
+ l === "compare" && "capitalize font-bold leading-5 text-content-icon",
494
+ i && !c && l !== "featured" && "text-content-muted",
498
495
  e
499
496
  ),
500
497
  ...t,
@@ -507,35 +504,35 @@ const ge = p(
507
504
  className: e,
508
505
  asChild: a = !1,
509
506
  placement: t = "start",
510
- icon: r,
507
+ icon: o,
511
508
  children: c = "Selected",
512
509
  ...i
513
- }, m) => {
514
- const { selected: h } = n.useContext(x);
515
- return h ? /* @__PURE__ */ o(
510
+ }, l) => {
511
+ const { selected: h } = n.useContext(g);
512
+ return h ? /* @__PURE__ */ r(
516
513
  a ? T : "div",
517
514
  {
518
- ref: m,
515
+ ref: l,
519
516
  "data-slot": "choice-card-status",
520
517
  "data-placement": t,
521
- className: l(
518
+ className: d(
522
519
  "pointer-events-none absolute z-10 -top-4",
523
520
  t === "center" ? "left-1/2 -translate-x-1/2" : "start-3",
524
521
  e
525
522
  ),
526
523
  ...i,
527
- children: a ? c : /* @__PURE__ */ o(F, { variant: "solid", color: "success", size: "md", icon: r ?? /* @__PURE__ */ o(V, { className: "size-4" }), children: c })
524
+ children: a ? c : /* @__PURE__ */ r(F, { variant: "solid", color: "success", size: "md", icon: o ?? /* @__PURE__ */ r(V, { className: "size-4" }), children: c })
528
525
  }
529
526
  ) : null;
530
527
  }
531
528
  ), ze = p(
532
529
  "ChoiceCardIndex",
533
- ({ className: e, children: a, ...t }, r) => /* @__PURE__ */ o(
530
+ ({ className: e, children: a, ...t }, o) => /* @__PURE__ */ r(
534
531
  "span",
535
532
  {
536
- ref: r,
533
+ ref: o,
537
534
  "data-slot": "choice-card-index",
538
- className: l(
535
+ className: d(
539
536
  "inline-flex size-[22px] shrink-0 items-center justify-center rounded-md bg-content-icon text-[12px] font-bold leading-none tracking-[-0.12px] text-brand-foreground group-data-[selected]:bg-success",
540
537
  e
541
538
  ),
@@ -545,106 +542,106 @@ const ge = p(
545
542
  )
546
543
  ), Re = p(
547
544
  "ChoiceCardStats",
548
- ({ className: e, children: a, ...t }, r) => {
545
+ ({ className: e, children: a, ...t }, o) => {
549
546
  const c = n.Children.toArray(a);
550
- return /* @__PURE__ */ o(
547
+ return /* @__PURE__ */ r(
551
548
  "div",
552
549
  {
553
- ref: r,
550
+ ref: o,
554
551
  "data-slot": "choice-card-stats",
555
- className: l(
552
+ className: d(
556
553
  "flex h-[46px] w-full items-center rounded-lg bg-canvas-muted",
557
554
  e
558
555
  ),
559
556
  ...t,
560
- children: c.map((i, m) => /* @__PURE__ */ g(n.Fragment, { children: [
561
- m > 0 ? /* @__PURE__ */ o("div", { className: "h-3 w-px shrink-0 bg-stroke-field", "aria-hidden": "true" }) : null,
557
+ children: c.map((i, l) => /* @__PURE__ */ x(n.Fragment, { children: [
558
+ l > 0 ? /* @__PURE__ */ r("div", { className: "h-3 w-px shrink-0 bg-stroke-field", "aria-hidden": "true" }) : null,
562
559
  i
563
- ] }, m))
560
+ ] }, l))
564
561
  }
565
562
  );
566
563
  }
567
564
  ), Ie = p(
568
565
  "ChoiceCardStat",
569
- ({ className: e, value: a, label: t, ...r }, c) => /* @__PURE__ */ g(
566
+ ({ className: e, value: a, label: t, ...o }, c) => /* @__PURE__ */ x(
570
567
  "div",
571
568
  {
572
569
  ref: c,
573
570
  "data-slot": "choice-card-stat",
574
- className: l(
571
+ className: d(
575
572
  "flex min-w-0 flex-1 flex-col items-center gap-0.5 p-1",
576
573
  e
577
574
  ),
578
- ...r,
575
+ ...o,
579
576
  children: [
580
- /* @__PURE__ */ o("p", { className: "text-sm font-medium leading-5 text-content-secondary", children: a }),
581
- /* @__PURE__ */ o("p", { className: "text-xs font-medium leading-4 text-content-heading capitalize", children: t })
577
+ /* @__PURE__ */ r("p", { className: "text-sm font-medium leading-5 text-content-secondary", children: a }),
578
+ /* @__PURE__ */ r("p", { className: "text-xs font-medium leading-4 text-content-heading capitalize", children: t })
582
579
  ]
583
580
  }
584
581
  )
585
582
  );
586
583
  function Y(e, a) {
587
584
  if (e <= 0) return "max-content";
588
- const t = a === "auto" ? "minmax(0, 420px)" : "minmax(411px, 1fr)";
585
+ const t = a === "auto" ? "minmax(0, 420px)" : "411px";
589
586
  return `max-content ${Array.from(
590
587
  { length: e },
591
588
  (c, i) => i === 0 ? t : `1rem ${t}`
592
589
  ).join(" ")}`;
593
590
  }
594
591
  function ee({ rows: e }) {
595
- return /* @__PURE__ */ g(
592
+ return /* @__PURE__ */ x(
596
593
  "div",
597
594
  {
598
595
  "data-slot": "choice-card-compare-gutter",
599
596
  className: "grid w-4 grid-rows-subgrid [grid-row:1/-1]",
600
597
  "aria-hidden": "true",
601
598
  children: [
602
- /* @__PURE__ */ o("span", { className: "[grid-row:1]" }),
603
- /* @__PURE__ */ o("span", { className: "[grid-row:2]" }),
604
- Array.from({ length: e }, (a, t) => /* @__PURE__ */ o(
599
+ /* @__PURE__ */ r("span", { className: "[grid-row:1]" }),
600
+ /* @__PURE__ */ r("span", { className: "[grid-row:2]" }),
601
+ Array.from({ length: e }, (a, t) => /* @__PURE__ */ r(
605
602
  "span",
606
603
  {
607
604
  className: "w-full self-center border-t border-dashed border-canvas-accordion"
608
605
  },
609
606
  t
610
607
  )),
611
- /* @__PURE__ */ o("span", { className: "[grid-row:-1]" })
608
+ /* @__PURE__ */ r("span", { className: "[grid-row:-1]" })
612
609
  ]
613
610
  }
614
611
  );
615
612
  }
616
613
  const te = p(
617
614
  "ChoiceCardCompareLabels",
618
- ({ className: e, children: a, ...t }, r) => /* @__PURE__ */ g(
615
+ ({ className: e, children: a, ...t }, o) => /* @__PURE__ */ x(
619
616
  "div",
620
617
  {
621
- ref: r,
618
+ ref: o,
622
619
  "data-slot": "choice-card-compare-labels",
623
- className: l(
620
+ className: d(
624
621
  "sticky start-0 z-20 grid grid-rows-subgrid items-center justify-items-end bg-canvas [grid-row:1/-1]",
625
622
  e
626
623
  ),
627
624
  ...t,
628
625
  children: [
629
- /* @__PURE__ */ o("span", { className: "[grid-row:1]", "aria-hidden": "true" }),
630
- /* @__PURE__ */ o("span", { className: "[grid-row:2]", "aria-hidden": "true" }),
626
+ /* @__PURE__ */ r("span", { className: "[grid-row:1]", "aria-hidden": "true" }),
627
+ /* @__PURE__ */ r("span", { className: "[grid-row:2]", "aria-hidden": "true" }),
631
628
  a,
632
- /* @__PURE__ */ o("span", { className: "[grid-row:-1]", "aria-hidden": "true" })
629
+ /* @__PURE__ */ r("span", { className: "[grid-row:-1]", "aria-hidden": "true" })
633
630
  ]
634
631
  }
635
632
  )
636
633
  ), Pe = p(
637
634
  "ChoiceCardCompareLabel",
638
- ({ className: e, children: a, ...t }, r) => /* @__PURE__ */ g(
635
+ ({ className: e, children: a, ...t }, o) => /* @__PURE__ */ x(
639
636
  "div",
640
637
  {
641
- ref: r,
638
+ ref: o,
642
639
  "data-slot": "choice-card-compare-label",
643
- className: l("flex items-center self-center", e),
640
+ className: d("flex items-center self-center", e),
644
641
  ...t,
645
642
  children: [
646
- /* @__PURE__ */ o("span", { className: "rounded-full border border-canvas-accordion bg-accent px-2 py-1 text-sm font-medium leading-[21px] text-accent-foreground capitalize whitespace-nowrap", children: a }),
647
- /* @__PURE__ */ o(
643
+ /* @__PURE__ */ r("span", { className: "rounded-full border border-canvas-accordion bg-accent px-2 py-1 text-sm font-medium leading-[21px] text-accent-foreground capitalize whitespace-nowrap", children: a }),
644
+ /* @__PURE__ */ r(
648
645
  "span",
649
646
  {
650
647
  className: "w-[18px] shrink-0 border-t border-dashed border-canvas-accordion",
@@ -656,52 +653,52 @@ const te = p(
656
653
  )
657
654
  ), Ee = p(
658
655
  "ChoiceCardCompareLead",
659
- ({ className: e, ...a }, t) => /* @__PURE__ */ o(
656
+ ({ className: e, ...a }, t) => /* @__PURE__ */ r(
660
657
  "div",
661
658
  {
662
659
  ref: t,
663
660
  "data-slot": "choice-card-compare-lead",
664
- className: l("[grid-row:2] min-h-4 min-w-0", e),
661
+ className: d("[grid-row:2] min-h-4 min-w-0", e),
665
662
  ...a
666
663
  }
667
664
  )
668
665
  ), Ge = p(
669
666
  "ChoiceCardCompareRow",
670
- ({ className: e, ...a }, t) => /* @__PURE__ */ o(
667
+ ({ className: e, ...a }, t) => /* @__PURE__ */ r(
671
668
  "div",
672
669
  {
673
670
  ref: t,
674
671
  "data-slot": "choice-card-compare-row",
675
- className: l("flex w-full min-w-0 items-center justify-center self-stretch", e),
672
+ className: d("flex w-full min-w-0 items-center justify-center self-stretch", e),
676
673
  ...a
677
674
  }
678
675
  )
679
676
  ), Me = p(
680
677
  "ChoiceCardCompare",
681
- ({ className: e, children: a, fit: t = "scroll", ...r }, c) => {
682
- const i = n.Children.toArray(a), m = i.find(
678
+ ({ className: e, children: a, fit: t = "scroll", ...o }, c) => {
679
+ const i = n.Children.toArray(a), l = i.find(
683
680
  (s) => n.isValidElement(s) && s.type === te
684
- ), h = i.filter((s) => s !== m), C = n.isValidElement(m) && m.props ? n.Children.count(
685
- m.props.children
681
+ ), h = i.filter((s) => s !== l), C = n.isValidElement(l) && l.props ? n.Children.count(
682
+ l.props.children
686
683
  ) : 0;
687
- return /* @__PURE__ */ o(v.Provider, { value: { inCompare: !0, rows: C, fit: t }, children: /* @__PURE__ */ o(
684
+ return /* @__PURE__ */ r(v.Provider, { value: { inCompare: !0, rows: C, fit: t }, children: /* @__PURE__ */ r(
688
685
  "div",
689
686
  {
690
687
  ref: c,
691
688
  "data-slot": "choice-card-compare",
692
689
  "data-fit": t,
693
- className: l(
690
+ className: d(
694
691
  "w-full min-w-0 overscroll-x-contain pt-5 pb-2",
695
692
  t === "auto" ? "overflow-x-auto" : "overflow-x-scroll",
696
693
  "[scrollbar-width:thin] [scrollbar-color:var(--color-stroke)_transparent]",
697
694
  "[&::-webkit-scrollbar]:h-2 [&::-webkit-scrollbar-thumb]:rounded-full [&::-webkit-scrollbar-thumb]:bg-stroke",
698
695
  e
699
696
  ),
700
- ...r,
701
- children: /* @__PURE__ */ g(
697
+ ...o,
698
+ children: /* @__PURE__ */ x(
702
699
  "div",
703
700
  {
704
- className: l(
701
+ className: d(
705
702
  "grid w-full grid-flow-col items-stretch",
706
703
  t === "auto" ? "min-w-0" : "min-w-max"
707
704
  ),
@@ -710,9 +707,9 @@ const te = p(
710
707
  gridTemplateRows: `auto auto repeat(${Math.max(C, 1)}, minmax(3.5rem, auto)) auto`
711
708
  },
712
709
  children: [
713
- m,
714
- h.map((s, u) => /* @__PURE__ */ g(n.Fragment, { children: [
715
- u > 0 && C > 0 ? /* @__PURE__ */ o(ee, { rows: C }) : null,
710
+ l,
711
+ h.map((s, u) => /* @__PURE__ */ x(n.Fragment, { children: [
712
+ u > 0 && C > 0 ? /* @__PURE__ */ r(ee, { rows: C }) : null,
716
713
  s
717
714
  ] }, u))
718
715
  ]
@@ -733,13 +730,13 @@ export {
733
730
  we as ChoiceCardContent,
734
731
  ye as ChoiceCardDescription,
735
732
  K as ChoiceCardFeaturedBackdrop,
736
- xe as ChoiceCardFooter,
733
+ ge as ChoiceCardFooter,
737
734
  O as ChoiceCardGroup,
738
735
  ke as ChoiceCardHeader,
739
736
  ze as ChoiceCardIndex,
740
737
  fe as ChoiceCardIndicator,
741
738
  ve as ChoiceCardMedia,
742
- ge as ChoiceCardRibbon,
739
+ xe as ChoiceCardRibbon,
743
740
  Ie as ChoiceCardStat,
744
741
  Re as ChoiceCardStats,
745
742
  Se as ChoiceCardStatus,