@hexure/ui 1.3.7 → 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 +3 -3
- 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 +3 -3
- 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
package/dist/cjs/index.js
CHANGED
|
@@ -2310,7 +2310,7 @@ var Drawer = function (_a) {
|
|
|
2310
2310
|
};
|
|
2311
2311
|
var templateObject_1$e, templateObject_2$d, templateObject_3$c, templateObject_4$7, templateObject_5$5, templateObject_6$3;
|
|
2312
2312
|
|
|
2313
|
-
var Wrapper$a = styled.div(function (props) { return (__assign({ margin: '0px 0px
|
|
2313
|
+
var Wrapper$a = styled.div(function (props) { return (__assign({ margin: '0px 0px 18px 0px' }, props.style)); });
|
|
2314
2314
|
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"])));
|
|
2315
2315
|
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);
|
|
2316
2316
|
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);
|
|
@@ -2476,7 +2476,7 @@ var Input$1 = function (_a) {
|
|
|
2476
2476
|
if (type === 'email') {
|
|
2477
2477
|
e.target.value = e.target.value.toLowerCase();
|
|
2478
2478
|
}
|
|
2479
|
-
if (type === 'number' && max && parseInt(e.target.value, 10) > max) {
|
|
2479
|
+
if (type === 'number' && max && parseInt(e.target.value, 10) > parseInt(max, 10)) {
|
|
2480
2480
|
e.target.value = "".concat(max);
|
|
2481
2481
|
}
|
|
2482
2482
|
if (!readOnly && onChange)
|
|
@@ -2744,7 +2744,7 @@ var Tabs = function (_a) {
|
|
|
2744
2744
|
var tabs = _a.tabs, accessibleProps = __rest(_a, ["tabs"]);
|
|
2745
2745
|
return (React.createElement(Wrapper$2, __assign({}, accessibleProps), tabs.map(function (_a) {
|
|
2746
2746
|
var isActive = _a.isActive, label = _a.label, badgeCount = _a.badgeCount, errorBadge = _a.errorBadge, onClick = _a.onClick, accessibleProps = __rest(_a, ["isActive", "label", "badgeCount", "errorBadge", "onClick"]);
|
|
2747
|
-
return (React.createElement(Tab, __assign({ "$isActive": isActive || false, onClick: isActive ?
|
|
2747
|
+
return (React.createElement(Tab, __assign({ "$isActive": isActive || false, onClick: isActive ? undefined : onClick }, accessibleProps),
|
|
2748
2748
|
badgeCount ? React.createElement(Badge, { "$isError": errorBadge || false }, badgeCount) : null,
|
|
2749
2749
|
label));
|
|
2750
2750
|
})));
|