@controleonline/ui-common 1.2.133 → 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 -6
- package/package.json +1 -1
- 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/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/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.js +51 -0
- package/src/react/pages/WhatsAppConnectionPage.styles.js +315 -279
- package/src/react/pages/WhatsAppProviderForm.js +39 -1
- package/src/react/pages/whatsAppConnectionHelpers.js +38 -10
- package/src/react/pages/whatsAppEmbeddedSignup.js +133 -0
- package/src/react/router/__tests__/publicRoutes.test.js +12 -0
- package/src/react/router/publicRoutes.js +3 -0
- package/src/react/utils/fileUrl.js +1 -1
- package/src/store/connections/customActions.js +51 -14
- package/src/store/connections/index.js +109 -105
|
@@ -1,130 +1,130 @@
|
|
|
1
|
-
import { Platform, StyleSheet } from 'react-native';
|
|
2
|
-
import { colors } from '@controleonline
|
|
3
|
-
import { withOpacity } from '@controleonline
|
|
4
|
-
|
|
5
|
-
const buildCardShadow = palette =>
|
|
6
|
-
Platform.select({
|
|
7
|
-
ios: {
|
|
8
|
-
shadowColor: palette.text,
|
|
9
|
-
shadowOffset: { width: 0, height: 8 },
|
|
10
|
-
shadowOpacity: 0.08,
|
|
11
|
-
shadowRadius: 16,
|
|
12
|
-
},
|
|
13
|
-
android: { elevation: 3 },
|
|
14
|
-
web: { boxShadow: `0 10px 24px ${withOpacity(palette.text, 0.08)}` },
|
|
15
|
-
});
|
|
16
|
-
|
|
17
|
-
export const createStyles = (palette = colors) => {
|
|
18
|
-
const cardShadow = buildCardShadow(palette);
|
|
19
|
-
|
|
20
|
-
return StyleSheet.create({
|
|
21
|
-
container: {
|
|
22
|
-
flex: 1,
|
|
23
|
-
backgroundColor: palette.background,
|
|
24
|
-
},
|
|
25
|
-
scroll: {
|
|
26
|
-
paddingHorizontal: 20,
|
|
27
|
-
paddingTop: 16,
|
|
28
|
-
paddingBottom: 32,
|
|
29
|
-
gap: 18,
|
|
30
|
-
},
|
|
31
|
-
centerState: {
|
|
32
|
-
flex: 1,
|
|
33
|
-
alignItems: 'center',
|
|
34
|
-
justifyContent: 'center',
|
|
35
|
-
paddingHorizontal: 32,
|
|
36
|
-
gap: 10,
|
|
37
|
-
},
|
|
38
|
-
centerStateTitle: {
|
|
39
|
-
fontSize: 20,
|
|
40
|
-
fontWeight: '700',
|
|
41
|
-
color: palette.text,
|
|
42
|
-
textAlign: 'center',
|
|
43
|
-
},
|
|
44
|
-
centerStateText: {
|
|
45
|
-
fontSize: 14,
|
|
46
|
-
color: palette.mutedText,
|
|
47
|
-
textAlign: 'center',
|
|
48
|
-
lineHeight: 20,
|
|
49
|
-
},
|
|
50
|
-
pageHeader: {
|
|
51
|
-
gap: 6,
|
|
52
|
-
},
|
|
53
|
-
pageTitle: {
|
|
54
|
-
fontSize: 28,
|
|
55
|
-
fontWeight: '800',
|
|
56
|
-
color: palette.text,
|
|
57
|
-
letterSpacing: -0.6,
|
|
58
|
-
},
|
|
59
|
-
pageSubtitle: {
|
|
60
|
-
fontSize: 14,
|
|
61
|
-
lineHeight: 20,
|
|
62
|
-
color: palette.mutedText,
|
|
63
|
-
maxWidth: 760,
|
|
64
|
-
},
|
|
65
|
-
integrationGrid: {
|
|
66
|
-
flexDirection: 'row',
|
|
67
|
-
flexWrap: 'wrap',
|
|
68
|
-
gap: 12,
|
|
69
|
-
},
|
|
70
|
-
integrationCard: {
|
|
71
|
-
flexGrow: 1,
|
|
72
|
-
flexBasis: '48%',
|
|
73
|
-
minWidth: 220,
|
|
74
|
-
borderRadius: 18,
|
|
75
|
-
padding: 14,
|
|
76
|
-
backgroundColor: palette.cardBackground,
|
|
77
|
-
borderColor: palette.cardBorder,
|
|
78
|
-
borderWidth: 1,
|
|
79
|
-
...cardShadow,
|
|
80
|
-
},
|
|
81
|
-
integrationTopRow: {
|
|
82
|
-
flexDirection: 'row',
|
|
83
|
-
alignItems: 'center',
|
|
84
|
-
justifyContent: 'space-between',
|
|
85
|
-
gap: 12,
|
|
86
|
-
marginBottom: 0,
|
|
87
|
-
},
|
|
88
|
-
integrationHeaderLeft: {
|
|
89
|
-
flexDirection: 'row',
|
|
90
|
-
alignItems: 'center',
|
|
91
|
-
gap: 12,
|
|
92
|
-
flex: 1,
|
|
93
|
-
minWidth: 0,
|
|
94
|
-
},
|
|
95
|
-
integrationIconWrap: {
|
|
96
|
-
width: 44,
|
|
97
|
-
height: 44,
|
|
98
|
-
borderRadius: 14,
|
|
99
|
-
alignItems: 'center',
|
|
100
|
-
justifyContent: 'center',
|
|
101
|
-
backgroundColor: palette.cardIconBackground,
|
|
102
|
-
},
|
|
103
|
-
integrationLogo: {
|
|
104
|
-
width: 24,
|
|
105
|
-
height: 24,
|
|
106
|
-
},
|
|
107
|
-
integrationStatus: {
|
|
108
|
-
borderRadius: 999,
|
|
109
|
-
paddingHorizontal: 10,
|
|
110
|
-
paddingVertical: 6,
|
|
111
|
-
backgroundColor: palette.badgeBackground,
|
|
112
|
-
borderWidth: 1,
|
|
113
|
-
borderColor: palette.badgeBorder,
|
|
114
|
-
},
|
|
115
|
-
integrationStatusText: {
|
|
116
|
-
fontSize: 12,
|
|
117
|
-
fontWeight: '700',
|
|
118
|
-
color: palette.badgeText,
|
|
119
|
-
},
|
|
120
|
-
integrationTitle: {
|
|
121
|
-
fontSize: 16,
|
|
122
|
-
fontWeight: '800',
|
|
123
|
-
color: palette.cardText,
|
|
124
|
-
flexShrink: 1,
|
|
125
|
-
},
|
|
126
|
-
});
|
|
127
|
-
};
|
|
128
|
-
|
|
129
|
-
const styles = createStyles(colors);
|
|
130
|
-
export default styles;
|
|
1
|
+
import { Platform, StyleSheet } from 'react-native';
|
|
2
|
+
import { colors } from '@controleonline/ui-layout/src/styles/colors';
|
|
3
|
+
import { withOpacity } from '@controleonline/ui-layout/src/styles/branding';
|
|
4
|
+
|
|
5
|
+
const buildCardShadow = palette =>
|
|
6
|
+
Platform.select({
|
|
7
|
+
ios: {
|
|
8
|
+
shadowColor: palette.text,
|
|
9
|
+
shadowOffset: { width: 0, height: 8 },
|
|
10
|
+
shadowOpacity: 0.08,
|
|
11
|
+
shadowRadius: 16,
|
|
12
|
+
},
|
|
13
|
+
android: { elevation: 3 },
|
|
14
|
+
web: { boxShadow: `0 10px 24px ${withOpacity(palette.text, 0.08)}` },
|
|
15
|
+
});
|
|
16
|
+
|
|
17
|
+
export const createStyles = (palette = colors) => {
|
|
18
|
+
const cardShadow = buildCardShadow(palette);
|
|
19
|
+
|
|
20
|
+
return StyleSheet.create({
|
|
21
|
+
container: {
|
|
22
|
+
flex: 1,
|
|
23
|
+
backgroundColor: palette.background,
|
|
24
|
+
},
|
|
25
|
+
scroll: {
|
|
26
|
+
paddingHorizontal: 20,
|
|
27
|
+
paddingTop: 16,
|
|
28
|
+
paddingBottom: 32,
|
|
29
|
+
gap: 18,
|
|
30
|
+
},
|
|
31
|
+
centerState: {
|
|
32
|
+
flex: 1,
|
|
33
|
+
alignItems: 'center',
|
|
34
|
+
justifyContent: 'center',
|
|
35
|
+
paddingHorizontal: 32,
|
|
36
|
+
gap: 10,
|
|
37
|
+
},
|
|
38
|
+
centerStateTitle: {
|
|
39
|
+
fontSize: 20,
|
|
40
|
+
fontWeight: '700',
|
|
41
|
+
color: palette.text,
|
|
42
|
+
textAlign: 'center',
|
|
43
|
+
},
|
|
44
|
+
centerStateText: {
|
|
45
|
+
fontSize: 14,
|
|
46
|
+
color: palette.mutedText,
|
|
47
|
+
textAlign: 'center',
|
|
48
|
+
lineHeight: 20,
|
|
49
|
+
},
|
|
50
|
+
pageHeader: {
|
|
51
|
+
gap: 6,
|
|
52
|
+
},
|
|
53
|
+
pageTitle: {
|
|
54
|
+
fontSize: 28,
|
|
55
|
+
fontWeight: '800',
|
|
56
|
+
color: palette.text,
|
|
57
|
+
letterSpacing: -0.6,
|
|
58
|
+
},
|
|
59
|
+
pageSubtitle: {
|
|
60
|
+
fontSize: 14,
|
|
61
|
+
lineHeight: 20,
|
|
62
|
+
color: palette.mutedText,
|
|
63
|
+
maxWidth: 760,
|
|
64
|
+
},
|
|
65
|
+
integrationGrid: {
|
|
66
|
+
flexDirection: 'row',
|
|
67
|
+
flexWrap: 'wrap',
|
|
68
|
+
gap: 12,
|
|
69
|
+
},
|
|
70
|
+
integrationCard: {
|
|
71
|
+
flexGrow: 1,
|
|
72
|
+
flexBasis: '48%',
|
|
73
|
+
minWidth: 220,
|
|
74
|
+
borderRadius: 18,
|
|
75
|
+
padding: 14,
|
|
76
|
+
backgroundColor: palette.cardBackground,
|
|
77
|
+
borderColor: palette.cardBorder,
|
|
78
|
+
borderWidth: 1,
|
|
79
|
+
...cardShadow,
|
|
80
|
+
},
|
|
81
|
+
integrationTopRow: {
|
|
82
|
+
flexDirection: 'row',
|
|
83
|
+
alignItems: 'center',
|
|
84
|
+
justifyContent: 'space-between',
|
|
85
|
+
gap: 12,
|
|
86
|
+
marginBottom: 0,
|
|
87
|
+
},
|
|
88
|
+
integrationHeaderLeft: {
|
|
89
|
+
flexDirection: 'row',
|
|
90
|
+
alignItems: 'center',
|
|
91
|
+
gap: 12,
|
|
92
|
+
flex: 1,
|
|
93
|
+
minWidth: 0,
|
|
94
|
+
},
|
|
95
|
+
integrationIconWrap: {
|
|
96
|
+
width: 44,
|
|
97
|
+
height: 44,
|
|
98
|
+
borderRadius: 14,
|
|
99
|
+
alignItems: 'center',
|
|
100
|
+
justifyContent: 'center',
|
|
101
|
+
backgroundColor: palette.cardIconBackground,
|
|
102
|
+
},
|
|
103
|
+
integrationLogo: {
|
|
104
|
+
width: 24,
|
|
105
|
+
height: 24,
|
|
106
|
+
},
|
|
107
|
+
integrationStatus: {
|
|
108
|
+
borderRadius: 999,
|
|
109
|
+
paddingHorizontal: 10,
|
|
110
|
+
paddingVertical: 6,
|
|
111
|
+
backgroundColor: palette.badgeBackground,
|
|
112
|
+
borderWidth: 1,
|
|
113
|
+
borderColor: palette.badgeBorder,
|
|
114
|
+
},
|
|
115
|
+
integrationStatusText: {
|
|
116
|
+
fontSize: 12,
|
|
117
|
+
fontWeight: '700',
|
|
118
|
+
color: palette.badgeText,
|
|
119
|
+
},
|
|
120
|
+
integrationTitle: {
|
|
121
|
+
fontSize: 16,
|
|
122
|
+
fontWeight: '800',
|
|
123
|
+
color: palette.cardText,
|
|
124
|
+
flexShrink: 1,
|
|
125
|
+
},
|
|
126
|
+
});
|
|
127
|
+
};
|
|
128
|
+
|
|
129
|
+
const styles = createStyles(colors);
|
|
130
|
+
export default styles;
|
|
@@ -16,11 +16,11 @@ import Icon from 'react-native-vector-icons/Feather';
|
|
|
16
16
|
import {api} from '@controleonline/ui-common/src/api';
|
|
17
17
|
import useToastMessage from '@controleonline/ui-crm/src/react/hooks/useToastMessage';
|
|
18
18
|
import {useStore} from '@store';
|
|
19
|
-
import {colors} from '@controleonline
|
|
19
|
+
import {colors} from '@controleonline/ui-layout/src/styles/colors';
|
|
20
20
|
import {
|
|
21
21
|
resolveThemePalette,
|
|
22
22
|
withOpacity,
|
|
23
|
-
} from '@controleonline
|
|
23
|
+
} from '@controleonline/ui-layout/src/styles/branding';
|
|
24
24
|
|
|
25
25
|
import styles from './IntegrationConfigPage.styles';
|
|
26
26
|
import {
|