@tamagui/spacer 2.7.7 → 3.0.0-beta.1091.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 +43 -54
  2. package/dist/cjs/Spacer.native.cjs +57 -0
  3. package/dist/cjs/Spacer.native.js +43 -55
  4. package/dist/cjs/Spacer.native.js.map +1 -1
  5. package/dist/cjs/Unspaced.cjs +18 -20
  6. package/dist/cjs/Unspaced.native.cjs +36 -0
  7. package/dist/cjs/Unspaced.native.js +18 -19
  8. package/dist/cjs/Unspaced.native.js.map +1 -1
  9. package/dist/cjs/index.cjs +14 -18
  10. package/dist/cjs/index.native.cjs +29 -0
  11. package/dist/cjs/index.native.js +14 -17
  12. package/dist/cjs/index.native.js.map +1 -1
  13. package/dist/cjs/spacedChildren.cjs +98 -130
  14. package/dist/cjs/spacedChildren.native.cjs +141 -0
  15. package/dist/cjs/spacedChildren.native.js +118 -153
  16. package/dist/cjs/spacedChildren.native.js.map +1 -1
  17. package/dist/cjs/types.cjs +9 -11
  18. package/dist/cjs/types.native.cjs +18 -0
  19. package/dist/cjs/types.native.js +9 -10
  20. package/dist/cjs/types.native.js.map +1 -1
  21. package/dist/esm/Spacer.mjs +32 -37
  22. package/dist/esm/Spacer.mjs.map +1 -1
  23. package/dist/esm/Spacer.native.js +32 -39
  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 +7 -5
  39. package/src/Spacer.tsx +8 -9
  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
@@ -3,64 +3,53 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
3
  var __getOwnPropNames = Object.getOwnPropertyNames;
4
4
  var __hasOwnProp = Object.prototype.hasOwnProperty;
5
5
  var __export = (target, all) => {
6
- for (var name in all) __defProp(target, name, {
7
- get: all[name],
8
- enumerable: true
9
- });
6
+ for (var name in all) __defProp(target, name, {
7
+ get: all[name],
8
+ enumerable: true
9
+ });
10
10
  };
11
11
  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;
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;
19
19
  };
20
- var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
21
- value: true
22
- }), mod);
20
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
23
21
  var Spacer_exports = {};
24
- __export(Spacer_exports, {
25
- Spacer: () => Spacer
26
- });
22
+ __export(Spacer_exports, { Spacer: () => Spacer });
27
23
  module.exports = __toCommonJS(Spacer_exports);
24
+ var import_size = require("@tamagui/size");
28
25
  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
- };
40
- };
26
+ const getSpacerSize = import_web.styled.dynamic((size, env) => {
27
+ if (size === false) return;
28
+ const sizePx = typeof size === "number" ? size : (0, import_size.resolveSize)(size, env).frame.paddingHorizontal;
29
+ return {
30
+ width: sizePx,
31
+ height: sizePx,
32
+ minWidth: sizePx,
33
+ minHeight: sizePx
34
+ };
35
+ });
41
36
  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
- });
37
+ displayName: "Spacer",
38
+ pointerEvents: "none",
39
+ render: "span",
40
+ variants: {
41
+ size: getSpacerSize,
42
+ direction: {
43
+ horizontal: {
44
+ height: 0,
45
+ minHeight: 0
46
+ },
47
+ vertical: {
48
+ width: 0,
49
+ minWidth: 0
50
+ },
51
+ both: {}
52
+ }
53
+ },
54
+ defaultVariants: { size: true }
55
+ });
@@ -0,0 +1,57 @@
1
+ "use strict";
2
+
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __export = (target, all) => {
8
+ for (var name in all) __defProp(target, name, {
9
+ get: all[name],
10
+ enumerable: true
11
+ });
12
+ };
13
+ 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;
21
+ };
22
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
23
+ var Spacer_exports = {};
24
+ __export(Spacer_exports, { Spacer: () => Spacer });
25
+ module.exports = __toCommonJS(Spacer_exports);
26
+ var import_size = require("@tamagui/size");
27
+ var import_web = require("@tamagui/web");
28
+ var getSpacerSize = import_web.styled.dynamic(function(size, env) {
29
+ if (size === false) return;
30
+ var sizePx = typeof size === "number" ? size : (0, import_size.resolveSize)(size, env).frame.paddingHorizontal;
31
+ return {
32
+ width: sizePx,
33
+ height: sizePx,
34
+ minWidth: sizePx,
35
+ minHeight: sizePx
36
+ };
37
+ });
38
+ var Spacer = (0, import_web.styled)(import_web.View, {
39
+ displayName: "Spacer",
40
+ pointerEvents: "none",
41
+ render: "span",
42
+ variants: {
43
+ size: getSpacerSize,
44
+ direction: {
45
+ horizontal: {
46
+ height: 0,
47
+ minHeight: 0
48
+ },
49
+ vertical: {
50
+ width: 0,
51
+ minWidth: 0
52
+ },
53
+ both: {}
54
+ }
55
+ },
56
+ defaultVariants: { size: true }
57
+ });
@@ -5,67 +5,55 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
5
  var __getOwnPropNames = Object.getOwnPropertyNames;
