@adia-ai/web-components 0.7.3 → 0.7.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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 +59 -57
- package/components/agent-reasoning/agent-reasoning.css +54 -54
- package/components/agent-suggestions/agent-suggestions.css +4 -4
- package/components/agent-trace/agent-trace.css +53 -53
- package/components/alert/alert.css +53 -53
- package/components/avatar/avatar.css +27 -27
- package/components/badge/badge.css +56 -53
- package/components/block/block.css +16 -16
- package/components/blockquote/blockquote.css +16 -16
- package/components/breadcrumb/breadcrumb.css +23 -23
- package/components/button/button.css +99 -100
- package/components/calendar-grid/calendar-grid.css +95 -92
- package/components/calendar-picker/calendar-picker.css +141 -139
- package/components/canvas/canvas.css +12 -12
- package/components/card/card.css +83 -83
- package/components/chart/chart.css +218 -218
- 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/combobox.css +64 -62
- package/components/command/command.css +91 -91
- package/components/context-menu/context-menu.css +1 -1
- package/components/date-range-picker/date-range-picker.css +59 -59
- package/components/datetime-picker/datetime-picker.css +25 -25
- 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 +29 -29
- package/components/feed/feed.css +12 -12
- package/components/field/field.css +28 -28
- package/components/field/field.test.js +2 -2
- package/components/fields/fields.css +5 -5
- package/components/grid/grid.a2ui.json +10 -0
- package/components/grid/grid.css +23 -5
- package/components/grid/grid.d.ts +4 -0
- package/components/grid/grid.yaml +13 -0
- package/components/heatmap/heatmap.css +61 -61
- package/components/icon/icon.css +12 -12
- package/components/image/image.css +14 -14
- package/components/inline-edit/inline-edit.css +16 -16
- package/components/inline-message/inline-message.css +16 -16
- package/components/input/input.css +69 -66
- package/components/inspector/inspector.css +6 -6
- package/components/integration-card/integration-card.css +41 -41
- package/components/integration-card/integration-card.test.js +4 -4
- package/components/kbd/kbd.css +47 -40
- package/components/link/link.css +12 -12
- package/components/list/list.css +8 -8
- package/components/list-window/list-window.css +10 -10
- package/components/loading-overlay/loading-overlay.css +17 -18
- package/components/loading-overlay/loading-overlay.test.js +8 -8
- package/components/mark/mark.css +16 -16
- package/components/menu/menu.css +9 -9
- package/components/modal/modal.class.js +5 -9
- package/components/modal/modal.css +43 -43
- package/components/nav/nav.css +40 -40
- package/components/nav-group/nav-group.css +54 -54
- package/components/nav-item/nav-item.css +44 -44
- package/components/noodles/noodles.css +31 -31
- package/components/number-format/number-format.css +4 -4
- package/components/option-card/option-card.css +70 -70
- package/components/otp-input/otp-input.css +29 -29
- package/components/page/page.a2ui.json +1 -1
- package/components/page/page.css +27 -27
- package/components/page/page.d.ts +1 -1
- package/components/page/page.yaml +1 -1
- package/components/pagination/pagination.css +6 -6
- package/components/pane/pane.css +57 -57
- package/components/password-strength/password-strength.css +32 -32
- package/components/pipeline-status/pipeline-status.css +67 -67
- package/components/popover/popover.css +11 -11
- package/components/preview/preview.css +21 -21
- package/components/progress/progress.css +23 -23
- package/components/progress-row/progress-row.css +17 -17
- package/components/qr-code/qr-code.css +4 -4
- package/components/radio/radio.css +39 -39
- package/components/range/range.css +58 -55
- package/components/rating/rating.css +28 -28
- package/components/relative-time/relative-time.css +6 -6
- 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 +29 -24
- package/components/segmented/segmented.css +30 -25
- package/components/select/select.css +95 -93
- package/components/skeleton/skeleton.css +14 -14
- package/components/skip-nav/skip-nav.css +4 -4
- package/components/slider/slider.css +61 -61
- package/components/spinner/spinner.css +40 -40
- package/components/spinner/spinner.test.js +10 -12
- package/components/stack/stack.css +11 -11
- package/components/stat/stat.css +27 -27
- 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.class.js +5 -12
- package/components/swiper/swiper.css +57 -57
- package/components/switch/switch.css +53 -53
- package/components/table/table.css +166 -163
- package/components/table-toolbar/table-toolbar.css +33 -33
- package/components/tabs/tabs.css +54 -51
- package/components/tag/tag.css +74 -71
- package/components/tag/tag.test.js +14 -14
- package/components/tags-input/tags-input.css +51 -49
- package/components/text/text.css +44 -44
- package/components/textarea/textarea.css +49 -46
- package/components/time-picker/time-picker.css +47 -47
- package/components/timeline/timeline.css +54 -54
- package/components/toast/toast.css +58 -58
- package/components/toc/toc.css +28 -28
- package/components/toggle-group/toggle-group.css +9 -6
- package/components/toggle-scheme/toggle-scheme.css +2 -2
- package/components/toolbar/toolbar.css +18 -18
- package/components/tooltip/tooltip.css +2 -2
- package/components/tour/tour.css +4 -4
- package/components/tree/tree.css +37 -37
- package/components/upload/upload.css +49 -49
- package/dist/host.min.css +1 -0
- package/dist/web-components.min.css +1 -1
- package/dist/web-components.min.js +2 -2
- package/package.json +1 -1
- package/styles/foundation/space.css +19 -18
- package/styles/host.css +48 -0
- package/styles/prose.css +187 -173
- package/styles/type/scale.css +6 -0
- package/styles/typography.css +10 -5
- package/styles/verse.css +122 -0
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
@scope (time-picker-ui) {
|
|
2
2
|
:where(:scope) {
|
|
3
3
|
/* ── Tokens ── */
|
|
4
|
-
--time-picker-bg
|
|
5
|
-
--time-picker-fg
|
|
6
|
-
--time-picker-fg-muted
|
|
7
|
-
--time-picker-border
|
|
8
|
-
--time-picker-border-hover
|
|
9
|
-
--time-picker-radius
|
|
10
|
-
--time-picker-height
|
|
11
|
-
--time-picker-px
|
|
12
|
-
--time-picker-py
|
|
13
|
-
--time-picker-gap
|
|
14
|
-
--time-picker-font-size
|
|
15
|
-
|
|
16
|
-
--time-picker-segment-radius
|
|
17
|
-
--time-picker-segment-px
|
|
18
|
-
--time-picker-segment-bg-focus
|
|
19
|
-
--time-picker-segment-fg-focus
|
|
20
|
-
|
|
21
|
-
--time-picker-separator-fg
|
|
22
|
-
|
|
23
|
-
--time-picker-focus-ring
|
|
24
|
-
--time-picker-focus-ring-invalid
|
|
25
|
-
|
|
26
|
-
--time-picker-duration
|
|
27
|
-
--time-picker-easing
|
|
4
|
+
--time-picker-bg: var(--a-ui-bg);
|
|
5
|
+
--time-picker-fg: var(--a-ui-text);
|
|
6
|
+
--time-picker-fg-muted: var(--a-ui-text-placeholder);
|
|
7
|
+
--time-picker-border: var(--a-ui-border);
|
|
8
|
+
--time-picker-border-hover: var(--a-ui-border-hover);
|
|
9
|
+
--time-picker-radius: var(--a-radius);
|
|
10
|
+
--time-picker-height: var(--a-size);
|
|
11
|
+
--time-picker-px: var(--a-ui-px);
|
|
12
|
+
--time-picker-py: 0;
|
|
13
|
+
--time-picker-gap: var(--a-space-1);
|
|
14
|
+
--time-picker-font-size: var(--a-ui-size);
|
|
15
|
+
|
|
16
|
+
--time-picker-segment-radius: var(--a-radius-sm);
|
|
17
|
+
--time-picker-segment-px: var(--a-space-1);
|
|
18
|
+
--time-picker-segment-bg-focus: var(--a-accent);
|
|
19
|
+
--time-picker-segment-fg-focus: var(--a-accent-fg);
|
|
20
|
+
|
|
21
|
+
--time-picker-separator-fg: var(--a-fg-muted);
|
|
22
|
+
|
|
23
|
+
--time-picker-focus-ring: var(--a-focus-ring);
|
|
24
|
+
--time-picker-focus-ring-invalid: var(--a-focus-ring-invalid);
|
|
25
|
+
|
|
26
|
+
--time-picker-duration: var(--a-duration-fast);
|
|
27
|
+
--time-picker-easing: var(--a-easing);
|
|
28
28
|
}
|
|
29
29
|
|
|
30
30
|
:scope {
|
|
@@ -32,22 +32,22 @@
|
|
|
32
32
|
box-sizing: border-box;
|
|
33
33
|
display: flex;
|
|
34
34
|
align-items: center;
|
|
35
|
-
gap: var(--time-picker-gap
|
|
36
|
-
min-height: var(--time-picker-height
|
|
37
|
-
padding: var(--time-picker-py
|
|
38
|
-
background: var(--time-picker-bg
|
|
39
|
-
color: var(--time-picker-fg
|
|
40
|
-
border: 1px solid var(--time-picker-border
|
|
41
|
-
border-radius: var(--time-picker-radius
|
|
42
|
-
font-family:
|
|
43
|
-
font-size: var(--time-picker-font-size
|
|
35
|
+
gap: var(--time-picker-gap);
|
|
36
|
+
min-height: var(--time-picker-height);
|
|
37
|
+
padding: var(--time-picker-py) var(--time-picker-px);
|
|
38
|
+
background: var(--time-picker-bg);
|
|
39
|
+
color: var(--time-picker-fg);
|
|
40
|
+
border: 1px solid var(--time-picker-border);
|
|
41
|
+
border-radius: var(--time-picker-radius);
|
|
42
|
+
font-family: var(--time-picker-font-family, var(--a-font-family-ui));
|
|
43
|
+
font-size: var(--time-picker-font-size);
|
|
44
44
|
font-variant-numeric: tabular-nums;
|
|
45
45
|
line-height: 1.4;
|
|
46
46
|
cursor: text;
|
|
47
47
|
transition:
|
|
48
|
-
border-color var(--time-picker-duration
|
|
49
|
-
background var(--time-picker-duration
|
|
50
|
-
box-shadow var(--time-picker-duration
|
|
48
|
+
border-color var(--time-picker-duration) var(--time-picker-easing),
|
|
49
|
+
background var(--time-picker-duration) var(--time-picker-easing),
|
|
50
|
+
box-shadow var(--time-picker-duration) var(--time-picker-easing);
|
|
51
51
|
}
|
|
52
52
|
|
|
53
53
|
/* Display convention (ADR-0037): block-level by default; [inline] opts back to inline-level. */
|
|
@@ -57,17 +57,17 @@
|
|
|
57
57
|
:scope [data-segment] {
|
|
58
58
|
display: inline-block;
|
|
59
59
|
min-width: 2ch;
|
|
60
|
-
padding: 0 var(--time-picker-segment-px
|
|
60
|
+
padding: 0 var(--time-picker-segment-px);
|
|
61
61
|
text-align: center;
|
|
62
|
-
border-radius: var(--time-picker-segment-radius
|
|
62
|
+
border-radius: var(--time-picker-segment-radius);
|
|
63
63
|
color: inherit;
|
|
64
64
|
background: transparent;
|
|
65
65
|
outline: none;
|
|
66
66
|
caret-color: transparent;
|
|
67
67
|
cursor: text;
|
|
68
68
|
transition:
|
|
69
|
-
background var(--time-picker-duration
|
|
70
|
-
color var(--time-picker-duration
|
|
69
|
+
background var(--time-picker-duration) var(--time-picker-easing),
|
|
70
|
+
color var(--time-picker-duration) var(--time-picker-easing);
|
|
71
71
|
}
|
|
72
72
|
|
|
73
73
|
/* Meridiem is a touch wider since it carries two letters (AM/PM). */
|
|
@@ -79,20 +79,20 @@
|
|
|
79
79
|
/* ── State: empty (placeholder via :empty) ── */
|
|
80
80
|
:scope [data-segment]:empty::before {
|
|
81
81
|
content: '--';
|
|
82
|
-
color: var(--time-picker-fg-muted
|
|
82
|
+
color: var(--time-picker-fg-muted);
|
|
83
83
|
}
|
|
84
84
|
|
|
85
85
|
/* ── State: focused segment ── */
|
|
86
86
|
:scope [data-segment]:focus,
|
|
87
87
|
:scope [data-segment]:focus-visible {
|
|
88
|
-
background: var(--time-picker-segment-bg-focus
|
|
89
|
-
color: var(--time-picker-segment-fg-focus
|
|
88
|
+
background: var(--time-picker-segment-bg-focus);
|
|
89
|
+
color: var(--time-picker-segment-fg-focus);
|
|
90
90
|
outline: none;
|
|
91
91
|
}
|
|
92
92
|
|
|
93
93
|
/* ── Separator ── */
|
|
94
94
|
:scope [data-separator] {
|
|
95
|
-
color: var(--time-picker-separator-fg
|
|
95
|
+
color: var(--time-picker-separator-fg);
|
|
96
96
|
pointer-events: none;
|
|
97
97
|
user-select: none;
|
|
98
98
|
}
|
|
@@ -100,18 +100,18 @@
|
|
|
100
100
|
|
|
101
101
|
/* hover rules — outside @scope (matches input-ui's Safari 17.x workaround). */
|
|
102
102
|
time-picker-ui:not([disabled]):hover {
|
|
103
|
-
border-color: var(--time-picker-border-hover
|
|
103
|
+
border-color: var(--time-picker-border-hover);
|
|
104
104
|
}
|
|
105
105
|
|
|
106
106
|
/* Focus ring on the host when any segment is focused.
|
|
107
107
|
Canonical L3 ring; consumed via --time-picker-focus-ring (aliases --a-focus-ring). */
|
|
108
108
|
time-picker-ui:not([disabled]):focus-within {
|
|
109
|
-
box-shadow: var(--time-picker-focus-ring
|
|
109
|
+
box-shadow: var(--time-picker-focus-ring);
|
|
110
110
|
}
|
|
111
111
|
|
|
112
112
|
time-picker-ui[aria-invalid="true"]:not([disabled]):focus-within,
|
|
113
113
|
time-picker-ui[error]:not([disabled]):focus-within {
|
|
114
|
-
box-shadow: var(--time-picker-focus-ring-invalid
|
|
114
|
+
box-shadow: var(--time-picker-focus-ring-invalid);
|
|
115
115
|
}
|
|
116
116
|
|
|
117
117
|
/* Disabled / readonly affordance */
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
TIMELINE-N + TIMELINE-ITEM-N
|
|
3
3
|
|
|
4
4
|
Grid-based layout with three columns:
|
|
5
|
-
[marker] var(--timeline-marker-w
|
|
5
|
+
[marker] var(--timeline-marker-w) [content] 1fr [aside] auto
|
|
6
6
|
|
|
7
7
|
Items are subgrid of the container, so their dots/labels/aside
|
|
8
8
|
align perfectly to a single vertical axis regardless of size.
|
|
@@ -18,86 +18,86 @@
|
|
|
18
18
|
@scope (timeline-ui) {
|
|
19
19
|
:where(:scope) {
|
|
20
20
|
/* Grid */
|
|
21
|
-
--timeline-marker-w
|
|
22
|
-
--timeline-gap-col
|
|
23
|
-
--timeline-gap-row
|
|
21
|
+
--timeline-marker-w: 1.25rem;
|
|
22
|
+
--timeline-gap-col: var(--a-space-2);
|
|
23
|
+
--timeline-gap-row: var(--a-space-3);
|
|
24
24
|
|
|
25
25
|
/* Dot */
|
|
26
|
-
--timeline-dot-size
|
|
27
|
-
--timeline-dot-bg
|
|
28
|
-
--timeline-dot-bg-active
|
|
29
|
-
--timeline-dot-bg-done
|
|
30
|
-
--timeline-dot-bg-error
|
|
31
|
-
--timeline-dot-bg-warning
|
|
26
|
+
--timeline-dot-size: 0.625rem;
|
|
27
|
+
--timeline-dot-bg: var(--a-border);
|
|
28
|
+
--timeline-dot-bg-active: var(--a-accent-bg);
|
|
29
|
+
--timeline-dot-bg-done: var(--a-success-bg);
|
|
30
|
+
--timeline-dot-bg-error: var(--a-danger-bg);
|
|
31
|
+
--timeline-dot-bg-warning: var(--a-warning-bg);
|
|
32
32
|
|
|
33
33
|
/* Sub-dot (outcomes) */
|
|
34
|
-
--timeline-subdot-size
|
|
35
|
-
--timeline-subdot-bg
|
|
34
|
+
--timeline-subdot-size: 4px;
|
|
35
|
+
--timeline-subdot-bg: var(--a-fg-subtle);
|
|
36
36
|
|
|
37
37
|
/* Connector line */
|
|
38
|
-
--timeline-line-size
|
|
39
|
-
--timeline-line-fg
|
|
40
|
-
--timeline-line-fg-done
|
|
38
|
+
--timeline-line-size: 2px;
|
|
39
|
+
--timeline-line-fg: var(--a-border-subtle);
|
|
40
|
+
--timeline-line-fg-done: var(--a-border);
|
|
41
41
|
|
|
42
42
|
/* Marker box — the shared circular footprint the icon marker fills and
|
|
43
43
|
the dot / spinner center within (the column track --timeline-marker-w
|
|
44
44
|
is a touch wider for breathing room). One token sizes the whole marker
|
|
45
45
|
system; consumers (agent-reasoning-ui, chat surfaces) override it to
|
|
46
46
|
scale every marker type coherently. */
|
|
47
|
-
--timeline-marker-box-size
|
|
47
|
+
--timeline-marker-box-size: 1rem;
|
|
48
48
|
|
|
49
49
|
/* Icon (replaces dot) */
|
|
50
|
-
--timeline-icon-size
|
|
51
|
-
--timeline-icon-bg
|
|
52
|
-
--timeline-icon-fg
|
|
53
|
-
--timeline-icon-border
|
|
54
|
-
--timeline-icon-bg-success
|
|
55
|
-
--timeline-icon-fg-success
|
|
56
|
-
--timeline-icon-bg-accent
|
|
57
|
-
--timeline-icon-fg-accent
|
|
58
|
-
--timeline-icon-bg-warning
|
|
59
|
-
--timeline-icon-fg-warning
|
|
60
|
-
--timeline-icon-bg-danger
|
|
61
|
-
--timeline-icon-fg-danger
|
|
50
|
+
--timeline-icon-size: var(--timeline-marker-box-size);
|
|
51
|
+
--timeline-icon-bg: var(--a-bg-muted);
|
|
52
|
+
--timeline-icon-fg: var(--a-fg-subtle);
|
|
53
|
+
--timeline-icon-border: var(--a-border-subtle);
|
|
54
|
+
--timeline-icon-bg-success: var(--a-success-muted);
|
|
55
|
+
--timeline-icon-fg-success: var(--a-success-strong);
|
|
56
|
+
--timeline-icon-bg-accent: var(--a-accent-muted);
|
|
57
|
+
--timeline-icon-fg-accent: var(--a-accent);
|
|
58
|
+
--timeline-icon-bg-warning: var(--a-warning-muted);
|
|
59
|
+
--timeline-icon-fg-warning: var(--a-warning);
|
|
60
|
+
--timeline-icon-bg-danger: var(--a-danger-muted);
|
|
61
|
+
--timeline-icon-fg-danger: var(--a-danger-strong);
|
|
62
62
|
|
|
63
63
|
/* Typography */
|
|
64
|
-
--timeline-label-weight
|
|
65
|
-
--timeline-label-size
|
|
66
|
-
--timeline-label-fg
|
|
67
|
-
--timeline-label-fg-muted
|
|
68
|
-
--timeline-desc-fg
|
|
69
|
-
--timeline-desc-size
|
|
70
|
-
--timeline-time-fg
|
|
71
|
-
--timeline-time-size
|
|
72
|
-
--timeline-outcome-fg
|
|
64
|
+
--timeline-label-weight: var(--a-weight-medium);
|
|
65
|
+
--timeline-label-size: var(--a-ui-size);
|
|
66
|
+
--timeline-label-fg: var(--a-fg);
|
|
67
|
+
--timeline-label-fg-muted: var(--a-fg-muted);
|
|
68
|
+
--timeline-desc-fg: var(--a-fg-subtle);
|
|
69
|
+
--timeline-desc-size: var(--a-ui-sm);
|
|
70
|
+
--timeline-time-fg: var(--a-fg-muted);
|
|
71
|
+
--timeline-time-size: var(--a-ui-sm);
|
|
72
|
+
--timeline-outcome-fg: var(--a-fg-muted);
|
|
73
73
|
|
|
74
74
|
/* Motion */
|
|
75
|
-
--timeline-duration
|
|
76
|
-
--timeline-easing
|
|
77
|
-
--timeline-spin-duration
|
|
78
|
-
--timeline-pulse-duration
|
|
75
|
+
--timeline-duration: var(--a-duration-fast);
|
|
76
|
+
--timeline-easing: var(--a-easing-out);
|
|
77
|
+
--timeline-spin-duration: 0.8s;
|
|
78
|
+
--timeline-pulse-duration: 2s;
|
|
79
79
|
}
|
|
80
80
|
|
|
81
81
|
:scope {
|
|
82
82
|
box-sizing: border-box;
|
|
83
83
|
display: grid;
|
|
84
84
|
grid-template-columns:
|
|
85
|
-
[marker] var(--timeline-marker-w
|
|
85
|
+
[marker] var(--timeline-marker-w)
|
|
86
86
|
[content] 1fr
|
|
87
87
|
[aside] auto;
|
|
88
|
-
column-gap: var(--timeline-gap-col
|
|
89
|
-
row-gap: var(--timeline-gap-row
|
|
88
|
+
column-gap: var(--timeline-gap-col);
|
|
89
|
+
row-gap: var(--timeline-gap-row);
|
|
90
90
|
min-width: 0;
|
|
91
91
|
}
|
|
92
92
|
|
|
93
93
|
/* Compact variant (agent-reasoning + chat-adjacent) */
|
|
94
94
|
:scope[size="sm"] {
|
|
95
|
-
--timeline-marker-w
|
|
96
|
-
--timeline-marker-box-size
|
|
97
|
-
--timeline-dot-size
|
|
98
|
-
--timeline-gap-row
|
|
99
|
-
--timeline-label-size
|
|
100
|
-
--timeline-label-weight
|
|
95
|
+
--timeline-marker-w: 1rem;
|
|
96
|
+
--timeline-marker-box-size: 0.875rem;
|
|
97
|
+
--timeline-dot-size: 6px;
|
|
98
|
+
--timeline-gap-row: var(--a-space-2);
|
|
99
|
+
--timeline-label-size: var(--a-ui-sm);
|
|
100
|
+
--timeline-label-weight: var(--a-weight-normal);
|
|
101
101
|
}
|
|
102
102
|
|
|
103
103
|
/* Horizontal layout — fall back to flow layout; drops subgrid.
|
|
@@ -145,7 +145,7 @@ agent-reasoning-ui timeline-ui:not([orientation="horizontal"]),
|
|
|
145
145
|
/* Reads the override THEN the inherited -default (set on timeline-ui,
|
|
146
146
|
and shrunk by [size="sm"]) THEN a literal — so the marker box scales
|
|
147
147
|
with both consumer overrides AND the sm compact variant. */
|
|
148
|
-
--timeline-item-marker-box-size: var(--timeline-marker-box-size, var(--timeline-marker-box-size
|
|
148
|
+
--timeline-item-marker-box-size: var(--timeline-marker-box-size, var(--timeline-marker-box-size, 1rem));
|
|
149
149
|
--timeline-item-icon-size: var(--timeline-icon-size, var(--timeline-item-marker-box-size));
|
|
150
150
|
--timeline-item-icon-bg: var(--timeline-icon-bg, var(--a-bg-muted));
|
|
151
151
|
--timeline-item-icon-fg: var(--timeline-icon-fg, var(--a-fg-subtle));
|
|
@@ -414,7 +414,7 @@ timeline-ui[orientation="horizontal"] > timeline-item-ui {
|
|
|
414
414
|
flex-direction: column;
|
|
415
415
|
flex: 1 1 0;
|
|
416
416
|
min-width: 0;
|
|
417
|
-
padding-top: calc(var(--timeline-dot-size
|
|
417
|
+
padding-top: calc(var(--timeline-dot-size) + var(--timeline-gap-col));
|
|
418
418
|
text-align: center;
|
|
419
419
|
position: relative;
|
|
420
420
|
}
|
|
@@ -427,11 +427,11 @@ timeline-ui[orientation="horizontal"] > timeline-item-ui::before {
|
|
|
427
427
|
|
|
428
428
|
timeline-ui[orientation="horizontal"] > timeline-item-ui::after {
|
|
429
429
|
left: 50%;
|
|
430
|
-
top: calc(var(--timeline-dot-size
|
|
430
|
+
top: calc(var(--timeline-dot-size) / 2 - var(--timeline-line-size) / 2);
|
|
431
431
|
right: -50%;
|
|
432
432
|
bottom: auto;
|
|
433
433
|
width: 100%;
|
|
434
|
-
height: var(--timeline-line-size
|
|
434
|
+
height: var(--timeline-line-size);
|
|
435
435
|
}
|
|
436
436
|
|
|
437
437
|
timeline-ui[orientation="horizontal"] > timeline-item-ui [slot="label"],
|
|
@@ -7,14 +7,14 @@
|
|
|
7
7
|
attribute toggling inside `@scope`. Selectors moved out as plain
|
|
8
8
|
`toast-ui[data-…]` rules. See docs/BROWSER-COMPAT.md §3a. */
|
|
9
9
|
toast-ui[data-open] {
|
|
10
|
-
transition: transform var(--toast-duration
|
|
11
|
-
opacity var(--toast-duration
|
|
10
|
+
transition: transform var(--toast-duration) var(--toast-easing),
|
|
11
|
+
opacity var(--toast-duration) var(--toast-easing);
|
|
12
12
|
transform: translateY(0);
|
|
13
13
|
opacity: 1;
|
|
14
14
|
}
|
|
15
15
|
toast-ui[data-closing] {
|
|
16
|
-
transition: transform var(--toast-duration
|
|
17
|
-
opacity var(--toast-duration
|
|
16
|
+
transition: transform var(--toast-duration) var(--toast-easing),
|
|
17
|
+
opacity var(--toast-duration) var(--toast-easing);
|
|
18
18
|
opacity: 0;
|
|
19
19
|
}
|
|
20
20
|
toast-ui[data-closing],
|
|
@@ -29,30 +29,30 @@ toast-ui[data-closing][position="top-left"] {
|
|
|
29
29
|
|
|
30
30
|
@scope (toast-ui) {
|
|
31
31
|
:where(:scope) {
|
|
32
|
-
--toast-bg
|
|
33
|
-
--toast-fg
|
|
34
|
-
--toast-radius
|
|
35
|
-
--toast-shadow
|
|
36
|
-
--toast-duration
|
|
37
|
-
--toast-easing
|
|
38
|
-
--toast-pad-x
|
|
39
|
-
--toast-pad-y
|
|
40
|
-
--toast-border
|
|
41
|
-
--toast-max-width
|
|
42
|
-
--toast-gap
|
|
32
|
+
--toast-bg: var(--a-bg-subtle);
|
|
33
|
+
--toast-fg: var(--a-fg);
|
|
34
|
+
--toast-radius: var(--a-radius-md);
|
|
35
|
+
--toast-shadow: var(--a-shadow-lg);
|
|
36
|
+
--toast-duration: var(--a-duration);
|
|
37
|
+
--toast-easing: var(--a-easing-out);
|
|
38
|
+
--toast-pad-x: var(--a-space-4);
|
|
39
|
+
--toast-pad-y: var(--a-space-3);
|
|
40
|
+
--toast-border: var(--a-border-subtle);
|
|
41
|
+
--toast-max-width: 24rem;
|
|
42
|
+
--toast-gap: var(--a-space-3);
|
|
43
43
|
|
|
44
44
|
/* ── Typography ── */
|
|
45
|
-
--toast-font
|
|
46
|
-
--toast-size
|
|
45
|
+
--toast-font: var(--a-font-family);
|
|
46
|
+
--toast-size: var(--a-ui-md);
|
|
47
47
|
|
|
48
48
|
/* ── Position offset ── */
|
|
49
|
-
--toast-offset
|
|
49
|
+
--toast-offset: var(--a-space-4);
|
|
50
50
|
|
|
51
51
|
/* ── Close button ── */
|
|
52
|
-
--toast-close-duration
|
|
53
|
-
--toast-close-easing
|
|
54
|
-
--toast-focus-ring
|
|
55
|
-
--toast-focus-radius
|
|
52
|
+
--toast-close-duration: var(--a-duration-fast);
|
|
53
|
+
--toast-close-easing: var(--a-easing);
|
|
54
|
+
--toast-focus-ring: var(--a-focus-ring);
|
|
55
|
+
--toast-focus-radius: var(--a-radius-sm);
|
|
56
56
|
}
|
|
57
57
|
|
|
58
58
|
:scope {
|
|
@@ -61,16 +61,16 @@ toast-ui[data-closing][position="top-left"] {
|
|
|
61
61
|
z-index: 9999;
|
|
62
62
|
display: flex;
|
|
63
63
|
align-items: center;
|
|
64
|
-
gap: var(--toast-gap
|
|
65
|
-
max-width: var(--toast-max-width
|
|
66
|
-
padding: var(--toast-pad-y
|
|
67
|
-
background: var(--toast-bg
|
|
68
|
-
color: var(--toast-fg
|
|
69
|
-
font-family: var(--toast-font
|
|
70
|
-
font-size: var(--toast-size
|
|
71
|
-
border: 1px solid var(--toast-border
|
|
72
|
-
border-radius: var(--toast-radius
|
|
73
|
-
box-shadow: var(--toast-shadow
|
|
64
|
+
gap: var(--toast-gap);
|
|
65
|
+
max-width: var(--toast-max-width);
|
|
66
|
+
padding: var(--toast-pad-y) var(--toast-pad-x);
|
|
67
|
+
background: var(--toast-bg);
|
|
68
|
+
color: var(--toast-fg);
|
|
69
|
+
font-family: var(--toast-font);
|
|
70
|
+
font-size: var(--toast-size);
|
|
71
|
+
border: 1px solid var(--toast-border);
|
|
72
|
+
border-radius: var(--toast-radius);
|
|
73
|
+
box-shadow: var(--toast-shadow);
|
|
74
74
|
opacity: 0;
|
|
75
75
|
pointer-events: auto;
|
|
76
76
|
}
|
|
@@ -79,25 +79,25 @@ toast-ui[data-closing][position="top-left"] {
|
|
|
79
79
|
|
|
80
80
|
:where(:scope),
|
|
81
81
|
:where(:scope[position="bottom-right"]) {
|
|
82
|
-
bottom: var(--toast-offset
|
|
83
|
-
right: var(--toast-offset
|
|
82
|
+
bottom: var(--toast-offset);
|
|
83
|
+
right: var(--toast-offset);
|
|
84
84
|
transform: translateY(1rem);
|
|
85
85
|
}
|
|
86
86
|
:where(:scope[position="bottom-left"]) {
|
|
87
|
-
bottom: var(--toast-offset
|
|
88
|
-
left: var(--toast-offset
|
|
87
|
+
bottom: var(--toast-offset);
|
|
88
|
+
left: var(--toast-offset);
|
|
89
89
|
right: auto;
|
|
90
90
|
transform: translateY(1rem);
|
|
91
91
|
}
|
|
92
92
|
:where(:scope[position="top-right"]) {
|
|
93
|
-
top: var(--toast-offset
|
|
94
|
-
right: var(--toast-offset
|
|
93
|
+
top: var(--toast-offset);
|
|
94
|
+
right: var(--toast-offset);
|
|
95
95
|
bottom: auto;
|
|
96
96
|
transform: translateY(-1rem);
|
|
97
97
|
}
|
|
98
98
|
:where(:scope[position="top-left"]) {
|
|
99
|
-
top: var(--toast-offset
|
|
100
|
-
left: var(--toast-offset
|
|
99
|
+
top: var(--toast-offset);
|
|
100
|
+
left: var(--toast-offset);
|
|
101
101
|
right: auto;
|
|
102
102
|
bottom: auto;
|
|
103
103
|
transform: translateY(-1rem);
|
|
@@ -116,24 +116,24 @@ toast-ui[data-closing][position="top-left"] {
|
|
|
116
116
|
|
|
117
117
|
:where(:scope),
|
|
118
118
|
:where(:scope[variant="info"]) {
|
|
119
|
-
--toast-bg
|
|
120
|
-
--toast-fg
|
|
121
|
-
--toast-border
|
|
119
|
+
--toast-bg: var(--a-info-muted);
|
|
120
|
+
--toast-fg: var(--a-info-text);
|
|
121
|
+
--toast-border: var(--a-info-border-subtle);
|
|
122
122
|
}
|
|
123
123
|
:where(:scope[variant="success"]) {
|
|
124
|
-
--toast-bg
|
|
125
|
-
--toast-fg
|
|
126
|
-
--toast-border
|
|
124
|
+
--toast-bg: var(--a-success-muted);
|
|
125
|
+
--toast-fg: var(--a-success-text);
|
|
126
|
+
--toast-border: var(--a-success-border-subtle);
|
|
127
127
|
}
|
|
128
128
|
:where(:scope[variant="warning"]) {
|
|
129
|
-
--toast-bg
|
|
130
|
-
--toast-fg
|
|
131
|
-
--toast-border
|
|
129
|
+
--toast-bg: var(--a-warning-muted);
|
|
130
|
+
--toast-fg: var(--a-warning-text);
|
|
131
|
+
--toast-border: var(--a-warning-border-subtle);
|
|
132
132
|
}
|
|
133
133
|
:where(:scope[variant="danger"]) {
|
|
134
|
-
--toast-bg
|
|
135
|
-
--toast-fg
|
|
136
|
-
--toast-border
|
|
134
|
+
--toast-bg: var(--a-danger-muted);
|
|
135
|
+
--toast-fg: var(--a-danger-text);
|
|
136
|
+
--toast-border: var(--a-danger-border-subtle);
|
|
137
137
|
}
|
|
138
138
|
|
|
139
139
|
/* `primary` is the accent-filled variant — solid bg + on-accent text
|
|
@@ -143,9 +143,9 @@ toast-ui[data-closing][position="top-left"] {
|
|
|
143
143
|
primary; border picks up `--a-accent-border-subtle` since there's
|
|
144
144
|
no `--a-primary-border-subtle` token. */
|
|
145
145
|
:where(:scope[variant="primary"]) {
|
|
146
|
-
--toast-bg
|
|
147
|
-
--toast-fg
|
|
148
|
-
--toast-border
|
|
146
|
+
--toast-bg: var(--a-primary-bg);
|
|
147
|
+
--toast-fg: var(--a-primary-fg);
|
|
148
|
+
--toast-border: var(--a-accent-border-subtle);
|
|
149
149
|
}
|
|
150
150
|
|
|
151
151
|
/* `muted` and `neutral` are semantic aliases of the base canvas
|
|
@@ -155,9 +155,9 @@ toast-ui[data-closing][position="top-left"] {
|
|
|
155
155
|
saved" without success-green). Mirrors alert-ui's pattern. */
|
|
156
156
|
:where(:scope[variant="muted"]),
|
|
157
157
|
:where(:scope[variant="neutral"]) {
|
|
158
|
-
--toast-bg
|
|
159
|
-
--toast-fg
|
|
160
|
-
--toast-border
|
|
158
|
+
--toast-bg: var(--a-bg-subtle);
|
|
159
|
+
--toast-fg: var(--a-fg);
|
|
160
|
+
--toast-border: var(--a-border-subtle);
|
|
161
161
|
}
|
|
162
162
|
|
|
163
163
|
/* ── Message slot ── */
|
package/components/toc/toc.css
CHANGED
|
@@ -5,30 +5,30 @@
|
|
|
5
5
|
@scope (toc-ui) {
|
|
6
6
|
:where(:scope) {
|
|
7
7
|
/* ── Layout ── */
|
|
8
|
-
--toc-gap
|
|
9
|
-
--toc-indent
|
|
10
|
-
--toc-padding-block
|
|
11
|
-
--toc-padding-inline
|
|
8
|
+
--toc-gap: var(--a-space-1);
|
|
9
|
+
--toc-indent: var(--a-space-3);
|
|
10
|
+
--toc-padding-block: var(--a-space-1);
|
|
11
|
+
--toc-padding-inline: var(--a-space-2);
|
|
12
12
|
|
|
13
13
|
/* ── Colors ── */
|
|
14
|
-
--toc-fg
|
|
15
|
-
--toc-fg-active
|
|
16
|
-
--toc-fg-hover
|
|
17
|
-
--toc-rule-active
|
|
18
|
-
--toc-rule-inactive
|
|
14
|
+
--toc-fg: var(--a-fg-muted);
|
|
15
|
+
--toc-fg-active: var(--a-fg);
|
|
16
|
+
--toc-fg-hover: var(--a-fg);
|
|
17
|
+
--toc-rule-active: var(--a-accent-bg);
|
|
18
|
+
--toc-rule-inactive: transparent;
|
|
19
19
|
|
|
20
20
|
/* ── Typography ── */
|
|
21
|
-
--toc-size
|
|
22
|
-
--toc-weight
|
|
23
|
-
--toc-weight-active
|
|
21
|
+
--toc-size: var(--a-ui-sm);
|
|
22
|
+
--toc-weight: var(--a-weight);
|
|
23
|
+
--toc-weight-active: var(--a-weight-medium);
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
/* ── Host ── */
|
|
27
27
|
:scope {
|
|
28
28
|
box-sizing: border-box;
|
|
29
29
|
display: block;
|
|
30
|
-
color: var(--toc-fg
|
|
31
|
-
font-size: var(--toc-size
|
|
30
|
+
color: var(--toc-fg);
|
|
31
|
+
font-size: var(--toc-size);
|
|
32
32
|
}
|
|
33
33
|
|
|
34
34
|
/* ── Nav scaffold ── */
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
padding: 0;
|
|
43
43
|
display: flex;
|
|
44
44
|
flex-direction: column;
|
|
45
|
-
gap: var(--toc-gap
|
|
45
|
+
gap: var(--toc-gap);
|
|
46
46
|
}
|
|
47
47
|
|
|
48
48
|
li {
|
|
@@ -55,25 +55,25 @@
|
|
|
55
55
|
a {
|
|
56
56
|
display: block;
|
|
57
57
|
box-sizing: border-box;
|
|
58
|
-
padding-block: var(--toc-padding-block
|
|
59
|
-
padding-inline: var(--toc-padding-inline
|
|
58
|
+
padding-block: var(--toc-padding-block);
|
|
59
|
+
padding-inline: var(--toc-padding-inline);
|
|
60
60
|
text-decoration: none;
|
|
61
61
|
color: inherit;
|
|
62
62
|
line-height: 1.4;
|
|
63
|
-
border-inline-start: 2px solid var(--toc-rule-inactive
|
|
63
|
+
border-inline-start: 2px solid var(--toc-rule-inactive);
|
|
64
64
|
transition:
|
|
65
65
|
color var(--a-duration-fast) var(--a-easing),
|
|
66
66
|
border-color var(--a-duration-fast) var(--a-easing);
|
|
67
67
|
}
|
|
68
68
|
|
|
69
69
|
a:hover {
|
|
70
|
-
color: var(--toc-fg-hover
|
|
70
|
+
color: var(--toc-fg-hover);
|
|
71
71
|
}
|
|
72
72
|
|
|
73
73
|
a[data-active] {
|
|
74
|
-
color: var(--toc-fg-active
|
|
75
|
-
border-inline-start-color: var(--toc-rule-active
|
|
76
|
-
font-weight: var(--toc-weight-active
|
|
74
|
+
color: var(--toc-fg-active);
|
|
75
|
+
border-inline-start-color: var(--toc-rule-active);
|
|
76
|
+
font-weight: var(--toc-weight-active);
|
|
77
77
|
}
|
|
78
78
|
|
|
79
79
|
a:focus-visible {
|
|
@@ -83,10 +83,10 @@
|
|
|
83
83
|
}
|
|
84
84
|
|
|
85
85
|
/* ── Indentation by depth ── */
|
|
86
|
-
a[data-depth="0"] { padding-inline-start: var(--toc-padding-inline
|
|
87
|
-
a[data-depth="1"] { padding-inline-start: calc(var(--toc-padding-inline
|
|
88
|
-
a[data-depth="2"] { padding-inline-start: calc(var(--toc-padding-inline
|
|
89
|
-
a[data-depth="3"] { padding-inline-start: calc(var(--toc-padding-inline
|
|
90
|
-
a[data-depth="4"] { padding-inline-start: calc(var(--toc-padding-inline
|
|
91
|
-
a[data-depth="5"] { padding-inline-start: calc(var(--toc-padding-inline
|
|
86
|
+
a[data-depth="0"] { padding-inline-start: var(--toc-padding-inline); }
|
|
87
|
+
a[data-depth="1"] { padding-inline-start: calc(var(--toc-padding-inline) + var(--toc-indent) * 1); }
|
|
88
|
+
a[data-depth="2"] { padding-inline-start: calc(var(--toc-padding-inline) + var(--toc-indent) * 2); }
|
|
89
|
+
a[data-depth="3"] { padding-inline-start: calc(var(--toc-padding-inline) + var(--toc-indent) * 3); }
|
|
90
|
+
a[data-depth="4"] { padding-inline-start: calc(var(--toc-padding-inline) + var(--toc-indent) * 4); }
|
|
91
|
+
a[data-depth="5"] { padding-inline-start: calc(var(--toc-padding-inline) + var(--toc-indent) * 5); }
|
|
92
92
|
}
|