@threadlabs/looma 0.42.0 → 0.43.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (272) hide show
  1. package/components/ui-action-bar/ui-action-bar.html +1 -7
  2. package/components/ui-affordance-scope/ui-affordance-scope.html +4 -4
  3. package/components/ui-avatar/ui-avatar.html +0 -22
  4. package/components/ui-avatar-group/ui-avatar-group.html +1 -11
  5. package/components/ui-badge/ui-badge.html +57 -78
  6. package/components/ui-button/ui-button.html +36 -81
  7. package/components/ui-callout/ui-callout.html +30 -68
  8. package/components/ui-card/ui-card.html +47 -21
  9. package/components/ui-checkbox/ui-checkbox.html +1 -15
  10. package/components/ui-cluster/ui-cluster.html +1 -7
  11. package/components/ui-combobox/ui-combobox.html +7 -70
  12. package/components/ui-container/ui-container.html +2 -12
  13. package/components/ui-context-menu/ui-context-menu.html +1 -23
  14. package/components/ui-dialog/ui-dialog.html +1 -31
  15. package/components/ui-disclosure/ui-disclosure.html +1 -15
  16. package/components/ui-editor-mention-menu/ui-editor-mention-menu.js +3 -0
  17. package/components/ui-editor-slash-menu/ui-editor-slash-menu.js +4 -0
  18. package/components/ui-editor-table-overlay/ui-editor-table-overlay.html +3 -2
  19. package/components/ui-floating-action-button/ui-floating-action-button.html +0 -14
  20. package/components/ui-form-field/ui-form-field.html +2 -32
  21. package/components/ui-grid/ui-grid.html +1 -11
  22. package/components/ui-icon/ui-icon.html +1 -12
  23. package/components/ui-icon-button/ui-icon-button.html +52 -87
  24. package/components/ui-input/ui-input.html +5 -55
  25. package/components/ui-input-group/ui-input-group.html +1 -13
  26. package/components/ui-list/ui-list.html +0 -10
  27. package/components/ui-list-item/ui-list-item.html +1 -19
  28. package/components/ui-listbox/ui-listbox.html +0 -21
  29. package/components/ui-menu/ui-menu.html +0 -22
  30. package/components/ui-menu-item/ui-menu-item.html +0 -26
  31. package/components/ui-meter/ui-meter.html +11 -6
  32. package/components/ui-nav-item/ui-nav-item.html +0 -18
  33. package/components/ui-popover/ui-popover.html +0 -30
  34. package/components/ui-radio/ui-radio.html +7 -13
  35. package/components/ui-radio-group/ui-radio-group.html +0 -5
  36. package/components/ui-reel/ui-reel.html +1 -11
  37. package/components/ui-search-result-row/ui-search-result-row.html +0 -34
  38. package/components/ui-search-shell/ui-search-shell.html +1 -43
  39. package/components/ui-select/ui-select.html +0 -42
  40. package/components/ui-separator/ui-separator.html +0 -6
  41. package/components/ui-sidebar/ui-sidebar.html +2 -24
  42. package/components/ui-site-header/ui-site-header.html +0 -25
  43. package/components/ui-skeleton/ui-skeleton.html +0 -9
  44. package/components/ui-stack/ui-stack.html +6 -11
  45. package/components/ui-swatch/ui-swatch.html +0 -5
  46. package/components/ui-switch/ui-switch.html +1 -15
  47. package/components/ui-switcher/ui-switcher.html +1 -11
  48. package/components/ui-tabs/ui-tabs.html +1 -19
  49. package/components/ui-text/ui-text.html +19 -6
  50. package/components/ui-textarea/ui-textarea.html +0 -50
  51. package/components/ui-toast/ui-toast.html +12 -27
  52. package/components/ui-toast-region/ui-toast-region.html +13 -34
  53. package/components/ui-tooltip/ui-tooltip.html +1 -43
  54. package/components/ui-top-bar/ui-top-bar.html +1 -31
  55. package/components/ui-tree/ui-tree.html +1 -16
  56. package/components/ui-tree-item/ui-tree-item.html +1 -23
  57. package/components/ui-tree-item/ui-tree-item.js +0 -1
  58. package/dist/index.js +1 -1
  59. package/docs/README.md +13 -11
  60. package/docs/card.html +2 -6
  61. package/docs/card.js +7 -37
  62. package/docs/catalog.json +821 -202
  63. package/docs/catalog.mjs +1 -1
  64. package/docs/customizer-render.mjs +27 -14
  65. package/docs/customizer.js +42 -9
  66. package/docs/documentation.css +3 -7
  67. package/docs/examples/ui-button/examples/08-loading.behavior.js +1 -1
  68. package/docs/examples/ui-checkbox/examples/02-checked-indeterminate-and-disabled.behavior.js +1 -1
  69. package/docs/examples/ui-editor-mention-menu/examples/00-preview.behavior.js +1 -0
  70. package/docs/examples/ui-editor-slash-menu/examples/00-preview.behavior.js +81 -0
  71. package/docs/examples/ui-editor-table-overlay/examples/00-preview.behavior.js +24 -0
  72. package/docs/examples/ui-search-shell/examples/00-preview.behavior.js +14 -0
  73. package/docs/examples/ui-search-shell/examples/02-label-dismissible-status-and-footer.behavior.js +7 -7
  74. package/docs/examples/ui-toast/examples/01-authored.behavior.js +2 -2
  75. package/docs/index.d.ts +1 -1
  76. package/docs/local-server.mjs +2 -5
  77. package/docs/palette.mjs +5 -4
  78. package/docs/pastoral.svg +54 -0
  79. package/docs/portrait.svg +15 -0
  80. package/docs/render.mjs +33 -3
  81. package/docs/site.mjs +22 -54
  82. package/docs/theme.mjs +97 -35
  83. package/docs/value-editors.mjs +2 -1
  84. package/package.json +2 -2
  85. package/styles/ui-action-bar.css +3 -11
  86. package/styles/ui-affordance-scope.css +4 -4
  87. package/styles/ui-avatar-group.css +3 -15
  88. package/styles/ui-avatar.css +2 -26
  89. package/styles/ui-badge.css +56 -80
  90. package/styles/ui-button.css +35 -83
  91. package/styles/ui-callout.css +32 -72
  92. package/styles/ui-card.css +42 -18
  93. package/styles/ui-checkbox.css +3 -19
  94. package/styles/ui-cluster.css +2 -10
  95. package/styles/ui-combobox.css +7 -140
  96. package/styles/ui-container.css +2 -14
  97. package/styles/ui-context-menu.css +3 -27
  98. package/styles/ui-dialog.css +5 -67
  99. package/styles/ui-disclosure.css +3 -19
  100. package/styles/ui-editor-table-overlay.css +2 -2
  101. package/styles/ui-floating-action-button.css +2 -18
  102. package/styles/ui-form-field.css +4 -36
  103. package/styles/ui-grid.css +2 -14
  104. package/styles/ui-icon-button.css +51 -89
  105. package/styles/ui-icon.css +3 -16
  106. package/styles/ui-input-group.css +2 -14
  107. package/styles/ui-input.css +6 -57
  108. package/styles/ui-list-item.css +3 -23
  109. package/styles/ui-list.css +2 -14
  110. package/styles/ui-listbox.css +2 -44
  111. package/styles/ui-menu-item.css +2 -30
  112. package/styles/ui-menu.css +2 -26
  113. package/styles/ui-meter.css +8 -4
  114. package/styles/ui-nav-item.css +2 -22
  115. package/styles/ui-popover.css +2 -34
  116. package/styles/ui-radio-group.css +1 -6
  117. package/styles/ui-radio.css +9 -17
  118. package/styles/ui-reel.css +2 -14
  119. package/styles/ui-search-result-row.css +2 -38
  120. package/styles/ui-search-shell.css +3 -47
  121. package/styles/ui-select.css +2 -46
  122. package/styles/ui-separator.css +2 -10
  123. package/styles/ui-sidebar.css +4 -28
  124. package/styles/ui-site-header.css +1 -26
  125. package/styles/ui-skeleton.css +2 -12
  126. package/styles/ui-stack.css +4 -12
  127. package/styles/ui-swatch.css +1 -6
  128. package/styles/ui-switch.css +3 -19
  129. package/styles/ui-switcher.css +2 -14
  130. package/styles/ui-tabs.css +3 -23
  131. package/styles/ui-text.css +10 -2
  132. package/styles/ui-textarea.css +2 -54
  133. package/styles/ui-toast-region.css +29 -73
  134. package/styles/ui-toast.css +24 -54
  135. package/styles/ui-tooltip.css +3 -47
  136. package/styles/ui-top-bar.css +3 -35
  137. package/styles/ui-tree-item.css +5 -51
  138. package/styles/ui-tree.css +3 -20
  139. package/theme-system.css +6 -2
  140. package/tokens.css +55 -21
  141. package/vanilla/UiBadge.d.ts +1 -1
  142. package/vanilla/UiBadge.js +1 -1
  143. package/vanilla/UiButton.d.ts +1 -1
  144. package/vanilla/UiButton.js +1 -1
  145. package/vanilla/UiCard.d.ts +1 -1
  146. package/vanilla/UiCard.js +1 -1
  147. package/vanilla/UiEditorTableOverlay.js +50 -36
  148. package/vanilla/UiIconButton.d.ts +1 -1
  149. package/vanilla/UiIconButton.js +1 -1
  150. package/vanilla/UiMeter.d.ts +1 -1
  151. package/vanilla/UiMeter.js +1 -1
  152. package/vanilla/UiStack.js +1 -1
  153. package/vanilla/UiText.d.ts +1 -1
  154. package/vanilla/UiText.js +1 -1
  155. package/vue/UiActionBar.vue +3 -9
  156. package/vue/UiAffordanceScope.vue +4 -4
  157. package/vue/UiAvatar.vue +1 -28
  158. package/vue/UiAvatarGroup.vue +1 -11
  159. package/vue/UiBadge.d.ts +2 -2
  160. package/vue/UiBadge.vue +84 -81
  161. package/vue/UiButton.d.ts +2 -2
  162. package/vue/UiButton.vue +78 -97
  163. package/vue/UiCallout.vue +30 -71
  164. package/vue/UiCard.d.ts +2 -2
  165. package/vue/UiCard.vue +77 -26
  166. package/vue/UiCheckbox.vue +1 -15
  167. package/vue/UiCluster.vue +1 -10
  168. package/vue/UiCombobox.vue +13 -72
  169. package/vue/UiContainer.vue +1 -13
  170. package/vue/UiContextMenu.vue +1 -30
  171. package/vue/UiDialog.vue +3 -33
  172. package/vue/UiDisclosure.vue +1 -15
  173. package/vue/UiEditorTableOverlay.d.ts +11 -1
  174. package/vue/UiEditorTableOverlay.vue +100 -65
  175. package/vue/UiFloatingActionButton.vue +0 -22
  176. package/vue/UiFormField.vue +6 -33
  177. package/vue/UiGrid.vue +1 -13
  178. package/vue/UiIcon.vue +1 -16
  179. package/vue/UiIconButton.d.ts +2 -2
  180. package/vue/UiIconButton.vue +103 -99
  181. package/vue/UiInput.vue +1 -54
  182. package/vue/UiInputGroup.vue +8 -20
  183. package/vue/UiList.vue +2 -12
  184. package/vue/UiListItem.vue +8 -26
  185. package/vue/UiListbox.vue +0 -23
  186. package/vue/UiMenu.vue +1 -23
  187. package/vue/UiMenuItem.vue +0 -26
  188. package/vue/UiMeter.d.ts +2 -2
  189. package/vue/UiMeter.vue +47 -12
  190. package/vue/UiNavItem.vue +3 -21
  191. package/vue/UiPopover.vue +1 -32
  192. package/vue/UiRadio.vue +1 -11
  193. package/vue/UiRadioGroup.vue +0 -11
  194. package/vue/UiReel.vue +1 -11
  195. package/vue/UiSearchResultRow.vue +0 -35
  196. package/vue/UiSearchShell.vue +1 -53
  197. package/vue/UiSelect.vue +0 -42
  198. package/vue/UiSeparator.vue +0 -7
  199. package/vue/UiSidebar.vue +3 -26
  200. package/vue/UiSiteHeader.vue +0 -24
  201. package/vue/UiSkeleton.vue +0 -9
  202. package/vue/UiStack.vue +6 -11
  203. package/vue/UiSwatch.vue +1 -6
  204. package/vue/UiSwitch.vue +1 -15
  205. package/vue/UiSwitcher.vue +1 -14
  206. package/vue/UiTabs.vue +1 -19
  207. package/vue/UiText.d.ts +2 -2
  208. package/vue/UiText.vue +29 -4
  209. package/vue/UiTextarea.vue +0 -50
  210. package/vue/UiToast.vue +26 -34
  211. package/vue/UiToastRegion.vue +26 -55
  212. package/vue/UiTooltip.vue +1 -43
  213. package/vue/UiTopBar.vue +1 -34
  214. package/vue/UiTree.vue +2 -17
  215. package/vue/UiTreeItem.vue +2 -28
  216. package/vue/chunks/UiActionBar.js +1 -1
  217. package/vue/chunks/UiAffordanceScope.js +1 -1
  218. package/vue/chunks/UiAvatar.js +1 -1
  219. package/vue/chunks/UiAvatarGroup.js +1 -1
  220. package/vue/chunks/UiBadge.js +4 -2
  221. package/vue/chunks/UiButton.js +4 -2
  222. package/vue/chunks/UiCallout.js +1 -1
  223. package/vue/chunks/UiCard.js +5 -3
  224. package/vue/chunks/UiCheckbox.js +1 -1
  225. package/vue/chunks/UiCluster.js +2 -2
  226. package/vue/chunks/UiCombobox.js +3 -3
  227. package/vue/chunks/UiContainer.js +2 -2
  228. package/vue/chunks/UiContextMenu.js +1 -1
  229. package/vue/chunks/UiDialog.js +1 -1
  230. package/vue/chunks/UiDisclosure.js +1 -1
  231. package/vue/chunks/UiEditorTableOverlay.js +41 -13
  232. package/vue/chunks/UiFloatingActionButton.js +1 -1
  233. package/vue/chunks/UiFormField.js +1 -1
  234. package/vue/chunks/UiGrid.js +2 -2
  235. package/vue/chunks/UiIcon.js +1 -1
  236. package/vue/chunks/UiIconButton.js +4 -2
  237. package/vue/chunks/UiInput.js +1 -1
  238. package/vue/chunks/UiInputGroup.js +1 -1
  239. package/vue/chunks/UiList.js +1 -1
  240. package/vue/chunks/UiListItem.js +1 -1
  241. package/vue/chunks/UiListbox.js +1 -1
  242. package/vue/chunks/UiMenu.js +1 -1
  243. package/vue/chunks/UiMenuItem.js +1 -1
  244. package/vue/chunks/UiMeter.js +4 -2
  245. package/vue/chunks/UiNavItem.js +1 -1
  246. package/vue/chunks/UiPopover.js +1 -1
  247. package/vue/chunks/UiRadio.js +1 -1
  248. package/vue/chunks/UiRadioGroup.js +1 -1
  249. package/vue/chunks/UiReel.js +2 -2
  250. package/vue/chunks/UiSearchResultRow.js +1 -1
  251. package/vue/chunks/UiSearchShell.js +1 -1
  252. package/vue/chunks/UiSelect.js +1 -1
  253. package/vue/chunks/UiSeparator.js +1 -1
  254. package/vue/chunks/UiSidebar.js +1 -1
  255. package/vue/chunks/UiSiteHeader.js +1 -1
  256. package/vue/chunks/UiSkeleton.js +1 -1
  257. package/vue/chunks/UiStack.js +3 -3
  258. package/vue/chunks/UiSwatch.js +1 -1
  259. package/vue/chunks/UiSwitch.js +1 -1
  260. package/vue/chunks/UiSwitcher.js +2 -2
  261. package/vue/chunks/UiTabs.js +1 -1
  262. package/vue/chunks/UiText.js +4 -2
  263. package/vue/chunks/UiTextarea.js +1 -1
  264. package/vue/chunks/UiToast.js +1 -1
  265. package/vue/chunks/UiToastRegion.js +1 -1
  266. package/vue/chunks/UiTooltip.js +1 -1
  267. package/vue/chunks/UiTopBar.js +1 -1
  268. package/vue/chunks/UiTree.js +1 -1
  269. package/vue/chunks/UiTreeItem.js +1 -1
  270. package/vue/components.css +633 -2068
  271. package/vue/editor/index.js +7 -1
  272. package/docs/preview.js +0 -22
