@threadlabs/looma 0.1.22 → 0.1.24

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 (326) hide show
  1. package/dist/chunk-HNFCGIBP.js +8 -0
  2. package/dist/{chunk-NIPNHZ5W.js → chunk-IMHSPETJ.js} +65 -31
  3. package/dist/chunk-NB6DBRXQ.js +323 -0
  4. package/dist/{chunk-SZJQ3NPX.js → chunk-TL4FIE7X.js} +4 -8
  5. package/dist/cjs/controlled-state-BFya8rAX.js +9 -0
  6. package/dist/cjs/icons-BAdjrnhS.js +680 -0
  7. package/dist/cjs/{index-D07f6BOw.js → index-BHG9Rpil.js} +33 -0
  8. package/dist/cjs/loader.cjs.js +2 -2
  9. package/dist/cjs/looma.cjs.js +2 -2
  10. package/dist/cjs/{manager-C9j3HZay.js → manager-Ce25WRtl.js} +6 -7
  11. package/dist/cjs/ui-affordance-scope.cjs.entry.js +2 -2
  12. package/dist/cjs/ui-avatar-group.cjs.entry.js +10 -18
  13. package/dist/cjs/ui-avatar.cjs.entry.js +3 -3
  14. package/dist/cjs/ui-badge.cjs.entry.js +3 -3
  15. package/dist/cjs/ui-button.cjs.entry.js +16 -5
  16. package/dist/cjs/ui-callout.cjs.entry.js +27 -0
  17. package/dist/cjs/ui-checkbox.cjs.entry.js +14 -8
  18. package/dist/cjs/ui-chip.cjs.entry.js +19 -0
  19. package/dist/cjs/ui-combobox.cjs.entry.js +541 -0
  20. package/dist/cjs/ui-context-menu.cjs.entry.js +3 -3
  21. package/dist/cjs/ui-dialog.cjs.entry.js +46 -10
  22. package/dist/cjs/ui-disclosure.cjs.entry.js +10 -7
  23. package/dist/cjs/ui-floating-action-button.cjs.entry.js +2 -2
  24. package/dist/cjs/ui-form-field.cjs.entry.js +61 -6
  25. package/dist/cjs/ui-icon-button.cjs.entry.js +2 -2
  26. package/dist/cjs/ui-input.cjs.entry.js +11 -6
  27. package/dist/cjs/ui-menu-item.cjs.entry.js +3 -3
  28. package/dist/cjs/ui-menu.cjs.entry.js +16 -11
  29. package/dist/cjs/ui-popover.cjs.entry.js +12 -9
  30. package/dist/cjs/ui-radio-group.cjs.entry.js +2 -2
  31. package/dist/cjs/ui-radio.cjs.entry.js +18 -9
  32. package/dist/cjs/ui-search-result-row.cjs.entry.js +2 -2
  33. package/dist/cjs/ui-search-shell.cjs.entry.js +2 -2
  34. package/dist/cjs/ui-select.cjs.entry.js +15 -7
  35. package/dist/cjs/ui-switch.cjs.entry.js +20 -11
  36. package/dist/cjs/ui-tabs.cjs.entry.js +11 -10
  37. package/dist/cjs/ui-textarea.cjs.entry.js +10 -6
  38. package/dist/cjs/ui-toast-region.cjs.entry.js +31 -20
  39. package/dist/cjs/ui-tooltip.cjs.entry.js +63 -23
  40. package/dist/cjs/ui-top-bar.cjs.entry.js +2 -2
  41. package/dist/cjs/ui-tree-item.cjs.entry.js +57 -616
  42. package/dist/cjs/ui-tree.cjs.entry.js +198 -14
  43. package/dist/collection/collection-manifest.json +3 -0
  44. package/dist/collection/components/ui-affordance-scope/ui-affordance-scope.js +1 -1
  45. package/dist/collection/components/ui-avatar/ui-avatar.css +4 -4
  46. package/dist/collection/components/ui-avatar/ui-avatar.js +1 -1
  47. package/dist/collection/components/ui-avatar-group/ui-avatar-group.css +2 -2
  48. package/dist/collection/components/ui-avatar-group/ui-avatar-group.js +8 -16
  49. package/dist/collection/components/ui-badge/ui-badge.css +64 -48
  50. package/dist/collection/components/ui-badge/ui-badge.js +1 -1
  51. package/dist/collection/components/ui-button/ui-button.css +36 -26
  52. package/dist/collection/components/ui-button/ui-button.js +14 -3
  53. package/dist/collection/components/ui-callout/ui-callout.css +74 -0
  54. package/dist/collection/components/ui-callout/ui-callout.js +59 -0
  55. package/dist/collection/components/ui-checkbox/ui-checkbox.js +16 -11
  56. package/dist/collection/components/ui-chip/ui-chip.css +43 -0
  57. package/dist/collection/components/ui-chip/ui-chip.js +45 -0
  58. package/dist/collection/components/ui-combobox/ui-combobox.css +24 -0
  59. package/dist/collection/components/ui-combobox/ui-combobox.js +973 -0
  60. package/dist/collection/components/ui-context-menu/ui-context-menu.js +1 -1
  61. package/dist/collection/components/ui-dialog/ui-dialog.js +49 -13
  62. package/dist/collection/components/ui-disclosure/ui-disclosure.js +12 -10
  63. package/dist/collection/components/ui-floating-action-button/ui-floating-action-button.js +1 -1
  64. package/dist/collection/components/ui-form-field/ui-form-field.css +4 -0
  65. package/dist/collection/components/ui-form-field/ui-form-field.js +59 -4
  66. package/dist/collection/components/ui-icon-button/ui-icon-button.js +1 -1
  67. package/dist/collection/components/ui-input/ui-input.css +8 -6
  68. package/dist/collection/components/ui-input/ui-input.js +11 -7
  69. package/dist/collection/components/ui-menu/ui-menu.css +12 -23
  70. package/dist/collection/components/ui-menu/ui-menu.js +16 -12
  71. package/dist/collection/components/ui-menu-item/ui-menu-item.css +9 -3
  72. package/dist/collection/components/ui-menu-item/ui-menu-item.js +1 -1
  73. package/dist/collection/components/ui-popover/ui-popover.css +14 -5
  74. package/dist/collection/components/ui-popover/ui-popover.js +12 -10
  75. package/dist/collection/components/ui-radio/ui-radio.js +25 -12
  76. package/dist/collection/components/ui-radio-group/ui-radio-group.js +1 -1
  77. package/dist/collection/components/ui-search-result-row/ui-search-result-row.js +1 -1
  78. package/dist/collection/components/ui-search-shell/ui-search-shell.js +1 -1
  79. package/dist/collection/components/ui-select/ui-select.css +8 -6
  80. package/dist/collection/components/ui-select/ui-select.js +17 -11
  81. package/dist/collection/components/ui-switch/ui-switch.js +22 -14
  82. package/dist/collection/components/ui-tabs/ui-tabs.js +13 -13
  83. package/dist/collection/components/ui-textarea/ui-textarea.css +7 -6
  84. package/dist/collection/components/ui-textarea/ui-textarea.js +10 -7
  85. package/dist/collection/components/ui-toast-region/ui-toast-region.js +30 -19
  86. package/dist/collection/components/ui-tooltip/ui-tooltip.css +16 -7
  87. package/dist/collection/components/ui-tooltip/ui-tooltip.js +115 -25
  88. package/dist/collection/components/ui-top-bar/ui-top-bar.js +1 -1
  89. package/dist/collection/components/ui-tree/ui-tree.css +2 -1
  90. package/dist/collection/components/ui-tree/ui-tree.js +216 -12
  91. package/dist/collection/components/ui-tree-item/ui-tree-item.js +84 -25
  92. package/dist/collection/field/combobox.js +4 -0
  93. package/dist/collection/field/valibot.js +5 -0
  94. package/dist/collection/field/validation.js +62 -0
  95. package/dist/collection/icons.js +6 -1
  96. package/dist/collection/overlay/manager.js +6 -7
  97. package/dist/collection/utils/controlled-state.js +4 -0
  98. package/dist/components/index.d.ts +6 -0
  99. package/dist/components/index.js +1 -1
  100. package/dist/components/p-Bh_1GxOD.js +1 -0
  101. package/dist/components/p-Bk55QiUK.js +1 -0
  102. package/dist/components/p-BnGhGgTH.js +1 -0
  103. package/dist/components/p-C-0syqXZ.js +1 -0
  104. package/dist/components/p-CoFximGM.js +13 -0
  105. package/dist/components/p-DIGcRYAW.js +1 -0
  106. package/dist/components/ui-affordance-scope.js +1 -1
  107. package/dist/components/ui-avatar-group.js +1 -1
  108. package/dist/components/ui-avatar.js +1 -1
  109. package/dist/components/ui-badge.js +1 -1
  110. package/dist/components/ui-button.js +1 -1
  111. package/dist/components/ui-callout.d.ts +11 -0
  112. package/dist/components/ui-callout.js +1 -0
  113. package/dist/components/ui-checkbox.js +1 -1
  114. package/dist/components/ui-chip.d.ts +11 -0
  115. package/dist/components/ui-chip.js +1 -0
  116. package/dist/components/ui-combobox.d.ts +11 -0
  117. package/dist/components/ui-combobox.js +1 -0
  118. package/dist/components/ui-context-menu.js +1 -1
  119. package/dist/components/ui-dialog.js +1 -1
  120. package/dist/components/ui-disclosure.js +1 -1
  121. package/dist/components/ui-floating-action-button.js +1 -1
  122. package/dist/components/ui-form-field.js +1 -1
  123. package/dist/components/ui-icon-button.js +1 -1
  124. package/dist/components/ui-input.js +1 -1
  125. package/dist/components/ui-menu-item.js +1 -1
  126. package/dist/components/ui-menu.js +1 -1
  127. package/dist/components/ui-popover.js +1 -1
  128. package/dist/components/ui-radio-group.js +1 -1
  129. package/dist/components/ui-radio.js +1 -1
  130. package/dist/components/ui-search-result-row.js +1 -1
  131. package/dist/components/ui-search-shell.js +1 -1
  132. package/dist/components/ui-select.js +1 -1
  133. package/dist/components/ui-switch.js +1 -1
  134. package/dist/components/ui-tabs.js +1 -1
  135. package/dist/components/ui-textarea.js +1 -1
  136. package/dist/components/ui-toast-region.js +1 -1
  137. package/dist/components/ui-tooltip.js +1 -1
  138. package/dist/components/ui-top-bar.js +1 -1
  139. package/dist/components/ui-tree-item.js +1 -13
  140. package/dist/components/ui-tree.js +1 -1
  141. package/dist/esm/controlled-state-BnGhGgTH.js +6 -0
  142. package/dist/esm/icons-CoFximGM.js +678 -0
  143. package/dist/esm/{index-CEeiinfk.js → index-8BGiMGQ0.js} +33 -1
  144. package/dist/esm/loader.js +3 -3
  145. package/dist/esm/looma.js +3 -3
  146. package/dist/esm/{manager-PM9a74r7.js → manager-C-0syqXZ.js} +6 -7
  147. package/dist/esm/ui-affordance-scope.entry.js +2 -2
  148. package/dist/esm/ui-avatar-group.entry.js +10 -18
  149. package/dist/esm/ui-avatar.entry.js +3 -3
  150. package/dist/esm/ui-badge.entry.js +3 -3
  151. package/dist/esm/ui-button.entry.js +16 -5
  152. package/dist/esm/ui-callout.entry.js +25 -0
  153. package/dist/esm/ui-checkbox.entry.js +14 -8
  154. package/dist/esm/ui-chip.entry.js +17 -0
  155. package/dist/esm/ui-combobox.entry.js +539 -0
  156. package/dist/esm/ui-context-menu.entry.js +3 -3
  157. package/dist/esm/ui-dialog.entry.js +46 -10
  158. package/dist/esm/ui-disclosure.entry.js +10 -7
  159. package/dist/esm/ui-floating-action-button.entry.js +2 -2
  160. package/dist/esm/ui-form-field.entry.js +61 -6
  161. package/dist/esm/ui-icon-button.entry.js +2 -2
  162. package/dist/esm/ui-input.entry.js +11 -6
  163. package/dist/esm/ui-menu-item.entry.js +3 -3
  164. package/dist/esm/ui-menu.entry.js +16 -11
  165. package/dist/esm/ui-popover.entry.js +12 -9
  166. package/dist/esm/ui-radio-group.entry.js +2 -2
  167. package/dist/esm/ui-radio.entry.js +18 -9
  168. package/dist/esm/ui-search-result-row.entry.js +2 -2
  169. package/dist/esm/ui-search-shell.entry.js +2 -2
  170. package/dist/esm/ui-select.entry.js +15 -7
  171. package/dist/esm/ui-switch.entry.js +20 -11
  172. package/dist/esm/ui-tabs.entry.js +11 -10
  173. package/dist/esm/ui-textarea.entry.js +10 -6
  174. package/dist/esm/ui-toast-region.entry.js +31 -20
  175. package/dist/esm/ui-tooltip.entry.js +63 -23
  176. package/dist/esm/ui-top-bar.entry.js +2 -2
  177. package/dist/esm/ui-tree-item.entry.js +57 -616
  178. package/dist/esm/ui-tree.entry.js +198 -14
  179. package/dist/index.cjs +2012 -870
  180. package/dist/index.d.cts +109 -1
  181. package/dist/index.d.ts +109 -1
  182. package/dist/index.js +72 -8
  183. package/dist/looma/looma.esm.js +1 -1
  184. package/dist/looma/p-03f44c45.entry.js +1 -0
  185. package/dist/looma/p-08f80207.entry.js +1 -0
  186. package/dist/looma/p-13f8195a.entry.js +1 -0
  187. package/dist/looma/{p-d273b857.entry.js → p-25e18ad6.entry.js} +1 -1
  188. package/dist/looma/p-2c03fa73.entry.js +1 -0
  189. package/dist/looma/p-314d5c7c.entry.js +1 -0
  190. package/dist/looma/{p-2ed7e241.entry.js → p-3ef2a21b.entry.js} +1 -1
  191. package/dist/looma/{p-063f5a89.entry.js → p-5a900d89.entry.js} +1 -1
  192. package/dist/looma/p-5fdcee1d.entry.js +1 -0
  193. package/dist/looma/{p-0198bb21.entry.js → p-672e3d16.entry.js} +1 -1
  194. package/dist/looma/p-68430534.entry.js +1 -0
  195. package/dist/looma/{p-2e6f791e.entry.js → p-72338f53.entry.js} +1 -1
  196. package/dist/looma/p-7ab661ec.entry.js +1 -0
  197. package/dist/looma/p-7c4a225f.entry.js +1 -0
  198. package/dist/looma/p-82f2fa3d.entry.js +1 -0
  199. package/dist/looma/p-839faf55.entry.js +1 -0
  200. package/dist/looma/p-8BGiMGQ0.js +2 -0
  201. package/dist/looma/p-8e254bc4.entry.js +1 -0
  202. package/dist/looma/p-8e6b1001.entry.js +1 -0
  203. package/dist/looma/p-920656cf.entry.js +1 -0
  204. package/dist/looma/p-97e8cb0e.entry.js +1 -0
  205. package/dist/looma/p-9d2662ca.entry.js +1 -0
  206. package/dist/looma/p-9e1c4020.entry.js +1 -0
  207. package/dist/looma/p-BnGhGgTH.js +1 -0
  208. package/dist/looma/p-C-0syqXZ.js +1 -0
  209. package/dist/looma/p-CoFximGM.js +13 -0
  210. package/dist/looma/{p-051f578c.entry.js → p-a63e2561.entry.js} +1 -1
  211. package/dist/looma/p-add67e4c.entry.js +1 -0
  212. package/dist/looma/p-b63f6d4f.entry.js +1 -0
  213. package/dist/looma/p-bd00d4e8.entry.js +1 -0
  214. package/dist/looma/p-cc915913.entry.js +1 -0
  215. package/dist/looma/p-cfba8f7c.entry.js +1 -0
  216. package/dist/looma/p-d56571a2.entry.js +1 -0
  217. package/dist/looma/{p-7e94d90d.entry.js → p-e0f241ab.entry.js} +1 -1
  218. package/dist/looma/p-f1750fd7.entry.js +1 -0
  219. package/dist/looma/p-fd1e4d22.entry.js +1 -0
  220. package/dist/types/components/ui-avatar-group/ui-avatar-group.d.ts +1 -2
  221. package/dist/types/components/ui-callout/ui-callout.d.ts +6 -0
  222. package/dist/types/components/ui-checkbox/ui-checkbox.d.ts +2 -1
  223. package/dist/types/components/ui-chip/ui-chip.d.ts +6 -0
  224. package/dist/types/components/ui-combobox/ui-combobox.d.ts +93 -0
  225. package/dist/types/components/ui-dialog/ui-dialog.d.ts +7 -1
  226. package/dist/types/components/ui-disclosure/ui-disclosure.d.ts +2 -1
  227. package/dist/types/components/ui-form-field/ui-form-field.d.ts +8 -0
  228. package/dist/types/components/ui-input/ui-input.d.ts +1 -1
  229. package/dist/types/components/ui-menu/ui-menu.d.ts +2 -1
  230. package/dist/types/components/ui-popover/ui-popover.d.ts +2 -1
  231. package/dist/types/components/ui-radio/ui-radio.d.ts +4 -1
  232. package/dist/types/components/ui-select/ui-select.d.ts +3 -2
  233. package/dist/types/components/ui-switch/ui-switch.d.ts +2 -1
  234. package/dist/types/components/ui-tabs/ui-tabs.d.ts +2 -1
  235. package/dist/types/components/ui-textarea/ui-textarea.d.ts +1 -1
  236. package/dist/types/components/ui-toast-region/ui-toast-region.d.ts +3 -1
  237. package/dist/types/components/ui-tooltip/ui-tooltip.d.ts +20 -2
  238. package/dist/types/components/ui-tree/ui-tree.d.ts +21 -1
  239. package/dist/types/components/ui-tree-item/ui-tree-item.d.ts +13 -5
  240. package/dist/types/components.d.ts +366 -71
  241. package/dist/types/field/combobox.d.ts +46 -0
  242. package/dist/types/field/valibot.d.ts +7 -0
  243. package/dist/types/field/validation.d.ts +56 -0
  244. package/dist/types/icons.d.ts +5 -0
  245. package/dist/types/utils/controlled-state.d.ts +4 -0
  246. package/dist/{ui-affordance-scope.entry-L533MECG.js → ui-affordance-scope.entry-3TUZ6GLW.js} +2 -2
  247. package/dist/ui-avatar-group.entry-XGJKN25W.js +51 -0
  248. package/dist/{ui-avatar.entry-3INAY3XP.js → ui-avatar.entry-SN3G44HW.js} +3 -3
  249. package/dist/ui-badge.entry-B6WDCWJX.js +22 -0
  250. package/dist/ui-button.entry-AZYUELLV.js +80 -0
  251. package/dist/ui-callout.entry-QRPWRMPC.js +32 -0
  252. package/dist/{ui-checkbox.entry-2PTBHSCQ.js → ui-checkbox.entry-OB6GFC4M.js} +17 -8
  253. package/dist/ui-chip.entry-XSNPJXX3.js +22 -0
  254. package/dist/ui-combobox.entry-IIMMUJF7.js +553 -0
  255. package/dist/{ui-context-menu.entry-AYDDCIZS.js → ui-context-menu.entry-AIULIE5Y.js} +3 -3
  256. package/dist/{ui-dialog.entry-I2XI3ZTZ.js → ui-dialog.entry-QSYWYHLY.js} +48 -10
  257. package/dist/{ui-disclosure.entry-5LY2BT7B.js → ui-disclosure.entry-3BJEYU3U.js} +13 -7
  258. package/dist/{ui-floating-action-button.entry-EJAMR5AM.js → ui-floating-action-button.entry-JEVNV6FI.js} +2 -2
  259. package/dist/ui-form-field.entry-PKSY7UU4.js +120 -0
  260. package/dist/{ui-icon-button.entry-7SD2LVXE.js → ui-icon-button.entry-TPX7BE7R.js} +2 -2
  261. package/dist/{ui-input.entry-7MM7GEQW.js → ui-input.entry-6NCLNW4E.js} +8 -6
  262. package/dist/ui-menu-item.entry-KA2K3PKV.js +22 -0
  263. package/dist/{ui-menu.entry-R4WK5QSX.js → ui-menu.entry-7GDO5L2T.js} +19 -11
  264. package/dist/{ui-popover.entry-ZRJRTXA7.js → ui-popover.entry-FR6YRNK6.js} +15 -9
  265. package/dist/{ui-radio-group.entry-S6RXHFSN.js → ui-radio-group.entry-7QHXQSNO.js} +2 -2
  266. package/dist/{ui-radio.entry-B73QZK2M.js → ui-radio.entry-YNMXKLDW.js} +21 -9
  267. package/dist/{ui-search-result-row.entry-DR2Y5S7P.js → ui-search-result-row.entry-AHVVAAIO.js} +2 -2
  268. package/dist/{ui-search-shell.entry-ST5IKJBC.js → ui-search-shell.entry-CNBEAMEZ.js} +2 -2
  269. package/dist/{ui-select.entry-7GPRFV67.js → ui-select.entry-TUY6TCTC.js} +13 -7
  270. package/dist/{ui-switch.entry-XQ5IRJRH.js → ui-switch.entry-26LFI7B5.js} +23 -11
  271. package/dist/{ui-tabs.entry-HPW5L5CY.js → ui-tabs.entry-LXB62RJJ.js} +14 -10
  272. package/dist/{ui-textarea.entry-W2PSRYVS.js → ui-textarea.entry-JYGMGPX2.js} +8 -6
  273. package/dist/{ui-toast-region.entry-FJUHFXKZ.js → ui-toast-region.entry-TOW4KZLZ.js} +29 -20
  274. package/dist/{ui-tooltip.entry-G5WHQW7K.js → ui-tooltip.entry-SKFNYXPH.js} +68 -25
  275. package/dist/{ui-top-bar.entry-3NCHFC4Y.js → ui-top-bar.entry-S3YP52EA.js} +2 -2
  276. package/dist/ui-tree-item.entry-LWYIPYLC.js +145 -0
  277. package/dist/{ui-tree.entry-SZW4Q5PY.js → ui-tree.entry-LXKUQFRU.js} +184 -13
  278. package/dist/valibot.d.ts +52 -0
  279. package/dist/valibot.js +7 -0
  280. package/editor/{chunk-QCOYOVQL.js → chunk-B5WVJOPV.js} +113 -97
  281. package/editor/extensions/index.d.ts +14 -6
  282. package/editor/extensions/index.js +1 -1
  283. package/editor/index.js +1 -1
  284. package/editor.css +37 -20
  285. package/package.json +11 -3
  286. package/styles.css +46 -20
  287. package/theme-high-contrast.css +12 -0
  288. package/tokens.css +26 -0
  289. package/vue/{chunk-5KWCMTXB.js → chunk-D4AJULDE.js} +116 -17
  290. package/vue/editor/index.d.ts +5 -15
  291. package/vue/editor/index.js +1 -1
  292. package/vue/index.d.ts +447 -115
  293. package/vue/index.js +7 -1
  294. package/dist/components/p-CEYIKqYc.js +0 -1
  295. package/dist/components/p-CIA4RyEp.js +0 -1
  296. package/dist/components/p-PM9a74r7.js +0 -1
  297. package/dist/looma/p-0584a051.entry.js +0 -1
  298. package/dist/looma/p-078f9fb8.entry.js +0 -1
  299. package/dist/looma/p-0f45c5f0.entry.js +0 -1
  300. package/dist/looma/p-11083743.entry.js +0 -1
  301. package/dist/looma/p-1674cda4.entry.js +0 -1
  302. package/dist/looma/p-1681b218.entry.js +0 -1
  303. package/dist/looma/p-34417499.entry.js +0 -1
  304. package/dist/looma/p-4b422d40.entry.js +0 -1
  305. package/dist/looma/p-54722713.entry.js +0 -13
  306. package/dist/looma/p-54c41576.entry.js +0 -1
  307. package/dist/looma/p-5ba9d496.entry.js +0 -1
  308. package/dist/looma/p-5d4713a6.entry.js +0 -1
  309. package/dist/looma/p-624ba086.entry.js +0 -1
  310. package/dist/looma/p-8d5adb17.entry.js +0 -1
  311. package/dist/looma/p-9194a99d.entry.js +0 -1
  312. package/dist/looma/p-CEeiinfk.js +0 -2
  313. package/dist/looma/p-PM9a74r7.js +0 -1
  314. package/dist/looma/p-a33522a2.entry.js +0 -1
  315. package/dist/looma/p-a5127c7d.entry.js +0 -1
  316. package/dist/looma/p-a9f46811.entry.js +0 -1
  317. package/dist/looma/p-b7aa4488.entry.js +0 -1
  318. package/dist/looma/p-caa8fc7b.entry.js +0 -1
  319. package/dist/looma/p-e3f99a24.entry.js +0 -1
  320. package/dist/looma/p-ed5abf6d.entry.js +0 -1
  321. package/dist/ui-avatar-group.entry-BWS7E2CM.js +0 -59
  322. package/dist/ui-badge.entry-2WOBVOYP.js +0 -22
  323. package/dist/ui-button.entry-VCGSEONK.js +0 -71
  324. package/dist/ui-form-field.entry-SJ6NNFXB.js +0 -67
  325. package/dist/ui-menu-item.entry-V3HIMR75.js +0 -22
  326. package/dist/ui-tree-item.entry-45RR3CMP.js +0 -385
