@tamagui/core 1.0.1-beta.88 → 1.0.1-beta.91

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 (70) hide show
  1. package/dist/cjs/assignNativePropsToWeb.js +187 -0
  2. package/dist/cjs/assignNativePropsToWeb.js.map +7 -0
  3. package/dist/cjs/constants/platform.js +2 -2
  4. package/dist/cjs/constants/platform.js.map +2 -2
  5. package/dist/cjs/constants/rnw.js +5 -7
  6. package/dist/cjs/constants/rnw.js.map +2 -2
  7. package/dist/cjs/constants/rnw.native.js +28 -0
  8. package/dist/cjs/constants/rnw.native.js.map +7 -0
  9. package/dist/cjs/createComponent.js +52 -201
  10. package/dist/cjs/createComponent.js.map +2 -2
  11. package/dist/cjs/helpers/assignNativePropsToWeb.js +187 -0
  12. package/dist/cjs/helpers/assignNativePropsToWeb.js.map +7 -0
  13. package/dist/cjs/helpers/assignNativePropsToWeb.native.js +29 -0
  14. package/dist/cjs/helpers/assignNativePropsToWeb.native.js.map +7 -0
  15. package/dist/cjs/helpers/extendStaticConfig.js +3 -1
  16. package/dist/cjs/helpers/extendStaticConfig.js.map +2 -2
  17. package/dist/cjs/helpers/getSplitStyles.js +11 -11
  18. package/dist/cjs/helpers/getSplitStyles.js.map +2 -2
  19. package/dist/cjs/hooks/useFeatures.js +2 -4
  20. package/dist/cjs/hooks/useFeatures.js.map +2 -2
  21. package/dist/cjs/static.js +13 -1
  22. package/dist/cjs/static.js.map +2 -2
  23. package/dist/cjs/styled.js +0 -5
  24. package/dist/cjs/styled.js.map +2 -2
  25. package/dist/cjs/types.js.map +1 -1
  26. package/dist/esm/assignNativePropsToWeb.js +164 -0
  27. package/dist/esm/assignNativePropsToWeb.js.map +7 -0
  28. package/dist/esm/constants/platform.js +2 -2
  29. package/dist/esm/constants/platform.js.map +2 -2
  30. package/dist/esm/constants/rnw.js +2 -7
  31. package/dist/esm/constants/rnw.js.map +2 -2
  32. package/dist/esm/constants/rnw.native.js +5 -0
  33. package/dist/esm/constants/rnw.native.js.map +7 -0
  34. package/dist/esm/createComponent.js +49 -200
  35. package/dist/esm/createComponent.js.map +2 -2
  36. package/dist/esm/helpers/assignNativePropsToWeb.js +164 -0
  37. package/dist/esm/helpers/assignNativePropsToWeb.js.map +7 -0
  38. package/dist/esm/helpers/assignNativePropsToWeb.native.js +6 -0
  39. package/dist/esm/helpers/assignNativePropsToWeb.native.js.map +7 -0
  40. package/dist/esm/helpers/extendStaticConfig.js +3 -1
  41. package/dist/esm/helpers/extendStaticConfig.js.map +2 -2
  42. package/dist/esm/helpers/getSplitStyles.js +11 -11
  43. package/dist/esm/helpers/getSplitStyles.js.map +2 -2
  44. package/dist/esm/hooks/useFeatures.js +3 -5
  45. package/dist/esm/hooks/useFeatures.js.map +2 -2
  46. package/dist/esm/static.js +5 -1
  47. package/dist/esm/static.js.map +2 -2
  48. package/dist/esm/styled.js +0 -5
  49. package/dist/esm/styled.js.map +2 -2
  50. package/package.json +6 -6
  51. package/types/assignNativePropsToWeb.d.ts +2 -0
  52. package/types/assignNativePropsToWeb.d.ts.map +1 -0
  53. package/types/constants/platform.d.ts.map +1 -1
  54. package/types/constants/rnw.d.ts.map +1 -1
  55. package/types/constants/rnw.native.d.ts +2 -0
  56. package/types/constants/rnw.native.d.ts.map +1 -0
  57. package/types/createComponent.d.ts +15 -1
  58. package/types/createComponent.d.ts.map +1 -1
  59. package/types/helpers/assignNativePropsToWeb.d.ts +2 -0
  60. package/types/helpers/assignNativePropsToWeb.d.ts.map +1 -0
  61. package/types/helpers/assignNativePropsToWeb.native.d.ts +2 -0
  62. package/types/helpers/assignNativePropsToWeb.native.d.ts.map +1 -0
  63. package/types/helpers/extendStaticConfig.d.ts.map +1 -1
  64. package/types/helpers/getSplitStyles.d.ts.map +1 -1
  65. package/types/hooks/useFeatures.d.ts.map +1 -1
  66. package/types/static.d.ts +1 -1
  67. package/types/static.d.ts.map +1 -1
  68. package/types/styled.d.ts.map +1 -1
  69. package/types/types.d.ts +1 -3
  70. package/types/types.d.ts.map +1 -1
