@tamagui/element 2.7.7 → 3.0.0-beta.637.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.
Files changed (49) hide show
  1. package/dist/cjs/getWebElement.cjs +22 -25
  2. package/dist/cjs/getWebElement.native.cjs +42 -0
  3. package/dist/cjs/getWebElement.native.js +27 -29
  4. package/dist/cjs/getWebElement.native.js.map +1 -1
  5. package/dist/cjs/index.cjs +10 -11
  6. package/dist/cjs/index.native.cjs +36 -0
  7. package/dist/cjs/index.native.js +17 -17
  8. package/dist/cjs/index.native.js.map +1 -1
  9. package/dist/cjs/types.cjs +10 -11
  10. package/dist/cjs/types.native.cjs +19 -0
  11. package/dist/cjs/types.native.js +10 -10
  12. package/dist/cjs/types.native.js.map +1 -1
  13. package/dist/cjs/useNativeRef.cjs +31 -37
  14. package/dist/cjs/useNativeRef.native.cjs +53 -0
  15. package/dist/cjs/useNativeRef.native.js +31 -36
  16. package/dist/cjs/useNativeRef.native.js.map +1 -1
  17. package/dist/cjs/useWebRef.cjs +24 -32
  18. package/dist/cjs/useWebRef.native.cjs +42 -0
  19. package/dist/cjs/useWebRef.native.js +24 -31
  20. package/dist/cjs/useWebRef.native.js.map +1 -1
  21. package/dist/esm/getWebElement.mjs +8 -7
  22. package/dist/esm/getWebElement.mjs.map +1 -1
  23. package/dist/esm/getWebElement.native.js +13 -12
  24. package/dist/esm/getWebElement.native.js.map +1 -1
  25. package/dist/esm/index.js +7 -5
  26. package/dist/esm/index.mjs +7 -5
  27. package/dist/esm/index.native.js +7 -3
  28. package/dist/esm/index.native.js.map +1 -1
  29. package/dist/esm/types.mjs +0 -2
  30. package/dist/esm/types.native.js +0 -2
  31. package/dist/esm/useNativeRef.mjs +14 -12
  32. package/dist/esm/useNativeRef.mjs.map +1 -1
  33. package/dist/esm/useNativeRef.native.js +14 -12
  34. package/dist/esm/useNativeRef.native.js.map +1 -1
  35. package/dist/esm/useWebRef.mjs +8 -6
  36. package/dist/esm/useWebRef.mjs.map +1 -1
  37. package/dist/esm/useWebRef.native.js +8 -6
  38. package/dist/esm/useWebRef.native.js.map +1 -1
  39. package/package.json +8 -8
  40. package/types/getWebElement.d.ts +13 -0
  41. package/types/index.d.ts +5 -0
  42. package/types/index.native.d.ts +5 -0
  43. package/types/types.d.ts +29 -0
  44. package/types/useNativeRef.d.ts +31 -0
  45. package/types/useWebRef.d.ts +19 -0
  46. package/dist/esm/index.js.map +0 -1
  47. package/dist/esm/index.mjs.map +0 -1
  48. package/dist/esm/types.mjs.map +0 -1
  49. package/dist/esm/types.native.js.map +0 -1
@@ -1,5 +1,6 @@
1
1
  "use strict";
2
2
 
3
+
3
4
  var __create = Object.create;
4
5
  var __defProp = Object.defineProperty;
5
6
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
@@ -7,54 +8,48 @@ var __getOwnPropNames = Object.getOwnPropertyNames;
7
8
  var __getProtoOf = Object.getPrototypeOf;
8
9
  var __hasOwnProp = Object.prototype.hasOwnProperty;
9
10
  var __export = (target, all) => {
10
- for (var name in all) __defProp(target, name, {
11
- get: all[name],
12
- enumerable: true
13
- });
11
+ for (var name in all) __defProp(target, name, {
12
+ get: all[name],
13
+ enumerable: true
14
+ });
14
15
  };
15
16
  var __copyProps = (to, from, except, desc) => {
16
- if (from && typeof from === "object" || typeof from === "function") {
17
- for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
18
- get: () => from[key],
19
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
20
- });
21
- }
22
- return to;
17
+ if (from && typeof from === "object" || typeof from === "function") {
18
+ for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
19
+ get: () => from[key],
20
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
21
+ });
22
+ }
23
+ return to;
23
24
  };
24
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
25
- // If the importer is in node compatibility mode or this is not an ESM
26
- // file that has been converted to a CommonJS file using a Babel-
27
- // compatible transform (i.e. "__esModule" has not been set), then set
28
- // "default" to the CommonJS "module.exports" for node compatibility.
29
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
30
- value: mod,
31
- enumerable: true
25
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
26
+ value: mod,
27
+ enumerable: true
32
28
  }) : target, mod));
33
- var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
34
- value: true
35
- }), mod);
29
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
36
30
  var useNativeRef_exports = {};
37
31
  __export(useNativeRef_exports, {
38
- useNativeInputRef: () => useNativeInputRef,
39
- useNativeRef: () => useNativeRef
32
+ useNativeInputRef: () => useNativeInputRef,
33
+ useNativeRef: () => useNativeRef
40
34
  });
41
35
  module.exports = __toCommonJS(useNativeRef_exports);
42
36
  var import_compose_refs = require("@tamagui/compose-refs");
43
37
  var React = __toESM(require("react"), 1);
