vrembem 3.0.11 → 4.0.0-alpha.1
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/LICENSE +21 -0
- package/dev/scripts.esm.js +244 -234
- package/dev/scripts.esm.js.map +1 -1
- package/dev/scripts.js +244 -234
- package/dev/scripts.js.map +1 -1
- package/dev/scripts.modern.mjs +22 -12
- package/dev/scripts.modern.mjs.map +1 -1
- package/dev/scripts.umd.js +244 -234
- package/dev/scripts.umd.js.map +1 -1
- package/dev/styles.css +768 -1299
- package/dev/styles.css.map +1 -1
- package/dist/scripts.esm.js +1 -1
- package/dist/scripts.esm.js.map +1 -1
- package/dist/scripts.js +1 -1
- package/dist/scripts.js.map +1 -1
- package/dist/scripts.modern.mjs +1 -1
- package/dist/scripts.modern.mjs.map +1 -1
- package/dist/scripts.umd.js +1 -1
- package/dist/scripts.umd.js.map +1 -1
- package/dist/styles.css +1 -1
- package/dist/styles.css.map +1 -1
- package/index.scss +1 -4
- package/package.json +24 -26
package/dev/scripts.modern.mjs
CHANGED
|
@@ -132,19 +132,29 @@ class Collection {
|
|
|
132
132
|
}
|
|
133
133
|
}
|
|
134
134
|
|
|
135
|
+
const not = {
|
|
136
|
+
inert: ':not([inert]):not([inert] *)',
|
|
137
|
+
negTabIndex: ':not([tabindex^="-"])',
|
|
138
|
+
disabled: ':not(:disabled)',
|
|
139
|
+
};
|
|
140
|
+
|
|
135
141
|
var e = [
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
142
|
+
`a[href]${not.inert}${not.negTabIndex}`,
|
|
143
|
+
`area[href]${not.inert}${not.negTabIndex}`,
|
|
144
|
+
`input:not([type="hidden"]):not([type="radio"])${not.inert}${not.negTabIndex}${not.disabled}`,
|
|
145
|
+
`input[type="radio"]${not.inert}${not.negTabIndex}${not.disabled}`,
|
|
146
|
+
`select${not.inert}${not.negTabIndex}${not.disabled}`,
|
|
147
|
+
`textarea${not.inert}${not.negTabIndex}${not.disabled}`,
|
|
148
|
+
`button${not.inert}${not.negTabIndex}${not.disabled}`,
|
|
149
|
+
`details${not.inert} > summary:first-of-type${not.negTabIndex}`,
|
|
150
|
+
// Discard until Firefox supports `:has()`
|
|
151
|
+
// See: https://github.com/KittyGiraudel/focusable-selectors/issues/12
|
|
152
|
+
// `details:not(:has(> summary))${not.inert}${not.negTabIndex}`,
|
|
153
|
+
`iframe${not.inert}${not.negTabIndex}`,
|
|
154
|
+
`audio[controls]${not.inert}${not.negTabIndex}`,
|
|
155
|
+
`video[controls]${not.inert}${not.negTabIndex}`,
|
|
156
|
+
`[contenteditable]${not.inert}${not.negTabIndex}`,
|
|
157
|
+
`[tabindex]${not.inert}${not.negTabIndex}`,
|
|
148
158
|
];
|
|
149
159
|
|
|
150
160
|
var _focusable = /*#__PURE__*/_classPrivateFieldLooseKey("focusable");
|