@invoicebox/ui 0.1.0-alpha.284 → 0.1.0-alpha.285

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.
@@ -64,6 +64,13 @@ var SearchInput = exports.SearchInput = /*#__PURE__*/(0, _react.forwardRef)(func
64
64
  return undefined;
65
65
  }
66
66
  }, [inFocus, placeholder, value, useModernStyles]);
67
+ var paddingOptions = (0, _react.useMemo)(function () {
68
+ if ((value || inFocus) && useModernStyles && inputLabel) {
69
+ return _constants.MODERN_STYLE_SIZE_PARAMS_MAP[size];
70
+ } else {
71
+ return _constants.SIZE_PARAMS_MAP[size];
72
+ }
73
+ }, [value, inFocus, useModernStyles, size, inputLabel]);
67
74
  return /*#__PURE__*/_react["default"].createElement(_InputLabel.InputLabel, {
68
75
  useModernStyles: useModernStyles,
69
76
  size: size,
@@ -82,7 +89,7 @@ var SearchInput = exports.SearchInput = /*#__PURE__*/(0, _react.forwardRef)(func
82
89
  name: name,
83
90
  maxLength: maxLength,
84
91
  isOnlyNumbers: isOnlyNumbers
85
- }, _constants.SIZE_PARAMS_MAP[size], {
92
+ }, paddingOptions, {
86
93
  useModernStyles: useModernStyles
87
94
  })), /*#__PURE__*/_react["default"].createElement(S.IconWrapper, {
88
95
  $inFocus: inFocus,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@invoicebox/ui",
3
- "version": "0.1.0-alpha.284",
3
+ "version": "0.1.0-alpha.285",
4
4
  "description": "Invoicebox UI",
5
5
  "license": "Apache License 2.0",
6
6
  "scripts": {