decathlon-ui 0.3.0 → 0.3.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.
@@ -20,6 +20,7 @@ export * from "./quick-add-product-card/index";
20
20
  export * from "./radio/index";
21
21
  export * from "./range-slider/index";
22
22
  export * from "./search-button/index";
23
+ export * from "./select/index";
23
24
  export * from "./seller-box/index";
24
25
  export * from "./toggle-switch/index";
25
26
  export * from "./typography/index";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAClC,cAAc,uBAAuB,CAAC;AACtC,cAAc,eAAe,CAAC;AAC9B,cAAc,yBAAyB,CAAC;AACxC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,cAAc,CAAC;AAC7B,cAAc,yBAAyB,CAAC;AACxC,cAAc,uBAAuB,CAAC;AACtC,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,oBAAoB,CAAC;AACnC,cAAc,sBAAsB,CAAC;AACrC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,wBAAwB,CAAC;AACvC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,eAAe,CAAC;AAC9B,cAAc,sBAAsB,CAAC;AACrC,cAAc,uBAAuB,CAAC;AACtC,cAAc,oBAAoB,CAAC;AACnC,cAAc,uBAAuB,CAAC;AACtC,cAAc,oBAAoB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAClC,cAAc,uBAAuB,CAAC;AACtC,cAAc,eAAe,CAAC;AAC9B,cAAc,yBAAyB,CAAC;AACxC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,cAAc,CAAC;AAC7B,cAAc,yBAAyB,CAAC;AACxC,cAAc,uBAAuB,CAAC;AACtC,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,oBAAoB,CAAC;AACnC,cAAc,sBAAsB,CAAC;AACrC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,wBAAwB,CAAC;AACvC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,eAAe,CAAC;AAC9B,cAAc,sBAAsB,CAAC;AACrC,cAAc,uBAAuB,CAAC;AACtC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,oBAAoB,CAAC;AACnC,cAAc,uBAAuB,CAAC;AACtC,cAAc,oBAAoB,CAAC"}
@@ -20,6 +20,7 @@ export * from "./quick-add-product-card/index";
20
20
  export * from "./radio/index";
21
21
  export * from "./range-slider/index";
22
22
  export * from "./search-button/index";
23
+ export * from "./select/index";
23
24
  export * from "./seller-box/index";
24
25
  export * from "./toggle-switch/index";
25
26
  export * from "./typography/index";
