@controleonline/ui-common 1.2.71 → 1.2.76
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/.github/actions/workers/manager/action.yml +147 -0
- package/.github/actions/workers/qa/action.yml +44 -0
- package/.github/actions/workers/security/action.yml +44 -0
- package/.github/actions/workers/technical-documenter/action.yml +51 -0
- package/.github/workflows/manager-worker.yml +168 -0
- package/.github/workflows/publish-npm.yml +45 -0
- package/.gitmodules +3 -0
- package/AGENTS.md +6 -0
- package/README.md +14 -0
- package/package.json +3 -2
- package/src/api/fetch.js +1 -1
- package/src/api/index.js +92 -22
- package/src/react/components/AddImportModal.js +94 -110
- package/src/react/components/BottomNavigationBar.config.js +211 -231
- package/src/react/components/CategoryForm.js +52 -35
- package/src/react/components/DefaultProvider.native.js +131 -95
- package/src/react/components/DefaultProvider.web.js +148 -74
- package/src/react/components/NetworkPrinterPreviewModal.js +249 -0
- package/src/react/components/NetworkPrinterPreviewModal.styles.js +159 -0
- package/src/react/components/RuntimeInfoFooter.js +164 -104
- package/src/react/components/RuntimeInfoFooter.styles.js +3 -0
- package/src/react/components/UnifiedPaymentBar.js +7 -4
- package/src/react/components/UserAvatar.js +160 -0
- package/src/react/components/integrations/IntegrationHero/index.js +48 -0
- package/src/react/components/integrations/IntegrationHero/styles.js +57 -0
- package/src/react/components/integrations/IntegrationTabs/index.js +89 -0
- package/src/react/components/integrations/IntegrationTabs/styles.js +44 -0
- package/src/react/config/deviceConfigBootstrap.js +5 -3
- package/src/react/pages/Connections.js +229 -0
- package/src/react/pages/Connections.styles.js +222 -0
- package/src/react/pages/DeviceDetailPage.js +2865 -0
- package/src/react/pages/DeviceDetailPage.styles.js +308 -0
- package/src/react/pages/Devices/currentDevice.js +194 -0
- package/src/react/pages/Devices/deviceTypes/DeviceGroupCard.js +257 -0
- package/src/react/pages/Devices/deviceTypes/all.js +23 -0
- package/src/react/pages/Devices/deviceTypes/device.js +25 -0
- package/src/react/pages/Devices/deviceTypes/deviceListHelpers.js +178 -0
- package/src/react/pages/Devices/deviceTypes/display.js +26 -0
- package/src/react/pages/Devices/deviceTypes/index.js +145 -0
- package/src/react/pages/Devices/deviceTypes/ipCamera.js +35 -0
- package/src/react/pages/Devices/deviceTypes/pdv.js +88 -0
- package/src/react/pages/Devices/deviceTypes/printer.js +37 -0
- package/src/react/pages/Devices/deviceTypes/shared.js +453 -0
- package/src/react/pages/Devices/deviceTypes/useDeviceNetworkConnectivity.js +145 -0
- package/src/react/pages/Devices.js +183 -0
- package/src/react/pages/Devices.styles.js +353 -0
- package/src/react/pages/Food99IntegrationPage/components/Food99CatalogTab.js +219 -0
- package/src/react/pages/Food99IntegrationPage/components/Food99OverviewTab.js +134 -0
- package/src/react/pages/Food99IntegrationPage/components/Food99PreviewModal.js +173 -0
- package/src/react/pages/Food99IntegrationPage/components/Food99ProductCard.js +1 -0
- package/src/react/pages/Food99IntegrationPage/components/Food99QuickWalletModal.js +181 -0
- package/src/react/pages/Food99IntegrationPage/components/Food99SettingsTab.js +306 -0
- package/src/react/pages/Food99IntegrationPage/components/Food99StoreTab.js +417 -0
- package/src/react/pages/Food99IntegrationPage/index.js +1530 -0
- package/src/react/pages/Food99IntegrationPage/styles.js +792 -0
- package/src/react/pages/Food99IntegrationPage/utils.js +155 -0
- package/src/react/pages/Food99IntegrationPage.js +1 -0
- package/src/react/pages/Food99IntegrationPage.styles.js +1 -0
- package/src/react/pages/GenericLogPage.js +42 -167
- package/src/react/pages/IFoodIntegrationPage/components/IFoodCatalogTab.js +8 -0
- package/src/react/pages/IFoodIntegrationPage/components/IFoodOperationsTab.js +420 -0
- package/src/react/pages/IFoodIntegrationPage/components/IFoodOverviewTab.js +118 -0
- package/src/react/pages/IFoodIntegrationPage/components/IFoodPreviewModal.js +103 -0
- package/src/react/pages/IFoodIntegrationPage/components/IFoodProductCard.js +1 -0
- package/src/react/pages/IFoodIntegrationPage/components/IFoodStoreTab.js +150 -0
- package/src/react/pages/IFoodIntegrationPage/index.js +1298 -0
- package/src/react/pages/IFoodIntegrationPage/styles.js +764 -0
- package/src/react/pages/IFoodIntegrationPage/utils.js +91 -0
- package/src/react/pages/IFoodIntegrationPage.js +1 -0
- package/src/react/pages/IFoodIntegrationPage.styles.js +1 -0
- package/src/react/pages/Imports.js +214 -166
- package/src/react/pages/IntegrationConfigPage.js +744 -0
- package/src/react/pages/IntegrationConfigPage.styles.js +269 -0
- package/src/react/pages/Integrations.js +299 -0
- package/src/react/pages/Integrations.styles.js +130 -0
- package/src/react/pages/ManagerOrderNotificationsPage.js +642 -0
- package/src/react/pages/MarketplaceIntegrationPage/components/MarketplaceProductCard.js +205 -0
- package/src/react/pages/MarketplaceIntegrationPage/components/RemoteMarketplaceMenuTab.js +335 -0
- package/src/react/pages/MarketplaceIntegrationPage/index.js +60 -0
- package/src/react/pages/MarketplaceIntegrationPage/utils.js +137 -0
- package/src/react/pages/MercadoLivreIntegrationPage.js +538 -0
- package/src/react/pages/PrinterDeviceDetailPage.js +1916 -0
- package/src/react/pages/PrinterDeviceDetailPage.styles.js +223 -0
- package/src/react/pages/PrinterDeviceFormPage.js +521 -0
- package/src/react/pages/PrinterDeviceFormPage.styles.js +159 -0
- package/src/react/pages/WhatsAppConnectionPage.js +459 -0
- package/src/react/pages/WhatsAppConnectionPage.styles.js +284 -0
- package/src/react/pages/integrationsCatalog.js +399 -0
- package/src/react/services/Cielo/Cielo.js +193 -193
- package/src/react/utils/categoryContexts.js +46 -0
- package/src/react/utils/entityDisplay.js +222 -217
- package/src/react/utils/fileUrl.js +39 -20
- package/src/react/utils/integrationPage.js +16 -0
- package/src/react/utils/runtimeFooter.js +40 -22
- package/src/react/utils/runtimeLanguage.js +50 -9
- package/src/react/utils/runtimeMenu.js +191 -131
- package/src/react/utils/runtimeZoom.js +43 -0
- package/src/react/utils/shopConfig.js +27 -15
- package/src/react/utils/shopFranchises.js +126 -1
- package/src/react/utils/storeColumns.js +23 -4
- package/src/react/utils/userAvatar.js +104 -0
- package/src/store/categories/index.js +48 -20
- package/src/store/device_config/index.js +62 -21
- package/src/store/entity_log/index.js +22 -1
- package/src/store/imports/customActions.js +51 -0
- package/src/store/imports/index.js +89 -88
- package/src/store/status/index.js +11 -11
- package/src/store/themes/index.js +22 -0
- package/src/store/timezones/index.js +3 -1
- package/src/tests/browser/manager/connections.spec.js +143 -0
- package/src/tests/browser/manager/devices-current.spec.js +343 -0
- package/src/tests/browser/manager/mercado-livre-integration.spec.js +268 -0
- package/src/tests/react/api/deviceHeaders.test.js +114 -0
- package/src/tests/react/components/AddImportModal.test.js +166 -0
- package/src/tests/react/components/BottomNavigationBar.config.test.js +20 -0
- package/src/tests/react/components/UserAvatar.test.js +52 -0
- package/src/tests/react/pages/DevicePickerStyles.test.js +47 -0
- package/src/tests/react/pages/Devices/deviceListHelpers.test.js +39 -0
- package/src/tests/react/pages/DevicesCurrentDevice.test.js +198 -0
- package/src/tests/react/pages/connectionsHelpers.test.js +34 -0
- package/src/tests/react/pages/mercadoLivreIntegrationPageContract.test.mjs +16 -0
- package/src/tests/react/services/Cielo.test.js +190 -190
- package/src/tests/react/store/categoriesOrdering.test.js +26 -0
- package/src/tests/react/utils/appDomain.test.js +62 -0
- package/src/tests/react/utils/entityDisplay.test.js +2 -2
- package/src/tests/react/utils/fileUrl.test.js +3 -3
- package/src/tests/react/utils/formatter.test.mjs +33 -0
- package/src/tests/react/utils/runtimeFooter.test.js +29 -4
- package/src/tests/react/utils/runtimeLanguage.test.js +79 -9
- package/src/tests/react/utils/runtimeMenu.test.js +198 -134
- package/src/tests/react/utils/runtimeZoom.test.js +38 -0
- package/src/tests/react/utils/shopConfig.test.js +10 -9
- package/src/tests/react/utils/shopFranchises.test.js +43 -0
- package/src/tests/react/utils/translate.discovery.test.mjs +170 -0
- package/src/tests/react/utils/translate.test.helpers.mjs +152 -0
- package/src/tests/react/utils/translate.test.mjs +141 -349
- package/src/tests/react/utils/userAvatar.test.js +63 -0
- package/src/utils/appDomain.js +15 -4
- package/src/utils/formatter.js +104 -16
- package/src/utils/integrationConfigs.js +80 -80
- package/src/utils/translate.js +222 -438
- package/src/utils/translateDiscovery.js +96 -0
- package/src/utils/translateNormalize.js +33 -0
- package/src/utils/translatePending.js +92 -0
- package/src/utils/translateStorage.js +142 -0
- package/.github/agents/developer.agent.md +0 -30
- package/.github/agents/devops.agent.md +0 -30
- package/.github/agents/qa.agent.md +0 -30
- package/.github/agents/security.agent.md +0 -30
- package/.github/workflows/npmjs.yml +0 -35
|
@@ -0,0 +1,222 @@
|
|
|
1
|
+
import { StyleSheet } from 'react-native';
|
|
2
|
+
import { colors } from '@controleonline/../../src/styles/colors';
|
|
3
|
+
import { withOpacity } from '@controleonline/../../src/styles/branding';
|
|
4
|
+
|
|
5
|
+
export const createStyles = (palette = colors) =>
|
|
6
|
+
StyleSheet.create({
|
|
7
|
+
container: {
|
|
8
|
+
flex: 1,
|
|
9
|
+
backgroundColor: palette.background,
|
|
10
|
+
},
|
|
11
|
+
scroll: {
|
|
12
|
+
paddingHorizontal: 16,
|
|
13
|
+
paddingTop: 16,
|
|
14
|
+
paddingBottom: 32,
|
|
15
|
+
},
|
|
16
|
+
centerState: {
|
|
17
|
+
flex: 1,
|
|
18
|
+
justifyContent: 'center',
|
|
19
|
+
alignItems: 'center',
|
|
20
|
+
paddingHorizontal: 28,
|
|
21
|
+
},
|
|
22
|
+
centerStateTitle: {
|
|
23
|
+
marginTop: 16,
|
|
24
|
+
fontSize: 18,
|
|
25
|
+
fontWeight: '700',
|
|
26
|
+
color: palette.text,
|
|
27
|
+
textAlign: 'center',
|
|
28
|
+
},
|
|
29
|
+
centerStateText: {
|
|
30
|
+
marginTop: 8,
|
|
31
|
+
fontSize: 14,
|
|
32
|
+
lineHeight: 21,
|
|
33
|
+
color: palette.textSecondary,
|
|
34
|
+
textAlign: 'center',
|
|
35
|
+
},
|
|
36
|
+
heroCard: {
|
|
37
|
+
borderRadius: 28,
|
|
38
|
+
paddingHorizontal: 22,
|
|
39
|
+
paddingVertical: 24,
|
|
40
|
+
marginBottom: 18,
|
|
41
|
+
flexDirection: 'row',
|
|
42
|
+
alignItems: 'flex-start',
|
|
43
|
+
justifyContent: 'space-between',
|
|
44
|
+
},
|
|
45
|
+
heroCopy: {
|
|
46
|
+
flex: 1,
|
|
47
|
+
paddingRight: 16,
|
|
48
|
+
},
|
|
49
|
+
heroEyebrow: {
|
|
50
|
+
fontSize: 13,
|
|
51
|
+
fontWeight: '800',
|
|
52
|
+
letterSpacing: 1.4,
|
|
53
|
+
color: withOpacity(palette.white, 0.82),
|
|
54
|
+
marginBottom: 10,
|
|
55
|
+
},
|
|
56
|
+
heroTitle: {
|
|
57
|
+
fontSize: 22,
|
|
58
|
+
fontWeight: '800',
|
|
59
|
+
color: palette.white,
|
|
60
|
+
marginBottom: 8,
|
|
61
|
+
},
|
|
62
|
+
heroText: {
|
|
63
|
+
fontSize: 14,
|
|
64
|
+
lineHeight: 21,
|
|
65
|
+
color: withOpacity(palette.white, 0.88),
|
|
66
|
+
},
|
|
67
|
+
heroBadge: {
|
|
68
|
+
width: 54,
|
|
69
|
+
height: 54,
|
|
70
|
+
borderRadius: 18,
|
|
71
|
+
backgroundColor: palette.white,
|
|
72
|
+
alignItems: 'center',
|
|
73
|
+
justifyContent: 'center',
|
|
74
|
+
},
|
|
75
|
+
companyRow: {
|
|
76
|
+
flexDirection: 'row',
|
|
77
|
+
alignItems: 'flex-start',
|
|
78
|
+
justifyContent: 'space-between',
|
|
79
|
+
marginBottom: 18,
|
|
80
|
+
gap: 12,
|
|
81
|
+
},
|
|
82
|
+
sectionTitle: {
|
|
83
|
+
fontSize: 13,
|
|
84
|
+
fontWeight: '700',
|
|
85
|
+
color: palette.textSecondary,
|
|
86
|
+
marginBottom: 4,
|
|
87
|
+
},
|
|
88
|
+
companyName: {
|
|
89
|
+
fontSize: 21,
|
|
90
|
+
fontWeight: '800',
|
|
91
|
+
color: palette.text,
|
|
92
|
+
},
|
|
93
|
+
companyBadge: {
|
|
94
|
+
borderRadius: 999,
|
|
95
|
+
paddingHorizontal: 12,
|
|
96
|
+
paddingVertical: 8,
|
|
97
|
+
backgroundColor: withOpacity(palette.info, 0.12),
|
|
98
|
+
},
|
|
99
|
+
companyBadgeText: {
|
|
100
|
+
fontSize: 13,
|
|
101
|
+
fontWeight: '700',
|
|
102
|
+
color: palette.info,
|
|
103
|
+
},
|
|
104
|
+
channelCard: {
|
|
105
|
+
borderRadius: 28,
|
|
106
|
+
backgroundColor: palette.white,
|
|
107
|
+
padding: 18,
|
|
108
|
+
},
|
|
109
|
+
channelTopRow: {
|
|
110
|
+
flexDirection: 'row',
|
|
111
|
+
alignItems: 'center',
|
|
112
|
+
justifyContent: 'space-between',
|
|
113
|
+
marginBottom: 16,
|
|
114
|
+
gap: 12,
|
|
115
|
+
},
|
|
116
|
+
channelIconWrap: {
|
|
117
|
+
width: 56,
|
|
118
|
+
height: 56,
|
|
119
|
+
borderRadius: 18,
|
|
120
|
+
alignItems: 'center',
|
|
121
|
+
justifyContent: 'center',
|
|
122
|
+
},
|
|
123
|
+
channelStatusPill: {
|
|
124
|
+
borderRadius: 999,
|
|
125
|
+
backgroundColor: palette.background,
|
|
126
|
+
paddingHorizontal: 12,
|
|
127
|
+
paddingVertical: 8,
|
|
128
|
+
},
|
|
129
|
+
channelStatusText: {
|
|
130
|
+
fontSize: 13,
|
|
131
|
+
fontWeight: '700',
|
|
132
|
+
color: palette.textSecondary,
|
|
133
|
+
},
|
|
134
|
+
channelTitle: {
|
|
135
|
+
fontSize: 28,
|
|
136
|
+
fontWeight: '800',
|
|
137
|
+
color: palette.text,
|
|
138
|
+
marginBottom: 8,
|
|
139
|
+
},
|
|
140
|
+
channelDescription: {
|
|
141
|
+
fontSize: 14,
|
|
142
|
+
lineHeight: 21,
|
|
143
|
+
color: palette.textSecondary,
|
|
144
|
+
marginBottom: 18,
|
|
145
|
+
},
|
|
146
|
+
metaRow: {
|
|
147
|
+
flexDirection: 'row',
|
|
148
|
+
gap: 12,
|
|
149
|
+
marginBottom: 16,
|
|
150
|
+
},
|
|
151
|
+
metaItem: {
|
|
152
|
+
flex: 1,
|
|
153
|
+
borderRadius: 18,
|
|
154
|
+
backgroundColor: palette.background,
|
|
155
|
+
paddingHorizontal: 14,
|
|
156
|
+
paddingVertical: 14,
|
|
157
|
+
},
|
|
158
|
+
metaLabel: {
|
|
159
|
+
fontSize: 12,
|
|
160
|
+
fontWeight: '700',
|
|
161
|
+
color: palette.textSecondary,
|
|
162
|
+
marginBottom: 6,
|
|
163
|
+
},
|
|
164
|
+
metaValue: {
|
|
165
|
+
fontSize: 18,
|
|
166
|
+
fontWeight: '800',
|
|
167
|
+
color: palette.text,
|
|
168
|
+
},
|
|
169
|
+
previewList: {
|
|
170
|
+
gap: 12,
|
|
171
|
+
},
|
|
172
|
+
previewRow: {
|
|
173
|
+
flexDirection: 'row',
|
|
174
|
+
alignItems: 'center',
|
|
175
|
+
justifyContent: 'space-between',
|
|
176
|
+
borderRadius: 18,
|
|
177
|
+
backgroundColor: palette.background,
|
|
178
|
+
paddingHorizontal: 14,
|
|
179
|
+
paddingVertical: 14,
|
|
180
|
+
gap: 12,
|
|
181
|
+
},
|
|
182
|
+
previewName: {
|
|
183
|
+
fontSize: 15,
|
|
184
|
+
fontWeight: '700',
|
|
185
|
+
color: palette.text,
|
|
186
|
+
marginBottom: 4,
|
|
187
|
+
},
|
|
188
|
+
previewPhone: {
|
|
189
|
+
fontSize: 13,
|
|
190
|
+
color: palette.textSecondary,
|
|
191
|
+
},
|
|
192
|
+
previewStatus: {
|
|
193
|
+
fontSize: 13,
|
|
194
|
+
fontWeight: '700',
|
|
195
|
+
color: palette.info,
|
|
196
|
+
},
|
|
197
|
+
emptyInline: {
|
|
198
|
+
borderRadius: 18,
|
|
199
|
+
backgroundColor: palette.background,
|
|
200
|
+
paddingHorizontal: 14,
|
|
201
|
+
paddingVertical: 16,
|
|
202
|
+
},
|
|
203
|
+
emptyInlineText: {
|
|
204
|
+
fontSize: 14,
|
|
205
|
+
lineHeight: 21,
|
|
206
|
+
color: palette.textSecondary,
|
|
207
|
+
},
|
|
208
|
+
actionRow: {
|
|
209
|
+
marginTop: 18,
|
|
210
|
+
flexDirection: 'row',
|
|
211
|
+
alignItems: 'center',
|
|
212
|
+
justifyContent: 'space-between',
|
|
213
|
+
},
|
|
214
|
+
actionText: {
|
|
215
|
+
fontSize: 15,
|
|
216
|
+
fontWeight: '800',
|
|
217
|
+
color: palette.text,
|
|
218
|
+
},
|
|
219
|
+
});
|
|
220
|
+
|
|
221
|
+
const styles = createStyles(colors);
|
|
222
|
+
export default styles;
|