@vxrn/native 1.14.4 → 1.14.5
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/.turbo/turbo-build.log +1 -1
- package/dist/cjs/color/android.dynamic.types.cjs +7 -5
- package/dist/cjs/color/android.dynamic.types.native.js +7 -5
- package/dist/cjs/color/android.dynamic.types.native.js.map +1 -1
- package/dist/cjs/color/android.material.types.cjs +7 -5
- package/dist/cjs/color/android.material.types.native.js +7 -5
- package/dist/cjs/color/android.material.types.native.js.map +1 -1
- package/dist/cjs/color/index.cjs +52 -47
- package/dist/cjs/color/index.native.js +54 -47
- package/dist/cjs/color/index.native.js.map +1 -1
- package/dist/cjs/color/ios.types.cjs +7 -5
- package/dist/cjs/color/ios.types.native.js +7 -5
- package/dist/cjs/color/ios.types.native.js.map +1 -1
- package/dist/cjs/color/materialColor.cjs +12 -10
- package/dist/cjs/color/materialColor.native.js +18 -16
- package/dist/cjs/color/materialColor.native.js.map +1 -1
- package/dist/cjs/index.cjs +17 -15
- package/dist/cjs/index.native.js +17 -15
- package/dist/cjs/index.native.js.map +1 -1
- package/dist/cjs/menu/index.cjs +12 -10
- package/dist/cjs/menu/index.native.js +16 -14
- package/dist/cjs/menu/index.native.js.map +1 -1
- package/dist/cjs/menu/types.cjs +7 -5
- package/dist/cjs/menu/types.native.js +7 -5
- package/dist/cjs/menu/types.native.js.map +1 -1
- package/dist/cjs/split-view/index.cjs +12 -10
- package/dist/cjs/split-view/index.native.js +12 -10
- package/dist/cjs/split-view/index.native.js.map +1 -1
- package/dist/cjs/split-view/split-view.cjs +59 -43
- package/dist/cjs/split-view/split-view.native.js +64 -48
- package/dist/cjs/split-view/split-view.native.js.map +1 -1
- package/dist/cjs/toolbar/index.cjs +12 -10
- package/dist/cjs/toolbar/index.native.js +15 -13
- package/dist/cjs/toolbar/index.native.js.map +1 -1
- package/dist/cjs/toolbar/types.cjs +7 -5
- package/dist/cjs/toolbar/types.native.js +7 -5
- package/dist/cjs/toolbar/types.native.js.map +1 -1
- package/dist/cjs/zoom/index.cjs +12 -10
- package/dist/cjs/zoom/index.native.js +28 -23
- package/dist/cjs/zoom/index.native.js.map +1 -1
- package/dist/cjs/zoom/types.cjs +7 -5
- package/dist/cjs/zoom/types.native.js +7 -5
- package/dist/cjs/zoom/types.native.js.map +1 -1
- package/dist/esm/color/index.mjs +37 -34
- package/dist/esm/color/index.mjs.map +1 -1
- package/dist/esm/color/index.native.js +39 -34
- package/dist/esm/color/index.native.js.map +1 -1
- package/dist/esm/color/materialColor.native.js +2 -2
- package/dist/esm/color/materialColor.native.js.map +1 -1
- package/dist/esm/menu/index.native.js +2 -2
- package/dist/esm/menu/index.native.js.map +1 -1
- package/dist/esm/split-view/split-view.mjs +32 -18
- package/dist/esm/split-view/split-view.mjs.map +1 -1
- package/dist/esm/split-view/split-view.native.js +37 -23
- package/dist/esm/split-view/split-view.native.js.map +1 -1
- package/dist/esm/zoom/index.native.js +14 -11
- package/dist/esm/zoom/index.native.js.map +1 -1
- package/package.json +2 -2
package/dist/cjs/menu/index.cjs
CHANGED
|
@@ -3,20 +3,22 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
|
3
3
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
4
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
5
|
var __export = (target, all) => {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
6
|
+
for (var name in all) __defProp(target, name, {
|
|
7
|
+
get: all[name],
|
|
8
|
+
enumerable: true
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
13
14
|
get: () => from[key],
|
|
14
15
|
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
15
16
|
});
|
|
16
|
-
|
|
17
|
-
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
18
20
|
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
19
|
-
value:
|
|
21
|
+
value: true
|
|
20
22
|
}), mod);
|
|
21
23
|
var menu_exports = {};
|
|
22
24
|
__export(menu_exports, {
|
|
@@ -5,30 +5,32 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
|
5
5
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
6
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
7
|
var __export = (target, all) => {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
8
|
+
for (var name in all) __defProp(target, name, {
|
|
9
|
+
get: all[name],
|
|
10
|
+
enumerable: true
|
|
11
|
+
});
|
|
12
|
+
};
|
|
13
|
+
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, {
|
|
15
16
|
get: () => from[key],
|
|
16
17
|
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
17
18
|
});
|
|
18
|
-
|
|
19
|
-
|
|
19
|
+
}
|
|
20
|
+
return to;
|
|
21
|
+
};
|
|
20
22
|
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
21
|
-
value:
|
|
23
|
+
value: true
|
|
22
24
|
}), mod);
|
|
23
25
|
var index_native_exports = {};
|
|
24
26
|
__export(index_native_exports, {
|
|
25
27
|
MenuAction: () => MenuAction
|
|
26
28
|
});
|
|
27
29
|
module.exports = __toCommonJS(index_native_exports);
|
|
28
|
-
var import_jsx_runtime = require("react/jsx-runtime")
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
30
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
31
|
+
var import_react_native = require("react-native");
|
|
32
|
+
var isAvailable = import_react_native.Platform.OS === "ios" && !import_react_native.Platform.isTV;
|
|
33
|
+
var MenuActionNative = isAvailable ? (0, import_react_native.requireNativeComponent)("VxrnMenuAction") : null;
|
|
32
34
|
function MenuAction(props) {
|
|
33
35
|
if (!MenuActionNative) return null;
|
|
34
36
|
var {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["index_native_exports","__export","MenuAction","module","exports","__toCommonJS","import_jsx_runtime","require","import_react_native","isAvailable","Platform","OS","isTV","MenuActionNative","requireNativeComponent","props","image","onSelected","rest","jsx","imageSource"],"sources":["../../../src/menu/index.native.tsx"],"sourcesContent":[null],"mappings":"
|
|
1
|
+
{"version":3,"names":["index_native_exports","__export","MenuAction","module","exports","__toCommonJS","import_jsx_runtime","require","import_react_native","isAvailable","Platform","OS","isTV","MenuActionNative","requireNativeComponent","props","image","onSelected","rest","jsx","imageSource"],"sources":["../../../src/menu/index.native.tsx"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,oBAAA;AAAAC,QAAA,CAAAD,oBAAA;EAAAE,UAAA,EAAAA,CAAA,KAAAA;AAAA;AAAAC,MAAA,CAAAC,OAAA,GAAAC,YAAA,CAAAL,oBAAA;AAAA,IAAAM,kBAAA,GAA4BC,OAAA;AAC5B,IAAAC,mBAAA,GAAiDD,OAAA;AACjD,IAAIE,WAAA,GAAcD,mBAAA,CAAAE,QAAA,CAASC,EAAA,KAAO,SAAS,CAACH,mBAAA,CAAAE,QAAA,CAASE,IAAA;AACrD,IAAIC,gBAAA,GAAmBJ,WAAA,OAAcD,mBAAA,CAAAM,sBAAA,EAAuB,gBAAgB,IAAI;AACzE,SAASZ,WAAWa,KAAA,EAAO;EAC9B,IAAI,CAACF,gBAAA,EAAkB,OAAO;EAC9B,IAAI;IAAEG,KAAA;IAAOC,UAAA;IAAY,GAAGC;EAAK,IAAIH,KAAA;EACrC,OAAqB,mBAAAT,kBAAA,CAAAa,GAAA,EAAKN,gBAAA,EAAkB;IACxC,GAAGK,IAAA;IACHE,WAAA,EAAaJ,KAAA;IACbC,UAAA,EAAYA,UAAA,GAAa,YAAW;MAChC,OAAOA,UAAA,CAAW;IACtB,IAAI;EACR,CAAC;AACL","ignoreList":[]}
|
package/dist/cjs/menu/types.cjs
CHANGED
|
@@ -3,14 +3,16 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
|
3
3
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
4
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
5
|
var __copyProps = (to, from, except, desc) => {
|
|
6
|
-
if (from && typeof from
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
6
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
7
|
+
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
8
|
+
get: () => from[key],
|
|
9
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
10
|
+
});
|
|
11
|
+
}
|
|
10
12
|
return to;
|
|
11
13
|
};
|
|
12
14
|
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
13
|
-
value:
|
|
15
|
+
value: true
|
|
14
16
|
}), mod);
|
|
15
17
|
var types_exports = {};
|
|
16
18
|
module.exports = __toCommonJS(types_exports);
|
|
@@ -5,14 +5,16 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
|
5
5
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
6
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
7
|
var __copyProps = (to, from, except, desc) => {
|
|
8
|
-
if (from && typeof from
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
8
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
9
|
+
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
10
|
+
get: () => from[key],
|
|
11
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
12
|
+
});
|
|
13
|
+
}
|
|
12
14
|
return to;
|
|
13
15
|
};
|
|
14
16
|
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
15
|
-
value:
|
|
17
|
+
value: true
|
|
16
18
|
}), mod);
|
|
17
19
|
var types_exports = {};
|
|
18
20
|
module.exports = __toCommonJS(types_exports);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","types_exports"],"sources":["../../../src/menu/types.ts"],"sourcesContent":[null],"mappings":"
|
|
1
|
+
{"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","types_exports"],"sources":["../../../src/menu/types.ts"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;EAAAC,KAAA;AAAA,IAAAH,GAAA;AAAA,IAAAI,aAAA","ignoreList":[]}
|
|
@@ -3,20 +3,22 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
|
3
3
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
4
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
5
|
var __export = (target, all) => {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
6
|
+
for (var name in all) __defProp(target, name, {
|
|
7
|
+
get: all[name],
|
|
8
|
+
enumerable: true
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
13
14
|
get: () => from[key],
|
|
14
15
|
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
15
16
|
});
|
|
16
|
-
|
|
17
|
-
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
18
20
|
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
19
|
-
value:
|
|
21
|
+
value: true
|
|
20
22
|
}), mod);
|
|
21
23
|
var split_view_exports = {};
|
|
22
24
|
__export(split_view_exports, {
|
|
@@ -5,20 +5,22 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
|
5
5
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
6
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
7
|
var __export = (target, all) => {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
8
|
+
for (var name in all) __defProp(target, name, {
|
|
9
|
+
get: all[name],
|
|
10
|
+
enumerable: true
|
|
11
|
+
});
|
|
12
|
+
};
|
|
13
|
+
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, {
|
|
15
16
|
get: () => from[key],
|
|
16
17
|
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
17
18
|
});
|
|
18
|
-
|
|
19
|
-
|
|
19
|
+
}
|
|
20
|
+
return to;
|
|
21
|
+
};
|
|
20
22
|
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
21
|
-
value:
|
|
23
|
+
value: true
|
|
22
24
|
}), mod);
|
|
23
25
|
var split_view_exports = {};
|
|
24
26
|
__export(split_view_exports, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","split_view_exports","__export","SplitView","import_split_view","module","exports"],"sources":["../../../src/split-view/index.ts"],"sourcesContent":[null],"mappings":"
|
|
1
|
+
{"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","split_view_exports","__export","SplitView","import_split_view","module","exports"],"sources":["../../../src/split-view/index.ts"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;EAAAC,KAAA;AAAA,IAAAH,GAAA;AAAA,IAAAI,kBAAA;AAAAC,QAAA,CAAAD,kBAAA;EAAAE,SAAA,EAAAA,CAAA,KAAAC,iBAAA,CAAAD;AAAA;AAAAE,MAAA,CAAAC,OAAA,GAAAV,YAA0B,CAAAK,kBAAA","ignoreList":[]}
|
|
@@ -2,53 +2,55 @@ var __create = Object.create;
|
|
|
2
2
|
var __defProp = Object.defineProperty;
|
|
3
3
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
4
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __getProtoOf = Object.getPrototypeOf
|
|
6
|
-
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
7
|
var __export = (target, all) => {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
8
|
+
for (var name in all) __defProp(target, name, {
|
|
9
|
+
get: all[name],
|
|
10
|
+
enumerable: true
|
|
11
|
+
});
|
|
12
|
+
};
|
|
13
|
+
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, {
|
|
15
16
|
get: () => from[key],
|
|
16
17
|
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
17
18
|
});
|
|
18
|
-
|
|
19
|
-
|
|
19
|
+
}
|
|
20
|
+
return to;
|
|
21
|
+
};
|
|
20
22
|
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
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
|
|
30
|
+
}) : target, mod));
|
|
31
|
+
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
32
|
+
value: true
|
|
33
|
+
}), mod);
|
|
32
34
|
var split_view_exports = {};
|
|
33
35
|
__export(split_view_exports, {
|
|
34
36
|
SplitView: () => SplitView
|
|
35
37
|
});
|
|
36
38
|
module.exports = __toCommonJS(split_view_exports);
|
|
37
|
-
var import_react = __toESM(require("react"), 1)
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
const IsWithinSplitViewContext = (0, import_react.createContext)(
|
|
41
|
-
|
|
39
|
+
var import_react = __toESM(require("react"), 1);
|
|
40
|
+
var import_react_native = require("react-native-web");
|
|
41
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
42
|
+
const IsWithinSplitViewContext = (0, import_react.createContext)(false);
|
|
43
|
+
const isSplitViewAvailable = import_react_native.Platform.OS === "ios" && import_react_native.UIManager.getViewManagerConfig?.("RNSSplitViewHost") != null;
|
|
42
44
|
function SplitViewColumnComponent(props) {
|
|
43
45
|
if (!isSplitViewAvailable) return /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_react_native.View, {
|
|
44
46
|
children: props.children
|
|
45
47
|
});
|
|
46
48
|
const {
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
49
|
+
Split
|
|
50
|
+
} = require("react-native-screens/experimental");
|
|
51
|
+
const {
|
|
52
|
+
SafeAreaProvider
|
|
53
|
+
} = require("react-native-safe-area-context");
|
|
52
54
|
return /* @__PURE__ */(0, import_jsx_runtime.jsx)(Split.Column, {
|
|
53
55
|
children: /* @__PURE__ */(0, import_jsx_runtime.jsx)(SafeAreaProvider, {
|
|
54
56
|
children: props.children
|
|
@@ -71,18 +73,32 @@ function SplitViewNavigator({
|
|
|
71
73
|
slot: Slot,
|
|
72
74
|
...rest
|
|
73
75
|
}) {
|
|
74
|
-
if ((0, import_react.useContext)(IsWithinSplitViewContext))
|
|
75
|
-
|
|
76
|
-
|
|
76
|
+
if ((0, import_react.useContext)(IsWithinSplitViewContext)) {
|
|
77
|
+
throw new Error("There can only be one SplitView in the navigation hierarchy.");
|
|
78
|
+
}
|
|
79
|
+
if (import_react_native.Platform.OS !== "ios") {
|
|
80
|
+
console.warn("SplitView is only supported on iOS.");
|
|
81
|
+
return Slot ? /* @__PURE__ */(0, import_jsx_runtime.jsx)(Slot, {}) : null;
|
|
82
|
+
}
|
|
83
|
+
if (!isSplitViewAvailable) {
|
|
84
|
+
console.warn("SplitView requires react-native-screens gamma. Add ENV['RNS_GAMMA_ENABLED'] ||= '1' to the top of your Podfile and run pod install.");
|
|
85
|
+
return Slot ? /* @__PURE__ */(0, import_jsx_runtime.jsx)(Slot, {}) : null;
|
|
86
|
+
}
|
|
77
87
|
const {
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
if (columnChildren.length > 2)
|
|
84
|
-
|
|
85
|
-
|
|
88
|
+
Split
|
|
89
|
+
} = require("react-native-screens/experimental");
|
|
90
|
+
const allChildrenArray = import_react.default.Children.toArray(children);
|
|
91
|
+
const columnChildren = allChildrenArray.filter(child => (0, import_react.isValidElement)(child) && child.type === SplitViewColumnComponent);
|
|
92
|
+
const inspectorChildren = allChildrenArray.filter(child => (0, import_react.isValidElement)(child) && child.type === SplitViewInspectorComponent);
|
|
93
|
+
if (columnChildren.length > 2) {
|
|
94
|
+
throw new Error("There can only be two SplitView.Column in the SplitView.");
|
|
95
|
+
}
|
|
96
|
+
if (columnChildren.length + inspectorChildren.length === 0) {
|
|
97
|
+
console.warn("No SplitView.Column found in SplitView.");
|
|
98
|
+
return Slot ? /* @__PURE__ */(0, import_jsx_runtime.jsx)(Slot, {}) : null;
|
|
99
|
+
}
|
|
100
|
+
return /* @__PURE__ */(0, import_jsx_runtime.jsx)(IsWithinSplitViewContext.Provider, {
|
|
101
|
+
value: true,
|
|
86
102
|
children: /* @__PURE__ */(0, import_jsx_runtime.jsxs)(Split.Host, {
|
|
87
103
|
...rest,
|
|
88
104
|
children: [columnChildren, /* @__PURE__ */(0, import_jsx_runtime.jsx)(Split.Column, {
|
|
@@ -4,54 +4,56 @@ var __create = Object.create;
|
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
5
5
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
6
6
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
7
|
-
var __getProtoOf = Object.getPrototypeOf
|
|
8
|
-
|
|
7
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
8
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
9
9
|
var __export = (target, all) => {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
10
|
+
for (var name in all) __defProp(target, name, {
|
|
11
|
+
get: all[name],
|
|
12
|
+
enumerable: true
|
|
13
|
+
});
|
|
14
|
+
};
|
|
15
|
+
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, {
|
|
17
18
|
get: () => from[key],
|
|
18
19
|
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
19
20
|
});
|
|
20
|
-
|
|
21
|
-
|
|
21
|
+
}
|
|
22
|
+
return to;
|
|
23
|
+
};
|
|
22
24
|
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
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
|
|
32
|
+
}) : target, mod));
|
|
33
|
+
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
34
|
+
value: true
|
|
35
|
+
}), mod);
|
|
34
36
|
var split_view_exports = {};
|
|
35
37
|
__export(split_view_exports, {
|
|
36
38
|
SplitView: () => SplitView
|
|
37
39
|
});
|
|
38
40
|
module.exports = __toCommonJS(split_view_exports);
|
|
39
|
-
var import_jsx_runtime = require("react/jsx-runtime")
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
41
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
42
|
+
var import_react = __toESM(require("react"), 1);
|
|
43
|
+
var import_react_native = require("react-native");
|
|
44
|
+
var _UIManager_getViewManagerConfig;
|
|
45
|
+
var IsWithinSplitViewContext = /* @__PURE__ */(0, import_react.createContext)(false);
|
|
46
|
+
var isSplitViewAvailable = import_react_native.Platform.OS === "ios" && ((_UIManager_getViewManagerConfig = import_react_native.UIManager.getViewManagerConfig) === null || _UIManager_getViewManagerConfig === void 0 ? void 0 : _UIManager_getViewManagerConfig.call(import_react_native.UIManager, "RNSSplitViewHost")) != null;
|
|
45
47
|
function SplitViewColumnComponent(props) {
|
|
46
48
|
if (!isSplitViewAvailable) return /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_react_native.View, {
|
|
47
49
|
children: props.children
|
|
48
50
|
});
|
|
49
51
|
var {
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
52
|
+
Split
|
|
53
|
+
} = require("react-native-screens/experimental");
|
|
54
|
+
var {
|
|
55
|
+
SafeAreaProvider
|
|
56
|
+
} = require("react-native-safe-area-context");
|
|
55
57
|
return /* @__PURE__ */(0, import_jsx_runtime.jsx)(Split.Column, {
|
|
56
58
|
children: /* @__PURE__ */(0, import_jsx_runtime.jsx)(SafeAreaProvider, {
|
|
57
59
|
children: props.children
|
|
@@ -75,22 +77,36 @@ function SplitViewNavigator(param) {
|
|
|
75
77
|
slot: Slot,
|
|
76
78
|
...rest
|
|
77
79
|
} = param;
|
|
78
|
-
if ((0, import_react.useContext)(IsWithinSplitViewContext))
|
|
79
|
-
|
|
80
|
-
|
|
80
|
+
if ((0, import_react.useContext)(IsWithinSplitViewContext)) {
|
|
81
|
+
throw new Error("There can only be one SplitView in the navigation hierarchy.");
|
|
82
|
+
}
|
|
83
|
+
if (import_react_native.Platform.OS !== "ios") {
|
|
84
|
+
console.warn("SplitView is only supported on iOS.");
|
|
85
|
+
return Slot ? /* @__PURE__ */(0, import_jsx_runtime.jsx)(Slot, {}) : null;
|
|
86
|
+
}
|
|
87
|
+
if (!isSplitViewAvailable) {
|
|
88
|
+
console.warn("SplitView requires react-native-screens gamma. Add ENV['RNS_GAMMA_ENABLED'] ||= '1' to the top of your Podfile and run pod install.");
|
|
89
|
+
return Slot ? /* @__PURE__ */(0, import_jsx_runtime.jsx)(Slot, {}) : null;
|
|
90
|
+
}
|
|
81
91
|
var {
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
if (columnChildren.length > 2)
|
|
92
|
-
|
|
93
|
-
|
|
92
|
+
Split
|
|
93
|
+
} = require("react-native-screens/experimental");
|
|
94
|
+
var allChildrenArray = import_react.default.Children.toArray(children);
|
|
95
|
+
var columnChildren = allChildrenArray.filter(function (child) {
|
|
96
|
+
return /* @__PURE__ */(0, import_react.isValidElement)(child) && child.type === SplitViewColumnComponent;
|
|
97
|
+
});
|
|
98
|
+
var inspectorChildren = allChildrenArray.filter(function (child) {
|
|
99
|
+
return /* @__PURE__ */(0, import_react.isValidElement)(child) && child.type === SplitViewInspectorComponent;
|
|
100
|
+
});
|
|
101
|
+
if (columnChildren.length > 2) {
|
|
102
|
+
throw new Error("There can only be two SplitView.Column in the SplitView.");
|
|
103
|
+
}
|
|
104
|
+
if (columnChildren.length + inspectorChildren.length === 0) {
|
|
105
|
+
console.warn("No SplitView.Column found in SplitView.");
|
|
106
|
+
return Slot ? /* @__PURE__ */(0, import_jsx_runtime.jsx)(Slot, {}) : null;
|
|
107
|
+
}
|
|
108
|
+
return /* @__PURE__ */(0, import_jsx_runtime.jsx)(IsWithinSplitViewContext.Provider, {
|
|
109
|
+
value: true,
|
|
94
110
|
children: /* @__PURE__ */(0, import_jsx_runtime.jsxs)(Split.Host, {
|
|
95
111
|
...rest,
|
|
96
112
|
children: [columnChildren, /* @__PURE__ */(0, import_jsx_runtime.jsx)(Split.Column, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","split_view_exports","__export","SplitView","module","exports","import_jsx_runtime","require","import_react","__toESM","import_react_native","_UIManager_getViewManagerConfig","IsWithinSplitViewContext","createContext","isSplitViewAvailable","Platform","OS","UIManager","getViewManagerConfig","call","SplitViewColumnComponent","props","jsx","View","children","Split","SafeAreaProvider","Column","SplitViewInspectorComponent","Inspector","SplitViewNavigator","param","slot","Slot","rest","useContext","Error","console","warn","allChildrenArray","default","Children","toArray","columnChildren","filter","child","isValidElement","type","inspectorChildren","length"
|
|
1
|
+
{"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","split_view_exports","__export","SplitView","module","exports","import_jsx_runtime","require","import_react","__toESM","import_react_native","_UIManager_getViewManagerConfig","IsWithinSplitViewContext","createContext","isSplitViewAvailable","Platform","OS","UIManager","getViewManagerConfig","call","SplitViewColumnComponent","props","jsx","View","children","Split","SafeAreaProvider","Column","SplitViewInspectorComponent","Inspector","SplitViewNavigator","param","slot","Slot","rest","useContext","Error","console","warn","allChildrenArray","default","Children","toArray","columnChildren","filter","child","isValidElement","type","inspectorChildren","length"],"sources":["../../../src/split-view/split-view.tsx"],"sourcesContent":[null],"mappings":"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","ignoreList":[]}
|
|
@@ -3,20 +3,22 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
|
3
3
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
4
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
5
|
var __export = (target, all) => {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
6
|
+
for (var name in all) __defProp(target, name, {
|
|
7
|
+
get: all[name],
|
|
8
|
+
enumerable: true
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
13
14
|
get: () => from[key],
|
|
14
15
|
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
15
16
|
});
|
|
16
|
-
|
|
17
|
-
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
18
20
|
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
19
|
-
value:
|
|
21
|
+
value: true
|
|
20
22
|
}), mod);
|
|
21
23
|
var toolbar_exports = {};
|
|
22
24
|
__export(toolbar_exports, {
|
|
@@ -5,20 +5,22 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
|
5
5
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
6
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
7
|
var __export = (target, all) => {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
8
|
+
for (var name in all) __defProp(target, name, {
|
|
9
|
+
get: all[name],
|
|
10
|
+
enumerable: true
|
|
11
|
+
});
|
|
12
|
+
};
|
|
13
|
+
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, {
|
|
15
16
|
get: () => from[key],
|
|
16
17
|
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
17
18
|
});
|
|
18
|
-
|
|
19
|
-
|
|
19
|
+
}
|
|
20
|
+
return to;
|
|
21
|
+
};
|
|
20
22
|
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
21
|
-
value:
|
|
23
|
+
value: true
|
|
22
24
|
}), mod);
|
|
23
25
|
var index_native_exports = {};
|
|
24
26
|
__export(index_native_exports, {
|
|
@@ -26,9 +28,9 @@ __export(index_native_exports, {
|
|
|
26
28
|
ToolbarItem: () => ToolbarItem
|
|
27
29
|
});
|
|
28
30
|
module.exports = __toCommonJS(index_native_exports);
|
|
29
|
-
var import_jsx_runtime = require("react/jsx-runtime")
|
|
30
|
-
|
|
31
|
-
|
|
31
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
32
|
+
var import_react_native = require("react-native");
|
|
33
|
+
var ToolbarHostNative = (0, import_react_native.requireNativeComponent)("VxrnToolbarHost");
|
|
32
34
|
function ToolbarHost(props) {
|
|
33
35
|
return /* @__PURE__ */(0, import_jsx_runtime.jsx)(ToolbarHostNative, {
|
|
34
36
|
...props,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["index_native_exports","__export","ToolbarHost","ToolbarItem","module","exports","__toCommonJS","import_jsx_runtime","require","import_react_native","ToolbarHostNative","requireNativeComponent","props","jsx","style","position","top","left","width","height","backgroundColor","ToolbarItemNative","image","onSelected","rest","imageSource"],"sources":["../../../src/toolbar/index.native.tsx"],"sourcesContent":[null],"mappings":"
|
|
1
|
+
{"version":3,"names":["index_native_exports","__export","ToolbarHost","ToolbarItem","module","exports","__toCommonJS","import_jsx_runtime","require","import_react_native","ToolbarHostNative","requireNativeComponent","props","jsx","style","position","top","left","width","height","backgroundColor","ToolbarItemNative","image","onSelected","rest","imageSource"],"sources":["../../../src/toolbar/index.native.tsx"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,oBAAA;AAAAC,QAAA,CAAAD,oBAAA;EAAAE,WAAA,EAAAA,CAAA,KAAAA,WAAA;EAAAC,WAAA,EAAAA,CAAA,KAAAA;AAAA;AAAAC,MAAA,CAAAC,OAAA,GAAAC,YAAA,CAAAN,oBAAA;AAAA,IAAAO,kBAAA,GAA4BC,OAAA;AAC5B,IAAAC,mBAAA,GAAuCD,OAAA;AACvC,IAAIE,iBAAA,OAAoBD,mBAAA,CAAAE,sBAAA,EAAuB,iBAAiB;AACzD,SAAST,YAAYU,KAAA,EAAO;EAC/B,OAAqB,mBAAAL,kBAAA,CAAAM,GAAA,EAAKH,iBAAA,EAAmB;IACzC,GAAGE,KAAA;IACHE,KAAA,EAAO;MACHC,QAAA,EAAU;MACVC,GAAA,EAAK;MACLC,IAAA,EAAM;MACNC,KAAA,EAAO;MACPC,MAAA,EAAQ;MACRC,eAAA,EAAiB;IACrB;EACJ,CAAC;AACL;AACA,IAAIC,iBAAA,OAAoBZ,mBAAA,CAAAE,sBAAA,EAAuB,iBAAiB;AACzD,SAASR,YAAYS,KAAA,EAAO;EAC/B,IAAI;IAAEU,KAAA;IAAOC,UAAA;IAAY,GAAGC;EAAK,IAAIZ,KAAA;EACrC,OAAqB,mBAAAL,kBAAA,CAAAM,GAAA,EAAKQ,iBAAA,EAAmB;IACzC,GAAGG,IAAA;IACHC,WAAA,EAAaH,KAAA;IACbC,UAAA,EAAYA,UAAA,GAAa,YAAW;MAChC,OAAOA,UAAA,CAAW;IACtB,IAAI;EACR,CAAC;AACL","ignoreList":[]}
|