tuiuiu.js 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (803) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +324 -0
  3. package/dist/app/index.d.ts +9 -0
  4. package/dist/app/index.d.ts.map +1 -0
  5. package/dist/app/index.js +12 -0
  6. package/dist/app/index.js.map +1 -0
  7. package/dist/app/render-loop.d.ts +51 -0
  8. package/dist/app/render-loop.d.ts.map +1 -0
  9. package/dist/app/render-loop.js +263 -0
  10. package/dist/app/render-loop.js.map +1 -0
  11. package/dist/atoms/button.d.ts +109 -0
  12. package/dist/atoms/button.d.ts.map +1 -0
  13. package/dist/atoms/button.js +173 -0
  14. package/dist/atoms/button.js.map +1 -0
  15. package/dist/atoms/index.d.ts +29 -0
  16. package/dist/atoms/index.d.ts.map +1 -0
  17. package/dist/atoms/index.js +53 -0
  18. package/dist/atoms/index.js.map +1 -0
  19. package/dist/atoms/progress-bar.d.ts +96 -0
  20. package/dist/atoms/progress-bar.d.ts.map +1 -0
  21. package/dist/atoms/progress-bar.js +443 -0
  22. package/dist/atoms/progress-bar.js.map +1 -0
  23. package/dist/atoms/slider.d.ts +137 -0
  24. package/dist/atoms/slider.d.ts.map +1 -0
  25. package/dist/atoms/slider.js +317 -0
  26. package/dist/atoms/slider.js.map +1 -0
  27. package/dist/atoms/spinner.d.ts +91 -0
  28. package/dist/atoms/spinner.d.ts.map +1 -0
  29. package/dist/atoms/spinner.js +650 -0
  30. package/dist/atoms/spinner.js.map +1 -0
  31. package/dist/atoms/switch.d.ts +102 -0
  32. package/dist/atoms/switch.d.ts.map +1 -0
  33. package/dist/atoms/switch.js +176 -0
  34. package/dist/atoms/switch.js.map +1 -0
  35. package/dist/atoms/text-input.d.ts +82 -0
  36. package/dist/atoms/text-input.d.ts.map +1 -0
  37. package/dist/atoms/text-input.js +347 -0
  38. package/dist/atoms/text-input.js.map +1 -0
  39. package/dist/atoms/timer.d.ts +178 -0
  40. package/dist/atoms/timer.d.ts.map +1 -0
  41. package/dist/atoms/timer.js +355 -0
  42. package/dist/atoms/timer.js.map +1 -0
  43. package/dist/atoms/tooltip.d.ts +191 -0
  44. package/dist/atoms/tooltip.d.ts.map +1 -0
  45. package/dist/atoms/tooltip.js +279 -0
  46. package/dist/atoms/tooltip.js.map +1 -0
  47. package/dist/components/canvas.d.ts +322 -0
  48. package/dist/components/canvas.d.ts.map +1 -0
  49. package/dist/components/canvas.js +833 -0
  50. package/dist/components/canvas.js.map +1 -0
  51. package/dist/components/code-block.d.ts +75 -0
  52. package/dist/components/code-block.d.ts.map +1 -0
  53. package/dist/components/code-block.js +322 -0
  54. package/dist/components/code-block.js.map +1 -0
  55. package/dist/components/components.d.ts +122 -0
  56. package/dist/components/components.d.ts.map +1 -0
  57. package/dist/components/components.js +151 -0
  58. package/dist/components/components.js.map +1 -0
  59. package/dist/components/data-viz/bar-chart.d.ts +167 -0
  60. package/dist/components/data-viz/bar-chart.d.ts.map +1 -0
  61. package/dist/components/data-viz/bar-chart.js +375 -0
  62. package/dist/components/data-viz/bar-chart.js.map +1 -0
  63. package/dist/components/data-viz/gauge.d.ts +163 -0
  64. package/dist/components/data-viz/gauge.d.ts.map +1 -0
  65. package/dist/components/data-viz/gauge.js +451 -0
  66. package/dist/components/data-viz/gauge.js.map +1 -0
  67. package/dist/components/data-viz/heatmap.d.ts +154 -0
  68. package/dist/components/data-viz/heatmap.d.ts.map +1 -0
  69. package/dist/components/data-viz/heatmap.js +458 -0
  70. package/dist/components/data-viz/heatmap.js.map +1 -0
  71. package/dist/components/data-viz/index.d.ts +16 -0
  72. package/dist/components/data-viz/index.d.ts.map +1 -0
  73. package/dist/components/data-viz/index.js +16 -0
  74. package/dist/components/data-viz/index.js.map +1 -0
  75. package/dist/components/data-viz/line-chart.d.ts +157 -0
  76. package/dist/components/data-viz/line-chart.d.ts.map +1 -0
  77. package/dist/components/data-viz/line-chart.js +578 -0
  78. package/dist/components/data-viz/line-chart.js.map +1 -0
  79. package/dist/components/data-viz/sparkline.d.ts +156 -0
  80. package/dist/components/data-viz/sparkline.d.ts.map +1 -0
  81. package/dist/components/data-viz/sparkline.js +325 -0
  82. package/dist/components/data-viz/sparkline.js.map +1 -0
  83. package/dist/components/grid.d.ts +234 -0
  84. package/dist/components/grid.d.ts.map +1 -0
  85. package/dist/components/grid.js +719 -0
  86. package/dist/components/grid.js.map +1 -0
  87. package/dist/components/index.d.ts +33 -0
  88. package/dist/components/index.d.ts.map +1 -0
  89. package/dist/components/index.js +69 -0
  90. package/dist/components/index.js.map +1 -0
  91. package/dist/components/markdown.d.ts +52 -0
  92. package/dist/components/markdown.d.ts.map +1 -0
  93. package/dist/components/markdown.js +341 -0
  94. package/dist/components/markdown.js.map +1 -0
  95. package/dist/components/modal.d.ts +237 -0
  96. package/dist/components/modal.d.ts.map +1 -0
  97. package/dist/components/modal.js +396 -0
  98. package/dist/components/modal.js.map +1 -0
  99. package/dist/components/progress-bar.d.ts +89 -0
  100. package/dist/components/progress-bar.d.ts.map +1 -0
  101. package/dist/components/progress-bar.js +288 -0
  102. package/dist/components/progress-bar.js.map +1 -0
  103. package/dist/components/select.d.ts +114 -0
  104. package/dist/components/select.d.ts.map +1 -0
  105. package/dist/components/select.js +415 -0
  106. package/dist/components/select.js.map +1 -0
  107. package/dist/components/spinner.d.ts +71 -0
  108. package/dist/components/spinner.d.ts.map +1 -0
  109. package/dist/components/spinner.js +300 -0
  110. package/dist/components/spinner.js.map +1 -0
  111. package/dist/components/split-panel.d.ts +175 -0
  112. package/dist/components/split-panel.d.ts.map +1 -0
  113. package/dist/components/split-panel.js +322 -0
  114. package/dist/components/split-panel.js.map +1 -0
  115. package/dist/components/table.d.ts +103 -0
  116. package/dist/components/table.d.ts.map +1 -0
  117. package/dist/components/table.js +359 -0
  118. package/dist/components/table.js.map +1 -0
  119. package/dist/components/text-input.d.ts +79 -0
  120. package/dist/components/text-input.d.ts.map +1 -0
  121. package/dist/components/text-input.js +332 -0
  122. package/dist/components/text-input.js.map +1 -0
  123. package/dist/core/animation.d.ts +262 -0
  124. package/dist/core/animation.d.ts.map +1 -0
  125. package/dist/core/animation.js +626 -0
  126. package/dist/core/animation.js.map +1 -0
  127. package/dist/core/buffer.d.ts +179 -0
  128. package/dist/core/buffer.d.ts.map +1 -0
  129. package/dist/core/buffer.js +549 -0
  130. package/dist/core/buffer.js.map +1 -0
  131. package/dist/core/capabilities.d.ts +184 -0
  132. package/dist/core/capabilities.d.ts.map +1 -0
  133. package/dist/core/capabilities.js +393 -0
  134. package/dist/core/capabilities.js.map +1 -0
  135. package/dist/core/colors.d.ts +111 -0
  136. package/dist/core/colors.d.ts.map +1 -0
  137. package/dist/core/colors.js +417 -0
  138. package/dist/core/colors.js.map +1 -0
  139. package/dist/core/command-palette.d.ts +220 -0
  140. package/dist/core/command-palette.d.ts.map +1 -0
  141. package/dist/core/command-palette.js +564 -0
  142. package/dist/core/command-palette.js.map +1 -0
  143. package/dist/core/constraint.d.ts +315 -0
  144. package/dist/core/constraint.d.ts.map +1 -0
  145. package/dist/core/constraint.js +651 -0
  146. package/dist/core/constraint.js.map +1 -0
  147. package/dist/core/delta-render.d.ts +64 -0
  148. package/dist/core/delta-render.d.ts.map +1 -0
  149. package/dist/core/delta-render.js +367 -0
  150. package/dist/core/delta-render.js.map +1 -0
  151. package/dist/core/dirty.d.ts +181 -0
  152. package/dist/core/dirty.d.ts.map +1 -0
  153. package/dist/core/dirty.js +335 -0
  154. package/dist/core/dirty.js.map +1 -0
  155. package/dist/core/error-boundary.d.ts +79 -0
  156. package/dist/core/error-boundary.d.ts.map +1 -0
  157. package/dist/core/error-boundary.js +258 -0
  158. package/dist/core/error-boundary.js.map +1 -0
  159. package/dist/core/events.d.ts +206 -0
  160. package/dist/core/events.d.ts.map +1 -0
  161. package/dist/core/events.js +411 -0
  162. package/dist/core/events.js.map +1 -0
  163. package/dist/core/focus.d.ts +294 -0
  164. package/dist/core/focus.d.ts.map +1 -0
  165. package/dist/core/focus.js +589 -0
  166. package/dist/core/focus.js.map +1 -0
  167. package/dist/core/graphics.d.ts +146 -0
  168. package/dist/core/graphics.d.ts.map +1 -0
  169. package/dist/core/graphics.js +561 -0
  170. package/dist/core/graphics.js.map +1 -0
  171. package/dist/core/highlighter.d.ts +148 -0
  172. package/dist/core/highlighter.d.ts.map +1 -0
  173. package/dist/core/highlighter.js +2726 -0
  174. package/dist/core/highlighter.js.map +1 -0
  175. package/dist/core/hit-test.d.ts +126 -0
  176. package/dist/core/hit-test.d.ts.map +1 -0
  177. package/dist/core/hit-test.js +336 -0
  178. package/dist/core/hit-test.js.map +1 -0
  179. package/dist/core/index.d.ts +58 -0
  180. package/dist/core/index.d.ts.map +1 -0
  181. package/dist/core/index.js +254 -0
  182. package/dist/core/index.js.map +1 -0
  183. package/dist/core/input.d.ts +241 -0
  184. package/dist/core/input.d.ts.map +1 -0
  185. package/dist/core/input.js +768 -0
  186. package/dist/core/input.js.map +1 -0
  187. package/dist/core/keybindings.d.ts +256 -0
  188. package/dist/core/keybindings.d.ts.map +1 -0
  189. package/dist/core/keybindings.js +532 -0
  190. package/dist/core/keybindings.js.map +1 -0
  191. package/dist/core/layout.d.ts +30 -0
  192. package/dist/core/layout.d.ts.map +1 -0
  193. package/dist/core/layout.js +347 -0
  194. package/dist/core/layout.js.map +1 -0
  195. package/dist/core/overlay.d.ts +318 -0
  196. package/dist/core/overlay.d.ts.map +1 -0
  197. package/dist/core/overlay.js +794 -0
  198. package/dist/core/overlay.js.map +1 -0
  199. package/dist/core/query.d.ts +155 -0
  200. package/dist/core/query.d.ts.map +1 -0
  201. package/dist/core/query.js +616 -0
  202. package/dist/core/query.js.map +1 -0
  203. package/dist/core/renderer.d.ts +28 -0
  204. package/dist/core/renderer.d.ts.map +1 -0
  205. package/dist/core/renderer.js +403 -0
  206. package/dist/core/renderer.js.map +1 -0
  207. package/dist/core/router.d.ts +401 -0
  208. package/dist/core/router.d.ts.map +1 -0
  209. package/dist/core/router.js +766 -0
  210. package/dist/core/router.js.map +1 -0
  211. package/dist/core/screen.d.ts +302 -0
  212. package/dist/core/screen.d.ts.map +1 -0
  213. package/dist/core/screen.js +537 -0
  214. package/dist/core/screen.js.map +1 -0
  215. package/dist/core/signal.d.ts +136 -0
  216. package/dist/core/signal.d.ts.map +1 -0
  217. package/dist/core/signal.js +336 -0
  218. package/dist/core/signal.js.map +1 -0
  219. package/dist/core/theme.d.ts +220 -0
  220. package/dist/core/theme.d.ts.map +1 -0
  221. package/dist/core/theme.js +499 -0
  222. package/dist/core/theme.js.map +1 -0
  223. package/dist/core/tick.d.ts +107 -0
  224. package/dist/core/tick.d.ts.map +1 -0
  225. package/dist/core/tick.js +174 -0
  226. package/dist/core/tick.js.map +1 -0
  227. package/dist/core/transitions.d.ts +335 -0
  228. package/dist/core/transitions.d.ts.map +1 -0
  229. package/dist/core/transitions.js +650 -0
  230. package/dist/core/transitions.js.map +1 -0
  231. package/dist/core/virtual-scroll.d.ts +241 -0
  232. package/dist/core/virtual-scroll.d.ts.map +1 -0
  233. package/dist/core/virtual-scroll.js +476 -0
  234. package/dist/core/virtual-scroll.js.map +1 -0
  235. package/dist/core/visualization.d.ts +248 -0
  236. package/dist/core/visualization.d.ts.map +1 -0
  237. package/dist/core/visualization.js +709 -0
  238. package/dist/core/visualization.js.map +1 -0
  239. package/dist/design-system/core/index.d.ts +6 -0
  240. package/dist/design-system/core/index.d.ts.map +1 -0
  241. package/dist/design-system/core/index.js +6 -0
  242. package/dist/design-system/core/index.js.map +1 -0
  243. package/dist/design-system/core/layout.d.ts +30 -0
  244. package/dist/design-system/core/layout.d.ts.map +1 -0
  245. package/dist/design-system/core/layout.js +344 -0
  246. package/dist/design-system/core/layout.js.map +1 -0
  247. package/dist/design-system/core/renderer.d.ts +28 -0
  248. package/dist/design-system/core/renderer.d.ts.map +1 -0
  249. package/dist/design-system/core/renderer.js +418 -0
  250. package/dist/design-system/core/renderer.js.map +1 -0
  251. package/dist/design-system/data-display/calendar.d.ts +141 -0
  252. package/dist/design-system/data-display/calendar.d.ts.map +1 -0
  253. package/dist/design-system/data-display/calendar.js +524 -0
  254. package/dist/design-system/data-display/calendar.js.map +1 -0
  255. package/dist/design-system/data-display/code-block.d.ts +75 -0
  256. package/dist/design-system/data-display/code-block.d.ts.map +1 -0
  257. package/dist/design-system/data-display/code-block.js +311 -0
  258. package/dist/design-system/data-display/code-block.js.map +1 -0
  259. package/dist/design-system/data-display/data-table.d.ts +173 -0
  260. package/dist/design-system/data-display/data-table.d.ts.map +1 -0
  261. package/dist/design-system/data-display/data-table.js +428 -0
  262. package/dist/design-system/data-display/data-table.js.map +1 -0
  263. package/dist/design-system/data-display/index.d.ts +10 -0
  264. package/dist/design-system/data-display/index.d.ts.map +1 -0
  265. package/dist/design-system/data-display/index.js +16 -0
  266. package/dist/design-system/data-display/index.js.map +1 -0
  267. package/dist/design-system/data-display/markdown.d.ts +52 -0
  268. package/dist/design-system/data-display/markdown.d.ts.map +1 -0
  269. package/dist/design-system/data-display/markdown.js +341 -0
  270. package/dist/design-system/data-display/markdown.js.map +1 -0
  271. package/dist/design-system/data-display/table.d.ts +103 -0
  272. package/dist/design-system/data-display/table.d.ts.map +1 -0
  273. package/dist/design-system/data-display/table.js +342 -0
  274. package/dist/design-system/data-display/table.js.map +1 -0
  275. package/dist/design-system/data-display/tree.d.ts +166 -0
  276. package/dist/design-system/data-display/tree.d.ts.map +1 -0
  277. package/dist/design-system/data-display/tree.js +428 -0
  278. package/dist/design-system/data-display/tree.js.map +1 -0
  279. package/dist/design-system/feedback/badge.d.ts +21 -0
  280. package/dist/design-system/feedback/badge.d.ts.map +1 -0
  281. package/dist/design-system/feedback/badge.js +9 -0
  282. package/dist/design-system/feedback/badge.js.map +1 -0
  283. package/dist/design-system/feedback/index.d.ts +8 -0
  284. package/dist/design-system/feedback/index.d.ts.map +1 -0
  285. package/dist/design-system/feedback/index.js +12 -0
  286. package/dist/design-system/feedback/index.js.map +1 -0
  287. package/dist/design-system/feedback/progress-bar.d.ts +93 -0
  288. package/dist/design-system/feedback/progress-bar.d.ts.map +1 -0
  289. package/dist/design-system/feedback/progress-bar.js +440 -0
  290. package/dist/design-system/feedback/progress-bar.js.map +1 -0
  291. package/dist/design-system/feedback/spinner.d.ts +88 -0
  292. package/dist/design-system/feedback/spinner.d.ts.map +1 -0
  293. package/dist/design-system/feedback/spinner.js +679 -0
  294. package/dist/design-system/feedback/spinner.js.map +1 -0
  295. package/dist/design-system/feedback/timer.d.ts +175 -0
  296. package/dist/design-system/feedback/timer.d.ts.map +1 -0
  297. package/dist/design-system/feedback/timer.js +352 -0
  298. package/dist/design-system/feedback/timer.js.map +1 -0
  299. package/dist/design-system/forms/autocomplete.d.ts +163 -0
  300. package/dist/design-system/forms/autocomplete.d.ts.map +1 -0
  301. package/dist/design-system/forms/autocomplete.js +455 -0
  302. package/dist/design-system/forms/autocomplete.js.map +1 -0
  303. package/dist/design-system/forms/button.d.ts +106 -0
  304. package/dist/design-system/forms/button.d.ts.map +1 -0
  305. package/dist/design-system/forms/button.js +170 -0
  306. package/dist/design-system/forms/button.js.map +1 -0
  307. package/dist/design-system/forms/index.d.ts +12 -0
  308. package/dist/design-system/forms/index.d.ts.map +1 -0
  309. package/dist/design-system/forms/index.js +20 -0
  310. package/dist/design-system/forms/index.js.map +1 -0
  311. package/dist/design-system/forms/multi-select.d.ts +102 -0
  312. package/dist/design-system/forms/multi-select.d.ts.map +1 -0
  313. package/dist/design-system/forms/multi-select.js +309 -0
  314. package/dist/design-system/forms/multi-select.js.map +1 -0
  315. package/dist/design-system/forms/radio-group.d.ts +88 -0
  316. package/dist/design-system/forms/radio-group.d.ts.map +1 -0
  317. package/dist/design-system/forms/radio-group.js +145 -0
  318. package/dist/design-system/forms/radio-group.js.map +1 -0
  319. package/dist/design-system/forms/select.d.ts +116 -0
  320. package/dist/design-system/forms/select.d.ts.map +1 -0
  321. package/dist/design-system/forms/select.js +441 -0
  322. package/dist/design-system/forms/select.js.map +1 -0
  323. package/dist/design-system/forms/slider.d.ts +134 -0
  324. package/dist/design-system/forms/slider.d.ts.map +1 -0
  325. package/dist/design-system/forms/slider.js +314 -0
  326. package/dist/design-system/forms/slider.js.map +1 -0
  327. package/dist/design-system/forms/switch.d.ts +99 -0
  328. package/dist/design-system/forms/switch.d.ts.map +1 -0
  329. package/dist/design-system/forms/switch.js +173 -0
  330. package/dist/design-system/forms/switch.js.map +1 -0
  331. package/dist/design-system/forms/text-input.d.ts +79 -0
  332. package/dist/design-system/forms/text-input.d.ts.map +1 -0
  333. package/dist/design-system/forms/text-input.js +344 -0
  334. package/dist/design-system/forms/text-input.js.map +1 -0
  335. package/dist/design-system/index.d.ts +23 -0
  336. package/dist/design-system/index.d.ts.map +1 -0
  337. package/dist/design-system/index.js +74 -0
  338. package/dist/design-system/index.js.map +1 -0
  339. package/dist/design-system/layout/app.d.ts +205 -0
  340. package/dist/design-system/layout/app.d.ts.map +1 -0
  341. package/dist/design-system/layout/app.js +286 -0
  342. package/dist/design-system/layout/app.js.map +1 -0
  343. package/dist/design-system/layout/collapsible.d.ts +166 -0
  344. package/dist/design-system/layout/collapsible.d.ts.map +1 -0
  345. package/dist/design-system/layout/collapsible.js +286 -0
  346. package/dist/design-system/layout/collapsible.js.map +1 -0
  347. package/dist/design-system/layout/grid.d.ts +232 -0
  348. package/dist/design-system/layout/grid.d.ts.map +1 -0
  349. package/dist/design-system/layout/grid.js +333 -0
  350. package/dist/design-system/layout/grid.js.map +1 -0
  351. package/dist/design-system/layout/index.d.ts +27 -0
  352. package/dist/design-system/layout/index.d.ts.map +1 -0
  353. package/dist/design-system/layout/index.js +34 -0
  354. package/dist/design-system/layout/index.js.map +1 -0
  355. package/dist/design-system/layout/scroll-area.d.ts +188 -0
  356. package/dist/design-system/layout/scroll-area.d.ts.map +1 -0
  357. package/dist/design-system/layout/scroll-area.js +348 -0
  358. package/dist/design-system/layout/scroll-area.js.map +1 -0
  359. package/dist/design-system/layout/split-panel.d.ts +183 -0
  360. package/dist/design-system/layout/split-panel.d.ts.map +1 -0
  361. package/dist/design-system/layout/split-panel.js +323 -0
  362. package/dist/design-system/layout/split-panel.js.map +1 -0
  363. package/dist/design-system/layout/stack.d.ts +189 -0
  364. package/dist/design-system/layout/stack.d.ts.map +1 -0
  365. package/dist/design-system/layout/stack.js +170 -0
  366. package/dist/design-system/layout/stack.js.map +1 -0
  367. package/dist/design-system/layout/tabs.d.ts +129 -0
  368. package/dist/design-system/layout/tabs.d.ts.map +1 -0
  369. package/dist/design-system/layout/tabs.js +373 -0
  370. package/dist/design-system/layout/tabs.js.map +1 -0
  371. package/dist/design-system/media/index.d.ts +13 -0
  372. package/dist/design-system/media/index.d.ts.map +1 -0
  373. package/dist/design-system/media/index.js +23 -0
  374. package/dist/design-system/media/index.js.map +1 -0
  375. package/dist/design-system/media/picture.d.ts +304 -0
  376. package/dist/design-system/media/picture.d.ts.map +1 -0
  377. package/dist/design-system/media/picture.js +681 -0
  378. package/dist/design-system/media/picture.js.map +1 -0
  379. package/dist/design-system/navigation/file-manager.d.ts +492 -0
  380. package/dist/design-system/navigation/file-manager.d.ts.map +1 -0
  381. package/dist/design-system/navigation/file-manager.js +807 -0
  382. package/dist/design-system/navigation/file-manager.js.map +1 -0
  383. package/dist/design-system/navigation/index.d.ts +13 -0
  384. package/dist/design-system/navigation/index.d.ts.map +1 -0
  385. package/dist/design-system/navigation/index.js +19 -0
  386. package/dist/design-system/navigation/index.js.map +1 -0
  387. package/dist/design-system/overlays/command-palette.d.ts +217 -0
  388. package/dist/design-system/overlays/command-palette.d.ts.map +1 -0
  389. package/dist/design-system/overlays/command-palette.js +443 -0
  390. package/dist/design-system/overlays/command-palette.js.map +1 -0
  391. package/dist/design-system/overlays/index.d.ts +7 -0
  392. package/dist/design-system/overlays/index.d.ts.map +1 -0
  393. package/dist/design-system/overlays/index.js +10 -0
  394. package/dist/design-system/overlays/index.js.map +1 -0
  395. package/dist/design-system/overlays/modal.d.ts +251 -0
  396. package/dist/design-system/overlays/modal.d.ts.map +1 -0
  397. package/dist/design-system/overlays/modal.js +461 -0
  398. package/dist/design-system/overlays/modal.js.map +1 -0
  399. package/dist/design-system/overlays/overlay-stack.d.ts +200 -0
  400. package/dist/design-system/overlays/overlay-stack.d.ts.map +1 -0
  401. package/dist/design-system/overlays/overlay-stack.js +341 -0
  402. package/dist/design-system/overlays/overlay-stack.js.map +1 -0
  403. package/dist/design-system/primitives/box.d.ts +16 -0
  404. package/dist/design-system/primitives/box.d.ts.map +1 -0
  405. package/dist/design-system/primitives/box.js +23 -0
  406. package/dist/design-system/primitives/box.js.map +1 -0
  407. package/dist/design-system/primitives/divider.d.ts +52 -0
  408. package/dist/design-system/primitives/divider.d.ts.map +1 -0
  409. package/dist/design-system/primitives/divider.js +72 -0
  410. package/dist/design-system/primitives/divider.js.map +1 -0
  411. package/dist/design-system/primitives/helpers.d.ts +10 -0
  412. package/dist/design-system/primitives/helpers.d.ts.map +1 -0
  413. package/dist/design-system/primitives/helpers.js +27 -0
  414. package/dist/design-system/primitives/helpers.js.map +1 -0
  415. package/dist/design-system/primitives/index.d.ts +11 -0
  416. package/dist/design-system/primitives/index.d.ts.map +1 -0
  417. package/dist/design-system/primitives/index.js +14 -0
  418. package/dist/design-system/primitives/index.js.map +1 -0
  419. package/dist/design-system/primitives/slot.d.ts +35 -0
  420. package/dist/design-system/primitives/slot.d.ts.map +1 -0
  421. package/dist/design-system/primitives/slot.js +17 -0
  422. package/dist/design-system/primitives/slot.js.map +1 -0
  423. package/dist/design-system/primitives/spacer.d.ts +34 -0
  424. package/dist/design-system/primitives/spacer.d.ts.map +1 -0
  425. package/dist/design-system/primitives/spacer.js +53 -0
  426. package/dist/design-system/primitives/spacer.js.map +1 -0
  427. package/dist/design-system/primitives/text.d.ts +12 -0
  428. package/dist/design-system/primitives/text.d.ts.map +1 -0
  429. package/dist/design-system/primitives/text.js +25 -0
  430. package/dist/design-system/primitives/text.js.map +1 -0
  431. package/dist/design-system/primitives/utilities.d.ts +70 -0
  432. package/dist/design-system/primitives/utilities.d.ts.map +1 -0
  433. package/dist/design-system/primitives/utilities.js +56 -0
  434. package/dist/design-system/primitives/utilities.js.map +1 -0
  435. package/dist/design-system/visual/big-text.d.ts +151 -0
  436. package/dist/design-system/visual/big-text.d.ts.map +1 -0
  437. package/dist/design-system/visual/big-text.js +578 -0
  438. package/dist/design-system/visual/big-text.js.map +1 -0
  439. package/dist/design-system/visual/digits.d.ts +159 -0
  440. package/dist/design-system/visual/digits.d.ts.map +1 -0
  441. package/dist/design-system/visual/digits.js +287 -0
  442. package/dist/design-system/visual/digits.js.map +1 -0
  443. package/dist/design-system/visual/index.d.ts +20 -0
  444. package/dist/design-system/visual/index.d.ts.map +1 -0
  445. package/dist/design-system/visual/index.js +23 -0
  446. package/dist/design-system/visual/index.js.map +1 -0
  447. package/dist/design-system/visual/splash-screen.d.ts +93 -0
  448. package/dist/design-system/visual/splash-screen.d.ts.map +1 -0
  449. package/dist/design-system/visual/splash-screen.js +219 -0
  450. package/dist/design-system/visual/splash-screen.js.map +1 -0
  451. package/dist/design-system/visual/tooltip.d.ts +188 -0
  452. package/dist/design-system/visual/tooltip.d.ts.map +1 -0
  453. package/dist/design-system/visual/tooltip.js +276 -0
  454. package/dist/design-system/visual/tooltip.js.map +1 -0
  455. package/dist/dev-tools/debugger.d.ts +223 -0
  456. package/dist/dev-tools/debugger.d.ts.map +1 -0
  457. package/dist/dev-tools/debugger.js +489 -0
  458. package/dist/dev-tools/debugger.js.map +1 -0
  459. package/dist/dev-tools/index.d.ts +22 -0
  460. package/dist/dev-tools/index.d.ts.map +1 -0
  461. package/dist/dev-tools/index.js +63 -0
  462. package/dist/dev-tools/index.js.map +1 -0
  463. package/dist/dev-tools/mouse-simulator.d.ts +155 -0
  464. package/dist/dev-tools/mouse-simulator.d.ts.map +1 -0
  465. package/dist/dev-tools/mouse-simulator.js +314 -0
  466. package/dist/dev-tools/mouse-simulator.js.map +1 -0
  467. package/dist/dev-tools/testing.d.ts +262 -0
  468. package/dist/dev-tools/testing.d.ts.map +1 -0
  469. package/dist/dev-tools/testing.js +858 -0
  470. package/dist/dev-tools/testing.js.map +1 -0
  471. package/dist/hooks/context.d.ts +47 -0
  472. package/dist/hooks/context.d.ts.map +1 -0
  473. package/dist/hooks/context.js +108 -0
  474. package/dist/hooks/context.js.map +1 -0
  475. package/dist/hooks/focus-context.d.ts +65 -0
  476. package/dist/hooks/focus-context.d.ts.map +1 -0
  477. package/dist/hooks/focus-context.js +79 -0
  478. package/dist/hooks/focus-context.js.map +1 -0
  479. package/dist/hooks/index.d.ts +16 -0
  480. package/dist/hooks/index.d.ts.map +1 -0
  481. package/dist/hooks/index.js +22 -0
  482. package/dist/hooks/index.js.map +1 -0
  483. package/dist/hooks/types.d.ts +76 -0
  484. package/dist/hooks/types.d.ts.map +1 -0
  485. package/dist/hooks/types.js +5 -0
  486. package/dist/hooks/types.js.map +1 -0
  487. package/dist/hooks/use-app.d.ts +27 -0
  488. package/dist/hooks/use-app.d.ts.map +1 -0
  489. package/dist/hooks/use-app.js +179 -0
  490. package/dist/hooks/use-app.js.map +1 -0
  491. package/dist/hooks/use-effect.d.ts +20 -0
  492. package/dist/hooks/use-effect.d.ts.map +1 -0
  493. package/dist/hooks/use-effect.js +55 -0
  494. package/dist/hooks/use-effect.js.map +1 -0
  495. package/dist/hooks/use-focus.d.ts +48 -0
  496. package/dist/hooks/use-focus.d.ts.map +1 -0
  497. package/dist/hooks/use-focus.js +152 -0
  498. package/dist/hooks/use-focus.js.map +1 -0
  499. package/dist/hooks/use-input.d.ts +35 -0
  500. package/dist/hooks/use-input.d.ts.map +1 -0
  501. package/dist/hooks/use-input.js +352 -0
  502. package/dist/hooks/use-input.js.map +1 -0
  503. package/dist/hooks/use-mouse.d.ts +82 -0
  504. package/dist/hooks/use-mouse.d.ts.map +1 -0
  505. package/dist/hooks/use-mouse.js +328 -0
  506. package/dist/hooks/use-mouse.js.map +1 -0
  507. package/dist/hooks/use-navigation.d.ts +206 -0
  508. package/dist/hooks/use-navigation.d.ts.map +1 -0
  509. package/dist/hooks/use-navigation.js +319 -0
  510. package/dist/hooks/use-navigation.js.map +1 -0
  511. package/dist/hooks/use-state.d.ts +15 -0
  512. package/dist/hooks/use-state.d.ts.map +1 -0
  513. package/dist/hooks/use-state.js +29 -0
  514. package/dist/hooks/use-state.js.map +1 -0
  515. package/dist/hooks/use-terminal-size.d.ts +12 -0
  516. package/dist/hooks/use-terminal-size.d.ts.map +1 -0
  517. package/dist/hooks/use-terminal-size.js +20 -0
  518. package/dist/hooks/use-terminal-size.js.map +1 -0
  519. package/dist/index.d.ts +85 -0
  520. package/dist/index.d.ts.map +1 -0
  521. package/dist/index.js +334 -0
  522. package/dist/index.js.map +1 -0
  523. package/dist/molecules/autocomplete.d.ts +166 -0
  524. package/dist/molecules/autocomplete.d.ts.map +1 -0
  525. package/dist/molecules/autocomplete.js +458 -0
  526. package/dist/molecules/autocomplete.js.map +1 -0
  527. package/dist/molecules/calendar.d.ts +144 -0
  528. package/dist/molecules/calendar.d.ts.map +1 -0
  529. package/dist/molecules/calendar.js +527 -0
  530. package/dist/molecules/calendar.js.map +1 -0
  531. package/dist/molecules/code-block.d.ts +88 -0
  532. package/dist/molecules/code-block.d.ts.map +1 -0
  533. package/dist/molecules/code-block.js +324 -0
  534. package/dist/molecules/code-block.js.map +1 -0
  535. package/dist/molecules/collapsible.d.ts +169 -0
  536. package/dist/molecules/collapsible.d.ts.map +1 -0
  537. package/dist/molecules/collapsible.js +289 -0
  538. package/dist/molecules/collapsible.js.map +1 -0
  539. package/dist/molecules/data-viz/bar-chart.d.ts +167 -0
  540. package/dist/molecules/data-viz/bar-chart.d.ts.map +1 -0
  541. package/dist/molecules/data-viz/bar-chart.js +375 -0
  542. package/dist/molecules/data-viz/bar-chart.js.map +1 -0
  543. package/dist/molecules/data-viz/gauge.d.ts +163 -0
  544. package/dist/molecules/data-viz/gauge.d.ts.map +1 -0
  545. package/dist/molecules/data-viz/gauge.js +451 -0
  546. package/dist/molecules/data-viz/gauge.js.map +1 -0
  547. package/dist/molecules/data-viz/heatmap.d.ts +154 -0
  548. package/dist/molecules/data-viz/heatmap.d.ts.map +1 -0
  549. package/dist/molecules/data-viz/heatmap.js +458 -0
  550. package/dist/molecules/data-viz/heatmap.js.map +1 -0
  551. package/dist/molecules/data-viz/index.d.ts +16 -0
  552. package/dist/molecules/data-viz/index.d.ts.map +1 -0
  553. package/dist/molecules/data-viz/index.js +16 -0
  554. package/dist/molecules/data-viz/index.js.map +1 -0
  555. package/dist/molecules/data-viz/line-chart.d.ts +157 -0
  556. package/dist/molecules/data-viz/line-chart.d.ts.map +1 -0
  557. package/dist/molecules/data-viz/line-chart.js +578 -0
  558. package/dist/molecules/data-viz/line-chart.js.map +1 -0
  559. package/dist/molecules/data-viz/sparkline.d.ts +156 -0
  560. package/dist/molecules/data-viz/sparkline.d.ts.map +1 -0
  561. package/dist/molecules/data-viz/sparkline.js +325 -0
  562. package/dist/molecules/data-viz/sparkline.js.map +1 -0
  563. package/dist/molecules/index.d.ts +22 -0
  564. package/dist/molecules/index.d.ts.map +1 -0
  565. package/dist/molecules/index.js +26 -0
  566. package/dist/molecules/index.js.map +1 -0
  567. package/dist/molecules/markdown.d.ts +61 -0
  568. package/dist/molecules/markdown.d.ts.map +1 -0
  569. package/dist/molecules/markdown.js +350 -0
  570. package/dist/molecules/markdown.js.map +1 -0
  571. package/dist/molecules/multi-select.d.ts +105 -0
  572. package/dist/molecules/multi-select.d.ts.map +1 -0
  573. package/dist/molecules/multi-select.js +312 -0
  574. package/dist/molecules/multi-select.js.map +1 -0
  575. package/dist/molecules/radio-group.d.ts +91 -0
  576. package/dist/molecules/radio-group.d.ts.map +1 -0
  577. package/dist/molecules/radio-group.js +148 -0
  578. package/dist/molecules/radio-group.js.map +1 -0
  579. package/dist/molecules/select.d.ts +119 -0
  580. package/dist/molecules/select.d.ts.map +1 -0
  581. package/dist/molecules/select.js +444 -0
  582. package/dist/molecules/select.js.map +1 -0
  583. package/dist/molecules/table.d.ts +106 -0
  584. package/dist/molecules/table.d.ts.map +1 -0
  585. package/dist/molecules/table.js +345 -0
  586. package/dist/molecules/table.js.map +1 -0
  587. package/dist/molecules/tabs.d.ts +132 -0
  588. package/dist/molecules/tabs.d.ts.map +1 -0
  589. package/dist/molecules/tabs.js +376 -0
  590. package/dist/molecules/tabs.js.map +1 -0
  591. package/dist/molecules/tree.d.ts +169 -0
  592. package/dist/molecules/tree.d.ts.map +1 -0
  593. package/dist/molecules/tree.js +431 -0
  594. package/dist/molecules/tree.js.map +1 -0
  595. package/dist/organisms/command-palette.d.ts +217 -0
  596. package/dist/organisms/command-palette.d.ts.map +1 -0
  597. package/dist/organisms/command-palette.js +443 -0
  598. package/dist/organisms/command-palette.js.map +1 -0
  599. package/dist/organisms/data-table.d.ts +173 -0
  600. package/dist/organisms/data-table.d.ts.map +1 -0
  601. package/dist/organisms/data-table.js +428 -0
  602. package/dist/organisms/data-table.js.map +1 -0
  603. package/dist/organisms/file-browser.d.ts +492 -0
  604. package/dist/organisms/file-browser.d.ts.map +1 -0
  605. package/dist/organisms/file-browser.js +807 -0
  606. package/dist/organisms/file-browser.js.map +1 -0
  607. package/dist/organisms/grid.d.ts +234 -0
  608. package/dist/organisms/grid.d.ts.map +1 -0
  609. package/dist/organisms/grid.js +719 -0
  610. package/dist/organisms/grid.js.map +1 -0
  611. package/dist/organisms/index.d.ts +30 -0
  612. package/dist/organisms/index.d.ts.map +1 -0
  613. package/dist/organisms/index.js +92 -0
  614. package/dist/organisms/index.js.map +1 -0
  615. package/dist/organisms/modal.d.ts +251 -0
  616. package/dist/organisms/modal.d.ts.map +1 -0
  617. package/dist/organisms/modal.js +461 -0
  618. package/dist/organisms/modal.js.map +1 -0
  619. package/dist/organisms/overlay-stack.d.ts +200 -0
  620. package/dist/organisms/overlay-stack.d.ts.map +1 -0
  621. package/dist/organisms/overlay-stack.js +341 -0
  622. package/dist/organisms/overlay-stack.js.map +1 -0
  623. package/dist/organisms/scroll-area.d.ts +188 -0
  624. package/dist/organisms/scroll-area.d.ts.map +1 -0
  625. package/dist/organisms/scroll-area.js +348 -0
  626. package/dist/organisms/scroll-area.js.map +1 -0
  627. package/dist/organisms/split-panel.d.ts +183 -0
  628. package/dist/organisms/split-panel.d.ts.map +1 -0
  629. package/dist/organisms/split-panel.js +323 -0
  630. package/dist/organisms/split-panel.js.map +1 -0
  631. package/dist/primitives/canvas.d.ts +322 -0
  632. package/dist/primitives/canvas.d.ts.map +1 -0
  633. package/dist/primitives/canvas.js +833 -0
  634. package/dist/primitives/canvas.js.map +1 -0
  635. package/dist/primitives/context.d.ts +83 -0
  636. package/dist/primitives/context.d.ts.map +1 -0
  637. package/dist/primitives/context.js +101 -0
  638. package/dist/primitives/context.js.map +1 -0
  639. package/dist/primitives/divider.d.ts +52 -0
  640. package/dist/primitives/divider.d.ts.map +1 -0
  641. package/dist/primitives/divider.js +71 -0
  642. package/dist/primitives/divider.js.map +1 -0
  643. package/dist/primitives/index.d.ts +10 -0
  644. package/dist/primitives/index.d.ts.map +1 -0
  645. package/dist/primitives/index.js +10 -0
  646. package/dist/primitives/index.js.map +1 -0
  647. package/dist/primitives/nodes.d.ts +152 -0
  648. package/dist/primitives/nodes.d.ts.map +1 -0
  649. package/dist/primitives/nodes.js +164 -0
  650. package/dist/primitives/nodes.js.map +1 -0
  651. package/dist/primitives/signal.d.ts +136 -0
  652. package/dist/primitives/signal.d.ts.map +1 -0
  653. package/dist/primitives/signal.js +338 -0
  654. package/dist/primitives/signal.js.map +1 -0
  655. package/dist/primitives/store.d.ts +86 -0
  656. package/dist/primitives/store.d.ts.map +1 -0
  657. package/dist/primitives/store.js +147 -0
  658. package/dist/primitives/store.js.map +1 -0
  659. package/dist/storybook/app.d.ts +16 -0
  660. package/dist/storybook/app.d.ts.map +1 -0
  661. package/dist/storybook/app.js +697 -0
  662. package/dist/storybook/app.js.map +1 -0
  663. package/dist/storybook/cli.d.ts +10 -0
  664. package/dist/storybook/cli.d.ts.map +1 -0
  665. package/dist/storybook/cli.js +14 -0
  666. package/dist/storybook/cli.js.map +1 -0
  667. package/dist/storybook/components/compare-view.d.ts +46 -0
  668. package/dist/storybook/components/compare-view.d.ts.map +1 -0
  669. package/dist/storybook/components/compare-view.js +235 -0
  670. package/dist/storybook/components/compare-view.js.map +1 -0
  671. package/dist/storybook/components/index.d.ts +7 -0
  672. package/dist/storybook/components/index.d.ts.map +1 -0
  673. package/dist/storybook/components/index.js +7 -0
  674. package/dist/storybook/components/index.js.map +1 -0
  675. package/dist/storybook/components/log-viewer.d.ts +9 -0
  676. package/dist/storybook/components/log-viewer.d.ts.map +1 -0
  677. package/dist/storybook/components/log-viewer.js +46 -0
  678. package/dist/storybook/components/log-viewer.js.map +1 -0
  679. package/dist/storybook/components/preview.d.ts +28 -0
  680. package/dist/storybook/components/preview.d.ts.map +1 -0
  681. package/dist/storybook/components/preview.js +248 -0
  682. package/dist/storybook/components/preview.js.map +1 -0
  683. package/dist/storybook/components/sidebar.d.ts +29 -0
  684. package/dist/storybook/components/sidebar.d.ts.map +1 -0
  685. package/dist/storybook/components/sidebar.js +176 -0
  686. package/dist/storybook/components/sidebar.js.map +1 -0
  687. package/dist/storybook/core/comparatives.d.ts +94 -0
  688. package/dist/storybook/core/comparatives.d.ts.map +1 -0
  689. package/dist/storybook/core/comparatives.js +301 -0
  690. package/dist/storybook/core/comparatives.js.map +1 -0
  691. package/dist/storybook/core/index.d.ts +8 -0
  692. package/dist/storybook/core/index.d.ts.map +1 -0
  693. package/dist/storybook/core/index.js +8 -0
  694. package/dist/storybook/core/index.js.map +1 -0
  695. package/dist/storybook/core/navigator.d.ts +64 -0
  696. package/dist/storybook/core/navigator.d.ts.map +1 -0
  697. package/dist/storybook/core/navigator.js +279 -0
  698. package/dist/storybook/core/navigator.js.map +1 -0
  699. package/dist/storybook/core/playground.d.ts +73 -0
  700. package/dist/storybook/core/playground.d.ts.map +1 -0
  701. package/dist/storybook/core/playground.js +338 -0
  702. package/dist/storybook/core/playground.js.map +1 -0
  703. package/dist/storybook/core/registry.d.ts +87 -0
  704. package/dist/storybook/core/registry.d.ts.map +1 -0
  705. package/dist/storybook/core/registry.js +222 -0
  706. package/dist/storybook/core/registry.js.map +1 -0
  707. package/dist/storybook/data/ascii-art.d.ts +18 -0
  708. package/dist/storybook/data/ascii-art.d.ts.map +1 -0
  709. package/dist/storybook/data/ascii-art.js +62 -0
  710. package/dist/storybook/data/ascii-art.js.map +1 -0
  711. package/dist/storybook/data/tuiuiu-bird-colored.d.ts +13 -0
  712. package/dist/storybook/data/tuiuiu-bird-colored.d.ts.map +1 -0
  713. package/dist/storybook/data/tuiuiu-bird-colored.js +12 -0
  714. package/dist/storybook/data/tuiuiu-bird-colored.js.map +1 -0
  715. package/dist/storybook/index.d.ts +33 -0
  716. package/dist/storybook/index.d.ts.map +1 -0
  717. package/dist/storybook/index.js +44 -0
  718. package/dist/storybook/index.js.map +1 -0
  719. package/dist/storybook/store.d.ts +39 -0
  720. package/dist/storybook/store.d.ts.map +1 -0
  721. package/dist/storybook/store.js +91 -0
  722. package/dist/storybook/store.js.map +1 -0
  723. package/dist/storybook/stories/apps/index.d.ts +24 -0
  724. package/dist/storybook/stories/apps/index.d.ts.map +1 -0
  725. package/dist/storybook/stories/apps/index.js +434 -0
  726. package/dist/storybook/stories/apps/index.js.map +1 -0
  727. package/dist/storybook/stories/atoms/index.d.ts +40 -0
  728. package/dist/storybook/stories/atoms/index.d.ts.map +1 -0
  729. package/dist/storybook/stories/atoms/index.js +462 -0
  730. package/dist/storybook/stories/atoms/index.js.map +1 -0
  731. package/dist/storybook/stories/index.d.ts +37 -0
  732. package/dist/storybook/stories/index.d.ts.map +1 -0
  733. package/dist/storybook/stories/index.js +56 -0
  734. package/dist/storybook/stories/index.js.map +1 -0
  735. package/dist/storybook/stories/molecules/index.d.ts +68 -0
  736. package/dist/storybook/stories/molecules/index.d.ts.map +1 -0
  737. package/dist/storybook/stories/molecules/index.js +587 -0
  738. package/dist/storybook/stories/molecules/index.js.map +1 -0
  739. package/dist/storybook/stories/organisms/index.d.ts +29 -0
  740. package/dist/storybook/stories/organisms/index.d.ts.map +1 -0
  741. package/dist/storybook/stories/organisms/index.js +677 -0
  742. package/dist/storybook/stories/organisms/index.js.map +1 -0
  743. package/dist/storybook/types.d.ts +40 -0
  744. package/dist/storybook/types.d.ts.map +1 -0
  745. package/dist/storybook/types.js +5 -0
  746. package/dist/storybook/types.js.map +1 -0
  747. package/dist/styling/index.d.ts +12 -0
  748. package/dist/styling/index.d.ts.map +1 -0
  749. package/dist/styling/index.js +24 -0
  750. package/dist/styling/index.js.map +1 -0
  751. package/dist/styling/parser.d.ts +217 -0
  752. package/dist/styling/parser.d.ts.map +1 -0
  753. package/dist/styling/parser.js +901 -0
  754. package/dist/styling/parser.js.map +1 -0
  755. package/dist/styling/resolver.d.ts +217 -0
  756. package/dist/styling/resolver.d.ts.map +1 -0
  757. package/dist/styling/resolver.js +628 -0
  758. package/dist/styling/resolver.js.map +1 -0
  759. package/dist/styling/tokenizer.d.ts +121 -0
  760. package/dist/styling/tokenizer.d.ts.map +1 -0
  761. package/dist/styling/tokenizer.js +553 -0
  762. package/dist/styling/tokenizer.js.map +1 -0
  763. package/dist/templates/app.d.ts +205 -0
  764. package/dist/templates/app.d.ts.map +1 -0
  765. package/dist/templates/app.js +286 -0
  766. package/dist/templates/app.js.map +1 -0
  767. package/dist/templates/index.d.ts +30 -0
  768. package/dist/templates/index.d.ts.map +1 -0
  769. package/dist/templates/index.js +40 -0
  770. package/dist/templates/index.js.map +1 -0
  771. package/dist/templates/stack.d.ts +189 -0
  772. package/dist/templates/stack.d.ts.map +1 -0
  773. package/dist/templates/stack.js +170 -0
  774. package/dist/templates/stack.js.map +1 -0
  775. package/dist/utils/batcher.d.ts +88 -0
  776. package/dist/utils/batcher.d.ts.map +1 -0
  777. package/dist/utils/batcher.js +172 -0
  778. package/dist/utils/batcher.js.map +1 -0
  779. package/dist/utils/cursor.d.ts +28 -0
  780. package/dist/utils/cursor.d.ts.map +1 -0
  781. package/dist/utils/cursor.js +86 -0
  782. package/dist/utils/cursor.js.map +1 -0
  783. package/dist/utils/fs-storage.d.ts +23 -0
  784. package/dist/utils/fs-storage.d.ts.map +1 -0
  785. package/dist/utils/fs-storage.js +34 -0
  786. package/dist/utils/fs-storage.js.map +1 -0
  787. package/dist/utils/index.d.ts +14 -0
  788. package/dist/utils/index.d.ts.map +1 -0
  789. package/dist/utils/index.js +15 -0
  790. package/dist/utils/index.js.map +1 -0
  791. package/dist/utils/log-update.d.ts +31 -0
  792. package/dist/utils/log-update.d.ts.map +1 -0
  793. package/dist/utils/log-update.js +147 -0
  794. package/dist/utils/log-update.js.map +1 -0
  795. package/dist/utils/text-utils.d.ts +151 -0
  796. package/dist/utils/text-utils.d.ts.map +1 -0
  797. package/dist/utils/text-utils.js +699 -0
  798. package/dist/utils/text-utils.js.map +1 -0
  799. package/dist/utils/types.d.ts +205 -0
  800. package/dist/utils/types.d.ts.map +1 -0
  801. package/dist/utils/types.js +430 -0
  802. package/dist/utils/types.js.map +1 -0
  803. package/package.json +142 -0
