maru_design2 2.25.1 → 2.25.2
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/CHANGELOG.md +7 -0
- package/dist/index.js +5 -14
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [2.25.2](https://github.com/42maru-ai/maru-design2/compare/v2.25.1...v2.25.2) (2025-04-15)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* :bug: Input,Textarea - update value & clear ([af2e6dc](https://github.com/42maru-ai/maru-design2/commit/af2e6dc04f9df97a242e6c90bc7a081279a9deb8))
|
|
9
|
+
|
|
3
10
|
## [2.25.1](https://github.com/42maru-ai/maru-design2/compare/v2.25.0...v2.25.1) (2025-04-15)
|
|
4
11
|
|
|
5
12
|
|
package/dist/index.js
CHANGED
|
@@ -6694,19 +6694,15 @@ var Input = /*#__PURE__*/forwardRef(function (_a, inputRef) {
|
|
|
6694
6694
|
useEffect(function () {
|
|
6695
6695
|
if (!props.value) {
|
|
6696
6696
|
setShowClearButton(false);
|
|
6697
|
+
} else {
|
|
6698
|
+
setShowClearButton(!hiddenClearButton);
|
|
6697
6699
|
}
|
|
6698
|
-
}, [props.value]);
|
|
6700
|
+
}, [props.value, hiddenClearButton]);
|
|
6699
6701
|
useEffect(function () {
|
|
6700
6702
|
if (props.defaultValue) {
|
|
6701
6703
|
setShowClearButton(!hiddenClearButton);
|
|
6702
6704
|
}
|
|
6703
6705
|
}, [props.defaultValue, hiddenClearButton]);
|
|
6704
|
-
useEffect(function () {
|
|
6705
|
-
var _a;
|
|
6706
|
-
if ((_a = combineRef.current) === null || _a === void 0 ? void 0 : _a.value) {
|
|
6707
|
-
setShowClearButton(!hiddenClearButton);
|
|
6708
|
-
}
|
|
6709
|
-
}, [combineRef.current, hiddenClearButton]);
|
|
6710
6706
|
/**
|
|
6711
6707
|
* persistentPlaceholder = true일때 보여줄 placeholder 세팅
|
|
6712
6708
|
*/
|
|
@@ -8995,21 +8991,16 @@ var Textarea = /*#__PURE__*/forwardRef(function (_a, textareaRef) {
|
|
|
8995
8991
|
if (!props.value) {
|
|
8996
8992
|
setShowClearButton(false);
|
|
8997
8993
|
} else {
|
|
8994
|
+
setShowClearButton(!hiddenClearButton);
|
|
8998
8995
|
resizeHeight();
|
|
8999
8996
|
}
|
|
9000
|
-
}, [props.value]);
|
|
8997
|
+
}, [props.value, hiddenClearButton]);
|
|
9001
8998
|
useEffect(function () {
|
|
9002
8999
|
if (props.defaultValue) {
|
|
9003
9000
|
setShowClearButton(!hiddenClearButton);
|
|
9004
9001
|
resizeHeight();
|
|
9005
9002
|
}
|
|
9006
9003
|
}, [props.defaultValue, hiddenClearButton]);
|
|
9007
|
-
useEffect(function () {
|
|
9008
|
-
var _a;
|
|
9009
|
-
if ((_a = combineRef.current) === null || _a === void 0 ? void 0 : _a.value) {
|
|
9010
|
-
setShowClearButton(!hiddenClearButton);
|
|
9011
|
-
}
|
|
9012
|
-
}, [combineRef.current, hiddenClearButton]);
|
|
9013
9004
|
var handleTextareaChange = function handleTextareaChange(e) {
|
|
9014
9005
|
var _a;
|
|
9015
9006
|
setShowClearButton(!hiddenClearButton);
|