@accelint/design-toolkit 9.12.0 → 10.0.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 (300) hide show
  1. package/catalog-info.yaml +1 -1
  2. package/dist/components/accordion/context.d.ts +2 -2
  3. package/dist/components/accordion/group.d.ts +2 -2
  4. package/dist/components/accordion/header.d.ts +2 -2
  5. package/dist/components/accordion/index.d.ts +2 -2
  6. package/dist/components/accordion/panel.d.ts +2 -2
  7. package/dist/components/accordion/trigger.d.ts +2 -2
  8. package/dist/components/action-bar/index.d.ts +2 -2
  9. package/dist/components/audio/index.d.ts +2 -2
  10. package/dist/components/avatar/context.d.ts +4 -4
  11. package/dist/components/avatar/index.d.ts +2 -2
  12. package/dist/components/badge/context.d.ts +4 -4
  13. package/dist/components/badge/index.d.ts +2 -2
  14. package/dist/components/breadcrumbs/index.d.ts +2 -2
  15. package/dist/components/breadcrumbs/item.d.ts +2 -2
  16. package/dist/components/button/context.d.ts +8 -8
  17. package/dist/components/button/index.d.ts +2 -2
  18. package/dist/components/button/link.d.ts +2 -2
  19. package/dist/components/button/toggle.d.ts +2 -2
  20. package/dist/components/carousel/context.d.ts +4 -4
  21. package/dist/components/carousel/gallery.d.ts +2 -2
  22. package/dist/components/carousel/index.d.ts +2 -2
  23. package/dist/components/carousel/navigation.d.ts +3 -3
  24. package/dist/components/carousel/position.d.ts +2 -2
  25. package/dist/components/carousel/select.d.ts +2 -2
  26. package/dist/components/carousel/viewer.d.ts +2 -2
  27. package/dist/components/checkbox/context.d.ts +3 -3
  28. package/dist/components/checkbox/group.d.ts +2 -2
  29. package/dist/components/checkbox/index.d.ts +2 -2
  30. package/dist/components/chip/context.d.ts +4 -4
  31. package/dist/components/chip/deletable.d.ts +2 -2
  32. package/dist/components/chip/index.d.ts +2 -2
  33. package/dist/components/chip/list.d.ts +4 -4
  34. package/dist/components/chip/selectable.d.ts +2 -2
  35. package/dist/components/classification-badge/context.d.ts +4 -4
  36. package/dist/components/classification-badge/index.d.ts +2 -2
  37. package/dist/components/classification-banner/context.d.ts +4 -4
  38. package/dist/components/classification-banner/index.d.ts +2 -2
  39. package/dist/components/clock/index.d.ts +2 -2
  40. package/dist/components/color-picker/index.d.ts +2 -2
  41. package/dist/components/combobox-field/context.d.ts +4 -4
  42. package/dist/components/combobox-field/index.d.ts +2 -2
  43. package/dist/components/coordinate-field/context.d.ts +6 -6
  44. package/dist/components/coordinate-field/index.d.ts +2 -2
  45. package/dist/components/coordinate-field/segment.d.ts +2 -2
  46. package/dist/components/date-field/index.d.ts +2 -2
  47. package/dist/components/deferred-collection/index.d.ts +2 -2
  48. package/dist/components/details-list/context.d.ts +4 -4
  49. package/dist/components/details-list/index.d.ts +2 -2
  50. package/dist/components/details-list/label.d.ts +2 -2
  51. package/dist/components/details-list/value.d.ts +2 -2
  52. package/dist/components/dialog/content.d.ts +2 -2
  53. package/dist/components/dialog/context.d.ts +2 -2
  54. package/dist/components/dialog/footer.d.ts +2 -2
  55. package/dist/components/dialog/index.d.ts +2 -2
  56. package/dist/components/dialog/title.d.ts +2 -2
  57. package/dist/components/divider/context.d.ts +4 -4
  58. package/dist/components/divider/index.d.ts +2 -2
  59. package/dist/components/drawer/back.d.ts +2 -2
  60. package/dist/components/drawer/close.d.ts +2 -2
  61. package/dist/components/drawer/content.d.ts +2 -2
  62. package/dist/components/drawer/footer.d.ts +2 -2
  63. package/dist/components/drawer/header-title.d.ts +2 -2
  64. package/dist/components/drawer/header.d.ts +2 -2
  65. package/dist/components/drawer/index.d.ts +2 -2
  66. package/dist/components/drawer/layout-main.d.ts +2 -2
  67. package/dist/components/drawer/layout.d.ts +2 -2
  68. package/dist/components/drawer/menu-item.d.ts +2 -2
  69. package/dist/components/drawer/menu.d.ts +2 -2
  70. package/dist/components/drawer/panel.d.ts +2 -2
  71. package/dist/components/drawer/trigger.d.ts +2 -2
  72. package/dist/components/drawer/view.d.ts +2 -2
  73. package/dist/components/flashcard/index.d.ts +9 -9
  74. package/dist/components/flashcard/index.js +1 -1
  75. package/dist/components/flashcard/index.js.map +1 -1
  76. package/dist/components/flashcard/styles.module.css +4 -0
  77. package/dist/components/floating-card/constants.d.ts +26 -0
  78. package/dist/components/floating-card/constants.js +40 -0
  79. package/dist/components/floating-card/constants.js.map +1 -0
  80. package/dist/components/floating-card/context.d.ts +38 -6
  81. package/dist/components/floating-card/context.js +24 -3
  82. package/dist/components/floating-card/context.js.map +1 -1
  83. package/dist/components/floating-card/hooks/use-card-layout.d.ts +36 -0
  84. package/dist/components/floating-card/hooks/use-card-layout.js +106 -0
  85. package/dist/components/floating-card/hooks/use-card-layout.js.map +1 -0
  86. package/dist/components/floating-card/hooks/use-drag.d.ts +62 -0
  87. package/dist/components/floating-card/hooks/use-drag.js +100 -0
  88. package/dist/components/floating-card/hooks/use-drag.js.map +1 -0
  89. package/dist/components/floating-card/hooks/use-mouse-interaction.d.ts +58 -0
  90. package/dist/components/floating-card/hooks/use-mouse-interaction.js +91 -0
  91. package/dist/components/floating-card/hooks/use-mouse-interaction.js.map +1 -0
  92. package/dist/components/floating-card/hooks/use-resize.d.ts +56 -0
  93. package/dist/components/floating-card/hooks/use-resize.js +98 -0
  94. package/dist/components/floating-card/hooks/use-resize.js.map +1 -0
  95. package/dist/components/floating-card/index.d.ts +6 -2
  96. package/dist/components/floating-card/index.js +24 -32
  97. package/dist/components/floating-card/index.js.map +1 -1
  98. package/dist/components/floating-card/panel.d.ts +69 -0
  99. package/dist/components/floating-card/panel.js +111 -0
  100. package/dist/components/floating-card/panel.js.map +1 -0
  101. package/dist/components/floating-card/provider.d.ts +10 -6
  102. package/dist/components/floating-card/provider.js +159 -153
  103. package/dist/components/floating-card/provider.js.map +1 -1
  104. package/dist/components/floating-card/styles.module.css +93 -39
  105. package/dist/components/floating-card/types.d.ts +51 -10
  106. package/dist/components/floating-card/utils.d.ts +8 -85
  107. package/dist/components/floating-card/utils.js +12 -38
  108. package/dist/components/floating-card/utils.js.map +1 -1
  109. package/dist/components/gantt/components/base-elements/range.d.ts +2 -2
  110. package/dist/components/gantt/components/containers/external/gantt-panel-container/index.d.ts +2 -2
  111. package/dist/components/gantt/components/containers/internal/index.d.ts +2 -2
  112. package/dist/components/gantt/components/containers/internal/layout-container/index.d.ts +2 -2
  113. package/dist/components/gantt/components/containers/internal/virtualized-content-height-container/index.d.ts +2 -2
  114. package/dist/components/gantt/components/content-row/block.d.ts +2 -2
  115. package/dist/components/gantt/components/content-row/bracket.d.ts +3 -3
  116. package/dist/components/gantt/components/content-row/icon-marker.d.ts +2 -2
  117. package/dist/components/gantt/components/content-row/index.d.ts +2 -2
  118. package/dist/components/gantt/components/content-row/marker.d.ts +2 -2
  119. package/dist/components/gantt/components/content-row/spacer.d.ts +2 -2
  120. package/dist/components/gantt/components/current-time/index.d.ts +2 -2
  121. package/dist/components/gantt/components/header/index.d.ts +3 -3
  122. package/dist/components/gantt/components/panel-row/index.d.ts +2 -2
  123. package/dist/components/gantt/components/rows-virtualizer/index.d.ts +3 -3
  124. package/dist/components/gantt/components/timeline/index.d.ts +2 -2
  125. package/dist/components/gantt/context/index.d.ts +4 -4
  126. package/dist/components/gantt/context/store/index.d.ts +4 -4
  127. package/dist/components/gantt/context/temporal-data/index.d.ts +4 -4
  128. package/dist/components/gantt/hooks/use-layout-subscription/index.js +8 -8
  129. package/dist/components/gantt/hooks/use-layout-subscription/index.js.map +1 -1
  130. package/dist/components/hero/context.d.ts +2 -2
  131. package/dist/components/hero/index.d.ts +2 -2
  132. package/dist/components/hero/subtitle.d.ts +3 -3
  133. package/dist/components/hotkey/context.d.ts +2 -2
  134. package/dist/components/hotkey/index.d.ts +2 -2
  135. package/dist/components/hotkey/set.d.ts +2 -2
  136. package/dist/components/icon/context.d.ts +4 -4
  137. package/dist/components/icon/index.d.ts +2 -2
  138. package/dist/components/input/context.d.ts +2 -2
  139. package/dist/components/input/index.d.ts +2 -2
  140. package/dist/components/kanban/card-body.d.ts +2 -2
  141. package/dist/components/kanban/card-header-actions.d.ts +2 -2
  142. package/dist/components/kanban/card-header-title.d.ts +2 -2
  143. package/dist/components/kanban/card-header.d.ts +2 -2
  144. package/dist/components/kanban/card.d.ts +2 -2
  145. package/dist/components/kanban/column-actions.d.ts +2 -2
  146. package/dist/components/kanban/column-container.d.ts +2 -2
  147. package/dist/components/kanban/column-content.d.ts +2 -2
  148. package/dist/components/kanban/column-header-actions.d.ts +2 -2
  149. package/dist/components/kanban/column-header-drag-handle.d.ts +2 -2
  150. package/dist/components/kanban/column-header-title.d.ts +2 -2
  151. package/dist/components/kanban/column-header.d.ts +2 -2
  152. package/dist/components/kanban/column.d.ts +2 -2
  153. package/dist/components/kanban/context.d.ts +2 -2
  154. package/dist/components/kanban/header-actions.d.ts +2 -2
  155. package/dist/components/kanban/header-search.d.ts +2 -2
  156. package/dist/components/kanban/header-title.d.ts +2 -2
  157. package/dist/components/kanban/header.d.ts +2 -2
  158. package/dist/components/kanban/kanban.d.ts +4 -4
  159. package/dist/components/label/context.d.ts +4 -4
  160. package/dist/components/label/index.d.ts +2 -2
  161. package/dist/components/lines/index.d.ts +2 -2
  162. package/dist/components/link/context.d.ts +2 -2
  163. package/dist/components/link/index.d.ts +2 -2
  164. package/dist/components/list/context.d.ts +2 -2
  165. package/dist/components/list/index.d.ts +2 -2
  166. package/dist/components/list/item-content.d.ts +2 -2
  167. package/dist/components/list/item-description.d.ts +2 -2
  168. package/dist/components/list/item-title.d.ts +2 -2
  169. package/dist/components/list/item.d.ts +2 -2
  170. package/dist/components/media-controls/context.d.ts +4 -4
  171. package/dist/components/media-controls/fullscreen-button.d.ts +2 -2
  172. package/dist/components/media-controls/index.d.ts +2 -2
  173. package/dist/components/media-controls/mute-button.d.ts +2 -2
  174. package/dist/components/media-controls/play-button.d.ts +2 -2
  175. package/dist/components/media-controls/playback-rate.d.ts +2 -2
  176. package/dist/components/media-controls/seek-button.d.ts +2 -2
  177. package/dist/components/media-controls/time-display.d.ts +2 -2
  178. package/dist/components/media-controls/time-range.d.ts +2 -2
  179. package/dist/components/media-controls/volume-slider.d.ts +2 -2
  180. package/dist/components/menu/context.d.ts +2 -2
  181. package/dist/components/menu/index.d.ts +2 -2
  182. package/dist/components/menu/item-description.d.ts +2 -2
  183. package/dist/components/menu/item-label.d.ts +2 -2
  184. package/dist/components/menu/item.d.ts +2 -2
  185. package/dist/components/menu/section.d.ts +2 -2
  186. package/dist/components/menu/separator.d.ts +2 -2
  187. package/dist/components/menu/submenu.d.ts +2 -2
  188. package/dist/components/notice/index.d.ts +3 -2
  189. package/dist/components/notice/index.js +3 -3
  190. package/dist/components/notice/index.js.map +1 -1
  191. package/dist/components/notice/list.d.ts +2 -2
  192. package/dist/components/notice/list.js +14 -5
  193. package/dist/components/notice/list.js.map +1 -1
  194. package/dist/components/notice/notice-icon.d.ts +2 -2
  195. package/dist/components/notice/types.d.ts +6 -5
  196. package/dist/components/notice/utils.d.ts +11 -1
  197. package/dist/components/notice/utils.js +16 -1
  198. package/dist/components/notice/utils.js.map +1 -1
  199. package/dist/components/options/context.d.ts +2 -2
  200. package/dist/components/options/index.d.ts +2 -2
  201. package/dist/components/options/item-content.d.ts +2 -2
  202. package/dist/components/options/item-description.d.ts +2 -2
  203. package/dist/components/options/item-label.d.ts +2 -2
  204. package/dist/components/options/item.d.ts +2 -2
  205. package/dist/components/options/section.d.ts +2 -2
  206. package/dist/components/pagination/context.d.ts +2 -2
  207. package/dist/components/pagination/index.d.ts +2 -2
  208. package/dist/components/pagination/next.d.ts +2 -2
  209. package/dist/components/pagination/pages.d.ts +2 -2
  210. package/dist/components/pagination/prev.d.ts +2 -2
  211. package/dist/components/popover/content.d.ts +2 -2
  212. package/dist/components/popover/footer.d.ts +2 -2
  213. package/dist/components/popover/index.d.ts +2 -2
  214. package/dist/components/popover/title.d.ts +2 -2
  215. package/dist/components/popover/trigger.d.ts +2 -2
  216. package/dist/components/query-builder/action-element.d.ts +2 -2
  217. package/dist/components/query-builder/actions.d.ts +4 -4
  218. package/dist/components/query-builder/combinator-selector.d.ts +2 -2
  219. package/dist/components/query-builder/index.d.ts +2 -2
  220. package/dist/components/query-builder/rule-group.d.ts +4 -4
  221. package/dist/components/query-builder/rule.d.ts +2 -2
  222. package/dist/components/query-builder/value-editor.d.ts +2 -2
  223. package/dist/components/query-builder/value-selector.d.ts +2 -2
  224. package/dist/components/radio/context.d.ts +3 -3
  225. package/dist/components/radio/group.d.ts +2 -2
  226. package/dist/components/radio/index.d.ts +2 -2
  227. package/dist/components/search-field/context.d.ts +4 -4
  228. package/dist/components/search-field/index.d.ts +2 -2
  229. package/dist/components/select-field/context.d.ts +4 -4
  230. package/dist/components/select-field/index.d.ts +2 -2
  231. package/dist/components/sidenav/avatar.d.ts +2 -2
  232. package/dist/components/sidenav/content.d.ts +2 -2
  233. package/dist/components/sidenav/context.d.ts +2 -2
  234. package/dist/components/sidenav/footer.d.ts +2 -2
  235. package/dist/components/sidenav/header.d.ts +2 -2
  236. package/dist/components/sidenav/index.d.ts +2 -2
  237. package/dist/components/sidenav/item.d.ts +2 -2
  238. package/dist/components/sidenav/link.d.ts +2 -2
  239. package/dist/components/sidenav/menu-item.d.ts +2 -2
  240. package/dist/components/sidenav/menu.d.ts +2 -2
  241. package/dist/components/sidenav/trigger.d.ts +2 -2
  242. package/dist/components/skeleton/index.d.ts +2 -2
  243. package/dist/components/slider/index.d.ts +2 -2
  244. package/dist/components/status-indicator/index.d.ts +2 -2
  245. package/dist/components/switch/context.d.ts +4 -4
  246. package/dist/components/switch/index.d.ts +2 -2
  247. package/dist/components/table/body.d.ts +4 -3
  248. package/dist/components/table/body.js.map +1 -1
  249. package/dist/components/table/cell.d.ts +4 -3
  250. package/dist/components/table/cell.js.map +1 -1
  251. package/dist/components/table/context.d.ts +2 -2
  252. package/dist/components/table/features.d.ts +80 -0
  253. package/dist/components/table/features.js +61 -0
  254. package/dist/components/table/features.js.map +1 -0
  255. package/dist/components/table/header-cell.d.ts +4 -3
  256. package/dist/components/table/header-cell.js.map +1 -1
  257. package/dist/components/table/header.d.ts +4 -3
  258. package/dist/components/table/header.js.map +1 -1
  259. package/dist/components/table/index.d.ts +2 -2
  260. package/dist/components/table/index.js +40 -49
  261. package/dist/components/table/index.js.map +1 -1
  262. package/dist/components/table/row-ordering-feature.d.ts +88 -0
  263. package/dist/components/table/row-ordering-feature.js +115 -0
  264. package/dist/components/table/row-ordering-feature.js.map +1 -0
  265. package/dist/components/table/row.d.ts +4 -3
  266. package/dist/components/table/row.js.map +1 -1
  267. package/dist/components/table/types.d.ts +15 -13
  268. package/dist/components/tabs/context.d.ts +6 -6
  269. package/dist/components/tabs/index.d.ts +2 -2
  270. package/dist/components/tabs/list.d.ts +2 -2
  271. package/dist/components/tabs/panel.d.ts +2 -2
  272. package/dist/components/tabs/tab.d.ts +2 -2
  273. package/dist/components/text-area-field/context.d.ts +4 -4
  274. package/dist/components/text-area-field/index.d.ts +2 -2
  275. package/dist/components/text-field/context.d.ts +4 -4
  276. package/dist/components/text-field/index.d.ts +2 -2
  277. package/dist/components/time-field/index.d.ts +2 -2
  278. package/dist/components/time-field/styles.module.css +4 -0
  279. package/dist/components/tooltip/context.d.ts +2 -2
  280. package/dist/components/tooltip/index.d.ts +2 -2
  281. package/dist/components/tooltip/trigger.d.ts +2 -2
  282. package/dist/components/tree/context.d.ts +3 -3
  283. package/dist/components/tree/index.d.ts +2 -2
  284. package/dist/components/tree/item-actions.d.ts +2 -2
  285. package/dist/components/tree/item-content.d.ts +2 -2
  286. package/dist/components/tree/item-description.d.ts +2 -2
  287. package/dist/components/tree/item-label.d.ts +2 -2
  288. package/dist/components/tree/item-prefix-icon.d.ts +2 -2
  289. package/dist/components/tree/item.d.ts +2 -2
  290. package/dist/components/tree/lines.d.ts +2 -2
  291. package/dist/components/video/index.d.ts +2 -2
  292. package/dist/components/view-stack/context.d.ts +2 -2
  293. package/dist/components/view-stack/index.d.ts +2 -2
  294. package/dist/components/view-stack/trigger.d.ts +2 -2
  295. package/dist/components/view-stack/view.d.ts +2 -2
  296. package/dist/index.d.ts +5 -3
  297. package/dist/index.js +4 -2
  298. package/dist/providers/portal.d.ts +2 -2
  299. package/dist/providers/theme-provider.d.ts +2 -2
  300. package/package.json +20 -14
