@tamagui/spacer 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 (48) hide show
  1. package/dist/cjs/Spacer.cjs +47 -53
  2. package/dist/cjs/Spacer.native.cjs +64 -0
  3. package/dist/cjs/Spacer.native.js +49 -54
  4. package/dist/cjs/Spacer.native.js.map +1 -1
  5. package/dist/cjs/Unspaced.cjs +19 -20
  6. package/dist/cjs/Unspaced.native.cjs +37 -0
  7. package/dist/cjs/Unspaced.native.js +19 -19
  8. package/dist/cjs/Unspaced.native.js.map +1 -1
  9. package/dist/cjs/index.cjs +15 -18
  10. package/dist/cjs/index.native.cjs +30 -0
  11. package/dist/cjs/index.native.js +15 -17
  12. package/dist/cjs/index.native.js.map +1 -1
  13. package/dist/cjs/spacedChildren.cjs +99 -130
  14. package/dist/cjs/spacedChildren.native.cjs +142 -0
  15. package/dist/cjs/spacedChildren.native.js +119 -153
  16. package/dist/cjs/spacedChildren.native.js.map +1 -1
  17. package/dist/cjs/types.cjs +10 -11
  18. package/dist/cjs/types.native.cjs +19 -0
  19. package/dist/cjs/types.native.js +10 -10
  20. package/dist/cjs/types.native.js.map +1 -1
  21. package/dist/esm/Spacer.mjs +35 -36
  22. package/dist/esm/Spacer.mjs.map +1 -1
  23. package/dist/esm/Spacer.native.js +37 -38
  24. package/dist/esm/Spacer.native.js.map +1 -1
  25. package/dist/esm/Unspaced.mjs +4 -3
  26. package/dist/esm/Unspaced.mjs.map +1 -1
  27. package/dist/esm/Unspaced.native.js +4 -3
  28. package/dist/esm/Unspaced.native.js.map +1 -1
  29. package/dist/esm/index.js +6 -4
  30. package/dist/esm/index.mjs +6 -4
  31. package/dist/esm/index.native.js +6 -4
  32. package/dist/esm/spacedChildren.mjs +84 -105
  33. package/dist/esm/spacedChildren.mjs.map +1 -1
  34. package/dist/esm/spacedChildren.native.js +104 -129
  35. package/dist/esm/spacedChildren.native.js.map +1 -1
  36. package/dist/esm/types.mjs +0 -2
  37. package/dist/esm/types.native.js +0 -2
  38. package/package.json +5 -4
  39. package/src/Spacer.tsx +7 -5
  40. package/types/Spacer.d.ts +14 -5
  41. package/types/Spacer.d.ts.map +1 -1
  42. package/types/Unspaced.d.ts +2 -1
  43. package/types/Unspaced.d.ts.map +1 -1
  44. package/dist/esm/index.js.map +0 -1
  45. package/dist/esm/index.mjs.map +0 -1
  46. package/dist/esm/index.native.js.map +0 -1
  47. package/dist/esm/types.mjs.map +0 -1
  48. package/dist/esm/types.native.js.map +0 -1
@@ -1,66 +1,60 @@
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 Spacer_exports = {};
24
- __export(Spacer_exports, {
25
- Spacer: () => Spacer
26
- });
23
+ __export(Spacer_exports, { Spacer: () => Spacer });
27
24
  module.exports = __toCommonJS(Spacer_exports);
25
+ var import_size = require("@tamagui/size");
28
26
  var import_web = require("@tamagui/web");
