@hexure/ui 1.3.8 → 1.4.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/dist/cjs/index.js +2 -2
- 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/esm/index.js +2 -2
- 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/index.d.ts +3 -3
- 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
|
}
|
package/dist/esm/index.js
CHANGED
|
@@ -2308,7 +2308,7 @@ var Drawer = function (_a) {
|
|
|
2308
2308
|
};
|
|
2309
2309
|
var templateObject_1$e, templateObject_2$d, templateObject_3$c, templateObject_4$7, templateObject_5$5, templateObject_6$3;
|
|
2310
2310
|
|
|
2311
|
-
var Wrapper$a = styled.div(function (props) { return (__assign({ margin: '0px 0px
|
|
2311
|
+
var Wrapper$a = styled.div(function (props) { return (__assign({ margin: '0px 0px 18px 0px' }, props.style)); });
|
|
2312
2312
|
var LabelRow = styled.div(templateObject_1$d || (templateObject_1$d = __makeTemplateObject(["\n display: flex;\n align-items: center;\n justify-content: space-between;\n margin: 0 0 4px 0;\n box-sizing: border-box;\n"], ["\n display: flex;\n align-items: center;\n justify-content: space-between;\n margin: 0 0 4px 0;\n box-sizing: border-box;\n"])));
|
|
2313
2313
|
var Label$2 = styled.label(templateObject_2$c || (templateObject_2$c = __makeTemplateObject(["\n font-size: ", ";\n font-weight: 500;\n line-height: 1em;\n font-family: ", ";\n color: ", ";\n"], ["\n font-size: ", ";\n font-weight: 500;\n line-height: 1em;\n font-family: ", ";\n color: ", ";\n"])), FontSizes.DEFAULT, FontStyles.DEFAULT, Colors.BLACK.Hex);
|
|
2314
2314
|
var Required = styled.span(templateObject_3$b || (templateObject_3$b = __makeTemplateObject(["\n color: ", ";\n margin-left: 4px;\n"], ["\n color: ", ";\n margin-left: 4px;\n"])), Colors.RED.Hex);
|
|
@@ -2474,7 +2474,7 @@ var Input$1 = function (_a) {
|
|
|
2474
2474
|
if (type === 'email') {
|
|
2475
2475
|
e.target.value = e.target.value.toLowerCase();
|
|
2476
2476
|
}
|
|
2477
|
-
if (type === 'number' && max && parseInt(e.target.value, 10) > max) {
|
|
2477
|
+
if (type === 'number' && max && parseInt(e.target.value, 10) > parseInt(max, 10)) {
|
|
2478
2478
|
e.target.value = "".concat(max);
|
|
2479
2479
|
}
|
|
2480
2480
|
if (!readOnly && onChange)
|