@synnaxlabs/pluto 0.12.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 (612) hide show
  1. package/LICENSE +4 -0
  2. package/README.md +34 -0
  3. package/dist/Center-ZAcURh-3.cjs +148 -0
  4. package/dist/Center-ZAcURh-3.cjs.map +1 -0
  5. package/dist/Center-gEKkAkdh.js +149 -0
  6. package/dist/Center-gEKkAkdh.js.map +1 -0
  7. package/dist/Header-5YX6FUn6.cjs +35 -0
  8. package/dist/Header-5YX6FUn6.cjs.map +1 -0
  9. package/dist/Header-7x6367IV.js +36 -0
  10. package/dist/Header-7x6367IV.js.map +1 -0
  11. package/dist/Item-EDdYN2NK.js +171 -0
  12. package/dist/Item-EDdYN2NK.js.map +1 -0
  13. package/dist/Item-HWzX7RK2.cjs +170 -0
  14. package/dist/Item-HWzX7RK2.cjs.map +1 -0
  15. package/dist/Item-owLU4Xop.js +97 -0
  16. package/dist/Item-owLU4Xop.js.map +1 -0
  17. package/dist/Item-rkSKzZoh.cjs +96 -0
  18. package/dist/Item-rkSKzZoh.cjs.map +1 -0
  19. package/dist/Keyboard-mE03PKwA.js +14 -0
  20. package/dist/Keyboard-mE03PKwA.js.map +1 -0
  21. package/dist/Keyboard-w372197S.cjs +13 -0
  22. package/dist/Keyboard-w372197S.cjs.map +1 -0
  23. package/dist/Link-laNlv47N.js +13 -0
  24. package/dist/Link-laNlv47N.js.map +1 -0
  25. package/dist/Link-xlTZan29.cjs +12 -0
  26. package/dist/Link-xlTZan29.cjs.map +1 -0
  27. package/dist/SelectLevel-bGb0dRXh.cjs +152 -0
  28. package/dist/SelectLevel-bGb0dRXh.cjs.map +1 -0
  29. package/dist/SelectLevel-cewIWtOv.js +153 -0
  30. package/dist/SelectLevel-cewIWtOv.js.map +1 -0
  31. package/dist/Selector-R3lL41_i.js +267 -0
  32. package/dist/Selector-R3lL41_i.js.map +1 -0
  33. package/dist/Selector-hQLSIYum.cjs +266 -0
  34. package/dist/Selector-hQLSIYum.cjs.map +1 -0
  35. package/dist/TimeRangeChip-XXXLMCrf.cjs +9316 -0
  36. package/dist/TimeRangeChip-XXXLMCrf.cjs.map +1 -0
  37. package/dist/TimeRangeChip-eDCX5pUC.js +9301 -0
  38. package/dist/TimeRangeChip-eDCX5pUC.js.map +1 -0
  39. package/dist/Toggle-eOKYw1OT.cjs +13664 -0
  40. package/dist/Toggle-eOKYw1OT.cjs.map +1 -0
  41. package/dist/Toggle-kLunfJtR.js +13665 -0
  42. package/dist/Toggle-kLunfJtR.js.map +1 -0
  43. package/dist/Video-Vpwp5ao1.js +12 -0
  44. package/dist/Video-Vpwp5ao1.js.map +1 -0
  45. package/dist/Video-a7BUKvzF.cjs +11 -0
  46. package/dist/Video-a7BUKvzF.cjs.map +1 -0
  47. package/dist/Video-k52RqIHf.cjs +2 -0
  48. package/dist/Video-k52RqIHf.cjs.map +1 -0
  49. package/dist/Video-w40geAFS.js +2 -0
  50. package/dist/Video-w40geAFS.js.map +1 -0
  51. package/dist/accordion/Accordion.d.ts +38 -0
  52. package/dist/accordion/Accordion.spec.d.ts +1 -0
  53. package/dist/accordion/Accordion.stories.d.ts +5 -0
  54. package/dist/accordion/index.d.ts +1 -0
  55. package/dist/aether/aether/aether.d.ts +247 -0
  56. package/dist/aether/aether/index.d.ts +2 -0
  57. package/dist/aether/aether/worker.spec.d.ts +8 -0
  58. package/dist/aether/index.d.ts +1 -0
  59. package/dist/aether/main.d.ts +96 -0
  60. package/dist/aether/main.spec.d.ts +8 -0
  61. package/dist/aether/message.d.ts +17 -0
  62. package/dist/aether.cjs +90 -0
  63. package/dist/aether.cjs.map +1 -0
  64. package/dist/aether.js +93 -0
  65. package/dist/aether.js.map +1 -0
  66. package/dist/aetherIndex.d.ts +14 -0
  67. package/dist/alamos/Provider.d.ts +12 -0
  68. package/dist/alamos/aether/alamos.d.ts +39 -0
  69. package/dist/alamos/aether/index.d.ts +1 -0
  70. package/dist/alamos/index.d.ts +1 -0
  71. package/dist/align/Center.d.ts +8 -0
  72. package/dist/align/Pack.d.ts +23 -0
  73. package/dist/align/Pack.stories.d.ts +8 -0
  74. package/dist/align/Space.d.ts +54 -0
  75. package/dist/align/Space.spec.d.ts +1 -0
  76. package/dist/align/Space.stories.d.ts +5 -0
  77. package/dist/align/external.d.ts +3 -0
  78. package/dist/align/index.d.ts +1 -0
  79. package/dist/align.cjs +10 -0
  80. package/dist/align.cjs.map +1 -0
  81. package/dist/align.js +10 -0
  82. package/dist/align.js.map +1 -0
  83. package/dist/button/Button.d.ts +46 -0
  84. package/dist/button/Button.spec.d.ts +1 -0
  85. package/dist/button/Button.stories.d.ts +9 -0
  86. package/dist/button/Icon.d.ts +19 -0
  87. package/dist/button/Link.d.ts +16 -0
  88. package/dist/button/Toggle.d.ts +34 -0
  89. package/dist/button/color.d.ts +3 -0
  90. package/dist/button/external.d.ts +4 -0
  91. package/dist/button/index.d.ts +1 -0
  92. package/dist/button.cjs +15 -0
  93. package/dist/button.cjs.map +1 -0
  94. package/dist/button.js +15 -0
  95. package/dist/button.js.map +1 -0
  96. package/dist/channel/AliasProvider.d.ts +24 -0
  97. package/dist/channel/ChannelSelect.stories.d.ts +7 -0
  98. package/dist/channel/LinePlot.d.ts +72 -0
  99. package/dist/channel/LinePlot.stories.d.ts +6 -0
  100. package/dist/channel/Select.d.ts +11 -0
  101. package/dist/channel/external.d.ts +3 -0
  102. package/dist/channel/index.d.ts +1 -0
  103. package/dist/channel/types.d.ts +1 -0
  104. package/dist/color/Picker/Picker.d.ts +6 -0
  105. package/dist/color/Picker/Picker.stories.d.ts +6 -0
  106. package/dist/color/Picker/index.d.ts +1 -0
  107. package/dist/color/Swatch/Swatch.d.ts +8 -0
  108. package/dist/color/Swatch/index.d.ts +1 -0
  109. package/dist/color/core/color.d.ts +128 -0
  110. package/dist/color/core/color.spec.d.ts +1 -0
  111. package/dist/color/core/index.d.ts +2 -0
  112. package/dist/color/external.d.ts +4 -0
  113. package/dist/color/index.d.ts +1 -0
  114. package/dist/component-joFaJiQW.cjs +24719 -0
  115. package/dist/component-joFaJiQW.cjs.map +1 -0
  116. package/dist/component-k78Jq9I7.js +24720 -0
  117. package/dist/component-k78Jq9I7.js.map +1 -0
  118. package/dist/css/bem.d.ts +14 -0
  119. package/dist/css/bem.spec.d.ts +1 -0
  120. package/dist/css/color.d.ts +10 -0
  121. package/dist/css/css.d.ts +27 -0
  122. package/dist/css/grid.d.ts +14 -0
  123. package/dist/css/index.d.ts +4 -0
  124. package/dist/css/units.d.ts +1 -0
  125. package/dist/css/vars.d.ts +1 -0
  126. package/dist/css-NTD4Xm8x.js +9206 -0
  127. package/dist/css-NTD4Xm8x.js.map +1 -0
  128. package/dist/css-V3VUT_Js.cjs +9204 -0
  129. package/dist/css-V3VUT_Js.cjs.map +1 -0
  130. package/dist/cursor/cursor.d.ts +3 -0
  131. package/dist/cursor/index.d.ts +1 -0
  132. package/dist/dimensions-Sej0Zly9.cjs +26 -0
  133. package/dist/dimensions-Sej0Zly9.cjs.map +1 -0
  134. package/dist/dimensions-guJ5PHmb.js +27 -0
  135. package/dist/dimensions-guJ5PHmb.js.map +1 -0
  136. package/dist/divider/Divider.d.ts +14 -0
  137. package/dist/divider/index.d.ts +2 -0
  138. package/dist/dropdown/Dropdown.d.ts +49 -0
  139. package/dist/dropdown/Dropdown.spec.d.ts +1 -0
  140. package/dist/dropdown/Dropdown.stories.d.ts +5 -0
  141. package/dist/dropdown/index.d.ts +2 -0
  142. package/dist/dropdown.cjs +13 -0
  143. package/dist/dropdown.cjs.map +1 -0
  144. package/dist/dropdown.js +13 -0
  145. package/dist/dropdown.js.map +1 -0
  146. package/dist/external-2Aicsb3l.js +88 -0
  147. package/dist/external-2Aicsb3l.js.map +1 -0
  148. package/dist/external-9Ncn2J9B.cjs +93 -0
  149. package/dist/external-9Ncn2J9B.cjs.map +1 -0
  150. package/dist/external-9RCzxzgZ.js +30 -0
  151. package/dist/external-9RCzxzgZ.js.map +1 -0
  152. package/dist/external-9pS8-DvV.js +15 -0
  153. package/dist/external-9pS8-DvV.js.map +1 -0
  154. package/dist/external-KxlyA74C.js +20 -0
  155. package/dist/external-KxlyA74C.js.map +1 -0
  156. package/dist/external-OSLzuRs1.cjs +14 -0
  157. package/dist/external-OSLzuRs1.cjs.map +1 -0
  158. package/dist/external-PS3nzqUn.cjs +23 -0
  159. package/dist/external-PS3nzqUn.cjs.map +1 -0
  160. package/dist/external-QRmqSjV0.js +18 -0
  161. package/dist/external-QRmqSjV0.js.map +1 -0
  162. package/dist/external-QuVTCnGl.js +71 -0
  163. package/dist/external-QuVTCnGl.js.map +1 -0
  164. package/dist/external-U5HRPaDI.cjs +17 -0
  165. package/dist/external-U5HRPaDI.cjs.map +1 -0
  166. package/dist/external-_CtRDtih.js +17 -0
  167. package/dist/external-_CtRDtih.js.map +1 -0
  168. package/dist/external-eQU48hM4.cjs +87 -0
  169. package/dist/external-eQU48hM4.cjs.map +1 -0
  170. package/dist/external-kbDFnfuk.js +24 -0
  171. package/dist/external-kbDFnfuk.js.map +1 -0
  172. package/dist/external-oX1JmOFf.js +17 -0
  173. package/dist/external-oX1JmOFf.js.map +1 -0
  174. package/dist/external-oZe6tF4A.cjs +14 -0
  175. package/dist/external-oZe6tF4A.cjs.map +1 -0
  176. package/dist/external-tVcmKSsT.cjs +19 -0
  177. package/dist/external-tVcmKSsT.cjs.map +1 -0
  178. package/dist/external-up1sE3F6.js +94 -0
  179. package/dist/external-up1sE3F6.js.map +1 -0
  180. package/dist/external-uvx0b-Jw.cjs +16 -0
  181. package/dist/external-uvx0b-Jw.cjs.map +1 -0
  182. package/dist/external-vXBQOmKv.js +15 -0
  183. package/dist/external-vXBQOmKv.js.map +1 -0
  184. package/dist/external-yiqRIIvW.cjs +16 -0
  185. package/dist/external-yiqRIIvW.cjs.map +1 -0
  186. package/dist/external-zBiIxeDG.cjs +70 -0
  187. package/dist/external-zBiIxeDG.cjs.map +1 -0
  188. package/dist/external-zw9fckWT.cjs +29 -0
  189. package/dist/external-zw9fckWT.cjs.map +1 -0
  190. package/dist/font-t7KoGNFX.js +17 -0
  191. package/dist/font-t7KoGNFX.js.map +1 -0
  192. package/dist/font-wlgaMRYN.cjs +16 -0
  193. package/dist/font-wlgaMRYN.cjs.map +1 -0
  194. package/dist/fontString-RKvYIr5H.js +13 -0
  195. package/dist/fontString-RKvYIr5H.js.map +1 -0
  196. package/dist/fontString-i24UxKCQ.cjs +12 -0
  197. package/dist/fontString-i24UxKCQ.cjs.map +1 -0
  198. package/dist/generic/Generic.d.ts +13 -0
  199. package/dist/generic/index.d.ts +1 -0
  200. package/dist/haul/Haul.d.ts +60 -0
  201. package/dist/haul/index.d.ts +1 -0
  202. package/dist/header/Actions.d.ts +15 -0
  203. package/dist/header/ButtonTitle.d.ts +13 -0
  204. package/dist/header/Header.d.ts +28 -0
  205. package/dist/header/Header.spec.d.ts +1 -0
  206. package/dist/header/Header.stories.d.ts +6 -0
  207. package/dist/header/Title.d.ts +13 -0
  208. package/dist/header/external.d.ts +4 -0
  209. package/dist/header/index.d.ts +1 -0
  210. package/dist/header.cjs +15 -0
  211. package/dist/header.cjs.map +1 -0
  212. package/dist/header.js +15 -0
  213. package/dist/header.js.map +1 -0
  214. package/dist/hooks/effect.d.ts +14 -0
  215. package/dist/hooks/index.d.ts +8 -0
  216. package/dist/hooks/ref.d.ts +31 -0
  217. package/dist/hooks/useClickOutside.d.ts +9 -0
  218. package/dist/hooks/useCursorDrag/index.d.ts +2 -0
  219. package/dist/hooks/useCursorDrag/types.d.ts +5 -0
  220. package/dist/hooks/useCursorDrag/useCursorDrag.d.ts +10 -0
  221. package/dist/hooks/useCursorDrag/useVirtualCursorDrag.d.ts +1 -0
  222. package/dist/hooks/useCursorDrag/useVirtualCursorDragWebKit.d.ts +2 -0
  223. package/dist/hooks/useCursorDrag/useVirtualCursorDragWebView.d.ts +2 -0
  224. package/dist/hooks/useDebouncedCallback.d.ts +2 -0
  225. package/dist/hooks/useFilter.d.ts +21 -0
  226. package/dist/hooks/useResize.d.ts +24 -0
  227. package/dist/hooks/useSelectMultiple.d.ts +51 -0
  228. package/dist/hooks/useTransforms.d.ts +15 -0
  229. package/dist/hooks/useUniqueKey.d.ts +6 -0
  230. package/dist/index.cjs +1175 -0
  231. package/dist/index.cjs.map +1 -0
  232. package/dist/index.d.ts +51 -0
  233. package/dist/index.js +1182 -0
  234. package/dist/index.js.map +1 -0
  235. package/dist/input/Date.d.ts +28 -0
  236. package/dist/input/DragButton.d.ts +14 -0
  237. package/dist/input/HelpText.d.ts +19 -0
  238. package/dist/input/Input.spec.d.ts +1 -0
  239. package/dist/input/Input.stories.d.ts +9 -0
  240. package/dist/input/Item.d.ts +23 -0
  241. package/dist/input/Label.d.ts +13 -0
  242. package/dist/input/Number.d.ts +30 -0
  243. package/dist/input/Switch.d.ts +15 -0
  244. package/dist/input/Text.d.ts +18 -0
  245. package/dist/input/Time.d.ts +30 -0
  246. package/dist/input/Time.spec.d.ts +1 -0
  247. package/dist/input/external.d.ts +10 -0
  248. package/dist/input/index.d.ts +1 -0
  249. package/dist/input/types.d.ts +19 -0
  250. package/dist/input.cjs +15 -0
  251. package/dist/input.cjs.map +1 -0
  252. package/dist/input.js +15 -0
  253. package/dist/input.js.map +1 -0
  254. package/dist/jsx-runtime-N1ikfypN.cjs +931 -0
  255. package/dist/jsx-runtime-N1ikfypN.cjs.map +1 -0
  256. package/dist/jsx-runtime-rX5tAIG2.js +932 -0
  257. package/dist/jsx-runtime-rX5tAIG2.js.map +1 -0
  258. package/dist/list/Column.d.ts +24 -0
  259. package/dist/list/Context.d.ts +45 -0
  260. package/dist/list/Core.d.ts +40 -0
  261. package/dist/list/Filter.d.ts +22 -0
  262. package/dist/list/KeyHover.d.ts +4 -0
  263. package/dist/list/List.d.ts +19 -0
  264. package/dist/list/List.spec.d.ts +1 -0
  265. package/dist/list/List.stories.d.ts +7 -0
  266. package/dist/list/Search.d.ts +12 -0
  267. package/dist/list/Selector.d.ts +11 -0
  268. package/dist/list/external.d.ts +9 -0
  269. package/dist/list/index.d.ts +1 -0
  270. package/dist/list/types.d.ts +38 -0
  271. package/dist/list.cjs +27 -0
  272. package/dist/list.cjs.map +1 -0
  273. package/dist/list.js +27 -0
  274. package/dist/list.js.map +1 -0
  275. package/dist/memo/index.d.ts +2 -0
  276. package/dist/memo/proxyMemo.d.ts +2 -0
  277. package/dist/memo/useMemoCompare.d.ts +5 -0
  278. package/dist/menu/ContextMenu.d.ts +78 -0
  279. package/dist/menu/Item.d.ts +35 -0
  280. package/dist/menu/Menu.d.ts +26 -0
  281. package/dist/menu/external.d.ts +3 -0
  282. package/dist/menu/index.d.ts +1 -0
  283. package/dist/menu.cjs +16 -0
  284. package/dist/menu.cjs.map +1 -0
  285. package/dist/menu.js +16 -0
  286. package/dist/menu.js.map +1 -0
  287. package/dist/mock/MockGLBufferController.d.ts +20 -0
  288. package/dist/mock/setuptests.d.ts +1 -0
  289. package/dist/mosaic/Mosaic.d.ts +35 -0
  290. package/dist/mosaic/Mosaic.spec.d.ts +1 -0
  291. package/dist/mosaic/Mosaic.stories.d.ts +5 -0
  292. package/dist/mosaic/external.d.ts +4 -0
  293. package/dist/mosaic/index.d.ts +1 -0
  294. package/dist/mosaic/tree.d.ts +70 -0
  295. package/dist/mosaic/types.d.ts +50 -0
  296. package/dist/mosaic/use.d.ts +24 -0
  297. package/dist/nav/Bar.d.ts +25 -0
  298. package/dist/nav/Drawer.d.ts +24 -0
  299. package/dist/nav/Nav.spec.d.ts +1 -0
  300. package/dist/nav/Nav.stories.d.ts +6 -0
  301. package/dist/nav/external.d.ts +2 -0
  302. package/dist/nav/index.d.ts +1 -0
  303. package/dist/os/Controls/Controls.d.ts +7 -0
  304. package/dist/os/Controls/Controls.stories.d.ts +6 -0
  305. package/dist/os/Controls/Mac.d.ts +8 -0
  306. package/dist/os/Controls/Windows.d.ts +3 -0
  307. package/dist/os/Controls/index.d.ts +3 -0
  308. package/dist/os/Controls/types.d.ts +12 -0
  309. package/dist/os/external.d.ts +2 -0
  310. package/dist/os/index.d.ts +1 -0
  311. package/dist/os/use.d.ts +2 -0
  312. package/dist/pluto/Pluto.d.ts +18 -0
  313. package/dist/pluto/aether/ pluto.d.ts +1 -0
  314. package/dist/pluto/aether/index.d.ts +1 -0
  315. package/dist/pluto/defaultWorker.d.ts +1 -0
  316. package/dist/pluto/index.d.ts +1 -0
  317. package/dist/ranger/SelectLabel.d.ts +6 -0
  318. package/dist/ranger/TimeRangeChip.d.ts +6 -0
  319. package/dist/ranger/TimeRangeChip.stories.d.ts +6 -0
  320. package/dist/ranger/external.d.ts +2 -0
  321. package/dist/ranger/index.d.ts +1 -0
  322. package/dist/resize/Core.d.ts +10 -0
  323. package/dist/resize/Multiple.d.ts +63 -0
  324. package/dist/resize/Single.d.ts +23 -0
  325. package/dist/resize/Single.spec.d.ts +1 -0
  326. package/dist/resize/Single.stories.d.ts +6 -0
  327. package/dist/resize/external.d.ts +3 -0
  328. package/dist/resize/index.d.ts +1 -0
  329. package/dist/select/Button.d.ts +18 -0
  330. package/dist/select/ClearButton.d.ts +3 -0
  331. package/dist/select/Direction.d.ts +11 -0
  332. package/dist/select/List.d.ts +7 -0
  333. package/dist/select/Multiple.d.ts +45 -0
  334. package/dist/select/Select.spec.d.ts +1 -0
  335. package/dist/select/Select.stories.d.ts +14 -0
  336. package/dist/select/Single.d.ts +37 -0
  337. package/dist/select/external.d.ts +4 -0
  338. package/dist/select/index.d.ts +1 -0
  339. package/dist/state/index.d.ts +1 -0
  340. package/dist/state/state.d.ts +27 -0
  341. package/dist/status/Aggregator.d.ts +27 -0
  342. package/dist/status/Circle.d.ts +6 -0
  343. package/dist/status/Text.d.ts +21 -0
  344. package/dist/status/aether/aggregator.d.ts +86 -0
  345. package/dist/status/aether/external.d.ts +2 -0
  346. package/dist/status/aether/index.d.ts +1 -0
  347. package/dist/status/aether/types.d.ts +26 -0
  348. package/dist/status/colors.d.ts +2 -0
  349. package/dist/status/external.d.ts +4 -0
  350. package/dist/status/index.d.ts +1 -0
  351. package/dist/style.css +3119 -0
  352. package/dist/synnax/Provider.d.ts +10 -0
  353. package/dist/synnax/aether/index.d.ts +1 -0
  354. package/dist/synnax/aether/provider.d.ts +225 -0
  355. package/dist/synnax/index.d.ts +1 -0
  356. package/dist/table-8MFXzE4C.js +13664 -0
  357. package/dist/table-8MFXzE4C.js.map +1 -0
  358. package/dist/table-VNkSG_Cj.cjs +13661 -0
  359. package/dist/table-VNkSG_Cj.cjs.map +1 -0
  360. package/dist/tabs/Selector.d.ts +23 -0
  361. package/dist/tabs/Tabs.d.ts +40 -0
  362. package/dist/tabs/Tabs.spec.d.ts +1 -0
  363. package/dist/tabs/Tabs.stories.d.ts +5 -0
  364. package/dist/tabs/external.d.ts +2 -0
  365. package/dist/tabs/index.d.ts +1 -0
  366. package/dist/tabs.cjs +15 -0
  367. package/dist/tabs.cjs.map +1 -0
  368. package/dist/tabs.js +15 -0
  369. package/dist/tabs.js.map +1 -0
  370. package/dist/tag/Tag.d.ts +12 -0
  371. package/dist/tag/Tag.spec.d.ts +1 -0
  372. package/dist/tag/Tag.stories.d.ts +5 -0
  373. package/dist/tag/index.d.ts +1 -0
  374. package/dist/telem/Pipeline.d.ts +2 -0
  375. package/dist/telem/Provider.d.ts +6 -0
  376. package/dist/telem/aether/context.d.ts +16 -0
  377. package/dist/telem/aether/convertSeries.d.ts +9 -0
  378. package/dist/telem/aether/external.d.ts +9 -0
  379. package/dist/telem/aether/factory.d.ts +14 -0
  380. package/dist/telem/aether/index.d.ts +1 -0
  381. package/dist/telem/aether/noop.d.ts +12 -0
  382. package/dist/telem/aether/pipeline.d.ts +263 -0
  383. package/dist/telem/aether/provider.d.ts +24 -0
  384. package/dist/telem/aether/remote.d.ts +154 -0
  385. package/dist/telem/aether/remote.spec.d.ts +1 -0
  386. package/dist/telem/aether/static.d.ts +98 -0
  387. package/dist/telem/aether/telem.d.ts +376 -0
  388. package/dist/telem/aether/telem.spec.d.ts +1 -0
  389. package/dist/telem/aether/transformers.d.ts +197 -0
  390. package/dist/telem/client/cache/cache.d.ts +14 -0
  391. package/dist/telem/client/cache/dynamic.d.ts +32 -0
  392. package/dist/telem/client/cache/dynamic.spec.d.ts +1 -0
  393. package/dist/telem/client/cache/external.d.ts +1 -0
  394. package/dist/telem/client/cache/index.d.ts +2 -0
  395. package/dist/telem/client/cache/static.d.ts +31 -0
  396. package/dist/telem/client/cache/static.spec.d.ts +1 -0
  397. package/dist/telem/client/client.d.ts +104 -0
  398. package/dist/telem/client/index.d.ts +1 -0
  399. package/dist/telem/control/Chip.d.ts +8 -0
  400. package/dist/telem/control/Controller.d.ts +15 -0
  401. package/dist/telem/control/Indicator.d.ts +8 -0
  402. package/dist/telem/control/Legend.d.ts +7 -0
  403. package/dist/telem/control/StateProvider.d.ts +8 -0
  404. package/dist/telem/control/aether/chip.d.ts +229 -0
  405. package/dist/telem/control/aether/controller.d.ts +166 -0
  406. package/dist/telem/control/aether/external.d.ts +6 -0
  407. package/dist/telem/control/aether/index.d.ts +1 -0
  408. package/dist/telem/control/aether/indicator.d.ts +248 -0
  409. package/dist/telem/control/aether/legend.d.ts +216 -0
  410. package/dist/telem/control/aether/registry.d.ts +2 -0
  411. package/dist/telem/control/aether/state.d.ts +113 -0
  412. package/dist/telem/control/external.d.ts +6 -0
  413. package/dist/telem/control/index.d.ts +1 -0
  414. package/dist/telem/index.d.ts +1 -0
  415. package/dist/testutil/dom.d.ts +2 -0
  416. package/dist/text/DateTime.d.ts +19 -0
  417. package/dist/text/Editable.d.ts +15 -0
  418. package/dist/text/Keyboard.d.ts +5 -0
  419. package/dist/text/Link.d.ts +17 -0
  420. package/dist/text/SelectLevel.d.ts +11 -0
  421. package/dist/text/Text.d.ts +12 -0
  422. package/dist/text/Text.spec.d.ts +1 -0
  423. package/dist/text/Text.stories.d.ts +8 -0
  424. package/dist/text/WithIcon.d.ts +13 -0
  425. package/dist/text/dimensions.d.ts +2 -0
  426. package/dist/text/external.d.ts +10 -0
  427. package/dist/text/index.d.ts +1 -0
  428. package/dist/text/symbols.d.ts +5 -0
  429. package/dist/text/types.d.ts +24 -0
  430. package/dist/text.cjs +17 -0
  431. package/dist/text.cjs.map +1 -0
  432. package/dist/text.js +17 -0
  433. package/dist/text.js.map +1 -0
  434. package/dist/theming/aether/external.d.ts +3 -0
  435. package/dist/theming/aether/index.d.ts +2 -0
  436. package/dist/theming/aether/provider.d.ts +9808 -0
  437. package/dist/theming/context.d.ts +22 -0
  438. package/dist/theming/core/fontString.d.ts +4 -0
  439. package/dist/theming/core/theme.d.ts +3830 -0
  440. package/dist/theming/css.d.ts +2 -0
  441. package/dist/theming/external.d.ts +5 -0
  442. package/dist/theming/font.d.ts +8 -0
  443. package/dist/theming/index.d.ts +1 -0
  444. package/dist/theming/theming.spec.d.ts +1 -0
  445. package/dist/theming.cjs +16 -0
  446. package/dist/theming.cjs.map +1 -0
  447. package/dist/theming.js +16 -0
  448. package/dist/theming.js.map +1 -0
  449. package/dist/tooltip/Config.d.ts +29 -0
  450. package/dist/tooltip/Dialog.d.ts +36 -0
  451. package/dist/tooltip/Tooltip.stories.d.ts +5 -0
  452. package/dist/tooltip/external.d.ts +3 -0
  453. package/dist/tooltip/index.d.ts +1 -0
  454. package/dist/tooltip/wrap.d.ts +29 -0
  455. package/dist/tree/Tree.d.ts +73 -0
  456. package/dist/tree/Tree.stories.d.ts +5 -0
  457. package/dist/tree/index.d.ts +1 -0
  458. package/dist/tree.cjs +26 -0
  459. package/dist/tree.cjs.map +1 -0
  460. package/dist/tree.js +26 -0
  461. package/dist/tree.js.map +1 -0
  462. package/dist/triggers/Provider.d.ts +13 -0
  463. package/dist/triggers/Status.d.ts +5 -0
  464. package/dist/triggers/Text.d.ts +7 -0
  465. package/dist/triggers/Triggers.spec.d.ts +1 -0
  466. package/dist/triggers/Triggers.stories.d.ts +6 -0
  467. package/dist/triggers/external.d.ts +6 -0
  468. package/dist/triggers/hooks.d.ts +25 -0
  469. package/dist/triggers/index.d.ts +1 -0
  470. package/dist/triggers/triggers.d.ts +130 -0
  471. package/dist/triggers/useDrag.d.ts +17 -0
  472. package/dist/triggers.cjs +16 -0
  473. package/dist/triggers.cjs.map +1 -0
  474. package/dist/triggers.js +16 -0
  475. package/dist/triggers.js.map +1 -0
  476. package/dist/useDrag-KRQ7DTg1.cjs +48 -0
  477. package/dist/useDrag-KRQ7DTg1.cjs.map +1 -0
  478. package/dist/useDrag-rQt5hv4R.js +49 -0
  479. package/dist/useDrag-rQt5hv4R.js.map +1 -0
  480. package/dist/util/case.d.ts +1 -0
  481. package/dist/util/children.d.ts +3 -0
  482. package/dist/util/component.d.ts +5 -0
  483. package/dist/util/event.d.ts +6 -0
  484. package/dist/util/renderProp.d.ts +7 -0
  485. package/dist/util/zod.d.ts +2 -0
  486. package/dist/video/Video.d.ts +5 -0
  487. package/dist/video/Video.stories.d.ts +5 -0
  488. package/dist/video/index.d.ts +1 -0
  489. package/dist/video.cjs +10 -0
  490. package/dist/video.cjs.map +1 -0
  491. package/dist/video.js +10 -0
  492. package/dist/video.js.map +1 -0
  493. package/dist/viewport/Mask.d.ts +7 -0
  494. package/dist/viewport/SelectMode.d.ts +8 -0
  495. package/dist/viewport/Viewport.stories.d.ts +6 -0
  496. package/dist/viewport/external.d.ts +3 -0
  497. package/dist/viewport/index.d.ts +1 -0
  498. package/dist/viewport/use.d.ts +35 -0
  499. package/dist/vis/axis/axis.d.ts +97 -0
  500. package/dist/vis/axis/canvas.d.ts +18 -0
  501. package/dist/vis/axis/external.d.ts +3 -0
  502. package/dist/vis/axis/index.d.ts +1 -0
  503. package/dist/vis/axis/ticks.d.ts +33 -0
  504. package/dist/vis/button/aether/button.d.ts +94 -0
  505. package/dist/vis/button/aether/index.d.ts +1 -0
  506. package/dist/vis/button/index.d.ts +1 -0
  507. package/dist/vis/button/use.d.ts +9 -0
  508. package/dist/vis/canvas/Canvas.d.ts +11 -0
  509. package/dist/vis/canvas/aether/canvas.d.ts +230 -0
  510. package/dist/vis/canvas/aether/index.d.ts +1 -0
  511. package/dist/vis/canvas/index.d.ts +1 -0
  512. package/dist/vis/diagram/Diagram.d.ts +52 -0
  513. package/dist/vis/diagram/Diagram.stories.d.ts +5 -0
  514. package/dist/vis/diagram/aether/Diagram.d.ts +587 -0
  515. package/dist/vis/diagram/aether/index.d.ts +1 -0
  516. package/dist/vis/diagram/align.d.ts +3 -0
  517. package/dist/vis/diagram/align.spec.d.ts +1 -0
  518. package/dist/vis/diagram/edge/Edge.d.ts +14 -0
  519. package/dist/vis/diagram/edge/connector/connector.d.ts +59 -0
  520. package/dist/vis/diagram/edge/connector/connector.spec.d.ts +1 -0
  521. package/dist/vis/diagram/edge/connector/index.d.ts +1 -0
  522. package/dist/vis/diagram/edge/index.d.ts +1 -0
  523. package/dist/vis/diagram/external.d.ts +4 -0
  524. package/dist/vis/diagram/index.d.ts +1 -0
  525. package/dist/vis/diagram/types.d.ts +71 -0
  526. package/dist/vis/diagram/util.d.ts +21 -0
  527. package/dist/vis/draw2d/canvas.d.ts +106 -0
  528. package/dist/vis/draw2d/index.d.ts +60 -0
  529. package/dist/vis/eraser/aether/eraser.d.ts +194 -0
  530. package/dist/vis/eraser/aether/index.d.ts +1 -0
  531. package/dist/vis/eraser/index.d.ts +1 -0
  532. package/dist/vis/eraser/use.d.ts +11 -0
  533. package/dist/vis/legend/Container.d.ts +11 -0
  534. package/dist/vis/legend/Simple.d.ts +16 -0
  535. package/dist/vis/legend/external.d.ts +2 -0
  536. package/dist/vis/legend/index.d.ts +1 -0
  537. package/dist/vis/line/Line.d.ts +8 -0
  538. package/dist/vis/line/aether/index.d.ts +1 -0
  539. package/dist/vis/line/aether/line.d.ts +184 -0
  540. package/dist/vis/line/index.d.ts +1 -0
  541. package/dist/vis/lineplot/Axis.d.ts +17 -0
  542. package/dist/vis/lineplot/Legend.d.ts +7 -0
  543. package/dist/vis/lineplot/Line.d.ts +7 -0
  544. package/dist/vis/lineplot/LinePlot.d.ts +32 -0
  545. package/dist/vis/lineplot/LinePlot.stories.d.ts +5 -0
  546. package/dist/vis/lineplot/Title.d.ts +4 -0
  547. package/dist/vis/lineplot/Viewport.d.ts +6 -0
  548. package/dist/vis/lineplot/aether/LinePlot.d.ts +622 -0
  549. package/dist/vis/lineplot/aether/XAxis.d.ts +211 -0
  550. package/dist/vis/lineplot/aether/YAxis.d.ts +218 -0
  551. package/dist/vis/lineplot/aether/axis.d.ts +144 -0
  552. package/dist/vis/lineplot/aether/external.d.ts +3 -0
  553. package/dist/vis/lineplot/aether/grid.d.ts +22 -0
  554. package/dist/vis/lineplot/aether/index.d.ts +2 -0
  555. package/dist/vis/lineplot/external.d.ts +6 -0
  556. package/dist/vis/lineplot/index.d.ts +1 -0
  557. package/dist/vis/lineplot/tooltip/Tooltip.d.ts +8 -0
  558. package/dist/vis/lineplot/tooltip/aether/index.d.ts +1 -0
  559. package/dist/vis/lineplot/tooltip/aether/tooltip.d.ts +185 -0
  560. package/dist/vis/lineplot/tooltip/index.d.ts +1 -0
  561. package/dist/vis/measure/Measure.d.ts +6 -0
  562. package/dist/vis/measure/aether/index.d.ts +1 -0
  563. package/dist/vis/measure/aether/measure.d.ts +307 -0
  564. package/dist/vis/measure/index.d.ts +1 -0
  565. package/dist/vis/pid/Forms.d.ts +32 -0
  566. package/dist/vis/pid/Labeled.d.ts +15 -0
  567. package/dist/vis/pid/SelectOrientation.d.ts +15 -0
  568. package/dist/vis/pid/SelectOrientation.stories.d.ts +5 -0
  569. package/dist/vis/pid/Symbols.d.ts +205 -0
  570. package/dist/vis/pid/index.d.ts +1 -0
  571. package/dist/vis/pid/primitives/Primitives.d.ts +98 -0
  572. package/dist/vis/pid/primitives/Primitives.stories.d.ts +5 -0
  573. package/dist/vis/pid/primitives/index.d.ts +1 -0
  574. package/dist/vis/pid/registry.d.ts +17 -0
  575. package/dist/vis/render/GLProgram.d.ts +44 -0
  576. package/dist/vis/render/clear/index.d.ts +1 -0
  577. package/dist/vis/render/clear/program.d.ts +14 -0
  578. package/dist/vis/render/context.d.ts +61 -0
  579. package/dist/vis/render/controller.d.ts +14 -0
  580. package/dist/vis/render/eraser.d.ts +19 -0
  581. package/dist/vis/render/external.d.ts +5 -0
  582. package/dist/vis/render/index.d.ts +1 -0
  583. package/dist/vis/render/loop.d.ts +73 -0
  584. package/dist/vis/rule/Rule.d.ts +12 -0
  585. package/dist/vis/rule/aether/aether.d.ts +121 -0
  586. package/dist/vis/rule/aether/index.d.ts +1 -0
  587. package/dist/vis/rule/index.d.ts +1 -0
  588. package/dist/vis/table/Table.d.ts +25 -0
  589. package/dist/vis/table/Table.stories.d.ts +5 -0
  590. package/dist/vis/table/aether/index.d.ts +1 -0
  591. package/dist/vis/table/aether/table.d.ts +353 -0
  592. package/dist/vis/table/cell/Label.d.ts +7 -0
  593. package/dist/vis/table/cell/element.d.ts +18 -0
  594. package/dist/vis/table/cell/external.d.ts +3 -0
  595. package/dist/vis/table/cell/index.d.ts +1 -0
  596. package/dist/vis/table/cell/registry.d.ts +2 -0
  597. package/dist/vis/table/cell/value.d.ts +9 -0
  598. package/dist/vis/table/external.d.ts +2 -0
  599. package/dist/vis/table/index.d.ts +1 -0
  600. package/dist/vis/table/use.d.ts +101 -0
  601. package/dist/vis/toggle/aether/index.d.ts +1 -0
  602. package/dist/vis/toggle/aether/toggle.d.ts +170 -0
  603. package/dist/vis/toggle/index.d.ts +1 -0
  604. package/dist/vis/toggle/use.d.ts +9 -0
  605. package/dist/vis/value/aether/index.d.ts +1 -0
  606. package/dist/vis/value/aether/value.d.ts +462 -0
  607. package/dist/vis/value/external.d.ts +1 -0
  608. package/dist/vis/value/index.d.ts +1 -0
  609. package/dist/vis/value/use.d.ts +151 -0
  610. package/dist/worker/Context.d.ts +15 -0
  611. package/dist/worker/index.d.ts +1 -0
  612. package/package.json +181 -0
