@omerdlw/base-framework 3.4.0 → 4.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (840) hide show
  1. package/README.md +56 -72
  2. package/dist/ambient/index.js +9 -10
  3. package/dist/ambient/server/index.js +3 -3
  4. package/dist/ambient/server/index.js.map +1 -1
  5. package/dist/ambient/worker/index.js +7 -4
  6. package/dist/ambient/worker/index.js.map +1 -1
  7. package/dist/background/index.js +8 -9
  8. package/dist/{chunk-KOYTJW5E.js → chunk-3FSDBJ7V.js} +7 -7
  9. package/dist/chunk-3FSDBJ7V.js.map +1 -0
  10. package/dist/{chunk-CRKJAACG.js → chunk-4QQ3QVY7.js} +10 -10
  11. package/dist/{chunk-CRKJAACG.js.map → chunk-4QQ3QVY7.js.map} +1 -1
  12. package/dist/{chunk-UQLTP3XB.js → chunk-5TQSH6KE.js} +143 -144
  13. package/dist/chunk-5TQSH6KE.js.map +1 -0
  14. package/dist/{chunk-HFR6YROB.js → chunk-6P3F4JU3.js} +1160 -1172
  15. package/dist/chunk-6P3F4JU3.js.map +1 -0
  16. package/dist/chunk-AKPH5CEJ.js +357 -0
  17. package/dist/chunk-AKPH5CEJ.js.map +1 -0
  18. package/dist/{chunk-QGPRTUED.js → chunk-AWLK2I56.js} +35 -39
  19. package/dist/chunk-AWLK2I56.js.map +1 -0
  20. package/dist/{chunk-ZXRE2KZO.js → chunk-C3SEBNF5.js} +11 -15
  21. package/dist/chunk-C3SEBNF5.js.map +1 -0
  22. package/dist/{chunk-R4K6VAOK.js → chunk-C527JOJQ.js} +11 -18
  23. package/dist/chunk-C527JOJQ.js.map +1 -0
  24. package/dist/{chunk-VNSMNGWP.js → chunk-DMQKXBWO.js} +5 -5
  25. package/dist/{chunk-VNSMNGWP.js.map → chunk-DMQKXBWO.js.map} +1 -1
  26. package/dist/{chunk-IH3STE7W.js → chunk-ED32WLAD.js} +1168 -1215
  27. package/dist/chunk-ED32WLAD.js.map +1 -0
  28. package/dist/{chunk-67MOKJFZ.js → chunk-EXB7VFD3.js} +16 -16
  29. package/dist/chunk-EXB7VFD3.js.map +1 -0
  30. package/dist/chunk-FG2AKFXP.js +108 -0
  31. package/dist/chunk-FG2AKFXP.js.map +1 -0
  32. package/dist/chunk-GA5SZ6E2.js +17 -0
  33. package/dist/{chunk-AZ2ZDFNP.js.map → chunk-GA5SZ6E2.js.map} +1 -1
  34. package/dist/chunk-GG2ILNK2.js +44 -0
  35. package/dist/chunk-GG2ILNK2.js.map +1 -0
  36. package/dist/{chunk-6IP6YFQX.js → chunk-JA75E4BG.js} +21 -31
  37. package/dist/chunk-JA75E4BG.js.map +1 -0
  38. package/dist/{chunk-WQTMOUCA.js → chunk-JWUKAZ3A.js} +45 -67
  39. package/dist/chunk-JWUKAZ3A.js.map +1 -0
  40. package/dist/{chunk-LKYW4LH6.js → chunk-QZA5AIT6.js} +37 -47
  41. package/dist/chunk-QZA5AIT6.js.map +1 -0
  42. package/dist/{chunk-D222OCTV.js → chunk-S67HGKJ2.js} +49 -55
  43. package/dist/chunk-S67HGKJ2.js.map +1 -0
  44. package/dist/chunk-T53WFIZN.js +29 -0
  45. package/dist/chunk-T53WFIZN.js.map +1 -0
  46. package/dist/{chunk-RDYYP36I.js → chunk-TMKA5ZHO.js} +7 -6
  47. package/dist/chunk-TMKA5ZHO.js.map +1 -0
  48. package/dist/{chunk-XGAYTDSI.js → chunk-UWX7GCNX.js} +23 -26
  49. package/dist/chunk-UWX7GCNX.js.map +1 -0
  50. package/dist/{chunk-QRXDXAQI.js → chunk-WVED7PDH.js} +161 -165
  51. package/dist/chunk-WVED7PDH.js.map +1 -0
  52. package/dist/{chunk-FFJWJ4OB.js → chunk-XIFQMK2Z.js} +12317 -12355
  53. package/dist/chunk-XIFQMK2Z.js.map +1 -0
  54. package/dist/{chunk-BMFHS3GV.js → chunk-YHWA7FXX.js} +22 -12
  55. package/dist/chunk-YHWA7FXX.js.map +1 -0
  56. package/dist/{chunk-YZS2B6YE.js → chunk-YKHAFHB7.js} +9 -12
  57. package/dist/chunk-YKHAFHB7.js.map +1 -0
  58. package/dist/{chunk-GKAJ4EM2.js → chunk-ZQI4ZCVU.js} +83 -83
  59. package/dist/chunk-ZQI4ZCVU.js.map +1 -0
  60. package/dist/context-menu/index.js +13 -15
  61. package/dist/controls/index.js +7 -6
  62. package/dist/core/error/boundary.d.ts.map +1 -1
  63. package/dist/core/error/constants.d.ts +9 -0
  64. package/dist/core/error/constants.d.ts.map +1 -1
  65. package/dist/core/error/index.d.ts +2 -3
  66. package/dist/core/error/index.d.ts.map +1 -1
  67. package/dist/core/error/listener.d.ts.map +1 -1
  68. package/dist/core/error/reporter.d.ts +7 -6
  69. package/dist/core/error/reporter.d.ts.map +1 -1
  70. package/dist/core/error/utils.d.ts.map +1 -1
  71. package/dist/core/kernel/constants.d.ts +1 -1
  72. package/dist/core/kernel/constants.d.ts.map +1 -1
  73. package/dist/core/kernel/{compose.d.ts → host/compose.d.ts} +0 -4
  74. package/dist/core/kernel/host/compose.d.ts.map +1 -0
  75. package/dist/core/kernel/{installed.d.ts → host/installed.d.ts} +1 -1
  76. package/dist/core/kernel/host/installed.d.ts.map +1 -0
  77. package/dist/core/kernel/{module.d.ts → host/module.d.ts} +2 -5
  78. package/dist/core/kernel/host/module.d.ts.map +1 -0
  79. package/dist/core/kernel/{adapters.d.ts → host/registration.d.ts} +2 -2
  80. package/dist/core/kernel/host/registration.d.ts.map +1 -0
  81. package/dist/core/kernel/index.d.ts +12 -12
  82. package/dist/core/kernel/index.d.ts.map +1 -1
  83. package/dist/core/kernel/{page-controller.d.ts → page.d.ts} +2 -2
  84. package/dist/core/kernel/page.d.ts.map +1 -0
  85. package/dist/core/kernel/{handlers.d.ts → registry/apply.d.ts} +2 -2
  86. package/dist/core/kernel/registry/apply.d.ts.map +1 -0
  87. package/dist/core/kernel/{hooks.d.ts → registry/hooks.d.ts} +1 -1
  88. package/dist/core/kernel/registry/hooks.d.ts.map +1 -0
  89. package/dist/core/kernel/{operations.d.ts → registry/operations.d.ts} +2 -2
  90. package/dist/core/kernel/registry/operations.d.ts.map +1 -0
  91. package/dist/core/kernel/{provider.d.ts → registry/provider.d.ts} +2 -2
  92. package/dist/core/kernel/registry/provider.d.ts.map +1 -0
  93. package/dist/core/kernel/{operations-records.d.ts → registry/records.d.ts} +2 -2
  94. package/dist/core/kernel/registry/records.d.ts.map +1 -0
  95. package/dist/core/kernel/registry/registration.d.ts +13 -0
  96. package/dist/core/kernel/registry/registration.d.ts.map +1 -0
  97. package/dist/core/kernel/{schema.d.ts → registry/schema.d.ts} +1 -1
  98. package/dist/core/kernel/registry/schema.d.ts.map +1 -0
  99. package/dist/core/kernel/{store-snapshots.d.ts → registry/snapshots.d.ts} +3 -3
  100. package/dist/core/kernel/registry/snapshots.d.ts.map +1 -0
  101. package/dist/core/kernel/{stabilize.d.ts → registry/stabilize.d.ts} +1 -1
  102. package/dist/core/kernel/registry/stabilize.d.ts.map +1 -0
  103. package/dist/core/kernel/{store.d.ts → registry/store.d.ts} +2 -2
  104. package/dist/core/kernel/registry/store.d.ts.map +1 -0
  105. package/dist/core/kernel/{store-subscriptions.d.ts → registry/subscriptions.d.ts} +2 -6
  106. package/dist/core/kernel/registry/subscriptions.d.ts.map +1 -0
  107. package/dist/core/kernel/{runtime.d.ts → registry/transaction.d.ts} +2 -2
  108. package/dist/core/kernel/registry/transaction.d.ts.map +1 -0
  109. package/dist/core/kernel/{types-modules.d.ts → types/modules.d.ts} +4 -4
  110. package/dist/core/kernel/types/modules.d.ts.map +1 -0
  111. package/dist/core/kernel/{types-page.d.ts → types/page.d.ts} +3 -3
  112. package/dist/core/kernel/types/page.d.ts.map +1 -0
  113. package/dist/core/kernel/{types.d.ts → types/registry.d.ts} +4 -4
  114. package/dist/core/kernel/types/registry.d.ts.map +1 -0
  115. package/dist/core/kernel/{types-store.d.ts → types/store.d.ts} +3 -3
  116. package/dist/core/kernel/types/store.d.ts.map +1 -0
  117. package/dist/core/kernel/utils.d.ts +1 -1
  118. package/dist/core/kernel/utils.d.ts.map +1 -1
  119. package/dist/core/navigation/{navigator-holds.d.ts → holds.d.ts} +2 -1
  120. package/dist/core/navigation/holds.d.ts.map +1 -0
  121. package/dist/core/navigation/navigator.d.ts.map +1 -1
  122. package/dist/core/navigation/{navigator-patience.d.ts → patience.d.ts} +1 -1
  123. package/dist/core/navigation/patience.d.ts.map +1 -0
  124. package/dist/core/navigation/{navigator-payload.d.ts → payload.d.ts} +2 -1
  125. package/dist/core/navigation/payload.d.ts.map +1 -0
  126. package/dist/core/navigation/{navigator-prefetch.d.ts → prefetch.d.ts} +2 -1
  127. package/dist/core/navigation/prefetch.d.ts.map +1 -0
  128. package/dist/core/navigation/settings.d.ts.map +1 -1
  129. package/dist/core/navigation/state.d.ts.map +1 -1
  130. package/dist/core/navigation/utils.d.ts +3 -0
  131. package/dist/core/navigation/utils.d.ts.map +1 -1
  132. package/dist/core/provider/index.d.ts +4 -9
  133. package/dist/core/provider/index.d.ts.map +1 -1
  134. package/dist/dock/index.js +12 -14
  135. package/dist/error/index.js +4 -7
  136. package/dist/events/index.js +24 -20
  137. package/dist/events/index.js.map +1 -1
  138. package/dist/foundation/events/index.d.ts.map +1 -1
  139. package/dist/foundation/recipes/index.d.ts +0 -7
  140. package/dist/foundation/recipes/index.d.ts.map +1 -1
  141. package/dist/foundation/recipes/recipe.d.ts.map +1 -1
  142. package/dist/foundation/result/index.d.ts.map +1 -1
  143. package/dist/foundation/utils/collections.d.ts +11 -0
  144. package/dist/foundation/utils/collections.d.ts.map +1 -0
  145. package/dist/foundation/utils/dom.d.ts.map +1 -1
  146. package/dist/foundation/utils/report.d.ts.map +1 -1
  147. package/dist/foundation/utils/scheduler.d.ts.map +1 -1
  148. package/dist/foundation/utils/store.d.ts.map +1 -1
  149. package/dist/foundation/utils/string.d.ts.map +1 -1
  150. package/dist/foundation/utils/tempo.d.ts.map +1 -1
  151. package/dist/foundation/utils/timing.d.ts.map +1 -1
  152. package/dist/foundation/utils/user-message.d.ts.map +1 -1
  153. package/dist/hooks/index.js +3 -3
  154. package/dist/index.js +22 -24
  155. package/dist/kernel/index.js +4 -4
  156. package/dist/loading/index.js +6 -8
  157. package/dist/media/index.js +5 -5
  158. package/dist/modal/index.js +153 -166
  159. package/dist/modal/index.js.map +1 -1
  160. package/dist/modules/ambient/{analyze.d.ts → analysis/analyze.d.ts} +3 -3
  161. package/dist/modules/ambient/analysis/analyze.d.ts.map +1 -0
  162. package/dist/modules/ambient/{analyze-bounds.d.ts → analysis/bounds.d.ts} +2 -2
  163. package/dist/modules/ambient/analysis/bounds.d.ts.map +1 -0
  164. package/dist/modules/ambient/{analyze-clusters.d.ts → analysis/clusters.d.ts} +3 -3
  165. package/dist/modules/ambient/analysis/clusters.d.ts.map +1 -0
  166. package/dist/modules/ambient/{analyze-ground.d.ts → analysis/ground.d.ts} +3 -3
  167. package/dist/modules/ambient/analysis/ground.d.ts.map +1 -0
  168. package/dist/modules/ambient/{analyze-measures.d.ts → analysis/measures.d.ts} +2 -2
  169. package/dist/modules/ambient/analysis/measures.d.ts.map +1 -0
  170. package/dist/modules/ambient/{oklab.d.ts → analysis/oklab.d.ts} +1 -3
  171. package/dist/modules/ambient/analysis/oklab.d.ts.map +1 -0
  172. package/dist/modules/ambient/analysis/quantize.d.ts.map +1 -0
  173. package/dist/modules/ambient/{analyze-swatches.d.ts → analysis/swatches.d.ts} +3 -3
  174. package/dist/modules/ambient/analysis/swatches.d.ts.map +1 -0
  175. package/dist/modules/ambient/hooks.d.ts +0 -1
  176. package/dist/modules/ambient/hooks.d.ts.map +1 -1
  177. package/dist/modules/ambient/index.d.ts +2 -2
  178. package/dist/modules/ambient/index.d.ts.map +1 -1
  179. package/dist/modules/ambient/module.d.ts +0 -3
  180. package/dist/modules/ambient/module.d.ts.map +1 -1
  181. package/dist/modules/ambient/pipeline.d.ts +6 -5
  182. package/dist/modules/ambient/pipeline.d.ts.map +1 -1
  183. package/dist/modules/ambient/server/index.d.ts +2 -2
  184. package/dist/modules/ambient/server/index.d.ts.map +1 -1
  185. package/dist/modules/ambient/settings.d.ts +0 -2
  186. package/dist/modules/ambient/settings.d.ts.map +1 -1
  187. package/dist/modules/ambient/worker/index.d.ts.map +1 -1
  188. package/dist/modules/background/constants.d.ts +3 -1
  189. package/dist/modules/background/constants.d.ts.map +1 -1
  190. package/dist/modules/background/context.d.ts +1 -1
  191. package/dist/modules/background/context.d.ts.map +1 -1
  192. package/dist/modules/background/hooks.d.ts +929 -0
  193. package/dist/modules/background/hooks.d.ts.map +1 -1
  194. package/dist/modules/background/index.d.ts +6 -6
  195. package/dist/modules/background/index.d.ts.map +1 -1
  196. package/dist/modules/background/module.d.ts +1 -1
  197. package/dist/modules/background/module.d.ts.map +1 -1
  198. package/dist/modules/background/{hooks/use-native-video-model.d.ts → native-video.d.ts} +4 -8
  199. package/dist/modules/background/native-video.d.ts.map +1 -0
  200. package/dist/modules/background/overlay.d.ts.map +1 -0
  201. package/dist/modules/background/playback.d.ts.map +1 -0
  202. package/dist/modules/background/{model/state.d.ts → state.d.ts} +11 -1
  203. package/dist/modules/background/state.d.ts.map +1 -0
  204. package/dist/modules/background/{model/visual.d.ts → visual.d.ts} +43 -6
  205. package/dist/modules/background/visual.d.ts.map +1 -0
  206. package/dist/modules/background/youtube/audio.d.ts.map +1 -0
  207. package/dist/modules/background/youtube/iframe.d.ts +92 -0
  208. package/dist/modules/background/youtube/iframe.d.ts.map +1 -0
  209. package/dist/modules/background/youtube/{lib/parse.d.ts → parse.d.ts} +1 -1
  210. package/dist/modules/background/youtube/parse.d.ts.map +1 -0
  211. package/dist/modules/background/youtube/{components/player.d.ts → player.d.ts} +1 -1
  212. package/dist/modules/background/youtube/player.d.ts.map +1 -0
  213. package/dist/modules/background/youtube/{lib/timing.d.ts → timing.d.ts} +0 -2
  214. package/dist/modules/background/youtube/timing.d.ts.map +1 -0
  215. package/dist/modules/background/youtube/use-iframe-player.d.ts +37 -0
  216. package/dist/modules/background/youtube/use-iframe-player.d.ts.map +1 -0
  217. package/dist/modules/background/youtube/{hooks/use-youtube-background-player-model.d.ts → use-player.d.ts} +2 -2
  218. package/dist/modules/background/youtube/use-player.d.ts.map +1 -0
  219. package/dist/modules/background/youtube/{hooks/use-youtube-video-sync.d.ts → use-video-sync.d.ts} +8 -4
  220. package/dist/modules/background/youtube/use-video-sync.d.ts.map +1 -0
  221. package/dist/modules/background/youtube/{lib/video-events.d.ts → video-events.d.ts} +8 -8
  222. package/dist/modules/background/youtube/video-events.d.ts.map +1 -0
  223. package/dist/modules/context-menu/dom.d.ts.map +1 -1
  224. package/dist/modules/context-menu/items.d.ts.map +1 -1
  225. package/dist/modules/context-menu/overlay.d.ts +3 -10
  226. package/dist/modules/context-menu/overlay.d.ts.map +1 -1
  227. package/dist/modules/context-menu/resolver.d.ts.map +1 -1
  228. package/dist/modules/controls/overlay.d.ts +0 -10
  229. package/dist/modules/controls/overlay.d.ts.map +1 -1
  230. package/dist/modules/dock/{lib → card}/banner.d.ts +3 -16
  231. package/dist/modules/dock/card/banner.d.ts.map +1 -0
  232. package/dist/modules/dock/{components/card-item.d.ts → card/card.d.ts} +5 -2
  233. package/dist/modules/dock/card/card.d.ts.map +1 -0
  234. package/dist/modules/dock/card/compact.d.ts.map +1 -0
  235. package/dist/modules/dock/{components/item-content.d.ts → card/content.d.ts} +1 -1
  236. package/dist/modules/dock/card/content.d.ts.map +1 -0
  237. package/dist/modules/dock/card/header.d.ts +8 -0
  238. package/dist/modules/dock/card/header.d.ts.map +1 -0
  239. package/dist/modules/dock/{components → card}/icon.d.ts +1 -1
  240. package/dist/modules/dock/card/icon.d.ts.map +1 -0
  241. package/dist/modules/dock/{lib/card-item.d.ts → card/model.d.ts} +20 -2
  242. package/dist/modules/dock/card/model.d.ts.map +1 -0
  243. package/dist/modules/dock/{hooks/use-card-item-model.d.ts → card/use-card.d.ts} +44 -43
  244. package/dist/modules/dock/{hooks/use-card-item-model.d.ts.map → card/use-card.d.ts.map} +1 -1
  245. package/dist/modules/dock/commands/command-bar.d.ts.map +1 -0
  246. package/dist/modules/dock/{runtime/commands.d.ts → commands/registry.d.ts} +1 -1
  247. package/dist/modules/dock/commands/registry.d.ts.map +1 -0
  248. package/dist/modules/dock/constants.d.ts +4 -7
  249. package/dist/modules/dock/constants.d.ts.map +1 -1
  250. package/dist/modules/dock/context.d.ts +1 -1
  251. package/dist/modules/dock/context.d.ts.map +1 -1
  252. package/dist/modules/dock/hooks.d.ts +47 -0
  253. package/dist/modules/dock/hooks.d.ts.map +1 -0
  254. package/dist/modules/dock/{hud.d.ts → hud/hud.d.ts} +14 -7
  255. package/dist/modules/dock/hud/hud.d.ts.map +1 -0
  256. package/dist/modules/dock/{model/hud-definition.d.ts → hud/model.d.ts} +7 -1
  257. package/dist/modules/dock/hud/model.d.ts.map +1 -0
  258. package/dist/modules/dock/{components/hud-view.d.ts → hud/view.d.ts} +1 -1
  259. package/dist/modules/dock/hud/view.d.ts.map +1 -0
  260. package/dist/modules/dock/index.d.ts +22 -22
  261. package/dist/modules/dock/index.d.ts.map +1 -1
  262. package/dist/modules/dock/items/attention.d.ts +43 -0
  263. package/dist/modules/dock/items/attention.d.ts.map +1 -0
  264. package/dist/modules/dock/{runtime/model/items.d.ts → items/build.d.ts} +2 -2
  265. package/dist/modules/dock/items/build.d.ts.map +1 -0
  266. package/dist/modules/dock/{runtime → items}/display.d.ts +2 -5
  267. package/dist/modules/dock/items/display.d.ts.map +1 -0
  268. package/dist/modules/dock/items/operations.d.ts +22 -0
  269. package/dist/modules/dock/items/operations.d.ts.map +1 -0
  270. package/dist/modules/dock/{runtime → items}/pipeline.d.ts +1 -1
  271. package/dist/modules/dock/items/pipeline.d.ts.map +1 -0
  272. package/dist/modules/dock/{components/media-action.d.ts → media/controls.d.ts} +5 -2
  273. package/dist/modules/dock/media/controls.d.ts.map +1 -0
  274. package/dist/modules/dock/{lib/media.d.ts → media/model.d.ts} +1 -3
  275. package/dist/modules/dock/media/model.d.ts.map +1 -0
  276. package/dist/modules/dock/{components/media-scrubber.d.ts → media/scrubber.d.ts} +1 -1
  277. package/dist/modules/dock/media/scrubber.d.ts.map +1 -0
  278. package/dist/modules/dock/{hooks/use-media-controls-model.d.ts → media/use-controls.d.ts} +8 -8
  279. package/dist/modules/dock/media/use-controls.d.ts.map +1 -0
  280. package/dist/modules/dock/module.d.ts.map +1 -1
  281. package/dist/modules/dock/motion.d.ts +27 -28
  282. package/dist/modules/dock/motion.d.ts.map +1 -1
  283. package/dist/modules/dock/provider.d.ts.map +1 -1
  284. package/dist/modules/dock/routing/breadcrumbs-card.d.ts.map +1 -0
  285. package/dist/modules/dock/routing/{model/continuity.d.ts → continuity-state.d.ts} +2 -2
  286. package/dist/modules/dock/routing/continuity-state.d.ts.map +1 -0
  287. package/dist/modules/dock/routing/continuity.d.ts +8 -8
  288. package/dist/modules/dock/routing/continuity.d.ts.map +1 -1
  289. package/dist/modules/dock/routing/navigation.d.ts +0 -10
  290. package/dist/modules/dock/routing/navigation.d.ts.map +1 -1
  291. package/dist/modules/dock/routing/paths.d.ts.map +1 -0
  292. package/dist/modules/dock/routing/{model/policy.d.ts → policy.d.ts} +1 -1
  293. package/dist/modules/dock/routing/policy.d.ts.map +1 -0
  294. package/dist/modules/dock/routing/{hooks/use-route-prefetch.d.ts → prefetch.d.ts} +3 -3
  295. package/dist/modules/dock/routing/prefetch.d.ts.map +1 -0
  296. package/dist/modules/dock/routing/route-bridge.d.ts +8 -0
  297. package/dist/modules/dock/routing/route-bridge.d.ts.map +1 -0
  298. package/dist/modules/dock/routing/{model/topology.d.ts → topology.d.ts} +1 -1
  299. package/dist/modules/dock/routing/topology.d.ts.map +1 -0
  300. package/dist/modules/dock/{runtime/model → stack}/cards.d.ts +8 -5
  301. package/dist/modules/dock/stack/cards.d.ts.map +1 -0
  302. package/dist/modules/dock/stack/dock.d.ts.map +1 -0
  303. package/dist/modules/dock/stack/focus.d.ts +22 -0
  304. package/dist/modules/dock/stack/focus.d.ts.map +1 -0
  305. package/dist/modules/dock/{model → stack}/layout.d.ts +8 -2
  306. package/dist/modules/dock/stack/layout.d.ts.map +1 -0
  307. package/dist/modules/dock/{runtime/dock.d.ts → stack/use-dock-model.d.ts} +2 -1
  308. package/dist/modules/dock/stack/use-dock-model.d.ts.map +1 -0
  309. package/dist/modules/dock/{runtime/hooks → stack}/use-dock.d.ts +9 -9
  310. package/dist/modules/dock/stack/use-dock.d.ts.map +1 -0
  311. package/dist/modules/dock/stack/use-height.d.ts +12 -0
  312. package/dist/modules/dock/stack/use-height.d.ts.map +1 -0
  313. package/dist/modules/dock/{components/status-actions.d.ts → status/actions.d.ts} +1 -1
  314. package/dist/modules/dock/status/actions.d.ts.map +1 -0
  315. package/dist/modules/dock/status/events.d.ts +4 -4
  316. package/dist/modules/dock/status/events.d.ts.map +1 -1
  317. package/dist/modules/dock/status/hooks.d.ts.map +1 -1
  318. package/dist/modules/dock/status/model.d.ts +34 -4
  319. package/dist/modules/dock/status/model.d.ts.map +1 -1
  320. package/dist/modules/dock/surface/{model/builder.d.ts → builder.d.ts} +13 -7
  321. package/dist/modules/dock/surface/builder.d.ts.map +1 -0
  322. package/dist/modules/dock/{components/surface/item-content.d.ts → surface/content.d.ts} +2 -2
  323. package/dist/modules/dock/surface/content.d.ts.map +1 -0
  324. package/dist/modules/dock/surface/context.d.ts +12 -3
  325. package/dist/modules/dock/surface/context.d.ts.map +1 -1
  326. package/dist/modules/dock/surface/controls.d.ts +26 -0
  327. package/dist/modules/dock/surface/controls.d.ts.map +1 -0
  328. package/dist/modules/dock/surface/definition.d.ts.map +1 -1
  329. package/dist/modules/dock/{components/surface → surface}/extensions-bar.d.ts +1 -1
  330. package/dist/modules/dock/surface/extensions-bar.d.ts.map +1 -0
  331. package/dist/modules/dock/{components/surface/action.d.ts → surface/extensions.d.ts} +4 -2
  332. package/dist/modules/dock/surface/extensions.d.ts.map +1 -0
  333. package/dist/modules/dock/{components/surface → surface}/header-button.d.ts +3 -3
  334. package/dist/modules/dock/surface/header-button.d.ts.map +1 -0
  335. package/dist/modules/dock/surface/helpers.d.ts +13 -1
  336. package/dist/modules/dock/surface/helpers.d.ts.map +1 -1
  337. package/dist/modules/dock/surface/{model/normalize.d.ts → normalize.d.ts} +1 -1
  338. package/dist/modules/dock/surface/normalize.d.ts.map +1 -0
  339. package/dist/modules/dock/surface/runtime/choreography.d.ts +28 -2
  340. package/dist/modules/dock/surface/runtime/choreography.d.ts.map +1 -1
  341. package/dist/modules/dock/surface/runtime/flows.d.ts +1 -1
  342. package/dist/modules/dock/surface/runtime/flows.d.ts.map +1 -1
  343. package/dist/modules/dock/surface/{machine.d.ts → runtime/machine.d.ts} +1 -1
  344. package/dist/modules/dock/surface/runtime/machine.d.ts.map +1 -0
  345. package/dist/modules/dock/surface/runtime/open.d.ts +1 -2
  346. package/dist/modules/dock/surface/runtime/open.d.ts.map +1 -1
  347. package/dist/modules/dock/surface/{model → runtime}/records.d.ts +1 -1
  348. package/dist/modules/dock/surface/runtime/records.d.ts.map +1 -0
  349. package/dist/modules/dock/surface/{stack.d.ts → runtime/stack.d.ts} +10 -10
  350. package/dist/modules/dock/surface/runtime/stack.d.ts.map +1 -0
  351. package/dist/modules/dock/surface/runtime/steps.d.ts +1 -1
  352. package/dist/modules/dock/surface/runtime/steps.d.ts.map +1 -1
  353. package/dist/modules/dock/surface/{model/transition-state.d.ts → runtime/transition.d.ts} +1 -1
  354. package/dist/modules/dock/surface/runtime/transition.d.ts.map +1 -0
  355. package/dist/modules/dock/surface/runtime/url.d.ts.map +1 -0
  356. package/dist/modules/dock/surface/{hooks/use-surface-shell-model.d.ts → shell.d.ts} +9 -3
  357. package/dist/modules/dock/surface/shell.d.ts.map +1 -0
  358. package/dist/modules/dock/surface/{hooks/use-surface-flow.d.ts → use-flow.d.ts} +2 -2
  359. package/dist/modules/dock/surface/use-flow.d.ts.map +1 -0
  360. package/dist/modules/dock/surface/view-model.d.ts.map +1 -1
  361. package/dist/modules/dock/{lib/styles.d.ts → theme.d.ts} +22 -18
  362. package/dist/modules/dock/theme.d.ts.map +1 -0
  363. package/dist/modules/dock/types/card.d.ts +12 -3
  364. package/dist/modules/dock/types/card.d.ts.map +1 -1
  365. package/dist/modules/dock/types/index.d.ts +1 -1
  366. package/dist/modules/dock/types/index.d.ts.map +1 -1
  367. package/dist/modules/dock/types/surface.d.ts +2 -2
  368. package/dist/modules/dock/types/surface.d.ts.map +1 -1
  369. package/dist/modules/dock/{lib/helpers.d.ts → utils.d.ts} +10 -3
  370. package/dist/modules/dock/utils.d.ts.map +1 -0
  371. package/dist/modules/index.js +20 -22
  372. package/dist/modules/loading/hooks.d.ts +2 -1
  373. package/dist/modules/loading/hooks.d.ts.map +1 -1
  374. package/dist/modules/loading/state.d.ts.map +1 -1
  375. package/dist/modules/media/hooks.d.ts.map +1 -1
  376. package/dist/modules/media/playback.d.ts.map +1 -1
  377. package/dist/modules/modal/constants.d.ts +3 -1
  378. package/dist/modules/modal/constants.d.ts.map +1 -1
  379. package/dist/modules/modal/{components/modal-container.d.ts → container.d.ts} +2 -2
  380. package/dist/modules/modal/container.d.ts.map +1 -0
  381. package/dist/modules/modal/context.d.ts +5 -1
  382. package/dist/modules/modal/context.d.ts.map +1 -1
  383. package/dist/modules/modal/dom.d.ts.map +1 -0
  384. package/dist/modules/modal/hooks.d.ts +3 -2
  385. package/dist/modules/modal/hooks.d.ts.map +1 -1
  386. package/dist/modules/modal/index.d.ts +7 -7
  387. package/dist/modules/modal/index.d.ts.map +1 -1
  388. package/dist/modules/modal/{model/layout.d.ts → layout.d.ts} +1 -1
  389. package/dist/modules/modal/layout.d.ts.map +1 -0
  390. package/dist/modules/modal/module.d.ts +1 -1
  391. package/dist/modules/modal/module.d.ts.map +1 -1
  392. package/dist/modules/modal/overlay.d.ts.map +1 -0
  393. package/dist/modules/modal/state.d.ts +52 -0
  394. package/dist/modules/modal/state.d.ts.map +1 -0
  395. package/dist/modules/navigation/hooks.d.ts.map +1 -1
  396. package/dist/modules/notification/hooks.d.ts.map +1 -1
  397. package/dist/modules/notification/overlay.d.ts +0 -1
  398. package/dist/modules/notification/overlay.d.ts.map +1 -1
  399. package/dist/navigation/index.js +33 -41
  400. package/dist/navigation/index.js.map +1 -1
  401. package/dist/notification/index.js +8 -7
  402. package/dist/overlay-ZCMQVNYT.js +12 -0
  403. package/dist/{overlay-7QLGWHCH.js.map → overlay-ZCMQVNYT.js.map} +1 -1
  404. package/dist/provider/index.js +7 -11
  405. package/dist/react/hooks/index.d.ts +3 -1
  406. package/dist/react/hooks/index.d.ts.map +1 -1
  407. package/dist/react/hooks/use-client-value.d.ts +15 -0
  408. package/dist/react/hooks/use-client-value.d.ts.map +1 -0
  409. package/dist/react/hooks/use-controllable-state.d.ts +8 -1
  410. package/dist/react/hooks/use-controllable-state.d.ts.map +1 -1
  411. package/dist/react/hooks/use-fullscreen-state.d.ts +0 -2
  412. package/dist/react/hooks/use-fullscreen-state.d.ts.map +1 -1
  413. package/dist/react/hooks/use-global-event.d.ts +7 -1
  414. package/dist/react/hooks/use-global-event.d.ts.map +1 -1
  415. package/dist/react/hooks/use-hotkey.d.ts +9 -1
  416. package/dist/react/hooks/use-hotkey.d.ts.map +1 -1
  417. package/dist/react/hooks/use-scroll-lock.d.ts.map +1 -1
  418. package/dist/react/hooks/use-store.d.ts +3 -0
  419. package/dist/react/hooks/use-store.d.ts.map +1 -1
  420. package/dist/react/theme/index.d.ts +7 -2
  421. package/dist/react/theme/index.d.ts.map +1 -1
  422. package/dist/react/theme/parts.d.ts +89 -0
  423. package/dist/react/theme/parts.d.ts.map +1 -0
  424. package/dist/recipes/index.js +6 -121
  425. package/dist/recipes/index.js.map +1 -1
  426. package/dist/result/index.js +12 -15
  427. package/dist/result/index.js.map +1 -1
  428. package/dist/theme/index.js +2 -2
  429. package/dist/utils/index.js +31 -34
  430. package/dist/utils/index.js.map +1 -1
  431. package/docs/README.md +11 -12
  432. package/docs/architecture-and-rules.md +43 -32
  433. package/docs/core-engine.md +11 -13
  434. package/docs/custom-modules.md +1 -1
  435. package/docs/design.md +60 -153
  436. package/docs/getting-started.md +3 -5
  437. package/docs/modules/README.md +16 -16
  438. package/docs/modules/ambient.md +23 -23
  439. package/docs/modules/background.md +24 -19
  440. package/docs/modules/context-menu.md +1 -1
  441. package/docs/modules/dock.md +47 -43
  442. package/docs/modules/error-boundary.md +2 -3
  443. package/docs/modules/kernel.md +28 -30
  444. package/docs/modules/loading.md +1 -1
  445. package/docs/modules/modal.md +17 -16
  446. package/docs/modules/navigation.md +14 -14
  447. package/docs/testing.md +1 -1
  448. package/package.json +1 -8
  449. package/templates/AGENTS.md +4 -3
  450. package/MIGRATION.md +0 -99
  451. package/dist/chunk-67MOKJFZ.js.map +0 -1
  452. package/dist/chunk-6IP6YFQX.js.map +0 -1
  453. package/dist/chunk-7VU2OAJB.js +0 -464
  454. package/dist/chunk-7VU2OAJB.js.map +0 -1
  455. package/dist/chunk-AZ2ZDFNP.js +0 -17
  456. package/dist/chunk-BMFHS3GV.js.map +0 -1
  457. package/dist/chunk-D222OCTV.js.map +0 -1
  458. package/dist/chunk-ESD5EQ5H.js +0 -178
  459. package/dist/chunk-ESD5EQ5H.js.map +0 -1
  460. package/dist/chunk-FFJWJ4OB.js.map +0 -1
  461. package/dist/chunk-GKAJ4EM2.js.map +0 -1
  462. package/dist/chunk-HFR6YROB.js.map +0 -1
  463. package/dist/chunk-IH3STE7W.js.map +0 -1
  464. package/dist/chunk-KOYTJW5E.js.map +0 -1
  465. package/dist/chunk-LKYW4LH6.js.map +0 -1
  466. package/dist/chunk-QGPRTUED.js.map +0 -1
  467. package/dist/chunk-QRXDXAQI.js.map +0 -1
  468. package/dist/chunk-R4K6VAOK.js.map +0 -1
  469. package/dist/chunk-RDYYP36I.js.map +0 -1
  470. package/dist/chunk-RGC2VFQO.js +0 -139
  471. package/dist/chunk-RGC2VFQO.js.map +0 -1
  472. package/dist/chunk-TAWTGCWJ.js +0 -113
  473. package/dist/chunk-TAWTGCWJ.js.map +0 -1
  474. package/dist/chunk-UDJ7ARCH.js +0 -140
  475. package/dist/chunk-UDJ7ARCH.js.map +0 -1
  476. package/dist/chunk-UQLTP3XB.js.map +0 -1
  477. package/dist/chunk-WQTMOUCA.js.map +0 -1
  478. package/dist/chunk-WZ5T2NXH.js +0 -702
  479. package/dist/chunk-WZ5T2NXH.js.map +0 -1
  480. package/dist/chunk-XGAYTDSI.js.map +0 -1
  481. package/dist/chunk-YZS2B6YE.js.map +0 -1
  482. package/dist/chunk-ZXRE2KZO.js.map +0 -1
  483. package/dist/core/error/theme.d.ts +0 -10
  484. package/dist/core/error/theme.d.ts.map +0 -1
  485. package/dist/core/kernel/adapters.d.ts.map +0 -1
  486. package/dist/core/kernel/compose.d.ts.map +0 -1
  487. package/dist/core/kernel/handlers.d.ts.map +0 -1
  488. package/dist/core/kernel/hooks.d.ts.map +0 -1
  489. package/dist/core/kernel/installed.d.ts.map +0 -1
  490. package/dist/core/kernel/module.d.ts.map +0 -1
  491. package/dist/core/kernel/operations-records.d.ts.map +0 -1
  492. package/dist/core/kernel/operations-resolve.d.ts +0 -5
  493. package/dist/core/kernel/operations-resolve.d.ts.map +0 -1
  494. package/dist/core/kernel/operations.d.ts.map +0 -1
  495. package/dist/core/kernel/page-controller.d.ts.map +0 -1
  496. package/dist/core/kernel/provider.d.ts.map +0 -1
  497. package/dist/core/kernel/runtime.d.ts.map +0 -1
  498. package/dist/core/kernel/schema.d.ts.map +0 -1
  499. package/dist/core/kernel/stabilize.d.ts.map +0 -1
  500. package/dist/core/kernel/store-batch.d.ts +0 -17
  501. package/dist/core/kernel/store-batch.d.ts.map +0 -1
  502. package/dist/core/kernel/store-entries.d.ts +0 -6
  503. package/dist/core/kernel/store-entries.d.ts.map +0 -1
  504. package/dist/core/kernel/store-handles.d.ts +0 -4
  505. package/dist/core/kernel/store-handles.d.ts.map +0 -1
  506. package/dist/core/kernel/store-registration.d.ts +0 -14
  507. package/dist/core/kernel/store-registration.d.ts.map +0 -1
  508. package/dist/core/kernel/store-snapshots.d.ts.map +0 -1
  509. package/dist/core/kernel/store-subscriptions.d.ts.map +0 -1
  510. package/dist/core/kernel/store.d.ts.map +0 -1
  511. package/dist/core/kernel/types-modules.d.ts.map +0 -1
  512. package/dist/core/kernel/types-page.d.ts.map +0 -1
  513. package/dist/core/kernel/types-store.d.ts.map +0 -1
  514. package/dist/core/kernel/types.d.ts.map +0 -1
  515. package/dist/core/navigation/navigator-defaults.d.ts +0 -4
  516. package/dist/core/navigation/navigator-defaults.d.ts.map +0 -1
  517. package/dist/core/navigation/navigator-holds.d.ts.map +0 -1
  518. package/dist/core/navigation/navigator-patience.d.ts.map +0 -1
  519. package/dist/core/navigation/navigator-payload.d.ts.map +0 -1
  520. package/dist/core/navigation/navigator-prefetch.d.ts.map +0 -1
  521. package/dist/foundation/recipes/anatomy.d.ts +0 -139
  522. package/dist/foundation/recipes/anatomy.d.ts.map +0 -1
  523. package/dist/foundation/recipes/define.d.ts +0 -133
  524. package/dist/foundation/recipes/define.d.ts.map +0 -1
  525. package/dist/modules/ambient/analyze-bounds.d.ts.map +0 -1
  526. package/dist/modules/ambient/analyze-clusters.d.ts.map +0 -1
  527. package/dist/modules/ambient/analyze-ground.d.ts.map +0 -1
  528. package/dist/modules/ambient/analyze-measures.d.ts.map +0 -1
  529. package/dist/modules/ambient/analyze-swatches.d.ts.map +0 -1
  530. package/dist/modules/ambient/analyze.d.ts.map +0 -1
  531. package/dist/modules/ambient/oklab.d.ts.map +0 -1
  532. package/dist/modules/ambient/quantize.d.ts.map +0 -1
  533. package/dist/modules/background/components/background-gradients.d.ts +0 -8
  534. package/dist/modules/background/components/background-gradients.d.ts.map +0 -1
  535. package/dist/modules/background/components/edge-gradient.d.ts +0 -9
  536. package/dist/modules/background/components/edge-gradient.d.ts.map +0 -1
  537. package/dist/modules/background/components/native-video.d.ts +0 -4
  538. package/dist/modules/background/components/native-video.d.ts.map +0 -1
  539. package/dist/modules/background/components/noise-overlay.d.ts +0 -11
  540. package/dist/modules/background/components/noise-overlay.d.ts.map +0 -1
  541. package/dist/modules/background/components/overlay.d.ts.map +0 -1
  542. package/dist/modules/background/components/solid-overlay.d.ts +0 -10
  543. package/dist/modules/background/components/solid-overlay.d.ts.map +0 -1
  544. package/dist/modules/background/hooks/use-background-media-source.d.ts +0 -4
  545. package/dist/modules/background/hooks/use-background-media-source.d.ts.map +0 -1
  546. package/dist/modules/background/hooks/use-background-motion-model.d.ts +0 -15
  547. package/dist/modules/background/hooks/use-background-motion-model.d.ts.map +0 -1
  548. package/dist/modules/background/hooks/use-background-overlay-model.d.ts +0 -929
  549. package/dist/modules/background/hooks/use-background-overlay-model.d.ts.map +0 -1
  550. package/dist/modules/background/hooks/use-native-video-model.d.ts.map +0 -1
  551. package/dist/modules/background/lib/theme.d.ts +0 -4
  552. package/dist/modules/background/lib/theme.d.ts.map +0 -1
  553. package/dist/modules/background/model/override.d.ts +0 -14
  554. package/dist/modules/background/model/override.d.ts.map +0 -1
  555. package/dist/modules/background/model/playback.d.ts.map +0 -1
  556. package/dist/modules/background/model/state.d.ts.map +0 -1
  557. package/dist/modules/background/model/video-frame.d.ts +0 -31
  558. package/dist/modules/background/model/video-frame.d.ts.map +0 -1
  559. package/dist/modules/background/model/visual.d.ts.map +0 -1
  560. package/dist/modules/background/youtube/components/player.d.ts.map +0 -1
  561. package/dist/modules/background/youtube/hooks/use-youtube-background-player-model.d.ts.map +0 -1
  562. package/dist/modules/background/youtube/hooks/use-youtube-iframe-player.d.ts +0 -20
  563. package/dist/modules/background/youtube/hooks/use-youtube-iframe-player.d.ts.map +0 -1
  564. package/dist/modules/background/youtube/hooks/use-youtube-stream-sources.d.ts +0 -8
  565. package/dist/modules/background/youtube/hooks/use-youtube-stream-sources.d.ts.map +0 -1
  566. package/dist/modules/background/youtube/hooks/use-youtube-video-sync.d.ts.map +0 -1
  567. package/dist/modules/background/youtube/lib/audio.d.ts.map +0 -1
  568. package/dist/modules/background/youtube/lib/iframe-engine.d.ts +0 -29
  569. package/dist/modules/background/youtube/lib/iframe-engine.d.ts.map +0 -1
  570. package/dist/modules/background/youtube/lib/iframe-proxy.d.ts +0 -47
  571. package/dist/modules/background/youtube/lib/iframe-proxy.d.ts.map +0 -1
  572. package/dist/modules/background/youtube/lib/iframe.d.ts +0 -47
  573. package/dist/modules/background/youtube/lib/iframe.d.ts.map +0 -1
  574. package/dist/modules/background/youtube/lib/parse.d.ts.map +0 -1
  575. package/dist/modules/background/youtube/lib/timing.d.ts.map +0 -1
  576. package/dist/modules/background/youtube/lib/video-events.d.ts.map +0 -1
  577. package/dist/modules/dock/components/badge.d.ts +0 -5
  578. package/dist/modules/dock/components/badge.d.ts.map +0 -1
  579. package/dist/modules/dock/components/breadcrumbs-card.d.ts.map +0 -1
  580. package/dist/modules/dock/components/card-banner.d.ts +0 -4
  581. package/dist/modules/dock/components/card-banner.d.ts.map +0 -1
  582. package/dist/modules/dock/components/card-header.d.ts +0 -4
  583. package/dist/modules/dock/components/card-header.d.ts.map +0 -1
  584. package/dist/modules/dock/components/card-item.d.ts.map +0 -1
  585. package/dist/modules/dock/components/command-bar.d.ts.map +0 -1
  586. package/dist/modules/dock/components/compact.d.ts.map +0 -1
  587. package/dist/modules/dock/components/description.d.ts +0 -4
  588. package/dist/modules/dock/components/description.d.ts.map +0 -1
  589. package/dist/modules/dock/components/dock.d.ts.map +0 -1
  590. package/dist/modules/dock/components/hud-view.d.ts.map +0 -1
  591. package/dist/modules/dock/components/icon.d.ts.map +0 -1
  592. package/dist/modules/dock/components/item-content.d.ts.map +0 -1
  593. package/dist/modules/dock/components/media-action.d.ts.map +0 -1
  594. package/dist/modules/dock/components/media-controls.d.ts +0 -4
  595. package/dist/modules/dock/components/media-controls.d.ts.map +0 -1
  596. package/dist/modules/dock/components/media-scrubber.d.ts.map +0 -1
  597. package/dist/modules/dock/components/status-actions.d.ts.map +0 -1
  598. package/dist/modules/dock/components/surface/action.d.ts.map +0 -1
  599. package/dist/modules/dock/components/surface/controls.d.ts +0 -12
  600. package/dist/modules/dock/components/surface/controls.d.ts.map +0 -1
  601. package/dist/modules/dock/components/surface/extensions-bar.d.ts.map +0 -1
  602. package/dist/modules/dock/components/surface/header-button.d.ts.map +0 -1
  603. package/dist/modules/dock/components/surface/item-content.d.ts.map +0 -1
  604. package/dist/modules/dock/components/surface/shell.d.ts +0 -3
  605. package/dist/modules/dock/components/surface/shell.d.ts.map +0 -1
  606. package/dist/modules/dock/components/title.d.ts +0 -4
  607. package/dist/modules/dock/components/title.d.ts.map +0 -1
  608. package/dist/modules/dock/hooks/use-action-slot.d.ts +0 -6
  609. package/dist/modules/dock/hooks/use-action-slot.d.ts.map +0 -1
  610. package/dist/modules/dock/hooks/use-badge.d.ts +0 -4
  611. package/dist/modules/dock/hooks/use-badge.d.ts.map +0 -1
  612. package/dist/modules/dock/hooks/use-card-banner-model.d.ts +0 -18
  613. package/dist/modules/dock/hooks/use-card-banner-model.d.ts.map +0 -1
  614. package/dist/modules/dock/hooks/use-card-header-model.d.ts +0 -7
  615. package/dist/modules/dock/hooks/use-card-header-model.d.ts.map +0 -1
  616. package/dist/modules/dock/hooks/use-command-bar-model.d.ts +0 -12
  617. package/dist/modules/dock/hooks/use-command-bar-model.d.ts.map +0 -1
  618. package/dist/modules/dock/hooks/use-dock-banner.d.ts +0 -11
  619. package/dist/modules/dock/hooks/use-dock-banner.d.ts.map +0 -1
  620. package/dist/modules/dock/hooks/use-dock-config.d.ts +0 -19
  621. package/dist/modules/dock/hooks/use-dock-config.d.ts.map +0 -1
  622. package/dist/modules/dock/hooks/use-dock-dimensions.d.ts +0 -7
  623. package/dist/modules/dock/hooks/use-dock-dimensions.d.ts.map +0 -1
  624. package/dist/modules/dock/hooks/use-dock-focus-trap.d.ts +0 -7
  625. package/dist/modules/dock/hooks/use-dock-focus-trap.d.ts.map +0 -1
  626. package/dist/modules/dock/hooks/use-dock-height-controller.d.ts +0 -6
  627. package/dist/modules/dock/hooks/use-dock-height-controller.d.ts.map +0 -1
  628. package/dist/modules/dock/hooks/use-dock-keyboard.d.ts +0 -11
  629. package/dist/modules/dock/hooks/use-dock-keyboard.d.ts.map +0 -1
  630. package/dist/modules/dock/hooks/use-dock-registration.d.ts +0 -8
  631. package/dist/modules/dock/hooks/use-dock-registration.d.ts.map +0 -1
  632. package/dist/modules/dock/hooks/use-dock-route-reset.d.ts +0 -2
  633. package/dist/modules/dock/hooks/use-dock-route-reset.d.ts.map +0 -1
  634. package/dist/modules/dock/hooks/use-dock-theme.d.ts +0 -6
  635. package/dist/modules/dock/hooks/use-dock-theme.d.ts.map +0 -1
  636. package/dist/modules/dock/hooks/use-dock-viewport.d.ts +0 -6
  637. package/dist/modules/dock/hooks/use-dock-viewport.d.ts.map +0 -1
  638. package/dist/modules/dock/hooks/use-element-height.d.ts +0 -3
  639. package/dist/modules/dock/hooks/use-element-height.d.ts.map +0 -1
  640. package/dist/modules/dock/hooks/use-hud-registry.d.ts +0 -16
  641. package/dist/modules/dock/hooks/use-hud-registry.d.ts.map +0 -1
  642. package/dist/modules/dock/hooks/use-hud-view-model.d.ts +0 -9
  643. package/dist/modules/dock/hooks/use-hud-view-model.d.ts.map +0 -1
  644. package/dist/modules/dock/hooks/use-media-controls-model.d.ts.map +0 -1
  645. package/dist/modules/dock/hooks/use-media-scrubber-model.d.ts +0 -27
  646. package/dist/modules/dock/hooks/use-media-scrubber-model.d.ts.map +0 -1
  647. package/dist/modules/dock/hooks/use-pending-skeleton.d.ts +0 -7
  648. package/dist/modules/dock/hooks/use-pending-skeleton.d.ts.map +0 -1
  649. package/dist/modules/dock/hooks/use-standard-item-content-model.d.ts +0 -12
  650. package/dist/modules/dock/hooks/use-standard-item-content-model.d.ts.map +0 -1
  651. package/dist/modules/dock/hooks/use-surface-return.d.ts +0 -8
  652. package/dist/modules/dock/hooks/use-surface-return.d.ts.map +0 -1
  653. package/dist/modules/dock/hud.d.ts.map +0 -1
  654. package/dist/modules/dock/lib/banner.d.ts.map +0 -1
  655. package/dist/modules/dock/lib/card-item.d.ts.map +0 -1
  656. package/dist/modules/dock/lib/card.d.ts +0 -20
  657. package/dist/modules/dock/lib/card.d.ts.map +0 -1
  658. package/dist/modules/dock/lib/command-bar.d.ts +0 -8
  659. package/dist/modules/dock/lib/command-bar.d.ts.map +0 -1
  660. package/dist/modules/dock/lib/dom.d.ts +0 -7
  661. package/dist/modules/dock/lib/dom.d.ts.map +0 -1
  662. package/dist/modules/dock/lib/element-helpers.d.ts +0 -8
  663. package/dist/modules/dock/lib/element-helpers.d.ts.map +0 -1
  664. package/dist/modules/dock/lib/helpers.d.ts.map +0 -1
  665. package/dist/modules/dock/lib/media.d.ts.map +0 -1
  666. package/dist/modules/dock/lib/styles.d.ts.map +0 -1
  667. package/dist/modules/dock/model/hud-definition.d.ts.map +0 -1
  668. package/dist/modules/dock/model/hud.d.ts +0 -10
  669. package/dist/modules/dock/model/hud.d.ts.map +0 -1
  670. package/dist/modules/dock/model/layout.d.ts.map +0 -1
  671. package/dist/modules/dock/model/page-entry.d.ts +0 -11
  672. package/dist/modules/dock/model/page-entry.d.ts.map +0 -1
  673. package/dist/modules/dock/model/page-surface.d.ts +0 -4
  674. package/dist/modules/dock/model/page-surface.d.ts.map +0 -1
  675. package/dist/modules/dock/model/paths.d.ts.map +0 -1
  676. package/dist/modules/dock/model/state.d.ts +0 -28
  677. package/dist/modules/dock/model/state.d.ts.map +0 -1
  678. package/dist/modules/dock/model/surface-return.d.ts +0 -14
  679. package/dist/modules/dock/model/surface-return.d.ts.map +0 -1
  680. package/dist/modules/dock/routing/hooks/use-route-prefetch.d.ts.map +0 -1
  681. package/dist/modules/dock/routing/lib/restore.d.ts +0 -7
  682. package/dist/modules/dock/routing/lib/restore.d.ts.map +0 -1
  683. package/dist/modules/dock/routing/model/continuity.d.ts.map +0 -1
  684. package/dist/modules/dock/routing/model/policy.d.ts.map +0 -1
  685. package/dist/modules/dock/routing/model/topology.d.ts.map +0 -1
  686. package/dist/modules/dock/runtime/commands.d.ts.map +0 -1
  687. package/dist/modules/dock/runtime/display.d.ts.map +0 -1
  688. package/dist/modules/dock/runtime/dock.d.ts.map +0 -1
  689. package/dist/modules/dock/runtime/hooks/use-dock-expansion.d.ts +0 -10
  690. package/dist/modules/dock/runtime/hooks/use-dock-expansion.d.ts.map +0 -1
  691. package/dist/modules/dock/runtime/hooks/use-dock-layout.d.ts +0 -10
  692. package/dist/modules/dock/runtime/hooks/use-dock-layout.d.ts.map +0 -1
  693. package/dist/modules/dock/runtime/hooks/use-dock-operation-state.d.ts +0 -14
  694. package/dist/modules/dock/runtime/hooks/use-dock-operation-state.d.ts.map +0 -1
  695. package/dist/modules/dock/runtime/hooks/use-dock-route-bridge.d.ts +0 -7
  696. package/dist/modules/dock/runtime/hooks/use-dock-route-bridge.d.ts.map +0 -1
  697. package/dist/modules/dock/runtime/hooks/use-dock.d.ts.map +0 -1
  698. package/dist/modules/dock/runtime/model/attention.d.ts +0 -25
  699. package/dist/modules/dock/runtime/model/attention.d.ts.map +0 -1
  700. package/dist/modules/dock/runtime/model/cards.d.ts.map +0 -1
  701. package/dist/modules/dock/runtime/model/items.d.ts.map +0 -1
  702. package/dist/modules/dock/runtime/model/layout.d.ts +0 -10
  703. package/dist/modules/dock/runtime/model/layout.d.ts.map +0 -1
  704. package/dist/modules/dock/runtime/pipeline.d.ts.map +0 -1
  705. package/dist/modules/dock/runtime/provider-actions.d.ts +0 -38
  706. package/dist/modules/dock/runtime/provider-actions.d.ts.map +0 -1
  707. package/dist/modules/dock/status/action-options.d.ts +0 -35
  708. package/dist/modules/dock/status/action-options.d.ts.map +0 -1
  709. package/dist/modules/dock/surface/components/surface-extensions-provider.d.ts +0 -5
  710. package/dist/modules/dock/surface/components/surface-extensions-provider.d.ts.map +0 -1
  711. package/dist/modules/dock/surface/components/surface-flow-provider.d.ts +0 -7
  712. package/dist/modules/dock/surface/components/surface-flow-provider.d.ts.map +0 -1
  713. package/dist/modules/dock/surface/constants.d.ts +0 -5
  714. package/dist/modules/dock/surface/constants.d.ts.map +0 -1
  715. package/dist/modules/dock/surface/hooks/use-surface-controls-model.d.ts +0 -15
  716. package/dist/modules/dock/surface/hooks/use-surface-controls-model.d.ts.map +0 -1
  717. package/dist/modules/dock/surface/hooks/use-surface-extensions-bar-model.d.ts +0 -7
  718. package/dist/modules/dock/surface/hooks/use-surface-extensions-bar-model.d.ts.map +0 -1
  719. package/dist/modules/dock/surface/hooks/use-surface-extensions.d.ts +0 -14
  720. package/dist/modules/dock/surface/hooks/use-surface-extensions.d.ts.map +0 -1
  721. package/dist/modules/dock/surface/hooks/use-surface-flow.d.ts.map +0 -1
  722. package/dist/modules/dock/surface/hooks/use-surface-header-button-model.d.ts +0 -13
  723. package/dist/modules/dock/surface/hooks/use-surface-header-button-model.d.ts.map +0 -1
  724. package/dist/modules/dock/surface/hooks/use-surface-shell-model.d.ts.map +0 -1
  725. package/dist/modules/dock/surface/lib/drag.d.ts +0 -9
  726. package/dist/modules/dock/surface/lib/drag.d.ts.map +0 -1
  727. package/dist/modules/dock/surface/lib/target.d.ts +0 -8
  728. package/dist/modules/dock/surface/lib/target.d.ts.map +0 -1
  729. package/dist/modules/dock/surface/machine.d.ts.map +0 -1
  730. package/dist/modules/dock/surface/model/builder.d.ts.map +0 -1
  731. package/dist/modules/dock/surface/model/normalize.d.ts.map +0 -1
  732. package/dist/modules/dock/surface/model/open.d.ts +0 -26
  733. package/dist/modules/dock/surface/model/open.d.ts.map +0 -1
  734. package/dist/modules/dock/surface/model/records.d.ts.map +0 -1
  735. package/dist/modules/dock/surface/model/steps.d.ts +0 -9
  736. package/dist/modules/dock/surface/model/steps.d.ts.map +0 -1
  737. package/dist/modules/dock/surface/model/transition-state.d.ts.map +0 -1
  738. package/dist/modules/dock/surface/model/url.d.ts.map +0 -1
  739. package/dist/modules/dock/surface/runtime/context.d.ts +0 -29
  740. package/dist/modules/dock/surface/runtime/context.d.ts.map +0 -1
  741. package/dist/modules/dock/surface/runtime/release.d.ts +0 -9
  742. package/dist/modules/dock/surface/runtime/release.d.ts.map +0 -1
  743. package/dist/modules/dock/surface/stack.d.ts.map +0 -1
  744. package/dist/modules/dock/types/compact.d.ts +0 -13
  745. package/dist/modules/dock/types/compact.d.ts.map +0 -1
  746. package/dist/modules/modal/components/close-button.d.ts +0 -6
  747. package/dist/modules/modal/components/close-button.d.ts.map +0 -1
  748. package/dist/modules/modal/components/modal-container.d.ts.map +0 -1
  749. package/dist/modules/modal/components/modal-layer-switcher.d.ts +0 -9
  750. package/dist/modules/modal/components/modal-layer-switcher.d.ts.map +0 -1
  751. package/dist/modules/modal/components/modal-layer.d.ts +0 -17
  752. package/dist/modules/modal/components/modal-layer.d.ts.map +0 -1
  753. package/dist/modules/modal/components/overlay.d.ts.map +0 -1
  754. package/dist/modules/modal/components/resolve-header.d.ts +0 -10
  755. package/dist/modules/modal/components/resolve-header.d.ts.map +0 -1
  756. package/dist/modules/modal/components/slot-row.d.ts +0 -12
  757. package/dist/modules/modal/components/slot-row.d.ts.map +0 -1
  758. package/dist/modules/modal/hooks/use-mobile-viewport.d.ts +0 -3
  759. package/dist/modules/modal/hooks/use-mobile-viewport.d.ts.map +0 -1
  760. package/dist/modules/modal/hooks/use-modal-focus-trap.d.ts +0 -12
  761. package/dist/modules/modal/hooks/use-modal-focus-trap.d.ts.map +0 -1
  762. package/dist/modules/modal/hooks/use-modal-scroll-lock.d.ts +0 -3
  763. package/dist/modules/modal/hooks/use-modal-scroll-lock.d.ts.map +0 -1
  764. package/dist/modules/modal/lib/dom.d.ts.map +0 -1
  765. package/dist/modules/modal/lib/theme.d.ts +0 -4
  766. package/dist/modules/modal/lib/theme.d.ts.map +0 -1
  767. package/dist/modules/modal/model/entry.d.ts +0 -18
  768. package/dist/modules/modal/model/entry.d.ts.map +0 -1
  769. package/dist/modules/modal/model/header.d.ts +0 -16
  770. package/dist/modules/modal/model/header.d.ts.map +0 -1
  771. package/dist/modules/modal/model/identity.d.ts +0 -13
  772. package/dist/modules/modal/model/identity.d.ts.map +0 -1
  773. package/dist/modules/modal/model/layout.d.ts.map +0 -1
  774. package/dist/modules/modal/model/state.d.ts +0 -10
  775. package/dist/modules/modal/model/state.d.ts.map +0 -1
  776. package/dist/overlay-7QLGWHCH.js +0 -13
  777. package/dist/react/hooks/types.d.ts +0 -25
  778. package/dist/react/hooks/types.d.ts.map +0 -1
  779. package/dist/react/ui/components/avatar.d.ts +0 -6
  780. package/dist/react/ui/components/avatar.d.ts.map +0 -1
  781. package/dist/react/ui/components/button.d.ts +0 -6
  782. package/dist/react/ui/components/button.d.ts.map +0 -1
  783. package/dist/react/ui/components/carousel.d.ts +0 -6
  784. package/dist/react/ui/components/carousel.d.ts.map +0 -1
  785. package/dist/react/ui/components/checkbox.d.ts +0 -10
  786. package/dist/react/ui/components/checkbox.d.ts.map +0 -1
  787. package/dist/react/ui/components/icon.d.ts +0 -6
  788. package/dist/react/ui/components/icon.d.ts.map +0 -1
  789. package/dist/react/ui/components/image.d.ts +0 -6
  790. package/dist/react/ui/components/image.d.ts.map +0 -1
  791. package/dist/react/ui/components/indicator.d.ts +0 -45
  792. package/dist/react/ui/components/indicator.d.ts.map +0 -1
  793. package/dist/react/ui/components/input.d.ts +0 -10
  794. package/dist/react/ui/components/input.d.ts.map +0 -1
  795. package/dist/react/ui/components/loader.d.ts +0 -10
  796. package/dist/react/ui/components/loader.d.ts.map +0 -1
  797. package/dist/react/ui/components/segmented.d.ts +0 -6
  798. package/dist/react/ui/components/segmented.d.ts.map +0 -1
  799. package/dist/react/ui/components/select-parts.d.ts +0 -22
  800. package/dist/react/ui/components/select-parts.d.ts.map +0 -1
  801. package/dist/react/ui/components/select.d.ts +0 -6
  802. package/dist/react/ui/components/select.d.ts.map +0 -1
  803. package/dist/react/ui/components/skeleton.d.ts +0 -10
  804. package/dist/react/ui/components/skeleton.d.ts.map +0 -1
  805. package/dist/react/ui/components/switch.d.ts +0 -6
  806. package/dist/react/ui/components/switch.d.ts.map +0 -1
  807. package/dist/react/ui/components/tooltip-group.d.ts +0 -34
  808. package/dist/react/ui/components/tooltip-group.d.ts.map +0 -1
  809. package/dist/react/ui/components/tooltip-placement.d.ts +0 -43
  810. package/dist/react/ui/components/tooltip-placement.d.ts.map +0 -1
  811. package/dist/react/ui/components/tooltip-slot.d.ts +0 -23
  812. package/dist/react/ui/components/tooltip-slot.d.ts.map +0 -1
  813. package/dist/react/ui/components/tooltip.d.ts +0 -13
  814. package/dist/react/ui/components/tooltip.d.ts.map +0 -1
  815. package/dist/react/ui/index.d.ts +0 -19
  816. package/dist/react/ui/index.d.ts.map +0 -1
  817. package/dist/react/ui/provider.d.ts +0 -22
  818. package/dist/react/ui/provider.d.ts.map +0 -1
  819. package/dist/react/ui/types-controls.d.ts +0 -133
  820. package/dist/react/ui/types-controls.d.ts.map +0 -1
  821. package/dist/react/ui/types.d.ts +0 -213
  822. package/dist/react/ui/types.d.ts.map +0 -1
  823. package/dist/react/ui/utils.d.ts +0 -65
  824. package/dist/react/ui/utils.d.ts.map +0 -1
  825. package/dist/ui/index.d.ts +0 -1
  826. package/dist/ui/index.js +0 -2268
  827. package/dist/ui/index.js.map +0 -1
  828. package/docs/proposals/navigation.md +0 -210
  829. /package/dist/modules/ambient/{quantize.d.ts → analysis/quantize.d.ts} +0 -0
  830. /package/dist/modules/background/{components/overlay.d.ts → overlay.d.ts} +0 -0
  831. /package/dist/modules/background/{model/playback.d.ts → playback.d.ts} +0 -0
  832. /package/dist/modules/background/youtube/{lib/audio.d.ts → audio.d.ts} +0 -0
  833. /package/dist/modules/dock/{components → card}/compact.d.ts +0 -0
  834. /package/dist/modules/dock/{components → commands}/command-bar.d.ts +0 -0
  835. /package/dist/modules/dock/{components → routing}/breadcrumbs-card.d.ts +0 -0
  836. /package/dist/modules/dock/{model → routing}/paths.d.ts +0 -0
  837. /package/dist/modules/dock/{components → stack}/dock.d.ts +0 -0
  838. /package/dist/modules/dock/surface/{model → runtime}/url.d.ts +0 -0
  839. /package/dist/modules/modal/{lib/dom.d.ts → dom.d.ts} +0 -0
  840. /package/dist/modules/modal/{components/overlay.d.ts → overlay.d.ts} +0 -0
