@vespiario-thailand/design-system 0.0.15 → 1.3.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/components/generals/Button/Button.stories.d.ts +101 -5
- package/dist/components/generals/Button/index.d.ts +23 -3
- package/dist/components/generals/DatePicker/DatePicker.stories.d.ts +36 -50
- package/dist/components/generals/DatePicker/DatePickerCaption.d.ts +11 -0
- package/dist/components/generals/DatePicker/DatePickerHeadRow.d.ts +3 -0
- package/dist/components/generals/DatePicker/DatePickerInputButton.d.ts +17 -0
- package/dist/components/generals/DatePicker/DatePickerMonthSelector.d.ts +15 -0
- package/dist/components/generals/DatePicker/DatePickerRange.d.ts +16 -0
- package/dist/components/generals/DatePicker/DatePickerSingle.d.ts +15 -0
- package/dist/components/generals/DatePicker/DatePickerYearDDL.d.ts +8 -8
- package/dist/components/generals/DatePicker/index.d.ts +16 -25
- package/dist/custom-theme.cjs +2 -1
- package/dist/functions/index.d.ts +1 -1
- package/dist/utils/index.d.ts +2 -0
- package/dist/vespa-design-system.cjs +71 -71
- package/dist/vespa-design-system.js +15897 -13553
- package/dist/vespa-design-system.umd.cjs +71 -71
- package/package.json +21 -16
- package/dist/components/generals/DatePicker/DatePickerCalendar.d.ts +0 -26
- package/dist/components/generals/DatePicker/DatePickerInput.d.ts +0 -28
- package/dist/components/generals/DatePicker/DatePickerMonthDDL.d.ts +0 -11
|
@@ -24,6 +24,24 @@ declare const _default: {
|
|
|
24
24
|
};
|
|
25
25
|
};
|
|
26
26
|
};
|
|
27
|
+
color: {
|
|
28
|
+
control: string;
|
|
29
|
+
description: string;
|
|
30
|
+
options: string[];
|
|
31
|
+
};
|
|
32
|
+
shade: {
|
|
33
|
+
control: string;
|
|
34
|
+
options: number[];
|
|
35
|
+
};
|
|
36
|
+
contentColor: {
|
|
37
|
+
control: string;
|
|
38
|
+
description: string;
|
|
39
|
+
options: string[];
|
|
40
|
+
};
|
|
41
|
+
contentShade: {
|
|
42
|
+
control: string;
|
|
43
|
+
options: number[];
|
|
44
|
+
};
|
|
27
45
|
sizes: {
|
|
28
46
|
control: {
|
|
29
47
|
type: string;
|
|
@@ -67,18 +85,83 @@ declare const _default: {
|
|
|
67
85
|
};
|
|
68
86
|
};
|
|
69
87
|
export default _default;
|
|
70
|
-
/**
|
|
71
|
-
|
|
88
|
+
/**
|
|
89
|
+
* <h4>Simple Primary button</h4>
|
|
90
|
+
* Can custom background color with prop `color` and `shade`<br/>
|
|
91
|
+
* Can custom text and icon color with `contentColor` and `contentShade`
|
|
92
|
+
*/
|
|
93
|
+
export declare const Primary: {
|
|
72
94
|
render: (args: ButtonProps & import("react").RefAttributes<HTMLButtonElement>) => import("react/jsx-runtime").JSX.Element;
|
|
73
95
|
args: {
|
|
96
|
+
variant: "primary";
|
|
74
97
|
children: string;
|
|
75
98
|
sizes: "medium";
|
|
76
99
|
onlyIcon: false;
|
|
77
|
-
|
|
100
|
+
color: undefined;
|
|
101
|
+
shade: undefined;
|
|
102
|
+
contentColor: undefined;
|
|
103
|
+
contentShade: undefined;
|
|
104
|
+
isLoading: false;
|
|
105
|
+
disabled: false;
|
|
106
|
+
};
|
|
107
|
+
parameters: {
|
|
108
|
+
controls: {
|
|
109
|
+
exclude: string[];
|
|
110
|
+
};
|
|
111
|
+
};
|
|
112
|
+
};
|
|
113
|
+
/**
|
|
114
|
+
* <h4>Simple Secondary button</h4>
|
|
115
|
+
* Can custom text and icon color with `color` and `shade`
|
|
116
|
+
*/
|
|
117
|
+
export declare const Secondary: {
|
|
118
|
+
render: (args: ButtonProps & import("react").RefAttributes<HTMLButtonElement>) => import("react/jsx-runtime").JSX.Element;
|
|
119
|
+
args: {
|
|
120
|
+
variant: "secondary";
|
|
121
|
+
children: string;
|
|
122
|
+
sizes: "medium";
|
|
123
|
+
onlyIcon: false;
|
|
124
|
+
color: undefined;
|
|
125
|
+
shade: undefined;
|
|
126
|
+
contentColor: undefined;
|
|
127
|
+
contentShade: undefined;
|
|
78
128
|
isLoading: false;
|
|
129
|
+
disabled: false;
|
|
130
|
+
};
|
|
131
|
+
parameters: {
|
|
132
|
+
controls: {
|
|
133
|
+
exclude: string[];
|
|
134
|
+
};
|
|
135
|
+
};
|
|
136
|
+
};
|
|
137
|
+
/**
|
|
138
|
+
* <h4>Simple Outline button</h4>
|
|
139
|
+
* Can not custom background, text and icon color
|
|
140
|
+
*/
|
|
141
|
+
export declare const Outline: {
|
|
142
|
+
render: (args: ButtonProps & import("react").RefAttributes<HTMLButtonElement>) => import("react/jsx-runtime").JSX.Element;
|
|
143
|
+
args: {
|
|
144
|
+
variant: "outline";
|
|
145
|
+
children: string;
|
|
146
|
+
sizes: "medium";
|
|
147
|
+
onlyIcon: false;
|
|
148
|
+
color: undefined;
|
|
149
|
+
shade: undefined;
|
|
150
|
+
contentColor: undefined;
|
|
151
|
+
contentShade: undefined;
|
|
152
|
+
isLoading: false;
|
|
153
|
+
disabled: false;
|
|
154
|
+
};
|
|
155
|
+
parameters: {
|
|
156
|
+
controls: {
|
|
157
|
+
exclude: string[];
|
|
158
|
+
};
|
|
79
159
|
};
|
|
80
160
|
};
|
|
81
|
-
/**
|
|
161
|
+
/**
|
|
162
|
+
* <h4>Simple button with icon template</h4>
|
|
163
|
+
* Can custom background text and icon up on button variants
|
|
164
|
+
*/
|
|
82
165
|
export declare const WithIcon: {
|
|
83
166
|
render: (args: ButtonProps & import("react").RefAttributes<HTMLButtonElement>) => import("react/jsx-runtime").JSX.Element;
|
|
84
167
|
args: {
|
|
@@ -87,10 +170,18 @@ export declare const WithIcon: {
|
|
|
87
170
|
sizes: "medium";
|
|
88
171
|
onlyIcon: false;
|
|
89
172
|
variant: "primary";
|
|
173
|
+
color: undefined;
|
|
174
|
+
shade: undefined;
|
|
175
|
+
contentColor: undefined;
|
|
176
|
+
contentShade: undefined;
|
|
90
177
|
isLoading: false;
|
|
178
|
+
disabled: false;
|
|
91
179
|
};
|
|
92
180
|
};
|
|
93
|
-
/**
|
|
181
|
+
/**
|
|
182
|
+
* <h4>Simple button only icon template</h4>
|
|
183
|
+
* Can custom background text and icon up on button variants
|
|
184
|
+
*/
|
|
94
185
|
export declare const OnlyIcon: {
|
|
95
186
|
render: (args: ButtonProps & import("react").RefAttributes<HTMLButtonElement>) => import("react/jsx-runtime").JSX.Element;
|
|
96
187
|
args: {
|
|
@@ -100,6 +191,11 @@ export declare const OnlyIcon: {
|
|
|
100
191
|
onlyIcon: true;
|
|
101
192
|
sizes: "medium";
|
|
102
193
|
variant: "primary";
|
|
194
|
+
color: undefined;
|
|
195
|
+
shade: undefined;
|
|
196
|
+
contentColor: undefined;
|
|
197
|
+
contentShade: undefined;
|
|
103
198
|
isLoading: false;
|
|
199
|
+
disabled: false;
|
|
104
200
|
};
|
|
105
201
|
};
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
/** libs */
|
|
2
2
|
import { ButtonHTMLAttributes } from 'react';
|
|
3
3
|
/** types */
|
|
4
|
-
import { SizeType,
|
|
4
|
+
import { SizeType, IconListType, IconSizeType } from '../../../types';
|
|
5
|
+
type ButtonBackgroundColorType = 'blue' | 'green' | 'light-green' | 'yellow' | 'dark';
|
|
6
|
+
type ButtonBackgroundShadeType = 100 | 200 | 300 | 400 | 500 | 600 | 700;
|
|
5
7
|
type CommonButtonType = ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
6
8
|
sizes?: SizeType;
|
|
7
|
-
variant?: ButtonVariantType;
|
|
8
9
|
iconLeft?: IconListType;
|
|
9
10
|
iconLeftSize?: IconSizeType;
|
|
10
11
|
iconRightSize?: IconSizeType;
|
|
@@ -17,6 +18,25 @@ type ConditionButtonIconType = {
|
|
|
17
18
|
onlyIcon?: boolean;
|
|
18
19
|
iconRight?: never;
|
|
19
20
|
};
|
|
20
|
-
|
|
21
|
+
type ConditionButtonColorsType = {
|
|
22
|
+
variant?: 'primary';
|
|
23
|
+
color?: ButtonBackgroundColorType;
|
|
24
|
+
shade?: ButtonBackgroundShadeType;
|
|
25
|
+
contentColor?: ButtonBackgroundColorType;
|
|
26
|
+
contentShade?: ButtonBackgroundShadeType;
|
|
27
|
+
} | {
|
|
28
|
+
variant?: 'secondary';
|
|
29
|
+
color?: ButtonBackgroundColorType;
|
|
30
|
+
shade?: ButtonBackgroundShadeType;
|
|
31
|
+
contentColor?: never;
|
|
32
|
+
contentShade?: never;
|
|
33
|
+
} | {
|
|
34
|
+
variant?: 'outline';
|
|
35
|
+
color?: never;
|
|
36
|
+
shade?: never;
|
|
37
|
+
contentColor?: never;
|
|
38
|
+
contentShade?: never;
|
|
39
|
+
};
|
|
40
|
+
export type ButtonProps = CommonButtonType & ConditionButtonIconType & ConditionButtonColorsType;
|
|
21
41
|
export declare const Button: import("react").ForwardRefExoticComponent<ButtonProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
22
42
|
export {};
|
|
@@ -1,22 +1,27 @@
|
|
|
1
1
|
import { DateRange } from 'react-day-picker';
|
|
2
|
+
/** component */
|
|
2
3
|
declare const _default: {
|
|
3
4
|
title: string;
|
|
4
5
|
component: import("react").ForwardRefExoticComponent<{
|
|
5
|
-
hideClearIcon?: boolean | undefined;
|
|
6
|
-
} & {
|
|
7
6
|
mode?: "range" | "single" | undefined;
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
minDate?: Date | undefined;
|
|
11
|
-
maxDate?: Date | undefined;
|
|
7
|
+
minYear?: number | undefined;
|
|
8
|
+
maxYear?: number | undefined;
|
|
12
9
|
selectedSingleDate?: Date | undefined;
|
|
13
|
-
|
|
10
|
+
onSelectSingleDate?: ((selectedSingleDate?: Date | undefined) => void) | undefined;
|
|
14
11
|
selectedDateRange?: DateRange | undefined;
|
|
15
|
-
|
|
12
|
+
onSelectDateRange?: ((selectedDateRange?: DateRange | undefined) => void) | undefined;
|
|
16
13
|
} & import("react").HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>;
|
|
14
|
+
parameters: {
|
|
15
|
+
docs: {
|
|
16
|
+
description: {
|
|
17
|
+
component: string;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
};
|
|
17
21
|
argTypes: {
|
|
18
22
|
mode: {
|
|
19
23
|
control: string;
|
|
24
|
+
description: string;
|
|
20
25
|
options: string[];
|
|
21
26
|
table: {
|
|
22
27
|
defaultValue: {
|
|
@@ -24,81 +29,62 @@ declare const _default: {
|
|
|
24
29
|
};
|
|
25
30
|
};
|
|
26
31
|
};
|
|
27
|
-
|
|
28
|
-
control: boolean;
|
|
29
|
-
description: string;
|
|
30
|
-
};
|
|
31
|
-
maxDate: {
|
|
32
|
-
control: boolean;
|
|
33
|
-
description: string;
|
|
34
|
-
};
|
|
35
|
-
previousYearRange: {
|
|
32
|
+
minYear: {
|
|
36
33
|
control: string;
|
|
34
|
+
description: string;
|
|
37
35
|
table: {
|
|
38
36
|
defaultValue: {
|
|
39
|
-
summary:
|
|
37
|
+
summary: undefined;
|
|
40
38
|
};
|
|
41
39
|
};
|
|
42
40
|
};
|
|
43
|
-
|
|
41
|
+
maxYear: {
|
|
44
42
|
control: string;
|
|
43
|
+
description: string;
|
|
45
44
|
table: {
|
|
46
45
|
defaultValue: {
|
|
47
|
-
summary:
|
|
46
|
+
summary: undefined;
|
|
48
47
|
};
|
|
49
48
|
};
|
|
50
49
|
};
|
|
51
50
|
selectedSingleDate: {
|
|
52
51
|
control: boolean;
|
|
53
52
|
description: string;
|
|
53
|
+
table: {
|
|
54
|
+
defaultValue: {
|
|
55
|
+
summary: undefined;
|
|
56
|
+
};
|
|
57
|
+
};
|
|
54
58
|
};
|
|
55
|
-
|
|
56
|
-
control:
|
|
59
|
+
onSelectSingleDate: {
|
|
60
|
+
control: string;
|
|
57
61
|
description: string;
|
|
58
62
|
};
|
|
59
63
|
selectedDateRange: {
|
|
60
64
|
control: boolean;
|
|
61
65
|
description: string;
|
|
62
|
-
};
|
|
63
|
-
onSelectedDateRange: {
|
|
64
|
-
control: boolean;
|
|
65
|
-
description: string;
|
|
66
|
-
};
|
|
67
|
-
hideClearIcon: {
|
|
68
|
-
control: string;
|
|
69
|
-
description: string;
|
|
70
66
|
table: {
|
|
71
67
|
defaultValue: {
|
|
72
|
-
summary:
|
|
68
|
+
summary: undefined;
|
|
73
69
|
};
|
|
74
70
|
};
|
|
75
71
|
};
|
|
72
|
+
onSelectDateRange: {
|
|
73
|
+
control: string;
|
|
74
|
+
description: string;
|
|
75
|
+
};
|
|
76
76
|
};
|
|
77
77
|
};
|
|
78
78
|
export default _default;
|
|
79
79
|
export declare const Default: {
|
|
80
80
|
render: (args: {
|
|
81
|
-
hideClearIcon?: boolean | undefined;
|
|
82
|
-
} & {
|
|
83
81
|
mode?: "range" | "single" | undefined;
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
minDate?: Date | undefined;
|
|
87
|
-
maxDate?: Date | undefined;
|
|
82
|
+
minYear?: number | undefined;
|
|
83
|
+
maxYear?: number | undefined;
|
|
88
84
|
selectedSingleDate?: Date | undefined;
|
|
89
|
-
|
|
85
|
+
onSelectSingleDate?: ((selectedSingleDate?: Date | undefined) => void) | undefined;
|
|
90
86
|
selectedDateRange?: DateRange | undefined;
|
|
91
|
-
|
|
87
|
+
onSelectDateRange?: ((selectedDateRange?: DateRange | undefined) => void) | undefined;
|
|
92
88
|
} & import("react").HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>) => import("react/jsx-runtime").JSX.Element;
|
|
93
|
-
args: {
|
|
94
|
-
previousYearRange: number;
|
|
95
|
-
nextYearRange: number;
|
|
96
|
-
};
|
|
97
|
-
};
|
|
98
|
-
export declare const Range: {
|
|
99
|
-
render: () => import("react/jsx-runtime").JSX.Element;
|
|
100
|
-
args: {
|
|
101
|
-
previousYearRange: number;
|
|
102
|
-
nextYearRange: number;
|
|
103
|
-
};
|
|
89
|
+
args: {};
|
|
104
90
|
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { CaptionProps } from 'react-day-picker';
|
|
3
|
+
/** types */
|
|
4
|
+
export type DatePickerCaptionProps = {
|
|
5
|
+
minYear?: number;
|
|
6
|
+
maxYear?: number;
|
|
7
|
+
} & CaptionProps;
|
|
8
|
+
export declare const DatePickerCaption: import("react").ForwardRefExoticComponent<{
|
|
9
|
+
minYear?: number | undefined;
|
|
10
|
+
maxYear?: number | undefined;
|
|
11
|
+
} & CaptionProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/** libs */
|
|
2
|
+
import { HTMLAttributes } from 'react';
|
|
3
|
+
/** types */
|
|
4
|
+
export type DatePickerInputButtonProps = {
|
|
5
|
+
placeholder?: string;
|
|
6
|
+
value?: Date;
|
|
7
|
+
hideClearIcon?: boolean;
|
|
8
|
+
active?: boolean;
|
|
9
|
+
onClear?: () => void;
|
|
10
|
+
} & HTMLAttributes<HTMLButtonElement>;
|
|
11
|
+
export declare const DatePickerInputButton: import("react").ForwardRefExoticComponent<{
|
|
12
|
+
placeholder?: string | undefined;
|
|
13
|
+
value?: Date | undefined;
|
|
14
|
+
hideClearIcon?: boolean | undefined;
|
|
15
|
+
active?: boolean | undefined;
|
|
16
|
+
onClear?: (() => void) | undefined;
|
|
17
|
+
} & HTMLAttributes<HTMLButtonElement> & import("react").RefAttributes<HTMLButtonElement>>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/** libs */
|
|
2
|
+
import { HTMLAttributes } from 'react';
|
|
3
|
+
/** types */
|
|
4
|
+
export type DatePickerMonthSelectorProps = {
|
|
5
|
+
selectedMonth?: number;
|
|
6
|
+
onSelectMonth?: (month: number) => void;
|
|
7
|
+
onPreviousMonth?: () => void;
|
|
8
|
+
onNextMonth?: () => void;
|
|
9
|
+
} & HTMLAttributes<HTMLDivElement>;
|
|
10
|
+
export declare const DatePickerMonthSelector: import("react").ForwardRefExoticComponent<{
|
|
11
|
+
selectedMonth?: number | undefined;
|
|
12
|
+
onSelectMonth?: ((month: number) => void) | undefined;
|
|
13
|
+
onPreviousMonth?: (() => void) | undefined;
|
|
14
|
+
onNextMonth?: (() => void) | undefined;
|
|
15
|
+
} & HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/** libs */
|
|
2
|
+
import { HTMLAttributes } from 'react';
|
|
3
|
+
import { DateRange } from 'react-day-picker';
|
|
4
|
+
/** types */
|
|
5
|
+
export type DatePickerRangeProps = {
|
|
6
|
+
minYear?: number;
|
|
7
|
+
maxYear?: number;
|
|
8
|
+
selectedDateRange?: DateRange;
|
|
9
|
+
onSelectDateRange?: (selectedDateRange?: DateRange) => void;
|
|
10
|
+
} & HTMLAttributes<HTMLDivElement>;
|
|
11
|
+
export declare const DatePickerRange: import("react").ForwardRefExoticComponent<{
|
|
12
|
+
minYear?: number | undefined;
|
|
13
|
+
maxYear?: number | undefined;
|
|
14
|
+
selectedDateRange?: DateRange | undefined;
|
|
15
|
+
onSelectDateRange?: ((selectedDateRange?: DateRange) => void) | undefined;
|
|
16
|
+
} & HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/** libs */
|
|
2
|
+
import { HTMLAttributes } from 'react';
|
|
3
|
+
/** types */
|
|
4
|
+
export type DatePickerSingleProps = {
|
|
5
|
+
minYear?: number;
|
|
6
|
+
maxYear?: number;
|
|
7
|
+
selectedDate?: Date;
|
|
8
|
+
onSelectDate?: (selectedDate?: Date) => void;
|
|
9
|
+
} & HTMLAttributes<HTMLDivElement>;
|
|
10
|
+
export declare const DatePickerSingle: import("react").ForwardRefExoticComponent<{
|
|
11
|
+
minYear?: number | undefined;
|
|
12
|
+
maxYear?: number | undefined;
|
|
13
|
+
selectedDate?: Date | undefined;
|
|
14
|
+
onSelectDate?: ((selectedDate?: Date) => void) | undefined;
|
|
15
|
+
} & HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
import { HTMLAttributes } from 'react';
|
|
3
3
|
/** types */
|
|
4
4
|
export type DatePickerYearDDLProps = {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
5
|
+
selectedYear?: number;
|
|
6
|
+
minYear?: number;
|
|
7
|
+
maxYear?: number;
|
|
8
|
+
onSelectYear?: (year: number) => void;
|
|
9
9
|
} & HTMLAttributes<HTMLDivElement>;
|
|
10
10
|
export declare const DatePickerYearDDL: import("react").ForwardRefExoticComponent<{
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
11
|
+
selectedYear?: number | undefined;
|
|
12
|
+
minYear?: number | undefined;
|
|
13
|
+
maxYear?: number | undefined;
|
|
14
|
+
onSelectYear?: ((year: number) => void) | undefined;
|
|
15
15
|
} & HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -1,31 +1,22 @@
|
|
|
1
1
|
/** libs */
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { DatePickerCalendarProps } from './DatePickerCalendar';
|
|
2
|
+
import { HTMLAttributes } from 'react';
|
|
3
|
+
import { DateRange } from 'react-day-picker';
|
|
5
4
|
/** types */
|
|
6
|
-
export type
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
setEndIsActive?: Dispatch<boolean>;
|
|
16
|
-
context?: FloatingContext;
|
|
17
|
-
};
|
|
18
|
-
export declare const DatePickerCtx: import("react").Context<DatePickerCtxType>;
|
|
5
|
+
export type DatePickerProps = {
|
|
6
|
+
mode?: 'single' | 'range';
|
|
7
|
+
minYear?: number;
|
|
8
|
+
maxYear?: number;
|
|
9
|
+
selectedSingleDate?: Date;
|
|
10
|
+
onSelectSingleDate?: (selectedSingleDate?: Date) => void;
|
|
11
|
+
selectedDateRange?: DateRange;
|
|
12
|
+
onSelectDateRange?: (selectedDateRange?: DateRange) => void;
|
|
13
|
+
} & HTMLAttributes<HTMLDivElement>;
|
|
19
14
|
export declare const DatePicker: import("react").ForwardRefExoticComponent<{
|
|
20
|
-
hideClearIcon?: boolean | undefined;
|
|
21
|
-
} & {
|
|
22
15
|
mode?: "range" | "single" | undefined;
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
minDate?: Date | undefined;
|
|
26
|
-
maxDate?: Date | undefined;
|
|
16
|
+
minYear?: number | undefined;
|
|
17
|
+
maxYear?: number | undefined;
|
|
27
18
|
selectedSingleDate?: Date | undefined;
|
|
28
|
-
|
|
29
|
-
selectedDateRange?:
|
|
30
|
-
|
|
19
|
+
onSelectSingleDate?: ((selectedSingleDate?: Date) => void) | undefined;
|
|
20
|
+
selectedDateRange?: DateRange | undefined;
|
|
21
|
+
onSelectDateRange?: ((selectedDateRange?: DateRange) => void) | undefined;
|
|
31
22
|
} & HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>;
|
package/dist/custom-theme.cjs
CHANGED
|
@@ -467,7 +467,8 @@ module.exports = {
|
|
|
467
467
|
safelist: [
|
|
468
468
|
{
|
|
469
469
|
pattern:
|
|
470
|
-
/bg-(blue|green|light-green|yellow|dark|light|shade-dark|shade-light)-(100|200|300|400|500|600|700|800|900)/,
|
|
470
|
+
/(bg|text)-(blue|green|light-green|yellow|dark|light|shade-dark|shade-light)-(100|200|300|400|500|600|700|800|900)/,
|
|
471
|
+
variants: ['hover', 'active', '[&:not(:disabled)]:hover', '[&:not(:disabled)]:active', 'disabled'],
|
|
471
472
|
},
|
|
472
473
|
],
|
|
473
474
|
}
|
|
@@ -2,5 +2,5 @@ import { ColorNameType, ColorShadeType } from '../types';
|
|
|
2
2
|
declare const isOnlyNumber: (value: string) => boolean;
|
|
3
3
|
declare const setDelay: (ms: number) => Promise<unknown>;
|
|
4
4
|
declare const numberWithCommas: (value: number | string) => string;
|
|
5
|
-
declare const dynamicBackGroundColors: (colorNames:
|
|
5
|
+
declare const dynamicBackGroundColors: <T extends ColorNameType = ColorNameType, U extends ColorShadeType = ColorShadeType>(colorNames: T, colorShades: U) => string;
|
|
6
6
|
export { isOnlyNumber, setDelay, numberWithCommas, dynamicBackGroundColors };
|