@web-noise/core 0.0.13 → 0.0.15-alpha
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/components.js +68 -84
- package/dist/cjs/components.js.map +1 -1
- package/dist/esm/components.js +121 -137
- package/dist/esm/components.js.map +1 -1
- package/dist/main.js +73 -89
- package/dist/main.js.map +1 -1
- package/dist/module.js +140 -156
- package/dist/module.js.map +1 -1
- package/dist/types.d.ts +22 -2
- package/dist/types.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/types.d.ts
CHANGED
|
@@ -40,7 +40,27 @@ export const theme: {
|
|
|
40
40
|
};
|
|
41
41
|
};
|
|
42
42
|
export type Theme = typeof theme;
|
|
43
|
-
export const useTheme: () =>
|
|
43
|
+
export const useTheme: () => {
|
|
44
|
+
colors: {
|
|
45
|
+
readonly elevation1: "#292d39";
|
|
46
|
+
readonly elevation2: "#181c20";
|
|
47
|
+
readonly elevation3: "#373c4b";
|
|
48
|
+
readonly accent1: "#0066dc";
|
|
49
|
+
readonly accent2: "#007bff";
|
|
50
|
+
readonly accent3: "#3c93ff";
|
|
51
|
+
readonly highlight1: "#535760";
|
|
52
|
+
readonly highlight2: "#8c92a4";
|
|
53
|
+
readonly highlight3: "#fefefe";
|
|
54
|
+
readonly vivid1: "#14df42";
|
|
55
|
+
readonly whitePrimary: "#ffffff";
|
|
56
|
+
readonly error: "#db5353";
|
|
57
|
+
};
|
|
58
|
+
zIndex: {
|
|
59
|
+
readonly modal: 9998;
|
|
60
|
+
readonly controlPanel: 9999;
|
|
61
|
+
readonly resumeContextLayout: 10003;
|
|
62
|
+
};
|
|
63
|
+
};
|
|
44
64
|
interface EditableLabelProps {
|
|
45
65
|
onChange: (value: string) => void;
|
|
46
66
|
value?: string;
|
|
@@ -340,7 +360,7 @@ interface AppProps {
|
|
|
340
360
|
projectState?: Project;
|
|
341
361
|
plugins?: Array<PluginConfig>;
|
|
342
362
|
editorContextMenu?: Array<ReactNode>;
|
|
343
|
-
onChange?: (
|
|
363
|
+
onChange?: (project: Project) => void;
|
|
344
364
|
theme?: Theme;
|
|
345
365
|
}
|
|
346
366
|
export const Editor: ({ ...props }: AppProps) => JSX.Element;
|