@granto-umbrella/umbrella-components 2.3.9 → 2.3.10

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.3.9",
3
+ "version": "2.3.10",
4
4
  "description": "Umbrella Components for React",
5
5
  "type": "module",
6
6
  "main": "src/index.js",
@@ -26,11 +26,11 @@ export const InputWrapper = styled.div`
26
26
  width: 100%;
27
27
  `;
28
28
 
29
- // absolutely positioned icon
29
+ // ícone absolutizado à esquerda
30
30
  export const IconWrapper = styled.div`
31
31
  position: absolute;
32
32
  top: 50%;
33
- left: ${semanticSizes.global.padding.md};
33
+ left: ${semanticSizes.global.padding.lg};
34
34
  transform: translateY(-50%);
35
35
  pointer-events: none;
36
36
  color: ${semanticColors.neutral[500]};
@@ -43,7 +43,7 @@ export const StyledDatePicker = styled(
43
43
  width: 100%;
44
44
  padding: ${semanticSizes.global.padding.md} ${semanticSizes.global.padding.lg};
45
45
  padding-left: calc(
46
- ${semanticSizes.global.padding.md} ${semanticSizes.global.padding.md}
46
+ ${semanticSizes.global.padding.lg} ${primitiveSizes.size.x4}
47
47
  );
48
48
  border: 1px solid ${semanticColors.neutral[300]};
49
49
  border-radius: ${semanticRadius.global.radius.md};
@@ -10,6 +10,8 @@ import {
10
10
  IconWrapper,
11
11
  } from "./DatePicker.styles";
12
12
 
13
+ import "react-datepicker/dist/react-datepicker.css";
14
+
13
15
  interface DatePickerInputProps {
14
16
  mode?: "single" | "range";
15
17
  selected: Date | [Date, Date];
@@ -0,0 +1,3 @@
1
+ // src/global.d.ts
2
+ // Allow import of any ".css" file
3
+ declare module "*.css";