@threadlabs/looma 0.42.0 → 0.43.1

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 (272) hide show
  1. package/components/ui-action-bar/ui-action-bar.html +1 -7
  2. package/components/ui-affordance-scope/ui-affordance-scope.html +4 -4
  3. package/components/ui-avatar/ui-avatar.html +0 -22
  4. package/components/ui-avatar-group/ui-avatar-group.html +1 -11
  5. package/components/ui-badge/ui-badge.html +57 -78
  6. package/components/ui-button/ui-button.html +36 -81
  7. package/components/ui-callout/ui-callout.html +30 -68
  8. package/components/ui-card/ui-card.html +47 -21
  9. package/components/ui-checkbox/ui-checkbox.html +1 -15
  10. package/components/ui-cluster/ui-cluster.html +1 -7
  11. package/components/ui-combobox/ui-combobox.html +7 -70
  12. package/components/ui-container/ui-container.html +2 -12
  13. package/components/ui-context-menu/ui-context-menu.html +1 -23
  14. package/components/ui-dialog/ui-dialog.html +1 -31
  15. package/components/ui-disclosure/ui-disclosure.html +1 -15
  16. package/components/ui-editor-mention-menu/ui-editor-mention-menu.js +3 -0
  17. package/components/ui-editor-slash-menu/ui-editor-slash-menu.js +4 -0
  18. package/components/ui-editor-table-overlay/ui-editor-table-overlay.html +3 -2
  19. package/components/ui-floating-action-button/ui-floating-action-button.html +0 -14
  20. package/components/ui-form-field/ui-form-field.html +2 -32
  21. package/components/ui-grid/ui-grid.html +1 -11
  22. package/components/ui-icon/ui-icon.html +1 -12
  23. package/components/ui-icon-button/ui-icon-button.html +52 -87
  24. package/components/ui-input/ui-input.html +5 -55
  25. package/components/ui-input-group/ui-input-group.html +1 -13
  26. package/components/ui-list/ui-list.html +0 -10
  27. package/components/ui-list-item/ui-list-item.html +1 -19
  28. package/components/ui-listbox/ui-listbox.html +0 -21
  29. package/components/ui-menu/ui-menu.html +0 -22
  30. package/components/ui-menu-item/ui-menu-item.html +0 -26
  31. package/components/ui-meter/ui-meter.html +11 -6
  32. package/components/ui-nav-item/ui-nav-item.html +0 -18
  33. package/components/ui-popover/ui-popover.html +0 -30
  34. package/components/ui-radio/ui-radio.html +7 -13
  35. package/components/ui-radio-group/ui-radio-group.html +0 -5
  36. package/components/ui-reel/ui-reel.html +1 -11
  37. package/components/ui-search-result-row/ui-search-result-row.html +0 -34
  38. package/components/ui-search-shell/ui-search-shell.html +1 -43
  39. package/components/ui-select/ui-select.html +0 -42
  40. package/components/ui-separator/ui-separator.html +0 -6
  41. package/components/ui-sidebar/ui-sidebar.html +2 -24
  42. package/components/ui-site-header/ui-site-header.html +0 -25
  43. package/components/ui-skeleton/ui-skeleton.html +0 -9
  44. package/components/ui-stack/ui-stack.html +6 -11
  45. package/components/ui-swatch/ui-swatch.html +0 -5
  46. package/components/ui-switch/ui-switch.html +1 -15
  47. package/components/ui-switcher/ui-switcher.html +1 -11
  48. package/components/ui-tabs/ui-tabs.html +1 -19
  49. package/components/ui-text/ui-text.html +19 -6
  50. package/components/ui-textarea/ui-textarea.html +0 -50
  51. package/components/ui-toast/ui-toast.html +12 -27
  52. package/components/ui-toast-region/ui-toast-region.html +13 -34
  53. package/components/ui-tooltip/ui-tooltip.html +1 -43
  54. package/components/ui-top-bar/ui-top-bar.html +1 -31
  55. package/components/ui-tree/ui-tree.html +1 -16
  56. package/components/ui-tree-item/ui-tree-item.html +1 -23
  57. package/components/ui-tree-item/ui-tree-item.js +0 -1
  58. package/dist/index.js +1 -1
  59. package/docs/README.md +13 -11
  60. package/docs/card.html +2 -6
  61. package/docs/card.js +7 -37
  62. package/docs/catalog.json +821 -202
  63. package/docs/catalog.mjs +1 -1
  64. package/docs/customizer-render.mjs +27 -14
  65. package/docs/customizer.js +42 -9
  66. package/docs/documentation.css +3 -7
  67. package/docs/examples/ui-button/examples/08-loading.behavior.js +1 -1
  68. package/docs/examples/ui-checkbox/examples/02-checked-indeterminate-and-disabled.behavior.js +1 -1
  69. package/docs/examples/ui-editor-mention-menu/examples/00-preview.behavior.js +1 -0
  70. package/docs/examples/ui-editor-slash-menu/examples/00-preview.behavior.js +81 -0
  71. package/docs/examples/ui-editor-table-overlay/examples/00-preview.behavior.js +24 -0
  72. package/docs/examples/ui-search-shell/examples/00-preview.behavior.js +14 -0
  73. package/docs/examples/ui-search-shell/examples/02-label-dismissible-status-and-footer.behavior.js +7 -7
  74. package/docs/examples/ui-toast/examples/01-authored.behavior.js +2 -2
  75. package/docs/index.d.ts +1 -1
  76. package/docs/local-server.mjs +2 -5
  77. package/docs/palette.mjs +5 -4
  78. package/docs/pastoral.svg +54 -0
  79. package/docs/portrait.svg +15 -0
  80. package/docs/render.mjs +33 -3
  81. package/docs/site.mjs +22 -54
  82. package/docs/theme.mjs +97 -35
  83. package/docs/value-editors.mjs +2 -1
  84. package/package.json +2 -2
  85. package/styles/ui-action-bar.css +3 -11
  86. package/styles/ui-affordance-scope.css +4 -4
  87. package/styles/ui-avatar-group.css +3 -15
  88. package/styles/ui-avatar.css +2 -26
  89. package/styles/ui-badge.css +56 -80
  90. package/styles/ui-button.css +35 -83
  91. package/styles/ui-callout.css +32 -72
  92. package/styles/ui-card.css +42 -18
  93. package/styles/ui-checkbox.css +3 -19
  94. package/styles/ui-cluster.css +2 -10
  95. package/styles/ui-combobox.css +7 -140
  96. package/styles/ui-container.css +2 -14
  97. package/styles/ui-context-menu.css +3 -27
  98. package/styles/ui-dialog.css +5 -67
  99. package/styles/ui-disclosure.css +3 -19
  100. package/styles/ui-editor-table-overlay.css +2 -2
  101. package/styles/ui-floating-action-button.css +2 -18
  102. package/styles/ui-form-field.css +4 -36
  103. package/styles/ui-grid.css +2 -14
  104. package/styles/ui-icon-button.css +51 -89
  105. package/styles/ui-icon.css +3 -16
  106. package/styles/ui-input-group.css +2 -14
  107. package/styles/ui-input.css +6 -57
  108. package/styles/ui-list-item.css +3 -23
  109. package/styles/ui-list.css +2 -14
  110. package/styles/ui-listbox.css +2 -44
  111. package/styles/ui-menu-item.css +2 -30
  112. package/styles/ui-menu.css +2 -26
  113. package/styles/ui-meter.css +8 -4
  114. package/styles/ui-nav-item.css +2 -22
  115. package/styles/ui-popover.css +2 -34
  116. package/styles/ui-radio-group.css +1 -6
  117. package/styles/ui-radio.css +9 -17
  118. package/styles/ui-reel.css +2 -14
  119. package/styles/ui-search-result-row.css +2 -38
  120. package/styles/ui-search-shell.css +3 -47
  121. package/styles/ui-select.css +2 -46
  122. package/styles/ui-separator.css +2 -10
  123. package/styles/ui-sidebar.css +4 -28
  124. package/styles/ui-site-header.css +1 -26
  125. package/styles/ui-skeleton.css +2 -12
  126. package/styles/ui-stack.css +4 -12
  127. package/styles/ui-swatch.css +1 -6
  128. package/styles/ui-switch.css +3 -19
  129. package/styles/ui-switcher.css +2 -14
  130. package/styles/ui-tabs.css +3 -23
  131. package/styles/ui-text.css +10 -2
  132. package/styles/ui-textarea.css +2 -54
  133. package/styles/ui-toast-region.css +29 -73
  134. package/styles/ui-toast.css +24 -54
  135. package/styles/ui-tooltip.css +3 -47
  136. package/styles/ui-top-bar.css +3 -35
  137. package/styles/ui-tree-item.css +5 -51
  138. package/styles/ui-tree.css +3 -20
  139. package/theme-system.css +6 -2
  140. package/tokens.css +55 -21
  141. package/vanilla/UiBadge.d.ts +1 -1
  142. package/vanilla/UiBadge.js +1 -1
  143. package/vanilla/UiButton.d.ts +1 -1
  144. package/vanilla/UiButton.js +1 -1
  145. package/vanilla/UiCard.d.ts +1 -1
  146. package/vanilla/UiCard.js +1 -1
  147. package/vanilla/UiEditorTableOverlay.js +50 -36
  148. package/vanilla/UiIconButton.d.ts +1 -1
  149. package/vanilla/UiIconButton.js +1 -1
  150. package/vanilla/UiMeter.d.ts +1 -1
  151. package/vanilla/UiMeter.js +1 -1
  152. package/vanilla/UiStack.js +1 -1
  153. package/vanilla/UiText.d.ts +1 -1
  154. package/vanilla/UiText.js +1 -1
  155. package/vue/UiActionBar.vue +3 -9
  156. package/vue/UiAffordanceScope.vue +4 -4
  157. package/vue/UiAvatar.vue +1 -28
  158. package/vue/UiAvatarGroup.vue +1 -11
  159. package/vue/UiBadge.d.ts +2 -2
  160. package/vue/UiBadge.vue +84 -81
  161. package/vue/UiButton.d.ts +2 -2
  162. package/vue/UiButton.vue +78 -97
  163. package/vue/UiCallout.vue +30 -71
  164. package/vue/UiCard.d.ts +2 -2
  165. package/vue/UiCard.vue +77 -26
  166. package/vue/UiCheckbox.vue +1 -15
  167. package/vue/UiCluster.vue +1 -10
  168. package/vue/UiCombobox.vue +13 -72
  169. package/vue/UiContainer.vue +1 -13
  170. package/vue/UiContextMenu.vue +1 -30
  171. package/vue/UiDialog.vue +3 -33
  172. package/vue/UiDisclosure.vue +1 -15
  173. package/vue/UiEditorTableOverlay.d.ts +11 -1
  174. package/vue/UiEditorTableOverlay.vue +100 -65
  175. package/vue/UiFloatingActionButton.vue +0 -22
  176. package/vue/UiFormField.vue +6 -33
  177. package/vue/UiGrid.vue +1 -13
  178. package/vue/UiIcon.vue +1 -16
  179. package/vue/UiIconButton.d.ts +2 -2
  180. package/vue/UiIconButton.vue +103 -99
  181. package/vue/UiInput.vue +1 -54
  182. package/vue/UiInputGroup.vue +8 -20
  183. package/vue/UiList.vue +2 -12
  184. package/vue/UiListItem.vue +8 -26
  185. package/vue/UiListbox.vue +0 -23
  186. package/vue/UiMenu.vue +1 -23
  187. package/vue/UiMenuItem.vue +0 -26
  188. package/vue/UiMeter.d.ts +2 -2
  189. package/vue/UiMeter.vue +47 -12
  190. package/vue/UiNavItem.vue +3 -21
  191. package/vue/UiPopover.vue +1 -32
  192. package/vue/UiRadio.vue +1 -11
  193. package/vue/UiRadioGroup.vue +0 -11
  194. package/vue/UiReel.vue +1 -11
  195. package/vue/UiSearchResultRow.vue +0 -35
  196. package/vue/UiSearchShell.vue +1 -53
  197. package/vue/UiSelect.vue +0 -42
  198. package/vue/UiSeparator.vue +0 -7
  199. package/vue/UiSidebar.vue +3 -26
  200. package/vue/UiSiteHeader.vue +0 -24
  201. package/vue/UiSkeleton.vue +0 -9
  202. package/vue/UiStack.vue +6 -11
  203. package/vue/UiSwatch.vue +1 -6
  204. package/vue/UiSwitch.vue +1 -15
  205. package/vue/UiSwitcher.vue +1 -14
  206. package/vue/UiTabs.vue +1 -19
  207. package/vue/UiText.d.ts +2 -2
  208. package/vue/UiText.vue +29 -4
  209. package/vue/UiTextarea.vue +0 -50
  210. package/vue/UiToast.vue +26 -34
  211. package/vue/UiToastRegion.vue +26 -55
  212. package/vue/UiTooltip.vue +1 -43
  213. package/vue/UiTopBar.vue +1 -34
  214. package/vue/UiTree.vue +2 -17
  215. package/vue/UiTreeItem.vue +2 -28
  216. package/vue/chunks/UiActionBar.js +1 -1
  217. package/vue/chunks/UiAffordanceScope.js +1 -1
  218. package/vue/chunks/UiAvatar.js +1 -1
  219. package/vue/chunks/UiAvatarGroup.js +1 -1
  220. package/vue/chunks/UiBadge.js +4 -2
  221. package/vue/chunks/UiButton.js +4 -2
  222. package/vue/chunks/UiCallout.js +1 -1
  223. package/vue/chunks/UiCard.js +5 -3
  224. package/vue/chunks/UiCheckbox.js +1 -1
  225. package/vue/chunks/UiCluster.js +2 -2
  226. package/vue/chunks/UiCombobox.js +3 -3
  227. package/vue/chunks/UiContainer.js +2 -2
  228. package/vue/chunks/UiContextMenu.js +1 -1
  229. package/vue/chunks/UiDialog.js +1 -1
  230. package/vue/chunks/UiDisclosure.js +1 -1
  231. package/vue/chunks/UiEditorTableOverlay.js +41 -13
  232. package/vue/chunks/UiFloatingActionButton.js +1 -1
  233. package/vue/chunks/UiFormField.js +1 -1
  234. package/vue/chunks/UiGrid.js +2 -2
  235. package/vue/chunks/UiIcon.js +1 -1
  236. package/vue/chunks/UiIconButton.js +4 -2
  237. package/vue/chunks/UiInput.js +1 -1
  238. package/vue/chunks/UiInputGroup.js +1 -1
  239. package/vue/chunks/UiList.js +1 -1
  240. package/vue/chunks/UiListItem.js +1 -1
  241. package/vue/chunks/UiListbox.js +1 -1
  242. package/vue/chunks/UiMenu.js +1 -1
  243. package/vue/chunks/UiMenuItem.js +1 -1
  244. package/vue/chunks/UiMeter.js +4 -2
  245. package/vue/chunks/UiNavItem.js +1 -1
  246. package/vue/chunks/UiPopover.js +1 -1
  247. package/vue/chunks/UiRadio.js +1 -1
  248. package/vue/chunks/UiRadioGroup.js +1 -1
  249. package/vue/chunks/UiReel.js +2 -2
  250. package/vue/chunks/UiSearchResultRow.js +1 -1
  251. package/vue/chunks/UiSearchShell.js +1 -1
  252. package/vue/chunks/UiSelect.js +1 -1
  253. package/vue/chunks/UiSeparator.js +1 -1
  254. package/vue/chunks/UiSidebar.js +1 -1
  255. package/vue/chunks/UiSiteHeader.js +1 -1
  256. package/vue/chunks/UiSkeleton.js +1 -1
  257. package/vue/chunks/UiStack.js +3 -3
  258. package/vue/chunks/UiSwatch.js +1 -1
  259. package/vue/chunks/UiSwitch.js +1 -1
  260. package/vue/chunks/UiSwitcher.js +2 -2
  261. package/vue/chunks/UiTabs.js +1 -1
  262. package/vue/chunks/UiText.js +4 -2
  263. package/vue/chunks/UiTextarea.js +1 -1
  264. package/vue/chunks/UiToast.js +1 -1
  265. package/vue/chunks/UiToastRegion.js +1 -1
  266. package/vue/chunks/UiTooltip.js +1 -1
  267. package/vue/chunks/UiTopBar.js +1 -1
  268. package/vue/chunks/UiTree.js +1 -1
  269. package/vue/chunks/UiTreeItem.js +1 -1
  270. package/vue/components.css +633 -2068
  271. package/vue/editor/index.js +7 -1
  272. package/docs/preview.js +0 -22