44
38
  function useNativeRef(forwardedRef) {
45
- var ref = React.useRef(null);
46
- var composedRef = (0, import_compose_refs.useComposedRefs)(ref, forwardedRef);
47
- return {
48
- ref,
49
- composedRef
50
- };
39
+ var ref = React.useRef(null);
40
+ var composedRef = (0, import_compose_refs.useComposedRefs)(ref, forwardedRef);
41
+ return {
42
+ ref,
43
+ composedRef
44
+ };
51
45
  }
52
46
  function useNativeInputRef(forwardedRef) {
53
- var ref = React.useRef(null);
54
- var composedRef = (0, import_compose_refs.useComposedRefs)(ref, forwardedRef);
55
- return {
56
- ref,
57
- composedRef
58
- };
47
+ var ref = React.useRef(null);
48
+ var composedRef = (0, import_compose_refs.useComposedRefs)(ref, forwardedRef);
49
+ return {
50
+ ref,
51
+ composedRef
52
+ };
59
53
  }
54
+
60
55
  //# sourceMappingURL=useNativeRef.native.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","useNativeRef_exports","__export","useNativeInputRef","useNativeRef","module","exports","import_compose_refs","require","React","__toESM","forwardedRef","ref","useRef","composedRef","useComposedRefs"],"sources":["../../src/useNativeRef.ts"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;EAAAC,KAAA;AAAA,IAAAH,GAAA;AAAA,IAAAI,oBAAA;AAAAC,QAAA,CAAAD,oBAAA;EAAAE,iBAAA,EAAAA,CAAA,KAAAA,iBAAA;EAAAC,YAAA,EAAAA,CAAA,KAAAA;AAAA;AAAAC,MAAA,CAAAC,OAAA,GAAAV,YAAgC,CAAAK,oBAAA;AAChC,IAAAM,mBAAuB,GAAAC,OAAA;AAchB,IAAAC,KAAS,GAAAC,OAAA,CAAAF,OAAa,SAAwC;AACnE,SAAMJ,YAAYA,CAAAO,YAAiC;EACnD,IAAAC,GAAM,GAAAH,KAAA,CAAAI,MAAA,KAAc;EACpB,IAAAC,WAAc,OAAAP,mBAAY,CAAAQ,eAAA,EAAAH,GAAA,EAAAD,YAAA;EAC5B;IAYOC,GAAA;IACLE;EACA;AACA;AACF,SAAAX,kBAAAQ,YAAA","ignoreList":[]}
1
+ {"version":3,"file":"useNativeRef.native.js","names":[],"sources":["cjs/useNativeRef.native.js"],"sourcesContent":["\"use strict\";\nvar __create = Object.create;\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __getProtoOf = Object.getPrototypeOf;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(\n // If the importer is in node compatibility mode or this is not an ESM\n // file that has been converted to a CommonJS file using a Babel-\n // compatible transform (i.e. \"__esModule\" has not been set), then set\n // \"default\" to the CommonJS \"module.exports\" for node compatibility.\n isNodeMode || !mod || !mod.__esModule ? __defProp(target, \"default\", { value: mod, enumerable: true }) : target,\n mod\n));\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar useNativeRef_exports = {};\n__export(useNativeRef_exports, {\n useNativeInputRef: () => useNativeInputRef,\n useNativeRef: () => useNativeRef\n});\nmodule.exports = __toCommonJS(useNativeRef_exports);\nvar import_compose_refs = require(\"@tamagui/compose-refs\");\nvar React = __toESM(require(\"react\"), 1);\nfunction useNativeRef(forwardedRef) {\n var ref = React.useRef(null);\n var composedRef = (0, import_compose_refs.useComposedRefs)(ref, forwardedRef);\n return {\n ref,\n composedRef\n };\n}\nfunction useNativeInputRef(forwardedRef) {\n var ref = React.useRef(null);\n var composedRef = (0, import_compose_refs.useComposedRefs)(ref, forwardedRef);\n return {\n ref,\n composedRef\n };\n}\n//# sourceMappingURL=useNativeRef.js.map\n"],"mappings":";;;;AACA,IAAI,WAAW,OAAO;AACtB,IAAI,YAAY,OAAO;AACvB,IAAI,mBAAmB,OAAO;AAC9B,IAAI,oBAAoB,OAAO;AAC/B,IAAI,eAAe,OAAO;AAC1B,IAAI,eAAe,OAAO,UAAU;AACpC,IAAI,YAAY,QAAQ,QAAQ;CAC9B,KAAK,IAAI,QAAQ,KACf,UAAU,QAAQ,MAAM;EAAE,KAAK,IAAI;EAAO,YAAY;CAAK,CAAC;AAChE;AACA,IAAI,eAAe,IAAI,MAAM,QAAQ,SAAS;CAC5C,IAAI,QAAQ,OAAO,SAAS,YAAY,OAAO,SAAS,YAAY;EAClE,KAAK,IAAI,OAAO,kBAAkB,IAAI,GACpC,IAAI,CAAC,aAAa,KAAK,IAAI,GAAG,KAAK,QAAQ,QACzC,UAAU,IAAI,KAAK;GAAE,WAAW,KAAK;GAAM,YAAY,EAAE,OAAO,iBAAiB,MAAM,GAAG,MAAM,KAAK;EAAW,CAAC;CACvH;CACA,OAAO;AACT;AACA,IAAI,WAAW,KAAK,YAAY,YAAY,SAAS,OAAO,OAAO,SAAS,aAAa,GAAG,CAAC,IAAI,CAAC,GAAG,YAKnG,cAAc,CAAC,OAAO,CAAC,IAAI,aAAa,UAAU,QAAQ,WAAW;CAAE,OAAO;CAAK,YAAY;AAAK,CAAC,IAAI,QACzG,GACF;AACA,IAAI,gBAAgB,QAAQ,YAAY,UAAU,CAAC,GAAG,cAAc,EAAE,OAAO,KAAK,CAAC,GAAG,GAAG;AACzF,IAAI,uBAAuB,CAAC;AAC5B,SAAS,sBAAsB;CAC7B,yBAAyB;CACzB,oBAAoB;AACtB,CAAC;AACD,OAAO,UAAU,aAAa,oBAAoB;AAClD,IAAI,sBAAsB,QAAQ,uBAAuB;AACzD,IAAI,QAAQ,QAAQ,QAAQ,OAAO,GAAG,CAAC;AACvC,SAAS,aAAa,cAAc;CAClC,IAAI,MAAM,MAAM,OAAO,IAAI;CAC3B,IAAI,eAAe,GAAG,oBAAoB,iBAAiB,KAAK,YAAY;CAC5E,OAAO;EACL;EACA;CACF;AACF;AACA,SAAS,kBAAkB,cAAc;CACvC,IAAI,MAAM,MAAM,OAAO,IAAI;CAC3B,IAAI,eAAe,GAAG,oBAAoB,iBAAiB,KAAK,YAAY;CAC5E,OAAO;EACL;EACA;CACF;AACF"}
@@ -1,3 +1,4 @@
1
+
1
2
  var __create = Object.create;
