impact-nova 3.0.0-alpha.2 → 3.0.0-alpha.20

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 (294) hide show
  1. package/README.md +1 -1
  2. package/dist/_virtual/index.js +4 -4
  3. package/dist/_virtual/index2.js +4 -4
  4. package/dist/components/data/ag-grid-react/ag-grid-list.d.ts +3 -1
  5. package/dist/components/data/ag-grid-react/ag-grid-list.demo-board.d.ts +46 -0
  6. package/dist/components/data/ag-grid-react/ag-grid-list.js +9 -8
  7. package/dist/components/data/ag-grid-react/ag-grid-list.key-attributes.d.ts +1 -0
  8. package/dist/components/data/ag-grid-react/ag-grid.types.d.ts +65 -3
  9. package/dist/components/data/ag-grid-react/build-list-drag-column-defs.d.ts +8 -0
  10. package/dist/components/data/ag-grid-react/build-list-drag-column-defs.js +28 -0
  11. package/dist/components/data/ag-grid-react/cell-renderers/badge-cell-renderer.d.ts +2 -0
  12. package/dist/components/data/ag-grid-react/cell-renderers/badge-cell-renderer.js +15 -14
  13. package/dist/components/data/ag-grid-react/cell-renderers/badge-icon-registry.d.ts +10 -0
  14. package/dist/components/data/ag-grid-react/cell-renderers/badge-icon-registry.js +17 -0
  15. package/dist/components/data/ag-grid-react/cell-renderers/drag-handle-cell-renderer.d.ts +18 -0
  16. package/dist/components/data/ag-grid-react/cell-renderers/drag-handle-cell-renderer.js +32 -0
  17. package/dist/components/data/ag-grid-react/cell-renderers/editors/list-select-cell-editor.js +71 -46
  18. package/dist/components/data/ag-grid-react/cell-renderers/editors/select-cell-editor.js +48 -45
  19. package/dist/components/data/ag-grid-react/cell-renderers/index.d.ts +45 -7
  20. package/dist/components/data/ag-grid-react/cell-renderers/index.js +70 -58
  21. package/dist/components/data/ag-grid-react/cell-renderers/link-with-batch-cell-renderer.js +88 -76
  22. package/dist/components/data/ag-grid-react/cell-renderers/list-select-display-renderer.js +31 -33
  23. package/dist/components/data/ag-grid-react/cell-renderers/select-display-renderer.js +18 -17
  24. package/dist/components/data/ag-grid-react/cell-renderers/style-description-display-renderer.d.ts +5 -11
  25. package/dist/components/data/ag-grid-react/cell-renderers/style-description-display-renderer.js +127 -51
  26. package/dist/components/data/ag-grid-react/editable-utils.d.ts +9 -1
  27. package/dist/components/data/ag-grid-react/editable-utils.js +46 -41
  28. package/dist/components/data/ag-grid-react/headers/custom-header.js +110 -108
  29. package/dist/components/data/ag-grid-react/headers/header-search-input.js +203 -199
  30. package/dist/components/data/ag-grid-react/index.d.ts +6 -1
  31. package/dist/components/data/ag-grid-react/index.js +316 -248
  32. package/dist/components/data/ag-grid-react/list-drag-grid-options.d.ts +34 -0
  33. package/dist/components/data/ag-grid-react/list-drag-grid-options.js +110 -0
  34. package/dist/components/data/ag-grid-react/list-drag-preview-card.d.ts +4 -0
  35. package/dist/components/data/ag-grid-react/list-drag-preview-card.js +14 -0
  36. package/dist/components/data/ag-grid-react/list-drag-preview-snapshot.d.ts +20 -0
  37. package/dist/components/data/ag-grid-react/list-drag-preview-snapshot.js +42 -0
  38. package/dist/components/data/ag-grid-react/list-find-highlight.d.ts +6 -0
  39. package/dist/components/data/ag-grid-react/list-find-highlight.js +7 -0
  40. package/dist/components/data/ag-grid-react/list-row-move.d.ts +84 -0
  41. package/dist/components/data/ag-grid-react/list-row-move.js +74 -0
  42. package/dist/components/data/ag-grid-react/numeric-column-header-alignment.d.ts +9 -0
  43. package/dist/components/data/ag-grid-react/numeric-column-header-alignment.js +67 -0
  44. package/dist/components/data/ag-grid-react/process-backend-columndefs.d.ts +10 -2
  45. package/dist/components/data/ag-grid-react/process-backend-columndefs.js +84 -0
  46. package/dist/components/data/ag-grid-react/use-ag-grid-list-drag.d.ts +67 -0
  47. package/dist/components/data/ag-grid-react/use-ag-grid-list-drag.js +162 -0
  48. package/dist/components/data/ag-grid-react/use-list-drag-preview.d.ts +20 -0
  49. package/dist/components/data/ag-grid-react/use-list-drag-preview.js +148 -0
  50. package/dist/components/data/ag-grid-react/use-list-find.d.ts +36 -0
  51. package/dist/components/data/ag-grid-react/use-list-row-drop-zones.d.ts +46 -0
  52. package/dist/components/data/ag-grid-react/use-list-row-drop-zones.js +92 -0
  53. package/dist/components/data/data-table/build-column-tree-from-grid.js +15 -15
  54. package/dist/components/data/data-table/column-picker-authority.js +9 -9
  55. package/dist/components/data/data-table/data-table-column-apply.js +30 -29
  56. package/dist/components/data/data-table/data-table-column-tree-cache.js +62 -60
  57. package/dist/components/data/data-table/data-table-list-header.d.ts +7 -0
  58. package/dist/components/data/data-table/data-table-list-header.js +31 -0
  59. package/dist/components/data/data-table/data-table-overlay.d.ts +6 -0
  60. package/dist/components/data/data-table/data-table-overlay.js +18 -0
  61. package/dist/components/data/data-table/data-table-picker-column-eligibility.d.ts +3 -0
  62. package/dist/components/data/data-table/data-table-picker-column-eligibility.js +24 -4
  63. package/dist/components/data/data-table/data-table.js +35 -34
  64. package/dist/components/data/data-table/data-table.types.d.ts +13 -2
  65. package/dist/components/data/data-table/index.d.ts +10 -0
  66. package/dist/components/data/data-table/index.js +64 -52
  67. package/dist/components/data/data-table/use-data-table-viewport.d.ts +10 -0
  68. package/dist/components/data/data-table/use-data-table-viewport.js +31 -0
  69. package/dist/components/data/expandable-list-item/expandable-list-item-attributes.js +3 -2
  70. package/dist/components/data/expandable-list-item/expandable-list-item-metrics.js +3 -2
  71. package/dist/components/data/expandable-list-item/index.d.ts +2 -0
  72. package/dist/components/data/expandable-list-item/index.js +20 -16
  73. package/dist/components/data/expandable-list-item/product-card-hero.d.ts +15 -0
  74. package/dist/components/data/expandable-list-item/product-card-iris-insight-trigger.d.ts +8 -0
  75. package/dist/components/data/expandable-list-item/product-card-iris-insight-trigger.js +41 -0
  76. package/dist/components/data/expandable-list-item/product-card-metrics-toggle.d.ts +13 -0
  77. package/dist/components/data/expandable-list-item/product-card-metrics-toggle.js +27 -0
  78. package/dist/components/data/expandable-list-item/sku-picker-chrome.d.ts +40 -0
  79. package/dist/components/data/expandable-list-item/sku-picker-chrome.js +150 -0
  80. package/dist/components/data/expandable-list-item/useServerSkuInfinitePages.d.ts +2 -1
  81. package/dist/components/data/expandable-list-item/virtualized-responsive-grid.catalog.d.ts +5 -4
  82. package/dist/components/data/expandable-list-item/virtualized-responsive-grid.sku-picker.d.ts +3 -2
  83. package/dist/components/data/scenario-comparison/flatten-scenario-comparison-rows.d.ts +2 -0
  84. package/dist/components/data/scenario-comparison/flatten-scenario-comparison-rows.js +16 -0
  85. package/dist/components/data/scenario-comparison/index.d.ts +3 -0
  86. package/dist/components/data/scenario-comparison/index.js +6 -0
  87. package/dist/components/data/scenario-comparison/scenario-comparison-column.d.ts +12 -0
  88. package/dist/components/data/scenario-comparison/scenario-comparison-column.js +172 -0
  89. package/dist/components/data/scenario-comparison/scenario-comparison-label.d.ts +6 -0
  90. package/dist/components/data/scenario-comparison/scenario-comparison-label.js +64 -0
  91. package/dist/components/data/scenario-comparison/scenario-comparison.d.ts +5 -0
  92. package/dist/components/data/scenario-comparison/scenario-comparison.js +127 -0
  93. package/dist/components/data/scenario-comparison/scenario-comparison.types.d.ts +56 -0
  94. package/dist/components/data/scenario-comparison/scenario-comparison.variants.d.ts +7 -0
  95. package/dist/components/data/scenario-comparison/scenario-comparison.variants.js +29 -0
  96. package/dist/components/data-display/badge/index.d.ts +2 -0
  97. package/dist/components/data-display/badge/index.js +4 -2
  98. package/dist/components/data-display/badge/trophy-icon.d.ts +6 -0
  99. package/dist/components/data-display/badge/trophy-icon.js +28 -0
  100. package/dist/components/data-display/chart/chart-scatter3d.d.ts +39 -0
  101. package/dist/components/data-display/chart/chart-scatter3d.js +180 -0
  102. package/dist/components/data-display/chart/chart.js +125 -112
  103. package/dist/components/data-display/chart/chart.utils.js +122 -92
  104. package/dist/components/data-display/stereo-scatter/index.d.ts +2 -0
  105. package/dist/components/data-display/stereo-scatter/index.js +10 -0
  106. package/dist/components/data-display/stereo-scatter/internals/stereo-engine-frame.d.ts +41 -0
  107. package/dist/components/data-display/stereo-scatter/internals/stereo-engine-frame.js +178 -0
  108. package/dist/components/data-display/stereo-scatter/internals/stereo-engine-theme.d.ts +14 -0
  109. package/dist/components/data-display/stereo-scatter/internals/stereo-engine-theme.js +29 -0
  110. package/dist/components/data-display/stereo-scatter/internals/stereo-engine-wedges.d.ts +23 -0
  111. package/dist/components/data-display/stereo-scatter/internals/stereo-engine-wedges.js +80 -0
  112. package/dist/components/data-display/stereo-scatter/internals/stereo-engine.d.ts +120 -0
  113. package/dist/components/data-display/stereo-scatter/internals/stereo-engine.js +519 -0
  114. package/dist/components/data-display/stereo-scatter/internals/stereo-math.d.ts +64 -0
  115. package/dist/components/data-display/stereo-scatter/internals/stereo-math.js +129 -0
  116. package/dist/components/data-display/stereo-scatter/internals/stereo-model.d.ts +37 -0
  117. package/dist/components/data-display/stereo-scatter/internals/stereo-model.js +71 -0
  118. package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-context.d.ts +33 -0
  119. package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-context.js +19 -0
  120. package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-key.d.ts +4 -0
  121. package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-key.js +19 -0
  122. package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-legend.d.ts +2 -0
  123. package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-legend.js +75 -0
  124. package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-scene.d.ts +2 -0
  125. package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-scene.js +149 -0
  126. package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-toolbar.d.ts +13 -0
  127. package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-toolbar.js +93 -0
  128. package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-tooltip.d.ts +2 -0
  129. package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-tooltip.js +62 -0
  130. package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-viewport.d.ts +3 -0
  131. package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-viewport.js +41 -0
  132. package/dist/components/data-display/stereo-scatter/stereo-scatter.d.ts +12 -0
  133. package/dist/components/data-display/stereo-scatter/stereo-scatter.js +107 -0
  134. package/dist/components/data-display/stereo-scatter/stereo-scatter.stories-data.d.ts +11 -0
  135. package/dist/components/data-display/stereo-scatter/stereo-scatter.types.d.ts +69 -0
  136. package/dist/components/data-display/stereo-scatter/stereo-scatter.variants.d.ts +13 -0
  137. package/dist/components/data-display/stereo-scatter/stereo-scatter.variants.js +42 -0
  138. package/dist/components/feedback/find-bar/collect-find-matches.d.ts +35 -0
  139. package/dist/components/feedback/find-bar/collect-find-matches.js +68 -0
  140. package/dist/components/feedback/find-bar/find-bar-shortcuts.d.ts +5 -0
  141. package/dist/components/feedback/find-bar/find-bar-shortcuts.js +27 -0
  142. package/dist/components/feedback/find-bar/find-bar.d.ts +7 -0
  143. package/dist/components/feedback/find-bar/find-bar.js +266 -0
  144. package/dist/components/feedback/find-bar/find-bar.types.d.ts +32 -0
  145. package/dist/components/feedback/find-bar/index.d.ts +4 -0
  146. package/dist/components/feedback/find-bar/index.js +11 -0
  147. package/dist/components/feedback/tooltip/button-icon-tooltip.d.ts +6 -1
  148. package/dist/components/feedback/tooltip/button-icon-tooltip.js +22 -17
  149. package/dist/components/feedback/tooltip/tab-tooltip-render.js +3 -2
  150. package/dist/components/feedback/tooltip/use-overflow-tooltip.js +44 -36
  151. package/dist/components/flows/command-palette/shortcut-settings.js +10 -10
  152. package/dist/components/flows/filter-panel/filter-panel.js +4 -4
  153. package/dist/components/flows/iris-chat/IrisChatComposerVoiceCapture.d.ts +5 -0
  154. package/dist/components/flows/iris-chat/IrisChatComposerVoiceCapture.js +73 -0
  155. package/dist/components/flows/iris-chat/IrisChatHeaderWindowSizeButton.d.ts +5 -0
  156. package/dist/components/flows/iris-chat/IrisChatHeaderWindowSizeButton.js +49 -0
  157. package/dist/components/flows/iris-chat/IrisChatSnapTile.d.ts +8 -0
  158. package/dist/components/flows/iris-chat/IrisChatSnapTile.js +30 -0
  159. package/dist/components/flows/iris-chat/IrisChatVoiceWaveform.d.ts +3 -0
  160. package/dist/components/flows/iris-chat/IrisChatVoiceWaveform.js +25 -0
  161. package/dist/components/flows/iris-chat/IrisChatWindowSnapMenu.d.ts +4 -0
  162. package/dist/components/flows/iris-chat/IrisChatWindowSnapMenu.js +113 -0
  163. package/dist/components/flows/iris-chat/index.d.ts +3 -1
  164. package/dist/components/flows/iris-chat/index.js +58 -53
  165. package/dist/components/flows/iris-chat/iris-chat-artifact.js +46 -36
  166. package/dist/components/flows/iris-chat/iris-chat-chrome.d.ts +39 -0
  167. package/dist/components/flows/iris-chat/iris-chat-chrome.js +311 -0
  168. package/dist/components/flows/iris-chat/iris-chat-close-animation.d.ts +12 -0
  169. package/dist/components/flows/iris-chat/iris-chat-close-animation.js +21 -0
  170. package/dist/components/flows/iris-chat/iris-chat-composer.js +291 -234
  171. package/dist/components/flows/iris-chat/iris-chat-context.d.ts +16 -0
  172. package/dist/components/flows/iris-chat/iris-chat-context.js +14 -10
  173. package/dist/components/flows/iris-chat/iris-chat-copy-feedback.d.ts +4 -0
  174. package/dist/components/flows/iris-chat/iris-chat-copy-feedback.js +16 -0
  175. package/dist/components/flows/iris-chat/iris-chat-frame.d.ts +32 -0
  176. package/dist/components/flows/iris-chat/iris-chat-frame.js +88 -0
  177. package/dist/components/flows/iris-chat/iris-chat-icons.d.ts +2 -0
  178. package/dist/components/flows/iris-chat/iris-chat-icons.js +46 -20
  179. package/dist/components/flows/iris-chat/iris-chat-launch-animation.d.ts +11 -0
  180. package/dist/components/flows/iris-chat/iris-chat-launch-animation.js +35 -0
  181. package/dist/components/flows/iris-chat/iris-chat-markdown.js +82 -42
  182. package/dist/components/flows/iris-chat/iris-chat-menu.js +149 -117
  183. package/dist/components/flows/iris-chat/iris-chat-snap-presets.d.ts +7 -0
  184. package/dist/components/flows/iris-chat/iris-chat-snap-presets.js +83 -0
  185. package/dist/components/flows/iris-chat/iris-chat-speech.d.ts +52 -0
  186. package/dist/components/flows/iris-chat/iris-chat-speech.js +121 -0
  187. package/dist/components/flows/iris-chat/iris-chat-thread.d.ts +4 -0
  188. package/dist/components/flows/iris-chat/iris-chat-thread.js +277 -220
  189. package/dist/components/flows/iris-chat/iris-chat-window-chrome.d.ts +33 -0
  190. package/dist/components/flows/iris-chat/iris-chat-window-chrome.js +37 -0
  191. package/dist/components/flows/iris-chat/iris-chat-window-geometry-context.d.ts +14 -0
  192. package/dist/components/flows/iris-chat/iris-chat-window-geometry-context.js +15 -0
  193. package/dist/components/flows/iris-chat/iris-chat-window-geometry.d.ts +12 -0
  194. package/dist/components/flows/iris-chat/iris-chat-window-geometry.js +113 -0
  195. package/dist/components/flows/iris-chat/iris-chat-window-handles.d.ts +6 -0
  196. package/dist/components/flows/iris-chat/iris-chat-window-handles.js +50 -0
  197. package/dist/components/flows/iris-chat/iris-chat-window-shell.d.ts +8 -0
  198. package/dist/components/flows/iris-chat/iris-chat-window-shell.js +37 -0
  199. package/dist/components/flows/iris-chat/iris-chat.d.ts +3 -39
  200. package/dist/components/flows/iris-chat/iris-chat.js +22 -330
  201. package/dist/components/flows/iris-chat/iris-chat.types.d.ts +20 -0
  202. package/dist/components/flows/iris-chat/iris-chat.variants.d.ts +4 -3
  203. package/dist/components/flows/iris-chat/iris-chat.variants.js +45 -22
  204. package/dist/components/flows/iris-chat/sync-iris-chat-composer-textarea.d.ts +6 -0
  205. package/dist/components/flows/iris-chat/sync-iris-chat-composer-textarea.js +23 -0
  206. package/dist/components/flows/iris-chat/use-iris-chat-root.d.ts +29 -0
  207. package/dist/components/flows/iris-chat/use-iris-chat-root.js +162 -0
  208. package/dist/components/forms/choice-card/choice-card-compare-scroll.d.ts +4 -0
  209. package/dist/components/forms/choice-card/choice-card-compare-scroll.js +6 -0
  210. package/dist/components/forms/choice-card/choice-card-percent.js +82 -51
  211. package/dist/components/forms/choice-card/choice-card.d.ts +14 -2
  212. package/dist/components/forms/choice-card/choice-card.js +470 -381
  213. package/dist/components/forms/choice-card/choice-card.types.d.ts +9 -2
  214. package/dist/components/forms/choice-card/choice-card.variants.js +24 -3
  215. package/dist/components/forms/input/input.js +5 -5
  216. package/dist/components/forms/select/components/SelectMenuPanel.js +15 -15
  217. package/dist/components/forms/select/components/SelectTriggerValue.js +3 -2
  218. package/dist/components/forms/select/components/Submenu.js +3 -2
  219. package/dist/components/layout/header/header.js +1 -0
  220. package/dist/components/layout/horizontal-scroller/horizontal-scroller-mask.d.ts +3 -0
  221. package/dist/components/layout/horizontal-scroller/horizontal-scroller-mask.js +12 -0
  222. package/dist/components/layout/horizontal-scroller/horizontal-scroller.js +181 -125
  223. package/dist/components/layout/horizontal-scroller/horizontal-scroller.types.d.ts +2 -0
  224. package/dist/components/layout/horizontal-scroller/scroll-overflow-affordance.d.ts +3 -1
  225. package/dist/components/layout/horizontal-scroller/scroll-overflow-affordance.js +77 -67
  226. package/dist/components/primitives/button/button.variants.js +1 -1
  227. package/dist/components/primitives/iris/iris-insight-truncated-text.d.ts +3 -0
  228. package/dist/components/primitives/iris/iris-insight-truncated-text.js +33 -0
  229. package/dist/components/primitives/iris/iris.d.ts +3 -1
  230. package/dist/components/primitives/iris/iris.js +85 -91
  231. package/dist/components/primitives/iris/iris.types.d.ts +9 -0
  232. package/dist/components/primitives/stepper/internals/step-model.d.ts +1 -1
  233. package/dist/components/primitives/stepper/internals/step-model.js +5 -5
  234. package/dist/components/primitives/stepper/internals/stepper-compact.js +13 -13
  235. package/dist/components/primitives/stepper/internals/stepper-pipeline.js +6 -6
  236. package/dist/components/primitives/stepper/internals/stepper-rail.js +15 -15
  237. package/dist/components/primitives/stepper/internals/stepper-summary.js +7 -7
  238. package/dist/components/primitives/stepper/internals/stepper-track.js +2 -2
  239. package/dist/components/primitives/stepper/stepper.js +99 -97
  240. package/dist/components/primitives/stepper/stepper.types.d.ts +4 -0
  241. package/dist/components/primitives/tabs/folder-tab-path.d.ts +6 -0
  242. package/dist/components/primitives/tabs/folder-tab-path.js +16 -0
  243. package/dist/components/primitives/tabs/tabs.js +178 -112
  244. package/dist/components/primitives/tabs/tabs.types.d.ts +1 -1
  245. package/dist/form-react/Fields/SelectField.js +66 -57
  246. package/dist/form-react/Fields/VirtualizedListField.d.ts +3 -0
  247. package/dist/form-react/Fields/VirtualizedListField.js +223 -0
  248. package/dist/form-react/fields.d.ts +1 -0
  249. package/dist/form-react/fields.js +28 -26
  250. package/dist/form-react/index.d.ts +1 -1
  251. package/dist/form-react/registry/defaultFieldRegistrations.d.ts +1 -1
  252. package/dist/form-react/registry/defaultFieldRegistrations.js +13 -12
  253. package/dist/form-react/types/fields.types.d.ts +48 -1
  254. package/dist/form-react/types/fieldsOutput.types.d.ts +4 -1
  255. package/dist/form-react/types/reactHookForm.types.d.ts +18 -1
  256. package/dist/form-react/utils/fieldDefaults.utils.js +1 -1
  257. package/dist/i18n/defaultMessages.d.ts +69 -0
  258. package/dist/i18n/defaultMessages.js +107 -42
  259. package/dist/i18n/impact-nova-i18n-defaults.d.ts +5 -0
  260. package/dist/i18n/impact-nova-i18n-defaults.js +4 -9
  261. package/dist/i18n/index.d.ts +1 -1
  262. package/dist/i18n/locales/de.js +66 -1
  263. package/dist/i18n/locales/es.js +66 -1
  264. package/dist/i18n/locales/hi.js +66 -1
  265. package/dist/i18n/locales/kn.js +66 -1
  266. package/dist/impact-nova-components.css +372 -14
  267. package/dist/impact-nova-tokens.scss +4 -0
  268. package/dist/impact-nova.css +1 -1
  269. package/dist/index.d.ts +1 -0
  270. package/dist/index.js +627 -601
  271. package/dist/lib/alphabetical-sort.d.ts +3 -0
  272. package/dist/lib/alphabetical-sort.js +13 -0
  273. package/dist/lib/guidance/engine/guidance-engine.js +26 -27
  274. package/dist/lib/guidance/engine/step-navigation.d.ts +1 -0
  275. package/dist/lib/guidance/engine/step-navigation.js +16 -9
  276. package/dist/lib/guidance/types/guidance.types.d.ts +9 -1
  277. package/dist/lib/virtualized/index.d.ts +2 -0
  278. package/dist/lib/virtualized/index.js +35 -31
  279. package/dist/lib/virtualized/list-index.d.ts +5 -0
  280. package/dist/lib/virtualized/list-index.js +13 -0
  281. package/dist/lib/virtualized/read-infinite-query-list.d.ts +14 -0
  282. package/dist/lib/virtualized/read-infinite-query-list.js +12 -0
  283. package/dist/lib/virtualized/types.d.ts +4 -2
  284. package/dist/lib/virtualized/useRowState.js +60 -56
  285. package/dist/lib/virtualized/useVirtualizedList.d.ts +5 -0
  286. package/dist/llms/rules/ag-grid.js +1 -1
  287. package/dist/llms/rules/installation.js +1 -1
  288. package/dist/llms/rules/real-world-patterns.js +1 -1
  289. package/dist/llms/rules/requirements.js +1 -1
  290. package/dist/node_modules/hast-util-to-jsx-runtime/lib/index.js +1 -1
  291. package/dist/node_modules/unified/lib/index.js +1 -1
  292. package/dist/tailwind.config.js +3 -0
  293. package/dist/theme/tailwind-colors.js +3 -0
  294. package/package.json +23 -4
