@shoplflow/base 0.31.5 → 0.31.7

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 CHANGED
@@ -2074,33 +2074,47 @@ var getStyleByType = ({
2074
2074
  maxHeight,
2075
2075
  width,
2076
2076
  minWidth,
2077
- maxWidth
2077
+ maxWidth,
2078
+ borderRadius,
2079
+ customNumberInputHeight
2078
2080
  }) => {
2079
2081
  if (type === "number") {
2080
2082
  return react$1.css`
2081
- width: 64px;
2082
- height: 32px;
2083
+ width: ${width || "64px"};
2084
+ height: ${customNumberInputHeight || "32px"};
2085
+ border-radius: ${borderRadius ? exports.borderRadiusTokens[borderRadius] : "6px"};
2083
2086
  `;
2084
2087
  }
2085
2088
  return react$1.css`
2086
- width: ${width != null ? width : "100%"};
2087
- min-width: ${minWidth != null ? minWidth : "initial"};
2088
- max-width: ${maxWidth != null ? maxWidth : "initial"};
2089
- height: ${height != null ? height : "initial"};
2090
- min-height: ${minHeight != null ? minHeight : "initial"};
2091
- max-height: ${maxHeight != null ? maxHeight : "initial"};
2089
+ width: ${width || "100%"};
2090
+ min-width: ${minWidth || "initial"};
2091
+ max-width: ${maxWidth || "initial"};
2092
+ height: ${height || "initial"};
2093
+ min-height: ${minHeight || "initial"};
2094
+ max-height: ${maxHeight || "initial"};
2095
+ border-radius: ${borderRadius ? exports.borderRadiusTokens[borderRadius] : "6px"};
2092
2096
  `;
2093
2097
  };
2094
2098
  var InputWrapper = styled6__default.default.label`
2095
2099
  position: relative;
2096
2100
  display: flex;
2097
2101
  align-items: center;
2102
+ border-radius: 6px;
2098
2103
  flex-direction: ${({ direction }) => direction || "row"};
2099
- ${({ type, height, minHeight, maxHeight, width, maxWidth, minWidth }) => getStyleByType({ type, height, minHeight, maxHeight, width, maxWidth, minWidth })};
2104
+ ${({ type, height, minHeight, maxHeight, width, maxWidth, minWidth, borderRadius, customNumberInputHeight }) => getStyleByType({
2105
+ customNumberInputHeight,
2106
+ type,
2107
+ height,
2108
+ minHeight,
2109
+ maxHeight,
2110
+ width,
2111
+ maxWidth,
2112
+ minWidth,
2113
+ borderRadius
2114
+ })};
2100
2115
  justify-content: space-between;
2101
2116
  gap: 8px;
2102
2117
  border: 1px solid ${(props) => getBorderColorByStatus(props)};
2103
- border-radius: 6px;
2104
2118
  background-color: ${exports.colorTokens.neutral0};
2105
2119
  overflow: hidden;
2106
2120
  ${({ disabled }) => disabled && react$1.css`
@@ -3089,7 +3103,9 @@ var Input = React3.forwardRef(
3089
3103
  min,
3090
3104
  max,
3091
3105
  className,
3092
- width
3106
+ width,
3107
+ borderRadius,
3108
+ customNumberInputHeight
3093
3109
  } = _b, rest = __objRest(_b, [
3094
3110
  "onFocus",
3095
3111
  "onBlur",
@@ -3104,7 +3120,9 @@ var Input = React3.forwardRef(
3104
3120
  "min",
3105
3121
  "max",
3106
3122
  "className",
3107
- "width"
3123
+ "width",
3124
+ "borderRadius",
3125
+ "customNumberInputHeight"
3108
3126
  ]);
3109
3127
  const [text, setText] = React3.useState("");
3110
3128
  const [isFocused, setIsFocused] = React3.useState(false);
@@ -3203,6 +3221,8 @@ var Input = React3.forwardRef(
3203
3221
  height: "40px",
3204
3222
  maxHeight: "40px",
3205
3223
  "data-shoplflow": "input",
3224
+ borderRadius,
3225
+ customNumberInputHeight,
3206
3226
  children: [
3207
3227
  /* @__PURE__ */ jsxRuntime.jsx(
3208
3228
  StyledInput,