dt-shared-front 2.2.59-alpha.8 → 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 +5 -6
- package/dist/components/icon/icon.d.ts +1 -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 +1 -1
- package/dist/components/modal/modal.d.ts +2 -0
- package/dist/components/slider/slider.d.ts +1 -2
- package/dist/components/text/text.d.ts +8 -2
- package/dist/components/text-area/text-area.d.ts +4 -2
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/main.css +37 -36
- package/dist/main.css.map +1 -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;
|
@@ -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 {};
|
@@ -70,4 +70,4 @@ export declare const Input: React.ForwardRefExoticComponent<{
|
|
70
70
|
onChange?: (value: string, event: ChangeEvent<HTMLInputElement>) => void;
|
71
71
|
onSearch?: ((val: string) => void) | ((val: string) => Promise<void>);
|
72
72
|
valueTransformer?: (value: string) => string;
|
73
|
-
} & Omit<React.InputHTMLAttributes<HTMLInputElement>, "
|
73
|
+
} & Omit<React.InputHTMLAttributes<HTMLInputElement>, "onChange" | "variant" | "size"> & React.RefAttributes<HTMLInputElement>>;
|
@@ -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,7 +13,6 @@ interface ISliderProps {
|
|
13
13
|
delay?: number;
|
14
14
|
freeMode?: boolean;
|
15
15
|
showCounter?: boolean;
|
16
|
-
showPaginator?: boolean;
|
17
16
|
centeredSlides?: boolean;
|
18
17
|
className?: string;
|
19
18
|
classNamePrev?: string;
|
@@ -30,5 +29,5 @@ interface ISliderProps {
|
|
30
29
|
speed?: number;
|
31
30
|
effect?: 'slide' | 'fade' | 'cube' | 'coverflow' | 'flip';
|
32
31
|
}
|
33
|
-
export declare const Slider: ({ items, slidesPerView, renderItem, viewItem, loop, asyncReady, showNavigation, navPosition, spaceBetween, autoplay, delay, freeMode, showCounter,
|
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;
|
34
33
|
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;
|
@@ -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>>;
|
package/dist/index.d.ts
CHANGED
@@ -54,3 +54,4 @@ export type { IPopoverRef } from './components/popover/popover';
|
|
54
54
|
export { adapter, BaseService } from './service';
|
55
55
|
export type { IBaseServiceStreamOptions } from './service';
|
56
56
|
export { showToast } from './components/toast';
|
57
|
+
export { InfoBlock } from './components/info-block';
|