@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
|
@@ -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) [content] 1fr [aside] auto
|
|
5
|
+
[marker] var(--timeline-marker-w, var(--timeline-marker-w-default)) [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,77 +18,77 @@
|
|
|
18
18
|
@scope (timeline-ui) {
|
|
19
19
|
:where(:scope) {
|
|
20
20
|
/* Grid */
|
|
21
|
-
--timeline-marker-w: 1.25rem;
|
|
22
|
-
--timeline-gap-col: var(--a-space-2);
|
|
23
|
-
--timeline-gap-row: var(--a-space-3);
|
|
21
|
+
--timeline-marker-w-default: 1.25rem;
|
|
22
|
+
--timeline-gap-col-default: var(--a-space-2);
|
|
23
|
+
--timeline-gap-row-default: var(--a-space-3);
|
|
24
24
|
|
|
25
25
|
/* Dot */
|
|
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);
|
|
26
|
+
--timeline-dot-size-default: 0.625rem;
|
|
27
|
+
--timeline-dot-bg-default: var(--a-border);
|
|
28
|
+
--timeline-dot-bg-active-default: var(--a-accent-bg);
|
|
29
|
+
--timeline-dot-bg-done-default: var(--a-success-bg);
|
|
30
|
+
--timeline-dot-bg-error-default: var(--a-danger-bg);
|
|
31
|
+
--timeline-dot-bg-warning-default: var(--a-warning-bg);
|
|
32
32
|
|
|
33
33
|
/* Sub-dot (outcomes) */
|
|
34
|
-
--timeline-subdot-size: 4px;
|
|
35
|
-
--timeline-subdot-bg: var(--a-fg-subtle);
|
|
34
|
+
--timeline-subdot-size-default: 4px;
|
|
35
|
+
--timeline-subdot-bg-default: var(--a-fg-subtle);
|
|
36
36
|
|
|
37
37
|
/* Connector line */
|
|
38
|
-
--timeline-line-size: 2px;
|
|
39
|
-
--timeline-line-fg: var(--a-border-subtle);
|
|
40
|
-
--timeline-line-fg-done: var(--a-border);
|
|
38
|
+
--timeline-line-size-default: 2px;
|
|
39
|
+
--timeline-line-fg-default: var(--a-border-subtle);
|
|
40
|
+
--timeline-line-fg-done-default: var(--a-border);
|
|
41
41
|
|
|
42
42
|
/* Icon (replaces dot) */
|
|
43
|
-
--timeline-icon-size: 1rem;
|
|
44
|
-
--timeline-icon-bg: var(--a-bg-muted);
|
|
45
|
-
--timeline-icon-fg: var(--a-fg-subtle);
|
|
46
|
-
--timeline-icon-bg-success: var(--a-success-muted);
|
|
47
|
-
--timeline-icon-fg-success: var(--a-success-strong);
|
|
48
|
-
--timeline-icon-bg-accent: var(--a-accent-muted);
|
|
49
|
-
--timeline-icon-fg-accent: var(--a-accent);
|
|
50
|
-
--timeline-icon-bg-warning: var(--a-warning-muted);
|
|
51
|
-
--timeline-icon-fg-warning: var(--a-warning);
|
|
52
|
-
--timeline-icon-bg-danger: var(--a-danger-muted);
|
|
53
|
-
--timeline-icon-fg-danger: var(--a-danger-strong);
|
|
43
|
+
--timeline-icon-size-default: 1rem;
|
|
44
|
+
--timeline-icon-bg-default: var(--a-bg-muted);
|
|
45
|
+
--timeline-icon-fg-default: var(--a-fg-subtle);
|
|
46
|
+
--timeline-icon-bg-success-default: var(--a-success-muted);
|
|
47
|
+
--timeline-icon-fg-success-default: var(--a-success-strong);
|
|
48
|
+
--timeline-icon-bg-accent-default: var(--a-accent-muted);
|
|
49
|
+
--timeline-icon-fg-accent-default: var(--a-accent);
|
|
50
|
+
--timeline-icon-bg-warning-default: var(--a-warning-muted);
|
|
51
|
+
--timeline-icon-fg-warning-default: var(--a-warning);
|
|
52
|
+
--timeline-icon-bg-danger-default: var(--a-danger-muted);
|
|
53
|
+
--timeline-icon-fg-danger-default: var(--a-danger-strong);
|
|
54
54
|
|
|
55
55
|
/* Typography */
|
|
56
|
-
--timeline-label-weight: var(--a-weight-medium);
|
|
57
|
-
--timeline-label-size: var(--a-ui-size);
|
|
58
|
-
--timeline-label-fg: var(--a-fg);
|
|
59
|
-
--timeline-label-fg-muted: var(--a-fg-muted);
|
|
60
|
-
--timeline-desc-fg: var(--a-fg-subtle);
|
|
61
|
-
--timeline-desc-size: var(--a-ui-sm);
|
|
62
|
-
--timeline-time-fg: var(--a-fg-muted);
|
|
63
|
-
--timeline-time-size: var(--a-ui-sm);
|
|
64
|
-
--timeline-outcome-fg: var(--a-fg-muted);
|
|
56
|
+
--timeline-label-weight-default: var(--a-weight-medium);
|
|
57
|
+
--timeline-label-size-default: var(--a-ui-size);
|
|
58
|
+
--timeline-label-fg-default: var(--a-fg);
|
|
59
|
+
--timeline-label-fg-muted-default: var(--a-fg-muted);
|
|
60
|
+
--timeline-desc-fg-default: var(--a-fg-subtle);
|
|
61
|
+
--timeline-desc-size-default: var(--a-ui-sm);
|
|
62
|
+
--timeline-time-fg-default: var(--a-fg-muted);
|
|
63
|
+
--timeline-time-size-default: var(--a-ui-sm);
|
|
64
|
+
--timeline-outcome-fg-default: var(--a-fg-muted);
|
|
65
65
|
|
|
66
66
|
/* Motion */
|
|
67
|
-
--timeline-duration: var(--a-duration-fast);
|
|
68
|
-
--timeline-easing: var(--a-easing-out);
|
|
69
|
-
--timeline-spin-duration: 0.8s;
|
|
70
|
-
--timeline-pulse-duration: 2s;
|
|
67
|
+
--timeline-duration-default: var(--a-duration-fast);
|
|
68
|
+
--timeline-easing-default: var(--a-easing-out);
|
|
69
|
+
--timeline-spin-duration-default: 0.8s;
|
|
70
|
+
--timeline-pulse-duration-default: 2s;
|
|
71
71
|
}
|
|
72
72
|
|
|
73
73
|
:scope {
|
|
74
74
|
box-sizing: border-box;
|
|
75
75
|
display: grid;
|
|
76
76
|
grid-template-columns:
|
|
77
|
-
[marker] var(--timeline-marker-w)
|
|
77
|
+
[marker] var(--timeline-marker-w, var(--timeline-marker-w-default))
|
|
78
78
|
[content] 1fr
|
|
79
79
|
[aside] auto;
|
|
80
|
-
column-gap: var(--timeline-gap-col);
|
|
81
|
-
row-gap: var(--timeline-gap-row);
|
|
80
|
+
column-gap: var(--timeline-gap-col, var(--timeline-gap-col-default));
|
|
81
|
+
row-gap: var(--timeline-gap-row, var(--timeline-gap-row-default));
|
|
82
82
|
min-width: 0;
|
|
83
83
|
}
|
|
84
84
|
|
|
85
85
|
/* Compact variant (agent-reasoning + chat-adjacent) */
|
|
86
86
|
:scope[size="sm"] {
|
|
87
|
-
--timeline-marker-w: 1rem;
|
|
88
|
-
--timeline-dot-size: 6px;
|
|
89
|
-
--timeline-gap-row: var(--a-space-2);
|
|
90
|
-
--timeline-label-size: var(--a-ui-sm);
|
|
91
|
-
--timeline-label-weight: var(--a-weight-normal);
|
|
87
|
+
--timeline-marker-w-default: 1rem;
|
|
88
|
+
--timeline-dot-size-default: 6px;
|
|
89
|
+
--timeline-gap-row-default: var(--a-space-2);
|
|
90
|
+
--timeline-label-size-default: var(--a-ui-sm);
|
|
91
|
+
--timeline-label-weight-default: var(--a-weight-normal);
|
|
92
92
|
}
|
|
93
93
|
|
|
94
94
|
/* Horizontal layout — fall back to flow layout; drops subgrid.
|
|
@@ -396,7 +396,7 @@ timeline-ui[orientation="horizontal"] > timeline-item-ui {
|
|
|
396
396
|
flex-direction: column;
|
|
397
397
|
flex: 1 1 0;
|
|
398
398
|
min-width: 0;
|
|
399
|
-
padding-top: calc(var(--timeline-dot-size) + var(--timeline-gap-col));
|
|
399
|
+
padding-top: calc(var(--timeline-dot-size, var(--timeline-dot-size-default)) + var(--timeline-gap-col, var(--timeline-gap-col-default)));
|
|
400
400
|
text-align: center;
|
|
401
401
|
position: relative;
|
|
402
402
|
}
|
|
@@ -409,11 +409,11 @@ timeline-ui[orientation="horizontal"] > timeline-item-ui::before {
|
|
|
409
409
|
|
|
410
410
|
timeline-ui[orientation="horizontal"] > timeline-item-ui::after {
|
|
411
411
|
left: 50%;
|
|
412
|
-
top: calc(var(--timeline-dot-size) / 2 - var(--timeline-line-size) / 2);
|
|
412
|
+
top: calc(var(--timeline-dot-size, var(--timeline-dot-size-default)) / 2 - var(--timeline-line-size, var(--timeline-line-size-default)) / 2);
|
|
413
413
|
right: -50%;
|
|
414
414
|
bottom: auto;
|
|
415
415
|
width: 100%;
|
|
416
|
-
height: var(--timeline-line-size);
|
|
416
|
+
height: var(--timeline-line-size, var(--timeline-line-size-default));
|
|
417
417
|
}
|
|
418
418
|
|
|
419
419
|
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) var(--toast-easing),
|
|
11
|
-
opacity var(--toast-duration) var(--toast-easing);
|
|
10
|
+
transition: transform var(--toast-duration, var(--toast-duration-default)) var(--toast-easing, var(--toast-easing-default)),
|
|
11
|
+
opacity var(--toast-duration, var(--toast-duration-default)) var(--toast-easing, var(--toast-easing-default));
|
|
12
12
|
transform: translateY(0);
|
|
13
13
|
opacity: 1;
|
|
14
14
|
}
|
|
15
15
|
toast-ui[data-closing] {
|
|
16
|
-
transition: transform var(--toast-duration) var(--toast-easing),
|
|
17
|
-
opacity var(--toast-duration) var(--toast-easing);
|
|
16
|
+
transition: transform var(--toast-duration, var(--toast-duration-default)) var(--toast-easing, var(--toast-easing-default)),
|
|
17
|
+
opacity var(--toast-duration, var(--toast-duration-default)) var(--toast-easing, var(--toast-easing-default));
|
|
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: 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);
|
|
32
|
+
--toast-bg-default: var(--a-bg-subtle);
|
|
33
|
+
--toast-fg-default: var(--a-fg);
|
|
34
|
+
--toast-radius-default: var(--a-radius-md);
|
|
35
|
+
--toast-shadow-default: var(--a-shadow-lg);
|
|
36
|
+
--toast-duration-default: var(--a-duration);
|
|
37
|
+
--toast-easing-default: var(--a-easing-out);
|
|
38
|
+
--toast-pad-x-default: var(--a-space-4);
|
|
39
|
+
--toast-pad-y-default: var(--a-space-3);
|
|
40
|
+
--toast-border-default: var(--a-border-subtle);
|
|
41
|
+
--toast-max-width-default: 24rem;
|
|
42
|
+
--toast-gap-default: var(--a-space-3);
|
|
43
43
|
|
|
44
44
|
/* ── Typography ── */
|
|
45
|
-
--toast-font: var(--a-font-family);
|
|
46
|
-
--toast-size: var(--a-ui-md);
|
|
45
|
+
--toast-font-default: var(--a-font-family);
|
|
46
|
+
--toast-size-default: var(--a-ui-md);
|
|
47
47
|
|
|
48
48
|
/* ── Position offset ── */
|
|
49
|
-
--toast-offset: var(--a-space-4);
|
|
49
|
+
--toast-offset-default: var(--a-space-4);
|
|
50
50
|
|
|
51
51
|
/* ── Close button ── */
|
|
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);
|
|
52
|
+
--toast-close-duration-default: var(--a-duration-fast);
|
|
53
|
+
--toast-close-easing-default: var(--a-easing);
|
|
54
|
+
--toast-focus-ring-default: var(--a-focus-ring);
|
|
55
|
+
--toast-focus-radius-default: 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) 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);
|
|
64
|
+
gap: var(--toast-gap, var(--toast-gap-default));
|
|
65
|
+
max-width: var(--toast-max-width, var(--toast-max-width-default));
|
|
66
|
+
padding: var(--toast-pad-y, var(--toast-pad-y-default)) var(--toast-pad-x, var(--toast-pad-x-default));
|
|
67
|
+
background: var(--toast-bg, var(--toast-bg-default));
|
|
68
|
+
color: var(--toast-fg, var(--toast-fg-default));
|
|
69
|
+
font-family: var(--toast-font, var(--toast-font-default));
|
|
70
|
+
font-size: var(--toast-size, var(--toast-size-default));
|
|
71
|
+
border: 1px solid var(--toast-border, var(--toast-border-default));
|
|
72
|
+
border-radius: var(--toast-radius, var(--toast-radius-default));
|
|
73
|
+
box-shadow: var(--toast-shadow, var(--toast-shadow-default));
|
|
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, var(--toast-offset-default));
|
|
83
|
+
right: var(--toast-offset, var(--toast-offset-default));
|
|
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, var(--toast-offset-default));
|
|
88
|
+
left: var(--toast-offset, var(--toast-offset-default));
|
|
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, var(--toast-offset-default));
|
|
94
|
+
right: var(--toast-offset, var(--toast-offset-default));
|
|
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, var(--toast-offset-default));
|
|
100
|
+
left: var(--toast-offset, var(--toast-offset-default));
|
|
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: var(--a-info-muted);
|
|
120
|
-
--toast-fg: var(--a-info-text);
|
|
121
|
-
--toast-border: var(--a-info-border-subtle);
|
|
119
|
+
--toast-bg-default: var(--a-info-muted);
|
|
120
|
+
--toast-fg-default: var(--a-info-text);
|
|
121
|
+
--toast-border-default: var(--a-info-border-subtle);
|
|
122
122
|
}
|
|
123
123
|
:where(:scope[variant="success"]) {
|
|
124
|
-
--toast-bg: var(--a-success-muted);
|
|
125
|
-
--toast-fg: var(--a-success-text);
|
|
126
|
-
--toast-border: var(--a-success-border-subtle);
|
|
124
|
+
--toast-bg-default: var(--a-success-muted);
|
|
125
|
+
--toast-fg-default: var(--a-success-text);
|
|
126
|
+
--toast-border-default: var(--a-success-border-subtle);
|
|
127
127
|
}
|
|
128
128
|
:where(:scope[variant="warning"]) {
|
|
129
|
-
--toast-bg: var(--a-warning-muted);
|
|
130
|
-
--toast-fg: var(--a-warning-text);
|
|
131
|
-
--toast-border: var(--a-warning-border-subtle);
|
|
129
|
+
--toast-bg-default: var(--a-warning-muted);
|
|
130
|
+
--toast-fg-default: var(--a-warning-text);
|
|
131
|
+
--toast-border-default: var(--a-warning-border-subtle);
|
|
132
132
|
}
|
|
133
133
|
:where(:scope[variant="danger"]) {
|
|
134
|
-
--toast-bg: var(--a-danger-muted);
|
|
135
|
-
--toast-fg: var(--a-danger-text);
|
|
136
|
-
--toast-border: var(--a-danger-border-subtle);
|
|
134
|
+
--toast-bg-default: var(--a-danger-muted);
|
|
135
|
+
--toast-fg-default: var(--a-danger-text);
|
|
136
|
+
--toast-border-default: 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: var(--a-primary-bg);
|
|
147
|
-
--toast-fg: var(--a-primary-fg);
|
|
148
|
-
--toast-border: var(--a-accent-border-subtle);
|
|
146
|
+
--toast-bg-default: var(--a-primary-bg);
|
|
147
|
+
--toast-fg-default: var(--a-primary-fg);
|
|
148
|
+
--toast-border-default: 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: var(--a-bg-subtle);
|
|
159
|
-
--toast-fg: var(--a-fg);
|
|
160
|
-
--toast-border: var(--a-border-subtle);
|
|
158
|
+
--toast-bg-default: var(--a-bg-subtle);
|
|
159
|
+
--toast-fg-default: var(--a-fg);
|
|
160
|
+
--toast-border-default: var(--a-border-subtle);
|
|
161
161
|
}
|
|
162
162
|
|
|
163
163
|
/* ── Message slot ── */
|
|
@@ -10,18 +10,18 @@ toggle-option-ui:not([disabled]):hover {
|
|
|
10
10
|
@scope (toggle-group-ui) {
|
|
11
11
|
:where(:scope) {
|
|
12
12
|
/* ── Tokens ── */
|
|
13
|
-
--toggle-group-border-width: 1px;
|
|
14
|
-
--toggle-group-border-color: var(--a-ui-border);
|
|
15
|
-
--toggle-group-radius: var(--a-radius);
|
|
16
|
-
--toggle-group-height: var(--a-size);
|
|
13
|
+
--toggle-group-border-width-default: 1px;
|
|
14
|
+
--toggle-group-border-color-default: var(--a-ui-border);
|
|
15
|
+
--toggle-group-radius-default: var(--a-radius);
|
|
16
|
+
--toggle-group-height-default: var(--a-size);
|
|
17
17
|
text-align: start; /* §text-align-reset — blocks inheritance from centered ancestors */
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
:scope {
|
|
21
21
|
box-sizing: border-box;
|
|
22
22
|
display: inline-flex;
|
|
23
|
-
border: var(--toggle-group-border-width) solid var(--toggle-group-border-color);
|
|
24
|
-
border-radius: var(--toggle-group-radius);
|
|
23
|
+
border: var(--toggle-group-border-width, var(--toggle-group-border-width-default)) solid var(--toggle-group-border-color, var(--toggle-group-border-color-default));
|
|
24
|
+
border-radius: var(--toggle-group-radius, var(--toggle-group-radius-default));
|
|
25
25
|
overflow: hidden;
|
|
26
26
|
}
|
|
27
27
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
@scope (toggle-scheme-ui) {
|
|
2
2
|
:where(:scope) {
|
|
3
|
-
--toggle-scheme-icon-transition: var(--a-duration-fast) var(--a-easing);
|
|
3
|
+
--toggle-scheme-icon-transition-default: var(--a-duration-fast) var(--a-easing);
|
|
4
4
|
}
|
|
5
5
|
|
|
6
6
|
:scope {
|
|
@@ -15,6 +15,6 @@
|
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
:scope > [part="button"] {
|
|
18
|
-
transition: color var(--toggle-scheme-icon-transition);
|
|
18
|
+
transition: color var(--toggle-scheme-icon-transition, var(--toggle-scheme-icon-transition-default));
|
|
19
19
|
}
|
|
20
20
|
}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
@scope (toolbar-ui) {
|
|
2
2
|
:where(:scope) {
|
|
3
3
|
/* ── Layout ── */
|
|
4
|
-
--toolbar-gap: var(--a-space-1);
|
|
5
|
-
--toolbar-radius: var(--a-radius-md);
|
|
6
|
-
--toolbar-px: var(--a-space-1);
|
|
7
|
-
--toolbar-py: var(--a-space-1);
|
|
4
|
+
--toolbar-gap-default: var(--a-space-1);
|
|
5
|
+
--toolbar-radius-default: var(--a-radius-md);
|
|
6
|
+
--toolbar-px-default: var(--a-space-1);
|
|
7
|
+
--toolbar-py-default: var(--a-space-1);
|
|
8
8
|
|
|
9
9
|
/* ── Colors ── */
|
|
10
|
-
--toolbar-bg: transparent;
|
|
11
|
-
--toolbar-fg: var(--a-fg);
|
|
12
|
-
--toolbar-border: var(--a-border-subtle);
|
|
10
|
+
--toolbar-bg-default: transparent;
|
|
11
|
+
--toolbar-fg-default: var(--a-fg);
|
|
12
|
+
--toolbar-border-default: var(--a-border-subtle);
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
/* ── Base ── */
|
|
@@ -18,10 +18,10 @@
|
|
|
18
18
|
display: flex;
|
|
19
19
|
flex-direction: row;
|
|
20
20
|
align-items: center;
|
|
21
|
-
gap: var(--toolbar-gap);
|
|
22
|
-
padding: var(--toolbar-py) var(--toolbar-px);
|
|
23
|
-
border-radius: var(--toolbar-radius);
|
|
24
|
-
color: var(--toolbar-fg);
|
|
21
|
+
gap: var(--toolbar-gap, var(--toolbar-gap-default));
|
|
22
|
+
padding: var(--toolbar-py, var(--toolbar-py-default)) var(--toolbar-px, var(--toolbar-px-default));
|
|
23
|
+
border-radius: var(--toolbar-radius, var(--toolbar-radius-default));
|
|
24
|
+
color: var(--toolbar-fg, var(--toolbar-fg-default));
|
|
25
25
|
min-width: 0; /* allow shrinking within flex/grid parents */
|
|
26
26
|
overflow: hidden; /* prevent pre-measurement flash before reflow */
|
|
27
27
|
}
|
|
@@ -34,14 +34,14 @@
|
|
|
34
34
|
|
|
35
35
|
/* ── Bordered ── */
|
|
36
36
|
:scope[bordered] {
|
|
37
|
-
border: 1px solid var(--toolbar-border);
|
|
38
|
-
background: var(--toolbar-bg);
|
|
37
|
+
border: 1px solid var(--toolbar-border, var(--toolbar-border-default));
|
|
38
|
+
background: var(--toolbar-bg, var(--toolbar-bg-default));
|
|
39
39
|
}
|
|
40
40
|
|
|
41
41
|
/* ── Gap variants ── */
|
|
42
|
-
:scope[gap="sm"] { --toolbar-gap: var(--a-space-1); }
|
|
43
|
-
:scope[gap="md"] { --toolbar-gap: var(--a-space-2); }
|
|
44
|
-
:scope[gap="lg"] { --toolbar-gap: var(--a-space-3); }
|
|
42
|
+
:scope[gap="sm"] { --toolbar-gap-default: var(--a-space-1); }
|
|
43
|
+
:scope[gap="md"] { --toolbar-gap-default: var(--a-space-2); }
|
|
44
|
+
:scope[gap="lg"] { --toolbar-gap-default: var(--a-space-3); }
|
|
45
45
|
|
|
46
46
|
/* ── Align ── */
|
|
47
47
|
:scope[align="start"] { justify-content: flex-start; }
|
|
@@ -104,7 +104,7 @@ toolbar-ui [data-toolbar-spillover-menu]:popover-open {
|
|
|
104
104
|
min-width: 10rem;
|
|
105
105
|
font-family: inherit;
|
|
106
106
|
font-size: var(--a-ui-size);
|
|
107
|
-
color: var(--toolbar-fg);
|
|
107
|
+
color: var(--toolbar-fg, var(--toolbar-fg-default));
|
|
108
108
|
/* Stack overflow items as rows (each row can be a group with its own gap). */
|
|
109
109
|
display: flex;
|
|
110
110
|
flex-direction: column;
|
|
@@ -3,12 +3,12 @@
|
|
|
3
3
|
/* Host (anchor) tokens. The popover itself escapes to top-layer and
|
|
4
4
|
cannot inherit these — top-layer rules below reference --a-*
|
|
5
5
|
directly per documented exception. */
|
|
6
|
-
--tooltip-host-display: inline-flex;
|
|
6
|
+
--tooltip-host-display-default: inline-flex;
|
|
7
7
|
}
|
|
8
8
|
:scope {
|
|
9
9
|
/* ── Base ── */
|
|
10
10
|
box-sizing: border-box;
|
|
11
|
-
display: var(--tooltip-host-display);
|
|
11
|
+
display: var(--tooltip-host-display, var(--tooltip-host-display-default));
|
|
12
12
|
position: relative;
|
|
13
13
|
}
|
|
14
14
|
}
|
package/components/tree/tree.css
CHANGED
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
@scope (tree-ui) {
|
|
2
2
|
:where(:scope) {
|
|
3
3
|
/* ── Layout ── */
|
|
4
|
-
--tree-row-height: var(--a-size);
|
|
5
|
-
--tree-row-radius: var(--a-radius-sm);
|
|
6
|
-
--tree-row-px: var(--a-space-1);
|
|
7
|
-
--tree-row-gap: var(--a-space-1);
|
|
8
|
-
--tree-actions-gap: var(--a-space-0-5);
|
|
9
|
-
--tree-indent: var(--a-space-4);
|
|
10
|
-
--tree-chevron-size: var(--a-space-2);
|
|
11
|
-
--tree-icon-size: var(--a-space-3);
|
|
4
|
+
--tree-row-height-default: var(--a-size);
|
|
5
|
+
--tree-row-radius-default: var(--a-radius-sm);
|
|
6
|
+
--tree-row-px-default: var(--a-space-1);
|
|
7
|
+
--tree-row-gap-default: var(--a-space-1);
|
|
8
|
+
--tree-actions-gap-default: var(--a-space-0-5);
|
|
9
|
+
--tree-indent-default: var(--a-space-4);
|
|
10
|
+
--tree-chevron-size-default: var(--a-space-2);
|
|
11
|
+
--tree-icon-size-default: var(--a-space-3);
|
|
12
12
|
|
|
13
13
|
/* ── Typography ── */
|
|
14
|
-
--tree-font-size: var(--a-ui-size);
|
|
14
|
+
--tree-font-size-default: var(--a-ui-size);
|
|
15
15
|
|
|
16
16
|
/* ── Colors ── */
|
|
17
|
-
--tree-fg: var(--a-fg);
|
|
18
|
-
--tree-fg-muted: var(--a-fg-muted);
|
|
19
|
-
--tree-bg-hover: var(--a-bg-muted);
|
|
20
|
-
--tree-bg-selected: var(--a-bg-hover);
|
|
17
|
+
--tree-fg-default: var(--a-fg);
|
|
18
|
+
--tree-fg-muted-default: var(--a-fg-muted);
|
|
19
|
+
--tree-bg-hover-default: var(--a-bg-muted);
|
|
20
|
+
--tree-bg-selected-default: var(--a-bg-hover);
|
|
21
21
|
|
|
22
22
|
/* ── Transition ── */
|
|
23
|
-
--tree-duration: var(--a-duration-fast);
|
|
24
|
-
--tree-easing: var(--a-easing);
|
|
23
|
+
--tree-duration-default: var(--a-duration-fast);
|
|
24
|
+
--tree-easing-default: var(--a-easing);
|
|
25
25
|
|
|
26
26
|
/* ── State ── */
|
|
27
|
-
--tree-focus-ring: var(--a-focus-ring);
|
|
27
|
+
--tree-focus-ring-default: var(--a-focus-ring);
|
|
28
28
|
}
|
|
29
29
|
|
|
30
30
|
:scope {
|
|
@@ -32,8 +32,8 @@
|
|
|
32
32
|
box-sizing: border-box;
|
|
33
33
|
display: flex;
|
|
34
34
|
flex-direction: column;
|
|
35
|
-
font-size: var(--tree-font-size);
|
|
36
|
-
color: var(--tree-fg);
|
|
35
|
+
font-size: var(--tree-font-size, var(--tree-font-size-default));
|
|
36
|
+
color: var(--tree-fg, var(--tree-fg-default));
|
|
37
37
|
}
|
|
38
38
|
}
|
|
39
39
|
|
|
@@ -69,35 +69,35 @@
|
|
|
69
69
|
[slot="row"] {
|
|
70
70
|
display: flex;
|
|
71
71
|
align-items: center;
|
|
72
|
-
gap: var(--tree-row-gap);
|
|
73
|
-
height: var(--tree-row-height);
|
|
74
|
-
padding-inline-end: var(--tree-row-px);
|
|
75
|
-
border-radius: var(--tree-row-radius);
|
|
72
|
+
gap: var(--tree-row-gap, var(--tree-row-gap-default));
|
|
73
|
+
height: var(--tree-row-height, var(--tree-row-height-default));
|
|
74
|
+
padding-inline-end: var(--tree-row-px, var(--tree-row-px-default));
|
|
75
|
+
border-radius: var(--tree-row-radius, var(--tree-row-radius-default));
|
|
76
76
|
cursor: pointer;
|
|
77
77
|
user-select: none;
|
|
78
78
|
white-space: nowrap;
|
|
79
79
|
transition:
|
|
80
|
-
background var(--tree-duration) var(--tree-easing),
|
|
81
|
-
color var(--tree-duration) var(--tree-easing);
|
|
80
|
+
background var(--tree-duration, var(--tree-duration-default)) var(--tree-easing, var(--tree-easing-default)),
|
|
81
|
+
color var(--tree-duration, var(--tree-duration-default)) var(--tree-easing, var(--tree-easing-default));
|
|
82
82
|
outline: none;
|
|
83
83
|
}
|
|
84
84
|
|
|
85
85
|
[slot="row"]:hover {
|
|
86
|
-
background: var(--tree-bg-hover);
|
|
86
|
+
background: var(--tree-bg-hover, var(--tree-bg-hover-default));
|
|
87
87
|
}
|
|
88
88
|
|
|
89
89
|
[slot="row"]:focus-visible {
|
|
90
|
-
box-shadow: var(--tree-focus-ring);
|
|
90
|
+
box-shadow: var(--tree-focus-ring, var(--tree-focus-ring-default));
|
|
91
91
|
}
|
|
92
92
|
|
|
93
93
|
/* :scope[selected] rules moved outside @scope — see tree-ui Safari note at end of file. */
|
|
94
94
|
|
|
95
95
|
/* ── Chevron ── */
|
|
96
96
|
[slot="chevron"] {
|
|
97
|
-
--a-icon-size: var(--tree-chevron-size);
|
|
97
|
+
--a-icon-size: var(--tree-chevron-size, var(--tree-chevron-size-default));
|
|
98
98
|
flex-shrink: 0;
|
|
99
|
-
color: var(--tree-fg-muted);
|
|
100
|
-
transition: transform var(--tree-duration) var(--tree-easing);
|
|
99
|
+
color: var(--tree-fg-muted, var(--tree-fg-muted-default));
|
|
100
|
+
transition: transform var(--tree-duration, var(--tree-duration-default)) var(--tree-easing, var(--tree-easing-default));
|
|
101
101
|
transform: rotate(90deg);
|
|
102
102
|
}
|
|
103
103
|
|
|
@@ -112,8 +112,8 @@
|
|
|
112
112
|
|
|
113
113
|
/* ── Icon ── */
|
|
114
114
|
[slot="icon"] {
|
|
115
|
-
--a-icon-size: var(--tree-icon-size);
|
|
116
|
-
color: var(--tree-fg-muted);
|
|
115
|
+
--a-icon-size: var(--tree-icon-size, var(--tree-icon-size-default));
|
|
116
|
+
color: var(--tree-fg-muted, var(--tree-fg-muted-default));
|
|
117
117
|
flex-shrink: 0;
|
|
118
118
|
}
|
|
119
119
|
|
|
@@ -134,7 +134,7 @@
|
|
|
134
134
|
[slot="badge"] {
|
|
135
135
|
flex-shrink: 0;
|
|
136
136
|
font-size: var(--tree-badge-size, var(--a-ui-xs));
|
|
137
|
-
color: var(--tree-badge-fg, var(--tree-fg-muted));
|
|
137
|
+
color: var(--tree-badge-fg, var(--tree-fg-muted, var(--tree-fg-muted-default)));
|
|
138
138
|
background: var(--tree-badge-bg, transparent);
|
|
139
139
|
padding: 0 var(--tree-badge-px, var(--a-space-1));
|
|
140
140
|
border-radius: var(--tree-badge-radius, var(--a-radius-sm));
|
|
@@ -149,10 +149,10 @@
|
|
|
149
149
|
[slot="actions"] {
|
|
150
150
|
display: flex;
|
|
151
151
|
align-items: center;
|
|
152
|
-
gap: var(--tree-actions-gap);
|
|
152
|
+
gap: var(--tree-actions-gap, var(--tree-actions-gap-default));
|
|
153
153
|
margin-inline-start: auto;
|
|
154
154
|
opacity: 0;
|
|
155
|
-
transition: opacity var(--tree-duration) var(--tree-easing);
|
|
155
|
+
transition: opacity var(--tree-duration, var(--tree-duration-default)) var(--tree-easing, var(--tree-easing-default));
|
|
156
156
|
}
|
|
157
157
|
|
|
158
158
|
[slot="row"]:hover [slot="actions"] {
|
|
@@ -173,11 +173,11 @@
|
|
|
173
173
|
`:where(:scope)` still resolve via inheritance. See
|
|
174
174
|
docs/BROWSER-COMPAT.md §3a. */
|
|
175
175
|
tree-ui[selected] > [slot="row"] {
|
|
176
|
-
background: var(--tree-bg-selected);
|
|
177
|
-
color: var(--tree-fg);
|
|
176
|
+
background: var(--tree-bg-selected, var(--tree-bg-selected-default));
|
|
177
|
+
color: var(--tree-fg, var(--tree-fg-default));
|
|
178
178
|
}
|
|
179
179
|
tree-ui[selected] > [slot="row"] [slot="icon"] {
|
|
180
|
-
color: var(--tree-fg);
|
|
180
|
+
color: var(--tree-fg, var(--tree-fg-default));
|
|
181
181
|
}
|
|
182
182
|
tree-ui[selected] > [slot="row"] [slot="actions"] {
|
|
183
183
|
opacity: 1;
|