@@ -12,10 +12,35 @@
12
12
 
13
13
  import { MaybeFactory } from "./utils.js";
14
14
  import { PropsWithChildren, ReactNode } from "react";
15
- import { DockviewApi } from "dockview-react";
16
15
  import { UniqueId } from "@accelint/core/utility/uuid";
17
16
 
18
17
  //#region src/components/floating-card/types.d.ts
18
+ /** A point in the provider's coordinate space. */
19
+ type Position = {
20
+ x: number;
21
+ y: number;
22
+ };
23
+ /** A card's rendered size. */
24
+ type Dimensions = {
25
+ width: number;
26
+ height: number;
27
+ };
28
+ /** The box a card is kept inside while dragging and resizing. */
29
+ type Bounds = {
30
+ top: number;
31
+ left: number;
32
+ right: number;
33
+ bottom: number;
34
+ };
35
+ /** Edge or corner a resize gesture pulls from. */
36
+ type ResizeHandle = 'n' | 's' | 'e' | 'w' | 'ne' | 'nw' | 'se' | 'sw';
37
+ /** Geometry, title, and stacking for one card, tracked by the provider. */
38
+ type FloatingCardLayout = {
39
+ title: string | undefined;
40
+ position: Position;
41
+ dimensions: Dimensions;
42
+ zIndex: number;
43
+ };
19
44
  /**
20
45
  * Context value providing floating card management functionality.
21
46
  *
@@ -25,20 +50,19 @@ import { UniqueId } from "@accelint/core/utility/uuid";
25
50
  type FloatingCardContextValue = {
26
51
  /** Registry mapping card IDs to their rendered DOM containers */
