@tamagui/floating 2.7.7 → 3.0.0-beta.643.1
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/cjs/Floating.cjs +10 -11
- package/dist/cjs/Floating.native.cjs +37 -0
- package/dist/cjs/Floating.native.js +20 -20
- package/dist/cjs/Floating.native.js.map +1 -1
- package/dist/cjs/index.cjs +45 -46
- package/dist/cjs/index.native.cjs +74 -0
- package/dist/cjs/index.native.js +45 -45
- package/dist/cjs/index.native.js.map +1 -1
- package/dist/cjs/interactions/PopupTriggerMap.cjs +36 -39
- package/dist/cjs/interactions/PopupTriggerMap.native.cjs +96 -0
- package/dist/cjs/interactions/PopupTriggerMap.native.js +76 -75
- package/dist/cjs/interactions/PopupTriggerMap.native.js.map +1 -1
- package/dist/cjs/interactions/createFloatingEvents.cjs +36 -39
- package/dist/cjs/interactions/createFloatingEvents.native.cjs +52 -0
- package/dist/cjs/interactions/createFloatingEvents.native.js +39 -41
- package/dist/cjs/interactions/createFloatingEvents.native.js.map +1 -1
- package/dist/cjs/interactions/safePolygon.cjs +263 -252
- package/dist/cjs/interactions/safePolygon.native.cjs +294 -0
- package/dist/cjs/interactions/safePolygon.native.js +271 -259
- package/dist/cjs/interactions/safePolygon.native.js.map +1 -1
- package/dist/cjs/interactions/types.cjs +10 -11
- package/dist/cjs/interactions/types.native.cjs +19 -0
- package/dist/cjs/interactions/types.native.js +10 -10
- package/dist/cjs/interactions/types.native.js.map +1 -1
- package/dist/cjs/interactions/useClick.cjs +96 -105
- package/dist/cjs/interactions/useClick.native.cjs +122 -0
- package/dist/cjs/interactions/useClick.native.js +101 -109
- package/dist/cjs/interactions/useClick.native.js.map +1 -1
- package/dist/cjs/interactions/useDelayGroup.cjs +86 -91
- package/dist/cjs/interactions/useDelayGroup.native.cjs +119 -0
- package/dist/cjs/interactions/useDelayGroup.native.js +92 -96
- package/dist/cjs/interactions/useDelayGroup.native.js.map +1 -1
- package/dist/cjs/interactions/useFocus.cjs +108 -115
- package/dist/cjs/interactions/useFocus.native.cjs +131 -0
- package/dist/cjs/interactions/useFocus.native.js +114 -120
- package/dist/cjs/interactions/useFocus.native.js.map +1 -1
- package/dist/cjs/interactions/useHover.cjs +321 -335
- package/dist/cjs/interactions/useHover.native.cjs +357 -0
- package/dist/cjs/interactions/useHover.native.js +333 -347
- package/dist/cjs/interactions/useHover.native.js.map +1 -1
- package/dist/cjs/interactions/useInnerOffset.cjs +103 -111
- package/dist/cjs/interactions/useInnerOffset.native.cjs +132 -0
- package/dist/cjs/interactions/useInnerOffset.native.js +113 -120
- package/dist/cjs/interactions/useInnerOffset.native.js.map +1 -1
- package/dist/cjs/interactions/useInteractions.cjs +85 -90
- package/dist/cjs/interactions/useInteractions.native.cjs +199 -0
- package/dist/cjs/interactions/useInteractions.native.js +180 -195
- package/dist/cjs/interactions/useInteractions.native.js.map +1 -1
- package/dist/cjs/interactions/useListNavigation.cjs +404 -390
- package/dist/cjs/interactions/useListNavigation.native.cjs +446 -0
- package/dist/cjs/interactions/useListNavigation.native.js +416 -401
- package/dist/cjs/interactions/useListNavigation.native.js.map +1 -1
- package/dist/cjs/interactions/useRole.cjs +92 -106
- package/dist/cjs/interactions/useRole.native.cjs +121 -0
- package/dist/cjs/interactions/useRole.native.js +103 -116
- package/dist/cjs/interactions/useRole.native.js.map +1 -1
- package/dist/cjs/interactions/useTypeahead.cjs +115 -129
- package/dist/cjs/interactions/useTypeahead.native.cjs +144 -0
- package/dist/cjs/interactions/useTypeahead.native.js +128 -141
- package/dist/cjs/interactions/useTypeahead.native.js.map +1 -1
- package/dist/cjs/interactions/utils.cjs +126 -143
- package/dist/cjs/interactions/utils.native.cjs +209 -0
- package/dist/cjs/interactions/utils.native.js +138 -154
- package/dist/cjs/interactions/utils.native.js.map +1 -1
- package/dist/cjs/middleware/inner.cjs +74 -101
- package/dist/cjs/middleware/inner.native.cjs +102 -0
- package/dist/cjs/middleware/inner.native.js +83 -109
- package/dist/cjs/middleware/inner.native.js.map +1 -1
- package/dist/cjs/useFloating.cjs +34 -46
- package/dist/cjs/useFloating.native.cjs +56 -0
- package/dist/cjs/useFloating.native.js +37 -48
- package/dist/cjs/useFloating.native.js.map +1 -1
- package/dist/esm/Floating.mjs +1 -2
- package/dist/esm/Floating.native.js +6 -4
- package/dist/esm/Floating.native.js.map +1 -1
- package/dist/esm/index.js +4 -5
- package/dist/esm/index.mjs +4 -5
- package/dist/esm/index.native.js +4 -5
- package/dist/esm/interactions/PopupTriggerMap.mjs +23 -22
- package/dist/esm/interactions/PopupTriggerMap.mjs.map +1 -1
- package/dist/esm/interactions/PopupTriggerMap.native.js +62 -58
- package/dist/esm/interactions/PopupTriggerMap.native.js.map +1 -1
- package/dist/esm/interactions/createFloatingEvents.mjs +22 -21
- package/dist/esm/interactions/createFloatingEvents.mjs.map +1 -1
- package/dist/esm/interactions/createFloatingEvents.native.js +25 -24
- package/dist/esm/interactions/createFloatingEvents.native.js.map +1 -1
- package/dist/esm/interactions/safePolygon.mjs +250 -234
- package/dist/esm/interactions/safePolygon.mjs.map +1 -1
- package/dist/esm/interactions/safePolygon.native.js +258 -242
- package/dist/esm/interactions/safePolygon.native.js.map +1 -1
- package/dist/esm/interactions/types.mjs +0 -2
- package/dist/esm/interactions/types.native.js +0 -2
- package/dist/esm/interactions/useClick.mjs +83 -87
- package/dist/esm/interactions/useClick.mjs.map +1 -1
- package/dist/esm/interactions/useClick.native.js +88 -92
- package/dist/esm/interactions/useClick.native.js.map +1 -1
- package/dist/esm/interactions/useDelayGroup.mjs +68 -65
- package/dist/esm/interactions/useDelayGroup.mjs.map +1 -1
- package/dist/esm/interactions/useDelayGroup.native.js +74 -71
- package/dist/esm/interactions/useDelayGroup.native.js.map +1 -1
- package/dist/esm/interactions/useFocus.mjs +95 -97
- package/dist/esm/interactions/useFocus.mjs.map +1 -1
- package/dist/esm/interactions/useFocus.native.js +101 -103
- package/dist/esm/interactions/useFocus.native.js.map +1 -1
- package/dist/esm/interactions/useHover.mjs +304 -310
- package/dist/esm/interactions/useHover.mjs.map +1 -1
- package/dist/esm/interactions/useHover.native.js +316 -323
- package/dist/esm/interactions/useHover.native.js.map +1 -1
- package/dist/esm/interactions/useInnerOffset.mjs +87 -85
- package/dist/esm/interactions/useInnerOffset.mjs.map +1 -1
- package/dist/esm/interactions/useInnerOffset.native.js +97 -95
- package/dist/esm/interactions/useInnerOffset.native.js.map +1 -1
- package/dist/esm/interactions/useInteractions.mjs +71 -72
- package/dist/esm/interactions/useInteractions.mjs.map +1 -1
- package/dist/esm/interactions/useInteractions.native.js +166 -178
- package/dist/esm/interactions/useInteractions.native.js.map +1 -1
- package/dist/esm/interactions/useListNavigation.mjs +392 -373
- package/dist/esm/interactions/useListNavigation.mjs.map +1 -1
- package/dist/esm/interactions/useListNavigation.native.js +404 -385
- package/dist/esm/interactions/useListNavigation.native.js.map +1 -1
- package/dist/esm/interactions/useRole.mjs +76 -80
- package/dist/esm/interactions/useRole.mjs.map +1 -1
- package/dist/esm/interactions/useRole.native.js +87 -91
- package/dist/esm/interactions/useRole.native.js.map +1 -1
- package/dist/esm/interactions/useTypeahead.mjs +102 -111
- package/dist/esm/interactions/useTypeahead.mjs.map +1 -1
- package/dist/esm/interactions/useTypeahead.native.js +115 -124
- package/dist/esm/interactions/useTypeahead.native.js.map +1 -1
- package/dist/esm/interactions/utils.mjs +91 -106
- package/dist/esm/interactions/utils.mjs.map +1 -1
- package/dist/esm/interactions/utils.native.js +103 -118
- package/dist/esm/interactions/utils.native.js.map +1 -1
- package/dist/esm/middleware/inner.mjs +58 -75
- package/dist/esm/middleware/inner.mjs.map +1 -1
- package/dist/esm/middleware/inner.native.js +67 -84
- package/dist/esm/middleware/inner.native.js.map +1 -1
- package/dist/esm/useFloating.mjs +17 -21
- package/dist/esm/useFloating.mjs.map +1 -1
- package/dist/esm/useFloating.native.js +19 -23
- package/dist/esm/useFloating.native.js.map +1 -1
- package/package.json +6 -5
- package/types/interactions/PopupTriggerMap.d.ts.map +1 -1
- package/types/interactions/useInteractions.d.ts.map +1 -1
- package/types/middleware/inner.d.ts.map +1 -1
- package/types/useFloating.d.ts.map +1 -1
- package/dist/esm/Floating.mjs.map +0 -1
- package/dist/esm/index.js.map +0 -1
- package/dist/esm/index.mjs.map +0 -1
- package/dist/esm/index.native.js.map +0 -1
- package/dist/esm/interactions/types.mjs.map +0 -1
- package/dist/esm/interactions/types.native.js.map +0 -1
|
@@ -1,80 +1,79 @@
|
|
|
1
1
|
function useInteractions(propsList) {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
2
|
+
const filtered = propsList.filter(Boolean);
|
|
3
|
+
const referenceFns = /* @__PURE__ */ new Map();
|
|
4
|
+
const floatingFns = /* @__PURE__ */ new Map();
|
|
5
|
+
const itemFns = /* @__PURE__ */ new Map();
|
|
6
|
+
const referenceStatic = {};
|
|
7
|
+
const floatingStatic = {};
|
|
8
|
+
for (const props of filtered) {
|
|
9
|
+
if (props.reference) {
|
|
10
|
+
collectProps(props.reference, referenceFns, referenceStatic);
|
|
11
|
+
}
|
|
12
|
+
if (props.floating) {
|
|
13
|
+
collectProps(props.floating, floatingFns, floatingStatic);
|
|
14
|
+
}
|
|
15
|
+
if (props.item && typeof props.item === "object") {
|
|
16
|
+
collectProps(props.item, itemFns, {});
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
return {
|
|
20
|
+
getReferenceProps(userProps) {
|
|
21
|
+
return buildProps(referenceFns, referenceStatic, userProps);
|
|
22
|
+
},
|
|
23
|
+
getFloatingProps(userProps) {
|
|
24
|
+
return buildProps(floatingFns, floatingStatic, userProps);
|
|
25
|
+
},
|
|
26
|
+
getItemProps(userProps) {
|
|
27
|
+
return buildProps(itemFns, {}, userProps);
|
|
28
|
+
}
|
|
29
|
+
};
|
|
30
30
|
}
|
|
31
31
|
function collectProps(props, fnMap, staticMap) {
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
32
|
+
for (const key of Object.keys(props)) {
|
|
33
|
+
if (typeof props[key] === "function") {
|
|
34
|
+
let arr = fnMap.get(key);
|
|
35
|
+
if (!arr) {
|
|
36
|
+
arr = [];
|
|
37
|
+
fnMap.set(key, arr);
|
|
38
|
+
}
|
|
39
|
+
arr.push(props[key]);
|
|
40
|
+
} else {
|
|
41
|
+
staticMap[key] = props[key];
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
44
|
}
|
|
45
45
|
function buildProps(fnMap, staticProps, userProps) {
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
}
|
|
77
|
-
return result;
|
|
46
|
+
const result = { ...staticProps };
|
|
47
|
+
for (const [key, fns] of fnMap) {
|
|
48
|
+
const hookHandler = (...args) => {
|
|
49
|
+
for (const fn of fns) {
|
|
50
|
+
const result2 = fn(...args);
|
|
51
|
+
if (result2 !== void 0) return result2;
|
|
52
|
+
}
|
|
53
|
+
};
|
|
54
|
+
result[key] = hookHandler;
|
|
55
|
+
}
|
|
56
|
+
if (userProps) {
|
|
57
|
+
for (const key of Object.keys(userProps)) {
|
|
58
|
+
if (key === "style") {
|
|
59
|
+
result.style = {
|
|
60
|
+
...result.style,
|
|
61
|
+
...userProps.style
|
|
62
|
+
};
|
|
63
|
+
} else if (typeof userProps[key] === "function" && result[key]) {
|
|
64
|
+
const hookFn = result[key];
|
|
65
|
+
const userFn = userProps[key];
|
|
66
|
+
result[key] = (...args) => {
|
|
67
|
+
userFn(...args);
|
|
68
|
+
hookFn(...args);
|
|
69
|
+
};
|
|
70
|
+
} else {
|
|
71
|
+
result[key] = userProps[key];
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
return result;
|
|
78
76
|
}
|
|
77
|
+
|
|
79
78
|
export { useInteractions };
|
|
80
79
|
//# sourceMappingURL=useInteractions.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"useInteractions.js","names":[],"sources":["esm/interactions/useInteractions.js"],"sourcesContent":["function useInteractions(propsList) {\n const filtered = propsList.filter(Boolean);\n const referenceFns = /* @__PURE__ */ new Map();\n const floatingFns = /* @__PURE__ */ new Map();\n const itemFns = /* @__PURE__ */ new Map();\n const referenceStatic = {};\n const floatingStatic = {};\n for (const props of filtered) {\n if (props.reference) {\n collectProps(props.reference, referenceFns, referenceStatic);\n }\n if (props.floating) {\n collectProps(props.floating, floatingFns, floatingStatic);\n }\n if (props.item && typeof props.item === \"object\") {\n collectProps(props.item, itemFns, {});\n }\n }\n return {\n getReferenceProps(userProps) {\n return buildProps(referenceFns, referenceStatic, userProps);\n },\n getFloatingProps(userProps) {\n return buildProps(floatingFns, floatingStatic, userProps);\n },\n getItemProps(userProps) {\n return buildProps(itemFns, {}, userProps);\n }\n };\n}\nfunction collectProps(props, fnMap, staticMap) {\n for (const key of Object.keys(props)) {\n if (typeof props[key] === \"function\") {\n let arr = fnMap.get(key);\n if (!arr) {\n arr = [];\n fnMap.set(key, arr);\n }\n arr.push(props[key]);\n } else {\n staticMap[key] = props[key];\n }\n }\n}\nfunction buildProps(fnMap, staticProps, userProps) {\n const result = { ...staticProps };\n for (const [key, fns] of fnMap) {\n const hookHandler = (...args) => {\n for (const fn of fns) {\n const result2 = fn(...args);\n if (result2 !== void 0) return result2;\n }\n };\n result[key] = hookHandler;\n }\n if (userProps) {\n for (const key of Object.keys(userProps)) {\n if (key === \"style\") {\n result.style = { ...result.style, ...userProps.style };\n } else if (typeof userProps[key] === \"function\" && result[key]) {\n const hookFn = result[key];\n const userFn = userProps[key];\n result[key] = (...args) => {\n userFn(...args);\n hookFn(...args);\n };\n } else {\n result[key] = userProps[key];\n }\n }\n }\n return result;\n}\nexport {\n useInteractions\n};\n//# sourceMappingURL=useInteractions.js.map\n"],"mappings":";AAAA,SAAS,gBAAgB,WAAW;CAClC,MAAM,WAAW,UAAU,OAAO,OAAO;CACzC,MAAM,+BAA+B,IAAI,IAAI;CAC7C,MAAM,8BAA8B,IAAI,IAAI;CAC5C,MAAM,0BAA0B,IAAI,IAAI;CACxC,MAAM,kBAAkB,CAAC;CACzB,MAAM,iBAAiB,CAAC;CACxB,KAAK,MAAM,SAAS,UAAU;EAC5B,IAAI,MAAM,WAAW;GACnB,aAAa,MAAM,WAAW,cAAc,eAAe;EAC7D;EACA,IAAI,MAAM,UAAU;GAClB,aAAa,MAAM,UAAU,aAAa,cAAc;EAC1D;EACA,IAAI,MAAM,QAAQ,OAAO,MAAM,SAAS,UAAU;GAChD,aAAa,MAAM,MAAM,SAAS,CAAC,CAAC;EACtC;CACF;CACA,OAAO;EACL,kBAAkB,WAAW;GAC3B,OAAO,WAAW,cAAc,iBAAiB,SAAS;EAC5D;EACA,iBAAiB,WAAW;GAC1B,OAAO,WAAW,aAAa,gBAAgB,SAAS;EAC1D;EACA,aAAa,WAAW;GACtB,OAAO,WAAW,SAAS,CAAC,GAAG,SAAS;EAC1C;CACF;AACF;AACA,SAAS,aAAa,OAAO,OAAO,WAAW;CAC7C,KAAK,MAAM,OAAO,OAAO,KAAK,KAAK,GAAG;EACpC,IAAI,OAAO,MAAM,SAAS,YAAY;GACpC,IAAI,MAAM,MAAM,IAAI,GAAG;GACvB,IAAI,CAAC,KAAK;IACR,MAAM,CAAC;IACP,MAAM,IAAI,KAAK,GAAG;GACpB;GACA,IAAI,KAAK,MAAM,IAAI;EACrB,OAAO;GACL,UAAU,OAAO,MAAM;EACzB;CACF;AACF;AACA,SAAS,WAAW,OAAO,aAAa,WAAW;CACjD,MAAM,SAAS,EAAE,GAAG,YAAY;CAChC,KAAK,MAAM,CAAC,KAAK,QAAQ,OAAO;EAC9B,MAAM,eAAe,GAAG,SAAS;GAC/B,KAAK,MAAM,MAAM,KAAK;IACpB,MAAM,UAAU,GAAG,GAAG,IAAI;IAC1B,IAAI,YAAY,KAAK,GAAG,OAAO;GACjC;EACF;EACA,OAAO,OAAO;CAChB;CACA,IAAI,WAAW;EACb,KAAK,MAAM,OAAO,OAAO,KAAK,SAAS,GAAG;GACxC,IAAI,QAAQ,SAAS;IACnB,OAAO,QAAQ;KAAE,GAAG,OAAO;KAAO,GAAG,UAAU;IAAM;GACvD,OAAO,IAAI,OAAO,UAAU,SAAS,cAAc,OAAO,MAAM;IAC9D,MAAM,SAAS,OAAO;IACtB,MAAM,SAAS,UAAU;IACzB,OAAO,QAAQ,GAAG,SAAS;KACzB,OAAO,GAAG,IAAI;KACd,OAAO,GAAG,IAAI;IAChB;GACF,OAAO;IACL,OAAO,OAAO,UAAU;GAC1B;EACF;CACF;CACA,OAAO;AACT"}
|
|
@@ -1,188 +1,176 @@
|
|
|
1
1
|
function _type_of(obj) {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
2
|
+
"@swc/helpers - typeof";
|
|
3
|
+
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
5
4
|
}
|
|
6
5
|
function useInteractions(propsList) {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
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
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
}
|
|
53
|
-
};
|
|
6
|
+
var filtered = propsList.filter(Boolean);
|
|
7
|
+
var referenceFns = /* @__PURE__ */ new Map();
|
|
8
|
+
var floatingFns = /* @__PURE__ */ new Map();
|
|
9
|
+
var itemFns = /* @__PURE__ */ new Map();
|
|
10
|
+
var referenceStatic = {};
|
|
11
|
+
var floatingStatic = {};
|
|
12
|
+
var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;
|
|
13
|
+
try {
|
|
14
|
+
for (var _iterator = filtered[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
15
|
+
var props = _step.value;
|
|
16
|
+
if (props.reference) {
|
|
17
|
+
collectProps(props.reference, referenceFns, referenceStatic);
|
|
18
|
+
}
|
|
19
|
+
if (props.floating) {
|
|
20
|
+
collectProps(props.floating, floatingFns, floatingStatic);
|
|
21
|
+
}
|
|
22
|
+
if (props.item && _type_of(props.item) === "object") {
|
|
23
|
+
collectProps(props.item, itemFns, {});
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
} catch (err) {
|
|
27
|
+
_didIteratorError = true;
|
|
28
|
+
_iteratorError = err;
|
|
29
|
+
} finally {
|
|
30
|
+
try {
|
|
31
|
+
if (!_iteratorNormalCompletion && _iterator.return != null) {
|
|
32
|
+
_iterator.return();
|
|
33
|
+
}
|
|
34
|
+
} finally {
|
|
35
|
+
if (_didIteratorError) {
|
|
36
|
+
throw _iteratorError;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
getReferenceProps(userProps) {
|
|
42
|
+
return buildProps(referenceFns, referenceStatic, userProps);
|
|
43
|
+
},
|
|
44
|
+
getFloatingProps(userProps) {
|
|
45
|
+
return buildProps(floatingFns, floatingStatic, userProps);
|
|
46
|
+
},
|
|
47
|
+
getItemProps(userProps) {
|
|
48
|
+
return buildProps(itemFns, {}, userProps);
|
|
49
|
+
}
|
|
50
|
+
};
|
|
54
51
|
}
|
|
55
52
|
function collectProps(props, fnMap, staticMap) {
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
}
|
|
86
|
-
}
|
|
53
|
+
var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;
|
|
54
|
+
try {
|
|
55
|
+
for (var _iterator = Object.keys(props)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
56
|
+
var key = _step.value;
|
|
57
|
+
if (typeof props[key] === "function") {
|
|
58
|
+
var arr = fnMap.get(key);
|
|
59
|
+
if (!arr) {
|
|
60
|
+
arr = [];
|
|
61
|
+
fnMap.set(key, arr);
|
|
62
|
+
}
|
|
63
|
+
arr.push(props[key]);
|
|
64
|
+
} else {
|
|
65
|
+
staticMap[key] = props[key];
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
} catch (err) {
|
|
69
|
+
_didIteratorError = true;
|
|
70
|
+
_iteratorError = err;
|
|
71
|
+
} finally {
|
|
72
|
+
try {
|
|
73
|
+
if (!_iteratorNormalCompletion && _iterator.return != null) {
|
|
74
|
+
_iterator.return();
|
|
75
|
+
}
|
|
76
|
+
} finally {
|
|
77
|
+
if (_didIteratorError) {
|
|
78
|
+
throw _iteratorError;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
}
|
|
87
82
|
}
|
|
88
83
|
function buildProps(fnMap, staticProps, userProps) {
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
} finally {
|
|
179
|
-
if (_didIteratorError1) {
|
|
180
|
-
throw _iteratorError1;
|
|
181
|
-
}
|
|
182
|
-
}
|
|
183
|
-
}
|
|
184
|
-
}
|
|
185
|
-
return result;
|
|
84
|
+
var result = { ...staticProps };
|
|
85
|
+
var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;
|
|
86
|
+
try {
|
|
87
|
+
var _loop = function() {
|
|
88
|
+
var [key, fns] = _step.value;
|
|
89
|
+
var hookHandler = function() {
|
|
90
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
91
|
+
args[_key] = arguments[_key];
|
|
92
|
+
}
|
|
93
|
+
var _iteratorNormalCompletion2 = true, _didIteratorError2 = false, _iteratorError2 = void 0;
|
|
94
|
+
try {
|
|
95
|
+
for (var _iterator2 = fns[Symbol.iterator](), _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = true) {
|
|
96
|
+
var fn = _step2.value;
|
|
97
|
+
var result2 = fn(...args);
|
|
98
|
+
if (result2 !== void 0) return result2;
|
|
99
|
+
}
|
|
100
|
+
} catch (err) {
|
|
101
|
+
_didIteratorError2 = true;
|
|
102
|
+
_iteratorError2 = err;
|
|
103
|
+
} finally {
|
|
104
|
+
try {
|
|
105
|
+
if (!_iteratorNormalCompletion2 && _iterator2.return != null) {
|
|
106
|
+
_iterator2.return();
|
|
107
|
+
}
|
|
108
|
+
} finally {
|
|
109
|
+
if (_didIteratorError2) {
|
|
110
|
+
throw _iteratorError2;
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
};
|
|
115
|
+
result[key] = hookHandler;
|
|
116
|
+
};
|
|
117
|
+
for (var _iterator = fnMap[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) _loop();
|
|
118
|
+
} catch (err) {
|
|
119
|
+
_didIteratorError = true;
|
|
120
|
+
_iteratorError = err;
|
|
121
|
+
} finally {
|
|
122
|
+
try {
|
|
123
|
+
if (!_iteratorNormalCompletion && _iterator.return != null) {
|
|
124
|
+
_iterator.return();
|
|
125
|
+
}
|
|
126
|
+
} finally {
|
|
127
|
+
if (_didIteratorError) {
|
|
128
|
+
throw _iteratorError;
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
if (userProps) {
|
|
133
|
+
var _iteratorNormalCompletion1 = true, _didIteratorError1 = false, _iteratorError1 = void 0;
|
|
134
|
+
try {
|
|
135
|
+
var _loop1 = function() {
|
|
136
|
+
var key = _step1.value;
|
|
137
|
+
if (key === "style") {
|
|
138
|
+
result.style = {
|
|
139
|
+
...result.style,
|
|
140
|
+
...userProps.style
|
|
141
|
+
};
|
|
142
|
+
} else if (typeof userProps[key] === "function" && result[key]) {
|
|
143
|
+
var hookFn = result[key];
|
|
144
|
+
var userFn = userProps[key];
|
|
145
|
+
result[key] = function() {
|
|
146
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
147
|
+
args[_key] = arguments[_key];
|
|
148
|
+
}
|
|
149
|
+
userFn(...args);
|
|
150
|
+
hookFn(...args);
|
|
151
|
+
};
|
|
152
|
+
} else {
|
|
153
|
+
result[key] = userProps[key];
|
|
154
|
+
}
|
|
155
|
+
};
|
|
156
|
+
for (var _iterator1 = Object.keys(userProps)[Symbol.iterator](), _step1; !(_iteratorNormalCompletion1 = (_step1 = _iterator1.next()).done); _iteratorNormalCompletion1 = true) _loop1();
|
|
157
|
+
} catch (err) {
|
|
158
|
+
_didIteratorError1 = true;
|
|
159
|
+
_iteratorError1 = err;
|
|
160
|
+
} finally {
|
|
161
|
+
try {
|
|
162
|
+
if (!_iteratorNormalCompletion1 && _iterator1.return != null) {
|
|
163
|
+
_iterator1.return();
|
|
164
|
+
}
|
|
165
|
+
} finally {
|
|
166
|
+
if (_didIteratorError1) {
|
|
167
|
+
throw _iteratorError1;
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
return result;
|
|
186
173
|
}
|
|
174
|
+
|
|
187
175
|
export { useInteractions };
|
|
188
176
|
//# sourceMappingURL=useInteractions.native.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"useInteractions.native.js","names":[],"sources":["esm/interactions/useInteractions.native.js"],"sourcesContent":["function _type_of(obj) {\n \"@swc/helpers - typeof\";\n return obj && typeof Symbol !== \"undefined\" && obj.constructor === Symbol ? \"symbol\" : typeof obj;\n}\nfunction useInteractions(propsList) {\n var filtered = propsList.filter(Boolean);\n var referenceFns = /* @__PURE__ */ new Map();\n var floatingFns = /* @__PURE__ */ new Map();\n var itemFns = /* @__PURE__ */ new Map();\n var referenceStatic = {};\n var floatingStatic = {};\n var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;\n try {\n for (var _iterator = filtered[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {\n var props = _step.value;\n if (props.reference) {\n collectProps(props.reference, referenceFns, referenceStatic);\n }\n if (props.floating) {\n collectProps(props.floating, floatingFns, floatingStatic);\n }\n if (props.item && _type_of(props.item) === \"object\") {\n collectProps(props.item, itemFns, {});\n }\n }\n } catch (err) {\n _didIteratorError = true;\n _iteratorError = err;\n } finally {\n try {\n if (!_iteratorNormalCompletion && _iterator.return != null) {\n _iterator.return();\n }\n } finally {\n if (_didIteratorError) {\n throw _iteratorError;\n }\n }\n }\n return {\n getReferenceProps(userProps) {\n return buildProps(referenceFns, referenceStatic, userProps);\n },\n getFloatingProps(userProps) {\n return buildProps(floatingFns, floatingStatic, userProps);\n },\n getItemProps(userProps) {\n return buildProps(itemFns, {}, userProps);\n }\n };\n}\nfunction collectProps(props, fnMap, staticMap) {\n var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;\n try {\n for (var _iterator = Object.keys(props)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {\n var key = _step.value;\n if (typeof props[key] === \"function\") {\n var arr = fnMap.get(key);\n if (!arr) {\n arr = [];\n fnMap.set(key, arr);\n }\n arr.push(props[key]);\n } else {\n staticMap[key] = props[key];\n }\n }\n } catch (err) {\n _didIteratorError = true;\n _iteratorError = err;\n } finally {\n try {\n if (!_iteratorNormalCompletion && _iterator.return != null) {\n _iterator.return();\n }\n } finally {\n if (_didIteratorError) {\n throw _iteratorError;\n }\n }\n }\n}\nfunction buildProps(fnMap, staticProps, userProps) {\n var result = {\n ...staticProps\n };\n var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;\n try {\n var _loop = function() {\n var [key, fns] = _step.value;\n var hookHandler = function() {\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n var _iteratorNormalCompletion2 = true, _didIteratorError2 = false, _iteratorError2 = void 0;\n try {\n for (var _iterator2 = fns[Symbol.iterator](), _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = true) {\n var fn = _step2.value;\n var result2 = fn(...args);\n if (result2 !== void 0) return result2;\n }\n } catch (err) {\n _didIteratorError2 = true;\n _iteratorError2 = err;\n } finally {\n try {\n if (!_iteratorNormalCompletion2 && _iterator2.return != null) {\n _iterator2.return();\n }\n } finally {\n if (_didIteratorError2) {\n throw _iteratorError2;\n }\n }\n }\n };\n result[key] = hookHandler;\n };\n for (var _iterator = fnMap[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) _loop();\n } catch (err) {\n _didIteratorError = true;\n _iteratorError = err;\n } finally {\n try {\n if (!_iteratorNormalCompletion && _iterator.return != null) {\n _iterator.return();\n }\n } finally {\n if (_didIteratorError) {\n throw _iteratorError;\n }\n }\n }\n if (userProps) {\n var _iteratorNormalCompletion1 = true, _didIteratorError1 = false, _iteratorError1 = void 0;\n try {\n var _loop1 = function() {\n var key = _step1.value;\n if (key === \"style\") {\n result.style = {\n ...result.style,\n ...userProps.style\n };\n } else if (typeof userProps[key] === \"function\" && result[key]) {\n var hookFn = result[key];\n var userFn = userProps[key];\n result[key] = function() {\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n userFn(...args);\n hookFn(...args);\n };\n } else {\n result[key] = userProps[key];\n }\n };\n for (var _iterator1 = Object.keys(userProps)[Symbol.iterator](), _step1; !(_iteratorNormalCompletion1 = (_step1 = _iterator1.next()).done); _iteratorNormalCompletion1 = true) _loop1();\n } catch (err) {\n _didIteratorError1 = true;\n _iteratorError1 = err;\n } finally {\n try {\n if (!_iteratorNormalCompletion1 && _iterator1.return != null) {\n _iterator1.return();\n }\n } finally {\n if (_didIteratorError1) {\n throw _iteratorError1;\n }\n }\n }\n }\n return result;\n}\nexport {\n useInteractions\n};\n//# sourceMappingURL=useInteractions.js.map\n"],"mappings":";AAAA,SAAS,SAAS,KAAK;CACrB;CACA,OAAO,OAAO,OAAO,WAAW,eAAe,IAAI,gB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