@threadlabs/looma 0.42.0 → 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 (249) hide show
  1. package/components/ui-action-bar/ui-action-bar.html +1 -7
  2. package/components/ui-affordance-scope/ui-affordance-scope.html +4 -4
  3. package/components/ui-avatar/ui-avatar.html +0 -22
  4. package/components/ui-avatar-group/ui-avatar-group.html +1 -11
  5. package/components/ui-badge/ui-badge.html +57 -78
  6. package/components/ui-button/ui-button.html +36 -81
  7. package/components/ui-callout/ui-callout.html +30 -68
  8. package/components/ui-card/ui-card.html +41 -15
  9. package/components/ui-checkbox/ui-checkbox.html +1 -15
  10. package/components/ui-cluster/ui-cluster.html +1 -7
  11. package/components/ui-combobox/ui-combobox.html +7 -70
  12. package/components/ui-container/ui-container.html +2 -12
  13. package/components/ui-context-menu/ui-context-menu.html +1 -23
  14. package/components/ui-dialog/ui-dialog.html +1 -31
  15. package/components/ui-disclosure/ui-disclosure.html +1 -15
  16. package/components/ui-editor-table-overlay/ui-editor-table-overlay.html +2 -2
  17. package/components/ui-floating-action-button/ui-floating-action-button.html +0 -14
  18. package/components/ui-form-field/ui-form-field.html +2 -32
  19. package/components/ui-grid/ui-grid.html +1 -11
  20. package/components/ui-icon/ui-icon.html +1 -12
  21. package/components/ui-icon-button/ui-icon-button.html +52 -87
  22. package/components/ui-input/ui-input.html +5 -55
  23. package/components/ui-input-group/ui-input-group.html +1 -13
  24. package/components/ui-list/ui-list.html +0 -10
  25. package/components/ui-list-item/ui-list-item.html +1 -19
  26. package/components/ui-listbox/ui-listbox.html +0 -21
  27. package/components/ui-menu/ui-menu.html +0 -22
  28. package/components/ui-menu-item/ui-menu-item.html +0 -26
  29. package/components/ui-meter/ui-meter.html +11 -6
  30. package/components/ui-nav-item/ui-nav-item.html +0 -18
  31. package/components/ui-popover/ui-popover.html +0 -30
  32. package/components/ui-radio/ui-radio.html +7 -13
  33. package/components/ui-radio-group/ui-radio-group.html +0 -5
  34. package/components/ui-reel/ui-reel.html +1 -11
  35. package/components/ui-search-result-row/ui-search-result-row.html +0 -34
  36. package/components/ui-search-shell/ui-search-shell.html +1 -43
  37. package/components/ui-select/ui-select.html +0 -42
  38. package/components/ui-separator/ui-separator.html +0 -6
  39. package/components/ui-sidebar/ui-sidebar.html +2 -24
  40. package/components/ui-site-header/ui-site-header.html +0 -25
  41. package/components/ui-skeleton/ui-skeleton.html +0 -9
  42. package/components/ui-stack/ui-stack.html +6 -11
  43. package/components/ui-swatch/ui-swatch.html +0 -5
  44. package/components/ui-switch/ui-switch.html +1 -15
  45. package/components/ui-switcher/ui-switcher.html +1 -11
  46. package/components/ui-tabs/ui-tabs.html +1 -19
  47. package/components/ui-text/ui-text.html +19 -6
  48. package/components/ui-textarea/ui-textarea.html +0 -50
  49. package/components/ui-toast/ui-toast.html +12 -27
  50. package/components/ui-toast-region/ui-toast-region.html +13 -34
  51. package/components/ui-tooltip/ui-tooltip.html +1 -43
  52. package/components/ui-top-bar/ui-top-bar.html +1 -31
  53. package/components/ui-tree/ui-tree.html +1 -16
  54. package/components/ui-tree-item/ui-tree-item.html +1 -23
  55. package/components/ui-tree-item/ui-tree-item.js +0 -1
  56. package/dist/index.js +1 -1
  57. package/docs/README.md +11 -9
  58. package/docs/catalog.json +606 -191
  59. package/docs/customizer-render.mjs +20 -8
  60. package/docs/customizer.js +40 -2
  61. package/docs/palette.mjs +5 -4
  62. package/docs/theme.mjs +97 -35
  63. package/docs/value-editors.mjs +2 -1
  64. package/package.json +2 -2
  65. package/styles/ui-action-bar.css +3 -11
  66. package/styles/ui-affordance-scope.css +4 -4
  67. package/styles/ui-avatar-group.css +3 -15
  68. package/styles/ui-avatar.css +2 -26
  69. package/styles/ui-badge.css +56 -80
  70. package/styles/ui-button.css +35 -83
  71. package/styles/ui-callout.css +32 -72
  72. package/styles/ui-card.css +36 -12
  73. package/styles/ui-checkbox.css +3 -19
  74. package/styles/ui-cluster.css +2 -10
  75. package/styles/ui-combobox.css +7 -140
  76. package/styles/ui-container.css +2 -14
  77. package/styles/ui-context-menu.css +3 -27
  78. package/styles/ui-dialog.css +5 -67
  79. package/styles/ui-disclosure.css +3 -19
  80. package/styles/ui-editor-table-overlay.css +2 -2
  81. package/styles/ui-floating-action-button.css +2 -18
  82. package/styles/ui-form-field.css +4 -36
  83. package/styles/ui-grid.css +2 -14
  84. package/styles/ui-icon-button.css +51 -89
  85. package/styles/ui-icon.css +3 -16
  86. package/styles/ui-input-group.css +2 -14
  87. package/styles/ui-input.css +6 -57
  88. package/styles/ui-list-item.css +3 -23
  89. package/styles/ui-list.css +2 -14
  90. package/styles/ui-listbox.css +2 -44
  91. package/styles/ui-menu-item.css +2 -30
  92. package/styles/ui-menu.css +2 -26
  93. package/styles/ui-meter.css +8 -4
  94. package/styles/ui-nav-item.css +2 -22
  95. package/styles/ui-popover.css +2 -34
  96. package/styles/ui-radio-group.css +1 -6
  97. package/styles/ui-radio.css +9 -17
  98. package/styles/ui-reel.css +2 -14
  99. package/styles/ui-search-result-row.css +2 -38
  100. package/styles/ui-search-shell.css +3 -47
  101. package/styles/ui-select.css +2 -46
  102. package/styles/ui-separator.css +2 -10
  103. package/styles/ui-sidebar.css +4 -28
  104. package/styles/ui-site-header.css +1 -26
  105. package/styles/ui-skeleton.css +2 -12
  106. package/styles/ui-stack.css +4 -12
  107. package/styles/ui-swatch.css +1 -6
  108. package/styles/ui-switch.css +3 -19
  109. package/styles/ui-switcher.css +2 -14
  110. package/styles/ui-tabs.css +3 -23
  111. package/styles/ui-text.css +10 -2
  112. package/styles/ui-textarea.css +2 -54
  113. package/styles/ui-toast-region.css +29 -73
  114. package/styles/ui-toast.css +24 -54
  115. package/styles/ui-tooltip.css +3 -47
  116. package/styles/ui-top-bar.css +3 -35
  117. package/styles/ui-tree-item.css +5 -51
  118. package/styles/ui-tree.css +3 -20
  119. package/theme-system.css +6 -2
  120. package/tokens.css +55 -21
  121. package/vanilla/UiBadge.d.ts +1 -1
  122. package/vanilla/UiBadge.js +1 -1
  123. package/vanilla/UiButton.d.ts +1 -1
  124. package/vanilla/UiButton.js +1 -1
  125. package/vanilla/UiCard.d.ts +1 -1
  126. package/vanilla/UiCard.js +1 -1
  127. package/vanilla/UiIconButton.d.ts +1 -1
  128. package/vanilla/UiIconButton.js +1 -1
  129. package/vanilla/UiMeter.d.ts +1 -1
  130. package/vanilla/UiMeter.js +1 -1
  131. package/vanilla/UiStack.js +1 -1
  132. package/vanilla/UiText.d.ts +1 -1
  133. package/vanilla/UiText.js +1 -1
  134. package/vue/UiActionBar.vue +3 -9
  135. package/vue/UiAffordanceScope.vue +4 -4
  136. package/vue/UiAvatar.vue +1 -28
  137. package/vue/UiAvatarGroup.vue +1 -11
  138. package/vue/UiBadge.d.ts +2 -2
  139. package/vue/UiBadge.vue +84 -81
  140. package/vue/UiButton.d.ts +2 -2
  141. package/vue/UiButton.vue +78 -97
  142. package/vue/UiCallout.vue +30 -71
  143. package/vue/UiCard.d.ts +2 -2
  144. package/vue/UiCard.vue +71 -20
  145. package/vue/UiCheckbox.vue +1 -15
  146. package/vue/UiCluster.vue +1 -10
  147. package/vue/UiCombobox.vue +13 -72
  148. package/vue/UiContainer.vue +1 -13
  149. package/vue/UiContextMenu.vue +1 -30
  150. package/vue/UiDialog.vue +3 -33
  151. package/vue/UiDisclosure.vue +1 -15
  152. package/vue/UiEditorTableOverlay.vue +2 -2
  153. package/vue/UiFloatingActionButton.vue +0 -22
  154. package/vue/UiFormField.vue +6 -33
  155. package/vue/UiGrid.vue +1 -13
  156. package/vue/UiIcon.vue +1 -16
  157. package/vue/UiIconButton.d.ts +2 -2
  158. package/vue/UiIconButton.vue +103 -99
  159. package/vue/UiInput.vue +1 -54
  160. package/vue/UiInputGroup.vue +8 -20
  161. package/vue/UiList.vue +2 -12
  162. package/vue/UiListItem.vue +8 -26
  163. package/vue/UiListbox.vue +0 -23
  164. package/vue/UiMenu.vue +1 -23
  165. package/vue/UiMenuItem.vue +0 -26
  166. package/vue/UiMeter.d.ts +2 -2
  167. package/vue/UiMeter.vue +47 -12
  168. package/vue/UiNavItem.vue +3 -21
  169. package/vue/UiPopover.vue +1 -32
  170. package/vue/UiRadio.vue +1 -11
  171. package/vue/UiRadioGroup.vue +0 -11
  172. package/vue/UiReel.vue +1 -11
  173. package/vue/UiSearchResultRow.vue +0 -35
  174. package/vue/UiSearchShell.vue +1 -53
  175. package/vue/UiSelect.vue +0 -42
  176. package/vue/UiSeparator.vue +0 -7
  177. package/vue/UiSidebar.vue +3 -26
  178. package/vue/UiSiteHeader.vue +0 -24
  179. package/vue/UiSkeleton.vue +0 -9
  180. package/vue/UiStack.vue +6 -11
  181. package/vue/UiSwatch.vue +1 -6
  182. package/vue/UiSwitch.vue +1 -15
  183. package/vue/UiSwitcher.vue +1 -14
  184. package/vue/UiTabs.vue +1 -19
  185. package/vue/UiText.d.ts +2 -2
  186. package/vue/UiText.vue +29 -4
  187. package/vue/UiTextarea.vue +0 -50
  188. package/vue/UiToast.vue +26 -34
  189. package/vue/UiToastRegion.vue +26 -55
  190. package/vue/UiTooltip.vue +1 -43
  191. package/vue/UiTopBar.vue +1 -34
  192. package/vue/UiTree.vue +2 -17
  193. package/vue/UiTreeItem.vue +2 -28
  194. package/vue/chunks/UiActionBar.js +1 -1
  195. package/vue/chunks/UiAffordanceScope.js +1 -1
  196. package/vue/chunks/UiAvatar.js +1 -1
  197. package/vue/chunks/UiAvatarGroup.js +1 -1
  198. package/vue/chunks/UiBadge.js +4 -2
  199. package/vue/chunks/UiButton.js +4 -2
  200. package/vue/chunks/UiCallout.js +1 -1
  201. package/vue/chunks/UiCard.js +5 -3
  202. package/vue/chunks/UiCheckbox.js +1 -1
  203. package/vue/chunks/UiCluster.js +2 -2
  204. package/vue/chunks/UiCombobox.js +3 -3
  205. package/vue/chunks/UiContainer.js +2 -2
  206. package/vue/chunks/UiContextMenu.js +1 -1
  207. package/vue/chunks/UiDialog.js +1 -1
  208. package/vue/chunks/UiDisclosure.js +1 -1
  209. package/vue/chunks/UiEditorTableOverlay.js +1 -1
  210. package/vue/chunks/UiFloatingActionButton.js +1 -1
  211. package/vue/chunks/UiFormField.js +1 -1
  212. package/vue/chunks/UiGrid.js +2 -2
  213. package/vue/chunks/UiIcon.js +1 -1
  214. package/vue/chunks/UiIconButton.js +4 -2
  215. package/vue/chunks/UiInput.js +1 -1
  216. package/vue/chunks/UiInputGroup.js +1 -1
  217. package/vue/chunks/UiList.js +1 -1
  218. package/vue/chunks/UiListItem.js +1 -1
  219. package/vue/chunks/UiListbox.js +1 -1
  220. package/vue/chunks/UiMenu.js +1 -1
  221. package/vue/chunks/UiMenuItem.js +1 -1
  222. package/vue/chunks/UiMeter.js +4 -2
  223. package/vue/chunks/UiNavItem.js +1 -1
  224. package/vue/chunks/UiPopover.js +1 -1
  225. package/vue/chunks/UiRadio.js +1 -1
  226. package/vue/chunks/UiRadioGroup.js +1 -1
  227. package/vue/chunks/UiReel.js +2 -2
  228. package/vue/chunks/UiSearchResultRow.js +1 -1
  229. package/vue/chunks/UiSearchShell.js +1 -1
  230. package/vue/chunks/UiSelect.js +1 -1
  231. package/vue/chunks/UiSeparator.js +1 -1
  232. package/vue/chunks/UiSidebar.js +1 -1
  233. package/vue/chunks/UiSiteHeader.js +1 -1
  234. package/vue/chunks/UiSkeleton.js +1 -1
  235. package/vue/chunks/UiStack.js +3 -3
  236. package/vue/chunks/UiSwatch.js +1 -1
  237. package/vue/chunks/UiSwitch.js +1 -1
  238. package/vue/chunks/UiSwitcher.js +2 -2
  239. package/vue/chunks/UiTabs.js +1 -1
  240. package/vue/chunks/UiText.js +4 -2
  241. package/vue/chunks/UiTextarea.js +1 -1
  242. package/vue/chunks/UiToast.js +1 -1
  243. package/vue/chunks/UiToastRegion.js +1 -1
  244. package/vue/chunks/UiTooltip.js +1 -1
  245. package/vue/chunks/UiTopBar.js +1 -1
  246. package/vue/chunks/UiTree.js +1 -1
  247. package/vue/chunks/UiTreeItem.js +1 -1
  248. package/vue/components.css +581 -2017
  249. package/vue/editor/index.js +7 -1
