@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
package/vue/UiDialog.vue CHANGED
@@ -341,38 +341,8 @@ useComponentHost(() => import('../components/ui-dialog/ui-dialog.js'), {
341
341
  </template>
342
342
 
343
343
  <style scoped>
344
- /* This component's hooks style the element they are set on, and never a nested one. */
345
- @property --ui-dialog-duration {
346
- syntax: "*";
347
- inherits: false;
348
- }
349
- @property --ui-dialog-surface {
350
- syntax: "*";
351
- inherits: false;
352
- }
353
- @property --ui-dialog-border {
354
- syntax: "*";
355
- inherits: false;
356
- }
357
- @property --ui-dialog-radius {
358
- syntax: "*";
359
- inherits: false;
360
- }
361
- @property --ui-dialog-shadow {
362
- syntax: "*";
363
- inherits: false;
364
- }
365
- @property --ui-dialog-max-width {
366
- syntax: "*";
367
- inherits: false;
368
- }
369
- @property --ui-dialog-viewport-gap {
370
- syntax: "*";
371
- inherits: false;
372
- }
373
-
374
344
  /* Purpose and measured size shape one shared separation lever. The content plane stays opaque;
375
- transparency, saturation and edge light belong to the surrounding decorative material. */
345
+ transparency, frosting and edge light belong to the surrounding decorative material. */
376
346
 
377
347
  /* Own the layout wrapper; nested component roots are outside these scoped rules. */
378
348
 
@@ -396,7 +366,7 @@ useComponentHost(() => import('../components/ui-dialog/ui-dialog.js'), {
396
366
  @scope (.ui-dialog) to ([data-hn]) {
397
367
  :global(:scope:where([data-hn-ui-dialog])) {
398
368
  --_ui-material-scale: 1;
399
- /* Hooks do not inherit, so the parts below read them from the root. */
369
+ /* Resolve shared part values at the component root. */
400
370
  --_ui-dialog-duration: var(--ui-dialog-duration);
401
371
 
402
372
  position: fixed;
@@ -432,22 +402,10 @@ useComponentHost(() => import('../components/ui-dialog/ui-dialog.js'), {
432
402
  overlay var(--ui-dialog-duration, var(--ui-motion-base)) var(--ui-motion-ease) allow-discrete;
433
403
  }
434
404
  :global(:scope:where([data-hn-ui-dialog])) {
435
- --_ui-material-glassiness: calc(
436
- clamp(0, var(--ui-glassiness, 0), 1) + 2 * pow(clamp(0, var(--ui-glassiness, 0), 1), 4)
437
- );
405
+ --_ui-material-glassiness: clamp(0, var(--ui-glassiness, 0), 1);
438
406
  --_ui-material-separation: clamp(0, var(--ui-surface-separation, 0), 1);
439
- --_ui-material-active: clamp(
440
- 0,
441
- calc((var(--_ui-material-glassiness) + var(--_ui-material-separation)) * 100000),
442
- 1
443
- );
444
- --_ui-material-rim: calc(
445
- (
446
- var(--_ui-material-separation) + var(--_ui-material-glassiness) * 0.25
447
- ) *
448
- var(--_ui-material-scale, 1) *
449
- 8px
450
- );
407
+ --_ui-material-active: clamp(0, calc(var(--_ui-material-separation) * 100000), 1);
408
+ --_ui-material-rim: calc(var(--_ui-material-separation) * var(--_ui-material-scale, 1) * 8px);
451
409
  --_ui-material-content-color: var(
452
410
  --ui-dialog-surface,
453
411
  var(--ui-material-content, var(--ui-overlay-surface, var(--ui-surface-elevated)))
@@ -489,12 +447,12 @@ useComponentHost(() => import('../components/ui-dialog/ui-dialog.js'), {
489
447
  var(--ui-elevation-dialog, var(--ui-shadow-xl))
490
448
  )
491
449
  );
492
- backdrop-filter: blur(
493
- calc(var(--_ui-material-glassiness) * var(--_ui-material-scale, 1) * 18px)
494
- ) saturate(calc(1 + var(--_ui-material-glassiness) * var(--_ui-material-scale, 1) * 0.18));
495
450
  -webkit-backdrop-filter: blur(
496
- calc(var(--_ui-material-glassiness) * var(--_ui-material-scale, 1) * 18px)
497
- ) saturate(calc(1 + var(--_ui-material-glassiness) * var(--_ui-material-scale, 1) * 0.18));
451
+ calc(var(--_ui-material-glassiness) * var(--_ui-material-scale, 1) * 32px)
452
+ );
453
+ backdrop-filter: blur(
454
+ calc(var(--_ui-material-glassiness) * var(--_ui-material-scale, 1) * 32px)
455
+ );
498
456
  }
499
457
 
500
458
  @supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
@@ -506,8 +464,8 @@ useComponentHost(() => import('../components/ui-dialog/ui-dialog.js'), {
506
464
  @media (prefers-reduced-transparency: reduce) {
507
465
  :global(:scope:where([data-hn-ui-dialog])) {
508
466
  background: var(--_ui-material-content-color);
509
- backdrop-filter: none;
510
467
  -webkit-backdrop-filter: none;
468
+ backdrop-filter: none;
511
469
  }
512
470
  }
513
471
 
@@ -516,8 +474,8 @@ useComponentHost(() => import('../components/ui-dialog/ui-dialog.js'), {
516
474
  background: Canvas;
517
475
  border-color: CanvasText;
518
476
  box-shadow: none;
519
- backdrop-filter: none;
520
477
  -webkit-backdrop-filter: none;
478
+ backdrop-filter: none;
521
479
  }
522
480
  }
523
481
 
@@ -631,7 +589,7 @@ useComponentHost(() => import('../components/ui-dialog/ui-dialog.js'), {
631
589
  @scope ([data-slotted~="ui-dialog"]:not([data-hn])) to ([data-hn], [data-slotted]) {
632
590
  :global(:where(.ui-dialog):where(:scope, :not([data-hn], [data-slotted]:not([data-slotted~="ui-dialog"]))):where([data-hn-ui-dialog])) {
633
591
  --_ui-material-scale: 1;
634
- /* Hooks do not inherit, so the parts below read them from the root. */
592
+ /* Resolve shared part values at the component root. */
635
593
  --_ui-dialog-duration: var(--ui-dialog-duration);
636
594
 
637
595
  position: fixed;
@@ -667,22 +625,10 @@ useComponentHost(() => import('../components/ui-dialog/ui-dialog.js'), {
667
625
  overlay var(--ui-dialog-duration, var(--ui-motion-base)) var(--ui-motion-ease) allow-discrete;
668
626
  }
669
627
  :global(:where(.ui-dialog):where(:scope, :not([data-hn], [data-slotted]:not([data-slotted~="ui-dialog"]))):where([data-hn-ui-dialog])) {
670
- --_ui-material-glassiness: calc(
671
- clamp(0, var(--ui-glassiness, 0), 1) + 2 * pow(clamp(0, var(--ui-glassiness, 0), 1), 4)
672
- );
628
+ --_ui-material-glassiness: clamp(0, var(--ui-glassiness, 0), 1);
673
629
  --_ui-material-separation: clamp(0, var(--ui-surface-separation, 0), 1);
674
- --_ui-material-active: clamp(
675
- 0,
676
- calc((var(--_ui-material-glassiness) + var(--_ui-material-separation)) * 100000),
677
- 1
678
- );
679
- --_ui-material-rim: calc(
680
- (
681
- var(--_ui-material-separation) + var(--_ui-material-glassiness) * 0.25
682
- ) *
683
- var(--_ui-material-scale, 1) *
684
- 8px
685
- );
630
+ --_ui-material-active: clamp(0, calc(var(--_ui-material-separation) * 100000), 1);
631
+ --_ui-material-rim: calc(var(--_ui-material-separation) * var(--_ui-material-scale, 1) * 8px);
686
632
  --_ui-material-content-color: var(
687
633
  --ui-dialog-surface,
688
634
  var(--ui-material-content, var(--ui-overlay-surface, var(--ui-surface-elevated)))
@@ -724,12 +670,12 @@ useComponentHost(() => import('../components/ui-dialog/ui-dialog.js'), {
724
670
  var(--ui-elevation-dialog, var(--ui-shadow-xl))
725
671
  )
726
672
  );
727
- backdrop-filter: blur(
728
- calc(var(--_ui-material-glassiness) * var(--_ui-material-scale, 1) * 18px)
729
- ) saturate(calc(1 + var(--_ui-material-glassiness) * var(--_ui-material-scale, 1) * 0.18));
730
673
  -webkit-backdrop-filter: blur(
731
- calc(var(--_ui-material-glassiness) * var(--_ui-material-scale, 1) * 18px)
732
- ) saturate(calc(1 + var(--_ui-material-glassiness) * var(--_ui-material-scale, 1) * 0.18));
674
+ calc(var(--_ui-material-glassiness) * var(--_ui-material-scale, 1) * 32px)
675
+ );
676
+ backdrop-filter: blur(
677
+ calc(var(--_ui-material-glassiness) * var(--_ui-material-scale, 1) * 32px)
678
+ );
733
679
  }
734
680
 
735
681
  @supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
@@ -741,8 +687,8 @@ useComponentHost(() => import('../components/ui-dialog/ui-dialog.js'), {
741
687
  @media (prefers-reduced-transparency: reduce) {
742
688
  :global(:where(.ui-dialog):where(:scope, :not([data-hn], [data-slotted]:not([data-slotted~="ui-dialog"]))):where([data-hn-ui-dialog])) {
743
689
  background: var(--_ui-material-content-color);
744
- backdrop-filter: none;
745
690
  -webkit-backdrop-filter: none;
691
+ backdrop-filter: none;
746
692
  }
747
693
  }
748
694
 
@@ -751,8 +697,8 @@ useComponentHost(() => import('../components/ui-dialog/ui-dialog.js'), {
751
697
  background: Canvas;
752
698
  border-color: CanvasText;
753
699
  box-shadow: none;
754
- backdrop-filter: none;
755
700
  -webkit-backdrop-filter: none;
701
+ backdrop-filter: none;
756
702
  }
757
703
  }
758
704
 
@@ -405,20 +405,6 @@ useComponentHost(() => import('../components/ui-disclosure/ui-disclosure.js'), {
405
405
  </template>
406
406
 
407
407
  <style scoped>
408
- /* This component's hooks style the element they are set on, and never a nested one. */
409
- @property --ui-disclosure-trigger-min-block-size {
410
- syntax: "*";
411
- inherits: false;
412
- }
413
- @property --ui-disclosure-trigger-padding-block {
414
- syntax: "*";
415
- inherits: false;
416
- }
417
- @property --ui-disclosure-trigger-padding-inline {
418
- syntax: "*";
419
- inherits: false;
420
- }
421
-
422
408
  /* Density resolves into the summary row's own values; the public tokens still override them. */
423
409
 
424
410
  /* An accordion row, not a field: no enclosing box, just a divider, so it never reads as a
@@ -431,7 +417,7 @@ useComponentHost(() => import('../components/ui-disclosure/ui-disclosure.js'), {
431
417
 
432
418
  @scope (.ui-disclosure) to ([data-hn]) {
433
419
  :global(:scope:where([data-hn-ui-disclosure])) {
434
- /* Hooks do not inherit, so the parts below read them from the root. */
420
+ /* Resolve shared part values at the component root. */
435
421
  --_ui-disclosure-trigger-min-block-size: var(--ui-disclosure-trigger-min-block-size);
436
422
  --_ui-disclosure-trigger-padding-block: var(--ui-disclosure-trigger-padding-block);
437
423
  --_ui-disclosure-trigger-padding-inline: var(--ui-disclosure-trigger-padding-inline);
@@ -541,7 +541,7 @@ useComponentHost(() => import('../components/ui-editor-mention-menu/ui-editor-me
541
541
  width: 32px;
542
542
  height: 32px;
543
543
  flex: 0 0 auto;
544
- color: var(--ui-accent-active, var(--ui-accent-solid));
544
+ color: var(--ui-accent-subtle-text);
545
545
  background: var(--ui-accent-soft, var(--ui-accent-subtle));
546
546
  border-radius: var(--ui-radius-round);
547
547
  font-size: var(--ui-font-size-xs);
@@ -167,7 +167,7 @@ checkHydratedRoot('li', 'ui-editor-mention-menu-item')
167
167
  inline-size: 32px;
168
168
  block-size: 32px;
169
169
  flex: 0 0 auto;
170
- color: var(--ui-accent-active);
170
+ color: var(--ui-accent-subtle-text);
171
171
  background: var(--ui-accent-soft);
172
172
  border-radius: var(--ui-radius-round);
173
173
  font-size: var(--ui-font-size-xs);
@@ -623,7 +623,7 @@ useComponentHost(
623
623
  background: var(--ui-accent-subtle, rgb(59 130 246 / 0.1));
624
624
  }
625
625
  :global(:scope button.danger) {
626
- color: var(--ui-danger);
626
+ color: var(--ui-danger-subtle-text);
627
627
  }
628
628
  :global(.swatches) {
629
629
  display: flex !important;
@@ -893,7 +893,7 @@ useComponentHost(() => import('../components/ui-editor-table-overlay/ui-editor-t
893
893
  height: var(--ui-affordance-guide-size);
894
894
  border-radius: var(--ui-radius-round);
895
895
  background: var(--ui-affordance-guide-color, var(--ui-border-strong));
896
- opacity: calc(var(--ui-affordance-guide-opacity) * var(--ui-affordance-scope-guide, 1));
896
+ opacity: calc(var(--ui-affordance-guide-opacity) * var(--_ui-affordance-scope-guide, 1));
897
897
  transition: opacity var(--ui-affordance-motion, var(--ui-motion-fast)) var(--ui-motion-ease);
898
898
  }
899
899
  :global(.control.row .guide) {
@@ -973,7 +973,7 @@ useComponentHost(() => import('../components/ui-editor-table-overlay/ui-editor-t
973
973
  inset: 50% auto auto 50%;
974
974
  border-radius: var(--ui-radius-round);
975
975
  background: var(--ui-affordance-guide-color, var(--ui-border-strong));
976
- opacity: calc(var(--ui-affordance-guide-opacity) * var(--ui-affordance-scope-guide, 1));
976
+ opacity: calc(var(--ui-affordance-guide-opacity) * var(--_ui-affordance-scope-guide, 1));
977
977
  transform: translate(-50%, -50%);
978
978
  transition: opacity var(--ui-affordance-motion, var(--ui-motion-fast)) var(--ui-motion-ease);
979
979
  pointer-events: none;
@@ -736,7 +736,7 @@ useComponentHost(() => import('../components/ui-editor-table-toolbar/ui-editor-t
736
736
  }
737
737
  :global(:scope button.active) {
738
738
  background: var(--ui-accent-soft, var(--ui-accent-subtle));
739
- color: var(--ui-accent-active);
739
+ color: var(--ui-accent-subtle-text);
740
740
  }
741
741
  :global(.group button) {
742
742
  border-radius: var(--ui-radius-sm);
@@ -749,7 +749,7 @@ useComponentHost(() => import('../components/ui-editor-table-toolbar/ui-editor-t
749
749
  border-radius: var(--ui-radius-sm);
750
750
  }
751
751
  :global(:scope button.danger) {
752
- color: var(--ui-danger);
752
+ color: var(--ui-danger-subtle-text);
753
753
  }
754
754
  :global(:scope) {
755
755
  --_ui-default-icon-size: var(--ui-editor-toolbar-icon-size, 1rem);
@@ -132,22 +132,7 @@ const hostState = computed(() =>
132
132
  </template>
133
133
 
134
134
  <style scoped>
135
- /* This component's hooks style the element they are set on, and never a nested one. */
136
- @property --ui-floating-action-button-inset-block-end {
137
- syntax: "*";
138
- inherits: false;
139
- }
140
- @property --ui-floating-action-button-inset-inline-end {
141
- syntax: "*";
142
- inherits: false;
143
- }
144
- @property --ui-floating-action-button-z-index {
145
- syntax: "*";
146
- inherits: false;
147
- }
148
-
149
135
  /* A component that sets its display still honours the hidden attribute on its root. */
150
-
151
136
  @scope (.ui-floating-action-button) to ([data-hn]) {
152
137
  :global(:scope:where([data-hn-ui-floating-action-button])) {
153
138
  position: fixed;
@@ -164,7 +149,6 @@ const hostState = computed(() =>
164
149
  display: inline-flex !important;
165
150
  z-index: var(--ui-floating-action-button-z-index, 100);
166
151
  }
167
-
168
152
  :global(:scope:where([data-hn-ui-floating-action-button])) {
169
153
  appearance: none;
170
154
  border: none;
@@ -183,34 +167,28 @@ const hostState = computed(() =>
183
167
  transform var(--ui-motion-fast) var(--ui-motion-ease),
184
168
  box-shadow var(--ui-motion-fast) var(--ui-motion-ease);
185
169
  }
186
-
187
170
  :global(:scope:hover:enabled:where([data-hn-ui-floating-action-button])) {
188
171
  background: var(--ui-accent-hover);
189
172
  box-shadow: 0 6px 16px color-mix(in srgb, var(--ui-accent) 50%, transparent);
190
173
  }
191
-
192
174
  :global(:scope:active:enabled:where([data-hn-ui-floating-action-button])) {
193
175
  transform: scale(0.94);
194
176
  }
195
-
196
177
  :global(:scope:focus-visible:where([data-hn-ui-floating-action-button])) {
197
178
  outline: var(--ui-focus-width) solid var(--ui-focus-ring);
198
179
  outline-offset: var(--ui-focus-width);
199
180
  }
200
-
201
181
  :global(:scope:disabled:where([data-hn-ui-floating-action-button])) {
202
182
  background: var(--ui-disabled-surface);
203
183
  color: var(--ui-disabled-text);
204
184
  box-shadow: none;
205
185
  cursor: not-allowed;
206
186
  }
207
-
208
187
  :global(:where(:not([data-hn-ui-floating-action-button])):is(svg)) {
209
188
  inline-size: var(--ui-icon-size-lg);
210
189
  block-size: var(--ui-icon-size-lg);
211
190
  flex-shrink: 0;
212
191
  }
213
-
214
192
  @media (min-width: 768px) {
215
193
  :global(:scope[data-ui-floating-action-button-state~="mobileOnly"]:where([data-hn-ui-floating-action-button])) {
216
194
  display: none !important;
@@ -171,38 +171,8 @@ useComponentHost(() => import('../components/ui-form-field/ui-form-field.js'), {
171
171
  </template>
172
172
 
173
173
  <style scoped>
174
- /* This component's hooks style the element they are set on, and never a nested one. */
175
- @property --ui-form-field-danger {
176
- syntax: "*";
177
- inherits: false;
178
- }
179
- @property --ui-form-field-help-font-size {
180
- syntax: "*";
181
- inherits: false;
182
- }
183
- @property --ui-form-field-help-min-block-size {
184
- syntax: "*";
185
- inherits: false;
186
- }
187
- @property --ui-form-field-help-text {
188
- syntax: "*";
189
- inherits: false;
190
- }
191
- @property --ui-form-field-label-font-size {
192
- syntax: "*";
193
- inherits: false;
194
- }
195
- @property --ui-form-field-label-text {
196
- syntax: "*";
197
- inherits: false;
198
- }
199
- @property --ui-form-field-min-inline-size {
200
- syntax: "*";
201
- inherits: false;
202
- }
203
-
204
174
  /* Each named region styles whatever fills it, however it was slotted (slot="…" in HTML, #label
205
- in Vue), and generates no box of its own, so an empty region adds no gap. */
175
+ in Vue), and generates no box of its own, so an empty region adds no gap. */
206
176
 
207
177
  /* A label action, such as a small help button, sits after the label text in a box one line
208
178
  tall, centred on the first line and overflowing it. A button taller than a line of label
@@ -214,7 +184,7 @@ useComponentHost(() => import('../components/ui-form-field/ui-form-field.js'), {
214
184
 
215
185
  @scope (.ui-form-field) to ([data-hn]) {
216
186
  :global(:scope:where([data-hn-ui-form-field])) {
217
- /* Hooks do not inherit, so the parts below read them from the root. */
187
+ /* Resolve shared part values at the component root. */
218
188
  --_ui-form-field-danger: var(--ui-form-field-danger);
219
189
  --_ui-form-field-help-min-block-size: var(--ui-form-field-help-min-block-size);
220
190
  --_ui-form-field-label-text: var(--ui-form-field-label-text);
@@ -236,7 +206,10 @@ useComponentHost(() => import('../components/ui-form-field/ui-form-field.js'), {
236
206
 
237
207
  :global(.label:where([data-hn-ui-form-field])) {
238
208
  color: var(--_ui-form-field-label-text, var(--ui-text-secondary));
239
- font-size: var(--_ui-form-field-label-font-size, var(--ui-font-size-sm));
209
+ font-size: var(
210
+ --_ui-form-field-label-font-size,
211
+ var(--ui-field-label-font-size, var(--ui-font-size-md))
212
+ );
240
213
  }
241
214
  :global(.label:has(> .label-action > *):where([data-hn-ui-form-field])) {
242
215
  display: flex !important;
package/vue/UiGrid.vue CHANGED
@@ -31,7 +31,7 @@ const propValidityContract = {
31
31
  required: false,
32
32
  target: { attribute: 'gap' },
33
33
  description:
34
- 'Space between cells, on the spacing scale: xs is 0.5rem, s 0.75rem, m 1rem (also the default), l 1.5rem, and xl 2rem. The --ui-grid-gap custom property,\n set on the grid itself, overrides it; set on an ancestor, it does nothing.',
34
+ 'Space between cells, on the spacing scale: xs is 0.5rem, s 0.75rem, m 1rem (also the default), l 1.5rem, and xl 2rem. The --ui-grid-gap custom property,\n set on :root, an ancestor, or the component itself, overrides it.',
35
35
  values: ['xs', 's', 'm', 'l', 'xl'],
36
36
  },
37
37
  min: {
@@ -128,18 +128,7 @@ const hostState = computed(() =>
128
128
  </template>
129
129
 
130
130
  <style scoped>
131
- /* This component's hooks style the element they are set on, and never a nested one. */
132
- @property --ui-grid-gap {
133
- syntax: "*";
134
- inherits: false;
135
- }
136
- @property --ui-grid-min {
137
- syntax: "*";
138
- inherits: false;
139
- }
140
-
141
131
  /* A component that sets its display still honours the hidden attribute on its root. */
142
-
143
132
  @scope (.ui-grid) to ([data-hn]) {
144
133
  :global(:scope:where([data-hn-ui-grid])) {
145
134
  --_grid-gap: var(--ui-space-4);
@@ -173,7 +162,6 @@ const hostState = computed(() =>
173
162
  max-inline-size: 100%;
174
163
  margin: 0 !important;
175
164
  }
176
-
177
165
  :global(:scope[data-ui-grid-state~="gap=xs"]:where([data-hn-ui-grid])) {
178
166
  --_grid-gap: var(--ui-space-2);
179
167
  }
package/vue/UiIcon.vue CHANGED
@@ -578,22 +578,10 @@ const hostState = computed(() =>
578
578
  </template>
579
579
 
580
580
  <style scoped>
581
- /* This component's hooks style the element they are set on, and never a nested one. */
582
- @property --ui-icon-size {
583
- syntax: "*";
584
- inherits: false;
585
- }
586
- @property --ui-icon-stroke-width {
587
- syntax: "*";
588
- inherits: false;
589
- }
590
-
591
581
  /* A component that sets its display still honours the hidden attribute on its root. */
592
-
593
582
  @scope (.ui-icon) to ([data-hn]) {
594
583
  :global(:scope) {
595
- /* Hooks do not inherit, so the svg reads the stroke from the root. A Looma component that
596
- sizes the icons it renders sets --_ui-default-icon-*, which the icon's own hooks override. */
584
+ /* Resolve the SVG stroke at the root. A Looma component that sizes its icons sets --_ui-default-icon-*, which the icon's own hooks override. */
597
585
  --_ui-icon-stroke-width: var(--ui-icon-stroke-width, var(--_ui-default-icon-stroke-width));
598
586
 
599
587
  display: inline-flex !important;
@@ -601,15 +589,12 @@ const hostState = computed(() =>
601
589
  inline-size: var(--ui-icon-size, var(--_ui-default-icon-size, 1em));
602
590
  block-size: var(--ui-icon-size, var(--_ui-default-icon-size, 1em));
603
591
  }
604
-
605
592
  :global(:scope[data-ui-icon-state~="tone=secondary"]) {
606
593
  color: var(--ui-text-secondary);
607
594
  }
608
-
609
595
  :global(:scope[data-ui-icon-state~="tone=muted"]) {
610
596
  color: var(--ui-text-muted);
611
597
  }
612
-
613
598
  :global(svg) {
614
599
  inline-size: 100%;
615
600
  block-size: 100%;
@@ -39,7 +39,7 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
39
39
  type: PropType<"sm" | "md" | "lg" | null>;
40
40
  };
41
41
  tone: {
42
- type: PropType<"accent" | "neutral" | "danger" | "success" | "warning" | "info" | null>;
42
+ type: PropType<"accent" | "accent-secondary" | "accent-tertiary" | "neutral" | "danger" | "success" | "warning" | "info" | null>;
43
43
  };
44
44
  variant: {
45
45
  type: PropType<"ghost" | "outline" | "solid" | null>;
@@ -82,7 +82,7 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
82
82
  type: PropType<"sm" | "md" | "lg" | null>;
83
83
  };
84
84
  tone: {
85
- type: PropType<"accent" | "neutral" | "danger" | "success" | "warning" | "info" | null>;
85
+ type: PropType<"accent" | "accent-secondary" | "accent-tertiary" | "neutral" | "danger" | "success" | "warning" | "info" | null>;
86
86
  };
87
87
  variant: {
88
88
  type: PropType<"ghost" | "outline" | "solid" | null>;