@@ -1 +1 @@
1
- {"version":3,"file":"error-message.d.ts","sourceRoot":"","sources":["../../../../src/components/input/error-message/error-message.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAM/B,UAAU,iBAAiB;IACzB,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CAoBpD,CAAC"}
1
+ {"version":3,"file":"error-message.d.ts","sourceRoot":"","sources":["../../../../src/components/input/error-message/error-message.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAO/B,UAAU,iBAAiB;IACzB,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CA+CpD,CAAC"}
@@ -1,30 +1,33 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { StyleSheet, Text, View } from "react-native";
3
+ import { useTheme } from "../../../themes";
4
+ import { ErrorWarningIcon } from "../../../icons";
3
5
  export const ErrorMessage = ({ message, testID, }) => {
4
- return (_jsxs(View, { style: styles.container, testID: testID, accessibilityRole: "alert", accessible: true, children: [_jsx(View, { style: styles.iconContainer, children: _jsx(Text, { children: "!" }) }), _jsx(Text, { style: styles.message, accessibilityRole: "text", children: message })] }));
6
+ const theme = useTheme();
7
+ const styles = StyleSheet.create({
8
+ container: {
9
+ display: "flex",
10
+ width: "100%",
11
+ paddingVertical: theme.spacing.xxs,
12
+ paddingHorizontal: theme.spacing.xxs,
13
+ flexDirection: "row",
14
+ alignItems: "center",
15
+ gap: theme.spacing.xxs,
16
+ },
17
+ iconContainer: {
18
+ paddingTop: 5,
19
+ width: 18,
20
+ },
21
+ icon: {
22
+ width: 16,
23
+ height: 16,
24
+ },
25
+ message: {
26
+ flex: 1,
27
+ color: theme.colors.textError,
28
+ fontSize: theme.fonts.sizes.xs,
29
+ fontFamily: theme.fonts.inter.regular,
30
+ },
31
+ });
32
+ return (_jsxs(View, { style: styles.container, testID: testID, accessibilityRole: "alert", accessible: true, children: [_jsx(View, { style: styles.iconContainer, children: _jsx(ErrorWarningIcon, { stroke: theme.colors.borderError, size: 18 }) }), _jsx(Text, { style: styles.message, accessibilityRole: "text", children: message })] }));
5
33
  };
6
- const styles = StyleSheet.create({
7
- container: {
8
- display: "flex",
9
- width: "100%",
10
- paddingVertical: 4,
11
- paddingHorizontal: 4,
12
- flexDirection: "row",
13
- alignItems: "center",
14
- gap: 4,
15
- },
16
- iconContainer: {
17
- paddingTop: 2,
18
- width: 16,
19
- },
20
- icon: {
21
- width: 16,
22
- height: 16,
23
- },
24
- message: {
25
- flex: 1,
26
- color: "#CC212A",
27
- fontSize: 14,
28
- fontFamily: "Inter",
29
- },
30
- });
@@ -1,6 +1,7 @@
1
1
  import * as React from "react";
2
+ import { TextInputProps } from "react-native";
2
3
  type MaskType = "cpf" | "phone" | "date" | "cep" | "custom";
3
- interface InputProps {
4
+ interface InputProps extends TextInputProps {
4
5
  label: string;
5
6
  placeholder?: string;
6
7
  error?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"input.component.d.ts","sourceRoot":"","sources":["../../../src/components/input/input.component.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAO/B,KAAK,QAAQ,GAAG,KAAK,GAAG,OAAO,GAAG,MAAM,GAAG,KAAK,GAAG,QAAQ,CAAC;AAE5D,UAAU,UAAU;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,QAAQ,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACtC,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAyKD,eAAO,MAAM,KAAK,wCAA6B,CAAC"}
1
+ {"version":3,"file":"input.component.d.ts","sourceRoot":"","sources":["../../../src/components/input/input.component.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAA6B,cAAc,EAAQ,MAAM,cAAc,CAAC;AAK/E,KAAK,QAAQ,GAAG,KAAK,GAAG,OAAO,GAAG,MAAM,GAAG,KAAK,GAAG,QAAQ,CAAC;AAE5D,UAAU,UAAW,SAAQ,cAAc;IACzC,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,QAAQ,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACtC,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AA0KD,eAAO,MAAM,KAAK,wCAA6B,CAAC"}
@@ -56,7 +56,7 @@ const applyMask = (value, maskType, customMask) => {
56
56
  return value;
57
57
  }
58
58
  };
59
- const InputComponent = ({ label, placeholder, error, value, disabled = false, maskType, customMask, mask, pattern, onChangeText, testID, }) => {
59
+ const InputComponent = ({ label, placeholder, error, value, disabled = false, maskType, customMask, mask, pattern, onChangeText, testID, ...rest }) => {
60
60
  const [isFocused, setIsFocused] = React.useState(false);
61
61
  const focusAnimation = React.useRef(new Animated.Value(0)).current;
62
62
  const styles = useInputStyles();
@@ -90,7 +90,6 @@ const InputComponent = ({ label, placeholder, error, value, disabled = false, ma
90
90
  return (_jsxs(View, { style: styles.container, accessible: true, testID: testID, accessibilityLabel: `${label} input field`, children: [_jsx(View, { style: styles.labelWrapper, children: _jsx(Text, { style: [
91
91
  styles.labelText,
92
92
  disabled && styles.disabledText,
93
- isFocused && styles.focusedLabel,
94
93
  ], accessibilityRole: "text", children: label }) }), _jsxs(Animated.View, { style: [
95
94
  styles.inputContainer,
96
95
  error && styles.inputError,
@@ -99,7 +98,7 @@ const InputComponent = ({ label, placeholder, error, value, disabled = false, ma
99
98
  { borderWidth },
100
99
  ], children: [_jsx(TextInput, { style: [styles.input, disabled && styles.inputTextDisabled], placeholder: placeholder, value: value, onChangeText: handleChangeText, editable: !disabled, onFocus: () => setIsFocused(true), onBlur: () => setIsFocused(false), accessibilityLabel: label, accessibilityState: {
101
100
  disabled: disabled,
102
- }, placeholderTextColor: "#A4ADB7" }), isFocused && _jsx(View, { style: styles.cursor })] }), error && _jsx(ErrorMessage, { message: error })] }));
101
+ }, placeholderTextColor: "#A4ADB7", ...rest }), isFocused && _jsx(View, { style: styles.cursor })] }), error && _jsx(ErrorMessage, { message: error })] }));
103
102
  };
104
103
  export const Input = React.memo(InputComponent);
105
104
  Input.displayName = "Input";
