@hanzo/gui 4.7.3 → 7.0.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/hanzogui.config.ts +4 -0
- package/linear-gradient/index.cjs +1 -1
- package/linear-gradient/index.native.cjs +1 -1
- package/native/index.cjs +1 -1
- package/native-test/index.cjs +1 -1
- package/native-test/index.native.cjs +1 -1
- package/package.json +80 -87
- package/react-native-web/index.cjs +1 -1
- package/react-native-web/index.native.cjs +1 -1
- 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/tsconfig.json +2 -2
- package/types/createHanzogui.d.ts +6 -0
- package/types/index.d.ts +47 -28
- package/types/linear-gradient.d.ts +2 -0
- package/types/views/Anchor.d.ts +14 -2
- package/types/views/EnsureFlexed.d.ts +1 -1
- package/types/views/Fieldset.d.ts +8 -0
- package/types/views/HanzoguiProvider.d.ts +3 -0
- package/types/views/Text.d.ts +1 -1
- package/types/views/VisuallyHidden.d.ts +1 -1
- package/web/index.cjs +1 -1
- package/web/index.native.cjs +1 -1
- package/dist/cjs/createGui.cjs +0 -80
- package/dist/cjs/createGui.native.js +0 -89
- package/dist/cjs/createGui.native.js.map +0 -1
- package/dist/cjs/index.cjs +0 -77
- package/dist/cjs/index.native.js +0 -80
- package/dist/cjs/index.native.js.map +0 -1
- package/dist/cjs/setup.cjs +0 -30
- package/dist/cjs/setup.native.js +0 -35
- package/dist/cjs/setup.native.js.map +0 -1
- package/dist/cjs/viewTypes.cjs +0 -18
- package/dist/cjs/viewTypes.native.js +0 -21
- package/dist/cjs/viewTypes.native.js.map +0 -1
- package/dist/cjs/views/Anchor.cjs +0 -34
- package/dist/cjs/views/Anchor.native.js +0 -37
- package/dist/cjs/views/Anchor.native.js.map +0 -1
- package/dist/cjs/views/EnsureFlexed.cjs +0 -38
- package/dist/cjs/views/EnsureFlexed.native.js +0 -41
- package/dist/cjs/views/EnsureFlexed.native.js.map +0 -1
- package/dist/cjs/views/GuiProvider.cjs +0 -29
- package/dist/cjs/views/GuiProvider.native.js +0 -32
- package/dist/cjs/views/GuiProvider.native.js.map +0 -1
- package/dist/cjs/views/Text.cjs +0 -40
- package/dist/cjs/views/Text.native.js +0 -43
- package/dist/cjs/views/Text.native.js.map +0 -1
- package/dist/cjs/views/VisuallyHidden.cjs +0 -60
- package/dist/cjs/views/VisuallyHidden.native.js +0 -63
- package/dist/cjs/views/VisuallyHidden.native.js.map +0 -1
- package/dist/esm/createGui.mjs +0 -55
- package/dist/esm/createGui.mjs.map +0 -1
- package/dist/esm/createGui.native.js +0 -61
- package/dist/esm/createGui.native.js.map +0 -1
- package/dist/esm/index.js +0 -44
- package/dist/esm/index.js.map +0 -1
- package/dist/esm/index.mjs +0 -44
- package/dist/esm/index.mjs.map +0 -1
- package/dist/esm/index.native.js +0 -44
- package/dist/esm/index.native.js.map +0 -1
- package/dist/esm/setup.mjs +0 -6
- package/dist/esm/setup.mjs.map +0 -1
- package/dist/esm/setup.native.js +0 -8
- package/dist/esm/setup.native.js.map +0 -1
- package/dist/esm/viewTypes.mjs +0 -2
- package/dist/esm/viewTypes.mjs.map +0 -1
- package/dist/esm/viewTypes.native.js +0 -2
- package/dist/esm/viewTypes.native.js.map +0 -1
- package/dist/esm/views/Anchor.mjs +0 -9
- package/dist/esm/views/Anchor.mjs.map +0 -1
- package/dist/esm/views/Anchor.native.js +0 -9
- package/dist/esm/views/Anchor.native.js.map +0 -1
- package/dist/esm/views/EnsureFlexed.mjs +0 -13
- package/dist/esm/views/EnsureFlexed.mjs.map +0 -1
- package/dist/esm/views/EnsureFlexed.native.js +0 -13
- package/dist/esm/views/EnsureFlexed.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/esm/views/Text.mjs +0 -15
- package/dist/esm/views/Text.mjs.map +0 -1
- package/dist/esm/views/Text.native.js +0 -15
- package/dist/esm/views/Text.native.js.map +0 -1
- package/dist/esm/views/VisuallyHidden.mjs +0 -35
- package/dist/esm/views/VisuallyHidden.mjs.map +0 -1
- package/dist/esm/views/VisuallyHidden.native.js +0 -35
- package/dist/esm/views/VisuallyHidden.native.js.map +0 -1
- package/dist/jsx/createGui.mjs +0 -55
- package/dist/jsx/createGui.mjs.map +0 -1
- package/dist/jsx/createGui.native.js +0 -89
- package/dist/jsx/createGui.native.js.map +0 -1
- package/dist/jsx/index.js +0 -44
- package/dist/jsx/index.js.map +0 -1
- package/dist/jsx/index.mjs +0 -44
- package/dist/jsx/index.mjs.map +0 -1
- package/dist/jsx/index.native.js +0 -80
- package/dist/jsx/index.native.js.map +0 -1
- package/dist/jsx/setup.mjs +0 -6
- package/dist/jsx/setup.mjs.map +0 -1
- package/dist/jsx/setup.native.js +0 -35
- package/dist/jsx/setup.native.js.map +0 -1
- package/dist/jsx/viewTypes.mjs +0 -2
- package/dist/jsx/viewTypes.mjs.map +0 -1
- package/dist/jsx/viewTypes.native.js +0 -21
- package/dist/jsx/viewTypes.native.js.map +0 -1
- package/dist/jsx/views/Anchor.mjs +0 -9
- package/dist/jsx/views/Anchor.mjs.map +0 -1
- package/dist/jsx/views/Anchor.native.js +0 -37
- package/dist/jsx/views/Anchor.native.js.map +0 -1
- package/dist/jsx/views/EnsureFlexed.mjs +0 -13
- package/dist/jsx/views/EnsureFlexed.mjs.map +0 -1
- package/dist/jsx/views/EnsureFlexed.native.js +0 -41
- package/dist/jsx/views/EnsureFlexed.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 +0 -32
- package/dist/jsx/views/GuiProvider.native.js.map +0 -1
- package/dist/jsx/views/Text.mjs +0 -15
- package/dist/jsx/views/Text.mjs.map +0 -1
- package/dist/jsx/views/Text.native.js +0 -43
- package/dist/jsx/views/Text.native.js.map +0 -1
- package/dist/jsx/views/VisuallyHidden.mjs +0 -35
- package/dist/jsx/views/VisuallyHidden.mjs.map +0 -1
- package/dist/jsx/views/VisuallyHidden.native.js +0 -63
- package/dist/jsx/views/VisuallyHidden.native.js.map +0 -1
- package/gui.config.ts +0 -4
- package/scripts/publish.sh +0 -61
- package/src/views/GuiProvider.tsx +0 -5
- package/types/createGui.d.ts +0 -6
- package/types/views/GuiProvider.d.ts +0 -4
package/dist/esm/index.js
DELETED
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
export * from "@hanzogui/core";
|
|
2
|
-
export * from "@hanzogui/stacks";
|
|
3
|
-
export * from "@hanzogui/shapes";
|
|
4
|
-
export * from "@hanzogui/spacer";
|
|
5
|
-
export * from "@hanzogui/animate-presence";
|
|
6
|
-
export * from "@hanzogui/button";
|
|
7
|
-
export * from "@hanzogui/popover";
|
|
8
|
-
export * from "@hanzogui/radio-group";
|
|
9
|
-
export * from "@hanzogui/tooltip";
|
|
10
|
-
export * from "@hanzogui/switch";
|
|
11
|
-
export * from "@hanzogui/checkbox";
|
|
12
|
-
export * from "@hanzogui/dialog";
|
|
13
|
-
export * from "@hanzogui/sheet";
|
|
14
|
-
export * from "@hanzogui/adapt";
|
|
15
|
-
export * from "@hanzogui/label";
|
|
16
|
-
export * from "@hanzogui/input";
|
|
17
|
-
export * from "@hanzogui/select";
|
|
18
|
-
export * from "@hanzogui/separator";
|
|
19
|
-
export * from "@hanzogui/slider";
|
|
20
|
-
export * from "@hanzogui/tabs";
|
|
21
|
-
export * from "@hanzogui/toggle-group";
|
|
22
|
-
export * from "@hanzogui/accordion";
|
|
23
|
-
export * from "@hanzogui/avatar";
|
|
24
|
-
export * from "@hanzogui/card";
|
|
25
|
-
export * from "@hanzogui/form";
|
|
26
|
-
export * from "@hanzogui/group";
|
|
27
|
-
export * from "@hanzogui/image";
|
|
28
|
-
export * from "@hanzogui/list-item";
|
|
29
|
-
export * from "@hanzogui/portal";
|
|
30
|
-
export * from "@hanzogui/progress";
|
|
31
|
-
export * from "@hanzogui/scroll-view";
|
|
32
|
-
export * from "@hanzogui/spinner";
|
|
33
|
-
export * from "@hanzogui/text";
|
|
34
|
-
export * from "@hanzogui/toast";
|
|
35
|
-
export * from "@hanzogui/visually-hidden";
|
|
36
|
-
export * from "@hanzogui/focusable";
|
|
37
|
-
export * from "@hanzogui/elements";
|
|
38
|
-
import { createThemes, createThemeBuilder } from "@hanzogui/theme-builder";
|
|
39
|
-
import { shorthands } from "@hanzogui/shorthands";
|
|
40
|
-
import { getDefaultGuiConfig } from "@hanzogui/config-default";
|
|
41
|
-
import { Theme, useTheme } from "@hanzogui/web";
|
|
42
|
-
import { Anchor } from "./views/Anchor.mjs";
|
|
43
|
-
export { Anchor, Theme, createThemeBuilder, createThemes, getDefaultGuiConfig, shorthands, useTheme };
|
|
44
|
-
//# sourceMappingURL=index.js.map
|
package/dist/esm/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["createThemes","createThemeBuilder","shorthands","getDefaultGuiConfig","Theme","useTheme","Anchor"],"sources":["../../src/index.ts"],"sourcesContent":[null],"mappings":"AAGA,cAAc;AAGd,cAAc;AAGd,cAAc;AAGd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AAGd,SAASA,YAAA,EAAcC,kBAAA,QAA0B;AACjD,SAASC,UAAA,QAAkB;AAC3B,SAASC,mBAAA,QAA2B;AAIpC,SAASC,KAAA,EAAOC,QAAA,QAAgB;AAIhC,SAASC,MAAA,QAAgC","ignoreList":[]}
|
package/dist/esm/index.mjs
DELETED
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
export * from "@hanzogui/core";
|
|
2
|
-
export * from "@hanzogui/stacks";
|
|
3
|
-
export * from "@hanzogui/shapes";
|
|
4
|
-
export * from "@hanzogui/spacer";
|
|
5
|
-
export * from "@hanzogui/animate-presence";
|
|
6
|
-
export * from "@hanzogui/button";
|
|
7
|
-
export * from "@hanzogui/popover";
|
|
8
|
-
export * from "@hanzogui/radio-group";
|
|
9
|
-
export * from "@hanzogui/tooltip";
|
|
10
|
-
export * from "@hanzogui/switch";
|
|
11
|
-
export * from "@hanzogui/checkbox";
|
|
12
|
-
export * from "@hanzogui/dialog";
|
|
13
|
-
export * from "@hanzogui/sheet";
|
|
14
|
-
export * from "@hanzogui/adapt";
|
|
15
|
-
export * from "@hanzogui/label";
|
|
16
|
-
export * from "@hanzogui/input";
|
|
17
|
-
export * from "@hanzogui/select";
|
|
18
|
-
export * from "@hanzogui/separator";
|
|
19
|
-
export * from "@hanzogui/slider";
|
|
20
|
-
export * from "@hanzogui/tabs";
|
|
21
|
-
export * from "@hanzogui/toggle-group";
|
|
22
|
-
export * from "@hanzogui/accordion";
|
|
23
|
-
export * from "@hanzogui/avatar";
|
|
24
|
-
export * from "@hanzogui/card";
|
|
25
|
-
export * from "@hanzogui/form";
|
|
26
|
-
export * from "@hanzogui/group";
|
|
27
|
-
export * from "@hanzogui/image";
|
|
28
|
-
export * from "@hanzogui/list-item";
|
|
29
|
-
export * from "@hanzogui/portal";
|
|
30
|
-
export * from "@hanzogui/progress";
|
|
31
|
-
export * from "@hanzogui/scroll-view";
|
|
32
|
-
export * from "@hanzogui/spinner";
|
|
33
|
-
export * from "@hanzogui/text";
|
|
34
|
-
export * from "@hanzogui/toast";
|
|
35
|
-
export * from "@hanzogui/visually-hidden";
|
|
36
|
-
export * from "@hanzogui/focusable";
|
|
37
|
-
export * from "@hanzogui/elements";
|
|
38
|
-
import { createThemes, createThemeBuilder } from "@hanzogui/theme-builder";
|
|
39
|
-
import { shorthands } from "@hanzogui/shorthands";
|
|
40
|
-
import { getDefaultGuiConfig } from "@hanzogui/config-default";
|
|
41
|
-
import { Theme, useTheme } from "@hanzogui/web";
|
|
42
|
-
import { Anchor } from "./views/Anchor.mjs";
|
|
43
|
-
export { Anchor, Theme, createThemeBuilder, createThemes, getDefaultGuiConfig, shorthands, useTheme };
|
|
44
|
-
//# sourceMappingURL=index.mjs.map
|
package/dist/esm/index.mjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["createThemes","createThemeBuilder","shorthands","getDefaultGuiConfig","Theme","useTheme","Anchor"],"sources":["../../src/index.ts"],"sourcesContent":[null],"mappings":"AAGA,cAAc;AAGd,cAAc;AAGd,cAAc;AAGd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AAGd,SAASA,YAAA,EAAcC,kBAAA,QAA0B;AACjD,SAASC,UAAA,QAAkB;AAC3B,SAASC,mBAAA,QAA2B;AAIpC,SAASC,KAAA,EAAOC,QAAA,QAAgB;AAIhC,SAASC,MAAA,QAAgC","ignoreList":[]}
|
package/dist/esm/index.native.js
DELETED
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
export * from "@hanzogui/core";
|
|
2
|
-
export * from "@hanzogui/stacks";
|
|
3
|
-
export * from "@hanzogui/shapes";
|
|
4
|
-
export * from "@hanzogui/spacer";
|
|
5
|
-
export * from "@hanzogui/animate-presence";
|
|
6
|
-
export * from "@hanzogui/button";
|
|
7
|
-
export * from "@hanzogui/popover";
|
|
8
|
-
export * from "@hanzogui/radio-group";
|
|
9
|
-
export * from "@hanzogui/tooltip";
|
|
10
|
-
export * from "@hanzogui/switch";
|
|
11
|
-
export * from "@hanzogui/checkbox";
|
|
12
|
-
export * from "@hanzogui/dialog";
|
|
13
|
-
export * from "@hanzogui/sheet";
|
|
14
|
-
export * from "@hanzogui/adapt";
|
|
15
|
-
export * from "@hanzogui/label";
|
|
16
|
-
export * from "@hanzogui/input";
|
|
17
|
-
export * from "@hanzogui/select";
|
|
18
|
-
export * from "@hanzogui/separator";
|
|
19
|
-
export * from "@hanzogui/slider";
|
|
20
|
-
export * from "@hanzogui/tabs";
|
|
21
|
-
export * from "@hanzogui/toggle-group";
|
|
22
|
-
export * from "@hanzogui/accordion";
|
|
23
|
-
export * from "@hanzogui/avatar";
|
|
24
|
-
export * from "@hanzogui/card";
|
|
25
|
-
export * from "@hanzogui/form";
|
|
26
|
-
export * from "@hanzogui/group";
|
|
27
|
-
export * from "@hanzogui/image";
|
|
28
|
-
export * from "@hanzogui/list-item";
|
|
29
|
-
export * from "@hanzogui/portal";
|
|
30
|
-
export * from "@hanzogui/progress";
|
|
31
|
-
export * from "@hanzogui/scroll-view";
|
|
32
|
-
export * from "@hanzogui/spinner";
|
|
33
|
-
export * from "@hanzogui/text";
|
|
34
|
-
export * from "@hanzogui/toast";
|
|
35
|
-
export * from "@hanzogui/visually-hidden";
|
|
36
|
-
export * from "@hanzogui/focusable";
|
|
37
|
-
export * from "@hanzogui/elements";
|
|
38
|
-
import { createThemes, createThemeBuilder } from "@hanzogui/theme-builder";
|
|
39
|
-
import { shorthands } from "@hanzogui/shorthands";
|
|
40
|
-
import { getDefaultGuiConfig } from "@hanzogui/config-default";
|
|
41
|
-
import { Theme, useTheme } from "@hanzogui/web";
|
|
42
|
-
import { Anchor } from "./views/Anchor.native.js";
|
|
43
|
-
export { Anchor, Theme, createThemeBuilder, createThemes, getDefaultGuiConfig, shorthands, useTheme };
|
|
44
|
-
//# sourceMappingURL=index.native.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["createThemes","createThemeBuilder","shorthands","getDefaultGuiConfig","Theme","useTheme","Anchor"],"sources":["../../src/index.ts"],"sourcesContent":[null],"mappings":"AAGA,cAAc;AAGd,cAAc;AAGd,cAAc;AAGd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AAGd,SAASA,YAAA,EAAcC,kBAAA,QAA0B;AACjD,SAASC,UAAA,QAAkB;AAC3B,SAASC,mBAAA,QAA2B;AAIpC,SAASC,KAAA,EAAOC,QAAA,QAAgB;AAIhC,SAASC,MAAA,QAAgC","ignoreList":[]}
|
package/dist/esm/setup.mjs
DELETED
package/dist/esm/setup.mjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["React","globalThis","requestAnimationFrame","setImmediate","setTimeout"],"sources":["../../src/setup.ts"],"sourcesContent":[null],"mappings":"AAEA,YAAYA,KAAA,MAAW;AAIvBC,UAAA,CAAW,OAAO,MAAMD,KAAA;AAGxB,IAAI,OAAOE,qBAAA,KAA0B,aAAa;EAChDD,UAAA,CAAW,uBAAuB,IAChC,OAAOE,YAAA,KAAiB,cAAcC,UAAA,GAAaD,YAAA;AACvD","ignoreList":[]}
|
package/dist/esm/setup.native.js
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
var _globalThis;
|
|
3
|
-
var _React;
|
|
4
|
-
(_globalThis = globalThis)[_React = "React"] || (_globalThis[_React] = React);
|
|
5
|
-
if (typeof requestAnimationFrame === "undefined") {
|
|
6
|
-
globalThis["requestAnimationFrame"] = typeof setImmediate === "undefined" ? setTimeout : setImmediate;
|
|
7
|
-
}
|
|
8
|
-
//# sourceMappingURL=setup.native.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["React","_globalThis","_React","globalThis","requestAnimationFrame"],"sources":["../../src/setup.ts"],"sourcesContent":[null],"mappings":"AAEA,YAAYA,KAAA,MAAW;AAIvB,IAAAC,WAAW;AAGX,IAAIC,MAAA;AACF,CAAAD,WAAA,GAAWE,UAAA,EAAAD,MAAA,GAAuB,OAChC,MAAOD,WAAA,CAAAC,MAAiB,IAAAF,KAAA;AAC5B,WAAAI,qBAAA","ignoreList":[]}
|
package/dist/esm/viewTypes.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":[],"sources":[],"sourcesContent":[],"mappings":"","ignoreList":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":[],"sources":[],"sourcesContent":[],"mappings":"","ignoreList":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["styled","SizableText","Anchor","name","tag","accessibilityRole"],"sources":["../../../src/views/Anchor.tsx"],"sourcesContent":[null],"mappings":"AAAA,SAASA,MAAA,QAAc;AACvB,SAASC,WAAA,QAAmB;AAErB,MAAMC,MAAA,GAASF,MAAA,CAAOC,WAAA,EAAa;EACxCE,IAAA,EAAM;EACNC,GAAA,EAAK;EACLC,iBAAA,EAAmB;AACrB,CAAC","ignoreList":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["styled","SizableText","Anchor","name","tag","accessibilityRole"],"sources":["../../../src/views/Anchor.tsx"],"sourcesContent":[null],"mappings":"AAAA,SAASA,MAAA,QAAc;AACvB,SAASC,WAAA,QAAmB;AAErB,IAAAC,MAAM,GAAAF,MAAS,CAAAC,WAAO;EAC3BE,IAAA,EAAM;EACNC,GAAA,EAAK;EACLC,iBAAA,EAAmB;AACrB,CAAC","ignoreList":[]}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { Text, styled } from "@hanzogui/core";
|
|
2
|
-
const EnsureFlexed = styled(Text, {
|
|
3
|
-
opacity: 0,
|
|
4
|
-
lineHeight: 0,
|
|
5
|
-
height: 0,
|
|
6
|
-
display: "flex",
|
|
7
|
-
fontSize: 200,
|
|
8
|
-
children: "wwwwwwwwwwwwwwwwwww",
|
|
9
|
-
pointerEvents: "none"
|
|
10
|
-
});
|
|
11
|
-
EnsureFlexed["isVisuallyHidden"] = true;
|
|
12
|
-
export { EnsureFlexed };
|
|
13
|
-
//# sourceMappingURL=EnsureFlexed.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["Text","styled","EnsureFlexed","opacity","lineHeight","height","display","fontSize","children","pointerEvents"],"sources":["../../../src/views/EnsureFlexed.tsx"],"sourcesContent":[null],"mappings":"AAAA,SAASA,IAAA,EAAMC,MAAA,QAAc;AAItB,MAAMC,YAAA,GAAeD,MAAA,CAAOD,IAAA,EAAM;EACvCG,OAAA,EAAS;EACTC,UAAA,EAAY;EACZC,MAAA,EAAQ;EACRC,OAAA,EAAS;EACTC,QAAA,EAAU;EACVC,QAAA,EAAU;EACVC,aAAA,EAAe;AACjB,CAAC;AAIDP,YAAA,CAAa,kBAAkB,IAAI","ignoreList":[]}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { Text, styled } from "@hanzogui/core";
|
|
2
|
-
var EnsureFlexed = styled(Text, {
|
|
3
|
-
opacity: 0,
|
|
4
|
-
lineHeight: 0,
|
|
5
|
-
height: 0,
|
|
6
|
-
display: "flex",
|
|
7
|
-
fontSize: 200,
|
|
8
|
-
children: "wwwwwwwwwwwwwwwwwww",
|
|
9
|
-
pointerEvents: "none"
|
|
10
|
-
});
|
|
11
|
-
EnsureFlexed["isVisuallyHidden"] = true;
|
|
12
|
-
export { EnsureFlexed };
|
|
13
|
-
//# sourceMappingURL=EnsureFlexed.native.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["Text","styled","EnsureFlexed","opacity","lineHeight","height","display","fontSize","children","pointerEvents"],"sources":["../../../src/views/EnsureFlexed.tsx"],"sourcesContent":[null],"mappings":"AAAA,SAASA,IAAA,EAAMC,MAAA,QAAc;AAItB,IAAAC,YAAM,GAAAD,MAAe,CAAAD,IAAO;EACjCG,OAAA,EAAS;EACTC,UAAA,EAAY;EACZC,MAAA,EAAQ;EACRC,OAAA,EAAS;EACTC,QAAA,EAAU;EACVC,QAAA,EAAU;EACVC,aAAA,EAAe;AACjB,CAAC;AAIDP,YAAA,CAAa,kBAAkB,IAAI","ignoreList":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["GuiProvider","CoreGuiProvider"],"sources":["../../../src/views/GuiProvider.tsx"],"sourcesContent":[null],"mappings":"AACA,SAASA,WAAA,IAAeC,eAAA,QAAuB;AAExC,MAAMD,WAAA,GAAcC,eAAA","ignoreList":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["GuiProvider","CoreGuiProvider"],"sources":["../../../src/views/GuiProvider.tsx"],"sourcesContent":[null],"mappings":"AACA,SAASA,WAAA,IAAeC,eAAA,QAAuB;AAExC,IAAAD,WAAM,GAAAC,eAAc","ignoreList":[]}
|
package/dist/esm/views/Text.mjs
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { Text as GuiText, styled } from "@hanzogui/core";
|
|
2
|
-
const Text = styled(GuiText, {
|
|
3
|
-
variants: {
|
|
4
|
-
unstyled: {
|
|
5
|
-
false: {
|
|
6
|
-
color: "$color"
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
|
-
},
|
|
10
|
-
defaultVariants: {
|
|
11
|
-
unstyled: process.env.GUI_HEADLESS === "1"
|
|
12
|
-
}
|
|
13
|
-
});
|
|
14
|
-
export { Text };
|
|
15
|
-
//# sourceMappingURL=Text.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["Text","GuiText","styled","variants","unstyled","false","color","defaultVariants","process","env","GUI_HEADLESS"],"sources":["../../../src/views/Text.tsx"],"sourcesContent":[null],"mappings":"AAAA,SAASA,IAAA,IAAQC,OAAA,EAASC,MAAA,QAAc;AAEjC,MAAMF,IAAA,GAAOE,MAAA,CAAOD,OAAA,EAAS;EAClCE,QAAA,EAAU;IACRC,QAAA,EAAU;MACRC,KAAA,EAAO;QACLC,KAAA,EAAO;MACT;IACF;EACF;EAEAC,eAAA,EAAiB;IACfH,QAAA,EAAUI,OAAA,CAAQC,GAAA,CAAIC,YAAA,KAAiB;EACzC;AACF,CAAC","ignoreList":[]}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { Text as GuiText, styled } from "@hanzogui/core";
|
|
2
|
-
var Text = styled(GuiText, {
|
|
3
|
-
variants: {
|
|
4
|
-
unstyled: {
|
|
5
|
-
false: {
|
|
6
|
-
color: "$color"
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
|
-
},
|
|
10
|
-
defaultVariants: {
|
|
11
|
-
unstyled: process.env.GUI_HEADLESS === "1"
|
|
12
|
-
}
|
|
13
|
-
});
|
|
14
|
-
export { Text };
|
|
15
|
-
//# sourceMappingURL=Text.native.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["Text","GuiText","styled","variants","unstyled","false","color","defaultVariants","process","env","GUI_HEADLESS"],"sources":["../../../src/views/Text.tsx"],"sourcesContent":[null],"mappings":"AAAA,SAASA,IAAA,IAAQC,OAAA,EAASC,MAAA,QAAc;AAEjC,IAAAF,IAAM,GAAAE,MAAO,CAAAD,OAAO;EACzBE,QAAA,EAAU;IACRC,QAAA,EAAU;MACRC,KAAA,EAAO;QACLC,KAAA,EAAO;MACT;IACF;EACF;EAEAC,eAAA,EAAiB;IACfH,QAAA,EAAUI,OAAA,CAAQC,GAAA,CAAIC,YAAA,KAAiB;EACzC;AACF,CAAC","ignoreList":[]}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { View, styled } from "@hanzogui/core";
|
|
2
|
-
const VisuallyHidden = styled(View, {
|
|
3
|
-
position: "absolute",
|
|
4
|
-
width: 1,
|
|
5
|
-
height: 1,
|
|
6
|
-
margin: -1,
|
|
7
|
-
zIndex: -1e4,
|
|
8
|
-
overflow: "hidden",
|
|
9
|
-
opacity: 1e-8,
|
|
10
|
-
pointerEvents: "none",
|
|
11
|
-
variants: {
|
|
12
|
-
preserveDimensions: {
|
|
13
|
-
true: {
|
|
14
|
-
position: "relative",
|
|
15
|
-
width: "auto",
|
|
16
|
-
height: "auto"
|
|
17
|
-
}
|
|
18
|
-
},
|
|
19
|
-
visible: {
|
|
20
|
-
true: {
|
|
21
|
-
position: "relative",
|
|
22
|
-
width: "auto",
|
|
23
|
-
height: "auto",
|
|
24
|
-
margin: 0,
|
|
25
|
-
zIndex: 1,
|
|
26
|
-
overflow: "visible",
|
|
27
|
-
opacity: 1,
|
|
28
|
-
pointerEvents: "auto"
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
});
|
|
33
|
-
VisuallyHidden["isVisuallyHidden"] = true;
|
|
34
|
-
export { VisuallyHidden };
|
|
35
|
-
//# sourceMappingURL=VisuallyHidden.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["View","styled","VisuallyHidden","position","width","height","margin","zIndex","overflow","opacity","pointerEvents","variants","preserveDimensions","true","visible"],"sources":["../../../src/views/VisuallyHidden.tsx"],"sourcesContent":[null],"mappings":"AAAA,SAASA,IAAA,EAAMC,MAAA,QAAc;AAEtB,MAAMC,cAAA,GAAiBD,MAAA,CAAOD,IAAA,EAAM;EACzCG,QAAA,EAAU;EACVC,KAAA,EAAO;EACPC,MAAA,EAAQ;EACRC,MAAA,EAAQ;EACRC,MAAA,EAAQ;EACRC,QAAA,EAAU;EACVC,OAAA,EAAS;EACTC,aAAA,EAAe;EAEfC,QAAA,EAAU;IACRC,kBAAA,EAAoB;MAClBC,IAAA,EAAM;QACJV,QAAA,EAAU;QACVC,KAAA,EAAO;QACPC,MAAA,EAAQ;MACV;IACF;IAEAS,OAAA,EAAS;MACPD,IAAA,EAAM;QACJV,QAAA,EAAU;QACVC,KAAA,EAAO;QACPC,MAAA,EAAQ;QACRC,MAAA,EAAQ;QACRC,MAAA,EAAQ;QACRC,QAAA,EAAU;QACVC,OAAA,EAAS;QACTC,aAAA,EAAe;MACjB;IACF;EACF;AACF,CAAC;AAGDR,cAAA,CAAe,kBAAkB,IAAI","ignoreList":[]}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { View, styled } from "@hanzogui/core";
|
|
2
|
-
var VisuallyHidden = styled(View, {
|
|
3
|
-
position: "absolute",
|
|
4
|
-
width: 1,
|
|
5
|
-
height: 1,
|
|
6
|
-
margin: -1,
|
|
7
|
-
zIndex: -1e4,
|
|
8
|
-
overflow: "hidden",
|
|
9
|
-
opacity: 1e-8,
|
|
10
|
-
pointerEvents: "none",
|
|
11
|
-
variants: {
|
|
12
|
-
preserveDimensions: {
|
|
13
|
-
true: {
|
|
14
|
-
position: "relative",
|
|
15
|
-
width: "auto",
|
|
16
|
-
height: "auto"
|
|
17
|
-
}
|
|
18
|
-
},
|
|
19
|
-
visible: {
|
|
20
|
-
true: {
|
|
21
|
-
position: "relative",
|
|
22
|
-
width: "auto",
|
|
23
|
-
height: "auto",
|
|
24
|
-
margin: 0,
|
|
25
|
-
zIndex: 1,
|
|
26
|
-
overflow: "visible",
|
|
27
|
-
opacity: 1,
|
|
28
|
-
pointerEvents: "auto"
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
});
|
|
33
|
-
VisuallyHidden["isVisuallyHidden"] = true;
|
|
34
|
-
export { VisuallyHidden };
|
|
35
|
-
//# sourceMappingURL=VisuallyHidden.native.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["View","styled","VisuallyHidden","position","width","height","margin","zIndex","overflow","opacity","pointerEvents","variants","preserveDimensions","true","visible"],"sources":["../../../src/views/VisuallyHidden.tsx"],"sourcesContent":[null],"mappings":"AAAA,SAASA,IAAA,EAAMC,MAAA,QAAc;AAEtB,IAAAC,cAAM,GAAAD,MAAiB,CAAAD,IAAO;EACnCG,QAAA,EAAU;EACVC,KAAA,EAAO;EACPC,MAAA,EAAQ;EACRC,MAAA,EAAQ;EACRC,MAAA,EAAQ;EACRC,QAAA,EAAU;EACVC,OAAA,EAAS;EACTC,aAAA,EAAe;EAEfC,QAAA,EAAU;IACRC,kBAAA,EAAoB;MAClBC,IAAA,EAAM;QACJV,QAAA,EAAU;QACVC,KAAA,EAAO;QACPC,MAAA,EAAQ;MACV;IACF;IAEAS,OAAA,EAAS;MACPD,IAAA,EAAM;QACJV,QAAA,EAAU;QACVC,KAAA,EAAO;QACPC,MAAA,EAAQ;QACRC,MAAA,EAAQ;QACRC,MAAA,EAAQ;QACRC,QAAA,EAAU;QACVC,OAAA,EAAS;QACTC,aAAA,EAAe;MACjB;IACF;EACF;AACF,CAAC;AAGDR,cAAA,CAAe,kBAAkB,IAAI","ignoreList":[]}
|
package/dist/jsx/createGui.mjs
DELETED
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import { createGui as createGuiCore } from "@hanzogui/core";
|
|
2
|
-
const createGui = process.env.NODE_ENV !== "development" ? createGuiCore : conf => {
|
|
3
|
-
const sizeTokenKeys = ["$true"];
|
|
4
|
-
const hasKeys = (expectedKeys, obj) => {
|
|
5
|
-
return expectedKeys.every(k => typeof obj[k] !== "undefined");
|
|
6
|
-
};
|
|
7
|
-
const guiConfig = createGuiCore(conf);
|
|
8
|
-
for (const name of ["size", "space"]) {
|
|
9
|
-
const tokenSet = guiConfig.tokensParsed[name];
|
|
10
|
-
if (!tokenSet) {
|
|
11
|
-
throw new Error(`Expected tokens for "${name}" in ${Object.keys(guiConfig.tokensParsed).join(", ")}`);
|
|
12
|
-
}
|
|
13
|
-
if (!hasKeys(sizeTokenKeys, tokenSet)) {
|
|
14
|
-
throw new Error(`
|
|
15
|
-
createGui() missing expected tokens.${name}:
|
|
16
|
-
|
|
17
|
-
Received: ${Object.keys(tokenSet).join(", ")}
|
|
18
|
-
|
|
19
|
-
Expected: ${sizeTokenKeys.join(", ")}
|
|
20
|
-
|
|
21
|
-
GUI expects a "true" key that is the same value as your default size. This is so
|
|
22
|
-
it can size things up or down from the defaults without assuming which keys you use.
|
|
23
|
-
|
|
24
|
-
Please define a "true" or "$true" key on your size and space tokens like so (example):
|
|
25
|
-
|
|
26
|
-
size: {
|
|
27
|
-
sm: 2,
|
|
28
|
-
md: 10,
|
|
29
|
-
true: 10, // this means "md" is your default size
|
|
30
|
-
lg: 20,
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
`);
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
const expected = Object.keys(guiConfig.tokensParsed.size);
|
|
37
|
-
for (const name of ["radius", "zIndex"]) {
|
|
38
|
-
const tokenSet = guiConfig.tokensParsed[name];
|
|
39
|
-
const received = Object.keys(tokenSet);
|
|
40
|
-
const hasSomeOverlap = received.some(rk => expected.includes(rk));
|
|
41
|
-
if (!hasSomeOverlap) {
|
|
42
|
-
throw new Error(`
|
|
43
|
-
createGui() invalid tokens.${name}:
|
|
44
|
-
|
|
45
|
-
Received: ${received.join(", ")}
|
|
46
|
-
|
|
47
|
-
Expected a subset of: ${expected.join(", ")}
|
|
48
|
-
|
|
49
|
-
`);
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
return guiConfig;
|
|
53
|
-
};
|
|
54
|
-
export { createGui };
|
|
55
|
-
//# sourceMappingURL=createGui.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["createGui","createGuiCore","process","env","NODE_ENV","conf","sizeTokenKeys","hasKeys","expectedKeys","obj","every","k","guiConfig","name","tokenSet","tokensParsed","Error","Object","keys","join","expected","size","received","hasSomeOverlap","some","rk","includes"],"sources":["../../src/createGui.ts"],"sourcesContent":[null],"mappings":"AAAA,SAASA,SAAA,IAAaC,aAAA,QAAqB;AAMpC,MAAMD,SAAA,GACXE,OAAA,CAAQC,GAAA,CAAIC,QAAA,KAAa,gBACrBH,aAAA,GACCI,IAAA,IAAS;EACR,MAAMC,aAAA,GAAgB,CAAC,OAAO;EAE9B,MAAMC,OAAA,GAAUA,CAACC,YAAA,EAAwBC,GAAA,KAA0B;IACjE,OAAOD,YAAA,CAAaE,KAAA,CAAOC,CAAA,IAAM,OAAOF,GAAA,CAAIE,CAAC,MAAM,WAAW;EAChE;EAEA,MAAMC,SAAA,GAAYX,aAAA,CAAcI,IAAI;EAGpC,WAAWQ,IAAA,IAAQ,CAAC,QAAQ,OAAO,GAAY;IAC7C,MAAMC,QAAA,GAAWF,SAAA,CAAUG,YAAA,CAAaF,IAAI;IAC5C,IAAI,CAACC,QAAA,EAAU;MACb,MAAM,IAAIE,KAAA,CACR,wBAAwBH,IAAI,QAAQI,MAAA,CAAOC,IAAA,CACzCN,SAAA,CAAUG,YACZ,EAAEI,IAAA,CAAK,IAAI,CAAC,EACd;IACF;IACA,IAAI,CAACZ,OAAA,CAAQD,aAAA,EAAeQ,QAAQ,GAAG;MACrC,MAAM,IAAIE,KAAA,CAAM;AAAA,sCACUH,IAAI;AAAA;AAAA,YAE9BI,MAAA,CAAOC,IAAA,CAAKJ,QAAQ,EAAEK,IAAA,CAAK,IAAI,CAAC;AAAA;AAAA,YAEhCb,aAAA,CAAca,IAAA,CAAK,IAAI,CAAC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,CAcnC;IACS;EACF;EAGA,MAAMC,QAAA,GAAWH,MAAA,CAAOC,IAAA,CAAKN,SAAA,CAAUG,YAAA,CAAaM,IAAI;EACxD,WAAWR,IAAA,IAAQ,CAAC,UAAU,QAAQ,GAAY;IAChD,MAAMC,QAAA,GAAWF,SAAA,CAAUG,YAAA,CAAaF,IAAI;IAC5C,MAAMS,QAAA,GAAWL,MAAA,CAAOC,IAAA,CAAKJ,QAAQ;IACrC,MAAMS,cAAA,GAAiBD,QAAA,CAASE,IAAA,CAAMC,EAAA,IAAOL,QAAA,CAASM,QAAA,CAASD,EAAE,CAAC;IAClE,IAAI,CAACF,cAAA,EAAgB;MACnB,MAAM,IAAIP,KAAA,CAAM;AAAA,6BACCH,IAAI;AAAA;AAAA,YAErBS,QAAA,CAASH,IAAA,CAAK,IAAI,CAAC;AAAA;AAAA,wBAEPC,QAAA,CAASD,IAAA,CAAK,IAAI,CAAC;AAAA;AAAA,CAE1C;IACS;EACF;EAEA,OAAOP,SAAA;AACT","ignoreList":[]}
|
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var __defProp = Object.defineProperty;
|
|
4
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
-
var __export = (target, all) => {
|
|
8
|
-
for (var name in all) __defProp(target, name, {
|
|
9
|
-
get: all[name],
|
|
10
|
-
enumerable: true
|
|
11
|
-
});
|
|
12
|
-
};
|
|
13
|
-
var __copyProps = (to, from, except, desc) => {
|
|
14
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
15
|
-
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
16
|
-
get: () => from[key],
|
|
17
|
-
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
18
|
-
});
|
|
19
|
-
}
|
|
20
|
-
return to;
|
|
21
|
-
};
|
|
22
|
-
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
23
|
-
value: true
|
|
24
|
-
}), mod);
|
|
25
|
-
var createGui_exports = {};
|
|
26
|
-
__export(createGui_exports, {
|
|
27
|
-
createGui: () => createGui
|
|
28
|
-
});
|
|
29
|
-
module.exports = __toCommonJS(createGui_exports);
|
|
30
|
-
var import_core = require("@hanzogui/core");
|
|
31
|
-
var createGui = process.env.NODE_ENV !== "development" ? import_core.createGui : function (conf) {
|
|
32
|
-
var sizeTokenKeys = ["$true"];
|
|
33
|
-
var hasKeys = function (expectedKeys, obj) {
|
|
34
|
-
return expectedKeys.every(function (k) {
|
|
35
|
-
return typeof obj[k] !== "undefined";
|
|
36
|
-
});
|
|
37
|
-
};
|
|
38
|
-
var guiConfig = (0, import_core.createGui)(conf);
|
|
39
|
-
for (var _i = 0, _iter = ["size", "space"]; _i < _iter.length; _i++) {
|
|
40
|
-
var name = _iter[_i];
|
|
41
|
-
var tokenSet = guiConfig.tokensParsed[name];
|
|
42
|
-
if (!tokenSet) {
|
|
43
|
-
throw new Error(`Expected tokens for "${name}" in ${Object.keys(guiConfig.tokensParsed).join(", ")}`);
|
|
44
|
-
}
|
|
45
|
-
if (!hasKeys(sizeTokenKeys, tokenSet)) {
|
|
46
|
-
throw new Error(`
|
|
47
|
-
createGui() missing expected tokens.${name}:
|
|
48
|
-
|
|
49
|
-
Received: ${Object.keys(tokenSet).join(", ")}
|
|
50
|
-
|
|
51
|
-
Expected: ${sizeTokenKeys.join(", ")}
|
|
52
|
-
|
|
53
|
-
GUI expects a "true" key that is the same value as your default size. This is so
|
|
54
|
-
it can size things up or down from the defaults without assuming which keys you use.
|
|
55
|
-
|
|
56
|
-
Please define a "true" or "$true" key on your size and space tokens like so (example):
|
|
57
|
-
|
|
58
|
-
size: {
|
|
59
|
-
sm: 2,
|
|
60
|
-
md: 10,
|
|
61
|
-
true: 10, // this means "md" is your default size
|
|
62
|
-
lg: 20,
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
`);
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
var expected = Object.keys(guiConfig.tokensParsed.size);
|
|
69
|
-
for (var _i1 = 0, _iter1 = ["radius", "zIndex"]; _i1 < _iter1.length; _i1++) {
|
|
70
|
-
var name1 = _iter1[_i1];
|
|
71
|
-
var tokenSet1 = guiConfig.tokensParsed[name1];
|
|
72
|
-
var received = Object.keys(tokenSet1);
|
|
73
|
-
var hasSomeOverlap = received.some(function (rk) {
|
|
74
|
-
return expected.includes(rk);
|
|
75
|
-
});
|
|
76
|
-
if (!hasSomeOverlap) {
|
|
77
|
-
throw new Error(`
|
|
78
|
-
createGui() invalid tokens.${name1}:
|
|
79
|
-
|
|
80
|
-
Received: ${received.join(", ")}
|
|
81
|
-
|
|
82
|
-
Expected a subset of: ${expected.join(", ")}
|
|
83
|
-
|
|
84
|
-
`);
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
return guiConfig;
|
|
88
|
-
};
|
|
89
|
-
//# sourceMappingURL=createGui.native.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["__defProp","Object","defineProperty","__getOwnPropDesc","getOwnPropertyDescriptor","__getOwnPropNames","getOwnPropertyNames","__hasOwnProp","prototype","hasOwnProperty","__export","target","all","name","get","enumerable","__copyProps","to","from","except","desc","key","call","__toCommonJS","mod","value","createGui_exports","createGui","module","exports","import_core","require","process","env","NODE_ENV","conf","sizeTokenKeys","hasKeys","expectedKeys","obj","every","k","guiConfig","_i","_iter","length","tokenSet","tokensParsed","Error","keys","join"],"sources":["../../src/createGui.ts"],"sourcesContent":[null],"mappings":"AAAA,YAAS;;AAMF,IAAAA,SAAM,GAAAC,MACX,CAAAC,cAAY;AAGN,IAAAC,gBAAM,GAAAF,MAAiB,CAAAG,wBAAO;AAE9B,IAAAC,iBAAiB,GAAAJ,MAAA,CAAAK,mBAAkD;AACjE,IAAAC,YAAO,GAAAN,MAAa,CAAAO,SAAO,CAAAC,cAAkB;AAAiB,IAChEC,QAAA,GAAAA,CAAAC,MAAA,EAAAC,GAAA;EAEA,SAAMC,IAAA,IAAAD,GAAY,EAGlBZ,SAAW,CAAAW,MAAA,EAASE,IAAA;IAAQC,GAAA,EAAAF,GAAO,CAAAC,IAAY;IAAAE,UAAA;EAAA;AAC7C;AACA,IAAAC,WAAK,GAAAA,CAAUC,EAAA,EAAAC,IAAA,EAAAC,MAAA,EAAAC,IAAA;EACb,IAAAF,IAAA,IAAM,OAAIA,IAAA,wBAAAA,IAAA;IAAA,KACR,IAAAG,GAAA,IAAAhB,iBAA4B,CAAAa,IAAA,GAAe,IACzC,CAAAX,YAAU,CAAAe,IAAA,CAAAL,EAAA,EAAAI,GAAA,KAAAA,GAAA,KAAAF,MAAA,EACZnB,SAAO,CAAAiB,EAAK,EAAAI,GAAA;MAAAP,GAAA,EAAAA,CAAA,KAAAI,IAAA,CAAAG,GAAA;MAAAN,UAAA,IAAAK,IAAA,GAAAjB,gBAAA,CAAAe,IAAA,EAAAG,GAAA,MAAAD,IAAA,CAAAL;IAAA;EAAA;EACd,OACFE,EAAA;AACA;AACE,IAAAM,YAAU,GAAAC,GAAM,IAAAR,WAAA,CAAAhB,SAAA;EAAAyB,KAAA;AAAA,IAAAD,GAAA;AAAA,IAAAE,iBAAA;AACchB,QAAA,CAAAgB,iBAAA;EAAAC,SAAA,EAE9BA,CAAA,KAAOA;AAAyB;AAAAC,MAAA,CAAAC,OAEhC,GAAAN,YAAc,CAAAG,iBAAU;AAAA,IAAAI,WAAA,GAAAC,OAAA;AAAA,IAAAJ,SAAA,GAAAK,OAAA,CAAAC,GAAA,CAAAC,QAAA,qBAAAJ,WAAA,CAAAH,SAAA,aAAAQ,IAAA;EAAA,IAAAC,aAAA;EAAA,IAAAC,OAAA,YAAAA,CAAAC,YAAA,EAAAC,GAAA;IAAA,OAAAD,YAAA,CAAAE,KAAA,WAAAC,CAAA;MAAA,cAAAF,GAAA,CAAAE,CAAA;IAAA;EAAA;EAAA,IAAAC,SAAA,OAAAZ,WAAA,CAAAH,SAAA,EAAAQ,IAAA;EAAA,SAAAQ,EAAA,MAAAC,KAAA,YAcnC,UACSD,EAAA,GAAAC,KAAA,CAAAC,MAAA,EAAAF,EAAA;IACF,IAAA9B,IAAA,GAAA+B,KAAA,CAAAD,EAAA;IAGA,IAAMG,QAAA,GAAWJ,SAAO,CAAAK,YAAe,CAAAlC,IAAA;IACvC,KAAAiC,QAAW;MACT,MAAM,IAAAE,KAAW,yBAAuBnC,IAAI,QAAAZ,MAAA,CAAAgD,IAAA,CAAAP,SAAA,CAAAK,YAAA,EAAAG,IAAA;IAC5C;IACA,KAAAb,OAAM,CAAAD,aAAiB,EAAAU,QAAS,CAAK,EAAC;MACtC,MAAK,IAAAE,KAAA;AACH,sCAAgBnC,IAAA;AAAA;AACK,YAAAZ,MAAA,CAAAgD,IAAA,CAAAH,QAAA,EAAAI,IAAA;AAAA;AAEF,YAAAd,aAAA,CAAAc,IAAA;AAAA;AAEY;AAAA;AAE1C;AACS;AAGF;AACF","ignoreList":[]}
|
package/dist/jsx/index.js
DELETED
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
export * from "@hanzogui/core";
|
|
2
|
-
export * from "@hanzogui/stacks";
|
|
3
|
-
export * from "@hanzogui/shapes";
|
|
4
|
-
export * from "@hanzogui/spacer";
|
|
5
|
-
export * from "@hanzogui/animate-presence";
|
|
6
|
-
export * from "@hanzogui/button";
|
|
7
|
-
export * from "@hanzogui/popover";
|
|
8
|
-
export * from "@hanzogui/radio-group";
|
|
9
|
-
export * from "@hanzogui/tooltip";
|
|
10
|
-
export * from "@hanzogui/switch";
|
|
11
|
-
export * from "@hanzogui/checkbox";
|
|
12
|
-
export * from "@hanzogui/dialog";
|
|
13
|
-
export * from "@hanzogui/sheet";
|
|
14
|
-
export * from "@hanzogui/adapt";
|
|
15
|
-
export * from "@hanzogui/label";
|
|
16
|
-
export * from "@hanzogui/input";
|
|
17
|
-
export * from "@hanzogui/select";
|
|
18
|
-
export * from "@hanzogui/separator";
|
|
19
|
-
export * from "@hanzogui/slider";
|
|
20
|
-
export * from "@hanzogui/tabs";
|
|
21
|
-
export * from "@hanzogui/toggle-group";
|
|
22
|
-
export * from "@hanzogui/accordion";
|
|
23
|
-
export * from "@hanzogui/avatar";
|
|
24
|
-
export * from "@hanzogui/card";
|
|
25
|
-
export * from "@hanzogui/form";
|
|
26
|
-
export * from "@hanzogui/group";
|
|
27
|
-
export * from "@hanzogui/image";
|
|
28
|
-
export * from "@hanzogui/list-item";
|
|
29
|
-
export * from "@hanzogui/portal";
|
|
30
|
-
export * from "@hanzogui/progress";
|
|
31
|
-
export * from "@hanzogui/scroll-view";
|
|
32
|
-
export * from "@hanzogui/spinner";
|
|
33
|
-
export * from "@hanzogui/text";
|
|
34
|
-
export * from "@hanzogui/toast";
|
|
35
|
-
export * from "@hanzogui/visually-hidden";
|
|
36
|
-
export * from "@hanzogui/focusable";
|
|
37
|
-
export * from "@hanzogui/elements";
|
|
38
|
-
import { createThemes, createThemeBuilder } from "@hanzogui/theme-builder";
|
|
39
|
-
import { shorthands } from "@hanzogui/shorthands";
|
|
40
|
-
import { getDefaultGuiConfig } from "@hanzogui/config-default";
|
|
41
|
-
import { Theme, useTheme } from "@hanzogui/web";
|
|
42
|
-
import { Anchor } from "./views/Anchor.mjs";
|
|
43
|
-
export { Anchor, Theme, createThemeBuilder, createThemes, getDefaultGuiConfig, shorthands, useTheme };
|
|
44
|
-
//# sourceMappingURL=index.js.map
|
package/dist/jsx/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["createThemes","createThemeBuilder","shorthands","getDefaultGuiConfig","Theme","useTheme","Anchor"],"sources":["../../src/index.ts"],"sourcesContent":[null],"mappings":"AAGA,cAAc;AAGd,cAAc;AAGd,cAAc;AAGd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AAGd,SAASA,YAAA,EAAcC,kBAAA,QAA0B;AACjD,SAASC,UAAA,QAAkB;AAC3B,SAASC,mBAAA,QAA2B;AAIpC,SAASC,KAAA,EAAOC,QAAA,QAAgB;AAIhC,SAASC,MAAA,QAAgC","ignoreList":[]}
|