@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,366 +0,0 @@
1
- // dist/esm/positioning-ZOr-2PSe.js
2
- var DEFAULT_AFFORDANCE_NEAR_RADIUS = 16;
3
- var anchorSequence = 0;
4
- var anchorBindings = /* @__PURE__ */ new WeakMap();
5
- function bindAnchorName(anchor, name) {
6
- const binding = anchorBindings.get(anchor) ?? {
7
- original: anchor.style.getPropertyValue("anchor-name"),
8
- names: /* @__PURE__ */ new Set()
9
- };
10
- binding.names.add(name);
11
- anchorBindings.set(anchor, binding);
12
- const values = [binding.original, ...binding.names].filter(Boolean);
13
- anchor.style.setProperty("anchor-name", values.join(", "));
14
- }
15
- function unbindAnchorName(anchor, name) {
16
- const binding = anchorBindings.get(anchor);
17
- if (!binding)
18
- return;
19
- binding.names.delete(name);
20
- if (binding.names.size) {
21
- const values = [binding.original, ...binding.names].filter(Boolean);
22
- anchor.style.setProperty("anchor-name", values.join(", "));
23
- return;
24
- }
25
- if (binding.original)
26
- anchor.style.setProperty("anchor-name", binding.original);
27
- else
28
- anchor.style.removeProperty("anchor-name");
29
- anchorBindings.delete(anchor);
30
- }
31
- function supportsAnchorPositioning(owner) {
32
- const css = owner.CSS;
33
- return typeof css?.supports === "function" && css.supports("anchor-name: --ui-anchor-test") && css.supports("position-anchor: --ui-anchor-test") && css.supports("top: anchor(bottom)");
34
- }
35
- function topLayerOpen(surface) {
36
- try {
37
- return surface.matches(":popover-open");
38
- } catch {
39
- return !surface.hidden;
40
- }
41
- }
42
- function showInTopLayer(surface) {
43
- surface.setAttribute("popover", "manual");
44
- surface.hidden = false;
45
- if (typeof surface.showPopover === "function" && !topLayerOpen(surface)) {
46
- try {
47
- surface.showPopover();
48
- } catch {
49
- }
50
- }
51
- }
52
- function hideFromTopLayer(surface) {
53
- if (typeof surface.hidePopover === "function" && topLayerOpen(surface)) {
54
- try {
55
- surface.hidePopover();
56
- } catch {
57
- }
58
- }
59
- surface.hidden = true;
60
- }
61
- function createViewportSurface(surface) {
62
- surface.setAttribute("popover", "manual");
63
- surface.dataset.uiPositioning = "viewport";
64
- return {
65
- show() {
66
- showInTopLayer(surface);
67
- },
68
- hide() {
69
- hideFromTopLayer(surface);
70
- },
71
- destroy() {
72
- hideFromTopLayer(surface);
73
- }
74
- };
75
- }
76
- function fallbackPosition(surface, anchor, placement, gap, viewportGap, surfaceRect = surface.getBoundingClientRect()) {
77
- const owner = surface.ownerDocument.defaultView ?? window;
78
- const viewport = getVisualViewportRect(owner);
79
- const preferTop = placement.startsWith("top");
80
- const preferEnd = placement.endsWith("end");
81
- const spaceBelow = viewport.bottom - anchor.bottom - viewportGap;
82
- const spaceAbove = anchor.top - viewport.top - viewportGap;
83
- const useTop = preferTop ? !(spaceAbove < surfaceRect.height + gap && spaceBelow > spaceAbove) : spaceBelow < surfaceRect.height + gap && spaceAbove > spaceBelow;
84
- const unclampedTop = useTop ? anchor.top - surfaceRect.height - gap : anchor.bottom + gap;
85
- const unclampedLeft = preferEnd ? anchor.right - surfaceRect.width : anchor.left;
86
- const shifted = clampRectToViewport({
87
- left: unclampedLeft,
88
- top: unclampedTop,
89
- width: surfaceRect.width,
90
- height: surfaceRect.height
91
- }, viewport, viewportGap);
92
- surface.style.left = `${Math.round(unclampedLeft + shifted.x)}px`;
93
- surface.style.top = `${Math.round(unclampedTop + shifted.y)}px`;
94
- surface.style.right = "auto";
95
- surface.style.bottom = "auto";
96
- }
97
- function createAnchoredSurface(surface, options = {}) {
98
- const owner = surface.ownerDocument.defaultView ?? window;
99
- const placement = options.placement ?? "bottom-start";
100
- const gap = Math.max(0, options.gap ?? 4);
101
- const viewportGap = Math.max(0, options.viewportGap ?? 8);
102
- const nativeAnchor = supportsAnchorPositioning(owner);
103
- const anchorName = `--ui-anchor-${++anchorSequence}`;
104
- let anchor = options.anchor ?? null;
105
- let point = null;
106
- let open = false;
107
- let frame = null;
108
- let listenerAbort = null;
109
- let sizeObserver = null;
110
- const ResizeObserverImpl = owner.ResizeObserver;
111
- const observeSurfaceSize = () => {
112
- if (sizeObserver || typeof ResizeObserverImpl !== "function")
113
- return;
114
- sizeObserver = new ResizeObserverImpl(() => schedule());
115
- sizeObserver.observe(surface);
116
- };
117
- const stopObservingSurfaceSize = () => {
118
- sizeObserver?.disconnect();
119
- sizeObserver = null;
120
- };
121
- surface.setAttribute("popover", "manual");
122
- surface.dataset.uiPositioning = nativeAnchor ? "anchor" : "fallback";
123
- surface.style.position = "fixed";
124
- surface.style.margin = "0";
125
- const bindAnchor = (next) => {
126
- if (anchor)
127
- unbindAnchorName(anchor, anchorName);
128
- anchor = next;
129
- if (!anchor) {
130
- surface.style.removeProperty("position-anchor");
131
- return;
132
- }
133
- bindAnchorName(anchor, anchorName);
134
- surface.style.setProperty("position-anchor", anchorName);
135
- };
136
- const positionNative = () => {
137
- const blockEnd = placement.startsWith("bottom");
138
- const inlineEnd = placement.endsWith("end");
139
- surface.style.top = blockEnd ? `calc(anchor(bottom) + ${gap}px)` : "auto";
140
- surface.style.bottom = blockEnd ? "auto" : `calc(anchor(top) + ${gap}px)`;
141
- surface.style.left = inlineEnd ? "auto" : "anchor(left)";
142
- surface.style.right = inlineEnd ? "anchor(right)" : "auto";
143
- surface.style.setProperty("position-try-fallbacks", "flip-block, flip-inline");
144
- };
145
- const position = () => {
146
- frame = null;
147
- if (!open)
148
- return;
149
- if (point) {
150
- fallbackPosition(surface, {
151
- left: point.x,
152
- right: point.x,
153
- top: point.y,
154
- bottom: point.y
155
- }, "bottom-start", gap, viewportGap);
156
- return;
157
- }
158
- if (!anchor)
159
- return;
160
- let surfaceRect;
161
- if (nativeAnchor) {
162
- positionNative();
163
- const viewport = getVisualViewportRect(owner);
164
- surfaceRect = surface.getBoundingClientRect();
165
- if (surfaceRect.width === 0 || surfaceRect.height === 0)
166
- return;
167
- const shift = clampRectToViewport(surfaceRect, viewport, viewportGap);
168
- if (shift.x === 0 && shift.y === 0)
169
- return;
170
- }
171
- fallbackPosition(surface, anchor.getBoundingClientRect(), placement, gap, viewportGap, surfaceRect);
172
- };
173
- const schedule = () => {
174
- if (!open || frame !== null)
175
- return;
176
- frame = owner.requestAnimationFrame(position);
177
- };
178
- const syncFallbackListeners = () => {
179
- const needsListeners = open && (point !== null || anchor !== null);
180
- if (!needsListeners) {
181
- listenerAbort?.abort();
182
- listenerAbort = null;
183
- return;
184
- }
185
- if (listenerAbort)
186
- return;
187
- listenerAbort = new AbortController();
188
- const signal = listenerAbort.signal;
189
- owner.addEventListener("resize", schedule, { passive: true, signal });
190
- owner.addEventListener("scroll", schedule, { passive: true, capture: true, signal });
191
- owner.visualViewport?.addEventListener("resize", schedule, { passive: true, signal });
192
- owner.visualViewport?.addEventListener("scroll", schedule, { passive: true, signal });
193
- };
194
- bindAnchor(anchor);
195
- return {
196
- setAnchor(next) {
197
- point = null;
198
- bindAnchor(next);
199
- syncFallbackListeners();
200
- schedule();
201
- },
202
- show() {
203
- point = null;
204
- open = true;
205
- syncFallbackListeners();
206
- showInTopLayer(surface);
207
- position();
208
- schedule();
209
- observeSurfaceSize();
210
- },
211
- showAtPoint(nextPoint) {
212
- point = nextPoint;
213
- open = true;
214
- syncFallbackListeners();
215
- showInTopLayer(surface);
216
- position();
217
- schedule();
218
- observeSurfaceSize();
219
- },
220
- hide() {
221
- open = false;
222
- point = null;
223
- syncFallbackListeners();
224
- stopObservingSurfaceSize();
225
- if (frame !== null)
226
- owner.cancelAnimationFrame(frame);
227
- frame = null;
228
- hideFromTopLayer(surface);
229
- },
230
- refresh: schedule,
231
- destroy() {
232
- open = false;
233
- listenerAbort?.abort();
234
- listenerAbort = null;
235
- stopObservingSurfaceSize();
236
- if (frame !== null)
237
- owner.cancelAnimationFrame(frame);
238
- frame = null;
239
- hideFromTopLayer(surface);
240
- bindAnchor(null);
241
- }
242
- };
243
- }
244
- function getVisualViewportRect(owner = window) {
245
- const viewport = owner.visualViewport;
246
- const left = viewport?.offsetLeft ?? 0;
247
- const top = viewport?.offsetTop ?? 0;
248
- const width = viewport?.width ?? owner.innerWidth;
249
- const height = viewport?.height ?? owner.innerHeight;
250
- return {
251
- left,
252
- top,
253
- right: left + width,
254
- bottom: top + height,
255
- width,
256
- height
257
- };
258
- }
259
- function clampRectToViewport(rect, viewport = getVisualViewportRect(), gutter = 0) {
260
- const availableWidth = Math.max(0, viewport.width - gutter * 2);
261
- const availableHeight = Math.max(0, viewport.height - gutter * 2);
262
- const targetLeft = rect.width > availableWidth ? viewport.left + gutter : Math.min(Math.max(rect.left, viewport.left + gutter), viewport.right - gutter - rect.width);
263
- const targetTop = rect.height > availableHeight ? viewport.top + gutter : Math.min(Math.max(rect.top, viewport.top + gutter), viewport.bottom - gutter - rect.height);
264
- return { x: targetLeft - rect.left, y: targetTop - rect.top };
265
- }
266
- function distanceFromPointToRect(point, rect) {
267
- const dx = Math.max(rect.left - point.x, 0, point.x - rect.right);
268
- const dy = Math.max(rect.top - point.y, 0, point.y - rect.bottom);
269
- return Math.hypot(dx, dy);
270
- }
271
- function createProximityCoordinator(scope, options = {}) {
272
- const owner = scope.ownerDocument.defaultView ?? window;
273
- const pointerTarget = options.pointerTarget ?? scope;
274
- const anchorSelector = options.anchorSelector ?? "[data-ui-affordance]";
275
- const configuredRadius = options.nearRadius ?? DEFAULT_AFFORDANCE_NEAR_RADIUS;
276
- const nearRadius = Number.isFinite(configuredRadius) ? Math.max(0, configuredRadius) : DEFAULT_AFFORDANCE_NEAR_RADIUS;
277
- const abort = new AbortController();
278
- let anchors = [];
279
- let frame = null;
280
- let point = null;
281
- let geometryDirty = false;
282
- const clear = () => {
283
- for (const { element } of anchors) {
284
- if (element.hasAttribute("data-ui-proximity")) {
285
- element.removeAttribute("data-ui-proximity");
286
- }
287
- }
288
- if (scope.hasAttribute("data-ui-interaction")) {
289
- scope.removeAttribute("data-ui-interaction");
290
- }
291
- };
292
- const measure = () => {
293
- anchors = Array.from(scope.querySelectorAll(anchorSelector)).filter((element) => !element.hasAttribute("disabled") && element.getAttribute("aria-disabled") !== "true").map((element) => ({ element, rect: element.getBoundingClientRect() }));
294
- geometryDirty = false;
295
- };
296
- const update = () => {
297
- frame = null;
298
- if (geometryDirty)
299
- measure();
300
- if (!point) {
301
- clear();
302
- return;
303
- }
304
- let engaged = false;
305
- for (const anchor of anchors) {
306
- const near = distanceFromPointToRect(point, anchor.rect) <= nearRadius;
307
- if (near && anchor.element.getAttribute("data-ui-proximity") !== "near") {
308
- anchor.element.setAttribute("data-ui-proximity", "near");
309
- } else if (!near && anchor.element.hasAttribute("data-ui-proximity")) {
310
- anchor.element.removeAttribute("data-ui-proximity");
311
- }
312
- engaged ||= near;
313
- }
314
- if (engaged && scope.getAttribute("data-ui-interaction") !== "engaged") {
315
- scope.setAttribute("data-ui-interaction", "engaged");
316
- } else if (!engaged && scope.hasAttribute("data-ui-interaction")) {
317
- scope.removeAttribute("data-ui-interaction");
318
- }
319
- };
320
- const schedule = () => {
321
- if (frame !== null)
322
- return;
323
- frame = owner.requestAnimationFrame(update);
324
- };
325
- const onPointerMove = (event) => {
326
- const pointer = event;
327
- if (pointer.pointerType === "touch") {
328
- point = null;
329
- } else {
330
- point = { x: pointer.clientX, y: pointer.clientY };
331
- }
332
- schedule();
333
- };
334
- const invalidate = () => {
335
- geometryDirty = true;
336
- schedule();
337
- };
338
- pointerTarget.addEventListener("pointermove", onPointerMove, {
339
- passive: true,
340
- signal: abort.signal
341
- });
342
- owner.addEventListener("resize", invalidate, { passive: true, signal: abort.signal });
343
- owner.addEventListener("scroll", invalidate, { passive: true, capture: true, signal: abort.signal });
344
- owner.visualViewport?.addEventListener("resize", invalidate, { passive: true, signal: abort.signal });
345
- owner.visualViewport?.addEventListener("scroll", invalidate, { passive: true, signal: abort.signal });
346
- measure();
347
- return {
348
- refresh: invalidate,
349
- destroy() {
350
- abort.abort();
351
- if (frame !== null)
352
- owner.cancelAnimationFrame(frame);
353
- frame = null;
354
- point = null;
355
- clear();
356
- anchors = [];
357
- }
358
- };
359
- }
360
-
361
- export {
362
- DEFAULT_AFFORDANCE_NEAR_RADIUS,
363
- createViewportSurface,
364
- createAnchoredSurface,
365
- createProximityCoordinator
366
- };
@@ -1,8 +0,0 @@
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
- };
@@ -1,323 +0,0 @@
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("&", "&amp;").replaceAll('"', "&quot;");
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
- */