@hanzo/gui 7.0.0 → 7.3.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 +40 -19
- package/dist/cjs/createGui.cjs +80 -0
- package/dist/cjs/createGui.native.js +89 -0
- package/dist/cjs/createGui.native.js.map +1 -0
- package/dist/cjs/index.cjs +148 -0
- package/dist/cjs/index.native.js +151 -0
- package/dist/cjs/index.native.js.map +1 -0
- package/dist/cjs/linear-gradient.cjs +28 -0
- package/dist/cjs/linear-gradient.native.js +31 -0
- package/dist/cjs/linear-gradient.native.js.map +1 -0
- package/dist/cjs/setup.cjs +30 -0
- package/dist/cjs/setup.native.js +35 -0
- package/dist/cjs/setup.native.js.map +1 -0
- package/dist/cjs/viewTypes.cjs +18 -0
- package/dist/cjs/viewTypes.native.js +21 -0
- package/dist/cjs/viewTypes.native.js.map +1 -0
- package/dist/cjs/views/Anchor.cjs +60 -0
- package/dist/cjs/views/Anchor.native.js +65 -0
- package/dist/cjs/views/Anchor.native.js.map +1 -0
- package/dist/cjs/views/EnsureFlexed.cjs +38 -0
- package/dist/cjs/views/EnsureFlexed.native.js +41 -0
- package/dist/cjs/views/EnsureFlexed.native.js.map +1 -0
- package/dist/cjs/views/Fieldset.cjs +43 -0
- package/dist/cjs/views/Fieldset.native.js +46 -0
- package/dist/cjs/views/Fieldset.native.js.map +1 -0
- package/dist/cjs/views/GuiProvider.cjs +46 -0
- package/dist/cjs/views/GuiProvider.native.js +50 -0
- package/dist/cjs/views/GuiProvider.native.js.map +1 -0
- package/dist/cjs/views/Text.cjs +40 -0
- package/dist/cjs/views/Text.native.js +43 -0
- package/dist/cjs/views/Text.native.js.map +1 -0
- package/dist/cjs/views/VisuallyHidden.cjs +60 -0
- package/dist/cjs/views/VisuallyHidden.native.js +63 -0
- package/dist/cjs/views/VisuallyHidden.native.js.map +1 -0
- package/dist/esm/createGui.mjs +55 -0
- package/dist/esm/createGui.mjs.map +1 -0
- package/dist/esm/createGui.native.js +61 -0
- package/dist/esm/createGui.native.js.map +1 -0
- package/dist/esm/index.js +63 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/index.mjs +63 -0
- package/dist/esm/index.mjs.map +1 -0
- package/dist/esm/index.native.js +63 -0
- package/dist/esm/index.native.js.map +1 -0
- package/dist/esm/linear-gradient.mjs +3 -0
- package/dist/esm/linear-gradient.mjs.map +1 -0
- package/dist/esm/linear-gradient.native.js +3 -0
- package/dist/esm/linear-gradient.native.js.map +1 -0
- package/dist/esm/setup.mjs +6 -0
- package/dist/esm/setup.mjs.map +1 -0
- package/dist/esm/setup.native.js +8 -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/Anchor.mjs +35 -0
- package/dist/esm/views/Anchor.mjs.map +1 -0
- package/dist/esm/views/Anchor.native.js +37 -0
- package/dist/esm/views/Anchor.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/Fieldset.mjs +18 -0
- package/dist/esm/views/Fieldset.mjs.map +1 -0
- package/dist/esm/views/Fieldset.native.js +18 -0
- package/dist/esm/views/Fieldset.native.js.map +1 -0
- package/dist/esm/views/GuiProvider.mjs +21 -0
- package/dist/esm/views/GuiProvider.mjs.map +1 -0
- package/dist/esm/views/GuiProvider.native.js +22 -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 +55 -0
- package/dist/jsx/createGui.mjs.map +1 -0
- package/dist/jsx/createGui.native.js +89 -0
- package/dist/jsx/createGui.native.js.map +1 -0
- package/dist/jsx/index.js +63 -0
- package/dist/jsx/index.js.map +1 -0
- package/dist/jsx/index.mjs +63 -0
- package/dist/jsx/index.mjs.map +1 -0
- package/dist/jsx/index.native.js +151 -0
- package/dist/jsx/index.native.js.map +1 -0
- package/dist/jsx/linear-gradient.mjs +3 -0
- package/dist/jsx/linear-gradient.mjs.map +1 -0
- package/dist/jsx/linear-gradient.native.js +31 -0
- package/dist/jsx/linear-gradient.native.js.map +1 -0
- package/dist/jsx/setup.mjs +6 -0
- package/dist/jsx/setup.mjs.map +1 -0
- package/dist/jsx/setup.native.js +35 -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 +21 -0
- package/dist/jsx/viewTypes.native.js.map +1 -0
- package/dist/jsx/views/Anchor.mjs +35 -0
- package/dist/jsx/views/Anchor.mjs.map +1 -0
- package/dist/jsx/views/Anchor.native.js +65 -0
- package/dist/jsx/views/Anchor.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 +41 -0
- package/dist/jsx/views/EnsureFlexed.native.js.map +1 -0
- package/dist/jsx/views/Fieldset.mjs +18 -0
- package/dist/jsx/views/Fieldset.mjs.map +1 -0
- package/dist/jsx/views/Fieldset.native.js +46 -0
- package/dist/jsx/views/Fieldset.native.js.map +1 -0
- package/dist/jsx/views/GuiProvider.mjs +21 -0
- package/dist/jsx/views/GuiProvider.mjs.map +1 -0
- package/dist/jsx/views/GuiProvider.native.js +50 -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 +43 -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 +63 -0
- package/dist/jsx/views/VisuallyHidden.native.js.map +1 -0
- package/dist/native.cjs +32528 -0
- package/dist/test.cjs +32594 -0
- package/package.json +82 -84
- package/src/{createHanzogui.ts → createGui.ts} +13 -13
- package/src/index.ts +17 -17
- package/src/views/{HanzoguiProvider.tsx → GuiProvider.tsx} +3 -3
- package/src/views/Text.tsx +3 -3
- package/types/createGui.d.ts +6 -0
- package/types/createGui.d.ts.map +1 -0
- package/types/index.d.ts +4 -4
- package/types/index.d.ts.map +1 -0
- package/types/linear-gradient.d.ts.map +1 -0
- package/types/setup.d.ts.map +1 -0
- package/types/viewTypes.d.ts.map +1 -0
- package/types/views/Anchor.d.ts +2 -2
- package/types/views/Anchor.d.ts.map +1 -0
- package/types/views/EnsureFlexed.d.ts +1 -1
- package/types/views/EnsureFlexed.d.ts.map +1 -0
- package/types/views/Fieldset.d.ts +1 -1
- package/types/views/Fieldset.d.ts.map +1 -0
- package/types/views/GuiProvider.d.ts +3 -0
- package/types/views/GuiProvider.d.ts.map +1 -0
- package/types/views/Text.d.ts +1 -1
- package/types/views/Text.d.ts.map +1 -0
- package/types/views/VisuallyHidden.d.ts +1 -1
- package/types/views/VisuallyHidden.d.ts.map +1 -0
- package/hanzogui.config.ts +0 -4
- package/linear-gradient/index.cjs +0 -2
- package/linear-gradient/index.d.ts +0 -1
- package/linear-gradient/index.js +0 -2
- package/linear-gradient/index.native.cjs +0 -2
- package/linear-gradient/index.native.js +0 -2
- package/native/index.cjs +0 -2
- package/native/index.js +0 -2
- package/native-test/index.cjs +0 -2
- package/native-test/index.js +0 -2
- package/native-test/index.native.cjs +0 -2
- package/native-test/index.native.js +0 -2
- package/native-test.d.ts +0 -1
- package/native.d.ts +0 -1
- package/react-native-web/index.cjs +0 -2
- package/react-native-web/index.js +0 -2
- package/react-native-web/index.native.cjs +0 -2
- package/react-native-web/index.native.js +0 -2
- package/tsconfig.json +0 -171
- package/types/createHanzogui.d.ts +0 -6
- package/types/views/HanzoguiProvider.d.ts +0 -3
- package/web/index.cjs +0 -2
- package/web/index.js +0 -2
- package/web/index.native.cjs +0 -2
- package/web/index.native.js +0 -2
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var __create = Object.create;
|
|
4
|
+
var __defProp = Object.defineProperty;
|
|
5
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
6
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
7
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
8
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
12
|
+
get: () => from[key],
|
|
13
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
19
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
20
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
21
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
22
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
23
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
24
|
+
value: mod,
|
|
25
|
+
enumerable: true
|
|
26
|
+
}) : target, mod));
|
|
27
|
+
var import_polyfill_dev = require("@hanzogui/polyfill-dev");
|
|
28
|
+
var React = __toESM(require("react"), 1);
|
|
29
|
+
var _globalThis;
|
|
30
|
+
var _React;
|
|
31
|
+
(_globalThis = globalThis)[_React = "React"] || (_globalThis[_React] = React);
|
|
32
|
+
if (typeof requestAnimationFrame === "undefined") {
|
|
33
|
+
globalThis["requestAnimationFrame"] = typeof setImmediate === "undefined" ? setTimeout : setImmediate;
|
|
34
|
+
}
|
|
35
|
+
//# sourceMappingURL=setup.native.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["import_polyfill_dev","require","React","__toESM","_globalThis","_React","globalThis"],"sources":["../../src/setup.ts"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;gBAAA;AAEA,IAAAA,mBAAuB,GAAAC,OAAA;AAIvB,IAAAC,KAAA,GAAWC,OAAO,CAAAF,OAAM;AAGxB,IAAIG,WAAO;AACT,IAAAC,MAAA;AAEF,CAAAD,WAAA,GAAAE,UAAA,EAAAD,MAAA,gBAAAD,WAAA,CAAAC,MAAA,IAAAH,KAAA","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") {
|
|
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 __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
15
|
+
value: true
|
|
16
|
+
}), mod);
|
|
17
|
+
var viewTypes_exports = {};
|
|
18
|
+
module.exports = __toCommonJS(viewTypes_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") {
|
|
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 __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
17
|
+
value: true
|
|
18
|
+
}), mod);
|
|
19
|
+
var viewTypes_exports = {};
|
|
20
|
+
module.exports = __toCommonJS(viewTypes_exports);
|
|
21
|
+
//# sourceMappingURL=viewTypes.native.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","viewTypes_exports"],"sources":["../../src/viewTypes.tsx"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;EAAAC,KAAA;AAAA,IAAAH,GAAA;AAAA,IAAAI,iBAAA","ignoreList":[]}
|
|
@@ -0,0 +1,60 @@
|
|
|
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 Anchor_exports = {};
|
|
24
|
+
__export(Anchor_exports, {
|
|
25
|
+
Anchor: () => Anchor
|
|
26
|
+
});
|
|
27
|
+
module.exports = __toCommonJS(Anchor_exports);
|
|
28
|
+
var import_constants = require("@hanzogui/constants");
|
|
29
|
+
var import_core = require("@hanzogui/core");
|
|
30
|
+
var import_text = require("@hanzogui/text");
|
|
31
|
+
var import_react_native = require("react-native-web");
|
|
32
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
33
|
+
const AnchorFrame = (0, import_core.styled)(import_text.SizableText, {
|
|
34
|
+
name: "Anchor",
|
|
35
|
+
render: "a",
|
|
36
|
+
role: "link"
|
|
37
|
+
});
|
|
38
|
+
const Anchor = AnchorFrame.styleable(({
|
|
39
|
+
href,
|
|
40
|
+
target,
|
|
41
|
+
rel,
|
|
42
|
+
...props
|
|
43
|
+
}, ref) => {
|
|
44
|
+
return /* @__PURE__ */(0, import_jsx_runtime.jsx)(AnchorFrame, {
|
|
45
|
+
...props,
|
|
46
|
+
...(import_constants.isWeb ? {
|
|
47
|
+
href,
|
|
48
|
+
target,
|
|
49
|
+
rel
|
|
50
|
+
} : {
|
|
51
|
+
onPress: event => {
|
|
52
|
+
props.onPress?.(event);
|
|
53
|
+
if (href !== void 0) {
|
|
54
|
+
import_react_native.Linking.openURL(href);
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
}),
|
|
58
|
+
ref
|
|
59
|
+
});
|
|
60
|
+
});
|
|
@@ -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: 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 Anchor_exports = {};
|
|
26
|
+
__export(Anchor_exports, {
|
|
27
|
+
Anchor: () => Anchor
|
|
28
|
+
});
|
|
29
|
+
module.exports = __toCommonJS(Anchor_exports);
|
|
30
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
31
|
+
var import_constants = require("@hanzogui/constants");
|
|
32
|
+
var import_core = require("@hanzogui/core");
|
|
33
|
+
var import_text = require("@hanzogui/text");
|
|
34
|
+
var import_react_native = require("react-native");
|
|
35
|
+
var AnchorFrame = (0, import_core.styled)(import_text.SizableText, {
|
|
36
|
+
name: "Anchor",
|
|
37
|
+
render: "a",
|
|
38
|
+
role: "link"
|
|
39
|
+
});
|
|
40
|
+
var Anchor = AnchorFrame.styleable(function (param, ref) {
|
|
41
|
+
var {
|
|
42
|
+
href,
|
|
43
|
+
target,
|
|
44
|
+
rel,
|
|
45
|
+
...props
|
|
46
|
+
} = param;
|
|
47
|
+
return /* @__PURE__ */(0, import_jsx_runtime.jsx)(AnchorFrame, {
|
|
48
|
+
...props,
|
|
49
|
+
...(import_constants.isWeb ? {
|
|
50
|
+
href,
|
|
51
|
+
target,
|
|
52
|
+
rel
|
|
53
|
+
} : {
|
|
54
|
+
onPress: function (event) {
|
|
55
|
+
var _props_onPress;
|
|
56
|
+
(_props_onPress = props.onPress) === null || _props_onPress === void 0 ? void 0 : _props_onPress.call(props, event);
|
|
57
|
+
if (href !== void 0) {
|
|
58
|
+
import_react_native.Linking.openURL(href);
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
}),
|
|
62
|
+
ref
|
|
63
|
+
});
|
|
64
|
+
});
|
|
65
|
+
//# sourceMappingURL=Anchor.native.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","Anchor_exports","__export","Anchor","module","exports","import_jsx_runtime","require","import_constants","import_core","import_text","import_react_native","AnchorFrame","styled","SizableText","name","render","role","styleable","param","ref","href","target","rel","props","jsx","isWeb","onPress","event","_props_onPress","call","Linking","openURL"],"sources":["../../../src/views/Anchor.tsx"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;EAAAC,KAAA;AAAA,IAAAH,GAAA;AAAA,IAAAI,cAAA;AAAAC,QAAA,CAAAD,cAAA;EAAAE,MAAA,EAAAA,CAAA,KAAAA;AAAA;AAAAC,MAAA,CAAAC,OAAA,GAAAT,YAAsB,CAAAK,cAAA;AACtB,IAAAK,kBAAuB,GAAAC,OAAA;AAEvB,IAAAC,gBAA4B,GAAAD,OAAA;AAC5B,IAAAE,WAAA,GAAAF,OAAA,CAAwB;AAmBlB,IAAAG,WAAA,GAAAH,OAAA;AATN,IAAAI,mBAAM,GAAcJ,OAAA,eAAO;AAAa,IACtCK,WAAM,OAAAH,WAAA,CAAAI,MAAA,EAAAH,WAAA,CAAAI,WAAA;EACNC,IAAA,UAAQ;EACRC,MAAM;EACPC,IAAA;AAEM;AAA2B,IAC/Bd,MAAE,GAAMS,WAAa,CAAAM,SAAS,WAAWC,KAAA,EAAAC,GAAA;EACxC;IAAAC,IACE;IAAAC,MAAA;IAAAC,GAAA;IAAA,GAAAC;EAAA,IAAAL,KAAA;EAAA,OAAC,mBAAAb,kBAAA,CAAAmB,GAAA,EAAAb,WAAA;IAAA,GAAAY,KAAA;IAAA,IAAAhB,gBACK,CAAAkB,KAAA;MAAAL,IACH;MACGC,MACE;MAAAC;IACA;MACAI,OAEF,WAAAA,CAAAC,KAAA;QAAA,IACEC,cAAU;QACR,CAAAA,cAAM,GAAAL,KAAU,CAAAG,OAAK,cAAAE,cAAA,uBAAAA,cAAA,CAAAC,IAAA,CAAAN,KAAA,EAAAI,KAAA;QACrB,IAAAP,IAAI,UAAS;UACXV,mBAAA,CAAAoB,OAAA,CAAAC,OAAQ,CAAAX,IAAQ;QAAI;MACtB;IACF;IACFD;EACJ;AAAA","ignoreList":[]}
|
|
@@ -0,0 +1,38 @@
|
|
|
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 EnsureFlexed_exports = {};
|
|
24
|
+
__export(EnsureFlexed_exports, {
|
|
25
|
+
EnsureFlexed: () => EnsureFlexed
|
|
26
|
+
});
|
|
27
|
+
module.exports = __toCommonJS(EnsureFlexed_exports);
|
|
28
|
+
var import_core = require("@hanzogui/core");
|
|
29
|
+
const 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"] = true;
|
|
@@ -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: 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 EnsureFlexed_exports = {};
|
|
26
|
+
__export(EnsureFlexed_exports, {
|
|
27
|
+
EnsureFlexed: () => EnsureFlexed
|
|
28
|
+
});
|
|
29
|
+
module.exports = __toCommonJS(EnsureFlexed_exports);
|
|
30
|
+
var import_core = require("@hanzogui/core");
|
|
31
|
+
var EnsureFlexed = (0, import_core.styled)(import_core.Text, {
|
|
32
|
+
opacity: 0,
|
|
33
|
+
lineHeight: 0,
|
|
34
|
+
height: 0,
|
|
35
|
+
display: "flex",
|
|
36
|
+
fontSize: 200,
|
|
37
|
+
children: "wwwwwwwwwwwwwwwwwww",
|
|
38
|
+
pointerEvents: "none"
|
|
39
|
+
});
|
|
40
|
+
EnsureFlexed["isVisuallyHidden"] = true;
|
|
41
|
+
//# sourceMappingURL=EnsureFlexed.native.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","EnsureFlexed_exports","__export","EnsureFlexed","module","exports","import_core","require","styled","Text","opacity","lineHeight","height","display","fontSize","children","pointerEvents"],"sources":["../../../src/views/EnsureFlexed.tsx"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;EAAAC,KAAA;AAAA,IAAAH,GAAA;AAAA,IAAAI,oBAAA;AAAAC,QAAA,CAAAD,oBAAA;EAAAE,YAAA,EAAAA,CAAA,KAAAA;AAAA;AAAAC,MAAA,CAAAC,OAAA,GAAAT,YAA6B,CAAAK,oBAAA;AAItB,IAAAK,WAAM,GAAAC,OAAe;AAAa,IACvCJ,YAAS,OAAAG,WAAA,CAAAE,MAAA,EAAAF,WAAA,CAAAG,IAAA;EACTC,OAAA;EACAC,UAAQ;EACRC,MAAA,GAAS;EACTC,OAAA,QAAU;EACVC,QAAA,EAAU;EACVC,QAAA,uBAAe;EAChBC,aAAA;AAID","ignoreList":[]}
|
|
@@ -0,0 +1,43 @@
|
|
|
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 Fieldset_exports = {};
|
|
24
|
+
__export(Fieldset_exports, {
|
|
25
|
+
Fieldset: () => Fieldset
|
|
26
|
+
});
|
|
27
|
+
module.exports = __toCommonJS(Fieldset_exports);
|
|
28
|
+
var import_core = require("@hanzogui/core");
|
|
29
|
+
var import_stacks = require("@hanzogui/stacks");
|
|
30
|
+
const Fieldset = (0, import_core.styled)(import_stacks.YStack, {
|
|
31
|
+
name: "Fieldset",
|
|
32
|
+
render: "fieldset",
|
|
33
|
+
// remove browser default styling
|
|
34
|
+
borderWidth: 0,
|
|
35
|
+
variants: {
|
|
36
|
+
horizontal: {
|
|
37
|
+
true: {
|
|
38
|
+
flexDirection: "row",
|
|
39
|
+
alignItems: "center"
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
});
|
|
@@ -0,0 +1,46 @@
|
|
|
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 Fieldset_exports = {};
|
|
26
|
+
__export(Fieldset_exports, {
|
|
27
|
+
Fieldset: () => Fieldset
|
|
28
|
+
});
|
|
29
|
+
module.exports = __toCommonJS(Fieldset_exports);
|
|
30
|
+
var import_core = require("@hanzogui/core");
|
|
31
|
+
var import_stacks = require("@hanzogui/stacks");
|
|
32
|
+
var Fieldset = (0, import_core.styled)(import_stacks.YStack, {
|
|
33
|
+
name: "Fieldset",
|
|
34
|
+
render: "fieldset",
|
|
35
|
+
// remove browser default styling
|
|
36
|
+
borderWidth: 0,
|
|
37
|
+
variants: {
|
|
38
|
+
horizontal: {
|
|
39
|
+
true: {
|
|
40
|
+
flexDirection: "row",
|
|
41
|
+
alignItems: "center"
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
});
|
|
46
|
+
//# sourceMappingURL=Fieldset.native.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","Fieldset_exports","__export","Fieldset","module","exports","import_core","require","import_stacks","styled","YStack","name","render","borderWidth","variants","horizontal","true","flexDirection","alignItems"],"sources":["../../../src/views/Fieldset.tsx"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;EAAAC,KAAA;AAAA,IAAAH,GAAA;AAAA,IAAAI,gBAAA;AAAAC,QAAA,CAAAD,gBAAA;EAAAE,QAAA,EAAAA,CAAA,KAAAA;AAAA;AACAC,MAAA,CAAAC,OAAA,GAAAT,YAAuB,CAAAK,gBAAA;AACvB,IAAAK,WAAA,GAAAC,OAAuB;AAEhB,IAAAC,aAAM,GAAAD,OAAW,mBAAO;AAAQ,IACrCJ,QAAM,OAAAG,WAAA,CAAAG,MAAA,EAAAD,aAAA,CAAAE,MAAA;EACNC,IAAA,YAAQ;EAAAC,MAAA;EAGR;EAEAC,WAAU;EAAAC,QACR;IAAYC,UACJ;MAAAC,IACJ;QACAC,aAAY;QACdC,UAAA;MACF;IACF;EACD","ignoreList":[]}
|
|
@@ -0,0 +1,46 @@
|
|
|
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 GuiProvider_exports = {};
|
|
24
|
+
__export(GuiProvider_exports, {
|
|
25
|
+
GuiProvider: () => GuiProvider
|
|
26
|
+
});
|
|
27
|
+
module.exports = __toCommonJS(GuiProvider_exports);
|
|
28
|
+
var import_core = require("@hanzogui/core");
|
|
29
|
+
var import_portal = require("@hanzogui/portal");
|
|
30
|
+
var import_z_index_stack = require("@hanzogui/z-index-stack");
|
|
31
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
32
|
+
const GuiProvider = ({
|
|
33
|
+
children,
|
|
34
|
+
...props
|
|
35
|
+
}) => {
|
|
36
|
+
return /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_core.GuiProvider, {
|
|
37
|
+
...props,
|
|
38
|
+
children: /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_z_index_stack.ZIndexStackContext.Provider, {
|
|
39
|
+
value: 1,
|
|
40
|
+
children: /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_portal.PortalProvider, {
|
|
41
|
+
shouldAddRootHost: true,
|
|
42
|
+
children
|
|
43
|
+
})
|
|
44
|
+
})
|
|
45
|
+
});
|
|
46
|
+
};
|
|
@@ -0,0 +1,50 @@
|
|
|
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 GuiProvider_exports = {};
|
|
26
|
+
__export(GuiProvider_exports, {
|
|
27
|
+
GuiProvider: () => GuiProvider
|
|
28
|
+
});
|
|
29
|
+
module.exports = __toCommonJS(GuiProvider_exports);
|
|
30
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
31
|
+
var import_core = require("@hanzogui/core");
|
|
32
|
+
var import_portal = require("@hanzogui/portal");
|
|
33
|
+
var import_z_index_stack = require("@hanzogui/z-index-stack");
|
|
34
|
+
var GuiProvider = function (param) {
|
|
35
|
+
var {
|
|
36
|
+
children,
|
|
37
|
+
...props
|
|
38
|
+
} = param;
|
|
39
|
+
return /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_core.GuiProvider, {
|
|
40
|
+
...props,
|
|
41
|
+
children: /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_z_index_stack.ZIndexStackContext.Provider, {
|
|
42
|
+
value: 1,
|
|
43
|
+
children: /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_portal.PortalProvider, {
|
|
44
|
+
shouldAddRootHost: true,
|
|
45
|
+
children
|
|
46
|
+
})
|
|
47
|
+
})
|
|
48
|
+
});
|
|
49
|
+
};
|
|
50
|
+
//# sourceMappingURL=GuiProvider.native.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","GuiProvider_exports","__export","GuiProvider","module","exports","import_jsx_runtime","require","import_core","import_portal","import_z_index_stack","param","children","props"],"sources":["../../../src/views/GuiProvider.tsx"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;EAAAC,KAAA;AAAA,IAAAH,GAAA;AAAA,IAAAI,mBAAA;AAAAC,QAAA,CAAAD,mBAAA;EAAAE,WAAA,EAAAA,CAAA,KAAAA;AAAA;AACAC,MAAA,CAAAC,OAAA,GAAAT,YAA0C,CAAAK,mBAAA;AAC1C,IAAAK,kBAA+B,GAAAC,OAAA;AAC/B,IAAAC,WAAA,GAAAD,OAAA,iBAAmC;AAM3B,IAAAE,aAAA,GAAAF,OAAA;AAJD,IAAAG,oBAAuB,GAAAH,OAAU,0BAAiC;AACvE,IAAAJ,WACE,YAAAA,CAAAQ,KAAA;EAMJ;IAAAC,QAAA;IAAA,GAAAC;EAAA,IAAAF,KAAA","ignoreList":[]}
|
|
@@ -0,0 +1,40 @@
|
|
|
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 Text_exports = {};
|
|
24
|
+
__export(Text_exports, {
|
|
25
|
+
Text: () => Text
|
|
26
|
+
});
|
|
27
|
+
module.exports = __toCommonJS(Text_exports);
|
|
28
|
+
var import_core = require("@hanzogui/core");
|
|
29
|
+
const 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.GUI_HEADLESS === "1"
|
|
39
|
+
}
|
|
40
|
+
});
|
|
@@ -0,0 +1,43 @@
|
|
|
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 Text_exports = {};
|
|
26
|
+
__export(Text_exports, {
|
|
27
|
+
Text: () => Text
|
|
28
|
+
});
|
|
29
|
+
module.exports = __toCommonJS(Text_exports);
|
|
30
|
+
var import_core = require("@hanzogui/core");
|
|
31
|
+
var Text = (0, import_core.styled)(import_core.Text, {
|
|
32
|
+
variants: {
|
|
33
|
+
unstyled: {
|
|
34
|
+
false: {
|
|
35
|
+
color: "$color"
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
defaultVariants: {
|
|
40
|
+
unstyled: process.env.GUI_HEADLESS === "1"
|
|
41
|
+
}
|
|
42
|
+
});
|
|
43
|
+
//# sourceMappingURL=Text.native.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","Text_exports","__export","Text","module","exports","import_core","require","styled","variants","unstyled","false","color","defaultVariants","process","env","GUI_HEADLESS"],"sources":["../../../src/views/Text.tsx"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;EAAAC,KAAA;AAAA,IAAAH,GAAA;AAAA,IAAAI,YAAA;AAAAC,QAAA,CAAAD,YAAA;EAAAE,IAAA,EAAAA,CAAA,KAAAA;AAAA;AAAAC,MAAA,CAAAC,OAAA,GAAAT,YAAwC,CAAAK,YAAA;AAEjC,IAAAK,WAAM,GAAOC,OAAA,iBAAO;AAAS,IAClCJ,IAAA,IAAU,GAAAG,WAAA,CAAAE,MAAA,EAAAF,WAAA,CAAAH,IAAA;EAAAM,QACR;IAAUC,QACR,EAAO;MAAAC,KACL;QACFC,KAAA;MACF;IACF;EAEA;EAAiBC,eACL;IACZH,QAAA,EAAAI,OAAA,CAAAC,GAAA,CAAAC,YAAA;EACD","ignoreList":[]}
|
|
@@ -0,0 +1,60 @@
|
|
|
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 VisuallyHidden_exports = {};
|
|
24
|
+
__export(VisuallyHidden_exports, {
|
|
25
|
+
VisuallyHidden: () => VisuallyHidden
|
|
26
|
+
});
|
|
27
|
+
module.exports = __toCommonJS(VisuallyHidden_exports);
|
|
28
|
+
var import_core = require("@hanzogui/core");
|
|
29
|
+
const 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"] = true;
|