@hexure/ui 1.8.16 → 1.9.0
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/README.md +6 -1
- package/dist/cjs/index.js +191 -90
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/Theme.d.ts +6 -0
- package/dist/cjs/types/components/Alert/Alert.d.ts +1 -1
- package/dist/cjs/types/components/BulkActionBar/BulkActionBar.d.ts +1 -1
- package/dist/cjs/types/components/DatePicker/DatePicker.d.ts +2 -2
- package/dist/cjs/types/components/Drawer/Drawer.d.ts +1 -0
- package/dist/cjs/types/components/Input/Input.d.ts +4 -0
- package/dist/esm/index.js +191 -90
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/Theme.d.ts +6 -0
- package/dist/esm/types/components/Alert/Alert.d.ts +1 -1
- package/dist/esm/types/components/BulkActionBar/BulkActionBar.d.ts +1 -1
- package/dist/esm/types/components/DatePicker/DatePicker.d.ts +2 -2
- package/dist/esm/types/components/Drawer/Drawer.d.ts +1 -0
- package/dist/esm/types/components/Input/Input.d.ts +4 -0
- package/dist/index.d.ts +9 -4
- package/package.json +1 -1
|
@@ -7,7 +7,7 @@ export interface ActionProps extends AccessibleProps {
|
|
|
7
7
|
export interface AlertProps extends AccessibleProps {
|
|
8
8
|
type?: 'info' | 'error' | 'warning' | 'success';
|
|
9
9
|
/** It is used to add title to alert. */
|
|
10
|
-
title
|
|
10
|
+
title?: string;
|
|
11
11
|
/** It is used to add description to alert. */
|
|
12
12
|
description: string;
|
|
13
13
|
/** Display a link to display below the description */
|
|
@@ -3,7 +3,7 @@ import { AccessibleProps } from '../../utils/Accessibility';
|
|
|
3
3
|
interface ButtonProps {
|
|
4
4
|
children: string;
|
|
5
5
|
onClick: (e?: any) => void;
|
|
6
|
-
|
|
6
|
+
format?: 'primary' | 'secondary';
|
|
7
7
|
icon?: string;
|
|
8
8
|
}
|
|
9
9
|
export interface BulkActionBarProps extends AccessibleProps {
|
|
@@ -9,9 +9,9 @@ export interface DateProps extends AccessibleProps {
|
|
|
9
9
|
/** It is used to show error messages when it's value is false. */
|
|
10
10
|
invalid?: boolean;
|
|
11
11
|
/** Pass in the date in ISO 8601 string format (YYYY-MM-DD) */
|
|
12
|
-
maxDate?:
|
|
12
|
+
maxDate?: string;
|
|
13
13
|
/** Pass in the date in ISO 8601 string format (YYYY-MM-DD) */
|
|
14
|
-
minDate?:
|
|
14
|
+
minDate?: string;
|
|
15
15
|
/** Pass in the date in ISO 8601 string format (YYYY-MM-DD) */
|
|
16
16
|
date?: string;
|
|
17
17
|
/** It is used to get selected value */
|
|
@@ -24,6 +24,8 @@ export interface InputProps extends AccessibleProps {
|
|
|
24
24
|
onChange?: (e?: any) => void;
|
|
25
25
|
/** A method to be called when the use presses a key */
|
|
26
26
|
onKeyDown?: (e?: any) => void;
|
|
27
|
+
/** A method to be called when a suggested value is selected */
|
|
28
|
+
onSuggestedSelect?: (e?: any) => void;
|
|
27
29
|
/** Display placeholder text in the input */
|
|
28
30
|
placeholder?: string;
|
|
29
31
|
/** Display the input as read only, preventing the user from inteacting with it */
|
|
@@ -36,6 +38,8 @@ export interface InputProps extends AccessibleProps {
|
|
|
36
38
|
type?: 'date' | 'datetime-local' | 'email' | 'number' | 'password' | 'tel' | 'text' | 'url' | 'textarea' | 'search';
|
|
37
39
|
/** Set the value of the input. This should be used by the parent component to control the input's value. */
|
|
38
40
|
value?: string;
|
|
41
|
+
/** Display a list of suggested values to pick from. This should be used with the onChange or onKeyDown event handlers. Doesn't work with textarea inputs. */
|
|
42
|
+
suggestedValues?: string[];
|
|
39
43
|
}
|
|
40
44
|
declare const Input: FC<InputProps>;
|
|
41
45
|
export default Input;
|
package/dist/index.d.ts
CHANGED
|
@@ -55,7 +55,7 @@ interface ActionProps$1 extends AccessibleProps {
|
|
|
55
55
|
interface AlertProps extends AccessibleProps {
|
|
56
56
|
type?: 'info' | 'error' | 'warning' | 'success';
|
|
57
57
|
/** It is used to add title to alert. */
|
|
58
|
-
title
|
|
58
|
+
title?: string;
|
|
59
59
|
/** It is used to add description to alert. */
|
|
60
60
|
description: string;
|
|
61
61
|
/** Display a link to display below the description */
|
|
@@ -68,7 +68,7 @@ declare const Alert: FC<AlertProps>;
|
|
|
68
68
|
interface ButtonProps$3 {
|
|
69
69
|
children: string;
|
|
70
70
|
onClick: (e?: any) => void;
|
|
71
|
-
|
|
71
|
+
format?: 'primary' | 'secondary';
|
|
72
72
|
icon?: string;
|
|
73
73
|
}
|
|
74
74
|
interface BulkActionBarProps extends AccessibleProps {
|
|
@@ -175,9 +175,9 @@ interface DateProps extends AccessibleProps {
|
|
|
175
175
|
/** It is used to show error messages when it's value is false. */
|
|
176
176
|
invalid?: boolean;
|
|
177
177
|
/** Pass in the date in ISO 8601 string format (YYYY-MM-DD) */
|
|
178
|
-
maxDate?:
|
|
178
|
+
maxDate?: string;
|
|
179
179
|
/** Pass in the date in ISO 8601 string format (YYYY-MM-DD) */
|
|
180
|
-
minDate?:
|
|
180
|
+
minDate?: string;
|
|
181
181
|
/** Pass in the date in ISO 8601 string format (YYYY-MM-DD) */
|
|
182
182
|
date?: string;
|
|
183
183
|
/** It is used to get selected value */
|
|
@@ -193,6 +193,7 @@ interface ButtonProps$1 extends AccessibleProps {
|
|
|
193
193
|
icon?: string;
|
|
194
194
|
onClick: (e?: any) => void;
|
|
195
195
|
tabIndex?: number;
|
|
196
|
+
loading?: boolean;
|
|
196
197
|
}
|
|
197
198
|
interface DrawerProps extends AccessibleProps {
|
|
198
199
|
primaryButton?: ButtonProps$1;
|
|
@@ -318,6 +319,8 @@ interface InputProps extends AccessibleProps {
|
|
|
318
319
|
onChange?: (e?: any) => void;
|
|
319
320
|
/** A method to be called when the use presses a key */
|
|
320
321
|
onKeyDown?: (e?: any) => void;
|
|
322
|
+
/** A method to be called when a suggested value is selected */
|
|
323
|
+
onSuggestedSelect?: (e?: any) => void;
|
|
321
324
|
/** Display placeholder text in the input */
|
|
322
325
|
placeholder?: string;
|
|
323
326
|
/** Display the input as read only, preventing the user from inteacting with it */
|
|
@@ -330,6 +333,8 @@ interface InputProps extends AccessibleProps {
|
|
|
330
333
|
type?: 'date' | 'datetime-local' | 'email' | 'number' | 'password' | 'tel' | 'text' | 'url' | 'textarea' | 'search';
|
|
331
334
|
/** Set the value of the input. This should be used by the parent component to control the input's value. */
|
|
332
335
|
value?: string;
|
|
336
|
+
/** Display a list of suggested values to pick from. This should be used with the onChange or onKeyDown event handlers. Doesn't work with textarea inputs. */
|
|
337
|
+
suggestedValues?: string[];
|
|
333
338
|
}
|
|
334
339
|
declare const Input: FC<InputProps>;
|
|
335
340
|
|