@hexure/ui 1.3.8 → 1.4.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/cjs/index.js +474 -95
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/components/DatePicker/DatePicker.d.ts +6 -15
- package/dist/cjs/types/components/Input/Input.d.ts +2 -2
- package/dist/cjs/types/components/Select/Select.d.ts +1 -1
- package/dist/cjs/types/index.d.ts +1 -0
- package/dist/esm/index.js +474 -96
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/components/DatePicker/DatePicker.d.ts +6 -15
- package/dist/esm/types/components/Input/Input.d.ts +2 -2
- package/dist/esm/types/components/Select/Select.d.ts +1 -1
- package/dist/esm/types/index.d.ts +1 -0
- package/dist/index.d.ts +20 -4
- package/package.json +1 -1
|
@@ -5,21 +5,12 @@ export interface DateProps extends AccessibleProps {
|
|
|
5
5
|
readOnly?: boolean;
|
|
6
6
|
/** It is used to show error messages when it's value is false. */
|
|
7
7
|
invalid?: boolean;
|
|
8
|
-
/**
|
|
9
|
-
|
|
10
|
-
/**
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
date?:
|
|
14
|
-
month: number;
|
|
15
|
-
day: number;
|
|
16
|
-
year: number;
|
|
17
|
-
};
|
|
18
|
-
/** It is used to read value for border rasius & flex grow */
|
|
19
|
-
style?: {
|
|
20
|
-
borderRadius?: string;
|
|
21
|
-
flexGrow?: number;
|
|
22
|
-
};
|
|
8
|
+
/** Pass in the date in ISO 8601 string format (YYYY-MM-DD) */
|
|
9
|
+
maxDate?: number;
|
|
10
|
+
/** Pass in the date in ISO 8601 string format (YYYY-MM-DD) */
|
|
11
|
+
minDate?: number;
|
|
12
|
+
/** Pass in the date in ISO 8601 string format (YYYY-MM-DD) */
|
|
13
|
+
date?: string;
|
|
23
14
|
/** It is used to get selected value */
|
|
24
15
|
onChange: (e: any) => void;
|
|
25
16
|
}
|
|
@@ -5,9 +5,9 @@ export interface InputProps extends AccessibleProps {
|
|
|
5
5
|
height?: string;
|
|
6
6
|
suffix?: string;
|
|
7
7
|
invalid?: boolean;
|
|
8
|
-
max?:
|
|
8
|
+
max?: string;
|
|
9
9
|
maxLength?: number;
|
|
10
|
-
min?:
|
|
10
|
+
min?: string;
|
|
11
11
|
onBlur?: (e?: any) => void;
|
|
12
12
|
onChange?: (e?: any) => void;
|
|
13
13
|
onKeyDown?: (e?: any) => void;
|
|
@@ -2,7 +2,7 @@ import { FC } from 'react';
|
|
|
2
2
|
import { AccessibleProps } from '../../utils/Accessibility';
|
|
3
3
|
export interface OptionProps {
|
|
4
4
|
/** It is used to give label to option. */
|
|
5
|
-
label
|
|
5
|
+
label?: string;
|
|
6
6
|
/** It is used to give value to option. */
|
|
7
7
|
value: string | number;
|
|
8
8
|
}
|
|
@@ -6,6 +6,7 @@ export { default as Button } from './components/Button';
|
|
|
6
6
|
export { default as Checkbox } from './components/Checkbox';
|
|
7
7
|
export { default as Checklist } from './components/Checklist';
|
|
8
8
|
export { default as Copy } from './components/Copy';
|
|
9
|
+
export { default as DatePicker } from './components/DatePicker';
|
|
9
10
|
export { default as Drawer } from './components/Drawer';
|
|
10
11
|
export { default as Field } from './components/Field';
|
|
11
12
|
export { default as FileUpload } from './components/FileUpload';
|
package/dist/index.d.ts
CHANGED
|
@@ -134,6 +134,22 @@ interface CopyProps extends AccessibleProps {
|
|
|
134
134
|
}
|
|
135
135
|
declare const Copy: FC<CopyProps>;
|
|
136
136
|
|
|
137
|
+
interface DateProps extends AccessibleProps {
|
|
138
|
+
/** If it's value is true then select is disabled. */
|
|
139
|
+
readOnly?: boolean;
|
|
140
|
+
/** It is used to show error messages when it's value is false. */
|
|
141
|
+
invalid?: boolean;
|
|
142
|
+
/** Pass in the date in ISO 8601 string format (YYYY-MM-DD) */
|
|
143
|
+
maxDate?: number;
|
|
144
|
+
/** Pass in the date in ISO 8601 string format (YYYY-MM-DD) */
|
|
145
|
+
minDate?: number;
|
|
146
|
+
/** Pass in the date in ISO 8601 string format (YYYY-MM-DD) */
|
|
147
|
+
date?: string;
|
|
148
|
+
/** It is used to get selected value */
|
|
149
|
+
onChange: (e: any) => void;
|
|
150
|
+
}
|
|
151
|
+
declare const DatePicker: FC<DateProps>;
|
|
152
|
+
|
|
137
153
|
interface ButtonProps$1 extends AccessibleProps {
|
|
138
154
|
disabled: boolean;
|
|
139
155
|
children: string;
|
|
@@ -221,9 +237,9 @@ interface InputProps extends AccessibleProps {
|
|
|
221
237
|
height?: string;
|
|
222
238
|
suffix?: string;
|
|
223
239
|
invalid?: boolean;
|
|
224
|
-
max?:
|
|
240
|
+
max?: string;
|
|
225
241
|
maxLength?: number;
|
|
226
|
-
min?:
|
|
242
|
+
min?: string;
|
|
227
243
|
onBlur?: (e?: any) => void;
|
|
228
244
|
onChange?: (e?: any) => void;
|
|
229
245
|
onKeyDown?: (e?: any) => void;
|
|
@@ -326,7 +342,7 @@ declare const RadioList: FC<RadioListProps>;
|
|
|
326
342
|
|
|
327
343
|
interface OptionProps {
|
|
328
344
|
/** It is used to give label to option. */
|
|
329
|
-
label
|
|
345
|
+
label?: string;
|
|
330
346
|
/** It is used to give value to option. */
|
|
331
347
|
value: string | number;
|
|
332
348
|
}
|
|
@@ -425,4 +441,4 @@ interface ZeroStateProps extends AccessibleProps {
|
|
|
425
441
|
}
|
|
426
442
|
declare const ZeroState: FC<ZeroStateProps>;
|
|
427
443
|
|
|
428
|
-
export { Accordion, ActionDialog, Alert, BulkActionBar, Button, Checkbox, Checklist, Copy, Drawer, Field, FileUpload, Heading, Input, Logo, Modal, MoreMenu, MultiSelect, Pagination, Radio, RadioList, Select, Table, Tabs, Tag, Toggle, ZeroState };
|
|
444
|
+
export { Accordion, ActionDialog, Alert, BulkActionBar, Button, Checkbox, Checklist, Copy, DatePicker, Drawer, Field, FileUpload, Heading, Input, Logo, Modal, MoreMenu, MultiSelect, Pagination, Radio, RadioList, Select, Table, Tabs, Tag, Toggle, ZeroState };
|