2
3
  var __defProp = Object.defineProperty;
3
4
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
@@ -5,44 +6,35 @@ var __getOwnPropNames = Object.getOwnPropertyNames;
5
6
  var __getProtoOf = Object.getPrototypeOf;
6
7
  var __hasOwnProp = Object.prototype.hasOwnProperty;
7
8
  var __export = (target, all) => {
8
- for (var name in all) __defProp(target, name, {
9
- get: all[name],
10
- enumerable: true
11
- });
9
+ for (var name in all) __defProp(target, name, {
10
+ get: all[name],
11
+ enumerable: true
12
+ });
12
13
  };
13
14
  var __copyProps = (to, from, except, desc) => {
14
- if (from && typeof from === "object" || typeof from === "function") {
15
- for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
16
- get: () => from[key],
17
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
18
- });
19
- }
20
- return to;
15
+ if (from && typeof from === "object" || typeof from === "function") {
16
+ for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
17
+ get: () => from[key],
18
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
19
+ });
20
+ }
21
+ return to;
21
22
  };
22
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
23
- // If the importer is in node compatibility mode or this is not an ESM
24
- // file that has been converted to a CommonJS file using a Babel-
25
- // compatible transform (i.e. "__esModule" has not been set), then set
26
- // "default" to the CommonJS "module.exports" for node compatibility.
27
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
28
- value: mod,
29
- enumerable: true
23
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
24
+ value: mod,
25
+ enumerable: true
30
26
  }) : target, mod));
31
- var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
32
- value: true
33
- }), mod);
27
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
34
28
  var useWebRef_exports = {};
35
- __export(useWebRef_exports, {
36
- useWebRef: () => useWebRef
37
- });
29
+ __export(useWebRef_exports, { useWebRef: () => useWebRef });
38
30
  module.exports = __toCommonJS(useWebRef_exports);
39
31
  var import_compose_refs = require("@tamagui/compose-refs");
40
32
  var React = __toESM(require("react"), 1);
41
33
  function useWebRef(forwardedRef) {
42
- const ref = React.useRef(null);
43
- const composedRef = (0, import_compose_refs.useComposedRefs)(ref, forwardedRef);
44
- return {
45
- ref,
46
- composedRef
47
- };
48
- }
34
+ const ref = React.useRef(null);
35
+ const composedRef = (0, import_compose_refs.useComposedRefs)(ref, forwardedRef);
36
+ return {
37
+ ref,
38
+ composedRef
39
+ };
40
+ }
@@ -0,0 +1,42 @@
1
+ "use strict";
2
+
3
+
4
+ var __create = Object.create;
5
+ var __defProp = Object.defineProperty;
6
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
7
+ var __getOwnPropNames = Object.getOwnPropertyNames;
8
+ var __getProtoOf = Object.getPrototypeOf;
9
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
10
+ var __export = (target, all) => {
11
+ for (var name in all) __defProp(target, name, {
12
+ get: all[name],
13
+ enumerable: true
14
+ });
15
+ };
16
+ var __copyProps = (to, from, except, desc) => {
17
+ if (from && typeof from === "object" || typeof from === "function") {
18
+ for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
19
+ get: () => from[key],
20
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
21
+ });
22
+ }
23
+ return to;
24
+ };
25
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
26
+ value: mod,
27
+ enumerable: true
28
+ }) : target, mod));
29
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
30
+ var useWebRef_exports = {};
31
+ __export(useWebRef_exports, { useWebRef: () => useWebRef });
32
+ module.exports = __toCommonJS(useWebRef_exports);
33
+ var import_compose_refs = require("@tamagui/compose-refs");
34
+ var React = __toESM(require("react"), 1);
35
+ function useWebRef(forwardedRef) {
36
+ var ref = React.useRef(null);
37
+ var composedRef = (0, import_compose_refs.useComposedRefs)(ref, forwardedRef);
38
+ return {
39
+ ref,
40
+ composedRef
41
+ };
42
+ }
@@ -1,5 +1,6 @@
1
1
  "use strict";
2
2
 
3
+
3
4
  var __create = Object.create;
4
5
  var __defProp = Object.defineProperty;
