react-native-exp-fig 0.1.26 → 0.1.28
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/lib/commonjs/components/activity-timeline/components/activite-row/index.js +130 -0
- package/lib/commonjs/components/activity-timeline/components/activite-row/index.js.map +1 -0
- package/lib/commonjs/components/activity-timeline/index.js +78 -0
- package/lib/commonjs/components/activity-timeline/index.js.map +1 -0
- package/lib/commonjs/components/activity-timeline/interface.js +6 -0
- package/lib/commonjs/components/activity-timeline/interface.js.map +1 -0
- package/lib/commonjs/components/activity-timeline/styles.js +84 -0
- package/lib/commonjs/components/activity-timeline/styles.js.map +1 -0
- package/lib/commonjs/components/input-text-counter/index.js +66 -0
- package/lib/commonjs/components/input-text-counter/index.js.map +1 -0
- package/lib/commonjs/components/input-text-counter/interface.d.js.map +1 -0
- package/lib/commonjs/components/input-text-counter/styles.js +42 -0
- package/lib/commonjs/components/input-text-counter/styles.js.map +1 -0
- package/lib/commonjs/components/modal-create-activitie/index.js +202 -0
- package/lib/commonjs/components/modal-create-activitie/index.js.map +1 -0
- package/lib/commonjs/components/modal-create-activitie/interface.js +2 -0
- package/lib/commonjs/components/modal-create-activitie/interface.js.map +1 -0
- package/lib/commonjs/components/modal-create-activitie/styles.js +42 -0
- package/lib/commonjs/components/modal-create-activitie/styles.js.map +1 -0
- package/lib/commonjs/components/modal-journey-rectification/index.js +202 -0
- package/lib/commonjs/components/modal-journey-rectification/index.js.map +1 -0
- package/lib/commonjs/components/modal-journey-rectification/interface.d.js +2 -0
- package/lib/commonjs/components/modal-journey-rectification/interface.d.js.map +1 -0
- package/lib/commonjs/components/modal-journey-rectification/styles.js +42 -0
- package/lib/commonjs/components/modal-journey-rectification/styles.js.map +1 -0
- package/lib/commonjs/components/{modal-activities → modals/modal-activities}/data-activities/index.js +2 -2
- package/lib/commonjs/components/modals/modal-activities/data-activities/index.js.map +1 -0
- package/lib/commonjs/components/{modal-activities → modals/modal-activities}/index.js +8 -8
- package/lib/commonjs/components/modals/modal-activities/index.js.map +1 -0
- package/lib/commonjs/components/modals/modal-activities/interface.d.js +6 -0
- package/lib/commonjs/components/modals/modal-activities/interface.d.js.map +1 -0
- package/lib/commonjs/components/modals/modal-activity-reason/index.js +161 -0
- package/lib/commonjs/components/modals/modal-activity-reason/index.js.map +1 -0
- package/lib/commonjs/components/modals/modal-activity-reason/interface.d.js +2 -0
- package/lib/commonjs/components/modals/modal-activity-reason/interface.d.js.map +1 -0
- package/lib/commonjs/components/{modal-change-activity → modals/modal-change-activity}/index.js +7 -7
- package/lib/commonjs/components/modals/modal-change-activity/index.js.map +1 -0
- package/lib/commonjs/components/selects/select-date-and-hours/index.js +95 -0
- package/lib/commonjs/components/selects/select-date-and-hours/index.js.map +1 -0
- package/lib/commonjs/components/selects/select-date-and-hours/interface.js +6 -0
- package/lib/commonjs/components/selects/select-date-and-hours/interface.js.map +1 -0
- package/lib/commonjs/components/selects/select-date-and-hours/styles.js +33 -0
- package/lib/commonjs/components/selects/select-date-and-hours/styles.js.map +1 -0
- package/lib/commonjs/components/selects/select-option/index.js +41 -39
- package/lib/commonjs/components/selects/select-option/index.js.map +1 -1
- package/lib/commonjs/components/step-indicator/index.js +7 -7
- package/lib/commonjs/components/step-indicator/index.js.map +1 -1
- package/lib/commonjs/index.js +39 -4
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/stories/activity-timeline/activity-timeline.stories.js +82 -0
- package/lib/commonjs/stories/activity-timeline/activity-timeline.stories.js.map +1 -0
- package/lib/commonjs/stories/input-text-counter/input-text-counter.stories.js +259 -0
- package/lib/commonjs/stories/input-text-counter/input-text-counter.stories.js.map +1 -0
- package/lib/commonjs/stories/modal-activities/modal-activities.stories.js +1 -1
- package/lib/commonjs/stories/modal-activities/modal-activities.stories.js.map +1 -1
- package/lib/commonjs/stories/modal-activity-reason/modal-activity-reason.stories.js +198 -0
- package/lib/commonjs/stories/modal-activity-reason/modal-activity-reason.stories.js.map +1 -0
- package/lib/commonjs/stories/modal-change-activity/modal-change-activity.stories.js +3 -3
- package/lib/commonjs/stories/modal-change-activity/modal-change-activity.stories.js.map +1 -1
- package/lib/commonjs/stories/modal-create-activitie/modal-create-activitie.stories.js +86 -0
- package/lib/commonjs/stories/modal-create-activitie/modal-create-activitie.stories.js.map +1 -0
- package/lib/commonjs/stories/modal-journey-rectification/modal-journey-rectification.stories.js +172 -0
- package/lib/commonjs/stories/modal-journey-rectification/modal-journey-rectification.stories.js.map +1 -0
- package/lib/commonjs/stories/select-option/select-option.stories.js +3 -2
- package/lib/commonjs/stories/select-option/select-option.stories.js.map +1 -1
- package/lib/commonjs/styles/theme/theme.js +18 -2
- package/lib/commonjs/styles/theme/theme.js.map +1 -1
- package/lib/commonjs/utils/options-activity/index.js +27 -0
- package/lib/commonjs/utils/options-activity/index.js.map +1 -0
- package/lib/commonjs/utils/text-limit/index.js +37 -0
- package/lib/commonjs/utils/text-limit/index.js.map +1 -0
- package/lib/module/components/activity-timeline/components/activite-row/index.js +123 -0
- package/lib/module/components/activity-timeline/components/activite-row/index.js.map +1 -0
- package/lib/module/components/activity-timeline/index.js +70 -0
- package/lib/module/components/activity-timeline/index.js.map +1 -0
- package/lib/module/components/activity-timeline/interface.js +2 -0
- package/lib/module/components/activity-timeline/interface.js.map +1 -0
- package/lib/module/components/activity-timeline/styles.js +78 -0
- package/lib/module/components/activity-timeline/styles.js.map +1 -0
- package/lib/module/components/input-text-counter/index.js +63 -0
- package/lib/module/components/input-text-counter/index.js.map +1 -0
- package/lib/module/components/input-text-counter/interface.d.js.map +1 -0
- package/lib/module/components/input-text-counter/styles.js +37 -0
- package/lib/module/components/input-text-counter/styles.js.map +1 -0
- package/lib/module/components/modal-create-activitie/index.js +192 -0
- package/lib/module/components/modal-create-activitie/index.js.map +1 -0
- package/lib/module/components/modal-create-activitie/interface.js +2 -0
- package/lib/module/components/modal-create-activitie/interface.js.map +1 -0
- package/lib/module/components/modal-create-activitie/styles.js +37 -0
- package/lib/module/components/modal-create-activitie/styles.js.map +1 -0
- package/lib/module/components/modal-journey-rectification/index.js +192 -0
- package/lib/module/components/modal-journey-rectification/index.js.map +1 -0
- package/lib/module/components/modal-journey-rectification/interface.d.js +2 -0
- package/lib/module/components/modal-journey-rectification/interface.d.js.map +1 -0
- package/lib/module/components/modal-journey-rectification/styles.js +37 -0
- package/lib/module/components/modal-journey-rectification/styles.js.map +1 -0
- package/lib/module/components/{modal-activities → modals/modal-activities}/data-activities/index.js +2 -2
- package/lib/module/components/modals/modal-activities/data-activities/index.js.map +1 -0
- package/lib/module/components/{modal-activities → modals/modal-activities}/index.js +8 -8
- package/lib/module/components/modals/modal-activities/index.js.map +1 -0
- package/lib/module/components/modals/modal-activities/interface.d.js +2 -0
- package/lib/module/components/modals/modal-activities/interface.d.js.map +1 -0
- package/lib/module/components/modals/modal-activity-reason/index.js +151 -0
- package/lib/module/components/modals/modal-activity-reason/index.js.map +1 -0
- package/lib/module/components/modals/modal-activity-reason/interface.d.js +2 -0
- package/lib/module/components/modals/modal-activity-reason/interface.d.js.map +1 -0
- package/lib/module/components/{modal-change-activity → modals/modal-change-activity}/index.js +6 -6
- package/lib/module/components/modals/modal-change-activity/index.js.map +1 -0
- package/lib/module/components/selects/select-date-and-hours/index.js +86 -0
- package/lib/module/components/selects/select-date-and-hours/index.js.map +1 -0
- package/lib/module/components/selects/select-date-and-hours/interface.js +2 -0
- package/lib/module/components/selects/select-date-and-hours/interface.js.map +1 -0
- package/lib/module/components/selects/select-date-and-hours/styles.js +28 -0
- package/lib/module/components/selects/select-date-and-hours/styles.js.map +1 -0
- package/lib/module/components/selects/select-option/index.js +41 -42
- package/lib/module/components/selects/select-option/index.js.map +1 -1
- package/lib/module/components/step-indicator/index.js +7 -7
- package/lib/module/components/step-indicator/index.js.map +1 -1
- package/lib/module/index.js +10 -5
- package/lib/module/index.js.map +1 -1
- package/lib/module/stories/activity-timeline/activity-timeline.stories.js +75 -0
- package/lib/module/stories/activity-timeline/activity-timeline.stories.js.map +1 -0
- package/lib/module/stories/input-text-counter/input-text-counter.stories.js +253 -0
- package/lib/module/stories/input-text-counter/input-text-counter.stories.js.map +1 -0
- package/lib/module/stories/modal-activities/modal-activities.stories.js +1 -1
- package/lib/module/stories/modal-activities/modal-activities.stories.js.map +1 -1
- package/lib/module/stories/modal-activity-reason/modal-activity-reason.stories.js +193 -0
- package/lib/module/stories/modal-activity-reason/modal-activity-reason.stories.js.map +1 -0
- package/lib/module/stories/modal-change-activity/modal-change-activity.stories.js +3 -3
- package/lib/module/stories/modal-change-activity/modal-change-activity.stories.js.map +1 -1
- package/lib/module/stories/modal-create-activitie/modal-create-activitie.stories.js +78 -0
- package/lib/module/stories/modal-create-activitie/modal-create-activitie.stories.js.map +1 -0
- package/lib/module/stories/modal-journey-rectification/modal-journey-rectification.stories.js +168 -0
- package/lib/module/stories/modal-journey-rectification/modal-journey-rectification.stories.js.map +1 -0
- package/lib/module/stories/select-option/select-option.stories.js +1 -1
- package/lib/module/stories/select-option/select-option.stories.js.map +1 -1
- package/lib/module/styles/theme/theme.js +18 -2
- package/lib/module/styles/theme/theme.js.map +1 -1
- package/lib/module/utils/options-activity/index.js +22 -0
- package/lib/module/utils/options-activity/index.js.map +1 -0
- package/lib/module/utils/text-limit/index.js +30 -0
- package/lib/module/utils/text-limit/index.js.map +1 -0
- package/lib/typescript/src/components/activity-timeline/components/activite-row/index.d.ts +10 -0
- package/lib/typescript/src/components/activity-timeline/index.d.ts +16 -0
- package/lib/typescript/src/components/activity-timeline/interface.d.ts +39 -0
- package/lib/typescript/src/components/activity-timeline/styles.d.ts +71 -0
- package/lib/typescript/src/components/input-text-counter/index.d.ts +33 -0
- package/lib/typescript/src/components/input-text-counter/styles.d.ts +34 -0
- package/lib/typescript/src/components/modal-create-activitie/index.d.ts +7 -0
- package/lib/typescript/src/components/modal-create-activitie/interface.d.ts +18 -0
- package/lib/typescript/src/components/modal-create-activitie/styles.d.ts +32 -0
- package/lib/typescript/src/components/modal-journey-rectification/index.d.ts +7 -0
- package/lib/typescript/src/components/modal-journey-rectification/styles.d.ts +32 -0
- package/lib/typescript/src/components/modals/modal-activity-reason/index.d.ts +7 -0
- package/lib/typescript/src/components/selects/select-date-and-hours/index.d.ts +12 -0
- package/lib/typescript/src/components/selects/select-date-and-hours/interface.d.ts +21 -0
- package/lib/typescript/src/components/selects/select-date-and-hours/styles.d.ts +24 -0
- package/lib/typescript/src/components/selects/select-option/index.d.ts +3 -6
- package/lib/typescript/src/index.d.ts +8 -3
- package/lib/typescript/src/stories/activity-timeline/activity-timeline.stories.d.ts +8 -0
- package/lib/typescript/src/stories/input-text-counter/input-text-counter.stories.d.ts +17 -0
- package/lib/typescript/src/stories/modal-activities/modal-activities.stories.d.ts +1 -1
- package/lib/typescript/src/stories/modal-activity-reason/modal-activity-reason.stories.d.ts +15 -0
- package/lib/typescript/src/stories/modal-change-activity/modal-change-activity.stories.d.ts +1 -1
- package/lib/typescript/src/stories/modal-create-activitie/modal-create-activitie.stories.d.ts +12 -0
- package/lib/typescript/src/stories/modal-journey-rectification/modal-journey-rectification.stories.d.ts +34 -0
- package/lib/typescript/src/stories/select-option/select-option.stories.d.ts +1 -1
- package/lib/typescript/src/styles/global/theme-provider.d.ts +16 -0
- package/lib/typescript/src/styles/theme/theme.d.ts +16 -0
- package/lib/typescript/src/utils/options-activity/index.d.ts +20 -0
- package/lib/typescript/src/utils/text-limit/index.d.ts +13 -0
- package/package.json +1 -1
- package/src/components/activity-timeline/components/activite-row/index.tsx +133 -0
- package/src/components/activity-timeline/index.tsx +72 -0
- package/src/components/activity-timeline/interface.ts +53 -0
- package/src/components/activity-timeline/styles.ts +69 -0
- package/src/components/input-text-counter/index.tsx +64 -0
- package/src/components/input-text-counter/interface.d.ts +41 -0
- package/src/components/input-text-counter/styles.ts +38 -0
- package/src/components/modal-create-activitie/index.tsx +211 -0
- package/src/components/modal-create-activitie/interface.ts +22 -0
- package/src/components/modal-create-activitie/styles.ts +24 -0
- package/src/components/modal-journey-rectification/index.tsx +211 -0
- package/src/components/modal-journey-rectification/interface.d.ts +22 -0
- package/src/components/modal-journey-rectification/styles.ts +24 -0
- package/src/components/{modal-activities → modals/modal-activities}/data-activities/index.ts +65 -65
- package/src/components/{modal-activities → modals/modal-activities}/index.tsx +137 -137
- package/src/components/{modal-activities → modals/modal-activities}/interface.d.ts +32 -32
- package/src/components/modals/modal-activity-reason/index.tsx +162 -0
- package/src/components/modals/modal-activity-reason/interface.d.ts +10 -0
- package/src/components/{modal-change-activity → modals/modal-change-activity}/index.tsx +6 -6
- package/src/components/selects/select-date-and-hours/index.tsx +97 -0
- package/src/components/selects/select-date-and-hours/interface.ts +31 -0
- package/src/components/selects/select-date-and-hours/styles.ts +24 -0
- package/src/components/selects/select-option/index.tsx +50 -41
- package/src/components/step-indicator/index.tsx +235 -235
- package/src/index.ts +50 -45
- package/src/stories/activity-timeline/activity-timeline.stories.tsx +90 -0
- package/src/stories/input-text-counter/input-text-counter.stories.tsx +232 -0
- package/src/stories/modal-activities/modal-activities.stories.tsx +64 -64
- package/src/stories/modal-activity-reason/modal-activity-reason.stories.tsx +192 -0
- package/src/stories/modal-change-activity/modal-change-activity.stories.tsx +49 -49
- package/src/stories/modal-create-activitie/modal-create-activitie.stories.tsx +82 -0
- package/src/stories/modal-journey-rectification/modal-journey-rectification.stories.tsx +161 -0
- package/src/stories/select-option/select-option.stories.tsx +1 -1
- package/src/styles/theme/theme.ts +17 -0
- package/src/utils/options-activity/index.ts +14 -0
- package/src/utils/text-limit/index.ts +28 -0
- package/lib/commonjs/components/modal-activities/data-activities/index.js.map +0 -1
- package/lib/commonjs/components/modal-activities/index.js.map +0 -1
- package/lib/commonjs/components/modal-activities/interface.d.js.map +0 -1
- package/lib/commonjs/components/modal-change-activity/index.js.map +0 -1
- package/lib/module/components/modal-activities/data-activities/index.js.map +0 -1
- package/lib/module/components/modal-activities/index.js.map +0 -1
- package/lib/module/components/modal-activities/interface.d.js.map +0 -1
- package/lib/module/components/modal-change-activity/index.js.map +0 -1
- /package/lib/commonjs/components/{modal-activities → input-text-counter}/interface.d.js +0 -0
- /package/lib/module/components/{modal-activities → input-text-counter}/interface.d.js +0 -0
- /package/lib/typescript/src/components/{modal-activities → modals/modal-activities}/data-activities/index.d.ts +0 -0
- /package/lib/typescript/src/components/{modal-activities → modals/modal-activities}/index.d.ts +0 -0
- /package/lib/typescript/src/components/{modal-change-activity → modals/modal-change-activity}/index.d.ts +0 -0
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* IMPORTS
|
|
3
|
+
*/
|
|
4
|
+
import { StyleSheet } from "react-native";
|
|
5
|
+
import { theme } from "../../styles/theme/theme";
|
|
6
|
+
export const ROW_HEIGHT = 72;
|
|
7
|
+
const styles = StyleSheet.create({
|
|
8
|
+
listContainer: {
|
|
9
|
+
paddingVertical: 8
|
|
10
|
+
},
|
|
11
|
+
row: {
|
|
12
|
+
width: "100%",
|
|
13
|
+
minHeight: ROW_HEIGHT,
|
|
14
|
+
paddingVertical: 8,
|
|
15
|
+
paddingHorizontal: 8,
|
|
16
|
+
flexDirection: "row",
|
|
17
|
+
alignItems: "center",
|
|
18
|
+
justifyContent: "center",
|
|
19
|
+
gap: 6
|
|
20
|
+
},
|
|
21
|
+
badge: {
|
|
22
|
+
width: 28,
|
|
23
|
+
height: 28,
|
|
24
|
+
borderRadius: 14,
|
|
25
|
+
backgroundColor: theme.colors.blue[500],
|
|
26
|
+
alignItems: "center",
|
|
27
|
+
justifyContent: "center"
|
|
28
|
+
},
|
|
29
|
+
card: {
|
|
30
|
+
flex: 1,
|
|
31
|
+
borderRadius: 10
|
|
32
|
+
},
|
|
33
|
+
title: {
|
|
34
|
+
marginBottom: 6
|
|
35
|
+
},
|
|
36
|
+
pill: {
|
|
37
|
+
flexDirection: "row",
|
|
38
|
+
alignItems: "center",
|
|
39
|
+
borderWidth: 1,
|
|
40
|
+
borderRadius: 10,
|
|
41
|
+
paddingHorizontal: 10,
|
|
42
|
+
paddingVertical: 8,
|
|
43
|
+
gap: 4
|
|
44
|
+
},
|
|
45
|
+
pillOk: {
|
|
46
|
+
backgroundColor: "#F3F3F5",
|
|
47
|
+
borderColor: "#C4D4E5"
|
|
48
|
+
},
|
|
49
|
+
pillInvalid: {
|
|
50
|
+
backgroundColor: "#FDE7E7",
|
|
51
|
+
borderColor: theme.colors.red[900]
|
|
52
|
+
},
|
|
53
|
+
sep: {
|
|
54
|
+
marginHorizontal: 8,
|
|
55
|
+
opacity: 0.5
|
|
56
|
+
},
|
|
57
|
+
actions: {
|
|
58
|
+
flexDirection: "row",
|
|
59
|
+
gap: 8
|
|
60
|
+
},
|
|
61
|
+
iconButton: {
|
|
62
|
+
width: 36,
|
|
63
|
+
height: 36,
|
|
64
|
+
borderRadius: 8,
|
|
65
|
+
backgroundColor: theme.colors.neutral[25],
|
|
66
|
+
borderWidth: 1,
|
|
67
|
+
borderColor: theme.colors.neutral[200],
|
|
68
|
+
alignItems: "center",
|
|
69
|
+
justifyContent: "center",
|
|
70
|
+
marginTop: 36
|
|
71
|
+
}
|
|
72
|
+
});
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
* EXPORTS
|
|
76
|
+
*/
|
|
77
|
+
export { styles };
|
|
78
|
+
//# sourceMappingURL=styles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["StyleSheet","theme","ROW_HEIGHT","styles","create","listContainer","paddingVertical","row","width","minHeight","paddingHorizontal","flexDirection","alignItems","justifyContent","gap","badge","height","borderRadius","backgroundColor","colors","blue","card","flex","title","marginBottom","pill","borderWidth","pillOk","borderColor","pillInvalid","red","sep","marginHorizontal","opacity","actions","iconButton","neutral","marginTop"],"sources":["styles.ts"],"sourcesContent":["/**\r\n * IMPORTS\r\n */\r\nimport { StyleSheet } from \"react-native\";\r\nimport { theme } from \"../../styles/theme/theme\";\r\n\r\nexport const ROW_HEIGHT = 72;\r\n\r\nconst styles = StyleSheet.create({\r\n listContainer: { paddingVertical: 8 },\r\n row: {\r\n width: \"100%\",\r\n minHeight: ROW_HEIGHT,\r\n paddingVertical: 8,\r\n paddingHorizontal: 8,\r\n flexDirection: \"row\",\r\n alignItems: \"center\",\r\n justifyContent: \"center\",\r\n gap: 6,\r\n },\r\n badge: {\r\n width: 28,\r\n height: 28,\r\n borderRadius: 14,\r\n backgroundColor: theme.colors.blue[500],\r\n alignItems: \"center\",\r\n justifyContent: \"center\",\r\n },\r\n card: {\r\n flex: 1,\r\n borderRadius: 10,\r\n },\r\n title: { marginBottom: 6 },\r\n pill: {\r\n flexDirection: \"row\",\r\n alignItems: \"center\",\r\n borderWidth: 1,\r\n borderRadius: 10,\r\n paddingHorizontal: 10,\r\n paddingVertical: 8,\r\n gap: 4,\r\n },\r\n pillOk: {\r\n backgroundColor: \"#F3F3F5\",\r\n borderColor: \"#C4D4E5\",\r\n },\r\n pillInvalid: {\r\n backgroundColor: \"#FDE7E7\",\r\n borderColor: theme.colors.red[900],\r\n },\r\n sep: { marginHorizontal: 8, opacity: 0.5 },\r\n actions: { flexDirection: \"row\", gap: 8 },\r\n iconButton: {\r\n width: 36,\r\n height: 36,\r\n borderRadius: 8,\r\n backgroundColor: theme.colors.neutral[25],\r\n borderWidth: 1,\r\n borderColor: theme.colors.neutral[200],\r\n alignItems: \"center\",\r\n justifyContent: \"center\",\r\n marginTop: 36,\r\n },\r\n});\r\n\r\n/**\r\n * EXPORTS\r\n */\r\nexport { styles };"],"mappings":"AAAA;AACA;AACA;AACA,SAASA,UAAU,QAAQ,cAAc;AACzC,SAASC,KAAK,QAAQ,0BAA0B;AAEhD,OAAO,MAAMC,UAAU,GAAG,EAAE;AAE5B,MAAMC,MAAM,GAAGH,UAAU,CAACI,MAAM,CAAC;EAC/BC,aAAa,EAAE;IAAEC,eAAe,EAAE;EAAE,CAAC;EACrCC,GAAG,EAAE;IACHC,KAAK,EAAE,MAAM;IACbC,SAAS,EAAEP,UAAU;IACrBI,eAAe,EAAE,CAAC;IAClBI,iBAAiB,EAAE,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ACkB,MAAM,CAACiB,OAAO,CAAC,GAAG,CAAC;IACtCxB,UAAU,EAAE,QAAQ;IACpBC,cAAc,EAAE,QAAQ;IACxBwB,SAAS,EAAE;EACb;AACF,CAAC,CAAC;;AAEF;AACA;AACA;AACA,SAASlC,MAAM","ignoreList":[]}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
2
|
+
/**
|
|
3
|
+
* IMPORTS
|
|
4
|
+
*/
|
|
5
|
+
import React, { forwardRef, useState } from "react";
|
|
6
|
+
import { View, Text, TextInput } from "react-native";
|
|
7
|
+
|
|
8
|
+
// components
|
|
9
|
+
import Box from "../box";
|
|
10
|
+
|
|
11
|
+
// typings
|
|
12
|
+
|
|
13
|
+
import { asBaseComponent } from "../../@types/as-base-component";
|
|
14
|
+
|
|
15
|
+
// styles
|
|
16
|
+
import { stylesInput } from "./styles";
|
|
17
|
+
const MAX_LENGTH = 150;
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* Component input + limitador de carecteres para interação do usuário.
|
|
21
|
+
*/
|
|
22
|
+
const InputTextCounter = /*#__PURE__*/forwardRef(({
|
|
23
|
+
label,
|
|
24
|
+
onChangeText,
|
|
25
|
+
error = null,
|
|
26
|
+
...props
|
|
27
|
+
}, ref) => {
|
|
28
|
+
const [text, setText] = useState("");
|
|
29
|
+
const handleChangeText = value => {
|
|
30
|
+
const sliced = value.slice(0, 150);
|
|
31
|
+
setText(sliced);
|
|
32
|
+
onChangeText === null || onChangeText === void 0 || onChangeText(sliced);
|
|
33
|
+
};
|
|
34
|
+
return /*#__PURE__*/React.createElement(View, null, /*#__PURE__*/React.createElement(Text, {
|
|
35
|
+
style: stylesInput.label
|
|
36
|
+
}, label), /*#__PURE__*/React.createElement(View, {
|
|
37
|
+
style: stylesInput.inputWrapper
|
|
38
|
+
}, /*#__PURE__*/React.createElement(TextInput, _extends({
|
|
39
|
+
ref: ref,
|
|
40
|
+
multiline: true,
|
|
41
|
+
style: stylesInput.input,
|
|
42
|
+
placeholderTextColor: "#999",
|
|
43
|
+
maxLength: MAX_LENGTH,
|
|
44
|
+
value: text,
|
|
45
|
+
onChangeText: handleChangeText
|
|
46
|
+
}, props))), /*#__PURE__*/React.createElement(Box, {
|
|
47
|
+
flexStyle: {
|
|
48
|
+
flexDirection: "row",
|
|
49
|
+
justifyContent: error ? "space-between" : "flex-end"
|
|
50
|
+
}
|
|
51
|
+
}, error && /*#__PURE__*/React.createElement(Text, {
|
|
52
|
+
style: stylesInput.errorText
|
|
53
|
+
}, error), /*#__PURE__*/React.createElement(Text, {
|
|
54
|
+
style: stylesInput.charCount
|
|
55
|
+
}, `${text.length}/${MAX_LENGTH}`)));
|
|
56
|
+
});
|
|
57
|
+
InputTextCounter.displayName = "InputTextCounterProps";
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* EXPORTS
|
|
61
|
+
*/
|
|
62
|
+
export default asBaseComponent(/*#__PURE__*/React.memo(InputTextCounter));
|
|
63
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","forwardRef","useState","View","Text","TextInput","Box","asBaseComponent","stylesInput","MAX_LENGTH","InputTextCounter","label","onChangeText","error","props","ref","text","setText","handleChangeText","value","sliced","slice","createElement","style","inputWrapper","_extends","multiline","input","placeholderTextColor","maxLength","flexStyle","flexDirection","justifyContent","errorText","charCount","length","displayName","memo"],"sources":["index.tsx"],"sourcesContent":["/**\r\n * IMPORTS\r\n */\r\nimport React, { forwardRef, useState } from \"react\";\r\nimport { View, Text, TextInput } from \"react-native\";\r\n\r\n// components\r\nimport Box from \"../box\";\r\n\r\n// typings\r\nimport type { InputTextCounterProps } from \"./interface\";\r\nimport { asBaseComponent } from \"../../@types/as-base-component\";\r\n\r\n// styles\r\nimport { stylesInput } from \"./styles\";\r\nconst MAX_LENGTH = 150;\r\n\r\n/**\r\n * Component input + limitador de carecteres para interação do usuário.\r\n */\r\nconst InputTextCounter = forwardRef<any, InputTextCounterProps>(\r\n ({ label, onChangeText, error = null, ...props }, ref): React.ReactElement => {\r\n const [text, setText] = useState(\"\");\r\n\r\n const handleChangeText = (value: string) => {\r\n const sliced = value.slice(0, 150);\r\n setText(sliced);\r\n onChangeText?.(sliced);\r\n };\r\n\r\n return (\r\n <View>\r\n <Text style={stylesInput.label}>{label}</Text>\r\n\r\n <View style={stylesInput.inputWrapper}>\r\n <TextInput\r\n ref={ref}\r\n multiline\r\n style={stylesInput.input}\r\n placeholderTextColor=\"#999\"\r\n maxLength={MAX_LENGTH}\r\n value={text}\r\n onChangeText={handleChangeText}\r\n {...props}\r\n />\r\n </View>\r\n\r\n <Box\r\n flexStyle={{ flexDirection: \"row\", justifyContent: error ? \"space-between\" : \"flex-end\" }}\r\n >\r\n {error && <Text style={stylesInput.errorText}>{error}</Text>}\r\n <Text style={stylesInput.charCount}>{`${text.length}/${MAX_LENGTH}`}</Text>\r\n </Box>\r\n </View>\r\n );\r\n }\r\n);\r\n\r\nInputTextCounter.displayName = \"InputTextCounterProps\";\r\n\r\n/**\r\n * EXPORTS\r\n */\r\nexport default asBaseComponent(React.memo(InputTextCounter));\r\n"],"mappings":";AAAA;AACA;AACA;AACA,OAAOA,KAAK,IAAIC,UAAU,EAAEC,QAAQ,QAAQ,OAAO;AACnD,SAASC,IAAI,EAAEC,IAAI,EAAEC,SAAS,QAAQ,cAAc;;AAEpD;AACA,OAAOC,GAAG,MAAM,QAAQ;;AAExB;;AAEA,SAASC,eAAe,QAAQ,gCAAgC;;AAEhE;AACA,SAASC,WAAW,QAAQ,UAAU;AACtC,MAAMC,UAAU,GAAG,GAAG;;AAEtB;AACA;AACA;AACA,MAAMC,gBAAgB,gBAAGT,UAAU,CACjC,CAAC;EAAEU,KAAK;EAAEC,Y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lB,IAAI,CAACmB,MAAM,IAAI1B,UAAU,EAAS,CACvE,CACD,CAAC;AAEX,CACF,CAAC;AAEDC,gBAAgB,CAAC0B,WAAW,GAAG,uBAAuB;;AAEtD;AACA;AACA;AACA,eAAe7B,eAAe,cAACP,KAAK,CAACqC,IAAI,CAAC3B,gBAAgB,CAAC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sources":["interface.d.ts"],"sourcesContent":["/**\r\n * IMPORTS\r\n */\r\nimport { type TextInputProps, type DimensionValue } from \"react-native\";\r\n\r\ntype InputTextCounterProps = TextInputProps & {\r\n label: string;\r\n backgroundColor?: string;\r\n\r\n error?: string | null;\r\n\r\n /**\r\n * 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.\r\n */\r\n borderStyled?: {\r\n borderStyle?: \"solid\" | \"dotted\" | \"dashed\";\r\n\r\n borderRadius?: number | DimensionValue;\r\n borderTopRightRadius?: number | DimensionValue;\r\n borderTopLeftRadius?: number | DimensionValue;\r\n borderBottomRightRadius?: number | DimensionValue;\r\n borderBottomLeftRadius?: number | DimensionValue;\r\n\r\n borderWidth?: number | DimensionValue;\r\n borderLeftWidth?: number | DimensionValue;\r\n borderRightWidth?: number | DimensionValue;\r\n borderTopWidth?: number | DimensionValue;\r\n borderBottomWidth?: number | DimensionValue;\r\n\r\n borderColor?: string;\r\n borderBottomColor?: string;\r\n borderLeftColor?: string;\r\n borderRightColor?: string;\r\n borderTopColor?: string;\r\n };\r\n};\r\n\r\n/**\r\n * EXPORTS\r\n */\r\nexport { InputTextCounterProps };\r\n"],"mappings":"","ignoreList":[]}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { StyleSheet } from "react-native";
|
|
2
|
+
import { theme } from "../../styles/theme/theme";
|
|
3
|
+
const stylesInput = StyleSheet.create({
|
|
4
|
+
label: {
|
|
5
|
+
fontFamily: theme.fonts.inter_regular_400,
|
|
6
|
+
fontSize: theme.fontSizes.md,
|
|
7
|
+
color: theme.colors.black[100],
|
|
8
|
+
marginBottom: theme.margins["1xs"],
|
|
9
|
+
fontWeight: "500"
|
|
10
|
+
},
|
|
11
|
+
inputWrapper: {
|
|
12
|
+
borderColor: theme.colors.gray[850],
|
|
13
|
+
borderWidth: theme.borderWidths.thin,
|
|
14
|
+
borderRadius: theme.borderWidths.thick
|
|
15
|
+
},
|
|
16
|
+
input: {
|
|
17
|
+
fontFamily: theme.fonts.inter_regular_400,
|
|
18
|
+
fontSize: theme.fontSizes.sm,
|
|
19
|
+
color: theme.colors.gray[850],
|
|
20
|
+
padding: theme.paddings["2xs"],
|
|
21
|
+
textAlignVertical: "top",
|
|
22
|
+
minHeight: 80
|
|
23
|
+
},
|
|
24
|
+
charCount: {
|
|
25
|
+
alignSelf: "flex-end",
|
|
26
|
+
marginTop: theme.margins["1xs"],
|
|
27
|
+
color: theme.colors.gray[850],
|
|
28
|
+
fontSize: theme.fontSizes.sm
|
|
29
|
+
},
|
|
30
|
+
errorText: {
|
|
31
|
+
color: theme.colors.red[900],
|
|
32
|
+
fontSize: theme.fontSizes.sm,
|
|
33
|
+
marginTop: theme.margins["1xs"]
|
|
34
|
+
}
|
|
35
|
+
});
|
|
36
|
+
export { stylesInput };
|
|
37
|
+
//# sourceMappingURL=styles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["StyleSheet","theme","stylesInput","create","label","fontFamily","fonts","inter_regular_400","fontSize","fontSizes","md","color","colors","black","marginBottom","margins","fontWeight","inputWrapper","borderColor","gray","borderWidth","borderWidths","thin","borderRadius","thick","input","sm","padding","paddings","textAlignVertical","minHeight","charCount","alignSelf","marginTop","errorText","red"],"sources":["styles.ts"],"sourcesContent":["import { StyleSheet } from \"react-native\";\r\nimport { theme } from \"../../styles/theme/theme\";\r\n\r\nconst stylesInput = StyleSheet.create({\r\n label: {\r\n fontFamily: theme.fonts.inter_regular_400,\r\n fontSize: theme.fontSizes.md,\r\n color: theme.colors.black[100],\r\n marginBottom: theme.margins[\"1xs\"],\r\n fontWeight: \"500\",\r\n },\r\n inputWrapper: {\r\n borderColor: theme.colors.gray[850],\r\n borderWidth: theme.borderWidths.thin,\r\n borderRadius: theme.borderWidths.thick,\r\n },\r\n input: {\r\n fontFamily: theme.fonts.inter_regular_400,\r\n fontSize: theme.fontSizes.sm,\r\n color: theme.colors.gray[850],\r\n padding: theme.paddings[\"2xs\"],\r\n textAlignVertical: \"top\",\r\n minHeight: 80,\r\n },\r\n charCount: {\r\n alignSelf: \"flex-end\",\r\n marginTop: theme.margins[\"1xs\"],\r\n color: theme.colors.gray[850],\r\n fontSize: theme.fontSizes.sm,\r\n },\r\n errorText: {\r\n color: theme.colors.red[900],\r\n fontSize: theme.fontSizes.sm,\r\n marginTop: theme.margins[\"1xs\"],\r\n },\r\n});\r\n\r\nexport { stylesInput };\r\n"],"mappings":"AAAA,SAASA,UAAU,QAAQ,cAAc;AACzC,SAASC,KAAK,QAAQ,0BAA0B;AAEhD,MAAMC,WAAW,GAAGF,UAAU,CAACG,MAAM,CAAC;EACpCC,KAAK,EAAE;IACLC,UAAU,EAAEJ,KAAK,CAACK,KAAK,CAACC,iBAAiB;IACzCC,QAAQ,EAAEP,KAAK,CAACQ,SAAS,CAACC,EAAE;IAC5BC,KAAK,EAAEV,KAAK,CAACW,MAAM,CAACC,KAAK,CAAC,GAAG,CAAC;IAC9BC,YAAY,EAAEb,KAAK,CAACc,OAAO,CAAC,KAAK,CAAC;IAClCC,UAAU,EAAE;EACd,CAAC;EACDC,YAAY,EAAE;IACZC,WAAW,EAAEjB,KAAK,CAACW,MAAM,CAACO,IAAI,CAAC,GAAG,CAAC;IACnCC,WAAW,EAAEnB,KAAK,CAACoB,YAAY,CAACC,IAAI;IACpCC,YAAY,EAAEtB,KAAK,CAACoB,YAAY,CAACG;EACnC,CAAC;EACDC,KAAK,EAAE;IACLpB,UAAU,EAAEJ,KAAK,CAACK,KAAK,CAACC,iBAAiB;IACzCC,QAAQ,EAAEP,KAAK,CAACQ,SAAS,CAACiB,EAAE;IAC5Bf,KAAK,EAAEV,KAAK,CAACW,MAAM,CAACO,IAAI,CAAC,GAAG,CAAC;IAC7BQ,OAAO,EAAE1B,KAAK,CAAC2B,QAAQ,CAAC,KAAK,CAAC;IAC9BC,iBAAiB,EAAE,KAAK;IACxBC,SAAS,EAAE;EACb,CAAC;EACDC,SAAS,EAAE;IACTC,SAAS,EAAE,UAAU;IACrBC,SAAS,EAAEhC,KAAK,CAACc,OAAO,CAAC,KAAK,CAAC;IAC/BJ,KAAK,EAAEV,KAAK,CAACW,MAAM,CAACO,IAAI,CAAC,GAAG,CAAC;IAC7BX,QAAQ,EAAEP,KAAK,CAACQ,SAAS,CAACiB;EAC5B,CAAC;EACDQ,SAAS,EAAE;IACTvB,KAAK,EAAEV,KAAK,CAACW,MAAM,CAACuB,GAAG,CAAC,GAAG,CAAC;IAC5B3B,QAAQ,EAAEP,KAAK,CAACQ,SAAS,CAACiB,EAAE;IAC5BO,SAAS,EAAEhC,KAAK,CAACc,OAAO,CAAC,KAAK;EAChC;AACF,CAAC,CAAC;AAEF,SAASb,WAAW","ignoreList":[]}
|
|
@@ -0,0 +1,192 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* IMPORTS
|
|
3
|
+
*/
|
|
4
|
+
import React, { useMemo, useState, useCallback } from "react";
|
|
5
|
+
import { Modal, View, Pressable } from "react-native";
|
|
6
|
+
|
|
7
|
+
// components
|
|
8
|
+
import Box from "..//box";
|
|
9
|
+
import { Button } from "../button";
|
|
10
|
+
import { Typography } from "../typography";
|
|
11
|
+
import ActivityFields from "../selects/select-date-and-hours";
|
|
12
|
+
import SelectOption from "../selects/select-option";
|
|
13
|
+
|
|
14
|
+
// commons
|
|
15
|
+
import { Icons } from "../../common/icons-svg";
|
|
16
|
+
import { asBaseComponent } from "../../@types/as-base-component";
|
|
17
|
+
|
|
18
|
+
// helpers
|
|
19
|
+
import { OPTIONS } from "../../utils/options-activity";
|
|
20
|
+
|
|
21
|
+
// typings
|
|
22
|
+
|
|
23
|
+
// styles / theme
|
|
24
|
+
import { theme } from "../../styles/theme/theme";
|
|
25
|
+
import { styles } from "./styles";
|
|
26
|
+
import { formatDate, formHoursMinute } from "../../utils/format-data";
|
|
27
|
+
const ModalCreteActivitie = /*#__PURE__*/React.memo(({
|
|
28
|
+
visible,
|
|
29
|
+
onClose,
|
|
30
|
+
onPressConfirm,
|
|
31
|
+
textTitle
|
|
32
|
+
}) => {
|
|
33
|
+
var _OPTIONS$0$value, _OPTIONS$;
|
|
34
|
+
const [dateAndHours, setDateAndHours] = useState({
|
|
35
|
+
date: formatDate(new Date()),
|
|
36
|
+
hours: formHoursMinute(String(new Date().getHours() * 3600 + new Date().getMinutes() * 60))
|
|
37
|
+
});
|
|
38
|
+
|
|
39
|
+
// estados controlados mínimos
|
|
40
|
+
const [selectedActivitie, setSelectedActivitie] = useState((_OPTIONS$0$value = (_OPTIONS$ = OPTIONS[0]) === null || _OPTIONS$ === void 0 ? void 0 : _OPTIONS$.value) !== null && _OPTIONS$0$value !== void 0 ? _OPTIONS$0$value : null);
|
|
41
|
+
|
|
42
|
+
// label do motivo derivada com memo
|
|
43
|
+
const activitieLabel = useMemo(() => {
|
|
44
|
+
var _OPTIONS$find$label, _OPTIONS$find;
|
|
45
|
+
return (_OPTIONS$find$label = (_OPTIONS$find = OPTIONS.find(activitie => activitie.value === selectedActivitie)) === null || _OPTIONS$find === void 0 ? void 0 : _OPTIONS$find.label) !== null && _OPTIONS$find$label !== void 0 ? _OPTIONS$find$label : null;
|
|
46
|
+
}, [selectedActivitie]);
|
|
47
|
+
|
|
48
|
+
// handlers estáveis
|
|
49
|
+
const handleChangeReason = useCallback(value => {
|
|
50
|
+
setSelectedActivitie(value);
|
|
51
|
+
}, []);
|
|
52
|
+
const handleCancel = useCallback(() => {
|
|
53
|
+
onClose === null || onClose === void 0 || onClose();
|
|
54
|
+
}, [onClose]);
|
|
55
|
+
const handleConfirm = useCallback(() => {
|
|
56
|
+
onPressConfirm === null || onPressConfirm === void 0 || onPressConfirm({
|
|
57
|
+
reasonValue: selectedActivitie,
|
|
58
|
+
label: activitieLabel,
|
|
59
|
+
dateAndHours: dateAndHours
|
|
60
|
+
});
|
|
61
|
+
onClose === null || onClose === void 0 || onClose();
|
|
62
|
+
}, [onPressConfirm, onClose, activitieLabel, selectedActivitie, dateAndHours]);
|
|
63
|
+
return /*#__PURE__*/React.createElement(Modal, {
|
|
64
|
+
animationType: "fade",
|
|
65
|
+
transparent: true,
|
|
66
|
+
visible: visible,
|
|
67
|
+
onRequestClose: handleCancel,
|
|
68
|
+
statusBarTranslucent: true
|
|
69
|
+
}, /*#__PURE__*/React.createElement(Pressable, {
|
|
70
|
+
style: styles.overlay,
|
|
71
|
+
onPress: handleCancel
|
|
72
|
+
}, /*#__PURE__*/React.createElement(Box, {
|
|
73
|
+
width: "90%",
|
|
74
|
+
backgroundColor: theme.colors.orange[500],
|
|
75
|
+
borderStyled: {
|
|
76
|
+
borderRadius: theme.borderWidths.thick_medium
|
|
77
|
+
},
|
|
78
|
+
paddingStyle: {
|
|
79
|
+
paddingLeft: theme.paddings["2xs"],
|
|
80
|
+
paddingRight: theme.paddings["2xs"],
|
|
81
|
+
paddingTop: theme.paddings.sm,
|
|
82
|
+
paddingBottom: theme.paddings.sm
|
|
83
|
+
}
|
|
84
|
+
}, /*#__PURE__*/React.createElement(View, {
|
|
85
|
+
style: styles.headerRow
|
|
86
|
+
}, /*#__PURE__*/React.createElement(Icons, {
|
|
87
|
+
icon: "EXCLAMATION_TRIANGLE",
|
|
88
|
+
color: theme.colors.orange[500],
|
|
89
|
+
background: theme.colors.neutral[300],
|
|
90
|
+
size: 22
|
|
91
|
+
}), /*#__PURE__*/React.createElement(Typography, {
|
|
92
|
+
text: textTitle !== null && textTitle !== void 0 ? textTitle : "Incluir atividade",
|
|
93
|
+
color: theme.colors.neutral[25],
|
|
94
|
+
marginLeft: theme.margins["2xs"],
|
|
95
|
+
fontFamily: theme.fonts.inter_bold,
|
|
96
|
+
fontWeight: "700",
|
|
97
|
+
size: theme.fontSizes.lg
|
|
98
|
+
})), /*#__PURE__*/React.createElement(Box, {
|
|
99
|
+
backgroundColor: theme.colors.neutral[300],
|
|
100
|
+
paddingStyle: {
|
|
101
|
+
padding: theme.paddings.xs
|
|
102
|
+
},
|
|
103
|
+
borderStyled: {
|
|
104
|
+
borderRadius: theme.borderWidths.thick_medium
|
|
105
|
+
}
|
|
106
|
+
}, /*#__PURE__*/React.createElement(Typography, {
|
|
107
|
+
text: "Preencha os dados da atividade que deseja incluir.",
|
|
108
|
+
color: theme.colors.black[100],
|
|
109
|
+
fontFamily: theme.fonts.inter_regular_400,
|
|
110
|
+
fontWeight: "400",
|
|
111
|
+
lineHeight: theme.lineHeight["2xl"],
|
|
112
|
+
size: theme.fontSizes.sm,
|
|
113
|
+
marginBottom: 16
|
|
114
|
+
}), /*#__PURE__*/React.createElement(SelectOption, {
|
|
115
|
+
titleLabel: "Selecione um motivo",
|
|
116
|
+
sizeTitleLabel: 18,
|
|
117
|
+
dataOption: OPTIONS,
|
|
118
|
+
handleSelectDown: handleChangeReason,
|
|
119
|
+
backgroundColor: theme.colors.neutral[300]
|
|
120
|
+
}), /*#__PURE__*/React.createElement(ActivityFields, {
|
|
121
|
+
disabled: false,
|
|
122
|
+
icon: "CALENDAR",
|
|
123
|
+
value: dateAndHours === null || dateAndHours === void 0 ? void 0 : dateAndHours.date,
|
|
124
|
+
onPressConfirm: value => setDateAndHours({
|
|
125
|
+
date: value,
|
|
126
|
+
hours: dateAndHours === null || dateAndHours === void 0 ? void 0 : dateAndHours.hours
|
|
127
|
+
})
|
|
128
|
+
}), /*#__PURE__*/React.createElement(ActivityFields, {
|
|
129
|
+
disabled: false,
|
|
130
|
+
icon: "TIMER",
|
|
131
|
+
value: dateAndHours === null || dateAndHours === void 0 ? void 0 : dateAndHours.hours,
|
|
132
|
+
onPressConfirm: value => setDateAndHours({
|
|
133
|
+
date: dateAndHours === null || dateAndHours === void 0 ? void 0 : dateAndHours.date,
|
|
134
|
+
hours: value
|
|
135
|
+
})
|
|
136
|
+
}), /*#__PURE__*/React.createElement(View, {
|
|
137
|
+
style: styles.actions
|
|
138
|
+
}, /*#__PURE__*/React.createElement(Button, {
|
|
139
|
+
title: "CANCELAR",
|
|
140
|
+
onPress: handleCancel,
|
|
141
|
+
width: "48%",
|
|
142
|
+
height: 40,
|
|
143
|
+
isLoading: false,
|
|
144
|
+
disabled: false,
|
|
145
|
+
backgroundColor: theme.colors.neutral[300],
|
|
146
|
+
buttonTextStyle: {
|
|
147
|
+
color: theme.colors.blue[500],
|
|
148
|
+
fontFamily: theme.fonts.inter_medium_500,
|
|
149
|
+
fontSize: theme.fontSizes.xs,
|
|
150
|
+
fontWeight: "500"
|
|
151
|
+
},
|
|
152
|
+
flexStyle: {
|
|
153
|
+
flexDirection: "row",
|
|
154
|
+
alignItems: "center",
|
|
155
|
+
justifyContent: "center",
|
|
156
|
+
textAlign: "center"
|
|
157
|
+
},
|
|
158
|
+
borderStyled: {
|
|
159
|
+
borderWidth: theme.borderWidths.thin,
|
|
160
|
+
borderColor: theme.colors.blue[100],
|
|
161
|
+
borderRadius: theme.borderWidths.thick_medium
|
|
162
|
+
}
|
|
163
|
+
}), /*#__PURE__*/React.createElement(Button, {
|
|
164
|
+
title: "CONFIRMAR",
|
|
165
|
+
onPress: handleConfirm,
|
|
166
|
+
width: "48%",
|
|
167
|
+
height: 40,
|
|
168
|
+
isLoading: false,
|
|
169
|
+
disabled: false,
|
|
170
|
+
backgroundColor: theme.colors.blue[500],
|
|
171
|
+
buttonTextStyle: {
|
|
172
|
+
color: theme.colors.neutral[25],
|
|
173
|
+
fontFamily: theme.fonts.inter_medium_500,
|
|
174
|
+
fontSize: theme.fontSizes.xs,
|
|
175
|
+
fontWeight: "500"
|
|
176
|
+
},
|
|
177
|
+
flexStyle: {
|
|
178
|
+
flexDirection: "row",
|
|
179
|
+
alignItems: "center",
|
|
180
|
+
justifyContent: "center",
|
|
181
|
+
textAlign: "center"
|
|
182
|
+
},
|
|
183
|
+
borderStyled: {
|
|
184
|
+
borderWidth: theme.borderWidths.thin,
|
|
185
|
+
borderColor: theme.colors.blue[100],
|
|
186
|
+
borderRadius: theme.borderWidths.thick_medium
|
|
187
|
+
}
|
|
188
|
+
}))))));
|
|
189
|
+
});
|
|
190
|
+
ModalCreteActivitie.displayName = "ModalCreteActivitie";
|
|
191
|
+
export default asBaseComponent(ModalCreteActivitie);
|
|
192
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","useMemo","useState","useCallback","Modal","View","Pressable","Box","Button","Typography","ActivityFields","SelectOption","Icons","asBaseComponent","OPTIONS","theme","styles","formatDate","formHoursMinute","ModalCreteActivitie","memo","visible","onClose","onPressConfirm","textTitle","_OPTIONS$0$value","_OPTIONS$","dateAndHours","setDateAndHours","date","Date","hours","String","getHours","getMinutes","selectedActivitie","setSelectedActivitie","value","activitieLabel","_OPTIONS$find$label","_OPTIONS$find","find","activitie","label","handleChangeReason","handleCancel","handleConfirm","reasonValue","createElement","animationType","transparent","onRequestClose","statusBarTranslucent","style","overlay","onPress","width","backgroundColor","colors","orange","borderStyled","borderRadius","borderWidths","thick_medium","paddingStyle","paddingLeft","paddings","paddingRight","paddingTop","sm","paddingBottom","headerRow","icon","color","background","neutral","size","text","marginLeft","margins","fontFamily","fonts","inter_bold","fontWeight","fontSizes","lg","padding","xs","black","inter_regular_400","lineHeight","marginBottom","titleLabel","sizeTitleLabel","dataOption","handleSelectDown","disabled","actions","title","height","isLoading","buttonTextStyle","blue","inter_medium_500","fontSize","flexStyle","flexDirection","alignItems","justifyContent","textAlign","borderWidth","thin","borderColor","displayName"],"sources":["index.tsx"],"sourcesContent":["/**\r\n * IMPORTS\r\n */\r\nimport React, { useMemo, useState, useCallback } from \"react\";\r\nimport { Modal, View, Pressable } from \"react-native\";\r\n\r\n// components\r\nimport Box from \"..//box\";\r\nimport { Button }from \"../button\";\r\n\r\nimport { Typography } from \"../typography\";\r\n\r\nimport ActivityFields from \"../selects/select-date-and-hours\";\r\n\r\nimport SelectOption from \"../selects/select-option\";\r\n\r\n// commons\r\nimport { Icons } from \"../../common/icons-svg\";\r\nimport { asBaseComponent } from \"../../@types/as-base-component\";\r\n\r\n// helpers\r\nimport { OPTIONS } from \"../../utils/options-activity\";\r\n\r\n// typings\r\nimport type { IDateAndHoursProps, IModalCreateActivitieProps } from \"./interface\";\r\n\r\n// styles / theme\r\nimport { theme } from \"../../styles/theme/theme\";\r\nimport { styles } from \"./styles\";\r\nimport { formatDate, formHoursMinute } from \"../../utils/format-data\";\r\n\r\nconst ModalCreteActivitie: React.FC<IModalCreateActivitieProps<any>> = React.memo(\r\n ({ visible, onClose, onPressConfirm, textTitle }) => {\r\n const [dateAndHours, setDateAndHours] = useState<IDateAndHoursProps>({\r\n date: formatDate(new Date()),\r\n hours: formHoursMinute(String(new Date().getHours() * 3600 + new Date().getMinutes() * 60)),\r\n });\r\n\r\n // estados controlados mínimos\r\n const [selectedActivitie, setSelectedActivitie] = useState<string | null>(\r\n OPTIONS[0]?.value ?? null\r\n );\r\n\r\n // label do motivo derivada com memo\r\n const activitieLabel = useMemo(\r\n () => OPTIONS.find((activitie) => activitie.value === selectedActivitie)?.label ?? null,\r\n [selectedActivitie]\r\n );\r\n\r\n // handlers estáveis\r\n const handleChangeReason = useCallback((value: string | null) => {\r\n setSelectedActivitie(value);\r\n }, []);\r\n\r\n const handleCancel = useCallback(() => {\r\n onClose?.();\r\n }, [onClose]);\r\n\r\n const handleConfirm = useCallback(() => {\r\n onPressConfirm?.({\r\n reasonValue: selectedActivitie,\r\n label: activitieLabel,\r\n dateAndHours: dateAndHours,\r\n });\r\n\r\n onClose?.();\r\n }, [onPressConfirm, onClose, activitieLabel, selectedActivitie, dateAndHours]);\r\n\r\n return (\r\n <Modal\r\n animationType=\"fade\"\r\n transparent\r\n visible={visible}\r\n onRequestClose={handleCancel}\r\n statusBarTranslucent\r\n >\r\n <Pressable style={styles.overlay} onPress={handleCancel}>\r\n <Box\r\n width=\"90%\"\r\n backgroundColor={theme.colors.orange[500]}\r\n borderStyled={{ borderRadius: theme.borderWidths.thick_medium }}\r\n paddingStyle={{\r\n paddingLeft: theme.paddings[\"2xs\"],\r\n paddingRight: theme.paddings[\"2xs\"],\r\n paddingTop: theme.paddings.sm,\r\n paddingBottom: theme.paddings.sm,\r\n }}\r\n >\r\n <View style={styles.headerRow}>\r\n <Icons\r\n icon=\"EXCLAMATION_TRIANGLE\"\r\n color={theme.colors.orange[500]}\r\n background={theme.colors.neutral[300]}\r\n size={22}\r\n />\r\n <Typography\r\n text={textTitle ?? \"Incluir atividade\"}\r\n color={theme.colors.neutral[25]}\r\n marginLeft={theme.margins[\"2xs\"]}\r\n fontFamily={theme.fonts.inter_bold}\r\n fontWeight=\"700\"\r\n size={theme.fontSizes.lg}\r\n />\r\n </View>\r\n\r\n <Box\r\n backgroundColor={theme.colors.neutral[300]}\r\n paddingStyle={{ padding: theme.paddings.xs }}\r\n borderStyled={{ borderRadius: theme.borderWidths.thick_medium }}\r\n >\r\n <Typography\r\n text=\"Preencha os dados da atividade que deseja incluir.\"\r\n color={theme.colors.black[100]}\r\n fontFamily={theme.fonts.inter_regular_400}\r\n fontWeight=\"400\"\r\n lineHeight={theme.lineHeight[\"2xl\"]}\r\n size={theme.fontSizes.sm}\r\n marginBottom={16}\r\n />\r\n\r\n <SelectOption\r\n titleLabel=\"Selecione um motivo\"\r\n sizeTitleLabel={18}\r\n dataOption={OPTIONS as any}\r\n handleSelectDown={handleChangeReason}\r\n backgroundColor={theme.colors.neutral[300]}\r\n />\r\n\r\n <ActivityFields\r\n disabled={false}\r\n icon={\"CALENDAR\"}\r\n value={dateAndHours?.date}\r\n onPressConfirm={(value) =>\r\n setDateAndHours({ date: value, hours: dateAndHours?.hours })\r\n }\r\n />\r\n\r\n <ActivityFields\r\n disabled={false}\r\n icon={\"TIMER\"}\r\n value={dateAndHours?.hours}\r\n onPressConfirm={(value) =>\r\n setDateAndHours({ date: dateAndHours?.date, hours: value })\r\n }\r\n />\r\n\r\n <View style={styles.actions}>\r\n <Button\r\n title=\"CANCELAR\"\r\n onPress={handleCancel}\r\n width=\"48%\"\r\n height={40}\r\n isLoading={false}\r\n disabled={false}\r\n backgroundColor={theme.colors.neutral[300]}\r\n buttonTextStyle={{\r\n color: theme.colors.blue[500],\r\n fontFamily: theme.fonts.inter_medium_500,\r\n fontSize: theme.fontSizes.xs,\r\n fontWeight: \"500\",\r\n }}\r\n flexStyle={{\r\n flexDirection: \"row\",\r\n alignItems: \"center\",\r\n justifyContent: \"center\",\r\n textAlign: \"center\",\r\n }}\r\n borderStyled={{\r\n borderWidth: theme.borderWidths.thin,\r\n borderColor: theme.colors.blue[100],\r\n borderRadius: theme.borderWidths.thick_medium,\r\n }}\r\n />\r\n\r\n <Button\r\n title=\"CONFIRMAR\"\r\n onPress={handleConfirm}\r\n width=\"48%\"\r\n height={40}\r\n isLoading={false}\r\n disabled={false}\r\n backgroundColor={theme.colors.blue[500]}\r\n buttonTextStyle={{\r\n color: theme.colors.neutral[25],\r\n fontFamily: theme.fonts.inter_medium_500,\r\n fontSize: theme.fontSizes.xs,\r\n fontWeight: \"500\",\r\n }}\r\n flexStyle={{\r\n flexDirection: \"row\",\r\n alignItems: \"center\",\r\n justifyContent: \"center\",\r\n textAlign: \"center\",\r\n }}\r\n borderStyled={{\r\n borderWidth: theme.borderWidths.thin,\r\n borderColor: theme.colors.blue[100],\r\n borderRadius: theme.borderWidths.thick_medium,\r\n }}\r\n />\r\n </View>\r\n </Box>\r\n </Box>\r\n </Pressable>\r\n </Modal>\r\n );\r\n }\r\n);\r\n\r\nModalCreteActivitie.displayName = \"ModalCreteActivitie\";\r\nexport default asBaseComponent(ModalCreteActivitie);\r\n"],"mappings":"AAAA;AACA;AACA;AACA,OAAOA,KAAK,IAAIC,OAAO,EAAEC,QAAQ,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CAAAgD,aAAA,CAACxC,MAAM;IACL0F,KAAK,EAAC,WAAW;IACjB3C,OAAO,EAAET,aAAc;IACvBU,KAAK,EAAC,KAAK;IACX2C,MAAM,EAAE,EAAG;IACXC,SAAS,EAAE,KAAM;IACjBJ,QAAQ,EAAE,KAAM;IAChBvC,eAAe,EAAE1C,KAAK,CAAC2C,MAAM,CAAC4C,IAAI,CAAC,GAAG,CAAE;IACxCD,eAAe,EAAE;MACf5B,KAAK,EAAE1D,KAAK,CAAC2C,MAAM,CAACiB,OAAO,CAAC,EAAE,CAAC;MAC/BK,UAAU,EAAEjE,KAAK,CAACkE,KAAK,CAACsB,gBAAgB;MACxCC,QAAQ,EAAEzF,KAAK,CAACqE,SAAS,CAACG,EAAE;MAC5BJ,UAAU,EAAE;IACd,CAAE;IACFsB,SAAS,EAAE;MACTC,aAAa,EAAE,KAAK;MACpBC,UAAU,EAAE,QAAQ;MACpBC,cAAc,EAAE,QAAQ;MACxBC,SAAS,EAAE;IACb,CAAE;IACFjD,YAAY,EAAE;MACZkD,WAAW,EAAE/F,KAAK,CAAC+C,YAAY,CAACiD,IAAI;MACpCC,WAAW,EAAEjG,KAAK,CAAC2C,MAAM,CAAC4C,IAAI,CAAC,GAAG,CAAC;MACnCzC,YAAY,EAAE9C,KAAK,CAAC+C,YAAY,CAACC;IACnC;EAAE,CACH,CACG,CACH,CACF,CACI,CACN,CAAC;AAEZ,CACF,CAAC;AAED5C,mBAAmB,CAAC8F,WAAW,GAAG,qBAAqB;AACvD,eAAepG,eAAe,CAACM,mBAAmB,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sources":["interface.ts"],"sourcesContent":["/* eslint-disable no-unused-vars */\r\n/**\r\n * IMPORTS\r\n */\r\n\r\ntype IModalCreateActivitieProps<T> = {\r\n visible: boolean;\r\n textTitle?: string;\r\n options?: T;\r\n onClose: () => void;\r\n onPressConfirm: (value: T) => void;\r\n};\r\n\r\ntype IDateAndHoursProps = {\r\n date: string;\r\n hours: string;\r\n};\r\n\r\n/**\r\n * EXPORTS\r\n */\r\nexport type { IModalCreateActivitieProps, IDateAndHoursProps };\r\n"],"mappings":"","ignoreList":[]}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* IMPORTS
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { StyleSheet } from "react-native";
|
|
6
|
+
import { theme } from "../../styles/theme/theme";
|
|
7
|
+
const styles = StyleSheet.create({
|
|
8
|
+
overlay: {
|
|
9
|
+
flex: 1,
|
|
10
|
+
justifyContent: "center",
|
|
11
|
+
alignItems: "center",
|
|
12
|
+
backgroundColor: theme.shadows.z1
|
|
13
|
+
},
|
|
14
|
+
card: {
|
|
15
|
+
width: "90%"
|
|
16
|
+
},
|
|
17
|
+
headerRow: {
|
|
18
|
+
marginBottom: 10,
|
|
19
|
+
marginLeft: 4,
|
|
20
|
+
flexDirection: "row",
|
|
21
|
+
alignItems: "center"
|
|
22
|
+
},
|
|
23
|
+
content: {
|
|
24
|
+
padding: theme.paddings.xs
|
|
25
|
+
},
|
|
26
|
+
actions: {
|
|
27
|
+
marginTop: 16,
|
|
28
|
+
flexDirection: "row",
|
|
29
|
+
justifyContent: "space-between"
|
|
30
|
+
}
|
|
31
|
+
});
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* EXPORTS
|
|
35
|
+
*/
|
|
36
|
+
export { styles };
|
|
37
|
+
//# sourceMappingURL=styles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["StyleSheet","theme","styles","create","overlay","flex","justifyContent","alignItems","backgroundColor","shadows","z1","card","width","headerRow","marginBottom","marginLeft","flexDirection","content","padding","paddings","xs","actions","marginTop"],"sources":["styles.ts"],"sourcesContent":["/**\r\n * IMPORTS\r\n */\r\n\r\nimport { StyleSheet } from \"react-native\";\r\nimport { theme } from \"../../styles/theme/theme\";\r\n\r\nconst styles = StyleSheet.create({\r\n overlay: {\r\n flex: 1,\r\n justifyContent: \"center\",\r\n alignItems: \"center\",\r\n backgroundColor: theme.shadows.z1,\r\n },\r\n card: { width: \"90%\" },\r\n headerRow: { marginBottom: 10, marginLeft: 4, flexDirection: \"row\", alignItems: \"center\" },\r\n content: { padding: theme.paddings.xs },\r\n actions: { marginTop: 16, flexDirection: \"row\", justifyContent: \"space-between\" },\r\n});\r\n\r\n/**\r\n * EXPORTS\r\n */\r\nexport { styles };\r\n"],"mappings":"AAAA;AACA;AACA;;AAEA,SAASA,UAAU,QAAQ,cAAc;AACzC,SAASC,KAAK,QAAQ,0BAA0B;AAEhD,MAAMC,MAAM,GAAGF,UAAU,CAACG,MAAM,CAAC;EAC/BC,OAAO,EAAE;IACPC,IAAI,EAAE,CAAC;IACPC,cAAc,EAAE,QAAQ;IACxBC,UAAU,EAAE,QAAQ;IACpBC,eAAe,EAAEP,KAAK,CAACQ,OAAO,CAACC;EACjC,CAAC;EACDC,IAAI,EAAE;IAAEC,KAAK,EAAE;EAAM,CAAC;EACtBC,SAAS,EAAE;IAAEC,YAAY,EAAE,EAAE;IAAEC,UAAU,EAAE,CAAC;IAAEC,aAAa,EAAE,KAAK;IAAET,UAAU,EAAE;EAAS,CAAC;EAC1FU,OAAO,EAAE;IAAEC,OAAO,EAAEjB,KAAK,CAACkB,QAAQ,CAACC;EAAG,CAAC;EACvCC,OAAO,EAAE;IAAEC,SAAS,EAAE,EAAE;IAAEN,aAAa,EAAE,KAAK;IAAEV,cAAc,EAAE;EAAgB;AAClF,CAAC,CAAC;;AAEF;AACA;AACA;AACA,SAASJ,MAAM","ignoreList":[]}
|