@woovi/ui 0.1.0 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ReactJson.d.ts +12 -2
- package/dist/ThemeProvider.d.ts +2 -2
- package/dist/index.cjs +219 -219
- package/dist/index.d.ts +3 -0
- package/dist/index.js +209 -209
- package/package.json +1 -1
- package/dist/rslib-runtime.js +0 -1
package/dist/ReactJson.d.ts
CHANGED
|
@@ -1,2 +1,12 @@
|
|
|
1
|
-
import type
|
|
2
|
-
|
|
1
|
+
import { type ReactNode } from "react";
|
|
2
|
+
type ReactJsonViewProps = {
|
|
3
|
+
theme?: string;
|
|
4
|
+
indentWidth?: number;
|
|
5
|
+
displayObjectSize?: boolean;
|
|
6
|
+
enableClipboard?: (value: {
|
|
7
|
+
src: unknown;
|
|
8
|
+
}) => Promise<void>;
|
|
9
|
+
[key: string]: unknown;
|
|
10
|
+
};
|
|
11
|
+
export declare const ReactJson: (props: ReactJsonViewProps) => ReactNode;
|
|
12
|
+
export {};
|
package/dist/ThemeProvider.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import type { ReactNode } from
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
2
|
type ThemeProviderProps = {
|
|
3
3
|
children: React.ReactNode;
|
|
4
4
|
};
|
|
5
5
|
type ThemeContextValue = {
|
|
6
6
|
toggleTheme: VoidFunction;
|
|
7
|
-
themeMode:
|
|
7
|
+
themeMode: "light" | "dark";
|
|
8
8
|
};
|
|
9
9
|
export declare const useThemeMode: () => ThemeContextValue;
|
|
10
10
|
declare const ThemeProvider: ({ children }: ThemeProviderProps) => ReactNode;
|