27
52
  cards: Record<UniqueId, HTMLDivElement>;
28
- /** Registers a DOM ref for a card container after it mounts */
29
- addRef: (id: UniqueId, ref: HTMLDivElement | null) => void;
30
- /** Unregisters a card's DOM ref when it's removed */
31
- removeRef: (view: UniqueId) => void;
32
- /** Programmatically closes a floating card by ID */
53
+ /**
54
+ * Programmatically closes a floating card by ID.
55
+ *
56
+ * @remarks Closing clears the card's pin state, so a pinned card that closes
57
+ * reopens unpinned.
58
+ */
33
59
  closeCard: (id: UniqueId) => void;
34
- /** Toggles pin state for a floating card, disabling drag when pinned */
60
+ /** Toggles pin state for a floating card, disabling drag and resize when pinned */
35
61
  togglePinCard: (id: UniqueId) => void;
36
62
  /** Checks if a floating card is currently pinned */
37
63
  isPinned: (id: UniqueId) => boolean;
38
64
  /** Subscribes to pin state changes; returns an unsubscribe function */
39
65
  subscribeToPinState: (callback: () => void) => () => void;
40
- /** Dockview API instance, null until FloatingCardProvider's onReady fires */
41
- api: DockviewApi | null;
42
66
  };
43
67
  /**
44
68
  * Props for the FloatingCard component.
@@ -109,6 +133,13 @@ type FloatingCardProps = Readonly<{
109
133
  type FloatingCardHeaderAction = {
110
134
  /** Icon to display in the action button */
