@threadlabs/looma 0.44.4 → 0.44.5
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-button/ui-button.html +3 -3
- package/components/ui-icon-button/ui-icon-button.html +5 -24
- package/dist/index.js +1 -1
- package/docs/README.md +1 -1
- package/docs/catalog.json +18 -10
- package/docs/theme.mjs +25 -10
- package/package.json +1 -1
- package/styles/ui-button.css +3 -3
- package/styles/ui-icon-button.css +5 -24
- package/tokens.css +7 -7
- package/vue/UiButton.vue +3 -6
- package/vue/UiIconButton.vue +7 -17
- package/vue/chunks/UiButton.js +1 -1
- package/vue/chunks/UiIconButton.js +1 -1
- package/vue/components.css +18 -50
|
@@ -315,7 +315,7 @@
|
|
|
315
315
|
}
|
|
316
316
|
|
|
317
317
|
:host[data-appearance="outline"]:not([data-tone="neutral"]) {
|
|
318
|
-
--_outline-wash: oklch(from var(--_tone
|
|
318
|
+
--_outline-wash: oklch(from var(--_tone) l c h / calc(8% * var(--ui-tonal-opacity, 1)));
|
|
319
319
|
border-color: var(--ui-button-border, var(--_tone-outline-border, var(--_tone-text)));
|
|
320
320
|
background-color: var(--ui-button-surface, transparent);
|
|
321
321
|
box-shadow: var(--ui-button-shadow, var(--ui-neutral-shadow));
|
|
@@ -325,9 +325,9 @@
|
|
|
325
325
|
}
|
|
326
326
|
|
|
327
327
|
:host[data-appearance="outline"]:not([data-tone="neutral"]):hover:not(:disabled, [aria-disabled="true"]) {
|
|
328
|
-
--_outline-wash: oklch(from var(--_tone
|
|
328
|
+
--_outline-wash: oklch(from var(--_tone) l c h / calc(12% * var(--ui-tonal-opacity, 1)));
|
|
329
329
|
background-color: var(--ui-button-hover-surface, transparent);
|
|
330
|
-
border-color: var(--ui-button-hover-border,
|
|
330
|
+
border-color: var(--ui-button-hover-border, var(--_tone-outline-border));
|
|
331
331
|
}
|
|
332
332
|
|
|
333
333
|
/* A link is never :enabled, so interactive states test "not unavailable" instead: for a button that
|
|
@@ -419,37 +419,18 @@
|
|
|
419
419
|
}
|
|
420
420
|
|
|
421
421
|
:host[data-appearance="outline"]:not([data-tone="neutral"]) {
|
|
422
|
-
--_outline-wash: oklch(
|
|
423
|
-
from
|
|
424
|
-
var(--ui-icon-button-text, var(--_icon-button-text, var(--ui-accent-subtle-text)))
|
|
425
|
-
l
|
|
426
|
-
c
|
|
427
|
-
h
|
|
428
|
-
/
|
|
429
|
-
calc(4% * var(--ui-tonal-opacity, 1))
|
|
430
|
-
);
|
|
422
|
+
--_outline-wash: oklch(from var(--_icon-button-solid-surface, var(--ui-accent)) l c h / calc(8% * var(--ui-tonal-opacity, 1)));
|
|
431
423
|
border-color: var(--ui-icon-button-border, var(--_tone-outline-border));
|
|
432
|
-
background-color: var(--ui-icon-button-outline-surface,
|
|
424
|
+
background-color: var(--ui-icon-button-outline-surface, transparent);
|
|
433
425
|
background-image:
|
|
434
426
|
linear-gradient(var(--_outline-wash), var(--_outline-wash)),
|
|
435
427
|
var(--ui-surface-highlight, linear-gradient(transparent, transparent));
|
|
436
428
|
}
|
|
437
429
|
|
|
438
430
|
:host[data-appearance="outline"]:not([data-tone="neutral"]):hover:enabled:not([aria-disabled="true"]) {
|
|
439
|
-
--_outline-wash: oklch(
|
|
440
|
-
from
|
|
441
|
-
var(--ui-icon-button-text, var(--_icon-button-text, var(--ui-accent-subtle-text)))
|
|
442
|
-
l
|
|
443
|
-
c
|
|
444
|
-
h
|
|
445
|
-
/
|
|
446
|
-
calc(9% * var(--ui-tonal-opacity, 1))
|
|
447
|
-
);
|
|
431
|
+
--_outline-wash: oklch(from var(--_icon-button-solid-surface, var(--ui-accent)) l c h / calc(12% * var(--ui-tonal-opacity, 1)));
|
|
448
432
|
background-color: var(--ui-icon-button-hover-surface, transparent);
|
|
449
|
-
border-color: var(
|
|
450
|
-
--ui-icon-button-hover-border,
|
|
451
|
-
color-mix(in srgb, var(--_icon-button-text, var(--ui-accent-subtle-text)) 35%, var(--_tone-outline-border))
|
|
452
|
-
);
|
|
433
|
+
border-color: var(--ui-icon-button-hover-border, var(--_tone-outline-border));
|
|
453
434
|
}
|
|
454
435
|
|
|
455
436
|
:host[data-appearance="outline"]:hover:enabled:not([aria-disabled="true"]) {
|
|
@@ -557,7 +538,7 @@
|
|
|
557
538
|
}
|
|
558
539
|
|
|
559
540
|
/* Disabled is a flat neutral control, independent of the active variant's tone. */
|
|
560
|
-
:host:disabled {
|
|
541
|
+
:host[data-tone]:disabled {
|
|
561
542
|
border-color: var(--ui-disabled-border);
|
|
562
543
|
background-color: var(--ui-disabled-surface);
|
|
563
544
|
color: var(--ui-disabled-text);
|