@hexure/ui 1.6.7 → 1.6.8
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 +30 -15
- 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/MultiSelect/MultiSelect.d.ts +4 -0
- package/dist/cjs/types/components/Select/Select.d.ts +2 -4
- package/dist/esm/index.js +30 -15
- 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/MultiSelect/MultiSelect.d.ts +4 -0
- package/dist/esm/types/components/Select/Select.d.ts +2 -4
- package/dist/index.d.ts +19 -4
- 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
|
}
|
|
@@ -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
|
}
|
|
@@ -315,6 +324,9 @@ interface OptionProps$2 {
|
|
|
315
324
|
label?: string;
|
|
316
325
|
value: string | number;
|
|
317
326
|
}
|
|
327
|
+
interface styleProps$1 {
|
|
328
|
+
width?: number | string;
|
|
329
|
+
}
|
|
318
330
|
interface MultiSelectProps extends AccessibleProps {
|
|
319
331
|
readOnly?: boolean;
|
|
320
332
|
displayCount?: number;
|
|
@@ -323,6 +335,7 @@ interface MultiSelectProps extends AccessibleProps {
|
|
|
323
335
|
options?: OptionProps$2[];
|
|
324
336
|
selected: (string | number)[];
|
|
325
337
|
showSelectAll?: boolean;
|
|
338
|
+
style?: styleProps$1;
|
|
326
339
|
}
|
|
327
340
|
declare const MultiSelect: FC<MultiSelectProps>;
|
|
328
341
|
|
|
@@ -368,6 +381,11 @@ interface OptionGroupProps {
|
|
|
368
381
|
options: OptionProps[];
|
|
369
382
|
label: string;
|
|
370
383
|
}
|
|
384
|
+
interface styleProps {
|
|
385
|
+
borderRadius?: string;
|
|
386
|
+
flexGrow?: number;
|
|
387
|
+
width?: number | string;
|
|
388
|
+
}
|
|
371
389
|
interface SelectProps extends AccessibleProps {
|
|
372
390
|
/** It is used to give options from which value is selected. */
|
|
373
391
|
options?: OptionProps[];
|
|
@@ -380,10 +398,7 @@ interface SelectProps extends AccessibleProps {
|
|
|
380
398
|
/** It is used to read value for selected option. */
|
|
381
399
|
value: string;
|
|
382
400
|
/** It is used to read value for border rasius & flex grow */
|
|
383
|
-
style?:
|
|
384
|
-
borderRadius?: string;
|
|
385
|
-
flexGrow?: number;
|
|
386
|
-
};
|
|
401
|
+
style?: styleProps;
|
|
387
402
|
/** It is used to change value when an option is clicked. */
|
|
388
403
|
onChange: (e: any) => void;
|
|
389
404
|
}
|