5
6
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
@@ -7,45 +8,37 @@ var __getOwnPropNames = Object.getOwnPropertyNames;
7
8
  var __getProtoOf = Object.getPrototypeOf;
8
9
  var __hasOwnProp = Object.prototype.hasOwnProperty;
9
10
  var __export = (target, all) => {
10
- for (var name in all) __defProp(target, name, {
11
- get: all[name],
12
- enumerable: true
13
- });
11
+ for (var name in all) __defProp(target, name, {
12
+ get: all[name],
13
+ enumerable: true
14
+ });
14
15
  };
15
16
  var __copyProps = (to, from, except, desc) => {
16
- if (from && typeof from === "object" || typeof from === "function") {
17
- for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
18
- get: () => from[key],
19
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
20
- });
21
- }
22
- return to;
17
+ if (from && typeof from === "object" || typeof from === "function") {
18
+ for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
19
+ get: () => from[key],
20
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
21
+ });
22
+ }
23
+ return to;
23
24
  };
24
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
25
- // If the importer is in node compatibility mode or this is not an ESM
26
- // file that has been converted to a CommonJS file using a Babel-
27
- // compatible transform (i.e. "__esModule" has not been set), then set
28
- // "default" to the CommonJS "module.exports" for node compatibility.
29
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
30
- value: mod,
31
- enumerable: true
25
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
26
+ value: mod,
27
+ enumerable: true
32
28
  }) : target, mod));
33
- var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
34
- value: true
35
- }), mod);
29
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
36
30
  var useWebRef_exports = {};
37
- __export(useWebRef_exports, {
38
- useWebRef: () => useWebRef
39
- });
31
+ __export(useWebRef_exports, { useWebRef: () => useWebRef });
40
32
  module.exports = __toCommonJS(useWebRef_exports);
41
33
  var import_compose_refs = require("@tamagui/compose-refs");
42
34
  var React = __toESM(require("react"), 1);
43
35
  function useWebRef(forwardedRef) {
44
- var ref = React.useRef(null);
45
- var composedRef = (0, import_compose_refs.useComposedRefs)(ref, forwardedRef);
46
- return {
47
- ref,
48
- composedRef
49
- };
36
+ var ref = React.useRef(null);
37
+ var composedRef = (0, import_compose_refs.useComposedRefs)(ref, forwardedRef);
38
+ return {
39
+ ref,
40
+ composedRef
41
+ };
50
42
  }
43
+
51
44
  //# sourceMappingURL=useWebRef.native.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","useWebRef_exports","__export","useWebRef","module","exports","import_compose_refs","require","React","__toESM","forwardedRef","ref","useRef","composedRef","useComposedRefs"],"sources":["../../src/useWebRef.ts"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;EAAAC,KAAA;AAAA,IAAAH,GAAA;AAAA,IAAAI,iBAAA;AAAAC,QAAA,CAAAD,iBAAA;EAAAE,SAAA,EAAAA,CAAA,KAAAA;AAAA;AAAAC,MAAA,CAAAC,OAAA,GAAAT,YAAgC,CAAAK,iBAAA;AAChC,IAAAK,mBAAuB,GAAAC,OAAA;AAehB,IAAAC,KAAS,GAAAC,OACd,CAAAF,OAAA,QACA;AACA,SAAMJ,SAAMA,CAAAO,YAAoB;EAChC,IAAAC,GAAM,GAAAH,KAAA,CAAAI,MAAA,KAAc;EACpB,IAAAC,WAAc,OAAAP,mBAAY,CAAAQ,eAAA,EAAAH,GAAA,EAAAD,YAAA;EAC5B","ignoreList":[]}
