@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/v6.cjs
ADDED
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all) __defProp(target, name, {
|
|
8
|
+
get: all[name],
|
|
9
|
+
enumerable: true
|
|
10
|
+
});
|
|
11
|
+
};
|
|
12
|
+
var __copyProps = (to, from, except, desc) => {
|
|
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;
|
|
20
|
+
};
|
|
21
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
22
|
+
var v6_exports = {};
|
|
23
|
+
__export(v6_exports, { shorthands: () => shorthands });
|
|
24
|
+
module.exports = __toCommonJS(v6_exports);
|
|
25
|
+
const shorthands = createShorthands({
|
|
26
|
+
text: "textAlign",
|
|
27
|
+
b: "bottom",
|
|
28
|
+
bg: "background",
|
|
29
|
+
content: "alignContent",
|
|
30
|
+
grow: "flexGrow",
|
|
31
|
+
h: "height",
|
|
32
|
+
items: "alignItems",
|
|
33
|
+
justify: "justifyContent",
|
|
34
|
+
l: "left",
|
|
35
|
+
m: "margin",
|
|
36
|
+
maxH: "maxHeight",
|
|
37
|
+
maxW: "maxWidth",
|
|
38
|
+
mb: "marginBottom",
|
|
39
|
+
minH: "minHeight",
|
|
40
|
+
minW: "minWidth",
|
|
41
|
+
ml: "marginLeft",
|
|
42
|
+
mr: "marginRight",
|
|
43
|
+
mt: "marginTop",
|
|
44
|
+
mx: "marginHorizontal",
|
|
45
|
+
my: "marginVertical",
|
|
46
|
+
p: "padding",
|
|
47
|
+
pb: "paddingBottom",
|
|
48
|
+
pl: "paddingLeft",
|
|
49
|
+
pr: "paddingRight",
|
|
50
|
+
pt: "paddingTop",
|
|
51
|
+
px: "paddingHorizontal",
|
|
52
|
+
py: "paddingVertical",
|
|
53
|
+
r: "right",
|
|
54
|
+
rounded: "borderRadius",
|
|
55
|
+
select: "userSelect",
|
|
56
|
+
self: "alignSelf",
|
|
57
|
+
shrink: "flexShrink",
|
|
58
|
+
t: "top",
|
|
59
|
+
w: "width",
|
|
60
|
+
z: "zIndex"
|
|
61
|
+
});
|
|
62
|
+
function createShorthands(a) {
|
|
63
|
+
return a;
|
|
64
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
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 v6_exports = {};
|
|
25
|
+
__export(v6_exports, { shorthands: () => shorthands });
|
|
26
|
+
module.exports = __toCommonJS(v6_exports);
|
|
27
|
+
var shorthands = createShorthands({
|
|
28
|
+
text: "textAlign",
|
|
29
|
+
b: "bottom",
|
|
30
|
+
bg: "background",
|
|
31
|
+
content: "alignContent",
|
|
32
|
+
grow: "flexGrow",
|
|
33
|
+
h: "height",
|
|
34
|
+
items: "alignItems",
|
|
35
|
+
justify: "justifyContent",
|
|
36
|
+
l: "left",
|
|
37
|
+
m: "margin",
|
|
38
|
+
maxH: "maxHeight",
|
|
39
|
+
maxW: "maxWidth",
|
|
40
|
+
mb: "marginBottom",
|
|
41
|
+
minH: "minHeight",
|
|
42
|
+
minW: "minWidth",
|
|
43
|
+
ml: "marginLeft",
|
|
44
|
+
mr: "marginRight",
|
|
45
|
+
mt: "marginTop",
|
|
46
|
+
mx: "marginHorizontal",
|
|
47
|
+
my: "marginVertical",
|
|
48
|
+
p: "padding",
|
|
49
|
+
pb: "paddingBottom",
|
|
50
|
+
pl: "paddingLeft",
|
|
51
|
+
pr: "paddingRight",
|
|
52
|
+
pt: "paddingTop",
|
|
53
|
+
px: "paddingHorizontal",
|
|
54
|
+
py: "paddingVertical",
|
|
55
|
+
r: "right",
|
|
56
|
+
rounded: "borderRadius",
|
|
57
|
+
select: "userSelect",
|
|
58
|
+
self: "alignSelf",
|
|
59
|
+
shrink: "flexShrink",
|
|
60
|
+
t: "top",
|
|
61
|
+
w: "width",
|
|
62
|
+
z: "zIndex"
|
|
63
|
+
});
|
|
64
|
+
function createShorthands(a) {
|
|
65
|
+
return a;
|
|
66
|
+
}
|
|
@@ -0,0 +1,68 @@
|
|
|
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 v6_exports = {};
|
|
25
|
+
__export(v6_exports, { shorthands: () => shorthands });
|
|
26
|
+
module.exports = __toCommonJS(v6_exports);
|
|
27
|
+
var shorthands = createShorthands({
|
|
28
|
+
text: "textAlign",
|
|
29
|
+
b: "bottom",
|
|
30
|
+
bg: "background",
|
|
31
|
+
content: "alignContent",
|
|
32
|
+
grow: "flexGrow",
|
|
33
|
+
h: "height",
|
|
34
|
+
items: "alignItems",
|
|
35
|
+
justify: "justifyContent",
|
|
36
|
+
l: "left",
|
|
37
|
+
m: "margin",
|
|
38
|
+
maxH: "maxHeight",
|
|
39
|
+
maxW: "maxWidth",
|
|
40
|
+
mb: "marginBottom",
|
|
41
|
+
minH: "minHeight",
|
|
42
|
+
minW: "minWidth",
|
|
43
|
+
ml: "marginLeft",
|
|
44
|
+
mr: "marginRight",
|
|
45
|
+
mt: "marginTop",
|
|
46
|
+
mx: "marginHorizontal",
|
|
47
|
+
my: "marginVertical",
|
|
48
|
+
p: "padding",
|
|
49
|
+
pb: "paddingBottom",
|
|
50
|
+
pl: "paddingLeft",
|
|
51
|
+
pr: "paddingRight",
|
|
52
|
+
pt: "paddingTop",
|
|
53
|
+
px: "paddingHorizontal",
|
|
54
|
+
py: "paddingVertical",
|
|
55
|
+
r: "right",
|
|
56
|
+
rounded: "borderRadius",
|
|
57
|
+
select: "userSelect",
|
|
58
|
+
self: "alignSelf",
|
|
59
|
+
shrink: "flexShrink",
|
|
60
|
+
t: "top",
|
|
61
|
+
w: "width",
|
|
62
|
+
z: "zIndex"
|
|
63
|
+
});
|
|
64
|
+
function createShorthands(a) {
|
|
65
|
+
return a;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
//# sourceMappingURL=v6.native.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"v6.native.js","names":[],"sources":["cjs/v6.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 v6_exports = {};\n__export(v6_exports, {\n shorthands: () => shorthands\n});\nmodule.exports = __toCommonJS(v6_exports);\nvar shorthands = createShorthands({\n // text\n text: \"textAlign\",\n // view\n b: \"bottom\",\n bg: \"background\",\n content: \"alignContent\",\n grow: \"flexGrow\",\n h: \"height\",\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 w: \"width\",\n z: \"zIndex\"\n});\nfunction createShorthands(a) {\n return a;\n}\n//# sourceMappingURL=v6.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,GAAG;CACH,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;CACH,GAAG;AACL,CAAC;AACD,SAAS,iBAAiB,GAAG;CAC3B,OAAO;AACT"}
|
package/dist/esm/index.js
CHANGED
|
@@ -1,82 +1,78 @@
|
|
|
1
1
|
const shorthands = {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
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
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
shop: "shadowOpacity",
|
|
77
|
-
t: "top",
|
|
78
|
-
w: "width",
|
|
79
|
-
zi: "zIndex"
|
|
2
|
+
ussel: "userSelect",
|
|
3
|
+
cur: "cursor",
|
|
4
|
+
pe: "pointerEvents",
|
|
5
|
+
col: "color",
|
|
6
|
+
ff: "fontFamily",
|
|
7
|
+
fos: "fontSize",
|
|
8
|
+
fost: "fontStyle",
|
|
9
|
+
fow: "fontWeight",
|
|
10
|
+
ls: "letterSpacing",
|
|
11
|
+
lh: "lineHeight",
|
|
12
|
+
ta: "textAlign",
|
|
13
|
+
tt: "textTransform",
|
|
14
|
+
ww: "wordWrap",
|
|
15
|
+
ac: "alignContent",
|
|
16
|
+
ai: "alignItems",
|
|
17
|
+
als: "alignSelf",
|
|
18
|
+
b: "bottom",
|
|
19
|
+
bc: "backgroundColor",
|
|
20
|
+
bg: "backgroundColor",
|
|
21
|
+
bbc: "borderBottomColor",
|
|
22
|
+
bblr: "borderBottomLeftRadius",
|
|
23
|
+
bbrr: "borderBottomRightRadius",
|
|
24
|
+
bbw: "borderBottomWidth",
|
|
25
|
+
blc: "borderLeftColor",
|
|
26
|
+
blw: "borderLeftWidth",
|
|
27
|
+
boc: "borderColor",
|
|
28
|
+
br: "borderRadius",
|
|
29
|
+
bs: "borderStyle",
|
|
30
|
+
brw: "borderRightWidth",
|
|
31
|
+
brc: "borderRightColor",
|
|
32
|
+
btc: "borderTopColor",
|
|
33
|
+
btlr: "borderTopLeftRadius",
|
|
34
|
+
btrr: "borderTopRightRadius",
|
|
35
|
+
btw: "borderTopWidth",
|
|
36
|
+
bw: "borderWidth",
|
|
37
|
+
dsp: "display",
|
|
38
|
+
f: "flex",
|
|
39
|
+
fb: "flexBasis",
|
|
40
|
+
fd: "flexDirection",
|
|
41
|
+
fg: "flexGrow",
|
|
42
|
+
fs: "flexShrink",
|
|
43
|
+
fw: "flexWrap",
|
|
44
|
+
h: "height",
|
|
45
|
+
jc: "justifyContent",
|
|
46
|
+
l: "left",
|
|
47
|
+
m: "margin",
|
|
48
|
+
mah: "maxHeight",
|
|
49
|
+
maw: "maxWidth",
|
|
50
|
+
mb: "marginBottom",
|
|
51
|
+
mih: "minHeight",
|
|
52
|
+
miw: "minWidth",
|
|
53
|
+
ml: "marginLeft",
|
|
54
|
+
mr: "marginRight",
|
|
55
|
+
mt: "marginTop",
|
|
56
|
+
mx: "marginHorizontal",
|
|
57
|
+
my: "marginVertical",
|
|
58
|
+
o: "opacity",
|
|
59
|
+
ov: "overflow",
|
|
60
|
+
p: "padding",
|
|
61
|
+
pb: "paddingBottom",
|
|
62
|
+
pl: "paddingLeft",
|
|
63
|
+
pos: "position",
|
|
64
|
+
pr: "paddingRight",
|
|
65
|
+
pt: "paddingTop",
|
|
66
|
+
px: "paddingHorizontal",
|
|
67
|
+
py: "paddingVertical",
|
|
68
|
+
r: "right",
|
|
69
|
+
shac: "shadowColor",
|
|
70
|
+
shar: "shadowRadius",
|
|
71
|
+
shof: "shadowOffset",
|
|
72
|
+
shop: "shadowOpacity",
|
|
73
|
+
t: "top",
|
|
74
|
+
w: "width",
|
|
75
|
+
zi: "zIndex"
|
|
80
76
|
};
|
|
81
77
|
shorthands["bls"] = "borderLeftStyle";
|
|
82
78
|
shorthands["brs"] = "borderRightStyle";
|
|
@@ -87,5 +83,6 @@ shorthands["bxsh"] = "boxShadow";
|
|
|
87
83
|
shorthands["ox"] = "overflowX";
|
|
88
84
|
shorthands["oy"] = "overflowY";
|
|
89
85
|
shorthands["ol"] = "outline";
|
|
86
|
+
|
|
90
87
|
export { shorthands };
|
|
91
88
|
//# sourceMappingURL=index.js.map
|
package/dist/esm/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["esm/index.js"],"sourcesContent":["const shorthands = {\n // web-only\n ussel: \"userSelect\",\n cur: \"cursor\",\n // tamagui\n pe: \"pointerEvents\",\n // text\n col: \"color\",\n ff: \"fontFamily\",\n fos: \"fontSize\",\n fost: \"fontStyle\",\n fow: \"fontWeight\",\n ls: \"letterSpacing\",\n lh: \"lineHeight\",\n ta: \"textAlign\",\n tt: \"textTransform\",\n ww: \"wordWrap\",\n // view\n ac: \"alignContent\",\n ai: \"alignItems\",\n als: \"alignSelf\",\n b: \"bottom\",\n bc: \"backgroundColor\",\n bg: \"backgroundColor\",\n bbc: \"borderBottomColor\",\n bblr: \"borderBottomLeftRadius\",\n bbrr: \"borderBottomRightRadius\",\n bbw: \"borderBottomWidth\",\n blc: \"borderLeftColor\",\n blw: \"borderLeftWidth\",\n boc: \"borderColor\",\n br: \"borderRadius\",\n bs: \"borderStyle\",\n brw: \"borderRightWidth\",\n brc: \"borderRightColor\",\n btc: \"borderTopColor\",\n btlr: \"borderTopLeftRadius\",\n btrr: \"borderTopRightRadius\",\n btw: \"borderTopWidth\",\n bw: \"borderWidth\",\n dsp: \"display\",\n f: \"flex\",\n fb: \"flexBasis\",\n fd: \"flexDirection\",\n fg: \"flexGrow\",\n fs: \"flexShrink\",\n fw: \"flexWrap\",\n h: \"height\",\n jc: \"justifyContent\",\n l: \"left\",\n m: \"margin\",\n mah: \"maxHeight\",\n maw: \"maxWidth\",\n mb: \"marginBottom\",\n mih: \"minHeight\",\n miw: \"minWidth\",\n ml: \"marginLeft\",\n mr: \"marginRight\",\n mt: \"marginTop\",\n mx: \"marginHorizontal\",\n my: \"marginVertical\",\n o: \"opacity\",\n ov: \"overflow\",\n p: \"padding\",\n pb: \"paddingBottom\",\n pl: \"paddingLeft\",\n pos: \"position\",\n pr: \"paddingRight\",\n pt: \"paddingTop\",\n px: \"paddingHorizontal\",\n py: \"paddingVertical\",\n r: \"right\",\n shac: \"shadowColor\",\n shar: \"shadowRadius\",\n shof: \"shadowOffset\",\n shop: \"shadowOpacity\",\n t: \"top\",\n w: \"width\",\n zi: \"zIndex\"\n};\nshorthands[\"bls\"] = \"borderLeftStyle\";\nshorthands[\"brs\"] = \"borderRightStyle\";\nshorthands[\"bts\"] = \"borderTopStyle\";\nshorthands[\"bbs\"] = \"borderBottomStyle\";\nshorthands[\"bxs\"] = \"boxSizing\";\nshorthands[\"bxsh\"] = \"boxShadow\";\nshorthands[\"ox\"] = \"overflowX\";\nshorthands[\"oy\"] = \"overflowY\";\nshorthands[\"ol\"] = \"outline\";\nexport {\n shorthands\n};\n//# sourceMappingURL=index.js.map\n"],"mappings":";AAAA,MAAM,aAAa;CAEjB,OAAO;CACP,KAAK;CAEL,IAAI;CAEJ,KAAK;CACL,IAAI;CACJ,KAAK;CACL,MAAM;CACN,KAAK;CACL,IAAI;CACJ,IAAI;CACJ,IAAI;CACJ,IAAI;CACJ,IAAI;CAEJ,IAAI;CACJ,IAAI;CACJ,KAAK;CACL,GAAG;CACH,IAAI;CACJ,IAAI;CACJ,KAAK;CACL,MAAM;CACN,MAAM;CACN,KAAK;CACL,KAAK;CACL,KAAK;CACL,KAAK;CACL,IAAI;CACJ,IAAI;CACJ,KAAK;CACL,KAAK;CACL,KAAK;CACL,MAAM;CACN,MAAM;CACN,KAAK;CACL,IAAI;CACJ,KAAK;CACL,GAAG;CACH,IAAI;CACJ,IAAI;CACJ,IAAI;CACJ,IAAI;CACJ,IAAI;CACJ,GAAG;CACH,IAAI;CACJ,GAAG;CACH,GAAG;CACH,KAAK;CACL,KAAK;CACL,IAAI;CACJ,KAAK;CACL,KAAK;CACL,IAAI;CACJ,IAAI;CACJ,IAAI;CACJ,IAAI;CACJ,IAAI;CACJ,GAAG;CACH,IAAI;CACJ,GAAG;CACH,IAAI;CACJ,IAAI;CACJ,KAAK;CACL,IAAI;CACJ,IAAI;CACJ,IAAI;CACJ,IAAI;CACJ,GAAG;CACH,MAAM;CACN,MAAM;CACN,MAAM;CACN,MAAM;CACN,GAAG;CACH,GAAG;CACH,IAAI;AACN;AACA,WAAW,SAAS;AACpB,WAAW,SAAS;AACpB,WAAW,SAAS;AACpB,WAAW,SAAS;AACpB,WAAW,SAAS;AACpB,WAAW,UAAU;AACrB,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB,WAAW,QAAQ"}
|
package/dist/esm/index.mjs
CHANGED
|
@@ -1,82 +1,78 @@
|
|
|
1
1
|
const shorthands = {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
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
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
shop: "shadowOpacity",
|
|
77
|
-
t: "top",
|
|
78
|
-
w: "width",
|
|
79
|
-
zi: "zIndex"
|
|
2
|
+
ussel: "userSelect",
|
|
3
|
+
cur: "cursor",
|
|
4
|
+
pe: "pointerEvents",
|
|
5
|
+
col: "color",
|
|
6
|
+
ff: "fontFamily",
|
|
7
|
+
fos: "fontSize",
|
|
8
|
+
fost: "fontStyle",
|
|
9
|
+
fow: "fontWeight",
|
|
10
|
+
ls: "letterSpacing",
|
|
11
|
+
lh: "lineHeight",
|
|
12
|
+
ta: "textAlign",
|
|
13
|
+
tt: "textTransform",
|
|
14
|
+
ww: "wordWrap",
|
|
15
|
+
ac: "alignContent",
|
|
16
|
+
ai: "alignItems",
|
|
17
|
+
als: "alignSelf",
|
|
18
|
+
b: "bottom",
|
|
19
|
+
bc: "backgroundColor",
|
|
20
|
+
bg: "backgroundColor",
|
|
21
|
+
bbc: "borderBottomColor",
|
|
22
|
+
bblr: "borderBottomLeftRadius",
|
|
23
|
+
bbrr: "borderBottomRightRadius",
|
|
24
|
+
bbw: "borderBottomWidth",
|
|
25
|
+
blc: "borderLeftColor",
|
|
26
|
+
blw: "borderLeftWidth",
|
|
27
|
+
boc: "borderColor",
|
|
28
|
+
br: "borderRadius",
|
|
29
|
+
bs: "borderStyle",
|
|
30
|
+
brw: "borderRightWidth",
|
|
31
|
+
brc: "borderRightColor",
|
|
32
|
+
btc: "borderTopColor",
|
|
33
|
+
btlr: "borderTopLeftRadius",
|
|
34
|
+
btrr: "borderTopRightRadius",
|
|
35
|
+
btw: "borderTopWidth",
|
|
36
|
+
bw: "borderWidth",
|
|
37
|
+
dsp: "display",
|
|
38
|
+
f: "flex",
|
|
39
|
+
fb: "flexBasis",
|
|
40
|
+
fd: "flexDirection",
|
|
41
|
+
fg: "flexGrow",
|
|
42
|
+
fs: "flexShrink",
|
|
43
|
+
fw: "flexWrap",
|
|
44
|
+
h: "height",
|
|
45
|
+
jc: "justifyContent",
|
|
46
|
+
l: "left",
|
|
47
|
+
m: "margin",
|
|
48
|
+
mah: "maxHeight",
|
|
49
|
+
maw: "maxWidth",
|
|
50
|
+
mb: "marginBottom",
|
|
51
|
+
mih: "minHeight",
|
|
52
|
+
miw: "minWidth",
|
|
53
|
+
ml: "marginLeft",
|
|
54
|
+
mr: "marginRight",
|
|
55
|
+
mt: "marginTop",
|
|
56
|
+
mx: "marginHorizontal",
|
|
57
|
+
my: "marginVertical",
|
|
58
|
+
o: "opacity",
|
|
59
|
+
ov: "overflow",
|
|
60
|
+
p: "padding",
|
|
61
|
+
pb: "paddingBottom",
|
|
62
|
+
pl: "paddingLeft",
|
|
63
|
+
pos: "position",
|
|
64
|
+
pr: "paddingRight",
|
|
65
|
+
pt: "paddingTop",
|
|
66
|
+
px: "paddingHorizontal",
|
|
67
|
+
py: "paddingVertical",
|
|
68
|
+
r: "right",
|
|
69
|
+
shac: "shadowColor",
|
|
70
|
+
shar: "shadowRadius",
|
|
71
|
+
shof: "shadowOffset",
|
|
72
|
+
shop: "shadowOpacity",
|
|
73
|
+
t: "top",
|
|
74
|
+
w: "width",
|
|
75
|
+
zi: "zIndex"
|
|
80
76
|
};
|
|
81
77
|
shorthands["bls"] = "borderLeftStyle";
|
|
82
78
|
shorthands["brs"] = "borderRightStyle";
|
|
@@ -87,5 +83,6 @@ shorthands["bxsh"] = "boxShadow";
|
|
|
87
83
|
shorthands["ox"] = "overflowX";
|
|
88
84
|
shorthands["oy"] = "overflowY";
|
|
89
85
|
shorthands["ol"] = "outline";
|
|
86
|
+
|
|
90
87
|
export { shorthands };
|
|
91
88
|
//# sourceMappingURL=index.mjs.map
|
package/dist/esm/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["esm/index.js"],"sourcesContent":["const shorthands = {\n // web-only\n ussel: \"userSelect\",\n cur: \"cursor\",\n // tamagui\n pe: \"pointerEvents\",\n // text\n col: \"color\",\n ff: \"fontFamily\",\n fos: \"fontSize\",\n fost: \"fontStyle\",\n fow: \"fontWeight\",\n ls: \"letterSpacing\",\n lh: \"lineHeight\",\n ta: \"textAlign\",\n tt: \"textTransform\",\n ww: \"wordWrap\",\n // view\n ac: \"alignContent\",\n ai: \"alignItems\",\n als: \"alignSelf\",\n b: \"bottom\",\n bc: \"backgroundColor\",\n bg: \"backgroundColor\",\n bbc: \"borderBottomColor\",\n bblr: \"borderBottomLeftRadius\",\n bbrr: \"borderBottomRightRadius\",\n bbw: \"borderBottomWidth\",\n blc: \"borderLeftColor\",\n blw: \"borderLeftWidth\",\n boc: \"borderColor\",\n br: \"borderRadius\",\n bs: \"borderStyle\",\n brw: \"borderRightWidth\",\n brc: \"borderRightColor\",\n btc: \"borderTopColor\",\n btlr: \"borderTopLeftRadius\",\n btrr: \"borderTopRightRadius\",\n btw: \"borderTopWidth\",\n bw: \"borderWidth\",\n dsp: \"display\",\n f: \"flex\",\n fb: \"flexBasis\",\n fd: \"flexDirection\",\n fg: \"flexGrow\",\n fs: \"flexShrink\",\n fw: \"flexWrap\",\n h: \"height\",\n jc: \"justifyContent\",\n l: \"left\",\n m: \"margin\",\n mah: \"maxHeight\",\n maw: \"maxWidth\",\n mb: \"marginBottom\",\n mih: \"minHeight\",\n miw: \"minWidth\",\n ml: \"marginLeft\",\n mr: \"marginRight\",\n mt: \"marginTop\",\n mx: \"marginHorizontal\",\n my: \"marginVertical\",\n o: \"opacity\",\n ov: \"overflow\",\n p: \"padding\",\n pb: \"paddingBottom\",\n pl: \"paddingLeft\",\n pos: \"position\",\n pr: \"paddingRight\",\n pt: \"paddingTop\",\n px: \"paddingHorizontal\",\n py: \"paddingVertical\",\n r: \"right\",\n shac: \"shadowColor\",\n shar: \"shadowRadius\",\n shof: \"shadowOffset\",\n shop: \"shadowOpacity\",\n t: \"top\",\n w: \"width\",\n zi: \"zIndex\"\n};\nshorthands[\"bls\"] = \"borderLeftStyle\";\nshorthands[\"brs\"] = \"borderRightStyle\";\nshorthands[\"bts\"] = \"borderTopStyle\";\nshorthands[\"bbs\"] = \"borderBottomStyle\";\nshorthands[\"bxs\"] = \"boxSizing\";\nshorthands[\"bxsh\"] = \"boxShadow\";\nshorthands[\"ox\"] = \"overflowX\";\nshorthands[\"oy\"] = \"overflowY\";\nshorthands[\"ol\"] = \"outline\";\nexport {\n shorthands\n};\n//# sourceMappingURL=index.js.map\n"],"mappings":";AAAA,MAAM,aAAa;CAEjB,OAAO;CACP,KAAK;CAEL,IAAI;CAEJ,KAAK;CACL,IAAI;CACJ,KAAK;CACL,MAAM;CACN,KAAK;CACL,IAAI;CACJ,IAAI;CACJ,IAAI;CACJ,IAAI;CACJ,IAAI;CAEJ,IAAI;CACJ,IAAI;CACJ,KAAK;CACL,GAAG;CACH,IAAI;CACJ,IAAI;CACJ,KAAK;CACL,MAAM;CACN,MAAM;CACN,KAAK;CACL,KAAK;CACL,KAAK;CACL,KAAK;CACL,IAAI;CACJ,IAAI;CACJ,KAAK;CACL,KAAK;CACL,KAAK;CACL,MAAM;CACN,MAAM;CACN,KAAK;CACL,IAAI;CACJ,KAAK;CACL,GAAG;CACH,IAAI;CACJ,IAAI;CACJ,IAAI;CACJ,IAAI;CACJ,IAAI;CACJ,GAAG;CACH,IAAI;CACJ,GAAG;CACH,GAAG;CACH,KAAK;CACL,KAAK;CACL,IAAI;CACJ,KAAK;CACL,KAAK;CACL,IAAI;CACJ,IAAI;CACJ,IAAI;CACJ,IAAI;CACJ,IAAI;CACJ,GAAG;CACH,IAAI;CACJ,GAAG;CACH,IAAI;CACJ,IAAI;CACJ,KAAK;CACL,IAAI;CACJ,IAAI;CACJ,IAAI;CACJ,IAAI;CACJ,GAAG;CACH,MAAM;CACN,MAAM;CACN,MAAM;CACN,MAAM;CACN,GAAG;CACH,GAAG;CACH,IAAI;AACN;AACA,WAAW,SAAS;AACpB,WAAW,SAAS;AACpB,WAAW,SAAS;AACpB,WAAW,SAAS;AACpB,WAAW,SAAS;AACpB,WAAW,UAAU;AACrB,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB,WAAW,QAAQ"}
|