@robert-stackflow/oneui 0.6.7 → 0.6.8
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 +5 -0
- package/components/Tab.module.css +148 -148
- package/package.json +1 -1
- package/styles/minimal.css +3 -25
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.6.8
|
|
4
|
+
|
|
5
|
+
- Use theme-specific selected text and indicator colors for UnderlinedTab, including hover and dark mode.
|
|
6
|
+
- Apply minimal-theme palette changes atomically to avoid low-contrast intermediate gray frames; preserve control and navigation movement.
|
|
7
|
+
|
|
3
8
|
## 0.6.7
|
|
4
9
|
|
|
5
10
|
- Add UptimeChart with shared status colors, staggered entrance, hover/focus inspection, native tooltips and reduced-motion support.
|
|
@@ -1,148 +1,148 @@
|
|
|
1
|
-
.viewport {
|
|
2
|
-
overflow-x: auto;
|
|
3
|
-
overflow-y: hidden;
|
|
4
|
-
scrollbar-width: none;
|
|
5
|
-
padding-bottom: 1px;
|
|
6
|
-
min-width: 0;
|
|
7
|
-
max-width: 100%;
|
|
8
|
-
}
|
|
9
|
-
.tabs {
|
|
10
|
-
position: relative;
|
|
11
|
-
display: flex;
|
|
12
|
-
align-items: stretch;
|
|
13
|
-
gap: 4px;
|
|
14
|
-
width: max-content;
|
|
15
|
-
min-width: 100%;
|
|
16
|
-
isolation: isolate;
|
|
17
|
-
}
|
|
18
|
-
.tabs button {
|
|
19
|
-
position: relative;
|
|
20
|
-
z-index: 1;
|
|
21
|
-
display: flex;
|
|
22
|
-
align-items: center;
|
|
23
|
-
justify-content: center;
|
|
24
|
-
gap: 7px;
|
|
25
|
-
white-space: nowrap;
|
|
26
|
-
border: 0;
|
|
27
|
-
background: transparent;
|
|
28
|
-
min-height: 34px;
|
|
29
|
-
padding: 7px 12px;
|
|
30
|
-
font-size: 12px;
|
|
31
|
-
color: var(--muted);
|
|
32
|
-
border-radius: 6px;
|
|
33
|
-
transition:
|
|
34
|
-
color var(--motion-hover),
|
|
35
|
-
background var(--motion-hover);
|
|
36
|
-
}
|
|
37
|
-
.tabs button:hover:not(:disabled) {
|
|
38
|
-
color: var(--fg);
|
|
39
|
-
}
|
|
40
|
-
.tabs button[aria-selected="true"] {
|
|
41
|
-
color: var(--fg);
|
|
42
|
-
}
|
|
43
|
-
.tabs button:focus-visible {
|
|
44
|
-
outline-offset: -2px;
|
|
45
|
-
}
|
|
46
|
-
.indicator {
|
|
47
|
-
position: absolute;
|
|
48
|
-
z-index: 0;
|
|
49
|
-
pointer-events: none;
|
|
50
|
-
opacity: var(--tab-opacity, 0);
|
|
51
|
-
left: 0;
|
|
52
|
-
top: 0;
|
|
53
|
-
transform: translate(var(--tab-x, 0px), var(--tab-y, 0px));
|
|
54
|
-
width: var(--tab-width, 0px);
|
|
55
|
-
height: var(--tab-height, 0px);
|
|
56
|
-
background: var(--selected);
|
|
57
|
-
border-radius: 6px;
|
|
58
|
-
}
|
|
59
|
-
.tabs[data-ready="true"] .indicator {
|
|
60
|
-
transition:
|
|
61
|
-
transform var(--motion-segment) var(--ease),
|
|
62
|
-
width var(--motion-segment) var(--ease),
|
|
63
|
-
height var(--motion-segment) var(--ease),
|
|
64
|
-
opacity var(--motion-hover);
|
|
65
|
-
}
|
|
66
|
-
.viewport[data-orientation="vertical"] {
|
|
67
|
-
width: 112px;
|
|
68
|
-
flex: 0 0 112px;
|
|
69
|
-
}
|
|
70
|
-
.viewport[data-orientation="vertical"] .tabs {
|
|
71
|
-
flex-direction: column;
|
|
72
|
-
width: 100%;
|
|
73
|
-
min-width: 0;
|
|
74
|
-
}
|
|
75
|
-
.viewport[data-orientation="vertical"] button {
|
|
76
|
-
justify-content: flex-start;
|
|
77
|
-
padding: 7px 9px;
|
|
78
|
-
min-height: 34px;
|
|
79
|
-
}
|
|
80
|
-
.underlined {
|
|
81
|
-
gap: 16px;
|
|
82
|
-
border-bottom: var(--separator-width) var(--separator-style)
|
|
83
|
-
var(--separator-color);
|
|
84
|
-
}
|
|
85
|
-
.underlined button {
|
|
86
|
-
padding: 9px 2px;
|
|
87
|
-
border-radius: 0;
|
|
88
|
-
}
|
|
89
|
-
.underlined .indicator {
|
|
90
|
-
top: auto;
|
|
91
|
-
bottom: -1px;
|
|
92
|
-
height: 2px;
|
|
93
|
-
transform: translateX(var(--tab-x, 0px));
|
|
94
|
-
background: var(--
|
|
95
|
-
border-radius: 2px;
|
|
96
|
-
}
|
|
97
|
-
.underlined button[aria-selected="true"] {
|
|
98
|
-
color: var(--
|
|
99
|
-
}
|
|
100
|
-
@media (max-width: 450px) {
|
|
101
|
-
.viewport[data-orientation="vertical"] {
|
|
102
|
-
width: 94px;
|
|
103
|
-
flex-basis: 94px;
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
.blocked button:hover:not(:disabled) {
|
|
108
|
-
background: color-mix(in srgb, var(--hover) 55%, transparent);
|
|
109
|
-
}
|
|
110
|
-
.underlined button:hover:not(:disabled) {
|
|
111
|
-
background: transparent;
|
|
112
|
-
color: var(--
|
|
113
|
-
}
|
|
114
|
-
.tabs button {
|
|
115
|
-
min-height: var(--tab-height-min);
|
|
116
|
-
font-size: var(--field-font-size);
|
|
117
|
-
cursor: pointer;
|
|
118
|
-
}
|
|
119
|
-
.blocked {
|
|
120
|
-
width: var(--blocked-width);
|
|
121
|
-
min-width: var(--blocked-min-width);
|
|
122
|
-
padding: var(--blocked-padding);
|
|
123
|
-
border: var(--blocked-border);
|
|
124
|
-
background: var(--blocked-background);
|
|
125
|
-
border-radius: var(--blocked-radius);
|
|
126
|
-
}
|
|
127
|
-
.blocked .indicator {
|
|
128
|
-
background: var(--blocked-selected);
|
|
129
|
-
box-shadow: var(--blocked-shadow);
|
|
130
|
-
}
|
|
131
|
-
.blocked button {
|
|
132
|
-
min-height: var(--blocked-height);
|
|
133
|
-
padding: var(--blocked-button-padding);
|
|
134
|
-
}
|
|
135
|
-
.blocked button[aria-selected="true"] {
|
|
136
|
-
color: var(--tab-selected-color);
|
|
137
|
-
}
|
|
138
|
-
.tabs button:disabled {
|
|
139
|
-
opacity: 0.45;
|
|
140
|
-
cursor: not-allowed;
|
|
141
|
-
}
|
|
142
|
-
.viewport[data-orientation="vertical"] {
|
|
143
|
-
width: var(--vertical-tab-width);
|
|
144
|
-
flex-basis: var(--vertical-tab-width);
|
|
145
|
-
}
|
|
146
|
-
.viewport[data-orientation="vertical"] .blocked {
|
|
147
|
-
width: 100%;
|
|
148
|
-
}
|
|
1
|
+
.viewport {
|
|
2
|
+
overflow-x: auto;
|
|
3
|
+
overflow-y: hidden;
|
|
4
|
+
scrollbar-width: none;
|
|
5
|
+
padding-bottom: 1px;
|
|
6
|
+
min-width: 0;
|
|
7
|
+
max-width: 100%;
|
|
8
|
+
}
|
|
9
|
+
.tabs {
|
|
10
|
+
position: relative;
|
|
11
|
+
display: flex;
|
|
12
|
+
align-items: stretch;
|
|
13
|
+
gap: 4px;
|
|
14
|
+
width: max-content;
|
|
15
|
+
min-width: 100%;
|
|
16
|
+
isolation: isolate;
|
|
17
|
+
}
|
|
18
|
+
.tabs button {
|
|
19
|
+
position: relative;
|
|
20
|
+
z-index: 1;
|
|
21
|
+
display: flex;
|
|
22
|
+
align-items: center;
|
|
23
|
+
justify-content: center;
|
|
24
|
+
gap: 7px;
|
|
25
|
+
white-space: nowrap;
|
|
26
|
+
border: 0;
|
|
27
|
+
background: transparent;
|
|
28
|
+
min-height: 34px;
|
|
29
|
+
padding: 7px 12px;
|
|
30
|
+
font-size: 12px;
|
|
31
|
+
color: var(--muted);
|
|
32
|
+
border-radius: 6px;
|
|
33
|
+
transition:
|
|
34
|
+
color var(--motion-hover),
|
|
35
|
+
background var(--motion-hover);
|
|
36
|
+
}
|
|
37
|
+
.tabs button:hover:not(:disabled) {
|
|
38
|
+
color: var(--fg);
|
|
39
|
+
}
|
|
40
|
+
.tabs button[aria-selected="true"] {
|
|
41
|
+
color: var(--fg);
|
|
42
|
+
}
|
|
43
|
+
.tabs button:focus-visible {
|
|
44
|
+
outline-offset: -2px;
|
|
45
|
+
}
|
|
46
|
+
.indicator {
|
|
47
|
+
position: absolute;
|
|
48
|
+
z-index: 0;
|
|
49
|
+
pointer-events: none;
|
|
50
|
+
opacity: var(--tab-opacity, 0);
|
|
51
|
+
left: 0;
|
|
52
|
+
top: 0;
|
|
53
|
+
transform: translate(var(--tab-x, 0px), var(--tab-y, 0px));
|
|
54
|
+
width: var(--tab-width, 0px);
|
|
55
|
+
height: var(--tab-height, 0px);
|
|
56
|
+
background: var(--selected);
|
|
57
|
+
border-radius: 6px;
|
|
58
|
+
}
|
|
59
|
+
.tabs[data-ready="true"] .indicator {
|
|
60
|
+
transition:
|
|
61
|
+
transform var(--motion-segment) var(--ease),
|
|
62
|
+
width var(--motion-segment) var(--ease),
|
|
63
|
+
height var(--motion-segment) var(--ease),
|
|
64
|
+
opacity var(--motion-hover);
|
|
65
|
+
}
|
|
66
|
+
.viewport[data-orientation="vertical"] {
|
|
67
|
+
width: 112px;
|
|
68
|
+
flex: 0 0 112px;
|
|
69
|
+
}
|
|
70
|
+
.viewport[data-orientation="vertical"] .tabs {
|
|
71
|
+
flex-direction: column;
|
|
72
|
+
width: 100%;
|
|
73
|
+
min-width: 0;
|
|
74
|
+
}
|
|
75
|
+
.viewport[data-orientation="vertical"] button {
|
|
76
|
+
justify-content: flex-start;
|
|
77
|
+
padding: 7px 9px;
|
|
78
|
+
min-height: 34px;
|
|
79
|
+
}
|
|
80
|
+
.underlined {
|
|
81
|
+
gap: 16px;
|
|
82
|
+
border-bottom: var(--separator-width) var(--separator-style)
|
|
83
|
+
var(--separator-color);
|
|
84
|
+
}
|
|
85
|
+
.underlined button {
|
|
86
|
+
padding: 9px 2px;
|
|
87
|
+
border-radius: 0;
|
|
88
|
+
}
|
|
89
|
+
.underlined .indicator {
|
|
90
|
+
top: auto;
|
|
91
|
+
bottom: -1px;
|
|
92
|
+
height: 2px;
|
|
93
|
+
transform: translateX(var(--tab-x, 0px));
|
|
94
|
+
background: var(--tab-selected-color);
|
|
95
|
+
border-radius: 2px;
|
|
96
|
+
}
|
|
97
|
+
.underlined button[aria-selected="true"] {
|
|
98
|
+
color: var(--tab-selected-color);
|
|
99
|
+
}
|
|
100
|
+
@media (max-width: 450px) {
|
|
101
|
+
.viewport[data-orientation="vertical"] {
|
|
102
|
+
width: 94px;
|
|
103
|
+
flex-basis: 94px;
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
.blocked button:hover:not(:disabled) {
|
|
108
|
+
background: color-mix(in srgb, var(--hover) 55%, transparent);
|
|
109
|
+
}
|
|
110
|
+
.underlined button:hover:not(:disabled) {
|
|
111
|
+
background: transparent;
|
|
112
|
+
color: var(--tab-selected-color);
|
|
113
|
+
}
|
|
114
|
+
.tabs button {
|
|
115
|
+
min-height: var(--tab-height-min);
|
|
116
|
+
font-size: var(--field-font-size);
|
|
117
|
+
cursor: pointer;
|
|
118
|
+
}
|
|
119
|
+
.blocked {
|
|
120
|
+
width: var(--blocked-width);
|
|
121
|
+
min-width: var(--blocked-min-width);
|
|
122
|
+
padding: var(--blocked-padding);
|
|
123
|
+
border: var(--blocked-border);
|
|
124
|
+
background: var(--blocked-background);
|
|
125
|
+
border-radius: var(--blocked-radius);
|
|
126
|
+
}
|
|
127
|
+
.blocked .indicator {
|
|
128
|
+
background: var(--blocked-selected);
|
|
129
|
+
box-shadow: var(--blocked-shadow);
|
|
130
|
+
}
|
|
131
|
+
.blocked button {
|
|
132
|
+
min-height: var(--blocked-height);
|
|
133
|
+
padding: var(--blocked-button-padding);
|
|
134
|
+
}
|
|
135
|
+
.blocked button[aria-selected="true"] {
|
|
136
|
+
color: var(--tab-selected-color);
|
|
137
|
+
}
|
|
138
|
+
.tabs button:disabled {
|
|
139
|
+
opacity: 0.45;
|
|
140
|
+
cursor: not-allowed;
|
|
141
|
+
}
|
|
142
|
+
.viewport[data-orientation="vertical"] {
|
|
143
|
+
width: var(--vertical-tab-width);
|
|
144
|
+
flex-basis: var(--vertical-tab-width);
|
|
145
|
+
}
|
|
146
|
+
.viewport[data-orientation="vertical"] .blocked {
|
|
147
|
+
width: 100%;
|
|
148
|
+
}
|
package/package.json
CHANGED
package/styles/minimal.css
CHANGED
|
@@ -193,31 +193,9 @@
|
|
|
193
193
|
inherits: true;
|
|
194
194
|
initial-value: #a47628;
|
|
195
195
|
}
|
|
196
|
-
:
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
--fg 260ms cubic-bezier(0.2, 0.7, 0.2, 1),
|
|
200
|
-
--soft 260ms cubic-bezier(0.2, 0.7, 0.2, 1),
|
|
201
|
-
--muted 260ms cubic-bezier(0.2, 0.7, 0.2, 1),
|
|
202
|
-
--line 260ms cubic-bezier(0.2, 0.7, 0.2, 1),
|
|
203
|
-
--hover 260ms cubic-bezier(0.2, 0.7, 0.2, 1),
|
|
204
|
-
--selected 260ms cubic-bezier(0.2, 0.7, 0.2, 1),
|
|
205
|
-
--accent 260ms cubic-bezier(0.2, 0.7, 0.2, 1),
|
|
206
|
-
--on-accent 260ms cubic-bezier(0.2, 0.7, 0.2, 1),
|
|
207
|
-
--navigation 260ms cubic-bezier(0.2, 0.7, 0.2, 1),
|
|
208
|
-
--canvas 260ms cubic-bezier(0.2, 0.7, 0.2, 1),
|
|
209
|
-
--field 260ms cubic-bezier(0.2, 0.7, 0.2, 1),
|
|
210
|
-
--disabled 260ms cubic-bezier(0.2, 0.7, 0.2, 1),
|
|
211
|
-
--success 260ms cubic-bezier(0.2, 0.7, 0.2, 1),
|
|
212
|
-
--danger 260ms cubic-bezier(0.2, 0.7, 0.2, 1),
|
|
213
|
-
--warning 260ms cubic-bezier(0.2, 0.7, 0.2, 1),
|
|
214
|
-
--shadow-soft 260ms cubic-bezier(0.2, 0.7, 0.2, 1),
|
|
215
|
-
--shadow-detail 260ms cubic-bezier(0.2, 0.7, 0.2, 1),
|
|
216
|
-
--shadow-float 260ms cubic-bezier(0.2, 0.7, 0.2, 1),
|
|
217
|
-
--shadow-edge 260ms cubic-bezier(0.2, 0.7, 0.2, 1),
|
|
218
|
-
--shadow-modal 260ms cubic-bezier(0.2, 0.7, 0.2, 1),
|
|
219
|
-
--overlay 260ms cubic-bezier(0.2, 0.7, 0.2, 1);
|
|
220
|
-
}
|
|
196
|
+
/* Palette changes are atomic: interpolating foreground and background together
|
|
197
|
+
makes their intermediate colors converge and washes out the whole interface.
|
|
198
|
+
Component movement and hover transitions remain independent. */
|
|
221
199
|
:root[data-ui-theme="minimal"][data-theme-changing="true"] * {
|
|
222
200
|
transition-property: transform, translate, opacity, width, height,
|
|
223
201
|
grid-template-rows, box-shadow, visibility !important;
|