111
135
  icon: ReactNode;
136
+ /**
137
+ * Accessible name for the button.
138
+ *
139
+ * @remarks The button renders an icon with no visible text, so without a
140
+ * label screen readers announce it only as "button".
141
+ */
142
+ label?: string;
112
143
  /** Handler called when the action button is clicked */
113
144
  onClick: () => void;
114
145
  } | 'divider' | 'pin';
@@ -146,6 +177,16 @@ type FloatingCardProviderProps = Readonly<PropsWithChildren<{
146
177
  * per-floating card actions.
147
178
  */
148
179
  headerActions?: MaybeFactory<FloatingCardHeaderAction[]>;
180
+ /**
181
+ * Region that cards are kept inside while being dragged and resized.
182
+ *
183
+ * `'provider'` confines cards to the provider element, so a provider that
184
+ * occupies part of the page keeps its cards within that region.
185
+ * `'viewport'` lets cards move anywhere on screen.
186
+ *
187
+ * @defaultValue 'provider'
188
+ */
189
+ bounds?: 'provider' | 'viewport';
149
190
  /**
150
191
  * Optional set of card IDs that should be pinned when the provider first mounts.
151
192
  *
@@ -157,5 +198,5 @@ type FloatingCardProviderProps = Readonly<PropsWithChildren<{
157
198
  className?: string;
158
199
  }>>;
159
200
  //#endregion
160
- export { FloatingCardContextValue, FloatingCardHeaderAction, FloatingCardProps, FloatingCardProviderProps };
201
+ export { Bounds, Dimensions, FloatingCardContextValue, FloatingCardHeaderAction, FloatingCardLayout, FloatingCardProps, FloatingCardProviderProps, Position, ResizeHandle };
161
202
  //# sourceMappingURL=types.d.ts.map
@@ -1,20 +1,3 @@
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 { FloatingCardHeaderAction } from "./types.js";
14
- import { FunctionComponent, ReactNode } from "react";
15
- import { IDockviewHeaderActionsProps } from "dockview-react";
16
- import { UniqueId } from "@accelint/core/utility/uuid";
17
-
18
1
  //#region src/components/floating-card/utils.d.ts
19
2
  /**
20
3
  * A value that can be static or dynamically computed per floating card.
@@ -26,79 +9,19 @@ import { UniqueId } from "@accelint/core/utility/uuid";
26
9
  */
27
10
  type MaybeFactory<T> = T | ((cardId: string) => T);
28
11
  /**
29
- * Configuration options passed to floating card header adapter functions.
30
- *
31
- * Used internally by the floating card system to provide header components
32
- * with the necessary props and callbacks for rendering customizable headers.
12
+ * Reads a value that callers may supply either directly or as a per-card factory.
33
13
  *
34
- * @remarks
35
- * This type is primarily used when creating custom header adapters that need
36
- * access to icon, actions, and pin state management from the FloatingCardProvider.
14
+ * @template T - Type of the resolved value.
15
+ * @param value - The static value or factory.
16
+ * @param cardId - Card the value is being resolved for.
17
+ * @returns The value for this card.
37
18
  *
38
19
  * @example
39
20
  * ```tsx
40
- * function createHeaderAdapter(options: HeaderAdapterOptions) {
41
- * return (props: DockviewHeaderProps) => {
42
- * const icon = typeof options.icon === 'function'
43
- * ? options.icon(props.id)
44
- * : options.icon;
45
- * const actions = typeof options.headerActions === 'function'
46
- * ? options.headerActions(props.id)
47
- * : options.headerActions;
48
- *
49
- * return (
50
- * <CustomHeader
51
- * icon={icon}
52
- * actions={actions}
53
- * isPinned={options.isPinned?.(props.id)}
54
- * onTogglePin={() => options.togglePinCard?.(props.id)}
55
- * />
56
- * );
57
- * };
58
- * }
21
+ * const icon = resolveMaybeFactory(props.icon, cardId);
59
22
  * ```
60
23
  */
61
- type HeaderAdapterOptions = {
62
- icon?: MaybeFactory<ReactNode>;
63
- headerActions?: MaybeFactory<FloatingCardHeaderProps['headerActions']>;
64
- togglePinCard?: (id: UniqueId) => void;
65
- isPinned?: (id: UniqueId) => boolean;
66
- subscribeToPinState?: (callback: () => void) => () => void;
67
- };
68
- /**
69
- * Props passed to floating card header components.
70
- *
71
- * @remarks Internal type used by header adapters to map Dockview props to custom header components.
72
- */
73
- type FloatingCardHeaderProps = {
74
- /** ID of the active floating card panel */
75
- id?: string;
76
- /** Title text displayed in the header */
77
- title?: string;
78
- /** Optional icon displayed at the start of the header */
79
- icon?: ReactNode;
80
- /** Callback to close the entire card group */
81
- closeGroup: () => void;
82
- /** Toggles pin state for the specified card */
83
- togglePinCard?: (id: UniqueId) => void;
84
- /** Checks if the specified card is pinned */
85
- isPinned?: (id: UniqueId) => boolean;
86
- /** Subscribes to pin state changes; returns an unsubscribe function */
87
- subscribeToPinState?: (callback: () => void) => () => void;
88
- /** Custom action buttons to render in the header */
89
- headerActions?: FloatingCardHeaderAction[];
90
- };
91
- /**
92
- * Creates an adapter component to map Dockview's header action props to custom header component props.
93
- *
94
- * Handles title change subscriptions and resolves MaybeFactory options (icon, headerActions)
95
- * either as static values or by invoking factory functions with the active card ID.
96
- *
97
- * @param Component - The header component to wrap.
98
- * @param options - Configuration options including icon and headerActions (static or factory).
99
- * @returns Adapter component compatible with Dockview's header API.
100
- */
101
- declare function createHeaderAdapter(Component: FunctionComponent<FloatingCardHeaderProps>, options: HeaderAdapterOptions): FunctionComponent<IDockviewHeaderActionsProps>;
24
+ declare function resolveMaybeFactory<T>(value: MaybeFactory<T> | undefined, cardId: string): T | undefined;
102
25
  //#endregion
103
- export { FloatingCardHeaderProps, MaybeFactory, createHeaderAdapter };
26
+ export { MaybeFactory, resolveMaybeFactory };
104
27
  //# sourceMappingURL=utils.d.ts.map
@@ -11,50 +11,24 @@
11
11
  */
12
12
 
13
13
 
14
- import { useEffect, useState } from "react";
15
- import { jsx } from "react/jsx-runtime";
16
-
17
14
  //#region src/components/floating-card/utils.tsx
18
15
  /**
19
- * Creates an adapter component to map Dockview's header action props to custom header component props.
16
+ * Reads a value that callers may supply either directly or as a per-card factory.
20
17
  *
21
- * Handles title change subscriptions and resolves MaybeFactory options (icon, headerActions)
22
- * either as static values or by invoking factory functions with the active card ID.
18
+ * @template T - Type of the resolved value.
19
+ * @param value - The static value or factory.
20
+ * @param cardId - Card the value is being resolved for.
21
+ * @returns The value for this card.
23
22
  *
24
- * @param Component - The header component to wrap.
25
- * @param options - Configuration options including icon and headerActions (static or factory).
26
- * @returns Adapter component compatible with Dockview's header API.
23
+ * @example
24
+ * ```tsx
25
+ * const icon = resolveMaybeFactory(props.icon, cardId);
26
+ * ```
27
27
  */
28
- function createHeaderAdapter(Component, options) {
29
- function HeaderAdapter(props) {
30
- const panelId = props.panels[0]?.id ?? "";
31
- const [title, setTitle] = useState(props.activePanel?.title);
32
- useEffect(() => {
33
- const panel = props.activePanel;
34
- if (!panel) return;
35
- setTitle(panel.title);
36
- const disposable = panel.api.onDidTitleChange(() => {
37
- setTitle(panel.title);
38
- });
39
- return () => {
40
- disposable.dispose();
41
- };
42
- }, [props.activePanel]);
43
- return /* @__PURE__ */ jsx(Component, {
44
- icon: props.activePanel ? typeof options?.icon === "function" ? options.icon(panelId) : options?.icon : void 0,
45
- headerActions: typeof options?.headerActions === "function" ? options.headerActions(panelId) : options?.headerActions,
46
- title,
47
- id: props.activePanel?.id,
48
- closeGroup: () => props.api.close(),
49
- togglePinCard: options.togglePinCard,
50
- isPinned: options.isPinned,
51
- subscribeToPinState: options.subscribeToPinState
52
- });
53
- }
54
- HeaderAdapter.displayName = `HeaderAdapter(${Component.displayName ?? Component.name ?? "Anonymous"})`;
55
- return HeaderAdapter;
28
+ function resolveMaybeFactory(value, cardId) {
29
+ return typeof value === "function" ? value(cardId) : value;
56
30
  }
57
31
 
58
32
  //#endregion
59
- export { createHeaderAdapter };
33
+ export { resolveMaybeFactory };
60
34
  //# sourceMappingURL=utils.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"utils.js","names":[],"sources":["../../../src/components/floating-card/utils.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 type FunctionComponent,\n type ReactNode,\n useEffect,\n useState,\n} from 'react';\nimport type { UniqueId } from '@accelint/core/utility/uuid';\nimport type { IDockviewHeaderActionsProps } from 'dockview-react';\nimport type { FloatingCardHeaderAction } from './types';\n\n/**\n * A value that can be static or dynamically computed per floating card.\n *\n * Enables per-card customization of props by passing a factory function\n * that receives the card ID and returns the appropriate value.\n *\n * @template T - The type of the static value or factory return type.\n */\nexport type MaybeFactory<T> = T | ((cardId: string) => T);\n\n/**\n * Configuration options passed to floating card header adapter functions.\n *\n * Used internally by the floating card system to provide header components\n * with the necessary props and callbacks for rendering customizable headers.\n *\n * @remarks\n * This type is primarily used when creating custom header adapters that need\n * access to icon, actions, and pin state management from the FloatingCardProvider.\n *\n * @example\n * ```tsx\n * function createHeaderAdapter(options: HeaderAdapterOptions) {\n * return (props: DockviewHeaderProps) => {\n * const icon = typeof options.icon === 'function'\n * ? options.icon(props.id)\n * : options.icon;\n * const actions = typeof options.headerActions === 'function'\n * ? options.headerActions(props.id)\n * : options.headerActions;\n *\n * return (\n * <CustomHeader\n * icon={icon}\n * actions={actions}\n * isPinned={options.isPinned?.(props.id)}\n * onTogglePin={() => options.togglePinCard?.(props.id)}\n * />\n * );\n * };\n * }\n * ```\n */\ntype HeaderAdapterOptions = {\n icon?: MaybeFactory<ReactNode>;\n headerActions?: MaybeFactory<FloatingCardHeaderProps['headerActions']>;\n togglePinCard?: (id: UniqueId) => void;\n isPinned?: (id: UniqueId) => boolean;\n subscribeToPinState?: (callback: () => void) => () => void;\n};\n\n/**\n * Props passed to floating card header components.\n *\n * @remarks Internal type used by header adapters to map Dockview props to custom header components.\n */\nexport type FloatingCardHeaderProps = {\n /** ID of the active floating card panel */\n id?: string;\n /** Title text displayed in the header */\n title?: string;\n /** Optional icon displayed at the start of the header */\n icon?: ReactNode;\n /** Callback to close the entire card group */\n closeGroup: () => void;\n /** Toggles pin state for the specified card */\n togglePinCard?: (id: UniqueId) => void;\n /** Checks if the specified card is pinned */\n isPinned?: (id: UniqueId) => boolean;\n /** Subscribes to pin state changes; returns an unsubscribe function */\n subscribeToPinState?: (callback: () => void) => () => void;\n /** Custom action buttons to render in the header */\n headerActions?: FloatingCardHeaderAction[];\n};\n\n/**\n * Creates an adapter component to map Dockview's header action props to custom header component props.\n *\n * Handles title change subscriptions and resolves MaybeFactory options (icon, headerActions)\n * either as static values or by invoking factory functions with the active card ID.\n *\n * @param Component - The header component to wrap.\n * @param options - Configuration options including icon and headerActions (static or factory).\n * @returns Adapter component compatible with Dockview's header API.\n */\nexport function createHeaderAdapter(\n Component: FunctionComponent<FloatingCardHeaderProps>,\n options: HeaderAdapterOptions,\n): FunctionComponent<IDockviewHeaderActionsProps> {\n function HeaderAdapter(props: Readonly<IDockviewHeaderActionsProps>) {\n const panelId = props.panels[0]?.id ?? '';\n const [title, setTitle] = useState(props.activePanel?.title);\n\n useEffect(() => {\n const panel = props.activePanel;\n\n if (!panel) {\n return;\n }\n\n setTitle(panel.title);\n\n const disposable = panel.api.onDidTitleChange(() => {\n setTitle(panel.title);\n });\n\n return () => {\n disposable.dispose();\n };\n }, [props.activePanel]);\n const icon = props.activePanel\n ? typeof options?.icon === 'function'\n ? options.icon(panelId)\n : options?.icon\n : undefined;\n const headerActions =\n typeof options?.headerActions === 'function'\n ? options.headerActions(panelId)\n : options?.headerActions;\n return (\n <Component\n icon={icon}\n headerActions={headerActions}\n title={title}\n id={props.activePanel?.id}\n closeGroup={() => props.api.close()}\n togglePinCard={options.togglePinCard}\n isPinned={options.isPinned}\n subscribeToPinState={options.subscribeToPinState}\n />\n );\n }\n\n HeaderAdapter.displayName = `HeaderAdapter(${Component.displayName ?? Component.name ?? 'Anonymous'})`;\n return HeaderAdapter;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AA4GA,SAAgB,oBACd,WACA,SACgD;CAChD,SAAS,cAAc,OAA8C;EACnE,MAAM,UAAU,MAAM,OAAO,IAAI,MAAM;EACvC,MAAM,CAAC,OAAO,YAAY,SAAS,MAAM,aAAa,MAAM;AAE5D,kBAAgB;GACd,MAAM,QAAQ,MAAM;AAEpB,OAAI,CAAC,MACH;AAGF,YAAS,MAAM,MAAM;GAErB,MAAM,aAAa,MAAM,IAAI,uBAAuB;AAClD,aAAS,MAAM,MAAM;KACrB;AAEF,gBAAa;AACX,eAAW,SAAS;;KAErB,CAAC,MAAM,YAAY,CAAC;AAUvB,SACE,oBAAC;GACC,MAXS,MAAM,cACf,OAAO,SAAS,SAAS,aACvB,QAAQ,KAAK,QAAQ,GACrB,SAAS,OACX;GAQA,eANF,OAAO,SAAS,kBAAkB,aAC9B,QAAQ,cAAc,QAAQ,GAC9B,SAAS;GAKJ;GACP,IAAI,MAAM,aAAa;GACvB,kBAAkB,MAAM,IAAI,OAAO;GACnC,eAAe,QAAQ;GACvB,UAAU,QAAQ;GAClB,qBAAqB,QAAQ;IAC7B;;AAIN,eAAc,cAAc,iBAAiB,UAAU,eAAe,UAAU,QAAQ,YAAY;AACpG,QAAO"}
1
+ {"version":3,"file":"utils.js","names":[],"sources":["../../../src/components/floating-card/utils.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\n/**\n * A value that can be static or dynamically computed per floating card.\n *\n * Enables per-card customization of props by passing a factory function\n * that receives the card ID and returns the appropriate value.\n *\n * @template T - The type of the static value or factory return type.\n */\nexport type MaybeFactory<T> = T | ((cardId: string) => T);\n\n/**\n * Reads a value that callers may supply either directly or as a per-card factory.\n *\n * @template T - Type of the resolved value.\n * @param value - The static value or factory.\n * @param cardId - Card the value is being resolved for.\n * @returns The value for this card.\n *\n * @example\n * ```tsx\n * const icon = resolveMaybeFactory(props.icon, cardId);\n * ```\n */\nexport function resolveMaybeFactory<T>(\n value: MaybeFactory<T> | undefined,\n cardId: string,\n): T | undefined {\n return typeof value === 'function'\n ? (value as (cardId: string) => T)(cardId)\n : value;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAoCA,SAAgB,oBACd,OACA,QACe;AACf,QAAO,OAAO,UAAU,aACnB,MAAgC,OAAO,GACxC"}
@@ -12,7 +12,7 @@
12
12
 
13
13
  import { GanttRowElementColorProp } from "../../types.js";
14
14
  import { HTMLAttributes, PropsWithChildren } from "react";
15
- import * as react_jsx_runtime216 from "react/jsx-runtime";
15
+ import * as react_jsx_runtime217 from "react/jsx-runtime";
16
16
 
17
17
  //#region src/components/gantt/components/base-elements/range.d.ts
18
18
  /** Props for range-based Gantt elements (blocks, spacers). */
@@ -24,7 +24,7 @@ type RangeProps = HTMLAttributes<HTMLDivElement> & {
24
24
  /** Visual color variant. @default 'accent' */
25
25
  color?: GanttRowElementColorProp;
26
26
  };
27
- declare function Range(props: PropsWithChildren<RangeProps>): react_jsx_runtime216.JSX.Element | null;
27
+ declare function Range(props: PropsWithChildren<RangeProps>): react_jsx_runtime217.JSX.Element | null;
28
28
  //#endregion
29
29
  export { Range, RangeProps };
30
30
  //# sourceMappingURL=range.d.ts.map
@@ -11,13 +11,13 @@
11
11
  */
12
12
 
13
13
  import { PropsWithChildren } from "react";
14
- import * as react_jsx_runtime46 from "react/jsx-runtime";
14
+ import * as react_jsx_runtime239 from "react/jsx-runtime";
15
15
 
16
16
  //#region src/components/gantt/components/containers/external/gantt-panel-container/index.d.ts
17
17
  /** Fixed-width side panel of the Gantt chart for row labels, paired alongside `GanttContentContainer`. */
18
18
  declare function GanttPanelContainer({
19
19
  children
20
- }: PropsWithChildren): react_jsx_runtime46.JSX.Element;
20
+ }: PropsWithChildren): react_jsx_runtime239.JSX.Element;
21
21
  //#endregion
22
22
  export { GanttPanelContainer };
23
23
  //# sourceMappingURL=index.d.ts.map
@@ -11,12 +11,12 @@
11
11
  */
12
12
 
13
13
  import { PropsWithChildren } from "react";
14
- import * as react_jsx_runtime234 from "react/jsx-runtime";
14
+ import * as react_jsx_runtime235 from "react/jsx-runtime";
15
15
 
16
16
  //#region src/components/gantt/components/containers/internal/index.d.ts
17
17
  declare function RootContainer({
18
18
  children
19
- }: PropsWithChildren): react_jsx_runtime234.JSX.Element;
19
+ }: PropsWithChildren): react_jsx_runtime235.JSX.Element;
20
20
  //#endregion
