react-native-exp-fig 0.1.8 → 0.1.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.
Files changed (110) hide show
  1. package/lib/commonjs/common/icons-svg/check-box/index.js +6 -6
  2. package/lib/commonjs/common/icons-svg/constants/index.js +4 -4
  3. package/lib/commonjs/common/icons-svg/index.js +10 -7
  4. package/lib/commonjs/common/icons-svg/index.js.map +1 -1
  5. package/lib/commonjs/components/card-work-session/index.js +35 -3
  6. package/lib/commonjs/components/card-work-session/index.js.map +1 -1
  7. package/lib/commonjs/components/check-box/index.js +6 -6
  8. package/lib/commonjs/components/coil/index.js +14 -8
  9. package/lib/commonjs/components/coil/index.js.map +1 -1
  10. package/lib/commonjs/components/header-profile/index.js +6 -6
  11. package/lib/commonjs/stories/card-work-session/card-work-session.stories.js +18 -3
  12. package/lib/commonjs/stories/card-work-session/card-work-session.stories.js.map +1 -1
  13. package/lib/commonjs/stories/coil/coil.stories.js +6 -5
  14. package/lib/commonjs/stories/coil/coil.stories.js.map +1 -1
  15. package/lib/commonjs/styles/theme/theme.js +1 -0
  16. package/lib/commonjs/styles/theme/theme.js.map +1 -1
  17. package/lib/module/common/icons-svg/check-box/index.js +6 -6
  18. package/lib/module/common/icons-svg/constants/index.js +4 -4
  19. package/lib/module/common/icons-svg/index.js +10 -7
  20. package/lib/module/common/icons-svg/index.js.map +1 -1
  21. package/lib/module/components/card-work-session/index.js +35 -3
  22. package/lib/module/components/card-work-session/index.js.map +1 -1
  23. package/lib/module/components/check-box/index.js +6 -6
  24. package/lib/module/components/coil/index.js +14 -8
  25. package/lib/module/components/coil/index.js.map +1 -1
  26. package/lib/module/components/header-profile/index.js +6 -6
  27. package/lib/module/stories/card-work-session/card-work-session.stories.js +17 -2
  28. package/lib/module/stories/card-work-session/card-work-session.stories.js.map +1 -1
  29. package/lib/module/stories/coil/coil.stories.js +6 -5
  30. package/lib/module/stories/coil/coil.stories.js.map +1 -1
  31. package/lib/module/styles/theme/theme.js +1 -0
  32. package/lib/module/styles/theme/theme.js.map +1 -1
  33. package/lib/typescript/commonjs/src/common/icons-svg/index.d.ts.map +1 -1
  34. package/lib/typescript/commonjs/src/components/card-work-session/index.d.ts.map +1 -1
  35. package/lib/typescript/commonjs/src/components/coil/index.d.ts.map +1 -1
  36. package/lib/typescript/commonjs/src/stories/card-work-session/card-work-session.stories.d.ts +1 -0
  37. package/lib/typescript/commonjs/src/stories/card-work-session/card-work-session.stories.d.ts.map +1 -1
  38. package/lib/typescript/commonjs/src/stories/coil/coil.stories.d.ts.map +1 -1
  39. package/lib/typescript/commonjs/src/styles/global/theme-provider.d.ts +1 -0
  40. package/lib/typescript/commonjs/src/styles/global/theme-provider.d.ts.map +1 -1
  41. package/lib/typescript/commonjs/src/styles/theme/theme.d.ts +1 -0
  42. package/lib/typescript/commonjs/src/styles/theme/theme.d.ts.map +1 -1
  43. package/lib/typescript/module/src/common/icons-svg/index.d.ts.map +1 -1
  44. package/lib/typescript/module/src/components/card-work-session/index.d.ts.map +1 -1
  45. package/lib/typescript/module/src/components/coil/index.d.ts.map +1 -1
  46. package/lib/typescript/module/src/stories/card-work-session/card-work-session.stories.d.ts +1 -0
  47. package/lib/typescript/module/src/stories/card-work-session/card-work-session.stories.d.ts.map +1 -1
  48. package/lib/typescript/module/src/stories/coil/coil.stories.d.ts.map +1 -1
  49. package/lib/typescript/module/src/styles/global/theme-provider.d.ts +1 -0
  50. package/lib/typescript/module/src/styles/global/theme-provider.d.ts.map +1 -1
  51. package/lib/typescript/module/src/styles/theme/theme.d.ts +1 -0
  52. package/lib/typescript/module/src/styles/theme/theme.d.ts.map +1 -1
  53. package/package.json +1 -1
  54. package/src/common/icons-svg/agent/index.tsx +40 -0
  55. package/src/common/icons-svg/bed/index.tsx +41 -0
  56. package/src/common/icons-svg/car/index.tsx +29 -0
  57. package/src/common/icons-svg/check-box/index.tsx +28 -28
  58. package/src/common/icons-svg/check-outline/index.tsx +42 -0
  59. package/src/common/icons-svg/coffee/index.tsx +43 -0
  60. package/src/common/icons-svg/constants/index.ts +8 -0
  61. package/src/common/icons-svg/index.tsx +57 -5
  62. package/src/common/icons-svg/pencil/index.tsx +32 -0
  63. package/src/common/icons-svg/refresh-ccw-dot/index.tsx +32 -0
  64. package/src/common/icons-svg/truck-activity/index.tsx +29 -0
  65. package/src/components/activities-daily/index.tsx +116 -0
  66. package/src/components/activities-daily/interface.d.ts +22 -0
  67. package/src/components/activities-progress/index.tsx +162 -0
  68. package/src/components/activities-progress/interface.d.ts +41 -0
  69. package/src/components/avatar-profile/index.tsx +95 -0
  70. package/src/components/avatar-profile/interface.d.ts +39 -0
  71. package/src/components/card-history/index.tsx +149 -150
  72. package/src/components/card-loading/index.tsx +16 -1
  73. package/src/components/card-work-session/index.tsx +187 -161
  74. package/src/components/card-work-session/interface.d.ts +5 -0
  75. package/src/components/check-box/index.tsx +22 -53
  76. package/src/components/check-box/interface.d.ts +31 -27
  77. package/src/components/coil/index.tsx +103 -90
  78. package/src/components/coil/interface.d.ts +26 -26
  79. package/src/components/filter-date-selector/index.tsx +101 -89
  80. package/src/components/header-profile/index.tsx +132 -132
  81. package/src/components/history-details/index.tsx +100 -0
  82. package/src/components/history-details/interface.d.ts +18 -0
  83. package/src/components/image-capture-with-remove/index.tsx +8 -2
  84. package/src/components/image-capture-with-remove/interface.d.ts +3 -0
  85. package/src/components/notification-loading/index.tsx +18 -7
  86. package/src/components/notification-loading/interface.d.ts +4 -0
  87. package/src/components/profile-menu-option/index.tsx +65 -0
  88. package/src/components/profile-menu-option/interface.d.ts +42 -0
  89. package/src/components/step-indicator/index.tsx +164 -164
  90. package/src/components/step-indicator/interface.d.ts +34 -34
  91. package/src/components/user-profile/index.tsx +58 -70
  92. package/src/index.ts +42 -37
  93. package/src/stories/activities-daily/activities-daily.stories.tsx +40 -0
  94. package/src/stories/activities-progress/activities-progress.stories.tsx +61 -0
  95. package/src/stories/avatar-profile/avatar-profile.stories.tsx +32 -0
  96. package/src/stories/card-loading/card-loading.stories.tsx +2 -2
  97. package/src/stories/card-work-session/card-work-session.stories.tsx +16 -1
  98. package/src/stories/check-box/check-box.stories.tsx +81 -83
  99. package/src/stories/coil/coil.stories.tsx +98 -74
  100. package/src/stories/filter-date-selector/filter-date-selector.stories.tsx +122 -93
  101. package/src/stories/header-profile/header-profile.stories.tsx +103 -103
  102. package/src/stories/history-details/history-details.stories.tsx +36 -0
  103. package/src/stories/image-capture-with-remove/image-capture-with-remove.stories.tsx +10 -0
  104. package/src/stories/notification-loading/notification-loading.stories.tsx +15 -0
  105. package/src/stories/profile-menu-option/profile-menu-option.stories.tsx +70 -0
  106. package/src/stories/step-indicator/step-indicator.stories.tsx +124 -116
  107. package/src/styles/global/interface.d.ts +10 -0
  108. package/src/styles/theme/theme.ts +3 -0
  109. package/src/utils/format-data/index.ts +66 -40
  110. package/src/utils/status-color/return-color.ts +12 -4
