@threadlabs/looma 0.1.23 → 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 (287) hide show
  1. package/dist/chunk-HNFCGIBP.js +8 -0
  2. package/dist/{chunk-GDMQKT5F.js → chunk-IMHSPETJ.js} +32 -30
  3. package/dist/chunk-NB6DBRXQ.js +323 -0
  4. package/dist/cjs/controlled-state-BFya8rAX.js +9 -0
  5. package/dist/cjs/icons-BAdjrnhS.js +680 -0
  6. package/dist/cjs/loader.cjs.js +1 -1
  7. package/dist/cjs/looma.cjs.js +1 -1
  8. package/dist/cjs/ui-affordance-scope.cjs.entry.js +1 -1
  9. package/dist/cjs/ui-avatar-group.cjs.entry.js +9 -17
  10. package/dist/cjs/ui-avatar.cjs.entry.js +2 -2
  11. package/dist/cjs/ui-badge.cjs.entry.js +2 -2
  12. package/dist/cjs/ui-button.cjs.entry.js +1 -1
  13. package/dist/cjs/ui-callout.cjs.entry.js +27 -0
  14. package/dist/cjs/ui-checkbox.cjs.entry.js +13 -7
  15. package/dist/cjs/ui-chip.cjs.entry.js +19 -0
  16. package/dist/cjs/ui-combobox.cjs.entry.js +3 -3
  17. package/dist/cjs/ui-context-menu.cjs.entry.js +1 -1
  18. package/dist/cjs/ui-dialog.cjs.entry.js +44 -8
  19. package/dist/cjs/ui-disclosure.cjs.entry.js +9 -6
  20. package/dist/cjs/ui-floating-action-button.cjs.entry.js +1 -1
  21. package/dist/cjs/ui-form-field.cjs.entry.js +59 -4
  22. package/dist/cjs/ui-icon-button.cjs.entry.js +1 -1
  23. package/dist/cjs/ui-input.cjs.entry.js +1 -1
  24. package/dist/cjs/ui-menu-item.cjs.entry.js +2 -2
  25. package/dist/cjs/ui-menu.cjs.entry.js +14 -9
  26. package/dist/cjs/ui-popover.cjs.entry.js +10 -7
  27. package/dist/cjs/ui-radio-group.cjs.entry.js +1 -1
  28. package/dist/cjs/ui-radio.cjs.entry.js +16 -7
  29. package/dist/cjs/ui-search-result-row.cjs.entry.js +1 -1
  30. package/dist/cjs/ui-search-shell.cjs.entry.js +1 -1
  31. package/dist/cjs/ui-select.cjs.entry.js +1 -1
  32. package/dist/cjs/ui-switch.cjs.entry.js +19 -10
  33. package/dist/cjs/ui-tabs.cjs.entry.js +10 -9
  34. package/dist/cjs/ui-textarea.cjs.entry.js +1 -1
  35. package/dist/cjs/ui-toast-region.cjs.entry.js +30 -19
  36. package/dist/cjs/ui-tooltip.cjs.entry.js +12 -8
  37. package/dist/cjs/ui-top-bar.cjs.entry.js +1 -1
  38. package/dist/cjs/ui-tree-item.cjs.entry.js +54 -617
  39. package/dist/cjs/ui-tree.cjs.entry.js +123 -11
  40. package/dist/collection/collection-manifest.json +2 -0
  41. package/dist/collection/components/ui-affordance-scope/ui-affordance-scope.js +1 -1
  42. package/dist/collection/components/ui-avatar/ui-avatar.css +4 -4
  43. package/dist/collection/components/ui-avatar/ui-avatar.js +1 -1
  44. package/dist/collection/components/ui-avatar-group/ui-avatar-group.css +2 -2
  45. package/dist/collection/components/ui-avatar-group/ui-avatar-group.js +8 -16
  46. package/dist/collection/components/ui-badge/ui-badge.css +64 -48
  47. package/dist/collection/components/ui-badge/ui-badge.js +1 -1
  48. package/dist/collection/components/ui-button/ui-button.js +1 -1
  49. package/dist/collection/components/ui-callout/ui-callout.css +74 -0
  50. package/dist/collection/components/ui-callout/ui-callout.js +59 -0
  51. package/dist/collection/components/ui-checkbox/ui-checkbox.js +16 -11
  52. package/dist/collection/components/ui-chip/ui-chip.css +43 -0
  53. package/dist/collection/components/ui-chip/ui-chip.js +45 -0
  54. package/dist/collection/components/ui-combobox/ui-combobox.js +3 -3
  55. package/dist/collection/components/ui-context-menu/ui-context-menu.js +1 -1
  56. package/dist/collection/components/ui-dialog/ui-dialog.js +49 -13
  57. package/dist/collection/components/ui-disclosure/ui-disclosure.js +12 -10
  58. package/dist/collection/components/ui-floating-action-button/ui-floating-action-button.js +1 -1
  59. package/dist/collection/components/ui-form-field/ui-form-field.js +59 -4
  60. package/dist/collection/components/ui-icon-button/ui-icon-button.js +1 -1
  61. package/dist/collection/components/ui-input/ui-input.js +1 -1
  62. package/dist/collection/components/ui-menu/ui-menu.css +12 -23
  63. package/dist/collection/components/ui-menu/ui-menu.js +16 -12
  64. package/dist/collection/components/ui-menu-item/ui-menu-item.css +9 -3
  65. package/dist/collection/components/ui-menu-item/ui-menu-item.js +1 -1
  66. package/dist/collection/components/ui-popover/ui-popover.css +14 -5
  67. package/dist/collection/components/ui-popover/ui-popover.js +12 -10
  68. package/dist/collection/components/ui-radio/ui-radio.js +24 -11
  69. package/dist/collection/components/ui-radio-group/ui-radio-group.js +1 -1
  70. package/dist/collection/components/ui-search-result-row/ui-search-result-row.js +1 -1
  71. package/dist/collection/components/ui-search-shell/ui-search-shell.js +1 -1
  72. package/dist/collection/components/ui-select/ui-select.js +1 -1
  73. package/dist/collection/components/ui-switch/ui-switch.js +22 -14
  74. package/dist/collection/components/ui-tabs/ui-tabs.js +13 -13
  75. package/dist/collection/components/ui-textarea/ui-textarea.js +1 -1
  76. package/dist/collection/components/ui-toast-region/ui-toast-region.js +30 -19
  77. package/dist/collection/components/ui-tooltip/ui-tooltip.css +16 -7
  78. package/dist/collection/components/ui-tooltip/ui-tooltip.js +14 -11
  79. package/dist/collection/components/ui-top-bar/ui-top-bar.js +1 -1
  80. package/dist/collection/components/ui-tree/ui-tree.css +2 -1
  81. package/dist/collection/components/ui-tree/ui-tree.js +122 -10
  82. package/dist/collection/components/ui-tree-item/ui-tree-item.js +61 -44
  83. package/dist/collection/icons.js +6 -1
  84. package/dist/collection/utils/controlled-state.js +4 -0
  85. package/dist/components/index.d.ts +4 -0
  86. package/dist/components/index.js +1 -1
  87. package/dist/components/p-Bk55QiUK.js +1 -0
  88. package/dist/components/p-BnGhGgTH.js +1 -0
  89. package/dist/components/p-CoFximGM.js +13 -0
  90. package/dist/components/p-DIGcRYAW.js +1 -0
  91. package/dist/components/ui-affordance-scope.js +1 -1
  92. package/dist/components/ui-avatar-group.js +1 -1
  93. package/dist/components/ui-avatar.js +1 -1
  94. package/dist/components/ui-badge.js +1 -1
  95. package/dist/components/ui-button.js +1 -1
  96. package/dist/components/ui-callout.d.ts +11 -0
  97. package/dist/components/ui-callout.js +1 -0
  98. package/dist/components/ui-checkbox.js +1 -1
  99. package/dist/components/ui-chip.d.ts +11 -0
  100. package/dist/components/ui-chip.js +1 -0
  101. package/dist/components/ui-combobox.js +1 -1
  102. package/dist/components/ui-context-menu.js +1 -1
  103. package/dist/components/ui-dialog.js +1 -1
  104. package/dist/components/ui-disclosure.js +1 -1
  105. package/dist/components/ui-floating-action-button.js +1 -1
  106. package/dist/components/ui-form-field.js +1 -1
  107. package/dist/components/ui-icon-button.js +1 -1
  108. package/dist/components/ui-input.js +1 -1
  109. package/dist/components/ui-menu-item.js +1 -1
  110. package/dist/components/ui-menu.js +1 -1
  111. package/dist/components/ui-popover.js +1 -1
  112. package/dist/components/ui-radio-group.js +1 -1
  113. package/dist/components/ui-radio.js +1 -1
  114. package/dist/components/ui-search-result-row.js +1 -1
  115. package/dist/components/ui-search-shell.js +1 -1
  116. package/dist/components/ui-select.js +1 -1
  117. package/dist/components/ui-switch.js +1 -1
  118. package/dist/components/ui-tabs.js +1 -1
  119. package/dist/components/ui-textarea.js +1 -1
  120. package/dist/components/ui-toast-region.js +1 -1
  121. package/dist/components/ui-tooltip.js +1 -1
  122. package/dist/components/ui-top-bar.js +1 -1
  123. package/dist/components/ui-tree-item.js +1 -13
  124. package/dist/components/ui-tree.js +1 -1
  125. package/dist/esm/controlled-state-BnGhGgTH.js +6 -0
  126. package/dist/esm/icons-CoFximGM.js +678 -0
  127. package/dist/esm/loader.js +1 -1
  128. package/dist/esm/looma.js +1 -1
  129. package/dist/esm/ui-affordance-scope.entry.js +1 -1
  130. package/dist/esm/ui-avatar-group.entry.js +9 -17
  131. package/dist/esm/ui-avatar.entry.js +2 -2
  132. package/dist/esm/ui-badge.entry.js +2 -2
  133. package/dist/esm/ui-button.entry.js +1 -1
  134. package/dist/esm/ui-callout.entry.js +25 -0
  135. package/dist/esm/ui-checkbox.entry.js +13 -7
  136. package/dist/esm/ui-chip.entry.js +17 -0
  137. package/dist/esm/ui-combobox.entry.js +3 -3
  138. package/dist/esm/ui-context-menu.entry.js +1 -1
  139. package/dist/esm/ui-dialog.entry.js +44 -8
  140. package/dist/esm/ui-disclosure.entry.js +9 -6
  141. package/dist/esm/ui-floating-action-button.entry.js +1 -1
  142. package/dist/esm/ui-form-field.entry.js +59 -4
  143. package/dist/esm/ui-icon-button.entry.js +1 -1
  144. package/dist/esm/ui-input.entry.js +1 -1
  145. package/dist/esm/ui-menu-item.entry.js +2 -2
  146. package/dist/esm/ui-menu.entry.js +14 -9
  147. package/dist/esm/ui-popover.entry.js +10 -7
  148. package/dist/esm/ui-radio-group.entry.js +1 -1
  149. package/dist/esm/ui-radio.entry.js +16 -7
  150. package/dist/esm/ui-search-result-row.entry.js +1 -1
  151. package/dist/esm/ui-search-shell.entry.js +1 -1
  152. package/dist/esm/ui-select.entry.js +1 -1
  153. package/dist/esm/ui-switch.entry.js +19 -10
  154. package/dist/esm/ui-tabs.entry.js +10 -9
  155. package/dist/esm/ui-textarea.entry.js +1 -1
  156. package/dist/esm/ui-toast-region.entry.js +30 -19
  157. package/dist/esm/ui-tooltip.entry.js +12 -8
  158. package/dist/esm/ui-top-bar.entry.js +1 -1
  159. package/dist/esm/ui-tree-item.entry.js +54 -617
  160. package/dist/esm/ui-tree.entry.js +123 -11
  161. package/dist/index.cjs +1224 -842
  162. package/dist/index.d.cts +5 -0
  163. package/dist/index.d.ts +5 -0
  164. package/dist/index.js +12 -2
  165. package/dist/looma/looma.esm.js +1 -1
  166. package/dist/looma/p-03f44c45.entry.js +1 -0
  167. package/dist/looma/p-08f80207.entry.js +1 -0
  168. package/dist/looma/{p-f74e5546.entry.js → p-13f8195a.entry.js} +1 -1
  169. package/dist/looma/{p-5a87b59d.entry.js → p-25e18ad6.entry.js} +1 -1
  170. package/dist/looma/p-2c03fa73.entry.js +1 -0
  171. package/dist/looma/{p-ed368426.entry.js → p-314d5c7c.entry.js} +1 -1
  172. package/dist/looma/{p-5da09f47.entry.js → p-3ef2a21b.entry.js} +1 -1
  173. package/dist/looma/{p-f0487ff3.entry.js → p-5a900d89.entry.js} +1 -1
  174. package/dist/looma/p-5fdcee1d.entry.js +1 -0
  175. package/dist/looma/{p-13347631.entry.js → p-672e3d16.entry.js} +1 -1
  176. package/dist/looma/{p-582973b5.entry.js → p-68430534.entry.js} +1 -1
  177. package/dist/looma/{p-add36e74.entry.js → p-72338f53.entry.js} +1 -1
  178. package/dist/looma/{p-a90d2821.entry.js → p-7ab661ec.entry.js} +1 -1
  179. package/dist/looma/p-7c4a225f.entry.js +1 -0
  180. package/dist/looma/p-82f2fa3d.entry.js +1 -0
  181. package/dist/looma/p-839faf55.entry.js +1 -0
  182. package/dist/looma/{p-7e0bb7f6.entry.js → p-8e254bc4.entry.js} +1 -1
  183. package/dist/looma/p-8e6b1001.entry.js +1 -0
  184. package/dist/looma/p-920656cf.entry.js +1 -0
  185. package/dist/looma/{p-40fe7fee.entry.js → p-97e8cb0e.entry.js} +1 -1
  186. package/dist/looma/p-9d2662ca.entry.js +1 -0
  187. package/dist/looma/p-9e1c4020.entry.js +1 -0
  188. package/dist/looma/p-BnGhGgTH.js +1 -0
  189. package/dist/looma/p-CoFximGM.js +13 -0
  190. package/dist/looma/{p-8b8840b8.entry.js → p-a63e2561.entry.js} +1 -1
  191. package/dist/looma/p-add67e4c.entry.js +1 -0
  192. package/dist/looma/p-b63f6d4f.entry.js +1 -0
  193. package/dist/looma/p-bd00d4e8.entry.js +1 -0
  194. package/dist/looma/p-cc915913.entry.js +1 -0
  195. package/dist/looma/p-cfba8f7c.entry.js +1 -0
  196. package/dist/looma/p-d56571a2.entry.js +1 -0
  197. package/dist/looma/{p-69a5557b.entry.js → p-e0f241ab.entry.js} +1 -1
  198. package/dist/looma/p-f1750fd7.entry.js +1 -0
  199. package/dist/looma/p-fd1e4d22.entry.js +1 -0
  200. package/dist/types/components/ui-avatar-group/ui-avatar-group.d.ts +1 -2
  201. package/dist/types/components/ui-callout/ui-callout.d.ts +6 -0
  202. package/dist/types/components/ui-checkbox/ui-checkbox.d.ts +2 -1
  203. package/dist/types/components/ui-chip/ui-chip.d.ts +6 -0
  204. package/dist/types/components/ui-dialog/ui-dialog.d.ts +7 -1
  205. package/dist/types/components/ui-disclosure/ui-disclosure.d.ts +2 -1
  206. package/dist/types/components/ui-form-field/ui-form-field.d.ts +8 -0
  207. package/dist/types/components/ui-menu/ui-menu.d.ts +2 -1
  208. package/dist/types/components/ui-popover/ui-popover.d.ts +2 -1
  209. package/dist/types/components/ui-radio/ui-radio.d.ts +4 -1
  210. package/dist/types/components/ui-switch/ui-switch.d.ts +2 -1
  211. package/dist/types/components/ui-tabs/ui-tabs.d.ts +2 -1
  212. package/dist/types/components/ui-toast-region/ui-toast-region.d.ts +3 -1
  213. package/dist/types/components/ui-tooltip/ui-tooltip.d.ts +2 -1
  214. package/dist/types/components/ui-tree/ui-tree.d.ts +12 -0
  215. package/dist/types/components/ui-tree-item/ui-tree-item.d.ts +11 -7
  216. package/dist/types/components.d.ts +110 -47
  217. package/dist/types/icons.d.ts +5 -0
  218. package/dist/types/utils/controlled-state.d.ts +4 -0
  219. package/dist/{ui-affordance-scope.entry-VO4C2MZX.js → ui-affordance-scope.entry-3TUZ6GLW.js} +2 -2
  220. package/dist/ui-avatar-group.entry-XGJKN25W.js +51 -0
  221. package/dist/{ui-avatar.entry-T6FU6ZYM.js → ui-avatar.entry-SN3G44HW.js} +3 -3
  222. package/dist/ui-badge.entry-B6WDCWJX.js +22 -0
  223. package/dist/{ui-button.entry-7UXMUGHN.js → ui-button.entry-AZYUELLV.js} +2 -2
  224. package/dist/ui-callout.entry-QRPWRMPC.js +32 -0
  225. package/dist/{ui-checkbox.entry-DMZJB3RE.js → ui-checkbox.entry-OB6GFC4M.js} +17 -8
  226. package/dist/ui-chip.entry-XSNPJXX3.js +22 -0
  227. package/dist/{ui-combobox.entry-ZCTPXEES.js → ui-combobox.entry-IIMMUJF7.js} +5 -5
  228. package/dist/{ui-context-menu.entry-2WMCBGCP.js → ui-context-menu.entry-AIULIE5Y.js} +5 -5
  229. package/dist/{ui-dialog.entry-WO23XOSW.js → ui-dialog.entry-QSYWYHLY.js} +50 -12
  230. package/dist/{ui-disclosure.entry-USX7OUEW.js → ui-disclosure.entry-3BJEYU3U.js} +13 -7
  231. package/dist/{ui-floating-action-button.entry-MXDIN7MV.js → ui-floating-action-button.entry-JEVNV6FI.js} +2 -2
  232. package/dist/ui-form-field.entry-PKSY7UU4.js +120 -0
  233. package/dist/{ui-icon-button.entry-MJUNXHBU.js → ui-icon-button.entry-TPX7BE7R.js} +2 -2
  234. package/dist/{ui-input.entry-AWG63YIG.js → ui-input.entry-6NCLNW4E.js} +2 -2
  235. package/dist/ui-menu-item.entry-KA2K3PKV.js +22 -0
  236. package/dist/{ui-menu.entry-IT3GW5TL.js → ui-menu.entry-7GDO5L2T.js} +22 -14
  237. package/dist/{ui-popover.entry-ZQQB4N6E.js → ui-popover.entry-FR6YRNK6.js} +17 -11
  238. package/dist/{ui-radio-group.entry-V7PCTS7I.js → ui-radio-group.entry-7QHXQSNO.js} +2 -2
  239. package/dist/{ui-radio.entry-JYH6TQBI.js → ui-radio.entry-YNMXKLDW.js} +20 -8
  240. package/dist/{ui-search-result-row.entry-JBNYXXUN.js → ui-search-result-row.entry-AHVVAAIO.js} +2 -2
  241. package/dist/{ui-search-shell.entry-TEAWE76O.js → ui-search-shell.entry-CNBEAMEZ.js} +2 -2
  242. package/dist/{ui-select.entry-F3A6TE2U.js → ui-select.entry-TUY6TCTC.js} +2 -2
  243. package/dist/{ui-switch.entry-MJIICMP2.js → ui-switch.entry-26LFI7B5.js} +23 -11
  244. package/dist/{ui-tabs.entry-6REFIUHV.js → ui-tabs.entry-LXB62RJJ.js} +14 -10
  245. package/dist/{ui-textarea.entry-OJTXCED7.js → ui-textarea.entry-JYGMGPX2.js} +2 -2
  246. package/dist/{ui-toast-region.entry-NOFXLKPS.js → ui-toast-region.entry-TOW4KZLZ.js} +32 -23
  247. package/dist/{ui-tooltip.entry-COWTWVHX.js → ui-tooltip.entry-SKFNYXPH.js} +19 -12
  248. package/dist/{ui-top-bar.entry-PIAWXJNV.js → ui-top-bar.entry-S3YP52EA.js} +2 -2
  249. package/dist/ui-tree-item.entry-LWYIPYLC.js +145 -0
  250. package/dist/{ui-tree.entry-XYI3ZFAZ.js → ui-tree.entry-LXKUQFRU.js} +114 -12
  251. package/editor/{chunk-QCOYOVQL.js → chunk-B5WVJOPV.js} +113 -97
  252. package/editor/extensions/index.d.ts +14 -6
  253. package/editor/extensions/index.js +1 -1
  254. package/editor/index.js +1 -1
  255. package/editor.css +37 -20
  256. package/package.json +1 -1
  257. package/styles.css +10 -0
  258. package/tokens.css +3 -0
  259. package/vue/{chunk-JLW23USW.js → chunk-D4AJULDE.js} +28 -16
  260. package/vue/editor/index.d.ts +5 -15
  261. package/vue/editor/index.js +1 -1
  262. package/vue/index.d.ts +325 -115
  263. package/vue/index.js +5 -1
  264. package/dist/components/p-CaietZcq.js +0 -1
  265. package/dist/components/p-DHd18bK7.js +0 -1
  266. package/dist/looma/p-14c081cf.entry.js +0 -1
  267. package/dist/looma/p-25366205.entry.js +0 -1
  268. package/dist/looma/p-2e3aa869.entry.js +0 -1
  269. package/dist/looma/p-446cda76.entry.js +0 -1
  270. package/dist/looma/p-4fc1b005.entry.js +0 -13
  271. package/dist/looma/p-6a8a4736.entry.js +0 -1
  272. package/dist/looma/p-6bf4038b.entry.js +0 -1
  273. package/dist/looma/p-8204fee6.entry.js +0 -1
  274. package/dist/looma/p-8238e0dc.entry.js +0 -1
  275. package/dist/looma/p-99d88efb.entry.js +0 -1
  276. package/dist/looma/p-a27669b1.entry.js +0 -1
  277. package/dist/looma/p-a6ee76b7.entry.js +0 -1
  278. package/dist/looma/p-b6398a6b.entry.js +0 -1
  279. package/dist/looma/p-d50faaff.entry.js +0 -1
  280. package/dist/looma/p-d77278ce.entry.js +0 -1
  281. package/dist/looma/p-d9ec13b7.entry.js +0 -1
  282. package/dist/looma/p-ecf8005f.entry.js +0 -1
  283. package/dist/ui-avatar-group.entry-TAXJRIIU.js +0 -59
  284. package/dist/ui-badge.entry-MZFYNBMJ.js +0 -22
  285. package/dist/ui-form-field.entry-7ZCMEHPY.js +0 -67
  286. package/dist/ui-menu-item.entry-HFTWG62N.js +0 -22
  287. package/dist/ui-tree-item.entry-BSEWNL2O.js +0 -389