21
21
  export { RootContainer };
22
22
  //# sourceMappingURL=index.d.ts.map
@@ -11,12 +11,12 @@
11
11
  */
12
12
 
13
13
  import { PropsWithChildren } from "react";
14
- import * as react_jsx_runtime236 from "react/jsx-runtime";
14
+ import * as react_jsx_runtime238 from "react/jsx-runtime";
15
15
 
16
16
  //#region src/components/gantt/components/containers/internal/layout-container/index.d.ts
17
17
  declare function LayoutContainer({
18
18
  children
19
- }: PropsWithChildren): react_jsx_runtime236.JSX.Element;
19
+ }: PropsWithChildren): react_jsx_runtime238.JSX.Element;
20
20
  //#endregion
21
21
  export { LayoutContainer };
22
22
  //# sourceMappingURL=index.d.ts.map
@@ -11,12 +11,12 @@
11
11
  */
12
12
 
13
13
  import { PropsWithChildren } from "react";
14
- import * as react_jsx_runtime238 from "react/jsx-runtime";
14
+ import * as react_jsx_runtime0 from "react/jsx-runtime";
15
15
 
16
16
  //#region src/components/gantt/components/containers/internal/virtualized-content-height-container/index.d.ts
17
17
  declare function VirtualizedContentHeightContainer({
18
18
  children
19
- }: PropsWithChildren): react_jsx_runtime238.JSX.Element;
19
+ }: PropsWithChildren): react_jsx_runtime0.JSX.Element;
20
20
  //#endregion
