@threadlabs/looma 0.1.23 → 0.1.25

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 (309) hide show
  1. package/dist/chunk-HNFCGIBP.js +8 -0
  2. package/dist/chunk-NB6DBRXQ.js +323 -0
  3. package/dist/{chunk-GDMQKT5F.js → chunk-UY423IKN.js} +33 -30
  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-combobox.cjs.entry.js → ui-chip_2.cjs.entry.js} +29 -4
  16. package/dist/cjs/ui-context-menu.cjs.entry.js +1 -1
  17. package/dist/cjs/ui-dialog.cjs.entry.js +44 -8
  18. package/dist/cjs/ui-disclosure.cjs.entry.js +9 -6
  19. package/dist/cjs/ui-editable.cjs.entry.js +100 -0
  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-multi-combobox.cjs.entry.js +158 -0
  27. package/dist/cjs/ui-popover.cjs.entry.js +10 -7
  28. package/dist/cjs/ui-radio-group.cjs.entry.js +1 -1
  29. package/dist/cjs/ui-radio.cjs.entry.js +16 -7
  30. package/dist/cjs/ui-search-result-row.cjs.entry.js +1 -1
  31. package/dist/cjs/ui-search-shell.cjs.entry.js +1 -1
  32. package/dist/cjs/ui-select.cjs.entry.js +1 -1
  33. package/dist/cjs/ui-switch.cjs.entry.js +19 -10
  34. package/dist/cjs/ui-tabs.cjs.entry.js +10 -9
  35. package/dist/cjs/ui-textarea.cjs.entry.js +1 -1
  36. package/dist/cjs/ui-toast-region.cjs.entry.js +30 -19
  37. package/dist/cjs/ui-tooltip.cjs.entry.js +12 -8
  38. package/dist/cjs/ui-top-bar.cjs.entry.js +1 -1
  39. package/dist/cjs/ui-tree-item.cjs.entry.js +54 -617
  40. package/dist/cjs/ui-tree.cjs.entry.js +123 -11
  41. package/dist/collection/collection-manifest.json +4 -0
  42. package/dist/collection/components/ui-affordance-scope/ui-affordance-scope.js +1 -1
  43. package/dist/collection/components/ui-avatar/ui-avatar.css +4 -4
  44. package/dist/collection/components/ui-avatar/ui-avatar.js +1 -1
  45. package/dist/collection/components/ui-avatar-group/ui-avatar-group.css +2 -2
  46. package/dist/collection/components/ui-avatar-group/ui-avatar-group.js +8 -16
  47. package/dist/collection/components/ui-badge/ui-badge.css +64 -48
  48. package/dist/collection/components/ui-badge/ui-badge.js +1 -1
  49. package/dist/collection/components/ui-button/ui-button.js +1 -1
  50. package/dist/collection/components/ui-callout/ui-callout.css +74 -0
  51. package/dist/collection/components/ui-callout/ui-callout.js +59 -0
  52. package/dist/collection/components/ui-checkbox/ui-checkbox.js +16 -11
  53. package/dist/collection/components/ui-chip/ui-chip.css +47 -0
  54. package/dist/collection/components/ui-chip/ui-chip.js +67 -0
  55. package/dist/collection/components/ui-combobox/ui-combobox.js +49 -4
  56. package/dist/collection/components/ui-context-menu/ui-context-menu.js +1 -1
  57. package/dist/collection/components/ui-dialog/ui-dialog.js +49 -13
  58. package/dist/collection/components/ui-disclosure/ui-disclosure.js +12 -10
  59. package/dist/collection/components/ui-editable/ui-editable.css +2 -0
  60. package/dist/collection/components/ui-editable/ui-editable.js +196 -0
  61. package/dist/collection/components/ui-floating-action-button/ui-floating-action-button.js +1 -1
  62. package/dist/collection/components/ui-form-field/ui-form-field.js +59 -4
  63. package/dist/collection/components/ui-icon-button/ui-icon-button.js +1 -1
  64. package/dist/collection/components/ui-input/ui-input.js +1 -1
  65. package/dist/collection/components/ui-menu/ui-menu.css +12 -23
  66. package/dist/collection/components/ui-menu/ui-menu.js +16 -12
  67. package/dist/collection/components/ui-menu-item/ui-menu-item.css +9 -3
  68. package/dist/collection/components/ui-menu-item/ui-menu-item.js +1 -1
  69. package/dist/collection/components/ui-multi-combobox/ui-multi-combobox.css +29 -0
  70. package/dist/collection/components/ui-multi-combobox/ui-multi-combobox.js +503 -0
  71. package/dist/collection/components/ui-popover/ui-popover.css +14 -5
  72. package/dist/collection/components/ui-popover/ui-popover.js +12 -10
  73. package/dist/collection/components/ui-radio/ui-radio.js +24 -11
  74. package/dist/collection/components/ui-radio-group/ui-radio-group.js +1 -1
  75. package/dist/collection/components/ui-search-result-row/ui-search-result-row.js +1 -1
  76. package/dist/collection/components/ui-search-shell/ui-search-shell.js +1 -1
  77. package/dist/collection/components/ui-select/ui-select.js +1 -1
  78. package/dist/collection/components/ui-switch/ui-switch.js +22 -14
  79. package/dist/collection/components/ui-tabs/ui-tabs.js +13 -13
  80. package/dist/collection/components/ui-textarea/ui-textarea.js +1 -1
  81. package/dist/collection/components/ui-toast-region/ui-toast-region.js +30 -19
  82. package/dist/collection/components/ui-tooltip/ui-tooltip.css +16 -7
  83. package/dist/collection/components/ui-tooltip/ui-tooltip.js +14 -11
  84. package/dist/collection/components/ui-top-bar/ui-top-bar.js +1 -1
  85. package/dist/collection/components/ui-tree/ui-tree.css +2 -1
  86. package/dist/collection/components/ui-tree/ui-tree.js +122 -10
  87. package/dist/collection/components/ui-tree-item/ui-tree-item.js +61 -44
  88. package/dist/collection/field/editable.js +1 -0
  89. package/dist/collection/field/multi-combobox.js +1 -0
  90. package/dist/collection/icons.js +6 -1
  91. package/dist/collection/utils/controlled-state.js +4 -0
  92. package/dist/components/index.d.ts +8 -0
  93. package/dist/components/index.js +1 -1
  94. package/dist/components/p-B9CzOHvE.js +1 -0
  95. package/dist/components/p-BMgIcOh-.js +1 -0
  96. package/dist/components/p-BVteuP_d.js +1 -0
  97. package/dist/components/p-BnGhGgTH.js +1 -0
  98. package/dist/components/p-C6p-ygxq.js +1 -0
  99. package/dist/components/p-CoFximGM.js +13 -0
  100. package/dist/components/ui-affordance-scope.js +1 -1
  101. package/dist/components/ui-avatar-group.js +1 -1
  102. package/dist/components/ui-avatar.js +1 -1
  103. package/dist/components/ui-badge.js +1 -1
  104. package/dist/components/ui-button.js +1 -1
  105. package/dist/components/ui-callout.d.ts +11 -0
  106. package/dist/components/ui-callout.js +1 -0
  107. package/dist/components/ui-checkbox.js +1 -1
  108. package/dist/components/ui-chip.d.ts +11 -0
  109. package/dist/components/ui-chip.js +1 -0
  110. package/dist/components/ui-combobox.js +1 -1
  111. package/dist/components/ui-context-menu.js +1 -1
  112. package/dist/components/ui-dialog.js +1 -1
  113. package/dist/components/ui-disclosure.js +1 -1
  114. package/dist/components/ui-editable.d.ts +11 -0
  115. package/dist/components/ui-editable.js +1 -0
  116. package/dist/components/ui-floating-action-button.js +1 -1
  117. package/dist/components/ui-form-field.js +1 -1
  118. package/dist/components/ui-icon-button.js +1 -1
  119. package/dist/components/ui-input.js +1 -1
  120. package/dist/components/ui-menu-item.js +1 -1
  121. package/dist/components/ui-menu.js +1 -1
  122. package/dist/components/ui-multi-combobox.d.ts +11 -0
  123. package/dist/components/ui-multi-combobox.js +1 -0
  124. package/dist/components/ui-popover.js +1 -1
  125. package/dist/components/ui-radio-group.js +1 -1
  126. package/dist/components/ui-radio.js +1 -1
  127. package/dist/components/ui-search-result-row.js +1 -1
  128. package/dist/components/ui-search-shell.js +1 -1
  129. package/dist/components/ui-select.js +1 -1
  130. package/dist/components/ui-switch.js +1 -1
  131. package/dist/components/ui-tabs.js +1 -1
  132. package/dist/components/ui-textarea.js +1 -1
  133. package/dist/components/ui-toast-region.js +1 -1
  134. package/dist/components/ui-tooltip.js +1 -1
  135. package/dist/components/ui-top-bar.js +1 -1
  136. package/dist/components/ui-tree-item.js +1 -13
  137. package/dist/components/ui-tree.js +1 -1
  138. package/dist/esm/controlled-state-BnGhGgTH.js +6 -0
  139. package/dist/esm/icons-CoFximGM.js +678 -0
  140. package/dist/esm/loader.js +1 -1
  141. package/dist/esm/looma.js +1 -1
  142. package/dist/esm/ui-affordance-scope.entry.js +1 -1
  143. package/dist/esm/ui-avatar-group.entry.js +9 -17
  144. package/dist/esm/ui-avatar.entry.js +2 -2
  145. package/dist/esm/ui-badge.entry.js +2 -2
  146. package/dist/esm/ui-button.entry.js +1 -1
  147. package/dist/esm/ui-callout.entry.js +25 -0
  148. package/dist/esm/ui-checkbox.entry.js +13 -7
  149. package/dist/esm/{ui-combobox.entry.js → ui-chip_2.entry.js} +30 -6
  150. package/dist/esm/ui-context-menu.entry.js +1 -1
  151. package/dist/esm/ui-dialog.entry.js +44 -8
  152. package/dist/esm/ui-disclosure.entry.js +9 -6
  153. package/dist/esm/ui-editable.entry.js +98 -0
  154. package/dist/esm/ui-floating-action-button.entry.js +1 -1
  155. package/dist/esm/ui-form-field.entry.js +59 -4
  156. package/dist/esm/ui-icon-button.entry.js +1 -1
  157. package/dist/esm/ui-input.entry.js +1 -1
  158. package/dist/esm/ui-menu-item.entry.js +2 -2
  159. package/dist/esm/ui-menu.entry.js +14 -9
  160. package/dist/esm/ui-multi-combobox.entry.js +156 -0
  161. package/dist/esm/ui-popover.entry.js +10 -7
  162. package/dist/esm/ui-radio-group.entry.js +1 -1
  163. package/dist/esm/ui-radio.entry.js +16 -7
  164. package/dist/esm/ui-search-result-row.entry.js +1 -1
  165. package/dist/esm/ui-search-shell.entry.js +1 -1
  166. package/dist/esm/ui-select.entry.js +1 -1
  167. package/dist/esm/ui-switch.entry.js +19 -10
  168. package/dist/esm/ui-tabs.entry.js +10 -9
  169. package/dist/esm/ui-textarea.entry.js +1 -1
  170. package/dist/esm/ui-toast-region.entry.js +30 -19
  171. package/dist/esm/ui-tooltip.entry.js +12 -8
  172. package/dist/esm/ui-top-bar.entry.js +1 -1
  173. package/dist/esm/ui-tree-item.entry.js +54 -617
  174. package/dist/esm/ui-tree.entry.js +123 -11
  175. package/dist/index.cjs +1552 -894
  176. package/dist/index.d.cts +23 -1
  177. package/dist/index.d.ts +23 -1
  178. package/dist/index.js +12 -2
  179. package/dist/looma/looma.esm.js +1 -1
  180. package/dist/looma/p-08f80207.entry.js +1 -0
  181. package/dist/looma/{p-ed368426.entry.js → p-0e1741cb.entry.js} +1 -1
  182. package/dist/looma/p-0ef4bf13.entry.js +1 -0
  183. package/dist/looma/{p-7e0bb7f6.entry.js → p-166f8593.entry.js} +1 -1
  184. package/dist/looma/p-262a542c.entry.js +1 -0
  185. package/dist/looma/{p-13347631.entry.js → p-26d357ae.entry.js} +1 -1
  186. package/dist/looma/p-30f01909.entry.js +1 -0
  187. package/dist/looma/p-393e3e02.entry.js +1 -0
  188. package/dist/looma/p-3a44b9f9.entry.js +1 -0
  189. package/dist/looma/p-558d4f5b.entry.js +1 -0
  190. package/dist/looma/{p-5a87b59d.entry.js → p-5780cefa.entry.js} +1 -1
  191. package/dist/looma/p-5a7261e1.entry.js +1 -0
  192. package/dist/looma/p-5fdcee1d.entry.js +1 -0
  193. package/dist/looma/{p-add36e74.entry.js → p-72338f53.entry.js} +1 -1
  194. package/dist/looma/p-7319c147.entry.js +1 -0
  195. package/dist/looma/p-78b7e466.entry.js +1 -0
  196. package/dist/looma/{p-a90d2821.entry.js → p-7ab661ec.entry.js} +1 -1
  197. package/dist/looma/p-7eb04f09.entry.js +1 -0
  198. package/dist/looma/{p-69a5557b.entry.js → p-81c533f5.entry.js} +1 -1
  199. package/dist/looma/p-87f501cf.entry.js +1 -0
  200. package/dist/looma/p-89e71bbb.entry.js +1 -0
  201. package/dist/looma/{p-8b8840b8.entry.js → p-92cd1841.entry.js} +1 -1
  202. package/dist/looma/{p-f0487ff3.entry.js → p-95eb3b58.entry.js} +1 -1
  203. package/dist/looma/p-96ec4d7a.entry.js +1 -0
  204. package/dist/looma/p-9d2662ca.entry.js +1 -0
  205. package/dist/looma/p-BnGhGgTH.js +1 -0
  206. package/dist/looma/p-CoFximGM.js +13 -0
  207. package/dist/looma/p-add67e4c.entry.js +1 -0
  208. package/dist/looma/p-b6c776fb.entry.js +1 -0
  209. package/dist/looma/p-bcb1b47b.entry.js +1 -0
  210. package/dist/looma/p-d56571a2.entry.js +1 -0
  211. package/dist/looma/{p-582973b5.entry.js → p-d62da01d.entry.js} +1 -1
  212. package/dist/looma/{p-f74e5546.entry.js → p-dbcb479c.entry.js} +1 -1
  213. package/dist/looma/p-e14024bf.entry.js +1 -0
  214. package/dist/looma/{p-5da09f47.entry.js → p-fc180770.entry.js} +1 -1
  215. package/dist/types/components/ui-avatar-group/ui-avatar-group.d.ts +1 -2
  216. package/dist/types/components/ui-callout/ui-callout.d.ts +6 -0
  217. package/dist/types/components/ui-checkbox/ui-checkbox.d.ts +2 -1
  218. package/dist/types/components/ui-chip/ui-chip.d.ts +8 -0
  219. package/dist/types/components/ui-combobox/ui-combobox.d.ts +4 -0
  220. package/dist/types/components/ui-dialog/ui-dialog.d.ts +7 -1
  221. package/dist/types/components/ui-disclosure/ui-disclosure.d.ts +2 -1
  222. package/dist/types/components/ui-editable/ui-editable.d.ts +24 -0
  223. package/dist/types/components/ui-form-field/ui-form-field.d.ts +8 -0
  224. package/dist/types/components/ui-menu/ui-menu.d.ts +2 -1
  225. package/dist/types/components/ui-multi-combobox/ui-multi-combobox.d.ts +47 -0
  226. package/dist/types/components/ui-popover/ui-popover.d.ts +2 -1
  227. package/dist/types/components/ui-radio/ui-radio.d.ts +4 -1
  228. package/dist/types/components/ui-switch/ui-switch.d.ts +2 -1
  229. package/dist/types/components/ui-tabs/ui-tabs.d.ts +2 -1
  230. package/dist/types/components/ui-toast-region/ui-toast-region.d.ts +3 -1
  231. package/dist/types/components/ui-tooltip/ui-tooltip.d.ts +2 -1
  232. package/dist/types/components/ui-tree/ui-tree.d.ts +12 -0
  233. package/dist/types/components/ui-tree-item/ui-tree-item.d.ts +11 -7
  234. package/dist/types/components.d.ts +343 -46
  235. package/dist/types/field/editable.d.ts +5 -0
  236. package/dist/types/field/multi-combobox.d.ts +11 -0
  237. package/dist/types/icons.d.ts +5 -0
  238. package/dist/types/utils/controlled-state.d.ts +4 -0
  239. package/dist/{ui-affordance-scope.entry-VO4C2MZX.js → ui-affordance-scope.entry-VSSP52ZP.js} +2 -2
  240. package/dist/ui-avatar-group.entry-JMCLL6FW.js +51 -0
  241. package/dist/{ui-avatar.entry-T6FU6ZYM.js → ui-avatar.entry-X2YQ3QPG.js} +3 -3
  242. package/dist/ui-badge.entry-OJ6FJJKL.js +22 -0
  243. package/dist/{ui-button.entry-7UXMUGHN.js → ui-button.entry-ZN6JLND7.js} +2 -2
  244. package/dist/ui-callout.entry-7K6NXQ7U.js +32 -0
  245. package/dist/{ui-checkbox.entry-DMZJB3RE.js → ui-checkbox.entry-GUYRVU6O.js} +17 -8
  246. package/dist/{ui-combobox.entry-ZCTPXEES.js → ui-chip_2.entry-M2DOTIGY.js} +32 -7
  247. package/dist/{ui-context-menu.entry-2WMCBGCP.js → ui-context-menu.entry-BM7FHOUJ.js} +5 -5
  248. package/dist/{ui-dialog.entry-WO23XOSW.js → ui-dialog.entry-AZAD37CG.js} +50 -12
  249. package/dist/{ui-disclosure.entry-USX7OUEW.js → ui-disclosure.entry-XDPGKMBK.js} +13 -7
  250. package/dist/ui-editable.entry-S3TE6KFT.js +110 -0
  251. package/dist/{ui-floating-action-button.entry-MXDIN7MV.js → ui-floating-action-button.entry-U7HGA3CS.js} +2 -2
  252. package/dist/ui-form-field.entry-C2ZSP3TM.js +120 -0
  253. package/dist/{ui-icon-button.entry-MJUNXHBU.js → ui-icon-button.entry-P6H2LY7D.js} +2 -2
  254. package/dist/{ui-input.entry-AWG63YIG.js → ui-input.entry-GTNQJCQ2.js} +2 -2
  255. package/dist/ui-menu-item.entry-2HWOGUO5.js +22 -0
  256. package/dist/{ui-menu.entry-IT3GW5TL.js → ui-menu.entry-NZ7ER54K.js} +22 -14
  257. package/dist/ui-multi-combobox.entry-DZ5LLSVQ.js +167 -0
  258. package/dist/{ui-popover.entry-ZQQB4N6E.js → ui-popover.entry-ZOEQMUWG.js} +17 -11
  259. package/dist/{ui-radio-group.entry-V7PCTS7I.js → ui-radio-group.entry-QCQ46EK5.js} +2 -2
  260. package/dist/{ui-radio.entry-JYH6TQBI.js → ui-radio.entry-QAATWUYT.js} +20 -8
  261. package/dist/{ui-search-result-row.entry-JBNYXXUN.js → ui-search-result-row.entry-2I3DH2OT.js} +2 -2
  262. package/dist/{ui-search-shell.entry-TEAWE76O.js → ui-search-shell.entry-7RS55ORF.js} +2 -2
  263. package/dist/{ui-select.entry-F3A6TE2U.js → ui-select.entry-6O4KD4G7.js} +2 -2
  264. package/dist/{ui-switch.entry-MJIICMP2.js → ui-switch.entry-DY5PSHCQ.js} +23 -11
  265. package/dist/{ui-tabs.entry-6REFIUHV.js → ui-tabs.entry-6X56UOUE.js} +14 -10
  266. package/dist/{ui-textarea.entry-OJTXCED7.js → ui-textarea.entry-RDYP6O77.js} +2 -2
  267. package/dist/{ui-toast-region.entry-NOFXLKPS.js → ui-toast-region.entry-EBY42KS5.js} +32 -23
  268. package/dist/{ui-tooltip.entry-COWTWVHX.js → ui-tooltip.entry-PLXMPOKV.js} +19 -12
  269. package/dist/{ui-top-bar.entry-PIAWXJNV.js → ui-top-bar.entry-QKE2DLVD.js} +2 -2
  270. package/dist/ui-tree-item.entry-TC6YWIC6.js +145 -0
  271. package/dist/{ui-tree.entry-XYI3ZFAZ.js → ui-tree.entry-UL6UHCUT.js} +114 -12
  272. package/editor/{chunk-QCOYOVQL.js → chunk-B5WVJOPV.js} +113 -97
  273. package/editor/extensions/index.d.ts +14 -6
  274. package/editor/extensions/index.js +1 -1
  275. package/editor/index.js +1 -1
  276. package/editor.css +37 -20
  277. package/package.json +1 -1
  278. package/styles.css +10 -0
  279. package/tokens.css +3 -0
  280. package/vue/{chunk-JLW23USW.js → chunk-GXQY27K2.js} +112 -17
  281. package/vue/editor/index.d.ts +5 -15
  282. package/vue/editor/index.js +1 -1
  283. package/vue/index.d.ts +442 -116
  284. package/vue/index.js +9 -1
  285. package/dist/components/p-CaietZcq.js +0 -1
  286. package/dist/components/p-DHd18bK7.js +0 -1
  287. package/dist/looma/p-14c081cf.entry.js +0 -1
  288. package/dist/looma/p-25366205.entry.js +0 -1
  289. package/dist/looma/p-2e3aa869.entry.js +0 -1
  290. package/dist/looma/p-40fe7fee.entry.js +0 -1
  291. package/dist/looma/p-446cda76.entry.js +0 -1
  292. package/dist/looma/p-4fc1b005.entry.js +0 -13
  293. package/dist/looma/p-6a8a4736.entry.js +0 -1
  294. package/dist/looma/p-6bf4038b.entry.js +0 -1
  295. package/dist/looma/p-8204fee6.entry.js +0 -1
  296. package/dist/looma/p-8238e0dc.entry.js +0 -1
  297. package/dist/looma/p-99d88efb.entry.js +0 -1
  298. package/dist/looma/p-a27669b1.entry.js +0 -1
  299. package/dist/looma/p-a6ee76b7.entry.js +0 -1
  300. package/dist/looma/p-b6398a6b.entry.js +0 -1
  301. package/dist/looma/p-d50faaff.entry.js +0 -1
  302. package/dist/looma/p-d77278ce.entry.js +0 -1
  303. package/dist/looma/p-d9ec13b7.entry.js +0 -1
  304. package/dist/looma/p-ecf8005f.entry.js +0 -1
  305. package/dist/ui-avatar-group.entry-TAXJRIIU.js +0 -59
  306. package/dist/ui-badge.entry-MZFYNBMJ.js +0 -22
  307. package/dist/ui-form-field.entry-7ZCMEHPY.js +0 -67
  308. package/dist/ui-menu-item.entry-HFTWG62N.js +0 -22
  309. package/dist/ui-tree-item.entry-BSEWNL2O.js +0 -389
