@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
@@ -6,38 +6,8 @@
6
6
  <div class="actions"><slot name="actions"></slot></div>
7
7
  </header>
8
8
  <style>
9
- /* This component's hooks style the element they are set on, and never a nested one. */
10
- @property --ui-top-bar-actions-gap {
11
- syntax: "*";
12
- inherits: false;
13
- }
14
- @property --ui-top-bar-border {
15
- syntax: "*";
16
- inherits: false;
17
- }
18
- @property --ui-top-bar-gap {
19
- syntax: "*";
20
- inherits: false;
21
- }
22
- @property --ui-top-bar-height {
23
- syntax: "*";
24
- inherits: false;
25
- }
26
- @property --ui-top-bar-padding-inline {
27
- syntax: "*";
28
- inherits: false;
29
- }
30
- @property --ui-top-bar-surface {
31
- syntax: "*";
32
- inherits: false;
33
- }
34
- @property --ui-top-bar-z-index {
35
- syntax: "*";
36
- inherits: false;
37
- }
38
-
39
9
  :host {
40
- /* Hooks do not inherit, so the parts below read them from the root. */
10
+ /* Resolve shared part values at the component root. */
41
11
  --_ui-top-bar-actions-gap: var(--ui-top-bar-actions-gap);
42
12
 
43
13
  position: sticky;
@@ -59,20 +59,6 @@
59
59
  </defs>
60
60
  <div role="tree"><slot></slot></div>
61
61
  <style>
62
- /* This component's hooks style the element they are set on, and never a nested one. */
63
- @property --ui-tree-drop-color {
64
- syntax: "*";
65
- inherits: false;
66
- }
67
- @property --ui-tree-gutter {
68
- syntax: "*";
69
- inherits: false;
70
- }
71
- @property --ui-tree-indent {
72
- syntax: "*";
73
- inherits: false;
74
- }
75
-
76
62
  /* Reaches the items the way density does, so the setting lives on the tree the way a reader
77
63
  thinks about it: this list scrolls its long names. */
78
64
  :host([marquee]) {
@@ -87,8 +73,7 @@
87
73
  }
88
74
 
89
75
  :host {
90
- /* Hooks do not inherit: the tree hands its own to its items here, and a tree nested in an item
91
- starts again from its own settings. */
76
+ /* Resolve tree hooks here and reset private density defaults for nested trees. */
92
77
  --_ui-tree-indent: var(--ui-tree-indent);
93
78
  --_ui-tree-drop-color: var(--ui-tree-drop-color);
94
79
  --_ui-default-tree-item-marquee: initial;
@@ -120,30 +120,8 @@
120
120
  <span class="drop-indicator subtree-drop-indicator" aria-hidden="true"></span>
121
121
  </div>
122
122
  <style>
123
- /* This component's hooks style the element they are set on, and never a nested one. */
124
- @property --ui-tree-item-depth {
125
- syntax: "*";
126
- inherits: false;
127
- }
128
- @property --ui-tree-item-font-size {
129
- syntax: "*";
130
- inherits: false;
131
- }
132
- @property --ui-tree-item-label-padding-block {
133
- syntax: "*";
134
- inherits: false;
135
- }
136
- @property --ui-tree-item-label-padding-inline {
137
- syntax: "*";
138
- inherits: false;
139
- }
140
- @property --ui-tree-item-min-block-size {
141
- syntax: "*";
142
- inherits: false;
143
- }
144
-
145
123
  :host {
146
- /* Hooks do not inherit, so the parts below read them from the root. The tree's density
124
+ /* Resolve shared part values at the root. The tree's density
147
125
  sets the defaults, in --_ui-default-*. */
148
126
  --_ui-tree-item-min-block-size: var(--ui-tree-item-min-block-size, var(--_ui-default-tree-item-min-block-size));
149
127
  --_ui-tree-item-font-size: var(--ui-tree-item-font-size, var(--_ui-default-tree-item-font-size));
@@ -56,7 +56,6 @@ export function connect(host) {
56
56
  else element.removeAttribute("aria-busy");
57
57
  element.tabIndex = host.props.disabled.value || !host.state.tabStop ? -1 : 0;
58
58
  const depth = Number(host.state.structuralLevel ?? 1) - 1;
59
- element.style.setProperty("--ui-tree-item-depth", String(depth));
60
59
  // Nested items already sit inside their parent's indented box. Add just one local step.
61
60
  element.style.setProperty("--_ui-tree-item-indent-step", depth > 0 ? "1" : "0");
62
61
  disclosure.setAttribute("aria-expanded", String(expanded));