react-native-exp-fig 0.1.22 → 0.1.24

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 (171) hide show
  1. package/lib/commonjs/components/activities-daily/index.js +9 -9
  2. package/lib/commonjs/components/activities-daily/index.js.map +1 -1
  3. package/lib/commonjs/components/activities-progress/index.js +14 -14
  4. package/lib/commonjs/components/activities-progress/index.js.map +1 -1
  5. package/lib/commonjs/components/avatar-profile/index.js +4 -4
  6. package/lib/commonjs/components/avatar-profile/index.js.map +1 -1
  7. package/lib/commonjs/components/box/index.js +27 -22
  8. package/lib/commonjs/components/box/index.js.map +1 -1
  9. package/lib/commonjs/components/box/interface.d.js.map +1 -1
  10. package/lib/commonjs/components/box/styles.js.map +1 -1
  11. package/lib/commonjs/components/card-history/index.js +16 -16
  12. package/lib/commonjs/components/card-history/index.js.map +1 -1
  13. package/lib/commonjs/components/card-hours/index.js +3 -3
  14. package/lib/commonjs/components/card-hours/index.js.map +1 -1
  15. package/lib/commonjs/components/card-loading/index.js +13 -13
  16. package/lib/commonjs/components/card-loading/index.js.map +1 -1
  17. package/lib/commonjs/components/card-scheduled-journey/index.js +6 -6
  18. package/lib/commonjs/components/card-scheduled-journey/index.js.map +1 -1
  19. package/lib/commonjs/components/card-work-session/index.js +12 -12
  20. package/lib/commonjs/components/card-work-session/index.js.map +1 -1
  21. package/lib/commonjs/components/check-box/index.js +5 -5
  22. package/lib/commonjs/components/check-box/index.js.map +1 -1
  23. package/lib/commonjs/components/coil/index.js +5 -5
  24. package/lib/commonjs/components/coil/index.js.map +1 -1
  25. package/lib/commonjs/components/filter-date-selector/index.js +2 -2
  26. package/lib/commonjs/components/filter-date-selector/index.js.map +1 -1
  27. package/lib/commonjs/components/header-profile/index.js +8 -8
  28. package/lib/commonjs/components/header-profile/index.js.map +1 -1
  29. package/lib/commonjs/components/history-activities-card/index.js +14 -13
  30. package/lib/commonjs/components/history-activities-card/index.js.map +1 -1
  31. package/lib/commonjs/components/history-details/index.js +5 -5
  32. package/lib/commonjs/components/history-details/index.js.map +1 -1
  33. package/lib/commonjs/components/image-capture-with-remove/index.js +2 -2
  34. package/lib/commonjs/components/image-capture-with-remove/index.js.map +1 -1
  35. package/lib/commonjs/components/input/index.js +11 -11
  36. package/lib/commonjs/components/input/index.js.map +1 -1
  37. package/lib/commonjs/components/loading-details/index.js +10 -10
  38. package/lib/commonjs/components/loading-details/index.js.map +1 -1
  39. package/lib/commonjs/components/loading-progress/index.js +5 -5
  40. package/lib/commonjs/components/loading-progress/index.js.map +1 -1
  41. package/lib/commonjs/components/menu-item/index.js +3 -3
  42. package/lib/commonjs/components/menu-item/index.js.map +1 -1
  43. package/lib/commonjs/components/modal-activities/index.js +5 -5
  44. package/lib/commonjs/components/modal-activities/index.js.map +1 -1
  45. package/lib/commonjs/components/modal-change-activity/index.js +15 -14
  46. package/lib/commonjs/components/modal-change-activity/index.js.map +1 -1
  47. package/lib/commonjs/components/no-data/index.js +2 -2
  48. package/lib/commonjs/components/no-data/index.js.map +1 -1
  49. package/lib/commonjs/components/notification-loading/index.js +12 -12
  50. package/lib/commonjs/components/notification-loading/index.js.map +1 -1
  51. package/lib/commonjs/components/profile-menu-option/index.js +3 -3
  52. package/lib/commonjs/components/profile-menu-option/index.js.map +1 -1
  53. package/lib/commonjs/components/scheduled-journey-indicators/index.js +4 -4
  54. package/lib/commonjs/components/scheduled-journey-indicators/index.js.map +1 -1
  55. package/lib/commonjs/components/user-profile/index.js +9 -9
  56. package/lib/commonjs/components/user-profile/index.js.map +1 -1
  57. package/lib/commonjs/helpers/text-utils.js +5 -5
  58. package/lib/commonjs/helpers/text-utils.js.map +1 -1
  59. package/lib/commonjs/index.js +3 -2
  60. package/lib/commonjs/index.js.map +1 -1
  61. package/lib/commonjs/stories/box/box.stories.js +2 -2
  62. package/lib/commonjs/stories/box/box.stories.js.map +1 -1
  63. package/lib/commonjs/stories/modal-change-activity/modal-change-activity.stories.js +4 -4
  64. package/lib/commonjs/stories/modal-change-activity/modal-change-activity.stories.js.map +1 -1
  65. package/lib/commonjs/utils/get-icon-by-property/index.js +10 -11
  66. package/lib/commonjs/utils/get-icon-by-property/index.js.map +1 -1
  67. package/lib/module/components/activities-daily/index.js +5 -5
  68. package/lib/module/components/activities-daily/index.js.map +1 -1
  69. package/lib/module/components/activities-progress/index.js +5 -5
  70. package/lib/module/components/activities-progress/index.js.map +1 -1
  71. package/lib/module/components/avatar-profile/index.js +1 -1
  72. package/lib/module/components/avatar-profile/index.js.map +1 -1
  73. package/lib/module/components/box/index.js +23 -22
  74. package/lib/module/components/box/index.js.map +1 -1
  75. package/lib/module/components/box/interface.d.js.map +1 -1
  76. package/lib/module/components/box/styles.js.map +1 -1
  77. package/lib/module/components/card-history/index.js +8 -8
  78. package/lib/module/components/card-history/index.js.map +1 -1
  79. package/lib/module/components/card-hours/index.js +1 -1
  80. package/lib/module/components/card-hours/index.js.map +1 -1
  81. package/lib/module/components/card-loading/index.js +1 -1
  82. package/lib/module/components/card-loading/index.js.map +1 -1
  83. package/lib/module/components/card-scheduled-journey/index.js +1 -1
  84. package/lib/module/components/card-scheduled-journey/index.js.map +1 -1
  85. package/lib/module/components/card-work-session/index.js +1 -1
  86. package/lib/module/components/card-work-session/index.js.map +1 -1
  87. package/lib/module/components/check-box/index.js +1 -1
  88. package/lib/module/components/check-box/index.js.map +1 -1
  89. package/lib/module/components/coil/index.js +1 -1
  90. package/lib/module/components/coil/index.js.map +1 -1
  91. package/lib/module/components/filter-date-selector/index.js +1 -1
  92. package/lib/module/components/filter-date-selector/index.js.map +1 -1
  93. package/lib/module/components/header-profile/index.js +1 -1
  94. package/lib/module/components/header-profile/index.js.map +1 -1
  95. package/lib/module/components/history-activities-card/index.js +1 -1
  96. package/lib/module/components/history-activities-card/index.js.map +1 -1
  97. package/lib/module/components/history-details/index.js +1 -1
  98. package/lib/module/components/history-details/index.js.map +1 -1
  99. package/lib/module/components/image-capture-with-remove/index.js +1 -1
  100. package/lib/module/components/image-capture-with-remove/index.js.map +1 -1
  101. package/lib/module/components/input/index.js +1 -1
  102. package/lib/module/components/input/index.js.map +1 -1
  103. package/lib/module/components/loading-details/index.js +5 -5
  104. package/lib/module/components/loading-details/index.js.map +1 -1
  105. package/lib/module/components/loading-progress/index.js +1 -1
  106. package/lib/module/components/loading-progress/index.js.map +1 -1
  107. package/lib/module/components/menu-item/index.js +1 -1
  108. package/lib/module/components/menu-item/index.js.map +1 -1
  109. package/lib/module/components/modal-activities/index.js +1 -1
  110. package/lib/module/components/modal-activities/index.js.map +1 -1
  111. package/lib/module/components/modal-change-activity/index.js +10 -9
  112. package/lib/module/components/modal-change-activity/index.js.map +1 -1
  113. package/lib/module/components/no-data/index.js +1 -1
  114. package/lib/module/components/no-data/index.js.map +1 -1
  115. package/lib/module/components/notification-loading/index.js +5 -5
  116. package/lib/module/components/notification-loading/index.js.map +1 -1
  117. package/lib/module/components/profile-menu-option/index.js +1 -1
  118. package/lib/module/components/profile-menu-option/index.js.map +1 -1
  119. package/lib/module/components/scheduled-journey-indicators/index.js +1 -1
  120. package/lib/module/components/scheduled-journey-indicators/index.js.map +1 -1
  121. package/lib/module/components/user-profile/index.js +1 -1
  122. package/lib/module/components/user-profile/index.js.map +1 -1
  123. package/lib/module/helpers/text-utils.js +5 -5
  124. package/lib/module/helpers/text-utils.js.map +1 -1
  125. package/lib/module/index.js +3 -3
  126. package/lib/module/index.js.map +1 -1
  127. package/lib/module/stories/box/box.stories.js +1 -1
  128. package/lib/module/stories/box/box.stories.js.map +1 -1
  129. package/lib/module/stories/modal-change-activity/modal-change-activity.stories.js +4 -4
  130. package/lib/module/stories/modal-change-activity/modal-change-activity.stories.js.map +1 -1
  131. package/lib/module/utils/get-icon-by-property/index.js +10 -11
  132. package/lib/module/utils/get-icon-by-property/index.js.map +1 -1
  133. package/lib/typescript/src/components/box/index.d.ts +8 -5
  134. package/lib/typescript/src/components/box/styles.d.ts +2 -2
  135. package/lib/typescript/src/index.d.ts +1 -1
  136. package/lib/typescript/src/stories/box/box.stories.d.ts +1 -1
  137. package/package.json +1 -1
  138. package/src/components/activities-daily/index.tsx +116 -116
  139. package/src/components/activities-progress/index.tsx +170 -170
  140. package/src/components/avatar-profile/index.tsx +1 -1
  141. package/src/components/box/index.tsx +53 -49
  142. package/src/components/box/interface.d.ts +2 -2
  143. package/src/components/box/styles.ts +2 -2
  144. package/src/components/card-history/index.tsx +221 -221
  145. package/src/components/card-hours/index.tsx +2 -1
  146. package/src/components/card-loading/index.tsx +1 -1
  147. package/src/components/card-scheduled-journey/index.tsx +1 -1
  148. package/src/components/card-work-session/index.tsx +1 -1
  149. package/src/components/check-box/index.tsx +1 -1
  150. package/src/components/coil/index.tsx +1 -1
  151. package/src/components/filter-date-selector/index.tsx +1 -1
  152. package/src/components/header-profile/index.tsx +1 -1
  153. package/src/components/history-activities-card/index.tsx +1 -1
  154. package/src/components/history-details/index.tsx +1 -1
  155. package/src/components/image-capture-with-remove/index.tsx +1 -1
  156. package/src/components/input/index.tsx +1 -1
  157. package/src/components/loading-details/index.tsx +156 -156
  158. package/src/components/loading-progress/index.tsx +1 -1
  159. package/src/components/menu-item/index.tsx +1 -1
  160. package/src/components/modal-activities/index.tsx +1 -1
  161. package/src/components/modal-change-activity/index.tsx +200 -202
  162. package/src/components/no-data/index.tsx +1 -1
  163. package/src/components/notification-loading/index.tsx +157 -157
  164. package/src/components/profile-menu-option/index.tsx +1 -1
  165. package/src/components/scheduled-journey-indicators/index.tsx +1 -1
  166. package/src/components/user-profile/index.tsx +1 -1
  167. package/src/helpers/text-utils.ts +15 -15
  168. package/src/index.ts +45 -45
  169. package/src/stories/box/box.stories.tsx +1 -1
  170. package/src/stories/modal-change-activity/modal-change-activity.stories.tsx +51 -52
  171. package/src/utils/get-icon-by-property/index.tsx +65 -67