29
- const getSpacerSize = (size, {
30
- tokens
31
- }) => {
32
- size = size === true ? "$true" : size;
33
- const sizePx = tokens.space[size] ?? size;
34
- return {
35
- width: sizePx,
36
- height: sizePx,
37
- minWidth: sizePx,
38
- minHeight: sizePx
39
- };
27
+ const getSpacerSize = (size, { tokens }) => {
28
+ const sizeToken = (0, import_size.resolveSizeToken)(size, "space");
29
+ const sizePx = tokens.space[sizeToken] ?? sizeToken;
30
+ return {
31
+ width: sizePx,
32
+ height: sizePx,
33
+ minWidth: sizePx,
34
+ minHeight: sizePx
35
+ };
40
36
  };
41
37
  const Spacer = (0, import_web.styled)(import_web.View, {
42
- name: "Spacer",
43
- pointerEvents: "none",
44
- render: "span",
45
- variants: {
46
- size: {
47
- "...size": getSpacerSize,
48
- "...": getSpacerSize
49
- },
50
- direction: {
51
- horizontal: {
52
- height: 0,
53
- minHeight: 0
54
- },
55
- vertical: {
56
- width: 0,
57
- minWidth: 0
58
- },
59
- both: {}
60
- }
61
- },
62
- defaultVariants: {
63
- // @ts-ignore
64
- size: true
65
- }
66
- });
38
+ displayName: "Spacer",
39
+ pointerEvents: "none",
40
+ render: "span",
41
+ variants: {
42
+ size: {
43
+ true: getSpacerSize,
44
+ Size: getSpacerSize,
45
+ any: getSpacerSize
46
+ },
47
+ direction: {
48
+ horizontal: {
49
+ height: 0,
50
+ minHeight: 0
51
+ },
52
+ vertical: {
53
+ width: 0,
54
+ minWidth: 0
55
+ },
56
+ both: {}
57
+ }
58
+ },
59
+ defaultVariants: { size: true }
60
+ });
@@ -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 Spacer_exports = {};
25
+ __export(Spacer_exports, { Spacer: () => Spacer });
26
+ module.exports = __toCommonJS(Spacer_exports);
27
+ var import_size = require("@tamagui/size");
28
+ var import_web = require("@tamagui/web");
29
+ var getSpacerSize = function(size, param) {
30
+ var { tokens } = param;
31
+ var sizeToken = (0, import_size.resolveSizeToken)(size, "space");
32
+ var _tokens_space_sizeToken;
33
+ var sizePx = (_tokens_space_sizeToken = tokens.space[sizeToken]) !== null && _tokens_space_sizeToken !== void 0 ? _tokens_space_sizeToken : sizeToken;
34
+ return {
35
+ width: sizePx,
36
+ height: sizePx,
37
+ minWidth: sizePx,
38
+ minHeight: sizePx
39
+ };
40
+ };
41
+ var Spacer = (0, import_web.styled)(import_web.View, {
42
+ displayName: "Spacer",
43
+ pointerEvents: "none",
44
+ render: "span",
45
+ variants: {
46
+ size: {
47
+ true: getSpacerSize,
48
+ Size: getSpacerSize,
49
+ any: getSpacerSize
50
+ },
51
+ direction: {
52
+ horizontal: {
53
+ height: 0,
54
+ minHeight: 0
55
+ },
56
+ vertical: {
57
+ width: 0,
58
+ minWidth: 0
59
+ },
60
+ both: {}
61
+ }
62
+ },
63
+ defaultVariants: { size: true }
64
+ });
@@ -1,71 +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 Spacer_exports = {};
26
- __export(Spacer_exports, {
27
- Spacer: () => Spacer
28
- });
25
+ __export(Spacer_exports, { Spacer: () => Spacer });
29
26
  module.exports = __toCommonJS(Spacer_exports);
27
+ var import_size = require("@tamagui/size");
30
28
  var import_web = require("@tamagui/web");
