@tamagui/compose-refs 1.86.4 → 1.86.6
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/package.json +2 -2
- package/dist/esm/compose-refs.mjs +0 -15
- package/dist/esm/compose-refs.mjs.map +0 -6
- package/dist/esm/index.mjs +0 -2
- package/dist/esm/index.mjs.map +0 -6
- package/dist/jsx/compose-refs.mjs +0 -20
- package/dist/jsx/compose-refs.mjs.map +0 -6
- package/dist/jsx/index.mjs +0 -2
- package/dist/jsx/index.mjs.map +0 -6
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tamagui/compose-refs",
|
|
3
|
-
"version": "1.86.
|
|
3
|
+
"version": "1.86.6",
|
|
4
4
|
"sideEffects": false,
|
|
5
5
|
"source": "src/index.ts",
|
|
6
6
|
"types": "./types/index.d.ts",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"react": "*"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
|
-
"@tamagui/build": "1.86.
|
|
26
|
+
"@tamagui/build": "1.86.6",
|
|
27
27
|
"react": "^18.2.0"
|
|
28
28
|
},
|
|
29
29
|
"publishConfig": {
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
function setRef(ref, value) {
|
|
3
|
-
typeof ref == "function" ? ref(value) : ref && (ref.current = value);
|
|
4
|
-
}
|
|
5
|
-
function composeRefs(...refs) {
|
|
6
|
-
return (node) => refs.forEach((ref) => setRef(ref, node));
|
|
7
|
-
}
|
|
8
|
-
function useComposedRefs(...refs) {
|
|
9
|
-
return React.useCallback(composeRefs(...refs), refs);
|
|
10
|
-
}
|
|
11
|
-
export {
|
|
12
|
-
composeRefs,
|
|
13
|
-
useComposedRefs
|
|
14
|
-
};
|
|
15
|
-
//# sourceMappingURL=compose-refs.mjs.map
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../src/compose-refs.tsx"],
|
|
4
|
-
"mappings": "AAGA,YAAY,WAAW;AAYvB,SAAS,OAAU,KAAqB,OAAU;AAChD,EAAI,OAAO,OAAQ,aACjB,IAAI,KAAK,IACA,QACP,IAAkC,UAAU;AAElD;AAMO,SAAS,eAAkB,MAAwB;AACxD,SAAO,CAAC,SAAY,KAAK,QAAQ,CAAC,QAAQ,OAAO,KAAK,IAAI,CAAC;AAC7D;AAMO,SAAS,mBAAsB,MAAwB;AAE5D,SAAO,MAAM,YAAY,YAAY,GAAG,IAAI,GAAG,IAAI;AACrD;",
|
|
5
|
-
"names": []
|
|
6
|
-
}
|
package/dist/esm/index.mjs
DELETED
package/dist/esm/index.mjs.map
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
function setRef(ref, value) {
|
|
3
|
-
if (typeof ref === "function") {
|
|
4
|
-
ref(value);
|
|
5
|
-
} else if (ref) {
|
|
6
|
-
;
|
|
7
|
-
ref.current = value;
|
|
8
|
-
}
|
|
9
|
-
}
|
|
10
|
-
function composeRefs(...refs) {
|
|
11
|
-
return (node) => refs.forEach((ref) => setRef(ref, node));
|
|
12
|
-
}
|
|
13
|
-
function useComposedRefs(...refs) {
|
|
14
|
-
return React.useCallback(composeRefs(...refs), refs);
|
|
15
|
-
}
|
|
16
|
-
export {
|
|
17
|
-
composeRefs,
|
|
18
|
-
useComposedRefs
|
|
19
|
-
};
|
|
20
|
-
//# sourceMappingURL=compose-refs.mjs.map
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../src/compose-refs.tsx"],
|
|
4
|
-
"mappings": "AAGA,YAAY,WAAW;AAYvB,SAAS,OAAU,KAAqB,OAAU;AAChD,MAAI,OAAO,QAAQ,YAAY;AAC7B,QAAI,KAAK;AAAA,EACX,WAAW,KAAK;AACd;AAAC,IAAC,IAAkC,UAAU;AAAA,EAChD;AACF;AAMO,SAAS,eAAkB,MAAwB;AACxD,SAAO,CAAC,SAAY,KAAK,QAAQ,CAAC,QAAQ,OAAO,KAAK,IAAI,CAAC;AAC7D;AAMO,SAAS,mBAAsB,MAAwB;AAE5D,SAAO,MAAM,YAAY,YAAY,GAAG,IAAI,GAAG,IAAI;AACrD;",
|
|
5
|
-
"names": []
|
|
6
|
-
}
|
package/dist/jsx/index.mjs
DELETED