21
21
  export { VirtualizedContentHeightContainer };
22
22
  //# sourceMappingURL=index.d.ts.map
@@ -11,7 +11,7 @@
11
11
  */
12
12
 
13
13
  import { RangeProps } from "../base-elements/range.js";
14
- import * as react_jsx_runtime217 from "react/jsx-runtime";
14
+ import * as react_jsx_runtime218 from "react/jsx-runtime";
15
15
 
16
16
  //#region src/components/gantt/components/content-row/block.d.ts
17
17
  /** Time-range element rendered as a filled bar on the timeline. Supports elapsed-percentage styling and child content. */
@@ -21,7 +21,7 @@ declare function GanttBlock({
21
21
  endTimeMs,
22
22
  className,
23
23
  ...rest
24
- }: RangeProps): react_jsx_runtime217.JSX.Element;
24
+ }: RangeProps): react_jsx_runtime218.JSX.Element;
25
25
  //#endregion
26
26
  export { GanttBlock };
27
27
  //# sourceMappingURL=block.d.ts.map
@@ -11,13 +11,13 @@
11
11
  */
12
12
 
13
13
  import { PointProps } from "../base-elements/point.js";
14
- import * as react_jsx_runtime218 from "react/jsx-runtime";
14
+ import * as react_jsx_runtime219 from "react/jsx-runtime";
15
15
 