@@ -1,45 +1,46 @@
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");
1
+ import v from "highcharts";
2
+ import { CHART_PALETTE_CSS_VARS as A } from "./chart-palette.js";
3
+ import { resolveDesignTokenColor as S } from "../../../lib/resolve-design-token-color.js";
4
+ import { chartUsesScatter3d as O, getScatter3dHighchartsOptions as C, mergeScatter3dOptions3dFrame as L, mergeScatter3dChartLoadHandlers as T } from "./chart-scatter3d.js";
5
+ function D(o, { fadeTo: i = 0.1 } = {}) {
6
+ const a = typeof document > "u" ? o : S(o), n = v.color(a).setOpacity(Math.min(Math.max(i, 0), 1)).get("rgba");
6
7
  return {
7
8
  linearGradient: { x1: 0, y1: 0, x2: 0, y2: 1 },
8
9
  stops: [
9
- [0, n],
10
- [1, a]
10
+ [0, a],
11
+ [1, n]
11
12
  ]
12
13
  };
13
14
  }
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";
15
+ const k = /* @__PURE__ */ new Set(["column", "bar"]);
16
+ function F(o, i) {
17
+ const { series: a, colors: n } = o;
18
+ if (!i || !a || !n?.length) return o;
19
+ const h = i === !0 ? {} : i, l = o.chart?.type ?? "column";
19
20
  return {
20
21
  ...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;
22
+ series: a.map((r, f) => {
23
+ const u = "type" in r && r.type || l;
24
+ if (!k.has(u) || "color" in r && r.color)
25
+ return r;
26
+ const t = "colorIndex" in r && typeof r.colorIndex == "number" ? r.colorIndex : f, c = n[t % n.length];
27
+ if (typeof c != "string") return r;
28
+ const p = D(c, h), g = "negativeColor" in r && r.negativeColor;
28
29
  return {
29
- ...t,
30
- color: c,
30
+ ...r,
31
+ color: p,
31
32
  // 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 } }
33
+ ...!g && {
34
+ negativeColor: { ...p, linearGradient: { x1: 0, y1: 1, x2: 0, y2: 0 } }
34
35
  }
35
36
  };
36
37
  })
37
38
  };
38
39
  }