package/theme-system.css CHANGED
@@ -40,7 +40,7 @@
40
40
  contrast cannot unexpectedly turn linear spacing into quadratic spacing. */
41
41
  --ui-control-size: calc(var(--_ui-root-font-unit) * var(--ui-control-roominess));
42
42
  --_ui-theme-ratio: max(1, var(--ui-scale-ratio));
43
- --_ui-theme-unit: calc(1rem * 0.25 * max(0, var(--ui-spacing)) * clamp(0.75, var(--ui-rhythm), 1.5));
43
+ --_ui-theme-unit: calc(1rem * 0.25 * max(0, var(--ui-spacing)));
44
44
  --ui-line-height-tight: clamp(1.1, calc(1.2 + (var(--ui-rhythm) - 1) * 0.2), 1.3);
45
45
  --ui-line-height: clamp(1.35, calc(1.4 + (var(--ui-rhythm) - 1) * 0.4), 1.6);
46
46
  --ui-line-height-md: var(--ui-line-height);
@@ -97,7 +97,7 @@
97
97
  --ui-elevation-dialog: var(--ui-shadow-lg);
98
98
  --ui-control-inset: inset calc(var(--_ui-light-inline) * var(--_ui-theme-inner)) calc(var(--_ui-light-block) * var(--_ui-theme-inner)) calc(3px * var(--_ui-theme-inner)) rgb(0 0 0 / 0.15), inset calc(-1 * var(--_ui-light-inline)) calc(-1 * var(--_ui-light-block)) 0 rgb(255 255 255 / calc(var(--_ui-theme-edge) * var(--ui-light-strength) * 0.18)), var(--ui-material-glow);
99
99
  --ui-pressed: inset calc(2 * var(--_ui-light-inline) * var(--_ui-theme-inner)) calc(2 * var(--_ui-light-block) * var(--_ui-theme-inner)) calc(4px * var(--_ui-theme-inner)) rgb(0 0 0 / 0.2);
100
- --ui-overlay-surface: var(--ui-surface-raised);
100
+ /* Overlay surface is an optional group override; each surface owns its semantic fallback. */
101
101
  /* Decorative outer material is allowed to transmit the scene. Content keeps
102
102
  its own opaque plane; changing the scene cannot undermine text contrast. */
103
103
  --ui-material-content: var(--ui-surface-raised);
@@ -110,6 +110,8 @@
110
110
  --ui-knob-highlight: radial-gradient(ellipse calc(35% + var(--ui-light-spread) * 165%) calc(55% + var(--ui-light-spread) * 200%) at calc(var(--ui-light-x) * 100%) calc(var(--ui-light-y) * 100%) in srgb, color-mix(in srgb, var(--ui-knob-specular, var(--ui-knob-reflection, var(--ui-surface-raised))) calc(var(--ui-finish) * var(--ui-light-strength) * 100%), transparent), color-mix(in srgb, var(--ui-knob-reflection, var(--ui-surface-raised)) calc(var(--ui-finish) * var(--ui-light-strength) * 75%), transparent) 8%, transparent 28%, color-mix(in srgb, var(--ui-knob-shade, var(--ui-surface-raised)) calc(var(--ui-finish) * var(--ui-light-strength) * 35%), transparent) 100%);
111
111
  --ui-knob-on-accent-highlight: radial-gradient(ellipse calc(35% + var(--ui-light-spread) * 165%) calc(55% + var(--ui-light-spread) * 200%) at calc(var(--ui-light-x) * 100%) calc(var(--ui-light-y) * 100%) in srgb, color-mix(in srgb, var(--ui-knob-on-accent-specular, var(--ui-knob-on-accent-reflection, var(--ui-surface-raised))) calc(var(--ui-finish) * var(--ui-light-strength) * 100%), transparent), color-mix(in srgb, var(--ui-knob-on-accent-reflection, var(--ui-surface-raised)) calc(var(--ui-finish) * var(--ui-light-strength) * 75%), transparent) 8%, transparent 28%, color-mix(in srgb, var(--ui-knob-on-accent-shade, var(--ui-surface-raised)) calc(var(--ui-finish) * var(--ui-light-strength) * 35%), transparent) 100%);
