@oscarpalmer/oui 0.30.0 → 0.32.0
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/dist/css/badge.css +1 -5
- package/dist/css/combobox.css +224 -0
- package/dist/css/form.css +18 -14
- package/dist/js/combobox.d.mts +65 -1
- package/dist/js/combobox.mjs +587 -206
- package/dist/js/focus-trap/focus-trap.embedded.mjs +3 -4
- package/dist/js/internal/draggable.mjs +7 -15
- package/dist/js/menu.d.mts +1 -1
- package/dist/js/menu.mjs +5 -2
- package/dist/js/movable/movable.embedded.mjs +6 -10
- package/dist/js/resizable/resizable.embedded.mjs +9 -16
- package/dist/js/sortable/sortable.embedded.mjs +21 -26
- package/dist/js/toolbar.d.mts +1 -1
- package/package.json +4 -4
- package/src/css/badge.scss +1 -18
- package/src/css/combobox.scss +192 -2
- package/src/css/form.scss +18 -80
- package/src/css/mixins.scss +78 -0
- package/src/js/combobox.ts +1053 -336
- package/src/js/focus-trap/focus-trap.embedded.ts +3 -7
- package/src/js/internal/draggable.ts +4 -10
- package/src/js/menu.ts +5 -2
- package/src/js/movable/movable.embedded.ts +3 -6
- package/src/js/resizable/resizable.embedded.ts +6 -19
- package/src/js/sortable/sortable.embedded.ts +17 -14
package/dist/css/badge.css
CHANGED
|
@@ -1,11 +1,7 @@
|
|
|
1
1
|
/*! https://github.com/oscarpalmer/oui */
|
|
2
2
|
|
|
3
3
|
:where(.oui-pill, .oui-tag) {
|
|
4
|
-
--oui-shadow-mixed: color-mix(
|
|
5
|
-
in oklab,
|
|
6
|
-
var(--oui-shadow, var(--oui-gray-6)),
|
|
7
|
-
transparent 92.5%
|
|
8
|
-
);
|
|
4
|
+
--oui-shadow-mixed: color-mix(in oklab, var(--oui-shadow, var(--oui-gray-6)), transparent 92.5%);
|
|
9
5
|
box-shadow: inset 0 1px 0 0 transparent, 0 0 0 1px var(--oui-shadow-mixed), 0 1px 2px -0.5px var(--oui-shadow-mixed), 0 2px 4px -1px var(--oui-shadow-mixed);
|
|
10
6
|
display: inline-flex;
|
|
11
7
|
flex-flow: row nowrap;
|
package/dist/css/combobox.css
CHANGED
|
@@ -1,5 +1,74 @@
|
|
|
1
|
+
@charset "UTF-8";
|
|
1
2
|
/*! https://github.com/oscarpalmer/oui */
|
|
2
3
|
|
|
4
|
+
:where([oui-combobox-anchor]) {
|
|
5
|
+
--oui-background-percentage: 0%;
|
|
6
|
+
--oui-foreground-percentage: 0%;
|
|
7
|
+
--oui-outline-percentage: 100%;
|
|
8
|
+
--oui-outline-value: var(--oui-blue-6);
|
|
9
|
+
outline: 4px solid color-mix(in oklab, var(--oui-outline-value), transparent var(--oui-outline-percentage));
|
|
10
|
+
outline-offset: 0;
|
|
11
|
+
transition: 0.125s ease-in-out;
|
|
12
|
+
align-content: center;
|
|
13
|
+
background-color: color-mix(in oklab, var(--oui-background-value), transparent var(--oui-background-percentage));
|
|
14
|
+
border: 1px solid var(--oui-border-value, var(--oui-gray-3));
|
|
15
|
+
box-shadow: inset 0 2px 4px -1px var(--oui-gray-3);
|
|
16
|
+
color: color-mix(in oklab, var(--oui-foreground-value, inherit), transparent var(--oui-foreground-percentage));
|
|
17
|
+
-webkit-text-fill-color: color-mix(in oklab, var(--oui-foreground-value, inherit), transparent var(--oui-foreground-percentage));
|
|
18
|
+
--oui-background-value: var(--oui-absolute);
|
|
19
|
+
padding: 0.5em 2em 0.5em 0.75em;
|
|
20
|
+
border-radius: 0.25em;
|
|
21
|
+
background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='4'%3E%3Cpath d='M4 0h6L7 4'/%3E%3C/svg%3E");
|
|
22
|
+
background-position: right 0.5em center;
|
|
23
|
+
background-repeat: no-repeat;
|
|
24
|
+
background-size: 1em;
|
|
25
|
+
}
|
|
26
|
+
:where([oui-combobox-anchor]:not([disabled], [readonly], [aria-disabled=true i]):focus), :where([oui-combobox-anchor]:not([disabled], [readonly], [aria-disabled=true i]):has(+ [oui-combobox-content]:focus-within)) {
|
|
27
|
+
--oui-border-value: var(--oui-blue-5);
|
|
28
|
+
--oui-foreground-value: inherit;
|
|
29
|
+
--oui-outline-percentage: 75%;
|
|
30
|
+
--oui-outline-value: var(--oui-blue-6);
|
|
31
|
+
}
|
|
32
|
+
@media (hover: hover) {
|
|
33
|
+
:where([oui-combobox-anchor]:not([disabled], [readonly], [aria-disabled=true i]):hover) {
|
|
34
|
+
--oui-border-value: var(--oui-blue-4);
|
|
35
|
+
--oui-foreground-percentage: 0%;
|
|
36
|
+
--oui-foreground-value: inherit;
|
|
37
|
+
--oui-outline-percentage: 90%;
|
|
38
|
+
--oui-outline-value: var(--oui-blue-6);
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
:where([oui-combobox-anchor]:is([disabled], [readonly], [aria-disabled=true i])) {
|
|
42
|
+
--oui-foreground-percentage: 25%;
|
|
43
|
+
font-style: italic;
|
|
44
|
+
}
|
|
45
|
+
:where([oui-combobox-anchor]:is([disabled], [readonly], [aria-disabled=true i]):focus) {
|
|
46
|
+
--oui-outline-percentage: 75%;
|
|
47
|
+
}
|
|
48
|
+
:where([oui-combobox-anchor]:is([disabled], [aria-disabled=true i])) {
|
|
49
|
+
--oui-background-percentage: 50%;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
:where([oui-combobox-content]) {
|
|
53
|
+
--margin-bottom: 0.5em;
|
|
54
|
+
--margin-left: 0.5em;
|
|
55
|
+
--margin-right: 0.5em;
|
|
56
|
+
--margin-top: 0.5em;
|
|
57
|
+
inset-block: var(--margin-top) var(--margin-bottom);
|
|
58
|
+
inset-inline: var(--margin-left) var(--margin-right);
|
|
59
|
+
}
|
|
60
|
+
:where([oui-combobox-content])[oui-position$=bottom] {
|
|
61
|
+
--margin-bottom: 0;
|
|
62
|
+
}
|
|
63
|
+
:where([oui-combobox-content])[oui-position$=end] {
|
|
64
|
+
--margin-right: 0;
|
|
65
|
+
}
|
|
66
|
+
:where([oui-combobox-content])[oui-position$=start] {
|
|
67
|
+
--margin-left: 0;
|
|
68
|
+
}
|
|
69
|
+
:where([oui-combobox-content])[oui-position$=top] {
|
|
70
|
+
--margin-top: 0;
|
|
71
|
+
}
|
|
3
72
|
:where([oui-combobox-content]) {
|
|
4
73
|
box-shadow: inset 0 1px 0 0 transparent, 0 0 0 1px rgba(0, 0, 0, 0.05), 0 1px 2px -0.5px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.05), 0 4px 8px -2px rgba(0, 0, 0, 0.05), 0 8px 16px -4px rgba(0, 0, 0, 0.05), 0 16px 32px -8px rgba(0, 0, 0, 0.05), 0 32px 64px -16px rgba(0, 0, 0, 0.05), 0 64px 128px -32px rgba(0, 0, 0, 0.05);
|
|
5
74
|
width: -moz-fit-content;
|
|
@@ -10,17 +79,172 @@
|
|
|
10
79
|
max-height: max(25vh, 32rem);
|
|
11
80
|
min-width: var(--oui-combobox-width, auto);
|
|
12
81
|
flex-flow: column nowrap;
|
|
82
|
+
border-radius: 0.25em;
|
|
13
83
|
}
|
|
14
84
|
:where([oui-combobox-content]):popover-open {
|
|
15
85
|
display: flex !important;
|
|
16
86
|
}
|
|
17
87
|
|
|
88
|
+
:where([oui-combobox-empty]) {
|
|
89
|
+
padding: 1em;
|
|
90
|
+
text-align: center;
|
|
91
|
+
font-style: italic;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
:where([oui-combobox-filter], [oui-combobox-header])::after {
|
|
95
|
+
content: "";
|
|
96
|
+
width: 100%;
|
|
97
|
+
height: 0.25em;
|
|
98
|
+
background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.125), transparent);
|
|
99
|
+
position: absolute;
|
|
100
|
+
bottom: -0.25em;
|
|
101
|
+
left: 0;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
:where([oui-combobox-filter]) {
|
|
105
|
+
padding: 0.75em;
|
|
106
|
+
background-color: var(--oui-yellow-0);
|
|
107
|
+
border-radius: 0.25em 0.25em 0 0;
|
|
108
|
+
position: relative;
|
|
109
|
+
z-index: 1;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
:where([oui-combobox-filter-input]) {
|
|
113
|
+
--oui-background-percentage: 0%;
|
|
114
|
+
--oui-foreground-percentage: 0%;
|
|
115
|
+
--oui-outline-percentage: 100%;
|
|
116
|
+
--oui-outline-value: var(--oui-blue-6);
|
|
117
|
+
outline: 4px solid color-mix(in oklab, var(--oui-outline-value), transparent var(--oui-outline-percentage));
|
|
118
|
+
outline-offset: 0;
|
|
119
|
+
transition: 0.125s ease-in-out;
|
|
120
|
+
align-content: center;
|
|
121
|
+
background-color: color-mix(in oklab, var(--oui-background-value), transparent var(--oui-background-percentage));
|
|
122
|
+
border: 1px solid var(--oui-border-value, var(--oui-gray-3));
|
|
123
|
+
box-shadow: inset 0 2px 4px -1px var(--oui-gray-3);
|
|
124
|
+
color: color-mix(in oklab, var(--oui-foreground-value, inherit), transparent var(--oui-foreground-percentage));
|
|
125
|
+
-webkit-text-fill-color: color-mix(in oklab, var(--oui-foreground-value, inherit), transparent var(--oui-foreground-percentage));
|
|
126
|
+
--oui-background-value: var(--oui-absolute);
|
|
127
|
+
--oui-border-value: var(--oui-yellow-3);
|
|
128
|
+
width: 100%;
|
|
129
|
+
padding: 0.5em 0.75em;
|
|
130
|
+
outline-width: 0;
|
|
131
|
+
border-radius: 0.25em;
|
|
132
|
+
font-size: 0.875rem;
|
|
133
|
+
}
|
|
134
|
+
:where(:where([oui-combobox-filter-input]):not([disabled], [readonly], [aria-disabled=true i]):focus) {
|
|
135
|
+
--oui-border-value: var(--oui-blue-5);
|
|
136
|
+
--oui-foreground-value: inherit;
|
|
137
|
+
--oui-outline-percentage: 75%;
|
|
138
|
+
--oui-outline-value: var(--oui-blue-6);
|
|
139
|
+
}
|
|
140
|
+
@media (hover: hover) {
|
|
141
|
+
:where(:where([oui-combobox-filter-input]):not([disabled], [readonly], [aria-disabled=true i]):hover) {
|
|
142
|
+
--oui-border-value: var(--oui-blue-4);
|
|
143
|
+
--oui-foreground-percentage: 0%;
|
|
144
|
+
--oui-foreground-value: inherit;
|
|
145
|
+
--oui-outline-percentage: 90%;
|
|
146
|
+
--oui-outline-value: var(--oui-blue-6);
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
:where(:where([oui-combobox-filter-input]):is([disabled], [readonly], [aria-disabled=true i])) {
|
|
150
|
+
--oui-foreground-percentage: 25%;
|
|
151
|
+
font-style: italic;
|
|
152
|
+
}
|
|
153
|
+
:where(:where([oui-combobox-filter-input]):is([disabled], [readonly], [aria-disabled=true i]):focus) {
|
|
154
|
+
--oui-outline-percentage: 75%;
|
|
155
|
+
}
|
|
156
|
+
:where(:where([oui-combobox-filter-input]):is([disabled], [aria-disabled=true i])) {
|
|
157
|
+
--oui-background-percentage: 50%;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
:where([oui-combobox-filter-label]) {
|
|
161
|
+
width: 1px !important;
|
|
162
|
+
height: 1px !important;
|
|
163
|
+
padding: 0 !important;
|
|
164
|
+
clip-path: inset(50%) !important;
|
|
165
|
+
overflow: hidden !important;
|
|
166
|
+
border: 0 !important;
|
|
167
|
+
white-space: nowrap !important;
|
|
168
|
+
display: inline-flex;
|
|
169
|
+
position: absolute;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
:where([oui-combobox-header]) {
|
|
173
|
+
padding: 0.5em 1em;
|
|
174
|
+
background-color: var(--oui-gray-0);
|
|
175
|
+
font-size: 0.75em;
|
|
176
|
+
font-weight: bold;
|
|
177
|
+
position: sticky;
|
|
178
|
+
top: 0;
|
|
179
|
+
z-index: 1;
|
|
180
|
+
}
|
|
181
|
+
|
|
18
182
|
:where([oui-combobox-list]) {
|
|
19
183
|
overflow: auto;
|
|
184
|
+
position: relative;
|
|
20
185
|
}
|
|
21
186
|
|
|
22
187
|
:where([oui-combobox-option]) {
|
|
188
|
+
padding: 0.5em 0.75em;
|
|
189
|
+
outline: 4px solid transparent;
|
|
190
|
+
outline-offset: -4px;
|
|
191
|
+
line-height: 1.25;
|
|
23
192
|
cursor: pointer;
|
|
193
|
+
transition: 0.125s ease-in-out;
|
|
194
|
+
}
|
|
195
|
+
:where([oui-combobox-option][aria-selected=true i]) {
|
|
196
|
+
background-color: var(--oui-blue-3);
|
|
197
|
+
color: var(--oui-blue-9);
|
|
198
|
+
}
|
|
199
|
+
:where(oui-combobox[multiple] [oui-combobox-option][aria-selected=true i])::before {
|
|
200
|
+
content: "✓";
|
|
201
|
+
margin: 0 0.75em 0 0;
|
|
202
|
+
}
|
|
203
|
+
@media (hover: hover) {
|
|
204
|
+
:where(:where(oui-combobox:not([disabled], [readonly], [aria-disabled=true i]) [oui-combobox-option]):hover) {
|
|
205
|
+
background-color: var(--oui-blue-1);
|
|
206
|
+
color: var(--oui-blue-8);
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
:where([oui-combobox-option-active]) {
|
|
211
|
+
background-color: var(--oui-blue-1);
|
|
212
|
+
outline-color: var(--oui-blue-4);
|
|
213
|
+
color: var(--oui-blue-8);
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
:where([oui-combobox-selection]) {
|
|
217
|
+
max-height: 8rem;
|
|
218
|
+
display: flex;
|
|
219
|
+
padding: 0.5em;
|
|
220
|
+
margin: -0.5em -0.5em -0.5em -0.75em;
|
|
221
|
+
flex-flow: row wrap;
|
|
222
|
+
gap: 0.5em;
|
|
223
|
+
overflow: auto;
|
|
224
|
+
list-style: none;
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
:where([oui-combobox-selection-item]) {
|
|
228
|
+
--oui-shadow-mixed: color-mix(in oklab, var(--oui-shadow, var(--oui-gray-6)), transparent 92.5%);
|
|
229
|
+
box-shadow: inset 0 1px 0 0 transparent, 0 0 0 1px var(--oui-shadow-mixed), 0 1px 2px -0.5px var(--oui-shadow-mixed), 0 2px 4px -1px var(--oui-shadow-mixed);
|
|
230
|
+
display: inline-flex;
|
|
231
|
+
flex-flow: row nowrap;
|
|
232
|
+
gap: 0.5em;
|
|
233
|
+
background-color: color-mix(in oklab, var(--oui-background, var(--oui-gray-0)), transparent 25%);
|
|
234
|
+
color: var(--oui-foreground, var(--oui-gray-8));
|
|
235
|
+
line-height: 1.25;
|
|
236
|
+
border-radius: 3em;
|
|
237
|
+
padding: 0.5em 1em;
|
|
238
|
+
gap: 0.75em;
|
|
239
|
+
font-size: 0.875em;
|
|
240
|
+
transition: 0.125s ease-in-out;
|
|
241
|
+
}
|
|
242
|
+
@media (hover: hover) {
|
|
243
|
+
:where(oui-combobox:not([disabled], [readonly], [aria-disabled=true i]) [oui-combobox-selection-item]:hover) {
|
|
244
|
+
--oui-background: var(--oui-red-0);
|
|
245
|
+
--oui-foreground: var(--oui-red-8);
|
|
246
|
+
--oui-shadow: var(--oui-red-6);
|
|
247
|
+
}
|
|
24
248
|
}
|
|
25
249
|
|
|
26
250
|
|
package/dist/css/form.css
CHANGED
|
@@ -18,6 +18,7 @@
|
|
|
18
18
|
outline: 4px solid color-mix(in oklab, var(--oui-outline-value), transparent var(--oui-outline-percentage));
|
|
19
19
|
outline-offset: 0;
|
|
20
20
|
transition: 0.125s ease-in-out;
|
|
21
|
+
align-content: center;
|
|
21
22
|
background-color: color-mix(in oklab, var(--oui-background-value), transparent var(--oui-background-percentage));
|
|
22
23
|
border: 1px solid var(--oui-border-value, var(--oui-gray-3));
|
|
23
24
|
box-shadow: inset 0 2px 4px -1px var(--oui-gray-3);
|
|
@@ -94,6 +95,7 @@
|
|
|
94
95
|
outline: 4px solid color-mix(in oklab, var(--oui-outline-value), transparent var(--oui-outline-percentage));
|
|
95
96
|
outline-offset: 0;
|
|
96
97
|
transition: 0.125s ease-in-out;
|
|
98
|
+
align-content: center;
|
|
97
99
|
background-color: color-mix(in oklab, var(--oui-background-value), transparent var(--oui-background-percentage));
|
|
98
100
|
border: 1px solid var(--oui-border-value, var(--oui-gray-3));
|
|
99
101
|
box-shadow: inset 0 2px 4px -1px var(--oui-gray-3);
|
|
@@ -114,6 +116,7 @@
|
|
|
114
116
|
outline: 4px solid color-mix(in oklab, var(--oui-outline-value), transparent var(--oui-outline-percentage));
|
|
115
117
|
outline-offset: 0;
|
|
116
118
|
transition: 0.125s ease-in-out;
|
|
119
|
+
align-content: center;
|
|
117
120
|
background-color: color-mix(in oklab, var(--oui-background-value), transparent var(--oui-background-percentage));
|
|
118
121
|
border: 1px solid var(--oui-border-value, var(--oui-gray-3));
|
|
119
122
|
box-shadow: inset 0 2px 4px -1px var(--oui-gray-3);
|
|
@@ -133,6 +136,7 @@
|
|
|
133
136
|
outline: 4px solid color-mix(in oklab, var(--oui-outline-value), transparent var(--oui-outline-percentage));
|
|
134
137
|
outline-offset: 0;
|
|
135
138
|
transition: 0.125s ease-in-out;
|
|
139
|
+
align-content: center;
|
|
136
140
|
background-color: color-mix(in oklab, var(--oui-background-value), transparent var(--oui-background-percentage));
|
|
137
141
|
border: 1px solid var(--oui-border-value, var(--oui-gray-3));
|
|
138
142
|
box-shadow: inset 0 2px 4px -1px var(--oui-gray-3);
|
|
@@ -424,57 +428,57 @@
|
|
|
424
428
|
--oui-outline-value: var(--oui-blue-6);
|
|
425
429
|
}
|
|
426
430
|
}
|
|
427
|
-
:where(.oui-input[disabled],
|
|
431
|
+
:where(.oui-input:is([disabled], [readonly], [aria-disabled=true i])) {
|
|
428
432
|
--oui-foreground-percentage: 25%;
|
|
429
433
|
font-style: italic;
|
|
430
434
|
}
|
|
431
|
-
:where(.oui-input[disabled],
|
|
435
|
+
:where(.oui-input:is([disabled], [readonly], [aria-disabled=true i]))::file-selector-button {
|
|
432
436
|
--oui-background-value: var(--oui-gray-1);
|
|
433
437
|
cursor: default;
|
|
434
438
|
}
|
|
435
|
-
:where(.oui-input[disabled],
|
|
439
|
+
:where(.oui-input:is([disabled], [readonly], [aria-disabled=true i]))::-moz-range-thumb {
|
|
436
440
|
--oui-background-value: var(--oui-gray-2);
|
|
437
441
|
cursor: default;
|
|
438
442
|
}
|
|
439
|
-
:where(.oui-input[disabled],
|
|
443
|
+
:where(.oui-input:is([disabled], [readonly], [aria-disabled=true i]))::-ms-thumb {
|
|
440
444
|
--oui-background-value: var(--oui-gray-2);
|
|
441
445
|
cursor: default;
|
|
442
446
|
}
|
|
443
|
-
:where(.oui-input[disabled],
|
|
447
|
+
:where(.oui-input:is([disabled], [readonly], [aria-disabled=true i]))::-webkit-slider-thumb {
|
|
444
448
|
--oui-background-value: var(--oui-gray-2);
|
|
445
449
|
cursor: default;
|
|
446
450
|
}
|
|
447
451
|
:where(.oui-input:is([disabled], [readonly], [aria-disabled=true i]):focus) {
|
|
448
452
|
--oui-outline-percentage: 75%;
|
|
449
453
|
}
|
|
450
|
-
:where(.oui-input[disabled],
|
|
454
|
+
:where(.oui-input:is([disabled], [aria-disabled=true i])) {
|
|
451
455
|
--oui-background-percentage: 50%;
|
|
452
456
|
}
|
|
453
|
-
:where(.oui-input[disabled],
|
|
457
|
+
:where(.oui-input:is([disabled], [aria-disabled=true i]))::-moz-range-thumb {
|
|
454
458
|
--oui-background-value: var(--oui-gray-1);
|
|
455
459
|
cursor: default;
|
|
456
460
|
}
|
|
457
|
-
:where(.oui-input[disabled],
|
|
461
|
+
:where(.oui-input:is([disabled], [aria-disabled=true i]))::-ms-thumb {
|
|
458
462
|
--oui-background-value: var(--oui-gray-1);
|
|
459
463
|
cursor: default;
|
|
460
464
|
}
|
|
461
|
-
:where(.oui-input[disabled],
|
|
465
|
+
:where(.oui-input:is([disabled], [aria-disabled=true i]))::-webkit-slider-thumb {
|
|
462
466
|
--oui-background-value: var(--oui-gray-1);
|
|
463
467
|
cursor: default;
|
|
464
468
|
}
|
|
465
|
-
:where(.oui-input[disabled],
|
|
469
|
+
:where(.oui-input:is([disabled], [aria-disabled=true i]))::-moz-range-track {
|
|
466
470
|
--oui-background-percentage: 50%;
|
|
467
471
|
--oui-background-value: var(--oui-gray-0);
|
|
468
472
|
}
|
|
469
|
-
:where(.oui-input[disabled],
|
|
473
|
+
:where(.oui-input:is([disabled], [aria-disabled=true i]))::-ms-track {
|
|
470
474
|
--oui-background-percentage: 50%;
|
|
471
475
|
--oui-background-value: var(--oui-gray-0);
|
|
472
476
|
}
|
|
473
|
-
:where(.oui-input[disabled],
|
|
477
|
+
:where(.oui-input:is([disabled], [aria-disabled=true i]))::-webkit-slider-runnable-track {
|
|
474
478
|
--oui-background-percentage: 50%;
|
|
475
479
|
--oui-background-value: var(--oui-gray-0);
|
|
476
480
|
}
|
|
477
|
-
:where(.oui-input[disabled],
|
|
481
|
+
:where(.oui-input:is([disabled], [aria-disabled=true i]))::-webkit-calendar-picker-indicator {
|
|
478
482
|
opacity: 0.5;
|
|
479
483
|
}
|
|
480
484
|
|
|
@@ -523,7 +527,7 @@
|
|
|
523
527
|
transition: 0.125s ease-in-out;
|
|
524
528
|
}
|
|
525
529
|
@media (hover: hover) {
|
|
526
|
-
:where(
|
|
530
|
+
:where(.oui-label[for]:hover) {
|
|
527
531
|
color: var(--oui-blue-8);
|
|
528
532
|
}
|
|
529
533
|
}
|
package/dist/js/combobox.d.mts
CHANGED
|
@@ -8,18 +8,82 @@ declare class OuiComboboxElement extends HTMLElement {
|
|
|
8
8
|
#private;
|
|
9
9
|
static formAssociated: boolean;
|
|
10
10
|
static observedAttributes: string[];
|
|
11
|
+
/**
|
|
12
|
+
* Is the combobox disabled?
|
|
13
|
+
*/
|
|
11
14
|
get disabled(): boolean;
|
|
15
|
+
/**
|
|
16
|
+
* Should the combobox be disabled?
|
|
17
|
+
*/
|
|
12
18
|
set disabled(value: boolean);
|
|
19
|
+
/**
|
|
20
|
+
* Maximum number of selected options
|
|
21
|
+
*/
|
|
22
|
+
get max(): number | undefined;
|
|
23
|
+
/**
|
|
24
|
+
* Set the maximum number of selected options
|
|
25
|
+
*/
|
|
26
|
+
set max(value: number);
|
|
27
|
+
/**
|
|
28
|
+
* Minimum number of selected options
|
|
29
|
+
*/
|
|
30
|
+
get min(): number | undefined;
|
|
31
|
+
/**
|
|
32
|
+
* Set the minimum number of selected options
|
|
33
|
+
*/
|
|
34
|
+
set min(value: number);
|
|
35
|
+
/**
|
|
36
|
+
* Does the combobox allow multiple values?
|
|
37
|
+
*/
|
|
13
38
|
get multiple(): boolean;
|
|
39
|
+
/**
|
|
40
|
+
* Name of the combobox
|
|
41
|
+
*/
|
|
14
42
|
get name(): string;
|
|
15
|
-
|
|
43
|
+
/**
|
|
44
|
+
* Is the combobox readonly?
|
|
45
|
+
*/
|
|
46
|
+
get readonly(): boolean;
|
|
47
|
+
/**
|
|
48
|
+
* Should the combobox be readonly?
|
|
49
|
+
*/
|
|
50
|
+
set readonly(value: boolean);
|
|
51
|
+
/**
|
|
52
|
+
* Is the combobox required?
|
|
53
|
+
*/
|
|
16
54
|
get required(): boolean;
|
|
55
|
+
/**
|
|
56
|
+
* Should the combobox be required?
|
|
57
|
+
*/
|
|
17
58
|
set required(value: boolean);
|
|
59
|
+
/**
|
|
60
|
+
* Selected options
|
|
61
|
+
*/
|
|
62
|
+
get selected(): HTMLElement[];
|
|
63
|
+
/**
|
|
64
|
+
* Type of combobox
|
|
65
|
+
*/
|
|
18
66
|
get type(): OuiComboboxType;
|
|
67
|
+
/**
|
|
68
|
+
* Current value
|
|
69
|
+
*/
|
|
19
70
|
get value(): string;
|
|
71
|
+
/**
|
|
72
|
+
* Set the value
|
|
73
|
+
*/
|
|
20
74
|
set value(value: unknown);
|
|
75
|
+
/**
|
|
76
|
+
* Current values
|
|
77
|
+
*/
|
|
78
|
+
get values(): string[];
|
|
79
|
+
/**
|
|
80
|
+
* Set the values
|
|
81
|
+
*/
|
|
82
|
+
set values(value: unknown[]);
|
|
21
83
|
constructor();
|
|
22
84
|
attributeChangedCallback(name: string, _: string | null, value: string | null): void;
|
|
85
|
+
clear(): void;
|
|
86
|
+
formResetCallback(): void;
|
|
23
87
|
}
|
|
24
88
|
type OuiComboboxType = 'autocomplete' | 'select';
|
|
25
89
|
declare const TAGNAME = "oui-combobox";
|