@adia-ai/web-components 0.6.32 → 0.6.34
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/CHANGELOG.md +44 -0
- package/components/accordion/accordion.css +2 -2
- package/components/action-list/action-list.css +2 -2
- package/components/agent-artifact/agent-artifact.css +31 -31
- package/components/agent-feedback-bar/agent-feedback-bar.css +10 -10
- package/components/agent-questions/agent-questions.css +57 -57
- package/components/agent-reasoning/agent-reasoning.css +62 -62
- package/components/agent-suggestions/agent-suggestions.css +4 -4
- package/components/agent-trace/agent-trace.css +53 -53
- package/components/alert/alert.css +41 -41
- package/components/avatar/avatar.css +27 -27
- package/components/badge/badge.css +27 -27
- package/components/block/block.css +16 -16
- package/components/breadcrumb/breadcrumb.css +23 -23
- package/components/button/button.css +101 -91
- package/components/calendar-grid/calendar-grid.a2ui.json +136 -0
- package/components/calendar-grid/calendar-grid.css +226 -0
- package/components/calendar-grid/calendar-grid.d.ts +37 -0
- package/components/calendar-grid/calendar-grid.js +17 -0
- package/components/calendar-grid/calendar-grid.yaml +116 -0
- package/components/calendar-grid/class.js +300 -0
- package/components/calendar-picker/calendar-picker.css +139 -139
- package/components/canvas/canvas.css +12 -12
- package/components/card/card.css +83 -83
- package/components/chart/chart.css +224 -224
- package/components/chart-legend/chart-legend.css +26 -26
- package/components/check/check.css +40 -40
- package/components/code/code.css +125 -125
- package/components/col/col.css +15 -15
- package/components/color-picker/color-picker.css +55 -55
- package/components/combobox/class.js +861 -0
- package/components/combobox/combobox.a2ui.json +363 -0
- package/components/combobox/combobox.css +244 -0
- package/components/combobox/combobox.d.ts +113 -0
- package/components/combobox/combobox.examples.md +59 -0
- package/components/combobox/combobox.js +17 -0
- package/components/combobox/combobox.test.js +181 -0
- package/components/combobox/combobox.yaml +369 -0
- package/components/command/command.css +90 -90
- package/components/date-range-picker/class.js +775 -0
- package/components/date-range-picker/date-range-picker.a2ui.json +300 -0
- package/components/date-range-picker/date-range-picker.css +178 -0
- package/components/date-range-picker/date-range-picker.d.ts +82 -0
- package/components/date-range-picker/date-range-picker.examples.md +37 -0
- package/components/date-range-picker/date-range-picker.js +17 -0
- package/components/date-range-picker/date-range-picker.test.js +387 -0
- package/components/date-range-picker/date-range-picker.yaml +285 -0
- package/components/datetime-picker/class.js +706 -0
- package/components/datetime-picker/datetime-picker.a2ui.json +334 -0
- package/components/datetime-picker/datetime-picker.css +150 -0
- package/components/datetime-picker/datetime-picker.d.ts +86 -0
- package/components/datetime-picker/datetime-picker.examples.md +46 -0
- package/components/datetime-picker/datetime-picker.js +17 -0
- package/components/datetime-picker/datetime-picker.test.js +454 -0
- package/components/datetime-picker/datetime-picker.yaml +332 -0
- package/components/demo-toggle/demo-toggle.css +27 -27
- package/components/description-list/description-list.css +18 -18
- package/components/divider/divider.css +24 -24
- package/components/embed/embed.css +6 -6
- package/components/empty-state/empty-state.css +27 -27
- package/components/feed/feed.css +12 -12
- package/components/field/field.css +37 -28
- package/components/field/field.test.js +32 -0
- package/components/fields/fields.css +5 -5
- package/components/grid/grid.css +5 -5
- package/components/heatmap/heatmap.css +63 -63
- package/components/icon/icon.css +12 -12
- package/components/image/image.css +14 -14
- package/components/index.js +8 -0
- package/components/input/input.css +66 -66
- package/components/inspector/inspector.css +6 -6
- package/components/integration-card/class.js +410 -0
- package/components/integration-card/integration-card.a2ui.json +268 -0
- package/components/integration-card/integration-card.css +169 -0
- package/components/integration-card/integration-card.d.ts +63 -0
- package/components/integration-card/integration-card.examples.md +41 -0
- package/components/integration-card/integration-card.js +17 -0
- package/components/integration-card/integration-card.test.js +306 -0
- package/components/integration-card/integration-card.yaml +280 -0
- package/components/kbd/kbd.css +32 -32
- package/components/link/link.css +12 -12
- package/components/list/list.css +8 -8
- package/components/list-window/class.js +688 -0
- package/components/list-window/list-window.a2ui.json +277 -0
- package/components/list-window/list-window.css +124 -0
- package/components/list-window/list-window.d.ts +84 -0
- package/components/list-window/list-window.examples.md +73 -0
- package/components/list-window/list-window.js +17 -0
- package/components/list-window/list-window.test.js +303 -0
- package/components/list-window/list-window.yaml +270 -0
- package/components/menu/menu.css +8 -8
- package/components/modal/modal.css +43 -43
- package/components/nav/nav.css +40 -40
- package/components/nav-group/nav-group.css +52 -52
- package/components/nav-item/nav-item.css +44 -44
- package/components/noodles/noodles.css +31 -31
- package/components/option-card/option-card.css +69 -69
- package/components/otp-input/otp-input.css +30 -30
- package/components/page/page.css +18 -18
- package/components/pagination/pagination.css +61 -61
- package/components/pane/pane.css +57 -57
- package/components/pipeline-status/pipeline-status.css +65 -65
- package/components/popover/popover.css +17 -17
- package/components/progress/progress.css +23 -23
- package/components/progress-row/progress-row.css +17 -17
- package/components/radio/radio.css +39 -39
- package/components/range/range.css +55 -55
- package/components/rating/rating.css +28 -28
- package/components/richtext/richtext.css +133 -133
- package/components/row/row.css +19 -19
- package/components/search/search.css +5 -5
- package/components/segment/segment.css +24 -24
- package/components/segmented/segmented.css +25 -25
- package/components/select/select.css +84 -84
- package/components/skeleton/skeleton.css +14 -14
- package/components/slider/slider.css +46 -46
- package/components/spinner/class.js +69 -0
- package/components/spinner/spinner.a2ui.json +197 -0
- package/components/spinner/spinner.css +165 -0
- package/components/spinner/spinner.d.ts +26 -0
- package/components/spinner/spinner.examples.md +26 -0
- package/components/spinner/spinner.js +17 -0
- package/components/spinner/spinner.test.js +234 -0
- package/components/spinner/spinner.yaml +230 -0
- package/components/stack/stack.css +11 -11
- package/components/stat/stat.css +25 -25
- package/components/step-progress/step-progress.css +20 -20
- package/components/stepper/stepper.css +29 -29
- package/components/stream/stream.css +12 -12
- package/components/swatch/swatch.css +68 -68
- package/components/swiper/swiper.css +57 -57
- package/components/switch/switch.css +52 -52
- package/components/table/class.js +9 -0
- package/components/table/table.a2ui.json +1 -1
- package/components/table/table.css +162 -162
- package/components/table/table.d.ts +1 -1
- package/components/table/table.test.js +53 -0
- package/components/table/table.yaml +13 -1
- package/components/table-toolbar/table-toolbar.css +32 -32
- package/components/tabs/tabs.css +51 -51
- package/components/tag/tag.css +48 -48
- package/components/text/text.css +44 -44
- package/components/textarea/textarea.css +46 -46
- package/components/time-picker/class.js +693 -0
- package/components/time-picker/time-picker.a2ui.json +267 -0
- package/components/time-picker/time-picker.css +122 -0
- package/components/time-picker/time-picker.d.ts +75 -0
- package/components/time-picker/time-picker.examples.md +35 -0
- package/components/time-picker/time-picker.js +17 -0
- package/components/time-picker/time-picker.test.js +287 -0
- package/components/time-picker/time-picker.yaml +256 -0
- package/components/timeline/timeline.css +50 -50
- package/components/toast/toast.css +58 -58
- package/components/toggle-group/toggle-group.css +6 -6
- package/components/toggle-scheme/toggle-scheme.css +2 -2
- package/components/toolbar/toolbar.css +17 -17
- package/components/tooltip/tooltip.css +2 -2
- package/components/tree/tree.css +37 -37
- package/components/upload/upload.css +49 -49
- package/dist/icons-manifest.js +3 -3
- package/dist/web-components.min.css +1 -1
- package/dist/web-components.min.js +121 -83
- package/package.json +1 -1
- package/styles/components.css +8 -0
|
@@ -55,7 +55,19 @@ props:
|
|
|
55
55
|
type: number
|
|
56
56
|
default: 0
|
|
57
57
|
raw:
|
|
58
|
-
description:
|
|
58
|
+
description: >-
|
|
59
|
+
Visual-only passthrough — applies `<table-ui>`'s chrome reset
|
|
60
|
+
(background / border / border-radius all transparent) AND
|
|
61
|
+
short-circuits the data lifecycle entirely. The consumer
|
|
62
|
+
owns the body shape: no header injection, no row reconciliation
|
|
63
|
+
from `.data`, no empty-state / loading overlays, no aggregation
|
|
64
|
+
or pagination footers. Use raw when embedding `<table-ui>` inside
|
|
65
|
+
surfaces that supply their own chrome (e.g. `<card-ui><section
|
|
66
|
+
bleed>`), or when wrapping a consumer-authored native `<table>`
|
|
67
|
+
for design-token styling without the framework's data semantics.
|
|
68
|
+
Pre-v0.6.33 (FB-53 §2) `raw` was visual-only and the data lifecycle
|
|
69
|
+
still ran — wrapping a `.data`-unset native table produced a
|
|
70
|
+
phantom "No data" overlay. v0.6.33+ matches the documented contract.
|
|
59
71
|
type: boolean
|
|
60
72
|
default: false
|
|
61
73
|
reflect: true
|
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
@scope (table-toolbar-ui) {
|
|
2
2
|
:where(:scope) {
|
|
3
3
|
/* ── Layout ── */
|
|
4
|
-
--table-toolbar-gap: var(--a-space-3);
|
|
5
|
-
--table-toolbar-py: var(--a-space-2);
|
|
6
|
-
--table-toolbar-px: 0;
|
|
7
|
-
--table-toolbar-cluster-gap: var(--a-space-2);
|
|
4
|
+
--table-toolbar-gap-default: var(--a-space-3);
|
|
5
|
+
--table-toolbar-py-default: var(--a-space-2);
|
|
6
|
+
--table-toolbar-px-default: 0;
|
|
7
|
+
--table-toolbar-cluster-gap-default: var(--a-space-2);
|
|
8
8
|
|
|
9
9
|
/* ── Surface ── */
|
|
10
|
-
--table-toolbar-bg: transparent;
|
|
11
|
-
--table-toolbar-border: transparent;
|
|
12
|
-
--table-toolbar-border-width: 0;
|
|
13
|
-
--table-toolbar-radius: var(--a-radius-lg);
|
|
10
|
+
--table-toolbar-bg-default: transparent;
|
|
11
|
+
--table-toolbar-border-default: transparent;
|
|
12
|
+
--table-toolbar-border-width-default: 0;
|
|
13
|
+
--table-toolbar-radius-default: var(--a-radius-lg);
|
|
14
14
|
|
|
15
15
|
/* ── Title ── */
|
|
16
|
-
--table-toolbar-title-fg: var(--a-fg-strong);
|
|
17
|
-
--table-toolbar-title-size: var(--a-ui-lg);
|
|
18
|
-
--table-toolbar-title-weight: var(--a-weight-medium);
|
|
19
|
-
--table-toolbar-title-gap: var(--a-space-2);
|
|
16
|
+
--table-toolbar-title-fg-default: var(--a-fg-strong);
|
|
17
|
+
--table-toolbar-title-size-default: var(--a-ui-lg);
|
|
18
|
+
--table-toolbar-title-weight-default: var(--a-weight-medium);
|
|
19
|
+
--table-toolbar-title-gap-default: var(--a-space-2);
|
|
20
20
|
|
|
21
21
|
/* ── Search ── */
|
|
22
|
-
--table-toolbar-search-min: 14rem;
|
|
23
|
-
--table-toolbar-search-max: 22rem;
|
|
22
|
+
--table-toolbar-search-min-default: 14rem;
|
|
23
|
+
--table-toolbar-search-max-default: 22rem;
|
|
24
24
|
|
|
25
25
|
/* Popover tokens removed — popover escapes to top layer and
|
|
26
26
|
cannot inherit @scope tokens. Raw --a-* tokens are used
|
|
@@ -40,11 +40,11 @@
|
|
|
40
40
|
display: flex;
|
|
41
41
|
flex-direction: row;
|
|
42
42
|
align-items: center;
|
|
43
|
-
gap: var(--table-toolbar-gap);
|
|
44
|
-
padding: var(--table-toolbar-py) var(--table-toolbar-px);
|
|
45
|
-
background: var(--table-toolbar-bg);
|
|
46
|
-
border: var(--table-toolbar-border-width) solid var(--table-toolbar-border);
|
|
47
|
-
border-radius: var(--table-toolbar-radius);
|
|
43
|
+
gap: var(--table-toolbar-gap, var(--table-toolbar-gap-default));
|
|
44
|
+
padding: var(--table-toolbar-py, var(--table-toolbar-py-default)) var(--table-toolbar-px, var(--table-toolbar-px-default));
|
|
45
|
+
background: var(--table-toolbar-bg, var(--table-toolbar-bg-default));
|
|
46
|
+
border: var(--table-toolbar-border-width, var(--table-toolbar-border-width-default)) solid var(--table-toolbar-border, var(--table-toolbar-border-default));
|
|
47
|
+
border-radius: var(--table-toolbar-radius, var(--table-toolbar-radius-default));
|
|
48
48
|
min-width: 0;
|
|
49
49
|
}
|
|
50
50
|
|
|
@@ -54,11 +54,11 @@
|
|
|
54
54
|
base styles". */
|
|
55
55
|
|
|
56
56
|
:scope[variant="card"] {
|
|
57
|
-
--table-toolbar-bg: var(--a-bg);
|
|
58
|
-
--table-toolbar-border: var(--a-border-subtle);
|
|
59
|
-
--table-toolbar-border-width: 1px;
|
|
60
|
-
--table-toolbar-py: var(--a-space-3);
|
|
61
|
-
--table-toolbar-px: var(--a-space-4);
|
|
57
|
+
--table-toolbar-bg-default: var(--a-bg);
|
|
58
|
+
--table-toolbar-border-default: var(--a-border-subtle);
|
|
59
|
+
--table-toolbar-border-width-default: 1px;
|
|
60
|
+
--table-toolbar-py-default: var(--a-space-3);
|
|
61
|
+
--table-toolbar-px-default: var(--a-space-4);
|
|
62
62
|
}
|
|
63
63
|
|
|
64
64
|
/* ═══════ Title cluster ═══════ */
|
|
@@ -66,15 +66,15 @@
|
|
|
66
66
|
[data-title] {
|
|
67
67
|
display: inline-flex;
|
|
68
68
|
align-items: center;
|
|
69
|
-
gap: var(--table-toolbar-title-gap);
|
|
69
|
+
gap: var(--table-toolbar-title-gap, var(--table-toolbar-title-gap-default));
|
|
70
70
|
flex: 0 0 auto;
|
|
71
71
|
min-width: 0;
|
|
72
72
|
}
|
|
73
73
|
|
|
74
74
|
[data-heading] {
|
|
75
|
-
font-size: var(--table-toolbar-title-size);
|
|
76
|
-
font-weight: var(--table-toolbar-title-weight);
|
|
77
|
-
color: var(--table-toolbar-title-fg);
|
|
75
|
+
font-size: var(--table-toolbar-title-size, var(--table-toolbar-title-size-default));
|
|
76
|
+
font-weight: var(--table-toolbar-title-weight, var(--table-toolbar-title-weight-default));
|
|
77
|
+
color: var(--table-toolbar-title-fg, var(--table-toolbar-title-fg-default));
|
|
78
78
|
line-height: 1.2;
|
|
79
79
|
}
|
|
80
80
|
|
|
@@ -85,7 +85,7 @@
|
|
|
85
85
|
[data-controls] {
|
|
86
86
|
display: inline-flex;
|
|
87
87
|
align-items: center;
|
|
88
|
-
gap: var(--table-toolbar-cluster-gap);
|
|
88
|
+
gap: var(--table-toolbar-cluster-gap, var(--table-toolbar-cluster-gap-default));
|
|
89
89
|
flex: 0 0 auto;
|
|
90
90
|
}
|
|
91
91
|
|
|
@@ -94,9 +94,9 @@
|
|
|
94
94
|
/* ═══════ Search ═══════ */
|
|
95
95
|
|
|
96
96
|
[data-search] {
|
|
97
|
-
flex: 1 1 var(--table-toolbar-search-min);
|
|
97
|
+
flex: 1 1 var(--table-toolbar-search-min, var(--table-toolbar-search-min-default));
|
|
98
98
|
min-width: 0;
|
|
99
|
-
max-width: var(--table-toolbar-search-max);
|
|
99
|
+
max-width: var(--table-toolbar-search-max, var(--table-toolbar-search-max-default));
|
|
100
100
|
margin-inline-start: auto;
|
|
101
101
|
}
|
|
102
102
|
|
|
@@ -107,7 +107,7 @@
|
|
|
107
107
|
[data-actions] {
|
|
108
108
|
display: inline-flex;
|
|
109
109
|
align-items: center;
|
|
110
|
-
gap: var(--table-toolbar-cluster-gap);
|
|
110
|
+
gap: var(--table-toolbar-cluster-gap, var(--table-toolbar-cluster-gap-default));
|
|
111
111
|
flex: 0 0 auto;
|
|
112
112
|
}
|
|
113
113
|
|
package/components/tabs/tabs.css
CHANGED
|
@@ -1,38 +1,38 @@
|
|
|
1
1
|
@scope (tabs-ui) {
|
|
2
2
|
:where(:scope) {
|
|
3
3
|
/* ── Tokens ── */
|
|
4
|
-
--tabs-border: transparent;
|
|
5
|
-
--tabs-bg: transparent;
|
|
6
|
-
--tabs-radius: var(--a-radius-md);
|
|
7
|
-
--tabs-button-height:
|
|
8
|
-
--tabs-button-px: var(--a-space-2);
|
|
9
|
-
--tabs-font-size: var(--a-ui-md);
|
|
10
|
-
--tabs-gap: var(--a-space-1);
|
|
11
|
-
--tabs-indicator-color: var(--a-primary);
|
|
12
|
-
--tabs-indicator-height: 2px;
|
|
13
|
-
--tabs-fg: var(--a-fg-subtle);
|
|
14
|
-
--tabs-fg-hover: var(--a-fg);
|
|
15
|
-
--tabs-fg-active: var(--a-fg-selected);
|
|
16
|
-
--tabs-fg-disabled: var(--a-ui-text-disabled);
|
|
4
|
+
--tabs-border-default: transparent;
|
|
5
|
+
--tabs-bg-default: transparent;
|
|
6
|
+
--tabs-radius-default: var(--a-radius-md);
|
|
7
|
+
--tabs-button-height-default: var(--a-size);
|
|
8
|
+
--tabs-button-px-default: var(--a-space-2);
|
|
9
|
+
--tabs-font-size-default: var(--a-ui-md);
|
|
10
|
+
--tabs-gap-default: var(--a-space-1);
|
|
11
|
+
--tabs-indicator-color-default: var(--a-primary);
|
|
12
|
+
--tabs-indicator-height-default: 2px;
|
|
13
|
+
--tabs-fg-default: var(--a-fg-subtle);
|
|
14
|
+
--tabs-fg-hover-default: var(--a-fg);
|
|
15
|
+
--tabs-fg-active-default: var(--a-fg-selected);
|
|
16
|
+
--tabs-fg-disabled-default: var(--a-ui-text-disabled);
|
|
17
17
|
|
|
18
18
|
/* ── Spacing ── */
|
|
19
|
-
--tabs-vertical-gap: var(--a-space-4);
|
|
20
|
-
--tabs-button-gap: var(--a-space-1);
|
|
19
|
+
--tabs-vertical-gap-default: var(--a-space-4);
|
|
20
|
+
--tabs-button-gap-default: var(--a-space-1);
|
|
21
21
|
|
|
22
22
|
/* ── Transitions ── */
|
|
23
|
-
--tabs-duration: var(--a-duration);
|
|
24
|
-
--tabs-duration-fast: var(--a-duration-fast);
|
|
25
|
-
--tabs-easing: var(--a-easing);
|
|
26
|
-
--tabs-easing-out: var(--a-easing-out);
|
|
23
|
+
--tabs-duration-default: var(--a-duration);
|
|
24
|
+
--tabs-duration-fast-default: var(--a-duration-fast);
|
|
25
|
+
--tabs-easing-default: var(--a-easing);
|
|
26
|
+
--tabs-easing-out-default: var(--a-easing-out);
|
|
27
27
|
|
|
28
28
|
/* ── Focus ── */
|
|
29
|
-
--tabs-focus-ring: var(--a-focus-ring);
|
|
30
|
-
--tabs-focus-radius: var(--a-radius-sm);
|
|
29
|
+
--tabs-focus-ring-default: var(--a-focus-ring);
|
|
30
|
+
--tabs-focus-radius-default: var(--a-radius-sm);
|
|
31
31
|
|
|
32
32
|
/* ── Vertical strip min-width ── */
|
|
33
33
|
/* Component-intrinsic visual constant; no --a-space-* equivalent
|
|
34
34
|
(8.75rem ≈ 140px at 1rem=16px). */
|
|
35
|
-
--tabs-vertical-strip-min-width: 8.75rem;
|
|
35
|
+
--tabs-vertical-strip-min-width-default: 8.75rem;
|
|
36
36
|
}
|
|
37
37
|
|
|
38
38
|
:scope {
|
|
@@ -40,29 +40,29 @@
|
|
|
40
40
|
box-sizing: border-box;
|
|
41
41
|
display: flex;
|
|
42
42
|
flex-direction: column;
|
|
43
|
-
background: var(--tabs-bg);
|
|
44
|
-
border-radius: var(--tabs-radius);
|
|
43
|
+
background: var(--tabs-bg, var(--tabs-bg-default));
|
|
44
|
+
border-radius: var(--tabs-radius, var(--tabs-radius-default));
|
|
45
45
|
}
|
|
46
46
|
|
|
47
47
|
/* Bordered variant — baseline border under the tab strip.
|
|
48
48
|
The active indicator sits on top of the border for a clean join. */
|
|
49
|
-
:scope[variant="bordered"] { --tabs-border: var(--a-border-subtle); }
|
|
50
|
-
:scope[divider] { --tabs-border: var(--a-border-subtle); }
|
|
49
|
+
:scope[variant="bordered"] { --tabs-border-default: var(--a-border-subtle); }
|
|
50
|
+
:scope[divider] { --tabs-border-default: var(--a-border-subtle); }
|
|
51
51
|
|
|
52
52
|
/* Vertical orientation: strip on the left, panels on the right */
|
|
53
53
|
:scope[orientation="vertical"] {
|
|
54
54
|
flex-direction: row;
|
|
55
55
|
align-items: flex-start;
|
|
56
|
-
gap: var(--tabs-vertical-gap);
|
|
56
|
+
gap: var(--tabs-vertical-gap, var(--tabs-vertical-gap-default));
|
|
57
57
|
}
|
|
58
58
|
|
|
59
59
|
/* ── Button strip ── */
|
|
60
60
|
[slot="strip"] {
|
|
61
61
|
box-sizing: border-box;
|
|
62
62
|
display: flex;
|
|
63
|
-
gap: var(--tabs-gap);
|
|
64
|
-
height: var(--tabs-button-height);
|
|
65
|
-
box-shadow: inset 0 -1px 0 var(--tabs-border);
|
|
63
|
+
gap: var(--tabs-gap, var(--tabs-gap-default));
|
|
64
|
+
height: var(--tabs-button-height, var(--tabs-button-height-default));
|
|
65
|
+
box-shadow: inset 0 -1px 0 var(--tabs-border, var(--tabs-border-default));
|
|
66
66
|
position: relative;
|
|
67
67
|
}
|
|
68
68
|
|
|
@@ -70,9 +70,9 @@
|
|
|
70
70
|
flex-direction: column;
|
|
71
71
|
align-items: stretch;
|
|
72
72
|
height: auto;
|
|
73
|
-
box-shadow: inset 1px 0 0 var(--tabs-border);
|
|
73
|
+
box-shadow: inset 1px 0 0 var(--tabs-border, var(--tabs-border-default));
|
|
74
74
|
flex-shrink: 0;
|
|
75
|
-
min-width: var(--tabs-vertical-strip-min-width);
|
|
75
|
+
min-width: var(--tabs-vertical-strip-min-width, var(--tabs-vertical-strip-min-width-default));
|
|
76
76
|
}
|
|
77
77
|
|
|
78
78
|
/* ── Sliding indicator ── */
|
|
@@ -80,24 +80,24 @@
|
|
|
80
80
|
position: absolute;
|
|
81
81
|
bottom: 0;
|
|
82
82
|
left: 0;
|
|
83
|
-
height: var(--tabs-indicator-height);
|
|
84
|
-
background: var(--tabs-indicator-color);
|
|
85
|
-
border-radius: var(--tabs-indicator-height);
|
|
83
|
+
height: var(--tabs-indicator-height, var(--tabs-indicator-height-default));
|
|
84
|
+
background: var(--tabs-indicator-color, var(--tabs-indicator-color-default));
|
|
85
|
+
border-radius: var(--tabs-indicator-height, var(--tabs-indicator-height-default));
|
|
86
86
|
pointer-events: none;
|
|
87
87
|
transition:
|
|
88
|
-
transform var(--tabs-duration) var(--tabs-easing-out),
|
|
89
|
-
width var(--tabs-duration) var(--tabs-easing-out);
|
|
88
|
+
transform var(--tabs-duration, var(--tabs-duration-default)) var(--tabs-easing-out, var(--tabs-easing-out-default)),
|
|
89
|
+
width var(--tabs-duration, var(--tabs-duration-default)) var(--tabs-easing-out, var(--tabs-easing-out-default));
|
|
90
90
|
}
|
|
91
91
|
|
|
92
92
|
:scope[orientation="vertical"] [slot="indicator"] {
|
|
93
93
|
bottom: auto;
|
|
94
94
|
left: -1px;
|
|
95
95
|
top: 0;
|
|
96
|
-
width: var(--tabs-indicator-height);
|
|
96
|
+
width: var(--tabs-indicator-height, var(--tabs-indicator-height-default));
|
|
97
97
|
height: auto;
|
|
98
98
|
transition:
|
|
99
|
-
transform var(--tabs-duration) var(--tabs-easing-out),
|
|
100
|
-
height var(--tabs-duration) var(--tabs-easing-out);
|
|
99
|
+
transform var(--tabs-duration, var(--tabs-duration-default)) var(--tabs-easing-out, var(--tabs-easing-out-default)),
|
|
100
|
+
height var(--tabs-duration, var(--tabs-duration-default)) var(--tabs-easing-out, var(--tabs-easing-out-default));
|
|
101
101
|
}
|
|
102
102
|
|
|
103
103
|
/* Vertical panel area takes remaining space */
|
|
@@ -111,19 +111,19 @@
|
|
|
111
111
|
box-sizing: border-box;
|
|
112
112
|
display: inline-flex;
|
|
113
113
|
align-items: center;
|
|
114
|
-
gap: var(--tabs-button-gap);
|
|
115
|
-
height: var(--tabs-button-height);
|
|
116
|
-
padding-inline: var(--tabs-button-px);
|
|
114
|
+
gap: var(--tabs-button-gap, var(--tabs-button-gap-default));
|
|
115
|
+
height: var(--tabs-button-height, var(--tabs-button-height-default));
|
|
116
|
+
padding-inline: var(--tabs-button-px, var(--tabs-button-px-default));
|
|
117
117
|
border: none;
|
|
118
118
|
background: none;
|
|
119
|
-
color: var(--tabs-fg);
|
|
119
|
+
color: var(--tabs-fg, var(--tabs-fg-default));
|
|
120
120
|
font: inherit;
|
|
121
|
-
font-size: var(--tabs-font-size);
|
|
121
|
+
font-size: var(--tabs-font-size, var(--tabs-font-size-default));
|
|
122
122
|
line-height: 1;
|
|
123
123
|
cursor: pointer;
|
|
124
124
|
user-select: none;
|
|
125
125
|
white-space: nowrap;
|
|
126
|
-
transition: color var(--tabs-duration-fast) var(--tabs-easing);
|
|
126
|
+
transition: color var(--tabs-duration-fast, var(--tabs-duration-fast-default)) var(--tabs-easing, var(--tabs-easing-default));
|
|
127
127
|
}
|
|
128
128
|
|
|
129
129
|
:scope[orientation="vertical"] [slot="tab-button"] {
|
|
@@ -133,23 +133,23 @@
|
|
|
133
133
|
}
|
|
134
134
|
|
|
135
135
|
[slot="tab-button"]:not([disabled]):hover {
|
|
136
|
-
color: var(--tabs-fg-hover);
|
|
136
|
+
color: var(--tabs-fg-hover, var(--tabs-fg-hover-default));
|
|
137
137
|
}
|
|
138
138
|
|
|
139
139
|
[slot="tab-button"][data-active] {
|
|
140
|
-
color: var(--tabs-fg-active);
|
|
140
|
+
color: var(--tabs-fg-active, var(--tabs-fg-active-default));
|
|
141
141
|
}
|
|
142
142
|
|
|
143
143
|
[slot="tab-button"][disabled] {
|
|
144
|
-
color: var(--tabs-fg-disabled);
|
|
144
|
+
color: var(--tabs-fg-disabled, var(--tabs-fg-disabled-default));
|
|
145
145
|
cursor: not-allowed;
|
|
146
146
|
pointer-events: none;
|
|
147
147
|
}
|
|
148
148
|
|
|
149
149
|
[slot="tab-button"]:focus-visible {
|
|
150
150
|
outline: none;
|
|
151
|
-
box-shadow: var(--tabs-focus-ring);
|
|
152
|
-
border-radius: var(--tabs-focus-radius);
|
|
151
|
+
box-shadow: var(--tabs-focus-ring, var(--tabs-focus-ring-default));
|
|
152
|
+
border-radius: var(--tabs-focus-radius, var(--tabs-focus-radius-default));
|
|
153
153
|
}
|
|
154
154
|
|
|
155
155
|
/* ── Tab panels ── */
|
package/components/tag/tag.css
CHANGED
|
@@ -1,37 +1,37 @@
|
|
|
1
1
|
/* Safari 17.x bug: `:scope[attr]:hover` inside `@scope` doesn't match the
|
|
2
2
|
scope root. Plain selector outside works. See docs/BROWSER-COMPAT.md §3a. */
|
|
3
3
|
tag-ui[removable]:not([disabled]):hover {
|
|
4
|
-
--tag-bg: var(--tag-bg-hover);
|
|
4
|
+
--tag-bg-default: var(--tag-bg-hover, var(--tag-bg-hover-default));
|
|
5
5
|
}
|
|
6
6
|
|
|
7
7
|
@scope (tag-ui) {
|
|
8
8
|
:where(:scope) {
|
|
9
9
|
/* ── Tokens ── */
|
|
10
|
-
--tag-bg: var(--a-bg-muted);
|
|
11
|
-
--tag-fg: var(--a-fg);
|
|
12
|
-
--tag-border: transparent;
|
|
13
|
-
--tag-radius: var(--a-radius-full);
|
|
14
|
-
--tag-px: var(--a-space-2);
|
|
15
|
-
--tag-py: 0.125rem;
|
|
16
|
-
--tag-gap: var(--a-space-1);
|
|
17
|
-
--tag-font: var(--a-ui-sm);
|
|
18
|
-
--tag-dismiss-size: 1rem;
|
|
19
|
-
--tag-bg-hover: var(--a-bg-hover);
|
|
20
|
-
--tag-bg-disabled: var(--a-ui-bg-disabled);
|
|
21
|
-
--tag-fg-disabled: var(--a-ui-text-disabled);
|
|
10
|
+
--tag-bg-default: var(--a-bg-muted);
|
|
11
|
+
--tag-fg-default: var(--a-fg);
|
|
12
|
+
--tag-border-default: transparent;
|
|
13
|
+
--tag-radius-default: var(--a-radius-full);
|
|
14
|
+
--tag-px-default: var(--a-space-2);
|
|
15
|
+
--tag-py-default: 0.125rem;
|
|
16
|
+
--tag-gap-default: var(--a-space-1);
|
|
17
|
+
--tag-font-default: var(--a-ui-sm);
|
|
18
|
+
--tag-dismiss-size-default: 1rem;
|
|
19
|
+
--tag-bg-hover-default: var(--a-bg-hover);
|
|
20
|
+
--tag-bg-disabled-default: var(--a-ui-bg-disabled);
|
|
21
|
+
--tag-fg-disabled-default: var(--a-ui-text-disabled);
|
|
22
22
|
|
|
23
23
|
/* ── Focus ── */
|
|
24
|
-
--tag-focus-ring: var(--a-focus-ring);
|
|
24
|
+
--tag-focus-ring-default: var(--a-focus-ring);
|
|
25
25
|
|
|
26
26
|
/* ── Motion ── */
|
|
27
|
-
--tag-duration: var(--a-duration-fast);
|
|
28
|
-
--tag-easing: var(--a-easing);
|
|
27
|
+
--tag-duration-default: var(--a-duration-fast);
|
|
28
|
+
--tag-easing-default: var(--a-easing);
|
|
29
29
|
|
|
30
30
|
/* ── Dismiss ── */
|
|
31
|
-
--tag-dismiss-radius: var(--a-radius-full);
|
|
32
|
-
--tag-dismiss-fg: var(--a-fg-muted);
|
|
33
|
-
--tag-dismiss-fg-hover: var(--a-fg);
|
|
34
|
-
--tag-dismiss-bg-hover: var(--a-bg-muted);
|
|
31
|
+
--tag-dismiss-radius-default: var(--a-radius-full);
|
|
32
|
+
--tag-dismiss-fg-default: var(--a-fg-muted);
|
|
33
|
+
--tag-dismiss-fg-hover-default: var(--a-fg);
|
|
34
|
+
--tag-dismiss-bg-hover-default: var(--a-bg-muted);
|
|
35
35
|
text-align: start; /* §text-align-reset — blocks inheritance from centered ancestors */
|
|
36
36
|
}
|
|
37
37
|
|
|
@@ -40,19 +40,19 @@ tag-ui[removable]:not([disabled]):hover {
|
|
|
40
40
|
box-sizing: border-box;
|
|
41
41
|
display: inline-flex;
|
|
42
42
|
align-items: center;
|
|
43
|
-
gap: var(--tag-gap);
|
|
44
|
-
padding: var(--tag-py) var(--tag-px);
|
|
45
|
-
border-radius: var(--tag-radius);
|
|
46
|
-
border: 1px solid var(--tag-border);
|
|
43
|
+
gap: var(--tag-gap, var(--tag-gap-default));
|
|
44
|
+
padding: var(--tag-py, var(--tag-py-default)) var(--tag-px, var(--tag-px-default));
|
|
45
|
+
border-radius: var(--tag-radius, var(--tag-radius-default));
|
|
46
|
+
border: 1px solid var(--tag-border, var(--tag-border-default));
|
|
47
47
|
font: inherit;
|
|
48
|
-
font-size: var(--tag-font);
|
|
48
|
+
font-size: var(--tag-font, var(--tag-font-default));
|
|
49
49
|
font-weight: 500;
|
|
50
50
|
line-height: 1;
|
|
51
|
-
color: var(--tag-fg);
|
|
52
|
-
background: var(--tag-bg);
|
|
51
|
+
color: var(--tag-fg, var(--tag-fg-default));
|
|
52
|
+
background: var(--tag-bg, var(--tag-bg-default));
|
|
53
53
|
white-space: nowrap;
|
|
54
54
|
user-select: none;
|
|
55
|
-
transition: background var(--tag-duration) var(--tag-easing), color var(--tag-duration) var(--tag-easing);
|
|
55
|
+
transition: background var(--tag-duration, var(--tag-duration-default)) var(--tag-easing, var(--tag-easing-default)), color var(--tag-duration, var(--tag-duration-default)) var(--tag-easing, var(--tag-easing-default));
|
|
56
56
|
}
|
|
57
57
|
|
|
58
58
|
/* `[text]` attribute selector gates the ::after so consumers using
|
|
@@ -66,23 +66,23 @@ tag-ui[removable]:not([disabled]):hover {
|
|
|
66
66
|
|
|
67
67
|
/* ── Variants ── */
|
|
68
68
|
:scope[variant="info"] {
|
|
69
|
-
--tag-bg: var(--a-info-muted);
|
|
70
|
-
--tag-fg: var(--a-info-bg);
|
|
69
|
+
--tag-bg-default: var(--a-info-muted);
|
|
70
|
+
--tag-fg-default: var(--a-info-bg);
|
|
71
71
|
}
|
|
72
72
|
|
|
73
73
|
:scope[variant="success"] {
|
|
74
|
-
--tag-bg: var(--a-success-muted);
|
|
75
|
-
--tag-fg: var(--a-success-bg);
|
|
74
|
+
--tag-bg-default: var(--a-success-muted);
|
|
75
|
+
--tag-fg-default: var(--a-success-bg);
|
|
76
76
|
}
|
|
77
77
|
|
|
78
78
|
:scope[variant="warning"] {
|
|
79
|
-
--tag-bg: var(--a-warning-muted);
|
|
80
|
-
--tag-fg: var(--a-warning-bg);
|
|
79
|
+
--tag-bg-default: var(--a-warning-muted);
|
|
80
|
+
--tag-fg-default: var(--a-warning-bg);
|
|
81
81
|
}
|
|
82
82
|
|
|
83
83
|
:scope[variant="danger"] {
|
|
84
|
-
--tag-bg: var(--a-danger-muted);
|
|
85
|
-
--tag-fg: var(--a-danger-bg);
|
|
84
|
+
--tag-bg-default: var(--a-danger-muted);
|
|
85
|
+
--tag-fg-default: var(--a-danger-bg);
|
|
86
86
|
}
|
|
87
87
|
|
|
88
88
|
/* `default` is a semantic alias of the base — same tokens as the
|
|
@@ -91,8 +91,8 @@ tag-ui[removable]:not([disabled]):hover {
|
|
|
91
91
|
base; the explicit selector lets `<tag-ui variant="default">`
|
|
92
92
|
render identically without falling through to base. */
|
|
93
93
|
:scope[variant="default"] {
|
|
94
|
-
--tag-bg: var(--a-bg-muted);
|
|
95
|
-
--tag-fg: var(--a-fg);
|
|
94
|
+
--tag-bg-default: var(--a-bg-muted);
|
|
95
|
+
--tag-fg-default: var(--a-fg);
|
|
96
96
|
}
|
|
97
97
|
|
|
98
98
|
/* Size handled by universal [size] attribute system. */
|
|
@@ -102,7 +102,7 @@ tag-ui[removable]:not([disabled]):hover {
|
|
|
102
102
|
/* ── Focus ── */
|
|
103
103
|
:scope:focus-visible {
|
|
104
104
|
outline: none;
|
|
105
|
-
box-shadow: var(--tag-focus-ring);
|
|
105
|
+
box-shadow: var(--tag-focus-ring, var(--tag-focus-ring-default));
|
|
106
106
|
}
|
|
107
107
|
|
|
108
108
|
/* ── Dismiss button ── */
|
|
@@ -110,28 +110,28 @@ tag-ui[removable]:not([disabled]):hover {
|
|
|
110
110
|
display: inline-flex;
|
|
111
111
|
align-items: center;
|
|
112
112
|
justify-content: center;
|
|
113
|
-
width: var(--tag-dismiss-size);
|
|
114
|
-
height: var(--tag-dismiss-size);
|
|
113
|
+
width: var(--tag-dismiss-size, var(--tag-dismiss-size-default));
|
|
114
|
+
height: var(--tag-dismiss-size, var(--tag-dismiss-size-default));
|
|
115
115
|
padding: 0;
|
|
116
116
|
border: none;
|
|
117
117
|
background: none;
|
|
118
118
|
cursor: pointer;
|
|
119
|
-
border-radius: var(--tag-dismiss-radius);
|
|
120
|
-
color: var(--tag-dismiss-fg);
|
|
119
|
+
border-radius: var(--tag-dismiss-radius, var(--tag-dismiss-radius-default));
|
|
120
|
+
color: var(--tag-dismiss-fg, var(--tag-dismiss-fg-default));
|
|
121
121
|
--a-icon-size: 0.875rem;
|
|
122
122
|
order: 1; /* push dismiss to end so layout reads [text] [×] */
|
|
123
|
-
transition: color var(--tag-duration) var(--tag-easing), background var(--tag-duration) var(--tag-easing);
|
|
123
|
+
transition: color var(--tag-duration, var(--tag-duration-default)) var(--tag-easing, var(--tag-easing-default)), background var(--tag-duration, var(--tag-duration-default)) var(--tag-easing, var(--tag-easing-default));
|
|
124
124
|
}
|
|
125
125
|
|
|
126
126
|
[slot="dismiss"]:hover {
|
|
127
|
-
color: var(--tag-dismiss-fg-hover);
|
|
128
|
-
background: var(--tag-dismiss-bg-hover);
|
|
127
|
+
color: var(--tag-dismiss-fg-hover, var(--tag-dismiss-fg-hover-default));
|
|
128
|
+
background: var(--tag-dismiss-bg-hover, var(--tag-dismiss-bg-hover-default));
|
|
129
129
|
}
|
|
130
130
|
|
|
131
131
|
/* ── Disabled ── */
|
|
132
132
|
:scope[disabled] {
|
|
133
|
-
--tag-bg: var(--tag-bg-disabled);
|
|
134
|
-
--tag-fg: var(--tag-fg-disabled);
|
|
133
|
+
--tag-bg-default: var(--tag-bg-disabled, var(--tag-bg-disabled-default));
|
|
134
|
+
--tag-fg-default: var(--tag-fg-disabled, var(--tag-fg-disabled-default));
|
|
135
135
|
pointer-events: none;
|
|
136
136
|
}
|
|
137
137
|
}
|
package/components/text/text.css
CHANGED
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
@scope (text-ui) {
|
|
2
2
|
:where(:scope) {
|
|
3
3
|
/* ── Tokens (body defaults) ── */
|
|
4
|
-
--text-family: var(--a-body-family);
|
|
5
|
-
--text-weight: var(--a-weight);
|
|
6
|
-
--text-weight-strong: var(--a-weight-semibold);
|
|
7
|
-
--text-size: var(--a-body-size);
|
|
8
|
-
--text-leading: var(--a-body-leading);
|
|
9
|
-
--text-tracking: var(--a-body-tracking);
|
|
10
|
-
--text-case: var(--a-body-case);
|
|
11
|
-
--text-color: var(--a-fg);
|
|
12
|
-
--text-color-strong: var(--a-fg-strong);
|
|
4
|
+
--text-family-default: var(--a-body-family);
|
|
5
|
+
--text-weight-default: var(--a-weight);
|
|
6
|
+
--text-weight-strong-default: var(--a-weight-semibold);
|
|
7
|
+
--text-size-default: var(--a-body-size);
|
|
8
|
+
--text-leading-default: var(--a-body-leading);
|
|
9
|
+
--text-tracking-default: var(--a-body-tracking);
|
|
10
|
+
--text-case-default: var(--a-body-case);
|
|
11
|
+
--text-color-default: var(--a-fg);
|
|
12
|
+
--text-color-strong-default: var(--a-fg-strong);
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
:scope {
|
|
16
16
|
box-sizing: border-box;
|
|
17
17
|
display: inline;
|
|
18
|
-
font-family: var(--text-family);
|
|
19
|
-
font-weight: var(--text-weight);
|
|
20
|
-
font-size: var(--text-size);
|
|
21
|
-
line-height: var(--text-leading);
|
|
22
|
-
letter-spacing: var(--text-tracking);
|
|
23
|
-
text-transform: var(--text-case);
|
|
24
|
-
color: var(--text-color);
|
|
18
|
+
font-family: var(--text-family, var(--text-family-default));
|
|
19
|
+
font-weight: var(--text-weight, var(--text-weight-default));
|
|
20
|
+
font-size: var(--text-size, var(--text-size-default));
|
|
21
|
+
line-height: var(--text-leading, var(--text-leading-default));
|
|
22
|
+
letter-spacing: var(--text-tracking, var(--text-tracking-default));
|
|
23
|
+
text-transform: var(--text-case, var(--text-case-default));
|
|
24
|
+
color: var(--text-color, var(--text-color-default));
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
/* Reset native heading styles inside text-ui so the variant controls the look */
|
|
@@ -33,20 +33,20 @@
|
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
:scope[strong], :is(strong) {
|
|
36
|
-
--text-weight: var(--text-weight-strong);
|
|
37
|
-
--text-color: var(--text-color-strong);
|
|
36
|
+
--text-weight-default: var(--text-weight-strong, var(--text-weight-strong-default));
|
|
37
|
+
--text-color-default: var(--text-color-strong, var(--text-color-strong-default));
|
|
38
38
|
}
|
|
39
39
|
|
|
40
40
|
/* ── Variants ── */
|
|
41
|
-
:scope[variant="body"] { --text-family: var(--a-body-family); --text-weight: var(--a-body-weight); --text-size: var(--a-body-size); --text-leading: var(--a-body-leading); --text-tracking: var(--a-body-tracking); --text-case: var(--a-body-case); --text-color: var(--a-fg); }
|
|
42
|
-
:scope[variant="display"] { --text-family: var(--a-display-family); --text-weight: var(--a-display-weight); --text-size: var(--a-display-size); --text-leading: var(--a-display-leading); --text-tracking: var(--a-display-tracking); --text-case: var(--a-display-case); --text-color: var(--a-display-color); }
|
|
43
|
-
:scope[variant="title"] { --text-family: var(--a-title-family); --text-weight: var(--a-title-weight); --text-size: var(--a-title-size); --text-leading: var(--a-title-leading); --text-tracking: var(--a-title-tracking); --text-case: var(--a-title-case); --text-color: var(--a-title-color); }
|
|
44
|
-
:scope[variant="heading"] { --text-family: var(--a-heading-family); --text-weight: var(--a-heading-weight); --text-size: var(--a-heading-size); --text-leading: var(--a-heading-leading); --text-tracking: var(--a-heading-tracking); --text-case: var(--a-heading-case); --text-color: var(--a-heading-color); }
|
|
45
|
-
:scope[variant="section"] { --text-family: var(--a-section-family); --text-weight: var(--a-section-weight); --text-size: var(--a-section-size); --text-leading: var(--a-section-leading); --text-tracking: var(--a-section-tracking); --text-case: var(--a-section-case); --text-color: var(--a-section-color); }
|
|
46
|
-
:scope[variant="caption"] { --text-family: var(--a-caption-family); --text-weight: var(--a-caption-weight); --text-size: var(--a-caption-size); --text-leading: var(--a-caption-leading); --text-tracking: var(--a-caption-tracking); --text-case: var(--a-caption-case); --text-color: var(--a-caption-color); }
|
|
47
|
-
:scope[variant="label"] { --text-family: var(--a-label-family); --text-weight: var(--a-label-weight); --text-size: var(--a-label-size); --text-leading: var(--a-label-leading); --text-tracking: var(--a-label-tracking); --text-case: var(--a-label-case); --text-color: var(--a-label-color); }
|
|
48
|
-
:scope[variant="kicker"] { --text-family: var(--a-kicker-family); --text-weight: var(--a-kicker-weight); --text-size: var(--a-kicker-size); --text-leading: var(--a-kicker-leading); --text-tracking: var(--a-kicker-tracking); --text-case: uppercase; --text-color: var(--a-kicker-color); }
|
|
49
|
-
:scope[variant="code"] { --text-family: var(--a-code-family); --text-weight: var(--a-code-weight); --text-size: var(--a-code-size); --text-leading: var(--a-code-leading); --text-tracking: var(--a-code-tracking); --text-case: var(--a-code-case); --text-color: var(--a-code-color); }
|
|
41
|
+
:scope[variant="body"] { --text-family-default: var(--a-body-family); --text-weight-default: var(--a-body-weight); --text-size-default: var(--a-body-size); --text-leading-default: var(--a-body-leading); --text-tracking-default: var(--a-body-tracking); --text-case-default: var(--a-body-case); --text-color-default: var(--a-fg); }
|
|
42
|
+
:scope[variant="display"] { --text-family-default: var(--a-display-family); --text-weight-default: var(--a-display-weight); --text-size-default: var(--a-display-size); --text-leading-default: var(--a-display-leading); --text-tracking-default: var(--a-display-tracking); --text-case-default: var(--a-display-case); --text-color-default: var(--a-display-color); }
|
|
43
|
+
:scope[variant="title"] { --text-family-default: var(--a-title-family); --text-weight-default: var(--a-title-weight); --text-size-default: var(--a-title-size); --text-leading-default: var(--a-title-leading); --text-tracking-default: var(--a-title-tracking); --text-case-default: var(--a-title-case); --text-color-default: var(--a-title-color); }
|
|
44
|
+
:scope[variant="heading"] { --text-family-default: var(--a-heading-family); --text-weight-default: var(--a-heading-weight); --text-size-default: var(--a-heading-size); --text-leading-default: var(--a-heading-leading); --text-tracking-default: var(--a-heading-tracking); --text-case-default: var(--a-heading-case); --text-color-default: var(--a-heading-color); }
|
|
45
|
+
:scope[variant="section"] { --text-family-default: var(--a-section-family); --text-weight-default: var(--a-section-weight); --text-size-default: var(--a-section-size); --text-leading-default: var(--a-section-leading); --text-tracking-default: var(--a-section-tracking); --text-case-default: var(--a-section-case); --text-color-default: var(--a-section-color); }
|
|
46
|
+
:scope[variant="caption"] { --text-family-default: var(--a-caption-family); --text-weight-default: var(--a-caption-weight); --text-size-default: var(--a-caption-size); --text-leading-default: var(--a-caption-leading); --text-tracking-default: var(--a-caption-tracking); --text-case-default: var(--a-caption-case); --text-color-default: var(--a-caption-color); }
|
|
47
|
+
:scope[variant="label"] { --text-family-default: var(--a-label-family); --text-weight-default: var(--a-label-weight); --text-size-default: var(--a-label-size); --text-leading-default: var(--a-label-leading); --text-tracking-default: var(--a-label-tracking); --text-case-default: var(--a-label-case); --text-color-default: var(--a-label-color); }
|
|
48
|
+
:scope[variant="kicker"] { --text-family-default: var(--a-kicker-family); --text-weight-default: var(--a-kicker-weight); --text-size-default: var(--a-kicker-size); --text-leading-default: var(--a-kicker-leading); --text-tracking-default: var(--a-kicker-tracking); --text-case-default: uppercase; --text-color-default: var(--a-kicker-color); }
|
|
49
|
+
:scope[variant="code"] { --text-family-default: var(--a-code-family); --text-weight-default: var(--a-code-weight); --text-size-default: var(--a-code-size); --text-leading-default: var(--a-code-leading); --text-tracking-default: var(--a-code-tracking); --text-case-default: var(--a-code-case); --text-color-default: var(--a-code-color); }
|
|
50
50
|
|
|
51
51
|
/* §210 (v0.5.7, FEEDBACK-17 §1): three token-backed variants whose
|
|
52
52
|
`--a-<role>-{family,weight,leading,tracking,case,color,size}` tokens
|
|
@@ -57,9 +57,9 @@
|
|
|
57
57
|
this batch: their tokens don't ship anywhere (verified in this same
|
|
58
58
|
arc), so the enum entries are retired from text.yaml / text.d.ts /
|
|
59
59
|
text.a2ui.json. */
|
|
60
|
-
:scope[variant="subsection"] { --text-family: var(--a-subsection-family); --text-weight: var(--a-subsection-weight); --text-size: var(--a-subsection-size); --text-leading: var(--a-subsection-leading); --text-tracking: var(--a-subsection-tracking); --text-case: var(--a-subsection-case); --text-color: var(--a-subsection-color); }
|
|
61
|
-
:scope[variant="deck"] { --text-family: var(--a-deck-family); --text-weight: var(--a-deck-weight); --text-size: var(--a-deck-size); --text-leading: var(--a-deck-leading); --text-tracking: var(--a-deck-tracking); --text-case: var(--a-deck-case); --text-color: var(--a-deck-color); }
|
|
62
|
-
:scope[variant="metric"] { --text-family: var(--a-metric-family); --text-weight: var(--a-metric-weight); --text-size: var(--a-metric-size); --text-leading: var(--a-metric-leading); --text-tracking: var(--a-metric-tracking); --text-case: var(--a-metric-case); --text-color: var(--a-metric-color); }
|
|
60
|
+
:scope[variant="subsection"] { --text-family-default: var(--a-subsection-family); --text-weight-default: var(--a-subsection-weight); --text-size-default: var(--a-subsection-size); --text-leading-default: var(--a-subsection-leading); --text-tracking-default: var(--a-subsection-tracking); --text-case-default: var(--a-subsection-case); --text-color-default: var(--a-subsection-color); }
|
|
61
|
+
:scope[variant="deck"] { --text-family-default: var(--a-deck-family); --text-weight-default: var(--a-deck-weight); --text-size-default: var(--a-deck-size); --text-leading-default: var(--a-deck-leading); --text-tracking-default: var(--a-deck-tracking); --text-case-default: var(--a-deck-case); --text-color-default: var(--a-deck-color); }
|
|
62
|
+
:scope[variant="metric"] { --text-family-default: var(--a-metric-family); --text-weight-default: var(--a-metric-weight); --text-size-default: var(--a-metric-size); --text-leading-default: var(--a-metric-leading); --text-tracking-default: var(--a-metric-tracking); --text-case-default: var(--a-metric-case); --text-color-default: var(--a-metric-color); }
|
|
63
63
|
|
|
64
64
|
/* ── v0.6.18 (FB-10) — finer-control overrides on top of `variant` ──
|
|
65
65
|
The skill always documented an overlay API (color="subtle",
|
|
@@ -72,25 +72,25 @@
|
|
|
72
72
|
with an unknown color = no-op (variant color wins). */
|
|
73
73
|
|
|
74
74
|
/* size — sm | md | lg (md is the body default ~15-16px) */
|
|
75
|
-
:scope[size="sm"] { --text-size: var(--a-body-sm); }
|
|
76
|
-
:scope[size="md"] { --text-size: var(--a-body-md); }
|
|
77
|
-
:scope[size="lg"] { --text-size: var(--a-body-lg); }
|
|
75
|
+
:scope[size="sm"] { --text-size-default: var(--a-body-sm); }
|
|
76
|
+
:scope[size="md"] { --text-size-default: var(--a-body-md); }
|
|
77
|
+
:scope[size="lg"] { --text-size-default: var(--a-body-lg); }
|
|
78
78
|
|
|
79
79
|
/* color — default | subtle | strong | accent | danger | success | warning
|
|
80
80
|
(no value = variant default; "default" is an explicit reset). */
|
|
81
|
-
:scope[color="default"] { --text-color: var(--a-fg); }
|
|
82
|
-
:scope[color="subtle"] { --text-color: var(--a-fg-muted); }
|
|
83
|
-
:scope[color="strong"] { --text-color: var(--a-fg-strong); }
|
|
84
|
-
:scope[color="accent"] { --text-color: var(--a-accent); }
|
|
85
|
-
:scope[color="danger"] { --text-color: var(--a-danger-bg); }
|
|
86
|
-
:scope[color="success"] { --text-color: var(--a-success-bg); }
|
|
87
|
-
:scope[color="warning"] { --text-color: var(--a-warning-bg); }
|
|
81
|
+
:scope[color="default"] { --text-color-default: var(--a-fg); }
|
|
82
|
+
:scope[color="subtle"] { --text-color-default: var(--a-fg-muted); }
|
|
83
|
+
:scope[color="strong"] { --text-color-default: var(--a-fg-strong); }
|
|
84
|
+
:scope[color="accent"] { --text-color-default: var(--a-accent); }
|
|
85
|
+
:scope[color="danger"] { --text-color-default: var(--a-danger-bg); }
|
|
86
|
+
:scope[color="success"] { --text-color-default: var(--a-success-bg); }
|
|
87
|
+
:scope[color="warning"] { --text-color-default: var(--a-warning-bg); }
|
|
88
88
|
|
|
89
89
|
/* weight — regular | medium | semibold | bold */
|
|
90
|
-
:scope[weight="regular"] { --text-weight: var(--a-weight); }
|
|
91
|
-
:scope[weight="medium"] { --text-weight: var(--a-weight-medium); }
|
|
92
|
-
:scope[weight="semibold"] { --text-weight: var(--a-weight-semibold); }
|
|
93
|
-
:scope[weight="bold"] { --text-weight: var(--a-weight-bold); }
|
|
90
|
+
:scope[weight="regular"] { --text-weight-default: var(--a-weight); }
|
|
91
|
+
:scope[weight="medium"] { --text-weight-default: var(--a-weight-medium); }
|
|
92
|
+
:scope[weight="semibold"] { --text-weight-default: var(--a-weight-semibold); }
|
|
93
|
+
:scope[weight="bold"] { --text-weight-default: var(--a-weight-bold); }
|
|
94
94
|
|
|
95
95
|
/* text-align — start | center | end | justify */
|
|
96
96
|
:scope[text-align="start"] { text-align: start; }
|