31
- var getSpacerSize = function (size, param) {
32
- var {
33
- tokens
34
- } = param;
35
- size = size === true ? "$true" : size;
36
- var _tokens_space_size;
37
- var sizePx = (_tokens_space_size = tokens.space[size]) !== null && _tokens_space_size !== void 0 ? _tokens_space_size : size;
38
- return {
39
- width: sizePx,
40
- height: sizePx,
41
- minWidth: sizePx,
42
- minHeight: sizePx
43
- };
29
+ var getSpacerSize = function(size, param) {
30
+ var { tokens } = param;
31
+ var sizeToken = (0, import_size.resolveSizeToken)(size, "space");
32
+ var _tokens_space_sizeToken;
33
+ var sizePx = (_tokens_space_sizeToken = tokens.space[sizeToken]) !== null && _tokens_space_sizeToken !== void 0 ? _tokens_space_sizeToken : sizeToken;
34
+ return {
35
+ width: sizePx,
36
+ height: sizePx,
37
+ minWidth: sizePx,
38
+ minHeight: sizePx
39
+ };
44
40
  };
45
41
  var Spacer = (0, import_web.styled)(import_web.View, {
46
- name: "Spacer",
47
- pointerEvents: "none",
48
- render: "span",
49
- variants: {
50
- size: {
51
- "...size": getSpacerSize,
52
- "...": getSpacerSize
53
- },
54
- direction: {
55
- horizontal: {
56
- height: 0,
57
- minHeight: 0
58
- },
59
- vertical: {
60
- width: 0,
61
- minWidth: 0
62
- },
63
- both: {}
64
- }
65
- },
66
- defaultVariants: {
67
- // @ts-ignore
68
- size: true
69
- }
42
+ displayName: "Spacer",
43
+ pointerEvents: "none",
44
+ render: "span",
45
+ variants: {
46
+ size: {
47
+ true: getSpacerSize,
48
+ Size: getSpacerSize,
49
+ any: getSpacerSize
50
+ },
51
+ direction: {
52
+ horizontal: {
53
+ height: 0,
54
+ minHeight: 0
55
+ },
56
+ vertical: {
57
+ width: 0,
58
+ minWidth: 0
59
+ },
60
+ both: {}
61
+ }
62
+ },
63
+ defaultVariants: { size: true }
70
64
  });
65
+
71
66
  //# sourceMappingURL=Spacer.native.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","Spacer_exports","__export","Spacer","module","exports","import_web","require","getSpacerSize","size","param","tokens","_tokens_space_size","sizePx","space","width","height","minWidth","minHeight","styled","View","name","pointerEvents","render","variants","direction","horizontal","vertical","both","defaultVariants"],"sources":["../../src/Spacer.tsx"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;EAAAC,KAAA;AAAA,IAAAH,GAAA;AAAA,IAAAI,cAAA;AAAAC,QAAA,CAAAD,cAAA;EAAAE,MAAA,EAAAA,CAAA,KAAAA;AAAA;AAAAC,MAAA,CAAAC,OAAA,GAA8CT,YAAA,CAAAK,cAAA;AAE9C,IAAAK,UAAM,GAAAC,OAAiB,eAA8C;AACnE,IAAAC,aAAO,GAAS,SAAAA,CAAOC,IAAA,EAAUC,KAAA;EACjC;IAAMC;EAAA,IAASD,KAAO;EACtBD,IAAA,GAAOA,IAAA,sBAAAA,IAAA;EAAA,IACLG,kBAAO;EAAA,IACPC,MAAQ,IAAAD,kBAAA,GAAAD,MAAA,CAAAG,KAAA,CAAAL,IAAA,eAAAG,kBAAA,cAAAA,kBAAA,GAAAH,IAAA;EAAA,OACR;IACAM,KAAA,EAAAF,MAAW;IACbG,MAAA,EAAAH,MAAA;IACFI,QAAA,EAAAJ,MAAA;IAEOK,SAAM,EAAAL;EACX;AAAM;AACS,IACfV,MAAQ,OAAAG,UAAA,CAAAa,MAAA,EAAAb,UAAA,CAAAc,IAAA;EAERC,IAAA,UAAU;EAAAC,aACF;EAAAC,MACJ;EAAWC,QACX;IACFf,IAAA;MAEA,SAAW,EAAAD,aAAA;MACT,OAAAA;IAAY;IACFiB,SACR;MACFC,UAAA;QACAV,MAAA,EAAU;QACRE,SAAO;MAAA;MAETS,QAAA;QACAZ,KAAO;QACTE,QAAA;MACF;MAEAW,IAAA;IAAiB;EAAA;EAGjBC,eAAA;IACD","ignoreList":[]}
1
+ {"version":3,"file":"Spacer.native.js","names":[],"sources":["cjs/Spacer.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 Spacer_exports = {};\n__export(Spacer_exports, {\n Spacer: () => Spacer\n});\nmodule.exports = __toCommonJS(Spacer_exports);\nvar import_size = require(\"@tamagui/size\");\nvar import_web = require(\"@tamagui/web\");\nvar getSpacerSize = function(size, param) {\n var { tokens } = param;\n var sizeToken = (0, import_size.resolveSizeToken)(size, \"space\");\n var _tokens_space_sizeToken;\n var sizePx = (_tokens_space_sizeToken = tokens.space[sizeToken]) !== null && _tokens_space_sizeToken !== void 0 ? _tokens_space_sizeToken : sizeToken;\n return {\n width: sizePx,\n height: sizePx,\n minWidth: sizePx,\n minHeight: sizePx\n };\n};\nvar Spacer = (0, import_web.styled)(import_web.View, {\n displayName: \"Spacer\",\n pointerEvents: \"none\",\n render: \"span\",\n variants: {\n size: {\n true: getSpacerSize,\n Size: getSpacerSize,\n any: getSpacerSize\n },\n direction: {\n horizontal: {\n height: 0,\n minHeight: 0\n },\n vertical: {\n width: 0,\n minWidth: 0\n },\n both: {}\n }\n },\n defaultVariants: {\n // @ts-ignore\n size: true\n }\n});\n//# sourceMappingURL=Spacer.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,iBAAiB,CAAC;AACtB,SAAS,gBAAgB,EACvB,cAAc,OAChB,CAAC;AACD,OAAO,UAAU,aAAa,cAAc;AAC5C,IAAI,cAAc,QAAQ,eAAe;AACzC,IAAI,aAAa,QAAQ,cAAc;AACvC,IAAI,gBAAgB,SAAS,MAAM,OAAO;CACxC,IAAI,EAAE,WAAW;CACjB,IAAI,aAAa,GAAG,YAAY,kBAAkB,MAAM,OAAO;CAC/D,IAAI;CACJ,IAAI,UAAU,0BAA0B,OAAO,MAAM,gBAAgB,QAAQ,4BAA4B,KAAK,IAAI,0BAA0B;CAC5I,OAAO;EACL,OAAO;EACP,QAAQ;EACR,UAAU;EACV,WAAW;CACb;AACF;AACA,IAAI,UAAU,GAAG,WAAW,QAAQ,WAAW,MAAM;CACnD,aAAa;CACb,eAAe;CACf,QAAQ;CACR,UAAU;EACR,MAAM;GACJ,MAAM;GACN,MAAM;GACN,KAAK;EACP;EACA,WAAW;GACT,YAAY;IACV,QAAQ;IACR,WAAW;GACb;GACA,UAAU;IACR,OAAO;IACP,UAAU;GACZ;GACA,MAAM,CAAC;EACT;CACF;CACA,iBAAiB,EAEf,MAAM,KACR;AACF,CAAC"}
@@ -1,36 +1,35 @@
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 Unspaced_exports = {};
24
23
  __export(Unspaced_exports, {
25
- Unspaced: () => Unspaced,
26
- isUnspaced: () => isUnspaced
24
+ Unspaced: () => Unspaced,
25
+ isUnspaced: () => isUnspaced
27
26
  });
28
27
  module.exports = __toCommonJS(Unspaced_exports);
29
28
  function Unspaced(props) {
30
- return props.children;
29
+ return props.children;
31
30
  }
32
31
  Unspaced["isUnspaced"] = true;
33
32
  function isUnspaced(child) {
34
- const t = child?.["type"];
35
- return t?.["isVisuallyHidden"] || t?.["isUnspaced"];
36
- }
33
+ const t = child?.["type"];
34
+ return t?.["isVisuallyHidden"] || t?.["isUnspaced"];
35
+ }
@@ -0,0 +1,37 @@
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 Unspaced_exports = {};
25
+ __export(Unspaced_exports, {
26
+ Unspaced: () => Unspaced,
27
+ isUnspaced: () => isUnspaced
28
+ });
29
+ module.exports = __toCommonJS(Unspaced_exports);
30
+ function Unspaced(props) {
31
+ return props.children;
32
+ }
33
+ Unspaced["isUnspaced"] = true;
34
+ function isUnspaced(child) {
35
+ var t = child === null || child === void 0 ? void 0 : child["type"];
36
+ return (t === null || t === void 0 ? void 0 : t["isVisuallyHidden"]) || (t === null || t === void 0 ? void 0 : t["isUnspaced"]);
37
+ }
@@ -1,39 +1,39 @@
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 Unspaced_exports = {};
26
25
  __export(Unspaced_exports, {
27
- Unspaced: () => Unspaced,
28
- isUnspaced: () => isUnspaced
26
+ Unspaced: () => Unspaced,
27
+ isUnspaced: () => isUnspaced
29
28
  });
30
29
  module.exports = __toCommonJS(Unspaced_exports);
31
30
  function Unspaced(props) {
32
- return props.children;
31
+ return props.children;
33
32
  }
34
33
  Unspaced["isUnspaced"] = true;
35
34
  function isUnspaced(child) {
36
- var t = child === null || child === void 0 ? void 0 : child["type"];
37
- return (t === null || t === void 0 ? void 0 : t["isVisuallyHidden"]) || (t === null || t === void 0 ? void 0 : t["isUnspaced"]);
35
+ var t = child === null || child === void 0 ? void 0 : child["type"];
36
+ return (t === null || t === void 0 ? void 0 : t["isVisuallyHidden"]) || (t === null || t === void 0 ? void 0 : t["isUnspaced"]);
38
37
  }
38
+
39
39
  //# sourceMappingURL=Unspaced.native.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","Unspaced_exports","__export","Unspaced","isUnspaced","module","exports","props","children","child","t"],"sources":["../../src/Unspaced.tsx"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;EAAAC,KAAA;AAAA,IAAAH,GAAA;AAAA,IAAAI,gBAAA;AAAAC,QAAA,CAAAD,gBAAA;EAAAE,QAAA,EAAAA,CAAA,KAAAA,QAAA;EAAAC,UAAA,EAAAA,CAAA,KAAAA;AAAA;AACOC,MAAA,CAAAC,OAAS,GAAAV,YAAoC,CAAAK,gBAAA;AAClD,SAAOE,QAAMA,CAAAI,KAAA;EACf,OAAAA,KAAA,CAAAC,QAAA;AAEA;AAEOL,QAAA,CAAS,YAAW,QAAwB;AACjD,SAAMC,UAAIA,CAAQK,KAAA,EAAM;EACxB,IAAAC,CAAA,GAAOD,KAAI,aAAAA,KAAkB,KAAK,KAAI,SAAY,IAAAA,KAAA;EACpD,QAAAC,CAAA,aAAAA,CAAA,uBAAAA,CAAA,0BAAAA,CAAA,aAAAA,CAAA,uBAAAA,CAAA","ignoreList":[]}
1
+ {"version":3,"file":"Unspaced.native.js","names":[],"sources":["cjs/Unspaced.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 Unspaced_exports = {};\n__export(Unspaced_exports, {\n Unspaced: () => Unspaced,\n isUnspaced: () => isUnspaced\n});\nmodule.exports = __toCommonJS(Unspaced_exports);\nfunction Unspaced(props) {\n return props.children;\n}\nUnspaced[\"isUnspaced\"] = true;\nfunction isUnspaced(child) {\n var t = child === null || child === void 0 ? void 0 : child[\"type\"];\n return (t === null || t === void 0 ? void 0 : t[\"isVisuallyHidden\"]) || (t === null || t === void 0 ? void 0 : t[\"isUnspaced\"]);\n}\n//# sourceMappingURL=Unspaced.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,mBAAmB,CAAC;AACxB,SAAS,kBAAkB;CACzB,gBAAgB;CAChB,kBAAkB;AACpB,CAAC;AACD,OAAO,UAAU,aAAa,gBAAgB;AAC9C,SAAS,SAAS,OAAO;CACvB,OAAO,MAAM;AACf;AACA,SAAS,gBAAgB;AACzB,SAAS,WAAW,OAAO;CACzB,IAAI,IAAI,UAAU,QAAQ,UAAU,KAAK,IAAI,KAAK,IAAI,MAAM;CAC5D,QAAQ,MAAM,QAAQ,MAAM,KAAK,IAAI,KAAK,IAAI,EAAE,yBAAyB,MAAM,QAAQ,MAAM,KAAK,IAAI,KAAK,IAAI,EAAE;AACnH"}
@@ -1,31 +1,28 @@
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
21
  var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
21
- var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
22
- value: true
23
- }), mod);
22
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
24
23
  var index_exports = {};
