@tamagui/shorthands 1.137.3 → 1.138.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.
@@ -1 +1,2 @@
1
- built @tamagui/shorthands in 1271 ms
1
+
2
+ built @tamagui/shorthands in 699 ms
@@ -0,0 +1,72 @@
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: !0
9
+ });
10
+ },
11
+ __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
13
+ get: () => from[key],
14
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
15
+ });
16
+ return to;
17
+ };
18
+ var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
19
+ value: !0
20
+ }), mod);
21
+ var v5_exports = {};
22
+ __export(v5_exports, {
23
+ shorthands: () => shorthands
24
+ });
25
+ module.exports = __toCommonJS(v5_exports);
26
+ const shorthands = {
27
+ // text
28
+ text: "textAlign",
29
+ // view
30
+ b: "bottom",
31
+ bg: "backgroundColor",
32
+ content: "alignContent",
33
+ grow: "flexGrow",
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
+ z: "zIndex"
62
+ };
63
+ const nonCompilerShorthands = [["fwr", "flexWrap"], ["col", "color"], ["ff", "fontFamily"], ["fst", "fontStyle"], ["tt", "textTransform"], ["td", "textDecorationLine"], ["va", "verticalAlign"], ["ws", "whiteSpace"],
64
+ // @ts-ignore
65
+ ["wb", "wordBreak"], ["ww", "wordWrap"], ["brc", "borderRightColor"], ["brw", "borderRightWidth"], ["bs", "borderStyle"], ["btc", "borderTopColor"], ["btlr", "borderTopLeftRadius"], ["btrr", "borderTopRightRadius"], ["btw", "borderTopWidth"], ["bw", "borderWidth"], ["o", "opacity"], ["cur", "cursor"], ["pe", "pointerEvents"], ["ov", "overflow"], ["pos", "position"], ["dsp", "display"], ["fw", "fontWeight"], ["fs", "fontSize"], ["ls", "letterSpacing"], ["lh", "lineHeight"],
66
+ // @ts-ignore
67
+ ["bxs", "boxSizing"], ["bxsh", "boxShadow"],
68
+ // @ts-ignore
69
+ ["ox", "overflowX"],
70
+ // @ts-ignore
71
+ ["oy", "overflowY"]];
72
+ Object.assign(shorthands, Object.fromEntries(nonCompilerShorthands));
package/dist/cjs/v5.js ADDED
@@ -0,0 +1,96 @@
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 v5_exports = {};
16
+ __export(v5_exports, {
17
+ shorthands: () => shorthands
18
+ });
19
+ module.exports = __toCommonJS(v5_exports);
20
+ const shorthands = {
21
+ // text
22
+ text: "textAlign",
23
+ // view
24
+ b: "bottom",
25
+ bg: "backgroundColor",
26
+ content: "alignContent",
27
+ grow: "flexGrow",
28
+ items: "alignItems",
29
+ justify: "justifyContent",
30
+ l: "left",
31
+ m: "margin",
32
+ maxH: "maxHeight",
33
+ maxW: "maxWidth",
34
+ mb: "marginBottom",
35
+ minH: "minHeight",
36
+ minW: "minWidth",
37
+ ml: "marginLeft",
38
+ mr: "marginRight",
39
+ mt: "marginTop",
40
+ mx: "marginHorizontal",
41
+ my: "marginVertical",
42
+ p: "padding",
43
+ pb: "paddingBottom",
44
+ pl: "paddingLeft",
45
+ pr: "paddingRight",
46
+ pt: "paddingTop",
47
+ px: "paddingHorizontal",
48
+ py: "paddingVertical",
49
+ r: "right",
50
+ rounded: "borderRadius",
51
+ select: "userSelect",
52
+ self: "alignSelf",
53
+ shrink: "flexShrink",
54
+ t: "top",
55
+ z: "zIndex"
56
+ };
57
+ const nonCompilerShorthands = [
58
+ ["fwr", "flexWrap"],
59
+ ["col", "color"],
60
+ ["ff", "fontFamily"],
61
+ ["fst", "fontStyle"],
62
+ ["tt", "textTransform"],
63
+ ["td", "textDecorationLine"],
64
+ ["va", "verticalAlign"],
65
+ ["ws", "whiteSpace"],
66
+ // @ts-ignore
67
+ ["wb", "wordBreak"],
68
+ ["ww", "wordWrap"],
69
+ ["brc", "borderRightColor"],
70
+ ["brw", "borderRightWidth"],
71
+ ["bs", "borderStyle"],
72
+ ["btc", "borderTopColor"],
73
+ ["btlr", "borderTopLeftRadius"],
74
+ ["btrr", "borderTopRightRadius"],
75
+ ["btw", "borderTopWidth"],
76
+ ["bw", "borderWidth"],
77
+ ["o", "opacity"],
78
+ ["cur", "cursor"],
79
+ ["pe", "pointerEvents"],
80
+ ["ov", "overflow"],
81
+ ["pos", "position"],
82
+ ["dsp", "display"],
83
+ ["fw", "fontWeight"],
84
+ ["fs", "fontSize"],
85
+ ["ls", "letterSpacing"],
86
+ ["lh", "lineHeight"],
87
+ // @ts-ignore
88
+ ["bxs", "boxSizing"],
89
+ ["bxsh", "boxShadow"],
90
+ // @ts-ignore
91
+ ["ox", "overflowX"],
92
+ // @ts-ignore
93
+ ["oy", "overflowY"]
94
+ ];
95
+ Object.assign(shorthands, Object.fromEntries(nonCompilerShorthands));
96
+ //# sourceMappingURL=v5.js.map
@@ -0,0 +1,6 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/v5.ts"],
4
+ "mappings": ";;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAEO,MAAM,aAA8B;AAAA;AAAA,EAEzC,MAAM;AAAA;AAAA,EAGN,GAAG;AAAA,EACH,IAAI;AAAA,EACJ,SAAS;AAAA,EACT,MAAM;AAAA,EACN,OAAO;AAAA,EACP,SAAS;AAAA,EACT,GAAG;AAAA,EACH,GAAG;AAAA,EACH,MAAM;AAAA,EACN,MAAM;AAAA,EACN,IAAI;AAAA,EACJ,MAAM;AAAA,EACN,MAAM;AAAA,EACN,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,GAAG;AAAA,EACH,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,GAAG;AAAA,EACH,SAAS;AAAA,EACT,QAAQ;AAAA,EACR,MAAM;AAAA,EACN,QAAQ;AAAA,EACR,GAAG;AAAA,EACH,GAAG;AACL;AAaA,MAAM,wBAA+D;AAAA,EACnE,CAAC,OAAO,UAAU;AAAA,EAClB,CAAC,OAAO,OAAO;AAAA,EACf,CAAC,MAAM,YAAY;AAAA,EACnB,CAAC,OAAO,WAAW;AAAA,EACnB,CAAC,MAAM,eAAe;AAAA,EACtB,CAAC,MAAM,oBAAoB;AAAA,EAC3B,CAAC,MAAM,eAAe;AAAA,EACtB,CAAC,MAAM,YAAY;AAAA;AAAA,EAEnB,CAAC,MAAM,WAAW;AAAA,EAClB,CAAC,MAAM,UAAU;AAAA,EACjB,CAAC,OAAO,kBAAkB;AAAA,EAC1B,CAAC,OAAO,kBAAkB;AAAA,EAC1B,CAAC,MAAM,aAAa;AAAA,EACpB,CAAC,OAAO,gBAAgB;AAAA,EACxB,CAAC,QAAQ,qBAAqB;AAAA,EAC9B,CAAC,QAAQ,sBAAsB;AAAA,EAC/B,CAAC,OAAO,gBAAgB;AAAA,EACxB,CAAC,MAAM,aAAa;AAAA,EACpB,CAAC,KAAK,SAAS;AAAA,EACf,CAAC,OAAO,QAAQ;AAAA,EAChB,CAAC,MAAM,eAAe;AAAA,EACtB,CAAC,MAAM,UAAU;AAAA,EACjB,CAAC,OAAO,UAAU;AAAA,EAClB,CAAC,OAAO,SAAS;AAAA,EACjB,CAAC,MAAM,YAAY;AAAA,EACnB,CAAC,MAAM,UAAU;AAAA,EACjB,CAAC,MAAM,eAAe;AAAA,EACtB,CAAC,MAAM,YAAY;AAAA;AAAA,EAEnB,CAAC,OAAO,WAAW;AAAA,EACnB,CAAC,QAAQ,WAAW;AAAA;AAAA,EAEpB,CAAC,MAAM,WAAW;AAAA;AAAA,EAElB,CAAC,MAAM,WAAW;AACpB;AAGA,OAAO,OAAO,YAAY,OAAO,YAAY,qBAAqB,CAAC;",
5
+ "names": []
6
+ }
@@ -0,0 +1,75 @@
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: !0
11
+ });
12
+ },
13
+ __copyProps = (to, from, except, desc) => {
14
+ if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
15
+ get: () => from[key],
16
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
17
+ });
18
+ return to;
19
+ };
20
+ var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
21
+ value: !0
22
+ }), mod);
23
+ var v5_exports = {};
24
+ __export(v5_exports, {
25
+ shorthands: () => shorthands
26
+ });
27
+ module.exports = __toCommonJS(v5_exports);
28
+ var shorthands = {
29
+ // text
30
+ text: "textAlign",
31
+ // view
32
+ b: "bottom",
33
+ bg: "backgroundColor",
34
+ content: "alignContent",
35
+ grow: "flexGrow",
36
+ items: "alignItems",
37
+ justify: "justifyContent",
38
+ l: "left",
39
+ m: "margin",
40
+ maxH: "maxHeight",
41
+ maxW: "maxWidth",
42
+ mb: "marginBottom",
43
+ minH: "minHeight",
44
+ minW: "minWidth",
45
+ ml: "marginLeft",
46
+ mr: "marginRight",
47
+ mt: "marginTop",
48
+ mx: "marginHorizontal",
49
+ my: "marginVertical",
50
+ p: "padding",
51
+ pb: "paddingBottom",
52
+ pl: "paddingLeft",
53
+ pr: "paddingRight",
54
+ pt: "paddingTop",
55
+ px: "paddingHorizontal",
56
+ py: "paddingVertical",
57
+ r: "right",
58
+ rounded: "borderRadius",
59
+ select: "userSelect",
60
+ self: "alignSelf",
61
+ shrink: "flexShrink",
62
+ t: "top",
63
+ z: "zIndex"
64
+ };
65
+ var nonCompilerShorthands = [["fwr", "flexWrap"], ["col", "color"], ["ff", "fontFamily"], ["fst", "fontStyle"], ["tt", "textTransform"], ["td", "textDecorationLine"], ["va", "verticalAlign"], ["ws", "whiteSpace"],
66
+ // @ts-ignore
67
+ ["wb", "wordBreak"], ["ww", "wordWrap"], ["brc", "borderRightColor"], ["brw", "borderRightWidth"], ["bs", "borderStyle"], ["btc", "borderTopColor"], ["btlr", "borderTopLeftRadius"], ["btrr", "borderTopRightRadius"], ["btw", "borderTopWidth"], ["bw", "borderWidth"], ["o", "opacity"], ["cur", "cursor"], ["pe", "pointerEvents"], ["ov", "overflow"], ["pos", "position"], ["dsp", "display"], ["fw", "fontWeight"], ["fs", "fontSize"], ["ls", "letterSpacing"], ["lh", "lineHeight"],
68
+ // @ts-ignore
69
+ ["bxs", "boxSizing"], ["bxsh", "boxShadow"],
70
+ // @ts-ignore
71
+ ["ox", "overflowX"],
72
+ // @ts-ignore
73
+ ["oy", "overflowY"]];
74
+ Object.assign(shorthands, Object.fromEntries(nonCompilerShorthands));
75
+ //# sourceMappingURL=v5.native.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","v5_exports","__export","shorthands","module","exports","text","b","bg","content","grow","items","justify","l","m","maxH","maxW","mb","minH","minW","ml","mr","mt","mx","my","p","pb","pl","pr","pt","px","py","r","rounded","select","self","shrink","t","z","nonCompilerShorthands"],"sources":["../../src/v5.ts"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;EAAAC,KAAA;AAAA,IAAAH,GAAA;AAAA,IAAAI,UAAA;AAAAC,QAAA,CAAAD,UAAA;EAAAE,UAAA,EAAAA,CAAA,KAAAA;AAAA;AAEOC,MAAM,CAAAC,OAAA,GAAAT,YAA8B,CAAAK,UAAA;AAAA,IAAAE,UAAA;EAEzC;EAAMG,IAAA;EAGN;EACAC,CAAA,UAAI;EACJC,EAAA,mBAAS;EACTC,OAAM;EACNC,IAAA,YAAO;EACPC,KAAA,cAAS;EACTC,OAAG;EACHC,CAAA,EAAG;EACHC,CAAA,UAAM;EACNC,IAAA,EAAM;EACNC,IAAI;EACJC,EAAA,gBAAM;EACNC,IAAA,EAAM;EACNC,IAAI;EACJC,EAAA,EAAI;EACJC,EAAA,EAAI;EACJC,EAAA,EAAI;EACJC,EAAA,EAAI;EACJC,EAAA,EAAG;EACHC,CAAA,WAAI;EACJC,EAAA,EAAI;EACJC,EAAA,EAAI;EACJC,EAAA,EAAI;EACJC,EAAA,EAAI;EACJC,EAAA,EAAI;EACJC,EAAA,EAAG;EACHC,CAAA,SAAS;EACTC,OAAA,EAAQ;EACRC,MAAM;EACNC,IAAA,aAAQ;EACRC,MAAG;EACHC,CAAA,EAAG;EACLC,CAAA;AAaA;AAAqE,IAClEC,qBAAiB,IAClB,CACC,KAAM,EACN,UAAO,CACP,EACD,CACC,KAAM,EACN,OAAM,CAAY,EAEnB,CACC,MACA,YAAO,CACP,EACD,CACC,OACA,WAAQ,CACR,EACD,CACC,MACA,eAAc,CACd,EACD,CACC,MACA,oBAAiB,CACjB,EACD,CACC,MACA,eAAM,CACN,EAAkB,CAElB,MACA,YAAQ,CAAW;AAEpB;AAAkB,CAEjB,MACH,YAGA,E","ignoreList":[]}
package/dist/esm/v5.js ADDED
@@ -0,0 +1,80 @@
1
+ const shorthands = {
2
+ // text
3
+ text: "textAlign",
4
+ // view
5
+ b: "bottom",
6
+ bg: "backgroundColor",
7
+ content: "alignContent",
8
+ grow: "flexGrow",
9
+ items: "alignItems",
10
+ justify: "justifyContent",
11
+ l: "left",
12
+ m: "margin",
13
+ maxH: "maxHeight",
14
+ maxW: "maxWidth",
15
+ mb: "marginBottom",
16
+ minH: "minHeight",
17
+ minW: "minWidth",
18
+ ml: "marginLeft",
19
+ mr: "marginRight",
20
+ mt: "marginTop",
21
+ mx: "marginHorizontal",
22
+ my: "marginVertical",
23
+ p: "padding",
24
+ pb: "paddingBottom",
25
+ pl: "paddingLeft",
26
+ pr: "paddingRight",
27
+ pt: "paddingTop",
28
+ px: "paddingHorizontal",
29
+ py: "paddingVertical",
30
+ r: "right",
31
+ rounded: "borderRadius",
32
+ select: "userSelect",
33
+ self: "alignSelf",
34
+ shrink: "flexShrink",
35
+ t: "top",
36
+ z: "zIndex"
37
+ };
38
+ const nonCompilerShorthands = [
39
+ ["fwr", "flexWrap"],
40
+ ["col", "color"],
41
+ ["ff", "fontFamily"],
42
+ ["fst", "fontStyle"],
43
+ ["tt", "textTransform"],
44
+ ["td", "textDecorationLine"],
45
+ ["va", "verticalAlign"],
46
+ ["ws", "whiteSpace"],
47
+ // @ts-ignore
48
+ ["wb", "wordBreak"],
49
+ ["ww", "wordWrap"],
50
+ ["brc", "borderRightColor"],
51
+ ["brw", "borderRightWidth"],
52
+ ["bs", "borderStyle"],
53
+ ["btc", "borderTopColor"],
54
+ ["btlr", "borderTopLeftRadius"],
55
+ ["btrr", "borderTopRightRadius"],
56
+ ["btw", "borderTopWidth"],
57
+ ["bw", "borderWidth"],
58
+ ["o", "opacity"],
59
+ ["cur", "cursor"],
60
+ ["pe", "pointerEvents"],
61
+ ["ov", "overflow"],
62
+ ["pos", "position"],
63
+ ["dsp", "display"],
64
+ ["fw", "fontWeight"],
65
+ ["fs", "fontSize"],
66
+ ["ls", "letterSpacing"],
67
+ ["lh", "lineHeight"],
68
+ // @ts-ignore
69
+ ["bxs", "boxSizing"],
70
+ ["bxsh", "boxShadow"],
71
+ // @ts-ignore
72
+ ["ox", "overflowX"],
73
+ // @ts-ignore
74
+ ["oy", "overflowY"]
75
+ ];
76
+ Object.assign(shorthands, Object.fromEntries(nonCompilerShorthands));
77
+ export {
78
+ shorthands
79
+ };
80
+ //# sourceMappingURL=v5.js.map
@@ -0,0 +1,6 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/v5.ts"],
4
+ "mappings": "AAEO,MAAM,aAA8B;AAAA;AAAA,EAEzC,MAAM;AAAA;AAAA,EAGN,GAAG;AAAA,EACH,IAAI;AAAA,EACJ,SAAS;AAAA,EACT,MAAM;AAAA,EACN,OAAO;AAAA,EACP,SAAS;AAAA,EACT,GAAG;AAAA,EACH,GAAG;AAAA,EACH,MAAM;AAAA,EACN,MAAM;AAAA,EACN,IAAI;AAAA,EACJ,MAAM;AAAA,EACN,MAAM;AAAA,EACN,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,GAAG;AAAA,EACH,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,GAAG;AAAA,EACH,SAAS;AAAA,EACT,QAAQ;AAAA,EACR,MAAM;AAAA,EACN,QAAQ;AAAA,EACR,GAAG;AAAA,EACH,GAAG;AACL;AAaA,MAAM,wBAA+D;AAAA,EACnE,CAAC,OAAO,UAAU;AAAA,EAClB,CAAC,OAAO,OAAO;AAAA,EACf,CAAC,MAAM,YAAY;AAAA,EACnB,CAAC,OAAO,WAAW;AAAA,EACnB,CAAC,MAAM,eAAe;AAAA,EACtB,CAAC,MAAM,oBAAoB;AAAA,EAC3B,CAAC,MAAM,eAAe;AAAA,EACtB,CAAC,MAAM,YAAY;AAAA;AAAA,EAEnB,CAAC,MAAM,WAAW;AAAA,EAClB,CAAC,MAAM,UAAU;AAAA,EACjB,CAAC,OAAO,kBAAkB;AAAA,EAC1B,CAAC,OAAO,kBAAkB;AAAA,EAC1B,CAAC,MAAM,aAAa;AAAA,EACpB,CAAC,OAAO,gBAAgB;AAAA,EACxB,CAAC,QAAQ,qBAAqB;AAAA,EAC9B,CAAC,QAAQ,sBAAsB;AAAA,EAC/B,CAAC,OAAO,gBAAgB;AAAA,EACxB,CAAC,MAAM,aAAa;AAAA,EACpB,CAAC,KAAK,SAAS;AAAA,EACf,CAAC,OAAO,QAAQ;AAAA,EAChB,CAAC,MAAM,eAAe;AAAA,EACtB,CAAC,MAAM,UAAU;AAAA,EACjB,CAAC,OAAO,UAAU;AAAA,EAClB,CAAC,OAAO,SAAS;AAAA,EACjB,CAAC,MAAM,YAAY;AAAA,EACnB,CAAC,MAAM,UAAU;AAAA,EACjB,CAAC,MAAM,eAAe;AAAA,EACtB,CAAC,MAAM,YAAY;AAAA;AAAA,EAEnB,CAAC,OAAO,WAAW;AAAA,EACnB,CAAC,QAAQ,WAAW;AAAA;AAAA,EAEpB,CAAC,MAAM,WAAW;AAAA;AAAA,EAElB,CAAC,MAAM,WAAW;AACpB;AAGA,OAAO,OAAO,YAAY,OAAO,YAAY,qBAAqB,CAAC;",
5
+ "names": []
6
+ }
@@ -0,0 +1,49 @@
1
+ const shorthands = {
2
+ // text
3
+ text: "textAlign",
4
+ // view
5
+ b: "bottom",
6
+ bg: "backgroundColor",
7
+ content: "alignContent",
8
+ grow: "flexGrow",
9
+ items: "alignItems",
10
+ justify: "justifyContent",
11
+ l: "left",
12
+ m: "margin",
13
+ maxH: "maxHeight",
14
+ maxW: "maxWidth",
15
+ mb: "marginBottom",
16
+ minH: "minHeight",
17
+ minW: "minWidth",
18
+ ml: "marginLeft",
19
+ mr: "marginRight",
20
+ mt: "marginTop",
21
+ mx: "marginHorizontal",
22
+ my: "marginVertical",
23
+ p: "padding",
24
+ pb: "paddingBottom",
25
+ pl: "paddingLeft",
26
+ pr: "paddingRight",
27
+ pt: "paddingTop",
28
+ px: "paddingHorizontal",
29
+ py: "paddingVertical",
30
+ r: "right",
31
+ rounded: "borderRadius",
32
+ select: "userSelect",
33
+ self: "alignSelf",
34
+ shrink: "flexShrink",
35
+ t: "top",
36
+ z: "zIndex"
37
+ };
38
+ const nonCompilerShorthands = [["fwr", "flexWrap"], ["col", "color"], ["ff", "fontFamily"], ["fst", "fontStyle"], ["tt", "textTransform"], ["td", "textDecorationLine"], ["va", "verticalAlign"], ["ws", "whiteSpace"],
39
+ // @ts-ignore
40
+ ["wb", "wordBreak"], ["ww", "wordWrap"], ["brc", "borderRightColor"], ["brw", "borderRightWidth"], ["bs", "borderStyle"], ["btc", "borderTopColor"], ["btlr", "borderTopLeftRadius"], ["btrr", "borderTopRightRadius"], ["btw", "borderTopWidth"], ["bw", "borderWidth"], ["o", "opacity"], ["cur", "cursor"], ["pe", "pointerEvents"], ["ov", "overflow"], ["pos", "position"], ["dsp", "display"], ["fw", "fontWeight"], ["fs", "fontSize"], ["ls", "letterSpacing"], ["lh", "lineHeight"],
41
+ // @ts-ignore
42
+ ["bxs", "boxSizing"], ["bxsh", "boxShadow"],
43
+ // @ts-ignore
44
+ ["ox", "overflowX"],
45
+ // @ts-ignore
46
+ ["oy", "overflowY"]];
47
+ Object.assign(shorthands, Object.fromEntries(nonCompilerShorthands));
48
+ export { shorthands };
49
+ //# sourceMappingURL=v5.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["shorthands","text","b","bg","content","grow","items","justify","l","m","maxH","maxW","mb","minH","minW","ml","mr","mt","mx","my","p","pb","pl","pr","pt","px","py","r","rounded","select","self","shrink","t","z","nonCompilerShorthands","Object","assign","fromEntries"],"sources":["../../src/v5.ts"],"sourcesContent":[null],"mappings":"AAEO,MAAMA,UAAA,GAA8B;EAAA;EAEzCC,IAAA,EAAM;EAAA;EAGNC,CAAA,EAAG;EACHC,EAAA,EAAI;EACJC,OAAA,EAAS;EACTC,IAAA,EAAM;EACNC,KAAA,EAAO;EACPC,OAAA,EAAS;EACTC,CAAA,EAAG;EACHC,CAAA,EAAG;EACHC,IAAA,EAAM;EACNC,IAAA,EAAM;EACNC,EAAA,EAAI;EACJC,IAAA,EAAM;EACNC,IAAA,EAAM;EACNC,EAAA,EAAI;EACJC,EAAA,EAAI;EACJC,EAAA,EAAI;EACJC,EAAA,EAAI;EACJC,EAAA,EAAI;EACJC,CAAA,EAAG;EACHC,EAAA,EAAI;EACJC,EAAA,EAAI;EACJC,EAAA,EAAI;EACJC,EAAA,EAAI;EACJC,EAAA,EAAI;EACJC,EAAA,EAAI;EACJC,CAAA,EAAG;EACHC,OAAA,EAAS;EACTC,MAAA,EAAQ;EACRC,IAAA,EAAM;EACNC,MAAA,EAAQ;EACRC,CAAA,EAAG;EACHC,CAAA,EAAG;AACL;AAaA,MAAMC,qBAAA,GAA+D,CACnE,CAAC,OAAO,UAAU,GAClB,CAAC,OAAO,OAAO,GACf,CAAC,MAAM,YAAY,GACnB,CAAC,OAAO,WAAW,GACnB,CAAC,MAAM,eAAe,GACtB,CAAC,MAAM,oBAAoB,GAC3B,CAAC,MAAM,eAAe,GACtB,CAAC,MAAM,YAAY;AAAA;AAEnB,CAAC,MAAM,WAAW,GAClB,CAAC,MAAM,UAAU,GACjB,CAAC,OAAO,kBAAkB,GAC1B,CAAC,OAAO,kBAAkB,GAC1B,CAAC,MAAM,aAAa,GACpB,CAAC,OAAO,gBAAgB,GACxB,CAAC,QAAQ,qBAAqB,GAC9B,CAAC,QAAQ,sBAAsB,GAC/B,CAAC,OAAO,gBAAgB,GACxB,CAAC,MAAM,aAAa,GACpB,CAAC,KAAK,SAAS,GACf,CAAC,OAAO,QAAQ,GAChB,CAAC,MAAM,eAAe,GACtB,CAAC,MAAM,UAAU,GACjB,CAAC,OAAO,UAAU,GAClB,CAAC,OAAO,SAAS,GACjB,CAAC,MAAM,YAAY,GACnB,CAAC,MAAM,UAAU,GACjB,CAAC,MAAM,eAAe,GACtB,CAAC,MAAM,YAAY;AAAA;AAEnB,CAAC,OAAO,WAAW,GACnB,CAAC,QAAQ,WAAW;AAAA;AAEpB,CAAC,MAAM,WAAW;AAAA;AAElB,CAAC,MAAM,WAAW,EACpB;AAGAC,MAAA,CAAOC,MAAA,CAAOpC,UAAA,EAAYmC,MAAA,CAAOE,WAAA,CAAYH,qBAAqB,CAAC","ignoreList":[]}
@@ -0,0 +1,49 @@
1
+ var shorthands = {
2
+ // text
3
+ text: "textAlign",
4
+ // view
5
+ b: "bottom",
6
+ bg: "backgroundColor",
7
+ content: "alignContent",
8
+ grow: "flexGrow",
9
+ items: "alignItems",
10
+ justify: "justifyContent",
11
+ l: "left",
12
+ m: "margin",
13
+ maxH: "maxHeight",
14
+ maxW: "maxWidth",
15
+ mb: "marginBottom",
16
+ minH: "minHeight",
17
+ minW: "minWidth",
18
+ ml: "marginLeft",
19
+ mr: "marginRight",
20
+ mt: "marginTop",
21
+ mx: "marginHorizontal",
22
+ my: "marginVertical",
23
+ p: "padding",
24
+ pb: "paddingBottom",
25
+ pl: "paddingLeft",
26
+ pr: "paddingRight",
27
+ pt: "paddingTop",
28
+ px: "paddingHorizontal",
29
+ py: "paddingVertical",
30
+ r: "right",
31
+ rounded: "borderRadius",
32
+ select: "userSelect",
33
+ self: "alignSelf",
34
+ shrink: "flexShrink",
35
+ t: "top",
36
+ z: "zIndex"
37
+ };
38
+ var nonCompilerShorthands = [["fwr", "flexWrap"], ["col", "color"], ["ff", "fontFamily"], ["fst", "fontStyle"], ["tt", "textTransform"], ["td", "textDecorationLine"], ["va", "verticalAlign"], ["ws", "whiteSpace"],
39
+ // @ts-ignore
40
+ ["wb", "wordBreak"], ["ww", "wordWrap"], ["brc", "borderRightColor"], ["brw", "borderRightWidth"], ["bs", "borderStyle"], ["btc", "borderTopColor"], ["btlr", "borderTopLeftRadius"], ["btrr", "borderTopRightRadius"], ["btw", "borderTopWidth"], ["bw", "borderWidth"], ["o", "opacity"], ["cur", "cursor"], ["pe", "pointerEvents"], ["ov", "overflow"], ["pos", "position"], ["dsp", "display"], ["fw", "fontWeight"], ["fs", "fontSize"], ["ls", "letterSpacing"], ["lh", "lineHeight"],
41
+ // @ts-ignore
42
+ ["bxs", "boxSizing"], ["bxsh", "boxShadow"],
43
+ // @ts-ignore
44
+ ["ox", "overflowX"],
45
+ // @ts-ignore
46
+ ["oy", "overflowY"]];
47
+ Object.assign(shorthands, Object.fromEntries(nonCompilerShorthands));
48
+ export { shorthands };
49
+ //# sourceMappingURL=v5.native.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["shorthands","text","b","bg","content","grow","items","justify","l","m","maxH","maxW","mb","minH","minW","ml","mr","mt","mx","my","p","pb","pl","pr","pt","px","py","r","rounded","select","self","shrink","t","z","nonCompilerShorthands"],"sources":["../../src/v5.ts"],"sourcesContent":[null],"mappings":"AAEO,IAAAA,UAAM;EAA8B;EAEzCC,IAAA,EAAM;EAAA;EAGNC,CAAA,EAAG;EACHC,EAAA,EAAI;EACJC,OAAA,EAAS;EACTC,IAAA,EAAM;EACNC,KAAA,EAAO;EACPC,OAAA,EAAS;EACTC,CAAA,EAAG;EACHC,CAAA,EAAG;EACHC,IAAA,EAAM;EACNC,IAAA,EAAM;EACNC,EAAA,EAAI;EACJC,IAAA,EAAM;EACNC,IAAA,EAAM;EACNC,EAAA,EAAI;EACJC,EAAA,EAAI;EACJC,EAAA,EAAI;EACJC,EAAA,EAAI;EACJC,EAAA,EAAI;EACJC,CAAA,EAAG;EACHC,EAAA,EAAI;EACJC,EAAA,EAAI;EACJC,EAAA,EAAI;EACJC,EAAA,EAAI;EACJC,EAAA,EAAI;EACJC,EAAA,EAAI;EACJC,CAAA,EAAG;EACHC,OAAA,EAAS;EACTC,MAAA,EAAQ;EACRC,IAAA,EAAM;EACNC,MAAA,EAAQ;EACRC,CAAA,EAAG;EACHC,CAAA,EAAG;AACL;AAaA,IAAAC,qBAAM,IACJ,CACC,OACA,UAAM,CACN,EACD,CACC,KAAM,EACN,OAAM,CACN,EAAkB,CAElB,MACA,YAAM,CACN,EACD,CACC,KAAM,EACN,WAAO,CACP,EACD,CACC,MACA,eAAM,CACN,EACD,CACC,MACA,oBAAgB,CAChB,EACD,CACC,MACA,eAAgB,CAChB,EACD,CAAmB,MAElB,YAAO,CACP;AAAmB;AAEpB,CAAkB,MAEjB,WAAM,CACT,EAGA,C","ignoreList":[]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tamagui/shorthands",
3
- "version": "1.137.3",
3
+ "version": "1.138.1",
4
4
  "type": "module",
5
5
  "source": "src/index.ts",
6
6
  "types": "./types/index.d.ts",
@@ -46,10 +46,10 @@
46
46
  }
47
47
  },
48
48
  "dependencies": {
49
- "@tamagui/web": "1.137.3"
49
+ "@tamagui/web": "1.138.1"
50
50
  },
51
51
  "devDependencies": {
52
- "@tamagui/build": "1.137.3"
52
+ "@tamagui/build": "1.138.1"
53
53
  },
54
54
  "publishConfig": {
55
55
  "access": "public"
@@ -0,0 +1 @@
1
+ {"version":3,"file":"v5.d.ts","sourceRoot":"","sources":["../src/v5.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqCrB,CAAA;AAOF,MAAM,MAAM,UAAU,GAAG,OAAO,UAAU,CAAA;AAC1C,MAAM,MAAM,aAAa,GAAG,MAAM,UAAU,CAAA"}