@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.cjs +3 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +4 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +3 -1
- package/dist/index.js.map +1 -1
- package/package.json +3 -4
package/dist/index.cjs
CHANGED
|
@@ -3270,6 +3270,7 @@ var InputButton = React3.forwardRef(
|
|
|
3270
3270
|
onClick,
|
|
3271
3271
|
isSelected,
|
|
3272
3272
|
disabled = false,
|
|
3273
|
+
useClear = true,
|
|
3273
3274
|
rightSource,
|
|
3274
3275
|
onClear,
|
|
3275
3276
|
width = "100%"
|
|
@@ -3280,6 +3281,7 @@ var InputButton = React3.forwardRef(
|
|
|
3280
3281
|
"onClick",
|
|
3281
3282
|
"isSelected",
|
|
3282
3283
|
"disabled",
|
|
3284
|
+
"useClear",
|
|
3283
3285
|
"rightSource",
|
|
3284
3286
|
"onClear",
|
|
3285
3287
|
"width"
|
|
@@ -3344,7 +3346,7 @@ var InputButton = React3.forwardRef(
|
|
|
3344
3346
|
children: /* @__PURE__ */ jsxRuntime.jsxs(StyledInputButton, { onClick: handleOnClick, disabled, children: [
|
|
3345
3347
|
/* @__PURE__ */ jsxRuntime.jsx(StyledInputButtonContent, __spreadValues({ className: "body1_400", value: text, ref }, rest)),
|
|
3346
3348
|
/* @__PURE__ */ jsxRuntime.jsxs(exports.Stack.Horizontal, { align: "center", children: [
|
|
3347
|
-
text && /* @__PURE__ */ jsxRuntime.jsx(exports.IconButton, { sizeVar: "S", onClick: handleOnClear, styleVar: "GHOST", disabled, children: /* @__PURE__ */ jsxRuntime.jsx(exports.Icon, { iconSource: assetFunction("DeleteIcon"), color: "neutral350" }) }),
|
|
3349
|
+
useClear && text && /* @__PURE__ */ jsxRuntime.jsx(exports.IconButton, { sizeVar: "S", onClick: handleOnClear, styleVar: "GHOST", disabled, children: /* @__PURE__ */ jsxRuntime.jsx(exports.Icon, { iconSource: assetFunction("DeleteIcon"), color: "neutral350" }) }),
|
|
3348
3350
|
rightSource
|
|
3349
3351
|
] })
|
|
3350
3352
|
] })
|