impact-nova 2.6.3 → 3.0.0-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (254) hide show
  1. package/dist/components/data/ag-grid-react/ag-grid-cell-components.d.ts +9 -0
  2. package/dist/components/data/ag-grid-react/ag-grid-list.d.ts +16 -0
  3. package/dist/components/data/ag-grid-react/ag-grid-list.js +23 -0
  4. package/dist/components/data/ag-grid-react/ag-grid.types.d.ts +7 -0
  5. package/dist/components/data/ag-grid-react/cell-renderers/editors/list-select-cell-editor.d.ts +14 -0
  6. package/dist/components/data/ag-grid-react/cell-renderers/editors/list-select-cell-editor.js +70 -0
  7. package/dist/components/data/ag-grid-react/cell-renderers/editors/select-cell-editor.d.ts +10 -5
  8. package/dist/components/data/ag-grid-react/cell-renderers/editors/select-cell-editor.js +73 -41
  9. package/dist/components/data/ag-grid-react/cell-renderers/index.d.ts +7 -0
  10. package/dist/components/data/ag-grid-react/cell-renderers/index.js +42 -36
  11. package/dist/components/data/ag-grid-react/cell-renderers/list-select-display-renderer.d.ts +19 -0
  12. package/dist/components/data/ag-grid-react/cell-renderers/list-select-display-renderer.js +89 -0
  13. package/dist/components/data/ag-grid-react/cell-renderers/select-ai-insight-affordance.d.ts +28 -0
  14. package/dist/components/data/ag-grid-react/cell-renderers/select-ai-insight-affordance.js +96 -0
  15. package/dist/components/data/ag-grid-react/cell-renderers/select-display-renderer.d.ts +30 -10
  16. package/dist/components/data/ag-grid-react/cell-renderers/select-display-renderer.js +72 -24
  17. package/dist/components/data/ag-grid-react/cell-renderers/style-description-display-renderer.d.ts +42 -0
  18. package/dist/components/data/ag-grid-react/cell-renderers/style-description-display-renderer.js +86 -0
  19. package/dist/components/data/ag-grid-react/index.d.ts +1 -1
  20. package/dist/components/data/ag-grid-react/index.js +162 -146
  21. package/dist/components/data/data-table/data-table.js +85 -82
  22. package/dist/components/data/data-table/data-table.types.d.ts +5 -0
  23. package/dist/components/data/expandable-list-item/expandable-list-item-attributes.js +2 -3
  24. package/dist/components/data/expandable-list-item/expandable-list-item-metrics.js +2 -3
  25. package/dist/components/data/expandable-list-item/sku-next-page-coordinator.d.ts +14 -0
  26. package/dist/components/data/expandable-list-item/sku-strip-lookahead.d.ts +26 -0
  27. package/dist/components/data/expandable-list-item/useServerSkuInfinitePages.d.ts +10 -0
  28. package/dist/components/data/expandable-list-item/useSkuStripVirtualizer.d.ts +30 -0
  29. package/dist/components/data/expandable-list-item/virtualized-responsive-grid.catalog.d.ts +81 -0
  30. package/dist/components/data/expandable-list-item/virtualized-responsive-grid.item-grid.d.ts +1 -0
  31. package/dist/components/data/expandable-list-item/virtualized-responsive-grid.product-card.d.ts +7 -0
  32. package/dist/components/data/expandable-list-item/virtualized-responsive-grid.sku-picker.d.ts +2 -0
  33. package/dist/components/data-display/chart/chart-heatmap-demos.d.ts +3 -0
  34. package/dist/components/data-display/chart/chart-heatmap-play.d.ts +9 -0
  35. package/dist/components/data-display/chart/chart.category-cluster-heatmap.stories-data.d.ts +22 -0
  36. package/dist/components/data-display/chart/chart.diverging-heatmap.stories-data.d.ts +43 -0
  37. package/dist/components/data-display/chart/chart.js +100 -93
  38. package/dist/components/data-display/chart/chart.types.d.ts +10 -0
  39. package/dist/components/data-display/chart/chart.utils.d.ts +14 -2
  40. package/dist/components/data-display/chart/chart.utils.js +132 -35
  41. package/dist/components/data-display/chart/index.js +15 -13
  42. package/dist/components/data-display/chart/resolve-highcharts-options.js +19 -14
  43. package/dist/components/data-display/globe-map/globe-map.d.ts +8 -0
  44. package/dist/components/data-display/globe-map/globe-map.js +161 -0
  45. package/dist/components/data-display/globe-map/globe-map.stories-data.d.ts +12 -0
  46. package/dist/components/data-display/globe-map/globe-map.types.d.ts +83 -0
  47. package/dist/components/data-display/globe-map/globe-map.utils.d.ts +115 -0
  48. package/dist/components/data-display/globe-map/globe-map.utils.js +259 -0
  49. package/dist/components/data-display/globe-map/globe-map.variants.d.ts +19 -0
  50. package/dist/components/data-display/globe-map/globe-map.variants.js +80 -0
  51. package/dist/components/data-display/globe-map/index.d.ts +2 -0
  52. package/dist/components/data-display/globe-map/index.js +10 -0
  53. package/dist/components/data-display/globe-map/internals/globe-countries-110m.json.d.ts +4 -0
  54. package/dist/components/data-display/globe-map/internals/globe-countries-110m.json.js +7 -0
  55. package/dist/components/data-display/globe-map/internals/globe-map-context.d.ts +25 -0
  56. package/dist/components/data-display/globe-map/internals/globe-map-context.js +19 -0
  57. package/dist/components/data-display/globe-map/internals/globe-map-legend.d.ts +2 -0
  58. package/dist/components/data-display/globe-map/internals/globe-map-legend.js +51 -0
  59. package/dist/components/data-display/globe-map/internals/globe-map-point-card-carousel.d.ts +6 -0
  60. package/dist/components/data-display/globe-map/internals/globe-map-point-card-carousel.js +119 -0
  61. package/dist/components/data-display/globe-map/internals/globe-map-point-card.d.ts +2 -0
  62. package/dist/components/data-display/globe-map/internals/globe-map-point-card.js +106 -0
  63. package/dist/components/data-display/globe-map/internals/globe-map-scene.d.ts +17 -0
  64. package/dist/components/data-display/globe-map/internals/globe-map-scene.js +218 -0
  65. package/dist/components/data-display/globe-map/internals/globe-map-tooltip.d.ts +2 -0
  66. package/dist/components/data-display/globe-map/internals/globe-map-tooltip.js +33 -0
  67. package/dist/components/data-display/globe-map/internals/use-globe-map-scene.d.ts +45 -0
  68. package/dist/components/data-display/globe-map/internals/use-globe-map-scene.js +270 -0
  69. package/dist/components/data-display/hex-tilemap/hex-tilemap.d.ts +9 -0
  70. package/dist/components/data-display/hex-tilemap/hex-tilemap.js +94 -0
  71. package/dist/components/data-display/hex-tilemap/hex-tilemap.stories-data.d.ts +7 -0
  72. package/dist/components/data-display/hex-tilemap/hex-tilemap.types.d.ts +43 -0
  73. package/dist/components/data-display/hex-tilemap/hex-tilemap.variants.d.ts +11 -0
  74. package/dist/components/data-display/hex-tilemap/hex-tilemap.variants.js +47 -0
  75. package/dist/components/data-display/hex-tilemap/index.d.ts +2 -0
  76. package/dist/components/data-display/hex-tilemap/index.js +12 -0
  77. package/dist/components/data-display/hex-tilemap/internals/hex-camera.d.ts +40 -0
  78. package/dist/components/data-display/hex-tilemap/internals/hex-camera.js +103 -0
  79. package/dist/components/data-display/hex-tilemap/internals/hex-country-lattices.d.ts +9 -0
  80. package/dist/components/data-display/hex-tilemap/internals/hex-country-lattices.js +1387 -0
  81. package/dist/components/data-display/hex-tilemap/internals/hex-geometry.d.ts +21 -0
  82. package/dist/components/data-display/hex-tilemap/internals/hex-geometry.js +82 -0
  83. package/dist/components/data-display/hex-tilemap/internals/hex-lattice.d.ts +18 -0
  84. package/dist/components/data-display/hex-tilemap/internals/hex-lattice.js +47 -0
  85. package/dist/components/data-display/hex-tilemap/internals/hex-layout.d.ts +10 -0
  86. package/dist/components/data-display/hex-tilemap/internals/hex-layout.js +35 -0
  87. package/dist/components/data-display/hex-tilemap/internals/hex-new-zealand-grid.d.ts +31 -0
  88. package/dist/components/data-display/hex-tilemap/internals/hex-new-zealand-grid.js +138 -0
  89. package/dist/components/data-display/hex-tilemap/internals/hex-regions.d.ts +6 -0
  90. package/dist/components/data-display/hex-tilemap/internals/hex-regions.js +18 -0
  91. package/dist/components/data-display/hex-tilemap/internals/hex-tilemap-context.d.ts +24 -0
  92. package/dist/components/data-display/hex-tilemap/internals/hex-tilemap-context.js +19 -0
  93. package/dist/components/data-display/hex-tilemap/internals/hex-tilemap-legend.d.ts +2 -0
  94. package/dist/components/data-display/hex-tilemap/internals/hex-tilemap-legend.js +51 -0
  95. package/dist/components/data-display/hex-tilemap/internals/hex-tilemap-tooltip.d.ts +2 -0
  96. package/dist/components/data-display/hex-tilemap/internals/hex-tilemap-tooltip.js +36 -0
  97. package/dist/components/data-display/hex-tilemap/internals/hex-tilemap-viewport.d.ts +3 -0
  98. package/dist/components/data-display/hex-tilemap/internals/hex-tilemap-viewport.js +147 -0
  99. package/dist/components/data-display/hex-tilemap/internals/hex-tilemap-zoom.d.ts +13 -0
  100. package/dist/components/data-display/hex-tilemap/internals/hex-tilemap-zoom.js +99 -0
  101. package/dist/components/data-display/hex-tilemap/internals/hex-world-grid.d.ts +8 -0
  102. package/dist/components/data-display/hex-tilemap/internals/use-hex-camera.d.ts +27 -0
  103. package/dist/components/data-display/hex-tilemap/internals/use-hex-camera.js +137 -0
  104. package/dist/components/data-display/notch-card/index.d.ts +2 -0
  105. package/dist/components/data-display/notch-card/index.js +6 -0
  106. package/dist/components/data-display/notch-card/notch-card.d.ts +7 -0
  107. package/dist/components/data-display/notch-card/notch-card.js +151 -0
  108. package/dist/components/data-display/notch-card/notch-card.path.d.ts +19 -0
  109. package/dist/components/data-display/notch-card/notch-card.path.js +118 -0
  110. package/dist/components/data-display/notch-card/notch-card.types.d.ts +15 -0
  111. package/dist/components/data-display/notch-card/notch-card.variants.d.ts +15 -0
  112. package/dist/components/data-display/notch-card/notch-card.variants.js +86 -0
  113. package/dist/components/feedback/hover-card/hover-card.d.ts +3 -1
  114. package/dist/components/feedback/hover-card/hover-card.js +28 -24
  115. package/dist/components/feedback/tooltip/overflow-tooltip.d.ts +1 -1
  116. package/dist/components/feedback/tooltip/overflow-tooltip.js +63 -57
  117. package/dist/components/feedback/tooltip/overflow-tooltip.types.d.ts +4 -0
  118. package/dist/components/feedback/tooltip/tab-tooltip-render.js +2 -3
  119. package/dist/components/flows/command-palette/shortcut-settings.js +10 -10
  120. package/dist/components/flows/filter-panel/filter-panel.js +4 -4
  121. package/dist/components/flows/filter-strip/index.d.ts +1 -0
  122. package/dist/components/flows/filter-strip/index.js +4 -2
  123. package/dist/components/flows/iris-chat/index.d.ts +10 -0
  124. package/dist/components/flows/iris-chat/index.js +55 -0
  125. package/dist/components/flows/iris-chat/iris-chat-artifact.d.ts +4 -0
  126. package/dist/components/flows/iris-chat/iris-chat-artifact.js +125 -0
  127. package/dist/components/flows/iris-chat/iris-chat-composer.d.ts +3 -0
  128. package/dist/components/flows/iris-chat/iris-chat-composer.js +297 -0
  129. package/dist/components/flows/iris-chat/iris-chat-context.d.ts +14 -0
  130. package/dist/components/flows/iris-chat/iris-chat-context.js +23 -0
  131. package/dist/components/flows/iris-chat/iris-chat-icons.d.ts +18 -0
  132. package/dist/components/flows/iris-chat/iris-chat-icons.js +176 -0
  133. package/dist/components/flows/iris-chat/iris-chat-markdown.d.ts +3 -0
  134. package/dist/components/flows/iris-chat/iris-chat-markdown.js +62 -0
  135. package/dist/components/flows/iris-chat/iris-chat-menu.d.ts +15 -0
  136. package/dist/components/flows/iris-chat/iris-chat-menu.js +259 -0
  137. package/dist/components/flows/iris-chat/iris-chat-prompt.d.ts +3 -0
  138. package/dist/components/flows/iris-chat/iris-chat-prompt.js +46 -0
  139. package/dist/components/flows/iris-chat/iris-chat-thinking.d.ts +12 -0
  140. package/dist/components/flows/iris-chat/iris-chat-thinking.js +202 -0
  141. package/dist/components/flows/iris-chat/iris-chat-thread.d.ts +37 -0
  142. package/dist/components/flows/iris-chat/iris-chat-thread.js +493 -0
  143. package/dist/components/flows/iris-chat/iris-chat.d.ts +43 -0
  144. package/dist/components/flows/iris-chat/iris-chat.js +336 -0
  145. package/dist/components/flows/iris-chat/iris-chat.types.d.ts +208 -0
  146. package/dist/components/flows/iris-chat/iris-chat.variants.d.ts +14 -0
  147. package/dist/components/flows/iris-chat/iris-chat.variants.js +78 -0
  148. package/dist/components/flows/iris-chat/read-iris-greeting-period.d.ts +4 -0
  149. package/dist/components/flows/iris-chat/read-iris-greeting-period.js +16 -0
  150. package/dist/components/flows/wizard/index.d.ts +2 -2
  151. package/dist/components/flows/wizard/index.js +17 -13
  152. package/dist/components/flows/wizard/wizard-context.d.ts +6 -1
  153. package/dist/components/flows/wizard/wizard-context.js +15 -7
  154. package/dist/components/flows/wizard/wizard.d.ts +22 -4
  155. package/dist/components/flows/wizard/wizard.js +278 -174
  156. package/dist/components/flows/wizard/wizard.types.d.ts +40 -0
  157. package/dist/components/forms/choice-card/assets/featured-backdrop-baked.webp.js +4 -0
  158. package/dist/components/forms/choice-card/assets/featured-noise.webp.js +4 -0
  159. package/dist/components/forms/choice-card/choice-card-featured-arcs.d.ts +4 -0
  160. package/dist/components/forms/choice-card/choice-card-featured-arcs.js +42 -0
  161. package/dist/components/forms/choice-card/choice-card-featured-backdrop.d.ts +4 -0
  162. package/dist/components/forms/choice-card/choice-card-featured-backdrop.js +45 -0
  163. package/dist/components/forms/choice-card/choice-card-indicator.variants.d.ts +8 -0
  164. package/dist/components/forms/choice-card/choice-card-indicator.variants.js +5 -0
  165. package/dist/components/forms/choice-card/choice-card-percent.d.ts +11 -0
  166. package/dist/components/forms/choice-card/choice-card-percent.js +80 -0
  167. package/dist/components/forms/choice-card/choice-card.d.ts +40 -3
  168. package/dist/components/forms/choice-card/choice-card.js +651 -170
  169. package/dist/components/forms/choice-card/choice-card.types.d.ts +40 -0
  170. package/dist/components/forms/choice-card/choice-card.variants.d.ts +7 -0
  171. package/dist/components/forms/choice-card/choice-card.variants.js +100 -0
  172. package/dist/components/forms/choice-card/index.d.ts +2 -1
  173. package/dist/components/forms/choice-card/index.js +27 -10
  174. package/dist/components/forms/select/components/SelectTriggerValue.js +2 -3
  175. package/dist/components/forms/select/components/Submenu.js +2 -3
  176. package/dist/components/layout/header/header.d.ts +3 -2
  177. package/dist/components/layout/header/header.js +67 -47
  178. package/dist/components/layout/header/header.types.d.ts +1 -0
  179. package/dist/components/primitives/iris/iris-agent-cursor.d.ts +3 -0
  180. package/dist/components/primitives/iris/iris-agent-cursor.js +89 -0
  181. package/dist/components/primitives/iris/iris-alan-gradient-icon.d.ts +5 -0
  182. package/dist/components/primitives/iris/iris-alan-gradient-icon.js +69 -0
  183. package/dist/components/primitives/iris/iris-control-context.d.ts +15 -0
  184. package/dist/components/primitives/iris/iris-control-context.js +44 -0
  185. package/dist/components/primitives/iris/iris-control-region.d.ts +10 -0
  186. package/dist/components/primitives/iris/iris-control-region.js +102 -0
  187. package/dist/components/primitives/iris/iris-control.types.d.ts +24 -0
  188. package/dist/components/primitives/iris/iris-control.variants.d.ts +4 -0
  189. package/dist/components/primitives/iris/iris-control.variants.js +20 -0
  190. package/dist/components/primitives/iris/iris.d.ts +24 -0
  191. package/dist/components/primitives/iris/iris.js +232 -0
  192. package/dist/components/primitives/iris/iris.types.d.ts +35 -0
  193. package/dist/components/primitives/iris/iris.variants.d.ts +30 -0
  194. package/dist/components/primitives/iris/iris.variants.js +120 -0
  195. package/dist/components/primitives/stepper/internals/pipeline-current-mark.d.ts +6 -0
  196. package/dist/components/primitives/stepper/internals/pipeline-current-mark.js +35 -0
  197. package/dist/components/primitives/stepper/internals/rail-status-dot.d.ts +13 -0
  198. package/dist/components/primitives/stepper/internals/rail-status-dot.js +70 -0
  199. package/dist/components/primitives/stepper/internals/step-hit-target.d.ts +15 -0
  200. package/dist/components/primitives/stepper/internals/step-hit-target.js +51 -0
  201. package/dist/components/primitives/stepper/internals/step-model.d.ts +3 -0
  202. package/dist/components/primitives/stepper/internals/step-model.js +10 -0
  203. package/dist/components/primitives/stepper/internals/stepper-compact.d.ts +5 -0
  204. package/dist/components/primitives/stepper/internals/stepper-compact.js +68 -0
  205. package/dist/components/primitives/stepper/internals/stepper-pipeline.d.ts +7 -0
  206. package/dist/components/primitives/stepper/internals/stepper-pipeline.js +87 -0
  207. package/dist/components/primitives/stepper/internals/stepper-rail.d.ts +5 -0
  208. package/dist/components/primitives/stepper/internals/stepper-rail.js +105 -0
  209. package/dist/components/primitives/stepper/internals/stepper-summary.d.ts +5 -0
  210. package/dist/components/primitives/stepper/internals/stepper-summary.js +103 -0
  211. package/dist/components/primitives/stepper/internals/stepper-track.d.ts +8 -0
  212. package/dist/components/primitives/stepper/internals/stepper-track.js +170 -0
  213. package/dist/components/primitives/stepper/stepper.d.ts +1 -0
  214. package/dist/components/primitives/stepper/stepper.js +134 -52
  215. package/dist/components/primitives/stepper/stepper.types.d.ts +17 -0
  216. package/dist/components/primitives/stepper/stepper.variants.d.ts +26 -0
  217. package/dist/components/primitives/stepper/stepper.variants.js +165 -5
  218. package/dist/components/primitives/tabs/tabs.d.ts +4 -1
  219. package/dist/components/primitives/tabs/tabs.js +131 -59
  220. package/dist/components/primitives/tabs/tabs.types.d.ts +5 -1
  221. package/dist/i18n/defaultMessages.d.ts +100 -0
  222. package/dist/i18n/defaultMessages.js +118 -21
  223. package/dist/i18n/index.d.ts +1 -1
  224. package/dist/i18n/locales/de.js +99 -2
  225. package/dist/i18n/locales/es.js +99 -2
  226. package/dist/i18n/locales/hi.js +99 -2
  227. package/dist/i18n/locales/kn.js +99 -2
  228. package/dist/impact-nova-components.css +972 -2
  229. package/dist/impact-nova-tokens.scss +109 -1
  230. package/dist/impact-nova.css +1 -1
  231. package/dist/index.d.ts +1 -1
  232. package/dist/index.js +585 -551
  233. package/dist/lib/virtualized/directional-range-extractor.d.ts +26 -0
  234. package/dist/lib/virtualized/directional-range-extractor.js +39 -0
  235. package/dist/lib/virtualized/index.d.ts +3 -0
  236. package/dist/lib/virtualized/index.js +35 -27
  237. package/dist/lib/virtualized/scroll-seek.d.ts +61 -0
  238. package/dist/lib/virtualized/scroll-seek.js +61 -0
  239. package/dist/lib/virtualized/usePaintedRangeVirtualizer.d.ts +19 -0
  240. package/dist/lib/virtualized/usePaintedRangeVirtualizer.js +30 -0
  241. package/dist/lib/virtualized/useResponsiveColumnCount.d.ts +35 -0
  242. package/dist/lib/virtualized/useResponsiveColumnCount.js +51 -0
  243. package/dist/lib/virtualized/useScrollSeekPaintedRange.d.ts +13 -0
  244. package/dist/lib/virtualized/useScrollSeekPaintedRange.js +45 -0
  245. package/dist/lib/virtualized/useVirtualizedList.d.ts +7 -0
  246. package/dist/lib/virtualized/useVirtualizedList.js +89 -87
  247. package/dist/lib/virtualized/useVirtualizedRows.d.ts +9 -2
  248. package/dist/lib/virtualized/useVirtualizedRows.js +15 -13
  249. package/dist/lib/virtualized/virtualized.types.d.ts +2 -0
  250. package/dist/llms/rules/installation.js +1 -1
  251. package/dist/llms/rules/requirements.js +1 -1
  252. package/dist/tailwind.config.js +3 -1
  253. package/dist/theme/tailwind-colors.js +2 -1
  254. package/package.json +39 -4
