@threadlabs/looma 0.44.2 → 0.44.4

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 (84) hide show
  1. package/components/shared/icons.js +1 -0
  2. package/components/ui-badge/ui-badge.html +7 -6
  3. package/components/ui-button/ui-button.html +47 -2
  4. package/components/ui-card/ui-card.html +6 -6
  5. package/components/ui-color-picker/ui-color-picker.html +12 -5
  6. package/components/ui-color-picker/ui-color-picker.js +20 -6
  7. package/components/ui-dialog/ui-dialog.html +5 -6
  8. package/components/ui-icon/ui-icon.html +1 -0
  9. package/components/ui-icon-button/ui-icon-button.html +59 -4
  10. package/components/ui-menu/ui-menu.html +5 -6
  11. package/components/ui-number-input/ui-number-input.html +7 -0
  12. package/components/ui-popover/ui-popover.html +5 -6
  13. package/components/ui-slider/ui-slider.html +6 -0
  14. package/components/ui-tooltip/ui-tooltip.html +8 -5
  15. package/components/ui-tree-item/ui-tree-item.html +7 -1
  16. package/dist/index.js +1 -1
  17. package/docs/README.md +8 -4
  18. package/docs/catalog.json +469 -3704
  19. package/docs/customizer-render.mjs +55 -36
  20. package/docs/customizer.js +48 -33
  21. package/docs/fonts.mjs +28 -0
  22. package/docs/theme.mjs +39 -14
  23. package/editor/file-uploads.d.ts +3 -1
  24. package/editor/icons.d.ts +1 -0
  25. package/editor/index.js +2 -1
  26. package/package.json +1 -1
  27. package/styles/ui-badge.css +11 -10
  28. package/styles/ui-button.css +47 -2
  29. package/styles/ui-card.css +4 -4
  30. package/styles/ui-color-picker.css +105 -2
  31. package/styles/ui-dialog.css +10 -12
  32. package/styles/ui-icon-button.css +59 -4
  33. package/styles/ui-menu.css +5 -6
  34. package/styles/ui-number-input.css +6 -0
  35. package/styles/ui-popover.css +5 -6
  36. package/styles/ui-slider.css +3 -0
  37. package/styles/ui-tooltip.css +8 -5
  38. package/styles/ui-tree-item.css +12 -2
  39. package/theme-system.css +28 -16
  40. package/tokens.css +7 -0
  41. package/vanilla/UiColorPicker.d.ts +1 -0
  42. package/vanilla/UiColorPicker.js +32 -28
  43. package/vanilla/UiIcon.js +1 -1
  44. package/vanilla/UiNumberInput.d.ts +1 -0
  45. package/vanilla/UiNumberInput.js +53 -43
  46. package/vanilla/UiSlider.d.ts +1 -0
  47. package/vanilla/UiSlider.js +65 -57
  48. package/vanilla/UiTreeItem.js +1 -1
  49. package/vue/UiBadge.vue +7 -9
  50. package/vue/UiButton.vue +56 -2
  51. package/vue/UiCard.vue +13 -5
  52. package/vue/UiColorPicker.d.ts +6 -0
  53. package/vue/UiColorPicker.vue +156 -6
  54. package/vue/UiDialog.vue +22 -12
  55. package/vue/UiIcon.vue +1 -0
  56. package/vue/UiIconButton.vue +62 -4
  57. package/vue/UiMenu.vue +11 -6
  58. package/vue/UiNumberInput.d.ts +6 -0
  59. package/vue/UiNumberInput.vue +47 -1
  60. package/vue/UiPopover.vue +11 -6
  61. package/vue/UiSlider.d.ts +6 -0
  62. package/vue/UiSlider.vue +37 -1
  63. package/vue/UiTooltip.vue +11 -5
  64. package/vue/UiTreeItem.vue +19 -3
  65. package/vue/chunks/UiBadge.js +1 -1
  66. package/vue/chunks/UiButton.js +1 -1
  67. package/vue/chunks/UiCard.js +2 -2
  68. package/vue/chunks/UiColorPicker.js +60 -11
  69. package/vue/chunks/UiDialog.js +1 -1
  70. package/vue/chunks/UiIcon.js +5 -1
  71. package/vue/chunks/UiIconButton.js +1 -1
  72. package/vue/chunks/UiMenu.js +1 -1
  73. package/vue/chunks/UiNumberInput.js +31 -2
  74. package/vue/chunks/UiPopover.js +1 -1
  75. package/vue/chunks/UiSlider.js +33 -2
  76. package/vue/chunks/UiTooltip.js +1 -1
  77. package/vue/chunks/UiTreeItem.js +3 -3
  78. package/vue/chunks/compact.js +1 -1
  79. package/vue/components.css +457 -84
  80. package/vue/editor/index.js +109 -57
  81. package/docs/examples/ui-editor-footnote-editor/examples/01-note.behavior.js +0 -9
  82. package/docs/examples/ui-editor-mention-menu/examples/00-preview.behavior.js +0 -1
  83. package/docs/examples/ui-editor-slash-menu/examples/00-preview.behavior.js +0 -81
  84. package/docs/examples/ui-editor-table-overlay/examples/00-preview.behavior.js +0 -24