112
112
  --ui-accent-highlight: radial-gradient(ellipse calc(35% + var(--ui-light-spread) * 165%) calc(55% + var(--ui-light-spread) * 200%) at calc(var(--ui-light-x) * 100%) calc(var(--ui-light-y) * 100%) in srgb, color-mix(in srgb, var(--ui-accent-specular, var(--ui-accent-reflection, var(--ui-surface-raised))) calc(var(--ui-finish) * var(--ui-light-strength) * 100%), transparent), color-mix(in srgb, var(--ui-accent-reflection, var(--ui-surface-raised)) calc(var(--ui-finish) * var(--ui-light-strength) * 75%), transparent) 8%, transparent 28%, color-mix(in srgb, var(--ui-accent-shade, var(--ui-surface-raised)) calc(var(--ui-finish) * var(--ui-light-strength) * 35%), transparent) 100%);
113
+ --ui-accent-secondary-highlight: radial-gradient(ellipse calc(35% + var(--ui-light-spread) * 165%) calc(55% + var(--ui-light-spread) * 200%) at calc(var(--ui-light-x) * 100%) calc(var(--ui-light-y) * 100%) in srgb, color-mix(in srgb, var(--ui-accent-secondary-specular, var(--ui-accent-secondary-reflection, var(--ui-surface-raised))) calc(var(--ui-finish) * var(--ui-light-strength) * 100%), transparent), color-mix(in srgb, var(--ui-accent-secondary-reflection, var(--ui-surface-raised)) calc(var(--ui-finish) * var(--ui-light-strength) * 75%), transparent) 8%, transparent 28%, color-mix(in srgb, var(--ui-accent-secondary-shade, var(--ui-surface-raised)) calc(var(--ui-finish) * var(--ui-light-strength) * 35%), transparent) 100%);
114
+ --ui-accent-tertiary-highlight: radial-gradient(ellipse calc(35% + var(--ui-light-spread) * 165%) calc(55% + var(--ui-light-spread) * 200%) at calc(var(--ui-light-x) * 100%) calc(var(--ui-light-y) * 100%) in srgb, color-mix(in srgb, var(--ui-accent-tertiary-specular, var(--ui-accent-tertiary-reflection, var(--ui-surface-raised))) calc(var(--ui-finish) * var(--ui-light-strength) * 100%), transparent), color-mix(in srgb, var(--ui-accent-tertiary-reflection, var(--ui-surface-raised)) calc(var(--ui-finish) * var(--ui-light-strength) * 75%), transparent) 8%, transparent 28%, color-mix(in srgb, var(--ui-accent-tertiary-shade, var(--ui-surface-raised)) calc(var(--ui-finish) * var(--ui-light-strength) * 35%), transparent) 100%);
113
115
  --ui-danger-highlight: radial-gradient(ellipse calc(35% + var(--ui-light-spread) * 165%) calc(55% + var(--ui-light-spread) * 200%) at calc(var(--ui-light-x) * 100%) calc(var(--ui-light-y) * 100%) in srgb, color-mix(in srgb, var(--ui-danger-specular, var(--ui-danger-reflection, var(--ui-surface-raised))) calc(var(--ui-finish) * var(--ui-light-strength) * 100%), transparent), color-mix(in srgb, var(--ui-danger-reflection, var(--ui-surface-raised)) calc(var(--ui-finish) * var(--ui-light-strength) * 75%), transparent) 8%, transparent 28%, color-mix(in srgb, var(--ui-danger-shade, var(--ui-surface-raised)) calc(var(--ui-finish) * var(--ui-light-strength) * 35%), transparent) 100%);
114
116
  --ui-success-highlight: radial-gradient(ellipse calc(35% + var(--ui-light-spread) * 165%) calc(55% + var(--ui-light-spread) * 200%) at calc(var(--ui-light-x) * 100%) calc(var(--ui-light-y) * 100%) in srgb, color-mix(in srgb, var(--ui-success-specular, var(--ui-success-reflection, var(--ui-surface-raised))) calc(var(--ui-finish) * var(--ui-light-strength) * 100%), transparent), color-mix(in srgb, var(--ui-success-reflection, var(--ui-surface-raised)) calc(var(--ui-finish) * var(--ui-light-strength) * 75%), transparent) 8%, transparent 28%, color-mix(in srgb, var(--ui-success-shade, var(--ui-surface-raised)) calc(var(--ui-finish) * var(--ui-light-strength) * 35%), transparent) 100%);
115
117
  --ui-warning-highlight: radial-gradient(ellipse calc(35% + var(--ui-light-spread) * 165%) calc(55% + var(--ui-light-spread) * 200%) at calc(var(--ui-light-x) * 100%) calc(var(--ui-light-y) * 100%) in srgb, color-mix(in srgb, var(--ui-warning-specular, var(--ui-warning-reflection, var(--ui-surface-raised))) calc(var(--ui-finish) * var(--ui-light-strength) * 100%), transparent), color-mix(in srgb, var(--ui-warning-reflection, var(--ui-surface-raised)) calc(var(--ui-finish) * var(--ui-light-strength) * 75%), transparent) 8%, transparent 28%, color-mix(in srgb, var(--ui-warning-shade, var(--ui-surface-raised)) calc(var(--ui-finish) * var(--ui-light-strength) * 35%), transparent) 100%);
@@ -119,6 +121,8 @@
119
121
  --ui-material-glow: 0 0 calc(18px * var(--_ui-theme-glow)) color-mix(in srgb, var(--ui-accent) calc(var(--_ui-theme-glow) * var(--ui-light-strength) * 18%), transparent);
120
122
  --ui-neutral-glow: 0 0 calc(18px * var(--_ui-theme-glow)) color-mix(in srgb, var(--ui-text) calc(var(--_ui-theme-glow) * var(--ui-light-strength) * 18%), transparent);
121
123
  --ui-accent-glow: 0 0 calc(18px * var(--_ui-theme-glow)) color-mix(in srgb, var(--ui-accent) calc(var(--_ui-theme-glow) * var(--ui-light-strength) * 18%), transparent);
124
+ --ui-accent-secondary-glow: 0 0 calc(18px * var(--_ui-theme-glow)) color-mix(in srgb, var(--ui-accent-secondary) calc(var(--_ui-theme-glow) * var(--ui-light-strength) * 18%), transparent);
125
+ --ui-accent-tertiary-glow: 0 0 calc(18px * var(--_ui-theme-glow)) color-mix(in srgb, var(--ui-accent-tertiary) calc(var(--_ui-theme-glow) * var(--ui-light-strength) * 18%), transparent);
122
126
  --ui-danger-glow: 0 0 calc(18px * var(--_ui-theme-glow)) color-mix(in srgb, var(--ui-danger) calc(var(--_ui-theme-glow) * var(--ui-light-strength) * 18%), transparent);
123
127
  --ui-success-glow: 0 0 calc(18px * var(--_ui-theme-glow)) color-mix(in srgb, var(--ui-success) calc(var(--_ui-theme-glow) * var(--ui-light-strength) * 18%), transparent);
124
128
  --ui-warning-glow: 0 0 calc(18px * var(--_ui-theme-glow)) color-mix(in srgb, var(--ui-warning) calc(var(--_ui-theme-glow) * var(--ui-light-strength) * 18%), transparent);
package/tokens.css CHANGED
@@ -44,9 +44,6 @@
44
44
  --ui-info-border: var(--ui-info);
45
45
  --ui-info-hover-border: var(--ui-info-hover);
46
46
  --ui-info-active-border: var(--ui-info-active);
47
- --ui-neutral-border: var(--ui-neutral-surface);
48
- --ui-neutral-hover-border: var(--ui-neutral-hover);
49
- --ui-neutral-active-border: var(--ui-neutral-active);
50
47
 
51
48
  /* The base type token owns the document root; rem-based roles scale from it once. */
52
49
  font-size: var(--ui-font-size);
@@ -110,10 +107,13 @@
110
107
  never has to: these exist so components share one vocabulary, not to be configured. */
111
108
  :root,
