jornada-ui 0.4.4 → 0.4.6

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 (122) hide show
  1. package/lib/commonjs/components/capture-photo/index.js +4 -4
  2. package/lib/commonjs/components/card-report/index.js +139 -127
  3. package/lib/commonjs/components/card-report/index.js.map +1 -1
  4. package/lib/commonjs/components/card-with-draw-coil/index.js +5 -5
  5. package/lib/commonjs/components/card-with-draw-coil/index.js.map +1 -1
  6. package/lib/commonjs/components/coil-removel-code/index.js +5 -5
  7. package/lib/commonjs/components/coil-removel-code/index.js.map +1 -1
  8. package/lib/commonjs/components/history-activities-card/index.js +15 -18
  9. package/lib/commonjs/components/history-activities-card/index.js.map +1 -1
  10. package/lib/commonjs/components/resume-raking/index.js +79 -0
  11. package/lib/commonjs/components/resume-raking/index.js.map +1 -0
  12. package/lib/commonjs/components/resume-raking/interface.js +2 -0
  13. package/lib/commonjs/components/resume-raking/interface.js.map +1 -0
  14. package/lib/commonjs/components/resume-raking/styles.js +2 -0
  15. package/lib/commonjs/components/resume-raking/styles.js.map +1 -0
  16. package/lib/commonjs/components/travel-history/index.js +248 -237
  17. package/lib/commonjs/components/travel-history/index.js.map +1 -1
  18. package/lib/commonjs/components/user-profile/index.js +1 -1
  19. package/lib/commonjs/components/user-profile/index.js.map +1 -1
  20. package/lib/commonjs/components/weekly-table/helpers/calcular-total-horas.js +48 -10
  21. package/lib/commonjs/components/weekly-table/helpers/calcular-total-horas.js.map +1 -1
  22. package/lib/commonjs/components/weekly-table/index.js +9 -10
  23. package/lib/commonjs/components/weekly-table/index.js.map +1 -1
  24. package/lib/commonjs/index.js +11 -4
  25. package/lib/commonjs/index.js.map +1 -1
  26. package/lib/commonjs/styles/theme/theme.js +1 -0
  27. package/lib/commonjs/styles/theme/theme.js.map +1 -1
  28. package/lib/module/components/capture-photo/index.js +4 -4
  29. package/lib/module/components/card-report/index.js +139 -127
  30. package/lib/module/components/card-report/index.js.map +1 -1
  31. package/lib/module/components/card-with-draw-coil/index.js +5 -5
  32. package/lib/module/components/card-with-draw-coil/index.js.map +1 -1
  33. package/lib/module/components/coil-removel-code/index.js +5 -5
  34. package/lib/module/components/coil-removel-code/index.js.map +1 -1
  35. package/lib/module/components/history-activities-card/index.js +13 -16
  36. package/lib/module/components/history-activities-card/index.js.map +1 -1
  37. package/lib/module/components/resume-raking/index.js +72 -0
  38. package/lib/module/components/resume-raking/index.js.map +1 -0
  39. package/lib/module/components/resume-raking/interface.js +2 -0
  40. package/lib/module/components/resume-raking/interface.js.map +1 -0
  41. package/lib/module/components/resume-raking/styles.js +2 -0
  42. package/lib/module/components/resume-raking/styles.js.map +1 -0
  43. package/lib/module/components/travel-history/index.js +248 -237
  44. package/lib/module/components/travel-history/index.js.map +1 -1
  45. package/lib/module/components/user-profile/index.js +1 -1
  46. package/lib/module/components/user-profile/index.js.map +1 -1
  47. package/lib/module/components/weekly-table/helpers/calcular-total-horas.js +46 -9
  48. package/lib/module/components/weekly-table/helpers/calcular-total-horas.js.map +1 -1
  49. package/lib/module/components/weekly-table/index.js +10 -11
  50. package/lib/module/components/weekly-table/index.js.map +1 -1
  51. package/lib/module/index.js +1 -0
  52. package/lib/module/index.js.map +1 -1
  53. package/lib/module/styles/theme/theme.js +1 -0
  54. package/lib/module/styles/theme/theme.js.map +1 -1
  55. package/lib/typescript/commonjs/src/components/capture-photo/index.d.ts.map +1 -1
  56. package/lib/typescript/commonjs/src/components/card-report/index.d.ts +1 -0
  57. package/lib/typescript/commonjs/src/components/card-report/index.d.ts.map +1 -1
  58. package/lib/typescript/commonjs/src/components/card-with-draw-coil/index.d.ts.map +1 -1
  59. package/lib/typescript/commonjs/src/components/history-activities-card/index.d.ts +1 -0
  60. package/lib/typescript/commonjs/src/components/history-activities-card/index.d.ts.map +1 -1
  61. package/lib/typescript/commonjs/src/components/history-activities-card/interface.d.ts +2 -0
  62. package/lib/typescript/commonjs/src/components/history-activities-card/interface.d.ts.map +1 -1
  63. package/lib/typescript/commonjs/src/components/resume-raking/index.d.ts +8 -0
  64. package/lib/typescript/commonjs/src/components/resume-raking/index.d.ts.map +1 -0
  65. package/lib/typescript/commonjs/src/components/resume-raking/interface.d.ts +13 -0
  66. package/lib/typescript/commonjs/src/components/resume-raking/interface.d.ts.map +1 -0
  67. package/lib/typescript/commonjs/src/components/resume-raking/styles.d.ts +1 -0
  68. package/lib/typescript/commonjs/src/components/resume-raking/styles.d.ts.map +1 -0
  69. package/lib/typescript/commonjs/src/components/travel-history/index.d.ts +1 -0
  70. package/lib/typescript/commonjs/src/components/travel-history/index.d.ts.map +1 -1
  71. package/lib/typescript/commonjs/src/components/weekly-table/helpers/calcular-total-horas.d.ts +2 -1
  72. package/lib/typescript/commonjs/src/components/weekly-table/helpers/calcular-total-horas.d.ts.map +1 -1
  73. package/lib/typescript/commonjs/src/components/weekly-table/index.d.ts.map +1 -1
  74. package/lib/typescript/commonjs/src/index.d.ts +1 -0
  75. package/lib/typescript/commonjs/src/index.d.ts.map +1 -1
  76. package/lib/typescript/commonjs/src/styles/global/theme-provider.d.ts +1 -0
  77. package/lib/typescript/commonjs/src/styles/global/theme-provider.d.ts.map +1 -1
  78. package/lib/typescript/commonjs/src/styles/theme/theme.d.ts +1 -0
  79. package/lib/typescript/commonjs/src/styles/theme/theme.d.ts.map +1 -1
  80. package/lib/typescript/module/src/components/capture-photo/index.d.ts.map +1 -1
  81. package/lib/typescript/module/src/components/card-report/index.d.ts +1 -0
  82. package/lib/typescript/module/src/components/card-report/index.d.ts.map +1 -1
  83. package/lib/typescript/module/src/components/card-with-draw-coil/index.d.ts.map +1 -1
  84. package/lib/typescript/module/src/components/history-activities-card/index.d.ts +1 -0
  85. package/lib/typescript/module/src/components/history-activities-card/index.d.ts.map +1 -1
  86. package/lib/typescript/module/src/components/history-activities-card/interface.d.ts +2 -0
  87. package/lib/typescript/module/src/components/history-activities-card/interface.d.ts.map +1 -1
  88. package/lib/typescript/module/src/components/resume-raking/index.d.ts +8 -0
  89. package/lib/typescript/module/src/components/resume-raking/index.d.ts.map +1 -0
  90. package/lib/typescript/module/src/components/resume-raking/interface.d.ts +13 -0
  91. package/lib/typescript/module/src/components/resume-raking/interface.d.ts.map +1 -0
  92. package/lib/typescript/module/src/components/resume-raking/styles.d.ts +1 -0
  93. package/lib/typescript/module/src/components/resume-raking/styles.d.ts.map +1 -0
  94. package/lib/typescript/module/src/components/travel-history/index.d.ts +1 -0
  95. package/lib/typescript/module/src/components/travel-history/index.d.ts.map +1 -1
  96. package/lib/typescript/module/src/components/weekly-table/helpers/calcular-total-horas.d.ts +2 -1
  97. package/lib/typescript/module/src/components/weekly-table/helpers/calcular-total-horas.d.ts.map +1 -1
  98. package/lib/typescript/module/src/components/weekly-table/index.d.ts.map +1 -1
  99. package/lib/typescript/module/src/index.d.ts +1 -0
  100. package/lib/typescript/module/src/index.d.ts.map +1 -1
  101. package/lib/typescript/module/src/styles/global/theme-provider.d.ts +1 -0
  102. package/lib/typescript/module/src/styles/global/theme-provider.d.ts.map +1 -1
  103. package/lib/typescript/module/src/styles/theme/theme.d.ts +1 -0
  104. package/lib/typescript/module/src/styles/theme/theme.d.ts.map +1 -1
  105. package/package.json +1 -1
  106. package/src/components/capture-photo/index.tsx +133 -133
  107. package/src/components/card-report/index.tsx +175 -168
  108. package/src/components/card-report/interface.d.ts +140 -136
  109. package/src/components/card-with-draw-coil/index.tsx +165 -165
  110. package/src/components/coil-removel-code/index.tsx +50 -50
  111. package/src/components/history-activities-card/index.tsx +211 -209
  112. package/src/components/history-activities-card/interface.ts +147 -145
  113. package/src/components/resume-raking/index.tsx +75 -0
  114. package/src/components/resume-raking/interface.ts +14 -0
  115. package/src/components/resume-raking/styles.ts +0 -0
  116. package/src/components/travel-history/index.tsx +330 -314
  117. package/src/components/travel-history/interface.d.ts +153 -149
  118. package/src/components/user-profile/index.tsx +1 -1
  119. package/src/components/weekly-table/helpers/calcular-total-horas.ts +89 -50
  120. package/src/components/weekly-table/index.tsx +138 -142
  121. package/src/index.tsx +1 -0
  122. package/src/styles/theme/theme.ts +1 -0
