@tamagui/separator 2.7.7 → 3.0.0-beta.637.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/Separator.cjs +43 -51
- package/dist/cjs/Separator.native.cjs +58 -0
- package/dist/cjs/Separator.native.js +43 -50
- package/dist/cjs/Separator.native.js.map +1 -1
- package/dist/cjs/index.cjs +10 -11
- package/dist/cjs/index.native.cjs +21 -0
- package/dist/cjs/index.native.js +10 -10
- package/dist/cjs/index.native.js.map +1 -1
- package/dist/esm/Separator.mjs +30 -33
- package/dist/esm/Separator.mjs.map +1 -1
- package/dist/esm/Separator.native.js +30 -33
- package/dist/esm/Separator.native.js.map +1 -1
- package/dist/esm/index.js +1 -2
- package/dist/esm/index.mjs +1 -2
- package/dist/esm/index.native.js +1 -2
- package/dist/jsx/Separator.mjs +30 -33
- package/dist/jsx/Separator.mjs.map +1 -1
- package/dist/jsx/Separator.native.cjs +58 -0
- package/dist/jsx/Separator.native.js +43 -50
- package/dist/jsx/Separator.native.js.map +1 -1
- package/dist/jsx/index.js +1 -2
- package/dist/jsx/index.mjs +1 -2
- package/dist/jsx/index.native.cjs +21 -0
- package/dist/jsx/index.native.js +10 -10
- package/dist/jsx/index.native.js.map +1 -1
- package/package.json +4 -4
- package/src/Separator.tsx +23 -18
- package/types/Separator.d.ts +10 -3
- package/types/Separator.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/jsx/index.js.map +0 -1
- package/dist/jsx/index.mjs.map +0 -1
package/dist/cjs/Separator.cjs
CHANGED
|
@@ -1,64 +1,56 @@
|
|
|
1
|
+
|
|
1
2
|
var __defProp = Object.defineProperty;
|
|
2
3
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
4
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
5
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
6
|
var __export = (target, all) => {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
for (var name in all) __defProp(target, name, {
|
|
8
|
+
get: all[name],
|
|
9
|
+
enumerable: true
|
|
10
|
+
});
|
|
10
11
|
};
|
|
11
12
|
var __copyProps = (to, from, except, desc) => {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
13
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
+
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
15
|
+
get: () => from[key],
|
|
16
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
return to;
|
|
19
20
|
};
|
|
20
|
-
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
21
|
-
value: true
|
|
22
|
-
}), mod);
|
|
21
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
23
22
|
var Separator_exports = {};
|
|
24
|
-
__export(Separator_exports, {
|
|
25
|
-
Separator: () => Separator
|
|
26
|
-
});
|
|
23
|
+
__export(Separator_exports, { Separator: () => Separator });
|
|
27
24
|
module.exports = __toCommonJS(Separator_exports);
|
|
28
25
|
var import_constants = require("@tamagui/constants");
|
|
29
26
|
var import_core = require("@tamagui/core");
|
|
30
27
|
const Separator = (0, import_core.styled)(import_core.View, {
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
},
|
|
61
|
-
defaultVariants: {
|
|
62
|
-
unstyled: process.env.TAMAGUI_HEADLESS === "1"
|
|
63
|
-
}
|
|
64
|
-
});
|
|
28
|
+
displayName: "Separator",
|
|
29
|
+
...import_constants.isWeb && {
|
|
30
|
+
role: "separator",
|
|
31
|
+
"aria-orientation": "horizontal",
|
|
32
|
+
"data-orientation": "horizontal"
|
|
33
|
+
},
|
|
34
|
+
borderColor: "transparent",
|
|
35
|
+
flexShrink: 0,
|
|
36
|
+
borderWidth: 0,
|
|
37
|
+
flex: 1,
|
|
38
|
+
height: 0,
|
|
39
|
+
maxHeight: 0,
|
|
40
|
+
borderBottomWidth: 1,
|
|
41
|
+
y: -.5,
|
|
42
|
+
variants: { vertical: { true: {
|
|
43
|
+
y: 0,
|
|
44
|
+
x: -.5,
|
|
45
|
+
height: import_constants.isWeb ? "initial" : "auto",
|
|
46
|
+
maxHeight: import_constants.isWeb ? "initial" : "auto",
|
|
47
|
+
width: 0,
|
|
48
|
+
maxWidth: 0,
|
|
49
|
+
borderBottomWidth: 0,
|
|
50
|
+
borderRightWidth: 1,
|
|
51
|
+
...import_constants.isWeb && {
|
|
52
|
+
"aria-orientation": "vertical",
|
|
53
|
+
"data-orientation": "vertical"
|
|
54
|
+
}
|
|
55
|
+
} } }
|
|
56
|
+
});
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
var __defProp = Object.defineProperty;
|
|
5
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
6
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
for (var name in all) __defProp(target, name, {
|
|
10
|
+
get: all[name],
|
|
11
|
+
enumerable: true
|
|
12
|
+
});
|
|
13
|
+
};
|
|
14
|
+
var __copyProps = (to, from, except, desc) => {
|
|
15
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
16
|
+
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
17
|
+
get: () => from[key],
|
|
18
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
return to;
|
|
22
|
+
};
|
|
23
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
24
|
+
var Separator_exports = {};
|
|
25
|
+
__export(Separator_exports, { Separator: () => Separator });
|
|
26
|
+
module.exports = __toCommonJS(Separator_exports);
|
|
27
|
+
var import_constants = require("@tamagui/constants");
|
|
28
|
+
var import_core = require("@tamagui/core");
|
|
29
|
+
var Separator = (0, import_core.styled)(import_core.View, {
|
|
30
|
+
displayName: "Separator",
|
|
31
|
+
...import_constants.isWeb && {
|
|
32
|
+
role: "separator",
|
|
33
|
+
"aria-orientation": "horizontal",
|
|
34
|
+
"data-orientation": "horizontal"
|
|
35
|
+
},
|
|
36
|
+
borderColor: "transparent",
|
|
37
|
+
flexShrink: 0,
|
|
38
|
+
borderWidth: 0,
|
|
39
|
+
flex: 1,
|
|
40
|
+
height: 0,
|
|
41
|
+
maxHeight: 0,
|
|
42
|
+
borderBottomWidth: 1,
|
|
43
|
+
y: -.5,
|
|
44
|
+
variants: { vertical: { true: {
|
|
45
|
+
y: 0,
|
|
46
|
+
x: -.5,
|
|
47
|
+
height: import_constants.isWeb ? "initial" : "auto",
|
|
48
|
+
maxHeight: import_constants.isWeb ? "initial" : "auto",
|
|
49
|
+
width: 0,
|
|
50
|
+
maxWidth: 0,
|
|
51
|
+
borderBottomWidth: 0,
|
|
52
|
+
borderRightWidth: 1,
|
|
53
|
+
...import_constants.isWeb && {
|
|
54
|
+
"aria-orientation": "vertical",
|
|
55
|
+
"data-orientation": "vertical"
|
|
56
|
+
}
|
|
57
|
+
} } }
|
|
58
|
+
});
|
|
@@ -1,67 +1,60 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
|
|
3
4
|
var __defProp = Object.defineProperty;
|
|
4
5
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
6
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
7
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
8
|
var __export = (target, all) => {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
for (var name in all) __defProp(target, name, {
|
|
10
|
+
get: all[name],
|
|
11
|
+
enumerable: true
|
|
12
|
+
});
|
|
12
13
|
};
|
|
13
14
|
var __copyProps = (to, from, except, desc) => {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
15
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
16
|
+
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
17
|
+
get: () => from[key],
|
|
18
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
return to;
|
|
21
22
|
};
|
|
22
|
-
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
23
|
-
value: true
|
|
24
|
-
}), mod);
|
|
23
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
25
24
|
var Separator_exports = {};
|
|
26
|
-
__export(Separator_exports, {
|
|
27
|
-
Separator: () => Separator
|
|
28
|
-
});
|
|
25
|
+
__export(Separator_exports, { Separator: () => Separator });
|
|
29
26
|
module.exports = __toCommonJS(Separator_exports);
|
|
30
27
|
var import_constants = require("@tamagui/constants");
|
|
31
28
|
var import_core = require("@tamagui/core");
|
|
32
29
|
var Separator = (0, import_core.styled)(import_core.View, {
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
}
|
|
62
|
-
},
|
|
63
|
-
defaultVariants: {
|
|
64
|
-
unstyled: process.env.TAMAGUI_HEADLESS === "1"
|
|
65
|
-
}
|
|
30
|
+
displayName: "Separator",
|
|
31
|
+
...import_constants.isWeb && {
|
|
32
|
+
role: "separator",
|
|
33
|
+
"aria-orientation": "horizontal",
|
|
34
|
+
"data-orientation": "horizontal"
|
|
35
|
+
},
|
|
36
|
+
borderColor: "transparent",
|
|
37
|
+
flexShrink: 0,
|
|
38
|
+
borderWidth: 0,
|
|
39
|
+
flex: 1,
|
|
40
|
+
height: 0,
|
|
41
|
+
maxHeight: 0,
|
|
42
|
+
borderBottomWidth: 1,
|
|
43
|
+
y: -.5,
|
|
44
|
+
variants: { vertical: { true: {
|
|
45
|
+
y: 0,
|
|
46
|
+
x: -.5,
|
|
47
|
+
height: import_constants.isWeb ? "initial" : "auto",
|
|
48
|
+
maxHeight: import_constants.isWeb ? "initial" : "auto",
|
|
49
|
+
width: 0,
|
|
50
|
+
maxWidth: 0,
|
|
51
|
+
borderBottomWidth: 0,
|
|
52
|
+
borderRightWidth: 1,
|
|
53
|
+
...import_constants.isWeb && {
|
|
54
|
+
"aria-orientation": "vertical",
|
|
55
|
+
"data-orientation": "vertical"
|
|
56
|
+
}
|
|
57
|
+
} } }
|
|
66
58
|
});
|
|
59
|
+
|
|
67
60
|
//# sourceMappingURL=Separator.native.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"Separator.native.js","names":[],"sources":["cjs/Separator.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 Separator_exports = {};\n__export(Separator_exports, {\n Separator: () => Separator\n});\nmodule.exports = __toCommonJS(Separator_exports);\nvar import_constants = require(\"@tamagui/constants\");\nvar import_core = require(\"@tamagui/core\");\nvar Separator = (0, import_core.styled)(import_core.View, {\n displayName: \"Separator\",\n ...import_constants.isWeb && {\n role: \"separator\",\n // @ts-ignore\n \"aria-orientation\": \"horizontal\",\n \"data-orientation\": \"horizontal\"\n },\n borderColor: \"transparent\",\n flexShrink: 0,\n borderWidth: 0,\n flex: 1,\n height: 0,\n maxHeight: 0,\n borderBottomWidth: 1,\n y: -0.5,\n variants: {\n vertical: {\n true: {\n y: 0,\n x: -0.5,\n height: import_constants.isWeb ? \"initial\" : \"auto\",\n // maxHeight auto WILL BE passed to style attribute, but for some reason not used?\n // almost seems like a react or browser bug, but for now `initial` works\n // also, it doesn't happen for `height`, but for consistency using the same values\n maxHeight: import_constants.isWeb ? \"initial\" : \"auto\",\n width: 0,\n maxWidth: 0,\n borderBottomWidth: 0,\n borderRightWidth: 1,\n ...import_constants.isWeb && {\n // @ts-ignore\n \"aria-orientation\": \"vertical\",\n \"data-orientation\": \"vertical\"\n }\n }\n }\n }\n});\n//# sourceMappingURL=Separator.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,oBAAoB,CAAC;AACzB,SAAS,mBAAmB,EAC1B,iBAAiB,UACnB,CAAC;AACD,OAAO,UAAU,aAAa,iBAAiB;AAC/C,IAAI,mBAAmB,QAAQ,oBAAoB;AACnD,IAAI,cAAc,QAAQ,eAAe;AACzC,IAAI,aAAa,GAAG,YAAY,QAAQ,YAAY,MAAM;CACxD,aAAa;CACb,GAAG,iBAAiB,SAAS;EAC3B,MAAM;EAEN,oBAAoB;EACpB,oBAAoB;CACtB;CACA,aAAa;CACb,YAAY;CACZ,aAAa;CACb,MAAM;CACN,QAAQ;CACR,WAAW;CACX,mBAAmB;CACnB,GAAG,CAAC;CACJ,UAAU,EACR,UAAU,EACR,MAAM;EACJ,GAAG;EACH,GAAG,CAAC;EACJ,QAAQ,iBAAiB,QAAQ,YAAY;EAI7C,WAAW,iBAAiB,QAAQ,YAAY;EAChD,OAAO;EACP,UAAU;EACV,mBAAmB;EACnB,kBAAkB;EAClB,GAAG,iBAAiB,SAAS;GAE3B,oBAAoB;GACpB,oBAAoB;EACtB;CACF,EACF,EACF;AACF,CAAC"}
|
package/dist/cjs/index.cjs
CHANGED
|
@@ -1,20 +1,19 @@
|
|
|
1
|
+
|
|
1
2
|
var __defProp = Object.defineProperty;
|
|
2
3
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
4
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
5
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
6
|
var __copyProps = (to, from, except, desc) => {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
7
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
|
+
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
9
|
+
get: () => from[key],
|
|
10
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
11
|
+
});
|
|
12
|
+
}
|
|
13
|
+
return to;
|
|
13
14
|
};
|
|
14
15
|
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
15
|
-
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
16
|
-
value: true
|
|
17
|
-
}), mod);
|
|
16
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
17
|
var index_exports = {};
|
|
19
18
|
module.exports = __toCommonJS(index_exports);
|
|
20
|
-
__reExport(index_exports, require("./Separator.cjs"), module.exports);
|
|
19
|
+
__reExport(index_exports, require("./Separator.cjs"), module.exports);
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
var __defProp = Object.defineProperty;
|
|
5
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
6
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __copyProps = (to, from, except, desc) => {
|
|
9
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
10
|
+
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
11
|
+
get: () => from[key],
|
|
12
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
13
|
+
});
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
16
|
+
};
|
|
17
|
+
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
var index_exports = {};
|
|
20
|
+
module.exports = __toCommonJS(index_exports);
|
|
21
|
+
__reExport(index_exports, require("./Separator.native.js"), module.exports);
|
package/dist/cjs/index.native.js
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
|
|
3
4
|
var __defProp = Object.defineProperty;
|
|
4
5
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
6
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
7
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
8
|
var __copyProps = (to, from, except, desc) => {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
9
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
10
|
+
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
11
|
+
get: () => from[key],
|
|
12
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
13
|
+
});
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
15
16
|
};
|
|
16
17
|
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
17
|
-
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
18
|
-
value: true
|
|
19
|
-
}), mod);
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
20
19
|
var index_exports = {};
|
|
21
20
|
module.exports = __toCommonJS(index_exports);
|
|
22
21
|
__reExport(index_exports, require("./Separator.native.js"), module.exports);
|
|
22
|
+
|
|
23
23
|
//# 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 __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(\"./Separator\"), 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,uBAAa,GAAG,OAAO,OAAO"}
|
package/dist/esm/Separator.mjs
CHANGED
|
@@ -1,39 +1,36 @@
|
|
|
1
1
|
import { isWeb } from "@tamagui/constants";
|
|
2
2
|
import { View, styled } from "@tamagui/core";
|
|
3
|
+
|
|
3
4
|
const Separator = styled(View, {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
}
|
|
33
|
-
},
|
|
34
|
-
defaultVariants: {
|
|
35
|
-
unstyled: process.env.TAMAGUI_HEADLESS === "1"
|
|
36
|
-
}
|
|
5
|
+
displayName: "Separator",
|
|
6
|
+
...isWeb && {
|
|
7
|
+
role: "separator",
|
|
8
|
+
"aria-orientation": "horizontal",
|
|
9
|
+
"data-orientation": "horizontal"
|
|
10
|
+
},
|
|
11
|
+
borderColor: "transparent",
|
|
12
|
+
flexShrink: 0,
|
|
13
|
+
borderWidth: 0,
|
|
14
|
+
flex: 1,
|
|
15
|
+
height: 0,
|
|
16
|
+
maxHeight: 0,
|
|
17
|
+
borderBottomWidth: 1,
|
|
18
|
+
y: -.5,
|
|
19
|
+
variants: { vertical: { true: {
|
|
20
|
+
y: 0,
|
|
21
|
+
x: -.5,
|
|
22
|
+
height: isWeb ? "initial" : "auto",
|
|
23
|
+
maxHeight: isWeb ? "initial" : "auto",
|
|
24
|
+
width: 0,
|
|
25
|
+
maxWidth: 0,
|
|
26
|
+
borderBottomWidth: 0,
|
|
27
|
+
borderRightWidth: 1,
|
|
28
|
+
...isWeb && {
|
|
29
|
+
"aria-orientation": "vertical",
|
|
30
|
+
"data-orientation": "vertical"
|
|
31
|
+
}
|
|
32
|
+
} } }
|
|
37
33
|
});
|
|
34
|
+
|
|
38
35
|
export { Separator };
|
|
39
36
|
//# sourceMappingURL=Separator.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"Separator.js","names":[],"sources":["esm/Separator.js"],"sourcesContent":["import { isWeb } from \"@tamagui/constants\";\nimport { View, styled } from \"@tamagui/core\";\nconst Separator = styled(View, {\n displayName: \"Separator\",\n ...isWeb && {\n role: \"separator\",\n // @ts-ignore\n \"aria-orientation\": \"horizontal\",\n \"data-orientation\": \"horizontal\"\n },\n borderColor: \"transparent\",\n flexShrink: 0,\n borderWidth: 0,\n flex: 1,\n height: 0,\n maxHeight: 0,\n borderBottomWidth: 1,\n y: -0.5,\n variants: {\n vertical: {\n true: {\n y: 0,\n x: -0.5,\n height: isWeb ? \"initial\" : \"auto\",\n // maxHeight auto WILL BE passed to style attribute, but for some reason not used?\n // almost seems like a react or browser bug, but for now `initial` works\n // also, it doesn't happen for `height`, but for consistency using the same values\n maxHeight: isWeb ? \"initial\" : \"auto\",\n width: 0,\n maxWidth: 0,\n borderBottomWidth: 0,\n borderRightWidth: 1,\n ...isWeb && {\n // @ts-ignore\n \"aria-orientation\": \"vertical\",\n \"data-orientation\": \"vertical\"\n }\n }\n }\n }\n});\nexport {\n Separator\n};\n//# sourceMappingURL=Separator.js.map\n"],"mappings":";;;;AAEA,MAAM,YAAY,OAAO,MAAM;CAC7B,aAAa;CACb,GAAG,SAAS;EACV,MAAM;EAEN,oBAAoB;EACpB,oBAAoB;CACtB;CACA,aAAa;CACb,YAAY;CACZ,aAAa;CACb,MAAM;CACN,QAAQ;CACR,WAAW;CACX,mBAAmB;CACnB,GAAG,CAAC;CACJ,UAAU,EACR,UAAU,EACR,MAAM;EACJ,GAAG;EACH,GAAG,CAAC;EACJ,QAAQ,QAAQ,YAAY;EAI5B,WAAW,QAAQ,YAAY;EAC/B,OAAO;EACP,UAAU;EACV,mBAAmB;EACnB,kBAAkB;EAClB,GAAG,SAAS;GAEV,oBAAoB;GACpB,oBAAoB;EACtB;CACF,EACF,EACF;AACF,CAAC"}
|
|
@@ -1,39 +1,36 @@
|
|
|
1
1
|
import { isWeb } from "@tamagui/constants";
|
|
2
2
|
import { View, styled } from "@tamagui/core";
|
|
3
|
+
|
|
3
4
|
var Separator = styled(View, {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
}
|
|
33
|
-
},
|
|
34
|
-
defaultVariants: {
|
|
35
|
-
unstyled: process.env.TAMAGUI_HEADLESS === "1"
|
|
36
|
-
}
|
|
5
|
+
displayName: "Separator",
|
|
6
|
+
...isWeb && {
|
|
7
|
+
role: "separator",
|
|
8
|
+
"aria-orientation": "horizontal",
|
|
9
|
+
"data-orientation": "horizontal"
|
|
10
|
+
},
|
|
11
|
+
borderColor: "transparent",
|
|
12
|
+
flexShrink: 0,
|
|
13
|
+
borderWidth: 0,
|
|
14
|
+
flex: 1,
|
|
15
|
+
height: 0,
|
|
16
|
+
maxHeight: 0,
|
|
17
|
+
borderBottomWidth: 1,
|
|
18
|
+
y: -.5,
|
|
19
|
+
variants: { vertical: { true: {
|
|
20
|
+
y: 0,
|
|
21
|
+
x: -.5,
|
|
22
|
+
height: isWeb ? "initial" : "auto",
|
|
23
|
+
maxHeight: isWeb ? "initial" : "auto",
|
|
24
|
+
width: 0,
|
|
25
|
+
maxWidth: 0,
|
|
26
|
+
borderBottomWidth: 0,
|
|
27
|
+
borderRightWidth: 1,
|
|
28
|
+
...isWeb && {
|
|
29
|
+
"aria-orientation": "vertical",
|
|
30
|
+
"data-orientation": "vertical"
|
|
31
|
+
}
|
|
32
|
+
} } }
|
|
37
33
|
});
|
|
34
|
+
|
|
38
35
|
export { Separator };
|
|
39
36
|
//# sourceMappingURL=Separator.native.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"Separator.native.js","names":[],"sources":["esm/Separator.native.js"],"sourcesContent":["import { isWeb } from \"@tamagui/constants\";\nimport { View, styled } from \"@tamagui/core\";\nvar Separator = styled(View, {\n displayName: \"Separator\",\n ...isWeb && {\n role: \"separator\",\n // @ts-ignore\n \"aria-orientation\": \"horizontal\",\n \"data-orientation\": \"horizontal\"\n },\n borderColor: \"transparent\",\n flexShrink: 0,\n borderWidth: 0,\n flex: 1,\n height: 0,\n maxHeight: 0,\n borderBottomWidth: 1,\n y: -0.5,\n variants: {\n vertical: {\n true: {\n y: 0,\n x: -0.5,\n height: isWeb ? \"initial\" : \"auto\",\n // maxHeight auto WILL BE passed to style attribute, but for some reason not used?\n // almost seems like a react or browser bug, but for now `initial` works\n // also, it doesn't happen for `height`, but for consistency using the same values\n maxHeight: isWeb ? \"initial\" : \"auto\",\n width: 0,\n maxWidth: 0,\n borderBottomWidth: 0,\n borderRightWidth: 1,\n ...isWeb && {\n // @ts-ignore\n \"aria-orientation\": \"vertical\",\n \"data-orientation\": \"vertical\"\n }\n }\n }\n }\n});\nexport {\n Separator\n};\n//# sourceMappingURL=Separator.js.map\n"],"mappings":";;;;AAEA,IAAI,YAAY,OAAO,MAAM;CAC3B,aAAa;CACb,GAAG,SAAS;EACV,MAAM;EAEN,oBAAoB;EACpB,oBAAoB;CACtB;CACA,aAAa;CACb,YAAY;CACZ,aAAa;CACb,MAAM;CACN,QAAQ;CACR,WAAW;CACX,mBAAmB;CACnB,GAAG,CAAC;CACJ,UAAU,EACR,UAAU,EACR,MAAM;EACJ,GAAG;EACH,GAAG,CAAC;EACJ,QAAQ,QAAQ,YAAY;EAI5B,WAAW,QAAQ,YAAY;EAC/B,OAAO;EACP,UAAU;EACV,mBAAmB;EACnB,kBAAkB;EAClB,GAAG,SAAS;GAEV,oBAAoB;GACpB,oBAAoB;EACtB;CACF,EACF,EACF;AACF,CAAC"}
|
package/dist/esm/index.js
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
export * from "./Separator.mjs"
|
|
2
|
-
//# sourceMappingURL=index.js.map
|
|
1
|
+
export * from "./Separator.mjs"
|
package/dist/esm/index.mjs
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
export * from "./Separator.mjs"
|
|
2
|
-
//# sourceMappingURL=index.mjs.map
|
|
1
|
+
export * from "./Separator.mjs"
|
package/dist/esm/index.native.js
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
export * from "./Separator.native.js"
|
|
2
|
-
//# sourceMappingURL=index.native.js.map
|
|
1
|
+
export * from "./Separator.native.js"
|
package/dist/jsx/Separator.mjs
CHANGED
|
@@ -1,39 +1,36 @@
|
|
|
1
1
|
import { isWeb } from "@tamagui/constants";
|
|
2
2
|
import { View, styled } from "@tamagui/core";
|
|
3
|
+
|
|
3
4
|
const Separator = styled(View, {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
}
|
|
33
|
-
},
|
|
34
|
-
defaultVariants: {
|
|
35
|
-
unstyled: process.env.TAMAGUI_HEADLESS === "1"
|
|
36
|
-
}
|
|
5
|
+
displayName: "Separator",
|
|
6
|
+
...isWeb && {
|
|
7
|
+
role: "separator",
|
|
8
|
+
"aria-orientation": "horizontal",
|
|
9
|
+
"data-orientation": "horizontal"
|
|
10
|
+
},
|
|
11
|
+
borderColor: "transparent",
|
|
12
|
+
flexShrink: 0,
|
|
13
|
+
borderWidth: 0,
|
|
14
|
+
flex: 1,
|
|
15
|
+
height: 0,
|
|
16
|
+
maxHeight: 0,
|
|
17
|
+
borderBottomWidth: 1,
|
|
18
|
+
y: -.5,
|
|
19
|
+
variants: { vertical: { true: {
|
|
20
|
+
y: 0,
|
|
21
|
+
x: -.5,
|
|
22
|
+
height: isWeb ? "initial" : "auto",
|
|
23
|
+
maxHeight: isWeb ? "initial" : "auto",
|
|
24
|
+
width: 0,
|
|
25
|
+
maxWidth: 0,
|
|
26
|
+
borderBottomWidth: 0,
|
|
27
|
+
borderRightWidth: 1,
|
|
28
|
+
...isWeb && {
|
|
29
|
+
"aria-orientation": "vertical",
|
|
30
|
+
"data-orientation": "vertical"
|
|
31
|
+
}
|
|
32
|
+
} } }
|
|
37
33
|
});
|
|
34
|
+
|
|
38
35
|
export { Separator };
|
|
39
36
|
//# sourceMappingURL=Separator.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"Separator.js","names":[],"sources":["jsx/Separator.js"],"sourcesContent":["import { isWeb } from \"@tamagui/constants\";\nimport { View, styled } from \"@tamagui/core\";\nconst Separator = styled(View, {\n displayName: \"Separator\",\n ...isWeb && {\n role: \"separator\",\n // @ts-ignore\n \"aria-orientation\": \"horizontal\",\n \"data-orientation\": \"horizontal\"\n },\n borderColor: \"transparent\",\n flexShrink: 0,\n borderWidth: 0,\n flex: 1,\n height: 0,\n maxHeight: 0,\n borderBottomWidth: 1,\n y: -0.5,\n variants: {\n vertical: {\n true: {\n y: 0,\n x: -0.5,\n height: isWeb ? \"initial\" : \"auto\",\n // maxHeight auto WILL BE passed to style attribute, but for some reason not used?\n // almost seems like a react or browser bug, but for now `initial` works\n // also, it doesn't happen for `height`, but for consistency using the same values\n maxHeight: isWeb ? \"initial\" : \"auto\",\n width: 0,\n maxWidth: 0,\n borderBottomWidth: 0,\n borderRightWidth: 1,\n ...isWeb && {\n // @ts-ignore\n \"aria-orientation\": \"vertical\",\n \"data-orientation\": \"vertical\"\n }\n }\n }\n }\n});\nexport {\n Separator\n};\n//# sourceMappingURL=Separator.js.map\n"],"mappings":";;;;AAEA,MAAM,YAAY,OAAO,MAAM;CAC7B,aAAa;CACb,GAAG,SAAS;EACV,MAAM;EAEN,oBAAoB;EACpB,oBAAoB;CACtB;CACA,aAAa;CACb,YAAY;CACZ,aAAa;CACb,MAAM;CACN,QAAQ;CACR,WAAW;CACX,mBAAmB;CACnB,GAAG,CAAC;CACJ,UAAU,EACR,UAAU,EACR,MAAM;EACJ,GAAG;EACH,GAAG,CAAC;EACJ,QAAQ,QAAQ,YAAY;EAI5B,WAAW,QAAQ,YAAY;EAC/B,OAAO;EACP,UAAU;EACV,mBAAmB;EACnB,kBAAkB;EAClB,GAAG,SAAS;GAEV,oBAAoB;GACpB,oBAAoB;EACtB;CACF,EACF,EACF;AACF,CAAC"}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
var __defProp = Object.defineProperty;
|
|
5
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
6
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
for (var name in all) __defProp(target, name, {
|
|
10
|
+
get: all[name],
|
|
11
|
+
enumerable: true
|
|
12
|
+
});
|
|
13
|
+
};
|
|
14
|
+
var __copyProps = (to, from, except, desc) => {
|
|
15
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
16
|
+
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
17
|
+
get: () => from[key],
|
|
18
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
return to;
|
|
22
|
+
};
|
|
23
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
24
|
+
var Separator_exports = {};
|
|
25
|
+
__export(Separator_exports, { Separator: () => Separator });
|
|
26
|
+
module.exports = __toCommonJS(Separator_exports);
|
|
27
|
+
var import_constants = require("@tamagui/constants");
|
|
28
|
+
var import_core = require("@tamagui/core");
|
|
29
|
+
var Separator = (0, import_core.styled)(import_core.View, {
|
|
30
|
+
displayName: "Separator",
|
|
31
|
+
...import_constants.isWeb && {
|
|
32
|
+
role: "separator",
|
|
33
|
+
"aria-orientation": "horizontal",
|
|
34
|
+
"data-orientation": "horizontal"
|
|
35
|
+
},
|
|
36
|
+
borderColor: "transparent",
|
|
37
|
+
flexShrink: 0,
|
|
38
|
+
borderWidth: 0,
|
|
39
|
+
flex: 1,
|
|
40
|
+
height: 0,
|
|
41
|
+
maxHeight: 0,
|
|
42
|
+
borderBottomWidth: 1,
|
|
43
|
+
y: -.5,
|
|
44
|
+
variants: { vertical: { true: {
|
|
45
|
+
y: 0,
|
|
46
|
+
x: -.5,
|
|
47
|
+
height: import_constants.isWeb ? "initial" : "auto",
|
|
48
|
+
maxHeight: import_constants.isWeb ? "initial" : "auto",
|
|
49
|
+
width: 0,
|
|
50
|
+
maxWidth: 0,
|
|
51
|
+
borderBottomWidth: 0,
|
|
52
|
+
borderRightWidth: 1,
|
|
53
|
+
...import_constants.isWeb && {
|
|
54
|
+
"aria-orientation": "vertical",
|
|
55
|
+
"data-orientation": "vertical"
|
|
56
|
+
}
|
|
57
|
+
} } }
|
|
58
|
+
});
|
|
@@ -1,67 +1,60 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
|
|
3
4
|
var __defProp = Object.defineProperty;
|
|
4
5
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
6
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
7
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
8
|
var __export = (target, all) => {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
for (var name in all) __defProp(target, name, {
|
|
10
|
+
get: all[name],
|
|
11
|
+
enumerable: true
|
|
12
|
+
});
|
|
12
13
|
};
|
|
13
14
|
var __copyProps = (to, from, except, desc) => {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
15
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
16
|
+
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
17
|
+
get: () => from[key],
|
|
18
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
return to;
|
|
21
22
|
};
|
|
22
|
-
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
23
|
-
value: true
|
|
24
|
-
}), mod);
|
|
23
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
25
24
|
var Separator_exports = {};
|
|
26
|
-
__export(Separator_exports, {
|
|
27
|
-
Separator: () => Separator
|
|
28
|
-
});
|
|
25
|
+
__export(Separator_exports, { Separator: () => Separator });
|
|
29
26
|
module.exports = __toCommonJS(Separator_exports);
|
|
30
27
|
var import_constants = require("@tamagui/constants");
|
|
31
28
|
var import_core = require("@tamagui/core");
|
|
32
29
|
var Separator = (0, import_core.styled)(import_core.View, {
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
}
|
|
62
|
-
},
|
|
63
|
-
defaultVariants: {
|
|
64
|
-
unstyled: process.env.TAMAGUI_HEADLESS === "1"
|
|
65
|
-
}
|
|
30
|
+
displayName: "Separator",
|
|
31
|
+
...import_constants.isWeb && {
|
|
32
|
+
role: "separator",
|
|
33
|
+
"aria-orientation": "horizontal",
|
|
34
|
+
"data-orientation": "horizontal"
|
|
35
|
+
},
|
|
36
|
+
borderColor: "transparent",
|
|
37
|
+
flexShrink: 0,
|
|
38
|
+
borderWidth: 0,
|
|
39
|
+
flex: 1,
|
|
40
|
+
height: 0,
|
|
41
|
+
maxHeight: 0,
|
|
42
|
+
borderBottomWidth: 1,
|
|
43
|
+
y: -.5,
|
|
44
|
+
variants: { vertical: { true: {
|
|
45
|
+
y: 0,
|
|
46
|
+
x: -.5,
|
|
47
|
+
height: import_constants.isWeb ? "initial" : "auto",
|
|
48
|
+
maxHeight: import_constants.isWeb ? "initial" : "auto",
|
|
49
|
+
width: 0,
|
|
50
|
+
maxWidth: 0,
|
|
51
|
+
borderBottomWidth: 0,
|
|
52
|
+
borderRightWidth: 1,
|
|
53
|
+
...import_constants.isWeb && {
|
|
54
|
+
"aria-orientation": "vertical",
|
|
55
|
+
"data-orientation": "vertical"
|
|
56
|
+
}
|
|
57
|
+
} } }
|
|
66
58
|
});
|
|
59
|
+
|
|
67
60
|
//# sourceMappingURL=Separator.native.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"Separator.native.js","names":[],"sources":["jsx/Separator.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 Separator_exports = {};\n__export(Separator_exports, {\n Separator: () => Separator\n});\nmodule.exports = __toCommonJS(Separator_exports);\nvar import_constants = require(\"@tamagui/constants\");\nvar import_core = require(\"@tamagui/core\");\nvar Separator = (0, import_core.styled)(import_core.View, {\n displayName: \"Separator\",\n ...import_constants.isWeb && {\n role: \"separator\",\n // @ts-ignore\n \"aria-orientation\": \"horizontal\",\n \"data-orientation\": \"horizontal\"\n },\n borderColor: \"transparent\",\n flexShrink: 0,\n borderWidth: 0,\n flex: 1,\n height: 0,\n maxHeight: 0,\n borderBottomWidth: 1,\n y: -0.5,\n variants: {\n vertical: {\n true: {\n y: 0,\n x: -0.5,\n height: import_constants.isWeb ? \"initial\" : \"auto\",\n // maxHeight auto WILL BE passed to style attribute, but for some reason not used?\n // almost seems like a react or browser bug, but for now `initial` works\n // also, it doesn't happen for `height`, but for consistency using the same values\n maxHeight: import_constants.isWeb ? \"initial\" : \"auto\",\n width: 0,\n maxWidth: 0,\n borderBottomWidth: 0,\n borderRightWidth: 1,\n ...import_constants.isWeb && {\n // @ts-ignore\n \"aria-orientation\": \"vertical\",\n \"data-orientation\": \"vertical\"\n }\n }\n }\n }\n});\n//# sourceMappingURL=Separator.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,oBAAoB,CAAC;AACzB,SAAS,mBAAmB,EAC1B,iBAAiB,UACnB,CAAC;AACD,OAAO,UAAU,aAAa,iBAAiB;AAC/C,IAAI,mBAAmB,QAAQ,oBAAoB;AACnD,IAAI,cAAc,QAAQ,eAAe;AACzC,IAAI,aAAa,GAAG,YAAY,QAAQ,YAAY,MAAM;CACxD,aAAa;CACb,GAAG,iBAAiB,SAAS;EAC3B,MAAM;EAEN,oBAAoB;EACpB,oBAAoB;CACtB;CACA,aAAa;CACb,YAAY;CACZ,aAAa;CACb,MAAM;CACN,QAAQ;CACR,WAAW;CACX,mBAAmB;CACnB,GAAG,CAAC;CACJ,UAAU,EACR,UAAU,EACR,MAAM;EACJ,GAAG;EACH,GAAG,CAAC;EACJ,QAAQ,iBAAiB,QAAQ,YAAY;EAI7C,WAAW,iBAAiB,QAAQ,YAAY;EAChD,OAAO;EACP,UAAU;EACV,mBAAmB;EACnB,kBAAkB;EAClB,GAAG,iBAAiB,SAAS;GAE3B,oBAAoB;GACpB,oBAAoB;EACtB;CACF,EACF,EACF;AACF,CAAC"}
|
package/dist/jsx/index.js
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
export * from "./Separator.mjs"
|
|
2
|
-
//# sourceMappingURL=index.js.map
|
|
1
|
+
export * from "./Separator.mjs"
|
package/dist/jsx/index.mjs
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
export * from "./Separator.mjs"
|
|
2
|
-
//# sourceMappingURL=index.mjs.map
|
|
1
|
+
export * from "./Separator.mjs"
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
var __defProp = Object.defineProperty;
|
|
5
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
6
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __copyProps = (to, from, except, desc) => {
|
|
9
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
10
|
+
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
11
|
+
get: () => from[key],
|
|
12
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
13
|
+
});
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
16
|
+
};
|
|
17
|
+
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
var index_exports = {};
|
|
20
|
+
module.exports = __toCommonJS(index_exports);
|
|
21
|
+
__reExport(index_exports, require("./Separator.native.js"), module.exports);
|
package/dist/jsx/index.native.js
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
|
|
3
4
|
var __defProp = Object.defineProperty;
|
|
4
5
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
6
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
7
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
8
|
var __copyProps = (to, from, except, desc) => {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
9
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
10
|
+
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
11
|
+
get: () => from[key],
|
|
12
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
13
|
+
});
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
15
16
|
};
|
|
16
17
|
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
17
|
-
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
18
|
-
value: true
|
|
19
|
-
}), mod);
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
20
19
|
var index_exports = {};
|
|
21
20
|
module.exports = __toCommonJS(index_exports);
|
|
22
21
|
__reExport(index_exports, require("./Separator.native.js"), module.exports);
|
|
22
|
+
|
|
23
23
|
//# sourceMappingURL=index.native.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"sources":["
|
|
1
|
+
{"version":3,"file":"index.native.js","names":[],"sources":["jsx/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(\"./Separator\"), 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,uBAAa,GAAG,OAAO,OAAO"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tamagui/separator",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.0-beta.637.1",
|
|
4
4
|
"source": "src/index.ts",
|
|
5
5
|
"files": [
|
|
6
6
|
"src",
|
|
@@ -34,11 +34,11 @@
|
|
|
34
34
|
"clean:build": "tamagui-build clean:build"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@tamagui/constants": "
|
|
38
|
-
"@tamagui/core": "
|
|
37
|
+
"@tamagui/constants": "3.0.0-beta.637.1",
|
|
38
|
+
"@tamagui/core": "3.0.0-beta.637.1"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
|
-
"@tamagui/build": "
|
|
41
|
+
"@tamagui/build": "3.0.0-beta.637.1",
|
|
42
42
|
"react": ">=19"
|
|
43
43
|
},
|
|
44
44
|
"peerDependencies": {
|
package/src/Separator.tsx
CHANGED
|
@@ -1,23 +1,27 @@
|
|
|
1
1
|
import { isWeb } from '@tamagui/constants'
|
|
2
2
|
import { View, styled } from '@tamagui/core'
|
|
3
3
|
|
|
4
|
+
// Unstyled Separator: orientation + layout + the collapsed 1px rule only (an
|
|
5
|
+
// invisible line, transparent by default). The theme line color lives in the
|
|
6
|
+
// tamagui skin (code/ui/tamagui/src/components/Separator.tsx).
|
|
4
7
|
export const Separator = styled(View, {
|
|
5
|
-
|
|
8
|
+
displayName: 'Separator',
|
|
9
|
+
...(isWeb && {
|
|
10
|
+
role: 'separator',
|
|
11
|
+
// @ts-ignore
|
|
12
|
+
'aria-orientation': 'horizontal',
|
|
13
|
+
'data-orientation': 'horizontal',
|
|
14
|
+
}),
|
|
15
|
+
borderColor: 'transparent',
|
|
16
|
+
flexShrink: 0,
|
|
17
|
+
borderWidth: 0,
|
|
18
|
+
flex: 1,
|
|
19
|
+
height: 0,
|
|
20
|
+
maxHeight: 0,
|
|
21
|
+
borderBottomWidth: 1,
|
|
22
|
+
y: -0.5,
|
|
6
23
|
|
|
7
24
|
variants: {
|
|
8
|
-
unstyled: {
|
|
9
|
-
false: {
|
|
10
|
-
borderColor: '$backgroundFocus',
|
|
11
|
-
flexShrink: 0,
|
|
12
|
-
borderWidth: 0,
|
|
13
|
-
flex: 1,
|
|
14
|
-
height: 0,
|
|
15
|
-
maxHeight: 0,
|
|
16
|
-
borderBottomWidth: 1,
|
|
17
|
-
y: -0.5,
|
|
18
|
-
},
|
|
19
|
-
},
|
|
20
|
-
|
|
21
25
|
vertical: {
|
|
22
26
|
true: {
|
|
23
27
|
y: 0,
|
|
@@ -31,11 +35,12 @@ export const Separator = styled(View, {
|
|
|
31
35
|
maxWidth: 0,
|
|
32
36
|
borderBottomWidth: 0,
|
|
33
37
|
borderRightWidth: 1,
|
|
38
|
+
...(isWeb && {
|
|
39
|
+
// @ts-ignore
|
|
40
|
+
'aria-orientation': 'vertical',
|
|
41
|
+
'data-orientation': 'vertical',
|
|
42
|
+
}),
|
|
34
43
|
},
|
|
35
44
|
},
|
|
36
45
|
} as const,
|
|
37
|
-
|
|
38
|
-
defaultVariants: {
|
|
39
|
-
unstyled: process.env.TAMAGUI_HEADLESS === '1',
|
|
40
|
-
},
|
|
41
46
|
})
|
package/types/Separator.d.ts
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
|
-
export declare const Separator: import("
|
|
2
|
-
unstyled?: boolean | undefined;
|
|
1
|
+
export declare const Separator: import("react").FunctionComponent<Omit<import("@tamagui/core").RNTamaguiViewNonStyleProps, "vertical" | keyof import("@tamagui/core").StackStyleBase> & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase> & {
|
|
3
2
|
vertical?: boolean | undefined;
|
|
4
|
-
}
|
|
3
|
+
} & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase>> & {
|
|
4
|
+
ref?: import("react").Ref<import("@tamagui/core").TamaguiElement> | undefined;
|
|
5
|
+
}> & import("@tamagui/core").StaticComponentObject<import("@tamagui/core").TamaDefer, import("@tamagui/core").TamaguiElement, import("@tamagui/core").RNTamaguiViewNonStyleProps, import("@tamagui/core").StackStyleBase, {
|
|
6
|
+
vertical?: boolean | undefined;
|
|
7
|
+
}, import("@tamagui/core").StaticConfigPublic> & Omit<import("@tamagui/core").StaticConfigPublic, "staticConfig"> & {
|
|
8
|
+
__tama: [import("@tamagui/core").TamaDefer, import("@tamagui/core").TamaguiElement, import("@tamagui/core").RNTamaguiViewNonStyleProps, import("@tamagui/core").StackStyleBase, {
|
|
9
|
+
vertical?: boolean | undefined;
|
|
10
|
+
}, import("@tamagui/core").StaticConfigPublic];
|
|
11
|
+
};
|
|
5
12
|
//# sourceMappingURL=Separator.d.ts.map
|
package/types/Separator.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Separator.d.ts","sourceRoot":"","sources":["../src/Separator.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Separator.d.ts","sourceRoot":"","sources":["../src/Separator.tsx"],"names":[],"mappings":"AAMA,eAAO,MAAM,SAAS;;;;;;;;;;CAuCpB,CAAA"}
|
package/dist/esm/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":[],"sources":["../../src/index.ts"],"sourcesContent":[null],"mappings":"AAAA,cAAc","ignoreList":[]}
|
package/dist/esm/index.mjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":[],"sources":["../../src/index.ts"],"sourcesContent":[null],"mappings":"AAAA,cAAc","ignoreList":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":[],"sources":["../../src/index.ts"],"sourcesContent":[null],"mappings":"AAAA,cAAc","ignoreList":[]}
|
package/dist/jsx/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":[],"sources":["../../src/index.ts"],"sourcesContent":[null],"mappings":"AAAA,cAAc","ignoreList":[]}
|
package/dist/jsx/index.mjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":[],"sources":["../../src/index.ts"],"sourcesContent":[null],"mappings":"AAAA,cAAc","ignoreList":[]}
|