@tamagui/shorthands 1.121.11 → 1.121.12-1737177163952

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.
@@ -18,11 +18,11 @@ var __export = (target, all) => {
18
18
  var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
19
19
  value: !0
20
20
  }), mod);
21
- var src_exports = {};
22
- __export(src_exports, {
21
+ var index_exports = {};
22
+ __export(index_exports, {
23
23
  shorthands: () => shorthands
24
24
  });
25
- module.exports = __toCommonJS(src_exports);
25
+ module.exports = __toCommonJS(index_exports);
26
26
  const shorthands = {
27
27
  // web-only
28
28
  ussel: "userSelect",
package/dist/cjs/index.js CHANGED
@@ -12,11 +12,11 @@ var __export = (target, all) => {
12
12
  return to;
13
13
  };
14
14
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
15
- var src_exports = {};
16
- __export(src_exports, {
15
+ var index_exports = {};
16
+ __export(index_exports, {
17
17
  shorthands: () => shorthands
18
18
  });
19
- module.exports = __toCommonJS(src_exports);
19
+ module.exports = __toCommonJS(index_exports);
20
20
  const shorthands = {
21
21
  // web-only
22
22
  ussel: "userSelect",
@@ -13,11 +13,11 @@ var __export = (target, all) => {
13
13
  return to;
14
14
  };
15
15
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
16
- var src_exports = {};
17
- __export(src_exports, {
16
+ var index_exports = {};
17
+ __export(index_exports, {
18
18
  shorthands: () => shorthands
19
19
  });
20
- module.exports = __toCommonJS(src_exports);
20
+ module.exports = __toCommonJS(index_exports);
21
21
  var shorthands = {
22
22
  // web-only
23
23
  ussel: "userSelect",
@@ -0,0 +1,73 @@
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 v3_exports = {};
22
+ __export(v3_exports, {
23
+ shorthands: () => shorthands
24
+ });
25
+ module.exports = __toCommonJS(v3_exports);
26
+ const shorthands = {
27
+ // text
28
+ text: "textAlign",
29
+ // view
30
+ b: "bottom",
31
+ bg: "backgroundColor",
32
+ content: "alignContent",
33
+ flex: "flexDirection",
34
+ grow: "flexGrow",
35
+ items: "alignItems",
36
+ justify: "justifyContent",
37
+ l: "left",
38
+ m: "margin",
39
+ maxH: "maxHeight",
40
+ maxW: "maxWidth",
41
+ mb: "marginBottom",
42
+ minH: "minHeight",
43
+ minW: "minWidth",
44
+ ml: "marginLeft",
45
+ mr: "marginRight",
46
+ mt: "marginTop",
47
+ mx: "marginHorizontal",
48
+ my: "marginVertical",
49
+ p: "padding",
50
+ pb: "paddingBottom",
51
+ pl: "paddingLeft",
52
+ pr: "paddingRight",
53
+ pt: "paddingTop",
54
+ px: "paddingHorizontal",
55
+ py: "paddingVertical",
56
+ r: "right",
57
+ rounded: "borderRadius",
58
+ select: "userSelect",
59
+ self: "alignSelf",
60
+ shrink: "flexShrink",
61
+ t: "top",
62
+ z: "zIndex"
63
+ };
64
+ const nonCompilerShorthands = [["fwr", "flexWrap"], ["col", "color"], ["ff", "fontFamily"], ["fst", "fontStyle"], ["tt", "textTransform"], ["td", "textDecorationLine"], ["va", "verticalAlign"], ["ws", "whiteSpace"],
65
+ // @ts-ignore
66
+ ["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"],
67
+ // @ts-ignore
68
+ ["bxs", "boxSizing"], ["bxsh", "boxShadow"],
69
+ // @ts-ignore
70
+ ["ox", "overflowX"],
71
+ // @ts-ignore
72
+ ["oy", "overflowY"]];
73
+ Object.assign(shorthands, Object.fromEntries(nonCompilerShorthands));
package/dist/cjs/v3.js ADDED
@@ -0,0 +1,97 @@
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 v3_exports = {};
16
+ __export(v3_exports, {
17
+ shorthands: () => shorthands
18
+ });
19
+ module.exports = __toCommonJS(v3_exports);
20
+ const shorthands = {
21
+ // text
22
+ text: "textAlign",
23
+ // view
24
+ b: "bottom",
25
+ bg: "backgroundColor",
26
+ content: "alignContent",
27
+ flex: "flexDirection",
28
+ grow: "flexGrow",
29
+ items: "alignItems",
30
+ justify: "justifyContent",
31
+ l: "left",
32
+ m: "margin",
33
+ maxH: "maxHeight",
34
+ maxW: "maxWidth",
35
+ mb: "marginBottom",
36
+ minH: "minHeight",
37
+ minW: "minWidth",
38
+ ml: "marginLeft",
39
+ mr: "marginRight",
40
+ mt: "marginTop",
41
+ mx: "marginHorizontal",
42
+ my: "marginVertical",
43
+ p: "padding",
44
+ pb: "paddingBottom",
45
+ pl: "paddingLeft",
46
+ pr: "paddingRight",
47
+ pt: "paddingTop",
48
+ px: "paddingHorizontal",
49
+ py: "paddingVertical",
50
+ r: "right",
51
+ rounded: "borderRadius",
52
+ select: "userSelect",
53
+ self: "alignSelf",
54
+ shrink: "flexShrink",
55
+ t: "top",
56
+ z: "zIndex"
57
+ };
58
+ const nonCompilerShorthands = [
59
+ ["fwr", "flexWrap"],
60
+ ["col", "color"],
61
+ ["ff", "fontFamily"],
62
+ ["fst", "fontStyle"],
63
+ ["tt", "textTransform"],
64
+ ["td", "textDecorationLine"],
65
+ ["va", "verticalAlign"],
66
+ ["ws", "whiteSpace"],
67
+ // @ts-ignore
68
+ ["wb", "wordBreak"],
69
+ ["ww", "wordWrap"],
70
+ ["brc", "borderRightColor"],
71
+ ["brw", "borderRightWidth"],
72
+ ["bs", "borderStyle"],
73
+ ["btc", "borderTopColor"],
74
+ ["btlr", "borderTopLeftRadius"],
75
+ ["btrr", "borderTopRightRadius"],
76
+ ["btw", "borderTopWidth"],
77
+ ["bw", "borderWidth"],
78
+ ["o", "opacity"],
79
+ ["cur", "cursor"],
80
+ ["pe", "pointerEvents"],
81
+ ["ov", "overflow"],
82
+ ["pos", "position"],
83
+ ["dsp", "display"],
84
+ ["fw", "fontWeight"],
85
+ ["fs", "fontSize"],
86
+ ["ls", "letterSpacing"],
87
+ ["lh", "lineHeight"],
88
+ // @ts-ignore
89
+ ["bxs", "boxSizing"],
90
+ ["bxsh", "boxShadow"],
91
+ // @ts-ignore
92
+ ["ox", "overflowX"],
93
+ // @ts-ignore
94
+ ["oy", "overflowY"]
95
+ ];
96
+ Object.assign(shorthands, Object.fromEntries(nonCompilerShorthands));
97
+ //# sourceMappingURL=v3.js.map
@@ -0,0 +1,6 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/v3.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,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,198 @@
1
+ "use strict";
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)
8
+ __defProp(target, name, { get: all[name], enumerable: !0 });
9
+ }, __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from == "object" || typeof from == "function")
11
+ for (let key of __getOwnPropNames(from))
12
+ !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
13
+ return to;
14
+ };
15
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
16
+ var v3_exports = {};
17
+ __export(v3_exports, {
18
+ shorthands: () => shorthands
19
+ });
20
+ module.exports = __toCommonJS(v3_exports);
21
+ var shorthands = {
22
+ // text
23
+ text: "textAlign",
24
+ // view
25
+ b: "bottom",
26
+ bg: "backgroundColor",
27
+ content: "alignContent",
28
+ flex: "flexDirection",
29
+ grow: "flexGrow",
30
+ items: "alignItems",
31
+ justify: "justifyContent",
32
+ l: "left",
33
+ m: "margin",
34
+ maxH: "maxHeight",
35
+ maxW: "maxWidth",
36
+ mb: "marginBottom",
37
+ minH: "minHeight",
38
+ minW: "minWidth",
39
+ ml: "marginLeft",
40
+ mr: "marginRight",
41
+ mt: "marginTop",
42
+ mx: "marginHorizontal",
43
+ my: "marginVertical",
44
+ p: "padding",
45
+ pb: "paddingBottom",
46
+ pl: "paddingLeft",
47
+ pr: "paddingRight",
48
+ pt: "paddingTop",
49
+ px: "paddingHorizontal",
50
+ py: "paddingVertical",
51
+ r: "right",
52
+ rounded: "borderRadius",
53
+ select: "userSelect",
54
+ self: "alignSelf",
55
+ shrink: "flexShrink",
56
+ t: "top",
57
+ z: "zIndex"
58
+ };
59
+ var nonCompilerShorthands = [
60
+ [
61
+ "fwr",
62
+ "flexWrap"
63
+ ],
64
+ [
65
+ "col",
66
+ "color"
67
+ ],
68
+ [
69
+ "ff",
70
+ "fontFamily"
71
+ ],
72
+ [
73
+ "fst",
74
+ "fontStyle"
75
+ ],
76
+ [
77
+ "tt",
78
+ "textTransform"
79
+ ],
80
+ [
81
+ "td",
82
+ "textDecorationLine"
83
+ ],
84
+ [
85
+ "va",
86
+ "verticalAlign"
87
+ ],
88
+ [
89
+ "ws",
90
+ "whiteSpace"
91
+ ],
92
+ // @ts-ignore
93
+ [
94
+ "wb",
95
+ "wordBreak"
96
+ ],
97
+ [
98
+ "ww",
99
+ "wordWrap"
100
+ ],
101
+ [
102
+ "brc",
103
+ "borderRightColor"
104
+ ],
105
+ [
106
+ "brw",
107
+ "borderRightWidth"
108
+ ],
109
+ [
110
+ "bs",
111
+ "borderStyle"
112
+ ],
113
+ [
114
+ "btc",
115
+ "borderTopColor"
116
+ ],
117
+ [
118
+ "btlr",
119
+ "borderTopLeftRadius"
120
+ ],
121
+ [
122
+ "btrr",
123
+ "borderTopRightRadius"
124
+ ],
125
+ [
126
+ "btw",
127
+ "borderTopWidth"
128
+ ],
129
+ [
130
+ "bw",
131
+ "borderWidth"
132
+ ],
133
+ [
134
+ "o",
135
+ "opacity"
136
+ ],
137
+ [
138
+ "cur",
139
+ "cursor"
140
+ ],
141
+ [
142
+ "pe",
143
+ "pointerEvents"
144
+ ],
145
+ [
146
+ "ov",
147
+ "overflow"
148
+ ],
149
+ [
150
+ "pos",
151
+ "position"
152
+ ],
153
+ [
154
+ "dsp",
155
+ "display"
156
+ ],
157
+ [
158
+ "fw",
159
+ "fontWeight"
160
+ ],
161
+ [
162
+ "fs",
163
+ "fontSize"
164
+ ],
165
+ [
166
+ "ls",
167
+ "letterSpacing"
168
+ ],
169
+ [
170
+ "lh",
171
+ "lineHeight"
172
+ ],
173
+ // @ts-ignore
174
+ [
175
+ "bxs",
176
+ "boxSizing"
177
+ ],
178
+ [
179
+ "bxsh",
180
+ "boxShadow"
181
+ ],
182
+ // @ts-ignore
183
+ [
184
+ "ox",
185
+ "overflowX"
186
+ ],
187
+ // @ts-ignore
188
+ [
189
+ "oy",
190
+ "overflowY"
191
+ ]
192
+ ];
193
+ Object.assign(shorthands, Object.fromEntries(nonCompilerShorthands));
194
+ // Annotate the CommonJS export names for ESM import in node:
195
+ 0 && (module.exports = {
196
+ shorthands
197
+ });
198
+ //# sourceMappingURL=v3.js.map
@@ -0,0 +1,6 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/Users/n8/tamagui/code/core/shorthands/src/v3.ts"],
4
+ "mappings": ";;;;;;;;;;;;;;;AAEA;;;;;AAAO,IAAMA,aAA8B;;EAEzCC,MAAM;;EAGNC,GAAG;EACHC,IAAI;EACJC,SAAS;EACTC,MAAM;EACNC,MAAM;EACNC,OAAO;EACPC,SAAS;EACTC,GAAG;EACHC,GAAG;EACHC,MAAM;EACNC,MAAM;EACNC,IAAI;EACJC,MAAM;EACNC,MAAM;EACNC,IAAI;EACJC,IAAI;EACJC,IAAI;EACJC,IAAI;EACJC,IAAI;EACJC,GAAG;EACHC,IAAI;EACJC,IAAI;EACJC,IAAI;EACJC,IAAI;EACJC,IAAI;EACJC,IAAI;EACJC,GAAG;EACHC,SAAS;EACTC,QAAQ;EACRC,MAAM;EACNC,QAAQ;EACRC,GAAG;EACHC,GAAG;AACL;AAaA,IAAMC,wBAA+D;EACnE;IAAC;IAAO;;EACR;IAAC;IAAO;;EACR;IAAC;IAAM;;EACP;IAAC;IAAO;;EACR;IAAC;IAAM;;EACP;IAAC;IAAM;;EACP;IAAC;IAAM;;EACP;IAAC;IAAM;;;EAEP;IAAC;IAAM;;EACP;IAAC;IAAM;;EACP;IAAC;IAAO;;EACR;IAAC;IAAO;;EACR;IAAC;IAAM;;EACP;IAAC;IAAO;;EACR;IAAC;IAAQ;;EACT;IAAC;IAAQ;;EACT;IAAC;IAAO;;EACR;IAAC;IAAM;;EACP;IAAC;IAAK;;EACN;IAAC;IAAO;;EACR;IAAC;IAAM;;EACP;IAAC;IAAM;;EACP;IAAC;IAAO;;EACR;IAAC;IAAO;;EACR;IAAC;IAAM;;EACP;IAAC;IAAM;;EACP;IAAC;IAAM;;EACP;IAAC;IAAM;;;EAEP;IAAC;IAAO;;EACR;IAAC;IAAQ;;;EAET;IAAC;IAAM;;;EAEP;IAAC;IAAM;;;AAITC,OAAOC,OAAOC,YAAYF,OAAOG,YAAYJ,qBAAAA,CAAAA;",
5
+ "names": ["shorthands", "text", "b", "bg", "content", "flex", "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", "shorthands", "fromEntries"]
6
+ }
package/dist/esm/v3.js ADDED
@@ -0,0 +1,81 @@
1
+ const shorthands = {
2
+ // text
3
+ text: "textAlign",
4
+ // view
5
+ b: "bottom",
6
+ bg: "backgroundColor",
7
+ content: "alignContent",
8
+ flex: "flexDirection",
9
+ grow: "flexGrow",
10
+ items: "alignItems",
11
+ justify: "justifyContent",
12
+ l: "left",
13
+ m: "margin",
14
+ maxH: "maxHeight",
15
+ maxW: "maxWidth",
16
+ mb: "marginBottom",
17
+ minH: "minHeight",
18
+ minW: "minWidth",
19
+ ml: "marginLeft",
20
+ mr: "marginRight",
21
+ mt: "marginTop",
22
+ mx: "marginHorizontal",
23
+ my: "marginVertical",
24
+ p: "padding",
25
+ pb: "paddingBottom",
26
+ pl: "paddingLeft",
27
+ pr: "paddingRight",
28
+ pt: "paddingTop",
29
+ px: "paddingHorizontal",
30
+ py: "paddingVertical",
31
+ r: "right",
32
+ rounded: "borderRadius",
33
+ select: "userSelect",
34
+ self: "alignSelf",
35
+ shrink: "flexShrink",
36
+ t: "top",
37
+ z: "zIndex"
38
+ };
39
+ const nonCompilerShorthands = [
40
+ ["fwr", "flexWrap"],
41
+ ["col", "color"],
42
+ ["ff", "fontFamily"],
43
+ ["fst", "fontStyle"],
44
+ ["tt", "textTransform"],
45
+ ["td", "textDecorationLine"],
46
+ ["va", "verticalAlign"],
47
+ ["ws", "whiteSpace"],
48
+ // @ts-ignore
49
+ ["wb", "wordBreak"],
50
+ ["ww", "wordWrap"],
51
+ ["brc", "borderRightColor"],
52
+ ["brw", "borderRightWidth"],
53
+ ["bs", "borderStyle"],
54
+ ["btc", "borderTopColor"],
55
+ ["btlr", "borderTopLeftRadius"],
56
+ ["btrr", "borderTopRightRadius"],
57
+ ["btw", "borderTopWidth"],
58
+ ["bw", "borderWidth"],
59
+ ["o", "opacity"],
60
+ ["cur", "cursor"],
61
+ ["pe", "pointerEvents"],
62
+ ["ov", "overflow"],
63
+ ["pos", "position"],
64
+ ["dsp", "display"],
65
+ ["fw", "fontWeight"],
66
+ ["fs", "fontSize"],
67
+ ["ls", "letterSpacing"],
68
+ ["lh", "lineHeight"],
69
+ // @ts-ignore
70
+ ["bxs", "boxSizing"],
71
+ ["bxsh", "boxShadow"],
72
+ // @ts-ignore
73
+ ["ox", "overflowX"],
74
+ // @ts-ignore
75
+ ["oy", "overflowY"]
76
+ ];
77
+ Object.assign(shorthands, Object.fromEntries(nonCompilerShorthands));
78
+ export {
79
+ shorthands
80
+ };
81
+ //# sourceMappingURL=v3.js.map
@@ -0,0 +1,6 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/v3.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,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,50 @@
1
+ const shorthands = {
2
+ // text
3
+ text: "textAlign",
4
+ // view
5
+ b: "bottom",
6
+ bg: "backgroundColor",
7
+ content: "alignContent",
8
+ flex: "flexDirection",
9
+ grow: "flexGrow",
10
+ items: "alignItems",
11
+ justify: "justifyContent",
12
+ l: "left",
13
+ m: "margin",
14
+ maxH: "maxHeight",
15
+ maxW: "maxWidth",
16
+ mb: "marginBottom",
17
+ minH: "minHeight",
18
+ minW: "minWidth",
19
+ ml: "marginLeft",
20
+ mr: "marginRight",
21
+ mt: "marginTop",
22
+ mx: "marginHorizontal",
23
+ my: "marginVertical",
24
+ p: "padding",
25
+ pb: "paddingBottom",
26
+ pl: "paddingLeft",
27
+ pr: "paddingRight",
28
+ pt: "paddingTop",
29
+ px: "paddingHorizontal",
30
+ py: "paddingVertical",
31
+ r: "right",
32
+ rounded: "borderRadius",
33
+ select: "userSelect",
34
+ self: "alignSelf",
35
+ shrink: "flexShrink",
36
+ t: "top",
37
+ z: "zIndex"
38
+ };
39
+ const nonCompilerShorthands = [["fwr", "flexWrap"], ["col", "color"], ["ff", "fontFamily"], ["fst", "fontStyle"], ["tt", "textTransform"], ["td", "textDecorationLine"], ["va", "verticalAlign"], ["ws", "whiteSpace"],
40
+ // @ts-ignore
41
+ ["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"],
42
+ // @ts-ignore
43
+ ["bxs", "boxSizing"], ["bxsh", "boxShadow"],
44
+ // @ts-ignore
45
+ ["ox", "overflowX"],
46
+ // @ts-ignore
47
+ ["oy", "overflowY"]];
48
+ Object.assign(shorthands, Object.fromEntries(nonCompilerShorthands));
49
+ export { shorthands };
50
+ //# sourceMappingURL=v3.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["shorthands","text","b","bg","content","flex","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/v3.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,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,CAAOrC,UAAA,EAAYoC,MAAA,CAAOE,WAAA,CAAYH,qBAAqB,CAAC","ignoreList":[]}
@@ -0,0 +1,177 @@
1
+ var shorthands = {
2
+ // text
3
+ text: "textAlign",
4
+ // view
5
+ b: "bottom",
6
+ bg: "backgroundColor",
7
+ content: "alignContent",
8
+ flex: "flexDirection",
9
+ grow: "flexGrow",
10
+ items: "alignItems",
11
+ justify: "justifyContent",
12
+ l: "left",
13
+ m: "margin",
14
+ maxH: "maxHeight",
15
+ maxW: "maxWidth",
16
+ mb: "marginBottom",
17
+ minH: "minHeight",
18
+ minW: "minWidth",
19
+ ml: "marginLeft",
20
+ mr: "marginRight",
21
+ mt: "marginTop",
22
+ mx: "marginHorizontal",
23
+ my: "marginVertical",
24
+ p: "padding",
25
+ pb: "paddingBottom",
26
+ pl: "paddingLeft",
27
+ pr: "paddingRight",
28
+ pt: "paddingTop",
29
+ px: "paddingHorizontal",
30
+ py: "paddingVertical",
31
+ r: "right",
32
+ rounded: "borderRadius",
33
+ select: "userSelect",
34
+ self: "alignSelf",
35
+ shrink: "flexShrink",
36
+ t: "top",
37
+ z: "zIndex"
38
+ };
39
+ var nonCompilerShorthands = [
40
+ [
41
+ "fwr",
42
+ "flexWrap"
43
+ ],
44
+ [
45
+ "col",
46
+ "color"
47
+ ],
48
+ [
49
+ "ff",
50
+ "fontFamily"
51
+ ],
52
+ [
53
+ "fst",
54
+ "fontStyle"
55
+ ],
56
+ [
57
+ "tt",
58
+ "textTransform"
59
+ ],
60
+ [
61
+ "td",
62
+ "textDecorationLine"
63
+ ],
64
+ [
65
+ "va",
66
+ "verticalAlign"
67
+ ],
68
+ [
69
+ "ws",
70
+ "whiteSpace"
71
+ ],
72
+ // @ts-ignore
73
+ [
74
+ "wb",
75
+ "wordBreak"
76
+ ],
77
+ [
78
+ "ww",
79
+ "wordWrap"
80
+ ],
81
+ [
82
+ "brc",
83
+ "borderRightColor"
84
+ ],
85
+ [
86
+ "brw",
87
+ "borderRightWidth"
88
+ ],
89
+ [
90
+ "bs",
91
+ "borderStyle"
92
+ ],
93
+ [
94
+ "btc",
95
+ "borderTopColor"
96
+ ],
97
+ [
98
+ "btlr",
99
+ "borderTopLeftRadius"
100
+ ],
101
+ [
102
+ "btrr",
103
+ "borderTopRightRadius"
104
+ ],
105
+ [
106
+ "btw",
107
+ "borderTopWidth"
108
+ ],
109
+ [
110
+ "bw",
111
+ "borderWidth"
112
+ ],
113
+ [
114
+ "o",
115
+ "opacity"
116
+ ],
117
+ [
118
+ "cur",
119
+ "cursor"
120
+ ],
121
+ [
122
+ "pe",
123
+ "pointerEvents"
124
+ ],
125
+ [
126
+ "ov",
127
+ "overflow"
128
+ ],
129
+ [
130
+ "pos",
131
+ "position"
132
+ ],
133
+ [
134
+ "dsp",
135
+ "display"
136
+ ],
137
+ [
138
+ "fw",
139
+ "fontWeight"
140
+ ],
141
+ [
142
+ "fs",
143
+ "fontSize"
144
+ ],
145
+ [
146
+ "ls",
147
+ "letterSpacing"
148
+ ],
149
+ [
150
+ "lh",
151
+ "lineHeight"
152
+ ],
153
+ // @ts-ignore
154
+ [
155
+ "bxs",
156
+ "boxSizing"
157
+ ],
158
+ [
159
+ "bxsh",
160
+ "boxShadow"
161
+ ],
162
+ // @ts-ignore
163
+ [
164
+ "ox",
165
+ "overflowX"
166
+ ],
167
+ // @ts-ignore
168
+ [
169
+ "oy",
170
+ "overflowY"
171
+ ]
172
+ ];
173
+ Object.assign(shorthands, Object.fromEntries(nonCompilerShorthands));
174
+ export {
175
+ shorthands
176
+ };
177
+ //# sourceMappingURL=v3.js.map
@@ -0,0 +1,6 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/Users/n8/tamagui/code/core/shorthands/src/v3.ts"],
4
+ "mappings": "AAEO,IAAMA,aAA8B;;EAEzCC,MAAM;;EAGNC,GAAG;EACHC,IAAI;EACJC,SAAS;EACTC,MAAM;EACNC,MAAM;EACNC,OAAO;EACPC,SAAS;EACTC,GAAG;EACHC,GAAG;EACHC,MAAM;EACNC,MAAM;EACNC,IAAI;EACJC,MAAM;EACNC,MAAM;EACNC,IAAI;EACJC,IAAI;EACJC,IAAI;EACJC,IAAI;EACJC,IAAI;EACJC,GAAG;EACHC,IAAI;EACJC,IAAI;EACJC,IAAI;EACJC,IAAI;EACJC,IAAI;EACJC,IAAI;EACJC,GAAG;EACHC,SAAS;EACTC,QAAQ;EACRC,MAAM;EACNC,QAAQ;EACRC,GAAG;EACHC,GAAG;AACL;AAaA,IAAMC,wBAA+D;EACnE;IAAC;IAAO;;EACR;IAAC;IAAO;;EACR;IAAC;IAAM;;EACP;IAAC;IAAO;;EACR;IAAC;IAAM;;EACP;IAAC;IAAM;;EACP;IAAC;IAAM;;EACP;IAAC;IAAM;;;EAEP;IAAC;IAAM;;EACP;IAAC;IAAM;;EACP;IAAC;IAAO;;EACR;IAAC;IAAO;;EACR;IAAC;IAAM;;EACP;IAAC;IAAO;;EACR;IAAC;IAAQ;;EACT;IAAC;IAAQ;;EACT;IAAC;IAAO;;EACR;IAAC;IAAM;;EACP;IAAC;IAAK;;EACN;IAAC;IAAO;;EACR;IAAC;IAAM;;EACP;IAAC;IAAM;;EACP;IAAC;IAAO;;EACR;IAAC;IAAO;;EACR;IAAC;IAAM;;EACP;IAAC;IAAM;;EACP;IAAC;IAAM;;EACP;IAAC;IAAM;;;EAEP;IAAC;IAAO;;EACR;IAAC;IAAQ;;;EAET;IAAC;IAAM;;;EAEP;IAAC;IAAM;;;AAITC,OAAOC,OAAOC,YAAYF,OAAOG,YAAYJ,qBAAAA,CAAAA;",
5
+ "names": ["shorthands", "text", "b", "bg", "content", "flex", "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", "shorthands", "fromEntries"]
6
+ }
package/dist/jsx/v3.js ADDED
@@ -0,0 +1,81 @@
1
+ const shorthands = {
2
+ // text
3
+ text: "textAlign",
4
+ // view
5
+ b: "bottom",
6
+ bg: "backgroundColor",
7
+ content: "alignContent",
8
+ flex: "flexDirection",
9
+ grow: "flexGrow",
10
+ items: "alignItems",
11
+ justify: "justifyContent",
12
+ l: "left",
13
+ m: "margin",
14
+ maxH: "maxHeight",
15
+ maxW: "maxWidth",
16
+ mb: "marginBottom",
17
+ minH: "minHeight",
18
+ minW: "minWidth",
19
+ ml: "marginLeft",
20
+ mr: "marginRight",
21
+ mt: "marginTop",
22
+ mx: "marginHorizontal",
23
+ my: "marginVertical",
24
+ p: "padding",
25
+ pb: "paddingBottom",
26
+ pl: "paddingLeft",
27
+ pr: "paddingRight",
28
+ pt: "paddingTop",
29
+ px: "paddingHorizontal",
30
+ py: "paddingVertical",
31
+ r: "right",
32
+ rounded: "borderRadius",
33
+ select: "userSelect",
34
+ self: "alignSelf",
35
+ shrink: "flexShrink",
36
+ t: "top",
37
+ z: "zIndex"
38
+ };
39
+ const nonCompilerShorthands = [
40
+ ["fwr", "flexWrap"],
41
+ ["col", "color"],
42
+ ["ff", "fontFamily"],
43
+ ["fst", "fontStyle"],
44
+ ["tt", "textTransform"],
45
+ ["td", "textDecorationLine"],
46
+ ["va", "verticalAlign"],
47
+ ["ws", "whiteSpace"],
48
+ // @ts-ignore
49
+ ["wb", "wordBreak"],
50
+ ["ww", "wordWrap"],
51
+ ["brc", "borderRightColor"],
52
+ ["brw", "borderRightWidth"],
53
+ ["bs", "borderStyle"],
54
+ ["btc", "borderTopColor"],
55
+ ["btlr", "borderTopLeftRadius"],
56
+ ["btrr", "borderTopRightRadius"],
57
+ ["btw", "borderTopWidth"],
58
+ ["bw", "borderWidth"],
59
+ ["o", "opacity"],
60
+ ["cur", "cursor"],
61
+ ["pe", "pointerEvents"],
62
+ ["ov", "overflow"],
63
+ ["pos", "position"],
64
+ ["dsp", "display"],
65
+ ["fw", "fontWeight"],
66
+ ["fs", "fontSize"],
67
+ ["ls", "letterSpacing"],
68
+ ["lh", "lineHeight"],
69
+ // @ts-ignore
70
+ ["bxs", "boxSizing"],
71
+ ["bxsh", "boxShadow"],
72
+ // @ts-ignore
73
+ ["ox", "overflowX"],
74
+ // @ts-ignore
75
+ ["oy", "overflowY"]
76
+ ];
77
+ Object.assign(shorthands, Object.fromEntries(nonCompilerShorthands));
78
+ export {
79
+ shorthands
80
+ };
81
+ //# sourceMappingURL=v3.js.map
@@ -0,0 +1,6 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/v3.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,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,50 @@
1
+ const shorthands = {
2
+ // text
3
+ text: "textAlign",
4
+ // view
5
+ b: "bottom",
6
+ bg: "backgroundColor",
7
+ content: "alignContent",
8
+ flex: "flexDirection",
9
+ grow: "flexGrow",
10
+ items: "alignItems",
11
+ justify: "justifyContent",
12
+ l: "left",
13
+ m: "margin",
14
+ maxH: "maxHeight",
15
+ maxW: "maxWidth",
16
+ mb: "marginBottom",
17
+ minH: "minHeight",
18
+ minW: "minWidth",
19
+ ml: "marginLeft",
20
+ mr: "marginRight",
21
+ mt: "marginTop",
22
+ mx: "marginHorizontal",
23
+ my: "marginVertical",
24
+ p: "padding",
25
+ pb: "paddingBottom",
26
+ pl: "paddingLeft",
27
+ pr: "paddingRight",
28
+ pt: "paddingTop",
29
+ px: "paddingHorizontal",
30
+ py: "paddingVertical",
31
+ r: "right",
32
+ rounded: "borderRadius",
33
+ select: "userSelect",
34
+ self: "alignSelf",
35
+ shrink: "flexShrink",
36
+ t: "top",
37
+ z: "zIndex"
38
+ };
39
+ const nonCompilerShorthands = [["fwr", "flexWrap"], ["col", "color"], ["ff", "fontFamily"], ["fst", "fontStyle"], ["tt", "textTransform"], ["td", "textDecorationLine"], ["va", "verticalAlign"], ["ws", "whiteSpace"],
40
+ // @ts-ignore
41
+ ["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"],
42
+ // @ts-ignore
43
+ ["bxs", "boxSizing"], ["bxsh", "boxShadow"],
44
+ // @ts-ignore
45
+ ["ox", "overflowX"],
46
+ // @ts-ignore
47
+ ["oy", "overflowY"]];
48
+ Object.assign(shorthands, Object.fromEntries(nonCompilerShorthands));
49
+ export { shorthands };
50
+ //# sourceMappingURL=v3.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["shorthands","text","b","bg","content","flex","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/v3.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,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,CAAOrC,UAAA,EAAYoC,MAAA,CAAOE,WAAA,CAAYH,qBAAqB,CAAC","ignoreList":[]}
@@ -0,0 +1,177 @@
1
+ var shorthands = {
2
+ // text
3
+ text: "textAlign",
4
+ // view
5
+ b: "bottom",
6
+ bg: "backgroundColor",
7
+ content: "alignContent",
8
+ flex: "flexDirection",
9
+ grow: "flexGrow",
10
+ items: "alignItems",
11
+ justify: "justifyContent",
12
+ l: "left",
13
+ m: "margin",
14
+ maxH: "maxHeight",
15
+ maxW: "maxWidth",
16
+ mb: "marginBottom",
17
+ minH: "minHeight",
18
+ minW: "minWidth",
19
+ ml: "marginLeft",
20
+ mr: "marginRight",
21
+ mt: "marginTop",
22
+ mx: "marginHorizontal",
23
+ my: "marginVertical",
24
+ p: "padding",
25
+ pb: "paddingBottom",
26
+ pl: "paddingLeft",
27
+ pr: "paddingRight",
28
+ pt: "paddingTop",
29
+ px: "paddingHorizontal",
30
+ py: "paddingVertical",
31
+ r: "right",
32
+ rounded: "borderRadius",
33
+ select: "userSelect",
34
+ self: "alignSelf",
35
+ shrink: "flexShrink",
36
+ t: "top",
37
+ z: "zIndex"
38
+ };
39
+ var nonCompilerShorthands = [
40
+ [
41
+ "fwr",
42
+ "flexWrap"
43
+ ],
44
+ [
45
+ "col",
46
+ "color"
47
+ ],
48
+ [
49
+ "ff",
50
+ "fontFamily"
51
+ ],
52
+ [
53
+ "fst",
54
+ "fontStyle"
55
+ ],
56
+ [
57
+ "tt",
58
+ "textTransform"
59
+ ],
60
+ [
61
+ "td",
62
+ "textDecorationLine"
63
+ ],
64
+ [
65
+ "va",
66
+ "verticalAlign"
67
+ ],
68
+ [
69
+ "ws",
70
+ "whiteSpace"
71
+ ],
72
+ // @ts-ignore
73
+ [
74
+ "wb",
75
+ "wordBreak"
76
+ ],
77
+ [
78
+ "ww",
79
+ "wordWrap"
80
+ ],
81
+ [
82
+ "brc",
83
+ "borderRightColor"
84
+ ],
85
+ [
86
+ "brw",
87
+ "borderRightWidth"
88
+ ],
89
+ [
90
+ "bs",
91
+ "borderStyle"
92
+ ],
93
+ [
94
+ "btc",
95
+ "borderTopColor"
96
+ ],
97
+ [
98
+ "btlr",
99
+ "borderTopLeftRadius"
100
+ ],
101
+ [
102
+ "btrr",
103
+ "borderTopRightRadius"
104
+ ],
105
+ [
106
+ "btw",
107
+ "borderTopWidth"
108
+ ],
109
+ [
110
+ "bw",
111
+ "borderWidth"
112
+ ],
113
+ [
114
+ "o",
115
+ "opacity"
116
+ ],
117
+ [
118
+ "cur",
119
+ "cursor"
120
+ ],
121
+ [
122
+ "pe",
123
+ "pointerEvents"
124
+ ],
125
+ [
126
+ "ov",
127
+ "overflow"
128
+ ],
129
+ [
130
+ "pos",
131
+ "position"
132
+ ],
133
+ [
134
+ "dsp",
135
+ "display"
136
+ ],
137
+ [
138
+ "fw",
139
+ "fontWeight"
140
+ ],
141
+ [
142
+ "fs",
143
+ "fontSize"
144
+ ],
145
+ [
146
+ "ls",
147
+ "letterSpacing"
148
+ ],
149
+ [
150
+ "lh",
151
+ "lineHeight"
152
+ ],
153
+ // @ts-ignore
154
+ [
155
+ "bxs",
156
+ "boxSizing"
157
+ ],
158
+ [
159
+ "bxsh",
160
+ "boxShadow"
161
+ ],
162
+ // @ts-ignore
163
+ [
164
+ "ox",
165
+ "overflowX"
166
+ ],
167
+ // @ts-ignore
168
+ [
169
+ "oy",
170
+ "overflowY"
171
+ ]
172
+ ];
173
+ Object.assign(shorthands, Object.fromEntries(nonCompilerShorthands));
174
+ export {
175
+ shorthands
176
+ };
177
+ //# sourceMappingURL=v3.js.map
@@ -0,0 +1,6 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/Users/n8/tamagui/code/core/shorthands/src/v3.ts"],
4
+ "mappings": "AAEO,IAAMA,aAA8B;;EAEzCC,MAAM;;EAGNC,GAAG;EACHC,IAAI;EACJC,SAAS;EACTC,MAAM;EACNC,MAAM;EACNC,OAAO;EACPC,SAAS;EACTC,GAAG;EACHC,GAAG;EACHC,MAAM;EACNC,MAAM;EACNC,IAAI;EACJC,MAAM;EACNC,MAAM;EACNC,IAAI;EACJC,IAAI;EACJC,IAAI;EACJC,IAAI;EACJC,IAAI;EACJC,GAAG;EACHC,IAAI;EACJC,IAAI;EACJC,IAAI;EACJC,IAAI;EACJC,IAAI;EACJC,IAAI;EACJC,GAAG;EACHC,SAAS;EACTC,QAAQ;EACRC,MAAM;EACNC,QAAQ;EACRC,GAAG;EACHC,GAAG;AACL;AAaA,IAAMC,wBAA+D;EACnE;IAAC;IAAO;;EACR;IAAC;IAAO;;EACR;IAAC;IAAM;;EACP;IAAC;IAAO;;EACR;IAAC;IAAM;;EACP;IAAC;IAAM;;EACP;IAAC;IAAM;;EACP;IAAC;IAAM;;;EAEP;IAAC;IAAM;;EACP;IAAC;IAAM;;EACP;IAAC;IAAO;;EACR;IAAC;IAAO;;EACR;IAAC;IAAM;;EACP;IAAC;IAAO;;EACR;IAAC;IAAQ;;EACT;IAAC;IAAQ;;EACT;IAAC;IAAO;;EACR;IAAC;IAAM;;EACP;IAAC;IAAK;;EACN;IAAC;IAAO;;EACR;IAAC;IAAM;;EACP;IAAC;IAAM;;EACP;IAAC;IAAO;;EACR;IAAC;IAAO;;EACR;IAAC;IAAM;;EACP;IAAC;IAAM;;EACP;IAAC;IAAM;;EACP;IAAC;IAAM;;;EAEP;IAAC;IAAO;;EACR;IAAC;IAAQ;;;EAET;IAAC;IAAM;;;EAEP;IAAC;IAAM;;;AAITC,OAAOC,OAAOC,YAAYF,OAAOG,YAAYJ,qBAAAA,CAAAA;",
5
+ "names": ["shorthands", "text", "b", "bg", "content", "flex", "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", "shorthands", "fromEntries"]
6
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tamagui/shorthands",
3
- "version": "1.121.11",
3
+ "version": "1.121.12-1737177163952",
4
4
  "source": "src/index.ts",
5
5
  "types": "./types/index.d.ts",
6
6
  "main": "dist/cjs",
@@ -41,10 +41,22 @@
41
41
  "types": "./types/v2.d.ts",
42
42
  "import": "./dist/esm/v2.mjs",
43
43
  "require": "./dist/cjs/v2.cjs"
44
+ },
45
+ "./v3": {
46
+ "react-native": {
47
+ "import": "./dist/esm/v3.native.js",
48
+ "require": "./dist/cjs/v3.native.js"
49
+ },
50
+ "types": "./types/v3.d.ts",
51
+ "import": "./dist/esm/v3.mjs",
52
+ "require": "./dist/cjs/v3.cjs"
44
53
  }
45
54
  },
55
+ "dependencies": {
56
+ "@tamagui/web": "1.121.12-1737177163952"
57
+ },
46
58
  "devDependencies": {
47
- "@tamagui/build": "1.121.11"
59
+ "@tamagui/build": "1.121.12-1737177163952"
48
60
  },
49
61
  "publishConfig": {
50
62
  "access": "public"
package/src/v3.ts ADDED
@@ -0,0 +1,94 @@
1
+ import type { TextStyle } from '@tamagui/web'
2
+
3
+ export const shorthands = createShorthands({
4
+ // text
5
+ text: 'textAlign',
6
+
7
+ // view
8
+ b: 'bottom',
9
+ bg: 'backgroundColor',
10
+ content: 'alignContent',
11
+ flex: 'flexDirection',
12
+ grow: 'flexGrow',
13
+ items: 'alignItems',
14
+ justify: 'justifyContent',
15
+ l: 'left',
16
+ m: 'margin',
17
+ maxH: 'maxHeight',
18
+ maxW: 'maxWidth',
19
+ mb: 'marginBottom',
20
+ minH: 'minHeight',
21
+ minW: 'minWidth',
22
+ ml: 'marginLeft',
23
+ mr: 'marginRight',
24
+ mt: 'marginTop',
25
+ mx: 'marginHorizontal',
26
+ my: 'marginVertical',
27
+ p: 'padding',
28
+ pb: 'paddingBottom',
29
+ pl: 'paddingLeft',
30
+ pr: 'paddingRight',
31
+ pt: 'paddingTop',
32
+ px: 'paddingHorizontal',
33
+ py: 'paddingVertical',
34
+ r: 'right',
35
+ rounded: 'borderRadius',
36
+ select: 'userSelect',
37
+ self: 'alignSelf',
38
+ shrink: 'flexShrink',
39
+ t: 'top',
40
+ z: 'zIndex',
41
+ })
42
+
43
+ // type helper
44
+ function createShorthands<A extends Record<string, keyof TextStyle>>(a: A) {
45
+ return a
46
+ }
47
+
48
+ export type Shorthands = typeof shorthands
49
+ export type ShorthandKeys = keyof Shorthands
50
+
51
+ type NonDefinedShorthandValues = Exclude<keyof TextStyle, Shorthands[ShorthandKeys]>
52
+
53
+ // we want no types but compiler/runtime uses it for short classname generation
54
+ const nonCompilerShorthands: [string, NonDefinedShorthandValues][] = [
55
+ ['fwr', 'flexWrap'],
56
+ ['col', 'color'],
57
+ ['ff', 'fontFamily'],
58
+ ['fst', 'fontStyle'],
59
+ ['tt', 'textTransform'],
60
+ ['td', 'textDecorationLine'],
61
+ ['va', 'verticalAlign'],
62
+ ['ws', 'whiteSpace'],
63
+ // @ts-ignore
64
+ ['wb', 'wordBreak'],
65
+ ['ww', 'wordWrap'],
66
+ ['brc', 'borderRightColor'],
67
+ ['brw', 'borderRightWidth'],
68
+ ['bs', 'borderStyle'],
69
+ ['btc', 'borderTopColor'],
70
+ ['btlr', 'borderTopLeftRadius'],
71
+ ['btrr', 'borderTopRightRadius'],
72
+ ['btw', 'borderTopWidth'],
73
+ ['bw', 'borderWidth'],
74
+ ['o', 'opacity'],
75
+ ['cur', 'cursor'],
76
+ ['pe', 'pointerEvents'],
77
+ ['ov', 'overflow'],
78
+ ['pos', 'position'],
79
+ ['dsp', 'display'],
80
+ ['fw', 'fontWeight'],
81
+ ['fs', 'fontSize'],
82
+ ['ls', 'letterSpacing'],
83
+ ['lh', 'lineHeight'],
84
+ // @ts-ignore
85
+ ['bxs', 'boxSizing'],
86
+ ['bxsh', 'boxShadow'],
87
+ // @ts-ignore
88
+ ['ox', 'overflowX'],
89
+ // @ts-ignore
90
+ ['oy', 'overflowY'],
91
+ ]
92
+
93
+ // Merge the non-compiler shorthands into the main object
94
+ Object.assign(shorthands, Object.fromEntries(nonCompilerShorthands))
package/types/v3.d.ts ADDED
@@ -0,0 +1,39 @@
1
+ export declare const shorthands: {
2
+ text: "textAlign";
3
+ b: "bottom";
4
+ bg: "backgroundColor";
5
+ content: "alignContent";
6
+ flex: "flexDirection";
7
+ grow: "flexGrow";
8
+ items: "alignItems";
9
+ justify: "justifyContent";
10
+ l: "left";
11
+ m: "margin";
12
+ maxH: "maxHeight";
13
+ maxW: "maxWidth";
14
+ mb: "marginBottom";
15
+ minH: "minHeight";
16
+ minW: "minWidth";
17
+ ml: "marginLeft";
18
+ mr: "marginRight";
19
+ mt: "marginTop";
20
+ mx: "marginHorizontal";
21
+ my: "marginVertical";
22
+ p: "padding";
23
+ pb: "paddingBottom";
24
+ pl: "paddingLeft";
25
+ pr: "paddingRight";
26
+ pt: "paddingTop";
27
+ px: "paddingHorizontal";
28
+ py: "paddingVertical";
29
+ r: "right";
30
+ rounded: "borderRadius";
31
+ select: "userSelect";
32
+ self: "alignSelf";
33
+ shrink: "flexShrink";
34
+ t: "top";
35
+ z: "zIndex";
36
+ };
37
+ export type Shorthands = typeof shorthands;
38
+ export type ShorthandKeys = keyof Shorthands;
39
+ //# sourceMappingURL=v3.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"v3.d.ts","sourceRoot":"","sources":["../src/v3.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsCrB,CAAA;AAOF,MAAM,MAAM,UAAU,GAAG,OAAO,UAAU,CAAA;AAC1C,MAAM,MAAM,aAAa,GAAG,MAAM,UAAU,CAAA"}