@shoplflow/base 0.31.5 → 0.31.6
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 +18 -13
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +18 -13
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -2074,33 +2074,35 @@ var getStyleByType = ({
|
|
|
2074
2074
|
maxHeight,
|
|
2075
2075
|
width,
|
|
2076
2076
|
minWidth,
|
|
2077
|
-
maxWidth
|
|
2077
|
+
maxWidth,
|
|
2078
|
+
borderRadius
|
|
2078
2079
|
}) => {
|
|
2079
2080
|
if (type === "number") {
|
|
2080
2081
|
return react$1.css`
|
|
2081
|
-
width: 64px;
|
|
2082
|
-
height: 32px;
|
|
2082
|
+
width: ${width || "64px"};
|
|
2083
|
+
height: ${height || "32px"};
|
|
2083
2084
|
`;
|
|
2084
2085
|
}
|
|
2085
2086
|
return react$1.css`
|
|
2086
|
-
width: ${width
|
|
2087
|
-
min-width: ${minWidth
|
|
2088
|
-
max-width: ${maxWidth
|
|
2089
|
-
height: ${height
|
|
2090
|
-
min-height: ${minHeight
|
|
2091
|
-
max-height: ${maxHeight
|
|
2087
|
+
width: ${width || "100%"};
|
|
2088
|
+
min-width: ${minWidth || "initial"};
|
|
2089
|
+
max-width: ${maxWidth || "initial"};
|
|
2090
|
+
height: ${height || "initial"};
|
|
2091
|
+
min-height: ${minHeight || "initial"};
|
|
2092
|
+
max-height: ${maxHeight || "initial"};
|
|
2093
|
+
border-radius: ${borderRadius || "6px"};
|
|
2092
2094
|
`;
|
|
2093
2095
|
};
|
|
2094
2096
|
var InputWrapper = styled6__default.default.label`
|
|
2095
2097
|
position: relative;
|
|
2096
2098
|
display: flex;
|
|
2097
2099
|
align-items: center;
|
|
2100
|
+
border-radius: 6px;
|
|
2098
2101
|
flex-direction: ${({ direction }) => direction || "row"};
|
|
2099
|
-
${({ type, height, minHeight, maxHeight, width, maxWidth, minWidth }) => getStyleByType({ type, height, minHeight, maxHeight, width, maxWidth, minWidth })};
|
|
2102
|
+
${({ type, height, minHeight, maxHeight, width, maxWidth, minWidth, borderRadius }) => getStyleByType({ type, height, minHeight, maxHeight, width, maxWidth, minWidth, borderRadius })};
|
|
2100
2103
|
justify-content: space-between;
|
|
2101
2104
|
gap: 8px;
|
|
2102
2105
|
border: 1px solid ${(props) => getBorderColorByStatus(props)};
|
|
2103
|
-
border-radius: 6px;
|
|
2104
2106
|
background-color: ${exports.colorTokens.neutral0};
|
|
2105
2107
|
overflow: hidden;
|
|
2106
2108
|
${({ disabled }) => disabled && react$1.css`
|
|
@@ -3089,7 +3091,8 @@ var Input = React3.forwardRef(
|
|
|
3089
3091
|
min,
|
|
3090
3092
|
max,
|
|
3091
3093
|
className,
|
|
3092
|
-
width
|
|
3094
|
+
width,
|
|
3095
|
+
borderRadius
|
|
3093
3096
|
} = _b, rest = __objRest(_b, [
|
|
3094
3097
|
"onFocus",
|
|
3095
3098
|
"onBlur",
|
|
@@ -3104,7 +3107,8 @@ var Input = React3.forwardRef(
|
|
|
3104
3107
|
"min",
|
|
3105
3108
|
"max",
|
|
3106
3109
|
"className",
|
|
3107
|
-
"width"
|
|
3110
|
+
"width",
|
|
3111
|
+
"borderRadius"
|
|
3108
3112
|
]);
|
|
3109
3113
|
const [text, setText] = React3.useState("");
|
|
3110
3114
|
const [isFocused, setIsFocused] = React3.useState(false);
|
|
@@ -3203,6 +3207,7 @@ var Input = React3.forwardRef(
|
|
|
3203
3207
|
height: "40px",
|
|
3204
3208
|
maxHeight: "40px",
|
|
3205
3209
|
"data-shoplflow": "input",
|
|
3210
|
+
borderRadius,
|
|
3206
3211
|
children: [
|
|
3207
3212
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3208
3213
|
StyledInput,
|