eddev 0.2.0-beta.11 → 0.2.0-beta.12
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/build/get-webpack-config.js +4 -1
- package/cli/cli.js +1 -1
- package/config/config-schema.d.ts +7 -22
- package/config/config-schema.js +1 -6
- package/config/get-config.d.ts +6 -15
- package/config/parse-config.d.ts +4 -10
- package/dev-ui/components/BreakpointItemHeader.d.ts +11 -0
- package/dev-ui/components/BreakpointItemHeader.js +50 -0
- package/dev-ui/components/BreakpointList.d.ts +6 -0
- package/dev-ui/components/BreakpointList.js +38 -0
- package/dev-ui/components/DevUI.d.ts +2 -0
- package/dev-ui/components/DevUI.js +19 -0
- package/dev-ui/components/Launcher.d.ts +9 -0
- package/dev-ui/components/Launcher.js +118 -0
- package/dev-ui/components/PanelWrapper.d.ts +4 -0
- package/dev-ui/components/PanelWrapper.js +21 -0
- package/dev-ui/components/Pill.d.ts +0 -0
- package/dev-ui/components/Pill.js +1 -0
- package/dev-ui/components/SpacingEditor.d.ts +2 -0
- package/dev-ui/components/SpacingEditor.js +10 -0
- package/dev-ui/components/Text.d.ts +39 -0
- package/dev-ui/components/Text.js +13 -0
- package/dev-ui/components/panels/SpacingEditor.d.ts +2 -0
- package/dev-ui/components/panels/SpacingEditor.js +56 -0
- package/dev-ui/hooks/usePersistState.d.ts +1 -0
- package/dev-ui/hooks/usePersistState.js +28 -0
- package/dev-ui/icons.d.ts +11 -0
- package/dev-ui/icons.js +25 -0
- package/dev-ui/index.d.ts +1 -0
- package/dev-ui/index.js +5 -0
- package/dev-ui/panels.d.ts +11 -0
- package/dev-ui/panels.js +31 -0
- package/dev-ui/theme.d.ts +135 -0
- package/dev-ui/theme.js +45 -0
- package/dynamic/dynamic-component.d.ts +0 -1
- package/entry/Root.js +6 -5
- package/package.json +1 -1
- package/serverless/create-rpc-client.d.ts +0 -1
- package/serverless-template/pages/_app.tsx +0 -2
- package/style/createStitches.d.ts +63 -2
- package/style/createStitches.js +182 -40
|
@@ -0,0 +1,11 @@
|
|
|
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;
|
package/dev-ui/icons.js
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
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.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));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { DevUI } from "./components/DevUI";
|
package/dev-ui/index.js
ADDED
|
@@ -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 {};
|
package/dev-ui/panels.js
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
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 SpacingEditor_1 = require("./components/panels/SpacingEditor");
|
|
6
|
+
var icons_1 = require("./icons");
|
|
7
|
+
var TempComponent = function () {
|
|
8
|
+
return (0, jsx_runtime_1.jsx)("div", { children: "Test" }, void 0);
|
|
9
|
+
};
|
|
10
|
+
exports.DEV_UI_PANELS = {
|
|
11
|
+
typography: {
|
|
12
|
+
label: "Typography",
|
|
13
|
+
icon: icons_1.typography,
|
|
14
|
+
component: TempComponent,
|
|
15
|
+
},
|
|
16
|
+
spacing: {
|
|
17
|
+
label: "Spacing",
|
|
18
|
+
icon: icons_1.ruler,
|
|
19
|
+
component: SpacingEditor_1.SpacingEditor,
|
|
20
|
+
},
|
|
21
|
+
page: {
|
|
22
|
+
label: "Page Data",
|
|
23
|
+
icon: icons_1.code,
|
|
24
|
+
component: TempComponent,
|
|
25
|
+
},
|
|
26
|
+
structure: {
|
|
27
|
+
label: "Page Structure",
|
|
28
|
+
icon: icons_1.structure,
|
|
29
|
+
component: TempComponent,
|
|
30
|
+
},
|
|
31
|
+
};
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
export declare const styled: <Type extends import("react").ComponentType<any> | keyof JSX.IntrinsicElements | import("@stitches/react/types/util").Function, Composers extends (string | import("react").ComponentType<any> | import("@stitches/react/types/util").Function | {
|
|
2
|
+
[name: string]: unknown;
|
|
3
|
+
})[], CSS = import("@stitches/react/types/css-util").CSS<{}, {
|
|
4
|
+
space: {
|
|
5
|
+
buttonHeight: string;
|
|
6
|
+
0: string;
|
|
7
|
+
1: string;
|
|
8
|
+
2: string;
|
|
9
|
+
3: string;
|
|
10
|
+
4: string;
|
|
11
|
+
5: string;
|
|
12
|
+
6: string;
|
|
13
|
+
};
|
|
14
|
+
colors: {
|
|
15
|
+
bg: string;
|
|
16
|
+
bgHover: string;
|
|
17
|
+
bgHoverLight: string;
|
|
18
|
+
fg: string;
|
|
19
|
+
fgFaded: string;
|
|
20
|
+
};
|
|
21
|
+
fontSizes: {
|
|
22
|
+
sm: string;
|
|
23
|
+
md: string;
|
|
24
|
+
lg: string;
|
|
25
|
+
xl: string;
|
|
26
|
+
};
|
|
27
|
+
fonts: {
|
|
28
|
+
body: string;
|
|
29
|
+
mono: string;
|
|
30
|
+
};
|
|
31
|
+
radii: {
|
|
32
|
+
sm: string;
|
|
33
|
+
md: string;
|
|
34
|
+
lg: string;
|
|
35
|
+
};
|
|
36
|
+
transitions: {
|
|
37
|
+
default: string;
|
|
38
|
+
};
|
|
39
|
+
}, import("@stitches/react/types/config").DefaultThemeMap, {}>>(type: Type, ...composers: { [K in keyof Composers]: Composers[K] extends string | import("react").ComponentType<any> | import("@stitches/react/types/util").Function ? Composers[K] : import("@stitches/react/types/stitches").RemoveIndex<CSS> & {
|
|
40
|
+
variants?: {
|
|
41
|
+
[x: string]: {
|
|
42
|
+
[x: string]: CSS;
|
|
43
|
+
[x: number]: CSS;
|
|
44
|
+
};
|
|
45
|
+
} | undefined;
|
|
46
|
+
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) & {
|
|
47
|
+
css: CSS;
|
|
48
|
+
})[] | undefined;
|
|
49
|
+
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;
|
|
50
|
+
} & 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<{}, {
|
|
51
|
+
space: {
|
|
52
|
+
buttonHeight: string;
|
|
53
|
+
0: string;
|
|
54
|
+
1: string;
|
|
55
|
+
2: string;
|
|
56
|
+
3: string;
|
|
57
|
+
4: string;
|
|
58
|
+
5: string;
|
|
59
|
+
6: string;
|
|
60
|
+
};
|
|
61
|
+
colors: {
|
|
62
|
+
bg: string;
|
|
63
|
+
bgHover: string;
|
|
64
|
+
bgHoverLight: string;
|
|
65
|
+
fg: string;
|
|
66
|
+
fgFaded: string;
|
|
67
|
+
};
|
|
68
|
+
fontSizes: {
|
|
69
|
+
sm: string;
|
|
70
|
+
md: string;
|
|
71
|
+
lg: string;
|
|
72
|
+
xl: string;
|
|
73
|
+
};
|
|
74
|
+
fonts: {
|
|
75
|
+
body: string;
|
|
76
|
+
mono: string;
|
|
77
|
+
};
|
|
78
|
+
radii: {
|
|
79
|
+
sm: string;
|
|
80
|
+
md: string;
|
|
81
|
+
lg: string;
|
|
82
|
+
};
|
|
83
|
+
transitions: {
|
|
84
|
+
default: string;
|
|
85
|
+
};
|
|
86
|
+
}, import("@stitches/react/types/config").DefaultThemeMap, {}>>, css: <Composers extends (string | import("react").JSXElementConstructor<any> | import("react").ExoticComponent<any> | import("@stitches/react/types/util").Function | {
|
|
87
|
+
[name: string]: unknown;
|
|
88
|
+
})[], CSS = import("@stitches/react/types/css-util").CSS<{}, {
|
|
89
|
+
space: {
|
|
90
|
+
buttonHeight: string;
|
|
91
|
+
0: string;
|
|
92
|
+
1: string;
|
|
93
|
+
2: string;
|
|
94
|
+
3: string;
|
|
95
|
+
4: string;
|
|
96
|
+
5: string;
|
|
97
|
+
6: string;
|
|
98
|
+
};
|
|
99
|
+
colors: {
|
|
100
|
+
bg: string;
|
|
101
|
+
bgHover: string;
|
|
102
|
+
bgHoverLight: string;
|
|
103
|
+
fg: string;
|
|
104
|
+
fgFaded: string;
|
|
105
|
+
};
|
|
106
|
+
fontSizes: {
|
|
107
|
+
sm: string;
|
|
108
|
+
md: string;
|
|
109
|
+
lg: string;
|
|
110
|
+
xl: string;
|
|
111
|
+
};
|
|
112
|
+
fonts: {
|
|
113
|
+
body: string;
|
|
114
|
+
mono: string;
|
|
115
|
+
};
|
|
116
|
+
radii: {
|
|
117
|
+
sm: string;
|
|
118
|
+
md: string;
|
|
119
|
+
lg: string;
|
|
120
|
+
};
|
|
121
|
+
transitions: {
|
|
122
|
+
default: string;
|
|
123
|
+
};
|
|
124
|
+
}, import("@stitches/react/types/config").DefaultThemeMap, {}>>(...composers: { [K in keyof Composers]: Composers[K] extends string | import("react").JSXElementConstructor<any> | import("react").ExoticComponent<any> | import("@stitches/react/types/util").Function ? Composers[K] : import("@stitches/react/types/stitches").RemoveIndex<CSS> & {
|
|
125
|
+
variants?: {
|
|
126
|
+
[x: string]: {
|
|
127
|
+
[x: string]: CSS;
|
|
128
|
+
[x: number]: CSS;
|
|
129
|
+
};
|
|
130
|
+
} | undefined;
|
|
131
|
+
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) & {
|
|
132
|
+
css: CSS;
|
|
133
|
+
})[] | undefined;
|
|
134
|
+
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;
|
|
135
|
+
} & 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>;
|
package/dev-ui/theme.js
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
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
|
+
buttonHeight: "26px",
|
|
10
|
+
0: "4px",
|
|
11
|
+
1: "8px",
|
|
12
|
+
2: "12px",
|
|
13
|
+
3: "16px",
|
|
14
|
+
4: "24px",
|
|
15
|
+
5: "32px",
|
|
16
|
+
6: "48px",
|
|
17
|
+
},
|
|
18
|
+
colors: {
|
|
19
|
+
bg: "#222222",
|
|
20
|
+
bgHover: "#444444",
|
|
21
|
+
bgHoverLight: "#333333",
|
|
22
|
+
fg: "#ffffff",
|
|
23
|
+
fgFaded: "#aaaaaa",
|
|
24
|
+
},
|
|
25
|
+
fontSizes: {
|
|
26
|
+
sm: "12px",
|
|
27
|
+
md: "14px",
|
|
28
|
+
lg: "18px",
|
|
29
|
+
xl: "24px",
|
|
30
|
+
},
|
|
31
|
+
fonts: {
|
|
32
|
+
body: '"Roboto", Helvetica, sans-serif',
|
|
33
|
+
mono: '"Roboto Mono", Menlo, monospace',
|
|
34
|
+
},
|
|
35
|
+
radii: {
|
|
36
|
+
sm: "4px",
|
|
37
|
+
md: "8px",
|
|
38
|
+
lg: "16px",
|
|
39
|
+
},
|
|
40
|
+
transitions: {
|
|
41
|
+
default: "0.2s ease",
|
|
42
|
+
},
|
|
43
|
+
},
|
|
44
|
+
prefix: "eddev",
|
|
45
|
+
}), _a.styled), exports.css = _a.css;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
export declare const dynamic: {
|
|
3
2
|
<Props, Module = import("@loadable/component").DefaultComponent<Props>>(loadFn: (props: Props) => Promise<Module>, options: import("@loadable/component").OptionsWithResolver<Props, Module>): import("@loadable/component").LoadableComponent<Props>;
|
|
4
3
|
<Props_1>(loadFn: (props: Props_1) => Promise<import("@loadable/component").DefaultComponent<Props_1>>, options?: import("@loadable/component").OptionsWithoutResolver<Props_1> | undefined): import("@loadable/component").LoadableComponent<Props_1>;
|
package/entry/Root.js
CHANGED
|
@@ -34,13 +34,14 @@ var jsx_runtime_1 = require("react/jsx-runtime");
|
|
|
34
34
|
// @ts-ignore
|
|
35
35
|
var views_1 = __importStar(require("@manifest/views"));
|
|
36
36
|
var react_1 = require("react");
|
|
37
|
+
var dev_ui_1 = require("../dev-ui");
|
|
37
38
|
var routing_1 = require("../routing");
|
|
38
39
|
function Root() {
|
|
39
40
|
var route = (0, routing_1.useRoute)();
|
|
40
|
-
return ((0, jsx_runtime_1.
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
41
|
+
return ((0, jsx_runtime_1.jsxs)(react_1.Fragment, { children: [process.devUI ? (0, jsx_runtime_1.jsx)(dev_ui_1.DevUI, {}, void 0) : null, (0, jsx_runtime_1.jsx)(views_1.App, { children: (0, jsx_runtime_1.jsx)(routing_1.Switch, { children: Object.entries(views_1.default).map(function (_a) {
|
|
42
|
+
var _b, _c;
|
|
43
|
+
var name = _a[0], Component = _a[1];
|
|
44
|
+
return ((0, jsx_runtime_1.jsx)(routing_1.Route, __assign({ match: function (route) { var _a; return ((_a = route.data) === null || _a === void 0 ? void 0 : _a.view) === name; } }, { children: (0, jsx_runtime_1.jsx)(Component, __assign({}, (_c = (_b = route.data) === null || _b === void 0 ? void 0 : _b.viewData) === null || _c === void 0 ? void 0 : _c.data), void 0) }), name));
|
|
45
|
+
}) }, void 0) }, void 0)] }, void 0));
|
|
45
46
|
}
|
|
46
47
|
exports.default = Root;
|
package/package.json
CHANGED
|
@@ -19,8 +19,6 @@ function MyApp({ Component, pageProps }: AppProps) {
|
|
|
19
19
|
|
|
20
20
|
const View = manifest[pageProps.view]
|
|
21
21
|
|
|
22
|
-
console.log("ROUTE", pageProps, route.pathname)
|
|
23
|
-
|
|
24
22
|
return (
|
|
25
23
|
<ServerlessAppDataProvider value={appData}>
|
|
26
24
|
<NextRouter data={pageProps} path={route.pathname}>
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { DefaultThemeMap } from "@stitches/react";
|
|
3
2
|
import { ConfigType } from "@stitches/core/types/config";
|
|
4
3
|
import { Properties as CSS } from "csstype";
|
|
@@ -18,6 +17,12 @@ declare type TypographyConfig<Theme extends ConfigType.Theme<{}>, Media extends
|
|
|
18
17
|
lineHeight?: ResponsiveValue<Media, Theme["lineHeights"] extends {} ? `$${Extract<keyof Theme["lineHeights"], string>}` | CSS["lineHeight"] : CSS["lineHeight"]>;
|
|
19
18
|
};
|
|
20
19
|
};
|
|
20
|
+
declare type BreakpointArray = {
|
|
21
|
+
key: string;
|
|
22
|
+
min: string | null;
|
|
23
|
+
max: string | null;
|
|
24
|
+
}[];
|
|
25
|
+
export declare function parseBreakpoints(names: string[], medias: any): BreakpointArray;
|
|
21
26
|
interface GridConfig<Theme extends ConfigType.Theme<{}>, Media extends ConfigType.Media<{}>> {
|
|
22
27
|
columns: number;
|
|
23
28
|
breakpoints: {
|
|
@@ -36,7 +41,41 @@ declare type ResponsiveScale<Media extends ConfigType.Media<{}>, T extends {}> =
|
|
|
36
41
|
declare type ResponsiveConfig<Media extends ConfigType.Media<{}>, T extends {}> = {
|
|
37
42
|
[Scale in keyof T]: ResponsiveScale<Media, T[Scale]>;
|
|
38
43
|
};
|
|
39
|
-
|
|
44
|
+
declare type ResponsiveAtom = {
|
|
45
|
+
lerpStart: boolean;
|
|
46
|
+
} & ({
|
|
47
|
+
type: "multiplier";
|
|
48
|
+
value: number;
|
|
49
|
+
} | {
|
|
50
|
+
type: "px";
|
|
51
|
+
value: number;
|
|
52
|
+
} | {
|
|
53
|
+
type: "number";
|
|
54
|
+
value: number;
|
|
55
|
+
} | {
|
|
56
|
+
type: "unknown";
|
|
57
|
+
value: string | number;
|
|
58
|
+
} | {
|
|
59
|
+
type: "undefined";
|
|
60
|
+
});
|
|
61
|
+
declare type ResponsiveAtomCalc = (ResponsiveAtom & {
|
|
62
|
+
defined: boolean;
|
|
63
|
+
breakpoint: string;
|
|
64
|
+
baseBreakpoint: string;
|
|
65
|
+
lerping?: {
|
|
66
|
+
fromBP: string | null;
|
|
67
|
+
toBP: string | null;
|
|
68
|
+
minMedia: number;
|
|
69
|
+
maxMedia: number;
|
|
70
|
+
minValue: number;
|
|
71
|
+
maxValue: number;
|
|
72
|
+
};
|
|
73
|
+
concreteValue: number | null;
|
|
74
|
+
})[];
|
|
75
|
+
export declare function parseResponsiveObject(breakpoints: ReturnType<typeof parseBreakpoints>, object: any): ResponsiveAtomCalc;
|
|
76
|
+
export declare function getResponsiveObjectStyles(theme: any, breakpoints: ReturnType<typeof parseBreakpoints>, object: any, varName: string, scale?: string, unit?: string): any[];
|
|
77
|
+
export declare function createStitches<Prefix extends string = "", Media extends {} = {}, Breakpoints extends (keyof Media)[] = [], Theme extends {} = {}, Responsive extends {} = {}, ThemeMap extends {} = DefaultThemeMap, Utils extends {} = {}, Typography extends {} = {}>(config: {
|
|
78
|
+
breakpoints: Breakpoints;
|
|
40
79
|
prefix?: ConfigType.Prefix<Prefix>;
|
|
41
80
|
media: ConfigType.Media<Media>;
|
|
42
81
|
theme: ConfigType.Theme<Theme>;
|
|
@@ -55,12 +94,34 @@ export declare function createStitches<Prefix extends string = "", Media extends
|
|
|
55
94
|
themeMap?: ConfigType.ThemeMap<ThemeMap>;
|
|
56
95
|
utils: ConfigType.Utils<Utils>;
|
|
57
96
|
}): {
|
|
97
|
+
originalConfig: {
|
|
98
|
+
breakpoints: Breakpoints;
|
|
99
|
+
prefix?: ConfigType.Prefix<Prefix> | undefined;
|
|
100
|
+
media: ConfigType.Media<Media>;
|
|
101
|
+
theme: ConfigType.Theme<Theme>;
|
|
102
|
+
responsive: ResponsiveConfig<Media & {
|
|
103
|
+
initial: string;
|
|
104
|
+
editor: string;
|
|
105
|
+
}, Responsive>;
|
|
106
|
+
typography: TypographyConfig<Theme, Media & {
|
|
107
|
+
initial: string;
|
|
108
|
+
editor: string;
|
|
109
|
+
}, Typography>;
|
|
110
|
+
grid: GridConfig<Theme, Media & {
|
|
111
|
+
initial: string;
|
|
112
|
+
editor: string;
|
|
113
|
+
}>;
|
|
114
|
+
themeMap?: ConfigType.ThemeMap<ThemeMap> | undefined;
|
|
115
|
+
utils: ConfigType.Utils<Utils>;
|
|
116
|
+
};
|
|
117
|
+
breakpoints: BreakpointArray;
|
|
58
118
|
typeVariants: { [key in keyof TypographyConfig<Theme, Media & {
|
|
59
119
|
initial: string;
|
|
60
120
|
editor: string;
|
|
61
121
|
}, Typography>]: any; };
|
|
62
122
|
gridVariants: {};
|
|
63
123
|
responsiveTokens: { [Scale in keyof Responsive]: { [T in keyof Responsive[Scale]]: number; }; };
|
|
124
|
+
responsiveGlobals: any;
|
|
64
125
|
config: {
|
|
65
126
|
prefix: "";
|
|
66
127
|
media: {
|