@threadlabs/looma 0.2.5 → 0.2.6

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 (427) hide show
  1. package/dist/chunk-3K45IWIJ.js +4733 -0
  2. package/dist/chunk-MLKGABMK.js +9 -0
  3. package/dist/chunk-UHHA4WT5.js +2916 -0
  4. package/dist/declarative-generated.cjs +135 -0
  5. package/dist/declarative-generated.d.cts +10 -0
  6. package/dist/declarative-generated.d.ts +10 -0
  7. package/dist/declarative-generated.js +111 -0
  8. package/dist/declarative.cjs +2944 -0
  9. package/dist/declarative.d.cts +27 -0
  10. package/dist/declarative.d.ts +27 -0
  11. package/dist/declarative.js +13 -0
  12. package/dist/index.cjs +7480 -6457
  13. package/dist/index.d.cts +4 -58
  14. package/dist/index.d.ts +4 -58
  15. package/dist/index.js +15 -27
  16. package/dist/loader.cjs +7654 -0
  17. package/dist/loader.d.cts +4 -0
  18. package/dist/loader.d.ts +4 -0
  19. package/dist/loader.js +16 -0
  20. package/dist/valibot.cjs +31 -0
  21. package/dist/valibot.d.cts +10 -0
  22. package/dist/valibot.d.ts +1 -43
  23. package/dist/valibot.js +2 -0
  24. package/dist/{types/field/validation.d.ts → validation-bxcou-l-.d.cts} +13 -11
  25. package/dist/validation-bxcou-l-.d.ts +58 -0
  26. package/editor/{chunk-B5WVJOPV.js → chunk-BXICJBWS.js} +118 -8
  27. package/editor/{chunk-ZOUKEZ77.js → chunk-JK53ENSG.js} +8 -21
  28. package/editor/chunk-WI7ZA44X.js +2558 -0
  29. package/editor/extensions/index.d.ts +11 -2
  30. package/editor/extensions/index.js +9 -7
  31. package/editor/index.d.ts +1 -1
  32. package/editor/index.js +10 -8
  33. package/editor/ui.js +2 -2
  34. package/editor.css +32 -0
  35. package/layout/index.cjs +466 -400
  36. package/layout/index.d.cts +1 -2
  37. package/layout/index.d.ts +1 -2
  38. package/layout/index.js +471 -395
  39. package/package.json +14 -5
  40. package/vue/chunk-4DPYH3IT.js +3538 -0
  41. package/vue/editor/index.d.ts +17 -7
  42. package/vue/editor/index.js +53 -35
  43. package/vue/index.d.ts +48 -31
  44. package/vue/index.js +1 -1
  45. package/dist/chunk-24OTMNIU.js +0 -1617
  46. package/dist/chunk-D5WRORG6.js +0 -366
  47. package/dist/chunk-HNFCGIBP.js +0 -8
  48. package/dist/chunk-NB6DBRXQ.js +0 -323
  49. package/dist/chunk-OF57X5AR.js +0 -10
  50. package/dist/chunk-TL4FIE7X.js +0 -93
  51. package/dist/chunk-UL7UIUJZ.js +0 -20
  52. package/dist/cjs/app-globals-V2Kpy_OQ.js +0 -5
  53. package/dist/cjs/controlled-state-BFya8rAX.js +0 -9
  54. package/dist/cjs/events-TcQIzpNv.js +0 -19
  55. package/dist/cjs/icons-BAdjrnhS.js +0 -680
  56. package/dist/cjs/id-CYbKpaYr.js +0 -9
  57. package/dist/cjs/index-BHG9Rpil.js +0 -1602
  58. package/dist/cjs/index.cjs.js +0 -2
  59. package/dist/cjs/loader.cjs.js +0 -13
  60. package/dist/cjs/looma.cjs.js +0 -25
  61. package/dist/cjs/manager-Ce25WRtl.js +0 -95
  62. package/dist/cjs/positioning-CCR6ifPj.js +0 -426
  63. package/dist/cjs/ui-affordance-scope.cjs.entry.js +0 -43
  64. package/dist/cjs/ui-avatar-group.cjs.entry.js +0 -43
  65. package/dist/cjs/ui-avatar.cjs.entry.js +0 -50
  66. package/dist/cjs/ui-badge.cjs.entry.js +0 -19
  67. package/dist/cjs/ui-button.cjs.entry.js +0 -75
  68. package/dist/cjs/ui-callout.cjs.entry.js +0 -27
  69. package/dist/cjs/ui-checkbox.cjs.entry.js +0 -97
  70. package/dist/cjs/ui-chip_2.cjs.entry.js +0 -258
  71. package/dist/cjs/ui-combobox.cjs.entry.js +0 -708
  72. package/dist/cjs/ui-context-menu.cjs.entry.js +0 -239
  73. package/dist/cjs/ui-dialog.cjs.entry.js +0 -131
  74. package/dist/cjs/ui-disclosure.cjs.entry.js +0 -112
  75. package/dist/cjs/ui-editable.cjs.entry.js +0 -100
  76. package/dist/cjs/ui-floating-action-button.cjs.entry.js +0 -20
  77. package/dist/cjs/ui-form-field.cjs.entry.js +0 -114
  78. package/dist/cjs/ui-icon-button.cjs.entry.js +0 -23
  79. package/dist/cjs/ui-input.cjs.entry.js +0 -106
  80. package/dist/cjs/ui-menu-item.cjs.entry.js +0 -19
  81. package/dist/cjs/ui-menu.cjs.entry.js +0 -182
  82. package/dist/cjs/ui-popover.cjs.entry.js +0 -135
  83. package/dist/cjs/ui-radio-group.cjs.entry.js +0 -134
  84. package/dist/cjs/ui-radio.cjs.entry.js +0 -94
  85. package/dist/cjs/ui-search-result-row.cjs.entry.js +0 -47
  86. package/dist/cjs/ui-search-shell.cjs.entry.js +0 -39
  87. package/dist/cjs/ui-select.cjs.entry.js +0 -108
  88. package/dist/cjs/ui-switch.cjs.entry.js +0 -74
  89. package/dist/cjs/ui-tabs.cjs.entry.js +0 -118
  90. package/dist/cjs/ui-textarea.cjs.entry.js +0 -110
  91. package/dist/cjs/ui-toast-region.cjs.entry.js +0 -93
  92. package/dist/cjs/ui-top-bar.cjs.entry.js +0 -43
  93. package/dist/cjs/ui-tree-item.cjs.entry.js +0 -135
  94. package/dist/cjs/ui-tree.cjs.entry.js +0 -500
  95. package/dist/collection/collection-manifest.json +0 -45
  96. package/dist/collection/components/ui-affordance-scope/ui-affordance-scope.css +0 -8
  97. package/dist/collection/components/ui-affordance-scope/ui-affordance-scope.js +0 -70
  98. package/dist/collection/components/ui-avatar/ui-avatar.css +0 -35
  99. package/dist/collection/components/ui-avatar/ui-avatar.js +0 -130
  100. package/dist/collection/components/ui-avatar-group/ui-avatar-group.css +0 -32
  101. package/dist/collection/components/ui-avatar-group/ui-avatar-group.js +0 -95
  102. package/dist/collection/components/ui-badge/ui-badge.css +0 -90
  103. package/dist/collection/components/ui-badge/ui-badge.js +0 -62
  104. package/dist/collection/components/ui-button/ui-button.css +0 -121
  105. package/dist/collection/components/ui-button/ui-button.js +0 -141
  106. package/dist/collection/components/ui-callout/ui-callout.css +0 -74
  107. package/dist/collection/components/ui-callout/ui-callout.js +0 -59
  108. package/dist/collection/components/ui-checkbox/ui-checkbox.css +0 -24
  109. package/dist/collection/components/ui-checkbox/ui-checkbox.js +0 -228
  110. package/dist/collection/components/ui-chip/ui-chip.css +0 -57
  111. package/dist/collection/components/ui-chip/ui-chip.js +0 -67
  112. package/dist/collection/components/ui-combobox/ui-combobox.css +0 -47
  113. package/dist/collection/components/ui-combobox/ui-combobox.js +0 -1295
  114. package/dist/collection/components/ui-context-menu/ui-context-menu.css +0 -34
  115. package/dist/collection/components/ui-context-menu/ui-context-menu.js +0 -311
  116. package/dist/collection/components/ui-dialog/ui-dialog.css +0 -72
  117. package/dist/collection/components/ui-dialog/ui-dialog.js +0 -242
  118. package/dist/collection/components/ui-disclosure/ui-disclosure.css +0 -7
  119. package/dist/collection/components/ui-disclosure/ui-disclosure.js +0 -184
  120. package/dist/collection/components/ui-editable/ui-editable.css +0 -2
  121. package/dist/collection/components/ui-editable/ui-editable.js +0 -196
  122. package/dist/collection/components/ui-floating-action-button/ui-floating-action-button.css +0 -73
  123. package/dist/collection/components/ui-floating-action-button/ui-floating-action-button.js +0 -85
  124. package/dist/collection/components/ui-form-field/ui-form-field.css +0 -25
  125. package/dist/collection/components/ui-form-field/ui-form-field.js +0 -180
  126. package/dist/collection/components/ui-icon-button/ui-icon-button.css +0 -145
  127. package/dist/collection/components/ui-icon-button/ui-icon-button.js +0 -128
  128. package/dist/collection/components/ui-input/ui-input.css +0 -48
  129. package/dist/collection/components/ui-input/ui-input.js +0 -217
  130. package/dist/collection/components/ui-menu/ui-menu.css +0 -73
  131. package/dist/collection/components/ui-menu/ui-menu.js +0 -280
  132. package/dist/collection/components/ui-menu-item/ui-menu-item.css +0 -32
  133. package/dist/collection/components/ui-menu-item/ui-menu-item.js +0 -64
  134. package/dist/collection/components/ui-popover/ui-popover.css +0 -58
  135. package/dist/collection/components/ui-popover/ui-popover.js +0 -232
  136. package/dist/collection/components/ui-radio/ui-radio.css +0 -22
  137. package/dist/collection/components/ui-radio/ui-radio.js +0 -226
  138. package/dist/collection/components/ui-radio-group/ui-radio-group.css +0 -10
  139. package/dist/collection/components/ui-radio-group/ui-radio-group.js +0 -247
  140. package/dist/collection/components/ui-search-result-row/ui-search-result-row.css +0 -80
  141. package/dist/collection/components/ui-search-result-row/ui-search-result-row.js +0 -100
  142. package/dist/collection/components/ui-search-shell/ui-search-shell.css +0 -63
  143. package/dist/collection/components/ui-search-shell/ui-search-shell.js +0 -46
  144. package/dist/collection/components/ui-select/ui-select.css +0 -64
  145. package/dist/collection/components/ui-select/ui-select.js +0 -218
  146. package/dist/collection/components/ui-switch/ui-switch.css +0 -63
  147. package/dist/collection/components/ui-switch/ui-switch.js +0 -185
  148. package/dist/collection/components/ui-tabs/ui-tabs.css +0 -68
  149. package/dist/collection/components/ui-tabs/ui-tabs.js +0 -190
  150. package/dist/collection/components/ui-textarea/ui-textarea.css +0 -49
  151. package/dist/collection/components/ui-textarea/ui-textarea.js +0 -241
  152. package/dist/collection/components/ui-toast-region/ui-toast-region.css +0 -59
  153. package/dist/collection/components/ui-toast-region/ui-toast-region.js +0 -126
  154. package/dist/collection/components/ui-tooltip/ui-tooltip.css +0 -43
  155. package/dist/collection/components/ui-tooltip/ui-tooltip.js +0 -430
  156. package/dist/collection/components/ui-top-bar/ui-top-bar.css +0 -51
  157. package/dist/collection/components/ui-top-bar/ui-top-bar.js +0 -52
  158. package/dist/collection/components/ui-tree/ui-tree.css +0 -12
  159. package/dist/collection/components/ui-tree/ui-tree.js +0 -515
  160. package/dist/collection/components/ui-tree-item/ui-tree-item.css +0 -217
  161. package/dist/collection/components/ui-tree-item/ui-tree-item.js +0 -406
  162. package/dist/collection/field/combobox.js +0 -4
  163. package/dist/collection/field/editable.js +0 -1
  164. package/dist/collection/field/multi-combobox.js +0 -1
  165. package/dist/collection/field/valibot.js +0 -5
  166. package/dist/collection/field/validation.js +0 -62
  167. package/dist/collection/icons.js +0 -71
  168. package/dist/collection/input-modality.js +0 -24
  169. package/dist/collection/overlay/manager.js +0 -92
  170. package/dist/collection/overlay/positioning.js +0 -424
  171. package/dist/collection/utils/controlled-state.js +0 -4
  172. package/dist/collection/utils/drag-drop.js +0 -51
  173. package/dist/collection/utils/events.js +0 -13
  174. package/dist/collection/utils/id.js +0 -5
  175. package/dist/collection/utils/initials.js +0 -11
  176. package/dist/components/index.d.ts +0 -102
  177. package/dist/components/index.js +0 -1
  178. package/dist/components/p-6SWSrfmW.js +0 -1
  179. package/dist/components/p-B_DaIVEY.js +0 -1
  180. package/dist/components/p-Bh_1GxOD.js +0 -1
  181. package/dist/components/p-BnGhGgTH.js +0 -1
  182. package/dist/components/p-BzaB_bXo.js +0 -1
  183. package/dist/components/p-C-0syqXZ.js +0 -1
  184. package/dist/components/p-CoFximGM.js +0 -13
  185. package/dist/components/p-JwSoedEO.js +0 -1
  186. package/dist/components/p-Vc4ExHFc.js +0 -1
  187. package/dist/components/p-hgBUJRDa.js +0 -1
  188. package/dist/components/ui-affordance-scope.d.ts +0 -11
  189. package/dist/components/ui-affordance-scope.js +0 -1
  190. package/dist/components/ui-avatar-group.d.ts +0 -11
  191. package/dist/components/ui-avatar-group.js +0 -1
  192. package/dist/components/ui-avatar.d.ts +0 -11
  193. package/dist/components/ui-avatar.js +0 -1
  194. package/dist/components/ui-badge.d.ts +0 -11
  195. package/dist/components/ui-badge.js +0 -1
  196. package/dist/components/ui-button.d.ts +0 -11
  197. package/dist/components/ui-button.js +0 -1
  198. package/dist/components/ui-callout.d.ts +0 -11
  199. package/dist/components/ui-callout.js +0 -1
  200. package/dist/components/ui-checkbox.d.ts +0 -11
  201. package/dist/components/ui-checkbox.js +0 -1
  202. package/dist/components/ui-chip.d.ts +0 -11
  203. package/dist/components/ui-chip.js +0 -1
  204. package/dist/components/ui-combobox.d.ts +0 -11
  205. package/dist/components/ui-combobox.js +0 -1
  206. package/dist/components/ui-context-menu.d.ts +0 -11
  207. package/dist/components/ui-context-menu.js +0 -1
  208. package/dist/components/ui-dialog.d.ts +0 -11
  209. package/dist/components/ui-dialog.js +0 -1
  210. package/dist/components/ui-disclosure.d.ts +0 -11
  211. package/dist/components/ui-disclosure.js +0 -1
  212. package/dist/components/ui-editable.d.ts +0 -11
  213. package/dist/components/ui-editable.js +0 -1
  214. package/dist/components/ui-floating-action-button.d.ts +0 -11
  215. package/dist/components/ui-floating-action-button.js +0 -1
  216. package/dist/components/ui-form-field.d.ts +0 -11
  217. package/dist/components/ui-form-field.js +0 -1
  218. package/dist/components/ui-icon-button.d.ts +0 -11
  219. package/dist/components/ui-icon-button.js +0 -1
  220. package/dist/components/ui-input.d.ts +0 -11
  221. package/dist/components/ui-input.js +0 -1
  222. package/dist/components/ui-menu-item.d.ts +0 -11
  223. package/dist/components/ui-menu-item.js +0 -1
  224. package/dist/components/ui-menu.d.ts +0 -11
  225. package/dist/components/ui-menu.js +0 -1
  226. package/dist/components/ui-popover.d.ts +0 -11
  227. package/dist/components/ui-popover.js +0 -1
  228. package/dist/components/ui-radio-group.d.ts +0 -11
  229. package/dist/components/ui-radio-group.js +0 -1
  230. package/dist/components/ui-radio.d.ts +0 -11
  231. package/dist/components/ui-radio.js +0 -1
  232. package/dist/components/ui-search-result-row.d.ts +0 -11
  233. package/dist/components/ui-search-result-row.js +0 -1
  234. package/dist/components/ui-search-shell.d.ts +0 -11
  235. package/dist/components/ui-search-shell.js +0 -1
  236. package/dist/components/ui-select.d.ts +0 -11
  237. package/dist/components/ui-select.js +0 -1
  238. package/dist/components/ui-switch.d.ts +0 -11
  239. package/dist/components/ui-switch.js +0 -1
  240. package/dist/components/ui-tabs.d.ts +0 -11
  241. package/dist/components/ui-tabs.js +0 -1
  242. package/dist/components/ui-textarea.d.ts +0 -11
  243. package/dist/components/ui-textarea.js +0 -1
  244. package/dist/components/ui-toast-region.d.ts +0 -11
  245. package/dist/components/ui-toast-region.js +0 -1
  246. package/dist/components/ui-tooltip.d.ts +0 -11
  247. package/dist/components/ui-tooltip.js +0 -1
  248. package/dist/components/ui-top-bar.d.ts +0 -11
  249. package/dist/components/ui-top-bar.js +0 -1
  250. package/dist/components/ui-tree-item.d.ts +0 -11
  251. package/dist/components/ui-tree-item.js +0 -1
  252. package/dist/components/ui-tree.d.ts +0 -11
  253. package/dist/components/ui-tree.js +0 -1
  254. package/dist/esm/app-globals-DQuL1Twl.js +0 -3
  255. package/dist/esm/controlled-state-BnGhGgTH.js +0 -6
  256. package/dist/esm/events-JwSoedEO.js +0 -15
  257. package/dist/esm/icons-CoFximGM.js +0 -678
  258. package/dist/esm/id-hgBUJRDa.js +0 -7
  259. package/dist/esm/index-8BGiMGQ0.js +0 -1593
  260. package/dist/esm/index.js +0 -1
  261. package/dist/esm/loader.js +0 -11
  262. package/dist/esm/looma.js +0 -21
  263. package/dist/esm/manager-C-0syqXZ.js +0 -91
  264. package/dist/esm/positioning-ZOr-2PSe.js +0 -421
  265. package/dist/esm/ui-affordance-scope.entry.js +0 -41
  266. package/dist/esm/ui-avatar-group.entry.js +0 -41
  267. package/dist/esm/ui-avatar.entry.js +0 -48
  268. package/dist/esm/ui-badge.entry.js +0 -17
  269. package/dist/esm/ui-button.entry.js +0 -73
  270. package/dist/esm/ui-callout.entry.js +0 -25
  271. package/dist/esm/ui-checkbox.entry.js +0 -95
  272. package/dist/esm/ui-chip_2.entry.js +0 -255
  273. package/dist/esm/ui-combobox.entry.js +0 -706
  274. package/dist/esm/ui-context-menu.entry.js +0 -237
  275. package/dist/esm/ui-dialog.entry.js +0 -129
  276. package/dist/esm/ui-disclosure.entry.js +0 -110
  277. package/dist/esm/ui-editable.entry.js +0 -98
  278. package/dist/esm/ui-floating-action-button.entry.js +0 -18
  279. package/dist/esm/ui-form-field.entry.js +0 -112
  280. package/dist/esm/ui-icon-button.entry.js +0 -21
  281. package/dist/esm/ui-input.entry.js +0 -104
  282. package/dist/esm/ui-menu-item.entry.js +0 -17
  283. package/dist/esm/ui-menu.entry.js +0 -180
  284. package/dist/esm/ui-popover.entry.js +0 -133
  285. package/dist/esm/ui-radio-group.entry.js +0 -132
  286. package/dist/esm/ui-radio.entry.js +0 -92
  287. package/dist/esm/ui-search-result-row.entry.js +0 -45
  288. package/dist/esm/ui-search-shell.entry.js +0 -37
  289. package/dist/esm/ui-select.entry.js +0 -106
  290. package/dist/esm/ui-switch.entry.js +0 -72
  291. package/dist/esm/ui-tabs.entry.js +0 -116
  292. package/dist/esm/ui-textarea.entry.js +0 -108
  293. package/dist/esm/ui-toast-region.entry.js +0 -91
  294. package/dist/esm/ui-top-bar.entry.js +0 -41
  295. package/dist/esm/ui-tree-item.entry.js +0 -133
  296. package/dist/esm/ui-tree.entry.js +0 -498
  297. package/dist/index.cjs.js +0 -1
  298. package/dist/looma/index.esm.js +0 -0
  299. package/dist/looma/looma.esm.js +0 -1
  300. package/dist/looma/p-08f80207.entry.js +0 -1
  301. package/dist/looma/p-0b5b8d9e.entry.js +0 -1
  302. package/dist/looma/p-1249a806.entry.js +0 -1
  303. package/dist/looma/p-16e0669d.entry.js +0 -1
  304. package/dist/looma/p-1c00670f.entry.js +0 -1
  305. package/dist/looma/p-1c5a7522.entry.js +0 -1
  306. package/dist/looma/p-22842f8c.entry.js +0 -1
  307. package/dist/looma/p-2915d5c0.entry.js +0 -1
  308. package/dist/looma/p-3b2961a6.entry.js +0 -1
  309. package/dist/looma/p-3f60f4c8.entry.js +0 -1
  310. package/dist/looma/p-424d6719.entry.js +0 -1
  311. package/dist/looma/p-4caccfce.entry.js +0 -1
  312. package/dist/looma/p-5fdcee1d.entry.js +0 -1
  313. package/dist/looma/p-6d8b99ee.entry.js +0 -1
  314. package/dist/looma/p-6f20d470.entry.js +0 -1
  315. package/dist/looma/p-7c0b5364.entry.js +0 -1
  316. package/dist/looma/p-8BGiMGQ0.js +0 -2
  317. package/dist/looma/p-8bdd9495.entry.js +0 -1
  318. package/dist/looma/p-99116a72.entry.js +0 -1
  319. package/dist/looma/p-9cfbf722.entry.js +0 -1
  320. package/dist/looma/p-9d2662ca.entry.js +0 -1
  321. package/dist/looma/p-9ff2fa19.entry.js +0 -1
  322. package/dist/looma/p-BnGhGgTH.js +0 -1
  323. package/dist/looma/p-C-0syqXZ.js +0 -1
  324. package/dist/looma/p-CoFximGM.js +0 -13
  325. package/dist/looma/p-DQuL1Twl.js +0 -1
  326. package/dist/looma/p-JwSoedEO.js +0 -1
  327. package/dist/looma/p-ZOr-2PSe.js +0 -1
  328. package/dist/looma/p-a2dd4c6c.entry.js +0 -1
  329. package/dist/looma/p-add67e4c.entry.js +0 -1
  330. package/dist/looma/p-b6ede6bb.entry.js +0 -1
  331. package/dist/looma/p-b76e2111.entry.js +0 -1
  332. package/dist/looma/p-ca2a54fd.entry.js +0 -1
  333. package/dist/looma/p-d372b0db.entry.js +0 -1
  334. package/dist/looma/p-d4825822.entry.js +0 -1
  335. package/dist/looma/p-d56571a2.entry.js +0 -1
  336. package/dist/looma/p-d5c3954f.entry.js +0 -1
  337. package/dist/looma/p-e604e906.entry.js +0 -1
  338. package/dist/looma/p-f1f7c5cb.entry.js +0 -1
  339. package/dist/looma/p-hgBUJRDa.js +0 -1
  340. package/dist/types/components/ui-affordance-scope/ui-affordance-scope.d.ts +0 -11
  341. package/dist/types/components/ui-avatar/ui-avatar.d.ts +0 -11
  342. package/dist/types/components/ui-avatar-group/ui-avatar-group.d.ts +0 -11
  343. package/dist/types/components/ui-badge/ui-badge.d.ts +0 -5
  344. package/dist/types/components/ui-button/ui-button.d.ts +0 -13
  345. package/dist/types/components/ui-callout/ui-callout.d.ts +0 -6
  346. package/dist/types/components/ui-checkbox/ui-checkbox.d.ts +0 -20
  347. package/dist/types/components/ui-chip/ui-chip.d.ts +0 -8
  348. package/dist/types/components/ui-combobox/ui-combobox.d.ts +0 -128
  349. package/dist/types/components/ui-context-menu/ui-context-menu.d.ts +0 -43
  350. package/dist/types/components/ui-dialog/ui-dialog.d.ts +0 -27
  351. package/dist/types/components/ui-disclosure/ui-disclosure.d.ts +0 -21
  352. package/dist/types/components/ui-editable/ui-editable.d.ts +0 -24
  353. package/dist/types/components/ui-floating-action-button/ui-floating-action-button.d.ts +0 -6
  354. package/dist/types/components/ui-form-field/ui-form-field.d.ts +0 -18
  355. package/dist/types/components/ui-icon-button/ui-icon-button.d.ts +0 -9
  356. package/dist/types/components/ui-input/ui-input.d.ts +0 -19
  357. package/dist/types/components/ui-menu/ui-menu.d.ts +0 -28
  358. package/dist/types/components/ui-menu-item/ui-menu-item.d.ts +0 -5
  359. package/dist/types/components/ui-popover/ui-popover.d.ts +0 -26
  360. package/dist/types/components/ui-radio/ui-radio.d.ts +0 -20
  361. package/dist/types/components/ui-radio-group/ui-radio-group.d.ts +0 -21
  362. package/dist/types/components/ui-search-result-row/ui-search-result-row.d.ts +0 -15
  363. package/dist/types/components/ui-search-shell/ui-search-shell.d.ts +0 -9
  364. package/dist/types/components/ui-select/ui-select.d.ts +0 -20
  365. package/dist/types/components/ui-switch/ui-switch.d.ts +0 -16
  366. package/dist/types/components/ui-tabs/ui-tabs.d.ts +0 -18
  367. package/dist/types/components/ui-textarea/ui-textarea.d.ts +0 -20
  368. package/dist/types/components/ui-toast-region/ui-toast-region.d.ts +0 -16
  369. package/dist/types/components/ui-tooltip/ui-tooltip.d.ts +0 -57
  370. package/dist/types/components/ui-top-bar/ui-top-bar.d.ts +0 -12
  371. package/dist/types/components/ui-tree/ui-tree.d.ts +0 -53
  372. package/dist/types/components/ui-tree-item/ui-tree-item.d.ts +0 -44
  373. package/dist/types/components.d.ts +0 -1889
  374. package/dist/types/field/combobox.d.ts +0 -46
  375. package/dist/types/field/editable.d.ts +0 -5
  376. package/dist/types/field/multi-combobox.d.ts +0 -11
  377. package/dist/types/field/valibot.d.ts +0 -7
  378. package/dist/types/icons.d.ts +0 -53
  379. package/dist/types/input-modality.d.ts +0 -6
  380. package/dist/types/overlay/manager.d.ts +0 -17
  381. package/dist/types/overlay/positioning.d.ts +0 -74
  382. package/dist/types/stencil-public-runtime.d.ts +0 -1860
  383. package/dist/types/utils/controlled-state.d.ts +0 -4
  384. package/dist/types/utils/drag-drop.d.ts +0 -15
  385. package/dist/types/utils/events.d.ts +0 -4
  386. package/dist/types/utils/id.d.ts +0 -1
  387. package/dist/types/utils/initials.d.ts +0 -1
  388. package/dist/ui-affordance-scope.entry-L6TIXYOP.js +0 -54
  389. package/dist/ui-avatar-group.entry-TCAA6P72.js +0 -51
  390. package/dist/ui-avatar.entry-52DQ7VXA.js +0 -51
  391. package/dist/ui-badge.entry-2XCAA6LL.js +0 -22
  392. package/dist/ui-button.entry-MNFBMNSX.js +0 -83
  393. package/dist/ui-callout.entry-SSHT5TH2.js +0 -32
  394. package/dist/ui-checkbox.entry-LOWIWIWI.js +0 -111
  395. package/dist/ui-chip_2.entry-BIMTSF6C.js +0 -272
  396. package/dist/ui-combobox.entry-25Z4MN7N.js +0 -717
  397. package/dist/ui-context-menu.entry-YZDL5Y4M.js +0 -248
  398. package/dist/ui-dialog.entry-HIXZX5AB.js +0 -146
  399. package/dist/ui-disclosure.entry-2JZHZNDQ.js +0 -126
  400. package/dist/ui-editable.entry-U3VR3XPT.js +0 -110
  401. package/dist/ui-floating-action-button.entry-6S3QN3KJ.js +0 -23
  402. package/dist/ui-form-field.entry-GQOSMLHT.js +0 -120
  403. package/dist/ui-icon-button.entry-QJXKVDM6.js +0 -26
  404. package/dist/ui-input.entry-UWMQ6JMP.js +0 -114
  405. package/dist/ui-menu-item.entry-NHNZKKJS.js +0 -22
  406. package/dist/ui-menu.entry-D53RUJND.js +0 -192
  407. package/dist/ui-popover.entry-7ZSIWCFQ.js +0 -152
  408. package/dist/ui-radio-group.entry-37MSYIH4.js +0 -142
  409. package/dist/ui-radio.entry-7YGCDHXT.js +0 -108
  410. package/dist/ui-search-result-row.entry-6FCCLGAS.js +0 -50
  411. package/dist/ui-search-shell.entry-HSBEXPER.js +0 -41
  412. package/dist/ui-select.entry-GIDIAYRD.js +0 -117
  413. package/dist/ui-switch.entry-MYAL6XPC.js +0 -87
  414. package/dist/ui-tabs.entry-R4TEXQSD.js +0 -128
  415. package/dist/ui-textarea.entry-FW32JNDV.js +0 -119
  416. package/dist/ui-toast-region.entry-BTMFPKZF.js +0 -104
  417. package/dist/ui-top-bar.entry-5DQGJF3B.js +0 -49
  418. package/dist/ui-tree-item.entry-ADT7DSOS.js +0 -145
  419. package/dist/ui-tree.entry-7PYQ5RIN.js +0 -470
  420. package/editor/chunk-64GLF274.js +0 -1271
  421. package/layout/index.css +0 -387
  422. package/loader/cdn.js +0 -1
  423. package/loader/index.cjs.js +0 -1
  424. package/loader/index.d.ts +0 -24
  425. package/loader/index.es2017.js +0 -1
  426. package/loader/index.js +0 -2
  427. package/vue/chunk-ROMBQS2L.js +0 -352
