@tamagui/helpers 3.0.0-beta.831.1 → 3.0.0-beta.889.1
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/reservedThemeProps.cjs +0 -1
- package/dist/cjs/reservedThemeProps.native.cjs +0 -1
- package/dist/cjs/reservedThemeProps.native.js +0 -1
- package/dist/cjs/reservedThemeProps.native.js.map +1 -1
- package/dist/cjs/toStylePropsObject.cjs +33 -0
- package/dist/cjs/toStylePropsObject.native.cjs +72 -0
- package/dist/cjs/toStylePropsObject.native.js +74 -0
- package/dist/cjs/toStylePropsObject.native.js.map +1 -0
- package/dist/cjs/validStyleProps.cjs +18 -277
- package/dist/cjs/validStyleProps.native.cjs +18 -272
- package/dist/cjs/validStyleProps.native.js +18 -272
- package/dist/cjs/validStyleProps.native.js.map +1 -1
- package/dist/cjs/webOnlyStyleProps.cjs +5 -80
- package/dist/cjs/webOnlyStyleProps.native.cjs +5 -80
- package/dist/cjs/webOnlyStyleProps.native.js +5 -80
- package/dist/cjs/webOnlyStyleProps.native.js.map +1 -1
- package/dist/esm/reservedThemeProps.mjs +0 -1
- package/dist/esm/reservedThemeProps.mjs.map +1 -1
- package/dist/esm/reservedThemeProps.native.js +0 -1
- package/dist/esm/reservedThemeProps.native.js.map +1 -1
- package/dist/esm/toStylePropsObject.mjs +13 -0
- package/dist/esm/toStylePropsObject.mjs.map +1 -0
- package/dist/esm/toStylePropsObject.native.js +50 -0
- package/dist/esm/toStylePropsObject.native.js.map +1 -0
- package/dist/esm/validStyleProps.mjs +17 -278
- package/dist/esm/validStyleProps.mjs.map +1 -1
- package/dist/esm/validStyleProps.native.js +17 -273
- package/dist/esm/validStyleProps.native.js.map +1 -1
- package/dist/esm/webOnlyStyleProps.mjs +6 -80
- package/dist/esm/webOnlyStyleProps.mjs.map +1 -1
- package/dist/esm/webOnlyStyleProps.native.js +6 -80
- package/dist/esm/webOnlyStyleProps.native.js.map +1 -1
- package/package.json +5 -5
- package/src/reservedThemeProps.ts +0 -1
- package/src/toStylePropsObject.ts +29 -0
- package/src/validStyleProps.ts +73 -331
- package/src/webOnlyStyleProps.ts +16 -88
- package/types/reservedThemeProps.d.ts.map +1 -1
- package/types/toStylePropsObject.d.ts +6 -0
- package/types/toStylePropsObject.d.ts.map +1 -0
- package/types/validStyleProps.d.ts +1524 -1236
- package/types/validStyleProps.d.ts.map +1 -1
- package/types/webOnlyStyleProps.d.ts +106 -106
- package/types/webOnlyStyleProps.d.ts.map +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reservedThemeProps.native.js","names":[],"sources":["cjs/reservedThemeProps.native.js"],"sourcesContent":["\"use strict\";\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar reservedThemeProps_exports = {};\n__export(reservedThemeProps_exports, {\n reservedThemeProps: () => reservedThemeProps\n});\nmodule.exports = __toCommonJS(reservedThemeProps_exports);\nvar reservedThemeProps = {\n _isRoot: true,\n children: true,\n className: true,\n contain: true,\n debug: true,\n deopt: true,\n disable: true,\n \"disable-child-theme\": true,\n forceClassName: true,\n _themeUpdate: true,\n name: true,\n nativeUpdate: true,\n needsUpdate: true,\n passThrough: true,\n
|
|
1
|
+
{"version":3,"file":"reservedThemeProps.native.js","names":[],"sources":["cjs/reservedThemeProps.native.js"],"sourcesContent":["\"use strict\";\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar reservedThemeProps_exports = {};\n__export(reservedThemeProps_exports, {\n reservedThemeProps: () => reservedThemeProps\n});\nmodule.exports = __toCommonJS(reservedThemeProps_exports);\nvar reservedThemeProps = {\n _isRoot: true,\n children: true,\n className: true,\n contain: true,\n debug: true,\n deopt: true,\n disable: true,\n \"disable-child-theme\": true,\n forceClassName: true,\n _themeUpdate: true,\n name: true,\n nativeUpdate: true,\n needsUpdate: true,\n passThrough: true,\n shallow: true\n};\n//# sourceMappingURL=reservedThemeProps.js.map\n"],"mappings":";;;AACA,IAAI,YAAY,OAAO;AACvB,IAAI,mBAAmB,OAAO;AAC9B,IAAI,oBAAoB,OAAO;AAC/B,IAAI,eAAe,OAAO,UAAU;AACpC,IAAI,YAAY,QAAQ,QAAQ;CAC9B,KAAK,IAAI,QAAQ,KACf,UAAU,QAAQ,MAAM;EAAE,KAAK,IAAI;EAAO,YAAY;CAAK,CAAC;AAChE;AACA,IAAI,eAAe,IAAI,MAAM,QAAQ,SAAS;CAC5C,IAAI,QAAQ,OAAO,SAAS,YAAY,OAAO,SAAS,YAAY;EAClE,KAAK,IAAI,OAAO,kBAAkB,IAAI,GACpC,IAAI,CAAC,aAAa,KAAK,IAAI,GAAG,KAAK,QAAQ,QACzC,UAAU,IAAI,KAAK;GAAE,WAAW,KAAK;GAAM,YAAY,EAAE,OAAO,iBAAiB,MAAM,GAAG,MAAM,KAAK;EAAW,CAAC;CACvH;CACA,OAAO;AACT;AACA,IAAI,gBAAgB,QAAQ,YAAY,UAAU,CAAC,GAAG,cAAc,EAAE,OAAO,KAAK,CAAC,GAAG,GAAG;AACzF,IAAI,6BAA6B,CAAC;AAClC,SAAS,4BAA4B,EACnC,0BAA0B,mBAC5B,CAAC;AACD,OAAO,UAAU,aAAa,0BAA0B;AACxD,IAAI,qBAAqB;CACvB,SAAS;CACT,UAAU;CACV,WAAW;CACX,SAAS;CACT,OAAO;CACP,OAAO;CACP,SAAS;CACT,uBAAuB;CACvB,gBAAgB;CAChB,cAAc;CACd,MAAM;CACN,cAAc;CACd,aAAa;CACb,aAAa;CACb,SAAS;AACX"}
|
|
@@ -0,0 +1,33 @@
|
|
|
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) __defProp(target, name, {
|
|
7
|
+
get: all[name],
|
|
8
|
+
enumerable: true
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
14
|
+
get: () => from[key],
|
|
15
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
20
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
21
|
+
var toStylePropsObject_exports = {};
|
|
22
|
+
__export(toStylePropsObject_exports, { toStylePropsObject: () => toStylePropsObject });
|
|
23
|
+
module.exports = __toCommonJS(toStylePropsObject_exports);
|
|
24
|
+
const toStylePropsObject = (...sources) => {
|
|
25
|
+
const out = {};
|
|
26
|
+
for (const source of sources) {
|
|
27
|
+
if (!source) continue;
|
|
28
|
+
for (const key of typeof source === "string" ? source.split(" ") : Object.keys(source)) {
|
|
29
|
+
if (key) out[key] = true;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
return out;
|
|
33
|
+
};
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all) __defProp(target, name, {
|
|
9
|
+
get: all[name],
|
|
10
|
+
enumerable: true
|
|
11
|
+
});
|
|
12
|
+
};
|
|
13
|
+
var __copyProps = (to, from, except, desc) => {
|
|
14
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
15
|
+
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
16
|
+
get: () => from[key],
|
|
17
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
return to;
|
|
21
|
+
};
|
|
22
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
23
|
+
var toStylePropsObject_exports = {};
|
|
24
|
+
__export(toStylePropsObject_exports, { toStylePropsObject: () => toStylePropsObject });
|
|
25
|
+
module.exports = __toCommonJS(toStylePropsObject_exports);
|
|
26
|
+
var toStylePropsObject = function() {
|
|
27
|
+
for (var _len = arguments.length, sources = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
28
|
+
sources[_key] = arguments[_key];
|
|
29
|
+
}
|
|
30
|
+
var out = {};
|
|
31
|
+
var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;
|
|
32
|
+
try {
|
|
33
|
+
for (var _iterator = sources[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
34
|
+
var source = _step.value;
|
|
35
|
+
if (!source) continue;
|
|
36
|
+
var _iteratorNormalCompletion1 = true, _didIteratorError1 = false, _iteratorError1 = void 0;
|
|
37
|
+
try {
|
|
38
|
+
for (var _iterator1 = (typeof source === "string" ? source.split(" ") : Object.keys(source))[Symbol.iterator](), _step1; !(_iteratorNormalCompletion1 = (_step1 = _iterator1.next()).done); _iteratorNormalCompletion1 = true) {
|
|
39
|
+
var key = _step1.value;
|
|
40
|
+
if (key) out[key] = true;
|
|
41
|
+
}
|
|
42
|
+
} catch (err) {
|
|
43
|
+
_didIteratorError1 = true;
|
|
44
|
+
_iteratorError1 = err;
|
|
45
|
+
} finally {
|
|
46
|
+
try {
|
|
47
|
+
if (!_iteratorNormalCompletion1 && _iterator1.return != null) {
|
|
48
|
+
_iterator1.return();
|
|
49
|
+
}
|
|
50
|
+
} finally {
|
|
51
|
+
if (_didIteratorError1) {
|
|
52
|
+
throw _iteratorError1;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
} catch (err) {
|
|
58
|
+
_didIteratorError = true;
|
|
59
|
+
_iteratorError = err;
|
|
60
|
+
} finally {
|
|
61
|
+
try {
|
|
62
|
+
if (!_iteratorNormalCompletion && _iterator.return != null) {
|
|
63
|
+
_iterator.return();
|
|
64
|
+
}
|
|
65
|
+
} finally {
|
|
66
|
+
if (_didIteratorError) {
|
|
67
|
+
throw _iteratorError;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
return out;
|
|
72
|
+
};
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all) __defProp(target, name, {
|
|
9
|
+
get: all[name],
|
|
10
|
+
enumerable: true
|
|
11
|
+
});
|
|
12
|
+
};
|
|
13
|
+
var __copyProps = (to, from, except, desc) => {
|
|
14
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
15
|
+
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
16
|
+
get: () => from[key],
|
|
17
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
return to;
|
|
21
|
+
};
|
|
22
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
23
|
+
var toStylePropsObject_exports = {};
|
|
24
|
+
__export(toStylePropsObject_exports, { toStylePropsObject: () => toStylePropsObject });
|
|
25
|
+
module.exports = __toCommonJS(toStylePropsObject_exports);
|
|
26
|
+
var toStylePropsObject = function() {
|
|
27
|
+
for (var _len = arguments.length, sources = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
28
|
+
sources[_key] = arguments[_key];
|
|
29
|
+
}
|
|
30
|
+
var out = {};
|
|
31
|
+
var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;
|
|
32
|
+
try {
|
|
33
|
+
for (var _iterator = sources[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
34
|
+
var source = _step.value;
|
|
35
|
+
if (!source) continue;
|
|
36
|
+
var _iteratorNormalCompletion1 = true, _didIteratorError1 = false, _iteratorError1 = void 0;
|
|
37
|
+
try {
|
|
38
|
+
for (var _iterator1 = (typeof source === "string" ? source.split(" ") : Object.keys(source))[Symbol.iterator](), _step1; !(_iteratorNormalCompletion1 = (_step1 = _iterator1.next()).done); _iteratorNormalCompletion1 = true) {
|
|
39
|
+
var key = _step1.value;
|
|
40
|
+
if (key) out[key] = true;
|
|
41
|
+
}
|
|
42
|
+
} catch (err) {
|
|
43
|
+
_didIteratorError1 = true;
|
|
44
|
+
_iteratorError1 = err;
|
|
45
|
+
} finally {
|
|
46
|
+
try {
|
|
47
|
+
if (!_iteratorNormalCompletion1 && _iterator1.return != null) {
|
|
48
|
+
_iterator1.return();
|
|
49
|
+
}
|
|
50
|
+
} finally {
|
|
51
|
+
if (_didIteratorError1) {
|
|
52
|
+
throw _iteratorError1;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
} catch (err) {
|
|
58
|
+
_didIteratorError = true;
|
|
59
|
+
_iteratorError = err;
|
|
60
|
+
} finally {
|
|
61
|
+
try {
|
|
62
|
+
if (!_iteratorNormalCompletion && _iterator.return != null) {
|
|
63
|
+
_iterator.return();
|
|
64
|
+
}
|
|
65
|
+
} finally {
|
|
66
|
+
if (_didIteratorError) {
|
|
67
|
+
throw _iteratorError;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
return out;
|
|
72
|
+
};
|
|
73
|
+
|
|
74
|
+
//# sourceMappingURL=toStylePropsObject.native.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"toStylePropsObject.native.js","names":[],"sources":["cjs/toStylePropsObject.native.js"],"sourcesContent":["\"use strict\";\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar toStylePropsObject_exports = {};\n__export(toStylePropsObject_exports, {\n toStylePropsObject: () => toStylePropsObject\n});\nmodule.exports = __toCommonJS(toStylePropsObject_exports);\nvar toStylePropsObject = function() {\n for (var _len = arguments.length, sources = new Array(_len), _key = 0; _key < _len; _key++) {\n sources[_key] = arguments[_key];\n }\n var out = {};\n var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;\n try {\n for (var _iterator = sources[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {\n var source = _step.value;\n if (!source) continue;\n var _iteratorNormalCompletion1 = true, _didIteratorError1 = false, _iteratorError1 = void 0;\n try {\n for (var _iterator1 = (typeof source === \"string\" ? source.split(\" \") : Object.keys(source))[Symbol.iterator](), _step1; !(_iteratorNormalCompletion1 = (_step1 = _iterator1.next()).done); _iteratorNormalCompletion1 = true) {\n var key = _step1.value;\n if (key) out[key] = true;\n }\n } catch (err) {\n _didIteratorError1 = true;\n _iteratorError1 = err;\n } finally {\n try {\n if (!_iteratorNormalCompletion1 && _iterator1.return != null) {\n _iterator1.return();\n }\n } finally {\n if (_didIteratorError1) {\n throw _iteratorError1;\n }\n }\n }\n }\n } catch (err) {\n _didIteratorError = true;\n _iteratorError = err;\n } finally {\n try {\n if (!_iteratorNormalCompletion && _iterator.return != null) {\n _iterator.return();\n }\n } finally {\n if (_didIteratorError) {\n throw _iteratorError;\n }\n }\n }\n return out;\n};\n//# sourceMappingURL=toStylePropsObject.js.map\n"],"mappings":";;;AACA,IAAI,YAAY,OAAO;AACvB,IAAI,mBAAmB,OAAO;AAC9B,IAAI,oBAAoB,OAAO;AAC/B,IAAI,eAAe,OAAO,UAAU;AACpC,IAAI,YAAY,QAAQ,QAAQ;CAC9B,KAAK,IAAI,QAAQ,KACf,UAAU,QAAQ,MAAM;EAAE,KAAK,IAAI;EAAO,YAAY;CAAK,CAAC;AAChE;AACA,IAAI,eAAe,IAAI,MAAM,QAAQ,SAAS;CAC5C,IAAI,QAAQ,OAAO,SAAS,YAAY,OAAO,SAAS,YAAY;EAClE,KAAK,IAAI,OAAO,kBAAkB,IAAI,GACpC,IAAI,CAAC,aAAa,KAAK,IAAI,GAAG,KAAK,QAAQ,QACzC,UAAU,IAAI,KAAK;GAAE,WAAW,KAAK;GAAM,YAAY,EAAE,OAAO,iBAAiB,MAAM,GAAG,MAAM,KAAK;EAAW,CAAC;CACvH;CACA,OAAO;AACT;AACA,IAAI,gBAAgB,QAAQ,YAAY,UAAU,CAAC,GAAG,cAAc,EAAE,OAAO,KAAK,CAAC,GAAG,GAAG;AACzF,IAAI,6BAA6B,CAAC;AAClC,SAAS,4BAA4B,EACnC,0BAA0B,mBAC5B,CAAC;AACD,OAAO,UAAU,aAAa,0BAA0B;AACxD,IAAI,qBAAqB,WAAW;CAClC,KAAK,IAAI,OAAO,UAAU,QAAQ,UAAU,IAAI,MAAM,IAAI,GAAG,OAAO,GAAG,OAAO,MAAM,QAAQ;EAC1F,QAAQ,QAAQ,UAAU;CAC5B;CACA,IAAI,MAAM,CAAC;CACX,IAAI,4BAA4B,MAAM,oBAAoB,OAAO,iBAAiB,KAAK;CACvF,IAAI;EACF,KAAK,IAAI,YAAY,QAAQ,OAAO,SAAS,CAAC,GAAG,OAAO,EAAE,6BAA6B,QAAQ,UAAU,KAAK,EAAC,CAAE,OAAO,4BAA4B,MAAM;GACxJ,IAAI,SAAS,MAAM;GACnB,IAAI,CAAC,QAAQ;GACb,IAAI,6BAA6B,MAAM,qBAAqB,OAAO,kBAAkB,KAAK;GAC1F,IAAI;IACF,KAAK,IAAI,cAAc,OAAO,WAAW,WAAW,OAAO,MAAM,GAAG,IAAI,OAAO,KAAK,MAAM,EAAC,CAAE,OAAO,SAAS,CAAC,GAAG,QAAQ,EAAE,8BAA8B,SAAS,WAAW,KAAK,EAAC,CAAE,OAAO,6BAA6B,MAAM;KAC7N,IAAI,MAAM,OAAO;KACjB,IAAI,KAAK,IAAI,OAAO;IACtB;GACF,SAAS,KAAK;IACZ,qBAAqB;IACrB,kBAAkB;GACpB,UAAU;IACR,IAAI;KACF,IAAI,CAAC,8BAA8B,WAAW,UAAU,MAAM;MAC5D,WAAW,OAAO;KACpB;IACF,UAAU;KACR,IAAI,oBAAoB;MACtB,MAAM;KACR;IACF;GACF;EACF;CACF,SAAS,KAAK;EACZ,oBAAoB;EACpB,iBAAiB;CACnB,UAAU;EACR,IAAI;GACF,IAAI,CAAC,6BAA6B,UAAU,UAAU,MAAM;IAC1D,UAAU,OAAO;GACnB;EACF,UAAU;GACR,IAAI,mBAAmB;IACrB,MAAM;GACR;EACF;CACF;CACA,OAAO;AACT"}
|
|
@@ -23,6 +23,7 @@ __export(validStyleProps_exports, {
|
|
|
23
23
|
cssShorthandLonghands: () => cssShorthandLonghands,
|
|
24
24
|
nonAnimatableStyleProps: () => nonAnimatableStyleProps,
|
|
25
25
|
stylePropsAll: () => stylePropsAll,
|
|
26
|
+
stylePropsInput: () => stylePropsInput,
|
|
26
27
|
stylePropsText: () => stylePropsText,
|
|
27
28
|
stylePropsTextOnly: () => stylePropsTextOnly,
|
|
28
29
|
stylePropsTransform: () => stylePropsTransform,
|
|
@@ -34,282 +35,22 @@ __export(validStyleProps_exports, {
|
|
|
34
35
|
module.exports = __toCommonJS(validStyleProps_exports);
|
|
35
36
|
var import_constants = require("@tamagui/constants");
|
|
36
37
|
var import_webOnlyStyleProps = require("./webOnlyStyleProps.cjs");
|
|
38
|
+
var import_toStylePropsObject = require("./toStylePropsObject.cjs");
|
|
37
39
|
var import_tokenCategories = require("./tokenCategories.cjs");
|
|
38
|
-
const cssShorthandLonghands =
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
outlineWidth: true,
|
|
55
|
-
outlineStyle: true,
|
|
56
|
-
outlineColor: true,
|
|
57
|
-
outlineOffset: true
|
|
58
|
-
};
|
|
59
|
-
const textColors = {
|
|
60
|
-
color: true,
|
|
61
|
-
textDecorationColor: true,
|
|
62
|
-
textShadowColor: true
|
|
63
|
-
};
|
|
64
|
-
const nonAnimatableViewProps = {
|
|
65
|
-
alignContent: true,
|
|
66
|
-
alignItems: true,
|
|
67
|
-
alignSelf: true,
|
|
68
|
-
backfaceVisibility: true,
|
|
69
|
-
borderCurve: true,
|
|
70
|
-
borderStyle: true,
|
|
71
|
-
borderBlockStyle: true,
|
|
72
|
-
borderBlockEndStyle: true,
|
|
73
|
-
borderBlockStartStyle: true,
|
|
74
|
-
borderInlineStyle: true,
|
|
75
|
-
borderInlineEndStyle: true,
|
|
76
|
-
borderInlineStartStyle: true,
|
|
77
|
-
boxSizing: true,
|
|
78
|
-
cursor: true,
|
|
79
|
-
direction: true,
|
|
80
|
-
display: true,
|
|
81
|
-
flexDirection: true,
|
|
82
|
-
flexWrap: true,
|
|
83
|
-
isolation: true,
|
|
84
|
-
justifyContent: true,
|
|
85
|
-
mixBlendMode: true,
|
|
86
|
-
outlineStyle: true,
|
|
87
|
-
overflow: true,
|
|
88
|
-
pointerEvents: true,
|
|
89
|
-
position: true,
|
|
90
|
-
visibility: true
|
|
91
|
-
};
|
|
92
|
-
const nonAnimatableFontProps = {
|
|
93
|
-
fontFamily: true,
|
|
94
|
-
fontStyle: true,
|
|
95
|
-
fontVariant: true,
|
|
96
|
-
textTransform: true
|
|
97
|
-
};
|
|
98
|
-
const nonAnimatableTextOnlyProps = {
|
|
99
|
-
textAlign: true,
|
|
100
|
-
textDecorationLine: true,
|
|
101
|
-
textDecorationStyle: true,
|
|
102
|
-
userSelect: true,
|
|
103
|
-
writingDirection: true
|
|
104
|
-
};
|
|
105
|
-
const nonAnimatableUnitlessProps = {
|
|
106
|
-
WebkitLineClamp: true,
|
|
107
|
-
lineClamp: true,
|
|
108
|
-
gridTemplateColumns: true,
|
|
109
|
-
gridTemplateAreas: true
|
|
110
|
-
};
|
|
111
|
-
const nonAnimatableStyleProps = {
|
|
112
|
-
...nonAnimatableViewProps,
|
|
113
|
-
...nonAnimatableFontProps,
|
|
114
|
-
...nonAnimatableTextOnlyProps,
|
|
115
|
-
...nonAnimatableUnitlessProps,
|
|
116
|
-
...import_webOnlyStyleProps.nonAnimatableWebViewProps,
|
|
117
|
-
...import_webOnlyStyleProps.nonAnimatableWebTextProps
|
|
118
|
-
};
|
|
119
|
-
const stylePropsUnitless = {
|
|
120
|
-
...nonAnimatableUnitlessProps,
|
|
121
|
-
animationIterationCount: true,
|
|
122
|
-
aspectRatio: true,
|
|
123
|
-
borderImageOutset: true,
|
|
124
|
-
borderImageSlice: true,
|
|
125
|
-
borderImageWidth: true,
|
|
126
|
-
columnCount: true,
|
|
127
|
-
flex: true,
|
|
128
|
-
flexGrow: true,
|
|
129
|
-
flexOrder: true,
|
|
130
|
-
flexPositive: true,
|
|
131
|
-
flexShrink: true,
|
|
132
|
-
flexNegative: true,
|
|
133
|
-
fontWeight: true,
|
|
134
|
-
gridRow: true,
|
|
135
|
-
gridRowEnd: true,
|
|
136
|
-
gridRowGap: true,
|
|
137
|
-
gridRowStart: true,
|
|
138
|
-
gridColumn: true,
|
|
139
|
-
gridColumnEnd: true,
|
|
140
|
-
gridColumnGap: true,
|
|
141
|
-
gridColumnStart: true,
|
|
142
|
-
opacity: true,
|
|
143
|
-
order: true,
|
|
144
|
-
orphans: true,
|
|
145
|
-
tabSize: true,
|
|
146
|
-
widows: true,
|
|
147
|
-
zIndex: true,
|
|
148
|
-
zoom: true,
|
|
149
|
-
scale: true,
|
|
150
|
-
scaleX: true,
|
|
151
|
-
scaleY: true,
|
|
152
|
-
scaleZ: true,
|
|
153
|
-
shadowOpacity: true
|
|
154
|
-
};
|
|
155
|
-
const stylePropsTransform = {
|
|
156
|
-
x: true,
|
|
157
|
-
y: true,
|
|
158
|
-
scale: true,
|
|
159
|
-
perspective: true,
|
|
160
|
-
scaleX: true,
|
|
161
|
-
scaleY: true,
|
|
162
|
-
skewX: true,
|
|
163
|
-
skewY: true,
|
|
164
|
-
matrix: true,
|
|
165
|
-
rotate: true,
|
|
166
|
-
rotateY: true,
|
|
167
|
-
rotateX: true,
|
|
168
|
-
rotateZ: true
|
|
169
|
-
};
|
|
170
|
-
const stylePropsView = {
|
|
171
|
-
...nonAnimatableViewProps,
|
|
172
|
-
borderBottomWidth: true,
|
|
173
|
-
borderLeftWidth: true,
|
|
174
|
-
borderRightWidth: true,
|
|
175
|
-
borderBlockWidth: true,
|
|
176
|
-
borderBlockEndWidth: true,
|
|
177
|
-
borderBlockStartWidth: true,
|
|
178
|
-
borderInlineWidth: true,
|
|
179
|
-
borderInlineEndWidth: true,
|
|
180
|
-
borderInlineStartWidth: true,
|
|
181
|
-
borderTopWidth: true,
|
|
182
|
-
borderWidth: true,
|
|
183
|
-
transform: true,
|
|
184
|
-
transformOrigin: true,
|
|
185
|
-
borderEndWidth: true,
|
|
186
|
-
borderStartWidth: true,
|
|
187
|
-
bottom: true,
|
|
188
|
-
end: true,
|
|
189
|
-
flexBasis: true,
|
|
190
|
-
gap: true,
|
|
191
|
-
columnGap: true,
|
|
192
|
-
rowGap: true,
|
|
193
|
-
left: true,
|
|
194
|
-
margin: true,
|
|
195
|
-
marginBlock: true,
|
|
196
|
-
marginBlockEnd: true,
|
|
197
|
-
marginBlockStart: true,
|
|
198
|
-
marginInline: true,
|
|
199
|
-
marginInlineStart: true,
|
|
200
|
-
marginInlineEnd: true,
|
|
201
|
-
marginBottom: true,
|
|
202
|
-
marginEnd: true,
|
|
203
|
-
marginHorizontal: true,
|
|
204
|
-
marginLeft: true,
|
|
205
|
-
marginRight: true,
|
|
206
|
-
marginStart: true,
|
|
207
|
-
marginTop: true,
|
|
208
|
-
marginVertical: true,
|
|
209
|
-
padding: true,
|
|
210
|
-
paddingBottom: true,
|
|
211
|
-
paddingInline: true,
|
|
212
|
-
paddingBlock: true,
|
|
213
|
-
paddingBlockEnd: true,
|
|
214
|
-
paddingBlockStart: true,
|
|
215
|
-
paddingInlineEnd: true,
|
|
216
|
-
paddingInlineStart: true,
|
|
217
|
-
paddingEnd: true,
|
|
218
|
-
paddingHorizontal: true,
|
|
219
|
-
paddingLeft: true,
|
|
220
|
-
paddingRight: true,
|
|
221
|
-
paddingStart: true,
|
|
222
|
-
paddingTop: true,
|
|
223
|
-
paddingVertical: true,
|
|
224
|
-
right: true,
|
|
225
|
-
start: true,
|
|
226
|
-
top: true,
|
|
227
|
-
inset: true,
|
|
228
|
-
insetBlock: true,
|
|
229
|
-
insetBlockEnd: true,
|
|
230
|
-
insetBlockStart: true,
|
|
231
|
-
insetInline: true,
|
|
232
|
-
insetInlineEnd: true,
|
|
233
|
-
insetInlineStart: true,
|
|
234
|
-
shadowOffset: true,
|
|
235
|
-
backgroundColor: true,
|
|
236
|
-
borderColor: true,
|
|
237
|
-
borderBlockStartColor: true,
|
|
238
|
-
borderBlockEndColor: true,
|
|
239
|
-
borderBlockColor: true,
|
|
240
|
-
borderBottomColor: true,
|
|
241
|
-
borderInlineColor: true,
|
|
242
|
-
borderInlineStartColor: true,
|
|
243
|
-
borderInlineEndColor: true,
|
|
244
|
-
borderTopColor: true,
|
|
245
|
-
borderLeftColor: true,
|
|
246
|
-
borderRightColor: true,
|
|
247
|
-
borderEndColor: true,
|
|
248
|
-
borderStartColor: true,
|
|
249
|
-
shadowColor: true,
|
|
250
|
-
outlineColor: true,
|
|
251
|
-
caretColor: true,
|
|
252
|
-
borderRadius: true,
|
|
253
|
-
borderTopLeftRadius: true,
|
|
254
|
-
borderTopRightRadius: true,
|
|
255
|
-
borderBottomLeftRadius: true,
|
|
256
|
-
borderBottomRightRadius: true,
|
|
257
|
-
borderTopStartRadius: true,
|
|
258
|
-
borderTopEndRadius: true,
|
|
259
|
-
borderBottomStartRadius: true,
|
|
260
|
-
borderBottomEndRadius: true,
|
|
261
|
-
borderStartStartRadius: true,
|
|
262
|
-
borderStartEndRadius: true,
|
|
263
|
-
borderEndStartRadius: true,
|
|
264
|
-
borderEndEndRadius: true,
|
|
265
|
-
width: true,
|
|
266
|
-
height: true,
|
|
267
|
-
minWidth: true,
|
|
268
|
-
minHeight: true,
|
|
269
|
-
maxWidth: true,
|
|
270
|
-
maxHeight: true,
|
|
271
|
-
blockSize: true,
|
|
272
|
-
minBlockSize: true,
|
|
273
|
-
maxBlockSize: true,
|
|
274
|
-
inlineSize: true,
|
|
275
|
-
minInlineSize: true,
|
|
276
|
-
maxInlineSize: true,
|
|
277
|
-
shadowRadius: true,
|
|
278
|
-
...stylePropsTransform,
|
|
279
|
-
...stylePropsUnitless,
|
|
280
|
-
...import_constants.isAndroid ? { elevationAndroid: true } : {},
|
|
281
|
-
boxShadow: true,
|
|
282
|
-
border: true,
|
|
283
|
-
borderBlock: true,
|
|
284
|
-
borderInline: true,
|
|
285
|
-
filter: true,
|
|
286
|
-
background: true,
|
|
287
|
-
backgroundImage: true,
|
|
288
|
-
experimental_backgroundImage: true,
|
|
289
|
-
outline: true,
|
|
290
|
-
outlineOffset: true,
|
|
291
|
-
outlineWidth: true,
|
|
292
|
-
...import_webOnlyStyleProps.webOnlyStylePropsView
|
|
293
|
-
};
|
|
294
|
-
const stylePropsTextOnly = {
|
|
295
|
-
...nonAnimatableFontProps,
|
|
296
|
-
fontSize: true,
|
|
297
|
-
fontWeight: true,
|
|
298
|
-
letterSpacing: true,
|
|
299
|
-
lineHeight: true,
|
|
300
|
-
...nonAnimatableTextOnlyProps,
|
|
301
|
-
...textColors,
|
|
302
|
-
textShadow: true,
|
|
303
|
-
textShadowOffset: true,
|
|
304
|
-
textShadowRadius: true,
|
|
305
|
-
textDecoration: true,
|
|
306
|
-
font: true,
|
|
307
|
-
verticalAlign: true,
|
|
308
|
-
...import_webOnlyStyleProps.webOnlyStylePropsText
|
|
309
|
-
};
|
|
310
|
-
const stylePropsText = {
|
|
311
|
-
...stylePropsView,
|
|
312
|
-
...stylePropsTextOnly
|
|
313
|
-
};
|
|
314
|
-
const stylePropsAll = stylePropsText;
|
|
40
|
+
const cssShorthandLonghands = (0, import_toStylePropsObject.toStylePropsObject)("borderWidth borderStyle borderColor borderTopWidth borderTopStyle borderTopColor borderRightWidth borderRightStyle borderRightColor borderBottomWidth borderBottomStyle borderBottomColor borderLeftWidth borderLeftStyle borderLeftColor outlineWidth outlineStyle outlineColor outlineOffset");
|
|
41
|
+
const textColors = (0, import_toStylePropsObject.toStylePropsObject)("color textDecorationColor textShadowColor");
|
|
42
|
+
const inputColors = (0, import_toStylePropsObject.toStylePropsObject)("placeholderTextColor selectionColor cursorColor selectionHandleColor");
|
|
43
|
+
const nonAnimatableViewProps = (0, import_toStylePropsObject.toStylePropsObject)("alignContent alignItems alignSelf backfaceVisibility borderCurve borderStyle borderBlockStyle borderBlockEndStyle borderBlockStartStyle borderInlineStyle borderInlineEndStyle borderInlineStartStyle boxSizing cursor direction display flexDirection flexWrap isolation justifyContent mixBlendMode outlineStyle overflow pointerEvents position visibility");
|
|
44
|
+
const nonAnimatableFontProps = (0, import_toStylePropsObject.toStylePropsObject)("fontFamily fontStyle fontVariant textTransform");
|
|
45
|
+
const nonAnimatableTextOnlyProps = (0, import_toStylePropsObject.toStylePropsObject)("textAlign textDecorationLine textDecorationStyle userSelect writingDirection");
|
|
46
|
+
const nonAnimatableUnitlessProps = (0, import_toStylePropsObject.toStylePropsObject)("WebkitLineClamp lineClamp gridTemplateColumns gridTemplateAreas");
|
|
47
|
+
const nonAnimatableStyleProps = (0, import_toStylePropsObject.toStylePropsObject)(nonAnimatableViewProps, nonAnimatableFontProps, nonAnimatableTextOnlyProps, nonAnimatableUnitlessProps, import_webOnlyStyleProps.nonAnimatableWebViewProps, import_webOnlyStyleProps.nonAnimatableWebTextProps);
|
|
48
|
+
const stylePropsUnitless = (0, import_toStylePropsObject.toStylePropsObject)(nonAnimatableUnitlessProps, "animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth columnCount flex flexGrow flexOrder flexPositive flexShrink flexNegative fontWeight gridRow gridRowEnd gridRowGap gridRowStart gridColumn gridColumnEnd gridColumnGap gridColumnStart opacity order orphans tabSize widows zIndex zoom scale scaleX scaleY scaleZ shadowOpacity");
|
|
49
|
+
const stylePropsTransform = (0, import_toStylePropsObject.toStylePropsObject)("x y scale perspective scaleX scaleY skewX skewY matrix rotate rotateY rotateX rotateZ");
|
|
50
|
+
const stylePropsView = (0, import_toStylePropsObject.toStylePropsObject)(nonAnimatableViewProps, "borderBottomWidth borderLeftWidth borderRightWidth borderBlockWidth borderBlockEndWidth borderBlockStartWidth borderInlineWidth borderInlineEndWidth borderInlineStartWidth borderTopWidth borderWidth transform transformOrigin borderEndWidth borderStartWidth bottom end flexBasis gap columnGap rowGap left margin marginBlock marginBlockEnd marginBlockStart marginInline marginInlineStart marginInlineEnd marginBottom marginEnd marginHorizontal marginLeft marginRight marginStart marginTop marginVertical padding paddingBottom paddingInline paddingBlock paddingBlockEnd paddingBlockStart paddingInlineEnd paddingInlineStart paddingEnd paddingHorizontal paddingLeft paddingRight paddingStart paddingTop paddingVertical right start top inset insetBlock insetBlockEnd insetBlockStart insetInline insetInlineEnd insetInlineStart shadowOffset backgroundColor borderColor borderBlockStartColor borderBlockEndColor borderBlockColor borderBottomColor borderInlineColor borderInlineStartColor borderInlineEndColor borderTopColor borderLeftColor borderRightColor borderEndColor borderStartColor shadowColor outlineColor", "caretColor", "borderRadius borderTopLeftRadius borderTopRightRadius borderBottomLeftRadius borderBottomRightRadius borderTopStartRadius borderTopEndRadius borderBottomStartRadius borderBottomEndRadius borderStartStartRadius borderStartEndRadius borderEndStartRadius borderEndEndRadius width height minWidth minHeight maxWidth maxHeight blockSize minBlockSize maxBlockSize inlineSize minInlineSize maxInlineSize shadowRadius", stylePropsTransform, stylePropsUnitless, import_constants.isAndroid ? { elevationAndroid: true } : void 0, "boxShadow border borderBlock borderInline filter background backgroundImage experimental_backgroundImage outline outlineOffset outlineWidth", import_webOnlyStyleProps.webOnlyStylePropsView);
|
|
51
|
+
const stylePropsFont = (0, import_toStylePropsObject.toStylePropsObject)(nonAnimatableFontProps, "fontSize fontWeight letterSpacing lineHeight");
|
|
52
|
+
const stylePropsTextOnly = (0, import_toStylePropsObject.toStylePropsObject)(stylePropsFont, nonAnimatableTextOnlyProps, textColors, "textShadow textShadowOffset textShadowRadius textDecoration font verticalAlign", import_webOnlyStyleProps.webOnlyStylePropsText);
|
|
53
|
+
const stylePropsText = (0, import_toStylePropsObject.toStylePropsObject)(stylePropsView, stylePropsTextOnly);
|
|
54
|
+
const stylePropsInput = (0, import_toStylePropsObject.toStylePropsObject)(stylePropsText, inputColors);
|
|
55
|
+
const stylePropsAll = stylePropsInput;
|
|
315
56
|
const validStyles = stylePropsView;
|