16
16
  //#region src/components/gantt/components/content-row/bracket.d.ts
17
17
  /** Opening bracket marker at a specific timestamp, indicating the start of a grouped range. */
18
- declare function GanttBracketOpen(props: PointProps): react_jsx_runtime218.JSX.Element;
18
+ declare function GanttBracketOpen(props: PointProps): react_jsx_runtime219.JSX.Element;
19
19
  /** Closing bracket marker at a specific timestamp, indicating the end of a grouped range. */
20
- declare function GanttBracketClose(props: PointProps): react_jsx_runtime218.JSX.Element;
20
+ declare function GanttBracketClose(props: PointProps): react_jsx_runtime219.JSX.Element;
21
21
  //#endregion
22
22
  export { GanttBracketClose, GanttBracketOpen };
23
23
  //# sourceMappingURL=bracket.d.ts.map
@@ -12,7 +12,7 @@
12
12
 
13
13
  import { PointProps } from "../base-elements/point.js";
14
14
  import { PropsWithChildren } from "react";
15
- import * as react_jsx_runtime220 from "react/jsx-runtime";
15
+ import * as react_jsx_runtime222 from "react/jsx-runtime";
16
16
 
17
17
  //#region src/components/gantt/components/content-row/icon-marker.d.ts
18
18
  type GanttIconMarkerProps = PropsWithChildren<PointProps>;
@@ -21,7 +21,7 @@ declare function GanttIconMarker({
21
21
  children,
22
22
  color,
23
23
  ...rest
24
- }: GanttIconMarkerProps): react_jsx_runtime220.JSX.Element;
24
+ }: GanttIconMarkerProps): react_jsx_runtime222.JSX.Element;
25
25
  //#endregion
26
26
  export { GanttIconMarker };
27
27
  //# sourceMappingURL=icon-marker.d.ts.map
@@ -11,14 +11,14 @@
11
11
  */
12
12
 
13
13
  import { PropsWithChildren } from "react";
14
- import * as react_jsx_runtime221 from "react/jsx-runtime";
14
+ import * as react_jsx_runtime223 from "react/jsx-runtime";
15
15
 
16
16
  //#region src/components/gantt/components/content-row/index.d.ts
17
17
  /** Row wrapper for content-side elements (blocks, markers, spacers, brackets). Paired 1:1 with `GanttPanelRow`. */
18
18
  declare function GanttContentRow({
19
19
  children,
20
20
  ...rest
21
- }: PropsWithChildren): react_jsx_runtime221.JSX.Element;
21
+ }: PropsWithChildren): react_jsx_runtime223.JSX.Element;
22
22
  //#endregion
23
23
  export { GanttContentRow };
24
24
  //# sourceMappingURL=index.d.ts.map
@@ -11,11 +11,11 @@
11
11
  */
12
12
 
13
13
  import { PointProps } from "../base-elements/point.js";
14
- import * as react_jsx_runtime222 from "react/jsx-runtime";
14
+ import * as react_jsx_runtime221 from "react/jsx-runtime";
15
15
 
16
16
  //#region src/components/gantt/components/content-row/marker.d.ts
17
17
  /** Point marker rendered as a vertical line with a dot at a specific timestamp on the timeline. */
18
- declare function GanttMarker(props: PointProps): react_jsx_runtime222.JSX.Element;
18
+ declare function GanttMarker(props: PointProps): react_jsx_runtime221.JSX.Element;
19
19
  //#endregion
20
20
  export { GanttMarker };
21
21
  //# sourceMappingURL=marker.d.ts.map
@@ -11,13 +11,13 @@
11
11
  */
12
12
 
13
13
  import { RangeProps } from "../base-elements/range.js";
14
- import * as react_jsx_runtime223 from "react/jsx-runtime";
14
+ import * as react_jsx_runtime224 from "react/jsx-runtime";
15
15
 
16
16
  //#region src/components/gantt/components/content-row/spacer.d.ts
17
17
  /** Props for the GanttSpacer component. Inherits RangeProps except className. */
18
18
  type GanttSpacerProps = Omit<RangeProps, 'className'>;
19
19
  /** Time-range connector line between visible elements on the timeline. */
20
- declare function GanttSpacer(props: GanttSpacerProps): react_jsx_runtime223.JSX.Element;
20
+ declare function GanttSpacer(props: GanttSpacerProps): react_jsx_runtime224.JSX.Element;
21
21
  //#endregion
22
22
  export { GanttSpacer, GanttSpacerProps };
23
23
  //# sourceMappingURL=spacer.d.ts.map
@@ -10,7 +10,7 @@
10
10
  * governing permissions and limitations under the License.
11
11
  */
12
12
 
13
- import * as react_jsx_runtime224 from "react/jsx-runtime";
13
+ import * as react_jsx_runtime225 from "react/jsx-runtime";
14
14
 
15
15
  //#region src/components/gantt/components/current-time/index.d.ts