112
109
  :where([data-theme], [data-contrast]) {
110
+ color: var(--ui-text-primary);
113
111
  /* Neutral is a quiet filled surface, never the text colour inverted. */
114
- --ui-neutral-surface: color-mix(in srgb, var(--ui-text) 6%, var(--ui-surface-raised));
115
- --ui-neutral-hover: color-mix(in srgb, var(--ui-text) 10%, var(--ui-surface-raised));
116
- --ui-neutral-active: color-mix(in srgb, var(--ui-text) 14%, var(--ui-surface-raised));
112
+ --ui-neutral-surface: light-dark(color-mix(in oklab, var(--ui-text) 6%, var(--ui-surface-raised)), color-mix(in oklab, var(--ui-text) 13.5%, var(--ui-surface-raised)));
113
+ --ui-neutral-hover: light-dark(color-mix(in oklab, var(--ui-text) 10%, var(--ui-surface-raised)), color-mix(in oklab, var(--ui-text) 22.5%, var(--ui-surface-raised)));
114
+ --ui-neutral-active: light-dark(color-mix(in oklab, var(--ui-text) 14%, var(--ui-surface-raised)), color-mix(in oklab, var(--ui-text) 31.5%, var(--ui-surface-raised)));
115
+ /* Quiet neutral shadows complement the shared action and field boundary. */
116
+ --ui-neutral-shadow: var(--ui-shadow-xs);
117
117
  --ui-accent-line-width: var(--ui-border-width);
118
118
 
119
119
  /* Type scale, from the base size. */
@@ -182,7 +182,7 @@
182
182
  /* Lines divide content; stronger edges enclose surfaces; control edges identify inputs. */
183
183
  --ui-border-divider: color-mix(in oklab, var(--ui-border) 50%, var(--ui-border-strong));
184
184
  --ui-border-strong: color-mix(in oklab, var(--ui-text) 25%, var(--ui-surface));
185
- --ui-control-border: color-mix(in oklab, var(--ui-text) 43%, var(--ui-surface));
185
+ --ui-control-border: light-dark(color-mix(in oklab, var(--ui-text) 30%, var(--ui-surface)), color-mix(in oklab, var(--ui-text) 40%, var(--ui-surface-raised)));
186
186
 
187
187
  /* States: toward the ink for pressure, toward the page for a tint. In a dark theme the ink is
188
188
  light, so the same mixes brighten instead of darkening, without a second set of values. */
@@ -220,13 +220,42 @@
220
220
  --ui-border-subtle: color-mix(in srgb, var(--ui-border) 55%, var(--ui-surface));
221
221
  --ui-border-default: var(--ui-border);
222
222
 
223
+ /* Optional brand accents use the primary identity until explicitly supplied. */
224
+ --ui-accent-secondary: var(--ui-accent);
225
+ --ui-on-accent-secondary: var(--ui-on-accent);
226
+ --ui-accent-secondary-hover: color-mix(in oklab, var(--ui-accent-secondary) 86%, var(--ui-text));
227
+ --ui-accent-secondary-active: color-mix(in oklab, var(--ui-accent-secondary) 74%, var(--ui-text));
228
+ --ui-accent-secondary-subtle-text: light-dark(oklch(from var(--ui-accent-secondary) min(l, 0.50) min(c, 0.18) h), oklch(from var(--ui-accent-secondary) max(l, 0.80) min(c, 0.16) h));
229
+ --ui-accent-secondary-soft: light-dark(oklch(from var(--ui-accent-secondary) 96% min(c, calc(0.02 + 0.03 * max(0, cos(calc((h - 140) * 1deg))))) h), oklch(from var(--ui-accent-secondary) clamp(0.34, l, 0.38) min(c, 0.035) h));
230
+ --ui-accent-secondary-soft-border: color-mix(in srgb, var(--ui-accent-secondary-soft) 75%, var(--ui-accent-secondary-subtle-text));
231
+ --ui-accent-secondary-solid: var(--ui-accent-secondary);
232
+ --ui-accent-secondary-strong-surface: var(--ui-accent-secondary);
233
+ --ui-accent-secondary-border: var(--ui-accent-secondary);
234
+ --ui-accent-secondary-on-strong: var(--ui-on-accent-secondary);
235
+ --ui-accent-secondary-hover-border: var(--ui-accent-secondary-hover);
236
+ --ui-accent-secondary-active-border: var(--ui-accent-secondary-active);
237
+ --ui-accent-tertiary: var(--ui-accent);
238
+ --ui-on-accent-tertiary: var(--ui-on-accent);
239
+ --ui-accent-tertiary-hover: color-mix(in oklab, var(--ui-accent-tertiary) 86%, var(--ui-text));
240
+ --ui-accent-tertiary-active: color-mix(in oklab, var(--ui-accent-tertiary) 74%, var(--ui-text));
241
+ --ui-accent-tertiary-subtle-text: light-dark(oklch(from var(--ui-accent-tertiary) min(l, 0.50) min(c, 0.18) h), oklch(from var(--ui-accent-tertiary) max(l, 0.80) min(c, 0.16) h));
242
+ --ui-accent-tertiary-soft: light-dark(oklch(from var(--ui-accent-tertiary) 96% min(c, calc(0.02 + 0.03 * max(0, cos(calc((h - 140) * 1deg))))) h), oklch(from var(--ui-accent-tertiary) clamp(0.34, l, 0.38) min(c, 0.035) h));
243
+ --ui-accent-tertiary-soft-border: color-mix(in srgb, var(--ui-accent-tertiary-soft) 75%, var(--ui-accent-tertiary-subtle-text));
244
+ --ui-accent-tertiary-solid: var(--ui-accent-tertiary);
245
+ --ui-accent-tertiary-strong-surface: var(--ui-accent-tertiary);
246
+ --ui-accent-tertiary-border: var(--ui-accent-tertiary);
247
+ --ui-accent-tertiary-on-strong: var(--ui-on-accent-tertiary);
248
+ --ui-accent-tertiary-hover-border: var(--ui-accent-tertiary-hover);
249
+ --ui-accent-tertiary-active-border: var(--ui-accent-tertiary-active);
250
+ --ui-link-color: var(--ui-accent-subtle-text);
251
+
223
252
  /* Intent tones: a solid surface, its foreground, and a soft tint of each. */
224
253
  --ui-accent-solid: var(--ui-accent);
225
254
  /* One quiet selection recipe for destination/content rows. Hue derives from the brand;
226
255
  corners derive from the scale, and selected labels retain their resting weight. */
227
- --ui-selection-surface: color-mix(in oklab, var(--ui-accent) 10%, var(--ui-surface));
228
- --ui-selection-border: color-mix(in oklab, var(--ui-accent) 20%, var(--ui-surface));
229
- --ui-selection-text: var(--ui-accent-subtle-text);
256
+ --ui-selection-surface: light-dark(color-mix(in oklab, var(--ui-accent) 10%, var(--ui-surface-raised)), color-mix(in oklab, var(--ui-accent-subtle-text) 22%, var(--ui-surface-raised)));
257
+ --ui-selection-border: light-dark(color-mix(in oklab, var(--ui-accent) 20%, var(--ui-surface-raised)), color-mix(in oklab, var(--ui-accent-subtle-text) 44%, var(--ui-surface-raised)));
258
+ --ui-selection-text: light-dark(var(--ui-accent-subtle-text), color-mix(in oklab, var(--ui-accent-subtle-text) 85%, var(--ui-text)));
230
259
  --ui-selection-radius: var(--ui-radius-md);
231
260
  --ui-nav-icon-size: var(--ui-font-size-md);
232
261
  --ui-nav-gap: var(--ui-space-3);
@@ -238,33 +267,38 @@
238
267
  --ui-nav-compact-min-block-size: var(--ui-control-size-sm);
239
268
  --ui-nav-hover-surface: var(--ui-surface-hover);
240
269
 
241
- --ui-accent-soft: var(--ui-accent-subtle);
270
+ --ui-accent-soft: light-dark(oklch(from var(--ui-accent) 96% min(c, calc(0.02 + 0.03 * max(0, cos(calc((h - 140) * 1deg))))) h), oklch(from var(--ui-accent) clamp(0.34, l, 0.38) min(c, 0.035) h));
271
+ --ui-accent-soft-border: color-mix(in srgb, var(--ui-accent-soft) 75%, var(--ui-accent-subtle-text));
242
272
  --ui-accent-contrast: var(--ui-on-accent);
243
273
  --ui-accent-strong-surface: var(--ui-accent);
244
274
  --ui-accent-on-strong: var(--ui-on-accent);
245
- --ui-accent-subtle-text: var(--ui-accent-active);
275
+ --ui-accent-subtle-text: light-dark(oklch(from var(--ui-accent) min(l, 0.50) min(c, 0.18) h), oklch(from var(--ui-accent) max(l, 0.80) min(c, 0.16) h));
246
276
  --ui-danger-solid: var(--ui-danger);
247
- --ui-danger-soft: color-mix(in srgb, var(--ui-danger) 8%, var(--ui-surface));
277
+ --ui-danger-soft: light-dark(oklch(from var(--ui-danger) 96% min(c, calc(0.02 + 0.03 * max(0, cos(calc((h - 140) * 1deg))))) h), oklch(from var(--ui-danger) clamp(0.34, l, 0.38) min(c, 0.035) h));
278
+ --ui-danger-soft-border: color-mix(in srgb, var(--ui-danger-soft) 75%, var(--ui-danger-subtle-text));
248
279
  --ui-danger-strong-surface: var(--ui-danger);
249
280
  --ui-danger-on-strong: var(--ui-on-danger);
250
- --ui-danger-subtle-text: var(--ui-danger-hover);
281
+ --ui-danger-subtle-text: light-dark(oklch(from var(--ui-danger) min(l, 0.50) min(c, 0.18) h), oklch(from var(--ui-danger) max(l, 0.80) min(c, 0.16) h));
251
282
  --ui-success-solid: var(--ui-success);
252
283
  --ui-success-hover: color-mix(in srgb, var(--ui-success) 85%, var(--ui-text));
253
- --ui-success-soft: color-mix(in srgb, var(--ui-success) 8%, var(--ui-surface));
284
+ --ui-success-soft: light-dark(oklch(from var(--ui-success) 96% min(c, calc(0.02 + 0.03 * max(0, cos(calc((h - 140) * 1deg))))) h), oklch(from var(--ui-success) clamp(0.34, l, 0.38) min(c, 0.035) h));
285
+ --ui-success-soft-border: color-mix(in srgb, var(--ui-success-soft) 75%, var(--ui-success-subtle-text));
254
286
  --ui-success-strong-surface: var(--ui-success);
255
287
  --ui-success-on-strong: var(--ui-on-accent);
256
- --ui-success-subtle-text: color-mix(in srgb, var(--ui-success) 85%, var(--ui-text));
288
+ --ui-success-subtle-text: light-dark(oklch(from var(--ui-success) min(l, 0.50) min(c, 0.18) h), oklch(from var(--ui-success) max(l, 0.80) min(c, 0.16) h));
257
289
  --ui-warning-solid: var(--ui-warning);
258
- --ui-warning-soft: color-mix(in srgb, var(--ui-warning) 8%, var(--ui-surface));
290
+ --ui-warning-soft: light-dark(oklch(from var(--ui-warning) 96% min(c, calc(0.02 + 0.03 * max(0, cos(calc((h - 140) * 1deg))))) h), oklch(from var(--ui-warning) clamp(0.34, l, 0.38) min(c, 0.035) h));
291
+ --ui-warning-soft-border: color-mix(in srgb, var(--ui-warning-soft) 75%, var(--ui-warning-subtle-text));
259
292
  --ui-warning-strong-surface: var(--ui-warning);
260
293
  --ui-warning-on-strong: var(--ui-on-accent);
261
294
  /* Amber is the lightest intent: it takes more ink than the others to read at 4.5:1, even from a bright seed. */
262
- --ui-warning-subtle-text: color-mix(in srgb, var(--ui-warning) 55%, var(--ui-text));
295
+ --ui-warning-subtle-text: light-dark(oklch(from var(--ui-warning) min(l, 0.50) min(c, 0.18) h), oklch(from var(--ui-warning) max(l, 0.80) min(c, 0.16) h));
263
296
  --ui-info-solid: var(--ui-info);
264
- --ui-info-soft: color-mix(in srgb, var(--ui-info) 8%, var(--ui-surface));
297
+ --ui-info-soft: light-dark(oklch(from var(--ui-info) 96% min(c, calc(0.02 + 0.03 * max(0, cos(calc((h - 140) * 1deg))))) h), oklch(from var(--ui-info) clamp(0.34, l, 0.38) min(c, 0.035) h));
298
+ --ui-info-soft-border: color-mix(in srgb, var(--ui-info-soft) 75%, var(--ui-info-subtle-text));
265
299
  --ui-info-strong-surface: var(--ui-info);
266
300
  --ui-info-on-strong: var(--ui-on-accent);
267
- --ui-info-subtle-text: color-mix(in srgb, var(--ui-info) 85%, var(--ui-text));
301
+ --ui-info-subtle-text: light-dark(oklch(from var(--ui-info) min(l, 0.50) min(c, 0.18) h), oklch(from var(--ui-info) max(l, 0.80) min(c, 0.16) h));
268
302
 
269
303
  /* Interaction roles: what a control paints, whatever its intent. */
270
304
  --ui-action-primary-surface: var(--ui-accent);
@@ -275,7 +309,7 @@
275
309
  --ui-action-secondary-text: var(--ui-text);
276
310
  --ui-control-surface: var(--ui-surface);
277
311
  --ui-control-surface-disabled: var(--ui-surface-muted);
278
- --ui-control-border-hover: color-mix(in oklab, var(--ui-text) 50%, var(--ui-surface));
312
+ --ui-control-border-hover: light-dark(color-mix(in oklab, var(--ui-text) 36%, var(--ui-surface)), color-mix(in oklab, var(--ui-text) 55%, var(--ui-surface-raised)));
279
313
  --ui-control-placeholder: color-mix(in oklab, var(--ui-text) 58%, var(--ui-control-surface));
280
314
  --ui-control-focus: var(--ui-focus-ring);
281
315
  /* Derived from the ring, not a near-white tint, so the halo shows on any surface. */
@@ -12,7 +12,7 @@ export interface UiBadgeElement extends HTMLSpanElement {
12
12
  export interface UiBadgeProps {
13
13
  shape?: "pill" | "tag" | "dot" | "square" | "circle" | null;
14
14
  size?: "xs" | "sm" | "md" | "lg" | null;
15
- tone?: "neutral" | "accent" | "info" | "success" | "warning" | "danger" | null;
15
+ tone?: "neutral" | "accent" | "accent-secondary" | "accent-tertiary" | "info" | "success" | "warning" | "danger" | null;
16
16
  variant?: "solid" | "subtle" | "outline" | "inverse" | "overlay" | null;
17
17
  attributes?: Readonly<Record<string, string | number | boolean | null | undefined>>;
18
18
  children?: readonly (string | Node)[];
@@ -7,7 +7,7 @@ const T1 = ["",[]];
7
7
  const T2 = ["",[]];
8
8
  let P0, P1, P2;
9
9
  const S = { n: [], t: [], f: import.meta.url, g: "ui-badge", b: generatedInputs };
10
- const D = { g: "ui-badge", props: { "shape": { "required":false,"values":["pill","tag","dot","square","circle"],"default":"pill", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] }, "size": { "required":false,"values":["xs","sm","md","lg"],"default":"md", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] }, "tone": { "required":false,"values":["neutral","accent","info","success","warning","danger"],"default":"neutral", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] }, "variant": { "required":false,"values":["solid","subtle","outline","inverse","overlay"],"default":"subtle", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] } } };
10
+ const D = { g: "ui-badge", props: { "shape": { "required":false,"values":["pill","tag","dot","square","circle"],"default":"pill", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] }, "size": { "required":false,"values":["xs","sm","md","lg"],"default":"md", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] }, "tone": { "required":false,"values":["neutral","accent","accent-secondary","accent-tertiary","info","success","warning","danger"],"default":"neutral", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] }, "variant": { "required":false,"values":["solid","subtle","outline","inverse","overlay"],"default":"subtle", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] } } };
11
11
 