@@ -4,10 +4,11 @@ export declare const useInputStyles: () => {
4
4
  width: "100%";
5
5
  paddingBottom: 8;
6
6
  flexDirection: "column";
7
+ gap: 8;
7
8
  };
8
9
  labelWrapper: {
9
10
  alignSelf: "stretch";
10
- gap: 4;
11
+ gap: 8;
11
12
  };
12
13
  labelText: {
13
14
  fontSize: number;
@@ -18,35 +19,35 @@ export declare const useInputStyles: () => {
18
19
  disabledText: {
19
20
  color: string;
20
21
  };
21
- focusedLabel: {
22
- color: string;
23
- };
24
22
  inputContainer: {
25
23
  flexDirection: "row";
26
24
  alignItems: "center";
27
25
  backgroundColor: string;
28
- borderColor: string;
29
- padding: number;
30
- paddingHorizontal: number;
26
+ borderColor: "#B3BAC3";
27
+ paddingVertical: 20;
28
+ paddingHorizontal: 16;
31
29
  };
32
30
  input: {
33
31
  flex: number;
34
- fontSize: number;
35
- color: string;
36
- padding: number;
32
+ fontSize: 16;
33
+ lineHeight: 24;
34
+ verticalAlign: "middle";
35
+ letterSpacing: number;
36
+ color: "#101010";
37
+ fontFamily: "Inter-Regular";
37
38
  };
38
39
  inputError: {
39
- borderColor: string;
40
+ borderColor: "#E3262F";
40
41
  };
41
42
  inputDisabled: {
42
- backgroundColor: string;
43
- borderColor: string;
43
+ borderColor: "#EFF1F3";
44
44
  };
45
45
  inputTextDisabled: {
46
46
  color: string;
47
47
  };
48
48
  inputFocused: {
49
- borderColor: string;
49
+ borderColor: "#3643BA";
50
+ borderWidth: number;
50
51
  };
51
52
  cursor: {
52
53
  width: number;
@@ -1 +1 @@
1
- {"version":3,"file":"input.styles.d.ts","sourceRoot":"","sources":["../../../src/components/input/input.styles.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4D1B,CAAC"}
1
+ {"version":3,"file":"input.styles.d.ts","sourceRoot":"","sources":["../../../src/components/input/input.styles.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6D1B,CAAC"}
@@ -8,10 +8,11 @@ export const useInputStyles = () => {
8
8
  width: "100%",
9
9
  paddingBottom: theme.spacing.xs,
10
10
  flexDirection: "column",
11
+ gap: theme.spacing.xs,
11
12
  },
12
13
  labelWrapper: {
13
14
  alignSelf: "stretch",
14
- gap: theme.spacing.xxs,
15
+ gap: theme.spacing.xs,
15
16
  },
16
17
  labelText: {
17
18
  fontSize: 14,
@@ -22,35 +23,35 @@ export const useInputStyles = () => {
22
23
  disabledText: {
23
24
  color: "#A4ADB7",
24
25
  },
25
- focusedLabel: {
26
- color: "#007DBC",
27
- },
28
26
  inputContainer: {
29
27
  flexDirection: "row",
30
28
  alignItems: "center",
31
- backgroundColor: "#FFFFFF",
32
- borderColor: "#A4ADB7",
33
- padding: 20,
34
- paddingHorizontal: 16,
29
+ backgroundColor: "transparent",
30
+ borderColor: theme.colors.borderPrimary,
31
+ paddingVertical: theme.spacing.mmd2,
32
+ paddingHorizontal: theme.spacing.md,
35
33
  },
36
34
  input: {
37
35
  flex: 1,
38
- fontSize: 16,
39
- color: "#15181B",
40
- padding: 0,
36
+ fontSize: theme.fonts.sizes.sm,
37
+ lineHeight: theme.fonts.sizes.lg,
38
+ verticalAlign: "middle",
39
+ letterSpacing: 0,
40
+ color: theme.colors.textPrimary,
41
+ fontFamily: theme.fonts.inter.regular,
41
42
  },
42
43
  inputError: {
43
- borderColor: "#FF2934",
44
+ borderColor: theme.colors.borderError,
44
45
  },
45
46
  inputDisabled: {
46
- backgroundColor: "#FFFFFF",
47
- borderColor: "#C3C9CF",
47
+ borderColor: theme.colors.borderDisabled,
48
48
  },
49
49
  inputTextDisabled: {
50
50
  color: "#A4ADB7",
51
51
  },
52
52
  inputFocused: {
53
- borderColor: "#007DBC",
53
+ borderColor: theme.colors.borderInformation,
54
+ borderWidth: 2,
54
55
  },
55
56
  cursor: {
56
57
  width: 1,
@@ -1 +1 @@
1
- {"version":3,"file":"select.component.d.ts","sourceRoot":"","sources":["../../../src/components/select/select.component.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAmF7C,eAAO,MAAM,MAAM,yCAA8B,CAAC"}
1
+ {"version":3,"file":"select.component.d.ts","sourceRoot":"","sources":["../../../src/components/select/select.component.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAkF7C,eAAO,MAAM,MAAM,yCAA8B,CAAC"}
@@ -25,13 +25,12 @@ const SelectComponent = ({ label, placeholder, error, value, disabled = false, o
25
25
  };
26
26
  return (_jsxs(View, { style: styles.container, accessible: true, testID: testID, accessibilityLabel: `${label} select field`, children: [_jsx(View, { style: styles.labelWrapper, children: _jsx(Text, { style: [
27
27
  styles.labelText,
28
- disabled && styles.disabledText,
29
- isFocused && styles.focusedLabel,
28
+ disabled && styles.disabledText
30
29
  ], accessibilityRole: "text", children: label }) }), _jsx(TouchableOpacity, { onPress: handlePress, disabled: disabled, activeOpacity: 0.7, children: _jsxs(Animated.View, { style: [
31
30
  styles.selectContainer,
32
31
  error && styles.selectError,
33
32
  disabled && styles.selectDisabled,
34
- isFocused && styles.selectFocused,
33
+ value && styles.selectFocused,
35
34
  ], children: [_jsx(Text, { style: [
36
35
  styles.selectText,
37
36
  !value && styles.placeholderText,
@@ -4,52 +4,53 @@ export declare const useSelectStyles: () => {
4
4
  width: "100%";
5
5
  paddingBottom: 8;
6
6
  flexDirection: "column";
7
+ gap: 8;
7
8
  };
8
9
  labelWrapper: {
9
10
  alignSelf: "stretch";
10
- gap: 4;
11
+ gap: 8;
11
12
  };
12
13
  labelText: {
13
14
  fontSize: number;
14
15
  lineHeight: number;
15
- color: string;
16
- fontFamily: string;
16
+ color: "#101010";
17
+ fontFamily: "Inter-Regular";
17
18
  };
18
19
  disabledText: {
19
- color: string;
20
- };
21
- focusedLabel: {
22
- color: string;
20
+ color: "#949494";
23
21
  };
24
22
  selectContainer: {
25
23
  flexDirection: "row";
26
24
  alignItems: "center";
27
25
  backgroundColor: string;
28
- borderColor: string;
29
26
  borderWidth: number;
30
- padding: number;
31
- paddingHorizontal: number;
27
+ borderColor: "#B3BAC3";
28
+ paddingVertical: 20;
29
+ paddingHorizontal: 16;
32
30
  };
33
31
  selectText: {
34
32
  flex: number;
35
- fontSize: number;
36
- color: string;
33
+ fontSize: 16;
34
+ lineHeight: 24;
35
+ verticalAlign: "middle";
36
+ letterSpacing: number;
37
+ color: "#101010";
38
+ fontFamily: "Inter-Regular";
37
39
  };
38
40
  placeholderText: {
39
- color: string;
41
+ color: "#949494";
40
42
  };
41
43
  selectError: {
42
- borderColor: string;
44
+ borderColor: "#E3262F";
43
45
  };
44
46
  selectDisabled: {
45
- backgroundColor: string;
46
- borderColor: string;
47
+ borderColor: "#EFF1F3";
47
48
  };
48
49
  selectTextDisabled: {
49
- color: string;
50
+ color: "#949494";
50
51
  };
51
52
  selectFocused: {
52
- borderColor: string;
53
+ borderColor: "#3643BA";
53
54
  borderWidth: number;
54
55
  };
55
56
  chevronContainer: {
@@ -1 +1 @@
1
- {"version":3,"file":"select.styles.d.ts","sourceRoot":"","sources":["../../../src/components/select/select.styles.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6D3B,CAAC"}
1
+ {"version":3,"file":"select.styles.d.ts","sourceRoot":"","sources":["../../../src/components/select/select.styles.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8D3B,CAAC"}
@@ -8,52 +8,53 @@ export const useSelectStyles = () => {
8
8
  width: "100%",
9
9
  paddingBottom: theme.spacing.xs,
10
10
  flexDirection: "column",
11
+ gap: theme.spacing.xs,
11
12
  },
12
13
  labelWrapper: {
13
14
  alignSelf: "stretch",
14
- gap: theme.spacing.xxs,
15
+ gap: theme.spacing.xs,
15
16
  },
16
17
  labelText: {
17
18
  fontSize: 14,
18
19
  lineHeight: 20,
19
- color: "#15181B",
20
- fontFamily: "Inter",
20
+ color: theme.colors.textPrimary,
21
+ fontFamily: theme.fonts.inter.regular,
21
22
  },
22
23
  disabledText: {
23
- color: "#A4ADB7",
24
- },
25
- focusedLabel: {
26
- color: "#007DBC",
24
+ color: theme.colors.textDisabled,
27
25
  },
28
26
  selectContainer: {
29
27
  flexDirection: "row",
30
28
  alignItems: "center",
31
- backgroundColor: "#FFFFFF",
32
- borderColor: "#A4ADB7",
29
+ backgroundColor: "transparent",
33
30
  borderWidth: 1,
34
- padding: 20,
35
- paddingHorizontal: 16,
31
+ borderColor: theme.colors.borderPrimary,
32
+ paddingVertical: theme.spacing.mmd2,
33
+ paddingHorizontal: theme.spacing.md,
36
34
  },
37
35
  selectText: {
38
36
  flex: 1,
39
- fontSize: 16,
40
- color: "#15181B",
37
+ fontSize: theme.fonts.sizes.sm,
38
+ lineHeight: theme.fonts.sizes.lg,
39
+ verticalAlign: "middle",
40
+ letterSpacing: 0,
41
+ color: theme.colors.textPrimary,
42
+ fontFamily: theme.fonts.inter.regular,
41
43
  },
42
44
  placeholderText: {
43
- color: "#A4ADB7",
45
+ color: theme.colors.textDisabled,
44
46
  },
45
47
  selectError: {
46
- borderColor: "#FF2934",
48
+ borderColor: theme.colors.borderError,
47
49
  },
48
50
  selectDisabled: {
49
- backgroundColor: "#FFFFFF",
50
- borderColor: "#C3C9CF",
51
+ borderColor: theme.colors.borderDisabled,
51
52
  },
52
53
  selectTextDisabled: {
53
- color: "#A4ADB7",
54
+ color: theme.colors.textDisabled,
54
55
  },
55
56
  selectFocused: {
56
- borderColor: "#007DBC",
57
+ borderColor: theme.colors.borderInformation,
57
58
  borderWidth: 2,
58
59
  },
59
60
  chevronContainer: {
@@ -130,6 +130,7 @@ declare const useTheme: () => {
130
130
  readonly default: 14;
131
131
  readonly md: 16;
132
132
  readonly mmd: 21;
133
+ readonly mmd2: 20;
133
134
  readonly lg: 24;
134
135
  readonly xl: 32;
135
136
  readonly xxl: 48;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/themes/index.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,QAAQ,CAAC;AAC1B,OAAO,KAAK,MAAM,SAAS,CAAC;AAE5B,QAAA,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAEb,CAAC;AAEF,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,QAAQ,EAAE,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/themes/index.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,QAAQ,CAAC;AAC1B,OAAO,KAAK,MAAM,SAAS,CAAC;AAE5B,QAAA,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAEb,CAAC;AAEF,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,QAAQ,EAAE,CAAC"}
@@ -128,6 +128,7 @@ declare const light: {
128
128
  readonly default: 14;
129
129
  readonly md: 16;
130
130
  readonly mmd: 21;
131
+ readonly mmd2: 20;
131
132
  readonly lg: 24;
132
133
  readonly xl: 32;
133
134
  readonly xxl: 48;
@@ -1 +1 @@
1
- {"version":3,"file":"light.d.ts","sourceRoot":"","sources":["../../src/themes/light.ts"],"names":[],"mappings":"AAaA,QAAA,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuMD,CAAC;AAEX,eAAe,KAAK,CAAC"}
1
+ {"version":3,"file":"light.d.ts","sourceRoot":"","sources":["../../src/themes/light.ts"],"names":[],"mappings":"AAaA,QAAA,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwMD,CAAC;AAEX,eAAe,KAAK,CAAC"}
@@ -91,6 +91,7 @@ const light = {
91
91
  default: 14,
92
92
  md: 16,
93
93
  mmd: 21,
94
+ mmd2: 20,
94
95
  lg: 24,
95
96
  xl: 32,
96
97
  xxl: 48,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "decathlon-ui",
3
- "version": "0.3.0",
3
+ "version": "0.3.1",
4
4
  "description": "Biblioteca de componentes React Native com Storybook e documentação via GitHub Pages.",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",