@threadlabs/looma 0.52.7 → 0.52.9
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.
- package/components/ui-icon-button/ui-icon-button.html +8 -8
- package/components/ui-segmented-control/ui-segmented-control.html +1 -1
- package/dist/index.js +1 -1
- package/docs/catalog.json +44 -2
- package/editor/components.css +8 -8
- package/package.json +1 -1
- package/styles/ui-icon-button.css +8 -8
- package/styles/ui-segmented-control.css +1 -1
- package/tokens.css +10 -0
package/docs/catalog.json
CHANGED
|
@@ -766,7 +766,7 @@
|
|
|
766
766
|
],
|
|
767
767
|
"schemaVersion": 1,
|
|
768
768
|
"package": "@threadlabs/looma",
|
|
769
|
-
"version": "0.52.
|
|
769
|
+
"version": "0.52.9",
|
|
770
770
|
"groups": [
|
|
771
771
|
{
|
|
772
772
|
"id": "layout",
|
|
@@ -19214,7 +19214,7 @@
|
|
|
19214
19214
|
{
|
|
19215
19215
|
"name": "--ui-icon-button-solid-text",
|
|
19216
19216
|
"fallbacks": [
|
|
19217
|
-
"var(--_icon-button-solid-text, var(--ui-text-on-accent))"
|
|
19217
|
+
"var(--_icon-button-solid-text, var(--ui-non-text-on-accent, var(--ui-text-on-accent)))"
|
|
19218
19218
|
]
|
|
19219
19219
|
},
|
|
19220
19220
|
{
|
|
@@ -19740,6 +19740,48 @@
|
|
|
19740
19740
|
{
|
|
19741
19741
|
"name": "--ui-neutral-wash-hover"
|
|
19742
19742
|
},
|
|
19743
|
+
{
|
|
19744
|
+
"name": "--ui-non-text-on-accent",
|
|
19745
|
+
"fallbacks": [
|
|
19746
|
+
"var(--ui-text-on-accent)"
|
|
19747
|
+
]
|
|
19748
|
+
},
|
|
19749
|
+
{
|
|
19750
|
+
"name": "--ui-non-text-on-accent-secondary",
|
|
19751
|
+
"fallbacks": [
|
|
19752
|
+
"var(--ui-on-accent-secondary)"
|
|
19753
|
+
]
|
|
19754
|
+
},
|
|
19755
|
+
{
|
|
19756
|
+
"name": "--ui-non-text-on-accent-tertiary",
|
|
19757
|
+
"fallbacks": [
|
|
19758
|
+
"var(--ui-on-accent-tertiary)"
|
|
19759
|
+
]
|
|
19760
|
+
},
|
|
19761
|
+
{
|
|
19762
|
+
"name": "--ui-non-text-on-danger",
|
|
19763
|
+
"fallbacks": [
|
|
19764
|
+
"var(--ui-danger-on-strong)"
|
|
19765
|
+
]
|
|
19766
|
+
},
|
|
19767
|
+
{
|
|
19768
|
+
"name": "--ui-non-text-on-info",
|
|
19769
|
+
"fallbacks": [
|
|
19770
|
+
"var(--ui-info-on-strong)"
|
|
19771
|
+
]
|
|
19772
|
+
},
|
|
19773
|
+
{
|
|
19774
|
+
"name": "--ui-non-text-on-success",
|
|
19775
|
+
"fallbacks": [
|
|
19776
|
+
"var(--ui-success-on-strong)"
|
|
19777
|
+
]
|
|
19778
|
+
},
|
|
19779
|
+
{
|
|
19780
|
+
"name": "--ui-non-text-on-warning",
|
|
19781
|
+
"fallbacks": [
|
|
19782
|
+
"var(--ui-warning-on-strong)"
|
|
19783
|
+
]
|
|
19784
|
+
},
|
|
19743
19785
|
{
|
|
19744
19786
|
"name": "--ui-on-accent-secondary"
|
|
19745
19787
|
},
|
package/editor/components.css
CHANGED
|
@@ -1157,7 +1157,7 @@
|
|
|
1157
1157
|
--_icon-button-outline-surface: color-mix(in srgb, var(--ui-accent-secondary-solid) 5%, var(--ui-surface-default));
|
|
1158
1158
|
--_icon-button-solid-surface: var(--ui-accent-secondary);
|
|
1159
1159
|
--_icon-button-solid-hover-surface: var(--ui-accent-secondary-hover);
|
|
1160
|
-
--_icon-button-solid-text: var(--ui-on-accent-secondary);
|
|
1160
|
+
--_icon-button-solid-text: var(--ui-non-text-on-accent-secondary, var(--ui-on-accent-secondary));
|
|
1161
1161
|
color: var(--_icon-button-text);
|
|
1162
1162
|
}
|
|
1163
1163
|
|
|
@@ -1179,7 +1179,7 @@
|
|
|
1179
1179
|
--_icon-button-outline-surface: color-mix(in srgb, var(--ui-accent-tertiary-solid) 5%, var(--ui-surface-default));
|
|
1180
1180
|
--_icon-button-solid-surface: var(--ui-accent-tertiary);
|
|
1181
1181
|
--_icon-button-solid-hover-surface: var(--ui-accent-tertiary-hover);
|
|
1182
|
-
--_icon-button-solid-text: var(--ui-on-accent-tertiary);
|
|
1182
|
+
--_icon-button-solid-text: var(--ui-non-text-on-accent-tertiary, var(--ui-on-accent-tertiary));
|
|
1183
1183
|
color: var(--_icon-button-text);
|
|
1184
1184
|
}
|
|
1185
1185
|
|
|
@@ -1220,7 +1220,7 @@
|
|
|
1220
1220
|
--_icon-button-outline-surface: color-mix(in srgb, var(--ui-danger) 5%, var(--ui-surface-default));
|
|
1221
1221
|
--_icon-button-solid-surface: var(--ui-danger);
|
|
1222
1222
|
--_icon-button-solid-hover-surface: var(--ui-danger-hover);
|
|
1223
|
-
--_icon-button-solid-text: var(--ui-danger-on-strong);
|
|
1223
|
+
--_icon-button-solid-text: var(--ui-non-text-on-danger, var(--ui-danger-on-strong));
|
|
1224
1224
|
color: var(--_icon-button-text);
|
|
1225
1225
|
}
|
|
1226
1226
|
|
|
@@ -1242,7 +1242,7 @@
|
|
|
1242
1242
|
--_icon-button-outline-surface: color-mix(in srgb, var(--ui-success) 5%, var(--ui-surface-default));
|
|
1243
1243
|
--_icon-button-solid-surface: var(--ui-success);
|
|
1244
1244
|
--_icon-button-solid-hover-surface: var(--ui-success-hover);
|
|
1245
|
-
--_icon-button-solid-text: var(--ui-success-on-strong);
|
|
1245
|
+
--_icon-button-solid-text: var(--ui-non-text-on-success, var(--ui-success-on-strong));
|
|
1246
1246
|
color: var(--_icon-button-text);
|
|
1247
1247
|
}
|
|
1248
1248
|
|
|
@@ -1264,7 +1264,7 @@
|
|
|
1264
1264
|
--_icon-button-outline-surface: color-mix(in srgb, var(--ui-warning) 5%, var(--ui-surface-default));
|
|
1265
1265
|
--_icon-button-solid-surface: var(--ui-warning);
|
|
1266
1266
|
--_icon-button-solid-hover-surface: var(--ui-warning-hover);
|
|
1267
|
-
--_icon-button-solid-text: var(--ui-warning-on-strong);
|
|
1267
|
+
--_icon-button-solid-text: var(--ui-non-text-on-warning, var(--ui-warning-on-strong));
|
|
1268
1268
|
color: var(--_icon-button-text);
|
|
1269
1269
|
}
|
|
1270
1270
|
|
|
@@ -1286,7 +1286,7 @@
|
|
|
1286
1286
|
--_icon-button-outline-surface: color-mix(in srgb, var(--ui-info) 5%, var(--ui-surface-default));
|
|
1287
1287
|
--_icon-button-solid-surface: var(--ui-info);
|
|
1288
1288
|
--_icon-button-solid-hover-surface: var(--ui-info-hover);
|
|
1289
|
-
--_icon-button-solid-text: var(--ui-info-on-strong);
|
|
1289
|
+
--_icon-button-solid-text: var(--ui-non-text-on-info, var(--ui-info-on-strong));
|
|
1290
1290
|
color: var(--_icon-button-text);
|
|
1291
1291
|
}
|
|
1292
1292
|
|
|
@@ -1492,7 +1492,7 @@
|
|
|
1492
1492
|
border-color: var(--ui-icon-button-border, var(--_solid-border));
|
|
1493
1493
|
background-color: var(--ui-icon-button-solid-surface, var(--_icon-button-solid-surface, var(--ui-accent-solid)));
|
|
1494
1494
|
background-image: var(--_tone-highlight);
|
|
1495
|
-
color: var(--ui-icon-button-solid-text, var(--_icon-button-solid-text, var(--ui-text-on-accent)));
|
|
1495
|
+
color: var(--ui-icon-button-solid-text, var(--_icon-button-solid-text, var(--ui-non-text-on-accent, var(--ui-text-on-accent))));
|
|
1496
1496
|
box-shadow:
|
|
1497
1497
|
var(--ui-icon-button-solid-shadow, var(--ui-action-shadow, var(--_ui-action-shadow))),
|
|
1498
1498
|
var(--_tone-glow);
|
|
@@ -1544,7 +1544,7 @@
|
|
|
1544
1544
|
}
|
|
1545
1545
|
|
|
1546
1546
|
:scope:where(:is([component~="ui-icon-button"]:not(template), [data-component~="ui-icon-button"]:not([component])))[data-appearance="solid"]:hover:enabled:not([aria-disabled="true"]) {
|
|
1547
|
-
color: var(--ui-icon-button-solid-text, var(--_icon-button-solid-text, var(--ui-text-on-accent)));
|
|
1547
|
+
color: var(--ui-icon-button-solid-text, var(--_icon-button-solid-text, var(--ui-non-text-on-accent, var(--ui-text-on-accent))));
|
|
1548
1548
|
}
|
|
1549
1549
|
|
|
1550
1550
|
:scope:where(:is([component~="ui-icon-button"]:not(template), [data-component~="ui-icon-button"]:not([component])))[data-appearance="ghost"][aria-expanded="true"]:enabled:not([aria-disabled="true"]) {
|
package/package.json
CHANGED
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
--_icon-button-outline-surface: color-mix(in srgb, var(--ui-accent-secondary-solid) 5%, var(--ui-surface-default));
|
|
60
60
|
--_icon-button-solid-surface: var(--ui-accent-secondary);
|
|
61
61
|
--_icon-button-solid-hover-surface: var(--ui-accent-secondary-hover);
|
|
62
|
-
--_icon-button-solid-text: var(--ui-on-accent-secondary);
|
|
62
|
+
--_icon-button-solid-text: var(--ui-non-text-on-accent-secondary, var(--ui-on-accent-secondary));
|
|
63
63
|
color: var(--_icon-button-text);
|
|
64
64
|
}
|
|
65
65
|
|
|
@@ -81,7 +81,7 @@
|
|
|
81
81
|
--_icon-button-outline-surface: color-mix(in srgb, var(--ui-accent-tertiary-solid) 5%, var(--ui-surface-default));
|
|
82
82
|
--_icon-button-solid-surface: var(--ui-accent-tertiary);
|
|
83
83
|
--_icon-button-solid-hover-surface: var(--ui-accent-tertiary-hover);
|
|
84
|
-
--_icon-button-solid-text: var(--ui-on-accent-tertiary);
|
|
84
|
+
--_icon-button-solid-text: var(--ui-non-text-on-accent-tertiary, var(--ui-on-accent-tertiary));
|
|
85
85
|
color: var(--_icon-button-text);
|
|
86
86
|
}
|
|
87
87
|
|
|
@@ -122,7 +122,7 @@
|
|
|
122
122
|
--_icon-button-outline-surface: color-mix(in srgb, var(--ui-danger) 5%, var(--ui-surface-default));
|
|
123
123
|
--_icon-button-solid-surface: var(--ui-danger);
|
|
124
124
|
--_icon-button-solid-hover-surface: var(--ui-danger-hover);
|
|
125
|
-
--_icon-button-solid-text: var(--ui-danger-on-strong);
|
|
125
|
+
--_icon-button-solid-text: var(--ui-non-text-on-danger, var(--ui-danger-on-strong));
|
|
126
126
|
color: var(--_icon-button-text);
|
|
127
127
|
}
|
|
128
128
|
|
|
@@ -144,7 +144,7 @@
|
|
|
144
144
|
--_icon-button-outline-surface: color-mix(in srgb, var(--ui-success) 5%, var(--ui-surface-default));
|
|
145
145
|
--_icon-button-solid-surface: var(--ui-success);
|
|
146
146
|
--_icon-button-solid-hover-surface: var(--ui-success-hover);
|
|
147
|
-
--_icon-button-solid-text: var(--ui-success-on-strong);
|
|
147
|
+
--_icon-button-solid-text: var(--ui-non-text-on-success, var(--ui-success-on-strong));
|
|
148
148
|
color: var(--_icon-button-text);
|
|
149
149
|
}
|
|
150
150
|
|
|
@@ -166,7 +166,7 @@
|
|
|
166
166
|
--_icon-button-outline-surface: color-mix(in srgb, var(--ui-warning) 5%, var(--ui-surface-default));
|
|
167
167
|
--_icon-button-solid-surface: var(--ui-warning);
|
|
168
168
|
--_icon-button-solid-hover-surface: var(--ui-warning-hover);
|
|
169
|
-
--_icon-button-solid-text: var(--ui-warning-on-strong);
|
|
169
|
+
--_icon-button-solid-text: var(--ui-non-text-on-warning, var(--ui-warning-on-strong));
|
|
170
170
|
color: var(--_icon-button-text);
|
|
171
171
|
}
|
|
172
172
|
|
|
@@ -188,7 +188,7 @@
|
|
|
188
188
|
--_icon-button-outline-surface: color-mix(in srgb, var(--ui-info) 5%, var(--ui-surface-default));
|
|
189
189
|
--_icon-button-solid-surface: var(--ui-info);
|
|
190
190
|
--_icon-button-solid-hover-surface: var(--ui-info-hover);
|
|
191
|
-
--_icon-button-solid-text: var(--ui-info-on-strong);
|
|
191
|
+
--_icon-button-solid-text: var(--ui-non-text-on-info, var(--ui-info-on-strong));
|
|
192
192
|
color: var(--_icon-button-text);
|
|
193
193
|
}
|
|
194
194
|
|
|
@@ -394,7 +394,7 @@
|
|
|
394
394
|
border-color: var(--ui-icon-button-border, var(--_solid-border));
|
|
395
395
|
background-color: var(--ui-icon-button-solid-surface, var(--_icon-button-solid-surface, var(--ui-accent-solid)));
|
|
396
396
|
background-image: var(--_tone-highlight);
|
|
397
|
-
color: var(--ui-icon-button-solid-text, var(--_icon-button-solid-text, var(--ui-text-on-accent)));
|
|
397
|
+
color: var(--ui-icon-button-solid-text, var(--_icon-button-solid-text, var(--ui-non-text-on-accent, var(--ui-text-on-accent))));
|
|
398
398
|
box-shadow:
|
|
399
399
|
var(--ui-icon-button-solid-shadow, var(--ui-action-shadow, var(--_ui-action-shadow))),
|
|
400
400
|
var(--_tone-glow);
|
|
@@ -446,7 +446,7 @@
|
|
|
446
446
|
}
|
|
447
447
|
|
|
448
448
|
:scope:where(:is([component~="ui-icon-button"]:not(template), [data-component~="ui-icon-button"]:not([component])))[data-appearance="solid"]:hover:enabled:not([aria-disabled="true"]) {
|
|
449
|
-
color: var(--ui-icon-button-solid-text, var(--_icon-button-solid-text, var(--ui-text-on-accent)));
|
|
449
|
+
color: var(--ui-icon-button-solid-text, var(--_icon-button-solid-text, var(--ui-non-text-on-accent, var(--ui-text-on-accent))));
|
|
450
450
|
}
|
|
451
451
|
|
|
452
452
|
:scope:where(:is([component~="ui-icon-button"]:not(template), [data-component~="ui-icon-button"]:not([component])))[data-appearance="ghost"][aria-expanded="true"]:enabled:not([aria-disabled="true"]) {
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
.segments {
|
|
46
46
|
display: inline-grid !important;
|
|
47
47
|
grid-auto-flow: column;
|
|
48
|
-
grid-auto-columns:
|
|
48
|
+
grid-auto-columns: auto;
|
|
49
49
|
min-inline-size: 0;
|
|
50
50
|
padding: var(--_segmented-padding) !important;
|
|
51
51
|
border: var(--ui-border-width) solid var(--ui-segmented-control-border, var(--ui-control-border));
|
package/tokens.css
CHANGED
|
@@ -339,6 +339,16 @@
|
|
|
339
339
|
--ui-info-on-strong: var(--ui-on-accent);
|
|
340
340
|
--ui-info-subtle-text: light-dark(oklch(from var(--ui-info) min(l, 0.50) min(c, 0.12) h), oklch(from var(--ui-info) max(l, 0.80) min(c, 0.12) h));
|
|
341
341
|
|
|
342
|
+
/* Guaranteed-invalid defaults keep each component's foreground fallback
|
|
343
|
+
live in nested themes until a non-text ink is explicitly supplied. */
|
|
344
|
+
--ui-non-text-on-accent: initial;
|
|
345
|
+
--ui-non-text-on-accent-secondary: initial;
|
|
346
|
+
--ui-non-text-on-accent-tertiary: initial;
|
|
347
|
+
--ui-non-text-on-danger: initial;
|
|
348
|
+
--ui-non-text-on-success: initial;
|
|
349
|
+
--ui-non-text-on-warning: initial;
|
|
350
|
+
--ui-non-text-on-info: initial;
|
|
351
|
+
|
|
342
352
|
/* Interaction roles: what a control paints, whatever its intent. */
|
|
343
353
|
--ui-action-primary-surface: var(--ui-accent);
|
|
344
354
|
--ui-action-primary-surface-hover: var(--ui-accent-hover);
|