@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.
- package/dist/cjs/Spacer.cjs +43 -54
- package/dist/cjs/Spacer.native.cjs +57 -0
- package/dist/cjs/Spacer.native.js +43 -55
- package/dist/cjs/Spacer.native.js.map +1 -1
- package/dist/cjs/Unspaced.cjs +18 -20
- package/dist/cjs/Unspaced.native.cjs +36 -0
- package/dist/cjs/Unspaced.native.js +18 -19
- package/dist/cjs/Unspaced.native.js.map +1 -1
- package/dist/cjs/index.cjs +14 -18
- package/dist/cjs/index.native.cjs +29 -0
- package/dist/cjs/index.native.js +14 -17
- package/dist/cjs/index.native.js.map +1 -1
- package/dist/cjs/spacedChildren.cjs +98 -130
- package/dist/cjs/spacedChildren.native.cjs +141 -0
- package/dist/cjs/spacedChildren.native.js +118 -153
- package/dist/cjs/spacedChildren.native.js.map +1 -1
- package/dist/cjs/types.cjs +9 -11
- package/dist/cjs/types.native.cjs +18 -0
- package/dist/cjs/types.native.js +9 -10
- package/dist/cjs/types.native.js.map +1 -1
- package/dist/esm/Spacer.mjs +32 -37
- package/dist/esm/Spacer.mjs.map +1 -1
- package/dist/esm/Spacer.native.js +32 -39
- package/dist/esm/Spacer.native.js.map +1 -1
- package/dist/esm/Unspaced.mjs +4 -3
- package/dist/esm/Unspaced.mjs.map +1 -1
- package/dist/esm/Unspaced.native.js +4 -3
- package/dist/esm/Unspaced.native.js.map +1 -1
- package/dist/esm/index.js +6 -4
- package/dist/esm/index.mjs +6 -4
- package/dist/esm/index.native.js +6 -4
- package/dist/esm/spacedChildren.mjs +84 -105
- package/dist/esm/spacedChildren.mjs.map +1 -1
- package/dist/esm/spacedChildren.native.js +104 -129
- package/dist/esm/spacedChildren.native.js.map +1 -1
- package/dist/esm/types.mjs +0 -2
- package/dist/esm/types.native.js +0 -2
- package/package.json +7 -5
- package/src/Spacer.tsx +8 -9
- package/types/Spacer.d.ts +14 -5
- package/types/Spacer.d.ts.map +1 -1
- package/types/Unspaced.d.ts +2 -1
- package/types/Unspaced.d.ts.map +1 -1
- package/dist/esm/index.js.map +0 -1
- package/dist/esm/index.mjs.map +0 -1
- package/dist/esm/index.native.js.map +0 -1
- package/dist/esm/types.mjs.map +0 -1
- package/dist/esm/types.native.js.map +0 -1
package/dist/cjs/Spacer.cjs
CHANGED
|
@@ -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
|
-
|
|
7
|
-
|
|
8
|
-
|
|
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
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
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
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
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
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
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
|
-
|
|
9
|
-
|
|
10
|
-
|
|
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
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
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
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
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
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
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,"
|
|
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"}
|
package/dist/cjs/Unspaced.cjs
CHANGED
|
@@ -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
|
-
|
|
7
|
-
|
|
8
|
-
|
|
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
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
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
|
-
|
|
26
|
-
|
|
23
|
+
Unspaced: () => Unspaced,
|
|
24
|
+
isUnspaced: () => isUnspaced
|
|
27
25
|
});
|
|
28
26
|
module.exports = __toCommonJS(Unspaced_exports);
|
|
29
27
|
function Unspaced(props) {
|
|
30
|
-
|
|
28
|
+
return props.children;
|
|
31
29
|
}
|
|
32
30
|
Unspaced["isUnspaced"] = true;
|
|
33
31
|
function isUnspaced(child) {
|
|
34
|
-
|
|
35
|
-
|
|
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
|
-
|
|
9
|
-
|
|
10
|
-
|
|
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
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
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
|
-
|
|
28
|
-
|
|
25
|
+
Unspaced: () => Unspaced,
|
|
26
|
+
isUnspaced: () => isUnspaced
|
|
29
27
|
});
|
|
30
28
|
module.exports = __toCommonJS(Unspaced_exports);
|
|
31
29
|
function Unspaced(props) {
|
|
32
|
-
|
|
30
|
+
return props.children;
|
|
33
31
|
}
|
|
34
32
|
Unspaced["isUnspaced"] = true;
|
|
35
33
|
function isUnspaced(child) {
|
|
36
|
-
|
|
37
|
-
|
|
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,"
|
|
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"}
|
package/dist/cjs/index.cjs
CHANGED
|
@@ -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
|
-
|
|
7
|
-
|
|
8
|
-
|
|
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
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
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);
|
package/dist/cjs/index.native.js
CHANGED
|
@@ -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
|
-
|
|
9
|
-
|
|
10
|
-
|
|
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
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
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,"
|
|
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"}
|