@controleonline/ui-common 1.2.87 → 1.2.88

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 (70) hide show
  1. package/.github/workflows/integration-source-gate.yml +68 -0
  2. package/.github/workflows/manager-worker.yml +7 -156
  3. package/.github/workflows/publish-npm.yml +73 -27
  4. package/.github/workflows/pull-request-checks.yml +7 -5
  5. package/docs/technical/Device-Detail-Alias-UI-Sync.md +141 -0
  6. package/package.json +13 -8
  7. package/src/react/components/BottomNavigationBar.js +178 -174
  8. package/src/react/components/BottomNavigationBar.styles.js +139 -118
  9. package/src/react/components/DefaultProvider.native.js +427 -421
  10. package/src/react/components/DefaultProvider.web.js +131 -125
  11. package/src/react/components/RemoteCheckoutService.js +3 -3
  12. package/src/react/components/RuntimeFooterMarqueeText.js +88 -36
  13. package/src/react/components/RuntimeInfoFooter.js +76 -43
  14. package/src/react/components/RuntimeInfoFooter.styles.js +22 -14
  15. package/src/react/config/deviceConfigBootstrap.js +3 -3
  16. package/src/react/pages/Devices/detail/DeviceDetailAlertsCommandsSection.js +4 -22
  17. package/src/react/pages/Devices/detail/DeviceDetailMovementSections.js +6 -2
  18. package/src/react/pages/Devices/detail/DeviceDetailOrdersPrintSection.js +4 -0
  19. package/src/react/pages/Devices/detail/DeviceDetailScreen.js +23 -338
  20. package/src/react/pages/Devices/detail/createDeviceDetailContext.js +20 -0
  21. package/src/react/pages/Devices/detail/useDeviceDetailActions.js +11 -36
  22. package/src/react/pages/Devices/detail/useDeviceDetailLoaders.js +129 -37
  23. package/src/react/pages/Devices/detail/useDeviceDetailSaves.js +11 -38
  24. package/src/react/pages/Devices/detail/useDeviceDetailStateA.js +9 -28
  25. package/src/react/pages/IntegrationConfigFields.js +1 -0
  26. package/src/react/pages/IntegrationConfigPage.js +101 -45
  27. package/src/react/pages/IntegrationConfigPage.utils.js +21 -13
  28. package/src/react/pages/fetchPeopleConfigs.js +21 -0
  29. package/src/react/pages/integrationsCatalog.js +15 -110
  30. package/src/react/services/Cielo/Cielo.js +9 -9
  31. package/src/react/services/Getnet/Getnet.web.js +25 -0
  32. package/src/react/utils/companyAuthority.js +36 -0
  33. package/src/react/utils/fileUrl.js +14 -5
  34. package/src/react/utils/paymentDevices.js +375 -270
  35. package/src/react/utils/printerDevices.js +2 -2
  36. package/src/react/utils/runtimeFooter.js +178 -224
  37. package/src/react/utils/runtimeFooterText.js +160 -0
  38. package/src/react/utils/runtimeLanguage.js +5 -5
  39. package/src/react/utils/runtimeZoom.js +29 -5
  40. package/src/react/utils/shopFranchises.js +167 -12
  41. package/src/react/utils/storeColumns.js +235 -217
  42. package/src/react/utils/systemErrorMessage.js +2 -1
  43. package/src/store/integration/index.js +43 -0
  44. package/src/tests/browser/manager/device-detail-apply-config-defined.spec.js +31 -0
  45. package/src/tests/browser/manager/device-detail-composition.spec.js +295 -0
  46. package/src/tests/browser/manager/device-detail-copy-config.spec.js +11 -1
  47. package/src/tests/browser/manager/device-detail-pdv-current-company.spec.js +273 -0
  48. package/src/tests/browser/manager/runtime-footer-rotation.spec.js +397 -0
  49. package/src/tests/react/components/DefaultProviderAuthority.test.js +28 -0
  50. package/src/tests/react/components/RuntimeFooterMarqueeText.build.test.js +29 -0
  51. package/src/tests/react/config/deviceConfigBootstrap.test.js +24 -1
  52. package/src/tests/react/pages/applyCurrentDeviceConfig.test.js +85 -0
  53. package/src/tests/react/pages/deviceDetailComposition.test.js +65 -0
  54. package/src/tests/react/pages/deviceDetailHookDependencies.test.mjs +31 -0
  55. package/src/tests/react/pages/deviceDetailLoaderDependencies.test.mjs +28 -0
  56. package/src/tests/react/pages/receitaFederalIntegrationContract.test.mjs +27 -6
  57. package/src/tests/react/services/Cielo.test.js +2 -2
  58. package/src/tests/react/utils/companyAuthority.test.js +53 -0
  59. package/src/tests/react/utils/formatter.test.mjs +6 -0
  60. package/src/tests/react/utils/paymentDevices.test.js +72 -0
  61. package/src/tests/react/utils/runtimeFooter.test.js +35 -0
  62. package/src/tests/react/utils/runtimeFooterText.test.js +88 -0
  63. package/src/tests/react/utils/runtimeLanguage.test.js +4 -4
  64. package/src/tests/react/utils/runtimeZoom.test.js +20 -0
  65. package/src/tests/react/utils/shopFranchises.test.js +32 -13
  66. package/src/tests/react/utils/translate.test.mjs +6 -6
  67. package/src/utils/formatter.js +7 -3
  68. package/src/utils/translate.js +16 -16
  69. package/src/utils/translatePending.js +6 -6
  70. package/src/utils/translateStorage.js +2 -2