package/editor.css CHANGED
@@ -62,7 +62,8 @@
62
62
  .looma-editor .ProseMirror ul,
63
63
  .looma-editor .ProseMirror ol {
64
64
  margin: 0 0 var(--ui-space-3);
65
- padding-left: var(--ui-space-6);
65
+ /* Nested lists retain the browser's hierarchy; this is only the root inset. */
66
+ padding-inline-start: var(--ui-editor-list-inset, var(--ui-space-5));
66
67
  }
67
68
 
68
69
  .looma-editor .ProseMirror li {
@@ -77,52 +78,68 @@
77
78
  font-style: italic;
78
79
  }
79
80
 
80
- .looma-editor .ProseMirror aside[data-looma-callout] {
81
- --ui-editor-callout-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14.5 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7.5z'/%3E%3Cpolyline points='14 2 14 8 20 8'/%3E%3C/svg%3E");
81
+ .looma-editor .ProseMirror aside[data-looma-callout][data-tone] {
82
+ --ui-callout-padding-block: var(--ui-space-2);
83
+ --ui-callout-padding-inline: var(--ui-space-3);
84
+ --ui-callout-icon-column: 1rem;
85
+ --ui-callout-gap: var(--ui-space-2);
86
+ --ui-callout-icon-size: 1rem;
87
+ --ui-callout-border-width: 1px;
88
+ --ui-callout-leading-border-width: 4px;
89
+ --ui-callout-surface: var(--ui-accent-soft);
90
+ --ui-callout-text: var(--ui-text-primary);
91
+ --ui-callout-border: var(--ui-accent-solid);
92
+ --ui-callout-icon: var(--ui-accent-solid);
93
+ --ui-editor-callout-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M13.4 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-7.4'/%3E%3Cpath d='M2 6h4'/%3E%3Cpath d='M2 10h4'/%3E%3Cpath d='M2 14h4'/%3E%3Cpath d='M2 18h4'/%3E%3Cpath 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'/%3E%3C/svg%3E");
82
94
 
83
95
  display: grid;
84
- grid-template-columns: 1.25rem minmax(0, 1fr);
96
+ grid-template-columns: var(--ui-callout-icon-column) minmax(0, 1fr);
85
97
  align-items: start;
86
- column-gap: var(--ui-space-3);
98
+ column-gap: var(--ui-callout-gap);
87
99
  margin: var(--ui-space-4) 0;
88
- padding: var(--ui-space-3) var(--ui-space-4);
89
- border-left: 4px solid var(--ui-editor-callout-color, var(--ui-accent-solid));
100
+ padding: var(--ui-callout-padding-block) var(--ui-callout-padding-inline);
101
+ border: var(--ui-callout-border-width) solid color-mix(in srgb, var(--ui-callout-border) 35%, transparent);
102
+ border-inline-start: var(--ui-callout-leading-border-width) solid var(--ui-callout-border);
90
103
  border-radius: var(--ui-radius-2);
91
- background: var(--ui-editor-callout-background, var(--ui-accent-soft));
104
+ background: var(--ui-callout-surface);
105
+ color: var(--ui-callout-text);
92
106
  }
93
107
 
94
- .looma-editor .ProseMirror aside[data-looma-callout]::before {
95
- width: 1.125rem;
96
- height: 1.125rem;
108
+ .looma-editor .ProseMirror aside[data-looma-callout][data-tone]::before {
109
+ width: var(--ui-callout-icon-size);
110
+ height: var(--ui-callout-icon-size);
97
111
  margin-top: 0.2em;
98
- background: var(--ui-editor-callout-color, var(--ui-accent-solid));
112
+ background: var(--ui-callout-icon);
99
113
  content: "";
100
114
  mask: var(--ui-editor-callout-icon) center / contain no-repeat;
101
115
  -webkit-mask: var(--ui-editor-callout-icon) center / contain no-repeat;
102
116
  }
103
117
 
104
- .looma-editor .ProseMirror aside[data-looma-callout] > * {
118
+ .looma-editor .ProseMirror aside[data-looma-callout][data-tone] > * {
105
119
  grid-column: 2;
106
120
  }
107
121
 
108
- .looma-editor .ProseMirror aside[data-looma-callout] > :last-child {
122
+ .looma-editor .ProseMirror aside[data-looma-callout][data-tone] > :last-child {
109
123
  margin-bottom: 0;
110
124
  }
111
125
 
112
126
  .looma-editor .ProseMirror aside[data-looma-callout][data-tone="info"] {
113
- --ui-editor-callout-color: var(--ui-info-solid);
114
- --ui-editor-callout-background: var(--ui-info-soft);
127
+ --ui-callout-surface: var(--ui-info-soft);
128
+ --ui-callout-border: var(--ui-info-solid);
129
+ --ui-callout-icon: var(--ui-info-solid);
115
130
  --ui-editor-callout-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 16v-4'/%3E%3Cpath d='M12 8h.01'/%3E%3C/svg%3E");
116
131
  }
117
132
 
118
133
  .looma-editor .ProseMirror aside[data-looma-callout][data-tone="note"] {
119
- --ui-editor-callout-color: var(--ui-accent-solid);
120
- --ui-editor-callout-background: var(--ui-accent-soft);
134
+ --ui-callout-surface: var(--ui-accent-soft);
135
+ --ui-callout-border: var(--ui-accent-solid);
136
+ --ui-callout-icon: var(--ui-accent-solid);
121
137
  }
122
138
 
123
139
  .looma-editor .ProseMirror aside[data-looma-callout][data-tone="warning"] {
124
- --ui-editor-callout-color: var(--ui-warning-solid);
125
- --ui-editor-callout-background: var(--ui-warning-soft);
140
+ --ui-callout-surface: var(--ui-warning-soft);
141
+ --ui-callout-border: var(--ui-warning-solid);
142
+ --ui-callout-icon: var(--ui-warning-solid);
126
143
  --ui-editor-callout-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m21.73 18-8-14a2 2 0 0 0-3.46 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3'/%3E%3Cpath d='M12 9v4'/%3E%3Cpath d='M12 17h.01'/%3E%3C/svg%3E");
127
144
  }
128
145
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@threadlabs/looma",
3
- "version": "0.1.23",
3
+ "version": "0.1.24",
4
4
  "type": "module",
5
5
  "description": "Looma web components, responsive layout primitives, a complete editor, and supported Vue adapters.",
6
6
  "license": "MIT",
package/styles.css CHANGED
@@ -17,6 +17,8 @@
17
17
  ui-radio-group,
18
18
  ui-radio,
19
19
  ui-badge,
20
+ ui-chip,
21
+ ui-callout,
20
22
  ui-avatar,
21
23
  ui-avatar-group,
22
24
  ui-tree,
@@ -40,6 +42,8 @@
40
42
  ui-radio-group,
41
43
  ui-radio,
42
44
  ui-badge,
45
+ ui-chip,
46
+ ui-callout,
43
47
  ui-avatar,
44
48
  ui-avatar-group,
45
49
  ui-tree,
@@ -63,6 +67,8 @@
63
67
  ui-radio-group,
64
68
  ui-radio,
65
69
  ui-badge,
70
+ ui-chip,
71
+ ui-callout,
66
72
  ui-avatar,
67
73
  ui-avatar-group,
68
74
  ui-tree,
@@ -86,6 +92,8 @@
86
92
  ui-radio-group,
87
93
  ui-radio,
88
94
  ui-badge,
95
+ ui-chip,
96
+ ui-callout,
89
97
  ui-avatar,
90
98
  ui-avatar-group,
91
99
  ui-tree,
@@ -112,6 +120,8 @@
112
120
  ui-radio-group,
113
121
  ui-radio,
114
122
  ui-badge,
123
+ ui-chip,
124
+ ui-callout,
115
125
  ui-avatar,
116
126
  ui-avatar-group,
117
127
  ui-tree,
package/tokens.css CHANGED
@@ -39,6 +39,8 @@
39
39
  source-sans-pro,
40
40
  sans-serif;
41
41
  --ui-font-family-sans: var(--ui-font-stack-system);
42
+ /* Quiet metadata scale for compact, non-interactive component labels. */
43
+ --ui-font-size-2xs: 0.6875rem;
42
44
  --ui-font-size-xs: 0.75rem;
43
45
  --ui-font-size-sm: 0.875rem;
44
46
  /* Dense interactive text: legible at 15px without body-copy spacing. */
@@ -56,6 +58,7 @@
56
58
  --ui-font-semibold: 600;
57
59
  --ui-font-bold: 700;
58
60
 
61
+ --ui-space-0-5: 0.125rem;
59
62
  --ui-space-1: 0.25rem;
60
63
  --ui-space-2: 0.5rem;
61
64
  --ui-space-3: 0.75rem;
@@ -186,27 +186,29 @@ var Switcher = createAdapterComponent("ui-switcher", "Switcher");
186
186
  var Sidebar = createAdapterComponent("ui-sidebar", "Sidebar", [], "");
187
187
  var Reel = createAdapterComponent("ui-reel", "Reel");
188
188
  var Separator = createAdapterComponent("ui-separator", "Separator");
189
- var Disclosure = createAdapterComponent("ui-disclosure", "Disclosure");
190
- var Tabs = createAdapterComponent("ui-tabs", "Tabs");
191
- var Dialog = createAdapterComponent("ui-dialog", "Dialog");
192
- var Popover = createAdapterComponent("ui-popover", "Popover");
193
- var Menu = createAdapterComponent("ui-menu", "Menu");
189
+ var Disclosure = createAdapterComponent("ui-disclosure", "Disclosure", [], "class", ["open"]);
190
+ var Tabs = createAdapterComponent("ui-tabs", "Tabs", [], "class", ["value"]);
191
+ var Dialog = createAdapterComponent("ui-dialog", "Dialog", [], "class", ["open"]);
192
+ var Popover = createAdapterComponent("ui-popover", "Popover", [], "class", ["open"]);
193
+ var Menu = createAdapterComponent("ui-menu", "Menu", [], "class", ["open"]);
194
194
  var MenuItem = createAdapterComponent("ui-menu-item", "MenuItem");
195
- var ContextMenu = createAdapterComponent("ui-context-menu", "ContextMenu");
195
+ var ContextMenu = createAdapterComponent("ui-context-menu", "ContextMenu", [], "class", ["open"]);
196
196
  var AffordanceScope = createAdapterComponent("ui-affordance-scope", "AffordanceScope");
197
197
  var Button = createAdapterComponent("ui-button", "Button");
198
198
  var IconButton = createAdapterComponent("ui-icon-button", "IconButton");
199
- var Input = createAdapterComponent("ui-input", "Input");
200
- var Select = createAdapterComponent("ui-select", "Select");
201
- var Textarea = createAdapterComponent("ui-textarea", "Textarea");
199
+ var Input = createAdapterComponent("ui-input", "Input", [], "class", ["value"]);
200
+ var Select = createAdapterComponent("ui-select", "Select", [], "class", ["value"]);
201
+ var Textarea = createAdapterComponent("ui-textarea", "Textarea", [], "class", ["value"]);
202
202
  var FormField = createAdapterComponent("ui-form-field", "FormField");
203
- var Tooltip = createAdapterComponent("ui-tooltip", "Tooltip");
204
- var ToastRegion = createAdapterComponent("ui-toast-region", "ToastRegion");
205
- var Checkbox = createAdapterComponent("ui-checkbox", "Checkbox");
206
- var Switch = createAdapterComponent("ui-switch", "Switch");
207
- var RadioGroup = createAdapterComponent("ui-radio-group", "RadioGroup");
208
- var Radio = createAdapterComponent("ui-radio", "Radio");
203
+ var Tooltip = createAdapterComponent("ui-tooltip", "Tooltip", [], "class", ["open"]);
204
+ var ToastRegion = createAdapterComponent("ui-toast-region", "ToastRegion", [], "class", ["open"]);
205
+ var Checkbox = createAdapterComponent("ui-checkbox", "Checkbox", [], "class", ["checked"]);
206
+ var Switch = createAdapterComponent("ui-switch", "Switch", [], "class", ["checked"]);
207
+ var RadioGroup = createAdapterComponent("ui-radio-group", "RadioGroup", [], "class", ["value"]);
208
+ var Radio = createAdapterComponent("ui-radio", "Radio", [], "class", ["checked"]);
209
209
  var Badge = createAdapterComponent("ui-badge", "Badge");
210
+ var Chip = createAdapterComponent("ui-chip", "Chip");
211
+ var Callout = createAdapterComponent("ui-callout", "Callout");
210
212
  var Avatar = createAdapterComponent("ui-avatar", "Avatar");
211
213
  var AvatarGroup = createAdapterComponent("ui-avatar-group", "AvatarGroup");
212
214
  var FloatingActionButton = createAdapterComponent(
@@ -220,7 +222,13 @@ var Tree = createAdapterComponent("ui-tree", "Tree", [
220
222
  ["reorder", "onReorder"],
221
223
  ["reorder-rejected", "onReorderRejected"]
222
224
  ]);
223
- var TreeItem = createAdapterComponent("ui-tree-item", "TreeItem", [["expand", "onExpand"]]);
225
+ var TreeItem = createAdapterComponent(
226
+ "ui-tree-item",
227
+ "TreeItem",
228
+ [["expand", "onExpand"]],
229
+ "class",
230
+ ["expanded"]
231
+ );
224
232
  var ADAPTER_COMPONENT_TAG_MAP = {
225
233
  Combobox: "ui-combobox",
226
234
  Stack: "ui-stack",
@@ -253,6 +261,8 @@ var ADAPTER_COMPONENT_TAG_MAP = {
253
261
  RadioGroup: "ui-radio-group",
254
262
  Radio: "ui-radio",
255
263
  Badge: "ui-badge",
264
+ Chip: "ui-chip",
265
+ Callout: "ui-callout",
256
266
  Avatar: "ui-avatar",
257
267
  AvatarGroup: "ui-avatar-group",
258
268
  FloatingActionButton: "ui-floating-action-button",
@@ -298,6 +308,8 @@ export {
298
308
  RadioGroup,
299
309
  Radio,
300
310
  Badge,
311
+ Chip,
312
+ Callout,
301
313
  Avatar,
302
314
  AvatarGroup,
303
315
  FloatingActionButton,
@@ -135,21 +135,11 @@ declare const EditorMentionMenu: vue.DefineComponent<vue.ExtractPropTypes<{
135
135
  anchorRect: SlashMenuAnchorRect | null;
136
136
  loading: boolean;
137
137
  }, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
138
- declare const EditorToolbar: vue.DefineComponent<{}, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
139
- [key: string]: any;
140
- }>, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
141
- declare const EditorTableContextMenu: vue.DefineComponent<{}, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
142
- [key: string]: any;
143
- }>, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
144
- declare const EditorTableToolbar: vue.DefineComponent<{}, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
145
- [key: string]: any;
146
- }>, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
147
- declare const EditorInsertTableGrid: vue.DefineComponent<{}, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
148
- [key: string]: any;
149
- }>, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
150
- declare const EditorTableOverlay: vue.DefineComponent<{}, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
151
- [key: string]: any;
152
- }>, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
138
+ declare const EditorToolbar: vue.DefineComponent<Record<string, never>>;
139
+ declare const EditorTableContextMenu: vue.DefineComponent<Record<string, never>>;
140
+ declare const EditorTableToolbar: vue.DefineComponent<Record<string, never>>;
141
+ declare const EditorInsertTableGrid: vue.DefineComponent<Record<string, never>>;
142
+ declare const EditorTableOverlay: vue.DefineComponent<Record<string, never>>;
153
143
  declare const EDITOR_ADAPTER_COMPONENT_TAG_MAP: {
154
144
  readonly EditorToolbar: "ui-editor-toolbar";
155
145
  readonly EditorSlashMenu: "ui-editor-slash-menu";
@@ -3,7 +3,7 @@ import {
3
3
  Popover,
4
4
  createAdapterComponent,
5
5
  toHTMLElement
6
- } from "../chunk-JLW23USW.js";
6
+ } from "../chunk-D4AJULDE.js";
7
7
 
8
8
  // src/editor/index.ts
9
9
  import "@threadlabs/looma/editor";