@hanzo/gui 4.8.0 → 7.2.2
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 → createHanzogui.cjs} +14 -14
- package/dist/cjs/{createGui.native.js → createHanzogui.native.js} +15 -15
- package/dist/cjs/createHanzogui.native.js.map +1 -0
- package/dist/cjs/index.cjs +105 -34
- package/dist/cjs/index.native.js +105 -34
- package/dist/cjs/index.native.js.map +1 -1
- package/dist/cjs/{views/GuiProvider.cjs → linear-gradient.cjs} +5 -6
- package/dist/cjs/{views/GuiProvider.native.js → linear-gradient.native.js} +6 -7
- package/dist/cjs/linear-gradient.native.js.map +1 -0
- package/dist/cjs/views/Anchor.cjs +29 -3
- package/dist/cjs/views/Anchor.native.js +31 -3
- package/dist/cjs/views/Anchor.native.js.map +1 -1
- 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/HanzoguiProvider.cjs +46 -0
- package/dist/cjs/views/HanzoguiProvider.native.js +50 -0
- package/dist/cjs/views/HanzoguiProvider.native.js.map +1 -0
- package/dist/cjs/views/Text.cjs +1 -1
- package/dist/cjs/views/Text.native.js +1 -1
- package/dist/cjs/views/Text.native.js.map +1 -1
- package/dist/{jsx/createGui.mjs → esm/createHanzogui.mjs} +13 -13
- package/dist/esm/createHanzogui.mjs.map +1 -0
- package/dist/esm/{createGui.native.js → createHanzogui.native.js} +13 -13
- package/dist/esm/createHanzogui.native.js.map +1 -0
- package/dist/esm/index.js +47 -28
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/index.mjs +47 -28
- package/dist/esm/index.mjs.map +1 -1
- package/dist/esm/index.native.js +47 -28
- package/dist/esm/index.native.js.map +1 -1
- 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/views/Anchor.mjs +29 -3
- package/dist/esm/views/Anchor.mjs.map +1 -1
- package/dist/esm/views/Anchor.native.js +31 -3
- package/dist/esm/views/Anchor.native.js.map +1 -1
- 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/HanzoguiProvider.mjs +21 -0
- package/dist/esm/views/HanzoguiProvider.mjs.map +1 -0
- package/dist/esm/views/HanzoguiProvider.native.js +22 -0
- package/dist/esm/views/HanzoguiProvider.native.js.map +1 -0
- package/dist/esm/views/Text.mjs +3 -3
- package/dist/esm/views/Text.mjs.map +1 -1
- package/dist/esm/views/Text.native.js +3 -3
- package/dist/esm/views/Text.native.js.map +1 -1
- package/dist/{esm/createGui.mjs → jsx/createHanzogui.mjs} +13 -13
- package/dist/jsx/createHanzogui.mjs.map +1 -0
- package/dist/jsx/{createGui.native.js → createHanzogui.native.js} +15 -15
- package/dist/jsx/createHanzogui.native.js.map +1 -0
- package/dist/jsx/index.js +47 -28
- package/dist/jsx/index.js.map +1 -1
- package/dist/jsx/index.mjs +47 -28
- package/dist/jsx/index.mjs.map +1 -1
- package/dist/jsx/index.native.js +105 -34
- package/dist/jsx/index.native.js.map +1 -1
- package/dist/jsx/linear-gradient.mjs +3 -0
- package/dist/jsx/linear-gradient.mjs.map +1 -0
- package/dist/jsx/{views/GuiProvider.native.js → linear-gradient.native.js} +6 -7
- package/dist/jsx/linear-gradient.native.js.map +1 -0
- package/dist/jsx/views/Anchor.mjs +29 -3
- package/dist/jsx/views/Anchor.mjs.map +1 -1
- package/dist/jsx/views/Anchor.native.js +31 -3
- package/dist/jsx/views/Anchor.native.js.map +1 -1
- 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/HanzoguiProvider.mjs +21 -0
- package/dist/jsx/views/HanzoguiProvider.mjs.map +1 -0
- package/dist/jsx/views/HanzoguiProvider.native.js +50 -0
- package/dist/jsx/views/HanzoguiProvider.native.js.map +1 -0
- package/dist/jsx/views/Text.mjs +3 -3
- package/dist/jsx/views/Text.mjs.map +1 -1
- package/dist/jsx/views/Text.native.js +1 -1
- package/dist/jsx/views/Text.native.js.map +1 -1
- package/dist/native.cjs +32307 -0
- package/dist/test.cjs +32369 -0
- package/package.json +85 -85
- package/src/{createGui.ts → createHanzogui.ts} +13 -13
- package/src/index.ts +181 -39
- package/src/linear-gradient.ts +1 -0
- package/src/views/Anchor.tsx +38 -4
- package/src/views/Fieldset.tsx +22 -0
- package/src/views/HanzoguiProvider.tsx +14 -0
- package/src/views/Text.tsx +3 -3
- package/types/createHanzogui.d.ts +6 -0
- package/types/createHanzogui.d.ts.map +1 -0
- package/types/index.d.ts +47 -28
- package/types/index.d.ts.map +1 -0
- package/types/linear-gradient.d.ts +2 -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 +14 -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 +8 -0
- package/types/views/Fieldset.d.ts.map +1 -0
- package/types/views/HanzoguiProvider.d.ts +3 -0
- package/types/views/HanzoguiProvider.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/dist/cjs/createGui.native.js.map +0 -1
- package/dist/cjs/views/GuiProvider.native.js.map +0 -1
- package/dist/esm/createGui.mjs.map +0 -1
- package/dist/esm/createGui.native.js.map +0 -1
- package/dist/esm/views/GuiProvider.mjs +0 -4
- package/dist/esm/views/GuiProvider.mjs.map +0 -1
- package/dist/esm/views/GuiProvider.native.js +0 -4
- package/dist/esm/views/GuiProvider.native.js.map +0 -1
- package/dist/jsx/createGui.mjs.map +0 -1
- package/dist/jsx/createGui.native.js.map +0 -1
- package/dist/jsx/views/GuiProvider.mjs +0 -4
- package/dist/jsx/views/GuiProvider.mjs.map +0 -1
- package/dist/jsx/views/GuiProvider.native.js.map +0 -1
- package/gui.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/package.json.bak +0 -169
- 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/scripts/publish.sh +0 -50
- package/src/views/GuiProvider.tsx +0 -5
- package/tsconfig.json +0 -171
- package/types/createGui.d.ts +0 -6
- package/types/views/GuiProvider.d.ts +0 -4
- 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
|
@@ -20,32 +20,32 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
20
20
|
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
21
21
|
value: true
|
|
22
22
|
}), mod);
|
|
23
|
-
var
|
|
24
|
-
__export(
|
|
25
|
-
|
|
23
|
+
var createHanzogui_exports = {};
|
|
24
|
+
__export(createHanzogui_exports, {
|
|
25
|
+
createHanzogui: () => createHanzogui
|
|
26
26
|
});
|
|
27
|
-
module.exports = __toCommonJS(
|
|
27
|
+
module.exports = __toCommonJS(createHanzogui_exports);
|
|
28
28
|
var import_core = require("@hanzogui/core");
|
|
29
|
-
const
|
|
29
|
+
const createHanzogui = process.env.NODE_ENV !== "development" ? import_core.createHanzogui : conf => {
|
|
30
30
|
const sizeTokenKeys = ["$true"];
|
|
31
31
|
const hasKeys = (expectedKeys, obj) => {
|
|
32
32
|
return expectedKeys.every(k => typeof obj[k] !== "undefined");
|
|
33
33
|
};
|
|
34
|
-
const
|
|
34
|
+
const hanzoguiConfig = (0, import_core.createHanzogui)(conf);
|
|
35
35
|
for (const name of ["size", "space"]) {
|
|
36
|
-
const tokenSet =
|
|
36
|
+
const tokenSet = hanzoguiConfig.tokensParsed[name];
|
|
37
37
|
if (!tokenSet) {
|
|
38
|
-
throw new Error(`Expected tokens for "${name}" in ${Object.keys(
|
|
38
|
+
throw new Error(`Expected tokens for "${name}" in ${Object.keys(hanzoguiConfig.tokensParsed).join(", ")}`);
|
|
39
39
|
}
|
|
40
40
|
if (!hasKeys(sizeTokenKeys, tokenSet)) {
|
|
41
41
|
throw new Error(`
|
|
42
|
-
|
|
42
|
+
createHanzogui() missing expected tokens.${name}:
|
|
43
43
|
|
|
44
44
|
Received: ${Object.keys(tokenSet).join(", ")}
|
|
45
45
|
|
|
46
46
|
Expected: ${sizeTokenKeys.join(", ")}
|
|
47
47
|
|
|
48
|
-
|
|
48
|
+
Hanzogui expects a "true" key that is the same value as your default size. This is so
|
|
49
49
|
it can size things up or down from the defaults without assuming which keys you use.
|
|
50
50
|
|
|
51
51
|
Please define a "true" or "$true" key on your size and space tokens like so (example):
|
|
@@ -60,14 +60,14 @@ size: {
|
|
|
60
60
|
`);
|
|
61
61
|
}
|
|
62
62
|
}
|
|
63
|
-
const expected = Object.keys(
|
|
63
|
+
const expected = Object.keys(hanzoguiConfig.tokensParsed.size);
|
|
64
64
|
for (const name of ["radius", "zIndex"]) {
|
|
65
|
-
const tokenSet =
|
|
65
|
+
const tokenSet = hanzoguiConfig.tokensParsed[name];
|
|
66
66
|
const received = Object.keys(tokenSet);
|
|
67
67
|
const hasSomeOverlap = received.some(rk => expected.includes(rk));
|
|
68
68
|
if (!hasSomeOverlap) {
|
|
69
69
|
throw new Error(`
|
|
70
|
-
|
|
70
|
+
createHanzogui() invalid tokens.${name}:
|
|
71
71
|
|
|
72
72
|
Received: ${received.join(", ")}
|
|
73
73
|
|
|
@@ -76,5 +76,5 @@ Expected a subset of: ${expected.join(", ")}
|
|
|
76
76
|
`);
|
|
77
77
|
}
|
|
78
78
|
}
|
|
79
|
-
return
|
|
79
|
+
return hanzoguiConfig;
|
|
80
80
|
};
|
|
@@ -22,35 +22,35 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
22
22
|
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
23
23
|
value: true
|
|
24
24
|
}), mod);
|
|
25
|
-
var
|
|
26
|
-
__export(
|
|
27
|
-
|
|
25
|
+
var createHanzogui_exports = {};
|
|
26
|
+
__export(createHanzogui_exports, {
|
|
27
|
+
createHanzogui: () => createHanzogui
|
|
28
28
|
});
|
|
29
|
-
module.exports = __toCommonJS(
|
|
29
|
+
module.exports = __toCommonJS(createHanzogui_exports);
|
|
30
30
|
var import_core = require("@hanzogui/core");
|
|
31
|
-
var
|
|
31
|
+
var createHanzogui = process.env.NODE_ENV !== "development" ? import_core.createHanzogui : function (conf) {
|
|
32
32
|
var sizeTokenKeys = ["$true"];
|
|
33
33
|
var hasKeys = function (expectedKeys, obj) {
|
|
34
34
|
return expectedKeys.every(function (k) {
|
|
35
35
|
return typeof obj[k] !== "undefined";
|
|
36
36
|
});
|
|
37
37
|
};
|
|
38
|
-
var
|
|
38
|
+
var hanzoguiConfig = (0, import_core.createHanzogui)(conf);
|
|
39
39
|
for (var _i = 0, _iter = ["size", "space"]; _i < _iter.length; _i++) {
|
|
40
40
|
var name = _iter[_i];
|
|
41
|
-
var tokenSet =
|
|
41
|
+
var tokenSet = hanzoguiConfig.tokensParsed[name];
|
|
42
42
|
if (!tokenSet) {
|
|
43
|
-
throw new Error(`Expected tokens for "${name}" in ${Object.keys(
|
|
43
|
+
throw new Error(`Expected tokens for "${name}" in ${Object.keys(hanzoguiConfig.tokensParsed).join(", ")}`);
|
|
44
44
|
}
|
|
45
45
|
if (!hasKeys(sizeTokenKeys, tokenSet)) {
|
|
46
46
|
throw new Error(`
|
|
47
|
-
|
|
47
|
+
createHanzogui() missing expected tokens.${name}:
|
|
48
48
|
|
|
49
49
|
Received: ${Object.keys(tokenSet).join(", ")}
|
|
50
50
|
|
|
51
51
|
Expected: ${sizeTokenKeys.join(", ")}
|
|
52
52
|
|
|
53
|
-
|
|
53
|
+
Hanzogui expects a "true" key that is the same value as your default size. This is so
|
|
54
54
|
it can size things up or down from the defaults without assuming which keys you use.
|
|
55
55
|
|
|
56
56
|
Please define a "true" or "$true" key on your size and space tokens like so (example):
|
|
@@ -65,17 +65,17 @@ size: {
|
|
|
65
65
|
`);
|
|
66
66
|
}
|
|
67
67
|
}
|
|
68
|
-
var expected = Object.keys(
|
|
68
|
+
var expected = Object.keys(hanzoguiConfig.tokensParsed.size);
|
|
69
69
|
for (var _i1 = 0, _iter1 = ["radius", "zIndex"]; _i1 < _iter1.length; _i1++) {
|
|
70
70
|
var name1 = _iter1[_i1];
|
|
71
|
-
var tokenSet1 =
|
|
71
|
+
var tokenSet1 = hanzoguiConfig.tokensParsed[name1];
|
|
72
72
|
var received = Object.keys(tokenSet1);
|
|
73
73
|
var hasSomeOverlap = received.some(function (rk) {
|
|
74
74
|
return expected.includes(rk);
|
|
75
75
|
});
|
|
76
76
|
if (!hasSomeOverlap) {
|
|
77
77
|
throw new Error(`
|
|
78
|
-
|
|
78
|
+
createHanzogui() invalid tokens.${name1}:
|
|
79
79
|
|
|
80
80
|
Received: ${received.join(", ")}
|
|
81
81
|
|
|
@@ -84,6 +84,6 @@ Expected a subset of: ${expected.join(", ")}
|
|
|
84
84
|
`);
|
|
85
85
|
}
|
|
86
86
|
}
|
|
87
|
-
return
|
|
87
|
+
return hanzoguiConfig;
|
|
88
88
|
};
|
|
89
|
-
//# sourceMappingURL=
|
|
89
|
+
//# sourceMappingURL=createHanzogui.native.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","createHanzogui_exports","__export","createHanzogui","module","exports","import_core","require","process","env","NODE_ENV","conf","sizeTokenKeys","hasKeys","expectedKeys","obj","every","k","hanzoguiConfig","_i","_iter","length","name","tokenSet","tokensParsed","Error","Object","keys","join","expected","size","_i1","_iter1","name1","tokenSet1","received","hasSomeOverlap","some","rk","includes"],"sources":["../../src/createHanzogui.ts"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;EAAAC,KAAA;AAAA,IAAAH,GAAA;AAAA,IAAAI,sBAAA;AAAAC,QAAA,CAAAD,sBAAA;EAAAE,cAAA,EAAAA,CAAA,KAAAA;AAAA;AAAAC,MAAA,CAAAC,OAAA,GAAAT,YAAqD,CAAAK,sBAAA;AAM9C,IAAAK,WAAM,GAAAC,OACX,iBAAY;AAGN,IAAAJ,cAAM,GAAAK,OAAiB,CAAAC,GAAO,CAAAC,QAAA,qBAAAJ,WAAA,CAAAH,cAAA,aAAAQ,IAAA;EAE9B,IAAAC,aAAiB,IACf,OAAO,CACT;EAEA,IAAAC,OAAM,YAAAA,CAAAC,YAAiB,EAAAC,GAAA;IAGvB,OAAAD,YAAoB,CAAAE,KAAA,CAAQ,UAAOC,CAAY;MAC7C,OAAM,OAAAF,GAAW,CAAAE,CAAA,iBAAe;IAChC;EACE;EAAU,IAAAC,cACR,OAAAZ,WAA4B,CAAAH,cAAe,EAAAQ,IAAA;EAAA,SACzCQ,EAAA,MAAAC,KAAA,GAAe,OACf,EAAU,OACd,GACFD,EAAA,GAAAC,KAAA,CAAAC,MAAA,EAAAF,EAAA;IACA,IAAIG,IAAC,GAAAF,KAAQ,CAAAD,EAAA;IACX,IAAAI,QAAU,GAAAL,cAAM,CAAAM,YAAA,CAAAF,IAAA;IAAA,KAAAC,QAAA;MACmB,UAAAE,KAAA,yBAAAH,IAAA,QAAAI,MAAA,CAAAC,IAAA,CAAAT,cAAA,CAAAM,YAAA,EAAAI,IAAA;IAAA;IAEH,KAAAf,OAAA,CAAAD,aAAA,EAAAW,QAAA;MAAA,MAEhC,IAAAE,KAAA;AAAwB,2CAAAH,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;AAcnC;AACS;AAIF;AACA;AACE;IACA;EACA;EACA,IAAAC,QAAK,GAAAH,MAAA,CAAAC,IAAgB,CAAAT,cAAA,CAAAM,YAAA,CAAAM,IAAA;EACnB,SAAAC,GAAM,GAAI,GAAAC,MAAM,cACU,WAAAD,GAAA,GAAAC,MAE1B,CAAAX,MAAS,EAAKU,GAAA,EAAK;IAAA,IAAAE,KAAA,GAAAD,MAAA,CAAAD,GAAA;IAAA,IAAAG,SAAA,GAAAhB,cAEE,CAAAM,YAAU,CAAAS,KAAA;IAAA,IAAAE,QAAA,GAAAT,MAAA,CAAAC,IAAA,CAAAO,SAAA;IAE1C,IAAAE,cAAA,GAAAD,QAAA,CAAAE,IAAA,WAAAC,EAAA;MACS,OAAAT,QAAA,CAAAU,QAAA,CAAAD,EAAA;IACF;IAEA,KAAOF,cAAA;MACT,UAAAX,KAAA","ignoreList":[]}
|
package/dist/cjs/index.cjs
CHANGED
|
@@ -23,55 +23,126 @@ var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
|
23
23
|
}), mod);
|
|
24
24
|
var index_exports = {};
|
|
25
25
|
__export(index_exports, {
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
26
|
+
ClientOnly: () => import_core.ClientOnly,
|
|
27
|
+
ComponentContext: () => import_core.ComponentContext,
|
|
28
|
+
Configuration: () => import_core.Configuration,
|
|
29
|
+
FontLanguage: () => import_core.FontLanguage,
|
|
30
|
+
GroupContext: () => import_core.GroupContext,
|
|
31
|
+
Theme: () => import_core.Theme,
|
|
32
|
+
View: () => import_core.View,
|
|
33
|
+
_withStableStyle: () => import_core._withStableStyle,
|
|
34
|
+
createComponent: () => import_core.createComponent,
|
|
35
|
+
createFont: () => import_core.createFont,
|
|
36
|
+
createShorthands: () => import_core.createShorthands,
|
|
37
|
+
createStyledContext: () => import_core.createStyledContext,
|
|
38
|
+
createTokens: () => import_core.createTokens,
|
|
39
|
+
createVariable: () => import_core.createVariable,
|
|
40
|
+
getCSSStylesAtomic: () => import_core.getCSSStylesAtomic,
|
|
41
|
+
getConfig: () => import_core.getConfig,
|
|
42
|
+
getMedia: () => import_core.getMedia,
|
|
43
|
+
getThemes: () => import_core.getThemes,
|
|
44
|
+
getToken: () => import_core.getToken,
|
|
45
|
+
getTokenValue: () => import_core.getTokenValue,
|
|
46
|
+
getTokens: () => import_core.getTokens,
|
|
47
|
+
getVariable: () => import_core.getVariable,
|
|
48
|
+
getVariableName: () => import_core.getVariableName,
|
|
49
|
+
getVariableValue: () => import_core.getVariableValue,
|
|
50
|
+
insertFont: () => import_core.insertFont,
|
|
51
|
+
isBrowser: () => import_core.isBrowser,
|
|
52
|
+
isChrome: () => import_core.isChrome,
|
|
53
|
+
isClient: () => import_core.isClient,
|
|
54
|
+
isHanzoguiComponent: () => import_core.isHanzoguiComponent,
|
|
55
|
+
isHanzoguiElement: () => import_core.isHanzoguiElement,
|
|
56
|
+
isServer: () => import_core.isServer,
|
|
57
|
+
isTouchable: () => import_core.isTouchable,
|
|
58
|
+
isVariable: () => import_core.isVariable,
|
|
59
|
+
isWeb: () => import_core.isWeb,
|
|
60
|
+
isWebTouchable: () => import_core.isWebTouchable,
|
|
61
|
+
matchMedia: () => import_core.matchMedia,
|
|
62
|
+
mediaObjectToString: () => import_core.mediaObjectToString,
|
|
63
|
+
mediaQueryConfig: () => import_core.mediaQueryConfig,
|
|
64
|
+
mediaState: () => import_core.mediaState,
|
|
65
|
+
setConfig: () => import_core.setConfig,
|
|
66
|
+
setOnLayoutStrategy: () => import_core.setOnLayoutStrategy,
|
|
67
|
+
setupDev: () => import_core.setupDev,
|
|
68
|
+
styled: () => import_core.styled,
|
|
69
|
+
themeable: () => import_core.themeable,
|
|
70
|
+
useClientValue: () => import_core.useClientValue,
|
|
71
|
+
useConfiguration: () => import_core.useConfiguration,
|
|
72
|
+
useDidFinishSSR: () => import_core.useDidFinishSSR,
|
|
73
|
+
useEvent: () => import_core.useEvent,
|
|
74
|
+
useGet: () => import_core.useGet,
|
|
75
|
+
useIsTouchDevice: () => import_core.useIsTouchDevice,
|
|
76
|
+
useIsomorphicLayoutEffect: () => import_core.useIsomorphicLayoutEffect,
|
|
77
|
+
useMedia: () => import_core.useMedia,
|
|
78
|
+
useProps: () => import_core.useProps,
|
|
79
|
+
usePropsAndStyle: () => import_core.usePropsAndStyle,
|
|
80
|
+
useStyle: () => import_core.useStyle,
|
|
81
|
+
useTheme: () => import_core.useTheme,
|
|
82
|
+
useThemeName: () => import_core.useThemeName,
|
|
83
|
+
variableToString: () => import_core.variableToString,
|
|
84
|
+
withStaticProperties: () => import_core.withStaticProperties
|
|
33
85
|
});
|
|
34
86
|
module.exports = __toCommonJS(index_exports);
|
|
35
87
|
var import_setup = require("./setup.cjs");
|
|
36
|
-
__reExport(index_exports, require("@hanzogui/core"), module.exports);
|
|
37
|
-
__reExport(index_exports, require("@hanzogui/stacks"), module.exports);
|
|
38
|
-
__reExport(index_exports, require("@hanzogui/shapes"), module.exports);
|
|
39
88
|
__reExport(index_exports, require("@hanzogui/spacer"), module.exports);
|
|
89
|
+
__reExport(index_exports, require("@hanzogui/accordion"), module.exports);
|
|
90
|
+
__reExport(index_exports, require("@hanzogui/adapt"), module.exports);
|
|
91
|
+
__reExport(index_exports, require("@hanzogui/alert-dialog"), module.exports);
|
|
92
|
+
__reExport(index_exports, require("@hanzogui/animate"), module.exports);
|
|
40
93
|
__reExport(index_exports, require("@hanzogui/animate-presence"), module.exports);
|
|
94
|
+
__reExport(index_exports, require("@hanzogui/avatar"), module.exports);
|
|
41
95
|
__reExport(index_exports, require("@hanzogui/button"), module.exports);
|
|
42
|
-
__reExport(index_exports, require("@hanzogui/
|
|
43
|
-
__reExport(index_exports, require("@hanzogui/radio-group"), module.exports);
|
|
44
|
-
__reExport(index_exports, require("@hanzogui/tooltip"), module.exports);
|
|
45
|
-
__reExport(index_exports, require("@hanzogui/switch"), module.exports);
|
|
96
|
+
__reExport(index_exports, require("@hanzogui/card"), module.exports);
|
|
46
97
|
__reExport(index_exports, require("@hanzogui/checkbox"), module.exports);
|
|
98
|
+
__reExport(index_exports, require("@hanzogui/collapsible"), module.exports);
|
|
99
|
+
__reExport(index_exports, require("@hanzogui/compose-refs"), module.exports);
|
|
100
|
+
__reExport(index_exports, require("@hanzogui/create-context"), module.exports);
|
|
47
101
|
__reExport(index_exports, require("@hanzogui/dialog"), module.exports);
|
|
48
|
-
__reExport(index_exports, require("@hanzogui/
|
|
49
|
-
__reExport(index_exports, require("@hanzogui/adapt"), module.exports);
|
|
50
|
-
__reExport(index_exports, require("@hanzogui/label"), module.exports);
|
|
51
|
-
__reExport(index_exports, require("@hanzogui/input"), module.exports);
|
|
52
|
-
__reExport(index_exports, require("@hanzogui/select"), module.exports);
|
|
53
|
-
__reExport(index_exports, require("@hanzogui/separator"), module.exports);
|
|
54
|
-
__reExport(index_exports, require("@hanzogui/slider"), module.exports);
|
|
55
|
-
__reExport(index_exports, require("@hanzogui/tabs"), module.exports);
|
|
56
|
-
__reExport(index_exports, require("@hanzogui/toggle-group"), module.exports);
|
|
57
|
-
__reExport(index_exports, require("@hanzogui/accordion"), module.exports);
|
|
58
|
-
__reExport(index_exports, require("@hanzogui/avatar"), module.exports);
|
|
59
|
-
__reExport(index_exports, require("@hanzogui/card"), module.exports);
|
|
102
|
+
__reExport(index_exports, require("@hanzogui/font-size"), module.exports);
|
|
60
103
|
__reExport(index_exports, require("@hanzogui/form"), module.exports);
|
|
61
104
|
__reExport(index_exports, require("@hanzogui/group"), module.exports);
|
|
105
|
+
__reExport(index_exports, require("@hanzogui/react-native-media-driver"), module.exports);
|
|
106
|
+
__reExport(index_exports, require("@hanzogui/elements"), module.exports);
|
|
107
|
+
__reExport(index_exports, require("@hanzogui/component-helpers"), module.exports);
|
|
62
108
|
__reExport(index_exports, require("@hanzogui/image"), module.exports);
|
|
109
|
+
__reExport(index_exports, require("@hanzogui/label"), module.exports);
|
|
63
110
|
__reExport(index_exports, require("@hanzogui/list-item"), module.exports);
|
|
111
|
+
__reExport(index_exports, require("@hanzogui/menu"), module.exports);
|
|
112
|
+
__reExport(index_exports, require("@hanzogui/context-menu"), module.exports);
|
|
113
|
+
__reExport(index_exports, require("@hanzogui/create-menu"), module.exports);
|
|
114
|
+
__reExport(index_exports, require("@hanzogui/popover"), module.exports);
|
|
115
|
+
__reExport(index_exports, require("@hanzogui/popper"), module.exports);
|
|
64
116
|
__reExport(index_exports, require("@hanzogui/portal"), module.exports);
|
|
65
117
|
__reExport(index_exports, require("@hanzogui/progress"), module.exports);
|
|
118
|
+
__reExport(index_exports, require("@hanzogui/radio-group"), module.exports);
|
|
66
119
|
__reExport(index_exports, require("@hanzogui/scroll-view"), module.exports);
|
|
67
|
-
__reExport(index_exports, require("@hanzogui/
|
|
120
|
+
__reExport(index_exports, require("@hanzogui/select"), module.exports);
|
|
121
|
+
__reExport(index_exports, require("@hanzogui/separator"), module.exports);
|
|
122
|
+
__reExport(index_exports, require("@hanzogui/shapes"), module.exports);
|
|
123
|
+
__reExport(index_exports, require("@hanzogui/sheet"), module.exports);
|
|
124
|
+
__reExport(index_exports, require("@hanzogui/slider"), module.exports);
|
|
125
|
+
__reExport(index_exports, require("@hanzogui/stacks"), module.exports);
|
|
126
|
+
__reExport(index_exports, require("@hanzogui/switch"), module.exports);
|
|
127
|
+
__reExport(index_exports, require("@hanzogui/tabs"), module.exports);
|
|
68
128
|
__reExport(index_exports, require("@hanzogui/text"), module.exports);
|
|
129
|
+
__reExport(index_exports, require("@hanzogui/theme"), module.exports);
|
|
69
130
|
__reExport(index_exports, require("@hanzogui/toast"), module.exports);
|
|
131
|
+
__reExport(index_exports, require("@hanzogui/toggle-group"), module.exports);
|
|
132
|
+
__reExport(index_exports, require("@hanzogui/tooltip"), module.exports);
|
|
133
|
+
__reExport(index_exports, require("@hanzogui/use-controllable-state"), module.exports);
|
|
134
|
+
__reExport(index_exports, require("@hanzogui/use-debounce"), module.exports);
|
|
135
|
+
__reExport(index_exports, require("@hanzogui/use-force-update"), module.exports);
|
|
136
|
+
__reExport(index_exports, require("@hanzogui/element"), module.exports);
|
|
137
|
+
__reExport(index_exports, require("@hanzogui/use-window-dimensions"), module.exports);
|
|
70
138
|
__reExport(index_exports, require("@hanzogui/visually-hidden"), module.exports);
|
|
71
|
-
__reExport(index_exports, require("
|
|
72
|
-
__reExport(index_exports, require("
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
139
|
+
__reExport(index_exports, require("./createHanzogui.cjs"), module.exports);
|
|
140
|
+
__reExport(index_exports, require("./viewTypes.cjs"), module.exports);
|
|
141
|
+
__reExport(index_exports, require("./views/HanzoguiProvider.cjs"), module.exports);
|
|
142
|
+
__reExport(index_exports, require("./views/Anchor.cjs"), module.exports);
|
|
143
|
+
__reExport(index_exports, require("./views/EnsureFlexed.cjs"), module.exports);
|
|
144
|
+
__reExport(index_exports, require("./views/Fieldset.cjs"), module.exports);
|
|
145
|
+
__reExport(index_exports, require("@hanzogui/input"), module.exports);
|
|
146
|
+
__reExport(index_exports, require("@hanzogui/spinner"), module.exports);
|
|
147
|
+
__reExport(index_exports, require("./views/Text.cjs"), module.exports);
|
|
148
|
+
var import_core = require("@hanzogui/core");
|
package/dist/cjs/index.native.js
CHANGED
|
@@ -25,56 +25,127 @@ var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
|
25
25
|
}), mod);
|
|
26
26
|
var index_exports = {};
|
|
27
27
|
__export(index_exports, {
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
28
|
+
ClientOnly: () => import_core.ClientOnly,
|
|
29
|
+
ComponentContext: () => import_core.ComponentContext,
|
|
30
|
+
Configuration: () => import_core.Configuration,
|
|
31
|
+
FontLanguage: () => import_core.FontLanguage,
|
|
32
|
+
GroupContext: () => import_core.GroupContext,
|
|
33
|
+
Theme: () => import_core.Theme,
|
|
34
|
+
View: () => import_core.View,
|
|
35
|
+
_withStableStyle: () => import_core._withStableStyle,
|
|
36
|
+
createComponent: () => import_core.createComponent,
|
|
37
|
+
createFont: () => import_core.createFont,
|
|
38
|
+
createShorthands: () => import_core.createShorthands,
|
|
39
|
+
createStyledContext: () => import_core.createStyledContext,
|
|
40
|
+
createTokens: () => import_core.createTokens,
|
|
41
|
+
createVariable: () => import_core.createVariable,
|
|
42
|
+
getCSSStylesAtomic: () => import_core.getCSSStylesAtomic,
|
|
43
|
+
getConfig: () => import_core.getConfig,
|
|
44
|
+
getMedia: () => import_core.getMedia,
|
|
45
|
+
getThemes: () => import_core.getThemes,
|
|
46
|
+
getToken: () => import_core.getToken,
|
|
47
|
+
getTokenValue: () => import_core.getTokenValue,
|
|
48
|
+
getTokens: () => import_core.getTokens,
|
|
49
|
+
getVariable: () => import_core.getVariable,
|
|
50
|
+
getVariableName: () => import_core.getVariableName,
|
|
51
|
+
getVariableValue: () => import_core.getVariableValue,
|
|
52
|
+
insertFont: () => import_core.insertFont,
|
|
53
|
+
isBrowser: () => import_core.isBrowser,
|
|
54
|
+
isChrome: () => import_core.isChrome,
|
|
55
|
+
isClient: () => import_core.isClient,
|
|
56
|
+
isHanzoguiComponent: () => import_core.isHanzoguiComponent,
|
|
57
|
+
isHanzoguiElement: () => import_core.isHanzoguiElement,
|
|
58
|
+
isServer: () => import_core.isServer,
|
|
59
|
+
isTouchable: () => import_core.isTouchable,
|
|
60
|
+
isVariable: () => import_core.isVariable,
|
|
61
|
+
isWeb: () => import_core.isWeb,
|
|
62
|
+
isWebTouchable: () => import_core.isWebTouchable,
|
|
63
|
+
matchMedia: () => import_core.matchMedia,
|
|
64
|
+
mediaObjectToString: () => import_core.mediaObjectToString,
|
|
65
|
+
mediaQueryConfig: () => import_core.mediaQueryConfig,
|
|
66
|
+
mediaState: () => import_core.mediaState,
|
|
67
|
+
setConfig: () => import_core.setConfig,
|
|
68
|
+
setOnLayoutStrategy: () => import_core.setOnLayoutStrategy,
|
|
69
|
+
setupDev: () => import_core.setupDev,
|
|
70
|
+
styled: () => import_core.styled,
|
|
71
|
+
themeable: () => import_core.themeable,
|
|
72
|
+
useClientValue: () => import_core.useClientValue,
|
|
73
|
+
useConfiguration: () => import_core.useConfiguration,
|
|
74
|
+
useDidFinishSSR: () => import_core.useDidFinishSSR,
|
|
75
|
+
useEvent: () => import_core.useEvent,
|
|
76
|
+
useGet: () => import_core.useGet,
|
|
77
|
+
useIsTouchDevice: () => import_core.useIsTouchDevice,
|
|
78
|
+
useIsomorphicLayoutEffect: () => import_core.useIsomorphicLayoutEffect,
|
|
79
|
+
useMedia: () => import_core.useMedia,
|
|
80
|
+
useProps: () => import_core.useProps,
|
|
81
|
+
usePropsAndStyle: () => import_core.usePropsAndStyle,
|
|
82
|
+
useStyle: () => import_core.useStyle,
|
|
83
|
+
useTheme: () => import_core.useTheme,
|
|
84
|
+
useThemeName: () => import_core.useThemeName,
|
|
85
|
+
variableToString: () => import_core.variableToString,
|
|
86
|
+
withStaticProperties: () => import_core.withStaticProperties
|
|
35
87
|
});
|
|
36
88
|
module.exports = __toCommonJS(index_exports);
|
|
37
89
|
var import_setup = require("./setup.native.js");
|
|
38
|
-
__reExport(index_exports, require("@hanzogui/core"), module.exports);
|
|
39
|
-
__reExport(index_exports, require("@hanzogui/stacks"), module.exports);
|
|
40
|
-
__reExport(index_exports, require("@hanzogui/shapes"), module.exports);
|
|
41
90
|
__reExport(index_exports, require("@hanzogui/spacer"), module.exports);
|
|
91
|
+
__reExport(index_exports, require("@hanzogui/accordion"), module.exports);
|
|
92
|
+
__reExport(index_exports, require("@hanzogui/adapt"), module.exports);
|
|
93
|
+
__reExport(index_exports, require("@hanzogui/alert-dialog"), module.exports);
|
|
94
|
+
__reExport(index_exports, require("@hanzogui/animate"), module.exports);
|
|
42
95
|
__reExport(index_exports, require("@hanzogui/animate-presence"), module.exports);
|
|
96
|
+
__reExport(index_exports, require("@hanzogui/avatar"), module.exports);
|
|
43
97
|
__reExport(index_exports, require("@hanzogui/button"), module.exports);
|
|
44
|
-
__reExport(index_exports, require("@hanzogui/
|
|
45
|
-
__reExport(index_exports, require("@hanzogui/radio-group"), module.exports);
|
|
46
|
-
__reExport(index_exports, require("@hanzogui/tooltip"), module.exports);
|
|
47
|
-
__reExport(index_exports, require("@hanzogui/switch"), module.exports);
|
|
98
|
+
__reExport(index_exports, require("@hanzogui/card"), module.exports);
|
|
48
99
|
__reExport(index_exports, require("@hanzogui/checkbox"), module.exports);
|
|
100
|
+
__reExport(index_exports, require("@hanzogui/collapsible"), module.exports);
|
|
101
|
+
__reExport(index_exports, require("@hanzogui/compose-refs"), module.exports);
|
|
102
|
+
__reExport(index_exports, require("@hanzogui/create-context"), module.exports);
|
|
49
103
|
__reExport(index_exports, require("@hanzogui/dialog"), module.exports);
|
|
50
|
-
__reExport(index_exports, require("@hanzogui/
|
|
51
|
-
__reExport(index_exports, require("@hanzogui/adapt"), module.exports);
|
|
52
|
-
__reExport(index_exports, require("@hanzogui/label"), module.exports);
|
|
53
|
-
__reExport(index_exports, require("@hanzogui/input"), module.exports);
|
|
54
|
-
__reExport(index_exports, require("@hanzogui/select"), module.exports);
|
|
55
|
-
__reExport(index_exports, require("@hanzogui/separator"), module.exports);
|
|
56
|
-
__reExport(index_exports, require("@hanzogui/slider"), module.exports);
|
|
57
|
-
__reExport(index_exports, require("@hanzogui/tabs"), module.exports);
|
|
58
|
-
__reExport(index_exports, require("@hanzogui/toggle-group"), module.exports);
|
|
59
|
-
__reExport(index_exports, require("@hanzogui/accordion"), module.exports);
|
|
60
|
-
__reExport(index_exports, require("@hanzogui/avatar"), module.exports);
|
|
61
|
-
__reExport(index_exports, require("@hanzogui/card"), module.exports);
|
|
104
|
+
__reExport(index_exports, require("@hanzogui/font-size"), module.exports);
|
|
62
105
|
__reExport(index_exports, require("@hanzogui/form"), module.exports);
|
|
63
106
|
__reExport(index_exports, require("@hanzogui/group"), module.exports);
|
|
107
|
+
__reExport(index_exports, require("@hanzogui/react-native-media-driver"), module.exports);
|
|
108
|
+
__reExport(index_exports, require("@hanzogui/elements"), module.exports);
|
|
109
|
+
__reExport(index_exports, require("@hanzogui/component-helpers"), module.exports);
|
|
64
110
|
__reExport(index_exports, require("@hanzogui/image"), module.exports);
|
|
111
|
+
__reExport(index_exports, require("@hanzogui/label"), module.exports);
|
|
65
112
|
__reExport(index_exports, require("@hanzogui/list-item"), module.exports);
|
|
113
|
+
__reExport(index_exports, require("@hanzogui/menu"), module.exports);
|
|
114
|
+
__reExport(index_exports, require("@hanzogui/context-menu"), module.exports);
|
|
115
|
+
__reExport(index_exports, require("@hanzogui/create-menu"), module.exports);
|
|
116
|
+
__reExport(index_exports, require("@hanzogui/popover"), module.exports);
|
|
117
|
+
__reExport(index_exports, require("@hanzogui/popper"), module.exports);
|
|
66
118
|
__reExport(index_exports, require("@hanzogui/portal"), module.exports);
|
|
67
119
|
__reExport(index_exports, require("@hanzogui/progress"), module.exports);
|
|
120
|
+
__reExport(index_exports, require("@hanzogui/radio-group"), module.exports);
|
|
68
121
|
__reExport(index_exports, require("@hanzogui/scroll-view"), module.exports);
|
|
69
|
-
__reExport(index_exports, require("@hanzogui/
|
|
122
|
+
__reExport(index_exports, require("@hanzogui/select"), module.exports);
|
|
123
|
+
__reExport(index_exports, require("@hanzogui/separator"), module.exports);
|
|
124
|
+
__reExport(index_exports, require("@hanzogui/shapes"), module.exports);
|
|
125
|
+
__reExport(index_exports, require("@hanzogui/sheet"), module.exports);
|
|
126
|
+
__reExport(index_exports, require("@hanzogui/slider"), module.exports);
|
|
127
|
+
__reExport(index_exports, require("@hanzogui/stacks"), module.exports);
|
|
128
|
+
__reExport(index_exports, require("@hanzogui/switch"), module.exports);
|
|
129
|
+
__reExport(index_exports, require("@hanzogui/tabs"), module.exports);
|
|
70
130
|
__reExport(index_exports, require("@hanzogui/text"), module.exports);
|
|
131
|
+
__reExport(index_exports, require("@hanzogui/theme"), module.exports);
|
|
71
132
|
__reExport(index_exports, require("@hanzogui/toast"), module.exports);
|
|
133
|
+
__reExport(index_exports, require("@hanzogui/toggle-group"), module.exports);
|
|
134
|
+
__reExport(index_exports, require("@hanzogui/tooltip"), module.exports);
|
|
135
|
+
__reExport(index_exports, require("@hanzogui/use-controllable-state"), module.exports);
|
|
136
|
+
__reExport(index_exports, require("@hanzogui/use-debounce"), module.exports);
|
|
137
|
+
__reExport(index_exports, require("@hanzogui/use-force-update"), module.exports);
|
|
138
|
+
__reExport(index_exports, require("@hanzogui/element"), module.exports);
|
|
139
|
+
__reExport(index_exports, require("@hanzogui/use-window-dimensions"), module.exports);
|
|
72
140
|
__reExport(index_exports, require("@hanzogui/visually-hidden"), module.exports);
|
|
73
|
-
__reExport(index_exports, require("
|
|
74
|
-
__reExport(index_exports, require("
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
141
|
+
__reExport(index_exports, require("./createHanzogui.native.js"), module.exports);
|
|
142
|
+
__reExport(index_exports, require("./viewTypes.native.js"), module.exports);
|
|
143
|
+
__reExport(index_exports, require("./views/HanzoguiProvider.native.js"), module.exports);
|
|
144
|
+
__reExport(index_exports, require("./views/Anchor.native.js"), module.exports);
|
|
145
|
+
__reExport(index_exports, require("./views/EnsureFlexed.native.js"), module.exports);
|
|
146
|
+
__reExport(index_exports, require("./views/Fieldset.native.js"), module.exports);
|
|
147
|
+
__reExport(index_exports, require("@hanzogui/input"), module.exports);
|
|
148
|
+
__reExport(index_exports, require("@hanzogui/spinner"), module.exports);
|
|
149
|
+
__reExport(index_exports, require("./views/Text.native.js"), module.exports);
|
|
150
|
+
var import_core = require("@hanzogui/core");
|
|
80
151
|
//# sourceMappingURL=index.native.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","index_exports","__export","
|
|
1
|
+
{"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","index_exports","__export","ClientOnly","import_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","isHanzoguiComponent","isHanzoguiElement","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,IAAAC,WAAA,CAAAC,SAAA;EAAAC,KAAA;AAAA,IAAAH,GAAA;AAAA,IAAAI,aAAA;AAAAC,QAAA,CAAAD,aAAA;EAAAE,UAAA,EAAAA,CAAA,KAAAC,WAAA,CAAAD,UAAA;EAAAE,gBAAA,EAAAA,CAAA,KAAA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CAAAC,OAAA;AA+DAG,UAAA,CAAAlE,aAAA,EAAciE,OAAA,qBAAAH,MA/Dd,CAAAC,OAAA;AAgEAG,UAAA,CAAAlE,aAAA,EAAciE,OAAA,oBAhEd,GAAAH,MAAA,CAAAC,OAAA;AAyIAG,UAAA,CAAAlE,aA+DO,EAAAiE,OAAA,4BAAAH,MAAA,CAAAC,OAAA","ignoreList":[]}
|
|
@@ -20,10 +20,9 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
20
20
|
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
21
21
|
value: true
|
|
22
22
|
}), mod);
|
|
23
|
-
var
|
|
24
|
-
__export(
|
|
25
|
-
|
|
23
|
+
var linear_gradient_exports = {};
|
|
24
|
+
__export(linear_gradient_exports, {
|
|
25
|
+
LinearGradient: () => import_linear_gradient.LinearGradient
|
|
26
26
|
});
|
|
27
|
-
module.exports = __toCommonJS(
|
|
28
|
-
var
|
|
29
|
-
const GuiProvider = import_core.GuiProvider;
|
|
27
|
+
module.exports = __toCommonJS(linear_gradient_exports);
|
|
28
|
+
var import_linear_gradient = require("@hanzogui/linear-gradient");
|
|
@@ -22,11 +22,10 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
22
22
|
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
23
23
|
value: true
|
|
24
24
|
}), mod);
|
|
25
|
-
var
|
|
26
|
-
__export(
|
|
27
|
-
|
|
25
|
+
var linear_gradient_exports = {};
|
|
26
|
+
__export(linear_gradient_exports, {
|
|
27
|
+
LinearGradient: () => import_linear_gradient.LinearGradient
|
|
28
28
|
});
|
|
29
|
-
module.exports = __toCommonJS(
|
|
30
|
-
var
|
|
31
|
-
|
|
32
|
-
//# sourceMappingURL=GuiProvider.native.js.map
|
|
29
|
+
module.exports = __toCommonJS(linear_gradient_exports);
|
|
30
|
+
var import_linear_gradient = require("@hanzogui/linear-gradient");
|
|
31
|
+
//# sourceMappingURL=linear-gradient.native.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","linear_gradient_exports","__export","LinearGradient","import_linear_gradient","module","exports"],"sources":["../../src/linear-gradient.ts"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;EAAAC,KAAA;AAAA,IAAAH,GAAA;AAAA,IAAAI,uBAAA;AAAAC,QAAA,CAAAD,uBAAA;EAAAE,cAAA,EAAAA,CAAA,KAAAC,sBAAA,CAAAD;AAAA;AAAAE,MAAA,CAAAC,OAAA,GAAAV,YAAyD,CAAAK,uBAAA","ignoreList":[]}
|
|
@@ -25,10 +25,36 @@ __export(Anchor_exports, {
|
|
|
25
25
|
Anchor: () => Anchor
|
|
26
26
|
});
|
|
27
27
|
module.exports = __toCommonJS(Anchor_exports);
|
|
28
|
+
var import_constants = require("@hanzogui/constants");
|
|
28
29
|
var import_core = require("@hanzogui/core");
|
|
29
30
|
var import_text = require("@hanzogui/text");
|
|
30
|
-
|
|
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, {
|
|
31
34
|
name: "Anchor",
|
|
32
|
-
|
|
33
|
-
|
|
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
|
+
});
|
|
34
60
|
});
|