package/vanilla/UiText.js CHANGED
@@ -30,7 +30,7 @@ let P0, P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12, P13, P14, P15, P16, P
30
30
  const S = { n: [], t: [], f: import.meta.url, g: "ui-text", b: generatedInputs };
31
31
  const A = [["span",{},[],"",[],["data-ui-text-state","data-ui-text-prop-align","data-ui-text-prop-as","data-ui-text-prop-font","data-ui-text-prop-grow","data-ui-text-prop-size","data-ui-text-prop-tone","data-ui-text-prop-trim","data-ui-text-prop-truncate","data-ui-text-prop-variant","data-ui-text-prop-weight","data-ui-text-prop-wrap"]],["div",{},[],"",[],["data-ui-text-state","data-ui-text-prop-align","data-ui-text-prop-as","data-ui-text-prop-font","data-ui-text-prop-grow","data-ui-text-prop-size","data-ui-text-prop-tone","data-ui-text-prop-trim","data-ui-text-prop-truncate","data-ui-text-prop-variant","data-ui-text-prop-weight","data-ui-text-prop-wrap"]],["small",{},[],"",[],["data-ui-text-state","data-ui-text-prop-align","data-ui-text-prop-as","data-ui-text-prop-font","data-ui-text-prop-grow","data-ui-text-prop-size","data-ui-text-prop-tone","data-ui-text-prop-trim","data-ui-text-prop-truncate","data-ui-text-prop-variant","data-ui-text-prop-weight","data-ui-text-prop-wrap"]],["strong",{},[],"",[],["data-ui-text-state","data-ui-text-prop-align","data-ui-text-prop-as","data-ui-text-prop-font","data-ui-text-prop-grow","data-ui-text-prop-size","data-ui-text-prop-tone","data-ui-text-prop-trim","data-ui-text-prop-truncate","data-ui-text-prop-variant","data-ui-text-prop-weight","data-ui-text-prop-wrap"]],["label",{},[],"",[],["data-ui-text-state","data-ui-text-prop-align","data-ui-text-prop-as","data-ui-text-prop-font","data-ui-text-prop-grow","data-ui-text-prop-size","data-ui-text-prop-tone","data-ui-text-prop-trim","data-ui-text-prop-truncate","data-ui-text-prop-variant","data-ui-text-prop-weight","data-ui-text-prop-wrap"]],["h1",{},[],"",[],["data-ui-text-state","data-ui-text-prop-align","data-ui-text-prop-as","data-ui-text-prop-font","data-ui-text-prop-grow","data-ui-text-prop-size","data-ui-text-prop-tone","data-ui-text-prop-trim","data-ui-text-prop-truncate","data-ui-text-prop-variant","data-ui-text-prop-weight","data-ui-text-prop-wrap"]],["h2",{},[],"",[],["data-ui-text-state","data-ui-text-prop-align","data-ui-text-prop-as","data-ui-text-prop-font","data-ui-text-prop-grow","data-ui-text-prop-size","data-ui-text-prop-tone","data-ui-text-prop-trim","data-ui-text-prop-truncate","data-ui-text-prop-variant","data-ui-text-prop-weight","data-ui-text-prop-wrap"]],["h3",{},[],"",[],["data-ui-text-state","data-ui-text-prop-align","data-ui-text-prop-as","data-ui-text-prop-font","data-ui-text-prop-grow","data-ui-text-prop-size","data-ui-text-prop-tone","data-ui-text-prop-trim","data-ui-text-prop-truncate","data-ui-text-prop-variant","data-ui-text-prop-weight","data-ui-text-prop-wrap"]],["h4",{},[],"",[],["data-ui-text-state","data-ui-text-prop-align","data-ui-text-prop-as","data-ui-text-prop-font","data-ui-text-prop-grow","data-ui-text-prop-size","data-ui-text-prop-tone","data-ui-text-prop-trim","data-ui-text-prop-truncate","data-ui-text-prop-variant","data-ui-text-prop-weight","data-ui-text-prop-wrap"]],["h5",{},[],"",[],["data-ui-text-state","data-ui-text-prop-align","data-ui-text-prop-as","data-ui-text-prop-font","data-ui-text-prop-grow","data-ui-text-prop-size","data-ui-text-prop-tone","data-ui-text-prop-trim","data-ui-text-prop-truncate","data-ui-text-prop-variant","data-ui-text-prop-weight","data-ui-text-prop-wrap"]],["h6",{},[],"",[],["data-ui-text-state","data-ui-text-prop-align","data-ui-text-prop-as","data-ui-text-prop-font","data-ui-text-prop-grow","data-ui-text-prop-size","data-ui-text-prop-tone","data-ui-text-prop-trim","data-ui-text-prop-truncate","data-ui-text-prop-variant","data-ui-text-prop-weight","data-ui-text-prop-wrap"]],["p",{},[],"",[],["data-ui-text-state","data-ui-text-prop-align","data-ui-text-prop-as","data-ui-text-prop-font","data-ui-text-prop-grow","data-ui-text-prop-size","data-ui-text-prop-tone","data-ui-text-prop-trim","data-ui-text-prop-truncate","data-ui-text-prop-variant","data-ui-text-prop-weight","data-ui-text-prop-wrap"]]];
