@true-engineering/true-react-common-ui-kit 4.0.0-alpha14 → 4.0.0-alpha15
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/true-react-common-ui-kit.js +7 -7
- package/dist/true-react-common-ui-kit.js.map +1 -1
- package/dist/true-react-common-ui-kit.umd.cjs +6 -6
- package/dist/true-react-common-ui-kit.umd.cjs.map +1 -1
- package/package.json +1 -1
- package/src/components/ControlWrapper/types.ts +1 -0
- package/src/components/Input/InputBase.tsx +3 -2
- package/src/components/TextArea/TextArea.tsx +1 -0
- package/src/components/TextButton/TextButton.styles.ts +1 -0
|
@@ -10531,7 +10531,7 @@
|
|
|
10531
10531
|
"url"
|
|
10532
10532
|
].includes(type) ? type : void 0;
|
|
10533
10533
|
var hasFocus = isFocused || isActive;
|
|
10534
|
-
var hasValue = trueReactPlatformHelpers.
|
|
10534
|
+
var hasValue = trueReactPlatformHelpers.isArrayLikeNotEmpty(value);
|
|
10535
10535
|
var hasUnits = trueReactPlatformHelpers.isReactNodeNotEmpty(units);
|
|
10536
10536
|
var hasPlaceholder = (!trueReactPlatformHelpers.isReactNodeNotEmpty(label) || hasFocus || shouldAlwaysShowPlaceholder) && trueReactPlatformHelpers.isStringNotEmpty(placeholder);
|
|
10537
10537
|
var handleChange = function(event) {
|
|
@@ -10628,7 +10628,7 @@
|
|
|
10628
10628
|
isDisabled,
|
|
10629
10629
|
isFocused: hasFocus,
|
|
10630
10630
|
isInvalid,
|
|
10631
|
-
hasValue
|
|
10631
|
+
hasValue,
|
|
10632
10632
|
isFullWidth: !isAutoSized,
|
|
10633
10633
|
tweakStyles: tweakControlWrapperStyles,
|
|
10634
10634
|
onClear: isClearable && hasValue ? handleInputClear : void 0,
|
|
@@ -31397,9 +31397,7 @@
|
|
|
31397
31397
|
}
|
|
31398
31398
|
var DEFAULT_VALUE = "";
|
|
31399
31399
|
var TextArea = /* @__PURE__ */ React.forwardRef(function(_param, ref) {
|
|
31400
|
-
var _param_value = _param.value, value = _param_value === void 0 ? DEFAULT_VALUE : _param_value, label = _param.label, placeholder = _param.placeholder, name = _param.name
|
|
31401
|
-
_param.shouldFocusOnMount;
|
|
31402
|
-
var _param_hasCounter = _param.hasCounter, hasCounter = _param_hasCounter === void 0 ? true : _param_hasCounter, shouldTrimAfterMaxLength = _param.shouldTrimAfterMaxLength, _param_isAutoSized = _param.isAutoSized, isAutoSized = _param_isAutoSized === void 0 ? true : _param_isAutoSized, shouldAlwaysShowPlaceholder = _param.shouldAlwaysShowPlaceholder, isDisabled = _param.isDisabled, isActive = _param.isActive, maxLength = _param.maxLength, rows = _param.rows, data = _param.data, testId = _param.testId, tweakStyles = _param.tweakStyles, onChange = _param.onChange, onPaste = _param.onPaste, onFocus = _param.onFocus, onBlur = _param.onBlur, infoMessage = _param.infoMessage, errorMessage = _param.errorMessage, isInvalid = _param.isInvalid, isRequired = _param.isRequired, size = _param.size, textAreaProps = _object_without_properties$3(_param, [
|
|
31400
|
+
var _param_value = _param.value, value = _param_value === void 0 ? DEFAULT_VALUE : _param_value, label = _param.label, placeholder = _param.placeholder, name = _param.name, shouldFocusOnMount = _param.shouldFocusOnMount, _param_hasCounter = _param.hasCounter, hasCounter = _param_hasCounter === void 0 ? true : _param_hasCounter, shouldTrimAfterMaxLength = _param.shouldTrimAfterMaxLength, _param_isAutoSized = _param.isAutoSized, isAutoSized = _param_isAutoSized === void 0 ? true : _param_isAutoSized, shouldAlwaysShowPlaceholder = _param.shouldAlwaysShowPlaceholder, isDisabled = _param.isDisabled, isActive = _param.isActive, maxLength = _param.maxLength, rows = _param.rows, data = _param.data, testId = _param.testId, tweakStyles = _param.tweakStyles, onChange = _param.onChange, onPaste = _param.onPaste, onFocus = _param.onFocus, onBlur = _param.onBlur, infoMessage = _param.infoMessage, errorMessage = _param.errorMessage, isInvalid = _param.isInvalid, isRequired = _param.isRequired, size = _param.size, textAreaProps = _object_without_properties$3(_param, [
|
|
31403
31401
|
"value",
|
|
31404
31402
|
"label",
|
|
31405
31403
|
"placeholder",
|
|
@@ -31489,7 +31487,8 @@
|
|
|
31489
31487
|
onPaste,
|
|
31490
31488
|
onFocus: handleFocus,
|
|
31491
31489
|
onBlur: handleBlur,
|
|
31492
|
-
onChange: handleChange
|
|
31490
|
+
onChange: handleChange,
|
|
31491
|
+
autoFocus: shouldFocusOnMount
|
|
31493
31492
|
}, trueReactPlatformHelpers.addDataAttributes(data, testId), textAreaProps))
|
|
31494
31493
|
}))
|
|
31495
31494
|
}),
|
|
@@ -31510,6 +31509,7 @@
|
|
|
31510
31509
|
alignItems: "center",
|
|
31511
31510
|
height: 24,
|
|
31512
31511
|
padding: 0,
|
|
31512
|
+
position: "relative",
|
|
31513
31513
|
background: "transparent",
|
|
31514
31514
|
border: "none",
|
|
31515
31515
|
borderRadius: 0,
|