@@ -1,702 +0,0 @@
1
- import { useUi } from './chunk-7VU2OAJB.js';
2
- import { getOrCreateGlobalContext } from './chunk-J3VTDBC6.js';
3
- import { c } from 'react/compiler-runtime';
4
- import { useState, useEffect, use, useId, useSyncExternalStore, useRef, useLayoutEffect, isValidElement, cloneElement } from 'react';
5
- import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
6
- import { createPortal } from 'react-dom';
7
-
8
- var DEFAULT_DELAY_MS = 700;
9
- var DEFAULT_SKIP_DELAY_MS = 300;
10
- var createGroup = () => ({
11
- active: null,
12
- instant: false,
13
- skipTimer: null
14
- });
15
- var TooltipGroupContext = getOrCreateGlobalContext("TooltipGroupContext", {
16
- delayDuration: DEFAULT_DELAY_MS,
17
- group: createGroup(),
18
- skipDelayDuration: DEFAULT_SKIP_DELAY_MS
19
- });
20
- function clearSkipTimer(group) {
21
- if (group.skipTimer === null) return;
22
- clearTimeout(group.skipTimer);
23
- group.skipTimer = null;
24
- }
25
- function groupOpened(group, live) {
26
- const previous = group.active;
27
- group.active = live;
28
- if (previous && previous !== live) previous.current.close();
29
- clearSkipTimer(group);
30
- group.instant = true;
31
- }
32
- function groupClosed(group, live, skipDelayMs) {
33
- if (group.active !== live) return;
34
- group.active = null;
35
- clearSkipTimer(group);
36
- group.skipTimer = setTimeout(() => {
37
- group.skipTimer = null;
38
- group.instant = false;
39
- }, Math.max(0, skipDelayMs));
40
- }
41
- function TooltipProvider(t0) {
42
- const $ = c(10);
43
- const {
44
- children,
45
- delayDuration: t1,
46
- skipDelayDuration: t2
47
- } = t0;
48
- const delayDuration = t1 === void 0 ? DEFAULT_DELAY_MS : t1;
49
- const skipDelayDuration = t2 === void 0 ? DEFAULT_SKIP_DELAY_MS : t2;
50
- const [group] = useState(createGroup);
51
- let t3;
52
- let t4;
53
- if ($[0] !== group) {
54
- t3 = () => () => clearSkipTimer(group);
55
- t4 = [group];
56
- $[0] = group;
57
- $[1] = t3;
58
- $[2] = t4;
59
- } else {
60
- t3 = $[1];
61
- t4 = $[2];
62
- }
63
- useEffect(t3, t4);
64
- let t5;
65
- if ($[3] !== delayDuration || $[4] !== group || $[5] !== skipDelayDuration) {
66
- t5 = {
67
- delayDuration,
68
- group,
69
- skipDelayDuration
70
- };
71
- $[3] = delayDuration;
72
- $[4] = group;
73
- $[5] = skipDelayDuration;
74
- $[6] = t5;
75
- } else {
76
- t5 = $[6];
77
- }
78
- const value = t5;
79
- let t6;
80
- if ($[7] !== children || $[8] !== value) {
81
- t6 = /* @__PURE__ */ jsx(TooltipGroupContext, { value, children });
82
- $[7] = children;
83
- $[8] = value;
84
- $[9] = t6;
85
- } else {
86
- t6 = $[9];
87
- }
88
- return t6;
89
- }
90
-
91
- // src/react/ui/components/tooltip-placement.ts
92
- var OPPOSITE = {
93
- bottom: "top",
94
- left: "right",
95
- right: "left",
96
- top: "bottom"
97
- };
98
- var isVertical = (side) => side === "top" || side === "bottom";
99
- function roomOn(side, {
100
- trigger,
101
- viewport,
102
- sideOffset,
103
- collisionPadding
104
- }) {
105
- const gap = sideOffset + collisionPadding;
106
- switch (side) {
107
- case "top":
108
- return trigger.top - gap;
109
- case "bottom":
110
- return viewport.height - (trigger.top + trigger.height) - gap;
111
- case "left":
112
- return trigger.left - gap;
113
- case "right":
114
- return viewport.width - (trigger.left + trigger.width) - gap;
115
- }
116
- }
117
- var clamp = (value, min, max) => Math.min(Math.max(value, min), max);
118
- var snap = (value, ratio) => Math.round(value * ratio) / ratio;
119
- function resolveSide(input) {
120
- const preferred = input.side;
121
- const needed = isVertical(preferred) ? input.content.height : input.content.width;
122
- const room = roomOn(preferred, input);
123
- if (room >= needed) return preferred;
124
- const opposite = OPPOSITE[preferred];
125
- return roomOn(opposite, input) > room ? opposite : preferred;
126
- }
127
- function placeTooltip(input) {
128
- const {
129
- align,
130
- collisionPadding,
131
- content,
132
- sideOffset,
133
- trigger,
134
- viewport
135
- } = input;
136
- const side = resolveSide(input);
137
- const vertical = isVertical(side);
138
- const crossStart = vertical ? trigger.left : trigger.top;
139
- const crossSize = vertical ? trigger.width : trigger.height;
140
- const ownSize = vertical ? content.width : content.height;
141
- const viewSize = vertical ? viewport.width : viewport.height;
142
- let cross = align === "start" ? crossStart : align === "end" ? crossStart + crossSize - ownSize : crossStart + (crossSize - ownSize) / 2;
143
- const min = collisionPadding;
144
- const max = viewSize - collisionPadding - ownSize;
145
- cross = max < min ? min : clamp(cross, min, max);
146
- cross = clamp(cross, crossStart - ownSize, crossStart + crossSize);
147
- let main;
148
- if (side === "top") main = trigger.top - sideOffset - content.height;
149
- else if (side === "bottom") main = trigger.top + trigger.height + sideOffset;
150
- else if (side === "left") main = trigger.left - sideOffset - content.width;
151
- else main = trigger.left + trigger.width + sideOffset;
152
- const ratio = input.pixelRatio && input.pixelRatio > 0 ? input.pixelRatio : 1;
153
- const x = snap(vertical ? cross : main, ratio);
154
- const y = snap(vertical ? main : cross, ratio);
155
- const anchor = clamp(crossStart + crossSize / 2 - cross, 0, ownSize);
156
- const facing = side === "top" ? content.height : side === "left" ? content.width : 0;
157
- const room = Math.max(0, roomOn(side, input));
158
- const across = Math.max(0, viewSize - collisionPadding * 2);
159
- return {
160
- availableHeight: vertical ? room : across,
161
- availableWidth: vertical ? across : room,
162
- originX: vertical ? anchor : facing,
163
- originY: vertical ? facing : anchor,
164
- side,
165
- x,
166
- y
167
- };
168
- }
169
- var TRIGGER_HANDLERS = ["onBlur", "onClick", "onFocus", "onPointerDown", "onPointerLeave", "onPointerMove"];
170
- function assignRef(ref, value) {
171
- if (typeof ref === "function") ref(value);
172
- else if (ref) ref.current = value;
173
- }
174
- function Slot({
175
- children,
176
- forwardRef,
177
- ref,
178
- ...ours
179
- }) {
180
- const theirs = children.props;
181
- const merged = {
182
- "aria-describedby": ours["aria-describedby"] ?? theirs["aria-describedby"],
183
- "data-state": ours["data-state"],
184
- ref: (node) => {
185
- assignRef(ref, node);
186
- assignRef(theirs.ref, node);
187
- assignRef(forwardRef, node);
188
- }
189
- };
190
- for (const name of TRIGGER_HANDLERS) {
191
- const own = theirs[name];
192
- const added = ours[name];
193
- if (!added) continue;
194
- merged[name] = (event) => {
195
- own?.(event);
196
- if (!event.defaultPrevented) added(event);
197
- };
198
- }
199
- return cloneElement(children, merged);
200
- }
201
- var EXIT_FALLBACK_SLACK_MS = 50;
202
- var subscribeNothing = () => () => {
203
- };
204
- var onClient = () => true;
205
- var onServer = () => false;
206
- var noop = () => {
207
- };
208
- var WRAPPER_STYLE = {
209
- left: 0,
210
- minWidth: "max-content",
211
- position: "fixed",
212
- top: 0,
213
- transform: "translate3d(0, -200%, 0)",
214
- willChange: "transform"
215
- };
216
- function hasContent(text) {
217
- return text !== void 0 && text !== null && text !== false && text !== "";
218
- }
219
- function animationSpanMs(style) {
220
- const toMs = (value) => {
221
- const amount = parseFloat(value);
222
- if (!Number.isFinite(amount)) return 0;
223
- return value.trim().endsWith("ms") ? amount : amount * 1e3;
224
- };
225
- const durations = style.animationDuration.split(",").map(toMs);
226
- const delays = style.animationDelay.split(",").map(toMs);
227
- return durations.reduce((longest, duration, index) => Math.max(longest, duration + (delays[index] ?? delays[0] ?? 0)), 0);
228
- }
229
- function Tooltip(t0) {
230
- const $ = c(71);
231
- const {
232
- align: t1,
233
- children,
234
- className,
235
- classNames,
236
- collisionPadding: t2,
237
- contentProps,
238
- defaultOpen,
239
- delayMs,
240
- onOpenChange,
241
- open,
242
- position: t3,
243
- sideOffset: t4,
244
- text,
245
- triggerRef
246
- } = t0;
247
- const align = t1 === void 0 ? "center" : t1;
248
- const collisionPadding = t2 === void 0 ? 0 : t2;
249
- const position = t3 === void 0 ? "top" : t3;
250
- const sideOffset = t4 === void 0 ? 0 : t4;
251
- const {
252
- parts
253
- } = useUi();
254
- const {
255
- delayDuration,
256
- group,
257
- skipDelayDuration
258
- } = use(TooltipGroupContext);
259
- const contentId = useId();
260
- const isClient = useSyncExternalStore(subscribeNothing, onClient, onServer);
261
- const [uncontrolledOpen, setUncontrolledOpen] = useState(defaultOpen ?? false);
262
- const [openKind, setOpenKind] = useState("delayed-open");
263
- const isControlled = open !== void 0;
264
- const requestedOpen = isControlled ? open : uncontrolledOpen;
265
- let t5;
266
- if ($[0] !== requestedOpen || $[1] !== text) {
267
- t5 = requestedOpen && hasContent(text);
268
- $[0] = requestedOpen;
269
- $[1] = text;
270
- $[2] = t5;
271
- } else {
272
- t5 = $[2];
273
- }
274
- const isOpen = t5;
275
- const [wasOpen, setWasOpen] = useState(isOpen);
276
- const [exiting, setExiting] = useState(false);
277
- if (wasOpen !== isOpen) {
278
- setWasOpen(isOpen);
279
- setExiting(!isOpen);
280
- }
281
- const present = isOpen || exiting;
282
- const triggerNodeRef = useRef(null);
283
- const wrapperRef = useRef(null);
284
- const contentRef = useRef(null);
285
- const openTimerRef = useRef(null);
286
- const pointerOpenedRef = useRef(false);
287
- const pointerDownRef = useRef(false);
288
- const openAnimationRef = useRef("none");
289
- let t6;
290
- if ($[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
291
- t6 = {
292
- close: noop,
293
- open: noop
294
- };
295
- $[3] = t6;
296
- } else {
297
- t6 = $[3];
298
- }
299
- const liveRef = useRef(t6);
300
- let t7;
301
- if ($[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
302
- t7 = () => {
303
- if (openTimerRef.current === null) {
304
- return;
305
- }
306
- clearTimeout(openTimerRef.current);
307
- openTimerRef.current = null;
308
- };
309
- $[4] = t7;
310
- } else {
311
- t7 = $[4];
312
- }
313
- const clearOpenTimer = t7;
314
- let t8;
315
- if ($[5] !== isControlled || $[6] !== onOpenChange || $[7] !== requestedOpen) {
316
- t8 = (next, kind) => {
317
- if (kind) {
318
- setOpenKind(kind);
319
- }
320
- if (next === requestedOpen) {
321
- return;
322
- }
323
- if (!isControlled) {
324
- setUncontrolledOpen(next);
325
- }
326
- onOpenChange?.(next);
327
- };
328
- $[5] = isControlled;
329
- $[6] = onOpenChange;
330
- $[7] = requestedOpen;
331
- $[8] = t8;
332
- } else {
333
- t8 = $[8];
334
- }
335
- const change = t8;
336
- let t9;
337
- if ($[9] !== change) {
338
- t9 = () => {
339
- clearOpenTimer();
340
- change(false);
341
- };
342
- $[9] = change;
343
- $[10] = t9;
344
- } else {
345
- t9 = $[10];
346
- }
347
- const close = t9;
348
- let t10;
349
- if ($[11] !== change || $[12] !== close) {
350
- t10 = () => {
351
- liveRef.current = {
352
- close,
353
- open: (kind_0) => {
354
- clearOpenTimer();
355
- change(true, kind_0);
356
- }
357
- };
358
- };
359
- $[11] = change;
360
- $[12] = close;
361
- $[13] = t10;
362
- } else {
363
- t10 = $[13];
364
- }
365
- useLayoutEffect(t10);
366
- let t11;
367
- if ($[14] !== change) {
368
- t11 = () => {
369
- clearOpenTimer();
370
- change(true, "instant-open");
371
- };
372
- $[14] = change;
373
- $[15] = t11;
374
- } else {
375
- t11 = $[15];
376
- }
377
- const openNow = t11;
378
- let t12;
379
- if ($[16] !== delayDuration || $[17] !== delayMs || $[18] !== group.instant || $[19] !== openNow) {
380
- t12 = () => {
381
- if (group.instant) {
382
- openNow();
383
- return;
384
- }
385
- clearOpenTimer();
386
- openTimerRef.current = setTimeout(() => {
387
- openTimerRef.current = null;
388
- liveRef.current.open("delayed-open");
389
- }, delayMs ?? delayDuration);
390
- };
391
- $[16] = delayDuration;
392
- $[17] = delayMs;
393
- $[18] = group.instant;
394
- $[19] = openNow;
395
- $[20] = t12;
396
- } else {
397
- t12 = $[20];
398
- }
399
- const openAfterDelay = t12;
400
- let t13;
401
- let t14;
402
- if ($[21] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
403
- t13 = () => {
404
- const timer = openTimerRef;
405
- return () => {
406
- if (timer.current !== null) {
407
- clearTimeout(timer.current);
408
- }
409
- };
410
- };
411
- t14 = [];
412
- $[21] = t13;
413
- $[22] = t14;
414
- } else {
415
- t13 = $[21];
416
- t14 = $[22];
417
- }
418
- useEffect(t13, t14);
419
- let t15;
420
- let t16;
421
- if ($[23] !== group || $[24] !== isOpen || $[25] !== skipDelayDuration) {
422
- t15 = () => {
423
- if (!isOpen) {
424
- return;
425
- }
426
- const live = liveRef;
427
- groupOpened(group, live);
428
- const onKeyDown = (event) => {
429
- if (event.key === "Escape") {
430
- live.current.close();
431
- }
432
- };
433
- const onScroll = (event_0) => {
434
- const target = event_0.target;
435
- const trigger = triggerNodeRef.current;
436
- if (target instanceof Node && trigger && target.contains(trigger)) {
437
- live.current.close();
438
- }
439
- };
440
- document.addEventListener("keydown", onKeyDown);
441
- window.addEventListener("scroll", onScroll, {
442
- capture: true,
443
- passive: true
444
- });
445
- return () => {
446
- document.removeEventListener("keydown", onKeyDown);
447
- window.removeEventListener("scroll", onScroll, {
448
- capture: true
449
- });
450
- groupClosed(group, live, skipDelayDuration);
451
- };
452
- };
453
- t16 = [group, isOpen, skipDelayDuration];
454
- $[23] = group;
455
- $[24] = isOpen;
456
- $[25] = skipDelayDuration;
457
- $[26] = t15;
458
- $[27] = t16;
459
- } else {
460
- t15 = $[26];
461
- t16 = $[27];
462
- }
463
- useEffect(t15, t16);
464
- let t17;
465
- let t18;
466
- if ($[28] !== align || $[29] !== collisionPadding || $[30] !== position || $[31] !== present || $[32] !== sideOffset) {
467
- t17 = () => {
468
- if (!present) {
469
- return;
470
- }
471
- const wrapper = wrapperRef.current;
472
- const content = contentRef.current;
473
- const trigger_0 = triggerNodeRef.current;
474
- if (!wrapper || !content || !trigger_0) {
475
- return;
476
- }
477
- const computed = getComputedStyle(content);
478
- if (computed.zIndex && computed.zIndex !== "auto") {
479
- wrapper.style.zIndex = computed.zIndex;
480
- }
481
- openAnimationRef.current = computed.animationName || "none";
482
- let frame = 0;
483
- const place = () => {
484
- frame = 0;
485
- const box = trigger_0.getBoundingClientRect();
486
- const root = document.documentElement;
487
- const placement = placeTooltip({
488
- align,
489
- collisionPadding,
490
- content: {
491
- height: content.offsetHeight,
492
- width: content.offsetWidth
493
- },
494
- pixelRatio: window.devicePixelRatio,
495
- side: position,
496
- sideOffset,
497
- trigger: box,
498
- viewport: {
499
- height: root.clientHeight,
500
- width: root.clientWidth
501
- }
502
- });
503
- wrapper.style.transform = `translate3d(${placement.x}px, ${placement.y}px, 0)`;
504
- content.dataset.side = placement.side;
505
- content.style.setProperty("--tooltip-transform-origin", `${placement.originX}px ${placement.originY}px`);
506
- content.style.setProperty("--tooltip-available-width", `${placement.availableWidth}px`);
507
- content.style.setProperty("--tooltip-available-height", `${placement.availableHeight}px`);
508
- content.style.setProperty("--tooltip-trigger-width", `${box.width}px`);
509
- content.style.setProperty("--tooltip-trigger-height", `${box.height}px`);
510
- };
511
- place();
512
- const schedule = () => {
513
- if (frame === 0) {
514
- frame = requestAnimationFrame(place);
515
- }
516
- };
517
- window.addEventListener("resize", schedule, {
518
- passive: true
519
- });
520
- const observer = typeof ResizeObserver === "undefined" ? null : new ResizeObserver(schedule);
521
- observer?.observe(trigger_0);
522
- observer?.observe(content);
523
- return () => {
524
- if (frame !== 0) {
525
- cancelAnimationFrame(frame);
526
- }
527
- window.removeEventListener("resize", schedule);
528
- observer?.disconnect();
529
- };
530
- };
531
- t18 = [align, collisionPadding, position, present, sideOffset];
532
- $[28] = align;
533
- $[29] = collisionPadding;
534
- $[30] = position;
535
- $[31] = present;
536
- $[32] = sideOffset;
537
- $[33] = t17;
538
- $[34] = t18;
539
- } else {
540
- t17 = $[33];
541
- t18 = $[34];
542
- }
543
- useLayoutEffect(t17, t18);
544
- let t19;
545
- let t20;
546
- if ($[35] !== exiting) {
547
- t19 = () => {
548
- if (!exiting) {
549
- return;
550
- }
551
- const content_0 = contentRef.current;
552
- const finish = () => setExiting(false);
553
- const computed_0 = content_0 ? getComputedStyle(content_0) : null;
554
- const animation = computed_0?.animationName || "none";
555
- if (!content_0 || !computed_0 || computed_0.display === "none" || animation === "none" || animation === openAnimationRef.current) {
556
- finish();
557
- return;
558
- }
559
- const onEnd = (event_1) => {
560
- if (event_1.target === content_0) {
561
- finish();
562
- }
563
- };
564
- content_0.addEventListener("animationend", onEnd);
565
- content_0.addEventListener("animationcancel", onEnd);
566
- const fallback = setTimeout(finish, animationSpanMs(computed_0) + EXIT_FALLBACK_SLACK_MS);
567
- return () => {
568
- content_0.removeEventListener("animationend", onEnd);
569
- content_0.removeEventListener("animationcancel", onEnd);
570
- clearTimeout(fallback);
571
- };
572
- };
573
- t20 = [exiting];
574
- $[35] = exiting;
575
- $[36] = t19;
576
- $[37] = t20;
577
- } else {
578
- t19 = $[36];
579
- t20 = $[37];
580
- }
581
- useLayoutEffect(t19, t20);
582
- let t21;
583
- if ($[38] !== children) {
584
- t21 = isValidElement(children) ? children : /* @__PURE__ */ jsx("span", { children });
585
- $[38] = children;
586
- $[39] = t21;
587
- } else {
588
- t21 = $[39];
589
- }
590
- const child = t21;
591
- const state = isOpen ? openKind : "closed";
592
- const t22 = isOpen ? contentId : void 0;
593
- let t23;
594
- if ($[40] !== openNow) {
595
- t23 = () => {
596
- if (!pointerDownRef.current) {
597
- openNow();
598
- }
599
- };
600
- $[40] = openNow;
601
- $[41] = t23;
602
- } else {
603
- t23 = $[41];
604
- }
605
- let t24;
606
- if ($[42] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
607
- t24 = () => {
608
- pointerDownRef.current = true;
609
- document.addEventListener("pointerup", () => {
610
- pointerDownRef.current = false;
611
- }, {
612
- once: true
613
- });
614
- };
615
- $[42] = t24;
616
- } else {
617
- t24 = $[42];
618
- }
619
- let t25;
620
- if ($[43] !== close) {
621
- t25 = () => {
622
- pointerOpenedRef.current = false;
623
- close();
624
- };
625
- $[43] = close;
626
- $[44] = t25;
627
- } else {
628
- t25 = $[44];
629
- }
630
- let t26;
631
- if ($[45] !== openAfterDelay) {
632
- t26 = (event_2) => {
633
- if (event_2.pointerType === "touch" || pointerOpenedRef.current) {
634
- return;
635
- }
636
- pointerOpenedRef.current = true;
637
- openAfterDelay();
638
- };
639
- $[45] = openAfterDelay;
640
- $[46] = t26;
641
- } else {
642
- t26 = $[46];
643
- }
644
- let t27;
645
- if ($[47] !== child || $[48] !== close || $[49] !== state || $[50] !== t22 || $[51] !== t23 || $[52] !== t25 || $[53] !== t26 || $[54] !== triggerRef) {
646
- t27 = /* @__PURE__ */ jsx(Slot, { "aria-describedby": t22, "data-state": state, forwardRef: triggerRef, onBlur: close, onClick: close, onFocus: t23, onPointerDown: t24, onPointerLeave: t25, onPointerMove: t26, ref: triggerNodeRef, children: child });
647
- $[47] = child;
648
- $[48] = close;
649
- $[49] = state;
650
- $[50] = t22;
651
- $[51] = t23;
652
- $[52] = t25;
653
- $[53] = t26;
654
- $[54] = triggerRef;
655
- $[55] = t27;
656
- } else {
657
- t27 = $[55];
658
- }
659
- const trigger_1 = t27;
660
- let t28;
661
- if ($[56] !== align || $[57] !== className || $[58] !== classNames?.content || $[59] !== classNames?.label || $[60] !== contentId || $[61] !== contentProps || $[62] !== isClient || $[63] !== parts || $[64] !== present || $[65] !== state || $[66] !== text) {
662
- t28 = present && isClient ? createPortal(/* @__PURE__ */ jsx("div", { "data-tooltip-wrapper": "", ref: wrapperRef, style: WRAPPER_STYLE, children: /* @__PURE__ */ jsx("div", { "data-align": align, ...contentProps, className: parts.tooltip.content({
663
- className: [classNames?.content, className]
664
- }), "data-state": state, id: contentId, ref: contentRef, role: "tooltip", style: {
665
- pointerEvents: "none",
666
- ...contentProps?.style
667
- }, children: /* @__PURE__ */ jsx("span", { className: parts.tooltip.label({
668
- className: classNames?.label
669
- }), children: text }) }) }), document.body) : null;
670
- $[56] = align;
671
- $[57] = className;
672
- $[58] = classNames?.content;
673
- $[59] = classNames?.label;
674
- $[60] = contentId;
675
- $[61] = contentProps;
676
- $[62] = isClient;
677
- $[63] = parts;
678
- $[64] = present;
679
- $[65] = state;
680
- $[66] = text;
681
- $[67] = t28;
682
- } else {
683
- t28 = $[67];
684
- }
685
- let t29;
686
- if ($[68] !== t28 || $[69] !== trigger_1) {
687
- t29 = /* @__PURE__ */ jsxs(Fragment, { children: [
688
- trigger_1,
689
- t28
690
- ] });
691
- $[68] = t28;
692
- $[69] = trigger_1;
693
- $[70] = t29;
694
- } else {
695
- t29 = $[70];
696
- }
697
- return t29;
698
- }
699
-
700
- export { Tooltip, TooltipProvider };
701
- //# sourceMappingURL=chunk-WZ5T2NXH.js.map
702
- //# sourceMappingURL=chunk-WZ5T2NXH.js.map