@oscarpalmer/oui 0.37.0 → 0.39.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 +12 -8
- package/dist/css/button.css +111 -14
- package/dist/css/color-picker.css +859 -0
- package/dist/css/color.css +86 -87
- package/dist/css/combobox.css +105 -4
- package/dist/css/content.css +8 -6
- package/dist/css/floatable.css +3 -3
- package/dist/css/form.css +106 -6
- package/dist/css/icon.css +99 -0
- package/dist/css/listbox.css +5 -0
- package/dist/css/message.css +6 -3
- package/dist/css/mixins/badge.mixins.css +2 -0
- package/dist/css/mixins/button.mixins.css +3 -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 +3 -3
- package/dist/css/splitter.css +1 -1
- package/dist/css/tabs.css +115 -23
- package/dist/css/typography.css +90 -0
- package/dist/js/color-picker/constants.color-picker.d.mts +2 -0
- package/dist/js/color-picker/constants.color-picker.mjs +59 -0
- package/dist/js/color-picker/dom.color-picker.d.mts +8 -0
- package/dist/js/color-picker/dom.color-picker.mjs +191 -0
- package/dist/js/color-picker/event.color-picker.d.mts +9 -0
- package/dist/js/color-picker/event.color-picker.mjs +2 -0
- package/dist/js/color-picker/form.color-picker.d.mts +5 -0
- package/dist/js/color-picker/form.color-picker.mjs +24 -0
- package/dist/js/color-picker/index.d.mts +2 -0
- package/dist/js/color-picker/index.mjs +303 -0
- package/dist/js/color-picker/misc.color-picker.d.mts +2 -0
- package/dist/js/color-picker/misc.color-picker.mjs +2 -0
- package/dist/js/color-picker/models.color-picker.d.mts +2 -0
- package/dist/js/color-picker/models.color-picker.mjs +24 -0
- package/dist/js/color-picker/output.color-picker.d.mts +8 -0
- package/dist/js/color-picker/output.color-picker.mjs +233 -0
- package/dist/js/color-picker/state.color-picker.d.mts +8 -0
- package/dist/js/color-picker/state.color-picker.mjs +2 -0
- package/dist/js/combobox/constants.combobox.d.mts +1 -1
- package/dist/js/combobox/dom.combobox.d.mts +12 -13
- package/dist/js/combobox/dom.combobox.mjs +12 -5
- package/dist/js/combobox/event.combobox.d.mts +20 -21
- 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/models.combobox.d.mts +12 -13
- package/dist/js/combobox/state.combobox.d.mts +8 -9
- package/dist/js/combobox/state.combobox.mjs +1 -1
- package/dist/js/constants.color-picker-B-gFjL8m.d.mts +364 -0
- package/dist/js/constants.combobox-8EMRmv09.d.mts +18 -0
- package/dist/js/constants.listbox-DGnX32kv.d.mts +8 -0
- package/dist/js/dialog.d.mts +2 -2
- package/dist/js/dialog.mjs +1 -1
- package/dist/js/{draggable-a6w0J1OD.d.mts → draggable-B5-70SZm.d.mts} +5 -4
- package/dist/js/event.color-picker-BEpq0Adu.mjs +485 -0
- package/dist/js/floatable/floatable.embedded.d.mts +1 -1
- package/dist/js/floatable/floatable.embedded.mjs +11 -8
- package/dist/js/floatable/floatable.standalone.d.mts +1 -1
- package/dist/js/{floatable.embedded-Bct4U5Dm.d.mts → floatable.embedded-DQYkXt8X.d.mts} +1 -1
- package/dist/js/focus-trap/focus-trap.embedded.d.mts +1 -1
- package/dist/js/focus-trap/focus-trap.standalone.d.mts +1 -1
- package/dist/js/{focus-trap.embedded-DR8NpZfr.d.mts → focus-trap.embedded-CjyFQYow.d.mts} +2 -2
- package/dist/js/{index-EfkUSals.d.mts → index-C5D3-oiI.d.mts} +41 -3
- package/dist/js/index.d.mts +8 -7
- package/dist/js/index.mjs +6 -3
- package/dist/js/internal/attributable.d.mts +2 -3
- package/dist/js/internal/draggable.d.mts +1 -1
- package/dist/js/internal/draggable.mjs +1 -1
- package/dist/js/internal/listbox/listbox.constants.d.mts +7 -10
- package/dist/js/internal/listbox/listbox.constants.mjs +15 -16
- package/dist/js/internal/listbox/listbox.data.d.mts +9 -10
- package/dist/js/internal/listbox/listbox.data.mjs +1 -1
- package/dist/js/internal/listbox/listbox.dom.d.mts +19 -20
- package/dist/js/internal/listbox/listbox.dom.mjs +1 -1
- package/dist/js/internal/listbox/listbox.event.d.mts +3 -4
- package/dist/js/internal/listbox/listbox.event.mjs +4 -4
- package/dist/js/internal/listbox/listbox.form.d.mts +4 -5
- package/dist/js/internal/listbox/listbox.form.mjs +16 -15
- package/dist/js/internal/listbox/listbox.misc.d.mts +10 -11
- package/dist/js/internal/listbox/listbox.misc.mjs +1 -1
- package/dist/js/internal/listbox/listbox.model.d.mts +1 -1
- package/dist/js/internal/listbox/listbox.state.d.mts +5 -6
- package/dist/js/internal/listbox/listbox.state.mjs +3 -3
- package/dist/js/internal/misc.d.mts +4 -4
- package/dist/js/internal/misc.mjs +9 -1
- package/dist/js/internal/navigable.d.mts +9 -10
- package/dist/js/internal/navigable.mjs +1 -0
- package/dist/js/listbox/constants.listbox.d.mts +1 -1
- package/dist/js/listbox/event.listbox.d.mts +6 -7
- package/dist/js/listbox/event.listbox.mjs +1 -1
- package/dist/js/listbox/index.d.mts +43 -5
- package/dist/js/listbox/index.mjs +56 -2
- package/dist/js/listbox/misc.listbox.d.mts +1 -1
- package/dist/js/listbox/misc.listbox.mjs +1 -1
- package/dist/js/listbox/state.listbox.d.mts +7 -8
- package/dist/js/listbox/state.listbox.mjs +1 -1
- package/dist/js/{listbox.data-BWd0PCy7.mjs → listbox.data-DQ7-x2uY.mjs} +8 -7
- package/dist/js/{listbox.model-CRReGOmu.d.mts → listbox.model-BHPA7GM4.d.mts} +3 -3
- package/dist/js/menu.mjs +1 -1
- package/dist/js/{misc.listbox-BI-XsTOf.mjs → misc.listbox-DKB-j0UK.mjs} +4 -5
- package/dist/js/{misc.listbox-gnoJhrTr.d.mts → misc.listbox-mZMuYOxg.d.mts} +1 -1
- package/dist/js/movable/movable.embedded.d.mts +1 -1
- package/dist/js/movable/movable.standalone.d.mts +1 -1
- package/dist/js/popover.d.mts +2 -2
- package/dist/js/popover.mjs +1 -1
- package/dist/js/resizable/resizable.embedded.d.mts +1 -1
- package/dist/js/resizable/resizable.embedded.mjs +1 -1
- package/dist/js/resizable/resizable.standalone.d.mts +1 -1
- package/dist/js/{resizable.embedded-3qoR0Bjm.d.mts → resizable.embedded-dvhdfQgt.d.mts} +1 -1
- package/dist/js/sortable/sortable.embedded.d.mts +1 -1
- package/dist/js/sortable/sortable.standalone.d.mts +1 -1
- package/dist/js/splitter.d.mts +2 -3
- package/dist/js/splitter.mjs +2 -2
- package/dist/js/{state.combobox-4xq0FPCF.mjs → state.combobox-BWDFHwoi.mjs} +9 -9
- package/dist/js/tabs.d.mts +4 -5
- package/dist/js/tabs.mjs +4 -7
- package/dist/js/tooltip.d.mts +1 -1
- package/package.json +24 -22
- package/dist/js/constants.combobox-DmRAMC64.d.mts +0 -26
- package/dist/js/constants.listbox-DRsXUxd3.d.mts +0 -14
- package/src/css/a11y.scss +0 -13
- package/src/css/badge.scss +0 -62
- package/src/css/button.scss +0 -50
- package/src/css/color.scss +0 -115
- package/src/css/combobox.scss +0 -252
- package/src/css/content.scss +0 -180
- package/src/css/flex.scss +0 -107
- package/src/css/floatable.scss +0 -152
- package/src/css/form.scss +0 -573
- package/src/css/listbox.scss +0 -120
- package/src/css/message.scss +0 -73
- package/src/css/mixins.scss +0 -419
- package/src/css/reset.scss +0 -392
- package/src/css/splitter.scss +0 -89
- package/src/css/table.scss +0 -107
- package/src/css/tabs.scss +0 -85
- package/src/js/combobox/constants.combobox.ts +0 -83
- package/src/js/combobox/dom.combobox.ts +0 -407
- package/src/js/combobox/event.combobox.ts +0 -365
- package/src/js/combobox/index.ts +0 -320
- package/src/js/combobox/misc.combobox.ts +0 -104
- package/src/js/combobox/models.combobox.ts +0 -54
- package/src/js/combobox/state.combobox.ts +0 -246
- package/src/js/dialog.ts +0 -255
- package/src/js/floatable/floatable.embedded.ts +0 -332
- package/src/js/floatable/floatable.standalone.ts +0 -6
- package/src/js/focus-trap/focus-trap.embedded.ts +0 -411
- package/src/js/focus-trap/focus-trap.standalone.ts +0 -1
- package/src/js/index.ts +0 -15
- package/src/js/internal/attributable.ts +0 -73
- package/src/js/internal/draggable.ts +0 -657
- package/src/js/internal/listbox/listbox.constants.ts +0 -25
- package/src/js/internal/listbox/listbox.data.ts +0 -287
- package/src/js/internal/listbox/listbox.dom.ts +0 -445
- package/src/js/internal/listbox/listbox.event.ts +0 -129
- package/src/js/internal/listbox/listbox.form.ts +0 -115
- package/src/js/internal/listbox/listbox.misc.ts +0 -135
- package/src/js/internal/listbox/listbox.model.ts +0 -169
- package/src/js/internal/listbox/listbox.state.ts +0 -82
- package/src/js/internal/misc.ts +0 -27
- package/src/js/internal/navigable.ts +0 -315
- package/src/js/l10n.ts +0 -192
- package/src/js/listbox/constants.listbox.ts +0 -61
- package/src/js/listbox/event.listbox.ts +0 -106
- package/src/js/listbox/index.ts +0 -302
- package/src/js/listbox/misc.listbox.ts +0 -70
- package/src/js/listbox/state.listbox.ts +0 -196
- package/src/js/menu.ts +0 -348
- package/src/js/movable/movable.embedded.ts +0 -318
- package/src/js/movable/movable.standalone.ts +0 -2
- package/src/js/popover.ts +0 -229
- package/src/js/resizable/resizable.embedded.ts +0 -413
- package/src/js/resizable/resizable.standalone.ts +0 -5
- package/src/js/sortable/sortable.embedded.ts +0 -527
- package/src/js/sortable/sortable.standalone.ts +0 -2
- package/src/js/splitter.ts +0 -583
- package/src/js/tabs.ts +0 -447
- package/src/js/toolbar.ts +0 -63
- package/src/js/tooltip.ts +0 -367
- /package/dist/css/{mixins.css → mixins/input.mixins.css} +0 -0
package/dist/css/color.css
CHANGED
|
@@ -1,106 +1,105 @@
|
|
|
1
1
|
/*! https://github.com/oscarpalmer/oui */
|
|
2
|
-
|
|
3
2
|
:root {
|
|
4
3
|
--oui-absolute: light-dark(white, black);
|
|
5
|
-
--oui-blue-0: light-dark(oklch(
|
|
6
|
-
--oui-blue-1: light-dark(oklch(
|
|
7
|
-
--oui-blue-2: light-dark(oklch(
|
|
8
|
-
--oui-blue-3: light-dark(oklch(
|
|
9
|
-
--oui-blue-4: light-dark(oklch(80% 0.06 256deg), oklch(50% 0.
|
|
10
|
-
--oui-blue-5: light-dark(oklch(70% 0.08 255deg), oklch(60% 0.
|
|
4
|
+
--oui-blue-0: light-dark(oklch(98.5% 0.01 260deg), oklch(20% 0.07 250deg));
|
|
5
|
+
--oui-blue-1: light-dark(oklch(96% 0.02 259deg), oklch(25% 0.09 251deg));
|
|
6
|
+
--oui-blue-2: light-dark(oklch(92% 0.03 258deg), oklch(32% 0.1 252deg));
|
|
7
|
+
--oui-blue-3: light-dark(oklch(87% 0.04 257deg), oklch(40% 0.11 253deg));
|
|
8
|
+
--oui-blue-4: light-dark(oklch(80% 0.06 256deg), oklch(50% 0.1 254deg));
|
|
9
|
+
--oui-blue-5: light-dark(oklch(70% 0.08 255deg), oklch(60% 0.08 255deg));
|
|
11
10
|
--oui-blue-6: light-dark(oklch(60% 0.1 254deg), oklch(70% 0.06 256deg));
|
|
12
|
-
--oui-blue-7: light-dark(oklch(50% 0.12 253deg), oklch(80% 0.
|
|
13
|
-
--oui-blue-8: light-dark(oklch(
|
|
14
|
-
--oui-blue-9: light-dark(oklch(
|
|
15
|
-
--oui-blue-10: light-dark(oklch(
|
|
16
|
-
--oui-green-0: light-dark(oklch(
|
|
17
|
-
--oui-green-1: light-dark(oklch(
|
|
18
|
-
--oui-green-2: light-dark(oklch(
|
|
19
|
-
--oui-green-3: light-dark(oklch(
|
|
20
|
-
--oui-green-4: light-dark(oklch(80% 0.06 146deg), oklch(50% 0.
|
|
21
|
-
--oui-green-5: light-dark(oklch(70% 0.08 145deg), oklch(60% 0.
|
|
11
|
+
--oui-blue-7: light-dark(oklch(50% 0.12 253deg), oklch(80% 0.04 257deg));
|
|
12
|
+
--oui-blue-8: light-dark(oklch(40% 0.11 252deg), oklch(87% 0.03 258deg));
|
|
13
|
+
--oui-blue-9: light-dark(oklch(32% 0.1 251deg), oklch(92% 0.02 259deg));
|
|
14
|
+
--oui-blue-10: light-dark(oklch(25% 0.09 250deg), oklch(96% 0.01 260deg));
|
|
15
|
+
--oui-green-0: light-dark(oklch(98.5% 0.01 150deg), oklch(20% 0.07 140deg));
|
|
16
|
+
--oui-green-1: light-dark(oklch(96% 0.02 149deg), oklch(25% 0.09 141deg));
|
|
17
|
+
--oui-green-2: light-dark(oklch(92% 0.03 148deg), oklch(32% 0.1 142deg));
|
|
18
|
+
--oui-green-3: light-dark(oklch(87% 0.04 147deg), oklch(40% 0.11 143deg));
|
|
19
|
+
--oui-green-4: light-dark(oklch(80% 0.06 146deg), oklch(50% 0.1 144deg));
|
|
20
|
+
--oui-green-5: light-dark(oklch(70% 0.08 145deg), oklch(60% 0.08 145deg));
|
|
22
21
|
--oui-green-6: light-dark(oklch(60% 0.1 144deg), oklch(70% 0.06 146deg));
|
|
23
|
-
--oui-green-7: light-dark(oklch(50% 0.12 143deg), oklch(80% 0.
|
|
24
|
-
--oui-green-8: light-dark(oklch(
|
|
25
|
-
--oui-green-9: light-dark(oklch(
|
|
26
|
-
--oui-green-10: light-dark(oklch(
|
|
27
|
-
--oui-orange-0: light-dark(oklch(99
|
|
28
|
-
--oui-orange-1: light-dark(oklch(
|
|
29
|
-
--oui-orange-2: light-dark(oklch(
|
|
30
|
-
--oui-orange-3: light-dark(oklch(
|
|
31
|
-
--oui-orange-4: light-dark(oklch(
|
|
32
|
-
--oui-orange-5: light-dark(oklch(
|
|
33
|
-
--oui-orange-6: light-dark(oklch(
|
|
34
|
-
--oui-orange-7: light-dark(oklch(
|
|
35
|
-
--oui-orange-8: light-dark(oklch(
|
|
36
|
-
--oui-orange-9: light-dark(oklch(
|
|
37
|
-
--oui-orange-10: light-dark(oklch(
|
|
38
|
-
--oui-purple-0: light-dark(oklch(
|
|
39
|
-
--oui-purple-1: light-dark(oklch(
|
|
40
|
-
--oui-purple-2: light-dark(oklch(
|
|
41
|
-
--oui-purple-3: light-dark(oklch(
|
|
42
|
-
--oui-purple-4: light-dark(oklch(80% 0.1 296deg), oklch(50% 0.
|
|
43
|
-
--oui-purple-5: light-dark(oklch(70% 0.11 295deg), oklch(60% 0.
|
|
44
|
-
--oui-purple-6: light-dark(oklch(60% 0.12 294deg), oklch(70% 0.
|
|
45
|
-
--oui-purple-7: light-dark(oklch(50% 0.14 293deg), oklch(80% 0.
|
|
46
|
-
--oui-purple-8: light-dark(oklch(
|
|
47
|
-
--oui-purple-9: light-dark(oklch(
|
|
48
|
-
--oui-purple-10: light-dark(oklch(
|
|
49
|
-
--oui-red-0: light-dark(oklch(99
|
|
50
|
-
--oui-red-1: light-dark(oklch(
|
|
51
|
-
--oui-red-2: light-dark(oklch(
|
|
52
|
-
--oui-red-3: light-dark(oklch(
|
|
53
|
-
--oui-red-4: light-dark(oklch(
|
|
54
|
-
--oui-red-5: light-dark(oklch(
|
|
55
|
-
--oui-red-6: light-dark(oklch(
|
|
56
|
-
--oui-red-7: light-dark(oklch(
|
|
57
|
-
--oui-red-8: light-dark(oklch(
|
|
58
|
-
--oui-red-9: light-dark(oklch(
|
|
59
|
-
--oui-red-10: light-dark(oklch(
|
|
60
|
-
--oui-yellow-0: light-dark(oklch(
|
|
61
|
-
--oui-yellow-1: light-dark(oklch(
|
|
62
|
-
--oui-yellow-2: light-dark(oklch(
|
|
63
|
-
--oui-yellow-3: light-dark(oklch(
|
|
64
|
-
--oui-yellow-4: light-dark(oklch(
|
|
65
|
-
--oui-yellow-5: light-dark(oklch(
|
|
66
|
-
--oui-yellow-6: light-dark(oklch(
|
|
67
|
-
--oui-yellow-7: light-dark(oklch(
|
|
68
|
-
--oui-yellow-8: light-dark(oklch(
|
|
69
|
-
--oui-yellow-9: light-dark(oklch(
|
|
70
|
-
--oui-yellow-10: light-dark(oklch(
|
|
71
|
-
--oui-gray-0: light-dark(oklch(98% 0 0deg), oklch(
|
|
72
|
-
--oui-gray-1: light-dark(oklch(
|
|
73
|
-
--oui-gray-2: light-dark(oklch(
|
|
74
|
-
--oui-gray-3: light-dark(oklch(
|
|
22
|
+
--oui-green-7: light-dark(oklch(50% 0.12 143deg), oklch(80% 0.04 147deg));
|
|
23
|
+
--oui-green-8: light-dark(oklch(40% 0.11 142deg), oklch(87% 0.03 148deg));
|
|
24
|
+
--oui-green-9: light-dark(oklch(32% 0.1 141deg), oklch(92% 0.02 149deg));
|
|
25
|
+
--oui-green-10: light-dark(oklch(25% 0.09 140deg), oklch(96% 0.01 150deg));
|
|
26
|
+
--oui-orange-0: light-dark(oklch(99% 0.02 60deg), oklch(20% 0.07 50deg));
|
|
27
|
+
--oui-orange-1: light-dark(oklch(97.5% 0.035 59deg), oklch(25% 0.09 51deg));
|
|
28
|
+
--oui-orange-2: light-dark(oklch(94% 0.05 58deg), oklch(32% 0.1 52deg));
|
|
29
|
+
--oui-orange-3: light-dark(oklch(89% 0.07 57deg), oklch(40% 0.11 53deg));
|
|
30
|
+
--oui-orange-4: light-dark(oklch(80% 0.1 56deg), oklch(50% 0.12 54deg));
|
|
31
|
+
--oui-orange-5: light-dark(oklch(70% 0.11 55deg), oklch(60% 0.11 55deg));
|
|
32
|
+
--oui-orange-6: light-dark(oklch(60% 0.12 54deg), oklch(70% 0.1 56deg));
|
|
33
|
+
--oui-orange-7: light-dark(oklch(50% 0.14 53deg), oklch(80% 0.07 57deg));
|
|
34
|
+
--oui-orange-8: light-dark(oklch(40% 0.12 52deg), oklch(89% 0.05 58deg));
|
|
35
|
+
--oui-orange-9: light-dark(oklch(32% 0.11 51deg), oklch(94% 0.035 59deg));
|
|
36
|
+
--oui-orange-10: light-dark(oklch(25% 0.09 50deg), oklch(97.5% 0.02 60deg));
|
|
37
|
+
--oui-purple-0: light-dark(oklch(98.5% 0.02 300deg), oklch(20% 0.07 290deg));
|
|
38
|
+
--oui-purple-1: light-dark(oklch(96.5% 0.035 299deg), oklch(25% 0.09 291deg));
|
|
39
|
+
--oui-purple-2: light-dark(oklch(93% 0.05 298deg), oklch(32% 0.1 292deg));
|
|
40
|
+
--oui-purple-3: light-dark(oklch(88% 0.07 297deg), oklch(40% 0.11 293deg));
|
|
41
|
+
--oui-purple-4: light-dark(oklch(80% 0.1 296deg), oklch(50% 0.12 294deg));
|
|
42
|
+
--oui-purple-5: light-dark(oklch(70% 0.11 295deg), oklch(60% 0.11 295deg));
|
|
43
|
+
--oui-purple-6: light-dark(oklch(60% 0.12 294deg), oklch(70% 0.1 296deg));
|
|
44
|
+
--oui-purple-7: light-dark(oklch(50% 0.14 293deg), oklch(80% 0.07 297deg));
|
|
45
|
+
--oui-purple-8: light-dark(oklch(40% 0.12 292deg), oklch(88% 0.05 298deg));
|
|
46
|
+
--oui-purple-9: light-dark(oklch(32% 0.11 291deg), oklch(93% 0.035 299deg));
|
|
47
|
+
--oui-purple-10: light-dark(oklch(25% 0.09 290deg), oklch(96.5% 0.02 300deg));
|
|
48
|
+
--oui-red-0: light-dark(oklch(99% 0.024 25deg), oklch(20% 0.07 15deg));
|
|
49
|
+
--oui-red-1: light-dark(oklch(97% 0.032 24deg), oklch(25% 0.09 16deg));
|
|
50
|
+
--oui-red-2: light-dark(oklch(93% 0.05 23deg), oklch(32% 0.1 17deg));
|
|
51
|
+
--oui-red-3: light-dark(oklch(87% 0.07 22deg), oklch(40% 0.11 18deg));
|
|
52
|
+
--oui-red-4: light-dark(oklch(80% 0.1 21deg), oklch(50% 0.12 19deg));
|
|
53
|
+
--oui-red-5: light-dark(oklch(70% 0.11 20deg), oklch(60% 0.11 20deg));
|
|
54
|
+
--oui-red-6: light-dark(oklch(60% 0.12 19deg), oklch(70% 0.1 21deg));
|
|
55
|
+
--oui-red-7: light-dark(oklch(50% 0.14 18deg), oklch(80% 0.07 22deg));
|
|
56
|
+
--oui-red-8: light-dark(oklch(40% 0.12 17deg), oklch(87% 0.05 23deg));
|
|
57
|
+
--oui-red-9: light-dark(oklch(32% 0.11 16deg), oklch(93% 0.032 24deg));
|
|
58
|
+
--oui-red-10: light-dark(oklch(25% 0.09 15deg), oklch(97% 0.024 25deg));
|
|
59
|
+
--oui-yellow-0: light-dark(oklch(98.75% 0.02 100deg), oklch(20% 0.07 90deg));
|
|
60
|
+
--oui-yellow-1: light-dark(oklch(97% 0.04 99deg), oklch(25% 0.09 91deg));
|
|
61
|
+
--oui-yellow-2: light-dark(oklch(94% 0.06 98deg), oklch(32% 0.1 92deg));
|
|
62
|
+
--oui-yellow-3: light-dark(oklch(89% 0.08 97deg), oklch(40% 0.11 93deg));
|
|
63
|
+
--oui-yellow-4: light-dark(oklch(80% 0.1 96deg), oklch(50% 0.12 94deg));
|
|
64
|
+
--oui-yellow-5: light-dark(oklch(70% 0.11 95deg), oklch(60% 0.11 95deg));
|
|
65
|
+
--oui-yellow-6: light-dark(oklch(60% 0.12 94deg), oklch(70% 0.1 96deg));
|
|
66
|
+
--oui-yellow-7: light-dark(oklch(50% 0.14 93deg), oklch(80% 0.07 97deg));
|
|
67
|
+
--oui-yellow-8: light-dark(oklch(40% 0.12 92deg), oklch(89% 0.05 98deg));
|
|
68
|
+
--oui-yellow-9: light-dark(oklch(32% 0.11 91deg), oklch(94% 0.035 99deg));
|
|
69
|
+
--oui-yellow-10: light-dark(oklch(25% 0.09 90deg), oklch(97.5% 0.02 100deg));
|
|
70
|
+
--oui-gray-0: light-dark(oklch(98.5% 0 0deg), oklch(20% 0 0deg));
|
|
71
|
+
--oui-gray-1: light-dark(oklch(96% 0 0deg), oklch(25% 0 0deg));
|
|
72
|
+
--oui-gray-2: light-dark(oklch(92% 0 0deg), oklch(32% 0 0deg));
|
|
73
|
+
--oui-gray-3: light-dark(oklch(87% 0 0deg), oklch(40% 0 0deg));
|
|
75
74
|
--oui-gray-4: light-dark(oklch(80% 0 0deg), oklch(50% 0 0deg));
|
|
76
75
|
--oui-gray-5: light-dark(oklch(70% 0 0deg), oklch(60% 0 0deg));
|
|
77
76
|
--oui-gray-6: light-dark(oklch(60% 0 0deg), oklch(70% 0 0deg));
|
|
78
77
|
--oui-gray-7: light-dark(oklch(50% 0 0deg), oklch(80% 0 0deg));
|
|
79
|
-
--oui-gray-8: light-dark(oklch(
|
|
80
|
-
--oui-gray-9: light-dark(oklch(
|
|
81
|
-
--oui-gray-10: light-dark(oklch(
|
|
82
|
-
--oui-slate-0: light-dark(oklch(
|
|
83
|
-
--oui-slate-1: light-dark(oklch(
|
|
84
|
-
--oui-slate-2: light-dark(oklch(
|
|
85
|
-
--oui-slate-3: light-dark(oklch(
|
|
78
|
+
--oui-gray-8: light-dark(oklch(40% 0 0deg), oklch(87% 0 0deg));
|
|
79
|
+
--oui-gray-9: light-dark(oklch(32% 0 0deg), oklch(92% 0 0deg));
|
|
80
|
+
--oui-gray-10: light-dark(oklch(25% 0 0deg), oklch(96% 0 0deg));
|
|
81
|
+
--oui-slate-0: light-dark(oklch(98.5% 0.0025 255deg), oklch(20% 0.005 255deg));
|
|
82
|
+
--oui-slate-1: light-dark(oklch(96% 0.005 255deg), oklch(25% 0.0075 255deg));
|
|
83
|
+
--oui-slate-2: light-dark(oklch(92% 0.0075 255deg), oklch(32% 0.01 255deg));
|
|
84
|
+
--oui-slate-3: light-dark(oklch(87% 0.01 255deg), oklch(40% 0.0125 255deg));
|
|
86
85
|
--oui-slate-4: light-dark(oklch(80% 0.015 255deg), oklch(50% 0.015 255deg));
|
|
87
86
|
--oui-slate-5: light-dark(oklch(70% 0.02 255deg), oklch(60% 0.02 255deg));
|
|
88
87
|
--oui-slate-6: light-dark(oklch(60% 0.015 255deg), oklch(70% 0.015 255deg));
|
|
89
|
-
--oui-slate-7: light-dark(oklch(50% 0.0125 255deg), oklch(80% 0.
|
|
90
|
-
--oui-slate-8: light-dark(oklch(
|
|
91
|
-
--oui-slate-9: light-dark(oklch(
|
|
92
|
-
--oui-slate-10: light-dark(oklch(
|
|
93
|
-
--oui-stone-0: light-dark(oklch(
|
|
94
|
-
--oui-stone-1: light-dark(oklch(
|
|
95
|
-
--oui-stone-2: light-dark(oklch(
|
|
96
|
-
--oui-stone-3: light-dark(oklch(
|
|
88
|
+
--oui-slate-7: light-dark(oklch(50% 0.0125 255deg), oklch(80% 0.01 255deg));
|
|
89
|
+
--oui-slate-8: light-dark(oklch(40% 0.01 255deg), oklch(87% 0.0075 255deg));
|
|
90
|
+
--oui-slate-9: light-dark(oklch(32% 0.0075 255deg), oklch(92% 0.005 255deg));
|
|
91
|
+
--oui-slate-10: light-dark(oklch(25% 0.005 255deg), oklch(96% 0.0025 255deg));
|
|
92
|
+
--oui-stone-0: light-dark(oklch(98.5% 0.0033 95deg), oklch(20% 0.005 95deg));
|
|
93
|
+
--oui-stone-1: light-dark(oklch(96% 0.0067 95deg), oklch(25% 0.0075 95deg));
|
|
94
|
+
--oui-stone-2: light-dark(oklch(92% 0.01 95deg), oklch(32% 0.01 95deg));
|
|
95
|
+
--oui-stone-3: light-dark(oklch(87% 0.0125 95deg), oklch(40% 0.0125 95deg));
|
|
97
96
|
--oui-stone-4: light-dark(oklch(80% 0.015 95deg), oklch(50% 0.015 95deg));
|
|
98
97
|
--oui-stone-5: light-dark(oklch(70% 0.02 95deg), oklch(60% 0.02 95deg));
|
|
99
98
|
--oui-stone-6: light-dark(oklch(60% 0.015 95deg), oklch(70% 0.015 95deg));
|
|
100
99
|
--oui-stone-7: light-dark(oklch(50% 0.0125 95deg), oklch(80% 0.0125 95deg));
|
|
101
|
-
--oui-stone-8: light-dark(oklch(
|
|
102
|
-
--oui-stone-9: light-dark(oklch(
|
|
103
|
-
--oui-stone-10: light-dark(oklch(
|
|
100
|
+
--oui-stone-8: light-dark(oklch(40% 0.01 95deg), oklch(87% 0.01 95deg));
|
|
101
|
+
--oui-stone-9: light-dark(oklch(32% 0.0075 95deg), oklch(92% 0.0067 95deg));
|
|
102
|
+
--oui-stone-10: light-dark(oklch(25% 0.005 95deg), oklch(96% 0.0033 95deg));
|
|
104
103
|
}
|
|
105
104
|
|
|
106
105
|
|
package/dist/css/combobox.css
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
@charset "UTF-8";
|
|
2
2
|
/*! https://github.com/oscarpalmer/oui */
|
|
3
3
|
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
4
7
|
:where([oui-combobox-anchor]) {
|
|
5
8
|
--oui-outline-percentage: 100%;
|
|
6
9
|
--oui-outline-value: var(--oui-blue-6);
|
|
@@ -130,7 +133,7 @@
|
|
|
130
133
|
--margin-top: 0;
|
|
131
134
|
}
|
|
132
135
|
:where([oui-combobox-content]) {
|
|
133
|
-
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);
|
|
136
|
+
box-shadow: inset 0 1px 0 0 transparent, 0 0 0 1px light-dark(rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.25)), 0 1px 2px -0.5px light-dark(rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.25)), 0 2px 4px -1px light-dark(rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.25)), 0 4px 8px -2px light-dark(rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.25)), 0 8px 16px -4px light-dark(rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.25)), 0 16px 32px -8px light-dark(rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.25)), 0 32px 64px -16px light-dark(rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.25)), 0 64px 128px -32px light-dark(rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.25));
|
|
134
137
|
width: -moz-fit-content;
|
|
135
138
|
width: fit-content;
|
|
136
139
|
height: -moz-fit-content;
|
|
@@ -275,8 +278,11 @@
|
|
|
275
278
|
line-height: 1.25;
|
|
276
279
|
cursor: pointer;
|
|
277
280
|
}
|
|
281
|
+
:where(oui-combobox:has([oui-combobox-header]) [oui-combobox-option]) {
|
|
282
|
+
scroll-margin-top: 2em;
|
|
283
|
+
}
|
|
278
284
|
:where([oui-combobox-option][aria-selected=true i]) {
|
|
279
|
-
background-color: var(--oui-blue-
|
|
285
|
+
background-color: var(--oui-blue-2);
|
|
280
286
|
color: var(--oui-blue-9);
|
|
281
287
|
}
|
|
282
288
|
:where(oui-combobox[multiple] [oui-combobox-option][aria-selected=true i])::before {
|
|
@@ -310,12 +316,12 @@
|
|
|
310
316
|
}
|
|
311
317
|
|
|
312
318
|
:where([oui-combobox-selection-item]) {
|
|
313
|
-
--oui-background-percentage:
|
|
319
|
+
--oui-background-percentage: 50%;
|
|
314
320
|
--oui-background-value: var(--oui-gray-2);
|
|
315
321
|
--oui-foreground-percentage: 0%;
|
|
316
322
|
--oui-foreground-value: var(--oui-gray-8);
|
|
317
323
|
--oui-outline-percentage: 100%;
|
|
318
|
-
--oui-outline-value: var(--oui-gray-
|
|
324
|
+
--oui-outline-value: var(--oui-gray-5);
|
|
319
325
|
--oui-shadow-inset: color-mix(in oklab, var(--oui-absolute), transparent 75%);
|
|
320
326
|
--oui-shadow-percentage: 82.5%;
|
|
321
327
|
--oui-shadow-value: color-mix(
|
|
@@ -335,9 +341,42 @@
|
|
|
335
341
|
border: none;
|
|
336
342
|
color: color-mix(in oklab, var(--oui-foreground-value), transparent var(--oui-foreground-percentage));
|
|
337
343
|
line-height: 1.25;
|
|
344
|
+
position: relative;
|
|
338
345
|
transition: 0.125s ease-in-out;
|
|
339
346
|
transition-property: background, outline, box-shadow, color;
|
|
340
347
|
}
|
|
348
|
+
:where([oui-combobox-selection-item])::after {
|
|
349
|
+
content: "";
|
|
350
|
+
width: 1em;
|
|
351
|
+
height: 1em;
|
|
352
|
+
display: inline-flex;
|
|
353
|
+
opacity: 0;
|
|
354
|
+
background-color: color-mix(in oklab, var(--oui-foreground-value), transparent var(--oui-foreground-percentage));
|
|
355
|
+
-webkit-mask-image: url("");
|
|
356
|
+
mask-image: url("");
|
|
357
|
+
-webkit-mask-position: center;
|
|
358
|
+
mask-position: center;
|
|
359
|
+
-webkit-mask-repeat: no-repeat;
|
|
360
|
+
mask-repeat: no-repeat;
|
|
361
|
+
-webkit-mask-size: 1em 1em;
|
|
362
|
+
mask-size: 1em 1em;
|
|
363
|
+
pointer-events: none;
|
|
364
|
+
transition: 0.125s ease-in-out;
|
|
365
|
+
transition-property: background-color, color, opacity, -webkit-mask-image;
|
|
366
|
+
transition-property: background-color, color, mask-image, opacity;
|
|
367
|
+
transition-property: background-color, color, mask-image, opacity, -webkit-mask-image;
|
|
368
|
+
position: absolute;
|
|
369
|
+
inset: 50% auto auto 50%;
|
|
370
|
+
transform: translate3d(-50%, -50%, 0);
|
|
371
|
+
}
|
|
372
|
+
:where([oui-combobox-selection-item]):has(.oui-icon:is(:first-child))::after {
|
|
373
|
+
inset: auto;
|
|
374
|
+
transform: none;
|
|
375
|
+
}
|
|
376
|
+
:where([oui-combobox-selection-item]):has(.oui-icon:is(:last-child))::after {
|
|
377
|
+
inset: auto 0.75em auto auto;
|
|
378
|
+
transform: none;
|
|
379
|
+
}
|
|
341
380
|
:where([oui-combobox-selection-item]):focus-visible {
|
|
342
381
|
--oui-outline-percentage: 75%;
|
|
343
382
|
}
|
|
@@ -348,8 +387,63 @@
|
|
|
348
387
|
--oui-shadow-percentage: 90%;
|
|
349
388
|
}
|
|
350
389
|
}
|
|
390
|
+
:where([oui-combobox-selection-item]):not([disabled], [aria-disabled=true i])[aria-busy=true i]:not(:has(.oui-icon:is(:first-child, :last-child))), :where([oui-combobox-selection-item]):not([disabled], [aria-disabled=true i])[data-state=busy i]:not(:has(.oui-icon:is(:first-child, :last-child))), :where([oui-combobox-selection-item]):not([disabled], [aria-disabled=true i])[data-state=error i]:not(:has(.oui-icon:is(:first-child, :last-child))), :where([oui-combobox-selection-item]):not([disabled], [aria-disabled=true i])[data-state=loading i]:not(:has(.oui-icon:is(:first-child, :last-child))), :where([oui-combobox-selection-item]):not([disabled], [aria-disabled=true i])[data-state=success i]:not(:has(.oui-icon:is(:first-child, :last-child))) {
|
|
391
|
+
color: transparent;
|
|
392
|
+
}
|
|
393
|
+
:where([oui-combobox-selection-item]):not([disabled], [aria-disabled=true i])[aria-busy=true i]::after, :where([oui-combobox-selection-item]):not([disabled], [aria-disabled=true i])[data-state=busy i]::after, :where([oui-combobox-selection-item]):not([disabled], [aria-disabled=true i])[data-state=error i]::after, :where([oui-combobox-selection-item]):not([disabled], [aria-disabled=true i])[data-state=loading i]::after, :where([oui-combobox-selection-item]):not([disabled], [aria-disabled=true i])[data-state=success i]::after {
|
|
394
|
+
opacity: 1;
|
|
395
|
+
}
|
|
396
|
+
:where([oui-combobox-selection-item]):not([disabled], [aria-disabled=true i])[aria-busy=true i] .oui-icon, :where([oui-combobox-selection-item]):not([disabled], [aria-disabled=true i])[data-state=busy i] .oui-icon, :where([oui-combobox-selection-item]):not([disabled], [aria-disabled=true i])[data-state=error i] .oui-icon, :where([oui-combobox-selection-item]):not([disabled], [aria-disabled=true i])[data-state=loading i] .oui-icon, :where([oui-combobox-selection-item]):not([disabled], [aria-disabled=true i])[data-state=success i] .oui-icon {
|
|
397
|
+
opacity: 0;
|
|
398
|
+
}
|
|
399
|
+
:where([oui-combobox-selection-item]):not([disabled], [aria-disabled=true i])[aria-busy=true i], :where([oui-combobox-selection-item]):not([disabled], [aria-disabled=true i])[data-state=busy i], :where([oui-combobox-selection-item]):not([disabled], [aria-disabled=true i])[data-state=loading i] {
|
|
400
|
+
--oui-background-value: var(--oui-blue-2);
|
|
401
|
+
--oui-foreground-value: var(--oui-blue-8);
|
|
402
|
+
--oui-outline-value: var(--oui-blue-5);
|
|
403
|
+
}
|
|
404
|
+
:where([oui-combobox-selection-item]):not([disabled], [aria-disabled=true i])[aria-busy=true i]::after, :where([oui-combobox-selection-item]):not([disabled], [aria-disabled=true i])[data-state=busy i]::after, :where([oui-combobox-selection-item]):not([disabled], [aria-disabled=true i])[data-state=loading i]::after {
|
|
405
|
+
-webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9ImN1cnJlbnRDb2xvciIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIGNsYXNzPSJpY29uIGljb24tdGFibGVyIGljb25zLXRhYmxlci1vdXRsaW5lIGljb24tdGFibGVyLWxvYWRlci0yIj48cGF0aCBzdHJva2U9Im5vbmUiIGQ9Ik0wIDBoMjR2MjRIMHoiIGZpbGw9Im5vbmUiIC8+PHBhdGggZD0iTTEyIDNhOSA5IDAgMSAwIDkgOSIgLz48L3N2Zz4=");
|
|
406
|
+
mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9ImN1cnJlbnRDb2xvciIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIGNsYXNzPSJpY29uIGljb24tdGFibGVyIGljb25zLXRhYmxlci1vdXRsaW5lIGljb24tdGFibGVyLWxvYWRlci0yIj48cGF0aCBzdHJva2U9Im5vbmUiIGQ9Ik0wIDBoMjR2MjRIMHoiIGZpbGw9Im5vbmUiIC8+PHBhdGggZD0iTTEyIDNhOSA5IDAgMSAwIDkgOSIgLz48L3N2Zz4=");
|
|
407
|
+
transform-origin: center;
|
|
408
|
+
animation: oui-button-icon-centered 1s linear infinite;
|
|
409
|
+
}
|
|
410
|
+
@keyframes oui-button-icon-centered {
|
|
411
|
+
to {
|
|
412
|
+
transform: translate3d(-50%, -50%, 0) rotate3d(0, 0, 1, 360deg);
|
|
413
|
+
}
|
|
414
|
+
}
|
|
415
|
+
:where([oui-combobox-selection-item]):not([disabled], [aria-disabled=true i])[aria-busy=true i]:has(.oui-icon:is(:first-child, :last-child))::after, :where([oui-combobox-selection-item]):not([disabled], [aria-disabled=true i])[data-state=busy i]:has(.oui-icon:is(:first-child, :last-child))::after, :where([oui-combobox-selection-item]):not([disabled], [aria-disabled=true i])[data-state=loading i]:has(.oui-icon:is(:first-child, :last-child))::after {
|
|
416
|
+
animation: oui-button-icon-offset 1s linear infinite;
|
|
417
|
+
}
|
|
418
|
+
@keyframes oui-button-icon-offset {
|
|
419
|
+
to {
|
|
420
|
+
transform: rotate3d(0, 0, 1, 360deg);
|
|
421
|
+
}
|
|
422
|
+
}
|
|
423
|
+
:where([oui-combobox-selection-item]):not([disabled], [aria-disabled=true i])[data-state=error i] {
|
|
424
|
+
--oui-background-value: var(--oui-red-2);
|
|
425
|
+
--oui-foreground-value: var(--oui-red-8);
|
|
426
|
+
--oui-outline-value: var(--oui-red-5);
|
|
427
|
+
}
|
|
428
|
+
:where([oui-combobox-selection-item]):not([disabled], [aria-disabled=true i])[data-state=error i]::after {
|
|
429
|
+
-webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9ImN1cnJlbnRDb2xvciIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIGNsYXNzPSJpY29uIGljb24tdGFibGVyIGljb25zLXRhYmxlci1vdXRsaW5lIGljb24tdGFibGVyLXgiPjxwYXRoIHN0cm9rZT0ibm9uZSIgZD0iTTAgMGgyNHYyNEgweiIgZmlsbD0ibm9uZSIgLz48cGF0aCBkPSJNMTggNmwtMTIgMTIiIC8+PHBhdGggZD0iTTYgNmwxMiAxMiIgLz48L3N2Zz4=");
|
|
430
|
+
mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9ImN1cnJlbnRDb2xvciIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIGNsYXNzPSJpY29uIGljb24tdGFibGVyIGljb25zLXRhYmxlci1vdXRsaW5lIGljb24tdGFibGVyLXgiPjxwYXRoIHN0cm9rZT0ibm9uZSIgZD0iTTAgMGgyNHYyNEgweiIgZmlsbD0ibm9uZSIgLz48cGF0aCBkPSJNMTggNmwtMTIgMTIiIC8+PHBhdGggZD0iTTYgNmwxMiAxMiIgLz48L3N2Zz4=");
|
|
431
|
+
}
|
|
432
|
+
:where([oui-combobox-selection-item]):not([disabled], [aria-disabled=true i])[data-state=success i] {
|
|
433
|
+
--oui-background-value: var(--oui-green-2);
|
|
434
|
+
--oui-foreground-value: var(--oui-green-8);
|
|
435
|
+
--oui-outline-value: var(--oui-green-5);
|
|
436
|
+
}
|
|
437
|
+
:where([oui-combobox-selection-item]):not([disabled], [aria-disabled=true i])[data-state=success i]::after {
|
|
438
|
+
-webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9ImN1cnJlbnRDb2xvciIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIGNsYXNzPSJpY29uIGljb24tdGFibGVyIGljb25zLXRhYmxlci1vdXRsaW5lIGljb24tdGFibGVyLWNoZWNrIj48cGF0aCBzdHJva2U9Im5vbmUiIGQ9Ik0wIDBoMjR2MjRIMHoiIGZpbGw9Im5vbmUiIC8+PHBhdGggZD0iTTUgMTJsNSA1bDEwIC0xMCIgLz48L3N2Zz4=");
|
|
439
|
+
mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9ImN1cnJlbnRDb2xvciIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIGNsYXNzPSJpY29uIGljb24tdGFibGVyIGljb25zLXRhYmxlci1vdXRsaW5lIGljb24tdGFibGVyLWNoZWNrIj48cGF0aCBzdHJva2U9Im5vbmUiIGQ9Ik0wIDBoMjR2MjRIMHoiIGZpbGw9Im5vbmUiIC8+PHBhdGggZD0iTTUgMTJsNSA1bDEwIC0xMCIgLz48L3N2Zz4=");
|
|
440
|
+
}
|
|
351
441
|
:where([oui-combobox-selection-item]):not([disabled], [aria-disabled=true i]):active {
|
|
352
442
|
box-shadow: 0 0 0 1px var(--oui-shadow-value), inset 0 1px 2px 0 var(--oui-shadow-value), inset 0 2px 4px 0 var(--oui-shadow-value);
|
|
443
|
+
scale: 0.95;
|
|
444
|
+
}
|
|
445
|
+
:where([oui-combobox-selection-item]):not([disabled], [aria-disabled=true i]):active[aria-pressed=true i], :where([oui-combobox-selection-item]):not([disabled], [aria-disabled=true i]):active[aria-selected=true i] {
|
|
446
|
+
scale: 1;
|
|
353
447
|
}
|
|
354
448
|
:where([oui-combobox-selection-item])[disabled], :where([oui-combobox-selection-item])[aria-disabled=true i] {
|
|
355
449
|
--oui-background-percentage: 80%;
|
|
@@ -357,6 +451,13 @@
|
|
|
357
451
|
--oui-shadow-percentage: 92.5%;
|
|
358
452
|
font-style: italic;
|
|
359
453
|
}
|
|
454
|
+
:where([oui-combobox-selection-item]) .oui-icon {
|
|
455
|
+
width: 1em;
|
|
456
|
+
height: 1em;
|
|
457
|
+
}
|
|
458
|
+
:where([oui-combobox-selection-item]) .oui-icon:is(:first-child, :last-child) {
|
|
459
|
+
transition: opacity 0.125s ease-in-out;
|
|
460
|
+
}
|
|
360
461
|
:where([oui-combobox-selection-item]) {
|
|
361
462
|
--oui-background-value: var(--oui-blue-2);
|
|
362
463
|
--oui-foreground-value: var(--oui-blue-8);
|
package/dist/css/content.css
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
/*! https://github.com/oscarpalmer/oui */
|
|
2
2
|
|
|
3
|
+
|
|
3
4
|
:where(.oui-card) {
|
|
4
5
|
box-shadow: inset 0 1px 0 0 transparent, 0 0 0 1px color-mix(in oklab, var(--oui-gray-6), transparent 92.5%), 0 1px 2px -0.5px color-mix(in oklab, var(--oui-gray-6), transparent 92.5%), 0 2px 4px -1px color-mix(in oklab, var(--oui-gray-6), transparent 92.5%);
|
|
5
6
|
padding: 1em 1.25em;
|
|
6
7
|
background-color: var(--oui-absolute);
|
|
7
8
|
border-radius: 0.5em;
|
|
9
|
+
--stack-gap: 1em;
|
|
8
10
|
}
|
|
9
11
|
|
|
10
12
|
:where(.oui-details > summary) {
|
|
@@ -189,22 +191,22 @@
|
|
|
189
191
|
}
|
|
190
192
|
|
|
191
193
|
:where(.oui-shadow), :where(.oui-shadow-0) {
|
|
192
|
-
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);
|
|
194
|
+
box-shadow: inset 0 1px 0 0 transparent, 0 0 0 1px light-dark(rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.25)), 0 1px 2px -0.5px light-dark(rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.25));
|
|
193
195
|
}
|
|
194
196
|
:where(.oui-shadow-1) {
|
|
195
|
-
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);
|
|
197
|
+
box-shadow: inset 0 1px 0 0 transparent, 0 0 0 1px light-dark(rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.25)), 0 1px 2px -0.5px light-dark(rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.25)), 0 2px 4px -1px light-dark(rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.25));
|
|
196
198
|
}
|
|
197
199
|
:where(.oui-shadow-2) {
|
|
198
|
-
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);
|
|
200
|
+
box-shadow: inset 0 1px 0 0 transparent, 0 0 0 1px light-dark(rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.25)), 0 1px 2px -0.5px light-dark(rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.25)), 0 2px 4px -1px light-dark(rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.25)), 0 4px 8px -2px light-dark(rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.25));
|
|
199
201
|
}
|
|
200
202
|
:where(.oui-shadow-3) {
|
|
201
|
-
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);
|
|
203
|
+
box-shadow: inset 0 1px 0 0 transparent, 0 0 0 1px light-dark(rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.25)), 0 1px 2px -0.5px light-dark(rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.25)), 0 2px 4px -1px light-dark(rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.25)), 0 4px 8px -2px light-dark(rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.25)), 0 8px 16px -4px light-dark(rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.25));
|
|
202
204
|
}
|
|
203
205
|
:where(.oui-shadow-4) {
|
|
204
|
-
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);
|
|
206
|
+
box-shadow: inset 0 1px 0 0 transparent, 0 0 0 1px light-dark(rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.25)), 0 1px 2px -0.5px light-dark(rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.25)), 0 2px 4px -1px light-dark(rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.25)), 0 4px 8px -2px light-dark(rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.25)), 0 8px 16px -4px light-dark(rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.25)), 0 16px 32px -8px light-dark(rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.25));
|
|
205
207
|
}
|
|
206
208
|
:where(.oui-shadow-5) {
|
|
207
|
-
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);
|
|
209
|
+
box-shadow: inset 0 1px 0 0 transparent, 0 0 0 1px light-dark(rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.25)), 0 1px 2px -0.5px light-dark(rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.25)), 0 2px 4px -1px light-dark(rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.25)), 0 4px 8px -2px light-dark(rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.25)), 0 8px 16px -4px light-dark(rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.25)), 0 16px 32px -8px light-dark(rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.25)), 0 32px 64px -16px light-dark(rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.25)), 0 64px 128px -32px light-dark(rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.25));
|
|
208
210
|
}
|
|
209
211
|
|
|
210
212
|
|
package/dist/css/floatable.css
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
/*! https://github.com/oscarpalmer/oui */
|
|
2
|
+
|
|
1
3
|
|
|
2
4
|
:where([oui-dialog], [oui-popover], [oui-tooltip-content]),
|
|
3
5
|
:where([oui-dialog])::backdrop {
|
|
@@ -7,7 +9,7 @@
|
|
|
7
9
|
}
|
|
8
10
|
|
|
9
11
|
:where([oui-dialog], [oui-popover], [oui-tooltip-content]) {
|
|
10
|
-
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);
|
|
12
|
+
box-shadow: inset 0 1px 0 0 transparent, 0 0 0 1px light-dark(rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.25)), 0 1px 2px -0.5px light-dark(rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.25)), 0 2px 4px -1px light-dark(rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.25)), 0 4px 8px -2px light-dark(rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.25)), 0 8px 16px -4px light-dark(rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.25)), 0 16px 32px -8px light-dark(rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.25)), 0 32px 64px -16px light-dark(rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.25)), 0 64px 128px -32px light-dark(rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.25));
|
|
11
13
|
background-color: var(--oui-absolute);
|
|
12
14
|
scale: 0.9;
|
|
13
15
|
}
|
|
@@ -62,7 +64,6 @@
|
|
|
62
64
|
|
|
63
65
|
:where([oui-popover]) {
|
|
64
66
|
padding: 1rem;
|
|
65
|
-
background-color: var(--oui-absolute);
|
|
66
67
|
border-radius: 0.25rem;
|
|
67
68
|
}
|
|
68
69
|
|
|
@@ -95,7 +96,6 @@ var)) {
|
|
|
95
96
|
:where([oui-tooltip-content]) {
|
|
96
97
|
max-width: 48ch;
|
|
97
98
|
padding: 0.75em 1em;
|
|
98
|
-
background-color: var(--oui-absolute);
|
|
99
99
|
border-radius: 0.25rem;
|
|
100
100
|
font-size: 0.875rem;
|
|
101
101
|
pointer-events: none;
|
package/dist/css/form.css
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
@charset "UTF-8";
|
|
2
2
|
/*! https://github.com/oscarpalmer/oui */
|
|
3
3
|
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
4
7
|
:where(.oui-fieldset) {
|
|
5
8
|
padding: 1em;
|
|
6
9
|
border: 1px solid var(--oui-gray-3);
|
|
@@ -120,12 +123,12 @@
|
|
|
120
123
|
padding-left: 0.5em;
|
|
121
124
|
}
|
|
122
125
|
:where(.oui-input:is([type=file i]))::file-selector-button {
|
|
123
|
-
--oui-background-percentage:
|
|
126
|
+
--oui-background-percentage: 50%;
|
|
124
127
|
--oui-background-value: var(--oui-gray-2);
|
|
125
128
|
--oui-foreground-percentage: 0%;
|
|
126
129
|
--oui-foreground-value: var(--oui-gray-8);
|
|
127
130
|
--oui-outline-percentage: 100%;
|
|
128
|
-
--oui-outline-value: var(--oui-gray-
|
|
131
|
+
--oui-outline-value: var(--oui-gray-5);
|
|
129
132
|
--oui-shadow-inset: color-mix(in oklab, var(--oui-absolute), transparent 75%);
|
|
130
133
|
--oui-shadow-percentage: 82.5%;
|
|
131
134
|
--oui-shadow-value: color-mix(
|
|
@@ -145,9 +148,42 @@
|
|
|
145
148
|
border: none;
|
|
146
149
|
color: color-mix(in oklab, var(--oui-foreground-value), transparent var(--oui-foreground-percentage));
|
|
147
150
|
line-height: 1.25;
|
|
151
|
+
position: relative;
|
|
148
152
|
transition: 0.125s ease-in-out;
|
|
149
153
|
transition-property: background, outline, box-shadow, color;
|
|
150
154
|
}
|
|
155
|
+
:where(.oui-input:is([type=file i]))::file-selector-button::after {
|
|
156
|
+
content: "";
|
|
157
|
+
width: 1em;
|
|
158
|
+
height: 1em;
|
|
159
|
+
display: inline-flex;
|
|
160
|
+
opacity: 0;
|
|
161
|
+
background-color: color-mix(in oklab, var(--oui-foreground-value), transparent var(--oui-foreground-percentage));
|
|
162
|
+
-webkit-mask-image: url("");
|
|
163
|
+
mask-image: url("");
|
|
164
|
+
-webkit-mask-position: center;
|
|
165
|
+
mask-position: center;
|
|
166
|
+
-webkit-mask-repeat: no-repeat;
|
|
167
|
+
mask-repeat: no-repeat;
|
|
168
|
+
-webkit-mask-size: 1em 1em;
|
|
169
|
+
mask-size: 1em 1em;
|
|
170
|
+
pointer-events: none;
|
|
171
|
+
transition: 0.125s ease-in-out;
|
|
172
|
+
transition-property: background-color, color, opacity, -webkit-mask-image;
|
|
173
|
+
transition-property: background-color, color, mask-image, opacity;
|
|
174
|
+
transition-property: background-color, color, mask-image, opacity, -webkit-mask-image;
|
|
175
|
+
position: absolute;
|
|
176
|
+
inset: 50% auto auto 50%;
|
|
177
|
+
transform: translate3d(-50%, -50%, 0);
|
|
178
|
+
}
|
|
179
|
+
:where(.oui-input:is([type=file i]))::file-selector-button:has(.oui-icon:is(:first-child))::after {
|
|
180
|
+
inset: auto;
|
|
181
|
+
transform: none;
|
|
182
|
+
}
|
|
183
|
+
:where(.oui-input:is([type=file i]))::file-selector-button:has(.oui-icon:is(:last-child))::after {
|
|
184
|
+
inset: auto 0.75em auto auto;
|
|
185
|
+
transform: none;
|
|
186
|
+
}
|
|
151
187
|
:where(.oui-input:is([type=file i]))::file-selector-button:focus-visible {
|
|
152
188
|
--oui-outline-percentage: 75%;
|
|
153
189
|
}
|
|
@@ -158,8 +194,63 @@
|
|
|
158
194
|
--oui-shadow-percentage: 90%;
|
|
159
195
|
}
|
|
160
196
|
}
|
|
197
|
+
:where(.oui-input:is([type=file i]))::file-selector-button:not([disabled], [aria-disabled=true i])[aria-busy=true i]:not(:has(.oui-icon:is(:first-child, :last-child))), :where(.oui-input:is([type=file i]))::file-selector-button:not([disabled], [aria-disabled=true i])[data-state=busy i]:not(:has(.oui-icon:is(:first-child, :last-child))), :where(.oui-input:is([type=file i]))::file-selector-button:not([disabled], [aria-disabled=true i])[data-state=error i]:not(:has(.oui-icon:is(:first-child, :last-child))), :where(.oui-input:is([type=file i]))::file-selector-button:not([disabled], [aria-disabled=true i])[data-state=loading i]:not(:has(.oui-icon:is(:first-child, :last-child))), :where(.oui-input:is([type=file i]))::file-selector-button:not([disabled], [aria-disabled=true i])[data-state=success i]:not(:has(.oui-icon:is(:first-child, :last-child))) {
|
|
198
|
+
color: transparent;
|
|
199
|
+
}
|
|
200
|
+
:where(.oui-input:is([type=file i]))::file-selector-button:not([disabled], [aria-disabled=true i])[aria-busy=true i]::after, :where(.oui-input:is([type=file i]))::file-selector-button:not([disabled], [aria-disabled=true i])[data-state=busy i]::after, :where(.oui-input:is([type=file i]))::file-selector-button:not([disabled], [aria-disabled=true i])[data-state=error i]::after, :where(.oui-input:is([type=file i]))::file-selector-button:not([disabled], [aria-disabled=true i])[data-state=loading i]::after, :where(.oui-input:is([type=file i]))::file-selector-button:not([disabled], [aria-disabled=true i])[data-state=success i]::after {
|
|
201
|
+
opacity: 1;
|
|
202
|
+
}
|
|
203
|
+
:where(.oui-input:is([type=file i]))::file-selector-button:not([disabled], [aria-disabled=true i])[aria-busy=true i] .oui-icon, :where(.oui-input:is([type=file i]))::file-selector-button:not([disabled], [aria-disabled=true i])[data-state=busy i] .oui-icon, :where(.oui-input:is([type=file i]))::file-selector-button:not([disabled], [aria-disabled=true i])[data-state=error i] .oui-icon, :where(.oui-input:is([type=file i]))::file-selector-button:not([disabled], [aria-disabled=true i])[data-state=loading i] .oui-icon, :where(.oui-input:is([type=file i]))::file-selector-button:not([disabled], [aria-disabled=true i])[data-state=success i] .oui-icon {
|
|
204
|
+
opacity: 0;
|
|
205
|
+
}
|
|
206
|
+
:where(.oui-input:is([type=file i]))::file-selector-button:not([disabled], [aria-disabled=true i])[aria-busy=true i], :where(.oui-input:is([type=file i]))::file-selector-button:not([disabled], [aria-disabled=true i])[data-state=busy i], :where(.oui-input:is([type=file i]))::file-selector-button:not([disabled], [aria-disabled=true i])[data-state=loading i] {
|
|
207
|
+
--oui-background-value: var(--oui-blue-2);
|
|
208
|
+
--oui-foreground-value: var(--oui-blue-8);
|
|
209
|
+
--oui-outline-value: var(--oui-blue-5);
|
|
210
|
+
}
|
|
211
|
+
:where(.oui-input:is([type=file i]))::file-selector-button:not([disabled], [aria-disabled=true i])[aria-busy=true i]::after, :where(.oui-input:is([type=file i]))::file-selector-button:not([disabled], [aria-disabled=true i])[data-state=busy i]::after, :where(.oui-input:is([type=file i]))::file-selector-button:not([disabled], [aria-disabled=true i])[data-state=loading i]::after {
|
|
212
|
+
-webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9ImN1cnJlbnRDb2xvciIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIGNsYXNzPSJpY29uIGljb24tdGFibGVyIGljb25zLXRhYmxlci1vdXRsaW5lIGljb24tdGFibGVyLWxvYWRlci0yIj48cGF0aCBzdHJva2U9Im5vbmUiIGQ9Ik0wIDBoMjR2MjRIMHoiIGZpbGw9Im5vbmUiIC8+PHBhdGggZD0iTTEyIDNhOSA5IDAgMSAwIDkgOSIgLz48L3N2Zz4=");
|
|
213
|
+
mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9ImN1cnJlbnRDb2xvciIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIGNsYXNzPSJpY29uIGljb24tdGFibGVyIGljb25zLXRhYmxlci1vdXRsaW5lIGljb24tdGFibGVyLWxvYWRlci0yIj48cGF0aCBzdHJva2U9Im5vbmUiIGQ9Ik0wIDBoMjR2MjRIMHoiIGZpbGw9Im5vbmUiIC8+PHBhdGggZD0iTTEyIDNhOSA5IDAgMSAwIDkgOSIgLz48L3N2Zz4=");
|
|
214
|
+
transform-origin: center;
|
|
215
|
+
animation: oui-button-icon-centered 1s linear infinite;
|
|
216
|
+
}
|
|
217
|
+
@keyframes oui-button-icon-centered {
|
|
218
|
+
to {
|
|
219
|
+
transform: translate3d(-50%, -50%, 0) rotate3d(0, 0, 1, 360deg);
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
:where(.oui-input:is([type=file i]))::file-selector-button:not([disabled], [aria-disabled=true i])[aria-busy=true i]:has(.oui-icon:is(:first-child, :last-child))::after, :where(.oui-input:is([type=file i]))::file-selector-button:not([disabled], [aria-disabled=true i])[data-state=busy i]:has(.oui-icon:is(:first-child, :last-child))::after, :where(.oui-input:is([type=file i]))::file-selector-button:not([disabled], [aria-disabled=true i])[data-state=loading i]:has(.oui-icon:is(:first-child, :last-child))::after {
|
|
223
|
+
animation: oui-button-icon-offset 1s linear infinite;
|
|
224
|
+
}
|
|
225
|
+
@keyframes oui-button-icon-offset {
|
|
226
|
+
to {
|
|
227
|
+
transform: rotate3d(0, 0, 1, 360deg);
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
:where(.oui-input:is([type=file i]))::file-selector-button:not([disabled], [aria-disabled=true i])[data-state=error i] {
|
|
231
|
+
--oui-background-value: var(--oui-red-2);
|
|
232
|
+
--oui-foreground-value: var(--oui-red-8);
|
|
233
|
+
--oui-outline-value: var(--oui-red-5);
|
|
234
|
+
}
|
|
235
|
+
:where(.oui-input:is([type=file i]))::file-selector-button:not([disabled], [aria-disabled=true i])[data-state=error i]::after {
|
|
236
|
+
-webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9ImN1cnJlbnRDb2xvciIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIGNsYXNzPSJpY29uIGljb24tdGFibGVyIGljb25zLXRhYmxlci1vdXRsaW5lIGljb24tdGFibGVyLXgiPjxwYXRoIHN0cm9rZT0ibm9uZSIgZD0iTTAgMGgyNHYyNEgweiIgZmlsbD0ibm9uZSIgLz48cGF0aCBkPSJNMTggNmwtMTIgMTIiIC8+PHBhdGggZD0iTTYgNmwxMiAxMiIgLz48L3N2Zz4=");
|
|
237
|
+
mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9ImN1cnJlbnRDb2xvciIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIGNsYXNzPSJpY29uIGljb24tdGFibGVyIGljb25zLXRhYmxlci1vdXRsaW5lIGljb24tdGFibGVyLXgiPjxwYXRoIHN0cm9rZT0ibm9uZSIgZD0iTTAgMGgyNHYyNEgweiIgZmlsbD0ibm9uZSIgLz48cGF0aCBkPSJNMTggNmwtMTIgMTIiIC8+PHBhdGggZD0iTTYgNmwxMiAxMiIgLz48L3N2Zz4=");
|
|
238
|
+
}
|
|
239
|
+
:where(.oui-input:is([type=file i]))::file-selector-button:not([disabled], [aria-disabled=true i])[data-state=success i] {
|
|
240
|
+
--oui-background-value: var(--oui-green-2);
|
|
241
|
+
--oui-foreground-value: var(--oui-green-8);
|
|
242
|
+
--oui-outline-value: var(--oui-green-5);
|
|
243
|
+
}
|
|
244
|
+
:where(.oui-input:is([type=file i]))::file-selector-button:not([disabled], [aria-disabled=true i])[data-state=success i]::after {
|
|
245
|
+
-webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9ImN1cnJlbnRDb2xvciIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIGNsYXNzPSJpY29uIGljb24tdGFibGVyIGljb25zLXRhYmxlci1vdXRsaW5lIGljb24tdGFibGVyLWNoZWNrIj48cGF0aCBzdHJva2U9Im5vbmUiIGQ9Ik0wIDBoMjR2MjRIMHoiIGZpbGw9Im5vbmUiIC8+PHBhdGggZD0iTTUgMTJsNSA1bDEwIC0xMCIgLz48L3N2Zz4=");
|
|
246
|
+
mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9ImN1cnJlbnRDb2xvciIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIGNsYXNzPSJpY29uIGljb24tdGFibGVyIGljb25zLXRhYmxlci1vdXRsaW5lIGljb24tdGFibGVyLWNoZWNrIj48cGF0aCBzdHJva2U9Im5vbmUiIGQ9Ik0wIDBoMjR2MjRIMHoiIGZpbGw9Im5vbmUiIC8+PHBhdGggZD0iTTUgMTJsNSA1bDEwIC0xMCIgLz48L3N2Zz4=");
|
|
247
|
+
}
|
|
161
248
|
:where(.oui-input:is([type=file i]))::file-selector-button:not([disabled], [aria-disabled=true i]):active {
|
|
162
249
|
box-shadow: 0 0 0 1px var(--oui-shadow-value), inset 0 1px 2px 0 var(--oui-shadow-value), inset 0 2px 4px 0 var(--oui-shadow-value);
|
|
250
|
+
scale: 0.95;
|
|
251
|
+
}
|
|
252
|
+
:where(.oui-input:is([type=file i]))::file-selector-button:not([disabled], [aria-disabled=true i]):active[aria-pressed=true i], :where(.oui-input:is([type=file i]))::file-selector-button:not([disabled], [aria-disabled=true i]):active[aria-selected=true i] {
|
|
253
|
+
scale: 1;
|
|
163
254
|
}
|
|
164
255
|
:where(.oui-input:is([type=file i]))::file-selector-button[disabled], :where(.oui-input:is([type=file i]))::file-selector-button[aria-disabled=true i] {
|
|
165
256
|
--oui-background-percentage: 80%;
|
|
@@ -167,6 +258,13 @@
|
|
|
167
258
|
--oui-shadow-percentage: 92.5%;
|
|
168
259
|
font-style: italic;
|
|
169
260
|
}
|
|
261
|
+
:where(.oui-input:is([type=file i]))::file-selector-button .oui-icon {
|
|
262
|
+
width: 1em;
|
|
263
|
+
height: 1em;
|
|
264
|
+
}
|
|
265
|
+
:where(.oui-input:is([type=file i]))::file-selector-button .oui-icon:is(:first-child, :last-child) {
|
|
266
|
+
transition: opacity 0.125s ease-in-out;
|
|
267
|
+
}
|
|
170
268
|
:where(.oui-input:is([type=file i]))::file-selector-button {
|
|
171
269
|
--oui-background-value: var(--oui-grey-2);
|
|
172
270
|
--oui-outline-value: var(--oui-grey-6);
|
|
@@ -783,14 +881,11 @@
|
|
|
783
881
|
font-size: 0.875rem;
|
|
784
882
|
font-weight: bold;
|
|
785
883
|
align-self: flex-start;
|
|
786
|
-
}
|
|
787
|
-
|
|
788
|
-
:where(.oui-label) {
|
|
789
884
|
cursor: pointer;
|
|
790
885
|
transition: color 0.125s ease-in-out;
|
|
791
886
|
}
|
|
792
887
|
@media (hover: hover) {
|
|
793
|
-
:where(.oui-label
|
|
888
|
+
:where(:where(.oui-label, .oui-legend):hover) {
|
|
794
889
|
color: var(--oui-blue-8);
|
|
795
890
|
}
|
|
796
891
|
}
|
|
@@ -856,6 +951,7 @@
|
|
|
856
951
|
text-align: center;
|
|
857
952
|
top: 0.25em;
|
|
858
953
|
right: 1.5em;
|
|
954
|
+
transition: right 0.125s ease-in-out;
|
|
859
955
|
}
|
|
860
956
|
:where(.oui-switch:has(input:checked)) {
|
|
861
957
|
--oui-foreground-percentage: 0%;
|
|
@@ -866,6 +962,10 @@
|
|
|
866
962
|
box-shadow: 0 1px 2px 1px rgba(0, 0, 0, 0.25);
|
|
867
963
|
right: 0.25em;
|
|
868
964
|
}
|
|
965
|
+
:where(.oui-switch:has(input:active))::after {
|
|
966
|
+
content: "";
|
|
967
|
+
right: 1em;
|
|
968
|
+
}
|
|
869
969
|
|
|
870
970
|
:where(.oui-toggle) {
|
|
871
971
|
--oui-background-percentage: 100%;
|