impact-nova 2.6.3 → 3.0.0-alpha.1

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 (456) hide show
  1. package/dist/_virtual/_commonjsHelpers.js +6 -0
  2. package/dist/_virtual/index.js +7 -0
  3. package/dist/_virtual/index2.js +7 -0
  4. package/dist/_virtual/index3.js +4 -0
  5. package/dist/_virtual/utilities.js +4 -0
  6. package/dist/components/data/ag-grid-react/ag-grid-cell-components.d.ts +9 -0
  7. package/dist/components/data/ag-grid-react/ag-grid-list.d.ts +16 -0
  8. package/dist/components/data/ag-grid-react/ag-grid-list.js +23 -0
  9. package/dist/components/data/ag-grid-react/ag-grid.types.d.ts +7 -0
  10. package/dist/components/data/ag-grid-react/cell-renderers/editors/list-select-cell-editor.d.ts +14 -0
  11. package/dist/components/data/ag-grid-react/cell-renderers/editors/list-select-cell-editor.js +70 -0
  12. package/dist/components/data/ag-grid-react/cell-renderers/editors/select-cell-editor.d.ts +10 -5
  13. package/dist/components/data/ag-grid-react/cell-renderers/editors/select-cell-editor.js +73 -41
  14. package/dist/components/data/ag-grid-react/cell-renderers/index.d.ts +7 -0
  15. package/dist/components/data/ag-grid-react/cell-renderers/index.js +42 -36
  16. package/dist/components/data/ag-grid-react/cell-renderers/link-with-batch-cell-renderer.js +2 -0
  17. package/dist/components/data/ag-grid-react/cell-renderers/list-select-display-renderer.d.ts +19 -0
  18. package/dist/components/data/ag-grid-react/cell-renderers/list-select-display-renderer.js +89 -0
  19. package/dist/components/data/ag-grid-react/cell-renderers/select-ai-insight-affordance.d.ts +28 -0
  20. package/dist/components/data/ag-grid-react/cell-renderers/select-ai-insight-affordance.js +96 -0
  21. package/dist/components/data/ag-grid-react/cell-renderers/select-display-renderer.d.ts +30 -10
  22. package/dist/components/data/ag-grid-react/cell-renderers/select-display-renderer.js +72 -24
  23. package/dist/components/data/ag-grid-react/cell-renderers/style-description-display-renderer.d.ts +42 -0
  24. package/dist/components/data/ag-grid-react/cell-renderers/style-description-display-renderer.js +86 -0
  25. package/dist/components/data/ag-grid-react/headers/advanced-filter/advanced-filter-dialog.js +31 -29
  26. package/dist/components/data/ag-grid-react/headers/components/lazy-tooltip.js +8 -6
  27. package/dist/components/data/ag-grid-react/index.d.ts +1 -1
  28. package/dist/components/data/ag-grid-react/index.js +162 -146
  29. package/dist/components/data/data-table/data-table.js +85 -82
  30. package/dist/components/data/data-table/data-table.types.d.ts +5 -0
  31. package/dist/components/data/expandable-list-item/expandable-list-item-attributes.js +8 -6
  32. package/dist/components/data/expandable-list-item/sku-next-page-coordinator.d.ts +14 -0
  33. package/dist/components/data/expandable-list-item/sku-strip-lookahead.d.ts +26 -0
  34. package/dist/components/data/expandable-list-item/useServerSkuInfinitePages.d.ts +10 -0
  35. package/dist/components/data/expandable-list-item/useSkuStripVirtualizer.d.ts +30 -0
  36. package/dist/components/data/expandable-list-item/virtualized-responsive-grid.catalog.d.ts +81 -0
  37. package/dist/components/data/expandable-list-item/virtualized-responsive-grid.item-grid.d.ts +1 -0
  38. package/dist/components/data/expandable-list-item/virtualized-responsive-grid.product-card.d.ts +7 -0
  39. package/dist/components/data/expandable-list-item/virtualized-responsive-grid.sku-picker.d.ts +2 -0
  40. package/dist/components/data-display/calendar/fiscal-period-caption-select.js +4 -2
  41. package/dist/components/data-display/chart/chart-heatmap-demos.d.ts +3 -0
  42. package/dist/components/data-display/chart/chart-heatmap-play.d.ts +9 -0
  43. package/dist/components/data-display/chart/chart.category-cluster-heatmap.stories-data.d.ts +22 -0
  44. package/dist/components/data-display/chart/chart.diverging-heatmap.stories-data.d.ts +43 -0
  45. package/dist/components/data-display/chart/chart.js +100 -93
  46. package/dist/components/data-display/chart/chart.types.d.ts +10 -0
  47. package/dist/components/data-display/chart/chart.utils.d.ts +14 -2
  48. package/dist/components/data-display/chart/chart.utils.js +132 -35
  49. package/dist/components/data-display/chart/index.js +15 -13
  50. package/dist/components/data-display/chart/resolve-highcharts-options.js +19 -14
  51. package/dist/components/data-display/globe-map/globe-map.d.ts +8 -0
  52. package/dist/components/data-display/globe-map/globe-map.js +161 -0
  53. package/dist/components/data-display/globe-map/globe-map.stories-data.d.ts +12 -0
  54. package/dist/components/data-display/globe-map/globe-map.types.d.ts +83 -0
  55. package/dist/components/data-display/globe-map/globe-map.utils.d.ts +115 -0
  56. package/dist/components/data-display/globe-map/globe-map.utils.js +259 -0
  57. package/dist/components/data-display/globe-map/globe-map.variants.d.ts +19 -0
  58. package/dist/components/data-display/globe-map/globe-map.variants.js +80 -0
  59. package/dist/components/data-display/globe-map/index.d.ts +2 -0
  60. package/dist/components/data-display/globe-map/index.js +10 -0
  61. package/dist/components/data-display/globe-map/internals/globe-countries-110m.json.d.ts +4 -0
  62. package/dist/components/data-display/globe-map/internals/globe-countries-110m.json.js +7 -0
  63. package/dist/components/data-display/globe-map/internals/globe-map-context.d.ts +25 -0
  64. package/dist/components/data-display/globe-map/internals/globe-map-context.js +19 -0
  65. package/dist/components/data-display/globe-map/internals/globe-map-legend.d.ts +2 -0
  66. package/dist/components/data-display/globe-map/internals/globe-map-legend.js +51 -0
  67. package/dist/components/data-display/globe-map/internals/globe-map-point-card-carousel.d.ts +6 -0
  68. package/dist/components/data-display/globe-map/internals/globe-map-point-card-carousel.js +119 -0
  69. package/dist/components/data-display/globe-map/internals/globe-map-point-card.d.ts +2 -0
  70. package/dist/components/data-display/globe-map/internals/globe-map-point-card.js +106 -0
  71. package/dist/components/data-display/globe-map/internals/globe-map-scene.d.ts +17 -0
  72. package/dist/components/data-display/globe-map/internals/globe-map-scene.js +218 -0
  73. package/dist/components/data-display/globe-map/internals/globe-map-tooltip.d.ts +2 -0
  74. package/dist/components/data-display/globe-map/internals/globe-map-tooltip.js +33 -0
  75. package/dist/components/data-display/globe-map/internals/use-globe-map-scene.d.ts +45 -0
  76. package/dist/components/data-display/globe-map/internals/use-globe-map-scene.js +270 -0
  77. package/dist/components/data-display/hex-tilemap/hex-tilemap.d.ts +9 -0
  78. package/dist/components/data-display/hex-tilemap/hex-tilemap.js +94 -0
  79. package/dist/components/data-display/hex-tilemap/hex-tilemap.stories-data.d.ts +7 -0
  80. package/dist/components/data-display/hex-tilemap/hex-tilemap.types.d.ts +43 -0
  81. package/dist/components/data-display/hex-tilemap/hex-tilemap.variants.d.ts +11 -0
  82. package/dist/components/data-display/hex-tilemap/hex-tilemap.variants.js +47 -0
  83. package/dist/components/data-display/hex-tilemap/index.d.ts +2 -0
  84. package/dist/components/data-display/hex-tilemap/index.js +12 -0
  85. package/dist/components/data-display/hex-tilemap/internals/hex-camera.d.ts +40 -0
  86. package/dist/components/data-display/hex-tilemap/internals/hex-camera.js +103 -0
  87. package/dist/components/data-display/hex-tilemap/internals/hex-country-lattices.d.ts +9 -0
  88. package/dist/components/data-display/hex-tilemap/internals/hex-country-lattices.js +1387 -0
  89. package/dist/components/data-display/hex-tilemap/internals/hex-geometry.d.ts +21 -0
  90. package/dist/components/data-display/hex-tilemap/internals/hex-geometry.js +82 -0
  91. package/dist/components/data-display/hex-tilemap/internals/hex-lattice.d.ts +18 -0
  92. package/dist/components/data-display/hex-tilemap/internals/hex-lattice.js +47 -0
  93. package/dist/components/data-display/hex-tilemap/internals/hex-layout.d.ts +10 -0
  94. package/dist/components/data-display/hex-tilemap/internals/hex-layout.js +35 -0
  95. package/dist/components/data-display/hex-tilemap/internals/hex-new-zealand-grid.d.ts +31 -0
  96. package/dist/components/data-display/hex-tilemap/internals/hex-new-zealand-grid.js +138 -0
  97. package/dist/components/data-display/hex-tilemap/internals/hex-regions.d.ts +6 -0
  98. package/dist/components/data-display/hex-tilemap/internals/hex-regions.js +18 -0
  99. package/dist/components/data-display/hex-tilemap/internals/hex-tilemap-context.d.ts +24 -0
  100. package/dist/components/data-display/hex-tilemap/internals/hex-tilemap-context.js +19 -0
  101. package/dist/components/data-display/hex-tilemap/internals/hex-tilemap-legend.d.ts +2 -0
  102. package/dist/components/data-display/hex-tilemap/internals/hex-tilemap-legend.js +51 -0
  103. package/dist/components/data-display/hex-tilemap/internals/hex-tilemap-tooltip.d.ts +2 -0
  104. package/dist/components/data-display/hex-tilemap/internals/hex-tilemap-tooltip.js +36 -0
  105. package/dist/components/data-display/hex-tilemap/internals/hex-tilemap-viewport.d.ts +3 -0
  106. package/dist/components/data-display/hex-tilemap/internals/hex-tilemap-viewport.js +147 -0
  107. package/dist/components/data-display/hex-tilemap/internals/hex-tilemap-zoom.d.ts +13 -0
  108. package/dist/components/data-display/hex-tilemap/internals/hex-tilemap-zoom.js +99 -0
  109. package/dist/components/data-display/hex-tilemap/internals/hex-world-grid.d.ts +8 -0
  110. package/dist/components/data-display/hex-tilemap/internals/use-hex-camera.d.ts +27 -0
  111. package/dist/components/data-display/hex-tilemap/internals/use-hex-camera.js +137 -0
  112. package/dist/components/data-display/notch-card/index.d.ts +2 -0
  113. package/dist/components/data-display/notch-card/index.js +6 -0
  114. package/dist/components/data-display/notch-card/notch-card.d.ts +7 -0
  115. package/dist/components/data-display/notch-card/notch-card.js +151 -0
  116. package/dist/components/data-display/notch-card/notch-card.path.d.ts +19 -0
  117. package/dist/components/data-display/notch-card/notch-card.path.js +118 -0
  118. package/dist/components/data-display/notch-card/notch-card.types.d.ts +15 -0
  119. package/dist/components/data-display/notch-card/notch-card.variants.d.ts +15 -0
  120. package/dist/components/data-display/notch-card/notch-card.variants.js +86 -0
  121. package/dist/components/feedback/hover-card/hover-card.d.ts +3 -1
  122. package/dist/components/feedback/hover-card/hover-card.js +28 -24
  123. package/dist/components/feedback/popover/popover.js +1 -1
  124. package/dist/components/feedback/tooltip/button-icon-tooltip.js +8 -6
  125. package/dist/components/feedback/tooltip/overflow-tooltip.d.ts +1 -1
  126. package/dist/components/feedback/tooltip/overflow-tooltip.js +63 -57
  127. package/dist/components/feedback/tooltip/overflow-tooltip.types.d.ts +4 -0
  128. package/dist/components/feedback/tooltip/tab-tooltip-render.js +6 -4
  129. package/dist/components/flows/filter-strip/index.d.ts +1 -0
  130. package/dist/components/flows/filter-strip/index.js +4 -2
  131. package/dist/components/flows/guidance/renderers/guidance-card-shared.js +1 -1
  132. package/dist/components/flows/iris-chat/index.d.ts +10 -0
  133. package/dist/components/flows/iris-chat/index.js +55 -0
  134. package/dist/components/flows/iris-chat/iris-chat-artifact.d.ts +4 -0
  135. package/dist/components/flows/iris-chat/iris-chat-artifact.js +125 -0
  136. package/dist/components/flows/iris-chat/iris-chat-composer.d.ts +3 -0
  137. package/dist/components/flows/iris-chat/iris-chat-composer.js +297 -0
  138. package/dist/components/flows/iris-chat/iris-chat-context.d.ts +14 -0
  139. package/dist/components/flows/iris-chat/iris-chat-context.js +23 -0
  140. package/dist/components/flows/iris-chat/iris-chat-icons.d.ts +18 -0
  141. package/dist/components/flows/iris-chat/iris-chat-icons.js +176 -0
  142. package/dist/components/flows/iris-chat/iris-chat-markdown.d.ts +3 -0
  143. package/dist/components/flows/iris-chat/iris-chat-markdown.js +62 -0
  144. package/dist/components/flows/iris-chat/iris-chat-menu.d.ts +15 -0
  145. package/dist/components/flows/iris-chat/iris-chat-menu.js +259 -0
  146. package/dist/components/flows/iris-chat/iris-chat-prompt.d.ts +3 -0
  147. package/dist/components/flows/iris-chat/iris-chat-prompt.js +46 -0
  148. package/dist/components/flows/iris-chat/iris-chat-thinking.d.ts +12 -0
  149. package/dist/components/flows/iris-chat/iris-chat-thinking.js +202 -0
  150. package/dist/components/flows/iris-chat/iris-chat-thread.d.ts +37 -0
  151. package/dist/components/flows/iris-chat/iris-chat-thread.js +493 -0
  152. package/dist/components/flows/iris-chat/iris-chat.d.ts +43 -0
  153. package/dist/components/flows/iris-chat/iris-chat.js +336 -0
  154. package/dist/components/flows/iris-chat/iris-chat.types.d.ts +208 -0
  155. package/dist/components/flows/iris-chat/iris-chat.variants.d.ts +14 -0
  156. package/dist/components/flows/iris-chat/iris-chat.variants.js +78 -0
  157. package/dist/components/flows/iris-chat/read-iris-greeting-period.d.ts +4 -0
  158. package/dist/components/flows/iris-chat/read-iris-greeting-period.js +16 -0
  159. package/dist/components/flows/wizard/index.d.ts +2 -2
  160. package/dist/components/flows/wizard/index.js +17 -13
  161. package/dist/components/flows/wizard/wizard-context.d.ts +6 -1
  162. package/dist/components/flows/wizard/wizard-context.js +15 -7
  163. package/dist/components/flows/wizard/wizard.d.ts +22 -4
  164. package/dist/components/flows/wizard/wizard.js +278 -174
  165. package/dist/components/flows/wizard/wizard.types.d.ts +40 -0
  166. package/dist/components/forms/choice-card/assets/featured-backdrop-baked.webp.js +4 -0
  167. package/dist/components/forms/choice-card/assets/featured-noise.webp.js +4 -0
  168. package/dist/components/forms/choice-card/choice-card-featured-arcs.d.ts +4 -0
  169. package/dist/components/forms/choice-card/choice-card-featured-arcs.js +42 -0
  170. package/dist/components/forms/choice-card/choice-card-featured-backdrop.d.ts +4 -0
  171. package/dist/components/forms/choice-card/choice-card-featured-backdrop.js +45 -0
  172. package/dist/components/forms/choice-card/choice-card-indicator.variants.d.ts +8 -0
  173. package/dist/components/forms/choice-card/choice-card-indicator.variants.js +5 -0
  174. package/dist/components/forms/choice-card/choice-card-percent.d.ts +11 -0
  175. package/dist/components/forms/choice-card/choice-card-percent.js +80 -0
  176. package/dist/components/forms/choice-card/choice-card.d.ts +40 -3
  177. package/dist/components/forms/choice-card/choice-card.js +651 -170
  178. package/dist/components/forms/choice-card/choice-card.types.d.ts +40 -0
  179. package/dist/components/forms/choice-card/choice-card.variants.d.ts +7 -0
  180. package/dist/components/forms/choice-card/choice-card.variants.js +100 -0
  181. package/dist/components/forms/choice-card/index.d.ts +2 -1
  182. package/dist/components/forms/choice-card/index.js +27 -10
  183. package/dist/components/forms/combobox/combobox.js +1 -1
  184. package/dist/components/layout/breadcrumb/breadcrumb.js +1 -1
  185. package/dist/components/layout/header/header.d.ts +3 -2
  186. package/dist/components/layout/header/header.js +67 -47
  187. package/dist/components/layout/header/header.types.d.ts +1 -0
  188. package/dist/components/primitives/iris/iris-agent-cursor.d.ts +3 -0
  189. package/dist/components/primitives/iris/iris-agent-cursor.js +89 -0
  190. package/dist/components/primitives/iris/iris-alan-gradient-icon.d.ts +5 -0
  191. package/dist/components/primitives/iris/iris-alan-gradient-icon.js +69 -0
  192. package/dist/components/primitives/iris/iris-control-context.d.ts +15 -0
  193. package/dist/components/primitives/iris/iris-control-context.js +44 -0
  194. package/dist/components/primitives/iris/iris-control-region.d.ts +10 -0
  195. package/dist/components/primitives/iris/iris-control-region.js +102 -0
  196. package/dist/components/primitives/iris/iris-control.types.d.ts +24 -0
  197. package/dist/components/primitives/iris/iris-control.variants.d.ts +4 -0
  198. package/dist/components/primitives/iris/iris-control.variants.js +20 -0
  199. package/dist/components/primitives/iris/iris.d.ts +24 -0
  200. package/dist/components/primitives/iris/iris.js +232 -0
  201. package/dist/components/primitives/iris/iris.types.d.ts +35 -0
  202. package/dist/components/primitives/iris/iris.variants.d.ts +30 -0
  203. package/dist/components/primitives/iris/iris.variants.js +120 -0
  204. package/dist/components/primitives/stepper/internals/pipeline-current-mark.d.ts +6 -0
  205. package/dist/components/primitives/stepper/internals/pipeline-current-mark.js +35 -0
  206. package/dist/components/primitives/stepper/internals/rail-status-dot.d.ts +13 -0
  207. package/dist/components/primitives/stepper/internals/rail-status-dot.js +70 -0
  208. package/dist/components/primitives/stepper/internals/step-hit-target.d.ts +15 -0
  209. package/dist/components/primitives/stepper/internals/step-hit-target.js +51 -0
  210. package/dist/components/primitives/stepper/internals/step-model.d.ts +3 -0
  211. package/dist/components/primitives/stepper/internals/step-model.js +10 -0
  212. package/dist/components/primitives/stepper/internals/stepper-compact.d.ts +5 -0
  213. package/dist/components/primitives/stepper/internals/stepper-compact.js +68 -0
  214. package/dist/components/primitives/stepper/internals/stepper-pipeline.d.ts +7 -0
  215. package/dist/components/primitives/stepper/internals/stepper-pipeline.js +87 -0
  216. package/dist/components/primitives/stepper/internals/stepper-rail.d.ts +5 -0
  217. package/dist/components/primitives/stepper/internals/stepper-rail.js +105 -0
  218. package/dist/components/primitives/stepper/internals/stepper-summary.d.ts +5 -0
  219. package/dist/components/primitives/stepper/internals/stepper-summary.js +103 -0
  220. package/dist/components/primitives/stepper/internals/stepper-track.d.ts +8 -0
  221. package/dist/components/primitives/stepper/internals/stepper-track.js +170 -0
  222. package/dist/components/primitives/stepper/stepper.d.ts +1 -0
  223. package/dist/components/primitives/stepper/stepper.js +134 -52
  224. package/dist/components/primitives/stepper/stepper.types.d.ts +17 -0
  225. package/dist/components/primitives/stepper/stepper.variants.d.ts +26 -0
  226. package/dist/components/primitives/stepper/stepper.variants.js +165 -5
  227. package/dist/components/primitives/tabs/tabs.d.ts +4 -1
  228. package/dist/components/primitives/tabs/tabs.js +131 -59
  229. package/dist/components/primitives/tabs/tabs.types.d.ts +5 -1
  230. package/dist/i18n/defaultMessages.d.ts +100 -0
  231. package/dist/i18n/defaultMessages.js +118 -21
  232. package/dist/i18n/index.d.ts +1 -1
  233. package/dist/i18n/locales/de.js +99 -2
  234. package/dist/i18n/locales/es.js +99 -2
  235. package/dist/i18n/locales/hi.js +99 -2
  236. package/dist/i18n/locales/kn.js +99 -2
  237. package/dist/impact-nova-components.css +972 -2
  238. package/dist/impact-nova-tokens.scss +109 -1
  239. package/dist/impact-nova.css +1 -1
  240. package/dist/index.d.ts +1 -1
  241. package/dist/index.js +585 -551
  242. package/dist/lib/virtualized/directional-range-extractor.d.ts +26 -0
  243. package/dist/lib/virtualized/directional-range-extractor.js +39 -0
  244. package/dist/lib/virtualized/index.d.ts +3 -0
  245. package/dist/lib/virtualized/index.js +35 -27
  246. package/dist/lib/virtualized/scroll-seek.d.ts +61 -0
  247. package/dist/lib/virtualized/scroll-seek.js +61 -0
  248. package/dist/lib/virtualized/usePaintedRangeVirtualizer.d.ts +19 -0
  249. package/dist/lib/virtualized/usePaintedRangeVirtualizer.js +30 -0
  250. package/dist/lib/virtualized/useResponsiveColumnCount.d.ts +35 -0
  251. package/dist/lib/virtualized/useResponsiveColumnCount.js +51 -0
  252. package/dist/lib/virtualized/useScrollSeekPaintedRange.d.ts +13 -0
  253. package/dist/lib/virtualized/useScrollSeekPaintedRange.js +45 -0
  254. package/dist/lib/virtualized/useVirtualizedList.d.ts +7 -0
  255. package/dist/lib/virtualized/useVirtualizedList.js +89 -87
  256. package/dist/lib/virtualized/useVirtualizedRows.d.ts +9 -2
  257. package/dist/lib/virtualized/useVirtualizedRows.js +15 -13
  258. package/dist/lib/virtualized/virtualized.types.d.ts +2 -0
  259. package/dist/llms/rules/installation.js +1 -1
  260. package/dist/llms/rules/requirements.js +1 -1
  261. package/dist/node_modules/@ungap/structured-clone/esm/deserialize.js +85 -0
  262. package/dist/node_modules/@ungap/structured-clone/esm/index.js +11 -0
  263. package/dist/node_modules/@ungap/structured-clone/esm/serialize.js +110 -0
  264. package/dist/node_modules/@ungap/structured-clone/esm/types.js +13 -0
  265. package/dist/node_modules/bail/index.js +7 -0
  266. package/dist/node_modules/ccount/index.js +12 -0
  267. package/dist/node_modules/comma-separated-tokens/index.js +9 -0
  268. package/dist/node_modules/decode-named-character-reference/index.dom.js +10 -0
  269. package/dist/node_modules/devlop/lib/default.js +8 -0
  270. package/dist/node_modules/estree-util-is-identifier-name/lib/index.js +7 -0
  271. package/dist/node_modules/extend/index.js +43 -0
  272. package/dist/node_modules/hast-util-to-jsx-runtime/lib/index.js +302 -0
  273. package/dist/node_modules/hast-util-whitespace/lib/index.js +10 -0
  274. package/dist/node_modules/html-url-attributes/lib/index.js +26 -0
  275. package/dist/node_modules/inline-style-parser/cjs/index.js +93 -0
  276. package/dist/node_modules/is-plain-obj/index.js +9 -0
  277. package/dist/node_modules/longest-streak/index.js +12 -0
  278. package/dist/node_modules/markdown-table/index.js +75 -0
  279. package/dist/node_modules/mdast-util-find-and-replace/lib/index.js +78 -0
  280. package/dist/node_modules/mdast-util-find-and-replace/node_modules/escape-string-regexp/index.js +8 -0
  281. package/dist/node_modules/mdast-util-from-markdown/lib/index.js +632 -0
  282. package/dist/node_modules/mdast-util-gfm/lib/index.js +29 -0
  283. package/dist/node_modules/mdast-util-gfm-autolink-literal/lib/index.js +130 -0
  284. package/dist/node_modules/mdast-util-gfm-footnote/lib/index.js +95 -0
  285. package/dist/node_modules/mdast-util-gfm-strikethrough/lib/index.js +54 -0
  286. package/dist/node_modules/mdast-util-gfm-table/lib/index.js +135 -0
  287. package/dist/node_modules/mdast-util-gfm-task-list-item/lib/index.js +58 -0
  288. package/dist/node_modules/mdast-util-phrasing/lib/index.js +30 -0
  289. package/dist/node_modules/mdast-util-to-hast/lib/footer.js +90 -0
  290. package/dist/node_modules/mdast-util-to-hast/lib/handlers/blockquote.js +12 -0
  291. package/dist/node_modules/mdast-util-to-hast/lib/handlers/break.js +8 -0
  292. package/dist/node_modules/mdast-util-to-hast/lib/handlers/code.js +15 -0
  293. package/dist/node_modules/mdast-util-to-hast/lib/handlers/delete.js +12 -0
  294. package/dist/node_modules/mdast-util-to-hast/lib/handlers/emphasis.js +12 -0
  295. package/dist/node_modules/mdast-util-to-hast/lib/handlers/footnote-reference.js +28 -0
  296. package/dist/node_modules/mdast-util-to-hast/lib/handlers/heading.js +12 -0
  297. package/dist/node_modules/mdast-util-to-hast/lib/handlers/html.js +9 -0
  298. package/dist/node_modules/mdast-util-to-hast/lib/handlers/image-reference.js +14 -0
  299. package/dist/node_modules/mdast-util-to-hast/lib/handlers/image.js +10 -0
  300. package/dist/node_modules/mdast-util-to-hast/lib/handlers/index.js +58 -0
  301. package/dist/node_modules/mdast-util-to-hast/lib/handlers/inline-code.js +14 -0
  302. package/dist/node_modules/mdast-util-to-hast/lib/handlers/link-reference.js +19 -0
  303. package/dist/node_modules/mdast-util-to-hast/lib/handlers/link.js +15 -0
  304. package/dist/node_modules/mdast-util-to-hast/lib/handlers/list-item.js +42 -0
  305. package/dist/node_modules/mdast-util-to-hast/lib/handlers/list.js +21 -0
  306. package/dist/node_modules/mdast-util-to-hast/lib/handlers/paragraph.js +12 -0
  307. package/dist/node_modules/mdast-util-to-hast/lib/handlers/root.js +7 -0
  308. package/dist/node_modules/mdast-util-to-hast/lib/handlers/strong.js +12 -0
  309. package/dist/node_modules/mdast-util-to-hast/lib/handlers/table-cell.js +13 -0
  310. package/dist/node_modules/mdast-util-to-hast/lib/handlers/table-row.js +21 -0
  311. package/dist/node_modules/mdast-util-to-hast/lib/handlers/table.js +32 -0
  312. package/dist/node_modules/mdast-util-to-hast/lib/handlers/text.js +8 -0
  313. package/dist/node_modules/mdast-util-to-hast/lib/handlers/thematic-break.js +12 -0
  314. package/dist/node_modules/mdast-util-to-hast/lib/index.js +10 -0
  315. package/dist/node_modules/mdast-util-to-hast/lib/revert.js +13 -0
  316. package/dist/node_modules/mdast-util-to-hast/lib/state.js +104 -0
  317. package/dist/node_modules/mdast-util-to-markdown/lib/handle/blockquote.js +15 -0
  318. package/dist/node_modules/mdast-util-to-markdown/lib/handle/break.js +15 -0
  319. package/dist/node_modules/mdast-util-to-markdown/lib/handle/code.js +44 -0
  320. package/dist/node_modules/mdast-util-to-markdown/lib/handle/definition.js +34 -0
  321. package/dist/node_modules/mdast-util-to-markdown/lib/handle/emphasis.js +20 -0
  322. package/dist/node_modules/mdast-util-to-markdown/lib/handle/heading.js +35 -0
  323. package/dist/node_modules/mdast-util-to-markdown/lib/handle/html.js +10 -0
  324. package/dist/node_modules/mdast-util-to-markdown/lib/handle/image-reference.js +29 -0
  325. package/dist/node_modules/mdast-util-to-markdown/lib/handle/image.js +33 -0
  326. package/dist/node_modules/mdast-util-to-markdown/lib/handle/index.js +44 -0
  327. package/dist/node_modules/mdast-util-to-markdown/lib/handle/inline-code.js +22 -0
  328. package/dist/node_modules/mdast-util-to-markdown/lib/handle/link-reference.js +29 -0
  329. package/dist/node_modules/mdast-util-to-markdown/lib/handle/link.js +52 -0
  330. package/dist/node_modules/mdast-util-to-markdown/lib/handle/list-item.js +22 -0
  331. package/dist/node_modules/mdast-util-to-markdown/lib/handle/list.js +35 -0
  332. package/dist/node_modules/mdast-util-to-markdown/lib/handle/paragraph.js +7 -0
  333. package/dist/node_modules/mdast-util-to-markdown/lib/handle/root.js +11 -0
  334. package/dist/node_modules/mdast-util-to-markdown/lib/handle/strong.js +20 -0
  335. package/dist/node_modules/mdast-util-to-markdown/lib/handle/text.js +11 -0
  336. package/dist/node_modules/mdast-util-to-markdown/lib/handle/thematic-break.js +9 -0
  337. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-bullet-ordered.js +11 -0
  338. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-bullet-other.js +18 -0
  339. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-bullet.js +11 -0
  340. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-emphasis.js +11 -0
  341. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-fence.js +11 -0
  342. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-list-item-indent.js +11 -0
  343. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-quote.js +11 -0
  344. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-rule-repetition.js +11 -0
  345. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-rule.js +11 -0
  346. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-strong.js +11 -0
  347. package/dist/node_modules/mdast-util-to-markdown/lib/util/encode-character-reference.js +6 -0
  348. package/dist/node_modules/mdast-util-to-markdown/lib/util/format-code-as-indented.js +9 -0
  349. package/dist/node_modules/mdast-util-to-markdown/lib/util/format-heading-as-setext.js +13 -0
  350. package/dist/node_modules/mdast-util-to-markdown/lib/util/format-link-as-autolink.js +15 -0
  351. package/dist/node_modules/mdast-util-to-markdown/lib/util/pattern-in-scope.js +15 -0
  352. package/dist/node_modules/mdast-util-to-string/lib/index.js +29 -0
  353. package/dist/node_modules/micromark/lib/constructs.js +85 -0
  354. package/dist/node_modules/micromark/lib/create-tokenizer.js +225 -0
  355. package/dist/node_modules/micromark/lib/initialize/content.js +37 -0
  356. package/dist/node_modules/micromark/lib/initialize/document.js +128 -0
  357. package/dist/node_modules/micromark/lib/initialize/flow.js +33 -0
  358. package/dist/node_modules/micromark/lib/initialize/text.js +98 -0
  359. package/dist/node_modules/micromark/lib/parse.js +32 -0
  360. package/dist/node_modules/micromark/lib/postprocess.js +9 -0
  361. package/dist/node_modules/micromark/lib/preprocess.js +44 -0
  362. package/dist/node_modules/micromark-core-commonmark/lib/attention.js +87 -0
  363. package/dist/node_modules/micromark-core-commonmark/lib/autolink.js +43 -0
  364. package/dist/node_modules/micromark-core-commonmark/lib/blank-line.js +18 -0
  365. package/dist/node_modules/micromark-core-commonmark/lib/block-quote.js +42 -0
  366. package/dist/node_modules/micromark-core-commonmark/lib/character-escape.js +17 -0
  367. package/dist/node_modules/micromark-core-commonmark/lib/character-reference.js +30 -0
  368. package/dist/node_modules/micromark-core-commonmark/lib/code-fenced.js +82 -0
  369. package/dist/node_modules/micromark-core-commonmark/lib/code-indented.js +37 -0
  370. package/dist/node_modules/micromark-core-commonmark/lib/code-text.js +45 -0
  371. package/dist/node_modules/micromark-core-commonmark/lib/content.js +50 -0
  372. package/dist/node_modules/micromark-core-commonmark/lib/definition.js +80 -0
  373. package/dist/node_modules/micromark-core-commonmark/lib/hard-break-escape.js +17 -0
  374. package/dist/node_modules/micromark-core-commonmark/lib/heading-atx.js +50 -0
  375. package/dist/node_modules/micromark-core-commonmark/lib/html-flow.js +132 -0
  376. package/dist/node_modules/micromark-core-commonmark/lib/html-text.js +102 -0
  377. package/dist/node_modules/micromark-core-commonmark/lib/label-end.js +154 -0
  378. package/dist/node_modules/micromark-core-commonmark/lib/label-start-image.js +23 -0
  379. package/dist/node_modules/micromark-core-commonmark/lib/label-start-link.js +20 -0
  380. package/dist/node_modules/micromark-core-commonmark/lib/line-ending.js +14 -0
  381. package/dist/node_modules/micromark-core-commonmark/lib/list.js +90 -0
  382. package/dist/node_modules/micromark-core-commonmark/lib/partial-non-lazy-continuation.js +17 -0
  383. package/dist/node_modules/micromark-core-commonmark/lib/setext-underline.js +59 -0
  384. package/dist/node_modules/micromark-core-commonmark/lib/thematic-break.js +25 -0
  385. package/dist/node_modules/micromark-extension-gfm/index.js +18 -0
  386. package/dist/node_modules/micromark-extension-gfm-autolink-literal/lib/syntax.js +193 -0
  387. package/dist/node_modules/micromark-extension-gfm-footnote/lib/syntax.js +192 -0
  388. package/dist/node_modules/micromark-extension-gfm-strikethrough/lib/syntax.js +67 -0
  389. package/dist/node_modules/micromark-extension-gfm-table/lib/edit-map.js +75 -0
  390. package/dist/node_modules/micromark-extension-gfm-table/lib/infer.js +23 -0
  391. package/dist/node_modules/micromark-extension-gfm-table/lib/syntax.js +149 -0
  392. package/dist/node_modules/micromark-extension-gfm-task-list-item/lib/syntax.js +45 -0
  393. package/dist/node_modules/micromark-factory-destination/index.js +31 -0
  394. package/dist/node_modules/micromark-factory-label/index.js +28 -0
  395. package/dist/node_modules/micromark-factory-space/index.js +29 -0
  396. package/dist/node_modules/micromark-factory-title/index.js +26 -0
  397. package/dist/node_modules/micromark-factory-whitespace/index.js +12 -0
  398. package/dist/node_modules/micromark-util-character/index.js +39 -0
  399. package/dist/node_modules/micromark-util-chunked/index.js +16 -0
  400. package/dist/node_modules/micromark-util-classify-character/index.js +10 -0
  401. package/dist/node_modules/micromark-util-combine-extensions/index.js +36 -0
  402. package/dist/node_modules/micromark-util-decode-numeric-character-reference/index.js +16 -0
  403. package/dist/node_modules/micromark-util-decode-string/index.js +18 -0
  404. package/dist/node_modules/micromark-util-edit-map/index.js +82 -0
  405. package/dist/node_modules/micromark-util-html-tag-name/index.js +68 -0
  406. package/dist/node_modules/micromark-util-normalize-identifier/index.js +6 -0
  407. package/dist/node_modules/micromark-util-resolve-all/index.js +12 -0
  408. package/dist/node_modules/micromark-util-sanitize-uri/index.js +23 -0
  409. package/dist/node_modules/micromark-util-subtokenize/index.js +55 -0
  410. package/dist/node_modules/micromark-util-subtokenize/lib/splice-buffer.js +175 -0
  411. package/dist/node_modules/property-information/index.js +12 -0
  412. package/dist/node_modules/property-information/lib/aria.js +61 -0
  413. package/dist/node_modules/property-information/lib/find.js +33 -0
  414. package/dist/node_modules/property-information/lib/hast-to-react.js +22 -0
  415. package/dist/node_modules/property-information/lib/html.js +378 -0
  416. package/dist/node_modules/property-information/lib/normalize.js +6 -0
  417. package/dist/node_modules/property-information/lib/svg.js +568 -0
  418. package/dist/node_modules/property-information/lib/util/case-insensitive-transform.js +7 -0
  419. package/dist/node_modules/property-information/lib/util/case-sensitive-transform.js +6 -0
  420. package/dist/node_modules/property-information/lib/util/create.js +19 -0
  421. package/dist/node_modules/property-information/lib/util/defined-info.js +36 -0
  422. package/dist/node_modules/property-information/lib/util/info.js +28 -0
  423. package/dist/node_modules/property-information/lib/util/merge.js +10 -0
  424. package/dist/node_modules/property-information/lib/util/schema.js +21 -0
  425. package/dist/node_modules/property-information/lib/util/types.js +14 -0
  426. package/dist/node_modules/property-information/lib/xlink.js +19 -0
  427. package/dist/node_modules/property-information/lib/xml.js +11 -0
  428. package/dist/node_modules/property-information/lib/xmlns.js +11 -0
  429. package/dist/node_modules/react-markdown/lib/index.js +102 -0
  430. package/dist/node_modules/remark-gfm/lib/index.js +13 -0
  431. package/dist/node_modules/remark-parse/lib/index.js +19 -0
  432. package/dist/node_modules/remark-rehype/lib/index.js +18 -0
  433. package/dist/node_modules/space-separated-tokens/index.js +6 -0
  434. package/dist/node_modules/style-to-js/cjs/index.js +20 -0
  435. package/dist/node_modules/style-to-js/cjs/utilities.js +19 -0
  436. package/dist/node_modules/style-to-object/cjs/index.js +28 -0
  437. package/dist/node_modules/trim-lines/index.js +28 -0
  438. package/dist/node_modules/trough/lib/index.js +60 -0
  439. package/dist/node_modules/unified/lib/callable-instance.js +25 -0
  440. package/dist/node_modules/unified/lib/index.js +529 -0
  441. package/dist/node_modules/unist-util-is/lib/index.js +91 -0
  442. package/dist/node_modules/unist-util-position/lib/index.js +23 -0
  443. package/dist/node_modules/unist-util-stringify-position/lib/index.js +15 -0
  444. package/dist/node_modules/unist-util-visit/lib/index.js +16 -0
  445. package/dist/node_modules/unist-util-visit-parents/lib/color.js +6 -0
  446. package/dist/node_modules/unist-util-visit-parents/lib/index.js +56 -0
  447. package/dist/node_modules/vfile/lib/index.js +406 -0
  448. package/dist/node_modules/vfile/lib/minpath.browser.js +112 -0
  449. package/dist/node_modules/vfile/lib/minproc.browser.js +7 -0
  450. package/dist/node_modules/vfile/lib/minurl.browser.js +41 -0
  451. package/dist/node_modules/vfile/lib/minurl.shared.js +7 -0
  452. package/dist/node_modules/vfile-message/lib/index.js +91 -0
  453. package/dist/providers/app-providers.js +13 -11
  454. package/dist/tailwind.config.js +3 -1
  455. package/dist/theme/tailwind-colors.js +2 -1
  456. package/package.json +39 -4
