@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.
Files changed (88) hide show
  1. package/.turbo/turbo-build.log +5 -0
  2. package/bundle-native.mjs +22 -0
  3. package/dist/cjs/createOptimizedView.cjs +12 -10
  4. package/dist/cjs/createOptimizedView.native.js +119 -80
  5. package/dist/cjs/createOptimizedView.native.js.map +1 -1
  6. package/dist/cjs/getBaseViews.cjs +12 -10
  7. package/dist/cjs/getBaseViews.native.js +14 -15
  8. package/dist/cjs/getBaseViews.native.js.map +1 -1
  9. package/dist/cjs/index.cjs +72 -56
  10. package/dist/cjs/index.native.js +41 -39
  11. package/dist/cjs/index.native.js.map +1 -1
  12. package/dist/cjs/inject-styles.cjs +27 -22
  13. package/dist/cjs/inject-styles.native.js +28 -23
  14. package/dist/cjs/inject-styles.native.js.map +1 -1
  15. package/dist/cjs/reactNativeTypes.cjs +7 -5
  16. package/dist/cjs/reactNativeTypes.native.js +7 -5
  17. package/dist/cjs/reactNativeTypes.native.js.map +1 -1
  18. package/dist/esm/createOptimizedView.native.js +95 -58
  19. package/dist/esm/createOptimizedView.native.js.map +1 -1
  20. package/dist/esm/getBaseViews.native.js +2 -5
  21. package/dist/esm/getBaseViews.native.js.map +1 -1
  22. package/dist/esm/index.js +44 -44
  23. package/dist/esm/index.js.map +1 -6
  24. package/dist/esm/index.mjs +56 -43
  25. package/dist/esm/index.mjs.map +1 -1
  26. package/dist/esm/index.native.js +24 -25
  27. package/dist/esm/index.native.js.map +1 -1
  28. package/dist/esm/inject-styles.mjs +15 -12
  29. package/dist/esm/inject-styles.mjs.map +1 -1
  30. package/dist/esm/inject-styles.native.js +16 -13
  31. package/dist/esm/inject-styles.native.js.map +1 -1
  32. package/dist/native.cjs +17964 -12540
  33. package/dist/test.native.cjs +6611 -4892
  34. package/inject-styles/index.cjs +2 -0
  35. package/inject-styles/index.js +2 -0
  36. package/inject-styles.cjs +1 -0
  37. package/native/index.cjs +2 -0
  38. package/native/index.js +2 -0
  39. package/native-test/index.cjs +2 -0
  40. package/native-test/index.js +2 -0
  41. package/package.json +27 -30
  42. package/reactNativeTypes/index.cjs +2 -0
  43. package/reactNativeTypes/index.js +2 -0
  44. package/reactNativeTypes/index.native.cjs +2 -0
  45. package/reactNativeTypes/index.native.js +2 -0
  46. package/reactNativeTypes.cjs +1 -0
  47. package/src/createOptimizedView.native.tsx +2 -2
  48. package/src/index.tsx +3 -1
  49. package/tsconfig.json +30 -0
  50. package/types/createOptimizedView.native.d.ts +4 -6
  51. package/types/createOptimizedView.native.d.ts.map +1 -1
  52. package/types/index.d.ts +1 -1
  53. package/types/index.d.ts.map +1 -1
  54. package/dist/cjs/createOptimizedView.js +0 -22
  55. package/dist/cjs/createOptimizedView.js.map +0 -6
  56. package/dist/cjs/getBaseViews.js +0 -23
  57. package/dist/cjs/getBaseViews.js.map +0 -6
  58. package/dist/cjs/index.js +0 -78
  59. package/dist/cjs/index.js.map +0 -6
  60. package/dist/cjs/inject-styles.js +0 -28
  61. package/dist/cjs/inject-styles.js.map +0 -6
  62. package/dist/cjs/reactNativeTypes.js +0 -14
  63. package/dist/cjs/reactNativeTypes.js.map +0 -6
  64. package/dist/cjs/vendor/Pressability.cjs +0 -28
  65. package/dist/cjs/vendor/Pressability.js +0 -22
  66. package/dist/cjs/vendor/Pressability.js.map +0 -6
  67. package/dist/cjs/vendor/Pressability.native.js +0 -31
  68. package/dist/cjs/vendor/Pressability.native.js.map +0 -1
  69. package/dist/esm/createOptimizedView.js +0 -6
  70. package/dist/esm/createOptimizedView.js.map +0 -6
  71. package/dist/esm/getBaseViews.js +0 -7
  72. package/dist/esm/getBaseViews.js.map +0 -6
  73. package/dist/esm/inject-styles.js +0 -12
  74. package/dist/esm/inject-styles.js.map +0 -6
  75. package/dist/esm/reactNativeTypes.js +0 -1
  76. package/dist/esm/reactNativeTypes.js.map +0 -6
  77. package/dist/esm/vendor/Pressability.js +0 -6
  78. package/dist/esm/vendor/Pressability.js.map +0 -6
  79. package/dist/esm/vendor/Pressability.mjs +0 -4
  80. package/dist/esm/vendor/Pressability.mjs.map +0 -1
  81. package/dist/esm/vendor/Pressability.native.js +0 -4
  82. package/dist/esm/vendor/Pressability.native.js.map +0 -1
  83. package/src/vendor/Pressability.native.tsx +0 -4
  84. package/src/vendor/Pressability.tsx +0 -2
  85. package/types/vendor/Pressability.d.ts +0 -3
  86. package/types/vendor/Pressability.d.ts.map +0 -1
  87. package/types/vendor/Pressability.native.d.ts +0 -3
  88. package/types/vendor/Pressability.native.d.ts.map +0 -1
