@omerdlw/base-framework 3.0.1 → 3.2.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 (1132) hide show
  1. package/MIGRATION.md +75 -0
  2. package/README.md +33 -25
  3. package/dist/ambient/index.d.ts +1 -0
  4. package/dist/ambient/index.js +14 -0
  5. package/dist/ambient/server/index.d.ts +1 -0
  6. package/dist/ambient/server/index.js +238 -0
  7. package/dist/ambient/server/index.js.map +1 -0
  8. package/dist/ambient/worker/index.d.ts +1 -0
  9. package/dist/ambient/worker/index.js +143 -0
  10. package/dist/ambient/worker/index.js.map +1 -0
  11. package/dist/background/index.d.ts +1 -0
  12. package/dist/background/index.js +13 -0
  13. package/dist/chunk-2223J34C.js +850 -0
  14. package/dist/chunk-2223J34C.js.map +1 -0
  15. package/dist/chunk-2LGI33JP.js +832 -0
  16. package/dist/chunk-2LGI33JP.js.map +1 -0
  17. package/dist/chunk-37OBXNEO.js +116 -0
  18. package/dist/chunk-37OBXNEO.js.map +1 -0
  19. package/dist/chunk-4OQGXZIH.js +1435 -0
  20. package/dist/chunk-4OQGXZIH.js.map +1 -0
  21. package/dist/chunk-5H6FZW3N.js +535 -0
  22. package/dist/chunk-5H6FZW3N.js.map +1 -0
  23. package/dist/chunk-7RSRDKYE.js +22 -0
  24. package/dist/chunk-7RSRDKYE.js.map +1 -0
  25. package/dist/chunk-AYUEZPAN.js +15762 -0
  26. package/dist/chunk-AYUEZPAN.js.map +1 -0
  27. package/dist/chunk-BCFJSPTI.js +261 -0
  28. package/dist/chunk-BCFJSPTI.js.map +1 -0
  29. package/dist/chunk-BMFHS3GV.js +118 -0
  30. package/dist/chunk-BMFHS3GV.js.map +1 -0
  31. package/dist/chunk-CRKJAACG.js +81 -0
  32. package/dist/chunk-CRKJAACG.js.map +1 -0
  33. package/dist/chunk-CT4UILO2.js +537 -0
  34. package/dist/chunk-CT4UILO2.js.map +1 -0
  35. package/dist/chunk-ESD5EQ5H.js +178 -0
  36. package/dist/chunk-ESD5EQ5H.js.map +1 -0
  37. package/dist/chunk-GCHQ5OC4.js +460 -0
  38. package/dist/chunk-GCHQ5OC4.js.map +1 -0
  39. package/dist/chunk-GT4COZI7.js +110 -0
  40. package/dist/chunk-GT4COZI7.js.map +1 -0
  41. package/dist/chunk-H6HRU3XN.js +567 -0
  42. package/dist/chunk-H6HRU3XN.js.map +1 -0
  43. package/dist/chunk-J3VTDBC6.js +14 -0
  44. package/dist/chunk-J3VTDBC6.js.map +1 -0
  45. package/dist/chunk-LTO77WSO.js +140 -0
  46. package/dist/chunk-LTO77WSO.js.map +1 -0
  47. package/dist/chunk-MCYHKFZL.js +17 -0
  48. package/dist/chunk-MCYHKFZL.js.map +1 -0
  49. package/dist/chunk-NHOJWICA.js +2367 -0
  50. package/dist/chunk-NHOJWICA.js.map +1 -0
  51. package/dist/chunk-QMFV53PP.js +1766 -0
  52. package/dist/chunk-QMFV53PP.js.map +1 -0
  53. package/dist/chunk-RDYYP36I.js +27 -0
  54. package/dist/chunk-RDYYP36I.js.map +1 -0
  55. package/dist/chunk-RF2YGILF.js +656 -0
  56. package/dist/chunk-RF2YGILF.js.map +1 -0
  57. package/dist/chunk-RTCJ35UC.js +825 -0
  58. package/dist/chunk-RTCJ35UC.js.map +1 -0
  59. package/dist/chunk-TUUGWQY5.js +3488 -0
  60. package/dist/chunk-TUUGWQY5.js.map +1 -0
  61. package/dist/chunk-WXEOP6Z4.js +577 -0
  62. package/dist/chunk-WXEOP6Z4.js.map +1 -0
  63. package/dist/chunk-WYVA6AN5.js +590 -0
  64. package/dist/chunk-WYVA6AN5.js.map +1 -0
  65. package/dist/chunk-Y2Q74PJP.js +537 -0
  66. package/dist/chunk-Y2Q74PJP.js.map +1 -0
  67. package/dist/chunk-ZFTQY7OF.js +139 -0
  68. package/dist/chunk-ZFTQY7OF.js.map +1 -0
  69. package/dist/chunk-ZSNP26VU.js +493 -0
  70. package/dist/chunk-ZSNP26VU.js.map +1 -0
  71. package/dist/context-menu/index.d.ts +1 -0
  72. package/dist/context-menu/index.js +19 -0
  73. package/dist/controls/index.d.ts +1 -0
  74. package/dist/controls/index.js +10 -0
  75. package/dist/core/error/boundary.d.ts +27 -0
  76. package/dist/core/error/boundary.d.ts.map +1 -0
  77. package/dist/core/error/constants.d.ts +33 -0
  78. package/dist/core/error/constants.d.ts.map +1 -0
  79. package/dist/core/error/index.d.ts +9 -0
  80. package/dist/core/error/index.d.ts.map +1 -0
  81. package/dist/core/error/listener.d.ts +6 -0
  82. package/dist/core/error/listener.d.ts.map +1 -0
  83. package/dist/core/error/reporter.d.ts +49 -0
  84. package/dist/core/error/reporter.d.ts.map +1 -0
  85. package/dist/core/error/theme.d.ts +10 -0
  86. package/dist/core/error/theme.d.ts.map +1 -0
  87. package/dist/core/error/types.d.ts +128 -0
  88. package/dist/core/error/types.d.ts.map +1 -0
  89. package/dist/core/error/utils.d.ts +55 -0
  90. package/dist/core/error/utils.d.ts.map +1 -0
  91. package/dist/core/kernel/adapters.d.ts +9 -0
  92. package/dist/core/kernel/adapters.d.ts.map +1 -0
  93. package/dist/core/kernel/compose.d.ts +21 -0
  94. package/dist/core/kernel/compose.d.ts.map +1 -0
  95. package/dist/core/kernel/constants.d.ts +42 -0
  96. package/dist/core/kernel/constants.d.ts.map +1 -0
  97. package/dist/core/kernel/handlers.d.ts +7 -0
  98. package/dist/core/kernel/handlers.d.ts.map +1 -0
  99. package/dist/core/kernel/hooks.d.ts +13 -0
  100. package/dist/core/kernel/hooks.d.ts.map +1 -0
  101. package/dist/core/kernel/index.d.ts +15 -0
  102. package/dist/core/kernel/index.d.ts.map +1 -0
  103. package/dist/core/kernel/installed.d.ts +28 -0
  104. package/dist/core/kernel/installed.d.ts.map +1 -0
  105. package/dist/core/kernel/module.d.ts +57 -0
  106. package/dist/core/kernel/module.d.ts.map +1 -0
  107. package/dist/core/kernel/operations-records.d.ts +25 -0
  108. package/dist/core/kernel/operations-records.d.ts.map +1 -0
  109. package/dist/core/kernel/operations-resolve.d.ts +5 -0
  110. package/dist/core/kernel/operations-resolve.d.ts.map +1 -0
  111. package/dist/core/kernel/operations.d.ts +23 -0
  112. package/dist/core/kernel/operations.d.ts.map +1 -0
  113. package/dist/core/kernel/page-controller.d.ts +20 -0
  114. package/dist/core/kernel/page-controller.d.ts.map +1 -0
  115. package/dist/core/kernel/provider.d.ts +29 -0
  116. package/dist/core/kernel/provider.d.ts.map +1 -0
  117. package/dist/core/kernel/runtime.d.ts.map +1 -0
  118. package/dist/core/kernel/schema.d.ts +13 -0
  119. package/dist/core/kernel/schema.d.ts.map +1 -0
  120. package/dist/core/kernel/stabilize.d.ts +13 -0
  121. package/dist/core/kernel/stabilize.d.ts.map +1 -0
  122. package/dist/core/kernel/store-batch.d.ts +17 -0
  123. package/dist/core/kernel/store-batch.d.ts.map +1 -0
  124. package/dist/core/kernel/store-entries.d.ts +6 -0
  125. package/dist/core/kernel/store-entries.d.ts.map +1 -0
  126. package/dist/core/kernel/store-handles.d.ts +4 -0
  127. package/dist/core/kernel/store-handles.d.ts.map +1 -0
  128. package/dist/core/kernel/store-registration.d.ts +14 -0
  129. package/dist/core/kernel/store-registration.d.ts.map +1 -0
  130. package/dist/core/kernel/store-snapshots.d.ts +14 -0
  131. package/dist/core/kernel/store-snapshots.d.ts.map +1 -0
  132. package/dist/core/kernel/store-subscriptions.d.ts +16 -0
  133. package/dist/core/kernel/store-subscriptions.d.ts.map +1 -0
  134. package/dist/core/kernel/store.d.ts +8 -0
  135. package/dist/core/kernel/store.d.ts.map +1 -0
  136. package/dist/core/kernel/types-modules.d.ts +82 -0
  137. package/dist/core/kernel/types-modules.d.ts.map +1 -0
  138. package/dist/core/kernel/types-page.d.ts +67 -0
  139. package/dist/core/kernel/types-page.d.ts.map +1 -0
  140. package/dist/core/kernel/types-store.d.ts +71 -0
  141. package/dist/core/kernel/types-store.d.ts.map +1 -0
  142. package/dist/core/kernel/types.d.ts +169 -0
  143. package/dist/core/kernel/types.d.ts.map +1 -0
  144. package/dist/core/kernel/utils.d.ts +21 -0
  145. package/dist/core/kernel/utils.d.ts.map +1 -0
  146. package/dist/core/navigation/constants.d.ts +48 -0
  147. package/dist/core/navigation/constants.d.ts.map +1 -0
  148. package/dist/core/navigation/navigator-defaults.d.ts +4 -0
  149. package/dist/core/navigation/navigator-defaults.d.ts.map +1 -0
  150. package/dist/core/navigation/navigator-holds.d.ts +8 -0
  151. package/dist/core/navigation/navigator-holds.d.ts.map +1 -0
  152. package/dist/core/navigation/navigator-patience.d.ts +15 -0
  153. package/dist/core/navigation/navigator-patience.d.ts.map +1 -0
  154. package/dist/core/navigation/navigator-payload.d.ts +6 -0
  155. package/dist/core/navigation/navigator-payload.d.ts.map +1 -0
  156. package/dist/core/navigation/navigator-prefetch.d.ts +13 -0
  157. package/dist/core/navigation/navigator-prefetch.d.ts.map +1 -0
  158. package/dist/core/navigation/navigator.d.ts +7 -0
  159. package/dist/core/navigation/navigator.d.ts.map +1 -0
  160. package/dist/core/navigation/settings.d.ts +12 -0
  161. package/dist/core/navigation/settings.d.ts.map +1 -0
  162. package/dist/core/navigation/state.d.ts +26 -0
  163. package/dist/core/navigation/state.d.ts.map +1 -0
  164. package/dist/core/navigation/types.d.ts +194 -0
  165. package/dist/core/navigation/types.d.ts.map +1 -0
  166. package/dist/core/navigation/utils.d.ts +18 -0
  167. package/dist/core/navigation/utils.d.ts.map +1 -0
  168. package/dist/core/provider/index.d.ts +31 -0
  169. package/dist/core/provider/index.d.ts.map +1 -0
  170. package/dist/dock/index.d.ts +1 -0
  171. package/dist/dock/index.js +18 -0
  172. package/dist/error/index.d.ts +1 -9
  173. package/dist/error/index.js +8 -5
  174. package/dist/events/index.d.ts +1 -0
  175. package/dist/events/index.js +83 -0
  176. package/dist/events/index.js.map +1 -0
  177. package/dist/foundation/events/index.d.ts +67 -0
  178. package/dist/foundation/events/index.d.ts.map +1 -0
  179. package/dist/foundation/recipes/anatomy.d.ts +139 -0
  180. package/dist/foundation/recipes/anatomy.d.ts.map +1 -0
  181. package/dist/foundation/recipes/cn.d.ts +17 -0
  182. package/dist/foundation/recipes/cn.d.ts.map +1 -0
  183. package/dist/foundation/recipes/define.d.ts +134 -0
  184. package/dist/foundation/recipes/define.d.ts.map +1 -0
  185. package/dist/foundation/recipes/index.d.ts +11 -0
  186. package/dist/foundation/recipes/index.d.ts.map +1 -0
  187. package/dist/foundation/recipes/recipe.d.ts +97 -0
  188. package/dist/foundation/recipes/recipe.d.ts.map +1 -0
  189. package/dist/foundation/recipes/split.d.ts +10 -0
  190. package/dist/foundation/recipes/split.d.ts.map +1 -0
  191. package/dist/foundation/result/index.d.ts +98 -0
  192. package/dist/foundation/result/index.d.ts.map +1 -0
  193. package/dist/foundation/utils/dom.d.ts +19 -0
  194. package/dist/foundation/utils/dom.d.ts.map +1 -0
  195. package/dist/foundation/utils/index.d.ts +17 -0
  196. package/dist/foundation/utils/index.d.ts.map +1 -0
  197. package/dist/foundation/utils/number.d.ts +9 -0
  198. package/dist/foundation/utils/number.d.ts.map +1 -0
  199. package/dist/foundation/utils/object.d.ts +17 -0
  200. package/dist/foundation/utils/object.d.ts.map +1 -0
  201. package/dist/foundation/utils/report.d.ts +18 -0
  202. package/dist/foundation/utils/report.d.ts.map +1 -0
  203. package/dist/foundation/utils/scheduler.d.ts +52 -0
  204. package/dist/foundation/utils/scheduler.d.ts.map +1 -0
  205. package/dist/foundation/utils/store.d.ts +21 -0
  206. package/dist/foundation/utils/store.d.ts.map +1 -0
  207. package/dist/foundation/utils/string.d.ts +18 -0
  208. package/dist/foundation/utils/string.d.ts.map +1 -0
  209. package/dist/foundation/utils/tempo.d.ts +61 -0
  210. package/dist/foundation/utils/tempo.d.ts.map +1 -0
  211. package/dist/foundation/utils/timing.d.ts +13 -0
  212. package/dist/foundation/utils/timing.d.ts.map +1 -0
  213. package/dist/foundation/utils/transform.d.ts +17 -0
  214. package/dist/foundation/utils/transform.d.ts.map +1 -0
  215. package/dist/foundation/utils/user-message.d.ts +32 -0
  216. package/dist/foundation/utils/user-message.d.ts.map +1 -0
  217. package/dist/hooks/index.d.ts +1 -10
  218. package/dist/hooks/index.js +3 -1
  219. package/dist/index.d.ts +8 -10
  220. package/dist/index.d.ts.map +1 -1
  221. package/dist/index.js +25 -20
  222. package/dist/kernel/index.d.ts +1 -15
  223. package/dist/kernel/index.js +5 -2
  224. package/dist/loading/index.d.ts +1 -0
  225. package/dist/loading/index.js +12 -0
  226. package/dist/media/index.d.ts +1 -0
  227. package/dist/media/index.js +9 -0
  228. package/dist/modal/index.d.ts +1 -0
  229. package/dist/modal/index.js +310 -0
  230. package/dist/modal/index.js.map +1 -0
  231. package/dist/modules/ambient/analyze-bounds.d.ts +12 -0
  232. package/dist/modules/ambient/analyze-bounds.d.ts.map +1 -0
  233. package/dist/modules/ambient/analyze-clusters.d.ts +14 -0
  234. package/dist/modules/ambient/analyze-clusters.d.ts.map +1 -0
  235. package/dist/modules/ambient/analyze-measures.d.ts +22 -0
  236. package/dist/modules/ambient/analyze-measures.d.ts.map +1 -0
  237. package/dist/modules/ambient/analyze-swatches.d.ts +16 -0
  238. package/dist/modules/ambient/analyze-swatches.d.ts.map +1 -0
  239. package/dist/modules/ambient/analyze.d.ts +9 -49
  240. package/dist/modules/ambient/analyze.d.ts.map +1 -1
  241. package/dist/modules/ambient/constants.d.ts +4 -1
  242. package/dist/modules/ambient/constants.d.ts.map +1 -1
  243. package/dist/modules/ambient/context.d.ts +6 -0
  244. package/dist/modules/ambient/context.d.ts.map +1 -1
  245. package/dist/modules/ambient/dom.d.ts +23 -12
  246. package/dist/modules/ambient/dom.d.ts.map +1 -1
  247. package/dist/modules/ambient/extractor.d.ts +6 -4
  248. package/dist/modules/ambient/extractor.d.ts.map +1 -1
  249. package/dist/modules/ambient/hooks.d.ts +12 -0
  250. package/dist/modules/ambient/hooks.d.ts.map +1 -1
  251. package/dist/modules/ambient/index.d.ts +2 -2
  252. package/dist/modules/ambient/index.d.ts.map +1 -1
  253. package/dist/modules/ambient/module.d.ts +12 -1
  254. package/dist/modules/ambient/module.d.ts.map +1 -1
  255. package/dist/modules/ambient/oklab.d.ts +18 -13
  256. package/dist/modules/ambient/oklab.d.ts.map +1 -1
  257. package/dist/modules/ambient/pipeline.d.ts +0 -7
  258. package/dist/modules/ambient/pipeline.d.ts.map +1 -1
  259. package/dist/modules/ambient/quantize.d.ts +2 -9
  260. package/dist/modules/ambient/quantize.d.ts.map +1 -1
  261. package/dist/modules/ambient/server/address.d.ts +8 -3
  262. package/dist/modules/ambient/server/address.d.ts.map +1 -1
  263. package/dist/modules/ambient/server/index.d.ts +20 -23
  264. package/dist/modules/ambient/server/index.d.ts.map +1 -1
  265. package/dist/modules/ambient/settings.d.ts +23 -3
  266. package/dist/modules/ambient/settings.d.ts.map +1 -1
  267. package/dist/modules/ambient/types.d.ts +98 -36
  268. package/dist/modules/ambient/types.d.ts.map +1 -1
  269. package/dist/modules/ambient/worker/index.d.ts +16 -1
  270. package/dist/modules/ambient/worker/index.d.ts.map +1 -1
  271. package/dist/modules/background/components/background-gradients.d.ts +8 -0
  272. package/dist/modules/background/components/background-gradients.d.ts.map +1 -0
  273. package/dist/modules/background/components/edge-gradient.d.ts +9 -0
  274. package/dist/modules/background/components/edge-gradient.d.ts.map +1 -0
  275. package/dist/modules/background/components/native-video.d.ts +4 -0
  276. package/dist/modules/background/components/native-video.d.ts.map +1 -0
  277. package/dist/modules/background/components/noise-overlay.d.ts +11 -0
  278. package/dist/modules/background/components/noise-overlay.d.ts.map +1 -0
  279. package/dist/modules/background/components/overlay.d.ts +6 -0
  280. package/dist/modules/background/components/overlay.d.ts.map +1 -0
  281. package/dist/modules/background/components/solid-overlay.d.ts +10 -0
  282. package/dist/modules/background/components/solid-overlay.d.ts.map +1 -0
  283. package/dist/modules/background/constants.d.ts +14 -1
  284. package/dist/modules/background/constants.d.ts.map +1 -1
  285. package/dist/modules/background/context.d.ts +7 -0
  286. package/dist/modules/background/context.d.ts.map +1 -1
  287. package/dist/modules/background/hooks/use-background-media-source.d.ts +4 -0
  288. package/dist/modules/background/hooks/use-background-media-source.d.ts.map +1 -0
  289. package/dist/modules/background/hooks/use-background-motion-model.d.ts +15 -0
  290. package/dist/modules/background/hooks/use-background-motion-model.d.ts.map +1 -0
  291. package/dist/modules/background/hooks/use-background-overlay-model.d.ts +929 -0
  292. package/dist/modules/background/hooks/use-background-overlay-model.d.ts.map +1 -0
  293. package/dist/modules/background/hooks/use-native-video-model.d.ts +22 -0
  294. package/dist/modules/background/hooks/use-native-video-model.d.ts.map +1 -0
  295. package/dist/modules/background/hooks.d.ts +20 -1
  296. package/dist/modules/background/hooks.d.ts.map +1 -1
  297. package/dist/modules/background/index.d.ts +7 -7
  298. package/dist/modules/background/index.d.ts.map +1 -1
  299. package/dist/modules/background/lib/theme.d.ts +4 -0
  300. package/dist/modules/background/lib/theme.d.ts.map +1 -0
  301. package/dist/modules/background/model/override.d.ts +14 -0
  302. package/dist/modules/background/model/override.d.ts.map +1 -0
  303. package/dist/modules/background/model/playback.d.ts +25 -0
  304. package/dist/modules/background/model/playback.d.ts.map +1 -0
  305. package/dist/modules/background/model/state.d.ts +31 -0
  306. package/dist/modules/background/model/state.d.ts.map +1 -0
  307. package/dist/modules/background/model/video-frame.d.ts +31 -0
  308. package/dist/modules/background/model/video-frame.d.ts.map +1 -0
  309. package/dist/modules/background/model/visual.d.ts +932 -0
  310. package/dist/modules/background/model/visual.d.ts.map +1 -0
  311. package/dist/modules/background/module.d.ts +11 -0
  312. package/dist/modules/background/module.d.ts.map +1 -1
  313. package/dist/modules/background/motion.d.ts.map +1 -1
  314. package/dist/modules/background/types.d.ts +66 -10
  315. package/dist/modules/background/types.d.ts.map +1 -1
  316. package/dist/modules/background/youtube/components/player.d.ts +7 -0
  317. package/dist/modules/background/youtube/components/player.d.ts.map +1 -0
  318. package/dist/modules/background/youtube/hooks/use-youtube-background-player-model.d.ts +27 -0
  319. package/dist/modules/background/youtube/hooks/use-youtube-background-player-model.d.ts.map +1 -0
  320. package/dist/modules/background/youtube/hooks/use-youtube-iframe-player.d.ts +20 -0
  321. package/dist/modules/background/youtube/hooks/use-youtube-iframe-player.d.ts.map +1 -0
  322. package/dist/modules/background/youtube/hooks/use-youtube-stream-sources.d.ts +8 -0
  323. package/dist/modules/background/youtube/hooks/use-youtube-stream-sources.d.ts.map +1 -0
  324. package/dist/modules/background/youtube/hooks/use-youtube-video-sync.d.ts +16 -0
  325. package/dist/modules/background/youtube/hooks/use-youtube-video-sync.d.ts.map +1 -0
  326. package/dist/modules/background/youtube/lib/audio.d.ts +17 -0
  327. package/dist/modules/background/youtube/lib/audio.d.ts.map +1 -0
  328. package/dist/modules/background/youtube/lib/iframe-engine.d.ts +29 -0
  329. package/dist/modules/background/youtube/lib/iframe-engine.d.ts.map +1 -0
  330. package/dist/modules/background/youtube/lib/iframe-proxy.d.ts +47 -0
  331. package/dist/modules/background/youtube/lib/iframe-proxy.d.ts.map +1 -0
  332. package/dist/modules/background/youtube/lib/iframe.d.ts +47 -0
  333. package/dist/modules/background/youtube/lib/iframe.d.ts.map +1 -0
  334. package/dist/modules/background/youtube/lib/parse.d.ts +36 -0
  335. package/dist/modules/background/youtube/lib/parse.d.ts.map +1 -0
  336. package/dist/modules/background/youtube/lib/timing.d.ts +11 -0
  337. package/dist/modules/background/youtube/lib/timing.d.ts.map +1 -0
  338. package/dist/modules/background/youtube/lib/video-events.d.ts +53 -0
  339. package/dist/modules/background/youtube/lib/video-events.d.ts.map +1 -0
  340. package/dist/modules/context-menu/constants.d.ts +30 -1
  341. package/dist/modules/context-menu/constants.d.ts.map +1 -1
  342. package/dist/modules/context-menu/context.d.ts +10 -2
  343. package/dist/modules/context-menu/context.d.ts.map +1 -1
  344. package/dist/modules/context-menu/dom.d.ts +13 -0
  345. package/dist/modules/context-menu/dom.d.ts.map +1 -1
  346. package/dist/modules/context-menu/hooks.d.ts +32 -5
  347. package/dist/modules/context-menu/hooks.d.ts.map +1 -1
  348. package/dist/modules/context-menu/index.d.ts +1 -1
  349. package/dist/modules/context-menu/index.d.ts.map +1 -1
  350. package/dist/modules/context-menu/items.d.ts +25 -0
  351. package/dist/modules/context-menu/items.d.ts.map +1 -1
  352. package/dist/modules/context-menu/module.d.ts +6 -0
  353. package/dist/modules/context-menu/module.d.ts.map +1 -1
  354. package/dist/modules/context-menu/motion.d.ts.map +1 -1
  355. package/dist/modules/context-menu/overlay.d.ts +30 -8
  356. package/dist/modules/context-menu/overlay.d.ts.map +1 -1
  357. package/dist/modules/context-menu/resolver.d.ts +8 -0
  358. package/dist/modules/context-menu/resolver.d.ts.map +1 -1
  359. package/dist/modules/context-menu/state.d.ts +9 -0
  360. package/dist/modules/context-menu/state.d.ts.map +1 -1
  361. package/dist/modules/context-menu/types.d.ts +85 -9
  362. package/dist/modules/context-menu/types.d.ts.map +1 -1
  363. package/dist/modules/controls/constants.d.ts +18 -1
  364. package/dist/modules/controls/constants.d.ts.map +1 -1
  365. package/dist/modules/controls/entries.d.ts +23 -1
  366. package/dist/modules/controls/entries.d.ts.map +1 -1
  367. package/dist/modules/controls/hooks.d.ts +11 -1
  368. package/dist/modules/controls/hooks.d.ts.map +1 -1
  369. package/dist/modules/controls/layout.d.ts +17 -0
  370. package/dist/modules/controls/layout.d.ts.map +1 -1
  371. package/dist/modules/controls/module.d.ts +7 -1
  372. package/dist/modules/controls/module.d.ts.map +1 -1
  373. package/dist/modules/controls/overlay.d.ts +11 -1
  374. package/dist/modules/controls/overlay.d.ts.map +1 -1
  375. package/dist/modules/controls/types.d.ts +51 -2
  376. package/dist/modules/controls/types.d.ts.map +1 -1
  377. package/dist/modules/dock/components/badge.d.ts +5 -0
  378. package/dist/modules/dock/components/badge.d.ts.map +1 -0
  379. package/dist/modules/dock/components/breadcrumbs-card.d.ts +6 -0
  380. package/dist/modules/dock/components/breadcrumbs-card.d.ts.map +1 -0
  381. package/dist/modules/dock/components/card-banner.d.ts +4 -0
  382. package/dist/modules/dock/components/card-banner.d.ts.map +1 -0
  383. package/dist/modules/dock/components/card-header.d.ts +4 -0
  384. package/dist/modules/dock/components/card-header.d.ts.map +1 -0
  385. package/dist/modules/dock/components/card-item.d.ts +3 -0
  386. package/dist/modules/dock/components/card-item.d.ts.map +1 -0
  387. package/dist/modules/dock/components/command-bar.d.ts +7 -0
  388. package/dist/modules/dock/components/command-bar.d.ts.map +1 -0
  389. package/dist/modules/dock/components/description.d.ts +4 -0
  390. package/dist/modules/dock/components/description.d.ts.map +1 -0
  391. package/dist/modules/dock/components/dock.d.ts +4 -0
  392. package/dist/modules/dock/components/dock.d.ts.map +1 -0
  393. package/dist/modules/dock/components/hud-view.d.ts +7 -0
  394. package/dist/modules/dock/components/hud-view.d.ts.map +1 -0
  395. package/dist/modules/dock/components/icon.d.ts +6 -0
  396. package/dist/modules/dock/components/icon.d.ts.map +1 -0
  397. package/dist/modules/dock/components/item-content.d.ts +4 -0
  398. package/dist/modules/dock/components/item-content.d.ts.map +1 -0
  399. package/dist/modules/dock/components/media-action.d.ts +4 -0
  400. package/dist/modules/dock/components/media-action.d.ts.map +1 -0
  401. package/dist/modules/dock/components/media-controls.d.ts +4 -0
  402. package/dist/modules/dock/components/media-controls.d.ts.map +1 -0
  403. package/dist/modules/dock/components/media-scrubber.d.ts +5 -0
  404. package/dist/modules/dock/components/media-scrubber.d.ts.map +1 -0
  405. package/dist/modules/dock/components/status-actions.d.ts +10 -0
  406. package/dist/modules/dock/components/status-actions.d.ts.map +1 -0
  407. package/dist/modules/dock/components/surface/action.d.ts +17 -0
  408. package/dist/modules/dock/components/surface/action.d.ts.map +1 -0
  409. package/dist/modules/dock/components/surface/controls.d.ts +12 -0
  410. package/dist/modules/dock/components/surface/controls.d.ts.map +1 -0
  411. package/dist/modules/dock/components/surface/extensions-bar.d.ts +5 -0
  412. package/dist/modules/dock/components/surface/extensions-bar.d.ts.map +1 -0
  413. package/dist/modules/dock/components/surface/header-button.d.ts +14 -0
  414. package/dist/modules/dock/components/surface/header-button.d.ts.map +1 -0
  415. package/dist/modules/dock/components/surface/item-content.d.ts +6 -0
  416. package/dist/modules/dock/components/surface/item-content.d.ts.map +1 -0
  417. package/dist/modules/dock/components/surface/shell.d.ts +3 -0
  418. package/dist/modules/dock/components/surface/shell.d.ts.map +1 -0
  419. package/dist/modules/dock/components/title.d.ts +4 -0
  420. package/dist/modules/dock/components/title.d.ts.map +1 -0
  421. package/dist/modules/dock/constants.d.ts +11 -2
  422. package/dist/modules/dock/constants.d.ts.map +1 -1
  423. package/dist/modules/dock/context.d.ts +8 -2
  424. package/dist/modules/dock/context.d.ts.map +1 -1
  425. package/dist/modules/dock/hooks/use-action-slot.d.ts +6 -0
  426. package/dist/modules/dock/hooks/use-action-slot.d.ts.map +1 -0
  427. package/dist/modules/dock/hooks/use-badge.d.ts +4 -0
  428. package/dist/modules/dock/hooks/use-badge.d.ts.map +1 -0
  429. package/dist/modules/dock/hooks/use-card-banner-model.d.ts +18 -0
  430. package/dist/modules/dock/hooks/use-card-banner-model.d.ts.map +1 -0
  431. package/dist/modules/dock/hooks/use-card-header-model.d.ts +7 -0
  432. package/dist/modules/dock/hooks/use-card-header-model.d.ts.map +1 -0
  433. package/dist/modules/dock/hooks/use-card-item-model.d.ts +1612 -0
  434. package/dist/modules/dock/hooks/use-card-item-model.d.ts.map +1 -0
  435. package/dist/modules/dock/hooks/use-command-bar-model.d.ts +12 -0
  436. package/dist/modules/dock/hooks/use-command-bar-model.d.ts.map +1 -0
  437. package/dist/modules/dock/hooks/use-dock-banner.d.ts +11 -0
  438. package/dist/modules/dock/hooks/use-dock-banner.d.ts.map +1 -0
  439. package/dist/modules/dock/hooks/use-dock-config.d.ts +19 -0
  440. package/dist/modules/dock/hooks/use-dock-config.d.ts.map +1 -0
  441. package/dist/modules/dock/hooks/use-dock-dimensions.d.ts +7 -0
  442. package/dist/modules/dock/hooks/use-dock-dimensions.d.ts.map +1 -0
  443. package/dist/modules/dock/hooks/use-dock-focus-trap.d.ts +7 -0
  444. package/dist/modules/dock/hooks/use-dock-focus-trap.d.ts.map +1 -0
  445. package/dist/modules/dock/hooks/use-dock-height-controller.d.ts +6 -0
  446. package/dist/modules/dock/hooks/use-dock-height-controller.d.ts.map +1 -0
  447. package/dist/modules/dock/hooks/use-dock-keyboard.d.ts +11 -0
  448. package/dist/modules/dock/hooks/use-dock-keyboard.d.ts.map +1 -0
  449. package/dist/modules/dock/hooks/use-dock-registration.d.ts +8 -0
  450. package/dist/modules/dock/hooks/use-dock-registration.d.ts.map +1 -0
  451. package/dist/modules/dock/hooks/use-dock-route-reset.d.ts +2 -0
  452. package/dist/modules/dock/hooks/use-dock-route-reset.d.ts.map +1 -0
  453. package/dist/modules/dock/hooks/use-dock-theme.d.ts +6 -0
  454. package/dist/modules/dock/hooks/use-dock-theme.d.ts.map +1 -0
  455. package/dist/modules/dock/hooks/use-dock-viewport.d.ts +6 -0
  456. package/dist/modules/dock/hooks/use-dock-viewport.d.ts.map +1 -0
  457. package/dist/modules/dock/hooks/use-element-height.d.ts +3 -0
  458. package/dist/modules/dock/hooks/use-element-height.d.ts.map +1 -0
  459. package/dist/modules/dock/hooks/use-hud-registry.d.ts +16 -0
  460. package/dist/modules/dock/hooks/use-hud-registry.d.ts.map +1 -0
  461. package/dist/modules/dock/hooks/use-hud-view-model.d.ts +9 -0
  462. package/dist/modules/dock/hooks/use-hud-view-model.d.ts.map +1 -0
  463. package/dist/modules/dock/hooks/use-media-controls-model.d.ts +27 -0
  464. package/dist/modules/dock/hooks/use-media-controls-model.d.ts.map +1 -0
  465. package/dist/modules/dock/hooks/use-media-scrubber-model.d.ts +27 -0
  466. package/dist/modules/dock/hooks/use-media-scrubber-model.d.ts.map +1 -0
  467. package/dist/modules/dock/hooks/use-standard-item-content-model.d.ts +12 -0
  468. package/dist/modules/dock/hooks/use-standard-item-content-model.d.ts.map +1 -0
  469. package/dist/modules/dock/hooks/use-surface-return.d.ts +8 -0
  470. package/dist/modules/dock/hooks/use-surface-return.d.ts.map +1 -0
  471. package/dist/modules/dock/hud.d.ts +8 -34
  472. package/dist/modules/dock/hud.d.ts.map +1 -1
  473. package/dist/modules/dock/index.d.ts +18 -12
  474. package/dist/modules/dock/index.d.ts.map +1 -1
  475. package/dist/modules/dock/lib/banner.d.ts +43 -0
  476. package/dist/modules/dock/lib/banner.d.ts.map +1 -0
  477. package/dist/modules/dock/lib/card-item.d.ts +46 -0
  478. package/dist/modules/dock/lib/card-item.d.ts.map +1 -0
  479. package/dist/modules/dock/lib/card.d.ts +20 -0
  480. package/dist/modules/dock/lib/card.d.ts.map +1 -0
  481. package/dist/modules/dock/lib/command-bar.d.ts +8 -0
  482. package/dist/modules/dock/lib/command-bar.d.ts.map +1 -0
  483. package/dist/modules/dock/lib/dom.d.ts +7 -0
  484. package/dist/modules/dock/lib/dom.d.ts.map +1 -0
  485. package/dist/modules/dock/lib/element-helpers.d.ts +8 -0
  486. package/dist/modules/dock/lib/element-helpers.d.ts.map +1 -0
  487. package/dist/modules/dock/lib/helpers.d.ts +19 -0
  488. package/dist/modules/dock/lib/helpers.d.ts.map +1 -0
  489. package/dist/modules/dock/lib/media.d.ts +35 -0
  490. package/dist/modules/dock/lib/media.d.ts.map +1 -0
  491. package/dist/modules/dock/lib/styles.d.ts +902 -0
  492. package/dist/modules/dock/lib/styles.d.ts.map +1 -0
  493. package/dist/modules/dock/model/hud-definition.d.ts +13 -0
  494. package/dist/modules/dock/model/hud-definition.d.ts.map +1 -0
  495. package/dist/modules/dock/model/hud.d.ts +10 -0
  496. package/dist/modules/dock/model/hud.d.ts.map +1 -0
  497. package/dist/modules/dock/model/layout.d.ts +28 -0
  498. package/dist/modules/dock/model/layout.d.ts.map +1 -0
  499. package/dist/modules/dock/model/page-entry.d.ts +11 -0
  500. package/dist/modules/dock/model/page-entry.d.ts.map +1 -0
  501. package/dist/modules/dock/model/page-surface.d.ts +4 -0
  502. package/dist/modules/dock/model/page-surface.d.ts.map +1 -0
  503. package/dist/modules/dock/model/paths.d.ts +15 -0
  504. package/dist/modules/dock/model/paths.d.ts.map +1 -0
  505. package/dist/modules/dock/model/state.d.ts +28 -0
  506. package/dist/modules/dock/model/state.d.ts.map +1 -0
  507. package/dist/modules/dock/model/surface-return.d.ts +14 -0
  508. package/dist/modules/dock/model/surface-return.d.ts.map +1 -0
  509. package/dist/modules/dock/module.d.ts +5 -7
  510. package/dist/modules/dock/module.d.ts.map +1 -1
  511. package/dist/modules/dock/motion.d.ts +716 -11
  512. package/dist/modules/dock/motion.d.ts.map +1 -1
  513. package/dist/modules/dock/provider.d.ts +2 -1
  514. package/dist/modules/dock/provider.d.ts.map +1 -1
  515. package/dist/modules/dock/routing/breadcrumbs.d.ts +6 -2
  516. package/dist/modules/dock/routing/breadcrumbs.d.ts.map +1 -1
  517. package/dist/modules/dock/routing/continuity.d.ts +46 -14
  518. package/dist/modules/dock/routing/continuity.d.ts.map +1 -1
  519. package/dist/modules/dock/routing/guards.d.ts +10 -1
  520. package/dist/modules/dock/routing/guards.d.ts.map +1 -1
  521. package/dist/modules/dock/routing/hooks/use-route-prefetch.d.ts +12 -0
  522. package/dist/modules/dock/routing/hooks/use-route-prefetch.d.ts.map +1 -0
  523. package/dist/modules/dock/routing/lib/restore.d.ts +7 -0
  524. package/dist/modules/dock/routing/lib/restore.d.ts.map +1 -0
  525. package/dist/modules/dock/routing/model/continuity.d.ts +21 -0
  526. package/dist/modules/dock/routing/model/continuity.d.ts.map +1 -0
  527. package/dist/modules/dock/routing/model/policy.d.ts +7 -0
  528. package/dist/modules/dock/routing/model/policy.d.ts.map +1 -0
  529. package/dist/modules/dock/routing/model/topology.d.ts +5 -0
  530. package/dist/modules/dock/routing/model/topology.d.ts.map +1 -0
  531. package/dist/modules/dock/routing/navigation.d.ts +10 -23
  532. package/dist/modules/dock/routing/navigation.d.ts.map +1 -1
  533. package/dist/modules/dock/runtime/commands.d.ts +10 -1
  534. package/dist/modules/dock/runtime/commands.d.ts.map +1 -1
  535. package/dist/modules/dock/runtime/display.d.ts +9 -48
  536. package/dist/modules/dock/runtime/display.d.ts.map +1 -1
  537. package/dist/modules/dock/runtime/dock.d.ts +11 -70
  538. package/dist/modules/dock/runtime/dock.d.ts.map +1 -1
  539. package/dist/modules/dock/runtime/hooks/use-dock-expansion.d.ts +10 -0
  540. package/dist/modules/dock/runtime/hooks/use-dock-expansion.d.ts.map +1 -0
  541. package/dist/modules/dock/runtime/hooks/use-dock-layout.d.ts +10 -0
  542. package/dist/modules/dock/runtime/hooks/use-dock-layout.d.ts.map +1 -0
  543. package/dist/modules/dock/runtime/hooks/use-dock-operation-state.d.ts +14 -0
  544. package/dist/modules/dock/runtime/hooks/use-dock-operation-state.d.ts.map +1 -0
  545. package/dist/modules/dock/runtime/hooks/use-dock-route-bridge.d.ts +7 -0
  546. package/dist/modules/dock/runtime/hooks/use-dock-route-bridge.d.ts.map +1 -0
  547. package/dist/modules/dock/runtime/hooks/use-dock.d.ts +30 -0
  548. package/dist/modules/dock/runtime/hooks/use-dock.d.ts.map +1 -0
  549. package/dist/modules/dock/runtime/model/attention.d.ts +25 -0
  550. package/dist/modules/dock/runtime/model/attention.d.ts.map +1 -0
  551. package/dist/modules/dock/runtime/model/cards.d.ts +64 -0
  552. package/dist/modules/dock/runtime/model/cards.d.ts.map +1 -0
  553. package/dist/modules/dock/runtime/model/items.d.ts +31 -0
  554. package/dist/modules/dock/runtime/model/items.d.ts.map +1 -0
  555. package/dist/modules/dock/runtime/model/layout.d.ts +10 -0
  556. package/dist/modules/dock/runtime/model/layout.d.ts.map +1 -0
  557. package/dist/modules/dock/runtime/pipeline.d.ts +1 -1
  558. package/dist/modules/dock/runtime/pipeline.d.ts.map +1 -1
  559. package/dist/modules/dock/runtime/provider-actions.d.ts +38 -0
  560. package/dist/modules/dock/runtime/provider-actions.d.ts.map +1 -0
  561. package/dist/modules/dock/status/action-options.d.ts +35 -0
  562. package/dist/modules/dock/status/action-options.d.ts.map +1 -0
  563. package/dist/modules/dock/status/events.d.ts +2 -2
  564. package/dist/modules/dock/status/events.d.ts.map +1 -1
  565. package/dist/modules/dock/status/hooks.d.ts +1 -1
  566. package/dist/modules/dock/status/hooks.d.ts.map +1 -1
  567. package/dist/modules/dock/status/model.d.ts +12 -32
  568. package/dist/modules/dock/status/model.d.ts.map +1 -1
  569. package/dist/modules/dock/status/state.d.ts +12 -0
  570. package/dist/modules/dock/status/state.d.ts.map +1 -0
  571. package/dist/modules/dock/surface/components/surface-extensions-provider.d.ts +5 -0
  572. package/dist/modules/dock/surface/components/surface-extensions-provider.d.ts.map +1 -0
  573. package/dist/modules/dock/surface/components/surface-flow-provider.d.ts +7 -0
  574. package/dist/modules/dock/surface/components/surface-flow-provider.d.ts.map +1 -0
  575. package/dist/modules/dock/surface/constants.d.ts +5 -0
  576. package/dist/modules/dock/surface/constants.d.ts.map +1 -0
  577. package/dist/modules/dock/surface/context.d.ts +14 -1
  578. package/dist/modules/dock/surface/context.d.ts.map +1 -1
  579. package/dist/modules/dock/surface/definition.d.ts +28 -2
  580. package/dist/modules/dock/surface/definition.d.ts.map +1 -1
  581. package/dist/modules/dock/surface/helpers.d.ts +2 -1
  582. package/dist/modules/dock/surface/helpers.d.ts.map +1 -1
  583. package/dist/modules/dock/surface/hooks/use-surface-controls-model.d.ts +15 -0
  584. package/dist/modules/dock/surface/hooks/use-surface-controls-model.d.ts.map +1 -0
  585. package/dist/modules/dock/surface/hooks/use-surface-extensions-bar-model.d.ts +7 -0
  586. package/dist/modules/dock/surface/hooks/use-surface-extensions-bar-model.d.ts.map +1 -0
  587. package/dist/modules/dock/surface/hooks/use-surface-extensions.d.ts +14 -0
  588. package/dist/modules/dock/surface/hooks/use-surface-extensions.d.ts.map +1 -0
  589. package/dist/modules/dock/surface/hooks/use-surface-flow.d.ts +20 -0
  590. package/dist/modules/dock/surface/hooks/use-surface-flow.d.ts.map +1 -0
  591. package/dist/modules/dock/surface/hooks/use-surface-header-button-model.d.ts +13 -0
  592. package/dist/modules/dock/surface/hooks/use-surface-header-button-model.d.ts.map +1 -0
  593. package/dist/modules/dock/surface/hooks/use-surface-shell-model.d.ts +28 -0
  594. package/dist/modules/dock/surface/hooks/use-surface-shell-model.d.ts.map +1 -0
  595. package/dist/modules/dock/surface/lib/drag.d.ts +9 -0
  596. package/dist/modules/dock/surface/lib/drag.d.ts.map +1 -0
  597. package/dist/modules/dock/surface/lib/target.d.ts +8 -0
  598. package/dist/modules/dock/surface/lib/target.d.ts.map +1 -0
  599. package/dist/modules/dock/surface/machine.d.ts +17 -62
  600. package/dist/modules/dock/surface/machine.d.ts.map +1 -1
  601. package/dist/modules/dock/surface/model/builder.d.ts +39 -0
  602. package/dist/modules/dock/surface/model/builder.d.ts.map +1 -0
  603. package/dist/modules/dock/surface/model/normalize.d.ts +13 -0
  604. package/dist/modules/dock/surface/model/normalize.d.ts.map +1 -0
  605. package/dist/modules/dock/surface/model/open.d.ts +26 -0
  606. package/dist/modules/dock/surface/model/open.d.ts.map +1 -0
  607. package/dist/modules/dock/surface/model/records.d.ts +45 -0
  608. package/dist/modules/dock/surface/model/records.d.ts.map +1 -0
  609. package/dist/modules/dock/surface/model/steps.d.ts +9 -0
  610. package/dist/modules/dock/surface/model/steps.d.ts.map +1 -0
  611. package/dist/modules/dock/surface/model/transition-state.d.ts +23 -0
  612. package/dist/modules/dock/surface/model/transition-state.d.ts.map +1 -0
  613. package/dist/modules/dock/surface/model/url.d.ts +14 -0
  614. package/dist/modules/dock/surface/model/url.d.ts.map +1 -0
  615. package/dist/modules/dock/surface/runtime/choreography.d.ts +22 -0
  616. package/dist/modules/dock/surface/runtime/choreography.d.ts.map +1 -0
  617. package/dist/modules/dock/surface/runtime/context.d.ts +29 -0
  618. package/dist/modules/dock/surface/runtime/context.d.ts.map +1 -0
  619. package/dist/modules/dock/surface/runtime/flows.d.ts +21 -0
  620. package/dist/modules/dock/surface/runtime/flows.d.ts.map +1 -0
  621. package/dist/modules/dock/surface/runtime/open.d.ts +6 -0
  622. package/dist/modules/dock/surface/runtime/open.d.ts.map +1 -0
  623. package/dist/modules/dock/surface/runtime/release.d.ts +9 -0
  624. package/dist/modules/dock/surface/runtime/release.d.ts.map +1 -0
  625. package/dist/modules/dock/surface/runtime/steps.d.ts +10 -0
  626. package/dist/modules/dock/surface/runtime/steps.d.ts.map +1 -0
  627. package/dist/modules/dock/surface/stack.d.ts +20 -11
  628. package/dist/modules/dock/surface/stack.d.ts.map +1 -1
  629. package/dist/modules/dock/surface/view-model.d.ts +5 -1
  630. package/dist/modules/dock/surface/view-model.d.ts.map +1 -1
  631. package/dist/modules/dock/types/card.d.ts +297 -0
  632. package/dist/modules/dock/types/card.d.ts.map +1 -0
  633. package/dist/modules/dock/types/hud.d.ts +142 -0
  634. package/dist/modules/dock/types/hud.d.ts.map +1 -0
  635. package/dist/modules/dock/types/index.d.ts +8 -0
  636. package/dist/modules/dock/types/index.d.ts.map +1 -0
  637. package/dist/modules/dock/types/media.d.ts +66 -0
  638. package/dist/modules/dock/types/media.d.ts.map +1 -0
  639. package/dist/modules/dock/types/routing.d.ts +336 -0
  640. package/dist/modules/dock/types/routing.d.ts.map +1 -0
  641. package/dist/modules/dock/types/surface-flow.d.ts +231 -0
  642. package/dist/modules/dock/types/surface-flow.d.ts.map +1 -0
  643. package/dist/modules/dock/types/surface.d.ts +194 -0
  644. package/dist/modules/dock/types/surface.d.ts.map +1 -0
  645. package/dist/modules/dock/types/theme.d.ts +201 -0
  646. package/dist/modules/dock/types/theme.d.ts.map +1 -0
  647. package/dist/modules/index.d.ts +4 -0
  648. package/dist/modules/index.d.ts.map +1 -1
  649. package/dist/modules/index.js +23 -18
  650. package/dist/modules/loading/constants.d.ts +18 -1
  651. package/dist/modules/loading/constants.d.ts.map +1 -1
  652. package/dist/modules/loading/context.d.ts +11 -1
  653. package/dist/modules/loading/context.d.ts.map +1 -1
  654. package/dist/modules/loading/hooks.d.ts +24 -1
  655. package/dist/modules/loading/hooks.d.ts.map +1 -1
  656. package/dist/modules/loading/index.d.ts +1 -1
  657. package/dist/modules/loading/index.d.ts.map +1 -1
  658. package/dist/modules/loading/module.d.ts +6 -0
  659. package/dist/modules/loading/module.d.ts.map +1 -1
  660. package/dist/modules/loading/overlay.d.ts +3 -0
  661. package/dist/modules/loading/overlay.d.ts.map +1 -1
  662. package/dist/modules/loading/state.d.ts +13 -0
  663. package/dist/modules/loading/state.d.ts.map +1 -1
  664. package/dist/modules/loading/types.d.ts +42 -2
  665. package/dist/modules/loading/types.d.ts.map +1 -1
  666. package/dist/modules/media/constants.d.ts +19 -0
  667. package/dist/modules/media/constants.d.ts.map +1 -1
  668. package/dist/modules/media/context.d.ts +11 -1
  669. package/dist/modules/media/context.d.ts.map +1 -1
  670. package/dist/modules/media/hooks.d.ts +17 -0
  671. package/dist/modules/media/hooks.d.ts.map +1 -1
  672. package/dist/modules/media/index.d.ts +1 -1
  673. package/dist/modules/media/index.d.ts.map +1 -1
  674. package/dist/modules/media/module.d.ts +4 -0
  675. package/dist/modules/media/module.d.ts.map +1 -1
  676. package/dist/modules/media/overlay.d.ts +7 -0
  677. package/dist/modules/media/overlay.d.ts.map +1 -1
  678. package/dist/modules/media/playback.d.ts +13 -0
  679. package/dist/modules/media/playback.d.ts.map +1 -1
  680. package/dist/modules/media/session.d.ts +20 -0
  681. package/dist/modules/media/session.d.ts.map +1 -1
  682. package/dist/modules/media/types.d.ts +49 -2
  683. package/dist/modules/media/types.d.ts.map +1 -1
  684. package/dist/modules/modal/components/close-button.d.ts +6 -0
  685. package/dist/modules/modal/components/close-button.d.ts.map +1 -0
  686. package/dist/modules/modal/components/modal-container.d.ts +7 -0
  687. package/dist/modules/modal/components/modal-container.d.ts.map +1 -0
  688. package/dist/modules/modal/components/modal-layer-switcher.d.ts +9 -0
  689. package/dist/modules/modal/components/modal-layer-switcher.d.ts.map +1 -0
  690. package/dist/modules/modal/components/modal-layer.d.ts +17 -0
  691. package/dist/modules/modal/components/modal-layer.d.ts.map +1 -0
  692. package/dist/modules/modal/components/overlay.d.ts +6 -0
  693. package/dist/modules/modal/components/overlay.d.ts.map +1 -0
  694. package/dist/modules/modal/components/resolve-header.d.ts +10 -0
  695. package/dist/modules/modal/components/resolve-header.d.ts.map +1 -0
  696. package/dist/modules/modal/components/slot-row.d.ts +12 -0
  697. package/dist/modules/modal/components/slot-row.d.ts.map +1 -0
  698. package/dist/modules/modal/constants.d.ts +16 -1
  699. package/dist/modules/modal/constants.d.ts.map +1 -1
  700. package/dist/modules/modal/context.d.ts +7 -1
  701. package/dist/modules/modal/context.d.ts.map +1 -1
  702. package/dist/modules/modal/hooks/use-mobile-viewport.d.ts +3 -0
  703. package/dist/modules/modal/hooks/use-mobile-viewport.d.ts.map +1 -0
  704. package/dist/modules/modal/hooks/use-modal-focus-trap.d.ts +12 -0
  705. package/dist/modules/modal/hooks/use-modal-focus-trap.d.ts.map +1 -0
  706. package/dist/modules/modal/hooks/use-modal-scroll-lock.d.ts +3 -0
  707. package/dist/modules/modal/hooks/use-modal-scroll-lock.d.ts.map +1 -0
  708. package/dist/modules/modal/hooks.d.ts +30 -4
  709. package/dist/modules/modal/hooks.d.ts.map +1 -1
  710. package/dist/modules/modal/index.d.ts +8 -7
  711. package/dist/modules/modal/index.d.ts.map +1 -1
  712. package/dist/modules/modal/lib/dom.d.ts +13 -0
  713. package/dist/modules/modal/lib/dom.d.ts.map +1 -0
  714. package/dist/modules/modal/lib/theme.d.ts +4 -0
  715. package/dist/modules/modal/lib/theme.d.ts.map +1 -0
  716. package/dist/modules/modal/model/entry.d.ts +18 -0
  717. package/dist/modules/modal/model/entry.d.ts.map +1 -0
  718. package/dist/modules/modal/model/header.d.ts +16 -0
  719. package/dist/modules/modal/model/header.d.ts.map +1 -0
  720. package/dist/modules/modal/model/identity.d.ts +13 -0
  721. package/dist/modules/modal/model/identity.d.ts.map +1 -0
  722. package/dist/modules/modal/model/layout.d.ts +37 -0
  723. package/dist/modules/modal/model/layout.d.ts.map +1 -0
  724. package/dist/modules/modal/model/state.d.ts +10 -0
  725. package/dist/modules/modal/model/state.d.ts.map +1 -0
  726. package/dist/modules/modal/module.d.ts +7 -0
  727. package/dist/modules/modal/module.d.ts.map +1 -1
  728. package/dist/modules/modal/motion.d.ts.map +1 -1
  729. package/dist/modules/modal/types.d.ts +73 -10
  730. package/dist/modules/modal/types.d.ts.map +1 -1
  731. package/dist/modules/navigation/context.d.ts +16 -5
  732. package/dist/modules/navigation/context.d.ts.map +1 -1
  733. package/dist/modules/navigation/hooks.d.ts +22 -13
  734. package/dist/modules/navigation/hooks.d.ts.map +1 -1
  735. package/dist/modules/navigation/index.d.ts +5 -5
  736. package/dist/modules/navigation/index.d.ts.map +1 -1
  737. package/dist/modules/navigation/listeners.d.ts +6 -8
  738. package/dist/modules/navigation/listeners.d.ts.map +1 -1
  739. package/dist/modules/navigation/module.d.ts +5 -2
  740. package/dist/modules/navigation/module.d.ts.map +1 -1
  741. package/dist/modules/notification/constants.d.ts +22 -2
  742. package/dist/modules/notification/constants.d.ts.map +1 -1
  743. package/dist/modules/notification/context.d.ts +12 -2
  744. package/dist/modules/notification/context.d.ts.map +1 -1
  745. package/dist/modules/notification/hooks.d.ts +32 -1
  746. package/dist/modules/notification/hooks.d.ts.map +1 -1
  747. package/dist/modules/notification/module.d.ts +3 -0
  748. package/dist/modules/notification/module.d.ts.map +1 -1
  749. package/dist/modules/notification/motion.d.ts.map +1 -1
  750. package/dist/modules/notification/overlay.d.ts.map +1 -1
  751. package/dist/modules/notification/state.d.ts +28 -0
  752. package/dist/modules/notification/state.d.ts.map +1 -1
  753. package/dist/modules/notification/types.d.ts +48 -5
  754. package/dist/modules/notification/types.d.ts.map +1 -1
  755. package/dist/navigation/index.d.ts +1 -0
  756. package/dist/navigation/index.js +189 -0
  757. package/dist/navigation/index.js.map +1 -0
  758. package/dist/notification/index.d.ts +1 -0
  759. package/dist/notification/index.js +11 -0
  760. package/dist/overlay-QHSJBV3O.js +13 -0
  761. package/dist/overlay-QHSJBV3O.js.map +1 -0
  762. package/dist/provider/index.d.ts +1 -0
  763. package/dist/provider/index.js +14 -0
  764. package/dist/react/context/index.d.ts +4 -0
  765. package/dist/react/context/index.d.ts.map +1 -0
  766. package/dist/react/hooks/index.d.ts +10 -0
  767. package/dist/react/hooks/index.d.ts.map +1 -0
  768. package/dist/react/hooks/types.d.ts +25 -0
  769. package/dist/react/hooks/types.d.ts.map +1 -0
  770. package/dist/react/hooks/use-click-outside.d.ts +6 -0
  771. package/dist/react/hooks/use-click-outside.d.ts.map +1 -0
  772. package/dist/react/hooks/use-controllable-state.d.ts +7 -0
  773. package/dist/react/hooks/use-controllable-state.d.ts.map +1 -0
  774. package/dist/react/hooks/use-fullscreen-state.d.ts +7 -0
  775. package/dist/react/hooks/use-fullscreen-state.d.ts.map +1 -0
  776. package/dist/react/hooks/use-global-event.d.ts +9 -0
  777. package/dist/react/hooks/use-global-event.d.ts.map +1 -0
  778. package/dist/react/hooks/use-hotkey.d.ts +10 -0
  779. package/dist/react/hooks/use-hotkey.d.ts.map +1 -0
  780. package/dist/react/hooks/use-required-context.d.ts +6 -0
  781. package/dist/react/hooks/use-required-context.d.ts.map +1 -0
  782. package/dist/react/hooks/use-scroll-lock.d.ts +9 -0
  783. package/dist/react/hooks/use-scroll-lock.d.ts.map +1 -0
  784. package/dist/react/hooks/use-store.d.ts +3 -0
  785. package/dist/react/hooks/use-store.d.ts.map +1 -0
  786. package/dist/react/theme/index.d.ts +82 -0
  787. package/dist/react/theme/index.d.ts.map +1 -0
  788. package/dist/react/ui/components/avatar.d.ts +6 -0
  789. package/dist/react/ui/components/avatar.d.ts.map +1 -0
  790. package/dist/react/ui/components/button.d.ts +6 -0
  791. package/dist/react/ui/components/button.d.ts.map +1 -0
  792. package/dist/react/ui/components/carousel.d.ts +6 -0
  793. package/dist/react/ui/components/carousel.d.ts.map +1 -0
  794. package/dist/react/ui/components/checkbox.d.ts +10 -0
  795. package/dist/react/ui/components/checkbox.d.ts.map +1 -0
  796. package/dist/react/ui/components/icon.d.ts +6 -0
  797. package/dist/react/ui/components/icon.d.ts.map +1 -0
  798. package/dist/react/ui/components/image.d.ts +6 -0
  799. package/dist/react/ui/components/image.d.ts.map +1 -0
  800. package/dist/react/ui/components/indicator.d.ts +45 -0
  801. package/dist/react/ui/components/indicator.d.ts.map +1 -0
  802. package/dist/react/ui/components/input.d.ts +10 -0
  803. package/dist/react/ui/components/input.d.ts.map +1 -0
  804. package/dist/react/ui/components/loader.d.ts +10 -0
  805. package/dist/react/ui/components/loader.d.ts.map +1 -0
  806. package/dist/react/ui/components/segmented.d.ts +6 -0
  807. package/dist/react/ui/components/segmented.d.ts.map +1 -0
  808. package/dist/react/ui/components/select-parts.d.ts +22 -0
  809. package/dist/react/ui/components/select-parts.d.ts.map +1 -0
  810. package/dist/react/ui/components/select.d.ts +6 -0
  811. package/dist/react/ui/components/select.d.ts.map +1 -0
  812. package/dist/react/ui/components/skeleton.d.ts +10 -0
  813. package/dist/react/ui/components/skeleton.d.ts.map +1 -0
  814. package/dist/react/ui/components/switch.d.ts +6 -0
  815. package/dist/react/ui/components/switch.d.ts.map +1 -0
  816. package/dist/react/ui/components/tooltip.d.ts +11 -0
  817. package/dist/react/ui/components/tooltip.d.ts.map +1 -0
  818. package/dist/react/ui/index.d.ts +19 -0
  819. package/dist/react/ui/index.d.ts.map +1 -0
  820. package/dist/react/ui/provider.d.ts +22 -0
  821. package/dist/react/ui/provider.d.ts.map +1 -0
  822. package/dist/react/ui/types-controls.d.ts +133 -0
  823. package/dist/react/ui/types-controls.d.ts.map +1 -0
  824. package/dist/react/ui/types.d.ts +192 -0
  825. package/dist/react/ui/types.d.ts.map +1 -0
  826. package/dist/react/ui/utils.d.ts +65 -0
  827. package/dist/react/ui/utils.d.ts.map +1 -0
  828. package/dist/recipes/index.d.ts +1 -0
  829. package/dist/recipes/index.js +233 -0
  830. package/dist/recipes/index.js.map +1 -0
  831. package/dist/result/index.d.ts +1 -0
  832. package/dist/result/index.js +98 -0
  833. package/dist/result/index.js.map +1 -0
  834. package/dist/theme/index.d.ts +1 -0
  835. package/dist/theme/index.js +6 -0
  836. package/dist/ui/index.d.ts +1 -0
  837. package/dist/ui/index.js +2268 -0
  838. package/dist/ui/index.js.map +1 -0
  839. package/dist/utils/index.d.ts +1 -15
  840. package/dist/utils/index.js +194 -71
  841. package/dist/utils/index.js.map +1 -1
  842. package/docs/README.md +58 -57
  843. package/docs/architecture-and-rules.md +133 -58
  844. package/docs/core-engine.md +36 -52
  845. package/docs/custom-modules.md +43 -32
  846. package/docs/design.md +185 -0
  847. package/docs/getting-started.md +49 -57
  848. package/docs/modules/README.md +50 -61
  849. package/docs/modules/ambient.md +95 -87
  850. package/docs/modules/background.md +39 -36
  851. package/docs/modules/context-menu.md +19 -18
  852. package/docs/modules/controls.md +13 -13
  853. package/docs/modules/dock.md +74 -93
  854. package/docs/modules/error-boundary.md +2 -2
  855. package/docs/modules/kernel.md +38 -26
  856. package/docs/modules/loading.md +14 -14
  857. package/docs/modules/media.md +13 -13
  858. package/docs/modules/modal.md +14 -14
  859. package/docs/modules/navigation.md +87 -84
  860. package/docs/modules/notification.md +13 -13
  861. package/docs/modules/result.md +22 -22
  862. package/docs/proposals/navigation.md +32 -31
  863. package/docs/testing.md +34 -28
  864. package/docs/theming.md +67 -44
  865. package/package.json +106 -88
  866. package/templates/AGENTS.md +35 -25
  867. package/dist/atoms/button.d.ts +0 -11
  868. package/dist/atoms/button.d.ts.map +0 -1
  869. package/dist/atoms/icon.d.ts +0 -15
  870. package/dist/atoms/icon.d.ts.map +0 -1
  871. package/dist/atoms/index.d.ts +0 -5
  872. package/dist/atoms/index.d.ts.map +0 -1
  873. package/dist/atoms/index.js +0 -4
  874. package/dist/atoms/spinner.d.ts +0 -9
  875. package/dist/atoms/spinner.d.ts.map +0 -1
  876. package/dist/atoms/tooltip.d.ts +0 -18
  877. package/dist/atoms/tooltip.d.ts.map +0 -1
  878. package/dist/chunk-3BUP64Q6.js +0 -105
  879. package/dist/chunk-3BUP64Q6.js.map +0 -1
  880. package/dist/chunk-4GMQKD6F.js +0 -353
  881. package/dist/chunk-4GMQKD6F.js.map +0 -1
  882. package/dist/chunk-66EYJBIP.js +0 -300
  883. package/dist/chunk-66EYJBIP.js.map +0 -1
  884. package/dist/chunk-7HQMXTNP.js +0 -419
  885. package/dist/chunk-7HQMXTNP.js.map +0 -1
  886. package/dist/chunk-7TAVYJ3A.js +0 -371
  887. package/dist/chunk-7TAVYJ3A.js.map +0 -1
  888. package/dist/chunk-AQ4BNXA2.js +0 -349
  889. package/dist/chunk-AQ4BNXA2.js.map +0 -1
  890. package/dist/chunk-CGHZSSFR.js +0 -2166
  891. package/dist/chunk-CGHZSSFR.js.map +0 -1
  892. package/dist/chunk-DGCQWQLZ.js +0 -61
  893. package/dist/chunk-DGCQWQLZ.js.map +0 -1
  894. package/dist/chunk-FIMPHODX.js +0 -67
  895. package/dist/chunk-FIMPHODX.js.map +0 -1
  896. package/dist/chunk-GF7TUX5I.js +0 -1889
  897. package/dist/chunk-GF7TUX5I.js.map +0 -1
  898. package/dist/chunk-HHWRTQKQ.js +0 -610
  899. package/dist/chunk-HHWRTQKQ.js.map +0 -1
  900. package/dist/chunk-HLL5EHXC.js +0 -485
  901. package/dist/chunk-HLL5EHXC.js.map +0 -1
  902. package/dist/chunk-I5GK7VOV.js +0 -28
  903. package/dist/chunk-I5GK7VOV.js.map +0 -1
  904. package/dist/chunk-JELG4JLT.js +0 -454
  905. package/dist/chunk-JELG4JLT.js.map +0 -1
  906. package/dist/chunk-K676GL7Z.js +0 -51
  907. package/dist/chunk-K676GL7Z.js.map +0 -1
  908. package/dist/chunk-QI3ALLIB.js +0 -38
  909. package/dist/chunk-QI3ALLIB.js.map +0 -1
  910. package/dist/chunk-R2YGFJDJ.js +0 -408
  911. package/dist/chunk-R2YGFJDJ.js.map +0 -1
  912. package/dist/chunk-RFZQWLC5.js +0 -27
  913. package/dist/chunk-RFZQWLC5.js.map +0 -1
  914. package/dist/chunk-RIOKLMYM.js +0 -145
  915. package/dist/chunk-RIOKLMYM.js.map +0 -1
  916. package/dist/chunk-RRAZKP3J.js +0 -888
  917. package/dist/chunk-RRAZKP3J.js.map +0 -1
  918. package/dist/chunk-SYAVGTOX.js +0 -521
  919. package/dist/chunk-SYAVGTOX.js.map +0 -1
  920. package/dist/chunk-TG6NMHXI.js +0 -1218
  921. package/dist/chunk-TG6NMHXI.js.map +0 -1
  922. package/dist/chunk-TV3WEF5G.js +0 -784
  923. package/dist/chunk-TV3WEF5G.js.map +0 -1
  924. package/dist/chunk-WVRMABDN.js +0 -9727
  925. package/dist/chunk-WVRMABDN.js.map +0 -1
  926. package/dist/error/boundary.d.ts +0 -14
  927. package/dist/error/boundary.d.ts.map +0 -1
  928. package/dist/error/constants.d.ts +0 -18
  929. package/dist/error/constants.d.ts.map +0 -1
  930. package/dist/error/index.d.ts.map +0 -1
  931. package/dist/error/listener.d.ts +0 -2
  932. package/dist/error/listener.d.ts.map +0 -1
  933. package/dist/error/reporter.d.ts +0 -32
  934. package/dist/error/reporter.d.ts.map +0 -1
  935. package/dist/error/theme.d.ts +0 -3
  936. package/dist/error/theme.d.ts.map +0 -1
  937. package/dist/error/types.d.ts +0 -91
  938. package/dist/error/types.d.ts.map +0 -1
  939. package/dist/error/utils.d.ts +0 -21
  940. package/dist/error/utils.d.ts.map +0 -1
  941. package/dist/events.d.ts +0 -51
  942. package/dist/events.d.ts.map +0 -1
  943. package/dist/events.js +0 -82
  944. package/dist/events.js.map +0 -1
  945. package/dist/hooks/index.d.ts.map +0 -1
  946. package/dist/hooks/types.d.ts +0 -16
  947. package/dist/hooks/types.d.ts.map +0 -1
  948. package/dist/hooks/use-click-outside.d.ts +0 -3
  949. package/dist/hooks/use-click-outside.d.ts.map +0 -1
  950. package/dist/hooks/use-controllable-state.d.ts +0 -3
  951. package/dist/hooks/use-controllable-state.d.ts.map +0 -1
  952. package/dist/hooks/use-fullscreen-state.d.ts +0 -4
  953. package/dist/hooks/use-fullscreen-state.d.ts.map +0 -1
  954. package/dist/hooks/use-global-event.d.ts +0 -5
  955. package/dist/hooks/use-global-event.d.ts.map +0 -1
  956. package/dist/hooks/use-hotkey.d.ts +0 -4
  957. package/dist/hooks/use-hotkey.d.ts.map +0 -1
  958. package/dist/hooks/use-isomorphic-layout-effect.d.ts +0 -3
  959. package/dist/hooks/use-isomorphic-layout-effect.d.ts.map +0 -1
  960. package/dist/hooks/use-required-context.d.ts +0 -3
  961. package/dist/hooks/use-required-context.d.ts.map +0 -1
  962. package/dist/hooks/use-store.d.ts +0 -3
  963. package/dist/hooks/use-store.d.ts.map +0 -1
  964. package/dist/kernel/adapters.d.ts +0 -5
  965. package/dist/kernel/adapters.d.ts.map +0 -1
  966. package/dist/kernel/compose.d.ts +0 -15
  967. package/dist/kernel/compose.d.ts.map +0 -1
  968. package/dist/kernel/constants.d.ts +0 -12
  969. package/dist/kernel/constants.d.ts.map +0 -1
  970. package/dist/kernel/context-registry.d.ts +0 -3
  971. package/dist/kernel/context-registry.d.ts.map +0 -1
  972. package/dist/kernel/handlers.d.ts +0 -3
  973. package/dist/kernel/handlers.d.ts.map +0 -1
  974. package/dist/kernel/hooks.d.ts +0 -7
  975. package/dist/kernel/hooks.d.ts.map +0 -1
  976. package/dist/kernel/index.d.ts.map +0 -1
  977. package/dist/kernel/installed.d.ts +0 -21
  978. package/dist/kernel/installed.d.ts.map +0 -1
  979. package/dist/kernel/module.d.ts +0 -32
  980. package/dist/kernel/module.d.ts.map +0 -1
  981. package/dist/kernel/operations.d.ts +0 -21
  982. package/dist/kernel/operations.d.ts.map +0 -1
  983. package/dist/kernel/page-controller.d.ts +0 -8
  984. package/dist/kernel/page-controller.d.ts.map +0 -1
  985. package/dist/kernel/provider.d.ts +0 -18
  986. package/dist/kernel/provider.d.ts.map +0 -1
  987. package/dist/kernel/runtime.d.ts.map +0 -1
  988. package/dist/kernel/schema.d.ts +0 -11
  989. package/dist/kernel/schema.d.ts.map +0 -1
  990. package/dist/kernel/store.d.ts +0 -4
  991. package/dist/kernel/store.d.ts.map +0 -1
  992. package/dist/kernel/types.d.ts +0 -233
  993. package/dist/kernel/types.d.ts.map +0 -1
  994. package/dist/kernel/utils.d.ts +0 -18
  995. package/dist/kernel/utils.d.ts.map +0 -1
  996. package/dist/modules/ambient/index.js +0 -10
  997. package/dist/modules/ambient/server/index.js +0 -221
  998. package/dist/modules/ambient/server/index.js.map +0 -1
  999. package/dist/modules/ambient/worker/index.js +0 -114
  1000. package/dist/modules/ambient/worker/index.js.map +0 -1
  1001. package/dist/modules/background/index.js +0 -9
  1002. package/dist/modules/background/overlay.d.ts +0 -135
  1003. package/dist/modules/background/overlay.d.ts.map +0 -1
  1004. package/dist/modules/background/playback.d.ts +0 -10
  1005. package/dist/modules/background/playback.d.ts.map +0 -1
  1006. package/dist/modules/background/state.d.ts +0 -9
  1007. package/dist/modules/background/state.d.ts.map +0 -1
  1008. package/dist/modules/background/visual.d.ts +0 -48
  1009. package/dist/modules/background/visual.d.ts.map +0 -1
  1010. package/dist/modules/background/youtube/iframe.d.ts +0 -52
  1011. package/dist/modules/background/youtube/iframe.d.ts.map +0 -1
  1012. package/dist/modules/background/youtube/parse.d.ts +0 -17
  1013. package/dist/modules/background/youtube/parse.d.ts.map +0 -1
  1014. package/dist/modules/background/youtube/player.d.ts +0 -28
  1015. package/dist/modules/background/youtube/player.d.ts.map +0 -1
  1016. package/dist/modules/context-menu/index.js +0 -14
  1017. package/dist/modules/controls/index.js +0 -7
  1018. package/dist/modules/dock/cards.d.ts +0 -1722
  1019. package/dist/modules/dock/cards.d.ts.map +0 -1
  1020. package/dist/modules/dock/dom.d.ts +0 -24
  1021. package/dist/modules/dock/dom.d.ts.map +0 -1
  1022. package/dist/modules/dock/helpers.d.ts +0 -25
  1023. package/dist/modules/dock/helpers.d.ts.map +0 -1
  1024. package/dist/modules/dock/hooks.d.ts +0 -42
  1025. package/dist/modules/dock/hooks.d.ts.map +0 -1
  1026. package/dist/modules/dock/index.js +0 -13
  1027. package/dist/modules/dock/layout.d.ts +0 -26
  1028. package/dist/modules/dock/layout.d.ts.map +0 -1
  1029. package/dist/modules/dock/overlay.d.ts +0 -79
  1030. package/dist/modules/dock/overlay.d.ts.map +0 -1
  1031. package/dist/modules/dock/paths.d.ts +0 -10
  1032. package/dist/modules/dock/paths.d.ts.map +0 -1
  1033. package/dist/modules/dock/state.d.ts +0 -22
  1034. package/dist/modules/dock/state.d.ts.map +0 -1
  1035. package/dist/modules/dock/styles.d.ts +0 -900
  1036. package/dist/modules/dock/styles.d.ts.map +0 -1
  1037. package/dist/modules/dock/surface/hooks.d.ts +0 -110
  1038. package/dist/modules/dock/surface/hooks.d.ts.map +0 -1
  1039. package/dist/modules/dock/types.d.ts +0 -1362
  1040. package/dist/modules/dock/types.d.ts.map +0 -1
  1041. package/dist/modules/loading/index.js +0 -8
  1042. package/dist/modules/media/index.js +0 -6
  1043. package/dist/modules/modal/dom.d.ts +0 -4
  1044. package/dist/modules/modal/dom.d.ts.map +0 -1
  1045. package/dist/modules/modal/header.d.ts +0 -7
  1046. package/dist/modules/modal/header.d.ts.map +0 -1
  1047. package/dist/modules/modal/identity.d.ts +0 -7
  1048. package/dist/modules/modal/identity.d.ts.map +0 -1
  1049. package/dist/modules/modal/index.js +0 -11
  1050. package/dist/modules/modal/layout.d.ts +0 -13
  1051. package/dist/modules/modal/layout.d.ts.map +0 -1
  1052. package/dist/modules/modal/overlay.d.ts +0 -4
  1053. package/dist/modules/modal/overlay.d.ts.map +0 -1
  1054. package/dist/modules/modal/state.d.ts +0 -4
  1055. package/dist/modules/modal/state.d.ts.map +0 -1
  1056. package/dist/modules/navigation/constants.d.ts +0 -37
  1057. package/dist/modules/navigation/constants.d.ts.map +0 -1
  1058. package/dist/modules/navigation/index.js +0 -81
  1059. package/dist/modules/navigation/index.js.map +0 -1
  1060. package/dist/modules/navigation/navigator.d.ts +0 -8
  1061. package/dist/modules/navigation/navigator.d.ts.map +0 -1
  1062. package/dist/modules/navigation/settings.d.ts +0 -10
  1063. package/dist/modules/navigation/settings.d.ts.map +0 -1
  1064. package/dist/modules/navigation/state.d.ts +0 -20
  1065. package/dist/modules/navigation/state.d.ts.map +0 -1
  1066. package/dist/modules/navigation/types.d.ts +0 -168
  1067. package/dist/modules/navigation/types.d.ts.map +0 -1
  1068. package/dist/modules/navigation/utils.d.ts +0 -11
  1069. package/dist/modules/navigation/utils.d.ts.map +0 -1
  1070. package/dist/modules/notification/index.js +0 -7
  1071. package/dist/overlay-TZ6L52A5.js +0 -9
  1072. package/dist/overlay-TZ6L52A5.js.map +0 -1
  1073. package/dist/provider.d.ts +0 -23
  1074. package/dist/provider.d.ts.map +0 -1
  1075. package/dist/provider.js +0 -9
  1076. package/dist/provider.js.map +0 -1
  1077. package/dist/result.d.ts +0 -50
  1078. package/dist/result.d.ts.map +0 -1
  1079. package/dist/result.js +0 -102
  1080. package/dist/result.js.map +0 -1
  1081. package/dist/theme.d.ts +0 -63
  1082. package/dist/theme.d.ts.map +0 -1
  1083. package/dist/theme.js +0 -6
  1084. package/dist/theme.js.map +0 -1
  1085. package/dist/tokens/index.d.ts +0 -4
  1086. package/dist/tokens/index.d.ts.map +0 -1
  1087. package/dist/tokens/index.js +0 -296
  1088. package/dist/tokens/index.js.map +0 -1
  1089. package/dist/tokens/motion-config.d.ts +0 -44
  1090. package/dist/tokens/motion-config.d.ts.map +0 -1
  1091. package/dist/tokens/motion.d.ts +0 -164
  1092. package/dist/tokens/motion.d.ts.map +0 -1
  1093. package/dist/tokens/tokens.d.ts +0 -34
  1094. package/dist/tokens/tokens.d.ts.map +0 -1
  1095. package/dist/utils/cn.d.ts +0 -3
  1096. package/dist/utils/cn.d.ts.map +0 -1
  1097. package/dist/utils/dom.d.ts +0 -5
  1098. package/dist/utils/dom.d.ts.map +0 -1
  1099. package/dist/utils/index.d.ts.map +0 -1
  1100. package/dist/utils/number.d.ts +0 -3
  1101. package/dist/utils/number.d.ts.map +0 -1
  1102. package/dist/utils/object.d.ts +0 -5
  1103. package/dist/utils/object.d.ts.map +0 -1
  1104. package/dist/utils/report.d.ts +0 -5
  1105. package/dist/utils/report.d.ts.map +0 -1
  1106. package/dist/utils/scheduler.d.ts +0 -34
  1107. package/dist/utils/scheduler.d.ts.map +0 -1
  1108. package/dist/utils/store.d.ts +0 -11
  1109. package/dist/utils/store.d.ts.map +0 -1
  1110. package/dist/utils/string.d.ts +0 -5
  1111. package/dist/utils/string.d.ts.map +0 -1
  1112. package/dist/utils/timing.d.ts +0 -7
  1113. package/dist/utils/timing.d.ts.map +0 -1
  1114. package/dist/utils/user-message.d.ts +0 -20
  1115. package/dist/utils/user-message.d.ts.map +0 -1
  1116. package/templates/motion/background.ts +0 -17
  1117. package/templates/motion/context-menu.ts +0 -63
  1118. package/templates/motion/dock.ts +0 -395
  1119. package/templates/motion/modal.ts +0 -79
  1120. package/templates/motion/notification.ts +0 -27
  1121. package/templates/motion/tokens.ts +0 -47
  1122. /package/dist/{atoms → ambient}/index.js.map +0 -0
  1123. /package/dist/{modules/ambient → background}/index.js.map +0 -0
  1124. /package/dist/{modules/background → context-menu}/index.js.map +0 -0
  1125. /package/dist/{modules/context-menu → controls}/index.js.map +0 -0
  1126. /package/dist/{kernel → core/kernel}/runtime.d.ts +0 -0
  1127. /package/dist/{modules/controls → dock}/index.js.map +0 -0
  1128. /package/dist/{modules/dock → loading}/index.js.map +0 -0
  1129. /package/dist/{modules/loading → media}/index.js.map +0 -0
  1130. /package/dist/{modules/media → notification}/index.js.map +0 -0
  1131. /package/dist/{modules/modal → provider}/index.js.map +0 -0
  1132. /package/dist/{modules/notification → theme}/index.js.map +0 -0
