@galaxy-ds/core 2.1.7 → 2.1.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/index.esm.js +5 -4
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +5 -4
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -18747,12 +18747,13 @@ var StyledFormHelperText = styled(FormHelperText)(function (_a) {
|
|
|
18747
18747
|
});
|
|
18748
18748
|
|
|
18749
18749
|
var Input = React.forwardRef(function Input(props, ref) {
|
|
18750
|
-
var _a = props.error, error = _a === void 0 ? false : _a, helperText = props.helperText, _b = props.textAlignRight, textAlignRight = _b === void 0 ? false : _b, label = props.label, _c = props.size, size = _c === void 0 ? 'medium' : _c, _d = props.background, background = _d === void 0 ? 'default' : _d, className = props.className, inputPropStyles = props.inputPropStyles, rest = __rest(props, ["error", "helperText", "textAlignRight", "label", "size", "background", "className", "inputPropStyles"]);
|
|
18750
|
+
var _a = props.error, error = _a === void 0 ? false : _a, helperText = props.helperText, _b = props.textAlignRight, textAlignRight = _b === void 0 ? false : _b, label = props.label, _c = props.size, size = _c === void 0 ? 'medium' : _c, _d = props.background, background = _d === void 0 ? 'default' : _d, className = props.className, inputPropStyles = props.inputPropStyles, minRows = props.minRows, maxRows = props.maxRows, rows = props.rows, rest = __rest(props, ["error", "helperText", "textAlignRight", "label", "size", "background", "className", "inputPropStyles", "minRows", "maxRows", "rows"]);
|
|
18751
18751
|
return (jsxs(Fragment$1, { children: [label && jsx(FormLabelBlock, { children: label }), jsx(StyledInputBase, __assign({ ref: ref, error: error, textAlignRight: textAlignRight, className: clsx(size === 'large' && 'customLargeSize', background === 'light' && 'customLightColor', className), inputProps: {
|
|
18752
18752
|
style: __assign({
|
|
18753
|
-
// EDGECASE: When we use multiline and set minRows, maxRows, rows we need to define the width of the input.
|
|
18754
|
-
|
|
18755
|
-
|
|
18753
|
+
// EDGECASE: When we use multiline and set minRows, maxRows, rows we need to define the width of the input. 100% here will inherit parent container.
|
|
18754
|
+
// If there's no container we need to define the width. Otherwise the input will fluctate in size on keydown when rows param exist.
|
|
18755
|
+
width: inputPropStyles ? inputPropStyles.width : '100%' }, inputPropStyles),
|
|
18756
|
+
}, rows: rows, minRows: minRows, maxRows: maxRows }, rest)), helperText && (jsx(StyledFormHelperText, { error: error, children: helperText }))] }));
|
|
18756
18757
|
});
|
|
18757
18758
|
|
|
18758
18759
|
var ListItemAvatar = function (props) {
|