dt-shared-front 2.2.59-alpha.2 → 2.2.59-alpha.21

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",
@@ -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 {};
@@ -20,6 +20,7 @@ export interface IModalRef<D = any> {
20
20
  setMaskClosable: (value: boolean) => void;
21
21
  setGrayBackground: (value: boolean) => void;
22
22
  setNoPadding: (value: boolean) => void;
23
+ setFooterClassName: (value: string) => void;
23
24
  }
24
25
  declare type IModalProps<C extends ElementType> = {
25
26
  [key in keyof ComponentProps<C>]?: ComponentProps<C>[key];
@@ -28,6 +29,7 @@ declare type IModalProps<C extends ElementType> = {
28
29
  title?: string;
29
30
  width?: number | string;
30
31
  footer?: ReactNode;
32
+ footerClassName?: string;
31
33
  sidebar?: boolean;
32
34
  showClose?: boolean;
33
35
  maskClosable?: boolean;
@@ -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",
@@ -23,6 +23,7 @@ export declare const TextArea: React.ForwardRefExoticComponent<{
23
23
  adaptive?: boolean;
24
24
  autoResize?: boolean;
25
25
  placeholder?: string;
26
+ isWbTheme?: boolean;
26
27
  onClear?: () => void;
27
28
  onSearch?: (e: any) => void;
28
29
  onChange?: (value: string, event?: ChangeEvent<HTMLTextAreaElement>) => void;
@@ -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';