@@ -7,21 +7,7 @@
7
7
  [data-component~="ui-tree"] { --html-next-scope-owner: "ui-tree" !important; }
8
8
  }
9
9
  @scope ([data-component~="ui-tree"]) to ([data-component], [data-slotted]) {
10
- /* This component's hooks style the element they are set on, and never a nested one. */
11
- @property --ui-tree-drop-color {
12
- syntax: "*";
13
- inherits: false;
14
- }
15
- @property --ui-tree-gutter {
16
- syntax: "*";
17
- inherits: false;
18
- }
19
- @property --ui-tree-indent {
20
- syntax: "*";
21
- inherits: false;
22
- }
23
-
24
- /* Reaches the items the way density does, so the setting lives on the tree the way a reader
10
+ /* Reaches the items the way density does, so the setting lives on the tree the way a reader
25
11
  thinks about it: this list scrolls its long names. */
26
12
  :scope:where([data-component~="ui-tree"])[data-ui-tree-state~="marquee"] {
27
13
  --_ui-default-tree-item-marquee: 1;
@@ -35,8 +21,7 @@
35
21
  }
36
22
 
37
23
  :scope:where([data-component~="ui-tree"]) {
38
- /* Hooks do not inherit: the tree hands its own to its items here, and a tree nested in an item
39
- starts again from its own settings. */
24
+ /* Resolve tree hooks here and reset private density defaults for nested trees. */
40
25
  --_ui-tree-indent: var(--ui-tree-indent);
41
26
  --_ui-tree-drop-color: var(--ui-tree-drop-color);
42
27
  --_ui-default-tree-item-marquee: initial;
@@ -62,9 +47,7 @@
62
47
  }
63
48
  }
