@granto-umbrella/umbrella-components 2.0.8 → 2.1.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,6 +1,6 @@
1
1
  {
2
2
  "name": "@granto-umbrella/umbrella-components",
3
- "version": "2.0.8",
3
+ "version": "2.1.0",
4
4
  "description": "Umbrella Components for React",
5
5
  "type": "module",
6
6
  "main": "src/index.js",
@@ -40,6 +40,8 @@ const Input = forwardRef<HTMLInputElement, InputProps>(
40
40
  style,
41
41
  register,
42
42
  testId,
43
+ className,
44
+ onBlur,
43
45
  },
44
46
  ref
45
47
  ) => {
@@ -62,6 +64,8 @@ const Input = forwardRef<HTMLInputElement, InputProps>(
62
64
  placeholder={placeholder}
63
65
  value={value}
64
66
  onChange={onChange}
67
+ onBlur={onBlur}
68
+ className={className}
65
69
  disabled={disabled}
66
70
  />
67
71
  </InputWrapper>
@@ -4,6 +4,8 @@ export interface InputProps {
4
4
  placeholder?: string;
5
5
  value?: string;
6
6
  onChange?: (event: React.ChangeEvent<HTMLInputElement>) => void;
7
+ onBlur?: () => void;
8
+ className?: string;
7
9
  error?: boolean;
8
10
  disabled?: boolean;
9
11
  icon?: React.ReactNode;
@@ -88,4 +88,8 @@ export const CustomSelect = styled(Select).attrs({
88
88
  .react-select__indicator-separator {
89
89
  background-color: ${semanticColors.base.background};
90
90
  }
91
+
92
+ .react-select__input-container {
93
+ padding: 0px;
94
+ }
91
95
  `;
@@ -41,6 +41,7 @@ export const StyledTextarea = styled.textarea`
41
41
  }
42
42
 
43
43
  &:disabled {
44
+ color: ${semanticColors.neutral[300]};
44
45
  background-color: ${semanticColors.neutral[100]};
45
46
  cursor: not-allowed;
46
47
  }