12
12
  export function createUiBadge(options = {}, html) {
13
13
  const { attributes = {}, children = [], slots = {}, ...componentProps } = options;
@@ -22,7 +22,7 @@ export interface UiButtonProps {
22
22
  square?: boolean | null;
23
23
  stretch?: boolean | null;
24
24
  target?: string | null;
25
- tone?: "accent" | "neutral" | "danger" | "success" | "warning" | "info" | null;
25
+ tone?: "accent" | "accent-secondary" | "accent-tertiary" | "neutral" | "danger" | "success" | "warning" | "info" | null;
26
26
  type?: "button" | "submit" | "reset" | null;
27
27
  variant?: "outline" | "solid" | "danger" | "ghost" | "link" | "card" | "field" | null;
28
28
  attributes?: Readonly<Record<string, string | number | boolean | null | undefined>>;
@@ -27,7 +27,7 @@ let P0, P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12, P13, P14, P15, P16, P
27
27
  const S = { n: ["appearance","colorTone"], t: ["?","?"], f: import.meta.url, g: "ui-button", k: 0, r: readonlyView, a: (host, I) => C(host, I), b: generatedInputs };
28
28
  const A = [["a",{},[],"",[],["data-ui-button-state","data-ui-button-prop-align","data-ui-button-prop-disabled","data-ui-button-prop-href","data-ui-button-prop-loading","data-ui-button-prop-pending","data-ui-button-prop-preset","data-ui-button-prop-rel","data-ui-button-prop-shape","data-ui-button-prop-size","data-ui-button-prop-square","data-ui-button-prop-stretch","data-ui-button-prop-target","data-ui-button-prop-tone","data-ui-button-prop-type","data-ui-button-prop-variant","data-appearance","data-tone","href","target","rel","aria-disabled","aria-busy","tabindex"]],["button",{},[],"",[],["data-ui-button-state","data-ui-button-prop-align","data-ui-button-prop-disabled","data-ui-button-prop-href","data-ui-button-prop-loading","data-ui-button-prop-pending","data-ui-button-prop-preset","data-ui-button-prop-rel","data-ui-button-prop-shape","data-ui-button-prop-size","data-ui-button-prop-square","data-ui-button-prop-stretch","data-ui-button-prop-target","data-ui-button-prop-tone","data-ui-button-prop-type","data-ui-button-prop-variant","data-appearance","data-tone","type","disabled","aria-disabled","aria-busy"]],["a",{},[],"",[],["data-ui-button-state","data-ui-button-prop-align","data-ui-button-prop-disabled","data-ui-button-prop-href","data-ui-button-prop-loading","data-ui-button-prop-pending","data-ui-button-prop-preset","data-ui-button-prop-rel","data-ui-button-prop-shape","data-ui-button-prop-size","data-ui-button-prop-square","data-ui-button-prop-stretch","data-ui-button-prop-target","data-ui-button-prop-tone","data-ui-button-prop-type","data-ui-button-prop-variant","data-appearance","data-tone","href","target","rel","aria-disabled","aria-busy","tabindex"]],["button",{},[],"",[],["data-ui-button-state","data-ui-button-prop-align","data-ui-button-prop-disabled","data-ui-button-prop-href","data-ui-button-prop-loading","data-ui-button-prop-pending","data-ui-button-prop-preset","data-ui-button-prop-rel","data-ui-button-prop-shape","data-ui-button-prop-size","data-ui-button-prop-square","data-ui-button-prop-stretch","data-ui-button-prop-target","data-ui-button-prop-tone","data-ui-button-prop-type","data-ui-button-prop-variant","data-appearance","data-tone","type","disabled","aria-disabled","aria-busy"]]];
29
29
  const Q = [[],[],[],[]];
30
- const D = { g: "ui-button", props: { "align": { "required":false,"values":["center","start"],"default":"center", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] }, "disabled": { "required":false,"default":false, c: checkBoolean, t: "boolean", j: 0, m: "b" }, "href": { "required":false, c: checkString, t: "string", j: 0, m: "s" }, "loading": { "required":false,"default":false, c: checkBoolean, t: "boolean", j: 0, m: "b" }, "pending": { "required":false,"default":false, c: checkBoolean, t: "boolean", j: 0, m: "b" }, "preset": { "required":false,"values":["none","primary","standard","quiet","destructive"],"default":"none", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] }, "rel": { "required":false, c: checkString, t: "string", j: 0, m: "s" }, "shape": { "required":false,"values":["rounded","pill"],"default":"rounded", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] }, "size": { "required":false,"values":["xs","sm","md","lg"],"default":"md", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] }, "square": { "required":false,"default":false, c: checkBoolean, t: "boolean", j: 0, m: "b" }, "stretch": { "required":false,"default":false, c: checkBoolean, t: "boolean", j: 0, m: "b" }, "target": { "required":false, c: checkString, t: "string", j: 0, m: "s" }, "tone": { "required":false,"values":["accent","neutral","danger","success","warning","info"],"default":"neutral", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] }, "type": { "required":false,"values":["button","submit","reset"],"default":"button", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] }, "variant": { "required":false,"values":["outline","solid","danger","ghost","link","card","field"],"default":"outline", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] } } };
30
+ const D = { g: "ui-button", props: { "align": { "required":false,"values":["center","start"],"default":"center", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] }, "disabled": { "required":false,"default":false, c: checkBoolean, t: "boolean", j: 0, m: "b" }, "href": { "required":false, c: checkString, t: "string", j: 0, m: "s" }, "loading": { "required":false,"default":false, c: checkBoolean, t: "boolean", j: 0, m: "b" }, "pending": { "required":false,"default":false, c: checkBoolean, t: "boolean", j: 0, m: "b" }, "preset": { "required":false,"values":["none","primary","standard","quiet","destructive"],"default":"none", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] }, "rel": { "required":false, c: checkString, t: "string", j: 0, m: "s" }, "shape": { "required":false,"values":["rounded","pill"],"default":"rounded", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] }, "size": { "required":false,"values":["xs","sm","md","lg"],"default":"md", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] }, "square": { "required":false,"default":false, c: checkBoolean, t: "boolean", j: 0, m: "b" }, "stretch": { "required":false,"default":false, c: checkBoolean, t: "boolean", j: 0, m: "b" }, "target": { "required":false, c: checkString, t: "string", j: 0, m: "s" }, "tone": { "required":false,"values":["accent","accent-secondary","accent-tertiary","neutral","danger","success","warning","info"],"default":"neutral", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] }, "type": { "required":false,"values":["button","submit","reset"],"default":"button", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] }, "variant": { "required":false,"values":["outline","solid","danger","ghost","link","card","field"],"default":"outline", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] } } };
31
31
  const C = (host) => activateModule(controller, host);
