@cakemail-org/ui-components-v2 2.1.4 → 2.1.5
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 -1
- package/dist/esm/index.js +2 -1
- package/package.json +1 -1
package/dist/cjs/index.js
CHANGED
|
@@ -1533,7 +1533,7 @@ var css_248z$v = ".textfield-component-v2 {\n position: relative;\n}\n.textfiel
|
|
|
1533
1533
|
styleInject(css_248z$v);
|
|
1534
1534
|
|
|
1535
1535
|
var TextField = React.forwardRef(function (_a, ref) {
|
|
1536
|
-
var _b = _a.className, className = _b === void 0 ? "" : _b, label = _a.label, timeout = _a.timeout, labelTooltipText = _a.labelTooltipText, disabled = _a.disabled; _a.useBareBoneInput; var onChange = _a.onChange, multiline = _a.multiline, inputProps = _a.inputProps, iconName = _a.iconName, props = __rest(_a, ["className", "label", "timeout", "labelTooltipText", "disabled", "useBareBoneInput", "onChange", "multiline", "inputProps", "iconName"]);
|
|
1536
|
+
var _b = _a.className, className = _b === void 0 ? "" : _b, label = _a.label, timeout = _a.timeout, labelTooltipText = _a.labelTooltipText, disabled = _a.disabled; _a.useBareBoneInput; var onChange = _a.onChange, multiline = _a.multiline, inputProps = _a.inputProps, iconName = _a.iconName, onKeyDown = _a.onKeyDown, props = __rest(_a, ["className", "label", "timeout", "labelTooltipText", "disabled", "useBareBoneInput", "onChange", "multiline", "inputProps", "iconName", "onKeyDown"]);
|
|
1537
1537
|
var cLabel = label;
|
|
1538
1538
|
var timeoutRef = React.useRef(undefined);
|
|
1539
1539
|
function onChangeHandler(e) {
|
|
@@ -1562,6 +1562,7 @@ var TextField = React.forwardRef(function (_a, ref) {
|
|
|
1562
1562
|
currentTarget: { value: "", name: props.name }
|
|
1563
1563
|
});
|
|
1564
1564
|
}
|
|
1565
|
+
onKeyDown && onKeyDown(event);
|
|
1565
1566
|
}
|
|
1566
1567
|
inputProps = __assign({ maxLength: 256 }, inputProps);
|
|
1567
1568
|
return React.createElement(Box, { className: "textfield-component-v2 ".concat(className, " ").concat(disabled ? "disabled" : "", " ") },
|
package/dist/esm/index.js
CHANGED
|
@@ -1513,7 +1513,7 @@ var css_248z$v = ".textfield-component-v2 {\n position: relative;\n}\n.textfiel
|
|
|
1513
1513
|
styleInject(css_248z$v);
|
|
1514
1514
|
|
|
1515
1515
|
var TextField = forwardRef(function (_a, ref) {
|
|
1516
|
-
var _b = _a.className, className = _b === void 0 ? "" : _b, label = _a.label, timeout = _a.timeout, labelTooltipText = _a.labelTooltipText, disabled = _a.disabled; _a.useBareBoneInput; var onChange = _a.onChange, multiline = _a.multiline, inputProps = _a.inputProps, iconName = _a.iconName, props = __rest(_a, ["className", "label", "timeout", "labelTooltipText", "disabled", "useBareBoneInput", "onChange", "multiline", "inputProps", "iconName"]);
|
|
1516
|
+
var _b = _a.className, className = _b === void 0 ? "" : _b, label = _a.label, timeout = _a.timeout, labelTooltipText = _a.labelTooltipText, disabled = _a.disabled; _a.useBareBoneInput; var onChange = _a.onChange, multiline = _a.multiline, inputProps = _a.inputProps, iconName = _a.iconName, onKeyDown = _a.onKeyDown, props = __rest(_a, ["className", "label", "timeout", "labelTooltipText", "disabled", "useBareBoneInput", "onChange", "multiline", "inputProps", "iconName", "onKeyDown"]);
|
|
1517
1517
|
var cLabel = label;
|
|
1518
1518
|
var timeoutRef = useRef(undefined);
|
|
1519
1519
|
function onChangeHandler(e) {
|
|
@@ -1542,6 +1542,7 @@ var TextField = forwardRef(function (_a, ref) {
|
|
|
1542
1542
|
currentTarget: { value: "", name: props.name }
|
|
1543
1543
|
});
|
|
1544
1544
|
}
|
|
1545
|
+
onKeyDown && onKeyDown(event);
|
|
1545
1546
|
}
|
|
1546
1547
|
inputProps = __assign({ maxLength: 256 }, inputProps);
|
|
1547
1548
|
return React__default.createElement(Box$1, { className: "textfield-component-v2 ".concat(className, " ").concat(disabled ? "disabled" : "", " ") },
|