@@ -62,7 +62,7 @@ const CardLoading: React.FC<ICardLoading> = ({
62
62
  />
63
63
  </Box>
64
64
 
65
- <Box width={"74%"} marginStyle={{ marginLeft: 5 }} height={120}>
65
+ <Box width={"74%"} paddingStyle={{ paddingLeft: theme.paddings["2xs"] }}>
66
66
  <Typography
67
67
  text={title}
68
68
  ellipsizeMode="tail"
@@ -72,6 +72,7 @@ const CardLoading: React.FC<ICardLoading> = ({
72
72
  fontFamily={theme.fonts.inter_bold_700}
73
73
  lineHeight={theme.fontSizes.xl ?? 20}
74
74
  letterSpacing={"regular"}
75
+ marginBottom={4}
75
76
  />
76
77
 
77
78
  <Typography
@@ -81,6 +82,7 @@ const CardLoading: React.FC<ICardLoading> = ({
81
82
  fontFamily={theme.fonts.inter_regular_400}
82
83
  lineHeight={theme.fontSizes.md ?? 16}
83
84
  letterSpacing={"regular"}
85
+ marginBottom={4}
84
86
  />
85
87
 
86
88
  <Box
@@ -89,6 +91,9 @@ const CardLoading: React.FC<ICardLoading> = ({
89
91
  justifyContent: "flex-start",
90
92
  alignItems: "center",
91
93
  }}
94
+ marginStyle={{
95
+ marginBottom: 4,
96
+ }}
92
97
  >
93
98
  <Box
94
99
  flexStyle={{
@@ -161,6 +166,9 @@ const CardLoading: React.FC<ICardLoading> = ({
161
166
  justifyContent: "flex-start",
162
167
  alignItems: "center",
163
168
  }}
169
+ marginStyle={{
170
+ marginBottom: 4,
171
+ }}
164
172
  >
165
173
  <Typography
166
174
  text={"Dados Veículo:"}
@@ -189,6 +197,9 @@ const CardLoading: React.FC<ICardLoading> = ({
189
197
  alignItems: "center",
190
198
  justifyContent: "space-between",
191
199
  }}
200
+ marginStyle={{
201
+ marginBottom: 4,
202
+ }}
192
203
  >
193
204
  <Box
194
205
  flexStyle={{
@@ -217,6 +228,7 @@ const CardLoading: React.FC<ICardLoading> = ({
217
228
  </Box>
218
229
  </Box>
219
230
 
231
+ {/**STATUS DO CARREGAMENTO */}
220
232
  <Box
221
233
  width={"100%"}
222
234
  flexStyle={{
@@ -224,6 +236,9 @@ const CardLoading: React.FC<ICardLoading> = ({
224
236
  alignItems: "center",
225
237
  justifyContent: "space-between",
226
238
  }}
239
+ marginStyle={{
240
+ marginBottom: 4,
241
+ }}
227
242
  >
228
243
  <Box
229
244
  flexStyle={{
@@ -1,161 +1,187 @@
1
- /**
2
- * Imports
3
- */
4
- import React from "react";
5
- import { Image, TouchableOpacity } from "react-native";
6
-
7
- // components
8
- import { Box } from "../box";
9
- import { Typography } from "../typography";
10
-
11
- // commons / icons
12
- import { Icons } from "../../common/icons-svg";
13
-
14
- // typings
15
- import { ICardWorkSession } from "./interface";
16
-
17
- // styles
18
- import { theme } from "../../styles/theme/theme";
19
-
20
- const CardWorkSession: React.FC<ICardWorkSession> = ({
21
- name = "Weverson L.S",
22
- workDate = "25/01/2025",
23
- timeWork = "",
24
- initialTime = "11:40",
25
- duration = "05:20",
26
- avatar = "",
27
- backgroundColor,
28
- handleNavigation,
29
- }) => {
30
- return (
31
- <Box
32
- paddingStyle={{ padding: theme.paddings.md }}
33
- borderStyled={{
34
- borderBottomWidth: theme.borderWidths.thin,
35
- borderColor: theme.colors.gray[350],
36
- }}
37
- backgroundColor={backgroundColor ?? theme.colors.gray[300]}
38
- style={{
39
- position: "relative",
40
- }}
41
- >
42
- {/* Cabeçalho com imagem e ícone */}
43
- <Box
44
- flexStyle={{ flexDirection: "row", justifyContent: "space-between", alignItems: "center" }}
45
- >
46
- <Image
47
- style={{
48
- width: 50,
49
- height: 50,
50
- borderRadius: 25,
51
- borderWidth: theme.borderWidths.thin_medium,
52
- borderColor: theme.colors.blue[500],
53
- }}
54
- source={{
55
- uri:
56
- avatar ||
57
- "https://static.vakinha.com.br/uploads/user/avatar/2251959/download.png?ims=225x225",
58
- }}
59
- />
60
- <Box style={{ position: "absolute", left: 57, top: 5 }}>
61
- <Box flexStyle={{ flexDirection: "row" }} marginStyle={{ marginTop: -5 }}>
62
- <Typography
63
- text={"Jornada Trabalho: "}
64
- fontFamily={theme.fonts.inter_bold_700}
65
- size={theme.fontSizes.sm}
66
- color={theme.colors.black[100]}
67
- letterSpacing={"regular"}
68
- />
69
- <Typography
70
- text={workDate}
71
- size={theme.fontSizes.xs}
72
- fontFamily={theme.fonts.inter_regular_400}
73
- color={theme.colors.black[100]}
74
- />
75
- </Box>
76
- <Box flexStyle={{ flexDirection: "row" }}>
77
- <Typography
78
- text={"Tempo Jornada: "}
79
- size={theme.fontSizes.sm}
80
- color={theme.colors.black[100]}
81
- fontFamily={theme.fonts.inter_bold_700}
82
- letterSpacing={"regular"}
83
- />
84
-
85
- {timeWork && (
86
- <Typography
87
- text={timeWork}
88
- size={theme.fontSizes.xs}
89
- fontFamily={theme.fonts.inter_regular_400}
90
- color={theme.colors.gray[800]}
91
- letterSpacing={"regular"}
92
- />
93
- )}
94
- </Box>
95
- </Box>
96
- <TouchableOpacity activeOpacity={0.7} onPress={handleNavigation}>
97
- <Icons icon={"BELL"} size={28} />
98
- </TouchableOpacity>
99
- </Box>
100
-
101
- <Box
102
- flexStyle={{ flexDirection: "row", justifyContent: "space-between", alignItems: "center" }}
103
- >
104
- <Typography
105
- text={`Olá, ${name}`}
106
- size={16}
107
- color={theme.colors.black[100]}
108
- fontFamily={theme.fonts.inter_bold_700}
109
- marginLeft={-5}
110
- />
111
-
112
- {/* Seção de horário */}
113
- <Box flexStyle={{ flexDirection: "row" }}>
114
- <Box marginStyle={{ marginRight: 15 }}>
115
- <Typography
116
- text={`${initialTime}`}
117
- size={theme.fontSizes.md}
118
- align="center"
119
- color={theme.colors.black[100]}
120
- fontFamily={theme.fonts.inter_semi_bold_600}
121
- />
122
-
123
- <Typography
124
- text={"INÍCIO"}
125
- size={theme.fontSizes["2xs"]}
126
- align="center"
127
- color={theme.colors.black[100]}
128
- fontFamily={theme.fonts.inter_medium_500}
129
- fontWeight={"500"}
130
- marginTop={-4}
131
- />
132
- </Box>
133
-
134
- <Box>
135
- <Typography
136
- text={`${duration}`}
137
- size={theme.fontSizes.md}
138
- align="center"
139
- color={theme.colors.black[100]}
140
- fontFamily={theme.fonts.inter_semi_bold_600}
141
- />
142
-
143
- <Typography
144
- text={"DURAÇÃO"}
145
- size={theme.fontSizes["2xs"]}
146
- align="center"
147
- color={theme.colors.black[100]}
148
- fontFamily={theme.fonts.inter_medium_500}
149
- marginTop={-4}
150
- />
151
- </Box>
152
- </Box>
153
- </Box>
154
- </Box>
155
- );
156
- };
157
-
158
- /**
159
- * EXPORTS
160
- */
161
- export { CardWorkSession };
1
+ /**
2
+ * Imports
3
+ */
4
+ import React from "react";
5
+ import { Image, TouchableOpacity } from "react-native";
6
+
7
+ // components
8
+ import { Box } from "../box";
9
+ import { Typography } from "../typography";
10
+
11
+ // commons / icons
12
+ import { Icons } from "../../common/icons-svg";
13
+
14
+ // typings
15
+ import { ICardWorkSession } from "./interface";
16
+
17
+ // styles
18
+ import { theme } from "../../styles/theme/theme";
19
+
20
+ const CardWorkSession: React.FC<ICardWorkSession> = ({
21
+ name = "Weverson L.S",
22
+ workDate = "25/01/2025",
23
+ timeWork = "",
24
+ initialTime = "11:40",
25
+ duration = "05:20",
26
+ avatar = "",
27
+ counterBadge = 0,
28
+ backgroundColor,
29
+ handleNavigation,
30
+ }) => {
31
+ return (
32
+ <Box
33
+ paddingStyle={{ padding: theme.paddings.md }}
34
+ borderStyled={{
35
+ borderBottomWidth: theme.borderWidths.thin,
36
+ borderColor: theme.colors.gray[400],
37
+ }}
38
+ backgroundColor={backgroundColor ?? theme.colors.gray[300]}
39
+ style={{
40
+ position: "relative",
41
+ }}
42
+ >
43
+ {/* Cabeçalho com imagem e ícone */}
44
+ <Box
45
+ flexStyle={{ flexDirection: "row", justifyContent: "space-between", alignItems: "center" }}
46
+ >
47
+ <Image
48
+ style={{
49
+ width: 50,
50
+ height: 50,
51
+ borderRadius: 25,
52
+ borderWidth: theme.borderWidths.thin_medium,
53
+ borderColor: theme.colors.blue[500],
54
+ }}
55
+ source={{
56
+ uri:
57
+ avatar ||
58
+ "https://static.vakinha.com.br/uploads/user/avatar/2251959/download.png?ims=225x225",
59
+ }}
60
+ />
61
+ <Box style={{ position: "absolute", left: 57, top: 5 }}>
62
+ <Box flexStyle={{ flexDirection: "row" }} marginStyle={{ marginTop: -5 }}>
63
+ <Typography
64
+ text={"Jornada Trabalho: "}
65
+ fontFamily={theme.fonts.inter_bold_700}
66
+ size={theme.fontSizes.sm}
67
+ color={theme.colors.black[100]}
68
+ letterSpacing={"regular"}
69
+ />
70
+ <Typography
71
+ text={workDate}
72
+ size={theme.fontSizes.xs}
73
+ fontFamily={theme.fonts.inter_regular_400}
74
+ color={theme.colors.black[100]}
75
+ />
76
+ </Box>
77
+ <Box flexStyle={{ flexDirection: "row" }}>
78
+ <Typography
79
+ text={"Tempo Jornada: "}
80
+ size={theme.fontSizes.sm}
81
+ color={theme.colors.black[100]}
82
+ fontFamily={theme.fonts.inter_bold_700}
83
+ letterSpacing={"regular"}
84
+ />
85
+
86
+ {timeWork && (
87
+ <Typography
88
+ text={timeWork}
89
+ size={theme.fontSizes.xs}
90
+ fontFamily={theme.fonts.inter_regular_400}
91
+ color={theme.colors.gray[800]}
92
+ letterSpacing={"regular"}
93
+ />
94
+ )}
95
+ </Box>
96
+ </Box>
97
+ <TouchableOpacity activeOpacity={0.7} onPress={handleNavigation}>
98
+ {counterBadge > 0 && (
99
+ <Box
100
+ backgroundColor={theme.colors.red[600]}
101
+ flexStyle={{ alignItems: "center", justifyContent: "center" }}
102
+ borderStyled={{ borderRadius: theme.borderWidths.hairline }}
103
+ style={[
104
+ counterBadge < 10
105
+ ? { right: -5, top: -2, height: 16, width: 16 }
106
+ : { right: -8, top: -5, padding: 2 },
107
+ { position: "absolute", zIndex: 10 },
108
+ ]}
109
+ >
110
+ <Typography
111
+ text={`${counterBadge}`}
112
+ align={"center"}
113
+ size={theme.fontSizes["2xs"]}
114
+ color={theme.colors.neutral[25]}
115
+ fontFamily={theme.fonts.inter_bold_700}
116
+ lineHeight={theme.fontSizes.sm}
117
+ letterSpacing={"regular"}
118
+ />
119
+ </Box>
120
+ )}
121
+ <Icons icon={"BELL"} size={28} style={{ position: "relative" }} />
122
+ </TouchableOpacity>
123
+ </Box>
124
+
125
+ <Box
126
+ flexStyle={{ flexDirection: "row", justifyContent: "space-between", alignItems: "center" }}
127
+ >
128
+ <Box width={"65%"}>
129
+ <Typography
130
+ text={`Olá, ${name}`}
131
+ size={16}
132
+ color={theme.colors.black[100]}
133
+ fontFamily={theme.fonts.inter_bold_700}
134
+ marginLeft={-5}
135
+ />
136
+ </Box>
137
+
138
+ {/* Seção de horário */}
139
+ <Box flexStyle={{ flexDirection: "row" }}>
140
+ <Box marginStyle={{ marginRight: 15 }}>
141
+ <Typography
142
+ text={`${initialTime}`}
143
+ size={theme.fontSizes.md}
144
+ align="center"
145
+ color={theme.colors.black[100]}
146
+ fontFamily={theme.fonts.inter_semi_bold_600}
147
+ />
148
+
149
+ <Typography
150
+ text={"INÍCIO"}
151
+ size={theme.fontSizes["2xs"]}
152
+ align="center"
153
+ color={theme.colors.black[100]}
154
+ fontFamily={theme.fonts.inter_medium_500}
155
+ fontWeight={"500"}
156
+ marginTop={-4}
157
+ />
158
+ </Box>
159
+
160
+ <Box>
161
+ <Typography
162
+ text={`${duration}`}
163
+ size={theme.fontSizes.md}
164
+ align="center"
165
+ color={theme.colors.black[100]}
166
+ fontFamily={theme.fonts.inter_semi_bold_600}
167
+ />
168
+
169
+ <Typography
170
+ text={"DURAÇÃO"}
171
+ size={theme.fontSizes["2xs"]}
172
+ align="center"
173
+ color={theme.colors.black[100]}
174
+ fontFamily={theme.fonts.inter_medium_500}
175
+ marginTop={-4}
176
+ />
177
+ </Box>
178
+ </Box>
179
+ </Box>
180
+ </Box>
181
+ );
182
+ };
183
+
184
+ /**
185
+ * EXPORTS
186
+ */
187
+ export { CardWorkSession };
@@ -40,6 +40,11 @@ interface ICardWorkSession extends ViewProps, IGlobalCss {
40
40
  avatar: string;
41
41
 
42
42
  handleNavigation: () => void;
43
+
44
+ /**
45
+ * props que mostra a quantidade de notificações
46
+ */
47
+ counterBadge: number;
43
48
  }
44
49
 
45
50
  /**
@@ -21,7 +21,6 @@ import { Box } from "../box";
21
21
  */
22
22
  const CheckBox: React.FC<ICheckBoxProps> = ({
23
23
  widthBoxCheckIcon,
24
- heightWrapperTextLabel,
25
24
  isChecked,
26
25
  backgroundColorCheck,
27
26
  backgroundBoxCheckIcon,
@@ -37,83 +36,53 @@ const CheckBox: React.FC<ICheckBoxProps> = ({
37
36
  <Box
38
37
  width={"100%"}
39
38
  paddingStyle={{ paddingLeft: 16, paddingRight: 16 }}
40
- flexStyle={{ flexDirection: "row", alignItems: "center", justifyContent: "center" }}
39
+ flexStyle={{ flexDirection: "row", alignItems: "center", justifyContent: "flex-start" }}
41
40
  >
42
41
  <Box
43
42
  testID="check-box-true"
44
43
  width={widthBoxCheckIcon ? widthBoxCheckIcon : 30}
45
44
  height={40}
46
45
  backgroundColor={backgroundBoxCheckIcon ? backgroundBoxCheckIcon : "transparent"}
47
- flexStyle={{
48
- flexDirection: "column",
49
- alignItems: "flex-start",
50
- justifyContent: "flex-start",
51
- }}
46
+ flexStyle={{ flexDirection: "row", alignItems: "center", justifyContent: "flex-start" }}
52
47
  >
53
48
  <Icons size={24} color={backgroundColorCheck} icon="CHECK_BOX_OUTLINE" />
54
49
  </Box>
55
50
 
56
- <Box
57
- width={"100%"}
58
- height={heightWrapperTextLabel ? heightWrapperTextLabel : 40}
59
- backgroundColor="transparent"
60
- flexStyle={{
61
- flexDirection: "column",
62
- alignItems: "flex-start",
63
- justifyContent: "flex-start",
64
- }}
65
- >
66
- {textLabel && (
67
- <Typography
68
- text={textLabel ? textLabel : "Label"}
69
- color={colorTextLabel ? colorTextLabel : "white"}
70
- size={textLabel ? textSizeLabel : 16}
71
- lineHeight={18}
72
- letterSpacing={"regular"}
73
- />
74
- )}
75
- </Box>
51
+ {textLabel && (
52
+ <Typography
53
+ text={textLabel ? textLabel : "Label"}
54
+ color={colorTextLabel ? colorTextLabel : "white"}
55
+ size={textLabel ? textSizeLabel : 16}
56
+ lineHeight={18}
57
+ letterSpacing={"regular"}
58
+ />
59
+ )}
76
60
  </Box>
77
61
  ) : (
78
62
  <Box
79
63
  width={"100%"}
80
64
  paddingStyle={{ paddingLeft: 16, paddingRight: 16 }}
81
- flexStyle={{ flexDirection: "row", alignItems: "center", justifyContent: "center" }}
65
+ flexStyle={{ flexDirection: "row", alignItems: "center", justifyContent: "flex-start" }}
82
66
  testID="check-box-falso"
83
67
  >
84
68
  <Box
85
69
  width={widthBoxCheckIcon ? widthBoxCheckIcon : 30}
86
70
  height={40}
87
71
  backgroundColor={backgroundBoxCheckIcon ? backgroundBoxCheckIcon : "transparent"}
88
- flexStyle={{
89
- flexDirection: "column",
90
- alignItems: "flex-start",
91
- justifyContent: "flex-start",
92
- }}
72
+ flexStyle={{ flexDirection: "row", alignItems: "center", justifyContent: "flex-start" }}
93
73
  >
94
74
  <Icons size={19} background={backgroundColorCheck} icon="CHECK_BOX" />
95
75
  </Box>
96
76
 
97
- <Box
98
- width={"100%"}
99
- height={heightWrapperTextLabel ? heightWrapperTextLabel : 40}
100
- backgroundColor="transparent"
101
- flexStyle={{
102
- flexDirection: "column",
103
- alignItems: "flex-start",
104
- justifyContent: "flex-start",
105
- }}
106
- >
107
- {textLabel && (
108
- <Typography
109
- text={textLabel ? textLabel : "Label"}
110
- color={colorTextLabel ? colorTextLabel : "white"}
111
- size={textLabel ? textSizeLabel : 16}
112
- lineHeight={18}
113
- letterSpacing={"regular"}
114
- />
115
- )}
116
- </Box>
77
+ {textLabel && (
78
+ <Typography
79
+ text={textLabel ? textLabel : "Label"}
80
+ color={colorTextLabel ? colorTextLabel : "white"}
81
+ size={textLabel ? textSizeLabel : 16}
82
+ lineHeight={18}
83
+ letterSpacing={"regular"}
84
+ />
85
+ )}
117
86
  </Box>
118
87
  )}
119
88
  </TouchableOpacity>
@@ -1,27 +1,31 @@
1
- /**
2
- * IMPORTS
3
- */
4
- import { TouchableOpacityProps } from "react-native";
5
-
6
- export interface ICheckBoxProps extends TouchableOpacityProps {
7
- /**Propriedade do tamanho do box do icon-check-outline */
8
- widthBoxCheckIcon?: number;
9
- /**Propriedade da altura do wrapper do textLabel */
10
- heightWrapperTextLabel?: number;
11
- /**Propriedade para saber se o checkbox esta marcado */
12
- isChecked: boolean;
13
- /**Propriedade para mudar a cor do icon quando for marcado */
14
- backgroundColorCheck?: string;
15
- /**Propriedade para mudar a cor do icon quando for marcado */
16
- backgroundBoxCheckIcon?: string;
17
- /**Propriedade do textLabel */
18
- textLabel?: string;
19
- /**Propriedade do tamanho do textLabel */
20
- textSizeLabel?: number;
21
- /**Propriedade da cor do textLabel */
22
- colorTextLabel?: string;
23
- }
24
- /**
25
- * EXPORTS
26
- */
27
- export type { ICheckBoxProps };
1
+ /**
2
+ * IMPORTS
3
+ */
4
+ import { TouchableOpacityProps } from "react-native";
5
+
6
+ export interface ICheckBoxProps extends TouchableOpacityProps {
7
+ /**Propriedade do tamanho do box do icon-check-outline */
8
+ widthBoxCheckIcon?: number;
9
+
10
+ /**Propriedade para saber se o checkbox esta marcado */
11
+ isChecked: boolean;
12
+
13
+ /**Propriedade para mudar a cor do icon quando for marcado */
14
+ backgroundColorCheck?: string;
15
+
16
+ /**Propriedade para mudar a cor do icon quando for marcado */
17
+ backgroundBoxCheckIcon?: string;
18
+
19
+ /**Propriedade do textLabel */
20
+ textLabel?: string;
21
+
22
+ /**Propriedade do tamanho do textLabel */
23
+ textSizeLabel?: number;
24
+
25
+ /**Propriedade da cor do textLabel */
26
+ colorTextLabel?: string;
27
+ }
28
+ /**
29
+ * EXPORTS
30
+ */
31
+ export type { ICheckBoxProps };