@tamagui/spacer 3.0.0-beta.1432.1 → 3.0.0-beta.1444.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 (42) hide show
  1. package/dist/cjs/index.cjs +0 -9
  2. package/dist/cjs/index.native.cjs +0 -9
  3. package/dist/cjs/index.native.js +0 -9
  4. package/dist/cjs/index.native.js.map +1 -1
  5. package/dist/esm/index.js +0 -6
  6. package/dist/esm/index.mjs +0 -6
  7. package/dist/esm/index.native.js +0 -6
  8. package/package.json +3 -3
  9. package/src/index.ts +0 -3
  10. package/types/index.d.ts +0 -3
  11. package/types/index.d.ts.map +1 -1
  12. package/dist/cjs/Unspaced.cjs +0 -34
  13. package/dist/cjs/Unspaced.native.cjs +0 -36
  14. package/dist/cjs/Unspaced.native.js +0 -38
  15. package/dist/cjs/Unspaced.native.js.map +0 -1
  16. package/dist/cjs/spacedChildren.cjs +0 -119
  17. package/dist/cjs/spacedChildren.native.cjs +0 -141
  18. package/dist/cjs/spacedChildren.native.js +0 -143
  19. package/dist/cjs/spacedChildren.native.js.map +0 -1
  20. package/dist/cjs/types.cjs +0 -16
  21. package/dist/cjs/types.native.cjs +0 -18
  22. package/dist/cjs/types.native.js +0 -20
  23. package/dist/cjs/types.native.js.map +0 -1
  24. package/dist/esm/Unspaced.mjs +0 -11
  25. package/dist/esm/Unspaced.mjs.map +0 -1
  26. package/dist/esm/Unspaced.native.js +0 -11
  27. package/dist/esm/Unspaced.native.js.map +0 -1
  28. package/dist/esm/spacedChildren.mjs +0 -94
  29. package/dist/esm/spacedChildren.mjs.map +0 -1
  30. package/dist/esm/spacedChildren.native.js +0 -114
  31. package/dist/esm/spacedChildren.native.js.map +0 -1
  32. package/dist/esm/types.mjs +0 -0
  33. package/dist/esm/types.native.js +0 -0
  34. package/src/Unspaced.tsx +0 -11
  35. package/src/spacedChildren.tsx +0 -134
  36. package/src/types.ts +0 -21
  37. package/types/Unspaced.d.ts +0 -9
  38. package/types/Unspaced.d.ts.map +0 -1
  39. package/types/spacedChildren.d.ts +0 -4
  40. package/types/spacedChildren.d.ts.map +0 -1
  41. package/types/types.d.ts +0 -19
  42. package/types/types.d.ts.map +0 -1
@@ -2,12 +2,6 @@ var __defProp = Object.defineProperty;
2
2
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
3
  var __getOwnPropNames = Object.getOwnPropertyNames;
4
4
  var __hasOwnProp = Object.prototype.hasOwnProperty;
