dt-shared-front 2.2.60-alpha.1 → 2.2.61
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/components/calendar/calendar.d.ts +22 -0
- package/dist/components/calendar/index.d.ts +1 -0
- package/dist/components/input/input.d.ts +1 -1
- package/dist/components/slider-easy/index.d.ts +1 -0
- package/dist/components/slider-easy/slider-easy.d.ts +11 -0
- package/dist/components/text/text.d.ts +3 -1
- package/dist/components/text-area/text-area.d.ts +1 -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 +39 -37
- package/dist/main.css.map +1 -1
- package/package.json +1 -1
@@ -0,0 +1,22 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
interface ICalendarProps {
|
3
|
+
value?: [Date, Date];
|
4
|
+
onChange: (val: [Date, Date]) => void;
|
5
|
+
isSingleDay?: boolean;
|
6
|
+
disableAfter?: number;
|
7
|
+
disabledDate?: (date: Date) => boolean;
|
8
|
+
rails?: boolean;
|
9
|
+
isHotel?: boolean;
|
10
|
+
}
|
11
|
+
export declare const Calendar: (props: ICalendarProps) => React.JSX.Element;
|
12
|
+
interface IMonthProps {
|
13
|
+
value: [Date, Date];
|
14
|
+
month: Date;
|
15
|
+
onChange: (val: Date) => void;
|
16
|
+
disableAfter?: number;
|
17
|
+
disabledDate?: (date: Date) => boolean;
|
18
|
+
rails?: boolean;
|
19
|
+
isHotel?: boolean;
|
20
|
+
}
|
21
|
+
export declare const Month: (props: IMonthProps) => React.JSX.Element;
|
22
|
+
export {};
|
@@ -0,0 +1 @@
|
|
1
|
+
export { Calendar } from './calendar';
|
@@ -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>, "variant" | "size" | "onChange"> & React.RefAttributes<HTMLInputElement>>;
|
@@ -0,0 +1 @@
|
|
1
|
+
export { SliderEasy } from './slider-easy';
|
@@ -0,0 +1,11 @@
|
|
1
|
+
import React, { ReactNode } from 'react';
|
2
|
+
export declare const scrollIntoViewHorizontally: (container: any, element: any) => void;
|
3
|
+
interface ISliderEasyProps {
|
4
|
+
images?: string[];
|
5
|
+
items?: any[];
|
6
|
+
onRenderItem?: (item: any, index: number, list: any[]) => ReactNode;
|
7
|
+
classNameArrowPrev: string;
|
8
|
+
classNameArrowNext: string;
|
9
|
+
}
|
10
|
+
export declare const SliderEasy: (props: ISliderEasyProps) => React.JSX.Element;
|
11
|
+
export {};
|
@@ -27,7 +27,9 @@ export declare enum ETextVariant {
|
|
27
27
|
success = "success",
|
28
28
|
warning = "warning",
|
29
29
|
inverse = "inverse",
|
30
|
-
secondary = "secondary"
|
30
|
+
secondary = "secondary",
|
31
|
+
primary = "primary",
|
32
|
+
tertiary = "tertiary"
|
31
33
|
}
|
32
34
|
interface ITextProps {
|
33
35
|
size?: keyof typeof ETextSize;
|
@@ -28,4 +28,4 @@ export declare const TextArea: React.ForwardRefExoticComponent<{
|
|
28
28
|
onClear?: () => void;
|
29
29
|
onSearch?: (e: any) => void;
|
30
30
|
onChange?: (value: string, event?: ChangeEvent<HTMLTextAreaElement>) => void;
|
31
|
-
} & Omit<React.TextareaHTMLAttributes<HTMLTextAreaElement>, "
|
31
|
+
} & Omit<React.TextareaHTMLAttributes<HTMLTextAreaElement>, "variant" | "size" | "onChange"> & React.RefAttributes<HTMLTextAreaElement>>;
|
package/dist/index.d.ts
CHANGED
@@ -55,3 +55,5 @@ export { adapter, BaseService } from './service';
|
|
55
55
|
export type { IBaseServiceStreamOptions } from './service';
|
56
56
|
export { showToast } from './components/toast';
|
57
57
|
export { InfoBlock } from './components/info-block';
|
58
|
+
export { Calendar } from './components/calendar';
|
59
|
+
export { SliderEasy } from './components/slider-easy';
|