@@ -1,157 +1,157 @@
1
- /**
2
- * IMPORTS
3
- */
4
- import React from "react";
5
- import { TouchableOpacity } from "react-native";
6
-
7
- // components
8
- import { Box } from "../box";
9
- import { Typography } from "../typography";
10
-
11
- // icons
12
- import { Icons } from "../../common/icons-svg";
13
-
14
- // theme
15
- import { theme } from "../../styles/theme/theme";
16
-
17
- import { INotificationLoading } from "./interface";
18
- import { getStatusColor, StatusType } from "../../utils/status-color/return-color";
19
-
20
- const NotificationLoading: React.FC<INotificationLoading> = ({
21
- handleNavigation,
22
- title,
23
- testID,
24
- statusNotify,
25
- date,
26
- notification,
27
- dataStart,
28
- style,
29
- readonly,
30
- }) => {
31
- return (
32
- <TouchableOpacity activeOpacity={0.7} testID={testID} onPress={handleNavigation}>
33
- <Box
34
- width={"100%"}
35
- flexStyle={{ flexDirection: "row", alignItems: "center" }}
36
- backgroundColor={readonly ? theme.colors.blue[40050] : theme.colors.blue[400]}
37
- borderStyled={{
38
- borderWidth: theme.borderWidths.thin,
39
- borderRadius: theme.borderWidths.thick_medium,
40
- borderColor: readonly ? theme.colors.blue[40050] : theme.colors.blue[400],
41
- }}
42
- paddingStyle={{ padding: theme.paddings["2xs"] }}
43
- style={style}
44
- >
45
- <Box width={"9%"}>
46
- <Icons icon={"BELL"} size={32} color={theme.colors.neutral[25]} />
47
- </Box>
48
-
49
- <Box
50
- flexStyle={{ flexDirection: "column" }}
51
- width={"91%"}
52
- paddingStyle={{ paddingLeft: 7 }}
53
- >
54
- {/* Carregamento identificação */}
55
- <Box flexStyle={{ flexDirection: "row", alignItems: "center" }}>
56
- <Typography
57
- text={"Carregamento - "}
58
- size={theme.fontSizes.sm}
59
- lineHeight={theme.fontSizes.lg}
60
- fontFamily={theme.fonts.inter_semi_bold_600}
61
- fontWeight="600"
62
- color={theme.colors.neutral[25]}
63
- letterSpacing={"regular"}
64
- />
65
- <Typography
66
- text={title}
67
- size={theme.fontSizes.xs}
68
- lineHeight={theme.fontSizes.md}
69
- fontFamily={theme.fonts.inter_bold_700}
70
- fontWeight="700"
71
- color={theme.colors.neutral[25]}
72
- letterSpacing={"regular"}
73
- />
74
- </Box>
75
-
76
- {/* Data do carregamento */}
77
- <Box
78
- flexStyle={{
79
- flexDirection: "row",
80
- alignItems: "center",
81
- justifyContent: "space-between",
82
- }}
83
- >
84
- <Box
85
- flexStyle={{
86
- flexDirection: "row",
87
- alignItems: "center",
88
- }}
89
- >
90
- <Typography
91
- text={"Data - "}
92
- size={theme.fontSizes.sm}
93
- lineHeight={theme.fontSizes.lg ?? 18}
94
- fontFamily={theme.fonts.inter_medium_500}
95
- fontWeight="500"
96
- color={theme.colors.neutral[25]}
97
- letterSpacing={"regular"}
98
- />
99
- <Typography
100
- text={String(date)}
101
- size={theme.fontSizes.sm}
102
- lineHeight={theme.fontSizes.lg ?? 18}
103
- fontFamily={theme.fonts.inter_medium_500}
104
- fontWeight="500"
105
- color={theme.colors.neutral[25]}
106
- letterSpacing={"regular"}
107
- />
108
- </Box>
109
- <Box
110
- flexStyle={{
111
- flexDirection: "row",
112
- alignItems: "center",
113
- }}
114
- >
115
- <Typography
116
- text={String(dataStart)}
117
- size={theme.fontSizes["2xs"]}
118
- fontFamily={theme.fonts.inter_medium_500}
119
- fontWeight="500"
120
- lineHeight={theme.fontSizes.sm}
121
- color={theme.colors.neutral[25]}
122
- letterSpacing={"regular"}
123
- marginRight={8}
124
- />
125
-
126
- <Icons
127
- icon={"ELLIPSE"}
128
- color={
129
- readonly ? theme.colors.neutral[25] : getStatusColor(statusNotify as StatusType)
130
- }
131
- size={9}
132
- />
133
- </Box>
134
- </Box>
135
-
136
- {/* Mensagem de notificação do carregamento */}
137
- <Typography
138
- text={notification}
139
- size={theme.fontSizes["2xs"]}
140
- fontFamily={theme.fonts.inter_medium_500}
141
- fontWeight="500"
142
- lineHeight={theme.fontSizes.sm ?? 14}
143
- color={theme.colors.neutral[25]}
144
- letterSpacing={"regular"}
145
- ellipsizeMode="tail"
146
- numberOfLines={1}
147
- />
148
- </Box>
149
- </Box>
150
- </TouchableOpacity>
151
- );
152
- };
153
-
154
- /**
155
- * EXPORTS
156
- */
157
- export { NotificationLoading };
1
+ /**
2
+ * IMPORTS
3
+ */
4
+ import React from "react";
5
+ import { TouchableOpacity } from "react-native";
6
+
7
+ // components
8
+ import Box from "../box";
9
+ import { Typography } from "../typography";
10
+
11
+ // icons
12
+ import { Icons } from "../../common/icons-svg";
13
+
14
+ // theme
15
+ import { theme } from "../../styles/theme/theme";
16
+
17
+ import { INotificationLoading } from "./interface";
18
+ import { getStatusColor, StatusType } from "../../utils/status-color/return-color";
19
+
20
+ const NotificationLoading: React.FC<INotificationLoading> = ({
21
+ handleNavigation,
22
+ title,
23
+ testID,
24
+ statusNotify,
25
+ date,
26
+ notification,
27
+ dataStart,
28
+ style,
29
+ readonly,
30
+ }) => {
31
+ return (
32
+ <TouchableOpacity activeOpacity={0.7} testID={testID} onPress={handleNavigation}>
33
+ <Box
34
+ width={"100%"}
35
+ flexStyle={{ flexDirection: "row", alignItems: "center" }}
36
+ backgroundColor={readonly ? theme.colors.blue[40050] : theme.colors.blue[400]}
37
+ borderStyled={{
38
+ borderWidth: theme.borderWidths.thin,
39
+ borderRadius: theme.borderWidths.thick_medium,
40
+ borderColor: readonly ? theme.colors.blue[40050] : theme.colors.blue[400],
41
+ }}
42
+ paddingStyle={{ padding: theme.paddings["2xs"] }}
43
+ style={style}
44
+ >
45
+ <Box width={"9%"}>
46
+ <Icons icon={"BELL"} size={32} color={theme.colors.neutral[25]} />
47
+ </Box>
48
+
49
+ <Box
50
+ flexStyle={{ flexDirection: "column" }}
51
+ width={"91%"}
52
+ paddingStyle={{ paddingLeft: 7 }}
53
+ >
54
+ {/* Carregamento identificação */}
55
+ <Box flexStyle={{ flexDirection: "row", alignItems: "center" }}>
56
+ <Typography
57
+ text={"Carregamento - "}
58
+ size={theme.fontSizes.sm}
59
+ lineHeight={theme.fontSizes.lg}
60
+ fontFamily={theme.fonts.inter_semi_bold_600}
61
+ fontWeight="600"
62
+ color={theme.colors.neutral[25]}
63
+ letterSpacing={"regular"}
64
+ />
65
+ <Typography
66
+ text={title}
67
+ size={theme.fontSizes.xs}
68
+ lineHeight={theme.fontSizes.md}
69
+ fontFamily={theme.fonts.inter_bold_700}
70
+ fontWeight="700"
71
+ color={theme.colors.neutral[25]}
72
+ letterSpacing={"regular"}
73
+ />
74
+ </Box>
75
+
76
+ {/* Data do carregamento */}
77
+ <Box
78
+ flexStyle={{
79
+ flexDirection: "row",
80
+ alignItems: "center",
81
+ justifyContent: "space-between",
82
+ }}
83
+ >
84
+ <Box
85
+ flexStyle={{
86
+ flexDirection: "row",
87
+ alignItems: "center",
88
+ }}
89
+ >
90
+ <Typography
91
+ text={"Data - "}
92
+ size={theme.fontSizes.sm}
93
+ lineHeight={theme.fontSizes.lg ?? 18}
94
+ fontFamily={theme.fonts.inter_medium_500}
95
+ fontWeight="500"
96
+ color={theme.colors.neutral[25]}
97
+ letterSpacing={"regular"}
98
+ />
99
+ <Typography
100
+ text={String(date)}
101
+ size={theme.fontSizes.sm}
102
+ lineHeight={theme.fontSizes.lg ?? 18}
103
+ fontFamily={theme.fonts.inter_medium_500}
104
+ fontWeight="500"
105
+ color={theme.colors.neutral[25]}
106
+ letterSpacing={"regular"}
107
+ />
108
+ </Box>
109
+ <Box
110
+ flexStyle={{
111
+ flexDirection: "row",
112
+ alignItems: "center",
113
+ }}
114
+ >
115
+ <Typography
116
+ text={String(dataStart)}
117
+ size={theme.fontSizes["2xs"]}
118
+ fontFamily={theme.fonts.inter_medium_500}
119
+ fontWeight="500"
120
+ lineHeight={theme.fontSizes.sm}
121
+ color={theme.colors.neutral[25]}
122
+ letterSpacing={"regular"}
123
+ marginRight={8}
124
+ />
125
+
126
+ <Icons
127
+ icon={"ELLIPSE"}
128
+ color={
129
+ readonly ? theme.colors.neutral[25] : getStatusColor(statusNotify as StatusType)
130
+ }
131
+ size={9}
132
+ />
133
+ </Box>
134
+ </Box>
135
+
136
+ {/* Mensagem de notificação do carregamento */}
137
+ <Typography
138
+ text={notification}
139
+ size={theme.fontSizes["2xs"]}
140
+ fontFamily={theme.fonts.inter_medium_500}
141
+ fontWeight="500"
142
+ lineHeight={theme.fontSizes.sm ?? 14}
143
+ color={theme.colors.neutral[25]}
144
+ letterSpacing={"regular"}
145
+ ellipsizeMode="tail"
146
+ numberOfLines={1}
147
+ />
148
+ </Box>
149
+ </Box>
150
+ </TouchableOpacity>
151
+ );
152
+ };
153
+
154
+ /**
155
+ * EXPORTS
156
+ */
157
+ export { NotificationLoading };
@@ -2,7 +2,7 @@ import React from "react";
2
2
  import { TouchableOpacity } from "react-native";