@@ -20,12 +20,52 @@ export type ChoiceCardGroupMultipleProps = ChoiceCardGroupBaseProps & {
20
20
  onValueChange?: (value: string[]) => void;
21
21
  };
22
22
  export type ChoiceCardGroupProps = ChoiceCardGroupSingleProps | ChoiceCardGroupMultipleProps;
23
+ export type ChoiceCardVariant = "default" | "featured" | "compare";
23
24
  export interface ChoiceCardProps extends React.HTMLAttributes<HTMLDivElement> {
24
25
  value: string;
25
26
  disabled?: boolean;
27
+ size?: "sm" | "md";
28
+ variant?: ChoiceCardVariant;
26
29
  }
30
+ export type ChoiceCardRibbonProps = React.HTMLAttributes<HTMLDivElement> & {
31
+ children?: React.ReactNode;
32
+ };
33
+ export type ChoiceCardFooterProps = React.HTMLAttributes<HTMLDivElement>;
34
+ export type ChoiceCardBackgroundProps = React.HTMLAttributes<HTMLDivElement>;
27
35
  export type ChoiceCardContentProps = React.HTMLAttributes<HTMLDivElement>;
28
36
  export interface ChoiceCardHeaderProps extends React.HTMLAttributes<HTMLDivElement> {
29
37
  children?: React.ReactNode;
30
38
  }