@@ -74,13 +74,12 @@
74
74
  --_ui-material-separation: clamp(0, var(--ui-surface-separation, 0), 1);
75
75
  --_ui-material-active: clamp(0, calc(var(--_ui-material-separation) * 100000), 1);
76
76
  --_ui-material-rim: calc(var(--_ui-material-separation) * var(--_ui-material-scale, 0.55) * 8px);
77
- --_ui-material-content-color: var(--_ui-popover-surface, var(--ui-material-content, var(--ui-overlay-surface, var(--ui-surface-elevated))));
77
+ --_ui-material-content-color: var(--_ui-popover-surface, var(--_ui-material-underpaint, var(--ui-material-content, var(--ui-overlay-surface, var(--ui-surface-elevated)))));
78
78
  --_ui-material-rim-color: color-mix(in srgb, var(--ui-material-glass, var(--ui-surface-elevated)) calc(var(--_ui-material-active) * 100%), transparent);
79
79
  background:
80
- var(--ui-surface-highlight, linear-gradient(transparent, transparent)) padding-box,
80
+ var(--ui-material-highlight, var(--ui-surface-highlight, linear-gradient(transparent, transparent))) padding-box,
81
81
  linear-gradient(var(--_ui-material-content-color), var(--_ui-material-content-color)) padding-box,
82
- linear-gradient(var(--_ui-material-rim-color), var(--_ui-material-rim-color)) border-box,
83
- var(--_ui-material-content-color) padding-box;
82
+ linear-gradient(var(--_ui-material-rim-color), var(--_ui-material-rim-color)) border-box;
84
83
  border-width: calc(var(--ui-border-width) + var(--_ui-material-rim));
85
84
  border-color: var(
86
85
  --_ui-popover-border,
@@ -104,13 +103,13 @@
104
103
 
105
104
  @supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
106
105
  .surface {
107
- background: var(--_ui-material-content-color);
106
+ background: oklch(from var(--_ui-material-content-color) l c h / 1);
108
107
  }
109
108
  }
110
109
 
111
110
  @media (prefers-reduced-transparency: reduce) {
112
111
  .surface {
113
- background: var(--_ui-material-content-color);
112
+ background: oklch(from var(--_ui-material-content-color) l c h / 1);
114
113
  -webkit-backdrop-filter: none;
115
114
  backdrop-filter: none;
116
115
  }
@@ -10,6 +10,8 @@
10
10
  <prop name="name" type="string" default="">Optional numeric form field name.</prop>
11
11
  <prop name="label" type="string" default="Value">Accessible name for the editing control.</prop>
12
12
  <prop name="size" type="keyword" values="sm, md, lg" default="md">Shared field and button height.</prop>
13
+ <prop name="compact" type="boolean" default="false"
14
+ >Pairs a short exact field with the track, without separate step buttons. Keyboard stepping and arithmetic remain available.</prop>
13
15
  <prop name="disabled" type="boolean" default="false">Prevents typing, stepping and pointer or keyboard changes while keeping the value visible.</prop>
14
16
  <event name="input" type="object"><prop name="value" type="number" required></prop></event>
15
17
  <event name="change" type="object"><prop name="value" type="number" required></prop></event>
@@ -30,6 +32,7 @@
30
32
  >
31
33
  <ui-number-input
32
34
  data-slider-exact
35
+ from:compact="$compact"
33
36
  from:value="concat($current, $unit)"
34
37
  from:unit="$unit"
35
38
  from:min="$min"
@@ -50,6 +53,9 @@
50
53
  padding: 0 !important;
51
54
  min-inline-size: 0;
52
55
  }