64
49
  @scope ([data-component~="ui-tree"]) to ([data-component]) {
65
- /* This component's hooks style the element they are set on, and never a nested one. */
66
-
67
- /* Reaches the items the way density does, so the setting lives on the tree the way a reader
50
+ /* Reaches the items the way density does, so the setting lives on the tree the way a reader
68
51
  thinks about it: this list scrolls its long names. */
69
52
 
70
53
  /* The items' defaults for this density: an item's own hook still wins. */
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;
@@ -1,14 +1,15 @@
1
1
  // Generated by HTML Next 1.0.0-alpha.69 for Vanilla DOM. Do not edit.
2
- import { attachGeneratedController, buildTemplate, checkReference, clearRegion, KeyedList, NONCONFORMING, readDeclared, readMember, toAttribute, toText, trackContainer, truthy, visitSelected, writeAttribute, dispatchDeclared, detailCheck, formatOf, keywordFormat, acceptProps, manageProps, generatedInputs, checkBoolean, checkInteger, checkList, checkNumber, checkObject, defineComponent, activateModule } from "@nextwebwg/html-next/generated-runtime";
2
+ import { attachGeneratedController, buildTemplate, checkReference, clearRegion, KeyedList, NONCONFORMING, readDeclared, readMember, toAttribute, toText, trackContainer, truthy, visitSelected, writeAttribute, dispatchDeclared, detailCheck, dispose, formatOf, keywordFormat, acceptProps, manageProps, generatedInputs, project, fillSlot, checkBoolean, checkInteger, checkList, checkNumber, checkObject, defineComponent, activateModule } from "@nextwebwg/html-next/generated-runtime";
3
3
  import * as controller from "../components/ui-editor-table-overlay/ui-editor-table-overlay.js";
4
4
  import "../styles/ui-editor-table-overlay.css";
5
5
 
6
- const T0 = ["",[],"\n ",["div",["class","rows"],"\n ",2,"\n "],"\n ",["div",["class","cols"],"\n ",2,"\n "],"\n ",1,"\n ",1,"\n ",["span",["class","drop-indicator","data-drop-indicator","","hidden","","aria-hidden","true"]],"\n "];
7
- const T1 = ["div",["class","control row"],"\n ",["span",["class","line","aria-hidden","true"]],"\n ",["span",["class","guide","data-ui-guide","","aria-hidden","true"]],"\n ",["button",["type","button","class","handle"],"\n ",["ui-icon",["name","plus"]],"\n ",["span",["class","tooltip","role","tooltip"],0],"\n "],"\n "];
8
- const T2 = ["div",["class","control col"],"\n ",["span",["class","line","aria-hidden","true"]],"\n ",["span",["class","guide","data-ui-guide","","aria-hidden","true"]],"\n ",["button",["type","button","class","handle"],"\n ",["ui-icon",["name","plus"]],"\n ",["span",["class","tooltip","role","tooltip"],0],"\n "],"\n "];
9
- const T3 = ["",[],"\n ",["button",["type","button","class","selector row","data-action","select-row","title","Drag row to reorder; click for actions","aria-label","Row actions"],"\n ",["span",["class","glyph"],["ui-icon",["name","grip-vertical"]]],"\n "],"\n ",["button",["type","button","class","selector column","data-action","select-column","title","Drag column to reorder; click for actions","aria-label","Column actions"],"\n ",["span",["class","glyph"],["ui-icon",["name","grip-horizontal"]]],"\n "],"\n "];
10
- const T4 = ["button",["type","button","class","cell-menu","data-action","open-cell-menu","title","Cell actions","aria-label","Cell actions"],"\n ",["ui-icon",["name","chevron-down"]],"\n "];
11
- let P0, P1, P2, P3, P4;
6
+ const T0 = ["",[],"\n ",4,"\n ",["div",["class","rows"],"\n ",2,"\n "],"\n ",["div",["class","cols"],"\n ",2,"\n "],"\n ",1,"\n ",1,"\n ",["span",["class","drop-indicator","data-drop-indicator","","hidden","","aria-hidden","true"]],"\n "];
7
+ const T1 = ["",[]];
8
+ const T2 = ["div",["class","control row"],"\n ",["span",["class","line","aria-hidden","true"]],"\n ",["span",["class","guide","data-ui-guide","","aria-hidden","true"]],"\n ",["button",["type","button","class","handle"],"\n ",["ui-icon",["name","plus"]],"\n ",["span",["class","tooltip","role","tooltip"],0],"\n "],"\n "];
9
+ const T3 = ["div",["class","control col"],"\n ",["span",["class","line","aria-hidden","true"]],"\n ",["span",["class","guide","data-ui-guide","","aria-hidden","true"]],"\n ",["button",["type","button","class","handle"],"\n ",["ui-icon",["name","plus"]],"\n ",["span",["class","tooltip","role","tooltip"],0],"\n "],"\n "];
10
+ const T4 = ["",[],"\n ",["button",["type","button","class","selector row","data-action","select-row","title","Drag row to reorder; click for actions","aria-label","Row actions"],"\n ",["span",["class","glyph"],["ui-icon",["name","grip-vertical"]]],"\n "],"\n ",["button",["type","button","class","selector column","data-action","select-column","title","Drag column to reorder; click for actions","aria-label","Column actions"],"\n ",["span",["class","glyph"],["ui-icon",["name","grip-horizontal"]]],"\n "],"\n "];
11
+ const T5 = ["button",["type","button","class","cell-menu","data-action","open-cell-menu","title","Cell actions","aria-label","Cell actions"],"\n ",["ui-icon",["name","chevron-down"]],"\n "];
12
+ let P0, P1, P2, P3, P4, P5;
12
13
  const E = new Map();
13
14
  const S = { n: ["rows","cols","hovered","active","activeKey"], t: [["l",["o",["key","s","index","i","offset","s","affordance",["p",formatOf(keywordFormat)],"action",["p",formatOf(keywordFormat)],"label","s"]]],["l",["o",["key","s","index","i","offset","s","affordance",["p",formatOf(keywordFormat)],"action",["p",formatOf(keywordFormat)],"label","s"]]],["o",["left","n","top","n","width","n","height","n","rowIndex","i","columnIndex","i","rowOffset","s","columnOffset","s"]],["o",["left","n","top","n","width","n","height","n","rowIndex","i","columnIndex","i","menuLeft","s","menuTop","s"]],"s"], f: import.meta.url, g: "ui-editor-table-overlay", d: { "add-row-before": [detailCheck(checkObject([["boundaryIndex", checkInteger, false]], false)), true, true, false], "add-row-after": [detailCheck(checkObject([["boundaryIndex", checkInteger, false]], false)), true, true, false], "add-column-before": [detailCheck(checkObject([["boundaryIndex", checkInteger, false]], false)), true, true, false], "add-column-after": [detailCheck(checkObject([["boundaryIndex", checkInteger, false]], false)), true, true, false], "select-row": [detailCheck(checkObject([["rowIndex", checkInteger, false], ["columnIndex", checkInteger, false]], false)), true, true, false], "select-column": [detailCheck(checkObject([["rowIndex", checkInteger, false], ["columnIndex", checkInteger, false]], false)), true, true, false], "reorder-row": [detailCheck(checkObject([["fromIndex", checkInteger, false], ["toIndex", checkInteger, false]], false)), true, true, false], "reorder-column": [detailCheck(checkObject([["fromIndex", checkInteger, false], ["toIndex", checkInteger, false]], false)), true, true, false], "open-cell-menu": [detailCheck(checkObject([["rowIndex", checkInteger, false], ["columnIndex", checkInteger, false], ["anchor", checkObject([["left", checkNumber, false], ["top", checkNumber, false], ["right", checkNumber, false], ["bottom", checkNumber, false]], false), false]], false)), true, true, false], "open-row-menu": [detailCheck(checkObject([["rowIndex", checkInteger, false], ["columnIndex", checkInteger, false], ["anchor", checkObject([["left", checkNumber, false], ["top", checkNumber, false], ["right", checkNumber, false], ["bottom", checkNumber, false]], false), false]], false)), true, true, false], "open-column-menu": [detailCheck(checkObject([["rowIndex", checkInteger, false], ["columnIndex", checkInteger, false], ["anchor", checkObject([["left", checkNumber, false], ["top", checkNumber, false], ["right", checkNumber, false], ["bottom", checkNumber, false]], false), false]], false)), true, true, false] }, x: dispatchDeclared, a: (host, I) => C(host, I), b: generatedInputs, i: [[], [], null, null, ""] };
14
15
  const D = { g: "ui-editor-table-overlay", props: { "geometry": { "required":false, c: checkObject([["rowBoundaries", checkList(checkNumber), false], ["columnBoundaries", checkList(checkNumber), false], ["activeCell", checkObject([["left", checkNumber, false], ["top", checkNumber, false], ["width", checkNumber, false], ["height", checkNumber, false], ["rowIndex", checkInteger, false], ["columnIndex", checkInteger, false]], false), true], ["hoveredCell", checkObject([["left", checkNumber, false], ["top", checkNumber, false], ["width", checkNumber, false], ["height", checkNumber, false], ["rowIndex", checkInteger, false], ["columnIndex", checkInteger, false]], false), true]], false), j: 1, m: ["o",["rowBoundaries",["l","n"],"columnBoundaries",["l","n"],"activeCell",["o",["left","n","top","n","width","n","height","n","rowIndex","i","columnIndex","i"]],"hoveredCell",["o",["left","n","top","n","width","n","height","n","rowIndex","i","columnIndex","i"]]]] }, "open": { "required":false,"default":false, c: checkBoolean, t: "boolean", j: 0, m: "b" } } };
@@ -27,15 +28,23 @@ export function createUiEditorTableOverlay(options = {}, html) {
27
28
  const v = [[], [], null, null, "", null, null];
28
29
  const B = acceptProps(element, D, S.n, v, componentProps, [], html);
29
30
  let s4 = v[4];
30
- const m1 = (o, j, l) => {
31
+ const m1 = (d) => {
31
32
  const n = (P1 ??= buildTemplate(T1)).cloneNode(true);
33
+ const r = { n };
34
+ p1(r, -1, d);
35
+ return r;
36
+ };
37
+ const p1 = (r, c, d) => {
38
+ };
39
+ const m2 = (o, j, l) => {
40
+ const n = (P2 ??= buildTemplate(T2)).cloneNode(true);
32
41
  const t0 = n.firstChild.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling;
33
42
  const t1 = t0.firstChild.nextSibling.nextSibling.nextSibling.firstChild;
34
43
  const r = { k: undefined, i: o, n, x: 0, y: 0, a1: t0, a2: t1, w: 0, v0: false, v1: undefined, v2: null, v3: null, v4: null, v5: null, v6: null, v7: "" };
35
- p1(r, -1, E);
44
+ p2(r, -1, E);
36
45
  return r;
37
46
  };
38
- const p1 = (r, c, d) => {
47
+ const p2 = (r, c, d) => {
39
48
  const o = r.i;
40
49
  if (c & 1073741824) r.w = 0;
41
50
  if (c & 1073741840) {
@@ -66,15 +75,15 @@ export function createUiEditorTableOverlay(options = {}, html) {
66
75
  if (s7 !== r.v7) r.a2.data = r.v7 = s7;
67
76
  }
68
77
  };
69
- const m2 = (o, j, l) => {
70
- const n = (P2 ??= buildTemplate(T2)).cloneNode(true);
78
+ const m3 = (o, j, l) => {
79
+ const n = (P3 ??= buildTemplate(T3)).cloneNode(true);
71
80
  const t0 = n.firstChild.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling;
72
81
  const t1 = t0.firstChild.nextSibling.nextSibling.nextSibling.firstChild;
73
82
  const r = { k: undefined, i: o, n, x: 0, y: 0, a1: t0, a2: t1, w: 0, v0: false, v1: undefined, v2: null, v3: null, v4: null, v5: null, v6: null, v7: "" };
74
- p2(r, -1, E);
83
+ p3(r, -1, E);
75
84
  return r;
76
85
  };
77
- const p2 = (r, c, d) => {
86
+ const p3 = (r, c, d) => {
78
87
  const o = r.i;
79
88
  if (c & 1073741824) r.w = 0;
80
89
  if (c & 1073741840) {
@@ -105,15 +114,15 @@ export function createUiEditorTableOverlay(options = {}, html) {
105
114
  if (s7 !== r.v7) r.a2.data = r.v7 = s7;
106
115
  }
107
116
  };
108
- const m3 = (d) => {
109
- const n = (P3 ??= buildTemplate(T3)).cloneNode(true);
117
+ const m4 = (d) => {
118
+ const n = (P4 ??= buildTemplate(T4)).cloneNode(true);
110
119
  const t0 = n.firstChild.nextSibling;
111
120
  const t1 = t0.nextSibling.nextSibling;
112
121
  const r = { n, a0: t0, a1: t1, v0: undefined, v1: null, v2: null, v3: undefined, v4: null, v5: null };
113
- p3(r, -1, d);
122
+ p4(r, -1, d);
114
123
  return r;
115
124
  };
116
- const p3 = (r, c, d) => {
125
+ const p4 = (r, c, d) => {
117
126
  if (c & 1073741828) {
118
127
  const x0 = (checkReference(S, readDeclared(v[2], ["rowOffset"]), "s", "expression:$hovered.rowOffset:hovered.rowOffset", "Reference `hovered.rowOffset` must satisfy string.") ? readMember(v[2], "rowOffset") : NONCONFORMING);
119
128
  if (x0 !== NONCONFORMING) {
@@ -145,13 +154,13 @@ export function createUiEditorTableOverlay(options = {}, html) {
145
154
  }
146
155
  }
147
156
  };
148
- const m4 = (d) => {
149
- const n = (P4 ??= buildTemplate(T4)).cloneNode(true);
157
+ const m5 = (d) => {
158
+ const n = (P5 ??= buildTemplate(T5)).cloneNode(true);
150
159
  const r = { n, v0: undefined, v1: undefined, v2: null, v3: null };
151
- p4(r, -1, d);
160
+ p5(r, -1, d);
152
161
  return r;
153
162
  };
154
- const p4 = (r, c, d) => {
163
+ const p5 = (r, c, d) => {
155
164
  if (c & 1073741832) {
156
165
  const x0 = (checkReference(S, readDeclared(v[3], ["menuLeft"]), "s", "expression:$active.menuLeft:active.menuLeft", "Reference `active.menuLeft` must satisfy string.") ? readMember(v[3], "menuLeft") : NONCONFORMING);
157
166
  if (x0 !== NONCONFORMING) {
@@ -181,28 +190,33 @@ export function createUiEditorTableOverlay(options = {}, html) {
181
190
  const s0 = toAttribute(x0, "hidden");
182
191
  if (s0 !== r.v0) writeAttribute(r.n, "hidden", r.v0 = s0);
183
192
  }
184
- if (c & 1073741825) r.L0.update(v[0], d, c);
185
- if (c !== -1 && c & 16) visitSelected(r.L0.m, s4, v[4], p1, c);
186
- if (c & 1073741826) r.L1.update(v[1], d, c);
193
+ if (c & 1073741825) r.L1.update(v[0], d, c);
187
194
  if (c !== -1 && c & 16) visitSelected(r.L1.m, s4, v[4], p2, c);
188
- if (c & 1073741828 && !(truthy(v[2])) !== !r.b2) {
189
- if (r.b2) { r.b2 = undefined; clearRegion(r.a3, r.e2); }
190
- else { r.b2 = m3(d); r.e2.before(r.b2.n); }
191
- } else if (r.b2 !== undefined) p3(r.b2, c, d);
192
- if (c & 1073741832 && !(truthy(v[3])) !== !r.b3) {
195
+ if (c & 1073741826) r.L2.update(v[1], d, c);
196
+ if (c !== -1 && c & 16) visitSelected(r.L2.m, s4, v[4], p3, c);
197
+ if (c & 1073741828 && !(truthy(v[2])) !== !r.b3) {
193
198
  if (r.b3) { r.b3 = undefined; clearRegion(r.a4, r.e3); }
194
199
  else { r.b3 = m4(d); r.e3.before(r.b3.n); }
195
200
  } else if (r.b3 !== undefined) p4(r.b3, c, d);
201
+ if (c & 1073741832 && !(truthy(v[3])) !== !r.b4) {
202
+ if (r.b4) { r.b4 = undefined; clearRegion(r.a5, r.e4); }
203
+ else { r.b4 = m5(d); r.e4.before(r.b4.n); }
204
+ } else if (r.b4 !== undefined) p5(r.b4, c, d);
205
+ if (r.f0 === undefined) { r.f0 = 1; const at = fillSlot(r.a1, r.e0, "", J, false, undefined, d);
206
+ if (Array.isArray(at)) (r.z ??= []).push(() => { at[0].l.delete(at[1]); dispose(at[1]); }); else if (at !== undefined) { r.b0 = m1(d); at.before(r.b0.n); } }
207
+ else if (r.b0 !== undefined) p1(r.b0, c, d);
196
208
  s4 = v[4];
197
209
  };
198
210
  const t0 = element.firstChild.nextSibling;
199
- const t1 = t0.firstChild.nextSibling;
200
- const t2 = t0.nextSibling.nextSibling;
201
- const t3 = t2.firstChild.nextSibling;
202
- const t4 = t2.nextSibling.nextSibling;
203
- const t5 = t4.nextSibling.nextSibling.nextSibling;
204
- const R = { n: element, v0: undefined, L0: new KeyedList(t1, t1.nextSibling, m1, p1, (o) => readMember(o, "key"), "control"), L1: new KeyedList(t3, t3.nextSibling, m2, p2, (o) => readMember(o, "key"), "control"), a3: t4, e2: t4.nextSibling, b2: undefined, a4: t5, e3: t5.nextSibling, b3: undefined };
211
+ const t1 = t0.nextSibling.nextSibling.nextSibling;
212
+ const t2 = t1.firstChild.nextSibling;
213
+ const t3 = t1.nextSibling.nextSibling;
214
+ const t4 = t3.firstChild.nextSibling;
215
+ const t5 = t3.nextSibling.nextSibling;
216
+ const t6 = t5.nextSibling.nextSibling.nextSibling;
217
+ const R = { n: element, v0: undefined, a1: t0, e0: t0.nextSibling, b0: undefined, f0: undefined, L1: new KeyedList(t2, t2.nextSibling, m2, p2, (o) => readMember(o, "key"), "control"), L2: new KeyedList(t4, t4.nextSibling, m3, p3, (o) => readMember(o, "key"), "control"), a4: t5, e3: t5.nextSibling, b3: undefined, a5: t6, e4: t6.nextSibling, b4: undefined };
205
218
  const I = { B };
219
+ const J = project(I, children, slots);
206
220
  I.R = new Set();
207
221
  attachGeneratedController(element, S, v, (c, d) => { ((c, d) => p0(R, c, d))(c, d); for (const f of I.R) f(c, d); }, undefined, undefined, I);
208
222
  manageProps(I);
@@ -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;