@duxweb/dvha-core 0.1.16 → 0.1.18

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.
@@ -11,7 +11,19 @@ export interface IUseExportCsvProps extends IUseExportProps {
11
11
  };
12
12
  }
13
13
  export declare function useExportCsv(props: IUseExportCsvProps): {
14
- data: import("vue").Ref<undefined, undefined> | import("vue").Ref<import("@tanstack/query-core").InfiniteData<import("..").IDataProviderResponse | undefined, unknown>, import("@tanstack/query-core").InfiniteData<import("..").IDataProviderResponse | undefined, unknown>>;
14
+ data: import("vue").Ref<{
15
+ [x: string]: any;
16
+ message?: string | undefined;
17
+ data?: any;
18
+ meta?: Record<string, any> | undefined;
19
+ raw?: any;
20
+ } | undefined, import("..").IDataProviderResponse | {
21
+ [x: string]: any;
22
+ message?: string | undefined;
23
+ data?: any;
24
+ meta?: Record<string, any> | undefined;
25
+ raw?: any;
26
+ } | undefined>;
15
27
  isLoading: import("vue").ComputedRef<boolean>;
16
28
  trigger: () => Promise<void>;
17
29
  };
@@ -1,18 +1,18 @@
1
1
  export * from './auth';
2
2
  export * from './config';
3
3
  export * from './data';
4
+ export * from './export';
5
+ export * from './exportCsv';
6
+ export * from './form';
7
+ export * from './i18n';
8
+ export * from './import';
9
+ export * from './importCsv';
4
10
  export * from './manage';
5
11
  export * from './menu';
6
- export * from './theme';
7
12
  export * from './overlay';
8
- export * from './i18n';
9
13
  export * from './select';
10
- export * from './form';
11
- export * from './export';
12
- export * from './import';
13
- export * from './exportCsv';
14
- export * from './importCsv';
14
+ export * from './theme';
15
+ export * from './theme';
16
+ export * from './themeColor';
15
17
  export * from './upload';
16
18
  export * from './upload/index';
17
- export * from './themeColor';
18
- export * from './theme';
@@ -57,6 +57,7 @@ export interface ThemeConfig {
57
57
  export declare function useTheme(): {
58
58
  toggle: (n?: number) => "light" | "dark" | "auto";
59
59
  mode: import("vue").ShallowRef<"light" | "dark" | "auto">;
60
+ setMode: (mode: "dark" | "light" | "auto") => void;
60
61
  isDark: import("vue").ComputedRef<boolean>;
61
62
  resources: import("vue").ComputedRef<ITheme>;
62
63
  config: {
@@ -244,6 +245,8 @@ export declare function useTheme(): {
244
245
  readonly gray: ThemeColorName;
245
246
  }>>;
246
247
  colors: import("vue").ComputedRef<string[]>;
248
+ neutralColors: import("vue").ComputedRef<string[]>;
249
+ primaryColors: import("vue").ComputedRef<string[]>;
247
250
  colorShades: ThemeColorShade[];
248
251
  colorTypes: ThemeColorType[];
249
252
  colorScenes: ThemeSceneType[];
@@ -251,7 +254,7 @@ export declare function useTheme(): {
251
254
  cssReset: () => void;
252
255
  setColor: (type: ThemeColorType, colorName: ThemeColorName) => void;
253
256
  setColors: (mappings: Partial<Record<ThemeColorType, ThemeColorName>>) => void;
254
- getSceneColor: (type: ThemeColorType, scene?: ThemeSceneType) => string;
255
- getShadeColor: (type: ThemeColorType, shade: ThemeColorShade) => string;
256
- getSemanticColor: (category: keyof ThemeColorSemanticConfig, key: string) => string;
257
+ getSceneColor: (type: ThemeColorType, scene?: ThemeSceneType, asVariable?: boolean) => string;
258
+ getShadeColor: (type: ThemeColorType, shade: ThemeColorShade, asVariable?: boolean) => string;
259
+ getSemanticColor: (category: keyof ThemeColorSemanticConfig, key: string, asVariable?: boolean) => string;
257
260
  };
@@ -1,7 +1,7 @@
1
- export declare const themePreset: (themeColor: Record<string, any>) => {
2
- colors: Record<string, Record<string, string>>;
1
+ export declare function themePreset(themeColor: Record<string, any>): {
2
+ colors: Record<string, Record<string, any>>;
3
3
  classes: {
4
- text: {
4
+ 'text-default': {
5
5
  color: string;
6
6
  };
7
7
  'text-dimmed': {
@@ -19,7 +19,7 @@ export declare const themePreset: (themeColor: Record<string, any>) => {
19
19
  'text-inverted': {
20
20
  color: string;
21
21
  };
22
- bg: {
22
+ 'bg-default': {
23
23
  'background-color': string;
24
24
  };
25
25
  'bg-muted': {
@@ -34,7 +34,7 @@ export declare const themePreset: (themeColor: Record<string, any>) => {
34
34
  'bg-inverted': {
35
35
  'background-color': string;
36
36
  };
37
- border: {
37
+ 'border-default': {
38
38
  'border-color': string;
39
39
  };
40
40
  'border-muted': {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@duxweb/dvha-core",
3
3
  "type": "module",
4
- "version": "0.1.16",
4
+ "version": "0.1.18",
5
5
  "author": "DuxWeb",
6
6
  "license": "MIT",
7
7
  "repository": {
@@ -39,8 +39,8 @@
39
39
  "dependencies": {
40
40
  "@overlastic/vue": "^0.8.1",
41
41
  "@tanstack/vue-query": "^5.76.2",
42
- "@vueuse/core": "^13.0.0",
43
- "@vueuse/integrations": "^13.0.0",
42
+ "@vueuse/core": "^13.3.0",
43
+ "@vueuse/integrations": "^13.3.0",
44
44
  "axios": "^1.9.0",
45
45
  "clsx": "^2.1.1",
46
46
  "colorizr": "^3.0.8",