@anoki/fse-ui 1.0.535 → 1.0.536
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/index.cjs105.js +1 -1
- package/dist/index.cjs105.js.map +1 -1
- package/dist/index.cjs210.js +1 -1
- package/dist/index.cjs214.js +1 -1
- package/dist/index.cjs221.js +1 -1
- package/dist/index.cjs232.js +1 -1
- package/dist/index.cjs239.js +1 -1
- package/dist/index.cjs244.js +1 -1
- package/dist/index.cjs251.js +1 -1
- package/dist/index.cjs259.js +1 -1
- package/dist/index.cjs298.js +1 -1
- package/dist/index.cjs332.js +1 -1
- package/dist/index.cjs332.js.map +1 -1
- package/dist/index.cjs341.js +1 -1
- package/dist/index.cjs341.js.map +1 -1
- package/dist/{index.cjs329.js → index.cjs342.js} +1 -1
- package/dist/{index.cjs329.js.map → index.cjs342.js.map} +1 -1
- package/dist/{index.cjs330.js → index.cjs343.js} +1 -1
- package/dist/{index.cjs330.js.map → index.cjs343.js.map} +1 -1
- package/dist/index.cjs344.js +1 -1
- package/dist/index.cjs344.js.map +1 -1
- package/dist/index.cjs345.js +1 -1
- package/dist/index.cjs345.js.map +1 -1
- package/dist/index.cjs346.js +1 -1
- package/dist/index.cjs346.js.map +1 -1
- package/dist/index.cjs347.js +1 -1
- package/dist/index.cjs347.js.map +1 -1
- package/dist/index.cjs348.js +1 -1
- package/dist/index.cjs348.js.map +1 -1
- package/dist/index.cjs349.js +1 -1
- package/dist/index.cjs349.js.map +1 -1
- package/dist/index.cjs350.js +1 -1
- package/dist/index.cjs350.js.map +1 -1
- package/dist/index.cjs351.js +1 -1
- package/dist/index.cjs351.js.map +1 -1
- package/dist/index.cjs352.js +1 -1
- package/dist/index.cjs352.js.map +1 -1
- package/dist/index.cjs353.js +1 -1
- package/dist/index.cjs353.js.map +1 -1
- package/dist/index.cjs354.js +1 -1
- package/dist/index.cjs354.js.map +1 -1
- package/dist/index.cjs358.js +1 -1
- package/dist/index.cjs358.js.map +1 -1
- package/dist/index.cjs359.js +1 -1
- package/dist/index.cjs359.js.map +1 -1
- package/dist/index.cjs360.js +1 -1
- package/dist/index.cjs360.js.map +1 -1
- package/dist/index.cjs361.js +1 -1
- package/dist/index.cjs361.js.map +1 -1
- package/dist/index.cjs362.js +1 -1
- package/dist/index.cjs362.js.map +1 -1
- package/dist/index.cjs366.js +1 -1
- package/dist/index.cjs366.js.map +1 -1
- package/dist/index.cjs367.js +1 -1
- package/dist/index.cjs367.js.map +1 -1
- package/dist/index.cjs368.js +1 -1
- package/dist/index.cjs368.js.map +1 -1
- package/dist/index.cjs370.js +1 -1
- package/dist/index.cjs370.js.map +1 -1
- package/dist/index.cjs371.js +2 -0
- package/dist/index.cjs371.js.map +1 -0
- package/dist/index.cjs372.js +2 -0
- package/dist/index.cjs372.js.map +1 -0
- package/dist/{index.cjs369.js → index.cjs373.js} +2 -2
- package/dist/{index.cjs369.js.map → index.cjs373.js.map} +1 -1
- package/dist/index.cjs374.js +2 -0
- package/dist/index.cjs374.js.map +1 -0
- package/dist/index.cjs375.js +2 -0
- package/dist/index.cjs375.js.map +1 -0
- package/dist/index.cjs376.js +2 -0
- package/dist/index.cjs376.js.map +1 -0
- package/dist/index.cjs377.js +39 -0
- package/dist/index.cjs377.js.map +1 -0
- package/dist/index.cjs378.js +2 -0
- package/dist/index.cjs378.js.map +1 -0
- package/dist/index.cjs379.js +1 -38
- package/dist/index.cjs379.js.map +1 -1
- package/dist/index.cjs380.js +1 -1
- package/dist/index.cjs380.js.map +1 -1
- package/dist/index.cjs381.js +1 -1
- package/dist/index.cjs381.js.map +1 -1
- package/dist/index.cjs382.js +1 -1
- package/dist/index.cjs382.js.map +1 -1
- package/dist/index.cjs383.js +1 -1
- package/dist/index.cjs383.js.map +1 -1
- package/dist/index.cjs384.js +2 -0
- package/dist/index.cjs384.js.map +1 -0
- package/dist/index.cjs385.js +2 -0
- package/dist/index.cjs385.js.map +1 -0
- package/dist/index.cjs386.js +2 -0
- package/dist/index.cjs386.js.map +1 -0
- package/dist/{index.cjs357.js → index.cjs387.js} +2 -2
- package/dist/{index.cjs357.js.map → index.cjs387.js.map} +1 -1
- package/dist/index.cjs388.js +2 -0
- package/dist/index.cjs388.js.map +1 -0
- package/dist/index.cjs389.js +2 -0
- package/dist/index.cjs389.js.map +1 -0
- package/dist/index.cjs390.js +2 -0
- package/dist/index.cjs390.js.map +1 -0
- package/dist/index.cjs391.js +1 -1
- package/dist/index.cjs391.js.map +1 -1
- package/dist/index.cjs392.js +1 -1
- package/dist/index.cjs392.js.map +1 -1
- package/dist/index.cjs393.js +1 -1
- package/dist/index.cjs393.js.map +1 -1
- package/dist/index.cjs394.js +1 -1
- package/dist/index.cjs394.js.map +1 -1
- package/dist/index.cjs395.js +1 -1
- package/dist/index.cjs395.js.map +1 -1
- package/dist/index.cjs396.js +1 -1
- package/dist/index.cjs396.js.map +1 -1
- package/dist/index.cjs406.js +1 -1
- package/dist/index.es105.js +13 -13
- package/dist/index.es105.js.map +1 -1
- package/dist/index.es210.js +7 -7
- package/dist/index.es214.js +1 -1
- package/dist/index.es221.js +8 -8
- package/dist/index.es232.js +14 -14
- package/dist/index.es239.js +1 -1
- package/dist/index.es244.js +1 -1
- package/dist/index.es251.js +1 -1
- package/dist/index.es259.js +7 -7
- package/dist/index.es298.js +4 -4
- package/dist/index.es332.js +15 -30
- package/dist/index.es332.js.map +1 -1
- package/dist/index.es341.js +7 -15
- package/dist/index.es341.js.map +1 -1
- package/dist/{index.es329.js → index.es342.js} +1 -1
- package/dist/{index.es329.js.map → index.es342.js.map} +1 -1
- package/dist/{index.es330.js → index.es343.js} +1 -1
- package/dist/{index.es330.js.map → index.es343.js.map} +1 -1
- package/dist/index.es344.js +10 -621
- package/dist/index.es344.js.map +1 -1
- package/dist/index.es345.js +29 -10
- package/dist/index.es345.js.map +1 -1
- package/dist/index.es346.js +123 -44
- package/dist/index.es346.js.map +1 -1
- package/dist/index.es347.js +134 -7
- package/dist/index.es347.js.map +1 -1
- package/dist/index.es348.js +13 -124
- package/dist/index.es348.js.map +1 -1
- package/dist/index.es349.js +67 -13
- package/dist/index.es349.js.map +1 -1
- package/dist/index.es350.js +31 -133
- package/dist/index.es350.js.map +1 -1
- package/dist/index.es351.js +13 -216
- package/dist/index.es351.js.map +1 -1
- package/dist/index.es352.js +7 -12
- package/dist/index.es352.js.map +1 -1
- package/dist/index.es353.js +48 -176
- package/dist/index.es353.js.map +1 -1
- package/dist/index.es354.js +52 -49
- package/dist/index.es354.js.map +1 -1
- package/dist/index.es358.js +6 -22
- package/dist/index.es358.js.map +1 -1
- package/dist/index.es359.js +23 -391
- package/dist/index.es359.js.map +1 -1
- package/dist/index.es360.js +3 -24
- package/dist/index.es360.js.map +1 -1
- package/dist/index.es361.js +11 -29
- package/dist/index.es361.js.map +1 -1
- package/dist/index.es362.js +12 -5
- package/dist/index.es362.js.map +1 -1
- package/dist/index.es366.js +25 -5
- package/dist/index.es366.js.map +1 -1
- package/dist/index.es367.js +29 -3
- package/dist/index.es367.js.map +1 -1
- package/dist/index.es368.js +5 -24
- package/dist/index.es368.js.map +1 -1
- package/dist/index.es370.js +5 -16
- package/dist/index.es370.js.map +1 -1
- package/dist/index.es371.js +6 -0
- package/dist/index.es371.js.map +1 -0
- package/dist/index.es372.js +27 -0
- package/dist/index.es372.js.map +1 -0
- package/dist/{index.es369.js → index.es373.js} +6 -6
- package/dist/{index.es369.js.map → index.es373.js.map} +1 -1
- package/dist/index.es374.js +19 -0
- package/dist/index.es374.js.map +1 -0
- package/dist/index.es375.js +625 -0
- package/dist/index.es375.js.map +1 -0
- package/dist/index.es376.js +68 -0
- package/dist/index.es376.js.map +1 -0
- package/dist/index.es377.js +72 -0
- package/dist/index.es377.js.map +1 -0
- package/dist/index.es378.js +12 -0
- package/dist/index.es378.js.map +1 -0
- package/dist/index.es379.js +13 -68
- package/dist/index.es379.js.map +1 -1
- package/dist/index.es380.js +61 -8
- package/dist/index.es380.js.map +1 -1
- package/dist/index.es381.js +45 -13
- package/dist/index.es381.js.map +1 -1
- package/dist/index.es382.js +8 -62
- package/dist/index.es382.js.map +1 -1
- package/dist/index.es383.js +213 -60
- package/dist/index.es383.js.map +1 -1
- package/dist/index.es384.js +181 -0
- package/dist/index.es384.js.map +1 -0
- package/dist/index.es385.js +7 -0
- package/dist/index.es385.js.map +1 -0
- package/dist/index.es386.js +26 -0
- package/dist/index.es386.js.map +1 -0
- package/dist/{index.es357.js → index.es387.js} +3 -3
- package/dist/{index.es357.js.map → index.es387.js.map} +1 -1
- package/dist/index.es388.js +25 -0
- package/dist/index.es388.js.map +1 -0
- package/dist/index.es389.js +396 -0
- package/dist/index.es389.js.map +1 -0
- package/dist/index.es390.js +26 -0
- package/dist/index.es390.js.map +1 -0
- package/dist/index.es391.js +13 -4
- package/dist/index.es391.js.map +1 -1
- package/dist/index.es392.js +27 -22
- package/dist/index.es392.js.map +1 -1
- package/dist/index.es393.js +4 -22
- package/dist/index.es393.js.map +1 -1
- package/dist/index.es394.js +520 -10
- package/dist/index.es394.js.map +1 -1
- package/dist/index.es395.js +125 -26
- package/dist/index.es395.js.map +1 -1
- package/dist/index.es396.js +129 -5
- package/dist/index.es396.js.map +1 -1
- package/dist/index.es406.js +8 -8
- package/package.json +1 -1
- package/dist/index.cjs331.js +0 -2
- package/dist/index.cjs331.js.map +0 -1
- package/dist/index.cjs333.js +0 -2
- package/dist/index.cjs333.js.map +0 -1
- package/dist/index.cjs334.js +0 -2
- package/dist/index.cjs334.js.map +0 -1
- package/dist/index.cjs335.js +0 -2
- package/dist/index.cjs335.js.map +0 -1
- package/dist/index.cjs336.js +0 -2
- package/dist/index.cjs336.js.map +0 -1
- package/dist/index.cjs337.js +0 -2
- package/dist/index.cjs337.js.map +0 -1
- package/dist/index.cjs338.js +0 -2
- package/dist/index.cjs338.js.map +0 -1
- package/dist/index.cjs339.js +0 -2
- package/dist/index.cjs339.js.map +0 -1
- package/dist/index.cjs355.js +0 -2
- package/dist/index.cjs355.js.map +0 -1
- package/dist/index.cjs356.js +0 -2
- package/dist/index.cjs356.js.map +0 -1
- package/dist/index.cjs363.js +0 -2
- package/dist/index.cjs363.js.map +0 -1
- package/dist/index.cjs364.js +0 -2
- package/dist/index.cjs364.js.map +0 -1
- package/dist/index.cjs365.js +0 -2
- package/dist/index.cjs365.js.map +0 -1
- package/dist/index.es331.js +0 -10
- package/dist/index.es331.js.map +0 -1
- package/dist/index.es333.js +0 -9
- package/dist/index.es333.js.map +0 -1
- package/dist/index.es334.js +0 -28
- package/dist/index.es334.js.map +0 -1
- package/dist/index.es335.js +0 -72
- package/dist/index.es335.js.map +0 -1
- package/dist/index.es336.js +0 -36
- package/dist/index.es336.js.map +0 -1
- package/dist/index.es337.js +0 -14
- package/dist/index.es337.js.map +0 -1
- package/dist/index.es338.js +0 -7
- package/dist/index.es338.js.map +0 -1
- package/dist/index.es339.js +0 -56
- package/dist/index.es339.js.map +0 -1
- package/dist/index.es355.js +0 -12
- package/dist/index.es355.js.map +0 -1
- package/dist/index.es356.js +0 -15
- package/dist/index.es356.js.map +0 -1
- package/dist/index.es363.js +0 -526
- package/dist/index.es363.js.map +0 -1
- package/dist/index.es364.js +0 -130
- package/dist/index.es364.js.map +0 -1
- package/dist/index.es365.js +0 -132
- package/dist/index.es365.js.map +0 -1
- /package/dist/components/ui/{ConsentModal/ConsentModalFooter/ConsentModalFooter.css → DoctorModal/DoctorModalFooter/DoctorModalFooter.css} +0 -0
package/dist/index.es354.js
CHANGED
@@ -1,53 +1,56 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
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;
|
1
|
+
import * as l from "react";
|
2
|
+
import { composeRefs as y } from "./index.es342.js";
|
3
|
+
import { j as f } from "./index.es182.js";
|
4
|
+
// @__NO_SIDE_EFFECTS__
|
5
|
+
function b(e) {
|
6
|
+
const t = /* @__PURE__ */ S(e), o = l.forwardRef((n, r) => {
|
7
|
+
const { children: i, ...a } = n, s = l.Children.toArray(i), p = s.find(g);
|
8
|
+
if (p) {
|
9
|
+
const c = p.props.children, m = s.map((u) => u === p ? l.Children.count(c) > 1 ? l.Children.only(null) : l.isValidElement(c) ? c.props.children : null : u);
|
10
|
+
return /* @__PURE__ */ f.jsx(t, { ...a, ref: r, children: l.isValidElement(c) ? l.cloneElement(c, void 0, m) : null });
|
11
|
+
}
|
12
|
+
return /* @__PURE__ */ f.jsx(t, { ...a, ref: r, children: i });
|
16
13
|
});
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
};
|
49
|
-
}
|
14
|
+
return o.displayName = `${e}.Slot`, o;
|
15
|
+
}
|
16
|
+
// @__NO_SIDE_EFFECTS__
|
17
|
+
function S(e) {
|
18
|
+
const t = l.forwardRef((o, n) => {
|
19
|
+
const { children: r, ...i } = o;
|
20
|
+
if (l.isValidElement(r)) {
|
21
|
+
const a = x(r), s = E(i, r.props);
|
22
|
+
return r.type !== l.Fragment && (s.ref = n ? y(n, a) : a), l.cloneElement(r, s);
|
23
|
+
}
|
24
|
+
return l.Children.count(r) > 1 ? l.Children.only(null) : null;
|
25
|
+
});
|
26
|
+
return t.displayName = `${e}.SlotClone`, t;
|
27
|
+
}
|
28
|
+
var d = Symbol("radix.slottable");
|
29
|
+
// @__NO_SIDE_EFFECTS__
|
30
|
+
function h(e) {
|
31
|
+
const t = ({ children: o }) => /* @__PURE__ */ f.jsx(f.Fragment, { children: o });
|
32
|
+
return t.displayName = `${e}.Slottable`, t.__radixId = d, t;
|
33
|
+
}
|
34
|
+
function g(e) {
|
35
|
+
return l.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === d;
|
36
|
+
}
|
37
|
+
function E(e, t) {
|
38
|
+
const o = { ...t };
|
39
|
+
for (const n in t) {
|
40
|
+
const r = e[n], i = t[n];
|
41
|
+
/^on[A-Z]/.test(n) ? r && i ? o[n] = (...s) => {
|
42
|
+
i(...s), r(...s);
|
43
|
+
} : r && (o[n] = r) : n === "style" ? o[n] = { ...r, ...i } : n === "className" && (o[n] = [r, i].filter(Boolean).join(" "));
|
44
|
+
}
|
45
|
+
return { ...e, ...o };
|
46
|
+
}
|
47
|
+
function x(e) {
|
48
|
+
var n, r;
|
49
|
+
let t = (n = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : n.get, o = t && "isReactWarning" in t && t.isReactWarning;
|
50
|
+
return o ? e.ref : (t = (r = Object.getOwnPropertyDescriptor(e, "ref")) == null ? void 0 : r.get, o = t && "isReactWarning" in t && t.isReactWarning, o ? e.props.ref : e.props.ref || e.ref);
|
51
|
+
}
|
50
52
|
export {
|
51
|
-
|
53
|
+
b as createSlot,
|
54
|
+
h as createSlottable
|
52
55
|
};
|
53
56
|
//# sourceMappingURL=index.es354.js.map
|
package/dist/index.es354.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.es354.js","sources":["../node_modules/aria-hidden/dist/es2015/index.js"],"sourcesContent":["var getDefaultParent = function (originalTarget) {\n if (typeof document === 'undefined') {\n return null;\n }\n var sampleTarget = Array.isArray(originalTarget) ? originalTarget[0] : originalTarget;\n return sampleTarget.ownerDocument.body;\n};\nvar counterMap = new WeakMap();\nvar uncontrolledNodes = new WeakMap();\nvar markerMap = {};\nvar lockCount = 0;\nvar unwrapHost = function (node) {\n return node && (node.host || unwrapHost(node.parentNode));\n};\nvar correctTargets = function (parent, targets) {\n return targets\n .map(function (target) {\n if (parent.contains(target)) {\n return target;\n }\n var correctedTarget = unwrapHost(target);\n if (correctedTarget && parent.contains(correctedTarget)) {\n return correctedTarget;\n }\n console.error('aria-hidden', target, 'in not contained inside', parent, '. Doing nothing');\n return null;\n })\n .filter(function (x) { return Boolean(x); });\n};\n/**\n * Marks everything except given node(or nodes) as aria-hidden\n * @param {Element | Element[]} originalTarget - elements to keep on the page\n * @param [parentNode] - top element, defaults to document.body\n * @param {String} [markerName] - a special attribute to mark every node\n * @param {String} [controlAttribute] - html Attribute to control\n * @return {Undo} undo command\n */\nvar applyAttributeToOthers = function (originalTarget, parentNode, markerName, controlAttribute) {\n var targets = correctTargets(parentNode, Array.isArray(originalTarget) ? originalTarget : [originalTarget]);\n if (!markerMap[markerName]) {\n markerMap[markerName] = new WeakMap();\n }\n var markerCounter = markerMap[markerName];\n var hiddenNodes = [];\n var elementsToKeep = new Set();\n var elementsToStop = new Set(targets);\n var keep = function (el) {\n if (!el || elementsToKeep.has(el)) {\n return;\n }\n elementsToKeep.add(el);\n keep(el.parentNode);\n };\n targets.forEach(keep);\n var deep = function (parent) {\n if (!parent || elementsToStop.has(parent)) {\n return;\n }\n Array.prototype.forEach.call(parent.children, function (node) {\n if (elementsToKeep.has(node)) {\n deep(node);\n }\n else {\n try {\n var attr = node.getAttribute(controlAttribute);\n var alreadyHidden = attr !== null && attr !== 'false';\n var counterValue = (counterMap.get(node) || 0) + 1;\n var markerValue = (markerCounter.get(node) || 0) + 1;\n counterMap.set(node, counterValue);\n markerCounter.set(node, markerValue);\n hiddenNodes.push(node);\n if (counterValue === 1 && alreadyHidden) {\n uncontrolledNodes.set(node, true);\n }\n if (markerValue === 1) {\n node.setAttribute(markerName, 'true');\n }\n if (!alreadyHidden) {\n node.setAttribute(controlAttribute, 'true');\n }\n }\n catch (e) {\n console.error('aria-hidden: cannot operate on ', node, e);\n }\n }\n });\n };\n deep(parentNode);\n elementsToKeep.clear();\n lockCount++;\n return function () {\n hiddenNodes.forEach(function (node) {\n var counterValue = counterMap.get(node) - 1;\n var markerValue = markerCounter.get(node) - 1;\n counterMap.set(node, counterValue);\n markerCounter.set(node, markerValue);\n if (!counterValue) {\n if (!uncontrolledNodes.has(node)) {\n node.removeAttribute(controlAttribute);\n }\n uncontrolledNodes.delete(node);\n }\n if (!markerValue) {\n node.removeAttribute(markerName);\n }\n });\n lockCount--;\n if (!lockCount) {\n // clear\n counterMap = new WeakMap();\n counterMap = new WeakMap();\n uncontrolledNodes = new WeakMap();\n markerMap = {};\n }\n };\n};\n/**\n * Marks everything except given node(or nodes) as aria-hidden\n * @param {Element | Element[]} originalTarget - elements to keep on the page\n * @param [parentNode] - top element, defaults to document.body\n * @param {String} [markerName] - a special attribute to mark every node\n * @return {Undo} undo command\n */\nexport var hideOthers = function (originalTarget, parentNode, markerName) {\n if (markerName === void 0) { markerName = 'data-aria-hidden'; }\n var targets = Array.from(Array.isArray(originalTarget) ? originalTarget : [originalTarget]);\n var activeParentNode = parentNode || getDefaultParent(originalTarget);\n if (!activeParentNode) {\n return function () { return null; };\n }\n // we should not hide ariaLive elements - https://github.com/theKashey/aria-hidden/issues/10\n targets.push.apply(targets, Array.from(activeParentNode.querySelectorAll('[aria-live]')));\n return applyAttributeToOthers(targets, activeParentNode, markerName, 'aria-hidden');\n};\n/**\n * Marks everything except given node(or nodes) as inert\n * @param {Element | Element[]} originalTarget - elements to keep on the page\n * @param [parentNode] - top element, defaults to document.body\n * @param {String} [markerName] - a special attribute to mark every node\n * @return {Undo} undo command\n */\nexport var inertOthers = function (originalTarget, parentNode, markerName) {\n if (markerName === void 0) { markerName = 'data-inert-ed'; }\n var activeParentNode = parentNode || getDefaultParent(originalTarget);\n if (!activeParentNode) {\n return function () { return null; };\n }\n return applyAttributeToOthers(originalTarget, activeParentNode, markerName, 'inert');\n};\n/**\n * @returns if current browser supports inert\n */\nexport var supportsInert = function () {\n return typeof HTMLElement !== 'undefined' && HTMLElement.prototype.hasOwnProperty('inert');\n};\n/**\n * Automatic function to \"suppress\" DOM elements - _hide_ or _inert_ in the best possible way\n * @param {Element | Element[]} originalTarget - elements to keep on the page\n * @param [parentNode] - top element, defaults to document.body\n * @param {String} [markerName] - a special attribute to mark every node\n * @return {Undo} undo command\n */\nexport var suppressOthers = function (originalTarget, parentNode, markerName) {\n if (markerName === void 0) { markerName = 'data-suppressed'; }\n return (supportsInert() ? inertOthers : hideOthers)(originalTarget, parentNode, markerName);\n};\n"],"names":["getDefaultParent","originalTarget","sampleTarget","counterMap","uncontrolledNodes","markerMap","lockCount","unwrapHost","node","correctTargets","parent","targets","target","correctedTarget","x","applyAttributeToOthers","parentNode","markerName","controlAttribute","markerCounter","hiddenNodes","elementsToKeep","elementsToStop","keep","el","deep","attr","alreadyHidden","counterValue","markerValue","e","hideOthers","activeParentNode"],"mappings":"AAAA,IAAIA,IAAmB,SAAUC,GAAgB;AAC7C,MAAI,OAAO,WAAa;AACpB,WAAO;AAEX,MAAIC,IAAe,MAAM,QAAQD,CAAc,IAAIA,EAAe,CAAC,IAAIA;AACvE,SAAOC,EAAa,cAAc;AACtC,GACIC,IAAa,oBAAI,QAAS,GAC1BC,IAAoB,oBAAI,QAAS,GACjCC,IAAY,CAAE,GACdC,IAAY,GACZC,IAAa,SAAUC,GAAM;AAC7B,SAAOA,MAASA,EAAK,QAAQD,EAAWC,EAAK,UAAU;AAC3D,GACIC,IAAiB,SAAUC,GAAQC,GAAS;AAC5C,SAAOA,EACF,IAAI,SAAUC,GAAQ;AACvB,QAAIF,EAAO,SAASE,CAAM;AACtB,aAAOA;AAEX,QAAIC,IAAkBN,EAAWK,CAAM;AACvC,WAAIC,KAAmBH,EAAO,SAASG,CAAe,IAC3CA,KAEX,QAAQ,MAAM,eAAeD,GAAQ,2BAA2BF,GAAQ,iBAAiB,GAClF;AAAA,EACV,CAAA,EACI,OAAO,SAAUI,GAAG;AAAE,WAAO,EAAQA;AAAA,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E;AAAA,IAEA,CAAS;AAAA,EACJ;AACD,SAAAL,EAAKT,CAAU,GACfK,EAAe,MAAO,GACtBf,KACO,WAAY;AACf,IAAAc,EAAY,QAAQ,SAAUZ,GAAM;AAChC,UAAIoB,IAAezB,EAAW,IAAIK,CAAI,IAAI,GACtCqB,IAAcV,EAAc,IAAIX,CAAI,IAAI;AAC5C,MAAAL,EAAW,IAAIK,GAAMoB,CAAY,GACjCT,EAAc,IAAIX,GAAMqB,CAAW,GAC9BD,MACIxB,EAAkB,IAAII,CAAI,KAC3BA,EAAK,gBAAgBU,CAAgB,GAEzCd,EAAkB,OAAOI,CAAI,IAE5BqB,KACDrB,EAAK,gBAAgBS,CAAU;AAAA,IAE/C,CAAS,GACDX,KACKA,MAEDH,IAAa,oBAAI,QAAS,GAC1BA,IAAa,oBAAI,QAAS,GAC1BC,IAAoB,oBAAI,QAAS,GACjCC,IAAY,CAAE;AAAA,EAErB;AACL,GAQW0B,IAAa,SAAU9B,GAAgBe,GAAYC,GAAY;AACtE,EAAIA,MAAe,WAAUA,IAAa;AAC1C,MAAIN,IAAU,MAAM,KAAK,MAAM,QAAQV,CAAc,IAAIA,IAAiB,CAACA,CAAc,CAAC,GACtF+B,IAAiChC,EAAiBC,CAAc;AACpE,SAAK+B,KAILrB,EAAQ,KAAK,MAAMA,GAAS,MAAM,KAAKqB,EAAiB,iBAAiB,aAAa,CAAC,CAAC,GACjFjB,EAAuBJ,GAASqB,GAAkBf,GAAY,aAAa,KAJvE,WAAY;AAAE,WAAO;AAAA,EAAO;AAK3C;","x_google_ignoreList":[0]}
|
1
|
+
{"version":3,"file":"index.es354.js","sources":["../node_modules/@radix-ui/react-slot/dist/index.mjs"],"sourcesContent":["// packages/react/slot/src/slot.tsx\nimport * as React from \"react\";\nimport { composeRefs } from \"@radix-ui/react-compose-refs\";\nimport { Fragment as Fragment2, jsx } from \"react/jsx-runtime\";\n// @__NO_SIDE_EFFECTS__\nfunction createSlot(ownerName) {\n const SlotClone = /* @__PURE__ */ createSlotClone(ownerName);\n const Slot2 = React.forwardRef((props, forwardedRef) => {\n const { children, ...slotProps } = props;\n const childrenArray = React.Children.toArray(children);\n const slottable = childrenArray.find(isSlottable);\n if (slottable) {\n const newElement = slottable.props.children;\n const newChildren = childrenArray.map((child) => {\n if (child === slottable) {\n if (React.Children.count(newElement) > 1) return React.Children.only(null);\n return React.isValidElement(newElement) ? newElement.props.children : null;\n } else {\n return child;\n }\n });\n return /* @__PURE__ */ jsx(SlotClone, { ...slotProps, ref: forwardedRef, children: React.isValidElement(newElement) ? React.cloneElement(newElement, void 0, newChildren) : null });\n }\n return /* @__PURE__ */ jsx(SlotClone, { ...slotProps, ref: forwardedRef, children });\n });\n Slot2.displayName = `${ownerName}.Slot`;\n return Slot2;\n}\nvar Slot = /* @__PURE__ */ createSlot(\"Slot\");\n// @__NO_SIDE_EFFECTS__\nfunction createSlotClone(ownerName) {\n const SlotClone = React.forwardRef((props, forwardedRef) => {\n const { children, ...slotProps } = props;\n if (React.isValidElement(children)) {\n const childrenRef = getElementRef(children);\n const props2 = mergeProps(slotProps, children.props);\n if (children.type !== React.Fragment) {\n props2.ref = forwardedRef ? composeRefs(forwardedRef, childrenRef) : childrenRef;\n }\n return React.cloneElement(children, props2);\n }\n return React.Children.count(children) > 1 ? React.Children.only(null) : null;\n });\n SlotClone.displayName = `${ownerName}.SlotClone`;\n return SlotClone;\n}\nvar SLOTTABLE_IDENTIFIER = Symbol(\"radix.slottable\");\n// @__NO_SIDE_EFFECTS__\nfunction createSlottable(ownerName) {\n const Slottable2 = ({ children }) => {\n return /* @__PURE__ */ jsx(Fragment2, { children });\n };\n Slottable2.displayName = `${ownerName}.Slottable`;\n Slottable2.__radixId = SLOTTABLE_IDENTIFIER;\n return Slottable2;\n}\nvar Slottable = /* @__PURE__ */ createSlottable(\"Slottable\");\nfunction isSlottable(child) {\n return React.isValidElement(child) && typeof child.type === \"function\" && \"__radixId\" in child.type && child.type.__radixId === SLOTTABLE_IDENTIFIER;\n}\nfunction mergeProps(slotProps, childProps) {\n const overrideProps = { ...childProps };\n for (const propName in childProps) {\n const slotPropValue = slotProps[propName];\n const childPropValue = childProps[propName];\n const isHandler = /^on[A-Z]/.test(propName);\n if (isHandler) {\n if (slotPropValue && childPropValue) {\n overrideProps[propName] = (...args) => {\n childPropValue(...args);\n slotPropValue(...args);\n };\n } else if (slotPropValue) {\n overrideProps[propName] = slotPropValue;\n }\n } else if (propName === \"style\") {\n overrideProps[propName] = { ...slotPropValue, ...childPropValue };\n } else if (propName === \"className\") {\n overrideProps[propName] = [slotPropValue, childPropValue].filter(Boolean).join(\" \");\n }\n }\n return { ...slotProps, ...overrideProps };\n}\nfunction getElementRef(element) {\n let getter = Object.getOwnPropertyDescriptor(element.props, \"ref\")?.get;\n let mayWarn = getter && \"isReactWarning\" in getter && getter.isReactWarning;\n if (mayWarn) {\n return element.ref;\n }\n getter = Object.getOwnPropertyDescriptor(element, \"ref\")?.get;\n mayWarn = getter && \"isReactWarning\" in getter && getter.isReactWarning;\n if (mayWarn) {\n return element.props.ref;\n }\n return element.props.ref || element.ref;\n}\nexport {\n Slot as Root,\n Slot,\n Slottable,\n createSlot,\n createSlottable\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["createSlot","ownerName","SlotClone","createSlotClone","Slot2","React","props","forwardedRef","children","slotProps","childrenArray","slottable","isSlottable","newElement","newChildren","child","jsx","childrenRef","getElementRef","props2","mergeProps","composeRefs","SLOTTABLE_IDENTIFIER","createSlottable","Slottable2","Fragment2","childProps","overrideProps","propName","slotPropValue","childPropValue","args","element","getter","_a","mayWarn","_b"],"mappings":";;;;AAKA,SAASA,EAAWC,GAAW;AAC7B,QAAMC,IAA4B,gBAAAC,EAAgBF,CAAS,GACrDG,IAAQC,EAAM,WAAW,CAACC,GAAOC,MAAiB;AACtD,UAAM,EAAE,UAAAC,GAAU,GAAGC,EAAS,IAAKH,GAC7BI,IAAgBL,EAAM,SAAS,QAAQG,CAAQ,GAC/CG,IAAYD,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;","x_google_ignoreList":[0]}
|
package/dist/index.es358.js
CHANGED
@@ -1,25 +1,9 @@
|
|
1
|
-
import * as
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
return /* @__PURE__ */ o.jsx(
|
7
|
-
p.svg,
|
8
|
-
{
|
9
|
-
...m,
|
10
|
-
ref: i,
|
11
|
-
width: s,
|
12
|
-
height: a,
|
13
|
-
viewBox: "0 0 30 10",
|
14
|
-
preserveAspectRatio: "none",
|
15
|
-
children: r.asChild ? t : /* @__PURE__ */ o.jsx("polygon", { points: "0,0 30,0 15,10" })
|
16
|
-
}
|
17
|
-
);
|
18
|
-
});
|
19
|
-
e.displayName = v;
|
20
|
-
var h = e;
|
1
|
+
import * as u from "react";
|
2
|
+
function t(r) {
|
3
|
+
const e = u.useRef({ value: r, previous: r });
|
4
|
+
return u.useMemo(() => (e.current.value !== r && (e.current.previous = e.current.value, e.current.value = r), e.current.previous), [r]);
|
5
|
+
}
|
21
6
|
export {
|
22
|
-
|
23
|
-
h as Root
|
7
|
+
t as usePrevious
|
24
8
|
};
|
25
9
|
//# sourceMappingURL=index.es358.js.map
|
package/dist/index.es358.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.es358.js","sources":["../node_modules/@radix-ui/react-
|
1
|
+
{"version":3,"file":"index.es358.js","sources":["../node_modules/@radix-ui/react-use-previous/dist/index.mjs"],"sourcesContent":["// packages/react/use-previous/src/use-previous.tsx\nimport * as React from \"react\";\nfunction usePrevious(value) {\n const ref = React.useRef({ value, previous: value });\n return React.useMemo(() => {\n if (ref.current.value !== value) {\n ref.current.previous = ref.current.value;\n ref.current.value = value;\n }\n return ref.current.previous;\n }, [value]);\n}\nexport {\n usePrevious\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["usePrevious","value","ref","React"],"mappings":";AAEA,SAASA,EAAYC,GAAO;AAC1B,QAAMC,IAAMC,EAAM,OAAO,EAAE,OAAAF,GAAO,UAAUA,GAAO;AACnD,SAAOE,EAAM,QAAQ,OACfD,EAAI,QAAQ,UAAUD,MACxBC,EAAI,QAAQ,WAAWA,EAAI,QAAQ,OACnCA,EAAI,QAAQ,QAAQD,IAEfC,EAAI,QAAQ,WAClB,CAACD,CAAK,CAAC;AACZ;","x_google_ignoreList":[0]}
|
package/dist/index.es359.js
CHANGED
@@ -1,396 +1,28 @@
|
|
1
|
-
import
|
2
|
-
import {
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
}
|
17
|
-
|
18
|
-
|
19
|
-
if (!b(e))
|
20
|
-
return m(1);
|
21
|
-
const i = e.getBoundingClientRect(), {
|
22
|
-
width: n,
|
23
|
-
height: o,
|
24
|
-
$: r
|
25
|
-
} = Z(e);
|
26
|
-
let s = (r ? A(i.width) : i.width) / n, c = (r ? A(i.height) : i.height) / o;
|
27
|
-
return (!s || !Number.isFinite(s)) && (s = 1), (!c || !Number.isFinite(c)) && (c = 1), {
|
28
|
-
x: s,
|
29
|
-
y: c
|
30
|
-
};
|
31
|
-
}
|
32
|
-
const gt = /* @__PURE__ */ m(0);
|
33
|
-
function X(t) {
|
34
|
-
const e = L(t);
|
35
|
-
return !Y() || !e.visualViewport ? gt : {
|
36
|
-
x: e.visualViewport.offsetLeft,
|
37
|
-
y: e.visualViewport.offsetTop
|
38
|
-
};
|
39
|
-
}
|
40
|
-
function pt(t, e, i) {
|
41
|
-
return e === void 0 && (e = !1), !i || e && i !== L(t) ? !1 : e;
|
42
|
-
}
|
43
|
-
function T(t, e, i, n) {
|
44
|
-
e === void 0 && (e = !1), i === void 0 && (i = !1);
|
45
|
-
const o = t.getBoundingClientRect(), r = q(t);
|
46
|
-
let s = m(1);
|
47
|
-
e && (n ? v(n) && (s = F(n)) : s = F(t));
|
48
|
-
const c = pt(r, i, n) ? X(r) : m(0);
|
49
|
-
let l = (o.left + c.x) / s.x, f = (o.top + c.y) / s.y, u = o.width / s.x, h = o.height / s.y;
|
50
|
-
if (r) {
|
51
|
-
const p = L(r), a = n && v(n) ? L(n) : n;
|
52
|
-
let y = p, g = K(y);
|
53
|
-
for (; g && n && a !== y; ) {
|
54
|
-
const w = F(g), d = g.getBoundingClientRect(), x = R(g), C = d.left + (g.clientLeft + parseFloat(x.paddingLeft)) * w.x, B = d.top + (g.clientTop + parseFloat(x.paddingTop)) * w.y;
|
55
|
-
l *= w.x, f *= w.y, u *= w.x, h *= w.y, l += C, f += B, y = L(g), g = K(y);
|
56
|
-
}
|
57
|
-
}
|
58
|
-
return J({
|
59
|
-
width: u,
|
60
|
-
height: h,
|
61
|
-
x: l,
|
62
|
-
y: f
|
63
|
-
});
|
64
|
-
}
|
65
|
-
function k(t, e) {
|
66
|
-
const i = N(t).scrollLeft;
|
67
|
-
return e ? e.left + i : T(O(t)).left + i;
|
68
|
-
}
|
69
|
-
function tt(t, e, i) {
|
70
|
-
i === void 0 && (i = !1);
|
71
|
-
const n = t.getBoundingClientRect(), o = n.left + e.scrollLeft - (i ? 0 : (
|
72
|
-
// RTL <body> scrollbar.
|
73
|
-
k(t, n)
|
74
|
-
)), r = n.top + e.scrollTop;
|
75
|
-
return {
|
76
|
-
x: o,
|
77
|
-
y: r
|
78
|
-
};
|
79
|
-
}
|
80
|
-
function wt(t) {
|
81
|
-
let {
|
82
|
-
elements: e,
|
83
|
-
rect: i,
|
84
|
-
offsetParent: n,
|
85
|
-
strategy: o
|
86
|
-
} = t;
|
87
|
-
const r = o === "fixed", s = O(n), c = e ? S(e.floating) : !1;
|
88
|
-
if (n === s || c && r)
|
89
|
-
return i;
|
90
|
-
let l = {
|
91
|
-
scrollLeft: 0,
|
92
|
-
scrollTop: 0
|
93
|
-
}, f = m(1);
|
94
|
-
const u = m(0), h = b(n);
|
95
|
-
if ((h || !h && !r) && ((M(n) !== "body" || _(s)) && (l = N(n)), b(n))) {
|
96
|
-
const a = T(n);
|
97
|
-
f = F(n), u.x = a.x + n.clientLeft, u.y = a.y + n.clientTop;
|
98
|
-
}
|
99
|
-
const p = s && !h && !r ? tt(s, l, !0) : m(0);
|
100
|
-
return {
|
101
|
-
width: i.width * f.x,
|
102
|
-
height: i.height * f.y,
|
103
|
-
x: i.x * f.x - l.scrollLeft * f.x + u.x + p.x,
|
104
|
-
y: i.y * f.y - l.scrollTop * f.y + u.y + p.y
|
105
|
-
};
|
106
|
-
}
|
107
|
-
function mt(t) {
|
108
|
-
return Array.from(t.getClientRects());
|
109
|
-
}
|
110
|
-
function yt(t) {
|
111
|
-
const e = O(t), i = N(t), n = t.ownerDocument.body, o = E(e.scrollWidth, e.clientWidth, n.scrollWidth, n.clientWidth), r = E(e.scrollHeight, e.clientHeight, n.scrollHeight, n.clientHeight);
|
112
|
-
let s = -i.scrollLeft + k(t);
|
113
|
-
const c = -i.scrollTop;
|
114
|
-
return R(n).direction === "rtl" && (s += E(e.clientWidth, n.clientWidth) - o), {
|
115
|
-
width: o,
|
116
|
-
height: r,
|
117
|
-
x: s,
|
118
|
-
y: c
|
119
|
-
};
|
120
|
-
}
|
121
|
-
function xt(t, e) {
|
122
|
-
const i = L(t), n = O(t), o = i.visualViewport;
|
123
|
-
let r = n.clientWidth, s = n.clientHeight, c = 0, l = 0;
|
124
|
-
if (o) {
|
125
|
-
r = o.width, s = o.height;
|
126
|
-
const f = Y();
|
127
|
-
(!f || f && e === "fixed") && (c = o.offsetLeft, l = o.offsetTop);
|
128
|
-
}
|
129
|
-
return {
|
130
|
-
width: r,
|
131
|
-
height: s,
|
132
|
-
x: c,
|
133
|
-
y: l
|
134
|
-
};
|
135
|
-
}
|
136
|
-
function vt(t, e) {
|
137
|
-
const i = T(t, !0, e === "fixed"), n = i.top + t.clientTop, o = i.left + t.clientLeft, r = b(t) ? F(t) : m(1), s = t.clientWidth * r.x, c = t.clientHeight * r.y, l = o * r.x, f = n * r.y;
|
138
|
-
return {
|
139
|
-
width: s,
|
140
|
-
height: c,
|
141
|
-
x: l,
|
142
|
-
y: f
|
143
|
-
};
|
144
|
-
}
|
145
|
-
function j(t, e, i) {
|
146
|
-
let n;
|
147
|
-
if (e === "viewport")
|
148
|
-
n = xt(t, i);
|
149
|
-
else if (e === "document")
|
150
|
-
n = yt(O(t));
|
151
|
-
else if (v(e))
|
152
|
-
n = vt(e, i);
|
153
|
-
else {
|
154
|
-
const o = X(t);
|
155
|
-
n = {
|
156
|
-
x: e.x - o.x,
|
157
|
-
y: e.y - o.y,
|
158
|
-
width: e.width,
|
159
|
-
height: e.height
|
160
|
-
};
|
161
|
-
}
|
162
|
-
return J(n);
|
163
|
-
}
|
164
|
-
function et(t, e) {
|
165
|
-
const i = W(t);
|
166
|
-
return i === e || !v(i) || H(i) ? !1 : R(i).position === "fixed" || et(i, e);
|
167
|
-
}
|
168
|
-
function Rt(t, e) {
|
169
|
-
const i = e.get(t);
|
170
|
-
if (i)
|
171
|
-
return i;
|
172
|
-
let n = $(t, [], !1).filter((c) => v(c) && M(c) !== "body"), o = null;
|
173
|
-
const r = R(t).position === "fixed";
|
174
|
-
let s = r ? W(t) : t;
|
175
|
-
for (; v(s) && !H(s); ) {
|
176
|
-
const c = R(s), l = Q(s);
|
177
|
-
!l && c.position === "fixed" && (o = null), (r ? !l && !o : !l && c.position === "static" && !!o && ["absolute", "fixed"].includes(o.position) || _(s) && !l && et(t, s)) ? n = n.filter((u) => u !== s) : o = c, s = W(s);
|
178
|
-
}
|
179
|
-
return e.set(t, n), n;
|
180
|
-
}
|
181
|
-
function Ot(t) {
|
182
|
-
let {
|
183
|
-
element: e,
|
184
|
-
boundary: i,
|
185
|
-
rootBoundary: n,
|
186
|
-
strategy: o
|
187
|
-
} = t;
|
188
|
-
const s = [...i === "clippingAncestors" ? S(e) ? [] : Rt(e, this._c) : [].concat(i), n], c = s[0], l = s.reduce((f, u) => {
|
189
|
-
const h = j(e, u, o);
|
190
|
-
return f.top = E(h.top, f.top), f.right = V(h.right, f.right), f.bottom = V(h.bottom, f.bottom), f.left = E(h.left, f.left), f;
|
191
|
-
}, j(e, c, o));
|
192
|
-
return {
|
193
|
-
width: l.right - l.left,
|
194
|
-
height: l.bottom - l.top,
|
195
|
-
x: l.left,
|
196
|
-
y: l.top
|
197
|
-
};
|
198
|
-
}
|
199
|
-
function bt(t) {
|
200
|
-
const {
|
201
|
-
width: e,
|
202
|
-
height: i
|
203
|
-
} = Z(t);
|
204
|
-
return {
|
205
|
-
width: e,
|
206
|
-
height: i
|
207
|
-
};
|
208
|
-
}
|
209
|
-
function Ct(t, e, i) {
|
210
|
-
const n = b(e), o = O(e), r = i === "fixed", s = T(t, !0, r, e);
|
211
|
-
let c = {
|
212
|
-
scrollLeft: 0,
|
213
|
-
scrollTop: 0
|
214
|
-
};
|
215
|
-
const l = m(0);
|
216
|
-
if (n || !n && !r)
|
217
|
-
if ((M(e) !== "body" || _(o)) && (c = N(e)), n) {
|
218
|
-
const p = T(e, !0, r, e);
|
219
|
-
l.x = p.x + e.clientLeft, l.y = p.y + e.clientTop;
|
220
|
-
} else o && (l.x = k(o));
|
221
|
-
const f = o && !n && !r ? tt(o, c) : m(0), u = s.left + c.scrollLeft - l.x - f.x, h = s.top + c.scrollTop - l.y - f.y;
|
222
|
-
return {
|
223
|
-
x: u,
|
224
|
-
y: h,
|
225
|
-
width: s.width,
|
226
|
-
height: s.height
|
227
|
-
};
|
228
|
-
}
|
229
|
-
function I(t) {
|
230
|
-
return R(t).position === "static";
|
231
|
-
}
|
232
|
-
function G(t, e) {
|
233
|
-
if (!b(t) || R(t).position === "fixed")
|
234
|
-
return null;
|
235
|
-
if (e)
|
236
|
-
return e(t);
|
237
|
-
let i = t.offsetParent;
|
238
|
-
return O(t) === i && (i = i.ownerDocument.body), i;
|
239
|
-
}
|
240
|
-
function it(t, e) {
|
241
|
-
const i = L(t);
|
242
|
-
if (S(t))
|
243
|
-
return i;
|
244
|
-
if (!b(t)) {
|
245
|
-
let o = W(t);
|
246
|
-
for (; o && !H(o); ) {
|
247
|
-
if (v(o) && !I(o))
|
248
|
-
return o;
|
249
|
-
o = W(o);
|
250
|
-
}
|
251
|
-
return i;
|
252
|
-
}
|
253
|
-
let n = G(t, e);
|
254
|
-
for (; n && at(n) && I(n); )
|
255
|
-
n = G(n, e);
|
256
|
-
return n && H(n) && I(n) && !Q(n) ? i : n || dt(t) || i;
|
257
|
-
}
|
258
|
-
const Lt = async function(t) {
|
259
|
-
const e = this.getOffsetParent || it, i = this.getDimensions, n = await i(t.floating);
|
260
|
-
return {
|
261
|
-
reference: Ct(t.reference, await e(t.floating), t.strategy),
|
262
|
-
floating: {
|
263
|
-
x: 0,
|
264
|
-
y: 0,
|
265
|
-
width: n.width,
|
266
|
-
height: n.height
|
267
|
-
}
|
268
|
-
};
|
269
|
-
};
|
270
|
-
function Tt(t) {
|
271
|
-
return R(t).direction === "rtl";
|
272
|
-
}
|
273
|
-
const Et = {
|
274
|
-
convertOffsetParentRelativeRectToViewportRelativeRect: wt,
|
275
|
-
getDocumentElement: O,
|
276
|
-
getClippingRect: Ot,
|
277
|
-
getOffsetParent: it,
|
278
|
-
getElementRects: Lt,
|
279
|
-
getClientRects: mt,
|
280
|
-
getDimensions: bt,
|
281
|
-
getScale: F,
|
282
|
-
isElement: v,
|
283
|
-
isRTL: Tt
|
284
|
-
};
|
285
|
-
function nt(t, e) {
|
286
|
-
return t.x === e.x && t.y === e.y && t.width === e.width && t.height === e.height;
|
287
|
-
}
|
288
|
-
function Ft(t, e) {
|
289
|
-
let i = null, n;
|
290
|
-
const o = O(t);
|
291
|
-
function r() {
|
292
|
-
var c;
|
293
|
-
clearTimeout(n), (c = i) == null || c.disconnect(), i = null;
|
294
|
-
}
|
295
|
-
function s(c, l) {
|
296
|
-
c === void 0 && (c = !1), l === void 0 && (l = 1), r();
|
297
|
-
const f = t.getBoundingClientRect(), {
|
298
|
-
left: u,
|
299
|
-
top: h,
|
300
|
-
width: p,
|
301
|
-
height: a
|
302
|
-
} = f;
|
303
|
-
if (c || e(), !p || !a)
|
304
|
-
return;
|
305
|
-
const y = D(h), g = D(o.clientWidth - (u + p)), w = D(o.clientHeight - (h + a)), d = D(u), C = {
|
306
|
-
rootMargin: -y + "px " + -g + "px " + -w + "px " + -d + "px",
|
307
|
-
threshold: E(0, V(1, l)) || 1
|
308
|
-
};
|
309
|
-
let B = !0;
|
310
|
-
function P(U) {
|
311
|
-
const z = U[0].intersectionRatio;
|
312
|
-
if (z !== l) {
|
313
|
-
if (!B)
|
314
|
-
return s();
|
315
|
-
z ? s(!1, z) : n = setTimeout(() => {
|
316
|
-
s(!1, 1e-7);
|
317
|
-
}, 1e3);
|
318
|
-
}
|
319
|
-
z === 1 && !nt(f, t.getBoundingClientRect()) && s(), B = !1;
|
320
|
-
}
|
321
|
-
try {
|
322
|
-
i = new IntersectionObserver(P, {
|
323
|
-
...C,
|
324
|
-
// Handle <iframe>s
|
325
|
-
root: o.ownerDocument
|
1
|
+
import * as h from "react";
|
2
|
+
import { useLayoutEffect as z } from "./index.es360.js";
|
3
|
+
function c(r) {
|
4
|
+
const [d, e] = h.useState(void 0);
|
5
|
+
return z(() => {
|
6
|
+
if (r) {
|
7
|
+
e({ width: r.offsetWidth, height: r.offsetHeight });
|
8
|
+
const f = new ResizeObserver((i) => {
|
9
|
+
if (!Array.isArray(i) || !i.length)
|
10
|
+
return;
|
11
|
+
const b = i[0];
|
12
|
+
let o, t;
|
13
|
+
if ("borderBoxSize" in b) {
|
14
|
+
const s = b.borderBoxSize, u = Array.isArray(s) ? s[0] : s;
|
15
|
+
o = u.inlineSize, t = u.blockSize;
|
16
|
+
} else
|
17
|
+
o = r.offsetWidth, t = r.offsetHeight;
|
18
|
+
e({ width: o, height: t });
|
326
19
|
});
|
327
|
-
|
328
|
-
|
329
|
-
|
330
|
-
|
331
|
-
}
|
332
|
-
return s(!0), r;
|
333
|
-
}
|
334
|
-
function Dt(t, e, i, n) {
|
335
|
-
n === void 0 && (n = {});
|
336
|
-
const {
|
337
|
-
ancestorScroll: o = !0,
|
338
|
-
ancestorResize: r = !0,
|
339
|
-
elementResize: s = typeof ResizeObserver == "function",
|
340
|
-
layoutShift: c = typeof IntersectionObserver == "function",
|
341
|
-
animationFrame: l = !1
|
342
|
-
} = n, f = q(t), u = o || r ? [...f ? $(f) : [], ...$(e)] : [];
|
343
|
-
u.forEach((d) => {
|
344
|
-
o && d.addEventListener("scroll", i, {
|
345
|
-
passive: !0
|
346
|
-
}), r && d.addEventListener("resize", i);
|
347
|
-
});
|
348
|
-
const h = f && c ? Ft(f, i) : null;
|
349
|
-
let p = -1, a = null;
|
350
|
-
s && (a = new ResizeObserver((d) => {
|
351
|
-
let [x] = d;
|
352
|
-
x && x.target === f && a && (a.unobserve(e), cancelAnimationFrame(p), p = requestAnimationFrame(() => {
|
353
|
-
var C;
|
354
|
-
(C = a) == null || C.observe(e);
|
355
|
-
})), i();
|
356
|
-
}), f && !l && a.observe(f), a.observe(e));
|
357
|
-
let y, g = l ? T(t) : null;
|
358
|
-
l && w();
|
359
|
-
function w() {
|
360
|
-
const d = T(t);
|
361
|
-
g && !nt(g, d) && i(), g = d, y = requestAnimationFrame(w);
|
362
|
-
}
|
363
|
-
return i(), () => {
|
364
|
-
var d;
|
365
|
-
u.forEach((x) => {
|
366
|
-
o && x.removeEventListener("scroll", i), r && x.removeEventListener("resize", i);
|
367
|
-
}), h == null || h(), (d = a) == null || d.disconnect(), a = null, l && cancelAnimationFrame(y);
|
368
|
-
};
|
20
|
+
return f.observe(r, { box: "border-box" }), () => f.unobserve(r);
|
21
|
+
} else
|
22
|
+
e(void 0);
|
23
|
+
}, [r]), d;
|
369
24
|
}
|
370
|
-
const At = ot, Ht = st, Nt = rt, It = ct, Vt = lt, $t = ht, St = ft, Mt = (t, e, i) => {
|
371
|
-
const n = /* @__PURE__ */ new Map(), o = {
|
372
|
-
platform: Et,
|
373
|
-
...i
|
374
|
-
}, r = {
|
375
|
-
...o.platform,
|
376
|
-
_c: n
|
377
|
-
};
|
378
|
-
return ut(t, e, {
|
379
|
-
...o,
|
380
|
-
platform: r
|
381
|
-
});
|
382
|
-
};
|
383
25
|
export {
|
384
|
-
|
385
|
-
Dt as autoUpdate,
|
386
|
-
Mt as computePosition,
|
387
|
-
Nt as flip,
|
388
|
-
$ as getOverflowAncestors,
|
389
|
-
Vt as hide,
|
390
|
-
St as limitShift,
|
391
|
-
At as offset,
|
392
|
-
Et as platform,
|
393
|
-
Ht as shift,
|
394
|
-
It as size
|
26
|
+
c as useSize
|
395
27
|
};
|
396
28
|
//# sourceMappingURL=index.es359.js.map
|