@billgangcom/theme-lib 1.36.0 → 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.
- package/dist/builder/components/Header/SaveButton/index.d.ts +1 -0
- package/dist/builder/constants/theme-settings.d.ts +10 -3
- package/dist/builder/store/useLayersStore.d.ts +2 -0
- package/dist/builder/store/useSettingsStore.d.ts +2 -0
- package/dist/builder/store/useThemeSettingsStore.d.ts +3 -0
- package/dist/builder.cjs.js +5 -5
- package/dist/builder.es.js +1905 -1814
- package/dist/{index-BnJDbbG8.cjs → index-BHI15yI7.cjs} +29 -29
- package/dist/{index-DwwDB4Kw.js → index-CncZkk5o.js} +4506 -4466
- package/dist/ui.cjs.js +1 -1
- package/dist/ui.es.js +1289 -1285
- package/package.json +1 -1
|
@@ -99,8 +99,16 @@ export interface ThemeSettings {
|
|
|
99
99
|
};
|
|
100
100
|
};
|
|
101
101
|
fonts: {
|
|
102
|
-
|
|
103
|
-
|
|
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: {
|
|
@@ -111,7 +119,6 @@ export interface ThemeSettings {
|
|
|
111
119
|
inputs: {
|
|
112
120
|
general: {
|
|
113
121
|
height: number;
|
|
114
|
-
name: string;
|
|
115
122
|
size: number;
|
|
116
123
|
color: string;
|
|
117
124
|
};
|
|
@@ -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 {};
|