39
+ export type ChoiceCardStatusPlacement = "start" | "center";
40
+ export type ChoiceCardStatusProps = React.HTMLAttributes<HTMLDivElement> & {
41
+ asChild?: boolean;
42
+ placement?: ChoiceCardStatusPlacement;
43
+ icon?: React.ReactNode;
44
+ };
45
+ export type ChoiceCardIndexProps = React.HTMLAttributes<HTMLSpanElement>;
46
+ export type ChoiceCardStatsProps = React.HTMLAttributes<HTMLDivElement>;
47
+ export type ChoiceCardStatProps = React.HTMLAttributes<HTMLDivElement> & {
48
+ value: React.ReactNode;
49
+ label: React.ReactNode;
50
+ };
51
+ export type ChoiceCardPercentProps = React.HTMLAttributes<HTMLDivElement> & {
52
+ value: number;
53
+ onValueChange?: (value: number) => void;
54
+ min?: number;
55
+ max?: number;
56
+ step?: number;
57
+ suffix?: string;
58
+ increaseLabel?: string;
59
+ decreaseLabel?: string;
60
+ disabled?: boolean;
61
+ };
62
+ export type ChoiceCardCompareFit = "scroll" | "auto";
63
+ export type ChoiceCardCompareProps = React.HTMLAttributes<HTMLDivElement> & {
64
+ /** `scroll` keeps Figma 411px tiles. `auto` caps tiles at 420px and shrinks them to the row. */
65
+ fit?: ChoiceCardCompareFit;
66
+ };
67
+ export type ChoiceCardCompareLabelsProps = React.HTMLAttributes<HTMLDivElement>;
68
+ export type ChoiceCardCompareLabelProps = React.HTMLAttributes<HTMLDivElement>;
69
+ export type ChoiceCardCompareLeadProps = React.HTMLAttributes<HTMLDivElement>;
70
+ export type ChoiceCardCompareRowProps = React.HTMLAttributes<HTMLDivElement>;
31
71
  export {};
