@anoki/fse-ui 1.0.424 → 1.0.426
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/navigations/Footer/Footer.css +1 -1
- package/dist/index.cjs16.js +1 -1
- package/dist/index.cjs16.js.map +1 -1
- package/dist/index.cjs18.js +1 -1
- package/dist/index.cjs186.js +1 -1
- package/dist/index.cjs186.js.map +1 -1
- package/dist/index.cjs190.js +1 -1
- package/dist/index.cjs191.js +1 -1
- package/dist/index.cjs197.js +1 -1
- package/dist/index.cjs208.js +1 -1
- package/dist/index.cjs235.js +1 -1
- package/dist/index.cjs237.js +2 -2
- package/dist/index.cjs237.js.map +1 -1
- package/dist/index.cjs24.js +1 -1
- package/dist/index.cjs25.js +1 -1
- package/dist/index.cjs26.js +1 -1
- package/dist/index.cjs27.js +1 -1
- package/dist/index.cjs280.js +2 -2
- package/dist/index.cjs281.js +9 -9
- package/dist/index.cjs289.js +1 -1
- package/dist/index.cjs290.js +1 -1
- package/dist/index.cjs291.js.map +1 -1
- package/dist/index.cjs292.js +1 -1
- package/dist/index.cjs292.js.map +1 -1
- package/dist/index.cjs293.js +1 -1
- package/dist/index.cjs293.js.map +1 -1
- package/dist/index.cjs296.js +1 -1
- package/dist/index.cjs296.js.map +1 -1
- package/dist/index.cjs297.js.map +1 -1
- package/dist/index.cjs299.js +1 -1
- package/dist/index.cjs299.js.map +1 -1
- package/dist/index.cjs30.js +1 -1
- package/dist/index.cjs301.js +1 -1
- package/dist/index.cjs301.js.map +1 -1
- package/dist/index.cjs302.js +1 -1
- package/dist/index.cjs302.js.map +1 -1
- package/dist/index.cjs303.js.map +1 -1
- package/dist/index.cjs305.js +1 -1
- package/dist/index.cjs305.js.map +1 -1
- package/dist/index.cjs306.js +1 -1
- package/dist/index.cjs307.js +1 -1
- package/dist/index.cjs309.js +1 -1
- package/dist/index.cjs309.js.map +1 -1
- package/dist/index.cjs310.js +2 -0
- package/dist/index.cjs310.js.map +1 -0
- package/dist/index.cjs311.js +2 -0
- package/dist/index.cjs311.js.map +1 -0
- package/dist/index.cjs312.js +2 -0
- package/dist/index.cjs312.js.map +1 -0
- package/dist/index.cjs313.js +2 -0
- package/dist/index.cjs313.js.map +1 -0
- package/dist/index.cjs314.js +2 -0
- package/dist/index.cjs314.js.map +1 -0
- package/dist/index.cjs315.js +1 -1
- package/dist/index.cjs315.js.map +1 -1
- package/dist/index.cjs316.js +1 -1
- package/dist/index.cjs316.js.map +1 -1
- package/dist/index.cjs32.js +1 -1
- package/dist/index.cjs320.js +1 -1
- package/dist/index.cjs320.js.map +1 -1
- package/dist/index.cjs321.js +1 -1
- package/dist/index.cjs321.js.map +1 -1
- package/dist/index.cjs322.js +1 -1
- package/dist/index.cjs322.js.map +1 -1
- package/dist/index.cjs323.js +4 -1
- package/dist/index.cjs323.js.map +1 -1
- package/dist/index.cjs324.js +1 -1
- package/dist/index.cjs324.js.map +1 -1
- package/dist/index.cjs325.js +1 -1
- package/dist/index.cjs325.js.map +1 -1
- package/dist/index.cjs326.js +1 -1
- package/dist/index.cjs326.js.map +1 -1
- package/dist/{index.cjs350.js → index.cjs327.js} +2 -2
- package/dist/{index.cjs350.js.map → index.cjs327.js.map} +1 -1
- package/dist/index.cjs328.js +2 -0
- package/dist/index.cjs328.js.map +1 -0
- package/dist/{index.cjs351.js → index.cjs329.js} +4 -4
- package/dist/{index.cjs351.js.map → index.cjs329.js.map} +1 -1
- package/dist/index.cjs330.js +1 -1
- package/dist/index.cjs330.js.map +1 -1
- package/dist/index.cjs331.js +1 -1
- package/dist/index.cjs331.js.map +1 -1
- package/dist/index.cjs332.js +1 -1
- package/dist/index.cjs332.js.map +1 -1
- package/dist/index.cjs333.js +2 -0
- package/dist/{index.cjs355.js.map → index.cjs333.js.map} +1 -1
- package/dist/index.cjs334.js +2 -0
- package/dist/index.cjs334.js.map +1 -0
- package/dist/index.cjs340.js +1 -1
- package/dist/index.cjs340.js.map +1 -1
- package/dist/index.cjs341.js +1 -1
- package/dist/index.cjs341.js.map +1 -1
- package/dist/index.cjs342.js +1 -4
- package/dist/index.cjs342.js.map +1 -1
- package/dist/index.cjs343.js +1 -1
- package/dist/index.cjs343.js.map +1 -1
- package/dist/index.cjs344.js +1 -1
- package/dist/index.cjs344.js.map +1 -1
- package/dist/{index.cjs361.js → index.cjs345.js} +1 -1
- package/dist/{index.cjs361.js.map → index.cjs345.js.map} +1 -1
- package/dist/index.cjs35.js +1 -1
- package/dist/index.cjs37.js +1 -1
- package/dist/index.cjs47.js +1 -1
- package/dist/index.cjs68.js +1 -1
- package/dist/index.cjs69.js +1 -1
- package/dist/index.cjs93.js +1 -1
- package/dist/index.es142.js +1 -1
- package/dist/index.es144.js +2 -2
- package/dist/index.es145.js +24 -24
- package/dist/index.es152.js +1 -1
- package/dist/index.es16.js +13 -13
- package/dist/index.es16.js.map +1 -1
- package/dist/index.es18.js +22 -22
- package/dist/index.es186.js +16 -16
- package/dist/index.es186.js.map +1 -1
- package/dist/index.es190.js +25 -25
- package/dist/index.es191.js +10 -10
- package/dist/index.es197.js +3 -3
- package/dist/index.es208.js +48 -48
- package/dist/index.es235.js +28 -28
- package/dist/index.es237.js +22 -22
- package/dist/index.es237.js.map +1 -1
- package/dist/index.es24.js +4 -4
- package/dist/index.es25.js +38 -38
- package/dist/index.es26.js +21 -21
- package/dist/index.es27.js +2 -2
- package/dist/index.es280.js +20 -20
- package/dist/index.es281.js +91 -91
- package/dist/index.es288.js +14 -14
- package/dist/index.es289.js +40 -40
- package/dist/index.es290.js +10 -10
- package/dist/index.es291.js.map +1 -1
- package/dist/index.es292.js +75 -75
- package/dist/index.es292.js.map +1 -1
- package/dist/index.es293.js +9 -9
- package/dist/index.es293.js.map +1 -1
- package/dist/index.es296.js +27 -31
- package/dist/index.es296.js.map +1 -1
- package/dist/index.es297.js.map +1 -1
- package/dist/index.es298.js +4 -4
- package/dist/index.es299.js +8 -8
- package/dist/index.es299.js.map +1 -1
- package/dist/index.es301.js.map +1 -1
- package/dist/index.es302.js +13 -13
- package/dist/index.es302.js.map +1 -1
- package/dist/index.es303.js.map +1 -1
- package/dist/index.es305.js.map +1 -1
- package/dist/index.es306.js +23 -23
- package/dist/index.es307.js +3 -3
- package/dist/index.es309.js +11 -14
- package/dist/index.es309.js.map +1 -1
- package/dist/index.es310.js +208 -0
- package/dist/index.es310.js.map +1 -0
- package/dist/index.es311.js +25 -0
- package/dist/index.es311.js.map +1 -0
- package/dist/index.es312.js +28 -0
- package/dist/index.es312.js.map +1 -0
- package/dist/index.es313.js +396 -0
- package/dist/index.es313.js.map +1 -0
- package/dist/index.es314.js +28 -0
- package/dist/index.es314.js.map +1 -0
- package/dist/index.es315.js +28 -124
- package/dist/index.es315.js.map +1 -1
- package/dist/index.es316.js +5 -135
- package/dist/index.es316.js.map +1 -1
- package/dist/index.es32.js +4 -4
- package/dist/index.es320.js +5 -12
- package/dist/index.es320.js.map +1 -1
- package/dist/index.es321.js +3 -205
- package/dist/index.es321.js.map +1 -1
- package/dist/index.es322.js +23 -21
- package/dist/index.es322.js.map +1 -1
- package/dist/index.es323.js +108 -23
- package/dist/index.es323.js.map +1 -1
- package/dist/index.es324.js +14 -391
- package/dist/index.es324.js.map +1 -1
- package/dist/index.es325.js +522 -5
- package/dist/index.es325.js.map +1 -1
- package/dist/index.es326.js +127 -29
- package/dist/index.es326.js.map +1 -1
- package/dist/{index.es350.js → index.es327.js} +43 -43
- package/dist/{index.es350.js.map → index.es327.js.map} +1 -1
- package/dist/index.es328.js +9 -0
- package/dist/index.es328.js.map +1 -0
- package/dist/{index.es351.js → index.es329.js} +17 -17
- package/dist/{index.es351.js.map → index.es329.js.map} +1 -1
- package/dist/index.es330.js +8 -24
- package/dist/index.es330.js.map +1 -1
- package/dist/index.es331.js +14 -29
- package/dist/index.es331.js.map +1 -1
- package/dist/index.es332.js +62 -5
- package/dist/index.es332.js.map +1 -1
- package/dist/{index.es355.js → index.es333.js} +2 -2
- package/dist/{index.es355.js.map → index.es333.js.map} +1 -1
- package/dist/index.es334.js +18 -0
- package/dist/index.es334.js.map +1 -0
- package/dist/index.es340.js +4 -3
- package/dist/index.es340.js.map +1 -1
- package/dist/index.es341.js +22 -23
- package/dist/index.es341.js.map +1 -1
- package/dist/index.es342.js +23 -110
- package/dist/index.es342.js.map +1 -1
- package/dist/index.es343.js +12 -15
- package/dist/index.es343.js.map +1 -1
- package/dist/index.es344.js +28 -29
- package/dist/index.es344.js.map +1 -1
- package/dist/{index.es361.js → index.es345.js} +1 -1
- package/dist/{index.es361.js.map → index.es345.js.map} +1 -1
- package/dist/index.es35.js +14 -14
- package/dist/index.es37.js +6 -6
- package/dist/index.es47.js +2 -2
- package/dist/index.es5.js +4 -4
- package/dist/index.es65.js +44 -44
- package/dist/index.es68.js +25 -25
- package/dist/index.es69.js +23 -23
- package/dist/index.es93.js +17 -17
- package/package.json +2 -5
- package/dist/index.cjs317.js +0 -2
- package/dist/index.cjs317.js.map +0 -1
- package/dist/index.cjs318.js +0 -2
- package/dist/index.cjs318.js.map +0 -1
- package/dist/index.cjs319.js +0 -2
- package/dist/index.cjs319.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.cjs348.js +0 -2
- package/dist/index.cjs348.js.map +0 -1
- package/dist/index.cjs349.js +0 -2
- package/dist/index.cjs349.js.map +0 -1
- package/dist/index.cjs352.js +0 -2
- package/dist/index.cjs352.js.map +0 -1
- package/dist/index.cjs353.js +0 -2
- package/dist/index.cjs353.js.map +0 -1
- package/dist/index.cjs354.js +0 -2
- package/dist/index.cjs354.js.map +0 -1
- package/dist/index.cjs355.js +0 -2
- package/dist/index.cjs356.js +0 -2
- package/dist/index.cjs356.js.map +0 -1
- package/dist/index.cjs357.js +0 -2
- package/dist/index.cjs357.js.map +0 -1
- package/dist/index.cjs358.js +0 -2
- package/dist/index.cjs358.js.map +0 -1
- package/dist/index.cjs359.js +0 -2
- package/dist/index.cjs359.js.map +0 -1
- package/dist/index.cjs360.js +0 -2
- package/dist/index.cjs360.js.map +0 -1
- package/dist/index.cjs362.js +0 -2
- package/dist/index.cjs362.js.map +0 -1
- package/dist/index.es317.js +0 -17
- package/dist/index.es317.js.map +0 -1
- package/dist/index.es318.js +0 -36
- package/dist/index.es318.js.map +0 -1
- package/dist/index.es319.js +0 -45
- package/dist/index.es319.js.map +0 -1
- package/dist/index.es338.js +0 -45
- package/dist/index.es338.js.map +0 -1
- package/dist/index.es339.js +0 -8
- package/dist/index.es339.js.map +0 -1
- package/dist/index.es348.js +0 -526
- package/dist/index.es348.js.map +0 -1
- package/dist/index.es349.js +0 -130
- package/dist/index.es349.js.map +0 -1
- package/dist/index.es352.js +0 -12
- package/dist/index.es352.js.map +0 -1
- package/dist/index.es353.js +0 -17
- package/dist/index.es353.js.map +0 -1
- package/dist/index.es354.js +0 -65
- package/dist/index.es354.js.map +0 -1
- package/dist/index.es356.js +0 -45
- package/dist/index.es356.js.map +0 -1
- package/dist/index.es357.js +0 -7
- package/dist/index.es357.js.map +0 -1
- package/dist/index.es358.js +0 -26
- package/dist/index.es358.js.map +0 -1
- package/dist/index.es359.js +0 -16
- package/dist/index.es359.js.map +0 -1
- package/dist/index.es360.js +0 -31
- package/dist/index.es360.js.map +0 -1
- package/dist/index.es362.js +0 -26
- package/dist/index.es362.js.map +0 -1
package/dist/index.es319.js
DELETED
@@ -1,45 +0,0 @@
|
|
1
|
-
import * as l from "react";
|
2
|
-
import { composeRefs as u } from "./index.es288.js";
|
3
|
-
import { j as c } from "./index.es161.js";
|
4
|
-
var d = l.forwardRef((r, n) => {
|
5
|
-
const { children: e, ...t } = r, o = l.Children.toArray(e), i = o.find(g);
|
6
|
-
if (i) {
|
7
|
-
const s = i.props.children, a = o.map((p) => p === i ? l.Children.count(s) > 1 ? l.Children.only(null) : l.isValidElement(s) ? s.props.children : null : p);
|
8
|
-
return /* @__PURE__ */ c.jsx(f, { ...t, ref: n, children: l.isValidElement(s) ? l.cloneElement(s, void 0, a) : null });
|
9
|
-
}
|
10
|
-
return /* @__PURE__ */ c.jsx(f, { ...t, ref: n, children: e });
|
11
|
-
});
|
12
|
-
d.displayName = "Slot";
|
13
|
-
var f = l.forwardRef((r, n) => {
|
14
|
-
const { children: e, ...t } = r;
|
15
|
-
if (l.isValidElement(e)) {
|
16
|
-
const o = h(e), i = y(t, e.props);
|
17
|
-
return e.type !== l.Fragment && (i.ref = n ? u(n, o) : o), l.cloneElement(e, i);
|
18
|
-
}
|
19
|
-
return l.Children.count(e) > 1 ? l.Children.only(null) : null;
|
20
|
-
});
|
21
|
-
f.displayName = "SlotClone";
|
22
|
-
var m = ({ children: r }) => /* @__PURE__ */ c.jsx(c.Fragment, { children: r });
|
23
|
-
function g(r) {
|
24
|
-
return l.isValidElement(r) && r.type === m;
|
25
|
-
}
|
26
|
-
function y(r, n) {
|
27
|
-
const e = { ...n };
|
28
|
-
for (const t in n) {
|
29
|
-
const o = r[t], i = n[t];
|
30
|
-
/^on[A-Z]/.test(t) ? o && i ? e[t] = (...a) => {
|
31
|
-
i(...a), o(...a);
|
32
|
-
} : o && (e[t] = o) : t === "style" ? e[t] = { ...o, ...i } : t === "className" && (e[t] = [o, i].filter(Boolean).join(" "));
|
33
|
-
}
|
34
|
-
return { ...r, ...e };
|
35
|
-
}
|
36
|
-
function h(r) {
|
37
|
-
var t, o;
|
38
|
-
let n = (t = Object.getOwnPropertyDescriptor(r.props, "ref")) == null ? void 0 : t.get, e = n && "isReactWarning" in n && n.isReactWarning;
|
39
|
-
return e ? r.ref : (n = (o = Object.getOwnPropertyDescriptor(r, "ref")) == null ? void 0 : o.get, e = n && "isReactWarning" in n && n.isReactWarning, e ? r.props.ref : r.props.ref || r.ref);
|
40
|
-
}
|
41
|
-
export {
|
42
|
-
d as Slot,
|
43
|
-
m as Slottable
|
44
|
-
};
|
45
|
-
//# sourceMappingURL=index.es319.js.map
|
package/dist/index.es319.js.map
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.es319.js","sources":["../node_modules/@radix-ui/react-dialog/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\";\nvar Slot = 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});\nSlot.displayName = \"Slot\";\nvar 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});\nSlotClone.displayName = \"SlotClone\";\nvar Slottable = ({ children }) => {\n return /* @__PURE__ */ jsx(Fragment2, { children });\n};\nfunction isSlottable(child) {\n return React.isValidElement(child) && child.type === Slottable;\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}\nvar Root = Slot;\nexport {\n Root,\n Slot,\n Slottable\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["Slot","React","props","forwardedRef","children","slotProps","childrenArray","slottable","isSlottable","newElement","newChildren","child","jsx","SlotClone","childrenRef","getElementRef","props2","mergeProps","composeRefs","Slottable","Fragment2","childProps","overrideProps","propName","slotPropValue","childPropValue","args","element","getter","_a","mayWarn","_b"],"mappings":";;;AAIG,IAACA,IAAOC,EAAM,WAAW,CAACC,GAAOC,MAAiB;AACnD,QAAM,EAAE,UAAAC,GAAU,GAAGC,EAAS,IAAKH,GAC7BI,IAAgBL,EAAM,SAAS,QAAQG,CAAQ,GAC/CG,IAAYD,EAAc,KAAKE,CAAW;AAChD,MAAID,GAAW;AACb,UAAME,IAAaF,EAAU,MAAM,UAC7BG,IAAcJ,EAAc,IAAI,CAACK,MACjCA,MAAUJ,IACRN,EAAM,SAAS,MAAMQ,CAAU,IAAI,IAAUR,EAAM,SAAS,KAAK,IAAI,IAClEA,EAAM,eAAeQ,CAAU,IAAIA,EAAW,MAAM,WAAW,OAE/DE,CAEV;AACD,WAAuBC,gBAAAA,EAAAA,IAAIC,GAAW,EAAE,GAAGR,GAAW,KAAKF,GAAc,UAAUF,EAAM,eAAeQ,CAAU,IAAIR,EAAM,aAAaQ,GAAY,QAAQC,CAAW,IAAI,MAAM;AAAA,EACtL;AACE,SAAuBE,gBAAAA,EAAAA,IAAIC,GAAW,EAAE,GAAGR,GAAW,KAAKF,GAAc,UAAAC,GAAU;AACrF,CAAC;AACDJ,EAAK,cAAc;AACnB,IAAIa,IAAYZ,EAAM,WAAW,CAACC,GAAOC,MAAiB;AACxD,QAAM,EAAE,UAAAC,GAAU,GAAGC,EAAS,IAAKH;AACnC,MAAID,EAAM,eAAeG,CAAQ,GAAG;AAClC,UAAMU,IAAcC,EAAcX,CAAQ,GACpCY,IAASC,EAAWZ,GAAWD,EAAS,KAAK;AACnD,WAAIA,EAAS,SAASH,EAAM,aAC1Be,EAAO,MAAMb,IAAee,EAAYf,GAAcW,CAAW,IAAIA,IAEhEb,EAAM,aAAaG,GAAUY,CAAM;AAAA,EAC9C;AACE,SAAOf,EAAM,SAAS,MAAMG,CAAQ,IAAI,IAAIH,EAAM,SAAS,KAAK,IAAI,IAAI;AAC1E,CAAC;AACDY,EAAU,cAAc;AACrB,IAACM,IAAY,CAAC,EAAE,UAAAf,QACMQ,gBAAAA,MAAIQ,EAAAA,UAAW,EAAE,UAAAhB,GAAU;AAEpD,SAASI,EAAYG,GAAO;AAC1B,SAAOV,EAAM,eAAeU,CAAK,KAAKA,EAAM,SAASQ;AACvD;AACA,SAASF,EAAWZ,GAAWgB,GAAY;AACzC,QAAMC,IAAgB,EAAE,GAAGD,EAAY;AACvC,aAAWE,KAAYF,GAAY;AACjC,UAAMG,IAAgBnB,EAAUkB,CAAQ,GAClCE,IAAiBJ,EAAWE,CAAQ;AAE1C,IADkB,WAAW,KAAKA,CAAQ,IAEpCC,KAAiBC,IACnBH,EAAcC,CAAQ,IAAI,IAAIG,MAAS;AACrC,MAAAD,EAAe,GAAGC,CAAI,GACtBF,EAAc,GAAGE,CAAI;AAAA,IACtB,IACQF,MACTF,EAAcC,CAAQ,IAAIC,KAEnBD,MAAa,UACtBD,EAAcC,CAAQ,IAAI,EAAE,GAAGC,GAAe,GAAGC,EAAgB,IACxDF,MAAa,gBACtBD,EAAcC,CAAQ,IAAI,CAACC,GAAeC,CAAc,EAAE,OAAO,OAAO,EAAE,KAAK,GAAG;AAAA,EAExF;AACE,SAAO,EAAE,GAAGpB,GAAW,GAAGiB,EAAe;AAC3C;AACA,SAASP,EAAcY,GAAS;;AAC9B,MAAIC,KAASC,IAAA,OAAO,yBAAyBF,EAAQ,OAAO,KAAK,MAApD,gBAAAE,EAAuD,KAChEC,IAAUF,KAAU,oBAAoBA,KAAUA,EAAO;AAC7D,SAAIE,IACKH,EAAQ,OAEjBC,KAASG,IAAA,OAAO,yBAAyBJ,GAAS,KAAK,MAA9C,gBAAAI,EAAiD,KAC1DD,IAAUF,KAAU,oBAAoBA,KAAUA,EAAO,gBACrDE,IACKH,EAAQ,MAAM,MAEhBA,EAAQ,MAAM,OAAOA,EAAQ;AACtC;","x_google_ignoreList":[0]}
|
package/dist/index.es338.js
DELETED
@@ -1,45 +0,0 @@
|
|
1
|
-
import * as l from "react";
|
2
|
-
import { composeRefs as u } from "./index.es288.js";
|
3
|
-
import { j as c } from "./index.es161.js";
|
4
|
-
var d = l.forwardRef((r, n) => {
|
5
|
-
const { children: e, ...t } = r, o = l.Children.toArray(e), i = o.find(g);
|
6
|
-
if (i) {
|
7
|
-
const s = i.props.children, a = o.map((p) => p === i ? l.Children.count(s) > 1 ? l.Children.only(null) : l.isValidElement(s) ? s.props.children : null : p);
|
8
|
-
return /* @__PURE__ */ c.jsx(f, { ...t, ref: n, children: l.isValidElement(s) ? l.cloneElement(s, void 0, a) : null });
|
9
|
-
}
|
10
|
-
return /* @__PURE__ */ c.jsx(f, { ...t, ref: n, children: e });
|
11
|
-
});
|
12
|
-
d.displayName = "Slot";
|
13
|
-
var f = l.forwardRef((r, n) => {
|
14
|
-
const { children: e, ...t } = r;
|
15
|
-
if (l.isValidElement(e)) {
|
16
|
-
const o = h(e), i = y(t, e.props);
|
17
|
-
return e.type !== l.Fragment && (i.ref = n ? u(n, o) : o), l.cloneElement(e, i);
|
18
|
-
}
|
19
|
-
return l.Children.count(e) > 1 ? l.Children.only(null) : null;
|
20
|
-
});
|
21
|
-
f.displayName = "SlotClone";
|
22
|
-
var m = ({ children: r }) => /* @__PURE__ */ c.jsx(c.Fragment, { children: r });
|
23
|
-
function g(r) {
|
24
|
-
return l.isValidElement(r) && r.type === m;
|
25
|
-
}
|
26
|
-
function y(r, n) {
|
27
|
-
const e = { ...n };
|
28
|
-
for (const t in n) {
|
29
|
-
const o = r[t], i = n[t];
|
30
|
-
/^on[A-Z]/.test(t) ? o && i ? e[t] = (...a) => {
|
31
|
-
i(...a), o(...a);
|
32
|
-
} : o && (e[t] = o) : t === "style" ? e[t] = { ...o, ...i } : t === "className" && (e[t] = [o, i].filter(Boolean).join(" "));
|
33
|
-
}
|
34
|
-
return { ...r, ...e };
|
35
|
-
}
|
36
|
-
function h(r) {
|
37
|
-
var t, o;
|
38
|
-
let n = (t = Object.getOwnPropertyDescriptor(r.props, "ref")) == null ? void 0 : t.get, e = n && "isReactWarning" in n && n.isReactWarning;
|
39
|
-
return e ? r.ref : (n = (o = Object.getOwnPropertyDescriptor(r, "ref")) == null ? void 0 : o.get, e = n && "isReactWarning" in n && n.isReactWarning, e ? r.props.ref : r.props.ref || r.ref);
|
40
|
-
}
|
41
|
-
export {
|
42
|
-
d as Slot,
|
43
|
-
m as Slottable
|
44
|
-
};
|
45
|
-
//# sourceMappingURL=index.es338.js.map
|
package/dist/index.es338.js.map
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.es338.js","sources":["../node_modules/@radix-ui/react-checkbox/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\";\nvar Slot = 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});\nSlot.displayName = \"Slot\";\nvar 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});\nSlotClone.displayName = \"SlotClone\";\nvar Slottable = ({ children }) => {\n return /* @__PURE__ */ jsx(Fragment2, { children });\n};\nfunction isSlottable(child) {\n return React.isValidElement(child) && child.type === Slottable;\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}\nvar Root = Slot;\nexport {\n Root,\n Slot,\n Slottable\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["Slot","React","props","forwardedRef","children","slotProps","childrenArray","slottable","isSlottable","newElement","newChildren","child","jsx","SlotClone","childrenRef","getElementRef","props2","mergeProps","composeRefs","Slottable","Fragment2","childProps","overrideProps","propName","slotPropValue","childPropValue","args","element","getter","_a","mayWarn","_b"],"mappings":";;;AAIG,IAACA,IAAOC,EAAM,WAAW,CAACC,GAAOC,MAAiB;AACnD,QAAM,EAAE,UAAAC,GAAU,GAAGC,EAAS,IAAKH,GAC7BI,IAAgBL,EAAM,SAAS,QAAQG,CAAQ,GAC/CG,IAAYD,EAAc,KAAKE,CAAW;AAChD,MAAID,GAAW;AACb,UAAME,IAAaF,EAAU,MAAM,UAC7BG,IAAcJ,EAAc,IAAI,CAACK,MACjCA,MAAUJ,IACRN,EAAM,SAAS,MAAMQ,CAAU,IAAI,IAAUR,EAAM,SAAS,KAAK,IAAI,IAClEA,EAAM,eAAeQ,CAAU,IAAIA,EAAW,MAAM,WAAW,OAE/DE,CAEV;AACD,WAAuBC,gBAAAA,EAAAA,IAAIC,GAAW,EAAE,GAAGR,GAAW,KAAKF,GAAc,UAAUF,EAAM,eAAeQ,CAAU,IAAIR,EAAM,aAAaQ,GAAY,QAAQC,CAAW,IAAI,MAAM;AAAA,EACtL;AACE,SAAuBE,gBAAAA,EAAAA,IAAIC,GAAW,EAAE,GAAGR,GAAW,KAAKF,GAAc,UAAAC,GAAU;AACrF,CAAC;AACDJ,EAAK,cAAc;AACnB,IAAIa,IAAYZ,EAAM,WAAW,CAACC,GAAOC,MAAiB;AACxD,QAAM,EAAE,UAAAC,GAAU,GAAGC,EAAS,IAAKH;AACnC,MAAID,EAAM,eAAeG,CAAQ,GAAG;AAClC,UAAMU,IAAcC,EAAcX,CAAQ,GACpCY,IAASC,EAAWZ,GAAWD,EAAS,KAAK;AACnD,WAAIA,EAAS,SAASH,EAAM,aAC1Be,EAAO,MAAMb,IAAee,EAAYf,GAAcW,CAAW,IAAIA,IAEhEb,EAAM,aAAaG,GAAUY,CAAM;AAAA,EAC9C;AACE,SAAOf,EAAM,SAAS,MAAMG,CAAQ,IAAI,IAAIH,EAAM,SAAS,KAAK,IAAI,IAAI;AAC1E,CAAC;AACDY,EAAU,cAAc;AACrB,IAACM,IAAY,CAAC,EAAE,UAAAf,QACMQ,gBAAAA,MAAIQ,EAAAA,UAAW,EAAE,UAAAhB,GAAU;AAEpD,SAASI,EAAYG,GAAO;AAC1B,SAAOV,EAAM,eAAeU,CAAK,KAAKA,EAAM,SAASQ;AACvD;AACA,SAASF,EAAWZ,GAAWgB,GAAY;AACzC,QAAMC,IAAgB,EAAE,GAAGD,EAAY;AACvC,aAAWE,KAAYF,GAAY;AACjC,UAAMG,IAAgBnB,EAAUkB,CAAQ,GAClCE,IAAiBJ,EAAWE,CAAQ;AAE1C,IADkB,WAAW,KAAKA,CAAQ,IAEpCC,KAAiBC,IACnBH,EAAcC,CAAQ,IAAI,IAAIG,MAAS;AACrC,MAAAD,EAAe,GAAGC,CAAI,GACtBF,EAAc,GAAGE,CAAI;AAAA,IACtB,IACQF,MACTF,EAAcC,CAAQ,IAAIC,KAEnBD,MAAa,UACtBD,EAAcC,CAAQ,IAAI,EAAE,GAAGC,GAAe,GAAGC,EAAgB,IACxDF,MAAa,gBACtBD,EAAcC,CAAQ,IAAI,CAACC,GAAeC,CAAc,EAAE,OAAO,OAAO,EAAE,KAAK,GAAG;AAAA,EAExF;AACE,SAAO,EAAE,GAAGpB,GAAW,GAAGiB,EAAe;AAC3C;AACA,SAASP,EAAcY,GAAS;;AAC9B,MAAIC,KAASC,IAAA,OAAO,yBAAyBF,EAAQ,OAAO,KAAK,MAApD,gBAAAE,EAAuD,KAChEC,IAAUF,KAAU,oBAAoBA,KAAUA,EAAO;AAC7D,SAAIE,IACKH,EAAQ,OAEjBC,KAASG,IAAA,OAAO,yBAAyBJ,GAAS,KAAK,MAA9C,gBAAAI,EAAiD,KAC1DD,IAAUF,KAAU,oBAAoBA,KAAUA,EAAO,gBACrDE,IACKH,EAAQ,MAAM,MAEhBA,EAAQ,MAAM,OAAOA,EAAQ;AACtC;","x_google_ignoreList":[0]}
|
package/dist/index.es339.js
DELETED
@@ -1,8 +0,0 @@
|
|
1
|
-
var r = "right-scroll-bar-position", a = "width-before-scroll-bar", l = "with-scroll-bars-hidden", e = "--removed-body-scroll-bar-size";
|
2
|
-
export {
|
3
|
-
a as fullWidthClassName,
|
4
|
-
l as noScrollbarsClassName,
|
5
|
-
e as removedBarSizeVariable,
|
6
|
-
r as zeroRightClassName
|
7
|
-
};
|
8
|
-
//# sourceMappingURL=index.es339.js.map
|
package/dist/index.es339.js.map
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.es339.js","sources":["../node_modules/react-remove-scroll-bar/dist/es2015/constants.js"],"sourcesContent":["export var zeroRightClassName = 'right-scroll-bar-position';\nexport var fullWidthClassName = 'width-before-scroll-bar';\nexport var noScrollbarsClassName = 'with-scroll-bars-hidden';\n/**\n * Name of a CSS variable containing the amount of \"hidden\" scrollbar\n * ! might be undefined ! use will fallback!\n */\nexport var removedBarSizeVariable = '--removed-body-scroll-bar-size';\n"],"names":["zeroRightClassName","fullWidthClassName","noScrollbarsClassName","removedBarSizeVariable"],"mappings":"AAAU,IAACA,IAAqB,6BACrBC,IAAqB,2BACrBC,IAAwB,2BAKxBC,IAAyB;","x_google_ignoreList":[0]}
|
package/dist/index.es348.js
DELETED
@@ -1,526 +0,0 @@
|
|
1
|
-
import { evaluate as E, getSide as V, getSideAxis as B, getOppositePlacement as Z, getExpandedPlacements as ee, getOppositeAxisPlacements as te, getAlignmentSides as ne, clamp as X, getAlignment as z, min as $, max as W, getAlignmentAxis as J, getPaddingObject as K, rectToClientRect as _, sides as ie, getOppositeAxis as N, getAxisLength as Q } from "./index.es349.js";
|
2
|
-
function I(t, e, m) {
|
3
|
-
let {
|
4
|
-
reference: a,
|
5
|
-
floating: r
|
6
|
-
} = t;
|
7
|
-
const n = B(e), o = J(e), d = Q(o), g = V(e), h = n === "y", c = a.x + a.width / 2 - r.width / 2, s = a.y + a.height / 2 - r.height / 2, f = a[d] / 2 - r[d] / 2;
|
8
|
-
let i;
|
9
|
-
switch (g) {
|
10
|
-
case "top":
|
11
|
-
i = {
|
12
|
-
x: c,
|
13
|
-
y: a.y - r.height
|
14
|
-
};
|
15
|
-
break;
|
16
|
-
case "bottom":
|
17
|
-
i = {
|
18
|
-
x: c,
|
19
|
-
y: a.y + a.height
|
20
|
-
};
|
21
|
-
break;
|
22
|
-
case "right":
|
23
|
-
i = {
|
24
|
-
x: a.x + a.width,
|
25
|
-
y: s
|
26
|
-
};
|
27
|
-
break;
|
28
|
-
case "left":
|
29
|
-
i = {
|
30
|
-
x: a.x - r.width,
|
31
|
-
y: s
|
32
|
-
};
|
33
|
-
break;
|
34
|
-
default:
|
35
|
-
i = {
|
36
|
-
x: a.x,
|
37
|
-
y: a.y
|
38
|
-
};
|
39
|
-
}
|
40
|
-
switch (z(e)) {
|
41
|
-
case "start":
|
42
|
-
i[o] -= f * (m && h ? -1 : 1);
|
43
|
-
break;
|
44
|
-
case "end":
|
45
|
-
i[o] += f * (m && h ? -1 : 1);
|
46
|
-
break;
|
47
|
-
}
|
48
|
-
return i;
|
49
|
-
}
|
50
|
-
const ae = async (t, e, m) => {
|
51
|
-
const {
|
52
|
-
placement: a = "bottom",
|
53
|
-
strategy: r = "absolute",
|
54
|
-
middleware: n = [],
|
55
|
-
platform: o
|
56
|
-
} = m, d = n.filter(Boolean), g = await (o.isRTL == null ? void 0 : o.isRTL(e));
|
57
|
-
let h = await o.getElementRects({
|
58
|
-
reference: t,
|
59
|
-
floating: e,
|
60
|
-
strategy: r
|
61
|
-
}), {
|
62
|
-
x: c,
|
63
|
-
y: s
|
64
|
-
} = I(h, a, g), f = a, i = {}, l = 0;
|
65
|
-
for (let x = 0; x < d.length; x++) {
|
66
|
-
const {
|
67
|
-
name: u,
|
68
|
-
fn: y
|
69
|
-
} = d[x], {
|
70
|
-
x: A,
|
71
|
-
y: p,
|
72
|
-
data: b,
|
73
|
-
reset: w
|
74
|
-
} = await y({
|
75
|
-
x: c,
|
76
|
-
y: s,
|
77
|
-
initialPlacement: a,
|
78
|
-
placement: f,
|
79
|
-
strategy: r,
|
80
|
-
middlewareData: i,
|
81
|
-
rects: h,
|
82
|
-
platform: o,
|
83
|
-
elements: {
|
84
|
-
reference: t,
|
85
|
-
floating: e
|
86
|
-
}
|
87
|
-
});
|
88
|
-
c = A ?? c, s = p ?? s, i = {
|
89
|
-
...i,
|
90
|
-
[u]: {
|
91
|
-
...i[u],
|
92
|
-
...b
|
93
|
-
}
|
94
|
-
}, w && l <= 50 && (l++, typeof w == "object" && (w.placement && (f = w.placement), w.rects && (h = w.rects === !0 ? await o.getElementRects({
|
95
|
-
reference: t,
|
96
|
-
floating: e,
|
97
|
-
strategy: r
|
98
|
-
}) : w.rects), {
|
99
|
-
x: c,
|
100
|
-
y: s
|
101
|
-
} = I(h, f, g)), x = -1);
|
102
|
-
}
|
103
|
-
return {
|
104
|
-
x: c,
|
105
|
-
y: s,
|
106
|
-
placement: f,
|
107
|
-
strategy: r,
|
108
|
-
middlewareData: i
|
109
|
-
};
|
110
|
-
};
|
111
|
-
async function Y(t, e) {
|
112
|
-
var m;
|
113
|
-
e === void 0 && (e = {});
|
114
|
-
const {
|
115
|
-
x: a,
|
116
|
-
y: r,
|
117
|
-
platform: n,
|
118
|
-
rects: o,
|
119
|
-
elements: d,
|
120
|
-
strategy: g
|
121
|
-
} = t, {
|
122
|
-
boundary: h = "clippingAncestors",
|
123
|
-
rootBoundary: c = "viewport",
|
124
|
-
elementContext: s = "floating",
|
125
|
-
altBoundary: f = !1,
|
126
|
-
padding: i = 0
|
127
|
-
} = E(e, t), l = K(i), u = d[f ? s === "floating" ? "reference" : "floating" : s], y = _(await n.getClippingRect({
|
128
|
-
element: (m = await (n.isElement == null ? void 0 : n.isElement(u))) == null || m ? u : u.contextElement || await (n.getDocumentElement == null ? void 0 : n.getDocumentElement(d.floating)),
|
129
|
-
boundary: h,
|
130
|
-
rootBoundary: c,
|
131
|
-
strategy: g
|
132
|
-
})), A = s === "floating" ? {
|
133
|
-
x: a,
|
134
|
-
y: r,
|
135
|
-
width: o.floating.width,
|
136
|
-
height: o.floating.height
|
137
|
-
} : o.reference, p = await (n.getOffsetParent == null ? void 0 : n.getOffsetParent(d.floating)), b = await (n.isElement == null ? void 0 : n.isElement(p)) ? await (n.getScale == null ? void 0 : n.getScale(p)) || {
|
138
|
-
x: 1,
|
139
|
-
y: 1
|
140
|
-
} : {
|
141
|
-
x: 1,
|
142
|
-
y: 1
|
143
|
-
}, w = _(n.convertOffsetParentRelativeRectToViewportRelativeRect ? await n.convertOffsetParentRelativeRectToViewportRelativeRect({
|
144
|
-
elements: d,
|
145
|
-
rect: A,
|
146
|
-
offsetParent: p,
|
147
|
-
strategy: g
|
148
|
-
}) : A);
|
149
|
-
return {
|
150
|
-
top: (y.top - w.top + l.top) / b.y,
|
151
|
-
bottom: (w.bottom - y.bottom + l.bottom) / b.y,
|
152
|
-
left: (y.left - w.left + l.left) / b.x,
|
153
|
-
right: (w.right - y.right + l.right) / b.x
|
154
|
-
};
|
155
|
-
}
|
156
|
-
const ce = (t) => ({
|
157
|
-
name: "arrow",
|
158
|
-
options: t,
|
159
|
-
async fn(e) {
|
160
|
-
const {
|
161
|
-
x: m,
|
162
|
-
y: a,
|
163
|
-
placement: r,
|
164
|
-
rects: n,
|
165
|
-
platform: o,
|
166
|
-
elements: d,
|
167
|
-
middlewareData: g
|
168
|
-
} = e, {
|
169
|
-
element: h,
|
170
|
-
padding: c = 0
|
171
|
-
} = E(t, e) || {};
|
172
|
-
if (h == null)
|
173
|
-
return {};
|
174
|
-
const s = K(c), f = {
|
175
|
-
x: m,
|
176
|
-
y: a
|
177
|
-
}, i = J(r), l = Q(i), x = await o.getDimensions(h), u = i === "y", y = u ? "top" : "left", A = u ? "bottom" : "right", p = u ? "clientHeight" : "clientWidth", b = n.reference[l] + n.reference[i] - f[i] - n.floating[l], w = f[i] - n.reference[i], O = await (o.getOffsetParent == null ? void 0 : o.getOffsetParent(h));
|
178
|
-
let P = O ? O[p] : 0;
|
179
|
-
(!P || !await (o.isElement == null ? void 0 : o.isElement(O))) && (P = d.floating[p] || n.floating[l]);
|
180
|
-
const D = b / 2 - w / 2, R = P / 2 - x[l] / 2 - 1, C = $(s[y], R), T = $(s[A], R), S = C, L = P - x[l] - T, v = P / 2 - x[l] / 2 + D, j = X(S, v, L), M = !g.arrow && z(r) != null && v !== j && n.reference[l] / 2 - (v < S ? C : T) - x[l] / 2 < 0, k = M ? v < S ? v - S : v - L : 0;
|
181
|
-
return {
|
182
|
-
[i]: f[i] + k,
|
183
|
-
data: {
|
184
|
-
[i]: j,
|
185
|
-
centerOffset: v - j - k,
|
186
|
-
...M && {
|
187
|
-
alignmentOffset: k
|
188
|
-
}
|
189
|
-
},
|
190
|
-
reset: M
|
191
|
-
};
|
192
|
-
}
|
193
|
-
}), le = function(t) {
|
194
|
-
return t === void 0 && (t = {}), {
|
195
|
-
name: "flip",
|
196
|
-
options: t,
|
197
|
-
async fn(e) {
|
198
|
-
var m, a;
|
199
|
-
const {
|
200
|
-
placement: r,
|
201
|
-
middlewareData: n,
|
202
|
-
rects: o,
|
203
|
-
initialPlacement: d,
|
204
|
-
platform: g,
|
205
|
-
elements: h
|
206
|
-
} = e, {
|
207
|
-
mainAxis: c = !0,
|
208
|
-
crossAxis: s = !0,
|
209
|
-
fallbackPlacements: f,
|
210
|
-
fallbackStrategy: i = "bestFit",
|
211
|
-
fallbackAxisSideDirection: l = "none",
|
212
|
-
flipAlignment: x = !0,
|
213
|
-
...u
|
214
|
-
} = E(t, e);
|
215
|
-
if ((m = n.arrow) != null && m.alignmentOffset)
|
216
|
-
return {};
|
217
|
-
const y = V(r), A = B(d), p = V(d) === d, b = await (g.isRTL == null ? void 0 : g.isRTL(h.floating)), w = f || (p || !x ? [Z(d)] : ee(d)), O = l !== "none";
|
218
|
-
!f && O && w.push(...te(d, x, l, b));
|
219
|
-
const P = [d, ...w], D = await Y(e, u), R = [];
|
220
|
-
let C = ((a = n.flip) == null ? void 0 : a.overflows) || [];
|
221
|
-
if (c && R.push(D[y]), s) {
|
222
|
-
const v = ne(r, o, b);
|
223
|
-
R.push(D[v[0]], D[v[1]]);
|
224
|
-
}
|
225
|
-
if (C = [...C, {
|
226
|
-
placement: r,
|
227
|
-
overflows: R
|
228
|
-
}], !R.every((v) => v <= 0)) {
|
229
|
-
var T, S;
|
230
|
-
const v = (((T = n.flip) == null ? void 0 : T.index) || 0) + 1, j = P[v];
|
231
|
-
if (j)
|
232
|
-
return {
|
233
|
-
data: {
|
234
|
-
index: v,
|
235
|
-
overflows: C
|
236
|
-
},
|
237
|
-
reset: {
|
238
|
-
placement: j
|
239
|
-
}
|
240
|
-
};
|
241
|
-
let M = (S = C.filter((k) => k.overflows[0] <= 0).sort((k, H) => k.overflows[1] - H.overflows[1])[0]) == null ? void 0 : S.placement;
|
242
|
-
if (!M)
|
243
|
-
switch (i) {
|
244
|
-
case "bestFit": {
|
245
|
-
var L;
|
246
|
-
const k = (L = C.filter((H) => {
|
247
|
-
if (O) {
|
248
|
-
const F = B(H.placement);
|
249
|
-
return F === A || // Create a bias to the `y` side axis due to horizontal
|
250
|
-
// reading directions favoring greater width.
|
251
|
-
F === "y";
|
252
|
-
}
|
253
|
-
return !0;
|
254
|
-
}).map((H) => [H.placement, H.overflows.filter((F) => F > 0).reduce((F, U) => F + U, 0)]).sort((H, F) => H[1] - F[1])[0]) == null ? void 0 : L[0];
|
255
|
-
k && (M = k);
|
256
|
-
break;
|
257
|
-
}
|
258
|
-
case "initialPlacement":
|
259
|
-
M = d;
|
260
|
-
break;
|
261
|
-
}
|
262
|
-
if (r !== M)
|
263
|
-
return {
|
264
|
-
reset: {
|
265
|
-
placement: M
|
266
|
-
}
|
267
|
-
};
|
268
|
-
}
|
269
|
-
return {};
|
270
|
-
}
|
271
|
-
};
|
272
|
-
};
|
273
|
-
function q(t, e) {
|
274
|
-
return {
|
275
|
-
top: t.top - e.height,
|
276
|
-
right: t.right - e.width,
|
277
|
-
bottom: t.bottom - e.height,
|
278
|
-
left: t.left - e.width
|
279
|
-
};
|
280
|
-
}
|
281
|
-
function G(t) {
|
282
|
-
return ie.some((e) => t[e] >= 0);
|
283
|
-
}
|
284
|
-
const re = function(t) {
|
285
|
-
return t === void 0 && (t = {}), {
|
286
|
-
name: "hide",
|
287
|
-
options: t,
|
288
|
-
async fn(e) {
|
289
|
-
const {
|
290
|
-
rects: m
|
291
|
-
} = e, {
|
292
|
-
strategy: a = "referenceHidden",
|
293
|
-
...r
|
294
|
-
} = E(t, e);
|
295
|
-
switch (a) {
|
296
|
-
case "referenceHidden": {
|
297
|
-
const n = await Y(e, {
|
298
|
-
...r,
|
299
|
-
elementContext: "reference"
|
300
|
-
}), o = q(n, m.reference);
|
301
|
-
return {
|
302
|
-
data: {
|
303
|
-
referenceHiddenOffsets: o,
|
304
|
-
referenceHidden: G(o)
|
305
|
-
}
|
306
|
-
};
|
307
|
-
}
|
308
|
-
case "escaped": {
|
309
|
-
const n = await Y(e, {
|
310
|
-
...r,
|
311
|
-
altBoundary: !0
|
312
|
-
}), o = q(n, m.floating);
|
313
|
-
return {
|
314
|
-
data: {
|
315
|
-
escapedOffsets: o,
|
316
|
-
escaped: G(o)
|
317
|
-
}
|
318
|
-
};
|
319
|
-
}
|
320
|
-
default:
|
321
|
-
return {};
|
322
|
-
}
|
323
|
-
}
|
324
|
-
};
|
325
|
-
};
|
326
|
-
async function se(t, e) {
|
327
|
-
const {
|
328
|
-
placement: m,
|
329
|
-
platform: a,
|
330
|
-
elements: r
|
331
|
-
} = t, n = await (a.isRTL == null ? void 0 : a.isRTL(r.floating)), o = V(m), d = z(m), g = B(m) === "y", h = ["left", "top"].includes(o) ? -1 : 1, c = n && g ? -1 : 1, s = E(e, t);
|
332
|
-
let {
|
333
|
-
mainAxis: f,
|
334
|
-
crossAxis: i,
|
335
|
-
alignmentAxis: l
|
336
|
-
} = typeof s == "number" ? {
|
337
|
-
mainAxis: s,
|
338
|
-
crossAxis: 0,
|
339
|
-
alignmentAxis: null
|
340
|
-
} : {
|
341
|
-
mainAxis: s.mainAxis || 0,
|
342
|
-
crossAxis: s.crossAxis || 0,
|
343
|
-
alignmentAxis: s.alignmentAxis
|
344
|
-
};
|
345
|
-
return d && typeof l == "number" && (i = d === "end" ? l * -1 : l), g ? {
|
346
|
-
x: i * c,
|
347
|
-
y: f * h
|
348
|
-
} : {
|
349
|
-
x: f * h,
|
350
|
-
y: i * c
|
351
|
-
};
|
352
|
-
}
|
353
|
-
const fe = function(t) {
|
354
|
-
return t === void 0 && (t = 0), {
|
355
|
-
name: "offset",
|
356
|
-
options: t,
|
357
|
-
async fn(e) {
|
358
|
-
var m, a;
|
359
|
-
const {
|
360
|
-
x: r,
|
361
|
-
y: n,
|
362
|
-
placement: o,
|
363
|
-
middlewareData: d
|
364
|
-
} = e, g = await se(e, t);
|
365
|
-
return o === ((m = d.offset) == null ? void 0 : m.placement) && (a = d.arrow) != null && a.alignmentOffset ? {} : {
|
366
|
-
x: r + g.x,
|
367
|
-
y: n + g.y,
|
368
|
-
data: {
|
369
|
-
...g,
|
370
|
-
placement: o
|
371
|
-
}
|
372
|
-
};
|
373
|
-
}
|
374
|
-
};
|
375
|
-
}, de = function(t) {
|
376
|
-
return t === void 0 && (t = {}), {
|
377
|
-
name: "shift",
|
378
|
-
options: t,
|
379
|
-
async fn(e) {
|
380
|
-
const {
|
381
|
-
x: m,
|
382
|
-
y: a,
|
383
|
-
placement: r
|
384
|
-
} = e, {
|
385
|
-
mainAxis: n = !0,
|
386
|
-
crossAxis: o = !1,
|
387
|
-
limiter: d = {
|
388
|
-
fn: (u) => {
|
389
|
-
let {
|
390
|
-
x: y,
|
391
|
-
y: A
|
392
|
-
} = u;
|
393
|
-
return {
|
394
|
-
x: y,
|
395
|
-
y: A
|
396
|
-
};
|
397
|
-
}
|
398
|
-
},
|
399
|
-
...g
|
400
|
-
} = E(t, e), h = {
|
401
|
-
x: m,
|
402
|
-
y: a
|
403
|
-
}, c = await Y(e, g), s = B(V(r)), f = N(s);
|
404
|
-
let i = h[f], l = h[s];
|
405
|
-
if (n) {
|
406
|
-
const u = f === "y" ? "top" : "left", y = f === "y" ? "bottom" : "right", A = i + c[u], p = i - c[y];
|
407
|
-
i = X(A, i, p);
|
408
|
-
}
|
409
|
-
if (o) {
|
410
|
-
const u = s === "y" ? "top" : "left", y = s === "y" ? "bottom" : "right", A = l + c[u], p = l - c[y];
|
411
|
-
l = X(A, l, p);
|
412
|
-
}
|
413
|
-
const x = d.fn({
|
414
|
-
...e,
|
415
|
-
[f]: i,
|
416
|
-
[s]: l
|
417
|
-
});
|
418
|
-
return {
|
419
|
-
...x,
|
420
|
-
data: {
|
421
|
-
x: x.x - m,
|
422
|
-
y: x.y - a,
|
423
|
-
enabled: {
|
424
|
-
[f]: n,
|
425
|
-
[s]: o
|
426
|
-
}
|
427
|
-
}
|
428
|
-
};
|
429
|
-
}
|
430
|
-
};
|
431
|
-
}, me = function(t) {
|
432
|
-
return t === void 0 && (t = {}), {
|
433
|
-
options: t,
|
434
|
-
fn(e) {
|
435
|
-
const {
|
436
|
-
x: m,
|
437
|
-
y: a,
|
438
|
-
placement: r,
|
439
|
-
rects: n,
|
440
|
-
middlewareData: o
|
441
|
-
} = e, {
|
442
|
-
offset: d = 0,
|
443
|
-
mainAxis: g = !0,
|
444
|
-
crossAxis: h = !0
|
445
|
-
} = E(t, e), c = {
|
446
|
-
x: m,
|
447
|
-
y: a
|
448
|
-
}, s = B(r), f = N(s);
|
449
|
-
let i = c[f], l = c[s];
|
450
|
-
const x = E(d, e), u = typeof x == "number" ? {
|
451
|
-
mainAxis: x,
|
452
|
-
crossAxis: 0
|
453
|
-
} : {
|
454
|
-
mainAxis: 0,
|
455
|
-
crossAxis: 0,
|
456
|
-
...x
|
457
|
-
};
|
458
|
-
if (g) {
|
459
|
-
const p = f === "y" ? "height" : "width", b = n.reference[f] - n.floating[p] + u.mainAxis, w = n.reference[f] + n.reference[p] - u.mainAxis;
|
460
|
-
i < b ? i = b : i > w && (i = w);
|
461
|
-
}
|
462
|
-
if (h) {
|
463
|
-
var y, A;
|
464
|
-
const p = f === "y" ? "width" : "height", b = ["top", "left"].includes(V(r)), w = n.reference[s] - n.floating[p] + (b && ((y = o.offset) == null ? void 0 : y[s]) || 0) + (b ? 0 : u.crossAxis), O = n.reference[s] + n.reference[p] + (b ? 0 : ((A = o.offset) == null ? void 0 : A[s]) || 0) - (b ? u.crossAxis : 0);
|
465
|
-
l < w ? l = w : l > O && (l = O);
|
466
|
-
}
|
467
|
-
return {
|
468
|
-
[f]: i,
|
469
|
-
[s]: l
|
470
|
-
};
|
471
|
-
}
|
472
|
-
};
|
473
|
-
}, ue = function(t) {
|
474
|
-
return t === void 0 && (t = {}), {
|
475
|
-
name: "size",
|
476
|
-
options: t,
|
477
|
-
async fn(e) {
|
478
|
-
var m, a;
|
479
|
-
const {
|
480
|
-
placement: r,
|
481
|
-
rects: n,
|
482
|
-
platform: o,
|
483
|
-
elements: d
|
484
|
-
} = e, {
|
485
|
-
apply: g = () => {
|
486
|
-
},
|
487
|
-
...h
|
488
|
-
} = E(t, e), c = await Y(e, h), s = V(r), f = z(r), i = B(r) === "y", {
|
489
|
-
width: l,
|
490
|
-
height: x
|
491
|
-
} = n.floating;
|
492
|
-
let u, y;
|
493
|
-
s === "top" || s === "bottom" ? (u = s, y = f === (await (o.isRTL == null ? void 0 : o.isRTL(d.floating)) ? "start" : "end") ? "left" : "right") : (y = s, u = f === "end" ? "top" : "bottom");
|
494
|
-
const A = x - c.top - c.bottom, p = l - c.left - c.right, b = $(x - c[u], A), w = $(l - c[y], p), O = !e.middlewareData.shift;
|
495
|
-
let P = b, D = w;
|
496
|
-
if ((m = e.middlewareData.shift) != null && m.enabled.x && (D = p), (a = e.middlewareData.shift) != null && a.enabled.y && (P = A), O && !f) {
|
497
|
-
const C = W(c.left, 0), T = W(c.right, 0), S = W(c.top, 0), L = W(c.bottom, 0);
|
498
|
-
i ? D = l - 2 * (C !== 0 || T !== 0 ? C + T : W(c.left, c.right)) : P = x - 2 * (S !== 0 || L !== 0 ? S + L : W(c.top, c.bottom));
|
499
|
-
}
|
500
|
-
await g({
|
501
|
-
...e,
|
502
|
-
availableWidth: D,
|
503
|
-
availableHeight: P
|
504
|
-
});
|
505
|
-
const R = await o.getDimensions(d.floating);
|
506
|
-
return l !== R.width || x !== R.height ? {
|
507
|
-
reset: {
|
508
|
-
rects: !0
|
509
|
-
}
|
510
|
-
} : {};
|
511
|
-
}
|
512
|
-
};
|
513
|
-
};
|
514
|
-
export {
|
515
|
-
ce as arrow,
|
516
|
-
ae as computePosition,
|
517
|
-
Y as detectOverflow,
|
518
|
-
le as flip,
|
519
|
-
re as hide,
|
520
|
-
me as limitShift,
|
521
|
-
fe as offset,
|
522
|
-
_ as rectToClientRect,
|
523
|
-
de as shift,
|
524
|
-
ue as size
|
525
|
-
};
|
526
|
-
//# sourceMappingURL=index.es348.js.map
|