@@ -0,0 +1,5 @@
1
+
2
+ $ tamagui-build
3
+ built @tamagui/core in 717 ms
4
+ Running afterBuild script...
5
+ afterBuild completed in 303 ms
@@ -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
- for (var name in all) __defProp(target, name, {
7
- get: all[name],
8
- enumerable: !0
9
- });
10
- },
11
- __copyProps = (to, from, except, desc) => {
12
- if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
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
- return to;
17
- };
17
+ }
18
+ return to;
19
+ };
18
20
  var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
19
- value: !0
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
- __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __getProtoOf = Object.getPrototypeOf;
8
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
9
9
  var __export = (target, all) => {
10
- for (var name in all) __defProp(target, name, {
11
- get: all[name],
12
- enumerable: !0
13
- });
14
- },
15
- __copyProps = (to, from, except, desc) => {
16
- if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
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
- return to;
21
- };
21
+ }
22
+ return to;
23
+ };
22
24
  var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
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: !0
30
- }) : target, mod)),
31
- __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
32
- value: !0
33
- }), mod);
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
- TextAncestor = baseViews.TextAncestor,
44
- {
45
- accessibilityElementsHidden,
46
- accessibilityLabel,
47
- accessibilityLabelledBy,
48
- accessibilityLiveRegion,
49
- accessibilityState,
50
- accessibilityValue,
51
- "aria-busy": ariaBusy,
52
- "aria-checked": ariaChecked,
53
- "aria-disabled": ariaDisabled,
54
- "aria-expanded": ariaExpanded,
55
- "aria-hidden": ariaHidden,
56
- "aria-label": ariaLabel,
57
- "aria-labelledby": ariaLabelledBy,
58
- "aria-live": ariaLive,
59
- "aria-selected": ariaSelected,
60
- "aria-valuemax": ariaValueMax,
61
- "aria-valuemin": ariaValueMin,
62
- "aria-valuenow": ariaValueNow,
63
- "aria-valuetext": ariaValueText,
64
- focusable,
65
- id,
66
- role,
67
- tabIndex
68
- } =
69
- // ...otherProps
70
- viewProps,
71
- _ariaLabelledBy_split,
72
- _accessibilityLabelledBy = (_ariaLabelledBy_split = ariaLabelledBy?.split(/\s*,\s*/g)) !== null && _ariaLabelledBy_split !== void 0 ? _ariaLabelledBy_split : accessibilityLabelledBy,
73
- _accessibilityState;
74
- (accessibilityState != null || ariaBusy != null || ariaChecked != null || ariaDisabled != null || ariaExpanded != null || ariaSelected != null) && (_accessibilityState = {
75
- busy: ariaBusy ?? accessibilityState?.busy,
76
- checked: ariaChecked ?? accessibilityState?.checked,
77
- disabled: ariaDisabled ?? accessibilityState?.disabled,
78
- expanded: ariaExpanded ?? accessibilityState?.expanded,
79
- selected: ariaSelected ?? accessibilityState?.selected
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 ((accessibilityValue != null || ariaValueMax != null || ariaValueMin != null || ariaValueNow != null || ariaValueText != null) && (_accessibilityValue = {
83
- max: ariaValueMax ?? accessibilityValue?.max,
84
- min: ariaValueMin ?? accessibilityValue?.min,
85
- now: ariaValueNow ?? accessibilityValue?.now,
86
- text: ariaValueText ?? accessibilityValue?.text
87
- }), !((_viewProps_style = viewProps.style) === null || _viewProps_style === void 0) && _viewProps_style.pointerEvents) {
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 && (viewProps.nativeID = id), ariaHidden === !0 && (viewProps.importantForAccessibility = "no-hide-descendants"), _accessibilityValue && (viewProps.accessibilityValue = _accessibilityValue), role && (viewProps.accessibilityRole = getAccessibilityRoleFromRole(role)), ariaLive === "off") viewProps.accessibilityLiveRegion = "none";else {
92
- var alr = ariaLive ?? accessibilityLiveRegion;
93
- alr && (viewProps.accessibilityLiveRegion = alr);
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
- f != null && (viewProps.focusable = f), _accessibilityState != null && (viewProps.accessibilityState = _accessibilityState);
99
- var ah = ariaHidden ?? accessibilityElementsHidden;
100
- ah != null && (viewProps.accessibilityElementsHidden = ah), _accessibilityLabelledBy && (viewProps.accessibilityLabelledBy = _accessibilityLabelledBy);
101
- var isInText = import_react.default.useContext(TextAncestor),
102
- finalElement = /* @__PURE__ */import_react.default.createElement("RCTView", viewProps, children);
103
- return isInText ? /* @__PURE__ */import_react.default.createElement(TextAncestor.Provider, {
104
- value: !1
105
- }, finalElement) : finalElement;
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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;IACAC,YAAA,GAAeF,SAAA,CAAUE,YAAA;IACzB;MAAEC,2BAAA;MAA6BC,kBAAA;MAAoBC,uBAAA;MAAyBC,uBAAA;MAAyBC,kBAAA;MAAoBC,kBAAA;MAAoB,aAAaC,QAAA;MAAU,gBAAgBC,WAAA;MAAa,iBAAiBC,YAAA;MAAc,iBAAiBC,YAAA;MAAc,eAAeC,UAAA;MAAY,cAAcC,SAAA;MAAW,mBAAmBC,cAAA;MAAgB,aAAaC,QAAA;MAAU,iBAAiBC,YAAA;MAAc,iBAAiBC,YAAA;MAAc,iBAAiBC,YAAA;MAAc,iBAAiBC,YAAA;MAAc,kBAAkBC,aAAA;MAAeC,SAAA;MAAWC,EAAA;MAAIC,IAAA;MAAMC;IAAS;IAAA;IAC5iB1B,SAAA;IACI2B,qBAAA;IACAC,wBAAA,IAA4B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AK;MACD,OAAO;IACX,KAAK;MACD;IACJ,KAAK;MACD;IACJ,KAAK;MACD;IACJ,KAAK;MACD;EACR;AAEJ","ignoreList":[]}
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;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AK;MACD,OAAO;IACX,KAAK;MACD,OAAO;IACX,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":[]}
@@ -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
- for (var name in all) __defProp(target, name, {
7
- get: all[name],
8
- enumerable: !0
9
- });
10
- },
11
- __copyProps = (to, from, except, desc) => {
12
- if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
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
- return to;
17
- };
17
+ }
18
+ return to;
19
+ };
18
20
  var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