@@ -0,0 +1,7 @@
1
+ export declare const choiceCardVariants: (props?: ({
2
+ variant?: "default" | "compare" | "featured" | null | undefined;
3
+ size?: "sm" | "md" | null | undefined;
4
+ selected?: boolean | null | undefined;
5
+ mode?: "single" | "multiple" | null | undefined;
6
+ disabled?: boolean | null | undefined;
7
+ } & import('class-variance-authority/types').ClassProp) | undefined) => string;
@@ -0,0 +1,100 @@
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(
3
+ [
4
+ "group relative cursor-pointer select-none transition-[border-color,background-color,box-shadow] duration-150",
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"
6
+ ],
7
+ {
8
+ variants: {
9
+ variant: {
10
+ default: "flex flex-row items-start justify-between gap-2 overflow-hidden rounded-xl border border-solid bg-canvas-elevated",
11
+ featured: "flex h-[116px] w-[215px] shrink-0 flex-col overflow-hidden rounded-2xl border border-solid bg-canvas-elevated p-0",
12
+ compare: "flex flex-col items-stretch gap-4 overflow-visible rounded-xl border border-solid p-3"
13
+ },
14
+ size: {
15
+ md: "",
16
+ sm: ""
17
+ },
18
+ selected: {
19
+ true: "",
20
+ false: ""
21
+ },
22
+ mode: {
23
+ single: "",
24
+ multiple: ""
25
+ },
26
+ disabled: {
27
+ true: "cursor-not-allowed",
28
+ false: ""
29
+ }
30
+ },
31
+ compoundVariants: [
32
+ {
33
+ variant: "default",
34
+ size: "sm",
35
+ class: "rounded-lg"
36
+ },
37
+ {
38
+ variant: "default",
39
+ selected: !1,
40
+ disabled: !1,
41
+ class: r
42
+ },
43
+ {
44
+ variant: "default",
45
+ selected: !0,
46
+ disabled: !1,
47
+ class: a
48
+ },
49
+ {
50
+ variant: "default",
51
+ disabled: !0,
52
+ class: "border-stroke-subtle bg-canvas-muted p-3"
53
+ },
54
+ {
55
+ variant: "featured",
56
+ selected: !1,
57
+ disabled: !1,
58
+ class: "border border-black/5 border-b-[3px] border-b-black/5 hover:border-brand hover:border-b-[1px] hover:border-b-brand"
59
+ },
60
+ {
61
+ variant: "featured",
62
+ selected: !0,
63
+ disabled: !1,
64
+ class: "border border-brand border-b-[3px] border-b-brand"
65
+ },
66
+ {
67
+ variant: "featured",
68
+ disabled: !0,
69
+ class: "border border-stroke-subtle border-b-[3px] border-b-stroke-subtle bg-canvas-muted"
70
+ },
71
+ {
72
+ variant: "compare",
73
+ selected: !1,
74
+ disabled: !1,
75
+ class: "border-stroke-subtle bg-gradient-to-b from-canvas-elevated to-canvas-muted"
76
+ },
77
+ {
78
+ variant: "compare",
79
+ selected: !0,
80
+ disabled: !1,
81
+ class: "border-success bg-gradient-to-b from-canvas-elevated to-feedback-success-surface shadow-elevation-floating"
82
+ },
83
+ {
84
+ variant: "compare",
85
+ disabled: !0,
86
+ class: "border-stroke-subtle bg-canvas-muted"
87
+ }
88
+ ],
89
+ defaultVariants: {
90
+ variant: "default",
91
+ size: "md",
92
+ selected: !1,
93
+ mode: "single",
94
+ disabled: !1
95
+ }
96
+ }
97
+ );
98
+ export {
99
+ s as choiceCardVariants
100
+ };
@@ -1 +1,2 @@
1
- export { ChoiceCardGroup, ChoiceCard, ChoiceCardIndicator, ChoiceCardContent, ChoiceCardMedia, ChoiceCardTitle, ChoiceCardHeader, ChoiceCardDescription, useChoiceCardGroup, type ChoiceCardGroupProps, type ChoiceCardGroupSingleProps, type ChoiceCardGroupMultipleProps, type ChoiceCardProps, type ChoiceCardContentProps, type ChoiceCardHeaderProps, } from './choice-card';
1
+ export { ChoiceCardFeaturedBackdrop } from './choice-card-featured-backdrop';
2
+ export { ChoiceCardGroup, ChoiceCard, ChoiceCardIndicator, ChoiceCardBackground, ChoiceCardRibbon, ChoiceCardFooter, ChoiceCardContent, ChoiceCardMedia, ChoiceCardTitle, ChoiceCardHeader, ChoiceCardDescription, ChoiceCardStatus, ChoiceCardIndex, ChoiceCardStats, ChoiceCardStat, ChoiceCardCompare, ChoiceCardCompareLabels, ChoiceCardCompareLabel, ChoiceCardCompareLead, ChoiceCardCompareRow, ChoiceCardPercent, useChoiceCardGroup, useChoiceCardItem, type ChoiceCardGroupProps, type ChoiceCardGroupSingleProps, type ChoiceCardGroupMultipleProps, type ChoiceCardProps, type ChoiceCardContentProps, type ChoiceCardHeaderProps, type ChoiceCardRibbonProps, type ChoiceCardFooterProps, type ChoiceCardBackgroundProps, type ChoiceCardStatusProps, type ChoiceCardIndexProps, type ChoiceCardStatsProps, type ChoiceCardStatProps, type ChoiceCardCompareProps, type ChoiceCardCompareFit, type ChoiceCardCompareLabelsProps, type ChoiceCardCompareLabelProps, type ChoiceCardCompareLeadProps, type ChoiceCardCompareRowProps, type ChoiceCardPercentProps, type ChoiceCardVariant, } from './choice-card';
@@ -1,12 +1,29 @@
1
- import { ChoiceCard as o, ChoiceCardContent as r, ChoiceCardDescription as i, ChoiceCardGroup as a, ChoiceCardHeader as d, ChoiceCardIndicator as c, ChoiceCardMedia as h, ChoiceCardTitle as t, useChoiceCardGroup as n } from "./choice-card.js";
1
+ import { ChoiceCardFeaturedBackdrop as o } from "./choice-card-featured-backdrop.js";
2
+ import { ChoiceCard as a, ChoiceCardBackground as d, ChoiceCardCompare as i, ChoiceCardCompareLabel as c, ChoiceCardCompareLabels as h, ChoiceCardCompareLead as t, ChoiceCardCompareRow as p, ChoiceCardContent as m, ChoiceCardDescription as n, ChoiceCardFooter as u, ChoiceCardGroup as s, ChoiceCardHeader as b, ChoiceCardIndex as x, ChoiceCardIndicator as f, ChoiceCardMedia as l, ChoiceCardRibbon as I, ChoiceCardStat as L, ChoiceCardStats as S, ChoiceCardStatus as k, ChoiceCardTitle as B, useChoiceCardGroup as F, useChoiceCardItem as G } from "./choice-card.js";
3
+ import { ChoiceCardPercent as g } from "./choice-card-percent.js";
2
4
  export {
3
- o as ChoiceCard,
4
- r as ChoiceCardContent,
5
- i as ChoiceCardDescription,
6
- a as ChoiceCardGroup,
7
- d as ChoiceCardHeader,
8
- c as ChoiceCardIndicator,
9
- h as ChoiceCardMedia,
10
- t as ChoiceCardTitle,
11
- n as useChoiceCardGroup
5
+ a as ChoiceCard,
6
+ d as ChoiceCardBackground,
7
+ i as ChoiceCardCompare,
8
+ c as ChoiceCardCompareLabel,
9
+ h as ChoiceCardCompareLabels,
10
+ t as ChoiceCardCompareLead,
11
+ p as ChoiceCardCompareRow,
12
+ m as ChoiceCardContent,
13
+ n as ChoiceCardDescription,
14
+ o as ChoiceCardFeaturedBackdrop,
15
+ u as ChoiceCardFooter,
16
+ s as ChoiceCardGroup,
17
+ b as ChoiceCardHeader,
18
+ x as ChoiceCardIndex,
19
+ f as ChoiceCardIndicator,
20
+ l as ChoiceCardMedia,
21
+ g as ChoiceCardPercent,
22
+ I as ChoiceCardRibbon,
23
+ L as ChoiceCardStat,
24
+ S as ChoiceCardStats,
25
+ k as ChoiceCardStatus,
26
+ B as ChoiceCardTitle,
27
+ F as useChoiceCardGroup,
28
+ G as useChoiceCardItem
12
29
  };
