@robert-stackflow/oneui 0.6.22 → 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 -24
- package/README.md +270 -270
- 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/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/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/package.json +1 -1
- package/styles/base.css +206 -206
- package/styles/blue.css +270 -270
- package/styles/minimal.css +319 -319
|
@@ -1,98 +1,98 @@
|
|
|
1
|
-
.card {
|
|
2
|
-
display: flex;
|
|
3
|
-
flex-direction: column;
|
|
4
|
-
padding: 24px;
|
|
5
|
-
color: var(--fg);
|
|
6
|
-
text-decoration: none;
|
|
7
|
-
transition:
|
|
8
|
-
border-color var(--motion-hover),
|
|
9
|
-
box-shadow var(--motion-hover);
|
|
10
|
-
}
|
|
11
|
-
.card:hover {
|
|
12
|
-
border-color: color-mix(in srgb, var(--accent) 35%, var(--line));
|
|
13
|
-
box-shadow: var(--shadow);
|
|
14
|
-
}
|
|
15
|
-
.header {
|
|
16
|
-
display: flex;
|
|
17
|
-
align-items: center;
|
|
18
|
-
gap: 12px;
|
|
19
|
-
min-width: 0;
|
|
20
|
-
}
|
|
21
|
-
.icon {
|
|
22
|
-
width: 40px;
|
|
23
|
-
height: 40px;
|
|
24
|
-
flex: none;
|
|
25
|
-
border-radius: var(--radius);
|
|
26
|
-
display: grid;
|
|
27
|
-
place-items: center;
|
|
28
|
-
background: var(--selected);
|
|
29
|
-
color: var(--accent-ink, var(--accent));
|
|
30
|
-
}
|
|
31
|
-
.icon svg {
|
|
32
|
-
width: 20px;
|
|
33
|
-
height: 20px;
|
|
34
|
-
}
|
|
35
|
-
.heading {
|
|
36
|
-
flex: 1;
|
|
37
|
-
min-width: 0;
|
|
38
|
-
}
|
|
39
|
-
.heading h3 {
|
|
40
|
-
font-size: 15px;
|
|
41
|
-
font-weight: 600;
|
|
42
|
-
color: var(--fg);
|
|
43
|
-
overflow: hidden;
|
|
44
|
-
text-overflow: ellipsis;
|
|
45
|
-
white-space: nowrap;
|
|
46
|
-
}
|
|
47
|
-
.heading p {
|
|
48
|
-
font-size: 12px;
|
|
49
|
-
color: var(--muted);
|
|
50
|
-
margin-top: 3px;
|
|
51
|
-
overflow: hidden;
|
|
52
|
-
text-overflow: ellipsis;
|
|
53
|
-
white-space: nowrap;
|
|
54
|
-
}
|
|
55
|
-
.description {
|
|
56
|
-
font-size: 13px;
|
|
57
|
-
line-height: 1.7;
|
|
58
|
-
margin: 18px 0 0;
|
|
59
|
-
color: var(--muted);
|
|
60
|
-
display: -webkit-box;
|
|
61
|
-
-webkit-line-clamp: 2;
|
|
62
|
-
-webkit-box-orient: vertical;
|
|
63
|
-
overflow: hidden;
|
|
64
|
-
}
|
|
65
|
-
.footer {
|
|
66
|
-
display: flex;
|
|
67
|
-
align-items: center;
|
|
68
|
-
justify-content: space-between;
|
|
69
|
-
gap: 12px;
|
|
70
|
-
margin-top: auto;
|
|
71
|
-
padding-top: 20px;
|
|
72
|
-
color: var(--muted);
|
|
73
|
-
}
|
|
74
|
-
.facts {
|
|
75
|
-
display: flex;
|
|
76
|
-
align-items: center;
|
|
77
|
-
flex-wrap: wrap;
|
|
78
|
-
gap: 6px 14px;
|
|
79
|
-
font-size: 12px;
|
|
80
|
-
}
|
|
81
|
-
.facts > span + span {
|
|
82
|
-
padding-left: 14px;
|
|
83
|
-
border-left: 1px solid var(--line);
|
|
84
|
-
}
|
|
85
|
-
@media (max-width: 600px) {
|
|
86
|
-
.card {
|
|
87
|
-
padding: 18px;
|
|
88
|
-
}
|
|
89
|
-
.header {
|
|
90
|
-
gap: 10px;
|
|
91
|
-
}
|
|
92
|
-
.facts {
|
|
93
|
-
gap: 6px 10px;
|
|
94
|
-
}
|
|
95
|
-
.facts > span + span {
|
|
96
|
-
padding-left: 10px;
|
|
97
|
-
}
|
|
98
|
-
}
|
|
1
|
+
.card {
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-direction: column;
|
|
4
|
+
padding: 24px;
|
|
5
|
+
color: var(--fg);
|
|
6
|
+
text-decoration: none;
|
|
7
|
+
transition:
|
|
8
|
+
border-color var(--motion-hover),
|
|
9
|
+
box-shadow var(--motion-hover);
|
|
10
|
+
}
|
|
11
|
+
.card:hover {
|
|
12
|
+
border-color: color-mix(in srgb, var(--accent) 35%, var(--line));
|
|
13
|
+
box-shadow: var(--shadow);
|
|
14
|
+
}
|
|
15
|
+
.header {
|
|
16
|
+
display: flex;
|
|
17
|
+
align-items: center;
|
|
18
|
+
gap: 12px;
|
|
19
|
+
min-width: 0;
|
|
20
|
+
}
|
|
21
|
+
.icon {
|
|
22
|
+
width: 40px;
|
|
23
|
+
height: 40px;
|
|
24
|
+
flex: none;
|
|
25
|
+
border-radius: var(--radius);
|
|
26
|
+
display: grid;
|
|
27
|
+
place-items: center;
|
|
28
|
+
background: var(--selected);
|
|
29
|
+
color: var(--accent-ink, var(--accent));
|
|
30
|
+
}
|
|
31
|
+
.icon svg {
|
|
32
|
+
width: 20px;
|
|
33
|
+
height: 20px;
|
|
34
|
+
}
|
|
35
|
+
.heading {
|
|
36
|
+
flex: 1;
|
|
37
|
+
min-width: 0;
|
|
38
|
+
}
|
|
39
|
+
.heading h3 {
|
|
40
|
+
font-size: 15px;
|
|
41
|
+
font-weight: 600;
|
|
42
|
+
color: var(--fg);
|
|
43
|
+
overflow: hidden;
|
|
44
|
+
text-overflow: ellipsis;
|
|
45
|
+
white-space: nowrap;
|
|
46
|
+
}
|
|
47
|
+
.heading p {
|
|
48
|
+
font-size: 12px;
|
|
49
|
+
color: var(--muted);
|
|
50
|
+
margin-top: 3px;
|
|
51
|
+
overflow: hidden;
|
|
52
|
+
text-overflow: ellipsis;
|
|
53
|
+
white-space: nowrap;
|
|
54
|
+
}
|
|
55
|
+
.description {
|
|
56
|
+
font-size: 13px;
|
|
57
|
+
line-height: 1.7;
|
|
58
|
+
margin: 18px 0 0;
|
|
59
|
+
color: var(--muted);
|
|
60
|
+
display: -webkit-box;
|
|
61
|
+
-webkit-line-clamp: 2;
|
|
62
|
+
-webkit-box-orient: vertical;
|
|
63
|
+
overflow: hidden;
|
|
64
|
+
}
|
|
65
|
+
.footer {
|
|
66
|
+
display: flex;
|
|
67
|
+
align-items: center;
|
|
68
|
+
justify-content: space-between;
|
|
69
|
+
gap: 12px;
|
|
70
|
+
margin-top: auto;
|
|
71
|
+
padding-top: 20px;
|
|
72
|
+
color: var(--muted);
|
|
73
|
+
}
|
|
74
|
+
.facts {
|
|
75
|
+
display: flex;
|
|
76
|
+
align-items: center;
|
|
77
|
+
flex-wrap: wrap;
|
|
78
|
+
gap: 6px 14px;
|
|
79
|
+
font-size: 12px;
|
|
80
|
+
}
|
|
81
|
+
.facts > span + span {
|
|
82
|
+
padding-left: 14px;
|
|
83
|
+
border-left: 1px solid var(--line);
|
|
84
|
+
}
|
|
85
|
+
@media (max-width: 600px) {
|
|
86
|
+
.card {
|
|
87
|
+
padding: 18px;
|
|
88
|
+
}
|
|
89
|
+
.header {
|
|
90
|
+
gap: 10px;
|
|
91
|
+
}
|
|
92
|
+
.facts {
|
|
93
|
+
gap: 6px 10px;
|
|
94
|
+
}
|
|
95
|
+
.facts > span + span {
|
|
96
|
+
padding-left: 10px;
|
|
97
|
+
}
|
|
98
|
+
}
|
|
@@ -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
|
+
}
|