@hanzo/gui 2.0.0-rc.29
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 +21 -0
- package/bundle-native.mjs +20 -0
- 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 +102 -0
- package/dist/cjs/index.native.js +105 -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 +19 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/index.mjs +19 -0
- package/dist/esm/index.mjs.map +1 -0
- package/dist/esm/index.native.js +19 -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 +19 -0
- package/dist/jsx/index.js.map +1 -0
- package/dist/jsx/index.mjs +19 -0
- package/dist/jsx/index.mjs.map +1 -0
- package/dist/jsx/index.native.js +105 -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/gui.config.ts +4 -0
- package/linear-gradient/index.cjs +2 -0
- package/linear-gradient/index.d.ts +1 -0
- package/linear-gradient/index.js +2 -0
- package/linear-gradient/index.native.cjs +2 -0
- package/linear-gradient/index.native.js +2 -0
- package/native/index.cjs +2 -0
- package/native/index.js +2 -0
- package/native-test/index.cjs +2 -0
- package/native-test/index.js +2 -0
- package/native-test/index.native.cjs +2 -0
- package/native-test/index.native.js +2 -0
- package/native-test.cjs +1 -0
- package/native-test.d.ts +1 -0
- package/native.cjs +1 -0
- package/native.d.ts +1 -0
- package/package.json +111 -0
- package/react-native-web/index.cjs +2 -0
- package/react-native-web/index.js +2 -0
- package/react-native-web/index.native.cjs +2 -0
- package/react-native-web/index.native.js +2 -0
- package/react-native-web.cjs +1 -0
- package/src/createGui.ts +72 -0
- package/src/index.ts +157 -0
- package/src/setup.ts +13 -0
- package/src/viewTypes.tsx +50 -0
- package/src/views/EnsureFlexed.tsx +17 -0
- package/src/views/GuiProvider.tsx +5 -0
- package/src/views/Text.tsx +15 -0
- package/src/views/VisuallyHidden.tsx +38 -0
- package/tsconfig.json +171 -0
- package/types/createGui.d.ts +6 -0
- package/types/createGui.d.ts.map +1 -0
- package/types/index.d.ts +20 -0
- package/types/index.d.ts.map +1 -0
- package/types/setup.d.ts +2 -0
- package/types/setup.d.ts.map +1 -0
- package/types/viewTypes.d.ts +43 -0
- package/types/viewTypes.d.ts.map +1 -0
- package/types/views/EnsureFlexed.d.ts +2 -0
- package/types/views/EnsureFlexed.d.ts.map +1 -0
- package/types/views/GuiProvider.d.ts +4 -0
- package/types/views/GuiProvider.d.ts.map +1 -0
- package/types/views/Text.d.ts +4 -0
- package/types/views/Text.d.ts.map +1 -0
- package/types/views/VisuallyHidden.d.ts +5 -0
- package/types/views/VisuallyHidden.d.ts.map +1 -0
- package/web/index.cjs +2 -0
- package/web/index.js +2 -0
- package/web/index.native.cjs +2 -0
- package/web/index.native.js +2 -0
- package/web.cjs +1 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2020 Nate Wienert
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
import { bundleNative } from '@hanzo/gui-native-bundle'
|
|
4
|
+
|
|
5
|
+
// Bundle for production (native.cjs)
|
|
6
|
+
await bundleNative({
|
|
7
|
+
entry: 'src/index.ts',
|
|
8
|
+
outDir: 'dist',
|
|
9
|
+
fileName: 'native.cjs',
|
|
10
|
+
})
|
|
11
|
+
|
|
12
|
+
// Bundle for tests (test.cjs)
|
|
13
|
+
await bundleNative({
|
|
14
|
+
entry: 'src/index.ts',
|
|
15
|
+
outDir: 'dist',
|
|
16
|
+
fileName: 'test.cjs',
|
|
17
|
+
define: {
|
|
18
|
+
'process.env.NODE_ENV': JSON.stringify('test'),
|
|
19
|
+
},
|
|
20
|
+
})
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all) __defProp(target, name, {
|
|
7
|
+
get: all[name],
|
|
8
|
+
enumerable: !0
|
|
9
|
+
});
|
|
10
|
+
},
|
|
11
|
+
__copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
|
|
13
|
+
get: () => from[key],
|
|
14
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
15
|
+
});
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
19
|
+
value: !0
|
|
20
|
+
}), mod);
|
|
21
|
+
var createGui_exports = {};
|
|
22
|
+
__export(createGui_exports, {
|
|
23
|
+
createGui: () => createGui
|
|
24
|
+
});
|
|
25
|
+
module.exports = __toCommonJS(createGui_exports);
|
|
26
|
+
var import_gui_core = require("@hanzo/gui-core");
|
|
27
|
+
const createGui = process.env.NODE_ENV !== "development" ? import_gui_core.createGui : conf => {
|
|
28
|
+
const sizeTokenKeys = ["$true"],
|
|
29
|
+
hasKeys = (expectedKeys, obj) => expectedKeys.every(k => typeof obj[k] < "u"),
|
|
30
|
+
guiConfig = (0, import_gui_core.createGui)(conf);
|
|
31
|
+
for (const name of ["size", "space"]) {
|
|
32
|
+
const tokenSet = guiConfig.tokensParsed[name];
|
|
33
|
+
if (!tokenSet) throw new Error(`Expected tokens for "${name}" in ${Object.keys(guiConfig.tokensParsed).join(", ")}`);
|
|
34
|
+
if (!hasKeys(sizeTokenKeys, tokenSet)) throw new Error(`
|
|
35
|
+
createGui() missing expected tokens.${name}:
|
|
36
|
+
|
|
37
|
+
Received: ${Object.keys(tokenSet).join(", ")}
|
|
38
|
+
|
|
39
|
+
Expected: ${sizeTokenKeys.join(", ")}
|
|
40
|
+
|
|
41
|
+
Hanzo GUI expects a "true" key that is the same value as your default size. This is so
|
|
42
|
+
it can size things up or down from the defaults without assuming which keys you use.
|
|
43
|
+
|
|
44
|
+
Please define a "true" or "$true" key on your size and space tokens like so (example):
|
|
45
|
+
|
|
46
|
+
size: {
|
|
47
|
+
sm: 2,
|
|
48
|
+
md: 10,
|
|
49
|
+
true: 10, // this means "md" is your default size
|
|
50
|
+
lg: 20,
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
`);
|
|
54
|
+
}
|
|
55
|
+
const expected = Object.keys(guiConfig.tokensParsed.size);
|
|
56
|
+
for (const name of ["radius", "zIndex"]) {
|
|
57
|
+
const tokenSet = guiConfig.tokensParsed[name],
|
|
58
|
+
received = Object.keys(tokenSet);
|
|
59
|
+
if (!received.some(rk => expected.includes(rk))) throw new Error(`
|
|
60
|
+
createGui() invalid tokens.${name}:
|
|
61
|
+
|
|
62
|
+
Received: ${received.join(", ")}
|
|
63
|
+
|
|
64
|
+
Expected a subset of: ${expected.join(", ")}
|
|
65
|
+
|
|
66
|
+
`);
|
|
67
|
+
}
|
|
68
|
+
return guiConfig;
|
|
69
|
+
};
|
|
@@ -0,0 +1,77 @@
|
|
|
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 createGui_exports = {};
|
|
24
|
+
__export(createGui_exports, {
|
|
25
|
+
createGui: () => createGui
|
|
26
|
+
});
|
|
27
|
+
module.exports = __toCommonJS(createGui_exports);
|
|
28
|
+
var import_gui_core = require("@hanzo/gui-core"),
|
|
29
|
+
createGui = process.env.NODE_ENV !== "development" ? import_gui_core.createGui : function (conf) {
|
|
30
|
+
for (var sizeTokenKeys = ["$true"], hasKeys = function (expectedKeys, obj) {
|
|
31
|
+
return expectedKeys.every(function (k) {
|
|
32
|
+
return typeof obj[k] < "u";
|
|
33
|
+
});
|
|
34
|
+
}, guiConfig = (0, import_gui_core.createGui)(conf), _i = 0, _iter = ["size", "space"]; _i < _iter.length; _i++) {
|
|
35
|
+
var name = _iter[_i],
|
|
36
|
+
tokenSet = guiConfig.tokensParsed[name];
|
|
37
|
+
if (!tokenSet) throw new Error(`Expected tokens for "${name}" in ${Object.keys(guiConfig.tokensParsed).join(", ")}`);
|
|
38
|
+
if (!hasKeys(sizeTokenKeys, tokenSet)) throw new Error(`
|
|
39
|
+
createGui() missing expected tokens.${name}:
|
|
40
|
+
|
|
41
|
+
Received: ${Object.keys(tokenSet).join(", ")}
|
|
42
|
+
|
|
43
|
+
Expected: ${sizeTokenKeys.join(", ")}
|
|
44
|
+
|
|
45
|
+
Hanzo GUI expects a "true" key that is the same value as your default size. This is so
|
|
46
|
+
it can size things up or down from the defaults without assuming which keys you use.
|
|
47
|
+
|
|
48
|
+
Please define a "true" or "$true" key on your size and space tokens like so (example):
|
|
49
|
+
|
|
50
|
+
size: {
|
|
51
|
+
sm: 2,
|
|
52
|
+
md: 10,
|
|
53
|
+
true: 10, // this means "md" is your default size
|
|
54
|
+
lg: 20,
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
`);
|
|
58
|
+
}
|
|
59
|
+
for (var expected = Object.keys(guiConfig.tokensParsed.size), _i1 = 0, _iter1 = ["radius", "zIndex"]; _i1 < _iter1.length; _i1++) {
|
|
60
|
+
var name1 = _iter1[_i1],
|
|
61
|
+
tokenSet1 = guiConfig.tokensParsed[name1],
|
|
62
|
+
received = Object.keys(tokenSet1),
|
|
63
|
+
hasSomeOverlap = received.some(function (rk) {
|
|
64
|
+
return expected.includes(rk);
|
|
65
|
+
});
|
|
66
|
+
if (!hasSomeOverlap) throw new Error(`
|
|
67
|
+
createGui() invalid tokens.${name1}:
|
|
68
|
+
|
|
69
|
+
Received: ${received.join(", ")}
|
|
70
|
+
|
|
71
|
+
Expected a subset of: ${expected.join(", ")}
|
|
72
|
+
|
|
73
|
+
`);
|
|
74
|
+
}
|
|
75
|
+
return guiConfig;
|
|
76
|
+
};
|
|
77
|
+
//# sourceMappingURL=createGui.native.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","createGui_exports","__export","createGui","module","exports","import_gui_core","require","process","env","NODE_ENV","conf","sizeTokenKeys","hasKeys","expectedKeys","obj","every","k","guiConfig","_i","_iter","length","name","tokenSet","tokensParsed","Error","Object","keys","join","expected","size","_i1","_iter1","name1","tokenSet1","received","hasSomeOverlap","some","rk","includes"],"sources":["../../src/createGui.ts"],"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,YAA2C,CAAAK,iBAAA;AAMpC,IAAAK,eACL,GAAAC,OAAQ,CAAI,iBAAa;EAAAJ,SACrB,GAAAK,OAAA,CAAAC,GAAA,CAAAC,QAAA,KACA,aAAU,GAAAJ,eAAA,CAAAH,SAAA,aAAAQ,IAAA;IACR,SAAMC,aAAgB,GAAC,CASvB,QACE,EAAAC,OAAM,YAAAA,CAAWC,YAAU,EAAAC,GAAA;QAC3B,OAAKD,YAAA,CAAAE,KAAA,WAAAC,CAAA;UACH,OAAM,OAAIF,GAAA,CAAAE,CAAA;QAAA;MACmC,GAAAC,SACzC,OAAUZ,eAAA,CAAAH,SAAA,EAAAQ,IAAA,GAAAQ,EAAA,MAAAC,KAAA,UACV,EAAU,OACd,CAEF,EAAAD,EAAA,GAAKC,KAAA,CAAAC,MAAQ,EAAAF,EAAA;MACX,IAAAG,IAAM,GAAAF,KAAI,CAAAD,EAAM;QAAAI,QAAA,GAAAL,SAAA,CAAAM,YAAA,CAAAF,IAAA;MAAA,KAAAC,QAAA,EACc,UAAAE,KAAA,yBAAAH,IAAA,QAAAI,MAAA,CAAAC,IAAA,CAAAT,SAAA,CAAAM,YAAA,EAAAI,IAAA;MAAA,KAAAf,OAE9B,CAAAD,aAAY,EAAQW,QAAO,GAAK,UAAAE,KAAA;AAAA,sCAERH,IAAA;AAAA;AAAA,YAAAI,MAAA,CAAAC,IAAA,CAAAJ,QAAA,EAAAK,IAAA;AAAA;AAAA,YAAAhB,aAAA,CAAAgB,IAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAcnC;AAKO;AACA;AACE;IAGA;IACE,SAAAC,QAAU,GAAMH,MAAA,CAAAC,IAAA,CAAAT,SAAA,CAAAM,YAAA,CAAAM,IAAA,GAAAC,GAAA,MAAAC,MAAA,cACK,WAAAD,GAAA,GAAAC,MAErB,CAAAX,MAAS,EAAKU,GAAA,EAAK;MAAA,IAAAE,KAAA,GAAAD,MAAA,CAAAD,GAAA;QAAAG,SAAA,GAAAhB,SAAA,CAAAM,YAAA,CAAAS,KAAA;QAAAE,QAAA,GAAAT,MAAA,CAAAC,IAAA,CAAAO,SAAA;QAAAE,cAAA,GAAAD,QAAA,CAAAE,IAAA,WAAAC,EAAA;UAAA,OAAAT,QAAA,CAAAU,QAEP,CAAAD,EAAS;QAAU;MAE1C,KAAAF,cAAA,EAEO,UAAAX,KAAA;AAEA,6BAAOQ,KAAA;AACT","ignoreList":[]}
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all) __defProp(target, name, {
|
|
7
|
+
get: all[name],
|
|
8
|
+
enumerable: !0
|
|
9
|
+
});
|
|
10
|
+
},
|
|
11
|
+
__copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
|
|
13
|
+
get: () => from[key],
|
|
14
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
15
|
+
});
|
|
16
|
+
return to;
|
|
17
|
+
},
|
|
18
|
+
__reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
19
|
+
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
20
|
+
value: !0
|
|
21
|
+
}), mod);
|
|
22
|
+
var index_exports = {};
|
|
23
|
+
__export(index_exports, {
|
|
24
|
+
ClientOnly: () => import_gui_core.ClientOnly,
|
|
25
|
+
ComponentContext: () => import_gui_core.ComponentContext,
|
|
26
|
+
Configuration: () => import_gui_core.Configuration,
|
|
27
|
+
FontLanguage: () => import_gui_core.FontLanguage,
|
|
28
|
+
GroupContext: () => import_gui_core.GroupContext,
|
|
29
|
+
Theme: () => import_gui_core.Theme,
|
|
30
|
+
View: () => import_gui_core.View,
|
|
31
|
+
_withStableStyle: () => import_gui_core._withStableStyle,
|
|
32
|
+
createComponent: () => import_gui_core.createComponent,
|
|
33
|
+
createFont: () => import_gui_core.createFont,
|
|
34
|
+
createShorthands: () => import_gui_core.createShorthands,
|
|
35
|
+
createStyledContext: () => import_gui_core.createStyledContext,
|
|
36
|
+
createTokens: () => import_gui_core.createTokens,
|
|
37
|
+
createVariable: () => import_gui_core.createVariable,
|
|
38
|
+
getCSSStylesAtomic: () => import_gui_core.getCSSStylesAtomic,
|
|
39
|
+
getConfig: () => import_gui_core.getConfig,
|
|
40
|
+
getMedia: () => import_gui_core.getMedia,
|
|
41
|
+
getThemes: () => import_gui_core.getThemes,
|
|
42
|
+
getToken: () => import_gui_core.getToken,
|
|
43
|
+
getTokenValue: () => import_gui_core.getTokenValue,
|
|
44
|
+
getTokens: () => import_gui_core.getTokens,
|
|
45
|
+
getVariable: () => import_gui_core.getVariable,
|
|
46
|
+
getVariableName: () => import_gui_core.getVariableName,
|
|
47
|
+
getVariableValue: () => import_gui_core.getVariableValue,
|
|
48
|
+
insertFont: () => import_gui_core.insertFont,
|
|
49
|
+
isBrowser: () => import_gui_core.isBrowser,
|
|
50
|
+
isChrome: () => import_gui_core.isChrome,
|
|
51
|
+
isClient: () => import_gui_core.isClient,
|
|
52
|
+
isGuiComponent: () => import_gui_core.isGuiComponent,
|
|
53
|
+
isGuiElement: () => import_gui_core.isGuiElement,
|
|
54
|
+
isServer: () => import_gui_core.isServer,
|
|
55
|
+
isTouchable: () => import_gui_core.isTouchable,
|
|
56
|
+
isVariable: () => import_gui_core.isVariable,
|
|
57
|
+
isWeb: () => import_gui_core.isWeb,
|
|
58
|
+
isWebTouchable: () => import_gui_core.isWebTouchable,
|
|
59
|
+
matchMedia: () => import_gui_core.matchMedia,
|
|
60
|
+
mediaObjectToString: () => import_gui_core.mediaObjectToString,
|
|
61
|
+
mediaQueryConfig: () => import_gui_core.mediaQueryConfig,
|
|
62
|
+
mediaState: () => import_gui_core.mediaState,
|
|
63
|
+
setConfig: () => import_gui_core.setConfig,
|
|
64
|
+
setOnLayoutStrategy: () => import_gui_core.setOnLayoutStrategy,
|
|
65
|
+
setupDev: () => import_gui_core.setupDev,
|
|
66
|
+
styled: () => import_gui_core.styled,
|
|
67
|
+
themeable: () => import_gui_core.themeable,
|
|
68
|
+
useClientValue: () => import_gui_core.useClientValue,
|
|
69
|
+
useConfiguration: () => import_gui_core.useConfiguration,
|
|
70
|
+
useDidFinishSSR: () => import_gui_core.useDidFinishSSR,
|
|
71
|
+
useEvent: () => import_gui_core.useEvent,
|
|
72
|
+
useGet: () => import_gui_core.useGet,
|
|
73
|
+
useIsTouchDevice: () => import_gui_core.useIsTouchDevice,
|
|
74
|
+
useIsomorphicLayoutEffect: () => import_gui_core.useIsomorphicLayoutEffect,
|
|
75
|
+
useMedia: () => import_gui_core.useMedia,
|
|
76
|
+
useProps: () => import_gui_core.useProps,
|
|
77
|
+
usePropsAndStyle: () => import_gui_core.usePropsAndStyle,
|
|
78
|
+
useStyle: () => import_gui_core.useStyle,
|
|
79
|
+
useTheme: () => import_gui_core.useTheme,
|
|
80
|
+
useThemeName: () => import_gui_core.useThemeName,
|
|
81
|
+
variableToString: () => import_gui_core.variableToString,
|
|
82
|
+
withStaticProperties: () => import_gui_core.withStaticProperties
|
|
83
|
+
});
|
|
84
|
+
module.exports = __toCommonJS(index_exports);
|
|
85
|
+
var import_setup = require("./setup.cjs");
|
|
86
|
+
__reExport(index_exports, require("@hanzo/gui-compose-refs"), module.exports);
|
|
87
|
+
__reExport(index_exports, require("@hanzo/gui-create-context"), module.exports);
|
|
88
|
+
__reExport(index_exports, require("@hanzo/gui-font-size"), module.exports);
|
|
89
|
+
__reExport(index_exports, require("@hanzo/gui-react-native-media-driver"), module.exports);
|
|
90
|
+
__reExport(index_exports, require("@hanzo/gui-helpers"), module.exports);
|
|
91
|
+
__reExport(index_exports, require("@hanzo/gui-theme"), module.exports);
|
|
92
|
+
__reExport(index_exports, require("@hanzo/gui-use-controllable-state"), module.exports);
|
|
93
|
+
__reExport(index_exports, require("@hanzo/gui-use-debounce"), module.exports);
|
|
94
|
+
__reExport(index_exports, require("@hanzo/gui-use-force-update"), module.exports);
|
|
95
|
+
__reExport(index_exports, require("@hanzo/gui-element"), module.exports);
|
|
96
|
+
__reExport(index_exports, require("@hanzo/gui-use-window-dimensions"), module.exports);
|
|
97
|
+
__reExport(index_exports, require("./createGui.cjs"), module.exports);
|
|
98
|
+
__reExport(index_exports, require("./viewTypes.cjs"), module.exports);
|
|
99
|
+
__reExport(index_exports, require("./views/GuiProvider.cjs"), module.exports);
|
|
100
|
+
__reExport(index_exports, require("./views/EnsureFlexed.cjs"), module.exports);
|
|
101
|
+
__reExport(index_exports, require("./views/Text.cjs"), module.exports);
|
|
102
|
+
var import_gui_core = require("@hanzo/gui-core");
|
|
@@ -0,0 +1,105 @@
|
|
|
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
|
+
__reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
21
|
+
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
22
|
+
value: !0
|
|
23
|
+
}), mod);
|
|
24
|
+
var index_exports = {};
|
|
25
|
+
__export(index_exports, {
|
|
26
|
+
ClientOnly: () => import_gui_core.ClientOnly,
|
|
27
|
+
ComponentContext: () => import_gui_core.ComponentContext,
|
|
28
|
+
Configuration: () => import_gui_core.Configuration,
|
|
29
|
+
FontLanguage: () => import_gui_core.FontLanguage,
|
|
30
|
+
GroupContext: () => import_gui_core.GroupContext,
|
|
31
|
+
Theme: () => import_gui_core.Theme,
|
|
32
|
+
View: () => import_gui_core.View,
|
|
33
|
+
_withStableStyle: () => import_gui_core._withStableStyle,
|
|
34
|
+
createComponent: () => import_gui_core.createComponent,
|
|
35
|
+
createFont: () => import_gui_core.createFont,
|
|
36
|
+
createShorthands: () => import_gui_core.createShorthands,
|
|
37
|
+
createStyledContext: () => import_gui_core.createStyledContext,
|
|
38
|
+
createTokens: () => import_gui_core.createTokens,
|
|
39
|
+
createVariable: () => import_gui_core.createVariable,
|
|
40
|
+
getCSSStylesAtomic: () => import_gui_core.getCSSStylesAtomic,
|
|
41
|
+
getConfig: () => import_gui_core.getConfig,
|
|
42
|
+
getMedia: () => import_gui_core.getMedia,
|
|
43
|
+
getThemes: () => import_gui_core.getThemes,
|
|
44
|
+
getToken: () => import_gui_core.getToken,
|
|
45
|
+
getTokenValue: () => import_gui_core.getTokenValue,
|
|
46
|
+
getTokens: () => import_gui_core.getTokens,
|
|
47
|
+
getVariable: () => import_gui_core.getVariable,
|
|
48
|
+
getVariableName: () => import_gui_core.getVariableName,
|
|
49
|
+
getVariableValue: () => import_gui_core.getVariableValue,
|
|
50
|
+
insertFont: () => import_gui_core.insertFont,
|
|
51
|
+
isBrowser: () => import_gui_core.isBrowser,
|
|
52
|
+
isChrome: () => import_gui_core.isChrome,
|
|
53
|
+
isClient: () => import_gui_core.isClient,
|
|
54
|
+
isGuiComponent: () => import_gui_core.isGuiComponent,
|
|
55
|
+
isGuiElement: () => import_gui_core.isGuiElement,
|
|
56
|
+
isServer: () => import_gui_core.isServer,
|
|
57
|
+
isTouchable: () => import_gui_core.isTouchable,
|
|
58
|
+
isVariable: () => import_gui_core.isVariable,
|
|
59
|
+
isWeb: () => import_gui_core.isWeb,
|
|
60
|
+
isWebTouchable: () => import_gui_core.isWebTouchable,
|
|
61
|
+
matchMedia: () => import_gui_core.matchMedia,
|
|
62
|
+
mediaObjectToString: () => import_gui_core.mediaObjectToString,
|
|
63
|
+
mediaQueryConfig: () => import_gui_core.mediaQueryConfig,
|
|
64
|
+
mediaState: () => import_gui_core.mediaState,
|
|
65
|
+
setConfig: () => import_gui_core.setConfig,
|
|
66
|
+
setOnLayoutStrategy: () => import_gui_core.setOnLayoutStrategy,
|
|
67
|
+
setupDev: () => import_gui_core.setupDev,
|
|
68
|
+
styled: () => import_gui_core.styled,
|
|
69
|
+
themeable: () => import_gui_core.themeable,
|
|
70
|
+
useClientValue: () => import_gui_core.useClientValue,
|
|
71
|
+
useConfiguration: () => import_gui_core.useConfiguration,
|
|
72
|
+
useDidFinishSSR: () => import_gui_core.useDidFinishSSR,
|
|
73
|
+
useEvent: () => import_gui_core.useEvent,
|
|
74
|
+
useGet: () => import_gui_core.useGet,
|
|
75
|
+
useIsTouchDevice: () => import_gui_core.useIsTouchDevice,
|
|
76
|
+
useIsomorphicLayoutEffect: () => import_gui_core.useIsomorphicLayoutEffect,
|
|
77
|
+
useMedia: () => import_gui_core.useMedia,
|
|
78
|
+
useProps: () => import_gui_core.useProps,
|
|
79
|
+
usePropsAndStyle: () => import_gui_core.usePropsAndStyle,
|
|
80
|
+
useStyle: () => import_gui_core.useStyle,
|
|
81
|
+
useTheme: () => import_gui_core.useTheme,
|
|
82
|
+
useThemeName: () => import_gui_core.useThemeName,
|
|
83
|
+
variableToString: () => import_gui_core.variableToString,
|
|
84
|
+
withStaticProperties: () => import_gui_core.withStaticProperties
|
|
85
|
+
});
|
|
86
|
+
module.exports = __toCommonJS(index_exports);
|
|
87
|
+
var import_setup = require("./setup.native.js");
|
|
88
|
+
__reExport(index_exports, require("@hanzo/gui-compose-refs"), module.exports);
|
|
89
|
+
__reExport(index_exports, require("@hanzo/gui-create-context"), module.exports);
|
|
90
|
+
__reExport(index_exports, require("@hanzo/gui-font-size"), module.exports);
|
|
91
|
+
__reExport(index_exports, require("@hanzo/gui-react-native-media-driver"), module.exports);
|
|
92
|
+
__reExport(index_exports, require("@hanzo/gui-helpers"), module.exports);
|
|
93
|
+
__reExport(index_exports, require("@hanzo/gui-theme"), module.exports);
|
|
94
|
+
__reExport(index_exports, require("@hanzo/gui-use-controllable-state"), module.exports);
|
|
95
|
+
__reExport(index_exports, require("@hanzo/gui-use-debounce"), module.exports);
|
|
96
|
+
__reExport(index_exports, require("@hanzo/gui-use-force-update"), module.exports);
|
|
97
|
+
__reExport(index_exports, require("@hanzo/gui-element"), module.exports);
|
|
98
|
+
__reExport(index_exports, require("@hanzo/gui-use-window-dimensions"), module.exports);
|
|
99
|
+
__reExport(index_exports, require("./createGui.native.js"), module.exports);
|
|
100
|
+
__reExport(index_exports, require("./viewTypes.native.js"), module.exports);
|
|
101
|
+
__reExport(index_exports, require("./views/GuiProvider.native.js"), module.exports);
|
|
102
|
+
__reExport(index_exports, require("./views/EnsureFlexed.native.js"), module.exports);
|
|
103
|
+
__reExport(index_exports, require("./views/Text.native.js"), module.exports);
|
|
104
|
+
var import_gui_core = require("@hanzo/gui-core");
|
|
105
|
+
//# sourceMappingURL=index.native.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","index_exports","__export","ClientOnly","import_gui_core","ComponentContext","Configuration","FontLanguage","GroupContext","Theme","View","_withStableStyle","createComponent","createFont","createShorthands","createStyledContext","createTokens","createVariable","getCSSStylesAtomic","getConfig","getMedia","getThemes","getToken","getTokenValue","getTokens","getVariable","getVariableName","getVariableValue","insertFont","isBrowser","isChrome","isClient","isGuiComponent","isGuiElement","isServer","isTouchable","isVariable","isWeb","isWebTouchable","matchMedia","mediaObjectToString","mediaQueryConfig","mediaState","setConfig","setOnLayoutStrategy","setupDev","styled","themeable","useClientValue","useConfiguration","useDidFinishSSR","useEvent","useGet","useIsTouchDevice","useIsomorphicLayoutEffect","useMedia","useProps","usePropsAndStyle","useStyle","useTheme","useThemeName","variableToString","withStaticProperties","module","exports","import_setup","require","__reExport"],"sources":["../../src/index.ts"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,GAAA,IAAA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CANd,GAAAH,MAAA,CAAAC,OAAA;AAOAG,UAAA,CAAAlE,aAAA,EAAciE,OAAA,sBAPd,EAAAH,MAAA,CAAAC,OAAA;AAQAG,UAAA,CAAAlE,aAAA,EAAciE,OAAA,sBAAAH,MAAA,CAAAC,OAAA;AACdG,UAAA,CAAAlE,aAAA,EAAciE,OAAA,oCATd,GAAAH,MAAA,CAAAC,OAAA;AAUAG,UAAA,CAAAlE,aAAA,EAAciE,OAAA,6BAAAH,MAVd,CAAAC,OAAA;AAWAG,UAAA,CAAAlE,aAAA,EAAciE,OAAA,8BAXd,GAAAH,MAAA,CAAAC,OAAA;AAYAG,UAAA,CAAAlE,aAAA,EAAciE,OAAA,wBAAAH,MAAA,CAAAC,OAZd;AAcAG,UAAA,CAAAlE,aAAA,EAAciE,OAAA,mCAdd,GAAAH,MAAA,CAAAC,OAAA;AAgBAG,UAAA,CAAAlE,aAAA,EAAciE,OAAA,2BAhBdH,MAAA,CAAAC,OAAA;AAiBAG,UAAA,CAAAlE,aAAA,EAAciE,OAAA,2BAAAH,MAAA,CAAAC,OAjBd;AAmBAG,UAAA,CAAAlE,aAAA,EAAciE,OAAA,mCAAAH,MAnBd,CAAAC,OAAA;AAoBAG,UAAA,CAAAlE,aAAA,EAAciE,OAAA,iCApBd,GAAAH,MAAA,CAAAC,OAAA;AA6FAG,UAAA,CAAAlE,aA+DO,EAAAiE,OAAA,4BAAAH,MAAA,CAAAC,OAAA","ignoreList":[]}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf,
|
|
6
|
+
__hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __copyProps = (to, from, except, desc) => {
|
|
8
|
+
if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
|
|
9
|
+
get: () => from[key],
|
|
10
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
11
|
+
});
|
|
12
|
+
return to;
|
|
13
|
+
};
|
|
14
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
15
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
16
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
17
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
18
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
19
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
20
|
+
value: mod,
|
|
21
|
+
enumerable: !0
|
|
22
|
+
}) : target, mod));
|
|
23
|
+
var import_gui_polyfill_dev = require("@hanzo/gui-polyfill-dev"),
|
|
24
|
+
React = __toESM(require("react"), 1);
|
|
25
|
+
globalThis.React ||= React;
|
|
26
|
+
typeof requestAnimationFrame > "u" && (globalThis.requestAnimationFrame = typeof setImmediate > "u" ? setTimeout : setImmediate);
|
|
@@ -0,0 +1,31 @@
|
|
|
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
|
+
__hasOwnProp = Object.prototype.hasOwnProperty;
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
|
|
11
|
+
get: () => from[key],
|
|
12
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
13
|
+
});
|
|
14
|
+
return to;
|
|
15
|
+
};
|
|
16
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
17
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
18
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
19
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
20
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
21
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
22
|
+
value: mod,
|
|
23
|
+
enumerable: !0
|
|
24
|
+
}) : target, mod));
|
|
25
|
+
var import_gui_polyfill_dev = require("@hanzo/gui-polyfill-dev"),
|
|
26
|
+
React = __toESM(require("react"), 1),
|
|
27
|
+
_globalThis,
|
|
28
|
+
_React;
|
|
29
|
+
(_globalThis = globalThis)[_React = "React"] || (_globalThis[_React] = React);
|
|
30
|
+
typeof requestAnimationFrame > "u" && (globalThis.requestAnimationFrame = typeof setImmediate > "u" ? setTimeout : setImmediate);
|
|
31
|
+
//# sourceMappingURL=setup.native.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["import_gui_polyfill_dev","require","React","__toESM","_globalThis","_React","globalThis"],"sources":["../../src/setup.ts"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;;;;;gBAAA;AAMA,IAAAA,uBAAwB,GAAAC,OAAA;EAAAC,KAAA,GAAAC,OAAA,CAAAF,OAAA;EAAAG,WAAA;EAAAC,MAAA;AAGpB,CAAAD,WAAO,GAAAE,UAAA,EAAAD,MAA0B,UACnC,MAAAD,WAAW,CAAAC,MAAA,IAAAH,KACT","ignoreList":[]}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __copyProps = (to, from, except, desc) => {
|
|
6
|
+
if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
|
|
7
|
+
get: () => from[key],
|
|
8
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
9
|
+
});
|
|
10
|
+
return to;
|
|
11
|
+
};
|
|
12
|
+
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
13
|
+
value: !0
|
|
14
|
+
}), mod);
|
|
15
|
+
var viewTypes_exports = {};
|
|
16
|
+
module.exports = __toCommonJS(viewTypes_exports);
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __copyProps = (to, from, except, desc) => {
|
|
8
|
+
if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
|
|
9
|
+
get: () => from[key],
|
|
10
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
11
|
+
});
|
|
12
|
+
return to;
|
|
13
|
+
};
|
|
14
|
+
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
15
|
+
value: !0
|
|
16
|
+
}), mod);
|
|
17
|
+
var viewTypes_exports = {};
|
|
18
|
+
module.exports = __toCommonJS(viewTypes_exports);
|
|
19
|
+
//# 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,36 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all) __defProp(target, name, {
|
|
7
|
+
get: all[name],
|
|
8
|
+
enumerable: !0
|
|
9
|
+
});
|
|
10
|
+
},
|
|
11
|
+
__copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
|
|
13
|
+
get: () => from[key],
|
|
14
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
15
|
+
});
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
19
|
+
value: !0
|
|
20
|
+
}), mod);
|
|
21
|
+
var EnsureFlexed_exports = {};
|
|
22
|
+
__export(EnsureFlexed_exports, {
|
|
23
|
+
EnsureFlexed: () => EnsureFlexed
|
|
24
|
+
});
|
|
25
|
+
module.exports = __toCommonJS(EnsureFlexed_exports);
|
|
26
|
+
var import_gui_core = require("@hanzo/gui-core");
|
|
27
|
+
const EnsureFlexed = (0, import_gui_core.styled)(import_gui_core.Text, {
|
|
28
|
+
opacity: 0,
|
|
29
|
+
lineHeight: 0,
|
|
30
|
+
height: 0,
|
|
31
|
+
display: "flex",
|
|
32
|
+
fontSize: 200,
|
|
33
|
+
children: "wwwwwwwwwwwwwwwwwww",
|
|
34
|
+
pointerEvents: "none"
|
|
35
|
+
});
|
|
36
|
+
EnsureFlexed.isVisuallyHidden = !0;
|
|
@@ -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_gui_core = require("@hanzo/gui-core"),
|
|
29
|
+
EnsureFlexed = (0, import_gui_core.styled)(import_gui_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":["__toCommonJS","mod","__copyProps","__defProp","value","EnsureFlexed_exports","__export","EnsureFlexed","module","exports","import_gui_core","require","styled","Text","opacity","lineHeight","height","display","fontSize","children","pointerEvents","isVisuallyHidden"],"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,eAAM,GAAAC,OAAe;EAAOJ,YAAA,OAAAG,eAAM,CAAAE,MAAA,EAAAF,eAAA,CAAAG,IAAA;IACvCC,OAAA,EAAS;IACTC,UAAA,EAAY;IACZC,MAAA,EAAQ;IACRC,OAAA,EAAS;IACTC,QAAA,EAAU;IACVC,QAAA,EAAU;IACVC,aAAA,EAAe;EACjB,CAAC;AAIDb,YAAA,CAAac,gBAAA,GAAsB","ignoreList":[]}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all) __defProp(target, name, {
|
|
7
|
+
get: all[name],
|
|
8
|
+
enumerable: !0
|
|
9
|
+
});
|
|
10
|
+
},
|
|
11
|
+
__copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
|
|
13
|
+
get: () => from[key],
|
|
14
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
15
|
+
});
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
19
|
+
value: !0
|
|
20
|
+
}), mod);
|
|
21
|
+
var GuiProvider_exports = {};
|
|
22
|
+
__export(GuiProvider_exports, {
|
|
23
|
+
GuiProvider: () => GuiProvider
|
|
24
|
+
});
|
|
25
|
+
module.exports = __toCommonJS(GuiProvider_exports);
|
|
26
|
+
var import_gui_core = require("@hanzo/gui-core");
|
|
27
|
+
const GuiProvider = import_gui_core.GuiProvider;
|