@@ -0,0 +1,8 @@
1
+ // dist/esm/controlled-state-BnGhGgTH.js
2
+ var isControlled = (value) => value !== void 0;
3
+ var controlledOrDefault = (value, defaultValue) => value === void 0 ? defaultValue : value;
4
+
5
+ export {
6
+ isControlled,
7
+ controlledOrDefault
8
+ };
@@ -4,40 +4,43 @@ var __glob = (map) => (path) => {
4
4
  throw new Error("Module not found in bundle: " + path);
5
5
  };
6
6
 
7
- // import("./**/*.entry.js") in dist/esm/index-CEeiinfk.js
7
+ // import("./**/*.entry.js") in dist/esm/index-8BGiMGQ0.js
8
8
  var globImport_entry_js = __glob({
9
- "./ui-affordance-scope.entry.js": () => import("./ui-affordance-scope.entry-L533MECG.js"),
10
- "./ui-avatar-group.entry.js": () => import("./ui-avatar-group.entry-BWS7E2CM.js"),
11
- "./ui-avatar.entry.js": () => import("./ui-avatar.entry-3INAY3XP.js"),
12
- "./ui-badge.entry.js": () => import("./ui-badge.entry-2WOBVOYP.js"),
13
- "./ui-button.entry.js": () => import("./ui-button.entry-VCGSEONK.js"),
14
- "./ui-checkbox.entry.js": () => import("./ui-checkbox.entry-2PTBHSCQ.js"),
15
- "./ui-context-menu.entry.js": () => import("./ui-context-menu.entry-AYDDCIZS.js"),
16
- "./ui-dialog.entry.js": () => import("./ui-dialog.entry-I2XI3ZTZ.js"),
17
- "./ui-disclosure.entry.js": () => import("./ui-disclosure.entry-5LY2BT7B.js"),
18
- "./ui-floating-action-button.entry.js": () => import("./ui-floating-action-button.entry-EJAMR5AM.js"),
19
- "./ui-form-field.entry.js": () => import("./ui-form-field.entry-SJ6NNFXB.js"),
20
- "./ui-icon-button.entry.js": () => import("./ui-icon-button.entry-7SD2LVXE.js"),
21
- "./ui-input.entry.js": () => import("./ui-input.entry-7MM7GEQW.js"),
22
- "./ui-menu-item.entry.js": () => import("./ui-menu-item.entry-V3HIMR75.js"),
23
- "./ui-menu.entry.js": () => import("./ui-menu.entry-R4WK5QSX.js"),
24
- "./ui-popover.entry.js": () => import("./ui-popover.entry-ZRJRTXA7.js"),
25
- "./ui-radio-group.entry.js": () => import("./ui-radio-group.entry-S6RXHFSN.js"),
26
- "./ui-radio.entry.js": () => import("./ui-radio.entry-B73QZK2M.js"),
27
- "./ui-search-result-row.entry.js": () => import("./ui-search-result-row.entry-DR2Y5S7P.js"),
28
- "./ui-search-shell.entry.js": () => import("./ui-search-shell.entry-ST5IKJBC.js"),
29
- "./ui-select.entry.js": () => import("./ui-select.entry-7GPRFV67.js"),
30
- "./ui-switch.entry.js": () => import("./ui-switch.entry-XQ5IRJRH.js"),
31
- "./ui-tabs.entry.js": () => import("./ui-tabs.entry-HPW5L5CY.js"),
32
- "./ui-textarea.entry.js": () => import("./ui-textarea.entry-W2PSRYVS.js"),
33
- "./ui-toast-region.entry.js": () => import("./ui-toast-region.entry-FJUHFXKZ.js"),
34
- "./ui-tooltip.entry.js": () => import("./ui-tooltip.entry-G5WHQW7K.js"),
35
- "./ui-top-bar.entry.js": () => import("./ui-top-bar.entry-3NCHFC4Y.js"),
36
- "./ui-tree-item.entry.js": () => import("./ui-tree-item.entry-45RR3CMP.js"),
37
- "./ui-tree.entry.js": () => import("./ui-tree.entry-SZW4Q5PY.js")
9
+ "./ui-affordance-scope.entry.js": () => import("./ui-affordance-scope.entry-3TUZ6GLW.js"),
10
+ "./ui-avatar-group.entry.js": () => import("./ui-avatar-group.entry-XGJKN25W.js"),
11
+ "./ui-avatar.entry.js": () => import("./ui-avatar.entry-SN3G44HW.js"),
12
+ "./ui-badge.entry.js": () => import("./ui-badge.entry-B6WDCWJX.js"),
13
+ "./ui-button.entry.js": () => import("./ui-button.entry-AZYUELLV.js"),
14
+ "./ui-callout.entry.js": () => import("./ui-callout.entry-QRPWRMPC.js"),
15
+ "./ui-checkbox.entry.js": () => import("./ui-checkbox.entry-OB6GFC4M.js"),
16
+ "./ui-chip.entry.js": () => import("./ui-chip.entry-XSNPJXX3.js"),
17
+ "./ui-combobox.entry.js": () => import("./ui-combobox.entry-IIMMUJF7.js"),
18
+ "./ui-context-menu.entry.js": () => import("./ui-context-menu.entry-AIULIE5Y.js"),
19
+ "./ui-dialog.entry.js": () => import("./ui-dialog.entry-QSYWYHLY.js"),
20
+ "./ui-disclosure.entry.js": () => import("./ui-disclosure.entry-3BJEYU3U.js"),
21
+ "./ui-floating-action-button.entry.js": () => import("./ui-floating-action-button.entry-JEVNV6FI.js"),
22
+ "./ui-form-field.entry.js": () => import("./ui-form-field.entry-PKSY7UU4.js"),
23
+ "./ui-icon-button.entry.js": () => import("./ui-icon-button.entry-TPX7BE7R.js"),
24
+ "./ui-input.entry.js": () => import("./ui-input.entry-6NCLNW4E.js"),
25
+ "./ui-menu-item.entry.js": () => import("./ui-menu-item.entry-KA2K3PKV.js"),
26
+ "./ui-menu.entry.js": () => import("./ui-menu.entry-7GDO5L2T.js"),
27
+ "./ui-popover.entry.js": () => import("./ui-popover.entry-FR6YRNK6.js"),
28
+ "./ui-radio-group.entry.js": () => import("./ui-radio-group.entry-7QHXQSNO.js"),
29
+ "./ui-radio.entry.js": () => import("./ui-radio.entry-YNMXKLDW.js"),
30
+ "./ui-search-result-row.entry.js": () => import("./ui-search-result-row.entry-AHVVAAIO.js"),
31
+ "./ui-search-shell.entry.js": () => import("./ui-search-shell.entry-CNBEAMEZ.js"),
32
+ "./ui-select.entry.js": () => import("./ui-select.entry-TUY6TCTC.js"),
33
+ "./ui-switch.entry.js": () => import("./ui-switch.entry-26LFI7B5.js"),
34
+ "./ui-tabs.entry.js": () => import("./ui-tabs.entry-LXB62RJJ.js"),
35
+ "./ui-textarea.entry.js": () => import("./ui-textarea.entry-JYGMGPX2.js"),
36
+ "./ui-toast-region.entry.js": () => import("./ui-toast-region.entry-TOW4KZLZ.js"),
37
+ "./ui-tooltip.entry.js": () => import("./ui-tooltip.entry-SKFNYXPH.js"),
38
+ "./ui-top-bar.entry.js": () => import("./ui-top-bar.entry-S3YP52EA.js"),
39
+ "./ui-tree-item.entry.js": () => import("./ui-tree-item.entry-LWYIPYLC.js"),
40
+ "./ui-tree.entry.js": () => import("./ui-tree.entry-LXKUQFRU.js")
38
41
  });
