dhre-ui-kit 0.0.89 → 0.0.91

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": "dhre-ui-kit",
3
- "version": "0.0.89",
3
+ "version": "0.0.91",
4
4
  "main": "src/index.ts",
5
5
  "files": [
6
6
  "src",
@@ -60,7 +60,6 @@ const styles = StyleSheet.create({
60
60
  justifyContent: 'center',
61
61
  },
62
62
  countStepLabel: {
63
-
64
63
  marginTop: 11,
65
64
  },
66
65
  separator: {
@@ -20,6 +20,8 @@ interface CommonTextInputProps {
20
20
  maxLength?: number;
21
21
  errorMessage?: string;
22
22
  editable?: boolean;
23
+ textColor?: string;
24
+ labelColor?: string;
23
25
  }
24
26
 
25
27
  const CommonTextInput: React.FC<CommonTextInputProps> = ({
@@ -35,6 +37,8 @@ const CommonTextInput: React.FC<CommonTextInputProps> = ({
35
37
  maxLength,
36
38
  errorMessage,
37
39
  editable = true,
40
+ textColor = theme.CONTENT_PRIMARY['light'],
41
+ labelColor,
38
42
  }) => {
39
43
  return (
40
44
  <>
@@ -49,9 +53,14 @@ const CommonTextInput: React.FC<CommonTextInputProps> = ({
49
53
  onChangeText={onChangeText}
50
54
  secureTextEntry={isSecureTextEntry}
51
55
  keyboardType={keyboardType}
52
- theme={{colors: {primary: DHRE_COLORS_TEXT.DH_BLACK}}}
56
+ theme={{
57
+ colors: {
58
+ primary: labelColor ? labelColor : DHRE_COLORS_TEXT.DH_BLACK,
59
+ },
60
+ }}
53
61
  style={[errorMessage ? styles.errorInput : styles.input, inputStyle]}
54
62
  maxLength={maxLength}
63
+ textColor={textColor}
55
64
  placeholder={placeholderText}
56
65
  editable={editable}
57
66
  />
@@ -77,7 +77,7 @@ const styles = StyleSheet.create({
77
77
  },
78
78
  rightIconContainer: {
79
79
  position: 'absolute',
80
- right: 10,
80
+ left: 10,
81
81
  top: 10,
82
82
  },
83
83
  });
@@ -10,7 +10,7 @@ const theme = {
10
10
  dark: '#212121',
11
11
  },
12
12
  [Theme.SURFACE_TERTIARY]: {
13
- light: '#0000001A',
13
+ light: '#E1E1E1',
14
14
  dark: '#373737',
15
15
  },
16
16
  [Theme.SURFACE_STATIC]: {
@@ -22,8 +22,8 @@ const theme = {
22
22
  dark: '#D92D27',
23
23
  },
24
24
  [Theme.SURFACE_BRAND_TRANSPARENT_STATIC]: {
25
- light: '#D92D3E',
26
- dark: '#D92D3E',
25
+ light: '#D92D3E33',
26
+ dark: '#D92D3E33',
27
27
  },
28
28
  [Theme.SURFACE_DISABLE]: {
29
29
  light: '#E1E1E1',
@@ -34,12 +34,12 @@ const theme = {
34
34
  dark: '#FFFFFF',
35
35
  },
36
36
  [Theme.SURFACE_INVERTED_TRANSPARENT]: {
37
- light: '#686868',
38
- dark: '#FFFFFF',
37
+ light: '#68686833',
38
+ dark: '#FFFFFF33',
39
39
  },
40
40
  [Theme.SURFACE_DROP_SHADOW]: {
41
41
  light: '#CECECE',
42
- dark: '#373737',
42
+ dark: '#000000',
43
43
  },
44
44
  [Theme.SURFACE_BLUR]: {
45
45
  light: '#000000B2',
@@ -67,7 +67,7 @@ const theme = {
67
67
  dark: '#FFFFFF',
68
68
  },
69
69
  [Theme.CONTENT_PRIMARY_STATIC]: {
70
- light: '#0000001A',
70
+ light: '#686868',
71
71
  dark: '#686868',
72
72
  },
73
73
  [Theme.CONTENT_SECONDRY_STATIC]: {
@@ -108,8 +108,8 @@ const theme = {
108
108
  dark: '#404040',
109
109
  },
110
110
  [Theme.BORDER_SEPRATOR]: {
111
- light: '#282828',
112
- dark: '#FFFFFF',
111
+ light: '#F5F5F5',
112
+ dark: '#282828',
113
113
  },
114
114
  [Theme.BORDER_SEPERATOR_HEADER]: {
115
115
  light: '#E1E1E1',