1
+ {"version":3,"file":"useWebRef.native.js","names":[],"sources":["cjs/useWebRef.native.js"],"sourcesContent":["\"use strict\";\nvar __create = Object.create;\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __getProtoOf = Object.getPrototypeOf;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(\n // If the importer is in node compatibility mode or this is not an ESM\n // file that has been converted to a CommonJS file using a Babel-\n // compatible transform (i.e. \"__esModule\" has not been set), then set\n // \"default\" to the CommonJS \"module.exports\" for node compatibility.\n isNodeMode || !mod || !mod.__esModule ? __defProp(target, \"default\", { value: mod, enumerable: true }) : target,\n mod\n));\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar useWebRef_exports = {};\n__export(useWebRef_exports, {\n useWebRef: () => useWebRef\n});\nmodule.exports = __toCommonJS(useWebRef_exports);\nvar import_compose_refs = require(\"@tamagui/compose-refs\");\nvar React = __toESM(require(\"react\"), 1);\nfunction useWebRef(forwardedRef) {\n var ref = React.useRef(null);\n var composedRef = (0, import_compose_refs.useComposedRefs)(ref, forwardedRef);\n return {\n ref,\n composedRef\n };\n}\n//# sourceMappingURL=useWebRef.js.map\n"],"mappings":";;;;AACA,IAAI,WAAW,OAAO;AACtB,IAAI,YAAY,OAAO;AACvB,IAAI,mBAAmB,OAAO;AAC9B,IAAI,oBAAoB,OAAO;AAC/B,IAAI,eAAe,OAAO;AAC1B,IAAI,eAAe,OAAO,UAAU;AACpC,IAAI,YAAY,QAAQ,QAAQ;CAC9B,KAAK,IAAI,QAAQ,KACf,UAAU,QAAQ,MAAM;EAAE,KAAK,IAAI;EAAO,YAAY;CAAK,CAAC;AAChE;AACA,IAAI,eAAe,IAAI,MAAM,QAAQ,SAAS;CAC5C,IAAI,QAAQ,OAAO,SAAS,YAAY,OAAO,SAAS,YAAY;EAClE,KAAK,IAAI,OAAO,kBAAkB,IAAI,GACpC,IAAI,CAAC,aAAa,KAAK,IAAI,GAAG,KAAK,QAAQ,QACzC,UAAU,IAAI,KAAK;GAAE,WAAW,KAAK;GAAM,YAAY,EAAE,OAAO,iBAAiB,MAAM,GAAG,MAAM,KAAK;EAAW,CAAC;CACvH;CACA,OAAO;AACT;AACA,IAAI,WAAW,KAAK,YAAY,YAAY,SAAS,OAAO,OAAO,SAAS,aAAa,GAAG,CAAC,IAAI,CAAC,GAAG,YAKnG,cAAc,CAAC,OAAO,CAAC,IAAI,aAAa,UAAU,QAAQ,WAAW;CAAE,OAAO;CAAK,YAAY;AAAK,CAAC,IAAI,QACzG,GACF;AACA,IAAI,gBAAgB,QAAQ,YAAY,UAAU,CAAC,GAAG,cAAc,EAAE,OAAO,KAAK,CAAC,GAAG,GAAG;AACzF,IAAI,oBAAoB,CAAC;AACzB,SAAS,mBAAmB,EAC1B,iBAAiB,UACnB,CAAC;AACD,OAAO,UAAU,aAAa,iBAAiB;AAC/C,IAAI,sBAAsB,QAAQ,uBAAuB;AACzD,IAAI,QAAQ,QAAQ,QAAQ,OAAO,GAAG,CAAC;AACvC,SAAS,UAAU,cAAc;CAC/B,IAAI,MAAM,MAAM,OAAO,IAAI;CAC3B,IAAI,eAAe,GAAG,oBAAoB,iBAAiB,KAAK,YAAY;CAC5E,OAAO;EACL;EACA;CACF;AACF"}
@@ -1,11 +1,12 @@
1
1
  function getWebElement(element) {
2
- if (!element) {
3
- throw new Error("Element is null or undefined");
4
- }
5
- if (!(element instanceof HTMLElement)) {
6
- throw new Error("Element is not an HTMLElement");
7
- }
8
- return element;
2
+ if (!element) {
3
+ throw new Error("Element is null or undefined");
4
+ }
5
+ if (!(element instanceof HTMLElement)) {
6
+ throw new Error("Element is not an HTMLElement");
7
+ }
8
+ return element;
9
9
  }
10
+
10
11
  export { getWebElement };
11
12
  //# sourceMappingURL=getWebElement.mjs.map
@@ -1 +1 @@
1
- {"version":3,"names":["getWebElement","element","Error","HTMLElement"],"sources":["../../src/getWebElement.ts"],"sourcesContent":[null],"mappings":"AAYO,SAASA,cACdC,OAAA,EACG;EACH,IAAI,CAACA,OAAA,EAAS;IACZ,MAAM,IAAIC,KAAA,CAAM,8BAA8B;EAChD;EACA,IAAI,EAAED,OAAA,YAAmBE,WAAA,GAAc;IACrC,MAAM,IAAID,KAAA,CAAM,+BAA+B;EACjD;EACA,OAAOD,OAAA;AACT","ignoreList":[]}
1
+ {"version":3,"file":"getWebElement.js","names":[],"sources":["esm/getWebElement.js"],"sourcesContent":["function getWebElement(element) {\n if (!element) {\n throw new Error(\"Element is null or undefined\");\n }\n if (!(element instanceof HTMLElement)) {\n throw new Error(\"Element is not an HTMLElement\");\n }\n return element;\n}\nexport {\n getWebElement\n};\n//# sourceMappingURL=getWebElement.js.map\n"],"mappings":";AAAA,SAAS,cAAc,SAAS;CAC9B,IAAI,CAAC,SAAS;EACZ,MAAM,IAAI,MAAM,8BAA8B;CAChD;CACA,IAAI,EAAE,mBAAmB,cAAc;EACrC,MAAM,IAAI,MAAM,+BAA+B;CACjD;CACA,OAAO;AACT"}
@@ -1,18 +1,19 @@
1
1
  function _instanceof(left, right) {
2
- if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
3
- return !!right[Symbol.hasInstance](left);
4
- } else {
5
- return left instanceof right;
6
- }
2
+ if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
3
+ return !!right[Symbol.hasInstance](left);
4
+ } else {
5
+ return left instanceof right;
6
+ }
7
7
  }
8
8
  function getWebElement(element) {
9
- if (!element) {
10
- throw new Error("Element is null or undefined");
11
- }
12
- if (!_instanceof(element, HTMLElement)) {
13
- throw new Error("Element is not an HTMLElement");
14
- }
15
- return element;
9
+ if (!element) {
10
+ throw new Error("Element is null or undefined");
11
+ }
12
+ if (!_instanceof(element, HTMLElement)) {
13
+ throw new Error("Element is not an HTMLElement");
14
+ }
15
+ return element;
16
16
  }
17
+
17
18
  export { getWebElement };
