@oscarpalmer/oui 0.38.0 → 0.40.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/README.md +1 -1
- package/dist/css/badge.css +11 -8
- package/dist/css/button.css +106 -14
- package/dist/css/color-picker.css +555 -73
- package/dist/css/color.css +86 -86
- package/dist/css/combobox.css +98 -4
- package/dist/css/content.css +7 -6
- package/dist/css/floatable.css +1 -3
- package/dist/css/form.css +99 -6
- package/dist/css/icon.css +99 -0
- package/dist/css/listbox.css +3 -0
- package/dist/css/message.css +4 -3
- package/dist/css/mixins/button.mixins.css +1 -0
- package/dist/css/reset.css +1 -1
- package/dist/css/tabs.css +95 -3
- package/dist/css/typography.css +90 -0
- package/dist/js/color-picker/color-picker.constants.d.mts +2 -0
- package/dist/js/color-picker/color-picker.constants.mjs +60 -0
- package/dist/js/color-picker/color-picker.dom.d.mts +8 -0
- package/dist/js/color-picker/color-picker.dom.mjs +191 -0
- package/dist/js/color-picker/color-picker.event.d.mts +9 -0
- package/dist/js/color-picker/color-picker.event.mjs +2 -0
- package/dist/js/color-picker/color-picker.form.d.mts +5 -0
- package/dist/js/color-picker/color-picker.form.mjs +27 -0
- package/dist/js/color-picker/color-picker.misc.d.mts +2 -0
- package/dist/js/color-picker/color-picker.misc.mjs +2 -0
- package/dist/js/color-picker/color-picker.model.d.mts +2 -0
- package/dist/js/color-picker/color-picker.model.mjs +24 -0
- package/dist/js/color-picker/color-picker.output.d.mts +8 -0
- package/dist/js/color-picker/color-picker.output.mjs +235 -0
- package/dist/js/color-picker/color-picker.state.d.mts +8 -0
- package/dist/js/color-picker/color-picker.state.mjs +2 -0
- package/dist/js/{color-picker.d.mts → color-picker/index.d.mts} +10 -43
- package/dist/js/color-picker/index.mjs +305 -0
- package/dist/js/color-picker.constants-D1mxw_Le.d.mts +179 -0
- package/dist/js/color-picker.event-Cksj5TvS.mjs +500 -0
- package/dist/js/color-picker.misc-CtsXGrOe.d.mts +27 -0
- package/dist/js/combobox/combobox.constants.d.mts +2 -0
- package/dist/js/combobox/{constants.combobox.mjs → combobox.constants.mjs} +21 -21
- package/dist/js/combobox/combobox.dom.d.mts +26 -0
- package/dist/js/combobox/{dom.combobox.mjs → combobox.dom.mjs} +44 -37
- package/dist/js/combobox/combobox.event.d.mts +22 -0
- package/dist/js/combobox/{event.combobox.mjs → combobox.event.mjs} +1 -1
- package/dist/js/combobox/combobox.misc.d.mts +2 -0
- package/dist/js/combobox/{misc.combobox.mjs → combobox.misc.mjs} +1 -1
- package/dist/js/combobox/combobox.model.d.mts +2 -0
- package/dist/js/combobox/combobox.state.d.mts +10 -0
- package/dist/js/combobox/combobox.state.mjs +2 -0
- package/dist/js/combobox/index.d.mts +163 -2
- package/dist/js/combobox/index.mjs +53 -52
- package/dist/js/combobox.constants-DZVkMP5g.d.mts +19 -0
- package/dist/js/combobox.misc-C1tPZZDi.d.mts +22 -0
- package/dist/js/{combobox/models.combobox.d.mts → combobox.model-oDV06XCN.d.mts} +6 -6
- package/dist/js/{state.combobox-Qm3FWzYW.mjs → combobox.state-BfJ3Hxg8.mjs} +96 -82
- package/dist/js/constants.listbox-C5Ap6Ag_.d.mts +9 -0
- package/dist/js/dialog/dialog.model.d.mts +2 -0
- package/dist/js/dialog/dialog.model.mjs +11 -0
- package/dist/js/dialog/index.d.mts +12 -0
- package/dist/js/dialog/index.mjs +123 -0
- package/dist/js/dialog.model-DX2mndMh.d.mts +45 -0
- package/dist/js/floatable/floatable.embedded.d.mts +2 -2
- package/dist/js/floatable/floatable.embedded.mjs +64 -92
- package/dist/js/floatable/floatable.model.d.mts +2 -0
- package/dist/js/floatable/floatable.model.mjs +23 -0
- package/dist/js/floatable/floatable.standalone.d.mts +2 -1
- package/dist/js/floatable.embedded-MeTyXjFn.d.mts +17 -0
- package/dist/js/floatable.model-DXsQgoU7.d.mts +62 -0
- package/dist/js/focus-trap/focus-trap.embedded.d.mts +2 -2
- package/dist/js/focus-trap/focus-trap.embedded.mjs +112 -134
- package/dist/js/focus-trap/focus-trap.model.d.mts +2 -0
- package/dist/js/focus-trap/focus-trap.model.mjs +15 -0
- package/dist/js/focus-trap/focus-trap.standalone.d.mts +2 -1
- package/dist/js/focus-trap.embedded-DIU05m1z.d.mts +13 -0
- package/dist/js/{focus-trap.embedded-DR8NpZfr.d.mts → focus-trap.model-BeX6UYlw.d.mts} +16 -18
- package/dist/js/index.d.mts +26 -14
- package/dist/js/index.mjs +18 -15
- package/dist/js/internal/attributable.d.mts +2 -3
- package/dist/js/internal/attributable.mjs +3 -2
- package/dist/js/internal/draggable/draggable.model.d.mts +2 -0
- package/dist/js/internal/draggable/draggable.model.mjs +37 -0
- package/dist/js/internal/draggable/index.d.mts +13 -0
- package/dist/js/internal/{draggable.mjs → draggable/index.mjs} +83 -114
- 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 +23 -20
- package/dist/js/internal/listbox/listbox.form.d.mts +4 -5
- package/dist/js/internal/listbox/listbox.form.mjs +15 -12
- 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 +2 -2
- package/dist/js/internal/listbox/listbox.state.d.mts +5 -6
- package/dist/js/internal/listbox/listbox.state.mjs +19 -20
- package/dist/js/internal/misc.d.mts +5 -4
- package/dist/js/internal/misc.mjs +7 -1
- package/dist/js/internal/navigable/index.d.mts +6 -0
- package/dist/js/internal/navigable/index.mjs +125 -0
- package/dist/js/internal/navigable/navigable.model.d.mts +2 -0
- package/dist/js/internal/navigable/navigable.model.mjs +18 -0
- package/dist/js/l10n/index.d.mts +9 -0
- package/dist/js/{l10n.mjs → l10n/index.mjs} +50 -23
- package/dist/js/l10n/l10n.model.d.mts +2 -0
- package/dist/js/l10n/l10n.model.mjs +9 -0
- package/dist/js/l10n.model-D6a9frgl.d.mts +26 -0
- package/dist/js/listbox/constants.listbox.d.mts +2 -2
- package/dist/js/listbox/constants.listbox.mjs +10 -14
- package/dist/js/listbox/event.listbox.d.mts +6 -7
- package/dist/js/listbox/event.listbox.mjs +47 -1
- package/dist/js/listbox/index.d.mts +8 -6
- package/dist/js/listbox/index.mjs +47 -49
- 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 +8 -10
- package/dist/js/listbox/state.listbox.mjs +2 -2
- package/dist/js/{listbox.data-C7CRa5Ya.mjs → listbox.data-BQyZGKgr.mjs} +83 -66
- package/dist/js/{listbox.model-CRReGOmu.d.mts → listbox.model-CuBOj4qe.d.mts} +15 -11
- package/dist/js/menu/index.mjs +167 -0
- package/dist/js/menu/menu.model.d.mts +33 -0
- package/dist/js/menu/menu.model.mjs +15 -0
- package/dist/js/{misc.listbox-Cyz2CRDy.mjs → misc.listbox-CjfBUbHD.mjs} +27 -69
- package/dist/js/{misc.listbox-gnoJhrTr.d.mts → misc.listbox-CtoGvXQo.d.mts} +2 -2
- package/dist/js/movable/movable.embedded.d.mts +2 -2
- package/dist/js/movable/movable.embedded.mjs +60 -72
- package/dist/js/movable/movable.model.d.mts +2 -0
- package/dist/js/movable/movable.model.mjs +12 -0
- package/dist/js/movable/movable.standalone.d.mts +2 -1
- package/dist/js/movable.embedded-DoyXLegc.d.mts +11 -0
- package/dist/js/movable.model-BHaK_mKw.d.mts +186 -0
- package/dist/js/navigable.model-BPOM8DZk.d.mts +44 -0
- package/dist/js/popover/index.d.mts +12 -0
- package/dist/js/{popover.mjs → popover/index.mjs} +40 -50
- package/dist/js/popover/popover.model.d.mts +2 -0
- package/dist/js/popover/popover.model.mjs +12 -0
- package/dist/js/popover.model-ubKNG612.d.mts +38 -0
- package/dist/js/resizable/resizable.embedded.d.mts +2 -2
- package/dist/js/resizable/resizable.embedded.mjs +44 -59
- package/dist/js/resizable/resizable.model.d.mts +2 -0
- package/dist/js/resizable/resizable.model.mjs +21 -0
- package/dist/js/resizable/resizable.standalone.d.mts +2 -1
- package/dist/js/resizable.embedded-Bf1qBUdt.d.mts +11 -0
- package/dist/js/resizable.model-BwzJcTVJ.d.mts +46 -0
- package/dist/js/sortable/sortable.embedded.d.mts +2 -2
- package/dist/js/sortable/sortable.embedded.mjs +69 -82
- package/dist/js/sortable/sortable.model.d.mts +2 -0
- package/dist/js/sortable/sortable.model.mjs +24 -0
- package/dist/js/sortable/sortable.standalone.d.mts +2 -1
- package/dist/js/sortable.embedded-DzBKAwSG.d.mts +11 -0
- package/dist/js/{splitter.d.mts → splitter/index.d.mts} +8 -7
- package/dist/js/splitter/index.mjs +284 -0
- package/dist/js/splitter/splitter.model.d.mts +2 -0
- package/dist/js/splitter/splitter.model.mjs +37 -0
- package/dist/js/splitter.model-DOLNjLVS.d.mts +57 -0
- package/dist/js/{tabs.d.mts → tabs/index.d.mts} +7 -8
- package/dist/js/{tabs.mjs → tabs/index.mjs} +58 -58
- package/dist/js/tabs/tabs.model.d.mts +2 -0
- package/dist/js/tabs/tabs.model.mjs +18 -0
- package/dist/js/tabs.model-DRBX_JtI.d.mts +40 -0
- package/dist/js/toolbar/index.mjs +27 -0
- package/dist/js/toolbar/toolbar.model.d.mts +11 -0
- package/dist/js/toolbar/toolbar.model.mjs +7 -0
- package/dist/js/tooltip/index.d.mts +19 -0
- package/dist/js/{tooltip.mjs → tooltip/index.mjs} +60 -85
- package/dist/js/tooltip/tooltip.model.d.mts +2 -0
- package/dist/js/tooltip/tooltip.model.mjs +15 -0
- package/dist/js/tooltip.model-DRkY_BsL.d.mts +37 -0
- package/package.json +43 -37
- package/dist/js/color-picker.mjs +0 -924
- package/dist/js/combobox/constants.combobox.d.mts +0 -2
- package/dist/js/combobox/dom.combobox.d.mts +0 -27
- package/dist/js/combobox/event.combobox.d.mts +0 -23
- package/dist/js/combobox/misc.combobox.d.mts +0 -2
- package/dist/js/combobox/state.combobox.d.mts +0 -12
- package/dist/js/combobox/state.combobox.mjs +0 -2
- package/dist/js/constants.combobox-DmRAMC64.d.mts +0 -26
- package/dist/js/constants.listbox-DRsXUxd3.d.mts +0 -14
- package/dist/js/dialog.d.mts +0 -47
- package/dist/js/dialog.mjs +0 -131
- package/dist/js/draggable-a6w0J1OD.d.mts +0 -154
- package/dist/js/floatable.embedded-Bct4U5Dm.d.mts +0 -69
- package/dist/js/index-DJdFlTLm.d.mts +0 -177
- package/dist/js/internal/draggable.d.mts +0 -2
- package/dist/js/internal/navigable.d.mts +0 -37
- package/dist/js/internal/navigable.mjs +0 -135
- package/dist/js/l10n-Bn-7RcwR.d.mts +0 -20
- package/dist/js/l10n.d.mts +0 -2
- package/dist/js/menu.mjs +0 -172
- package/dist/js/popover.d.mts +0 -38
- package/dist/js/resizable.embedded-3qoR0Bjm.d.mts +0 -34
- package/dist/js/splitter.mjs +0 -322
- package/dist/js/toolbar.mjs +0 -31
- package/dist/js/tooltip.d.mts +0 -45
- 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-picker.scss +0 -344
- package/src/css/color.scss +0 -113
- package/src/css/combobox.scss +0 -255
- package/src/css/content.scss +0 -181
- package/src/css/flex.scss +0 -107
- package/src/css/floatable.scss +0 -155
- package/src/css/form.scss +0 -575
- package/src/css/listbox.scss +0 -121
- package/src/css/message.scss +0 -74
- package/src/css/mixins/badge.mixins.scss +0 -53
- package/src/css/mixins/button.mixins.scss +0 -112
- package/src/css/mixins/input.mixins.scss +0 -114
- package/src/css/mixins/message.mixins.scss +0 -41
- package/src/css/mixins/misc.mixins.scss +0 -48
- package/src/css/mixins/shadow.mixins.scss +0 -57
- 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 -74
- package/src/js/color-picker.ts +0 -1653
- package/src/js/combobox/constants.combobox.ts +0 -83
- package/src/js/combobox/dom.combobox.ts +0 -411
- package/src/js/combobox/event.combobox.ts +0 -365
- package/src/js/combobox/index.ts +0 -382
- 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 -336
- 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 -16
- 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 -446
- package/src/js/internal/listbox/listbox.event.ts +0 -129
- package/src/js/internal/listbox/listbox.form.ts +0 -125
- 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 -317
- 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 -364
- package/src/js/listbox/misc.listbox.ts +0 -70
- package/src/js/listbox/state.listbox.ts +0 -194
- 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 -441
- package/src/js/toolbar.ts +0 -63
- package/src/js/tooltip.ts +0 -367
- /package/dist/js/combobox/{models.combobox.mjs → combobox.model.mjs} +0 -0
- /package/dist/js/{menu.d.mts → menu/index.d.mts} +0 -0
- /package/dist/js/{toolbar.d.mts → toolbar/index.d.mts} +0 -0
package/src/css/reset.scss
DELETED
|
@@ -1,392 +0,0 @@
|
|
|
1
|
-
/*! https://github.com/oscarpalmer/oui */
|
|
2
|
-
/**
|
|
3
|
-
* Reset
|
|
4
|
-
* ========================
|
|
5
|
-
*
|
|
6
|
-
* A reset I use for a lot of personal stuff, and elsewhere, of course.
|
|
7
|
-
* It's a mix of a few different resets mixed together with some of my own ideas.
|
|
8
|
-
*
|
|
9
|
-
* - Andy Bell's "A (more) Modern CSS Reset"
|
|
10
|
-
* https://andy-bell.co.uk/a-more-modern-css-reset/
|
|
11
|
-
*
|
|
12
|
-
* - Chris Coyier's "The Coyier CSS Starter"
|
|
13
|
-
* https://frontendmasters.com/blog/the-coyier-css-starter/
|
|
14
|
-
*
|
|
15
|
-
* - CSS Remedy
|
|
16
|
-
* https://github.com/jensimmons/cssremedy
|
|
17
|
-
*
|
|
18
|
-
* - Harry Roberts
|
|
19
|
-
* - https://github.com/csswizardry
|
|
20
|
-
*
|
|
21
|
-
* - Interface Cheat sheet
|
|
22
|
-
* - https://interfaces.dev/cheat-sheet
|
|
23
|
-
*
|
|
24
|
-
* - RESS
|
|
25
|
-
* https://github.com/filipelinhares/ress
|
|
26
|
-
*
|
|
27
|
-
* - Sanitize.css
|
|
28
|
-
* https://github.com/csstools/sanitize.css
|
|
29
|
-
*/
|
|
30
|
-
|
|
31
|
-
// #region Globals
|
|
32
|
-
|
|
33
|
-
:where(*) {
|
|
34
|
-
padding: 0;
|
|
35
|
-
margin: 0;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
:where(*),
|
|
39
|
-
::after,
|
|
40
|
-
::before {
|
|
41
|
-
box-sizing: border-box;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
// #endregion
|
|
45
|
-
|
|
46
|
-
// #region Document
|
|
47
|
-
|
|
48
|
-
:where(:root) {
|
|
49
|
-
font-family: system-ui, sans-serif;
|
|
50
|
-
font-size: 100%;
|
|
51
|
-
line-height: 1.5;
|
|
52
|
-
text-size-adjust: none;
|
|
53
|
-
tab-size: 4;
|
|
54
|
-
overflow-wrap: break-word;
|
|
55
|
-
-webkit-font-smoothing: antialiased;
|
|
56
|
-
-moz-osx-font-smoothing: grayscale;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
:where(body) {
|
|
60
|
-
min-height: 100vh;
|
|
61
|
-
font-size: 1rem;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
// #endregion
|
|
65
|
-
|
|
66
|
-
// #region General
|
|
67
|
-
|
|
68
|
-
:where(a) {
|
|
69
|
-
text-decoration-skip-ink: auto;
|
|
70
|
-
text-underline-offset: 0.125em;
|
|
71
|
-
text-underline-position: from-font;
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
:where(abbr[title], dfn[title]) {
|
|
75
|
-
cursor: help;
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
:where(abbr[title]) {
|
|
79
|
-
text-decoration: underline;
|
|
80
|
-
text-decoration: underline dotted;
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
:where(b, strong) {
|
|
84
|
-
font-weight: bold;
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
:where(button, h1, h2, h3, h4, h5, h6, input, label, legend) {
|
|
88
|
-
line-height: 1.125;
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
:where(
|
|
92
|
-
button,
|
|
93
|
-
input[type='button' i],
|
|
94
|
-
input[type='checkbox' i],
|
|
95
|
-
input[type='file' i],
|
|
96
|
-
input[type='image' i],
|
|
97
|
-
input[type='radio' i],
|
|
98
|
-
input[type='reset' i],
|
|
99
|
-
input[type='submit' i],
|
|
100
|
-
summary
|
|
101
|
-
) {
|
|
102
|
-
appearance: auto;
|
|
103
|
-
cursor: pointer;
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
:where(code, kbd, output, pre, samp) {
|
|
107
|
-
font-family: monospace, monospace;
|
|
108
|
-
font-size: inherit;
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
:where(details > summary:first-of-type) {
|
|
112
|
-
display: list-item;
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
:where(dialog) {
|
|
116
|
-
display: none !important;
|
|
117
|
-
overflow: visible;
|
|
118
|
-
overscroll-behavior: contain;
|
|
119
|
-
border: none;
|
|
120
|
-
color: currentcolor;
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
:where([oui-dialog][aria-modal='true' i]) {
|
|
124
|
-
position: fixed;
|
|
125
|
-
inset: 50% auto auto 50%;
|
|
126
|
-
transform: translate3d(-50%, -50%, 0);
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
:where(dialog[open]) {
|
|
130
|
-
display: inherit !important;
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
:where(dl, ol, ul) :where(dl, ol, ul) {
|
|
134
|
-
margin: 0;
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
:where(h1, h2, h3, h4, h5, h6) {
|
|
138
|
-
text-wrap: balance;
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
:where(h1) {
|
|
142
|
-
font-size: 2em;
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
:where(hr) {
|
|
146
|
-
height: 0;
|
|
147
|
-
overflow: visible;
|
|
148
|
-
border-style: solid;
|
|
149
|
-
border-width: 1px 0 0;
|
|
150
|
-
color: inherit;
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
:where(ins, u) {
|
|
154
|
-
text-decoration: none;
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
:where(nav) :where(ol, ul),
|
|
158
|
-
:where(ul[class]) {
|
|
159
|
-
list-style-type: none;
|
|
160
|
-
padding: 0;
|
|
161
|
-
}
|
|
162
|
-
|
|
163
|
-
:where(nav li)::before {
|
|
164
|
-
content: '\200B';
|
|
165
|
-
float: left;
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
:where(pre) {
|
|
169
|
-
overflow: auto;
|
|
170
|
-
white-space: pre-wrap;
|
|
171
|
-
}
|
|
172
|
-
|
|
173
|
-
:where(small, sub, sup) {
|
|
174
|
-
font-size: 0.875em;
|
|
175
|
-
}
|
|
176
|
-
|
|
177
|
-
:where(sub, sup) {
|
|
178
|
-
vertical-align: baseline;
|
|
179
|
-
line-height: 0;
|
|
180
|
-
position: relative;
|
|
181
|
-
}
|
|
182
|
-
|
|
183
|
-
:where(sub) {
|
|
184
|
-
bottom: -0.25em;
|
|
185
|
-
}
|
|
186
|
-
|
|
187
|
-
:where(sup) {
|
|
188
|
-
top: -0.5em;
|
|
189
|
-
}
|
|
190
|
-
|
|
191
|
-
:where(table) {
|
|
192
|
-
border-collapse: collapse;
|
|
193
|
-
border-color: currentcolor;
|
|
194
|
-
border-spacing: 0;
|
|
195
|
-
font-variant-numeric: tabular-nums;
|
|
196
|
-
text-indent: 0;
|
|
197
|
-
}
|
|
198
|
-
|
|
199
|
-
// #endregion
|
|
200
|
-
|
|
201
|
-
// #region Forms
|
|
202
|
-
|
|
203
|
-
:where(button, input, optgroup, select, textarea) {
|
|
204
|
-
font: inherit;
|
|
205
|
-
}
|
|
206
|
-
|
|
207
|
-
:where(button, input, select, textarea) {
|
|
208
|
-
padding: 0.25em 0.5em;
|
|
209
|
-
background-color: transparent;
|
|
210
|
-
border: 1px solid WindowFrame;
|
|
211
|
-
color: inherit;
|
|
212
|
-
letter-spacing: inherit;
|
|
213
|
-
}
|
|
214
|
-
|
|
215
|
-
:where(fieldset) {
|
|
216
|
-
border: 1px solid darkgrey;
|
|
217
|
-
}
|
|
218
|
-
|
|
219
|
-
:where(optgroup) {
|
|
220
|
-
font-weight: bold;
|
|
221
|
-
}
|
|
222
|
-
|
|
223
|
-
:where(progress) {
|
|
224
|
-
vertical-align: baseline;
|
|
225
|
-
}
|
|
226
|
-
|
|
227
|
-
:where(select, input[list]) {
|
|
228
|
-
appearance: none;
|
|
229
|
-
padding-right: 1.5em;
|
|
230
|
-
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");
|
|
231
|
-
background-position: right 0.5em center;
|
|
232
|
-
background-repeat: no-repeat;
|
|
233
|
-
border-radius: 0;
|
|
234
|
-
}
|
|
235
|
-
|
|
236
|
-
:where(select[multiple]) {
|
|
237
|
-
background-image: none;
|
|
238
|
-
}
|
|
239
|
-
|
|
240
|
-
:where(textarea) {
|
|
241
|
-
resize: vertical;
|
|
242
|
-
}
|
|
243
|
-
|
|
244
|
-
:where([type='color' i], [type='range' i]) {
|
|
245
|
-
padding: 0;
|
|
246
|
-
border-width: 0;
|
|
247
|
-
}
|
|
248
|
-
|
|
249
|
-
:where([type='search' i]) {
|
|
250
|
-
appearance: textfield;
|
|
251
|
-
outline-offset: -2px;
|
|
252
|
-
}
|
|
253
|
-
|
|
254
|
-
::file-selector-button {
|
|
255
|
-
appearance: auto;
|
|
256
|
-
color: inherit;
|
|
257
|
-
font: inherit;
|
|
258
|
-
line-height: 1.25;
|
|
259
|
-
}
|
|
260
|
-
|
|
261
|
-
::placeholder {
|
|
262
|
-
opacity: 0.67;
|
|
263
|
-
color: inherit;
|
|
264
|
-
}
|
|
265
|
-
|
|
266
|
-
::-webkit-inner-spin-button,
|
|
267
|
-
::-webkit-outer-spin-button {
|
|
268
|
-
height: auto;
|
|
269
|
-
}
|
|
270
|
-
|
|
271
|
-
::-webkit-search-decoration {
|
|
272
|
-
appearance: none;
|
|
273
|
-
}
|
|
274
|
-
|
|
275
|
-
// #endregion
|
|
276
|
-
|
|
277
|
-
// #region Media
|
|
278
|
-
|
|
279
|
-
:where(audio, canvas, embed, iframe, img, object, picture, svg, video) {
|
|
280
|
-
max-inline-size: 100%;
|
|
281
|
-
vertical-align: middle;
|
|
282
|
-
}
|
|
283
|
-
|
|
284
|
-
:where(audio, canvas, embed, iframe, img, object, svg, video) {
|
|
285
|
-
display: block;
|
|
286
|
-
}
|
|
287
|
-
|
|
288
|
-
:where(audio) {
|
|
289
|
-
width: 100%;
|
|
290
|
-
}
|
|
291
|
-
|
|
292
|
-
:where(audio:not([controls])) {
|
|
293
|
-
display: none;
|
|
294
|
-
}
|
|
295
|
-
|
|
296
|
-
:where(canvas, img, svg, video) {
|
|
297
|
-
block-size: auto;
|
|
298
|
-
}
|
|
299
|
-
|
|
300
|
-
:where(iframe) {
|
|
301
|
-
border-style: none;
|
|
302
|
-
}
|
|
303
|
-
|
|
304
|
-
:where(img) {
|
|
305
|
-
background-repeat: no-repeat;
|
|
306
|
-
background-size: cover;
|
|
307
|
-
outline: 1px solid light-dark(rgb(255 255 255 / 8%), rgb(0 0 0 / 8%));
|
|
308
|
-
font-style: italic;
|
|
309
|
-
}
|
|
310
|
-
|
|
311
|
-
:where(picture) {
|
|
312
|
-
display: contents;
|
|
313
|
-
}
|
|
314
|
-
|
|
315
|
-
:where(source) {
|
|
316
|
-
display: none;
|
|
317
|
-
}
|
|
318
|
-
|
|
319
|
-
:where(svg:not([fill])) {
|
|
320
|
-
fill: currentcolor;
|
|
321
|
-
}
|
|
322
|
-
|
|
323
|
-
// #endregion
|
|
324
|
-
|
|
325
|
-
// #region Attributes
|
|
326
|
-
|
|
327
|
-
:where([aria-busy='true' i]) {
|
|
328
|
-
cursor: progress;
|
|
329
|
-
}
|
|
330
|
-
|
|
331
|
-
:where([aria-controls]) {
|
|
332
|
-
cursor: pointer;
|
|
333
|
-
}
|
|
334
|
-
|
|
335
|
-
:where([disabled], [aria-disabled='true' i]) {
|
|
336
|
-
cursor: default;
|
|
337
|
-
}
|
|
338
|
-
|
|
339
|
-
[hidden] {
|
|
340
|
-
display: none !important;
|
|
341
|
-
}
|
|
342
|
-
|
|
343
|
-
:where([popover]) {
|
|
344
|
-
display: none !important;
|
|
345
|
-
overflow: visible;
|
|
346
|
-
overscroll-behavior: contain;
|
|
347
|
-
border: none;
|
|
348
|
-
color: currentcolor;
|
|
349
|
-
}
|
|
350
|
-
|
|
351
|
-
:where([popover]:popover-open) {
|
|
352
|
-
display: inherit !important;
|
|
353
|
-
}
|
|
354
|
-
|
|
355
|
-
// #endregion
|
|
356
|
-
|
|
357
|
-
// #region Pseudo-classes
|
|
358
|
-
|
|
359
|
-
:where(:target) {
|
|
360
|
-
scroll-margin: 2rlh;
|
|
361
|
-
}
|
|
362
|
-
|
|
363
|
-
// #endregion
|
|
364
|
-
|
|
365
|
-
// #region Media queries
|
|
366
|
-
|
|
367
|
-
@media (prefers-reduced-motion: no-preference) {
|
|
368
|
-
:where(:root) {
|
|
369
|
-
interpolate-size: allow-keywords;
|
|
370
|
-
}
|
|
371
|
-
|
|
372
|
-
:where(:root:focus-within) {
|
|
373
|
-
scroll-behavior: smooth;
|
|
374
|
-
}
|
|
375
|
-
}
|
|
376
|
-
|
|
377
|
-
@media (prefers-reduced-motion: reduce) {
|
|
378
|
-
:where(:root:focus-within) {
|
|
379
|
-
scroll-behavior: auto;
|
|
380
|
-
}
|
|
381
|
-
|
|
382
|
-
:where(*),
|
|
383
|
-
::after,
|
|
384
|
-
::before {
|
|
385
|
-
animation-duration: 0.01ms !important;
|
|
386
|
-
animation-iteration-count: 1 !important;
|
|
387
|
-
transition-duration: 0.01ms !important;
|
|
388
|
-
scroll-behavior: auto !important;
|
|
389
|
-
}
|
|
390
|
-
}
|
|
391
|
-
|
|
392
|
-
// #endregion
|
package/src/css/splitter.scss
DELETED
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
/*! https://github.com/oscarpalmer/oui */
|
|
2
|
-
|
|
3
|
-
oui-splitter {
|
|
4
|
-
:where(&) {
|
|
5
|
-
display: flex;
|
|
6
|
-
flex-flow: row nowrap;
|
|
7
|
-
flex: 1;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
:where(& > :first-child) {
|
|
11
|
-
flex: var(--oui-splitter-size, 0.5);
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
:where(& > :last-child) {
|
|
15
|
-
flex: calc(1 - var(--oui-splitter-size, 0.5));
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
:where([oui-splitter-separator]) {
|
|
20
|
-
width: 0.25rem;
|
|
21
|
-
background-color: rgb(0 0 0 / 10%);
|
|
22
|
-
border-radius: 0.25rem;
|
|
23
|
-
position: relative;
|
|
24
|
-
transition: background 0.125s ease-in-out;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
:where([oui-splitter-separator]:has([oui-splitter-handle]:focus-visible)),
|
|
28
|
-
:where([oui-splitter-separator]:has([oui-splitter-handle]:hover)),
|
|
29
|
-
:where([oui-splitter-separator][oui-splitter-active]) {
|
|
30
|
-
background-color: color-mix(in oklab, var(--oui-blue-6), transparent 82.5%);
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
:where([oui-splitter-handle]) {
|
|
34
|
-
width: 2rem;
|
|
35
|
-
height: 4rem;
|
|
36
|
-
padding: 0.875rem;
|
|
37
|
-
position: absolute;
|
|
38
|
-
inset: 50% auto auto 50%;
|
|
39
|
-
transform: translate3d(-50%, -50%, 0);
|
|
40
|
-
cursor: ew-resize;
|
|
41
|
-
|
|
42
|
-
&:focus {
|
|
43
|
-
outline: none;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
&::after {
|
|
47
|
-
content: '';
|
|
48
|
-
width: 100%;
|
|
49
|
-
height: 100%;
|
|
50
|
-
display: block;
|
|
51
|
-
background-color: rgb(0 0 0 / 25%);
|
|
52
|
-
outline: 0.25rem solid transparent;
|
|
53
|
-
outline-offset: 0.25rem;
|
|
54
|
-
border-radius: 0.25rem;
|
|
55
|
-
transition:
|
|
56
|
-
background 0.125s ease-in-out,
|
|
57
|
-
outline 0.125s ease-in-out;
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
:where([oui-splitter-handle]:focus-visible),
|
|
62
|
-
:where([oui-splitter-handle]:hover),
|
|
63
|
-
:where([oui-splitter-handle][oui-splitter-active]) {
|
|
64
|
-
&::after {
|
|
65
|
-
background-color: color-mix(in oklab, var(--oui-blue-6), transparent 50%);
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
:where([oui-splitter-handle]:focus-visible)::after {
|
|
70
|
-
outline-color: color-mix(in oklab, var(--oui-blue-6), transparent 50%);
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
oui-splitter[type='horizontal' i],
|
|
74
|
-
oui-splitter[oui-splitter-horizontal] {
|
|
75
|
-
:where(&) {
|
|
76
|
-
flex-flow: column nowrap;
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
:where(& [oui-splitter-separator]) {
|
|
80
|
-
width: 100%;
|
|
81
|
-
height: 0.25rem;
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
:where(& [oui-splitter-handle]) {
|
|
85
|
-
width: 4rem;
|
|
86
|
-
height: 2rem;
|
|
87
|
-
cursor: ns-resize;
|
|
88
|
-
}
|
|
89
|
-
}
|
package/src/css/table.scss
DELETED
|
@@ -1,107 +0,0 @@
|
|
|
1
|
-
/*! https://github.com/oscarpalmer/oui */
|
|
2
|
-
|
|
3
|
-
.oui-table {
|
|
4
|
-
:where(&) {
|
|
5
|
-
width: 100%;
|
|
6
|
-
background-color: var(--oui-absolute);
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
:where(&_wrapper) {
|
|
10
|
-
max-height: 32em;
|
|
11
|
-
overflow: auto;
|
|
12
|
-
overscroll-behavior: contain;
|
|
13
|
-
border: 1px solid var(--oui-gray-3);
|
|
14
|
-
border-radius: 0.25em;
|
|
15
|
-
position: relative;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
:where(& caption) {
|
|
19
|
-
height: 2rem;
|
|
20
|
-
align-content: center;
|
|
21
|
-
background-color: var(--oui-gray-1);
|
|
22
|
-
border: solid var(--oui-gray-3);
|
|
23
|
-
border-width: 0 0 1px;
|
|
24
|
-
font-size: 0.875rem;
|
|
25
|
-
text-align: left;
|
|
26
|
-
text-indent: 0.5rem;
|
|
27
|
-
position: sticky;
|
|
28
|
-
top: 0;
|
|
29
|
-
z-index: 2;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
:where(& tbody tr:nth-of-type(2n)) {
|
|
33
|
-
background-color: color-mix(in oklab, var(--oui-blue-0), transparent 50%);
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
:where(& th, & tfoot td) {
|
|
37
|
-
background-color: var(--oui-gray-1);
|
|
38
|
-
border: solid var(--oui-gray-3);
|
|
39
|
-
border-width: 0 1px 0 0;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
:where(& thead th, & tfoot td) {
|
|
43
|
-
position: sticky;
|
|
44
|
-
left: 0;
|
|
45
|
-
z-index: 1;
|
|
46
|
-
|
|
47
|
-
&::after {
|
|
48
|
-
content: '';
|
|
49
|
-
width: 100%;
|
|
50
|
-
height: 4px;
|
|
51
|
-
background-image: linear-gradient(
|
|
52
|
-
to var(--oui-shadow-direction),
|
|
53
|
-
rgb(0 0 0 / 10%),
|
|
54
|
-
transparent
|
|
55
|
-
);
|
|
56
|
-
position: absolute;
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
:where(& th, & td) {
|
|
61
|
-
padding: 0.5em 0.625rem;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
:where(& thead th) {
|
|
65
|
-
font-size: 0.75rem;
|
|
66
|
-
font-weight: bold;
|
|
67
|
-
letter-spacing: 0.1em;
|
|
68
|
-
text-align: left;
|
|
69
|
-
text-transform: uppercase;
|
|
70
|
-
top: 0;
|
|
71
|
-
|
|
72
|
-
&::after {
|
|
73
|
-
--oui-shadow-direction: bottom;
|
|
74
|
-
|
|
75
|
-
border-top: 1px solid var(--oui-gray-3);
|
|
76
|
-
inset: 100%;
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
:where(&:has(caption) thead th) {
|
|
81
|
-
top: 2rem;
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
:where(& tfoot td) {
|
|
85
|
-
bottom: 0;
|
|
86
|
-
|
|
87
|
-
&::after {
|
|
88
|
-
--oui-shadow-direction: top;
|
|
89
|
-
|
|
90
|
-
border-bottom: 1px solid var(--oui-gray-3);
|
|
91
|
-
inset: -4px;
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
:where(& tbody td) {
|
|
96
|
-
border: solid var(--oui-gray-3);
|
|
97
|
-
border-width: 0 1px 1px 0;
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
:where(& tbody tr:last-child td) {
|
|
101
|
-
border-bottom-width: 0;
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
:where(& tr th:last-child, & tr td:last-child) {
|
|
105
|
-
border-right-width: 0;
|
|
106
|
-
}
|
|
107
|
-
}
|
package/src/css/tabs.scss
DELETED
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
/*! https://github.com/oscarpalmer/oui */
|
|
2
|
-
|
|
3
|
-
@use './mixins/button.mixins.scss' as buttonMixins;
|
|
4
|
-
|
|
5
|
-
oui-tabs {
|
|
6
|
-
:where(&) {
|
|
7
|
-
display: flex;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
:where(&:not([orientation='horizontal' i])) {
|
|
11
|
-
flex-flow: column nowrap;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
:where(&[orientation='vertical' i]) {
|
|
15
|
-
flex-flow: row nowrap;
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
[oui-tabs-content] {
|
|
20
|
-
:where(&) {
|
|
21
|
-
padding: 1em;
|
|
22
|
-
flex: 1;
|
|
23
|
-
background-color: var(--oui-absolute);
|
|
24
|
-
border: 1px solid var(--oui-gray-3);
|
|
25
|
-
position: relative;
|
|
26
|
-
z-index: 0;
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
[oui-tabs-tab] {
|
|
31
|
-
:where(&) {
|
|
32
|
-
@include buttonMixins.button;
|
|
33
|
-
|
|
34
|
-
font-size: 0.75rem;
|
|
35
|
-
flex-shrink: 0;
|
|
36
|
-
align-self: flex-end;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
:where(&[aria-selected='true' i]) {
|
|
40
|
-
--oui-background-percentage: 80%;
|
|
41
|
-
|
|
42
|
-
box-shadow:
|
|
43
|
-
0 0 0 1px var(--oui-shadow-value),
|
|
44
|
-
inset 0 1px 2px -0.5px var(--oui-shadow-value),
|
|
45
|
-
inset 0 2px 4px -1px var(--oui-shadow-value);
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
[oui-tabs-tablist] {
|
|
50
|
-
:where(&) {
|
|
51
|
-
display: flex;
|
|
52
|
-
gap: 0.5em;
|
|
53
|
-
position: relative;
|
|
54
|
-
z-index: 0;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
:where(&:focus-within) {
|
|
58
|
-
z-index: 1;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
&[aria-orientation='horizontal' i] {
|
|
62
|
-
:where(&) {
|
|
63
|
-
margin: 0 0 0.5em;
|
|
64
|
-
flex-flow: row wrap;
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
&[aria-orientation='vertical' i] {
|
|
69
|
-
:where(&) {
|
|
70
|
-
margin: 0 0.5em 0 0;
|
|
71
|
-
flex-flow: column wrap;
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
}
|