@billgangcom/theme-lib 1.28.0 → 1.30.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/App.d.ts +1 -1
- package/dist/abstractions/IBlock.d.ts +2 -0
- package/dist/abstractions/Variable.d.ts +4 -4
- package/dist/builder/components/Header/SaveButton/index.d.ts +6 -0
- package/dist/builder/components/Sidebar/AddSections/BlockColors/index.d.ts +7 -0
- package/dist/builder/components/Sidebar/Settings/index.d.ts +1 -0
- package/dist/builder/constants/blocks.d.ts +3 -0
- package/dist/builder/constants/color-variables.d.ts +48 -0
- package/dist/builder/constants/index.d.ts +1 -0
- package/dist/builder/constants/pages.d.ts +6 -1
- package/dist/builder/store/index.d.ts +1 -0
- package/dist/builder/store/useErrorStore.d.ts +2 -2
- package/dist/builder/ui/ChooseImage/index.d.ts +1 -0
- package/dist/builder/ui/Input/index.d.ts +1 -0
- package/dist/builder.cjs.js +14 -14
- package/dist/builder.es.js +1463 -1284
- package/dist/{index-BeV20nM7.cjs → index-B-R0F-Gi.cjs} +30 -30
- package/dist/{index-Dq4uNns7.js → index-g_P5DY05.js} +2827 -2796
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +5 -4
- package/dist/lib/api.d.ts +2 -2
- package/dist/ui/ButtonsSettings/popup.d.ts +1 -1
- package/dist/ui/CategorySettings/index.d.ts +44 -0
- package/dist/ui/ItemsSettings/index.d.ts +6 -1
- package/dist/ui/ItemsSettings/popup.d.ts +2 -2
- package/dist/ui/index.d.ts +1 -0
- package/dist/ui.cjs.js +1 -1
- package/dist/ui.es.js +1407 -1186
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./builder.cjs.js");exports.App=e.App;exports.hotReload=e.hotReload;exports.iconNames=e.iconNames;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./builder.cjs.js");exports.App=e.App;exports.ColorVariables=e.ColorVariables;exports.hotReload=e.hotReload;exports.iconNames=e.iconNames;
|
package/dist/index.es.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { App as
|
|
1
|
+
import { App as e, ColorVariables as r, hotReload as l, iconNames as p } from "./builder.es.js";
|
|
2
2
|
export {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
e as App,
|
|
4
|
+
r as ColorVariables,
|
|
5
|
+
l as hotReload,
|
|
6
|
+
p as iconNames
|
|
6
7
|
};
|
package/dist/lib/api.d.ts
CHANGED
|
@@ -8,8 +8,8 @@ export declare const updateImages: (formData: FormData) => Promise<{
|
|
|
8
8
|
}>;
|
|
9
9
|
interface ResetSettingsOptions {
|
|
10
10
|
resetSettings: boolean;
|
|
11
|
-
|
|
12
|
-
resetPageIds:
|
|
11
|
+
resetThemeSettings: boolean;
|
|
12
|
+
resetPageIds: number[];
|
|
13
13
|
}
|
|
14
14
|
export declare const resetSettings: (options: ResetSettingsOptions) => Promise<{
|
|
15
15
|
data: any;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Other } from '../OtherSettings';
|
|
3
|
+
interface ItemBase {
|
|
4
|
+
images: string[];
|
|
5
|
+
name: string;
|
|
6
|
+
id: number;
|
|
7
|
+
}
|
|
8
|
+
interface CommomPropsBase {
|
|
9
|
+
isActiveItems?: boolean;
|
|
10
|
+
setIsActiveItems?: (value: boolean) => void;
|
|
11
|
+
items: number[];
|
|
12
|
+
setItems: (value: number[]) => void;
|
|
13
|
+
title?: string;
|
|
14
|
+
subtitle?: string;
|
|
15
|
+
editable?: boolean;
|
|
16
|
+
draggable?: boolean;
|
|
17
|
+
withImage?: boolean;
|
|
18
|
+
deletable?: boolean;
|
|
19
|
+
addable?: boolean;
|
|
20
|
+
other?: Other[];
|
|
21
|
+
addableOptions?: Record<string, any>;
|
|
22
|
+
hasRangeSelector?: boolean;
|
|
23
|
+
rangeSelectorOptions?: {
|
|
24
|
+
count: number;
|
|
25
|
+
setCount: (value: number) => void;
|
|
26
|
+
min?: number;
|
|
27
|
+
max?: number;
|
|
28
|
+
step?: number;
|
|
29
|
+
label?: string;
|
|
30
|
+
};
|
|
31
|
+
limit?: number;
|
|
32
|
+
autoScrollInterval?: {
|
|
33
|
+
setScrollInterval: React.Dispatch<React.SetStateAction<number>>;
|
|
34
|
+
scrollInterval: number;
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
interface SelectProps<T extends ItemBase> extends CommomPropsBase {
|
|
38
|
+
itemsType: 'select';
|
|
39
|
+
itemsPlaceholder?: never;
|
|
40
|
+
itemsOptions: T[];
|
|
41
|
+
}
|
|
42
|
+
type Props<T extends ItemBase> = SelectProps<T>;
|
|
43
|
+
export declare const CategorySettings: <T extends ItemBase>(props: Props<T>) => import("react/jsx-runtime").JSX.Element;
|
|
44
|
+
export {};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import { ModalOption } from './popup';
|
|
2
3
|
import { Other } from '../OtherSettings';
|
|
3
4
|
export interface ItemBase {
|
|
@@ -30,11 +31,15 @@ interface CommomPropsBase<T extends ItemBase> {
|
|
|
30
31
|
};
|
|
31
32
|
limit?: number;
|
|
32
33
|
modalOptions?: ModalOption<T>[];
|
|
34
|
+
autoScrollInterval?: {
|
|
35
|
+
setScrollInterval: React.Dispatch<React.SetStateAction<number>>;
|
|
36
|
+
scrollInterval: number;
|
|
37
|
+
};
|
|
33
38
|
}
|
|
34
39
|
interface SelectProps<T extends ItemBase> extends CommomPropsBase<T> {
|
|
35
40
|
itemsType: 'select';
|
|
36
41
|
itemsPlaceholder?: never;
|
|
37
|
-
itemsOptions:
|
|
42
|
+
itemsOptions: T[];
|
|
38
43
|
}
|
|
39
44
|
interface InputProps<T extends ItemBase> extends CommomPropsBase<T> {
|
|
40
45
|
itemsType: 'input';
|
|
@@ -35,7 +35,7 @@ interface ListOption<T> {
|
|
|
35
35
|
field: keyof T;
|
|
36
36
|
draggable?: boolean;
|
|
37
37
|
deletable?: boolean;
|
|
38
|
-
itemsOptions:
|
|
38
|
+
itemsOptions: T[];
|
|
39
39
|
}
|
|
40
40
|
interface SelectOption<T> {
|
|
41
41
|
type: 'select';
|
|
@@ -55,5 +55,5 @@ interface Props<T extends ItemBase> {
|
|
|
55
55
|
setIsOpenModal: React.Dispatch<React.SetStateAction<boolean>>;
|
|
56
56
|
modalOptions: ModalOption<T>[];
|
|
57
57
|
}
|
|
58
|
-
export declare const ItemPopup: <
|
|
58
|
+
export declare const ItemPopup: React.ForwardRefExoticComponent<Props<ItemBase> & React.RefAttributes<HTMLDivElement>>;
|
|
59
59
|
export {};
|
package/dist/ui/index.d.ts
CHANGED