@anoki/fse-ui 1.0.365 → 1.0.366
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.cjs177.js +1 -1
- package/dist/index.cjs188.js +1 -1
- package/dist/index.cjs195.js +1 -1
- package/dist/index.cjs200.js +1 -1
- package/dist/index.cjs207.js +1 -1
- package/dist/index.cjs215.js +1 -1
- package/dist/index.cjs240.js +1 -1
- package/dist/index.cjs241.js +1 -1
- package/dist/index.cjs251.js +1 -1
- package/dist/index.cjs256.js +1 -1
- package/dist/index.cjs256.js.map +1 -1
- package/dist/index.cjs257.js +1 -1
- package/dist/index.cjs257.js.map +1 -1
- package/dist/index.cjs258.js +1 -1
- package/dist/index.cjs258.js.map +1 -1
- package/dist/index.cjs259.js +1 -1
- package/dist/index.cjs259.js.map +1 -1
- package/dist/index.cjs260.js +1 -1
- package/dist/index.cjs260.js.map +1 -1
- package/dist/index.cjs261.js +1 -1
- package/dist/index.cjs261.js.map +1 -1
- package/dist/index.cjs269.js +1 -1
- package/dist/index.es177.js +4 -4
- package/dist/index.es188.js +1 -1
- package/dist/index.es195.js +1 -1
- package/dist/index.es200.js +1 -1
- package/dist/index.es207.js +1 -1
- package/dist/index.es215.js +2 -2
- package/dist/index.es240.js +1 -1
- package/dist/index.es241.js +1 -1
- package/dist/index.es251.js +1 -1
- package/dist/index.es256.js +6 -2
- package/dist/index.es256.js.map +1 -1
- package/dist/index.es257.js +25 -2
- package/dist/index.es257.js.map +1 -1
- package/dist/index.es258.js +68 -5
- package/dist/index.es258.js.map +1 -1
- package/dist/index.es259.js +29 -25
- package/dist/index.es259.js.map +1 -1
- package/dist/index.es260.js +2 -69
- package/dist/index.es260.js.map +1 -1
- package/dist/index.es261.js +2 -29
- package/dist/index.es261.js.map +1 -1
- package/dist/index.es269.js +1 -1
- package/dist/sections/Services/Services.css +1 -1
- package/package.json +1 -1
- /package/dist/components/ui/{ConsentModal/ConsentModalFooter/ConsentModalFooter.css → DoctorModal/DoctorModalFooter/DoctorModalFooter.css} +0 -0
package/dist/index.es258.js
CHANGED
@@ -1,9 +1,72 @@
|
|
1
|
-
import * as
|
2
|
-
|
3
|
-
|
4
|
-
|
1
|
+
import * as a from "react";
|
2
|
+
import { useComposedRefs as E } from "./index.es247.js";
|
3
|
+
import { useLayoutEffect as A } from "./index.es274.js";
|
4
|
+
function T(n, e) {
|
5
|
+
return a.useReducer((r, t) => e[r][t] ?? r, n);
|
6
|
+
}
|
7
|
+
var R = (n) => {
|
8
|
+
const { present: e, children: r } = n, t = v(e), i = typeof r == "function" ? r({ present: t.isPresent }) : a.Children.only(r), c = E(t.ref, P(i));
|
9
|
+
return typeof r == "function" || t.isPresent ? a.cloneElement(i, { ref: c }) : null;
|
10
|
+
};
|
11
|
+
R.displayName = "Presence";
|
12
|
+
function v(n) {
|
13
|
+
const [e, r] = a.useState(), t = a.useRef({}), i = a.useRef(n), c = a.useRef("none"), p = n ? "mounted" : "unmounted", [N, s] = T(p, {
|
14
|
+
mounted: {
|
15
|
+
UNMOUNT: "unmounted",
|
16
|
+
ANIMATION_OUT: "unmountSuspended"
|
17
|
+
},
|
18
|
+
unmountSuspended: {
|
19
|
+
MOUNT: "mounted",
|
20
|
+
ANIMATION_END: "unmounted"
|
21
|
+
},
|
22
|
+
unmounted: {
|
23
|
+
MOUNT: "mounted"
|
24
|
+
}
|
25
|
+
});
|
26
|
+
return a.useEffect(() => {
|
27
|
+
const o = l(t.current);
|
28
|
+
c.current = N === "mounted" ? o : "none";
|
29
|
+
}, [N]), A(() => {
|
30
|
+
const o = t.current, m = i.current;
|
31
|
+
if (m !== n) {
|
32
|
+
const f = c.current, u = l(o);
|
33
|
+
n ? s("MOUNT") : u === "none" || (o == null ? void 0 : o.display) === "none" ? s("UNMOUNT") : s(m && f !== u ? "ANIMATION_OUT" : "UNMOUNT"), i.current = n;
|
34
|
+
}
|
35
|
+
}, [n, s]), A(() => {
|
36
|
+
if (e) {
|
37
|
+
let o;
|
38
|
+
const m = e.ownerDocument.defaultView ?? window, d = (u) => {
|
39
|
+
const g = l(t.current).includes(u.animationName);
|
40
|
+
if (u.target === e && g && (s("ANIMATION_END"), !i.current)) {
|
41
|
+
const O = e.style.animationFillMode;
|
42
|
+
e.style.animationFillMode = "forwards", o = m.setTimeout(() => {
|
43
|
+
e.style.animationFillMode === "forwards" && (e.style.animationFillMode = O);
|
44
|
+
});
|
45
|
+
}
|
46
|
+
}, f = (u) => {
|
47
|
+
u.target === e && (c.current = l(t.current));
|
48
|
+
};
|
49
|
+
return e.addEventListener("animationstart", f), e.addEventListener("animationcancel", d), e.addEventListener("animationend", d), () => {
|
50
|
+
m.clearTimeout(o), e.removeEventListener("animationstart", f), e.removeEventListener("animationcancel", d), e.removeEventListener("animationend", d);
|
51
|
+
};
|
52
|
+
} else
|
53
|
+
s("ANIMATION_END");
|
54
|
+
}, [e, s]), {
|
55
|
+
isPresent: ["mounted", "unmountSuspended"].includes(N),
|
56
|
+
ref: a.useCallback((o) => {
|
57
|
+
o && (t.current = getComputedStyle(o)), r(o);
|
58
|
+
}, [])
|
59
|
+
};
|
60
|
+
}
|
61
|
+
function l(n) {
|
62
|
+
return (n == null ? void 0 : n.animationName) || "none";
|
63
|
+
}
|
64
|
+
function P(n) {
|
65
|
+
var t, i;
|
66
|
+
let e = (t = Object.getOwnPropertyDescriptor(n.props, "ref")) == null ? void 0 : t.get, r = e && "isReactWarning" in e && e.isReactWarning;
|
67
|
+
return r ? n.ref : (e = (i = Object.getOwnPropertyDescriptor(n, "ref")) == null ? void 0 : i.get, r = e && "isReactWarning" in e && e.isReactWarning, r ? n.props.ref : n.props.ref || n.ref);
|
5
68
|
}
|
6
69
|
export {
|
7
|
-
|
70
|
+
R as Presence
|
8
71
|
};
|
9
72
|
//# sourceMappingURL=index.es258.js.map
|
package/dist/index.es258.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.es258.js","sources":["../node_modules/@radix-ui/react-
|
1
|
+
{"version":3,"file":"index.es258.js","sources":["../node_modules/@radix-ui/react-presence/dist/index.mjs"],"sourcesContent":["\"use client\";\n\n// packages/react/presence/src/Presence.tsx\nimport * as React2 from \"react\";\nimport { useComposedRefs } from \"@radix-ui/react-compose-refs\";\nimport { useLayoutEffect } from \"@radix-ui/react-use-layout-effect\";\n\n// packages/react/presence/src/useStateMachine.tsx\nimport * as React from \"react\";\nfunction useStateMachine(initialState, machine) {\n return React.useReducer((state, event) => {\n const nextState = machine[state][event];\n return nextState ?? state;\n }, initialState);\n}\n\n// packages/react/presence/src/Presence.tsx\nvar Presence = (props) => {\n const { present, children } = props;\n const presence = usePresence(present);\n const child = typeof children === \"function\" ? children({ present: presence.isPresent }) : React2.Children.only(children);\n const ref = useComposedRefs(presence.ref, getElementRef(child));\n const forceMount = typeof children === \"function\";\n return forceMount || presence.isPresent ? React2.cloneElement(child, { ref }) : null;\n};\nPresence.displayName = \"Presence\";\nfunction usePresence(present) {\n const [node, setNode] = React2.useState();\n const stylesRef = React2.useRef({});\n const prevPresentRef = React2.useRef(present);\n const prevAnimationNameRef = React2.useRef(\"none\");\n const initialState = present ? \"mounted\" : \"unmounted\";\n const [state, send] = useStateMachine(initialState, {\n mounted: {\n UNMOUNT: \"unmounted\",\n ANIMATION_OUT: \"unmountSuspended\"\n },\n unmountSuspended: {\n MOUNT: \"mounted\",\n ANIMATION_END: \"unmounted\"\n },\n unmounted: {\n MOUNT: \"mounted\"\n }\n });\n React2.useEffect(() => {\n const currentAnimationName = getAnimationName(stylesRef.current);\n prevAnimationNameRef.current = state === \"mounted\" ? currentAnimationName : \"none\";\n }, [state]);\n useLayoutEffect(() => {\n const styles = stylesRef.current;\n const wasPresent = prevPresentRef.current;\n const hasPresentChanged = wasPresent !== present;\n if (hasPresentChanged) {\n const prevAnimationName = prevAnimationNameRef.current;\n const currentAnimationName = getAnimationName(styles);\n if (present) {\n send(\"MOUNT\");\n } else if (currentAnimationName === \"none\" || styles?.display === \"none\") {\n send(\"UNMOUNT\");\n } else {\n const isAnimating = prevAnimationName !== currentAnimationName;\n if (wasPresent && isAnimating) {\n send(\"ANIMATION_OUT\");\n } else {\n send(\"UNMOUNT\");\n }\n }\n prevPresentRef.current = present;\n }\n }, [present, send]);\n useLayoutEffect(() => {\n if (node) {\n let timeoutId;\n const ownerWindow = node.ownerDocument.defaultView ?? window;\n const handleAnimationEnd = (event) => {\n const currentAnimationName = getAnimationName(stylesRef.current);\n const isCurrentAnimation = currentAnimationName.includes(event.animationName);\n if (event.target === node && isCurrentAnimation) {\n send(\"ANIMATION_END\");\n if (!prevPresentRef.current) {\n const currentFillMode = node.style.animationFillMode;\n node.style.animationFillMode = \"forwards\";\n timeoutId = ownerWindow.setTimeout(() => {\n if (node.style.animationFillMode === \"forwards\") {\n node.style.animationFillMode = currentFillMode;\n }\n });\n }\n }\n };\n const handleAnimationStart = (event) => {\n if (event.target === node) {\n prevAnimationNameRef.current = getAnimationName(stylesRef.current);\n }\n };\n node.addEventListener(\"animationstart\", handleAnimationStart);\n node.addEventListener(\"animationcancel\", handleAnimationEnd);\n node.addEventListener(\"animationend\", handleAnimationEnd);\n return () => {\n ownerWindow.clearTimeout(timeoutId);\n node.removeEventListener(\"animationstart\", handleAnimationStart);\n node.removeEventListener(\"animationcancel\", handleAnimationEnd);\n node.removeEventListener(\"animationend\", handleAnimationEnd);\n };\n } else {\n send(\"ANIMATION_END\");\n }\n }, [node, send]);\n return {\n isPresent: [\"mounted\", \"unmountSuspended\"].includes(state),\n ref: React2.useCallback((node2) => {\n if (node2) stylesRef.current = getComputedStyle(node2);\n setNode(node2);\n }, [])\n };\n}\nfunction getAnimationName(styles) {\n return styles?.animationName || \"none\";\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 Presence\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["useStateMachine","initialState","machine","React","state","event","Presence","props","present","children","presence","usePresence","child","React2","ref","useComposedRefs","getElementRef","node","setNode","stylesRef","prevPresentRef","prevAnimationNameRef","send","currentAnimationName","getAnimationName","useLayoutEffect","styles","wasPresent","prevAnimationName","timeoutId","ownerWindow","handleAnimationEnd","isCurrentAnimation","currentFillMode","handleAnimationStart","node2","element","getter","_a","mayWarn","_b"],"mappings":";;;AASA,SAASA,EAAgBC,GAAcC,GAAS;AAC9C,SAAOC,EAAM,WAAW,CAACC,GAAOC,MACZH,EAAQE,CAAK,EAAEC,CAAK,KAClBD,GACnBH,CAAY;AACjB;AAGG,IAACK,IAAW,CAACC,MAAU;AACxB,QAAM,EAAE,SAAAC,GAAS,UAAAC,EAAQ,IAAKF,GACxBG,IAAWC,EAAYH,CAAO,GAC9BI,IAAQ,OAAOH,KAAa,aAAaA,EAAS,EAAE,SAASC,EAAS,UAAW,CAAA,IAAIG,EAAO,SAAS,KAAKJ,CAAQ,GAClHK,IAAMC,EAAgBL,EAAS,KAAKM,EAAcJ,CAAK,CAAC;AAE9D,SADmB,OAAOH,KAAa,cAClBC,EAAS,YAAYG,EAAO,aAAaD,GAAO,EAAE,KAAAE,EAAK,CAAA,IAAI;AAClF;AACAR,EAAS,cAAc;AACvB,SAASK,EAAYH,GAAS;AAC5B,QAAM,CAACS,GAAMC,CAAO,IAAIL,EAAO,SAAU,GACnCM,IAAYN,EAAO,OAAO,EAAE,GAC5BO,IAAiBP,EAAO,OAAOL,CAAO,GACtCa,IAAuBR,EAAO,OAAO,MAAM,GAC3CZ,IAAeO,IAAU,YAAY,aACrC,CAACJ,GAAOkB,CAAI,IAAItB,EAAgBC,GAAc;AAAA,IAClD,SAAS;AAAA,MACP,SAAS;AAAA,MACT,eAAe;AAAA,IAChB;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|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
}
|
1
|
+
import * as s from "react";
|
2
|
+
import "react-dom";
|
3
|
+
import { Slot as n } from "./index.es275.js";
|
4
|
+
import { j as f } from "./index.es141.js";
|
5
|
+
var u = [
|
6
|
+
"a",
|
7
|
+
"button",
|
8
|
+
"div",
|
9
|
+
"form",
|
10
|
+
"h2",
|
11
|
+
"h3",
|
12
|
+
"img",
|
13
|
+
"input",
|
14
|
+
"label",
|
15
|
+
"li",
|
16
|
+
"nav",
|
17
|
+
"ol",
|
18
|
+
"p",
|
19
|
+
"span",
|
20
|
+
"svg",
|
21
|
+
"ul"
|
22
|
+
], c = u.reduce((o, r) => {
|
23
|
+
const i = s.forwardRef((t, e) => {
|
24
|
+
const { asChild: m, ...a } = t, p = m ? n : r;
|
25
|
+
return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ f.jsx(p, { ...a, ref: e });
|
26
|
+
});
|
27
|
+
return i.displayName = `Primitive.${r}`, { ...o, [r]: i };
|
28
|
+
}, {});
|
25
29
|
export {
|
26
|
-
|
30
|
+
c as Primitive
|
27
31
|
};
|
28
32
|
//# sourceMappingURL=index.es259.js.map
|
package/dist/index.es259.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.es259.js","sources":["../node_modules/@radix-ui/react-
|
1
|
+
{"version":3,"file":"index.es259.js","sources":["../node_modules/@radix-ui/react-checkbox/node_modules/@radix-ui/react-primitive/dist/index.mjs"],"sourcesContent":["// packages/react/primitive/src/primitive.tsx\nimport * as React from \"react\";\nimport * as ReactDOM from \"react-dom\";\nimport { Slot } from \"@radix-ui/react-slot\";\nimport { jsx } from \"react/jsx-runtime\";\nvar NODES = [\n \"a\",\n \"button\",\n \"div\",\n \"form\",\n \"h2\",\n \"h3\",\n \"img\",\n \"input\",\n \"label\",\n \"li\",\n \"nav\",\n \"ol\",\n \"p\",\n \"span\",\n \"svg\",\n \"ul\"\n];\nvar Primitive = NODES.reduce((primitive, node) => {\n const Node = React.forwardRef((props, forwardedRef) => {\n const { asChild, ...primitiveProps } = props;\n const Comp = asChild ? Slot : node;\n if (typeof window !== \"undefined\") {\n window[Symbol.for(\"radix-ui\")] = true;\n }\n return /* @__PURE__ */ jsx(Comp, { ...primitiveProps, ref: forwardedRef });\n });\n Node.displayName = `Primitive.${node}`;\n return { ...primitive, [node]: Node };\n}, {});\nfunction dispatchDiscreteCustomEvent(target, event) {\n if (target) ReactDOM.flushSync(() => target.dispatchEvent(event));\n}\nvar Root = Primitive;\nexport {\n Primitive,\n Root,\n dispatchDiscreteCustomEvent\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["NODES","Primitive","primitive","node","Node","React","props","forwardedRef","asChild","primitiveProps","Comp","Slot","jsx"],"mappings":";;;;AAKA,IAAIA,IAAQ;AAAA,EACV;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,GACIC,IAAYD,EAAM,OAAO,CAACE,GAAWC,MAAS;AAChD,QAAMC,IAAOC,EAAM,WAAW,CAACC,GAAOC,MAAiB;AACrD,UAAM,EAAE,SAAAC,GAAS,GAAGC,EAAc,IAAKH,GACjCI,IAAOF,IAAUG,IAAOR;AAC9B,WAAI,OAAO,SAAW,QACpB,OAAO,OAAO,IAAI,UAAU,CAAC,IAAI,KAEZS,gBAAAA,EAAAA,IAAIF,GAAM,EAAE,GAAGD,GAAgB,KAAKF,GAAc;AAAA,EAC7E,CAAG;AACD,SAAAH,EAAK,cAAc,aAAaD,CAAI,IAC7B,EAAE,GAAGD,GAAW,CAACC,CAAI,GAAGC,EAAM;AACvC,GAAG,CAAE,CAAA;","x_google_ignoreList":[0]}
|
package/dist/index.es260.js
CHANGED
@@ -1,72 +1,5 @@
|
|
1
|
-
|
2
|
-
import { useComposedRefs as E } from "./index.es247.js";
|
3
|
-
import { useLayoutEffect as A } from "./index.es274.js";
|
4
|
-
function T(n, e) {
|
5
|
-
return a.useReducer((r, t) => e[r][t] ?? r, n);
|
6
|
-
}
|
7
|
-
var R = (n) => {
|
8
|
-
const { present: e, children: r } = n, t = v(e), i = typeof r == "function" ? r({ present: t.isPresent }) : a.Children.only(r), c = E(t.ref, P(i));
|
9
|
-
return typeof r == "function" || t.isPresent ? a.cloneElement(i, { ref: c }) : null;
|
10
|
-
};
|
11
|
-
R.displayName = "Presence";
|
12
|
-
function v(n) {
|
13
|
-
const [e, r] = a.useState(), t = a.useRef({}), i = a.useRef(n), c = a.useRef("none"), p = n ? "mounted" : "unmounted", [N, s] = T(p, {
|
14
|
-
mounted: {
|
15
|
-
UNMOUNT: "unmounted",
|
16
|
-
ANIMATION_OUT: "unmountSuspended"
|
17
|
-
},
|
18
|
-
unmountSuspended: {
|
19
|
-
MOUNT: "mounted",
|
20
|
-
ANIMATION_END: "unmounted"
|
21
|
-
},
|
22
|
-
unmounted: {
|
23
|
-
MOUNT: "mounted"
|
24
|
-
}
|
25
|
-
});
|
26
|
-
return a.useEffect(() => {
|
27
|
-
const o = l(t.current);
|
28
|
-
c.current = N === "mounted" ? o : "none";
|
29
|
-
}, [N]), A(() => {
|
30
|
-
const o = t.current, m = i.current;
|
31
|
-
if (m !== n) {
|
32
|
-
const f = c.current, u = l(o);
|
33
|
-
n ? s("MOUNT") : u === "none" || (o == null ? void 0 : o.display) === "none" ? s("UNMOUNT") : s(m && f !== u ? "ANIMATION_OUT" : "UNMOUNT"), i.current = n;
|
34
|
-
}
|
35
|
-
}, [n, s]), A(() => {
|
36
|
-
if (e) {
|
37
|
-
let o;
|
38
|
-
const m = e.ownerDocument.defaultView ?? window, d = (u) => {
|
39
|
-
const g = l(t.current).includes(u.animationName);
|
40
|
-
if (u.target === e && g && (s("ANIMATION_END"), !i.current)) {
|
41
|
-
const O = e.style.animationFillMode;
|
42
|
-
e.style.animationFillMode = "forwards", o = m.setTimeout(() => {
|
43
|
-
e.style.animationFillMode === "forwards" && (e.style.animationFillMode = O);
|
44
|
-
});
|
45
|
-
}
|
46
|
-
}, f = (u) => {
|
47
|
-
u.target === e && (c.current = l(t.current));
|
48
|
-
};
|
49
|
-
return e.addEventListener("animationstart", f), e.addEventListener("animationcancel", d), e.addEventListener("animationend", d), () => {
|
50
|
-
m.clearTimeout(o), e.removeEventListener("animationstart", f), e.removeEventListener("animationcancel", d), e.removeEventListener("animationend", d);
|
51
|
-
};
|
52
|
-
} else
|
53
|
-
s("ANIMATION_END");
|
54
|
-
}, [e, s]), {
|
55
|
-
isPresent: ["mounted", "unmountSuspended"].includes(N),
|
56
|
-
ref: a.useCallback((o) => {
|
57
|
-
o && (t.current = getComputedStyle(o)), r(o);
|
58
|
-
}, [])
|
59
|
-
};
|
60
|
-
}
|
61
|
-
function l(n) {
|
62
|
-
return (n == null ? void 0 : n.animationName) || "none";
|
63
|
-
}
|
64
|
-
function P(n) {
|
65
|
-
var t, i;
|
66
|
-
let e = (t = Object.getOwnPropertyDescriptor(n.props, "ref")) == null ? void 0 : t.get, r = e && "isReactWarning" in e && e.isReactWarning;
|
67
|
-
return r ? n.ref : (e = (i = Object.getOwnPropertyDescriptor(n, "ref")) == null ? void 0 : i.get, r = e && "isReactWarning" in e && e.isReactWarning, r ? n.props.ref : n.props.ref || n.ref);
|
68
|
-
}
|
1
|
+
var r = {};
|
69
2
|
export {
|
70
|
-
|
3
|
+
r as __exports
|
71
4
|
};
|
72
5
|
//# sourceMappingURL=index.es260.js.map
|
package/dist/index.es260.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.es260.js","sources":[
|
1
|
+
{"version":3,"file":"index.es260.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
package/dist/index.es261.js
CHANGED
@@ -1,32 +1,5 @@
|
|
1
|
-
|
2
|
-
import "react-dom";
|
3
|
-
import { Slot as n } from "./index.es275.js";
|
4
|
-
import { j as f } from "./index.es141.js";
|
5
|
-
var u = [
|
6
|
-
"a",
|
7
|
-
"button",
|
8
|
-
"div",
|
9
|
-
"form",
|
10
|
-
"h2",
|
11
|
-
"h3",
|
12
|
-
"img",
|
13
|
-
"input",
|
14
|
-
"label",
|
15
|
-
"li",
|
16
|
-
"nav",
|
17
|
-
"ol",
|
18
|
-
"p",
|
19
|
-
"span",
|
20
|
-
"svg",
|
21
|
-
"ul"
|
22
|
-
], c = u.reduce((o, r) => {
|
23
|
-
const i = s.forwardRef((t, e) => {
|
24
|
-
const { asChild: m, ...a } = t, p = m ? n : r;
|
25
|
-
return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ f.jsx(p, { ...a, ref: e });
|
26
|
-
});
|
27
|
-
return i.displayName = `Primitive.${r}`, { ...o, [r]: i };
|
28
|
-
}, {});
|
1
|
+
var e = {};
|
29
2
|
export {
|
30
|
-
|
3
|
+
e as __exports
|
31
4
|
};
|
32
5
|
//# sourceMappingURL=index.es261.js.map
|
package/dist/index.es261.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.es261.js","sources":[
|
1
|
+
{"version":3,"file":"index.es261.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
package/dist/index.es269.js
CHANGED
@@ -6,7 +6,7 @@ import { createContextScope as Re } from "./index.es248.js";
|
|
6
6
|
import { Primitive as z } from "./index.es250.js";
|
7
7
|
import { useCallbackRef as Ee } from "./index.es262.js";
|
8
8
|
import { useLayoutEffect as B } from "./index.es274.js";
|
9
|
-
import { useSize as Ne } from "./index.
|
9
|
+
import { useSize as Ne } from "./index.es257.js";
|
10
10
|
import { j as f } from "./index.es141.js";
|
11
11
|
import { autoUpdate as _e } from "./index.es295.js";
|
12
12
|
var N = "Popper", [L, Ue] = Re(N), [$e, Z] = L(N), U = (e) => {
|