@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
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
import { bundleNative } from '@tamagui/native-bundle'
|
|
4
|
+
|
|
5
|
+
// Bundle for production (native.cjs)
|
|
6
|
+
await bundleNative({
|
|
7
|
+
entry: 'src/index.tsx',
|
|
8
|
+
outDir: 'dist',
|
|
9
|
+
fileName: 'native.cjs',
|
|
10
|
+
})
|
|
11
|
+
|
|
12
|
+
// Bundle for tests (test.native.cjs)
|
|
13
|
+
// Externalizes react-native so it can be mocked at runtime by vitest-react-native
|
|
14
|
+
await bundleNative({
|
|
15
|
+
entry: 'src/index.tsx',
|
|
16
|
+
outDir: 'dist',
|
|
17
|
+
fileName: 'test.native.cjs',
|
|
18
|
+
isTest: true,
|
|
19
|
+
define: {
|
|
20
|
+
'process.env.NODE_ENV': JSON.stringify('test'),
|
|
21
|
+
},
|
|
22
|
+
})
|
|
@@ -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 createOptimizedView_exports = {};
|
|
22
24
|
__export(createOptimizedView_exports, {
|
|
@@ -4,33 +4,35 @@ 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 createOptimizedView_native_exports = {};
|
|
35
37
|
__export(createOptimizedView_native_exports, {
|
|
36
38
|
createOptimizedView: () => createOptimizedView,
|
|
@@ -39,70 +41,106 @@ __export(createOptimizedView_native_exports, {
|
|
|
39
41
|
module.exports = __toCommonJS(createOptimizedView_native_exports);
|
|
40
42
|
var import_react = __toESM(require("react"), 1);
|
|
41
43
|
function createOptimizedView(children, viewProps, baseViews) {
|
|
42
|
-
var _viewProps_style
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
(accessibilityState != null || ariaBusy != null || ariaChecked != null || ariaDisabled != null || ariaExpanded != null || ariaSelected != null)
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
44
|
+
var _viewProps_style;
|
|
45
|
+
var TextAncestor = baseViews.TextAncestor;
|
|
46
|
+
var {
|
|
47
|
+
accessibilityElementsHidden,
|
|
48
|
+
accessibilityLabel,
|
|
49
|
+
accessibilityLabelledBy,
|
|
50
|
+
accessibilityLiveRegion,
|
|
51
|
+
accessibilityState,
|
|
52
|
+
accessibilityValue,
|
|
53
|
+
"aria-busy": ariaBusy,
|
|
54
|
+
"aria-checked": ariaChecked,
|
|
55
|
+
"aria-disabled": ariaDisabled,
|
|
56
|
+
"aria-expanded": ariaExpanded,
|
|
57
|
+
"aria-hidden": ariaHidden,
|
|
58
|
+
"aria-label": ariaLabel,
|
|
59
|
+
"aria-labelledby": ariaLabelledBy,
|
|
60
|
+
"aria-live": ariaLive,
|
|
61
|
+
"aria-selected": ariaSelected,
|
|
62
|
+
"aria-valuemax": ariaValueMax,
|
|
63
|
+
"aria-valuemin": ariaValueMin,
|
|
64
|
+
"aria-valuenow": ariaValueNow,
|
|
65
|
+
"aria-valuetext": ariaValueText,
|
|
66
|
+
focusable,
|
|
67
|
+
id,
|
|
68
|
+
role,
|
|
69
|
+
tabIndex
|
|
70
|
+
} =
|
|
71
|
+
// ...otherProps
|
|
72
|
+
viewProps;
|
|
73
|
+
var _ariaLabelledBy_split;
|
|
74
|
+
var _accessibilityLabelledBy = (_ariaLabelledBy_split = ariaLabelledBy === null || ariaLabelledBy === void 0 ? void 0 : ariaLabelledBy.split(/\s*,\s*/g)) !== null && _ariaLabelledBy_split !== void 0 ? _ariaLabelledBy_split : accessibilityLabelledBy;
|
|
75
|
+
var _accessibilityState;
|
|
76
|
+
if (accessibilityState != null || ariaBusy != null || ariaChecked != null || ariaDisabled != null || ariaExpanded != null || ariaSelected != null) {
|
|
77
|
+
_accessibilityState = {
|
|
78
|
+
busy: ariaBusy !== null && ariaBusy !== void 0 ? ariaBusy : accessibilityState === null || accessibilityState === void 0 ? void 0 : accessibilityState.busy,
|
|
79
|
+
checked: ariaChecked !== null && ariaChecked !== void 0 ? ariaChecked : accessibilityState === null || accessibilityState === void 0 ? void 0 : accessibilityState.checked,
|
|
80
|
+
disabled: ariaDisabled !== null && ariaDisabled !== void 0 ? ariaDisabled : accessibilityState === null || accessibilityState === void 0 ? void 0 : accessibilityState.disabled,
|
|
81
|
+
expanded: ariaExpanded !== null && ariaExpanded !== void 0 ? ariaExpanded : accessibilityState === null || accessibilityState === void 0 ? void 0 : accessibilityState.expanded,
|
|
82
|
+
selected: ariaSelected !== null && ariaSelected !== void 0 ? ariaSelected : accessibilityState === null || accessibilityState === void 0 ? void 0 : accessibilityState.selected
|
|
83
|
+
};
|
|
84
|
+
}
|
|
81
85
|
var _accessibilityValue;
|
|
82
|
-
if (
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
86
|
+
if (accessibilityValue != null || ariaValueMax != null || ariaValueMin != null || ariaValueNow != null || ariaValueText != null) {
|
|
87
|
+
_accessibilityValue = {
|
|
88
|
+
max: ariaValueMax !== null && ariaValueMax !== void 0 ? ariaValueMax : accessibilityValue === null || accessibilityValue === void 0 ? void 0 : accessibilityValue.max,
|
|
89
|
+
min: ariaValueMin !== null && ariaValueMin !== void 0 ? ariaValueMin : accessibilityValue === null || accessibilityValue === void 0 ? void 0 : accessibilityValue.min,
|
|
90
|
+
now: ariaValueNow !== null && ariaValueNow !== void 0 ? ariaValueNow : accessibilityValue === null || accessibilityValue === void 0 ? void 0 : accessibilityValue.now,
|
|
91
|
+
text: ariaValueText !== null && ariaValueText !== void 0 ? ariaValueText : accessibilityValue === null || accessibilityValue === void 0 ? void 0 : accessibilityValue.text
|
|
92
|
+
};
|
|
93
|
+
}
|
|
94
|
+
if ((_viewProps_style = viewProps.style) === null || _viewProps_style === void 0 ? void 0 : _viewProps_style.pointerEvents) {
|
|
88
95
|
var _viewProps_style1;
|
|
89
96
|
viewProps.pointerEvents = (_viewProps_style1 = viewProps.style) === null || _viewProps_style1 === void 0 ? void 0 : _viewProps_style1.pointerEvents;
|
|
90
97
|
}
|
|
91
|
-
if (id
|
|
92
|
-
|
|
93
|
-
|
|
98
|
+
if (id) {
|
|
99
|
+
viewProps.nativeID = id;
|
|
100
|
+
}
|
|
101
|
+
if (ariaHidden === true) {
|
|
102
|
+
viewProps.importantForAccessibility = "no-hide-descendants";
|
|
103
|
+
}
|
|
104
|
+
if (_accessibilityValue) {
|
|
105
|
+
viewProps.accessibilityValue = _accessibilityValue;
|
|
106
|
+
}
|
|
107
|
+
if (role) {
|
|
108
|
+
viewProps.accessibilityRole = getAccessibilityRoleFromRole(role);
|
|
109
|
+
}
|
|
110
|
+
if (ariaLive === "off") {
|
|
111
|
+
viewProps.accessibilityLiveRegion = "none";
|
|
112
|
+
} else {
|
|
113
|
+
var alr = ariaLive !== null && ariaLive !== void 0 ? ariaLive : accessibilityLiveRegion;
|
|
114
|
+
if (alr) {
|
|
115
|
+
viewProps.accessibilityLiveRegion = alr;
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
var al = ariaLabel !== null && ariaLabel !== void 0 ? ariaLabel : accessibilityLabel;
|
|
119
|
+
if (al) {
|
|
120
|
+
viewProps.accessibilityLabel = al;
|
|
94
121
|
}
|
|
95
|
-
var al = ariaLabel ?? accessibilityLabel;
|
|
96
|
-
al && (viewProps.accessibilityLabel = al);
|
|
97
122
|
var f = tabIndex !== void 0 ? !tabIndex : focusable;
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
123
|
+
if (f != null) {
|
|
124
|
+
viewProps.focusable = f;
|
|
125
|
+
}
|
|
126
|
+
if (_accessibilityState != null) {
|
|
127
|
+
viewProps.accessibilityState = _accessibilityState;
|
|
128
|
+
}
|
|
129
|
+
var ah = ariaHidden !== null && ariaHidden !== void 0 ? ariaHidden : accessibilityElementsHidden;
|
|
130
|
+
if (ah != null) {
|
|
131
|
+
viewProps.accessibilityElementsHidden = ah;
|
|
132
|
+
}
|
|
133
|
+
if (_accessibilityLabelledBy) {
|
|
134
|
+
viewProps.accessibilityLabelledBy = _accessibilityLabelledBy;
|
|
135
|
+
}
|
|
136
|
+
var isInText = import_react.default.useContext(TextAncestor);
|
|
137
|
+
var finalElement = /* @__PURE__ */import_react.default.createElement("RCTView", viewProps, children);
|
|
138
|
+
if (!isInText) {
|
|
139
|
+
return finalElement;
|
|
140
|
+
}
|
|
141
|
+
return /* @__PURE__ */import_react.default.createElement(TextAncestor.Provider, {
|
|
142
|
+
value: false
|
|
143
|
+
}, finalElement);
|
|
106
144
|
}
|
|
107
145
|
function getAccessibilityRoleFromRole(role) {
|
|
108
146
|
switch (role) {
|
|
@@ -237,5 +275,6 @@ function getAccessibilityRoleFromRole(role) {
|
|
|
237
275
|
case "treeitem":
|
|
238
276
|
return;
|
|
239
277
|
}
|
|
278
|
+
return;
|
|
240
279
|
}
|
|
241
280
|
//# sourceMappingURL=createOptimizedView.native.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["createOptimizedView_native_exports","__export","createOptimizedView","getAccessibilityRoleFromRole","module","exports","__toCommonJS","import_react","__toESM","require","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","alr","al","f","ah","isInText","default","useContext","finalElement","createElement","Provider","value"],"sources":["../../src/createOptimizedView.native.tsx"],"sourcesContent":[null],"mappings":"
|
|
1
|
+
{"version":3,"names":["createOptimizedView_native_exports","__export","createOptimizedView","getAccessibilityRoleFromRole","module","exports","__toCommonJS","import_react","__toESM","require","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","alr","al","f","ah","isInText","default","useContext","finalElement","createElement","Provider","value"],"sources":["../../src/createOptimizedView.native.tsx"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,kCAAA;AAAAC,QAAA,CAAAD,kCAAA;EAAAE,mBAAA,EAAAA,CAAA,KAAAA,mBAAA;EAAAC,4BAAA,EAAAA,CAAA,KAAAA;AAAA;AAAAC,MAAA,CAAAC,OAAA,GAAAC,YAAA,CAAAN,kCAAA;AAAA,IAAAO,YAAA,GAAkBC,OAAA,CAAAC,OAAA;AAUP,SAASP,oBAAoBQ,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,YAAA;IAAc,iBAAiBC,YAAA;IAAc,eAAeC,UAAA;IA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AK;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":[]}
|
|
@@ -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 getBaseViews_exports = {};
|
|
22
24
|
__export(getBaseViews_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 getBaseViews_native_exports = {};
|
|
24
26
|
__export(getBaseViews_native_exports, {
|
|
@@ -26,11 +28,8 @@ __export(getBaseViews_native_exports, {
|
|
|
26
28
|
});
|
|
27
29
|
module.exports = __toCommonJS(getBaseViews_native_exports);
|
|
28
30
|
function getBaseViews() {
|
|
29
|
-
var _native_default,
|
|
30
|
-
|
|
31
|
-
_native_default2,
|
|
32
|
-
_native_default3,
|
|
33
|
-
native = require("react-native");
|
|
31
|
+
var _native_default, _native_default1, _native_default2, _native_default3;
|
|
32
|
+
var native = require("react-native");
|
|
34
33
|
return {
|
|
35
34
|
View: native.View || ((_native_default = native.default) === null || _native_default === void 0 ? void 0 : _native_default.View),
|
|
36
35
|
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_exports","__export","getBaseViews","module","exports","__toCommonJS","_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":"
|
|
1
|
+
{"version":3,"names":["getBaseViews_native_exports","__export","getBaseViews","module","exports","__toCommonJS","_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":";;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,2BAAA;AAAAC,QAAA,CAAAD,2BAAA;EAAAE,YAAA,EAAAA,CAAA,KAAAA;AAAA;AAAAC,MAAA,CAAAC,OAAA,GAAAC,YAAA,CAAAL,2BAAA;AAAO,SAASE,aAAA,EAAe;EAC3B,IAAII,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":[]}
|
package/dist/cjs/index.cjs
CHANGED
|
@@ -3,21 +3,23 @@ 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
|
-
|
|
18
|
-
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
20
|
+
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
19
21
|
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
20
|
-
value:
|
|
22
|
+
value: true
|
|
21
23
|
}), mod);
|
|
22
24
|
var index_exports = {};
|
|
23
25
|
__export(index_exports, {
|
|
@@ -26,74 +28,88 @@ __export(index_exports, {
|
|
|
26
28
|
Text: () => Text,
|
|
27
29
|
View: () => View,
|
|
28
30
|
createTamagui: () => createTamagui,
|
|
31
|
+
registerLayoutNode: () => import_use_element_layout2.registerLayoutNode,
|
|
29
32
|
setOnLayoutStrategy: () => import_use_element_layout2.setOnLayoutStrategy
|
|
30
33
|
});
|
|
31
34
|
module.exports = __toCommonJS(index_exports);
|
|
32
35
|
__reExport(index_exports, require("@tamagui/web"), module.exports);
|
|
33
|
-
var import_react_native_media_driver = require("@tamagui/react-native-media-driver")
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
36
|
+
var import_react_native_media_driver = require("@tamagui/react-native-media-driver");
|
|
37
|
+
var import_constants = require("@tamagui/constants");
|
|
38
|
+
var import_use_element_layout = require("@tamagui/use-element-layout");
|
|
39
|
+
var import_web = require("@tamagui/web");
|
|
40
|
+
require("./createOptimizedView.cjs");
|
|
41
|
+
var import_getBaseViews = require("./getBaseViews.cjs");
|
|
42
|
+
var import_use_element_layout2 = require("@tamagui/use-element-layout");
|
|
39
43
|
__reExport(index_exports, require("./reactNativeTypes.cjs"), module.exports);
|
|
40
44
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
41
|
-
const TamaguiProvider = props =>
|
|
45
|
+
const TamaguiProvider = props => {
|
|
46
|
+
(0, import_web.useIsomorphicLayoutEffect)(() => {
|
|
42
47
|
(0, import_use_element_layout.enable)();
|
|
43
|
-
}, [])
|
|
48
|
+
}, []);
|
|
49
|
+
return /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_web.TamaguiProvider, {
|
|
44
50
|
...props
|
|
45
|
-
})
|
|
46
|
-
|
|
47
|
-
|
|
51
|
+
});
|
|
52
|
+
};
|
|
53
|
+
const createTamagui = conf => {
|
|
54
|
+
if (!import_constants.isWeb) {
|
|
55
|
+
if (conf.media) conf.media = (0, import_react_native_media_driver.createMedia)(conf.media);
|
|
56
|
+
}
|
|
57
|
+
return (0, import_web.createTamagui)(conf);
|
|
58
|
+
};
|
|
59
|
+
(0, import_getBaseViews.getBaseViews)();
|
|
48
60
|
(0, import_web.setupHooks)({
|
|
49
61
|
getBaseViews: import_getBaseViews.getBaseViews,
|
|
50
62
|
setElementProps: node => {
|
|
51
|
-
node && !node
|
|
63
|
+
if (node && !node["measure"]) {
|
|
64
|
+
node.measure ||= (0, import_use_element_layout.createMeasure)(node);
|
|
65
|
+
node.measureInWindow ||= (0, import_use_element_layout.createMeasureInWindow)(node);
|
|
66
|
+
node.measureLayout ||= (0, import_use_element_layout.createMeasureLayout)(node);
|
|
67
|
+
}
|
|
52
68
|
},
|
|
53
69
|
usePropsTransform(elementType, propsIn, stateRef, willHydrate) {
|
|
54
70
|
{
|
|
55
|
-
const isDOM = typeof elementType
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
} = propsIn;
|
|
84
|
-
if ((willHydrate || isDOM) && (0, import_use_element_layout.useElementLayout)(stateRef, isDOM ? onLayout : void 0), isDOM) {
|
|
71
|
+
const isDOM = typeof elementType === "string";
|
|
72
|
+
const {
|
|
73
|
+
onMoveShouldSetResponder,
|
|
74
|
+
onMoveShouldSetResponderCapture,
|
|
75
|
+
onResponderEnd,
|
|
76
|
+
onResponderGrant,
|
|
77
|
+
onResponderMove,
|
|
78
|
+
onResponderReject,
|
|
79
|
+
onResponderRelease,
|
|
80
|
+
onResponderStart,
|
|
81
|
+
onResponderTerminate,
|
|
82
|
+
onResponderTerminationRequest,
|
|
83
|
+
onScrollShouldSetResponder,
|
|
84
|
+
onScrollShouldSetResponderCapture,
|
|
85
|
+
onSelectionChangeShouldSetResponder,
|
|
86
|
+
onSelectionChangeShouldSetResponderCapture,
|
|
87
|
+
onStartShouldSetResponder,
|
|
88
|
+
onStartShouldSetResponderCapture,
|
|
89
|
+
collapsable,
|
|
90
|
+
focusable,
|
|
91
|
+
accessible,
|
|
92
|
+
accessibilityDisabled,
|
|
93
|
+
onLayout,
|
|
94
|
+
hrefAttrs,
|
|
95
|
+
...plainDOMProps
|
|
96
|
+
} = propsIn;
|
|
97
|
+
if (willHydrate || isDOM) (0, import_use_element_layout.useElementLayout)(stateRef, !isDOM ? void 0 : onLayout);
|
|
98
|
+
if (isDOM) {
|
|
85
99
|
if (plainDOMProps.href && hrefAttrs) {
|
|
86
100
|
const {
|
|
87
101
|
download,
|
|
88
102
|
rel,
|
|
89
103
|
target
|
|
90
104
|
} = hrefAttrs;
|
|
91
|
-
download != null
|
|
105
|
+
if (download != null) plainDOMProps.download = download;
|
|
106
|
+
if (rel) plainDOMProps.rel = rel;
|
|
107
|
+
if (typeof target === "string") plainDOMProps.target = target.charAt(0) !== "_" ? `_${target}` : target;
|
|
92
108
|
}
|
|
93
109
|
return plainDOMProps;
|
|
94
110
|
}
|
|
95
111
|
}
|
|
96
112
|
}
|
|
97
113
|
});
|
|
98
|
-
const View = import_web.View
|
|
99
|
-
|
|
114
|
+
const View = import_web.View;
|
|
115
|
+
const Text = import_web.Text;
|