@oscarpalmer/oui 0.37.0 → 0.38.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/a11y.css +1 -0
- package/dist/css/badge.css +1 -0
- package/dist/css/button.css +5 -0
- package/dist/css/color-picker.css +377 -0
- package/dist/css/color.css +0 -1
- package/dist/css/combobox.css +7 -0
- package/dist/css/content.css +1 -0
- package/dist/css/floatable.css +2 -0
- package/dist/css/form.css +7 -0
- package/dist/css/listbox.css +2 -0
- package/dist/css/message.css +2 -0
- package/dist/css/mixins/badge.mixins.css +2 -0
- package/dist/css/mixins/button.mixins.css +2 -0
- package/dist/css/mixins/message.mixins.css +1 -0
- package/dist/css/mixins/misc.mixins.css +2 -0
- package/dist/css/mixins/shadow.mixins.css +1 -0
- package/dist/css/reset.css +2 -2
- package/dist/css/splitter.css +1 -1
- package/dist/css/tabs.css +21 -21
- package/dist/js/color-picker.d.mts +213 -0
- package/dist/js/color-picker.mjs +924 -0
- package/dist/js/combobox/dom.combobox.mjs +8 -4
- package/dist/js/combobox/event.combobox.mjs +1 -1
- package/dist/js/combobox/index.d.mts +1 -1
- package/dist/js/combobox/index.mjs +56 -2
- package/dist/js/combobox/misc.combobox.d.mts +1 -1
- package/dist/js/combobox/misc.combobox.mjs +1 -1
- package/dist/js/combobox/state.combobox.d.mts +1 -1
- package/dist/js/combobox/state.combobox.mjs +1 -1
- package/dist/js/dialog.mjs +2 -2
- package/dist/js/floatable/floatable.embedded.mjs +13 -10
- package/dist/js/focus-trap/focus-trap.embedded.mjs +3 -3
- package/dist/js/{index-EfkUSals.d.mts → index-DJdFlTLm.d.mts} +39 -1
- package/dist/js/index.d.mts +3 -2
- package/dist/js/index.mjs +4 -3
- package/dist/js/internal/draggable.mjs +4 -4
- package/dist/js/internal/listbox/listbox.data.mjs +1 -1
- package/dist/js/internal/listbox/listbox.dom.mjs +1 -1
- package/dist/js/internal/listbox/listbox.event.mjs +1 -1
- package/dist/js/internal/listbox/listbox.form.mjs +16 -15
- package/dist/js/internal/listbox/listbox.misc.mjs +1 -1
- package/dist/js/internal/listbox/listbox.state.mjs +3 -3
- package/dist/js/internal/navigable.mjs +4 -3
- package/dist/js/listbox/event.listbox.mjs +1 -1
- package/dist/js/listbox/index.d.mts +38 -0
- package/dist/js/listbox/index.mjs +56 -2
- package/dist/js/listbox/misc.listbox.mjs +1 -1
- package/dist/js/listbox/state.listbox.mjs +1 -1
- package/dist/js/{listbox.data-BWd0PCy7.mjs → listbox.data-C7CRa5Ya.mjs} +5 -4
- package/dist/js/menu.mjs +1 -1
- package/dist/js/{misc.listbox-BI-XsTOf.mjs → misc.listbox-Cyz2CRDy.mjs} +2 -3
- package/dist/js/movable/movable.embedded.mjs +2 -2
- package/dist/js/popover.mjs +2 -2
- package/dist/js/resizable/resizable.embedded.mjs +5 -5
- package/dist/js/sortable/sortable.embedded.mjs +4 -4
- package/dist/js/splitter.mjs +6 -6
- package/dist/js/{state.combobox-4xq0FPCF.mjs → state.combobox-Qm3FWzYW.mjs} +3 -3
- package/dist/js/tabs.mjs +4 -7
- package/dist/js/tooltip.mjs +3 -3
- package/package.json +7 -5
- package/src/css/a11y.scss +2 -2
- package/src/css/badge.scss +8 -8
- package/src/css/button.scss +8 -8
- package/src/css/color-picker.scss +344 -0
- package/src/css/color.scss +0 -2
- package/src/css/combobox.scss +12 -9
- package/src/css/content.scss +11 -10
- package/src/css/floatable.scss +6 -3
- package/src/css/form.scss +12 -10
- package/src/css/listbox.scss +4 -3
- package/src/css/message.scss +9 -8
- package/src/css/mixins/badge.mixins.scss +53 -0
- package/src/css/mixins/button.mixins.scss +112 -0
- package/src/css/mixins/input.mixins.scss +114 -0
- package/src/css/mixins/message.mixins.scss +41 -0
- package/src/css/mixins/misc.mixins.scss +48 -0
- package/src/css/mixins/shadow.mixins.scss +57 -0
- package/src/css/reset.scss +2 -2
- package/src/css/splitter.scss +1 -1
- package/src/css/tabs.scss +20 -31
- package/src/js/color-picker.ts +1653 -0
- package/src/js/combobox/dom.combobox.ts +4 -0
- package/src/js/combobox/index.ts +63 -1
- package/src/js/dialog.ts +1 -1
- package/src/js/floatable/floatable.embedded.ts +18 -14
- package/src/js/index.ts +1 -0
- package/src/js/internal/listbox/listbox.dom.ts +2 -1
- package/src/js/internal/listbox/listbox.form.ts +31 -21
- package/src/js/internal/listbox/listbox.state.ts +2 -2
- package/src/js/internal/navigable.ts +2 -0
- package/src/js/listbox/index.ts +62 -0
- package/src/js/listbox/state.listbox.ts +0 -2
- package/src/js/popover.ts +1 -1
- package/src/js/tabs.ts +4 -10
- package/src/css/mixins.scss +0 -419
- /package/dist/css/{mixins.css → mixins/input.mixins.css} +0 -0
|
@@ -0,0 +1,344 @@
|
|
|
1
|
+
/*! https://github.com/oscarpalmer/oui */
|
|
2
|
+
|
|
3
|
+
@use './mixins/button.mixins.scss' as buttonMixins;
|
|
4
|
+
@use './mixins/input.mixins.scss' as inputMixins;
|
|
5
|
+
@use './mixins/misc.mixins.scss' as miscMixins;
|
|
6
|
+
@use './mixins/shadow.mixins.scss' as shadowMixins;
|
|
7
|
+
|
|
8
|
+
oui-color-picker {
|
|
9
|
+
:where(&) {
|
|
10
|
+
outline: none;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
:where(
|
|
15
|
+
oui-color-picker[inline] [oui-color-picker-content],
|
|
16
|
+
[oui-color-picker-content]:popover-open
|
|
17
|
+
) {
|
|
18
|
+
display: flex !important;
|
|
19
|
+
flex-flow: column nowrap;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
:where(
|
|
23
|
+
oui-color-picker[inline] [oui-color-picker-content],
|
|
24
|
+
[oui-color-picker-hue],
|
|
25
|
+
[oui-color-picker-opacity]
|
|
26
|
+
) {
|
|
27
|
+
margin: 1em 0 0;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
[oui-color-picker-anchor] {
|
|
31
|
+
:where(&) {
|
|
32
|
+
display: flex;
|
|
33
|
+
flex-flow: row nowrap;
|
|
34
|
+
align-items: stretch;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
& * {
|
|
38
|
+
:where(&) {
|
|
39
|
+
position: relative;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
:where(&:focus) {
|
|
43
|
+
z-index: 1;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
@media (hover: hover) {
|
|
47
|
+
:where(&:hover) {
|
|
48
|
+
z-index: 1;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
[oui-color-picker-button] {
|
|
55
|
+
:where(&) {
|
|
56
|
+
@include buttonMixins.button;
|
|
57
|
+
@include shadowMixins.shadow-1(var(--oui-shadow-value));
|
|
58
|
+
|
|
59
|
+
--oui-background-value: var(--oui-color-picker-hex);
|
|
60
|
+
--oui-outline-value: var(--oui-gray-6);
|
|
61
|
+
|
|
62
|
+
width: 2.5em;
|
|
63
|
+
margin: 1px 0;
|
|
64
|
+
border: 2px solid var(--oui-absolute);
|
|
65
|
+
border-top-left-radius: 0;
|
|
66
|
+
border-bottom-left-radius: 0;
|
|
67
|
+
position: relative;
|
|
68
|
+
|
|
69
|
+
&::after {
|
|
70
|
+
display: none;
|
|
71
|
+
color: var(--oui-color-picker-foreground);
|
|
72
|
+
font-size: 8px;
|
|
73
|
+
position: absolute;
|
|
74
|
+
inset: 50% auto auto 50%;
|
|
75
|
+
transform: translate3d(-50%, -50%, 0);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
&[aria-expanded='false' i]::after {
|
|
79
|
+
content: '▶';
|
|
80
|
+
display: inline-flex;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
&[aria-expanded='true' i]::after {
|
|
84
|
+
content: '▼';
|
|
85
|
+
display: inline-flex;
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
:where(&:active) {
|
|
90
|
+
scale: 1;
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
[oui-color-picker-content] {
|
|
95
|
+
&[popover] {
|
|
96
|
+
:where(&) {
|
|
97
|
+
@include miscMixins.floatable;
|
|
98
|
+
@include shadowMixins.shadow-5;
|
|
99
|
+
|
|
100
|
+
min-width: anchor-size(width);
|
|
101
|
+
border-radius: 0.25em;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
:where(&:not(:has(> [oui-color-picker-opacity]))) {
|
|
105
|
+
border-radius: 0.25em 0.25em 0.75em 0.75em;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
:where(
|
|
109
|
+
[oui-color-picker-content],
|
|
110
|
+
[oui-color-picker-hue],
|
|
111
|
+
[oui-color-picker-opacity],
|
|
112
|
+
[oui-color-picker-well]
|
|
113
|
+
) {
|
|
114
|
+
margin: 1em 1em 0;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
:where(& > :last-child) {
|
|
118
|
+
margin-bottom: 1em !important;
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
:where([oui-color-picker-hue], [oui-color-picker-opacity]) {
|
|
124
|
+
position: relative;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
:where([oui-color-picker-hue-input], [oui-color-picker-opacity-input]) {
|
|
128
|
+
opacity: 0;
|
|
129
|
+
position: absolute;
|
|
130
|
+
inset: -0.25em -0.75em;
|
|
131
|
+
z-index: 1;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
:where([oui-color-picker-hue-label], [oui-color-picker-opacity-label]) {
|
|
135
|
+
display: none;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
:where([oui-color-picker-hue-knob]),
|
|
139
|
+
:where([oui-color-picker-hue-track]),
|
|
140
|
+
:where([oui-color-picker-opacity-knob]),
|
|
141
|
+
:where([oui-color-picker-opacity-track]),
|
|
142
|
+
:where([oui-color-picker-well-knob]) {
|
|
143
|
+
--oui-outline-percentage: 100%;
|
|
144
|
+
--oui-outline-value: var(--oui-blue-6);
|
|
145
|
+
|
|
146
|
+
outline: 4px solid
|
|
147
|
+
color-mix(in oklab, var(--oui-outline-value), transparent var(--oui-outline-percentage));
|
|
148
|
+
transition: outline 0.125s ease-in-out;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
:where([oui-color-picker-hue-knob]),
|
|
152
|
+
:where([oui-color-picker-opacity-knob]),
|
|
153
|
+
:where([oui-color-picker-well-knob]) {
|
|
154
|
+
@include shadowMixins.shadow-5(rgb(0 0 0 / 6.25%));
|
|
155
|
+
|
|
156
|
+
width: 1.5em;
|
|
157
|
+
height: 1.5em;
|
|
158
|
+
border: 0.3333em solid var(--oui-absolute);
|
|
159
|
+
border-radius: 1.5em;
|
|
160
|
+
position: absolute;
|
|
161
|
+
z-index: 1;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
:where([oui-color-picker-hue-knob]),
|
|
165
|
+
:where([oui-color-picker-well-knob]) {
|
|
166
|
+
background-color: var(--oui-color-picker-hex);
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
:where([oui-color-picker-hue-knob]),
|
|
170
|
+
:where([oui-color-picker-opacity-knob]) {
|
|
171
|
+
transform: translate3d(-50%, -0.25em, 0);
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
:where([oui-color-picker-hue-knob]) {
|
|
175
|
+
inset: 0 0 0 calc((var(--oui-color-picker-hue) / 360) * 100%);
|
|
176
|
+
pointer-events: none;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
:where([oui-color-picker-hue-track]),
|
|
180
|
+
:where([oui-color-picker-opacity-track]),
|
|
181
|
+
:where([oui-color-picker-well]) {
|
|
182
|
+
box-shadow:
|
|
183
|
+
inset 0 0 0 1px rgb(0 0 0 / 5%),
|
|
184
|
+
inset 0 1px 2px -0.5px rgb(0 0 0 / 5%),
|
|
185
|
+
inset 0 2px 4px -1px rgb(0 0 0 / 5%),
|
|
186
|
+
inset 0 4px 8px -2px rgb(0 0 0 / 5%);
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
:where([oui-color-picker-hue-track]),
|
|
190
|
+
:where([oui-color-picker-opacity-track]) {
|
|
191
|
+
height: 1em;
|
|
192
|
+
border: 1px solid transparent;
|
|
193
|
+
border-radius: 1em;
|
|
194
|
+
pointer-events: none;
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
:where([oui-color-picker-hue-track]) {
|
|
198
|
+
background-image: linear-gradient(
|
|
199
|
+
to right,
|
|
200
|
+
hsl(0deg 100% 50%) 0%,
|
|
201
|
+
hsl(60deg 100% 50%) 16.6667%,
|
|
202
|
+
hsl(120deg 100% 50%) 33.3333%,
|
|
203
|
+
hsl(180deg 100% 50%) 50%,
|
|
204
|
+
hsl(240deg 100% 50%) 66.6667%,
|
|
205
|
+
hsl(300deg 100% 50%) 83.3333%,
|
|
206
|
+
hsl(360deg 100% 50%) 100%
|
|
207
|
+
);
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
[oui-color-picker-hue-input]:focus-visible + [oui-color-picker-hue-track],
|
|
211
|
+
[oui-color-picker-opacity-input]:focus-visible + [oui-color-picker-opacity-track] {
|
|
212
|
+
:where(&, & [oui-color-picker-hue-knob], & [oui-color-picker-opacity-knob]) {
|
|
213
|
+
--oui-outline-percentage: 75%;
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
:where(&) {
|
|
217
|
+
border-color: var(--oui-absolute);
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
[oui-color-picker-input] {
|
|
222
|
+
:where(&) {
|
|
223
|
+
@include inputMixins.input;
|
|
224
|
+
|
|
225
|
+
--oui-background-value: var(--oui-absolute);
|
|
226
|
+
|
|
227
|
+
padding: 0.5em 0.75em;
|
|
228
|
+
border-radius: 0.25em;
|
|
229
|
+
font-family: monospace, monospace;
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
:where(&:has(+ button)) {
|
|
233
|
+
border-radius: 0.25em 0 0 0.25em;
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
:where(&:is([disabled], [aria-disabled='true' i])) {
|
|
237
|
+
--oui-background-percentage: 50%;
|
|
238
|
+
}
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
:where([oui-color-picker-opacity-knob]) {
|
|
242
|
+
background-color: var(--oui-absolute);
|
|
243
|
+
background-image: linear-gradient(
|
|
244
|
+
to right,
|
|
245
|
+
color-mix(
|
|
246
|
+
in oklab,
|
|
247
|
+
var(--oui-color-picker-hex),
|
|
248
|
+
transparent calc((100 - var(--oui-color-picker-alpha)) * 1%)
|
|
249
|
+
)
|
|
250
|
+
0%,
|
|
251
|
+
color-mix(
|
|
252
|
+
in oklab,
|
|
253
|
+
var(--oui-color-picker-hex),
|
|
254
|
+
transparent calc((100 - var(--oui-color-picker-alpha)) * 1%)
|
|
255
|
+
)
|
|
256
|
+
100%
|
|
257
|
+
);
|
|
258
|
+
inset: 0 0 0 calc(var(--oui-color-picker-alpha) * 1%);
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
:where([oui-color-picker-opacity-track]) {
|
|
262
|
+
background-color: var(--oui-absolute);
|
|
263
|
+
background-image: linear-gradient(
|
|
264
|
+
to right,
|
|
265
|
+
transparent 0%,
|
|
266
|
+
hsl(var(--oui-color-picker-hue) 100% 50%) 100%
|
|
267
|
+
);
|
|
268
|
+
position: relative;
|
|
269
|
+
|
|
270
|
+
&::after {
|
|
271
|
+
content: '';
|
|
272
|
+
background-image:
|
|
273
|
+
linear-gradient(45deg, rgb(0 0 0 / 10%) 25%, transparent 25%),
|
|
274
|
+
linear-gradient(135deg, rgb(0 0 0 / 10%) 25%, transparent 25%),
|
|
275
|
+
linear-gradient(45deg, transparent 75%, rgb(0 0 0 / 10%) 75%),
|
|
276
|
+
linear-gradient(135deg, transparent 75%, rgb(0 0 0 / 10%) 75%);
|
|
277
|
+
background-size: 0.5em 0.5em;
|
|
278
|
+
background-position:
|
|
279
|
+
0 0,
|
|
280
|
+
0.25em 0,
|
|
281
|
+
0.25em -0.25em,
|
|
282
|
+
0 0.25em;
|
|
283
|
+
border-radius: 1em;
|
|
284
|
+
position: absolute;
|
|
285
|
+
inset: 0;
|
|
286
|
+
}
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
[oui-color-picker-well] {
|
|
290
|
+
:where(&) {
|
|
291
|
+
--oui-outline-percentage: 100%;
|
|
292
|
+
--oui-outline-value: var(--oui-blue-6);
|
|
293
|
+
|
|
294
|
+
padding: 100% 0 0;
|
|
295
|
+
background-color: hsl(var(--oui-color-picker-hue) 100% 50%);
|
|
296
|
+
background-image:
|
|
297
|
+
linear-gradient(
|
|
298
|
+
to bottom,
|
|
299
|
+
hsl(0deg 0% 100%) 0%,
|
|
300
|
+
hsl(0deg 0% 100% / 0%) 50%,
|
|
301
|
+
hsl(0deg 0% 0% / 0%) 50%,
|
|
302
|
+
hsl(0deg 0% 0%) 100%
|
|
303
|
+
),
|
|
304
|
+
linear-gradient(to right, hsl(0deg 0% 50%) 0%, hsl(0deg 0% 50% / 0%) 100%);
|
|
305
|
+
outline: 4px solid
|
|
306
|
+
color-mix(in oklab, var(--oui-outline-value), transparent var(--oui-outline-percentage));
|
|
307
|
+
outline-offset: 4px;
|
|
308
|
+
border-radius: 0.125em;
|
|
309
|
+
position: relative;
|
|
310
|
+
transition: outline 0.125s ease-in-out;
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
:where(&:has(:focus-visible)) {
|
|
314
|
+
--oui-outline-percentage: 75%;
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
@media (hover: hover) {
|
|
318
|
+
:where(&:hover) {
|
|
319
|
+
--oui-outline-percentage: 75%;
|
|
320
|
+
}
|
|
321
|
+
}
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
[oui-color-picker-well-knob] {
|
|
325
|
+
:where(&) {
|
|
326
|
+
--oui-outline-value: var(--oui-absolute);
|
|
327
|
+
|
|
328
|
+
outline-offset: 2px;
|
|
329
|
+
inset: calc((100 - var(--oui-color-picker-lightness)) * 1%) 0 0
|
|
330
|
+
calc(var(--oui-color-picker-saturation) * 1%);
|
|
331
|
+
transform: translate3d(-50%, -50%, 0);
|
|
332
|
+
cursor: move;
|
|
333
|
+
}
|
|
334
|
+
|
|
335
|
+
:where(&:focus-visible) {
|
|
336
|
+
--oui-outline-percentage: 33.3333%;
|
|
337
|
+
}
|
|
338
|
+
|
|
339
|
+
@media (hover: hover) {
|
|
340
|
+
:where(&:hover) {
|
|
341
|
+
--oui-outline-percentage: 33.3333%;
|
|
342
|
+
}
|
|
343
|
+
}
|
|
344
|
+
}
|
package/src/css/color.scss
CHANGED
package/src/css/combobox.scss
CHANGED
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
/*! https://github.com/oscarpalmer/oui */
|
|
2
2
|
|
|
3
|
-
@use './mixins.scss' as
|
|
3
|
+
@use './mixins/button.mixins.scss' as buttonMixins;
|
|
4
|
+
@use './mixins/input.mixins.scss' as inputMixins;
|
|
5
|
+
@use './mixins/misc.mixins.scss' as miscMixins;
|
|
6
|
+
@use './mixins/shadow.mixins.scss' as shadowMixins;
|
|
4
7
|
|
|
5
8
|
[oui-combobox-anchor] {
|
|
6
9
|
:where(&) {
|
|
7
|
-
@include
|
|
10
|
+
@include inputMixins.input;
|
|
8
11
|
|
|
9
12
|
--oui-background-value: var(--oui-absolute);
|
|
10
13
|
|
|
@@ -19,12 +22,12 @@
|
|
|
19
22
|
|
|
20
23
|
&:not([disabled], [readonly], [aria-disabled='true' i], [aria-readonly='true' i]) {
|
|
21
24
|
:where(&:focus-visible, &:focus-within, &:has(+ [oui-combobox-content]:focus-within)) {
|
|
22
|
-
@include
|
|
25
|
+
@include inputMixins.input-focus;
|
|
23
26
|
}
|
|
24
27
|
|
|
25
28
|
@media (hover: hover) {
|
|
26
29
|
:where(&:hover) {
|
|
27
|
-
@include
|
|
30
|
+
@include inputMixins.input-hover;
|
|
28
31
|
}
|
|
29
32
|
}
|
|
30
33
|
}
|
|
@@ -58,8 +61,8 @@
|
|
|
58
61
|
}
|
|
59
62
|
|
|
60
63
|
:where([oui-combobox-content]) {
|
|
61
|
-
@include
|
|
62
|
-
@include
|
|
64
|
+
@include miscMixins.floatable;
|
|
65
|
+
@include shadowMixins.shadow-5;
|
|
63
66
|
|
|
64
67
|
width: fit-content;
|
|
65
68
|
height: fit-content;
|
|
@@ -95,7 +98,7 @@
|
|
|
95
98
|
}
|
|
96
99
|
|
|
97
100
|
:where([oui-combobox-filter-input]) {
|
|
98
|
-
@include
|
|
101
|
+
@include inputMixins.input;
|
|
99
102
|
|
|
100
103
|
--oui-background-value: var(--oui-absolute);
|
|
101
104
|
--oui-border-value: var(--oui-yellow-3);
|
|
@@ -118,7 +121,7 @@
|
|
|
118
121
|
}
|
|
119
122
|
|
|
120
123
|
:where([oui-combobox-hidden]) {
|
|
121
|
-
@include
|
|
124
|
+
@include miscMixins.visually-hidden;
|
|
122
125
|
|
|
123
126
|
position: absolute;
|
|
124
127
|
}
|
|
@@ -184,7 +187,7 @@
|
|
|
184
187
|
|
|
185
188
|
[oui-combobox-selection-item] {
|
|
186
189
|
:where(&) {
|
|
187
|
-
@include
|
|
190
|
+
@include buttonMixins.button;
|
|
188
191
|
|
|
189
192
|
--oui-background-value: var(--oui-blue-2);
|
|
190
193
|
--oui-foreground-value: var(--oui-blue-8);
|
package/src/css/content.scss
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
/*! https://github.com/oscarpalmer/oui */
|
|
2
2
|
|
|
3
|
-
@use './mixins' as
|
|
3
|
+
@use './mixins/misc.mixins.scss' as miscMixins;
|
|
4
|
+
@use './mixins/shadow.mixins.scss' as shadowMixins;
|
|
4
5
|
|
|
5
6
|
@mixin thumb($background, $shadow) {
|
|
6
|
-
@include
|
|
7
|
+
@include shadowMixins.shadow-0(
|
|
7
8
|
color-mix(in oklab, $shadow, transparent 33%),
|
|
8
9
|
color-mix(in oklab, var(--oui-absolute), transparent 82.5%)
|
|
9
10
|
);
|
|
@@ -28,7 +29,7 @@
|
|
|
28
29
|
|
|
29
30
|
.oui-card {
|
|
30
31
|
:where(&) {
|
|
31
|
-
@include
|
|
32
|
+
@include miscMixins.card;
|
|
32
33
|
}
|
|
33
34
|
}
|
|
34
35
|
|
|
@@ -85,7 +86,7 @@
|
|
|
85
86
|
|
|
86
87
|
.oui-formatted {
|
|
87
88
|
:where(&) {
|
|
88
|
-
@include
|
|
89
|
+
@include miscMixins.card;
|
|
89
90
|
|
|
90
91
|
color: var(--oui-gray-8);
|
|
91
92
|
font-family: monospace, monospace;
|
|
@@ -155,26 +156,26 @@
|
|
|
155
156
|
.oui-shadow {
|
|
156
157
|
:where(&),
|
|
157
158
|
:where(&-0) {
|
|
158
|
-
@include
|
|
159
|
+
@include shadowMixins.shadow-0;
|
|
159
160
|
}
|
|
160
161
|
|
|
161
162
|
:where(&-1) {
|
|
162
|
-
@include
|
|
163
|
+
@include shadowMixins.shadow-1;
|
|
163
164
|
}
|
|
164
165
|
|
|
165
166
|
:where(&-2) {
|
|
166
|
-
@include
|
|
167
|
+
@include shadowMixins.shadow-2;
|
|
167
168
|
}
|
|
168
169
|
|
|
169
170
|
:where(&-3) {
|
|
170
|
-
@include
|
|
171
|
+
@include shadowMixins.shadow-3;
|
|
171
172
|
}
|
|
172
173
|
|
|
173
174
|
:where(&-4) {
|
|
174
|
-
@include
|
|
175
|
+
@include shadowMixins.shadow-4;
|
|
175
176
|
}
|
|
176
177
|
|
|
177
178
|
:where(&-5) {
|
|
178
|
-
@include
|
|
179
|
+
@include shadowMixins.shadow-5;
|
|
179
180
|
}
|
|
180
181
|
}
|
package/src/css/floatable.scss
CHANGED
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
/*! https://github.com/oscarpalmer/oui */
|
|
2
|
+
|
|
3
|
+
@use './mixins/misc.mixins.scss' as miscMixins;
|
|
4
|
+
@use './mixins/shadow.mixins.scss' as shadowMixins;
|
|
2
5
|
|
|
3
6
|
:where([oui-dialog], [oui-popover], [oui-tooltip-content]),
|
|
4
7
|
:where([oui-dialog])::backdrop {
|
|
@@ -8,7 +11,7 @@
|
|
|
8
11
|
}
|
|
9
12
|
|
|
10
13
|
:where([oui-dialog], [oui-popover], [oui-tooltip-content]) {
|
|
11
|
-
@include
|
|
14
|
+
@include shadowMixins.shadow-5;
|
|
12
15
|
|
|
13
16
|
background-color: var(--oui-absolute);
|
|
14
17
|
scale: 0.9;
|
|
@@ -46,7 +49,7 @@
|
|
|
46
49
|
}
|
|
47
50
|
|
|
48
51
|
:where([oui-popover], [oui-tooltip-content]) {
|
|
49
|
-
@include
|
|
52
|
+
@include miscMixins.floatable;
|
|
50
53
|
}
|
|
51
54
|
|
|
52
55
|
:where([oui-popover]) {
|
package/src/css/form.scss
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
/*! https://github.com/oscarpalmer/oui */
|
|
2
2
|
|
|
3
|
-
@use 'mixins.scss' as
|
|
3
|
+
@use './mixins/button.mixins.scss' as buttonMixins;
|
|
4
|
+
@use './mixins/input.mixins.scss' as inputMixins;
|
|
5
|
+
@use './mixins/misc.mixins.scss' as miscMixins;
|
|
4
6
|
|
|
5
7
|
:where(.oui-fieldset) {
|
|
6
8
|
padding: 1em;
|
|
@@ -14,7 +16,7 @@
|
|
|
14
16
|
}
|
|
15
17
|
|
|
16
18
|
:where(&:not([type='range' i])) {
|
|
17
|
-
@include
|
|
19
|
+
@include inputMixins.input;
|
|
18
20
|
|
|
19
21
|
padding: 0.5em 0.75em;
|
|
20
22
|
border-radius: 0.25em;
|
|
@@ -79,7 +81,7 @@
|
|
|
79
81
|
padding-left: 0.5em;
|
|
80
82
|
|
|
81
83
|
&::file-selector-button {
|
|
82
|
-
@include
|
|
84
|
+
@include buttonMixins.button;
|
|
83
85
|
|
|
84
86
|
--oui-background-value: var(--oui-grey-2);
|
|
85
87
|
--oui-outline-value: var(--oui-grey-6);
|
|
@@ -96,7 +98,7 @@
|
|
|
96
98
|
outline: none;
|
|
97
99
|
|
|
98
100
|
&::range-track {
|
|
99
|
-
@include
|
|
101
|
+
@include inputMixins.input;
|
|
100
102
|
|
|
101
103
|
appearance: none;
|
|
102
104
|
width: 100%;
|
|
@@ -109,7 +111,7 @@
|
|
|
109
111
|
--oui-background-percentage: 0%;
|
|
110
112
|
--oui-background-value: var(--oui-blue-6);
|
|
111
113
|
|
|
112
|
-
@include
|
|
114
|
+
@include inputMixins.input-outlined;
|
|
113
115
|
|
|
114
116
|
appearance: none;
|
|
115
117
|
width: 1.25em;
|
|
@@ -153,7 +155,7 @@
|
|
|
153
155
|
}
|
|
154
156
|
|
|
155
157
|
&::range-track {
|
|
156
|
-
@include
|
|
158
|
+
@include inputMixins.input-invalid;
|
|
157
159
|
}
|
|
158
160
|
|
|
159
161
|
& > option:checked {
|
|
@@ -179,7 +181,7 @@
|
|
|
179
181
|
}
|
|
180
182
|
|
|
181
183
|
&::range-track {
|
|
182
|
-
@include
|
|
184
|
+
@include inputMixins.input-valid;
|
|
183
185
|
}
|
|
184
186
|
|
|
185
187
|
&::range-thumb {
|
|
@@ -202,7 +204,7 @@
|
|
|
202
204
|
|
|
203
205
|
&::range-thumb,
|
|
204
206
|
&::range-track {
|
|
205
|
-
@include
|
|
207
|
+
@include inputMixins.input-focus;
|
|
206
208
|
}
|
|
207
209
|
|
|
208
210
|
&::range-thumb {
|
|
@@ -225,7 +227,7 @@
|
|
|
225
227
|
}
|
|
226
228
|
|
|
227
229
|
&::range-track {
|
|
228
|
-
@include
|
|
230
|
+
@include inputMixins.input-hover;
|
|
229
231
|
}
|
|
230
232
|
}
|
|
231
233
|
}
|
|
@@ -569,5 +571,5 @@ select.oui-input:is([multiple]) {
|
|
|
569
571
|
}
|
|
570
572
|
|
|
571
573
|
:where(.oui-switch input, .oui-toggle input) {
|
|
572
|
-
@include
|
|
574
|
+
@include miscMixins.visually-hidden;
|
|
573
575
|
}
|
package/src/css/listbox.scss
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/*! https://github.com/oscarpalmer/oui */
|
|
2
2
|
|
|
3
|
-
@use './mixins.scss' as
|
|
3
|
+
@use './mixins/input.mixins.scss' as inputMixins;
|
|
4
|
+
@use './mixins/misc.mixins.scss' as miscMixins;
|
|
4
5
|
|
|
5
6
|
:where(oui-listbox, [oui-listbox-content]) {
|
|
6
7
|
display: flex;
|
|
@@ -36,7 +37,7 @@
|
|
|
36
37
|
|
|
37
38
|
[oui-listbox-filter-input] {
|
|
38
39
|
:where(&) {
|
|
39
|
-
@include
|
|
40
|
+
@include inputMixins.input;
|
|
40
41
|
|
|
41
42
|
--oui-background-value: var(--oui-absolute);
|
|
42
43
|
|
|
@@ -58,7 +59,7 @@
|
|
|
58
59
|
}
|
|
59
60
|
|
|
60
61
|
:where([oui-listbox-hidden]) {
|
|
61
|
-
@include
|
|
62
|
+
@include miscMixins.visually-hidden;
|
|
62
63
|
|
|
63
64
|
position: absolute;
|
|
64
65
|
}
|
package/src/css/message.scss
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/*! https://github.com/oscarpalmer/oui */
|
|
2
2
|
|
|
3
|
-
@use './mixins.scss' as
|
|
3
|
+
@use './mixins/message.mixins.scss' as messageMixins;
|
|
4
|
+
@use './mixins/misc.mixins.scss' as miscMixins;
|
|
4
5
|
|
|
5
6
|
.oui-message {
|
|
6
7
|
:where(&) {
|
|
@@ -13,7 +14,7 @@
|
|
|
13
14
|
transparent 92.5%
|
|
14
15
|
);
|
|
15
16
|
|
|
16
|
-
@include
|
|
17
|
+
@include miscMixins.card(
|
|
17
18
|
color-mix(in oklab, var(--oui-background), transparent 25%),
|
|
18
19
|
var(--oui-shadow-mixed)
|
|
19
20
|
);
|
|
@@ -48,26 +49,26 @@
|
|
|
48
49
|
}
|
|
49
50
|
|
|
50
51
|
:where(&--blue, &--info) {
|
|
51
|
-
@include
|
|
52
|
+
@include messageMixins.message-blue;
|
|
52
53
|
}
|
|
53
54
|
|
|
54
55
|
:where(&--green, &--success) {
|
|
55
|
-
@include
|
|
56
|
+
@include messageMixins.message-green;
|
|
56
57
|
}
|
|
57
58
|
|
|
58
59
|
:where(&--orange, &--warning) {
|
|
59
|
-
@include
|
|
60
|
+
@include messageMixins.message-orange;
|
|
60
61
|
}
|
|
61
62
|
|
|
62
63
|
:where(&--purple, &--special) {
|
|
63
|
-
@include
|
|
64
|
+
@include messageMixins.message-purple;
|
|
64
65
|
}
|
|
65
66
|
|
|
66
67
|
:where(&--red, &--error) {
|
|
67
|
-
@include
|
|
68
|
+
@include messageMixins.message-red;
|
|
68
69
|
}
|
|
69
70
|
|
|
70
71
|
:where(&--yellow, &--notice) {
|
|
71
|
-
@include
|
|
72
|
+
@include messageMixins.message-yellow;
|
|
72
73
|
}
|
|
73
74
|
}
|