6
6
  var __hasOwnProp = Object.prototype.hasOwnProperty;
7
7
  var __export = (target, all) => {
8
- for (var name in all) __defProp(target, name, {
9
- get: all[name],
10
- enumerable: true
11
- });
8
+ for (var name in all) __defProp(target, name, {
9
+ get: all[name],
10
+ enumerable: true
11
+ });
12
12
  };
13
13
  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;
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;
21
21
  };
22
- var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
23
- value: true
24
- }), mod);
22
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
25
23
  var Spacer_exports = {};
26
- __export(Spacer_exports, {
27
- Spacer: () => Spacer
28
- });
24
+ __export(Spacer_exports, { Spacer: () => Spacer });
29
25
  module.exports = __toCommonJS(Spacer_exports);
26
+ var import_size = require("@tamagui/size");
30
27
  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
- };
44
- };
28
+ var getSpacerSize = import_web.styled.dynamic(function(size, env) {
29
+ if (size === false) return;
30
+ var sizePx = typeof size === "number" ? size : (0, import_size.resolveSize)(size, env).frame.paddingHorizontal;
31
+ return {
32
+ width: sizePx,
33
+ height: sizePx,
34
+ minWidth: sizePx,
35
+ minHeight: sizePx
36
+ };
37
+ });
45
38
  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
- }
39
+ displayName: "Spacer",
40
+ pointerEvents: "none",
41
+ render: "span",
42
+ variants: {
43
+ size: getSpacerSize,
44
+ direction: {
45
+ horizontal: {
46
+ height: 0,
47
+ minHeight: 0
48
+ },
49
+ vertical: {
50
+ width: 0,
51
+ minWidth: 0
52
+ },
53
+ both: {}
54
+ }
55
+ },
56
+ defaultVariants: { size: true }
70
57
  });
58
+
71
59
  //# 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 = import_web.styled.dynamic(function(size, env) {\n if (size === false) return;\n var sizePx = typeof size === \"number\" ? size : (0, import_size.resolveSize)(size, env).frame.paddingHorizontal;\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: getSpacerSize,\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,WAAW,OAAO,QAAQ,SAAS,MAAM,KAAK;CAChE,IAAI,SAAS,OAAO;CACpB,IAAI,SAAS,OAAO,SAAS,WAAW,QAAQ,GAAG,YAAY,YAAW,CAAE,MAAM,GAAG,CAAC,CAAC,MAAM;CAC7F,OAAO;EACL,OAAO;EACP,QAAQ;EACR,UAAU;EACV,WAAW;CACb;AACF,CAAC;AACD,IAAI,UAAU,GAAG,WAAW,OAAM,CAAE,WAAW,MAAM;CACnD,aAAa;CACb,eAAe;CACf,QAAQ;CACR,UAAU;EACR,MAAM;EACN,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"}
@@ -3,34 +3,32 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
3
  var __getOwnPropNames = Object.getOwnPropertyNames;
4
4
  var __hasOwnProp = Object.prototype.hasOwnProperty;
5
5
  var __export = (target, all) => {
6
- for (var name in all) __defProp(target, name, {
7
- get: all[name],
8
- enumerable: true
9
- });
6
+ for (var name in all) __defProp(target, name, {
7
+ get: all[name],
8
+ enumerable: true
9
+ });
10
10
  };
11
11
  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;
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;
19
19
  };
20
- var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
21
- value: true
22
- }), mod);
20
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
23
21
  var Unspaced_exports = {};
24
22
  __export(Unspaced_exports, {
25
- Unspaced: () => Unspaced,
26
- isUnspaced: () => isUnspaced
23
+ Unspaced: () => Unspaced,
24
+ isUnspaced: () => isUnspaced
27
25
  });
28
26
  module.exports = __toCommonJS(Unspaced_exports);
29
27
  function Unspaced(props) {
30
- return props.children;
28
+ return props.children;
31
29
  }
32
30
  Unspaced["isUnspaced"] = true;
33
31
  function isUnspaced(child) {
34
- const t = child?.["type"];
35
- return t?.["isVisuallyHidden"] || t?.["isUnspaced"];
36
- }
32
+ const t = child?.["type"];
33
+ return t?.["isVisuallyHidden"] || t?.["isUnspaced"];
34
+ }
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __export = (target, all) => {
8
+ for (var name in all) __defProp(target, name, {
9
+ get: all[name],
10
+ enumerable: true
11
+ });
12
+ };
13
+ 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;
21
+ };
22
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
23
+ var Unspaced_exports = {};
24
+ __export(Unspaced_exports, {
25
+ Unspaced: () => Unspaced,
26
+ isUnspaced: () => isUnspaced
27
+ });
28
+ module.exports = __toCommonJS(Unspaced_exports);
29
+ function Unspaced(props) {
30
+ return props.children;
31
+ }
32
+ Unspaced["isUnspaced"] = true;
33
+ function isUnspaced(child) {
34
+ var t = child === null || child === void 0 ? void 0 : child["type"];
35
+ return (t === null || t === void 0 ? void 0 : t["isVisuallyHidden"]) || (t === null || t === void 0 ? void 0 : t["isUnspaced"]);
36
+ }
@@ -5,35 +5,34 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
5
  var __getOwnPropNames = Object.getOwnPropertyNames;
