@bitrise/bitkit 13.12.0 → 13.13.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.12.0",
4
+ "version": "13.13.0",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "git+ssh://git@github.com/bitrise-io/bitkit.git"
@@ -1,4 +1,4 @@
1
- import { ChangeEvent, Fragment, ReactNode, Ref, useState } from 'react';
1
+ import { ChangeEvent, ReactNode, Ref, useState } from 'react';
2
2
  import {
3
3
  FormControl,
4
4
  FormControlProps,
@@ -49,6 +49,7 @@ export interface InputProps extends UsedFormControlProps, UsedChakraInputProps {
49
49
  inputHeight?: number;
50
50
  inputRef?: Ref<HTMLInputElement>;
51
51
  inputStyle?: SystemStyleObject;
52
+ inputWrapperStyle?: SystemStyleObject;
52
53
  label?: ReactNode;
53
54
  leftIconColor?: TypeColors;
54
55
  leftIconName?: TypeIconName;
@@ -73,6 +74,7 @@ const Input = forwardRef<InputProps, 'div'>((props, ref) => {
73
74
  inputHeight,
74
75
  inputRef,
75
76
  inputStyle,
77
+ inputWrapperStyle,
76
78
  isDisabled,
77
79
  isInvalid,
78
80
  isLoading,
@@ -125,8 +127,10 @@ const Input = forwardRef<InputProps, 'div'>((props, ref) => {
125
127
  value,
126
128
  };
127
129
 
128
- let InputWrapper: any = Fragment;
129
- const inputWrapperProps: SystemStyleObject = {};
130
+ let InputWrapper: any = Box;
131
+ const inputWrapperProps: SystemStyleObject = {
132
+ ...inputWrapperStyle,
133
+ };
130
134
  if (leftIconName || rightAddon || rightIconName) {
131
135
  InputWrapper = InputGroup;
132
136
  inputWrapperProps.zIndex = 0;