@@ -0,0 +1,187 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __export = (target, all) => {
6
+ for (var name in all)
7
+ __defProp(target, name, { get: all[name], enumerable: true });
8
+ };
9
+ var __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from === "object" || typeof from === "function") {
11
+ for (let key of __getOwnPropNames(from))
12
+ if (!__hasOwnProp.call(to, key) && key !== except)
13
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
+ }
15
+ return to;
16
+ };
17
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
+ var assignNativePropsToWeb_exports = {};
19
+ __export(assignNativePropsToWeb_exports, {
20
+ assignNativePropsToWeb: () => assignNativePropsToWeb
21
+ });
22
+ module.exports = __toCommonJS(assignNativePropsToWeb_exports);
23
+ var import_createComponent = require("./createComponent");
24
+ function assignNativePropsToWeb(elementType, viewProps, nativeProps) {
25
+ if (!viewProps.role && nativeProps.accessibilityRole) {
26
+ if (nativeProps.accessibilityRole === "none") {
27
+ viewProps.role = "presentation";
28
+ } else {
29
+ const webRole = import_createComponent.accessibilityRoleToWebRole[nativeProps.accessibilityRole];
30
+ if (webRole != null) {
31
+ viewProps.role = webRole || nativeProps.accessibilityRole;
32
+ }
33
+ }
34
+ }
35
+ if (nativeProps.accessibilityActiveDescendant != null) {
36
+ viewProps["aria-activedescendant"] = nativeProps.accessibilityActiveDescendant;
37
+ }
38
+ if (nativeProps.accessibilityAtomic != null) {
39
+ viewProps["aria-atomic"] = nativeProps.accessibilityAtomic;
40
+ }
41
+ if (nativeProps.accessibilityAutoComplete != null) {
42
+ viewProps["aria-autocomplete"] = nativeProps.accessibilityAutoComplete;
43
+ }
44
+ if (nativeProps.accessibilityBusy != null) {
45
+ viewProps["aria-busy"] = nativeProps.accessibilityBusy;
46
+ }
47
+ if (nativeProps.accessibilityChecked != null) {
48
+ viewProps["aria-checked"] = nativeProps.accessibilityChecked;
49
+ }
50
+ if (nativeProps.accessibilityColumnCount != null) {
51
+ viewProps["aria-colcount"] = nativeProps.accessibilityColumnCount;
52
+ }
53
+ if (nativeProps.accessibilityColumnIndex != null) {
54
+ viewProps["aria-colindex"] = nativeProps.accessibilityColumnIndex;
55
+ }
56
+ if (nativeProps.accessibilityColumnSpan != null) {
57
+ viewProps["aria-colspan"] = nativeProps.accessibilityColumnSpan;
58
+ }
59
+ if (nativeProps.accessibilityControls != null) {
60
+ viewProps["aria-controls"] = (0, import_createComponent.processIDRefList)(nativeProps.accessibilityControls);
61
+ }
62
+ if (nativeProps.accessibilityCurrent != null) {
63
+ viewProps["aria-current"] = nativeProps.accessibilityCurrent;
64
+ }
65
+ if (nativeProps.accessibilityDescribedBy != null) {
66
+ viewProps["aria-describedby"] = (0, import_createComponent.processIDRefList)(nativeProps.accessibilityDescribedBy);
67
+ }
68
+ if (nativeProps.accessibilityDetails != null) {
69
+ viewProps["aria-details"] = nativeProps.accessibilityDetails;
70
+ }
71
+ if (nativeProps.disabled === true) {
72
+ viewProps["aria-disabled"] = true;
73
+ if (elementType === "button" || elementType === "form" || elementType === "input" || elementType === "select" || elementType === "textarea") {
74
+ viewProps.disabled = true;
75
+ }
76
+ }
77
+ if (nativeProps.accessibilityErrorMessage != null) {
78
+ viewProps["aria-errormessage"] = nativeProps.accessibilityErrorMessage;
79
+ }
80
+ if (nativeProps.accessibilityExpanded != null) {
81
+ viewProps["aria-expanded"] = nativeProps.accessibilityExpanded;
82
+ }
83
+ if (nativeProps.accessibilityFlowTo != null) {
84
+ viewProps["aria-flowto"] = (0, import_createComponent.processIDRefList)(nativeProps.accessibilityFlowTo);
85
+ }
86
+ if (nativeProps.accessibilityHasPopup != null) {
87
+ viewProps["aria-haspopup"] = nativeProps.accessibilityHasPopup;
88
+ }
89
+ if (nativeProps.accessibilityHidden === true) {
90
+ viewProps["aria-hidden"] = nativeProps.accessibilityHidden;
91
+ }
92
+ if (nativeProps.accessibilityInvalid != null) {
93
+ viewProps["aria-invalid"] = nativeProps.accessibilityInvalid;
94
+ }
95
+ if (nativeProps.accessibilityKeyShortcuts != null && Array.isArray(nativeProps.accessibilityKeyShortcuts)) {
96
+ viewProps["aria-keyshortcuts"] = nativeProps.accessibilityKeyShortcuts.join(" ");
97
+ }
98
+ if (nativeProps.accessibilityLabel != null) {
99
+ viewProps["aria-label"] = nativeProps.accessibilityLabel;
100
+ }
101
+ if (nativeProps.accessibilityLabelledBy != null) {
102
+ viewProps["aria-labelledby"] = (0, import_createComponent.processIDRefList)(nativeProps.accessibilityLabelledBy);
103
+ }
104
+ if (nativeProps.accessibilityLevel != null) {
105
+ viewProps["aria-level"] = nativeProps.accessibilityLevel;
106
+ }
107
+ if (nativeProps.accessibilityLiveRegion != null) {
108
+ viewProps["aria-live"] = nativeProps.accessibilityLiveRegion === "none" ? "off" : nativeProps.accessibilityLiveRegion;
109
+ }
110
+ if (nativeProps.accessibilityModal != null) {
111
+ viewProps["aria-modal"] = nativeProps.accessibilityModal;
112
+ }
113
+ if (nativeProps.accessibilityMultiline != null) {
114
+ viewProps["aria-multiline"] = nativeProps.accessibilityMultiline;
115
+ }
116
+ if (nativeProps.accessibilityMultiSelectable != null) {
117
+ viewProps["aria-multiselectable"] = nativeProps.accessibilityMultiSelectable;
118
+ }
119
+ if (nativeProps.accessibilityOrientation != null) {
120
+ viewProps["aria-orientation"] = nativeProps.accessibilityOrientation;
121
+ }
122
+ if (nativeProps.accessibilityOwns != null) {
123
+ viewProps["aria-owns"] = (0, import_createComponent.processIDRefList)(nativeProps.accessibilityOwns);
124
+ }
125
+ if (nativeProps.accessibilityPlaceholder != null) {
126
+ viewProps["aria-placeholder"] = nativeProps.accessibilityPlaceholder;
127
+ }
128
+ if (nativeProps.accessibilityPosInSet != null) {
129
+ viewProps["aria-posinset"] = nativeProps.accessibilityPosInSet;
130
+ }
131
+ if (nativeProps.accessibilityPressed != null) {
132
+ viewProps["aria-pressed"] = nativeProps.accessibilityPressed;
133
+ }
134
+ if (nativeProps.accessibilityReadOnly != null) {
135
+ viewProps["aria-readonly"] = nativeProps.accessibilityReadOnly;
136
+ if (elementType === "input" || elementType === "select" || elementType === "textarea") {
137
+ viewProps.readOnly = true;
138
+ }
139
+ }
140
+ if (nativeProps.accessibilityRequired != null) {
141
+ viewProps["aria-required"] = nativeProps.accessibilityRequired;
142
+ if (elementType === "input" || elementType === "select" || elementType === "textarea") {
143
+ viewProps.required = true;
144
+ }
145
+ }
146
+ if (nativeProps.accessibilityRoleDescription != null) {
147
+ viewProps["aria-roledescription"] = nativeProps.accessibilityRoleDescription;
148
+ }
149
+ if (nativeProps.accessibilityRowCount != null) {
150
+ viewProps["aria-rowcount"] = nativeProps.accessibilityRowCount;
151
+ }
152
+ if (nativeProps.accessibilityRowIndex != null) {
153
+ viewProps["aria-rowindex"] = nativeProps.accessibilityRowIndex;
154
+ }
155
+ if (nativeProps.accessibilityRowSpan != null) {
156
+ viewProps["aria-rowspan"] = nativeProps.accessibilityRowSpan;
157
+ }
158
+ if (nativeProps.accessibilitySelected != null) {
159
+ viewProps["aria-selected"] = nativeProps.accessibilitySelected;
160
+ }
161
+ if (nativeProps.accessibilitySetSize != null) {
162
+ viewProps["aria-setsize"] = nativeProps.accessibilitySetSize;
163
+ }
164
+ if (nativeProps.accessibilitySort != null) {
165
+ viewProps["aria-sort"] = nativeProps.accessibilitySort;
166
+ }
167
+ if (nativeProps.accessibilityValueMax != null) {
168
+ viewProps["aria-valuemax"] = nativeProps.accessibilityValueMax;
169
+ }
170
+ if (nativeProps.accessibilityValueMin != null) {
171
+ viewProps["aria-valuemin"] = nativeProps.accessibilityValueMin;
172
+ }
173
+ if (nativeProps.accessibilityValueNow != null) {
174
+ viewProps["aria-valuenow"] = nativeProps.accessibilityValueNow;
175
+ }
176
+ if (nativeProps.accessibilityValueText != null) {
177
+ viewProps["aria-valuetext"] = nativeProps.accessibilityValueText;
178
+ }
179
+ if (nativeProps.nativeID) {
180
+ viewProps.id = nativeProps.nativeID;
181
+ }
182
+ }
183
+ // Annotate the CommonJS export names for ESM import in node:
184
+ 0 && (module.exports = {
185
+ assignNativePropsToWeb
186
+ });
187
+ //# sourceMappingURL=assignNativePropsToWeb.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/assignNativePropsToWeb.tsx"],
4
+ "sourcesContent": ["import { accessibilityRoleToWebRole, processIDRefList } from './createComponent'\n\n// adapted from react-native-web\n\nexport function assignNativePropsToWeb(elementType: string, viewProps: any, nativeProps: any) {\n if (!viewProps.role && nativeProps.accessibilityRole) {\n if (nativeProps.accessibilityRole === 'none') {\n viewProps.role = 'presentation'\n } else {\n const webRole = accessibilityRoleToWebRole[nativeProps.accessibilityRole]\n if (webRole != null) {\n viewProps.role = webRole || nativeProps.accessibilityRole\n }\n }\n }\n\n if (nativeProps.accessibilityActiveDescendant != null) {\n viewProps['aria-activedescendant'] = nativeProps.accessibilityActiveDescendant\n }\n if (nativeProps.accessibilityAtomic != null) {\n viewProps['aria-atomic'] = nativeProps.accessibilityAtomic\n }\n if (nativeProps.accessibilityAutoComplete != null) {\n viewProps['aria-autocomplete'] = nativeProps.accessibilityAutoComplete\n }\n if (nativeProps.accessibilityBusy != null) {\n viewProps['aria-busy'] = nativeProps.accessibilityBusy\n }\n if (nativeProps.accessibilityChecked != null) {\n viewProps['aria-checked'] = nativeProps.accessibilityChecked\n }\n if (nativeProps.accessibilityColumnCount != null) {\n viewProps['aria-colcount'] = nativeProps.accessibilityColumnCount\n }\n if (nativeProps.accessibilityColumnIndex != null) {\n viewProps['aria-colindex'] = nativeProps.accessibilityColumnIndex\n }\n if (nativeProps.accessibilityColumnSpan != null) {\n viewProps['aria-colspan'] = nativeProps.accessibilityColumnSpan\n }\n if (nativeProps.accessibilityControls != null) {\n viewProps['aria-controls'] = processIDRefList(nativeProps.accessibilityControls)\n }\n if (nativeProps.accessibilityCurrent != null) {\n viewProps['aria-current'] = nativeProps.accessibilityCurrent\n }\n if (nativeProps.accessibilityDescribedBy != null) {\n viewProps['aria-describedby'] = processIDRefList(nativeProps.accessibilityDescribedBy)\n }\n if (nativeProps.accessibilityDetails != null) {\n viewProps['aria-details'] = nativeProps.accessibilityDetails\n }\n if (nativeProps.disabled === true) {\n viewProps['aria-disabled'] = true\n // Enhance with native semantics\n if (\n elementType === 'button' ||\n elementType === 'form' ||\n elementType === 'input' ||\n elementType === 'select' ||\n elementType === 'textarea'\n ) {\n viewProps.disabled = true\n }\n }\n if (nativeProps.accessibilityErrorMessage != null) {\n viewProps['aria-errormessage'] = nativeProps.accessibilityErrorMessage\n }\n if (nativeProps.accessibilityExpanded != null) {\n viewProps['aria-expanded'] = nativeProps.accessibilityExpanded\n }\n if (nativeProps.accessibilityFlowTo != null) {\n viewProps['aria-flowto'] = processIDRefList(nativeProps.accessibilityFlowTo)\n }\n if (nativeProps.accessibilityHasPopup != null) {\n viewProps['aria-haspopup'] = nativeProps.accessibilityHasPopup\n }\n if (nativeProps.accessibilityHidden === true) {\n viewProps['aria-hidden'] = nativeProps.accessibilityHidden\n }\n if (nativeProps.accessibilityInvalid != null) {\n viewProps['aria-invalid'] = nativeProps.accessibilityInvalid\n }\n if (\n nativeProps.accessibilityKeyShortcuts != null &&\n Array.isArray(nativeProps.accessibilityKeyShortcuts)\n ) {\n viewProps['aria-keyshortcuts'] = nativeProps.accessibilityKeyShortcuts.join(' ')\n }\n if (nativeProps.accessibilityLabel != null) {\n viewProps['aria-label'] = nativeProps.accessibilityLabel\n }\n if (nativeProps.accessibilityLabelledBy != null) {\n viewProps['aria-labelledby'] = processIDRefList(nativeProps.accessibilityLabelledBy)\n }\n if (nativeProps.accessibilityLevel != null) {\n viewProps['aria-level'] = nativeProps.accessibilityLevel\n }\n if (nativeProps.accessibilityLiveRegion != null) {\n viewProps['aria-live'] =\n nativeProps.accessibilityLiveRegion === 'none' ? 'off' : nativeProps.accessibilityLiveRegion\n }\n if (nativeProps.accessibilityModal != null) {\n viewProps['aria-modal'] = nativeProps.accessibilityModal\n }\n if (nativeProps.accessibilityMultiline != null) {\n viewProps['aria-multiline'] = nativeProps.accessibilityMultiline\n }\n if (nativeProps.accessibilityMultiSelectable != null) {\n viewProps['aria-multiselectable'] = nativeProps.accessibilityMultiSelectable\n }\n if (nativeProps.accessibilityOrientation != null) {\n viewProps['aria-orientation'] = nativeProps.accessibilityOrientation\n }\n if (nativeProps.accessibilityOwns != null) {\n viewProps['aria-owns'] = processIDRefList(nativeProps.accessibilityOwns)\n }\n if (nativeProps.accessibilityPlaceholder != null) {\n viewProps['aria-placeholder'] = nativeProps.accessibilityPlaceholder\n }\n if (nativeProps.accessibilityPosInSet != null) {\n viewProps['aria-posinset'] = nativeProps.accessibilityPosInSet\n }\n if (nativeProps.accessibilityPressed != null) {\n viewProps['aria-pressed'] = nativeProps.accessibilityPressed\n }\n if (nativeProps.accessibilityReadOnly != null) {\n viewProps['aria-readonly'] = nativeProps.accessibilityReadOnly\n // Enhance with native semantics\n if (elementType === 'input' || elementType === 'select' || elementType === 'textarea') {\n viewProps.readOnly = true\n }\n }\n if (nativeProps.accessibilityRequired != null) {\n viewProps['aria-required'] = nativeProps.accessibilityRequired\n // Enhance with native semantics\n if (elementType === 'input' || elementType === 'select' || elementType === 'textarea') {\n viewProps.required = true\n }\n }\n if (nativeProps.accessibilityRoleDescription != null) {\n viewProps['aria-roledescription'] = nativeProps.accessibilityRoleDescription\n }\n if (nativeProps.accessibilityRowCount != null) {\n viewProps['aria-rowcount'] = nativeProps.accessibilityRowCount\n }\n if (nativeProps.accessibilityRowIndex != null) {\n viewProps['aria-rowindex'] = nativeProps.accessibilityRowIndex\n }\n if (nativeProps.accessibilityRowSpan != null) {\n viewProps['aria-rowspan'] = nativeProps.accessibilityRowSpan\n }\n if (nativeProps.accessibilitySelected != null) {\n viewProps['aria-selected'] = nativeProps.accessibilitySelected\n }\n if (nativeProps.accessibilitySetSize != null) {\n viewProps['aria-setsize'] = nativeProps.accessibilitySetSize\n }\n if (nativeProps.accessibilitySort != null) {\n viewProps['aria-sort'] = nativeProps.accessibilitySort\n }\n if (nativeProps.accessibilityValueMax != null) {\n viewProps['aria-valuemax'] = nativeProps.accessibilityValueMax\n }\n if (nativeProps.accessibilityValueMin != null) {\n viewProps['aria-valuemin'] = nativeProps.accessibilityValueMin\n }\n if (nativeProps.accessibilityValueNow != null) {\n viewProps['aria-valuenow'] = nativeProps.accessibilityValueNow\n }\n if (nativeProps.accessibilityValueText != null) {\n viewProps['aria-valuetext'] = nativeProps.accessibilityValueText\n }\n\n if (nativeProps.nativeID) {\n viewProps.id = nativeProps.nativeID\n }\n}\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,6BAA6D;AAItD,gCAAgC,aAAqB,WAAgB,aAAkB;AAC5F,MAAI,CAAC,UAAU,QAAQ,YAAY,mBAAmB;AACpD,QAAI,YAAY,sBAAsB,QAAQ;AAC5C,gBAAU,OAAO;AAAA,IACnB,OAAO;AACL,YAAM,UAAU,kDAA2B,YAAY;AACvD,UAAI,WAAW,MAAM;AACnB,kBAAU,OAAO,WAAW,YAAY;AAAA,MAC1C;AAAA,IACF;AAAA,EACF;AAEA,MAAI,YAAY,iCAAiC,MAAM;AACrD,cAAU,2BAA2B,YAAY;AAAA,EACnD;AACA,MAAI,YAAY,uBAAuB,MAAM;AAC3C,cAAU,iBAAiB,YAAY;AAAA,EACzC;AACA,MAAI,YAAY,6BAA6B,MAAM;AACjD,cAAU,uBAAuB,YAAY;AAAA,EAC/C;AACA,MAAI,YAAY,qBAAqB,MAAM;AACzC,cAAU,eAAe,YAAY;AAAA,EACvC;AACA,MAAI,YAAY,wBAAwB,MAAM;AAC5C,cAAU,kBAAkB,YAAY;AAAA,EAC1C;AACA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AU,WAAW;AAAA,IACvB;AAAA,EACF;AACA,MAAI,YAAY,gCAAgC,MAAM;AACpD,cAAU,0BAA0B,YAAY;AAAA,EAClD;AACA,MAAI,YAAY,yBAAyB,MAAM;AAC7C,cAAU,mBAAmB,YAAY;AAAA,EAC3C;AACA,MAAI,YAAY,yBAAyB,MAAM;AAC7C,cAAU,mBAAmB,YAAY;AAAA,EAC3C;AACA,MAAI,YAAY,wBAAwB,MAAM;AAC5C,cAAU,kBAAkB,YAAY;AAAA,EAC1C;AACA,MAAI,YAAY,yBAAyB,MAAM;AAC7C,cAAU,mBAAmB,YAAY;AAAA,EAC3C;AACA,MAAI,YAAY,wBAAwB,MAAM;AAC5C,cAAU,kBAAkB,YAAY;AAAA,EAC1C;AACA,MAAI,YAAY,qBAAqB,MAAM;AACzC,cAAU,eAAe,YAAY;AAAA,EACvC;AACA,MAAI,YAAY,yBAAyB,MAAM;AAC7C,cAAU,mBAAmB,YAAY;AAAA,EAC3C;AACA,MAAI,YAAY,yBAAyB,MAAM;AAC7C,cAAU,mBAAmB,YAAY;AAAA,EAC3C;AACA,MAAI,YAAY,yBAAyB,MAAM;AAC7C,cAAU,mBAAmB,YAAY;AAAA,EAC3C;AACA,MAAI,YAAY,0BAA0B,MAAM;AAC9C,cAAU,oBAAoB,YAAY;AAAA,EAC5C;AAEA,MAAI,YAAY,UAAU;AACxB,cAAU,KAAK,YAAY;AAAA,EAC7B;AACF;",
6
+ "names": []
7
+ }
@@ -31,10 +31,10 @@ __export(platform_exports, {
31
31
  module.exports = __toCommonJS(platform_exports);
32
32
  var import_react = require("react");
33
33
  var import_react_native = require("react-native");
34
- var _a, _b, _c;
34
+ var _a, _b;
35
35
  const isAndroid = ((_a = import_react_native.Platform) == null ? void 0 : _a.OS) === "android";
36
36
  const isIOS = ((_b = import_react_native.Platform) == null ? void 0 : _b.OS) === "ios";
37
- const isWeb = process.env.TAMAGUI_TARGET !== "native" && (process.env.TAMAGUI_TARGET === "web" || ((_c = import_react_native.Platform) == null ? void 0 : _c.OS) === "web");
37
+ const isWeb = process.env.TAMAGUI_TARGET === "web";
38
38
  const isSSR = isWeb && typeof window === "undefined";
39
39
  const isClient = isWeb && typeof window !== "undefined";
40
40
  const useIsomorphicLayoutEffect = isSSR ? import_react.useEffect : import_react.useLayoutEffect;
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/constants/platform.ts"],
4
- "sourcesContent": ["import { useEffect, useLayoutEffect } from 'react'\nimport { Platform } from 'react-native'\n\nexport const isAndroid = Platform?.OS === 'android'\nexport const isIOS = Platform?.OS === 'ios'\n\nexport const isWeb =\n process.env.TAMAGUI_TARGET !== 'native' &&\n (process.env.TAMAGUI_TARGET === 'web' || Platform?.OS === 'web')\n\nexport const isSSR = isWeb && typeof window === 'undefined'\nexport const isClient = isWeb && typeof window !== 'undefined'\nexport const useIsomorphicLayoutEffect = isSSR ? useEffect : useLayoutEffect\nexport const isChrome = typeof navigator !== 'undefined' && /Chrome/.test(navigator.userAgent || '')\nexport const isWebTouchable = typeof window !== 'undefined' && 'ontouchstart' in window\nexport const isTouchable = !isWeb || isWebTouchable\nexport const isWebIOS =\n isWeb &&\n typeof navigator !== 'undefined' &&\n (/iPad|iPhone|iPod/.test(navigator.platform) ||\n (navigator.platform === 'MacIntel' && navigator.maxTouchPoints > 1)) &&\n !window['MSStream']\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,mBAA2C;AAC3C,0BAAyB;AADzB;AAGO,MAAM,YAAY,2DAAU,QAAO;AACnC,MAAM,QAAQ,2DAAU,QAAO;AAE/B,MAAM,QACX,QAAQ,IAAI,mBAAmB,YAC9B,SAAQ,IAAI,mBAAmB,SAAS,2DAAU,QAAO;AAErD,MAAM,QAAQ,SAAS,OAAO,WAAW;AACzC,MAAM,WAAW,SAAS,OAAO,WAAW;AAC5C,MAAM,4BAA4B,QAAQ,yBAAY;AACtD,MAAM,WAAW,OAAO,cAAc,eAAe,SAAS,KAAK,UAAU,aAAa,EAAE;AAC5F,MAAM,iBAAiB,OAAO,WAAW,eAAe,kBAAkB;AAC1E,MAAM,cAAc,CAAC,SAAS;AAC9B,MAAM,WACX,SACA,OAAO,cAAc,eACpB,oBAAmB,KAAK,UAAU,QAAQ,KACxC,UAAU,aAAa,cAAc,UAAU,iBAAiB,MACnE,CAAC,OAAO;",
4
+ "sourcesContent": ["import { useEffect, useLayoutEffect } from 'react'\nimport { Platform } from 'react-native'\n\nexport const isAndroid = Platform?.OS === 'android'\nexport const isIOS = Platform?.OS === 'ios'\nexport const isWeb = process.env.TAMAGUI_TARGET === 'web'\nexport const isSSR = isWeb && typeof window === 'undefined'\nexport const isClient = isWeb && typeof window !== 'undefined'\nexport const useIsomorphicLayoutEffect = isSSR ? useEffect : useLayoutEffect\nexport const isChrome = typeof navigator !== 'undefined' && /Chrome/.test(navigator.userAgent || '')\nexport const isWebTouchable = typeof window !== 'undefined' && 'ontouchstart' in window\nexport const isTouchable = !isWeb || isWebTouchable\nexport const isWebIOS =\n isWeb &&\n typeof navigator !== 'undefined' &&\n (/iPad|iPhone|iPod/.test(navigator.platform) ||\n (navigator.platform === 'MacIntel' && navigator.maxTouchPoints > 1)) &&\n !window['MSStream']\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,mBAA2C;AAC3C,0BAAyB;AADzB;AAGO,MAAM,YAAY,2DAAU,QAAO;AACnC,MAAM,QAAQ,2DAAU,QAAO;AAC/B,MAAM,QAAQ,QAAQ,IAAI,mBAAmB;AAC7C,MAAM,QAAQ,SAAS,OAAO,WAAW;AACzC,MAAM,WAAW,SAAS,OAAO,WAAW;AAC5C,MAAM,4BAA4B,QAAQ,yBAAY;AACtD,MAAM,WAAW,OAAO,cAAc,eAAe,SAAS,KAAK,UAAU,aAAa,EAAE;AAC5F,MAAM,iBAAiB,OAAO,WAAW,eAAe,kBAAkB;AAC1E,MAAM,cAAc,CAAC,SAAS;AAC9B,MAAM,WACX,SACA,OAAO,cAAc,eACpB,oBAAmB,KAAK,UAAU,QAAQ,KACxC,UAAU,aAAa,cAAc,UAAU,iBAAiB,MACnE,CAAC,OAAO;",
6
6
  "names": []
7
7
  }
@@ -1,6 +1,8 @@
1
+ var __create = Object.create;
1
2
  var __defProp = Object.defineProperty;
2
3
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
4
  var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getProtoOf = Object.getPrototypeOf;
4
6
  var __hasOwnProp = Object.prototype.hasOwnProperty;
5
7
  var __export = (target, all) => {
6
8
  for (var name in all)
@@ -14,19 +16,15 @@ var __copyProps = (to, from, except, desc) => {
14
16
  }
15
17
  return to;
16
18
  };
19
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, mod));
17
20
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
21
  var rnw_exports = {};
19
22
  __export(rnw_exports, {
20
23
  rnw: () => rnw
21
24
  });
22
25
  module.exports = __toCommonJS(rnw_exports);
23
- const interopRequire = (x) => "default" in x ? x.default : x;
24
- const rnw = {};
25
- if (process.env.IS_STATIC === "is_static") {
26
- Object.assign(rnw, interopRequire(require("react-native-web/dist/cjs/tamagui-exports")));
27
- } else if (process.env.TAMAGUI_TARGET === "web") {
28
- Object.assign(rnw, interopRequire(require("react-native-web")).TamaguiExports);
29
- }
26
+ var RNW = __toESM(require("react-native-web"));
27
+ const rnw = RNW["TamaguiExports"];
30
28
  // Annotate the CommonJS export names for ESM import in node:
31
29
  0 && (module.exports = {
32
30
  rnw
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/constants/rnw.tsx"],
4
- "sourcesContent": ["const interopRequire = (x: any) => ('default' in x ? x.default : x)\nexport const rnw: any = {}\n\n// in static mode, require them directly since we can't import react-native-web at all (it has flow stuff in it)\nif (process.env.IS_STATIC === 'is_static') {\n Object.assign(rnw, interopRequire(require('react-native-web/dist/cjs/tamagui-exports')))\n} else if (process.env.TAMAGUI_TARGET === 'web') {\n Object.assign(rnw, interopRequire(require('react-native-web')).TamaguiExports)\n}\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,MAAM,iBAAiB,CAAC,MAAY,aAAa,IAAI,EAAE,UAAU;AAC1D,MAAM,MAAW,CAAC;AAGzB,IAAI,QAAQ,IAAI,cAAc,aAAa;AACzC,SAAO,OAAO,KAAK,eAAe,QAAQ,2CAA2C,CAAC,CAAC;AACzF,WAAW,QAAQ,IAAI,mBAAmB,OAAO;AAC/C,SAAO,OAAO,KAAK,eAAe,QAAQ,kBAAkB,CAAC,EAAE,cAAc;AAC/E;",
4
+ "sourcesContent": ["import * as RNW from 'react-native-web'\n\nexport const rnw = RNW['TamaguiExports']\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,UAAqB;AAEd,MAAM,MAAM,IAAI;",
6
6
  "names": []
7
7
  }
@@ -0,0 +1,28 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __export = (target, all) => {
6
+ for (var name in all)
7
+ __defProp(target, name, { get: all[name], enumerable: true });
8
+ };
9
+ var __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from === "object" || typeof from === "function") {
11
+ for (let key of __getOwnPropNames(from))
12
+ if (!__hasOwnProp.call(to, key) && key !== except)
13
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
+ }
15
+ return to;
16
+ };
17
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
+ var rnw_native_exports = {};
19
+ __export(rnw_native_exports, {
20
+ rnw: () => rnw
21
+ });
22
+ module.exports = __toCommonJS(rnw_native_exports);
23
+ const rnw = {};
24
+ // Annotate the CommonJS export names for ESM import in node:
25
+ 0 && (module.exports = {
26
+ rnw
27
+ });
28
+ //# sourceMappingURL=rnw.native.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/constants/rnw.native.tsx"],
4
+ "sourcesContent": ["export const rnw = {} as any\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAO,MAAM,MAAM,CAAC;",
6
+ "names": []
7
+ }