18
19
  //# sourceMappingURL=getWebElement.native.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["_instanceof","left","right","Symbol","hasInstance","getWebElement","element"],"sources":["../../src/getWebElement.ts"],"sourcesContent":[null],"mappings":"AAYO,SAASA,YAAAC,IACd,EAAAC,KACG;EACH,IAAIA,KAAC,QAAS,WAAAC,MAAA,oBAAAD,KAAA,CAAAC,MAAA,CAAAC,WAAA;IACZ,OAAM,EAAAF,KAAI,CAAAC,MAAM,CAAAC,WAAA,EAAAH,IAAA;EAClB;IACA,OAAMA,IAAA,YAAmBC,KAAA;EACvB;AAA+C;AAEjD,SAAOG,cAAAC,OAAA;EACT,KAAAA,OAAA","ignoreList":[]}
1
+ {"version":3,"file":"getWebElement.native.js","names":[],"sources":["esm/getWebElement.native.js"],"sourcesContent":["function _instanceof(left, right) {\n if (right != null && typeof Symbol !== \"undefined\" && right[Symbol.hasInstance]) {\n return !!right[Symbol.hasInstance](left);\n } else {\n return left instanceof right;\n }\n}\nfunction getWebElement(element) {\n if (!element) {\n throw new Error(\"Element is null or undefined\");\n }\n if (!_instanceof(element, HTMLElement)) {\n throw new Error(\"Element is not an HTMLElement\");\n }\n return element;\n}\nexport {\n getWebElement\n};\n//# sourceMappingURL=getWebElement.js.map\n"],"mappings":";AAAA,SAAS,YAAY,MAAM,OAAO;CAChC,IAAI,SAAS,QAAQ,OAAO,WAAW,eAAe,MAAM,OAAO,cAAc;EAC/E,OAAO,CAAC,CAAC,MAAM,OAAO,aAAa,IAAI;CACzC,OAAO;EACL,OAAO,gBAAgB;CACzB;AACF;AACA,SAAS,cAAc,SAAS;CAC9B,IAAI,CAAC,SAAS;EACZ,MAAM,IAAI,MAAM,8BAA8B;CAChD;CACA,IAAI,CAAC,YAAY,SAAS,WAAW,GAAG;EACtC,MAAM,IAAI,MAAM,+BAA+B;CACjD;CACA,OAAO;AACT"}
package/dist/esm/index.js CHANGED
@@ -1,5 +1,7 @@
1
- export * from "./useWebRef.mjs";
2
- export * from "./useNativeRef.mjs";
3
- export * from "./getWebElement.mjs";
4
- export * from "./types.mjs";
5
- //# sourceMappingURL=index.js.map
1
+ export * from "./useWebRef.mjs"
2
+
3
+ export * from "./useNativeRef.mjs"
4
+
5
+ export * from "./getWebElement.mjs"
6
+
7
+ export * from "./types.mjs"
@@ -1,5 +1,7 @@
1
- export * from "./useWebRef.mjs";
2
- export * from "./useNativeRef.mjs";
3
- export * from "./getWebElement.mjs";
4
- export * from "./types.mjs";
5
- //# sourceMappingURL=index.mjs.map
1
+ export * from "./useWebRef.mjs"
2
+
3
+ export * from "./useNativeRef.mjs"
4
+
5
+ export * from "./getWebElement.mjs"
6
+
7
+ export * from "./types.mjs"
@@ -1,8 +1,12 @@
1
- export * from "./useNativeRef.native.js";
2
- export * from "./types.native.js";
3
1
  import { useNativeRef } from "./useNativeRef.native.js";
2
+
3
+ export * from "./useNativeRef.native.js"
4
+
5
+ export * from "./types.native.js"
6
+
4
7
  function getWebElement() {
5
- throw new Error("getWebElement is only available on web");
8
+ throw new Error("getWebElement is only available on web");
6
9
  }
10
+
7
11
  export { getWebElement, useNativeRef as useWebRef };
8
12
  //# sourceMappingURL=index.native.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["useNativeRef","getWebElement","Error"],"sources":["../../src/index.native.ts"],"sourcesContent":[null],"mappings":"AAAA,cAAc;AACd,cAAc;AAEd,SAAyBA,YAAA,QAAiB;AACnC,SAASC,cAAA,EAAgB;EAC5B,MAAM,IAAIC,KAAA,CAAM,wCAAwC;AAC5D","ignoreList":[]}
1
+ {"version":3,"file":"index.native.js","names":[],"sources":["esm/index.native.js"],"sourcesContent":["export * from \"./useNativeRef\";\nexport * from \"./types\";\nimport { useNativeRef } from \"./useNativeRef\";\nfunction getWebElement() {\n throw new Error(\"getWebElement is only available on web\");\n}\nexport {\n getWebElement,\n useNativeRef as useWebRef\n};\n//# sourceMappingURL=index.native.js.map\n"],"mappings":";;;;;;;AAGA,SAAS,gBAAgB;CACvB,MAAM,IAAI,MAAM,wCAAwC;AAC1D"}
@@ -1,2 +0,0 @@
1
-
2
- //# sourceMappingURL=types.mjs.map
@@ -1,2 +0,0 @@
1
-
2
- //# sourceMappingURL=types.native.js.map
@@ -1,20 +1,22 @@
1
1
  import { useComposedRefs } from "@tamagui/compose-refs";
2
2
  import * as React from "react";
3
+
3
4
  function useNativeRef(forwardedRef) {
4
- const ref = React.useRef(null);
5
- const composedRef = useComposedRefs(ref, forwardedRef);
6
- return {
7
- ref,
8
- composedRef
9
- };
5
+ const ref = React.useRef(null);
6
+ const composedRef = useComposedRefs(ref, forwardedRef);
7
+ return {
8
+ ref,
9
+ composedRef
10
+ };
10
11
  }