@@ -0,0 +1,766 @@
1
+ /**
2
+ * Router - Route-based navigation for TUI applications
3
+ *
4
+ * Provides URL-like routing with parameters, nested routes, navigation guards,
5
+ * and history management. Integrates with the Screen Manager for transitions.
6
+ */
7
+ import { createSignal } from '../primitives/signal.js';
8
+ import { EventEmitter } from './events.js';
9
+ // =============================================================================
10
+ // Path Utilities
11
+ // =============================================================================
12
+ /**
13
+ * Parse path pattern into segments
14
+ */
15
+ export function parsePathPattern(pattern) {
16
+ const segments = [];
17
+ const parts = pattern.split('/').filter(Boolean);
18
+ for (const part of parts) {
19
+ if (part.startsWith(':')) {
20
+ // Parameter segment
21
+ const name = part.slice(1);
22
+ const isOptional = name.endsWith('?');
23
+ segments.push({
24
+ type: 'param',
25
+ name: isOptional ? name.slice(0, -1) : name,
26
+ optional: isOptional,
27
+ });
28
+ }
29
+ else if (part === '*') {
30
+ // Wildcard segment
31
+ segments.push({ type: 'wildcard' });
32
+ }
33
+ else {
34
+ // Static segment
35
+ segments.push({ type: 'static', value: part });
36
+ }
37
+ }
38
+ return segments;
39
+ }
40
+ /**
41
+ * Match a path against a pattern
42
+ */
43
+ export function matchPath(path, pattern) {
44
+ const pathParts = path.split('/').filter(Boolean);
45
+ const segments = parsePathPattern(pattern);
46
+ const params = {};
47
+ let pathIndex = 0;
48
+ for (let i = 0; i < segments.length; i++) {
49
+ const segment = segments[i];
50
+ const pathPart = pathParts[pathIndex];
51
+ if (segment.type === 'static') {
52
+ if (pathPart !== segment.value) {
53
+ return { matched: false, params: {} };
54
+ }
55
+ pathIndex++;
56
+ }
57
+ else if (segment.type === 'param') {
58
+ if (pathPart === undefined) {
59
+ if (!segment.optional) {
60
+ return { matched: false, params: {} };
61
+ }
62
+ }
63
+ else {
64
+ params[segment.name] = pathPart;
65
+ pathIndex++;
66
+ }
67
+ }
68
+ else if (segment.type === 'wildcard') {
69
+ // Consume all remaining path parts
70
+ params['*'] = pathParts.slice(pathIndex).join('/');
71
+ pathIndex = pathParts.length;
72
+ }
73
+ }
74
+ // Check if we consumed all path parts
75
+ if (pathIndex !== pathParts.length) {
76
+ return { matched: false, params: {} };
77
+ }
78
+ return { matched: true, params };
79
+ }
80
+ /**
81
+ * Build a path from pattern and params
82
+ */
83
+ export function buildPath(pattern, params = {}) {
84
+ const segments = parsePathPattern(pattern);
85
+ const parts = [];
86
+ for (const segment of segments) {
87
+ if (segment.type === 'static') {
88
+ parts.push(segment.value);
89
+ }
90
+ else if (segment.type === 'param') {
91
+ const value = params[segment.name];
92
+ if (value !== undefined) {
93
+ parts.push(value);
94
+ }
95
+ else if (!segment.optional) {
96
+ throw new Error(`Missing required param: ${segment.name}`);
97
+ }
98
+ }
99
+ else if (segment.type === 'wildcard') {
100
+ const value = params['*'];
101
+ if (value) {
102
+ parts.push(value);
103
+ }
104
+ }
105
+ }
106
+ return '/' + parts.join('/');
107
+ }
108
+ /**
109
+ * Parse query string into object
110
+ */
111
+ export function parseQuery(queryString) {
112
+ const query = {};
113
+ const params = new URLSearchParams(queryString);
114
+ for (const [key, value] of params.entries()) {
115
+ const existing = query[key];
116
+ if (existing !== undefined) {
117
+ if (Array.isArray(existing)) {
118
+ existing.push(value);
119
+ }
120
+ else {
121
+ query[key] = [existing, value];
122
+ }
123
+ }
124
+ else {
125
+ query[key] = value;
126
+ }
127
+ }
128
+ return query;
129
+ }
130
+ /**
131
+ * Build query string from object
132
+ */
133
+ export function buildQuery(query) {
134
+ const params = new URLSearchParams();
135
+ for (const [key, value] of Object.entries(query)) {
136
+ if (Array.isArray(value)) {
137
+ for (const v of value) {
138
+ params.append(key, v);
139
+ }
140
+ }
141
+ else {
142
+ params.set(key, value);
143
+ }
144
+ }
145
+ const str = params.toString();
146
+ return str ? `?${str}` : '';
147
+ }
148
+ /**
149
+ * Parse a full path into components
150
+ */
151
+ export function parsePath(fullPath) {
152
+ let path = fullPath;
153
+ let hash = '';
154
+ let queryString = '';
155
+ // Extract hash
156
+ const hashIndex = path.indexOf('#');
157
+ if (hashIndex !== -1) {
158
+ hash = path.slice(hashIndex + 1);
159
+ path = path.slice(0, hashIndex);
160
+ }
161
+ // Extract query
162
+ const queryIndex = path.indexOf('?');
163
+ if (queryIndex !== -1) {
164
+ queryString = path.slice(queryIndex + 1);
165
+ path = path.slice(0, queryIndex);
166
+ }
167
+ return {
168
+ path: path || '/',
169
+ query: parseQuery(queryString),
170
+ hash,
171
+ };
172
+ }
173
+ /**
174
+ * Normalize path (ensure leading slash, remove trailing)
175
+ */
176
+ export function normalizePath(path) {
177
+ path = path.trim();
178
+ if (!path.startsWith('/')) {
179
+ path = '/' + path;
180
+ }
181
+ if (path.length > 1 && path.endsWith('/')) {
182
+ path = path.slice(0, -1);
183
+ }
184
+ return path;
185
+ }
186
+ // =============================================================================
187
+ // Router Class
188
+ // =============================================================================
189
+ /**
190
+ * Router - Manages route-based navigation
191
+ *
192
+ * @example
193
+ * ```typescript
194
+ * const router = createRouter({
195
+ * routes: [
196
+ * { path: '/', component: HomeScreen },
197
+ * { path: '/users', component: UserList },
198
+ * { path: '/users/:id', component: UserDetail },
199
+ * {
200
+ * path: '/settings',
201
+ * component: Settings,
202
+ * children: [
203
+ * { path: 'profile', component: ProfileSettings },
204
+ * { path: 'account', component: AccountSettings },
205
+ * ],
206
+ * },
207
+ * ],
208
+ * });
209
+ *
210
+ * // Navigate
211
+ * await router.push('/users/123');
212
+ * await router.push({ name: 'user', params: { id: '456' } });
213
+ *
214
+ * // Go back
215
+ * router.back();
216
+ * ```
217
+ */
218
+ export class Router extends EventEmitter {
219
+ routes;
220
+ routesByName;
221
+ beforeEachGuard;
222
+ afterEachHook;
223
+ hashMode;
224
+ _currentRoute = createSignal(null);
225
+ _isNavigating = createSignal(false);
226
+ history = [];
227
+ historyIndex = -1;
228
+ maxHistorySize = 50;
229
+ constructor(options) {
230
+ super();
231
+ this.routes = options.routes;
232
+ this.routesByName = new Map();
233
+ this.beforeEachGuard = options.beforeEach;
234
+ this.afterEachHook = options.afterEach;
235
+ this.hashMode = options.hashMode ?? false;
236
+ // Build name index
237
+ this.indexRoutes(this.routes);
238
+ // Navigate to initial path
239
+ if (options.initialPath) {
240
+ this.replace(options.initialPath);
241
+ }
242
+ }
243
+ /**
244
+ * Index routes by name for fast lookup
245
+ */
246
+ indexRoutes(routes, parentPath = '') {
247
+ for (const route of routes) {
248
+ const fullPath = parentPath + route.path;
249
+ if (route.name) {
250
+ this.routesByName.set(route.name, { ...route, path: fullPath });
251
+ }
252
+ if (route.children) {
253
+ this.indexRoutes(route.children, fullPath);
254
+ }
255
+ }
256
+ }
257
+ /**
258
+ * Get current route
259
+ */
260
+ get currentRoute() {
261
+ return this._currentRoute[0]();
262
+ }
263
+ /**
264
+ * Get current route signal
265
+ */
266
+ get route() {
267
+ return this._currentRoute[0];
268
+ }
269
+ /**
270
+ * Check if navigation is in progress
271
+ */
272
+ get isNavigating() {
273
+ return this._isNavigating[0]();
274
+ }
275
+ /**
276
+ * Check if can go back in history
277
+ */
278
+ get canGoBack() {
279
+ return this.historyIndex > 0;
280
+ }
281
+ /**
282
+ * Check if can go forward in history
283
+ */
284
+ get canGoForward() {
285
+ return this.historyIndex < this.history.length - 1;
286
+ }
287
+ /**
288
+ * Get history stack
289
+ */
290
+ getHistory() {
291
+ return [...this.history];
292
+ }
293
+ /**
294
+ * Get current history index
295
+ */
296
+ getHistoryIndex() {
297
+ return this.historyIndex;
298
+ }
299
+ /**
300
+ * Find matching routes for a path
301
+ */
302
+ findRoutes(path, routes = this.routes, parentPath = '') {
303
+ for (const route of routes) {
304
+ const fullPattern = parentPath + route.path;
305
+ const { matched, params } = matchPath(path, fullPattern);
306
+ if (matched) {
307
+ const matchedRoute = {
308
+ route,
309
+ params,
310
+ path: fullPattern,
311
+ };
312
+ // If route has children, try to match child routes
313
+ if (route.children && route.children.length > 0) {
314
+ // Try to match against children
315
+ const childMatches = this.findRoutes(path, route.children, fullPattern);
316
+ if (childMatches.length > 0) {
317
+ return [matchedRoute, ...childMatches];
318
+ }
319
+ }
320
+ return [matchedRoute];
321
+ }
322
+ // Check if path starts with this pattern (for nested routes)
323
+ const segments = parsePathPattern(fullPattern);
324
+ const pathParts = path.split('/').filter(Boolean);
325
+ if (route.children && pathParts.length > segments.length) {
326
+ // Path might match a child route
327
+ const childMatches = this.findRoutes(path, route.children, fullPattern);
328
+ if (childMatches.length > 0) {
329
+ // Build parent params
330
+ let pathIndex = 0;
331
+ const parentParams = {};
332
+ for (const segment of segments) {
333
+ if (segment.type === 'param' && pathParts[pathIndex]) {
334
+ parentParams[segment.name] = pathParts[pathIndex];
335
+ }
336
+ if (segment.type !== 'param' || !segment.optional || pathParts[pathIndex]) {
337
+ pathIndex++;
338
+ }
339
+ }
340
+ return [
341
+ { route, params: parentParams, path: fullPattern },
342
+ ...childMatches,
343
+ ];
344
+ }
345
+ }
346
+ }
347
+ return [];
348
+ }
349
+ /**
350
+ * Resolve navigation target to location
351
+ */
352
+ resolveTarget(target) {
353
+ if (typeof target === 'string') {
354
+ target = { path: target };
355
+ }
356
+ let path;
357
+ let params = target.params || {};
358
+ if (target.name) {
359
+ const route = this.routesByName.get(target.name);
360
+ if (!route) {
361
+ return null;
362
+ }
363
+ path = buildPath(route.path, params);
364
+ }
365
+ else if (target.path) {
366
+ path = normalizePath(target.path);
367
+ }
368
+ else {
369
+ return null;
370
+ }
371
+ const matched = this.findRoutes(path);
372
+ if (matched.length === 0) {
373
+ return null;
374
+ }
375
+ // Merge all params from matched routes
376
+ const allParams = {};
377
+ for (const m of matched) {
378
+ Object.assign(allParams, m.params);
379
+ }
380
+ Object.assign(allParams, params);
381
+ const query = target.query || {};
382
+ const hash = target.hash || '';
383
+ return {
384
+ path,
385
+ name: target.name,
386
+ params: allParams,
387
+ query,
388
+ hash,
389
+ fullPath: path + buildQuery(query) + (hash ? `#${hash}` : ''),
390
+ matched,
391
+ };
392
+ }
393
+ /**
394
+ * Execute navigation with guards
395
+ */
396
+ async navigate(target, addToHistory) {
397
+ if (this._isNavigating[0]()) {
398
+ return { success: false, error: 'Navigation already in progress' };
399
+ }
400
+ this._isNavigating[1](true);
401
+ try {
402
+ const location = this.resolveTarget(target);
403
+ if (!location) {
404
+ const targetStr = typeof target === 'string' ? target : JSON.stringify(target);
405
+ this.emit('error', { error: `Route not found: ${targetStr}`, target: typeof target === 'string' ? { path: target } : target });
406
+ return { success: false, error: 'Route not found' };
407
+ }
408
+ const from = this._currentRoute[0]();
409
+ // Emit before navigate
410
+ this.emit('beforeNavigate', { from, to: location });
411
+ // Check for redirect
412
+ const lastMatched = location.matched[location.matched.length - 1];
413
+ if (lastMatched?.route.redirect) {
414
+ const redirect = lastMatched.route.redirect;
415
+ this._isNavigating[1](false);
416
+ return this.push(redirect);
417
+ }
418
+ // Run global beforeEach guard
419
+ if (this.beforeEachGuard) {
420
+ const result = await this.beforeEachGuard(location, from);
421
+ if (result === false) {
422
+ return { success: false, error: 'Navigation cancelled by guard' };
423
+ }
424
+ if (result && typeof result === 'object') {
425
+ this._isNavigating[1](false);
426
+ return this.push(result);
427
+ }
428
+ }
429
+ // Run route-specific beforeEnter guards
430
+ for (const matched of location.matched) {
431
+ if (matched.route.beforeEnter) {
432
+ const result = await matched.route.beforeEnter(location, from);
433
+ if (result === false) {
434
+ return { success: false, error: 'Navigation cancelled by route guard' };
435
+ }
436
+ if (result && typeof result === 'object') {
437
+ this._isNavigating[1](false);
438
+ return this.push(result);
439
+ }
440
+ }
441
+ }
442
+ // Update current route
443
+ this._currentRoute[1](location);
444
+ // Update history
445
+ if (addToHistory) {
446
+ // Remove any forward history when navigating
447
+ this.history = this.history.slice(0, this.historyIndex + 1);
448
+ this.history.push({
449
+ location,
450
+ timestamp: Date.now(),
451
+ });
452
+ // Limit history size
453
+ if (this.history.length > this.maxHistorySize) {
454
+ this.history = this.history.slice(-this.maxHistorySize);
455
+ }
456
+ this.historyIndex = this.history.length - 1;
457
+ }
458
+ // Emit navigate event
459
+ this.emit('navigate', { from, to: location });
460
+ // Run afterEach hook
461
+ if (this.afterEachHook) {
462
+ this.afterEachHook(location, from);
463
+ }
464
+ // Emit after navigate
465
+ this.emit('afterNavigate', { from, to: location });
466
+ return { success: true };
467
+ }
468
+ finally {
469
+ this._isNavigating[1](false);
470
+ }
471
+ }
472
+ /**
473
+ * Navigate to a new route (push to history)
474
+ */
475
+ async push(target) {
476
+ return this.navigate(target, true);
477
+ }
478
+ /**
479
+ * Replace current route (no history entry)
480
+ */
481
+ async replace(target) {
482
+ const result = await this.navigate(target, false);
483
+ if (result.success && this.history.length > 0) {
484
+ // Update current history entry
485
+ const location = this._currentRoute[0]();
486
+ this.history[this.historyIndex] = {
487
+ location,
488
+ timestamp: Date.now(),
489
+ };
490
+ }
491
+ else if (result.success) {
492
+ // First navigation
493
+ const location = this._currentRoute[0]();
494
+ this.history.push({
495
+ location,
496
+ timestamp: Date.now(),
497
+ });
498
+ this.historyIndex = 0;
499
+ }
500
+ return result;
501
+ }
502
+ /**
503
+ * Go back in history
504
+ */
505
+ async back() {
506
+ if (!this.canGoBack) {
507
+ return { success: false, error: 'Cannot go back' };
508
+ }
509
+ this.historyIndex--;
510
+ const entry = this.history[this.historyIndex];
511
+ const from = this._currentRoute[0]();
512
+ this._currentRoute[1](entry.location);
513
+ this.emit('navigate', { from, to: entry.location });
514
+ return { success: true };
515
+ }
516
+ /**
517
+ * Go forward in history
518
+ */
519
+ async forward() {
520
+ if (!this.canGoForward) {
521
+ return { success: false, error: 'Cannot go forward' };
522
+ }
523
+ this.historyIndex++;
524
+ const entry = this.history[this.historyIndex];
525
+ const from = this._currentRoute[0]();
526
+ this._currentRoute[1](entry.location);
527
+ this.emit('navigate', { from, to: entry.location });
528
+ return { success: true };
529
+ }
530
+ /**
531
+ * Go to specific history index
532
+ */
533
+ async go(delta) {
534
+ const targetIndex = this.historyIndex + delta;
535
+ if (targetIndex < 0 || targetIndex >= this.history.length) {
536
+ return { success: false, error: 'Invalid history index' };
537
+ }
538
+ this.historyIndex = targetIndex;
539
+ const entry = this.history[this.historyIndex];
540
+ const from = this._currentRoute[0]();
541
+ this._currentRoute[1](entry.location);
542
+ this.emit('navigate', { from, to: entry.location });
543
+ return { success: true };
544
+ }
545
+ /**
546
+ * Get all route definitions
547
+ */
548
+ getRoutes() {
549
+ return [...this.routes];
550
+ }
551
+ /**
552
+ * Add a route dynamically
553
+ */
554
+ addRoute(route, parentName) {
555
+ if (parentName) {
556
+ const parent = this.routesByName.get(parentName);
557
+ if (parent) {
558
+ if (!parent.children) {
559
+ parent.children = [];
560
+ }
561
+ parent.children.push(route);
562
+ if (route.name) {
563
+ this.routesByName.set(route.name, {
564
+ ...route,
565
+ path: parent.path + route.path,
566
+ });
567
+ }
568
+ }
569
+ }
570
+ else {
571
+ this.routes.push(route);
572
+ if (route.name) {
573
+ this.routesByName.set(route.name, route);
574
+ }
575
+ }
576
+ }
577
+ /**
578
+ * Remove a route by name
579
+ */
580
+ removeRoute(name) {
581
+ if (!this.routesByName.has(name))
582
+ return false;
583
+ this.routesByName.delete(name);
584
+ // Remove from routes array by name
585
+ const removeByName = (routes) => {
586
+ for (let i = 0; i < routes.length; i++) {
587
+ if (routes[i].name === name) {
588
+ routes.splice(i, 1);
589
+ return true;
590
+ }
591
+ if (routes[i].children && removeByName(routes[i].children)) {
592
+ return true;
593
+ }
594
+ }
595
+ return false;
596
+ };
597
+ return removeByName(this.routes);
598
+ }
599
+ /**
600
+ * Check if a route with name exists
601
+ */
602
+ hasRoute(name) {
603
+ return this.routesByName.has(name);
604
+ }
605
+ /**
606
+ * Resolve a route by name
607
+ */
608
+ resolve(target) {
609
+ return this.resolveTarget(target);
610
+ }
611
+ }
612
+ // =============================================================================
613
+ // Factory Function
614
+ // =============================================================================
615
+ /**
616
+ * Create a new router instance
617
+ */
618
+ export function createRouter(options) {
619
+ return new Router(options);
620
+ }
621
+ // =============================================================================
622
+ // Global Router Instance
623
+ // =============================================================================
624
+ let globalRouter = null;
625
+ /**
626
+ * Get the global router instance
627
+ */
628
+ export function getRouter() {
629
+ return globalRouter;
630
+ }
631
+ /**
632
+ * Set the global router instance
633
+ */
634
+ export function setRouter(router) {
635
+ globalRouter = router;
636
+ }
637
+ /**
638
+ * Reset the global router
639
+ */
640
+ export function resetRouter() {
641
+ globalRouter = null;
642
+ }
643
+ // =============================================================================
644
+ // Hooks
645
+ // =============================================================================
646
+ /**
647
+ * useRoute - Get current route information
648
+ *
649
+ * @example
650
+ * ```typescript
651
+ * function UserProfile() {
652
+ * const route = useRoute();
653
+ *
654
+ * return Box({},
655
+ * Text({}, `User ID: ${route().params.id}`),
656
+ * Text({}, `Query: ${JSON.stringify(route().query)}`)
657
+ * );
658
+ * }
659
+ * ```
660
+ */
661
+ export function useRoute(router) {
662
+ const r = router ?? globalRouter;
663
+ if (!r) {
664
+ throw new Error('No router provided and no global router set');
665
+ }
666
+ return r.route;
667
+ }
668
+ /**
669
+ * useNavigate - Get navigation functions
670
+ *
671
+ * @example
672
+ * ```typescript
673
+ * function NavButtons() {
674
+ * const { push, back, canGoBack } = useNavigate();
675
+ *
676
+ * return Box({},
677
+ * Button({ onPress: () => back(), disabled: !canGoBack() }, 'Back'),
678
+ * Button({ onPress: () => push('/settings') }, 'Settings')
679
+ * );
680
+ * }
681
+ * ```
682
+ */
683
+ export function useNavigate(router) {
684
+ const r = router ?? globalRouter;
685
+ if (!r) {
686
+ throw new Error('No router provided and no global router set');
687
+ }
688
+ return {
689
+ push: (target) => r.push(target),
690
+ replace: (target) => r.replace(target),
691
+ back: () => r.back(),
692
+ forward: () => r.forward(),
693
+ go: (delta) => r.go(delta),
694
+ canGoBack: () => r.canGoBack,
695
+ canGoForward: () => r.canGoForward,
696
+ };
697
+ }
698
+ /**
699
+ * useParams - Get current route parameters
700
+ */
701
+ export function useParams(router) {
702
+ const route = useRoute(router);
703
+ return () => route()?.params ?? {};
704
+ }
705
+ /**
706
+ * useQuery - Get current query parameters
707
+ */
708
+ export function useQuery(router) {
709
+ const route = useRoute(router);
710
+ return () => route()?.query ?? {};
711
+ }
712
+ /**
713
+ * useRouteMatch - Check if current route matches pattern
714
+ */
715
+ export function useRouteMatch(pattern, router) {
716
+ const route = useRoute(router);
717
+ return () => {
718
+ const current = route();
719
+ if (!current) {
720
+ return { matched: false, params: {} };
721
+ }
722
+ return matchPath(current.path, pattern);
723
+ };
724
+ }
725
+ // =============================================================================
726
+ // Helper Functions
727
+ // =============================================================================
728
+ /**
729
+ * Create a route guard that requires authentication
730
+ */
731
+ export function createAuthGuard(isAuthenticated, loginPath = '/login') {
732
+ return (to) => {
733
+ if (!isAuthenticated()) {
734
+ return { path: loginPath, query: { redirect: to.fullPath } };
735
+ }
736
+ return true;
737
+ };
738
+ }
739
+ /**
740
+ * Create a route guard that checks role/permission
741
+ */
742
+ export function createRoleGuard(hasRole, forbiddenPath = '/forbidden') {
743
+ return (requiredRole) => {
744
+ return (_to) => {
745
+ if (!hasRole(requiredRole)) {
746
+ return { path: forbiddenPath };
747
+ }
748
+ return true;
749
+ };
750
+ };
751
+ }
752
+ /**
753
+ * Combine multiple guards into one
754
+ */
755
+ export function combineGuards(...guards) {
756
+ return async (to, from) => {
757
+ for (const guard of guards) {
758
+ const result = await guard(to, from);
759
+ if (result === false || (result && typeof result === 'object')) {
760
+ return result;
761
+ }
762
+ }
763
+ return true;
764
+ };
765
+ }
766
+ //# sourceMappingURL=router.js.map