5
- var __export = (target, all) => {
6
- for (var name in all) __defProp(target, name, {
7
- get: all[name],
8
- enumerable: true
9
- });
10
- };
11
5
  var __copyProps = (to, from, except, desc) => {
12
6
  if (from && typeof from === "object" || typeof from === "function") {
13
7
  for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
@@ -20,8 +14,5 @@ var __copyProps = (to, from, except, desc) => {
20
14
  var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
21
15
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
22
16
  var index_exports = {};
23
- __export(index_exports, { spacedChildren: () => import_spacedChildren.spacedChildren });
24
17
  module.exports = __toCommonJS(index_exports);
25
- var import_spacedChildren = require("./spacedChildren.cjs");
26
18
  __reExport(index_exports, require("./Spacer.cjs"), module.exports);
27
- __reExport(index_exports, require("./Unspaced.cjs"), module.exports);
@@ -4,12 +4,6 @@ var __defProp = Object.defineProperty;
4
4
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
5
  var __getOwnPropNames = Object.getOwnPropertyNames;
6
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
7
  var __copyProps = (to, from, except, desc) => {
14
8
  if (from && typeof from === "object" || typeof from === "function") {
15
9
  for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
@@ -22,8 +16,5 @@ var __copyProps = (to, from, except, desc) => {
22
16
  var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
23
17
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
24
18
  var index_exports = {};
25
- __export(index_exports, { spacedChildren: () => import_spacedChildren.spacedChildren });
26
19
  module.exports = __toCommonJS(index_exports);
27
- var import_spacedChildren = require("./spacedChildren.native.js");
28
20
  __reExport(index_exports, require("./Spacer.native.js"), module.exports);
29
- __reExport(index_exports, require("./Unspaced.native.js"), module.exports);
@@ -4,12 +4,6 @@ var __defProp = Object.defineProperty;
4
4
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
5
  var __getOwnPropNames = Object.getOwnPropertyNames;
6
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
7
  var __copyProps = (to, from, except, desc) => {
14
8
  if (from && typeof from === "object" || typeof from === "function") {
15
9
  for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
@@ -22,10 +16,7 @@ var __copyProps = (to, from, except, desc) => {
22
16
  var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
23
17
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
24
18
  var index_exports = {};
25
- __export(index_exports, { spacedChildren: () => import_spacedChildren.spacedChildren });
26
19
  module.exports = __toCommonJS(index_exports);
27
- var import_spacedChildren = require("./spacedChildren.native.js");
28
20
  __reExport(index_exports, require("./Spacer.native.js"), module.exports);
29
- __reExport(index_exports, require("./Unspaced.native.js"), module.exports);
30
21
 
31
22
  //# sourceMappingURL=index.native.js.map
@@ -1 +1 @@
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"}
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 __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 = {};\nmodule.exports = __toCommonJS(index_exports);\n__reExport(index_exports, require(\"./Spacer\"), 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,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,OAAO,UAAU,aAAa,aAAa;AAC3C,WAAW,eAAe,QAAQ,oBAAU,GAAG,OAAO,OAAO"}
package/dist/esm/index.js CHANGED
@@ -1,7 +1 @@
1
- import { spacedChildren } from "./spacedChildren.mjs";
2
-
3
1
  export * from "./Spacer.mjs"
4
-
5
- export * from "./Unspaced.mjs"
6
-
7
- export { spacedChildren };
@@ -1,7 +1 @@
1
- import { spacedChildren } from "./spacedChildren.mjs";
2
-
3
1
  export * from "./Spacer.mjs"
4
-
5
- export * from "./Unspaced.mjs"
6
-
7
- export { spacedChildren };
@@ -1,7 +1 @@
1
- import { spacedChildren } from "./spacedChildren.native.js";
2
-
3
1
  export * from "./Spacer.native.js"
4
-
5
- export * from "./Unspaced.native.js"
6
-
7
- export { spacedChildren };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tamagui/spacer",
3
- "version": "3.0.0-beta.1432.1",
3
+ "version": "3.0.0-beta.1444.1",
4
4
  "license": "MIT",
5
5
  "files": [
6
6
  "src",
@@ -34,10 +34,10 @@
34
34
  "clean:build": "tamagui-build clean:build"
35
35
  },
36
36
  "dependencies": {
37
- "@tamagui/web": "3.0.0-beta.1432.1"
37
+ "@tamagui/web": "3.0.0-beta.1444.1"
38
38
  },
39
39
  "devDependencies": {
40
- "@tamagui/build": "3.0.0-beta.1432.1",
40
+ "@tamagui/build": "3.0.0-beta.1444.1",
41
41
  "react": "19.2.3",
42
42
  "react-native": "0.86.2"
43
43
  },
package/src/index.ts CHANGED
@@ -1,4 +1 @@
1
- export { spacedChildren } from './spacedChildren'
2
1
  export * from './Spacer'
3
- export * from './Unspaced'
4
- export type * from './types'
package/types/index.d.ts CHANGED
@@ -1,5 +1,2 @@
1
- export { spacedChildren } from './spacedChildren';
2
1
  export * from './Spacer';
3
- export * from './Unspaced';
4
- export type * from './types';
5
2
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AACjD,cAAc,UAAU,CAAA;AACxB,cAAc,YAAY,CAAA;AAC1B,mBAAmB,SAAS,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAA"}
@@ -1,34 +0,0 @@
1
- var __defProp = Object.defineProperty;
2
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
- var __getOwnPropNames = Object.getOwnPropertyNames;
4
- var __hasOwnProp = Object.prototype.hasOwnProperty;
5
- var __export = (target, all) => {
6
- for (var name in all) __defProp(target, name, {
7
- get: all[name],
8
- enumerable: true
9
- });
10
- };
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;
19
- };
20
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
21
- var Unspaced_exports = {};
22
- __export(Unspaced_exports, {
23
- Unspaced: () => Unspaced,
24
- isUnspaced: () => isUnspaced
25
- });
26
- module.exports = __toCommonJS(Unspaced_exports);
27
- function Unspaced(props) {
28
- return props.children;
29
- }
30
- Unspaced["isUnspaced"] = true;
31
- function isUnspaced(child) {
32
- const t = child?.["type"];
33
- return t?.["isVisuallyHidden"] || t?.["isUnspaced"];
34
- }
@@ -1,36 +0,0 @@
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
- }
@@ -1,38 +0,0 @@
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
- }
37
-
38
- //# sourceMappingURL=Unspaced.native.js.map
@@ -1 +0,0 @@
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,119 +0,0 @@
1
- var __create = Object.create;
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __getProtoOf = Object.getPrototypeOf;
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 __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
23
- value: mod,
24
- enumerable: true
25
- }) : target, mod));
26
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
27
- var spacedChildren_exports = {};
28
- __export(spacedChildren_exports, { spacedChildren: () => spacedChildren });
29
- module.exports = __toCommonJS(spacedChildren_exports);
30
- var import_web = require("@tamagui/web");
31
- var import_react = __toESM(require("react"), 1);
32
- var import_Spacer = require("./Spacer.cjs");
33
- var import_Unspaced = require("./Unspaced.cjs");
34
- var import_jsx_runtime = require("react/jsx-runtime");
35
- function spacedChildren(props) {
36
- const { isZStack, children, space, direction, spaceFlex, separator, ensureKeys } = props;
37
- const hasSpace = !!(space || spaceFlex);
38
- const hasSeparator = !(separator === void 0 || separator === null);
39
- const areChildrenArray = Array.isArray(children);
40
- if (!ensureKeys && !(hasSpace || hasSeparator || isZStack)) {
41
- return children;
42
- }
43
- const childrenList = areChildrenArray ? children : import_react.default.Children.toArray(children);
44
- const len = childrenList.length;
45
- if (len <= 1 && !isZStack && !childrenList[0]?.["type"]?.["shouldForwardSpace"]) {
46
- return children;
47
- }
48
- const final = [];
49
- for (let [index, child] of childrenList.entries()) {
50
- const isEmpty = child === null || child === void 0 || Array.isArray(child) && child.length === 0;
51
- if (!isEmpty && import_react.default.isValidElement(child) && child.type?.["shouldForwardSpace"]) {
52
- child = import_react.default.cloneElement(child, {
53
- space,
54
- spaceFlex,
55
- separator,
56
- key: child.key
57
- });
58
- }
59
- if (isEmpty || !child || child["key"] && !isZStack) {
60
- final.push(child);
61
- } else {
62
- final.push(/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react.default.Fragment, { children: isZStack ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(AbsoluteFill, { children: child }) : child }, `${index}0t`));
63
- }
64
- if ((0, import_Unspaced.isUnspaced)(child) && index === 0) continue;
65
- if (isZStack) continue;
66
- const next = childrenList[index + 1];
67
- if (next && !isEmpty && !(0, import_Unspaced.isUnspaced)(next)) {
68
- if (separator) {
69
- if (hasSpace) {
70
- final.push(createSpacer({
71
- key: `_${index}_00t`,
72
- direction,
73
- space,
74
- spaceFlex
75
- }));
76
- }
77
- final.push(/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react.default.Fragment, { children: separator }, `${index}03t`));
78
- if (hasSpace) {
79
- final.push(createSpacer({
80
- key: `_${index}01t`,
81
- direction,
82
- space,
83
- spaceFlex
84
- }));
85
- }
86
- } else {
87
- final.push(createSpacer({
88
- key: `_${index}02t`,
89
- direction,
90
- space,
91
- spaceFlex
92
- }));
93
- }
94
- }
95
- }
96
- if (process.env.NODE_ENV === "development") {
97
- if (props.debug) {
98
- console.info(` Spaced children`, final, props);
99
- }
100
- }
101
- return final;
102
- }
103
- function createSpacer({ key, direction, space, spaceFlex }) {
104
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Spacer.Spacer, {
105
- size: space,
106
- direction,
107
- ...typeof spaceFlex !== "undefined" && { flex: spaceFlex === true ? 1 : spaceFlex === false ? 0 : spaceFlex }
108
- }, key);
109
- }
110
- const AbsoluteFill = (0, import_web.createComponent)({ defaultProps: {
111
- display: "flex",
112
- flexDirection: "column",
113
- position: "absolute",
114
- top: 0,
115
- right: 0,
116
- bottom: 0,
117
- left: 0,
118
- pointerEvents: "box-none"
119
- } });
@@ -1,141 +0,0 @@
1
- "use strict";
2
-
3
- var __create = Object.create;
4
- var __defProp = Object.defineProperty;
5
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6
- var __getOwnPropNames = Object.getOwnPropertyNames;
7
- var __getProtoOf = Object.getPrototypeOf;
8
- var __hasOwnProp = Object.prototype.hasOwnProperty;
9
- var __export = (target, all) => {
10
- for (var name in all) __defProp(target, name, {
11
- get: all[name],
12
- enumerable: true
13
- });
14
- };
15
- var __copyProps = (to, from, except, desc) => {
16
- if (from && typeof from === "object" || typeof from === "function") {
17
- for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
18
- get: () => from[key],
19
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
20
- });
21
- }
22
- return to;
23
- };
24
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
25
- value: mod,
26
- enumerable: true
27
- }) : target, mod));
28
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
- var spacedChildren_exports = {};
30
- __export(spacedChildren_exports, { spacedChildren: () => spacedChildren });
31
- module.exports = __toCommonJS(spacedChildren_exports);
32
- var import_jsx_runtime = require("react/jsx-runtime");
33
- var import_web = require("@tamagui/web");
34
- var import_react = __toESM(require("react"), 1);
35
- var import_Spacer = require("./Spacer.native.js");
36
- var import_Unspaced = require("./Unspaced.native.js");
37
- function spacedChildren(props) {
38
- var _childrenList__type, _childrenList_;
39
- var { isZStack, children, space, direction, spaceFlex, separator, ensureKeys } = props;
40
- var hasSpace = !!(space || spaceFlex);
41
- var hasSeparator = !(separator === void 0 || separator === null);
42
- var areChildrenArray = Array.isArray(children);
43
- if (!ensureKeys && !(hasSpace || hasSeparator || isZStack)) {
44
- return children;
45
- }
46
- var childrenList = areChildrenArray ? children : import_react.default.Children.toArray(children);
47
- var len = childrenList.length;
48
- if (len <= 1 && !isZStack && !((_childrenList_ = childrenList[0]) === null || _childrenList_ === void 0 ? void 0 : (_childrenList__type = _childrenList_["type"]) === null || _childrenList__type === void 0 ? void 0 : _childrenList__type["shouldForwardSpace"])) {
49
- return children;
50
- }
51
- var final = [];
52
- var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;
53
- try {
54
- for (var _iterator = childrenList.entries()[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
55
- var [index, child] = _step.value;
56
- var _child_type;
57
- var isEmpty = child === null || child === void 0 || Array.isArray(child) && child.length === 0;
58
- if (!isEmpty && /* @__PURE__ */ import_react.default.isValidElement(child) && ((_child_type = child.type) === null || _child_type === void 0 ? void 0 : _child_type["shouldForwardSpace"])) {
59
- child = /* @__PURE__ */ import_react.default.cloneElement(child, {
60
- space,
61
- spaceFlex,
62
- separator,
63
- key: child.key
64
- });
65
- }
66
- if (isEmpty || !child || child["key"] && !isZStack) {
67
- final.push(child);
68
- } else {
69
- final.push(/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react.default.Fragment, { children: isZStack ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(AbsoluteFill, { children: child }) : child }, `${index}0t`));
70
- }
71
- if ((0, import_Unspaced.isUnspaced)(child) && index === 0) continue;
72
- if (isZStack) continue;
73
- var next = childrenList[index + 1];
74
- if (next && !isEmpty && !(0, import_Unspaced.isUnspaced)(next)) {
75
- if (separator) {
76
- if (hasSpace) {
77
- final.push(createSpacer({
78
- key: `_${index}_00t`,
79
- direction,
80
- space,
81
- spaceFlex
82
- }));
83
- }
84
- final.push(/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react.default.Fragment, { children: separator }, `${index}03t`));
85
- if (hasSpace) {
86
- final.push(createSpacer({
87
- key: `_${index}01t`,
88
- direction,
89
- space,
90
- spaceFlex
91
- }));
92
- }
93
- } else {
94
- final.push(createSpacer({
95
- key: `_${index}02t`,
96
- direction,
97
- space,
98
- spaceFlex
99
- }));
100
- }
101
- }
102
- }
103
- } catch (err) {
104
- _didIteratorError = true;
105
- _iteratorError = err;
106
- } finally {
107
- try {
108
- if (!_iteratorNormalCompletion && _iterator.return != null) {
109
- _iterator.return();
110
- }
111
- } finally {
112
- if (_didIteratorError) {
113
- throw _iteratorError;
114
- }
115
- }
116
- }
117
- if (process.env.NODE_ENV === "development") {
118
- if (props.debug) {
119
- console.info(` Spaced children`, final, props);
120
- }
121
- }
122
- return final;
123
- }
124
- function createSpacer(param) {
125
- var { key, direction, space, spaceFlex } = param;
126
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Spacer.Spacer, {
127
- size: space,
128
- direction,
129
- ...typeof spaceFlex !== "undefined" && { flex: spaceFlex === true ? 1 : spaceFlex === false ? 0 : spaceFlex }
130
- }, key);
131
- }
132
- var AbsoluteFill = (0, import_web.createComponent)({ defaultProps: {
133
- display: "flex",
134
- flexDirection: "column",
135
- position: "absolute",
136
- top: 0,
137
- right: 0,
138
- bottom: 0,
139
- left: 0,
140
- pointerEvents: "box-none"
141
- } });
@@ -1,143 +0,0 @@
1
- "use strict";
2
-
3
- var __create = Object.create;
4
- var __defProp = Object.defineProperty;
5
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6
- var __getOwnPropNames = Object.getOwnPropertyNames;
7
- var __getProtoOf = Object.getPrototypeOf;
8
- var __hasOwnProp = Object.prototype.hasOwnProperty;
9
- var __export = (target, all) => {
10
- for (var name in all) __defProp(target, name, {
11
- get: all[name],
12
- enumerable: true
13
- });
14
- };
15
- var __copyProps = (to, from, except, desc) => {
16
- if (from && typeof from === "object" || typeof from === "function") {
17
- for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
18
- get: () => from[key],
19
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
20
- });
21
- }
22
- return to;
23
- };
24
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
25
- value: mod,
26
- enumerable: true
27
- }) : target, mod));
28
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
- var spacedChildren_exports = {};
30
- __export(spacedChildren_exports, { spacedChildren: () => spacedChildren });
31
- module.exports = __toCommonJS(spacedChildren_exports);
32
- var import_jsx_runtime = require("react/jsx-runtime");
33
- var import_web = require("@tamagui/web");
34
- var import_react = __toESM(require("react"), 1);
35
- var import_Spacer = require("./Spacer.native.js");
36
- var import_Unspaced = require("./Unspaced.native.js");
37
- function spacedChildren(props) {
38
- var _childrenList__type, _childrenList_;
39
- var { isZStack, children, space, direction, spaceFlex, separator, ensureKeys } = props;
40
- var hasSpace = !!(space || spaceFlex);
41
- var hasSeparator = !(separator === void 0 || separator === null);
42
- var areChildrenArray = Array.isArray(children);
43
- if (!ensureKeys && !(hasSpace || hasSeparator || isZStack)) {
44
- return children;
45
- }
46
- var childrenList = areChildrenArray ? children : import_react.default.Children.toArray(children);
47
- var len = childrenList.length;
48
- if (len <= 1 && !isZStack && !((_childrenList_ = childrenList[0]) === null || _childrenList_ === void 0 ? void 0 : (_childrenList__type = _childrenList_["type"]) === null || _childrenList__type === void 0 ? void 0 : _childrenList__type["shouldForwardSpace"])) {
49
- return children;
50
- }
51
- var final = [];
52
- var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;
53
- try {
54
- for (var _iterator = childrenList.entries()[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
55
- var [index, child] = _step.value;
56
- var _child_type;
57
- var isEmpty = child === null || child === void 0 || Array.isArray(child) && child.length === 0;
58
- if (!isEmpty && /* @__PURE__ */ import_react.default.isValidElement(child) && ((_child_type = child.type) === null || _child_type === void 0 ? void 0 : _child_type["shouldForwardSpace"])) {
59
- child = /* @__PURE__ */ import_react.default.cloneElement(child, {
60
- space,
61
- spaceFlex,
62
- separator,
63
- key: child.key
64
- });
65
- }
66
- if (isEmpty || !child || child["key"] && !isZStack) {
67
- final.push(child);
68
- } else {
69
- final.push(/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react.default.Fragment, { children: isZStack ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(AbsoluteFill, { children: child }) : child }, `${index}0t`));
70
- }
71
- if ((0, import_Unspaced.isUnspaced)(child) && index === 0) continue;
72
- if (isZStack) continue;
73
- var next = childrenList[index + 1];
74
- if (next && !isEmpty && !(0, import_Unspaced.isUnspaced)(next)) {
75
- if (separator) {
76
- if (hasSpace) {
77
- final.push(createSpacer({
78
- key: `_${index}_00t`,
79
- direction,
80
- space,
81
- spaceFlex
82
- }));
83
- }
84
- final.push(/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react.default.Fragment, { children: separator }, `${index}03t`));
85
- if (hasSpace) {
86
- final.push(createSpacer({
87
- key: `_${index}01t`,
88
- direction,
89
- space,
90
- spaceFlex
91
- }));
92
- }
93
- } else {
94
- final.push(createSpacer({
95
- key: `_${index}02t`,
96
- direction,
97
- space,
98
- spaceFlex
99
- }));
100
- }
101
- }
102
- }
103
- } catch (err) {
104
- _didIteratorError = true;
105
- _iteratorError = err;
106
- } finally {
107
- try {
108
- if (!_iteratorNormalCompletion && _iterator.return != null) {
109
- _iterator.return();
110
- }
111
- } finally {
112
- if (_didIteratorError) {
113
- throw _iteratorError;
114
- }
115
- }
116
- }
117
- if (process.env.NODE_ENV === "development") {
118
- if (props.debug) {
119
- console.info(` Spaced children`, final, props);
120
- }
121
- }
122
- return final;
123
- }
124
- function createSpacer(param) {
125
- var { key, direction, space, spaceFlex } = param;
126
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Spacer.Spacer, {
127
- size: space,
128
- direction,
129
- ...typeof spaceFlex !== "undefined" && { flex: spaceFlex === true ? 1 : spaceFlex === false ? 0 : spaceFlex }
130
- }, key);
131
- }
132
- var AbsoluteFill = (0, import_web.createComponent)({ defaultProps: {
133
- display: "flex",
134
- flexDirection: "column",
135
- position: "absolute",
136
- top: 0,
137
- right: 0,
138
- bottom: 0,
139
- left: 0,
140
- pointerEvents: "box-none"
141
- } });
142
-
143
- //# sourceMappingURL=spacedChildren.native.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"spacedChildren.native.js","names":[],"sources":["cjs/spacedChildren.native.js"],"sourcesContent":["\"use strict\";\nvar __create = Object.create;\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __getProtoOf = Object.getPrototypeOf;\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 __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(\n // If the importer is in node compatibility mode or this is not an ESM\n // file that has been converted to a CommonJS file using a Babel-\n // compatible transform (i.e. \"__esModule\" has not been set), then set\n // \"default\" to the CommonJS \"module.exports\" for node compatibility.\n isNodeMode || !mod || !mod.__esModule ? __defProp(target, \"default\", { value: mod, enumerable: true }) : target,\n mod\n));\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar spacedChildren_exports = {};\n__export(spacedChildren_exports, {\n spacedChildren: () => spacedChildren\n});\nmodule.exports = __toCommonJS(spacedChildren_exports);\nvar import_jsx_runtime = require(\"react/jsx-runtime\");\nvar import_web = require(\"@tamagui/web\");\nvar import_react = __toESM(require(\"react\"), 1);\nvar import_Spacer = require(\"./Spacer\");\nvar import_Unspaced = require(\"./Unspaced\");\nfunction spacedChildren(props) {\n var _childrenList__type, _childrenList_;\n var { isZStack, children, space, direction, spaceFlex, separator, ensureKeys } = props;\n var hasSpace = !!(space || spaceFlex);\n var hasSeparator = !(separator === void 0 || separator === null);\n var areChildrenArray = Array.isArray(children);\n if (!ensureKeys && !(hasSpace || hasSeparator || isZStack)) {\n return children;\n }\n var childrenList = areChildrenArray ? children : import_react.default.Children.toArray(children);\n var len = childrenList.length;\n if (len <= 1 && !isZStack && !((_childrenList_ = childrenList[0]) === null || _childrenList_ === void 0 ? void 0 : (_childrenList__type = _childrenList_[\"type\"]) === null || _childrenList__type === void 0 ? void 0 : _childrenList__type[\"shouldForwardSpace\"])) {\n return children;\n }\n var final = [];\n var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;\n try {\n for (var _iterator = childrenList.entries()[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {\n var [index, child] = _step.value;\n var _child_type;\n var isEmpty = child === null || child === void 0 || Array.isArray(child) && child.length === 0;\n if (!isEmpty && /* @__PURE__ */ import_react.default.isValidElement(child) && ((_child_type = child.type) === null || _child_type === void 0 ? void 0 : _child_type[\"shouldForwardSpace\"])) {\n child = /* @__PURE__ */ import_react.default.cloneElement(child, {\n space,\n spaceFlex,\n separator,\n key: child.key\n });\n }\n if (isEmpty || !child || child[\"key\"] && !isZStack) {\n final.push(child);\n } else {\n final.push(/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react.default.Fragment, {\n children: isZStack ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(AbsoluteFill, {\n children: child\n }) : child\n }, `${index}0t`));\n }\n if ((0, import_Unspaced.isUnspaced)(child) && index === 0) continue;\n if (isZStack) continue;\n var next = childrenList[index + 1];\n if (next && !isEmpty && !(0, import_Unspaced.isUnspaced)(next)) {\n if (separator) {\n if (hasSpace) {\n final.push(createSpacer({\n key: `_${index}_00t`,\n direction,\n space,\n spaceFlex\n }));\n }\n final.push(/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react.default.Fragment, {\n children: separator\n }, `${index}03t`));\n if (hasSpace) {\n final.push(createSpacer({\n key: `_${index}01t`,\n direction,\n space,\n spaceFlex\n }));\n }\n } else {\n final.push(createSpacer({\n key: `_${index}02t`,\n direction,\n space,\n spaceFlex\n }));\n }\n }\n }\n } catch (err) {\n _didIteratorError = true;\n _iteratorError = err;\n } finally {\n try {\n if (!_iteratorNormalCompletion && _iterator.return != null) {\n _iterator.return();\n }\n } finally {\n if (_didIteratorError) {\n throw _iteratorError;\n }\n }\n }\n if (process.env.NODE_ENV === \"development\") {\n if (props.debug) {\n console.info(` Spaced children`, final, props);\n }\n }\n return final;\n}\nfunction createSpacer(param) {\n var { key, direction, space, spaceFlex } = param;\n return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Spacer.Spacer, {\n // @ts-ignore\n size: space,\n // @ts-ignore\n direction,\n ...typeof spaceFlex !== \"undefined\" && {\n flex: spaceFlex === true ? 1 : spaceFlex === false ? 0 : spaceFlex\n }\n }, key);\n}\nvar AbsoluteFill = (0, import_web.createComponent)({\n defaultProps: {\n display: \"flex\",\n flexDirection: \"column\",\n position: \"absolute\",\n top: 0,\n right: 0,\n bottom: 0,\n left: 0,\n pointerEvents: \"box-none\"\n }\n});\n//# sourceMappingURL=spacedChildren.js.map\n"],"mappings":";;;AACA,IAAI,WAAW,OAAO;AACtB,IAAI,YAAY,OAAO;AACvB,IAAI,mBAAmB,OAAO;AAC9B,IAAI,oBAAoB,OAAO;AAC/B,IAAI,eAAe,OAAO;AAC1B,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,WAAW,KAAK,YAAY,YAAY,SAAS,OAAO,OAAO,SAAS,aAAa,GAAG,CAAC,IAAI,CAAC,GAAG,YAKnG,cAAc,CAAC,OAAO,CAAC,IAAI,aAAa,UAAU,QAAQ,WAAW;CAAE,OAAO;CAAK,YAAY;AAAK,CAAC,IAAI,QACzG,GACF;AACA,IAAI,gBAAgB,QAAQ,YAAY,UAAU,CAAC,GAAG,cAAc,EAAE,OAAO,KAAK,CAAC,GAAG,GAAG;AACzF,IAAI,yBAAyB,CAAC;AAC9B,SAAS,wBAAwB,EAC/B,sBAAsB,eACxB,CAAC;AACD,OAAO,UAAU,aAAa,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AI,mBAAmB;IACrB,MAAM;GACR;EACF;CACF;CACA,IAAI,QAAQ,IAAI,aAAa,eAAe;EAC1C,IAAI,MAAM,OAAO;GACf,QAAQ,KAAK,qBAAqB,OAAO,KAAK;EAChD;CACF;CACA,OAAO;AACT;AACA,SAAS,aAAa,OAAO;CAC3B,IAAI,EAAE,KAAK,WAAW,OAAO,cAAc;CAC3C,OAAuB,iBAAC,GAAG,mBAAmB,IAAG,CAAE,cAAc,QAAQ;EAEvE,MAAM;EAEN;EACA,GAAG,OAAO,cAAc,eAAe,EACrC,MAAM,cAAc,OAAO,IAAI,cAAc,QAAQ,IAAI,UAC3D;CACF,GAAG,GAAG;AACR;AACA,IAAI,gBAAgB,GAAG,WAAW,gBAAe,CAAE,EACjD,cAAc;CACZ,SAAS;CACT,eAAe;CACf,UAAU;CACV,KAAK;CACL,OAAO;CACP,QAAQ;CACR,MAAM;CACN,eAAe;AACjB,EACF,CAAC"}
@@ -1,16 +0,0 @@
1
- var __defProp = Object.defineProperty;
2
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
- var __getOwnPropNames = Object.getOwnPropertyNames;
4
- var __hasOwnProp = Object.prototype.hasOwnProperty;
5
- var __copyProps = (to, from, except, desc) => {
6
- if (from && typeof from === "object" || typeof from === "function") {
7
- for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
8
- get: () => from[key],
9
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
10
- });
11
- }
12
- return to;
13
- };
14
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
15
- var types_exports = {};
16
- module.exports = __toCommonJS(types_exports);
@@ -1,18 +0,0 @@
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 __copyProps = (to, from, except, desc) => {
8
- if (from && typeof from === "object" || typeof from === "function") {
9
- for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
10
- get: () => from[key],
11
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
12
- });
13
- }
14
- return to;
15
- };
16
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
17
- var types_exports = {};
18
- module.exports = __toCommonJS(types_exports);
@@ -1,20 +0,0 @@
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 __copyProps = (to, from, except, desc) => {
8
- if (from && typeof from === "object" || typeof from === "function") {
9
- for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
10
- get: () => from[key],
11
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
12
- });
13
- }
14
- return to;
15
- };
16
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
17
- var types_exports = {};
18
- module.exports = __toCommonJS(types_exports);
19
-
20
- //# sourceMappingURL=types.native.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.native.js","names":[],"sources":["cjs/types.native.js"],"sourcesContent":["\"use strict\";\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\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 types_exports = {};\nmodule.exports = __toCommonJS(types_exports);\n//# sourceMappingURL=types.js.map\n"],"mappings":";;;AACA,IAAI,YAAY,OAAO;AACvB,IAAI,mBAAmB,OAAO;AAC9B,IAAI,oBAAoB,OAAO;AAC/B,IAAI,eAAe,OAAO,UAAU;AACpC,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,gBAAgB,CAAC;AACrB,OAAO,UAAU,aAAa,aAAa"}
@@ -1,11 +0,0 @@
1
- function Unspaced(props) {
2
- return props.children;
3
- }
4
- Unspaced["isUnspaced"] = true;
5
- function isUnspaced(child) {
6
- const t = child?.["type"];
7
- return t?.["isVisuallyHidden"] || t?.["isUnspaced"];
8
- }
9
-
10
- export { Unspaced, isUnspaced };
11
- //# sourceMappingURL=Unspaced.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Unspaced.js","names":[],"sources":["esm/Unspaced.js"],"sourcesContent":["function Unspaced(props) {\n return props.children;\n}\nUnspaced[\"isUnspaced\"] = true;\nfunction isUnspaced(child) {\n const t = child?.[\"type\"];\n return t?.[\"isVisuallyHidden\"] || t?.[\"isUnspaced\"];\n}\nexport {\n Unspaced,\n isUnspaced\n};\n//# sourceMappingURL=Unspaced.js.map\n"],"mappings":";AAAA,SAAS,SAAS,OAAO;CACvB,OAAO,MAAM;AACf;AACA,SAAS,gBAAgB;AACzB,SAAS,WAAW,OAAO;CACzB,MAAM,IAAI,QAAQ;CAClB,OAAO,IAAI,uBAAuB,IAAI;AACxC"}
@@ -1,11 +0,0 @@
1
- function Unspaced(props) {
2
- return props.children;
3
- }
4
- Unspaced["isUnspaced"] = true;
5
- function isUnspaced(child) {
6
- var t = child === null || child === void 0 ? void 0 : child["type"];
7
- return (t === null || t === void 0 ? void 0 : t["isVisuallyHidden"]) || (t === null || t === void 0 ? void 0 : t["isUnspaced"]);
8
- }
9
-
10
- export { Unspaced, isUnspaced };
11
- //# sourceMappingURL=Unspaced.native.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Unspaced.native.js","names":[],"sources":["esm/Unspaced.native.js"],"sourcesContent":["function 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}\nexport {\n Unspaced,\n isUnspaced\n};\n//# sourceMappingURL=Unspaced.js.map\n"],"mappings":";AAAA,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,94 +0,0 @@
1
- import { createComponent } from "@tamagui/web";
2
- import React from "react";
3
- import { Spacer } from "./Spacer.mjs";
4
- import { isUnspaced } from "./Unspaced.mjs";
5
- import { jsx } from "react/jsx-runtime";
6
-
7
- function spacedChildren(props) {
8
- const { isZStack, children, space, direction, spaceFlex, separator, ensureKeys } = props;
9
- const hasSpace = !!(space || spaceFlex);
10
- const hasSeparator = !(separator === void 0 || separator === null);
11
- const areChildrenArray = Array.isArray(children);
12
- if (!ensureKeys && !(hasSpace || hasSeparator || isZStack)) {
13
- return children;
14
- }
15
- const childrenList = areChildrenArray ? children : React.Children.toArray(children);
16
- const len = childrenList.length;
17
- if (len <= 1 && !isZStack && !childrenList[0]?.["type"]?.["shouldForwardSpace"]) {
18
- return children;
19
- }
20
- const final = [];
21
- for (let [index, child] of childrenList.entries()) {
22
- const isEmpty = child === null || child === void 0 || Array.isArray(child) && child.length === 0;
23
- if (!isEmpty && React.isValidElement(child) && child.type?.["shouldForwardSpace"]) {
24
- child = React.cloneElement(child, {
25
- space,
26
- spaceFlex,
27
- separator,
28
- key: child.key
29
- });
30
- }
31
- if (isEmpty || !child || child["key"] && !isZStack) {
32
- final.push(child);
33
- } else {
34
- final.push(/* @__PURE__ */ jsx(React.Fragment, { children: isZStack ? /* @__PURE__ */ jsx(AbsoluteFill, { children: child }) : child }, `${index}0t`));
35
- }
36
- if (isUnspaced(child) && index === 0) continue;
37
- if (isZStack) continue;
38
- const next = childrenList[index + 1];
39
- if (next && !isEmpty && !isUnspaced(next)) {
40
- if (separator) {
41
- if (hasSpace) {
42
- final.push(createSpacer({
43
- key: `_${index}_00t`,
44
- direction,
45
- space,
46
- spaceFlex
47
- }));
48
- }
49
- final.push(/* @__PURE__ */ jsx(React.Fragment, { children: separator }, `${index}03t`));
50
- if (hasSpace) {
51
- final.push(createSpacer({
52
- key: `_${index}01t`,
53
- direction,
54
- space,
55
- spaceFlex
56
- }));
57
- }
58
- } else {
59
- final.push(createSpacer({
60
- key: `_${index}02t`,
61
- direction,
62
- space,
63
- spaceFlex
64
- }));
65
- }
66
- }
67
- }
68
- if (process.env.NODE_ENV === "development") {
69
- if (props.debug) {
70
- console.info(` Spaced children`, final, props);
71
- }
72
- }
73
- return final;
74
- }
75
- function createSpacer({ key, direction, space, spaceFlex }) {
76
- return /* @__PURE__ */ jsx(Spacer, {
77
- size: space,
78
- direction,
79
- ...typeof spaceFlex !== "undefined" && { flex: spaceFlex === true ? 1 : spaceFlex === false ? 0 : spaceFlex }
80
- }, key);
81
- }
82
- const AbsoluteFill = createComponent({ defaultProps: {
83
- display: "flex",
84
- flexDirection: "column",
85
- position: "absolute",
86
- top: 0,
87
- right: 0,
88
- bottom: 0,
89
- left: 0,
90
- pointerEvents: "box-none"
91
- } });
92
-
93
- export { spacedChildren };
94
- //# sourceMappingURL=spacedChildren.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"spacedChildren.js","names":[],"sources":["esm/spacedChildren.js"],"sourcesContent":["import { createComponent } from \"@tamagui/web\";\nimport React from \"react\";\nimport { Spacer } from \"./Spacer\";\nimport { isUnspaced } from \"./Unspaced\";\nimport { jsx } from \"react/jsx-runtime\";\nfunction spacedChildren(props) {\n const { isZStack, children, space, direction, spaceFlex, separator, ensureKeys } = props;\n const hasSpace = !!(space || spaceFlex);\n const hasSeparator = !(separator === void 0 || separator === null);\n const areChildrenArray = Array.isArray(children);\n if (!ensureKeys && !(hasSpace || hasSeparator || isZStack)) {\n return children;\n }\n const childrenList = areChildrenArray ? children : React.Children.toArray(children);\n const len = childrenList.length;\n if (len <= 1 && !isZStack && !childrenList[0]?.[\"type\"]?.[\"shouldForwardSpace\"]) {\n return children;\n }\n const final = [];\n for (let [index, child] of childrenList.entries()) {\n const isEmpty = child === null || child === void 0 || Array.isArray(child) && child.length === 0;\n if (!isEmpty && React.isValidElement(child) && child.type?.[\"shouldForwardSpace\"]) {\n child = React.cloneElement(child, {\n space,\n spaceFlex,\n separator,\n key: child.key\n });\n }\n if (isEmpty || !child || child[\"key\"] && !isZStack) {\n final.push(child);\n } else {\n final.push(\n /* @__PURE__ */ jsx(React.Fragment, { children: isZStack ? /* @__PURE__ */ jsx(AbsoluteFill, { children: child }) : child }, `${index}0t`)\n );\n }\n if (isUnspaced(child) && index === 0) continue;\n if (isZStack) continue;\n const next = childrenList[index + 1];\n if (next && !isEmpty && !isUnspaced(next)) {\n if (separator) {\n if (hasSpace) {\n final.push(\n createSpacer({\n key: `_${index}_00t`,\n direction,\n space,\n spaceFlex\n })\n );\n }\n final.push(/* @__PURE__ */ jsx(React.Fragment, { children: separator }, `${index}03t`));\n if (hasSpace) {\n final.push(\n createSpacer({\n key: `_${index}01t`,\n direction,\n space,\n spaceFlex\n })\n );\n }\n } else {\n final.push(\n createSpacer({\n key: `_${index}02t`,\n direction,\n space,\n spaceFlex\n })\n );\n }\n }\n }\n if (process.env.NODE_ENV === \"development\") {\n if (props.debug) {\n console.info(` Spaced children`, final, props);\n }\n }\n return final;\n}\nfunction createSpacer({ key, direction, space, spaceFlex }) {\n return /* @__PURE__ */ jsx(\n Spacer,\n {\n size: space,\n direction,\n ...typeof spaceFlex !== \"undefined\" && {\n flex: spaceFlex === true ? 1 : spaceFlex === false ? 0 : spaceFlex\n }\n },\n key\n );\n}\nconst AbsoluteFill = createComponent({\n defaultProps: {\n display: \"flex\",\n flexDirection: \"column\",\n position: \"absolute\",\n top: 0,\n right: 0,\n bottom: 0,\n left: 0,\n pointerEvents: \"box-none\"\n }\n});\nexport {\n spacedChildren\n};\n//# sourceMappingURL=spacedChildren.js.map\n"],"mappings":";;;;;;;AAKA,SAAS,eAAe,OAAO;CAC7B,MAAM,EAAE,UAAU,UAAU,OAAO,WAAW,WAAW,WAAW,eAAe;CACnF,MAAM,WAAW,CAAC,EAAE,SAAS;CAC7B,MAAM,eAAe,EAAE,cAAc,KAAK,KAAK,cAAc;CAC7D,MAAM,mBAAmB,MAAM,QAAQ,QAAQ;CAC/C,IAAI,CAAC,cAAc,EAAE,YAAY,gBAAgB,WAAW;EAC1D,OAAO;CACT;CACA,MAAM,eAAe,mBAAmB,WAAW,MAAM,SAAS,QAAQ,QAAQ;CAClF,MAAM,MAAM,aAAa;CACzB,IAAI,OAAO,KAAK,CAAC,YAAY,CAAC,aAAa,EAAE,GAAG,OAAO,GAAG,uBAAuB;EAC/E,OAAO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,aAAa,EAAE,KAAK,WAAW,OAAO,aAAa;CAC1D,OAAuB,oBACrB,QACA;EACE,MAAM;EACN;EACA,GAAG,OAAO,cAAc,eAAe,EACrC,MAAM,cAAc,OAAO,IAAI,cAAc,QAAQ,IAAI,UAC3D;CACF,GACA,GACF;AACF;AACA,MAAM,eAAe,gBAAgB,EACnC,cAAc;CACZ,SAAS;CACT,eAAe;CACf,UAAU;CACV,KAAK;CACL,OAAO;CACP,QAAQ;CACR,MAAM;CACN,eAAe;AACjB,EACF,CAAC"}
@@ -1,114 +0,0 @@
1
- import { jsx } from "react/jsx-runtime";
2
- import { createComponent } from "@tamagui/web";
3
- import React from "react";
4
- import { Spacer } from "./Spacer.native.js";
5
- import { isUnspaced } from "./Unspaced.native.js";
6
-
7
- function spacedChildren(props) {
8
- var _childrenList__type, _childrenList_;
9
- var { isZStack, children, space, direction, spaceFlex, separator, ensureKeys } = props;
10
- var hasSpace = !!(space || spaceFlex);
11
- var hasSeparator = !(separator === void 0 || separator === null);
12
- var areChildrenArray = Array.isArray(children);
13
- if (!ensureKeys && !(hasSpace || hasSeparator || isZStack)) {
14
- return children;
15
- }
16
- var childrenList = areChildrenArray ? children : React.Children.toArray(children);
17
- var len = childrenList.length;
18
- if (len <= 1 && !isZStack && !((_childrenList_ = childrenList[0]) === null || _childrenList_ === void 0 ? void 0 : (_childrenList__type = _childrenList_["type"]) === null || _childrenList__type === void 0 ? void 0 : _childrenList__type["shouldForwardSpace"])) {
19
- return children;
20
- }
21
- var final = [];
22
- var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;
23
- try {
24
- for (var _iterator = childrenList.entries()[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
25
- var [index, child] = _step.value;
26
- var _child_type;
27
- var isEmpty = child === null || child === void 0 || Array.isArray(child) && child.length === 0;
28
- if (!isEmpty && /* @__PURE__ */ React.isValidElement(child) && ((_child_type = child.type) === null || _child_type === void 0 ? void 0 : _child_type["shouldForwardSpace"])) {
29
- child = /* @__PURE__ */ React.cloneElement(child, {
30
- space,
31
- spaceFlex,
32
- separator,
33
- key: child.key
34
- });
35
- }
36
- if (isEmpty || !child || child["key"] && !isZStack) {
37
- final.push(child);
38
- } else {
39
- final.push(/* @__PURE__ */ jsx(React.Fragment, { children: isZStack ? /* @__PURE__ */ jsx(AbsoluteFill, { children: child }) : child }, `${index}0t`));
40
- }
41
- if (isUnspaced(child) && index === 0) continue;
42
- if (isZStack) continue;
43
- var next = childrenList[index + 1];
44
- if (next && !isEmpty && !isUnspaced(next)) {
45
- if (separator) {
46
- if (hasSpace) {
47
- final.push(createSpacer({
48
- key: `_${index}_00t`,
49
- direction,
50
- space,
51
- spaceFlex
52
- }));
53
- }
54
- final.push(/* @__PURE__ */ jsx(React.Fragment, { children: separator }, `${index}03t`));
55
- if (hasSpace) {
56
- final.push(createSpacer({
57
- key: `_${index}01t`,
58
- direction,
59
- space,
60
- spaceFlex
61
- }));
62
- }
63
- } else {
64
- final.push(createSpacer({
65
- key: `_${index}02t`,
66
- direction,
67
- space,
68
- spaceFlex
69
- }));
70
- }
71
- }
72
- }
73
- } catch (err) {
74
- _didIteratorError = true;
75
- _iteratorError = err;
76
- } finally {
77
- try {
78
- if (!_iteratorNormalCompletion && _iterator.return != null) {
79
- _iterator.return();
80
- }
81
- } finally {
82
- if (_didIteratorError) {
83
- throw _iteratorError;
84
- }
85
- }
86
- }
87
- if (process.env.NODE_ENV === "development") {
88
- if (props.debug) {
89
- console.info(` Spaced children`, final, props);
90
- }
91
- }
92
- return final;
93
- }
94
- function createSpacer(param) {
95
- var { key, direction, space, spaceFlex } = param;
96
- return /* @__PURE__ */ jsx(Spacer, {
97
- size: space,
98
- direction,
99
- ...typeof spaceFlex !== "undefined" && { flex: spaceFlex === true ? 1 : spaceFlex === false ? 0 : spaceFlex }
100
- }, key);
101
- }
102
- var AbsoluteFill = createComponent({ defaultProps: {
103
- display: "flex",
104
- flexDirection: "column",
105
- position: "absolute",
106
- top: 0,
107
- right: 0,
108
- bottom: 0,
109
- left: 0,
110
- pointerEvents: "box-none"
111
- } });
112
-
113
- export { spacedChildren };
114
- //# sourceMappingURL=spacedChildren.native.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"spacedChildren.native.js","names":[],"sources":["esm/spacedChildren.native.js"],"sourcesContent":["import { jsx as _jsx } from \"react/jsx-runtime\";\nimport { createComponent } from \"@tamagui/web\";\nimport React from \"react\";\nimport { Spacer } from \"./Spacer\";\nimport { isUnspaced } from \"./Unspaced\";\nfunction spacedChildren(props) {\n var _childrenList__type, _childrenList_;\n var { isZStack, children, space, direction, spaceFlex, separator, ensureKeys } = props;\n var hasSpace = !!(space || spaceFlex);\n var hasSeparator = !(separator === void 0 || separator === null);\n var areChildrenArray = Array.isArray(children);\n if (!ensureKeys && !(hasSpace || hasSeparator || isZStack)) {\n return children;\n }\n var childrenList = areChildrenArray ? children : React.Children.toArray(children);\n var len = childrenList.length;\n if (len <= 1 && !isZStack && !((_childrenList_ = childrenList[0]) === null || _childrenList_ === void 0 ? void 0 : (_childrenList__type = _childrenList_[\"type\"]) === null || _childrenList__type === void 0 ? void 0 : _childrenList__type[\"shouldForwardSpace\"])) {\n return children;\n }\n var final = [];\n var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;\n try {\n for (var _iterator = childrenList.entries()[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {\n var [index, child] = _step.value;\n var _child_type;\n var isEmpty = child === null || child === void 0 || Array.isArray(child) && child.length === 0;\n if (!isEmpty && /* @__PURE__ */ React.isValidElement(child) && ((_child_type = child.type) === null || _child_type === void 0 ? void 0 : _child_type[\"shouldForwardSpace\"])) {\n child = /* @__PURE__ */ React.cloneElement(child, {\n space,\n spaceFlex,\n separator,\n key: child.key\n });\n }\n if (isEmpty || !child || child[\"key\"] && !isZStack) {\n final.push(child);\n } else {\n final.push(/* @__PURE__ */ _jsx(React.Fragment, {\n children: isZStack ? /* @__PURE__ */ _jsx(AbsoluteFill, {\n children: child\n }) : child\n }, `${index}0t`));\n }\n if (isUnspaced(child) && index === 0) continue;\n if (isZStack) continue;\n var next = childrenList[index + 1];\n if (next && !isEmpty && !isUnspaced(next)) {\n if (separator) {\n if (hasSpace) {\n final.push(createSpacer({\n key: `_${index}_00t`,\n direction,\n space,\n spaceFlex\n }));\n }\n final.push(/* @__PURE__ */ _jsx(React.Fragment, {\n children: separator\n }, `${index}03t`));\n if (hasSpace) {\n final.push(createSpacer({\n key: `_${index}01t`,\n direction,\n space,\n spaceFlex\n }));\n }\n } else {\n final.push(createSpacer({\n key: `_${index}02t`,\n direction,\n space,\n spaceFlex\n }));\n }\n }\n }\n } catch (err) {\n _didIteratorError = true;\n _iteratorError = err;\n } finally {\n try {\n if (!_iteratorNormalCompletion && _iterator.return != null) {\n _iterator.return();\n }\n } finally {\n if (_didIteratorError) {\n throw _iteratorError;\n }\n }\n }\n if (process.env.NODE_ENV === \"development\") {\n if (props.debug) {\n console.info(` Spaced children`, final, props);\n }\n }\n return final;\n}\nfunction createSpacer(param) {\n var { key, direction, space, spaceFlex } = param;\n return /* @__PURE__ */ _jsx(Spacer, {\n // @ts-ignore\n size: space,\n // @ts-ignore\n direction,\n ...typeof spaceFlex !== \"undefined\" && {\n flex: spaceFlex === true ? 1 : spaceFlex === false ? 0 : spaceFlex\n }\n }, key);\n}\nvar AbsoluteFill = createComponent({\n defaultProps: {\n display: \"flex\",\n flexDirection: \"column\",\n position: \"absolute\",\n top: 0,\n right: 0,\n bottom: 0,\n left: 0,\n pointerEvents: \"box-none\"\n }\n});\nexport {\n spacedChildren\n};\n//# sourceMappingURL=spacedChildren.js.map\n"],"mappings":";;;;;;;AAKA,SAAS,eAAe,OAAO;CAC7B,IAAI,qBAAqB;CACzB,IAAI,EAAE,UAAU,UAAU,OAAO,WAAW,WAAW,WAAW,eAAe;CACjF,IAAI,WAAW,CAAC,EAAE,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MAAM;CACN,eAAe;AACjB,EACF,CAAC"}
File without changes
File without changes
package/src/Unspaced.tsx DELETED
@@ -1,11 +0,0 @@
1
- // for elements to avoid spacing
2
- export function Unspaced(props: { children?: any }) {
3
- return props.children
4
- }
5
-
6
- Unspaced['isUnspaced'] = true
7
-
8
- export function isUnspaced(child: React.ReactNode) {
9
- const t = child?.['type']
10
- return t?.['isVisuallyHidden'] || t?.['isUnspaced']
11
- }
@@ -1,134 +0,0 @@
1
- import { createComponent } from '@tamagui/web'
2
- import React from 'react'
3
- import { Spacer } from './Spacer'
4
- import { isUnspaced } from './Unspaced'
5
- import type { SpacedChildrenProps } from './types'
6
-
7
- export function spacedChildren(props: SpacedChildrenProps) {
8
- const { isZStack, children, space, direction, spaceFlex, separator, ensureKeys } = props
9
- const hasSpace = !!(space || spaceFlex)
10
- const hasSeparator = !(separator === undefined || separator === null)
11
- const areChildrenArray = Array.isArray(children)
12
-
13
- if (!ensureKeys && !(hasSpace || hasSeparator || isZStack)) {
14
- return children
15
- }
16
-
17
- const childrenList = areChildrenArray
18
- ? (children as any[])
19
- : React.Children.toArray(children)
20
-
21
- const len = childrenList.length
22
- if (len <= 1 && !isZStack && !childrenList[0]?.['type']?.['shouldForwardSpace']) {
23
- return children
24
- }
25
-
26
- const final: React.ReactNode[] = []
27
- for (let [index, child] of childrenList.entries()) {
28
- const isEmpty =
29
- child === null ||
30
- child === undefined ||
31
- (Array.isArray(child) && child.length === 0)
32
-
33
- // forward space
34
- if (!isEmpty && React.isValidElement(child) && child.type?.['shouldForwardSpace']) {
35
- child = React.cloneElement(child, {
36
- space,
37
- spaceFlex,
38
- separator,
39
- key: child.key,
40
- } as any)
41
- }
42
-
43
- // push them all, but wrap some in Fragment
44
- if (isEmpty || !child || (child['key'] && !isZStack)) {
45
- final.push(child)
46
- } else {
47
- final.push(
48
- <React.Fragment key={`${index}0t`}>
49
- {isZStack ? <AbsoluteFill>{child}</AbsoluteFill> : child}
50
- </React.Fragment>
51
- )
52
- }
53
-
54
- // first child unspaced avoid insert space
55
- if (isUnspaced(child) && index === 0) continue
56
- // no spacing on ZStack
57
- if (isZStack) continue
58
-
59
- const next = childrenList[index + 1]
60
-
61
- if (next && !isEmpty && !isUnspaced(next)) {
62
- if (separator) {
63
- if (hasSpace) {
64
- final.push(
65
- createSpacer({
66
- key: `_${index}_00t`,
67
- direction,
68
- space,
69
- spaceFlex,
70
- })
71
- )
72
- }
73
- final.push(<React.Fragment key={`${index}03t`}>{separator}</React.Fragment>)
74
- if (hasSpace) {
75
- final.push(
76
- createSpacer({
77
- key: `_${index}01t`,
78
- direction,
79
- space,
80
- spaceFlex,
81
- })
82
- )
83
- }
84
- } else {
85
- final.push(
86
- createSpacer({
87
- key: `_${index}02t`,
88
- direction,
89
- space,
90
- spaceFlex,
91
- })
92
- )
93
- }
94
- }
95
- }
96
-
97
- if (process.env.NODE_ENV === 'development') {
98
- if (props.debug) {
99
- console.info(` Spaced children`, final, props)
100
- }
101
- }
102
-
103
- return final
104
- }
105
-
106
- type CreateSpacerProps = SpacedChildrenProps & { key: string }
107
-
108
- function createSpacer({ key, direction, space, spaceFlex }: CreateSpacerProps) {
109
- return (
110
- <Spacer
111
- key={key}
112
- // @ts-ignore
113
- size={space}
114
- // @ts-ignore
115
- direction={direction}
116
- {...(typeof spaceFlex !== 'undefined' && {
117
- flex: spaceFlex === true ? 1 : spaceFlex === false ? 0 : spaceFlex,
118
- })}
119
- />
120
- )
121
- }
122
-
123
- const AbsoluteFill: any = createComponent({
124
- defaultProps: {
125
- display: 'flex',
126
- flexDirection: 'column',
127
- position: 'absolute',
128
- top: 0,
129
- right: 0,
130
- bottom: 0,
131
- left: 0,
132
- pointerEvents: 'box-none',
133
- },
134
- })
package/src/types.ts DELETED
@@ -1,21 +0,0 @@
1
- import type { DebugProp, SpaceTokens, SpaceValue } from '@tamagui/web'
2
-
3
- export type SpaceDirection = 'vertical' | 'horizontal' | 'both'
4
-
5
- export type SpacedChildrenProps = {
6
- isZStack?: boolean
7
- children?: React.ReactNode
8
- space?: SpaceValue
9
- spaceFlex?: boolean | number
10
- direction?: SpaceDirection
11
- separator?: React.ReactNode
12
- ensureKeys?: boolean
13
- debug?: DebugProp
14
- }
15
-
16
- export type SpaceProps = {
17
- space?: SpaceTokens | number
18
- spaceDirection?: SpaceDirection
19
- separator?: React.ReactNode
20
- flex?: SpaceTokens | number | boolean
21
- }
@@ -1,9 +0,0 @@
1
- export declare function Unspaced(props: {
2
- children?: any;
3
- }): any;
4
- export declare namespace Unspaced {
5
- var _a: boolean;
6
- export { _a as isUnspaced };
7
- }
8
- export declare function isUnspaced(child: React.ReactNode): any;
9
- //# sourceMappingURL=Unspaced.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Unspaced.d.ts","sourceRoot":"","sources":["../src/Unspaced.tsx"],"names":[],"mappings":"AACA,wBAAgB,QAAQ,CAAC,KAAK,EAAE;IAAE,QAAQ,CAAC,EAAE,GAAG,CAAA;CAAE,OAEjD;yBAFe,QAAQ;;;;AAMxB,wBAAgB,UAAU,CAAC,KAAK,EAAE,KAAK,CAAC,SAAS,OAGhD"}
@@ -1,4 +0,0 @@
1
- import React from 'react';
2
- import type { SpacedChildrenProps } from './types';
3
- export declare function spacedChildren(props: SpacedChildrenProps): React.ReactNode;
4
- //# sourceMappingURL=spacedChildren.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"spacedChildren.d.ts","sourceRoot":"","sources":["../src/spacedChildren.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAA;AAElD,wBAAgB,cAAc,CAAC,KAAK,EAAE,mBAAmB,mBAiGxD"}
package/types/types.d.ts DELETED
@@ -1,19 +0,0 @@
1
- import type { DebugProp, SpaceTokens, SpaceValue } from '@tamagui/web';
2
- export type SpaceDirection = 'vertical' | 'horizontal' | 'both';
3
- export type SpacedChildrenProps = {
4
- isZStack?: boolean;
5
- children?: React.ReactNode;
6
- space?: SpaceValue;
7
- spaceFlex?: boolean | number;
8
- direction?: SpaceDirection;
9
- separator?: React.ReactNode;
10
- ensureKeys?: boolean;
11
- debug?: DebugProp;
12
- };
13
- export type SpaceProps = {
14
- space?: SpaceTokens | number;
15
- spaceDirection?: SpaceDirection;
16
- separator?: React.ReactNode;
17
- flex?: SpaceTokens | number | boolean;
18
- };
19
- //# sourceMappingURL=types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AAEtE,MAAM,MAAM,cAAc,GAAG,UAAU,GAAG,YAAY,GAAG,MAAM,CAAA;AAE/D,MAAM,MAAM,mBAAmB,GAAG;IAChC,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IAC1B,KAAK,CAAC,EAAE,UAAU,CAAA;IAClB,SAAS,CAAC,EAAE,OAAO,GAAG,MAAM,CAAA;IAC5B,SAAS,CAAC,EAAE,cAAc,CAAA;IAC1B,SAAS,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IAC3B,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,KAAK,CAAC,EAAE,SAAS,CAAA;CAClB,CAAA;AAED,MAAM,MAAM,UAAU,GAAG;IACvB,KAAK,CAAC,EAAE,WAAW,GAAG,MAAM,CAAA;IAC5B,cAAc,CAAC,EAAE,cAAc,CAAA;IAC/B,SAAS,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IAC3B,IAAI,CAAC,EAAE,WAAW,GAAG,MAAM,GAAG,OAAO,CAAA;CACtC,CAAA"}