@tamagui/helpers 1.113.1 → 1.113.2
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/esm/clamp.native.js +4 -2
- package/dist/esm/clamp.native.js.map +6 -1
- package/dist/esm/composeEventHandlers.native.js +9 -9
- package/dist/esm/composeEventHandlers.native.js.map +6 -1
- package/dist/esm/concatClassName.native.js +28 -27
- package/dist/esm/concatClassName.native.js.map +6 -1
- package/dist/esm/index.native.js +8 -8
- package/dist/esm/index.native.js.map +6 -1
- package/dist/esm/shouldRenderNativePlatform.native.js +23 -14
- package/dist/esm/shouldRenderNativePlatform.native.js.map +6 -1
- package/dist/esm/types.native.js +9 -7
- package/dist/esm/types.native.js.map +6 -1
- package/dist/esm/validStyleProps.native.js +241 -240
- package/dist/esm/validStyleProps.native.js.map +6 -1
- package/dist/esm/withStaticProperties.native.js +22 -21
- package/dist/esm/withStaticProperties.native.js.map +6 -1
- package/package.json +4 -4
package/dist/esm/clamp.native.js
CHANGED
|
@@ -1 +1,6 @@
|
|
|
1
|
-
{
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/Users/n8/tamagui/code/core/helpers/src/clamp.ts"],
|
|
4
|
+
"mappings": "AAAO,SAASA,MAAMC,OAAe,OAA4B;MAA5B,CAACC,KAAKC,GAAAA,IAAN;AACnC,SAAOC,KAAKF,IAAIC,KAAKC,KAAKD,IAAID,KAAKD,KAAAA,CAAAA;AACrC;",
|
|
5
|
+
"names": ["clamp", "value", "min", "max", "Math"]
|
|
6
|
+
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
function composeEventHandlers(og, next) {
|
|
2
|
-
var {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
// @ts-ignore
|
|
8
|
-
"defaultPrevented" in event && !event.defaultPrevented) return next?.(event);
|
|
2
|
+
var { checkDefaultPrevented = !0 } = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
3
|
+
return !og || !next ? next || og || void 0 : function(event) {
|
|
4
|
+
if (og?.(event), !event || !(checkDefaultPrevented && "defaultPrevented" in event) || // @ts-ignore
|
|
5
|
+
"defaultPrevented" in event && !event.defaultPrevented)
|
|
6
|
+
return next?.(event);
|
|
9
7
|
};
|
|
10
8
|
}
|
|
11
|
-
export {
|
|
12
|
-
|
|
9
|
+
export {
|
|
10
|
+
composeEventHandlers
|
|
11
|
+
};
|
|
12
|
+
//# sourceMappingURL=composeEventHandlers.js.map
|
|
@@ -1 +1,6 @@
|
|
|
1
|
-
{
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/Users/n8/tamagui/code/core/helpers/src/composeEventHandlers.ts"],
|
|
4
|
+
"mappings": "AAIO,SAASA,qBACdC,IACAC,MAA6B;MAC7B,EAAEC,wBAAwB,GAAI,IAA9B,UAAA,SAAA,KAAA,UAAA,CAAA,MAAA,SAAA,UAAA,CAAA,IAAmC,CAAC;AAEpC,SAAI,CAACF,MAAM,CAACC,OACHA,QAAQD,MAAMG,SAEhB,SAACC,OAAAA;AAEN,QADAJ,KAAKI,KAAAA,GAEH,CAACA,SACD,EAAEF,yBAAyB,sBAAsBE;IAEhD,sBAAsBA,SAAS,CAACA,MAAMC;AAEvC,aAAOJ,OAAOG,KAAAA;EAElB;AACF;",
|
|
5
|
+
"names": ["composeEventHandlers", "og", "next", "checkDefaultPrevented", "undefined", "event", "defaultPrevented"]
|
|
6
|
+
}
|
|
@@ -1,30 +1,29 @@
|
|
|
1
1
|
function concatClassName(_cn) {
|
|
2
2
|
for (var args = arguments, usedPrefixes = [], final = "", len = args.length, propObjects = null, x = len; x >= 0; x--) {
|
|
3
|
-
var _loop = function
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
if (
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
cns = args[x];
|
|
3
|
+
var _loop = function(i2) {
|
|
4
|
+
var name = names[i2];
|
|
5
|
+
if (!name || name === " ") return "continue";
|
|
6
|
+
if (name[0] !== "_")
|
|
7
|
+
return final = name + " " + final, "continue";
|
|
8
|
+
var splitIndex = name.indexOf("-");
|
|
9
|
+
if (splitIndex < 1)
|
|
10
|
+
return final = name + " " + final, "continue";
|
|
11
|
+
var nextChar = name[splitIndex + 1], isMediaQuery = nextChar === "_", styleKey = name.slice(1, name.lastIndexOf("-")), mediaKey = isMediaQuery ? name.slice(splitIndex + 2, splitIndex + 7) : null, uid = mediaKey ? styleKey + mediaKey : styleKey;
|
|
12
|
+
if (usedPrefixes.indexOf(uid) > -1)
|
|
13
|
+
return "continue";
|
|
14
|
+
usedPrefixes.push(uid);
|
|
15
|
+
var propName = styleKey;
|
|
16
|
+
if (propName && propObjects && propObjects.some(function(po) {
|
|
17
|
+
if (mediaKey) {
|
|
18
|
+
var propKey = pseudoInvert[mediaKey];
|
|
19
|
+
return po && po[propKey] && propName in po[propKey] && po[propKey] !== null;
|
|
20
|
+
}
|
|
21
|
+
var res = po && propName in po && po[propName] !== null;
|
|
22
|
+
return res;
|
|
23
|
+
}))
|
|
24
|
+
return "continue";
|
|
25
|
+
final = name + " " + final;
|
|
26
|
+
}, cns = args[x];
|
|
28
27
|
if (cns) {
|
|
29
28
|
if (!Array.isArray(cns) && typeof cns != "string") {
|
|
30
29
|
propObjects = propObjects || [], propObjects.push(cns);
|
|
@@ -42,5 +41,7 @@ var pseudoInvert = {
|
|
|
42
41
|
focusVisible: "focusVisibleStyle",
|
|
43
42
|
disabled: "disabledStyle"
|
|
44
43
|
};
|
|
45
|
-
export {
|
|
46
|
-
|
|
44
|
+
export {
|
|
45
|
+
concatClassName
|
|
46
|
+
};
|
|
47
|
+
//# sourceMappingURL=concatClassName.js.map
|
|
@@ -1 +1,6 @@
|
|
|
1
|
-
{
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/Users/n8/tamagui/code/core/helpers/src/concatClassName.ts"],
|
|
4
|
+
"mappings": "AAUO,SAASA,gBAAgBC,KAA2C;AAOzE,WANMC,OAAOC,WACPC,eAAyB,CAAA,GAC3BC,QAAQ,IAENC,MAAMJ,KAAKK,QACbC,cAAmB,MACdC,IAAIH,KAAKG,KAAK,GAAGA,KAAK;;AAc3B,UAAMC,OAAOC,MAAMC,EAAAA;AAEnB,UAAI,CAACF,QAAQA,SAAS,IAAK,QAAA;AAC3B,UAAIA,KAAK,CAAA,MAAO;AAEdL,uBAAQK,OAAO,MAAML,OACrB;AAGF,UAAMQ,aAAaH,KAAKI,QAAQ,GAAA;AAChC,UAAID,aAAa;AACfR,uBAAQK,OAAO,MAAML,OAErB;AAGF,UAAMU,WAAWL,KAAKG,aAAa,CAAA,GAG7BG,eAAeD,aAAa,KAK5BE,WAAWP,KAAKQ,MAAM,GAAGR,KAAKS,YAAY,GAAA,CAAA,GAE1CC,WAAWJ,eAAeN,KAAKQ,MAAML,aAAa,GAAGA,aAAa,CAAA,IAAK,MACvEQ,MAAMD,WAAWH,WAAWG,WAAWH;AAG7C,UAAIb,aAAaU,QAAQO,GAAAA,IAAO;AAE9B,eAAA;AAEFjB,mBAAakB,KAAKD,GAAAA;AAGlB,UAAME,WAAWN;AACjB,UAAIM,YAAYf,eAEZA,YAAYgB,KAAK,SAACC,IAAAA;AAChB,YAAIL,UAAU;AACZ,cAAMM,UAAUC,aAAaP,QAAAA;AAC7B,iBAAOK,MAAMA,GAAGC,OAAAA,KAAYH,YAAYE,GAAGC,OAAAA,KAAYD,GAAGC,OAAAA,MAAa;QACzE;AACA,YAAME,MAAMH,MAAMF,YAAYE,MAAMA,GAAGF,QAAAA,MAAc;AACrD,eAAOK;MACT,CAAA;AAGA,eAAA;AAIJvB,cAAQK,OAAO,MAAML;IACvB,GApEMwB,MAAM3B,KAAKO,CAAAA;AAEjB,QAAKoB,KACL;UAAI,CAACC,MAAMC,QAAQF,GAAAA,KAAQ,OAAOA,OAAQ,UAAU;AAElDrB,sBAAcA,eAAe,CAAA,GAC7BA,YAAYc,KAAKO,GAAAA;AACjB;MACF;AAIA,eAFMlB,QAAQmB,MAAMC,QAAQF,GAAAA,IAAOA,MAAMA,IAAIG,MAAM,GAAA,GAC7CC,WAAWtB,MAAMJ,QACdK,IAAIqB,WAAW,GAAGrB,KAAK,GAAGA,IAAAA,OAAAA,CAAAA;;EAyDrC;AAEA,SAAOP;AACT;AAEA,IAAMsB,eAAe;EACnBO,OAAO;EACPC,OAAO;EACPC,OAAO;EACPC,cAAc;EACdC,UAAU;AACZ;",
|
|
5
|
+
"names": ["concatClassName", "_cn", "args", "arguments", "usedPrefixes", "final", "len", "length", "propObjects", "x", "name", "names", "i", "splitIndex", "indexOf", "nextChar", "isMediaQuery", "styleKey", "slice", "lastIndexOf", "mediaKey", "uid", "push", "propName", "some", "po", "propKey", "pseudoInvert", "res", "cns", "Array", "isArray", "split", "numNames", "hover", "focus", "press", "focusVisible", "disabled"]
|
|
6
|
+
}
|
package/dist/esm/index.native.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
export * from "@tamagui/simple-hash";
|
|
2
|
-
export * from "./clamp
|
|
3
|
-
export * from "./composeEventHandlers
|
|
4
|
-
export * from "./concatClassName
|
|
5
|
-
export * from "./types
|
|
6
|
-
export * from "./shouldRenderNativePlatform
|
|
7
|
-
export * from "./validStyleProps
|
|
8
|
-
export * from "./withStaticProperties
|
|
9
|
-
//# sourceMappingURL=index.
|
|
2
|
+
export * from "./clamp";
|
|
3
|
+
export * from "./composeEventHandlers";
|
|
4
|
+
export * from "./concatClassName";
|
|
5
|
+
export * from "./types";
|
|
6
|
+
export * from "./shouldRenderNativePlatform";
|
|
7
|
+
export * from "./validStyleProps";
|
|
8
|
+
export * from "./withStaticProperties";
|
|
9
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1,6 @@
|
|
|
1
|
-
{
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/Users/n8/tamagui/code/core/helpers/src/index.ts"],
|
|
4
|
+
"mappings": "AAAA,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;",
|
|
5
|
+
"names": []
|
|
6
|
+
}
|
|
@@ -1,15 +1,18 @@
|
|
|
1
1
|
import { currentPlatform } from "@tamagui/constants";
|
|
2
|
-
var ALL_PLATFORMS = [
|
|
2
|
+
var ALL_PLATFORMS = [
|
|
3
|
+
"web",
|
|
4
|
+
"android",
|
|
5
|
+
"ios"
|
|
6
|
+
];
|
|
3
7
|
function shouldRenderNativePlatform(nativeProp) {
|
|
4
|
-
if (!nativeProp)
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
_didIteratorError = !1,
|
|
8
|
-
_iteratorError = void 0;
|
|
8
|
+
if (!nativeProp)
|
|
9
|
+
return null;
|
|
10
|
+
var userRequestedPlatforms = resolvePlatformNames(nativeProp), _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0;
|
|
9
11
|
try {
|
|
10
12
|
for (var _iterator = ALL_PLATFORMS[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0) {
|
|
11
13
|
var platform = _step.value;
|
|
12
|
-
if (platform === currentPlatform && userRequestedPlatforms.has(platform))
|
|
14
|
+
if (platform === currentPlatform && userRequestedPlatforms.has(platform))
|
|
15
|
+
return platform;
|
|
13
16
|
}
|
|
14
17
|
} catch (err) {
|
|
15
18
|
_didIteratorError = !0, _iteratorError = err;
|
|
@@ -17,19 +20,25 @@ function shouldRenderNativePlatform(nativeProp) {
|
|
|
17
20
|
try {
|
|
18
21
|
!_iteratorNormalCompletion && _iterator.return != null && _iterator.return();
|
|
19
22
|
} finally {
|
|
20
|
-
if (_didIteratorError)
|
|
23
|
+
if (_didIteratorError)
|
|
24
|
+
throw _iteratorError;
|
|
21
25
|
}
|
|
22
26
|
}
|
|
23
27
|
return null;
|
|
24
28
|
}
|
|
25
29
|
function resolvePlatformNames(nativeProp) {
|
|
26
|
-
var platforms = nativeProp === !0 ?
|
|
30
|
+
var platforms = nativeProp === !0 ? (
|
|
27
31
|
// all native platforms
|
|
28
|
-
ALL_PLATFORMS
|
|
32
|
+
ALL_PLATFORMS
|
|
33
|
+
) : nativeProp === !1 ? (
|
|
29
34
|
// no native platform
|
|
30
|
-
[]
|
|
31
|
-
|
|
35
|
+
[]
|
|
36
|
+
) : Array.isArray(nativeProp) ? nativeProp : [
|
|
37
|
+
nativeProp
|
|
38
|
+
], set = new Set(platforms);
|
|
32
39
|
return set.has("mobile") && (set.add("android"), set.add("ios"), set.delete("mobile")), set;
|
|
33
40
|
}
|
|
34
|
-
export {
|
|
35
|
-
|
|
41
|
+
export {
|
|
42
|
+
shouldRenderNativePlatform
|
|
43
|
+
};
|
|
44
|
+
//# sourceMappingURL=shouldRenderNativePlatform.js.map
|
|
@@ -1 +1,6 @@
|
|
|
1
|
-
{
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/Users/n8/tamagui/code/core/helpers/src/shouldRenderNativePlatform.ts"],
|
|
4
|
+
"mappings": "AAAA,SAASA,uBAAuB;AAuBhC,IAAMC,gBAA0C;EAAC;EAAO;EAAW;;AAa5D,SAASC,2BAA2BC,YAAwB;AACjE,MAAI,CAACA;AACH,WAAO;AAET,MAAMC,yBAAyBC,qBAAqBF,UAAAA,GAE/C,4BAAA,IAAA,oBAAA,IAAA,iBAAA;;AAAL,aAAK,YAAkBF,cAAAA,OAAAA,QAAAA,EAAAA,GAAlB,OAAA,EAAA,6BAAA,QAAA,UAAA,KAAA,GAAA,OAAA,4BAAA,IAAiC;AAAjC,UAAMK,WAAN,MAAA;AACH,UAAIA,aAAaN,mBAAmBI,uBAAuBG,IAAID,QAAAA;AAC7D,eAAOA;IAEX;;AAJK,wBAAA,IAAA,iBAAA;;;OAAA,6BAAA,UAAA,UAAA,QAAA,UAAA,OAAA;;UAAA;cAAA;;;AAML,SAAO;AACT;AAEA,SAASD,qBAAqBF,YAAuB;AACnD,MAAMK,YACJL,eAAe;;IACXF;MACAE,eAAe;;IACb,CAAA;MACAM,MAAMC,QAAQP,UAAAA,IACZA,aACA;IAACA;KACLQ,MAAM,IAAIC,IAAIJ,SAAAA;AAEpB,SAAIG,IAAIJ,IAAI,QAAA,MAEVI,IAAIE,IAAI,SAAA,GACRF,IAAIE,IAAI,KAAA,GACRF,IAAIG,OAAO,QAAA,IAENH;AACT;",
|
|
5
|
+
"names": ["currentPlatform", "ALL_PLATFORMS", "shouldRenderNativePlatform", "nativeProp", "userRequestedPlatforms", "resolvePlatformNames", "platform", "has", "platforms", "Array", "isArray", "set", "Set", "add", "delete"]
|
|
6
|
+
}
|
package/dist/esm/types.native.js
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
var StyleObjectProperty = 0,
|
|
2
|
-
|
|
3
|
-
StyleObjectIdentifier
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
var StyleObjectProperty = 0, StyleObjectValue = 1, StyleObjectIdentifier = 2, StyleObjectPseudo = 3, StyleObjectRules = 4;
|
|
2
|
+
export {
|
|
3
|
+
StyleObjectIdentifier,
|
|
4
|
+
StyleObjectProperty,
|
|
5
|
+
StyleObjectPseudo,
|
|
6
|
+
StyleObjectRules,
|
|
7
|
+
StyleObjectValue
|
|
8
|
+
};
|
|
9
|
+
//# sourceMappingURL=types.js.map
|
|
@@ -1 +1,6 @@
|
|
|
1
|
-
{
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/Users/n8/tamagui/code/core/helpers/src/types.ts"],
|
|
4
|
+
"mappings": "AAQO,IAAMA,sBAAsB,GACtBC,mBAAmB,GACnBC,wBAAwB,GACxBC,oBAAoB,GACpBC,mBAAmB;",
|
|
5
|
+
"names": ["StyleObjectProperty", "StyleObjectValue", "StyleObjectIdentifier", "StyleObjectPseudo", "StyleObjectRules"]
|
|
6
|
+
}
|
|
@@ -1,245 +1,246 @@
|
|
|
1
1
|
import { isAndroid } from "@tamagui/constants";
|
|
2
2
|
var textColors = {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
color: !0,
|
|
4
|
+
textDecorationColor: !0,
|
|
5
|
+
textShadowColor: !0
|
|
6
|
+
}, tokenCategories = {
|
|
7
|
+
radius: {
|
|
8
|
+
borderRadius: !0,
|
|
9
|
+
borderTopLeftRadius: !0,
|
|
10
|
+
borderTopRightRadius: !0,
|
|
11
|
+
borderBottomLeftRadius: !0,
|
|
12
|
+
borderBottomRightRadius: !0,
|
|
13
|
+
// logical
|
|
14
|
+
borderStartStartRadius: !0,
|
|
15
|
+
borderStartEndRadius: !0,
|
|
16
|
+
borderEndStartRadius: !0,
|
|
17
|
+
borderEndEndRadius: !0
|
|
6
18
|
},
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
size: {
|
|
21
|
-
width: !0,
|
|
22
|
-
height: !0,
|
|
23
|
-
minWidth: !0,
|
|
24
|
-
minHeight: !0,
|
|
25
|
-
maxWidth: !0,
|
|
26
|
-
maxHeight: !0,
|
|
27
|
-
blockSize: !0,
|
|
28
|
-
minBlockSize: !0,
|
|
29
|
-
maxBlockSize: !0,
|
|
30
|
-
inlineSize: !0,
|
|
31
|
-
minInlineSize: !0,
|
|
32
|
-
maxInlineSize: !0
|
|
33
|
-
},
|
|
34
|
-
zIndex: {
|
|
35
|
-
zIndex: !0
|
|
36
|
-
},
|
|
37
|
-
color: {
|
|
38
|
-
backgroundColor: !0,
|
|
39
|
-
borderColor: !0,
|
|
40
|
-
borderBlockStartColor: !0,
|
|
41
|
-
borderBlockEndColor: !0,
|
|
42
|
-
borderBlockColor: !0,
|
|
43
|
-
borderBottomColor: !0,
|
|
44
|
-
borderInlineColor: !0,
|
|
45
|
-
borderInlineStartColor: !0,
|
|
46
|
-
borderInlineEndColor: !0,
|
|
47
|
-
borderTopColor: !0,
|
|
48
|
-
borderLeftColor: !0,
|
|
49
|
-
borderRightColor: !0,
|
|
50
|
-
borderEndColor: !0,
|
|
51
|
-
borderStartColor: !0,
|
|
52
|
-
shadowColor: !0,
|
|
53
|
-
...textColors
|
|
54
|
-
}
|
|
19
|
+
size: {
|
|
20
|
+
width: !0,
|
|
21
|
+
height: !0,
|
|
22
|
+
minWidth: !0,
|
|
23
|
+
minHeight: !0,
|
|
24
|
+
maxWidth: !0,
|
|
25
|
+
maxHeight: !0,
|
|
26
|
+
blockSize: !0,
|
|
27
|
+
minBlockSize: !0,
|
|
28
|
+
maxBlockSize: !0,
|
|
29
|
+
inlineSize: !0,
|
|
30
|
+
minInlineSize: !0,
|
|
31
|
+
maxInlineSize: !0
|
|
55
32
|
},
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
animationIterationCount: !0,
|
|
59
|
-
aspectRatio: !0,
|
|
60
|
-
borderImageOutset: !0,
|
|
61
|
-
borderImageSlice: !0,
|
|
62
|
-
borderImageWidth: !0,
|
|
63
|
-
columnCount: !0,
|
|
64
|
-
flex: !0,
|
|
65
|
-
flexGrow: !0,
|
|
66
|
-
flexOrder: !0,
|
|
67
|
-
flexPositive: !0,
|
|
68
|
-
flexShrink: !0,
|
|
69
|
-
flexNegative: !0,
|
|
70
|
-
fontWeight: !0,
|
|
71
|
-
gridRow: !0,
|
|
72
|
-
gridRowEnd: !0,
|
|
73
|
-
gridRowGap: !0,
|
|
74
|
-
gridRowStart: !0,
|
|
75
|
-
gridColumn: !0,
|
|
76
|
-
gridColumnEnd: !0,
|
|
77
|
-
gridColumnGap: !0,
|
|
78
|
-
gridColumnStart: !0,
|
|
79
|
-
gridTemplateColumns: !0,
|
|
80
|
-
gridTemplateAreas: !0,
|
|
81
|
-
lineClamp: !0,
|
|
82
|
-
opacity: !0,
|
|
83
|
-
order: !0,
|
|
84
|
-
orphans: !0,
|
|
85
|
-
tabSize: !0,
|
|
86
|
-
widows: !0,
|
|
87
|
-
zIndex: !0,
|
|
88
|
-
zoom: !0,
|
|
89
|
-
scale: !0,
|
|
90
|
-
scaleX: !0,
|
|
91
|
-
scaleY: !0,
|
|
92
|
-
scaleZ: !0,
|
|
93
|
-
shadowOpacity: !0
|
|
33
|
+
zIndex: {
|
|
34
|
+
zIndex: !0
|
|
94
35
|
},
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
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
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
36
|
+
color: {
|
|
37
|
+
backgroundColor: !0,
|
|
38
|
+
borderColor: !0,
|
|
39
|
+
borderBlockStartColor: !0,
|
|
40
|
+
borderBlockEndColor: !0,
|
|
41
|
+
borderBlockColor: !0,
|
|
42
|
+
borderBottomColor: !0,
|
|
43
|
+
borderInlineColor: !0,
|
|
44
|
+
borderInlineStartColor: !0,
|
|
45
|
+
borderInlineEndColor: !0,
|
|
46
|
+
borderTopColor: !0,
|
|
47
|
+
borderLeftColor: !0,
|
|
48
|
+
borderRightColor: !0,
|
|
49
|
+
borderEndColor: !0,
|
|
50
|
+
borderStartColor: !0,
|
|
51
|
+
shadowColor: !0,
|
|
52
|
+
...textColors
|
|
53
|
+
}
|
|
54
|
+
}, stylePropsUnitless = {
|
|
55
|
+
WebkitLineClamp: !0,
|
|
56
|
+
animationIterationCount: !0,
|
|
57
|
+
aspectRatio: !0,
|
|
58
|
+
borderImageOutset: !0,
|
|
59
|
+
borderImageSlice: !0,
|
|
60
|
+
borderImageWidth: !0,
|
|
61
|
+
columnCount: !0,
|
|
62
|
+
flex: !0,
|
|
63
|
+
flexGrow: !0,
|
|
64
|
+
flexOrder: !0,
|
|
65
|
+
flexPositive: !0,
|
|
66
|
+
flexShrink: !0,
|
|
67
|
+
flexNegative: !0,
|
|
68
|
+
fontWeight: !0,
|
|
69
|
+
gridRow: !0,
|
|
70
|
+
gridRowEnd: !0,
|
|
71
|
+
gridRowGap: !0,
|
|
72
|
+
gridRowStart: !0,
|
|
73
|
+
gridColumn: !0,
|
|
74
|
+
gridColumnEnd: !0,
|
|
75
|
+
gridColumnGap: !0,
|
|
76
|
+
gridColumnStart: !0,
|
|
77
|
+
gridTemplateColumns: !0,
|
|
78
|
+
gridTemplateAreas: !0,
|
|
79
|
+
lineClamp: !0,
|
|
80
|
+
opacity: !0,
|
|
81
|
+
order: !0,
|
|
82
|
+
orphans: !0,
|
|
83
|
+
tabSize: !0,
|
|
84
|
+
widows: !0,
|
|
85
|
+
zIndex: !0,
|
|
86
|
+
zoom: !0,
|
|
87
|
+
scale: !0,
|
|
88
|
+
scaleX: !0,
|
|
89
|
+
scaleY: !0,
|
|
90
|
+
scaleZ: !0,
|
|
91
|
+
shadowOpacity: !0
|
|
92
|
+
}, stylePropsTransform = {
|
|
93
|
+
x: !0,
|
|
94
|
+
y: !0,
|
|
95
|
+
scale: !0,
|
|
96
|
+
perspective: !0,
|
|
97
|
+
scaleX: !0,
|
|
98
|
+
scaleY: !0,
|
|
99
|
+
skewX: !0,
|
|
100
|
+
skewY: !0,
|
|
101
|
+
matrix: !0,
|
|
102
|
+
rotate: !0,
|
|
103
|
+
rotateY: !0,
|
|
104
|
+
rotateX: !0,
|
|
105
|
+
rotateZ: !0
|
|
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 ? {
|
|
199
|
+
elevationAndroid: !0
|
|
200
|
+
} : {}
|
|
201
|
+
}, stylePropsFont = {
|
|
202
|
+
fontFamily: !0,
|
|
203
|
+
fontSize: !0,
|
|
204
|
+
fontStyle: !0,
|
|
205
|
+
fontWeight: !0,
|
|
206
|
+
letterSpacing: !0,
|
|
207
|
+
lineHeight: !0,
|
|
208
|
+
textTransform: !0
|
|
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
|
+
};
|
|
234
|
+
export {
|
|
235
|
+
stylePropsAll,
|
|
236
|
+
stylePropsFont,
|
|
237
|
+
stylePropsText,
|
|
238
|
+
stylePropsTextOnly,
|
|
239
|
+
stylePropsTransform,
|
|
240
|
+
stylePropsUnitless,
|
|
241
|
+
stylePropsView,
|
|
242
|
+
tokenCategories,
|
|
243
|
+
validPseudoKeys,
|
|
244
|
+
validStyles
|
|
245
|
+
};
|
|
246
|
+
//# sourceMappingURL=validStyleProps.js.map
|
|
@@ -1 +1,6 @@
|
|
|
1
|
-
{
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/Users/n8/tamagui/code/core/helpers/src/validStyleProps.ts"],
|
|
4
|
+
"mappings": "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",
|
|
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
|
+
}
|
|
@@ -1,24 +1,25 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
var Decorated = Symbol(),
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
ref
|
|
10
|
-
});
|
|
2
|
+
var Decorated = Symbol(), withStaticProperties = function(component, staticProps) {
|
|
3
|
+
var next = function() {
|
|
4
|
+
if (component[Decorated]) {
|
|
5
|
+
var _ = /* @__PURE__ */ React.forwardRef(function(props, ref) {
|
|
6
|
+
return /* @__PURE__ */ React.createElement(component, {
|
|
7
|
+
...props,
|
|
8
|
+
ref
|
|
11
9
|
});
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
}
|
|
10
|
+
});
|
|
11
|
+
for (var key in component) {
|
|
12
|
+
var v = component[key];
|
|
13
|
+
_[key] = v && typeof v == "object" ? {
|
|
14
|
+
...v
|
|
15
|
+
} : v;
|
|
18
16
|
}
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
17
|
+
}
|
|
18
|
+
return component;
|
|
19
|
+
}();
|
|
20
|
+
return Object.assign(next, staticProps), next[Decorated] = !0, next;
|
|
21
|
+
};
|
|
22
|
+
export {
|
|
23
|
+
withStaticProperties
|
|
24
|
+
};
|
|
25
|
+
//# sourceMappingURL=withStaticProperties.js.map
|
|
@@ -1 +1,6 @@
|
|
|
1
|
-
{
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/Users/n8/tamagui/code/core/helpers/src/withStaticProperties.tsx"],
|
|
4
|
+
"mappings": "AAAA,OAAOA,WAAW;AAElB,IAAMC,YAAYC,OAAAA,GAILC,uBAAuB,SAClCC,WACAC,aAAAA;AAGA,MAAMC,OAAQ,WAAA;AACZ,QAAIF,UAAUH,SAAAA,GAAY;AACxB,UAAMM,IAAIP,sBAAMQ,WAAW,SAACC,OAAOC,KAAAA;eACjCV,sBAAMW,cAAcP,WAAkB;UAAE,GAAGK;UAAOC;QAAI,CAAA;;AAGxD,eAAWE,OAAOR,WAAW;AAC3B,YAAMS,IAAIT,UAAUQ,GAAAA;AAEpBL,UAAEK,GAAAA,IAAOC,KAAK,OAAOA,KAAM,WAAW;UAAE,GAAGA;QAAE,IAAIA;MACnD;IACF;AACA,WAAOT;EACT,EAAA;AAGAU,gBAAOC,OAAOT,MAAMD,WAAAA,GACpBC,KAAKL,SAAAA,IAAa,IAEXK;AACT;",
|
|
5
|
+
"names": ["React", "Decorated", "Symbol", "withStaticProperties", "component", "staticProps", "next", "_", "forwardRef", "props", "ref", "createElement", "key", "v", "Object", "assign"]
|
|
6
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tamagui/helpers",
|
|
3
|
-
"version": "1.113.
|
|
3
|
+
"version": "1.113.2",
|
|
4
4
|
"source": "src/index.ts",
|
|
5
5
|
"types": "./types/index.d.ts",
|
|
6
6
|
"main": "dist/cjs",
|
|
@@ -19,11 +19,11 @@
|
|
|
19
19
|
"clean:build": "tamagui-build clean:build"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@tamagui/constants": "1.113.
|
|
23
|
-
"@tamagui/simple-hash": "1.113.
|
|
22
|
+
"@tamagui/constants": "1.113.2",
|
|
23
|
+
"@tamagui/simple-hash": "1.113.2"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
|
-
"@tamagui/build": "1.113.
|
|
26
|
+
"@tamagui/build": "1.113.2"
|
|
27
27
|
},
|
|
28
28
|
"publishConfig": {
|
|
29
29
|
"access": "public"
|