@hanzogui/separator 2.0.0

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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2020 Nate Wienert
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,62 @@
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: !0
9
+ });
10
+ },
11
+ __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
13
+ get: () => from[key],
14
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
15
+ });
16
+ return to;
17
+ };
18
+ var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
19
+ value: !0
20
+ }), mod);
21
+ var Separator_exports = {};
22
+ __export(Separator_exports, {
23
+ Separator: () => Separator
24
+ });
25
+ module.exports = __toCommonJS(Separator_exports);
26
+ var import_gui_constants = require("@hanzo/gui-constants"),
27
+ import_gui_core = require("@hanzo/gui-core");
28
+ const Separator = (0, import_gui_core.styled)(import_gui_core.View, {
29
+ name: "Separator",
30
+ variants: {
31
+ unstyled: {
32
+ false: {
33
+ borderColor: "$backgroundFocus",
34
+ flexShrink: 0,
35
+ borderWidth: 0,
36
+ flex: 1,
37
+ height: 0,
38
+ maxHeight: 0,
39
+ borderBottomWidth: 1,
40
+ y: -0.5
41
+ }
42
+ },
43
+ vertical: {
44
+ true: {
45
+ y: 0,
46
+ x: -0.5,
47
+ height: import_gui_constants.isWeb ? "initial" : "auto",
48
+ // maxHeight auto WILL BE passed to style attribute, but for some reason not used?
49
+ // almost seems like a react or browser bug, but for now `initial` works
50
+ // also, it doesn't happen for `height`, but for consistency using the same values
51
+ maxHeight: import_gui_constants.isWeb ? "initial" : "auto",
52
+ width: 0,
53
+ maxWidth: 0,
54
+ borderBottomWidth: 0,
55
+ borderRightWidth: 1
56
+ }
57
+ }
58
+ },
59
+ defaultVariants: {
60
+ unstyled: process.env.HANZO_GUI_HEADLESS === "1"
61
+ }
62
+ });
@@ -0,0 +1,65 @@
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: !0
11
+ });
12
+ },
13
+ __copyProps = (to, from, except, desc) => {
14
+ if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
15
+ get: () => from[key],
16
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
17
+ });
18
+ return to;
19
+ };
20
+ var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
21
+ value: !0
22
+ }), mod);
23
+ var Separator_exports = {};
24
+ __export(Separator_exports, {
25
+ Separator: () => Separator
26
+ });
27
+ module.exports = __toCommonJS(Separator_exports);
28
+ var import_gui_constants = require("@hanzo/gui-constants"),
29
+ import_gui_core = require("@hanzo/gui-core"),
30
+ Separator = (0, import_gui_core.styled)(import_gui_core.View, {
31
+ name: "Separator",
32
+ variants: {
33
+ unstyled: {
34
+ false: {
35
+ borderColor: "$backgroundFocus",
36
+ flexShrink: 0,
37
+ borderWidth: 0,
38
+ flex: 1,
39
+ height: 0,
40
+ maxHeight: 0,
41
+ borderBottomWidth: 1,
42
+ y: -0.5
43
+ }
44
+ },
45
+ vertical: {
46
+ true: {
47
+ y: 0,
48
+ x: -0.5,
49
+ height: import_gui_constants.isWeb ? "initial" : "auto",
50
+ // maxHeight auto WILL BE passed to style attribute, but for some reason not used?
51
+ // almost seems like a react or browser bug, but for now `initial` works
52
+ // also, it doesn't happen for `height`, but for consistency using the same values
53
+ maxHeight: import_gui_constants.isWeb ? "initial" : "auto",
54
+ width: 0,
55
+ maxWidth: 0,
56
+ borderBottomWidth: 0,
57
+ borderRightWidth: 1
58
+ }
59
+ }
60
+ },
61
+ defaultVariants: {
62
+ unstyled: process.env.HANZO_GUI_HEADLESS === "1"
63
+ }
64
+ });
65
+ //# sourceMappingURL=Separator.native.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","Separator_exports","__export","Separator","module","exports","import_gui_constants","require","import_gui_core","styled","View","name","variants","unstyled","false","borderColor","flexShrink","borderWidth","flex","height","maxHeight","borderBottomWidth","y","vertical","true","x","isWeb","width","maxWidth","borderRightWidth","defaultVariants","process","env","HANZO_GUI_HEADLESS"],"sources":["../../src/Separator.tsx"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;EAAAC,KAAA;AAAA,IAAAH,GAAA;AAAA,IAAAI,iBAAA;AAAAC,QAAA,CAAAD,iBAAA;EAAAE,SAAA,EAAAA,CAAA,KAAAA;AAAA;AAAAC,MAAA,CAAAC,OAAA,GAAAT,YAAsB,CAAAK,iBAAA;AAGf,IAAAK,oBAAkB,GAAAC,OAAA,uBAAO;EAAAC,eAAM,GAAAD,OAAA;EAAAJ,SAAA,OAAAK,eAAA,CAAAC,MAAA,EAAAD,eAAA,CAAAE,IAAA;IACpCC,IAAA,EAAM;IAENC,QAAA,EAAU;MACRC,QAAA,EAAU;QACRC,KAAA,EAAO;UACLC,WAAA,EAAa;UACbC,UAAA,EAAY;UACZC,WAAA,EAAa;UACbC,IAAA,EAAM;UACNC,MAAA,EAAQ;UACRC,SAAA,EAAW;UACXC,iBAAA,EAAmB;UACnBC,CAAA,EAAG;QACL;MACF;MAEAC,QAAA,EAAU;QACRC,IAAA,EAAM;UACJF,CAAA,EAAG;UACHG,CAAA,EAAG;UACHN,MAAA,EAAQb,oBAAA,CAAAoB,KAAA,GAAQ,YAAY;UAAA;UAAA;UAAA;UAI5BN,SAAA,EAAWd,oBAAA,CAAAoB,KAAA,GAAQ,YAAY;UAC/BC,KAAA,EAAO;UACPC,QAAA,EAAU;UACVP,iBAAA,EAAmB;UACnBQ,gBAAA,EAAkB;QACpB;MACF;IACF;IAEAC,eAAA,EAAiB;MACfjB,QAAA,EAAUkB,OAAA,CAAQC,GAAA,CAAIC,kBAAA,KAAuB;IAC/C;EACF,CAAC","ignoreList":[]}
@@ -0,0 +1,18 @@
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") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
7
+ get: () => from[key],
8
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
9
+ });
10
+ return to;
11
+ },
12
+ __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
13
+ var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
14
+ value: !0
15
+ }), mod);
16
+ var index_exports = {};
17
+ module.exports = __toCommonJS(index_exports);
18
+ __reExport(index_exports, require("./Separator.cjs"), module.exports);
@@ -0,0 +1,21 @@
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") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
9
+ get: () => from[key],
10
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
11
+ });
12
+ return to;
13
+ },
14
+ __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
15
+ var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
16
+ value: !0
17
+ }), mod);
18
+ var index_exports = {};
19
+ module.exports = __toCommonJS(index_exports);
20
+ __reExport(index_exports, require("./Separator.native.js"), module.exports);
21
+ //# sourceMappingURL=index.native.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","index_exports","module","exports"],"sources":["../../src/index.ts"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;EAAAC,KAAA;AAAA,IAAAH,GAAA;AAAA,IAAAI,aAAA;AAAAC,MAAA,CAAAC,OAAA,GAAAP,YAAc,CAAAK,aAAA","ignoreList":[]}
@@ -0,0 +1,39 @@
1
+ import { isWeb } from "@hanzo/gui-constants";
2
+ import { View, styled } from "@hanzo/gui-core";
3
+ const Separator = styled(View, {
4
+ name: "Separator",
5
+ variants: {
6
+ unstyled: {
7
+ false: {
8
+ borderColor: "$backgroundFocus",
9
+ flexShrink: 0,
10
+ borderWidth: 0,
11
+ flex: 1,
12
+ height: 0,
13
+ maxHeight: 0,
14
+ borderBottomWidth: 1,
15
+ y: -0.5
16
+ }
17
+ },
18
+ vertical: {
19
+ true: {
20
+ y: 0,
21
+ x: -0.5,
22
+ height: isWeb ? "initial" : "auto",
23
+ // maxHeight auto WILL BE passed to style attribute, but for some reason not used?
24
+ // almost seems like a react or browser bug, but for now `initial` works
25
+ // also, it doesn't happen for `height`, but for consistency using the same values
26
+ maxHeight: isWeb ? "initial" : "auto",
27
+ width: 0,
28
+ maxWidth: 0,
29
+ borderBottomWidth: 0,
30
+ borderRightWidth: 1
31
+ }
32
+ }
33
+ },
34
+ defaultVariants: {
35
+ unstyled: process.env.HANZO_GUI_HEADLESS === "1"
36
+ }
37
+ });
38
+ export { Separator };
39
+ //# sourceMappingURL=Separator.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["isWeb","View","styled","Separator","name","variants","unstyled","false","borderColor","flexShrink","borderWidth","flex","height","maxHeight","borderBottomWidth","y","vertical","true","x","width","maxWidth","borderRightWidth","defaultVariants","process","env","HANZO_GUI_HEADLESS"],"sources":["../../src/Separator.tsx"],"sourcesContent":[null],"mappings":"AAAA,SAASA,KAAA,QAAa;AACtB,SAASC,IAAA,EAAMC,MAAA,QAAc;AAEtB,MAAMC,SAAA,GAAYD,MAAA,CAAOD,IAAA,EAAM;EACpCG,IAAA,EAAM;EAENC,QAAA,EAAU;IACRC,QAAA,EAAU;MACRC,KAAA,EAAO;QACLC,WAAA,EAAa;QACbC,UAAA,EAAY;QACZC,WAAA,EAAa;QACbC,IAAA,EAAM;QACNC,MAAA,EAAQ;QACRC,SAAA,EAAW;QACXC,iBAAA,EAAmB;QACnBC,CAAA,EAAG;MACL;IACF;IAEAC,QAAA,EAAU;MACRC,IAAA,EAAM;QACJF,CAAA,EAAG;QACHG,CAAA,EAAG;QACHN,MAAA,EAAQZ,KAAA,GAAQ,YAAY;QAAA;QAAA;QAAA;QAI5Ba,SAAA,EAAWb,KAAA,GAAQ,YAAY;QAC/BmB,KAAA,EAAO;QACPC,QAAA,EAAU;QACVN,iBAAA,EAAmB;QACnBO,gBAAA,EAAkB;MACpB;IACF;EACF;EAEAC,eAAA,EAAiB;IACfhB,QAAA,EAAUiB,OAAA,CAAQC,GAAA,CAAIC,kBAAA,KAAuB;EAC/C;AACF,CAAC","ignoreList":[]}
@@ -0,0 +1,39 @@
1
+ import { isWeb } from "@hanzo/gui-constants";
2
+ import { View, styled } from "@hanzo/gui-core";
3
+ var Separator = styled(View, {
4
+ name: "Separator",
5
+ variants: {
6
+ unstyled: {
7
+ false: {
8
+ borderColor: "$backgroundFocus",
9
+ flexShrink: 0,
10
+ borderWidth: 0,
11
+ flex: 1,
12
+ height: 0,
13
+ maxHeight: 0,
14
+ borderBottomWidth: 1,
15
+ y: -0.5
16
+ }
17
+ },
18
+ vertical: {
19
+ true: {
20
+ y: 0,
21
+ x: -0.5,
22
+ height: isWeb ? "initial" : "auto",
23
+ // maxHeight auto WILL BE passed to style attribute, but for some reason not used?
24
+ // almost seems like a react or browser bug, but for now `initial` works
25
+ // also, it doesn't happen for `height`, but for consistency using the same values
26
+ maxHeight: isWeb ? "initial" : "auto",
27
+ width: 0,
28
+ maxWidth: 0,
29
+ borderBottomWidth: 0,
30
+ borderRightWidth: 1
31
+ }
32
+ }
33
+ },
34
+ defaultVariants: {
35
+ unstyled: process.env.HANZO_GUI_HEADLESS === "1"
36
+ }
37
+ });
38
+ export { Separator };
39
+ //# sourceMappingURL=Separator.native.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["isWeb","View","styled","Separator","name","variants","unstyled","false","borderColor","flexShrink","borderWidth","flex","height","maxHeight","borderBottomWidth","y","vertical","true","x","width","maxWidth","borderRightWidth","defaultVariants","process","env","HANZO_GUI_HEADLESS"],"sources":["../../src/Separator.tsx"],"sourcesContent":[null],"mappings":"AAAA,SAASA,KAAA,QAAa;AACtB,SAASC,IAAA,EAAMC,MAAA,QAAc;AAEtB,IAAAC,SAAM,GAAAD,MAAY,CAAAD,IAAO;EAC9BG,IAAA,EAAM;EAENC,QAAA,EAAU;IACRC,QAAA,EAAU;MACRC,KAAA,EAAO;QACLC,WAAA,EAAa;QACbC,UAAA,EAAY;QACZC,WAAA,EAAa;QACbC,IAAA,EAAM;QACNC,MAAA,EAAQ;QACRC,SAAA,EAAW;QACXC,iBAAA,EAAmB;QACnBC,CAAA,EAAG;MACL;IACF;IAEAC,QAAA,EAAU;MACRC,IAAA,EAAM;QACJF,CAAA,EAAG;QACHG,CAAA,EAAG;QACHN,MAAA,EAAQZ,KAAA,GAAQ,YAAY;QAAA;QAAA;QAAA;QAI5Ba,SAAA,EAAWb,KAAA,GAAQ,YAAY;QAC/BmB,KAAA,EAAO;QACPC,QAAA,EAAU;QACVN,iBAAA,EAAmB;QACnBO,gBAAA,EAAkB;MACpB;IACF;EACF;EAEAC,eAAA,EAAiB;IACfhB,QAAA,EAAUiB,OAAA,CAAQC,GAAA,CAAIC,kBAAA,KAAuB;EAC/C;AACF,CAAC","ignoreList":[]}
@@ -0,0 +1,2 @@
1
+ export * from "./Separator.mjs";
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":[],"sources":["../../src/index.ts"],"sourcesContent":[null],"mappings":"AAAA,cAAc","ignoreList":[]}
@@ -0,0 +1,2 @@
1
+ export * from "./Separator.mjs";
2
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":[],"sources":["../../src/index.ts"],"sourcesContent":[null],"mappings":"AAAA,cAAc","ignoreList":[]}
@@ -0,0 +1,2 @@
1
+ export * from "./Separator.native.js";
2
+ //# sourceMappingURL=index.native.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":[],"sources":["../../src/index.ts"],"sourcesContent":[null],"mappings":"AAAA,cAAc","ignoreList":[]}
@@ -0,0 +1,39 @@
1
+ import { isWeb } from "@hanzo/gui-constants";
2
+ import { View, styled } from "@hanzo/gui-core";
3
+ const Separator = styled(View, {
4
+ name: "Separator",
5
+ variants: {
6
+ unstyled: {
7
+ false: {
8
+ borderColor: "$backgroundFocus",
9
+ flexShrink: 0,
10
+ borderWidth: 0,
11
+ flex: 1,
12
+ height: 0,
13
+ maxHeight: 0,
14
+ borderBottomWidth: 1,
15
+ y: -0.5
16
+ }
17
+ },
18
+ vertical: {
19
+ true: {
20
+ y: 0,
21
+ x: -0.5,
22
+ height: isWeb ? "initial" : "auto",
23
+ // maxHeight auto WILL BE passed to style attribute, but for some reason not used?
24
+ // almost seems like a react or browser bug, but for now `initial` works
25
+ // also, it doesn't happen for `height`, but for consistency using the same values
26
+ maxHeight: isWeb ? "initial" : "auto",
27
+ width: 0,
28
+ maxWidth: 0,
29
+ borderBottomWidth: 0,
30
+ borderRightWidth: 1
31
+ }
32
+ }
33
+ },
34
+ defaultVariants: {
35
+ unstyled: process.env.HANZO_GUI_HEADLESS === "1"
36
+ }
37
+ });
38
+ export { Separator };
39
+ //# sourceMappingURL=Separator.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["isWeb","View","styled","Separator","name","variants","unstyled","false","borderColor","flexShrink","borderWidth","flex","height","maxHeight","borderBottomWidth","y","vertical","true","x","width","maxWidth","borderRightWidth","defaultVariants","process","env","HANZO_GUI_HEADLESS"],"sources":["../../src/Separator.tsx"],"sourcesContent":[null],"mappings":"AAAA,SAASA,KAAA,QAAa;AACtB,SAASC,IAAA,EAAMC,MAAA,QAAc;AAEtB,MAAMC,SAAA,GAAYD,MAAA,CAAOD,IAAA,EAAM;EACpCG,IAAA,EAAM;EAENC,QAAA,EAAU;IACRC,QAAA,EAAU;MACRC,KAAA,EAAO;QACLC,WAAA,EAAa;QACbC,UAAA,EAAY;QACZC,WAAA,EAAa;QACbC,IAAA,EAAM;QACNC,MAAA,EAAQ;QACRC,SAAA,EAAW;QACXC,iBAAA,EAAmB;QACnBC,CAAA,EAAG;MACL;IACF;IAEAC,QAAA,EAAU;MACRC,IAAA,EAAM;QACJF,CAAA,EAAG;QACHG,CAAA,EAAG;QACHN,MAAA,EAAQZ,KAAA,GAAQ,YAAY;QAAA;QAAA;QAAA;QAI5Ba,SAAA,EAAWb,KAAA,GAAQ,YAAY;QAC/BmB,KAAA,EAAO;QACPC,QAAA,EAAU;QACVN,iBAAA,EAAmB;QACnBO,gBAAA,EAAkB;MACpB;IACF;EACF;EAEAC,eAAA,EAAiB;IACfhB,QAAA,EAAUiB,OAAA,CAAQC,GAAA,CAAIC,kBAAA,KAAuB;EAC/C;AACF,CAAC","ignoreList":[]}
@@ -0,0 +1,65 @@
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: !0
11
+ });
12
+ },
13
+ __copyProps = (to, from, except, desc) => {
14
+ if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
15
+ get: () => from[key],
16
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
17
+ });
18
+ return to;
19
+ };
20
+ var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
21
+ value: !0
22
+ }), mod);
23
+ var Separator_exports = {};
24
+ __export(Separator_exports, {
25
+ Separator: () => Separator
26
+ });
27
+ module.exports = __toCommonJS(Separator_exports);
28
+ var import_gui_constants = require("@hanzo/gui-constants"),
29
+ import_gui_core = require("@hanzo/gui-core"),
30
+ Separator = (0, import_gui_core.styled)(import_gui_core.View, {
31
+ name: "Separator",
32
+ variants: {
33
+ unstyled: {
34
+ false: {
35
+ borderColor: "$backgroundFocus",
36
+ flexShrink: 0,
37
+ borderWidth: 0,
38
+ flex: 1,
39
+ height: 0,
40
+ maxHeight: 0,
41
+ borderBottomWidth: 1,
42
+ y: -0.5
43
+ }
44
+ },
45
+ vertical: {
46
+ true: {
47
+ y: 0,
48
+ x: -0.5,
49
+ height: import_gui_constants.isWeb ? "initial" : "auto",
50
+ // maxHeight auto WILL BE passed to style attribute, but for some reason not used?
51
+ // almost seems like a react or browser bug, but for now `initial` works
52
+ // also, it doesn't happen for `height`, but for consistency using the same values
53
+ maxHeight: import_gui_constants.isWeb ? "initial" : "auto",
54
+ width: 0,
55
+ maxWidth: 0,
56
+ borderBottomWidth: 0,
57
+ borderRightWidth: 1
58
+ }
59
+ }
60
+ },
61
+ defaultVariants: {
62
+ unstyled: process.env.HANZO_GUI_HEADLESS === "1"
63
+ }
64
+ });
65
+ //# sourceMappingURL=Separator.native.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["__defProp","Object","defineProperty","__getOwnPropDesc","getOwnPropertyDescriptor","__getOwnPropNames","getOwnPropertyNames","__hasOwnProp","prototype","hasOwnProperty","__export","target","all","name","get","enumerable","__copyProps","to","from","except","desc","key","call","__toCommonJS","mod","value","Separator_exports","Separator","module","exports","import_gui_constants","require","import_gui_core","styled","View","variants","unstyled","false","borderColor","flexShrink","borderWidth","flex","height","maxHeight","borderBottomWidth","y","vertical","true"],"sources":["../../src/Separator.tsx"],"sourcesContent":[null],"mappings":"AAAA,YAAS;;AACT,IAAAA,SAAS,GAAMC,MAAA,CAAAC,cAAc;AAEtB,IAAAC,gBAAkB,GAAAF,MAAO,CAAAG,wBAAM;AAAA,IACpCC,iBAAM,GAAAJ,MAAA,CAAAK,mBAAA;AAAA,IAENC,YAAU,GAAAN,MAAA,CAAAO,SAAA,CAAAC,cAAA;AAAA,IACRC,QAAA,GAAUA,CAAAC,MAAA,EAAAC,GAAA;IAAA,KACR,IAAAC,IAAO,IAAAD,GAAA,EAAAZ,SACL,CAAAW,MAAA,EAAaE,IAAA;MAAAC,GAAA,EAAAF,GAAA,CAAAC,IAAA;MAAAE,UAAA;IAAA;EAAA;EAAAC,WACb,GAAAA,CAAAC,EAAY,EAAAC,IAAA,EAAAC,MAAA,EAAAC,IAAA;IAAA,IAAAF,IACZ,WAAaA,IAAA,uBAAAA,IAAA,qBACb,IAAAG,GAAM,IAAAhB,iBAAA,CAAAa,IAAA,IAAAX,YACE,CAAAe,IAAA,CAAAL,EAAA,EAAAI,GAAA,KAAAA,GAAA,KAAAF,MAAA,IAAAnB,SAAA,CAAAiB,EAAA,EAAAI,GAAA;MAAAP,GAAA,EAAAA,CAAA,KAAAI,IAAA,CAAAG,GAAA;MAAAN,UAAA,IAAAK,IAAA,GAAAjB,gBAAA,CAAAe,IAAA,EAAAG,GAAA,MAAAD,IAAA,CAAAL;IAAA;IAAA,OACRE,EAAA;EAAW;AACQ,IAAAM,YAChB,GAAAC,GAAA,IAAAR,WAAA,CAAAhB,SAAA;EAAAyB,KAAA;AAAA,IAAAD,GAAA;AAAA,IAAAE,iBACL;AAAAhB,QACF,CAAAgB,iBAAA;EAAAC,SAEA,EAAAA,CAAA,KAAUA;AAAA;AACFC,MAAA,CAAAC,OACD,GAAAN,YAAA,CAAAG,iBAAA;AAAA,IAAAI,oBACA,GAAAC,OAAA;EAAAC,eAAA,GAAAD,OAAA;EAAAJ,SAAA,OAAAK,eAAA,CAAAC,MAAA,EAAAD,eAAA,CAAAE,IAAA;IAAArB,IAAA,EACH,WAAQ;IAAoBsB,QAAA;MAAAC,QAAA;QAAAC,KAAA;UAI5BC,WAAW,oBAAoB;UAC/BC,UAAO;UACPC,WAAU;UACVC,IAAA;UACAC,MAAA;UACFC,SAAA;UACFC,iBAAA;UACFC,CAAA;QAEA;MACE;MACFC,QAAA;QACDC,IAAA","ignoreList":[]}
@@ -0,0 +1,2 @@
1
+ export * from "./Separator.mjs";
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":[],"sources":["../../src/index.ts"],"sourcesContent":[null],"mappings":"AAAA,cAAc","ignoreList":[]}
@@ -0,0 +1,2 @@
1
+ export * from "./Separator.mjs";
2
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":[],"sources":["../../src/index.ts"],"sourcesContent":[null],"mappings":"AAAA,cAAc","ignoreList":[]}
@@ -0,0 +1,21 @@
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") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
9
+ get: () => from[key],
10
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
11
+ });
12
+ return to;
13
+ },
14
+ __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
15
+ var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
16
+ value: !0
17
+ }), mod);
18
+ var index_exports = {};
19
+ module.exports = __toCommonJS(index_exports);
20
+ __reExport(index_exports, require("./Separator.native.js"), module.exports);
21
+ //# sourceMappingURL=index.native.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":[],"sources":["../../src/index.ts"],"sourcesContent":[null],"mappings":"AAAA","ignoreList":[]}
package/package.json ADDED
@@ -0,0 +1,50 @@
1
+ {
2
+ "name": "@hanzogui/separator",
3
+ "version": "2.0.0",
4
+ "source": "src/index.ts",
5
+ "files": [
6
+ "src",
7
+ "types",
8
+ "dist"
9
+ ],
10
+ "type": "module",
11
+ "sideEffects": [
12
+ "*.css"
13
+ ],
14
+ "main": "dist/cjs",
15
+ "module": "dist/esm",
16
+ "types": "./types/index.d.ts",
17
+ "exports": {
18
+ "./package.json": "./package.json",
19
+ ".": {
20
+ "types": "./types/index.d.ts",
21
+ "react-native": "./dist/esm/index.native.js",
22
+ "browser": "./dist/esm/index.mjs",
23
+ "module": "./dist/esm/index.mjs",
24
+ "import": "./dist/esm/index.mjs",
25
+ "require": "./dist/cjs/index.cjs",
26
+ "default": "./dist/esm/index.mjs"
27
+ }
28
+ },
29
+ "publishConfig": {
30
+ "access": "public"
31
+ },
32
+ "scripts": {
33
+ "build": "hanzo-gui-build",
34
+ "watch": "hanzo-gui-build --watch",
35
+ "clean": "hanzo-gui-build clean",
36
+ "clean:build": "hanzo-gui-build clean:build"
37
+ },
38
+ "dependencies": {
39
+ "@hanzogui/constants": "2.0.0-rc.29",
40
+ "@hanzogui/core": "2.0.0-rc.29"
41
+ },
42
+ "devDependencies": {
43
+ "@hanzogui/build": "2.0.0-rc.29",
44
+ "react": ">=19"
45
+ },
46
+ "peerDependencies": {
47
+ "react": ">=19"
48
+ },
49
+ "module:jsx": "dist/jsx"
50
+ }
@@ -0,0 +1,41 @@
1
+ import { isWeb } from '@hanzogui/constants'
2
+ import { View, styled } from '@hanzogui/core'
3
+
4
+ export const Separator = styled(View, {
5
+ name: 'Separator',
6
+
7
+ 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
+ vertical: {
22
+ true: {
23
+ y: 0,
24
+ x: -0.5,
25
+ height: isWeb ? 'initial' : 'auto',
26
+ // maxHeight auto WILL BE passed to style attribute, but for some reason not used?
27
+ // almost seems like a react or browser bug, but for now `initial` works
28
+ // also, it doesn't happen for `height`, but for consistency using the same values
29
+ maxHeight: isWeb ? 'initial' : 'auto',
30
+ width: 0,
31
+ maxWidth: 0,
32
+ borderBottomWidth: 0,
33
+ borderRightWidth: 1,
34
+ },
35
+ },
36
+ } as const,
37
+
38
+ defaultVariants: {
39
+ unstyled: process.env.HANZO_GUI_HEADLESS === '1',
40
+ },
41
+ })
package/src/index.ts ADDED
@@ -0,0 +1 @@
1
+ export * from './Separator'
@@ -0,0 +1,5 @@
1
+ export declare const Separator: import("@gui/core").GuiComponent<import("@gui/core").TamaDefer, import("@gui/core").GuiElement, import("@gui/core").RNGuiViewNonStyleProps, import("@gui/core").StackStyleBase, {
2
+ unstyled?: boolean | undefined;
3
+ vertical?: boolean | undefined;
4
+ }, import("@gui/core").StaticConfigPublic>;
5
+ //# sourceMappingURL=Separator.d.ts.map
@@ -0,0 +1,2 @@
1
+ export * from './Separator';
2
+ //# sourceMappingURL=index.d.ts.map