@@ -1,168 +1,175 @@
1
- /**
2
- * IMPORTS
3
- */
4
- import React, { forwardRef } from "react";
5
-
6
- // components
7
- import Box from "../../components/box";
8
- import Typography from "../../components/typography";
9
-
10
- //commons/ icons
11
- import { Icons } from "../../common/icons-svg";
12
-
13
- // styles
14
- import { theme } from "../../styles/theme/theme";
15
-
16
- // typings
17
- import type { ICardReport } from "./interface";
18
- // typings
19
- import { asBaseComponent } from "../../@types/as-base-component";
20
-
21
- const CardReport = forwardRef<any, ICardReport>((props, ref): React.ReactElement => {
22
- const {
23
- name = "Enzo Martins",
24
- generatedDate = "15/07/2025",
25
- generatedTime = "10:30",
26
- status = "OK",
27
- backgroundColor,
28
- ciclo = "DIÁRIA",
29
- testID = "card-report",
30
- } = props;
31
- return (
32
- <Box
33
- ref={ref}
34
- testID={testID}
35
- width={"100%"}
36
- backgroundColor={theme.colors.neutral[25]}
37
- borderStyled={{
38
- borderRadius: theme.borderWidths.thick_medium,
39
- }}
40
- marginStyle={{
41
- marginBottom: theme.margins["2xs"],
42
- }}
43
- >
44
- <Box
45
- width={"100%"}
46
- height={30}
47
- backgroundColor={backgroundColor ?? theme.colors.green[400]}
48
- borderStyled={{
49
- borderTopLeftRadius: theme.borderWidths.thin_bold,
50
- borderTopRightRadius: theme.borderWidths.thin_bold,
51
- borderColor: theme.colors.blue[400],
52
- }}
53
- flexStyle={{
54
- justifyContent: "center",
55
- }}
56
- >
57
- <Typography
58
- text={`ASSINATURA ${ciclo}`}
59
- color={theme.colors.neutral[25]}
60
- size={theme.fontSizes.sm}
61
- fontFamily={theme.fonts.inter_medium_500}
62
- fontWeight={"500"}
63
- lineHeight={theme.fontSizes.lg}
64
- marginLeft={theme.margins["2xs"]}
65
- />
66
- </Box>
67
- <Box
68
- width={"100%"}
69
- flexStyle={{
70
- flexDirection: "row",
71
- justifyContent: "space-between",
72
- }}
73
- paddingStyle={{
74
- padding: theme.paddings["2xs"],
75
- }}
76
- >
77
- <Box>
78
- <Box flexStyle={{ flexDirection: "row", alignItems: "center" }}>
79
- <Icons icon={"FILES"} size={40} color={theme.colors.black[100]} />
80
-
81
- {/*Alteração para exibir o nome do usuário */}
82
- <Box>
83
- <Box marginStyle={{ marginRight: 2 }} flexStyle={{ flexDirection: "row" }}>
84
- <Typography
85
- text={`Documento gerado em: `}
86
- size={12}
87
- color={theme.colors.black[180]}
88
- fontFamily={theme.fonts.inter_extra_bold_800}
89
- />
90
- <Typography
91
- text={`${generatedDate} ${generatedTime}`}
92
- size={12}
93
- color={theme.colors.black[180]}
94
- fontFamily={theme.fonts.inter_light_300}
95
- marginLeft={2}
96
- />
97
- </Box>
98
- <Box flexStyle={{ flexDirection: "row" }}>
99
- <Typography
100
- text={`Status documento:`}
101
- size={12}
102
- color={theme.colors.black[100]}
103
- fontFamily={theme.fonts.inter_extra_bold_800}
104
- />
105
-
106
- <Typography
107
- text={`${status}`}
108
- size={12}
109
- color={theme.colors.black[100]}
110
- fontFamily={theme.fonts.inter_light_300}
111
- marginLeft={2}
112
- />
113
- </Box>
114
- </Box>
115
- </Box>
116
- </Box>
117
- </Box>
118
-
119
- {/* Segunda separação */}
120
- <Box
121
- width={"100%"}
122
- flexStyle={{
123
- flexDirection: "row",
124
- justifyContent: "space-between",
125
- alignItems: "center",
126
- }}
127
- paddingStyle={{
128
- padding: theme.paddings["2xs"],
129
- }}
130
- borderStyled={{
131
- borderTopWidth: 2,
132
- borderTopColor: theme.colors.neutral[200],
133
- }}
134
- >
135
- <Box>
136
- <Box flexStyle={{ flexDirection: "row", alignItems: "center" }}>
137
- <Box marginStyle={{ marginRight: 2 }}>
138
- <Typography
139
- text={`Assinado por:`}
140
- size={12}
141
- color={theme.colors.black[180]}
142
- fontFamily={theme.fonts.inter_light_300}
143
- marginLeft={0}
144
- />
145
-
146
- <Typography
147
- text={`${name}`}
148
- size={14}
149
- color={theme.colors.black[100]}
150
- fontFamily={theme.fonts.inter_extra_bold_800}
151
- marginLeft={0}
152
- />
153
- </Box>
154
- </Box>
155
- </Box>
156
-
157
- <Icons icon={"CHECK_CIRCLE"} size={40} background={backgroundColor} />
158
- </Box>
159
- </Box>
160
- );
161
- });
162
-
163
- CardReport.displayName = "CardReport";
164
-
165
- /**
166
- * Componente Box para a interação da ui.
167
- */
168
- export default asBaseComponent(CardReport);
1
+ /**
2
+ * IMPORTS
3
+ */
4
+ import React, { forwardRef } from "react";
5
+ import { TouchableOpacity } from "react-native";
6
+
7
+ // components
8
+ import Box from "../../components/box";
9
+ import Typography from "../../components/typography";
10
+
11
+ //commons/ icons
12
+ import { Icons } from "../../common/icons-svg";
13
+
14
+ // styles
15
+ import { theme } from "../../styles/theme/theme";
16
+
17
+ // typings
18
+ import type { ICardReport } from "./interface";
19
+ // typings
20
+ import { asBaseComponent } from "../../@types/as-base-component";
21
+
22
+ const CardReport = forwardRef<any, ICardReport>((props, ref): React.ReactElement => {
23
+ const {
24
+ name = "Enzo Martins",
25
+ generatedDate = "15/07/2025",
26
+ generatedTime = null,
27
+ status = "OK",
28
+ backgroundColor,
29
+ ciclo = "DIÁRIA",
30
+ testID = "card-report",
31
+ onPress,
32
+ } = props;
33
+ return (
34
+ <TouchableOpacity
35
+ ref={ref}
36
+ activeOpacity={0.7}
37
+ onPress={() => onPress({ name, generatedDate, generatedTime, status, ciclo })}
38
+ >
39
+ <Box
40
+ testID={testID}
41
+ width={"100%"}
42
+ backgroundColor={theme.colors.neutral[25]}
43
+ borderStyled={{
44
+ borderRadius: theme.borderWidths.thick_medium,
45
+ }}
46
+ marginStyle={{
47
+ marginBottom: theme.margins["2xs"],
48
+ }}
49
+ >
50
+ <Box
51
+ width={"100%"}
52
+ height={30}
53
+ backgroundColor={backgroundColor ?? theme.colors.green[400]}
54
+ borderStyled={{
55
+ borderTopLeftRadius: theme.borderWidths.thin_bold,
56
+ borderTopRightRadius: theme.borderWidths.thin_bold,
57
+ borderColor: theme.colors.blue[400],
58
+ }}
59
+ flexStyle={{
60
+ justifyContent: "center",
61
+ }}
62
+ >
63
+ <Typography
64
+ text={`ASSINATURA ${ciclo}`}
65
+ color={theme.colors.neutral[25]}
66
+ size={theme.fontSizes.xs}
67
+ fontFamily={theme.fonts.inter_medium_500}
68
+ fontWeight={"500"}
69
+ lineHeight={theme.fontSizes.xs}
70
+ marginLeft={theme.margins["2xs"]}
71
+ />
72
+ </Box>
73
+ <Box
74
+ width={"100%"}
75
+ flexStyle={{
76
+ flexDirection: "row",
77
+ justifyContent: "space-between",
78
+ }}
79
+ paddingStyle={{
80
+ padding: theme.paddings["2xs"],
81
+ }}
82
+ >
83
+ <Box>
84
+ <Box flexStyle={{ flexDirection: "row", alignItems: "center" }}>
85
+ <Icons icon={"FILES"} size={28} color={theme.colors.black[100]} />
86
+
87
+ {/*Alteração para exibir o nome do usuário */}
88
+ <Box marginStyle={{ marginLeft: 4 }}>
89
+ <Box flexStyle={{ flexDirection: "row" }}>
90
+ <Typography
91
+ text={`Doc gerado em: `}
92
+ size={theme.fontSizes.sm}
93
+ color={theme.colors.black[180]}
94
+ fontFamily={theme.fonts.inter_medium_500}
95
+ />
96
+ <Typography
97
+ text={`${generatedDate} ${generatedTime ?? ""}`}
98
+ size={12}
99
+ color={theme.colors.black[180]}
100
+ fontFamily={theme.fonts.inter_light_300}
101
+ marginLeft={2}
102
+ />
103
+ </Box>
104
+ <Box flexStyle={{ flexDirection: "row" }}>
105
+ <Typography
106
+ text={`Status documento:`}
107
+ size={theme.fontSizes.sm}
108
+ color={theme.colors.black[100]}
109
+ fontFamily={theme.fonts.inter_medium_500}
110
+ />
111
+
112
+ <Typography
113
+ text={`${status}`}
114
+ size={theme.fontSizes.xs}
115
+ color={theme.colors.black[100]}
116
+ fontFamily={theme.fonts.inter_light_300}
117
+ marginLeft={2}
118
+ />
119
+ </Box>
120
+ </Box>
121
+ </Box>
122
+ </Box>
123
+ </Box>
124
+
125
+ {/* Segunda separação */}
126
+ <Box
127
+ width={"100%"}
128
+ flexStyle={{
129
+ flexDirection: "row",
130
+ justifyContent: "space-between",
131
+ alignItems: "center",
132
+ }}
133
+ paddingStyle={{
134
+ padding: theme.paddings["2xs"],
135
+ }}
136
+ borderStyled={{
137
+ borderTopWidth: 2,
138
+ borderTopColor: theme.colors.neutral[200],
139
+ }}
140
+ >
141
+ <Box>
142
+ <Box flexStyle={{ flexDirection: "row", alignItems: "center" }}>
143
+ <Box marginStyle={{ marginRight: 2 }}>
144
+ <Typography
145
+ text={`Assinado por:`}
146
+ size={theme.fontSizes.xs}
147
+ color={theme.colors.black[180]}
148
+ fontFamily={theme.fonts.inter_regular_400}
149
+ marginLeft={0}
150
+ />
151
+
152
+ <Typography
153
+ text={`${name}`}
154
+ size={14}
155
+ color={theme.colors.black[100]}
156
+ fontFamily={theme.fonts.inter_bold_700}
157
+ marginLeft={0}
158
+ />
159
+ </Box>
160
+ </Box>
161
+ </Box>
162
+
163
+ <Icons icon={"CHECK_CIRCLE"} size={36} background={backgroundColor} />
164
+ </Box>
165
+ </Box>
166
+ </TouchableOpacity>
167
+ );
168
+ });
169
+
170
+ CardReport.displayName = "CardReport";
171
+
172
+ /**
173
+ * Componente Box para a interação da ui.
174
+ */
175
+ export default asBaseComponent(CardReport);
@@ -1,136 +1,140 @@
1
- /**
2
- * IMPORTS
3
- */
4
- import type React from "react";
5
- import { type DimensionValue, type ViewProps } from "react-native";
6
-
7
- type ICardReport = ViewProps & {
8
- /**
9
- * props que mostra o nome do usuário
10
- */
11
- name?: string;
12
-
13
- /**
14
- * props que mostra o ciclo do relatório - DIÁRIA OU SEMANAL
15
- */
16
- ciclo?: string;
17
-
18
- /**
19
- * props que mostra a data
20
- */
21
- generatedDate?: string;
22
- generatedTime?: string;
23
- status?: string;
24
-
25
- children?: React.ReactNode;
26
-
27
- /**
28
- * TestID para testes automático e identificação
29
- */
30
- testID?: string;
31
-
32
- /**
33
- * A propriedade CSS abreviada border define a borda de um elemento. Ele define os valores de largura da borda, estilo da borda e cor da borda.
34
- */
35
- borderStyled?: {
36
- borderStyle?: "solid" | "dotted" | "dashed";
37
-
38
- borderRadius?: number | DimensionValue;
39
- borderTopRightRadius?: number | DimensionValue;
40
- borderTopLeftRadius?: number | DimensionValue;
41
- borderBottomRightRadius?: number | DimensionValue;
42
- borderBottomLeftRadius?: number | DimensionValue;
43
-
44
- borderWidth?: number | DimensionValue;
45
- borderLeftWidth?: number | DimensionValue;
46
- borderRightWidth?: number | DimensionValue;
47
- borderTopWidth?: number | DimensionValue;
48
- borderBottomWidth?: number | DimensionValue;
49
-
50
- borderColor?: string;
51
- borderBottomColor?: string;
52
- borderLeftColor?: string;
53
- borderRightColor?: string;
54
- borderTopColor?: string;
55
- };
56
-
57
- /**
58
- * Propriedades que define a orientação do button que é usada para representar uma página. Na maioria das vezes, esse valores corresponde ao posicionamento alvo da página impressa, se aplicável.
59
- */
60
- flexStyle?: {
61
- alignItems?: "flex-start" | "flex-end" | "center" | "stretch" | "baseline";
62
- alignSelf?: "auto" | "flex-start" | "flex-end" | "center" | "stretch" | "baseline";
63
- flex?: string | number;
64
- flexDirection?: "column" | "column-reverse" | "row" | "row-reverse";
65
- flexWrap?: "nowrap" | "wrap" | "wrap-reverse";
66
- textAlign?: "auto" | "center" | "left" | "right" | "justify";
67
- justifyContent?:
68
- | "flex-start"
69
- | "flex-end"
70
- | "center"
71
- | "space-between"
72
- | "space-around"
73
- | "space-evenly";
74
- };
75
-
76
- /**
77
- * A propriedade margin do CSS define a área de margem nos quatro lados do elemento. É uma abreviação que define todas as margens individuais de uma só vez: margin-top, margin-right (en-US), margin-bottom, e margin-left (en-US).
78
- */
79
- marginStyle?: {
80
- margin?: number | DimensionValue;
81
- marginLeft?: number | DimensionValue;
82
- marginRight?: number | DimensionValue;
83
- marginTop?: number | DimensionValue;
84
- marginBottom?: number | DimensionValue;
85
- };
86
-
87
- /**
88
- * A propriedade padding define uma a distância entre o conteúdo de um elemento e suas bordas. É um atalho que evita definir uma distância para cada lado separadamente (padding-top, padding-right, padding-bottom, padding-left).
89
- */
90
- paddingStyle?: {
91
- padding?: number | DimensionValue;
92
- paddingLeft?: number | DimensionValue;
93
- paddingRight?: number | DimensionValue;
94
- paddingTop?: number | DimensionValue;
95
- paddingBottom?: number | DimensionValue;
96
- };
97
-
98
- /**
99
- * A propriedade CSS height define a altura de um elemento. A altura de um elemento é a distância do topo da borda superior do elemento ao fundo da borda inferior.
100
- */
101
- height?: number | DimensionValue;
102
-
103
- /**
104
- * A propriedade CSS width define a largura de um elemento. A largura de um elemento é a distância do topo da borda esquerda do elemento ao fundo da borda direita.
105
- */
106
- width?: number | DimensionValue;
107
-
108
- /**
109
- * O fundo abreviado CSS Propriedade define todas as propriedades do estilo de fundo de uma só vez, como cor, imagem, origem e tamanho ou método de repetição. As propriedades dos componentes não definidas no fundo da declaração de valor da propriedade abreviada são definidas como seus valores padrão..
110
- * A Propriedade Background está sendo utilizada para definir a cor de fundo do cabeçalho do card e do ícone check.
111
- */
112
- backgroundColor?: string;
113
-
114
- /**
115
- * Propriedade texto que sera renderizado pro usuário final
116
- */
117
- text?: string;
118
-
119
- /**
120
- * A propriedade CSS color define o valor da cor de primeiro plano do texto e das decorações de texto de um elemento e define o valor currentcolor. currentcolor pode ser usado como um valor indireto em outras propriedades e é o padrão para outras propriedades de cores, como border-color.
121
- */
122
- color?: {
123
- colorSvg?: string;
124
- colorText?: string;
125
- colorTextBold?: string;
126
- colorTextData?: string;
127
- };
128
-
129
- // Cor do ícone CHECK
130
- iconColor?: string;
131
- };
132
-
133
- /**
134
- * EXPORT
135
- */
136
- export type { ICardReport };
1
+ /* eslint-disable no-undef */
2
+ /**
3
+ * IMPORTS
4
+ */
5
+ import type React from "react";
6
+ import { type DimensionValue, type ViewProps } from "react-native";
7
+
8
+ type ICardReport = ViewProps & {
9
+ /**
10
+ * props que mostra o nome do usuário
11
+ */
12
+ name?: string;
13
+
14
+ /**
15
+ * props que mostra o ciclo do relatório - DIÁRIA OU SEMANAL
16
+ */
17
+ ciclo?: string;
18
+
19
+ /**
20
+ * props que mostra a data
21
+ */
22
+ generatedDate?: string;
23
+ generatedTime?: string;
24
+ status?: string;
25
+
26
+ children?: React.ReactNode;
27
+
28
+ // eslint-disable-next-line no-unused-vars
29
+ onPress: (data: T) => void;
30
+
31
+ /**
32
+ * TestID para testes automático e identificação
33
+ */
34
+ testID?: string;
35
+
36
+ /**
37
+ * A propriedade CSS abreviada border define a borda de um elemento. Ele define os valores de largura da borda, estilo da borda e cor da borda.
38
+ */
39
+ borderStyled?: {
40
+ borderStyle?: "solid" | "dotted" | "dashed";
41
+
42
+ borderRadius?: number | DimensionValue;
43
+ borderTopRightRadius?: number | DimensionValue;
44
+ borderTopLeftRadius?: number | DimensionValue;
45
+ borderBottomRightRadius?: number | DimensionValue;
46
+ borderBottomLeftRadius?: number | DimensionValue;
47
+
48
+ borderWidth?: number | DimensionValue;
49
+ borderLeftWidth?: number | DimensionValue;
50
+ borderRightWidth?: number | DimensionValue;
51
+ borderTopWidth?: number | DimensionValue;
52
+ borderBottomWidth?: number | DimensionValue;
53
+
54
+ borderColor?: string;
55
+ borderBottomColor?: string;
56
+ borderLeftColor?: string;
57
+ borderRightColor?: string;
58
+ borderTopColor?: string;
59
+ };
60
+
61
+ /**
62
+ * Propriedades que define a orientação do button que é usada para representar uma página. Na maioria das vezes, esse valores corresponde ao posicionamento alvo da página impressa, se aplicável.
63
+ */
64
+ flexStyle?: {
65
+ alignItems?: "flex-start" | "flex-end" | "center" | "stretch" | "baseline";
66
+ alignSelf?: "auto" | "flex-start" | "flex-end" | "center" | "stretch" | "baseline";
67
+ flex?: string | number;
68
+ flexDirection?: "column" | "column-reverse" | "row" | "row-reverse";
69
+ flexWrap?: "nowrap" | "wrap" | "wrap-reverse";
70
+ textAlign?: "auto" | "center" | "left" | "right" | "justify";
71
+ justifyContent?:
72
+ | "flex-start"
73
+ | "flex-end"
74
+ | "center"
75
+ | "space-between"
76
+ | "space-around"
77
+ | "space-evenly";
78
+ };
79
+
80
+ /**
81
+ * A propriedade margin do CSS define a área de margem nos quatro lados do elemento. É uma abreviação que define todas as margens individuais de uma só vez: margin-top, margin-right (en-US), margin-bottom, e margin-left (en-US).
82
+ */
83
+ marginStyle?: {
84
+ margin?: number | DimensionValue;
85
+ marginLeft?: number | DimensionValue;
86
+ marginRight?: number | DimensionValue;
87
+ marginTop?: number | DimensionValue;
88
+ marginBottom?: number | DimensionValue;
89
+ };
90
+
91
+ /**
92
+ * A propriedade padding define uma a distância entre o conteúdo de um elemento e suas bordas. É um atalho que evita definir uma distância para cada lado separadamente (padding-top, padding-right, padding-bottom, padding-left).
93
+ */
94
+ paddingStyle?: {
95
+ padding?: number | DimensionValue;
96
+ paddingLeft?: number | DimensionValue;
97
+ paddingRight?: number | DimensionValue;
98
+ paddingTop?: number | DimensionValue;
99
+ paddingBottom?: number | DimensionValue;
100
+ };
101
+
102
+ /**
103
+ * A propriedade CSS height define a altura de um elemento. A altura de um elemento é a distância do topo da borda superior do elemento ao fundo da borda inferior.
104
+ */
105
+ height?: number | DimensionValue;
106
+
107
+ /**
108
+ * A propriedade CSS width define a largura de um elemento. A largura de um elemento é a distância do topo da borda esquerda do elemento ao fundo da borda direita.
109
+ */
110
+ width?: number | DimensionValue;
111
+
112
+ /**
113
+ * O fundo abreviado CSS Propriedade define todas as propriedades do estilo de fundo de uma só vez, como cor, imagem, origem e tamanho ou método de repetição. As propriedades dos componentes não definidas no fundo da declaração de valor da propriedade abreviada são definidas como seus valores padrão..
114
+ * A Propriedade Background está sendo utilizada para definir a cor de fundo do cabeçalho do card e do ícone check.
115
+ */
116
+ backgroundColor?: string;
117
+
118
+ /**
119
+ * Propriedade texto que sera renderizado pro usuário final
120
+ */
121
+ text?: string;
122
+
123
+ /**
124
+ * A propriedade CSS color define o valor da cor de primeiro plano do texto e das decorações de texto de um elemento e define o valor currentcolor. currentcolor pode ser usado como um valor indireto em outras propriedades e é o padrão para outras propriedades de cores, como border-color.
125
+ */
126
+ color?: {
127
+ colorSvg?: string;
128
+ colorText?: string;
129
+ colorTextBold?: string;
130
+ colorTextData?: string;
131
+ };
132
+
133
+ // Cor do ícone CHECK
134
+ iconColor?: string;
135
+ };
136
+
137
+ /**
138
+ * EXPORT
139
+ */
140
+ export type { ICardReport };