@@ -1,142 +0,0 @@
1
- import {
2
- dispatchDetail,
3
- eventToTrigger
4
- } from "./chunk-UL7UIUJZ.js";
5
- import {
6
- Host,
7
- getElement,
8
- h,
9
- registerInstance
10
- } from "./chunk-24OTMNIU.js";
11
-
12
- // dist/esm/ui-radio-group.entry.js
13
- var uiRadioGroupCss = () => `:host{display:inline-flex;align-items:center;gap:var(--ui-space-2)}:host([data-orientation='vertical']){display:inline-grid;justify-items:start}`;
14
- var UIRadioGroup = class {
15
- constructor(hostRef) {
16
- registerInstance(this, hostRef);
17
- }
18
- get host() {
19
- return getElement(this);
20
- }
21
- value = "";
22
- name = "";
23
- orientation = "horizontal";
24
- disabled = false;
25
- required = false;
26
- internalValue = "";
27
- syncFromProp() {
28
- this.internalValue = this.value;
29
- }
30
- syncToRadios() {
31
- const radios = this.getRadios();
32
- radios.forEach((radio) => {
33
- radio.checked = (radio.getAttribute("value") ?? "") === this.internalValue;
34
- radio.name = this.name || this.groupId;
35
- if (this.disabled) {
36
- radio.setAttribute("aria-disabled", "true");
37
- radio.setAttribute("data-disabled", "true");
38
- } else {
39
- radio.removeAttribute("aria-disabled");
40
- radio.removeAttribute("data-disabled");
41
- }
42
- });
43
- this.updateRovingTabindex();
44
- }
45
- groupId = `ui-radio-group-${Math.random().toString(36).slice(2, 9)}`;
46
- componentDidLoad() {
47
- this.syncFromProp();
48
- this.syncToRadios();
49
- this.host.addEventListener("change", this.onRadioChange);
50
- this.host.addEventListener("keydown", this.onKeydown);
51
- }
52
- disconnectedCallback() {
53
- this.host.removeEventListener("change", this.onRadioChange);
54
- this.host.removeEventListener("keydown", this.onKeydown);
55
- }
56
- componentDidUpdate() {
57
- this.syncToRadios();
58
- }
59
- getRadios() {
60
- return Array.from(this.host.querySelectorAll("ui-radio"));
61
- }
62
- updateRovingTabindex() {
63
- const radios = this.getRadios();
64
- const currentIndex = radios.findIndex((r) => (r.getAttribute("value") ?? "") === this.internalValue);
65
- radios.forEach((r, i) => {
66
- const input = r.querySelector('input[type="radio"]');
67
- if (input) {
68
- input.tabIndex = i === (currentIndex >= 0 ? currentIndex : 0) ? 0 : -1;
69
- }
70
- });
71
- }
72
- setValue(newValue, trigger) {
73
- const prev = this.internalValue;
74
- this.internalValue = newValue;
75
- this.syncToRadios();
76
- dispatchDetail(this.host, "select", { value: newValue, previousValue: prev, trigger });
77
- dispatchDetail(this.host, "change", {
78
- checked: true,
79
- value: newValue,
80
- trigger
81
- });
82
- }
83
- onRadioChange = (e) => {
84
- const target = e.target.closest?.("ui-radio");
85
- if (!target || target.getRootNode() !== this.host.getRootNode())
86
- return;
87
- const value = target.getAttribute("value") ?? "";
88
- if (value && value !== this.internalValue) {
89
- this.setValue(value, eventToTrigger(e));
90
- }
91
- };
92
- onKeydown = (e) => {
93
- const radios = this.getRadios();
94
- if (radios.length === 0)
95
- return;
96
- const currentIndex = radios.findIndex((r) => (r.getAttribute("value") ?? "") === this.internalValue);
97
- const axis = this.orientation === "vertical" ? "vertical" : "horizontal";
98
- const isPrev = axis === "horizontal" ? e.key === "ArrowLeft" : e.key === "ArrowUp";
99
- const isNext = axis === "horizontal" ? e.key === "ArrowRight" : e.key === "ArrowDown";
100
- if (!isPrev && !isNext)
101
- return;
102
- e.preventDefault();
103
- let nextIndex;
104
- if (isNext) {
105
- nextIndex = currentIndex < 0 ? 0 : Math.min(currentIndex + 1, radios.length - 1);
106
- } else {
107
- nextIndex = currentIndex <= 0 ? radios.length - 1 : currentIndex - 1;
108
- }
109
- const nextRadio = radios[nextIndex];
110
- const nextValue = nextRadio?.getAttribute("value") ?? "";
111
- if (nextValue) {
112
- this.setValue(nextValue, "keyboard");
113
- nextRadio?.querySelector('input[type="radio"]')?.focus();
114
- }
115
- };
116
- render() {
117
- return h(Host, { key: "9bdfe6b5209b5444cb27dde3226ec33866999c25", role: "radiogroup", "aria-orientation": this.orientation, "data-orientation": this.orientation, "data-disabled": this.disabled ? "" : void 0 }, h("slot", { key: "b81a2f1e4c49000cfb5357570b460564ced48d91" }));
118
- }
119
- static get watchers() {
120
- return {
121
- "value": [{
122
- "syncFromProp": 0
123
- }],
124
- "internalValue": [{
125
- "syncToRadios": 0
126
- }],
127
- "name": [{
128
- "syncToRadios": 0
129
- }],
130
- "orientation": [{
131
- "syncToRadios": 0
132
- }],
133
- "disabled": [{
134
- "syncToRadios": 0
135
- }]
136
- };
137
- }
138
- };
139
- UIRadioGroup.style = uiRadioGroupCss();
140
- export {
141
- UIRadioGroup as ui_radio_group
142
- };
@@ -1,108 +0,0 @@
1
- import {
2
- controlledOrDefault,
3
- isControlled
4
- } from "./chunk-HNFCGIBP.js";
5
- import {
6
- dispatchDetail,
7
- eventToTrigger
8
- } from "./chunk-UL7UIUJZ.js";
9
- import {
10
- Host,
11
- getElement,
12
- h,
13
- registerInstance
14
- } from "./chunk-24OTMNIU.js";
15
-
16
- // dist/esm/ui-radio.entry.js
17
- var uiRadioCss = () => `:host{display:inline-flex;align-items:center;gap:var(--ui-space-2);color:var(--ui-text-primary)}:host([data-disabled='true']),:host([aria-disabled='true']){opacity:0.6;cursor:not-allowed}::slotted(input[type='radio']){accent-color:var(--ui-accent-solid);cursor:pointer}::slotted(input[type='radio']:focus-visible){outline:2px solid var(--ui-accent-solid);outline-offset:2px}`;
18
- var UIRadio = class {
19
- constructor(hostRef) {
20
- registerInstance(this, hostRef);
21
- }
22
- get host() {
23
- return getElement(this);
24
- }
25
- /** Controlled checked state. Omit it to use defaultChecked and local interaction state. */
26
- checked;
27
- defaultChecked = false;
28
- disabled = false;
29
- name = "";
30
- required = false;
31
- value = "on";
32
- internalChecked = false;
33
- slotRef;
34
- syncFromProp() {
35
- if (isControlled(this.checked))
36
- this.internalChecked = this.checked;
37
- }
38
- syncToInput() {
39
- const input = this.getInput();
40
- if (!input)
41
- return;
42
- this.host.toggleAttribute("data-disabled", this.disabled);
43
- input.checked = this.internalChecked;
44
- input.disabled = this.disabled;
45
- input.name = this.name;
46
- input.required = this.required;
47
- input.value = this.value;
48
- }
49
- componentDidLoad() {
50
- this.internalChecked = controlledOrDefault(this.checked, this.defaultChecked);
51
- this.slotRef?.addEventListener("slotchange", () => this.syncToInput());
52
- this.syncToInput();
53
- const input = this.getInput();
54
- input?.addEventListener("change", this.onInputChange);
55
- }
56
- disconnectedCallback() {
57
- const input = this.getInput();
58
- input?.removeEventListener("change", this.onInputChange);
59
- }
60
- componentDidUpdate() {
61
- this.syncToInput();
62
- }
63
- getInput() {
64
- const slot = this.host.shadowRoot?.querySelector("slot");
65
- const nodes = slot?.assignedElements() ?? Array.from(this.host.children);
66
- return nodes.find((el) => el instanceof HTMLInputElement && el.type === "radio") ?? null;
67
- }
68
- onInputChange = (e) => {
69
- const input = e.target;
70
- if (!input || !input.checked)
71
- return;
72
- if (!isControlled(this.checked))
73
- this.internalChecked = true;
74
- else
75
- this.syncToInput();
76
- dispatchDetail(this.host, "change", {
77
- checked: true,
78
- value: this.value,
79
- trigger: eventToTrigger(e)
80
- });
81
- };
82
- render() {
83
- return h(Host, { key: "32df72dff7253956875ef28f593462ddbbb90eef", role: "radio", "aria-checked": String(this.internalChecked), "aria-disabled": String(this.disabled), "data-disabled": this.disabled ? "" : void 0 }, h("slot", { key: "0c78f3e3bdf4d618547b267128c6fc0fdd651599", ref: (el) => this.slotRef = el }));
84
- }
85
- static get watchers() {
86
- return {
87
- "checked": [{
88
- "syncFromProp": 0
89
- }],
90
- "disabled": [{
91
- "syncToInput": 0
92
- }],
93
- "name": [{
94
- "syncToInput": 0
95
- }],
96
- "required": [{
97
- "syncToInput": 0
98
- }],
99
- "value": [{
100
- "syncToInput": 0
101
- }]
102
- };
103
- }
104
- };
105
- UIRadio.style = uiRadioCss();
106
- export {
107
- UIRadio as ui_radio
108
- };
@@ -1,50 +0,0 @@
1
- import {
2
- Host,
3
- h,
4
- registerInstance
5
- } from "./chunk-24OTMNIU.js";
6
-
7
- // dist/esm/ui-search-result-row.entry.js
8
- var uiSearchResultRowCss = () => `:host{display:block}.search-result-row{appearance:none;inline-size:100%;min-block-size:var(--ui-search-result-row-min-height, 56px);margin:0;padding-block:var(--ui-search-result-row-padding-block, var(--ui-space-3, 0.75rem));padding-inline:var(--ui-search-result-row-padding-inline, var(--ui-space-4, 1rem));display:flex;align-items:flex-start;gap:var(--ui-search-result-row-gap, var(--ui-space-3, 0.75rem));background:var(--ui-search-result-row-bg, transparent);border:none;border-block-end:1px solid var(--ui-search-result-row-border, var(--ui-border, #e5e7eb));color:inherit;cursor:pointer;text-align:left;transition:background-color var(--ui-motion-fast, 160ms) var(--ui-motion-ease, ease)}:host(:last-child) .search-result-row{border-block-end:none}.search-result-row:hover:enabled{background:var(--ui-search-result-row-hover-bg, color-mix(in srgb, var(--ui-surface, #ffffff) 85%, black 3%))}:host([selected]) .search-result-row{background:var( --ui-search-result-row-selected-bg, var(--ui-search-result-row-hover-bg, color-mix(in srgb, var(--ui-surface, #ffffff) 85%, black 3%)) )}.search-result-row:focus-visible{outline:2px solid var(--ui-focus-ring, #2563eb);outline-offset:-2px}.search-result-row:disabled,:host([disabled]) .search-result-row{opacity:0.6;cursor:not-allowed}.search-result-row__leading,.search-result-row__trailing{display:inline-flex;align-items:flex-start;flex-shrink:0}.search-result-row__content{min-inline-size:0;flex:1;display:flex;flex-direction:column}.search-result-row__title,.search-result-row__meta,.search-result-row__excerpt{display:block;min-inline-size:0}[hidden]{display:none}::slotted([slot='title']),::slotted([slot='meta']),::slotted([slot='excerpt']){display:block;margin:0}`;
9
- function slotHasContent(slot) {
10
- if (!slot) {
11
- return false;
12
- }
13
- return slot.assignedNodes({ flatten: true }).some((node) => {
14
- if (node.nodeType === Node.TEXT_NODE) {
15
- return Boolean(node.textContent?.trim());
16
- }
17
- return true;
18
- });
19
- }
20
- var UISearchResultRow = class {
21
- constructor(hostRef) {
22
- registerInstance(this, hostRef);
23
- }
24
- disabled = false;
25
- selected = false;
26
- hasLeading = false;
27
- hasMeta = false;
28
- hasExcerpt = false;
29
- hasTrailing = false;
30
- leadingSlot;
31
- metaSlot;
32
- excerptSlot;
33
- trailingSlot;
34
- componentDidLoad() {
35
- this.syncSlots();
36
- }
37
- syncSlots = () => {
38
- this.hasLeading = slotHasContent(this.leadingSlot);
39
- this.hasMeta = slotHasContent(this.metaSlot);
40
- this.hasExcerpt = slotHasContent(this.excerptSlot);
41
- this.hasTrailing = slotHasContent(this.trailingSlot);
42
- };
43
- render() {
44
- return h(Host, { key: "923d7ac982594e39c06421b60f115acbb395f169" }, h("button", { key: "c97e45ba33297a8aeaa4a9726402c71e3ca73a7b", class: "search-result-row", type: "button", disabled: this.disabled, part: "button" }, h("span", { key: "dea0781519760f5dc2b46902ef86f9e72ccfa6df", class: "search-result-row__leading", part: "leading", hidden: !this.hasLeading }, h("slot", { key: "e10026c17caaa3a21e9dd34c7faabfe9b97f2f5b", name: "leading", ref: (el) => this.leadingSlot = el, onSlotchange: this.syncSlots })), h("span", { key: "e8bb06b45aff7ddbaa9a51cc7c53d797e68e8746", class: "search-result-row__content", part: "content" }, h("span", { key: "6e1c2d49029e1c1fdc2519f513ddedbe304ddb3e", class: "search-result-row__title", part: "title" }, h("slot", { key: "9653efc0b61c49d36034c4c75a3e9b3d7a6f837b", name: "title" })), h("span", { key: "b10885a7649c75f9e6903354f5804f459aa883b7", class: "search-result-row__meta", part: "meta", hidden: !this.hasMeta }, h("slot", { key: "b3101183b0dfa0cc1ba8e62c1f8fc39ad865e1ae", name: "meta", ref: (el) => this.metaSlot = el, onSlotchange: this.syncSlots })), h("span", { key: "430520c0e349344fc4c549cd36a0137d39fc8d24", class: "search-result-row__excerpt", part: "excerpt", hidden: !this.hasExcerpt }, h("slot", { key: "4a90cefa9b1d2b2378d1a8aa166aa8fdebfbca42", name: "excerpt", ref: (el) => this.excerptSlot = el, onSlotchange: this.syncSlots }))), h("span", { key: "769ed2f62ead7ce32b13cdad93a7bbb981b13b3c", class: "search-result-row__trailing", part: "trailing", hidden: !this.hasTrailing }, h("slot", { key: "86490f5fef29c6fa4d8ddf838de5f9aee8535db0", name: "trailing", ref: (el) => this.trailingSlot = el, onSlotchange: this.syncSlots }))));
45
- }
46
- };
47
- UISearchResultRow.style = uiSearchResultRowCss();
48
- export {
49
- UISearchResultRow as ui_search_result_row
50
- };
@@ -1,41 +0,0 @@
1
- import {
2
- h,
3
- registerInstance
4
- } from "./chunk-24OTMNIU.js";
5
-
6
- // dist/esm/ui-search-shell.entry.js
7
- var uiSearchShellCss = () => `:host{position:fixed;inset:0;z-index:var(--ui-search-shell-z-index, 400);display:block}.search-shell{position:absolute;inset:0;display:flex;align-items:flex-start;justify-content:center;padding-block-start:var(--ui-search-shell-padding-top, 10vh)}.search-shell__panel{position:relative;inline-size:min( calc(100% - (var(--ui-search-shell-margin-inline, var(--ui-space-4, 1rem)) * 2)), var(--ui-search-shell-max-width, 640px) );max-block-size:var(--ui-search-shell-max-height, 80vh);display:flex;flex-direction:column;overflow:hidden;background:var(--ui-search-shell-bg, var(--ui-surface, #ffffff));border:1px solid var(--ui-search-shell-border, var(--ui-border, #e5e7eb));border-radius:var(--ui-search-shell-radius, var(--ui-radius-xl, 1rem));box-shadow:var(--ui-search-shell-shadow, var(--ui-shadow-lg, 0 8px 24px rgba(0, 0, 0, 0.12)))}.search-shell__search,.search-shell__status,.search-shell__footer{flex-shrink:0}.search-shell__body{flex:1;min-block-size:0}[hidden]{display:none}@media (max-width: 767px){.search-shell{padding-block-start:0;align-items:stretch}.search-shell__panel{inline-size:100%;block-size:100vh;block-size:100dvh;max-block-size:none;border-radius:0;border-inline:none;border-block-start:none}}`;
8
- function slotHasContent(slot) {
9
- if (!slot) {
10
- return false;
11
- }
12
- return slot.assignedNodes({ flatten: true }).some((node) => {
13
- if (node.nodeType === Node.TEXT_NODE) {
14
- return Boolean(node.textContent?.trim());
15
- }
16
- return true;
17
- });
18
- }
19
- var UISearchShell = class {
20
- constructor(hostRef) {
21
- registerInstance(this, hostRef);
22
- }
23
- hasStatus = false;
24
- hasFooter = false;
25
- statusSlot;
26
- footerSlot;
27
- componentDidLoad() {
28
- this.syncSlots();
29
- }
30
- syncSlots = () => {
31
- this.hasStatus = slotHasContent(this.statusSlot);
32
- this.hasFooter = slotHasContent(this.footerSlot);
33
- };
34
- render() {
35
- return h("div", { key: "049a6451f10f1906881efc8fc2cdeba656e68733", class: "search-shell", part: "base" }, h("slot", { key: "e807b035ccb9ec9425651b59a0d137ebc54329aa", name: "backdrop" }), h("div", { key: "5d785a0d4dab1fed7f6750b82485b9e50edd62d9", class: "search-shell__panel", part: "panel" }, h("div", { key: "b41c40485d61d9436504483759a5f42d96e5aad2", class: "search-shell__search", part: "search" }, h("slot", { key: "b19058bca701cc26d286c8694c7cdc6306e100c4", name: "search" })), h("div", { key: "260164b95427e03329f28247e8dbda867506e672", class: "search-shell__status", part: "status", hidden: !this.hasStatus }, h("slot", { key: "1d7c1e8c96e588b7c9c906cfaad91ba1cf77bf7c", name: "status", ref: (el) => this.statusSlot = el, onSlotchange: this.syncSlots })), h("div", { key: "49963c82e54aee2b5c4c4809ce2b152f770b4468", class: "search-shell__body", part: "body" }, h("slot", { key: "ae32ec8c9ec89310ad1805f1c65bc8208ee12f29", name: "body" })), h("div", { key: "f5fc9f356035e277e4c9bb0e188d7b4be3642c27", class: "search-shell__footer", part: "footer", hidden: !this.hasFooter }, h("slot", { key: "dbf1022e49a054eee1c5e70b675c71d1cf3488bf", name: "footer", ref: (el) => this.footerSlot = el, onSlotchange: this.syncSlots }))));
36
- }
37
- };
38
- UISearchShell.style = uiSearchShellCss();
39
- export {
40
- UISearchShell as ui_search_shell
41
- };
@@ -1,117 +0,0 @@
1
- import {
2
- dispatchDetail,
3
- eventToTrigger
4
- } from "./chunk-UL7UIUJZ.js";
5
- import {
6
- Host,
7
- getElement,
8
- h,
9
- registerInstance
10
- } from "./chunk-24OTMNIU.js";
11
-
12
- // dist/esm/ui-select.entry.js
13
- var uiSelectCss = () => `:host{display:inline-flex;min-inline-size:0;color:var(--ui-text-primary)}::slotted(select){width:100%;appearance:none;min-block-size:var(--ui-control-min-block-size, 2.75rem);border:1px solid var(--ui-control-border, var(--ui-border-default));border-radius:var(--ui-radius-2);background-color:var(--ui-control-surface, var(--ui-surface-default));color:inherit;font:inherit;line-height:var(--ui-line-height-md);padding-block:var(--ui-select-padding-block, var(--ui-space-2));padding-inline-start:var(--ui-select-padding-inline-start, var(--ui-space-3));padding-inline-end:var(--ui-select-padding-inline-end, calc(var(--ui-space-6) + var(--ui-space-3)));margin:0;background-image:linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);background-position:calc(100% - 1rem) calc(50% - 2px), calc(100% - 0.7rem) calc(50% - 2px);background-size:0.35rem 0.35rem, 0.35rem 0.35rem;background-repeat:no-repeat;transition:border-color var(--ui-motion-fast) var(--ui-motion-ease), box-shadow var(--ui-motion-fast) var(--ui-motion-ease), background-color var(--ui-motion-fast) var(--ui-motion-ease)}::slotted(select:hover:not(:focus):not(:disabled)){border-color:var(--ui-control-border-hover, var(--ui-border-strong))}::slotted(select:focus){border-color:var(--ui-control-focus, var(--ui-focus-ring));box-shadow:0 0 0 3px var(--ui-control-focus-halo, var(--ui-accent-soft))}:host([data-invalid='true'])::slotted(select),::slotted(select[aria-invalid='true']){border-color:var(--ui-accent-active)}::slotted(select:disabled){background-color:var(--ui-control-surface-disabled, var(--ui-surface-muted));color:var(--ui-text-muted);cursor:not-allowed}::slotted(select:focus-visible){outline:2px solid var(--ui-focus-ring);outline-offset:2px}::slotted(select[multiple]),::slotted(select[size]:not([size='1'])){background-image:none;padding-inline-end:var(--ui-select-padding-inline-start, var(--ui-space-3))}`;
14
- var UISelect = class {
15
- constructor(hostRef) {
16
- registerInstance(this, hostRef);
17
- }
18
- get host() {
19
- return getElement(this);
20
- }
21
- value;
22
- defaultValue;
23
- disabled = false;
24
- invalid = false;
25
- required = false;
26
- internalValue = "";
27
- slotRef;
28
- initialized = false;
29
- syncFromProp() {
30
- if (this.value !== void 0)
31
- this.internalValue = this.value;
32
- }
33
- syncToSelect() {
34
- const select = this.getSelect();
35
- if (!select)
36
- return;
37
- this.host.dataset.invalid = this.invalid ? "true" : "";
38
- if (this.value !== void 0)
39
- select.value = this.internalValue;
40
- else if (!this.initialized && this.defaultValue !== void 0)
41
- select.value = this.defaultValue;
42
- this.initialized = true;
43
- select.disabled = this.disabled;
44
- select.required = this.required;
45
- select.setAttribute("aria-invalid", this.invalid ? "true" : "false");
46
- }
47
- componentDidLoad() {
48
- this.syncFromProp();
49
- this.slotRef?.addEventListener("slotchange", () => this.syncToSelect());
50
- this.syncToSelect();
51
- const select = this.getSelect();
52
- select?.addEventListener("input", this.onInput);
53
- select?.addEventListener("change", this.onChange);
54
- }
55
- disconnectedCallback() {
56
- const select = this.getSelect();
57
- select?.removeEventListener("input", this.onInput);
58
- select?.removeEventListener("change", this.onChange);
59
- }
60
- componentDidUpdate() {
61
- this.syncToSelect();
62
- }
63
- getSelect() {
64
- const slot = this.host.shadowRoot?.querySelector("slot");
65
- const nodes = slot?.assignedElements() ?? Array.from(this.host.children);
66
- return nodes.find((el) => el.tagName === "SELECT") ?? null;
67
- }
68
- onInput = (e) => {
69
- const select = e.target;
70
- if (!select)
71
- return;
72
- this.internalValue = select.value;
73
- dispatchDetail(this.host, "input", {
74
- value: this.internalValue,
75
- trigger: eventToTrigger(e)
76
- });
77
- };
78
- onChange = (e) => {
79
- const select = this.getSelect();
80
- if (!select)
81
- return;
82
- this.internalValue = select.value;
83
- dispatchDetail(this.host, "change", {
84
- value: this.internalValue,
85
- trigger: eventToTrigger(e)
86
- });
87
- };
88
- render() {
89
- return h(Host, { key: "2b3348e1694cfd113163af3adf939fd64cb40654", "data-invalid": this.invalid ? "" : void 0 }, h("slot", { key: "40e627125a906cf4bf294eb085c172a5370f3a54", ref: (el) => this.slotRef = el }));
90
- }
91
- static get watchers() {
92
- return {
93
- "value": [{
94
- "syncFromProp": 0
95
- }],
96
- "internalValue": [{
97
- "syncToSelect": 0
98
- }],
99
- "defaultValue": [{
100
- "syncToSelect": 0
101
- }],
102
- "disabled": [{
103
- "syncToSelect": 0
104
- }],
105
- "invalid": [{
106
- "syncToSelect": 0
107
- }],
108
- "required": [{
109
- "syncToSelect": 0
110
- }]
111
- };
112
- }
113
- };
114
- UISelect.style = uiSelectCss();
115
- export {
116
- UISelect as ui_select
117
- };
@@ -1,87 +0,0 @@
1
- import {
2
- controlledOrDefault,
3
- isControlled
4
- } from "./chunk-HNFCGIBP.js";
5
- import {
6
- dispatchDetail
7
- } from "./chunk-UL7UIUJZ.js";
8
- import {
9
- Host,
10
- getElement,
11
- h,
12
- registerInstance
13
- } from "./chunk-24OTMNIU.js";
14
-
15
- // dist/esm/ui-switch.entry.js
16
- var uiSwitchCss = () => `:host{display:inline-flex;align-items:center;gap:var(--ui-space-2);color:var(--ui-text-primary)}:host([aria-disabled='true']),:host([data-disabled='true']){opacity:0.6;cursor:not-allowed}:host([role='switch']){cursor:pointer}:host input[type='checkbox']{appearance:none;-webkit-appearance:none;display:block;position:relative;width:2.25rem;height:1.25rem;padding:0;border:1px solid var(--ui-border-default);border-radius:999px;background:var(--ui-surface-muted);cursor:pointer;transition:background-color var(--ui-motion-fast) var(--ui-motion-ease), border-color var(--ui-motion-fast) var(--ui-motion-ease);margin:0}:host input[type='checkbox']::after{content:'';position:absolute;top:2px;left:2px;width:0.875rem;height:0.875rem;border-radius:999px;background:var(--ui-surface-default);border:1px solid var(--ui-border-default);transition:transform var(--ui-motion-fast) var(--ui-motion-ease)}:host input[type='checkbox']:checked{background:var(--ui-accent-solid);border-color:var(--ui-accent-solid)}:host input[type='checkbox']:checked::after{transform:translateX(calc(2.25rem - 0.875rem - 4px));background:var(--ui-text-on-accent);border-color:var(--ui-text-on-accent)}:host input[type='checkbox']:focus-visible{outline:2px solid var(--ui-accent-solid);outline-offset:2px}`;
17
- var UISwitch = class {
18
- constructor(hostRef) {
19
- registerInstance(this, hostRef);
20
- }
21
- get host() {
22
- return getElement(this);
23
- }
24
- /** Controlled checked state. Omit it to use defaultChecked and local interaction state. */
25
- checked;
26
- defaultChecked = false;
27
- disabled = false;
28
- required = false;
29
- value = "on";
30
- internalChecked = false;
31
- syncFromProp() {
32
- if (isControlled(this.checked))
33
- this.internalChecked = this.checked;
34
- }
35
- componentDidLoad() {
36
- this.internalChecked = controlledOrDefault(this.checked, this.defaultChecked);
37
- }
38
- toggle = (trigger) => {
39
- if (this.disabled)
40
- return;
41
- const checked = !this.internalChecked;
42
- if (!isControlled(this.checked))
43
- this.internalChecked = checked;
44
- dispatchDetail(this.host, "change", {
45
- checked,
46
- value: this.value,
47
- trigger
48
- });
49
- };
50
- onKeydown = (e) => {
51
- if (e.key !== " " || this.disabled)
52
- return;
53
- e.preventDefault();
54
- this.toggle("keyboard");
55
- };
56
- onClick = (e) => {
57
- if (e.target === this.host?.shadowRoot?.querySelector("input"))
58
- return;
59
- this.toggle("pointer");
60
- };
61
- render() {
62
- return h(Host, { key: "eaee279bbc787c844f2ad265da03fca608d9c429", role: "switch", "aria-checked": String(this.internalChecked), "aria-disabled": String(this.disabled), "data-disabled": this.disabled ? "" : void 0, tabIndex: this.disabled ? -1 : 0, onKeyDown: this.onKeydown, onClick: this.onClick }, h("input", { key: "2ebfa684bf08735a4e89a06001f6758885c40ffb", type: "checkbox", checked: this.internalChecked, disabled: this.disabled, required: this.required, value: this.value, "aria-hidden": "true", tabIndex: -1, onChange: (e) => {
63
- const input = e.target;
64
- const checked = input.checked;
65
- if (!isControlled(this.checked))
66
- this.internalChecked = checked;
67
- dispatchDetail(this.host, "change", {
68
- checked,
69
- value: this.value,
70
- trigger: "pointer"
71
- });
72
- if (isControlled(this.checked))
73
- input.checked = this.internalChecked;
74
- } }), h("slot", { key: "ff9975d4ccbffbed2b97060eabf347653d5f5110" }));
75
- }
76
- static get watchers() {
77
- return {
78
- "checked": [{
79
- "syncFromProp": 0
80
- }]
81
- };
82
- }
83
- };
84
- UISwitch.style = uiSwitchCss();
85
- export {
86
- UISwitch as ui_switch
87
- };
@@ -1,128 +0,0 @@
1
- import {
2
- controlledOrDefault,
3
- isControlled
4
- } from "./chunk-HNFCGIBP.js";
5
- import {
6
- dispatchDetail,
7
- eventToTrigger
8
- } from "./chunk-UL7UIUJZ.js";
9
- import {
10
- Host,
11
- getElement,
12
- h,
13
- registerInstance
14
- } from "./chunk-24OTMNIU.js";
15
-
16
- // dist/esm/ui-tabs.entry.js
17
- var uiTabsCss = () => `:host{display:flex;flex-direction:column;gap:0}:host([data-orientation='vertical']){flex-direction:row}::slotted([role='tablist']){display:flex;gap:0;max-inline-size:100%;overflow-x:auto;overscroll-behavior-inline:contain;border-bottom:1px solid var(--ui-border-default)}:host([data-orientation='vertical']) ::slotted([role='tablist']){flex-direction:column;border-bottom:none;border-inline-end:1px solid var(--ui-border-default)}::slotted(button[role='tab']),::slotted([role='tab']),::slotted(ui-button) button[role='tab']{padding:var(--ui-space-2) var(--ui-space-3);font-size:var(--ui-font-size-sm);font-weight:var(--ui-font-medium, 500);color:var(--ui-text-secondary);background:none;border:none;border-bottom:2px solid transparent;margin-bottom:-1px;cursor:pointer;transition:color var(--ui-motion-fast) var(--ui-motion-ease);box-shadow:none}::slotted(button[role='tab']:hover),::slotted([role='tab']:hover){color:var(--ui-text-primary)}::slotted(button[role='tab'][aria-selected='true']),::slotted([role='tab'][aria-selected='true']){color:var(--ui-accent-solid);border-bottom-color:var(--ui-accent-solid)}:host([data-orientation='vertical']) ::slotted(button[role='tab']),:host([data-orientation='vertical']) ::slotted([role='tab']){border-bottom:none;border-inline-end:2px solid transparent;margin-bottom:0;margin-inline-end:-1px}:host([data-orientation='vertical']) ::slotted(button[role='tab'][aria-selected='true']),:host([data-orientation='vertical']) ::slotted([role='tab'][aria-selected='true']){border-inline-end-color:var(--ui-accent-solid)}::slotted([role='tabpanel']){padding:var(--ui-space-4)}`;
18
- var UITabs = class {
19
- constructor(hostRef) {
20
- registerInstance(this, hostRef);
21
- }
22
- get host() {
23
- return getElement(this);
24
- }
25
- /** Controlled selected tab value. Omit it to use defaultValue and local interaction state. */
26
- value;
27
- defaultValue = "";
28
- orientation = "horizontal";
29
- internalValue = "";
30
- syncFromProp() {
31
- if (isControlled(this.value))
32
- this.internalValue = this.value;
33
- }
34
- syncState() {
35
- const tabs = this.getTabs();
36
- if (tabs.length === 0)
37
- return;
38
- tabs.forEach((tab) => {
39
- const tabId = tab.id ?? tab.getAttribute("aria-controls") ?? "";
40
- const isSelected = tabId === this.internalValue;
41
- tab.setAttribute("aria-selected", String(isSelected));
42
- tab.tabIndex = isSelected ? 0 : -1;
43
- const controlsId = tab.getAttribute("aria-controls");
44
- if (controlsId) {
45
- const panel = this.host.querySelector(`#${CSS.escape(controlsId)}`) ?? document.getElementById(controlsId);
46
- if (panel) {
47
- panel.hidden = !isSelected;
48
- }
49
- }
50
- });
51
- }
52
- componentDidLoad() {
53
- this.internalValue = controlledOrDefault(this.value, this.defaultValue);
54
- if (!isControlled(this.value) && !this.internalValue) {
55
- const tabs = this.getTabs();
56
- if (tabs.length > 0) {
57
- this.internalValue = tabs[0]?.id ?? tabs[0]?.getAttribute("aria-controls") ?? "";
58
- }
59
- }
60
- this.syncState();
61
- this.host.addEventListener("keydown", this.onKeydown);
62
- this.host.addEventListener("click", this.onClick);
63
- }
64
- disconnectedCallback() {
65
- this.host.removeEventListener("keydown", this.onKeydown);
66
- this.host.removeEventListener("click", this.onClick);
67
- }
68
- componentDidUpdate() {
69
- this.syncState();
70
- }
71
- getTabs() {
72
- return Array.from(this.host.querySelectorAll('[role="tab"]'));
73
- }
74
- setValueFromTab(tab, trigger) {
75
- const newValue = tab.id ?? tab.getAttribute("aria-controls") ?? "";
76
- if (!newValue)
77
- return;
78
- const prev = this.internalValue;
79
- if (!isControlled(this.value))
80
- this.internalValue = newValue;
81
- this.syncState();
82
- dispatchDetail(this.host, "select", { value: newValue, previousValue: prev || void 0, trigger });
83
- }
84
- onClick = (e) => {
85
- const tab = e.target.closest?.('[role="tab"]');
86
- if (!tab || !this.host.contains(tab))
87
- return;
88
- this.setValueFromTab(tab, eventToTrigger(e));
89
- };
90
- onKeydown = (e) => {
91
- const tab = e.target.closest?.('[role="tab"]');
92
- if (!tab || !this.host.contains(tab))
93
- return;
94
- const tabs = this.getTabs();
95
- if (tabs.length === 0)
96
- return;
97
- const currentIndex = tabs.indexOf(tab);
98
- const isVertical = this.orientation === "vertical";
99
- const prevKey = isVertical ? "ArrowUp" : "ArrowLeft";
100
- const nextKey = isVertical ? "ArrowDown" : "ArrowRight";
101
- if (e.key === nextKey || e.key === prevKey) {
102
- e.preventDefault();
103
- const nextIndex = e.key === nextKey ? Math.min(currentIndex + 1, tabs.length - 1) : currentIndex <= 0 ? tabs.length - 1 : currentIndex - 1;
104
- this.setValueFromTab(tabs[nextIndex], "keyboard");
105
- tabs[nextIndex].focus();
106
- }
107
- };
108
- render() {
109
- return h(Host, { key: "61044ac3f2fcb0f766d931416f42ff17ec94c00d", orientation: this.orientation, "data-orientation": this.orientation }, h("slot", { key: "3260c95bdd24581045b1c4e4d1b8f4d08daf02b4" }));
110
- }
111
- static get watchers() {
112
- return {
113
- "value": [{
114
- "syncFromProp": 0
115
- }],
116
- "internalValue": [{
117
- "syncState": 0
118
- }],
119
- "orientation": [{
120
- "syncState": 0
121
- }]
122
- };
123
- }
124
- };
125
- UITabs.style = uiTabsCss();
126
- export {
127
- UITabs as ui_tabs
128
- };