11
12
  function useNativeInputRef(forwardedRef) {
12
- const ref = React.useRef(null);
13
- const composedRef = useComposedRefs(ref, forwardedRef);
14
- return {
15
- ref,
16
- composedRef
17
- };
13
+ const ref = React.useRef(null);
14
+ const composedRef = useComposedRefs(ref, forwardedRef);
15
+ return {
16
+ ref,
17
+ composedRef
18
+ };
18
19
  }
20
+
19
21
  export { useNativeInputRef, useNativeRef };
20
22
  //# sourceMappingURL=useNativeRef.mjs.map
@@ -1 +1 @@
1
- {"version":3,"names":["useComposedRefs","React","useNativeRef","forwardedRef","ref","useRef","composedRef","useNativeInputRef"],"sources":["../../src/useNativeRef.ts"],"sourcesContent":[null],"mappings":"AAAA,SAASA,eAAA,QAAuB;AAChC,YAAYC,KAAA,MAAW;AAchB,SAASC,aAAaC,YAAA,EAAwC;EACnE,MAAMC,GAAA,GAAMH,KAAA,CAAMI,MAAA,CAA6B,IAAI;EACnD,MAAMC,WAAA,GAAcN,eAAA,CAAgBI,GAAA,EAAKD,YAAmB;EAC5D,OAAO;IAAEC,GAAA;IAAKE;EAAY;AAC5B;AAYO,SAASC,kBAAkBJ,YAAA,EAAwC;EACxE,MAAMC,GAAA,GAAMH,KAAA,CAAMI,MAAA,CAAkB,IAAI;EACxC,MAAMC,WAAA,GAAcN,eAAA,CAAgBI,GAAA,EAAKD,YAAmB;EAC5D,OAAO;IAAEC,GAAA;IAAKE;EAAY;AAC5B","ignoreList":[]}
1
+ {"version":3,"file":"useNativeRef.js","names":[],"sources":["esm/useNativeRef.js"],"sourcesContent":["import { useComposedRefs } from \"@tamagui/compose-refs\";\nimport * as React from \"react\";\nfunction useNativeRef(forwardedRef) {\n const ref = React.useRef(null);\n const composedRef = useComposedRefs(ref, forwardedRef);\n return { ref, composedRef };\n}\nfunction useNativeInputRef(forwardedRef) {\n const ref = React.useRef(null);\n const composedRef = useComposedRefs(ref, forwardedRef);\n return { ref, composedRef };\n}\nexport {\n useNativeInputRef,\n useNativeRef\n};\n//# sourceMappingURL=useNativeRef.js.map\n"],"mappings":";;;;AAEA,SAAS,aAAa,cAAc;CAClC,MAAM,MAAM,MAAM,OAAO,IAAI;CAC7B,MAAM,cAAc,gBAAgB,KAAK,YAAY;CACrD,OAAO;EAAE;EAAK;CAAY;AAC5B;AACA,SAAS,kBAAkB,cAAc;CACvC,MAAM,MAAM,MAAM,OAAO,IAAI;CAC7B,MAAM,cAAc,gBAAgB,KAAK,YAAY;CACrD,OAAO;EAAE;EAAK;CAAY;AAC5B"}
@@ -1,20 +1,22 @@
1
1
  import { useComposedRefs } from "@tamagui/compose-refs";
2
2
  import * as React from "react";
3
+
3
4
  function useNativeRef(forwardedRef) {
4
- var ref = React.useRef(null);
5
- var composedRef = useComposedRefs(ref, forwardedRef);
6
- return {
7
- ref,
8
- composedRef
9
- };
5
+ var ref = React.useRef(null);
6
+ var composedRef = useComposedRefs(ref, forwardedRef);
7
+ return {
8
+ ref,
9
+ composedRef
10
+ };
10
11
  }
11
12
  function useNativeInputRef(forwardedRef) {
12
- var ref = React.useRef(null);
13
- var composedRef = useComposedRefs(ref, forwardedRef);
14
- return {
15
- ref,
16
- composedRef
17
- };
13
+ var ref = React.useRef(null);
14
+ var composedRef = useComposedRefs(ref, forwardedRef);
15
+ return {
16
+ ref,
17
+ composedRef
18
+ };
18
19
  }
20
+
19
21
  export { useNativeInputRef, useNativeRef };
20
22
  //# sourceMappingURL=useNativeRef.native.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["useComposedRefs","React","useNativeRef","forwardedRef","ref","useRef","composedRef","useNativeInputRef"],"sources":["../../src/useNativeRef.ts"],"sourcesContent":[null],"mappings":"AAAA,SAASA,eAAA,QAAuB;AAChC,YAAYC,KAAA,MAAW;AAchB,SAASC,aAAaC,YAAA,EAAwC;EACnE,IAAAC,GAAM,GAAAH,KAAM,CAAAI,MAAM,KAA6B;EAC/C,IAAAC,WAAM,GAAAN,eAAc,CAAAI,GAAgB,EAAAD,YAAK;EACzC,OAAO;IACTC,GAAA;IAYOE;EACL;AACA;AACA,SAAOC,iBAAOA,CAAAJ,YAAY;EAC5B,IAAAC,GAAA,GAAAH,KAAA,CAAAI,MAAA","ignoreList":[]}
