@billgangcom/theme-lib 1.36.1 → 1.37.0

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,6 +1,7 @@
1
1
  import React from 'react';
2
2
  interface Props {
3
3
  setIsLoading: React.Dispatch<React.SetStateAction<boolean>>;
4
+ isLoading: boolean;
4
5
  }
5
6
  export declare const SaveButton: React.FC<Props>;
6
7
  export {};
@@ -99,8 +99,16 @@ export interface ThemeSettings {
99
99
  };
100
100
  };
101
101
  fonts: {
102
- heading: Partial<Font>;
103
- paragraph: Partial<Font>;
102
+ mobile: {
103
+ fontSizePercentage: number;
104
+ };
105
+ tablet: {
106
+ fontSizePercentage: number;
107
+ };
108
+ desktop: {
109
+ heading: Partial<Font>;
110
+ paragraph: Partial<Font>;
111
+ };
104
112
  };
105
113
  borders: BorderFields;
106
114
  buttons: {
@@ -24,6 +24,8 @@ interface Options {
24
24
  setCurrentBlock: (blockName: string | null) => void;
25
25
  moveBlock: (path: string, fromIndex: number, toIndex: number) => void;
26
26
  duplicateBlock: (path: string, id: string) => void;
27
+ isLoadingLayers: boolean;
28
+ setIsLoadingLayers: (isLoadingLayers: boolean) => void;
27
29
  }
28
30
  export declare const useLayersStore: import("zustand").UseBoundStore<Omit<import("zustand").StoreApi<Options>, "persist"> & {
29
31
  persist: {
@@ -5,6 +5,8 @@ type Settings = ISettings & {
5
5
  interface Options {
6
6
  settings: Settings | null;
7
7
  setSettings: (settings: Settings | null) => void;
8
+ isLoadingSettings: boolean;
9
+ setIsLoadingSettings: (isLoadingSettings: boolean) => void;
8
10
  }
9
11
  export declare const useSettingsStore: import("zustand").UseBoundStore<import("zustand").StoreApi<Options>>;
10
12
  export {};
@@ -11,6 +11,9 @@ interface Options {
11
11
  activeFont: FontTypeHeading | FontTypeParagraph | null;
12
12
  setActiveFont: (activeFont: FontTypeHeading | FontTypeParagraph | null) => void;
13
13
  updateInput: (category: keyof ThemeSettings['inputs'], value: string | number | boolean, field: keyof ThemeSettings['inputs']['general'] | keyof ThemeSettings['inputs']['border'] | keyof ThemeSettings['inputs']['label'] | keyof ThemeSettings['inputs']['field']) => void;
14
+ updateFontSizePercentage: (fontType: 'mobile' | 'tablet', newValue: number) => void;
15
+ isLoadingThemeSettings: boolean;
16
+ setIsLoadingThemeSettings: (isLoadingThemeSettings: boolean) => void;
14
17
  }
15
18
  export declare const useThemeSettingsStore: import("zustand").UseBoundStore<import("zustand").StoreApi<Options>>;
16
19
  export {};