@tamagui/helpers 1.110.4 → 1.111.0
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/dist/cjs/clamp.native.js +1 -42
- package/dist/cjs/clamp.native.js.map +1 -1
- package/dist/cjs/composeEventHandlers.native.js +1 -1
- package/dist/cjs/composeEventHandlers.native.js.map +1 -1
- package/dist/cjs/validStyleProps.native.js +124 -163
- package/dist/cjs/validStyleProps.native.js.map +2 -2
- package/dist/cjs/withStaticProperties.native.js +7 -43
- package/dist/cjs/withStaticProperties.native.js.map +1 -1
- package/dist/esm/clamp.native.js +1 -42
- package/dist/esm/clamp.native.js.map +1 -1
- package/dist/esm/clamp.native.mjs +6 -0
- package/dist/esm/clamp.native.mjs.map +1 -0
- package/dist/esm/composeEventHandlers.native.js +3 -3
- package/dist/esm/composeEventHandlers.native.js.map +1 -1
- package/dist/esm/composeEventHandlers.native.mjs +12 -0
- package/dist/esm/composeEventHandlers.native.mjs.map +1 -0
- package/dist/esm/concatClassName.native.mjs +46 -0
- package/dist/esm/concatClassName.native.mjs.map +1 -0
- package/dist/esm/index.native.mjs +9 -0
- package/dist/esm/index.native.mjs.map +1 -0
- package/dist/esm/shouldRenderNativePlatform.native.mjs +35 -0
- package/dist/esm/shouldRenderNativePlatform.native.mjs.map +1 -0
- package/dist/esm/types.native.mjs +7 -0
- package/dist/esm/types.native.mjs.map +1 -0
- package/dist/esm/validStyleProps.native.js +123 -161
- package/dist/esm/validStyleProps.native.js.map +2 -2
- package/dist/esm/validStyleProps.native.mjs +245 -0
- package/dist/esm/validStyleProps.native.mjs.map +1 -0
- package/dist/esm/withStaticProperties.native.js +6 -41
- package/dist/esm/withStaticProperties.native.js.map +1 -1
- package/dist/esm/withStaticProperties.native.mjs +24 -0
- package/dist/esm/withStaticProperties.native.mjs.map +1 -0
- package/package.json +4 -4
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
function concatClassName(_cn) {
|
|
2
|
+
for (var args = arguments, usedPrefixes = [], final = "", len = args.length, propObjects = null, x = len; x >= 0; x--) {
|
|
3
|
+
var _loop = function (i2) {
|
|
4
|
+
var name = names[i2];
|
|
5
|
+
if (!name || name === " ") return "continue";
|
|
6
|
+
if (name[0] !== "_") return final = name + " " + final, "continue";
|
|
7
|
+
var splitIndex = name.indexOf("-");
|
|
8
|
+
if (splitIndex < 1) return final = name + " " + final, "continue";
|
|
9
|
+
var nextChar = name[splitIndex + 1],
|
|
10
|
+
isMediaQuery = nextChar === "_",
|
|
11
|
+
styleKey = name.slice(1, name.lastIndexOf("-")),
|
|
12
|
+
mediaKey = isMediaQuery ? name.slice(splitIndex + 2, splitIndex + 7) : null,
|
|
13
|
+
uid = mediaKey ? styleKey + mediaKey : styleKey;
|
|
14
|
+
if (usedPrefixes.indexOf(uid) > -1) return "continue";
|
|
15
|
+
usedPrefixes.push(uid);
|
|
16
|
+
var propName = styleKey;
|
|
17
|
+
if (propName && propObjects && propObjects.some(function (po) {
|
|
18
|
+
if (mediaKey) {
|
|
19
|
+
var propKey = pseudoInvert[mediaKey];
|
|
20
|
+
return po && po[propKey] && propName in po[propKey] && po[propKey] !== null;
|
|
21
|
+
}
|
|
22
|
+
var res = po && propName in po && po[propName] !== null;
|
|
23
|
+
return res;
|
|
24
|
+
})) return "continue";
|
|
25
|
+
final = name + " " + final;
|
|
26
|
+
},
|
|
27
|
+
cns = args[x];
|
|
28
|
+
if (cns) {
|
|
29
|
+
if (!Array.isArray(cns) && typeof cns != "string") {
|
|
30
|
+
propObjects = propObjects || [], propObjects.push(cns);
|
|
31
|
+
continue;
|
|
32
|
+
}
|
|
33
|
+
for (var names = Array.isArray(cns) ? cns : cns.split(" "), numNames = names.length, i = numNames - 1; i >= 0; i--) _loop(i);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
return final;
|
|
37
|
+
}
|
|
38
|
+
var pseudoInvert = {
|
|
39
|
+
hover: "hoverStyle",
|
|
40
|
+
focus: "focusStyle",
|
|
41
|
+
press: "pressStyle",
|
|
42
|
+
focusVisible: "focusVisibleStyle",
|
|
43
|
+
disabled: "disabledStyle"
|
|
44
|
+
};
|
|
45
|
+
export { concatClassName };
|
|
46
|
+
//# sourceMappingURL=concatClassName.native.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["concatClassName","_cn","args","arguments","usedPrefixes","final","len","length","propObjects","x","_loop","i2","name","names","splitIndex","indexOf","nextChar","isMediaQuery","styleKey","slice","lastIndexOf","mediaKey","uid","push","propName","some","po","propKey","pseudoInvert","res","cns","Array","isArray","split","numNames","i","hover","focus","press","focusVisible","disabled"],"sources":["../../src/concatClassName.ts"],"sourcesContent":[null],"mappings":"AAUO,SAASA,gBAAgBC,GAAA,EAAqD;EACnF,SAAMC,IAAO,GAAAC,SACP,EAAAC,YAAyB,GAAC,IAAAC,KAAA,OAAAC,GAAA,GAAAJ,IAAA,CAAAK,MAAA,EAAAC,WAAA,SAAAC,CAAA,GAAAH,GAAA,EAAAG,CAAA,OAAAA,CAAA;IAChC,IAAIC,KAAA,GAAQ,SAAAA,CAAAC,EAAA;QAEZ,IAAMC,IAAM,GAAAC,KAAK,CAAAF,EAAA;QACb,KAAAC,IAAA,IAAAA,IAAmB;QACvB,IAAAA,IAAS,CAAI,OAAK,GAAK,EACrB,OAAMP,KAAM,GAAMO,IAAA,SAAAP,KAAA;QAElB,IAAKS,UAAK,GAAAF,IAAA,CAAAG,OAAA;QACV,IAAKD,UAAM,GAAQ,GAEjB,OAAAT,KAAc,GAAAO,IAAA,SAAgBP,KAC9B,YAAY;QACZ,IAAAW,QAAA,GAAAJ,IAAA,CAAAE,UAAA;UAAAG,YAAA,GAAAD,QAAA;UAAAE,QAAA,GAAAN,IAAA,CAAAO,KAAA,IAAAP,IAAA,CAAAQ,WAAA;UAAAC,QAAA,GAAAJ,YAAA,GAAAL,IAAA,CAAAO,KAAA,CAAAL,UAAA,MAAAA,UAAA;UAAAQ,GAAA,GAAAD,QAAA,G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
|
|
1
|
+
export * from "@tamagui/simple-hash";
|
|
2
|
+
export * from "./clamp.mjs";
|
|
3
|
+
export * from "./composeEventHandlers.mjs";
|
|
4
|
+
export * from "./concatClassName.mjs";
|
|
5
|
+
export * from "./types.mjs";
|
|
6
|
+
export * from "./shouldRenderNativePlatform.mjs";
|
|
7
|
+
export * from "./validStyleProps.mjs";
|
|
8
|
+
export * from "./withStaticProperties.mjs";
|
|
9
|
+
//# sourceMappingURL=index.native.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sources":["../../src/index.ts"],"sourcesContent":[null],"mappings":"AAAA,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc","ignoreList":[]}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { currentPlatform } from "@tamagui/constants";
|
|
2
|
+
var ALL_PLATFORMS = ["web", "android", "ios"];
|
|
3
|
+
function shouldRenderNativePlatform(nativeProp) {
|
|
4
|
+
if (!nativeProp) return null;
|
|
5
|
+
var userRequestedPlatforms = resolvePlatformNames(nativeProp),
|
|
6
|
+
_iteratorNormalCompletion = !0,
|
|
7
|
+
_didIteratorError = !1,
|
|
8
|
+
_iteratorError = void 0;
|
|
9
|
+
try {
|
|
10
|
+
for (var _iterator = ALL_PLATFORMS[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0) {
|
|
11
|
+
var platform = _step.value;
|
|
12
|
+
if (platform === currentPlatform && userRequestedPlatforms.has(platform)) return platform;
|
|
13
|
+
}
|
|
14
|
+
} catch (err) {
|
|
15
|
+
_didIteratorError = !0, _iteratorError = err;
|
|
16
|
+
} finally {
|
|
17
|
+
try {
|
|
18
|
+
!_iteratorNormalCompletion && _iterator.return != null && _iterator.return();
|
|
19
|
+
} finally {
|
|
20
|
+
if (_didIteratorError) throw _iteratorError;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
return null;
|
|
24
|
+
}
|
|
25
|
+
function resolvePlatformNames(nativeProp) {
|
|
26
|
+
var platforms = nativeProp === !0 ?
|
|
27
|
+
// all native platforms
|
|
28
|
+
ALL_PLATFORMS : nativeProp === !1 ?
|
|
29
|
+
// no native platform
|
|
30
|
+
[] : Array.isArray(nativeProp) ? nativeProp : [nativeProp],
|
|
31
|
+
set = new Set(platforms);
|
|
32
|
+
return set.has("mobile") && (set.add("android"), set.add("ios"), set.delete("mobile")), set;
|
|
33
|
+
}
|
|
34
|
+
export { shouldRenderNativePlatform };
|
|
35
|
+
//# sourceMappingURL=shouldRenderNativePlatform.native.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["currentPlatform","ALL_PLATFORMS","shouldRenderNativePlatform","nativeProp","userRequestedPlatforms","resolvePlatformNames","_iteratorNormalCompletion","_didIteratorError","_iteratorError","_iterator","Symbol","iterator","_step","next","done","platform","value","has"],"sources":["../../src/shouldRenderNativePlatform.ts"],"sourcesContent":[null],"mappings":"AAAA,SAASA,eAAA,QAAuB;AAuBhC,IAAAC,aAAM,IAaC,OACL,SAAK,EACH,MAEF;AAEA,SAAAC,0BAAuBA,CAAAC,UAAA;EACrB,KAAAA,UAAI,EACF,WAAO;EAIX,IAAAC,sBAAO,GAAAC,oBAAA,CAAAF,UAAA;IAAAG,yBAAA;IAAAC,iBAAA;IAAAC,cAAA;EACT;IAEA,KAAS,IAAAC,SAAA,GAAAR,aAAqB,CAAAS,MAAyB,CAAAC,QAAA,KAAAC,KAAA,IAAAN,yBAAA,IAAAM,KAAA,GAAAH,SAAA,CAAAI,IAAA,IAAAC,IAAA,GAAAR,yBAAA;MACrD,IAAMS,QAAA,GACJH,KAAA,CAAAI,KAAA;MASF,IAAID,QAAQ,KAAAf,eAEN,IAAII,sBACK,CAAAa,GACb,CAAAF,QAAI,CAAO,EAGf,OAAAA,QAAA","ignoreList":[]}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
var StyleObjectProperty = 0,
|
|
2
|
+
StyleObjectValue = 1,
|
|
3
|
+
StyleObjectIdentifier = 2,
|
|
4
|
+
StyleObjectPseudo = 3,
|
|
5
|
+
StyleObjectRules = 4;
|
|
6
|
+
export { StyleObjectIdentifier, StyleObjectProperty, StyleObjectPseudo, StyleObjectRules, StyleObjectValue };
|
|
7
|
+
//# sourceMappingURL=types.native.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["StyleObjectProperty","StyleObjectValue","StyleObjectIdentifier","StyleObjectPseudo","StyleObjectRules"],"sources":["../../src/types.ts"],"sourcesContent":[null],"mappings":"AAQO,IAAAA,mBAAM;EAAsBC,gBACtB;EAAmBC,qBACnB;EAAwBC,iBACxB;EAAoBC,gBACpB","ignoreList":[]}
|
|
@@ -1,38 +1,4 @@
|
|
|
1
1
|
import { isAndroid } from "@tamagui/constants";
|
|
2
|
-
function _define_property(obj, key, value) {
|
|
3
|
-
return key in obj ? Object.defineProperty(obj, key, {
|
|
4
|
-
value,
|
|
5
|
-
enumerable: !0,
|
|
6
|
-
configurable: !0,
|
|
7
|
-
writable: !0
|
|
8
|
-
}) : obj[key] = value, obj;
|
|
9
|
-
}
|
|
10
|
-
function _object_spread(target) {
|
|
11
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
12
|
-
var source = arguments[i] != null ? arguments[i] : {}, ownKeys2 = Object.keys(source);
|
|
13
|
-
typeof Object.getOwnPropertySymbols == "function" && (ownKeys2 = ownKeys2.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
|
14
|
-
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
15
|
-
}))), ownKeys2.forEach(function(key) {
|
|
16
|
-
_define_property(target, key, source[key]);
|
|
17
|
-
});
|
|
18
|
-
}
|
|
19
|
-
return target;
|
|
20
|
-
}
|
|
21
|
-
function ownKeys(object, enumerableOnly) {
|
|
22
|
-
var keys = Object.keys(object);
|
|
23
|
-
if (Object.getOwnPropertySymbols) {
|
|
24
|
-
var symbols = Object.getOwnPropertySymbols(object);
|
|
25
|
-
enumerableOnly && (symbols = symbols.filter(function(sym) {
|
|
26
|
-
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
27
|
-
})), keys.push.apply(keys, symbols);
|
|
28
|
-
}
|
|
29
|
-
return keys;
|
|
30
|
-
}
|
|
31
|
-
function _object_spread_props(target, source) {
|
|
32
|
-
return source = source ?? {}, Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function(key) {
|
|
33
|
-
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
34
|
-
}), target;
|
|
35
|
-
}
|
|
36
2
|
var textColors = {
|
|
37
3
|
color: !0,
|
|
38
4
|
textDecorationColor: !0,
|
|
@@ -67,7 +33,7 @@ var textColors = {
|
|
|
67
33
|
zIndex: {
|
|
68
34
|
zIndex: !0
|
|
69
35
|
},
|
|
70
|
-
color:
|
|
36
|
+
color: {
|
|
71
37
|
backgroundColor: !0,
|
|
72
38
|
borderColor: !0,
|
|
73
39
|
borderBlockStartColor: !0,
|
|
@@ -82,8 +48,9 @@ var textColors = {
|
|
|
82
48
|
borderRightColor: !0,
|
|
83
49
|
borderEndColor: !0,
|
|
84
50
|
borderStartColor: !0,
|
|
85
|
-
shadowColor: !0
|
|
86
|
-
|
|
51
|
+
shadowColor: !0,
|
|
52
|
+
...textColors
|
|
53
|
+
}
|
|
87
54
|
}, stylePropsUnitless = {
|
|
88
55
|
WebkitLineClamp: !0,
|
|
89
56
|
animationIterationCount: !0,
|
|
@@ -136,106 +103,102 @@ var textColors = {
|
|
|
136
103
|
rotateY: !0,
|
|
137
104
|
rotateX: !0,
|
|
138
105
|
rotateZ: !0
|
|
139
|
-
}, stylePropsView =
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
tokenCategories.
|
|
228
|
-
tokenCategories.radius,
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
stylePropsUnitless,
|
|
233
|
-
// allow a few web only ones
|
|
234
|
-
!1,
|
|
235
|
-
isAndroid ? {
|
|
106
|
+
}, stylePropsView = {
|
|
107
|
+
backfaceVisibility: !0,
|
|
108
|
+
borderBottomEndRadius: !0,
|
|
109
|
+
borderBottomStartRadius: !0,
|
|
110
|
+
borderBottomWidth: !0,
|
|
111
|
+
borderLeftWidth: !0,
|
|
112
|
+
borderRightWidth: !0,
|
|
113
|
+
borderBlockWidth: !0,
|
|
114
|
+
borderBlockEndWidth: !0,
|
|
115
|
+
borderBlockStartWidth: !0,
|
|
116
|
+
borderInlineWidth: !0,
|
|
117
|
+
borderInlineEndWidth: !0,
|
|
118
|
+
borderInlineStartWidth: !0,
|
|
119
|
+
borderStyle: !0,
|
|
120
|
+
borderBlockStyle: !0,
|
|
121
|
+
borderBlockEndStyle: !0,
|
|
122
|
+
borderBlockStartStyle: !0,
|
|
123
|
+
borderInlineStyle: !0,
|
|
124
|
+
borderInlineEndStyle: !0,
|
|
125
|
+
borderInlineStartStyle: !0,
|
|
126
|
+
borderTopEndRadius: !0,
|
|
127
|
+
borderTopStartRadius: !0,
|
|
128
|
+
borderTopWidth: !0,
|
|
129
|
+
borderWidth: !0,
|
|
130
|
+
transform: !0,
|
|
131
|
+
transformOrigin: !0,
|
|
132
|
+
alignContent: !0,
|
|
133
|
+
alignItems: !0,
|
|
134
|
+
alignSelf: !0,
|
|
135
|
+
borderEndWidth: !0,
|
|
136
|
+
borderStartWidth: !0,
|
|
137
|
+
bottom: !0,
|
|
138
|
+
display: !0,
|
|
139
|
+
end: !0,
|
|
140
|
+
flexBasis: !0,
|
|
141
|
+
flexDirection: !0,
|
|
142
|
+
flexWrap: !0,
|
|
143
|
+
gap: !0,
|
|
144
|
+
columnGap: !0,
|
|
145
|
+
rowGap: !0,
|
|
146
|
+
justifyContent: !0,
|
|
147
|
+
left: !0,
|
|
148
|
+
margin: !0,
|
|
149
|
+
marginBlock: !0,
|
|
150
|
+
marginBlockEnd: !0,
|
|
151
|
+
marginBlockStart: !0,
|
|
152
|
+
marginInline: !0,
|
|
153
|
+
marginInlineStart: !0,
|
|
154
|
+
marginInlineEnd: !0,
|
|
155
|
+
marginBottom: !0,
|
|
156
|
+
marginEnd: !0,
|
|
157
|
+
marginHorizontal: !0,
|
|
158
|
+
marginLeft: !0,
|
|
159
|
+
marginRight: !0,
|
|
160
|
+
marginStart: !0,
|
|
161
|
+
marginTop: !0,
|
|
162
|
+
marginVertical: !0,
|
|
163
|
+
overflow: !0,
|
|
164
|
+
padding: !0,
|
|
165
|
+
paddingBottom: !0,
|
|
166
|
+
paddingInline: !0,
|
|
167
|
+
paddingBlock: !0,
|
|
168
|
+
paddingBlockStart: !0,
|
|
169
|
+
paddingInlineEnd: !0,
|
|
170
|
+
paddingInlineStart: !0,
|
|
171
|
+
paddingEnd: !0,
|
|
172
|
+
paddingHorizontal: !0,
|
|
173
|
+
paddingLeft: !0,
|
|
174
|
+
paddingRight: !0,
|
|
175
|
+
paddingStart: !0,
|
|
176
|
+
paddingTop: !0,
|
|
177
|
+
paddingVertical: !0,
|
|
178
|
+
position: !0,
|
|
179
|
+
right: !0,
|
|
180
|
+
start: !0,
|
|
181
|
+
top: !0,
|
|
182
|
+
inset: !0,
|
|
183
|
+
insetBlock: !0,
|
|
184
|
+
insetBlockEnd: !0,
|
|
185
|
+
insetBlockStart: !0,
|
|
186
|
+
insetInline: !0,
|
|
187
|
+
insetInlineEnd: !0,
|
|
188
|
+
insetInlineStart: !0,
|
|
189
|
+
direction: !0,
|
|
190
|
+
shadowOffset: !0,
|
|
191
|
+
shadowRadius: !0,
|
|
192
|
+
...tokenCategories.color,
|
|
193
|
+
...tokenCategories.radius,
|
|
194
|
+
...tokenCategories.size,
|
|
195
|
+
...tokenCategories.radius,
|
|
196
|
+
...stylePropsTransform,
|
|
197
|
+
...stylePropsUnitless,
|
|
198
|
+
...isAndroid ? {
|
|
236
199
|
elevationAndroid: !0
|
|
237
200
|
} : {}
|
|
238
|
-
|
|
201
|
+
}, stylePropsFont = {
|
|
239
202
|
fontFamily: !0,
|
|
240
203
|
fontSize: !0,
|
|
241
204
|
fontStyle: !0,
|
|
@@ -243,32 +206,31 @@ var textColors = {
|
|
|
243
206
|
letterSpacing: !0,
|
|
244
207
|
lineHeight: !0,
|
|
245
208
|
textTransform: !0
|
|
246
|
-
}, stylePropsTextOnly =
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
), validStyles = _object_spread({}, validPseudoKeys, stylePropsView);
|
|
209
|
+
}, stylePropsTextOnly = {
|
|
210
|
+
...stylePropsFont,
|
|
211
|
+
textAlign: !0,
|
|
212
|
+
textDecorationLine: !0,
|
|
213
|
+
textDecorationStyle: !0,
|
|
214
|
+
...textColors,
|
|
215
|
+
textShadowOffset: !0,
|
|
216
|
+
textShadowRadius: !0,
|
|
217
|
+
userSelect: !0,
|
|
218
|
+
selectable: !0,
|
|
219
|
+
verticalAlign: !0
|
|
220
|
+
}, stylePropsText = {
|
|
221
|
+
...stylePropsView,
|
|
222
|
+
...stylePropsTextOnly
|
|
223
|
+
}, stylePropsAll = stylePropsText, validPseudoKeys = {
|
|
224
|
+
enterStyle: !0,
|
|
225
|
+
exitStyle: !0,
|
|
226
|
+
hoverStyle: !0,
|
|
227
|
+
pressStyle: !0,
|
|
228
|
+
focusStyle: !0,
|
|
229
|
+
disabledStyle: !0
|
|
230
|
+
}, validStyles = {
|
|
231
|
+
...validPseudoKeys,
|
|
232
|
+
...stylePropsView
|
|
233
|
+
};
|
|
272
234
|
export {
|
|
273
235
|
stylePropsAll,
|
|
274
236
|
stylePropsFont,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/Users/n8/tamagui/code/core/helpers/src/validStyleProps.ts"],
|
|
4
|
-
"mappings": "AAAA,SAASA,iBAAiB
|
|
5
|
-
"names": ["isAndroid", "textColors", "color", "textDecorationColor", "textShadowColor", "tokenCategories", "radius", "borderRadius", "borderTopLeftRadius", "borderTopRightRadius", "borderBottomLeftRadius", "borderBottomRightRadius", "borderStartStartRadius", "borderStartEndRadius", "borderEndStartRadius", "borderEndEndRadius", "size", "width", "height", "minWidth", "minHeight", "maxWidth", "maxHeight", "blockSize", "minBlockSize", "maxBlockSize", "inlineSize", "minInlineSize", "maxInlineSize", "zIndex", "backgroundColor", "borderColor", "borderBlockStartColor", "borderBlockEndColor", "borderBlockColor", "borderBottomColor", "borderInlineColor", "borderInlineStartColor", "borderInlineEndColor", "borderTopColor", "borderLeftColor", "borderRightColor", "borderEndColor", "borderStartColor", "shadowColor", "
|
|
4
|
+
"mappings": "AAAA,SAASA,iBAAiB;AAI1B,IAAMC,aAAa;EACjBC,OAAO;EACPC,qBAAqB;EACrBC,iBAAiB;AACnB,GAIaC,kBAAkB;EAC7BC,QAAQ;IACNC,cAAc;IACdC,qBAAqB;IACrBC,sBAAsB;IACtBC,wBAAwB;IACxBC,yBAAyB;;IAGzBC,wBAAwB;IACxBC,sBAAsB;IACtBC,sBAAsB;IACtBC,oBAAoB;EACtB;EACAC,MAAM;IACJC,OAAO;IACPC,QAAQ;IACRC,UAAU;IACVC,WAAW;IACXC,UAAU;IACVC,WAAW;IACXC,WAAW;IACXC,cAAc;IACdC,cAAc;IACdC,YAAY;IACZC,eAAe;IACfC,eAAe;EACjB;EACAC,QAAQ;IACNA,QAAQ;EACV;EACA3B,OAAO;IACL4B,iBAAiB;IACjBC,aAAa;IACbC,uBAAuB;IACvBC,qBAAqB;IACrBC,kBAAkB;IAClBC,mBAAmB;IACnBC,mBAAmB;IACnBC,wBAAwB;IACxBC,sBAAsB;IACtBC,gBAAgB;IAChBC,iBAAiB;IACjBC,kBAAkB;IAClBC,gBAAgB;IAChBC,kBAAkB;IAClBC,aAAa;IACb,GAAG3C;EAKL;AACF,GAEa4C,qBAAqB;EAChCC,iBAAiB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B,GAEaC,cAAc;EACzB,GAAGP;EACH,GAAGzG;AACL;",
|
|
5
|
+
"names": ["isAndroid", "textColors", "color", "textDecorationColor", "textShadowColor", "tokenCategories", "radius", "borderRadius", "borderTopLeftRadius", "borderTopRightRadius", "borderBottomLeftRadius", "borderBottomRightRadius", "borderStartStartRadius", "borderStartEndRadius", "borderEndStartRadius", "borderEndEndRadius", "size", "width", "height", "minWidth", "minHeight", "maxWidth", "maxHeight", "blockSize", "minBlockSize", "maxBlockSize", "inlineSize", "minInlineSize", "maxInlineSize", "zIndex", "backgroundColor", "borderColor", "borderBlockStartColor", "borderBlockEndColor", "borderBlockColor", "borderBottomColor", "borderInlineColor", "borderInlineStartColor", "borderInlineEndColor", "borderTopColor", "borderLeftColor", "borderRightColor", "borderEndColor", "borderStartColor", "shadowColor", "stylePropsUnitless", "WebkitLineClamp", "animationIterationCount", "aspectRatio", "borderImageOutset", "borderImageSlice", "borderImageWidth", "columnCount", "flex", "flexGrow", "flexOrder", "flexPositive", "flexShrink", "flexNegative", "fontWeight", "gridRow", "gridRowEnd", "gridRowGap", "gridRowStart", "gridColumn", "gridColumnEnd", "gridColumnGap", "gridColumnStart", "gridTemplateColumns", "gridTemplateAreas", "lineClamp", "opacity", "order", "orphans", "tabSize", "widows", "zoom", "scale", "scaleX", "scaleY", "scaleZ", "shadowOpacity", "stylePropsTransform", "x", "y", "perspective", "skewX", "skewY", "matrix", "rotate", "rotateY", "rotateX", "rotateZ", "stylePropsView", "backfaceVisibility", "borderBottomEndRadius", "borderBottomStartRadius", "borderBottomWidth", "borderLeftWidth", "borderRightWidth", "borderBlockWidth", "borderBlockEndWidth", "borderBlockStartWidth", "borderInlineWidth", "borderInlineEndWidth", "borderInlineStartWidth", "borderStyle", "borderBlockStyle", "borderBlockEndStyle", "borderBlockStartStyle", "borderInlineStyle", "borderInlineEndStyle", "borderInlineStartStyle", "borderTopEndRadius", "borderTopStartRadius", "borderTopWidth", "borderWidth", "transform", "transformOrigin", "alignContent", "alignItems", "alignSelf", "borderEndWidth", "borderStartWidth", "bottom", "display", "end", "flexBasis", "flexDirection", "flexWrap", "gap", "columnGap", "rowGap", "justifyContent", "left", "margin", "marginBlock", "marginBlockEnd", "marginBlockStart", "marginInline", "marginInlineStart", "marginInlineEnd", "marginBottom", "marginEnd", "marginHorizontal", "marginLeft", "marginRight", "marginStart", "marginTop", "marginVertical", "overflow", "padding", "paddingBottom", "paddingInline", "paddingBlock", "paddingBlockStart", "paddingInlineEnd", "paddingInlineStart", "paddingEnd", "paddingHorizontal", "paddingLeft", "paddingRight", "paddingStart", "paddingTop", "paddingVertical", "position", "right", "start", "top", "inset", "insetBlock", "insetBlockEnd", "insetBlockStart", "insetInline", "insetInlineEnd", "insetInlineStart", "direction", "shadowOffset", "shadowRadius", "elevationAndroid", "stylePropsFont", "fontFamily", "fontSize", "fontStyle", "letterSpacing", "lineHeight", "textTransform", "stylePropsTextOnly", "textAlign", "textDecorationLine", "textDecorationStyle", "textShadowOffset", "textShadowRadius", "userSelect", "selectable", "verticalAlign", "stylePropsText", "stylePropsAll", "validPseudoKeys", "enterStyle", "exitStyle", "hoverStyle", "pressStyle", "focusStyle", "disabledStyle", "validStyles"]
|
|
6
6
|
}
|