@shoplflow/base 0.31.0 → 0.31.1

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.d.cts CHANGED
@@ -1013,6 +1013,10 @@ interface InputButtonOptionProps extends Omit<InputHTMLAttributes<HTMLInputEleme
1013
1013
  * 값이 삭제될 때 실행할 함수입니다.
1014
1014
  */
1015
1015
  onClear?: (e: MouseEvent<HTMLButtonElement>) => void;
1016
+ /**
1017
+ * Clear 아이콘의 노출 유무를 설정합니다.
1018
+ */
1019
+ useClear?: boolean;
1016
1020
  onClick?: (e: MouseEvent<HTMLDivElement>) => void;
1017
1021
  /**
1018
1022
  * Input의 placeholder를 설정합니다.
package/dist/index.d.ts CHANGED
@@ -1013,6 +1013,10 @@ interface InputButtonOptionProps extends Omit<InputHTMLAttributes<HTMLInputEleme
1013
1013
  * 값이 삭제될 때 실행할 함수입니다.
1014
1014
  */
1015
1015
  onClear?: (e: MouseEvent<HTMLButtonElement>) => void;
1016
+ /**
1017
+ * Clear 아이콘의 노출 유무를 설정합니다.
1018
+ */
1019
+ useClear?: boolean;
1016
1020
  onClick?: (e: MouseEvent<HTMLDivElement>) => void;
1017
1021
  /**
1018
1022
  * Input의 placeholder를 설정합니다.
package/dist/index.js CHANGED
@@ -3245,6 +3245,7 @@ var InputButton = forwardRef(
3245
3245
  onClick,
3246
3246
  isSelected,
3247
3247
  disabled = false,
3248
+ useClear = true,
3248
3249
  rightSource,
3249
3250
  onClear,
3250
3251
  width = "100%"
@@ -3255,6 +3256,7 @@ var InputButton = forwardRef(
3255
3256
  "onClick",
3256
3257
  "isSelected",
3257
3258
  "disabled",
3259
+ "useClear",
3258
3260
  "rightSource",
3259
3261
  "onClear",
3260
3262
  "width"
@@ -3319,7 +3321,7 @@ var InputButton = forwardRef(
3319
3321
  children: /* @__PURE__ */ jsxs(StyledInputButton, { onClick: handleOnClick, disabled, children: [
3320
3322
  /* @__PURE__ */ jsx(StyledInputButtonContent, __spreadValues({ className: "body1_400", value: text, ref }, rest)),
3321
3323
  /* @__PURE__ */ jsxs(Stack_default.Horizontal, { align: "center", children: [
3322
- text && /* @__PURE__ */ jsx(IconButton_default, { sizeVar: "S", onClick: handleOnClear, styleVar: "GHOST", disabled, children: /* @__PURE__ */ jsx(Icon_default, { iconSource: assetFunction("DeleteIcon"), color: "neutral350" }) }),
3324
+ useClear && text && /* @__PURE__ */ jsx(IconButton_default, { sizeVar: "S", onClick: handleOnClear, styleVar: "GHOST", disabled, children: /* @__PURE__ */ jsx(Icon_default, { iconSource: assetFunction("DeleteIcon"), color: "neutral350" }) }),
3323
3325
  rightSource
3324
3326
  ] })
3325
3327
  ] })