6
6
  var __hasOwnProp = Object.prototype.hasOwnProperty;
7
7
  var __export = (target, all) => {
8
- for (var name in all) __defProp(target, name, {
9
- get: all[name],
10
- enumerable: true
11
- });
8
+ for (var name in all) __defProp(target, name, {
9
+ get: all[name],
10
+ enumerable: true
11
+ });
12
12
  };
13
13
  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;
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;
21
21
  };
22
- var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
23
- value: true
24
- }), mod);
22
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
25
23
  var Unspaced_exports = {};
26
24
  __export(Unspaced_exports, {
27
- Unspaced: () => Unspaced,
28
- isUnspaced: () => isUnspaced
25
+ Unspaced: () => Unspaced,
26
+ isUnspaced: () => isUnspaced
29
27
  });
30
28
  module.exports = __toCommonJS(Unspaced_exports);
31
29
  function Unspaced(props) {
32
- return props.children;
30
+ return props.children;
33
31
  }
34
32
  Unspaced["isUnspaced"] = true;
35
33
  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"]);
34
+ var t = child === null || child === void 0 ? void 0 : child["type"];
35
+ return (t === null || t === void 0 ? void 0 : t["isVisuallyHidden"]) || (t === null || t === void 0 ? void 0 : t["isUnspaced"]);
38
36
  }
37
+
39
38
  //# 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"}
@@ -3,29 +3,25 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
3
  var __getOwnPropNames = Object.getOwnPropertyNames;
4
4
  var __hasOwnProp = Object.prototype.hasOwnProperty;
5
5
  var __export = (target, all) => {
6
- for (var name in all) __defProp(target, name, {
7
- get: all[name],
8
- enumerable: true
9
- });
6
+ for (var name in all) __defProp(target, name, {
7
+ get: all[name],
8
+ enumerable: true
9
+ });
10
10
  };
11
11
  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;
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;
19
19
  };
20
20
  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);
21
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
24
22
  var index_exports = {};
25
- __export(index_exports, {
26
- spacedChildren: () => import_spacedChildren.spacedChildren
27
- });
23
+ __export(index_exports, { spacedChildren: () => import_spacedChildren.spacedChildren });
28
24
  module.exports = __toCommonJS(index_exports);
29
25
  var import_spacedChildren = require("./spacedChildren.cjs");
30
26
  __reExport(index_exports, require("./Spacer.cjs"), module.exports);
31
- __reExport(index_exports, require("./Unspaced.cjs"), module.exports);
27
+ __reExport(index_exports, require("./Unspaced.cjs"), module.exports);
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __export = (target, all) => {
8
+ for (var name in all) __defProp(target, name, {
9
+ get: all[name],
10
+ enumerable: true
11
+ });
12
+ };
13
+ 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;
21
+ };
22
+ var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
23
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
24
+ var index_exports = {};
25
+ __export(index_exports, { spacedChildren: () => import_spacedChildren.spacedChildren });
26
+ module.exports = __toCommonJS(index_exports);
27
+ var import_spacedChildren = require("./spacedChildren.native.js");
28
+ __reExport(index_exports, require("./Spacer.native.js"), module.exports);
29
+ __reExport(index_exports, require("./Unspaced.native.js"), module.exports);
@@ -5,30 +5,27 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
5
  var __getOwnPropNames = Object.getOwnPropertyNames;
6
6
  var __hasOwnProp = Object.prototype.hasOwnProperty;
7
7
  var __export = (target, all) => {
8
- for (var name in all) __defProp(target, name, {
9
- get: all[name],
10
- enumerable: true
11
- });
8
+ for (var name in all) __defProp(target, name, {
9
+ get: all[name],
10
+ enumerable: true
11
+ });
12
12
  };
13
13
  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;
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;
21
21
  };
22
22
  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);
23
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
26
24
  var index_exports = {};
27
- __export(index_exports, {
28
- spacedChildren: () => import_spacedChildren.spacedChildren
29
- });
25
+ __export(index_exports, { spacedChildren: () => import_spacedChildren.spacedChildren });
30
26
  module.exports = __toCommonJS(index_exports);
31
27
  var import_spacedChildren = require("./spacedChildren.native.js");
32
28
  __reExport(index_exports, require("./Spacer.native.js"), module.exports);
33
29
  __reExport(index_exports, require("./Unspaced.native.js"), module.exports);
30
+
34
31
  //# 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"}