32
32
  const Q = [[],[],[],[],[],[],[],[],[],[],[],[]];
33
- const D = { g: "ui-text", props: { "align": { "required":false,"values":["start","center"],"default":"start", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] }, "as": { "required":false,"values":["p","span","div","small","strong","label","h1","h2","h3","h4","h5","h6"],"default":"p", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] }, "font": { "required":false,"values":["inherit","sans"],"default":"inherit", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] }, "grow": { "required":false,"default":false, c: checkBoolean, t: "boolean", j: 0, m: "b" }, "size": { "required":false,"values":["inherit","xs","sm","md","lg"],"default":"inherit", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] }, "tone": { "required":false,"values":["default","secondary","muted","accent","danger","success","info","warning"],"default":"default", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] }, "trim": { "required":false,"default":false, c: checkBoolean, t: "boolean", j: 0, m: "b" }, "truncate": { "required":false,"default":false, c: checkBoolean, t: "boolean", j: 0, m: "b" }, "variant": { "required":false,"values":["body","display","heading","label","caption","eyebrow","code"],"default":"body", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] }, "weight": { "required":false,"values":["inherit","normal","medium","semibold"],"default":"inherit", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] }, "wrap": { "required":false,"values":["normal","anywhere"],"default":"normal", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] } } };
33
+ const D = { g: "ui-text", props: { "align": { "required":false,"values":["start","center"],"default":"start", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] }, "as": { "required":false,"values":["p","span","div","small","strong","label","h1","h2","h3","h4","h5","h6"],"default":"p", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] }, "font": { "required":false,"values":["inherit","sans"],"default":"inherit", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] }, "grow": { "required":false,"default":false, c: checkBoolean, t: "boolean", j: 0, m: "b" }, "size": { "required":false,"values":["inherit","xs","sm","md","lg"],"default":"inherit", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] }, "tone": { "required":false,"values":["default","secondary","muted","accent","accent-secondary","accent-tertiary","danger","success","info","warning"],"default":"default", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] }, "trim": { "required":false,"default":false, c: checkBoolean, t: "boolean", j: 0, m: "b" }, "truncate": { "required":false,"default":false, c: checkBoolean, t: "boolean", j: 0, m: "b" }, "variant": { "required":false,"values":["body","display","heading","label","caption","eyebrow","code"],"default":"body", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] }, "weight": { "required":false,"values":["inherit","normal","medium","semibold"],"default":"inherit", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] }, "wrap": { "required":false,"values":["normal","anywhere"],"default":"normal", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] } } };
34
34
 
