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
@@ -1,41 +1,41 @@
1
- import { jsx as s, jsxs as b } from "react/jsx-runtime";
1
+ import { jsx as s, jsxs as y } from "react/jsx-runtime";
2
2
  import * as t from "react";
3
3
  import N from "highcharts-react-official";
4
- import { cn as f } from "../../../lib/utils.js";
4
+ import { cn as p } from "../../../lib/utils.js";
5
5
  import { Skeleton as q } from "../skeleton/skeleton.js";
6
6
  import { Collapse as j, Expand as B } from "impact-nova-icons";
7
7
  import { Button as P } from "../../primitives/button/button.js";
8
8
  import { getInitializedHighcharts as T } from "./initializeHighcharts.js";
9
- import { getBaseChartOptions as O } from "./chart.utils.js";
9
+ import { getBaseChartOptions as O, applySeriesGradient as G } from "./chart.utils.js";
10
10
  import { resolveHighchartsOptions as M } from "./resolve-highcharts-options.js";
11
11
  import { useImpactNovaI18n as V } from "../../../i18n/use-impact-nova-i18n.js";
12
12
  const R = T(), S = t.createContext(null), A = () => {
13
- const n = t.useContext(S);
14
- if (!n)
13
+ const r = t.useContext(S);
14
+ if (!r)
15
15
  throw new Error("Chart components must be used within a ChartContainer");
16
- return n;
16
+ return r;
17
17
  }, H = t.forwardRef(
18
- ({ className: n, children: r, isLoading: l = !1, ...c }, u) => {
19
- const a = t.useRef(null), o = t.useRef(null), [m, h] = t.useState(null), [d, p] = t.useState(!1), [g, C] = t.useState(!1), w = t.useCallback((e) => {
20
- a.current = e, h(e);
18
+ ({ className: r, children: l, isLoading: n = !1, ...a }, u) => {
19
+ const c = t.useRef(null), o = t.useRef(null), [f, d] = t.useState(null), [h, w] = t.useState(!1), [x, C] = t.useState(!1), v = t.useCallback((e) => {
20
+ c.current = e, d(e);
21
21
  }, []);
22
- t.useImperativeHandle(u, () => a.current);
23
- const x = () => {
24
- const e = a.current;
22
+ t.useImperativeHandle(u, () => c.current);
23
+ const E = () => {
24
+ const e = c.current;
25
25
  e && (C(!0), e.classList.add("fullscreen-animating"), setTimeout(() => {
26
- e.requestFullscreen ? e.requestFullscreen() : "webkitRequestFullscreen" in e ? e.webkitRequestFullscreen() : "msRequestFullscreen" in e && e.msRequestFullscreen(), p(!0), e.classList.remove("fullscreen-animating");
26
+ e.requestFullscreen ? e.requestFullscreen() : "webkitRequestFullscreen" in e ? e.webkitRequestFullscreen() : "msRequestFullscreen" in e && e.msRequestFullscreen(), w(!0), e.classList.remove("fullscreen-animating");
27
27
  }, 200));
28
- }, v = () => {
29
- const e = a.current;
28
+ }, F = () => {
29
+ const e = c.current;
30
30
  e && (C(!0), e.classList.add("fullscreen-animating-out"), setTimeout(() => {
31
- document.exitFullscreen ? document.exitFullscreen() : document.webkitExitFullscreen ? document.webkitExitFullscreen() : document.msExitFullscreen && document.msExitFullscreen(), p(!1), e.classList.remove("fullscreen-animating-out");
31
+ document.exitFullscreen ? document.exitFullscreen() : document.webkitExitFullscreen ? document.webkitExitFullscreen() : document.msExitFullscreen && document.msExitFullscreen(), w(!1), e.classList.remove("fullscreen-animating-out");
32
32
  }, 200));
33
- }, E = () => {
34
- d ? v() : x();
33
+ }, b = () => {
34
+ h ? F() : E();
35
35
  };
36
36
  return t.useEffect(() => {
37
37
  const e = () => {
38
- document.fullscreenElement || document.webkitFullscreenElement || document.msFullscreenElement || p(!1);
38
+ document.fullscreenElement || document.webkitFullscreenElement || document.msFullscreenElement || w(!1);
39
39
  };
40
40
  return document.addEventListener("fullscreenchange", e), document.addEventListener("webkitfullscreenchange", e), () => {
41
41
  document.removeEventListener("fullscreenchange", e), document.removeEventListener(
@@ -47,46 +47,46 @@ const R = T(), S = t.createContext(null), A = () => {
47
47
  if (!o?.current?.chart) return;
48
48
  const e = o.current.chart;
49
49
  let i = null;
50
- const L = () => {
51
- d && a.current ? (i && cancelAnimationFrame(i), i = requestAnimationFrame(() => {
52
- const F = a.current;
53
- if (!F) return;
54
- const y = F.getBoundingClientRect(), k = F.querySelector('[class*="ChartContent"]');
50
+ const g = () => {
51
+ h && c.current ? (i && cancelAnimationFrame(i), i = requestAnimationFrame(() => {
52
+ const m = c.current;
53
+ if (!m) return;
54
+ const L = m.getBoundingClientRect(), k = m.querySelector('[class*="ChartContent"]');
55
55
  if (k) {
56
56
  const z = k.getBoundingClientRect();
57
57
  e.setSize(z.width, z.height, !1);
58
58
  } else
59
- e.setSize(y.width, y.height, !1);
59
+ e.setSize(L.width, L.height, !1);
60
60
  i = null;
61
61
  })) : (e.setSize(null, null, !1), e.reflow());
62
62
  };
63
- return window.addEventListener("resize", L), () => {
64
- i && cancelAnimationFrame(i), window.removeEventListener("resize", L);
63
+ return window.addEventListener("resize", g), () => {
64
+ i && cancelAnimationFrame(i), window.removeEventListener("resize", g);
65
65
  };
66
- }, [d]), /* @__PURE__ */ s(
66
+ }, [h]), /* @__PURE__ */ s(
67
67
  S.Provider,
68
68
  {
69
69
  value: {
70
- isExpanded: d,
71
- toggleFullscreen: E,
72
- isLoading: l,
73
- containerRef: a,
74
- containerElement: m,
70
+ isExpanded: h,
71
+ toggleFullscreen: b,
72
+ isLoading: n,
73
+ containerRef: c,
74
+ containerElement: f,
75
75
  chartComponentRef: o
76
76
  },
77
77
  children: /* @__PURE__ */ s(
78
78
  "div",
79
79
  {
80
- ref: w,
80
+ ref: v,
81
81
  "data-component": "chart",
82
- className: f(
83
- n,
82
+ className: p(
83
+ r,
84
84
  "w-full relative bg-canvas-elevated transition-all duration-200 ease-in-out",
85
- d && "fixed inset-0 z-50 h-screen w-screen p-4 bg-canvas flex flex-col",
86
- g && "overflow-hidden"
85
+ h && "fixed inset-0 z-50 h-screen w-screen p-4 bg-canvas flex flex-col",
86
+ x && "overflow-hidden"
87
87
  ),
88
- ...c,
89
- children: r
88
+ ...a,
89
+ children: l
90
90
  }
91
91
  )
92
92
  }
@@ -95,111 +95,118 @@ const R = T(), S = t.createContext(null), A = () => {
95
95
  );
96
96
  H.displayName = "ChartContainer";
97
97
  const W = t.forwardRef(
98
- ({ className: n, children: r, ...l }, c) => /* @__PURE__ */ s("div", { ref: c, className: f("flex items-center justify-between mb-4", n), ...l, children: r })
98
+ ({ className: r, children: l, ...n }, a) => /* @__PURE__ */ s("div", { ref: a, className: p("flex items-center justify-between mb-4", r), ...n, children: l })
99
99
  );
100
100
  W.displayName = "ChartHeader";
101
101
  const D = t.forwardRef(
102
- ({ className: n, ...r }, l) => /* @__PURE__ */ s("h3", { ref: l, className: f("text-lg font-semibold leading-none tracking-tight", n), ...r })
102
+ ({ className: r, ...l }, n) => /* @__PURE__ */ s("h3", { ref: n, className: p("text-lg font-semibold leading-none tracking-tight", r), ...l })
103
103
  );
104
104
  D.displayName = "ChartTitle";
105
- const G = t.forwardRef(
106
- ({ className: n, ...r }, l) => /* @__PURE__ */ s("div", { ref: l, className: f("flex items-center gap-2", n), ...r })
107
- );
108
- G.displayName = "ChartActions";
109
105
  const J = t.forwardRef(
110
- ({ className: n, ...r }, l) => {
111
- const { t: c } = V(), { toggleFullscreen: u, isExpanded: a } = A(), o = c("aria.toggleFullscreen");
112
- return /* @__PURE__ */ b(
106
+ ({ className: r, ...l }, n) => /* @__PURE__ */ s("div", { ref: n, className: p("flex items-center gap-2", r), ...l })
107
+ );
108
+ J.displayName = "ChartActions";
109
+ const K = t.forwardRef(
110
+ ({ className: r, ...l }, n) => {
111
+ const { t: a } = V(), { toggleFullscreen: u, isExpanded: c } = A(), o = a("aria.toggleFullscreen");
112
+ return /* @__PURE__ */ y(
113
113
  P,
114
114
  {
115
115
  variant: "ghost",
116
116
  size: "icon",
117
117
  onClick: u,
118
- ref: l,
119
- className: f("h-8 w-8", n),
118
+ ref: n,
119
+ className: p("h-8 w-8", r),
120
120
  "aria-label": o,
121
- ...r,
121
+ ...l,
122
122
  children: [
123
- a ? /* @__PURE__ */ s(j, { className: "h-4 w-4" }) : /* @__PURE__ */ s(B, { className: "h-4 w-4" }),
123
+ c ? /* @__PURE__ */ s(j, { className: "h-4 w-4" }) : /* @__PURE__ */ s(B, { className: "h-4 w-4" }),
124
124
  /* @__PURE__ */ s("span", { className: "sr-only", children: o })
125
125
  ]
126
126
  }
127
127
  );
128
128
  }
129
129
  );
130
- J.displayName = "ChartFullScreen";
130
+ K.displayName = "ChartFullScreen";
131
131
  const I = t.forwardRef(
132
- ({ className: n, children: r, loader: l, ...c }, u) => {
133
- const { isLoading: a, chartComponentRef: o, isExpanded: m } = A();
134
- return a && l ? /* @__PURE__ */ s("div", { ref: u, className: f(n, "w-full relative flex items-center justify-center flex-1 min-h-[300px]", m && "min-h-0"), ...c, children: l }) : /* @__PURE__ */ b("div", { ref: u, className: f(n, "w-full relative flex-1 min-h-[300px]", m && "min-h-0"), ...c, children: [
135
- a && /* @__PURE__ */ b("div", { className: "absolute inset-0 z-10 bg-canvas/50 flex flex-col gap-2 p-4", children: [
132
+ ({ className: r, children: l, loader: n, ...a }, u) => {
133
+ const { isLoading: c, chartComponentRef: o, isExpanded: f } = A();
134
+ return c && n ? /* @__PURE__ */ s("div", { ref: u, className: p(r, "w-full relative flex items-center justify-center flex-1 min-h-[300px]", f && "min-h-0"), ...a, children: n }) : /* @__PURE__ */ y("div", { ref: u, className: p(r, "w-full relative flex-1 min-h-[300px]", f && "min-h-0"), ...a, children: [
135
+ c && /* @__PURE__ */ y("div", { className: "absolute inset-0 z-10 bg-canvas/50 flex flex-col gap-2 p-4", children: [
136
136
  /* @__PURE__ */ s(q, { className: "h-8 w-1/3" }),
137
137
  /* @__PURE__ */ s(q, { className: "flex-1 w-full" })
138
138
  ] }),
139
- t.Children.map(r, (h) => t.isValidElement(h) ? t.cloneElement(h, { ref: o }) : h)
139
+ t.Children.map(l, (d) => t.isValidElement(d) ? t.cloneElement(d, { ref: o }) : d)
140
140
  ] });
141
141
  }
142
142
  );
143
143
  I.displayName = "ChartContent";
144
- const K = t.forwardRef(
145
- (n, r) => {
144
+ const Q = t.forwardRef(
145
+ (r, l) => {
146
146
  const {
147
- height: l,
148
- width: c,
147
+ height: n,
148
+ width: a,
149
149
  className: u,
150
- isLoading: a,
150
+ isLoading: c,
151
151
  loader: o,
152
- title: m,
153
- noWrapper: h,
154
- children: d,
155
- ...p
156
- } = n, g = t.useContext(S), [C, w] = t.useState(null), x = t.useCallback((i) => {
157
- w(i);
158
- }, []), v = t.useMemo(() => {
159
- const i = O({ title: m, ...p });
152
+ title: f,
153
+ noWrapper: d,
154
+ gradient: h,
155
+ children: w,
156
+ ...x
157
+ } = r, C = t.useContext(S), [v, E] = t.useState(null), F = t.useCallback((m) => {
158
+ E(m);
159
+ }, []), b = t.useMemo(() => {
160
+ const m = O({ title: f, ...x });
160
161
  return {
161
- ...i,
162
+ ...m,
162
163
  chart: {
163
- ...i.chart,
164
- height: l ?? null,
165
- width: c ?? null
164
+ ...m.chart,
165
+ height: n ?? null,
166
+ width: a ?? null
166
167
  }
167
168
  };
168
- }, [m, l, c, p]), E = g?.containerElement ?? C, e = M(v, E);
169
- return h ? /* @__PURE__ */ s("div", { ref: x, className: "h-full w-full", children: /* @__PURE__ */ s(
169
+ }, [f, n, a, x]), e = C?.containerElement ?? v ?? (typeof document > "u" ? null : document.documentElement), i = G(
170
+ M(b, e),
171
+ h
172
+ ), g = {
173
+ height: typeof n == "number" ? n : n ?? "100%",
174
+ width: typeof a == "number" ? a : a ?? "100%"
175
+ };
176
+ return d ? /* @__PURE__ */ s("div", { ref: F, className: "h-full w-full", children: /* @__PURE__ */ s(
170
177
  N,
171
178
  {
172
179
  highcharts: R,
173
- options: e,
174
- ref: r,
175
- containerProps: { style: { height: "100%", width: "100%" } }
180
+ options: i,
181
+ ref: l,
182
+ containerProps: { style: g }
176
183
  }
177
- ) }) : g ? /* @__PURE__ */ s(
184
+ ) }) : C ? /* @__PURE__ */ s(
178
185
  N,
179
186
  {
180
187
  highcharts: R,
181
- options: e,
182
- ref: r,
183
- containerProps: { style: { height: "100%", width: "100%" } }
188
+ options: i,
189
+ ref: l,
190
+ containerProps: { style: g }
184
191
  }
185
- ) : /* @__PURE__ */ s(H, { className: u, isLoading: a, children: /* @__PURE__ */ s(I, { loader: o, children: /* @__PURE__ */ s(
192
+ ) : /* @__PURE__ */ s(H, { className: u, isLoading: c, children: /* @__PURE__ */ s(I, { loader: o, children: /* @__PURE__ */ s(
186
193
  N,
187
194
  {
188
195
  highcharts: R,
189
- options: e,
190
- ref: r,
191
- containerProps: { style: { height: "100%", width: "100%" } }
196
+ options: i,
197
+ ref: l,
198
+ containerProps: { style: g }
192
199
  }
193
200
  ) }) });
194
201
  }
195
202
  );
196
- K.displayName = "Chart";
203
+ Q.displayName = "Chart";
197
204
  export {
198
- K as Chart,
199
- G as ChartActions,
205
+ Q as Chart,
206
+ J as ChartActions,
200
207
  H as ChartContainer,
201
208
  I as ChartContent,
202
- J as ChartFullScreen,
209
+ K as ChartFullScreen,
203
210
  W as ChartHeader,
204
211
  D as ChartTitle
205
212
  };
@@ -1,6 +1,10 @@
1
1
  import type * as Highcharts from 'highcharts';
2
2
  export type ChartSeriesOptions = Highcharts.SeriesOptionsType;
3
3
  export type ChartType = ChartSeriesOptions['type'];
4
+ export interface ChartGradientOptions {
5
+ /** Opacity (0–1) at the faded end, near the axis baseline. Defaults to `0.1`. */
6
+ fadeTo?: number;
7
+ }
4
8
  /**
5
9
  * Impact Nova chart props — a styled wrapper around Highcharts only.
6
10
  *
@@ -17,11 +21,17 @@ export interface ChartProps {
17
21
  subtitle?: string;
18
22
  xAxisCategories?: string[];
19
23
  xAxisTitle?: string;
24
+ yAxisCategories?: string[];
20
25
  yAxisTitle?: string;
21
26
  stacked?: boolean;
22
27
  is3D?: boolean;
23
28
  showLegend?: boolean;
24
29
  showTooltip?: boolean;
30
+ /**
31
+ * Fill column/bar series with their palette color fading toward the axis baseline.
32
+ * Series with an explicit `color` are left unchanged; use `chartGradient()` for those.
33
+ */
34
+ gradient?: boolean | ChartGradientOptions;
25
35
  options?: Highcharts.Options;
26
36
  height?: number | string;
27
37
  width?: number | string;
@@ -1,3 +1,15 @@
1
- import { ChartProps } from './chart.types';
2
- import type * as Highcharts from 'highcharts';
1
+ import { default as Highcharts } from 'highcharts';
2
+ import { ChartGradientOptions, ChartProps } from './chart.types';
3
+ /**
4
+ * Column/bar gradient from `color` at the value end to a faded copy at the baseline.
5
+ * Highcharts draws bar charts as rotated columns, so one vertical gradient covers both.
6
+ * Design tokens resolve against the document root; prefer the `gradient` prop on
7
+ * `Chart`, which resolves against the chart's theme scope.
8
+ */
9
+ export declare function chartGradient(color: string, { fadeTo }?: ChartGradientOptions): Highcharts.GradientColorObject;
10
+ /**
11
+ * Give column/bar series without an explicit `color` a gradient of their palette color.
12
+ * Must run after design tokens are resolved so `options.colors` holds concrete colors.
13
+ */
14
+ export declare function applySeriesGradient(options: Highcharts.Options, gradient: ChartProps['gradient']): Highcharts.Options;
3
15
  export declare const getBaseChartOptions: (props: ChartProps) => Highcharts.Options;
@@ -1,26 +1,98 @@
1
- import { CHART_PALETTE_CSS_VARS as g } from "./chart-palette.js";
2
- const u = (i) => {
1
+ import h from "highcharts";
2
+ import { CHART_PALETTE_CSS_VARS as x } from "./chart-palette.js";
3
+ import { resolveDesignTokenColor as m } from "../../../lib/resolve-design-token-color.js";
4
+ function v(o, { fadeTo: i = 0.1 } = {}) {
5
+ const n = typeof document > "u" ? o : m(o), a = h.color(n).setOpacity(Math.min(Math.max(i, 0), 1)).get("rgba");
6
+ return {
7
+ linearGradient: { x1: 0, y1: 0, x2: 0, y2: 1 },
8
+ stops: [
9
+ [0, n],
10
+ [1, a]
11
+ ]
12
+ };
13
+ }
14
+ const A = /* @__PURE__ */ new Set(["column", "bar"]);
15
+ function D(o, i) {
16
+ const { series: n, colors: a } = o;
17
+ if (!i || !n || !a?.length) return o;
18
+ const p = i === !0 ? {} : i, s = o.chart?.type ?? "column";
19
+ return {
20
+ ...o,
21
+ series: n.map((t, d) => {
22
+ const u = "type" in t && t.type || s;
23
+ if (!A.has(u) || "color" in t && t.color)
24
+ return t;
25
+ const e = "colorIndex" in t && typeof t.colorIndex == "number" ? t.colorIndex : d, l = a[e % a.length];
26
+ if (typeof l != "string") return t;
27
+ const c = v(l, p), f = "negativeColor" in t && t.negativeColor;
28
+ return {
29
+ ...t,
30
+ color: c,
31
+ // Points below the threshold grow away from the axis the other way; flip the fade.
32
+ ...!f && {
33
+ negativeColor: { ...c, linearGradient: { x1: 0, y1: 1, x2: 0, y2: 0 } }
34
+ }
35
+ };
36
+ })
37
+ };
38
+ }
39
+ function S(o) {
40
+ return !o || Array.isArray(o) ? {} : o;
41
+ }
42
+ function g(o) {
43
+ return {
44
+ ...o,
45
+ style: {
46
+ ...o.style,
47
+ pointerEvents: "none"
48
+ }
49
+ };
50
+ }
51
+ function C(o, i) {
52
+ const n = i?.dataLabels;
53
+ if (Array.isArray(n))
54
+ return n.map(g);
55
+ const a = S(o?.dataLabels);
56
+ return g({
57
+ ...a,
58
+ ...n,
59
+ style: {
60
+ ...a.style,
61
+ ...n?.style,
62
+ pointerEvents: "none"
63
+ }
64
+ });
65
+ }
66
+ function O(o, i) {
67
+ return {
68
+ ...o,
69
+ ...i,
70
+ dataLabels: C(o, i)
71
+ };
72
+ }
73
+ const E = (o) => {
3
74
  const {
4
- type: l = "column",
5
- title: a,
6
- subtitle: s,
7
- xAxisCategories: n,
8
- xAxisTitle: e,
75
+ type: i = "column",
76
+ title: n,
77
+ subtitle: a,
78
+ xAxisCategories: p,
79
+ xAxisTitle: s,
80
+ yAxisCategories: t,
9
81
  yAxisTitle: d,
10
- series: c,
11
- options: o,
12
- stacked: t,
13
- is3D: p,
82
+ series: u,
83
+ options: e,
84
+ stacked: l,
85
+ is3D: c,
14
86
  showLegend: f = !0,
15
87
  showTooltip: y = !0
16
- } = i, r = {
88
+ } = o, r = {
17
89
  chart: {
18
- type: l,
90
+ type: i,
19
91
  backgroundColor: "transparent",
20
92
  style: {
21
93
  fontFamily: "Manrope, sans-serif"
22
94
  },
23
- options3d: p ? {
95
+ options3d: c ? {
24
96
  enabled: !0,
25
97
  alpha: 15,
26
98
  beta: 15,
@@ -29,7 +101,7 @@ const u = (i) => {
29
101
  } : void 0
30
102
  },
31
103
  title: {
32
- text: a ?? "",
104
+ text: n ?? "",
33
105
  align: "left",
34
106
  style: {
35
107
  fontSize: "18px",
@@ -38,7 +110,7 @@ const u = (i) => {
38
110
  }
39
111
  },
40
112
  subtitle: {
41
- text: s,
113
+ text: a,
42
114
  align: "left"
43
115
  },
44
116
  credits: {
@@ -54,9 +126,9 @@ const u = (i) => {
54
126
  }
55
127
  },
56
128
  xAxis: {
57
- categories: n,
58
- title: e ? {
59
- text: e,
129
+ categories: p,
130
+ title: s ? {
131
+ text: s,
60
132
  style: {
61
133
  color: "var(--color-foreground-tertiary)",
62
134
  fontFamily: '"Manrope", sans-serif',
@@ -79,6 +151,7 @@ const u = (i) => {
79
151
  }
80
152
  },
81
153
  yAxis: {
154
+ categories: t,
82
155
  title: {
83
156
  text: d,
84
157
  margin: 30,
@@ -126,16 +199,16 @@ const u = (i) => {
126
199
  },
127
200
  shadow: !0
128
201
  },
129
- colors: [...g],
202
+ colors: [...x],
130
203
  plotOptions: {
131
204
  column: {
132
205
  borderRadius: 4,
133
- stacking: t ? "normal" : void 0,
206
+ stacking: l ? "normal" : void 0,
134
207
  borderWidth: 0
135
208
  },
136
209
  bar: {
137
210
  borderRadius: 4,
138
- stacking: t ? "normal" : void 0,
211
+ stacking: l ? "normal" : void 0,
139
212
  borderWidth: 1,
140
213
  borderColor: "var(--color-background)"
141
214
  },
@@ -147,55 +220,79 @@ const u = (i) => {
147
220
  },
148
221
  showInLegend: !0
149
222
  },
223
+ heatmap: {
224
+ enableMouseTracking: !0,
225
+ stickyTracking: !1,
226
+ cursor: "pointer",
227
+ dataLabels: {
228
+ style: {
229
+ pointerEvents: "none"
230
+ }
231
+ }
232
+ },
150
233
  series: {
151
234
  animation: {
152
235
  duration: 1e3
153
236
  }
154
237
  }
155
238
  },
156
- series: c
239
+ series: u
157
240
  };
158
241
  return {
159
242
  ...r,
160
- ...o,
161
- colors: o?.colors ?? r.colors,
243
+ ...e,
244
+ colors: e?.colors ?? r.colors,
162
245
  chart: {
163
246
  ...r.chart,
164
- ...o?.chart
247
+ ...e?.chart
165
248
  },
166
249
  xAxis: {
167
250
  ...r.xAxis,
168
- ...Array.isArray(o?.xAxis) ? {} : o?.xAxis
251
+ ...Array.isArray(e?.xAxis) ? {} : e?.xAxis
169
252
  },
170
- yAxis: Array.isArray(o?.yAxis) ? o?.yAxis.map((b) => ({
253
+ yAxis: Array.isArray(e?.yAxis) ? e?.yAxis.map((b) => ({
171
254
  ...r.yAxis,
172
255
  ...b
173
256
  })) : {
174
257
  ...r.yAxis,
175
- ...o?.yAxis
258
+ ...e?.yAxis
176
259
  },
177
260
  plotOptions: {
178
261
  ...r.plotOptions,
179
- ...o?.plotOptions,
262
+ ...e?.plotOptions,
180
263
  column: {
181
264
  ...r.plotOptions?.column,
182
- ...o?.plotOptions?.column
265
+ ...e?.plotOptions?.column
183
266
  },
184
267
  bar: {
185
268
  ...r.plotOptions?.bar,
186
- ...o?.plotOptions?.bar
269
+ ...e?.plotOptions?.bar
187
270
  },
188
271
  pie: {
189
272
  ...r.plotOptions?.pie,
190
- ...o?.plotOptions?.pie
273
+ ...e?.plotOptions?.pie
191
274
  },
275
+ heatmap: O(
276
+ r.plotOptions?.heatmap,
277
+ e?.plotOptions?.heatmap
278
+ ),
192
279
  series: {
193
280
  ...r.plotOptions?.series,
194
- ...o?.plotOptions?.series
281
+ ...e?.plotOptions?.series
195
282
  }
283
+ },
284
+ tooltip: {
285
+ ...r.tooltip,
286
+ ...e?.tooltip
287
+ },
288
+ legend: {
289
+ ...r.legend,
290
+ ...e?.legend
196
291
  }
197
292
  };
198
293
  };
199
294
  export {
200
- u as getBaseChartOptions
295
+ D as applySeriesGradient,
296
+ v as chartGradient,
297
+ E as getBaseChartOptions
201
298
  };
@@ -1,18 +1,20 @@
1
- import { Chart as C, ChartActions as e, ChartContainer as a, ChartContent as o, ChartFullScreen as h, ChartHeader as A, ChartTitle as S } from "./chart.js";
2
- import { getBaseChartOptions as _ } from "./chart.utils.js";
3
- import { CHART_CANONICAL_CSS_VARS as l, CHART_PALETTE_CSS_VARS as s, CHART_PALETTE_SIZE as E, chartPaletteCssVar as R, resolveChartPalette as i } from "./chart-palette.js";
1
+ import { Chart as e, ChartActions as a, ChartContainer as C, ChartContent as h, ChartFullScreen as o, ChartHeader as A, ChartTitle as n } from "./chart.js";
2
+ import { applySeriesGradient as T, chartGradient as _, getBaseChartOptions as i } from "./chart.utils.js";
3
+ import { CHART_CANONICAL_CSS_VARS as s, CHART_PALETTE_CSS_VARS as p, CHART_PALETTE_SIZE as E, chartPaletteCssVar as R, resolveChartPalette as c } from "./chart-palette.js";
4
4
  export {
5
- l as CHART_CANONICAL_CSS_VARS,
6
- s as CHART_PALETTE_CSS_VARS,
5
+ s as CHART_CANONICAL_CSS_VARS,
6
+ p as CHART_PALETTE_CSS_VARS,
7
7
  E as CHART_PALETTE_SIZE,
8
- C as Chart,
9
- e as ChartActions,
10
- a as ChartContainer,
11
- o as ChartContent,
12
- h as ChartFullScreen,
8
+ e as Chart,
9
+ a as ChartActions,
10
+ C as ChartContainer,
11
+ h as ChartContent,
12
+ o as ChartFullScreen,
13
13
  A as ChartHeader,
14
- S as ChartTitle,
14
+ n as ChartTitle,
15
+ T as applySeriesGradient,
16
+ _ as chartGradient,
15
17
  R as chartPaletteCssVar,
16
- _ as getBaseChartOptions,
17
- i as resolveChartPalette
18
+ i as getBaseChartOptions,
19
+ c as resolveChartPalette
18
20
  };