@@ -3,9 +3,9 @@ import { useId as Z, useMemo as z, useState as k, useCallback as c, useRef as T,
3
3
  import * as E from "@radix-ui/react-popover";
4
4
  import { Cross as Le } from "impact-nova-icons";
5
5
  import { Tooltip as Ae, TooltipTrigger as Ne, TooltipContent as Se } from "../../feedback/tooltip/tooltip.js";
6
+ import { cn as O } from "../../../lib/utils.js";
6
7
  import { useImpactNovaI18n as Pe } from "../../../i18n/use-impact-nova-i18n.js";
7
8
  import { createComponent as Te } from "../../../lib/primitives/create-component.js";
8
- import { cn as O } from "../../../lib/utils.js";
9
9
  import { useFieldChrome as Ee } from "../../../lib/primitives/use-field-chrome.js";
10
10
  import { useOverlayNestedLayerDismiss as Oe, useOverlayPortalContainer as He } from "../../../lib/overlay/overlay-portal-context.js";
11
11
  import { OVERLAY_NESTED_FLOATING_INSTANT_HIDE_CLASS as Re } from "../../../lib/overlay/overlay-host.constants.js";
@@ -4,9 +4,9 @@ import { Slot as y } from "@radix-ui/react-slot";
4
4
  import { ThreeDots as H } from "impact-nova-icons";
5
5
  import { ClickMeArrow as L } from "../../ui/local-raster-icons/rasterIcons.js";
6
6
  import { Tooltip as g, TooltipTrigger as w, TooltipContent as B } from "../../feedback/tooltip/tooltip.js";
7
+ import { cn as n } from "../../../lib/utils.js";
7
8
  import { createComponent as s } from "../../../lib/primitives/create-component.js";
8
9
  import { createCompoundPart as W } from "../../../lib/primitives/create-compound.js";
9
- import { cn as n } from "../../../lib/utils.js";
10
10
  import { useImpactNovaI18n as x } from "../../../i18n/use-impact-nova-i18n.js";
11
11
  const C = h.createContext({}), N = (e, a) => {
12
12
  const r = e.split(/\s+/);
@@ -1,4 +1,4 @@
1
- import { HeaderProps, HeaderLogoProps, HeaderTitleProps, HeaderBadgeProps, HeaderBotButtonProps, NotificationIconButtonProps } from './header.types';
1
+ import { HeaderProps, HeaderLogoProps, HeaderTitleProps, HeaderBadgeProps, HeaderBotButtonProps, HeaderIrisButtonProps, NotificationIconButtonProps } from './header.types';
2
2
  import * as React from "react";
3
3
  declare const Header: React.ForwardRefExoticComponent<HeaderProps & React.RefAttributes<HTMLElement>>;
4
4
  declare const HeaderLeft: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
@@ -9,5 +9,6 @@ declare const HeaderSeparator: React.ForwardRefExoticComponent<Omit<Omit<import(
9
9
  declare const HeaderTitle: React.ForwardRefExoticComponent<HeaderTitleProps & React.RefAttributes<HTMLHeadingElement>>;
10
10
  declare const HeaderBadge: React.ForwardRefExoticComponent<HeaderBadgeProps & React.RefAttributes<HTMLDivElement>>;
11
11
  declare const HeaderBotButton: React.ForwardRefExoticComponent<HeaderBotButtonProps & React.RefAttributes<HTMLButtonElement>>;
12
+ declare const HeaderIrisButton: React.ForwardRefExoticComponent<HeaderIrisButtonProps & React.RefAttributes<HTMLButtonElement>>;
12
13
  declare const NotificationIconButton: React.ForwardRefExoticComponent<NotificationIconButtonProps & React.RefAttributes<HTMLButtonElement>>;
13
- export { Header, HeaderLeft, HeaderRight, HeaderLogo, HeaderSeparator, HeaderTitle, HeaderBadge, HeaderBotButton, NotificationIconButton, };
14
+ export { Header, HeaderLeft, HeaderRight, HeaderLogo, HeaderSeparator, HeaderTitle, HeaderBadge, HeaderBotButton, HeaderIrisButton, NotificationIconButton, };
@@ -1,84 +1,84 @@
1
- import { jsx as r, jsxs as c, Fragment as h } from "react/jsx-runtime";
1
+ import { jsx as a, jsxs as d, Fragment as p } from "react/jsx-runtime";
2
2
  import "react";
3
3
  import { cn as n } from "../../../lib/utils.js";
4
4
  import { createComponent as i } from "../../../lib/primitives/create-component.js";
5
- import { createCompoundPart as p } from "../../../lib/primitives/create-compound.js";
6
- import { Button as x } from "../../primitives/button/button.js";
7
- import { ButtonIconTooltip as v } from "../../feedback/tooltip/button-icon-tooltip.js";
8
- import { Badge as N } from "../../data-display/badge/badge.js";
9
- import { Separator as H } from "../../data-display/separator/separator.js";
10
- import { Alan as y, Bell as B } from "impact-nova-icons";
11
- import { useImpactNovaI18n as f } from "../../../i18n/use-impact-nova-i18n.js";
5
+ import { createCompoundPart as u } from "../../../lib/primitives/create-compound.js";
6
+ import { Button as v } from "../../primitives/button/button.js";
7
+ import { ButtonIconTooltip as N } from "../../feedback/tooltip/button-icon-tooltip.js";
8
+ import { Badge as H } from "../../data-display/badge/badge.js";
9
+ import { Separator as y } from "../../data-display/separator/separator.js";
10
+ import { Alan as f, Bell as B } from "impact-nova-icons";
11
+ import { useImpactNovaI18n as g } from "../../../i18n/use-impact-nova-i18n.js";
12
12
  const P = i(
13
13
  "Header",
14
- ({ className: a, children: e, ...t }, o) => /* @__PURE__ */ r(
14
+ ({ className: r, children: e, ...t }, o) => /* @__PURE__ */ a(
15
15
  "header",
16
16
  {
17
17
  ref: o,
18
18
  "data-component": "header",
19
19
  className: n(
20
20
  "sticky top-0 z-40 flex h-14 w-full items-center justify-between bg-canvas-elevated px-6 shadow-elevation-header",
21
- a
21
+ r
22
22
  ),
23
23
  ...t,
24
24
  children: e
25
25
  }
26
26
  )
27
- ), R = p("header", {
27
+ ), R = u("header", {
28
28
  part: "left",
29
29
  displayName: "HeaderLeft",
30
30
  className: "flex flex-row items-center justify-start"
31
- }), F = p("header", {
31
+ }), F = u("header", {
32
32
  part: "right",
33
33
  displayName: "HeaderRight",
34
34
  className: "flex flex-row items-center justify-start gap-5"
35
35
  }), q = i(
36
36
  "HeaderLogo",
37
- ({ className: a, children: e, href: t = "/", "aria-label": o, ...s }, d) => {
38
- const { t: l } = f();
39
- return /* @__PURE__ */ r(
37
+ ({ className: r, children: e, href: t = "/", "aria-label": o, ...s }, l) => {
38
+ const { t: c } = g();
39
+ return /* @__PURE__ */ a(
40
40
  "a",
41
41
  {
42
42
  href: t,
43
- ref: d,
44
- "aria-label": o ?? l("aria.home"),
43
+ ref: l,
44
+ "aria-label": o ?? c("aria.home"),
45
45
  className: n(
46
46
  "h-9 flex items-center justify-center cursor-pointer [&_img]:dark:brightness-0 [&_img]:dark:invert",
47
- a
47
+ r
48
48
  ),
49
49
  ...s,
50
50
  children: e
51
51
  }
52
52
  );
53
53
  }
54
- ), D = i("HeaderSeparator", ({ className: a, ...e }, t) => /* @__PURE__ */ r(
55
- H,
54
+ ), D = i("HeaderSeparator", ({ className: r, ...e }, t) => /* @__PURE__ */ a(
55
+ y,
56
56
  {
57
57
  ref: t,
58
58
  orientation: "vertical",
59
- className: n("h-6 mx-3", a),
59
+ className: n("h-6 mx-3", r),
60
60
  ...e
61
61
  }
62
62
  )), E = i(
63
63
  "HeaderTitle",
64
- ({ className: a, children: e, ...t }, o) => /* @__PURE__ */ r(
64
+ ({ className: r, children: e, ...t }, o) => /* @__PURE__ */ a(
65
65
  "h1",
66
66
  {
67
67
  ref: o,
68
- className: n("text-base font-extrabold leading-6 text-content", a),
68
+ className: n("text-base font-extrabold leading-6 text-content", r),
69
69
  ...t,
70
70
  children: e
71
71
  }
72
72
  )
73
73
  ), G = i(
74
74
  "HeaderBadge",
75
- ({ className: a, children: e, style: t, ...o }, s) => /* @__PURE__ */ r(
76
- N,
75
+ ({ className: r, children: e, style: t, ...o }, s) => /* @__PURE__ */ a(
76
+ H,
77
77
  {
78
78
  ref: s,
79
79
  size: "sm",
80
80
  shape: "circle",
81
- className: n("border-none header-badge-gradient text-brand-foreground", a),
81
+ className: n("border-none header-badge-gradient text-brand-foreground", r),
82
82
  style: t,
83
83
  ...o,
84
84
  children: e
@@ -86,7 +86,7 @@ const P = i(
86
86
  )
87
87
  ), J = i(
88
88
  "HeaderBotButton",
89
- ({ className: a, children: e, ...t }, o) => /* @__PURE__ */ r(
89
+ ({ className: r, children: e, ...t }, o) => /* @__PURE__ */ a(
90
90
  "button",
91
91
  {
92
92
  ref: o,
@@ -95,55 +95,74 @@ const P = i(
95
95
  "relative flex items-center justify-center w-[106px] h-[34px] gap-[7px] px-[11px] py-0 rounded-lg cursor-pointer border-0 outline-none",
96
96
  "header-bot-button-gradient",
97
97
  "animate-header-bot-gradient hover:animate-header-bot-gradient-fast motion-reduce:animate-none",
98
- a
98
+ r
99
99
  ),
100
100
  ...t,
101
- children: e || /* @__PURE__ */ c(h, { children: [
102
- /* @__PURE__ */ r(y, { size: 20, className: "text-brand-foreground" }),
103
- /* @__PURE__ */ r("span", { className: "text-sm font-semibold leading-[20px] text-brand-foreground whitespace-nowrap", children: "Ask Alan" })
101
+ children: e || /* @__PURE__ */ d(p, { children: [
102
+ /* @__PURE__ */ a(f, { size: 20, className: "text-brand-foreground" }),
103
+ /* @__PURE__ */ a("span", { className: "text-sm font-semibold leading-[20px] text-brand-foreground whitespace-nowrap", children: "Ask Alan" })
104
104
  ] })
105
105
  }
106
106
  )
107
107
  ), K = i(
108
+ "HeaderIrisButton",
109
+ ({ className: r, children: e, ...t }, o) => /* @__PURE__ */ a(
110
+ "button",
111
+ {
112
+ ref: o,
113
+ type: "button",
114
+ className: n(
115
+ "relative flex items-center justify-center h-8 gap-1 px-3 py-1.5 rounded-md cursor-pointer outline-none",
116
+ "header-iris-button-gradient",
117
+ r
118
+ ),
119
+ ...t,
120
+ children: e || /* @__PURE__ */ d(p, { children: [
121
+ /* @__PURE__ */ a(f, { size: 20, className: "text-brand-foreground" }),
122
+ /* @__PURE__ */ a("span", { className: "text-sm font-medium leading-5 text-brand-foreground whitespace-nowrap", children: "Ask Iris" })
123
+ ] })
124
+ }
125
+ )
126
+ ), M = i(
108
127
  "NotificationIconButton",
109
128
  ({
110
- className: a,
129
+ className: r,
111
130
  showIndicator: e,
112
131
  indicatorVariant: t = "unread",
113
132
  tooltipSide: o = "top",
114
133
  tooltipKeybinding: s,
115
- ...d
116
- }, l) => {
117
- const { t: u } = f(), g = t === "stale", m = u("notificationPanel.title"), b = /* @__PURE__ */ c(
118
- x,
134
+ ...l
135
+ }, c) => {
136
+ const { t: h } = g(), b = t === "stale", m = h("notificationPanel.title"), x = /* @__PURE__ */ d(
137
+ v,
119
138
  {
120
139
  variant: "ghost",
121
140
  size: "icon",
122
- ref: l,
141
+ ref: c,
123
142
  "aria-label": m,
124
143
  "data-indicator": e ? "" : void 0,
125
144
  "data-indicator-variant": e ? t : void 0,
126
145
  className: n(
127
146
  "relative text-content-header-notification [&_svg]:size-6 hover:text-content",
128
- a
147
+ r
129
148
  ),
130
- ...d,
149
+ ...l,
131
150
  children: [
132
- /* @__PURE__ */ r(B, { size: 24 }),
133
- e && (g ? /* @__PURE__ */ r("div", { className: "absolute top-1.5 right-1.5 size-2 pointer-events-none z-10 rounded-full bg-content-tertiary" }) : /* @__PURE__ */ c("div", { className: "absolute top-1.5 right-1.5 size-2.5 pointer-events-none z-10", children: [
134
- /* @__PURE__ */ r("div", { className: "absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 size-2.5 rounded-full bg-feedback-error-surface animate-notification-waves motion-reduce:animate-none" }),
135
- /* @__PURE__ */ r("div", { className: "absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 size-2 rounded-full bg-destructive" })
151
+ /* @__PURE__ */ a(B, { size: 24 }),
152
+ e && (b ? /* @__PURE__ */ a("div", { className: "absolute top-1.5 right-1.5 size-2 pointer-events-none z-10 rounded-full bg-content-tertiary" }) : /* @__PURE__ */ d("div", { className: "absolute top-1.5 right-1.5 size-2.5 pointer-events-none z-10", children: [
153
+ /* @__PURE__ */ a("div", { className: "absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 size-2.5 rounded-full bg-feedback-error-surface animate-notification-waves motion-reduce:animate-none" }),
154
+ /* @__PURE__ */ a("div", { className: "absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 size-2 rounded-full bg-destructive" })
136
155
  ] }))
137
156
  ]
138
157
  }
139
158
  );
140
- return /* @__PURE__ */ r(
141
- v,
159
+ return /* @__PURE__ */ a(
160
+ N,
142
161
  {
143
162
  label: m,
144
163
  side: o,
145
164
  keybinding: s,
146
- children: b
165
+ children: x
147
166
  }
148
167
  );
149
168
  }
@@ -152,10 +171,11 @@ export {
152
171
  P as Header,
153
172
  G as HeaderBadge,
154
173
  J as HeaderBotButton,
174
+ K as HeaderIrisButton,
155
175
  R as HeaderLeft,
156
176
  q as HeaderLogo,
157
177
  F as HeaderRight,
158
178
  D as HeaderSeparator,
159
179
  E as HeaderTitle,
160
- K as NotificationIconButton
180
+ M as NotificationIconButton
161
181
  };
@@ -11,6 +11,7 @@ export type HeaderSeparatorProps = React.ComponentPropsWithoutRef<typeof Separat
11
11
  export type HeaderTitleProps = React.HTMLAttributes<HTMLHeadingElement>;
12
12
  export type HeaderBadgeProps = Omit<BadgeProps, "size" | "shape">;
13
13
  export type HeaderBotButtonProps = React.ButtonHTMLAttributes<HTMLButtonElement>;
14
+ export type HeaderIrisButtonProps = React.ButtonHTMLAttributes<HTMLButtonElement>;
14
15
  export type NotificationIndicatorVariant = "unread" | "stale";
15
16
  export interface NotificationIconButtonProps extends Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "children"> {
16
17
  showIndicator?: boolean;
@@ -0,0 +1,3 @@
1
+ import * as React from "react";
2
+ /** Figma 7717 — system cursor hidden; vector pointer + primary comment bubble follow the pointer. */
3
+ export declare function IrisAgentCursor(): React.ReactPortal | null;
@@ -0,0 +1,89 @@
1
+ import { jsxs as v, jsx as s } from "react/jsx-runtime";
2
+ import * as o from "react";
3
+ import { createPortal as h } from "react-dom";
4
+ import { useOverlayPortalContainer as g } from "../../../lib/overlay/overlay-portal-context.js";
5
+ import { useIrisControl as w } from "./iris-control-context.js";
6
+ function x() {
7
+ return /* @__PURE__ */ s(
8
+ "svg",
9
+ {
10
+ width: "17",
11
+ height: "21",
12
+ viewBox: "0 0 17 21",
13
+ fill: "none",
14
+ xmlns: "http://www.w3.org/2000/svg",
15
+ className: "iris-agent-cursor__pointer block shrink-0",
16
+ "aria-hidden": !0,
17
+ children: /* @__PURE__ */ s(
18
+ "path",
19
+ {
20
+ d: "M1 1V16.8L4.8 13.2L7.8 19.2L9.6 18L6.6 11.8H14.2L1 1Z",
21
+ fill: "var(--color-foreground-title)",
22
+ stroke: "var(--color-canvas)",
23
+ strokeWidth: "1.25",
24
+ strokeLinejoin: "round"
25
+ }
26
+ )
27
+ }
28
+ );
29
+ }
30
+ function R() {
31
+ const { showCursor: i, cursorLabel: c } = w(), a = g(), u = o.useRef(null), l = o.useRef({ x: 0, y: 0 }), e = o.useRef(0);
32
+ if (o.useEffect(() => {
33
+ if (!i)
34
+ return;
35
+ const p = () => {
36
+ const r = u.current;
37
+ if (!r)
38
+ return;
39
+ const { x: f, y: m } = l.current;
40
+ r.style.transform = `translate3d(${f}px, ${m}px, 0)`;
41
+ }, t = (r) => {
42
+ r.pointerType !== "touch" && (l.current = { x: r.clientX, y: r.clientY }, !e.current && (e.current = requestAnimationFrame(() => {
43
+ e.current = 0, p();
44
+ })));
45
+ }, n = a?.ownerDocument ?? document;
46
+ return n.addEventListener("pointermove", t, {
47
+ capture: !0,
48
+ passive: !0
49
+ }), n.addEventListener("pointerdown", t, {
50
+ capture: !0,
51
+ passive: !0
52
+ }), () => {
53
+ n.removeEventListener("pointermove", t, {
54
+ capture: !0
55
+ }), n.removeEventListener("pointerdown", t, {
56
+ capture: !0
57
+ }), e.current && cancelAnimationFrame(e.current);
58
+ };
59
+ }, [a, i]), !i || !c)
60
+ return null;
61
+ const d = a ?? document.body;
62
+ return h(
63
+ /* @__PURE__ */ v(
64
+ "div",
65
+ {
66
+ ref: u,
67
+ className: "iris-agent-cursor pointer-events-none fixed left-0 top-0 z-[60]",
68
+ "data-component": "iris-agent-cursor",
69
+ style: { transform: "translate3d(0, 0, 0)" },
70
+ "aria-hidden": !0,
71
+ children: [
72
+ /* @__PURE__ */ s(x, {}),
73
+ /* @__PURE__ */ s(
74
+ "p",
75
+ {
76
+ className: "iris-agent-cursor__bubble",
77
+ "data-component": "iris-agent-cursor-label",
78
+ children: c
79
+ }
80
+ )
81
+ ]
82
+ }
83
+ ),
84
+ d
85
+ );
86
+ }
87
+ export {
88
+ R as IrisAgentCursor
89
+ };
@@ -0,0 +1,5 @@
1
+ /** Figma 16×16 AI sparkle — gradient fill + stroke. */
2
+ export declare const IrisAlanGradientIcon: ({ size, className, }: {
3
+ size: number;
4
+ className?: string;
5
+ }) => import("react/jsx-runtime").JSX.Element;