@nexara/nativeflow 0.1.8 → 0.1.10
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/lib/commonjs/assets/svg/Check.js.map +1 -1
- package/lib/commonjs/assets/svg/X.js.map +1 -1
- package/lib/commonjs/assets/svg/index.js.map +1 -1
- package/lib/commonjs/components/Avatar/AvatarImage.js.map +1 -1
- package/lib/commonjs/components/Avatar/AvatarText.js.map +1 -1
- package/lib/commonjs/components/Avatar/index.js.map +1 -1
- package/lib/commonjs/components/Button/Button.js +9 -4
- package/lib/commonjs/components/Button/Button.js.map +1 -1
- package/lib/commonjs/components/Button/utils.js +17 -10
- package/lib/commonjs/components/Button/utils.js.map +1 -1
- package/lib/commonjs/components/CheckBox/CheckBox.js.map +1 -1
- package/lib/commonjs/components/Chip/Chip.js.map +1 -1
- package/lib/commonjs/components/Chip/utils.js.map +1 -1
- package/lib/commonjs/components/Dialog/Dialog.js.map +1 -1
- package/lib/commonjs/components/Dialog/DialogBody.js.map +1 -1
- package/lib/commonjs/components/Dialog/DialogDescription.js.map +1 -1
- package/lib/commonjs/components/Dialog/DialogFoot.js.map +1 -1
- package/lib/commonjs/components/Dialog/DialogHead.js.map +1 -1
- package/lib/commonjs/components/Dialog/index.js.map +1 -1
- package/lib/commonjs/components/Divider/Divider.js.map +1 -1
- package/lib/commonjs/components/Grid/Grid.js.map +1 -1
- package/lib/commonjs/components/Icon/Icon.js.map +1 -1
- package/lib/commonjs/components/IconButton/IconButton.js.map +1 -1
- package/lib/commonjs/components/Link/Link.js.map +1 -1
- package/lib/commonjs/components/Menu/Menu.js.map +1 -1
- package/lib/commonjs/components/Menu/MenuItem.js.map +1 -1
- package/lib/commonjs/components/Menu/MenuItemLabel.js.map +1 -1
- package/lib/commonjs/components/Menu/calculations.js.map +1 -1
- package/lib/commonjs/components/Menu/index.js.map +1 -1
- package/lib/commonjs/components/Portal/Portal.js.map +1 -1
- package/lib/commonjs/components/Portal/PortalContext.js.map +1 -1
- package/lib/commonjs/components/Portal/PortalProvider.js.map +1 -1
- package/lib/commonjs/components/Progress/Progress.js.map +1 -1
- package/lib/commonjs/components/Provider/ContextManager.js.map +1 -1
- package/lib/commonjs/components/Provider/NativeProvider.js.map +1 -1
- package/lib/commonjs/components/Radio/RadioGroup.js.map +1 -1
- package/lib/commonjs/components/Radio/RadioItem.js.map +1 -1
- package/lib/commonjs/components/Radio/index.js.map +1 -1
- package/lib/commonjs/components/Slider/Slider.js.map +1 -1
- package/lib/commonjs/components/Stack/HStack.js.map +1 -1
- package/lib/commonjs/components/Stack/VStack.js.map +1 -1
- package/lib/commonjs/components/Stack/index.js.map +1 -1
- package/lib/commonjs/components/StyledComponents/StyledText.js +3 -1
- package/lib/commonjs/components/StyledComponents/StyledText.js.map +1 -1
- package/lib/commonjs/components/StyledComponents/StyledView.js.map +1 -1
- package/lib/commonjs/components/StyledComponents/index.js.map +1 -1
- package/lib/commonjs/components/Surface/Surface.js +3 -3
- package/lib/commonjs/components/Surface/Surface.js.map +1 -1
- package/lib/commonjs/components/Switch/Switch.js.map +1 -1
- package/lib/commonjs/components/TouchableRipple/TouchableRipple.js.map +1 -1
- package/lib/commonjs/components/UserInput/UserInput.js.map +1 -1
- package/lib/commonjs/components/UserInput/UserInputV2.js.map +1 -1
- package/lib/commonjs/components/UserInput/generateColors.js.map +1 -1
- package/lib/commonjs/constants/breakPoints.js.map +1 -1
- package/lib/commonjs/constants/dialogSizes.js.map +1 -1
- package/lib/commonjs/constants/index.js.map +1 -1
- package/lib/commonjs/constants/theme.js.map +1 -1
- package/lib/commonjs/constants/typographySizes.js.map +1 -1
- package/lib/commonjs/helpers/CalculateGridSize.js +1 -1
- package/lib/commonjs/helpers/CalculateGridSize.js.map +1 -1
- package/lib/commonjs/helpers/DeviceSizeCategory.js.map +1 -1
- package/lib/commonjs/helpers/ResponsiveCalculations.js +4 -1
- package/lib/commonjs/helpers/ResponsiveCalculations.js.map +1 -1
- package/lib/commonjs/helpers/index.js.map +1 -1
- package/lib/commonjs/hooks/index.js.map +1 -1
- package/lib/commonjs/hooks/useColorScheme.js.map +1 -1
- package/lib/commonjs/hooks/useConditionalWindowDimension.js.map +1 -1
- package/lib/commonjs/hooks/useScalingMode.js.map +1 -1
- package/lib/commonjs/hooks/useTheme.js.map +1 -1
- package/lib/commonjs/index.d.js.map +1 -1
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/themes/DarkTheme.js.map +1 -1
- package/lib/commonjs/themes/LightTheme.js.map +1 -1
- package/lib/commonjs/themes/index.js.map +1 -1
- package/lib/commonjs/types/avatar.type.js.map +1 -1
- package/lib/commonjs/types/button.type.js.map +1 -1
- package/lib/commonjs/types/checkbox.type.js.map +1 -1
- package/lib/commonjs/types/chip.type.js.map +1 -1
- package/lib/commonjs/types/common.type.js.map +1 -1
- package/lib/commonjs/types/dialog.type.js.map +1 -1
- package/lib/commonjs/types/divider.type.js.map +1 -1
- package/lib/commonjs/types/grid.type.js.map +1 -1
- package/lib/commonjs/types/index.js.map +1 -1
- package/lib/commonjs/types/link.type.js.map +1 -1
- package/lib/commonjs/types/menu.type.js.map +1 -1
- package/lib/commonjs/types/progress.type.js.map +1 -1
- package/lib/commonjs/types/radio.type.js.map +1 -1
- package/lib/commonjs/types/stack.type.js.map +1 -1
- package/lib/commonjs/types/styledComponents.type.js.map +1 -1
- package/lib/commonjs/types/surface.type.js.map +1 -1
- package/lib/commonjs/types/switch.type.js.map +1 -1
- package/lib/commonjs/types/userInput.type.js.map +1 -1
- package/lib/commonjs/utils/index.js.map +1 -1
- package/lib/module/assets/svg/Check.js.map +1 -1
- package/lib/module/assets/svg/X.js.map +1 -1
- package/lib/module/assets/svg/index.js.map +1 -1
- package/lib/module/components/Avatar/AvatarImage.js.map +1 -1
- package/lib/module/components/Avatar/AvatarText.js.map +1 -1
- package/lib/module/components/Avatar/index.js.map +1 -1
- package/lib/module/components/Button/Button.js +10 -5
- package/lib/module/components/Button/Button.js.map +1 -1
- package/lib/module/components/Button/utils.js +17 -10
- package/lib/module/components/Button/utils.js.map +1 -1
- package/lib/module/components/CheckBox/CheckBox.js.map +1 -1
- package/lib/module/components/Chip/Chip.js.map +1 -1
- package/lib/module/components/Chip/utils.js.map +1 -1
- package/lib/module/components/Dialog/Dialog.js.map +1 -1
- package/lib/module/components/Dialog/DialogBody.js.map +1 -1
- package/lib/module/components/Dialog/DialogDescription.js.map +1 -1
- package/lib/module/components/Dialog/DialogFoot.js.map +1 -1
- package/lib/module/components/Dialog/DialogHead.js.map +1 -1
- package/lib/module/components/Dialog/index.js.map +1 -1
- package/lib/module/components/Divider/Divider.js.map +1 -1
- package/lib/module/components/Grid/Grid.js.map +1 -1
- package/lib/module/components/Icon/Icon.js.map +1 -1
- package/lib/module/components/IconButton/IconButton.js.map +1 -1
- package/lib/module/components/Link/Link.js.map +1 -1
- package/lib/module/components/Menu/Menu.js.map +1 -1
- package/lib/module/components/Menu/MenuItem.js.map +1 -1
- package/lib/module/components/Menu/MenuItemLabel.js.map +1 -1
- package/lib/module/components/Menu/calculations.js.map +1 -1
- package/lib/module/components/Menu/index.js.map +1 -1
- package/lib/module/components/Portal/Portal.js.map +1 -1
- package/lib/module/components/Portal/PortalContext.js.map +1 -1
- package/lib/module/components/Portal/PortalProvider.js.map +1 -1
- package/lib/module/components/Progress/Progress.js.map +1 -1
- package/lib/module/components/Provider/ContextManager.js.map +1 -1
- package/lib/module/components/Provider/NativeProvider.js.map +1 -1
- package/lib/module/components/Radio/RadioGroup.js.map +1 -1
- package/lib/module/components/Radio/RadioItem.js.map +1 -1
- package/lib/module/components/Radio/index.js.map +1 -1
- package/lib/module/components/Slider/Slider.js.map +1 -1
- package/lib/module/components/Stack/HStack.js.map +1 -1
- package/lib/module/components/Stack/VStack.js.map +1 -1
- package/lib/module/components/Stack/index.js.map +1 -1
- package/lib/module/components/StyledComponents/StyledText.js +3 -1
- package/lib/module/components/StyledComponents/StyledText.js.map +1 -1
- package/lib/module/components/StyledComponents/StyledView.js.map +1 -1
- package/lib/module/components/StyledComponents/index.js.map +1 -1
- package/lib/module/components/Surface/Surface.js +3 -3
- package/lib/module/components/Surface/Surface.js.map +1 -1
- package/lib/module/components/Switch/Switch.js.map +1 -1
- package/lib/module/components/TouchableRipple/TouchableRipple.js.map +1 -1
- package/lib/module/components/UserInput/UserInput.js.map +1 -1
- package/lib/module/components/UserInput/UserInputV2.js.map +1 -1
- package/lib/module/components/UserInput/generateColors.js.map +1 -1
- package/lib/module/constants/breakPoints.js.map +1 -1
- package/lib/module/constants/dialogSizes.js.map +1 -1
- package/lib/module/constants/index.js.map +1 -1
- package/lib/module/constants/theme.js.map +1 -1
- package/lib/module/constants/typographySizes.js.map +1 -1
- package/lib/module/helpers/CalculateGridSize.js +1 -1
- package/lib/module/helpers/CalculateGridSize.js.map +1 -1
- package/lib/module/helpers/DeviceSizeCategory.js.map +1 -1
- package/lib/module/helpers/ResponsiveCalculations.js +4 -1
- package/lib/module/helpers/ResponsiveCalculations.js.map +1 -1
- package/lib/module/helpers/index.js.map +1 -1
- package/lib/module/hooks/index.js.map +1 -1
- package/lib/module/hooks/useColorScheme.js.map +1 -1
- package/lib/module/hooks/useConditionalWindowDimension.js.map +1 -1
- package/lib/module/hooks/useScalingMode.js.map +1 -1
- package/lib/module/hooks/useTheme.js.map +1 -1
- package/lib/module/index.d.js.map +1 -1
- package/lib/module/index.js.map +1 -1
- package/lib/module/themes/DarkTheme.js.map +1 -1
- package/lib/module/themes/LightTheme.js.map +1 -1
- package/lib/module/themes/index.js.map +1 -1
- package/lib/module/types/avatar.type.js.map +1 -1
- package/lib/module/types/button.type.js.map +1 -1
- package/lib/module/types/checkbox.type.js.map +1 -1
- package/lib/module/types/chip.type.js.map +1 -1
- package/lib/module/types/common.type.js.map +1 -1
- package/lib/module/types/dialog.type.js.map +1 -1
- package/lib/module/types/divider.type.js.map +1 -1
- package/lib/module/types/grid.type.js.map +1 -1
- package/lib/module/types/index.js.map +1 -1
- package/lib/module/types/link.type.js.map +1 -1
- package/lib/module/types/menu.type.js.map +1 -1
- package/lib/module/types/progress.type.js.map +1 -1
- package/lib/module/types/radio.type.js.map +1 -1
- package/lib/module/types/stack.type.js.map +1 -1
- package/lib/module/types/styledComponents.type.js.map +1 -1
- package/lib/module/types/surface.type.js.map +1 -1
- package/lib/module/types/switch.type.js.map +1 -1
- package/lib/module/types/userInput.type.js.map +1 -1
- package/lib/module/utils/index.js.map +1 -1
- package/lib/typescript/commonjs/src/components/Button/Button.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/Button/utils.d.ts +2 -1
- package/lib/typescript/commonjs/src/components/Button/utils.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/UserInput/UserInput.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/helpers/ResponsiveCalculations.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/types/button.type.d.ts +2 -0
- package/lib/typescript/commonjs/src/types/button.type.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/types/surface.type.d.ts +1 -1
- package/lib/typescript/commonjs/src/types/surface.type.d.ts.map +1 -1
- package/lib/typescript/module/src/components/Button/Button.d.ts.map +1 -1
- package/lib/typescript/module/src/components/Button/utils.d.ts +2 -1
- package/lib/typescript/module/src/components/Button/utils.d.ts.map +1 -1
- package/lib/typescript/module/src/components/UserInput/UserInput.d.ts.map +1 -1
- package/lib/typescript/module/src/helpers/ResponsiveCalculations.d.ts.map +1 -1
- package/lib/typescript/module/src/types/button.type.d.ts +2 -0
- package/lib/typescript/module/src/types/button.type.d.ts.map +1 -1
- package/lib/typescript/module/src/types/surface.type.d.ts +1 -1
- package/lib/typescript/module/src/types/surface.type.d.ts.map +1 -1
- package/package.json +2 -2
- package/src/assets/svg/Check.tsx +16 -16
- package/src/assets/svg/X.tsx +15 -15
- package/src/assets/svg/index.ts +1 -1
- package/src/components/Avatar/AvatarImage.tsx +33 -33
- package/src/components/Avatar/AvatarText.tsx +34 -34
- package/src/components/Avatar/index.ts +8 -8
- package/src/components/Button/Button.tsx +216 -205
- package/src/components/Button/utils.ts +152 -141
- package/src/components/CheckBox/CheckBox.tsx +118 -118
- package/src/components/Chip/Chip.tsx +82 -82
- package/src/components/Chip/utils.ts +109 -109
- package/src/components/Dialog/Dialog.tsx +124 -124
- package/src/components/Dialog/DialogBody.tsx +31 -31
- package/src/components/Dialog/DialogDescription.tsx +27 -27
- package/src/components/Dialog/DialogFoot.tsx +35 -35
- package/src/components/Dialog/DialogHead.tsx +50 -50
- package/src/components/Dialog/index.ts +10 -10
- package/src/components/Divider/Divider.tsx +22 -22
- package/src/components/Grid/Grid.tsx +61 -61
- package/src/components/Icon/Icon.tsx +31 -31
- package/src/components/IconButton/IconButton.tsx +44 -44
- package/src/components/Link/Link.tsx +38 -38
- package/src/components/Menu/Menu.tsx +142 -142
- package/src/components/Menu/MenuItem.tsx +33 -33
- package/src/components/Menu/MenuItemLabel.tsx +21 -21
- package/src/components/Menu/calculations.ts +33 -33
- package/src/components/Menu/index.ts +7 -7
- package/src/components/Portal/Portal.tsx +18 -18
- package/src/components/Portal/PortalContext.tsx +9 -9
- package/src/components/Portal/PortalProvider.tsx +36 -36
- package/src/components/Progress/Progress.tsx +66 -66
- package/src/components/Provider/ContextManager.tsx +8 -8
- package/src/components/Provider/NativeProvider.tsx +72 -72
- package/src/components/Radio/RadioGroup.tsx +39 -39
- package/src/components/Radio/RadioItem.tsx +72 -72
- package/src/components/Radio/index.ts +8 -8
- package/src/components/Slider/Slider.tsx +45 -45
- package/src/components/Stack/HStack.tsx +32 -32
- package/src/components/Stack/VStack.tsx +26 -26
- package/src/components/Stack/index.ts +8 -8
- package/src/components/StyledComponents/StyledText.tsx +49 -49
- package/src/components/StyledComponents/StyledView.tsx +44 -44
- package/src/components/StyledComponents/index.tsx +5 -5
- package/src/components/Surface/Surface.tsx +31 -31
- package/src/components/Switch/Switch.tsx +36 -36
- package/src/components/TouchableRipple/TouchableRipple.tsx +92 -92
- package/src/components/UserInput/UserInput.tsx +135 -135
- package/src/components/UserInput/UserInputV2.tsx +132 -132
- package/src/components/UserInput/generateColors.ts +13 -13
- package/src/constants/breakPoints.ts +17 -17
- package/src/constants/dialogSizes.ts +11 -11
- package/src/constants/index.ts +2 -2
- package/src/constants/theme.ts +32 -32
- package/src/constants/typographySizes.ts +19 -19
- package/src/helpers/CalculateGridSize.ts +25 -25
- package/src/helpers/DeviceSizeCategory.ts +21 -21
- package/src/helpers/ResponsiveCalculations.ts +107 -104
- package/src/helpers/index.ts +2 -2
- package/src/hooks/index.ts +3 -3
- package/src/hooks/useColorScheme.tsx +11 -11
- package/src/hooks/useConditionalWindowDimension.tsx +7 -7
- package/src/hooks/useScalingMode.tsx +6 -6
- package/src/hooks/useTheme.tsx +12 -12
- package/src/index.d.ts +2 -2
- package/src/index.ts +52 -52
- package/src/themes/DarkTheme.ts +177 -177
- package/src/themes/LightTheme.ts +88 -88
- package/src/themes/index.ts +3 -3
- package/src/types/avatar.type.ts +40 -40
- package/src/types/button.type.ts +79 -76
- package/src/types/checkbox.type.ts +64 -64
- package/src/types/chip.type.ts +65 -65
- package/src/types/common.type.ts +109 -109
- package/src/types/dialog.type.ts +89 -89
- package/src/types/divider.type.ts +15 -15
- package/src/types/grid.type.ts +71 -71
- package/src/types/index.ts +16 -16
- package/src/types/link.type.ts +14 -14
- package/src/types/menu.type.ts +100 -100
- package/src/types/progress.type.ts +15 -15
- package/src/types/radio.type.ts +78 -78
- package/src/types/stack.type.ts +46 -46
- package/src/types/styledComponents.type.ts +70 -70
- package/src/types/surface.type.ts +19 -19
- package/src/types/switch.type.ts +39 -39
- package/src/types/userInput.type.ts +98 -98
|
@@ -1,82 +1,82 @@
|
|
|
1
|
-
import React, { type FC } from 'react';
|
|
2
|
-
import { StyleSheet, TouchableOpacity } from 'react-native';
|
|
3
|
-
import { StyledText, StyledView } from '../StyledComponents';
|
|
4
|
-
import { horizontalScale, verticalScale } from "../../helpers/ResponsiveCalculations";
|
|
5
|
-
import { useTheme } from '../../hooks';
|
|
6
|
-
import { getChipColors } from './utils';
|
|
7
|
-
import type { ChipProps } from '../../types';
|
|
8
|
-
|
|
9
|
-
const Chip: FC<ChipProps> = ({
|
|
10
|
-
label = 'Chip',
|
|
11
|
-
labelColor,
|
|
12
|
-
fs,
|
|
13
|
-
fScale = 'sm',
|
|
14
|
-
ff,
|
|
15
|
-
bg,
|
|
16
|
-
br = 7,
|
|
17
|
-
gap = 7,
|
|
18
|
-
paddingV = 6,
|
|
19
|
-
paddingH = 15,
|
|
20
|
-
stroke = 0.8,
|
|
21
|
-
strokeColor,
|
|
22
|
-
rippleColor,
|
|
23
|
-
disabled = false,
|
|
24
|
-
renderLeftIcon,
|
|
25
|
-
renderRightIcon,
|
|
26
|
-
containerStyle,
|
|
27
|
-
textStyle,
|
|
28
|
-
active = false,
|
|
29
|
-
...rest
|
|
30
|
-
}) => {
|
|
31
|
-
|
|
32
|
-
const theme: any = useTheme();
|
|
33
|
-
|
|
34
|
-
const { buttonTextColor, buttonBorderColor, backgroundColor } = getChipColors({
|
|
35
|
-
theme,
|
|
36
|
-
bg,
|
|
37
|
-
labelColor,
|
|
38
|
-
strokeColor,
|
|
39
|
-
disabled,
|
|
40
|
-
active
|
|
41
|
-
});
|
|
42
|
-
|
|
43
|
-
const STYLES = StyleSheet.create({
|
|
44
|
-
CONTAINER: {
|
|
45
|
-
flexDirection: 'row',
|
|
46
|
-
alignItems: 'center',
|
|
47
|
-
borderWidth: stroke,
|
|
48
|
-
borderColor: buttonBorderColor,
|
|
49
|
-
backgroundColor: backgroundColor,
|
|
50
|
-
borderRadius: verticalScale(br),
|
|
51
|
-
paddingVertical: verticalScale(paddingV),
|
|
52
|
-
paddingLeft: horizontalScale((renderLeftIcon && paddingH / 2) ?? paddingH),
|
|
53
|
-
paddingRight: horizontalScale((renderRightIcon && paddingH / 2) ?? paddingH),
|
|
54
|
-
gap: horizontalScale(gap)
|
|
55
|
-
},
|
|
56
|
-
TEXT: {
|
|
57
|
-
color: buttonTextColor,
|
|
58
|
-
}
|
|
59
|
-
});
|
|
60
|
-
return (<>
|
|
61
|
-
<StyledView alignSelf='flex-start'>
|
|
62
|
-
<TouchableOpacity
|
|
63
|
-
disabled={disabled}
|
|
64
|
-
{...rest}
|
|
65
|
-
>
|
|
66
|
-
<StyledView style={[STYLES.CONTAINER, containerStyle]}>
|
|
67
|
-
{
|
|
68
|
-
React.isValidElement(renderLeftIcon) && renderLeftIcon
|
|
69
|
-
}
|
|
70
|
-
<StyledText fScale={fScale} ff={ff} fs={fs} style={[STYLES.TEXT, textStyle]}>{label}</StyledText>
|
|
71
|
-
{
|
|
72
|
-
React.isValidElement(renderRightIcon) && renderRightIcon
|
|
73
|
-
}
|
|
74
|
-
</StyledView>
|
|
75
|
-
|
|
76
|
-
</TouchableOpacity>
|
|
77
|
-
</StyledView>
|
|
78
|
-
</>);
|
|
79
|
-
}
|
|
80
|
-
export default Chip;
|
|
81
|
-
export type { ChipProps };
|
|
82
|
-
|
|
1
|
+
import React, { type FC } from 'react';
|
|
2
|
+
import { StyleSheet, TouchableOpacity } from 'react-native';
|
|
3
|
+
import { StyledText, StyledView } from '../StyledComponents';
|
|
4
|
+
import { horizontalScale, verticalScale } from "../../helpers/ResponsiveCalculations";
|
|
5
|
+
import { useTheme } from '../../hooks';
|
|
6
|
+
import { getChipColors } from './utils';
|
|
7
|
+
import type { ChipProps } from '../../types';
|
|
8
|
+
|
|
9
|
+
const Chip: FC<ChipProps> = ({
|
|
10
|
+
label = 'Chip',
|
|
11
|
+
labelColor,
|
|
12
|
+
fs,
|
|
13
|
+
fScale = 'sm',
|
|
14
|
+
ff,
|
|
15
|
+
bg,
|
|
16
|
+
br = 7,
|
|
17
|
+
gap = 7,
|
|
18
|
+
paddingV = 6,
|
|
19
|
+
paddingH = 15,
|
|
20
|
+
stroke = 0.8,
|
|
21
|
+
strokeColor,
|
|
22
|
+
rippleColor,
|
|
23
|
+
disabled = false,
|
|
24
|
+
renderLeftIcon,
|
|
25
|
+
renderRightIcon,
|
|
26
|
+
containerStyle,
|
|
27
|
+
textStyle,
|
|
28
|
+
active = false,
|
|
29
|
+
...rest
|
|
30
|
+
}) => {
|
|
31
|
+
|
|
32
|
+
const theme: any = useTheme();
|
|
33
|
+
|
|
34
|
+
const { buttonTextColor, buttonBorderColor, backgroundColor } = getChipColors({
|
|
35
|
+
theme,
|
|
36
|
+
bg,
|
|
37
|
+
labelColor,
|
|
38
|
+
strokeColor,
|
|
39
|
+
disabled,
|
|
40
|
+
active
|
|
41
|
+
});
|
|
42
|
+
|
|
43
|
+
const STYLES = StyleSheet.create({
|
|
44
|
+
CONTAINER: {
|
|
45
|
+
flexDirection: 'row',
|
|
46
|
+
alignItems: 'center',
|
|
47
|
+
borderWidth: stroke,
|
|
48
|
+
borderColor: buttonBorderColor,
|
|
49
|
+
backgroundColor: backgroundColor,
|
|
50
|
+
borderRadius: verticalScale(br),
|
|
51
|
+
paddingVertical: verticalScale(paddingV),
|
|
52
|
+
paddingLeft: horizontalScale((renderLeftIcon && paddingH / 2) ?? paddingH),
|
|
53
|
+
paddingRight: horizontalScale((renderRightIcon && paddingH / 2) ?? paddingH),
|
|
54
|
+
gap: horizontalScale(gap)
|
|
55
|
+
},
|
|
56
|
+
TEXT: {
|
|
57
|
+
color: buttonTextColor,
|
|
58
|
+
}
|
|
59
|
+
});
|
|
60
|
+
return (<>
|
|
61
|
+
<StyledView alignSelf='flex-start'>
|
|
62
|
+
<TouchableOpacity
|
|
63
|
+
disabled={disabled}
|
|
64
|
+
{...rest}
|
|
65
|
+
>
|
|
66
|
+
<StyledView style={[STYLES.CONTAINER, containerStyle]}>
|
|
67
|
+
{
|
|
68
|
+
React.isValidElement(renderLeftIcon) && renderLeftIcon
|
|
69
|
+
}
|
|
70
|
+
<StyledText fScale={fScale} ff={ff} fs={fs} style={[STYLES.TEXT, textStyle]}>{label}</StyledText>
|
|
71
|
+
{
|
|
72
|
+
React.isValidElement(renderRightIcon) && renderRightIcon
|
|
73
|
+
}
|
|
74
|
+
</StyledView>
|
|
75
|
+
|
|
76
|
+
</TouchableOpacity>
|
|
77
|
+
</StyledView>
|
|
78
|
+
</>);
|
|
79
|
+
}
|
|
80
|
+
export default Chip;
|
|
81
|
+
export type { ChipProps };
|
|
82
|
+
|
|
@@ -1,110 +1,110 @@
|
|
|
1
|
-
import Color from "color";
|
|
2
|
-
import type { ThemeTypes } from "../../types";
|
|
3
|
-
|
|
4
|
-
const getBorderColor = ({
|
|
5
|
-
theme,
|
|
6
|
-
strokeColor,
|
|
7
|
-
disabled,
|
|
8
|
-
active
|
|
9
|
-
}: {
|
|
10
|
-
theme: ThemeTypes;
|
|
11
|
-
strokeColor: string | undefined;
|
|
12
|
-
disabled: boolean;
|
|
13
|
-
active: boolean;
|
|
14
|
-
}) => {
|
|
15
|
-
if (disabled) {
|
|
16
|
-
return theme.colors.border.strong;
|
|
17
|
-
} else if (strokeColor) {
|
|
18
|
-
return strokeColor
|
|
19
|
-
} else if (active) {
|
|
20
|
-
return Color(theme.colors.brand.primary).alpha(0.3).rgb().toString();
|
|
21
|
-
}
|
|
22
|
-
return theme.colors.border.default;
|
|
23
|
-
};
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
const getTextColor = ({
|
|
27
|
-
theme,
|
|
28
|
-
labelColor,
|
|
29
|
-
disabled
|
|
30
|
-
}: {
|
|
31
|
-
theme: ThemeTypes;
|
|
32
|
-
labelColor: string | undefined;
|
|
33
|
-
disabled: boolean;
|
|
34
|
-
}) => {
|
|
35
|
-
if (disabled) {
|
|
36
|
-
return theme.colors.typography.disabled;
|
|
37
|
-
}
|
|
38
|
-
else if (labelColor) {
|
|
39
|
-
return labelColor;
|
|
40
|
-
}
|
|
41
|
-
return theme.colors.typography.secondary;
|
|
42
|
-
};
|
|
43
|
-
|
|
44
|
-
const getBgColor = ({
|
|
45
|
-
theme,
|
|
46
|
-
bg,
|
|
47
|
-
disabled,
|
|
48
|
-
active
|
|
49
|
-
}: {
|
|
50
|
-
theme: ThemeTypes;
|
|
51
|
-
bg: string | undefined;
|
|
52
|
-
disabled: boolean;
|
|
53
|
-
active: boolean;
|
|
54
|
-
}) => {
|
|
55
|
-
if (disabled) {
|
|
56
|
-
return theme.colors.states.disabled;
|
|
57
|
-
} else if (bg) {
|
|
58
|
-
return bg
|
|
59
|
-
} else if (active) {
|
|
60
|
-
return Color(theme.colors.brand.primary).alpha(0.1).rgb().toString();
|
|
61
|
-
}
|
|
62
|
-
return 'transparent'
|
|
63
|
-
// return theme.colors.background.default
|
|
64
|
-
// return Color(theme.colors.brand.primary).alpha(0.2).rgb().toString();
|
|
65
|
-
// return Color(theme.colors.brand.primary).alpha(0.1).rgb().toString();
|
|
66
|
-
};
|
|
67
|
-
|
|
68
|
-
const getChipColors = ({
|
|
69
|
-
theme,
|
|
70
|
-
bg,
|
|
71
|
-
labelColor,
|
|
72
|
-
strokeColor,
|
|
73
|
-
disabled,
|
|
74
|
-
active
|
|
75
|
-
}: {
|
|
76
|
-
theme: ThemeTypes;
|
|
77
|
-
bg: string | undefined;
|
|
78
|
-
labelColor: string | undefined;
|
|
79
|
-
strokeColor: string | undefined;
|
|
80
|
-
disabled: boolean;
|
|
81
|
-
active: boolean;
|
|
82
|
-
}) => {
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
const backgroundColor = getBgColor({
|
|
86
|
-
theme,
|
|
87
|
-
bg,
|
|
88
|
-
disabled,
|
|
89
|
-
active
|
|
90
|
-
});
|
|
91
|
-
const buttonTextColor = getTextColor({
|
|
92
|
-
theme,
|
|
93
|
-
labelColor,
|
|
94
|
-
disabled
|
|
95
|
-
});
|
|
96
|
-
const buttonBorderColor = getBorderColor({
|
|
97
|
-
theme,
|
|
98
|
-
strokeColor,
|
|
99
|
-
disabled,
|
|
100
|
-
active
|
|
101
|
-
});
|
|
102
|
-
|
|
103
|
-
return {
|
|
104
|
-
backgroundColor,
|
|
105
|
-
buttonTextColor,
|
|
106
|
-
buttonBorderColor
|
|
107
|
-
}
|
|
108
|
-
};
|
|
109
|
-
|
|
1
|
+
import Color from "color";
|
|
2
|
+
import type { ThemeTypes } from "../../types";
|
|
3
|
+
|
|
4
|
+
const getBorderColor = ({
|
|
5
|
+
theme,
|
|
6
|
+
strokeColor,
|
|
7
|
+
disabled,
|
|
8
|
+
active
|
|
9
|
+
}: {
|
|
10
|
+
theme: ThemeTypes;
|
|
11
|
+
strokeColor: string | undefined;
|
|
12
|
+
disabled: boolean;
|
|
13
|
+
active: boolean;
|
|
14
|
+
}) => {
|
|
15
|
+
if (disabled) {
|
|
16
|
+
return theme.colors.border.strong;
|
|
17
|
+
} else if (strokeColor) {
|
|
18
|
+
return strokeColor
|
|
19
|
+
} else if (active) {
|
|
20
|
+
return Color(theme.colors.brand.primary).alpha(0.3).rgb().toString();
|
|
21
|
+
}
|
|
22
|
+
return theme.colors.border.default;
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
const getTextColor = ({
|
|
27
|
+
theme,
|
|
28
|
+
labelColor,
|
|
29
|
+
disabled
|
|
30
|
+
}: {
|
|
31
|
+
theme: ThemeTypes;
|
|
32
|
+
labelColor: string | undefined;
|
|
33
|
+
disabled: boolean;
|
|
34
|
+
}) => {
|
|
35
|
+
if (disabled) {
|
|
36
|
+
return theme.colors.typography.disabled;
|
|
37
|
+
}
|
|
38
|
+
else if (labelColor) {
|
|
39
|
+
return labelColor;
|
|
40
|
+
}
|
|
41
|
+
return theme.colors.typography.secondary;
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
const getBgColor = ({
|
|
45
|
+
theme,
|
|
46
|
+
bg,
|
|
47
|
+
disabled,
|
|
48
|
+
active
|
|
49
|
+
}: {
|
|
50
|
+
theme: ThemeTypes;
|
|
51
|
+
bg: string | undefined;
|
|
52
|
+
disabled: boolean;
|
|
53
|
+
active: boolean;
|
|
54
|
+
}) => {
|
|
55
|
+
if (disabled) {
|
|
56
|
+
return theme.colors.states.disabled;
|
|
57
|
+
} else if (bg) {
|
|
58
|
+
return bg
|
|
59
|
+
} else if (active) {
|
|
60
|
+
return Color(theme.colors.brand.primary).alpha(0.1).rgb().toString();
|
|
61
|
+
}
|
|
62
|
+
return 'transparent'
|
|
63
|
+
// return theme.colors.background.default
|
|
64
|
+
// return Color(theme.colors.brand.primary).alpha(0.2).rgb().toString();
|
|
65
|
+
// return Color(theme.colors.brand.primary).alpha(0.1).rgb().toString();
|
|
66
|
+
};
|
|
67
|
+
|
|
68
|
+
const getChipColors = ({
|
|
69
|
+
theme,
|
|
70
|
+
bg,
|
|
71
|
+
labelColor,
|
|
72
|
+
strokeColor,
|
|
73
|
+
disabled,
|
|
74
|
+
active
|
|
75
|
+
}: {
|
|
76
|
+
theme: ThemeTypes;
|
|
77
|
+
bg: string | undefined;
|
|
78
|
+
labelColor: string | undefined;
|
|
79
|
+
strokeColor: string | undefined;
|
|
80
|
+
disabled: boolean;
|
|
81
|
+
active: boolean;
|
|
82
|
+
}) => {
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
const backgroundColor = getBgColor({
|
|
86
|
+
theme,
|
|
87
|
+
bg,
|
|
88
|
+
disabled,
|
|
89
|
+
active
|
|
90
|
+
});
|
|
91
|
+
const buttonTextColor = getTextColor({
|
|
92
|
+
theme,
|
|
93
|
+
labelColor,
|
|
94
|
+
disabled
|
|
95
|
+
});
|
|
96
|
+
const buttonBorderColor = getBorderColor({
|
|
97
|
+
theme,
|
|
98
|
+
strokeColor,
|
|
99
|
+
disabled,
|
|
100
|
+
active
|
|
101
|
+
});
|
|
102
|
+
|
|
103
|
+
return {
|
|
104
|
+
backgroundColor,
|
|
105
|
+
buttonTextColor,
|
|
106
|
+
buttonBorderColor
|
|
107
|
+
}
|
|
108
|
+
};
|
|
109
|
+
|
|
110
110
|
export { getChipColors };
|
|
@@ -1,125 +1,125 @@
|
|
|
1
|
-
import React, { cloneElement, forwardRef, useEffect, useImperativeHandle, useRef, useState } from 'react';
|
|
2
|
-
import type { ReactElement } from "react";
|
|
3
|
-
import { Keyboard, BackHandler, StyleSheet, Animated } from 'react-native';
|
|
4
|
-
import type { ViewStyle } from 'react-native';
|
|
5
|
-
import { dialogSizes } from '../../constants';
|
|
6
|
-
import Portal from '../Portal/Portal';
|
|
7
|
-
import type { DialogProps, DialogRefProps } from '../../types';
|
|
8
|
-
import { useTheme } from '../../hooks';
|
|
9
|
-
import { verticalScale } from '../../helpers';
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
const Dialog = forwardRef<DialogRefProps, DialogProps>(({
|
|
13
|
-
variant = 'classic',
|
|
14
|
-
size = 'lg',
|
|
15
|
-
fullScreen,
|
|
16
|
-
backdropColor,
|
|
17
|
-
onClose,
|
|
18
|
-
containerStyle,
|
|
19
|
-
children,
|
|
20
|
-
}, ref) => {
|
|
21
|
-
|
|
22
|
-
const [dialogVisible, setDialogVisible] = useState(false);
|
|
23
|
-
const scale = useRef(new Animated.Value(0.9)).current;
|
|
24
|
-
const opacity = useRef(new Animated.Value(0)).current;
|
|
25
|
-
const theme = useTheme();
|
|
26
|
-
|
|
27
|
-
useEffect(() => {
|
|
28
|
-
Animated.timing(opacity, {
|
|
29
|
-
toValue: dialogVisible ? 1 : 0,
|
|
30
|
-
duration: 300,
|
|
31
|
-
useNativeDriver: true,
|
|
32
|
-
}).start();
|
|
33
|
-
Animated.spring(scale, {
|
|
34
|
-
toValue: dialogVisible ? 1 : 0.9,
|
|
35
|
-
damping: 10,
|
|
36
|
-
stiffness: 90,
|
|
37
|
-
useNativeDriver: true,
|
|
38
|
-
}).start();
|
|
39
|
-
}, [dialogVisible]);
|
|
40
|
-
|
|
41
|
-
useEffect(() => {
|
|
42
|
-
const handler = BackHandler.addEventListener('hardwareBackPress', hardwareBackPress);
|
|
43
|
-
return () => handler.remove();
|
|
44
|
-
}, [dialogVisible]);
|
|
45
|
-
|
|
46
|
-
const hardwareBackPress = () => {
|
|
47
|
-
onClose?.();
|
|
48
|
-
setDialogVisible(false);
|
|
49
|
-
return dialogVisible;
|
|
50
|
-
};
|
|
51
|
-
useImperativeHandle(ref, () => ({
|
|
52
|
-
open: () => setDialogVisible(true),
|
|
53
|
-
close: () => setDialogVisible(false)
|
|
54
|
-
}));
|
|
55
|
-
|
|
56
|
-
const backdropAnimatedStyles = {
|
|
57
|
-
opacity: opacity,
|
|
58
|
-
backgroundColor: backdropColor ?? theme?.colors.background.backdrop,
|
|
59
|
-
};
|
|
60
|
-
const modalContAnimatedStyles = {
|
|
61
|
-
transform: [{ scale }],
|
|
62
|
-
opacity: opacity,
|
|
63
|
-
};
|
|
64
|
-
const dynamicModalContStyles: ViewStyle = {
|
|
65
|
-
minHeight: fullScreen ? '100%' : 'auto',
|
|
66
|
-
maxHeight: fullScreen ? '100%' : '80%',
|
|
67
|
-
width: `${dialogSizes[size]}%`,
|
|
68
|
-
backgroundColor:theme?.colors.background.elevated,
|
|
69
|
-
borderColor: theme?.colors.border.default,
|
|
70
|
-
borderRadius: verticalScale(40)
|
|
71
|
-
};
|
|
72
|
-
|
|
73
|
-
const renderChildrenWithVariant = () => {
|
|
74
|
-
return React.Children.map(children, (child) => {
|
|
75
|
-
if (React.isValidElement(child)) {
|
|
76
|
-
return cloneElement(child as ReactElement<any>, { variant });
|
|
77
|
-
}
|
|
78
|
-
return child;
|
|
79
|
-
});
|
|
80
|
-
};
|
|
81
|
-
|
|
82
|
-
const handleStartShouldSetResponder = (): boolean => {
|
|
83
|
-
Keyboard.dismiss();
|
|
84
|
-
onClose?.();
|
|
85
|
-
setDialogVisible(false);
|
|
86
|
-
return true;
|
|
87
|
-
};
|
|
88
|
-
|
|
89
|
-
return (<>
|
|
90
|
-
<Portal name='dialog'>
|
|
91
|
-
<Animated.View
|
|
92
|
-
style={[STYLES.BACKDROP_CONT, backdropAnimatedStyles]}
|
|
93
|
-
pointerEvents={dialogVisible ? 'auto' : 'none'}
|
|
94
|
-
onStartShouldSetResponder={handleStartShouldSetResponder}
|
|
95
|
-
>
|
|
96
|
-
<Animated.View
|
|
97
|
-
style={[STYLES.MODAL_CONT, dynamicModalContStyles, modalContAnimatedStyles, containerStyle]}
|
|
98
|
-
onStartShouldSetResponder={() => true}
|
|
99
|
-
>
|
|
100
|
-
{renderChildrenWithVariant()}
|
|
101
|
-
</Animated.View>
|
|
102
|
-
</Animated.View>
|
|
103
|
-
</Portal>
|
|
104
|
-
</>);
|
|
105
|
-
});
|
|
106
|
-
export default Dialog;
|
|
107
|
-
export type { DialogProps };
|
|
108
|
-
|
|
109
|
-
const STYLES = StyleSheet.create({
|
|
110
|
-
BACKDROP_CONT: {
|
|
111
|
-
position: 'absolute',
|
|
112
|
-
top: 0,
|
|
113
|
-
bottom: 0,
|
|
114
|
-
left: 0,
|
|
115
|
-
right: 0,
|
|
116
|
-
justifyContent: 'center',
|
|
117
|
-
alignItems: 'center',
|
|
118
|
-
},
|
|
119
|
-
MODAL_CONT: {
|
|
120
|
-
// backgroundColor: '#fff',
|
|
121
|
-
borderRadius: 5,
|
|
122
|
-
borderWidth: 1,
|
|
123
|
-
// borderColor: '#d4d4d4'
|
|
124
|
-
}
|
|
1
|
+
import React, { cloneElement, forwardRef, useEffect, useImperativeHandle, useRef, useState } from 'react';
|
|
2
|
+
import type { ReactElement } from "react";
|
|
3
|
+
import { Keyboard, BackHandler, StyleSheet, Animated } from 'react-native';
|
|
4
|
+
import type { ViewStyle } from 'react-native';
|
|
5
|
+
import { dialogSizes } from '../../constants';
|
|
6
|
+
import Portal from '../Portal/Portal';
|
|
7
|
+
import type { DialogProps, DialogRefProps } from '../../types';
|
|
8
|
+
import { useTheme } from '../../hooks';
|
|
9
|
+
import { verticalScale } from '../../helpers';
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
const Dialog = forwardRef<DialogRefProps, DialogProps>(({
|
|
13
|
+
variant = 'classic',
|
|
14
|
+
size = 'lg',
|
|
15
|
+
fullScreen,
|
|
16
|
+
backdropColor,
|
|
17
|
+
onClose,
|
|
18
|
+
containerStyle,
|
|
19
|
+
children,
|
|
20
|
+
}, ref) => {
|
|
21
|
+
|
|
22
|
+
const [dialogVisible, setDialogVisible] = useState(false);
|
|
23
|
+
const scale = useRef(new Animated.Value(0.9)).current;
|
|
24
|
+
const opacity = useRef(new Animated.Value(0)).current;
|
|
25
|
+
const theme = useTheme();
|
|
26
|
+
|
|
27
|
+
useEffect(() => {
|
|
28
|
+
Animated.timing(opacity, {
|
|
29
|
+
toValue: dialogVisible ? 1 : 0,
|
|
30
|
+
duration: 300,
|
|
31
|
+
useNativeDriver: true,
|
|
32
|
+
}).start();
|
|
33
|
+
Animated.spring(scale, {
|
|
34
|
+
toValue: dialogVisible ? 1 : 0.9,
|
|
35
|
+
damping: 10,
|
|
36
|
+
stiffness: 90,
|
|
37
|
+
useNativeDriver: true,
|
|
38
|
+
}).start();
|
|
39
|
+
}, [dialogVisible]);
|
|
40
|
+
|
|
41
|
+
useEffect(() => {
|
|
42
|
+
const handler = BackHandler.addEventListener('hardwareBackPress', hardwareBackPress);
|
|
43
|
+
return () => handler.remove();
|
|
44
|
+
}, [dialogVisible]);
|
|
45
|
+
|
|
46
|
+
const hardwareBackPress = () => {
|
|
47
|
+
onClose?.();
|
|
48
|
+
setDialogVisible(false);
|
|
49
|
+
return dialogVisible;
|
|
50
|
+
};
|
|
51
|
+
useImperativeHandle(ref, () => ({
|
|
52
|
+
open: () => setDialogVisible(true),
|
|
53
|
+
close: () => setDialogVisible(false)
|
|
54
|
+
}));
|
|
55
|
+
|
|
56
|
+
const backdropAnimatedStyles = {
|
|
57
|
+
opacity: opacity,
|
|
58
|
+
backgroundColor: backdropColor ?? theme?.colors.background.backdrop,
|
|
59
|
+
};
|
|
60
|
+
const modalContAnimatedStyles = {
|
|
61
|
+
transform: [{ scale }],
|
|
62
|
+
opacity: opacity,
|
|
63
|
+
};
|
|
64
|
+
const dynamicModalContStyles: ViewStyle = {
|
|
65
|
+
minHeight: fullScreen ? '100%' : 'auto',
|
|
66
|
+
maxHeight: fullScreen ? '100%' : '80%',
|
|
67
|
+
width: `${dialogSizes[size]}%`,
|
|
68
|
+
backgroundColor:theme?.colors.background.elevated,
|
|
69
|
+
borderColor: theme?.colors.border.default,
|
|
70
|
+
borderRadius: verticalScale(40)
|
|
71
|
+
};
|
|
72
|
+
|
|
73
|
+
const renderChildrenWithVariant = () => {
|
|
74
|
+
return React.Children.map(children, (child) => {
|
|
75
|
+
if (React.isValidElement(child)) {
|
|
76
|
+
return cloneElement(child as ReactElement<any>, { variant });
|
|
77
|
+
}
|
|
78
|
+
return child;
|
|
79
|
+
});
|
|
80
|
+
};
|
|
81
|
+
|
|
82
|
+
const handleStartShouldSetResponder = (): boolean => {
|
|
83
|
+
Keyboard.dismiss();
|
|
84
|
+
onClose?.();
|
|
85
|
+
setDialogVisible(false);
|
|
86
|
+
return true;
|
|
87
|
+
};
|
|
88
|
+
|
|
89
|
+
return (<>
|
|
90
|
+
<Portal name='dialog'>
|
|
91
|
+
<Animated.View
|
|
92
|
+
style={[STYLES.BACKDROP_CONT, backdropAnimatedStyles]}
|
|
93
|
+
pointerEvents={dialogVisible ? 'auto' : 'none'}
|
|
94
|
+
onStartShouldSetResponder={handleStartShouldSetResponder}
|
|
95
|
+
>
|
|
96
|
+
<Animated.View
|
|
97
|
+
style={[STYLES.MODAL_CONT, dynamicModalContStyles, modalContAnimatedStyles, containerStyle]}
|
|
98
|
+
onStartShouldSetResponder={() => true}
|
|
99
|
+
>
|
|
100
|
+
{renderChildrenWithVariant()}
|
|
101
|
+
</Animated.View>
|
|
102
|
+
</Animated.View>
|
|
103
|
+
</Portal>
|
|
104
|
+
</>);
|
|
105
|
+
});
|
|
106
|
+
export default Dialog;
|
|
107
|
+
export type { DialogProps };
|
|
108
|
+
|
|
109
|
+
const STYLES = StyleSheet.create({
|
|
110
|
+
BACKDROP_CONT: {
|
|
111
|
+
position: 'absolute',
|
|
112
|
+
top: 0,
|
|
113
|
+
bottom: 0,
|
|
114
|
+
left: 0,
|
|
115
|
+
right: 0,
|
|
116
|
+
justifyContent: 'center',
|
|
117
|
+
alignItems: 'center',
|
|
118
|
+
},
|
|
119
|
+
MODAL_CONT: {
|
|
120
|
+
// backgroundColor: '#fff',
|
|
121
|
+
borderRadius: 5,
|
|
122
|
+
borderWidth: 1,
|
|
123
|
+
// borderColor: '#d4d4d4'
|
|
124
|
+
}
|
|
125
125
|
});
|