eddev 0.2.0-beta.1 → 0.2.0-beta.13

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.
Files changed (112) hide show
  1. package/build/build-favicon.d.ts +1 -0
  2. package/build/build-favicon.js +71 -0
  3. package/build/create-serverless-dev-worker.d.ts +3 -0
  4. package/build/create-serverless-dev-worker.js +99 -0
  5. package/build/get-webpack-config.js +19 -11
  6. package/build/reporter.js +0 -109
  7. package/build/serverless/create-next-app.d.ts +2 -0
  8. package/build/serverless/create-next-app.js +212 -76
  9. package/build/state/serverless-state.d.ts +26 -0
  10. package/build/state/serverless-state.js +2 -0
  11. package/build/workers/serverless-worker-dev-script.d.ts +1 -0
  12. package/build/workers/serverless-worker-dev-script.js +21 -0
  13. package/cli/build.dev.js +30 -7
  14. package/cli/build.prod.js +5 -0
  15. package/cli/cli.js +23 -15
  16. package/cli/display/components/DevCLIDisplay.d.ts +3 -0
  17. package/cli/display/components/DevCLIDisplay.js +20 -1
  18. package/cli/display/components/ServerlessDisplay.d.ts +9 -0
  19. package/cli/display/components/ServerlessDisplay.js +68 -0
  20. package/config/config-schema.d.ts +50 -0
  21. package/config/config-schema.js +18 -0
  22. package/config/create-schema-file.d.ts +1 -0
  23. package/config/create-schema-file.js +20 -0
  24. package/config/get-config.d.ts +36 -0
  25. package/config/get-config.js +32 -0
  26. package/config/index.d.ts +2 -0
  27. package/config/index.js +14 -0
  28. package/config/parse-config.d.ts +23 -0
  29. package/config/parse-config.js +8 -0
  30. package/config/print-zod-errors.d.ts +2 -0
  31. package/config/print-zod-errors.js +14 -0
  32. package/dev-ui/components/BreakpointColumnHeader.d.ts +11 -0
  33. package/dev-ui/components/BreakpointColumnHeader.js +47 -0
  34. package/dev-ui/components/BreakpointIndicator.d.ts +2 -0
  35. package/dev-ui/components/BreakpointIndicator.js +138 -0
  36. package/dev-ui/components/BreakpointList.d.ts +6 -0
  37. package/dev-ui/components/BreakpointList.js +38 -0
  38. package/dev-ui/components/DevUI.d.ts +2 -0
  39. package/dev-ui/components/DevUI.js +29 -0
  40. package/dev-ui/components/Launcher.d.ts +98 -0
  41. package/dev-ui/components/Launcher.js +94 -0
  42. package/dev-ui/components/PanelWrapper.d.ts +8 -0
  43. package/dev-ui/components/PanelWrapper.js +37 -0
  44. package/dev-ui/components/ResponsiveLerpControl.d.ts +8 -0
  45. package/dev-ui/components/ResponsiveLerpControl.js +177 -0
  46. package/dev-ui/components/ResponsiveScaleEditor.d.ts +26 -0
  47. package/dev-ui/components/ResponsiveScaleEditor.js +233 -0
  48. package/dev-ui/components/ResponsiveScaleHeader.d.ts +15 -0
  49. package/dev-ui/components/ResponsiveScaleHeader.js +51 -0
  50. package/dev-ui/components/atoms/Button.d.ts +47 -0
  51. package/dev-ui/components/atoms/Button.js +67 -0
  52. package/dev-ui/components/atoms/Dropdown.d.ts +13 -0
  53. package/dev-ui/components/atoms/Dropdown.js +50 -0
  54. package/dev-ui/components/atoms/NumberField.d.ts +12 -0
  55. package/dev-ui/components/atoms/NumberField.js +111 -0
  56. package/dev-ui/components/atoms/Spacer.d.ts +42 -0
  57. package/dev-ui/components/atoms/Spacer.js +8 -0
  58. package/dev-ui/components/atoms/Text.d.ts +45 -0
  59. package/dev-ui/components/atoms/Text.js +39 -0
  60. package/dev-ui/components/atoms/ToggleButton.d.ts +8 -0
  61. package/dev-ui/components/atoms/ToggleButton.js +41 -0
  62. package/dev-ui/components/atoms/Tooltip.d.ts +9 -0
  63. package/dev-ui/components/atoms/Tooltip.js +66 -0
  64. package/dev-ui/components/panels/PageDataDebugger.d.ts +2 -0
  65. package/dev-ui/components/panels/PageDataDebugger.js +30 -0
  66. package/dev-ui/components/panels/SpacingEditor.d.ts +2 -0
  67. package/dev-ui/components/panels/SpacingEditor.js +88 -0
  68. package/dev-ui/components/panels/TypographyEditor.d.ts +2 -0
  69. package/dev-ui/components/panels/TypographyEditor.js +88 -0
  70. package/dev-ui/hooks/useBreakpoint.d.ts +11 -0
  71. package/dev-ui/hooks/useBreakpoint.js +59 -0
  72. package/dev-ui/hooks/usePersistState.d.ts +1 -0
  73. package/dev-ui/hooks/usePersistState.js +33 -0
  74. package/dev-ui/hooks/useStylesheet.d.ts +4 -0
  75. package/dev-ui/hooks/useStylesheet.js +31 -0
  76. package/dev-ui/icons.d.ts +15 -0
  77. package/dev-ui/icons.js +29 -0
  78. package/dev-ui/index.d.ts +1 -0
  79. package/dev-ui/index.js +5 -0
  80. package/dev-ui/panels.d.ts +11 -0
  81. package/dev-ui/panels.js +33 -0
  82. package/dev-ui/theme.d.ts +150 -0
  83. package/dev-ui/theme.js +50 -0
  84. package/entry/Root.js +6 -5
  85. package/hooks/useAppData.js +0 -1
  86. package/package.json +8 -7
  87. package/serverless/create-rpc-client.d.ts +33 -0
  88. package/serverless/create-rpc-client.js +20 -0
  89. package/serverless/define-api.d.ts +2 -0
  90. package/serverless/define-api.js +66 -0
  91. package/serverless/define-rpc-router.d.ts +2 -0
  92. package/serverless/define-rpc-router.js +27 -0
  93. package/serverless/error-codes.d.ts +2 -0
  94. package/serverless/error-codes.js +14 -0
  95. package/serverless/index.d.ts +4 -0
  96. package/serverless/index.js +16 -0
  97. package/serverless/rpc-provider.d.ts +1 -0
  98. package/serverless/rpc-provider.js +5 -0
  99. package/serverless-template/_utils/ed-config.ts +5 -0
  100. package/serverless-template/_utils/fetch-wordpress-props.ts +30 -6
  101. package/serverless-template/next.config.js +63 -52
  102. package/serverless-template/pages/_app.tsx +0 -2
  103. package/serverless-template/pages/_document.tsx +19 -0
  104. package/style/createStitches.d.ts +75 -6
  105. package/style/createStitches.js +151 -45
  106. package/utils/getRepoName.d.ts +2 -2
  107. package/utils/getRepoName.js +14 -52
  108. package/cli/prepare-next.d.ts +0 -0
  109. package/cli/prepare-next.js +0 -1
  110. package/fields/ImageWell.d.ts +0 -8
  111. package/fields/ImageWell.js +0 -64
  112. package/serverless-template/package-lock.json +0 -641
