@shoplflow/base 0.45.8 → 0.45.10
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 +3 -3
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) {
|
|
@@ -3963,7 +3963,7 @@ var Input = React3.forwardRef(
|
|
|
3963
3963
|
),
|
|
3964
3964
|
!(type === "number") && /* @__PURE__ */ jsxRuntime.jsxs(RightElementWrapper2, { children: [
|
|
3965
3965
|
maxLength && isFocused && /* @__PURE__ */ jsxRuntime.jsx(TextCounter_default, { currentLength: String(text).length, maxLength }),
|
|
3966
|
-
isFocused && Boolean(String(text).length > 0) && /* @__PURE__ */ jsxRuntime.jsx(exports.IconButton, { sizeVar: "S", onClick: handleOnClear, styleVar: "GHOST", children: /* @__PURE__ */ jsxRuntime.jsx(exports.Icon, { iconSource: assetFunction("DeleteIcon"), color: "neutral350" }) }),
|
|
3966
|
+
onClear && isFocused && Boolean(String(text).length > 0) && /* @__PURE__ */ jsxRuntime.jsx(exports.IconButton, { sizeVar: "S", onClick: handleOnClear, styleVar: "GHOST", children: /* @__PURE__ */ jsxRuntime.jsx(exports.Icon, { iconSource: assetFunction("DeleteIcon"), color: "neutral350" }) }),
|
|
3967
3967
|
initialType === "password" && /* @__PURE__ */ jsxRuntime.jsx(exports.IconButton, { sizeVar: "S", onClick: handleTogglePasswordType, styleVar: "GHOST", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
3968
3968
|
exports.Icon,
|
|
3969
3969
|
{
|
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) {
|
|
@@ -3936,7 +3936,7 @@ var Input = forwardRef(
|
|
|
3936
3936
|
),
|
|
3937
3937
|
!(type === "number") && /* @__PURE__ */ jsxs(RightElementWrapper2, { children: [
|
|
3938
3938
|
maxLength && isFocused && /* @__PURE__ */ jsx(TextCounter_default, { currentLength: String(text).length, maxLength }),
|
|
3939
|
-
isFocused && Boolean(String(text).length > 0) && /* @__PURE__ */ jsx(IconButton_default, { sizeVar: "S", onClick: handleOnClear, styleVar: "GHOST", children: /* @__PURE__ */ jsx(Icon_default, { iconSource: assetFunction("DeleteIcon"), color: "neutral350" }) }),
|
|
3939
|
+
onClear && isFocused && Boolean(String(text).length > 0) && /* @__PURE__ */ jsx(IconButton_default, { sizeVar: "S", onClick: handleOnClear, styleVar: "GHOST", children: /* @__PURE__ */ jsx(Icon_default, { iconSource: assetFunction("DeleteIcon"), color: "neutral350" }) }),
|
|
3940
3940
|
initialType === "password" && /* @__PURE__ */ jsx(IconButton_default, { sizeVar: "S", onClick: handleTogglePasswordType, styleVar: "GHOST", children: /* @__PURE__ */ jsx(
|
|
3941
3941
|
Icon_default,
|
|
3942
3942
|
{
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shoplflow/base",
|
|
3
|
-
"version": "0.45.
|
|
3
|
+
"version": "0.45.10",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -99,8 +99,8 @@
|
|
|
99
99
|
"react-dom": "^18.2.0",
|
|
100
100
|
"simplebar-react": "^3.2.6",
|
|
101
101
|
"@shoplflow/hada-assets": "^0.1.10",
|
|
102
|
-
"@shoplflow/
|
|
103
|
-
"@shoplflow/
|
|
102
|
+
"@shoplflow/shopl-assets": "^0.12.32",
|
|
103
|
+
"@shoplflow/utils": "^0.7.2"
|
|
104
104
|
},
|
|
105
105
|
"homepage": "https://github.com/shopl/shoplflow#readme",
|
|
106
106
|
"scripts": {
|