@robert-stackflow/oneui 0.6.8 → 0.6.16
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 +58 -0
- package/README.md +255 -188
- package/components/AccountItem.module.css +103 -103
- package/components/Alert.d.ts +2 -9
- package/components/Alert.js +2 -40
- package/components/AppShell.d.ts +7 -7
- package/components/AppShell.js +37 -33
- package/components/AppShell.module.css +223 -271
- package/components/AppearanceSettings.js +25 -32
- package/components/Badge.module.css +30 -30
- package/components/Banner.d.ts +17 -0
- package/components/Banner.js +99 -0
- package/components/Banner.module.css +143 -0
- package/components/BarChart.module.css +35 -34
- package/components/Breadcrumb.module.css +97 -97
- package/components/Button.module.css +120 -120
- package/components/Cascader.js +1 -0
- package/components/CharacterPicker.js +2 -0
- package/components/Checkbox.module.css +95 -95
- package/components/Combobox.js +1 -0
- package/components/Combobox.module.css +6 -1
- package/components/CommandPalette.js +2 -2
- package/components/ContributionCalendar.module.css +121 -121
- package/components/Control.module.css +86 -86
- package/components/DataTable.d.ts +3 -2
- package/components/DataTable.js +92 -66
- package/components/DataTable.module.css +3 -31
- package/components/DatePicker.js +1 -0
- package/components/DateRangePicker.js +1 -0
- package/components/Dialog.d.ts +3 -1
- package/components/Dialog.js +11 -4
- package/components/Dialog.module.css +139 -97
- package/components/DialogVariants.d.ts +2 -1
- package/components/DialogVariants.js +35 -7
- package/components/HierarchyPicker.module.css +185 -181
- package/components/IconPicker.js +2 -0
- package/components/Indicator.module.css +83 -83
- package/components/Layout.module.css +82 -82
- package/components/Markdown.d.ts +13 -0
- package/components/Markdown.js +164 -0
- package/components/Markdown.module.css +227 -0
- package/components/MenuItem.module.css +172 -172
- package/components/MultiSelect.js +1 -0
- package/components/MultiSelect.module.css +2 -0
- package/components/NavBar.d.ts +20 -0
- package/components/NavBar.js +197 -0
- package/components/NavBar.module.css +130 -0
- package/components/NavigationSurface.module.css +27 -0
- package/components/Picker.module.css +7 -0
- package/components/Popover.d.ts +6 -1
- package/components/Popover.js +39 -13
- package/components/Popover.module.css +8 -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/SelectSettingRow.d.ts +7 -0
- package/components/SelectSettingRow.js +58 -0
- package/components/SettingRow.d.ts +9 -3
- package/components/SettingRow.js +32 -8
- package/components/SettingRow.module.css +17 -0
- package/components/SettingsLayout.d.ts +15 -3
- package/components/SettingsLayout.js +46 -29
- package/components/SideBar.d.ts +9 -0
- package/components/SideBar.js +30 -0
- package/components/SidebarNavigation.d.ts +24 -3
- package/components/SidebarNavigation.js +274 -47
- package/components/SidebarNavigation.module.css +352 -130
- package/components/Slider.module.css +19 -19
- package/components/Steps.module.css +176 -176
- package/components/Switch.d.ts +3 -1
- package/components/Switch.js +5 -1
- package/components/Switch.module.css +59 -59
- package/components/SwitchSettingRow.d.ts +7 -0
- package/components/SwitchSettingRow.js +45 -0
- package/components/Table.d.ts +8 -1
- package/components/Table.js +34 -17
- package/components/Table.module.css +87 -48
- package/components/TableMarkup.d.ts +2 -1
- package/components/TableMarkup.js +18 -1
- package/components/TableOfContents.d.ts +22 -0
- package/components/TableOfContents.js +462 -0
- package/components/TableOfContents.module.css +252 -0
- package/components/TextAreaSettingRow.d.ts +9 -0
- package/components/TextAreaSettingRow.js +47 -0
- package/components/TextSettingRow.d.ts +9 -0
- package/components/TextSettingRow.js +45 -0
- package/components/ThemePicker.module.css +178 -178
- package/components/ThemeProvider.js +2 -0
- package/components/TimeColumns.module.css +47 -47
- package/components/Timeline.module.css +202 -202
- package/components/Toast.d.ts +8 -1
- package/components/Toast.js +49 -17
- package/components/Toast.module.css +25 -0
- package/components/ToastProvider.d.ts +4 -1
- package/components/ToastProvider.js +67 -12
- package/components/TreeSelect.js +1 -0
- package/components/TreeTable.d.ts +3 -3
- package/components/TreeTable.js +12 -2
- package/components/TreeTable.module.css +57 -53
- package/components/createToaster.d.ts +2 -1
- package/components/createToaster.js +28 -14
- package/components/index.d.ts +18 -1
- package/components/index.js +24 -0
- package/components/motion.d.ts +1 -0
- package/components/motion.js +18 -6
- package/components/settingRowControl.d.ts +7 -0
- package/components/settingRowControl.js +15 -0
- package/package.json +57 -3
- package/styles/base.css +206 -206
- package/styles/blue.css +270 -268
- package/styles/minimal.css +1 -0
|
@@ -1,120 +1,120 @@
|
|
|
1
|
-
.button {
|
|
2
|
-
display: inline-flex;
|
|
3
|
-
align-items: center;
|
|
4
|
-
justify-content: center;
|
|
5
|
-
gap: 7px;
|
|
6
|
-
min-height: var(--control-height);
|
|
7
|
-
padding: 6px 13px;
|
|
8
|
-
border: 1px solid var(--line);
|
|
9
|
-
border-radius: calc(var(--radius) - 3px);
|
|
10
|
-
background: var(--surface);
|
|
11
|
-
white-space: nowrap;
|
|
12
|
-
transition:
|
|
13
|
-
background var(--motion-hover),
|
|
14
|
-
transform var(--motion-hover),
|
|
15
|
-
border-color var(--motion-hover);
|
|
16
|
-
font-size: 12px;
|
|
17
|
-
text-decoration: none;
|
|
18
|
-
color: var(--fg);
|
|
19
|
-
}
|
|
20
|
-
.button[aria-disabled="true"] {
|
|
21
|
-
opacity: 0.5;
|
|
22
|
-
cursor: not-allowed;
|
|
23
|
-
}
|
|
24
|
-
.button:hover:not(:disabled):not([aria-disabled="true"]) {
|
|
25
|
-
background: var(--hover);
|
|
26
|
-
border-color: color-mix(in srgb, var(--fg) 18%, var(--surface));
|
|
27
|
-
}
|
|
28
|
-
.button:active:not(:disabled):not([aria-disabled="true"]) {
|
|
29
|
-
transform: translateY(1px);
|
|
30
|
-
}
|
|
31
|
-
.primary {
|
|
32
|
-
background: var(--accent-fill, var(--accent));
|
|
33
|
-
border-color: var(--accent-fill, var(--accent));
|
|
34
|
-
color: var(--on-accent-fill, var(--on-accent));
|
|
35
|
-
}
|
|
36
|
-
.primary:hover:not(:disabled):not([aria-disabled="true"]) {
|
|
37
|
-
background: var(
|
|
38
|
-
--accent-fill-hover,
|
|
39
|
-
color-mix(in srgb, var(--accent) 86%, var(--surface))
|
|
40
|
-
);
|
|
41
|
-
border-color: transparent;
|
|
42
|
-
}
|
|
43
|
-
.secondary {
|
|
44
|
-
box-shadow: 0 1px 1px #00000003;
|
|
45
|
-
}
|
|
46
|
-
.ghost {
|
|
47
|
-
background: transparent;
|
|
48
|
-
border-color: transparent;
|
|
49
|
-
box-shadow: none;
|
|
50
|
-
}
|
|
51
|
-
.danger {
|
|
52
|
-
color: var(--danger);
|
|
53
|
-
background: color-mix(in srgb, var(--danger) 5%, var(--surface));
|
|
54
|
-
}
|
|
55
|
-
.small {
|
|
56
|
-
min-height: var(--control-small);
|
|
57
|
-
padding: 4px 9px;
|
|
58
|
-
font-size: 11px;
|
|
59
|
-
}
|
|
60
|
-
.link {
|
|
61
|
-
min-height: 0;
|
|
62
|
-
padding: 0;
|
|
63
|
-
border: 0;
|
|
64
|
-
border-radius: 2px;
|
|
65
|
-
background: transparent;
|
|
66
|
-
box-shadow: none;
|
|
67
|
-
color: var(--link-color, var(--accent));
|
|
68
|
-
font-size: 13px;
|
|
69
|
-
line-height: 1.6;
|
|
70
|
-
text-align: left;
|
|
71
|
-
justify-content: flex-start;
|
|
72
|
-
white-space: normal;
|
|
73
|
-
}
|
|
74
|
-
.link:hover:not(:disabled):not([aria-disabled="true"]) {
|
|
75
|
-
background: transparent;
|
|
76
|
-
color: var(
|
|
77
|
-
--link-hover-color,
|
|
78
|
-
var(--link-color, var(--accent-hover, var(--accent)))
|
|
79
|
-
);
|
|
80
|
-
text-decoration: underline;
|
|
81
|
-
text-underline-offset: 3px;
|
|
82
|
-
}
|
|
83
|
-
.link .content {
|
|
84
|
-
justify-content: flex-start;
|
|
85
|
-
}
|
|
86
|
-
.spin {
|
|
87
|
-
animation: spin 1s linear infinite;
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
.button {
|
|
91
|
-
position: relative;
|
|
92
|
-
}
|
|
93
|
-
.content {
|
|
94
|
-
display: inline-flex;
|
|
95
|
-
align-items: center;
|
|
96
|
-
justify-content: center;
|
|
97
|
-
gap: 7px;
|
|
98
|
-
}
|
|
99
|
-
.loader {
|
|
100
|
-
position: absolute;
|
|
101
|
-
inset: 0;
|
|
102
|
-
display: grid;
|
|
103
|
-
place-items: center;
|
|
104
|
-
}
|
|
105
|
-
.button[aria-busy="true"] {
|
|
106
|
-
opacity: 0.8;
|
|
107
|
-
cursor: wait;
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
.content > svg {
|
|
111
|
-
width: var(--button-icon-size, 16px);
|
|
112
|
-
height: var(--button-icon-size, 16px);
|
|
113
|
-
flex-shrink: 0;
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
@keyframes spin {
|
|
117
|
-
to {
|
|
118
|
-
transform: rotate(360deg);
|
|
119
|
-
}
|
|
120
|
-
}
|
|
1
|
+
.button {
|
|
2
|
+
display: inline-flex;
|
|
3
|
+
align-items: center;
|
|
4
|
+
justify-content: center;
|
|
5
|
+
gap: 7px;
|
|
6
|
+
min-height: var(--control-height);
|
|
7
|
+
padding: 6px 13px;
|
|
8
|
+
border: 1px solid var(--line);
|
|
9
|
+
border-radius: calc(var(--radius) - 3px);
|
|
10
|
+
background: var(--surface);
|
|
11
|
+
white-space: nowrap;
|
|
12
|
+
transition:
|
|
13
|
+
background var(--motion-hover),
|
|
14
|
+
transform var(--motion-hover),
|
|
15
|
+
border-color var(--motion-hover);
|
|
16
|
+
font-size: 12px;
|
|
17
|
+
text-decoration: none;
|
|
18
|
+
color: var(--fg);
|
|
19
|
+
}
|
|
20
|
+
.button[aria-disabled="true"] {
|
|
21
|
+
opacity: 0.5;
|
|
22
|
+
cursor: not-allowed;
|
|
23
|
+
}
|
|
24
|
+
.button:hover:not(:disabled):not([aria-disabled="true"]) {
|
|
25
|
+
background: var(--hover);
|
|
26
|
+
border-color: color-mix(in srgb, var(--fg) 18%, var(--surface));
|
|
27
|
+
}
|
|
28
|
+
.button:active:not(:disabled):not([aria-disabled="true"]) {
|
|
29
|
+
transform: translateY(1px);
|
|
30
|
+
}
|
|
31
|
+
.primary {
|
|
32
|
+
background: var(--accent-fill, var(--accent));
|
|
33
|
+
border-color: var(--accent-fill, var(--accent));
|
|
34
|
+
color: var(--on-accent-fill, var(--on-accent));
|
|
35
|
+
}
|
|
36
|
+
.primary:hover:not(:disabled):not([aria-disabled="true"]) {
|
|
37
|
+
background: var(
|
|
38
|
+
--accent-fill-hover,
|
|
39
|
+
color-mix(in srgb, var(--accent) 86%, var(--surface))
|
|
40
|
+
);
|
|
41
|
+
border-color: transparent;
|
|
42
|
+
}
|
|
43
|
+
.secondary {
|
|
44
|
+
box-shadow: 0 1px 1px #00000003;
|
|
45
|
+
}
|
|
46
|
+
.ghost {
|
|
47
|
+
background: transparent;
|
|
48
|
+
border-color: transparent;
|
|
49
|
+
box-shadow: none;
|
|
50
|
+
}
|
|
51
|
+
.danger {
|
|
52
|
+
color: var(--danger);
|
|
53
|
+
background: color-mix(in srgb, var(--danger) 5%, var(--surface));
|
|
54
|
+
}
|
|
55
|
+
.small {
|
|
56
|
+
min-height: var(--control-small);
|
|
57
|
+
padding: 4px 9px;
|
|
58
|
+
font-size: 11px;
|
|
59
|
+
}
|
|
60
|
+
.link {
|
|
61
|
+
min-height: 0;
|
|
62
|
+
padding: 0;
|
|
63
|
+
border: 0;
|
|
64
|
+
border-radius: 2px;
|
|
65
|
+
background: transparent;
|
|
66
|
+
box-shadow: none;
|
|
67
|
+
color: var(--link-color, var(--accent-ink, var(--accent)));
|
|
68
|
+
font-size: 13px;
|
|
69
|
+
line-height: 1.6;
|
|
70
|
+
text-align: left;
|
|
71
|
+
justify-content: flex-start;
|
|
72
|
+
white-space: normal;
|
|
73
|
+
}
|
|
74
|
+
.link:hover:not(:disabled):not([aria-disabled="true"]) {
|
|
75
|
+
background: transparent;
|
|
76
|
+
color: var(
|
|
77
|
+
--link-hover-color,
|
|
78
|
+
var(--link-color, var(--accent-hover, var(--accent-ink, var(--accent))))
|
|
79
|
+
);
|
|
80
|
+
text-decoration: underline;
|
|
81
|
+
text-underline-offset: 3px;
|
|
82
|
+
}
|
|
83
|
+
.link .content {
|
|
84
|
+
justify-content: flex-start;
|
|
85
|
+
}
|
|
86
|
+
.spin {
|
|
87
|
+
animation: spin 1s linear infinite;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.button {
|
|
91
|
+
position: relative;
|
|
92
|
+
}
|
|
93
|
+
.content {
|
|
94
|
+
display: inline-flex;
|
|
95
|
+
align-items: center;
|
|
96
|
+
justify-content: center;
|
|
97
|
+
gap: 7px;
|
|
98
|
+
}
|
|
99
|
+
.loader {
|
|
100
|
+
position: absolute;
|
|
101
|
+
inset: 0;
|
|
102
|
+
display: grid;
|
|
103
|
+
place-items: center;
|
|
104
|
+
}
|
|
105
|
+
.button[aria-busy="true"] {
|
|
106
|
+
opacity: 0.8;
|
|
107
|
+
cursor: wait;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
.content > svg {
|
|
111
|
+
width: var(--button-icon-size, 16px);
|
|
112
|
+
height: var(--button-icon-size, 16px);
|
|
113
|
+
flex-shrink: 0;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
@keyframes spin {
|
|
117
|
+
to {
|
|
118
|
+
transform: rotate(360deg);
|
|
119
|
+
}
|
|
120
|
+
}
|
package/components/Cascader.js
CHANGED
|
@@ -1,95 +1,95 @@
|
|
|
1
|
-
.checkbox {
|
|
2
|
-
display: inline-flex;
|
|
3
|
-
align-items: center;
|
|
4
|
-
gap: 9px;
|
|
5
|
-
cursor: pointer;
|
|
6
|
-
position: relative;
|
|
7
|
-
user-select: none;
|
|
8
|
-
}
|
|
9
|
-
.checkbox input[type="checkbox"] {
|
|
10
|
-
position: absolute;
|
|
11
|
-
left: 0;
|
|
12
|
-
width: 18px;
|
|
13
|
-
height: 18px;
|
|
14
|
-
margin: 0;
|
|
15
|
-
opacity: 0;
|
|
16
|
-
}
|
|
17
|
-
.checkMark {
|
|
18
|
-
width: 18px;
|
|
19
|
-
height: 18px;
|
|
20
|
-
flex-shrink: 0;
|
|
21
|
-
border: 1px solid color-mix(in srgb, var(--fg) 25%, var(--surface));
|
|
22
|
-
border-radius: 5px;
|
|
23
|
-
background: var(--field);
|
|
24
|
-
display: grid;
|
|
25
|
-
place-items: center;
|
|
26
|
-
pointer-events: none;
|
|
27
|
-
transition:
|
|
28
|
-
background-color var(--motion-hover),
|
|
29
|
-
border-color var(--motion-hover),
|
|
30
|
-
box-shadow var(--motion-hover),
|
|
31
|
-
transform var(--motion-press);
|
|
32
|
-
}
|
|
33
|
-
.checkMark svg {
|
|
34
|
-
width: 16px;
|
|
35
|
-
height: 16px;
|
|
36
|
-
fill: none;
|
|
37
|
-
stroke: currentColor;
|
|
38
|
-
stroke-width: 1.8;
|
|
39
|
-
stroke-linecap: round;
|
|
40
|
-
stroke-linejoin: round;
|
|
41
|
-
}
|
|
42
|
-
.checkMark path {
|
|
43
|
-
stroke-dasharray: 1;
|
|
44
|
-
stroke-dashoffset: 1;
|
|
45
|
-
opacity: 0;
|
|
46
|
-
transition:
|
|
47
|
-
stroke-dashoffset var(--motion-panel) var(--ease),
|
|
48
|
-
opacity var(--motion-hover);
|
|
49
|
-
}
|
|
50
|
-
.checkbox:hover input:not(:disabled) + .checkMark {
|
|
51
|
-
border-color: var(--muted);
|
|
52
|
-
}
|
|
53
|
-
.checkbox:active input:not(:disabled) + .checkMark {
|
|
54
|
-
transform: scale(0.92);
|
|
55
|
-
}
|
|
56
|
-
.checkbox input:checked + .checkMark {
|
|
57
|
-
background: var(--accent-fill, var(--accent));
|
|
58
|
-
color: var(--on-accent-fill, var(--on-accent));
|
|
59
|
-
border-color: var(--accent-fill, var(--accent));
|
|
60
|
-
}
|
|
61
|
-
.checkbox input:checked + .checkMark path {
|
|
62
|
-
stroke-dashoffset: 0;
|
|
63
|
-
opacity: 1;
|
|
64
|
-
}
|
|
65
|
-
.checkbox input:focus-visible + .checkMark {
|
|
66
|
-
box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 14%, transparent);
|
|
67
|
-
border-color: var(--accent);
|
|
68
|
-
}
|
|
69
|
-
.checkbox[data-disabled="true"] {
|
|
70
|
-
cursor: not-allowed;
|
|
71
|
-
}
|
|
72
|
-
.checkbox input:disabled ~ span {
|
|
73
|
-
opacity: 0.4;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
.checkbox[data-indeterminate="true"] .checkMark {
|
|
77
|
-
background: var(--accent);
|
|
78
|
-
border-color: var(--accent);
|
|
79
|
-
color: var(--on-accent);
|
|
80
|
-
}
|
|
81
|
-
.checkbox[data-indeterminate="true"] .checkMark svg {
|
|
82
|
-
opacity: 1;
|
|
83
|
-
transform: scale(1);
|
|
84
|
-
}
|
|
85
|
-
.checkbox[data-indeterminate="true"] .checkMark path {
|
|
86
|
-
stroke-dashoffset: 0;
|
|
87
|
-
opacity: 1;
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
.checkbox input[aria-invalid="true"] + .checkMark {
|
|
91
|
-
border-color: var(--danger);
|
|
92
|
-
}
|
|
93
|
-
.checkbox input[aria-invalid="true"]:focus-visible + .checkMark {
|
|
94
|
-
box-shadow: 0 0 0 2px color-mix(in srgb, var(--danger) 12%, transparent);
|
|
95
|
-
}
|
|
1
|
+
.checkbox {
|
|
2
|
+
display: inline-flex;
|
|
3
|
+
align-items: center;
|
|
4
|
+
gap: 9px;
|
|
5
|
+
cursor: pointer;
|
|
6
|
+
position: relative;
|
|
7
|
+
user-select: none;
|
|
8
|
+
}
|
|
9
|
+
.checkbox input[type="checkbox"] {
|
|
10
|
+
position: absolute;
|
|
11
|
+
left: 0;
|
|
12
|
+
width: 18px;
|
|
13
|
+
height: 18px;
|
|
14
|
+
margin: 0;
|
|
15
|
+
opacity: 0;
|
|
16
|
+
}
|
|
17
|
+
.checkMark {
|
|
18
|
+
width: 18px;
|
|
19
|
+
height: 18px;
|
|
20
|
+
flex-shrink: 0;
|
|
21
|
+
border: 1px solid color-mix(in srgb, var(--fg) 25%, var(--surface));
|
|
22
|
+
border-radius: 5px;
|
|
23
|
+
background: var(--field);
|
|
24
|
+
display: grid;
|
|
25
|
+
place-items: center;
|
|
26
|
+
pointer-events: none;
|
|
27
|
+
transition:
|
|
28
|
+
background-color var(--motion-hover),
|
|
29
|
+
border-color var(--motion-hover),
|
|
30
|
+
box-shadow var(--motion-hover),
|
|
31
|
+
transform var(--motion-press);
|
|
32
|
+
}
|
|
33
|
+
.checkMark svg {
|
|
34
|
+
width: 16px;
|
|
35
|
+
height: 16px;
|
|
36
|
+
fill: none;
|
|
37
|
+
stroke: currentColor;
|
|
38
|
+
stroke-width: 1.8;
|
|
39
|
+
stroke-linecap: round;
|
|
40
|
+
stroke-linejoin: round;
|
|
41
|
+
}
|
|
42
|
+
.checkMark path {
|
|
43
|
+
stroke-dasharray: 1;
|
|
44
|
+
stroke-dashoffset: 1;
|
|
45
|
+
opacity: 0;
|
|
46
|
+
transition:
|
|
47
|
+
stroke-dashoffset var(--motion-panel) var(--ease),
|
|
48
|
+
opacity var(--motion-hover);
|
|
49
|
+
}
|
|
50
|
+
.checkbox:hover input:not(:disabled) + .checkMark {
|
|
51
|
+
border-color: var(--muted);
|
|
52
|
+
}
|
|
53
|
+
.checkbox:active input:not(:disabled) + .checkMark {
|
|
54
|
+
transform: scale(0.92);
|
|
55
|
+
}
|
|
56
|
+
.checkbox input:checked + .checkMark {
|
|
57
|
+
background: var(--accent-fill, var(--accent));
|
|
58
|
+
color: var(--on-accent-fill, var(--on-accent));
|
|
59
|
+
border-color: var(--accent-fill, var(--accent));
|
|
60
|
+
}
|
|
61
|
+
.checkbox input:checked + .checkMark path {
|
|
62
|
+
stroke-dashoffset: 0;
|
|
63
|
+
opacity: 1;
|
|
64
|
+
}
|
|
65
|
+
.checkbox input:focus-visible + .checkMark {
|
|
66
|
+
box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-ink, var(--accent)) 14%, transparent);
|
|
67
|
+
border-color: var(--accent-ink, var(--accent));
|
|
68
|
+
}
|
|
69
|
+
.checkbox[data-disabled="true"] {
|
|
70
|
+
cursor: not-allowed;
|
|
71
|
+
}
|
|
72
|
+
.checkbox input:disabled ~ span {
|
|
73
|
+
opacity: 0.4;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.checkbox[data-indeterminate="true"] .checkMark {
|
|
77
|
+
background: var(--accent);
|
|
78
|
+
border-color: var(--accent);
|
|
79
|
+
color: var(--on-accent);
|
|
80
|
+
}
|
|
81
|
+
.checkbox[data-indeterminate="true"] .checkMark svg {
|
|
82
|
+
opacity: 1;
|
|
83
|
+
transform: scale(1);
|
|
84
|
+
}
|
|
85
|
+
.checkbox[data-indeterminate="true"] .checkMark path {
|
|
86
|
+
stroke-dashoffset: 0;
|
|
87
|
+
opacity: 1;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.checkbox input[aria-invalid="true"] + .checkMark {
|
|
91
|
+
border-color: var(--danger);
|
|
92
|
+
}
|
|
93
|
+
.checkbox input[aria-invalid="true"]:focus-visible + .checkMark {
|
|
94
|
+
box-shadow: 0 0 0 2px color-mix(in srgb, var(--danger) 12%, transparent);
|
|
95
|
+
}
|
package/components/Combobox.js
CHANGED
|
@@ -2,6 +2,11 @@
|
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
gap: 7px;
|
|
5
|
+
min-height: 0;
|
|
6
|
+
flex-shrink: 1;
|
|
7
|
+
}
|
|
8
|
+
.panel > :not(.list) {
|
|
9
|
+
flex-shrink: 0;
|
|
5
10
|
}
|
|
6
11
|
.inputTrigger {
|
|
7
12
|
min-width: 0;
|
|
@@ -10,7 +15,7 @@
|
|
|
10
15
|
.list {
|
|
11
16
|
composes: stack from "./OptionList.module.css";
|
|
12
17
|
max-height: 240px;
|
|
13
|
-
min-height:
|
|
18
|
+
min-height: 0;
|
|
14
19
|
overflow: auto;
|
|
15
20
|
}
|
|
16
21
|
.empty {
|
|
@@ -11,7 +11,7 @@ import { Dialog } from "./Dialog.js";
|
|
|
11
11
|
import { SearchField } from "./SearchField.js";
|
|
12
12
|
import { MenuItem } from "./MenuItem.js";
|
|
13
13
|
import { Spinner } from "./Spinner.js";
|
|
14
|
-
import {
|
|
14
|
+
import { Banner } from "./Banner.js";
|
|
15
15
|
import { useSurfacePortal } from "./surfacePortal.js";
|
|
16
16
|
import s from "./CommandPalette.module.css";
|
|
17
17
|
const normalize = (value) => value.normalize("NFKD").replace(/\p{Diacritic}/gu, "").toLocaleLowerCase();
|
|
@@ -198,7 +198,7 @@ function CommandPalette({
|
|
|
198
198
|
}
|
|
199
199
|
),
|
|
200
200
|
error && /* @__PURE__ */ jsx(
|
|
201
|
-
|
|
201
|
+
Banner,
|
|
202
202
|
{
|
|
203
203
|
tone: "danger",
|
|
204
204
|
title: "\u547D\u4EE4\u6267\u884C\u5931\u8D25",
|