@@ -0,0 +1,3 @@
1
+ export * from '../menu/Item';
2
+ export * from '../menu/Menu';
3
+ export * from '../menu/ContextMenu';
@@ -0,0 +1 @@
1
+ export * as Menu from '../menu/external';
package/dist/menu.cjs ADDED
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ const external = require("./external-uvx0b-Jw.cjs");
4
+ require("./Item-HWzX7RK2.cjs");
5
+ require("./jsx-runtime-N1ikfypN.cjs");
6
+ require("react");
7
+ require("./css-V3VUT_Js.cjs");
8
+ require("zod");
9
+ require("./Toggle-eOKYw1OT.cjs");
10
+ require("./component-joFaJiQW.cjs");
11
+ require("react-dom");
12
+ require("./Center-ZAcURh-3.cjs");
13
+ require("react-hook-form");
14
+ require("./Link-xlTZan29.cjs");
15
+ exports.Menu = external.external;
16
+ //# sourceMappingURL=menu.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"menu.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;"}
package/dist/menu.js ADDED
@@ -0,0 +1,16 @@
1
+ import { e } from "./external-oX1JmOFf.js";
2
+ import "./Item-EDdYN2NK.js";
3
+ import "./jsx-runtime-rX5tAIG2.js";
4
+ import "react";
5
+ import "./css-NTD4Xm8x.js";
6
+ import "zod";
7
+ import "./Toggle-kLunfJtR.js";
8
+ import "./component-k78Jq9I7.js";
9
+ import "react-dom";
10
+ import "./Center-gEKkAkdh.js";
11
+ import "react-hook-form";
12
+ import "./Link-laNlv47N.js";
13
+ export {
14
+ e as Menu
15
+ };
16
+ //# sourceMappingURL=menu.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"menu.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;"}
@@ -0,0 +1,20 @@
1
+ import { type GLBufferController } from "@synnaxlabs/x";
2
+ import { type Mock } from "vitest";
3
+ export declare class MockGLBufferController implements GLBufferController {
4
+ ARRAY_BUFFER: number;
5
+ STATIC_DRAW: number;
6
+ DYNAMIC_DRAW: number;
7
+ targets: Record<number, number>;
8
+ counter: number;
9
+ buffers: Record<number, ArrayBuffer>;
10
+ createBufferMock: Mock<[], WebGLBuffer | null>;
11
+ bufferDataMock: Mock<[number, ArrayBufferLike | number, number]>;
12
+ bufferSubDataMock: Mock<[number, number, ArrayBufferLike]>;
13
+ bindBufferMock: Mock<[number, WebGLBuffer | null]>;
14
+ deleteBufferMock: Mock<[WebGLBuffer | null]>;
15
+ deleteBuffer(buffer: WebGLBuffer | null): void;
16
+ createBuffer(): WebGLBuffer | null;
17
+ bufferData(target: number, dataOrSize: ArrayBufferLike | number, usage: number): void;
18
+ bindBuffer(target: number, buffer: WebGLBuffer | null): void;
19
+ bufferSubData(target: number, offset: number, data: ArrayBufferLike): void;
20
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,35 @@
1
+ import { type ReactElement } from "react";
2
+ import { type location } from "@synnaxlabs/x";
3
+ import { type Node } from '../mosaic/types';
4
+ import { Tabs } from '../tabs';
5
+ /** Props for the {@link Mosaic} component */
6
+ export interface MosaicProps extends Omit<Tabs.TabsProps, "onDrop" | "tabs" | "onResize" | "onCreate"> {
7
+ root: Node;
8
+ onDrop: (key: number, tabKey: string, loc: location.Location) => void;
9
+ onResize: (key: number, size: number) => void;
10
+ onCreate?: (key: number, loc: location.Location, tabKeys?: string[]) => void;
11
+ }
12
+ /***
13
+ * Mosaic renders a tree of tab panes, with the ability to drag and drop tabs to
14
+ * different locations in the tree as well as resize the panes (think of your typical
15
+ * code editor). This component should be used in conjuction with the Mosaic.use hook
16
+ * to implement the mosaic logic and maintain the state.
17
+ *
18
+ * @param props - The props for the Mosaic component. All props not listed below are
19
+ * passed to the Tabs component of each set of tabs in the mosaic.
20
+ * @param props.root - The root of the mosaic tree. This prop is provided by the
21
+ * Mosaic.use hook.
22
+ * @param props.onDrop - The callback executed when a tab is dropped in a new location.
23
+ * This prop is provided by the Mosaic.use hook.
24
+ * @param props.onResize - The callback executed when a pane is resized. This prop is
25
+ * provided by the Mosaic.use hook.
26
+ */
27
+ export declare const Mosaic: import("react").MemoExoticComponent<(props: MosaicProps) => ReactElement | null>;
28
+ /**
29
+ * This type should be used when the user wants to drop a tab in the mosaic.
30
+ * Dropping an item with this signature will call the {@link Mosaic} onDrop handler.
31
+ */
32
+ export declare const HAUL_DROP_TYPE = "pluto-mosaic-tab-drop";
33
+ /** This type should be used when the user wants to create a new tab in the mosaic.
34
+ Dropping an item with this signature will call the {@link Mosaic} onCreate handler. */
35
+ export declare const HAUL_CREATE_TYPE = "pluto-mosaic-tab-create";
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,5 @@
1
+ import type { Meta, StoryFn } from "@storybook/react";
2
+ import { Mosaic } from '../mosaic';
3
+ declare const story: Meta<typeof Mosaic.Mosaic>;
4
+ export declare const Primary: StoryFn<typeof Mosaic>;
5
+ export default story;
@@ -0,0 +1,4 @@
1
+ export * from '../mosaic/Mosaic';
2
+ export * from '../mosaic/tree';
3
+ export * from '../mosaic/types';
4
+ export * from '../mosaic/use';
@@ -0,0 +1 @@
1
+ export * as Mosaic from '../mosaic/external';
@@ -0,0 +1,70 @@
1
+ import { type Node } from '../mosaic/types';
2
+ import { Tabs } from '../tabs';
3
+ import { location } from "@synnaxlabs/x";
4
+ /**
5
+ * Inserts a tab into a node in the mosaic. If the given key is not found,
6
+ * the tab is inserted into the closest ancestor. This is to deal
7
+ * with mosaic garbage collection.
8
+ *
9
+ * @param key - The key of the node to insert the tab into.
10
+ * @param tab - The tab to insert.
11
+ * @param loc - The location where the tab was 'dropped' relative to the node.
12
+ */
13
+ export declare const insertTab: (root: Node, tab: Tabs.Tab, loc?: location.Location, key?: number) => Node;
14
+ /**
15
+ * Automatically selects tabs for all nodes in the mosaic if they don't already have
16
+ * a selection.
17
+ *
18
+ * @param root - The root of the mosaic.
19
+ * @returns A shallow copy of the root with all nodes having a selection.
20
+ */
21
+ export declare const autoSelectTabs: (root: Node) => [Node, string[]];
22
+ /**
23
+ * Removes a tab from the mosaic and performs any necessary garbage collection.
24
+ *
25
+ * @param root - The root of the mosaic.
26
+ * @param tabKey - The key of the tab to remove. This tab must exist in the mosaic.
27
+ */
28
+ export declare const removeTab: (root: Node, tabKey: string) => [Node, string | null];
29
+ export declare const findSelected: (root: Node) => string | null;
30
+ /**
31
+ * Marks the given tab as selected.
32
+ *
33
+ * @param root - The root of the mosaic.
34
+ * @param tabKey - The key of the tab to select. This tab must exist in the mosaic.
35
+ * @returns A shallow copy of the root of the mosaic with the tab selected.
36
+ */
37
+ export declare const selectTab: (root: Node, tabKey: string) => Node;
38
+ /**
39
+ * Moves a tab from one node to another.
40
+ *
41
+ * @param root - The root of the mosaic.
42
+ * @param to - The key of the node to move the tab to.
43
+ * @param tabKey - The key of the tab to move. This tab must exist in the mosaic.
44
+ * @param loc - The location where the tab was 'dropped' relative to the node.
45
+ * @returns A shallow copy of the root of the mosaic with the tab moved.
46
+ */
47
+ export declare const moveTab: (root: Node, tabKey: string, loc: location.Location, to: number) => [Node, string | null];
48
+ /**
49
+ * Resizes the given mosaic leaf.
50
+ *
51
+ * @param root - The root of the mosaic.
52
+ * @param key - The key of the leaf to resize.
53
+ * @param size - The new size distribution for the leaf. Expressed as either a percentage
54
+ * or a number of pixels of the first child.
55
+ * @returns A shallow copy of the root of the mosaic with the leaf resized.
56
+ */
57
+ export declare const resizeNode: (root: Node, key: number, size: number) => Node;
58
+ /**
59
+ * Sets the title of a tab.
60
+ *
61
+ * @param root - The root of the mosaic.
62
+ * @param tabKey - The key of the tab to resize.
63
+ * @param name - The new title of the tab.
64
+ * @returns A shallow copy of the root of the mosaic with the tab title changed.
65
+ */
66
+ export declare const renameTab: (root: Node, tabKey: string, name: string) => Node;
67
+ /***
68
+ * @returns True if the given mosaic node is empty, false otherwise.
69
+ */
70
+ export declare const isEmpty: (root: Node) => boolean;
@@ -0,0 +1,50 @@
1
+ import { type direction } from "@synnaxlabs/x";
2
+ import { type Tabs } from '../tabs';
3
+ /**
4
+ * Represents the data for a node in the Mosaic binary tree. Nodes can be either leaf
5
+ * or non-leaf nodes. Leaf nodes represent the edges of the tree, and render tabs in
6
+ * the mosaic. Non-leaf nodes represent the internal nodes of the tree, and manage
7
+ * the splitting/sizing of the tree.
8
+ */
9
+ export interface Node {
10
+ /**
11
+ * Key assigns a unique identifier to the leaf. This key is used to identify the
12
+ * location of the leaf in the tree. Keys are organized in a structure resembling
13
+ * the following.
14
+ * 1
15
+ * / \
16
+ * 2 3
17
+ * / \ / \
18
+ * 4 5 6 7
19
+ *
20
+ * The first child of a node is assigned the key 2 * key, the second child is assigned
21
+ * the key 2 * key + 1. The root node is assigned the key 1.
22
+ */
23
+ key: number;
24
+ /**
25
+ * A list of tabs for the node to render. If this value is defined, the node is
26
+ * considered a leaf, and the tabs will be rendered.
27
+ */
28
+ tabs?: Tabs.Tab[];
29
+ /** The key of the selected tab. This value only needs to be set for leaf nodes. */
30
+ selected?: string;
31
+ /** The direction of the split. This value only needs to be set for non-leaf nodes. */
32
+ direction?: direction.Direction;
33
+ /**
34
+ * The first child of the node. If the node is vertical, this is the top child.
35
+ * If the node is horizontal, this is the left child. This value only needs to be
36
+ * set for non-leaf nodes.
37
+ */
38
+ first?: Node;
39
+ /**
40
+ * The last child of the node. If the node is vertical, this is the bottom child.
41
+ * If the node is horizontal, this is the right child. This value only needs to be
42
+ * set for non-leaf nodes.
43
+ */
44
+ last?: Node;
45
+ /**
46
+ * The size of the node as a decimal between 0 and 1. This value only needs to be
47
+ * set for non-leaf nodes.
48
+ */
49
+ size?: number;
50
+ }
@@ -0,0 +1,24 @@
1
+ import { type location } from "@synnaxlabs/x";
2
+ import { type Node } from '../mosaic/types';
3
+ export interface UseProps {
4
+ allowRename?: boolean;
5
+ initialTree: Node;
6
+ }
7
+ export interface UseReturn {
8
+ root: Node;
9
+ onDrop: (key: number, tabKey: string, loc: location.Location) => void;
10
+ onClose: (tabKey: string) => void;
11
+ onSelect: (tabKey: string) => void;
12
+ onResize: (key: number, sizes: number) => void;
13
+ onRename?: (tabKey: string, name: string) => void;
14
+ }
15
+ /**
16
+ * The Mosaic.use hook implements the state management and logic for the Mosaic
17
+ * component. This hook should be used in conjunction with the Mosaic component.
18
+ *
19
+ * @param props - The props for the Mosaic.use hook.
20
+ * @param props.initialValue - The initial root node of the mosaic tree. For
21
+ * information on what this node should look like, see the {@link Node}
22
+ * type.
23
+ */
24
+ export declare const use: ({ allowRename, initialTree }: UseProps) => UseReturn;
@@ -0,0 +1,25 @@
1
+ import { type FunctionComponent, type ReactElement } from "react";
2
+ import { location } from "@synnaxlabs/x";
3
+ import { Align } from '../align';
4
+ export interface BarProps extends Omit<Align.SpaceProps, "direction" | "size" | "ref"> {
5
+ location?: location.Crude;
6
+ size?: string | number;
7
+ }
8
+ declare const CoreBar: ({ location: location_, size, className, style, ...props }: BarProps) => ReactElement;
9
+ export interface BarContentProps extends Omit<Align.SpaceProps<"div">, "ref"> {
10
+ bordered?: boolean;
11
+ className?: string;
12
+ }
13
+ type CoreBarType = typeof CoreBar;
14
+ declare const Start: FunctionComponent<BarContentProps>;
15
+ declare const End: FunctionComponent<BarContentProps>;
16
+ declare const Center: FunctionComponent<BarContentProps>;
17
+ declare const Content: FunctionComponent<BarContentProps>;
18
+ export interface BarType extends CoreBarType {
19
+ Start: typeof Start;
20
+ Center: typeof Center;
21
+ End: typeof End;
22
+ Content: typeof Content;
23
+ }
24
+ export declare const Bar: BarType;
25
+ export {};
@@ -0,0 +1,24 @@
1
+ import { type ReactElement } from "react";
2
+ import { type BarProps } from '../nav/Bar';
3
+ import { Resize } from '../resize';
4
+ export interface DrawerItem {
5
+ key: string;
6
+ content: ReactElement;
7
+ minSize?: number;
8
+ maxSize?: number;
9
+ initialSize?: number;
10
+ }
11
+ export interface UseDrawerProps {
12
+ initialKey?: string;
13
+ items: DrawerItem[];
14
+ }
15
+ export interface UseDrawerReturn {
16
+ activeItem?: DrawerItem;
17
+ onSelect?: (key: string) => void;
18
+ }
19
+ export interface DrawerProps extends Omit<BarProps, "onSelect" | "onResize">, UseDrawerReturn, Partial<Pick<Resize.SingleProps, "onResize" | "collapseThreshold">> {
20
+ }
21
+ export declare const useDrawer: ({ items, initialKey }: UseDrawerProps) => UseDrawerReturn;
22
+ export declare const Drawer: import("react").FC<DrawerProps & {
23
+ aetherKey?: string | undefined;
24
+ }>;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,6 @@
1
+ import type { Meta, StoryFn } from "@storybook/react";
2
+ import { Nav } from '../nav';
3
+ declare const story: Meta<typeof Nav.Bar>;
4
+ export declare const LeftBar: StoryFn<typeof Nav.Bar>;
5
+ export declare const LeftDrawer: StoryFn<typeof Nav.Drawer>;
6
+ export default story;
@@ -0,0 +1,2 @@
1
+ export * from '../nav/Drawer';
2
+ export * from '../nav/Bar';
@@ -0,0 +1 @@
1
+ export * as Nav from '../nav/external';
@@ -0,0 +1,7 @@
1
+ import { type ReactElement } from "react";
2
+ import { type runtime } from "@synnaxlabs/x";
3
+ import { type InternalControlsProps } from '../../os/Controls/types';
4
+ export interface ControlsProps extends InternalControlsProps {
5
+ visibleIfOS?: runtime.OS;
6
+ }
7
+ export declare const Controls: ({ forceOS, visibleIfOS, ...props }: ControlsProps) => ReactElement | null;
@@ -0,0 +1,6 @@
1
+ import type { Meta, StoryFn } from "@storybook/react";
2
+ import { OS } from '../../os';
3
+ declare const story: Meta<typeof OS.Controls>;
4
+ export declare const MacOS: StoryFn<typeof OS.Controls>;
5
+ export declare const Windows: StoryFn<typeof OS.Controls>;
6
+ export default story;
@@ -0,0 +1,8 @@
1
+ import { type ReactElement } from "react";
2
+ import { type InternalControlsProps } from '../../os/Controls/types';
3
+ export declare const Icon: {
4
+ Close: import("react/jsx-runtime").JSX.Element;
5
+ Minimize: import("react/jsx-runtime").JSX.Element;
6
+ Maximize: import("react/jsx-runtime").JSX.Element;
7
+ };
8
+ export declare const MacOS: ({ disabled, className, focused, onMinimize, onMaximize, onFullscreen, onClose, ...props }: InternalControlsProps) => ReactElement;
@@ -0,0 +1,3 @@
1
+ import { type ReactElement } from "react";
2
+ import { type InternalControlsProps } from '../../os/Controls/types';
3
+ export declare const Windows: ({ disabled, onMinimize, onMaximize, onClose, onFullscreen: _, ...props }: InternalControlsProps) => ReactElement;
@@ -0,0 +1,3 @@
1
+ export { Controls } from '../../os/Controls/Controls';
2
+ export type { ControlsProps } from '../../os/Controls/Controls';
3
+ export type { ControlsAction } from '../../os/Controls/types';
@@ -0,0 +1,12 @@
1
+ import { type runtime } from "@synnaxlabs/x";
2
+ import { type Align } from '../../align';
3
+ export type ControlsAction = "close" | "minimize" | "maximize";
4
+ export interface InternalControlsProps extends Align.SpaceProps {
5
+ forceOS?: runtime.OS;
6
+ disabled?: ControlsAction[];
7
+ focused?: boolean;
8
+ onMinimize?: () => void;
9
+ onMaximize?: () => void;
10
+ onFullscreen?: () => void;
11
+ onClose?: () => void;
12
+ }
@@ -0,0 +1,2 @@
1
+ export * from '../os/Controls';
2
+ export * from '../os/use';
@@ -0,0 +1 @@
1
+ export * as OS from '../os/external';
@@ -0,0 +1,2 @@
1
+ import { runtime } from "@synnaxlabs/x";
2
+ export declare const use: (props?: runtime.GetOSProps) => runtime.OS | undefined;
@@ -0,0 +1,18 @@
1
+ import { type PropsWithChildren, type ReactElement } from "react";
2
+ import { Alamos } from '../alamos';
3
+ import { Channel } from '../channel';
4
+ import { Haul } from '../haul';
5
+ import { Synnax } from '../synnax';
6
+ import { Theming } from '../theming';
7
+ import { Tooltip } from '../tooltip';
8
+ import { Triggers } from '../triggers';
9
+ export interface ProviderProps extends PropsWithChildren, Partial<Theming.ProviderProps>, Synnax.ProviderProps {
10
+ workerEnabled?: boolean;
11
+ workerURL?: URL;
12
+ alamos?: Alamos.ProviderProps;
13
+ tooltip?: Tooltip.ConfigProps;
14
+ triggers?: Triggers.ProviderProps;
15
+ haul?: Haul.ProviderProps;
16
+ channelAlias?: Channel.AliasProviderProps;
17
+ }
18
+ export declare const Provider: ({ children, connParams, workerEnabled, workerURL, theme, toggleTheme, setTheme, tooltip, triggers, alamos, haul, channelAlias, }: ProviderProps) => ReactElement;
@@ -0,0 +1 @@
1
+ export declare const render: () => void;
@@ -0,0 +1 @@
1
+ export * as pluto from '../../pluto/aether/ pluto';
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export * as Pluto from '../pluto/Pluto';
@@ -0,0 +1,6 @@
1
+ import { type ReactElement } from "react";
2
+ import { type label } from "@synnaxlabs/client";
3
+ import { Select } from '../select';
4
+ export interface SelectLabelsProps extends Omit<Select.MultipleProps<label.Key, label.Label>, "columns" | "searcher"> {
5
+ }
6
+ export declare const SelectLabels: (props: SelectLabelsProps) => ReactElement;
@@ -0,0 +1,6 @@
1
+ import { type ReactElement } from "react";
2
+ import { type CrudeTimeRange } from "@synnaxlabs/x";
3
+ export interface TimeRangeChipProps {
4
+ timeRange: CrudeTimeRange;
5
+ }
6
+ export declare const TimeRangeChip: ({ timeRange }: TimeRangeChipProps) => ReactElement;
@@ -0,0 +1,6 @@
1
+ import { type ReactElement } from "react";
2
+ import type { Meta } from "@storybook/react";
3
+ import { TimeRangeChip } from '../ranger/TimeRangeChip';
4
+ declare const story: Meta<typeof TimeRangeChip>;
5
+ export declare const Default: () => ReactElement;
6
+ export default story;
@@ -0,0 +1,2 @@
1
+ export * from '../ranger/TimeRangeChip';
2
+ export * from '../ranger/SelectLabel';
@@ -0,0 +1 @@
1
+ export * as Ranger from '../ranger/external';
@@ -0,0 +1,10 @@
1
+ import { type DetailedHTMLProps, type HTMLAttributes } from "react";
2
+ import { location } from "@synnaxlabs/x";
3
+ export interface CoreProps extends DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement> {
4
+ location: location.Crude;
5
+ size: number;
6
+ onDragStart: (e: React.DragEvent<HTMLDivElement>) => void;
7
+ sizeUnits?: "px" | "%";
8
+ showHandle?: boolean;
9
+ }
10
+ export declare const Core: import("react").ForwardRefExoticComponent<Omit<CoreProps, "ref"> & import("react").RefAttributes<unknown>>;
@@ -0,0 +1,63 @@
1
+ import { type RefObject } from "react";
2
+ import { direction, type xy } from "@synnaxlabs/x";
3
+ import { Align } from '../align';
4
+ /** Props for the {@link Resize.Multiple} component. */
5
+ export interface MultipleProps extends Align.SpaceProps {
6
+ sizeDistribution: number[];
7
+ onDragHandle: (e: ResizeStartEvent, i: number) => void;
8
+ }
9
+ export type ResizeStartEvent = xy.Client & {
10
+ preventDefault: () => void;
11
+ };
12
+ /** Props for the {@link Resize.useMultiple} hook. */
13
+ export interface UseMultipleProps {
14
+ count: number;
15
+ onResize?: (sizes: number[]) => void;
16
+ direction?: direction.Crude;
17
+ initialSizes?: number[];
18
+ minSize?: number;
19
+ }
20
+ /** Return value of the {@link Resize.useMultiple} hook. */
21
+ export interface UseMultipleReturn {
22
+ setSize: (i: number, size?: number) => void;
23
+ props: Pick<MultipleProps, "sizeDistribution" | "onDragHandle" | "direction"> & {
24
+ ref: RefObject<HTMLDivElement>;
25
+ };
26
+ }
27
+ interface MultipleState {
28
+ sizeDistribution: number[];
29
+ root: number | null;
30
+ }
31
+ /**
32
+ * A hook that implements the control logic for {@link Resize.Multiple}. This hook
33
+ * should be used in conjunction with {@link Resize.Multiple}.
34
+ *
35
+ * @param props - The a component props.
36
+ * @param props.count - The number of panels to render. This should be the same as the
37
+ * number of children passed to {@link Resize.Multiple}.
38
+ * @param props.onResize - A callback executed when the panels are resized.
39
+ * @param props.initialSizes - The initial sizes of the panels. This should be an array of
40
+ * numbers, where each number is the initial size of the corresponding panel either in pixels
41
+ * or as a decimal percentage. If this array is not provided (or is shorter than the expected length),
42
+ * the (remaining) panels will be evenly distributed across the container.
43
+ * @param props.direction - The direction in which the panels should be draggable. This should
44
+ * be Default: "x"
45
+ * @param props.minSize - The smallest size the panels can be resized to. Defaults to 100.
46
+ *
47
+ * @returns The props that should be passed to {@link Resize.Multiple} along with a few
48
+ * utility functions. setSize can be used to manually set the size of a particular panel.
49
+ */
50
+ export declare const useMultiple: ({ onResize, count, initialSizes, minSize, direction, }: UseMultipleProps) => UseMultipleReturn;
51
+ /**
52
+ * A set of panels that can be resized within their container. Resize.Multiple must be
53
+ * used in conjunction with {@link Resize.useMultiple}.
54
+ *
55
+ * @param props - The component props. All unused props will be passed to the div
56
+ * containing the div containing the panels. Generally these props should not be provided
57
+ * directly, and you should instead spread the props returned from {@link Resize.useMultiple}.
58
+ * The only exceptions to this are stylistic props (e.g. className, style, etc.) as well
59
+ * as the `children` prop.
60
+ */
61
+ export declare const Multiple: import("react").ForwardRefExoticComponent<Omit<MultipleProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
62
+ export declare const calculateDiffPercentage: (prev: MultipleState, parentSize: number, dragging: number, clientPos?: number, targetSize?: number) => number;
63
+ export {};
@@ -0,0 +1,23 @@
1
+ import { type ReactElement } from "react";
2
+ import { box } from "@synnaxlabs/x";
3
+ import { type CoreProps } from '../resize/Core';
4
+ /** Props for the {@link Single} component. */
5
+ export interface SingleProps extends Omit<CoreProps, "showHandle" | "size" | "onResize" | "onDragStart" | "ref"> {
6
+ initialSize?: number;
7
+ minSize?: number;
8
+ maxSize?: number;
9
+ onResize?: (size: number, box: box.Box) => void;
10
+ collapseThreshold?: number;
11
+ onCollapse?: () => void;
12
+ }
13
+ /**
14
+ * A panel that can be resized in one direction by dragging its handle.
15
+ *
16
+ * @param props - The component props. All unused props will be passed to the div
17
+ * containing the content.
18
+ * @param props.location - The the location of the panel. The drag handle will be on the opposite side.
19
+ * @param props.minSize - The smallest size the panel can be resized to.
20
+ * @param props.maxSize - The largest size the panel can be resized to.
21
+ * @param props.onResize - A callback executed when the panel is resized.
22
+ */
23
+ export declare const Single: ({ onCollapse, onResize, location: location_, minSize, maxSize, initialSize, collapseThreshold, className, ...props }: SingleProps) => ReactElement;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,6 @@
1
+ import type { Meta, StoryFn } from "@storybook/react";
2
+ import { Resize } from '../resize';
3
+ declare const story: Meta<typeof Resize.Single>;
4
+ export declare const Primary: StoryFn<typeof Resize.Single>;
5
+ export declare const Multiple: StoryFn<typeof Resize.Multiple>;
6
+ export default story;
@@ -0,0 +1,3 @@
1
+ export * from '../resize/Core';
2
+ export * from '../resize/Multiple';
3
+ export * from '../resize/Single';
@@ -0,0 +1 @@
1
+ export * as Resize from '../resize/external';
@@ -0,0 +1,18 @@
1
+ import { type Key, type KeyedRenderableRecord } from "@synnaxlabs/x";
2
+ import { Align } from '../align';
3
+ import { Button as CoreButton } from '../button';
4
+ import { type UseSelectMultipleProps } from '../hooks/useSelectMultiple';
5
+ import { type Input } from '../input';
6
+ import { type RenderProp } from '../util/renderProp';
7
+ export interface ButtonOptionProps<K extends Key = Key, E extends KeyedRenderableRecord<K, E> = KeyedRenderableRecord<K>> extends Pick<CoreButton.ButtonProps, "onClick"> {
8
+ key: K;
9
+ selected: boolean;
10
+ entry: E;
11
+ title: E[keyof E];
12
+ }
13
+ export interface ButtonProps<K extends Key = Key, E extends KeyedRenderableRecord<K, E> = KeyedRenderableRecord<K>> extends Input.Control<K>, Omit<Align.PackProps, "children" | "onChange">, Pick<UseSelectMultipleProps, "allowNone" | "allowMultiple"> {
14
+ children?: RenderProp<ButtonOptionProps<K, E>>;
15
+ entryRenderKey?: keyof E;
16
+ data: E[];
17
+ }
18
+ export declare const Button: <K extends Key = Key, E extends KeyedRenderableRecord<K, E> = KeyedRenderableRecord<K>>({ children, value, onChange, entryRenderKey, allowNone, allowMultiple, data, ...props }: ButtonProps<K, E>) => JSX.Element;
@@ -0,0 +1,3 @@
1
+ import { type ReactElement } from "react";
2
+ import { Button } from '../button';
3
+ export declare const ClearButton: (props: Omit<Button.IconProps, "children">) => ReactElement;
@@ -0,0 +1,11 @@
1
+ import { type ReactElement } from "react";
2
+ import { type direction } from "@synnaxlabs/x";
3
+ import { type ButtonProps } from '../select/Button';
4
+ interface Entry {
5
+ key: direction.Direction;
6
+ icon: ReactElement;
7
+ }
8
+ export interface DirectionProps extends Omit<ButtonProps<direction.Direction, Entry>, "data" | "entryRenderKey"> {
9
+ }
10
+ export declare const Direction: ({ children, ...props }: DirectionProps) => ReactElement;
11
+ export {};