dishui 0.0.9 → 0.0.10

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.
@@ -1,13 +1,13 @@
1
1
  import React from 'react';
2
2
  export type ThemeType = 'light' | 'dark' | 'retro' | 'cyberpunk' | 'customblue' | 'ghibli';
3
- type AppContextType = {
3
+ export type AppContextType = {
4
4
  language: 'zh' | 'en';
5
5
  theme: ThemeType;
6
6
  setLanguage: (lang: 'zh' | 'en') => void;
7
7
  setTheme: (theme: ThemeType) => void;
8
8
  };
9
9
  export declare const useAppContext: () => AppContextType;
10
- type AppProviderProps = {
10
+ export type AppProviderProps = {
11
11
  children: React.ReactNode;
12
12
  };
13
13
  export declare const AppProvider: React.FC<AppProviderProps>;
@@ -21,4 +21,4 @@ export { default as MainLayout } from './layouts/MainLayout';
21
21
  export { default as Sidebar } from './layouts/Sidebar';
22
22
  export { default as Navbar } from './layouts/Navbar';
23
23
  export { default as AppProvider } from './contexts/AppContext';
24
- export type { ThemeType } from './contexts/AppContext';
24
+ export type { AppProviderProps, AppContextType, ThemeType } from './contexts/AppContext';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dishui",
3
- "version": "0.0.9",
3
+ "version": "0.0.10",
4
4
  "description": "一个基于React的vibe coding出来的UI组件库",
5
5
  "main": "dist/dishui.umd.js",
6
6
  "module": "dist/dishui.es.js",