32
32
 
33
33
  export function createUiButton(options = {}, html) {
@@ -13,7 +13,7 @@ export interface UiCardProps {
13
13
  as?: "div" | "section" | "article" | "aside" | null;
14
14
  padding?: "xs" | "sm" | "md" | "lg" | null;
15
15
  size?: "content" | "sm" | "md" | "lg" | null;
16
- tone?: "neutral" | "accent" | "info" | "success" | "warning" | "danger" | null;
16
+ tone?: "neutral" | "accent" | "accent-secondary" | "accent-tertiary" | "info" | "success" | "warning" | "danger" | null;
17
17
  treatment?: "standard" | "expressive" | null;
18
18
  variant?: "outlined" | "subtle" | "elevated" | null;
19
19
  attributes?: Readonly<Record<string, string | number | boolean | null | undefined>>;
package/vanilla/UiCard.js CHANGED
@@ -14,7 +14,7 @@ let P0, P1, P2, P3, P4, P5, P6, P7;
14
14
  const S = { n: [], t: [], f: import.meta.url, g: "ui-card", b: generatedInputs };
15
15
  const A = [["section",{},[],"",[],["data-ui-card-state","data-ui-card-prop-as","data-ui-card-prop-padding","data-ui-card-prop-size","data-ui-card-prop-tone","data-ui-card-prop-treatment","data-ui-card-prop-variant"]],["article",{},[],"",[],["data-ui-card-state","data-ui-card-prop-as","data-ui-card-prop-padding","data-ui-card-prop-size","data-ui-card-prop-tone","data-ui-card-prop-treatment","data-ui-card-prop-variant"]],["aside",{},[],"",[],["data-ui-card-state","data-ui-card-prop-as","data-ui-card-prop-padding","data-ui-card-prop-size","data-ui-card-prop-tone","data-ui-card-prop-treatment","data-ui-card-prop-variant"]],["div",{},[],"",[],["data-ui-card-state","data-ui-card-prop-as","data-ui-card-prop-padding","data-ui-card-prop-size","data-ui-card-prop-tone","data-ui-card-prop-treatment","data-ui-card-prop-variant"]]];
16
16
  const Q = [[],[],[],[]];
17
- const D = { g: "ui-card", props: { "as": { "required":false,"values":["div","section","article","aside"],"default":"div", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] }, "padding": { "required":false,"values":["xs","sm","md","lg"],"default":"md", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] }, "size": { "required":false,"values":["content","sm","md","lg"],"default":"content", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] }, "tone": { "required":false,"values":["neutral","accent","info","success","warning","danger"],"default":"neutral", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] }, "treatment": { "required":false,"values":["standard","expressive"],"default":"standard", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] }, "variant": { "required":false,"values":["outlined","subtle","elevated"],"default":"outlined", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] } } };
17
+ const D = { g: "ui-card", props: { "as": { "required":false,"values":["div","section","article","aside"],"default":"div", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] }, "padding": { "required":false,"values":["xs","sm","md","lg"],"default":"md", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] }, "size": { "required":false,"values":["content","sm","md","lg"],"default":"content", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] }, "tone": { "required":false,"values":["neutral","accent","accent-secondary","accent-tertiary","info","success","warning","danger"],"default":"neutral", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] }, "treatment": { "required":false,"values":["standard","expressive"],"default":"standard", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] }, "variant": { "required":false,"values":["outlined","subtle","elevated"],"default":"outlined", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] } } };
18
18
 
19
19
  export function createUiCard(options = {}, html) {
20
20
  const { attributes = {}, children = [], slots = {}, ...componentProps } = options;
@@ -21,7 +21,7 @@ export interface UiIconButtonProps {
21
21
  revealed?: boolean | null;
22
22
  round?: boolean | null;
23
23
  size?: "sm" | "md" | "lg" | null;
24
- tone?: "accent" | "neutral" | "danger" | "success" | "warning" | "info" | null;
24
+ tone?: "accent" | "accent-secondary" | "accent-tertiary" | "neutral" | "danger" | "success" | "warning" | "info" | null;
25
25
  variant?: "ghost" | "outline" | "solid" | null;
26
26
  attributes?: Readonly<Record<string, string | number | boolean | null | undefined>>;
27
27
  children?: readonly (string | Node)[];
@@ -8,7 +8,7 @@ const T1 = ["ui-spinner",["size","sm"]];
8
8
  const T2 = ["",[]];
9
9
  let P0, P1, P2;
10
10
  const S = { n: ["appearance","colorTone"], t: ["?","?"], f: import.meta.url, g: "ui-icon-button", k: 0, r: readonlyView, a: (host, I) => C(host, I), b: generatedInputs };
11
- const D = { g: "ui-icon-button", props: { "anticipatory": { "required":false,"default":false, c: checkBoolean, t: "boolean", j: 0, m: "b" }, "disabled": { "required":false,"default":false, c: checkBoolean, t: "boolean", j: 0, m: "b" }, "guide": { "required":false,"values":["dot","bar"],"default":"dot", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] }, "label": { "required":false, c: checkString, t: "string", j: 0, m: "s" }, "loading": { "required":false,"default":false, c: checkBoolean, t: "boolean", j: 0, m: "b" }, "matchButton": { "required":false,"default":false, c: checkBoolean, t: "boolean", j: 0, m: "b" }, "pending": { "required":false,"default":false, c: checkBoolean, t: "boolean", j: 0, m: "b" }, "preset": { "required":false,"values":["none","primary","standard","quiet","destructive"],"default":"none", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] }, "revealed": { "required":false,"default":false, c: checkBoolean, t: "boolean", j: 0, m: "b" }, "round": { "required":false,"default":false, c: checkBoolean, t: "boolean", j: 0, m: "b" }, "size": { "required":false,"values":["sm","md","lg"],"default":"md", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] }, "tone": { "required":false,"values":["accent","neutral","danger","success","warning","info"],"default":"neutral", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] }, "variant": { "required":false,"values":["ghost","outline","solid"],"default":"ghost", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] } } };
11
+ const D = { g: "ui-icon-button", props: { "anticipatory": { "required":false,"default":false, c: checkBoolean, t: "boolean", j: 0, m: "b" }, "disabled": { "required":false,"default":false, c: checkBoolean, t: "boolean", j: 0, m: "b" }, "guide": { "required":false,"values":["dot","bar"],"default":"dot", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] }, "label": { "required":false, c: checkString, t: "string", j: 0, m: "s" }, "loading": { "required":false,"default":false, c: checkBoolean, t: "boolean", j: 0, m: "b" }, "matchButton": { "required":false,"default":false, c: checkBoolean, t: "boolean", j: 0, m: "b" }, "pending": { "required":false,"default":false, c: checkBoolean, t: "boolean", j: 0, m: "b" }, "preset": { "required":false,"values":["none","primary","standard","quiet","destructive"],"default":"none", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] }, "revealed": { "required":false,"default":false, c: checkBoolean, t: "boolean", j: 0, m: "b" }, "round": { "required":false,"default":false, c: checkBoolean, t: "boolean", j: 0, m: "b" }, "size": { "required":false,"values":["sm","md","lg"],"default":"md", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] }, "tone": { "required":false,"values":["accent","accent-secondary","accent-tertiary","neutral","danger","success","warning","info"],"default":"neutral", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] }, "variant": { "required":false,"values":["ghost","outline","solid"],"default":"ghost", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] } } };
12
12
  const C = (host) => activateModule(controller, host);
13
13
 
