@controleonline/ui-common 1.2.134 → 1.2.135
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/.release/rc-manifest.json +12 -5
- package/package.json +6 -2
- package/src/react/components/CategoryForm.js +539 -539
- package/src/react/components/DefaultProvider.native.js +2 -2
- package/src/react/components/DefaultProvider.web.js +2 -2
- package/src/react/components/LinkedOrderProductsTab.js +17 -8
- package/src/react/components/LinkedOrderProductsTab.styles.js +15 -0
- package/src/react/components/documentDetails/DocumentDetailsShell.js +147 -0
- package/src/react/components/documentDetails/DocumentDetailsShell.styles.js +163 -0
- package/src/react/components/documentDetails/DocumentSheet.js +87 -0
- package/src/react/components/integrations/IntegrationHero/index.js +1 -1
- package/src/react/components/integrations/IntegrationHero/styles.js +2 -2
- package/src/react/components/integrations/IntegrationTabs/index.js +1 -1
- package/src/react/components/integrations/IntegrationTabs/styles.js +1 -1
- package/src/react/hooks/useLinkedOrderSummary.js +41 -0
- package/src/react/pages/Connections.styles.js +72 -72
- package/src/react/pages/Devices/detail/DeviceDetailHeader.js +1 -1
- package/src/react/pages/Devices/detail/DeviceDetailMovementSections.js +1 -1
- package/src/react/pages/Devices/detail/useDeviceDetailStateA.js +2 -2
- package/src/react/pages/Devices/detail/useDeviceDetailStateB.js +2 -2
- package/src/react/pages/Devices/deviceTypes/DeviceGroupCard.js +1 -1
- package/src/react/pages/Devices/deviceTypes/shared.js +2 -2
- package/src/react/pages/Devices.js +2 -2
- package/src/react/pages/Devices.styles.js +353 -353
- package/src/react/pages/Food99IntegrationPage/components/Food99CatalogTab.js +219 -219
- package/src/react/pages/Food99IntegrationPage/components/Food99OverviewTab.js +134 -134
- package/src/react/pages/Food99IntegrationPage/components/Food99PreviewModal.js +173 -173
- package/src/react/pages/Food99IntegrationPage/components/Food99QuickWalletModal.js +1 -1
- package/src/react/pages/Food99IntegrationPage/components/Food99SettingsTab.js +306 -306
- package/src/react/pages/Food99IntegrationPage/components/Food99StoreTab.js +417 -417
- package/src/react/pages/Food99IntegrationPage/index.js +1530 -1530
- package/src/react/pages/Food99IntegrationPage/styles.js +792 -792
- package/src/react/pages/IFoodIntegrationPage/components/IFoodOperationsTab.js +267 -267
- package/src/react/pages/IFoodIntegrationPage/components/IFoodOverviewTab.js +118 -118
- package/src/react/pages/IFoodIntegrationPage/components/IFoodPreviewModal.js +101 -101
- package/src/react/pages/IFoodIntegrationPage/components/IFoodStoreTab.js +150 -150
- package/src/react/pages/IFoodIntegrationPage/index.js +1298 -1298
- package/src/react/pages/Imports.js +1 -1
- package/src/react/pages/Imports.styles.js +223 -223
- package/src/react/pages/IntegrationConfigPage.js +2 -2
- package/src/react/pages/Integrations.js +2 -15
- package/src/react/pages/Integrations.styles.js +130 -130
- package/src/react/pages/LinkedInIntegrationPage.js +2 -2
- package/src/react/pages/ManagerOrderNotificationsPage.js +642 -642
- package/src/react/pages/MarketplaceIntegrationPage/components/MarketplaceProductCard.js +205 -205
- package/src/react/pages/MercadoLivreIntegrationPage.js +2 -2
- package/src/react/pages/PrinterDeviceDetailPage.js +1915 -1915
- package/src/react/pages/PrinterDeviceFormPage.js +2 -2
- package/src/react/pages/WhatsAppConnectionPage.styles.js +315 -279
- package/src/react/pages/WhatsAppProviderForm.js +1 -1
- package/src/react/pages/whatsAppConnectionHelpers.js +38 -10
- package/src/react/router/__tests__/publicRoutes.test.js +12 -0
- package/src/react/router/publicRoutes.js +3 -0
- package/src/react/utils/clientPortfolioParams.js +42 -0
- package/src/react/utils/commercialDocumentOrders.js +13 -20
- package/src/react/utils/documentFileContent.js +61 -0
- package/src/react/utils/fileUrl.js +1 -1
- package/src/react/utils/linkedOrderPayload.js +43 -0
- package/src/react/utils/orderProductsSummary.js +28 -0
- package/src/react/utils/peopleDisplay.js +8 -13
- package/src/store/connections/customActions.js +16 -14
- package/src/store/connections/index.js +109 -105
- package/src/tests/react/utils/clientPortfolioParams.test.js +30 -0
- package/src/tests/react/utils/documentFileContent.test.js +29 -0
- package/src/tests/react/utils/linkedOrderPayload.test.js +46 -0
- package/src/tests/react/utils/orderProductsSummary.test.js +24 -0
|
@@ -15,8 +15,8 @@ import {Picker} from '@react-native-picker/picker';
|
|
|
15
15
|
import Icon from 'react-native-vector-icons/Feather';
|
|
16
16
|
import {useStore} from '@store';
|
|
17
17
|
import StateStore from '@controleonline/ui-common/src/react/components/StateStore';
|
|
18
|
-
import {resolveThemePalette, withOpacity} from '@controleonline
|
|
19
|
-
import {colors} from '@controleonline
|
|
18
|
+
import {resolveThemePalette, withOpacity} from '@controleonline/ui-layout/src/styles/branding';
|
|
19
|
+
import {colors} from '@controleonline/ui-layout/src/styles/colors';
|
|
20
20
|
import {getNetworkDeviceProfile} from '@controleonline/ui-common/src/react/utils/networkDeviceProfiles';
|
|
21
21
|
import {
|
|
22
22
|
buildNetworkCameraConfigs,
|
|
@@ -1,284 +1,320 @@
|
|
|
1
1
|
import { StyleSheet } from 'react-native';
|
|
2
2
|
|
|
3
|
-
const styles = StyleSheet.create({
|
|
4
|
-
container: {
|
|
5
|
-
flex: 1,
|
|
6
|
-
backgroundColor: '#F8FAFC',
|
|
7
|
-
},
|
|
8
|
-
scroll: {
|
|
9
|
-
paddingHorizontal: 16,
|
|
10
|
-
paddingTop: 16,
|
|
11
|
-
paddingBottom: 32,
|
|
12
|
-
},
|
|
13
|
-
centerState: {
|
|
14
|
-
flex: 1,
|
|
15
|
-
justifyContent: 'center',
|
|
16
|
-
alignItems: 'center',
|
|
17
|
-
paddingHorizontal: 28,
|
|
18
|
-
},
|
|
19
|
-
centerStateTitle: {
|
|
20
|
-
marginTop: 16,
|
|
21
|
-
fontSize: 18,
|
|
22
|
-
fontWeight: '700',
|
|
23
|
-
color: '#1E293B',
|
|
24
|
-
textAlign: 'center',
|
|
25
|
-
},
|
|
26
|
-
centerStateText: {
|
|
27
|
-
marginTop: 8,
|
|
28
|
-
fontSize: 14,
|
|
29
|
-
lineHeight: 21,
|
|
30
|
-
color: '#64748B',
|
|
31
|
-
textAlign: 'center',
|
|
32
|
-
},
|
|
33
|
-
heroCard: {
|
|
34
|
-
borderRadius: 28,
|
|
35
|
-
paddingHorizontal: 22,
|
|
36
|
-
paddingVertical: 24,
|
|
37
|
-
marginBottom: 18,
|
|
38
|
-
flexDirection: 'row',
|
|
39
|
-
alignItems: 'flex-start',
|
|
40
|
-
justifyContent: 'space-between',
|
|
41
|
-
},
|
|
42
|
-
heroCopy: {
|
|
43
|
-
flex: 1,
|
|
44
|
-
paddingRight: 16,
|
|
45
|
-
},
|
|
46
|
-
heroEyebrow: {
|
|
47
|
-
fontSize: 13,
|
|
48
|
-
fontWeight: '800',
|
|
49
|
-
letterSpacing: 1.3,
|
|
50
|
-
color: 'rgba(255,255,255,0.82)',
|
|
51
|
-
marginBottom: 10,
|
|
52
|
-
},
|
|
53
|
-
heroTitle: {
|
|
54
|
-
fontSize: 22,
|
|
55
|
-
fontWeight: '800',
|
|
56
|
-
color: '#FFFFFF',
|
|
57
|
-
marginBottom: 8,
|
|
58
|
-
},
|
|
59
|
-
heroText: {
|
|
60
|
-
fontSize: 14,
|
|
61
|
-
lineHeight: 21,
|
|
62
|
-
color: 'rgba(255,255,255,0.88)',
|
|
63
|
-
},
|
|
64
|
-
heroBadge: {
|
|
65
|
-
width: 54,
|
|
66
|
-
height: 54,
|
|
67
|
-
borderRadius: 18,
|
|
68
|
-
backgroundColor: '#FFFFFF',
|
|
69
|
-
alignItems: 'center',
|
|
70
|
-
justifyContent: 'center',
|
|
71
|
-
},
|
|
72
|
-
formCard: {
|
|
73
|
-
borderRadius: 28,
|
|
74
|
-
backgroundColor: '#FFFFFF',
|
|
75
|
-
padding: 18,
|
|
76
|
-
marginBottom: 16,
|
|
77
|
-
},
|
|
78
|
-
formHeader: {
|
|
79
|
-
flexDirection: 'row',
|
|
80
|
-
justifyContent: 'space-between',
|
|
81
|
-
alignItems: 'flex-start',
|
|
82
|
-
gap: 12,
|
|
83
|
-
marginBottom: 18,
|
|
84
|
-
},
|
|
85
|
-
cardTitle: {
|
|
86
|
-
fontSize: 20,
|
|
87
|
-
fontWeight: '800',
|
|
88
|
-
color: '#0F172A',
|
|
89
|
-
marginBottom: 6,
|
|
90
|
-
},
|
|
91
|
-
cardSubtitle: {
|
|
92
|
-
fontSize: 14,
|
|
93
|
-
lineHeight: 21,
|
|
94
|
-
color: '#64748B',
|
|
95
|
-
},
|
|
96
|
-
statusBadge: {
|
|
97
|
-
borderRadius: 999,
|
|
98
|
-
paddingHorizontal: 12,
|
|
99
|
-
paddingVertical: 8,
|
|
100
|
-
},
|
|
101
|
-
statusBadgeText: {
|
|
102
|
-
fontSize: 13,
|
|
103
|
-
fontWeight: '700',
|
|
104
|
-
color: '#2563EB',
|
|
105
|
-
},
|
|
106
|
-
formRow: {
|
|
107
|
-
flexDirection: 'row',
|
|
108
|
-
gap: 12,
|
|
109
|
-
marginBottom: 16,
|
|
110
|
-
},
|
|
111
|
-
inputGroupSmall: {
|
|
112
|
-
width: 88,
|
|
113
|
-
},
|
|
114
|
-
inputGroupLarge: {
|
|
115
|
-
flex: 1,
|
|
116
|
-
},
|
|
117
|
-
inputLabel: {
|
|
118
|
-
fontSize: 12,
|
|
119
|
-
fontWeight: '700',
|
|
120
|
-
color: '#64748B',
|
|
121
|
-
marginBottom: 8,
|
|
122
|
-
},
|
|
123
|
-
input: {
|
|
124
|
-
height: 50,
|
|
125
|
-
borderRadius: 16,
|
|
126
|
-
borderWidth: 1,
|
|
127
|
-
borderColor: '#E2E8F0',
|
|
128
|
-
backgroundColor: '#F8FAFC',
|
|
129
|
-
paddingHorizontal: 14,
|
|
130
|
-
fontSize: 16,
|
|
131
|
-
fontWeight: '600',
|
|
132
|
-
color: '#0F172A',
|
|
133
|
-
},
|
|
134
|
-
primaryButton: {
|
|
135
|
-
height: 52,
|
|
136
|
-
borderRadius: 18,
|
|
137
|
-
alignItems: 'center',
|
|
138
|
-
justifyContent: 'center',
|
|
139
|
-
flexDirection: 'row',
|
|
140
|
-
gap: 10,
|
|
141
|
-
},
|
|
142
|
-
primaryButtonDisabled: {
|
|
143
|
-
opacity: 0.75,
|
|
144
|
-
},
|
|
145
|
-
primaryButtonText: {
|
|
146
|
-
fontSize: 15,
|
|
147
|
-
fontWeight: '800',
|
|
148
|
-
color: '#FFFFFF',
|
|
149
|
-
},
|
|
150
|
-
helperText: {
|
|
151
|
-
marginTop: 12,
|
|
152
|
-
fontSize: 13,
|
|
153
|
-
color: '#64748B',
|
|
154
|
-
},
|
|
155
|
-
qrCard: {
|
|
156
|
-
borderRadius: 28,
|
|
157
|
-
backgroundColor: '#FFFFFF',
|
|
158
|
-
padding: 18,
|
|
159
|
-
marginBottom: 16,
|
|
160
|
-
},
|
|
161
|
-
qrHeader: {
|
|
162
|
-
marginBottom: 18,
|
|
163
|
-
},
|
|
164
|
-
qrContent: {
|
|
165
|
-
alignItems: 'center',
|
|
166
|
-
justifyContent: 'center',
|
|
167
|
-
},
|
|
168
|
-
qrWrap: {
|
|
169
|
-
padding: 18,
|
|
170
|
-
borderRadius: 24,
|
|
171
|
-
backgroundColor: '#FFFFFF',
|
|
172
|
-
borderWidth: 1,
|
|
173
|
-
borderColor: '#E2E8F0',
|
|
174
|
-
},
|
|
175
|
-
qrCaption: {
|
|
176
|
-
marginTop: 16,
|
|
177
|
-
fontSize: 13,
|
|
178
|
-
lineHeight: 20,
|
|
179
|
-
color: '#64748B',
|
|
180
|
-
textAlign: 'center',
|
|
181
|
-
},
|
|
182
|
-
listHeader: {
|
|
183
|
-
flexDirection: 'row',
|
|
184
|
-
alignItems: 'flex-start',
|
|
185
|
-
justifyContent: 'space-between',
|
|
186
|
-
gap: 12,
|
|
187
|
-
marginBottom: 14,
|
|
188
|
-
},
|
|
189
|
-
countBadge: {
|
|
190
|
-
borderRadius: 999,
|
|
191
|
-
backgroundColor: '#EEF2FF',
|
|
192
|
-
paddingHorizontal: 12,
|
|
193
|
-
paddingVertical: 8,
|
|
194
|
-
},
|
|
195
|
-
countBadgeText: {
|
|
196
|
-
fontSize: 13,
|
|
197
|
-
fontWeight: '700',
|
|
198
|
-
color: '#4F46E5',
|
|
199
|
-
},
|
|
200
|
-
listWrap: {
|
|
201
|
-
gap: 14,
|
|
202
|
-
},
|
|
203
|
-
connectionCard: {
|
|
204
|
-
borderRadius: 24,
|
|
205
|
-
backgroundColor: '#FFFFFF',
|
|
206
|
-
padding: 16,
|
|
207
|
-
},
|
|
208
|
-
connectionTop: {
|
|
209
|
-
flexDirection: 'row',
|
|
210
|
-
alignItems: 'center',
|
|
211
|
-
justifyContent: 'space-between',
|
|
212
|
-
marginBottom: 14,
|
|
213
|
-
},
|
|
214
|
-
connectionIconWrap: {
|
|
215
|
-
width: 48,
|
|
216
|
-
height: 48,
|
|
217
|
-
borderRadius: 16,
|
|
218
|
-
alignItems: 'center',
|
|
219
|
-
justifyContent: 'center',
|
|
220
|
-
},
|
|
221
|
-
connectionStatusBadge: {
|
|
222
|
-
borderRadius: 999,
|
|
223
|
-
paddingHorizontal: 12,
|
|
224
|
-
paddingVertical: 8,
|
|
225
|
-
},
|
|
226
|
-
connectionStatusText: {
|
|
227
|
-
fontSize: 13,
|
|
228
|
-
fontWeight: '700',
|
|
229
|
-
color: '#2563EB',
|
|
230
|
-
},
|
|
231
|
-
connectionName: {
|
|
232
|
-
fontSize: 18,
|
|
233
|
-
fontWeight: '800',
|
|
234
|
-
color: '#0F172A',
|
|
235
|
-
marginBottom: 14,
|
|
236
|
-
},
|
|
237
|
-
connectionMetaRow: {
|
|
238
|
-
flexDirection: 'row',
|
|
239
|
-
gap: 12,
|
|
240
|
-
marginBottom: 12,
|
|
241
|
-
},
|
|
242
|
-
connectionMetaItem: {
|
|
243
|
-
flex: 1,
|
|
244
|
-
borderRadius: 18,
|
|
245
|
-
backgroundColor: '#F8FAFC',
|
|
246
|
-
paddingHorizontal: 14,
|
|
247
|
-
paddingVertical: 14,
|
|
248
|
-
},
|
|
249
|
-
connectionMetaLabel: {
|
|
250
|
-
fontSize: 12,
|
|
251
|
-
fontWeight: '700',
|
|
252
|
-
color: '#64748B',
|
|
253
|
-
marginBottom: 6,
|
|
254
|
-
},
|
|
255
|
-
connectionMetaValue: {
|
|
256
|
-
fontSize: 15,
|
|
257
|
-
fontWeight: '700',
|
|
258
|
-
color: '#0F172A',
|
|
259
|
-
},
|
|
260
|
-
emptyStateBox: {
|
|
261
|
-
borderRadius: 22,
|
|
262
|
-
backgroundColor: '#F8FAFC',
|
|
263
|
-
alignItems: 'center',
|
|
264
|
-
justifyContent: 'center',
|
|
265
|
-
paddingHorizontal: 18,
|
|
266
|
-
paddingVertical: 24,
|
|
267
|
-
},
|
|
268
|
-
emptyStateTitle: {
|
|
269
|
-
marginTop: 12,
|
|
270
|
-
fontSize: 16,
|
|
271
|
-
fontWeight: '800',
|
|
272
|
-
color: '#1E293B',
|
|
273
|
-
textAlign: 'center',
|
|
274
|
-
},
|
|
275
|
-
emptyStateText: {
|
|
276
|
-
marginTop: 8,
|
|
277
|
-
fontSize: 14,
|
|
278
|
-
lineHeight: 21,
|
|
279
|
-
color: '#64748B',
|
|
280
|
-
textAlign: 'center',
|
|
281
|
-
},
|
|
3
|
+
const styles = StyleSheet.create({
|
|
4
|
+
container: {
|
|
5
|
+
flex: 1,
|
|
6
|
+
backgroundColor: '#F8FAFC',
|
|
7
|
+
},
|
|
8
|
+
scroll: {
|
|
9
|
+
paddingHorizontal: 16,
|
|
10
|
+
paddingTop: 16,
|
|
11
|
+
paddingBottom: 32,
|
|
12
|
+
},
|
|
13
|
+
centerState: {
|
|
14
|
+
flex: 1,
|
|
15
|
+
justifyContent: 'center',
|
|
16
|
+
alignItems: 'center',
|
|
17
|
+
paddingHorizontal: 28,
|
|
18
|
+
},
|
|
19
|
+
centerStateTitle: {
|
|
20
|
+
marginTop: 16,
|
|
21
|
+
fontSize: 18,
|
|
22
|
+
fontWeight: '700',
|
|
23
|
+
color: '#1E293B',
|
|
24
|
+
textAlign: 'center',
|
|
25
|
+
},
|
|
26
|
+
centerStateText: {
|
|
27
|
+
marginTop: 8,
|
|
28
|
+
fontSize: 14,
|
|
29
|
+
lineHeight: 21,
|
|
30
|
+
color: '#64748B',
|
|
31
|
+
textAlign: 'center',
|
|
32
|
+
},
|
|
33
|
+
heroCard: {
|
|
34
|
+
borderRadius: 28,
|
|
35
|
+
paddingHorizontal: 22,
|
|
36
|
+
paddingVertical: 24,
|
|
37
|
+
marginBottom: 18,
|
|
38
|
+
flexDirection: 'row',
|
|
39
|
+
alignItems: 'flex-start',
|
|
40
|
+
justifyContent: 'space-between',
|
|
41
|
+
},
|
|
42
|
+
heroCopy: {
|
|
43
|
+
flex: 1,
|
|
44
|
+
paddingRight: 16,
|
|
45
|
+
},
|
|
46
|
+
heroEyebrow: {
|
|
47
|
+
fontSize: 13,
|
|
48
|
+
fontWeight: '800',
|
|
49
|
+
letterSpacing: 1.3,
|
|
50
|
+
color: 'rgba(255,255,255,0.82)',
|
|
51
|
+
marginBottom: 10,
|
|
52
|
+
},
|
|
53
|
+
heroTitle: {
|
|
54
|
+
fontSize: 22,
|
|
55
|
+
fontWeight: '800',
|
|
56
|
+
color: '#FFFFFF',
|
|
57
|
+
marginBottom: 8,
|
|
58
|
+
},
|
|
59
|
+
heroText: {
|
|
60
|
+
fontSize: 14,
|
|
61
|
+
lineHeight: 21,
|
|
62
|
+
color: 'rgba(255,255,255,0.88)',
|
|
63
|
+
},
|
|
64
|
+
heroBadge: {
|
|
65
|
+
width: 54,
|
|
66
|
+
height: 54,
|
|
67
|
+
borderRadius: 18,
|
|
68
|
+
backgroundColor: '#FFFFFF',
|
|
69
|
+
alignItems: 'center',
|
|
70
|
+
justifyContent: 'center',
|
|
71
|
+
},
|
|
72
|
+
formCard: {
|
|
73
|
+
borderRadius: 28,
|
|
74
|
+
backgroundColor: '#FFFFFF',
|
|
75
|
+
padding: 18,
|
|
76
|
+
marginBottom: 16,
|
|
77
|
+
},
|
|
78
|
+
formHeader: {
|
|
79
|
+
flexDirection: 'row',
|
|
80
|
+
justifyContent: 'space-between',
|
|
81
|
+
alignItems: 'flex-start',
|
|
82
|
+
gap: 12,
|
|
83
|
+
marginBottom: 18,
|
|
84
|
+
},
|
|
85
|
+
cardTitle: {
|
|
86
|
+
fontSize: 20,
|
|
87
|
+
fontWeight: '800',
|
|
88
|
+
color: '#0F172A',
|
|
89
|
+
marginBottom: 6,
|
|
90
|
+
},
|
|
91
|
+
cardSubtitle: {
|
|
92
|
+
fontSize: 14,
|
|
93
|
+
lineHeight: 21,
|
|
94
|
+
color: '#64748B',
|
|
95
|
+
},
|
|
96
|
+
statusBadge: {
|
|
97
|
+
borderRadius: 999,
|
|
98
|
+
paddingHorizontal: 12,
|
|
99
|
+
paddingVertical: 8,
|
|
100
|
+
},
|
|
101
|
+
statusBadgeText: {
|
|
102
|
+
fontSize: 13,
|
|
103
|
+
fontWeight: '700',
|
|
104
|
+
color: '#2563EB',
|
|
105
|
+
},
|
|
106
|
+
formRow: {
|
|
107
|
+
flexDirection: 'row',
|
|
108
|
+
gap: 12,
|
|
109
|
+
marginBottom: 16,
|
|
110
|
+
},
|
|
111
|
+
inputGroupSmall: {
|
|
112
|
+
width: 88,
|
|
113
|
+
},
|
|
114
|
+
inputGroupLarge: {
|
|
115
|
+
flex: 1,
|
|
116
|
+
},
|
|
117
|
+
inputLabel: {
|
|
118
|
+
fontSize: 12,
|
|
119
|
+
fontWeight: '700',
|
|
120
|
+
color: '#64748B',
|
|
121
|
+
marginBottom: 8,
|
|
122
|
+
},
|
|
123
|
+
input: {
|
|
124
|
+
height: 50,
|
|
125
|
+
borderRadius: 16,
|
|
126
|
+
borderWidth: 1,
|
|
127
|
+
borderColor: '#E2E8F0',
|
|
128
|
+
backgroundColor: '#F8FAFC',
|
|
129
|
+
paddingHorizontal: 14,
|
|
130
|
+
fontSize: 16,
|
|
131
|
+
fontWeight: '600',
|
|
132
|
+
color: '#0F172A',
|
|
133
|
+
},
|
|
134
|
+
primaryButton: {
|
|
135
|
+
height: 52,
|
|
136
|
+
borderRadius: 18,
|
|
137
|
+
alignItems: 'center',
|
|
138
|
+
justifyContent: 'center',
|
|
139
|
+
flexDirection: 'row',
|
|
140
|
+
gap: 10,
|
|
141
|
+
},
|
|
142
|
+
primaryButtonDisabled: {
|
|
143
|
+
opacity: 0.75,
|
|
144
|
+
},
|
|
145
|
+
primaryButtonText: {
|
|
146
|
+
fontSize: 15,
|
|
147
|
+
fontWeight: '800',
|
|
148
|
+
color: '#FFFFFF',
|
|
149
|
+
},
|
|
150
|
+
helperText: {
|
|
151
|
+
marginTop: 12,
|
|
152
|
+
fontSize: 13,
|
|
153
|
+
color: '#64748B',
|
|
154
|
+
},
|
|
155
|
+
qrCard: {
|
|
156
|
+
borderRadius: 28,
|
|
157
|
+
backgroundColor: '#FFFFFF',
|
|
158
|
+
padding: 18,
|
|
159
|
+
marginBottom: 16,
|
|
160
|
+
},
|
|
161
|
+
qrHeader: {
|
|
162
|
+
marginBottom: 18,
|
|
163
|
+
},
|
|
164
|
+
qrContent: {
|
|
165
|
+
alignItems: 'center',
|
|
166
|
+
justifyContent: 'center',
|
|
167
|
+
},
|
|
168
|
+
qrWrap: {
|
|
169
|
+
padding: 18,
|
|
170
|
+
borderRadius: 24,
|
|
171
|
+
backgroundColor: '#FFFFFF',
|
|
172
|
+
borderWidth: 1,
|
|
173
|
+
borderColor: '#E2E8F0',
|
|
174
|
+
},
|
|
175
|
+
qrCaption: {
|
|
176
|
+
marginTop: 16,
|
|
177
|
+
fontSize: 13,
|
|
178
|
+
lineHeight: 20,
|
|
179
|
+
color: '#64748B',
|
|
180
|
+
textAlign: 'center',
|
|
181
|
+
},
|
|
182
|
+
listHeader: {
|
|
183
|
+
flexDirection: 'row',
|
|
184
|
+
alignItems: 'flex-start',
|
|
185
|
+
justifyContent: 'space-between',
|
|
186
|
+
gap: 12,
|
|
187
|
+
marginBottom: 14,
|
|
188
|
+
},
|
|
189
|
+
countBadge: {
|
|
190
|
+
borderRadius: 999,
|
|
191
|
+
backgroundColor: '#EEF2FF',
|
|
192
|
+
paddingHorizontal: 12,
|
|
193
|
+
paddingVertical: 8,
|
|
194
|
+
},
|
|
195
|
+
countBadgeText: {
|
|
196
|
+
fontSize: 13,
|
|
197
|
+
fontWeight: '700',
|
|
198
|
+
color: '#4F46E5',
|
|
199
|
+
},
|
|
200
|
+
listWrap: {
|
|
201
|
+
gap: 14,
|
|
202
|
+
},
|
|
203
|
+
connectionCard: {
|
|
204
|
+
borderRadius: 24,
|
|
205
|
+
backgroundColor: '#FFFFFF',
|
|
206
|
+
padding: 16,
|
|
207
|
+
},
|
|
208
|
+
connectionTop: {
|
|
209
|
+
flexDirection: 'row',
|
|
210
|
+
alignItems: 'center',
|
|
211
|
+
justifyContent: 'space-between',
|
|
212
|
+
marginBottom: 14,
|
|
213
|
+
},
|
|
214
|
+
connectionIconWrap: {
|
|
215
|
+
width: 48,
|
|
216
|
+
height: 48,
|
|
217
|
+
borderRadius: 16,
|
|
218
|
+
alignItems: 'center',
|
|
219
|
+
justifyContent: 'center',
|
|
220
|
+
},
|
|
221
|
+
connectionStatusBadge: {
|
|
222
|
+
borderRadius: 999,
|
|
223
|
+
paddingHorizontal: 12,
|
|
224
|
+
paddingVertical: 8,
|
|
225
|
+
},
|
|
226
|
+
connectionStatusText: {
|
|
227
|
+
fontSize: 13,
|
|
228
|
+
fontWeight: '700',
|
|
229
|
+
color: '#2563EB',
|
|
230
|
+
},
|
|
231
|
+
connectionName: {
|
|
232
|
+
fontSize: 18,
|
|
233
|
+
fontWeight: '800',
|
|
234
|
+
color: '#0F172A',
|
|
235
|
+
marginBottom: 14,
|
|
236
|
+
},
|
|
237
|
+
connectionMetaRow: {
|
|
238
|
+
flexDirection: 'row',
|
|
239
|
+
gap: 12,
|
|
240
|
+
marginBottom: 12,
|
|
241
|
+
},
|
|
242
|
+
connectionMetaItem: {
|
|
243
|
+
flex: 1,
|
|
244
|
+
borderRadius: 18,
|
|
245
|
+
backgroundColor: '#F8FAFC',
|
|
246
|
+
paddingHorizontal: 14,
|
|
247
|
+
paddingVertical: 14,
|
|
248
|
+
},
|
|
249
|
+
connectionMetaLabel: {
|
|
250
|
+
fontSize: 12,
|
|
251
|
+
fontWeight: '700',
|
|
252
|
+
color: '#64748B',
|
|
253
|
+
marginBottom: 6,
|
|
254
|
+
},
|
|
255
|
+
connectionMetaValue: {
|
|
256
|
+
fontSize: 15,
|
|
257
|
+
fontWeight: '700',
|
|
258
|
+
color: '#0F172A',
|
|
259
|
+
},
|
|
260
|
+
emptyStateBox: {
|
|
261
|
+
borderRadius: 22,
|
|
262
|
+
backgroundColor: '#F8FAFC',
|
|
263
|
+
alignItems: 'center',
|
|
264
|
+
justifyContent: 'center',
|
|
265
|
+
paddingHorizontal: 18,
|
|
266
|
+
paddingVertical: 24,
|
|
267
|
+
},
|
|
268
|
+
emptyStateTitle: {
|
|
269
|
+
marginTop: 12,
|
|
270
|
+
fontSize: 16,
|
|
271
|
+
fontWeight: '800',
|
|
272
|
+
color: '#1E293B',
|
|
273
|
+
textAlign: 'center',
|
|
274
|
+
},
|
|
275
|
+
emptyStateText: {
|
|
276
|
+
marginTop: 8,
|
|
277
|
+
fontSize: 14,
|
|
278
|
+
lineHeight: 21,
|
|
279
|
+
color: '#64748B',
|
|
280
|
+
textAlign: 'center',
|
|
281
|
+
},
|
|
282
|
+
|
|
283
|
+
feedbackBox: {
|
|
284
|
+
borderRadius: 12,
|
|
285
|
+
paddingHorizontal: 12,
|
|
286
|
+
paddingVertical: 10,
|
|
287
|
+
marginBottom: 12,
|
|
288
|
+
},
|
|
289
|
+
feedbackText: {
|
|
290
|
+
fontSize: 13,
|
|
291
|
+
lineHeight: 18,
|
|
292
|
+
color: '#0F172A',
|
|
293
|
+
},
|
|
294
|
+
selectedHint: {
|
|
295
|
+
fontSize: 13,
|
|
296
|
+
fontWeight: '600',
|
|
297
|
+
color: '#64748B',
|
|
298
|
+
marginBottom: 8,
|
|
299
|
+
},
|
|
300
|
+
statusLine: {
|
|
301
|
+
marginTop: 10,
|
|
302
|
+
fontSize: 13,
|
|
303
|
+
color: '#64748B',
|
|
304
|
+
},
|
|
305
|
+
previewName: {
|
|
306
|
+
fontSize: 15,
|
|
307
|
+
fontWeight: '700',
|
|
308
|
+
color: '#0F172A',
|
|
309
|
+
},
|
|
310
|
+
previewMeta: {
|
|
311
|
+
marginTop: 4,
|
|
312
|
+
fontSize: 12,
|
|
313
|
+
color: '#64748B',
|
|
314
|
+
},
|
|
282
315
|
});
|
|
283
316
|
|
|
317
|
+
export const createStyles = (_palette) => styles;
|
|
318
|
+
|
|
284
319
|
export default styles;
|
|
320
|
+
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { ActivityIndicator, Text, TextInput, TouchableOpacity, View } from 'react-native';
|
|
3
3
|
import Icon from 'react-native-vector-icons/Feather';
|
|
4
|
-
import { withOpacity } from '@controleonline
|
|
4
|
+
import { withOpacity } from '@controleonline/ui-layout/src/styles/branding';
|
|
5
5
|
import { PROVIDER_OFFICIAL, PROVIDER_UNOFFICIAL } from './whatsAppConnectionHelpers';
|
|
6
6
|
|
|
7
7
|
export default function WhatsAppProviderForm({
|