@billgangcom/theme-lib 1.29.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/abstractions/Variable.d.ts +4 -4
- 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 +4 -4
- package/dist/builder.es.js +713 -679
- package/dist/{index-yQeZRD3_.cjs → index-B-R0F-Gi.cjs} +30 -30
- package/dist/{index-CCmkmGkM.js → index-g_P5DY05.js} +2779 -2739
- 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
|
@@ -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