14
14
  export function createUiIconButton(options = {}, html) {
@@ -15,7 +15,7 @@ export interface UiMeterProps {
15
15
  parts?: readonly ({ readonly value: number; readonly color: string })[] | null;
16
16
  segments?: number | null;
17
17
  size?: "sm" | "md" | null;
18
- tone?: "neutral" | "accent" | "info" | "success" | "warning" | "danger" | null;
18
+ tone?: "neutral" | "accent" | "accent-secondary" | "accent-tertiary" | "info" | "success" | "warning" | "danger" | null;
19
19
  value?: number | null;
20
20
  valueText?: string | null;
21
21
  variant?: "progress" | "distribution" | null;
@@ -10,7 +10,7 @@ const T4 = ["span",["class","part","aria-hidden","true"]];
10
10
  let P0, P1, P2, P3, P4;
11
11
  const E = new Map();
12
12
  const S = { n: ["amount","percent"], t: ["?","?"], f: import.meta.url, g: "ui-meter", k: 0, r: readonlyView, b: generatedInputs };
13
- const D = { g: "ui-meter", props: { "label": { "required":false,"default":"", c: checkString, t: "string", j: 0, m: "s" }, "max": { "required":false,"default":1, c: checkNumber, t: "number", j: 0, m: "n" }, "parts": { "required":false,"default":[], c: checkList(checkObject([["value", checkNumber, false], ["color", checkString, false]], false)), j: 1, m: ["l",["o",["value","n","color","s"]]] }, "segments": { "required":false,"default":0, c: checkNumber, t: "number", j: 0, m: "n" }, "size": { "required":false,"values":["sm","md"],"default":"md", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] }, "tone": { "required":false,"values":["neutral","accent","info","success","warning","danger"],"default":"neutral", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] }, "value": { "required":false,"default":0, c: checkNumber, t: "number", j: 0, m: "n" }, "valueText": { "required":false,"default":"", c: checkString, t: "string", j: 0, m: "s" }, "variant": { "required":false,"values":["progress","distribution"],"default":"progress", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] } } };
13
+ const D = { g: "ui-meter", props: { "label": { "required":false,"default":"", c: checkString, t: "string", j: 0, m: "s" }, "max": { "required":false,"default":1, c: checkNumber, t: "number", j: 0, m: "n" }, "parts": { "required":false,"default":[], c: checkList(checkObject([["value", checkNumber, false], ["color", checkString, false]], false)), j: 1, m: ["l",["o",["value","n","color","s"]]] }, "segments": { "required":false,"default":0, c: checkNumber, t: "number", j: 0, m: "n" }, "size": { "required":false,"values":["sm","md"],"default":"md", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] }, "tone": { "required":false,"values":["neutral","accent","accent-secondary","accent-tertiary","info","success","warning","danger"],"default":"neutral", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] }, "value": { "required":false,"default":0, c: checkNumber, t: "number", j: 0, m: "n" }, "valueText": { "required":false,"default":"", c: checkString, t: "string", j: 0, m: "s" }, "variant": { "required":false,"values":["progress","distribution"],"default":"progress", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] } } };
14
14
 
15
15
  export function createUiMeter(options = {}, html) {
16
16
  const { attributes = {}, children = [], slots = {}, ...componentProps } = options;
@@ -31,7 +31,7 @@ export function createUiStack(options = {}, html) {
31
31
  if (c & 8) {
32
32
  const x0 = v[3];
33
33
  const s0 = toText(x0);
34
- if (s0 !== r.v0) r.n.style.setProperty("--ui-stack-height", r.v0 = s0);
34
+ if (s0 !== r.v0) r.n.style.setProperty("--_ui-stack-height", r.v0 = s0);
35
35
  }
36
36
  if (c & 31) {
37
37
  const x1 = hostState(["fill","height","gap","align","justify"], [v[1], v[3], v[2], v[0], v[4]]);
@@ -15,7 +15,7 @@ export interface UiTextProps {
15
15
  font?: "inherit" | "sans" | null;
16
16
  grow?: boolean | null;
17
17
  size?: "inherit" | "xs" | "sm" | "md" | "lg" | null;
18
- tone?: "default" | "secondary" | "muted" | "accent" | "danger" | "success" | "info" | "warning" | null;
18
+ tone?: "default" | "secondary" | "muted" | "accent" | "accent-secondary" | "accent-tertiary" | "danger" | "success" | "info" | "warning" | null;
19
19
  trim?: boolean | null;
20
20
  truncate?: boolean | null;
21
21
  variant?: "body" | "display" | "heading" | "label" | "caption" | "eyebrow" | "code" | null;
package/vanilla/UiText.js CHANGED
@@ -30,7 +30,7 @@ let P0, P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12, P13, P14, P15, P16, P
30
30
  const S = { n: [], t: [], f: import.meta.url, g: "ui-text", b: generatedInputs };
31
31
  const A = [["span",{},[],"",[],["data-ui-text-state","data-ui-text-prop-align","data-ui-text-prop-as","data-ui-text-prop-font","data-ui-text-prop-grow","data-ui-text-prop-size","data-ui-text-prop-tone","data-ui-text-prop-trim","data-ui-text-prop-truncate","data-ui-text-prop-variant","data-ui-text-prop-weight","data-ui-text-prop-wrap"]],["div",{},[],"",[],["data-ui-text-state","data-ui-text-prop-align","data-ui-text-prop-as","data-ui-text-prop-font","data-ui-text-prop-grow","data-ui-text-prop-size","data-ui-text-prop-tone","data-ui-text-prop-trim","data-ui-text-prop-truncate","data-ui-text-prop-variant","data-ui-text-prop-weight","data-ui-text-prop-wrap"]],["small",{},[],"",[],["data-ui-text-state","data-ui-text-prop-align","data-ui-text-prop-as","data-ui-text-prop-font","data-ui-text-prop-grow","data-ui-text-prop-size","data-ui-text-prop-tone","data-ui-text-prop-trim","data-ui-text-prop-truncate","data-ui-text-prop-variant","data-ui-text-prop-weight","data-ui-text-prop-wrap"]],["strong",{},[],"",[],["data-ui-text-state","data-ui-text-prop-align","data-ui-text-prop-as","data-ui-text-prop-font","data-ui-text-prop-grow","data-ui-text-prop-size","data-ui-text-prop-tone","data-ui-text-prop-trim","data-ui-text-prop-truncate","data-ui-text-prop-variant","data-ui-text-prop-weight","data-ui-text-prop-wrap"]],["label",{},[],"",[],["data-ui-text-state","data-ui-text-prop-align","data-ui-text-prop-as","data-ui-text-prop-font","data-ui-text-prop-grow","data-ui-text-prop-size","data-ui-text-prop-tone","data-ui-text-prop-trim","data-ui-text-prop-truncate","data-ui-text-prop-variant","data-ui-text-prop-weight","data-ui-text-prop-wrap"]],["h1",{},[],"",[],["data-ui-text-state","data-ui-text-prop-align","data-ui-text-prop-as","data-ui-text-prop-font","data-ui-text-prop-grow","data-ui-text-prop-size","data-ui-text-prop-tone","data-ui-text-prop-trim","data-ui-text-prop-truncate","data-ui-text-prop-variant","data-ui-text-prop-weight","data-ui-text-prop-wrap"]],["h2",{},[],"",[],["data-ui-text-state","data-ui-text-prop-align","data-ui-text-prop-as","data-ui-text-prop-font","data-ui-text-prop-grow","data-ui-text-prop-size","data-ui-text-prop-tone","data-ui-text-prop-trim","data-ui-text-prop-truncate","data-ui-text-prop-variant","data-ui-text-prop-weight","data-ui-text-prop-wrap"]],["h3",{},[],"",[],["data-ui-text-state","data-ui-text-prop-align","data-ui-text-prop-as","data-ui-text-prop-font","data-ui-text-prop-grow","data-ui-text-prop-size","data-ui-text-prop-tone","data-ui-text-prop-trim","data-ui-text-prop-truncate","data-ui-text-prop-variant","data-ui-text-prop-weight","data-ui-text-prop-wrap"]],["h4",{},[],"",[],["data-ui-text-state","data-ui-text-prop-align","data-ui-text-prop-as","data-ui-text-prop-font","data-ui-text-prop-grow","data-ui-text-prop-size","data-ui-text-prop-tone","data-ui-text-prop-trim","data-ui-text-prop-truncate","data-ui-text-prop-variant","data-ui-text-prop-weight","data-ui-text-prop-wrap"]],["h5",{},[],"",[],["data-ui-text-state","data-ui-text-prop-align","data-ui-text-prop-as","data-ui-text-prop-font","data-ui-text-prop-grow","data-ui-text-prop-size","data-ui-text-prop-tone","data-ui-text-prop-trim","data-ui-text-prop-truncate","data-ui-text-prop-variant","data-ui-text-prop-weight","data-ui-text-prop-wrap"]],["h6",{},[],"",[],["data-ui-text-state","data-ui-text-prop-align","data-ui-text-prop-as","data-ui-text-prop-font","data-ui-text-prop-grow","data-ui-text-prop-size","data-ui-text-prop-tone","data-ui-text-prop-trim","data-ui-text-prop-truncate","data-ui-text-prop-variant","data-ui-text-prop-weight","data-ui-text-prop-wrap"]],["p",{},[],"",[],["data-ui-text-state","data-ui-text-prop-align","data-ui-text-prop-as","data-ui-text-prop-font","data-ui-text-prop-grow","data-ui-text-prop-size","data-ui-text-prop-tone","data-ui-text-prop-trim","data-ui-text-prop-truncate","data-ui-text-prop-variant","data-ui-text-prop-weight","data-ui-text-prop-wrap"]]];
32
32
  const Q = [[],[],[],[],[],[],[],[],[],[],[],[]];
33
- const D = { g: "ui-text", props: { "align": { "required":false,"values":["start","center"],"default":"start", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] }, "as": { "required":false,"values":["p","span","div","small","strong","label","h1","h2","h3","h4","h5","h6"],"default":"p", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] }, "font": { "required":false,"values":["inherit","sans"],"default":"inherit", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] }, "grow": { "required":false,"default":false, c: checkBoolean, t: "boolean", j: 0, m: "b" }, "size": { "required":false,"values":["inherit","xs","sm","md","lg"],"default":"inherit", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] }, "tone": { "required":false,"values":["default","secondary","muted","accent","danger","success","info","warning"],"default":"default", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] }, "trim": { "required":false,"default":false, c: checkBoolean, t: "boolean", j: 0, m: "b" }, "truncate": { "required":false,"default":false, c: checkBoolean, t: "boolean", j: 0, m: "b" }, "variant": { "required":false,"values":["body","display","heading","label","caption","eyebrow","code"],"default":"body", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] }, "weight": { "required":false,"values":["inherit","normal","medium","semibold"],"default":"inherit", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] }, "wrap": { "required":false,"values":["normal","anywhere"],"default":"normal", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] } } };
33
+ const D = { g: "ui-text", props: { "align": { "required":false,"values":["start","center"],"default":"start", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] }, "as": { "required":false,"values":["p","span","div","small","strong","label","h1","h2","h3","h4","h5","h6"],"default":"p", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] }, "font": { "required":false,"values":["inherit","sans"],"default":"inherit", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] }, "grow": { "required":false,"default":false, c: checkBoolean, t: "boolean", j: 0, m: "b" }, "size": { "required":false,"values":["inherit","xs","sm","md","lg"],"default":"inherit", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] }, "tone": { "required":false,"values":["default","secondary","muted","accent","accent-secondary","accent-tertiary","danger","success","info","warning"],"default":"default", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] }, "trim": { "required":false,"default":false, c: checkBoolean, t: "boolean", j: 0, m: "b" }, "truncate": { "required":false,"default":false, c: checkBoolean, t: "boolean", j: 0, m: "b" }, "variant": { "required":false,"values":["body","display","heading","label","caption","eyebrow","code"],"default":"body", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] }, "weight": { "required":false,"values":["inherit","normal","medium","semibold"],"default":"inherit", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] }, "wrap": { "required":false,"values":["normal","anywhere"],"default":"normal", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] } } };
34
34
 
