@controleonline/ui-common 1.2.108 → 1.2.110

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.
Files changed (50) hide show
  1. package/.release/rc-manifest.json +7 -5
  2. package/package.json +1 -1
  3. package/src/react/components/CategoryForm.js +539 -539
  4. package/src/react/components/DefaultProvider.native.js +2 -2
  5. package/src/react/components/DefaultProvider.web.js +2 -2
  6. package/src/react/components/integrations/IntegrationHero/index.js +1 -1
  7. package/src/react/components/integrations/IntegrationHero/styles.js +2 -2
  8. package/src/react/components/integrations/IntegrationTabs/index.js +1 -1
  9. package/src/react/components/integrations/IntegrationTabs/styles.js +1 -1
  10. package/src/react/pages/Connections.js +18 -96
  11. package/src/react/pages/Connections.styles.js +72 -72
  12. package/src/react/pages/Devices/detail/DeviceDetailHeader.js +1 -1
  13. package/src/react/pages/Devices/detail/DeviceDetailMovementSections.js +1 -1
  14. package/src/react/pages/Devices/detail/useDeviceDetailStateA.js +2 -2
  15. package/src/react/pages/Devices/detail/useDeviceDetailStateB.js +2 -2
  16. package/src/react/pages/Devices/deviceTypes/DeviceGroupCard.js +1 -1
  17. package/src/react/pages/Devices/deviceTypes/shared.js +2 -2
  18. package/src/react/pages/Devices.js +2 -2
  19. package/src/react/pages/Devices.styles.js +353 -353
  20. package/src/react/pages/Food99IntegrationPage/components/Food99CatalogTab.js +219 -219
  21. package/src/react/pages/Food99IntegrationPage/components/Food99OverviewTab.js +134 -134
  22. package/src/react/pages/Food99IntegrationPage/components/Food99PreviewModal.js +173 -173
  23. package/src/react/pages/Food99IntegrationPage/components/Food99QuickWalletModal.js +1 -1
  24. package/src/react/pages/Food99IntegrationPage/components/Food99SettingsTab.js +306 -306
  25. package/src/react/pages/Food99IntegrationPage/components/Food99StoreTab.js +417 -417
  26. package/src/react/pages/Food99IntegrationPage/index.js +1530 -1530
  27. package/src/react/pages/Food99IntegrationPage/styles.js +792 -792
  28. package/src/react/pages/IFoodIntegrationPage/components/IFoodOperationsTab.js +267 -267
  29. package/src/react/pages/IFoodIntegrationPage/components/IFoodOverviewTab.js +118 -118
  30. package/src/react/pages/IFoodIntegrationPage/components/IFoodPreviewModal.js +101 -101
  31. package/src/react/pages/IFoodIntegrationPage/components/IFoodStoreTab.js +150 -150
  32. package/src/react/pages/IFoodIntegrationPage/index.js +1298 -1298
  33. package/src/react/pages/Imports.js +1 -1
  34. package/src/react/pages/Imports.styles.js +223 -223
  35. package/src/react/pages/IntegrationConfigPage.js +2 -2
  36. package/src/react/pages/Integrations.js +299 -299
  37. package/src/react/pages/Integrations.styles.js +130 -130
  38. package/src/react/pages/LinkedInIntegrationPage.js +2 -2
  39. package/src/react/pages/ManagerOrderNotificationsPage.js +642 -642
  40. package/src/react/pages/MarketplaceIntegrationPage/components/MarketplaceProductCard.js +205 -205
  41. package/src/react/pages/MercadoLivreIntegrationPage.js +2 -2
  42. package/src/react/pages/PrinterDeviceDetailPage.js +1915 -1915
  43. package/src/react/pages/PrinterDeviceFormPage.js +2 -2
  44. package/src/react/pages/WhatsAppConnectionPage.js +280 -364
  45. package/src/react/pages/WhatsAppConnectionPage.styles.js +315 -279
  46. package/src/react/pages/WhatsAppProviderForm.js +1 -1
  47. package/src/react/pages/whatsAppConnectionHelpers.js +38 -10
  48. package/src/react/utils/fileUrl.js +1 -1
  49. package/src/store/connections/customActions.js +16 -14
  50. package/src/store/connections/index.js +109 -105