39
- function S(o) {
40
+ function z(o) {
40
41
  return !o || Array.isArray(o) ? {} : o;
41
42
  }
42
- function g(o) {
43
+ function y(o) {
43
44
  return {
44
45
  ...o,
45
46
  style: {
@@ -48,51 +49,51 @@ function g(o) {
48
49
  }
49
50
  };
50
51
  }
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,
52
+ function E(o, i) {
53
+ const a = i?.dataLabels;
54
+ if (Array.isArray(a))
55
+ return a.map(y);
56
+ const n = z(o?.dataLabels);
57
+ return y({
58
58
  ...n,
59
+ ...a,
59
60
  style: {
60
- ...a.style,
61
- ...n?.style,
61
+ ...n.style,
62
+ ...a?.style,
62
63
  pointerEvents: "none"
63
64
  }
64
65
  });
65
66
  }
66
- function O(o, i) {
67
+ function W(o, i) {
67
68
  return {
68
69
  ...o,
69
70
  ...i,
70
- dataLabels: C(o, i)
71
+ dataLabels: E(o, i)
71
72
  };
72
73
  }
73
- const E = (o) => {
74
+ const I = (o) => {
74
75
  const {
75
76
  type: i = "column",
76
- title: n,
77
- subtitle: a,
78
- xAxisCategories: p,
79
- xAxisTitle: s,
80
- yAxisCategories: t,
81
- yAxisTitle: d,
77
+ title: a,
78
+ subtitle: n,
79
+ xAxisCategories: h,
80
+ xAxisTitle: l,
81
+ yAxisCategories: r,
82
+ yAxisTitle: f,
82
83
  series: u,
83
- options: e,
84
- stacked: l,
85
- is3D: c,
86
- showLegend: f = !0,
87
- showTooltip: y = !0
88
- } = o, r = {
84
+ options: t,
85
+ stacked: c,
86
+ is3D: p,
87
+ showLegend: g = !0,
88
+ showTooltip: x = !0
89
+ } = o, d = O({ is3D: p, type: i, series: u }), s = d ? C({ xAxisTitle: l, yAxisTitle: f, options: t }) : void 0, e = {
89
90
  chart: {
90
91
  type: i,
91
92
  backgroundColor: "transparent",
92
93
  style: {
93
94
  fontFamily: "Manrope, sans-serif"
94
95
  },
95
- options3d: c ? {
96
+ options3d: p ? {
96
97
  enabled: !0,
97
98
  alpha: 15,
98
99
  beta: 15,
@@ -101,7 +102,7 @@ const E = (o) => {
101
102
  } : void 0
102
103
  },
103
104
  title: {
104
- text: n ?? "",
105
+ text: a ?? "",
105
106
  align: "left",
106
107
  style: {
107
108
  fontSize: "18px",
@@ -110,7 +111,7 @@ const E = (o) => {
110
111
  }
111
112
  },
112
113
  subtitle: {
113
- text: a,
114
+ text: n,
114
115
  align: "left"
115
116
  },
116
117
  credits: {
@@ -126,9 +127,9 @@ const E = (o) => {
126
127
  }
127
128
  },
128
129
  xAxis: {
129
- categories: p,
130
- title: s ? {
131
- text: s,
130
+ categories: h,
131
+ title: l ? {
132
+ text: l,
132
133
  style: {
133
134
  color: "var(--color-foreground-tertiary)",
134
135
  fontFamily: '"Manrope", sans-serif',
@@ -151,9 +152,9 @@ const E = (o) => {
151
152
  }
152
153
  },
153
154
  yAxis: {
154
- categories: t,
155
+ categories: r,
155
156
  title: {
156
- text: d,
157
+ text: f,
157
158
  margin: 30,
158
159
  style: {
159
160
  color: "var(--color-foreground-tertiary)",
@@ -178,7 +179,7 @@ const E = (o) => {
178
179
  }
179
180
  },
180
181
  legend: {
181
- enabled: f,
182
+ enabled: g,
182
183
  symbolRadius: 2,
183
184
  itemStyle: {
184
185
  color: "var(--color-foreground-tertiary)",
@@ -190,7 +191,7 @@ const E = (o) => {
190
191
  }
191
192
  },
192
193
  tooltip: {
193
- enabled: y,
194
+ enabled: x,
194
195
  backgroundColor: "var(--color-surface-floating)",
195
196
  borderColor: "var(--color-border)",
196
197
  borderRadius: 8,
@@ -199,16 +200,16 @@ const E = (o) => {
199
200
  },
200
201
  shadow: !0
201
202
  },
202
- colors: [...x],
203
+ colors: [...A],
203
204
  plotOptions: {
204
205
  column: {
205
206
  borderRadius: 4,
206
- stacking: l ? "normal" : void 0,
207
+ stacking: c ? "normal" : void 0,
207
208
  borderWidth: 0
208
209
  },
209
210
  bar: {
210
211
  borderRadius: 4,
211
- stacking: l ? "normal" : void 0,
212
+ stacking: c ? "normal" : void 0,
212
213
  borderWidth: 1,
213
214
  borderColor: "var(--color-background)"
214
215
  },
@@ -237,62 +238,91 @@ const E = (o) => {
237
238
  }
238
239
  },
239
240
  series: u
241
+ }, m = d ? {
242
+ ...e.chart?.options3d,
243
+ ...s?.chart?.options3d,
244
+ ...t?.chart?.options3d,
245
+ frame: L(
246
+ s?.chart?.options3d?.frame,
247
+ t?.chart?.options3d?.frame
248
+ )
249
+ } : {
250
+ ...e.chart?.options3d,
251
+ ...t?.chart?.options3d
240
252
  };
241
253
  return {
242
- ...r,
243
254
  ...e,
244
- colors: e?.colors ?? r.colors,
255
+ ...t,
256
+ colors: t?.colors ?? e.colors,
245
257
  chart: {
246
- ...r.chart,
247
- ...e?.chart
258
+ ...e.chart,
259
+ ...s?.chart,
260
+ ...t?.chart,
261
+ ...d ? { type: "scatter3d" } : {},
262
+ options3d: m,
263
+ events: d ? {
264
+ ...t?.chart?.events,
265
+ load: T(t?.chart?.events?.load)
266
+ } : t?.chart?.events
248
267
  },
249
268
  xAxis: {
250
- ...r.xAxis,
251
- ...Array.isArray(e?.xAxis) ? {} : e?.xAxis
269
+ ...e.xAxis,
270
+ ...s?.xAxis,
271
+ ...Array.isArray(t?.xAxis) ? {} : t?.xAxis
252
272
  },
253
- yAxis: Array.isArray(e?.yAxis) ? e?.yAxis.map((b) => ({
254
- ...r.yAxis,
273
+ yAxis: Array.isArray(t?.yAxis) ? t.yAxis.map((b) => ({
274
+ ...e.yAxis,
275
+ ...s?.yAxis,
255
276
  ...b
256
277
  })) : {
257
- ...r.yAxis,
258
- ...e?.yAxis
278
+ ...e.yAxis,
279
+ ...s?.yAxis,
280
+ ...t?.yAxis
259
281
  },
282
+ zAxis: d ? {
283
+ ...s?.zAxis,
284
+ ...t?.zAxis
285
+ } : t?.zAxis,
260
286
  plotOptions: {
261
- ...r.plotOptions,
262
- ...e?.plotOptions,
287
+ ...e.plotOptions,
288
+ ...t?.plotOptions,
263
289
  column: {
264
- ...r.plotOptions?.column,
265
- ...e?.plotOptions?.column
290
+ ...e.plotOptions?.column,
291
+ ...t?.plotOptions?.column
266
292
  },
267
293
  bar: {
268
- ...r.plotOptions?.bar,
269
- ...e?.plotOptions?.bar
294
+ ...e.plotOptions?.bar,
295
+ ...t?.plotOptions?.bar
270
296
  },
271
297
  pie: {
272
- ...r.plotOptions?.pie,
273
- ...e?.plotOptions?.pie
298
+ ...e.plotOptions?.pie,
299
+ ...t?.plotOptions?.pie
274
300
  },
275
- heatmap: O(
276
- r.plotOptions?.heatmap,
277
- e?.plotOptions?.heatmap
301
+ heatmap: W(
302
+ e.plotOptions?.heatmap,
303
+ t?.plotOptions?.heatmap
278
304
  ),
305
+ scatter3d: {
306
+ ...s?.plotOptions?.scatter3d,
307
+ ...t?.plotOptions?.scatter3d
308
+ },
279
309
  series: {
280
- ...r.plotOptions?.series,
281
- ...e?.plotOptions?.series
310
+ ...e.plotOptions?.series,
311
+ ...t?.plotOptions?.series
282
312
  }
283
313
  },
284
314
  tooltip: {
285
- ...r.tooltip,
286
- ...e?.tooltip
315
+ ...e.tooltip,
316
+ ...t?.tooltip
287
317
  },
288
318
  legend: {
289
- ...r.legend,
290
- ...e?.legend
319
+ ...e.legend,
320
+ ...t?.legend
291
321
  }
292
322
  };
293
323
  };
294
324
  export {
295
- D as applySeriesGradient,
296
- v as chartGradient,
297
- E as getBaseChartOptions
325
+ F as applySeriesGradient,
326
+ D as chartGradient,
327
+ I as getBaseChartOptions
298
328
  };
@@ -0,0 +1,2 @@
1
+ export { StereoScatter, StereoScatterLegend, StereoScatterTooltip, StereoScatterViewport, } from './stereo-scatter';
2
+ export type { StereoScatterAxis, StereoScatterCluster, StereoScatterHover, StereoScatterLegendProps, StereoScatterPoint, StereoScatterProps, StereoScatterTarget, StereoScatterTooltipProps, StereoScatterVariant, StereoScatterView, StereoScatterViewportProps, } from './stereo-scatter.types';
@@ -0,0 +1,10 @@
1
+ import { StereoScatter as r } from "./stereo-scatter.js";
2
+ import { StereoScatterLegend as S } from "./internals/stereo-scatter-legend.js";
3
+ import { StereoScatterTooltip as a } from "./internals/stereo-scatter-tooltip.js";
4
+ import { StereoScatterViewport as f } from "./internals/stereo-scatter-viewport.js";
5
+ export {
6
+ r as StereoScatter,
7
+ S as StereoScatterLegend,
8
+ a as StereoScatterTooltip,
9
+ f as StereoScatterViewport
10
+ };
@@ -0,0 +1,41 @@
1
+ import { Group, Vector3, Camera } from 'three';
2
+ import { StereoModel } from './stereo-model';
3
+ import { StereoTheme } from './stereo-engine-theme';
4
+ export interface StereoFrameAxes {
5
+ x: {
6
+ label: string;
7
+ format: (value: number) => string;
8
+ };
9
+ y: {
10
+ label: string;
11
+ format: (value: number) => string;
12
+ };
13
+ z: {
14
+ label: string;
15
+ format: (value: number) => string;
16
+ };
17
+ }
18
+ export type StereoFrameSigns = {
19
+ x: number;
20
+ z: number;
21
+ };
22
+ /** Vertical cube edge on the left silhouette for a camera in the `signs` quadrant. */
23
+ export declare function leftSilhouette(signs: StereoFrameSigns): StereoFrameSigns;
24
+ /**
25
+ * Axis frame for the scene cube: floor grid, faint gridlines on the two back walls, and
26
+ * three solid axis rods with arrowheads, tick marks, values, and titles. Rods and labels
27
+ * follow the camera quadrant so they always sit on the near, readable edges.
28
+ */
29
+ export declare class StereoAxisFrame {
30
+ readonly group: Group<import('three').Object3DEventMap>;
31
+ private readonly walls;
32
+ private readonly rods;
33
+ private readonly labels;
34
+ private signs;
35
+ private hiddenAxis;
36
+ constructor(model: StereoModel, theme: StereoTheme, axes: StereoFrameAxes);
37
+ update(camera: Camera, target: Vector3): void;
38
+ /** Near edges that carry the X and Z rods; hover guides drop onto them. */
39
+ nearEdges(): StereoFrameSigns;
40
+ dispose(): void;
41
+ }
@@ -0,0 +1,178 @@
1
+ import { Group as C, LineBasicMaterial as g, MeshBasicMaterial as P, DoubleSide as B, Mesh as S, PlaneGeometry as U, Vector3 as a, CylinderGeometry as Q, ConeGeometry as X, Vector2 as L, BufferGeometry as q, Float32BufferAttribute as J, LineSegments as K } from "three";
2
+ import { CSS2DObject as V } from "three/addons/renderers/CSS2DRenderer.js";
3
+ import { normalizeToCube as Y } from "./stereo-math.js";
4
+ const Z = "pointer-events-none select-none whitespace-nowrap text-[10px] font-medium leading-3 tabular-nums text-content-muted", $ = "pointer-events-none select-none flex items-center gap-1 whitespace-nowrap text-[11px] font-semibold leading-4 text-content-secondary", k = "inline-flex size-4 items-center justify-center rounded-full bg-canvas-muted text-[9px] font-bold uppercase leading-none text-content", W = 55e-4, w = 0.1, I = 0.075, tt = 0.024, O = 0.045, M = 0.05, _ = 0.94;
5
+ function j(r, n = new L(0.5, 0.5)) {
6
+ const o = new V(r);
7
+ return o.center.copy(n), o;
8
+ }
9
+ function et(r, n) {
10
+ const o = document.createElement("div");
11
+ return o.className = n, o.textContent = r, o;
12
+ }
13
+ function nt(r, n) {
14
+ const o = document.createElement("div");
15
+ o.className = $;
16
+ const s = document.createElement("span");
17
+ s.className = k, s.textContent = r;
18
+ const u = document.createElement("span");
19
+ return u.textContent = n, o.append(s, u), o;
20
+ }
21
+ function G(r) {
22
+ return r.ticks.map((n) => ({ value: n, position: Y(n, r) })).filter((n) => n.position >= -1 - 1e-6 && n.position <= 1 + 1e-6);
23
+ }
24
+ function A(r, n) {
25
+ const o = new q();
26
+ return o.setAttribute(
27
+ "position",
28
+ new J(r.flatMap((s) => [s.x, s.y, s.z]), 3)
29
+ ), new K(o, n);
30
+ }
31
+ function ot(r) {
32
+ r.traverse((n) => {
33
+ if (n instanceof S || n instanceof K) {
34
+ n.geometry.dispose();
35
+ const o = n.material;
36
+ Array.isArray(o) ? o.forEach((s) => s.dispose()) : o.dispose();
37
+ }
38
+ n instanceof V && n.element.remove();
39
+ });
40
+ }
41
+ function m(r) {
42
+ return r.x * r.z > 0 ? { x: -r.x, z: r.z } : { x: r.x, z: -r.z };
43
+ }
44
+ class at {
45
+ group = new C();
46
+ walls;
47
+ rods;
48
+ labels = [];
49
+ signs = { x: 0, z: 0 };
50
+ hiddenAxis = null;
51
+ constructor(n, o, s) {
52
+ const u = new g({ color: o.grid, transparent: !0, opacity: 0.95, fog: !1 }), z = new g({ color: o.grid, transparent: !0, opacity: 0.6, fog: !1 }), f = new g({ color: o.gridStrong, transparent: !0, opacity: 0.8, fog: !1 }), x = new P({
53
+ color: o.wall,
54
+ transparent: !0,
55
+ opacity: 0.4,
56
+ side: B,
57
+ depthWrite: !1,
58
+ fog: !1
59
+ }), D = new P({ color: o.muted, side: B, fog: !1 }), h = {
60
+ x: G(n.domains.x),
61
+ y: G(n.domains.y),
62
+ z: G(n.domains.z)
63
+ }, b = new S(new U(2, 2), x);
64
+ b.rotation.x = -Math.PI / 2, b.position.y = -1.003, b.renderOrder = -2, this.group.add(b), this.group.add(
65
+ A(
66
+ [
67
+ ...h.x.flatMap((t) => [new a(t.position, -1, -1), new a(t.position, -1, 1)]),
68
+ ...h.z.flatMap((t) => [new a(-1, -1, t.position), new a(1, -1, t.position)])
69
+ ],
70
+ u
71
+ )
72
+ ), this.group.add(
73
+ A(
74
+ [
75
+ [-1, -1, -1, 1, -1, -1],
76
+ [1, -1, -1, 1, -1, 1],
77
+ [1, -1, 1, -1, -1, 1],
78
+ [-1, -1, 1, -1, -1, -1]
79
+ ].flatMap(([t, e, i, l, c, d]) => [new a(t, e, i), new a(l, c, d)]),
80
+ f
81
+ )
82
+ );
83
+ const y = (t, e) => {
84
+ const i = new C(), l = (c, d) => t === "x" ? new a(e, d, c) : new a(c, d, e);
85
+ return i.add(
86
+ A(
87
+ h.y.flatMap((c) => [l(-1, c.position), l(1, c.position)]),
88
+ z
89
+ )
90
+ ), this.group.add(i), i;
91
+ };
92
+ this.walls = {
93
+ x: { "-1": y("x", -1), 1: y("x", 1) },
94
+ z: { "-1": y("z", -1), 1: y("z", 1) }
95
+ };
96
+ const F = new Q(W, W, 2 + w, 8), H = new X(tt, I, 16), T = (t) => {
97
+ const e = new C(), i = new S(F, D), l = new S(H, D), c = 1 + w + I / 2;
98
+ t === "x" ? (i.rotation.z = -Math.PI / 2, i.position.x = w / 2, l.rotation.z = -Math.PI / 2, l.position.x = c) : t === "z" ? (i.rotation.x = Math.PI / 2, i.position.z = w / 2, l.rotation.x = Math.PI / 2, l.position.z = c) : (i.position.y = w / 2, l.position.y = c), e.add(i, l);
99
+ const d = h[t].flatMap((p) => {
100
+ if (t === "x") return [new a(p.position, 0, 0), new a(p.position, 0, O)];
101
+ if (t === "z") return [new a(0, 0, p.position), new a(O, 0, p.position)];
102
+ const N = O / Math.SQRT2;
103
+ return [new a(0, p.position, 0), new a(N, p.position, N)];
104
+ });
105
+ return e.add(A(d, new g({ color: o.muted, fog: !1 }))), this.group.add(e), e;
106
+ };
107
+ this.rods = { x: T("x"), y: T("y"), z: T("z") };
108
+ const E = (t, e, i, l) => {
109
+ for (const c of h[t]) {
110
+ const d = j(et(s[t].format(c.value), Z), l);
111
+ this.labels.push({
112
+ axis: t,
113
+ object: d,
114
+ place: (p) => e(c.position, p),
115
+ visible: (p) => i(c.position, p)
116
+ }), this.group.add(d);
117
+ }
118
+ };
119
+ E(
120
+ "x",
121
+ (t, e) => new a(t, -1.02, e.z * 1.13),
122
+ (t, e) => {
123
+ const i = m(e);
124
+ return !(i.z === e.z && Math.abs(t - i.x) < M);
125
+ }
126
+ ), E(
127
+ "z",
128
+ (t, e) => new a(e.x * 1.15, -1.02, t),
129
+ (t, e) => {
130
+ const i = m(e);
131
+ return Math.abs(t - e.z) < M ? !1 : !(i.x === e.x && Math.abs(t - i.z) < M);
132
+ }
133
+ ), E(
134
+ "y",
135
+ (t, e) => {
136
+ const i = m(e);
137
+ return new a(i.x * 1.07, t, i.z * 1.07);
138
+ },
139
+ (t) => t > -1 + M,
140
+ new L(1, 0.5)
141
+ );
142
+ const v = (t, e, i) => {
143
+ const l = j(nt(t, s[t].label), i);
144
+ this.labels.push({ axis: t, object: l, place: e }), this.group.add(l);
145
+ }, R = 1 + w + I + 0.12;
146
+ v("x", (t) => new a(R, -1, t.z)), v("z", (t) => new a(t.x, -1, R)), v(
147
+ "y",
148
+ (t) => {
149
+ const e = m(t);
150
+ return new a(e.x, R - 0.06, e.z);
151
+ },
152
+ new L(0.5, 1)
153
+ );
154
+ }
155
+ update(n, o) {
156
+ const s = {
157
+ x: n.position.x - o.x >= 0 ? 1 : -1,
158
+ z: n.position.z - o.z >= 0 ? 1 : -1
159
+ }, u = n.position.clone().sub(o).normalize(), z = Math.abs(u.y) > _ ? "y" : Math.abs(u.x) > _ ? "x" : Math.abs(u.z) > _ ? "z" : null;
160
+ if (s.x === this.signs.x && s.z === this.signs.z && z === this.hiddenAxis) return;
161
+ this.signs = s, this.hiddenAxis = z, this.walls.x[1].visible = s.x < 0, this.walls.x[-1].visible = s.x > 0, this.walls.z[1].visible = s.z < 0, this.walls.z[-1].visible = s.z > 0;
162
+ const f = m(s);
163
+ this.rods.x.position.set(0, -1, s.z), this.rods.x.scale.set(1, 1, s.z), this.rods.z.position.set(s.x, -1, 0), this.rods.z.scale.set(s.x, 1, 1), this.rods.y.position.set(f.x, 0, f.z), this.rods.y.scale.set(f.x, 1, f.z);
164
+ for (const x of this.labels)
165
+ x.object.position.copy(x.place(s)), x.object.visible = x.axis !== z && (x.visible?.(s) ?? !0);
166
+ }
167
+ /** Near edges that carry the X and Z rods; hover guides drop onto them. */
168
+ nearEdges() {
169
+ return { x: this.signs.x || 1, z: this.signs.z || 1 };
170
+ }
171
+ dispose() {
172
+ ot(this.group);
173
+ }
174
+ }
175
+ export {
176
+ at as StereoAxisFrame,
177
+ m as leftSilhouette
178
+ };
@@ -0,0 +1,14 @@
1
+ import { Color } from 'three';
2
+ import { StereoModel } from './stereo-model';
3
+ export interface StereoTheme {
4
+ surface: Color;
5
+ foreground: Color;
6
+ muted: Color;
7
+ grid: Color;
8
+ gridStrong: Color;
9
+ wall: Color;
10
+ brand: Color;
11
+ clusterColors: Map<string, Color>;
12
+ }
13
+ /** WebGL needs concrete colors, so tokens are resolved once per theme against the host element. */
14
+ export declare function readStereoTheme(scope: HTMLElement, model: StereoModel): StereoTheme;
@@ -0,0 +1,29 @@
1
+ import { Color as c } from "three";
2
+ import { resolveDesignTokenColor as s } from "../../../../lib/resolve-design-token-color.js";
3
+ function o(r, a, n) {
4
+ const e = s(r, a);
5
+ if (!e || e.startsWith("var(")) return n.clone();
6
+ const t = new c();
7
+ return t.setStyle(e), t;
8
+ }
9
+ function m(r, a) {
10
+ const n = new c(0.97, 0.97, 0.98), e = new c(0.12, 0.13, 0.16), t = o("var(--color-surface-elevated)", r, n), l = o("var(--color-foreground)", r, e), d = o("var(--color-border-hairline)", r, n), i = o("var(--color-border)", r, d);
11
+ return {
12
+ surface: t,
13
+ foreground: l,
14
+ muted: o("var(--color-muted-foreground)", r, l),
15
+ grid: d,
16
+ gridStrong: i,
17
+ wall: o("var(--color-surface-muted)", r, t),
18
+ brand: o("var(--color-primary)", r, l),
19
+ clusterColors: new Map(
20
+ a.clusters.map((u) => [
21
+ u.cluster.id,
22
+ o(u.color, r, l)
23
+ ])
24
+ )
25
+ };
26
+ }
27
+ export {
28
+ m as readStereoTheme
29
+ };
@@ -0,0 +1,23 @@
1
+ import { Color, Group, Vector3, Camera } from 'three';
2
+ export interface StereoBondSpec {
3
+ from: Vector3;
4
+ to: Vector3;
5
+ fromRadius: number;
6
+ toRadius: number;
7
+ color: Color;
8
+ }
9
+ /**
10
+ * Bonds drawn with stereochemistry notation, recomputed whenever the camera moves:
11
+ * a tapered solid cone when the substituent faces the viewer, widening rungs when it
12
+ * recedes, and a plain stick when it is level with the stereocentre.
13
+ */
14
+ export declare class StereoWedgeBonds {
15
+ readonly group: Group<import('three').Object3DEventMap>;
16
+ private readonly solid;
17
+ private readonly plain;
18
+ private readonly rungs;
19
+ private readonly scratch;
20
+ constructor(capacity: number);
21
+ update(bonds: readonly StereoBondSpec[], camera: Camera): void;
22
+ dispose(): void;
23
+ }