reactive-bulma 1.15.0 → 1.16.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/cjs/index.js +28 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/components/atoms/TextArea/index.d.ts +4 -0
- package/dist/cjs/types/components/atoms/index.d.ts +1 -0
- package/dist/cjs/types/interfaces/atomProps.d.ts +5 -0
- package/dist/esm/index.js +28 -2
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/components/atoms/TextArea/index.d.ts +4 -0
- package/dist/esm/types/components/atoms/index.d.ts +1 -0
- package/dist/esm/types/interfaces/atomProps.d.ts +5 -0
- package/dist/index.d.ts +8 -1
- package/package.json +27 -26
package/dist/cjs/index.js
CHANGED
@@ -3009,7 +3009,33 @@ const Input = ({ testId = null, type, text = null, isDisabled = false, isReadonl
|
|
3009
3009
|
tag: 'input',
|
3010
3010
|
parsedClasses: inputClasses
|
3011
3011
|
});
|
3012
|
-
return (React.createElement("input", { "data-testid": _testId, type: type,
|
3012
|
+
return (React.createElement("input", { "data-testid": _testId, type: type, defaultValue: text !== null && text !== void 0 ? text : undefined, disabled: isDisabled, readOnly: isReadonly, style: style !== null && style !== void 0 ? style : undefined, className: inputClasses, onClick: onClick !== null && onClick !== void 0 ? onClick : undefined, onChange: onChange !== null && onChange !== void 0 ? onChange : undefined }));
|
3013
|
+
};
|
3014
|
+
|
3015
|
+
const TextArea = ({ testId = null, text = null, cols = null, rows = null, isDisabled = false, isReadonly = false, isFixedSize = false, style = null, color = null, size = null, isHovered = null, isFocused = null, onClick = null, onChange = null }) => {
|
3016
|
+
const textAreaClasses = parseClasses([
|
3017
|
+
'textarea',
|
3018
|
+
color,
|
3019
|
+
size,
|
3020
|
+
isHovered ? 'is-hovered' : null,
|
3021
|
+
isFocused ? 'is-focused' : null,
|
3022
|
+
isFixedSize ? 'has-fixed-size' : null
|
3023
|
+
]);
|
3024
|
+
const _testId = testId !== null && testId !== void 0 ? testId : parseTestId({
|
3025
|
+
tag: 'textarea',
|
3026
|
+
parsedClasses: textAreaClasses,
|
3027
|
+
rules: [
|
3028
|
+
{
|
3029
|
+
usedRegExp: /textarea/gm,
|
3030
|
+
regExpReplacer: ''
|
3031
|
+
},
|
3032
|
+
{
|
3033
|
+
usedRegExp: /is-|has-/gm,
|
3034
|
+
regExpReplacer: '-'
|
3035
|
+
}
|
3036
|
+
]
|
3037
|
+
});
|
3038
|
+
return (React.createElement("textarea", { "data-testid": _testId, defaultValue: text !== null && text !== void 0 ? text : undefined, cols: cols !== null && cols !== void 0 ? cols : undefined, rows: rows !== null && rows !== void 0 ? rows : undefined, disabled: isDisabled, readOnly: isReadonly, style: style !== null && style !== void 0 ? style : undefined, className: textAreaClasses, onClick: onClick !== null && onClick !== void 0 ? onClick : undefined, onChange: onChange !== null && onChange !== void 0 ? onChange : undefined }));
|
3013
3039
|
};
|
3014
3040
|
|
3015
3041
|
exports.Block = Block;
|
@@ -3020,5 +3046,6 @@ exports.Icon = Icon;
|
|
3020
3046
|
exports.Input = Input;
|
3021
3047
|
exports.ProgressBar = ProgressBar;
|
3022
3048
|
exports.Tag = Tag;
|
3049
|
+
exports.TextArea = TextArea;
|
3023
3050
|
exports.Title = Title;
|
3024
3051
|
//# sourceMappingURL=index.js.map
|