dt-shared-front 2.2.59-alpha.1 → 2.2.59-alpha.11
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 +17 -0
- package/dist/components/icon/icon.d.ts +3 -0
- package/dist/components/input/input.d.ts +5 -1
- package/dist/components/loader/loader.d.ts +1 -0
- package/dist/components/slider/slider.d.ts +2 -1
- package/dist/components/spoiler/spoiler.d.ts +1 -0
- package/dist/components/text/text.d.ts +6 -1
- package/dist/components/text-area/text-area.d.ts +1 -1
- package/dist/components/toast/index.d.ts +1 -0
- package/dist/components/toast/toast.d.ts +3 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/main.css +36 -36
- package/dist/main.css.map +1 -1
- package/package.json +1 -1
package/dist/_variables.scss
CHANGED
@@ -74,3 +74,20 @@ $maxMobile: 767px;
|
|
74
74
|
scrollbar-width: 4px;
|
75
75
|
}
|
76
76
|
}
|
77
|
+
|
78
|
+
@mixin verticalScrollThin($color: #acaeb2) {
|
79
|
+
&::-webkit-scrollbar {
|
80
|
+
width: 4px;
|
81
|
+
}
|
82
|
+
|
83
|
+
&::-webkit-scrollbar-thumb {
|
84
|
+
background-color: transparent;
|
85
|
+
border-radius: 4px;
|
86
|
+
}
|
87
|
+
|
88
|
+
&:hover {
|
89
|
+
&::-webkit-scrollbar-thumb {
|
90
|
+
background-color: $color;
|
91
|
+
}
|
92
|
+
}
|
93
|
+
}
|
@@ -34,6 +34,8 @@ export declare type IInputProps = {
|
|
34
34
|
debounceTime?: number;
|
35
35
|
labelPlaceholder?: string | ReactNode;
|
36
36
|
mask?: string;
|
37
|
+
maskObj?: any;
|
38
|
+
maskParams?: any;
|
37
39
|
isWbTheme?: boolean;
|
38
40
|
onClear?: (val?: string) => void;
|
39
41
|
onBeforeMask?: (val?: string) => void;
|
@@ -59,6 +61,8 @@ export declare const Input: React.ForwardRefExoticComponent<{
|
|
59
61
|
debounceTime?: number;
|
60
62
|
labelPlaceholder?: string | ReactNode;
|
61
63
|
mask?: string;
|
64
|
+
maskObj?: any;
|
65
|
+
maskParams?: any;
|
62
66
|
isWbTheme?: boolean;
|
63
67
|
onClear?: (val?: string) => void;
|
64
68
|
onBeforeMask?: (val?: string) => void;
|
@@ -66,4 +70,4 @@ export declare const Input: React.ForwardRefExoticComponent<{
|
|
66
70
|
onChange?: (value: string, event: ChangeEvent<HTMLInputElement>) => void;
|
67
71
|
onSearch?: ((val: string) => void) | ((val: string) => Promise<void>);
|
68
72
|
valueTransformer?: (value: string) => string;
|
69
|
-
} & Omit<React.InputHTMLAttributes<HTMLInputElement>, "
|
73
|
+
} & Omit<React.InputHTMLAttributes<HTMLInputElement>, "onChange" | "variant" | "size"> & React.RefAttributes<HTMLInputElement>>;
|
@@ -13,6 +13,7 @@ interface ISliderProps {
|
|
13
13
|
delay?: number;
|
14
14
|
freeMode?: boolean;
|
15
15
|
showCounter?: boolean;
|
16
|
+
showPaginator?: boolean;
|
16
17
|
centeredSlides?: boolean;
|
17
18
|
className?: string;
|
18
19
|
classNamePrev?: string;
|
@@ -29,5 +30,5 @@ interface ISliderProps {
|
|
29
30
|
speed?: number;
|
30
31
|
effect?: 'slide' | 'fade' | 'cube' | 'coverflow' | 'flip';
|
31
32
|
}
|
32
|
-
export declare const Slider: ({ items, slidesPerView, renderItem, viewItem, loop, asyncReady, showNavigation, navPosition, spaceBetween, autoplay, delay, freeMode, showCounter, centeredSlides, className, classNamePrev, classNameNext, touchStartPreventDefault, overflow, preloadImages, shortSwipes, longSwipes, longSwipesMs, longSwipesRatio, preventClicks, preventClicksPropagation, effect, speed, }: ISliderProps) => React.JSX.Element;
|
33
|
+
export declare const Slider: ({ items, slidesPerView, renderItem, viewItem, loop, asyncReady, showNavigation, navPosition, spaceBetween, autoplay, delay, freeMode, showCounter, showPaginator, centeredSlides, className, classNamePrev, classNameNext, touchStartPreventDefault, overflow, preloadImages, shortSwipes, longSwipes, longSwipesMs, longSwipesRatio, preventClicks, preventClicksPropagation, effect, speed, }: ISliderProps) => React.JSX.Element;
|
33
34
|
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",
|
@@ -26,4 +26,4 @@ export declare const TextArea: React.ForwardRefExoticComponent<{
|
|
26
26
|
onClear?: () => void;
|
27
27
|
onSearch?: (e: any) => void;
|
28
28
|
onChange?: (value: string, event?: ChangeEvent<HTMLTextAreaElement>) => void;
|
29
|
-
} & Omit<React.TextareaHTMLAttributes<HTMLTextAreaElement>, "
|
29
|
+
} & Omit<React.TextareaHTMLAttributes<HTMLTextAreaElement>, "onChange" | "variant" | "size"> & React.RefAttributes<HTMLTextAreaElement>>;
|
@@ -0,0 +1 @@
|
|
1
|
+
export { showToast } from './toast';
|
package/dist/index.d.ts
CHANGED
@@ -53,3 +53,4 @@ 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';
|