@tamagui/focus-scope 1.0.1-beta.56 → 1.0.1-beta.57
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/FocusScope.native.js +3 -3
- package/dist/cjs/FocusScope.native.js.map +2 -2
- package/dist/esm/FocusScope.native.js +3 -4
- package/dist/esm/FocusScope.native.js.map +2 -2
- package/dist/jsx/FocusScope.native.js +3 -4
- package/package.json +3 -3
- package/types/FocusScope.native.d.ts +1 -1
- package/types/FocusScope.native.d.ts.map +1 -1
|
@@ -2,7 +2,6 @@ var __defProp = Object.defineProperty;
|
|
|
2
2
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
3
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
4
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
-
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
6
5
|
var __export = (target, all) => {
|
|
7
6
|
for (var name in all)
|
|
8
7
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
@@ -21,9 +20,10 @@ __export(FocusScope_native_exports, {
|
|
|
21
20
|
FocusScope: () => FocusScope
|
|
22
21
|
});
|
|
23
22
|
module.exports = __toCommonJS(FocusScope_native_exports);
|
|
24
|
-
|
|
23
|
+
var import_react = require("react");
|
|
24
|
+
const FocusScope = (0, import_react.forwardRef)((props, _ref) => {
|
|
25
25
|
return props.children;
|
|
26
|
-
}
|
|
26
|
+
});
|
|
27
27
|
// Annotate the CommonJS export names for ESM import in node:
|
|
28
28
|
0 && (module.exports = {
|
|
29
29
|
FocusScope
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/FocusScope.native.tsx"],
|
|
4
|
-
"sourcesContent": ["import { FocusScopeProps } from './FocusScopeProps'\n\nexport const FocusScope = (props: FocusScopeProps) => {\n return props.children\n}\n"],
|
|
5
|
-
"mappings": "
|
|
4
|
+
"sourcesContent": ["import { forwardRef } from 'react'\n\nimport { FocusScopeProps } from './FocusScopeProps'\n\nexport const FocusScope = forwardRef((props: FocusScopeProps, _ref) => {\n return props.children as any\n})\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,mBAA2B;AAIpB,MAAM,aAAa,6BAAW,CAAC,OAAwB,SAAS;AACrE,SAAO,MAAM;AACf,CAAC;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
const FocusScope = /* @__PURE__ */ __name((props) => {
|
|
1
|
+
import { forwardRef } from "react";
|
|
2
|
+
const FocusScope = forwardRef((props, _ref) => {
|
|
4
3
|
return props.children;
|
|
5
|
-
}
|
|
4
|
+
});
|
|
6
5
|
export {
|
|
7
6
|
FocusScope
|
|
8
7
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/FocusScope.native.tsx"],
|
|
4
|
-
"sourcesContent": ["import { FocusScopeProps } from './FocusScopeProps'\n\nexport const FocusScope = (props: FocusScopeProps) => {\n return props.children\n}\n"],
|
|
5
|
-
"mappings": "
|
|
4
|
+
"sourcesContent": ["import { forwardRef } from 'react'\n\nimport { FocusScopeProps } from './FocusScopeProps'\n\nexport const FocusScope = forwardRef((props: FocusScopeProps, _ref) => {\n return props.children as any\n})\n"],
|
|
5
|
+
"mappings": "AAAA;AAIO,MAAM,aAAa,WAAW,CAAC,OAAwB,SAAS;AACrE,SAAO,MAAM;AACf,CAAC;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
const FocusScope = /* @__PURE__ */ __name((props) => {
|
|
1
|
+
import { forwardRef } from "react";
|
|
2
|
+
const FocusScope = forwardRef((props, _ref) => {
|
|
4
3
|
return props.children;
|
|
5
|
-
}
|
|
4
|
+
});
|
|
6
5
|
export {
|
|
7
6
|
FocusScope
|
|
8
7
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tamagui/focus-scope",
|
|
3
|
-
"version": "1.0.1-beta.
|
|
3
|
+
"version": "1.0.1-beta.57",
|
|
4
4
|
"sideEffects": true,
|
|
5
5
|
"source": "src/index.ts",
|
|
6
6
|
"types": "./types/index.d.ts",
|
|
@@ -19,14 +19,14 @@
|
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@radix-ui/react-use-callback-ref": "^0.1.0",
|
|
22
|
-
"@tamagui/compose-refs": "^1.0.1-beta.
|
|
22
|
+
"@tamagui/compose-refs": "^1.0.1-beta.57"
|
|
23
23
|
},
|
|
24
24
|
"peerDependencies": {
|
|
25
25
|
"react": "*",
|
|
26
26
|
"react-dom": "*"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
|
-
"@tamagui/build": "^1.0.1-beta.
|
|
29
|
+
"@tamagui/build": "^1.0.1-beta.57",
|
|
30
30
|
"react": "*",
|
|
31
31
|
"react-dom": "*"
|
|
32
32
|
},
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { FocusScopeProps } from './FocusScopeProps';
|
|
3
|
-
export declare const FocusScope: (
|
|
3
|
+
export declare const FocusScope: import("react").ForwardRefExoticComponent<FocusScopeProps & import("react").RefAttributes<unknown>>;
|
|
4
4
|
//# sourceMappingURL=FocusScope.native.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FocusScope.native.d.ts","sourceRoot":"","sources":["../src/FocusScope.native.tsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"FocusScope.native.d.ts","sourceRoot":"","sources":["../src/FocusScope.native.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA;AAEnD,eAAO,MAAM,UAAU,qGAErB,CAAA"}
|