@@ -0,0 +1,88 @@
1
+ "use strict";
2
+ var __assign = (this && this.__assign) || function () {
3
+ __assign = Object.assign || function(t) {
4
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
5
+ s = arguments[i];
6
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
+ t[p] = s[p];
8
+ }
9
+ return t;
10
+ };
11
+ return __assign.apply(this, arguments);
12
+ };
13
+ Object.defineProperty(exports, "__esModule", { value: true });
14
+ exports.SpacingEditor = void 0;
15
+ var jsx_runtime_1 = require("react/jsx-runtime");
16
+ // @ts-ignore
17
+ var _theme_1 = require("@theme");
18
+ var react_1 = require("react");
19
+ var style_1 = require("../../../style");
20
+ var PanelWrapper_1 = require("../PanelWrapper");
21
+ var ResponsiveScaleEditor_1 = require("../ResponsiveScaleEditor");
22
+ var useStylesheet_1 = require("../../hooks/useStylesheet");
23
+ var Button_1 = require("../atoms/Button");
24
+ var icons_1 = require("../../icons");
25
+ var Spacer_1 = require("../atoms/Spacer");
26
+ function spaceToJSON(space) {
27
+ return ("{\n" +
28
+ Object.entries(space)
29
+ .map(function (_a) {
30
+ var token = _a[0], values = _a[1];
31
+ var tokenStr = Object.entries(values)
32
+ .map(function (_a) {
33
+ var breakpoint = _a[0], value = _a[1];
34
+ return "\"".concat(breakpoint, "\": ").concat(JSON.stringify(value));
35
+ })
36
+ .join(", ");
37
+ return " \"".concat(token, "\": { ").concat(tokenStr, " }");
38
+ })
39
+ .join(",\n") +
40
+ "\n}");
41
+ }
42
+ function spaceToCSS(space) {
43
+ var parsedBreakpoints = (0, style_1.parseBreakpoints)(_theme_1.originalConfig.breakpoints, _theme_1.originalConfig.media);
44
+ var globalResponsive = (0, style_1.parseResponsiveTokens)({
45
+ space: space,
46
+ }, parsedBreakpoints).globalResponsive;
47
+ var rules = [];
48
+ Object.entries(globalResponsive).forEach(function (_a) {
49
+ var breakpoint = _a[0], values = _a[1];
50
+ var rule = "";
51
+ var media = _theme_1.originalConfig.media[breakpoint.replace("@", "")];
52
+ var variables = [];
53
+ for (var key in values) {
54
+ variables.push(key + ": " + values[key]);
55
+ }
56
+ if (media) {
57
+ rules.push("@media " + media + " {\n:root {" + variables.join(";\n") + "}\n}");
58
+ }
59
+ else {
60
+ rules.push(":root {\n" + variables.join(";\n") + "\n}");
61
+ }
62
+ });
63
+ return rules.join("\n");
64
+ }
65
+ function SpacingEditor() {
66
+ var _a = (0, react_1.useState)(function () { return _theme_1.originalConfig.responsive.space; }), values = _a[0], setValues = _a[1];
67
+ var parsedBreakpoints = (0, style_1.parseBreakpoints)(_theme_1.originalConfig.breakpoints, _theme_1.originalConfig.media);
68
+ var stylesheet = (0, useStylesheet_1.useStylesheet)("spacing");
69
+ (0, react_1.useEffect)(function () {
70
+ stylesheet.set(spaceToCSS(values));
71
+ }, [values]);
72
+ return ((0, jsx_runtime_1.jsx)(react_1.Fragment, { children: (0, jsx_runtime_1.jsx)(PanelWrapper_1.PanelWrapper, __assign({ title: "Spacing Tokens", buttons: (0, jsx_runtime_1.jsxs)(react_1.Fragment, { children: [(0, jsx_runtime_1.jsxs)(Button_1.Button, __assign({ small: true, onClick: function () {
73
+ navigator.clipboard.writeText(spaceToJSON(values));
74
+ } }, { children: [icons_1.copy, "Copy"] }), void 0), (0, jsx_runtime_1.jsxs)(Button_1.Button, __assign({ small: true, onClick: function () {
75
+ navigator.clipboard.readText().then(function (text) {
76
+ try {
77
+ var data = JSON.parse(text);
78
+ setValues(data);
79
+ }
80
+ catch (err) {
81
+ alert("Error decoding pasted content: " + err.message + ". You pasted:\n" + text);
82
+ }
83
+ });
84
+ } }, { children: [icons_1.paste, "Paste"] }), void 0), (0, jsx_runtime_1.jsx)(Spacer_1.Spacer, {}, void 0), (0, jsx_runtime_1.jsxs)(Button_1.Button, __assign({ small: true, onClick: function () {
85
+ setValues(_theme_1.originalConfig.responsive.space);
86
+ } }, { children: [icons_1.trash, " Reset"] }), void 0)] }, void 0) }, { children: (0, jsx_runtime_1.jsx)(ResponsiveScaleEditor_1.ResponsiveScaleEditor, { editableRange: true, editableValues: true, breakpoints: parsedBreakpoints, data: values, showBreakpointName: true, showRange: true, showValues: true, related: true, labelWidth: "30px", onChange: setValues, modes: ["px", "multiplier"] }, void 0) }), void 0) }, void 0));
87
+ }
88
+ exports.SpacingEditor = SpacingEditor;
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export declare function TypographyEditor(): JSX.Element;
@@ -0,0 +1,88 @@
1
+ "use strict";
2
+ var __assign = (this && this.__assign) || function () {
3
+ __assign = Object.assign || function(t) {
4
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
5
+ s = arguments[i];
6
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
+ t[p] = s[p];
8
+ }
9
+ return t;
10
+ };
11
+ return __assign.apply(this, arguments);
12
+ };
13
+ Object.defineProperty(exports, "__esModule", { value: true });
14
+ exports.TypographyEditor = void 0;
15
+ var jsx_runtime_1 = require("react/jsx-runtime");
16
+ // @ts-ignore
17
+ var _theme_1 = require("@theme");
18
+ var react_1 = require("react");
19
+ var style_1 = require("../../../style");
20
+ var usePersistState_1 = require("../../hooks/usePersistState");
21
+ var icons_1 = require("../../icons");
22
+ var theme_1 = require("../../theme");
23
+ var Button_1 = require("../atoms/Button");
24
+ var Spacer_1 = require("../atoms/Spacer");
25
+ var Text_1 = require("../atoms/Text");
26
+ var PanelWrapper_1 = require("../PanelWrapper");
27
+ function TypographyEditor() {
28
+ var _a = (0, react_1.useState)(function () { return _theme_1.originalConfig.typography; }), values = _a[0], setValues = _a[1];
29
+ var parsedBreakpoints = (0, style_1.parseBreakpoints)(_theme_1.originalConfig.breakpoints, _theme_1.originalConfig.media);
30
+ var _b = (0, usePersistState_1.usePersistState)("preview_text", "The quick brown fox jumps over the lazy dog"), previewText = _b[0], setPreviewText = _b[1];
31
+ var reset = function () {
32
+ setValues(_theme_1.originalConfig.typography);
33
+ setPreviewText("The quick brown fox jumps over the lazy dog");
34
+ };
35
+ // const stylesheet = useStylesheet("spacing")
36
+ // useEffect(() => {
37
+ // stylesheet.set(spaceToCSS(values))
38
+ // }, [values])
39
+ return ((0, jsx_runtime_1.jsx)(PanelWrapper_1.PanelWrapper, __assign({ title: "Typography", buttons: (0, jsx_runtime_1.jsxs)(react_1.Fragment, { children: [(0, jsx_runtime_1.jsxs)(Button_1.Button, __assign({ small: true, onClick: function () {
40
+ // navigator.clipboard.writeText(spaceToJSON(values))
41
+ } }, { children: [icons_1.copy, "Copy"] }), void 0), (0, jsx_runtime_1.jsxs)(Button_1.Button, __assign({ small: true, onClick: function () {
42
+ // navigator.clipboard.readText().then((text) => {
43
+ // try {
44
+ // const data = JSON.parse(text)
45
+ // setValues(data)
46
+ // } catch (err) {
47
+ // alert("Error decoding pasted content: " + (err as any).message + ". You pasted:\n" + text)
48
+ // }
49
+ // })
50
+ } }, { children: [icons_1.paste, "Paste"] }), void 0), (0, jsx_runtime_1.jsx)(Spacer_1.Spacer, {}, void 0), (0, jsx_runtime_1.jsxs)(Button_1.Button, __assign({ small: true, onClick: reset }, { children: [icons_1.trash, " Reset"] }), void 0)] }, void 0) }, { children: (0, jsx_runtime_1.jsx)(Wrapper, { children: Object.entries(values).map(function (_a, index) {
51
+ var name = _a[0], settings = _a[1];
52
+ return ((0, jsx_runtime_1.jsxs)(TypographyItem, { children: [(0, jsx_runtime_1.jsx)(Meta, { children: (0, jsx_runtime_1.jsx)(Text_1.Text, __assign({ variant: "monoBold" }, { children: name }), void 0) }, void 0), (0, jsx_runtime_1.jsx)(Details, { children: (0, jsx_runtime_1.jsx)(Preview, { css: { typography: name }, value: previewText, onChange: function (e) {
53
+ setPreviewText(e.currentTarget.value);
54
+ } }, void 0) }, void 0)] }, index));
55
+ }) }, void 0) }), void 0));
56
+ }
57
+ exports.TypographyEditor = TypographyEditor;
58
+ var TypographyItem = (0, theme_1.styled)("div", {
59
+ borderBottom: "1px solid $colors$bgLineStrong",
60
+ display: "flex",
61
+ paddingTop: "4px",
62
+ paddingBottom: "4px",
63
+ });
64
+ var Meta = (0, theme_1.styled)("div", {
65
+ width: "200px",
66
+ flex: "0 0 auto",
67
+ });
68
+ var Wrapper = (0, theme_1.styled)("div", {
69
+ maxHeight: "500px",
70
+ overflowY: "auto",
71
+ });
72
+ var Details = (0, theme_1.styled)("div", {
73
+ flex: "1 1 auto",
74
+ });
75
+ var Preview = (0, _theme_1.styled)("input", {
76
+ appearance: "none",
77
+ backgroundColor: "transparent",
78
+ borderLeft: 0,
79
+ borderRight: 0,
80
+ borderTop: "1px solid #555555",
81
+ borderBottom: "1px solid #555555",
82
+ outline: "0",
83
+ color: "#ffffff",
84
+ padding: "0px 6px",
85
+ borderRadius: "0",
86
+ width: "100%",
87
+ marginBottom: "8px",
88
+ });
@@ -0,0 +1,11 @@
1
+ declare type Result = {
2
+ name: string;
3
+ index: number;
4
+ progress: number;
5
+ offset: number;
6
+ width: number;
7
+ bpMin: number;
8
+ bpMax: number;
9
+ };
10
+ export declare function useBreakpoint(): Result;
11
+ export {};
@@ -0,0 +1,59 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.useBreakpoint = void 0;
4
+ // @ts-ignore
5
+ var _theme_1 = require("@theme");
6
+ var react_1 = require("react");
7
+ function useBreakpoint() {
8
+ // const [value, setValue] = useState(["initial", -1, 0] as [string, number, number])
9
+ var _a = (0, react_1.useState)({
10
+ name: "initial",
11
+ index: -1,
12
+ progress: 0,
13
+ offset: 0,
14
+ width: 0,
15
+ bpMin: 0,
16
+ bpMax: 0,
17
+ }), value = _a[0], setValue = _a[1];
18
+ (0, react_1.useEffect)(function () {
19
+ var handle = function () {
20
+ var width = window.innerWidth;
21
+ var result = {
22
+ name: "initial",
23
+ index: 0,
24
+ offset: window.innerWidth,
25
+ progress: window.innerWidth / _theme_1.breakpoints[0].max,
26
+ width: window.innerWidth,
27
+ bpMin: 0,
28
+ bpMax: _theme_1.breakpoints[0].max,
29
+ };
30
+ for (var index in _theme_1.breakpoints) {
31
+ var bp = _theme_1.breakpoints[index];
32
+ var key = bp.key;
33
+ var media = _theme_1.config.media[key];
34
+ if (!media.includes("min-width") || !media)
35
+ continue;
36
+ if (window.matchMedia(media).matches) {
37
+ result.name = key;
38
+ result.index = Number(index);
39
+ result.offset = width - parseFloat(bp.min);
40
+ result.progress = result.offset / (parseFloat(bp.max) - parseFloat(bp.min));
41
+ result.bpMin = bp.min;
42
+ result.bpMax = bp.max;
43
+ }
44
+ else {
45
+ break;
46
+ }
47
+ }
48
+ setValue(result);
49
+ // if (breakpoint !== value[0]) {
50
+ // setValue([breakpoint, matchedIndex, progress])
51
+ // }
52
+ };
53
+ handle();
54
+ window.addEventListener("resize", handle);
55
+ return function () { return window.removeEventListener("resize", handle); };
56
+ }, []);
57
+ return value;
58
+ }
59
+ exports.useBreakpoint = useBreakpoint;
@@ -0,0 +1 @@
1
+ export declare function usePersistState<T>(id: string, initial: T): [T, (value: T) => void];
@@ -0,0 +1,33 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.usePersistState = void 0;
4
+ var react_1 = require("react");
5
+ var get = function (id, fallback) {
6
+ if (fallback === void 0) { fallback = undefined; }
7
+ var value = localStorage.getItem("devui_" + id);
8
+ if (value !== null) {
9
+ try {
10
+ return JSON.parse(value);
11
+ }
12
+ catch (err) {
13
+ return fallback;
14
+ }
15
+ }
16
+ else {
17
+ return fallback;
18
+ }
19
+ };
20
+ var set = function (id, value) {
21
+ localStorage.setItem("devui_" + id, JSON.stringify(value));
22
+ };
23
+ function usePersistState(id, initial) {
24
+ var _a = (0, react_1.useState)(function () { return get(id, initial); }), value = _a[0], setValue = _a[1];
25
+ return [
26
+ value,
27
+ function (value) {
28
+ set(id, value);
29
+ setValue(value);
30
+ },
31
+ ];
32
+ }
33
+ exports.usePersistState = usePersistState;
@@ -0,0 +1,4 @@
1
+ export declare function useStylesheet(id: string): {
2
+ clear(): void;
3
+ set(value: string): void;
4
+ };
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.useStylesheet = void 0;
4
+ var react_1 = require("react");
5
+ function useStylesheet(id) {
6
+ var _a = (0, react_1.useState)(null), element = _a[0], setElement = _a[1];
7
+ (0, react_1.useEffect)(function () {
8
+ if (!element) {
9
+ var style = document.getElementById("devui-" + id);
10
+ if (!style) {
11
+ style = document.createElement("style");
12
+ style.id = "devui-" + id;
13
+ document.body.appendChild(style);
14
+ }
15
+ setElement(style);
16
+ }
17
+ }, [element]);
18
+ return {
19
+ clear: function () {
20
+ if (element) {
21
+ element.innerHTML = "";
22
+ }
23
+ },
24
+ set: function (value) {
25
+ if (element) {
26
+ element.innerHTML = value;
27
+ }
28
+ },
29
+ };
30
+ }
31
+ exports.useStylesheet = useStylesheet;
@@ -0,0 +1,15 @@
1
+ /// <reference types="react" />
2
+ export declare const bolt: JSX.Element;
3
+ export declare const typography: JSX.Element;
4
+ export declare const ruler: JSX.Element;
5
+ export declare const structure: JSX.Element;
6
+ export declare const code: JSX.Element;
7
+ export declare const share: JSX.Element;
8
+ export declare const close: JSX.Element;
9
+ export declare const check: JSX.Element;
10
+ export declare const checkEmpty: JSX.Element;
11
+ export declare const checkFilled: JSX.Element;
12
+ export declare const line: JSX.Element;
13
+ export declare const copy: JSX.Element;
14
+ export declare const paste: JSX.Element;
15
+ export declare const trash: JSX.Element;
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ var __assign = (this && this.__assign) || function () {
3
+ __assign = Object.assign || function(t) {
4
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
5
+ s = arguments[i];
6
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
+ t[p] = s[p];
8
+ }
9
+ return t;
10
+ };
11
+ return __assign.apply(this, arguments);
12
+ };
13
+ Object.defineProperty(exports, "__esModule", { value: true });
14
+ exports.trash = exports.paste = exports.copy = exports.line = exports.checkFilled = exports.checkEmpty = exports.check = exports.close = exports.share = exports.code = exports.structure = exports.ruler = exports.typography = exports.bolt = void 0;
15
+ var jsx_runtime_1 = require("react/jsx-runtime");
16
+ exports.bolt = ((0, jsx_runtime_1.jsxs)("svg", __assign({ xmlns: "http://www.w3.org/2000/svg", height: "24px", viewBox: "0 0 24 24", width: "24px", fill: "#000000" }, { children: [(0, jsx_runtime_1.jsx)("g", { children: (0, jsx_runtime_1.jsx)("rect", { fill: "none", height: "24", width: "24" }, void 0) }, void 0), (0, jsx_runtime_1.jsx)("g", { children: (0, jsx_runtime_1.jsx)("path", { d: "M11,21h-1l1-7H6.74c0,0,3.68-6.46,6.26-11h1l-1,7h4.28L11,21z" }, void 0) }, void 0)] }), void 0));
17
+ exports.typography = ((0, jsx_runtime_1.jsx)("svg", __assign({ xmlns: "http://www.w3.org/2000/svg", height: "24px", viewBox: "0 0 24 24", width: "24px", fill: "#000000" }, { children: (0, jsx_runtime_1.jsx)("path", { d: "M2.5 4v3h5v12h3V7h5V4h-13zm19 5h-9v3h3v7h3v-7h3V9z" }, void 0) }), void 0));
18
+ exports.ruler = ((0, jsx_runtime_1.jsxs)("svg", __assign({ xmlns: "http://www.w3.org/2000/svg", height: "24px", viewBox: "0 0 24 24", width: "24px", fill: "#000000" }, { children: [(0, jsx_runtime_1.jsx)("path", { d: "M0 0h24v24H0V0z", fill: "none" }, void 0), (0, jsx_runtime_1.jsx)("path", { d: "M23 6H1v12h22V6zm-2 10H3V8h2v4h2V8h2v4h2V8h2v4h2V8h2v4h2V8h2v8z" }, void 0)] }), void 0));
19
+ exports.structure = ((0, jsx_runtime_1.jsxs)("svg", __assign({ xmlns: "http://www.w3.org/2000/svg", enableBackground: "new 0 0 24 24", height: "24px", viewBox: "0 0 24 24", width: "24px", fill: "#000000" }, { children: [(0, jsx_runtime_1.jsx)("g", { children: (0, jsx_runtime_1.jsx)("rect", { fill: "none", height: "24", width: "24" }, void 0) }, void 0), (0, jsx_runtime_1.jsx)("polygon", { points: "22,11 22,3 15,3 15,6 9,6 9,3 2,3 2,11 9,11 9,8 11,8 11,18 15,18 15,21 22,21 22,13 15,13 15,16 13,16 13,8 15,8 15,11" }, void 0)] }), void 0));
20
+ exports.code = ((0, jsx_runtime_1.jsxs)("svg", __assign({ xmlns: "http://www.w3.org/2000/svg", height: "24px", viewBox: "0 0 24 24", width: "24px", fill: "#000000" }, { children: [(0, jsx_runtime_1.jsx)("path", { d: "M0 0h24v24H0V0z", fill: "none" }, void 0), (0, jsx_runtime_1.jsx)("path", { d: "M9.4 16.6L4.8 12l4.6-4.6L8 6l-6 6 6 6 1.4-1.4zm5.2 0l4.6-4.6-4.6-4.6L16 6l6 6-6 6-1.4-1.4z" }, void 0)] }), void 0));
21
+ exports.share = ((0, jsx_runtime_1.jsxs)("svg", __assign({ xmlns: "http://www.w3.org/2000/svg", enableBackground: "new 0 0 24 24", height: "24px", viewBox: "0 0 24 24", width: "24px", fill: "#000000" }, { children: [(0, jsx_runtime_1.jsx)("g", { children: (0, jsx_runtime_1.jsx)("rect", { fill: "none", height: "24", width: "24" }, void 0) }, void 0), (0, jsx_runtime_1.jsx)("g", { children: (0, jsx_runtime_1.jsxs)("g", { children: [(0, jsx_runtime_1.jsx)("g", { children: (0, jsx_runtime_1.jsx)("polygon", { points: "23,3 1,3 1,13 3,13 3,5 21,5 21,21 23,21" }, void 0) }, void 0), (0, jsx_runtime_1.jsx)("g", { children: (0, jsx_runtime_1.jsx)("circle", { cx: "9", cy: "10", r: "4" }, void 0) }, void 0), (0, jsx_runtime_1.jsx)("g", { children: (0, jsx_runtime_1.jsx)("path", { d: "M15.39,16.56C13.71,15.7,11.53,15,9,15c-2.53,0-4.71,0.7-6.39,1.56C1.61,17.07,1,18.1,1,19.22V22h16v-2.78 C17,18.1,16.39,17.07,15.39,16.56z" }, void 0) }, void 0)] }, void 0) }, void 0)] }), void 0));
22
+ exports.close = ((0, jsx_runtime_1.jsxs)("svg", __assign({ xmlns: "http://www.w3.org/2000/svg", height: "24px", viewBox: "0 0 24 24", width: "24px", fill: "#000000" }, { children: [(0, jsx_runtime_1.jsx)("path", { d: "M0 0h24v24H0V0z", fill: "none" }, void 0), (0, jsx_runtime_1.jsx)("path", { d: "M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z" }, void 0)] }), void 0));
23
+ exports.check = ((0, jsx_runtime_1.jsxs)("svg", __assign({ xmlns: "http://www.w3.org/2000/svg", height: "24px", viewBox: "0 0 24 24", width: "24px", fill: "#000000" }, { children: [(0, jsx_runtime_1.jsx)("path", { d: "M0 0h24v24H0V0z", fill: "none" }, void 0), (0, jsx_runtime_1.jsx)("path", { d: "M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41L9 16.17z" }, void 0)] }), void 0));
24
+ exports.checkEmpty = ((0, jsx_runtime_1.jsxs)("svg", __assign({ xmlns: "http://www.w3.org/2000/svg", height: "24px", viewBox: "0 0 24 24", width: "24px", fill: "#000000" }, { children: [(0, jsx_runtime_1.jsx)("path", { d: "M0 0h24v24H0V0z", fill: "none" }, void 0), (0, jsx_runtime_1.jsx)("path", { d: "M19 5v14H5V5h14m2-2H3v18h18V3z" }, void 0)] }), void 0));
25
+ exports.checkFilled = ((0, jsx_runtime_1.jsxs)("svg", __assign({ xmlns: "http://www.w3.org/2000/svg", height: "24px", viewBox: "0 0 24 24", width: "24px", fill: "#000000" }, { children: [(0, jsx_runtime_1.jsx)("path", { d: "M0 0h24v24H0V0z", fill: "none" }, void 0), (0, jsx_runtime_1.jsx)("path", { d: "M21 3H3v18h18V3zM10 17l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z" }, void 0)] }), void 0));
26
+ exports.line = ((0, jsx_runtime_1.jsxs)("svg", __assign({ xmlns: "http://www.w3.org/2000/svg", enableBackground: "new 0 0 24 24", height: "24px", viewBox: "0 0 24 24", width: "24px", fill: "#000000" }, { children: [(0, jsx_runtime_1.jsx)("g", { children: (0, jsx_runtime_1.jsx)("rect", { fill: "none", height: "24", width: "24", x: "0" }, void 0) }, void 0), (0, jsx_runtime_1.jsx)("g", { children: (0, jsx_runtime_1.jsx)("g", { children: (0, jsx_runtime_1.jsx)("path", { d: "M23,8c0,1.1-0.9,2-2,2c-0.18,0-0.35-0.02-0.51-0.07l-3.56,3.55C16.98,13.64,17,13.82,17,14c0,1.1-0.9,2-2,2s-2-0.9-2-2 c0-0.18,0.02-0.36,0.07-0.52l-2.55-2.55C10.36,10.98,10.18,11,10,11c-0.18,0-0.36-0.02-0.52-0.07l-4.55,4.56 C4.98,15.65,5,15.82,5,16c0,1.1-0.9,2-2,2s-2-0.9-2-2s0.9-2,2-2c0.18,0,0.35,0.02,0.51,0.07l4.56-4.55C8.02,9.36,8,9.18,8,9 c0-1.1,0.9-2,2-2s2,0.9,2,2c0,0.18-0.02,0.36-0.07,0.52l2.55,2.55C14.64,12.02,14.82,12,15,12c0.18,0,0.36,0.02,0.52,0.07 l3.55-3.56C19.02,8.35,19,8.18,19,8c0-1.1,0.9-2,2-2S23,6.9,23,8z" }, void 0) }, void 0) }, void 0)] }), void 0));
27
+ exports.copy = ((0, jsx_runtime_1.jsxs)("svg", __assign({ xmlns: "http://www.w3.org/2000/svg", height: "24px", viewBox: "0 0 24 24", width: "24px", fill: "#000000" }, { children: [(0, jsx_runtime_1.jsx)("path", { d: "M0 0h24v24H0V0z", fill: "none" }, void 0), (0, jsx_runtime_1.jsx)("path", { d: "M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 16H8V7h11v14z" }, void 0)] }), void 0));
28
+ exports.paste = ((0, jsx_runtime_1.jsxs)("svg", __assign({ xmlns: "http://www.w3.org/2000/svg", height: "24px", viewBox: "0 0 24 24", width: "24px", fill: "#000000" }, { children: [(0, jsx_runtime_1.jsx)("path", { d: "M0 0h24v24H0V0z", fill: "none" }, void 0), (0, jsx_runtime_1.jsx)("path", { d: "M19 2h-4.18C14.4.84 13.3 0 12 0S9.6.84 9.18 2H5c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-7 0c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm7 18H5V4h2v3h10V4h2v16z" }, void 0)] }), void 0));
29
+ exports.trash = ((0, jsx_runtime_1.jsxs)("svg", __assign({ xmlns: "http://www.w3.org/2000/svg", height: "24px", viewBox: "0 0 24 24", width: "24px", fill: "#000000" }, { children: [(0, jsx_runtime_1.jsx)("path", { d: "M0 0h24v24H0V0z", fill: "none" }, void 0), (0, jsx_runtime_1.jsx)("path", { d: "M6 21h12V7H6v14zM19 4h-3.5l-1-1h-5l-1 1H5v2h14V4z" }, void 0)] }), void 0));
@@ -0,0 +1 @@
1
+ export { DevUI } from "./components/DevUI";
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DevUI = void 0;
4
+ var DevUI_1 = require("./components/DevUI");
5
+ Object.defineProperty(exports, "DevUI", { enumerable: true, get: function () { return DevUI_1.DevUI; } });
@@ -0,0 +1,11 @@
1
+ import { ComponentType, ReactNode } from "react";
2
+ declare type DevUIPanelItem = {
3
+ label: string;
4
+ icon: ReactNode;
5
+ component: ComponentType;
6
+ };
7
+ export declare const DEV_UI_PANELS: {
8
+ [key: string]: DevUIPanelItem;
9
+ };
10
+ export declare type PanelID = keyof typeof DEV_UI_PANELS;
11
+ export {};
@@ -0,0 +1,33 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DEV_UI_PANELS = void 0;
4
+ var jsx_runtime_1 = require("react/jsx-runtime");
5
+ var PageDataDebugger_1 = require("./components/panels/PageDataDebugger");
6
+ var SpacingEditor_1 = require("./components/panels/SpacingEditor");
7
+ var TypographyEditor_1 = require("./components/panels/TypographyEditor");
8
+ var icons_1 = require("./icons");
9
+ var TempComponent = function () {
10
+ return (0, jsx_runtime_1.jsx)("div", { children: "Test" }, void 0);
11
+ };
12
+ exports.DEV_UI_PANELS = {
13
+ typography: {
14
+ label: "Typography",
15
+ icon: icons_1.typography,
16
+ component: TypographyEditor_1.TypographyEditor,
17
+ },
18
+ spacing: {
19
+ label: "Spacing",
20
+ icon: icons_1.ruler,
21
+ component: SpacingEditor_1.SpacingEditor,
22
+ },
23
+ page: {
24
+ label: "Page Data",
25
+ icon: icons_1.code,
26
+ component: PageDataDebugger_1.PageDataDebugger,
27
+ },
28
+ // structure: {
29
+ // label: "Page Structure",
30
+ // icon: structure,
31
+ // component: TempComponent,
32
+ // },
33
+ };
@@ -0,0 +1,150 @@
1
+ export declare const styled: <Type extends import("@stitches/react/types/util").Function | keyof JSX.IntrinsicElements | import("react").ComponentType<any>, Composers extends (string | import("@stitches/react/types/util").Function | import("react").ComponentType<any> | {
2
+ [name: string]: unknown;
3
+ })[], CSS = import("@stitches/react/types/css-util").CSS<{}, {
4
+ space: {
5
+ smallButtonHeight: string;
6
+ buttonHeight: string;
7
+ 0: string;
8
+ 1: string;
9
+ 2: string;
10
+ 3: string;
11
+ 4: string;
12
+ 5: string;
13
+ 6: string;
14
+ };
15
+ colors: {
16
+ bg: string;
17
+ bgHover: string;
18
+ bgHoverLight: string;
19
+ bgLine: string;
20
+ bgLineStrong: string;
21
+ button: string;
22
+ buttonHover: string;
23
+ fg: string;
24
+ fgFaded: string;
25
+ };
26
+ fontSizes: {
27
+ sm: string;
28
+ md: string;
29
+ lg: string;
30
+ xl: string;
31
+ };
32
+ fonts: {
33
+ body: string;
34
+ mono: string;
35
+ };
36
+ radii: {
37
+ sm: string;
38
+ md: string;
39
+ lg: string;
40
+ };
41
+ transitions: {
42
+ default: string;
43
+ };
44
+ }, import("@stitches/react/types/config").DefaultThemeMap, {}>>(type: Type, ...composers: { [K in keyof Composers]: Composers[K] extends string | import("@stitches/react/types/util").Function | import("react").ComponentType<any> ? Composers[K] : import("@stitches/react/types/stitches").RemoveIndex<CSS> & {
45
+ variants?: {
46
+ [x: string]: {
47
+ [x: string]: CSS;
48
+ [x: number]: CSS;
49
+ };
50
+ } | undefined;
51
+ compoundVariants?: (("variants" extends keyof Composers[K] ? { [Name in keyof Composers[K][keyof Composers[K] & "variants"]]?: import("@stitches/react/types/util").String | import("@stitches/react/types/util").Widen<keyof Composers[K][keyof Composers[K] & "variants"][Name]> | undefined; } : import("@stitches/react/types/util").WideObject) & {
52
+ css: CSS;
53
+ })[] | undefined;
54
+ defaultVariants?: ("variants" extends keyof Composers[K] ? { [Name_1 in keyof Composers[K][keyof Composers[K] & "variants"]]?: import("@stitches/react/types/util").String | import("@stitches/react/types/util").Widen<keyof Composers[K][keyof Composers[K] & "variants"][Name_1]> | undefined; } : import("@stitches/react/types/util").WideObject) | undefined;
55
+ } & CSS & { [K2 in keyof Composers[K]]: K2 extends "compoundVariants" | "defaultVariants" | "variants" ? unknown : K2 extends keyof CSS ? CSS[K2] : unknown; }; }) => import("@stitches/react/types/styled-component").StyledComponent<Type, import("@stitches/react/types/styled-component").StyledComponentProps<Composers>, {}, import("@stitches/react/types/css-util").CSS<{}, {
56
+ space: {
57
+ smallButtonHeight: string;
58
+ buttonHeight: string;
59
+ 0: string;
60
+ 1: string;
61
+ 2: string;
62
+ 3: string;
63
+ 4: string;
64
+ 5: string;
65
+ 6: string;
66
+ };
67
+ colors: {
68
+ bg: string;
69
+ bgHover: string;
70
+ bgHoverLight: string;
71
+ bgLine: string;
72
+ bgLineStrong: string;
73
+ button: string;
74
+ buttonHover: string;
75
+ fg: string;
76
+ fgFaded: string;
77
+ };
78
+ fontSizes: {
79
+ sm: string;
80
+ md: string;
81
+ lg: string;
82
+ xl: string;
83
+ };
84
+ fonts: {
85
+ body: string;
86
+ mono: string;
87
+ };
88
+ radii: {
89
+ sm: string;
90
+ md: string;
91
+ lg: string;
92
+ };
93
+ transitions: {
94
+ default: string;
95
+ };
96
+ }, import("@stitches/react/types/config").DefaultThemeMap, {}>>, css: <Composers extends (string | import("@stitches/react/types/util").Function | import("react").ExoticComponent<any> | import("react").JSXElementConstructor<any> | {
97
+ [name: string]: unknown;
98
+ })[], CSS = import("@stitches/react/types/css-util").CSS<{}, {
99
+ space: {
100
+ smallButtonHeight: string;
101
+ buttonHeight: string;
102
+ 0: string;
103
+ 1: string;
104
+ 2: string;
105
+ 3: string;
106
+ 4: string;
107
+ 5: string;
108
+ 6: string;
109
+ };
110
+ colors: {
111
+ bg: string;
112
+ bgHover: string;
113
+ bgHoverLight: string;
114
+ bgLine: string;
115
+ bgLineStrong: string;
116
+ button: string;
117
+ buttonHover: string;
118
+ fg: string;
119
+ fgFaded: string;
120
+ };
121
+ fontSizes: {
122
+ sm: string;
123
+ md: string;
124
+ lg: string;
125
+ xl: string;
126
+ };
127
+ fonts: {
128
+ body: string;
129
+ mono: string;
130
+ };
131
+ radii: {
132
+ sm: string;
133
+ md: string;
134
+ lg: string;
135
+ };
136
+ transitions: {
137
+ default: string;
138
+ };
139
+ }, import("@stitches/react/types/config").DefaultThemeMap, {}>>(...composers: { [K in keyof Composers]: Composers[K] extends string | import("@stitches/react/types/util").Function | import("react").ExoticComponent<any> | import("react").JSXElementConstructor<any> ? Composers[K] : import("@stitches/react/types/stitches").RemoveIndex<CSS> & {
140
+ variants?: {
141
+ [x: string]: {
142
+ [x: string]: CSS;
143
+ [x: number]: CSS;
144
+ };
145
+ } | undefined;
146
+ compoundVariants?: (("variants" extends keyof Composers[K] ? { [Name in keyof Composers[K][keyof Composers[K] & "variants"]]?: import("@stitches/react/types/util").String | import("@stitches/react/types/util").Widen<keyof Composers[K][keyof Composers[K] & "variants"][Name]> | undefined; } : import("@stitches/react/types/util").WideObject) & {
147
+ css: CSS;
148
+ })[] | undefined;
149
+ defaultVariants?: ("variants" extends keyof Composers[K] ? { [Name_1 in keyof Composers[K][keyof Composers[K] & "variants"]]?: import("@stitches/react/types/util").String | import("@stitches/react/types/util").Widen<keyof Composers[K][keyof Composers[K] & "variants"][Name_1]> | undefined; } : import("@stitches/react/types/util").WideObject) | undefined;
150
+ } & CSS & { [K2 in keyof Composers[K]]: K2 extends "compoundVariants" | "defaultVariants" | "variants" ? unknown : K2 extends keyof CSS ? CSS[K2] : unknown; }; }) => import("@stitches/react/types/styled-component").CssComponent<import("@stitches/react/types/styled-component").StyledComponentType<Composers>, import("@stitches/react/types/styled-component").StyledComponentProps<Composers>, {}, CSS>;
@@ -0,0 +1,50 @@
1
+ "use strict";
2
+ var _a;
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.css = exports.styled = void 0;
5
+ var react_1 = require("@stitches/react");
6
+ exports.styled = (_a = (0, react_1.createStitches)({
7
+ theme: {
8
+ space: {
9
+ smallButtonHeight: "22px",
10
+ buttonHeight: "26px",
11
+ 0: "4px",
12
+ 1: "8px",
13
+ 2: "12px",
14
+ 3: "16px",
15
+ 4: "24px",
16
+ 5: "32px",
17
+ 6: "48px",
18
+ },
19
+ colors: {
20
+ bg: "#111111",
21
+ bgHover: "#333333",
22
+ bgHoverLight: "#333333",
23
+ bgLine: "#1a1a1a",
24
+ bgLineStrong: "#222222",
25
+ button: "#333333",
26
+ buttonHover: "#555555",
27
+ fg: "#ffffff",
28
+ fgFaded: "#aaaaaa",
29
+ },
30
+ fontSizes: {
31
+ sm: "12px",
32
+ md: "14px",
33
+ lg: "18px",
34
+ xl: "24px",
35
+ },
36
+ fonts: {
37
+ body: '"Roboto", Helvetica, sans-serif',
38
+ mono: '"Roboto Mono", Menlo, monospace',
39
+ },
40
+ radii: {
41
+ sm: "4px",
42
+ md: "8px",
43
+ lg: "16px",
44
+ },
45
+ transitions: {
46
+ default: "0.2s ease",
47
+ },
48
+ },
49
+ prefix: "eddev",
50
+ }), _a.styled), exports.css = _a.css;