@serendie/ui 2.0.0 → 2.1.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/components/CheckBox/CheckBox.js +36 -35
- package/dist/components/ChoiceBox/ChoiceBox.js +41 -41
- package/dist/components/DataTable/DataTableComponent.d.ts +3 -20
- package/dist/components/DataTable/DataTableComponent.js +38 -36
- package/dist/components/DataTable/table/HeaderCheckbox.js +29 -19
- package/dist/components/Search/Search.d.ts +3 -1
- package/dist/components/Search/Search.js +34 -33
- package/dist/components/Select/Select.d.ts +2 -1
- package/dist/components/Select/Select.js +47 -41
- package/dist/components/Tooltip/Tooltip.d.ts +14 -0
- package/dist/components/Tooltip/Tooltip.js +70 -0
- package/dist/components/Tooltip/index.d.ts +1 -0
- package/dist/components/Tooltip/index.js +4 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +12 -10
- package/dist/node_modules/@ark-ui/react/dist/components/accordion/accordion-item-content.js +4 -6
- package/dist/node_modules/@ark-ui/react/dist/components/accordion/accordion-item-indicator.js +4 -6
- package/dist/node_modules/@ark-ui/react/dist/components/accordion/accordion-item-trigger.js +10 -12
- package/dist/node_modules/@ark-ui/react/dist/components/accordion/accordion-item.js +16 -16
- package/dist/node_modules/@ark-ui/react/dist/components/accordion/use-accordion.js +13 -20
- package/dist/node_modules/@ark-ui/react/dist/components/avatar/avatar-root.js +1 -5
- package/dist/node_modules/@ark-ui/react/dist/components/avatar/use-avatar.js +14 -18
- package/dist/node_modules/@ark-ui/react/dist/components/checkbox/checkbox-hidden-input.js +4 -6
- package/dist/node_modules/@ark-ui/react/dist/components/checkbox/use-checkbox.js +22 -28
- package/dist/node_modules/@ark-ui/react/dist/components/collapsible/collapsible-content.js +7 -9
- package/dist/node_modules/@ark-ui/react/dist/components/collapsible/use-collapsible.js +14 -21
- package/dist/node_modules/@ark-ui/react/dist/components/collection/list-collection.js +5 -0
- package/dist/node_modules/@ark-ui/react/dist/components/combobox/combobox-content.js +9 -8
- package/dist/node_modules/@ark-ui/react/dist/components/combobox/combobox-item-group.js +4 -6
- package/dist/node_modules/@ark-ui/react/dist/components/combobox/combobox-positioner.js +4 -6
- package/dist/node_modules/@ark-ui/react/dist/components/combobox/combobox-root.js +17 -18
- package/dist/node_modules/@ark-ui/react/dist/components/combobox/combobox-trigger.js +10 -9
- package/dist/node_modules/@ark-ui/react/dist/components/combobox/use-combobox-item-context.js +5 -7
- package/dist/node_modules/@ark-ui/react/dist/components/combobox/use-combobox.js +21 -45
- package/dist/node_modules/@ark-ui/react/dist/components/dialog/dialog-backdrop.js +10 -9
- package/dist/node_modules/@ark-ui/react/dist/components/dialog/dialog-close-trigger.js +4 -6
- package/dist/node_modules/@ark-ui/react/dist/components/dialog/dialog-content.js +6 -5
- package/dist/node_modules/@ark-ui/react/dist/components/dialog/dialog-description.js +4 -6
- package/dist/node_modules/@ark-ui/react/dist/components/dialog/use-dialog.js +13 -22
- package/dist/node_modules/@ark-ui/react/dist/components/factory.js +26 -24
- package/dist/node_modules/@ark-ui/react/dist/components/menu/menu-content.js +9 -8
- package/dist/node_modules/@ark-ui/react/dist/components/menu/menu-item-group.js +1 -3
- package/dist/node_modules/@ark-ui/react/dist/components/menu/menu-item.js +15 -13
- package/dist/node_modules/@ark-ui/react/dist/components/menu/menu-root.js +13 -14
- package/dist/node_modules/@ark-ui/react/dist/components/menu/use-menu-option-item-props-context.js +10 -0
- package/dist/node_modules/@ark-ui/react/dist/components/menu/use-menu.js +14 -21
- package/dist/node_modules/@ark-ui/react/dist/components/pagination/pagination-ellipsis.js +4 -6
- package/dist/node_modules/@ark-ui/react/dist/components/pagination/pagination-next-trigger.js +4 -6
- package/dist/node_modules/@ark-ui/react/dist/components/pagination/pagination-prev-trigger.js +4 -6
- package/dist/node_modules/@ark-ui/react/dist/components/pagination/pagination-root.js +5 -4
- package/dist/node_modules/@ark-ui/react/dist/components/pagination/use-pagination.js +13 -19
- package/dist/node_modules/@ark-ui/react/dist/components/portal/portal.js +25 -16
- package/dist/node_modules/@ark-ui/react/dist/components/presence/split-presence-props.js +3 -2
- package/dist/node_modules/@ark-ui/react/dist/components/presence/use-presence.js +18 -18
- package/dist/node_modules/@ark-ui/react/dist/components/radio-group/radio-group-item-control.js +4 -6
- package/dist/node_modules/@ark-ui/react/dist/components/radio-group/radio-group-item-text.js +4 -6
- package/dist/node_modules/@ark-ui/react/dist/components/radio-group/radio-group-item.js +1 -5
- package/dist/node_modules/@ark-ui/react/dist/components/radio-group/use-radio-group.js +14 -22
- package/dist/node_modules/@ark-ui/react/dist/components/select/select-content.js +9 -8
- package/dist/node_modules/@ark-ui/react/dist/components/select/select-root.js +11 -12
- package/dist/node_modules/@ark-ui/react/dist/components/select/use-select.js +20 -47
- package/dist/node_modules/@ark-ui/react/dist/components/switch/switch-hidden-input.js +4 -6
- package/dist/node_modules/@ark-ui/react/dist/components/switch/use-switch.js +20 -26
- package/dist/node_modules/@ark-ui/react/dist/components/tabs/tabs-root.js +9 -8
- package/dist/node_modules/@ark-ui/react/dist/components/tabs/use-tabs.js +14 -21
- package/dist/node_modules/@ark-ui/react/dist/components/toast/create-toaster.js +3 -7
- package/dist/node_modules/@ark-ui/react/dist/components/toast/toaster.js +28 -15
- package/dist/node_modules/@ark-ui/react/dist/components/tooltip/tooltip-arrow-tip.js +13 -0
- package/dist/node_modules/@ark-ui/react/dist/components/tooltip/tooltip-arrow.js +13 -0
- package/dist/node_modules/@ark-ui/react/dist/components/tooltip/tooltip-content.js +15 -0
- package/dist/node_modules/@ark-ui/react/dist/components/tooltip/tooltip-positioner.js +14 -0
- package/dist/node_modules/@ark-ui/react/dist/components/tooltip/tooltip-root.js +14 -0
- package/dist/node_modules/@ark-ui/react/dist/components/tooltip/tooltip-trigger.js +13 -0
- package/dist/node_modules/@ark-ui/react/dist/components/tooltip/use-tooltip-context.js +10 -0
- package/dist/node_modules/@ark-ui/react/dist/components/tooltip/use-tooltip.js +17 -0
- package/dist/node_modules/@ark-ui/react/dist/utils/compose-refs.js +13 -7
- package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.js +92 -90
- package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +230 -216
- package/dist/node_modules/@zag-js/accordion/dist/index.js +210 -227
- package/dist/node_modules/@zag-js/aria-hidden/dist/index.js +49 -12
- package/dist/node_modules/@zag-js/avatar/dist/index.js +119 -134
- package/dist/node_modules/@zag-js/checkbox/dist/index.js +196 -197
- package/dist/node_modules/@zag-js/collapsible/dist/index.js +250 -198
- package/dist/node_modules/@zag-js/collection/dist/index.js +172 -179
- package/dist/node_modules/@zag-js/combobox/dist/index.js +1176 -1082
- package/dist/node_modules/@zag-js/core/dist/index.js +77 -496
- package/dist/node_modules/@zag-js/dialog/dist/index.js +243 -270
- package/dist/node_modules/@zag-js/dismissable/dist/index.js +62 -60
- package/dist/node_modules/@zag-js/dom-query/dist/index.js +465 -253
- package/dist/node_modules/@zag-js/focus-trap/dist/index.js +307 -0
- package/dist/node_modules/@zag-js/focus-visible/dist/index.js +48 -47
- package/dist/node_modules/@zag-js/interact-outside/dist/index.js +112 -80
- package/dist/node_modules/@zag-js/menu/dist/index.js +998 -884
- package/dist/node_modules/@zag-js/pagination/dist/index.js +207 -213
- package/dist/node_modules/@zag-js/popper/dist/index.js +130 -129
- package/dist/node_modules/@zag-js/presence/dist/index.js +139 -122
- package/dist/node_modules/@zag-js/radio-group/dist/index.js +297 -302
- package/dist/node_modules/@zag-js/react/dist/index.js +255 -103
- package/dist/node_modules/@zag-js/remove-scroll/dist/index.js +18 -31
- package/dist/node_modules/@zag-js/select/dist/index.js +889 -885
- package/dist/node_modules/@zag-js/store/dist/index.js +98 -137
- package/dist/node_modules/@zag-js/switch/dist/index.js +199 -191
- package/dist/node_modules/@zag-js/tabs/dist/index.js +383 -386
- package/dist/node_modules/@zag-js/toast/dist/index.js +646 -633
- package/dist/node_modules/@zag-js/tooltip/dist/index.js +459 -0
- package/dist/node_modules/@zag-js/types/dist/index.js +6 -6
- package/dist/node_modules/@zag-js/utils/dist/index.js +112 -99
- package/dist/node_modules/proxy-compare/dist/index.js +4 -106
- package/dist/styles.css +1 -1
- package/package.json +5 -5
- package/dist/node_modules/@ark-ui/react/dist/utils/use-is-server.js +0 -10
- package/dist/node_modules/@zag-js/dom-event/dist/index.js +0 -130
- package/dist/node_modules/@zag-js/element-rect/dist/index.js +0 -32
- package/dist/node_modules/@zag-js/form-utils/dist/index.js +0 -51
- package/dist/node_modules/aria-hidden/dist/es2015/index.js +0 -52
- package/dist/node_modules/focus-trap/dist/focus-trap.esm.js +0 -431
- package/dist/node_modules/klona/full/index.js +0 -21
- package/dist/node_modules/tabbable/dist/index.esm.js +0 -202
|
@@ -1,114 +1,127 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
for (; t.length > 0; ) t.pop();
|
|
4
|
-
return t;
|
|
1
|
+
function w(r) {
|
|
2
|
+
return r == null ? [] : Array.isArray(r) ? r : [r];
|
|
5
3
|
}
|
|
6
|
-
var
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
4
|
+
var k = (r) => r[0], S = (r) => r[r.length - 1], a = (r, t) => r.indexOf(t) !== -1, y = (r, ...t) => r.concat(t), p = (r, ...t) => r.filter((n) => !t.includes(n)), q = (r, t) => a(r, t) ? p(r, t) : y(r, t);
|
|
5
|
+
function f(r, t, n = {}) {
|
|
6
|
+
const { step: o = 1, loop: e = !0 } = n, i = t + o, s = r.length, u = s - 1;
|
|
7
|
+
return t === -1 ? o > 0 ? 0 : u : i < 0 ? e ? u : 0 : i >= s ? e ? 0 : t > s ? s : t : i;
|
|
8
|
+
}
|
|
9
|
+
function F(r, t, n = {}) {
|
|
10
|
+
return r[f(r, t, n)];
|
|
11
|
+
}
|
|
12
|
+
function g(r, t, n = {}) {
|
|
13
|
+
const { step: o = 1, loop: e = !0 } = n;
|
|
14
|
+
return f(r, t, { step: -o, loop: e });
|
|
15
|
+
}
|
|
16
|
+
function N(r, t, n = {}) {
|
|
17
|
+
return r[g(r, t, n)];
|
|
18
|
+
}
|
|
19
|
+
var c = (r) => (r == null ? void 0 : r.constructor.name) === "Array", h = (r, t) => {
|
|
20
|
+
if (r.length !== t.length) return !1;
|
|
21
|
+
for (let n = 0; n < r.length; n++)
|
|
22
|
+
if (!l(r[n], t[n])) return !1;
|
|
10
23
|
return !0;
|
|
11
|
-
},
|
|
12
|
-
if (Object.is(
|
|
13
|
-
if (
|
|
14
|
-
if (typeof (
|
|
15
|
-
return
|
|
16
|
-
if (typeof
|
|
17
|
-
return
|
|
18
|
-
if (c(
|
|
19
|
-
return
|
|
20
|
-
if (typeof
|
|
21
|
-
const
|
|
22
|
-
for (let
|
|
23
|
-
if (!Reflect.has(
|
|
24
|
-
for (let
|
|
25
|
-
const i = e
|
|
26
|
-
if (!
|
|
24
|
+
}, l = (r, t) => {
|
|
25
|
+
if (Object.is(r, t)) return !0;
|
|
26
|
+
if (r == null && t != null || r != null && t == null) return !1;
|
|
27
|
+
if (typeof (r == null ? void 0 : r.isEqual) == "function" && typeof (t == null ? void 0 : t.isEqual) == "function")
|
|
28
|
+
return r.isEqual(t);
|
|
29
|
+
if (typeof r == "function" && typeof t == "function")
|
|
30
|
+
return r.toString() === t.toString();
|
|
31
|
+
if (c(r) && c(t))
|
|
32
|
+
return h(Array.from(r), Array.from(t));
|
|
33
|
+
if (typeof r != "object" || typeof t != "object") return !1;
|
|
34
|
+
const n = Object.keys(t ?? /* @__PURE__ */ Object.create(null)), o = n.length;
|
|
35
|
+
for (let e = 0; e < o; e++)
|
|
36
|
+
if (!Reflect.has(r, n[e])) return !1;
|
|
37
|
+
for (let e = 0; e < o; e++) {
|
|
38
|
+
const i = n[e];
|
|
39
|
+
if (!l(r[i], t[i])) return !1;
|
|
27
40
|
}
|
|
28
41
|
return !0;
|
|
29
|
-
},
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
42
|
+
}, m = (r) => Array.isArray(r), $ = (r) => r === !0 || r === !1, O = (r) => r != null && typeof r == "object", x = (r) => O(r) && !m(r), K = (r) => typeof r == "string", d = (r) => typeof r == "function", P = (r) => r == null, R = (r, t) => Object.prototype.hasOwnProperty.call(r, t), v = Function.prototype.toString;
|
|
43
|
+
v.call(Object);
|
|
44
|
+
var I = (r, ...t) => (typeof r == "function" ? r(...t) : r) ?? void 0, T = (r) => r, J = (r) => r(), L = () => {
|
|
45
|
+
}, z = (...r) => (...t) => {
|
|
46
|
+
r.forEach(function(n) {
|
|
47
|
+
n == null || n(...t);
|
|
33
48
|
});
|
|
34
|
-
},
|
|
35
|
-
let
|
|
36
|
-
return () => (
|
|
49
|
+
}, B = /* @__PURE__ */ (() => {
|
|
50
|
+
let r = 0;
|
|
51
|
+
return () => (r++, r.toString(36));
|
|
37
52
|
})();
|
|
38
|
-
function
|
|
39
|
-
var
|
|
40
|
-
if (
|
|
41
|
-
const i = r
|
|
42
|
-
return
|
|
53
|
+
function A(r, t, ...n) {
|
|
54
|
+
var e;
|
|
55
|
+
if (r in t) {
|
|
56
|
+
const i = t[r];
|
|
57
|
+
return d(i) ? i(...n) : i;
|
|
43
58
|
}
|
|
44
|
-
const o = new Error(`No matching key: ${JSON.stringify(
|
|
45
|
-
throw (
|
|
59
|
+
const o = new Error(`No matching key: ${JSON.stringify(r)} in ${JSON.stringify(Object.keys(t))}`);
|
|
60
|
+
throw (e = Error.captureStackTrace) == null || e.call(Error, o, A), o;
|
|
46
61
|
}
|
|
47
|
-
|
|
48
|
-
if (!
|
|
49
|
-
const
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
}
|
|
54
|
-
|
|
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];
|
|
58
|
-
return [o, e];
|
|
62
|
+
function j(r) {
|
|
63
|
+
if (!E(r) || r === void 0) return r;
|
|
64
|
+
const t = Reflect.ownKeys(r).filter((o) => typeof o == "string"), n = {};
|
|
65
|
+
for (const o of t) {
|
|
66
|
+
const e = r[o];
|
|
67
|
+
e !== void 0 && (n[o] = j(e));
|
|
68
|
+
}
|
|
69
|
+
return n;
|
|
59
70
|
}
|
|
60
|
-
var
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
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));
|
|
71
|
+
var E = (r) => r && typeof r == "object" && r.constructor === Object;
|
|
72
|
+
function D(r, t) {
|
|
73
|
+
const n = performance.now();
|
|
74
|
+
let o;
|
|
75
|
+
function e(i) {
|
|
76
|
+
o = requestAnimationFrame(e), i - n >= t && r();
|
|
70
77
|
}
|
|
71
|
-
return e;
|
|
78
|
+
return o = requestAnimationFrame(e), () => cancelAnimationFrame(o);
|
|
79
|
+
}
|
|
80
|
+
function V(...r) {
|
|
81
|
+
const t = r.length === 1 ? r[0] : r[1];
|
|
82
|
+
(r.length === 2 ? r[0] : !0) && process.env.NODE_ENV !== "production" && console.warn(t);
|
|
72
83
|
}
|
|
73
|
-
|
|
74
|
-
|
|
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);
|
|
84
|
+
function _(r, t) {
|
|
85
|
+
if (r == null) throw new Error(t());
|
|
77
86
|
}
|
|
78
|
-
function
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
87
|
+
function C(r, t, n) {
|
|
88
|
+
let o = [];
|
|
89
|
+
for (const e of t)
|
|
90
|
+
r[e] == null && o.push(e);
|
|
91
|
+
if (o.length > 0)
|
|
92
|
+
throw new Error(`[zag-js${` > ${n}`}] missing required props: ${o.join(", ")}`);
|
|
82
93
|
}
|
|
83
94
|
export {
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
x as
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
D as
|
|
113
|
-
|
|
95
|
+
y as add,
|
|
96
|
+
q as addOrRemove,
|
|
97
|
+
z as callAll,
|
|
98
|
+
T as cast,
|
|
99
|
+
j as compact,
|
|
100
|
+
_ as ensure,
|
|
101
|
+
C as ensureProps,
|
|
102
|
+
k as first,
|
|
103
|
+
a as has,
|
|
104
|
+
R as hasProp,
|
|
105
|
+
J as identity,
|
|
106
|
+
m as isArray,
|
|
107
|
+
$ as isBoolean,
|
|
108
|
+
l as isEqual,
|
|
109
|
+
d as isFunction,
|
|
110
|
+
P as isNull,
|
|
111
|
+
x as isObject,
|
|
112
|
+
O as isObjectLike,
|
|
113
|
+
K as isString,
|
|
114
|
+
S as last,
|
|
115
|
+
A as match,
|
|
116
|
+
F as next,
|
|
117
|
+
f as nextIndex,
|
|
118
|
+
L as noop,
|
|
119
|
+
N as prev,
|
|
120
|
+
g as prevIndex,
|
|
121
|
+
p as remove,
|
|
122
|
+
I as runIfFn,
|
|
123
|
+
D as setRafTimeout,
|
|
124
|
+
w as toArray,
|
|
125
|
+
B as uuid,
|
|
126
|
+
V as warn
|
|
114
127
|
};
|
|
@@ -1,109 +1,7 @@
|
|
|
1
|
-
const
|
|
2
|
-
|
|
3
|
-
const E = Object.getPrototypeOf, g = /* @__PURE__ */ new WeakMap(), S = (t) => t && (g.has(t) ? g.get(t) : E(t) === Object.prototype || E(t) === Array.prototype), y = (t) => typeof t == "object" && t !== null, H = (t) => Object.values(Object.getOwnPropertyDescriptors(t)).some((r) => !r.configurable && !r.writable), N = (t) => {
|
|
4
|
-
if (Array.isArray(t))
|
|
5
|
-
return Array.from(t);
|
|
6
|
-
const r = Object.getOwnPropertyDescriptors(t);
|
|
7
|
-
return Object.values(r).forEach((s) => {
|
|
8
|
-
s.configurable = !0;
|
|
9
|
-
}), Object.create(E(t), r);
|
|
10
|
-
}, G = (t, r) => {
|
|
11
|
-
const s = {
|
|
12
|
-
[d]: r
|
|
13
|
-
};
|
|
14
|
-
let o = !1;
|
|
15
|
-
const l = (e, c) => {
|
|
16
|
-
if (!o) {
|
|
17
|
-
let i = s[u].get(t);
|
|
18
|
-
if (i || (i = {}, s[u].set(t, i)), e === R)
|
|
19
|
-
i[R] = !0;
|
|
20
|
-
else {
|
|
21
|
-
let P = i[e];
|
|
22
|
-
P || (P = /* @__PURE__ */ new Set(), i[e] = P), P.add(c);
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
}, f = () => {
|
|
26
|
-
o = !0, s[u].delete(t);
|
|
27
|
-
}, n = {
|
|
28
|
-
get(e, c) {
|
|
29
|
-
return c === O ? t : (l(p, c), L(Reflect.get(e, c), s[u], s[A], s[Y]));
|
|
30
|
-
},
|
|
31
|
-
has(e, c) {
|
|
32
|
-
return c === k ? (f(), !0) : (l(w, c), Reflect.has(e, c));
|
|
33
|
-
},
|
|
34
|
-
getOwnPropertyDescriptor(e, c) {
|
|
35
|
-
return l(K, c), Reflect.getOwnPropertyDescriptor(e, c);
|
|
36
|
-
},
|
|
37
|
-
ownKeys(e) {
|
|
38
|
-
return l(R), Reflect.ownKeys(e);
|
|
39
|
-
}
|
|
40
|
-
};
|
|
41
|
-
return r && (n.set = n.deleteProperty = () => !1), [n, s];
|
|
42
|
-
}, D = (t) => (
|
|
43
|
-
// unwrap proxy
|
|
44
|
-
t[O] || // otherwise
|
|
45
|
-
t
|
|
46
|
-
), L = (t, r, s, o) => {
|
|
47
|
-
if (!S(t))
|
|
48
|
-
return t;
|
|
49
|
-
let l = o && o.get(t);
|
|
50
|
-
if (!l) {
|
|
51
|
-
const c = D(t);
|
|
52
|
-
H(c) ? l = [c, N(c)] : l = [c], o == null || o.set(t, l);
|
|
53
|
-
}
|
|
54
|
-
const [f, n] = l;
|
|
55
|
-
let e = s && s.get(f);
|
|
56
|
-
return (!e || e[1][d] !== !!n) && (e = G(f, !!n), e[1][_] = m(n || f, e[0]), s && s.set(f, e)), e[1][u] = r, e[1][A] = s, e[1][Y] = o, e[1][_];
|
|
57
|
-
}, M = (t, r) => {
|
|
58
|
-
const s = Reflect.ownKeys(t), o = Reflect.ownKeys(r);
|
|
59
|
-
return s.length !== o.length || s.some((l, f) => l !== o[f]);
|
|
60
|
-
}, I = (t, r, s, o, l = Object.is) => {
|
|
61
|
-
if (l(t, r))
|
|
62
|
-
return !1;
|
|
63
|
-
if (!y(t) || !y(r))
|
|
64
|
-
return !0;
|
|
65
|
-
const f = s.get(D(t));
|
|
66
|
-
if (!f)
|
|
67
|
-
return !0;
|
|
68
|
-
if (o) {
|
|
69
|
-
const e = o.get(t);
|
|
70
|
-
if (e && e[a] === r)
|
|
71
|
-
return e[T];
|
|
72
|
-
o.set(t, {
|
|
73
|
-
[a]: r,
|
|
74
|
-
[T]: !1
|
|
75
|
-
});
|
|
76
|
-
}
|
|
77
|
-
let n = null;
|
|
78
|
-
try {
|
|
79
|
-
for (const e of f[w] || [])
|
|
80
|
-
if (n = Reflect.has(t, e) !== Reflect.has(r, e), n)
|
|
81
|
-
return n;
|
|
82
|
-
if (f[R] === !0) {
|
|
83
|
-
if (n = M(t, r), n)
|
|
84
|
-
return n;
|
|
85
|
-
} else
|
|
86
|
-
for (const e of f[K] || []) {
|
|
87
|
-
const c = !!Reflect.getOwnPropertyDescriptor(t, e), i = !!Reflect.getOwnPropertyDescriptor(r, e);
|
|
88
|
-
if (n = c !== i, n)
|
|
89
|
-
return n;
|
|
90
|
-
}
|
|
91
|
-
for (const e of f[p] || [])
|
|
92
|
-
if (n = I(t[e], r[e], s, o, l), n)
|
|
93
|
-
return n;
|
|
94
|
-
return n === null && (n = !0), n;
|
|
95
|
-
} finally {
|
|
96
|
-
o && o.set(t, {
|
|
97
|
-
[a]: r,
|
|
98
|
-
[T]: n
|
|
99
|
-
});
|
|
100
|
-
}
|
|
101
|
-
}, h = (t) => S(t) && t[O] || null, B = (t, r = !0) => {
|
|
102
|
-
g.set(t, r);
|
|
1
|
+
const c = Symbol(), r = Object.getPrototypeOf, e = /* @__PURE__ */ new WeakMap(), n = (t) => t && (e.has(t) ? e.get(t) : r(t) === Object.prototype || r(t) === Array.prototype), s = (t) => n(t) && t[c] || null, a = (t, o = !0) => {
|
|
2
|
+
e.set(t, o);
|
|
103
3
|
};
|
|
104
4
|
export {
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
I as isChanged,
|
|
108
|
-
B as markToTrack
|
|
5
|
+
s as getUntracked,
|
|
6
|
+
a as markToTrack
|
|
109
7
|
};
|