39
42
 
40
- // dist/esm/index-CEeiinfk.js
43
+ // dist/esm/index-8BGiMGQ0.js
41
44
  var NAMESPACE = "looma";
42
45
  var BUILD = (
43
46
  /* looma */
@@ -102,6 +105,9 @@ var registerHost = (hostElement, cmpMeta) => {
102
105
  $instanceValues$: /* @__PURE__ */ new Map(),
103
106
  $serializerValues$: /* @__PURE__ */ new Map()
104
107
  };
108
+ {
109
+ hostRef.$onInstancePromise$ = new Promise((r) => hostRef.$onInstanceResolve$ = r);
110
+ }
105
111
  {
106
112
  hostRef.$onReadyPromise$ = new Promise((r) => hostRef.$onReadyResolve$ = r);
107
113
  hostElement["s-p"] = [];
@@ -449,6 +455,19 @@ var getElement = (ref) => {
449
455
  var _a;
450
456
  return (_a = getHostRef(ref)) == null ? void 0 : _a.$hostElement$;
451
457
  };
458
+ var createEvent = (ref, name, flags) => {
459
+ const elm = getElement(ref);
460
+ return {
461
+ emit: (detail) => {
462
+ return emitEvent(elm, name, {
463
+ bubbles: true,
464
+ composed: true,
465
+ cancelable: true,
466
+ detail
467
+ });
468
+ }
469
+ };
470
+ };
452
471
  var emitEvent = (elm, name, opts) => {
453
472
  const ev = plt.ce(name, opts);
454
473
  elm.dispatchEvent(ev);
@@ -1034,6 +1053,9 @@ var postUpdateComponent = (hostRef) => {
1034
1053
  safeCall(instance, "componentDidUpdate", void 0, elm);
1035
1054
  endPostUpdate();
1036
1055
  }
1056
+ {
1057
+ hostRef.$onInstanceResolve$(elm);
1058
+ }
1037
1059
  {
1038
1060
  if (hostRef.$onRenderResolve$) {
1039
1061
  hostRef.$onRenderResolve$();
@@ -1211,6 +1233,17 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1211
1233
  }
1212
1234
  }
1213
1235
  });
1236
+ } else if (flags & 1 && memberFlags & 64) {
1237
+ Object.defineProperty(prototype, memberName, {
1238
+ value(...args) {
1239
+ var _a2;
1240
+ const ref = getHostRef(this);
1241
+ return (_a2 = ref == null ? void 0 : ref.$onInstancePromise$) == null ? void 0 : _a2.then(() => {
1242
+ var _a3;
1243
+ return (_a3 = ref.$lazyInstance$) == null ? void 0 : _a3[memberName](...args);
1244
+ });
1245
+ }
1246
+ });
1214
1247
  }
