@accelint/design-toolkit 9.9.2 → 9.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (436) hide show
  1. package/catalog-info.yaml +2 -2
  2. package/dist/components/accordion/group.d.ts +2 -2
  3. package/dist/components/accordion/header.d.ts +2 -2
  4. package/dist/components/accordion/index.d.ts +2 -2
  5. package/dist/components/accordion/styles.module.css +19 -3
  6. package/dist/components/accordion/trigger.d.ts +2 -2
  7. package/dist/components/action-bar/index.d.ts +2 -2
  8. package/dist/components/audio/index.d.ts +2 -2
  9. package/dist/components/avatar/context.d.ts +4 -4
  10. package/dist/components/avatar/index.d.ts +2 -2
  11. package/dist/components/badge/context.d.ts +4 -4
  12. package/dist/components/badge/index.d.ts +2 -2
  13. package/dist/components/breadcrumbs/index.d.ts +2 -2
  14. package/dist/components/breadcrumbs/item.d.ts +2 -2
  15. package/dist/components/button/context.d.ts +8 -8
  16. package/dist/components/button/index.d.ts +2 -2
  17. package/dist/components/button/link.d.ts +2 -2
  18. package/dist/components/button/styles.module.css +16 -0
  19. package/dist/components/button/toggle.d.ts +2 -2
  20. package/dist/components/carousel/context.d.ts +40 -0
  21. package/dist/components/carousel/context.js +55 -0
  22. package/dist/components/carousel/context.js.map +1 -0
  23. package/dist/components/carousel/gallery.d.ts +38 -0
  24. package/dist/components/carousel/gallery.js +84 -0
  25. package/dist/components/carousel/gallery.js.map +1 -0
  26. package/dist/components/carousel/index.d.ts +56 -0
  27. package/dist/components/carousel/index.js +66 -0
  28. package/dist/components/carousel/index.js.map +1 -0
  29. package/dist/components/carousel/navigation.d.ts +51 -0
  30. package/dist/components/carousel/navigation.js +82 -0
  31. package/dist/components/carousel/navigation.js.map +1 -0
  32. package/dist/components/carousel/position.d.ts +33 -0
  33. package/dist/components/carousel/position.js +48 -0
  34. package/dist/components/carousel/position.js.map +1 -0
  35. package/dist/components/carousel/select.d.ts +38 -0
  36. package/dist/components/carousel/select.js +69 -0
  37. package/dist/components/carousel/select.js.map +1 -0
  38. package/dist/components/carousel/style.module.css +62 -0
  39. package/dist/components/carousel/types.d.ts +87 -0
  40. package/dist/components/carousel/types.js +12 -0
  41. package/dist/components/carousel/viewer.d.ts +40 -0
  42. package/dist/components/carousel/viewer.js +75 -0
  43. package/dist/components/carousel/viewer.js.map +1 -0
  44. package/dist/components/checkbox/context.d.ts +3 -3
  45. package/dist/components/checkbox/group.d.ts +2 -2
  46. package/dist/components/checkbox/group.js +1 -1
  47. package/dist/components/checkbox/index.d.ts +2 -2
  48. package/dist/components/chip/context.d.ts +4 -4
  49. package/dist/components/chip/deletable.d.ts +2 -2
  50. package/dist/components/chip/index.d.ts +2 -2
  51. package/dist/components/chip/list.d.ts +4 -4
  52. package/dist/components/chip/selectable.d.ts +2 -2
  53. package/dist/components/classification-badge/context.d.ts +4 -4
  54. package/dist/components/classification-badge/index.d.ts +2 -2
  55. package/dist/components/classification-banner/context.d.ts +4 -4
  56. package/dist/components/classification-banner/index.d.ts +2 -2
  57. package/dist/components/clock/index.d.ts +2 -2
  58. package/dist/components/color-picker/index.d.ts +2 -2
  59. package/dist/components/combobox-field/context.d.ts +4 -4
  60. package/dist/components/combobox-field/index.d.ts +2 -2
  61. package/dist/components/combobox-field/index.js +1 -1
  62. package/dist/components/combobox-field/styles.module.css +12 -0
  63. package/dist/components/coordinate-field/context.d.ts +6 -6
  64. package/dist/components/coordinate-field/index.d.ts +2 -2
  65. package/dist/components/coordinate-field/segment.d.ts +2 -2
  66. package/dist/components/date-field/index.d.ts +2 -2
  67. package/dist/components/deferred-collection/index.d.ts +2 -2
  68. package/dist/components/details-list/context.d.ts +4 -4
  69. package/dist/components/details-list/index.d.ts +2 -2
  70. package/dist/components/details-list/label.d.ts +2 -2
  71. package/dist/components/details-list/value.d.ts +2 -2
  72. package/dist/components/dialog/content.d.ts +2 -2
  73. package/dist/components/dialog/context.d.ts +2 -2
  74. package/dist/components/dialog/footer.d.ts +2 -2
  75. package/dist/components/dialog/index.d.ts +2 -2
  76. package/dist/components/dialog/styles.module.css +23 -0
  77. package/dist/components/dialog/title.d.ts +2 -2
  78. package/dist/components/divider/context.d.ts +4 -4
  79. package/dist/components/divider/index.d.ts +2 -2
  80. package/dist/components/drawer/back.d.ts +2 -2
  81. package/dist/components/drawer/close.d.ts +2 -2
  82. package/dist/components/drawer/content.d.ts +2 -2
  83. package/dist/components/drawer/context.d.ts +2 -2
  84. package/dist/components/drawer/footer.d.ts +2 -2
  85. package/dist/components/drawer/header-title.d.ts +2 -2
  86. package/dist/components/drawer/header.d.ts +2 -2
  87. package/dist/components/drawer/index.d.ts +2 -2
  88. package/dist/components/drawer/layout-main.d.ts +2 -2
  89. package/dist/components/drawer/layout.d.ts +2 -2
  90. package/dist/components/drawer/menu-item.d.ts +2 -2
  91. package/dist/components/drawer/menu.d.ts +2 -2
  92. package/dist/components/drawer/panel.d.ts +2 -2
  93. package/dist/components/drawer/styles.module.css +54 -2
  94. package/dist/components/drawer/trigger.d.ts +2 -2
  95. package/dist/components/drawer/view.d.ts +2 -2
  96. package/dist/components/flashcard/index.d.ts +9 -9
  97. package/dist/components/floating-card/context.d.ts +37 -5
  98. package/dist/components/floating-card/context.js +18 -3
  99. package/dist/components/floating-card/context.js.map +1 -1
  100. package/dist/components/floating-card/index.d.ts +51 -1
  101. package/dist/components/floating-card/index.js +41 -11
  102. package/dist/components/floating-card/index.js.map +1 -1
  103. package/dist/components/floating-card/provider.d.ts +94 -17
  104. package/dist/components/floating-card/provider.js +116 -20
  105. package/dist/components/floating-card/provider.js.map +1 -1
  106. package/dist/components/floating-card/styles.module.css +5 -0
  107. package/dist/components/gantt/components/base-elements/point.d.ts +28 -0
  108. package/dist/components/gantt/components/base-elements/point.js +44 -0
  109. package/dist/components/gantt/components/base-elements/point.js.map +1 -0
  110. package/dist/components/gantt/components/base-elements/range.d.ts +30 -0
  111. package/dist/components/gantt/components/base-elements/range.js +51 -0
  112. package/dist/components/gantt/components/base-elements/range.js.map +1 -0
  113. package/dist/components/gantt/components/base-elements/use-point-element-layout/index.d.ts +12 -0
  114. package/dist/components/gantt/components/base-elements/use-point-element-layout/index.js +42 -0
  115. package/dist/components/gantt/components/base-elements/use-point-element-layout/index.js.map +1 -0
  116. package/dist/components/gantt/components/base-elements/use-range-element-layout/index.d.ts +23 -0
  117. package/dist/components/gantt/components/base-elements/use-range-element-layout/index.js +50 -0
  118. package/dist/components/gantt/components/base-elements/use-range-element-layout/index.js.map +1 -0
  119. package/dist/components/gantt/components/containers/external/gantt-content-container/index.d.ts +23 -0
  120. package/dist/components/gantt/components/containers/external/gantt-content-container/index.js +40 -0
  121. package/dist/components/gantt/components/containers/external/gantt-content-container/index.js.map +1 -0
  122. package/dist/components/gantt/components/containers/external/gantt-panel-container/index.d.ts +23 -0
  123. package/dist/components/gantt/components/containers/external/gantt-panel-container/index.js +33 -0
  124. package/dist/components/gantt/components/containers/external/gantt-panel-container/index.js.map +1 -0
  125. package/dist/components/gantt/components/containers/external/styles.module.css +32 -0
  126. package/dist/components/gantt/components/containers/internal/index.d.ts +22 -0
  127. package/dist/components/gantt/components/containers/internal/index.js +35 -0
  128. package/dist/components/gantt/components/containers/internal/index.js.map +1 -0
  129. package/dist/components/gantt/components/containers/internal/layout-container/index.d.ts +22 -0
  130. package/dist/components/gantt/components/containers/internal/layout-container/index.js +27 -0
  131. package/dist/components/gantt/components/containers/internal/layout-container/index.js.map +1 -0
  132. package/dist/components/gantt/components/containers/internal/styles.module.css +35 -0
  133. package/dist/components/gantt/components/containers/internal/virtualized-content-height-container/index.d.ts +22 -0
  134. package/dist/components/gantt/components/containers/internal/virtualized-content-height-container/index.js +38 -0
  135. package/dist/components/gantt/components/containers/internal/virtualized-content-height-container/index.js.map +1 -0
  136. package/dist/components/gantt/components/content-row/block.d.ts +27 -0
  137. package/dist/components/gantt/components/content-row/block.js +39 -0
  138. package/dist/components/gantt/components/content-row/block.js.map +1 -0
  139. package/dist/components/gantt/components/content-row/bracket.d.ts +23 -0
  140. package/dist/components/gantt/components/content-row/bracket.js +48 -0
  141. package/dist/components/gantt/components/content-row/bracket.js.map +1 -0
  142. package/dist/components/gantt/components/content-row/icon-marker.d.ts +27 -0
  143. package/dist/components/gantt/components/content-row/icon-marker.js +41 -0
  144. package/dist/components/gantt/components/content-row/icon-marker.js.map +1 -0
  145. package/dist/components/gantt/components/content-row/index.d.ts +24 -0
  146. package/dist/components/gantt/components/content-row/index.js +32 -0
  147. package/dist/components/gantt/components/content-row/index.js.map +1 -0
  148. package/dist/components/gantt/components/content-row/marker.d.ts +21 -0
  149. package/dist/components/gantt/components/content-row/marker.js +35 -0
  150. package/dist/components/gantt/components/content-row/marker.js.map +1 -0
  151. package/dist/components/gantt/components/content-row/spacer.d.ts +23 -0
  152. package/dist/components/gantt/components/content-row/spacer.js +35 -0
  153. package/dist/components/gantt/components/content-row/spacer.js.map +1 -0
  154. package/dist/components/gantt/components/content-row/styles.module.css +198 -0
  155. package/dist/components/gantt/components/content-row/use-elapsed-percentage/index.d.ts +19 -0
  156. package/dist/components/gantt/components/content-row/use-elapsed-percentage/index.js +27 -0
  157. package/dist/components/gantt/components/content-row/use-elapsed-percentage/index.js.map +1 -0
  158. package/dist/components/gantt/components/content-row/use-is-elapsed/index.d.ts +10 -0
  159. package/dist/components/gantt/components/content-row/use-is-elapsed/index.js +24 -0
  160. package/dist/components/gantt/components/content-row/use-is-elapsed/index.js.map +1 -0
  161. package/dist/components/gantt/components/current-time/index.d.ts +28 -0
  162. package/dist/components/gantt/components/current-time/index.js +63 -0
  163. package/dist/components/gantt/components/current-time/index.js.map +1 -0
  164. package/dist/components/gantt/components/current-time/styles.module.css +42 -0
  165. package/dist/components/gantt/components/current-time/use-current-time-layout/index.d.ts +31 -0
  166. package/dist/components/gantt/components/current-time/use-current-time-layout/index.js +58 -0
  167. package/dist/components/gantt/components/current-time/use-current-time-layout/index.js.map +1 -0
  168. package/dist/components/gantt/components/header/index.d.ts +25 -0
  169. package/dist/components/gantt/components/header/index.js +41 -0
  170. package/dist/components/gantt/components/header/index.js.map +1 -0
  171. package/dist/components/gantt/components/header/styles.module.css +23 -0
  172. package/dist/components/gantt/components/panel-row/index.d.ts +24 -0
  173. package/dist/components/gantt/components/panel-row/index.js +33 -0
  174. package/dist/components/gantt/components/panel-row/index.js.map +1 -0
  175. package/dist/components/gantt/components/panel-row/styles.module.css +24 -0
  176. package/dist/components/gantt/components/rows-virtualizer/index.d.ts +25 -0
  177. package/dist/components/gantt/components/rows-virtualizer/index.js +67 -0
  178. package/dist/components/gantt/components/rows-virtualizer/index.js.map +1 -0
  179. package/dist/components/gantt/components/rows-virtualizer/styles.module.css +30 -0
  180. package/dist/components/gantt/components/rows-virtualizer/use-rendered-rows/index.d.ts +29 -0
  181. package/dist/components/gantt/components/rows-virtualizer/use-rendered-rows/index.js +57 -0
  182. package/dist/components/gantt/components/rows-virtualizer/use-rendered-rows/index.js.map +1 -0
  183. package/dist/components/gantt/components/rows-virtualizer/use-scroll-sync/index.d.ts +10 -0
  184. package/dist/components/gantt/components/rows-virtualizer/use-scroll-sync/index.js +58 -0
  185. package/dist/components/gantt/components/rows-virtualizer/use-scroll-sync/index.js.map +1 -0
  186. package/dist/components/gantt/components/styles.module.css +46 -0
  187. package/dist/components/gantt/components/timeline/index.d.ts +19 -0
  188. package/dist/components/gantt/components/timeline/index.js +45 -0
  189. package/dist/components/gantt/components/timeline/index.js.map +1 -0
  190. package/dist/components/gantt/components/timeline/use-timeline-transform/index.d.ts +29 -0
  191. package/dist/components/gantt/components/timeline/use-timeline-transform/index.js +33 -0
  192. package/dist/components/gantt/components/timeline/use-timeline-transform/index.js.map +1 -0
  193. package/dist/components/gantt/components/timeline-chunk/index.d.ts +25 -0
  194. package/dist/components/gantt/components/timeline-chunk/index.js +43 -0
  195. package/dist/components/gantt/components/timeline-chunk/index.js.map +1 -0
  196. package/dist/components/gantt/constants.d.ts +31 -0
  197. package/dist/components/gantt/constants.js +57 -0
  198. package/dist/components/gantt/constants.js.map +1 -0
  199. package/dist/components/gantt/context/index.d.ts +60 -0
  200. package/dist/components/gantt/context/index.js +78 -0
  201. package/dist/components/gantt/context/index.js.map +1 -0
  202. package/dist/components/gantt/context/store/index.d.ts +45 -0
  203. package/dist/components/gantt/context/store/index.js +42 -0
  204. package/dist/components/gantt/context/store/index.js.map +1 -0
  205. package/dist/components/gantt/context/temporal-data/index.d.ts +48 -0
  206. package/dist/components/gantt/context/temporal-data/index.js +80 -0
  207. package/dist/components/gantt/context/temporal-data/index.js.map +1 -0
  208. package/dist/components/gantt/gantt.d.ts +50 -0
  209. package/dist/components/gantt/gantt.js +51 -0
  210. package/dist/components/gantt/gantt.js.map +1 -0
  211. package/dist/components/gantt/hooks/use-horizontal-scroll-update/index.d.ts +22 -0
  212. package/dist/components/gantt/hooks/use-horizontal-scroll-update/index.js +36 -0
  213. package/dist/components/gantt/hooks/use-horizontal-scroll-update/index.js.map +1 -0
  214. package/dist/components/gantt/hooks/use-layout-subscription/index.d.ts +26 -0
  215. package/dist/components/gantt/hooks/use-layout-subscription/index.js +45 -0
  216. package/dist/components/gantt/hooks/use-layout-subscription/index.js.map +1 -0
  217. package/dist/components/gantt/hooks/use-resize-intersection-effect/index.d.ts +26 -0
  218. package/dist/components/gantt/hooks/use-resize-intersection-effect/index.js +50 -0
  219. package/dist/components/gantt/hooks/use-resize-intersection-effect/index.js.map +1 -0
  220. package/dist/components/gantt/hooks/use-root-element-height/index.d.ts +5 -0
  221. package/dist/components/gantt/hooks/use-root-element-height/index.js +24 -0
  222. package/dist/components/gantt/hooks/use-root-element-height/index.js.map +1 -0
  223. package/dist/components/gantt/hooks/use-scrollbar-height/index.d.ts +5 -0
  224. package/dist/components/gantt/hooks/use-scrollbar-height/index.js +40 -0
  225. package/dist/components/gantt/hooks/use-scrollbar-height/index.js.map +1 -0
  226. package/dist/components/gantt/hooks/use-total-data-region-thresholds/index.d.ts +19 -0
  227. package/dist/components/gantt/hooks/use-total-data-region-thresholds/index.js +87 -0
  228. package/dist/components/gantt/hooks/use-total-data-region-thresholds/index.js.map +1 -0
  229. package/dist/components/gantt/hooks/use-vertical-scroll-update/index.d.ts +22 -0
  230. package/dist/components/gantt/hooks/use-vertical-scroll-update/index.js +38 -0
  231. package/dist/components/gantt/hooks/use-vertical-scroll-update/index.js.map +1 -0
  232. package/dist/components/gantt/public-types.d.ts +31 -0
  233. package/dist/components/gantt/public-types.js +12 -0
  234. package/dist/components/gantt/store.d.ts +51 -0
  235. package/dist/components/gantt/store.js +46 -0
  236. package/dist/components/gantt/store.js.map +1 -0
  237. package/dist/components/gantt/styles.module.css +30 -0
  238. package/dist/components/gantt/types.d.ts +67 -0
  239. package/dist/components/gantt/types.js +12 -0
  240. package/dist/components/gantt/utils/conversions.d.ts +23 -0
  241. package/dist/components/gantt/utils/conversions.js +34 -0
  242. package/dist/components/gantt/utils/conversions.js.map +1 -0
  243. package/dist/components/gantt/utils/dates.d.ts +11 -0
  244. package/dist/components/gantt/utils/dates.js +41 -0
  245. package/dist/components/gantt/utils/dates.js.map +1 -0
  246. package/dist/components/gantt/utils/formatting.d.ts +5 -0
  247. package/dist/components/gantt/utils/formatting.js +54 -0
  248. package/dist/components/gantt/utils/formatting.js.map +1 -0
  249. package/dist/components/gantt/utils/generation.d.ts +19 -0
  250. package/dist/components/gantt/utils/generation.js +37 -0
  251. package/dist/components/gantt/utils/generation.js.map +1 -0
  252. package/dist/components/gantt/utils/helpers.d.ts +26 -0
  253. package/dist/components/gantt/utils/helpers.js +55 -0
  254. package/dist/components/gantt/utils/helpers.js.map +1 -0
  255. package/dist/components/gantt/utils/layout.d.ts +32 -0
  256. package/dist/components/gantt/utils/layout.js +55 -0
  257. package/dist/components/gantt/utils/layout.js.map +1 -0
  258. package/dist/components/gantt/utils/thresholds.d.ts +52 -0
  259. package/dist/components/gantt/utils/thresholds.js +116 -0
  260. package/dist/components/gantt/utils/thresholds.js.map +1 -0
  261. package/dist/components/hero/context.d.ts +2 -2
  262. package/dist/components/hero/index.d.ts +2 -2
  263. package/dist/components/hero/subtitle.d.ts +2 -2
  264. package/dist/components/hero/title.d.ts +2 -2
  265. package/dist/components/hotkey/context.d.ts +4 -4
  266. package/dist/components/hotkey/index.d.ts +2 -2
  267. package/dist/components/hotkey/set.d.ts +2 -2
  268. package/dist/components/icon/context.d.ts +4 -4
  269. package/dist/components/icon/index.d.ts +2 -2
  270. package/dist/components/input/context.d.ts +2 -2
  271. package/dist/components/input/index.d.ts +2 -2
  272. package/dist/components/kanban/card-body.d.ts +2 -2
  273. package/dist/components/kanban/card-header-actions.d.ts +2 -2
  274. package/dist/components/kanban/card-header-title.d.ts +2 -2
  275. package/dist/components/kanban/card-header.d.ts +2 -2
  276. package/dist/components/kanban/card.d.ts +2 -2
  277. package/dist/components/kanban/column-actions.d.ts +2 -2
  278. package/dist/components/kanban/column-container.d.ts +2 -2
  279. package/dist/components/kanban/column-content.d.ts +2 -2
  280. package/dist/components/kanban/column-header-actions.d.ts +2 -2
  281. package/dist/components/kanban/column-header-drag-handle.d.ts +2 -2
  282. package/dist/components/kanban/column-header-title.d.ts +2 -2
  283. package/dist/components/kanban/column-header.d.ts +2 -2
  284. package/dist/components/kanban/column.d.ts +2 -2
  285. package/dist/components/kanban/context.d.ts +2 -2
  286. package/dist/components/kanban/header-actions.d.ts +2 -2
  287. package/dist/components/kanban/header-search.d.ts +2 -2
  288. package/dist/components/kanban/header-title.d.ts +2 -2
  289. package/dist/components/kanban/header.d.ts +2 -2
  290. package/dist/components/kanban/kanban.d.ts +4 -4
  291. package/dist/components/label/context.d.ts +4 -4
  292. package/dist/components/label/index.d.ts +2 -2
  293. package/dist/components/lines/index.d.ts +2 -2
  294. package/dist/components/link/context.d.ts +2 -2
  295. package/dist/components/link/index.d.ts +2 -2
  296. package/dist/components/list/context.d.ts +2 -2
  297. package/dist/components/list/index.d.ts +2 -2
  298. package/dist/components/list/item-content.d.ts +2 -2
  299. package/dist/components/list/item-description.d.ts +2 -2
  300. package/dist/components/list/item-title.d.ts +2 -2
  301. package/dist/components/list/item.d.ts +2 -2
  302. package/dist/components/media-controls/context.d.ts +4 -4
  303. package/dist/components/media-controls/fullscreen-button.d.ts +2 -2
  304. package/dist/components/media-controls/index.d.ts +2 -2
  305. package/dist/components/media-controls/mute-button.d.ts +2 -2
  306. package/dist/components/media-controls/play-button.d.ts +2 -2
  307. package/dist/components/media-controls/playback-rate.d.ts +2 -2
  308. package/dist/components/media-controls/seek-button.d.ts +2 -2
  309. package/dist/components/media-controls/time-display.d.ts +2 -2
  310. package/dist/components/media-controls/time-range.d.ts +2 -2
  311. package/dist/components/media-controls/volume-slider.d.ts +2 -2
  312. package/dist/components/menu/context.d.ts +2 -2
  313. package/dist/components/menu/index.d.ts +2 -2
  314. package/dist/components/menu/item-description.d.ts +2 -2
  315. package/dist/components/menu/item-label.d.ts +2 -2
  316. package/dist/components/menu/item.d.ts +2 -2
  317. package/dist/components/menu/section.d.ts +2 -2
  318. package/dist/components/menu/separator.d.ts +2 -2
  319. package/dist/components/menu/styles.module.css +12 -0
  320. package/dist/components/menu/submenu.d.ts +2 -2
  321. package/dist/components/notice/index.d.ts +2 -2
  322. package/dist/components/notice/index.js +1 -0
  323. package/dist/components/notice/index.js.map +1 -1
  324. package/dist/components/notice/list.d.ts +2 -2
  325. package/dist/components/notice/list.js +10 -1
  326. package/dist/components/notice/list.js.map +1 -1
  327. package/dist/components/notice/notice-icon.d.ts +2 -2
  328. package/dist/components/notice/styles.module.css +27 -0
  329. package/dist/components/options/context.d.ts +2 -2
  330. package/dist/components/options/index.d.ts +2 -2
  331. package/dist/components/options/item-content.d.ts +2 -2
  332. package/dist/components/options/item-description.d.ts +2 -2
  333. package/dist/components/options/item-label.d.ts +2 -2
  334. package/dist/components/options/item.d.ts +2 -2
  335. package/dist/components/options/section.d.ts +2 -2
  336. package/dist/components/pagination/context.d.ts +2 -2
  337. package/dist/components/pagination/index.d.ts +2 -2
  338. package/dist/components/pagination/next.d.ts +2 -2
  339. package/dist/components/pagination/pages.d.ts +2 -2
  340. package/dist/components/pagination/prev.d.ts +2 -2
  341. package/dist/components/popover/content.d.ts +2 -2
  342. package/dist/components/popover/footer.d.ts +2 -2
  343. package/dist/components/popover/index.d.ts +2 -2
  344. package/dist/components/popover/styles.module.css +34 -0
  345. package/dist/components/popover/title.d.ts +2 -2
  346. package/dist/components/popover/trigger.d.ts +2 -2
  347. package/dist/components/query-builder/action-element.d.ts +2 -2
  348. package/dist/components/query-builder/actions.d.ts +4 -4
  349. package/dist/components/query-builder/combinator-selector.d.ts +2 -2
  350. package/dist/components/query-builder/index.d.ts +2 -2
  351. package/dist/components/query-builder/rule-group.d.ts +4 -4
  352. package/dist/components/query-builder/rule.d.ts +2 -2
  353. package/dist/components/query-builder/value-editor.d.ts +2 -2
  354. package/dist/components/query-builder/value-selector.d.ts +2 -2
  355. package/dist/components/query-builder/value-selector.js +1 -1
  356. package/dist/components/radio/context.d.ts +3 -3
  357. package/dist/components/radio/group.d.ts +2 -2
  358. package/dist/components/radio/index.d.ts +2 -2
  359. package/dist/components/search-field/context.d.ts +4 -4
  360. package/dist/components/search-field/index.d.ts +2 -2
  361. package/dist/components/select-field/context.d.ts +4 -4
  362. package/dist/components/select-field/index.d.ts +2 -2
  363. package/dist/components/sidenav/avatar.d.ts +2 -2
  364. package/dist/components/sidenav/content.d.ts +2 -2
  365. package/dist/components/sidenav/context.d.ts +2 -2
  366. package/dist/components/sidenav/footer.d.ts +2 -2
  367. package/dist/components/sidenav/header.d.ts +2 -2
  368. package/dist/components/sidenav/index.d.ts +2 -2
  369. package/dist/components/sidenav/item.d.ts +2 -2
  370. package/dist/components/sidenav/link.d.ts +2 -2
  371. package/dist/components/sidenav/menu-item.d.ts +2 -2
  372. package/dist/components/sidenav/menu.d.ts +2 -2
  373. package/dist/components/sidenav/styles.module.css +10 -2
  374. package/dist/components/sidenav/trigger.d.ts +2 -2
  375. package/dist/components/skeleton/index.d.ts +2 -2
  376. package/dist/components/slider/index.d.ts +2 -2
  377. package/dist/components/status-indicator/index.d.ts +2 -2
  378. package/dist/components/switch/context.d.ts +4 -4
  379. package/dist/components/switch/index.d.ts +2 -2
  380. package/dist/components/switch/styles.module.css +8 -0
  381. package/dist/components/table/body.d.ts +2 -2
  382. package/dist/components/table/cell.d.ts +2 -2
  383. package/dist/components/table/context.d.ts +2 -2
  384. package/dist/components/table/header-cell.d.ts +2 -2
  385. package/dist/components/table/header.d.ts +2 -2
  386. package/dist/components/table/index.d.ts +2 -2
  387. package/dist/components/table/index.js +2 -2
  388. package/dist/components/table/index.js.map +1 -1
  389. package/dist/components/table/row.d.ts +2 -2
  390. package/dist/components/tabs/context.d.ts +6 -6
  391. package/dist/components/tabs/index.d.ts +2 -2
  392. package/dist/components/tabs/list.d.ts +2 -2
  393. package/dist/components/tabs/panel.d.ts +2 -2
  394. package/dist/components/tabs/tab.d.ts +2 -2
  395. package/dist/components/text-area-field/context.d.ts +4 -4
  396. package/dist/components/text-area-field/index.d.ts +2 -2
  397. package/dist/components/text-field/context.d.ts +4 -4
  398. package/dist/components/text-field/index.d.ts +2 -2
  399. package/dist/components/time-field/index.d.ts +2 -2
  400. package/dist/components/tooltip/context.d.ts +2 -2
  401. package/dist/components/tooltip/index.d.ts +2 -2
  402. package/dist/components/tooltip/styles.module.css +35 -0
  403. package/dist/components/tooltip/trigger.d.ts +2 -2
  404. package/dist/components/tree/context.d.ts +3 -3
  405. package/dist/components/tree/index.d.ts +2 -2
  406. package/dist/components/tree/index.js +20 -10
  407. package/dist/components/tree/index.js.map +1 -1
  408. package/dist/components/tree/item-actions.d.ts +2 -2
  409. package/dist/components/tree/item-content.d.ts +2 -2
  410. package/dist/components/tree/item-content.js +3 -2
  411. package/dist/components/tree/item-content.js.map +1 -1
  412. package/dist/components/tree/item-description.d.ts +2 -2
  413. package/dist/components/tree/item-label.d.ts +2 -2
  414. package/dist/components/tree/item-prefix-icon.d.ts +2 -2
  415. package/dist/components/tree/item.d.ts +2 -2
  416. package/dist/components/tree/lines.d.ts +2 -2
  417. package/dist/components/tree/types.d.ts +1 -0
  418. package/dist/components/video/index.d.ts +2 -2
  419. package/dist/components/view-stack/index.d.ts +2 -2
  420. package/dist/components/view-stack/trigger.d.ts +2 -2
  421. package/dist/components/view-stack/view.d.ts +2 -2
  422. package/dist/hooks/use-tree/actions/cache.d.ts +20 -3
  423. package/dist/hooks/use-tree/actions/cache.js +110 -2
  424. package/dist/hooks/use-tree/actions/cache.js.map +1 -1
  425. package/dist/hooks/use-tree/actions/index.d.ts +2 -1
  426. package/dist/hooks/use-tree/actions/index.js +70 -11
  427. package/dist/hooks/use-tree/actions/index.js.map +1 -1
  428. package/dist/hooks/use-tree/state/index.d.ts +20 -1
  429. package/dist/hooks/use-tree/state/index.js +22 -2
  430. package/dist/hooks/use-tree/state/index.js.map +1 -1
  431. package/dist/hooks/use-tree/types.d.ts +14 -0
  432. package/dist/index.d.ts +24 -5
  433. package/dist/index.js +27 -10
  434. package/dist/providers/portal.d.ts +2 -2
  435. package/dist/providers/theme-provider.d.ts +2 -2
  436. package/package.json +64 -6
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","names":[],"sources":["../../../../../../src/components/gantt/components/rows-virtualizer/use-scroll-sync/index.ts"],"sourcesContent":["// __private-exports\n/*\n * Copyright 2026 Hypergiant Galactic Systems Inc. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport { useEffect } from 'react';\nimport { useGanttContext } from '@/components/gantt/context';\nimport { useGanttStoreApi } from '@/components/gantt/context/store';\nimport { useTemporalDataContext } from '@/components/gantt/context/temporal-data';\nimport { timestampWithinBounds } from '@/components/gantt/utils/helpers';\nimport { deriveHorizontalScrollPosition } from '@/components/gantt/utils/layout';\n\ntype UseScrollSyncProps = {\n horizontalScrollElement: HTMLDivElement | null;\n};\n\nexport function useScrollSync({ horizontalScrollElement }: UseScrollSyncProps) {\n const { ganttContentElement, ganttPanelElement, rootElement } =\n useGanttContext();\n const { totalBounds, msPerPx } = useTemporalDataContext();\n const { startMs: totalStartMs, endMs: totalEndMs } = totalBounds;\n const store = useGanttStoreApi();\n\n useEffect(() => {\n if (!horizontalScrollElement) {\n return;\n }\n\n // Read imperatively to avoid re-triggering on scroll-driven position updates.\n // This effect should only run when the dataset changes (totalBounds) or\n // when another value changes that affects the effective scroll position\n // (like msPerPx which scales the timeline)\n const currentPositionMs = store.getState().currentPositionMs;\n const bounds = { startMs: totalStartMs, endMs: totalEndMs };\n const resetScrollPosition = () =>\n horizontalScrollElement.scrollTo({\n left: 0,\n });\n ganttContentElement?.scrollTo({ top: rootElement?.scrollTop ?? 0 });\n ganttPanelElement?.scrollTo({ top: rootElement?.scrollTop ?? 0 });\n\n const timestampOutsideDataRange = !timestampWithinBounds(\n currentPositionMs,\n bounds,\n );\n\n if (timestampOutsideDataRange) {\n resetScrollPosition();\n store.setState({ currentPositionMs: totalStartMs });\n\n return;\n }\n\n const scrollPosition = deriveHorizontalScrollPosition(\n currentPositionMs,\n msPerPx,\n bounds,\n );\n\n horizontalScrollElement.scrollTo({\n left: scrollPosition,\n });\n }, [\n totalStartMs,\n totalEndMs,\n msPerPx,\n horizontalScrollElement,\n store,\n ganttContentElement,\n ganttPanelElement,\n rootElement,\n ]);\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAwBA,SAAgB,cAAc,EAAE,2BAA+C;CAC7E,MAAM,EAAE,qBAAqB,mBAAmB,gBAC9C,iBAAiB;CACnB,MAAM,EAAE,aAAa,YAAY,wBAAwB;CACzD,MAAM,EAAE,SAAS,cAAc,OAAO,eAAe;CACrD,MAAM,QAAQ,kBAAkB;AAEhC,iBAAgB;AACd,MAAI,CAAC,wBACH;EAOF,MAAM,oBAAoB,MAAM,UAAU,CAAC;EAC3C,MAAM,SAAS;GAAE,SAAS;GAAc,OAAO;GAAY;EAC3D,MAAM,4BACJ,wBAAwB,SAAS,EAC/B,MAAM,GACP,CAAC;AACJ,uBAAqB,SAAS,EAAE,KAAK,aAAa,aAAa,GAAG,CAAC;AACnE,qBAAmB,SAAS,EAAE,KAAK,aAAa,aAAa,GAAG,CAAC;AAOjE,MALkC,CAAC,sBACjC,mBACA,OACD,EAE8B;AAC7B,wBAAqB;AACrB,SAAM,SAAS,EAAE,mBAAmB,cAAc,CAAC;AAEnD;;EAGF,MAAM,iBAAiB,+BACrB,mBACA,SACA,OACD;AAED,0BAAwB,SAAS,EAC/B,MAAM,gBACP,CAAC;IACD;EACD;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACD,CAAC"}
@@ -0,0 +1,46 @@
1
+ /*
2
+ * Copyright 2026 Hypergiant Galactic Systems Inc. All rights reserved.
3
+ * This file is licensed to you under the Apache License, Version 2.0 (the "License");
4
+ * you may not use this file except in compliance with the License. You may obtain a copy
5
+ * of the License at https://www.apache.org/licenses/LICENSE-2.0
6
+ *
7
+ * Unless required by applicable law or agreed to in writing, software distributed under
8
+ * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
9
+ * OF ANY KIND, either express or implied. See the License for the specific language
10
+ * governing permissions and limitations under the License.
11
+ */
12
+
13
+ @reference '@accelint/design-foundation/styles';
14
+
15
+ @layer components.l1 {
16
+ .chunk {
17
+ --chunk-width: attr(data-width px);
18
+ min-width: var(--chunk-width);
19
+ }
20
+
21
+ .chunk-label {
22
+ @apply font-display text-body-s fg-primary-muted flex justify-center;
23
+ transform: translateX(-50%);
24
+ }
25
+
26
+ .chunk-ticks-container {
27
+ @apply flex;
28
+ }
29
+
30
+ .chunk-tick-container {
31
+ @apply flex flex-1;
32
+ }
33
+
34
+ .chunk-tick {
35
+ @apply fg-disabled h-[6px] w-px bg-current;
36
+ }
37
+
38
+ .timeline {
39
+ @apply flex;
40
+ transform: translateX(var(--translate-x));
41
+ }
42
+
43
+ .timeline-container {
44
+ @apply flex overflow-hidden;
45
+ }
46
+ }
@@ -0,0 +1,19 @@
1
+ /*
2
+ * Copyright 2026 Hypergiant Galactic Systems Inc. All rights reserved.
3
+ * This file is licensed to you under the Apache License, Version 2.0 (the "License");
4
+ * you may not use this file except in compliance with the License. You may obtain a copy
5
+ * of the License at https://www.apache.org/licenses/LICENSE-2.0
6
+ *
7
+ * Unless required by applicable law or agreed to in writing, software distributed under
8
+ * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
9
+ * OF ANY KIND, either express or implied. See the License for the specific language
10
+ * governing permissions and limitations under the License.
11
+ */
12
+
13
+ import * as react_jsx_runtime216 from "react/jsx-runtime";
14
+
15
+ //#region src/components/gantt/components/timeline/index.d.ts
16
+ declare function Timeline(): react_jsx_runtime216.JSX.Element;
17
+ //#endregion
18
+ export { Timeline };
19
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,45 @@
1
+ /*
2
+ * Copyright 2026 Hypergiant Galactic Systems Inc. All rights reserved.
3
+ * This file is licensed to you under the Apache License, Version 2.0 (the "License");
4
+ * you may not use this file except in compliance with the License. You may obtain a copy
5
+ * of the License at https://www.apache.org/licenses/LICENSE-2.0
6
+ *
7
+ * Unless required by applicable law or agreed to in writing, software distributed under
8
+ * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
9
+ * OF ANY KIND, either express or implied. See the License for the specific language
10
+ * governing permissions and limitations under the License.
11
+ */
12
+
13
+
14
+ import { useGanttContext } from "../../context/index.js";
15
+ import { useTemporalDataContext } from "../../context/temporal-data/index.js";
16
+ import { TimelineChunk } from "../timeline-chunk/index.js";
17
+ import { useTimelineTransform } from "./use-timeline-transform/index.js";
18
+ import { useRef } from "react";
19
+ import { jsx } from "react/jsx-runtime";
20
+ import styles from "../styles.module.css";
21
+
22
+ //#region src/components/gantt/components/timeline/index.tsx
23
+ function Timeline() {
24
+ const { assignTimelineContainerElementRef } = useGanttContext();
25
+ const { msPerPx, timelineChunks } = useTemporalDataContext();
26
+ const timelineElementRef = useRef(null);
27
+ useTimelineTransform({
28
+ timelineElementRef,
29
+ msPerPx,
30
+ timelineChunks
31
+ });
32
+ return /* @__PURE__ */ jsx("div", {
33
+ ref: assignTimelineContainerElementRef,
34
+ className: styles["timeline-container"],
35
+ children: /* @__PURE__ */ jsx("div", {
36
+ ref: timelineElementRef,
37
+ className: styles.timeline,
38
+ children: timelineChunks.map((chunk) => /* @__PURE__ */ jsx(TimelineChunk, { timestampMs: chunk.timestampMs }, chunk.timestampMs))
39
+ })
40
+ });
41
+ }
42
+
43
+ //#endregion
44
+ export { Timeline };
45
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","names":[],"sources":["../../../../../src/components/gantt/components/timeline/index.tsx"],"sourcesContent":["// __private-exports\n/*\n * Copyright 2026 Hypergiant Galactic Systems Inc. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport { useRef } from 'react';\nimport { TimelineChunk } from '@/components/gantt/components/timeline-chunk';\nimport { useGanttContext } from '@/components/gantt/context';\nimport { useTemporalDataContext } from '@/components/gantt/context/temporal-data';\nimport styles from '../styles.module.css';\nimport { useTimelineTransform } from './use-timeline-transform';\n\nexport function Timeline() {\n const { assignTimelineContainerElementRef } = useGanttContext();\n const { msPerPx, timelineChunks } = useTemporalDataContext();\n const timelineElementRef = useRef<HTMLDivElement | null>(null);\n\n useTimelineTransform({\n timelineElementRef: timelineElementRef,\n msPerPx,\n timelineChunks,\n });\n\n return (\n <div\n ref={assignTimelineContainerElementRef}\n className={styles['timeline-container']}\n >\n <div ref={timelineElementRef} className={styles.timeline}>\n {timelineChunks.map((chunk) => (\n <TimelineChunk\n key={chunk.timestampMs}\n timestampMs={chunk.timestampMs}\n />\n ))}\n </div>\n </div>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAoBA,SAAgB,WAAW;CACzB,MAAM,EAAE,sCAAsC,iBAAiB;CAC/D,MAAM,EAAE,SAAS,mBAAmB,wBAAwB;CAC5D,MAAM,qBAAqB,OAA8B,KAAK;AAE9D,sBAAqB;EACC;EACpB;EACA;EACD,CAAC;AAEF,QACE,oBAAC;EACC,KAAK;EACL,WAAW,OAAO;YAElB,oBAAC;GAAI,KAAK;GAAoB,WAAW,OAAO;aAC7C,eAAe,KAAK,UACnB,oBAAC,iBAEC,aAAa,MAAM,eADd,MAAM,YAEX,CACF;IACE;GACF"}
@@ -0,0 +1,29 @@
1
+ /*
2
+ * Copyright 2026 Hypergiant Galactic Systems Inc. All rights reserved.
3
+ * This file is licensed to you under the Apache License, Version 2.0 (the "License");
4
+ * you may not use this file except in compliance with the License. You may obtain a copy
5
+ * of the License at https://www.apache.org/licenses/LICENSE-2.0
6
+ *
7
+ * Unless required by applicable law or agreed to in writing, software distributed under
8
+ * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
9
+ * OF ANY KIND, either express or implied. See the License for the specific language
10
+ * governing permissions and limitations under the License.
11
+ */
12
+
13
+ import { GanttTimelineChunkObject } from "../../../types.js";
14
+ import { RefObject } from "react";
15
+
16
+ //#region src/components/gantt/components/timeline/use-timeline-transform/index.d.ts
17
+ type UseTimelineTransformProps = {
18
+ timelineElementRef: RefObject<HTMLDivElement | null>;
19
+ msPerPx: number;
20
+ timelineChunks: GanttTimelineChunkObject[];
21
+ };
22
+ declare function useTimelineTransform({
23
+ timelineElementRef,
24
+ msPerPx,
25
+ timelineChunks
26
+ }: UseTimelineTransformProps): void;
27
+ //#endregion
28
+ export { useTimelineTransform };
29
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,33 @@
1
+ /*
2
+ * Copyright 2026 Hypergiant Galactic Systems Inc. All rights reserved.
3
+ * This file is licensed to you under the Apache License, Version 2.0 (the "License");
4
+ * you may not use this file except in compliance with the License. You may obtain a copy
5
+ * of the License at https://www.apache.org/licenses/LICENSE-2.0
6
+ *
7
+ * Unless required by applicable law or agreed to in writing, software distributed under
8
+ * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
9
+ * OF ANY KIND, either express or implied. See the License for the specific language
10
+ * governing permissions and limitations under the License.
11
+ */
12
+
13
+
14
+ import { selectors } from "../../../store.js";
15
+ import { useLayoutSubscription } from "../../../hooks/use-layout-subscription/index.js";
16
+ import { deriveTranslateXValue } from "../../../utils/layout.js";
17
+ import { useCallback } from "react";
18
+
19
+ //#region src/components/gantt/components/timeline/use-timeline-transform/index.ts
20
+ function useTimelineTransform({ timelineElementRef, msPerPx, timelineChunks }) {
21
+ useLayoutSubscription({
22
+ callback: useCallback((currentPositionMs) => {
23
+ if (!timelineElementRef.current) return;
24
+ const translateX = deriveTranslateXValue(msPerPx, timelineChunks, currentPositionMs);
25
+ timelineElementRef.current.style.transform = `translateX(${translateX}px)`;
26
+ }, [msPerPx, timelineChunks]),
27
+ selector: selectors.currentPositionMs
28
+ });
29
+ }
30
+
31
+ //#endregion
32
+ export { useTimelineTransform };
33
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","names":[],"sources":["../../../../../../src/components/gantt/components/timeline/use-timeline-transform/index.ts"],"sourcesContent":["// __private-exports\n/*\n * Copyright 2026 Hypergiant Galactic Systems Inc. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport { type RefObject, useCallback } from 'react';\nimport { useLayoutSubscription } from '@/components/gantt/hooks/use-layout-subscription';\nimport { selectors } from '@/components/gantt/store';\nimport { deriveTranslateXValue } from '@/components/gantt/utils/layout';\nimport type { GanttTimelineChunkObject } from '@/components/gantt/types';\n\ntype UseTimelineTransformProps = {\n timelineElementRef: RefObject<HTMLDivElement | null>;\n msPerPx: number;\n timelineChunks: GanttTimelineChunkObject[];\n};\n\nexport function useTimelineTransform({\n timelineElementRef,\n msPerPx,\n timelineChunks,\n}: UseTimelineTransformProps) {\n const updateElementTranslateX = useCallback(\n (currentPositionMs: number) => {\n if (!timelineElementRef.current) {\n return;\n }\n\n const translateX = deriveTranslateXValue(\n msPerPx,\n timelineChunks,\n currentPositionMs,\n );\n\n timelineElementRef.current.style.transform = `translateX(${translateX}px)`;\n },\n [msPerPx, timelineChunks],\n );\n\n useLayoutSubscription({\n callback: updateElementTranslateX,\n selector: selectors.currentPositionMs,\n });\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;AAyBA,SAAgB,qBAAqB,EACnC,oBACA,SACA,kBAC4B;AAkB5B,uBAAsB;EACpB,UAlB8B,aAC7B,sBAA8B;AAC7B,OAAI,CAAC,mBAAmB,QACtB;GAGF,MAAM,aAAa,sBACjB,SACA,gBACA,kBACD;AAED,sBAAmB,QAAQ,MAAM,YAAY,cAAc,WAAW;KAExE,CAAC,SAAS,eAAe,CAC1B;EAIC,UAAU,UAAU;EACrB,CAAC"}
@@ -0,0 +1,25 @@
1
+ /*
2
+ * Copyright 2026 Hypergiant Galactic Systems Inc. All rights reserved.
3
+ * This file is licensed to you under the Apache License, Version 2.0 (the "License");
4
+ * you may not use this file except in compliance with the License. You may obtain a copy
5
+ * of the License at https://www.apache.org/licenses/LICENSE-2.0
6
+ *
7
+ * Unless required by applicable law or agreed to in writing, software distributed under
8
+ * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
9
+ * OF ANY KIND, either express or implied. See the License for the specific language
10
+ * governing permissions and limitations under the License.
11
+ */
12
+
13
+ import * as react_jsx_runtime222 from "react/jsx-runtime";
14
+
15
+ //#region src/components/gantt/components/timeline-chunk/index.d.ts
16
+ declare function Tick(): react_jsx_runtime222.JSX.Element;
17
+ type TimelineChunkProps = {
18
+ timestampMs: number;
19
+ };
20
+ declare function TimelineChunk({
21
+ timestampMs
22
+ }: TimelineChunkProps): react_jsx_runtime222.JSX.Element;
23
+ //#endregion
24
+ export { Tick, TimelineChunk };
25
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,43 @@
1
+ /*
2
+ * Copyright 2026 Hypergiant Galactic Systems Inc. All rights reserved.
3
+ * This file is licensed to you under the Apache License, Version 2.0 (the "License");
4
+ * you may not use this file except in compliance with the License. You may obtain a copy
5
+ * of the License at https://www.apache.org/licenses/LICENSE-2.0
6
+ *
7
+ * Unless required by applicable law or agreed to in writing, software distributed under
8
+ * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
9
+ * OF ANY KIND, either express or implied. See the License for the specific language
10
+ * governing permissions and limitations under the License.
11
+ */
12
+
13
+
14
+ import { TIMELINE_CHUNK_WIDTH_PX } from "../../constants.js";
15
+ import { formatTimestampLabel } from "../../utils/formatting.js";
16
+ import { jsx, jsxs } from "react/jsx-runtime";
17
+ import styles from "../styles.module.css";
18
+
19
+ //#region src/components/gantt/components/timeline-chunk/index.tsx
20
+ function Tick() {
21
+ return /* @__PURE__ */ jsx("div", {
22
+ className: styles["chunk-tick-container"],
23
+ children: /* @__PURE__ */ jsx("span", { className: styles["chunk-tick"] })
24
+ });
25
+ }
26
+ function TimelineChunk({ timestampMs }) {
27
+ return /* @__PURE__ */ jsxs("div", {
28
+ className: styles.chunk,
29
+ "data-width": TIMELINE_CHUNK_WIDTH_PX,
30
+ "data-timestamp": timestampMs,
31
+ children: [/* @__PURE__ */ jsx("div", {
32
+ className: styles["chunk-label"],
33
+ children: formatTimestampLabel(timestampMs)
34
+ }), /* @__PURE__ */ jsxs("div", {
35
+ className: styles["chunk-ticks-container"],
36
+ children: [/* @__PURE__ */ jsx(Tick, {}), /* @__PURE__ */ jsx(Tick, {})]
37
+ })]
38
+ });
39
+ }
40
+
41
+ //#endregion
42
+ export { Tick, TimelineChunk };
43
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","names":[],"sources":["../../../../../src/components/gantt/components/timeline-chunk/index.tsx"],"sourcesContent":["// __private-exports\n/*\n * Copyright 2026 Hypergiant Galactic Systems Inc. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport { TIMELINE_CHUNK_WIDTH_PX } from '../../constants';\nimport { formatTimestampLabel } from '../../utils/formatting';\nimport styles from '../styles.module.css';\n\nexport function Tick() {\n return (\n <div className={styles['chunk-tick-container']}>\n <span className={styles['chunk-tick']} />\n </div>\n );\n}\n\ntype TimelineChunkProps = {\n timestampMs: number;\n};\n\nexport function TimelineChunk({ timestampMs }: TimelineChunkProps) {\n return (\n <div\n className={styles.chunk}\n data-width={TIMELINE_CHUNK_WIDTH_PX}\n data-timestamp={timestampMs}\n >\n <div className={styles['chunk-label']}>\n {formatTimestampLabel(timestampMs)}\n </div>\n <div className={styles['chunk-ticks-container']}>\n <Tick />\n <Tick />\n </div>\n </div>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;AAiBA,SAAgB,OAAO;AACrB,QACE,oBAAC;EAAI,WAAW,OAAO;YACrB,oBAAC,UAAK,WAAW,OAAO,gBAAiB;GACrC;;AAQV,SAAgB,cAAc,EAAE,eAAmC;AACjE,QACE,qBAAC;EACC,WAAW,OAAO;EAClB,cAAY;EACZ,kBAAgB;aAEhB,oBAAC;GAAI,WAAW,OAAO;aACpB,qBAAqB,YAAY;IAC9B,EACN,qBAAC;GAAI,WAAW,OAAO;cACrB,oBAAC,SAAO,EACR,oBAAC,SAAO;IACJ;GACF"}
@@ -0,0 +1,31 @@
1
+ /*
2
+ * Copyright 2026 Hypergiant Galactic Systems Inc. All rights reserved.
3
+ * This file is licensed to you under the Apache License, Version 2.0 (the "License");
4
+ * you may not use this file except in compliance with the License. You may obtain a copy
5
+ * of the License at https://www.apache.org/licenses/LICENSE-2.0
6
+ *
7
+ * Unless required by applicable law or agreed to in writing, software distributed under
8
+ * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
9
+ * OF ANY KIND, either express or implied. See the License for the specific language
10
+ * governing permissions and limitations under the License.
11
+ */
12
+
13
+ import { GanttHoursTimescale, GanttMinutesTimescale, GanttTimescale } from "./types.js";
14
+
15
+ //#region src/components/gantt/constants.d.ts
16
+ declare const MS_PER_MINUTE: number;
17
+ declare const MS_PER_HOUR: number;
18
+ declare const HOURS_MAPPING: Record<GanttHoursTimescale, number>;
19
+ declare const MINUTES_MAPPING: Record<GanttMinutesTimescale, number>;
20
+ declare const TIMESCALE_MAPPING: Record<GanttTimescale, number>;
21
+ declare const TIMELINE_CHUNK_WIDTH_PX = 80;
22
+ declare const BUFFERED_CHUNK_COUNT = 4;
23
+ declare const GANTT_ROW_HEIGHT_PX = 40;
24
+ declare const GANTT_ROW_ELEMENT_HEIGHT_PX = 30;
25
+ declare const GANTT_CONTAINER_TOP_PX = 12;
26
+ declare const ROW_VIRTUALIZATION_OVERSCAN = 1;
27
+ declare const GANTT_HEADER_HEIGHT_PX = 64;
28
+ declare const TIMESCALE_OPTIONS: GanttTimescale[];
29
+ //#endregion
30
+ export { BUFFERED_CHUNK_COUNT, GANTT_CONTAINER_TOP_PX, GANTT_HEADER_HEIGHT_PX, GANTT_ROW_ELEMENT_HEIGHT_PX, GANTT_ROW_HEIGHT_PX, HOURS_MAPPING, MINUTES_MAPPING, MS_PER_HOUR, MS_PER_MINUTE, ROW_VIRTUALIZATION_OVERSCAN, TIMELINE_CHUNK_WIDTH_PX, TIMESCALE_MAPPING, TIMESCALE_OPTIONS };
31
+ //# sourceMappingURL=constants.d.ts.map
@@ -0,0 +1,57 @@
1
+ /*
2
+ * Copyright 2026 Hypergiant Galactic Systems Inc. All rights reserved.
3
+ * This file is licensed to you under the Apache License, Version 2.0 (the "License");
4
+ * you may not use this file except in compliance with the License. You may obtain a copy
5
+ * of the License at https://www.apache.org/licenses/LICENSE-2.0
6
+ *
7
+ * Unless required by applicable law or agreed to in writing, software distributed under
8
+ * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
9
+ * OF ANY KIND, either express or implied. See the License for the specific language
10
+ * governing permissions and limitations under the License.
11
+ */
12
+
13
+
14
+ //#region src/components/gantt/constants.ts
15
+ const MS_PER_SECOND = 1e3;
16
+ const MS_PER_MINUTE = MS_PER_SECOND * 60;
17
+ const MS_PER_HOUR = MS_PER_MINUTE * 60;
18
+ const MS_PER_DAY = MS_PER_HOUR * 24;
19
+ const HOURS_MAPPING = {
20
+ "1h": MS_PER_HOUR,
21
+ "2h": MS_PER_HOUR * 2,
22
+ "6h": MS_PER_HOUR * 6,
23
+ "12h": MS_PER_HOUR * 12,
24
+ "24h": MS_PER_DAY
25
+ };
26
+ const MINUTES_MAPPING = {
27
+ "1m": MS_PER_MINUTE,
28
+ "5m": MS_PER_MINUTE * 5,
29
+ "10m": MS_PER_MINUTE * 10,
30
+ "30m": MS_PER_MINUTE * 30
31
+ };
32
+ const TIMESCALE_MAPPING = {
33
+ ...HOURS_MAPPING,
34
+ ...MINUTES_MAPPING
35
+ };
36
+ const TIMELINE_CHUNK_WIDTH_PX = 80;
37
+ const BUFFERED_CHUNK_COUNT = 4;
38
+ const GANTT_ROW_HEIGHT_PX = 40;
39
+ const GANTT_ROW_ELEMENT_HEIGHT_PX = 30;
40
+ const GANTT_CONTAINER_TOP_PX = 12;
41
+ const ROW_VIRTUALIZATION_OVERSCAN = 1;
42
+ const GANTT_HEADER_HEIGHT_PX = 64;
43
+ const TIMESCALE_OPTIONS = [
44
+ "1m",
45
+ "5m",
46
+ "10m",
47
+ "30m",
48
+ "1h",
49
+ "2h",
50
+ "6h",
51
+ "12h",
52
+ "24h"
53
+ ];
54
+
55
+ //#endregion
56
+ export { BUFFERED_CHUNK_COUNT, GANTT_CONTAINER_TOP_PX, GANTT_HEADER_HEIGHT_PX, GANTT_ROW_ELEMENT_HEIGHT_PX, GANTT_ROW_HEIGHT_PX, HOURS_MAPPING, MINUTES_MAPPING, MS_PER_HOUR, MS_PER_MINUTE, ROW_VIRTUALIZATION_OVERSCAN, TIMELINE_CHUNK_WIDTH_PX, TIMESCALE_MAPPING, TIMESCALE_OPTIONS };
57
+ //# sourceMappingURL=constants.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.js","names":["HOURS_MAPPING: Record<GanttHoursTimescale, number>","MINUTES_MAPPING: Record<GanttMinutesTimescale, number>","TIMESCALE_MAPPING: Record<GanttTimescale, number>","TIMESCALE_OPTIONS: GanttTimescale[]"],"sources":["../../../src/components/gantt/constants.ts"],"sourcesContent":["// __private-exports\n/*\n * Copyright 2026 Hypergiant Galactic Systems Inc. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport type {\n GanttHoursTimescale,\n GanttMinutesTimescale,\n GanttTimescale,\n} from './types';\n\nconst MS_PER_SECOND = 1000;\nexport const MS_PER_MINUTE = MS_PER_SECOND * 60;\nexport const MS_PER_HOUR = MS_PER_MINUTE * 60;\nconst MS_PER_DAY = MS_PER_HOUR * 24;\n\nexport const HOURS_MAPPING: Record<GanttHoursTimescale, number> = {\n '1h': MS_PER_HOUR,\n '2h': MS_PER_HOUR * 2,\n '6h': MS_PER_HOUR * 6,\n '12h': MS_PER_HOUR * 12,\n '24h': MS_PER_DAY,\n};\n\nexport const MINUTES_MAPPING: Record<GanttMinutesTimescale, number> = {\n '1m': MS_PER_MINUTE,\n '5m': MS_PER_MINUTE * 5,\n '10m': MS_PER_MINUTE * 10,\n '30m': MS_PER_MINUTE * 30,\n};\n\nexport const TIMESCALE_MAPPING: Record<GanttTimescale, number> = {\n ...HOURS_MAPPING,\n ...MINUTES_MAPPING,\n};\n\nexport const TIMELINE_CHUNK_WIDTH_PX = 80;\n\n// Important: This needs to be at least 4 so we have at least\n// one chunk completely out of view on either end of\n// the timeline. Otherwise, the useResizeIntersectionEffect\n// hook will create an infinite rendering loop because\n// of the IntersectionObserver logic.\nexport const BUFFERED_CHUNK_COUNT = 4;\nexport const GANTT_ROW_HEIGHT_PX = 40;\nexport const GANTT_ROW_ELEMENT_HEIGHT_PX = 30;\nexport const GANTT_CONTAINER_TOP_PX = 12;\nexport const ROW_VIRTUALIZATION_OVERSCAN = 1;\nexport const GANTT_HEADER_HEIGHT_PX = 64;\n\nexport const TIMESCALE_OPTIONS: GanttTimescale[] = [\n '1m',\n '5m',\n '10m',\n '30m',\n '1h',\n '2h',\n '6h',\n '12h',\n '24h',\n];\n"],"mappings":";;;;;;;;;;;;;;AAmBA,MAAM,gBAAgB;AACtB,MAAa,gBAAgB,gBAAgB;AAC7C,MAAa,cAAc,gBAAgB;AAC3C,MAAM,aAAa,cAAc;AAEjC,MAAaA,gBAAqD;CAChE,MAAM;CACN,MAAM,cAAc;CACpB,MAAM,cAAc;CACpB,OAAO,cAAc;CACrB,OAAO;CACR;AAED,MAAaC,kBAAyD;CACpE,MAAM;CACN,MAAM,gBAAgB;CACtB,OAAO,gBAAgB;CACvB,OAAO,gBAAgB;CACxB;AAED,MAAaC,oBAAoD;CAC/D,GAAG;CACH,GAAG;CACJ;AAED,MAAa,0BAA0B;AAOvC,MAAa,uBAAuB;AACpC,MAAa,sBAAsB;AACnC,MAAa,8BAA8B;AAC3C,MAAa,yBAAyB;AACtC,MAAa,8BAA8B;AAC3C,MAAa,yBAAyB;AAEtC,MAAaC,oBAAsC;CACjD;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACD"}
@@ -0,0 +1,60 @@
1
+ /*
2
+ * Copyright 2026 Hypergiant Galactic Systems Inc. All rights reserved.
3
+ * This file is licensed to you under the Apache License, Version 2.0 (the "License");
4
+ * you may not use this file except in compliance with the License. You may obtain a copy
5
+ * of the License at https://www.apache.org/licenses/LICENSE-2.0
6
+ *
7
+ * Unless required by applicable law or agreed to in writing, software distributed under
8
+ * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
9
+ * OF ANY KIND, either express or implied. See the License for the specific language
10
+ * governing permissions and limitations under the License.
11
+ */
12
+
13
+ import { GanttThresholdProps, GanttTimescale } from "../types.js";
14
+ import * as react50 from "react";
15
+ import { PropsWithChildren } from "react";
16
+ import * as react_jsx_runtime207 from "react/jsx-runtime";
17
+
18
+ //#region src/components/gantt/context/index.d.ts
19
+ type GanttContextValue = {
20
+ timelineContainerElement: HTMLDivElement | null;
21
+ headerElement: HTMLDivElement | null;
22
+ rootElement: HTMLDivElement | null;
23
+ ganttContentElement: HTMLDivElement | null;
24
+ ganttPanelElement: HTMLDivElement | null;
25
+ rowHeightPx: number;
26
+ assignTimelineContainerElementRef: (node: HTMLDivElement | null) => void;
27
+ assignHeaderElementRef: (node: HTMLDivElement | null) => void;
28
+ assignRootElementRef: (node: HTMLDivElement | null) => void;
29
+ assignGanttContentElementRef: (node: HTMLDivElement | null) => void;
30
+ assignGanttPanelElementRef: (node: HTMLDivElement | null) => void;
31
+ };
32
+ declare const GanttContext: react50.Context<GanttContextValue | undefined>;
33
+ type GanttProviderProps = {
34
+ /** Start of the total timeline range in epoch milliseconds. */
35
+ startTimeMs: number;
36
+ /** End of the total timeline range in epoch milliseconds. Must be >= startTimeMs. */
37
+ endTimeMs: number;
38
+ /** Interval duration controlling timeline tick mark spacing. */
39
+ timescale: GanttTimescale;
40
+ /** Current time in epoch milliseconds, used for elapsed-state styling. */
41
+ currentTimeMs: number;
42
+ /** Optional threshold configuration for edge-of-data notifications. */
43
+ thresholdProps?: GanttThresholdProps;
44
+ /** Height of each row in pixels. @default 40 */
45
+ rowHeightPx?: number;
46
+ };
47
+ declare function GanttProvider({
48
+ children,
49
+ startTimeMs,
50
+ endTimeMs,
51
+ timescale,
52
+ thresholdProps,
53
+ currentTimeMs,
54
+ rowHeightPx
55
+ }: PropsWithChildren<GanttProviderProps>): react_jsx_runtime207.JSX.Element;
56
+ /** @throws {Error} If called outside of a GanttProvider. */
57
+ declare function useGanttContext(): GanttContextValue;
58
+ //#endregion
59
+ export { GanttContext, GanttContextValue, GanttProvider, GanttProviderProps, useGanttContext };
60
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,78 @@
1
+ /*
2
+ * Copyright 2026 Hypergiant Galactic Systems Inc. All rights reserved.
3
+ * This file is licensed to you under the Apache License, Version 2.0 (the "License");
4
+ * you may not use this file except in compliance with the License. You may obtain a copy
5
+ * of the License at https://www.apache.org/licenses/LICENSE-2.0
6
+ *
7
+ * Unless required by applicable law or agreed to in writing, software distributed under
8
+ * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
9
+ * OF ANY KIND, either express or implied. See the License for the specific language
10
+ * governing permissions and limitations under the License.
11
+ */
12
+
13
+
14
+ import { GANTT_ROW_HEIGHT_PX } from "../constants.js";
15
+ import { GanttStoreProvider } from "./store/index.js";
16
+ import { RootContainer } from "../components/containers/internal/index.js";
17
+ import { TemporalDataProvider } from "./temporal-data/index.js";
18
+ import { createContext, useContext, useMemo, useState } from "react";
19
+ import { jsx } from "react/jsx-runtime";
20
+
21
+ //#region src/components/gantt/context/index.tsx
22
+ const GanttContext = createContext(void 0);
23
+ function GanttProvider({ children, startTimeMs, endTimeMs, timescale, thresholdProps, currentTimeMs, rowHeightPx = GANTT_ROW_HEIGHT_PX }) {
24
+ const [timelineContainerElement, setTimelineContainerElement] = useState(null);
25
+ const [headerElement, setHeaderElement] = useState(null);
26
+ const [rootElement, setRootElement] = useState(null);
27
+ const [ganttContentElement, setGanttContentElement] = useState(null);
28
+ const [ganttPanelElement, setGanttPanelElement] = useState(null);
29
+ const midpointMs = startTimeMs + (endTimeMs - startTimeMs) / 2;
30
+ const totalBounds = useMemo(() => ({
31
+ startMs: startTimeMs,
32
+ endMs: endTimeMs
33
+ }), [startTimeMs, endTimeMs]);
34
+ const value = useMemo(() => ({
35
+ assignTimelineContainerElementRef: setTimelineContainerElement,
36
+ assignHeaderElementRef: setHeaderElement,
37
+ assignRootElementRef: setRootElement,
38
+ assignGanttContentElementRef: setGanttContentElement,
39
+ assignGanttPanelElementRef: setGanttPanelElement,
40
+ timelineContainerElement,
41
+ headerElement,
42
+ rootElement,
43
+ ganttContentElement,
44
+ ganttPanelElement,
45
+ rowHeightPx
46
+ }), [
47
+ timelineContainerElement,
48
+ headerElement,
49
+ rootElement,
50
+ ganttContentElement,
51
+ ganttPanelElement,
52
+ rowHeightPx
53
+ ]);
54
+ return /* @__PURE__ */ jsx(GanttContext.Provider, {
55
+ value,
56
+ children: /* @__PURE__ */ jsx(GanttStoreProvider, {
57
+ startTimeMs: midpointMs,
58
+ children: /* @__PURE__ */ jsx(TemporalDataProvider, {
59
+ timescale,
60
+ totalBounds,
61
+ threshold: thresholdProps?.threshold,
62
+ currentTimeMs,
63
+ onThresholdMet: thresholdProps?.onThresholdMet,
64
+ children: /* @__PURE__ */ jsx(RootContainer, { children })
65
+ })
66
+ })
67
+ });
68
+ }
69
+ /** @throws {Error} If called outside of a GanttProvider. */
70
+ function useGanttContext() {
71
+ const ctx = useContext(GanttContext);
72
+ if (!ctx) throw new Error("useGanttContext must be used within a GanttProvider");
73
+ return ctx;
74
+ }
75
+
76
+ //#endregion
77
+ export { GanttContext, GanttProvider, useGanttContext };
78
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","names":[],"sources":["../../../../src/components/gantt/context/index.tsx"],"sourcesContent":["// __private-exports\n/*\n * Copyright 2026 Hypergiant Galactic Systems Inc. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {\n createContext,\n type PropsWithChildren,\n useContext,\n useMemo,\n useState,\n} from 'react';\nimport { RootContainer } from '../components/containers/internal';\nimport { GANTT_ROW_HEIGHT_PX } from '../constants';\nimport { GanttStoreProvider } from './store';\nimport { TemporalDataProvider } from './temporal-data';\nimport type {\n GanttThresholdProps,\n GanttTimescale,\n} from '@/components/gantt/types';\n\nexport type GanttContextValue = {\n timelineContainerElement: HTMLDivElement | null;\n headerElement: HTMLDivElement | null;\n rootElement: HTMLDivElement | null;\n ganttContentElement: HTMLDivElement | null;\n ganttPanelElement: HTMLDivElement | null;\n rowHeightPx: number;\n assignTimelineContainerElementRef: (node: HTMLDivElement | null) => void;\n assignHeaderElementRef: (node: HTMLDivElement | null) => void;\n assignRootElementRef: (node: HTMLDivElement | null) => void;\n assignGanttContentElementRef: (node: HTMLDivElement | null) => void;\n assignGanttPanelElementRef: (node: HTMLDivElement | null) => void;\n};\n\nexport const GanttContext = createContext<GanttContextValue | undefined>(\n undefined,\n);\n\nexport type GanttProviderProps = {\n /** Start of the total timeline range in epoch milliseconds. */\n startTimeMs: number;\n /** End of the total timeline range in epoch milliseconds. Must be >= startTimeMs. */\n endTimeMs: number;\n /** Interval duration controlling timeline tick mark spacing. */\n timescale: GanttTimescale;\n /** Current time in epoch milliseconds, used for elapsed-state styling. */\n currentTimeMs: number;\n /** Optional threshold configuration for edge-of-data notifications. */\n thresholdProps?: GanttThresholdProps;\n /** Height of each row in pixels. @default 40 */\n rowHeightPx?: number;\n};\n\nexport function GanttProvider({\n children,\n startTimeMs,\n endTimeMs,\n timescale,\n thresholdProps,\n currentTimeMs,\n rowHeightPx = GANTT_ROW_HEIGHT_PX,\n}: PropsWithChildren<GanttProviderProps>) {\n const [timelineContainerElement, setTimelineContainerElement] =\n useState<HTMLDivElement | null>(null);\n const [headerElement, setHeaderElement] = useState<HTMLDivElement | null>(\n null,\n );\n const [rootElement, setRootElement] = useState<HTMLDivElement | null>(null);\n const [ganttContentElement, setGanttContentElement] =\n useState<HTMLDivElement | null>(null);\n const [ganttPanelElement, setGanttPanelElement] =\n useState<HTMLDivElement | null>(null);\n\n const midpointMs = startTimeMs + (endTimeMs - startTimeMs) / 2;\n\n const totalBounds = useMemo(\n () => ({\n startMs: startTimeMs,\n endMs: endTimeMs,\n }),\n [startTimeMs, endTimeMs],\n );\n\n const value = useMemo(\n () => ({\n assignTimelineContainerElementRef: setTimelineContainerElement,\n assignHeaderElementRef: setHeaderElement,\n assignRootElementRef: setRootElement,\n assignGanttContentElementRef: setGanttContentElement,\n assignGanttPanelElementRef: setGanttPanelElement,\n timelineContainerElement,\n headerElement,\n rootElement,\n ganttContentElement,\n ganttPanelElement,\n rowHeightPx,\n }),\n [\n timelineContainerElement,\n headerElement,\n rootElement,\n ganttContentElement,\n ganttPanelElement,\n rowHeightPx,\n ],\n );\n\n return (\n <GanttContext.Provider value={value}>\n <GanttStoreProvider startTimeMs={midpointMs}>\n <TemporalDataProvider\n timescale={timescale}\n totalBounds={totalBounds}\n threshold={thresholdProps?.threshold}\n currentTimeMs={currentTimeMs}\n onThresholdMet={thresholdProps?.onThresholdMet}\n >\n <RootContainer>{children}</RootContainer>\n </TemporalDataProvider>\n </GanttStoreProvider>\n </GanttContext.Provider>\n );\n}\n\n/** @throws {Error} If called outside of a GanttProvider. */\nexport function useGanttContext() {\n const ctx = useContext(GanttContext);\n\n if (!ctx) {\n throw new Error('useGanttContext must be used within a GanttProvider');\n }\n\n return ctx;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;AA2CA,MAAa,eAAe,cAC1B,OACD;AAiBD,SAAgB,cAAc,EAC5B,UACA,aACA,WACA,WACA,gBACA,eACA,cAAc,uBAC0B;CACxC,MAAM,CAAC,0BAA0B,+BAC/B,SAAgC,KAAK;CACvC,MAAM,CAAC,eAAe,oBAAoB,SACxC,KACD;CACD,MAAM,CAAC,aAAa,kBAAkB,SAAgC,KAAK;CAC3E,MAAM,CAAC,qBAAqB,0BAC1B,SAAgC,KAAK;CACvC,MAAM,CAAC,mBAAmB,wBACxB,SAAgC,KAAK;CAEvC,MAAM,aAAa,eAAe,YAAY,eAAe;CAE7D,MAAM,cAAc,eACX;EACL,SAAS;EACT,OAAO;EACR,GACD,CAAC,aAAa,UAAU,CACzB;CAED,MAAM,QAAQ,eACL;EACL,mCAAmC;EACnC,wBAAwB;EACxB,sBAAsB;EACtB,8BAA8B;EAC9B,4BAA4B;EAC5B;EACA;EACA;EACA;EACA;EACA;EACD,GACD;EACE;EACA;EACA;EACA;EACA;EACA;EACD,CACF;AAED,QACE,oBAAC,aAAa;EAAgB;YAC5B,oBAAC;GAAmB,aAAa;aAC/B,oBAAC;IACY;IACE;IACb,WAAW,gBAAgB;IACZ;IACf,gBAAgB,gBAAgB;cAEhC,oBAAC,iBAAe,WAAyB;KACpB;IACJ;GACC;;;AAK5B,SAAgB,kBAAkB;CAChC,MAAM,MAAM,WAAW,aAAa;AAEpC,KAAI,CAAC,IACH,OAAM,IAAI,MAAM,sDAAsD;AAGxE,QAAO"}
@@ -0,0 +1,45 @@
1
+ /*
2
+ * Copyright 2026 Hypergiant Galactic Systems Inc. All rights reserved.
3
+ * This file is licensed to you under the Apache License, Version 2.0 (the "License");
4
+ * you may not use this file except in compliance with the License. You may obtain a copy
5
+ * of the License at https://www.apache.org/licenses/LICENSE-2.0
6
+ *
7
+ * Unless required by applicable law or agreed to in writing, software distributed under
8
+ * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
9
+ * OF ANY KIND, either express or implied. See the License for the specific language
10
+ * governing permissions and limitations under the License.
11
+ */
12
+
13
+ import { GanttActions, GanttState, GanttStoreProps } from "../../store.js";
14
+ import * as react48 from "react";
15
+ import { PropsWithChildren } from "react";
16
+ import * as react_jsx_runtime194 from "react/jsx-runtime";
17
+ import * as zustand0 from "zustand";
18
+
19
+ //#region src/components/gantt/context/store/index.d.ts
20
+ declare const GanttStoreContext: react48.Context<(Omit<zustand0.StoreApi<GanttState & GanttActions>, "subscribe"> & {
21
+ subscribe: {
22
+ (listener: (selectedState: GanttState & GanttActions, previousSelectedState: GanttState & GanttActions) => void): () => void;
23
+ <U>(selector: (state: GanttState & GanttActions) => U, listener: (selectedState: U, previousSelectedState: U) => void, options?: {
24
+ equalityFn?: ((a: U, b: U) => boolean) | undefined;
25
+ fireImmediately?: boolean;
26
+ } | undefined): () => void;
27
+ };
28
+ }) | null>;
29
+ declare function GanttStoreProvider({
30
+ children,
31
+ startTimeMs
32
+ }: PropsWithChildren<GanttStoreProps>): react_jsx_runtime194.JSX.Element;
33
+ declare function useGanttStore<T>(selector: (state: GanttState & GanttActions) => T): T;
34
+ declare function useGanttStoreApi(): Omit<zustand0.StoreApi<GanttState & GanttActions>, "subscribe"> & {
35
+ subscribe: {
36
+ (listener: (selectedState: GanttState & GanttActions, previousSelectedState: GanttState & GanttActions) => void): () => void;
37
+ <U>(selector: (state: GanttState & GanttActions) => U, listener: (selectedState: U, previousSelectedState: U) => void, options?: {
38
+ equalityFn?: ((a: U, b: U) => boolean) | undefined;
39
+ fireImmediately?: boolean;
40
+ } | undefined): () => void;
41
+ };
42
+ };
43
+ //#endregion
44
+ export { GanttStoreContext, GanttStoreProvider, useGanttStore, useGanttStoreApi };
45
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,42 @@
1
+ /*
2
+ * Copyright 2026 Hypergiant Galactic Systems Inc. All rights reserved.
3
+ * This file is licensed to you under the Apache License, Version 2.0 (the "License");
4
+ * you may not use this file except in compliance with the License. You may obtain a copy
5
+ * of the License at https://www.apache.org/licenses/LICENSE-2.0
6
+ *
7
+ * Unless required by applicable law or agreed to in writing, software distributed under
8
+ * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
9
+ * OF ANY KIND, either express or implied. See the License for the specific language
10
+ * governing permissions and limitations under the License.
11
+ */
12
+
13
+
14
+ import { createGanttStore } from "../../store.js";
15
+ import { createContext, useContext, useState } from "react";
16
+ import { jsx } from "react/jsx-runtime";
17
+ import { useStore } from "zustand";
18
+
19
+ //#region src/components/gantt/context/store/index.tsx
20
+ const GanttStoreContext = createContext(null);
21
+ function GanttStoreProvider({ children, startTimeMs }) {
22
+ const [store] = useState(() => createGanttStore({ startTimeMs }));
23
+ return /* @__PURE__ */ jsx(GanttStoreContext.Provider, {
24
+ value: store,
25
+ children
26
+ });
27
+ }
28
+ function useGanttStoreBase() {
29
+ const store = useContext(GanttStoreContext);
30
+ if (!store) throw new Error("useGanttStoreBase must be used within a GanttStoreProvider");
31
+ return store;
32
+ }
33
+ function useGanttStore(selector) {
34
+ return useStore(useGanttStoreBase(), selector);
35
+ }
36
+ function useGanttStoreApi() {
37
+ return useGanttStoreBase();
38
+ }
39
+
40
+ //#endregion
41
+ export { GanttStoreContext, GanttStoreProvider, useGanttStore, useGanttStoreApi };
42
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","names":[],"sources":["../../../../../src/components/gantt/context/store/index.tsx"],"sourcesContent":["// __private-exports\n/*\n * Copyright 2026 Hypergiant Galactic Systems Inc. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {\n createContext,\n type PropsWithChildren,\n useContext,\n useState,\n} from 'react';\nimport { useStore } from 'zustand';\nimport {\n createGanttStore,\n type GanttActions,\n type GanttState,\n type GanttStore,\n type GanttStoreProps,\n} from '../../store';\n\nexport const GanttStoreContext = createContext<GanttStore | null>(null);\n\nexport function GanttStoreProvider({\n children,\n startTimeMs,\n}: PropsWithChildren<GanttStoreProps>) {\n const [store] = useState(() => createGanttStore({ startTimeMs }));\n\n return (\n <GanttStoreContext.Provider value={store}>\n {children}\n </GanttStoreContext.Provider>\n );\n}\n\nfunction useGanttStoreBase() {\n const store = useContext(GanttStoreContext);\n\n if (!store) {\n throw new Error(\n 'useGanttStoreBase must be used within a GanttStoreProvider',\n );\n }\n\n return store;\n}\n\nexport function useGanttStore<T>(\n selector: (state: GanttState & GanttActions) => T,\n): T {\n const store = useGanttStoreBase();\n\n return useStore(store, selector);\n}\n\nexport function useGanttStoreApi() {\n return useGanttStoreBase() satisfies GanttStore;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;AA4BA,MAAa,oBAAoB,cAAiC,KAAK;AAEvE,SAAgB,mBAAmB,EACjC,UACA,eACqC;CACrC,MAAM,CAAC,SAAS,eAAe,iBAAiB,EAAE,aAAa,CAAC,CAAC;AAEjE,QACE,oBAAC,kBAAkB;EAAS,OAAO;EAChC;GAC0B;;AAIjC,SAAS,oBAAoB;CAC3B,MAAM,QAAQ,WAAW,kBAAkB;AAE3C,KAAI,CAAC,MACH,OAAM,IAAI,MACR,6DACD;AAGH,QAAO;;AAGT,SAAgB,cACd,UACG;AAGH,QAAO,SAFO,mBAAmB,EAEV,SAAS;;AAGlC,SAAgB,mBAAmB;AACjC,QAAO,mBAAmB"}