@robert-stackflow/oneui 0.6.21 → 0.6.23
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 +30 -18
- package/README.md +270 -264
- package/components/AccountItem.module.css +103 -103
- package/components/AppShell.module.css +223 -223
- package/components/Badge.module.css +30 -30
- package/components/BarChart.module.css +35 -35
- package/components/Breadcrumb.module.css +97 -97
- package/components/Button.module.css +120 -120
- package/components/Checkbox.module.css +95 -95
- package/components/ContextMenu.d.ts +3 -1
- package/components/ContextMenu.js +24 -4
- package/components/ContributionCalendar.module.css +121 -121
- package/components/Control.module.css +86 -86
- package/components/DataTable.module.css +75 -75
- package/components/Dialog.module.css +139 -139
- package/components/EditableHeading.d.ts +12 -0
- package/components/EditableHeading.js +76 -0
- package/components/EditableHeading.module.css +16 -0
- package/components/HierarchyPicker.module.css +185 -185
- package/components/IconButton.d.ts +3 -1
- package/components/IconButton.js +13 -2
- package/components/IconButton.module.css +13 -0
- package/components/Indicator.module.css +83 -83
- package/components/Layout.d.ts +1 -0
- package/components/Layout.module.css +82 -82
- package/components/Markdown.module.css +227 -227
- package/components/MenuItem.module.css +172 -172
- package/components/NavBar.module.css +130 -130
- package/components/Popover.d.ts +5 -1
- package/components/Popover.js +59 -28
- package/components/Popover.module.css +52 -0
- package/components/Progress.module.css +33 -33
- package/components/RadioGroup.module.css +87 -87
- package/components/RangeSlider.module.css +141 -141
- package/components/ResizablePanel.module.css +101 -101
- package/components/ResourceCard.module.css +98 -98
- package/components/Segmented.module.css +85 -85
- package/components/SidebarNavigation.js +4 -2
- package/components/SidebarNavigation.module.css +7 -2
- package/components/Slider.module.css +19 -19
- package/components/Steps.module.css +176 -176
- package/components/Tab.module.css +148 -148
- package/components/Table.module.css +87 -87
- package/components/TableOfContents.module.css +252 -252
- package/components/ThemePicker.module.css +178 -178
- package/components/TimeColumns.module.css +47 -47
- package/components/Timeline.module.css +202 -202
- package/components/TreeTable.module.css +57 -57
- package/components/UptimeChart.module.css +15 -15
- package/components/index.d.ts +2 -0
- package/components/index.js +2 -0
- package/components/motion.d.ts +1 -0
- package/components/motion.js +16 -2
- package/package.json +1 -1
- package/styles/base.css +206 -206
- package/styles/blue.css +270 -270
- package/styles/minimal.css +319 -319
|
@@ -1,85 +1,85 @@
|
|
|
1
|
-
.segmented {
|
|
2
|
-
position: relative;
|
|
3
|
-
isolation: isolate;
|
|
4
|
-
display: inline-flex;
|
|
5
|
-
width: max-content;
|
|
6
|
-
align-self: flex-start;
|
|
7
|
-
gap: 3px;
|
|
8
|
-
padding: 3px;
|
|
9
|
-
background: var(--soft);
|
|
10
|
-
border: 1px solid var(--line);
|
|
11
|
-
border-radius: calc(var(--radius) - 2px);
|
|
12
|
-
}
|
|
13
|
-
.indicator {
|
|
14
|
-
opacity: var(--segment-opacity, 0);
|
|
15
|
-
position: absolute;
|
|
16
|
-
left: 0;
|
|
17
|
-
top: 0;
|
|
18
|
-
width: var(--segment-width, 0px);
|
|
19
|
-
height: var(--segment-height, 0px);
|
|
20
|
-
transform: translate(var(--segment-x, 0px), var(--segment-y, 0px));
|
|
21
|
-
border-radius: calc(var(--radius) - 5px);
|
|
22
|
-
background: var(--surface);
|
|
23
|
-
box-shadow: 0 1px 3px #0000000d;
|
|
24
|
-
pointer-events: none;
|
|
25
|
-
z-index: 0;
|
|
26
|
-
}
|
|
27
|
-
.segmented[data-ready="true"] .indicator {
|
|
28
|
-
transition:
|
|
29
|
-
transform var(--motion-segment) var(--ease),
|
|
30
|
-
width var(--motion-segment) var(--ease),
|
|
31
|
-
height var(--motion-segment) var(--ease);
|
|
32
|
-
}
|
|
33
|
-
.segmented button {
|
|
34
|
-
position: relative;
|
|
35
|
-
z-index: 1;
|
|
36
|
-
display: flex;
|
|
37
|
-
align-items: center;
|
|
38
|
-
justify-content: center;
|
|
39
|
-
gap: 6px;
|
|
40
|
-
min-height: 26px;
|
|
41
|
-
border: 0;
|
|
42
|
-
padding: 4px 12px;
|
|
43
|
-
border-radius: calc(var(--radius) - 5px);
|
|
44
|
-
background: transparent;
|
|
45
|
-
color: var(--muted);
|
|
46
|
-
font-size: 12px;
|
|
47
|
-
transition:
|
|
48
|
-
color var(--motion-hover) var(--ease),
|
|
49
|
-
scale var(--motion-press) var(--ease);
|
|
50
|
-
}
|
|
51
|
-
.segmented button[aria-pressed="true"] {
|
|
52
|
-
color: var(--fg);
|
|
53
|
-
}
|
|
54
|
-
.segmented button:active:not(:disabled) {
|
|
55
|
-
scale: 0.97;
|
|
56
|
-
}
|
|
57
|
-
.segmented {
|
|
58
|
-
max-width: 100%;
|
|
59
|
-
overflow: auto;
|
|
60
|
-
border-radius: var(--segment-radius);
|
|
61
|
-
background: var(--segment-background);
|
|
62
|
-
}
|
|
63
|
-
.segmented button {
|
|
64
|
-
min-height: var(--segment-height-min);
|
|
65
|
-
font-size: var(--field-font-size);
|
|
66
|
-
white-space: nowrap;
|
|
67
|
-
cursor: pointer;
|
|
68
|
-
}
|
|
69
|
-
.segmented button[aria-pressed="true"] {
|
|
70
|
-
color: var(--segment-selected-color);
|
|
71
|
-
}
|
|
72
|
-
.segmented button:disabled {
|
|
73
|
-
opacity: 0.45;
|
|
74
|
-
cursor: not-allowed;
|
|
75
|
-
}
|
|
76
|
-
.segmented button svg {
|
|
77
|
-
width: 16px;
|
|
78
|
-
height: 16px;
|
|
79
|
-
}
|
|
80
|
-
.segmented button:focus-visible {
|
|
81
|
-
outline-offset: -2px;
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
.segmented[data-full-width] { width: 100%; align-self: stretch; }
|
|
85
|
-
.segmented[data-full-width] button { flex: 1; min-width: 0; }
|
|
1
|
+
.segmented {
|
|
2
|
+
position: relative;
|
|
3
|
+
isolation: isolate;
|
|
4
|
+
display: inline-flex;
|
|
5
|
+
width: max-content;
|
|
6
|
+
align-self: flex-start;
|
|
7
|
+
gap: 3px;
|
|
8
|
+
padding: 3px;
|
|
9
|
+
background: var(--soft);
|
|
10
|
+
border: 1px solid var(--line);
|
|
11
|
+
border-radius: calc(var(--radius) - 2px);
|
|
12
|
+
}
|
|
13
|
+
.indicator {
|
|
14
|
+
opacity: var(--segment-opacity, 0);
|
|
15
|
+
position: absolute;
|
|
16
|
+
left: 0;
|
|
17
|
+
top: 0;
|
|
18
|
+
width: var(--segment-width, 0px);
|
|
19
|
+
height: var(--segment-height, 0px);
|
|
20
|
+
transform: translate(var(--segment-x, 0px), var(--segment-y, 0px));
|
|
21
|
+
border-radius: calc(var(--radius) - 5px);
|
|
22
|
+
background: var(--surface);
|
|
23
|
+
box-shadow: 0 1px 3px #0000000d;
|
|
24
|
+
pointer-events: none;
|
|
25
|
+
z-index: 0;
|
|
26
|
+
}
|
|
27
|
+
.segmented[data-ready="true"] .indicator {
|
|
28
|
+
transition:
|
|
29
|
+
transform var(--motion-segment) var(--ease),
|
|
30
|
+
width var(--motion-segment) var(--ease),
|
|
31
|
+
height var(--motion-segment) var(--ease);
|
|
32
|
+
}
|
|
33
|
+
.segmented button {
|
|
34
|
+
position: relative;
|
|
35
|
+
z-index: 1;
|
|
36
|
+
display: flex;
|
|
37
|
+
align-items: center;
|
|
38
|
+
justify-content: center;
|
|
39
|
+
gap: 6px;
|
|
40
|
+
min-height: 26px;
|
|
41
|
+
border: 0;
|
|
42
|
+
padding: 4px 12px;
|
|
43
|
+
border-radius: calc(var(--radius) - 5px);
|
|
44
|
+
background: transparent;
|
|
45
|
+
color: var(--muted);
|
|
46
|
+
font-size: 12px;
|
|
47
|
+
transition:
|
|
48
|
+
color var(--motion-hover) var(--ease),
|
|
49
|
+
scale var(--motion-press) var(--ease);
|
|
50
|
+
}
|
|
51
|
+
.segmented button[aria-pressed="true"] {
|
|
52
|
+
color: var(--fg);
|
|
53
|
+
}
|
|
54
|
+
.segmented button:active:not(:disabled) {
|
|
55
|
+
scale: 0.97;
|
|
56
|
+
}
|
|
57
|
+
.segmented {
|
|
58
|
+
max-width: 100%;
|
|
59
|
+
overflow: auto;
|
|
60
|
+
border-radius: var(--segment-radius);
|
|
61
|
+
background: var(--segment-background);
|
|
62
|
+
}
|
|
63
|
+
.segmented button {
|
|
64
|
+
min-height: var(--segment-height-min);
|
|
65
|
+
font-size: var(--field-font-size);
|
|
66
|
+
white-space: nowrap;
|
|
67
|
+
cursor: pointer;
|
|
68
|
+
}
|
|
69
|
+
.segmented button[aria-pressed="true"] {
|
|
70
|
+
color: var(--segment-selected-color);
|
|
71
|
+
}
|
|
72
|
+
.segmented button:disabled {
|
|
73
|
+
opacity: 0.45;
|
|
74
|
+
cursor: not-allowed;
|
|
75
|
+
}
|
|
76
|
+
.segmented button svg {
|
|
77
|
+
width: 16px;
|
|
78
|
+
height: 16px;
|
|
79
|
+
}
|
|
80
|
+
.segmented button:focus-visible {
|
|
81
|
+
outline-offset: -2px;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.segmented[data-full-width] { width: 100%; align-self: stretch; }
|
|
85
|
+
.segmented[data-full-width] button { flex: 1; min-width: 0; }
|
|
@@ -91,6 +91,8 @@ function SidebarNavigation({
|
|
|
91
91
|
if (!visible || !rect) return;
|
|
92
92
|
const bounds = node.getBoundingClientRect();
|
|
93
93
|
node.style.setProperty("--nav-track-y", `${rect.top - bounds.top}px`);
|
|
94
|
+
node.style.setProperty("--nav-track-x", `${rect.left - bounds.left}px`);
|
|
95
|
+
node.style.setProperty("--nav-track-width", `${rect.width}px`);
|
|
94
96
|
node.style.setProperty("--nav-track-height", `${rect.height}px`);
|
|
95
97
|
if (!node.dataset.ready) {
|
|
96
98
|
node.getBoundingClientRect();
|
|
@@ -268,7 +270,7 @@ function Branch({
|
|
|
268
270
|
className: s.item,
|
|
269
271
|
"data-navigation-item": true,
|
|
270
272
|
"data-has-icon": Boolean(item.icon) || void 0,
|
|
271
|
-
title: item.label,
|
|
273
|
+
title: compact ? item.label : void 0,
|
|
272
274
|
disabled: item.disabled,
|
|
273
275
|
"aria-current": active === item.id ? "page" : void 0,
|
|
274
276
|
onClick: () => onNavigate(item.path),
|
|
@@ -288,7 +290,7 @@ function Branch({
|
|
|
288
290
|
"aria-disabled": item.disabled || void 0,
|
|
289
291
|
tabIndex: item.disabled ? -1 : void 0,
|
|
290
292
|
"aria-current": active === item.id ? "page" : void 0,
|
|
291
|
-
title: item.label,
|
|
293
|
+
title: compact ? item.label : void 0,
|
|
292
294
|
onClick: (event) => {
|
|
293
295
|
if (item.disabled) event.preventDefault();
|
|
294
296
|
else navigate(event, item.path);
|
|
@@ -77,6 +77,9 @@
|
|
|
77
77
|
.tree:not([data-ready]) .row:has(> .item[aria-current="page"]) {
|
|
78
78
|
background: var(--selected);
|
|
79
79
|
}
|
|
80
|
+
.row:has(> .item:active:not(:disabled):not([aria-disabled="true"])) {
|
|
81
|
+
background: var(--selected);
|
|
82
|
+
}
|
|
80
83
|
.item,
|
|
81
84
|
.navigationButton {
|
|
82
85
|
position: relative;
|
|
@@ -219,8 +222,8 @@
|
|
|
219
222
|
position: absolute;
|
|
220
223
|
z-index: -1;
|
|
221
224
|
top: 0;
|
|
222
|
-
left: 0;
|
|
223
|
-
|
|
225
|
+
left: var(--nav-track-x, 0);
|
|
226
|
+
width: var(--nav-track-width, 100%);
|
|
224
227
|
height: var(--nav-track-height, 0);
|
|
225
228
|
border-radius: var(--nav-radius, 8px);
|
|
226
229
|
background: var(--selected);
|
|
@@ -245,6 +248,8 @@
|
|
|
245
248
|
}
|
|
246
249
|
.tree[data-ready] > .track {
|
|
247
250
|
transition:
|
|
251
|
+
left var(--motion-segment, 240ms) var(--ease),
|
|
252
|
+
width var(--motion-segment, 240ms) var(--ease),
|
|
248
253
|
transform var(--motion-segment, 240ms) var(--ease),
|
|
249
254
|
height var(--motion-segment, 240ms) var(--ease),
|
|
250
255
|
opacity var(--motion-hover, 160ms) var(--ease);
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
.field {
|
|
2
|
-
display: grid;
|
|
3
|
-
gap: 12px;
|
|
4
|
-
}
|
|
5
|
-
.field label {
|
|
6
|
-
display: flex;
|
|
7
|
-
justify-content: space-between;
|
|
8
|
-
font-size: 12px;
|
|
9
|
-
}
|
|
10
|
-
.field label span {
|
|
11
|
-
color: var(--muted);
|
|
12
|
-
font-variant-numeric: tabular-nums;
|
|
13
|
-
}
|
|
14
|
-
.field input {
|
|
15
|
-
width: 100%;
|
|
16
|
-
margin: 6px 0;
|
|
17
|
-
accent-color: var(--accent-ink, var(--accent));
|
|
18
|
-
cursor: pointer;
|
|
19
|
-
}
|
|
1
|
+
.field {
|
|
2
|
+
display: grid;
|
|
3
|
+
gap: 12px;
|
|
4
|
+
}
|
|
5
|
+
.field label {
|
|
6
|
+
display: flex;
|
|
7
|
+
justify-content: space-between;
|
|
8
|
+
font-size: 12px;
|
|
9
|
+
}
|
|
10
|
+
.field label span {
|
|
11
|
+
color: var(--muted);
|
|
12
|
+
font-variant-numeric: tabular-nums;
|
|
13
|
+
}
|
|
14
|
+
.field input {
|
|
15
|
+
width: 100%;
|
|
16
|
+
margin: 6px 0;
|
|
17
|
+
accent-color: var(--accent-ink, var(--accent));
|
|
18
|
+
cursor: pointer;
|
|
19
|
+
}
|
|
@@ -1,176 +1,176 @@
|
|
|
1
|
-
.steps {
|
|
2
|
-
list-style: none;
|
|
3
|
-
display: flex;
|
|
4
|
-
min-width: 0;
|
|
5
|
-
margin: 0;
|
|
6
|
-
padding: 0;
|
|
7
|
-
gap: 0;
|
|
8
|
-
}
|
|
9
|
-
.item {
|
|
10
|
-
position: relative;
|
|
11
|
-
flex: 1;
|
|
12
|
-
min-width: 0;
|
|
13
|
-
padding-right: 20px;
|
|
14
|
-
isolation: isolate;
|
|
15
|
-
}
|
|
16
|
-
.item:last-child {
|
|
17
|
-
padding-right: 0;
|
|
18
|
-
}
|
|
19
|
-
.item:not(:last-child)::before,
|
|
20
|
-
.item:not(:last-child)::after {
|
|
21
|
-
content: "";
|
|
22
|
-
position: absolute;
|
|
23
|
-
left: 34px;
|
|
24
|
-
right: 8px;
|
|
25
|
-
top: 12px;
|
|
26
|
-
height: var(--separator-width);
|
|
27
|
-
background: var(--separator-color);
|
|
28
|
-
z-index: -1;
|
|
29
|
-
}
|
|
30
|
-
.item:not(:last-child)::after {
|
|
31
|
-
background: var(--accent-ink, var(--accent));
|
|
32
|
-
transform: scaleX(0);
|
|
33
|
-
transform-origin: left;
|
|
34
|
-
transition:
|
|
35
|
-
transform var(--motion-segment) var(--ease),
|
|
36
|
-
background var(--motion-hover);
|
|
37
|
-
}
|
|
38
|
-
.item[data-status="complete"]::after {
|
|
39
|
-
transform: scaleX(1);
|
|
40
|
-
}
|
|
41
|
-
.control {
|
|
42
|
-
display: flex;
|
|
43
|
-
align-items: flex-start;
|
|
44
|
-
flex-direction: column;
|
|
45
|
-
gap: 9px;
|
|
46
|
-
width: 100%;
|
|
47
|
-
min-width: 0;
|
|
48
|
-
padding: 0;
|
|
49
|
-
border: 0;
|
|
50
|
-
border-radius: max(4px, calc(var(--radius) - 3px));
|
|
51
|
-
background: transparent;
|
|
52
|
-
color: var(--muted);
|
|
53
|
-
text-align: left;
|
|
54
|
-
font-size: 12px;
|
|
55
|
-
}
|
|
56
|
-
.marker {
|
|
57
|
-
display: flex;
|
|
58
|
-
align-items: center;
|
|
59
|
-
justify-content: center;
|
|
60
|
-
width: 26px;
|
|
61
|
-
height: 26px;
|
|
62
|
-
flex: none;
|
|
63
|
-
border: 1px solid var(--line);
|
|
64
|
-
border-radius: 50%;
|
|
65
|
-
color: var(--muted);
|
|
66
|
-
background: var(--surface);
|
|
67
|
-
transition:
|
|
68
|
-
color var(--motion-hover),
|
|
69
|
-
background var(--motion-hover),
|
|
70
|
-
border-color var(--motion-hover),
|
|
71
|
-
box-shadow var(--motion-hover);
|
|
72
|
-
}
|
|
73
|
-
.mark {
|
|
74
|
-
display: flex;
|
|
75
|
-
align-items: center;
|
|
76
|
-
justify-content: center;
|
|
77
|
-
animation: mark-in var(--motion-segment) var(--ease);
|
|
78
|
-
}
|
|
79
|
-
.mark > svg {
|
|
80
|
-
width: 15px;
|
|
81
|
-
height: 15px;
|
|
82
|
-
}
|
|
83
|
-
.copy {
|
|
84
|
-
display: flex;
|
|
85
|
-
min-width: 0;
|
|
86
|
-
flex-direction: column;
|
|
87
|
-
gap: 4px;
|
|
88
|
-
line-height: 20px;
|
|
89
|
-
overflow-wrap: anywhere;
|
|
90
|
-
}
|
|
91
|
-
.label {
|
|
92
|
-
color: var(--fg);
|
|
93
|
-
transition: color var(--motion-hover);
|
|
94
|
-
}
|
|
95
|
-
.description {
|
|
96
|
-
color: var(--muted);
|
|
97
|
-
font-size: 11px;
|
|
98
|
-
line-height: 18px;
|
|
99
|
-
}
|
|
100
|
-
.item[data-status="current"] .marker,
|
|
101
|
-
.item[data-status="loading"] .marker {
|
|
102
|
-
color: var(--on-accent);
|
|
103
|
-
background: var(--accent);
|
|
104
|
-
border-color: var(--accent);
|
|
105
|
-
box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 9%, transparent);
|
|
106
|
-
}
|
|
107
|
-
.item[data-status="complete"] .marker {
|
|
108
|
-
color: var(--accent-ink, var(--accent));
|
|
109
|
-
background: color-mix(in srgb, var(--accent) 9%, var(--surface));
|
|
110
|
-
border-color: color-mix(in srgb, var(--accent) 35%, var(--surface));
|
|
111
|
-
}
|
|
112
|
-
.item[data-status="error"] .marker {
|
|
113
|
-
color: var(--danger);
|
|
114
|
-
border-color: var(--danger);
|
|
115
|
-
background: color-mix(in srgb, var(--danger) 8%, var(--surface));
|
|
116
|
-
}
|
|
117
|
-
.item[data-status="error"] .label {
|
|
118
|
-
color: var(--danger);
|
|
119
|
-
}
|
|
120
|
-
.control:is(button):hover:not(:disabled) .marker {
|
|
121
|
-
border-color: var(--accent);
|
|
122
|
-
}
|
|
123
|
-
.control:is(button):hover:not(:disabled) .label {
|
|
124
|
-
color: var(--accent-ink, var(--accent));
|
|
125
|
-
}
|
|
126
|
-
.control:focus-visible {
|
|
127
|
-
outline-offset: 5px;
|
|
128
|
-
}
|
|
129
|
-
.item[data-disabled="true"] .control {
|
|
130
|
-
opacity: 0.42;
|
|
131
|
-
}
|
|
132
|
-
.steps[data-orientation="vertical"] {
|
|
133
|
-
flex-direction: column;
|
|
134
|
-
}
|
|
135
|
-
.steps[data-orientation="vertical"] .item {
|
|
136
|
-
padding: 0 0 24px;
|
|
137
|
-
}
|
|
138
|
-
.steps[data-orientation="vertical"] .item:last-child {
|
|
139
|
-
padding-bottom: 0;
|
|
140
|
-
}
|
|
141
|
-
.steps[data-orientation="vertical"] .control {
|
|
142
|
-
flex-direction: row;
|
|
143
|
-
gap: 12px;
|
|
144
|
-
}
|
|
145
|
-
.steps[data-orientation="vertical"] .copy {
|
|
146
|
-
padding-top: 3px;
|
|
147
|
-
}
|
|
148
|
-
.steps[data-orientation="vertical"] .item:not(:last-child)::before,
|
|
149
|
-
.steps[data-orientation="vertical"] .item:not(:last-child)::after {
|
|
150
|
-
left: 12px;
|
|
151
|
-
right: auto;
|
|
152
|
-
top: 34px;
|
|
153
|
-
bottom: 8px;
|
|
154
|
-
width: var(--separator-width);
|
|
155
|
-
height: auto;
|
|
156
|
-
}
|
|
157
|
-
.steps[data-orientation="vertical"] .item:not(:last-child)::after {
|
|
158
|
-
transform: scaleY(0);
|
|
159
|
-
transform-origin: top;
|
|
160
|
-
}
|
|
161
|
-
.steps[data-orientation="vertical"] .item[data-status="complete"]::after {
|
|
162
|
-
transform: scaleY(1);
|
|
163
|
-
}
|
|
164
|
-
.srOnly {
|
|
165
|
-
composes: visuallyHidden from "./Accessibility.module.css";
|
|
166
|
-
}
|
|
167
|
-
@keyframes mark-in {
|
|
168
|
-
from {
|
|
169
|
-
opacity: 0;
|
|
170
|
-
transform: scale(0.85);
|
|
171
|
-
}
|
|
172
|
-
to {
|
|
173
|
-
opacity: 1;
|
|
174
|
-
transform: scale(1);
|
|
175
|
-
}
|
|
176
|
-
}
|
|
1
|
+
.steps {
|
|
2
|
+
list-style: none;
|
|
3
|
+
display: flex;
|
|
4
|
+
min-width: 0;
|
|
5
|
+
margin: 0;
|
|
6
|
+
padding: 0;
|
|
7
|
+
gap: 0;
|
|
8
|
+
}
|
|
9
|
+
.item {
|
|
10
|
+
position: relative;
|
|
11
|
+
flex: 1;
|
|
12
|
+
min-width: 0;
|
|
13
|
+
padding-right: 20px;
|
|
14
|
+
isolation: isolate;
|
|
15
|
+
}
|
|
16
|
+
.item:last-child {
|
|
17
|
+
padding-right: 0;
|
|
18
|
+
}
|
|
19
|
+
.item:not(:last-child)::before,
|
|
20
|
+
.item:not(:last-child)::after {
|
|
21
|
+
content: "";
|
|
22
|
+
position: absolute;
|
|
23
|
+
left: 34px;
|
|
24
|
+
right: 8px;
|
|
25
|
+
top: 12px;
|
|
26
|
+
height: var(--separator-width);
|
|
27
|
+
background: var(--separator-color);
|
|
28
|
+
z-index: -1;
|
|
29
|
+
}
|
|
30
|
+
.item:not(:last-child)::after {
|
|
31
|
+
background: var(--accent-ink, var(--accent));
|
|
32
|
+
transform: scaleX(0);
|
|
33
|
+
transform-origin: left;
|
|
34
|
+
transition:
|
|
35
|
+
transform var(--motion-segment) var(--ease),
|
|
36
|
+
background var(--motion-hover);
|
|
37
|
+
}
|
|
38
|
+
.item[data-status="complete"]::after {
|
|
39
|
+
transform: scaleX(1);
|
|
40
|
+
}
|
|
41
|
+
.control {
|
|
42
|
+
display: flex;
|
|
43
|
+
align-items: flex-start;
|
|
44
|
+
flex-direction: column;
|
|
45
|
+
gap: 9px;
|
|
46
|
+
width: 100%;
|
|
47
|
+
min-width: 0;
|
|
48
|
+
padding: 0;
|
|
49
|
+
border: 0;
|
|
50
|
+
border-radius: max(4px, calc(var(--radius) - 3px));
|
|
51
|
+
background: transparent;
|
|
52
|
+
color: var(--muted);
|
|
53
|
+
text-align: left;
|
|
54
|
+
font-size: 12px;
|
|
55
|
+
}
|
|
56
|
+
.marker {
|
|
57
|
+
display: flex;
|
|
58
|
+
align-items: center;
|
|
59
|
+
justify-content: center;
|
|
60
|
+
width: 26px;
|
|
61
|
+
height: 26px;
|
|
62
|
+
flex: none;
|
|
63
|
+
border: 1px solid var(--line);
|
|
64
|
+
border-radius: 50%;
|
|
65
|
+
color: var(--muted);
|
|
66
|
+
background: var(--surface);
|
|
67
|
+
transition:
|
|
68
|
+
color var(--motion-hover),
|
|
69
|
+
background var(--motion-hover),
|
|
70
|
+
border-color var(--motion-hover),
|
|
71
|
+
box-shadow var(--motion-hover);
|
|
72
|
+
}
|
|
73
|
+
.mark {
|
|
74
|
+
display: flex;
|
|
75
|
+
align-items: center;
|
|
76
|
+
justify-content: center;
|
|
77
|
+
animation: mark-in var(--motion-segment) var(--ease);
|
|
78
|
+
}
|
|
79
|
+
.mark > svg {
|
|
80
|
+
width: 15px;
|
|
81
|
+
height: 15px;
|
|
82
|
+
}
|
|
83
|
+
.copy {
|
|
84
|
+
display: flex;
|
|
85
|
+
min-width: 0;
|
|
86
|
+
flex-direction: column;
|
|
87
|
+
gap: 4px;
|
|
88
|
+
line-height: 20px;
|
|
89
|
+
overflow-wrap: anywhere;
|
|
90
|
+
}
|
|
91
|
+
.label {
|
|
92
|
+
color: var(--fg);
|
|
93
|
+
transition: color var(--motion-hover);
|
|
94
|
+
}
|
|
95
|
+
.description {
|
|
96
|
+
color: var(--muted);
|
|
97
|
+
font-size: 11px;
|
|
98
|
+
line-height: 18px;
|
|
99
|
+
}
|
|
100
|
+
.item[data-status="current"] .marker,
|
|
101
|
+
.item[data-status="loading"] .marker {
|
|
102
|
+
color: var(--on-accent);
|
|
103
|
+
background: var(--accent);
|
|
104
|
+
border-color: var(--accent);
|
|
105
|
+
box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 9%, transparent);
|
|
106
|
+
}
|
|
107
|
+
.item[data-status="complete"] .marker {
|
|
108
|
+
color: var(--accent-ink, var(--accent));
|
|
109
|
+
background: color-mix(in srgb, var(--accent) 9%, var(--surface));
|
|
110
|
+
border-color: color-mix(in srgb, var(--accent) 35%, var(--surface));
|
|
111
|
+
}
|
|
112
|
+
.item[data-status="error"] .marker {
|
|
113
|
+
color: var(--danger);
|
|
114
|
+
border-color: var(--danger);
|
|
115
|
+
background: color-mix(in srgb, var(--danger) 8%, var(--surface));
|
|
116
|
+
}
|
|
117
|
+
.item[data-status="error"] .label {
|
|
118
|
+
color: var(--danger);
|
|
119
|
+
}
|
|
120
|
+
.control:is(button):hover:not(:disabled) .marker {
|
|
121
|
+
border-color: var(--accent);
|
|
122
|
+
}
|
|
123
|
+
.control:is(button):hover:not(:disabled) .label {
|
|
124
|
+
color: var(--accent-ink, var(--accent));
|
|
125
|
+
}
|
|
126
|
+
.control:focus-visible {
|
|
127
|
+
outline-offset: 5px;
|
|
128
|
+
}
|
|
129
|
+
.item[data-disabled="true"] .control {
|
|
130
|
+
opacity: 0.42;
|
|
131
|
+
}
|
|
132
|
+
.steps[data-orientation="vertical"] {
|
|
133
|
+
flex-direction: column;
|
|
134
|
+
}
|
|
135
|
+
.steps[data-orientation="vertical"] .item {
|
|
136
|
+
padding: 0 0 24px;
|
|
137
|
+
}
|
|
138
|
+
.steps[data-orientation="vertical"] .item:last-child {
|
|
139
|
+
padding-bottom: 0;
|
|
140
|
+
}
|
|
141
|
+
.steps[data-orientation="vertical"] .control {
|
|
142
|
+
flex-direction: row;
|
|
143
|
+
gap: 12px;
|
|
144
|
+
}
|
|
145
|
+
.steps[data-orientation="vertical"] .copy {
|
|
146
|
+
padding-top: 3px;
|
|
147
|
+
}
|
|
148
|
+
.steps[data-orientation="vertical"] .item:not(:last-child)::before,
|
|
149
|
+
.steps[data-orientation="vertical"] .item:not(:last-child)::after {
|
|
150
|
+
left: 12px;
|
|
151
|
+
right: auto;
|
|
152
|
+
top: 34px;
|
|
153
|
+
bottom: 8px;
|
|
154
|
+
width: var(--separator-width);
|
|
155
|
+
height: auto;
|
|
156
|
+
}
|
|
157
|
+
.steps[data-orientation="vertical"] .item:not(:last-child)::after {
|
|
158
|
+
transform: scaleY(0);
|
|
159
|
+
transform-origin: top;
|
|
160
|
+
}
|
|
161
|
+
.steps[data-orientation="vertical"] .item[data-status="complete"]::after {
|
|
162
|
+
transform: scaleY(1);
|
|
163
|
+
}
|
|
164
|
+
.srOnly {
|
|
165
|
+
composes: visuallyHidden from "./Accessibility.module.css";
|
|
166
|
+
}
|
|
167
|
+
@keyframes mark-in {
|
|
168
|
+
from {
|
|
169
|
+
opacity: 0;
|
|
170
|
+
transform: scale(0.85);
|
|
171
|
+
}
|
|
172
|
+
to {
|
|
173
|
+
opacity: 1;
|
|
174
|
+
transform: scale(1);
|
|
175
|
+
}
|
|
176
|
+
}
|