16
16
  /**
@@ -22,7 +22,7 @@ declare function CurrentTime({
22
22
  currentTimeMs
23
23
  }: {
24
24
  currentTimeMs: number;
25
- }): react_jsx_runtime224.JSX.Element | null;
25
+ }): react_jsx_runtime225.JSX.Element | null;
26
26
  //#endregion
27
27
  export { CurrentTime };
28
28
  //# sourceMappingURL=index.d.ts.map
@@ -11,15 +11,15 @@
11
11
  */
12
12
 
13
13
  import { PropsWithChildren } from "react";
14
- import * as react_jsx_runtime225 from "react/jsx-runtime";
14
+ import * as react_jsx_runtime226 from "react/jsx-runtime";
15
15
 
16
16
  //#region src/components/gantt/components/header/index.d.ts
17
17
  declare function ContentHeader({
18
18
  children
19
- }: PropsWithChildren): react_jsx_runtime225.JSX.Element;
19
+ }: PropsWithChildren): react_jsx_runtime226.JSX.Element;
20
20
  declare function PanelHeader({
21
21
  children
22
- }: PropsWithChildren): react_jsx_runtime225.JSX.Element;
22
+ }: PropsWithChildren): react_jsx_runtime226.JSX.Element;
23
23
  //#endregion
24
24
  export { ContentHeader, PanelHeader };
25
25
  //# sourceMappingURL=index.d.ts.map
@@ -11,14 +11,14 @@
11
11
  */
12
12
 
13
13
  import { PropsWithChildren } from "react";
14
- import * as react_jsx_runtime227 from "react/jsx-runtime";
14
+ import * as react_jsx_runtime228 from "react/jsx-runtime";
15
15
 
16
16
  //#region src/components/gantt/components/panel-row/index.d.ts
17
17
  /** Row wrapper for the panel side, typically containing a row label. Paired 1:1 with `GanttContentRow`. */
18
18
  declare function GanttPanelRow({
19
19
  children,
20
20
  ...rest
21
- }: PropsWithChildren): react_jsx_runtime227.JSX.Element;
21
+ }: PropsWithChildren): react_jsx_runtime228.JSX.Element;
22
22
  //#endregion
23
23
  export { GanttPanelRow };
24
24
  //# sourceMappingURL=index.d.ts.map
@@ -11,15 +11,15 @@
11
11
  */
12
12
 
13
13
  import { PropsWithChildren } from "react";
14
- import * as react_jsx_runtime228 from "react/jsx-runtime";
14
+ import * as react_jsx_runtime229 from "react/jsx-runtime";
15
15
 
16
16
  //#region src/components/gantt/components/rows-virtualizer/index.d.ts
17
17
  declare function ContentRowsVirtualizer({
18
18
  children
19
- }: PropsWithChildren): react_jsx_runtime228.JSX.Element;
19
+ }: PropsWithChildren): react_jsx_runtime229.JSX.Element;
20
20
  declare function PanelRowsVirtualizer({
21
21
  children
22
- }: PropsWithChildren): react_jsx_runtime228.JSX.Element;
22
+ }: PropsWithChildren): react_jsx_runtime229.JSX.Element;
23
23
  //#endregion
24
24
  export { ContentRowsVirtualizer, PanelRowsVirtualizer };
25
25
  //# sourceMappingURL=index.d.ts.map
@@ -10,10 +10,10 @@
10
10
  * governing permissions and limitations under the License.
11
11
  */
12
12
 
13
- import * as react_jsx_runtime230 from "react/jsx-runtime";
13
+ import * as react_jsx_runtime231 from "react/jsx-runtime";
14
14
 
15
15
  //#region src/components/gantt/components/timeline/index.d.ts
16
- declare function Timeline(): react_jsx_runtime230.JSX.Element;
16
+ declare function Timeline(): react_jsx_runtime231.JSX.Element;
17
17
  //#endregion
18
18
  export { Timeline };
19
19
  //# sourceMappingURL=index.d.ts.map
@@ -11,9 +11,9 @@
11
11
  */
12
12
 
13
13
  import { GanttThresholdProps, GanttTimescale } from "../types.js";
14
- import * as react56 from "react";
14
+ import * as react55 from "react";
15
15
  import { PropsWithChildren } from "react";
16
- import * as react_jsx_runtime235 from "react/jsx-runtime";
16
+ import * as react_jsx_runtime214 from "react/jsx-runtime";
17
17
 
18
18
  //#region src/components/gantt/context/index.d.ts
19
19
  type GanttContextValue = {
@@ -29,7 +29,7 @@ type GanttContextValue = {
29
29
  assignGanttContentElementRef: (node: HTMLDivElement | null) => void;
30
30
  assignGanttPanelElementRef: (node: HTMLDivElement | null) => void;
31
31
  };
32
- declare const GanttContext: react56.Context<GanttContextValue | undefined>;
32
+ declare const GanttContext: react55.Context<GanttContextValue | undefined>;
33
33
  type GanttProviderProps = {
34
34
  /** Start of the total timeline range in epoch milliseconds. */
35
35
  startTimeMs: number;
@@ -52,7 +52,7 @@ declare function GanttProvider({
52
52
  thresholdProps,
53
53
  currentTimeMs,
54
54
  rowHeightPx
55
- }: PropsWithChildren<GanttProviderProps>): react_jsx_runtime235.JSX.Element;
55
+ }: PropsWithChildren<GanttProviderProps>): react_jsx_runtime214.JSX.Element;
56
56
  /** @throws {Error} If called outside of a GanttProvider. */
57
57
  declare function useGanttContext(): GanttContextValue;
58
58
  //#endregion
@@ -11,13 +11,13 @@
11
11
  */
12
12
 
13
13
  import { GanttActions, GanttState, GanttStoreProps } from "../../store.js";
14
- import * as react55 from "react";
14
+ import * as react57 from "react";
15
15
  import { PropsWithChildren } from "react";
16
- import * as react_jsx_runtime231 from "react/jsx-runtime";
16
+ import * as react_jsx_runtime234 from "react/jsx-runtime";
17
17
  import * as zustand0 from "zustand";
18
18
 
19
19
  //#region src/components/gantt/context/store/index.d.ts
20
- declare const GanttStoreContext: react55.Context<(Omit<zustand0.StoreApi<GanttState & GanttActions>, "subscribe"> & {
20
+ declare const GanttStoreContext: react57.Context<(Omit<zustand0.StoreApi<GanttState & GanttActions>, "subscribe"> & {
21
21
  subscribe: {
22
22
  (listener: (selectedState: GanttState & GanttActions, previousSelectedState: GanttState & GanttActions) => void): () => void;
23
23
  <U>(selector: (state: GanttState & GanttActions) => U, listener: (selectedState: U, previousSelectedState: U) => void, options?: {
@@ -29,7 +29,7 @@ declare const GanttStoreContext: react55.Context<(Omit<zustand0.StoreApi<GanttSt
29
29
  declare function GanttStoreProvider({
30
30
  children,
31
31
  startTimeMs
32
- }: PropsWithChildren<GanttStoreProps>): react_jsx_runtime231.JSX.Element;
32
+ }: PropsWithChildren<GanttStoreProps>): react_jsx_runtime234.JSX.Element;
33
33
  declare function useGanttStore<T>(selector: (state: GanttState & GanttActions) => T): T;
34
34
  declare function useGanttStoreApi(): Omit<zustand0.StoreApi<GanttState & GanttActions>, "subscribe"> & {
35
35
  subscribe: {