@robert-stackflow/oneui 0.6.4 → 0.6.6
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 +106 -92
- package/components/DataTable.d.ts +3 -1
- package/components/DataTable.js +3 -2
- package/components/DataTable.module.css +103 -112
- package/components/NumberInput.d.ts +1 -0
- package/components/NumberInput.js +2 -0
- package/components/NumberInput.module.css +3 -0
- package/components/Popover.d.ts +3 -1
- package/components/Popover.js +3 -2
- package/components/Segmented.d.ts +2 -1
- package/components/Segmented.js +3 -2
- package/components/Segmented.module.css +85 -82
- package/components/Tab.module.css +4 -1
- package/package.json +1 -1
- package/styles/minimal.css +340 -339
|
@@ -1,82 +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
|
-
}
|
|
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; }
|