@robert-stackflow/oneui 0.6.40 → 0.6.42
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 +14 -0
- package/README.md +9 -1
- 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/Control.module.css +86 -86
- package/components/DataTable.module.css +75 -75
- package/components/Form.d.ts +5 -1
- package/components/Form.js +5 -1
- package/components/FormField.js +1 -0
- package/components/HierarchyPicker.module.css +185 -185
- package/components/Indicator.module.css +83 -83
- package/components/Layout.module.css +82 -82
- package/components/Markdown.module.css +227 -227
- package/components/NativeForm.d.ts +10 -0
- package/components/NativeForm.js +155 -0
- 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/Slider.module.css +19 -19
- package/components/Steps.module.css +176 -176
- package/components/Tab.module.css +148 -148
- package/components/ThemePicker.module.css +178 -178
- package/components/TimeColumns.module.css +47 -47
- package/components/Timeline.module.css +202 -202
- package/components/Toast.d.ts +7 -2
- package/components/Toast.js +146 -98
- package/components/Toast.module.css +182 -85
- package/components/ToastProvider.js +19 -62
- package/components/ToastStack.d.ts +8 -0
- package/components/ToastStack.js +190 -0
- package/components/TreeTable.module.css +57 -57
- package/components/UptimeChart.module.css +15 -15
- package/components/field.d.ts +1 -1
- package/components/field.js +2 -1
- package/components/form-validation.d.ts +4 -0
- package/components/form-validation.js +22 -0
- package/components/index.d.ts +4 -2
- package/components/index.js +9 -3
- package/package.json +1 -1
- package/styles/blue.css +270 -270
|
@@ -1,202 +1,202 @@
|
|
|
1
|
-
.timeline {
|
|
2
|
-
container-type: inline-size;
|
|
3
|
-
margin: 0;
|
|
4
|
-
padding: 0;
|
|
5
|
-
list-style: none;
|
|
6
|
-
}
|
|
7
|
-
.item {
|
|
8
|
-
display: grid;
|
|
9
|
-
grid-template-columns: 24px minmax(0, 1fr);
|
|
10
|
-
gap: 14px;
|
|
11
|
-
min-width: 0;
|
|
12
|
-
animation: timelineIn 140ms var(--ease);
|
|
13
|
-
}
|
|
14
|
-
.marker {
|
|
15
|
-
position: relative;
|
|
16
|
-
grid-column: 1;
|
|
17
|
-
grid-row: 1;
|
|
18
|
-
min-height: 22px;
|
|
19
|
-
color: var(--timeline-color, var(--accent-ink, var(--accent)));
|
|
20
|
-
}
|
|
21
|
-
.item:not(:last-child) .marker::after {
|
|
22
|
-
content: "";
|
|
23
|
-
position: absolute;
|
|
24
|
-
width: var(--separator-width);
|
|
25
|
-
background: var(--separator-color);
|
|
26
|
-
top: 23px;
|
|
27
|
-
bottom: 0;
|
|
28
|
-
left: 50%;
|
|
29
|
-
transform: translateX(-50%);
|
|
30
|
-
}
|
|
31
|
-
.dot {
|
|
32
|
-
position: absolute;
|
|
33
|
-
top: 1px;
|
|
34
|
-
left: 50%;
|
|
35
|
-
transform: translateX(-50%);
|
|
36
|
-
display: grid;
|
|
37
|
-
place-items: center;
|
|
38
|
-
width: 20px;
|
|
39
|
-
height: 20px;
|
|
40
|
-
}
|
|
41
|
-
.dot > i {
|
|
42
|
-
display: block;
|
|
43
|
-
width: 7px;
|
|
44
|
-
height: 7px;
|
|
45
|
-
border-radius: 50%;
|
|
46
|
-
background: currentColor;
|
|
47
|
-
}
|
|
48
|
-
.dot > svg {
|
|
49
|
-
width: 16px;
|
|
50
|
-
height: 16px;
|
|
51
|
-
}
|
|
52
|
-
.item[data-status="success"] .marker {
|
|
53
|
-
color: var(--timeline-color, var(--success));
|
|
54
|
-
}
|
|
55
|
-
.item[data-status="error"] .marker {
|
|
56
|
-
color: var(--timeline-color, var(--danger));
|
|
57
|
-
}
|
|
58
|
-
.item[data-status="warning"] .marker {
|
|
59
|
-
color: var(--timeline-color, var(--warning));
|
|
60
|
-
}
|
|
61
|
-
.body {
|
|
62
|
-
grid-column: 2;
|
|
63
|
-
grid-row: 1;
|
|
64
|
-
padding-bottom: 28px;
|
|
65
|
-
min-width: 0;
|
|
66
|
-
font-size: 12px;
|
|
67
|
-
line-height: 22px;
|
|
68
|
-
}
|
|
69
|
-
.item:last-child .body {
|
|
70
|
-
padding-bottom: 0;
|
|
71
|
-
}
|
|
72
|
-
.heading {
|
|
73
|
-
display: flex;
|
|
74
|
-
align-items: center;
|
|
75
|
-
gap: 8px;
|
|
76
|
-
min-height: 22px;
|
|
77
|
-
}
|
|
78
|
-
.title {
|
|
79
|
-
font-weight: 500;
|
|
80
|
-
overflow-wrap: anywhere;
|
|
81
|
-
}
|
|
82
|
-
.time {
|
|
83
|
-
display: block;
|
|
84
|
-
color: var(--muted);
|
|
85
|
-
font-size: 11px;
|
|
86
|
-
line-height: 20px;
|
|
87
|
-
margin-top: 2px;
|
|
88
|
-
}
|
|
89
|
-
.description {
|
|
90
|
-
margin-top: 5px;
|
|
91
|
-
color: var(--muted);
|
|
92
|
-
overflow-wrap: anywhere;
|
|
93
|
-
}
|
|
94
|
-
.toggle {
|
|
95
|
-
display: inline-flex;
|
|
96
|
-
align-items: center;
|
|
97
|
-
justify-content: center;
|
|
98
|
-
width: 24px;
|
|
99
|
-
height: 24px;
|
|
100
|
-
padding: 0;
|
|
101
|
-
border: 0;
|
|
102
|
-
border-radius: 5px;
|
|
103
|
-
background: transparent;
|
|
104
|
-
color: var(--muted);
|
|
105
|
-
cursor: pointer;
|
|
106
|
-
flex-shrink: 0;
|
|
107
|
-
}
|
|
108
|
-
.toggle:hover {
|
|
109
|
-
background: var(--hover);
|
|
110
|
-
}
|
|
111
|
-
.toggle svg {
|
|
112
|
-
width: 14px;
|
|
113
|
-
height: 14px;
|
|
114
|
-
}
|
|
115
|
-
.details {
|
|
116
|
-
display: grid;
|
|
117
|
-
grid-template-rows: 0fr;
|
|
118
|
-
opacity: 0;
|
|
119
|
-
transition:
|
|
120
|
-
grid-template-rows var(--motion-segment) var(--ease),
|
|
121
|
-
opacity var(--motion-hover);
|
|
122
|
-
}
|
|
123
|
-
.details[data-open="true"] {
|
|
124
|
-
grid-template-rows: 1fr;
|
|
125
|
-
opacity: 1;
|
|
126
|
-
}
|
|
127
|
-
.clip {
|
|
128
|
-
min-height: 0;
|
|
129
|
-
overflow: hidden;
|
|
130
|
-
}
|
|
131
|
-
.content {
|
|
132
|
-
padding-top: 10px;
|
|
133
|
-
overflow-wrap: anywhere;
|
|
134
|
-
text-align: start;
|
|
135
|
-
}
|
|
136
|
-
.timeline[data-mode="alternate"] .item {
|
|
137
|
-
grid-template-columns: minmax(0, 1fr) 24px minmax(0, 1fr);
|
|
138
|
-
}
|
|
139
|
-
.timeline[data-mode="alternate"] .marker {
|
|
140
|
-
grid-column: 2;
|
|
141
|
-
}
|
|
142
|
-
.timeline[data-mode="alternate"] .item[data-side="left"] .body {
|
|
143
|
-
grid-column: 1;
|
|
144
|
-
text-align: right;
|
|
145
|
-
}
|
|
146
|
-
.timeline[data-mode="alternate"] .item[data-side="left"] .heading {
|
|
147
|
-
justify-content: flex-end;
|
|
148
|
-
}
|
|
149
|
-
.timeline[data-mode="alternate"] .item[data-side="right"] .body {
|
|
150
|
-
grid-column: 3;
|
|
151
|
-
}
|
|
152
|
-
.skeleton {
|
|
153
|
-
margin-top: 10px;
|
|
154
|
-
}
|
|
155
|
-
.empty {
|
|
156
|
-
font-size: 12px;
|
|
157
|
-
color: var(--muted);
|
|
158
|
-
padding: 24px;
|
|
159
|
-
text-align: center;
|
|
160
|
-
}
|
|
161
|
-
@container (max-width:600px) {
|
|
162
|
-
.timeline[data-mode="alternate"] .item {
|
|
163
|
-
grid-template-columns: 24px minmax(0, 1fr);
|
|
164
|
-
}
|
|
165
|
-
.timeline[data-mode="alternate"] .marker {
|
|
166
|
-
grid-column: 1;
|
|
167
|
-
}
|
|
168
|
-
.timeline[data-mode="alternate"]
|
|
169
|
-
.item:is([data-side="left"], [data-side="right"])
|
|
170
|
-
.body {
|
|
171
|
-
grid-column: 2;
|
|
172
|
-
text-align: start;
|
|
173
|
-
}
|
|
174
|
-
.timeline[data-mode="alternate"] .item[data-side="left"] .heading {
|
|
175
|
-
justify-content: flex-start;
|
|
176
|
-
}
|
|
177
|
-
}
|
|
178
|
-
@media (prefers-reduced-motion: reduce) {
|
|
179
|
-
.details {
|
|
180
|
-
transition: none;
|
|
181
|
-
}
|
|
182
|
-
}
|
|
183
|
-
|
|
184
|
-
.sr {
|
|
185
|
-
composes: visuallyHidden from "./Accessibility.module.css";
|
|
186
|
-
}
|
|
187
|
-
|
|
188
|
-
@keyframes timelineIn {
|
|
189
|
-
from {
|
|
190
|
-
opacity: 0;
|
|
191
|
-
transform: translateY(4px);
|
|
192
|
-
}
|
|
193
|
-
to {
|
|
194
|
-
opacity: 1;
|
|
195
|
-
transform: none;
|
|
196
|
-
}
|
|
197
|
-
}
|
|
198
|
-
@media (prefers-reduced-motion: reduce) {
|
|
199
|
-
.item {
|
|
200
|
-
animation: none;
|
|
201
|
-
}
|
|
202
|
-
}
|
|
1
|
+
.timeline {
|
|
2
|
+
container-type: inline-size;
|
|
3
|
+
margin: 0;
|
|
4
|
+
padding: 0;
|
|
5
|
+
list-style: none;
|
|
6
|
+
}
|
|
7
|
+
.item {
|
|
8
|
+
display: grid;
|
|
9
|
+
grid-template-columns: 24px minmax(0, 1fr);
|
|
10
|
+
gap: 14px;
|
|
11
|
+
min-width: 0;
|
|
12
|
+
animation: timelineIn 140ms var(--ease);
|
|
13
|
+
}
|
|
14
|
+
.marker {
|
|
15
|
+
position: relative;
|
|
16
|
+
grid-column: 1;
|
|
17
|
+
grid-row: 1;
|
|
18
|
+
min-height: 22px;
|
|
19
|
+
color: var(--timeline-color, var(--accent-ink, var(--accent)));
|
|
20
|
+
}
|
|
21
|
+
.item:not(:last-child) .marker::after {
|
|
22
|
+
content: "";
|
|
23
|
+
position: absolute;
|
|
24
|
+
width: var(--separator-width);
|
|
25
|
+
background: var(--separator-color);
|
|
26
|
+
top: 23px;
|
|
27
|
+
bottom: 0;
|
|
28
|
+
left: 50%;
|
|
29
|
+
transform: translateX(-50%);
|
|
30
|
+
}
|
|
31
|
+
.dot {
|
|
32
|
+
position: absolute;
|
|
33
|
+
top: 1px;
|
|
34
|
+
left: 50%;
|
|
35
|
+
transform: translateX(-50%);
|
|
36
|
+
display: grid;
|
|
37
|
+
place-items: center;
|
|
38
|
+
width: 20px;
|
|
39
|
+
height: 20px;
|
|
40
|
+
}
|
|
41
|
+
.dot > i {
|
|
42
|
+
display: block;
|
|
43
|
+
width: 7px;
|
|
44
|
+
height: 7px;
|
|
45
|
+
border-radius: 50%;
|
|
46
|
+
background: currentColor;
|
|
47
|
+
}
|
|
48
|
+
.dot > svg {
|
|
49
|
+
width: 16px;
|
|
50
|
+
height: 16px;
|
|
51
|
+
}
|
|
52
|
+
.item[data-status="success"] .marker {
|
|
53
|
+
color: var(--timeline-color, var(--success));
|
|
54
|
+
}
|
|
55
|
+
.item[data-status="error"] .marker {
|
|
56
|
+
color: var(--timeline-color, var(--danger));
|
|
57
|
+
}
|
|
58
|
+
.item[data-status="warning"] .marker {
|
|
59
|
+
color: var(--timeline-color, var(--warning));
|
|
60
|
+
}
|
|
61
|
+
.body {
|
|
62
|
+
grid-column: 2;
|
|
63
|
+
grid-row: 1;
|
|
64
|
+
padding-bottom: 28px;
|
|
65
|
+
min-width: 0;
|
|
66
|
+
font-size: 12px;
|
|
67
|
+
line-height: 22px;
|
|
68
|
+
}
|
|
69
|
+
.item:last-child .body {
|
|
70
|
+
padding-bottom: 0;
|
|
71
|
+
}
|
|
72
|
+
.heading {
|
|
73
|
+
display: flex;
|
|
74
|
+
align-items: center;
|
|
75
|
+
gap: 8px;
|
|
76
|
+
min-height: 22px;
|
|
77
|
+
}
|
|
78
|
+
.title {
|
|
79
|
+
font-weight: 500;
|
|
80
|
+
overflow-wrap: anywhere;
|
|
81
|
+
}
|
|
82
|
+
.time {
|
|
83
|
+
display: block;
|
|
84
|
+
color: var(--muted);
|
|
85
|
+
font-size: 11px;
|
|
86
|
+
line-height: 20px;
|
|
87
|
+
margin-top: 2px;
|
|
88
|
+
}
|
|
89
|
+
.description {
|
|
90
|
+
margin-top: 5px;
|
|
91
|
+
color: var(--muted);
|
|
92
|
+
overflow-wrap: anywhere;
|
|
93
|
+
}
|
|
94
|
+
.toggle {
|
|
95
|
+
display: inline-flex;
|
|
96
|
+
align-items: center;
|
|
97
|
+
justify-content: center;
|
|
98
|
+
width: 24px;
|
|
99
|
+
height: 24px;
|
|
100
|
+
padding: 0;
|
|
101
|
+
border: 0;
|
|
102
|
+
border-radius: 5px;
|
|
103
|
+
background: transparent;
|
|
104
|
+
color: var(--muted);
|
|
105
|
+
cursor: pointer;
|
|
106
|
+
flex-shrink: 0;
|
|
107
|
+
}
|
|
108
|
+
.toggle:hover {
|
|
109
|
+
background: var(--hover);
|
|
110
|
+
}
|
|
111
|
+
.toggle svg {
|
|
112
|
+
width: 14px;
|
|
113
|
+
height: 14px;
|
|
114
|
+
}
|
|
115
|
+
.details {
|
|
116
|
+
display: grid;
|
|
117
|
+
grid-template-rows: 0fr;
|
|
118
|
+
opacity: 0;
|
|
119
|
+
transition:
|
|
120
|
+
grid-template-rows var(--motion-segment) var(--ease),
|
|
121
|
+
opacity var(--motion-hover);
|
|
122
|
+
}
|
|
123
|
+
.details[data-open="true"] {
|
|
124
|
+
grid-template-rows: 1fr;
|
|
125
|
+
opacity: 1;
|
|
126
|
+
}
|
|
127
|
+
.clip {
|
|
128
|
+
min-height: 0;
|
|
129
|
+
overflow: hidden;
|
|
130
|
+
}
|
|
131
|
+
.content {
|
|
132
|
+
padding-top: 10px;
|
|
133
|
+
overflow-wrap: anywhere;
|
|
134
|
+
text-align: start;
|
|
135
|
+
}
|
|
136
|
+
.timeline[data-mode="alternate"] .item {
|
|
137
|
+
grid-template-columns: minmax(0, 1fr) 24px minmax(0, 1fr);
|
|
138
|
+
}
|
|
139
|
+
.timeline[data-mode="alternate"] .marker {
|
|
140
|
+
grid-column: 2;
|
|
141
|
+
}
|
|
142
|
+
.timeline[data-mode="alternate"] .item[data-side="left"] .body {
|
|
143
|
+
grid-column: 1;
|
|
144
|
+
text-align: right;
|
|
145
|
+
}
|
|
146
|
+
.timeline[data-mode="alternate"] .item[data-side="left"] .heading {
|
|
147
|
+
justify-content: flex-end;
|
|
148
|
+
}
|
|
149
|
+
.timeline[data-mode="alternate"] .item[data-side="right"] .body {
|
|
150
|
+
grid-column: 3;
|
|
151
|
+
}
|
|
152
|
+
.skeleton {
|
|
153
|
+
margin-top: 10px;
|
|
154
|
+
}
|
|
155
|
+
.empty {
|
|
156
|
+
font-size: 12px;
|
|
157
|
+
color: var(--muted);
|
|
158
|
+
padding: 24px;
|
|
159
|
+
text-align: center;
|
|
160
|
+
}
|
|
161
|
+
@container (max-width:600px) {
|
|
162
|
+
.timeline[data-mode="alternate"] .item {
|
|
163
|
+
grid-template-columns: 24px minmax(0, 1fr);
|
|
164
|
+
}
|
|
165
|
+
.timeline[data-mode="alternate"] .marker {
|
|
166
|
+
grid-column: 1;
|
|
167
|
+
}
|
|
168
|
+
.timeline[data-mode="alternate"]
|
|
169
|
+
.item:is([data-side="left"], [data-side="right"])
|
|
170
|
+
.body {
|
|
171
|
+
grid-column: 2;
|
|
172
|
+
text-align: start;
|
|
173
|
+
}
|
|
174
|
+
.timeline[data-mode="alternate"] .item[data-side="left"] .heading {
|
|
175
|
+
justify-content: flex-start;
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
@media (prefers-reduced-motion: reduce) {
|
|
179
|
+
.details {
|
|
180
|
+
transition: none;
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
.sr {
|
|
185
|
+
composes: visuallyHidden from "./Accessibility.module.css";
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
@keyframes timelineIn {
|
|
189
|
+
from {
|
|
190
|
+
opacity: 0;
|
|
191
|
+
transform: translateY(4px);
|
|
192
|
+
}
|
|
193
|
+
to {
|
|
194
|
+
opacity: 1;
|
|
195
|
+
transform: none;
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
@media (prefers-reduced-motion: reduce) {
|
|
199
|
+
.item {
|
|
200
|
+
animation: none;
|
|
201
|
+
}
|
|
202
|
+
}
|
package/components/Toast.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ToastMessage } from "./ToastProvider";
|
|
2
|
-
export declare function Toast({ toast, position, onDismiss, stackIndex, stackOffset, stackExpanded, stackHidden, paused, onHoverChange, onHeightChange, }: {
|
|
2
|
+
export declare function Toast({ toast, position, onDismiss, stackIndex, stackOffset, stackExpanded, stackHidden, paused, onHoverChange, onHeightChange, embedded, stackHeight, stackCount, onStackToggle, }: {
|
|
3
3
|
toast: ToastMessage | null;
|
|
4
4
|
position: string;
|
|
5
5
|
onDismiss(id: number): void;
|
|
@@ -10,4 +10,9 @@ export declare function Toast({ toast, position, onDismiss, stackIndex, stackOff
|
|
|
10
10
|
paused?: boolean;
|
|
11
11
|
onHoverChange?(inside: boolean): void;
|
|
12
12
|
onHeightChange?(height: number): void;
|
|
13
|
-
|
|
13
|
+
/** Internal stack rendering; standalone Toast retains its native popover. */
|
|
14
|
+
embedded?: boolean;
|
|
15
|
+
stackHeight?: number;
|
|
16
|
+
stackCount?: number;
|
|
17
|
+
onStackToggle?(): void;
|
|
18
|
+
}): import("react").JSX.Element;
|