maru_design2 2.25.1 → 2.25.3

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 CHANGED
@@ -1,5 +1,19 @@
1
1
  # Changelog
2
2
 
3
+ ## [2.25.3](https://github.com/42maru-ai/maru-design2/compare/v2.25.2...v2.25.3) (2025-04-28)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * :bento: Icon - add arrow-cross [#402](https://github.com/42maru-ai/maru-design2/issues/402) ([0e5f5aa](https://github.com/42maru-ai/maru-design2/commit/0e5f5aa831044f155527b5445db0e110bc7e44e1))
9
+
10
+ ## [2.25.2](https://github.com/42maru-ai/maru-design2/compare/v2.25.1...v2.25.2) (2025-04-15)
11
+
12
+
13
+ ### Bug Fixes
14
+
15
+ * :bug: Input,Textarea - update value & clear ([af2e6dc](https://github.com/42maru-ai/maru-design2/commit/af2e6dc04f9df97a242e6c90bc7a081279a9deb8))
16
+
3
17
  ## [2.25.1](https://github.com/42maru-ai/maru-design2/compare/v2.25.0...v2.25.1) (2025-04-15)
4
18
 
5
19
 
@@ -42,6 +42,7 @@ export declare const ICONS: {
42
42
  readonly AlertCircle_s1615: "AlertCircle_s1615";
43
43
  readonly AlertTriangleBg_s2410: "AlertTriangleBg_s2410";
44
44
  readonly AlertTriangle_s1615: "AlertTriangle_s1615";
45
+ readonly ArrowCross_s1613: "ArrowCross_s1613";
45
46
  readonly ArrowDownCircle_s1413: "ArrowDownCircle_s1413";
46
47
  readonly ArrowRight_s1415: "ArrowRight_s1415";
47
48
  readonly ArrowRight_s1613: "ArrowRight_s1613";
package/dist/index.js CHANGED
@@ -300,6 +300,27 @@ var iconmap = {
300
300
  "circles": [],
301
301
  "rects": []
302
302
  },
303
+ "ArrowCross_s1613": {
304
+ "width": "16",
305
+ "height": "13",
306
+ "viewBox": "0 0 16 13",
307
+ "fill": "none",
308
+ "paths": [{
309
+ "d": "M2.62162 9.65749L10.4438 2.19868H6.53273",
310
+ "stroke": "#5C5C5C",
311
+ "strokeWidth": "1.3",
312
+ "strokeLinecap": "round",
313
+ "strokeLinejoin": "round"
314
+ }, {
315
+ "d": "M13.3774 3.67747L5.55519 11.1363L9.4663 11.1363",
316
+ "stroke": "#5C5C5C",
317
+ "strokeWidth": "1.3",
318
+ "strokeLinecap": "round",
319
+ "strokeLinejoin": "round"
320
+ }],
321
+ "circles": [],
322
+ "rects": []
323
+ },
303
324
  "ArrowDownCircle_s1413": {
304
325
  "width": "14",
305
326
  "height": "14",
@@ -5977,6 +5998,7 @@ var ICONS = {
5977
5998
  "AlertCircle_s1615": "AlertCircle_s1615",
5978
5999
  "AlertTriangleBg_s2410": "AlertTriangleBg_s2410",
5979
6000
  "AlertTriangle_s1615": "AlertTriangle_s1615",
6001
+ "ArrowCross_s1613": "ArrowCross_s1613",
5980
6002
  "ArrowDownCircle_s1413": "ArrowDownCircle_s1413",
5981
6003
  "ArrowRight_s1415": "ArrowRight_s1415",
5982
6004
  "ArrowRight_s1613": "ArrowRight_s1613",
@@ -6694,19 +6716,15 @@ var Input = /*#__PURE__*/forwardRef(function (_a, inputRef) {
6694
6716
  useEffect(function () {
6695
6717
  if (!props.value) {
6696
6718
  setShowClearButton(false);
6719
+ } else {
6720
+ setShowClearButton(!hiddenClearButton);
6697
6721
  }
6698
- }, [props.value]);
6722
+ }, [props.value, hiddenClearButton]);
6699
6723
  useEffect(function () {
6700
6724
  if (props.defaultValue) {
6701
6725
  setShowClearButton(!hiddenClearButton);
6702
6726
  }
6703
6727
  }, [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
6728
  /**
6711
6729
  * persistentPlaceholder = true일때 보여줄 placeholder 세팅
6712
6730
  */
@@ -8995,21 +9013,16 @@ var Textarea = /*#__PURE__*/forwardRef(function (_a, textareaRef) {
8995
9013
  if (!props.value) {
8996
9014
  setShowClearButton(false);
8997
9015
  } else {
9016
+ setShowClearButton(!hiddenClearButton);
8998
9017
  resizeHeight();
8999
9018
  }
9000
- }, [props.value]);
9019
+ }, [props.value, hiddenClearButton]);
9001
9020
  useEffect(function () {
9002
9021
  if (props.defaultValue) {
9003
9022
  setShowClearButton(!hiddenClearButton);
9004
9023
  resizeHeight();
9005
9024
  }
9006
9025
  }, [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
9026
  var handleTextareaChange = function handleTextareaChange(e) {
9014
9027
  var _a;
9015
9028
  setShowClearButton(!hiddenClearButton);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "maru_design2",
3
- "version": "2.25.1",
3
+ "version": "2.25.3",
4
4
  "main": "./dist/index.js",
5
5
  "author": "zena-42maru",
6
6
  "license": "MIT",