@shoplflow/base 0.45.9 → 0.45.11
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 +2 -2
- package/dist/index.js +2 -2
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1023,7 +1023,7 @@ var ModalBody = ({
|
|
|
1023
1023
|
const headerFooterHeight = React3.useMemo(() => getHeaderFooterHeight(), [getHeaderFooterHeight]);
|
|
1024
1024
|
const setAutoHeightMin = () => {
|
|
1025
1025
|
if (sizeVar === "FULL") {
|
|
1026
|
-
return windowHeight - headerFooterHeight;
|
|
1026
|
+
return windowHeight - headerFooterHeight - heightToDeduct;
|
|
1027
1027
|
}
|
|
1028
1028
|
if (modalContainerHeight) {
|
|
1029
1029
|
if (modalContainerHeight <= 1200) {
|
|
@@ -4374,7 +4374,7 @@ var SelectInputButton = (_a) => {
|
|
|
4374
4374
|
value.length - 1
|
|
4375
4375
|
] }),
|
|
4376
4376
|
/* @__PURE__ */ jsxRuntime.jsxs(exports.Stack.Horizontal, { align: "center", children: [
|
|
4377
|
-
value && value.length > 0 && Boolean(onClear) && /* @__PURE__ */ jsxRuntime.jsx(exports.IconButton, { sizeVar: "S", onClick: handleOnClear, styleVar: "GHOST", disabled, children: /* @__PURE__ */ jsxRuntime.jsx(exports.Icon, { iconSource: assetFunction("DeleteIcon"), color: "neutral350" }) }),
|
|
4377
|
+
value && value.length > 0 && Boolean(onClear) && isHovered && /* @__PURE__ */ jsxRuntime.jsx(exports.IconButton, { sizeVar: "S", onClick: handleOnClear, styleVar: "GHOST", disabled, children: /* @__PURE__ */ jsxRuntime.jsx(exports.Icon, { iconSource: assetFunction("DeleteIcon"), color: "neutral350" }) }),
|
|
4378
4378
|
rightSource
|
|
4379
4379
|
] })
|
|
4380
4380
|
] })
|
package/dist/index.js
CHANGED
|
@@ -996,7 +996,7 @@ var ModalBody = ({
|
|
|
996
996
|
const headerFooterHeight = useMemo(() => getHeaderFooterHeight(), [getHeaderFooterHeight]);
|
|
997
997
|
const setAutoHeightMin = () => {
|
|
998
998
|
if (sizeVar === "FULL") {
|
|
999
|
-
return windowHeight - headerFooterHeight;
|
|
999
|
+
return windowHeight - headerFooterHeight - heightToDeduct;
|
|
1000
1000
|
}
|
|
1001
1001
|
if (modalContainerHeight) {
|
|
1002
1002
|
if (modalContainerHeight <= 1200) {
|
|
@@ -4347,7 +4347,7 @@ var SelectInputButton = (_a) => {
|
|
|
4347
4347
|
value.length - 1
|
|
4348
4348
|
] }),
|
|
4349
4349
|
/* @__PURE__ */ jsxs(Stack_default.Horizontal, { align: "center", children: [
|
|
4350
|
-
value && value.length > 0 && Boolean(onClear) && /* @__PURE__ */ jsx(IconButton_default, { sizeVar: "S", onClick: handleOnClear, styleVar: "GHOST", disabled, children: /* @__PURE__ */ jsx(Icon_default, { iconSource: assetFunction("DeleteIcon"), color: "neutral350" }) }),
|
|
4350
|
+
value && value.length > 0 && Boolean(onClear) && isHovered && /* @__PURE__ */ jsx(IconButton_default, { sizeVar: "S", onClick: handleOnClear, styleVar: "GHOST", disabled, children: /* @__PURE__ */ jsx(Icon_default, { iconSource: assetFunction("DeleteIcon"), color: "neutral350" }) }),
|
|
4351
4351
|
rightSource
|
|
4352
4352
|
] })
|
|
4353
4353
|
] })
|