@threadlabs/looma 0.41.2 → 0.43.0

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 (279) 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 +66 -90
  7. package/components/ui-button/ui-button.js +2 -2
  8. package/components/ui-callout/ui-callout.html +31 -69
  9. package/components/ui-card/ui-card.html +47 -21
  10. package/components/ui-checkbox/ui-checkbox.html +2 -16
  11. package/components/ui-cluster/ui-cluster.html +1 -7
  12. package/components/ui-combobox/ui-combobox.html +7 -70
  13. package/components/ui-container/ui-container.html +2 -12
  14. package/components/ui-context-menu/ui-context-menu.html +1 -23
  15. package/components/ui-dialog/ui-dialog.html +9 -41
  16. package/components/ui-disclosure/ui-disclosure.html +1 -15
  17. package/components/ui-editor-mention-menu/ui-editor-mention-menu.html +1 -1
  18. package/components/ui-editor-mention-menu-item/ui-editor-mention-menu-item.html +1 -1
  19. package/components/ui-editor-table-context-menu/ui-editor-table-context-menu.html +1 -1
  20. package/components/ui-editor-table-overlay/ui-editor-table-overlay.html +2 -2
  21. package/components/ui-editor-table-toolbar/ui-editor-table-toolbar.html +2 -2
  22. package/components/ui-floating-action-button/ui-floating-action-button.html +0 -14
  23. package/components/ui-form-field/ui-form-field.html +2 -32
  24. package/components/ui-grid/ui-grid.html +1 -11
  25. package/components/ui-icon/ui-icon.html +1 -12
  26. package/components/ui-icon-button/ui-icon-button.html +94 -94
  27. package/components/ui-input/ui-input.html +5 -55
  28. package/components/ui-input-group/ui-input-group.html +1 -13
  29. package/components/ui-light-editor/ui-light-editor.html +1 -1
  30. package/components/ui-list/ui-list.html +0 -10
  31. package/components/ui-list-item/ui-list-item.html +1 -19
  32. package/components/ui-listbox/ui-listbox.html +0 -21
  33. package/components/ui-menu/ui-menu.html +8 -32
  34. package/components/ui-menu-item/ui-menu-item.html +1 -27
  35. package/components/ui-meter/ui-meter.html +11 -6
  36. package/components/ui-nav-item/ui-nav-item.html +0 -18
  37. package/components/ui-popover/ui-popover.html +9 -41
  38. package/components/ui-radio/ui-radio.html +58 -12
  39. package/components/ui-radio-group/ui-radio-group.html +0 -5
  40. package/components/ui-reel/ui-reel.html +1 -11
  41. package/components/ui-search-result-row/ui-search-result-row.html +0 -34
  42. package/components/ui-search-shell/ui-search-shell.html +1 -43
  43. package/components/ui-section/ui-section.html +1 -1
  44. package/components/ui-select/ui-select.html +0 -42
  45. package/components/ui-separator/ui-separator.html +0 -6
  46. package/components/ui-sidebar/ui-sidebar.html +2 -24
  47. package/components/ui-site-header/ui-site-header.html +0 -25
  48. package/components/ui-skeleton/ui-skeleton.html +0 -9
  49. package/components/ui-stack/ui-stack.html +6 -11
  50. package/components/ui-status-message/ui-status-message.html +1 -1
  51. package/components/ui-swatch/ui-swatch.html +0 -5
  52. package/components/ui-switch/ui-switch.html +6 -17
  53. package/components/ui-switcher/ui-switcher.html +1 -11
  54. package/components/ui-tabs/ui-tabs.html +4 -22
  55. package/components/ui-text/ui-text.html +20 -7
  56. package/components/ui-textarea/ui-textarea.html +0 -50
  57. package/components/ui-toast/ui-toast.html +12 -27
  58. package/components/ui-toast-region/ui-toast-region.html +13 -34
  59. package/components/ui-tooltip/ui-tooltip.html +9 -53
  60. package/components/ui-top-bar/ui-top-bar.html +1 -31
  61. package/components/ui-tree/ui-tree.html +1 -16
  62. package/components/ui-tree-item/ui-tree-item.html +1 -23
  63. package/components/ui-tree-item/ui-tree-item.js +0 -1
  64. package/dist/index.js +1 -1
  65. package/docs/README.md +15 -9
  66. package/docs/catalog.json +973 -186
  67. package/docs/customizer-render.mjs +25 -9
  68. package/docs/customizer.js +42 -2
  69. package/docs/fonts.mjs +1 -1
  70. package/docs/palette.mjs +5 -4
  71. package/docs/theme.mjs +214 -51
  72. package/docs/value-editors.mjs +2 -1
  73. package/package.json +2 -2
  74. package/styles/ui-action-bar.css +3 -11
  75. package/styles/ui-affordance-scope.css +4 -4
  76. package/styles/ui-avatar-group.css +3 -15
  77. package/styles/ui-avatar.css +2 -26
  78. package/styles/ui-badge.css +56 -80
  79. package/styles/ui-button.css +65 -92
  80. package/styles/ui-callout.css +33 -73
  81. package/styles/ui-card.css +42 -18
  82. package/styles/ui-checkbox.css +4 -20
  83. package/styles/ui-cluster.css +2 -10
  84. package/styles/ui-combobox.css +7 -140
  85. package/styles/ui-container.css +2 -14
  86. package/styles/ui-context-menu.css +3 -27
  87. package/styles/ui-dialog.css +22 -88
  88. package/styles/ui-disclosure.css +3 -19
  89. package/styles/ui-editor-mention-menu-item.css +1 -1
  90. package/styles/ui-editor-mention-menu.css +1 -1
  91. package/styles/ui-editor-table-context-menu.css +1 -1
  92. package/styles/ui-editor-table-overlay.css +2 -2
  93. package/styles/ui-editor-table-toolbar.css +2 -2
  94. package/styles/ui-floating-action-button.css +2 -18
  95. package/styles/ui-form-field.css +4 -36
  96. package/styles/ui-grid.css +2 -14
  97. package/styles/ui-icon-button.css +93 -96
  98. package/styles/ui-icon.css +3 -16
  99. package/styles/ui-input-group.css +2 -14
  100. package/styles/ui-input.css +6 -57
  101. package/styles/ui-light-editor.css +2 -2
  102. package/styles/ui-list-item.css +3 -23
  103. package/styles/ui-list.css +2 -14
  104. package/styles/ui-listbox.css +2 -44
  105. package/styles/ui-menu-item.css +3 -31
  106. package/styles/ui-menu.css +11 -37
  107. package/styles/ui-meter.css +8 -4
  108. package/styles/ui-nav-item.css +2 -22
  109. package/styles/ui-popover.css +12 -46
  110. package/styles/ui-radio-group.css +1 -6
  111. package/styles/ui-radio.css +68 -15
  112. package/styles/ui-reel.css +2 -14
  113. package/styles/ui-search-result-row.css +2 -38
  114. package/styles/ui-search-shell.css +3 -47
  115. package/styles/ui-section.css +1 -1
  116. package/styles/ui-select.css +2 -46
  117. package/styles/ui-separator.css +2 -10
  118. package/styles/ui-sidebar.css +4 -28
  119. package/styles/ui-site-header.css +1 -26
  120. package/styles/ui-skeleton.css +2 -12
  121. package/styles/ui-stack.css +4 -12
  122. package/styles/ui-status-message.css +1 -1
  123. package/styles/ui-swatch.css +1 -6
  124. package/styles/ui-switch.css +8 -21
  125. package/styles/ui-switcher.css +2 -14
  126. package/styles/ui-tabs.css +6 -26
  127. package/styles/ui-text.css +11 -3
  128. package/styles/ui-textarea.css +2 -54
  129. package/styles/ui-toast-region.css +29 -73
  130. package/styles/ui-toast.css +24 -54
  131. package/styles/ui-tooltip.css +12 -58
  132. package/styles/ui-top-bar.css +3 -35
  133. package/styles/ui-tree-item.css +5 -51
  134. package/styles/ui-tree.css +3 -20
  135. package/theme-system.css +16 -10
  136. package/tokens.css +75 -18
  137. package/vanilla/UiBadge.d.ts +1 -1
  138. package/vanilla/UiBadge.js +1 -1
  139. package/vanilla/UiButton.d.ts +1 -1
  140. package/vanilla/UiButton.js +1 -1
  141. package/vanilla/UiCard.d.ts +1 -1
  142. package/vanilla/UiCard.js +1 -1
  143. package/vanilla/UiIconButton.d.ts +1 -1
  144. package/vanilla/UiIconButton.js +1 -1
  145. package/vanilla/UiMeter.d.ts +1 -1
  146. package/vanilla/UiMeter.js +1 -1
  147. package/vanilla/UiStack.js +1 -1
  148. package/vanilla/UiText.d.ts +1 -1
  149. package/vanilla/UiText.js +1 -1
  150. package/vue/UiActionBar.vue +3 -9
  151. package/vue/UiAffordanceScope.vue +4 -4
  152. package/vue/UiAvatar.vue +1 -28
  153. package/vue/UiAvatarGroup.vue +1 -11
  154. package/vue/UiBadge.d.ts +2 -2
  155. package/vue/UiBadge.vue +84 -81
  156. package/vue/UiButton.d.ts +2 -2
  157. package/vue/UiButton.vue +120 -106
  158. package/vue/UiCallout.vue +31 -72
  159. package/vue/UiCard.d.ts +2 -2
  160. package/vue/UiCard.vue +77 -32
  161. package/vue/UiCheckbox.vue +2 -16
  162. package/vue/UiCluster.vue +1 -10
  163. package/vue/UiCombobox.vue +13 -72
  164. package/vue/UiContainer.vue +1 -13
  165. package/vue/UiContextMenu.vue +1 -30
  166. package/vue/UiDialog.vue +23 -77
  167. package/vue/UiDisclosure.vue +1 -15
  168. package/vue/UiEditorMentionMenu.vue +1 -1
  169. package/vue/UiEditorMentionMenuItem.vue +1 -1
  170. package/vue/UiEditorTableContextMenu.vue +1 -1
  171. package/vue/UiEditorTableOverlay.vue +2 -2
  172. package/vue/UiEditorTableToolbar.vue +2 -2
  173. package/vue/UiFloatingActionButton.vue +0 -22
  174. package/vue/UiFormField.vue +6 -33
  175. package/vue/UiGrid.vue +1 -13
  176. package/vue/UiIcon.vue +1 -16
  177. package/vue/UiIconButton.d.ts +2 -2
  178. package/vue/UiIconButton.vue +145 -106
  179. package/vue/UiInput.vue +1 -54
  180. package/vue/UiInputGroup.vue +8 -20
  181. package/vue/UiLightEditor.vue +2 -2
  182. package/vue/UiList.vue +2 -12
  183. package/vue/UiListItem.vue +8 -26
  184. package/vue/UiListbox.vue +0 -23
  185. package/vue/UiMenu.vue +12 -44
  186. package/vue/UiMenuItem.vue +1 -27
  187. package/vue/UiMeter.d.ts +2 -2
  188. package/vue/UiMeter.vue +47 -12
  189. package/vue/UiNavItem.vue +3 -21
  190. package/vue/UiPopover.vue +12 -53
  191. package/vue/UiRadio.vue +58 -12
  192. package/vue/UiRadioGroup.vue +0 -11
  193. package/vue/UiReel.vue +1 -11
  194. package/vue/UiSearchResultRow.vue +0 -35
  195. package/vue/UiSearchShell.vue +1 -53
  196. package/vue/UiSection.vue +1 -1
  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/UiStatusMessage.vue +1 -1
  204. package/vue/UiSwatch.vue +1 -6
  205. package/vue/UiSwitch.vue +6 -17
  206. package/vue/UiSwitcher.vue +1 -14
  207. package/vue/UiTabs.vue +4 -22
  208. package/vue/UiText.d.ts +2 -2
  209. package/vue/UiText.vue +30 -5
  210. package/vue/UiTextarea.vue +0 -50
  211. package/vue/UiToast.vue +26 -34
  212. package/vue/UiToastRegion.vue +26 -55
  213. package/vue/UiTooltip.vue +12 -64
  214. package/vue/UiTopBar.vue +1 -34
  215. package/vue/UiTree.vue +2 -17
  216. package/vue/UiTreeItem.vue +2 -28
  217. package/vue/chunks/UiActionBar.js +1 -1
  218. package/vue/chunks/UiAffordanceScope.js +1 -1
  219. package/vue/chunks/UiAvatar.js +1 -1
  220. package/vue/chunks/UiAvatarGroup.js +1 -1
  221. package/vue/chunks/UiBadge.js +4 -2
  222. package/vue/chunks/UiButton.js +4 -2
  223. package/vue/chunks/UiCallout.js +1 -1
  224. package/vue/chunks/UiCard.js +5 -3
  225. package/vue/chunks/UiCheckbox.js +1 -1
  226. package/vue/chunks/UiCluster.js +2 -2
  227. package/vue/chunks/UiCombobox.js +3 -3
  228. package/vue/chunks/UiContainer.js +2 -2
  229. package/vue/chunks/UiContextMenu.js +1 -1
  230. package/vue/chunks/UiDialog.js +1 -1
  231. package/vue/chunks/UiDisclosure.js +1 -1
  232. package/vue/chunks/UiEditorMentionMenu.js +1 -1
  233. package/vue/chunks/UiEditorMentionMenuItem.js +1 -1
  234. package/vue/chunks/UiEditorTableContextMenu.js +1 -1
  235. package/vue/chunks/UiEditorTableOverlay.js +1 -1
  236. package/vue/chunks/UiEditorTableToolbar.js +1 -1
  237. package/vue/chunks/UiFloatingActionButton.js +1 -1
  238. package/vue/chunks/UiFormField.js +1 -1
  239. package/vue/chunks/UiGrid.js +2 -2
  240. package/vue/chunks/UiIcon.js +1 -1
  241. package/vue/chunks/UiIconButton.js +4 -2
  242. package/vue/chunks/UiInput.js +1 -1
  243. package/vue/chunks/UiInputGroup.js +1 -1
  244. package/vue/chunks/UiLightEditor.js +1 -1
  245. package/vue/chunks/UiList.js +1 -1
  246. package/vue/chunks/UiListItem.js +1 -1
  247. package/vue/chunks/UiListbox.js +1 -1
  248. package/vue/chunks/UiMenu.js +1 -1
  249. package/vue/chunks/UiMenuItem.js +1 -1
  250. package/vue/chunks/UiMeter.js +4 -2
  251. package/vue/chunks/UiNavItem.js +1 -1
  252. package/vue/chunks/UiPopover.js +1 -1
  253. package/vue/chunks/UiRadio.js +1 -1
  254. package/vue/chunks/UiRadioGroup.js +1 -1
  255. package/vue/chunks/UiReel.js +2 -2
  256. package/vue/chunks/UiSearchResultRow.js +1 -1
  257. package/vue/chunks/UiSearchShell.js +1 -1
  258. package/vue/chunks/UiSection.js +1 -1
  259. package/vue/chunks/UiSelect.js +1 -1
  260. package/vue/chunks/UiSeparator.js +1 -1
  261. package/vue/chunks/UiSidebar.js +1 -1
  262. package/vue/chunks/UiSiteHeader.js +1 -1
  263. package/vue/chunks/UiSkeleton.js +1 -1
  264. package/vue/chunks/UiStack.js +3 -3
  265. package/vue/chunks/UiStatusMessage.js +1 -1
  266. package/vue/chunks/UiSwatch.js +1 -1
  267. package/vue/chunks/UiSwitch.js +1 -1
  268. package/vue/chunks/UiSwitcher.js +2 -2
  269. package/vue/chunks/UiTabs.js +1 -1
  270. package/vue/chunks/UiText.js +4 -2
  271. package/vue/chunks/UiTextarea.js +1 -1
  272. package/vue/chunks/UiToast.js +1 -1
  273. package/vue/chunks/UiToastRegion.js +1 -1
  274. package/vue/chunks/UiTooltip.js +1 -1
  275. package/vue/chunks/UiTopBar.js +1 -1
  276. package/vue/chunks/UiTree.js +1 -1
  277. package/vue/chunks/UiTreeItem.js +1 -1
  278. package/vue/components.css +857 -2184
  279. package/vue/editor/index.js +8 -2