3
3
 
4
4
  // components
5
- import { Box } from "../box";
5
+ import Box from "../box";
6
6
  import { Typography } from "../typography";
7
7
 
8
8
  // icons
@@ -6,7 +6,7 @@ import React from "react";
6
6
  import { Dimensions, TouchableOpacity } from "react-native";
7
7
 
8
8
  // components
9
- import { Box } from "../box";
9
+ import Box from "../box";
10
10
  import { Typography } from "../typography";
11
11
 
12
12
  // commons / Icon
@@ -5,7 +5,7 @@ import React from "react";
5
5
  import { Image, TouchableOpacity } from "react-native";
6
6
 
7
7
  // components
8
- import { Box } from "../box";
8
+ import Box from "../box";
9
9
  import { Typography } from "../typography";
10
10
 
11
11
  // comons / constants
@@ -1,15 +1,15 @@
1
- /**
2
- * Função para limitar a quantidade de caracteres de um texto
3
- * @param text - O texto a ser limitado
4
- * @param maxLength - Número máximo de caracteres (padrão: 20)
5
- * @returns Texto limitado com "..." se exceder o limite
6
- */
7
- export const truncateText = (text: string, maxLength: number = 20): string => {
8
- if (!text) return "";
9
-
10
- if (text.length <= maxLength) {
11
- return text;
12
- }
13
-
14
- return text.substring(0, maxLength) + "...";
15
- };
1
+ /**
2
+ * Função para limitar a quantidade de caracteres de um texto
3
+ * @param text - O texto a ser limitado
4
+ * @param maxLength - Número máximo de caracteres (padrão: 20)
5
+ * @returns Texto limitado com "..." se exceder o limite
6
+ */
7
+ export const truncateText = (text: string, maxLength: number = 20): string => {
8
+ if (!text) return "";
9
+
10
+ if (text.length <= maxLength) {
11
+ return text;
12
+ }
13
+
14
+ return text.substring(0, maxLength) + "...";
15
+ };
package/src/index.ts CHANGED
@@ -1,45 +1,45 @@
1
- /**
2
- * EXPORTS
3
- */
4
-
5
- // Components
6
- export { Box } from "./components/box";
7
- export { Button } from "./components/button";
8
- export { StepIndicator } from "./components/step-indicator";
9
- export { Typography } from "./components/typography";
10
- export { Input } from "./components/input";
11
- export { CapturePhoto } from "./components/capture-photo";
12
- export { CardHours } from "./components/card-hours";
13
- export { SelectOption } from "./components/selects/select-option";
14
- export { Header } from "./components/header-profile";
15
- export { ScheduledJourneyIndicators } from "./components/scheduled-journey-indicators";
16
- export { CardScheduledJourney } from "./components/card-scheduled-journey";
17
- export { UserProfile } from "./components/user-profile";
18
- export { MenuItem } from "./components/menu-item";
19
- export { CardLoading } from "./components/card-loading";
20
- export { CardWorkSession } from "./components/card-work-session";
21
- export { LoadingProgress } from "./components/loading-progress";
22
- export { NoData } from "./components/no-data";
23
- export { FilterJourney } from "./components/filter-journey";
24
- export { Coil } from "./components/coil";
25
- export { FilterDateSelector } from "./components/filter-date-selector";
26
- export { CardHistory } from "./components/card-history";
27
- export { NotificationLoading } from "./components/notification-loading";
28
- export { CheckBox } from "./components/check-box";
29
- export { ImageCaptureWithRemove } from "./components/image-capture-with-remove";
30
- export { LoadingDetails } from "./components/loading-details";
31
- export { AvatarProfile } from "./components/avatar-profile";
32
- export { HistoryDetails } from "./components/history-details";
33
- export { ActivitiesDaily } from "./components/activities-daily";
34
- export { ActivitiesProgress } from "./components/activities-progress";
35
- export { ProfileMenuOption } from "./components/profile-menu-option";
36
- export { ModalActivities } from "./components/modal-activities";
37
- export { HistoryActivitiesCard } from "./components/history-activities-card";
38
- export { ModalChangeActivity } from "./components/modal-change-activity";
39
-
40
- // Utilities
41
- export { multiply } from "./utils/mutiply";
42
- export { formatDate, getLastSevenDays, formHoursMinute } from "./utils/format-data";
43
-
44
- // Styles
45
- export { theme } from "./styles/theme/theme";
1
+ /**
2
+ * EXPORTS
3
+ */
4
+
5
+ // Components
6
+ export { default as Box } from "./components/box";
7
+ export { Button } from "./components/button";
8
+ export { StepIndicator } from "./components/step-indicator";
9
+ export { Typography } from "./components/typography";
10
+ export { Input } from "./components/input";
11
+ export { CapturePhoto } from "./components/capture-photo";
12
+ export { CardHours } from "./components/card-hours";
13
+ export { SelectOption } from "./components/selects/select-option";
14
+ export { Header } from "./components/header-profile";
15
+ export { ScheduledJourneyIndicators } from "./components/scheduled-journey-indicators";
16
+ export { CardScheduledJourney } from "./components/card-scheduled-journey";
17
+ export { UserProfile } from "./components/user-profile";
18
+ export { MenuItem } from "./components/menu-item";
19
+ export { CardLoading } from "./components/card-loading";
20
+ export { CardWorkSession } from "./components/card-work-session";
21
+ export { LoadingProgress } from "./components/loading-progress";
22
+ export { NoData } from "./components/no-data";
23
+ export { FilterJourney } from "./components/filter-journey";
24
+ export { Coil } from "./components/coil";
25
+ export { FilterDateSelector } from "./components/filter-date-selector";
26
+ export { CardHistory } from "./components/card-history";
27
+ export { NotificationLoading } from "./components/notification-loading";
28
+ export { CheckBox } from "./components/check-box";
29
+ export { ImageCaptureWithRemove } from "./components/image-capture-with-remove";
30
+ export { LoadingDetails } from "./components/loading-details";
31
+ export { AvatarProfile } from "./components/avatar-profile";
32
+ export { HistoryDetails } from "./components/history-details";
33
+ export { ActivitiesDaily } from "./components/activities-daily";
34
+ export { ActivitiesProgress } from "./components/activities-progress";
35
+ export { ProfileMenuOption } from "./components/profile-menu-option";
36
+ export { ModalActivities } from "./components/modal-activities";
37
+ export { HistoryActivitiesCard } from "./components/history-activities-card";
38
+ export { ModalChangeActivity } from "./components/modal-change-activity";
39
+
40
+ // Utilities
41
+ export { multiply } from "./utils/mutiply";
42
+ export { formatDate, getLastSevenDays, formHoursMinute } from "./utils/format-data";
43
+
44
+ // Styles
45
+ export { theme } from "./styles/theme/theme";
@@ -2,7 +2,7 @@ import React from "react";
2
2
  import { Meta, StoryObj } from "@storybook/react";
