dt-shared-front 2.2.59 → 2.2.60-alpha.1
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/_variables.scss +22 -6
- 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/icon/icon.d.ts +4 -0
- package/dist/components/info-block/index.d.ts +1 -0
- package/dist/components/info-block/info-block.d.ts +13 -0
- package/dist/components/input/input.d.ts +7 -1
- package/dist/components/loader/loader.d.ts +1 -0
- package/dist/components/modal/modal.d.ts +4 -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/spoiler/spoiler.d.ts +1 -0
- 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 +10 -3
- package/dist/components/text-area/text-area.d.ts +4 -2
- package/dist/components/toast/index.d.ts +1 -0
- package/dist/components/toast/toast.d.ts +3 -0
- package/dist/components/tooltip/tooltip.d.ts +2 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/main.css +37 -35
- package/dist/main.css.map +1 -1
- package/dist/providers/shared.provider.d.ts +3 -1
- package/package.json +1 -1
package/dist/_variables.scss
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
$minDesktop: 1024px;
|
2
|
-
$maxTablet:
|
2
|
+
$maxTablet: 1023.99px;
|
3
3
|
$minTablet: 768px;
|
4
|
-
$maxMobile:
|
4
|
+
$maxMobile: 767.99px;
|
5
5
|
|
6
6
|
@mixin respond($breakpoint) {
|
7
7
|
@if $breakpoint == desktop {
|
@@ -48,9 +48,8 @@ $maxMobile: 767px;
|
|
48
48
|
}
|
49
49
|
}
|
50
50
|
|
51
|
-
|
52
51
|
@mixin verticalScroll {
|
53
|
-
scrollbar-color: #
|
52
|
+
scrollbar-color: #acaeb2 transparent;
|
54
53
|
scrollbar-width: thin;
|
55
54
|
&::-webkit-scrollbar {
|
56
55
|
width: 4px;
|
@@ -59,12 +58,12 @@ $maxMobile: 767px;
|
|
59
58
|
background-color: transparent;
|
60
59
|
}
|
61
60
|
&::-webkit-scrollbar-thumb {
|
62
|
-
background-color: #
|
61
|
+
background-color: #acaeb2;
|
63
62
|
|
64
63
|
border-radius: 4px;
|
65
64
|
}
|
66
65
|
&::-webkit-scrollbar-thumb:hover {
|
67
|
-
background-color: #
|
66
|
+
background-color: #acaeb2;
|
68
67
|
}
|
69
68
|
& > * {
|
70
69
|
scroll-snap-align: start;
|
@@ -74,3 +73,20 @@ $maxMobile: 767px;
|
|
74
73
|
scrollbar-width: 4px;
|
75
74
|
}
|
76
75
|
}
|
76
|
+
|
77
|
+
@mixin verticalScrollThin($color: #acaeb2) {
|
78
|
+
&::-webkit-scrollbar {
|
79
|
+
width: 4px;
|
80
|
+
}
|
81
|
+
|
82
|
+
&::-webkit-scrollbar-thumb {
|
83
|
+
background-color: transparent;
|
84
|
+
border-radius: 4px;
|
85
|
+
}
|
86
|
+
|
87
|
+
&:hover {
|
88
|
+
&::-webkit-scrollbar-thumb {
|
89
|
+
background-color: $color;
|
90
|
+
}
|
91
|
+
}
|
92
|
+
}
|
@@ -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 {};
|
@@ -12,9 +12,13 @@ export declare enum EIconVariant {
|
|
12
12
|
attention = "attention",
|
13
13
|
revert = "revert",
|
14
14
|
warning = "warning",
|
15
|
+
error = "error",
|
16
|
+
neutral = "neutral",
|
17
|
+
success = "success",
|
15
18
|
initial = "initial",
|
16
19
|
light = "light",
|
17
20
|
inherit = "inherit",
|
21
|
+
secondary = "secondary",
|
18
22
|
green = "green"
|
19
23
|
}
|
20
24
|
interface IIconProps {
|
@@ -0,0 +1 @@
|
|
1
|
+
export { InfoBlock } from './info-block';
|
@@ -0,0 +1,13 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
declare enum EInfoBlockVariant {
|
3
|
+
default = "default",
|
4
|
+
warning = "warning",
|
5
|
+
error = "error"
|
6
|
+
}
|
7
|
+
interface IInfoBlockProps {
|
8
|
+
title?: string;
|
9
|
+
description: string;
|
10
|
+
variant?: keyof typeof EInfoBlockVariant;
|
11
|
+
}
|
12
|
+
export declare const InfoBlock: ({ title, description, variant }: IInfoBlockProps) => React.JSX.Element;
|
13
|
+
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,10 +61,13 @@ 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;
|
64
70
|
onChange?: (value: string, event: ChangeEvent<HTMLInputElement>) => void;
|
65
71
|
onSearch?: ((val: string) => void) | ((val: string) => Promise<void>);
|
66
72
|
valueTransformer?: (value: string) => string;
|
67
|
-
} & Omit<React.InputHTMLAttributes<HTMLInputElement>, "
|
73
|
+
} & Omit<React.InputHTMLAttributes<HTMLInputElement>, "onChange" | "variant" | "size"> & React.RefAttributes<HTMLInputElement>>;
|
@@ -19,6 +19,8 @@ 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;
|
23
|
+
setFooterClassName: (value: string) => void;
|
22
24
|
}
|
23
25
|
declare type IModalProps<C extends ElementType> = {
|
24
26
|
[key in keyof ComponentProps<C>]?: ComponentProps<C>[key];
|
@@ -27,6 +29,7 @@ declare type IModalProps<C extends ElementType> = {
|
|
27
29
|
title?: string;
|
28
30
|
width?: number | string;
|
29
31
|
footer?: ReactNode;
|
32
|
+
footerClassName?: string;
|
30
33
|
sidebar?: boolean;
|
31
34
|
showClose?: boolean;
|
32
35
|
maskClosable?: boolean;
|
@@ -35,6 +38,7 @@ declare type IModalProps<C extends ElementType> = {
|
|
35
38
|
gallery?: boolean;
|
36
39
|
tabletPopup?: boolean;
|
37
40
|
grayBackground?: string;
|
41
|
+
noPadding?: boolean;
|
38
42
|
};
|
39
43
|
export declare const Modal: React.ForwardRefExoticComponent<Omit<IModalProps<any>, "ref"> & React.RefAttributes<IModalRef<any>>>;
|
40
44
|
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 {};
|
@@ -4,7 +4,12 @@ export declare enum ETextSize {
|
|
4
4
|
small = "small",
|
5
5
|
medium = "medium",
|
6
6
|
large = "large",
|
7
|
-
inherit = "inherit"
|
7
|
+
inherit = "inherit",
|
8
|
+
action = "action",
|
9
|
+
paragraph = "paragraph",
|
10
|
+
body = "body",
|
11
|
+
description = "description",
|
12
|
+
caption = "caption"
|
8
13
|
}
|
9
14
|
export declare enum ETextWeight {
|
10
15
|
bold = "bold",
|
@@ -21,7 +26,8 @@ export declare enum ETextVariant {
|
|
21
26
|
error = "error",
|
22
27
|
success = "success",
|
23
28
|
warning = "warning",
|
24
|
-
inverse = "inverse"
|
29
|
+
inverse = "inverse",
|
30
|
+
secondary = "secondary"
|
25
31
|
}
|
26
32
|
interface ITextProps {
|
27
33
|
size?: keyof typeof ETextSize;
|
@@ -41,6 +47,7 @@ interface ITextProps {
|
|
41
47
|
through?: boolean;
|
42
48
|
tag?: string;
|
43
49
|
onClick?: (e: any) => void;
|
50
|
+
isWbTheme?: boolean;
|
44
51
|
}
|
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;
|
52
|
+
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
53
|
export {};
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import React, { ChangeEvent } from 'react';
|
1
|
+
import React, { ChangeEvent, ReactNode } from 'react';
|
2
2
|
export declare enum ETextAreaVariant {
|
3
3
|
filled = "filled",
|
4
4
|
outlined = "outlined"
|
@@ -23,7 +23,9 @@ export declare const TextArea: React.ForwardRefExoticComponent<{
|
|
23
23
|
adaptive?: boolean;
|
24
24
|
autoResize?: boolean;
|
25
25
|
placeholder?: string;
|
26
|
+
labelPlaceholder?: string | ReactNode;
|
27
|
+
isWbTheme?: boolean;
|
26
28
|
onClear?: () => void;
|
27
29
|
onSearch?: (e: any) => void;
|
28
30
|
onChange?: (value: string, event?: ChangeEvent<HTMLTextAreaElement>) => void;
|
29
|
-
} & Omit<React.TextareaHTMLAttributes<HTMLTextAreaElement>, "
|
31
|
+
} & Omit<React.TextareaHTMLAttributes<HTMLTextAreaElement>, "onChange" | "variant" | "size"> & React.RefAttributes<HTMLTextAreaElement>>;
|
@@ -0,0 +1 @@
|
|
1
|
+
export { showToast } from './toast';
|
@@ -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 {};
|
package/dist/index.d.ts
CHANGED
@@ -53,3 +53,5 @@ export type { PropsWithPopover } from './components/popover';
|
|
53
53
|
export type { IPopoverRef } from './components/popover/popover';
|
54
54
|
export { adapter, BaseService } from './service';
|
55
55
|
export type { IBaseServiceStreamOptions } from './service';
|
56
|
+
export { showToast } from './components/toast';
|
57
|
+
export { InfoBlock } from './components/info-block';
|