1
+ {"version":3,"file":"useNativeRef.native.js","names":[],"sources":["esm/useNativeRef.native.js"],"sourcesContent":["import { useComposedRefs } from \"@tamagui/compose-refs\";\nimport * as React from \"react\";\nfunction useNativeRef(forwardedRef) {\n var ref = React.useRef(null);\n var composedRef = useComposedRefs(ref, forwardedRef);\n return {\n ref,\n composedRef\n };\n}\nfunction useNativeInputRef(forwardedRef) {\n var ref = React.useRef(null);\n var composedRef = useComposedRefs(ref, forwardedRef);\n return {\n ref,\n composedRef\n };\n}\nexport {\n useNativeInputRef,\n useNativeRef\n};\n//# sourceMappingURL=useNativeRef.js.map\n"],"mappings":";;;;AAEA,SAAS,aAAa,cAAc;CAClC,IAAI,MAAM,MAAM,OAAO,IAAI;CAC3B,IAAI,cAAc,gBAAgB,KAAK,YAAY;CACnD,OAAO;EACL;EACA;CACF;AACF;AACA,SAAS,kBAAkB,cAAc;CACvC,IAAI,MAAM,MAAM,OAAO,IAAI;CAC3B,IAAI,cAAc,gBAAgB,KAAK,YAAY;CACnD,OAAO;EACL;EACA;CACF;AACF"}
@@ -1,12 +1,14 @@
1
1
  import { useComposedRefs } from "@tamagui/compose-refs";
2
2
  import * as React from "react";
3
+
3
4
  function useWebRef(forwardedRef) {
4
- const ref = React.useRef(null);
5
- const composedRef = useComposedRefs(ref, forwardedRef);
6
- return {
7
- ref,
8
- composedRef
9
- };
5
+ const ref = React.useRef(null);
6
+ const composedRef = useComposedRefs(ref, forwardedRef);
7
+ return {
8
+ ref,
9
+ composedRef
10
+ };
10
11
  }
12
+
11
13
  export { useWebRef };
12
14
  //# sourceMappingURL=useWebRef.mjs.map
@@ -1 +1 @@
1
- {"version":3,"names":["useComposedRefs","React","useWebRef","forwardedRef","ref","useRef","composedRef"],"sources":["../../src/useWebRef.ts"],"sourcesContent":[null],"mappings":"AAAA,SAASA,eAAA,QAAuB;AAChC,YAAYC,KAAA,MAAW;AAehB,SAASC,UACdC,YAAA,EACA;EACA,MAAMC,GAAA,GAAMH,KAAA,CAAMI,MAAA,CAAU,IAAI;EAChC,MAAMC,WAAA,GAAcN,eAAA,CAAgBI,GAAA,EAAKD,YAAmB;EAC5D,OAAO;IAAEC,GAAA;IAAKE;EAAY;AAC5B","ignoreList":[]}
1
+ {"version":3,"file":"useWebRef.js","names":[],"sources":["esm/useWebRef.js"],"sourcesContent":["import { useComposedRefs } from \"@tamagui/compose-refs\";\nimport * as React from \"react\";\nfunction useWebRef(forwardedRef) {\n const ref = React.useRef(null);\n const composedRef = useComposedRefs(ref, forwardedRef);\n return { ref, composedRef };\n}\nexport {\n useWebRef\n};\n//# sourceMappingURL=useWebRef.js.map\n"],"mappings":";;;;AAEA,SAAS,UAAU,cAAc;CAC/B,MAAM,MAAM,MAAM,OAAO,IAAI;CAC7B,MAAM,cAAc,gBAAgB,KAAK,YAAY;CACrD,OAAO;EAAE;EAAK;CAAY;AAC5B"}
@@ -1,12 +1,14 @@
1
1
  import { useComposedRefs } from "@tamagui/compose-refs";
2
2
  import * as React from "react";
3
+
3
4
  function useWebRef(forwardedRef) {
4
- var ref = React.useRef(null);
5
- var composedRef = useComposedRefs(ref, forwardedRef);
6
- return {
7
- ref,
8
- composedRef
9
- };
5
+ var ref = React.useRef(null);
6
+ var composedRef = useComposedRefs(ref, forwardedRef);
7
+ return {
8
+ ref,
9
+ composedRef
10
+ };
10
11
  }
12
+
11
13
  export { useWebRef };
12
14
  //# sourceMappingURL=useWebRef.native.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["useComposedRefs","React","useWebRef","forwardedRef","ref","useRef","composedRef"],"sources":["../../src/useWebRef.ts"],"sourcesContent":[null],"mappings":"AAAA,SAASA,eAAA,QAAuB;AAChC,YAAYC,KAAA,MAAW;AAehB,SAASC,UACdC,YAAA,EACA;EACA,IAAAC,GAAM,GAAAH,KAAM,CAAAI,MAAM,KAAU;EAC5B,IAAAC,WAAM,GAAAN,eAAc,CAAAI,GAAgB,EAAAD,YAAK;EACzC,OAAO;IACTC,GAAA","ignoreList":[]}
1
+ {"version":3,"file":"useWebRef.native.js","names":[],"sources":["esm/useWebRef.native.js"],"sourcesContent":["import { useComposedRefs } from \"@tamagui/compose-refs\";\nimport * as React from \"react\";\nfunction useWebRef(forwardedRef) {\n var ref = React.useRef(null);\n var composedRef = useComposedRefs(ref, forwardedRef);\n return {\n ref,\n composedRef\n };\n}\nexport {\n useWebRef\n};\n//# sourceMappingURL=useWebRef.js.map\n"],"mappings":";;;;AAEA,SAAS,UAAU,cAAc;CAC/B,IAAI,MAAM,MAAM,OAAO,IAAI;CAC3B,IAAI,cAAc,gBAAgB,KAAK,YAAY;CACnD,OAAO;EACL;EACA;CACF;AACF"}