@adia-ai/web-components 0.6.33 → 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 +22 -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 +28 -28
- 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/table.css +162 -162
- 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/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
|
@@ -5,51 +5,51 @@
|
|
|
5
5
|
───────────────────────────────────────────── */
|
|
6
6
|
:where(:scope) {
|
|
7
7
|
/* Layout */
|
|
8
|
-
--pipeline-status-gap: var(--a-space-1);
|
|
9
|
-
--pipeline-status-column-gap: var(--a-space-1);
|
|
10
|
-
--pipeline-status-py: var(--a-space-2);
|
|
11
|
-
--pipeline-status-px: var(--a-space-2);
|
|
12
|
-
--pipeline-status-current-min-h: 1.5em;
|
|
13
|
-
--pipeline-status-history-pt: var(--a-space-1);
|
|
14
|
-
--pipeline-status-history-pad-y: var(--a-space-0);
|
|
15
|
-
--pipeline-status-log-pt: var(--a-space-1);
|
|
16
|
-
--pipeline-status-log-gap: var(--a-space-0);
|
|
8
|
+
--pipeline-status-gap-default: var(--a-space-1);
|
|
9
|
+
--pipeline-status-column-gap-default: var(--a-space-1);
|
|
10
|
+
--pipeline-status-py-default: var(--a-space-2);
|
|
11
|
+
--pipeline-status-px-default: var(--a-space-2);
|
|
12
|
+
--pipeline-status-current-min-h-default: 1.5em;
|
|
13
|
+
--pipeline-status-history-pt-default: var(--a-space-1);
|
|
14
|
+
--pipeline-status-history-pad-y-default: var(--a-space-0);
|
|
15
|
+
--pipeline-status-log-pt-default: var(--a-space-1);
|
|
16
|
+
--pipeline-status-log-gap-default: var(--a-space-0);
|
|
17
17
|
|
|
18
18
|
/* Dot sizing (aliased to spacing tokens to avoid raw px ≥ 3) */
|
|
19
|
-
--pipeline-status-dot-size: var(--a-space-2); /* 8px at d=1 */
|
|
20
|
-
--pipeline-status-log-dot-size: var(--a-space-1-5); /* 6px at d=1 */
|
|
19
|
+
--pipeline-status-dot-size-default: var(--a-space-2); /* 8px at d=1 */
|
|
20
|
+
--pipeline-status-log-dot-size-default: var(--a-space-1-5); /* 6px at d=1 */
|
|
21
21
|
|
|
22
22
|
/* Typography */
|
|
23
|
-
--pipeline-status-font-family: var(--a-font-family);
|
|
24
|
-
--pipeline-status-font-size: var(--a-ui-sm);
|
|
25
|
-
--pipeline-status-history-size: var(--a-ui-tiny);
|
|
26
|
-
--pipeline-status-log-size: var(--a-ui-tiny);
|
|
27
|
-
--pipeline-status-label-weight: var(--a-weight-medium);
|
|
23
|
+
--pipeline-status-font-family-default: var(--a-font-family);
|
|
24
|
+
--pipeline-status-font-size-default: var(--a-ui-sm);
|
|
25
|
+
--pipeline-status-history-size-default: var(--a-ui-tiny);
|
|
26
|
+
--pipeline-status-log-size-default: var(--a-ui-tiny);
|
|
27
|
+
--pipeline-status-label-weight-default: var(--a-weight-medium);
|
|
28
28
|
|
|
29
29
|
/* Colors — keep aliases referenced via semantic tokens */
|
|
30
|
-
--pipeline-status-fg: var(--a-fg-subtle);
|
|
31
|
-
--pipeline-status-label-fg: var(--a-fg);
|
|
32
|
-
--pipeline-status-msg-fg: var(--a-fg-subtle);
|
|
33
|
-
--pipeline-status-history-fg: var(--a-fg-subtle);
|
|
34
|
-
--pipeline-status-log-fg: var(--a-fg-subtle);
|
|
30
|
+
--pipeline-status-fg-default: var(--a-fg-subtle);
|
|
31
|
+
--pipeline-status-label-fg-default: var(--a-fg);
|
|
32
|
+
--pipeline-status-msg-fg-default: var(--a-fg-subtle);
|
|
33
|
+
--pipeline-status-history-fg-default: var(--a-fg-subtle);
|
|
34
|
+
--pipeline-status-log-fg-default: var(--a-fg-subtle);
|
|
35
35
|
|
|
36
|
-
--pipeline-status-dot-bg: var(--a-border);
|
|
37
|
-
--pipeline-status-dot-bg-active: var(--a-accent);
|
|
38
|
-
--pipeline-status-dot-bg-complete: var(--a-success-strong);
|
|
36
|
+
--pipeline-status-dot-bg-default: var(--a-border);
|
|
37
|
+
--pipeline-status-dot-bg-active-default: var(--a-accent);
|
|
38
|
+
--pipeline-status-dot-bg-complete-default: var(--a-success-strong);
|
|
39
39
|
|
|
40
|
-
--pipeline-status-history-border: var(--a-border-subtle);
|
|
41
|
-
--pipeline-status-border-thin: 1px;
|
|
40
|
+
--pipeline-status-history-border-default: var(--a-border-subtle);
|
|
41
|
+
--pipeline-status-border-thin-default: 1px;
|
|
42
42
|
|
|
43
43
|
/* Motion */
|
|
44
|
-
--pipeline-status-duration: var(--a-duration);
|
|
45
|
-
--pipeline-status-easing: var(--a-easing);
|
|
44
|
+
--pipeline-status-duration-default: var(--a-duration);
|
|
45
|
+
--pipeline-status-easing-default: var(--a-easing);
|
|
46
46
|
/* Infinite-pulse durations don't map to motion scale */
|
|
47
|
-
--pipeline-status-pulse-duration: 1.2s;
|
|
48
|
-
--pipeline-status-pulse-easing: ease-in-out;
|
|
47
|
+
--pipeline-status-pulse-duration-default: 1.2s;
|
|
48
|
+
--pipeline-status-pulse-easing-default: ease-in-out;
|
|
49
49
|
|
|
50
50
|
/* Variant targets */
|
|
51
|
-
--pipeline-status-complete-fg: var(--a-success-strong);
|
|
52
|
-
--pipeline-status-complete-border: var(--a-success-strong);
|
|
51
|
+
--pipeline-status-complete-fg-default: var(--a-success-strong);
|
|
52
|
+
--pipeline-status-complete-border-default: var(--a-success-strong);
|
|
53
53
|
}
|
|
54
54
|
|
|
55
55
|
/* ─────────────────────────────────────────────
|
|
@@ -57,47 +57,47 @@
|
|
|
57
57
|
───────────────────────────────────────────── */
|
|
58
58
|
:scope {
|
|
59
59
|
display: block;
|
|
60
|
-
font-family: var(--pipeline-status-font-family);
|
|
61
|
-
font-size: var(--pipeline-status-font-size);
|
|
62
|
-
color: var(--pipeline-status-fg);
|
|
60
|
+
font-family: var(--pipeline-status-font-family, var(--pipeline-status-font-family-default));
|
|
61
|
+
font-size: var(--pipeline-status-font-size, var(--pipeline-status-font-size-default));
|
|
62
|
+
color: var(--pipeline-status-fg, var(--pipeline-status-fg-default));
|
|
63
63
|
}
|
|
64
64
|
|
|
65
65
|
[data-pipeline-status] {
|
|
66
66
|
display: flex;
|
|
67
67
|
flex-direction: column;
|
|
68
|
-
gap: var(--pipeline-status-gap);
|
|
69
|
-
padding: var(--pipeline-status-py) var(--pipeline-status-px);
|
|
68
|
+
gap: var(--pipeline-status-gap, var(--pipeline-status-gap-default));
|
|
69
|
+
padding: var(--pipeline-status-py, var(--pipeline-status-py-default)) var(--pipeline-status-px, var(--pipeline-status-px-default));
|
|
70
70
|
}
|
|
71
71
|
|
|
72
72
|
/* Current stage */
|
|
73
73
|
[data-pipeline-current] {
|
|
74
74
|
display: flex;
|
|
75
75
|
align-items: center;
|
|
76
|
-
gap: var(--pipeline-status-column-gap);
|
|
77
|
-
min-height: var(--pipeline-status-current-min-h);
|
|
76
|
+
gap: var(--pipeline-status-column-gap, var(--pipeline-status-column-gap-default));
|
|
77
|
+
min-height: var(--pipeline-status-current-min-h, var(--pipeline-status-current-min-h-default));
|
|
78
78
|
}
|
|
79
79
|
|
|
80
80
|
[data-pipeline-label] {
|
|
81
|
-
font-weight: var(--pipeline-status-label-weight);
|
|
82
|
-
color: var(--pipeline-status-label-fg);
|
|
81
|
+
font-weight: var(--pipeline-status-label-weight, var(--pipeline-status-label-weight-default));
|
|
82
|
+
color: var(--pipeline-status-label-fg, var(--pipeline-status-label-fg-default));
|
|
83
83
|
}
|
|
84
84
|
|
|
85
85
|
[data-pipeline-msg] {
|
|
86
|
-
color: var(--pipeline-status-msg-fg);
|
|
86
|
+
color: var(--pipeline-status-msg-fg, var(--pipeline-status-msg-fg-default));
|
|
87
87
|
}
|
|
88
88
|
|
|
89
89
|
/* Dot indicator */
|
|
90
90
|
[data-pipeline-dot] {
|
|
91
91
|
flex-shrink: 0;
|
|
92
|
-
width: var(--pipeline-status-dot-size);
|
|
93
|
-
height: var(--pipeline-status-dot-size);
|
|
92
|
+
width: var(--pipeline-status-dot-size, var(--pipeline-status-dot-size-default));
|
|
93
|
+
height: var(--pipeline-status-dot-size, var(--pipeline-status-dot-size-default));
|
|
94
94
|
border-radius: 50%;
|
|
95
|
-
background: var(--pipeline-status-dot-bg);
|
|
96
|
-
transition: background var(--pipeline-status-duration) var(--pipeline-status-easing);
|
|
95
|
+
background: var(--pipeline-status-dot-bg, var(--pipeline-status-dot-bg-default));
|
|
96
|
+
transition: background var(--pipeline-status-duration, var(--pipeline-status-duration-default)) var(--pipeline-status-easing, var(--pipeline-status-easing-default));
|
|
97
97
|
}
|
|
98
98
|
|
|
99
99
|
[data-pipeline-dot="active"] {
|
|
100
|
-
animation: pipeline-pulse var(--pipeline-status-pulse-duration) var(--pipeline-status-pulse-easing) infinite;
|
|
100
|
+
animation: pipeline-pulse var(--pipeline-status-pulse-duration, var(--pipeline-status-pulse-duration-default)) var(--pipeline-status-pulse-easing, var(--pipeline-status-pulse-easing-default)) infinite;
|
|
101
101
|
}
|
|
102
102
|
|
|
103
103
|
[data-pipeline-dot="complete"] {
|
|
@@ -111,14 +111,14 @@
|
|
|
111
111
|
|
|
112
112
|
/* Complete state — override tokens only */
|
|
113
113
|
:scope[status="completed"] {
|
|
114
|
-
--pipeline-status-label-fg: var(--pipeline-status-complete-fg);
|
|
115
|
-
--pipeline-status-history-border: var(--pipeline-status-complete-border);
|
|
114
|
+
--pipeline-status-label-fg-default: var(--pipeline-status-complete-fg, var(--pipeline-status-complete-fg-default));
|
|
115
|
+
--pipeline-status-history-border-default: var(--pipeline-status-complete-border, var(--pipeline-status-complete-border-default));
|
|
116
116
|
}
|
|
117
117
|
|
|
118
118
|
/* History (expandable) */
|
|
119
119
|
[data-pipeline-history] {
|
|
120
|
-
border-top: var(--pipeline-status-border-thin) solid var(--pipeline-status-history-border);
|
|
121
|
-
padding-top: var(--pipeline-status-history-pt);
|
|
120
|
+
border-top: var(--pipeline-status-border-thin, var(--pipeline-status-border-thin-default)) solid var(--pipeline-status-history-border, var(--pipeline-status-history-border-default));
|
|
121
|
+
padding-top: var(--pipeline-status-history-pt, var(--pipeline-status-history-pt-default));
|
|
122
122
|
}
|
|
123
123
|
|
|
124
124
|
[data-pipeline-history][hidden] {
|
|
@@ -127,19 +127,19 @@
|
|
|
127
127
|
|
|
128
128
|
[data-pipeline-history] summary {
|
|
129
129
|
cursor: pointer;
|
|
130
|
-
font-size: var(--pipeline-status-history-size);
|
|
131
|
-
color: var(--pipeline-status-history-fg);
|
|
130
|
+
font-size: var(--pipeline-status-history-size, var(--pipeline-status-history-size-default));
|
|
131
|
+
color: var(--pipeline-status-history-fg, var(--pipeline-status-history-fg-default));
|
|
132
132
|
user-select: none;
|
|
133
|
-
padding: var(--pipeline-status-history-pad-y) var(--a-space-1);
|
|
133
|
+
padding: var(--pipeline-status-history-pad-y, var(--pipeline-status-history-pad-y-default)) var(--a-space-1);
|
|
134
134
|
margin-inline: calc(var(--a-space-1) * -1);
|
|
135
135
|
border-radius: var(--a-radius-sm);
|
|
136
|
-
transition: background var(--pipeline-status-duration) var(--pipeline-status-easing),
|
|
137
|
-
color var(--pipeline-status-duration) var(--pipeline-status-easing);
|
|
136
|
+
transition: background var(--pipeline-status-duration, var(--pipeline-status-duration-default)) var(--pipeline-status-easing, var(--pipeline-status-easing-default)),
|
|
137
|
+
color var(--pipeline-status-duration, var(--pipeline-status-duration-default)) var(--pipeline-status-easing, var(--pipeline-status-easing-default));
|
|
138
138
|
}
|
|
139
139
|
|
|
140
140
|
[data-pipeline-history] summary:hover {
|
|
141
141
|
background: var(--a-bg-subtle);
|
|
142
|
-
color: var(--pipeline-status-label-fg);
|
|
142
|
+
color: var(--pipeline-status-label-fg, var(--pipeline-status-label-fg-default));
|
|
143
143
|
}
|
|
144
144
|
|
|
145
145
|
[data-pipeline-history] summary:focus-visible {
|
|
@@ -148,29 +148,29 @@
|
|
|
148
148
|
}
|
|
149
149
|
|
|
150
150
|
[data-pipeline-history] summary::marker {
|
|
151
|
-
color: var(--pipeline-status-history-fg);
|
|
151
|
+
color: var(--pipeline-status-history-fg, var(--pipeline-status-history-fg-default));
|
|
152
152
|
}
|
|
153
153
|
|
|
154
154
|
/* Log list */
|
|
155
155
|
[data-pipeline-log] {
|
|
156
156
|
list-style: none;
|
|
157
157
|
margin: 0;
|
|
158
|
-
padding: var(--pipeline-status-log-pt) 0 0 0;
|
|
158
|
+
padding: var(--pipeline-status-log-pt, var(--pipeline-status-log-pt-default)) 0 0 0;
|
|
159
159
|
display: flex;
|
|
160
160
|
flex-direction: column;
|
|
161
|
-
gap: var(--pipeline-status-log-gap);
|
|
161
|
+
gap: var(--pipeline-status-log-gap, var(--pipeline-status-log-gap-default));
|
|
162
162
|
}
|
|
163
163
|
|
|
164
164
|
[data-pipeline-log] li {
|
|
165
165
|
display: flex;
|
|
166
166
|
align-items: center;
|
|
167
|
-
gap: var(--pipeline-status-column-gap);
|
|
168
|
-
font-size: var(--pipeline-status-log-size);
|
|
169
|
-
color: var(--pipeline-status-log-fg);
|
|
167
|
+
gap: var(--pipeline-status-column-gap, var(--pipeline-status-column-gap-default));
|
|
168
|
+
font-size: var(--pipeline-status-log-size, var(--pipeline-status-log-size-default));
|
|
169
|
+
color: var(--pipeline-status-log-fg, var(--pipeline-status-log-fg-default));
|
|
170
170
|
}
|
|
171
171
|
|
|
172
172
|
[data-pipeline-log] [data-pipeline-dot] {
|
|
173
|
-
width: var(--pipeline-status-log-dot-size);
|
|
174
|
-
height: var(--pipeline-status-log-dot-size);
|
|
173
|
+
width: var(--pipeline-status-log-dot-size, var(--pipeline-status-log-dot-size-default));
|
|
174
|
+
height: var(--pipeline-status-log-dot-size, var(--pipeline-status-log-dot-size-default));
|
|
175
175
|
}
|
|
176
176
|
}
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
@scope (popover-ui) {
|
|
2
2
|
:where(:scope) {
|
|
3
3
|
/* ── Layout ── */
|
|
4
|
-
--popover-px: var(--a-space-3);
|
|
5
|
-
--popover-py: var(--a-space-2);
|
|
6
|
-
--popover-radius: var(--a-radius-lg);
|
|
4
|
+
--popover-px-default: var(--a-space-3);
|
|
5
|
+
--popover-py-default: var(--a-space-2);
|
|
6
|
+
--popover-radius-default: var(--a-radius-lg);
|
|
7
7
|
|
|
8
8
|
/* ── Colors ── */
|
|
9
|
-
--popover-bg: var(--a-bg-subtle);
|
|
10
|
-
--popover-border: var(--a-border-subtle);
|
|
11
|
-
--popover-shadow: var(--a-shadow-lg);
|
|
12
|
-
--popover-fg: var(--a-fg);
|
|
9
|
+
--popover-bg-default: var(--a-bg-subtle);
|
|
10
|
+
--popover-border-default: var(--a-border-subtle);
|
|
11
|
+
--popover-shadow-default: var(--a-shadow-lg);
|
|
12
|
+
--popover-fg-default: var(--a-fg);
|
|
13
13
|
|
|
14
14
|
/* ── Typography ── */
|
|
15
|
-
--popover-font: var(--a-font-family);
|
|
16
|
-
--popover-font-size: var(--a-ui-size);
|
|
15
|
+
--popover-font-default: var(--a-font-family);
|
|
16
|
+
--popover-font-size-default: var(--a-ui-size);
|
|
17
17
|
}
|
|
18
18
|
|
|
19
19
|
:scope {
|
|
@@ -37,14 +37,14 @@
|
|
|
37
37
|
[slot="content"] {
|
|
38
38
|
box-sizing: border-box;
|
|
39
39
|
margin: 0;
|
|
40
|
-
padding: var(--popover-py) var(--popover-px);
|
|
41
|
-
background: var(--popover-bg);
|
|
42
|
-
border: 1px solid var(--popover-border);
|
|
43
|
-
border-radius: var(--popover-radius);
|
|
44
|
-
box-shadow: var(--popover-shadow);
|
|
45
|
-
font-family: var(--popover-font);
|
|
46
|
-
font-size: var(--popover-font-size);
|
|
47
|
-
color: var(--popover-fg);
|
|
40
|
+
padding: var(--popover-py, var(--popover-py-default)) var(--popover-px, var(--popover-px-default));
|
|
41
|
+
background: var(--popover-bg, var(--popover-bg-default));
|
|
42
|
+
border: 1px solid var(--popover-border, var(--popover-border-default));
|
|
43
|
+
border-radius: var(--popover-radius, var(--popover-radius-default));
|
|
44
|
+
box-shadow: var(--popover-shadow, var(--popover-shadow-default));
|
|
45
|
+
font-family: var(--popover-font, var(--popover-font-default));
|
|
46
|
+
font-size: var(--popover-font-size, var(--popover-font-size-default));
|
|
47
|
+
color: var(--popover-fg, var(--popover-fg-default));
|
|
48
48
|
max-height: calc(100vh - 3rem);
|
|
49
49
|
overflow-y: auto;
|
|
50
50
|
/* Fade + lift in on first paint. @starting-style is the initial frame
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
@scope (progress-ui) {
|
|
2
2
|
:where(:scope) {
|
|
3
3
|
/* -- Tokens -- */
|
|
4
|
-
--progress-track: var(--a-bg-muted);
|
|
5
|
-
--progress-fill: var(--a-accent);
|
|
6
|
-
--progress-height: 0.375rem;
|
|
7
|
-
--progress-radius: var(--a-radius-full);
|
|
8
|
-
--progress-duration: var(--a-duration);
|
|
9
|
-
--progress-easing: var(--a-easing);
|
|
4
|
+
--progress-track-default: var(--a-bg-muted);
|
|
5
|
+
--progress-fill-default: var(--a-accent);
|
|
6
|
+
--progress-height-default: 0.375rem;
|
|
7
|
+
--progress-radius-default: var(--a-radius-full);
|
|
8
|
+
--progress-duration-default: var(--a-duration);
|
|
9
|
+
--progress-easing-default: var(--a-easing);
|
|
10
10
|
|
|
11
11
|
/* -- Indeterminate motion -- */
|
|
12
|
-
--progress-shimmer-duration: 1.5s;
|
|
13
|
-
--progress-shimmer-easing: ease-in-out;
|
|
14
|
-
--progress-spin-duration: 0.6s;
|
|
15
|
-
--progress-spin-easing: linear;
|
|
12
|
+
--progress-shimmer-duration-default: 1.5s;
|
|
13
|
+
--progress-shimmer-easing-default: ease-in-out;
|
|
14
|
+
--progress-spin-duration-default: 0.6s;
|
|
15
|
+
--progress-spin-easing-default: linear;
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
:scope {
|
|
@@ -26,17 +26,17 @@
|
|
|
26
26
|
|
|
27
27
|
[slot="track"] {
|
|
28
28
|
width: 100%;
|
|
29
|
-
height: var(--progress-height);
|
|
30
|
-
border-radius: var(--progress-radius);
|
|
31
|
-
background: var(--progress-track);
|
|
29
|
+
height: var(--progress-height, var(--progress-height-default));
|
|
30
|
+
border-radius: var(--progress-radius, var(--progress-radius-default));
|
|
31
|
+
background: var(--progress-track, var(--progress-track-default));
|
|
32
32
|
overflow: hidden;
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
[slot="fill"] {
|
|
36
36
|
height: 100%;
|
|
37
|
-
border-radius: var(--progress-radius);
|
|
38
|
-
background: var(--progress-fill);
|
|
39
|
-
transition: width var(--progress-duration) var(--progress-easing);
|
|
37
|
+
border-radius: var(--progress-radius, var(--progress-radius-default));
|
|
38
|
+
background: var(--progress-fill, var(--progress-fill-default));
|
|
39
|
+
transition: width var(--progress-duration, var(--progress-duration-default)) var(--progress-easing, var(--progress-easing-default));
|
|
40
40
|
|
|
41
41
|
/* Enter animation: paint the fill at 0 on first frame, then transition
|
|
42
42
|
to the inline width set by JS — so a freshly-mounted determinate bar
|
|
@@ -53,12 +53,12 @@
|
|
|
53
53
|
width: 100% !important;
|
|
54
54
|
background: linear-gradient(
|
|
55
55
|
90deg,
|
|
56
|
-
var(--progress-track) 0%,
|
|
57
|
-
var(--progress-fill) 50%,
|
|
58
|
-
var(--progress-track) 100%
|
|
56
|
+
var(--progress-track, var(--progress-track-default)) 0%,
|
|
57
|
+
var(--progress-fill, var(--progress-fill-default)) 50%,
|
|
58
|
+
var(--progress-track, var(--progress-track-default)) 100%
|
|
59
59
|
);
|
|
60
60
|
background-size: 200% 100%;
|
|
61
|
-
animation: progress-shimmer var(--progress-shimmer-duration) var(--progress-shimmer-easing) infinite;
|
|
61
|
+
animation: progress-shimmer var(--progress-shimmer-duration, var(--progress-shimmer-duration-default)) var(--progress-shimmer-easing, var(--progress-shimmer-easing-default)) infinite;
|
|
62
62
|
}
|
|
63
63
|
|
|
64
64
|
@keyframes progress-shimmer {
|
|
@@ -84,10 +84,10 @@
|
|
|
84
84
|
display: block;
|
|
85
85
|
width: 100%;
|
|
86
86
|
height: 100%;
|
|
87
|
-
border: 2px solid var(--progress-fill);
|
|
87
|
+
border: 2px solid var(--progress-fill, var(--progress-fill-default));
|
|
88
88
|
border-top-color: transparent;
|
|
89
|
-
border-radius: var(--progress-radius);
|
|
90
|
-
animation: progress-spin var(--progress-spin-duration) var(--progress-spin-easing) infinite;
|
|
89
|
+
border-radius: var(--progress-radius, var(--progress-radius-default));
|
|
90
|
+
animation: progress-spin var(--progress-spin-duration, var(--progress-spin-duration-default)) var(--progress-spin-easing, var(--progress-spin-easing-default)) infinite;
|
|
91
91
|
}
|
|
92
92
|
|
|
93
93
|
@keyframes progress-spin {
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
@scope (progress-row-ui) {
|
|
2
2
|
:where(:scope) {
|
|
3
3
|
/* ── Tokens ── */
|
|
4
|
-
--progress-row-gap: var(--a-space-1);
|
|
5
|
-
--progress-row-column-gap: var(--a-space-2);
|
|
6
|
-
--progress-row-label-size: var(--a-ui-size);
|
|
7
|
-
--progress-row-label-fg: var(--a-fg);
|
|
8
|
-
--progress-row-meta-size: var(--a-ui-sm);
|
|
9
|
-
--progress-row-meta-fg: var(--a-fg-muted);
|
|
4
|
+
--progress-row-gap-default: var(--a-space-1);
|
|
5
|
+
--progress-row-column-gap-default: var(--a-space-2);
|
|
6
|
+
--progress-row-label-size-default: var(--a-ui-size);
|
|
7
|
+
--progress-row-label-fg-default: var(--a-fg);
|
|
8
|
+
--progress-row-meta-size-default: var(--a-ui-sm);
|
|
9
|
+
--progress-row-meta-fg-default: var(--a-fg-muted);
|
|
10
10
|
|
|
11
11
|
/* Fill color piped into nested progress-ui via its own token */
|
|
12
|
-
--progress-row-fill-bg: var(--a-accent-bg);
|
|
12
|
+
--progress-row-fill-bg-default: var(--a-accent-bg);
|
|
13
13
|
text-align: start; /* §text-align-reset — blocks inheritance from centered ancestors */
|
|
14
14
|
}
|
|
15
15
|
|
|
@@ -20,15 +20,15 @@
|
|
|
20
20
|
grid-template-areas:
|
|
21
21
|
"label meta"
|
|
22
22
|
"bar bar";
|
|
23
|
-
column-gap: var(--progress-row-column-gap);
|
|
24
|
-
row-gap: var(--progress-row-gap);
|
|
23
|
+
column-gap: var(--progress-row-column-gap, var(--progress-row-column-gap-default));
|
|
24
|
+
row-gap: var(--progress-row-gap, var(--progress-row-gap-default));
|
|
25
25
|
align-items: baseline;
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
[slot="label"] {
|
|
29
29
|
grid-area: label;
|
|
30
|
-
font-size: var(--progress-row-label-size);
|
|
31
|
-
color: var(--progress-row-label-fg);
|
|
30
|
+
font-size: var(--progress-row-label-size, var(--progress-row-label-size-default));
|
|
31
|
+
color: var(--progress-row-label-fg, var(--progress-row-label-fg-default));
|
|
32
32
|
line-height: 1.4;
|
|
33
33
|
min-width: 0;
|
|
34
34
|
overflow: hidden;
|
|
@@ -38,8 +38,8 @@
|
|
|
38
38
|
|
|
39
39
|
[slot="meta"] {
|
|
40
40
|
grid-area: meta;
|
|
41
|
-
font-size: var(--progress-row-meta-size);
|
|
42
|
-
color: var(--progress-row-meta-fg);
|
|
41
|
+
font-size: var(--progress-row-meta-size, var(--progress-row-meta-size-default));
|
|
42
|
+
color: var(--progress-row-meta-fg, var(--progress-row-meta-fg-default));
|
|
43
43
|
font-variant-numeric: tabular-nums;
|
|
44
44
|
justify-self: end;
|
|
45
45
|
line-height: 1.4;
|
|
@@ -48,11 +48,11 @@
|
|
|
48
48
|
progress-ui {
|
|
49
49
|
grid-area: bar;
|
|
50
50
|
/* Pipe our component token into the nested progress component's token */
|
|
51
|
-
--progress-fill-bg: var(--progress-row-fill-bg);
|
|
51
|
+
--progress-fill-bg: var(--progress-row-fill-bg, var(--progress-row-fill-bg-default));
|
|
52
52
|
}
|
|
53
53
|
|
|
54
54
|
/* Variants — remap own tokens only; the nested progress inherits via --progress-row-fill-bg. */
|
|
55
|
-
:scope[variant="success"] { --progress-row-fill-bg: var(--a-success-bg); }
|
|
56
|
-
:scope[variant="warning"] { --progress-row-fill-bg: var(--a-warning-bg); }
|
|
57
|
-
:scope[variant="danger"] { --progress-row-fill-bg: var(--a-danger-bg); }
|
|
55
|
+
:scope[variant="success"] { --progress-row-fill-bg-default: var(--a-success-bg); }
|
|
56
|
+
:scope[variant="warning"] { --progress-row-fill-bg-default: var(--a-warning-bg); }
|
|
57
|
+
:scope[variant="danger"] { --progress-row-fill-bg-default: var(--a-danger-bg); }
|
|
58
58
|
}
|
|
@@ -3,53 +3,53 @@
|
|
|
3
3
|
both fail inside `@scope`. Selectors moved out. See
|
|
4
4
|
docs/BROWSER-COMPAT.md §3a. */
|
|
5
5
|
radio-ui:not([disabled]):hover [slot="dot"] {
|
|
6
|
-
border-color: var(--radio-border-hover);
|
|
7
|
-
background: var(--radio-bg-hover);
|
|
6
|
+
border-color: var(--radio-border-hover, var(--radio-border-hover-default));
|
|
7
|
+
background: var(--radio-bg-hover, var(--radio-bg-hover-default));
|
|
8
8
|
}
|
|
9
9
|
radio-ui[checked]:not([disabled]):hover [slot="dot"] {
|
|
10
|
-
background: var(--radio-bg-checked-hover);
|
|
11
|
-
border-color: var(--radio-bg-checked-hover);
|
|
10
|
+
background: var(--radio-bg-checked-hover, var(--radio-bg-checked-hover-default));
|
|
11
|
+
border-color: var(--radio-bg-checked-hover, var(--radio-bg-checked-hover-default));
|
|
12
12
|
}
|
|
13
13
|
radio-ui[checked] [slot="dot"] {
|
|
14
|
-
background: var(--radio-bg-checked);
|
|
15
|
-
border-color: var(--radio-border-checked);
|
|
14
|
+
background: var(--radio-bg-checked, var(--radio-bg-checked-default));
|
|
15
|
+
border-color: var(--radio-border-checked, var(--radio-border-checked-default));
|
|
16
16
|
}
|
|
17
17
|
radio-ui[checked] [slot="dot"]::after {
|
|
18
|
-
width: calc(var(--radio-size) * 0.6);
|
|
19
|
-
height: calc(var(--radio-size) * 0.6);
|
|
18
|
+
width: calc(var(--radio-size, var(--radio-size-default)) * 0.6);
|
|
19
|
+
height: calc(var(--radio-size, var(--radio-size-default)) * 0.6);
|
|
20
20
|
}
|
|
21
21
|
|
|
22
22
|
@scope (radio-ui) {
|
|
23
23
|
:where(:scope) {
|
|
24
24
|
/* ── Layout ── (size scales with universal [size] attribute via --a-toggle-size) */
|
|
25
|
-
--radio-size: var(--a-toggle-size);
|
|
26
|
-
--radio-gap: var(--a-space-2);
|
|
27
|
-
--radio-radius: var(--a-radius-full);
|
|
25
|
+
--radio-size-default: var(--a-toggle-size);
|
|
26
|
+
--radio-gap-default: var(--a-space-2);
|
|
27
|
+
--radio-radius-default: var(--a-radius-full);
|
|
28
28
|
|
|
29
29
|
/* ── Colors ── */
|
|
30
|
-
--radio-bg: var(--a-ui-bg);
|
|
31
|
-
--radio-border: var(--a-ui-border);
|
|
32
|
-
--radio-border-hover: var(--a-fg-subtle);
|
|
33
|
-
--radio-bg-hover: var(--a-bg-muted);
|
|
30
|
+
--radio-bg-default: var(--a-ui-bg);
|
|
31
|
+
--radio-border-default: var(--a-ui-border);
|
|
32
|
+
--radio-border-hover-default: var(--a-fg-subtle);
|
|
33
|
+
--radio-bg-hover-default: var(--a-bg-muted);
|
|
34
34
|
|
|
35
35
|
/* ── State: checked ── */
|
|
36
|
-
--radio-bg-checked: var(--a-primary);
|
|
37
|
-
--radio-border-checked: var(--a-primary);
|
|
38
|
-
--radio-fg-checked: var(--a-chrome-light);
|
|
39
|
-
--radio-bg-checked-hover: var(--a-primary-hover);
|
|
36
|
+
--radio-bg-checked-default: var(--a-primary);
|
|
37
|
+
--radio-border-checked-default: var(--a-primary);
|
|
38
|
+
--radio-fg-checked-default: var(--a-chrome-light);
|
|
39
|
+
--radio-bg-checked-hover-default: var(--a-primary-hover);
|
|
40
40
|
|
|
41
41
|
/* ── State: disabled ── */
|
|
42
|
-
--radio-fg-disabled: var(--a-ui-text-disabled);
|
|
42
|
+
--radio-fg-disabled-default: var(--a-ui-text-disabled);
|
|
43
43
|
|
|
44
44
|
/* ── State: focus ── */
|
|
45
|
-
--radio-focus-ring: var(--a-focus-ring);
|
|
45
|
+
--radio-focus-ring-default: var(--a-focus-ring);
|
|
46
46
|
|
|
47
47
|
/* ── Typography ── */
|
|
48
|
-
--radio-font-size: var(--a-ui-size);
|
|
48
|
+
--radio-font-size-default: var(--a-ui-size);
|
|
49
49
|
|
|
50
50
|
/* ── Transition ── */
|
|
51
|
-
--radio-duration: var(--a-duration-fast);
|
|
52
|
-
--radio-easing: var(--a-easing);
|
|
51
|
+
--radio-duration-default: var(--a-duration-fast);
|
|
52
|
+
--radio-easing-default: var(--a-easing);
|
|
53
53
|
text-align: start; /* §text-align-reset — blocks inheritance from centered ancestors */
|
|
54
54
|
}
|
|
55
55
|
|
|
@@ -58,28 +58,28 @@ radio-ui[checked] [slot="dot"]::after {
|
|
|
58
58
|
box-sizing: border-box;
|
|
59
59
|
display: inline-flex;
|
|
60
60
|
align-items: center;
|
|
61
|
-
gap: var(--radio-gap);
|
|
61
|
+
gap: var(--radio-gap, var(--radio-gap-default));
|
|
62
62
|
cursor: pointer;
|
|
63
63
|
user-select: none;
|
|
64
|
-
font-size: var(--radio-font-size);
|
|
64
|
+
font-size: var(--radio-font-size, var(--radio-font-size-default));
|
|
65
65
|
outline: none;
|
|
66
66
|
}
|
|
67
|
-
:scope[disabled] { cursor: not-allowed; color: var(--radio-fg-disabled); }
|
|
67
|
+
:scope[disabled] { cursor: not-allowed; color: var(--radio-fg-disabled, var(--radio-fg-disabled-default)); }
|
|
68
68
|
|
|
69
69
|
/* Dot */
|
|
70
70
|
[slot="dot"] {
|
|
71
71
|
flex-shrink: 0;
|
|
72
|
-
width: var(--radio-size);
|
|
73
|
-
height: var(--radio-size);
|
|
74
|
-
border: 1.5px solid var(--radio-border);
|
|
75
|
-
border-radius: var(--radio-radius);
|
|
76
|
-
background: var(--radio-bg);
|
|
72
|
+
width: var(--radio-size, var(--radio-size-default));
|
|
73
|
+
height: var(--radio-size, var(--radio-size-default));
|
|
74
|
+
border: 1.5px solid var(--radio-border, var(--radio-border-default));
|
|
75
|
+
border-radius: var(--radio-radius, var(--radio-radius-default));
|
|
76
|
+
background: var(--radio-bg, var(--radio-bg-default));
|
|
77
77
|
display: inline-flex;
|
|
78
78
|
align-items: center;
|
|
79
79
|
justify-content: center;
|
|
80
80
|
transition:
|
|
81
|
-
background var(--radio-duration) var(--radio-easing),
|
|
82
|
-
border-color var(--radio-duration) var(--radio-easing);
|
|
81
|
+
background var(--radio-duration, var(--radio-duration-default)) var(--radio-easing, var(--radio-easing-default)),
|
|
82
|
+
border-color var(--radio-duration, var(--radio-duration-default)) var(--radio-easing, var(--radio-easing-default));
|
|
83
83
|
}
|
|
84
84
|
|
|
85
85
|
/* Inner dot — scales from 0 to 40% when checked */
|
|
@@ -87,11 +87,11 @@ radio-ui[checked] [slot="dot"]::after {
|
|
|
87
87
|
content: '';
|
|
88
88
|
width: 0;
|
|
89
89
|
height: 0;
|
|
90
|
-
border-radius: var(--radio-radius);
|
|
91
|
-
background: var(--radio-fg-checked);
|
|
90
|
+
border-radius: var(--radio-radius, var(--radio-radius-default));
|
|
91
|
+
background: var(--radio-fg-checked, var(--radio-fg-checked-default));
|
|
92
92
|
transition:
|
|
93
|
-
width var(--radio-duration) var(--radio-easing),
|
|
94
|
-
height var(--radio-duration) var(--radio-easing);
|
|
93
|
+
width var(--radio-duration, var(--radio-duration-default)) var(--radio-easing, var(--radio-easing-default)),
|
|
94
|
+
height var(--radio-duration, var(--radio-duration-default)) var(--radio-easing, var(--radio-easing-default));
|
|
95
95
|
}
|
|
96
96
|
|
|
97
97
|
/* hover + [checked] rules moved outside @scope — see Safari 17.x bug note at top. */
|
|
@@ -100,7 +100,7 @@ radio-ui[checked] [slot="dot"]::after {
|
|
|
100
100
|
:scope[label]::after { content: attr(label); }
|
|
101
101
|
|
|
102
102
|
/* Focus */
|
|
103
|
-
:scope:focus-visible [slot="dot"] { box-shadow: var(--radio-focus-ring); }
|
|
103
|
+
:scope:focus-visible [slot="dot"] { box-shadow: var(--radio-focus-ring, var(--radio-focus-ring-default)); }
|
|
104
104
|
|
|
105
105
|
/* Size handled by universal [size] attribute system. */
|
|
106
106
|
}
|