@@ -229,55 +229,13 @@ useComponentHost(() => import('../components/ui-search-shell/ui-search-shell.js'
229
229
  </template>
230
230
 
231
231
  <style scoped>
232
- /* This component's hooks style the element they are set on, and never a nested one. */
233
- @property --ui-search-shell-border {
234
- syntax: "*";
235
- inherits: false;
236
- }
237
- @property --ui-search-shell-focus-color {
238
- syntax: "*";
239
- inherits: false;
240
- }
241
- @property --ui-search-shell-max-height {
242
- syntax: "*";
243
- inherits: false;
244
- }
245
- @property --ui-search-shell-max-width {
246
- syntax: "*";
247
- inherits: false;
248
- }
249
- @property --ui-search-shell-padding-top {
250
- syntax: "*";
251
- inherits: false;
252
- }
253
- @property --ui-search-shell-radius {
254
- syntax: "*";
255
- inherits: false;
256
- }
257
- @property --ui-search-shell-shadow {
258
- syntax: "*";
259
- inherits: false;
260
- }
261
- @property --ui-search-shell-surface {
262
- syntax: "*";
263
- inherits: false;
264
- }
265
- @property --ui-search-shell-viewport-gap {
266
- syntax: "*";
267
- inherits: false;
268
- }
269
- @property --ui-search-shell-z-index {
270
- syntax: "*";
271
- inherits: false;
272
- }
273
-
274
232
  /* Laid out like the dialog's action row: actions right-aligned, spaced as buttons, no fill. */
275
233
 
276
234
  /* A component that sets its display still honours the hidden attribute on its root. */
277
235
 
278
236
  @scope (.ui-search-shell) to ([data-hn]) {
279
237
  :global(:scope:where([data-hn-ui-search-shell])) {
280
- /* Hooks do not inherit, so the parts below read them from the root. */
238
+ /* Resolve shared part values at the component root. */
281
239
  --_ui-search-shell-z-index: var(--ui-search-shell-z-index);
282
240
  --_ui-search-shell-padding-top: var(--ui-search-shell-padding-top);
283
241
  --_ui-search-shell-viewport-gap: var(--ui-search-shell-viewport-gap);
@@ -291,7 +249,6 @@ useComponentHost(() => import('../components/ui-search-shell/ui-search-shell.js'
291
249
 
292
250
  display: contents !important;
293
251
  }
294
-
295
252
  :global(dialog:where([data-hn-ui-search-shell])) {
296
253
  position: fixed;
297
254
  inset: 0;
@@ -310,19 +267,15 @@ useComponentHost(() => import('../components/ui-search-shell/ui-search-shell.js'
310
267
  background: var(--ui-overlay-backdrop);
311
268
  color: var(--ui-text-primary);
312
269
  }
313
-
314
270
  :global(dialog:modal:where([data-hn-ui-search-shell])::backdrop) {
315
271
  background: var(--ui-overlay-backdrop);
316
272
  }
317
-
318
273
  :global(dialog:modal:where([data-hn-ui-search-shell])) {
319
274
  background: transparent;
320
275
  }
321
-
322
276
  :global(dialog[data-ui-backdrop-hidden]:where([data-hn-ui-search-shell])::backdrop) {
323
277
  background: transparent;
324
278
  }
325
-
326
279
  :global(.panel:where([data-hn-ui-search-shell])) {
327
280
  position: relative;
328
281
  display: flex !important;
@@ -346,11 +299,9 @@ useComponentHost(() => import('../components/ui-search-shell/ui-search-shell.js'
346
299
  var(--ui-overlay-shadow, var(--ui-elevation-dialog, var(--ui-shadow-xl)))
347
300
  );
348
301
  }
349
-
350
302
  :global(.search:where([data-hn-ui-search-shell])) {
351
303
  padding: var(--ui-space-3) !important;
352
304
  }
353
-
354
305
  :global(:where(:not([data-hn-ui-search-shell])):is(input[slot="search"])) {
355
306
  box-sizing: border-box !important;
356
307
  inline-size: 100%;
@@ -363,13 +314,11 @@ useComponentHost(() => import('../components/ui-search-shell/ui-search-shell.js'
363
314
  font: inherit;
364
315
  box-shadow: var(--ui-shadow-xs);
365
316
  }
366
-
367
317
  :global(:where(:not([data-hn-ui-search-shell])):is(input[slot="search"]:focus-visible)) {
368
318
  border-color: var(--_ui-search-shell-focus-color, var(--ui-control-focus));
369
319
  outline: var(--ui-focus-width) solid var(--ui-focus-ring);
370
320
  outline-offset: var(--ui-focus-width);
371
321
  }
372
-
373
322
  :global(.status:where([data-hn-ui-search-shell])),
374
323
  :global(.actions:where([data-hn-ui-search-shell])) {
375
324
  flex-shrink: 0;
@@ -377,7 +326,6 @@ useComponentHost(() => import('../components/ui-search-shell/ui-search-shell.js'
377
326
  color: var(--ui-text-secondary);
378
327
  font-size: var(--ui-font-size-sm);
379
328
  }
380
-
381
329
  :global(.status:where([data-hn-ui-search-shell])) {
382
330
  padding-block-start: 0 !important;
383
331
  }
package/vue/UiSection.vue CHANGED
@@ -219,7 +219,7 @@ const hostState = computed(() =>
219
219
  }
220
220
 
221
221
  :global(:scope[data-ui-section-state~="tone=danger"] .heading:where([data-hn-ui-section])) {
222
- color: var(--ui-danger);
222
+ color: var(--ui-danger-subtle-text);
223
223
  }
224
224
 
225
225
  :global(.description:where([data-hn-ui-section])) {
package/vue/UiSelect.vue CHANGED
@@ -247,48 +247,6 @@ useComponentHost(() => import('../components/ui-select/ui-select.js'), {
247
247
  </template>
248
248
 
249
249
  <style scoped>
250
- /* This component's hooks style the element they are set on, and never a nested one. */
251
- @property --ui-select-border {
252
- syntax: "*";
253
- inherits: false;
254
- }
255
- @property --ui-select-border-hover {
256
- syntax: "*";
257
- inherits: false;
258
- }
259
- @property --ui-select-focus-border {
260
- syntax: "*";
261
- inherits: false;
262
- }
263
- @property --ui-select-focus-shadow {
264
- syntax: "*";
265
- inherits: false;
266
- }
267
- @property --ui-select-inline-size {
268
- syntax: "*";
269
- inherits: false;
270
- }
271
- @property --ui-select-invalid-border {
272
- syntax: "*";
273
- inherits: false;
274
- }
275
- @property --ui-select-invalid-focus-shadow {
276
- syntax: "*";
277
- inherits: false;
278
- }
279
- @property --ui-select-radius {
280
- syntax: "*";
281
- inherits: false;
282
- }
283
- @property --ui-select-shadow {
284
- syntax: "*";
285
- inherits: false;
286
- }
287
- @property --ui-select-surface {
288
- syntax: "*";
289
- inherits: false;
290
- }
291
-
292
250
  /* The select draws its own chevron: the native caret cannot be inset or sized consistently.
293
251
  * The root stays a native <s-lect>, so the icon is a background image rather than an element. */
294
252
 
@@ -156,14 +156,7 @@ const hostState = computed(() =>
156
156
  </template>
157
157
 
158
158
  <style scoped>
159
- /* This component's hooks style the element they are set on, and never a nested one. */
160
- @property --ui-separator-color {
161
- syntax: "*";
162
- inherits: false;
163
- }
164
-
165
159
  /* The root is the hr, so the rules name :host; a bare hr matches only a descendant. */
166
-
167
160
  @scope (.ui-separator) to ([data-hn]) {
168
161
  :global(:scope) {
169
162
  box-sizing: border-box !important;
package/vue/UiSidebar.vue CHANGED
@@ -368,30 +368,8 @@ useComponentHost(() => import('../components/ui-sidebar/ui-sidebar.js'), {
368
368
  </template>
369
369
 
370
370
  <style scoped>
371
- /* This component's hooks style the element they are set on, and never a nested one. */
372
- @property --ui-sidebar-backdrop {
373
- syntax: "*";
374
- inherits: false;
375
- }
376
- @property --ui-sidebar-border {
377
- syntax: "*";
378
- inherits: false;
379
- }
380
- @property --ui-sidebar-surface {
381
- syntax: "*";
382
- inherits: false;
383
- }
384
- @property --ui-sidebar-width {
385
- syntax: "*";
386
- inherits: false;
387
- }
388
- @property --ui-sidebar-collapsed-width {
389
- syntax: "*";
390
- inherits: false;
391
- }
392
-
393
371
  /* The panel's content scrolls, and each edge that hides content fades: the scroll fade every
394
- Looma scroller uses (see ui-scroll-area). */
372
+ Looma scroller uses (see ui-scroll-area). */
395
373
 
396
374
  /* Collapsed while docked. */
397
375
 
@@ -403,7 +381,7 @@ useComponentHost(() => import('../components/ui-sidebar/ui-sidebar.js'), {
403
381
 
404
382
  @scope (.ui-sidebar) to ([data-hn]) {
405
383
  :global(:scope:where([data-hn-ui-sidebar])) {
406
- /* Hooks do not inherit, so the parts below read them from the root. */
384
+ /* Resolve shared part values at the component root. */
407
385
  --_ui-sidebar-backdrop: var(--ui-sidebar-backdrop);
408
386
  --_ui-sidebar-expanded-width: var(--_sidebar-width, var(--ui-sidebar-width, 280px));
409
387
 
@@ -422,7 +400,6 @@ useComponentHost(() => import('../components/ui-sidebar/ui-sidebar.js'), {
422
400
  inline-size var(--ui-motion-layout) var(--ui-motion-layout-ease),
423
401
  visibility var(--ui-motion-layout);
424
402
  }
425
-
426
403
  :global(:scope[data-ui-sidebar-state~="side=end"]:where([data-hn-ui-sidebar])) {
427
404
  border-inline-end: 0;
428
405
  border-inline-start: var(--ui-border-width) solid
@@ -511,7 +488,7 @@ useComponentHost(() => import('../components/ui-sidebar/ui-sidebar.js'), {
511
488
  var(--ui-affordance-guide-color, var(--ui-border-strong)) 45%,
512
489
  transparent
513
490
  );
514
- opacity: calc(var(--ui-affordance-guide-opacity) * var(--ui-affordance-scope-guide, 1));
491
+ opacity: calc(var(--ui-affordance-guide-opacity) * var(--_ui-affordance-scope-guide, 1));
515
492
  transition:
516
493
  background-color var(--ui-affordance-motion, var(--ui-motion-fast)) var(--ui-motion-ease),
517
494
  opacity var(--ui-affordance-motion, var(--ui-motion-fast)) var(--ui-motion-ease);
@@ -138,30 +138,6 @@ const hostState = computed(() =>
138
138
  </template>
139
139
 
140
140
  <style scoped>
141
- @property --ui-site-header-height {
142
- syntax: "*";
143
- inherits: false;
144
- }
145
- @property --ui-site-header-compact-height {
146
- syntax: "*";
147
- inherits: false;
148
- }
149
- @property --ui-site-header-padding-inline {
150
- syntax: "*";
151
- inherits: false;
152
- }
153
- @property --ui-site-header-surface {
154
- syntax: "*";
155
- inherits: false;
156
- }
157
- @property --ui-site-header-border {
158
- syntax: "*";
159
- inherits: false;
160
- }
161
- @property --ui-site-header-z-index {
162
- syntax: "*";
163
- inherits: false;
164
- }
165
141
  /* Text shares a baseline inside one group; the group is centred beside any control height. */
166
142
  /* Without a supplied menu trigger, keep the destinations available on narrow screens. */
167
143
  @scope (.ui-site-header) to ([data-hn]) {
@@ -192,15 +192,6 @@ useComponentHost(() => import('../components/ui-skeleton/ui-skeleton.js'), {
192
192
  </template>
193
193
 
194
194
  <style scoped>
195
- /* Dimensions belong to this placeholder, never a nested or neighbouring one. */
196
- @property --ui-skeleton-width {
197
- syntax: "*";
198
- inherits: false;
199
- }
200
- @property --ui-skeleton-height {
201
- syntax: "*";
202
- inherits: false;
203
- }
204
195
  @property --_ui-skeleton-viewport-x {
205
196
  syntax: "<length>";
206
197
  inherits: false;
package/vue/UiStack.vue CHANGED
@@ -40,7 +40,7 @@ const propValidityContract = {
40
40
  required: false,
41
41
  target: { attribute: 'gap' },
42
42
  description:
43
- 'Space between items, on the spacing scale: none is zero, xs is 0.5rem, s 0.75rem, m 1rem (also the default), l 1.5rem, and xl 2rem. The --ui-stack-gap\n custom property, set on the stack itself, overrides it; set on an ancestor, it does nothing.',
43
+ 'Space between items, on the spacing scale: none is zero, xs is 0.5rem, s 0.75rem, m 1rem (also the default), l 1.5rem, and xl 2rem. The --ui-stack-gap\n custom property, set on :root, an ancestor, or the component itself, overrides it. Theme rhythm scales these vertical gaps, while an explicit gap override\n stays exact.',
44
44
  values: ['none', 'xs', 's', 'm', 'l', 'xl'],
45
45
  },
46
46
  height: {
@@ -161,7 +161,7 @@ const hostState = computed(() =>
161
161
  v-bind="nativeAttrs($attrs)"
162
162
  data-hn
163
163
  data-hn-ui-stack
164
- :style="{ '--ui-stack-height': checkedProps.height?.toString() }"
164
+ :style="{ '--_ui-stack-height': checkedProps.height?.toString() }"
165
165
  v-prop-validity="{ contract: propValidityContract, values: { ...props } }"
166
166
  :data-ui-stack-prop-align="reflectedProp('align', 'align', checkedProps.align, undefined, false)"
167
167
  :data-ui-stack-prop-fill="reflectedProp('fill', 'fill', checkedProps.fill, undefined, false)"
@@ -175,13 +175,7 @@ const hostState = computed(() =>
175
175
  </template>
176
176
 
177
177
  <style scoped>
178
- /* This component's hooks style the element they are set on, and never a nested one. */
179
- @property --ui-stack-height {
180
- syntax: "*";
181
- inherits: false;
182
- }
183
-
184
- @property --ui-stack-gap {
178
+ @property --_ui-stack-height {
185
179
  syntax: "*";
186
180
  inherits: false;
187
181
  }
@@ -194,7 +188,8 @@ const hostState = computed(() =>
194
188
  display: flex !important;
195
189
  flex-direction: column !important;
196
190
  align-items: stretch !important;
197
- gap: var(--ui-stack-gap, var(--_layout-gap)) !important;
191
+ gap: var(--ui-stack-gap, calc(var(--_layout-gap) * clamp(0.75, var(--ui-rhythm, 1), 1.5)))
192
+ !important;
198
193
  min-inline-size: 0;
199
194
  max-inline-size: 100%;
200
195
  margin: 0 !important;
@@ -205,7 +200,7 @@ const hostState = computed(() =>
205
200
  min-block-size: 0;
206
201
  }
207
202
  :global(:scope[data-ui-stack-state~="height"]:where([data-hn-ui-stack])) {
208
- block-size: calc(var(--ui-stack-height, 0) * 1px);
203
+ block-size: calc(var(--_ui-stack-height, 0) * 1px);
209
204
  min-block-size: 0;
210
205
  }
211
206
 
@@ -187,7 +187,7 @@ const hostState = computed(() =>
187
187
  }
188
188
 
189
189
  :global(:scope[data-ui-status-message-state~="kind=error"]:where([data-hn-ui-status-message])) {
190
- color: var(--ui-danger);
190
+ color: var(--ui-danger-subtle-text);
191
191
  }
192
192
 
193
193
  :global(:scope[data-ui-status-message-state~="layout=panel"]:where([data-hn-ui-status-message])) {
package/vue/UiSwatch.vue CHANGED
@@ -128,13 +128,8 @@ const hostState = computed(() =>
128
128
  </template>
129
129
 
130
130
  <style scoped>
131
- @property --ui-swatch-size {
132
- syntax: "*";
133
- inherits: false;
134
- }
135
-
136
131
  /* A native radio drawn as a round dot. Inside a ui-radio-group the group names it, applies its
137
- value, and moves between swatches with the arrow keys. */
132
+ value, and moves between swatches with the arrow keys. */
138
133
 
139
134
  /* The chosen swatch and the focused one share one ring at the focus width (2px by default), in
140
135
  the tone or the focus colour. */
package/vue/UiSwitch.vue CHANGED
@@ -291,20 +291,6 @@ useComponentHost(() => import('../components/ui-switch/ui-switch.js'), {
291
291
  </template>
292
292
 
293
293
  <style scoped>
294
- /* This component's hooks style the element they are set on, and never a nested one. */
295
- @property --ui-switch-gap {
296
- syntax: "*";
297
- inherits: false;
298
- }
299
- @property --ui-switch-track-height {
300
- syntax: "*";
301
- inherits: false;
302
- }
303
- @property --ui-switch-track-width {
304
- syntax: "*";
305
- inherits: false;
306
- }
307
-
308
294
  /* The label, and under it an optional line saying what the choice means. */
309
295
 
310
296
  /* A sized switch keeps its track and aligns instead: the label takes that size's field type size,
@@ -315,7 +301,7 @@ useComponentHost(() => import('../components/ui-switch/ui-switch.js'), {
315
301
 
316
302
  @scope (.ui-switch) to ([data-hn]) {
317
303
  :global(:scope:where([data-hn-ui-switch])) {
318
- /* Hooks do not inherit, so the parts below read them from the root. */
304
+ /* Resolve shared part values at the component root. */
319
305
  --_ui-switch-track-width: var(--ui-switch-track-width, var(--ui-choice-track-width));
320
306
  --_ui-switch-track-height: var(--ui-switch-track-height, var(--ui-choice-track-height));
321
307
 
@@ -392,7 +378,8 @@ useComponentHost(() => import('../components/ui-switch/ui-switch.js'), {
392
378
  width: var(--_thumb);
393
379
  height: var(--_thumb);
394
380
  border-radius: var(--ui-radius-round);
395
- background: var(--ui-text-secondary);
381
+ background-color: var(--ui-text-secondary);
382
+ background-image: var(--ui-knob-highlight, none);
396
383
  box-shadow: var(--ui-shadow-xs);
397
384
  transition:
398
385
  transform var(--ui-motion-base) var(--ui-motion-ease),
@@ -407,7 +394,8 @@ useComponentHost(() => import('../components/ui-switch/ui-switch.js'), {
407
394
 
408
395
  :global(input:checked:where([data-hn-ui-switch])::after) {
409
396
  transform: translateX(calc(var(--_ui-switch-track-width) - var(--_ui-switch-track-height)));
410
- background: var(--ui-text-on-accent);
397
+ background-color: var(--ui-text-on-accent);
398
+ background-image: var(--ui-knob-on-accent-highlight, none);
411
399
  }
412
400
 
413
401
  :global(input:focus-visible:where([data-hn-ui-switch])) {
@@ -432,6 +420,7 @@ useComponentHost(() => import('../components/ui-switch/ui-switch.js'), {
432
420
 
433
421
  :global(:scope[data-ui-switch-state~="disabled"] input:where([data-hn-ui-switch])::after) {
434
422
  background-color: var(--ui-disabled-text);
423
+ background-image: none;
435
424
  box-shadow: none;
436
425
  }
437
426
 
@@ -40,7 +40,7 @@ const propValidityContract = {
40
40
  required: false,
41
41
  target: { attribute: 'gap' },
42
42
  description:
43
- 'Space between items, on the spacing scale: xs is 0.5rem, s 0.75rem, m 1rem (also the default), l 1.5rem, and xl 2rem. The --ui-switcher-gap custom\n property, set on the switcher itself, overrides it; set on an ancestor, it does nothing.',
43
+ 'Space between items, on the spacing scale: xs is 0.5rem, s 0.75rem, m 1rem (also the default), l 1.5rem, and xl 2rem. The --ui-switcher-gap custom\n property, set on :root, an ancestor, or the component itself, overrides it.',
44
44
  values: ['xs', 's', 'm', 'l', 'xl'],
45
45
  },
46
46
  limit: {
@@ -195,18 +195,7 @@ useComponentHost(() => import('../components/ui-switcher/ui-switcher.js'), {
195
195
  </template>
196
196
 
197
197
  <style scoped>
198
- /* This component's hooks style the element they are set on, and never a nested one. */
199
- @property --ui-switcher-gap {
200
- syntax: "*";
201
- inherits: false;
202
- }
203
- @property --ui-switcher-threshold {
204
- syntax: "*";
205
- inherits: false;
206
- }
207
-
208
198
  /* A component that sets its display still honours the hidden attribute on its root. */
209
-
210
199
  @scope (.ui-switcher) to ([data-hn]) {
211
200
  :global(:scope:where([data-hn-ui-switcher])) {
212
201
  --_switcher-gap: var(--ui-space-4);
@@ -226,11 +215,9 @@ useComponentHost(() => import('../components/ui-switcher/ui-switcher.js'), {
226
215
  max-inline-size: 100%;
227
216
  margin: 0 !important;
228
217
  }
229
-
230
218
  :global(:scope[data-ui-switcher-state~="overLimit"]:where([data-hn-ui-switcher])) {
231
219
  grid-template-columns: minmax(0, 1fr);
232
220
  }
233
-
234
221
  :global(:scope[data-ui-switcher-state~="gap=xs"]:where([data-hn-ui-switcher])) {
235
222
  --_switcher-gap: var(--ui-space-2);
236
223
  }
package/vue/UiTabs.vue CHANGED
@@ -335,24 +335,6 @@ useComponentHost(() => import('../components/ui-tabs/ui-tabs.js'), {
335
335
  </template>
336
336
 
337
337
  <style scoped>
338
- /* This component's hooks style the element they are set on, and never a nested one. */
339
- @property --ui-tabs-tab-min-block-size {
340
- syntax: "*";
341
- inherits: false;
342
- }
343
- @property --ui-tabs-tab-padding-block {
344
- syntax: "*";
345
- inherits: false;
346
- }
347
- @property --ui-tabs-tab-padding-inline {
348
- syntax: "*";
349
- inherits: false;
350
- }
351
- @property --ui-tabs-panel-padding {
352
- syntax: "*";
353
- inherits: false;
354
- }
355
-
356
338
  /* Density resolves into the tab row's own values; the public tokens still override them. */
357
339
 
358
340
  /* Centre the glyphs, not the line box: a label without descenders otherwise reads high. */
@@ -363,7 +345,7 @@ useComponentHost(() => import('../components/ui-tabs/ui-tabs.js'), {
363
345
 
364
346
  @scope (.ui-tabs) to ([data-hn]) {
365
347
  :global(:scope:where([data-hn-ui-tabs])) {
366
- /* Hooks do not inherit, so the parts below read them from the root. */
348
+ /* Resolve shared part values at the component root. */
367
349
  --_ui-tabs-tab-min-block-size: var(--ui-tabs-tab-min-block-size);
368
350
  --_ui-tabs-tab-padding-block: var(--ui-tabs-tab-padding-block);
369
351
  --_ui-tabs-tab-padding-inline: var(--ui-tabs-tab-padding-inline);
@@ -448,8 +430,8 @@ useComponentHost(() => import('../components/ui-tabs/ui-tabs.js'), {
448
430
  }
449
431
  :global(.list button[aria-selected="true"]:where([data-hn-ui-tabs])),
450
432
  :global(.list > :where(:not([data-hn-ui-tabs])):is(button[slot="tab"][aria-selected="true"])) {
451
- color: var(--ui-accent-solid);
452
- border-block-end-color: var(--ui-accent-solid);
433
+ color: var(--ui-accent-subtle-text);
434
+ border-block-end-color: var(--ui-accent-subtle-text);
453
435
  }
454
436
  :global(.list button:focus-visible:where([data-hn-ui-tabs])),
455
437
  :global(.list > :where(:not([data-hn-ui-tabs])):is(button[slot="tab"]:focus-visible)) {
@@ -495,7 +477,7 @@ useComponentHost(() => import('../components/ui-tabs/ui-tabs.js'), {
495
477
  :global(:scope[data-ui-tabs-state~="orientation=vertical"]
496
478
  .list
497
479
  > :where(:not([data-hn-ui-tabs])):is(button[slot="tab"][aria-selected="true"])) {
498
- border-inline-end-color: var(--ui-accent-solid);
480
+ border-inline-end-color: var(--ui-accent-subtle-text);
499
481
  }
500
482
 
501
483
  @media (prefers-reduced-motion: reduce) {
package/vue/UiText.d.ts CHANGED
@@ -43,7 +43,7 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
43
43
  type: PropType<"inherit" | "xs" | "sm" | "md" | "lg" | null>;
44
44
  };
45
45
  tone: {
46
- type: PropType<"default" | "secondary" | "muted" | "accent" | "danger" | "success" | "info" | "warning" | null>;
46
+ type: PropType<"default" | "secondary" | "muted" | "accent" | "accent-secondary" | "accent-tertiary" | "danger" | "success" | "info" | "warning" | null>;
47
47
  };
48
48
  trim: {
49
49
  type: PropType<boolean | null>;
@@ -80,7 +80,7 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
80
80
  type: PropType<"inherit" | "xs" | "sm" | "md" | "lg" | null>;
81
81
  };
82
82
  tone: {
83
- type: PropType<"default" | "secondary" | "muted" | "accent" | "danger" | "success" | "info" | "warning" | null>;
83
+ type: PropType<"default" | "secondary" | "muted" | "accent" | "accent-secondary" | "accent-tertiary" | "danger" | "success" | "info" | "warning" | null>;
84
84
  };
85
85
  trim: {
86
86
  type: PropType<boolean | null>;
package/vue/UiText.vue CHANGED
@@ -67,8 +67,19 @@ const propValidityContract = {
67
67
  required: false,
68
68
  target: { attribute: 'tone' },
69
69
  description:
70
- 'The text\'s colour, by meaning. secondary is supporting prose such as a description; muted is quieter still, for metadata and hints; accent draws the eye;\n danger states an error; success confirms one; info marks something moving forward normally; warning marks something that needs attention. Colour alone\n does not carry the meaning, so the words must say it too.',
71
- values: ['default', 'secondary', 'muted', 'accent', 'danger', 'success', 'info', 'warning'],
70
+ 'The text\'s colour, by meaning. default inherits its containing surface or control\'s foreground. secondary is supporting prose such as a description; muted\n is quieter still, for metadata and hints; accent draws the eye; danger states an error; success confirms one; info marks something moving forward\n normally; warning marks something that needs attention. Colour alone does not carry the meaning, so the words must say it too. Supporting brand families\n use accent-secondary and accent-tertiary; their usable colors derive from the theme, and unset families follow the primary accent.',
71
+ values: [
72
+ 'default',
73
+ 'secondary',
74
+ 'muted',
75
+ 'accent',
76
+ 'accent-secondary',
77
+ 'accent-tertiary',
78
+ 'danger',
79
+ 'success',
80
+ 'info',
81
+ 'warning',
82
+ ],
72
83
  default: 'default',
73
84
  },
74
85
  trim: {
@@ -143,6 +154,8 @@ const props = defineProps({
143
154
  | 'secondary'
144
155
  | 'muted'
145
156
  | 'accent'
157
+ | 'accent-secondary'
158
+ | 'accent-tertiary'
146
159
  | 'danger'
147
160
  | 'success'
148
161
  | 'info'
@@ -274,6 +287,8 @@ const checkedProps = computed(() => {
274
287
  | 'secondary'
275
288
  | 'muted'
276
289
  | 'accent'
290
+ | 'accent-secondary'
291
+ | 'accent-tertiary'
277
292
  | 'danger'
278
293
  | 'success'
279
294
  | 'info'
@@ -284,6 +299,8 @@ const checkedProps = computed(() => {
284
299
  | 'secondary'
285
300
  | 'muted'
286
301
  | 'accent'
302
+ | 'accent-secondary'
303
+ | 'accent-tertiary'
287
304
  | 'danger'
288
305
  | 'success'
289
306
  | 'info'
@@ -682,7 +699,7 @@ const hostState = computed(() =>
682
699
  :global(:scope:where([data-hn-ui-text])) {
683
700
  margin: 0 !important;
684
701
  min-inline-size: 0;
685
- color: var(--ui-text-primary);
702
+ color: inherit;
686
703
  text-align: start;
687
704
  }
688
705
  :global(:scope:is(h1, h2, h3, h4, h5, h6):where([data-hn-ui-text])) {
@@ -718,8 +735,16 @@ const hostState = computed(() =>
718
735
  :global(:scope[data-ui-text-state~="tone=muted"]:where([data-hn-ui-text])) {
719
736
  color: var(--ui-text-muted);
720
737
  }
738
+ :global(:scope[data-ui-text-state~="tone=accent-secondary"]:where([data-hn-ui-text])) {
739
+ color: var(--ui-accent-secondary-subtle-text);
740
+ }
741
+
742
+ :global(:scope[data-ui-text-state~="tone=accent-tertiary"]:where([data-hn-ui-text])) {
743
+ color: var(--ui-accent-tertiary-subtle-text);
744
+ }
745
+
721
746
  :global(:scope[data-ui-text-state~="tone=accent"]:where([data-hn-ui-text])) {
722
- color: var(--ui-accent-active);
747
+ color: var(--ui-accent-subtle-text);
723
748
  }
724
749
  :global(:scope[data-ui-text-state~="tone=danger"]:where([data-hn-ui-text])) {
725
750
  color: var(--ui-danger-subtle-text);
@@ -777,7 +802,7 @@ const hostState = computed(() =>
777
802
  font-family: var(--ui-font-family-mono);
778
803
  }
779
804
  :global(:scope :where(:not([data-hn-ui-text])):is(a)) {
780
- color: var(--ui-accent-active);
805
+ color: var(--ui-link-color, var(--ui-accent-subtle-text));
781
806
  text-decoration: underline;
782
807
  text-decoration-thickness: 0.06em;
783
808
  text-underline-offset: 0.18em;