dhre-ui-kit 0.0.90 → 0.0.92

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.90",
3
+ "version": "0.0.92",
4
4
  "main": "src/index.ts",
5
5
  "files": [
6
6
  "src",
@@ -1,5 +1,5 @@
1
1
  import React, {useEffect} from 'react';
2
- import {StyleSheet, View} from 'react-native';
2
+ import {StyleSheet, TextStyle, View} from 'react-native';
3
3
  import * as Progress from 'react-native-progress';
4
4
  import {ShapeType} from '../../utils/appEnum';
5
5
  import CustomText from '../customText';
@@ -20,6 +20,7 @@ interface CustomProgressBarProps {
20
20
  increment?: number; // Optional increment value for progress update
21
21
  interval?: number; // Optional interval time (ms) for progress update
22
22
  percentageText?: string;
23
+ valueTextStyle?: TextStyle
23
24
  }
24
25
 
25
26
  const CustomProgressBar: React.FC<CustomProgressBarProps> = ({
@@ -38,6 +39,7 @@ const CustomProgressBar: React.FC<CustomProgressBarProps> = ({
38
39
  increment = 1, // Default increment to 1
39
40
  interval = 100, // Default interval to 100ms
40
41
  percentageText,
42
+ valueTextStyle
41
43
  }) => {
42
44
  useEffect(() => {
43
45
  const progressInterval = setInterval(() => {
@@ -58,6 +60,7 @@ const CustomProgressBar: React.FC<CustomProgressBarProps> = ({
58
60
  text={`${value}%`}
59
61
  variant="B1_REGULAR"
60
62
  textColor="CONTENT_PRIMARY"
63
+ style={valueTextStyle}
61
64
  />
62
65
  {percentageText ? (
63
66
  <CustomText
@@ -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
  />
@@ -10,7 +10,7 @@ const theme = {
10
10
  dark: '#212121',
11
11
  },
12
12
  [Theme.SURFACE_TERTIARY]: {
13
- light: '#E1E1E1',
13
+ light: '#0000001A',
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: '#D92D3E33',
26
- dark: '#D92D3E33',
25
+ light: '#D92D3E',
26
+ dark: '#D92D3E',
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: '#68686833',
38
- dark: '#FFFFFF33',
37
+ light: '#686868',
38
+ dark: '#FFFFFF',
39
39
  },
40
40
  [Theme.SURFACE_DROP_SHADOW]: {
41
41
  light: '#CECECE',
42
- dark: '#000000',
42
+ dark: '#373737',
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: '#686868',
70
+ light: '#0000001A',
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: '#F5F5F5',
112
- dark: '#282828',
111
+ light: '#282828',
112
+ dark: '#FFFFFF',
113
113
  },
114
114
  [Theme.BORDER_SEPERATOR_HEADER]: {
115
115
  light: '#E1E1E1',