25
- __export(index_exports, {
26
- spacedChildren: () => import_spacedChildren.spacedChildren
27
- });
24
+ __export(index_exports, { spacedChildren: () => import_spacedChildren.spacedChildren });
28
25
  module.exports = __toCommonJS(index_exports);
29
26
  var import_spacedChildren = require("./spacedChildren.cjs");
30
27
  __reExport(index_exports, require("./Spacer.cjs"), module.exports);
31
- __reExport(index_exports, require("./Unspaced.cjs"), module.exports);
28
+ __reExport(index_exports, require("./Unspaced.cjs"), module.exports);
@@ -0,0 +1,30 @@
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 __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
24
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
25
+ var index_exports = {};
26
+ __export(index_exports, { spacedChildren: () => import_spacedChildren.spacedChildren });
27
+ module.exports = __toCommonJS(index_exports);
28
+ var import_spacedChildren = require("./spacedChildren.native.js");
29
+ __reExport(index_exports, require("./Spacer.native.js"), module.exports);
30
+ __reExport(index_exports, require("./Unspaced.native.js"), module.exports);
@@ -1,34 +1,32 @@
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
23
  var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
23
- var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
24
- value: true
25
- }), mod);
24
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
26
25
  var index_exports = {};
27
- __export(index_exports, {
28
- spacedChildren: () => import_spacedChildren.spacedChildren
29
- });
26
+ __export(index_exports, { spacedChildren: () => import_spacedChildren.spacedChildren });
30
27
  module.exports = __toCommonJS(index_exports);