35
35
  export function createUiText(options = {}, html) {
36
36
  const { attributes = {}, children = [], slots = {}, ...componentProps } = options;
@@ -22,15 +22,9 @@ checkHydratedRoot('div', 'ui-action-bar')
22
22
  </template>
23
23
 
24
24
  <style scoped>
25
- /* This component's hooks style the element they are set on, and never a nested one. */
26
- @property --ui-action-bar-gap {
27
- syntax: "*";
28
- inherits: false;
29
- }
30
-
31
25
  /* The action row of a form or dialog. Tertiary actions (Back, Cancel, Discard) sit at the start
32
- edge; secondary actions (Save as draft, Preview) sit just before the primary one, which ends the
33
- row. The bar arranges its actions and leaves their look to them. */
26
+ edge; secondary actions (Save as draft, Preview) sit just before the primary one, which ends the
27
+ row. The bar arranges its actions and leaves their look to them. */
34
28
 
35
29
  /* The tertiary group takes the spare space, pushing the rest to the end edge; without it, the
36
30
  rest still ends the row. */
@@ -42,7 +36,7 @@ checkHydratedRoot('div', 'ui-action-bar')
42
36
 
43
37
  @scope (.ui-action-bar) to ([data-hn]) {
44
38
  :global(:scope:where([data-hn-ui-action-bar])) {
45
- /* Hooks do not inherit, so the parts below read them from the root. */
39
+ /* Resolve shared part values at the component root. */
46
40
  --_ui-action-bar-gap: var(--ui-action-bar-gap);
47
41
 
48
42
  --_gap: var(--ui-space-2);
@@ -166,14 +166,14 @@ useComponentHost(() => import('../components/ui-affordance-scope/ui-affordance-s
166
166
  @scope (.ui-affordance-scope) to ([data-hn]) {
167
167
  :global(:scope:where([data-hn-ui-affordance-scope])) {
168
168
  display: contents !important;
169
- --ui-affordance-scope-engaged: 0;
170
- --ui-affordance-scope-guide: 1;
169
+ --_ui-affordance-scope-engaged: 0;
170
+ --_ui-affordance-scope-guide: 1;
171
171
  }
172
172
  :global(:scope[data-ui-affordance-scope-state~="engaged"]:where([data-hn-ui-affordance-scope])) {
173
- --ui-affordance-scope-engaged: 1;
173
+ --_ui-affordance-scope-engaged: 1;
174
174
  }
175
175
  :global(:scope[data-ui-affordance-scope-state~="guide=none"]:where([data-hn-ui-affordance-scope])) {
176
- --ui-affordance-scope-guide: 0;
176
+ --_ui-affordance-scope-guide: 0;
177
177
  }
178
178
  :global(:scope[hidden]:where([data-hn-ui-affordance-scope])) {
179
179
  display: none !important;
package/vue/UiAvatar.vue CHANGED
@@ -299,30 +299,8 @@ useComponentHost(() => import('../components/ui-avatar/ui-avatar.js'), {
299
299
  </template>
300
300
 
301
301
  <style scoped>
302
- /* This component's hooks style the element they are set on, and never a nested one. */
303
- @property --ui-avatar-border {
304
- syntax: "*";
305
- inherits: false;
306
- }
307
- @property --ui-avatar-radius {
308
- syntax: "*";
309
- inherits: false;
310
- }
311
- @property --ui-avatar-surface {
312
- syntax: "*";
313
- inherits: false;
314
- }
315
- @property --ui-avatar-text {
316
- syntax: "*";
317
- inherits: false;
318
- }
319
- @property --ui-avatar-active-ring {
320
- syntax: "*";
321
- inherits: false;
322
- }
323
-
324
302
  /* An outline, not a dot: the avatar clips its content to the circle, and an outline is drawn
325
- outside the box, so the ring survives the clip and the overlap in an Avatar Group. */
303
+ outside the box, so the ring survives the clip and the overlap in an Avatar Group. */
326
304
 
327
305
  /* Centre the glyphs, not the line box: a label without descenders otherwise reads high. */
328
306
  /* Centre the glyphs, not the line box: a label without descenders otherwise reads high.
@@ -353,14 +331,12 @@ useComponentHost(() => import('../components/ui-avatar/ui-avatar.js'), {
353
331
  line-height: 1;
354
332
  text-transform: uppercase;
355
333
  }
356
-
357
334
  :global(:scope[data-ui-avatar-state~="size=sm"]:where([data-hn-ui-avatar])) {
358
335
  --_ui-default-icon-size: 1rem;
359
336
  inline-size: 1.75rem;
360
337
  block-size: 1.75rem;
361
338
  font-size: var(--ui-font-size-xs);
362
339
  }
363
-
364
340
  :global(:scope[data-ui-avatar-state~="size=xs"]:where([data-hn-ui-avatar])) {
365
341
  --_ui-default-icon-size: 0.75rem;
366
342
  inline-size: 1.25rem;
@@ -369,15 +345,12 @@ useComponentHost(() => import('../components/ui-avatar/ui-avatar.js'), {
369
345
  font-size: calc(var(--ui-font-size-md) * 0.5625);
370
346
  letter-spacing: 0.02em;
371
347
  }
372
-
373
348
  :global(:scope[data-ui-avatar-state~="hasImage"]:where([data-hn-ui-avatar])) {
374
349
  border-color: var(--ui-avatar-border, var(--ui-border-strong));
375
350
  }
376
-
377
351
  :global(:scope[data-ui-avatar-state~="shape=circle"]:where([data-hn-ui-avatar])) {
378
352
  box-shadow: var(--ui-shadow-sm);
379
353
  }
380
-
381
354
  :global(:scope[data-ui-avatar-state~="shape=square"]:where([data-hn-ui-avatar])) {
382
355
  border-radius: var(--ui-avatar-radius, var(--ui-radius-md));
383
356
  }
@@ -225,16 +225,6 @@ useComponentHost(() => import('../components/ui-avatar-group/ui-avatar-group.js'
225
225
  </template>
226
226
 
227
227
  <style scoped>
228
- /* This component's hooks style the element they are set on, and never a nested one. */
229
- @property --ui-avatar-group-edge-ring {
230
- syntax: "*";
231
- inherits: false;
232
- }
233
- @property --ui-avatar-group-overlap-shadow {
234
- syntax: "*";
235
- inherits: false;
236
- }
237
-
238
228
  /* Overlap and the separating shadow are applied by the controller: slotted avatars are nested
239
229
  * component roots outside this style scope. */
240
230
 
@@ -242,7 +232,7 @@ useComponentHost(() => import('../components/ui-avatar-group/ui-avatar-group.js'
242
232
 
243
233
  @scope (.ui-avatar-group) to ([data-hn]) {
244
234
  :global(:scope:where([data-hn-ui-avatar-group])) {
245
- /* Hooks do not inherit, so the parts below read them from the root. */
235
+ /* Resolve shared part values at the component root. */
246
236
  --_ui-avatar-group-overlap-shadow: var(--ui-avatar-group-overlap-shadow);
247
237
  --_ui-avatar-group-edge-ring: var(--ui-avatar-group-edge-ring);
248
238
 
package/vue/UiBadge.d.ts CHANGED
@@ -14,7 +14,7 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
14
14
  type: PropType<"xs" | "sm" | "md" | "lg" | null>;
15
15
  };
16
16
  tone: {
17
- type: PropType<"neutral" | "accent" | "info" | "success" | "warning" | "danger" | null>;
17
+ type: PropType<"neutral" | "accent" | "accent-secondary" | "accent-tertiary" | "info" | "success" | "warning" | "danger" | null>;
18
18
  };
19
19
  variant: {
20
20
  type: PropType<"solid" | "subtle" | "outline" | "inverse" | "overlay" | null>;
@@ -30,7 +30,7 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
30
30
  type: PropType<"xs" | "sm" | "md" | "lg" | null>;
31
31
  };
32
32
  tone: {
33
- type: PropType<"neutral" | "accent" | "info" | "success" | "warning" | "danger" | null>;
33
+ type: PropType<"neutral" | "accent" | "accent-secondary" | "accent-tertiary" | "info" | "success" | "warning" | "danger" | null>;
34
34
  };
35
35
  variant: {
36
36
  type: PropType<"solid" | "subtle" | "outline" | "inverse" | "overlay" | null>;