@tamagui/helpers 1.116.0 → 1.116.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/cjs/clamp.js +23 -0
- package/dist/cjs/composeEventHandlers.js +27 -0
- package/dist/cjs/concatClassName.js +68 -0
- package/dist/cjs/index.js +22 -0
- package/dist/cjs/shouldRenderNativePlatform.js +35 -0
- package/dist/cjs/types.js +25 -0
- package/dist/cjs/validStyleProps.js +332 -0
- package/dist/cjs/withStaticProperties.js +44 -0
- package/package.json +4 -4
- /package/dist/cjs/{clamp.cjs.map → clamp.js.map} +0 -0
- /package/dist/cjs/{composeEventHandlers.cjs.map → composeEventHandlers.js.map} +0 -0
- /package/dist/cjs/{concatClassName.cjs.map → concatClassName.js.map} +0 -0
- /package/dist/cjs/{index.cjs.map → index.js.map} +0 -0
- /package/dist/cjs/{shouldRenderNativePlatform.cjs.map → shouldRenderNativePlatform.js.map} +0 -0
- /package/dist/cjs/{types.cjs.map → types.js.map} +0 -0
- /package/dist/cjs/{validStyleProps.cjs.map → validStyleProps.js.map} +0 -0
- /package/dist/cjs/{withStaticProperties.cjs.map → withStaticProperties.js.map} +0 -0
|
@@ -0,0 +1,23 @@
|
|
|
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: !0 });
|
|
8
|
+
}, __copyProps = (to, from, except, desc) => {
|
|
9
|
+
if (from && typeof from == "object" || typeof from == "function")
|
|
10
|
+
for (let key of __getOwnPropNames(from))
|
|
11
|
+
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
12
|
+
return to;
|
|
13
|
+
};
|
|
14
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
15
|
+
var clamp_exports = {};
|
|
16
|
+
__export(clamp_exports, {
|
|
17
|
+
clamp: () => clamp
|
|
18
|
+
});
|
|
19
|
+
module.exports = __toCommonJS(clamp_exports);
|
|
20
|
+
function clamp(value, [min, max]) {
|
|
21
|
+
return Math.min(max, Math.max(min, value));
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=clamp.js.map
|
|
@@ -0,0 +1,27 @@
|
|
|
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: !0 });
|
|
8
|
+
}, __copyProps = (to, from, except, desc) => {
|
|
9
|
+
if (from && typeof from == "object" || typeof from == "function")
|
|
10
|
+
for (let key of __getOwnPropNames(from))
|
|
11
|
+
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
12
|
+
return to;
|
|
13
|
+
};
|
|
14
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
15
|
+
var composeEventHandlers_exports = {};
|
|
16
|
+
__export(composeEventHandlers_exports, {
|
|
17
|
+
composeEventHandlers: () => composeEventHandlers
|
|
18
|
+
});
|
|
19
|
+
module.exports = __toCommonJS(composeEventHandlers_exports);
|
|
20
|
+
function composeEventHandlers(og, next, { checkDefaultPrevented = !0 } = {}) {
|
|
21
|
+
return !og || !next ? next || og || void 0 : (event) => {
|
|
22
|
+
if (og?.(event), !event || !(checkDefaultPrevented && "defaultPrevented" in event) || // @ts-ignore
|
|
23
|
+
"defaultPrevented" in event && !event.defaultPrevented)
|
|
24
|
+
return next?.(event);
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
//# sourceMappingURL=composeEventHandlers.js.map
|
|
@@ -0,0 +1,68 @@
|
|
|
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: !0 });
|
|
8
|
+
}, __copyProps = (to, from, except, desc) => {
|
|
9
|
+
if (from && typeof from == "object" || typeof from == "function")
|
|
10
|
+
for (let key of __getOwnPropNames(from))
|
|
11
|
+
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
12
|
+
return to;
|
|
13
|
+
};
|
|
14
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
15
|
+
var concatClassName_exports = {};
|
|
16
|
+
__export(concatClassName_exports, {
|
|
17
|
+
concatClassName: () => concatClassName
|
|
18
|
+
});
|
|
19
|
+
module.exports = __toCommonJS(concatClassName_exports);
|
|
20
|
+
function concatClassName(_cn) {
|
|
21
|
+
const args = arguments, usedPrefixes = [];
|
|
22
|
+
let final = "";
|
|
23
|
+
const len = args.length;
|
|
24
|
+
let propObjects = null;
|
|
25
|
+
for (let x = len; x >= 0; x--) {
|
|
26
|
+
const cns = args[x];
|
|
27
|
+
if (!cns) continue;
|
|
28
|
+
if (!Array.isArray(cns) && typeof cns != "string") {
|
|
29
|
+
propObjects = propObjects || [], propObjects.push(cns);
|
|
30
|
+
continue;
|
|
31
|
+
}
|
|
32
|
+
const names = Array.isArray(cns) ? cns : cns.split(" "), numNames = names.length;
|
|
33
|
+
for (let i = numNames - 1; i >= 0; i--) {
|
|
34
|
+
const name = names[i];
|
|
35
|
+
if (!name || name === " ") continue;
|
|
36
|
+
if (name[0] !== "_") {
|
|
37
|
+
final = name + " " + final;
|
|
38
|
+
continue;
|
|
39
|
+
}
|
|
40
|
+
const splitIndex = name.indexOf("-");
|
|
41
|
+
if (splitIndex < 1) {
|
|
42
|
+
final = name + " " + final;
|
|
43
|
+
continue;
|
|
44
|
+
}
|
|
45
|
+
const isMediaQuery = name[splitIndex + 1] === "_", styleKey = name.slice(1, name.lastIndexOf("-")), mediaKey = isMediaQuery ? name.slice(splitIndex + 2, splitIndex + 7) : null, uid = mediaKey ? styleKey + mediaKey : styleKey;
|
|
46
|
+
if (usedPrefixes.indexOf(uid) > -1)
|
|
47
|
+
continue;
|
|
48
|
+
usedPrefixes.push(uid);
|
|
49
|
+
const propName = styleKey;
|
|
50
|
+
propName && propObjects && propObjects.some((po) => {
|
|
51
|
+
if (mediaKey) {
|
|
52
|
+
const propKey = pseudoInvert[mediaKey];
|
|
53
|
+
return po && po[propKey] && propName in po[propKey] && po[propKey] !== null;
|
|
54
|
+
}
|
|
55
|
+
return po && propName in po && po[propName] !== null;
|
|
56
|
+
}) || (final = name + " " + final);
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
return final;
|
|
60
|
+
}
|
|
61
|
+
const pseudoInvert = {
|
|
62
|
+
hover: "hoverStyle",
|
|
63
|
+
focus: "focusStyle",
|
|
64
|
+
press: "pressStyle",
|
|
65
|
+
focusVisible: "focusVisibleStyle",
|
|
66
|
+
disabled: "disabledStyle"
|
|
67
|
+
};
|
|
68
|
+
//# sourceMappingURL=concatClassName.js.map
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __copyProps = (to, from, except, desc) => {
|
|
6
|
+
if (from && typeof from == "object" || typeof from == "function")
|
|
7
|
+
for (let key of __getOwnPropNames(from))
|
|
8
|
+
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
9
|
+
return to;
|
|
10
|
+
}, __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
11
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
12
|
+
var src_exports = {};
|
|
13
|
+
module.exports = __toCommonJS(src_exports);
|
|
14
|
+
__reExport(src_exports, require("@tamagui/simple-hash"), module.exports);
|
|
15
|
+
__reExport(src_exports, require("./clamp"), module.exports);
|
|
16
|
+
__reExport(src_exports, require("./composeEventHandlers"), module.exports);
|
|
17
|
+
__reExport(src_exports, require("./concatClassName"), module.exports);
|
|
18
|
+
__reExport(src_exports, require("./types"), module.exports);
|
|
19
|
+
__reExport(src_exports, require("./shouldRenderNativePlatform"), module.exports);
|
|
20
|
+
__reExport(src_exports, require("./validStyleProps"), module.exports);
|
|
21
|
+
__reExport(src_exports, require("./withStaticProperties"), module.exports);
|
|
22
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,35 @@
|
|
|
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: !0 });
|
|
8
|
+
}, __copyProps = (to, from, except, desc) => {
|
|
9
|
+
if (from && typeof from == "object" || typeof from == "function")
|
|
10
|
+
for (let key of __getOwnPropNames(from))
|
|
11
|
+
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
12
|
+
return to;
|
|
13
|
+
};
|
|
14
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
15
|
+
var shouldRenderNativePlatform_exports = {};
|
|
16
|
+
__export(shouldRenderNativePlatform_exports, {
|
|
17
|
+
shouldRenderNativePlatform: () => shouldRenderNativePlatform
|
|
18
|
+
});
|
|
19
|
+
module.exports = __toCommonJS(shouldRenderNativePlatform_exports);
|
|
20
|
+
var import_constants = require("@tamagui/constants");
|
|
21
|
+
const ALL_PLATFORMS = ["web", "android", "ios"];
|
|
22
|
+
function shouldRenderNativePlatform(nativeProp) {
|
|
23
|
+
if (!nativeProp)
|
|
24
|
+
return null;
|
|
25
|
+
const userRequestedPlatforms = resolvePlatformNames(nativeProp);
|
|
26
|
+
for (const platform of ALL_PLATFORMS)
|
|
27
|
+
if (platform === import_constants.currentPlatform && userRequestedPlatforms.has(platform))
|
|
28
|
+
return platform;
|
|
29
|
+
return null;
|
|
30
|
+
}
|
|
31
|
+
function resolvePlatformNames(nativeProp) {
|
|
32
|
+
const platforms = nativeProp === !0 ? ALL_PLATFORMS : nativeProp === !1 ? [] : Array.isArray(nativeProp) ? nativeProp : [nativeProp], set = new Set(platforms);
|
|
33
|
+
return set.has("mobile") && (set.add("android"), set.add("ios"), set.delete("mobile")), set;
|
|
34
|
+
}
|
|
35
|
+
//# sourceMappingURL=shouldRenderNativePlatform.js.map
|
|
@@ -0,0 +1,25 @@
|
|
|
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: !0 });
|
|
8
|
+
}, __copyProps = (to, from, except, desc) => {
|
|
9
|
+
if (from && typeof from == "object" || typeof from == "function")
|
|
10
|
+
for (let key of __getOwnPropNames(from))
|
|
11
|
+
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
12
|
+
return to;
|
|
13
|
+
};
|
|
14
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
15
|
+
var types_exports = {};
|
|
16
|
+
__export(types_exports, {
|
|
17
|
+
StyleObjectIdentifier: () => StyleObjectIdentifier,
|
|
18
|
+
StyleObjectProperty: () => StyleObjectProperty,
|
|
19
|
+
StyleObjectPseudo: () => StyleObjectPseudo,
|
|
20
|
+
StyleObjectRules: () => StyleObjectRules,
|
|
21
|
+
StyleObjectValue: () => StyleObjectValue
|
|
22
|
+
});
|
|
23
|
+
module.exports = __toCommonJS(types_exports);
|
|
24
|
+
const StyleObjectProperty = 0, StyleObjectValue = 1, StyleObjectIdentifier = 2, StyleObjectPseudo = 3, StyleObjectRules = 4;
|
|
25
|
+
//# sourceMappingURL=types.js.map
|
|
@@ -0,0 +1,332 @@
|
|
|
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: !0 });
|
|
8
|
+
}, __copyProps = (to, from, except, desc) => {
|
|
9
|
+
if (from && typeof from == "object" || typeof from == "function")
|
|
10
|
+
for (let key of __getOwnPropNames(from))
|
|
11
|
+
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
12
|
+
return to;
|
|
13
|
+
};
|
|
14
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
15
|
+
var validStyleProps_exports = {};
|
|
16
|
+
__export(validStyleProps_exports, {
|
|
17
|
+
stylePropsAll: () => stylePropsAll,
|
|
18
|
+
stylePropsFont: () => stylePropsFont,
|
|
19
|
+
stylePropsText: () => stylePropsText,
|
|
20
|
+
stylePropsTextOnly: () => stylePropsTextOnly,
|
|
21
|
+
stylePropsTransform: () => stylePropsTransform,
|
|
22
|
+
stylePropsUnitless: () => stylePropsUnitless,
|
|
23
|
+
stylePropsView: () => stylePropsView,
|
|
24
|
+
tokenCategories: () => tokenCategories,
|
|
25
|
+
validPseudoKeys: () => validPseudoKeys,
|
|
26
|
+
validStyles: () => validStyles
|
|
27
|
+
});
|
|
28
|
+
module.exports = __toCommonJS(validStyleProps_exports);
|
|
29
|
+
var import_constants = require("@tamagui/constants");
|
|
30
|
+
const textColors = {
|
|
31
|
+
color: !0,
|
|
32
|
+
textDecorationColor: !0,
|
|
33
|
+
textShadowColor: !0
|
|
34
|
+
}, tokenCategories = {
|
|
35
|
+
radius: {
|
|
36
|
+
borderRadius: !0,
|
|
37
|
+
borderTopLeftRadius: !0,
|
|
38
|
+
borderTopRightRadius: !0,
|
|
39
|
+
borderBottomLeftRadius: !0,
|
|
40
|
+
borderBottomRightRadius: !0,
|
|
41
|
+
// logical
|
|
42
|
+
borderStartStartRadius: !0,
|
|
43
|
+
borderStartEndRadius: !0,
|
|
44
|
+
borderEndStartRadius: !0,
|
|
45
|
+
borderEndEndRadius: !0
|
|
46
|
+
},
|
|
47
|
+
size: {
|
|
48
|
+
width: !0,
|
|
49
|
+
height: !0,
|
|
50
|
+
minWidth: !0,
|
|
51
|
+
minHeight: !0,
|
|
52
|
+
maxWidth: !0,
|
|
53
|
+
maxHeight: !0,
|
|
54
|
+
blockSize: !0,
|
|
55
|
+
minBlockSize: !0,
|
|
56
|
+
maxBlockSize: !0,
|
|
57
|
+
inlineSize: !0,
|
|
58
|
+
minInlineSize: !0,
|
|
59
|
+
maxInlineSize: !0
|
|
60
|
+
},
|
|
61
|
+
zIndex: {
|
|
62
|
+
zIndex: !0
|
|
63
|
+
},
|
|
64
|
+
color: {
|
|
65
|
+
backgroundColor: !0,
|
|
66
|
+
borderColor: !0,
|
|
67
|
+
borderBlockStartColor: !0,
|
|
68
|
+
borderBlockEndColor: !0,
|
|
69
|
+
borderBlockColor: !0,
|
|
70
|
+
borderBottomColor: !0,
|
|
71
|
+
borderInlineColor: !0,
|
|
72
|
+
borderInlineStartColor: !0,
|
|
73
|
+
borderInlineEndColor: !0,
|
|
74
|
+
borderTopColor: !0,
|
|
75
|
+
borderLeftColor: !0,
|
|
76
|
+
borderRightColor: !0,
|
|
77
|
+
borderEndColor: !0,
|
|
78
|
+
borderStartColor: !0,
|
|
79
|
+
shadowColor: !0,
|
|
80
|
+
...textColors,
|
|
81
|
+
outlineColor: !0,
|
|
82
|
+
caretColor: !0
|
|
83
|
+
}
|
|
84
|
+
}, stylePropsUnitless = {
|
|
85
|
+
WebkitLineClamp: !0,
|
|
86
|
+
animationIterationCount: !0,
|
|
87
|
+
aspectRatio: !0,
|
|
88
|
+
borderImageOutset: !0,
|
|
89
|
+
borderImageSlice: !0,
|
|
90
|
+
borderImageWidth: !0,
|
|
91
|
+
columnCount: !0,
|
|
92
|
+
flex: !0,
|
|
93
|
+
flexGrow: !0,
|
|
94
|
+
flexOrder: !0,
|
|
95
|
+
flexPositive: !0,
|
|
96
|
+
flexShrink: !0,
|
|
97
|
+
flexNegative: !0,
|
|
98
|
+
fontWeight: !0,
|
|
99
|
+
gridRow: !0,
|
|
100
|
+
gridRowEnd: !0,
|
|
101
|
+
gridRowGap: !0,
|
|
102
|
+
gridRowStart: !0,
|
|
103
|
+
gridColumn: !0,
|
|
104
|
+
gridColumnEnd: !0,
|
|
105
|
+
gridColumnGap: !0,
|
|
106
|
+
gridColumnStart: !0,
|
|
107
|
+
gridTemplateColumns: !0,
|
|
108
|
+
gridTemplateAreas: !0,
|
|
109
|
+
lineClamp: !0,
|
|
110
|
+
opacity: !0,
|
|
111
|
+
order: !0,
|
|
112
|
+
orphans: !0,
|
|
113
|
+
tabSize: !0,
|
|
114
|
+
widows: !0,
|
|
115
|
+
zIndex: !0,
|
|
116
|
+
zoom: !0,
|
|
117
|
+
scale: !0,
|
|
118
|
+
scaleX: !0,
|
|
119
|
+
scaleY: !0,
|
|
120
|
+
scaleZ: !0,
|
|
121
|
+
shadowOpacity: !0
|
|
122
|
+
}, stylePropsTransform = {
|
|
123
|
+
x: !0,
|
|
124
|
+
y: !0,
|
|
125
|
+
scale: !0,
|
|
126
|
+
perspective: !0,
|
|
127
|
+
scaleX: !0,
|
|
128
|
+
scaleY: !0,
|
|
129
|
+
skewX: !0,
|
|
130
|
+
skewY: !0,
|
|
131
|
+
matrix: !0,
|
|
132
|
+
rotate: !0,
|
|
133
|
+
rotateY: !0,
|
|
134
|
+
rotateX: !0,
|
|
135
|
+
rotateZ: !0
|
|
136
|
+
}, stylePropsView = {
|
|
137
|
+
backfaceVisibility: !0,
|
|
138
|
+
borderBottomEndRadius: !0,
|
|
139
|
+
borderBottomStartRadius: !0,
|
|
140
|
+
borderBottomWidth: !0,
|
|
141
|
+
borderLeftWidth: !0,
|
|
142
|
+
borderRightWidth: !0,
|
|
143
|
+
borderBlockWidth: !0,
|
|
144
|
+
borderBlockEndWidth: !0,
|
|
145
|
+
borderBlockStartWidth: !0,
|
|
146
|
+
borderInlineWidth: !0,
|
|
147
|
+
borderInlineEndWidth: !0,
|
|
148
|
+
borderInlineStartWidth: !0,
|
|
149
|
+
borderStyle: !0,
|
|
150
|
+
borderBlockStyle: !0,
|
|
151
|
+
borderBlockEndStyle: !0,
|
|
152
|
+
borderBlockStartStyle: !0,
|
|
153
|
+
borderInlineStyle: !0,
|
|
154
|
+
borderInlineEndStyle: !0,
|
|
155
|
+
borderInlineStartStyle: !0,
|
|
156
|
+
borderTopEndRadius: !0,
|
|
157
|
+
borderTopStartRadius: !0,
|
|
158
|
+
borderTopWidth: !0,
|
|
159
|
+
borderWidth: !0,
|
|
160
|
+
transform: !0,
|
|
161
|
+
transformOrigin: !0,
|
|
162
|
+
alignContent: !0,
|
|
163
|
+
alignItems: !0,
|
|
164
|
+
alignSelf: !0,
|
|
165
|
+
borderEndWidth: !0,
|
|
166
|
+
borderStartWidth: !0,
|
|
167
|
+
bottom: !0,
|
|
168
|
+
display: !0,
|
|
169
|
+
end: !0,
|
|
170
|
+
flexBasis: !0,
|
|
171
|
+
flexDirection: !0,
|
|
172
|
+
flexWrap: !0,
|
|
173
|
+
gap: !0,
|
|
174
|
+
columnGap: !0,
|
|
175
|
+
rowGap: !0,
|
|
176
|
+
justifyContent: !0,
|
|
177
|
+
left: !0,
|
|
178
|
+
margin: !0,
|
|
179
|
+
marginBlock: !0,
|
|
180
|
+
marginBlockEnd: !0,
|
|
181
|
+
marginBlockStart: !0,
|
|
182
|
+
marginInline: !0,
|
|
183
|
+
marginInlineStart: !0,
|
|
184
|
+
marginInlineEnd: !0,
|
|
185
|
+
marginBottom: !0,
|
|
186
|
+
marginEnd: !0,
|
|
187
|
+
marginHorizontal: !0,
|
|
188
|
+
marginLeft: !0,
|
|
189
|
+
marginRight: !0,
|
|
190
|
+
marginStart: !0,
|
|
191
|
+
marginTop: !0,
|
|
192
|
+
marginVertical: !0,
|
|
193
|
+
overflow: !0,
|
|
194
|
+
padding: !0,
|
|
195
|
+
paddingBottom: !0,
|
|
196
|
+
paddingInline: !0,
|
|
197
|
+
paddingBlock: !0,
|
|
198
|
+
paddingBlockStart: !0,
|
|
199
|
+
paddingInlineEnd: !0,
|
|
200
|
+
paddingInlineStart: !0,
|
|
201
|
+
paddingEnd: !0,
|
|
202
|
+
paddingHorizontal: !0,
|
|
203
|
+
paddingLeft: !0,
|
|
204
|
+
paddingRight: !0,
|
|
205
|
+
paddingStart: !0,
|
|
206
|
+
paddingTop: !0,
|
|
207
|
+
paddingVertical: !0,
|
|
208
|
+
position: !0,
|
|
209
|
+
right: !0,
|
|
210
|
+
start: !0,
|
|
211
|
+
top: !0,
|
|
212
|
+
inset: !0,
|
|
213
|
+
insetBlock: !0,
|
|
214
|
+
insetBlockEnd: !0,
|
|
215
|
+
insetBlockStart: !0,
|
|
216
|
+
insetInline: !0,
|
|
217
|
+
insetInlineEnd: !0,
|
|
218
|
+
insetInlineStart: !0,
|
|
219
|
+
direction: !0,
|
|
220
|
+
shadowOffset: !0,
|
|
221
|
+
shadowRadius: !0,
|
|
222
|
+
...tokenCategories.color,
|
|
223
|
+
...tokenCategories.radius,
|
|
224
|
+
...tokenCategories.size,
|
|
225
|
+
...tokenCategories.radius,
|
|
226
|
+
...stylePropsTransform,
|
|
227
|
+
...stylePropsUnitless,
|
|
228
|
+
// RN doesn't support specific border styles per-edge
|
|
229
|
+
transition: !0,
|
|
230
|
+
textWrap: !0,
|
|
231
|
+
backdropFilter: !0,
|
|
232
|
+
background: !0,
|
|
233
|
+
backgroundAttachment: !0,
|
|
234
|
+
backgroundBlendMode: !0,
|
|
235
|
+
backgroundClip: !0,
|
|
236
|
+
backgroundColor: !0,
|
|
237
|
+
backgroundImage: !0,
|
|
238
|
+
backgroundOrigin: !0,
|
|
239
|
+
backgroundPosition: !0,
|
|
240
|
+
backgroundRepeat: !0,
|
|
241
|
+
backgroundSize: !0,
|
|
242
|
+
borderBottomStyle: !0,
|
|
243
|
+
borderImage: !0,
|
|
244
|
+
borderLeftStyle: !0,
|
|
245
|
+
borderRightStyle: !0,
|
|
246
|
+
borderTopStyle: !0,
|
|
247
|
+
boxShadow: !0,
|
|
248
|
+
boxSizing: !0,
|
|
249
|
+
caretColor: !0,
|
|
250
|
+
clipPath: !0,
|
|
251
|
+
contain: !0,
|
|
252
|
+
containerType: !0,
|
|
253
|
+
content: !0,
|
|
254
|
+
cursor: !0,
|
|
255
|
+
filter: !0,
|
|
256
|
+
float: !0,
|
|
257
|
+
mask: !0,
|
|
258
|
+
maskBorder: !0,
|
|
259
|
+
maskBorderMode: !0,
|
|
260
|
+
maskBorderOutset: !0,
|
|
261
|
+
maskBorderRepeat: !0,
|
|
262
|
+
maskBorderSlice: !0,
|
|
263
|
+
maskBorderSource: !0,
|
|
264
|
+
maskBorderWidth: !0,
|
|
265
|
+
maskClip: !0,
|
|
266
|
+
maskComposite: !0,
|
|
267
|
+
maskImage: !0,
|
|
268
|
+
maskMode: !0,
|
|
269
|
+
maskOrigin: !0,
|
|
270
|
+
maskPosition: !0,
|
|
271
|
+
maskRepeat: !0,
|
|
272
|
+
maskSize: !0,
|
|
273
|
+
maskType: !0,
|
|
274
|
+
mixBlendMode: !0,
|
|
275
|
+
objectFit: !0,
|
|
276
|
+
objectPosition: !0,
|
|
277
|
+
outlineOffset: !0,
|
|
278
|
+
outlineStyle: !0,
|
|
279
|
+
outlineWidth: !0,
|
|
280
|
+
overflowBlock: !0,
|
|
281
|
+
overflowInline: !0,
|
|
282
|
+
overflowX: !0,
|
|
283
|
+
overflowY: !0,
|
|
284
|
+
pointerEvents: !0,
|
|
285
|
+
scrollbarWidth: !0,
|
|
286
|
+
textEmphasis: !0,
|
|
287
|
+
touchAction: !0,
|
|
288
|
+
transformStyle: !0,
|
|
289
|
+
userSelect: !0,
|
|
290
|
+
...import_constants.isAndroid ? { elevationAndroid: !0 } : {}
|
|
291
|
+
}, stylePropsFont = {
|
|
292
|
+
fontFamily: !0,
|
|
293
|
+
fontSize: !0,
|
|
294
|
+
fontStyle: !0,
|
|
295
|
+
fontWeight: !0,
|
|
296
|
+
letterSpacing: !0,
|
|
297
|
+
lineHeight: !0,
|
|
298
|
+
textTransform: !0
|
|
299
|
+
}, stylePropsTextOnly = {
|
|
300
|
+
...stylePropsFont,
|
|
301
|
+
textAlign: !0,
|
|
302
|
+
textDecorationLine: !0,
|
|
303
|
+
textDecorationStyle: !0,
|
|
304
|
+
...textColors,
|
|
305
|
+
textShadowOffset: !0,
|
|
306
|
+
textShadowRadius: !0,
|
|
307
|
+
userSelect: !0,
|
|
308
|
+
selectable: !0,
|
|
309
|
+
verticalAlign: !0,
|
|
310
|
+
whiteSpace: !0,
|
|
311
|
+
wordWrap: !0,
|
|
312
|
+
textOverflow: !0,
|
|
313
|
+
textDecorationDistance: !0,
|
|
314
|
+
cursor: !0,
|
|
315
|
+
WebkitLineClamp: !0,
|
|
316
|
+
WebkitBoxOrient: !0
|
|
317
|
+
}, stylePropsText = {
|
|
318
|
+
...stylePropsView,
|
|
319
|
+
...stylePropsTextOnly
|
|
320
|
+
}, stylePropsAll = stylePropsText, validPseudoKeys = {
|
|
321
|
+
enterStyle: !0,
|
|
322
|
+
exitStyle: !0,
|
|
323
|
+
hoverStyle: !0,
|
|
324
|
+
pressStyle: !0,
|
|
325
|
+
focusStyle: !0,
|
|
326
|
+
disabledStyle: !0,
|
|
327
|
+
focusVisibleStyle: !0
|
|
328
|
+
}, validStyles = {
|
|
329
|
+
...validPseudoKeys,
|
|
330
|
+
...stylePropsView
|
|
331
|
+
};
|
|
332
|
+
//# sourceMappingURL=validStyleProps.js.map
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf, __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: !0 });
|
|
9
|
+
}, __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from == "object" || typeof from == "function")
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
13
|
+
return to;
|
|
14
|
+
};
|
|
15
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
16
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
17
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
18
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
19
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
20
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: !0 }) : target,
|
|
21
|
+
mod
|
|
22
|
+
)), __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
23
|
+
var withStaticProperties_exports = {};
|
|
24
|
+
__export(withStaticProperties_exports, {
|
|
25
|
+
withStaticProperties: () => withStaticProperties
|
|
26
|
+
});
|
|
27
|
+
module.exports = __toCommonJS(withStaticProperties_exports);
|
|
28
|
+
var import_react = __toESM(require("react"));
|
|
29
|
+
const Decorated = Symbol(), withStaticProperties = (component, staticProps) => {
|
|
30
|
+
const next = (() => {
|
|
31
|
+
if (component[Decorated]) {
|
|
32
|
+
const _ = import_react.default.forwardRef(
|
|
33
|
+
(props, ref) => import_react.default.createElement(component, { ...props, ref })
|
|
34
|
+
);
|
|
35
|
+
for (const key in component) {
|
|
36
|
+
const v = component[key];
|
|
37
|
+
_[key] = v && typeof v == "object" ? { ...v } : v;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
return component;
|
|
41
|
+
})();
|
|
42
|
+
return Object.assign(next, staticProps), next[Decorated] = !0, next;
|
|
43
|
+
};
|
|
44
|
+
//# sourceMappingURL=withStaticProperties.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tamagui/helpers",
|
|
3
|
-
"version": "1.116.
|
|
3
|
+
"version": "1.116.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.116.
|
|
23
|
-
"@tamagui/simple-hash": "1.116.
|
|
22
|
+
"@tamagui/constants": "1.116.2",
|
|
23
|
+
"@tamagui/simple-hash": "1.116.2"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
|
-
"@tamagui/build": "1.116.
|
|
26
|
+
"@tamagui/build": "1.116.2"
|
|
27
27
|
},
|
|
28
28
|
"publishConfig": {
|
|
29
29
|
"access": "public"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|