@@ -0,0 +1,196 @@
1
+ import { Host, h } from "@stencil/core";
2
+ import { controlledOrDefault, isControlled } from "../../utils/controlled-state";
3
+ /** Swaps an explicit presentation trigger for a focused editing control. */
4
+ export class UIEditable {
5
+ host;
6
+ /** Controlled edit state. Omit it to use defaultEdit and local interaction state. */
7
+ edit;
8
+ defaultEdit = false;
9
+ disabled = false;
10
+ editChange;
11
+ internalEdit = false;
12
+ trigger = null;
13
+ syncFromProp() {
14
+ if (isControlled(this.edit))
15
+ this.internalEdit = this.edit;
16
+ }
17
+ componentWillLoad() {
18
+ this.internalEdit = controlledOrDefault(this.edit, this.defaultEdit);
19
+ }
20
+ componentDidLoad() {
21
+ this.host.ownerDocument.addEventListener('pointerdown', this.onDocumentPointerDown, true);
22
+ }
23
+ disconnectedCallback() {
24
+ this.host.ownerDocument.removeEventListener('pointerdown', this.onDocumentPointerDown, true);
25
+ }
26
+ requestEdit(next, reason, trigger) {
27
+ if (this.disabled || this.internalEdit === next)
28
+ return;
29
+ if (!isControlled(this.edit))
30
+ this.internalEdit = next;
31
+ this.editChange.emit({ edit: next, reason, trigger });
32
+ if (next)
33
+ requestAnimationFrame(() => this.focusEditor());
34
+ else
35
+ requestAnimationFrame(() => this.trigger?.focus());
36
+ }
37
+ focusEditor() {
38
+ const editRoot = this.host.querySelector('[slot="edit"]');
39
+ const candidate = editRoot?.matches('input, textarea, select, button, [tabindex], ui-combobox, ui-multi-combobox')
40
+ ? editRoot
41
+ : editRoot?.querySelector('input, textarea, select, button, [tabindex], ui-combobox, ui-multi-combobox');
42
+ const focusInput = candidate?.focusInput;
43
+ if (typeof focusInput === 'function')
44
+ void focusInput.call(candidate);
45
+ else
46
+ candidate?.focus();
47
+ }
48
+ eventTrigger(event) {
49
+ return event.composedPath().find(node => node instanceof HTMLElement && node.hasAttribute('data-ui-editable-trigger'));
50
+ }
51
+ onClick = (event) => {
52
+ if (this.internalEdit || this.disabled)
53
+ return;
54
+ const trigger = this.eventTrigger(event);
55
+ if (!trigger)
56
+ return;
57
+ this.trigger = trigger;
58
+ this.requestEdit(true, 'activate', 'pointer');
59
+ };
60
+ onKeyDown = (event) => {
61
+ if (this.internalEdit && event.key === 'Escape') {
62
+ event.preventDefault();
63
+ event.stopPropagation();
64
+ this.requestEdit(false, 'escape', 'keyboard');
65
+ return;
66
+ }
67
+ if (this.internalEdit || !['Enter', ' '].includes(event.key))
68
+ return;
69
+ const trigger = this.eventTrigger(event);
70
+ if (!trigger)
71
+ return;
72
+ event.preventDefault();
73
+ this.trigger = trigger;
74
+ this.requestEdit(true, 'activate', 'keyboard');
75
+ };
76
+ onDocumentPointerDown = (event) => {
77
+ if (!this.internalEdit || event.composedPath().includes(this.host))
78
+ return;
79
+ this.requestEdit(false, 'light-dismiss', 'pointer');
80
+ };
81
+ render() {
82
+ return h(Host, { key: 'f350400d4ebf897fb657b83b7cba9d309c5067bd', "data-edit": this.internalEdit ? '' : undefined, "data-disabled": this.disabled ? '' : undefined, onClick: this.onClick, onKeyDown: this.onKeyDown }, h("div", { key: 'f365ac61f59e9aaa1516121e3d6e2a42187e1d7b', part: "preview", hidden: this.internalEdit }, h("slot", { key: 'ea234b437cc4eb530f2994d695429be91d874ef7', name: "preview" })), h("div", { key: 'dacf0e74e72c47868986c80aaa60f55942fd9505', part: "edit", hidden: !this.internalEdit }, h("slot", { key: '54a943bc290335181a23b4cfa6055e4acfd8a62b', name: "edit" })));
83
+ }
84
+ static get is() { return "ui-editable"; }
85
+ static get encapsulation() { return "shadow"; }
86
+ static get originalStyleUrls() {
87
+ return {
88
+ "$": ["ui-editable.css"]
89
+ };
90
+ }
91
+ static get styleUrls() {
92
+ return {
93
+ "$": ["ui-editable.css"]
94
+ };
95
+ }
96
+ static get properties() {
97
+ return {
98
+ "edit": {
99
+ "type": "boolean",
100
+ "mutable": false,
101
+ "complexType": {
102
+ "original": "boolean",
103
+ "resolved": "boolean",
104
+ "references": {}
105
+ },
106
+ "required": false,
107
+ "optional": true,
108
+ "docs": {
109
+ "tags": [],
110
+ "text": "Controlled edit state. Omit it to use defaultEdit and local interaction state."
111
+ },
112
+ "getter": false,
113
+ "setter": false,
114
+ "reflect": false,
115
+ "attribute": "edit"
116
+ },
117
+ "defaultEdit": {
118
+ "type": "boolean",
119
+ "mutable": false,
120
+ "complexType": {
121
+ "original": "boolean",
122
+ "resolved": "boolean",
123
+ "references": {}
124
+ },
125
+ "required": false,
126
+ "optional": false,
127
+ "docs": {
128
+ "tags": [],
129
+ "text": ""
130
+ },
131
+ "getter": false,
132
+ "setter": false,
133
+ "reflect": false,
134
+ "attribute": "default-edit",
135
+ "defaultValue": "false"
136
+ },
137
+ "disabled": {
138
+ "type": "boolean",
139
+ "mutable": false,
140
+ "complexType": {
141
+ "original": "boolean",
142
+ "resolved": "boolean",
143
+ "references": {}
144
+ },
145
+ "required": false,
146
+ "optional": false,
147
+ "docs": {
148
+ "tags": [],
149
+ "text": ""
150
+ },
151
+ "getter": false,
152
+ "setter": false,
153
+ "reflect": false,
154
+ "attribute": "disabled",
155
+ "defaultValue": "false"
156
+ }
157
+ };
158
+ }
159
+ static get states() {
160
+ return {
161
+ "internalEdit": {}
162
+ };
163
+ }
164
+ static get events() {
165
+ return [{
166
+ "method": "editChange",
167
+ "name": "edit-change",
168
+ "bubbles": true,
169
+ "cancelable": true,
170
+ "composed": true,
171
+ "docs": {
172
+ "tags": [],
173
+ "text": ""
174
+ },
175
+ "complexType": {
176
+ "original": "EditableChange",
177
+ "resolved": "EditableChange",
178
+ "references": {
179
+ "EditableChange": {
180
+ "location": "import",
181
+ "path": "../../field/editable",
182
+ "id": "src/field/editable.ts::EditableChange",
183
+ "referenceLocation": "EditableChange"
184
+ }
185
+ }
186
+ }
187
+ }];
188
+ }
189
+ static get elementRef() { return "host"; }
190
+ static get watchers() {
191
+ return [{
192
+ "propName": "edit",
193
+ "methodName": "syncFromProp"
194
+ }];
195
+ }
196
+ }
@@ -4,7 +4,7 @@ export class UIFloatingActionButton {
4
4
  mobileOnly = false;
5
5
  label = '';
6
6
  render() {
7
- return (h(Host, { key: 'c9a7d8c9b6d6608566b21621a73d939f372c830d', "data-disabled": this.disabled ? '' : undefined }, h("button", { key: '8eddccaf6be2f028bc02df967038843120045b84', type: "button", "aria-label": this.label || undefined, disabled: this.disabled }, h("slot", { key: '0ea12efb9cb8ecec06238066827a734fb3b01e1e' }))));
7
+ return (h(Host, { key: '9e917e07efcef5c0a96b8b09af8934f336a521bd', "data-disabled": this.disabled ? '' : undefined }, h("button", { key: '940daac4c2ff1144d7e82b36727205f286325a8e', type: "button", "aria-label": this.label || undefined, disabled: this.disabled }, h("slot", { key: '382c70aa4836f6e799f98e1f0e4bc6e3104430fc' }))));
8
8
  }
9
9
  static get is() { return "ui-floating-action-button"; }
10
10
  static get encapsulation() { return "shadow"; }
@@ -5,17 +5,62 @@ export class UIFormField {
5
5
  invalid = false;
6
6
  disabled = false;
7
7
  required = false;
8
+ observer = null;
9
+ activeInput = null;
10
+ ownedDescriptionIds = new Set();
11
+ wireQueued = false;
8
12
  componentDidLoad() {
13
+ this.observer = new MutationObserver(this.scheduleWire);
14
+ this.observer.observe(this.host, {
15
+ childList: true,
16
+ subtree: true,
17
+ attributes: true,
18
+ attributeFilter: ['aria-describedby', 'data-slot', 'id', 'role'],
19
+ });
9
20
  this.wire();
10
21
  }
11
22
  componentDidUpdate() {
12
- this.wire();
23
+ this.scheduleWire();
24
+ }
25
+ disconnectedCallback() {
26
+ this.observer?.disconnect();
27
+ this.observer = null;
28
+ this.removeOwnedDescriptions(this.activeInput);
29
+ this.activeInput = null;
30
+ this.ownedDescriptionIds.clear();
13
31
  }
32
+ descriptionIds(input) {
33
+ return Array.from(new Set((input.getAttribute('aria-describedby') ?? '').split(/\s+/).filter(Boolean)));
34
+ }
35
+ removeOwnedDescriptions(input) {
36
+ if (!input || this.ownedDescriptionIds.size === 0)
37
+ return;
38
+ const remaining = this.descriptionIds(input)
39
+ .filter(id => !this.ownedDescriptionIds.has(id));
40
+ if (remaining.length > 0)
41
+ input.setAttribute('aria-describedby', remaining.join(' '));
42
+ else
43
+ input.removeAttribute('aria-describedby');
44
+ }
45
+ scheduleWire = () => {
46
+ if (this.wireQueued)
47
+ return;
48
+ this.wireQueued = true;
49
+ queueMicrotask(() => {
50
+ this.wireQueued = false;
51
+ this.wire();
52
+ });
53
+ };
14
54
  wire() {
15
55
  const label = this.host.querySelector('label');
16
56
  const input = this.host.querySelector('input, textarea, select');
17
57
  const help = this.host.querySelector('[data-slot="help"]');
18
58
  const error = this.host.querySelector('[data-slot="error"], [role="alert"]');
59
+ if (input !== this.activeInput) {
60
+ this.removeOwnedDescriptions(this.activeInput);
61
+ this.activeInput = input;
62
+ this.ownedDescriptionIds.clear();
63
+ }
19
64
  if (!input)
20
65
  return;
21
66
  if (!input.id) {
@@ -24,6 +69,9 @@ export class UIFormField {
24
69
  if (label && !label.getAttribute('for')) {
25
70
  label.setAttribute('for', input.id);
26
71
  }
72
+ const previousOwnedIds = this.ownedDescriptionIds;
73
+ const externalIds = this.descriptionIds(input)
74
+ .filter(id => !previousOwnedIds.has(id));
27
75
  const describedIds = [];
28
76
  if (help) {
29
77
  if (!help.id)
@@ -35,15 +83,22 @@ export class UIFormField {
35
83
  error.id = createId('form-field-error');
36
84
  describedIds.push(error.id);
37
85
  }
38
- if (describedIds.length) {
39
- input.setAttribute('aria-describedby', describedIds.join(' '));
86
+ const nextOwnedIds = describedIds.filter(id => !externalIds.includes(id));
87
+ const nextDescribedIds = Array.from(new Set([...externalIds, ...describedIds]));
88
+ const nextDescribedBy = nextDescribedIds.join(' ');
89
+ if (input.getAttribute('aria-describedby') !== nextDescribedBy) {
90
+ if (nextDescribedBy)
91
+ input.setAttribute('aria-describedby', nextDescribedBy);
92
+ else
93
+ input.removeAttribute('aria-describedby');
40
94
  }
95
+ this.ownedDescriptionIds = new Set(nextOwnedIds);
41
96
  input.disabled = this.disabled;
42
97
  input.required = this.required;
43
98
  input.setAttribute('aria-invalid', this.invalid ? 'true' : 'false');
44
99
  }
45
100
  render() {
46
- return (h(Host, { key: 'cdd06c6b16ac56f3547e64e7888d8766243392db', "data-invalid": this.invalid ? '' : undefined, "data-disabled": this.disabled ? '' : undefined, "data-required": this.required ? '' : undefined }, h("slot", { key: '7d545673a3485f8beee01b13ab56185b98ba8856' })));
101
+ return (h(Host, { key: 'ac01e2be489b9c907169417dc5064061bd74ff7c', "data-invalid": this.invalid ? '' : undefined, "data-disabled": this.disabled ? '' : undefined, "data-required": this.required ? '' : undefined }, h("slot", { key: 'c739f9b2c948bc1d3db4316871c2293bf75cf520', onSlotchange: this.scheduleWire })));
47
102
  }
48
103
  static get is() { return "ui-form-field"; }
49
104
  static get encapsulation() { return "shadow"; }
@@ -7,7 +7,7 @@ export class UIIconButton {
7
7
  /** Reveals this control through a surrounding ui-affordance-scope. */
8
8
  anticipatory = false;
9
9
  render() {
10
- return (h(Host, { key: '8616d7e52a03a7a42738b11f4cabed3eb38c8640', "data-disabled": this.disabled ? '' : undefined, "data-ui-affordance": this.anticipatory ? 'button' : undefined }, h("button", { key: 'fae1362a50a0d80e2fcb3ab41f63ff21cf5d939a', type: "button", "aria-label": this.label || undefined, disabled: this.disabled }, h("slot", { key: 'e548fc504e3b26e85263fe3fc8faac0887fee16b' }))));
10
+ return (h(Host, { key: '225e147d184109d39a2e6f9236ba3ba3c5864c31', "data-disabled": this.disabled ? '' : undefined, "data-ui-affordance": this.anticipatory ? 'button' : undefined }, h("button", { key: '7e54fab4520ae6641c974abf19e975e8eec7a3df', type: "button", "aria-label": this.label || undefined, disabled: this.disabled }, h("slot", { key: '54f9ba27c5a2ca896267f07ad1055907e74a64bc' }))));
11
11
  }
12
12
  static get is() { return "ui-icon-button"; }
13
13
  static get encapsulation() { return "shadow"; }
@@ -70,7 +70,7 @@ export class UIInput {
70
70
  });
71
71
  };
72
72
  render() {
73
- return (h(Host, { key: 'a2f2c108144a7acae0dfb1bef6ea1f38a4dcca9c', "data-invalid": this.invalid ? '' : undefined }, h("slot", { key: '04284765a12089a8a1045056d72551a3494f00fc', ref: (el) => (this.slotRef = el) })));
73
+ return (h(Host, { key: '0d8676e8458476681653ef4600dcb0f3b56d1ed1', "data-invalid": this.invalid ? '' : undefined }, h("slot", { key: 'd3585c07b6985d9090002f7a9c0eea1227517e0f', ref: (el) => (this.slotRef = el) })));
74
74
  }
75
75
  static get is() { return "ui-input"; }
76
76
  static get encapsulation() { return "shadow"; }
@@ -2,14 +2,25 @@
2
2
  --ui-menu-viewport-gap: var(--ui-space-2, 0.5rem);
3
3
  display: flex;
4
4
  flex-direction: column;
5
+ box-sizing: border-box;
5
6
  inline-size: max-content;
6
7
  min-inline-size: min(12rem, calc(100vw - (var(--ui-menu-viewport-gap) * 2)));
7
8
  max-inline-size: calc(100vw - (var(--ui-menu-viewport-gap) * 2));
9
+ padding: 0;
10
+ border: 0;
11
+ border-radius: 0;
12
+ background: transparent;
13
+ box-shadow: var(--ui-shadow-lg);
14
+ }
15
+
16
+ .menu__surface {
17
+ display: flex;
18
+ flex-direction: column;
19
+ box-sizing: border-box;
8
20
  padding: var(--ui-space-1);
9
21
  background: var(--ui-surface-elevated);
10
22
  border: 1px solid var(--ui-border-default);
11
23
  border-radius: var(--ui-radius-3);
12
- box-shadow: var(--ui-shadow-lg);
13
24
  }
14
25
 
15
26
  :host(:not([data-open])) {
@@ -54,26 +65,4 @@
54
65
  ::slotted(ui-menu-item) {
55
66
  display: block;
56
67
  width: 100%;
57
- padding: var(--ui-space-2) var(--ui-space-3);
58
- text-align: left;
59
- background: none;
60
- border: none;
61
- border-radius: var(--ui-radius-2);
62
- color: var(--ui-text-primary);
63
- font-size: var(--ui-font-size-md);
64
- font-weight: var(--ui-font-medium, 500);
65
- cursor: pointer;
66
- transition:
67
- background-color var(--ui-motion-fast) var(--ui-motion-ease),
68
- color var(--ui-motion-fast) var(--ui-motion-ease);
69
- }
70
-
71
- ::slotted(ui-menu-item:hover:not([aria-disabled='true']):not([disabled])) {
72
- background: var(--ui-surface-subtle);
73
- }
74
-
75
- ::slotted(ui-menu-item[aria-disabled='true']),
76
- ::slotted(ui-menu-item[disabled]) {
77
- opacity: 0.6;
78
- cursor: not-allowed;
79
68
  }
@@ -2,10 +2,12 @@ import { Host, h } from "@stencil/core";
2
2
  import { eventToTrigger } from "../../utils/events";
3
3
  import { dispatchDetail } from "../../utils/events";
4
4
  import { closeOverlay, openOverlay, requestTopOverlayClose } from "../../overlay/manager";
5
+ import { controlledOrDefault, isControlled } from "../../utils/controlled-state";
5
6
  import { createAnchoredSurface, } from "../../overlay/positioning";
6
7
  export class UIMenu {
7
8
  host;
8
- open = false;
9
+ /** Controlled open state. Omit it to use defaultOpen and local interaction state. */
10
+ open;
9
11
  defaultOpen = false;
10
12
  /** Id of the control that anchors this menu in the top layer. */
11
13
  for;
@@ -16,7 +18,8 @@ export class UIMenu {
16
18
  anchor = null;
17
19
  surface = null;
18
20
  syncFromProp() {
19
- this.internalOpen = this.open;
21
+ if (isControlled(this.open))
22
+ this.internalOpen = this.open;
20
23
  }
21
24
  resetSurface() {
22
25
  this.setupSurface();
@@ -43,8 +46,7 @@ export class UIMenu {
43
46
  }
44
47
  }
45
48
  componentDidLoad() {
46
- this.syncFromProp();
47
- this.internalOpen = this.internalOpen || this.defaultOpen;
49
+ this.internalOpen = controlledOrDefault(this.open, this.defaultOpen);
48
50
  this.host.addEventListener('click', this.onItemClick);
49
51
  this.host.addEventListener('keydown', this.onKeydown);
50
52
  this.setupSurface();
@@ -77,7 +79,8 @@ export class UIMenu {
77
79
  closeMenu(reason, trigger) {
78
80
  if (!this.internalOpen)
79
81
  return;
80
- this.internalOpen = false;
82
+ if (!isControlled(this.open))
83
+ this.internalOpen = false;
81
84
  dispatchDetail(this.host, 'close', {
82
85
  open: false,
83
86
  reason: reason,
@@ -108,7 +111,8 @@ export class UIMenu {
108
111
  reason: 'action',
109
112
  trigger: eventToTrigger(e),
110
113
  });
111
- this.internalOpen = false;
114
+ if (!isControlled(this.open))
115
+ this.internalOpen = false;
112
116
  };
113
117
  onKeydown = (e) => {
114
118
  if (e.key === 'Escape') {
@@ -131,7 +135,8 @@ export class UIMenu {
131
135
  reason: 'action',
132
136
  trigger: 'keyboard',
133
137
  });
134
- this.internalOpen = false;
138
+ if (!isControlled(this.open))
139
+ this.internalOpen = false;
135
140
  }
136
141
  return;
137
142
  }
@@ -148,7 +153,7 @@ export class UIMenu {
148
153
  }
149
154
  };
150
155
  render() {
151
- return (h(Host, { key: '25ae79e914820dfc470fa03d8c843646c3c060d9', role: "menu", "aria-orientation": "vertical", "data-open": this.internalOpen ? '' : undefined }, h("slot", { key: 'b3a8b130e55610d948bc3e4603dede59dd560d05' })));
156
+ return (h(Host, { key: 'afba5a7f63238afdb6f71a3636c1f294d3e8ac6f', role: "menu", "aria-orientation": "vertical", "data-open": this.internalOpen ? '' : undefined }, h("div", { key: '50d770efd27dddca436b804f10f1cc40bc604cb5', class: "menu__surface" }, h("slot", { key: '5014fc43a0ee2d66168bbcc1d52b20bd5120acb9' }))));
152
157
  }
153
158
  static get is() { return "ui-menu"; }
154
159
  static get encapsulation() { return "shadow"; }
@@ -173,16 +178,15 @@ export class UIMenu {
173
178
  "references": {}
174
179
  },
175
180
  "required": false,
176
- "optional": false,
181
+ "optional": true,
177
182
  "docs": {
178
183
  "tags": [],
179
- "text": ""
184
+ "text": "Controlled open state. Omit it to use defaultOpen and local interaction state."
180
185
  },
181
186
  "getter": false,
182
187
  "setter": false,
183
188
  "reflect": false,
184
- "attribute": "open",
185
- "defaultValue": "false"
189
+ "attribute": "open"
186
190
  },
187
191
  "defaultOpen": {
188
192
  "type": "boolean",
@@ -1,6 +1,12 @@
1
1
  :host {
2
2
  display: block;
3
3
  width: 100%;
4
+ }
5
+
6
+ .menu-item__surface {
7
+ display: block;
8
+ box-sizing: border-box;
9
+ width: 100%;
4
10
  padding: var(--ui-space-2) var(--ui-space-3);
5
11
  text-align: left;
6
12
  background: none;
@@ -15,12 +21,12 @@
15
21
  color var(--ui-motion-fast) var(--ui-motion-ease);
16
22
  }
17
23
 
18
- :host(:hover:not([aria-disabled='true']):not([disabled])) {
24
+ :host(:hover:not([aria-disabled='true']):not([disabled])) .menu-item__surface {
19
25
  background: var(--ui-surface-subtle);
20
26
  }
21
27
 
22
- :host([aria-disabled='true']),
23
- :host([disabled]) {
28
+ :host([aria-disabled='true']) .menu-item__surface,
29
+ :host([disabled]) .menu-item__surface {
24
30
  opacity: 0.6;
25
31
  cursor: not-allowed;
26
32
  }
@@ -3,7 +3,7 @@ export class UIMenuItem {
3
3
  disabled = false;
4
4
  value = '';
5
5
  render() {
6
- return (h(Host, { key: 'ebd7c5aa5c8fdce2d2349aef7f1a4505b9190852', role: "menuitem", tabIndex: this.disabled ? -1 : 0, "aria-disabled": this.disabled ? 'true' : undefined, "data-value": this.value || undefined }, h("slot", { key: '7b55a8545034b055f8cbd047a0f16ea729af097e' })));
6
+ return (h(Host, { key: '711e7f70268d23969e40073cd47b065afadc22c9', role: "menuitem", tabIndex: this.disabled ? -1 : 0, "aria-disabled": this.disabled ? 'true' : undefined, "data-value": this.value || undefined }, h("span", { key: 'd0c0aff983bdbc48666fcd652b39340bfd92c790', class: "menu-item__surface" }, h("slot", { key: '3fc6111848142b388529a9cdb5f6134bffe8fa42' }))));
7
7
  }
8
8
  static get is() { return "ui-menu-item"; }
9
9
  static get encapsulation() { return "shadow"; }
@@ -0,0 +1,29 @@
1
+ :host { display: block; min-inline-size: 0; color: var(--ui-text-primary); font: inherit; }
2
+ ui-combobox::part(field) {
3
+ flex-wrap: wrap;
4
+ align-items: center;
5
+ gap: var(--ui-space-1);
6
+ min-block-size: var(--ui-multi-combobox-min-block-size, 2.5rem);
7
+ padding: var(--ui-space-1);
8
+ }
9
+ ui-combobox::part(input) {
10
+ flex: 1 0 var(--ui-multi-combobox-input-min-inline-size, 5rem);
11
+ width: auto;
12
+ min-block-size: 1.75rem;
13
+ padding: var(--ui-space-0-5) var(--ui-space-1);
14
+ }
15
+ .items { display: contents; }
16
+ .item {
17
+ appearance: none;
18
+ display: inline-flex;
19
+ max-inline-size: 100%;
20
+ padding: 0;
21
+ border: 0;
22
+ border-radius: var(--ui-radius-1);
23
+ background: transparent;
24
+ color: inherit;
25
+ font: inherit;
26
+ cursor: default;
27
+ }
28
+ .item:focus-visible { outline: 2px solid var(--ui-focus-ring); outline-offset: 1px; }
29
+ .item:disabled { opacity: .6; }