jornada-ui 0.4.15 → 0.4.17
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/common/icons-svg/constants/index.js +2 -1
- package/lib/commonjs/common/icons-svg/constants/index.js.map +1 -1
- package/lib/commonjs/common/icons-svg/download/index.js +53 -0
- package/lib/commonjs/common/icons-svg/download/index.js.map +1 -0
- package/lib/commonjs/common/icons-svg/index.js +7 -0
- package/lib/commonjs/common/icons-svg/index.js.map +1 -1
- package/lib/commonjs/components/inputs/input-date-time/index.js +11 -9
- package/lib/commonjs/components/inputs/input-date-time/index.js.map +1 -1
- package/lib/commonjs/components/inputs/input-date-time/styles.js +6 -3
- package/lib/commonjs/components/inputs/input-date-time/styles.js.map +1 -1
- package/lib/commonjs/components/modals/modal-change-activitie-history/helpers/index.js +35 -0
- package/lib/commonjs/components/modals/modal-change-activitie-history/helpers/index.js.map +1 -0
- package/lib/commonjs/components/modals/modal-change-activitie-history/index.js +203 -0
- package/lib/commonjs/components/modals/modal-change-activitie-history/index.js.map +1 -0
- package/lib/commonjs/components/modals/modal-change-activitie-history/interface.js +6 -0
- package/lib/commonjs/components/modals/modal-change-activitie-history/interface.js.map +1 -0
- package/lib/commonjs/components/modals/{modal-journey-rectification → modal-edite-journey-rectification}/index.js +71 -65
- package/lib/commonjs/components/modals/modal-edite-journey-rectification/index.js.map +1 -0
- package/lib/commonjs/components/modals/modal-edite-journey-rectification/interface.d.js.map +1 -0
- package/lib/commonjs/components/notification-card/index.js +142 -0
- package/lib/commonjs/components/notification-card/index.js.map +1 -0
- package/lib/commonjs/components/notification-card/interface.js +6 -0
- package/lib/commonjs/components/notification-card/interface.js.map +1 -0
- package/lib/commonjs/components/notification-details-card/index.js +181 -0
- package/lib/commonjs/components/notification-details-card/index.js.map +1 -0
- package/lib/commonjs/components/notification-details-card/interface.js +6 -0
- package/lib/commonjs/components/notification-details-card/interface.js.map +1 -0
- package/lib/commonjs/components/step-indicator/index.js +131 -68
- package/lib/commonjs/components/step-indicator/index.js.map +1 -1
- package/lib/commonjs/components/user-journey-work-card/index.js +44 -4
- package/lib/commonjs/components/user-journey-work-card/index.js.map +1 -1
- package/lib/commonjs/index.js +19 -5
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/stories/button/button.stories.js +0 -2
- package/lib/commonjs/stories/button/button.stories.js.map +1 -1
- package/lib/commonjs/stories/capture-photo/capture-photo.stories.js +0 -1
- package/lib/commonjs/stories/capture-photo/capture-photo.stories.js.map +1 -1
- package/lib/commonjs/stories/modal-journey-rectification/modal-journey-rectification.stories.js +3 -3
- package/lib/commonjs/stories/modal-journey-rectification/modal-journey-rectification.stories.js.map +1 -1
- package/lib/commonjs/stories/notification-card/notification-card.stories.js +100 -0
- package/lib/commonjs/stories/notification-card/notification-card.stories.js.map +1 -0
- package/lib/commonjs/stories/notification-details-card/notification-details-card.stories.js +112 -0
- package/lib/commonjs/stories/notification-details-card/notification-details-card.stories.js.map +1 -0
- package/lib/commonjs/stories/user-journey-work-card/user-journey-work-card.stories.js +12 -4
- package/lib/commonjs/stories/user-journey-work-card/user-journey-work-card.stories.js.map +1 -1
- package/lib/commonjs/styles/theme/theme.js +2 -1
- package/lib/commonjs/styles/theme/theme.js.map +1 -1
- package/lib/module/common/icons-svg/constants/index.js +2 -1
- package/lib/module/common/icons-svg/constants/index.js.map +1 -1
- package/lib/module/common/icons-svg/download/index.js +47 -0
- package/lib/module/common/icons-svg/download/index.js.map +1 -0
- package/lib/module/common/icons-svg/index.js +7 -0
- package/lib/module/common/icons-svg/index.js.map +1 -1
- package/lib/module/components/inputs/input-date-time/index.js +11 -9
- package/lib/module/components/inputs/input-date-time/index.js.map +1 -1
- package/lib/module/components/inputs/input-date-time/styles.js +6 -3
- package/lib/module/components/inputs/input-date-time/styles.js.map +1 -1
- package/lib/module/components/modals/modal-change-activitie-history/helpers/index.js +32 -0
- package/lib/module/components/modals/modal-change-activitie-history/helpers/index.js.map +1 -0
- package/lib/module/components/modals/modal-change-activitie-history/index.js +196 -0
- package/lib/module/components/modals/modal-change-activitie-history/index.js.map +1 -0
- package/lib/module/components/modals/modal-change-activitie-history/interface.js +4 -0
- package/lib/module/components/modals/modal-change-activitie-history/interface.js.map +1 -0
- package/lib/module/components/modals/{modal-journey-rectification → modal-edite-journey-rectification}/index.js +69 -63
- package/lib/module/components/modals/modal-edite-journey-rectification/index.js.map +1 -0
- package/lib/module/components/modals/modal-edite-journey-rectification/interface.d.js.map +1 -0
- package/lib/module/components/notification-card/index.js +135 -0
- package/lib/module/components/notification-card/index.js.map +1 -0
- package/lib/module/components/notification-card/interface.js +4 -0
- package/lib/module/components/notification-card/interface.js.map +1 -0
- package/lib/module/components/notification-details-card/index.js +183 -0
- package/lib/module/components/notification-details-card/index.js.map +1 -0
- package/lib/module/components/notification-details-card/interface.js +4 -0
- package/lib/module/components/notification-details-card/interface.js.map +1 -0
- package/lib/module/components/step-indicator/index.js +129 -65
- package/lib/module/components/step-indicator/index.js.map +1 -1
- package/lib/module/components/user-journey-work-card/index.js +44 -4
- package/lib/module/components/user-journey-work-card/index.js.map +1 -1
- package/lib/module/index.js +3 -1
- package/lib/module/index.js.map +1 -1
- package/lib/module/stories/button/button.stories.js +0 -1
- package/lib/module/stories/button/button.stories.js.map +1 -1
- package/lib/module/stories/capture-photo/capture-photo.stories.js +0 -1
- package/lib/module/stories/capture-photo/capture-photo.stories.js.map +1 -1
- package/lib/module/stories/modal-journey-rectification/modal-journey-rectification.stories.js +3 -3
- package/lib/module/stories/modal-journey-rectification/modal-journey-rectification.stories.js.map +1 -1
- package/lib/module/stories/notification-card/notification-card.stories.js +95 -0
- package/lib/module/stories/notification-card/notification-card.stories.js.map +1 -0
- package/lib/module/stories/notification-details-card/notification-details-card.stories.js +107 -0
- package/lib/module/stories/notification-details-card/notification-details-card.stories.js.map +1 -0
- package/lib/module/stories/user-journey-work-card/user-journey-work-card.stories.js +12 -4
- package/lib/module/stories/user-journey-work-card/user-journey-work-card.stories.js.map +1 -1
- package/lib/module/styles/theme/theme.js +2 -1
- package/lib/module/styles/theme/theme.js.map +1 -1
- package/lib/typescript/commonjs/src/common/icons-svg/constants/index.d.ts +1 -0
- package/lib/typescript/commonjs/src/common/icons-svg/constants/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/common/icons-svg/download/index.d.ts +11 -0
- package/lib/typescript/commonjs/src/common/icons-svg/download/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/common/icons-svg/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/card-report/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/card-scheduled-journey/index.d.ts +1 -1
- package/lib/typescript/commonjs/src/components/inputs/input-date-time/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/inputs/input-date-time/styles.d.ts +2 -1
- package/lib/typescript/commonjs/src/components/inputs/input-date-time/styles.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/modals/modal-change-activitie-history/helpers/index.d.ts +13 -0
- package/lib/typescript/commonjs/src/components/modals/modal-change-activitie-history/helpers/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/modals/modal-change-activitie-history/index.d.ts +10 -0
- package/lib/typescript/commonjs/src/components/modals/modal-change-activitie-history/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/modals/modal-change-activitie-history/interface.d.ts +18 -0
- package/lib/typescript/commonjs/src/components/modals/modal-change-activitie-history/interface.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/modals/{modal-journey-rectification → modal-edite-journey-rectification}/index.d.ts +3 -0
- package/lib/typescript/commonjs/src/components/modals/modal-edite-journey-rectification/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/notification-card/index.d.ts +11 -0
- package/lib/typescript/commonjs/src/components/notification-card/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/notification-card/interface.d.ts +17 -0
- package/lib/typescript/commonjs/src/components/notification-card/interface.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/notification-details-card/index.d.ts +11 -0
- package/lib/typescript/commonjs/src/components/notification-details-card/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/notification-details-card/interface.d.ts +15 -0
- package/lib/typescript/commonjs/src/components/notification-details-card/interface.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/selects/select-date-and-hours/index.d.ts +1 -1
- package/lib/typescript/commonjs/src/components/step-indicator/index.d.ts +3 -9
- package/lib/typescript/commonjs/src/components/step-indicator/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/travel-history/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/user-journey-work-card/index.d.ts +2 -0
- package/lib/typescript/commonjs/src/components/user-journey-work-card/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/index.d.ts +3 -1
- package/lib/typescript/commonjs/src/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/stories/modal-journey-rectification/modal-journey-rectification.stories.d.ts +1 -1
- package/lib/typescript/commonjs/src/stories/modal-journey-rectification/modal-journey-rectification.stories.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/stories/notification-card/notification-card.stories.d.ts +14 -0
- package/lib/typescript/commonjs/src/stories/notification-card/notification-card.stories.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/stories/notification-details-card/notification-details-card.stories.d.ts +16 -0
- package/lib/typescript/commonjs/src/stories/notification-details-card/notification-details-card.stories.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/stories/user-journey-work-card/user-journey-work-card.stories.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/styles/global/theme-provider.d.ts +1 -0
- package/lib/typescript/commonjs/src/styles/global/theme-provider.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/styles/theme/theme.d.ts +1 -0
- package/lib/typescript/commonjs/src/styles/theme/theme.d.ts.map +1 -1
- package/lib/typescript/module/src/common/icons-svg/constants/index.d.ts +1 -0
- package/lib/typescript/module/src/common/icons-svg/constants/index.d.ts.map +1 -1
- package/lib/typescript/module/src/common/icons-svg/download/index.d.ts +11 -0
- package/lib/typescript/module/src/common/icons-svg/download/index.d.ts.map +1 -0
- package/lib/typescript/module/src/common/icons-svg/index.d.ts.map +1 -1
- package/lib/typescript/module/src/components/card-report/index.d.ts.map +1 -1
- package/lib/typescript/module/src/components/card-scheduled-journey/index.d.ts +1 -1
- package/lib/typescript/module/src/components/inputs/input-date-time/index.d.ts.map +1 -1
- package/lib/typescript/module/src/components/inputs/input-date-time/styles.d.ts +2 -1
- package/lib/typescript/module/src/components/inputs/input-date-time/styles.d.ts.map +1 -1
- package/lib/typescript/module/src/components/modals/modal-change-activitie-history/helpers/index.d.ts +13 -0
- package/lib/typescript/module/src/components/modals/modal-change-activitie-history/helpers/index.d.ts.map +1 -0
- package/lib/typescript/module/src/components/modals/modal-change-activitie-history/index.d.ts +10 -0
- package/lib/typescript/module/src/components/modals/modal-change-activitie-history/index.d.ts.map +1 -0
- package/lib/typescript/module/src/components/modals/modal-change-activitie-history/interface.d.ts +18 -0
- package/lib/typescript/module/src/components/modals/modal-change-activitie-history/interface.d.ts.map +1 -0
- package/lib/typescript/module/src/components/modals/{modal-journey-rectification → modal-edite-journey-rectification}/index.d.ts +3 -0
- package/lib/typescript/module/src/components/modals/modal-edite-journey-rectification/index.d.ts.map +1 -0
- package/lib/typescript/module/src/components/notification-card/index.d.ts +11 -0
- package/lib/typescript/module/src/components/notification-card/index.d.ts.map +1 -0
- package/lib/typescript/module/src/components/notification-card/interface.d.ts +17 -0
- package/lib/typescript/module/src/components/notification-card/interface.d.ts.map +1 -0
- package/lib/typescript/module/src/components/notification-details-card/index.d.ts +11 -0
- package/lib/typescript/module/src/components/notification-details-card/index.d.ts.map +1 -0
- package/lib/typescript/module/src/components/notification-details-card/interface.d.ts +15 -0
- package/lib/typescript/module/src/components/notification-details-card/interface.d.ts.map +1 -0
- package/lib/typescript/module/src/components/selects/select-date-and-hours/index.d.ts +1 -1
- package/lib/typescript/module/src/components/step-indicator/index.d.ts +3 -9
- package/lib/typescript/module/src/components/step-indicator/index.d.ts.map +1 -1
- package/lib/typescript/module/src/components/travel-history/index.d.ts.map +1 -1
- package/lib/typescript/module/src/components/user-journey-work-card/index.d.ts +2 -0
- package/lib/typescript/module/src/components/user-journey-work-card/index.d.ts.map +1 -1
- package/lib/typescript/module/src/index.d.ts +3 -1
- package/lib/typescript/module/src/index.d.ts.map +1 -1
- package/lib/typescript/module/src/stories/modal-journey-rectification/modal-journey-rectification.stories.d.ts +1 -1
- package/lib/typescript/module/src/stories/modal-journey-rectification/modal-journey-rectification.stories.d.ts.map +1 -1
- package/lib/typescript/module/src/stories/notification-card/notification-card.stories.d.ts +14 -0
- package/lib/typescript/module/src/stories/notification-card/notification-card.stories.d.ts.map +1 -0
- package/lib/typescript/module/src/stories/notification-details-card/notification-details-card.stories.d.ts +16 -0
- package/lib/typescript/module/src/stories/notification-details-card/notification-details-card.stories.d.ts.map +1 -0
- package/lib/typescript/module/src/stories/user-journey-work-card/user-journey-work-card.stories.d.ts.map +1 -1
- package/lib/typescript/module/src/styles/global/theme-provider.d.ts +1 -0
- package/lib/typescript/module/src/styles/global/theme-provider.d.ts.map +1 -1
- package/lib/typescript/module/src/styles/theme/theme.d.ts +1 -0
- package/lib/typescript/module/src/styles/theme/theme.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/common/icons-svg/constants/index.ts +1 -0
- package/src/common/icons-svg/download/index.tsx +52 -0
- package/src/common/icons-svg/index.tsx +4 -0
- package/src/components/card-report/interface.d.ts +1 -1
- package/src/components/inputs/input-date-time/index.tsx +13 -12
- package/src/components/inputs/input-date-time/styles.ts +64 -63
- package/src/components/modals/modal-change-activitie-history/helpers/index.ts +15 -0
- package/src/components/modals/modal-change-activitie-history/index.tsx +189 -0
- package/src/components/modals/modal-change-activitie-history/interface.ts +16 -0
- package/src/components/modals/{modal-journey-rectification → modal-edite-journey-rectification}/index.tsx +78 -67
- package/src/components/modals/{modal-journey-rectification → modal-edite-journey-rectification}/interface.d.ts +10 -10
- package/src/components/monthly-summary-table/interface.d.ts +1 -1
- package/src/components/notification-card/index.tsx +123 -0
- package/src/components/notification-card/interface.ts +18 -0
- package/src/components/notification-details-card/index.tsx +180 -0
- package/src/components/notification-details-card/interface.ts +16 -0
- package/src/components/step-indicator/index.tsx +226 -155
- package/src/components/step-indicator/interface.d.ts +3 -2
- package/src/components/travel-history/interface.d.ts +1 -1
- package/src/components/user-journey-work-card/index.tsx +28 -1
- package/src/components/user-journey-work-card/interface.d.ts +149 -145
- package/src/index.tsx +3 -1
- package/src/stories/button/button.stories.tsx +1 -1
- package/src/stories/capture-photo/capture-photo.stories.tsx +1 -1
- package/src/stories/modal-journey-rectification/modal-journey-rectification.stories.tsx +60 -60
- package/src/stories/notification-card/notification-card.stories.tsx +93 -0
- package/src/stories/notification-details-card/notification-details-card.stories.tsx +109 -0
- package/src/stories/user-journey-work-card/user-journey-work-card.stories.tsx +71 -63
- package/src/styles/theme/theme.ts +1 -0
- package/lib/commonjs/components/modals/modal-journey-rectification/index.js.map +0 -1
- package/lib/commonjs/components/modals/modal-journey-rectification/interface.d.js.map +0 -1
- package/lib/module/components/modals/modal-journey-rectification/index.js.map +0 -1
- package/lib/module/components/modals/modal-journey-rectification/interface.d.js.map +0 -1
- package/lib/typescript/commonjs/src/components/modals/modal-journey-rectification/index.d.ts.map +0 -1
- package/lib/typescript/module/src/components/modals/modal-journey-rectification/index.d.ts.map +0 -1
- /package/lib/commonjs/components/modals/{modal-journey-rectification → modal-edite-journey-rectification}/interface.d.js +0 -0
- /package/lib/module/components/modals/{modal-journey-rectification → modal-edite-journey-rectification}/interface.d.js +0 -0
|
@@ -1,145 +1,149 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* IMPORTS
|
|
3
|
-
*/
|
|
4
|
-
import type React from "react";
|
|
5
|
-
import { ViewProps, type DimensionValue } from "react-native";
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* INTERFACE
|
|
9
|
-
*/
|
|
10
|
-
type IUserJourneyWorkCard = ViewProps & {
|
|
11
|
-
/**
|
|
12
|
-
* props que mostra o nome do usuário
|
|
13
|
-
*/
|
|
14
|
-
name: string;
|
|
15
|
-
|
|
16
|
-
/**
|
|
17
|
-
* props que mostra a data
|
|
18
|
-
*/
|
|
19
|
-
workDate: string;
|
|
20
|
-
|
|
21
|
-
/**
|
|
22
|
-
* props que mostra o horário inicial
|
|
23
|
-
*/
|
|
24
|
-
initialTime?: string;
|
|
25
|
-
|
|
26
|
-
/**
|
|
27
|
-
* props que mostra a duração
|
|
28
|
-
*/
|
|
29
|
-
duration?: string;
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
| "
|
|
86
|
-
| "
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
1
|
+
/*
|
|
2
|
+
* IMPORTS
|
|
3
|
+
*/
|
|
4
|
+
import type React from "react";
|
|
5
|
+
import { ViewProps, type DimensionValue } from "react-native";
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* INTERFACE
|
|
9
|
+
*/
|
|
10
|
+
type IUserJourneyWorkCard = ViewProps & {
|
|
11
|
+
/**
|
|
12
|
+
* props que mostra o nome do usuário
|
|
13
|
+
*/
|
|
14
|
+
name: string;
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* props que mostra a data
|
|
18
|
+
*/
|
|
19
|
+
workDate: string;
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* props que mostra o horário inicial
|
|
23
|
+
*/
|
|
24
|
+
initialTime?: string;
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* props que mostra a duração
|
|
28
|
+
*/
|
|
29
|
+
duration?: string;
|
|
30
|
+
|
|
31
|
+
counterBadge?: number;
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* props que mostra o avatar do usuário
|
|
35
|
+
*/
|
|
36
|
+
avatar: string;
|
|
37
|
+
|
|
38
|
+
handleNavigation: () => void;
|
|
39
|
+
|
|
40
|
+
handleNavigationNotification: () => void;
|
|
41
|
+
|
|
42
|
+
children?: React.ReactNode;
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* TestID para testes automático e identificação
|
|
46
|
+
*/
|
|
47
|
+
testID?: string;
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* 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.
|
|
51
|
+
*/
|
|
52
|
+
borderStyled?: {
|
|
53
|
+
borderStyle?: "solid" | "dotted" | "dashed";
|
|
54
|
+
|
|
55
|
+
borderRadius?: number | DimensionValue;
|
|
56
|
+
borderTopRightRadius?: number | DimensionValue;
|
|
57
|
+
borderTopLeftRadius?: number | DimensionValue;
|
|
58
|
+
borderBottomRightRadius?: number | DimensionValue;
|
|
59
|
+
borderBottomLeftRadius?: number | DimensionValue;
|
|
60
|
+
|
|
61
|
+
borderWidth?: number | DimensionValue;
|
|
62
|
+
borderLeftWidth?: number | DimensionValue;
|
|
63
|
+
borderRightWidth?: number | DimensionValue;
|
|
64
|
+
borderTopWidth?: number | DimensionValue;
|
|
65
|
+
borderBottomWidth?: number | DimensionValue;
|
|
66
|
+
|
|
67
|
+
borderColor?: string;
|
|
68
|
+
borderBottomColor?: string;
|
|
69
|
+
borderLeftColor?: string;
|
|
70
|
+
borderRightColor?: string;
|
|
71
|
+
borderTopColor?: string;
|
|
72
|
+
};
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
* 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.
|
|
76
|
+
*/
|
|
77
|
+
flexStyle?: {
|
|
78
|
+
alignItems?: "flex-start" | "flex-end" | "center" | "stretch" | "baseline";
|
|
79
|
+
alignSelf?: "auto" | "flex-start" | "flex-end" | "center" | "stretch" | "baseline";
|
|
80
|
+
flex?: string | number;
|
|
81
|
+
flexDirection?: "column" | "column-reverse" | "row" | "row-reverse";
|
|
82
|
+
flexWrap?: "nowrap" | "wrap" | "wrap-reverse";
|
|
83
|
+
textAlign?: "auto" | "center" | "left" | "right" | "justify";
|
|
84
|
+
justifyContent?:
|
|
85
|
+
| "flex-start"
|
|
86
|
+
| "flex-end"
|
|
87
|
+
| "center"
|
|
88
|
+
| "space-between"
|
|
89
|
+
| "space-around"
|
|
90
|
+
| "space-evenly";
|
|
91
|
+
};
|
|
92
|
+
|
|
93
|
+
/**
|
|
94
|
+
* 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).
|
|
95
|
+
*/
|
|
96
|
+
marginStyle?: {
|
|
97
|
+
margin?: number | DimensionValue;
|
|
98
|
+
marginLeft?: number | DimensionValue;
|
|
99
|
+
marginRight?: number | DimensionValue;
|
|
100
|
+
marginTop?: number | DimensionValue;
|
|
101
|
+
marginBottom?: number | DimensionValue;
|
|
102
|
+
};
|
|
103
|
+
|
|
104
|
+
/**
|
|
105
|
+
* 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).
|
|
106
|
+
*/
|
|
107
|
+
paddingStyle?: {
|
|
108
|
+
padding?: number | DimensionValue;
|
|
109
|
+
paddingLeft?: number | DimensionValue;
|
|
110
|
+
paddingRight?: number | DimensionValue;
|
|
111
|
+
paddingTop?: number | DimensionValue;
|
|
112
|
+
paddingBottom?: number | DimensionValue;
|
|
113
|
+
};
|
|
114
|
+
|
|
115
|
+
/**
|
|
116
|
+
* 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.
|
|
117
|
+
*/
|
|
118
|
+
height?: number | DimensionValue;
|
|
119
|
+
|
|
120
|
+
/**
|
|
121
|
+
* 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.
|
|
122
|
+
*/
|
|
123
|
+
width?: number | DimensionValue;
|
|
124
|
+
|
|
125
|
+
/**
|
|
126
|
+
* 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..
|
|
127
|
+
*/
|
|
128
|
+
backgroundColor?: string;
|
|
129
|
+
|
|
130
|
+
/**
|
|
131
|
+
* Propriedade texto que sera renderizado pro usuário final
|
|
132
|
+
*/
|
|
133
|
+
text?: string;
|
|
134
|
+
|
|
135
|
+
/**
|
|
136
|
+
* 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.
|
|
137
|
+
*/
|
|
138
|
+
color?: {
|
|
139
|
+
colorSvg?: string;
|
|
140
|
+
colorText?: string;
|
|
141
|
+
colorTextBold?: string;
|
|
142
|
+
colorTextData?: string;
|
|
143
|
+
};
|
|
144
|
+
};
|
|
145
|
+
|
|
146
|
+
/**
|
|
147
|
+
* EXPORTS
|
|
148
|
+
*/
|
|
149
|
+
export type { IUserJourneyWorkCard };
|
package/src/index.tsx
CHANGED
|
@@ -43,10 +43,12 @@ export { default as ResumeRaking } from "./components/resume-raking";
|
|
|
43
43
|
export { default as ListSupplies } from "./components/list-supplies";
|
|
44
44
|
export { default as ListDevices } from "./components/list-devices";
|
|
45
45
|
export { default as ModalActivityReason } from "./components/modals/modal-activity-reason";
|
|
46
|
-
export { default as ModalJourneyRectification } from "./components/modals/modal-journey-rectification";
|
|
46
|
+
export { default as ModalJourneyRectification } from "./components/modals/modal-edite-journey-rectification";
|
|
47
47
|
export { default as ModalCreteActivitie } from "./components/modals/modal-create-activitie";
|
|
48
48
|
export { default as ModalToConfirmations } from "./components/modals/modal-to-confimations";
|
|
49
49
|
export { default as ActivityTimeline } from "./components/activity-step";
|
|
50
|
+
export { default as NotificationCard } from "./components/notification-card";
|
|
51
|
+
export { default as NotificationDetailCard } from "./components/notification-details-card";
|
|
50
52
|
|
|
51
53
|
// adicionar o storybook + teste
|
|
52
54
|
export { default as WeeklyHoursBalance } from "./components/weekly-hours-balance";
|
|
@@ -1,60 +1,60 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* IMPORTS
|
|
3
|
-
*/
|
|
4
|
-
import type { StoryObj, Meta } from "@storybook/react";
|
|
5
|
-
|
|
6
|
-
// components
|
|
7
|
-
import ModalJourneyRectification from "../../components/modals/modal-journey-rectification";
|
|
8
|
-
|
|
9
|
-
const meta: Meta<typeof ModalJourneyRectification> = {
|
|
10
|
-
title: "Componente/ModalJourneyRectification",
|
|
11
|
-
component: ModalJourneyRectification,
|
|
12
|
-
args: {
|
|
13
|
-
visible: false,
|
|
14
|
-
onClose: () => {},
|
|
15
|
-
modalConfirm: () => {},
|
|
16
|
-
},
|
|
17
|
-
parameters: {
|
|
18
|
-
docs: {
|
|
19
|
-
description: {
|
|
20
|
-
component: `
|
|
21
|
-
### ModalJourneyRectification
|
|
22
|
-
Este componente exibe um modal para fazer a exclusão de uma atividade.
|
|
23
|
-
## Uso
|
|
24
|
-
\`\`\`tsx
|
|
25
|
-
<ModalJourneyRectification
|
|
26
|
-
visible={boolean}
|
|
27
|
-
onClose={function}
|
|
28
|
-
modalConfirm={function}
|
|
29
|
-
textTitle={string} (opcional)
|
|
30
|
-
/>
|
|
31
|
-
Componente de **modal-journey-rectification** para exibir um modal solicitando o motivo de exclusão ou outra ação crítica.
|
|
32
|
-
|
|
33
|
-
- \`visible\`: define a visibilidade do modal, controlando se deve estar aberto ou fechado
|
|
34
|
-
- \`onClose\`: função obrigatória, chamada ao cancelar ou fechar o modal
|
|
35
|
-
- \`modalConfirm\`: função obrigatória, chamada ao confirmar a ação (retorna \`true\` por padrão)
|
|
36
|
-
- \`textTitle\`: campo opcional, permite personalizar o título exibido no cabeçalho do modal
|
|
37
|
-
- \`MaintenanceDescriptionInput\`: campo de texto exibido no corpo do modal para o usuário inserir a justificativa
|
|
38
|
-
- \`Botões\`: dois botões de ação — **CANCELAR** e **CONFIRMAR**
|
|
39
|
-
- **CANCELAR**: fecha o modal sem executar ação
|
|
40
|
-
- **CONFIRMAR**: chama \`modalConfirm(true)\` e em seguida \`onClose()\`
|
|
41
|
-
|
|
42
|
-
> Caso \`textTitle\` não seja passado, o modal exibirá "Motivo da exclusão" como título padrão.
|
|
43
|
-
`,
|
|
44
|
-
},
|
|
45
|
-
},
|
|
46
|
-
},
|
|
47
|
-
};
|
|
48
|
-
|
|
49
|
-
export default meta;
|
|
50
|
-
|
|
51
|
-
type Story = StoryObj<typeof ModalJourneyRectification>;
|
|
52
|
-
|
|
53
|
-
export const Default: Story = {
|
|
54
|
-
name: "modal-journey-rectification",
|
|
55
|
-
args: {
|
|
56
|
-
visible: true,
|
|
57
|
-
onClose: () => {},
|
|
58
|
-
modalConfirm: () => {},
|
|
59
|
-
},
|
|
60
|
-
};
|
|
1
|
+
/**
|
|
2
|
+
* IMPORTS
|
|
3
|
+
*/
|
|
4
|
+
import type { StoryObj, Meta } from "@storybook/react";
|
|
5
|
+
|
|
6
|
+
// components
|
|
7
|
+
import ModalJourneyRectification from "../../components/modals/modal-edite-journey-rectification";
|
|
8
|
+
|
|
9
|
+
const meta: Meta<typeof ModalJourneyRectification> = {
|
|
10
|
+
title: "Componente/ModalJourneyRectification",
|
|
11
|
+
component: ModalJourneyRectification,
|
|
12
|
+
args: {
|
|
13
|
+
visible: false,
|
|
14
|
+
onClose: () => {},
|
|
15
|
+
modalConfirm: () => {},
|
|
16
|
+
},
|
|
17
|
+
parameters: {
|
|
18
|
+
docs: {
|
|
19
|
+
description: {
|
|
20
|
+
component: `
|
|
21
|
+
### ModalJourneyRectification
|
|
22
|
+
Este componente exibe um modal para fazer a exclusão de uma atividade.
|
|
23
|
+
## Uso
|
|
24
|
+
\`\`\`tsx
|
|
25
|
+
<ModalJourneyRectification
|
|
26
|
+
visible={boolean}
|
|
27
|
+
onClose={function}
|
|
28
|
+
modalConfirm={function}
|
|
29
|
+
textTitle={string} (opcional)
|
|
30
|
+
/>
|
|
31
|
+
Componente de **modal-journey-rectification** para exibir um modal solicitando o motivo de exclusão ou outra ação crítica.
|
|
32
|
+
|
|
33
|
+
- \`visible\`: define a visibilidade do modal, controlando se deve estar aberto ou fechado
|
|
34
|
+
- \`onClose\`: função obrigatória, chamada ao cancelar ou fechar o modal
|
|
35
|
+
- \`modalConfirm\`: função obrigatória, chamada ao confirmar a ação (retorna \`true\` por padrão)
|
|
36
|
+
- \`textTitle\`: campo opcional, permite personalizar o título exibido no cabeçalho do modal
|
|
37
|
+
- \`MaintenanceDescriptionInput\`: campo de texto exibido no corpo do modal para o usuário inserir a justificativa
|
|
38
|
+
- \`Botões\`: dois botões de ação — **CANCELAR** e **CONFIRMAR**
|
|
39
|
+
- **CANCELAR**: fecha o modal sem executar ação
|
|
40
|
+
- **CONFIRMAR**: chama \`modalConfirm(true)\` e em seguida \`onClose()\`
|
|
41
|
+
|
|
42
|
+
> Caso \`textTitle\` não seja passado, o modal exibirá "Motivo da exclusão" como título padrão.
|
|
43
|
+
`,
|
|
44
|
+
},
|
|
45
|
+
},
|
|
46
|
+
},
|
|
47
|
+
};
|
|
48
|
+
|
|
49
|
+
export default meta;
|
|
50
|
+
|
|
51
|
+
type Story = StoryObj<typeof ModalJourneyRectification>;
|
|
52
|
+
|
|
53
|
+
export const Default: Story = {
|
|
54
|
+
name: "modal-journey-rectification",
|
|
55
|
+
args: {
|
|
56
|
+
visible: true,
|
|
57
|
+
onClose: () => {},
|
|
58
|
+
modalConfirm: () => {},
|
|
59
|
+
},
|
|
60
|
+
};
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* IMPORTS
|
|
3
|
+
*/
|
|
4
|
+
import React from "react";
|
|
5
|
+
import type { Meta, StoryObj } from "@storybook/react";
|
|
6
|
+
|
|
7
|
+
// components
|
|
8
|
+
import NotificationCard from "../../components/notification-card";
|
|
9
|
+
|
|
10
|
+
// typings
|
|
11
|
+
import type { INotificationCardProps } from "../../components/notification-card/interface";
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* META
|
|
15
|
+
*/
|
|
16
|
+
const meta: Meta<typeof NotificationCard> = {
|
|
17
|
+
title: "Componente/NotificationCard",
|
|
18
|
+
component: NotificationCard as React.FC<INotificationCardProps>,
|
|
19
|
+
args: {
|
|
20
|
+
variant: "read",
|
|
21
|
+
title: "Lorem Ipsum",
|
|
22
|
+
description: "Lorem Ipsum is simply dummy text of the printing and typesetting industry...",
|
|
23
|
+
},
|
|
24
|
+
argTypes: {
|
|
25
|
+
variant: {
|
|
26
|
+
control: { type: "select" },
|
|
27
|
+
description: "Define o estilo do card.",
|
|
28
|
+
options: ["success", "warning"],
|
|
29
|
+
},
|
|
30
|
+
title: {
|
|
31
|
+
control: { type: "text" },
|
|
32
|
+
description: "Título da notificação.",
|
|
33
|
+
},
|
|
34
|
+
description: {
|
|
35
|
+
control: { type: "text" },
|
|
36
|
+
description: "Descrição da notificação.",
|
|
37
|
+
},
|
|
38
|
+
actionLabel: {
|
|
39
|
+
control: { type: "text" },
|
|
40
|
+
description: "Texto do botão de ação opcional.",
|
|
41
|
+
},
|
|
42
|
+
onPressAction: {
|
|
43
|
+
action: "onPressAction",
|
|
44
|
+
description: "Função chamada ao clicar no botão de ação.",
|
|
45
|
+
},
|
|
46
|
+
},
|
|
47
|
+
parameters: {
|
|
48
|
+
docs: {
|
|
49
|
+
description: {
|
|
50
|
+
component: `
|
|
51
|
+
### NotificationCard
|
|
52
|
+
|
|
53
|
+
Componente de **notificação** para exibir informações ao usuário.
|
|
54
|
+
|
|
55
|
+
- \`variant\`: define o tipo de card (\`success\` | \`warning\`)
|
|
56
|
+
- \`title\`: define o título da notificação
|
|
57
|
+
- \`description\`: define a descrição da notificação
|
|
58
|
+
- \`actionLabel\`: texto opcional do botão de ação
|
|
59
|
+
- \`onPressAction\`: callback executado ao clicar na ação
|
|
60
|
+
|
|
61
|
+
> Use este componente quando precisar exibir uma notificação com ou sem ação para o usuário.
|
|
62
|
+
`,
|
|
63
|
+
},
|
|
64
|
+
},
|
|
65
|
+
},
|
|
66
|
+
};
|
|
67
|
+
|
|
68
|
+
export default meta;
|
|
69
|
+
|
|
70
|
+
type Story = StoryObj<typeof NotificationCard>;
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* STORIES
|
|
74
|
+
*/
|
|
75
|
+
export const NotificationCardSuccess: Story = {
|
|
76
|
+
name: "notification-card-success",
|
|
77
|
+
args: {
|
|
78
|
+
variant: "read",
|
|
79
|
+
title: "Lorem Ipsum",
|
|
80
|
+
description:
|
|
81
|
+
"Lorem Ipsum is simply dummy text of the printing and typesetting industry. It has been used as a placeholder text since the 1500s...",
|
|
82
|
+
},
|
|
83
|
+
};
|
|
84
|
+
|
|
85
|
+
export const NotificationCardWarning: Story = {
|
|
86
|
+
name: "notification-card-warning",
|
|
87
|
+
args: {
|
|
88
|
+
variant: "unread",
|
|
89
|
+
title: "Lorem Ipsum",
|
|
90
|
+
description: "Lorem Ipsum is simply dummy text of the printing and typesetting industry...",
|
|
91
|
+
actionLabel: "Lorem Ipsum",
|
|
92
|
+
},
|
|
93
|
+
};
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* IMPORTS
|
|
3
|
+
*/
|
|
4
|
+
import React from "react";
|
|
5
|
+
import type { Meta, StoryObj } from "@storybook/react";
|
|
6
|
+
|
|
7
|
+
// components
|
|
8
|
+
import NotificationDetailCard from "../../components/notification-details-card";
|
|
9
|
+
|
|
10
|
+
// typings
|
|
11
|
+
import type { INotificationDetailCardProps } from "../../components/notification-details-card/interface";
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* META
|
|
15
|
+
*/
|
|
16
|
+
const meta: Meta<typeof NotificationDetailCard> = {
|
|
17
|
+
title: "Componente/NotificationDetailCard",
|
|
18
|
+
component: NotificationDetailCard as React.FC<INotificationDetailCardProps>,
|
|
19
|
+
args: {
|
|
20
|
+
title: "Lorem Ipsum",
|
|
21
|
+
description:
|
|
22
|
+
"Lorem Ipsum is simply dummy text of the printing and typesetting industry. " +
|
|
23
|
+
"Lorem Ipsum has been the industry's standard dummy text ever since the 1500s...",
|
|
24
|
+
},
|
|
25
|
+
argTypes: {
|
|
26
|
+
title: {
|
|
27
|
+
control: { type: "text" },
|
|
28
|
+
description: "Título da notificação.",
|
|
29
|
+
},
|
|
30
|
+
description: {
|
|
31
|
+
control: { type: "text" },
|
|
32
|
+
description: "Descrição detalhada da notificação.",
|
|
33
|
+
},
|
|
34
|
+
fileUrl: {
|
|
35
|
+
control: { type: "text" },
|
|
36
|
+
description: "URL de um arquivo anexo (imagem, PDF, CSV, etc.).",
|
|
37
|
+
},
|
|
38
|
+
fileType: {
|
|
39
|
+
control: { type: "select" },
|
|
40
|
+
options: ["image", "pdf", "csv", "other"],
|
|
41
|
+
description: "Tipo do arquivo anexo.",
|
|
42
|
+
},
|
|
43
|
+
},
|
|
44
|
+
parameters: {
|
|
45
|
+
docs: {
|
|
46
|
+
description: {
|
|
47
|
+
component: `
|
|
48
|
+
### NotificationDetailCard
|
|
49
|
+
|
|
50
|
+
Componente de **detalhamento de notificações**, podendo conter apenas texto ou também anexos (imagem, PDF, CSV, etc.).
|
|
51
|
+
|
|
52
|
+
- \`title\`: título da notificação
|
|
53
|
+
- \`description\`: descrição detalhada
|
|
54
|
+
- \`fileUrl\`: URL do arquivo (opcional)
|
|
55
|
+
- \`fileType\`: tipo do arquivo (image, pdf, csv, other)
|
|
56
|
+
|
|
57
|
+
> Use este componente para exibir o detalhamento completo de uma notificação.
|
|
58
|
+
`,
|
|
59
|
+
},
|
|
60
|
+
},
|
|
61
|
+
},
|
|
62
|
+
};
|
|
63
|
+
|
|
64
|
+
export default meta;
|
|
65
|
+
|
|
66
|
+
type Story = StoryObj<typeof NotificationDetailCard>;
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* STORIES
|
|
70
|
+
*/
|
|
71
|
+
export const SomenteTexto: Story = {
|
|
72
|
+
name: "Somente Texto",
|
|
73
|
+
args: {
|
|
74
|
+
title: "Lorem Ipsum",
|
|
75
|
+
description:
|
|
76
|
+
"Lorem Ipsum is simply dummy text of the printing and typesetting industry. " +
|
|
77
|
+
"It has survived not only five centuries, but also the leap into electronic typesetting.",
|
|
78
|
+
},
|
|
79
|
+
};
|
|
80
|
+
|
|
81
|
+
export const TextoComImagem: Story = {
|
|
82
|
+
name: "Texto + Imagem",
|
|
83
|
+
args: {
|
|
84
|
+
title: "Atenção!",
|
|
85
|
+
description: "Ponte interditada para caminhões. Apenas veículos leves podem transitar.",
|
|
86
|
+
fileUrl: "https://placehold.co/300x300", // aqui você troca pelo real
|
|
87
|
+
fileType: "image",
|
|
88
|
+
},
|
|
89
|
+
};
|
|
90
|
+
|
|
91
|
+
export const TextoComPdf: Story = {
|
|
92
|
+
name: "Texto + PDF",
|
|
93
|
+
args: {
|
|
94
|
+
title: "Relatório disponível",
|
|
95
|
+
description: "Clique abaixo para abrir o relatório completo em PDF.",
|
|
96
|
+
fileUrl: "https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf",
|
|
97
|
+
fileType: "pdf",
|
|
98
|
+
},
|
|
99
|
+
};
|
|
100
|
+
|
|
101
|
+
export const TextoComCsv: Story = {
|
|
102
|
+
name: "Texto + CSV",
|
|
103
|
+
args: {
|
|
104
|
+
title: "Dados Exportados",
|
|
105
|
+
description: "Clique abaixo para visualizar o arquivo CSV exportado.",
|
|
106
|
+
fileUrl: "https://people.sc.fsu.edu/~jburkardt/data/csv/airtravel.csv",
|
|
107
|
+
fileType: "csv",
|
|
108
|
+
},
|
|
109
|
+
};
|