@mackin.com/styleguide 9.6.0 → 9.6.1

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.
Files changed (2) hide show
  1. package/index.js +7 -1
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -3667,7 +3667,13 @@ const SearchBox = React__namespace.forwardRef((props, ref) => {
3667
3667
  const rightControls = clearButton ? React__namespace.createElement(React__namespace.Fragment, null,
3668
3668
  clearButton,
3669
3669
  saveButton) : saveButton;
3670
- const input = (React__namespace.createElement(TextInput, Object.assign({}, inputProps, { ref: ref, wrapperClassName: props.inputWrapperClassName, className: props.inputClassName, rightControl: rightControls })));
3670
+ let clearButtonInputStyles;
3671
+ if (clearButton) {
3672
+ clearButtonInputStyles = css.css({
3673
+ paddingRight: `calc(${theme.controls.height} + ${theme.controls.heightSmall})`
3674
+ });
3675
+ }
3676
+ const input = (React__namespace.createElement(TextInput, Object.assign({}, inputProps, { ref: ref, wrapperClassName: props.inputWrapperClassName, className: css.cx(clearButtonInputStyles, props.inputClassName), rightControl: rightControls })));
3671
3677
  const searchBoxWrapperStyles = css.cx(css.css({
3672
3678
  label: 'SearchBox'
3673
3679
  }), props.wrapperClassName);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mackin.com/styleguide",
3
- "version": "9.6.0",
3
+ "version": "9.6.1",
4
4
  "description": "",
5
5
  "main": "./index.js",
6
6
  "types": "./index.d.ts",