@tamagui/shorthands 2.7.7 → 3.0.0-beta.643.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/index.cjs +89 -96
- package/dist/cjs/index.native.cjs +111 -0
- package/dist/cjs/index.native.js +89 -95
- package/dist/cjs/index.native.js.map +1 -1
- package/dist/cjs/v4.cjs +49 -54
- package/dist/cjs/v4.native.cjs +64 -0
- package/dist/cjs/v4.native.js +49 -53
- package/dist/cjs/v4.native.js.map +1 -1
- package/dist/cjs/v5.cjs +49 -54
- package/dist/cjs/v5.native.cjs +64 -0
- package/dist/cjs/v5.native.js +49 -53
- package/dist/cjs/v5.native.js.map +1 -1
- package/dist/cjs/v6.cjs +64 -0
- package/dist/cjs/v6.native.cjs +66 -0
- package/dist/cjs/v6.native.js +68 -0
- package/dist/cjs/v6.native.js.map +1 -0
- package/dist/esm/index.js +75 -78
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/index.mjs +75 -78
- package/dist/esm/index.mjs.map +1 -1
- package/dist/esm/index.native.js +75 -78
- package/dist/esm/index.native.js.map +1 -1
- package/dist/esm/v4.mjs +35 -36
- package/dist/esm/v4.mjs.map +1 -1
- package/dist/esm/v4.native.js +35 -36
- package/dist/esm/v4.native.js.map +1 -1
- package/dist/esm/v5.mjs +35 -36
- package/dist/esm/v5.mjs.map +1 -1
- package/dist/esm/v5.native.js +35 -36
- package/dist/esm/v5.native.js.map +1 -1
- package/dist/esm/v6.mjs +43 -0
- package/dist/esm/v6.mjs.map +1 -0
- package/dist/esm/v6.native.js +43 -0
- package/dist/esm/v6.native.js.map +1 -0
- package/package.json +25 -3
- package/src/v6.ts +51 -0
- package/types/index.d.ts +74 -74
- package/types/index.d.ts.map +1 -1
- package/types/v6.d.ts +40 -0
- package/types/v6.d.ts.map +1 -0
- package/v6.cjs +1 -0
- package/v6.d.ts +1 -0
- package/.turbo/turbo-build.log +0 -2
- package/tsconfig.json +0 -18
package/dist/cjs/v4.cjs
CHANGED
|
@@ -1,67 +1,62 @@
|
|
|
1
|
+
|
|
1
2
|
var __defProp = Object.defineProperty;
|
|
2
3
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
4
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
5
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
6
|
var __export = (target, all) => {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
for (var name in all) __defProp(target, name, {
|
|
8
|
+
get: all[name],
|
|
9
|
+
enumerable: true
|
|
10
|
+
});
|
|
10
11
|
};
|
|
11
12
|
var __copyProps = (to, from, except, desc) => {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
13
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
+
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
15
|
+
get: () => from[key],
|
|
16
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
return to;
|
|
19
20
|
};
|
|
20
|
-
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
21
|
-
value: true
|
|
22
|
-
}), mod);
|
|
21
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
23
22
|
var v4_exports = {};
|
|
24
|
-
__export(v4_exports, {
|
|
25
|
-
shorthands: () => shorthands
|
|
26
|
-
});
|
|
23
|
+
__export(v4_exports, { shorthands: () => shorthands });
|
|
27
24
|
module.exports = __toCommonJS(v4_exports);
|
|
28
25
|
const shorthands = createShorthands({
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
t: "top",
|
|
63
|
-
z: "zIndex"
|
|
26
|
+
text: "textAlign",
|
|
27
|
+
b: "bottom",
|
|
28
|
+
bg: "backgroundColor",
|
|
29
|
+
content: "alignContent",
|
|
30
|
+
grow: "flexGrow",
|
|
31
|
+
items: "alignItems",
|
|
32
|
+
justify: "justifyContent",
|
|
33
|
+
l: "left",
|
|
34
|
+
m: "margin",
|
|
35
|
+
maxH: "maxHeight",
|
|
36
|
+
maxW: "maxWidth",
|
|
37
|
+
mb: "marginBottom",
|
|
38
|
+
minH: "minHeight",
|
|
39
|
+
minW: "minWidth",
|
|
40
|
+
ml: "marginLeft",
|
|
41
|
+
mr: "marginRight",
|
|
42
|
+
mt: "marginTop",
|
|
43
|
+
mx: "marginHorizontal",
|
|
44
|
+
my: "marginVertical",
|
|
45
|
+
p: "padding",
|
|
46
|
+
pb: "paddingBottom",
|
|
47
|
+
pl: "paddingLeft",
|
|
48
|
+
pr: "paddingRight",
|
|
49
|
+
pt: "paddingTop",
|
|
50
|
+
px: "paddingHorizontal",
|
|
51
|
+
py: "paddingVertical",
|
|
52
|
+
r: "right",
|
|
53
|
+
rounded: "borderRadius",
|
|
54
|
+
select: "userSelect",
|
|
55
|
+
self: "alignSelf",
|
|
56
|
+
shrink: "flexShrink",
|
|
57
|
+
t: "top",
|
|
58
|
+
z: "zIndex"
|
|
64
59
|
});
|
|
65
60
|
function createShorthands(a) {
|
|
66
|
-
|
|
67
|
-
}
|
|
61
|
+
return a;
|
|
62
|
+
}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
var __defProp = Object.defineProperty;
|
|
5
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
6
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
for (var name in all) __defProp(target, name, {
|
|
10
|
+
get: all[name],
|
|
11
|
+
enumerable: true
|
|
12
|
+
});
|
|
13
|
+
};
|
|
14
|
+
var __copyProps = (to, from, except, desc) => {
|
|
15
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
16
|
+
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
17
|
+
get: () => from[key],
|
|
18
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
return to;
|
|
22
|
+
};
|
|
23
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
24
|
+
var v4_exports = {};
|
|
25
|
+
__export(v4_exports, { shorthands: () => shorthands });
|
|
26
|
+
module.exports = __toCommonJS(v4_exports);
|
|
27
|
+
var shorthands = createShorthands({
|
|
28
|
+
text: "textAlign",
|
|
29
|
+
b: "bottom",
|
|
30
|
+
bg: "backgroundColor",
|
|
31
|
+
content: "alignContent",
|
|
32
|
+
grow: "flexGrow",
|
|
33
|
+
items: "alignItems",
|
|
34
|
+
justify: "justifyContent",
|
|
35
|
+
l: "left",
|
|
36
|
+
m: "margin",
|
|
37
|
+
maxH: "maxHeight",
|
|
38
|
+
maxW: "maxWidth",
|
|
39
|
+
mb: "marginBottom",
|
|
40
|
+
minH: "minHeight",
|
|
41
|
+
minW: "minWidth",
|
|
42
|
+
ml: "marginLeft",
|
|
43
|
+
mr: "marginRight",
|
|
44
|
+
mt: "marginTop",
|
|
45
|
+
mx: "marginHorizontal",
|
|
46
|
+
my: "marginVertical",
|
|
47
|
+
p: "padding",
|
|
48
|
+
pb: "paddingBottom",
|
|
49
|
+
pl: "paddingLeft",
|
|
50
|
+
pr: "paddingRight",
|
|
51
|
+
pt: "paddingTop",
|
|
52
|
+
px: "paddingHorizontal",
|
|
53
|
+
py: "paddingVertical",
|
|
54
|
+
r: "right",
|
|
55
|
+
rounded: "borderRadius",
|
|
56
|
+
select: "userSelect",
|
|
57
|
+
self: "alignSelf",
|
|
58
|
+
shrink: "flexShrink",
|
|
59
|
+
t: "top",
|
|
60
|
+
z: "zIndex"
|
|
61
|
+
});
|
|
62
|
+
function createShorthands(a) {
|
|
63
|
+
return a;
|
|
64
|
+
}
|
package/dist/cjs/v4.native.js
CHANGED
|
@@ -1,70 +1,66 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
|
|
3
4
|
var __defProp = Object.defineProperty;
|
|
4
5
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
6
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
7
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
8
|
var __export = (target, all) => {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
for (var name in all) __defProp(target, name, {
|
|
10
|
+
get: all[name],
|
|
11
|
+
enumerable: true
|
|
12
|
+
});
|
|
12
13
|
};
|
|
13
14
|
var __copyProps = (to, from, except, desc) => {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
15
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
16
|
+
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
17
|
+
get: () => from[key],
|
|
18
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
return to;
|
|
21
22
|
};
|
|
22
|
-
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
23
|
-
value: true
|
|
24
|
-
}), mod);
|
|
23
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
25
24
|
var v4_exports = {};
|
|
26
|
-
__export(v4_exports, {
|
|
27
|
-
shorthands: () => shorthands
|
|
28
|
-
});
|
|
25
|
+
__export(v4_exports, { shorthands: () => shorthands });
|
|
29
26
|
module.exports = __toCommonJS(v4_exports);
|
|
30
27
|
var shorthands = createShorthands({
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
t: "top",
|
|
65
|
-
z: "zIndex"
|
|
28
|
+
text: "textAlign",
|
|
29
|
+
b: "bottom",
|
|
30
|
+
bg: "backgroundColor",
|
|
31
|
+
content: "alignContent",
|
|
32
|
+
grow: "flexGrow",
|
|
33
|
+
items: "alignItems",
|
|
34
|
+
justify: "justifyContent",
|
|
35
|
+
l: "left",
|
|
36
|
+
m: "margin",
|
|
37
|
+
maxH: "maxHeight",
|
|
38
|
+
maxW: "maxWidth",
|
|
39
|
+
mb: "marginBottom",
|
|
40
|
+
minH: "minHeight",
|
|
41
|
+
minW: "minWidth",
|
|
42
|
+
ml: "marginLeft",
|
|
43
|
+
mr: "marginRight",
|
|
44
|
+
mt: "marginTop",
|
|
45
|
+
mx: "marginHorizontal",
|
|
46
|
+
my: "marginVertical",
|
|
47
|
+
p: "padding",
|
|
48
|
+
pb: "paddingBottom",
|
|
49
|
+
pl: "paddingLeft",
|
|
50
|
+
pr: "paddingRight",
|
|
51
|
+
pt: "paddingTop",
|
|
52
|
+
px: "paddingHorizontal",
|
|
53
|
+
py: "paddingVertical",
|
|
54
|
+
r: "right",
|
|
55
|
+
rounded: "borderRadius",
|
|
56
|
+
select: "userSelect",
|
|
57
|
+
self: "alignSelf",
|
|
58
|
+
shrink: "flexShrink",
|
|
59
|
+
t: "top",
|
|
60
|
+
z: "zIndex"
|
|
66
61
|
});
|
|
67
62
|
function createShorthands(a) {
|
|
68
|
-
|
|
63
|
+
return a;
|
|
69
64
|
}
|
|
65
|
+
|
|
70
66
|
//# sourceMappingURL=v4.native.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"v4.native.js","names":[],"sources":["cjs/v4.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 v4_exports = {};\n__export(v4_exports, {\n shorthands: () => shorthands\n});\nmodule.exports = __toCommonJS(v4_exports);\nvar shorthands = createShorthands({\n // text\n text: \"textAlign\",\n // view\n b: \"bottom\",\n bg: \"backgroundColor\",\n content: \"alignContent\",\n grow: \"flexGrow\",\n items: \"alignItems\",\n justify: \"justifyContent\",\n l: \"left\",\n m: \"margin\",\n maxH: \"maxHeight\",\n maxW: \"maxWidth\",\n mb: \"marginBottom\",\n minH: \"minHeight\",\n minW: \"minWidth\",\n ml: \"marginLeft\",\n mr: \"marginRight\",\n mt: \"marginTop\",\n mx: \"marginHorizontal\",\n my: \"marginVertical\",\n p: \"padding\",\n pb: \"paddingBottom\",\n pl: \"paddingLeft\",\n pr: \"paddingRight\",\n pt: \"paddingTop\",\n px: \"paddingHorizontal\",\n py: \"paddingVertical\",\n r: \"right\",\n rounded: \"borderRadius\",\n select: \"userSelect\",\n self: \"alignSelf\",\n shrink: \"flexShrink\",\n t: \"top\",\n z: \"zIndex\"\n});\nfunction createShorthands(a) {\n return a;\n}\n//# sourceMappingURL=v4.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,aAAa,CAAC;AAClB,SAAS,YAAY,EACnB,kBAAkB,WACpB,CAAC;AACD,OAAO,UAAU,aAAa,UAAU;AACxC,IAAI,aAAa,iBAAiB;CAEhC,MAAM;CAEN,GAAG;CACH,IAAI;CACJ,SAAS;CACT,MAAM;CACN,OAAO;CACP,SAAS;CACT,GAAG;CACH,GAAG;CACH,MAAM;CACN,MAAM;CACN,IAAI;CACJ,MAAM;CACN,MAAM;CACN,IAAI;CACJ,IAAI;CACJ,IAAI;CACJ,IAAI;CACJ,IAAI;CACJ,GAAG;CACH,IAAI;CACJ,IAAI;CACJ,IAAI;CACJ,IAAI;CACJ,IAAI;CACJ,IAAI;CACJ,GAAG;CACH,SAAS;CACT,QAAQ;CACR,MAAM;CACN,QAAQ;CACR,GAAG;CACH,GAAG;AACL,CAAC;AACD,SAAS,iBAAiB,GAAG;CAC3B,OAAO;AACT"}
|
package/dist/cjs/v5.cjs
CHANGED
|
@@ -1,67 +1,62 @@
|
|
|
1
|
+
|
|
1
2
|
var __defProp = Object.defineProperty;
|
|
2
3
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
4
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
5
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
6
|
var __export = (target, all) => {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
for (var name in all) __defProp(target, name, {
|
|
8
|
+
get: all[name],
|
|
9
|
+
enumerable: true
|
|
10
|
+
});
|
|
10
11
|
};
|
|
11
12
|
var __copyProps = (to, from, except, desc) => {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
13
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
+
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
15
|
+
get: () => from[key],
|
|
16
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
return to;
|
|
19
20
|
};
|
|
20
|
-
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
21
|
-
value: true
|
|
22
|
-
}), mod);
|
|
21
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
23
22
|
var v5_exports = {};
|
|
24
|
-
__export(v5_exports, {
|
|
25
|
-
shorthands: () => shorthands
|
|
26
|
-
});
|
|
23
|
+
__export(v5_exports, { shorthands: () => shorthands });
|
|
27
24
|
module.exports = __toCommonJS(v5_exports);
|
|
28
25
|
const shorthands = createShorthands({
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
t: "top",
|
|
63
|
-
z: "zIndex"
|
|
26
|
+
text: "textAlign",
|
|
27
|
+
b: "bottom",
|
|
28
|
+
bg: "backgroundColor",
|
|
29
|
+
content: "alignContent",
|
|
30
|
+
grow: "flexGrow",
|
|
31
|
+
items: "alignItems",
|
|
32
|
+
justify: "justifyContent",
|
|
33
|
+
l: "left",
|
|
34
|
+
m: "margin",
|
|
35
|
+
maxH: "maxHeight",
|
|
36
|
+
maxW: "maxWidth",
|
|
37
|
+
mb: "marginBottom",
|
|
38
|
+
minH: "minHeight",
|
|
39
|
+
minW: "minWidth",
|
|
40
|
+
ml: "marginLeft",
|
|
41
|
+
mr: "marginRight",
|
|
42
|
+
mt: "marginTop",
|
|
43
|
+
mx: "marginHorizontal",
|
|
44
|
+
my: "marginVertical",
|
|
45
|
+
p: "padding",
|
|
46
|
+
pb: "paddingBottom",
|
|
47
|
+
pl: "paddingLeft",
|
|
48
|
+
pr: "paddingRight",
|
|
49
|
+
pt: "paddingTop",
|
|
50
|
+
px: "paddingHorizontal",
|
|
51
|
+
py: "paddingVertical",
|
|
52
|
+
r: "right",
|
|
53
|
+
rounded: "borderRadius",
|
|
54
|
+
select: "userSelect",
|
|
55
|
+
self: "alignSelf",
|
|
56
|
+
shrink: "flexShrink",
|
|
57
|
+
t: "top",
|
|
58
|
+
z: "zIndex"
|
|
64
59
|
});
|
|
65
60
|
function createShorthands(a) {
|
|
66
|
-
|
|
67
|
-
}
|
|
61
|
+
return a;
|
|
62
|
+
}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
var __defProp = Object.defineProperty;
|
|
5
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
6
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
for (var name in all) __defProp(target, name, {
|
|
10
|
+
get: all[name],
|
|
11
|
+
enumerable: true
|
|
12
|
+
});
|
|
13
|
+
};
|
|
14
|
+
var __copyProps = (to, from, except, desc) => {
|
|
15
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
16
|
+
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
17
|
+
get: () => from[key],
|
|
18
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
return to;
|
|
22
|
+
};
|
|
23
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
24
|
+
var v5_exports = {};
|
|
25
|
+
__export(v5_exports, { shorthands: () => shorthands });
|
|
26
|
+
module.exports = __toCommonJS(v5_exports);
|
|
27
|
+
var shorthands = createShorthands({
|
|
28
|
+
text: "textAlign",
|
|
29
|
+
b: "bottom",
|
|
30
|
+
bg: "backgroundColor",
|
|
31
|
+
content: "alignContent",
|
|
32
|
+
grow: "flexGrow",
|
|
33
|
+
items: "alignItems",
|
|
34
|
+
justify: "justifyContent",
|
|
35
|
+
l: "left",
|
|
36
|
+
m: "margin",
|
|
37
|
+
maxH: "maxHeight",
|
|
38
|
+
maxW: "maxWidth",
|
|
39
|
+
mb: "marginBottom",
|
|
40
|
+
minH: "minHeight",
|
|
41
|
+
minW: "minWidth",
|
|
42
|
+
ml: "marginLeft",
|
|
43
|
+
mr: "marginRight",
|
|
44
|
+
mt: "marginTop",
|
|
45
|
+
mx: "marginHorizontal",
|
|
46
|
+
my: "marginVertical",
|
|
47
|
+
p: "padding",
|
|
48
|
+
pb: "paddingBottom",
|
|
49
|
+
pl: "paddingLeft",
|
|
50
|
+
pr: "paddingRight",
|
|
51
|
+
pt: "paddingTop",
|
|
52
|
+
px: "paddingHorizontal",
|
|
53
|
+
py: "paddingVertical",
|
|
54
|
+
r: "right",
|
|
55
|
+
rounded: "borderRadius",
|
|
56
|
+
select: "userSelect",
|
|
57
|
+
self: "alignSelf",
|
|
58
|
+
shrink: "flexShrink",
|
|
59
|
+
t: "top",
|
|
60
|
+
z: "zIndex"
|
|
61
|
+
});
|
|
62
|
+
function createShorthands(a) {
|
|
63
|
+
return a;
|
|
64
|
+
}
|
package/dist/cjs/v5.native.js
CHANGED
|
@@ -1,70 +1,66 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
|
|
3
4
|
var __defProp = Object.defineProperty;
|
|
4
5
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
6
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
7
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
8
|
var __export = (target, all) => {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
for (var name in all) __defProp(target, name, {
|
|
10
|
+
get: all[name],
|
|
11
|
+
enumerable: true
|
|
12
|
+
});
|
|
12
13
|
};
|
|
13
14
|
var __copyProps = (to, from, except, desc) => {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
15
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
16
|
+
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
17
|
+
get: () => from[key],
|
|
18
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
return to;
|
|
21
22
|
};
|
|
22
|
-
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
23
|
-
value: true
|
|
24
|
-
}), mod);
|
|
23
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
25
24
|
var v5_exports = {};
|
|
26
|
-
__export(v5_exports, {
|
|
27
|
-
shorthands: () => shorthands
|
|
28
|
-
});
|
|
25
|
+
__export(v5_exports, { shorthands: () => shorthands });
|
|
29
26
|
module.exports = __toCommonJS(v5_exports);
|
|
30
27
|
var shorthands = createShorthands({
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
t: "top",
|
|
65
|
-
z: "zIndex"
|
|
28
|
+
text: "textAlign",
|
|
29
|
+
b: "bottom",
|
|
30
|
+
bg: "backgroundColor",
|
|
31
|
+
content: "alignContent",
|
|
32
|
+
grow: "flexGrow",
|
|
33
|
+
items: "alignItems",
|
|
34
|
+
justify: "justifyContent",
|
|
35
|
+
l: "left",
|
|
36
|
+
m: "margin",
|
|
37
|
+
maxH: "maxHeight",
|
|
38
|
+
maxW: "maxWidth",
|
|
39
|
+
mb: "marginBottom",
|
|
40
|
+
minH: "minHeight",
|
|
41
|
+
minW: "minWidth",
|
|
42
|
+
ml: "marginLeft",
|
|
43
|
+
mr: "marginRight",
|
|
44
|
+
mt: "marginTop",
|
|
45
|
+
mx: "marginHorizontal",
|
|
46
|
+
my: "marginVertical",
|
|
47
|
+
p: "padding",
|
|
48
|
+
pb: "paddingBottom",
|
|
49
|
+
pl: "paddingLeft",
|
|
50
|
+
pr: "paddingRight",
|
|
51
|
+
pt: "paddingTop",
|
|
52
|
+
px: "paddingHorizontal",
|
|
53
|
+
py: "paddingVertical",
|
|
54
|
+
r: "right",
|
|
55
|
+
rounded: "borderRadius",
|
|
56
|
+
select: "userSelect",
|
|
57
|
+
self: "alignSelf",
|
|
58
|
+
shrink: "flexShrink",
|
|
59
|
+
t: "top",
|
|
60
|
+
z: "zIndex"
|
|
66
61
|
});
|
|
67
62
|
function createShorthands(a) {
|
|
68
|
-
|
|
63
|
+
return a;
|
|
69
64
|
}
|
|
65
|
+
|
|
70
66
|
//# sourceMappingURL=v5.native.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"v5.native.js","names":[],"sources":["cjs/v5.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 v5_exports = {};\n__export(v5_exports, {\n shorthands: () => shorthands\n});\nmodule.exports = __toCommonJS(v5_exports);\nvar shorthands = createShorthands({\n // text\n text: \"textAlign\",\n // view\n b: \"bottom\",\n bg: \"backgroundColor\",\n content: \"alignContent\",\n grow: \"flexGrow\",\n items: \"alignItems\",\n justify: \"justifyContent\",\n l: \"left\",\n m: \"margin\",\n maxH: \"maxHeight\",\n maxW: \"maxWidth\",\n mb: \"marginBottom\",\n minH: \"minHeight\",\n minW: \"minWidth\",\n ml: \"marginLeft\",\n mr: \"marginRight\",\n mt: \"marginTop\",\n mx: \"marginHorizontal\",\n my: \"marginVertical\",\n p: \"padding\",\n pb: \"paddingBottom\",\n pl: \"paddingLeft\",\n pr: \"paddingRight\",\n pt: \"paddingTop\",\n px: \"paddingHorizontal\",\n py: \"paddingVertical\",\n r: \"right\",\n rounded: \"borderRadius\",\n select: \"userSelect\",\n self: \"alignSelf\",\n shrink: \"flexShrink\",\n t: \"top\",\n z: \"zIndex\"\n});\nfunction createShorthands(a) {\n return a;\n}\n//# sourceMappingURL=v5.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,aAAa,CAAC;AAClB,SAAS,YAAY,EACnB,kBAAkB,WACpB,CAAC;AACD,OAAO,UAAU,aAAa,UAAU;AACxC,IAAI,aAAa,iBAAiB;CAEhC,MAAM;CAEN,GAAG;CACH,IAAI;CACJ,SAAS;CACT,MAAM;CACN,OAAO;CACP,SAAS;CACT,GAAG;CACH,GAAG;CACH,MAAM;CACN,MAAM;CACN,IAAI;CACJ,MAAM;CACN,MAAM;CACN,IAAI;CACJ,IAAI;CACJ,IAAI;CACJ,IAAI;CACJ,IAAI;CACJ,GAAG;CACH,IAAI;CACJ,IAAI;CACJ,IAAI;CACJ,IAAI;CACJ,IAAI;CACJ,IAAI;CACJ,GAAG;CACH,SAAS;CACT,QAAQ;CACR,MAAM;CACN,QAAQ;CACR,GAAG;CACH,GAAG;AACL,CAAC;AACD,SAAS,iBAAiB,GAAG;CAC3B,OAAO;AACT"}
|