@@ -0,0 +1,2268 @@
1
+ "use client";
2
+ export { Tooltip, TooltipProvider } from '../chunk-37OBXNEO.js';
3
+ import { useControllableState, useEscapeKey, useScrollLock } from '../chunk-Y2Q74PJP.js';
4
+ import { splitVariants, Button } from '../chunk-LTO77WSO.js';
5
+ export { Button, splitVariants, variantNames } from '../chunk-LTO77WSO.js';
6
+ import { useUi, useUiMotion, Icon, Loader } from '../chunk-CT4UILO2.js';
7
+ export { ANATOMY, DEFAULT_LABELS, Icon, Loader, Spinner, UiProvider, compileRecipe, defaultUi, defineRecipe, defineUi, extendRecipe, joinClasses, resolveRecipe, useUi, useUiMotion } from '../chunk-CT4UILO2.js';
8
+ export { cn, createCn } from '../chunk-7RSRDKYE.js';
9
+ import '../chunk-ESD5EQ5H.js';
10
+ import { trimToNull } from '../chunk-5H6FZW3N.js';
11
+ import '../chunk-J3VTDBC6.js';
12
+ import '../chunk-BMFHS3GV.js';
13
+ import { c } from 'react/compiler-runtime';
14
+ import { createContext, useEffect, useRef, useState, useLayoutEffect, Children, useId, use, useSyncExternalStore, useEffectEvent, createElement } from 'react';
15
+ import { jsx, jsxs } from 'react/jsx-runtime';
16
+ import { motion, LayoutGroup, animate, AnimatePresence } from 'motion/react';
17
+ import { createPortal } from 'react-dom';
18
+
19
+ function initialsOf(name) {
20
+ const parts = name?.trim().split(/\s+/).filter(Boolean) ?? [];
21
+ if (parts.length === 0) return "?";
22
+ if (parts.length === 1) return parts[0].slice(0, 2).toUpperCase();
23
+ return `${parts[0][0]}${parts[parts.length - 1][0]}`.toUpperCase();
24
+ }
25
+ var EDGE_TOLERANCE = 4;
26
+ var DRAG_THRESHOLD = 5;
27
+ var SCROLL_STEP = 0.8;
28
+ var END_SNAP_RATIO = 0.25;
29
+ var FRAME_SELECTOR = "[data-carousel-frame]";
30
+ function readScroll(track) {
31
+ return {
32
+ left: track.scrollLeft > EDGE_TOLERANCE,
33
+ right: track.scrollLeft + track.clientWidth < track.scrollWidth - EDGE_TOLERANCE
34
+ };
35
+ }
36
+ function glideTarget(track, direction) {
37
+ const max = track.scrollWidth - track.clientWidth;
38
+ const wanted = track.scrollLeft + track.clientWidth * SCROLL_STEP * direction;
39
+ const edges = Array.from(track.children, (child) => child.offsetLeft - track.offsetLeft).filter((edge) => edge <= max);
40
+ if (edges.length === 0) return Math.min(max, Math.max(0, wanted));
41
+ let target = edges.reduce((best, edge) => Math.abs(edge - wanted) < Math.abs(best - wanted) ? edge : best);
42
+ const snapDistance = track.clientWidth * END_SNAP_RATIO;
43
+ if (direction === 1) {
44
+ if (target <= track.scrollLeft + EDGE_TOLERANCE) {
45
+ target = edges.find((edge) => edge > track.scrollLeft + EDGE_TOLERANCE) ?? max;
46
+ }
47
+ if (max - target < snapDistance) target = max;
48
+ } else {
49
+ if (target >= track.scrollLeft - EDGE_TOLERANCE) {
50
+ target = [...edges].reverse().find((edge) => edge < track.scrollLeft - EDGE_TOLERANCE) ?? 0;
51
+ }
52
+ if (target < snapDistance) target = 0;
53
+ }
54
+ return target;
55
+ }
56
+ function offsetTopWithin(frame, track) {
57
+ let offset = 0;
58
+ for (let node = frame; node && node !== track; node = node.offsetParent) {
59
+ offset += node.offsetTop;
60
+ }
61
+ return offset;
62
+ }
63
+ function clipPathFor(width, height, top, bottom, r) {
64
+ const arc = (x, y) => `A${r} ${r} 0 0 1 ${x} ${y}`;
65
+ return `path("${[`M0 0H${width}V${top}L${width - r} ${top}`, arc(width, top + r), `V${bottom - r}`, arc(width - r, bottom), `L${width} ${bottom}V${height}H0V${bottom}L${r} ${bottom}`, arc(0, bottom - r), `V${top + r}`, arc(r, top), `L0 ${top}Z`].join("")}")`;
66
+ }
67
+ function rackClip(track, selector = FRAME_SELECTOR) {
68
+ const frame = track.querySelector(selector);
69
+ if (!frame) return null;
70
+ const radius = Number.parseFloat(getComputedStyle(frame).borderTopLeftRadius);
71
+ if (!(radius > 0)) return null;
72
+ const width = track.offsetWidth;
73
+ const height = track.offsetHeight;
74
+ const offset = offsetTopWithin(frame, track);
75
+ const top = Math.max(0, offset);
76
+ const bottom = Math.min(height, offset + frame.offsetHeight);
77
+ const r = Math.min(radius, (bottom - top) / 2, width / 2);
78
+ if (!(r > 0) || width === 0) return null;
79
+ return clipPathFor(width, height, top, bottom, r);
80
+ }
81
+ function useDragScroll(ref) {
82
+ const $ = c(3);
83
+ let t0;
84
+ let t1;
85
+ if ($[0] !== ref) {
86
+ t0 = () => {
87
+ const track = ref.current;
88
+ if (!track) {
89
+ return;
90
+ }
91
+ let startX = 0;
92
+ let startLeft = 0;
93
+ let pressed = false;
94
+ let dragged = false;
95
+ const onDown = (event) => {
96
+ if (event.pointerType !== "mouse" || event.button !== 0) {
97
+ return;
98
+ }
99
+ pressed = true;
100
+ dragged = false;
101
+ startX = event.clientX;
102
+ startLeft = track.scrollLeft;
103
+ };
104
+ const onMove = (event_0) => {
105
+ if (!pressed) {
106
+ return;
107
+ }
108
+ const delta = event_0.clientX - startX;
109
+ if (!dragged && Math.abs(delta) > DRAG_THRESHOLD) {
110
+ dragged = true;
111
+ track.dataset.dragging = "true";
112
+ }
113
+ if (dragged) {
114
+ track.scrollLeft = startLeft - delta;
115
+ }
116
+ };
117
+ const onUp = () => {
118
+ pressed = false;
119
+ delete track.dataset.dragging;
120
+ };
121
+ const onClickCapture = (event_1) => {
122
+ if (!dragged) {
123
+ return;
124
+ }
125
+ event_1.preventDefault();
126
+ event_1.stopPropagation();
127
+ dragged = false;
128
+ };
129
+ track.addEventListener("pointerdown", onDown);
130
+ track.addEventListener("click", onClickCapture, true);
131
+ window.addEventListener("pointermove", onMove);
132
+ window.addEventListener("pointerup", onUp);
133
+ return () => {
134
+ track.removeEventListener("pointerdown", onDown);
135
+ track.removeEventListener("click", onClickCapture, true);
136
+ window.removeEventListener("pointermove", onMove);
137
+ window.removeEventListener("pointerup", onUp);
138
+ };
139
+ };
140
+ t1 = [ref];
141
+ $[0] = ref;
142
+ $[1] = t0;
143
+ $[2] = t1;
144
+ } else {
145
+ t0 = $[1];
146
+ t1 = $[2];
147
+ }
148
+ useEffect(t0, t1);
149
+ }
150
+ var farSight = null;
151
+ var FAR_ROOT_MARGIN = "50% 25%";
152
+ function watchDistance(frame) {
153
+ if (typeof IntersectionObserver === "undefined") {
154
+ frame.removeAttribute("data-far");
155
+ return () => {
156
+ };
157
+ }
158
+ farSight ??= new IntersectionObserver((entries) => {
159
+ for (const entry of entries) entry.target.toggleAttribute("data-far", !entry.isIntersecting);
160
+ }, {
161
+ rootMargin: FAR_ROOT_MARGIN
162
+ });
163
+ farSight.observe(frame);
164
+ return () => farSight?.unobserve(frame);
165
+ }
166
+ var INSTANT = {
167
+ duration: 0
168
+ };
169
+ var HIGHLIGHT_STYLE = {
170
+ inset: 0,
171
+ pointerEvents: "none",
172
+ position: "absolute"
173
+ };
174
+ var PILL_STYLE = {
175
+ left: 0,
176
+ pointerEvents: "none",
177
+ position: "absolute"
178
+ };
179
+ var PILL_BOX_STYLE = {
180
+ ...PILL_STYLE,
181
+ top: 0
182
+ };
183
+ function measureBox(chosen, wrapping) {
184
+ return wrapping ? {
185
+ height: chosen.offsetHeight,
186
+ width: chosen.offsetWidth,
187
+ x: chosen.offsetLeft,
188
+ y: chosen.offsetTop
189
+ } : {
190
+ width: chosen.offsetWidth,
191
+ x: chosen.offsetLeft
192
+ };
193
+ }
194
+ function sameBox(a, b) {
195
+ return a.x === b.x && a.y === b.y && a.width === b.width && a.height === b.height;
196
+ }
197
+ function useSlidingPill(selector, key, t0) {
198
+ const $ = c(11);
199
+ let t1;
200
+ if ($[0] !== t0) {
201
+ t1 = t0 === void 0 ? {} : t0;
202
+ $[0] = t0;
203
+ $[1] = t1;
204
+ } else {
205
+ t1 = $[1];
206
+ }
207
+ const {
208
+ wrapping: t2
209
+ } = t1;
210
+ const wrapping = t2 === void 0 ? false : t2;
211
+ const ref = useRef(null);
212
+ const [box, setBox] = useState(null);
213
+ let t3;
214
+ if ($[2] !== selector || $[3] !== wrapping) {
215
+ t3 = () => {
216
+ const list = ref.current;
217
+ if (!list) {
218
+ return;
219
+ }
220
+ const measure = () => {
221
+ const chosen = list.querySelector(selector);
222
+ if (!chosen) {
223
+ return;
224
+ }
225
+ const next = measureBox(chosen, wrapping);
226
+ setBox((prev) => prev && sameBox(prev, next) ? prev : next);
227
+ };
228
+ measure();
229
+ if (typeof ResizeObserver === "undefined") {
230
+ return;
231
+ }
232
+ const observer = new ResizeObserver(measure);
233
+ observer.observe(list);
234
+ for (const child of list.children) {
235
+ observer.observe(child);
236
+ }
237
+ return () => observer.disconnect();
238
+ };
239
+ $[2] = selector;
240
+ $[3] = wrapping;
241
+ $[4] = t3;
242
+ } else {
243
+ t3 = $[4];
244
+ }
245
+ let t4;
246
+ if ($[5] !== key || $[6] !== selector || $[7] !== wrapping) {
247
+ t4 = [key, selector, wrapping];
248
+ $[5] = key;
249
+ $[6] = selector;
250
+ $[7] = wrapping;
251
+ $[8] = t4;
252
+ } else {
253
+ t4 = $[8];
254
+ }
255
+ useLayoutEffect(t3, t4);
256
+ let t5;
257
+ if ($[9] !== box) {
258
+ t5 = {
259
+ box,
260
+ ref
261
+ };
262
+ $[9] = box;
263
+ $[10] = t5;
264
+ } else {
265
+ t5 = $[10];
266
+ }
267
+ return t5;
268
+ }
269
+ var noSubscribe = () => () => {
270
+ };
271
+ var readHost = () => document.body;
272
+ var noHost = () => null;
273
+ var canAnchor = () => typeof CSS !== "undefined" && typeof CSS.supports === "function" && CSS.supports("anchor-name", "--a");
274
+ var cannotAnchor = () => false;
275
+ function Image(t0) {
276
+ const $ = c(36);
277
+ const {
278
+ alt: t1,
279
+ className,
280
+ crossOrigin,
281
+ decoding: t2,
282
+ fallback,
283
+ fetchPriority,
284
+ fill,
285
+ loading,
286
+ onError,
287
+ onLoad,
288
+ priority: t3,
289
+ src,
290
+ wrapperClassName,
291
+ ...rest
292
+ } = t0;
293
+ const alt = t1 === void 0 ? "" : t1;
294
+ const decoding = t2 === void 0 ? "async" : t2;
295
+ const priority = t3 === void 0 ? false : t3;
296
+ const {
297
+ parts
298
+ } = useUi();
299
+ const [variants, props] = splitVariants(rest, parts.image.frame, parts.image.picture);
300
+ const layout = variants.layout;
301
+ const imageRef = useRef(null);
302
+ const frameRef = useRef(null);
303
+ let t4;
304
+ if ($[0] !== src) {
305
+ t4 = trimToNull(src);
306
+ $[0] = src;
307
+ $[1] = t4;
308
+ } else {
309
+ t4 = $[1];
310
+ }
311
+ const resolvedSrc = t4;
312
+ const [hasLoaded, setHasLoaded] = useState(false);
313
+ const [hasFailed, setHasFailed] = useState(false);
314
+ const [refused, setRefused] = useState(null);
315
+ const corsRefused = refused !== null && refused === resolvedSrc;
316
+ const fillsFrame = layout !== "intrinsic" && ((fill ?? (!props.width && !props.height)) || void 0);
317
+ const waiting = Boolean(resolvedSrc) && !hasLoaded && !hasFailed;
318
+ let t5;
319
+ let t6;
320
+ if ($[2] !== waiting) {
321
+ t5 = () => {
322
+ const frame = frameRef.current;
323
+ if (!waiting || !frame) {
324
+ return;
325
+ }
326
+ return watchDistance(frame);
327
+ };
328
+ t6 = [waiting];
329
+ $[2] = waiting;
330
+ $[3] = t5;
331
+ $[4] = t6;
332
+ } else {
333
+ t5 = $[3];
334
+ t6 = $[4];
335
+ }
336
+ useEffect(t5, t6);
337
+ let t7;
338
+ if ($[5] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
339
+ t7 = () => {
340
+ const image = imageRef.current;
341
+ setHasLoaded(Boolean(image?.complete && image.naturalWidth > 0));
342
+ setHasFailed(false);
343
+ };
344
+ $[5] = t7;
345
+ } else {
346
+ t7 = $[5];
347
+ }
348
+ let t8;
349
+ if ($[6] !== resolvedSrc) {
350
+ t8 = [resolvedSrc];
351
+ $[6] = resolvedSrc;
352
+ $[7] = t8;
353
+ } else {
354
+ t8 = $[7];
355
+ }
356
+ useEffect(t7, t8);
357
+ if (!resolvedSrc || hasFailed && fallback) {
358
+ let t92;
359
+ if ($[8] !== fallback || $[9] !== parts.image || $[10] !== wrapperClassName) {
360
+ t92 = fallback ? /* @__PURE__ */ jsx("div", { className: parts.image.fallback({
361
+ className: wrapperClassName
362
+ }), suppressHydrationWarning: true, children: fallback }) : null;
363
+ $[8] = fallback;
364
+ $[9] = parts.image;
365
+ $[10] = wrapperClassName;
366
+ $[11] = t92;
367
+ } else {
368
+ t92 = $[11];
369
+ }
370
+ return t92;
371
+ }
372
+ let t9;
373
+ if ($[12] !== onLoad) {
374
+ t9 = (event) => {
375
+ setHasLoaded(true);
376
+ setHasFailed(false);
377
+ onLoad?.(event);
378
+ };
379
+ $[12] = onLoad;
380
+ $[13] = t9;
381
+ } else {
382
+ t9 = $[13];
383
+ }
384
+ const handleLoad = t9;
385
+ let t10;
386
+ if ($[14] !== corsRefused || $[15] !== crossOrigin || $[16] !== onError || $[17] !== resolvedSrc) {
387
+ t10 = (event_0) => {
388
+ if (crossOrigin && !corsRefused) {
389
+ setRefused(resolvedSrc);
390
+ return;
391
+ }
392
+ setHasFailed(true);
393
+ onError?.(event_0);
394
+ };
395
+ $[14] = corsRefused;
396
+ $[15] = crossOrigin;
397
+ $[16] = onError;
398
+ $[17] = resolvedSrc;
399
+ $[18] = t10;
400
+ } else {
401
+ t10 = $[18];
402
+ }
403
+ const handleError = t10;
404
+ const t11 = parts.image.frame({
405
+ ...variants,
406
+ loading: !hasLoaded && !hasFailed,
407
+ className: wrapperClassName
408
+ });
409
+ const t12 = "";
410
+ const t13 = true;
411
+ const t14 = false;
412
+ const t15 = _temp;
413
+ const t16 = parts.image.picture({
414
+ ...variants,
415
+ className
416
+ });
417
+ const t17 = corsRefused ? void 0 : crossOrigin;
418
+ const t18 = hasLoaded ? "loaded" : "loading";
419
+ const t19 = loading || (priority ? "eager" : "lazy");
420
+ const t20 = fetchPriority || (priority ? "high" : void 0);
421
+ let t21;
422
+ if ($[19] !== alt || $[20] !== decoding || $[21] !== fillsFrame || $[22] !== handleError || $[23] !== handleLoad || $[24] !== props || $[25] !== resolvedSrc || $[26] !== t15 || $[27] !== t16 || $[28] !== t17 || $[29] !== t18 || $[30] !== t19 || $[31] !== t20) {
423
+ t21 = /* @__PURE__ */ jsx("img", { ref: imageRef, src: resolvedSrc, alt, draggable: t14, onDragStart: t15, className: t16, crossOrigin: t17, "data-fill": fillsFrame, "data-state": t18, onLoad: handleLoad, onError: handleError, loading: t19, fetchPriority: t20, decoding, suppressHydrationWarning: true, ...props });
424
+ $[19] = alt;
425
+ $[20] = decoding;
426
+ $[21] = fillsFrame;
427
+ $[22] = handleError;
428
+ $[23] = handleLoad;
429
+ $[24] = props;
430
+ $[25] = resolvedSrc;
431
+ $[26] = t15;
432
+ $[27] = t16;
433
+ $[28] = t17;
434
+ $[29] = t18;
435
+ $[30] = t19;
436
+ $[31] = t20;
437
+ $[32] = t21;
438
+ } else {
439
+ t21 = $[32];
440
+ }
441
+ let t22;
442
+ if ($[33] !== t11 || $[34] !== t21) {
443
+ t22 = /* @__PURE__ */ jsx("div", { className: t11, "data-far": t12, ref: frameRef, suppressHydrationWarning: t13, children: t21 });
444
+ $[33] = t11;
445
+ $[34] = t21;
446
+ $[35] = t22;
447
+ } else {
448
+ t22 = $[35];
449
+ }
450
+ return t22;
451
+ }
452
+ function _temp(event_1) {
453
+ return event_1.preventDefault();
454
+ }
455
+ var DEFAULT_ALT = "Avatar";
456
+ function Avatar(t0) {
457
+ const $ = c(37);
458
+ let alt;
459
+ let children;
460
+ let className;
461
+ let classNames;
462
+ let fallback;
463
+ let name;
464
+ let props;
465
+ let ref;
466
+ let size;
467
+ let src;
468
+ let style;
469
+ if ($[0] !== t0) {
470
+ ({
471
+ alt,
472
+ children,
473
+ className,
474
+ classNames,
475
+ fallback,
476
+ name,
477
+ ref,
478
+ size,
479
+ src,
480
+ style,
481
+ ...props
482
+ } = t0);
483
+ $[0] = t0;
484
+ $[1] = alt;
485
+ $[2] = children;
486
+ $[3] = className;
487
+ $[4] = classNames;
488
+ $[5] = fallback;
489
+ $[6] = name;
490
+ $[7] = props;
491
+ $[8] = ref;
492
+ $[9] = size;
493
+ $[10] = src;
494
+ $[11] = style;
495
+ } else {
496
+ alt = $[1];
497
+ children = $[2];
498
+ className = $[3];
499
+ classNames = $[4];
500
+ fallback = $[5];
501
+ name = $[6];
502
+ props = $[7];
503
+ ref = $[8];
504
+ size = $[9];
505
+ src = $[10];
506
+ style = $[11];
507
+ }
508
+ const {
509
+ parts
510
+ } = useUi();
511
+ const [failedSrc, setFailedSrc] = useState(null);
512
+ const dimension = typeof size === "number" ? `${size}px` : size;
513
+ let t1;
514
+ if ($[12] !== dimension) {
515
+ t1 = dimension ? {
516
+ height: dimension,
517
+ width: dimension
518
+ } : null;
519
+ $[12] = dimension;
520
+ $[13] = t1;
521
+ } else {
522
+ t1 = $[13];
523
+ }
524
+ const box = t1;
525
+ let t2;
526
+ if ($[14] !== box || $[15] !== style) {
527
+ t2 = {
528
+ ...box,
529
+ ...style
530
+ };
531
+ $[14] = box;
532
+ $[15] = style;
533
+ $[16] = t2;
534
+ } else {
535
+ t2 = $[16];
536
+ }
537
+ let t3;
538
+ if ($[17] !== className || $[18] !== classNames?.root || $[19] !== parts.avatar) {
539
+ t3 = parts.avatar.root({
540
+ className: [classNames?.root, className]
541
+ });
542
+ $[17] = className;
543
+ $[18] = classNames?.root;
544
+ $[19] = parts.avatar;
545
+ $[20] = t3;
546
+ } else {
547
+ t3 = $[20];
548
+ }
549
+ let t4;
550
+ if ($[21] !== alt || $[22] !== children || $[23] !== classNames?.image || $[24] !== classNames?.initials || $[25] !== failedSrc || $[26] !== fallback || $[27] !== name || $[28] !== parts.avatar || $[29] !== src) {
551
+ t4 = src && src !== failedSrc ? /* @__PURE__ */ jsx(Image, { src, alt: alt || name || DEFAULT_ALT, onError: () => setFailedSrc(src), className: parts.avatar.image({
552
+ className: classNames?.image
553
+ }) }) : /* @__PURE__ */ jsx("span", { className: parts.avatar.initials({
554
+ className: classNames?.initials
555
+ }), children: fallback ?? children ?? initialsOf(name || alt) });
556
+ $[21] = alt;
557
+ $[22] = children;
558
+ $[23] = classNames?.image;
559
+ $[24] = classNames?.initials;
560
+ $[25] = failedSrc;
561
+ $[26] = fallback;
562
+ $[27] = name;
563
+ $[28] = parts.avatar;
564
+ $[29] = src;
565
+ $[30] = t4;
566
+ } else {
567
+ t4 = $[30];
568
+ }
569
+ let t5;
570
+ if ($[31] !== props || $[32] !== ref || $[33] !== t2 || $[34] !== t3 || $[35] !== t4) {
571
+ t5 = /* @__PURE__ */ jsx("span", { ref, style: t2, className: t3, ...props, children: t4 });
572
+ $[31] = props;
573
+ $[32] = ref;
574
+ $[33] = t2;
575
+ $[34] = t3;
576
+ $[35] = t4;
577
+ $[36] = t5;
578
+ } else {
579
+ t5 = $[36];
580
+ }
581
+ return t5;
582
+ }
583
+ var defaultSlide = ({
584
+ children,
585
+ className
586
+ }) => /* @__PURE__ */ jsx("div", { className, children });
587
+ var NEAR_END_VIEWPORTS = 2;
588
+ var SIDES = ["left", "right"];
589
+ function syncScroll(el, onNearEnd, setScroll) {
590
+ if (!el) return;
591
+ const isNearEnd = el.clientWidth > 0 && el.scrollLeft + el.clientWidth * NEAR_END_VIEWPORTS >= el.scrollWidth;
592
+ if (isNearEnd) onNearEnd?.();
593
+ const next = readScroll(el);
594
+ setScroll((previous) => previous.left === next.left && previous.right === next.right ? previous : next);
595
+ }
596
+ function CarouselArrow(t0) {
597
+ const $ = c(20);
598
+ const {
599
+ arrowClassName,
600
+ classNames,
601
+ onClick,
602
+ side,
603
+ visible
604
+ } = t0;
605
+ const {
606
+ icons,
607
+ labels,
608
+ parts
609
+ } = useUi();
610
+ const isLeft = side === "left";
611
+ const icon = isLeft ? icons.previous : icons.next;
612
+ const label = isLeft ? labels.previous : labels.next;
613
+ const direction = isLeft ? -1 : 1;
614
+ const t1 = !visible;
615
+ let t2;
616
+ if ($[0] !== arrowClassName || $[1] !== classNames.arrow || $[2] !== parts.carousel || $[3] !== side || $[4] !== visible) {
617
+ t2 = parts.carousel.arrow({
618
+ side,
619
+ visible,
620
+ className: [classNames.arrow, arrowClassName]
621
+ });
622
+ $[0] = arrowClassName;
623
+ $[1] = classNames.arrow;
624
+ $[2] = parts.carousel;
625
+ $[3] = side;
626
+ $[4] = visible;
627
+ $[5] = t2;
628
+ } else {
629
+ t2 = $[5];
630
+ }
631
+ let t3;
632
+ if ($[6] !== direction || $[7] !== onClick) {
633
+ t3 = () => onClick(direction);
634
+ $[6] = direction;
635
+ $[7] = onClick;
636
+ $[8] = t3;
637
+ } else {
638
+ t3 = $[8];
639
+ }
640
+ const t4 = visible ? 0 : -1;
641
+ let t5;
642
+ if ($[9] !== classNames.icon || $[10] !== icon || $[11] !== parts.carousel) {
643
+ t5 = icon ? /* @__PURE__ */ jsx(Icon, { className: parts.carousel.icon({
644
+ className: classNames.icon
645
+ }), icon }) : null;
646
+ $[9] = classNames.icon;
647
+ $[10] = icon;
648
+ $[11] = parts.carousel;
649
+ $[12] = t5;
650
+ } else {
651
+ t5 = $[12];
652
+ }
653
+ let t6;
654
+ if ($[13] !== label || $[14] !== t1 || $[15] !== t2 || $[16] !== t3 || $[17] !== t4 || $[18] !== t5) {
655
+ t6 = /* @__PURE__ */ jsx(Button, { "aria-hidden": t1, "aria-label": label, className: t2, onClick: t3, tabIndex: t4, children: t5 });
656
+ $[13] = label;
657
+ $[14] = t1;
658
+ $[15] = t2;
659
+ $[16] = t3;
660
+ $[17] = t4;
661
+ $[18] = t5;
662
+ $[19] = t6;
663
+ } else {
664
+ t6 = $[19];
665
+ }
666
+ return t6;
667
+ }
668
+ function Carousel(t0) {
669
+ const $ = c(32);
670
+ const {
671
+ arrowClassName,
672
+ children,
673
+ className,
674
+ classNames: t1,
675
+ frameSelector: t2,
676
+ glide,
677
+ itemClassName,
678
+ label,
679
+ onNearEnd,
680
+ ready: t3,
681
+ renderSlide: t4,
682
+ trackProps
683
+ } = t0;
684
+ const classNames = t1 === void 0 ? {} : t1;
685
+ const frameSelector = t2 === void 0 ? FRAME_SELECTOR : t2;
686
+ const ready = t3 === void 0 ? true : t3;
687
+ const renderSlide = t4 === void 0 ? defaultSlide : t4;
688
+ const {
689
+ parts
690
+ } = useUi();
691
+ const motionTokens = useUiMotion();
692
+ const track = useRef(null);
693
+ const stopGlide = useRef(null);
694
+ let t5;
695
+ if ($[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
696
+ t5 = {
697
+ left: false,
698
+ right: false
699
+ };
700
+ $[0] = t5;
701
+ } else {
702
+ t5 = $[0];
703
+ }
704
+ const [scroll, setScroll] = useState(t5);
705
+ const nearEnd = useRef(onNearEnd);
706
+ useDragScroll(track);
707
+ let t6;
708
+ if ($[1] !== onNearEnd) {
709
+ t6 = () => {
710
+ nearEnd.current = onNearEnd;
711
+ };
712
+ $[1] = onNearEnd;
713
+ $[2] = t6;
714
+ } else {
715
+ t6 = $[2];
716
+ }
717
+ useEffect(t6);
718
+ let t7;
719
+ if ($[3] !== frameSelector) {
720
+ t7 = () => {
721
+ const el = track.current;
722
+ if (!el) {
723
+ return;
724
+ }
725
+ const sync = () => syncScroll(el, nearEnd.current, setScroll);
726
+ const clip = () => {
727
+ el.style.clipPath = rackClip(el, frameSelector) ?? "";
728
+ };
729
+ sync();
730
+ clip();
731
+ if (typeof ResizeObserver === "undefined") {
732
+ return;
733
+ }
734
+ const observer = new ResizeObserver(() => {
735
+ sync();
736
+ clip();
737
+ });
738
+ observer.observe(el);
739
+ return () => observer.disconnect();
740
+ };
741
+ $[3] = frameSelector;
742
+ $[4] = t7;
743
+ } else {
744
+ t7 = $[4];
745
+ }
746
+ let t8;
747
+ if ($[5] !== children || $[6] !== frameSelector) {
748
+ t8 = [children, frameSelector];
749
+ $[5] = children;
750
+ $[6] = frameSelector;
751
+ $[7] = t8;
752
+ } else {
753
+ t8 = $[7];
754
+ }
755
+ useEffect(t7, t8);
756
+ let t9;
757
+ if ($[8] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
758
+ t9 = () => {
759
+ stopGlide.current?.();
760
+ stopGlide.current = null;
761
+ };
762
+ $[8] = t9;
763
+ } else {
764
+ t9 = $[8];
765
+ }
766
+ const stop = t9;
767
+ let t10;
768
+ if ($[9] !== glide || $[10] !== motionTokens || $[11] !== stop) {
769
+ t10 = (direction) => {
770
+ const el_0 = track.current;
771
+ if (!el_0) {
772
+ return;
773
+ }
774
+ const target = glideTarget(el_0, direction);
775
+ stop();
776
+ if (glide) {
777
+ stopGlide.current = glide(el_0, target) ?? null;
778
+ return;
779
+ }
780
+ const motion4 = motionTokens.glide;
781
+ if (motionTokens.reduced || !motion4) {
782
+ el_0.scrollLeft = target;
783
+ return;
784
+ }
785
+ const controls = animate(el_0.scrollLeft, target, {
786
+ duration: motion4.duration,
787
+ ease: [...motion4.ease],
788
+ onUpdate: (left) => {
789
+ el_0.scrollLeft = left;
790
+ }
791
+ });
792
+ stopGlide.current = () => controls.stop();
793
+ };
794
+ $[9] = glide;
795
+ $[10] = motionTokens;
796
+ $[11] = stop;
797
+ $[12] = t10;
798
+ } else {
799
+ t10 = $[12];
800
+ }
801
+ const scrollBy = t10;
802
+ const left_0 = ready && scroll.left;
803
+ const right = ready && scroll.right;
804
+ const slideClass = parts.carousel.slide({
805
+ className: [classNames.slide, itemClassName]
806
+ });
807
+ const t11 = "carousel";
808
+ const t12 = parts.carousel.root({
809
+ className: classNames.root
810
+ });
811
+ const t13 = "group";
812
+ const t14 = parts.carousel.track({
813
+ className: [classNames.track, className]
814
+ });
815
+ const t15 = _temp2;
816
+ let t16;
817
+ if ($[13] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
818
+ t16 = () => syncScroll(track.current, nearEnd.current, setScroll);
819
+ $[13] = t16;
820
+ } else {
821
+ t16 = $[13];
822
+ }
823
+ const t17 = Children.toArray(children).map((child, index) => {
824
+ const slideKey = child.key ?? index;
825
+ return /* @__PURE__ */ jsx(SlideSlot, { children: renderSlide({
826
+ children: child,
827
+ className: slideClass,
828
+ index,
829
+ slideKey
830
+ }) }, slideKey);
831
+ });
832
+ let t18;
833
+ if ($[14] !== stop || $[15] !== t14 || $[16] !== t15 || $[17] !== t16 || $[18] !== t17 || $[19] !== trackProps) {
834
+ t18 = /* @__PURE__ */ jsx("div", { ...trackProps, className: t14, onDragStart: t15, onPointerDown: stop, onScroll: t16, onTouchStart: stop, onWheel: stop, ref: track, children: t17 });
835
+ $[14] = stop;
836
+ $[15] = t14;
837
+ $[16] = t15;
838
+ $[17] = t16;
839
+ $[18] = t17;
840
+ $[19] = trackProps;
841
+ $[20] = t18;
842
+ } else {
843
+ t18 = $[20];
844
+ }
845
+ let t19;
846
+ if ($[21] !== arrowClassName || $[22] !== classNames || $[23] !== left_0 || $[24] !== right || $[25] !== scrollBy) {
847
+ t19 = SIDES.map((side) => /* @__PURE__ */ jsx(CarouselArrow, { arrowClassName, classNames, onClick: scrollBy, side, visible: side === "left" ? left_0 : right }, side));
848
+ $[21] = arrowClassName;
849
+ $[22] = classNames;
850
+ $[23] = left_0;
851
+ $[24] = right;
852
+ $[25] = scrollBy;
853
+ $[26] = t19;
854
+ } else {
855
+ t19 = $[26];
856
+ }
857
+ let t20;
858
+ if ($[27] !== label || $[28] !== t12 || $[29] !== t18 || $[30] !== t19) {
859
+ t20 = /* @__PURE__ */ jsxs("div", { "aria-label": label, "aria-roledescription": t11, className: t12, role: t13, children: [
860
+ t18,
861
+ t19
862
+ ] });
863
+ $[27] = label;
864
+ $[28] = t12;
865
+ $[29] = t18;
866
+ $[30] = t19;
867
+ $[31] = t20;
868
+ } else {
869
+ t20 = $[31];
870
+ }
871
+ return t20;
872
+ }
873
+ function _temp2(event) {
874
+ return event.preventDefault();
875
+ }
876
+ function SlideSlot({
877
+ children
878
+ }) {
879
+ return children;
880
+ }
881
+ function CheckboxIndicator(t0) {
882
+ const $ = c(6);
883
+ const {
884
+ className,
885
+ icon,
886
+ pending: t1,
887
+ ...props
888
+ } = t0;
889
+ const pending = t1 === void 0 ? false : t1;
890
+ const {
891
+ icons,
892
+ parts
893
+ } = useUi();
894
+ const [variants] = splitVariants(props, parts.checkbox.box);
895
+ const glyph = icon ?? icons.check;
896
+ const glyphNode = glyph ? /* @__PURE__ */ jsx(Icon, { className: parts.checkbox.glyph(variants), icon: glyph }) : null;
897
+ const t2 = "true";
898
+ const t3 = parts.checkbox.box({
899
+ ...variants,
900
+ className
901
+ });
902
+ let t4;
903
+ if ($[0] !== glyphNode || $[1] !== pending) {
904
+ t4 = pending ? /* @__PURE__ */ jsx(Loader, {}) : glyphNode;
905
+ $[0] = glyphNode;
906
+ $[1] = pending;
907
+ $[2] = t4;
908
+ } else {
909
+ t4 = $[2];
910
+ }
911
+ let t5;
912
+ if ($[3] !== t3 || $[4] !== t4) {
913
+ t5 = /* @__PURE__ */ jsx("span", { "aria-hidden": t2, className: t3, children: t4 });
914
+ $[3] = t3;
915
+ $[4] = t4;
916
+ $[5] = t5;
917
+ } else {
918
+ t5 = $[5];
919
+ }
920
+ return t5;
921
+ }
922
+ function Checkbox(t0) {
923
+ const $ = c(26);
924
+ const {
925
+ checked,
926
+ children,
927
+ className,
928
+ classNames,
929
+ disabled,
930
+ icon,
931
+ onCheckedChange,
932
+ onClick,
933
+ pending,
934
+ ref,
935
+ type: t1,
936
+ ...props
937
+ } = t0;
938
+ const type = t1 === void 0 ? "button" : t1;
939
+ const {
940
+ parts
941
+ } = useUi();
942
+ const [variants, rest] = splitVariants(props, parts.checkbox.box);
943
+ const t2 = pending || void 0;
944
+ let t3;
945
+ if ($[0] !== checked || $[1] !== disabled || $[2] !== onCheckedChange || $[3] !== onClick) {
946
+ t3 = (event) => {
947
+ onClick?.(event);
948
+ if (!event.defaultPrevented && !disabled) {
949
+ onCheckedChange?.(!checked);
950
+ }
951
+ };
952
+ $[0] = checked;
953
+ $[1] = disabled;
954
+ $[2] = onCheckedChange;
955
+ $[3] = onClick;
956
+ $[4] = t3;
957
+ } else {
958
+ t3 = $[4];
959
+ }
960
+ let t4;
961
+ if ($[5] !== className || $[6] !== classNames?.root || $[7] !== parts.checkbox) {
962
+ t4 = parts.checkbox.root({
963
+ className: [classNames?.root, className]
964
+ });
965
+ $[5] = className;
966
+ $[6] = classNames?.root;
967
+ $[7] = parts.checkbox;
968
+ $[8] = t4;
969
+ } else {
970
+ t4 = $[8];
971
+ }
972
+ const t5 = classNames?.box;
973
+ let t6;
974
+ if ($[9] !== checked || $[10] !== icon || $[11] !== pending || $[12] !== t5 || $[13] !== variants) {
975
+ t6 = /* @__PURE__ */ jsx(CheckboxIndicator, { ...variants, checked, className: t5, icon, pending });
976
+ $[9] = checked;
977
+ $[10] = icon;
978
+ $[11] = pending;
979
+ $[12] = t5;
980
+ $[13] = variants;
981
+ $[14] = t6;
982
+ } else {
983
+ t6 = $[14];
984
+ }
985
+ let t7;
986
+ if ($[15] !== checked || $[16] !== children || $[17] !== disabled || $[18] !== ref || $[19] !== rest || $[20] !== t2 || $[21] !== t3 || $[22] !== t4 || $[23] !== t6 || $[24] !== type) {
987
+ t7 = /* @__PURE__ */ jsxs("button", { ref, type, role: "checkbox", "aria-checked": checked, "aria-busy": t2, disabled, onClick: t3, className: t4, ...rest, children: [
988
+ t6,
989
+ children
990
+ ] });
991
+ $[15] = checked;
992
+ $[16] = children;
993
+ $[17] = disabled;
994
+ $[18] = ref;
995
+ $[19] = rest;
996
+ $[20] = t2;
997
+ $[21] = t3;
998
+ $[22] = t4;
999
+ $[23] = t6;
1000
+ $[24] = type;
1001
+ $[25] = t7;
1002
+ } else {
1003
+ t7 = $[25];
1004
+ }
1005
+ return t7;
1006
+ }
1007
+ function SlidingHighlight(t0) {
1008
+ const $ = c(9);
1009
+ const {
1010
+ className,
1011
+ layoutId
1012
+ } = t0;
1013
+ const {
1014
+ parts
1015
+ } = useUi();
1016
+ const {
1017
+ follow,
1018
+ reduced
1019
+ } = useUiMotion();
1020
+ let t1;
1021
+ if ($[0] !== className || $[1] !== parts) {
1022
+ t1 = className ?? parts.highlight.fill();
1023
+ $[0] = className;
1024
+ $[1] = parts;
1025
+ $[2] = t1;
1026
+ } else {
1027
+ t1 = $[2];
1028
+ }
1029
+ const t2 = reduced ? INSTANT : follow ?? INSTANT;
1030
+ let t3;
1031
+ if ($[3] !== t2) {
1032
+ t3 = {
1033
+ layout: t2
1034
+ };
1035
+ $[3] = t2;
1036
+ $[4] = t3;
1037
+ } else {
1038
+ t3 = $[4];
1039
+ }
1040
+ let t4;
1041
+ if ($[5] !== layoutId || $[6] !== t1 || $[7] !== t3) {
1042
+ t4 = /* @__PURE__ */ jsx(motion.span, { "aria-hidden": "true", className: t1, layoutId, style: HIGHLIGHT_STYLE, transition: t3 });
1043
+ $[5] = layoutId;
1044
+ $[6] = t1;
1045
+ $[7] = t3;
1046
+ $[8] = t4;
1047
+ } else {
1048
+ t4 = $[8];
1049
+ }
1050
+ return t4;
1051
+ }
1052
+ function SlidingPill(t0) {
1053
+ const $ = c(11);
1054
+ const {
1055
+ box,
1056
+ className
1057
+ } = t0;
1058
+ const {
1059
+ follow,
1060
+ reduced
1061
+ } = useUiMotion();
1062
+ const isSingleLine = box.height === void 0;
1063
+ let t1;
1064
+ if ($[0] !== box.height || $[1] !== box.width || $[2] !== box.x || $[3] !== box.y || $[4] !== isSingleLine) {
1065
+ t1 = isSingleLine ? {
1066
+ width: box.width,
1067
+ x: box.x
1068
+ } : {
1069
+ height: box.height,
1070
+ width: box.width,
1071
+ x: box.x,
1072
+ y: box.y
1073
+ };
1074
+ $[0] = box.height;
1075
+ $[1] = box.width;
1076
+ $[2] = box.x;
1077
+ $[3] = box.y;
1078
+ $[4] = isSingleLine;
1079
+ $[5] = t1;
1080
+ } else {
1081
+ t1 = $[5];
1082
+ }
1083
+ const t2 = isSingleLine ? PILL_STYLE : PILL_BOX_STYLE;
1084
+ const t3 = reduced ? INSTANT : follow ?? INSTANT;
1085
+ let t4;
1086
+ if ($[6] !== className || $[7] !== t1 || $[8] !== t2 || $[9] !== t3) {
1087
+ t4 = /* @__PURE__ */ jsx(motion.span, { animate: t1, "aria-hidden": "true", className, "data-pill": "", initial: false, style: t2, transition: t3 });
1088
+ $[6] = className;
1089
+ $[7] = t1;
1090
+ $[8] = t2;
1091
+ $[9] = t3;
1092
+ $[10] = t4;
1093
+ } else {
1094
+ t4 = $[10];
1095
+ }
1096
+ return t4;
1097
+ }
1098
+ var HighlightContext = createContext(null);
1099
+ function HighlightGroup(t0) {
1100
+ const $ = c(13);
1101
+ const {
1102
+ children,
1103
+ className
1104
+ } = t0;
1105
+ const id = useId();
1106
+ const [hovered, setHovered] = useState(null);
1107
+ const [focused, setFocused] = useState(null);
1108
+ const t1 = hovered ?? focused;
1109
+ let t2;
1110
+ if ($[0] !== id || $[1] !== t1) {
1111
+ t2 = {
1112
+ active: t1,
1113
+ focus: setFocused,
1114
+ hover: setHovered,
1115
+ id
1116
+ };
1117
+ $[0] = id;
1118
+ $[1] = t1;
1119
+ $[2] = t2;
1120
+ } else {
1121
+ t2 = $[2];
1122
+ }
1123
+ const tracker = t2;
1124
+ let t3;
1125
+ if ($[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
1126
+ t3 = () => setHovered(null);
1127
+ $[3] = t3;
1128
+ } else {
1129
+ t3 = $[3];
1130
+ }
1131
+ let t4;
1132
+ if ($[4] !== children || $[5] !== className) {
1133
+ t4 = /* @__PURE__ */ jsx("div", { className, onPointerLeave: t3, children });
1134
+ $[4] = children;
1135
+ $[5] = className;
1136
+ $[6] = t4;
1137
+ } else {
1138
+ t4 = $[6];
1139
+ }
1140
+ let t5;
1141
+ if ($[7] !== id || $[8] !== t4) {
1142
+ t5 = /* @__PURE__ */ jsx(LayoutGroup, { id, children: t4 });
1143
+ $[7] = id;
1144
+ $[8] = t4;
1145
+ $[9] = t5;
1146
+ } else {
1147
+ t5 = $[9];
1148
+ }
1149
+ let t6;
1150
+ if ($[10] !== t5 || $[11] !== tracker) {
1151
+ t6 = /* @__PURE__ */ jsx(HighlightContext, { value: tracker, children: t5 });
1152
+ $[10] = t5;
1153
+ $[11] = tracker;
1154
+ $[12] = t6;
1155
+ } else {
1156
+ t6 = $[12];
1157
+ }
1158
+ return t6;
1159
+ }
1160
+ function useHighlight(key, className) {
1161
+ const $ = c(17);
1162
+ const tracker = use(HighlightContext);
1163
+ let t0;
1164
+ if ($[0] !== className || $[1] !== key || $[2] !== tracker) {
1165
+ t0 = tracker?.active === key ? /* @__PURE__ */ jsx(SlidingHighlight, { className, layoutId: `highlight-${tracker.id}` }) : null;
1166
+ $[0] = className;
1167
+ $[1] = key;
1168
+ $[2] = tracker;
1169
+ $[3] = t0;
1170
+ } else {
1171
+ t0 = $[3];
1172
+ }
1173
+ let t1;
1174
+ if ($[4] !== tracker) {
1175
+ t1 = () => tracker?.focus(null);
1176
+ $[4] = tracker;
1177
+ $[5] = t1;
1178
+ } else {
1179
+ t1 = $[5];
1180
+ }
1181
+ let t2;
1182
+ let t3;
1183
+ if ($[6] !== key || $[7] !== tracker) {
1184
+ t2 = (event) => {
1185
+ if (event.target.matches(":focus-visible")) {
1186
+ tracker?.focus(key);
1187
+ }
1188
+ };
1189
+ t3 = () => tracker?.hover(key);
1190
+ $[6] = key;
1191
+ $[7] = tracker;
1192
+ $[8] = t2;
1193
+ $[9] = t3;
1194
+ } else {
1195
+ t2 = $[8];
1196
+ t3 = $[9];
1197
+ }
1198
+ let t4;
1199
+ if ($[10] !== t1 || $[11] !== t2 || $[12] !== t3) {
1200
+ t4 = {
1201
+ onBlur: t1,
1202
+ onFocus: t2,
1203
+ onPointerEnter: t3
1204
+ };
1205
+ $[10] = t1;
1206
+ $[11] = t2;
1207
+ $[12] = t3;
1208
+ $[13] = t4;
1209
+ } else {
1210
+ t4 = $[13];
1211
+ }
1212
+ let t5;
1213
+ if ($[14] !== t0 || $[15] !== t4) {
1214
+ t5 = {
1215
+ node: t0,
1216
+ props: t4
1217
+ };
1218
+ $[14] = t0;
1219
+ $[15] = t4;
1220
+ $[16] = t5;
1221
+ } else {
1222
+ t5 = $[16];
1223
+ }
1224
+ return t5;
1225
+ }
1226
+ function useHighlightReset() {
1227
+ const tracker = use(HighlightContext);
1228
+ return {
1229
+ onPointerEnter: () => tracker?.hover(null)
1230
+ };
1231
+ }
1232
+ function Input(t0) {
1233
+ const $ = c(5);
1234
+ const {
1235
+ className,
1236
+ ref,
1237
+ type: t1,
1238
+ ...props
1239
+ } = t0;
1240
+ const type = t1 === void 0 ? "text" : t1;
1241
+ const {
1242
+ parts
1243
+ } = useUi();
1244
+ const [variants, rest] = splitVariants(props, parts.input.field);
1245
+ const t2 = parts.input.field({
1246
+ ...variants,
1247
+ className
1248
+ });
1249
+ let t3;
1250
+ if ($[0] !== ref || $[1] !== rest || $[2] !== t2 || $[3] !== type) {
1251
+ t3 = /* @__PURE__ */ jsx("input", { ref, type, className: t2, ...rest });
1252
+ $[0] = ref;
1253
+ $[1] = rest;
1254
+ $[2] = t2;
1255
+ $[3] = type;
1256
+ $[4] = t3;
1257
+ } else {
1258
+ t3 = $[4];
1259
+ }
1260
+ return t3;
1261
+ }
1262
+ function Textarea(t0) {
1263
+ const $ = c(9);
1264
+ const {
1265
+ className,
1266
+ maxHeight,
1267
+ minHeight,
1268
+ ref,
1269
+ style,
1270
+ ...props
1271
+ } = t0;
1272
+ const {
1273
+ parts
1274
+ } = useUi();
1275
+ const [variants, rest] = splitVariants(props, parts.input.field, parts.input.area);
1276
+ const t1 = parts.input.field({
1277
+ ...variants,
1278
+ className: [parts.input.area(variants), className]
1279
+ });
1280
+ let t2;
1281
+ if ($[0] !== maxHeight || $[1] !== minHeight || $[2] !== style) {
1282
+ t2 = {
1283
+ maxHeight,
1284
+ minHeight,
1285
+ ...style
1286
+ };
1287
+ $[0] = maxHeight;
1288
+ $[1] = minHeight;
1289
+ $[2] = style;
1290
+ $[3] = t2;
1291
+ } else {
1292
+ t2 = $[3];
1293
+ }
1294
+ let t3;
1295
+ if ($[4] !== ref || $[5] !== rest || $[6] !== t1 || $[7] !== t2) {
1296
+ t3 = /* @__PURE__ */ jsx("textarea", { ref, className: t1, style: t2, ...rest });
1297
+ $[4] = ref;
1298
+ $[5] = rest;
1299
+ $[6] = t1;
1300
+ $[7] = t2;
1301
+ $[8] = t3;
1302
+ } else {
1303
+ t3 = $[8];
1304
+ }
1305
+ return t3;
1306
+ }
1307
+ function Segment(t0) {
1308
+ const $ = c(35);
1309
+ const {
1310
+ active,
1311
+ classNames,
1312
+ iconSize,
1313
+ item,
1314
+ onSelect,
1315
+ pillReady,
1316
+ variants
1317
+ } = t0;
1318
+ const {
1319
+ parts
1320
+ } = useUi();
1321
+ const hasCount = item.count !== void 0 && item.count > 0;
1322
+ let T0;
1323
+ let t1;
1324
+ let t2;
1325
+ if ($[0] !== active || $[1] !== classNames?.chosen || $[2] !== classNames?.segment || $[3] !== parts.segmented || $[4] !== pillReady || $[5] !== variants) {
1326
+ const chosenClass = active && !pillReady && parts.segmented.chosen({
1327
+ className: classNames?.chosen
1328
+ });
1329
+ T0 = Button;
1330
+ t1 = active;
1331
+ t2 = parts.segmented.segment({
1332
+ ...variants,
1333
+ active,
1334
+ className: [classNames?.segment, chosenClass]
1335
+ });
1336
+ $[0] = active;
1337
+ $[1] = classNames?.chosen;
1338
+ $[2] = classNames?.segment;
1339
+ $[3] = parts.segmented;
1340
+ $[4] = pillReady;
1341
+ $[5] = variants;
1342
+ $[6] = T0;
1343
+ $[7] = t1;
1344
+ $[8] = t2;
1345
+ } else {
1346
+ T0 = $[6];
1347
+ t1 = $[7];
1348
+ t2 = $[8];
1349
+ }
1350
+ const t3 = active ? "" : void 0;
1351
+ let t4;
1352
+ if ($[9] !== item.key || $[10] !== onSelect) {
1353
+ t4 = () => onSelect(item.key);
1354
+ $[9] = item.key;
1355
+ $[10] = onSelect;
1356
+ $[11] = t4;
1357
+ } else {
1358
+ t4 = $[11];
1359
+ }
1360
+ let t5;
1361
+ if ($[12] !== classNames?.icon || $[13] !== iconSize || $[14] !== item.icon || $[15] !== parts.segmented || $[16] !== variants) {
1362
+ t5 = item.icon ? /* @__PURE__ */ jsx(Icon, { className: parts.segmented.icon({
1363
+ ...variants,
1364
+ className: classNames?.icon
1365
+ }), icon: item.icon, size: iconSize }) : null;
1366
+ $[12] = classNames?.icon;
1367
+ $[13] = iconSize;
1368
+ $[14] = item.icon;
1369
+ $[15] = parts.segmented;
1370
+ $[16] = variants;
1371
+ $[17] = t5;
1372
+ } else {
1373
+ t5 = $[17];
1374
+ }
1375
+ let t6;
1376
+ if ($[18] !== item.label) {
1377
+ t6 = /* @__PURE__ */ jsx("span", { children: item.label });
1378
+ $[18] = item.label;
1379
+ $[19] = t6;
1380
+ } else {
1381
+ t6 = $[19];
1382
+ }
1383
+ let t7;
1384
+ if ($[20] !== classNames?.count || $[21] !== hasCount || $[22] !== item.count || $[23] !== parts.segmented) {
1385
+ t7 = hasCount ? /* @__PURE__ */ jsx("span", { className: parts.segmented.count({
1386
+ className: classNames?.count
1387
+ }), children: item.count }) : null;
1388
+ $[20] = classNames?.count;
1389
+ $[21] = hasCount;
1390
+ $[22] = item.count;
1391
+ $[23] = parts.segmented;
1392
+ $[24] = t7;
1393
+ } else {
1394
+ t7 = $[24];
1395
+ }
1396
+ let t8;
1397
+ if ($[25] !== T0 || $[26] !== item.disabled || $[27] !== t1 || $[28] !== t2 || $[29] !== t3 || $[30] !== t4 || $[31] !== t5 || $[32] !== t6 || $[33] !== t7) {
1398
+ t8 = /* @__PURE__ */ jsxs(T0, { "aria-selected": t1, className: t2, "data-pill-target": t3, disabled: item.disabled, onClick: t4, role: "tab", children: [
1399
+ t5,
1400
+ t6,
1401
+ t7
1402
+ ] });
1403
+ $[25] = T0;
1404
+ $[26] = item.disabled;
1405
+ $[27] = t1;
1406
+ $[28] = t2;
1407
+ $[29] = t3;
1408
+ $[30] = t4;
1409
+ $[31] = t5;
1410
+ $[32] = t6;
1411
+ $[33] = t7;
1412
+ $[34] = t8;
1413
+ } else {
1414
+ t8 = $[34];
1415
+ }
1416
+ return t8;
1417
+ }
1418
+ function SegmentedControl(t0) {
1419
+ const $ = c(21);
1420
+ const {
1421
+ ariaLabel,
1422
+ className,
1423
+ classNames,
1424
+ iconSize,
1425
+ items,
1426
+ onChange,
1427
+ value,
1428
+ ...props
1429
+ } = t0;
1430
+ const {
1431
+ parts
1432
+ } = useUi();
1433
+ const [variants] = splitVariants(props, parts.segmented.root, parts.segmented.segment, parts.segmented.pill);
1434
+ const {
1435
+ box: pill,
1436
+ ref: listRef
1437
+ } = useSlidingPill("[data-pill-target]", value);
1438
+ if (items.length === 0) {
1439
+ return null;
1440
+ }
1441
+ const t1 = parts.segmented.root({
1442
+ ...variants,
1443
+ className: [classNames?.root, className]
1444
+ });
1445
+ const t2 = "tablist";
1446
+ const t3 = pill ? /* @__PURE__ */ jsx(SlidingPill, { box: pill, className: parts.segmented.pill({
1447
+ ...variants,
1448
+ className: classNames?.pill
1449
+ }) }) : null;
1450
+ let t4;
1451
+ if ($[0] !== classNames || $[1] !== iconSize || $[2] !== items || $[3] !== onChange || $[4] !== pill || $[5] !== value || $[6] !== variants) {
1452
+ let t52;
1453
+ if ($[8] !== classNames || $[9] !== iconSize || $[10] !== onChange || $[11] !== pill || $[12] !== value || $[13] !== variants) {
1454
+ t52 = (item) => /* @__PURE__ */ jsx(Segment, { active: item.key === value, classNames, iconSize, item, onSelect: onChange, pillReady: Boolean(pill), variants }, item.key);
1455
+ $[8] = classNames;
1456
+ $[9] = iconSize;
1457
+ $[10] = onChange;
1458
+ $[11] = pill;
1459
+ $[12] = value;
1460
+ $[13] = variants;
1461
+ $[14] = t52;
1462
+ } else {
1463
+ t52 = $[14];
1464
+ }
1465
+ t4 = items.map(t52);
1466
+ $[0] = classNames;
1467
+ $[1] = iconSize;
1468
+ $[2] = items;
1469
+ $[3] = onChange;
1470
+ $[4] = pill;
1471
+ $[5] = value;
1472
+ $[6] = variants;
1473
+ $[7] = t4;
1474
+ } else {
1475
+ t4 = $[7];
1476
+ }
1477
+ let t5;
1478
+ if ($[15] !== ariaLabel || $[16] !== listRef || $[17] !== t1 || $[18] !== t3 || $[19] !== t4) {
1479
+ t5 = /* @__PURE__ */ jsxs("div", { "aria-label": ariaLabel, className: t1, ref: listRef, role: t2, children: [
1480
+ t3,
1481
+ t4
1482
+ ] });
1483
+ $[15] = ariaLabel;
1484
+ $[16] = listRef;
1485
+ $[17] = t1;
1486
+ $[18] = t3;
1487
+ $[19] = t4;
1488
+ $[20] = t5;
1489
+ } else {
1490
+ t5 = $[20];
1491
+ }
1492
+ return t5;
1493
+ }
1494
+ function stepHighlight(enabled, highlighted, key) {
1495
+ const at = enabled.indexOf(highlighted);
1496
+ const last = enabled.length - 1;
1497
+ if (key === "ArrowDown") return at < 0 || at >= last ? 0 : at + 1;
1498
+ return at <= 0 ? last : at - 1;
1499
+ }
1500
+ function menuPlacementStyle(anchor, anchored, anchorName, offset) {
1501
+ if (anchored) {
1502
+ return {
1503
+ left: "anchor(left)",
1504
+ marginTop: offset,
1505
+ position: "fixed",
1506
+ positionAnchor: anchorName,
1507
+ positionTryFallbacks: "flip-block",
1508
+ top: "anchor(bottom)",
1509
+ width: "anchor-size(width)"
1510
+ };
1511
+ }
1512
+ return {
1513
+ "--select-available-height": `${anchor.maxHeight}px`,
1514
+ left: anchor.left,
1515
+ marginBottom: anchor.up ? offset : 0,
1516
+ marginTop: anchor.up ? 0 : offset,
1517
+ position: "fixed",
1518
+ width: anchor.width,
1519
+ ...anchor.up ? {
1520
+ bottom: anchor.edge,
1521
+ top: "auto"
1522
+ } : {
1523
+ top: anchor.edge
1524
+ }
1525
+ };
1526
+ }
1527
+ function SelectOptionRow(t0) {
1528
+ const $ = c(61);
1529
+ const {
1530
+ classNames,
1531
+ highlighted,
1532
+ index,
1533
+ onChoose,
1534
+ onHover,
1535
+ option,
1536
+ optionMotion,
1537
+ selected,
1538
+ variants
1539
+ } = t0;
1540
+ const {
1541
+ icons,
1542
+ parts
1543
+ } = useUi();
1544
+ const t1 = optionMotion ? "initial" : false;
1545
+ const t2 = option.disabled;
1546
+ const t3 = highlighted || void 0;
1547
+ let t4;
1548
+ if ($[0] !== index || $[1] !== onHover || $[2] !== option.disabled) {
1549
+ t4 = () => {
1550
+ if (!option.disabled) {
1551
+ onHover(index);
1552
+ }
1553
+ };
1554
+ $[0] = index;
1555
+ $[1] = onHover;
1556
+ $[2] = option.disabled;
1557
+ $[3] = t4;
1558
+ } else {
1559
+ t4 = $[3];
1560
+ }
1561
+ let t5;
1562
+ if ($[4] !== onChoose || $[5] !== option) {
1563
+ t5 = () => onChoose(option);
1564
+ $[4] = onChoose;
1565
+ $[5] = option;
1566
+ $[6] = t5;
1567
+ } else {
1568
+ t5 = $[6];
1569
+ }
1570
+ let t6;
1571
+ if ($[7] !== classNames.option || $[8] !== parts.select || $[9] !== variants) {
1572
+ t6 = parts.select.option({
1573
+ ...variants,
1574
+ className: classNames.option
1575
+ });
1576
+ $[7] = classNames.option;
1577
+ $[8] = parts.select;
1578
+ $[9] = variants;
1579
+ $[10] = t6;
1580
+ } else {
1581
+ t6 = $[10];
1582
+ }
1583
+ let t7;
1584
+ if ($[11] !== classNames.highlight || $[12] !== highlighted || $[13] !== parts.select) {
1585
+ t7 = highlighted ? /* @__PURE__ */ jsx(SlidingHighlight, { className: parts.select.highlight({
1586
+ className: classNames.highlight
1587
+ }), layoutId: "select-option-highlight" }) : null;
1588
+ $[11] = classNames.highlight;
1589
+ $[12] = highlighted;
1590
+ $[13] = parts.select;
1591
+ $[14] = t7;
1592
+ } else {
1593
+ t7 = $[14];
1594
+ }
1595
+ let t8;
1596
+ if ($[15] !== classNames.optionBody || $[16] !== parts.select) {
1597
+ t8 = parts.select.optionBody({
1598
+ className: classNames.optionBody
1599
+ });
1600
+ $[15] = classNames.optionBody;
1601
+ $[16] = parts.select;
1602
+ $[17] = t8;
1603
+ } else {
1604
+ t8 = $[17];
1605
+ }
1606
+ let t9;
1607
+ if ($[18] !== classNames.icon || $[19] !== option.icon || $[20] !== parts.select) {
1608
+ t9 = option.icon ? /* @__PURE__ */ jsx(Icon, { icon: option.icon, className: parts.select.icon({
1609
+ className: classNames.icon
1610
+ }) }) : null;
1611
+ $[18] = classNames.icon;
1612
+ $[19] = option.icon;
1613
+ $[20] = parts.select;
1614
+ $[21] = t9;
1615
+ } else {
1616
+ t9 = $[21];
1617
+ }
1618
+ let t10;
1619
+ if ($[22] !== classNames.text || $[23] !== parts.select) {
1620
+ t10 = parts.select.text({
1621
+ className: classNames.text
1622
+ });
1623
+ $[22] = classNames.text;
1624
+ $[23] = parts.select;
1625
+ $[24] = t10;
1626
+ } else {
1627
+ t10 = $[24];
1628
+ }
1629
+ let t11;
1630
+ if ($[25] !== classNames.label || $[26] !== parts.select) {
1631
+ t11 = parts.select.label({
1632
+ className: classNames.label
1633
+ });
1634
+ $[25] = classNames.label;
1635
+ $[26] = parts.select;
1636
+ $[27] = t11;
1637
+ } else {
1638
+ t11 = $[27];
1639
+ }
1640
+ let t12;
1641
+ if ($[28] !== option.label || $[29] !== t11) {
1642
+ t12 = /* @__PURE__ */ jsx("span", { className: t11, children: option.label });
1643
+ $[28] = option.label;
1644
+ $[29] = t11;
1645
+ $[30] = t12;
1646
+ } else {
1647
+ t12 = $[30];
1648
+ }
1649
+ let t13;
1650
+ if ($[31] !== classNames.description || $[32] !== option.description || $[33] !== parts.select) {
1651
+ t13 = option.description ? /* @__PURE__ */ jsx("span", { className: parts.select.description({
1652
+ className: classNames.description
1653
+ }), children: option.description }) : null;
1654
+ $[31] = classNames.description;
1655
+ $[32] = option.description;
1656
+ $[33] = parts.select;
1657
+ $[34] = t13;
1658
+ } else {
1659
+ t13 = $[34];
1660
+ }
1661
+ let t14;
1662
+ if ($[35] !== t10 || $[36] !== t12 || $[37] !== t13) {
1663
+ t14 = /* @__PURE__ */ jsxs("span", { className: t10, children: [
1664
+ t12,
1665
+ t13
1666
+ ] });
1667
+ $[35] = t10;
1668
+ $[36] = t12;
1669
+ $[37] = t13;
1670
+ $[38] = t14;
1671
+ } else {
1672
+ t14 = $[38];
1673
+ }
1674
+ let t15;
1675
+ if ($[39] !== t14 || $[40] !== t8 || $[41] !== t9) {
1676
+ t15 = /* @__PURE__ */ jsxs("span", { className: t8, children: [
1677
+ t9,
1678
+ t14
1679
+ ] });
1680
+ $[39] = t14;
1681
+ $[40] = t8;
1682
+ $[41] = t9;
1683
+ $[42] = t15;
1684
+ } else {
1685
+ t15 = $[42];
1686
+ }
1687
+ let t16;
1688
+ if ($[43] !== classNames.check || $[44] !== icons || $[45] !== parts.select || $[46] !== selected) {
1689
+ t16 = selected && icons.selected ? /* @__PURE__ */ jsx(Icon, { icon: icons.selected, className: parts.select.check({
1690
+ className: classNames.check
1691
+ }) }) : null;
1692
+ $[43] = classNames.check;
1693
+ $[44] = icons;
1694
+ $[45] = parts.select;
1695
+ $[46] = selected;
1696
+ $[47] = t16;
1697
+ } else {
1698
+ t16 = $[47];
1699
+ }
1700
+ let t17;
1701
+ if ($[48] !== index || $[49] !== option.disabled || $[50] !== optionMotion || $[51] !== selected || $[52] !== t1 || $[53] !== t15 || $[54] !== t16 || $[55] !== t3 || $[56] !== t4 || $[57] !== t5 || $[58] !== t6 || $[59] !== t7) {
1702
+ t17 = /* @__PURE__ */ jsxs(motion.div, { animate: "animate", custom: index, initial: t1, role: "option", variants: optionMotion, "aria-selected": selected, "aria-disabled": t2, "data-highlighted": t3, onMouseEnter: t4, onClick: t5, className: t6, children: [
1703
+ t7,
1704
+ t15,
1705
+ t16
1706
+ ] });
1707
+ $[48] = index;
1708
+ $[49] = option.disabled;
1709
+ $[50] = optionMotion;
1710
+ $[51] = selected;
1711
+ $[52] = t1;
1712
+ $[53] = t15;
1713
+ $[54] = t16;
1714
+ $[55] = t3;
1715
+ $[56] = t4;
1716
+ $[57] = t5;
1717
+ $[58] = t6;
1718
+ $[59] = t7;
1719
+ $[60] = t17;
1720
+ } else {
1721
+ t17 = $[60];
1722
+ }
1723
+ return t17;
1724
+ }
1725
+ var NO_HIGHLIGHT = -1;
1726
+ var ARROW_KEYS = ["ArrowDown", "ArrowUp"];
1727
+ var SELECT_KEYS = ["Enter", " "];
1728
+ var NON_IDENTIFIER_CHARS = /[^a-zA-Z0-9_-]/g;
1729
+ function Select(t0) {
1730
+ const $ = c(67);
1731
+ const {
1732
+ ariaLabel,
1733
+ className,
1734
+ classNames: t1,
1735
+ collisionPadding: t2,
1736
+ defaultValue,
1737
+ disabled,
1738
+ empty,
1739
+ floatingProps,
1740
+ name,
1741
+ offset: t3,
1742
+ onChange,
1743
+ options,
1744
+ placeholder,
1745
+ placement: t4,
1746
+ value: valueProp,
1747
+ ...props
1748
+ } = t0;
1749
+ const classNames = t1 === void 0 ? {} : t1;
1750
+ const collisionPadding = t2 === void 0 ? 0 : t2;
1751
+ const offset = t3 === void 0 ? 0 : t3;
1752
+ const placement = t4 === void 0 ? "popover" : t4;
1753
+ const {
1754
+ icons,
1755
+ labels,
1756
+ parts
1757
+ } = useUi();
1758
+ const motionTokens = useUiMotion();
1759
+ const [variants] = splitVariants(props, parts.select.trigger, parts.select.menu, parts.select.option);
1760
+ const generatedId = useId();
1761
+ const listboxId = `select-listbox-${generatedId}`;
1762
+ let t5;
1763
+ if ($[0] !== defaultValue || $[1] !== valueProp) {
1764
+ t5 = {
1765
+ defaultValue,
1766
+ value: valueProp
1767
+ };
1768
+ $[0] = defaultValue;
1769
+ $[1] = valueProp;
1770
+ $[2] = t5;
1771
+ } else {
1772
+ t5 = $[2];
1773
+ }
1774
+ const [selectedValue, setSelectedValue] = useControllableState(t5);
1775
+ const [isOpen, setIsOpen] = useState(false);
1776
+ const [highlightedIndex, setHighlightedIndex] = useState(NO_HIGHLIGHT);
1777
+ const rootRef = useRef(null);
1778
+ const triggerRef = useRef(null);
1779
+ const menuRef = useRef(null);
1780
+ const host = useSyncExternalStore(noSubscribe, readHost, noHost);
1781
+ const [anchor, setAnchor] = useState(null);
1782
+ const floating = placement === "popover" && host !== null && anchor !== null;
1783
+ const anchored = useSyncExternalStore(noSubscribe, canAnchor, cannotAnchor);
1784
+ let t6;
1785
+ if ($[3] !== generatedId) {
1786
+ t6 = generatedId.replace(NON_IDENTIFIER_CHARS, "");
1787
+ $[3] = generatedId;
1788
+ $[4] = t6;
1789
+ } else {
1790
+ t6 = $[4];
1791
+ }
1792
+ const anchorName = `--select-${t6}`;
1793
+ let t7;
1794
+ if ($[5] !== collisionPadding || $[6] !== offset || $[7] !== options.length) {
1795
+ t7 = () => {
1796
+ const box = triggerRef.current?.getBoundingClientRect();
1797
+ if (!box) {
1798
+ return;
1799
+ }
1800
+ const wanted = options.length * box.height;
1801
+ const below = window.innerHeight - box.bottom - offset - collisionPadding;
1802
+ const above = box.top - offset - collisionPadding;
1803
+ const up = wanted > below && above > below;
1804
+ setAnchor({
1805
+ edge: up ? window.innerHeight - box.top : box.bottom,
1806
+ left: box.left,
1807
+ maxHeight: Math.max(0, up ? above : below),
1808
+ up,
1809
+ width: box.width
1810
+ });
1811
+ };
1812
+ $[5] = collisionPadding;
1813
+ $[6] = offset;
1814
+ $[7] = options.length;
1815
+ $[8] = t7;
1816
+ } else {
1817
+ t7 = $[8];
1818
+ }
1819
+ const place = t7;
1820
+ const onViewportChange = useEffectEvent(place);
1821
+ let t8;
1822
+ if ($[9] !== options || $[10] !== selectedValue) {
1823
+ t8 = options.find((option) => option.value === selectedValue) ?? null;
1824
+ $[9] = options;
1825
+ $[10] = selectedValue;
1826
+ $[11] = t8;
1827
+ } else {
1828
+ t8 = $[11];
1829
+ }
1830
+ const selectedOption = t8;
1831
+ let t9;
1832
+ if ($[12] !== options) {
1833
+ t9 = options.flatMap(_temp3);
1834
+ $[12] = options;
1835
+ $[13] = t9;
1836
+ } else {
1837
+ t9 = $[13];
1838
+ }
1839
+ const enabledIndices = t9;
1840
+ let t10;
1841
+ if ($[14] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
1842
+ t10 = () => setIsOpen(false);
1843
+ $[14] = t10;
1844
+ } else {
1845
+ t10 = $[14];
1846
+ }
1847
+ const close = t10;
1848
+ let t11;
1849
+ if ($[15] !== enabledIndices || $[16] !== options || $[17] !== place || $[18] !== selectedValue) {
1850
+ t11 = () => {
1851
+ place();
1852
+ setIsOpen(true);
1853
+ const selected = options.findIndex((option_1) => option_1.value === selectedValue && !option_1.disabled);
1854
+ setHighlightedIndex(selected >= 0 ? selected : enabledIndices[0] ?? NO_HIGHLIGHT);
1855
+ };
1856
+ $[15] = enabledIndices;
1857
+ $[16] = options;
1858
+ $[17] = place;
1859
+ $[18] = selectedValue;
1860
+ $[19] = t11;
1861
+ } else {
1862
+ t11 = $[19];
1863
+ }
1864
+ const open = t11;
1865
+ let t12;
1866
+ if ($[20] !== isOpen) {
1867
+ t12 = () => {
1868
+ if (!isOpen) {
1869
+ return;
1870
+ }
1871
+ close();
1872
+ triggerRef.current?.focus();
1873
+ };
1874
+ $[20] = isOpen;
1875
+ $[21] = t12;
1876
+ } else {
1877
+ t12 = $[21];
1878
+ }
1879
+ useEscapeKey(t12, isOpen);
1880
+ let t13;
1881
+ let t14;
1882
+ if ($[22] !== isOpen) {
1883
+ t13 = () => {
1884
+ if (!isOpen) {
1885
+ return;
1886
+ }
1887
+ const handlePointerDownOutside = (event) => {
1888
+ const target = event.target;
1889
+ if (!rootRef.current?.contains(target) && !menuRef.current?.contains(target)) {
1890
+ setIsOpen(false);
1891
+ }
1892
+ };
1893
+ document.addEventListener("mousedown", handlePointerDownOutside);
1894
+ return () => document.removeEventListener("mousedown", handlePointerDownOutside);
1895
+ };
1896
+ t14 = [isOpen];
1897
+ $[22] = isOpen;
1898
+ $[23] = t13;
1899
+ $[24] = t14;
1900
+ } else {
1901
+ t13 = $[23];
1902
+ t14 = $[24];
1903
+ }
1904
+ useEffect(t13, t14);
1905
+ let t15;
1906
+ if ($[25] !== anchored || $[26] !== isOpen || $[27] !== onViewportChange || $[28] !== placement) {
1907
+ t15 = () => {
1908
+ if (!isOpen || placement !== "popover" || anchored) {
1909
+ return;
1910
+ }
1911
+ const handleViewportChange = () => onViewportChange();
1912
+ window.addEventListener("scroll", handleViewportChange, {
1913
+ capture: true,
1914
+ passive: true
1915
+ });
1916
+ window.addEventListener("resize", handleViewportChange);
1917
+ return () => {
1918
+ window.removeEventListener("scroll", handleViewportChange, {
1919
+ capture: true
1920
+ });
1921
+ window.removeEventListener("resize", handleViewportChange);
1922
+ };
1923
+ };
1924
+ $[25] = anchored;
1925
+ $[26] = isOpen;
1926
+ $[27] = onViewportChange;
1927
+ $[28] = placement;
1928
+ $[29] = t15;
1929
+ } else {
1930
+ t15 = $[29];
1931
+ }
1932
+ let t16;
1933
+ if ($[30] !== anchored || $[31] !== isOpen || $[32] !== placement) {
1934
+ t16 = [anchored, isOpen, placement];
1935
+ $[30] = anchored;
1936
+ $[31] = isOpen;
1937
+ $[32] = placement;
1938
+ $[33] = t16;
1939
+ } else {
1940
+ t16 = $[33];
1941
+ }
1942
+ useEffect(t15, t16);
1943
+ useScrollLock(isOpen);
1944
+ let t17;
1945
+ if ($[34] !== onChange || $[35] !== setSelectedValue) {
1946
+ t17 = (option_2) => {
1947
+ if (option_2.disabled) {
1948
+ return;
1949
+ }
1950
+ setSelectedValue(option_2.value);
1951
+ onChange?.(option_2.value, option_2);
1952
+ close();
1953
+ triggerRef.current?.focus();
1954
+ };
1955
+ $[34] = onChange;
1956
+ $[35] = setSelectedValue;
1957
+ $[36] = t17;
1958
+ } else {
1959
+ t17 = $[36];
1960
+ }
1961
+ const choose = t17;
1962
+ let t18;
1963
+ if ($[37] !== choose || $[38] !== enabledIndices || $[39] !== highlightedIndex || $[40] !== isOpen || $[41] !== open || $[42] !== options) {
1964
+ t18 = (event_0) => {
1965
+ if (ARROW_KEYS.includes(event_0.key)) {
1966
+ event_0.preventDefault();
1967
+ if (!isOpen) {
1968
+ open();
1969
+ return;
1970
+ }
1971
+ if (enabledIndices.length === 0) {
1972
+ return;
1973
+ }
1974
+ const next = stepHighlight(enabledIndices, highlightedIndex, event_0.key);
1975
+ setHighlightedIndex(enabledIndices[next]);
1976
+ return;
1977
+ }
1978
+ if (SELECT_KEYS.includes(event_0.key)) {
1979
+ event_0.preventDefault();
1980
+ if (!isOpen) {
1981
+ open();
1982
+ return;
1983
+ }
1984
+ const candidate = options[highlightedIndex];
1985
+ if (candidate && !candidate.disabled) {
1986
+ choose(candidate);
1987
+ } else {
1988
+ close();
1989
+ }
1990
+ }
1991
+ };
1992
+ $[37] = choose;
1993
+ $[38] = enabledIndices;
1994
+ $[39] = highlightedIndex;
1995
+ $[40] = isOpen;
1996
+ $[41] = open;
1997
+ $[42] = options;
1998
+ $[43] = t18;
1999
+ } else {
2000
+ t18 = $[43];
2001
+ }
2002
+ const handleTriggerKeyDown = t18;
2003
+ const rise = floating && anchor.up ? -1 : 1;
2004
+ const {
2005
+ menu: menuMotion,
2006
+ option: optionMotion
2007
+ } = motionTokens;
2008
+ const iconClass = parts.select.icon({
2009
+ className: classNames.icon
2010
+ });
2011
+ const labelClass = parts.select.label({
2012
+ className: classNames.label
2013
+ });
2014
+ let t19;
2015
+ if ($[44] !== anchor || $[45] !== anchorName || $[46] !== anchored || $[47] !== floating || $[48] !== offset) {
2016
+ t19 = floating && anchor ? menuPlacementStyle(anchor, anchored, anchorName, offset) : {};
2017
+ $[44] = anchor;
2018
+ $[45] = anchorName;
2019
+ $[46] = anchored;
2020
+ $[47] = floating;
2021
+ $[48] = offset;
2022
+ $[49] = t19;
2023
+ } else {
2024
+ t19 = $[49];
2025
+ }
2026
+ const menuStyle = t19;
2027
+ const t20 = isOpen ? /* @__PURE__ */ createElement(motion.div, { ...floating ? floatingProps : null, animate: "animate", custom: rise, exit: "exit", id: listboxId, initial: menuMotion ? "initial" : false, key: "listbox", ref: menuRef, role: "listbox", style: {
2028
+ ...menuStyle,
2029
+ transformOrigin: floating && anchor.up ? "bottom" : "top"
2030
+ }, variants: menuMotion, className: parts.select.menu({
2031
+ ...variants,
2032
+ className: [classNames.menu, classNames.content]
2033
+ }) }, options.length === 0 ? /* @__PURE__ */ jsx("div", { className: parts.select.empty({
2034
+ className: classNames.empty
2035
+ }), children: empty ?? labels.empty }) : /* @__PURE__ */ jsx(LayoutGroup, { id: `select-options-${generatedId}`, children: options.map((option_3, index_0) => /* @__PURE__ */ jsx(SelectOptionRow, { classNames, highlighted: index_0 === highlightedIndex && !option_3.disabled, index: index_0, onChoose: choose, onHover: setHighlightedIndex, option: option_3, optionMotion, selected: option_3.value === selectedValue, variants }, option_3.value)) })) : null;
2036
+ let t21;
2037
+ if ($[50] !== rise || $[51] !== t20) {
2038
+ t21 = /* @__PURE__ */ jsx(AnimatePresence, { custom: rise, children: t20 });
2039
+ $[50] = rise;
2040
+ $[51] = t20;
2041
+ $[52] = t21;
2042
+ } else {
2043
+ t21 = $[52];
2044
+ }
2045
+ const menu = t21;
2046
+ let t22;
2047
+ if ($[53] !== name || $[54] !== selectedValue) {
2048
+ t22 = name ? /* @__PURE__ */ jsx("input", { type: "hidden", name, value: selectedValue ?? "" }) : null;
2049
+ $[53] = name;
2050
+ $[54] = selectedValue;
2051
+ $[55] = t22;
2052
+ } else {
2053
+ t22 = $[55];
2054
+ }
2055
+ let t23;
2056
+ if ($[56] !== anchorName || $[57] !== anchored || $[58] !== placement) {
2057
+ t23 = anchored && placement === "popover" ? {
2058
+ anchorName
2059
+ } : void 0;
2060
+ $[56] = anchorName;
2061
+ $[57] = anchored;
2062
+ $[58] = placement;
2063
+ $[59] = t23;
2064
+ } else {
2065
+ t23 = $[59];
2066
+ }
2067
+ let t24;
2068
+ if ($[60] !== isOpen || $[61] !== open) {
2069
+ t24 = () => isOpen ? close() : open();
2070
+ $[60] = isOpen;
2071
+ $[61] = open;
2072
+ $[62] = t24;
2073
+ } else {
2074
+ t24 = $[62];
2075
+ }
2076
+ let t25;
2077
+ if ($[63] !== floating || $[64] !== host || $[65] !== menu) {
2078
+ t25 = floating ? createPortal(menu, host) : menu;
2079
+ $[63] = floating;
2080
+ $[64] = host;
2081
+ $[65] = menu;
2082
+ $[66] = t25;
2083
+ } else {
2084
+ t25 = $[66];
2085
+ }
2086
+ return /* @__PURE__ */ jsxs("div", { ref: rootRef, className: parts.select.root({
2087
+ className: [classNames.root, className]
2088
+ }), children: [
2089
+ t22,
2090
+ /* @__PURE__ */ jsxs("button", { ref: triggerRef, style: t23, type: "button", role: "combobox", "aria-label": ariaLabel, "aria-expanded": isOpen, "aria-haspopup": "listbox", "aria-controls": listboxId, disabled, onClick: t24, onKeyDown: handleTriggerKeyDown, className: parts.select.trigger({
2091
+ ...variants,
2092
+ className: classNames.trigger
2093
+ }), children: [
2094
+ /* @__PURE__ */ jsxs("span", { className: parts.select.value({
2095
+ className: classNames.value
2096
+ }), children: [
2097
+ selectedOption?.icon ? /* @__PURE__ */ jsx(Icon, { icon: selectedOption.icon, className: iconClass }) : null,
2098
+ selectedOption ? /* @__PURE__ */ jsx("span", { className: labelClass, children: selectedOption.label }) : /* @__PURE__ */ jsx("span", { className: parts.select.placeholder({
2099
+ className: classNames.placeholder
2100
+ }), children: placeholder ?? labels.placeholder })
2101
+ ] }),
2102
+ icons.chevron ? /* @__PURE__ */ jsx(Icon, { icon: icons.chevron, className: parts.select.chevron({
2103
+ className: classNames.chevron
2104
+ }) }) : null
2105
+ ] }),
2106
+ t25
2107
+ ] });
2108
+ }
2109
+ function _temp3(option_0, index) {
2110
+ return option_0.disabled ? [] : [index];
2111
+ }
2112
+ function SkeletonBlock(t0) {
2113
+ const $ = c(3);
2114
+ const {
2115
+ className,
2116
+ style,
2117
+ ...props
2118
+ } = t0;
2119
+ const {
2120
+ parts
2121
+ } = useUi();
2122
+ const t1 = "true";
2123
+ const t2 = parts.skeleton.block({
2124
+ ...props,
2125
+ className
2126
+ });
2127
+ let t3;
2128
+ if ($[0] !== style || $[1] !== t2) {
2129
+ t3 = /* @__PURE__ */ jsx("div", { "aria-hidden": t1, className: t2, style });
2130
+ $[0] = style;
2131
+ $[1] = t2;
2132
+ $[2] = t3;
2133
+ } else {
2134
+ t3 = $[2];
2135
+ }
2136
+ return t3;
2137
+ }
2138
+ function SkeletonLines(t0) {
2139
+ const $ = c(13);
2140
+ const {
2141
+ className,
2142
+ height,
2143
+ widths
2144
+ } = t0;
2145
+ const {
2146
+ parts
2147
+ } = useUi();
2148
+ let t1;
2149
+ if ($[0] !== className || $[1] !== parts.skeleton) {
2150
+ t1 = parts.skeleton.lines({
2151
+ className
2152
+ });
2153
+ $[0] = className;
2154
+ $[1] = parts.skeleton;
2155
+ $[2] = t1;
2156
+ } else {
2157
+ t1 = $[2];
2158
+ }
2159
+ let t2;
2160
+ if ($[3] !== height || $[4] !== parts.skeleton || $[5] !== widths) {
2161
+ let t32;
2162
+ if ($[7] !== height || $[8] !== parts.skeleton) {
2163
+ t32 = (width, index) => /* @__PURE__ */ jsx("div", { className: parts.skeleton.line(), children: /* @__PURE__ */ jsx(SkeletonBlock, { className: parts.skeleton.bar(), style: {
2164
+ height,
2165
+ width
2166
+ } }) }, index);
2167
+ $[7] = height;
2168
+ $[8] = parts.skeleton;
2169
+ $[9] = t32;
2170
+ } else {
2171
+ t32 = $[9];
2172
+ }
2173
+ t2 = widths.map(t32);
2174
+ $[3] = height;
2175
+ $[4] = parts.skeleton;
2176
+ $[5] = widths;
2177
+ $[6] = t2;
2178
+ } else {
2179
+ t2 = $[6];
2180
+ }
2181
+ let t3;
2182
+ if ($[10] !== t1 || $[11] !== t2) {
2183
+ t3 = /* @__PURE__ */ jsx("div", { "aria-hidden": "true", className: t1, children: t2 });
2184
+ $[10] = t1;
2185
+ $[11] = t2;
2186
+ $[12] = t3;
2187
+ } else {
2188
+ t3 = $[12];
2189
+ }
2190
+ return t3;
2191
+ }
2192
+ function Switch(t0) {
2193
+ const $ = c(18);
2194
+ const {
2195
+ checked: t1,
2196
+ className,
2197
+ classNames,
2198
+ disabled: t2,
2199
+ onCheckedChange,
2200
+ onClick,
2201
+ ref,
2202
+ type: t3,
2203
+ ...props
2204
+ } = t0;
2205
+ const checked = t1 === void 0 ? false : t1;
2206
+ const disabled = t2 === void 0 ? false : t2;
2207
+ const type = t3 === void 0 ? "button" : t3;
2208
+ const {
2209
+ parts
2210
+ } = useUi();
2211
+ const [variants, rest] = splitVariants(props, parts.switch.track, parts.switch.thumb);
2212
+ const state = checked ? "checked" : "unchecked";
2213
+ const t4 = "switch";
2214
+ let t5;
2215
+ if ($[0] !== checked || $[1] !== disabled || $[2] !== onCheckedChange || $[3] !== onClick) {
2216
+ t5 = (event) => {
2217
+ onClick?.(event);
2218
+ if (!event.defaultPrevented && !disabled) {
2219
+ onCheckedChange?.(!checked);
2220
+ }
2221
+ };
2222
+ $[0] = checked;
2223
+ $[1] = disabled;
2224
+ $[2] = onCheckedChange;
2225
+ $[3] = onClick;
2226
+ $[4] = t5;
2227
+ } else {
2228
+ t5 = $[4];
2229
+ }
2230
+ const t6 = parts.switch.track({
2231
+ ...variants,
2232
+ className: [classNames?.track, className]
2233
+ });
2234
+ const t7 = parts.switch.thumb({
2235
+ ...variants,
2236
+ className: classNames?.thumb
2237
+ });
2238
+ let t8;
2239
+ if ($[5] !== state || $[6] !== t7) {
2240
+ t8 = /* @__PURE__ */ jsx("span", { "data-state": state, className: t7 });
2241
+ $[5] = state;
2242
+ $[6] = t7;
2243
+ $[7] = t8;
2244
+ } else {
2245
+ t8 = $[7];
2246
+ }
2247
+ let t9;
2248
+ if ($[8] !== checked || $[9] !== disabled || $[10] !== ref || $[11] !== rest || $[12] !== state || $[13] !== t5 || $[14] !== t6 || $[15] !== t8 || $[16] !== type) {
2249
+ t9 = /* @__PURE__ */ jsx("button", { ref, type, role: t4, "aria-checked": checked, "data-state": state, disabled, onClick: t5, className: t6, ...rest, children: t8 });
2250
+ $[8] = checked;
2251
+ $[9] = disabled;
2252
+ $[10] = ref;
2253
+ $[11] = rest;
2254
+ $[12] = state;
2255
+ $[13] = t5;
2256
+ $[14] = t6;
2257
+ $[15] = t8;
2258
+ $[16] = type;
2259
+ $[17] = t9;
2260
+ } else {
2261
+ t9 = $[17];
2262
+ }
2263
+ return t9;
2264
+ }
2265
+
2266
+ export { Avatar, Carousel, Checkbox, CheckboxIndicator, FRAME_SELECTOR, HighlightGroup, Image, Input, SegmentedControl, Select, SkeletonBlock, SkeletonLines, SlidingHighlight, SlidingPill, Switch, Textarea, glideTarget, initialsOf, rackClip, readScroll, useDragScroll, useHighlight, useHighlightReset, useSlidingPill };
2267
+ //# sourceMappingURL=index.js.map
2268
+ //# sourceMappingURL=index.js.map