56
+ :host([compact]) {
57
+ grid-template-columns: minmax(3rem, 1fr) 5rem !important;
58
+ }
53
59
  input {
54
60
  inline-size: 100%;
55
61
  min-inline-size: 0;
@@ -99,12 +99,15 @@
99
99
  --_ui-material-separation: clamp(0, var(--ui-surface-separation, 0), 1);
100
100
  --_ui-material-active: clamp(0, calc(var(--_ui-material-separation) * 100000), 1);
101
101
  --_ui-material-rim: calc(var(--_ui-material-separation) * var(--_ui-material-scale, 0.08) * 8px);
102
- --_ui-material-content-color: var(--_ui-tooltip-surface, var(--ui-material-content, var(--ui-overlay-surface, var(--ui-surface-elevated))));
102
+ --_ui-material-content-color: var(
103
+ --_ui-tooltip-surface,
104
+ var(--_ui-material-underpaint, var(--ui-material-content, var(--ui-overlay-surface, var(--ui-surface-elevated))))
105
+ );
103
106
  --_ui-material-rim-color: color-mix(in srgb, var(--ui-material-glass, var(--ui-surface-elevated)) calc(var(--_ui-material-active) * 100%), transparent);
104
107
  background:
108
+ var(--ui-material-highlight, var(--ui-surface-highlight, linear-gradient(transparent, transparent))) padding-box,
105
109
  linear-gradient(var(--_ui-material-content-color), var(--_ui-material-content-color)) padding-box,
106
- linear-gradient(var(--_ui-material-rim-color), var(--_ui-material-rim-color)) border-box,
107
- var(--_ui-material-content-color) padding-box;
110
+ linear-gradient(var(--_ui-material-rim-color), var(--_ui-material-rim-color)) border-box;
108
111
  border-width: calc(var(--ui-border-width) + var(--_ui-material-rim));
109
112
  border-color: var(
110
113
  --_ui-tooltip-border,
@@ -127,13 +130,13 @@
127
130
 
128
131
  @supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
129
132
  .surface {
130
- background: var(--_ui-material-content-color);
133
+ background: oklch(from var(--_ui-material-content-color) l c h / 1);
131
134
  }
132
135
  }
133
136
 
134
137
  @media (prefers-reduced-transparency: reduce) {
135
138
  .surface {
136
- background: var(--_ui-material-content-color);
139
+ background: oklch(from var(--_ui-material-content-color) l c h / 1);
137
140
  -webkit-backdrop-filter: none;
138
141
  backdrop-filter: none;
139
142
  }
@@ -147,6 +147,7 @@
147
147
  font-size: var(--_ui-tree-item-font-size, var(--ui-font-size-sm));
148
148
  border-radius: var(--ui-selection-radius);
149
149
  color: var(--ui-text-secondary);
150
+ cursor: default;
150
151
  transition:
151
152
  background-color var(--ui-motion-fast) var(--ui-motion-ease),
152
153
  color var(--ui-motion-fast) var(--ui-motion-ease),
@@ -155,6 +156,12 @@
155
156
  min-block-size var(--ui-motion-base) var(--ui-motion-ease);
156
157
  }
157
158
 
159
+ :host(:state(isContainer)):not([disabled]) > .row,
160
+ :host[data-selection-mode="single"]:not([disabled]) > .row,
161
+ :host[data-selection-mode="multiple"]:not([disabled]) > .row {
162
+ cursor: pointer;
163
+ }
164
+
158
165
  .row:hover,
159
166
  .row:focus-within {
160
167
  color: var(--ui-text-primary);
@@ -256,7 +263,6 @@
256
263
 
257
264
  .disclosure:hover {
258
265
  color: var(--ui-text-primary);
259
- background: var(--ui-surface-elevated);
260
266
  }
261
267
 
262
268
  .disclosure-icon {