@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/UiCard.vue CHANGED
@@ -51,8 +51,17 @@ const propValidityContract = {
51
51
  required: false,
52
52
  target: { attribute: 'tone' },
53
53
  description:
54
- 'accent, info, success, warning and danger add a quiet semantic surface without changing card geometry. Row highlights follow the surface hue; action\n controls retain their own intent.',
55
- values: ['neutral', 'accent', 'info', 'success', 'warning', 'danger'],
54
+ 'accent, info, success, warning and danger add a quiet semantic surface without changing card geometry. Row highlights follow the surface hue; action\n controls retain their own intent. Supporting brand families use accent-secondary and accent-tertiary; their usable colors derive from the theme, and unset\n families follow the primary accent.',
55
+ values: [
56
+ 'neutral',
57
+ 'accent',
58
+ 'accent-secondary',
59
+ 'accent-tertiary',
60
+ 'info',
61
+ 'success',
62
+ 'warning',
63
+ 'danger',
64
+ ],
56
65
  default: 'neutral',
57
66
  },
58
67
  treatment: {
@@ -60,7 +69,7 @@ const propValidityContract = {
60
69
  required: false,
61
70
  target: { attribute: 'treatment' },
62
71
  description:
63
- 'How much of the theme\'s decorative material the surface expresses. standard preserves its restrained treatment; expressive uses the full material\n treatment. This does not add elevation or require glass.',
72
+ 'How much of the theme\'s decorative material the surface expresses. standard preserves its restrained treatment; expressive uses the full material\n treatment. Its glass rim can transmit and frost the surrounding scene while content remains opaque. Surface separation controls the rim, independently of\n frosting. This does not add elevation or require glass.',
64
73
  values: ['standard', 'expressive'],
65
74
  default: 'standard',
66
75
  },
@@ -81,7 +90,15 @@ const props = defineProps({
81
90
  size: { type: null as unknown as PropType<'content' | 'sm' | 'md' | 'lg' | null> },
82
91
  tone: {
83
92
  type: null as unknown as PropType<
84
- 'neutral' | 'accent' | 'info' | 'success' | 'warning' | 'danger' | null
93
+ | 'neutral'
94
+ | 'accent'
95
+ | 'accent-secondary'
96
+ | 'accent-tertiary'
97
+ | 'info'
98
+ | 'success'
99
+ | 'warning'
100
+ | 'danger'
101
+ | null
85
102
  >,
86
103
  },
87
104
  treatment: { type: null as unknown as PropType<'standard' | 'expressive' | null> },
@@ -142,11 +159,25 @@ const checkedProps = computed(() => {
142
159
  props['size'],
143
160
  props[BINDING_INPUTS_PROP],
144
161
  ) as 'content' | 'sm' | 'md' | 'lg',
145
- tone: propInputs.value<'neutral' | 'accent' | 'info' | 'success' | 'warning' | 'danger' | null>(
146
- 'tone',
147
- props['tone'],
148
- props[BINDING_INPUTS_PROP],
149
- ) as 'neutral' | 'accent' | 'info' | 'success' | 'warning' | 'danger',
162
+ tone: propInputs.value<
163
+ | 'neutral'
164
+ | 'accent'
165
+ | 'accent-secondary'
166
+ | 'accent-tertiary'
167
+ | 'info'
168
+ | 'success'
169
+ | 'warning'
170
+ | 'danger'
171
+ | null
172
+ >('tone', props['tone'], props[BINDING_INPUTS_PROP]) as
173
+ | 'neutral'
174
+ | 'accent'
175
+ | 'accent-secondary'
176
+ | 'accent-tertiary'
177
+ | 'info'
178
+ | 'success'
179
+ | 'warning'
180
+ | 'danger',
150
181
  treatment: propInputs.value<'standard' | 'expressive' | null>(
151
182
  'treatment',
152
183
  props['treatment'],
@@ -288,6 +319,7 @@ const hostState = computed(() =>
288
319
  @scope (.ui-card) to ([data-hn]) {
289
320
  :global(:scope:where([data-hn-ui-card])) {
290
321
  --_ui-card-surface: var(--ui-surface-raised);
322
+ --_ui-surface-text: initial;
291
323
  --_ui-card-elevation: 0 0 0 transparent;
292
324
  --_ui-selection-context-surface: initial;
293
325
  --_ui-selection-context-border: initial;
@@ -301,7 +333,7 @@ const hostState = computed(() =>
301
333
  border: var(--ui-border-width) solid var(--ui-border-strong);
302
334
  border-radius: var(--ui-radius-lg);
303
335
  background: var(--_ui-card-surface);
304
- color: var(--ui-text-primary);
336
+ color: var(--_ui-surface-text, var(--ui-text-primary));
305
337
  }
306
338
 
307
339
  :global(:scope[data-ui-card-state~="padding=xs"]:where([data-hn-ui-card])) {
@@ -329,13 +361,9 @@ const hostState = computed(() =>
329
361
  }
330
362
 
331
363
  :global(:scope[data-ui-card-state~="treatment=expressive"]:where([data-hn-ui-card])) {
332
- --_ui-panel-glass: calc(
333
- clamp(0, var(--ui-glassiness, 0), 1) + 2 * pow(clamp(0, var(--ui-glassiness, 0), 1), 4)
334
- );
364
+ --_ui-panel-glass: clamp(0, var(--ui-glassiness, 0), 1);
335
365
  --_ui-panel-separation: clamp(0, var(--ui-surface-separation, 0), 1);
336
- --_ui-panel-rim: calc(
337
- (var(--_ui-panel-separation) + var(--_ui-panel-glass) * 0.25) * 0.65 * 8px
338
- );
366
+ --_ui-panel-rim: calc(var(--_ui-panel-separation) * 8px);
339
367
  border-width: calc(var(--ui-border-width) + var(--_ui-panel-rim));
340
368
  border-color: transparent;
341
369
  background:
@@ -350,10 +378,8 @@ const hostState = computed(() =>
350
378
  var(--_ui-card-elevation),
351
379
  var(--ui-material-glow, 0 0 transparent),
352
380
  inset 0 0 0 var(--ui-border-width) var(--ui-material-edge, var(--ui-border-strong));
353
- backdrop-filter: blur(calc(var(--_ui-panel-glass) * 0.65 * 18px))
354
- saturate(calc(1 + var(--_ui-panel-glass) * 0.65 * 0.18));
355
- -webkit-backdrop-filter: blur(calc(var(--_ui-panel-glass) * 0.65 * 18px))
356
- saturate(calc(1 + var(--_ui-panel-glass) * 0.65 * 0.18));
381
+ -webkit-backdrop-filter: blur(calc(var(--_ui-panel-glass) * 32px));
382
+ backdrop-filter: blur(calc(var(--_ui-panel-glass) * 32px));
357
383
  }
358
384
  @supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
359
385
  :global(:scope[data-ui-card-state~="treatment=expressive"]:where([data-hn-ui-card])) {
@@ -365,8 +391,8 @@ const hostState = computed(() =>
365
391
  background: var(--_ui-card-surface);
366
392
  border-width: var(--ui-border-width);
367
393
  border-color: var(--ui-border-strong);
368
- backdrop-filter: none;
369
394
  -webkit-backdrop-filter: none;
395
+ backdrop-filter: none;
370
396
  }
371
397
  }
372
398
  @media (forced-colors: active) {
@@ -375,40 +401,59 @@ const hostState = computed(() =>
375
401
  color: CanvasText;
376
402
  border: var(--ui-border-width) solid CanvasText;
377
403
  box-shadow: none;
378
- backdrop-filter: none;
379
404
  -webkit-backdrop-filter: none;
405
+ backdrop-filter: none;
380
406
  }
381
407
  }
382
408
 
409
+ :global(:scope[data-ui-card-state~="tone=accent-secondary"]:where([data-hn-ui-card])) {
410
+ border-color: var(--ui-accent-secondary-soft-border);
411
+ --_ui-card-surface: var(--ui-accent-secondary-soft);
412
+ --_ui-surface-text: var(--ui-accent-secondary-subtle-text);
413
+ }
414
+
415
+ :global(:scope[data-ui-card-state~="tone=accent-tertiary"]:where([data-hn-ui-card])) {
416
+ border-color: var(--ui-accent-tertiary-soft-border);
417
+ --_ui-card-surface: var(--ui-accent-tertiary-soft);
418
+ --_ui-surface-text: var(--ui-accent-tertiary-subtle-text);
419
+ }
420
+
383
421
  :global(:scope[data-ui-card-state~="tone=accent"]:where([data-hn-ui-card])) {
384
- border-color: color-mix(in srgb, var(--ui-accent) 25%, var(--ui-border-default));
385
- --_ui-card-surface: color-mix(in srgb, var(--ui-accent) 6%, var(--ui-surface-default));
422
+ border-color: var(--ui-accent-soft-border);
423
+ --_ui-card-surface: var(--ui-accent-soft);
424
+ --_ui-surface-text: var(--ui-accent-subtle-text);
386
425
  }
387
426
 
388
427
  :global(:scope[data-ui-card-state~="tone=info"]:where([data-hn-ui-card])) {
389
- border-color: color-mix(in srgb, var(--ui-info) 25%, var(--ui-border-default));
390
- --_ui-card-surface: color-mix(in srgb, var(--ui-info) 6%, var(--ui-surface-default));
428
+ border-color: var(--ui-info-soft-border);
429
+ --_ui-card-surface: var(--ui-info-soft);
430
+ --_ui-surface-text: var(--ui-info-subtle-text);
391
431
  }
392
432
 
393
433
  :global(:scope[data-ui-card-state~="tone=success"]:where([data-hn-ui-card])) {
394
- border-color: color-mix(in srgb, var(--ui-success) 25%, var(--ui-border-default));
395
- --_ui-card-surface: color-mix(in srgb, var(--ui-success) 6%, var(--ui-surface-default));
434
+ border-color: var(--ui-success-soft-border);
435
+ --_ui-card-surface: var(--ui-success-soft);
436
+ --_ui-surface-text: var(--ui-success-subtle-text);
396
437
  }
397
438
 
398
439
  :global(:scope[data-ui-card-state~="tone=warning"]:where([data-hn-ui-card])) {
399
- border-color: color-mix(in srgb, var(--ui-warning) 25%, var(--ui-border-default));
400
- --_ui-card-surface: color-mix(in srgb, var(--ui-warning) 6%, var(--ui-surface-default));
440
+ border-color: var(--ui-warning-soft-border);
441
+ --_ui-card-surface: var(--ui-warning-soft);
442
+ --_ui-surface-text: var(--ui-warning-subtle-text);
401
443
  }
402
444
 
403
- :global(:scope[data-ui-card-state~="variant=subtle"]:is([data-ui-card-state~="tone=accent"], [data-ui-card-state~="tone=info"], [data-ui-card-state~="tone=success"], [data-ui-card-state~="tone=warning"]):where([data-hn-ui-card])) {
445
+ :global(:scope[data-ui-card-state~="variant=subtle"]:is([data-ui-card-state~="tone=accent"], [data-ui-card-state~="tone=accent-secondary"], [data-ui-card-state~="tone=accent-tertiary"], [data-ui-card-state~="tone=info"], [data-ui-card-state~="tone=success"], [data-ui-card-state~="tone=warning"]):where([data-hn-ui-card])) {
404
446
  border-color: transparent;
405
447
  }
406
448
 
407
449
  :global(:scope[data-ui-card-state~="tone=danger"]:where([data-hn-ui-card])) {
408
- border-color: color-mix(in srgb, var(--ui-danger) 45%, var(--ui-border-default));
450
+ border-color: var(--ui-danger-soft-border);
409
451
  --_ui-card-surface: var(--ui-danger-soft);
452
+ --_ui-surface-text: var(--ui-danger-subtle-text);
410
453
  }
411
454
  :global(:scope[data-ui-card-state~="tone=accent"]:where([data-hn-ui-card])),
455
+ :global(:scope[data-ui-card-state~="tone=accent-secondary"]:where([data-hn-ui-card])),
456
+ :global(:scope[data-ui-card-state~="tone=accent-tertiary"]:where([data-hn-ui-card])),
412
457
  :global(:scope[data-ui-card-state~="tone=info"]:where([data-hn-ui-card])),
413
458
  :global(:scope[data-ui-card-state~="tone=success"]:where([data-hn-ui-card])),
414
459
  :global(:scope[data-ui-card-state~="tone=warning"]:where([data-hn-ui-card])),
@@ -361,20 +361,6 @@ useComponentHost(() => import('../components/ui-checkbox/ui-checkbox.js'), {
361
361
  </template>
362
362
 
363
363
  <style scoped>
364
- /* This component's hooks style the element they are set on, and never a nested one. */
365
- @property --ui-checkbox-gap {
366
- syntax: "*";
367
- inherits: false;
368
- }
369
- @property --ui-checkbox-invalid-border {
370
- syntax: "*";
371
- inherits: false;
372
- }
373
- @property --ui-checkbox-size {
374
- syntax: "*";
375
- inherits: false;
376
- }
377
-
378
364
  /* The label, and under it an optional line saying what the choice means. */
379
365
 
380
366
  /* The SVG's painted bounds are centred in its viewBox, including its round stroke.
@@ -403,7 +389,7 @@ useComponentHost(() => import('../components/ui-checkbox/ui-checkbox.js'), {
403
389
 
404
390
  @scope (.ui-checkbox) to ([data-hn]) {
405
391
  :global(:scope:where([data-hn-ui-checkbox])) {
406
- /* Hooks do not inherit, so the parts below read them from the root. */
392
+ /* Resolve shared part values at the component root. */
407
393
  --_ui-checkbox-size: var(--ui-checkbox-size, var(--ui-choice-mark-size));
408
394
  --_ui-checkbox-invalid-border: var(
409
395
  --ui-checkbox-invalid-border,
@@ -496,7 +482,7 @@ useComponentHost(() => import('../components/ui-checkbox/ui-checkbox.js'), {
496
482
  border-color: var(--ui-accent-solid);
497
483
  background-color: var(--ui-accent-solid);
498
484
  background-image: var(--ui-accent-highlight, none);
499
- box-shadow: var(--ui-control-inset);
485
+ box-shadow: none;
500
486
  }
501
487
  :global(input:checked:where([data-hn-ui-checkbox])::after) {
502
488
  inset: 50% auto auto 50% !important;
package/vue/UiCluster.vue CHANGED
@@ -39,7 +39,7 @@ const propValidityContract = {
39
39
  required: false,
40
40
  target: { attribute: 'gap' },
41
41
  description:
42
- 'Space between items, on the spacing scale: xs is 0.5rem, s 0.75rem (also the default), m 1rem, l 1.5rem, and xl 2rem. The --ui-cluster-gap custom property,\n set on the cluster itself, overrides it; set on an ancestor, it does nothing.',
42
+ 'Space between items, on the spacing scale: xs is 0.5rem, s 0.75rem (also the default), m 1rem, l 1.5rem, and xl 2rem. The --ui-cluster-gap custom property,\n set on :root, an ancestor, or the component itself, overrides it.',
43
43
  values: ['xs', 's', 'm', 'l', 'xl'],
44
44
  },
45
45
  justify: {
@@ -222,14 +222,7 @@ const hostState = computed(() =>
222
222
  </template>
223
223
 
224
224
  <style scoped>
225
- /* This component's hooks style the element they are set on, and never a nested one. */
226
- @property --ui-cluster-gap {
227
- syntax: "*";
228
- inherits: false;
229
- }
230
-
231
225
  /* A component that sets its display still honours the hidden attribute on its root. */
232
-
233
226
  @scope (.ui-cluster) to ([data-hn]) {
234
227
  :global(:scope:where([data-hn-ui-cluster])) {
235
228
  --_layout-gap: var(--ui-space-3);
@@ -241,7 +234,6 @@ const hostState = computed(() =>
241
234
  max-inline-size: 100%;
242
235
  margin: 0 !important;
243
236
  }
244
-
245
237
  :global(:scope[data-ui-cluster-state~="fixed"]:where([data-hn-ui-cluster])) {
246
238
  flex: none;
247
239
  }
@@ -266,7 +258,6 @@ const hostState = computed(() =>
266
258
  :global(:scope[data-ui-cluster-state~="paddingEnd=xl"]:where([data-hn-ui-cluster])) {
267
259
  padding-inline-end: calc(var(--ui-space-4) * 4) !important;
268
260
  }
269
-
270
261
  :global(:scope[data-ui-cluster-state~="gap=xs"]:where([data-hn-ui-cluster])) {
271
262
  --_layout-gap: var(--ui-space-2);
272
263
  }
@@ -197,7 +197,7 @@ const propValidityContract = {
197
197
  required: false,
198
198
  target: { attribute: 'muted' },
199
199
  description:
200
- 'Shows the selected field value with supporting-text emphasis, for an inherited or default choice. Suggestions keep normal emphasis and the field stays interactive.',
200
+ 'Shows the selected field value with supporting-text emphasis, for an inherited or default choice. Suggestions keep normal emphasis and the field stays\n interactive.',
201
201
  default: false,
202
202
  },
203
203
  name: {
@@ -213,7 +213,7 @@ const propValidityContract = {
213
213
  required: false,
214
214
  target: { attribute: 'openonfocus' },
215
215
  description:
216
- 'Opens suggestions when the input receives focus or is clicked. A committed selection shows all choices until typing filters them; an explicitly supplied query keeps its filtering.',
216
+ 'Opens suggestions when the input receives focus or is clicked. A committed selection shows all choices until typing filters them; an explicitly supplied\n query keeps its filtering.',
217
217
  default: false,
218
218
  },
219
219
  placeholder: {
@@ -2071,73 +2071,8 @@ useComponentHost(() => import('../components/ui-combobox/ui-combobox.js'), {
2071
2071
  </template>
2072
2072
 
2073
2073
  <style scoped>
2074
- /* This component's hooks style the element they are set on, and never a nested one. */
2075
- @property --ui-combobox-affordance-text {
2076
- syntax: "*";
2077
- inherits: false;
2078
- }
2079
- @property --ui-combobox-item-input-min-inline-size {
2080
- syntax: "*";
2081
- inherits: false;
2082
- }
2083
- @property --ui-combobox-item-item-max-inline-size {
2084
- syntax: "*";
2085
- inherits: false;
2086
- }
2087
- @property --ui-combobox-item-min-block-size {
2088
- syntax: "*";
2089
- inherits: false;
2090
- }
2091
- @property --ui-combobox-label-font-size {
2092
- syntax: "*";
2093
- inherits: false;
2094
- }
2095
- @property --ui-combobox-label-text {
2096
- syntax: "*";
2097
- inherits: false;
2098
- }
2099
- @property --ui-combobox-max-block-size {
2100
- syntax: "*";
2101
- inherits: false;
2102
- }
2103
- @property --ui-combobox-message-text {
2104
- syntax: "*";
2105
- inherits: false;
2106
- }
2107
- @property --ui-combobox-option-check {
2108
- syntax: "*";
2109
- inherits: false;
2110
- }
2111
- @property --ui-combobox-option-text {
2112
- syntax: "*";
2113
- inherits: false;
2114
- }
2115
- @property --ui-combobox-radius {
2116
- syntax: "*";
2117
- inherits: false;
2118
- }
2119
- @property --ui-combobox-invalid-border {
2120
- syntax: "*";
2121
- inherits: false;
2122
- }
2123
- @property --ui-combobox-popup-surface {
2124
- syntax: "*";
2125
- inherits: false;
2126
- }
2127
- @property --ui-combobox-popup-border {
2128
- syntax: "*";
2129
- inherits: false;
2130
- }
2131
- @property --ui-combobox-popup-radius {
2132
- syntax: "*";
2133
- inherits: false;
2134
- }
2135
- @property --ui-combobox-popup-shadow {
2136
- syntax: "*";
2137
- inherits: false;
2138
- }
2139
2074
  /* The field and anything that annotates it sit on one row; the help button is beside the box,
2140
- not inside it, because a control's box holds its value. */
2075
+ not inside it, because a control's box holds its value. */
2141
2076
  /* A ghost icon button: the affordance is the mark, not a box around it. */
2142
2077
  /* A row with a tag or a description: the label and its tag on one line, the description under them. */
2143
2078
 
@@ -2150,7 +2085,7 @@ useComponentHost(() => import('../components/ui-combobox/ui-combobox.js'), {
2150
2085
 
2151
2086
  @scope (.ui-combobox) to ([data-hn]) {
2152
2087
  :global(:scope:where([data-hn-ui-combobox])) {
2153
- /* Hooks do not inherit, so the parts below read them from the root. */
2088
+ /* Resolve shared part values at the component root. */
2154
2089
  --_ui-combobox-label-text: var(--ui-combobox-label-text);
2155
2090
  --_ui-combobox-label-font-size: var(--ui-combobox-label-font-size);
2156
2091
  --_ui-combobox-affordance-text: var(--ui-combobox-affordance-text);
@@ -2177,7 +2112,10 @@ useComponentHost(() => import('../components/ui-combobox/ui-combobox.js'), {
2177
2112
  }
2178
2113
  :global(label:where([data-hn-ui-combobox])) {
2179
2114
  color: var(--_ui-combobox-label-text, var(--ui-text-primary));
2180
- font-size: var(--_ui-combobox-label-font-size, var(--ui-font-size-sm));
2115
+ font-size: var(
2116
+ --_ui-combobox-label-font-size,
2117
+ var(--ui-field-label-font-size, var(--ui-font-size-md))
2118
+ );
2181
2119
  font-weight: 500;
2182
2120
  }
2183
2121
  :global(.control:where([data-hn-ui-combobox])) {
@@ -2510,7 +2448,7 @@ useComponentHost(() => import('../components/ui-combobox/ui-combobox.js'), {
2510
2448
 
2511
2449
  @scope ([data-slotted~="ui-combobox"]:not([data-hn])) to ([data-hn], [data-slotted]) {
2512
2450
  :global(:where(.ui-combobox):where(:scope, :not([data-hn], [data-slotted]:not([data-slotted~="ui-combobox"]))):where([data-hn-ui-combobox])) {
2513
- /* Hooks do not inherit, so the parts below read them from the root. */
2451
+ /* Resolve shared part values at the component root. */
2514
2452
  --_ui-combobox-label-text: var(--ui-combobox-label-text);
2515
2453
  --_ui-combobox-label-font-size: var(--ui-combobox-label-font-size);
2516
2454
  --_ui-combobox-affordance-text: var(--ui-combobox-affordance-text);
@@ -2537,7 +2475,10 @@ useComponentHost(() => import('../components/ui-combobox/ui-combobox.js'), {
2537
2475
  }
2538
2476
  :global(label:where(:scope, :scope *):where([data-hn-ui-combobox])) {
2539
2477
  color: var(--_ui-combobox-label-text, var(--ui-text-primary));
2540
- font-size: var(--_ui-combobox-label-font-size, var(--ui-font-size-sm));
2478
+ font-size: var(
2479
+ --_ui-combobox-label-font-size,
2480
+ var(--ui-field-label-font-size, var(--ui-font-size-md))
2481
+ );
2541
2482
  font-weight: 500;
2542
2483
  }
2543
2484
  :global(.control:where(:scope, :scope *):where([data-hn-ui-combobox])) {
@@ -40,7 +40,7 @@ const propValidityContract = {
40
40
  required: false,
41
41
  target: { attribute: 'measure' },
42
42
  description:
43
- 'The container\'s maximum width, in characters of the current font: narrow is 45ch, wide is 80ch, and unset is 65ch, a comfortable reading line. The\n container centres itself when its parent is wider. The --ui-container-measure custom property, set on the container itself, overrides it; set on an\n ancestor, it does nothing.',
43
+ 'The container\'s maximum width, in characters of the current font: narrow is 45ch, wide is 80ch, and unset is 65ch, a comfortable reading line. The\n container centres itself when its parent is wider. The --ui-container-measure custom property, set on :root, an ancestor, or the container itself,\n overrides it.',
44
44
  values: ['narrow', 'wide'],
45
45
  },
46
46
  },
@@ -136,18 +136,7 @@ const hostState = computed(() =>
136
136
  </template>
137
137
 
138
138
  <style scoped>
139
- /* This component's hooks style the element they are set on, and never a nested one. */
140
- @property --ui-container-gutters {
141
- syntax: "*";
142
- inherits: false;
143
- }
144
- @property --ui-container-measure {
145
- syntax: "*";
146
- inherits: false;
147
- }
148
-
149
139
  /* A component that sets its display still honours the hidden attribute on its root. */
150
-
151
140
  @scope (.ui-container) to ([data-hn]) {
152
141
  :global(:scope:where([data-hn-ui-container])) {
153
142
  --_container-measure: 65ch;
@@ -158,7 +147,6 @@ const hostState = computed(() =>
158
147
  margin-inline: auto !important;
159
148
  padding-inline: var(--ui-container-gutters, var(--_container-gutters)) !important;
160
149
  }
161
-
162
150
  :global(:scope[data-ui-container-state~="measure=narrow"]:where([data-hn-ui-container])) {
163
151
  --_container-measure: 45ch;
164
152
  }
@@ -213,33 +213,10 @@ useComponentHost(() => import('../components/ui-context-menu/ui-context-menu.js'
213
213
  </template>
214
214
 
215
215
  <style scoped>
216
- /* This component's hooks style the element they are set on, and never a nested one. */
217
- @property --ui-context-menu-surface {
218
- syntax: "*";
219
- inherits: false;
220
- }
221
- @property --ui-context-menu-border {
222
- syntax: "*";
223
- inherits: false;
224
- }
225
- @property --ui-context-menu-radius {
226
- syntax: "*";
227
- inherits: false;
228
- }
229
- @property --ui-context-menu-shadow {
230
- syntax: "*";
231
- inherits: false;
232
- }
233
- @property --ui-context-menu-z-index {
234
- syntax: "*";
235
- inherits: false;
236
- }
237
-
238
216
  /* A component that sets its display still honours the hidden attribute on its root. */
239
-
240
217
  @scope (.ui-context-menu) to ([data-hn]) {
241
218
  :global(:scope:where([data-hn-ui-context-menu])) {
242
- /* Hooks do not inherit, so the parts below read them from the root. */
219
+ /* Resolve shared part values at the component root. */
243
220
  --_ui-context-menu-surface: var(--ui-context-menu-surface);
244
221
  --_ui-context-menu-border: var(--ui-context-menu-border);
245
222
  --_ui-context-menu-radius: var(--ui-context-menu-radius);
@@ -248,7 +225,6 @@ useComponentHost(() => import('../components/ui-context-menu/ui-context-menu.js'
248
225
 
249
226
  display: contents !important;
250
227
  }
251
-
252
228
  :global(.menu:where([data-hn-ui-context-menu])) {
253
229
  position: fixed;
254
230
  inset: auto;
@@ -280,7 +256,6 @@ useComponentHost(() => import('../components/ui-context-menu/ui-context-menu.js'
280
256
  display var(--ui-motion-fast) allow-discrete,
281
257
  overlay var(--ui-motion-fast) allow-discrete;
282
258
  }
283
-
284
259
  :global(.menu hr:where([data-hn-ui-context-menu])) {
285
260
  align-self: stretch;
286
261
  block-size: 0;
@@ -288,24 +263,20 @@ useComponentHost(() => import('../components/ui-context-menu/ui-context-menu.js'
288
263
  border: 0;
289
264
  border-block-start: var(--ui-border-width) solid var(--ui-border-divider);
290
265
  }
291
-
292
266
  :global(.menu:popover-open:where([data-hn-ui-context-menu])) {
293
267
  opacity: 1;
294
268
  transform: translateY(0) scale(1);
295
269
  }
296
-
297
270
  @starting-style {
298
271
  :global(.menu:popover-open:where([data-hn-ui-context-menu])) {
299
272
  opacity: 0;
300
273
  transform: translateY(-4px) scale(0.99);
301
274
  }
302
275
  }
303
-
304
276
  :global(.menu[hidden]:where([data-hn-ui-context-menu])),
305
277
  :global(.menu[popover]:not(:popover-open):where([data-hn-ui-context-menu])) {
306
278
  display: none !important;
307
279
  }
308
-
309
280
  @media (prefers-reduced-motion: reduce) {
310
281
  :global(.menu:where([data-hn-ui-context-menu])) {
311
282
  transition: none;