@tamagui/core 2.0.0-rc.4 → 2.0.0-rc.40
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 +5 -0
- package/bundle-native.mjs +22 -0
- package/dist/cjs/createOptimizedView.cjs +12 -10
- package/dist/cjs/createOptimizedView.native.js +119 -80
- package/dist/cjs/createOptimizedView.native.js.map +1 -1
- package/dist/cjs/getBaseViews.cjs +12 -10
- package/dist/cjs/getBaseViews.native.js +14 -15
- package/dist/cjs/getBaseViews.native.js.map +1 -1
- package/dist/cjs/index.cjs +72 -56
- package/dist/cjs/index.native.js +41 -39
- package/dist/cjs/index.native.js.map +1 -1
- package/dist/cjs/inject-styles.cjs +27 -22
- package/dist/cjs/inject-styles.native.js +28 -23
- package/dist/cjs/inject-styles.native.js.map +1 -1
- package/dist/cjs/reactNativeTypes.cjs +7 -5
- package/dist/cjs/reactNativeTypes.native.js +7 -5
- package/dist/cjs/reactNativeTypes.native.js.map +1 -1
- package/dist/esm/createOptimizedView.native.js +95 -58
- package/dist/esm/createOptimizedView.native.js.map +1 -1
- package/dist/esm/getBaseViews.native.js +2 -5
- package/dist/esm/getBaseViews.native.js.map +1 -1
- package/dist/esm/index.js +44 -44
- package/dist/esm/index.js.map +1 -6
- package/dist/esm/index.mjs +56 -43
- package/dist/esm/index.mjs.map +1 -1
- package/dist/esm/index.native.js +24 -25
- package/dist/esm/index.native.js.map +1 -1
- package/dist/esm/inject-styles.mjs +15 -12
- package/dist/esm/inject-styles.mjs.map +1 -1
- package/dist/esm/inject-styles.native.js +16 -13
- package/dist/esm/inject-styles.native.js.map +1 -1
- package/dist/native.cjs +17964 -12540
- package/dist/test.native.cjs +6611 -4892
- package/inject-styles/index.cjs +2 -0
- package/inject-styles/index.js +2 -0
- package/inject-styles.cjs +1 -0
- package/native/index.cjs +2 -0
- package/native/index.js +2 -0
- package/native-test/index.cjs +2 -0
- package/native-test/index.js +2 -0
- package/package.json +27 -30
- package/reactNativeTypes/index.cjs +2 -0
- package/reactNativeTypes/index.js +2 -0
- package/reactNativeTypes/index.native.cjs +2 -0
- package/reactNativeTypes/index.native.js +2 -0
- package/reactNativeTypes.cjs +1 -0
- package/src/createOptimizedView.native.tsx +2 -2
- package/src/index.tsx +3 -1
- package/tsconfig.json +30 -0
- package/types/createOptimizedView.native.d.ts +4 -6
- package/types/createOptimizedView.native.d.ts.map +1 -1
- package/types/index.d.ts +1 -1
- package/types/index.d.ts.map +1 -1
- package/dist/cjs/createOptimizedView.js +0 -22
- package/dist/cjs/createOptimizedView.js.map +0 -6
- package/dist/cjs/getBaseViews.js +0 -23
- package/dist/cjs/getBaseViews.js.map +0 -6
- package/dist/cjs/index.js +0 -78
- package/dist/cjs/index.js.map +0 -6
- package/dist/cjs/inject-styles.js +0 -28
- package/dist/cjs/inject-styles.js.map +0 -6
- package/dist/cjs/reactNativeTypes.js +0 -14
- package/dist/cjs/reactNativeTypes.js.map +0 -6
- package/dist/cjs/vendor/Pressability.cjs +0 -28
- package/dist/cjs/vendor/Pressability.js +0 -22
- package/dist/cjs/vendor/Pressability.js.map +0 -6
- package/dist/cjs/vendor/Pressability.native.js +0 -31
- package/dist/cjs/vendor/Pressability.native.js.map +0 -1
- package/dist/esm/createOptimizedView.js +0 -6
- package/dist/esm/createOptimizedView.js.map +0 -6
- package/dist/esm/getBaseViews.js +0 -7
- package/dist/esm/getBaseViews.js.map +0 -6
- package/dist/esm/inject-styles.js +0 -12
- package/dist/esm/inject-styles.js.map +0 -6
- package/dist/esm/reactNativeTypes.js +0 -1
- package/dist/esm/reactNativeTypes.js.map +0 -6
- package/dist/esm/vendor/Pressability.js +0 -6
- package/dist/esm/vendor/Pressability.js.map +0 -6
- package/dist/esm/vendor/Pressability.mjs +0 -4
- package/dist/esm/vendor/Pressability.mjs.map +0 -1
- package/dist/esm/vendor/Pressability.native.js +0 -4
- package/dist/esm/vendor/Pressability.native.js.map +0 -1
- package/src/vendor/Pressability.native.tsx +0 -4
- package/src/vendor/Pressability.tsx +0 -2
- package/types/vendor/Pressability.d.ts +0 -3
- package/types/vendor/Pressability.d.ts.map +0 -1
- package/types/vendor/Pressability.native.d.ts +0 -3
- package/types/vendor/Pressability.native.d.ts.map +0 -1
package/dist/cjs/index.native.js
CHANGED
|
@@ -5,21 +5,23 @@ 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
|
-
|
|
20
|
-
|
|
19
|
+
}
|
|
20
|
+
return to;
|
|
21
|
+
};
|
|
22
|
+
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
21
23
|
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
22
|
-
value:
|
|
24
|
+
value: true
|
|
23
25
|
}), mod);
|
|
24
26
|
var index_exports = {};
|
|
25
27
|
__export(index_exports, {
|
|
@@ -28,44 +30,44 @@ __export(index_exports, {
|
|
|
28
30
|
Text: () => Text,
|
|
29
31
|
View: () => View,
|
|
30
32
|
createTamagui: () => createTamagui,
|
|
33
|
+
registerLayoutNode: () => import_use_element_layout2.registerLayoutNode,
|
|
31
34
|
setOnLayoutStrategy: () => import_use_element_layout2.setOnLayoutStrategy
|
|
32
35
|
});
|
|
33
36
|
module.exports = __toCommonJS(index_exports);
|
|
34
37
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
35
38
|
__reExport(index_exports, require("@tamagui/web"), module.exports);
|
|
36
|
-
var import_react_native_media_driver = require("@tamagui/react-native-media-driver")
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
39
|
+
var import_react_native_media_driver = require("@tamagui/react-native-media-driver");
|
|
40
|
+
var import_constants = require("@tamagui/constants");
|
|
41
|
+
var import_use_element_layout = require("@tamagui/use-element-layout");
|
|
42
|
+
var import_web = require("@tamagui/web");
|
|
43
|
+
var import_createOptimizedView = require("./createOptimizedView.native.js");
|
|
44
|
+
var import_getBaseViews = require("./getBaseViews.native.js");
|
|
45
|
+
var import_use_element_layout2 = require("@tamagui/use-element-layout");
|
|
42
46
|
__reExport(index_exports, require("./reactNativeTypes.native.js"), module.exports);
|
|
43
47
|
var TamaguiProvider = function (props) {
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
48
|
+
(0, import_web.useIsomorphicLayoutEffect)(function () {
|
|
49
|
+
(0, import_use_element_layout.enable)();
|
|
50
|
+
}, []);
|
|
51
|
+
return /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_web.TamaguiProvider, {
|
|
52
|
+
...props
|
|
53
|
+
});
|
|
54
|
+
};
|
|
55
|
+
var createTamagui = function (conf) {
|
|
56
|
+
if (!import_constants.isWeb) {
|
|
57
|
+
if (conf.media) conf.media = (0, import_react_native_media_driver.createMedia)(conf.media);
|
|
58
|
+
}
|
|
59
|
+
return (0, import_web.createTamagui)(conf);
|
|
60
|
+
};
|
|
61
|
+
var baseViews = (0, import_getBaseViews.getBaseViews)();
|
|
54
62
|
(0, import_web.setupHooks)({
|
|
55
63
|
getBaseViews: import_getBaseViews.getBaseViews,
|
|
56
|
-
setElementProps: function (node) {
|
|
57
|
-
|
|
58
|
-
},
|
|
59
|
-
usePropsTransform(elementType, propsIn, stateRef, willHydrate) {
|
|
60
|
-
if (0) {
|
|
61
|
-
var isDOM, onMoveShouldSetResponder, onMoveShouldSetResponderCapture, onResponderEnd, onResponderGrant, onResponderMove, onResponderReject, onResponderRelease, onResponderStart, onResponderTerminate, onResponderTerminationRequest, onScrollShouldSetResponder, onScrollShouldSetResponderCapture, onSelectionChangeShouldSetResponder, onSelectionChangeShouldSetResponderCapture, onStartShouldSetResponder, onStartShouldSetResponderCapture, collapsable, focusable, accessible, accessibilityDisabled, onLayout, hrefAttrs, plainDOMProps;
|
|
62
|
-
if (isDOM && plainDOMProps.href && hrefAttrs) var download, rel, target;
|
|
63
|
-
}
|
|
64
|
-
},
|
|
64
|
+
setElementProps: function (node) {},
|
|
65
|
+
usePropsTransform(elementType, propsIn, stateRef, willHydrate) {},
|
|
65
66
|
useChildren(elementType, children, viewProps) {
|
|
66
|
-
if (process.env.NODE_ENV
|
|
67
|
+
if (process.env.NODE_ENV === "test") return;
|
|
68
|
+
if (elementType === baseViews.View && baseViews.TextAncestor) return (0, import_createOptimizedView.createOptimizedView)(children, viewProps, baseViews);
|
|
67
69
|
}
|
|
68
70
|
});
|
|
69
|
-
var View = import_web.View
|
|
70
|
-
|
|
71
|
+
var View = import_web.View;
|
|
72
|
+
var Text = import_web.Text;
|
|
71
73
|
//# sourceMappingURL=index.native.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
1
|
+
{"version":3,"names":["to","__reExport","target","mod","secondTarget","__copyProps","__toCommonJS","__defProp","value","index_exports","__export","LayoutMeasurementController","import_use_element_layout2","TamaguiProvider","Text","View","createTamagui","registerLayoutNode","setOnLayoutStrategy","module","exports","import_jsx_runtime","require","import_react_native_media_driver","import_constants","import_use_element_layout","import_web","import_createOptimizedView","import_getBaseViews","props","useIsomorphicLayoutEffect","enable","jsx","conf","isWeb","media","createMedia","baseViews","getBaseViews","setupHooks","setElementProps","node","usePropsTransform","elementType","propsIn","stateRef","willHydrate","useChildren","children","viewProps","process","env","NODE_ENV","TextAncestor","createOptimizedView"],"sources":["../../src/index.tsx"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;EAAA,OAAAA,EAAA;AAAA;AAAA,IAAAC,UAAA,GAAAA,CAAAC,MAAA,EAAAC,GAAA,EAAAC,YAAA,MAAAC,WAAA,CAAAH,MAAA,EAAAC,GAAA,cAAAC,YAAA,IAAAC,WAAA,CAAAD,YAAA,EAAAD,GAAA;AAAA,IAAAG,YAAA,GAAAH,GAAA,IAAAE,WAAA,CAAAE,SAAA;EAAAC,KAAA;AAAA,IAAAL,GAAA;AAAA,IAAAM,aAAA;AAAAC,QAAA,CAAAD,aAAA;EAAAE,2BAAA,EAAAA,CAAA,KAAAC,0BAAA,CAAAD,2BAAA;EAAAE,eAAA,EAAAA,CAAA,KAAAA,eAAA;EAAAC,IAAA,EAAAA,CAAA,KAAAA,IAAA;EAAAC,IAAA,EAAAA,CAAA,KAAAA,IAAA;EAAAC,aAAA,EAAAA,CAAA,KAAAA,aAAA;EACAC,kBAAA,EAAAA,CAAA,KAAcL,0BADd,CAAAK,kBAAA;EAGAC,mBAAA,EAAAA,CAAA,KAAAN,0BAA4B,CAAAM;AAC5B;AACAC,MAAA,CAAAC,OAAA,GAAAd,YAAA,CAAAG,aAMO;AAaP,IAAAY,kBAOO,GAAAC,OAAA;AACPrB,UAAA,CAAAQ,aAAA,EAAAa,OAAoC,kBAAAH,MAAA,CAAAC,OAAA;AACpC,IAAAG,gCAA6B,GAAAD,OAAA;AAI7B,IAAAE,gBAAA,GAAAF,OAAA,qBAKO;AA8BP,IAAAG,yBAAc,GAAAH,OAAA,8BAxEd;AAgFS,IAAAI,UAAA,GAA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AAX,IAAA;AAChB,IAAAD,IAAI,GAAAY,UAAY,CAAAZ,IAAA","ignoreList":[]}
|
|
@@ -3,35 +3,40 @@ 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 inject_styles_exports = {};
|
|
22
24
|
__export(inject_styles_exports, {
|
|
23
25
|
injectStyles: () => injectStyles
|
|
24
26
|
});
|
|
25
27
|
module.exports = __toCommonJS(inject_styles_exports);
|
|
26
|
-
const stylesheets = {}
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
stylesheet
|
|
37
|
-
|
|
28
|
+
const stylesheets = {};
|
|
29
|
+
const injectStyles = ({
|
|
30
|
+
filePath,
|
|
31
|
+
css
|
|
32
|
+
}) => {
|
|
33
|
+
let stylesheet = stylesheets[filePath];
|
|
34
|
+
if (!stylesheet) {
|
|
35
|
+
const styleEl = document.createElement("style");
|
|
36
|
+
styleEl.setAttribute("data-file", filePath);
|
|
37
|
+
styleEl.setAttribute("type", "text/css");
|
|
38
|
+
stylesheet = stylesheets[filePath] = styleEl;
|
|
39
|
+
document.head.appendChild(styleEl);
|
|
40
|
+
}
|
|
41
|
+
stylesheet.innerHTML = css;
|
|
42
|
+
};
|
|
@@ -5,37 +5,42 @@ 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 inject_styles_exports = {};
|
|
24
26
|
__export(inject_styles_exports, {
|
|
25
27
|
injectStyles: () => injectStyles
|
|
26
28
|
});
|
|
27
29
|
module.exports = __toCommonJS(inject_styles_exports);
|
|
28
|
-
var stylesheets = {}
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
stylesheet
|
|
40
|
-
|
|
30
|
+
var stylesheets = {};
|
|
31
|
+
var injectStyles = function (param) {
|
|
32
|
+
var {
|
|
33
|
+
filePath,
|
|
34
|
+
css
|
|
35
|
+
} = param;
|
|
36
|
+
var stylesheet = stylesheets[filePath];
|
|
37
|
+
if (!stylesheet) {
|
|
38
|
+
var styleEl = document.createElement("style");
|
|
39
|
+
styleEl.setAttribute("data-file", filePath);
|
|
40
|
+
styleEl.setAttribute("type", "text/css");
|
|
41
|
+
stylesheet = stylesheets[filePath] = styleEl;
|
|
42
|
+
document.head.appendChild(styleEl);
|
|
43
|
+
}
|
|
44
|
+
stylesheet.innerHTML = css;
|
|
45
|
+
};
|
|
41
46
|
//# sourceMappingURL=inject-styles.native.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","inject_styles_exports","__export","injectStyles","module","exports","stylesheets","param","filePath","css","stylesheet","styleEl","document","createElement","setAttribute","head","appendChild"
|
|
1
|
+
{"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","inject_styles_exports","__export","injectStyles","module","exports","stylesheets","param","filePath","css","stylesheet","styleEl","document","createElement","setAttribute","head","appendChild"],"sources":["../../src/inject-styles.ts"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;EAAAC,KAAA;AAAA,IAAAH,GAAA;AAAA,IAAAI,qBAAA;AAAAC,QAAA,CAAAD,qBAAA;EAAAE,YAAA,EAAAA,CAAA,KAAAA;AAAA;AAEAC,MAAM,CAAAC,OAAA,GAAAT,YAA4C,CAAAK,qBAAA;AAO3C,IAAAK,WAAM;AACX,IAAAH,YAAI,GAAa,SAAAA,CAAAI,KAAY;EAC7B,IAAI;IAACC,QAAA;IAAAC;EAAY,IAAAF,KAAA;EACf,IAAAG,UAAM,GAAAJ,WAAmB,CAAAE,QAAA;EACzB,KAAAE,UAAQ;IACR,IAAAC,OAAQ,GAAAC,QAAa,CAAAC,aAAQ,QAAU;IACvCF,OAAA,CAAAG,YAAa,YAAY,EAAQN,QAAI;IACrCG,OAAA,CAAAG,YAAc,OAAY,YAAO;IACnCJ,UAAA,GAAAJ,WAAA,CAAAE,QAAA,IAAAG,OAAA;IACAC,QAAA,CAAWG,IAAA,CAAAC,WAAY,CAAAL,OAAA;EACzB","ignoreList":[]}
|
|
@@ -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 reactNativeTypes_exports = {};
|
|
16
18
|
module.exports = __toCommonJS(reactNativeTypes_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 reactNativeTypes_exports = {};
|
|
18
20
|
module.exports = __toCommonJS(reactNativeTypes_exports);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","reactNativeTypes_exports"],"sources":["../../src/reactNativeTypes.ts"],"sourcesContent":[null],"mappings":"
|
|
1
|
+
{"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","reactNativeTypes_exports"],"sources":["../../src/reactNativeTypes.ts"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;EAAAC,KAAA;AAAA,IAAAH,GAAA;AAAA,IAAAI,wBAAA","ignoreList":[]}
|
|
@@ -1,69 +1,105 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
function createOptimizedView(children, viewProps, baseViews) {
|
|
3
|
-
var _viewProps_style
|
|
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
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
(accessibilityState != null || ariaBusy != null || ariaChecked != null || ariaDisabled != null || ariaExpanded != null || ariaSelected != null)
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
3
|
+
var _viewProps_style;
|
|
4
|
+
var TextAncestor = baseViews.TextAncestor;
|
|
5
|
+
var {
|
|
6
|
+
accessibilityElementsHidden,
|
|
7
|
+
accessibilityLabel,
|
|
8
|
+
accessibilityLabelledBy,
|
|
9
|
+
accessibilityLiveRegion,
|
|
10
|
+
accessibilityState,
|
|
11
|
+
accessibilityValue,
|
|
12
|
+
"aria-busy": ariaBusy,
|
|
13
|
+
"aria-checked": ariaChecked,
|
|
14
|
+
"aria-disabled": ariaDisabled,
|
|
15
|
+
"aria-expanded": ariaExpanded,
|
|
16
|
+
"aria-hidden": ariaHidden,
|
|
17
|
+
"aria-label": ariaLabel,
|
|
18
|
+
"aria-labelledby": ariaLabelledBy,
|
|
19
|
+
"aria-live": ariaLive,
|
|
20
|
+
"aria-selected": ariaSelected,
|
|
21
|
+
"aria-valuemax": ariaValueMax,
|
|
22
|
+
"aria-valuemin": ariaValueMin,
|
|
23
|
+
"aria-valuenow": ariaValueNow,
|
|
24
|
+
"aria-valuetext": ariaValueText,
|
|
25
|
+
focusable,
|
|
26
|
+
id,
|
|
27
|
+
role,
|
|
28
|
+
tabIndex
|
|
29
|
+
} =
|
|
30
|
+
// ...otherProps
|
|
31
|
+
viewProps;
|
|
32
|
+
var _ariaLabelledBy_split;
|
|
33
|
+
var _accessibilityLabelledBy = (_ariaLabelledBy_split = ariaLabelledBy === null || ariaLabelledBy === void 0 ? void 0 : ariaLabelledBy.split(/\s*,\s*/g)) !== null && _ariaLabelledBy_split !== void 0 ? _ariaLabelledBy_split : accessibilityLabelledBy;
|
|
34
|
+
var _accessibilityState;
|
|
35
|
+
if (accessibilityState != null || ariaBusy != null || ariaChecked != null || ariaDisabled != null || ariaExpanded != null || ariaSelected != null) {
|
|
36
|
+
_accessibilityState = {
|
|
37
|
+
busy: ariaBusy !== null && ariaBusy !== void 0 ? ariaBusy : accessibilityState === null || accessibilityState === void 0 ? void 0 : accessibilityState.busy,
|
|
38
|
+
checked: ariaChecked !== null && ariaChecked !== void 0 ? ariaChecked : accessibilityState === null || accessibilityState === void 0 ? void 0 : accessibilityState.checked,
|
|
39
|
+
disabled: ariaDisabled !== null && ariaDisabled !== void 0 ? ariaDisabled : accessibilityState === null || accessibilityState === void 0 ? void 0 : accessibilityState.disabled,
|
|
40
|
+
expanded: ariaExpanded !== null && ariaExpanded !== void 0 ? ariaExpanded : accessibilityState === null || accessibilityState === void 0 ? void 0 : accessibilityState.expanded,
|
|
41
|
+
selected: ariaSelected !== null && ariaSelected !== void 0 ? ariaSelected : accessibilityState === null || accessibilityState === void 0 ? void 0 : accessibilityState.selected
|
|
42
|
+
};
|
|
43
|
+
}
|
|
42
44
|
var _accessibilityValue;
|
|
43
|
-
if (
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
45
|
+
if (accessibilityValue != null || ariaValueMax != null || ariaValueMin != null || ariaValueNow != null || ariaValueText != null) {
|
|
46
|
+
_accessibilityValue = {
|
|
47
|
+
max: ariaValueMax !== null && ariaValueMax !== void 0 ? ariaValueMax : accessibilityValue === null || accessibilityValue === void 0 ? void 0 : accessibilityValue.max,
|
|
48
|
+
min: ariaValueMin !== null && ariaValueMin !== void 0 ? ariaValueMin : accessibilityValue === null || accessibilityValue === void 0 ? void 0 : accessibilityValue.min,
|
|
49
|
+
now: ariaValueNow !== null && ariaValueNow !== void 0 ? ariaValueNow : accessibilityValue === null || accessibilityValue === void 0 ? void 0 : accessibilityValue.now,
|
|
50
|
+
text: ariaValueText !== null && ariaValueText !== void 0 ? ariaValueText : accessibilityValue === null || accessibilityValue === void 0 ? void 0 : accessibilityValue.text
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
if ((_viewProps_style = viewProps.style) === null || _viewProps_style === void 0 ? void 0 : _viewProps_style.pointerEvents) {
|
|
49
54
|
var _viewProps_style1;
|
|
50
55
|
viewProps.pointerEvents = (_viewProps_style1 = viewProps.style) === null || _viewProps_style1 === void 0 ? void 0 : _viewProps_style1.pointerEvents;
|
|
51
56
|
}
|
|
52
|
-
if (id
|
|
53
|
-
|
|
54
|
-
|
|
57
|
+
if (id) {
|
|
58
|
+
viewProps.nativeID = id;
|
|
59
|
+
}
|
|
60
|
+
if (ariaHidden === true) {
|
|
61
|
+
viewProps.importantForAccessibility = "no-hide-descendants";
|
|
62
|
+
}
|
|
63
|
+
if (_accessibilityValue) {
|
|
64
|
+
viewProps.accessibilityValue = _accessibilityValue;
|
|
65
|
+
}
|
|
66
|
+
if (role) {
|
|
67
|
+
viewProps.accessibilityRole = getAccessibilityRoleFromRole(role);
|
|
68
|
+
}
|
|
69
|
+
if (ariaLive === "off") {
|
|
70
|
+
viewProps.accessibilityLiveRegion = "none";
|
|
71
|
+
} else {
|
|
72
|
+
var alr = ariaLive !== null && ariaLive !== void 0 ? ariaLive : accessibilityLiveRegion;
|
|
73
|
+
if (alr) {
|
|
74
|
+
viewProps.accessibilityLiveRegion = alr;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
var al = ariaLabel !== null && ariaLabel !== void 0 ? ariaLabel : accessibilityLabel;
|
|
78
|
+
if (al) {
|
|
79
|
+
viewProps.accessibilityLabel = al;
|
|
55
80
|
}
|
|
56
|
-
var al = ariaLabel ?? accessibilityLabel;
|
|
57
|
-
al && (viewProps.accessibilityLabel = al);
|
|
58
81
|
var f = tabIndex !== void 0 ? !tabIndex : focusable;
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
82
|
+
if (f != null) {
|
|
83
|
+
viewProps.focusable = f;
|
|
84
|
+
}
|
|
85
|
+
if (_accessibilityState != null) {
|
|
86
|
+
viewProps.accessibilityState = _accessibilityState;
|
|
87
|
+
}
|
|
88
|
+
var ah = ariaHidden !== null && ariaHidden !== void 0 ? ariaHidden : accessibilityElementsHidden;
|
|
89
|
+
if (ah != null) {
|
|
90
|
+
viewProps.accessibilityElementsHidden = ah;
|
|
91
|
+
}
|
|
92
|
+
if (_accessibilityLabelledBy) {
|
|
93
|
+
viewProps.accessibilityLabelledBy = _accessibilityLabelledBy;
|
|
94
|
+
}
|
|
95
|
+
var isInText = React.useContext(TextAncestor);
|
|
96
|
+
var finalElement = /* @__PURE__ */React.createElement("RCTView", viewProps, children);
|
|
97
|
+
if (!isInText) {
|
|
98
|
+
return finalElement;
|
|
99
|
+
}
|
|
100
|
+
return /* @__PURE__ */React.createElement(TextAncestor.Provider, {
|
|
101
|
+
value: false
|
|
102
|
+
}, finalElement);
|
|
67
103
|
}
|
|
68
104
|
function getAccessibilityRoleFromRole(role) {
|
|
69
105
|
switch (role) {
|
|
@@ -198,6 +234,7 @@ function getAccessibilityRoleFromRole(role) {
|
|
|
198
234
|
case "treeitem":
|
|
199
235
|
return;
|
|
200
236
|
}
|
|
237
|
+
return;
|
|
201
238
|
}
|
|
202
239
|
export { createOptimizedView, getAccessibilityRoleFromRole };
|
|
203
240
|
//# sourceMappingURL=createOptimizedView.native.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","createOptimizedView","children","viewProps","baseViews","_viewProps_style","TextAncestor","accessibilityElementsHidden","accessibilityLabel","accessibilityLabelledBy","accessibilityLiveRegion","accessibilityState","accessibilityValue","ariaBusy","ariaChecked","ariaDisabled","ariaExpanded","ariaHidden","ariaLabel","ariaLabelledBy","ariaLive","ariaSelected","ariaValueMax","ariaValueMin","ariaValueNow","ariaValueText","focusable","id","role","tabIndex","_ariaLabelledBy_split","_accessibilityLabelledBy","split","_accessibilityState","busy","checked","disabled","expanded","selected","_accessibilityValue","max","min","now","text","style","pointerEvents","_viewProps_style1","nativeID","importantForAccessibility","accessibilityRole","getAccessibilityRoleFromRole","alr","al","f","ah","isInText","useContext","finalElement","createElement","Provider","value"],"sources":["../../src/createOptimizedView.native.tsx"],"sourcesContent":[null],"mappings":"AAAA,OAAOA,KAAA,MAAW;AAUP,SAASC,oBAAoBC,QAAA,EAAUC,SAAA,EAAWC,SAAA,EAAW;EACpE,IAAIC,gBAAA;
|
|
1
|
+
{"version":3,"names":["React","createOptimizedView","children","viewProps","baseViews","_viewProps_style","TextAncestor","accessibilityElementsHidden","accessibilityLabel","accessibilityLabelledBy","accessibilityLiveRegion","accessibilityState","accessibilityValue","ariaBusy","ariaChecked","ariaDisabled","ariaExpanded","ariaHidden","ariaLabel","ariaLabelledBy","ariaLive","ariaSelected","ariaValueMax","ariaValueMin","ariaValueNow","ariaValueText","focusable","id","role","tabIndex","_ariaLabelledBy_split","_accessibilityLabelledBy","split","_accessibilityState","busy","checked","disabled","expanded","selected","_accessibilityValue","max","min","now","text","style","pointerEvents","_viewProps_style1","nativeID","importantForAccessibility","accessibilityRole","getAccessibilityRoleFromRole","alr","al","f","ah","isInText","useContext","finalElement","createElement","Provider","value"],"sources":["../../src/createOptimizedView.native.tsx"],"sourcesContent":[null],"mappings":"AAAA,OAAOA,KAAA,MAAW;AAUP,SAASC,oBAAoBC,QAAA,EAAUC,SAAA,EAAWC,SAAA,EAAW;EACpE,IAAIC,gBAAA;EACJ,IAAIC,YAAA,GAAeF,SAAA,CAAUE,YAAA;EAC7B,IAAI;IAAEC,2BAAA;IAA6BC,kBAAA;IAAoBC,uBAAA;IAAyBC,uBAAA;IAAyBC,kBAAA;IAAoBC,kBAAA;IAAoB,aAAaC,QAAA;IAAU,gBAAgBC,WAAA;IAAa,iBAAiBC,YAA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X,KAAK;MACD;IACJ,KAAK;MACD,OAAO;IACX,KAAK;MACD,OAAO;IACX,KAAK;MACD;IACJ,KAAK;MACD,OAAO;IACX,KAAK;MACD,OAAO;IACX,KAAK;MACD,OAAO;IACX,KAAK;MACD;IACJ,KAAK;MACD,OAAO;IACX,KAAK;MACD;IACJ,KAAK;MACD;IACJ,KAAK;MACD,OAAO;IACX,KAAK;MACD,OAAO;IACX,KAAK;MACD;IACJ,KAAK;MACD;IACJ,KAAK;MACD;IACJ,KAAK;MACD;EACR;EACA;AACJ","ignoreList":[]}
|
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
function getBaseViews() {
|
|
2
|
-
var _native_default,
|
|
3
|
-
|
|
4
|
-
_native_default2,
|
|
5
|
-
_native_default3,
|
|
6
|
-
native = require("react-native");
|
|
2
|
+
var _native_default, _native_default1, _native_default2, _native_default3;
|
|
3
|
+
var native = require("react-native");
|
|
7
4
|
return {
|
|
8
5
|
View: native.View || ((_native_default = native.default) === null || _native_default === void 0 ? void 0 : _native_default.View),
|
|
9
6
|
Text: native.Text || ((_native_default1 = native.default) === null || _native_default1 === void 0 ? void 0 : _native_default1.Text),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["getBaseViews","_native_default","_native_default1","_native_default2","_native_default3","native","require","View","default","Text","TextAncestor","unstable_TextAncestorContext","StyleSheet","Pressable"],"sources":["../../src/getBaseViews.native.ts"],"sourcesContent":[null],"mappings":"AAAO,SAASA,aAAA,EAAe;EAC3B,IAAIC,eAAA
|
|
1
|
+
{"version":3,"names":["getBaseViews","_native_default","_native_default1","_native_default2","_native_default3","native","require","View","default","Text","TextAncestor","unstable_TextAncestorContext","StyleSheet","Pressable"],"sources":["../../src/getBaseViews.native.ts"],"sourcesContent":[null],"mappings":"AAAO,SAASA,aAAA,EAAe;EAC3B,IAAIC,eAAA,EAAiBC,gBAAA,EAAkBC,gBAAA,EAAkBC,gBAAA;EACzD,IAAIC,MAAA,GAASC,OAAA,CAAQ,cAAc;EACnC,OAAO;IACHC,IAAA,EAAMF,MAAA,CAAOE,IAAA,MAAUN,eAAA,GAAkBI,MAAA,CAAOG,OAAA,MAAa,QAAQP,eAAA,KAAoB,SAAS,SAASA,eAAA,CAAgBM,IAAA;IAC3HE,IAAA,EAAMJ,MAAA,CAAOI,IAAA,MAAUP,gBAAA,GAAmBG,MAAA,CAAOG,OAAA,MAAa,QAAQN,gBAAA,KAAqB,SAAS,SAASA,gBAAA,CAAiBO,IAAA;IAC9HC,YAAA,EAAcL,MAAA,CAAOM,4BAAA;IACrBC,UAAA,EAAYP,MAAA,CAAOO,UAAA,MAAgBT,gBAAA,GAAmBE,MAAA,CAAOG,OAAA,MAAa,QAAQL,gBAAA,KAAqB,SAAS,SAASA,gBAAA,CAAiBS,UAAA;IAC1IC,SAAA,EAAWR,MAAA,CAAOQ,SAAA,MAAeT,gBAAA,GAAmBC,MAAA,CAAOG,OAAA,MAAa,QAAQJ,gBAAA,KAAqB,SAAS,SAASA,gBAAA,CAAiBS,SAAA;EAC5I;AACJ","ignoreList":[]}
|