@bitrise/bitkit 13.345.0 → 13.346.0

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@bitrise/bitkit",
3
3
  "description": "Bitrise React component library",
4
- "version": "13.345.0",
4
+ "version": "13.346.0",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "git+ssh://git@github.com/bitrise-io/bitkit.git"
@@ -53,7 +53,7 @@ const Button = forwardRef<ButtonProps, 'button'>((props, ref) => {
53
53
  properties.iconSpacing = properties.children ? '8' : '4';
54
54
  return (
55
55
  <ChakraButton {...properties} ref={ref}>
56
- <span>{children}</span>
56
+ {typeof children === 'string' ? <span>{children}</span> : children}
57
57
  </ChakraButton>
58
58
  );
59
59
  });
@@ -156,10 +156,12 @@ const Input = forwardRef<InputProps, 'div'>((props, ref) => {
156
156
 
157
157
  const RightContentWrapper = rightAddonPlacement === 'inside' ? InputRightElement : InputRightAddon;
158
158
  const inputRightPadding =
159
- rightIconName || (rightAddon && rightAddonPlacement === 'inside') ? '43px' : inputInlinePadding;
159
+ rightIconName || (rightAddon && rightAddonPlacement === 'inside') ? '43' : inputInlinePadding;
160
160
 
161
161
  const LeftContentWrapper = leftAddonPlacement === 'inside' ? InputLeftElement : InputLeftAddon;
162
- const inputLeftPadding = leftIconName || (leftAddon && leftAddonPlacement === 'inside') ? '43px' : inputInlinePadding;
162
+ const leftPaddingWithIcon = variant === 'mobile' ? '47' : '43';
163
+ const inputLeftPadding =
164
+ leftIconName || (leftAddon && leftAddonPlacement === 'inside') ? leftPaddingWithIcon : inputInlinePadding;
163
165
 
164
166
  const onInputChange = (e: ChangeEvent<HTMLInputElement>) => {
165
167
  setValueLength(e.currentTarget.value.length);