3
3
 
4
4
  // components
5
- import { Box } from "../../components/box";
5
+ import Box from "../../components/box";
6
6
  import { Typography } from "../../components/typography";
7
7
 
8
8
  // styles
@@ -1,52 +1,51 @@
1
- /**
2
- * IMPORTS
3
- */
4
-
5
- import type { Meta, StoryObj } from "@storybook/react";
6
-
7
- // component
8
- import { ModalChangeActivity } from "../../components/modal-change-activity";
9
-
10
- const meta: Meta<typeof ModalChangeActivity> = {
11
- title: "Componente/ModalChangeActivity",
12
- component: ModalChangeActivity,
13
- args: {
14
- visible: true,
15
- dataRegistro: "07/03/2024",
16
- descricao: "Repouso Noturno",
17
- imagemUrl: "https://via.placeholder.com/150",
18
- onClose: () => console.log("Modal fechado"),
19
- modalConfirm: (data: { label: string; value: string; key: number }) =>
20
- console.log("Confirmado:", data),
21
- },
22
- parameters: {
23
- docs: {
24
- description: {
25
- component: `
26
- # ModalChangeActivity
27
-
28
- Componente de modal para alterar a atividade do usuário.
29
-
30
- ## Uso
31
- \`\`\`tsx
32
- <ModalChangeActivity
33
- visible
34
- dataRegistro="07/03/2024"
35
- descricao="Repouso Noturno"
36
- modalConfirm={(data) => console.log(data)}
37
- onClose={() => console.log("fechar modal")}
38
- />
39
- \`\`\`
40
- `,
41
- },
42
- },
43
- },
44
- };
45
-
46
- export default meta;
47
-
48
- type Story = StoryObj<typeof meta>;
49
-
50
- export const Default: Story = {
51
- name: "Modal - Alterar Descanso",
52
- };
1
+ /**
2
+ * IMPORTS
3
+ */
4
+
5
+ import type { Meta, StoryObj } from "@storybook/react";
6
+
7
+ // component
8
+ import { ModalChangeActivity } from "../../components/modal-change-activity";
9
+
10
+ const meta: Meta<typeof ModalChangeActivity> = {
11
+ title: "Componente/ModalChangeActivity",
12
+ component: ModalChangeActivity,
13
+ args: {
14
+ visible: true,
15
+ dataRegistro: "07/03/2024",
16
+ descricao: "Repouso Noturno",
17
+ imagemUrl: "https://via.placeholder.com/150",
18
+ onClose: () => {},
19
+ modalConfirm: () => {},
20
+ },
21
+ parameters: {
22
+ docs: {
23
+ description: {
24
+ component: `
25
+ # ModalChangeActivity
26
+
27
+ Componente de modal para alterar a atividade do usuário.
28
+
29
+ ## Uso
30
+ \`\`\`tsx
31
+ <ModalChangeActivity
32
+ visible
33
+ dataRegistro="07/03/2024"
34
+ descricao="Repouso Noturno"
35
+ modalConfirm={(data) => console.log(data)}
36
+ onClose={() => console.log("fechar modal")}
37
+ />
38
+ \`\`\`
39
+ `,
40
+ },
41
+ },
42
+ },
43
+ };
44
+
45
+ export default meta;
46
+
47
+ type Story = StoryObj<typeof meta>;
48
+
49
+ export const Default: Story = {
50
+ name: "Modal - Alterar Descanso",
51
+ };