@hanzo/gui 2.0.6 → 2.0.8
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/createGui.cjs +69 -0
- package/dist/cjs/createGui.native.js +77 -0
- package/dist/cjs/createGui.native.js.map +1 -0
- package/dist/cjs/index.cjs +20 -0
- package/dist/cjs/index.native.js +23 -0
- package/dist/cjs/index.native.js.map +1 -0
- package/dist/cjs/setup.cjs +26 -0
- package/dist/cjs/setup.native.js +31 -0
- package/dist/cjs/setup.native.js.map +1 -0
- package/dist/cjs/viewTypes.cjs +16 -0
- package/dist/cjs/viewTypes.native.js +19 -0
- package/dist/cjs/viewTypes.native.js.map +1 -0
- package/dist/cjs/views/EnsureFlexed.cjs +36 -0
- package/dist/cjs/views/EnsureFlexed.native.js +39 -0
- package/dist/cjs/views/EnsureFlexed.native.js.map +1 -0
- package/dist/cjs/views/GuiProvider.cjs +27 -0
- package/dist/cjs/views/GuiProvider.native.js +30 -0
- package/dist/cjs/views/GuiProvider.native.js.map +1 -0
- package/dist/cjs/views/Text.cjs +38 -0
- package/dist/cjs/views/Text.native.js +41 -0
- package/dist/cjs/views/Text.native.js.map +1 -0
- package/dist/cjs/views/VisuallyHidden.cjs +58 -0
- package/dist/cjs/views/VisuallyHidden.native.js +61 -0
- package/dist/cjs/views/VisuallyHidden.native.js.map +1 -0
- package/dist/esm/createGui.mjs +46 -0
- package/dist/esm/createGui.mjs.map +1 -0
- package/dist/esm/createGui.native.js +51 -0
- package/dist/esm/createGui.native.js.map +1 -0
- package/dist/esm/index.js +3 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/index.mjs +3 -0
- package/dist/esm/index.mjs.map +1 -0
- package/dist/esm/index.native.js +3 -0
- package/dist/esm/index.native.js.map +1 -0
- package/dist/esm/setup.mjs +4 -0
- package/dist/esm/setup.mjs.map +1 -0
- package/dist/esm/setup.native.js +5 -0
- package/dist/esm/setup.native.js.map +1 -0
- package/dist/esm/viewTypes.mjs +2 -0
- package/dist/esm/viewTypes.mjs.map +1 -0
- package/dist/esm/viewTypes.native.js +2 -0
- package/dist/esm/viewTypes.native.js.map +1 -0
- package/dist/esm/views/EnsureFlexed.mjs +13 -0
- package/dist/esm/views/EnsureFlexed.mjs.map +1 -0
- package/dist/esm/views/EnsureFlexed.native.js +13 -0
- package/dist/esm/views/EnsureFlexed.native.js.map +1 -0
- package/dist/esm/views/GuiProvider.mjs +4 -0
- package/dist/esm/views/GuiProvider.mjs.map +1 -0
- package/dist/esm/views/GuiProvider.native.js +4 -0
- package/dist/esm/views/GuiProvider.native.js.map +1 -0
- package/dist/esm/views/Text.mjs +15 -0
- package/dist/esm/views/Text.mjs.map +1 -0
- package/dist/esm/views/Text.native.js +15 -0
- package/dist/esm/views/Text.native.js.map +1 -0
- package/dist/esm/views/VisuallyHidden.mjs +35 -0
- package/dist/esm/views/VisuallyHidden.mjs.map +1 -0
- package/dist/esm/views/VisuallyHidden.native.js +35 -0
- package/dist/esm/views/VisuallyHidden.native.js.map +1 -0
- package/dist/jsx/createGui.mjs +46 -0
- package/dist/jsx/createGui.mjs.map +1 -0
- package/dist/jsx/createGui.native.js +77 -0
- package/dist/jsx/createGui.native.js.map +1 -0
- package/dist/jsx/index.js +3 -0
- package/dist/jsx/index.js.map +1 -0
- package/dist/jsx/index.mjs +3 -0
- package/dist/jsx/index.mjs.map +1 -0
- package/dist/jsx/index.native.js +23 -0
- package/dist/jsx/index.native.js.map +1 -0
- package/dist/jsx/setup.mjs +4 -0
- package/dist/jsx/setup.mjs.map +1 -0
- package/dist/jsx/setup.native.js +31 -0
- package/dist/jsx/setup.native.js.map +1 -0
- package/dist/jsx/viewTypes.mjs +2 -0
- package/dist/jsx/viewTypes.mjs.map +1 -0
- package/dist/jsx/viewTypes.native.js +19 -0
- package/dist/jsx/viewTypes.native.js.map +1 -0
- package/dist/jsx/views/EnsureFlexed.mjs +13 -0
- package/dist/jsx/views/EnsureFlexed.mjs.map +1 -0
- package/dist/jsx/views/EnsureFlexed.native.js +39 -0
- package/dist/jsx/views/EnsureFlexed.native.js.map +1 -0
- package/dist/jsx/views/GuiProvider.mjs +4 -0
- package/dist/jsx/views/GuiProvider.mjs.map +1 -0
- package/dist/jsx/views/GuiProvider.native.js +30 -0
- package/dist/jsx/views/GuiProvider.native.js.map +1 -0
- package/dist/jsx/views/Text.mjs +15 -0
- package/dist/jsx/views/Text.mjs.map +1 -0
- package/dist/jsx/views/Text.native.js +41 -0
- package/dist/jsx/views/Text.native.js.map +1 -0
- package/dist/jsx/views/VisuallyHidden.mjs +35 -0
- package/dist/jsx/views/VisuallyHidden.mjs.map +1 -0
- package/dist/jsx/views/VisuallyHidden.native.js +61 -0
- package/dist/jsx/views/VisuallyHidden.native.js.map +1 -0
- package/package.json +2 -2
- package/src/index.ts +4 -160
- package/types/index.d.ts +2 -24
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Text, styled } from "@hanzogui/core";
|
|
2
|
+
const EnsureFlexed = styled(Text, {
|
|
3
|
+
opacity: 0,
|
|
4
|
+
lineHeight: 0,
|
|
5
|
+
height: 0,
|
|
6
|
+
display: "flex",
|
|
7
|
+
fontSize: 200,
|
|
8
|
+
children: "wwwwwwwwwwwwwwwwwww",
|
|
9
|
+
pointerEvents: "none"
|
|
10
|
+
});
|
|
11
|
+
EnsureFlexed.isVisuallyHidden = !0;
|
|
12
|
+
export { EnsureFlexed };
|
|
13
|
+
//# sourceMappingURL=EnsureFlexed.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["Text","styled","EnsureFlexed","opacity","lineHeight","height","display","fontSize","children","pointerEvents","isVisuallyHidden"],"sources":["../../../src/views/EnsureFlexed.tsx"],"sourcesContent":[null],"mappings":"AAAA,SAASA,IAAA,EAAMC,MAAA,QAAc;AAItB,MAAMC,YAAA,GAAeD,MAAA,CAAOD,IAAA,EAAM;EACvCG,OAAA,EAAS;EACTC,UAAA,EAAY;EACZC,MAAA,EAAQ;EACRC,OAAA,EAAS;EACTC,QAAA,EAAU;EACVC,QAAA,EAAU;EACVC,aAAA,EAAe;AACjB,CAAC;AAIDP,YAAA,CAAaQ,gBAAA,GAAsB","ignoreList":[]}
|
|
@@ -0,0 +1,39 @@
|
|
|
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 EnsureFlexed_exports = {};
|
|
24
|
+
__export(EnsureFlexed_exports, {
|
|
25
|
+
EnsureFlexed: () => EnsureFlexed
|
|
26
|
+
});
|
|
27
|
+
module.exports = __toCommonJS(EnsureFlexed_exports);
|
|
28
|
+
var import_core = require("@hanzogui/core"),
|
|
29
|
+
EnsureFlexed = (0, import_core.styled)(import_core.Text, {
|
|
30
|
+
opacity: 0,
|
|
31
|
+
lineHeight: 0,
|
|
32
|
+
height: 0,
|
|
33
|
+
display: "flex",
|
|
34
|
+
fontSize: 200,
|
|
35
|
+
children: "wwwwwwwwwwwwwwwwwww",
|
|
36
|
+
pointerEvents: "none"
|
|
37
|
+
});
|
|
38
|
+
EnsureFlexed.isVisuallyHidden = !0;
|
|
39
|
+
//# sourceMappingURL=EnsureFlexed.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"],"sources":["../../../src/views/EnsureFlexed.tsx"],"sourcesContent":[null],"mappings":"AAAA,YAAS;;AAIF,IAAAA,SAAM,GAAAC,MAAe,CAAAC,cAAa;AAAA,IACvCC,gBAAS,GAAAF,MAAA,CAAAG,wBAAA;AAAA,IACTC,iBAAY,GAAAJ,MAAA,CAAAK,mBAAA;AAAA,IACZC,YAAQ,GAAAN,MAAA,CAAAO,SAAA,CAAAC,cAAA;AAAA,IACRC,QAAS,GAAAA,CAAAC,MAAA,EAAAC,GAAA;IACT,SAAAC,IAAU,IAAAD,GAAA,EACVZ,SAAU,CAAAW,MAAA,EAAAE,IAAA;MAAAC,GAAA,EAAAF,GAAA,CAAAC,IAAA;MAAAE,UAAA;IAAA;EAAA;EACVC,WAAA,GAAeA,CAAAC,EAAA,EAAAC,IAAA,EAAAC,MAAA,EAAAC,IAAA;IAChB,IAAAF,IAAA,WAAAA,IAAA,uBAAAA,IAAA,gBAID,SAAaG,GAAA,IAAAhB,iBAAsB,CAAAa,IAAA,G","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["GuiProvider","CoreGuiProvider"],"sources":["../../../src/views/GuiProvider.tsx"],"sourcesContent":[null],"mappings":"AACA,SAASA,WAAA,IAAeC,eAAA,QAAuB;AAExC,MAAMD,WAAA,GAAcC,eAAA","ignoreList":[]}
|
|
@@ -0,0 +1,30 @@
|
|
|
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 GuiProvider_exports = {};
|
|
24
|
+
__export(GuiProvider_exports, {
|
|
25
|
+
GuiProvider: () => GuiProvider
|
|
26
|
+
});
|
|
27
|
+
module.exports = __toCommonJS(GuiProvider_exports);
|
|
28
|
+
var import_core = require("@hanzogui/core"),
|
|
29
|
+
GuiProvider = import_core.GuiProvider;
|
|
30
|
+
//# sourceMappingURL=GuiProvider.native.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["__defProp","Object","defineProperty"],"sources":["../../../src/views/GuiProvider.tsx"],"sourcesContent":[null],"mappings":"AACA,YAAS;;AAEF,IAAAA,SAAM,GAAAC,MAAc,CAAAC,cAAA","ignoreList":[]}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Text as GuiText, styled } from "@hanzogui/core";
|
|
2
|
+
const Text = styled(GuiText, {
|
|
3
|
+
variants: {
|
|
4
|
+
unstyled: {
|
|
5
|
+
false: {
|
|
6
|
+
color: "$color"
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
},
|
|
10
|
+
defaultVariants: {
|
|
11
|
+
unstyled: process.env.HANZO_GUI_HEADLESS === "1"
|
|
12
|
+
}
|
|
13
|
+
});
|
|
14
|
+
export { Text };
|
|
15
|
+
//# sourceMappingURL=Text.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["Text","GuiText","styled","variants","unstyled","false","color","defaultVariants","process","env","HANZO_GUI_HEADLESS"],"sources":["../../../src/views/Text.tsx"],"sourcesContent":[null],"mappings":"AAAA,SAASA,IAAA,IAAQC,OAAA,EAASC,MAAA,QAAc;AAEjC,MAAMF,IAAA,GAAOE,MAAA,CAAOD,OAAA,EAAS;EAClCE,QAAA,EAAU;IACRC,QAAA,EAAU;MACRC,KAAA,EAAO;QACLC,KAAA,EAAO;MACT;IACF;EACF;EAEAC,eAAA,EAAiB;IACfH,QAAA,EAAUI,OAAA,CAAQC,GAAA,CAAIC,kBAAA,KAAuB;EAC/C;AACF,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,41 @@
|
|
|
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 Text_exports = {};
|
|
24
|
+
__export(Text_exports, {
|
|
25
|
+
Text: () => Text
|
|
26
|
+
});
|
|
27
|
+
module.exports = __toCommonJS(Text_exports);
|
|
28
|
+
var import_core = require("@hanzogui/core"),
|
|
29
|
+
Text = (0, import_core.styled)(import_core.Text, {
|
|
30
|
+
variants: {
|
|
31
|
+
unstyled: {
|
|
32
|
+
false: {
|
|
33
|
+
color: "$color"
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
defaultVariants: {
|
|
38
|
+
unstyled: process.env.HANZO_GUI_HEADLESS === "1"
|
|
39
|
+
}
|
|
40
|
+
});
|
|
41
|
+
//# sourceMappingURL=Text.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"],"sources":["../../../src/views/Text.tsx"],"sourcesContent":[null],"mappings":"AAAA,YAAS;;AAEF,IAAAA,SAAa,GAAAC,MAAO,CAAAC,cAAS;AAAA,IAClCC,gBAAU,GAAAF,MAAA,CAAAG,wBAAA;AAAA,IACRC,iBAAU,GAAAJ,MAAA,CAAAK,mBAAA;AAAA,IAAAC,YACD,GAAAN,MAAA,CAAAO,SAAA,CAAAC,cAAA;AAAA,IAAAC,QACL,GAAOA,CAAAC,MAAA,EAAAC,GAAA;IAAA,KACT,IAAAC,IAAA,IAAAD,GAAA,EACFZ,SAAA,CAAAW,MAAA,EAAAE,IAAA;MAAAC,GAAA,EAAAF,GAAA,CAAAC,IAAA;MAAAE,UAAA;IAAA;EAAA;EACFC,WAAA,GAAAA,CAAAC,EAAA,EAAAC,IAAA,EAAAC,MAAA,EAAAC,IAAA;IAEA,IAAAF,IAAA,WAAiBA,IAAA,uBAAAA,IAAA,gBACf,SAAAG,GAAU,IAAAhB,iBAAY,CAAAa,IAAA,GACxB,CAAAX,YAAA,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;IACD,OAAAE,EAAA","ignoreList":[]}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { View, styled } from "@hanzogui/core";
|
|
2
|
+
const VisuallyHidden = styled(View, {
|
|
3
|
+
position: "absolute",
|
|
4
|
+
width: 1,
|
|
5
|
+
height: 1,
|
|
6
|
+
margin: -1,
|
|
7
|
+
zIndex: -1e4,
|
|
8
|
+
overflow: "hidden",
|
|
9
|
+
opacity: 1e-8,
|
|
10
|
+
pointerEvents: "none",
|
|
11
|
+
variants: {
|
|
12
|
+
preserveDimensions: {
|
|
13
|
+
true: {
|
|
14
|
+
position: "relative",
|
|
15
|
+
width: "auto",
|
|
16
|
+
height: "auto"
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
visible: {
|
|
20
|
+
true: {
|
|
21
|
+
position: "relative",
|
|
22
|
+
width: "auto",
|
|
23
|
+
height: "auto",
|
|
24
|
+
margin: 0,
|
|
25
|
+
zIndex: 1,
|
|
26
|
+
overflow: "visible",
|
|
27
|
+
opacity: 1,
|
|
28
|
+
pointerEvents: "auto"
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
});
|
|
33
|
+
VisuallyHidden.isVisuallyHidden = !0;
|
|
34
|
+
export { VisuallyHidden };
|
|
35
|
+
//# sourceMappingURL=VisuallyHidden.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["View","styled","VisuallyHidden","position","width","height","margin","zIndex","overflow","opacity","pointerEvents","variants","preserveDimensions","true","visible","isVisuallyHidden"],"sources":["../../../src/views/VisuallyHidden.tsx"],"sourcesContent":[null],"mappings":"AAAA,SAASA,IAAA,EAAMC,MAAA,QAAc;AAEtB,MAAMC,cAAA,GAAiBD,MAAA,CAAOD,IAAA,EAAM;EACzCG,QAAA,EAAU;EACVC,KAAA,EAAO;EACPC,MAAA,EAAQ;EACRC,MAAA,EAAQ;EACRC,MAAA,EAAQ;EACRC,QAAA,EAAU;EACVC,OAAA,EAAS;EACTC,aAAA,EAAe;EAEfC,QAAA,EAAU;IACRC,kBAAA,EAAoB;MAClBC,IAAA,EAAM;QACJV,QAAA,EAAU;QACVC,KAAA,EAAO;QACPC,MAAA,EAAQ;MACV;IACF;IAEAS,OAAA,EAAS;MACPD,IAAA,EAAM;QACJV,QAAA,EAAU;QACVC,KAAA,EAAO;QACPC,MAAA,EAAQ;QACRC,MAAA,EAAQ;QACRC,MAAA,EAAQ;QACRC,QAAA,EAAU;QACVC,OAAA,EAAS;QACTC,aAAA,EAAe;MACjB;IACF;EACF;AACF,CAAC;AAGDR,cAAA,CAAea,gBAAA,GAAsB","ignoreList":[]}
|
|
@@ -0,0 +1,61 @@
|
|
|
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 VisuallyHidden_exports = {};
|
|
24
|
+
__export(VisuallyHidden_exports, {
|
|
25
|
+
VisuallyHidden: () => VisuallyHidden
|
|
26
|
+
});
|
|
27
|
+
module.exports = __toCommonJS(VisuallyHidden_exports);
|
|
28
|
+
var import_core = require("@hanzogui/core"),
|
|
29
|
+
VisuallyHidden = (0, import_core.styled)(import_core.View, {
|
|
30
|
+
position: "absolute",
|
|
31
|
+
width: 1,
|
|
32
|
+
height: 1,
|
|
33
|
+
margin: -1,
|
|
34
|
+
zIndex: -1e4,
|
|
35
|
+
overflow: "hidden",
|
|
36
|
+
opacity: 1e-8,
|
|
37
|
+
pointerEvents: "none",
|
|
38
|
+
variants: {
|
|
39
|
+
preserveDimensions: {
|
|
40
|
+
true: {
|
|
41
|
+
position: "relative",
|
|
42
|
+
width: "auto",
|
|
43
|
+
height: "auto"
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
visible: {
|
|
47
|
+
true: {
|
|
48
|
+
position: "relative",
|
|
49
|
+
width: "auto",
|
|
50
|
+
height: "auto",
|
|
51
|
+
margin: 0,
|
|
52
|
+
zIndex: 1,
|
|
53
|
+
overflow: "visible",
|
|
54
|
+
opacity: 1,
|
|
55
|
+
pointerEvents: "auto"
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
});
|
|
60
|
+
VisuallyHidden.isVisuallyHidden = !0;
|
|
61
|
+
//# sourceMappingURL=VisuallyHidden.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","VisuallyHidden_exports","VisuallyHidden","module","exports","import_core","require","styled","View","position","width","height","margin","zIndex","overflow","opacity","pointerEvents","variants","preserveDimensions","true"],"sources":["../../../src/views/VisuallyHidden.tsx"],"sourcesContent":[null],"mappings":"AAAA,YAAS;;AAEF,IAAAA,SAAM,GAAAC,MAAA,CAAiBC,cAAa;AAAA,IACzCC,gBAAU,GAAAF,MAAA,CAAAG,wBAAA;AAAA,IACVC,iBAAO,GAAAJ,MAAA,CAAAK,mBAAA;AAAA,IACPC,YAAQ,GAAAN,MAAA,CAAAO,SAAA,CAAAC,cAAA;AAAA,IACRC,QAAQ,GAAAA,CAAAC,MAAA,EAAAC,GAAA;IACR,SAAQC,IAAA,IAAAD,GAAA,EACRZ,SAAU,CAAAW,MAAA,EAAAE,IAAA;MAAAC,GAAA,EAAAF,GAAA,CAAAC,IAAA;MAAAE,UAAA;IAAA;EAAA;EACVC,WAAS,GAAAA,CAAAC,EAAA,EAAAC,IAAA,EAAAC,MAAA,EAAAC,IAAA;IACT,IAAAF,IAAA,WAAeA,IAAA,uBAAAA,IAAA,gBAEf,SAAUG,GAAA,IAAAhB,iBAAA,CAAAa,IAAA,GACR,CAAAX,YAAA,CAAAe,IAAoB,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,OAClBE,EAAA;EAAM;AACM,IAAAM,YACH,GAAAC,GAAA,IAAAR,WAAA,CAAAhB,SAAA;EAAAyB,KAAA;AAAA,IAAAD,GAAA;AAAA,IAAAE,sBACC;AAAAhB,QACV,CAAAgB,sBAAA;EAAAC,cACF,EAAAA,CAAA,KAAAA;AAAA;AAESC,MACP,CAAAC,OAAM,GAAAN,YAAA,CAAAG,sBAAA;AAAA,IAAAI,WACJ,GAAUC,OAAA;EAAAJ,cAAA,OAAAG,WAAA,CAAAE,MAAA,EAAAF,WAAA,CAAAG,IAAA;IAAAC,QACV,YAAO;IAAAC,KAAA,EACP;IAAQC,MACR;IAAQC,MACR;IAAQC,MACR;IAAUC,QACV,UAAS;IAAAC,OACT;IAAeC,aACjB;IAAAC,QACF;MACFC,kBAAA;QACDC,IAAA;UAGDV,QAAe","ignoreList":[]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hanzo/gui",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.8",
|
|
4
4
|
"gitHead": "a49cc7ea6b93ba384e77a4880ae48ac4a5635c14",
|
|
5
5
|
"description": "Style and UI for React (web and native) meet an optimizing compiler",
|
|
6
6
|
"repository": {
|
|
@@ -95,7 +95,7 @@
|
|
|
95
95
|
"@hanzogui/use-force-update": "workspace:*",
|
|
96
96
|
"@hanzogui/use-window-dimensions": "workspace:*",
|
|
97
97
|
"@hanzogui/font-size": "workspace:*",
|
|
98
|
-
"@hanzogui/stacks": "
|
|
98
|
+
"@hanzogui/stacks": "2.0.5",
|
|
99
99
|
"@hanzogui/web": "workspace:*"
|
|
100
100
|
},
|
|
101
101
|
"devDependencies": {
|
package/src/index.ts
CHANGED
|
@@ -1,163 +1,7 @@
|
|
|
1
|
-
export * from '@hanzogui/stacks'
|
|
2
|
-
export * from '@hanzogui/web'
|
|
3
1
|
import './setup'
|
|
4
2
|
|
|
5
|
-
|
|
6
|
-
export * from '@hanzogui/
|
|
7
|
-
export * from '@hanzogui/font-size'
|
|
8
|
-
export * from '@hanzogui/react-native-media-driver'
|
|
9
|
-
export * from '@hanzogui/helpers'
|
|
10
|
-
export * from '@hanzogui/theme'
|
|
11
|
-
export * from '@hanzogui/use-controllable-state'
|
|
12
|
-
export * from '@hanzogui/use-debounce'
|
|
13
|
-
export * from '@hanzogui/use-force-update'
|
|
14
|
-
export * from '@hanzogui/element'
|
|
15
|
-
export * from '@hanzogui/use-window-dimensions'
|
|
16
|
-
export * from '@hanzogui/dialog'
|
|
17
|
-
export * from '@hanzogui/adapt'
|
|
18
|
-
export * from '@hanzogui/sheet'
|
|
19
|
-
export * from '@hanzogui/visually-hidden'
|
|
20
|
-
|
|
21
|
-
export * from './createGui'
|
|
22
|
-
|
|
23
|
-
export * from './viewTypes'
|
|
24
|
-
export * from './views/GuiProvider'
|
|
3
|
+
// Core styling engine (View, Text, styled, createGui, GuiProvider, etc)
|
|
4
|
+
export * from '@hanzogui/core'
|
|
25
5
|
|
|
26
|
-
|
|
27
|
-
export * from '
|
|
28
|
-
|
|
29
|
-
// since we overlap with ViewProps and potentially others
|
|
30
|
-
// lets be explicit on what gets exported
|
|
31
|
-
export type {
|
|
32
|
-
TransitionKeys,
|
|
33
|
-
TransitionProp,
|
|
34
|
-
ColorTokens,
|
|
35
|
-
CreateGuiConfig,
|
|
36
|
-
CreateGuiProps,
|
|
37
|
-
FontColorTokens,
|
|
38
|
-
FontLanguages,
|
|
39
|
-
FontLetterSpacingTokens,
|
|
40
|
-
FontLineHeightTokens,
|
|
41
|
-
FontFamilyTokens,
|
|
42
|
-
FontSizeTokens,
|
|
43
|
-
FontStyleTokens,
|
|
44
|
-
FontTokens,
|
|
45
|
-
FontTransformTokens,
|
|
46
|
-
FontWeightTokens,
|
|
47
|
-
GenericFont,
|
|
48
|
-
GenericStackVariants,
|
|
49
|
-
GenericGuiConfig,
|
|
50
|
-
GenericTextVariants,
|
|
51
|
-
GetAnimationKeys,
|
|
52
|
-
GetProps,
|
|
53
|
-
GetRef,
|
|
54
|
-
GetThemeValueForKey,
|
|
55
|
-
GroupNames,
|
|
56
|
-
Longhands,
|
|
57
|
-
Media,
|
|
58
|
-
MediaPropKeys,
|
|
59
|
-
MediaQueries,
|
|
60
|
-
MediaQueryState,
|
|
61
|
-
RadiusTokens,
|
|
62
|
-
Shorthands,
|
|
63
|
-
SizeTokens,
|
|
64
|
-
SpaceTokens,
|
|
65
|
-
SpecificTokens,
|
|
66
|
-
StackNonStyleProps,
|
|
67
|
-
ViewProps,
|
|
68
|
-
StaticConfig,
|
|
69
|
-
Styleable,
|
|
70
|
-
GuiBaseTheme,
|
|
71
|
-
GuiBuildOptions,
|
|
72
|
-
GuiComponent,
|
|
73
|
-
GuiConfig,
|
|
74
|
-
GuiCustomConfig,
|
|
75
|
-
GuiElement,
|
|
76
|
-
GuiInternalConfig,
|
|
77
|
-
GuiProviderProps,
|
|
78
|
-
GuiSettings,
|
|
79
|
-
GuiTextElement,
|
|
80
|
-
TextNonStyleProps,
|
|
81
|
-
TextProps,
|
|
82
|
-
ThemeKeys,
|
|
83
|
-
ThemeName,
|
|
84
|
-
ThemeParsed,
|
|
85
|
-
ThemeProps,
|
|
86
|
-
Themes,
|
|
87
|
-
ThemeTokens,
|
|
88
|
-
ThemeValueFallback,
|
|
89
|
-
Token,
|
|
90
|
-
Tokens,
|
|
91
|
-
TypeOverride,
|
|
92
|
-
Variable,
|
|
93
|
-
VariantSpreadExtras,
|
|
94
|
-
VariantSpreadFunction,
|
|
95
|
-
ZIndexTokens,
|
|
96
|
-
ViewStyle,
|
|
97
|
-
TextStyle,
|
|
98
|
-
} from '@hanzogui/core'
|
|
99
|
-
|
|
100
|
-
export {
|
|
101
|
-
ClientOnly,
|
|
102
|
-
Configuration,
|
|
103
|
-
ComponentContext,
|
|
104
|
-
GroupContext,
|
|
105
|
-
FontLanguage,
|
|
106
|
-
// components
|
|
107
|
-
Theme,
|
|
108
|
-
View,
|
|
109
|
-
createComponent,
|
|
110
|
-
createFont,
|
|
111
|
-
createShorthands,
|
|
112
|
-
createStyledContext,
|
|
113
|
-
createTokens,
|
|
114
|
-
createVariable,
|
|
115
|
-
getConfig,
|
|
116
|
-
getMedia,
|
|
117
|
-
getCSSStylesAtomic,
|
|
118
|
-
getThemes,
|
|
119
|
-
getToken,
|
|
120
|
-
getTokenValue,
|
|
121
|
-
getTokens,
|
|
122
|
-
getVariable,
|
|
123
|
-
getVariableName,
|
|
124
|
-
getVariableValue,
|
|
125
|
-
insertFont,
|
|
126
|
-
setConfig,
|
|
127
|
-
setupDev,
|
|
128
|
-
_withStableStyle,
|
|
129
|
-
// constants
|
|
130
|
-
isBrowser,
|
|
131
|
-
isChrome,
|
|
132
|
-
isClient,
|
|
133
|
-
isServer,
|
|
134
|
-
isGuiComponent,
|
|
135
|
-
isGuiElement,
|
|
136
|
-
isTouchable,
|
|
137
|
-
isVariable,
|
|
138
|
-
isWeb,
|
|
139
|
-
isWebTouchable,
|
|
140
|
-
matchMedia,
|
|
141
|
-
mediaObjectToString,
|
|
142
|
-
mediaQueryConfig,
|
|
143
|
-
mediaState,
|
|
144
|
-
setOnLayoutStrategy,
|
|
145
|
-
styled,
|
|
146
|
-
themeable,
|
|
147
|
-
// hooks
|
|
148
|
-
useClientValue,
|
|
149
|
-
useDidFinishSSR,
|
|
150
|
-
useEvent,
|
|
151
|
-
useGet,
|
|
152
|
-
useIsTouchDevice,
|
|
153
|
-
useIsomorphicLayoutEffect,
|
|
154
|
-
useMedia,
|
|
155
|
-
useProps,
|
|
156
|
-
usePropsAndStyle,
|
|
157
|
-
useStyle,
|
|
158
|
-
useConfiguration,
|
|
159
|
-
useTheme,
|
|
160
|
-
useThemeName,
|
|
161
|
-
variableToString,
|
|
162
|
-
withStaticProperties,
|
|
163
|
-
} from '@hanzogui/core'
|
|
6
|
+
// Stack components (Stack, XStack, YStack, ZStack, ThemeableStack, SizableStack)
|
|
7
|
+
export * from '@hanzogui/stacks'
|
package/types/index.d.ts
CHANGED
|
@@ -1,26 +1,4 @@
|
|
|
1
|
-
export * from '@hanzogui/stacks';
|
|
2
|
-
export * from '@hanzogui/web';
|
|
3
1
|
import './setup';
|
|
4
|
-
export * from '@hanzogui/
|
|
5
|
-
export * from '@hanzogui/
|
|
6
|
-
export * from '@hanzogui/font-size';
|
|
7
|
-
export * from '@hanzogui/react-native-media-driver';
|
|
8
|
-
export * from '@hanzogui/helpers';
|
|
9
|
-
export * from '@hanzogui/theme';
|
|
10
|
-
export * from '@hanzogui/use-controllable-state';
|
|
11
|
-
export * from '@hanzogui/use-debounce';
|
|
12
|
-
export * from '@hanzogui/use-force-update';
|
|
13
|
-
export * from '@hanzogui/element';
|
|
14
|
-
export * from '@hanzogui/use-window-dimensions';
|
|
15
|
-
export * from '@hanzogui/dialog';
|
|
16
|
-
export * from '@hanzogui/adapt';
|
|
17
|
-
export * from '@hanzogui/sheet';
|
|
18
|
-
export * from '@hanzogui/visually-hidden';
|
|
19
|
-
export * from './createGui';
|
|
20
|
-
export * from './viewTypes';
|
|
21
|
-
export * from './views/GuiProvider';
|
|
22
|
-
export * from './views/EnsureFlexed';
|
|
23
|
-
export * from './views/Text';
|
|
24
|
-
export type { TransitionKeys, TransitionProp, ColorTokens, CreateGuiConfig, CreateGuiProps, FontColorTokens, FontLanguages, FontLetterSpacingTokens, FontLineHeightTokens, FontFamilyTokens, FontSizeTokens, FontStyleTokens, FontTokens, FontTransformTokens, FontWeightTokens, GenericFont, GenericStackVariants, GenericGuiConfig, GenericTextVariants, GetAnimationKeys, GetProps, GetRef, GetThemeValueForKey, GroupNames, Longhands, Media, MediaPropKeys, MediaQueries, MediaQueryState, RadiusTokens, Shorthands, SizeTokens, SpaceTokens, SpecificTokens, StackNonStyleProps, ViewProps, StaticConfig, Styleable, GuiBaseTheme, GuiBuildOptions, GuiComponent, GuiConfig, GuiCustomConfig, GuiElement, GuiInternalConfig, GuiProviderProps, GuiSettings, GuiTextElement, TextNonStyleProps, TextProps, ThemeKeys, ThemeName, ThemeParsed, ThemeProps, Themes, ThemeTokens, ThemeValueFallback, Token, Tokens, TypeOverride, Variable, VariantSpreadExtras, VariantSpreadFunction, ZIndexTokens, ViewStyle, TextStyle, } from '@hanzogui/core';
|
|
25
|
-
export { ClientOnly, Configuration, ComponentContext, GroupContext, FontLanguage, Theme, View, createComponent, createFont, createShorthands, createStyledContext, createTokens, createVariable, getConfig, getMedia, getCSSStylesAtomic, getThemes, getToken, getTokenValue, getTokens, getVariable, getVariableName, getVariableValue, insertFont, setConfig, setupDev, _withStableStyle, isBrowser, isChrome, isClient, isServer, isGuiComponent, isGuiElement, isTouchable, isVariable, isWeb, isWebTouchable, matchMedia, mediaObjectToString, mediaQueryConfig, mediaState, setOnLayoutStrategy, styled, themeable, useClientValue, useDidFinishSSR, useEvent, useGet, useIsTouchDevice, useIsomorphicLayoutEffect, useMedia, useProps, usePropsAndStyle, useStyle, useConfiguration, useTheme, useThemeName, variableToString, withStaticProperties, } from '@hanzogui/core';
|
|
2
|
+
export * from '@hanzogui/core';
|
|
3
|
+
export * from '@hanzogui/stacks';
|
|
26
4
|
//# sourceMappingURL=index.d.ts.map
|