@serendie/ui 0.1.16 → 0.2.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/LICENSE +21 -0
- package/README.md +51 -9
- package/dist/components/{Accordion.d.ts → Accordion/Accordion.d.ts} +2 -2
- package/dist/components/{Accordion.js → Accordion/Accordion.js} +10 -10
- package/dist/components/Accordion/index.d.ts +1 -0
- package/dist/components/AccordionGroup.js +4 -4
- package/dist/components/Avatar.js +4 -4
- package/dist/components/Badge.js +4 -4
- package/dist/components/Banner.js +4 -4
- package/dist/components/BottomNavigation.js +3 -3
- package/dist/components/BottomNavigationItem.js +4 -4
- package/dist/components/Button.js +7 -7
- package/dist/components/CheckBox.js +4 -4
- package/dist/components/ChoiceBox.js +10 -10
- package/dist/components/DashboardWidget.js +4 -4
- package/dist/components/Divider.js +4 -4
- package/dist/components/Drawer.js +4 -4
- package/dist/components/DropdownMenu.js +4 -4
- package/dist/components/IconButton.js +4 -4
- package/dist/components/ListItem.js +4 -4
- package/dist/components/ModalDialog.js +4 -4
- package/dist/components/NotificationBadge.js +4 -4
- package/dist/components/ProgressIndicator.js +4 -4
- package/dist/components/RadioButton.js +4 -4
- package/dist/components/Search.js +6 -6
- package/dist/components/Select.js +4 -4
- package/dist/components/Switch.js +4 -4
- package/dist/components/TabItem.js +4 -4
- package/dist/components/Tabs.js +4 -4
- package/dist/components/TextArea.js +4 -4
- package/dist/components/TextField.js +4 -4
- package/dist/components/Toast.js +3 -3
- package/dist/components/TopAppBar.js +4 -4
- package/dist/index.d.ts +1 -1
- package/dist/index.js +89 -89
- package/dist/node_modules/@ark-ui/react/dist/components/accordion/accordion-item-content.js +3 -4
- package/dist/node_modules/@ark-ui/react/dist/components/accordion/accordion-item-indicator.js +4 -5
- package/dist/node_modules/@ark-ui/react/dist/components/accordion/accordion-item-trigger.js +0 -1
- package/dist/node_modules/@ark-ui/react/dist/components/accordion/accordion-item.js +3 -4
- package/dist/node_modules/@ark-ui/react/dist/components/accordion/accordion-root.js +2 -3
- package/dist/node_modules/@ark-ui/react/dist/components/avatar/avatar-fallback.js +6 -7
- package/dist/node_modules/@ark-ui/react/dist/components/avatar/avatar-image.js +5 -6
- package/dist/node_modules/@ark-ui/react/dist/components/avatar/avatar-root.js +2 -3
- package/dist/node_modules/@ark-ui/react/dist/components/checkbox/checkbox-control.js +5 -6
- package/dist/node_modules/@ark-ui/react/dist/components/checkbox/checkbox-hidden-input.js +0 -1
- package/dist/node_modules/@ark-ui/react/dist/components/checkbox/checkbox-label.js +0 -1
- package/dist/node_modules/@ark-ui/react/dist/components/checkbox/checkbox-root.js +4 -5
- package/dist/node_modules/@ark-ui/react/dist/components/collapsible/collapsible-content.js +8 -9
- package/dist/node_modules/@ark-ui/react/dist/components/collapsible/collapsible-root.js +0 -1
- package/dist/node_modules/@ark-ui/react/dist/components/combobox/combobox-content.js +3 -4
- package/dist/node_modules/@ark-ui/react/dist/components/combobox/combobox-control.js +5 -6
- package/dist/node_modules/@ark-ui/react/dist/components/combobox/combobox-input.js +6 -7
- package/dist/node_modules/@ark-ui/react/dist/components/combobox/combobox-item-group.js +0 -1
- package/dist/node_modules/@ark-ui/react/dist/components/combobox/combobox-item-text.js +3 -4
- package/dist/node_modules/@ark-ui/react/dist/components/combobox/combobox-item.js +0 -1
- package/dist/node_modules/@ark-ui/react/dist/components/combobox/combobox-positioner.js +5 -6
- package/dist/node_modules/@ark-ui/react/dist/components/combobox/combobox-root.js +4 -5
- package/dist/node_modules/@ark-ui/react/dist/components/combobox/combobox-trigger.js +5 -6
- package/dist/node_modules/@ark-ui/react/dist/components/dialog/dialog-backdrop.js +4 -5
- package/dist/node_modules/@ark-ui/react/dist/components/dialog/dialog-close-trigger.js +5 -6
- package/dist/node_modules/@ark-ui/react/dist/components/dialog/dialog-content.js +0 -1
- package/dist/node_modules/@ark-ui/react/dist/components/dialog/dialog-description.js +0 -1
- package/dist/node_modules/@ark-ui/react/dist/components/dialog/dialog-positioner.js +5 -6
- package/dist/node_modules/@ark-ui/react/dist/components/dialog/dialog-root.js +4 -5
- package/dist/node_modules/@ark-ui/react/dist/components/dialog/dialog-title.js +0 -1
- package/dist/node_modules/@ark-ui/react/dist/components/menu/menu-content.js +3 -4
- package/dist/node_modules/@ark-ui/react/dist/components/menu/menu-item-group.js +0 -1
- package/dist/node_modules/@ark-ui/react/dist/components/menu/menu-item.js +2 -3
- package/dist/node_modules/@ark-ui/react/dist/components/menu/menu-positioner.js +3 -4
- package/dist/node_modules/@ark-ui/react/dist/components/menu/menu-root.js +2 -3
- package/dist/node_modules/@ark-ui/react/dist/components/menu/menu-trigger.js +3 -4
- package/dist/node_modules/@ark-ui/react/dist/components/radio-group/radio-group-item-control.js +3 -4
- package/dist/node_modules/@ark-ui/react/dist/components/radio-group/radio-group-item-hidden-input.js +0 -1
- package/dist/node_modules/@ark-ui/react/dist/components/radio-group/radio-group-item-text.js +4 -5
- package/dist/node_modules/@ark-ui/react/dist/components/radio-group/radio-group-item.js +3 -4
- package/dist/node_modules/@ark-ui/react/dist/components/radio-group/radio-group-root.js +3 -4
- package/dist/node_modules/@ark-ui/react/dist/components/select/select-content.js +3 -4
- package/dist/node_modules/@ark-ui/react/dist/components/select/select-control.js +6 -7
- package/dist/node_modules/@ark-ui/react/dist/components/select/select-item.js +0 -1
- package/dist/node_modules/@ark-ui/react/dist/components/select/select-label.js +4 -5
- package/dist/node_modules/@ark-ui/react/dist/components/select/select-positioner.js +4 -5
- package/dist/node_modules/@ark-ui/react/dist/components/select/select-root.js +7 -7
- package/dist/node_modules/@ark-ui/react/dist/components/select/select-trigger.js +5 -6
- package/dist/node_modules/@ark-ui/react/dist/components/select/select-value-text.js +5 -6
- package/dist/node_modules/@ark-ui/react/dist/components/select/use-select.js +35 -31
- package/dist/node_modules/@ark-ui/react/dist/components/switch/switch-control.js +4 -5
- package/dist/node_modules/@ark-ui/react/dist/components/switch/switch-hidden-input.js +4 -5
- package/dist/node_modules/@ark-ui/react/dist/components/switch/switch-label.js +4 -5
- package/dist/node_modules/@ark-ui/react/dist/components/switch/switch-root.js +8 -9
- package/dist/node_modules/@ark-ui/react/dist/components/switch/switch-thumb.js +4 -5
- package/dist/node_modules/@ark-ui/react/dist/components/tabs/tab-list.js +3 -4
- package/dist/node_modules/@ark-ui/react/dist/components/tabs/tab-trigger.js +3 -4
- package/dist/node_modules/@ark-ui/react/dist/components/tabs/tabs-root.js +10 -10
- package/dist/node_modules/@ark-ui/react/dist/components/toast/toast-root.js +0 -1
- package/dist/node_modules/@ark-ui/react/dist/components/toast/toast-title.js +0 -1
- package/dist/node_modules/@ark-ui/react/dist/components/toast/toaster.js +4 -4
- package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.js +361 -303
- package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +229 -216
- package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +19 -19
- package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +39 -38
- package/dist/node_modules/@serendie/design-token/dist/panda-tokens.js +823 -20
- package/dist/node_modules/@serendie/design-token/dist/tokens.js +346 -25
- package/dist/node_modules/@zag-js/accordion/dist/index.js +12 -12
- package/dist/node_modules/@zag-js/aria-hidden/dist/index.js +13 -62
- package/dist/node_modules/@zag-js/avatar/dist/index.js +12 -10
- package/dist/node_modules/@zag-js/checkbox/dist/index.js +99 -92
- package/dist/node_modules/@zag-js/collapsible/dist/index.js +5 -5
- package/dist/node_modules/@zag-js/collection/dist/index.js +21 -21
- package/dist/node_modules/@zag-js/combobox/dist/index.js +30 -31
- package/dist/node_modules/@zag-js/core/dist/index.js +285 -320
- package/dist/node_modules/@zag-js/dialog/dist/index.js +56 -62
- package/dist/node_modules/@zag-js/dismissable/dist/index.js +3 -3
- package/dist/node_modules/@zag-js/dom-event/dist/index.js +88 -115
- package/dist/node_modules/@zag-js/dom-query/dist/index.js +2 -2
- package/dist/node_modules/@zag-js/focus-visible/dist/index.js +73 -0
- package/dist/node_modules/@zag-js/interact-outside/dist/index.js +33 -33
- package/dist/node_modules/@zag-js/menu/dist/index.js +81 -77
- package/dist/node_modules/@zag-js/popper/dist/index.js +86 -79
- package/dist/node_modules/@zag-js/radio-group/dist/index.js +116 -109
- package/dist/node_modules/@zag-js/react/dist/index.js +44 -43
- package/dist/node_modules/@zag-js/select/dist/index.js +203 -231
- package/dist/node_modules/@zag-js/store/dist/index.js +110 -110
- package/dist/node_modules/@zag-js/switch/dist/index.js +62 -55
- package/dist/node_modules/@zag-js/tabs/dist/index.js +64 -61
- package/dist/node_modules/@zag-js/toast/dist/index.js +174 -173
- package/dist/node_modules/@zag-js/utils/dist/index.js +93 -71
- package/dist/node_modules/aria-hidden/dist/es2015/index.js +52 -0
- package/dist/node_modules/focus-trap/dist/focus-trap.esm.js +217 -219
- package/dist/preset.d.ts +807 -4
- package/dist/{ui/styled-system → styled-system}/css/css.js +5 -6
- package/dist/{ui/styled-system → styled-system}/css/cva.js +4 -4
- package/dist/{ui/styled-system → styled-system}/css/sva.js +3 -3
- package/dist/styled-system/jsx/is-valid-prop.js +6 -0
- package/dist/styles.css +1 -1
- package/dist/tokens/getToken.d.ts +324 -3
- package/dist/tokens/index.d.ts +806 -3
- package/package.json +31 -5
- package/styled-system/css/css.js +1 -1
- package/styled-system/jsx/is-valid-prop.js +1 -1
- package/styled-system/themes/theme-asagi.json +1 -1
- package/styled-system/themes/theme-kurikawa.json +1 -1
- package/styled-system/themes/theme-sumire.json +1 -1
- package/styled-system/themes/theme-tsutsuji.json +1 -1
- package/styled-system/tokens/index.js +1238 -54
- package/styled-system/tokens/tokens.d.ts +3 -3
- package/styled-system/types/conditions.d.ts +2 -2
- package/styled-system/types/prop-type.d.ts +1 -1
- package/dist/ui/styled-system/jsx/is-valid-prop.js +0 -6
- /package/dist/{ui/styled-system → styled-system}/css/conditions.js +0 -0
- /package/dist/{ui/styled-system → styled-system}/css/cx.js +0 -0
- /package/dist/{ui/styled-system → styled-system}/helpers.js +0 -0
- /package/dist/{ui/styled-system → styled-system}/jsx/box.js +0 -0
- /package/dist/{ui/styled-system → styled-system}/jsx/factory-helper.js +0 -0
- /package/dist/{ui/styled-system → styled-system}/jsx/factory.js +0 -0
- /package/dist/{ui/styled-system → styled-system}/patterns/box.js +0 -0
|
@@ -1,92 +1,114 @@
|
|
|
1
|
-
var
|
|
2
|
-
|
|
3
|
-
for (
|
|
4
|
-
|
|
1
|
+
var d = (t) => t[0], m = (t) => t[t.length - 1], l = (t, r) => t.indexOf(r) !== -1, a = (t, ...r) => t.concat(r), y = (t, r) => t.filter((e) => e !== r), k = (t, r) => l(t, r) ? y(t, r) : a(t, r);
|
|
2
|
+
function w(t) {
|
|
3
|
+
for (; t.length > 0; ) t.pop();
|
|
4
|
+
return t;
|
|
5
|
+
}
|
|
6
|
+
var c = (t) => (t == null ? void 0 : t.constructor.name) === "Array", p = (t, r) => {
|
|
7
|
+
if (t.length !== r.length) return !1;
|
|
8
|
+
for (let e = 0; e < t.length; e++)
|
|
9
|
+
if (!s(t[e], r[e])) return !1;
|
|
5
10
|
return !0;
|
|
6
|
-
},
|
|
7
|
-
if (Object.is(
|
|
8
|
-
if (
|
|
9
|
-
if (typeof (
|
|
10
|
-
return
|
|
11
|
-
if (typeof
|
|
12
|
-
return
|
|
13
|
-
if (
|
|
14
|
-
return
|
|
15
|
-
if (typeof
|
|
16
|
-
const e = Object.keys(
|
|
11
|
+
}, s = (t, r) => {
|
|
12
|
+
if (Object.is(t, r)) return !0;
|
|
13
|
+
if (t == null && r != null || t != null && r == null) return !1;
|
|
14
|
+
if (typeof (t == null ? void 0 : t.isEqual) == "function" && typeof (r == null ? void 0 : r.isEqual) == "function")
|
|
15
|
+
return t.isEqual(r);
|
|
16
|
+
if (typeof t == "function" && typeof r == "function")
|
|
17
|
+
return t.toString() === r.toString();
|
|
18
|
+
if (c(t) && c(r))
|
|
19
|
+
return p(Array.from(t), Array.from(r));
|
|
20
|
+
if (typeof t != "object" || typeof r != "object") return !1;
|
|
21
|
+
const e = Object.keys(r ?? /* @__PURE__ */ Object.create(null)), o = e.length;
|
|
17
22
|
for (let n = 0; n < o; n++)
|
|
18
|
-
if (!Reflect.has(
|
|
23
|
+
if (!Reflect.has(t, e[n])) return !1;
|
|
19
24
|
for (let n = 0; n < o; n++) {
|
|
20
25
|
const i = e[n];
|
|
21
|
-
if (!
|
|
26
|
+
if (!s(t[i], r[i])) return !1;
|
|
22
27
|
}
|
|
23
28
|
return !0;
|
|
24
|
-
},
|
|
25
|
-
},
|
|
26
|
-
|
|
27
|
-
e == null || e(...
|
|
29
|
+
}, A = (t, ...r) => (typeof t == "function" ? t(...r) : t) ?? void 0, P = (t) => t, q = () => {
|
|
30
|
+
}, b = (...t) => (...r) => {
|
|
31
|
+
t.forEach(function(e) {
|
|
32
|
+
e == null || e(...r);
|
|
28
33
|
});
|
|
29
|
-
},
|
|
30
|
-
let
|
|
31
|
-
return () => (
|
|
34
|
+
}, D = /* @__PURE__ */ (() => {
|
|
35
|
+
let t = 0;
|
|
36
|
+
return () => (t++, t.toString(36));
|
|
32
37
|
})();
|
|
33
|
-
function
|
|
38
|
+
function g(t, r, ...e) {
|
|
34
39
|
var n;
|
|
35
|
-
if (
|
|
36
|
-
const i = t
|
|
40
|
+
if (t in r) {
|
|
41
|
+
const i = r[t];
|
|
37
42
|
return typeof i == "function" ? i(...e) : i;
|
|
38
43
|
}
|
|
39
|
-
const o = new Error(`No matching key: ${JSON.stringify(
|
|
40
|
-
throw (n = Error.captureStackTrace) == null || n.call(Error, o,
|
|
44
|
+
const o = new Error(`No matching key: ${JSON.stringify(t)} in ${JSON.stringify(Object.keys(r))}`);
|
|
45
|
+
throw (n = Error.captureStackTrace) == null || n.call(Error, o, g), o;
|
|
41
46
|
}
|
|
42
|
-
var
|
|
43
|
-
|
|
44
|
-
const
|
|
45
|
-
|
|
46
|
-
|
|
47
|
+
var F = () => process.env.NODE_ENV !== "production", h = (t) => Array.isArray(t), K = (t) => t === !0 || t === !1, f = (t) => t != null && typeof t == "object", R = (t) => f(t) && !h(t), T = (t) => typeof t == "number" && !Number.isNaN(t), V = (t) => typeof t == "string", _ = (t) => typeof t == "function", x = (t) => t == null, O = (t, r) => Object.prototype.hasOwnProperty.call(t, r), v = (t) => Object.prototype.toString.call(t), u = Function.prototype.toString, j = u.call(Object), C = (t) => {
|
|
48
|
+
if (!f(t) || v(t) != "[object Object]") return !1;
|
|
49
|
+
const r = Object.getPrototypeOf(t);
|
|
50
|
+
if (r === null) return !0;
|
|
51
|
+
const e = O(r, "constructor") && r.constructor;
|
|
52
|
+
return typeof e == "function" && e instanceof e && u.call(e) == j;
|
|
53
|
+
};
|
|
54
|
+
function E(t, r) {
|
|
55
|
+
const e = {}, o = {}, n = new Set(r);
|
|
56
|
+
for (const i in t)
|
|
57
|
+
n.has(i) ? o[i] = t[i] : e[i] = t[i];
|
|
47
58
|
return [o, e];
|
|
48
59
|
}
|
|
49
|
-
var
|
|
50
|
-
return
|
|
60
|
+
var J = (t) => function(e) {
|
|
61
|
+
return E(e, t);
|
|
51
62
|
};
|
|
52
|
-
function
|
|
53
|
-
if (!
|
|
54
|
-
return
|
|
55
|
-
const
|
|
56
|
-
for (const o of
|
|
57
|
-
const n =
|
|
58
|
-
n !== void 0 && (e[o] =
|
|
63
|
+
function N(t) {
|
|
64
|
+
if (!S(t) || t === void 0)
|
|
65
|
+
return t;
|
|
66
|
+
const r = Reflect.ownKeys(t).filter((o) => typeof o == "string"), e = {};
|
|
67
|
+
for (const o of r) {
|
|
68
|
+
const n = t[o];
|
|
69
|
+
n !== void 0 && (e[o] = N(n));
|
|
59
70
|
}
|
|
60
71
|
return e;
|
|
61
72
|
}
|
|
62
|
-
var
|
|
63
|
-
function
|
|
64
|
-
const
|
|
65
|
-
(
|
|
73
|
+
var S = (t) => t && typeof t == "object" && t.constructor === Object;
|
|
74
|
+
function L(...t) {
|
|
75
|
+
const r = t.length === 1 ? t[0] : t[1];
|
|
76
|
+
(t.length === 2 ? t[0] : !0) && process.env.NODE_ENV !== "production" && console.warn(r);
|
|
77
|
+
}
|
|
78
|
+
function $(...t) {
|
|
79
|
+
const r = t.length === 1 ? t[0] : t[1];
|
|
80
|
+
if ((t.length === 2 ? t[0] : !0) && process.env.NODE_ENV !== "production")
|
|
81
|
+
throw new Error(r);
|
|
66
82
|
}
|
|
67
83
|
export {
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
m as
|
|
91
|
-
|
|
84
|
+
a as add,
|
|
85
|
+
k as addOrRemove,
|
|
86
|
+
b as callAll,
|
|
87
|
+
P as cast,
|
|
88
|
+
w as clear,
|
|
89
|
+
N as compact,
|
|
90
|
+
J as createSplitProps,
|
|
91
|
+
d as first,
|
|
92
|
+
l as has,
|
|
93
|
+
O as hasProp,
|
|
94
|
+
$ as invariant,
|
|
95
|
+
h as isArray,
|
|
96
|
+
K as isBoolean,
|
|
97
|
+
F as isDev,
|
|
98
|
+
s as isEqual,
|
|
99
|
+
_ as isFunction,
|
|
100
|
+
x as isNull,
|
|
101
|
+
T as isNumber,
|
|
102
|
+
R as isObject,
|
|
103
|
+
f as isObjectLike,
|
|
104
|
+
C as isPlainObject,
|
|
105
|
+
V as isString,
|
|
106
|
+
m as last,
|
|
107
|
+
g as match,
|
|
108
|
+
q as noop,
|
|
109
|
+
y as remove,
|
|
110
|
+
A as runIfFn,
|
|
111
|
+
E as splitProps,
|
|
112
|
+
D as uuid,
|
|
113
|
+
L as warn
|
|
92
114
|
};
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
var S = function(r) {
|
|
2
|
+
if (typeof document > "u")
|
|
3
|
+
return null;
|
|
4
|
+
var u = Array.isArray(r) ? r[0] : r;
|
|
5
|
+
return u.ownerDocument.body;
|
|
6
|
+
}, f = /* @__PURE__ */ new WeakMap(), v = /* @__PURE__ */ new WeakMap(), p = {}, h = 0, W = function(r) {
|
|
7
|
+
return r && (r.host || W(r.parentNode));
|
|
8
|
+
}, D = function(r, u) {
|
|
9
|
+
return u.map(function(e) {
|
|
10
|
+
if (r.contains(e))
|
|
11
|
+
return e;
|
|
12
|
+
var n = W(e);
|
|
13
|
+
return n && r.contains(n) ? n : (console.error("aria-hidden", e, "in not contained inside", r, ". Doing nothing"), null);
|
|
14
|
+
}).filter(function(e) {
|
|
15
|
+
return !!e;
|
|
16
|
+
});
|
|
17
|
+
}, E = function(r, u, e, n) {
|
|
18
|
+
var i = D(u, Array.isArray(r) ? r : [r]);
|
|
19
|
+
p[e] || (p[e] = /* @__PURE__ */ new WeakMap());
|
|
20
|
+
var o = p[e], l = [], s = /* @__PURE__ */ new Set(), b = new Set(i), y = function(t) {
|
|
21
|
+
!t || s.has(t) || (s.add(t), y(t.parentNode));
|
|
22
|
+
};
|
|
23
|
+
i.forEach(y);
|
|
24
|
+
var A = function(t) {
|
|
25
|
+
!t || b.has(t) || Array.prototype.forEach.call(t.children, function(a) {
|
|
26
|
+
if (s.has(a))
|
|
27
|
+
A(a);
|
|
28
|
+
else
|
|
29
|
+
try {
|
|
30
|
+
var c = a.getAttribute(n), w = c !== null && c !== "false", d = (f.get(a) || 0) + 1, M = (o.get(a) || 0) + 1;
|
|
31
|
+
f.set(a, d), o.set(a, M), l.push(a), d === 1 && w && v.set(a, !0), M === 1 && a.setAttribute(e, "true"), w || a.setAttribute(n, "true");
|
|
32
|
+
} catch (k) {
|
|
33
|
+
console.error("aria-hidden: cannot operate on ", a, k);
|
|
34
|
+
}
|
|
35
|
+
});
|
|
36
|
+
};
|
|
37
|
+
return A(u), s.clear(), h++, function() {
|
|
38
|
+
l.forEach(function(t) {
|
|
39
|
+
var a = f.get(t) - 1, c = o.get(t) - 1;
|
|
40
|
+
f.set(t, a), o.set(t, c), a || (v.has(t) || t.removeAttribute(n), v.delete(t)), c || t.removeAttribute(e);
|
|
41
|
+
}), h--, h || (f = /* @__PURE__ */ new WeakMap(), f = /* @__PURE__ */ new WeakMap(), v = /* @__PURE__ */ new WeakMap(), p = {});
|
|
42
|
+
};
|
|
43
|
+
}, C = function(r, u, e) {
|
|
44
|
+
e === void 0 && (e = "data-aria-hidden");
|
|
45
|
+
var n = Array.from(Array.isArray(r) ? r : [r]), i = S(r);
|
|
46
|
+
return i ? (n.push.apply(n, Array.from(i.querySelectorAll("[aria-live]"))), E(n, i, e, "aria-hidden")) : function() {
|
|
47
|
+
return null;
|
|
48
|
+
};
|
|
49
|
+
};
|
|
50
|
+
export {
|
|
51
|
+
C as hideOthers
|
|
52
|
+
};
|