31
28
  var import_spacedChildren = require("./spacedChildren.native.js");
32
29
  __reExport(index_exports, require("./Spacer.native.js"), module.exports);
33
30
  __reExport(index_exports, require("./Unspaced.native.js"), module.exports);
31
+
34
32
  //# sourceMappingURL=index.native.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","index_exports","__export","spacedChildren","import_spacedChildren","module","exports","require","__reExport"],"sources":["../../src/index.ts"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;EAAAC,KAAA;AAAA,IAAAH,GAAA;AAAA,IAAAI,aAAA;AAAAC,QAAA,CAAAD,aAAA;EAAAE,cAAA,EAAAA,CAAA,KAAAC,qBAAA,CAAAD;AAAA;AAAAE,MAAA,CAAAC,OAAA,GAAAV,YAA+B,CAAAK,aAAA;AAC/B,IAAAG,qBAAA,GAAcG,OAAA,6BADd;AAEAC,UAAA,CAAAP,aAAA,EAAcM,OAAA,wBAAAF,MAFd,CAAAC,OAAA","ignoreList":[]}
1
+ {"version":3,"file":"index.native.js","names":[],"sources":["cjs/index.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 __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, \"default\"), secondTarget && __copyProps(secondTarget, mod, \"default\"));\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar index_exports = {};\n__export(index_exports, {\n spacedChildren: () => import_spacedChildren.spacedChildren\n});\nmodule.exports = __toCommonJS(index_exports);\nvar import_spacedChildren = require(\"./spacedChildren\");\n__reExport(index_exports, require(\"./Spacer\"), module.exports);\n__reExport(index_exports, require(\"./Unspaced\"), module.exports);\n//# sourceMappingURL=index.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,cAAc,QAAQ,KAAK,kBAAkB,YAAY,QAAQ,KAAK,SAAS,GAAG,gBAAgB,YAAY,cAAc,KAAK,SAAS;AAC9I,IAAI,gBAAgB,QAAQ,YAAY,UAAU,CAAC,GAAG,cAAc,EAAE,OAAO,KAAK,CAAC,GAAG,GAAG;AACzF,IAAI,gBAAgB,CAAC;AACrB,SAAS,eAAe,EACtB,sBAAsB,sBAAsB,eAC9C,CAAC;AACD,OAAO,UAAU,aAAa,aAAa;AAC3C,IAAI,wBAAwB,QAAQ,4BAAkB;AACtD,WAAW,eAAe,QAAQ,oBAAU,GAAG,OAAO,OAAO;AAC7D,WAAW,eAAe,QAAQ,sBAAY,GAAG,OAAO,OAAO"}