@hexure/ui 1.6.7 → 1.6.9
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 +48 -24
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/components/DatePicker/DatePicker.d.ts +5 -0
- package/dist/cjs/types/components/Input/Input.d.ts +4 -0
- package/dist/cjs/types/components/Modal/Modal.d.ts +8 -1
- package/dist/cjs/types/components/MultiSelect/MultiSelect.d.ts +4 -0
- package/dist/cjs/types/components/Select/Select.d.ts +2 -4
- package/dist/esm/index.js +48 -24
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/components/DatePicker/DatePicker.d.ts +5 -0
- package/dist/esm/types/components/Input/Input.d.ts +4 -0
- package/dist/esm/types/components/Modal/Modal.d.ts +8 -1
- package/dist/esm/types/components/MultiSelect/MultiSelect.d.ts +4 -0
- package/dist/esm/types/components/Select/Select.d.ts +2 -4
- package/dist/index.d.ts +27 -5
- package/package.json +1 -1
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
2
|
import { AccessibleProps } from '../../utils/Accessibility';
|
|
3
|
+
export interface styleProps {
|
|
4
|
+
width?: number | string;
|
|
5
|
+
}
|
|
3
6
|
export interface DateProps extends AccessibleProps {
|
|
4
7
|
/** If it's value is true then select is disabled. */
|
|
5
8
|
readOnly?: boolean;
|
|
@@ -13,6 +16,8 @@ export interface DateProps extends AccessibleProps {
|
|
|
13
16
|
date?: string;
|
|
14
17
|
/** It is used to get selected value */
|
|
15
18
|
onChange: (e: any) => void;
|
|
19
|
+
/** Override default styles */
|
|
20
|
+
style?: styleProps;
|
|
16
21
|
}
|
|
17
22
|
declare const DatePicker: FC<DateProps>;
|
|
18
23
|
export default DatePicker;
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
2
|
import { AccessibleProps } from '../../utils/Accessibility';
|
|
3
|
+
export interface styleProps {
|
|
4
|
+
width?: number | string;
|
|
5
|
+
}
|
|
3
6
|
export interface InputProps extends AccessibleProps {
|
|
4
7
|
format?: 'phone' | 'currency' | 'currency_decimal' | 'ssn';
|
|
5
8
|
height?: string;
|
|
@@ -14,6 +17,7 @@ export interface InputProps extends AccessibleProps {
|
|
|
14
17
|
placeholder?: string;
|
|
15
18
|
readOnly?: boolean;
|
|
16
19
|
step?: number;
|
|
20
|
+
style?: styleProps;
|
|
17
21
|
type?: 'date' | 'email' | 'number' | 'password' | 'tel' | 'text' | 'url' | 'textarea';
|
|
18
22
|
value?: string;
|
|
19
23
|
}
|
|
@@ -1,12 +1,17 @@
|
|
|
1
1
|
import { FC, ReactNode } from 'react';
|
|
2
2
|
import { AccessibleProps } from '../../utils/Accessibility';
|
|
3
3
|
interface ButtonProps {
|
|
4
|
-
disabled
|
|
4
|
+
disabled?: boolean;
|
|
5
5
|
children: string;
|
|
6
6
|
icon?: string;
|
|
7
7
|
onClick: (e?: any) => void;
|
|
8
8
|
tabIndex?: number;
|
|
9
9
|
}
|
|
10
|
+
interface StepProps {
|
|
11
|
+
label: string;
|
|
12
|
+
complete?: boolean;
|
|
13
|
+
active?: boolean;
|
|
14
|
+
}
|
|
10
15
|
export interface ModalProps extends AccessibleProps {
|
|
11
16
|
/** Defines a button to be displayed on the far right of the bottom button bar */
|
|
12
17
|
primaryButton?: ButtonProps;
|
|
@@ -22,6 +27,8 @@ export interface ModalProps extends AccessibleProps {
|
|
|
22
27
|
title: string;
|
|
23
28
|
/** It is used to close modal. */
|
|
24
29
|
onClose: (e?: any) => void;
|
|
30
|
+
/** Display steps at the top of the modal */
|
|
31
|
+
steps?: StepProps[];
|
|
25
32
|
}
|
|
26
33
|
declare const Modal: FC<ModalProps>;
|
|
27
34
|
export default Modal;
|
|
@@ -4,6 +4,9 @@ export interface OptionProps {
|
|
|
4
4
|
label?: string;
|
|
5
5
|
value: string | number;
|
|
6
6
|
}
|
|
7
|
+
export interface styleProps {
|
|
8
|
+
width?: number | string;
|
|
9
|
+
}
|
|
7
10
|
export interface MultiSelectProps extends AccessibleProps {
|
|
8
11
|
readOnly?: boolean;
|
|
9
12
|
displayCount?: number;
|
|
@@ -12,6 +15,7 @@ export interface MultiSelectProps extends AccessibleProps {
|
|
|
12
15
|
options?: OptionProps[];
|
|
13
16
|
selected: (string | number)[];
|
|
14
17
|
showSelectAll?: boolean;
|
|
18
|
+
style?: styleProps;
|
|
15
19
|
}
|
|
16
20
|
declare const MultiSelect: FC<MultiSelectProps>;
|
|
17
21
|
export default MultiSelect;
|
|
@@ -13,6 +13,7 @@ export interface OptionGroupProps {
|
|
|
13
13
|
export interface styleProps {
|
|
14
14
|
borderRadius?: string;
|
|
15
15
|
flexGrow?: number;
|
|
16
|
+
width?: number | string;
|
|
16
17
|
}
|
|
17
18
|
export interface SelectProps extends AccessibleProps {
|
|
18
19
|
/** It is used to give options from which value is selected. */
|
|
@@ -26,10 +27,7 @@ export interface SelectProps extends AccessibleProps {
|
|
|
26
27
|
/** It is used to read value for selected option. */
|
|
27
28
|
value: string;
|
|
28
29
|
/** It is used to read value for border rasius & flex grow */
|
|
29
|
-
style?:
|
|
30
|
-
borderRadius?: string;
|
|
31
|
-
flexGrow?: number;
|
|
32
|
-
};
|
|
30
|
+
style?: styleProps;
|
|
33
31
|
/** It is used to change value when an option is clicked. */
|
|
34
32
|
onChange: (e: any) => void;
|
|
35
33
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -140,6 +140,9 @@ interface CopyProps extends AccessibleProps {
|
|
|
140
140
|
}
|
|
141
141
|
declare const Copy: FC<CopyProps>;
|
|
142
142
|
|
|
143
|
+
interface styleProps$3 {
|
|
144
|
+
width?: number | string;
|
|
145
|
+
}
|
|
143
146
|
interface DateProps extends AccessibleProps {
|
|
144
147
|
/** If it's value is true then select is disabled. */
|
|
145
148
|
readOnly?: boolean;
|
|
@@ -153,6 +156,8 @@ interface DateProps extends AccessibleProps {
|
|
|
153
156
|
date?: string;
|
|
154
157
|
/** It is used to get selected value */
|
|
155
158
|
onChange: (e: any) => void;
|
|
159
|
+
/** Override default styles */
|
|
160
|
+
style?: styleProps$3;
|
|
156
161
|
}
|
|
157
162
|
declare const DatePicker: FC<DateProps>;
|
|
158
163
|
|
|
@@ -240,6 +245,9 @@ interface HeadingProps extends AccessibleProps {
|
|
|
240
245
|
}
|
|
241
246
|
declare const Heading: FC<HeadingProps>;
|
|
242
247
|
|
|
248
|
+
interface styleProps$2 {
|
|
249
|
+
width?: number | string;
|
|
250
|
+
}
|
|
243
251
|
interface InputProps extends AccessibleProps {
|
|
244
252
|
format?: 'phone' | 'currency' | 'currency_decimal' | 'ssn';
|
|
245
253
|
height?: string;
|
|
@@ -254,6 +262,7 @@ interface InputProps extends AccessibleProps {
|
|
|
254
262
|
placeholder?: string;
|
|
255
263
|
readOnly?: boolean;
|
|
256
264
|
step?: number;
|
|
265
|
+
style?: styleProps$2;
|
|
257
266
|
type?: 'date' | 'email' | 'number' | 'password' | 'tel' | 'text' | 'url' | 'textarea';
|
|
258
267
|
value?: string;
|
|
259
268
|
}
|
|
@@ -276,12 +285,17 @@ interface LogoProps extends AccessibleProps {
|
|
|
276
285
|
declare const Logo: FC<LogoProps>;
|
|
277
286
|
|
|
278
287
|
interface ButtonProps {
|
|
279
|
-
disabled
|
|
288
|
+
disabled?: boolean;
|
|
280
289
|
children: string;
|
|
281
290
|
icon?: string;
|
|
282
291
|
onClick: (e?: any) => void;
|
|
283
292
|
tabIndex?: number;
|
|
284
293
|
}
|
|
294
|
+
interface StepProps {
|
|
295
|
+
label: string;
|
|
296
|
+
complete?: boolean;
|
|
297
|
+
active?: boolean;
|
|
298
|
+
}
|
|
285
299
|
interface ModalProps extends AccessibleProps {
|
|
286
300
|
/** Defines a button to be displayed on the far right of the bottom button bar */
|
|
287
301
|
primaryButton?: ButtonProps;
|
|
@@ -297,6 +311,8 @@ interface ModalProps extends AccessibleProps {
|
|
|
297
311
|
title: string;
|
|
298
312
|
/** It is used to close modal. */
|
|
299
313
|
onClose: (e?: any) => void;
|
|
314
|
+
/** Display steps at the top of the modal */
|
|
315
|
+
steps?: StepProps[];
|
|
300
316
|
}
|
|
301
317
|
declare const Modal: FC<ModalProps>;
|
|
302
318
|
|
|
@@ -315,6 +331,9 @@ interface OptionProps$2 {
|
|
|
315
331
|
label?: string;
|
|
316
332
|
value: string | number;
|
|
317
333
|
}
|
|
334
|
+
interface styleProps$1 {
|
|
335
|
+
width?: number | string;
|
|
336
|
+
}
|
|
318
337
|
interface MultiSelectProps extends AccessibleProps {
|
|
319
338
|
readOnly?: boolean;
|
|
320
339
|
displayCount?: number;
|
|
@@ -323,6 +342,7 @@ interface MultiSelectProps extends AccessibleProps {
|
|
|
323
342
|
options?: OptionProps$2[];
|
|
324
343
|
selected: (string | number)[];
|
|
325
344
|
showSelectAll?: boolean;
|
|
345
|
+
style?: styleProps$1;
|
|
326
346
|
}
|
|
327
347
|
declare const MultiSelect: FC<MultiSelectProps>;
|
|
328
348
|
|
|
@@ -368,6 +388,11 @@ interface OptionGroupProps {
|
|
|
368
388
|
options: OptionProps[];
|
|
369
389
|
label: string;
|
|
370
390
|
}
|
|
391
|
+
interface styleProps {
|
|
392
|
+
borderRadius?: string;
|
|
393
|
+
flexGrow?: number;
|
|
394
|
+
width?: number | string;
|
|
395
|
+
}
|
|
371
396
|
interface SelectProps extends AccessibleProps {
|
|
372
397
|
/** It is used to give options from which value is selected. */
|
|
373
398
|
options?: OptionProps[];
|
|
@@ -380,10 +405,7 @@ interface SelectProps extends AccessibleProps {
|
|
|
380
405
|
/** It is used to read value for selected option. */
|
|
381
406
|
value: string;
|
|
382
407
|
/** It is used to read value for border rasius & flex grow */
|
|
383
|
-
style?:
|
|
384
|
-
borderRadius?: string;
|
|
385
|
-
flexGrow?: number;
|
|
386
|
-
};
|
|
408
|
+
style?: styleProps;
|
|
387
409
|
/** It is used to change value when an option is clicked. */
|
|
388
410
|
onChange: (e: any) => void;
|
|
389
411
|
}
|