19
- value: !0
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
- for (var name in all) __defProp(target, name, {
9
- get: all[name],
10
- enumerable: !0
11
- });
12
- },
13
- __copyProps = (to, from, except, desc) => {
14
- if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
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
- return to;
19
- };
19
+ }
20
+ return to;
21
+ };
20
22
  var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
21
- value: !0
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
- _native_default1,
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":";;;;;;;;;;;;;;;;;;;;;;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;IAAiBC,gBAAA;IAAkBC,gBAAA;IAAkBC,gBAAA;IACrDC,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":[]}
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":[]}
@@ -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
- for (var name in all) __defProp(target, name, {
7
- get: all[name],
8
- enumerable: !0
9
- });
10
- },
11
- __copyProps = (to, from, except, desc) => {
12
- if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
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
- return to;
17
- },
18
- __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
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: !0
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
- import_use_element_layout = require("@tamagui/use-element-layout"),
35
- import_web = require("@tamagui/web"),
36
- import_createOptimizedView = require("./createOptimizedView.cjs"),
37
- import_getBaseViews = require("./getBaseViews.cjs"),
38
- import_use_element_layout2 = require("@tamagui/use-element-layout");
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 => ((0, import_web.useIsomorphicLayoutEffect)(() => {
45
+ const TamaguiProvider = props => {
46
+ (0, import_web.useIsomorphicLayoutEffect)(() => {
42
47
  (0, import_use_element_layout.enable)();
43
- }, []), /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_web.TamaguiProvider, {
48
+ }, []);
49
+ return /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_web.TamaguiProvider, {
44
50
  ...props
45
- })),
46
- createTamagui = conf => (0, import_web.createTamagui)(conf),
47
- baseViews = (0, import_getBaseViews.getBaseViews)();
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.measure && (node.measure ||= (0, import_use_element_layout.createMeasure)(node), node.measureInWindow ||= (0, import_use_element_layout.createMeasureInWindow)(node), node.measureLayout ||= (0, import_use_element_layout.createMeasureLayout)(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 == "string",
56
- {
57
- // remove event props handles by useResponderEvents
58
- onMoveShouldSetResponder,
59
- onMoveShouldSetResponderCapture,
60
- onResponderEnd,
61
- onResponderGrant,
62
- onResponderMove,
63
- onResponderReject,
64
- onResponderRelease,
65
- onResponderStart,
66
- onResponderTerminate,
67
- onResponderTerminationRequest,
68
- onScrollShouldSetResponder,
69
- onScrollShouldSetResponderCapture,
70
- onSelectionChangeShouldSetResponder,
71
- onSelectionChangeShouldSetResponderCapture,
72
- onStartShouldSetResponder,
73
- onStartShouldSetResponderCapture,
74
- // android
75
- collapsable,
76
- focusable,
77
- // deprecated,
78
- accessible,
79
- accessibilityDisabled,
80
- onLayout,
81
- hrefAttrs,
82
- ...plainDOMProps
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 && (plainDOMProps.download = download), rel && (plainDOMProps.rel = rel), typeof target == "string" && (plainDOMProps.target = target.charAt(0) !== "_" ? `_${target}` : target);
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
- Text = import_web.Text;
114
+ const View = import_web.View;
115
+ const Text = import_web.Text;