jornada-ui 2.0.2 → 2.0.4
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/notification-details-card/index.js +44 -41
- package/lib/commonjs/components/notification-details-card/index.js.map +1 -1
- package/lib/module/components/notification-details-card/index.js +44 -41
- package/lib/module/components/notification-details-card/index.js.map +1 -1
- package/lib/typescript/commonjs/src/components/notification-details-card/index.d.ts +0 -3
- package/lib/typescript/commonjs/src/components/notification-details-card/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/notification-details-card/interface.d.ts +1 -1
- package/lib/typescript/commonjs/src/components/notification-details-card/interface.d.ts.map +1 -1
- package/lib/typescript/module/src/components/notification-details-card/index.d.ts +0 -3
- package/lib/typescript/module/src/components/notification-details-card/index.d.ts.map +1 -1
- package/lib/typescript/module/src/components/notification-details-card/interface.d.ts +1 -1
- package/lib/typescript/module/src/components/notification-details-card/interface.d.ts.map +1 -1
- package/package.json +4 -1
- package/src/components/notification-details-card/index.tsx +58 -62
- package/src/components/notification-details-card/interface.ts +1 -1
|
@@ -6,6 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
var _react = _interopRequireWildcard(require("react"));
|
|
8
8
|
var _reactNative = require("react-native");
|
|
9
|
+
var _reactNativeVideo = _interopRequireDefault(require("react-native-video"));
|
|
9
10
|
var _index = require("../../common/icons-svg/index.js");
|
|
10
11
|
var _index2 = _interopRequireDefault(require("../box/index.js"));
|
|
11
12
|
var _index3 = _interopRequireDefault(require("../typography/index.js"));
|
|
@@ -32,9 +33,12 @@ const NotificationDetailCard = /*#__PURE__*/(0, _react.forwardRef)(({
|
|
|
32
33
|
}, ref) => {
|
|
33
34
|
const [visible, setVisible] = (0, _react.useState)(false);
|
|
34
35
|
function openFile() {
|
|
35
|
-
if (
|
|
36
|
+
if (!isInternetReachable) return;
|
|
37
|
+
if (fileType === "image" || fileType === "video") {
|
|
36
38
|
setVisible(true);
|
|
37
|
-
|
|
39
|
+
return;
|
|
40
|
+
}
|
|
41
|
+
if (fileUrl) {
|
|
38
42
|
Promise.resolve().then(() => _interopRequireWildcard(require("react-native"))).then(({
|
|
39
43
|
Linking
|
|
40
44
|
}) => {
|
|
@@ -85,59 +89,59 @@ const NotificationDetailCard = /*#__PURE__*/(0, _react.forwardRef)(({
|
|
|
85
89
|
lineHeight: _theme.theme.lineHeight.md,
|
|
86
90
|
color: _theme.theme.colors.gray[700],
|
|
87
91
|
marginBottom: fileUrl ? 12 : 0
|
|
88
|
-
}), fileUrl && /*#__PURE__*/(0, _jsxRuntime.
|
|
92
|
+
}), fileUrl && /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.TouchableOpacity, {
|
|
89
93
|
testID: "button",
|
|
90
94
|
onPress: openFile,
|
|
91
95
|
activeOpacity: 0.8,
|
|
92
|
-
disabled: !isInternetReachable
|
|
93
|
-
,
|
|
96
|
+
disabled: !isInternetReachable,
|
|
94
97
|
style: {
|
|
95
98
|
borderRadius: _theme.theme.borderWidths.thick_medium,
|
|
96
99
|
overflow: "hidden",
|
|
97
100
|
borderWidth: 1,
|
|
98
101
|
borderColor: isInternetReachable ? _theme.theme.colors.gray[300] : _theme.theme.colors.red[900]
|
|
99
102
|
},
|
|
100
|
-
children: fileType === "image"
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
justifyContent: "center"
|
|
103
|
+
children: [fileType === "image" && /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Image, {
|
|
104
|
+
source: {
|
|
105
|
+
uri: fileUrl
|
|
104
106
|
},
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
107
|
+
style: {
|
|
108
|
+
width: "100%",
|
|
109
|
+
height: 180,
|
|
108
110
|
borderRadius: _theme.theme.borderWidths.thick_medium
|
|
109
111
|
},
|
|
110
|
-
|
|
112
|
+
resizeMode: "cover"
|
|
113
|
+
}), fileType === "video" && /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
114
|
+
style: {
|
|
115
|
+
height: 180
|
|
116
|
+
},
|
|
117
|
+
children: isInternetReachable ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeVideo.default, {
|
|
111
118
|
source: {
|
|
112
119
|
uri: fileUrl
|
|
113
120
|
},
|
|
114
121
|
style: {
|
|
115
122
|
width: "100%",
|
|
116
|
-
height:
|
|
117
|
-
borderRadius: _theme.theme.borderWidths.thick_medium,
|
|
118
|
-
borderWidth: 2,
|
|
119
|
-
borderColor: isInternetReachable ? _theme.theme.colors.blue[525] : _theme.theme.colors.red[900]
|
|
123
|
+
height: "100%"
|
|
120
124
|
},
|
|
121
|
-
|
|
125
|
+
controls: true,
|
|
126
|
+
resizeMode: "cover",
|
|
127
|
+
paused: true
|
|
122
128
|
}) : /*#__PURE__*/(0, _jsxRuntime.jsxs)(_index2.default, {
|
|
123
129
|
flexStyle: {
|
|
130
|
+
flex: 1,
|
|
124
131
|
alignItems: "center",
|
|
125
132
|
justifyContent: "center"
|
|
126
133
|
},
|
|
127
|
-
height: 180,
|
|
128
134
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_index.Icons, {
|
|
129
135
|
icon: "WIFI_X",
|
|
130
136
|
size: 20,
|
|
131
137
|
color: _theme.theme.colors.red[900]
|
|
132
138
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_index3.default, {
|
|
133
|
-
text: "
|
|
139
|
+
text: "V\xEDdeo indispon\xEDvel",
|
|
134
140
|
size: _theme.theme.fontSizes.sm,
|
|
135
|
-
|
|
136
|
-
color: _theme.theme.colors.gray[700],
|
|
137
|
-
marginBottom: fileUrl ? 12 : 0
|
|
141
|
+
color: _theme.theme.colors.gray[700]
|
|
138
142
|
})]
|
|
139
143
|
})
|
|
140
|
-
})
|
|
144
|
+
}), fileType !== "image" && fileType !== "video" && /*#__PURE__*/(0, _jsxRuntime.jsxs)(_index2.default, {
|
|
141
145
|
flexStyle: {
|
|
142
146
|
flexDirection: "row",
|
|
143
147
|
alignItems: "center",
|
|
@@ -147,22 +151,18 @@ const NotificationDetailCard = /*#__PURE__*/(0, _react.forwardRef)(({
|
|
|
147
151
|
padding: _theme.theme.paddings.sm
|
|
148
152
|
},
|
|
149
153
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_index3.default, {
|
|
150
|
-
text:
|
|
154
|
+
text: `Abrir arquivo (${fileType.toUpperCase()})`,
|
|
151
155
|
fontFamily: _theme.theme.fonts.inter_medium_500,
|
|
152
156
|
color: _theme.theme.colors.blue[500],
|
|
153
157
|
size: _theme.theme.fontSizes.md
|
|
154
|
-
}),
|
|
158
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.Icons, {
|
|
155
159
|
icon: "FILES",
|
|
156
160
|
size: 20,
|
|
157
161
|
color: _theme.theme.colors.blue[500]
|
|
158
|
-
}) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.Icons, {
|
|
159
|
-
icon: "WIFI_X",
|
|
160
|
-
size: 20,
|
|
161
|
-
color: _theme.theme.colors.red[900]
|
|
162
162
|
})]
|
|
163
|
-
})
|
|
163
|
+
})]
|
|
164
164
|
})]
|
|
165
|
-
}), fileType === "image" && /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Modal, {
|
|
165
|
+
}), (fileType === "image" || fileType === "video") && /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Modal, {
|
|
166
166
|
visible: visible,
|
|
167
167
|
transparent: true,
|
|
168
168
|
animationType: "fade",
|
|
@@ -176,8 +176,6 @@ const NotificationDetailCard = /*#__PURE__*/(0, _react.forwardRef)(({
|
|
|
176
176
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.TouchableOpacity, {
|
|
177
177
|
onPress: () => setVisible(false),
|
|
178
178
|
style: {
|
|
179
|
-
width: 40,
|
|
180
|
-
height: 40,
|
|
181
179
|
position: "absolute",
|
|
182
180
|
top: 40,
|
|
183
181
|
right: 20
|
|
@@ -187,25 +185,30 @@ const NotificationDetailCard = /*#__PURE__*/(0, _react.forwardRef)(({
|
|
|
187
185
|
size: 28,
|
|
188
186
|
color: _theme.theme.colors.neutral[25]
|
|
189
187
|
})
|
|
190
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Image, {
|
|
188
|
+
}), fileType === "image" ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Image, {
|
|
191
189
|
source: {
|
|
192
190
|
uri: fileUrl
|
|
193
191
|
},
|
|
194
192
|
style: {
|
|
195
193
|
width: "90%",
|
|
196
|
-
height: "70%"
|
|
197
|
-
borderRadius: _theme.theme.borderWidths.thick_medium
|
|
194
|
+
height: "70%"
|
|
198
195
|
},
|
|
199
196
|
resizeMode: "contain"
|
|
197
|
+
}) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeVideo.default, {
|
|
198
|
+
source: {
|
|
199
|
+
uri: fileUrl
|
|
200
|
+
},
|
|
201
|
+
style: {
|
|
202
|
+
width: "100%",
|
|
203
|
+
height: "60%"
|
|
204
|
+
},
|
|
205
|
+
controls: true,
|
|
206
|
+
resizeMode: "contain"
|
|
200
207
|
})]
|
|
201
208
|
})
|
|
202
209
|
})]
|
|
203
210
|
});
|
|
204
211
|
});
|
|
205
212
|
NotificationDetailCard.displayName = "NotificationDetailCard";
|
|
206
|
-
|
|
207
|
-
/**
|
|
208
|
-
* EXPORTS
|
|
209
|
-
*/
|
|
210
213
|
var _default = exports.default = (0, _asBaseComponent.asBaseComponent)(NotificationDetailCard);
|
|
211
214
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_reactNativeVideo","_interopRequireDefault","_index","_index2","_index3","_asBaseComponent","_theme","_jsxRuntime","e","__esModule","default","t","WeakMap","r","n","o","i","f","__proto__","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","NotificationDetailCard","forwardRef","isInternetReachable","title","description","fileUrl","fileType","testID","ref","visible","setVisible","useState","openFile","Promise","resolve","then","Linking","openURL","catch","err","console","warn","borderColor","theme","colors","blue","jsxs","flexStyle","flexDirection","borderStyled","borderWidth","neutral","borderRadius","borderWidths","thick_medium","marginStyle","marginBottom","backgroundColor","children","jsx","width","borderTopLeftRadius","borderBottomLeftRadius","flex","paddingStyle","padding","paddings","md","text","fontFamily","fonts","inter_bold","fontWeight","size","fontSizes","color","black","sm","lineHeight","gray","TouchableOpacity","onPress","activeOpacity","disabled","style","overflow","red","Image","source","uri","height","resizeMode","View","controls","paused","alignItems","justifyContent","Icons","icon","toUpperCase","inter_medium_500","Modal","transparent","animationType","position","top","right","displayName","_default","exports","asBaseComponent"],"sourceRoot":"..\\..\\..\\..\\src","sources":["components/notification-details-card/index.tsx"],"mappings":";;;;;;AAGA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,iBAAA,GAAAC,sBAAA,CAAAH,OAAA;AAGA,IAAAI,MAAA,GAAAJ,OAAA;AAGA,IAAAK,OAAA,GAAAF,sBAAA,CAAAH,OAAA;AACA,IAAAM,OAAA,GAAAH,sBAAA,CAAAH,OAAA;AAIA,IAAAO,gBAAA,GAAAP,OAAA;AAGA,IAAAQ,MAAA,GAAAR,OAAA;AAAiD,IAAAS,WAAA,GAAAT,OAAA;AAAA,SAAAG,uBAAAO,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAAA,SAAAX,wBAAAW,CAAA,EAAAG,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAf,uBAAA,YAAAA,CAAAW,CAAA,EAAAG,CAAA,SAAAA,CAAA,IAAAH,CAAA,IAA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QAAS,CACrB,CACF;MAAA,CACG;IAAC,CACF,CACR;EAAA,CACE,CAAC;AAEV,CACF,CAAC;AAEDvE,sBAAsB,CAACuF,WAAW,GAAG,wBAAwB;AAAC,IAAAC,QAAA,GAAAC,OAAA,CAAA1G,OAAA,GAE/C,IAAA2G,gCAAe,EAAC1F,sBAAsB,CAAC","ignoreList":[]}
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
*/
|
|
6
6
|
import React, { forwardRef, useState } from "react";
|
|
7
7
|
import { Modal, TouchableOpacity, Image, View } from "react-native";
|
|
8
|
+
import Video from "react-native-video";
|
|
8
9
|
|
|
9
10
|
// commons / icons
|
|
10
11
|
import { Icons } from "../../common/icons-svg/index.js";
|
|
@@ -34,9 +35,12 @@ const NotificationDetailCard = /*#__PURE__*/forwardRef(({
|
|
|
34
35
|
}, ref) => {
|
|
35
36
|
const [visible, setVisible] = useState(false);
|
|
36
37
|
function openFile() {
|
|
37
|
-
if (
|
|
38
|
+
if (!isInternetReachable) return;
|
|
39
|
+
if (fileType === "image" || fileType === "video") {
|
|
38
40
|
setVisible(true);
|
|
39
|
-
|
|
41
|
+
return;
|
|
42
|
+
}
|
|
43
|
+
if (fileUrl) {
|
|
40
44
|
import("react-native").then(({
|
|
41
45
|
Linking
|
|
42
46
|
}) => {
|
|
@@ -87,59 +91,59 @@ const NotificationDetailCard = /*#__PURE__*/forwardRef(({
|
|
|
87
91
|
lineHeight: theme.lineHeight.md,
|
|
88
92
|
color: theme.colors.gray[700],
|
|
89
93
|
marginBottom: fileUrl ? 12 : 0
|
|
90
|
-
}), fileUrl && /*#__PURE__*/
|
|
94
|
+
}), fileUrl && /*#__PURE__*/_jsxs(TouchableOpacity, {
|
|
91
95
|
testID: "button",
|
|
92
96
|
onPress: openFile,
|
|
93
97
|
activeOpacity: 0.8,
|
|
94
|
-
disabled: !isInternetReachable
|
|
95
|
-
,
|
|
98
|
+
disabled: !isInternetReachable,
|
|
96
99
|
style: {
|
|
97
100
|
borderRadius: theme.borderWidths.thick_medium,
|
|
98
101
|
overflow: "hidden",
|
|
99
102
|
borderWidth: 1,
|
|
100
103
|
borderColor: isInternetReachable ? theme.colors.gray[300] : theme.colors.red[900]
|
|
101
104
|
},
|
|
102
|
-
children: fileType === "image"
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
justifyContent: "center"
|
|
105
|
+
children: [fileType === "image" && /*#__PURE__*/_jsx(Image, {
|
|
106
|
+
source: {
|
|
107
|
+
uri: fileUrl
|
|
106
108
|
},
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
109
|
+
style: {
|
|
110
|
+
width: "100%",
|
|
111
|
+
height: 180,
|
|
110
112
|
borderRadius: theme.borderWidths.thick_medium
|
|
111
113
|
},
|
|
112
|
-
|
|
114
|
+
resizeMode: "cover"
|
|
115
|
+
}), fileType === "video" && /*#__PURE__*/_jsx(View, {
|
|
116
|
+
style: {
|
|
117
|
+
height: 180
|
|
118
|
+
},
|
|
119
|
+
children: isInternetReachable ? /*#__PURE__*/_jsx(Video, {
|
|
113
120
|
source: {
|
|
114
121
|
uri: fileUrl
|
|
115
122
|
},
|
|
116
123
|
style: {
|
|
117
124
|
width: "100%",
|
|
118
|
-
height:
|
|
119
|
-
borderRadius: theme.borderWidths.thick_medium,
|
|
120
|
-
borderWidth: 2,
|
|
121
|
-
borderColor: isInternetReachable ? theme.colors.blue[525] : theme.colors.red[900]
|
|
125
|
+
height: "100%"
|
|
122
126
|
},
|
|
123
|
-
|
|
127
|
+
controls: true,
|
|
128
|
+
resizeMode: "cover",
|
|
129
|
+
paused: true
|
|
124
130
|
}) : /*#__PURE__*/_jsxs(Box, {
|
|
125
131
|
flexStyle: {
|
|
132
|
+
flex: 1,
|
|
126
133
|
alignItems: "center",
|
|
127
134
|
justifyContent: "center"
|
|
128
135
|
},
|
|
129
|
-
height: 180,
|
|
130
136
|
children: [/*#__PURE__*/_jsx(Icons, {
|
|
131
137
|
icon: "WIFI_X",
|
|
132
138
|
size: 20,
|
|
133
139
|
color: theme.colors.red[900]
|
|
134
140
|
}), /*#__PURE__*/_jsx(Typography, {
|
|
135
|
-
text: "
|
|
141
|
+
text: "V\xEDdeo indispon\xEDvel",
|
|
136
142
|
size: theme.fontSizes.sm,
|
|
137
|
-
|
|
138
|
-
color: theme.colors.gray[700],
|
|
139
|
-
marginBottom: fileUrl ? 12 : 0
|
|
143
|
+
color: theme.colors.gray[700]
|
|
140
144
|
})]
|
|
141
145
|
})
|
|
142
|
-
})
|
|
146
|
+
}), fileType !== "image" && fileType !== "video" && /*#__PURE__*/_jsxs(Box, {
|
|
143
147
|
flexStyle: {
|
|
144
148
|
flexDirection: "row",
|
|
145
149
|
alignItems: "center",
|
|
@@ -149,22 +153,18 @@ const NotificationDetailCard = /*#__PURE__*/forwardRef(({
|
|
|
149
153
|
padding: theme.paddings.sm
|
|
150
154
|
},
|
|
151
155
|
children: [/*#__PURE__*/_jsx(Typography, {
|
|
152
|
-
text:
|
|
156
|
+
text: `Abrir arquivo (${fileType.toUpperCase()})`,
|
|
153
157
|
fontFamily: theme.fonts.inter_medium_500,
|
|
154
158
|
color: theme.colors.blue[500],
|
|
155
159
|
size: theme.fontSizes.md
|
|
156
|
-
}),
|
|
160
|
+
}), /*#__PURE__*/_jsx(Icons, {
|
|
157
161
|
icon: "FILES",
|
|
158
162
|
size: 20,
|
|
159
163
|
color: theme.colors.blue[500]
|
|
160
|
-
}) : /*#__PURE__*/_jsx(Icons, {
|
|
161
|
-
icon: "WIFI_X",
|
|
162
|
-
size: 20,
|
|
163
|
-
color: theme.colors.red[900]
|
|
164
164
|
})]
|
|
165
|
-
})
|
|
165
|
+
})]
|
|
166
166
|
})]
|
|
167
|
-
}), fileType === "image" && /*#__PURE__*/_jsx(Modal, {
|
|
167
|
+
}), (fileType === "image" || fileType === "video") && /*#__PURE__*/_jsx(Modal, {
|
|
168
168
|
visible: visible,
|
|
169
169
|
transparent: true,
|
|
170
170
|
animationType: "fade",
|
|
@@ -178,8 +178,6 @@ const NotificationDetailCard = /*#__PURE__*/forwardRef(({
|
|
|
178
178
|
children: [/*#__PURE__*/_jsx(TouchableOpacity, {
|
|
179
179
|
onPress: () => setVisible(false),
|
|
180
180
|
style: {
|
|
181
|
-
width: 40,
|
|
182
|
-
height: 40,
|
|
183
181
|
position: "absolute",
|
|
184
182
|
top: 40,
|
|
185
183
|
right: 20
|
|
@@ -189,25 +187,30 @@ const NotificationDetailCard = /*#__PURE__*/forwardRef(({
|
|
|
189
187
|
size: 28,
|
|
190
188
|
color: theme.colors.neutral[25]
|
|
191
189
|
})
|
|
192
|
-
}), /*#__PURE__*/_jsx(Image, {
|
|
190
|
+
}), fileType === "image" ? /*#__PURE__*/_jsx(Image, {
|
|
193
191
|
source: {
|
|
194
192
|
uri: fileUrl
|
|
195
193
|
},
|
|
196
194
|
style: {
|
|
197
195
|
width: "90%",
|
|
198
|
-
height: "70%"
|
|
199
|
-
borderRadius: theme.borderWidths.thick_medium
|
|
196
|
+
height: "70%"
|
|
200
197
|
},
|
|
201
198
|
resizeMode: "contain"
|
|
199
|
+
}) : /*#__PURE__*/_jsx(Video, {
|
|
200
|
+
source: {
|
|
201
|
+
uri: fileUrl
|
|
202
|
+
},
|
|
203
|
+
style: {
|
|
204
|
+
width: "100%",
|
|
205
|
+
height: "60%"
|
|
206
|
+
},
|
|
207
|
+
controls: true,
|
|
208
|
+
resizeMode: "contain"
|
|
202
209
|
})]
|
|
203
210
|
})
|
|
204
211
|
})]
|
|
205
212
|
});
|
|
206
213
|
});
|
|
207
214
|
NotificationDetailCard.displayName = "NotificationDetailCard";
|
|
208
|
-
|
|
209
|
-
/**
|
|
210
|
-
* EXPORTS
|
|
211
|
-
*/
|
|
212
215
|
export default asBaseComponent(NotificationDetailCard);
|
|
213
216
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","forwardRef","useState","Modal","TouchableOpacity","Image","View","Icons","Box","Typography","asBaseComponent","theme","jsx","_jsx","jsxs","_jsxs","NotificationDetailCard","isInternetReachable","title","description","fileUrl","fileType","testID","ref","visible","setVisible","openFile","then","Linking","openURL","catch","err","console","warn","borderColor","colors","blue","flexStyle","flexDirection","borderStyled","borderWidth","neutral","borderRadius","borderWidths","thick_medium","marginStyle","marginBottom","backgroundColor","children","width","borderTopLeftRadius","borderBottomLeftRadius","flex","paddingStyle","padding","paddings","md","text","fontFamily","fonts","inter_bold","fontWeight","size","fontSizes","color","black","sm","lineHeight","gray","onPress","activeOpacity","disabled","style","overflow","red","
|
|
1
|
+
{"version":3,"names":["React","forwardRef","useState","Modal","TouchableOpacity","Image","View","Video","Icons","Box","Typography","asBaseComponent","theme","jsx","_jsx","jsxs","_jsxs","NotificationDetailCard","isInternetReachable","title","description","fileUrl","fileType","testID","ref","visible","setVisible","openFile","then","Linking","openURL","catch","err","console","warn","borderColor","colors","blue","flexStyle","flexDirection","borderStyled","borderWidth","neutral","borderRadius","borderWidths","thick_medium","marginStyle","marginBottom","backgroundColor","children","width","borderTopLeftRadius","borderBottomLeftRadius","flex","paddingStyle","padding","paddings","md","text","fontFamily","fonts","inter_bold","fontWeight","size","fontSizes","color","black","sm","lineHeight","gray","onPress","activeOpacity","disabled","style","overflow","red","source","uri","height","resizeMode","controls","paused","alignItems","justifyContent","icon","toUpperCase","inter_medium_500","transparent","animationType","position","top","right","displayName"],"sourceRoot":"..\\..\\..\\..\\src","sources":["components/notification-details-card/index.tsx"],"mappings":";;AAAA;AACA;AACA;AACA,OAAOA,KAAK,IAAIC,UAAU,EAAEC,QAAQ,QAAQ,OAAO;AACnD,SAASC,KAAK,EAAEC,gBAAgB,EAAEC,KAAK,EAAEC,IAAI,QAAQ,cAAc;AACnE,OAAOC,KAAK,MAAM,oBAAoB;;AAEtC;AACA,SAASC,KAAK,QAAQ,iCAAwB;;AAE9C;AACA,OAAOC,GAAG,MAAM,iBAAQ;AACxB,OAAOC,UAAU,MAAM,wBAAe;;AAEtC;;AAEA,SAASC,eAAe,QAAQ,mC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from "./interface";
|
|
6
|
-
/**
|
|
7
|
-
* EXPORTS
|
|
8
|
-
*/
|
|
9
6
|
declare const _default: React.ComponentType<INotificationDetailCardProps>;
|
|
10
7
|
export default _default;
|
|
11
8
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/notification-details-card/index.tsx"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAA+B,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/notification-details-card/index.tsx"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAA+B,MAAM,OAAO,CAAC;AAYpD,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,aAAa,CAAC;;AA0MhE,wBAAuD"}
|
|
@@ -5,7 +5,7 @@ interface INotificationDetailCardProps {
|
|
|
5
5
|
title: string;
|
|
6
6
|
description: string;
|
|
7
7
|
fileUrl?: string;
|
|
8
|
-
fileType?: "image" | "pdf" | "csv" | "other";
|
|
8
|
+
fileType?: "image" | "pdf" | "csv" | "other" | "video";
|
|
9
9
|
testID?: string;
|
|
10
10
|
/**Indica se a conexão com a internet está disponível */
|
|
11
11
|
isInternetReachable?: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"interface.d.ts","sourceRoot":"","sources":["../../../../../../src/components/notification-details-card/interface.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,UAAU,4BAA4B;IACpC,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,OAAO,GAAG,KAAK,GAAG,KAAK,GAAG,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"interface.d.ts","sourceRoot":"","sources":["../../../../../../src/components/notification-details-card/interface.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,UAAU,4BAA4B;IACpC,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,OAAO,GAAG,KAAK,GAAG,KAAK,GAAG,OAAO,GAAG,OAAO,CAAC;IACvD,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB,wDAAwD;IACxD,mBAAmB,CAAC,EAAE,OAAO,CAAC;CAC/B;AAED;;GAEG;AACH,OAAO,EAAE,KAAK,4BAA4B,EAAE,CAAC"}
|
|
@@ -3,9 +3,6 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import React from "react";
|
|
5
5
|
import type { INotificationDetailCardProps } from "./interface";
|
|
6
|
-
/**
|
|
7
|
-
* EXPORTS
|
|
8
|
-
*/
|
|
9
6
|
declare const _default: React.ComponentType<INotificationDetailCardProps>;
|
|
10
7
|
export default _default;
|
|
11
8
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/notification-details-card/index.tsx"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAA+B,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/notification-details-card/index.tsx"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAA+B,MAAM,OAAO,CAAC;AAYpD,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,aAAa,CAAC;;AA0MhE,wBAAuD"}
|
|
@@ -5,7 +5,7 @@ interface INotificationDetailCardProps {
|
|
|
5
5
|
title: string;
|
|
6
6
|
description: string;
|
|
7
7
|
fileUrl?: string;
|
|
8
|
-
fileType?: "image" | "pdf" | "csv" | "other";
|
|
8
|
+
fileType?: "image" | "pdf" | "csv" | "other" | "video";
|
|
9
9
|
testID?: string;
|
|
10
10
|
/**Indica se a conexão com a internet está disponível */
|
|
11
11
|
isInternetReachable?: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"interface.d.ts","sourceRoot":"","sources":["../../../../../../src/components/notification-details-card/interface.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,UAAU,4BAA4B;IACpC,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,OAAO,GAAG,KAAK,GAAG,KAAK,GAAG,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"interface.d.ts","sourceRoot":"","sources":["../../../../../../src/components/notification-details-card/interface.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,UAAU,4BAA4B;IACpC,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,OAAO,GAAG,KAAK,GAAG,KAAK,GAAG,OAAO,GAAG,OAAO,CAAC;IACvD,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB,wDAAwD;IACxD,mBAAmB,CAAC,EAAE,OAAO,CAAC;CAC/B;AAED;;GAEG;AACH,OAAO,EAAE,KAAK,4BAA4B,EAAE,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "jornada-ui",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.4",
|
|
4
4
|
"description": "Biblioteca para desenvolvimento dos componentes para utilizar nos app",
|
|
5
5
|
"source": "./src/index.tsx",
|
|
6
6
|
"main": "./lib/commonjs/index.js",
|
|
@@ -80,7 +80,9 @@
|
|
|
80
80
|
"dependencies": {
|
|
81
81
|
"@react-native-community/datetimepicker": "^8.4.4",
|
|
82
82
|
"@storybook/test": "^8.3.0",
|
|
83
|
+
"expo-video": "~3.0.15",
|
|
83
84
|
"react-native-svg": "^15.11.2",
|
|
85
|
+
"react-native-video": "6.18.0",
|
|
84
86
|
"react-native-web": "^0.19.12"
|
|
85
87
|
},
|
|
86
88
|
"devDependencies": {
|
|
@@ -120,6 +122,7 @@
|
|
|
120
122
|
"babel-plugin-react-docgen-typescript": "^1.5.1",
|
|
121
123
|
"babel-plugin-react-native-web": "^0.19.12",
|
|
122
124
|
"babel-plugin-transform-inline-environment-variables": "^0.4.4",
|
|
125
|
+
"baseline-browser-mapping": "2.9.13",
|
|
123
126
|
"commitlint": "^19.6.1",
|
|
124
127
|
"del-cli": "^5.1.0",
|
|
125
128
|
"eslint": "^9.22.0",
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import React, { forwardRef, useState } from "react";
|
|
5
5
|
import { Modal, TouchableOpacity, Image, View } from "react-native";
|
|
6
|
+
import Video from "react-native-video";
|
|
6
7
|
|
|
7
8
|
// commons / icons
|
|
8
9
|
import { Icons } from "../../common/icons-svg";
|
|
@@ -32,9 +33,14 @@ const NotificationDetailCard: React.FC<INotificationDetailCardProps> = forwardRe
|
|
|
32
33
|
const [visible, setVisible] = useState(false);
|
|
33
34
|
|
|
34
35
|
function openFile() {
|
|
35
|
-
if (
|
|
36
|
+
if (!isInternetReachable) return;
|
|
37
|
+
|
|
38
|
+
if (fileType === "image" || fileType === "video") {
|
|
36
39
|
setVisible(true);
|
|
37
|
-
|
|
40
|
+
return;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
if (fileUrl) {
|
|
38
44
|
import("react-native").then(({ Linking }) => {
|
|
39
45
|
Linking.openURL(fileUrl).catch((err) => console.warn("Erro ao abrir arquivo:", err));
|
|
40
46
|
});
|
|
@@ -56,7 +62,7 @@ const NotificationDetailCard: React.FC<INotificationDetailCardProps> = forwardRe
|
|
|
56
62
|
marginStyle={{ marginBottom: 16 }}
|
|
57
63
|
backgroundColor={theme.colors.neutral[25]}
|
|
58
64
|
>
|
|
59
|
-
{/*
|
|
65
|
+
{/* Borda lateral */}
|
|
60
66
|
<Box
|
|
61
67
|
width={8}
|
|
62
68
|
backgroundColor={borderColor}
|
|
@@ -66,9 +72,9 @@ const NotificationDetailCard: React.FC<INotificationDetailCardProps> = forwardRe
|
|
|
66
72
|
}}
|
|
67
73
|
/>
|
|
68
74
|
|
|
69
|
-
{/* Conteúdo
|
|
75
|
+
{/* Conteúdo */}
|
|
70
76
|
<Box flexStyle={{ flex: 1 }} paddingStyle={{ padding: theme.paddings.md }}>
|
|
71
|
-
{/*
|
|
77
|
+
{/* Título */}
|
|
72
78
|
<Typography
|
|
73
79
|
text={title}
|
|
74
80
|
fontFamily={theme.fonts.inter_bold}
|
|
@@ -78,7 +84,7 @@ const NotificationDetailCard: React.FC<INotificationDetailCardProps> = forwardRe
|
|
|
78
84
|
marginBottom={8}
|
|
79
85
|
/>
|
|
80
86
|
|
|
81
|
-
{/*
|
|
87
|
+
{/* Descrição */}
|
|
82
88
|
<Typography
|
|
83
89
|
text={description}
|
|
84
90
|
size={theme.fontSizes.sm}
|
|
@@ -87,69 +93,65 @@ const NotificationDetailCard: React.FC<INotificationDetailCardProps> = forwardRe
|
|
|
87
93
|
marginBottom={fileUrl ? 12 : 0}
|
|
88
94
|
/>
|
|
89
95
|
|
|
90
|
-
{/*
|
|
96
|
+
{/* Arquivo */}
|
|
91
97
|
{fileUrl && (
|
|
92
98
|
<TouchableOpacity
|
|
93
99
|
testID="button"
|
|
94
100
|
onPress={openFile}
|
|
95
101
|
activeOpacity={0.8}
|
|
96
|
-
disabled={!isInternetReachable}
|
|
102
|
+
disabled={!isInternetReachable}
|
|
97
103
|
style={{
|
|
98
104
|
borderRadius: theme.borderWidths.thick_medium,
|
|
99
105
|
overflow: "hidden",
|
|
100
106
|
borderWidth: 1,
|
|
101
|
-
|
|
102
107
|
borderColor: isInternetReachable ? theme.colors.gray[300] : theme.colors.red[900],
|
|
103
108
|
}}
|
|
104
109
|
>
|
|
105
|
-
{
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
borderWidth: 2,
|
|
113
|
-
borderColor: isInternetReachable
|
|
114
|
-
? theme.colors.blue[525]
|
|
115
|
-
: theme.colors.red[900],
|
|
110
|
+
{/* IMAGEM */}
|
|
111
|
+
{fileType === "image" && (
|
|
112
|
+
<Image
|
|
113
|
+
source={{ uri: fileUrl }}
|
|
114
|
+
style={{
|
|
115
|
+
width: "100%",
|
|
116
|
+
height: 180,
|
|
116
117
|
borderRadius: theme.borderWidths.thick_medium,
|
|
117
118
|
}}
|
|
118
|
-
|
|
119
|
+
resizeMode="cover"
|
|
120
|
+
/>
|
|
121
|
+
)}
|
|
122
|
+
|
|
123
|
+
{/* VÍDEO */}
|
|
124
|
+
{fileType === "video" && (
|
|
125
|
+
<View style={{ height: 180 }}>
|
|
119
126
|
{isInternetReachable ? (
|
|
120
|
-
<
|
|
127
|
+
<Video
|
|
121
128
|
source={{ uri: fileUrl }}
|
|
122
|
-
style={{
|
|
123
|
-
|
|
124
|
-
height: 180,
|
|
125
|
-
borderRadius: theme.borderWidths.thick_medium,
|
|
126
|
-
borderWidth: 2,
|
|
127
|
-
borderColor: isInternetReachable
|
|
128
|
-
? theme.colors.blue[525]
|
|
129
|
-
: theme.colors.red[900],
|
|
130
|
-
}}
|
|
129
|
+
style={{ width: "100%", height: "100%" }}
|
|
130
|
+
controls
|
|
131
131
|
resizeMode="cover"
|
|
132
|
+
paused
|
|
132
133
|
/>
|
|
133
134
|
) : (
|
|
134
135
|
<Box
|
|
135
136
|
flexStyle={{
|
|
137
|
+
flex: 1,
|
|
136
138
|
alignItems: "center",
|
|
137
139
|
justifyContent: "center",
|
|
138
140
|
}}
|
|
139
|
-
height={180}
|
|
140
141
|
>
|
|
141
142
|
<Icons icon="WIFI_X" size={20} color={theme.colors.red[900]} />
|
|
142
143
|
<Typography
|
|
143
|
-
text=
|
|
144
|
+
text="Vídeo indisponível"
|
|
144
145
|
size={theme.fontSizes.sm}
|
|
145
|
-
lineHeight={theme.lineHeight.md}
|
|
146
146
|
color={theme.colors.gray[700]}
|
|
147
|
-
marginBottom={fileUrl ? 12 : 0}
|
|
148
147
|
/>
|
|
149
148
|
</Box>
|
|
150
149
|
)}
|
|
151
|
-
</
|
|
152
|
-
)
|
|
150
|
+
</View>
|
|
151
|
+
)}
|
|
152
|
+
|
|
153
|
+
{/* PDF / OUTROS */}
|
|
154
|
+
{fileType !== "image" && fileType !== "video" && (
|
|
153
155
|
<Box
|
|
154
156
|
flexStyle={{
|
|
155
157
|
flexDirection: "row",
|
|
@@ -159,28 +161,20 @@ const NotificationDetailCard: React.FC<INotificationDetailCardProps> = forwardRe
|
|
|
159
161
|
paddingStyle={{ padding: theme.paddings.sm }}
|
|
160
162
|
>
|
|
161
163
|
<Typography
|
|
162
|
-
text={
|
|
163
|
-
isInternetReachable
|
|
164
|
-
? `Abrir arquivo (${fileType.toUpperCase()})`
|
|
165
|
-
: "Arquivo indisponível"
|
|
166
|
-
}
|
|
164
|
+
text={`Abrir arquivo (${fileType.toUpperCase()})`}
|
|
167
165
|
fontFamily={theme.fonts.inter_medium_500}
|
|
168
166
|
color={theme.colors.blue[500]}
|
|
169
167
|
size={theme.fontSizes.md}
|
|
170
168
|
/>
|
|
171
|
-
{
|
|
172
|
-
<Icons icon="FILES" size={20} color={theme.colors.blue[500]} />
|
|
173
|
-
) : (
|
|
174
|
-
<Icons icon="WIFI_X" size={20} color={theme.colors.red[900]} />
|
|
175
|
-
)}
|
|
169
|
+
<Icons icon="FILES" size={20} color={theme.colors.blue[500]} />
|
|
176
170
|
</Box>
|
|
177
171
|
)}
|
|
178
172
|
</TouchableOpacity>
|
|
179
173
|
)}
|
|
180
174
|
</Box>
|
|
181
175
|
|
|
182
|
-
{/*
|
|
183
|
-
{fileType === "image" && (
|
|
176
|
+
{/* MODAL (imagem ou vídeo) */}
|
|
177
|
+
{(fileType === "image" || fileType === "video") && (
|
|
184
178
|
<Modal visible={visible} transparent animationType="fade">
|
|
185
179
|
<View
|
|
186
180
|
style={{
|
|
@@ -192,20 +186,25 @@ const NotificationDetailCard: React.FC<INotificationDetailCardProps> = forwardRe
|
|
|
192
186
|
>
|
|
193
187
|
<TouchableOpacity
|
|
194
188
|
onPress={() => setVisible(false)}
|
|
195
|
-
style={{
|
|
189
|
+
style={{ position: "absolute", top: 40, right: 20 }}
|
|
196
190
|
>
|
|
197
191
|
<Icons icon="CLOSED" size={28} color={theme.colors.neutral[25]} />
|
|
198
192
|
</TouchableOpacity>
|
|
199
193
|
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
width: "90%",
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
194
|
+
{fileType === "image" ? (
|
|
195
|
+
<Image
|
|
196
|
+
source={{ uri: fileUrl }}
|
|
197
|
+
style={{ width: "90%", height: "70%" }}
|
|
198
|
+
resizeMode="contain"
|
|
199
|
+
/>
|
|
200
|
+
) : (
|
|
201
|
+
<Video
|
|
202
|
+
source={{ uri: fileUrl }}
|
|
203
|
+
style={{ width: "100%", height: "60%" }}
|
|
204
|
+
controls
|
|
205
|
+
resizeMode="contain"
|
|
206
|
+
/>
|
|
207
|
+
)}
|
|
209
208
|
</View>
|
|
210
209
|
</Modal>
|
|
211
210
|
)}
|
|
@@ -216,7 +215,4 @@ const NotificationDetailCard: React.FC<INotificationDetailCardProps> = forwardRe
|
|
|
216
215
|
|
|
217
216
|
NotificationDetailCard.displayName = "NotificationDetailCard";
|
|
218
217
|
|
|
219
|
-
/**
|
|
220
|
-
* EXPORTS
|
|
221
|
-
*/
|
|
222
218
|
export default asBaseComponent(NotificationDetailCard);
|
|
@@ -6,7 +6,7 @@ interface INotificationDetailCardProps {
|
|
|
6
6
|
title: string;
|
|
7
7
|
description: string;
|
|
8
8
|
fileUrl?: string; // link para arquivo (png, pdf, csv, etc.)
|
|
9
|
-
fileType?: "image" | "pdf" | "csv" | "other";
|
|
9
|
+
fileType?: "image" | "pdf" | "csv" | "other" | "video";
|
|
10
10
|
testID?: string;
|
|
11
11
|
|
|
12
12
|
/**Indica se a conexão com a internet está disponível */
|