inclusive-elements 0.3.3 → 0.3.4
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/inclusive-elements.js +6 -18
- package/package.json +6 -6
|
@@ -70,9 +70,7 @@ const w = class extends HTMLElement {
|
|
|
70
70
|
return;
|
|
71
71
|
}
|
|
72
72
|
k(this.children, () => {
|
|
73
|
-
d(t
|
|
74
|
-
finish: () => this.removeChild(t)
|
|
75
|
-
});
|
|
73
|
+
d(t).then(() => this.removeChild(t));
|
|
76
74
|
}), this.clearTimeout(t);
|
|
77
75
|
}
|
|
78
76
|
clear() {
|
|
@@ -141,9 +139,7 @@ class P extends HTMLElement {
|
|
|
141
139
|
this.content.hidden && (this.content.hidden = !1, h(this.content), this.button.setAttribute("aria-expanded", "true"), this.dispatchEvent(new Event("open")));
|
|
142
140
|
}
|
|
143
141
|
wasClosed() {
|
|
144
|
-
this.content.hidden || (this.button.setAttribute("aria-expanded", "false"), d(this.content,
|
|
145
|
-
finish: () => this.content.hidden = !0
|
|
146
|
-
}), this.dispatchEvent(new Event("close")));
|
|
142
|
+
this.content.hidden || (this.button.setAttribute("aria-expanded", "false"), d(this.content).then(() => this.content.hidden = !0), this.dispatchEvent(new Event("close")));
|
|
147
143
|
}
|
|
148
144
|
get button() {
|
|
149
145
|
return this.querySelector("button, [role=button]");
|
|
@@ -251,9 +247,7 @@ const u = class extends HTMLElement {
|
|
|
251
247
|
}
|
|
252
248
|
wasClosed() {
|
|
253
249
|
var t;
|
|
254
|
-
(t = this.focusTrap) == null || t.deactivate(), d(this,
|
|
255
|
-
finish: () => this.hidden = !0
|
|
256
|
-
}), this.dispatchEvent(new Event("close"));
|
|
250
|
+
(t = this.focusTrap) == null || t.deactivate(), d(this).then(() => this.hidden = !0), this.dispatchEvent(new Event("close"));
|
|
257
251
|
}
|
|
258
252
|
get backdrop() {
|
|
259
253
|
var t;
|
|
@@ -358,11 +352,7 @@ class $ extends HTMLElement {
|
|
|
358
352
|
}
|
|
359
353
|
wasClosed() {
|
|
360
354
|
var t;
|
|
361
|
-
this.content.hidden || (this.button.setAttribute("aria-expanded", "false"), (t = this.cleanup) == null || t.call(this), d(this.backdrop,
|
|
362
|
-
finish: () => this.backdrop.hidden = !0
|
|
363
|
-
}), d(this.content, {
|
|
364
|
-
finish: () => this.content.hidden = !0
|
|
365
|
-
}), this.dispatchEvent(new Event("close")));
|
|
355
|
+
this.content.hidden || (this.button.setAttribute("aria-expanded", "false"), (t = this.cleanup) == null || t.call(this), d(this.backdrop).then(() => this.backdrop.hidden = !0), d(this.content).then(() => this.content.hidden = !0), this.dispatchEvent(new Event("close")));
|
|
366
356
|
}
|
|
367
357
|
get backdrop() {
|
|
368
358
|
var t;
|
|
@@ -457,10 +447,8 @@ const l = class extends HTMLElement {
|
|
|
457
447
|
});
|
|
458
448
|
}
|
|
459
449
|
hide() {
|
|
460
|
-
clearTimeout(this.timeout), this.showing && (this.showing = !1, d(this.tooltip
|
|
461
|
-
|
|
462
|
-
this.tooltip && (this.tooltip.hidden = !0);
|
|
463
|
-
}
|
|
450
|
+
clearTimeout(this.timeout), this.showing && (this.showing = !1, d(this.tooltip).then(() => {
|
|
451
|
+
this.tooltip && (this.tooltip.hidden = !0);
|
|
464
452
|
}));
|
|
465
453
|
}
|
|
466
454
|
afterDelay(t) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "inclusive-elements",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.4",
|
|
4
4
|
"description": "Accessible, lightweight, unstyled implementations of common UI controls.",
|
|
5
5
|
"module": "dist/inclusive-elements.js",
|
|
6
6
|
"type": "module",
|
|
@@ -18,17 +18,17 @@
|
|
|
18
18
|
"release": "release-it"
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@floating-ui/dom": "^1.2.
|
|
21
|
+
"@floating-ui/dom": "^1.2.5",
|
|
22
22
|
"focus-trap": "^6.9.4",
|
|
23
|
-
"hello-goodbye": "^0.
|
|
23
|
+
"hello-goodbye": "^0.2.0",
|
|
24
24
|
"tabbable": "^5.3.3"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
27
|
"@release-it/conventional-changelog": "^5.1.1",
|
|
28
|
-
"prettier": "^2.8.
|
|
29
|
-
"release-it": "^15.9.
|
|
28
|
+
"prettier": "^2.8.6",
|
|
29
|
+
"release-it": "^15.9.1",
|
|
30
30
|
"typescript": "^5.0.2",
|
|
31
|
-
"vite": "^4.2.
|
|
31
|
+
"vite": "^4.2.1"
|
|
32
32
|
},
|
|
33
33
|
"release-it": {
|
|
34
34
|
"git": {
|