35
35
  export function createUiText(options = {}, html) {
36
36
  const { attributes = {}, children = [], slots = {}, ...componentProps } = options;
@@ -22,15 +22,9 @@ checkHydratedRoot('div', 'ui-action-bar')
22
22
  </template>
23
23
 
24
24
  <style scoped>
25
- /* This component's hooks style the element they are set on, and never a nested one. */
26
- @property --ui-action-bar-gap {
27
- syntax: "*";
28
- inherits: false;
29
- }
30
-
31
25
  /* The action row of a form or dialog. Tertiary actions (Back, Cancel, Discard) sit at the start
32
- edge; secondary actions (Save as draft, Preview) sit just before the primary one, which ends the
33
- row. The bar arranges its actions and leaves their look to them. */
26
+ edge; secondary actions (Save as draft, Preview) sit just before the primary one, which ends the
27
+ row. The bar arranges its actions and leaves their look to them. */
34
28
 
35
29
  /* The tertiary group takes the spare space, pushing the rest to the end edge; without it, the
36
30
  rest still ends the row. */
@@ -42,7 +36,7 @@ checkHydratedRoot('div', 'ui-action-bar')
42
36
 
43
37
  @scope (.ui-action-bar) to ([data-hn]) {
44
38
  :global(:scope:where([data-hn-ui-action-bar])) {
45
- /* Hooks do not inherit, so the parts below read them from the root. */
39
+ /* Resolve shared part values at the component root. */
46
40
  --_ui-action-bar-gap: var(--ui-action-bar-gap);
47
41
 
48
42
  --_gap: var(--ui-space-2);
@@ -166,14 +166,14 @@ useComponentHost(() => import('../components/ui-affordance-scope/ui-affordance-s
166
166
  @scope (.ui-affordance-scope) to ([data-hn]) {
167
167
  :global(:scope:where([data-hn-ui-affordance-scope])) {
168
168
  display: contents !important;
169
- --ui-affordance-scope-engaged: 0;
170
- --ui-affordance-scope-guide: 1;
169
+ --_ui-affordance-scope-engaged: 0;
170
+ --_ui-affordance-scope-guide: 1;
171
171
  }
172
172
  :global(:scope[data-ui-affordance-scope-state~="engaged"]:where([data-hn-ui-affordance-scope])) {
173
- --ui-affordance-scope-engaged: 1;
173
+ --_ui-affordance-scope-engaged: 1;
174
174
  }
175
175
  :global(:scope[data-ui-affordance-scope-state~="guide=none"]:where([data-hn-ui-affordance-scope])) {
176
- --ui-affordance-scope-guide: 0;
176
+ --_ui-affordance-scope-guide: 0;
177
177
  }
178
178
  :global(:scope[hidden]:where([data-hn-ui-affordance-scope])) {
179
179
  display: none !important;
package/vue/UiAvatar.vue CHANGED
@@ -299,30 +299,8 @@ useComponentHost(() => import('../components/ui-avatar/ui-avatar.js'), {
299
299
  </template>
300
300
 
301
301
  <style scoped>
302
- /* This component's hooks style the element they are set on, and never a nested one. */
303
- @property --ui-avatar-border {
304
- syntax: "*";
305
- inherits: false;
306
- }
307
- @property --ui-avatar-radius {
308
- syntax: "*";
309
- inherits: false;
310
- }
311
- @property --ui-avatar-surface {
312
- syntax: "*";
313
- inherits: false;
314
- }
315
- @property --ui-avatar-text {
316
- syntax: "*";
317
- inherits: false;
318
- }
319
- @property --ui-avatar-active-ring {
320
- syntax: "*";
321
- inherits: false;
322
- }
323
-
324
302
  /* An outline, not a dot: the avatar clips its content to the circle, and an outline is drawn
325
- outside the box, so the ring survives the clip and the overlap in an Avatar Group. */
303
+ outside the box, so the ring survives the clip and the overlap in an Avatar Group. */
326
304
 
327
305
  /* Centre the glyphs, not the line box: a label without descenders otherwise reads high. */
328
306
  /* Centre the glyphs, not the line box: a label without descenders otherwise reads high.
@@ -353,14 +331,12 @@ useComponentHost(() => import('../components/ui-avatar/ui-avatar.js'), {
353
331
  line-height: 1;
354
332
  text-transform: uppercase;
355
333
  }
356
-
357
334
  :global(:scope[data-ui-avatar-state~="size=sm"]:where([data-hn-ui-avatar])) {
358
335
  --_ui-default-icon-size: 1rem;
359
336
  inline-size: 1.75rem;
360
337
  block-size: 1.75rem;
361
338
  font-size: var(--ui-font-size-xs);
362
339
  }
363
-
364
340
  :global(:scope[data-ui-avatar-state~="size=xs"]:where([data-hn-ui-avatar])) {
365
341
  --_ui-default-icon-size: 0.75rem;
366
342
  inline-size: 1.25rem;
@@ -369,15 +345,12 @@ useComponentHost(() => import('../components/ui-avatar/ui-avatar.js'), {
369
345
  font-size: calc(var(--ui-font-size-md) * 0.5625);
370
346
  letter-spacing: 0.02em;
371
347
  }
372
-
373
348
  :global(:scope[data-ui-avatar-state~="hasImage"]:where([data-hn-ui-avatar])) {
374
349
  border-color: var(--ui-avatar-border, var(--ui-border-strong));
375
350
  }
376
-
377
351
  :global(:scope[data-ui-avatar-state~="shape=circle"]:where([data-hn-ui-avatar])) {
378
352
  box-shadow: var(--ui-shadow-sm);
379
353
  }
380
-
381
354
  :global(:scope[data-ui-avatar-state~="shape=square"]:where([data-hn-ui-avatar])) {
382
355
  border-radius: var(--ui-avatar-radius, var(--ui-radius-md));
383
356
  }
@@ -225,16 +225,6 @@ useComponentHost(() => import('../components/ui-avatar-group/ui-avatar-group.js'
225
225
  </template>
226
226
 
227
227
  <style scoped>
228
- /* This component's hooks style the element they are set on, and never a nested one. */
229
- @property --ui-avatar-group-edge-ring {
230
- syntax: "*";
231
- inherits: false;
232
- }
233
- @property --ui-avatar-group-overlap-shadow {
234
- syntax: "*";
235
- inherits: false;
236
- }
237
-
238
228
  /* Overlap and the separating shadow are applied by the controller: slotted avatars are nested
239
229
  * component roots outside this style scope. */
240
230
 
@@ -242,7 +232,7 @@ useComponentHost(() => import('../components/ui-avatar-group/ui-avatar-group.js'
242
232
 
243
233
  @scope (.ui-avatar-group) to ([data-hn]) {
244
234
  :global(:scope:where([data-hn-ui-avatar-group])) {
245
- /* Hooks do not inherit, so the parts below read them from the root. */
235
+ /* Resolve shared part values at the component root. */
246
236
  --_ui-avatar-group-overlap-shadow: var(--ui-avatar-group-overlap-shadow);
247
237
  --_ui-avatar-group-edge-ring: var(--ui-avatar-group-edge-ring);
248
238
 
package/vue/UiBadge.d.ts CHANGED
@@ -14,7 +14,7 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
14
14
  type: PropType<"xs" | "sm" | "md" | "lg" | null>;
15
15
  };
16
16
  tone: {
17
- type: PropType<"neutral" | "accent" | "info" | "success" | "warning" | "danger" | null>;
17
+ type: PropType<"neutral" | "accent" | "accent-secondary" | "accent-tertiary" | "info" | "success" | "warning" | "danger" | null>;
18
18
  };
19
19
  variant: {
20
20
  type: PropType<"solid" | "subtle" | "outline" | "inverse" | "overlay" | null>;
@@ -30,7 +30,7 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
30
30
  type: PropType<"xs" | "sm" | "md" | "lg" | null>;
31
31
  };
32
32
  tone: {
33
- type: PropType<"neutral" | "accent" | "info" | "success" | "warning" | "danger" | null>;
33
+ type: PropType<"neutral" | "accent" | "accent-secondary" | "accent-tertiary" | "info" | "success" | "warning" | "danger" | null>;
34
34
  };
35
35
  variant: {
36
36
  type: PropType<"solid" | "subtle" | "outline" | "inverse" | "overlay" | null>;
package/vue/UiBadge.vue CHANGED
@@ -42,8 +42,17 @@ const propValidityContract = {
42
42
  required: false,
43
43
  target: { attribute: 'tone' },
44
44
  description:
45
- 'Which colour the badge speaks in. neutral is a quiet grey for plain labels; accent draws the eye in the accent colour; info, success, warning, and danger\n mark a status, so match the tone to what the badge says. For a category rather than a status, set the --ui-badge-color hook on the badge instead: any CSS\n colour, which overrides the tone.',
46
- values: ['neutral', 'accent', 'info', 'success', 'warning', 'danger'],
45
+ 'Which colour the badge speaks in. neutral is a quiet grey for plain labels; accent draws the eye in the accent colour; info, success, warning, and danger\n mark a status, so match the tone to what the badge says. For a category rather than a status, set the --ui-badge-color hook on the badge instead: any CSS\n colour, which overrides the tone. Supporting brand families use accent-secondary and accent-tertiary; their usable colors derive from the theme, and unset\n families follow the primary accent.',
46
+ values: [
47
+ 'neutral',
48
+ 'accent',
49
+ 'accent-secondary',
50
+ 'accent-tertiary',
51
+ 'info',
52
+ 'success',
53
+ 'warning',
54
+ 'danger',
55
+ ],
47
56
  default: 'neutral',
48
57
  },
49
58
  variant: {
@@ -62,7 +71,15 @@ const props = defineProps({
62
71
  size: { type: null as unknown as PropType<'xs' | 'sm' | 'md' | 'lg' | null> },
63
72
  tone: {
64
73
  type: null as unknown as PropType<
65
- 'neutral' | 'accent' | 'info' | 'success' | 'warning' | 'danger' | null
74
+ | 'neutral'
75
+ | 'accent'
76
+ | 'accent-secondary'
77
+ | 'accent-tertiary'
78
+ | 'info'
79
+ | 'success'
80
+ | 'warning'
81
+ | 'danger'
82
+ | null
66
83
  >,
67
84
  },
68
85
  variant: {
@@ -113,11 +130,25 @@ const checkedProps = computed(() => {
113
130
  props['size'],
114
131
  props[BINDING_INPUTS_PROP],
115
132
  ) as 'xs' | 'sm' | 'md' | 'lg',
116
- tone: propInputs.value<'neutral' | 'accent' | 'info' | 'success' | 'warning' | 'danger' | null>(
117
- 'tone',
118
- props['tone'],
119
- props[BINDING_INPUTS_PROP],
120
- ) as 'neutral' | 'accent' | 'info' | 'success' | 'warning' | 'danger',
133
+ tone: propInputs.value<
134
+ | 'neutral'
135
+ | 'accent'
136
+ | 'accent-secondary'
137
+ | 'accent-tertiary'
138
+ | 'info'
139
+ | 'success'
140
+ | 'warning'
141
+ | 'danger'
142
+ | null
143
+ >('tone', props['tone'], props[BINDING_INPUTS_PROP]) as
144
+ | 'neutral'
145
+ | 'accent'
146
+ | 'accent-secondary'
147
+ | 'accent-tertiary'
148
+ | 'info'
149
+ | 'success'
150
+ | 'warning'
151
+ | 'danger',
121
152
  variant: propInputs.value<'solid' | 'subtle' | 'outline' | 'inverse' | 'overlay' | null>(
122
153
  'variant',
123
154
  props['variant'],
@@ -173,70 +204,8 @@ const hostState = computed(() =>
173
204
  </template>
174
205
 
175
206
  <style scoped>
176
- /* This component's hooks style the element they are set on, and never a nested one. */
177
- @property --ui-badge-border {
178
- syntax: "*";
179
- inherits: false;
180
- }
181
- @property --ui-badge-square-size {
182
- syntax: "*";
183
- inherits: false;
184
- }
185
- @property --ui-badge-circle-size {
186
- syntax: "*";
187
- inherits: false;
188
- }
189
- @property --ui-badge-circle-opacity {
190
- syntax: "*";
191
- inherits: false;
192
- }
193
- @property --ui-badge-dot-size {
194
- syntax: "*";
195
- inherits: false;
196
- }
197
- @property --ui-badge-color {
198
- syntax: "*";
199
- inherits: false;
200
- }
201
- @property --ui-badge-font-size {
202
- syntax: "*";
203
- inherits: false;
204
- }
205
- @property --ui-badge-font-weight {
206
- syntax: "*";
207
- inherits: false;
208
- }
209
- @property --ui-badge-line-height {
210
- syntax: "*";
211
- inherits: false;
212
- }
213
- @property --ui-badge-min-block-size {
214
- syntax: "*";
215
- inherits: false;
216
- }
217
- @property --ui-badge-padding-block {
218
- syntax: "*";
219
- inherits: false;
220
- }
221
- @property --ui-badge-padding-inline {
222
- syntax: "*";
223
- inherits: false;
224
- }
225
- @property --ui-badge-point {
226
- syntax: "*";
227
- inherits: false;
228
- }
229
- @property --ui-badge-surface {
230
- syntax: "*";
231
- inherits: false;
232
- }
233
- @property --ui-badge-text {
234
- syntax: "*";
235
- inherits: false;
236
- }
237
-
238
207
  /* A constrained badge keeps its surface intact and ellipsizes only its label. The full
239
- text stays in the DOM for accessible names and consumers' selected values. */
208
+ text stays in the DOM for accessible names and consumers' selected values. */
240
209
 
241
210
  /* Icon content has its own flex item so label ellipsis never clips its strokes. */
242
211
 
@@ -390,6 +359,40 @@ const hostState = computed(() =>
390
359
  line-height: var(--ui-badge-line-height, 1);
391
360
  }
392
361
 
362
+ :global(:scope[data-ui-badge-state~="tone=accent-secondary"]:where([data-hn-ui-badge])) {
363
+ --_badge-surface: var(--ui-accent-secondary-strong-surface, var(--ui-accent-secondary-solid));
364
+ --_badge-border: var(--ui-accent-secondary-strong-surface, var(--ui-accent-secondary-solid));
365
+ --_badge-text: var(--ui-accent-secondary-on-strong, var(--ui-text-on-accent));
366
+ }
367
+
368
+ :global(:scope[data-ui-badge-state~="tone=accent-tertiary"]:where([data-hn-ui-badge])) {
369
+ --_badge-surface: var(--ui-accent-tertiary-strong-surface, var(--ui-accent-tertiary-solid));
370
+ --_badge-border: var(--ui-accent-tertiary-strong-surface, var(--ui-accent-tertiary-solid));
371
+ --_badge-text: var(--ui-accent-tertiary-on-strong, var(--ui-text-on-accent));
372
+ }
373
+
374
+ :global(:scope[data-ui-badge-state~="variant=subtle"][data-ui-badge-state~="tone=accent-secondary"]:where([data-hn-ui-badge])) {
375
+ --_badge-surface: var(--ui-accent-secondary-soft);
376
+ --_badge-border: var(--ui-accent-secondary-soft-border);
377
+ --_badge-text: var(--ui-accent-secondary-subtle-text, var(--ui-accent-secondary-solid));
378
+ }
379
+
380
+ :global(:scope[data-ui-badge-state~="variant=subtle"][data-ui-badge-state~="tone=accent-tertiary"]:where([data-hn-ui-badge])) {
381
+ --_badge-surface: var(--ui-accent-tertiary-soft);
382
+ --_badge-border: var(--ui-accent-tertiary-soft-border);
383
+ --_badge-text: var(--ui-accent-tertiary-subtle-text, var(--ui-accent-tertiary-solid));
384
+ }
385
+
386
+ :global(:scope[data-ui-badge-state~="variant=outline"][data-ui-badge-state~="tone=accent-secondary"]:where([data-hn-ui-badge])) {
387
+ --_badge-border: var(--ui-accent-secondary-solid);
388
+ --_badge-text: var(--ui-accent-secondary-subtle-text, var(--ui-accent-secondary-solid));
389
+ }
390
+
391
+ :global(:scope[data-ui-badge-state~="variant=outline"][data-ui-badge-state~="tone=accent-tertiary"]:where([data-hn-ui-badge])) {
392
+ --_badge-border: var(--ui-accent-tertiary-solid);
393
+ --_badge-text: var(--ui-accent-tertiary-subtle-text, var(--ui-accent-tertiary-solid));
394
+ }
395
+
393
396
  :global(:scope[data-ui-badge-state~="tone=accent"]:where([data-hn-ui-badge])) {
394
397
  --_badge-surface: var(--ui-accent-strong-surface, var(--ui-accent-solid));
395
398
  --_badge-border: var(--ui-accent-strong-surface, var(--ui-accent-solid));
@@ -421,32 +424,32 @@ const hostState = computed(() =>
421
424
  }
422
425
 
423
426
  :global(:scope[data-ui-badge-state~="variant=subtle"][data-ui-badge-state~="tone=accent"]:where([data-hn-ui-badge])) {
424
- --_badge-surface: color-mix(in srgb, var(--ui-accent-solid) 19%, var(--ui-surface-default));
425
- --_badge-border: color-mix(in srgb, var(--ui-accent-solid) 25%, var(--ui-surface-default));
427
+ --_badge-surface: var(--ui-accent-soft);
428
+ --_badge-border: var(--ui-accent-soft-border);
426
429
  --_badge-text: var(--ui-accent-subtle-text, var(--ui-accent-solid));
427
430
  }
428
431
 
429
432
  :global(:scope[data-ui-badge-state~="variant=subtle"][data-ui-badge-state~="tone=danger"]:where([data-hn-ui-badge])) {
430
- --_badge-surface: color-mix(in srgb, var(--ui-danger-solid) 19%, var(--ui-surface-default));
431
- --_badge-border: color-mix(in srgb, var(--ui-danger-solid) 25%, var(--ui-surface-default));
433
+ --_badge-surface: var(--ui-danger-soft);
434
+ --_badge-border: var(--ui-danger-soft-border);
432
435
  --_badge-text: var(--ui-danger-subtle-text, var(--ui-danger-solid));
433
436
  }
434
437
 
435
438
  :global(:scope[data-ui-badge-state~="variant=subtle"][data-ui-badge-state~="tone=success"]:where([data-hn-ui-badge])) {
436
- --_badge-surface: color-mix(in srgb, var(--ui-success-solid) 19%, var(--ui-surface-default));
437
- --_badge-border: color-mix(in srgb, var(--ui-success-solid) 25%, var(--ui-surface-default));
439
+ --_badge-surface: var(--ui-success-soft);
440
+ --_badge-border: var(--ui-success-soft-border);
438
441
  --_badge-text: var(--ui-success-subtle-text, var(--ui-success-solid));
439
442
  }
440
443
 
441
444
  :global(:scope[data-ui-badge-state~="variant=subtle"][data-ui-badge-state~="tone=warning"]:where([data-hn-ui-badge])) {
442
- --_badge-surface: color-mix(in srgb, var(--ui-warning-solid) 19%, var(--ui-surface-default));
443
- --_badge-border: color-mix(in srgb, var(--ui-warning-solid) 25%, var(--ui-surface-default));
445
+ --_badge-surface: var(--ui-warning-soft);
446
+ --_badge-border: var(--ui-warning-soft-border);
444
447
  --_badge-text: var(--ui-warning-subtle-text, var(--ui-warning-solid));
445
448
  }
446
449
 
447
450
  :global(:scope[data-ui-badge-state~="variant=subtle"][data-ui-badge-state~="tone=info"]:where([data-hn-ui-badge])) {
448
- --_badge-surface: color-mix(in srgb, var(--ui-info-solid) 19%, var(--ui-surface-default));
449
- --_badge-border: color-mix(in srgb, var(--ui-info-solid) 25%, var(--ui-surface-default));
451
+ --_badge-surface: var(--ui-info-soft);
452
+ --_badge-border: var(--ui-info-soft-border);
450
453
  --_badge-text: var(--ui-info-subtle-text, var(--ui-info-solid));
451
454
  }
452
455
  :global(:scope[data-ui-badge-state~="variant=solid"]:where([data-hn-ui-badge])) {
package/vue/UiButton.d.ts CHANGED
@@ -60,7 +60,7 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
60
60
  type: PropType<string | null>;
61
61
  };
62
62
  tone: {
63
- type: PropType<"accent" | "neutral" | "danger" | "success" | "warning" | "info" | null>;
63
+ type: PropType<"accent" | "accent-secondary" | "accent-tertiary" | "neutral" | "danger" | "success" | "warning" | "info" | null>;
64
64
  };
65
65
  type: {
66
66
  type: PropType<"button" | "submit" | "reset" | null>;
@@ -109,7 +109,7 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
109
109
  type: PropType<string | null>;
110
110
  };
111
111
  tone: {
112
- type: PropType<"accent" | "neutral" | "danger" | "success" | "warning" | "info" | null>;
112
+ type: PropType<"accent" | "accent-secondary" | "accent-tertiary" | "neutral" | "danger" | "success" | "warning" | "info" | null>;
113
113
  };
114
114
  type: {
115
115
  type: PropType<"button" | "submit" | "reset" | null>;