@hanzogui/separator 8.3.1 → 8.3.3

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.
@@ -0,0 +1,44 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Separator = void 0;
4
+ const constants_1 = require("@hanzogui/constants");
5
+ const core_1 = require("@hanzogui/core");
6
+ exports.Separator = (0, core_1.styled)(core_1.View, {
7
+ name: 'Separator',
8
+ variants: {
9
+ unstyled: {
10
+ false: {
11
+ // A separator IS a border, so it takes the border token. It used to
12
+ // take `$backgroundFocus` — the colour a surface goes when focused —
13
+ // which is why every consumer that cared re-declared it downstream.
14
+ borderColor: '$borderColor',
15
+ flexShrink: 0,
16
+ borderWidth: 0,
17
+ flex: 1,
18
+ height: 0,
19
+ maxHeight: 0,
20
+ borderBottomWidth: 1,
21
+ y: -0.5,
22
+ },
23
+ },
24
+ vertical: {
25
+ true: {
26
+ y: 0,
27
+ x: -0.5,
28
+ height: constants_1.isWeb ? 'initial' : 'auto',
29
+ // maxHeight auto WILL BE passed to style attribute, but for some reason not used?
30
+ // almost seems like a react or browser bug, but for now `initial` works
31
+ // also, it doesn't happen for `height`, but for consistency using the same values
32
+ maxHeight: constants_1.isWeb ? 'initial' : 'auto',
33
+ width: 0,
34
+ maxWidth: 0,
35
+ borderBottomWidth: 0,
36
+ borderRightWidth: 1,
37
+ },
38
+ },
39
+ },
40
+ defaultVariants: {
41
+ unstyled: process.env.GUI_HEADLESS === '1',
42
+ },
43
+ });
44
+ //# sourceMappingURL=Separator.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Separator.js","sourceRoot":"","sources":["../../src/Separator.tsx"],"names":[],"mappings":";;;AAAA,mDAA2C;AAC3C,yCAA6C;AAEhC,QAAA,SAAS,GAAG,IAAA,aAAM,EAAC,WAAI,EAAE;IACpC,IAAI,EAAE,WAAW;IAEjB,QAAQ,EAAE;QACR,QAAQ,EAAE;YACR,KAAK,EAAE;gBACL,oEAAoE;gBACpE,qEAAqE;gBACrE,oEAAoE;gBACpE,WAAW,EAAE,cAAc;gBAC3B,UAAU,EAAE,CAAC;gBACb,WAAW,EAAE,CAAC;gBACd,IAAI,EAAE,CAAC;gBACP,MAAM,EAAE,CAAC;gBACT,SAAS,EAAE,CAAC;gBACZ,iBAAiB,EAAE,CAAC;gBACpB,CAAC,EAAE,CAAC,GAAG;aACR;SACF;QAED,QAAQ,EAAE;YACR,IAAI,EAAE;gBACJ,CAAC,EAAE,CAAC;gBACJ,CAAC,EAAE,CAAC,GAAG;gBACP,MAAM,EAAE,iBAAK,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,MAAM;gBAClC,kFAAkF;gBAClF,wEAAwE;gBACxE,kFAAkF;gBAClF,SAAS,EAAE,iBAAK,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,MAAM;gBACrC,KAAK,EAAE,CAAC;gBACR,QAAQ,EAAE,CAAC;gBACX,iBAAiB,EAAE,CAAC;gBACpB,gBAAgB,EAAE,CAAC;aACpB;SACF;KACO;IAEV,eAAe,EAAE;QACf,QAAQ,EAAE,OAAO,CAAC,GAAG,CAAC,YAAY,KAAK,GAAG;KAC3C;CACF,CAAC,CAAA"}
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ tslib_1.__exportStar(require("./Separator.js"), exports);
5
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;AAAA,yDAA+B"}
@@ -0,0 +1 @@
1
+ { "type": "commonjs" }
@@ -0,0 +1,41 @@
1
+ import { isWeb } from '@hanzogui/constants';
2
+ import { View, styled } from '@hanzogui/core';
3
+ export const Separator = styled(View, {
4
+ name: 'Separator',
5
+ variants: {
6
+ unstyled: {
7
+ false: {
8
+ // A separator IS a border, so it takes the border token. It used to
9
+ // take `$backgroundFocus` — the colour a surface goes when focused —
10
+ // which is why every consumer that cared re-declared it downstream.
11
+ borderColor: '$borderColor',
12
+ flexShrink: 0,
13
+ borderWidth: 0,
14
+ flex: 1,
15
+ height: 0,
16
+ maxHeight: 0,
17
+ borderBottomWidth: 1,
18
+ y: -0.5,
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
+ },
37
+ defaultVariants: {
38
+ unstyled: process.env.GUI_HEADLESS === '1',
39
+ },
40
+ });
41
+ //# sourceMappingURL=Separator.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Separator.js","sourceRoot":"","sources":["../../src/Separator.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAA;AAC3C,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAA;AAE7C,MAAM,CAAC,MAAM,SAAS,GAAG,MAAM,CAAC,IAAI,EAAE;IACpC,IAAI,EAAE,WAAW;IAEjB,QAAQ,EAAE;QACR,QAAQ,EAAE;YACR,KAAK,EAAE;gBACL,oEAAoE;gBACpE,qEAAqE;gBACrE,oEAAoE;gBACpE,WAAW,EAAE,cAAc;gBAC3B,UAAU,EAAE,CAAC;gBACb,WAAW,EAAE,CAAC;gBACd,IAAI,EAAE,CAAC;gBACP,MAAM,EAAE,CAAC;gBACT,SAAS,EAAE,CAAC;gBACZ,iBAAiB,EAAE,CAAC;gBACpB,CAAC,EAAE,CAAC,GAAG;aACR;SACF;QAED,QAAQ,EAAE;YACR,IAAI,EAAE;gBACJ,CAAC,EAAE,CAAC;gBACJ,CAAC,EAAE,CAAC,GAAG;gBACP,MAAM,EAAE,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,MAAM;gBAClC,kFAAkF;gBAClF,wEAAwE;gBACxE,kFAAkF;gBAClF,SAAS,EAAE,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,MAAM;gBACrC,KAAK,EAAE,CAAC;gBACR,QAAQ,EAAE,CAAC;gBACX,iBAAiB,EAAE,CAAC;gBACpB,gBAAgB,EAAE,CAAC;aACpB;SACF;KACO;IAEV,eAAe,EAAE;QACf,QAAQ,EAAE,OAAO,CAAC,GAAG,CAAC,YAAY,KAAK,GAAG;KAC3C;CACF,CAAC,CAAA"}
package/dist/esm/index.js CHANGED
@@ -1,2 +1,2 @@
1
- export * from "./Separator.mjs";
2
- //# sourceMappingURL=index.js.map
1
+ export * from './Separator.js';
2
+ //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"names":[],"sources":["../../src/index.ts"],"sourcesContent":[null],"mappings":"AAAA,cAAc","ignoreList":[]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAiB,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hanzogui/separator",
3
- "version": "8.3.1",
3
+ "version": "8.3.3",
4
4
  "source": "src/index.ts",
5
5
  "files": [
6
6
  "src",
@@ -9,41 +9,46 @@
9
9
  ],
10
10
  "type": "module",
11
11
  "sideEffects": false,
12
- "main": "dist/cjs",
13
- "module": "dist/esm",
12
+ "main": "./dist/cjs/index.js",
13
+ "module": "./dist/esm/index.js",
14
14
  "types": "./types/index.d.ts",
15
15
  "exports": {
16
16
  "./package.json": "./package.json",
17
17
  ".": {
18
18
  "types": "./types/index.d.ts",
19
- "react-native": "./dist/esm/index.native.js",
20
- "browser": "./dist/esm/index.mjs",
21
- "module": "./dist/esm/index.mjs",
22
- "import": "./dist/esm/index.mjs",
23
- "require": "./dist/cjs/index.cjs",
24
- "default": "./dist/esm/index.mjs"
19
+ "react-native": "./dist/esm/index.js",
20
+ "browser": "./dist/esm/index.js",
21
+ "module": "./dist/esm/index.js",
22
+ "import": "./dist/esm/index.js",
23
+ "require": "./dist/cjs/index.js",
24
+ "default": "./dist/esm/index.js"
25
25
  }
26
26
  },
27
27
  "publishConfig": {
28
28
  "access": "public"
29
29
  },
30
30
  "scripts": {
31
- "build": "hanzogui-build",
31
+ "build": "hanzogui-build --skip-native",
32
32
  "watch": "hanzogui-build --watch",
33
33
  "clean": "hanzogui-build clean",
34
34
  "clean:build": "hanzogui-build clean:build"
35
35
  },
36
36
  "dependencies": {
37
- "@hanzogui/constants": "8.3.1",
38
- "@hanzogui/core": "8.3.1",
39
- "@hanzogui/web": "8.3.1"
37
+ "@hanzogui/constants": "8.3.3",
38
+ "@hanzogui/core": "8.3.3",
39
+ "@hanzogui/web": "8.3.3"
40
40
  },
41
41
  "devDependencies": {
42
- "@hanzogui/build": "8.3.1",
43
- "react": ">=19"
42
+ "@hanzogui/build": "8.3.3",
43
+ "react": "19.2.8"
44
44
  },
45
45
  "peerDependencies": {
46
- "react": ">=19"
46
+ "react": ">=19.2.8"
47
47
  },
48
- "module:jsx": "dist/jsx"
48
+ "module:jsx": "dist/jsx",
49
+ "repository": {
50
+ "type": "git",
51
+ "url": "git+https://github.com/hanzoai/gui.git",
52
+ "directory": "pkgs/ui/separator"
53
+ }
49
54
  }
package/src/index.ts CHANGED
@@ -1 +1 @@
1
- export * from './Separator'
1
+ export * from './Separator.tsx'
package/types/index.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export * from './Separator';
1
+ export * from './Separator.tsx';
2
2
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAA"}
@@ -1,67 +0,0 @@
1
- var __defProp = Object.defineProperty;
2
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
- var __getOwnPropNames = Object.getOwnPropertyNames;
4
- var __hasOwnProp = Object.prototype.hasOwnProperty;
5
- var __export = (target, all) => {
6
- for (var name in all) __defProp(target, name, {
7
- get: all[name],
8
- enumerable: true
9
- });
10
- };
11
- var __copyProps = (to, from, except, desc) => {
12
- if (from && typeof from === "object" || typeof from === "function") {
13
- for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
14
- get: () => from[key],
15
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
16
- });
17
- }
18
- return to;
19
- };
20
- var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
21
- value: true
22
- }), mod);
23
- var Separator_exports = {};
24
- __export(Separator_exports, {
25
- Separator: () => Separator
26
- });
27
- module.exports = __toCommonJS(Separator_exports);
28
- var import_constants = require("@hanzogui/constants");
29
- var import_core = require("@hanzogui/core");
30
- const Separator = (0, import_core.styled)(import_core.View, {
31
- name: "Separator",
32
- variants: {
33
- unstyled: {
34
- false: {
35
- // A separator IS a border, so it takes the border token. It used to
36
- // take `$backgroundFocus` — the colour a surface goes when focused —
37
- // which is why every consumer that cared re-declared it downstream.
38
- borderColor: "$borderColor",
39
- flexShrink: 0,
40
- borderWidth: 0,
41
- flex: 1,
42
- height: 0,
43
- maxHeight: 0,
44
- borderBottomWidth: 1,
45
- y: -0.5
46
- }
47
- },
48
- vertical: {
49
- true: {
50
- y: 0,
51
- x: -0.5,
52
- height: import_constants.isWeb ? "initial" : "auto",
53
- // maxHeight auto WILL BE passed to style attribute, but for some reason not used?
54
- // almost seems like a react or browser bug, but for now `initial` works
55
- // also, it doesn't happen for `height`, but for consistency using the same values
56
- maxHeight: import_constants.isWeb ? "initial" : "auto",
57
- width: 0,
58
- maxWidth: 0,
59
- borderBottomWidth: 0,
60
- borderRightWidth: 1
61
- }
62
- }
63
- },
64
- defaultVariants: {
65
- unstyled: process.env.GUI_HEADLESS === "1"
66
- }
67
- });
@@ -1,70 +0,0 @@
1
- "use strict";
2
-
3
- var __defProp = Object.defineProperty;
4
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
- var __getOwnPropNames = Object.getOwnPropertyNames;
6
- var __hasOwnProp = Object.prototype.hasOwnProperty;
7
- var __export = (target, all) => {
8
- for (var name in all) __defProp(target, name, {
9
- get: all[name],
10
- enumerable: true
11
- });
12
- };
13
- var __copyProps = (to, from, except, desc) => {
14
- if (from && typeof from === "object" || typeof from === "function") {
15
- for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
16
- get: () => from[key],
17
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
18
- });
19
- }
20
- return to;
21
- };
22
- var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
23
- value: true
24
- }), mod);
25
- var Separator_exports = {};
26
- __export(Separator_exports, {
27
- Separator: () => Separator
28
- });
29
- module.exports = __toCommonJS(Separator_exports);
30
- var import_constants = require("@hanzogui/constants");
31
- var import_core = require("@hanzogui/core");
32
- var Separator = (0, import_core.styled)(import_core.View, {
33
- name: "Separator",
34
- variants: {
35
- unstyled: {
36
- false: {
37
- // A separator IS a border, so it takes the border token. It used to
38
- // take `$backgroundFocus` — the colour a surface goes when focused —
39
- // which is why every consumer that cared re-declared it downstream.
40
- borderColor: "$borderColor",
41
- flexShrink: 0,
42
- borderWidth: 0,
43
- flex: 1,
44
- height: 0,
45
- maxHeight: 0,
46
- borderBottomWidth: 1,
47
- y: -0.5
48
- }
49
- },
50
- vertical: {
51
- true: {
52
- y: 0,
53
- x: -0.5,
54
- height: import_constants.isWeb ? "initial" : "auto",
55
- // maxHeight auto WILL BE passed to style attribute, but for some reason not used?
56
- // almost seems like a react or browser bug, but for now `initial` works
57
- // also, it doesn't happen for `height`, but for consistency using the same values
58
- maxHeight: import_constants.isWeb ? "initial" : "auto",
59
- width: 0,
60
- maxWidth: 0,
61
- borderBottomWidth: 0,
62
- borderRightWidth: 1
63
- }
64
- }
65
- },
66
- defaultVariants: {
67
- unstyled: process.env.GUI_HEADLESS === "1"
68
- }
69
- });
70
- //# sourceMappingURL=Separator.native.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","Separator_exports","__export","Separator","module","exports","import_constants","require","import_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","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;AACtB,IAAAK,gBAA6B,GAAAC,OAAA;AAEtB,IAAAC,WAAM,GAAAD,OAAY,iBAAO;AAAM,IACpCJ,SAAM,OAAAK,WAAA,CAAAC,MAAA,EAAAD,WAAA,CAAAE,IAAA;EAENC,IAAA,aAAU;EAAAC,QACR;IAAUC,QACR,EAAO;MAAAC,KAAA;QAAA;QAAA;QAIL;QACAC,WAAA,EAAY;QACZC,UAAA,GAAa;QACbC,WAAM;QACNC,IAAA;QACAC,MAAA;QACAC,SAAA;QACAC,iBAAG;QACLC,CAAA;MACF;IAEA;IAAUC,QACF;MAAAC,IACJ,EAAG;QACHF,CAAA,EAAG;QACHG,CAAA;QAA4BN,MAAA,EAAAb,gBAAA,CAAAoB,KAAA;QAAA;QAAA;QAI5B;QACAN,SAAO,EAAAd,gBAAA,CAAAoB,KAAA;QACPC,KAAA;QACAC,QAAA;QACAP,iBAAA,EAAkB;QACpBQ,gBAAA;MACF;IACF;EAEA;EAAiBC,eACL;IACZjB,QAAA,EAAAkB,OAAA,CAAAC,GAAA,CAAAC,YAAA;EACD","ignoreList":[]}
@@ -1,20 +0,0 @@
1
- var __defProp = Object.defineProperty;
2
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
- var __getOwnPropNames = Object.getOwnPropertyNames;
4
- var __hasOwnProp = Object.prototype.hasOwnProperty;
5
- var __copyProps = (to, from, except, desc) => {
6
- if (from && typeof from === "object" || typeof from === "function") {
7
- for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
8
- get: () => from[key],
9
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
10
- });
11
- }
12
- return to;
13
- };
14
- var __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);
18
- var index_exports = {};
19
- module.exports = __toCommonJS(index_exports);
20
- __reExport(index_exports, require("./Separator.cjs"), module.exports);
@@ -1,23 +0,0 @@
1
- "use strict";
2
-
3
- var __defProp = Object.defineProperty;
4
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
- var __getOwnPropNames = Object.getOwnPropertyNames;
6
- var __hasOwnProp = Object.prototype.hasOwnProperty;
7
- var __copyProps = (to, from, except, desc) => {
8
- if (from && typeof from === "object" || typeof from === "function") {
9
- for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
10
- get: () => from[key],
11
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
12
- });
13
- }
14
- return to;
15
- };
16
- var __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);
20
- var index_exports = {};
21
- module.exports = __toCommonJS(index_exports);
22
- __reExport(index_exports, require("./Separator.native.js"), module.exports);
23
- //# sourceMappingURL=index.native.js.map
@@ -1 +0,0 @@
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":[]}
@@ -1,42 +0,0 @@
1
- import { isWeb } from "@hanzogui/constants";
2
- import { View, styled } from "@hanzogui/core";
3
- const Separator = styled(View, {
4
- name: "Separator",
5
- variants: {
6
- unstyled: {
7
- false: {
8
- // A separator IS a border, so it takes the border token. It used to
9
- // take `$backgroundFocus` — the colour a surface goes when focused —
10
- // which is why every consumer that cared re-declared it downstream.
11
- borderColor: "$borderColor",
12
- flexShrink: 0,
13
- borderWidth: 0,
14
- flex: 1,
15
- height: 0,
16
- maxHeight: 0,
17
- borderBottomWidth: 1,
18
- y: -0.5
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
- },
37
- defaultVariants: {
38
- unstyled: process.env.GUI_HEADLESS === "1"
39
- }
40
- });
41
- export { Separator };
42
- //# sourceMappingURL=Separator.mjs.map
@@ -1 +0,0 @@
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","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;QAAA;QAAA;QAAA;QAILC,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,YAAA,KAAiB;EACzC;AACF,CAAC","ignoreList":[]}
@@ -1,42 +0,0 @@
1
- import { isWeb } from "@hanzogui/constants";
2
- import { View, styled } from "@hanzogui/core";
3
- var Separator = styled(View, {
4
- name: "Separator",
5
- variants: {
6
- unstyled: {
7
- false: {
8
- // A separator IS a border, so it takes the border token. It used to
9
- // take `$backgroundFocus` — the colour a surface goes when focused —
10
- // which is why every consumer that cared re-declared it downstream.
11
- borderColor: "$borderColor",
12
- flexShrink: 0,
13
- borderWidth: 0,
14
- flex: 1,
15
- height: 0,
16
- maxHeight: 0,
17
- borderBottomWidth: 1,
18
- y: -0.5
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
- },
37
- defaultVariants: {
38
- unstyled: process.env.GUI_HEADLESS === "1"
39
- }
40
- });
41
- export { Separator };
42
- //# sourceMappingURL=Separator.native.js.map
@@ -1 +0,0 @@
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","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;QAAA;QAAA;QAAA;QAILC,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,YAAA,KAAiB;EACzC;AACF,CAAC","ignoreList":[]}
@@ -1,2 +0,0 @@
1
- export * from "./Separator.mjs";
2
- //# sourceMappingURL=index.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"names":[],"sources":["../../src/index.ts"],"sourcesContent":[null],"mappings":"AAAA,cAAc","ignoreList":[]}
@@ -1,2 +0,0 @@
1
- export * from "./Separator.native.js";
2
- //# sourceMappingURL=index.native.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":[],"sources":["../../src/index.ts"],"sourcesContent":[null],"mappings":"AAAA,cAAc","ignoreList":[]}
@@ -1,42 +0,0 @@
1
- import { isWeb } from "@hanzogui/constants";
2
- import { View, styled } from "@hanzogui/core";
3
- const Separator = styled(View, {
4
- name: "Separator",
5
- variants: {
6
- unstyled: {
7
- false: {
8
- // A separator IS a border, so it takes the border token. It used to
9
- // take `$backgroundFocus` — the colour a surface goes when focused —
10
- // which is why every consumer that cared re-declared it downstream.
11
- borderColor: "$borderColor",
12
- flexShrink: 0,
13
- borderWidth: 0,
14
- flex: 1,
15
- height: 0,
16
- maxHeight: 0,
17
- borderBottomWidth: 1,
18
- y: -0.5
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
- },
37
- defaultVariants: {
38
- unstyled: process.env.GUI_HEADLESS === "1"
39
- }
40
- });
41
- export { Separator };
42
- //# sourceMappingURL=Separator.mjs.map
@@ -1 +0,0 @@
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","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;QAAA;QAAA;QAAA;QAILC,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,YAAA,KAAiB;EACzC;AACF,CAAC","ignoreList":[]}
@@ -1,70 +0,0 @@
1
- "use strict";
2
-
3
- var __defProp = Object.defineProperty;
4
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
- var __getOwnPropNames = Object.getOwnPropertyNames;
6
- var __hasOwnProp = Object.prototype.hasOwnProperty;
7
- var __export = (target, all) => {
8
- for (var name in all) __defProp(target, name, {
9
- get: all[name],
10
- enumerable: true
11
- });
12
- };
13
- var __copyProps = (to, from, except, desc) => {
14
- if (from && typeof from === "object" || typeof from === "function") {
15
- for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
16
- get: () => from[key],
17
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
18
- });
19
- }
20
- return to;
21
- };
22
- var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
23
- value: true
24
- }), mod);
25
- var Separator_exports = {};
26
- __export(Separator_exports, {
27
- Separator: () => Separator
28
- });
29
- module.exports = __toCommonJS(Separator_exports);
30
- var import_constants = require("@hanzogui/constants");
31
- var import_core = require("@hanzogui/core");
32
- var Separator = (0, import_core.styled)(import_core.View, {
33
- name: "Separator",
34
- variants: {
35
- unstyled: {
36
- false: {
37
- // A separator IS a border, so it takes the border token. It used to
38
- // take `$backgroundFocus` — the colour a surface goes when focused —
39
- // which is why every consumer that cared re-declared it downstream.
40
- borderColor: "$borderColor",
41
- flexShrink: 0,
42
- borderWidth: 0,
43
- flex: 1,
44
- height: 0,
45
- maxHeight: 0,
46
- borderBottomWidth: 1,
47
- y: -0.5
48
- }
49
- },
50
- vertical: {
51
- true: {
52
- y: 0,
53
- x: -0.5,
54
- height: import_constants.isWeb ? "initial" : "auto",
55
- // maxHeight auto WILL BE passed to style attribute, but for some reason not used?
56
- // almost seems like a react or browser bug, but for now `initial` works
57
- // also, it doesn't happen for `height`, but for consistency using the same values
58
- maxHeight: import_constants.isWeb ? "initial" : "auto",
59
- width: 0,
60
- maxWidth: 0,
61
- borderBottomWidth: 0,
62
- borderRightWidth: 1
63
- }
64
- }
65
- },
66
- defaultVariants: {
67
- unstyled: process.env.GUI_HEADLESS === "1"
68
- }
69
- });
70
- //# sourceMappingURL=Separator.native.js.map
@@ -1 +0,0 @@
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_constants","require","import_core","styled","View","variants","unstyled","false","borderColor","flexShrink","borderWidth","flex","height","maxHeight","borderBottomWidth"],"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;EAAA,KACR,IAAAC,IAAO,IAAAD,GAAA,EAAAZ,SAAA,CAAAW,MAAA,EAAAE,IAAA;IAAAC,GAAA,EAAAF,GAAA,CAAAC,IAAA;IAAAE,UAAA;EAAA;AAAA;AAAA,IAAAC,WAAA,GAAAA,CAAAC,EAAA,EAAAC,IAAA,EAAAC,MAAA,EAAAC,IAAA;EAAA,IAAAF,IAIL,WAAaA,IAAA,wBAAAA,IAAA;IAAA,KACb,IAAAG,GAAA,IAAYhB,iBAAA,CAAAa,IAAA,OACZ,CAAAX,YAAa,CAAAe,IAAA,CAAAL,EAAA,EAAAI,GAAA,KAAAA,GAAA,KAAAF,MAAA,EACbnB,SAAM,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;EAAA;EACE,OACRE,EAAA;AAAW;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,gBACA,GAAAC,OAAA;AAAA,IAAAC,WACH,GAAQD,OAAQ,iBAAY;AAAA,IAAAJ,SAAA,OAAAK,WAAA,CAAAC,MAAA,EAAAD,WAAA,CAAAE,IAAA;EAAArB,IAAA;EAAAsB,QAAA;IAAAC,QAI5B;MAA+BC,KAC/B;QACA;QACA;QACA;QACFC,WAAA;QACFC,UAAA;QACFC,WAAA;QAEAC,IAAA;QACEC,MAAU;QACZC,SAAA;QACDC,iBAAA","ignoreList":[]}
package/dist/jsx/index.js DELETED
@@ -1,2 +0,0 @@
1
- export * from "./Separator.mjs";
2
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":[],"sources":["../../src/index.ts"],"sourcesContent":[null],"mappings":"AAAA,cAAc","ignoreList":[]}
@@ -1,2 +0,0 @@
1
- export * from "./Separator.mjs";
2
- //# sourceMappingURL=index.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"names":[],"sources":["../../src/index.ts"],"sourcesContent":[null],"mappings":"AAAA,cAAc","ignoreList":[]}
@@ -1,23 +0,0 @@
1
- "use strict";
2
-
3
- var __defProp = Object.defineProperty;
4
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
- var __getOwnPropNames = Object.getOwnPropertyNames;
6
- var __hasOwnProp = Object.prototype.hasOwnProperty;
7
- var __copyProps = (to, from, except, desc) => {
8
- if (from && typeof from === "object" || typeof from === "function") {
9
- for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
10
- get: () => from[key],
11
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
12
- });
13
- }
14
- return to;
15
- };
16
- var __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);
20
- var index_exports = {};
21
- module.exports = __toCommonJS(index_exports);
22
- __reExport(index_exports, require("./Separator.native.js"), module.exports);
23
- //# sourceMappingURL=index.native.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":[],"sources":["../../src/index.ts"],"sourcesContent":[null],"mappings":"AAAA","ignoreList":[]}