@billgangcom/theme-lib 1.36.1 → 1.38.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 {};
@@ -1,6 +1,7 @@
1
1
  export declare const blockIcons: {
2
2
  Header: string;
3
- Hero: string;
3
+ PrimaryHero: string;
4
+ ProductHero: string;
4
5
  Items: string;
5
6
  FeaturedItems: string;
6
7
  Content: string;
@@ -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: {
@@ -17,3 +17,4 @@ export * from './useNotificationStore';
17
17
  export * from './useErrorStore';
18
18
  export * from './useConfirmationModalStore';
19
19
  export * from './useTooltipStore';
20
+ export * from './useModalStore';
@@ -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: {
@@ -0,0 +1,6 @@
1
+ interface Options {
2
+ isOpen: boolean;
3
+ setIsOpen: (isOpen: boolean) => void;
4
+ }
5
+ export declare const useModalStore: import("zustand").UseBoundStore<import("zustand").StoreApi<Options>>;
6
+ export {};
@@ -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 {};
@@ -2,6 +2,7 @@ import React from 'react';
2
2
  interface Props {
3
3
  close: (value: boolean) => void;
4
4
  children: React.ReactNode;
5
+ withAnimation?: boolean;
5
6
  }
6
7
  export declare const Modal: React.FC<Props>;
7
8
  export {};