@@ -0,0 +1,4 @@
1
+ /** Figma Group 2055248352 — bottom-right rings (7624:158838). */
2
+ export declare function ChoiceCardFeaturedArcs({ className }: {
3
+ className?: string;
4
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,42 @@
1
+ import { jsx as e, jsxs as r } from "react/jsx-runtime";
2
+ function i({ className: c }) {
3
+ return /* @__PURE__ */ e(
4
+ "svg",
5
+ {
6
+ width: 171,
7
+ height: 164,
8
+ viewBox: "0 0 175 164",
9
+ fill: "none",
10
+ xmlns: "http://www.w3.org/2000/svg",
11
+ className: c,
12
+ "aria-hidden": "true",
13
+ children: /* @__PURE__ */ r("g", { className: "opacity-30 mix-blend-plus-lighter", children: [
14
+ /* @__PURE__ */ e(
15
+ "path",
16
+ {
17
+ opacity: 0.1,
18
+ d: "M136.5 93.5C136.5 124.98 110.98 150.5 79.5 150.5C48.0198 150.5 22.5 124.98 22.5 93.5C22.5 62.0198 48.0198 36.5 79.5 36.5C110.98 36.5 136.5 62.0198 136.5 93.5Z",
19
+ stroke: "white"
20
+ }
21
+ ),
22
+ /* @__PURE__ */ r("g", { opacity: 0.1, children: [
23
+ /* @__PURE__ */ e("circle", { cx: 98, cy: 88, r: 50, fill: "var(--color-border-accent-muted)" }),
24
+ /* @__PURE__ */ e("circle", { cx: 98, cy: 88, r: 49.5, stroke: "white" })
25
+ ] }),
26
+ /* @__PURE__ */ e(
27
+ "path",
28
+ {
29
+ opacity: 0.1,
30
+ d: "M99.5 114C99.5 141.338 77.3381 163.5 50 163.5C22.6619 163.5 0.5 141.338 0.5 114C0.5 86.6619 22.6619 64.5 50 64.5C77.3381 64.5 99.5 86.6619 99.5 114Z",
31
+ fill: "var(--color-border-accent-muted)",
32
+ stroke: "white"
33
+ }
34
+ ),
35
+ /* @__PURE__ */ e("circle", { cx: 117, cy: 54, r: 53.5, opacity: 0.1, stroke: "white" })
36
+ ] })
37
+ }
38
+ );
39
+ }
40
+ export {
41
+ i as ChoiceCardFeaturedArcs
42
+ };
@@ -0,0 +1,4 @@
1
+ /** Figma 7624-158832: baked ellipse glow, noise (50%), SVG arcs bottom-right. */
2
+ export declare function ChoiceCardFeaturedBackdrop({ className }: {
3
+ className?: string;
4
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,45 @@
1
+ import { jsxs as r, jsx as e } from "react/jsx-runtime";
2
+ import { cn as o } from "../../../lib/utils.js";
3
+ import { ChoiceCardFeaturedArcs as t } from "./choice-card-featured-arcs.js";
4
+ import s from "./assets/featured-backdrop-baked.webp.js";
5
+ import l from "./assets/featured-noise.webp.js";
6
+ function p({ className: a }) {
7
+ return /* @__PURE__ */ r(
8
+ "div",
9
+ {
10
+ className: o("pointer-events-none absolute inset-0 overflow-hidden bg-canvas-elevated", a),
11
+ "data-slot": "choice-card-featured-backdrop",
12
+ "aria-hidden": "true",
13
+ children: [
14
+ /* @__PURE__ */ e(
15
+ "img",
16
+ {
17
+ alt: "",
18
+ src: s,
19
+ draggable: !1,
20
+ className: "absolute inset-0 size-full max-w-none object-cover"
21
+ }
22
+ ),
23
+ /* @__PURE__ */ e(
24
+ "img",
25
+ {
26
+ alt: "",
27
+ src: l,
28
+ draggable: !1,
29
+ className: "absolute inset-0 size-full max-w-none object-cover opacity-50"
30
+ }
31
+ ),
32
+ /* @__PURE__ */ e(
33
+ "div",
34
+ {
35
+ className: "absolute inset-0 bg-[radial-gradient(ellipse_95%_85%_at_100%_100%,color-mix(in_srgb,var(--color-border-accent-muted)_50%,transparent)_0%,transparent_62%)]"
36
+ }
37
+ ),
38
+ /* @__PURE__ */ e("div", { className: "absolute -bottom-[85px] -right-[79px] h-[164px] w-[171px]", children: /* @__PURE__ */ e(t, { className: "block size-full" }) })
39
+ ]
40
+ }
41
+ );
42
+ }
43
+ export {
44
+ p as ChoiceCardFeaturedBackdrop
45
+ };
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Visual shells aligned with `RadioGroupItem` and `Checkbox` field controls.
3
+ * @see radio-group.tsx (RadioGroupItem)
4
+ * @see checkbox.tsx (CheckboxPrimitive.Root)
5
+ */
6
+ /** Figma radio: 16px shell, 3px inset, 10px dot — ring inset so the dot is not squashed. */
7
+ export declare const choiceCardRadioIndicatorClassName = "relative box-border size-4 shrink-0 flex-none rounded-full bg-canvas-elevated ring-1 ring-inset ring-stroke-field text-brand";
8
+ export declare const choiceCardCheckboxIndicatorClassName = "pointer-events-none flex h-4 w-4 shrink-0 items-center justify-center rounded-[4px] border border-stroke-field bg-canvas-elevated text-brand";
@@ -0,0 +1,5 @@
1
+ const e = "relative box-border size-4 shrink-0 flex-none rounded-full bg-canvas-elevated ring-1 ring-inset ring-stroke-field text-brand", r = "pointer-events-none flex h-4 w-4 shrink-0 items-center justify-center rounded-[4px] border border-stroke-field bg-canvas-elevated text-brand";
2
+ export {
3
+ r as choiceCardCheckboxIndicatorClassName,
4
+ e as choiceCardRadioIndicatorClassName
5
+ };
@@ -0,0 +1,11 @@
1
+ export declare const ChoiceCardPercent: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLDivElement> & {
2
+ value: number;
3
+ onValueChange?: (value: number) => void;
4
+ min?: number;
5
+ max?: number;
6
+ step?: number;
7
+ suffix?: string;
8
+ increaseLabel?: string;
9
+ decreaseLabel?: string;
10
+ disabled?: boolean;
11
+ } & import('react').RefAttributes<HTMLDivElement>>;
@@ -0,0 +1,80 @@
1
+ import { jsxs as m, jsx as n } from "react/jsx-runtime";
2
+ import { ArrowUp as k, ArrowDown as v } from "impact-nova-icons";
3
+ import { createComponent as z } from "../../../lib/primitives/create-component.js";
4
+ import { cn as I } from "../../../lib/utils.js";
5
+ import { useImpactNovaI18n as N } from "../../../i18n/use-impact-nova-i18n.js";
6
+ function g(a, r, i) {
7
+ return Math.min(i, Math.max(r, a));
8
+ }
9
+ const U = z(
10
+ "ChoiceCardPercent",
11
+ ({
12
+ className: a,
13
+ value: r,
14
+ onValueChange: i,
15
+ min: s = 0,
16
+ max: l = 100,
17
+ step: o = 1,
18
+ suffix: p = "%",
19
+ increaseLabel: f,
20
+ decreaseLabel: y,
21
+ disabled: t,
22
+ onKeyDown: u,
23
+ ...h
24
+ }, b) => {
25
+ const { t: d } = N(), x = f ?? d("aria.increase"), w = y ?? d("aria.decrease"), C = !t && r > s, D = !t && r < l;
26
+ function c(e) {
27
+ t || i?.(g(r + e, s, l));
28
+ }
29
+ function j(e) {
30
+ e.key === "ArrowUp" ? (e.preventDefault(), c(o)) : e.key === "ArrowDown" && (e.preventDefault(), c(-o)), u?.(e);
31
+ }
32
+ return /* @__PURE__ */ m(
33
+ "div",
34
+ {
35
+ ref: b,
36
+ ...h,
37
+ "data-slot": "choice-card-percent",
38
+ role: "group",
39
+ "aria-disabled": t || void 0,
40
+ tabIndex: t ? void 0 : 0,
41
+ onKeyDown: j,
42
+ className: I(
43
+ "relative z-[1] flex h-8 w-[111px] items-center justify-between rounded-lg border border-stroke bg-canvas-elevated py-1 pl-3 pr-1 text-sm text-content",
44
+ t && "opacity-50",
45
+ a
46
+ ),
47
+ children: [
48
+ /* @__PURE__ */ n("span", { children: `${r}${p}` }),
49
+ /* @__PURE__ */ m("div", { className: "flex flex-col text-content-icon", children: [
50
+ /* @__PURE__ */ n(
51
+ "button",
52
+ {
53
+ type: "button",
54
+ "aria-label": x,
55
+ disabled: !D,
56
+ className: "inline-flex size-6 items-center justify-center -my-1 disabled:opacity-40",
57
+ onClick: () => c(o),
58
+ children: /* @__PURE__ */ n(k, { size: 12 })
59
+ }
60
+ ),
61
+ /* @__PURE__ */ n(
62
+ "button",
63
+ {
64
+ type: "button",
65
+ "aria-label": w,
66
+ disabled: !C,
67
+ className: "inline-flex size-6 items-center justify-center -my-1 disabled:opacity-40",
68
+ onClick: () => c(-o),
69
+ children: /* @__PURE__ */ n(v, { size: 12 })
70
+ }
71
+ )
72
+ ] })
73
+ ]
74
+ }
75
+ );
76
+ }
77
+ );
78
+ export {
79
+ U as ChoiceCardPercent
80
+ };
@@ -1,20 +1,57 @@
1
- import { ChoiceCardGroupProps, ChoiceCardProps, ChoiceCardContentProps, ChoiceCardHeaderProps } from './choice-card.types';
1
+ import { ChoiceCardGroupProps, ChoiceCardProps, ChoiceCardContentProps, ChoiceCardHeaderProps, ChoiceCardFooterProps, ChoiceCardBackgroundProps, ChoiceCardIndexProps, ChoiceCardStatsProps, ChoiceCardCompareLabelsProps, ChoiceCardCompareLabelProps, ChoiceCardCompareLeadProps, ChoiceCardCompareRowProps, ChoiceCardVariant } from './choice-card.types';
2
2
  import * as React from "react";
3
- export type { ChoiceCardGroupProps, ChoiceCardGroupMultipleProps, ChoiceCardGroupSingleProps, ChoiceCardProps, ChoiceCardContentProps, ChoiceCardHeaderProps, } from './choice-card.types';
3
+ export type { ChoiceCardGroupProps, ChoiceCardGroupMultipleProps, ChoiceCardGroupSingleProps, ChoiceCardProps, ChoiceCardContentProps, ChoiceCardHeaderProps, ChoiceCardRibbonProps, ChoiceCardFooterProps, ChoiceCardBackgroundProps, ChoiceCardStatusProps, ChoiceCardIndexProps, ChoiceCardStatsProps, ChoiceCardStatProps, ChoiceCardCompareProps, ChoiceCardCompareFit, ChoiceCardCompareLabelsProps, ChoiceCardCompareLabelProps, ChoiceCardCompareLeadProps, ChoiceCardCompareRowProps, ChoiceCardPercentProps, ChoiceCardVariant, } from './choice-card.types';
4
+ export { ChoiceCardPercent } from './choice-card-percent';
5
+ interface ChoiceCardItemContextValue {
6
+ value: string;
7
+ selected: boolean;
8
+ disabled?: boolean;
9
+ type: "single" | "multiple";
10
+ size: "sm" | "md";
11
+ variant: ChoiceCardVariant;
12
+ /** The card already has an aria-label, so the title must not schedule another render. */
13
+ labelIsExplicit: boolean;
14
+ setAccessibleName: (name: string) => void;
15
+ }
4
16
  export declare function useChoiceCardGroup(): {
5
17
  value: string | string[] | undefined;
6
18
  type: "single" | "multiple";
7
19
  setValue: (value: string | string[]) => void;
8
20
  isSelected: (itemValue: string) => boolean;
9
21
  };
22
+ export declare function useChoiceCardItem(): ChoiceCardItemContextValue;
10
23
  declare const ChoiceCardGroup: React.FC<ChoiceCardGroupProps>;
11
24
  declare const ChoiceCard: React.ForwardRefExoticComponent<ChoiceCardProps & React.RefAttributes<HTMLDivElement>>;
12
25
  declare const ChoiceCardIndicator: React.ForwardRefExoticComponent<{
13
26
  className?: string;
27
+ } & React.RefAttributes<HTMLSpanElement>>;
28
+ declare const ChoiceCardBackground: React.ForwardRefExoticComponent<ChoiceCardBackgroundProps & React.RefAttributes<HTMLDivElement>>;
29
+ declare const ChoiceCardRibbon: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & {
30
+ children?: React.ReactNode;
14
31
  } & React.RefAttributes<HTMLDivElement>>;
32
+ declare const ChoiceCardFooter: React.ForwardRefExoticComponent<ChoiceCardFooterProps & React.RefAttributes<HTMLDivElement>>;
15
33
  declare const ChoiceCardContent: React.ForwardRefExoticComponent<ChoiceCardContentProps & React.RefAttributes<HTMLDivElement>>;
16
34
  declare const ChoiceCardMedia: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
17
35
  declare const ChoiceCardTitle: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLHeadingElement> & React.RefAttributes<HTMLHeadingElement>>;
18
36
  declare const ChoiceCardHeader: React.ForwardRefExoticComponent<ChoiceCardHeaderProps & React.RefAttributes<HTMLDivElement>>;
19
37
  declare const ChoiceCardDescription: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLParagraphElement> & React.RefAttributes<HTMLParagraphElement>>;
20
- export { ChoiceCardGroup, ChoiceCard, ChoiceCardIndicator, ChoiceCardContent, ChoiceCardMedia, ChoiceCardTitle, ChoiceCardHeader, ChoiceCardDescription, };
38
+ declare const ChoiceCardStatus: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & {
39
+ asChild?: boolean;
40
+ placement?: import('./choice-card.types').ChoiceCardStatusPlacement;
41
+ icon?: React.ReactNode;
42
+ } & React.RefAttributes<HTMLDivElement>>;
43
+ declare const ChoiceCardIndex: React.ForwardRefExoticComponent<ChoiceCardIndexProps & React.RefAttributes<HTMLSpanElement>>;
44
+ declare const ChoiceCardStats: React.ForwardRefExoticComponent<ChoiceCardStatsProps & React.RefAttributes<HTMLDivElement>>;
45
+ declare const ChoiceCardStat: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & {
46
+ value: React.ReactNode;
47
+ label: React.ReactNode;
48
+ } & React.RefAttributes<HTMLDivElement>>;
49
+ declare const ChoiceCardCompareLabels: React.ForwardRefExoticComponent<ChoiceCardCompareLabelsProps & React.RefAttributes<HTMLDivElement>>;
50
+ declare const ChoiceCardCompareLabel: React.ForwardRefExoticComponent<ChoiceCardCompareLabelProps & React.RefAttributes<HTMLDivElement>>;
51
+ declare const ChoiceCardCompareLead: React.ForwardRefExoticComponent<ChoiceCardCompareLeadProps & React.RefAttributes<HTMLDivElement>>;
52
+ declare const ChoiceCardCompareRow: React.ForwardRefExoticComponent<ChoiceCardCompareRowProps & React.RefAttributes<HTMLDivElement>>;
53
+ declare const ChoiceCardCompare: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & {
54
+ fit?: import('./choice-card.types').ChoiceCardCompareFit;
55
+ } & React.RefAttributes<HTMLDivElement>>;
56
+ export { ChoiceCardFeaturedBackdrop } from './choice-card-featured-backdrop';
57
+ export { ChoiceCardGroup, ChoiceCard, ChoiceCardIndicator, ChoiceCardBackground, ChoiceCardRibbon, ChoiceCardFooter, ChoiceCardContent, ChoiceCardMedia, ChoiceCardTitle, ChoiceCardHeader, ChoiceCardDescription, ChoiceCardStatus, ChoiceCardIndex, ChoiceCardStats, ChoiceCardStat, ChoiceCardCompare, ChoiceCardCompareLabels, ChoiceCardCompareLabel, ChoiceCardCompareLead, ChoiceCardCompareRow, };