dt-shared-front 2.2.58 → 2.2.59-alpha.2
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/components/button/button.d.ts +4 -2
- package/dist/components/checkbox/checkbox.d.ts +4 -2
- package/dist/components/counter/counter.d.ts +1 -0
- package/dist/components/date-picker/date-picker.d.ts +1 -0
- package/dist/components/heading/heading.d.ts +2 -1
- package/dist/components/input/input.d.ts +6 -0
- package/dist/components/modal/modal.d.ts +2 -0
- package/dist/components/radio/radio.d.ts +2 -1
- package/dist/components/select/select.d.ts +1 -0
- package/dist/components/skeleton/skeleton.d.ts +9 -2
- package/dist/components/stacked-input/stacked-input.d.ts +1 -0
- package/dist/components/tag-button/tag-button.d.ts +4 -1
- package/dist/components/text/text.d.ts +2 -1
- package/dist/components/tooltip/tooltip.d.ts +2 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/main.css +36 -35
- package/dist/main.css.map +1 -1
- package/dist/providers/shared.provider.d.ts +3 -1
- package/package.json +1 -1
@@ -8,7 +8,8 @@ export declare enum EButtonSize {
|
|
8
8
|
export declare enum EButtonVariant {
|
9
9
|
default = "default",
|
10
10
|
secondary = "secondary",
|
11
|
-
outline = "outline"
|
11
|
+
outline = "outline",
|
12
|
+
tertiary = "tertiary"
|
12
13
|
}
|
13
14
|
export declare enum EButtonIconPosition {
|
14
15
|
left = "left",
|
@@ -21,9 +22,10 @@ export interface IButtonProps {
|
|
21
22
|
width?: string;
|
22
23
|
iconPosition?: keyof typeof EButtonIconPosition;
|
23
24
|
loading?: boolean;
|
25
|
+
isWbTheme?: boolean;
|
24
26
|
disabled?: boolean;
|
25
27
|
className?: string;
|
26
28
|
type?: 'button' | 'submit' | 'reset';
|
27
29
|
onClick?: (e?: MouseEvent<HTMLButtonElement>) => void;
|
28
30
|
}
|
29
|
-
export declare const Button: ({ variant, size, iconPosition, width, icon: Icon, loading, disabled, children, className, onClick, type, }: PropsWithChildren<IButtonProps>) => React.JSX.Element;
|
31
|
+
export declare const Button: ({ variant, size, iconPosition, width, icon: Icon, loading, disabled, children, className, onClick, type, isWbTheme, }: PropsWithChildren<IButtonProps>) => React.JSX.Element;
|
@@ -1,11 +1,13 @@
|
|
1
1
|
import React, { PropsWithChildren } from 'react';
|
2
|
+
import { ChangeEvent } from 'react';
|
2
3
|
export declare type ICheckboxProps = {
|
3
4
|
disabled?: boolean;
|
4
5
|
value?: boolean;
|
5
6
|
error?: boolean;
|
6
|
-
onChange?: (val: boolean) => void;
|
7
|
+
onChange?: (val: boolean, event: ChangeEvent<HTMLInputElement>) => void;
|
7
8
|
className?: string;
|
8
9
|
small?: boolean;
|
9
10
|
name?: string;
|
11
|
+
isWbTheme?: boolean;
|
10
12
|
};
|
11
|
-
export declare const Checkbox: ({ disabled, value, onChange, children, error, className }: PropsWithChildren<ICheckboxProps>) => React.JSX.Element;
|
13
|
+
export declare const Checkbox: ({ disabled, value, onChange, children, error, className, isWbTheme, name, }: PropsWithChildren<ICheckboxProps>) => React.JSX.Element;
|
@@ -53,6 +53,7 @@ declare type IDatePickerProps = {
|
|
53
53
|
format?: string;
|
54
54
|
mask?: string;
|
55
55
|
labelPlaceholder?: string;
|
56
|
+
isWbTheme?: boolean;
|
56
57
|
} & ComponentProps<typeof AntDatePicker>;
|
57
58
|
export declare const DatePicker: React.ForwardRefExoticComponent<IDatePickerProps & React.RefAttributes<unknown>>;
|
58
59
|
export {};
|
@@ -38,6 +38,7 @@ interface IHeadingProps {
|
|
38
38
|
className?: string;
|
39
39
|
centerText?: boolean;
|
40
40
|
weight?: keyof typeof EHeadingWeight;
|
41
|
+
isWbTheme?: boolean;
|
41
42
|
}
|
42
|
-
export declare const Heading: ({ children, level, mobLevel, addition, attention, warning, success, inverse, error, variant, className, centerText, weight, }: IHeadingProps) => React.JSX.Element;
|
43
|
+
export declare const Heading: ({ children, level, mobLevel, addition, attention, warning, success, inverse, error, variant, className, centerText, weight, isWbTheme, }: IHeadingProps) => React.JSX.Element;
|
43
44
|
export {};
|
@@ -34,6 +34,9 @@ export declare type IInputProps = {
|
|
34
34
|
debounceTime?: number;
|
35
35
|
labelPlaceholder?: string | ReactNode;
|
36
36
|
mask?: string;
|
37
|
+
maskObj?: any;
|
38
|
+
maskParams?: any;
|
39
|
+
isWbTheme?: boolean;
|
37
40
|
onClear?: (val?: string) => void;
|
38
41
|
onBeforeMask?: (val?: string) => void;
|
39
42
|
onPointerUp?: (e: any) => void;
|
@@ -58,6 +61,9 @@ export declare const Input: React.ForwardRefExoticComponent<{
|
|
58
61
|
debounceTime?: number;
|
59
62
|
labelPlaceholder?: string | ReactNode;
|
60
63
|
mask?: string;
|
64
|
+
maskObj?: any;
|
65
|
+
maskParams?: any;
|
66
|
+
isWbTheme?: boolean;
|
61
67
|
onClear?: (val?: string) => void;
|
62
68
|
onBeforeMask?: (val?: string) => void;
|
63
69
|
onPointerUp?: (e: any) => void;
|
@@ -19,6 +19,7 @@ export interface IModalRef<D = any> {
|
|
19
19
|
setShowCloseIcon: (value: boolean) => void;
|
20
20
|
setMaskClosable: (value: boolean) => void;
|
21
21
|
setGrayBackground: (value: boolean) => void;
|
22
|
+
setNoPadding: (value: boolean) => void;
|
22
23
|
}
|
23
24
|
declare type IModalProps<C extends ElementType> = {
|
24
25
|
[key in keyof ComponentProps<C>]?: ComponentProps<C>[key];
|
@@ -35,6 +36,7 @@ declare type IModalProps<C extends ElementType> = {
|
|
35
36
|
gallery?: boolean;
|
36
37
|
tabletPopup?: boolean;
|
37
38
|
grayBackground?: string;
|
39
|
+
noPadding?: boolean;
|
38
40
|
};
|
39
41
|
export declare const Modal: React.ForwardRefExoticComponent<Omit<IModalProps<any>, "ref"> & React.RefAttributes<IModalRef<any>>>;
|
40
42
|
export {};
|
@@ -12,6 +12,7 @@ declare type IRadioProps<T> = Omit<RadioGroupProps, 'options' | 'onChange' | 'va
|
|
12
12
|
position?: 'vertical' | 'horizontal';
|
13
13
|
className?: string;
|
14
14
|
error?: boolean;
|
15
|
+
isWbTheme?: boolean;
|
15
16
|
};
|
16
|
-
export declare function Radio<T = any>({ options, position, valueKey, labelKey, labels, className, error, ...props }: IRadioProps<T>): React.JSX.Element;
|
17
|
+
export declare function Radio<T = any>({ options, position, valueKey, labelKey, labels, className, error, isWbTheme, ...props }: IRadioProps<T>): React.JSX.Element;
|
17
18
|
export {};
|
@@ -29,6 +29,7 @@ declare type ISelectProps<T> = Omit<SelectProps, 'options' | 'onChange'> & {
|
|
29
29
|
suffixIcon?: any;
|
30
30
|
isMobileModal?: boolean;
|
31
31
|
modalTitle?: string;
|
32
|
+
isWbTheme?: boolean;
|
32
33
|
};
|
33
34
|
export declare const Select: <T = any>(props: ISelectProps<T>, ref: Ref<HTMLInputElement>) => ReactElement;
|
34
35
|
export {};
|
@@ -1,5 +1,12 @@
|
|
1
1
|
import React from 'react';
|
2
2
|
import { SkeletonProps } from 'react-loading-skeleton';
|
3
|
-
declare
|
4
|
-
|
3
|
+
declare enum ESkeletonVariant {
|
4
|
+
default = "default",
|
5
|
+
inverse = "inverse"
|
6
|
+
}
|
7
|
+
declare type ISkeletonProps = SkeletonProps & {
|
8
|
+
isWbTheme?: boolean;
|
9
|
+
variant?: keyof typeof ESkeletonVariant;
|
10
|
+
};
|
11
|
+
export declare const Skeleton: ({ isWbTheme, variant, ...props }: ISkeletonProps) => React.JSX.Element;
|
5
12
|
export {};
|
@@ -17,6 +17,7 @@ declare type IStackedInputProps<T> = {
|
|
17
17
|
labelPlaceholder?: string;
|
18
18
|
mask?: IInputProps['mask'];
|
19
19
|
value?: string;
|
20
|
+
isWbTheme?: boolean;
|
20
21
|
onRenderOption?: (item: T) => ReactNode;
|
21
22
|
} & ComponentProps<typeof Input> & Omit<InputHTMLAttributes<HTMLInputElement>, 'size' | 'variant' | 'onChange'>;
|
22
23
|
export declare const StackedInput: <T>(props: IStackedInputProps<T>, ref: Ref<HTMLInputElement>) => ReactElement;
|
@@ -6,6 +6,8 @@ export declare enum ETagButtonSize {
|
|
6
6
|
}
|
7
7
|
export declare enum ETagButtonVariant {
|
8
8
|
default = "default",
|
9
|
+
primary = "primary",
|
10
|
+
tertiary = "tertiary",
|
9
11
|
secondary = "secondary",
|
10
12
|
tumbler = "tumbler",
|
11
13
|
green = "green",
|
@@ -24,6 +26,7 @@ interface IButtonProps {
|
|
24
26
|
shadow?: boolean;
|
25
27
|
onClick: (e?: boolean) => void;
|
26
28
|
selectedClassName?: string;
|
29
|
+
isWbTheme?: boolean;
|
27
30
|
}
|
28
|
-
export declare const TagButton: ({ variant, size, disabled, selected, children, onClick, selectedClassName, }: PropsWithChildren<IButtonProps>) => React.JSX.Element;
|
31
|
+
export declare const TagButton: ({ variant, size, disabled, selected, children, onClick, selectedClassName, isWbTheme, }: PropsWithChildren<IButtonProps>) => React.JSX.Element;
|
29
32
|
export {};
|
@@ -41,6 +41,7 @@ interface ITextProps {
|
|
41
41
|
through?: boolean;
|
42
42
|
tag?: string;
|
43
43
|
onClick?: (e: any) => void;
|
44
|
+
isWbTheme?: boolean;
|
44
45
|
}
|
45
|
-
export declare const Text: ({ children, size, mobSize, bold, weight, variant, addition, success, error, inverse, attention, warning, className, style, through, tag, onClick, }: ITextProps) => React.JSX.Element;
|
46
|
+
export declare const Text: ({ children, size, mobSize, bold, weight, variant, addition, success, error, inverse, attention, warning, className, style, through, tag, onClick, isWbTheme, }: ITextProps) => React.JSX.Element;
|
46
47
|
export {};
|
@@ -6,6 +6,7 @@ declare type ITootipProps = {
|
|
6
6
|
onOpenChange?: (val: boolean) => void;
|
7
7
|
placement?: keyof typeof TooltipPosition;
|
8
8
|
trigger?: any;
|
9
|
+
isWbTheme?: boolean;
|
9
10
|
};
|
10
|
-
export declare const Tooltip: ({ placement, ...props }: PropsWithChildren<ITootipProps>) => React.JSX.Element;
|
11
|
+
export declare const Tooltip: ({ placement, isWbTheme, ...props }: PropsWithChildren<ITootipProps>) => React.JSX.Element;
|
11
12
|
export {};
|