@@ -1,175 +1,179 @@
1
- import React, {useLayoutEffect, useMemo} from 'react';
2
- import {Pressable, Text, View} from 'react-native';
3
- import Icon from 'react-native-vector-icons/Feather';
4
- import {useTheme} from './DefaultProvider';
5
- import RuntimeInfoFooter from './RuntimeInfoFooter';
1
+ import React, {useLayoutEffect, useMemo} from 'react';
2
+ import {Pressable, Text, View} from 'react-native';
3
+ import Icon from 'react-native-vector-icons/Feather';
4
+ import {useTheme} from './DefaultProvider';
5
+ import RuntimeInfoFooter from './RuntimeInfoFooter';
6
6
  import {resolveMenuRouteParams} from '../utils/menuNavigation';
7
- import createStyles from './BottomNavigationBar.styles';
8
-
9
- const BottomNavigationBar = ({
10
- navigation,
11
- items = [],
12
- activeRouteName,
13
- disabled = false,
14
- colors = {},
15
- testID = 'bottom-navigation',
16
- useModernWebChromeProps = false,
17
- }) => {
18
- const theme = useTheme?.() || {};
19
- const runtimeFooter = theme?.runtimeFooter || null;
20
- const registerBottomNavigation =
21
- theme?.bottomChrome?.registerBottomNavigation || null;
22
- const activeBackground = colors.navigationActiveBackground;
23
- const activeBorder = colors.navigationActiveBorder;
24
- const activeIcon = colors.navigationActiveIcon;
25
- const activeText = colors.navigationActiveText;
26
- const dockBackground = colors.navigationBackground;
27
- const dockBorder = colors.navigationBorder;
28
- const dockShadow = colors.navigationShadow;
29
- const inactiveIcon = colors.navigationIcon;
30
- const inactiveText = colors.navigationText;
31
-
32
- const styles = useMemo(
33
- () =>
34
- createStyles({
35
- activeBackground,
36
- dockBackground,
37
- dockBorder,
38
- dockShadow,
39
- activeBorder,
40
- useModernWebChromeProps,
41
- }),
42
- [
43
- activeBackground,
44
- activeBorder,
45
- dockBackground,
46
- dockBorder,
47
- dockShadow,
48
- useModernWebChromeProps,
49
- ],
50
- );
51
-
52
- const resolveItemColors = ({isActive, isDisabled}) => {
53
- if (isActive) {
54
- return {
55
- iconColor: activeIcon,
56
- textColor: activeText,
57
- };
58
- }
59
-
60
- if (isDisabled) {
61
- return {
62
- iconColor: colors.navigationDisabledIcon,
63
- textColor: colors.navigationDisabledText,
64
- };
65
- }
66
-
67
- return {
68
- iconColor: inactiveIcon,
69
- textColor: inactiveText,
70
- };
71
- };
72
-
73
- const resolveItemStateStyles = ({isActive, isDisabled}) => [
74
- styles.item,
75
- isActive && styles.itemActive,
76
- isDisabled && styles.itemDisabled,
77
- isDisabled && {
78
- backgroundColor: colors.navigationDisabledBackground,
79
- borderColor: colors.navigationDisabledBorder,
80
- },
81
- ];
82
-
83
- const resolvePressedStyles = ({pressed, isDisabled}) =>
84
- pressed && !isDisabled
85
- ? [
86
- styles.itemPressed,
87
- ]
88
- : [];
89
-
90
- useLayoutEffect(() => {
91
- if (typeof registerBottomNavigation !== 'function') {
92
- return undefined;
93
- }
94
-
95
- return registerBottomNavigation();
96
- }, [registerBottomNavigation]);
97
-
98
- const routeItems = Array.isArray(items) ? items : [];
99
- const knownRoute = routeItems.some(item => item?.route === activeRouteName);
100
- const effectiveActiveRoute = knownRoute
101
- ? activeRouteName
102
- : routeItems[0]?.route || '';
103
-
104
- const navigateTo = item => {
105
- try {
106
- navigation?.navigate?.(item?.route, resolveMenuRouteParams(item?.routeParams));
107
- } catch {
108
- // Keep the footer stable if a route is unavailable in the current app flavor.
109
- }
110
- };
111
-
112
- const hostProps = useModernWebChromeProps
113
- ? {}
114
- : {pointerEvents: 'box-none'};
115
- const hostStyle = useModernWebChromeProps
116
- ? [styles.host, styles.hostPointerEventsBoxNone]
117
- : styles.host;
118
- const footerProps = {
119
- appVersion: runtimeFooter?.appVersion,
120
- colors: runtimeFooter?.colors || {},
121
- defaultCompany: runtimeFooter?.defaultCompany,
122
- device: runtimeFooter?.device,
123
- useModernWebChromeProps,
124
- };
125
-
126
- return (
127
- <View {...hostProps} style={hostStyle}>
128
- <View style={styles.stack}>
129
- <View style={styles.dock} testID={testID}>
130
- {routeItems.map(item => {
131
- const isActive = effectiveActiveRoute === item.route;
132
- const isDisabled = disabled || item.disabled;
133
- const iconSize = item.iconSize || 18;
134
- const {iconColor, textColor} = resolveItemColors({
135
- isActive,
136
- isDisabled,
137
- });
138
-
139
- return (
140
- <Pressable
141
- key={item.route}
142
- accessibilityRole="button"
143
- disabled={isDisabled}
144
- onPress={() => navigateTo(item)}
145
- style={({pressed}) => [
146
- ...resolveItemStateStyles({isActive, isDisabled}),
147
- ...resolvePressedStyles({pressed, isDisabled}),
148
- ]}>
149
- <View style={styles.iconWrap}>
150
- <Icon color={iconColor} name={item.icon} size={iconSize} />
151
- </View>
152
- <Text
153
- numberOfLines={1}
154
- style={[
155
- styles.itemLabel,
156
- {
157
- color: textColor,
158
- },
159
- ]}>
160
- {item.label}
161
- </Text>
162
- </Pressable>
163
- );
164
- })}
165
- </View>
166
-
167
- {runtimeFooter && (
168
- <RuntimeInfoFooter {...footerProps} />
169
- )}
170
- </View>
171
- </View>
172
- );
173
- };
174
-
175
- export default BottomNavigationBar;
7
+ import createStyles from './BottomNavigationBar.styles';
8
+
9
+ const BottomNavigationBar = ({
10
+ navigation,
11
+ items = [],
12
+ activeRouteName,
13
+ disabled = false,
14
+ colors = {},
15
+ testID = 'bottom-navigation',
16
+ useModernWebChromeProps = false,
17
+ }) => {
18
+ const theme = useTheme?.() || {};
19
+ const runtimeFooter = theme?.runtimeFooter || null;
20
+ const registerBottomNavigation =
21
+ theme?.bottomChrome?.registerBottomNavigation || null;
22
+ const activeBackground = colors.navigationActiveBackground;
23
+ const activeBorder = colors.navigationActiveBorder;
24
+ const activeIcon = colors.navigationActiveIcon;
25
+ const activeText = colors.navigationActiveText;
26
+ const dockBackground = colors.navigationBackground;
27
+ const dockBorder = colors.navigationBorder;
28
+ const dockShadow = colors.navigationShadow;
29
+ const inactiveIcon = colors.navigationIcon;
30
+ const inactiveText = colors.navigationText;
31
+
32
+ const styles = useMemo(
33
+ () =>
34
+ createStyles({
35
+ activeBackground,
36
+ dockBackground,
37
+ dockBorder,
38
+ dockShadow,
39
+ activeBorder,
40
+ useModernWebChromeProps,
41
+ }),
42
+ [
43
+ activeBackground,
44
+ activeBorder,
45
+ dockBackground,
46
+ dockBorder,
47
+ dockShadow,
48
+ useModernWebChromeProps,
49
+ ],
50
+ );
51
+
52
+ const resolveItemColors = ({isActive, isDisabled}) => {
53
+ if (isActive) {
54
+ return {
55
+ iconColor: activeIcon,
56
+ textColor: activeText,
57
+ };
58
+ }
59
+
60
+ if (isDisabled) {
61
+ return {
62
+ iconColor: colors.navigationDisabledIcon,
63
+ textColor: colors.navigationDisabledText,
64
+ };
65
+ }
66
+
67
+ return {
68
+ iconColor: inactiveIcon,
69
+ textColor: inactiveText,
70
+ };
71
+ };
72
+
73
+ const resolveItemStateStyles = ({isActive, isDisabled}) => [
74
+ styles.item,
75
+ isActive && styles.itemActive,
76
+ isDisabled && styles.itemDisabled,
77
+ isDisabled && {
78
+ backgroundColor: colors.navigationDisabledBackground,
79
+ borderColor: colors.navigationDisabledBorder,
80
+ },
81
+ ];
82
+
83
+ const resolvePressedStyles = ({pressed, isDisabled}) =>
84
+ pressed && !isDisabled
85
+ ? [
86
+ styles.itemPressed,
87
+ ]
88
+ : [];
89
+
90
+ useLayoutEffect(() => {
91
+ if (typeof registerBottomNavigation !== 'function') {
92
+ return undefined;
93
+ }
94
+
95
+ return registerBottomNavigation();
96
+ }, [registerBottomNavigation]);
97
+
98
+ const routeItems = Array.isArray(items) ? items : [];
99
+ const knownRoute = routeItems.some(item => item?.route === activeRouteName);
100
+ const effectiveActiveRoute = knownRoute
101
+ ? activeRouteName
102
+ : routeItems[0]?.route || '';
103
+
104
+ const navigateTo = item => {
105
+ try {
106
+ navigation?.navigate?.(item?.route, resolveMenuRouteParams(item?.routeParams));
107
+ } catch {
108
+ // Keep the footer stable if a route is unavailable in the current app flavor.
109
+ }
110
+ };
111
+
112
+ const hostProps = useModernWebChromeProps
113
+ ? {}
114
+ : {pointerEvents: 'box-none'};
115
+ const hostStyle = useModernWebChromeProps
116
+ ? [styles.host, styles.hostPointerEventsBoxNone]
117
+ : styles.host;
118
+ const footerProps = {
119
+ appVersion: runtimeFooter?.appVersion,
120
+ colors: runtimeFooter?.colors || {},
121
+ mainCompany: runtimeFooter?.mainCompany,
122
+ device: runtimeFooter?.device,
123
+ useModernWebChromeProps,
124
+ };
125
+
126
+ return (
127
+ <View {...hostProps} style={hostStyle}>
128
+ <View style={styles.stack}>
129
+ <View style={styles.dock} testID={testID}>
130
+ <View style={styles.itemsRow}>
131
+ {routeItems.map(item => {
132
+ const isActive = effectiveActiveRoute === item.route;
133
+ const isDisabled = disabled || item.disabled;
134
+ const iconSize = item.iconSize || 18;
135
+ const {iconColor, textColor} = resolveItemColors({
136
+ isActive,
137
+ isDisabled,
138
+ });
139
+
140
+ return (
141
+ <Pressable
142
+ key={item.route}
143
+ accessibilityRole="button"
144
+ disabled={isDisabled}
145
+ onPress={() => navigateTo(item)}
146
+ style={({pressed}) => [
147
+ ...resolveItemStateStyles({isActive, isDisabled}),
148
+ ...resolvePressedStyles({pressed, isDisabled}),
149
+ ]}>
150
+ <View style={styles.iconWrap}>
151
+ <Icon color={iconColor} name={item.icon} size={iconSize} />
152
+ </View>
153
+ <Text
154
+ numberOfLines={1}
155
+ style={[
156
+ styles.itemLabel,
157
+ {
158
+ color: textColor,
159
+ },
160
+ ]}>
161
+ {item.label}
162
+ </Text>
163
+ </Pressable>
164
+ );
165
+ })}
166
+ </View>
167
+ {/* app-community#384: texto do rodapé DEPOIS dos botões (não antes) */}
168
+ {runtimeFooter ? (
169
+ <View style={styles.footerSlot} testID="bottom-navigation-footer-slot">
170
+ <RuntimeInfoFooter {...footerProps} />
171
+ </View>
172
+ ) : null}
173
+ </View>
174
+ </View>
175
+ </View>
176
+ );
177
+ };
178
+
179
+ export default BottomNavigationBar;
@@ -1,118 +1,139 @@
1
- import {Platform, StyleSheet} from 'react-native';
2
-
3
- const resolveWebShadowColor = shadowColor => {
4
- if (typeof shadowColor !== 'string') {
5
- return 'rgba(0, 0, 0, 0.12)';
6
- }
7
-
8
- const normalized = shadowColor.trim();
9
- if (!normalized) {
10
- return 'rgba(0, 0, 0, 0.12)';
11
- }
12
-
13
- if (/^#[0-9a-f]{3}$/i.test(normalized)) {
14
- return `${normalized[0]}${normalized[1]}${normalized[1]}${normalized[2]}${normalized[2]}${normalized[3]}${normalized[3]}1f`;
15
- }
16
-
17
- if (/^#[0-9a-f]{6}$/i.test(normalized)) {
18
- return `${normalized}1f`;
19
- }
20
-
21
- if (/^#[0-9a-f]{4}$/i.test(normalized) || /^#[0-9a-f]{8}$/i.test(normalized)) {
22
- return normalized;
23
- }
24
-
25
- return normalized;
26
- };
27
-
28
- const createStyles = ({
29
- activeBackground,
30
- dockBackground,
31
- dockBorder,
32
- dockShadow,
33
- activeBorder,
34
- useModernWebChromeProps = false,
35
- }) =>
36
- StyleSheet.create({
37
- host: {
38
- position: Platform.OS === 'web' ? 'fixed' : 'absolute',
39
- left: 0,
40
- right: 0,
41
- bottom: 0,
42
- zIndex: 1000,
43
- backgroundColor: 'transparent',
44
- alignItems: 'stretch',
45
- },
46
- hostPointerEventsBoxNone: {
47
- pointerEvents: 'box-none',
48
- },
49
- stack: {
50
- width: '100%',
51
- alignItems: 'stretch',
52
- },
53
- dock: {
54
- flexDirection: 'row',
55
- alignItems: 'center',
56
- justifyContent: 'space-between',
57
- minHeight: 64,
58
- paddingHorizontal: 8,
59
- paddingTop: 8,
60
- paddingBottom: 8,
61
- borderWidth: 1,
62
- borderBottomWidth: 0,
63
- borderColor: dockBorder,
64
- borderTopLeftRadius: 24,
65
- borderTopRightRadius: 24,
66
- borderBottomLeftRadius: 0,
67
- borderBottomRightRadius: 0,
68
- backgroundColor: dockBackground,
69
- overflow: 'hidden',
70
- ...(Platform.OS === 'android'
71
- ? {elevation: 10}
72
- : Platform.OS === 'web' && useModernWebChromeProps
73
- ? {
74
- boxShadow: `0px -6px 14px ${resolveWebShadowColor(dockShadow)}`,
75
- }
76
- : {
77
- shadowColor: dockShadow,
78
- shadowOpacity: 0.12,
79
- shadowOffset: {width: 0, height: -6},
80
- shadowRadius: 14,
81
- }),
82
- },
83
- item: {
84
- flex: 1,
85
- minHeight: 44,
86
- alignItems: 'center',
87
- justifyContent: 'center',
88
- paddingVertical: 6,
89
- paddingHorizontal: 4,
90
- borderWidth: 1,
91
- borderColor: 'transparent',
92
- borderRadius: 18,
93
- },
94
- itemActive: {
95
- backgroundColor: activeBackground,
96
- borderColor: activeBorder,
97
- },
98
- itemPressed: {
99
- transform: [{scale: 0.99}],
100
- },
101
- itemDisabled: {},
102
- iconWrap: {
103
- width: 24,
104
- height: 24,
105
- borderRadius: 999,
106
- alignItems: 'center',
107
- justifyContent: 'center',
108
- marginBottom: 4,
109
- backgroundColor: 'transparent',
110
- },
111
- itemLabel: {
112
- fontSize: 12,
113
- fontWeight: '600',
114
- textAlign: 'center',
115
- },
116
- });
117
-
118
- export default createStyles;
1
+ import {Platform, StyleSheet} from 'react-native';
2
+
3
+ const resolveWebShadowColor = shadowColor => {
4
+ if (typeof shadowColor !== 'string') {
5
+ return 'rgba(0, 0, 0, 0.12)';
6
+ }
7
+
8
+ const normalized = shadowColor.trim();
9
+ if (!normalized) {
10
+ return 'rgba(0, 0, 0, 0.12)';
11
+ }
12
+
13
+ if (/^#[0-9a-f]{3}$/i.test(normalized)) {
14
+ return `${normalized[0]}${normalized[1]}${normalized[1]}${normalized[2]}${normalized[2]}${normalized[3]}${normalized[3]}1f`;
15
+ }
16
+
17
+ if (/^#[0-9a-f]{6}$/i.test(normalized)) {
18
+ return `${normalized}1f`;
19
+ }
20
+
21
+ if (/^#[0-9a-f]{4}$/i.test(normalized) || /^#[0-9a-f]{8}$/i.test(normalized)) {
22
+ return normalized;
23
+ }
24
+
25
+ return normalized;
26
+ };
27
+
28
+ const createStyles = ({
29
+ activeBackground,
30
+ dockBackground,
31
+ dockBorder,
32
+ dockShadow,
33
+ activeBorder,
34
+ useModernWebChromeProps = false,
35
+ }) =>
36
+ StyleSheet.create({
37
+ host: {
38
+ position: Platform.OS === 'web' ? 'fixed' : 'absolute',
39
+ left: 0,
40
+ right: 0,
41
+ bottom: 0,
42
+ zIndex: 1000,
43
+ backgroundColor: 'transparent',
44
+ alignItems: 'stretch',
45
+ },
46
+ hostPointerEventsBoxNone: {
47
+ pointerEvents: 'box-none',
48
+ },
49
+ stack: {
50
+ width: '100%',
51
+ alignItems: 'stretch',
52
+ },
53
+ dock: {
54
+ // app-community#828: column — buttons on top, runtime footer below.
55
+ // row was crushing nav buttons against the footer strip on the sides.
56
+ flexDirection: 'column',
57
+ alignItems: 'stretch',
58
+ justifyContent: 'flex-start',
59
+ minHeight: 64,
60
+ paddingHorizontal: 8,
61
+ paddingTop: 6,
62
+ paddingBottom: 8,
63
+ borderWidth: 1,
64
+ borderBottomWidth: 0,
65
+ borderColor: dockBorder,
66
+ borderTopLeftRadius: 24,
67
+ borderTopRightRadius: 24,
68
+ borderBottomLeftRadius: 0,
69
+ borderBottomRightRadius: 0,
70
+ backgroundColor: dockBackground,
71
+ overflow: 'visible',
72
+ ...(Platform.OS === 'android'
73
+ ? {elevation: 10}
74
+ : Platform.OS === 'web' && useModernWebChromeProps
75
+ ? {
76
+ boxShadow: `0px -6px 14px ${resolveWebShadowColor(dockShadow)}`,
77
+ }
78
+ : {
79
+ shadowColor: dockShadow,
80
+ shadowOpacity: 0.12,
81
+ shadowOffset: {width: 0, height: -6},
82
+ shadowRadius: 14,
83
+ }),
84
+ },
85
+ footerSlot: {
86
+ // Strip below the nav buttons (#384): text after buttons, same dock chrome
87
+ width: '100%',
88
+ minHeight: 24,
89
+ paddingHorizontal: 4,
90
+ paddingTop: 2,
91
+ paddingBottom: 2,
92
+ flexShrink: 0,
93
+ zIndex: 1,
94
+ },
95
+ itemsRow: {
96
+ flexDirection: 'row',
97
+ alignItems: 'center',
98
+ justifyContent: 'space-between',
99
+ width: '100%',
100
+ minHeight: 52,
101
+ flexShrink: 0,
102
+ },
103
+ item: {
104
+ flex: 1,
105
+ minWidth: 56,
106
+ minHeight: 44,
107
+ alignItems: 'center',
108
+ justifyContent: 'center',
109
+ paddingVertical: 6,
110
+ paddingHorizontal: 4,
111
+ borderWidth: 1,
112
+ borderColor: 'transparent',
113
+ borderRadius: 18,
114
+ },
115
+ itemActive: {
116
+ backgroundColor: activeBackground,
117
+ borderColor: activeBorder,
118
+ },
119
+ itemPressed: {
120
+ transform: [{scale: 0.99}],
121
+ },
122
+ itemDisabled: {},
123
+ iconWrap: {
124
+ width: 24,
125
+ height: 24,
126
+ borderRadius: 999,
127
+ alignItems: 'center',
128
+ justifyContent: 'center',
129
+ marginBottom: 4,
130
+ backgroundColor: 'transparent',
131
+ },
132
+ itemLabel: {
133
+ fontSize: 12,
134
+ fontWeight: '600',
135
+ textAlign: 'center',
136
+ },
137
+ });
138
+
139
+ export default createStyles;