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.
@@ -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
+ }
@@ -12,6 +12,9 @@ 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",
@@ -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>, "variant" | "size" | "onChange"> & React.RefAttributes<HTMLInputElement>>;
73
+ } & Omit<React.InputHTMLAttributes<HTMLInputElement>, "onChange" | "variant" | "size"> & React.RefAttributes<HTMLInputElement>>;
@@ -4,6 +4,7 @@ interface ILoaderProps {
4
4
  fixed?: boolean;
5
5
  active?: boolean;
6
6
  id?: string;
7
+ className?: string;
7
8
  }
8
9
  export declare const Loader: (props: ILoaderProps) => React.JSX.Element;
9
10
  export {};
@@ -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,6 +4,7 @@ interface ISpoilerProps {
4
4
  title: string | ReactNode;
5
5
  initialValue?: boolean;
6
6
  className?: string;
7
+ isWbTheme?: boolean;
7
8
  }
8
9
  export declare const Spoiler: (props: PropsWithChildren<ISpoilerProps>) => React.JSX.Element;
9
10
  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>, "variant" | "size" | "onChange"> & React.RefAttributes<HTMLTextAreaElement>>;
29
+ } & Omit<React.TextareaHTMLAttributes<HTMLTextAreaElement>, "onChange" | "variant" | "size"> & React.RefAttributes<HTMLTextAreaElement>>;
@@ -0,0 +1 @@
1
+ export { showToast } from './toast';
@@ -0,0 +1,3 @@
1
+ import type { ArgsProps } from 'antd/lib/notification';
2
+ export declare type IToastParams = ArgsProps;
3
+ export declare const showToast: (params: IToastParams) => void;
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';