@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.
Files changed (44) hide show
  1. package/dist/cjs/index.cjs +89 -96
  2. package/dist/cjs/index.native.cjs +111 -0
  3. package/dist/cjs/index.native.js +89 -95
  4. package/dist/cjs/index.native.js.map +1 -1
  5. package/dist/cjs/v4.cjs +49 -54
  6. package/dist/cjs/v4.native.cjs +64 -0
  7. package/dist/cjs/v4.native.js +49 -53
  8. package/dist/cjs/v4.native.js.map +1 -1
  9. package/dist/cjs/v5.cjs +49 -54
  10. package/dist/cjs/v5.native.cjs +64 -0
  11. package/dist/cjs/v5.native.js +49 -53
  12. package/dist/cjs/v5.native.js.map +1 -1
  13. package/dist/cjs/v6.cjs +64 -0
  14. package/dist/cjs/v6.native.cjs +66 -0
  15. package/dist/cjs/v6.native.js +68 -0
  16. package/dist/cjs/v6.native.js.map +1 -0
  17. package/dist/esm/index.js +75 -78
  18. package/dist/esm/index.js.map +1 -1
  19. package/dist/esm/index.mjs +75 -78
  20. package/dist/esm/index.mjs.map +1 -1
  21. package/dist/esm/index.native.js +75 -78
  22. package/dist/esm/index.native.js.map +1 -1
  23. package/dist/esm/v4.mjs +35 -36
  24. package/dist/esm/v4.mjs.map +1 -1
  25. package/dist/esm/v4.native.js +35 -36
  26. package/dist/esm/v4.native.js.map +1 -1
  27. package/dist/esm/v5.mjs +35 -36
  28. package/dist/esm/v5.mjs.map +1 -1
  29. package/dist/esm/v5.native.js +35 -36
  30. package/dist/esm/v5.native.js.map +1 -1
  31. package/dist/esm/v6.mjs +43 -0
  32. package/dist/esm/v6.mjs.map +1 -0
  33. package/dist/esm/v6.native.js +43 -0
  34. package/dist/esm/v6.native.js.map +1 -0
  35. package/package.json +25 -3
  36. package/src/v6.ts +51 -0
  37. package/types/index.d.ts +74 -74
  38. package/types/index.d.ts.map +1 -1
  39. package/types/v6.d.ts +40 -0
  40. package/types/v6.d.ts.map +1 -0
  41. package/v6.cjs +1 -0
  42. package/v6.d.ts +1 -0
  43. package/.turbo/turbo-build.log +0 -2
  44. 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
- for (var name in all) __defProp(target, name, {
7
- get: all[name],
8
- enumerable: true
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
- if (from && typeof from === "object" || typeof from === "function") {
13
- for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
14
- get: () => from[key],
15
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
16
- });
17
- }
18
- return to;
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
- // 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"
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
- return a;
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
+ }
@@ -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
- for (var name in all) __defProp(target, name, {
9
- get: all[name],
10
- enumerable: true
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
- if (from && typeof from === "object" || typeof from === "function") {
15
- for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
16
- get: () => from[key],
17
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
18
- });
19
- }
20
- return to;
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
- // text
32
- text: "textAlign",
33
- // view
34
- b: "bottom",
35
- bg: "backgroundColor",
36
- content: "alignContent",
37
- grow: "flexGrow",
38
- items: "alignItems",
39
- justify: "justifyContent",
40
- l: "left",
41
- m: "margin",
42
- maxH: "maxHeight",
43
- maxW: "maxWidth",
44
- mb: "marginBottom",
45
- minH: "minHeight",
46
- minW: "minWidth",
47
- ml: "marginLeft",
48
- mr: "marginRight",
49
- mt: "marginTop",
50
- mx: "marginHorizontal",
51
- my: "marginVertical",
52
- p: "padding",
53
- pb: "paddingBottom",
54
- pl: "paddingLeft",
55
- pr: "paddingRight",
56
- pt: "paddingTop",
57
- px: "paddingHorizontal",
58
- py: "paddingVertical",
59
- r: "right",
60
- rounded: "borderRadius",
61
- select: "userSelect",
62
- self: "alignSelf",
63
- shrink: "flexShrink",
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
- return a;
63
+ return a;
69
64
  }
65
+
70
66
  //# sourceMappingURL=v4.native.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","v4_exports","__export","shorthands","module","exports","createShorthands","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","a"],"sources":["../../src/v4.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,YAAa,CAAAK,UAAiB;AAAA,IAAAE,UAAA,GAAAG,gBAAA;EAEzC;EAAMC,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;EACJC,CAAA;AAGD;AACE,SAAOjC,iBAAAkC,CAAA;EACT,OAAAA,CAAA","ignoreList":[]}
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
- for (var name in all) __defProp(target, name, {
7
- get: all[name],
8
- enumerable: true
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
- if (from && typeof from === "object" || typeof from === "function") {
13
- for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
14
- get: () => from[key],
15
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
16
- });
17
- }
18
- return to;
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
- // 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"
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
- return a;
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
+ }
@@ -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
- for (var name in all) __defProp(target, name, {
9
- get: all[name],
10
- enumerable: true
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
- if (from && typeof from === "object" || typeof from === "function") {
15
- for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
16
- get: () => from[key],
17
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
18
- });
19
- }
20
- return to;
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
- // text
32
- text: "textAlign",
33
- // view
34
- b: "bottom",
35
- bg: "backgroundColor",
36
- content: "alignContent",
37
- grow: "flexGrow",
38
- items: "alignItems",
39
- justify: "justifyContent",
40
- l: "left",
41
- m: "margin",
42
- maxH: "maxHeight",
43
- maxW: "maxWidth",
44
- mb: "marginBottom",
45
- minH: "minHeight",
46
- minW: "minWidth",
47
- ml: "marginLeft",
48
- mr: "marginRight",
49
- mt: "marginTop",
50
- mx: "marginHorizontal",
51
- my: "marginVertical",
52
- p: "padding",
53
- pb: "paddingBottom",
54
- pl: "paddingLeft",
55
- pr: "paddingRight",
56
- pt: "paddingTop",
57
- px: "paddingHorizontal",
58
- py: "paddingVertical",
59
- r: "right",
60
- rounded: "borderRadius",
61
- select: "userSelect",
62
- self: "alignSelf",
63
- shrink: "flexShrink",
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
- return a;
63
+ return a;
69
64
  }
65
+
70
66
  //# sourceMappingURL=v5.native.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","v5_exports","__export","shorthands","module","exports","createShorthands","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","a"],"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,YAAa,CAAAK,UAAiB;AAAA,IAAAE,UAAA,GAAAG,gBAAA;EAEzC;EAAMC,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;EACJC,CAAA;AAGD;AACE,SAAOjC,iBAAAkC,CAAA;EACT,OAAAA,CAAA","ignoreList":[]}
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"}