@@ -37,8 +37,8 @@ import {
37
37
  applyPaletteToRuntimeColors,
38
38
  applyThemeCssVariables,
39
39
  resolveThemePalette,
40
- } from '@controleonline/../../src/styles/branding';
41
- import {colors as runtimeColors} from '@controleonline/../../src/styles/colors';
40
+ } from '@controleonline/ui-layout/src/styles/branding';
41
+ import {colors as runtimeColors} from '@controleonline/ui-layout/src/styles/colors';
42
42
  import {
43
43
  buildDefaultDeviceConfigs,
44
44
  buildProviderManagedDeviceConfigs,
@@ -33,8 +33,8 @@ import {
33
33
  applyPaletteToRuntimeColors,
34
34
  applyThemeCssVariables,
35
35
  resolveThemePalette,
36
- } from '@controleonline/../../src/styles/branding';
37
- import { colors as runtimeColors } from '@controleonline/../../src/styles/colors';
36
+ } from '@controleonline/ui-layout/src/styles/branding';
37
+ import { colors as runtimeColors } from '@controleonline/ui-layout/src/styles/colors';
38
38
  import {
39
39
  buildDefaultDeviceConfigs,
40
40
  buildProviderManagedDeviceConfigs,
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import { Image, Text, View } from 'react-native';
3
3
  import Icon from 'react-native-vector-icons/Feather';
4
- import { colors } from '@controleonline/../../src/styles/colors';
4
+ import { colors } from '@controleonline/ui-layout/src/styles/colors';
5
5
 
6
6
  import createStyles from './styles';
7
7
 
@@ -1,6 +1,6 @@
1
1
  import { StyleSheet } from 'react-native';
2
- import {colors} from '@controleonline/../../src/styles/colors';
3
- import {withOpacity} from '@controleonline/../../src/styles/branding';
2
+ import {colors} from '@controleonline/ui-layout/src/styles/colors';
3
+ import {withOpacity} from '@controleonline/ui-layout/src/styles/branding';
4
4
 
5
5
  const createStyles = (palette = colors) =>
6
6
  StyleSheet.create({
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import { ScrollView, Text, TouchableOpacity, View } from 'react-native';
3
3
 
4
- import { colors } from '@controleonline/../../src/styles/colors';
4
+ import { colors } from '@controleonline/ui-layout/src/styles/colors';
5
5
 
6
6
  import createStyles from './styles';
7
7
 
@@ -1,5 +1,5 @@
1
1
  import { StyleSheet } from 'react-native';
2
- import {colors} from '@controleonline/../../src/styles/colors';
2
+ import {colors} from '@controleonline/ui-layout/src/styles/colors';
3
3
 
4
4
  const createStyles = (palette = colors) =>
5
5
  StyleSheet.create({
@@ -1,32 +1,17 @@
1
1
  import React, { useCallback, useMemo } from 'react';
2
- import { Platform, Text, TouchableOpacity, View } from 'react-native';
2
+ import { Text, View } from 'react-native';
3
3
  import { SafeAreaView } from 'react-native-safe-area-context';
4
4
  import { useFocusEffect, useNavigation } from '@react-navigation/native';
5
5
  import Icon from 'react-native-vector-icons/Feather';
6
6
 
7
7
  import { useStore } from '@store';
8
- import { colors } from '@controleonline/../../src/styles/colors';
8
+ import { colors } from '@controleonline/ui-layout/src/styles/colors';
9
9
  import { createStyles } from './Connections.styles';
10
- import {
11
- resolveThemePalette,
12
- withOpacity,
13
- } from '@controleonline/../../src/styles/branding';
10
+ import { resolveThemePalette } from '@controleonline/ui-layout/src/styles/branding';
14
11
  import DefaultTable from '@controleonline/ui-default/src/react/components/table/DefaultTable';
15
12
 
16
13
  const tt = (type, key) => global.t?.t('configs', type, key);
17
14
 
18
- const resolveShadowStyle = textColor =>
19
- Platform.select({
20
- ios: {
21
- shadowColor: textColor,
22
- shadowOffset: { width: 0, height: 8 },
23
- shadowOpacity: 0.08,
24
- shadowRadius: 16,
25
- },
26
- android: { elevation: 3 },
27
- web: { boxShadow: `0 10px 24px ${withOpacity(textColor, 0.08)}` },
28
- });
29
-
30
15
  const formatPhoneLabel = phone => {
31
16
  if (!phone) return tt('connections_label', 'notProvided') || 'Nao informado';
32
17
  if (typeof phone === 'string') return phone;
@@ -41,11 +26,17 @@ const formatPhoneLabel = phone => {
41
26
  };
42
27
 
43
28
  const formatStatusLabel = status => {
44
- if (!status) return tt('connections_status', 'unknown') || '—';
29
+ if (!status) return '—';
45
30
  if (typeof status === 'string') return status;
46
31
  return status?.status || status?.name || '—';
47
32
  };
48
33
 
34
+ const formatChannelLabel = channel => {
35
+ if (channel === 'whatsapp_official') return 'WhatsApp Oficial';
36
+ if (channel === 'whatsapp') return 'WhatsApp';
37
+ return channel || '—';
38
+ };
39
+
49
40
  export default function Connections() {
50
41
  const navigation = useNavigation();
51
42
  const peopleStore = useStore('people');
@@ -54,8 +45,6 @@ export default function Connections() {
54
45
 
55
46
  const { currentCompany } = peopleStore.getters || {};
56
47
  const { colors: themeColors } = themeStore.getters || {};
57
- const items = connectionsStore.getters?.items;
58
- const totalItems = connectionsStore.getters?.totalItems;
59
48
 
60
49
  const brandColors = useMemo(
61
50
  () =>
@@ -63,13 +52,10 @@ export default function Connections() {
63
52
  { ...themeColors, ...(currentCompany?.theme?.colors || {}) },
64
53
  colors,
65
54
  ),
66
- [themeColors, currentCompany?.id],
55
+ [themeColors, currentCompany],
67
56
  );
57
+
68
58
  const styles = useMemo(() => createStyles(brandColors), [brandColors]);
69
- const shadowStyle = useMemo(
70
- () => resolveShadowStyle(brandColors.text),
71
- [brandColors.text],
72
- );
73
59
 
74
60
  const providerId = currentCompany?.id;
75
61
  const peopleIri = useMemo(
@@ -82,11 +68,6 @@ export default function Connections() {
82
68
  [peopleIri],
83
69
  );
84
70
 
85
- const connectionCount = useMemo(() => {
86
- if (typeof totalItems === 'number' && totalItems > 0) return totalItems;
87
- return Array.isArray(items) ? items.length : 0;
88
- }, [items, totalItems]);
89
-
90
71
  useFocusEffect(
91
72
  useCallback(() => {
92
73
  if (!peopleIri || typeof connectionsStore.actions?.getItems !== 'function') {
@@ -109,7 +90,9 @@ export default function Connections() {
109
90
  {item.name || tt('connections_label', 'unnamed') || 'Sem nome'}
110
91
  </Text>
111
92
  <Text style={styles.previewPhone}>{formatPhoneLabel(item.phone)}</Text>
112
- <Text style={styles.previewStatus}>{formatStatusLabel(item.status)}</Text>
93
+ <Text style={styles.previewStatus}>
94
+ {formatChannelLabel(item.channel)} · {formatStatusLabel(item.status)}
95
+ </Text>
113
96
  </View>
114
97
  );
115
98
  },
@@ -137,72 +120,11 @@ export default function Connections() {
137
120
  <SafeAreaView
138
121
  style={[styles.container, { backgroundColor: brandColors.background }]}
139
122
  edges={['bottom']}>
140
- <View style={[styles.heroCard, shadowStyle, { backgroundColor: brandColors.primary }]}>
141
- <View style={styles.heroCopy}>
142
- <Text style={styles.heroEyebrow}>
143
- {tt('connections_eyebrow', 'communication') || 'COMUNICACAO'}
144
- </Text>
145
- <Text style={styles.heroTitle}>
146
- {tt('connections_title', 'connections') || 'Conexoes'}
147
- </Text>
148
- <Text style={styles.heroText}>
149
- {tt('connections_text', 'hero') ||
150
- 'Gerencie os canais de comunicacao conectados com a sua operacao.'}
151
- </Text>
152
- </View>
153
- <View style={styles.heroBadge}>
154
- <Icon name="radio" size={22} color={brandColors.primary} />
155
- </View>
156
- </View>
157
-
158
- <View style={styles.companyRow}>
159
- <View style={styles.companyBadge}>
160
- <Text style={styles.companyBadgeText}>
161
- {`${connectionCount} ${tt('connections_label', 'connections') || 'conexoes'}`}
162
- </Text>
163
- </View>
164
- </View>
165
-
166
- <TouchableOpacity
167
- activeOpacity={0.92}
168
- onPress={openWhatsAppChannel}
169
- style={[styles.channelCard, shadowStyle]}>
170
- <View style={styles.channelTopRow}>
171
- <View
172
- style={[
173
- styles.channelIconWrap,
174
- { backgroundColor: withOpacity(brandColors.success, 0.12) },
175
- ]}>
176
- <Icon name="message-circle" size={20} color={brandColors.success} />
177
- </View>
178
- <View style={styles.channelStatusPill}>
179
- <Text style={styles.channelStatusText}>
180
- {connectionCount > 0
181
- ? `${connectionCount} ${tt('connections_status', 'configured') || 'configurada(s)'}`
182
- : tt('connections_status', 'readyToConfigure') || 'Pronta para configurar'}
183
- </Text>
184
- </View>
185
- </View>
186
- <Text style={styles.channelTitle}>
187
- {tt('connections_label', 'whatsApp') || 'WhatsApp'}
188
- </Text>
189
- <Text style={styles.channelDescription}>
190
- {tt('connections_text', 'whatsApp') ||
191
- 'Conecte numeros, acompanhe status e gere o QR Code de autenticacao.'}
192
- </Text>
193
- <View style={styles.actionRow}>
194
- <Text style={styles.actionText}>
195
- {tt('connections_button', 'openChannel') || 'Abrir canal'}
196
- </Text>
197
- <Icon name="arrow-right" size={18} color={brandColors.primary} />
198
- </View>
199
- </TouchableOpacity>
200
-
201
- <View style={{ flex: 1, marginTop: 12 }}>
123
+ <View style={{ flex: 1, paddingHorizontal: 12, paddingTop: 8 }}>
202
124
  <DefaultTable
203
125
  storeName="connections"
204
126
  requestParams={requestParams}
205
- initialViewMode="cards"
127
+ initialViewMode="table"
206
128
  forceCardsOnCompact
207
129
  showToolbar
208
130
  showRowActions={false}
@@ -219,7 +141,7 @@ export default function Connections() {
219
141
  accentColor={brandColors.primary}
220
142
  onAdd={openWhatsAppChannel}
221
143
  add
222
- addLabel={tt('connections_button', 'openChannel') || 'Abrir canal'}
144
+ addLabel={tt('connections_button', 'openChannel') || 'Configurar WhatsApp'}
223
145
  />
224
146
  </View>
225
147
  </SafeAreaView>
@@ -1,6 +1,6 @@
1
1
  import { StyleSheet } from 'react-native';
2
- import { colors } from '@controleonline/../../src/styles/colors';
3
- import { withOpacity } from '@controleonline/../../src/styles/branding';
2
+ import { colors } from '@controleonline/ui-layout/src/styles/colors';
3
+ import { withOpacity } from '@controleonline/ui-layout/src/styles/branding';
4
4
 
5
5
  export const createStyles = (palette = colors) =>
6
6
  StyleSheet.create({
@@ -8,17 +8,17 @@ export const createStyles = (palette = colors) =>
8
8
  flex: 1,
9
9
  backgroundColor: palette.background,
10
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
- },
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
22
  centerStateTitle: {
23
23
  marginTop: 16,
24
24
  fontSize: 18,
@@ -26,26 +26,26 @@ export const createStyles = (palette = colors) =>
26
26
  color: palette.text,
27
27
  textAlign: 'center',
28
28
  },
29
- centerStateText: {
29
+ centerStateText: {
30
30
  marginTop: 8,
31
31
  fontSize: 14,
32
32
  lineHeight: 21,
33
33
  color: palette.textSecondary,
34
34
  textAlign: 'center',
35
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
- },
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
49
  heroEyebrow: {
50
50
  fontSize: 13,
51
51
  fontWeight: '800',
@@ -64,7 +64,7 @@ export const createStyles = (palette = colors) =>
64
64
  lineHeight: 21,
65
65
  color: withOpacity(palette.white, 0.88),
66
66
  },
67
- heroBadge: {
67
+ heroBadge: {
68
68
  width: 54,
69
69
  height: 54,
70
70
  borderRadius: 18,
@@ -72,13 +72,13 @@ export const createStyles = (palette = colors) =>
72
72
  alignItems: 'center',
73
73
  justifyContent: 'center',
74
74
  },
75
- companyRow: {
76
- flexDirection: 'row',
77
- alignItems: 'flex-start',
78
- justifyContent: 'space-between',
79
- marginBottom: 18,
80
- gap: 12,
81
- },
75
+ companyRow: {
76
+ flexDirection: 'row',
77
+ alignItems: 'flex-start',
78
+ justifyContent: 'space-between',
79
+ marginBottom: 18,
80
+ gap: 12,
81
+ },
82
82
  sectionTitle: {
83
83
  fontSize: 13,
84
84
  fontWeight: '700',
@@ -90,7 +90,7 @@ export const createStyles = (palette = colors) =>
90
90
  fontWeight: '800',
91
91
  color: palette.text,
92
92
  },
93
- companyBadge: {
93
+ companyBadge: {
94
94
  borderRadius: 999,
95
95
  paddingHorizontal: 12,
96
96
  paddingVertical: 8,
@@ -106,27 +106,27 @@ export const createStyles = (palette = colors) =>
106
106
  backgroundColor: palette.white,
107
107
  padding: 18,
108
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
- },
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
123
  channelStatusPill: {
124
124
  borderRadius: 999,
125
125
  backgroundColor: palette.background,
126
126
  paddingHorizontal: 12,
127
127
  paddingVertical: 8,
128
128
  },
129
- channelStatusText: {
129
+ channelStatusText: {
130
130
  fontSize: 13,
131
131
  fontWeight: '700',
132
132
  color: palette.textSecondary,
@@ -137,25 +137,25 @@ export const createStyles = (palette = colors) =>
137
137
  color: palette.text,
138
138
  marginBottom: 8,
139
139
  },
140
- channelDescription: {
140
+ channelDescription: {
141
141
  fontSize: 14,
142
142
  lineHeight: 21,
143
143
  color: palette.textSecondary,
144
144
  marginBottom: 18,
145
145
  },
146
- metaRow: {
147
- flexDirection: 'row',
148
- gap: 12,
149
- marginBottom: 16,
150
- },
151
- metaItem: {
146
+ metaRow: {
147
+ flexDirection: 'row',
148
+ gap: 12,
149
+ marginBottom: 16,
150
+ },
151
+ metaItem: {
152
152
  flex: 1,
153
153
  borderRadius: 18,
154
154
  backgroundColor: palette.background,
155
155
  paddingHorizontal: 14,
156
156
  paddingVertical: 14,
157
157
  },
158
- metaLabel: {
158
+ metaLabel: {
159
159
  fontSize: 12,
160
160
  fontWeight: '700',
161
161
  color: palette.textSecondary,
@@ -166,11 +166,11 @@ export const createStyles = (palette = colors) =>
166
166
  fontWeight: '800',
167
167
  color: palette.text,
168
168
  },
169
- previewList: {
170
- gap: 12,
171
- },
172
- previewRow: {
173
- flexDirection: 'row',
169
+ previewList: {
170
+ gap: 12,
171
+ },
172
+ previewRow: {
173
+ flexDirection: 'row',
174
174
  alignItems: 'center',
175
175
  justifyContent: 'space-between',
176
176
  borderRadius: 18,
@@ -179,7 +179,7 @@ export const createStyles = (palette = colors) =>
179
179
  paddingVertical: 14,
180
180
  gap: 12,
181
181
  },
182
- previewName: {
182
+ previewName: {
183
183
  fontSize: 15,
184
184
  fontWeight: '700',
185
185
  color: palette.text,
@@ -200,17 +200,17 @@ export const createStyles = (palette = colors) =>
200
200
  paddingHorizontal: 14,
201
201
  paddingVertical: 16,
202
202
  },
203
- emptyInlineText: {
203
+ emptyInlineText: {
204
204
  fontSize: 14,
205
205
  lineHeight: 21,
206
206
  color: palette.textSecondary,
207
207
  },
208
- actionRow: {
209
- marginTop: 18,
210
- flexDirection: 'row',
211
- alignItems: 'center',
212
- justifyContent: 'space-between',
213
- },
208
+ actionRow: {
209
+ marginTop: 18,
210
+ flexDirection: 'row',
211
+ alignItems: 'center',
212
+ justifyContent: 'space-between',
213
+ },
214
214
  actionText: {
215
215
  fontSize: 15,
216
216
  fontWeight: '800',
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import { Text, TextInput, TouchableOpacity, View } from 'react-native';
3
3
  import Icon from 'react-native-vector-icons/Feather';
4
- import { withOpacity } from '@controleonline/../../src/styles/branding';
4
+ import { withOpacity } from '@controleonline/ui-layout/src/styles/branding';
5
5
  import styles from '../../DeviceDetailPage.styles';
6
6
 
7
7
  /**
@@ -5,7 +5,7 @@ import Formatter from '@controleonline/ui-common/src/utils/formatter';
5
5
  import styles from '../../DeviceDetailPage.styles';
6
6
  import { hex } from './deviceDetailConstants';
7
7
  import { paymentIcon } from './deviceDetailHelpers';
8
- import { withOpacity } from '@controleonline/../../src/styles/branding';
8
+ import { withOpacity } from '@controleonline/ui-layout/src/styles/branding';
9
9
  import { inlineStyle_1301_61 } from '../../DeviceDetailPage.styles';
10
10
 
11
11
  /**
@@ -2,8 +2,8 @@ import { useCallback, useEffect, useMemo, useRef, useState } from 'react';
2
2
  import { useNavigation, useRoute } from '@react-navigation/native';
3
3
  import { useStore } from '@store';
4
4
  import { useMessage } from '@controleonline/ui-common/src/react/components/MessageService';
5
- import { resolveThemePalette } from '@controleonline/../../src/styles/branding';
6
- import { colors } from '@controleonline/../../src/styles/colors';
5
+ import { resolveThemePalette } from '@controleonline/ui-layout/src/styles/branding';
6
+ import { colors } from '@controleonline/ui-layout/src/styles/colors';
7
7
  import packageJson from '@package';
8
8
  import { canDisplayChangePrinter, DISPLAY_AUTO_PRINT_PRODUCT_CONFIG_KEY, DEVICE_ALERT_SOUND_ENABLED_KEY, DEVICE_ALERT_SOUND_URL_KEY, DEVICE_RUNTIME_DEBUG_INFO_ENABLED_KEY, isPosAutoPrintEnabled, isTruthyValue, parseConfigsObject, POS_PRODUCT_SHOWCASE_CONFIG_KEY, getPosOperationModeOption, isAndroidKioskEnabled, isAndroidLauncherEnabled, isPosDeliveryEnabled, resolvePosCheckOrderManagementMode, resolvePosCheckOrderTypeForShop, resolveDeviceOrderVisibility, resolvePosCashManagementMode, resolvePosOperationMode, resolvePosPrintMode } from '@controleonline/ui-common/src/react/config/deviceConfigBootstrap';
9
9
  import { filterDeviceConfigsByCompany, getCompanyPaymentDeviceOptions, getPaymentGatewayFromConfigs, isPaymentCapableDeviceConfig, isPdvPrinterEnabled, normalizeDeviceId, normalizeEntityId, ORDER_PAYMENT_DEVICE_CONFIG_KEY } from '@controleonline/ui-common/src/react/utils/paymentDevices';
@@ -2,8 +2,8 @@ import { useCallback, useEffect, useMemo, useRef, useState } from 'react';
2
2
  import { useNavigation, useRoute } from '@react-navigation/native';
3
3
  import { useStore } from '@store';
4
4
  import { useMessage } from '@controleonline/ui-common/src/react/components/MessageService';
5
- import { resolveThemePalette } from '@controleonline/../../src/styles/branding';
6
- import { colors } from '@controleonline/../../src/styles/colors';
5
+ import { resolveThemePalette } from '@controleonline/ui-layout/src/styles/branding';
6
+ import { colors } from '@controleonline/ui-layout/src/styles/colors';
7
7
  import packageJson from '@package';
8
8
  import {
9
9
  canDisplayChangePrinter, DEVICE_ANDROID_KIOSK_ENABLED_CONFIG_KEY, DEVICE_ANDROID_LAUNCHER_ENABLED_CONFIG_KEY,
@@ -6,7 +6,7 @@ import {
6
6
  findDeviceConfigByType,
7
7
  isCurrentDeviceGroup,
8
8
  } from '../currentDevice';
9
- import {withOpacity} from '@controleonline/../../src/styles/branding';
9
+ import {withOpacity} from '@controleonline/ui-layout/src/styles/branding';
10
10
  import {
11
11
  getDeviceConfigType,
12
12
  isManagedNetworkDeviceType,
@@ -23,8 +23,8 @@ import {
23
23
  normalizeEntityId,
24
24
  } from '@controleonline/ui-common/src/react/utils/paymentDevices';
25
25
  import {resolveOperationalDeviceType} from '@controleonline/ui-common/src/react/utils/deviceRuntime';
26
- import {resolveThemePalette, withOpacity} from '@controleonline/../../src/styles/branding';
27
- import {colors} from '@controleonline/../../src/styles/colors';
26
+ import {resolveThemePalette, withOpacity} from '@controleonline/ui-layout/src/styles/branding';
27
+ import {colors} from '@controleonline/ui-layout/src/styles/colors';
28
28
  import Icon from 'react-native-vector-icons/Feather';
29
29
  import DefaultTable from '@controleonline/ui-default/src/react/components/table/DefaultTable';
30
30
  import {
@@ -3,8 +3,8 @@ import {Text, TouchableOpacity, View} from 'react-native';
3
3
  import {SafeAreaView} from 'react-native-safe-area-context';
4
4
  import {useNavigation} from '@react-navigation/native';
5
5
  import {useStore} from '@store';
6
- import {resolveThemePalette} from '@controleonline/../../src/styles/branding';
7
- import {colors} from '@controleonline/../../src/styles/colors';
6
+ import {resolveThemePalette} from '@controleonline/ui-layout/src/styles/branding';
7
+ import {colors} from '@controleonline/ui-layout/src/styles/colors';
8
8
  import CompactFilterSelector from '@controleonline/ui-default/src/react/components/filters/CompactFilterSelector';
9
9
  import {PDV_DEVICE_TYPE} from '@controleonline/ui-common/src/react/utils/printerDevices';
10
10
  import Icon from 'react-native-vector-icons/Feather';