1215
1248
  });
1216
1249
  if (flags & 1) {
@@ -1578,6 +1611,7 @@ export {
1578
1611
  h,
1579
1612
  Host,
1580
1613
  getElement,
1614
+ createEvent,
1581
1615
  bootstrapLazy
1582
1616
  };
1583
1617
  /*!__STENCIL_STATIC_IMPORT_SWITCH__*/
@@ -0,0 +1,323 @@
1
+ // dist/esm/icons-CoFximGM.js
2
+ var Bold = [
3
+ ["path", { d: "M6 12h9a4 4 0 0 1 0 8H7a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1h7a4 4 0 0 1 0 8" }]
4
+ ];
5
+ var Braces = [
6
+ ["path", { d: "M8 3H7a2 2 0 0 0-2 2v5a2 2 0 0 1-2 2 2 2 0 0 1 2 2v5c0 1.1.9 2 2 2h1" }],
7
+ ["path", { d: "M16 21h1a2 2 0 0 0 2-2v-5c0-1.1.9-2 2-2a2 2 0 0 1-2-2V5a2 2 0 0 0-2-2h-1" }]
8
+ ];
9
+ var ChevronDown = [["path", { d: "m6 9 6 6 6-6" }]];
10
+ var ChevronLeft = [["path", { d: "m15 18-6-6 6-6" }]];
11
+ var CircleCheck = [
12
+ ["circle", { cx: "12", cy: "12", r: "10" }],
13
+ ["path", { d: "m9 12 2 2 4-4" }]
14
+ ];
15
+ var CircleX = [
16
+ ["circle", { cx: "12", cy: "12", r: "10" }],
17
+ ["path", { d: "m15 9-6 6" }],
18
+ ["path", { d: "m9 9 6 6" }]
19
+ ];
20
+ var CodeXml = [
21
+ ["path", { d: "m18 16 4-4-4-4" }],
22
+ ["path", { d: "m6 8-4 4 4 4" }],
23
+ ["path", { d: "m14.5 4-5 16" }]
24
+ ];
25
+ var Columns3 = [
26
+ ["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2" }],
27
+ ["path", { d: "M9 3v18" }],
28
+ ["path", { d: "M15 3v18" }]
29
+ ];
30
+ var Ellipsis = [
31
+ ["circle", { cx: "12", cy: "12", r: "1" }],
32
+ ["circle", { cx: "19", cy: "12", r: "1" }],
33
+ ["circle", { cx: "5", cy: "12", r: "1" }]
34
+ ];
35
+ var Eraser = [
36
+ [
37
+ "path",
38
+ {
39
+ d: "M21 21H8a2 2 0 0 1-1.42-.587l-3.994-3.999a2 2 0 0 1 0-2.828l10-10a2 2 0 0 1 2.829 0l5.999 6a2 2 0 0 1 0 2.828L12.834 21"
40
+ }
41
+ ],
42
+ ["path", { d: "m5.082 11.09 8.828 8.828" }]
43
+ ];
44
+ var GripHorizontal = [
45
+ ["circle", { cx: "12", cy: "9", r: "1" }],
46
+ ["circle", { cx: "19", cy: "9", r: "1" }],
47
+ ["circle", { cx: "5", cy: "9", r: "1" }],
48
+ ["circle", { cx: "12", cy: "15", r: "1" }],
49
+ ["circle", { cx: "19", cy: "15", r: "1" }],
50
+ ["circle", { cx: "5", cy: "15", r: "1" }]
51
+ ];
52
+ var GripVertical = [
53
+ ["circle", { cx: "9", cy: "12", r: "1" }],
54
+ ["circle", { cx: "9", cy: "5", r: "1" }],
55
+ ["circle", { cx: "9", cy: "19", r: "1" }],
56
+ ["circle", { cx: "15", cy: "12", r: "1" }],
57
+ ["circle", { cx: "15", cy: "5", r: "1" }],
58
+ ["circle", { cx: "15", cy: "19", r: "1" }]
59
+ ];
60
+ var Heading1 = [
61
+ ["path", { d: "M4 12h8" }],
62
+ ["path", { d: "M4 18V6" }],
63
+ ["path", { d: "M12 18V6" }],
64
+ ["path", { d: "m17 12 3-2v8" }]
65
+ ];
66
+ var Heading2 = [
67
+ ["path", { d: "M4 12h8" }],
68
+ ["path", { d: "M4 18V6" }],
69
+ ["path", { d: "M12 18V6" }],
70
+ ["path", { d: "M21 18h-4c0-4 4-3 4-6 0-1.5-2-2.5-4-1" }]
71
+ ];
72
+ var Heading3 = [
73
+ ["path", { d: "M4 12h8" }],
74
+ ["path", { d: "M4 18V6" }],
75
+ ["path", { d: "M12 18V6" }],
76
+ ["path", { d: "M17.5 10.5c1.7-1 3.5 0 3.5 1.5a2 2 0 0 1-2 2" }],
77
+ ["path", { d: "M17 17.5c2 1.5 4 .3 4-1.5a2 2 0 0 0-2-2" }]
78
+ ];
79
+ var Highlighter = [
80
+ ["path", { d: "m9 11-6 6v3h9l3-3" }],
81
+ ["path", { d: "m22 12-4.6 4.6a2 2 0 0 1-2.8 0l-5.2-5.2a2 2 0 0 1 0-2.8L14 4" }]
82
+ ];
83
+ var Image = [
84
+ ["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", ry: "2" }],
85
+ ["circle", { cx: "9", cy: "9", r: "2" }],
86
+ ["path", { d: "m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21" }]
87
+ ];
88
+ var Info = [
89
+ ["circle", { cx: "12", cy: "12", r: "10" }],
90
+ ["path", { d: "M12 16v-4" }],
91
+ ["path", { d: "M12 8h.01" }]
92
+ ];
93
+ var Italic = [
94
+ ["line", { x1: "19", x2: "10", y1: "4", y2: "4" }],
95
+ ["line", { x1: "14", x2: "5", y1: "20", y2: "20" }],
96
+ ["line", { x1: "15", x2: "9", y1: "4", y2: "20" }]
97
+ ];
98
+ var ListOrdered = [
99
+ ["path", { d: "M11 5h10" }],
100
+ ["path", { d: "M11 12h10" }],
101
+ ["path", { d: "M11 19h10" }],
102
+ ["path", { d: "M4 4h1v5" }],
103
+ ["path", { d: "M4 9h2" }],
104
+ ["path", { d: "M6.5 20H3.4c0-1 2.6-1.925 2.6-3.5a1.5 1.5 0 0 0-2.6-1.02" }]
105
+ ];
106
+ var ListTodo = [
107
+ ["path", { d: "M13 5h8" }],
108
+ ["path", { d: "M13 12h8" }],
109
+ ["path", { d: "M13 19h8" }],
110
+ ["path", { d: "m3 17 2 2 4-4" }],
111
+ ["rect", { x: "3", y: "4", width: "6", height: "6", rx: "1" }]
112
+ ];
113
+ var List = [
114
+ ["path", { d: "M3 5h.01" }],
115
+ ["path", { d: "M3 12h.01" }],
116
+ ["path", { d: "M3 19h.01" }],
117
+ ["path", { d: "M8 5h13" }],
118
+ ["path", { d: "M8 12h13" }],
119
+ ["path", { d: "M8 19h13" }]
120
+ ];
121
+ var Merge = [
122
+ ["path", { d: "m8 6 4-4 4 4" }],
123
+ ["path", { d: "M12 2v10.3a4 4 0 0 1-1.172 2.872L4 22" }],
124
+ ["path", { d: "m20 22-5-5" }]
125
+ ];
126
+ var Minus = [["path", { d: "M5 12h14" }]];
127
+ var NotebookPen = [
128
+ ["path", { d: "M13.4 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-7.4" }],
129
+ ["path", { d: "M2 6h4" }],
130
+ ["path", { d: "M2 10h4" }],
131
+ ["path", { d: "M2 14h4" }],
132
+ ["path", { d: "M2 18h4" }],
133
+ [
134
+ "path",
135
+ {
136
+ d: "M21.378 5.626a1 1 0 1 0-3.004-3.004l-5.01 5.012a2 2 0 0 0-.506.854l-.837 2.87a.5.5 0 0 0 .62.62l2.87-.837a2 2 0 0 0 .854-.506z"
137
+ }
138
+ ]
139
+ ];
140
+ var PaintBucket = [
141
+ ["path", { d: "m19 11-8-8-8.6 8.6a2 2 0 0 0 0 2.8l5.2 5.2c.8.8 2 .8 2.8 0L19 11Z" }],
142
+ ["path", { d: "m5 2 5 5" }],
143
+ ["path", { d: "M2 13h15" }],
144
+ ["path", { d: "M22 20a2 2 0 1 1-4 0c0-1.6 1.7-2.4 2-4 .3 1.6 2 2.4 2 4Z" }]
145
+ ];
146
+ var PanelBottom = [
147
+ ["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2" }],
148
+ ["path", { d: "M3 15h18" }]
149
+ ];
150
+ var PanelLeft = [
151
+ ["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2" }],
152
+ ["path", { d: "M9 3v18" }]
153
+ ];
154
+ var PanelRight = [
155
+ ["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2" }],
156
+ ["path", { d: "M15 3v18" }]
157
+ ];
158
+ var PanelTop = [
159
+ ["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2" }],
160
+ ["path", { d: "M3 9h18" }]
161
+ ];
162
+ var Pilcrow = [
163
+ ["path", { d: "M13 4v16" }],
164
+ ["path", { d: "M17 4v16" }],
165
+ ["path", { d: "M19 4H9.5a4.5 4.5 0 0 0 0 9H13" }]
166
+ ];
167
+ var Plus = [
168
+ ["path", { d: "M5 12h14" }],
169
+ ["path", { d: "M12 5v14" }]
170
+ ];
171
+ var Quote = [
172
+ [
173
+ "path",
174
+ {
175
+ d: "M16 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z"
176
+ }
177
+ ],
178
+ [
179
+ "path",
180
+ {
181
+ d: "M5 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z"
182
+ }
183
+ ]
184
+ ];
185
+ var Redo2 = [
186
+ ["path", { d: "m15 14 5-5-5-5" }],
187
+ ["path", { d: "M20 9H9.5A5.5 5.5 0 0 0 4 14.5A5.5 5.5 0 0 0 9.5 20H13" }]
188
+ ];
189
+ var Rows3 = [
190
+ ["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2" }],
191
+ ["path", { d: "M21 9H3" }],
192
+ ["path", { d: "M21 15H3" }]
193
+ ];
194
+ var Split = [
195
+ ["path", { d: "M16 3h5v5" }],
196
+ ["path", { d: "M8 3H3v5" }],
197
+ ["path", { d: "M12 22v-8.3a4 4 0 0 0-1.172-2.872L3 3" }],
198
+ ["path", { d: "m15 9 6-6" }]
199
+ ];
200
+ var Strikethrough = [
201
+ ["path", { d: "M16 4H9a3 3 0 0 0-2.83 4" }],
202
+ ["path", { d: "M14 12a4 4 0 0 1 0 8H6" }],
203
+ ["line", { x1: "4", x2: "20", y1: "12", y2: "12" }]
204
+ ];
205
+ var Table2 = [
206
+ [
207
+ "path",
208
+ {
209
+ d: "M9 3H5a2 2 0 0 0-2 2v4m6-6h10a2 2 0 0 1 2 2v4M9 3v18m0 0h10a2 2 0 0 0 2-2V9M9 21H5a2 2 0 0 1-2-2V9m0 0h18"
210
+ }
211
+ ]
212
+ ];
213
+ var TextAlignCenter = [
214
+ ["path", { d: "M21 5H3" }],
215
+ ["path", { d: "M17 12H7" }],
216
+ ["path", { d: "M19 19H5" }]
217
+ ];
218
+ var TextAlignEnd = [
219
+ ["path", { d: "M21 5H3" }],
220
+ ["path", { d: "M21 12H9" }],
221
+ ["path", { d: "M21 19H7" }]
222
+ ];
223
+ var TextAlignStart = [
224
+ ["path", { d: "M21 5H3" }],
225
+ ["path", { d: "M15 12H3" }],
226
+ ["path", { d: "M17 19H3" }]
227
+ ];
228
+ var Trash2 = [
229
+ ["path", { d: "M10 11v6" }],
230
+ ["path", { d: "M14 11v6" }],
231
+ ["path", { d: "M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6" }],
232
+ ["path", { d: "M3 6h18" }],
233
+ ["path", { d: "M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2" }]
234
+ ];
235
+ var TriangleAlert = [
236
+ ["path", { d: "m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3" }],
237
+ ["path", { d: "M12 9v4" }],
238
+ ["path", { d: "M12 17h.01" }]
239
+ ];
240
+ var Underline = [
241
+ ["path", { d: "M6 4v6a6 6 0 0 0 12 0V4" }],
242
+ ["line", { x1: "4", x2: "20", y1: "20", y2: "20" }]
243
+ ];
244
+ var Undo2 = [
245
+ ["path", { d: "M9 14 4 9l5-5" }],
246
+ ["path", { d: "M4 9h10.5a5.5 5.5 0 0 1 5.5 5.5a5.5 5.5 0 0 1-5.5 5.5H11" }]
247
+ ];
248
+ var LOOMA_ICONS = {
249
+ "align-center": TextAlignCenter,
250
+ "align-left": TextAlignStart,
251
+ "align-right": TextAlignEnd,
252
+ bold: Bold,
253
+ braces: Braces,
254
+ "circle-check": CircleCheck,
255
+ "circle-x": CircleX,
256
+ "chevron-down": ChevronDown,
257
+ "chevron-left": ChevronLeft,
258
+ "code-xml": CodeXml,
259
+ columns: Columns3,
260
+ ellipsis: Ellipsis,
261
+ eraser: Eraser,
262
+ "grip-horizontal": GripHorizontal,
263
+ "grip-vertical": GripVertical,
264
+ "heading-1": Heading1,
265
+ "heading-2": Heading2,
266
+ "heading-3": Heading3,
267
+ highlighter: Highlighter,
268
+ image: Image,
269
+ info: Info,
270
+ italic: Italic,
271
+ list: List,
272
+ "list-ordered": ListOrdered,
273
+ "list-todo": ListTodo,
274
+ merge: Merge,
275
+ "notebook-pen": NotebookPen,
276
+ minus: Minus,
277
+ "paint-bucket": PaintBucket,
278
+ "panel-bottom": PanelBottom,
279
+ "panel-left": PanelLeft,
280
+ "panel-right": PanelRight,
281
+ "panel-top": PanelTop,
282
+ pilcrow: Pilcrow,
283
+ plus: Plus,
284
+ quote: Quote,
285
+ redo: Redo2,
286
+ rows: Rows3,
287
+ split: Split,
288
+ strikethrough: Strikethrough,
289
+ table: Table2,
290
+ trash: Trash2,
291
+ "triangle-alert": TriangleAlert,
292
+ underline: Underline,
293
+ undo: Undo2
294
+ };
295
+ function serializeAttributes(attributes) {
296
+ return Object.entries(attributes).map(([name, value]) => ` ${name}="${escapeAttribute(value)}"`).join("");
297
+ }
298
+ function escapeAttribute(value) {
299
+ return String(value).replaceAll("&", "&").replaceAll('"', """);
300
+ }
301
+ function serializeIconNode(node) {
302
+ const [tag, attributes] = node;
303
+ return `<${tag}${serializeAttributes(attributes)}></${tag}>`;
304
+ }
305
+ function loomaIconMarkup(name, className = "looma-icon") {
306
+ return [
307
+ `<svg class="${escapeAttribute(className)}" data-looma-icon="${name}" aria-hidden="true" focusable="false"`,
308
+ ' viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"',
309
+ ' stroke-linecap="round" stroke-linejoin="round">',
310
+ LOOMA_ICONS[name].map(serializeIconNode).join(""),
311
+ "</svg>"
312
+ ].join("");
313
+ }
314
+
315
+ export {
316
+ loomaIconMarkup
317
+ };
318
+ /**
319
+ * @license lucide v0.554.0 - ISC
320
+ *
321
+ * This source code is licensed under the ISC license.
322
+ * See the LICENSE file in the root directory of this source tree.
323
+ */
@@ -1,4 +1,4 @@
1
- // dist/esm/manager-PM9a74r7.js
1
+ // dist/esm/manager-C-0syqXZ.js
2
2
  var stack = [];
3
3
  var scrollLockAttribute = "data-ui-scroll-lock";
4
4
  var modalCount = 0;
@@ -30,13 +30,9 @@ function handleLightDismiss(event) {
30
30
  if (!top || !getOverlayDismissible(top)) {
31
31
  return;
32
32
  }
33
- const target = event.target;
34
- if (target instanceof Node) {
35
- if (top.element.contains(target))
36
- return;
37
- if (top.relatedElements?.some((element) => element.contains(target)))
38
- return;
39
- }
33
+ const boundary = [top.element, ...top.relatedElements ?? []];
34
+ if (event.composedPath().some((target) => target instanceof Node && boundary.some((element) => element.contains(target))))
35
+ return;
40
36
  requestTopOverlayClose("light-dismiss", "pointer");
41
37
  }
42
38
  function ensureListeners() {
@@ -0,0 +1,9 @@
1
+ 'use strict';
2
+
3
+ /** A state prop is controlled only when the consumer supplies a value. */
4
+ const isControlled = (value) => value !== undefined;
5
+ /** Defaults apply only when a corresponding controlled prop is omitted. */
6
+ const controlledOrDefault = (value, defaultValue) => value === undefined ? defaultValue : value;
7
+
8
+ exports.controlledOrDefault = controlledOrDefault;
9
+ exports.isControlled = isControlled;