@axelor/aos-mobile-ui 7.1.0 → 7.1.2

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 (113) hide show
  1. package/lib/components/atoms/Icon/Icon.d.ts +1 -2
  2. package/lib/components/atoms/Icon/Icon.js +6 -6
  3. package/lib/components/atoms/Icon/Icon.js.map +1 -1
  4. package/lib/components/atoms/KeyboardAvoidingScrollView/KeyboardAvoidingScrollView.d.ts +15 -5
  5. package/lib/components/atoms/KeyboardAvoidingScrollView/KeyboardAvoidingScrollView.js +3 -3
  6. package/lib/components/atoms/KeyboardAvoidingScrollView/KeyboardAvoidingScrollView.js.map +1 -1
  7. package/lib/components/atoms/RadioButton/RadioButton.d.ts +7 -0
  8. package/lib/components/atoms/RadioButton/RadioButton.js +73 -0
  9. package/lib/components/atoms/RadioButton/RadioButton.js.map +1 -0
  10. package/lib/components/atoms/ScrollView/ScrollView.d.ts +6 -1
  11. package/lib/components/atoms/ScrollView/ScrollView.js +3 -3
  12. package/lib/components/atoms/ScrollView/ScrollView.js.map +1 -1
  13. package/lib/components/atoms/Switch/Switch.js +3 -5
  14. package/lib/components/atoms/Switch/Switch.js.map +1 -1
  15. package/lib/components/atoms/index.d.ts +1 -0
  16. package/lib/components/atoms/index.js +1 -0
  17. package/lib/components/atoms/index.js.map +1 -1
  18. package/lib/components/molecules/Checkbox/Checkbox.d.ts +2 -2
  19. package/lib/components/molecules/Checkbox/Checkbox.js +19 -6
  20. package/lib/components/molecules/Checkbox/Checkbox.js.map +1 -1
  21. package/lib/components/molecules/DropdownCard/DropdownCard.d.ts +3 -2
  22. package/lib/components/molecules/DropdownCard/DropdownCard.js +24 -24
  23. package/lib/components/molecules/DropdownCard/DropdownCard.js.map +1 -1
  24. package/lib/components/molecules/FormHtmlInput/FormHtmlInput.d.ts +2 -1
  25. package/lib/components/molecules/FormHtmlInput/FormHtmlInput.js +11 -2
  26. package/lib/components/molecules/FormHtmlInput/FormHtmlInput.js.map +1 -1
  27. package/lib/components/molecules/FormIncrementInput/FormIncrementInput.d.ts +5 -1
  28. package/lib/components/molecules/FormIncrementInput/FormIncrementInput.js +18 -11
  29. package/lib/components/molecules/FormIncrementInput/FormIncrementInput.js.map +1 -1
  30. package/lib/components/molecules/FormInput/FormInput.d.ts +1 -1
  31. package/lib/components/molecules/FormInput/FormInput.js +1 -1
  32. package/lib/components/molecules/FormInput/FormInput.js.map +1 -1
  33. package/lib/components/molecules/IconButton/IconButton.d.ts +1 -1
  34. package/lib/components/molecules/Image/Image.js +13 -5
  35. package/lib/components/molecules/Image/Image.js.map +1 -1
  36. package/lib/components/molecules/Increment/Increment.d.ts +4 -1
  37. package/lib/components/molecules/Increment/Increment.js +17 -7
  38. package/lib/components/molecules/Increment/Increment.js.map +1 -1
  39. package/lib/components/molecules/InfoBubble/InfoBubble.d.ts +4 -1
  40. package/lib/components/molecules/InfoBubble/InfoBubble.js +9 -9
  41. package/lib/components/molecules/InfoBubble/InfoBubble.js.map +1 -1
  42. package/lib/components/molecules/Label/Label.d.ts +14 -0
  43. package/lib/components/molecules/Label/Label.js +100 -0
  44. package/lib/components/molecules/Label/Label.js.map +1 -0
  45. package/lib/components/molecules/MultiValuePickerButton/MultiValuePickerButton.d.ts +4 -3
  46. package/lib/components/molecules/MultiValuePickerButton/MultiValuePickerButton.js +4 -15
  47. package/lib/components/molecules/MultiValuePickerButton/MultiValuePickerButton.js.map +1 -1
  48. package/lib/components/molecules/NumberBubble/NumberBubble.d.ts +10 -0
  49. package/lib/components/molecules/NumberBubble/NumberBubble.js +51 -0
  50. package/lib/components/molecules/NumberBubble/NumberBubble.js.map +1 -0
  51. package/lib/components/molecules/RadioSelect/RadioSelect.d.ts +14 -0
  52. package/lib/components/molecules/RadioSelect/RadioSelect.js +59 -0
  53. package/lib/components/molecules/RadioSelect/RadioSelect.js.map +1 -0
  54. package/lib/components/molecules/SelectionContainer/SelectionContainer.d.ts +4 -3
  55. package/lib/components/molecules/SelectionContainer/SelectionContainer.js +17 -9
  56. package/lib/components/molecules/SelectionContainer/SelectionContainer.js.map +1 -1
  57. package/lib/components/molecules/SwitchCard/SwitchCard.js +22 -5
  58. package/lib/components/molecules/SwitchCard/SwitchCard.js.map +1 -1
  59. package/lib/components/molecules/WarningCard/WarningCard.js +5 -29
  60. package/lib/components/molecules/WarningCard/WarningCard.js.map +1 -1
  61. package/lib/components/molecules/index.d.ts +3 -0
  62. package/lib/components/molecules/index.js +3 -0
  63. package/lib/components/molecules/index.js.map +1 -1
  64. package/lib/components/organisms/AutoCompleteSearch/AutoCompleteSearch.d.ts +4 -1
  65. package/lib/components/organisms/AutoCompleteSearch/AutoCompleteSearch.js +17 -13
  66. package/lib/components/organisms/AutoCompleteSearch/AutoCompleteSearch.js.map +1 -1
  67. package/lib/components/organisms/AutoCompleteSearch/ItemCard.js +3 -2
  68. package/lib/components/organisms/AutoCompleteSearch/ItemCard.js.map +1 -1
  69. package/lib/components/organisms/AutoCompleteSearch/SearchDetailsPopUp.js +4 -1
  70. package/lib/components/organisms/AutoCompleteSearch/SearchDetailsPopUp.js.map +1 -1
  71. package/lib/components/organisms/ChipSelect/ChipSelect.d.ts +2 -1
  72. package/lib/components/organisms/ChipSelect/ChipSelect.js +29 -26
  73. package/lib/components/organisms/ChipSelect/ChipSelect.js.map +1 -1
  74. package/lib/components/organisms/DropdownCardSwitch/DropdownCardSwitch.js +1 -1
  75. package/lib/components/organisms/MultiValuePicker/MultiValuePicker.d.ts +4 -5
  76. package/lib/components/organisms/MultiValuePicker/MultiValuePicker.js +22 -40
  77. package/lib/components/organisms/MultiValuePicker/MultiValuePicker.js.map +1 -1
  78. package/lib/components/organisms/Picker/Picker.d.ts +4 -5
  79. package/lib/components/organisms/Picker/Picker.js +72 -73
  80. package/lib/components/organisms/Picker/Picker.js.map +1 -1
  81. package/lib/components/organisms/ScrollList/ScrollList.d.ts +2 -1
  82. package/lib/components/organisms/ScrollList/ScrollList.js +2 -2
  83. package/lib/components/organisms/ScrollList/ScrollList.js.map +1 -1
  84. package/lib/components/organisms/SearchBar/SearchBar.d.ts +4 -1
  85. package/lib/components/organisms/SearchBar/SearchBar.js +36 -13
  86. package/lib/components/organisms/SearchBar/SearchBar.js.map +1 -1
  87. package/lib/components/organisms/index.d.ts +0 -1
  88. package/lib/components/organisms/index.js +0 -1
  89. package/lib/components/organisms/index.js.map +1 -1
  90. package/lib/components/templates/ObjectCard/ObjectCard.d.ts +3 -1
  91. package/lib/components/templates/ObjectCard/ObjectCard.js +5 -6
  92. package/lib/components/templates/ObjectCard/ObjectCard.js.map +1 -1
  93. package/lib/components/templates/TabsScreen/IndicatorBadge.d.ts +4 -0
  94. package/lib/components/{organisms/MultiSelectValue/MultiSelectValue.js → templates/TabsScreen/IndicatorBadge.js} +18 -20
  95. package/lib/components/templates/TabsScreen/IndicatorBadge.js.map +1 -0
  96. package/lib/components/templates/TabsScreen/Tab.d.ts +3 -0
  97. package/lib/components/templates/TabsScreen/Tab.js +50 -0
  98. package/lib/components/templates/TabsScreen/Tab.js.map +1 -0
  99. package/lib/components/templates/TabsScreen/TabsScreen.d.ts +3 -0
  100. package/lib/components/templates/TabsScreen/TabsScreen.js +169 -0
  101. package/lib/components/templates/TabsScreen/TabsScreen.js.map +1 -0
  102. package/lib/components/templates/TabsScreen/tabs.helper.d.ts +32 -0
  103. package/lib/components/templates/TabsScreen/tabs.helper.js +27 -0
  104. package/lib/components/templates/TabsScreen/tabs.helper.js.map +1 -0
  105. package/lib/components/templates/index.d.ts +1 -0
  106. package/lib/components/templates/index.js +1 -0
  107. package/lib/components/templates/index.js.map +1 -1
  108. package/lib/theme/writingTheme.js +4 -4
  109. package/lib/utils/formatters.js +1 -1
  110. package/lib/utils/formatters.js.map +1 -1
  111. package/package.json +6 -3
  112. package/lib/components/organisms/MultiSelectValue/MultiSelectValue.d.ts +0 -9
  113. package/lib/components/organisms/MultiSelectValue/MultiSelectValue.js.map +0 -1
@@ -7,7 +7,6 @@ interface IconProps {
7
7
  touchable?: boolean;
8
8
  visible?: boolean;
9
9
  onPress?: () => void;
10
- disabled?: boolean;
11
10
  }
12
- declare const Icon: ({ style, name, FontAwesome5, color, size, touchable, visible, onPress, disabled, }: IconProps) => JSX.Element;
11
+ declare const Icon: ({ style, name, FontAwesome5, color, size, touchable, visible, onPress, }: IconProps) => JSX.Element;
13
12
  export default Icon;
@@ -20,21 +20,21 @@ import { StyleSheet, TouchableOpacity } from 'react-native';
20
20
  import Icon5 from 'react-native-vector-icons/FontAwesome5';
21
21
  import Icon4 from 'react-native-vector-icons/FontAwesome';
22
22
  import { useThemeColor } from '../../../theme/ThemeContext';
23
- const Icon = ({ style, name, FontAwesome5 = true, color, size = 18, touchable = false, visible = true, onPress = () => { }, disabled = false, }) => {
23
+ const Icon = ({ style, name, FontAwesome5 = true, color, size = 18, touchable = false, visible = true, onPress = () => { }, }) => {
24
24
  const Colors = useThemeColor();
25
25
  const styles = useMemo(() => {
26
- return getStyles(Colors, color == null ? Colors.secondaryColor_dark.background : color, touchable ? disabled : false, size);
27
- }, [Colors, color, disabled, size, touchable]);
26
+ return getStyles(color == null ? Colors.secondaryColor_dark.background : color, size);
27
+ }, [Colors, color, size]);
28
28
  if (!visible) {
29
29
  return null;
30
30
  }
31
- return (<TouchableOpacity style={[styles.container, style]} onPress={onPress} disabled={!touchable || disabled}>
31
+ return (<TouchableOpacity style={[styles.container, style]} onPress={onPress} disabled={!touchable}>
32
32
  {FontAwesome5 ? (<Icon5 name={name} style={styles.icon}/>) : (<Icon4 name={name} style={styles.icon}/>)}
33
33
  </TouchableOpacity>);
34
34
  };
35
- const getStyles = (Colors, color, disabled, size) => StyleSheet.create({
35
+ const getStyles = (color, size) => StyleSheet.create({
36
36
  icon: {
37
- color: disabled ? Colors.secondaryColor.background_light : color,
37
+ color: color,
38
38
  fontSize: size,
39
39
  },
40
40
  container: {
@@ -1 +1 @@
1
- {"version":3,"file":"Icon.js","sourceRoot":"","sources":["../../../../src/components/atoms/Icon/Icon.tsx"],"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C,CAAC;AAEL,eAAe,IAAI,CAAC"}
@@ -1,7 +1,17 @@
1
- declare const KeyboardAvoidingScrollView: ({ globalStyle, style, children, keyboardOffset, }: {
2
- globalStyle: any;
3
- style: any;
4
- children: any;
5
- keyboardOffset?: {};
1
+ import { ReactNode } from 'react';
2
+ interface Offset {
3
+ ios: number;
4
+ android: number;
5
+ }
6
+ interface Refresh {
7
+ loading: boolean;
8
+ fetcher: () => void;
9
+ }
10
+ declare const KeyboardAvoidingScrollView: ({ globalStyle, style, children, keyboardOffset, refresh, }: {
11
+ globalStyle?: any;
12
+ style?: any;
13
+ children: ReactNode;
14
+ keyboardOffset?: Offset;
15
+ refresh?: Refresh;
6
16
  }) => JSX.Element;
7
17
  export default KeyboardAvoidingScrollView;
@@ -16,9 +16,9 @@
16
16
  * along with this program. If not, see <http://www.gnu.org/licenses/>.
17
17
  */
18
18
  import React, { useMemo } from 'react';
19
- import { KeyboardAvoidingView, Platform, ScrollView, StyleSheet, } from 'react-native';
19
+ import { KeyboardAvoidingView, Platform, RefreshControl, ScrollView, StyleSheet, } from 'react-native';
20
20
  const DEFAULT_OFFSET = { ios: 70, android: 180 };
21
- const KeyboardAvoidingScrollView = ({ globalStyle, style, children, keyboardOffset = {}, }) => {
21
+ const KeyboardAvoidingScrollView = ({ globalStyle, style, children, keyboardOffset = DEFAULT_OFFSET, refresh, }) => {
22
22
  const keyboardVerticalOffset = useMemo(() => {
23
23
  return { ...DEFAULT_OFFSET, ...keyboardOffset };
24
24
  }, [keyboardOffset]);
@@ -29,7 +29,7 @@ const KeyboardAvoidingScrollView = ({ globalStyle, style, children, keyboardOffs
29
29
  styles.scrollContent,
30
30
  getZIndexStyles(10),
31
31
  style,
32
- ]}>
32
+ ]} refreshControl={refresh != null && (<RefreshControl refreshing={refresh.loading} onRefresh={refresh.fetcher}/>)}>
33
33
  {children}
34
34
  </ScrollView>
35
35
  </KeyboardAvoidingView>);
@@ -1 +1 @@
1
- {"version":3,"file":"KeyboardAvoidingScrollView.js","sourceRoot":"","sources":["../../../../src/components/atoms/KeyboardAvoidingScrollView/KeyboardAvoidingScrollView.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,EAAE,EAAC,OAAO,EAAC,MAAM,OAAO,CAAC;AACrC,OAAO,EACL,oBAAoB,EACpB,QAAQ,EACR,UAAU,EACV,UAAU,GACX,MAAM,cAAc,CAAC;AAEtB,MAAM,cAAc,GAAG,EAAC,GAAG,EAAE,EAAE,EAAE,OAAO,EAAE,GAAG,EAAC,CAAC;AAE/C,MAAM,0BAA0B,GAAG,CAAC,EAClC,WAAW,EACX,KAAK,EACL,QAAQ,EACR,cAAc,GAAG,EAAE,GACpB,EAAE,EAAE;IACH,MAAM,sBAAsB,GAAG,OAAO,CAAC,GAAG,EAAE;QAC1C,OAAO,EAAC,GAAG,cAAc,EAAE,GAAG,cAAc,EAAC,CAAC;IAChD,CAAC,EAAE,CAAC,cAAc,CAAC,CAAC,CAAC;IAErB,OAAO,CACL,CAAC,oBAAoB,CACnB,QAAQ,CAAC,CAAC,QAAQ,CAAC,EAAE,KAAK,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,QAAQ,CAAC,CACvD,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,iBAAiB,EAAE,eAAe,CAAC,CAAC,CAAC,CAAC,CAAC,CACtD,sBAAsB,CAAC,CACrB,QAAQ,CAAC,EAAE,KAAK,KAAK;YACnB,CAAC,CAAC,sBAAsB,EAAE,GAAG;YAC7B,CAAC,CAAC,sBAAsB,EAAE,OAAO,CACpC,CACD;MAAA,CAAC,UAAU,CACT,KAAK,CAAC,CAAC,WAAW,CAAC,CACnB,yBAAyB,CAAC,QAAQ,CAClC,qBAAqB,CAAC,CAAC;YACrB,MAAM,CAAC,aAAa;YACpB,eAAe,CAAC,EAAE,CAAC;YACnB,KAAK;SACN,CAAC,CACF;QAAA,CAAC,QAAQ,CACX;MAAA,EAAE,UAAU,CACd;IAAA,EAAE,oBAAoB,CAAC,CACxB,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,eAAe,GAAG,KAAK,CAAC,EAAE,CAC9B,QAAQ,CAAC,EAAE,KAAK,KAAK,CAAC,CAAC,CAAC,EAAC,MAAM,EAAE,KAAK,EAAC,CAAC,CAAC,CAAC,IAAI,CAAC;AAEjD,MAAM,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC;IAC/B,iBAAiB,EAAE;QACjB,IAAI,EAAE,CAAC;KACR;IACD,aAAa,EAAE;QACb,MAAM,EAAE,IAAI;KACb;CACF,CAAC,CAAC;AAEH,eAAe,0BAA0B,CAAC"}
1
+ {"version":3,"file":"KeyboardAvoidingScrollView.js","sourceRoot":"","sources":["../../../../src/components/atoms/KeyboardAvoidingScrollView/KeyboardAvoidingScrollView.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,EAAE,EAAY,OAAO,EAAC,MAAM,OAAO,CAAC;AAChD,OAAO,EACL,oBAAoB,EACpB,QAAQ,EACR,cAAc,EACd,UAAU,EACV,UAAU,GACX,MAAM,cAAc,CAAC;AAEtB,MAAM,cAAc,GAAG,EAAC,GAAG,EAAE,EAAE,EAAE,OAAO,EAAE,GAAG,EAAC,CAAC;AAY/C,MAAM,0BAA0B,GAAG,CAAC,EAClC,WAAW,EACX,KAAK,EACL,QAAQ,EACR,cAAc,GAAG,cAAc,EAC/B,OAAO,GAOR,EAAE,EAAE;IACH,MAAM,sBAAsB,GAAG,OAAO,CAAC,GAAG,EAAE;QAC1C,OAAO,EAAC,GAAG,cAAc,EAAE,GAAG,cAAc,EAAC,CAAC;IAChD,CAAC,EAAE,CAAC,cAAc,CAAC,CAAC,CAAC;IAErB,OAAO,CACL,CAAC,oBAAoB,CACnB,QAAQ,CAAC,CAAC,QAAQ,CAAC,EAAE,KAAK,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,QAAQ,CAAC,CACvD,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,iBAAiB,EAAE,eAAe,CAAC,CAAC,CAAC,CAAC,CAAC,CACtD,sBAAsB,CAAC,CACrB,QAAQ,CAAC,EAAE,KAAK,KAAK;YACnB,CAAC,CAAC,sBAAsB,EAAE,GAAG;YAC7B,CAAC,CAAC,sBAAsB,EAAE,OAAO,CACpC,CACD;MAAA,CAAC,UAAU,CACT,KAAK,CAAC,CAAC,WAAW,CAAC,CACnB,yBAAyB,CAAC,QAAQ,CAClC,qBAAqB,CAAC,CAAC;YACrB,MAAM,CAAC,aAAa;YACpB,eAAe,CAAC,EAAE,CAAC;YACnB,KAAK;SACN,CAAC,CACF,cAAc,CAAC,CACb,OAAO,IAAI,IAAI,IAAI,CACjB,CAAC,cAAc,CACb,UAAU,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC,CAC5B,SAAS,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC,EAC3B,CACH,CACF,CACD;QAAA,CAAC,QAAQ,CACX;MAAA,EAAE,UAAU,CACd;IAAA,EAAE,oBAAoB,CAAC,CACxB,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,eAAe,GAAG,KAAK,CAAC,EAAE,CAC9B,QAAQ,CAAC,EAAE,KAAK,KAAK,CAAC,CAAC,CAAC,EAAC,MAAM,EAAE,KAAK,EAAC,CAAC,CAAC,CAAC,IAAI,CAAC;AAEjD,MAAM,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC;IAC/B,iBAAiB,EAAE;QACjB,IAAI,EAAE,CAAC;KACR;IACD,aAAa,EAAE;QACb,MAAM,EAAE,IAAI;KACb;CACF,CAAC,CAAC;AAEH,eAAe,0BAA0B,CAAC"}
@@ -0,0 +1,7 @@
1
+ declare const RadioButton: ({ onPress, selected, title, size, }: {
2
+ onPress: () => void;
3
+ selected: boolean;
4
+ title: string;
5
+ size?: number;
6
+ }) => JSX.Element;
7
+ export default RadioButton;
@@ -0,0 +1,73 @@
1
+ /*
2
+ * Axelor Business Solutions
3
+ *
4
+ * Copyright (C) 2023 Axelor (<http://axelor.com>).
5
+ *
6
+ * This program is free software: you can redistribute it and/or modify
7
+ * it under the terms of the GNU Affero General Public License, version 3,
8
+ * as published by the Free Software Foundation.
9
+ *
10
+ * This program is distributed in the hope that it will be useful,
11
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
+ * GNU Affero General Public License for more details.
14
+ *
15
+ * You should have received a copy of the GNU Affero General Public License
16
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
17
+ */
18
+ import React, { useMemo } from 'react';
19
+ import { StyleSheet, TouchableOpacity, View } from 'react-native';
20
+ import { Text } from '../../atoms';
21
+ import { useThemeColor } from '../../../theme';
22
+ const DEFAULT_SIZE = 20;
23
+ const RadioButton = ({ onPress, selected, title, size = DEFAULT_SIZE, }) => {
24
+ const Colors = useThemeColor();
25
+ const styles = useMemo(() => getStyles(Colors, size), [Colors, size]);
26
+ return (<TouchableOpacity onPress={onPress} style={[styles.container, selected ? styles.selectedCard : null]}>
27
+ <View style={styles.buttonExt}>
28
+ {selected ? <View style={styles.buttonInt}/> : null}
29
+ </View>
30
+ <Text style={styles.title}>{title}</Text>
31
+ </TouchableOpacity>);
32
+ };
33
+ const getStyles = (Colors, size) => StyleSheet.create({
34
+ container: {
35
+ flexDirection: 'row',
36
+ alignItems: 'center',
37
+ margin: 5,
38
+ flex: 1,
39
+ minWidth: 100,
40
+ padding: 10,
41
+ },
42
+ selectedCard: {
43
+ backgroundColor: Colors.backgroundColor,
44
+ borderColor: Colors.secondaryColor.background,
45
+ borderWidth: 1,
46
+ borderRadius: 7,
47
+ elevation: 2,
48
+ shadowOpacity: 0.5,
49
+ shadowColor: Colors.secondaryColor.background,
50
+ shadowOffset: { width: 0, height: 0 },
51
+ },
52
+ buttonExt: {
53
+ alignItems: 'center',
54
+ justifyContent: 'center',
55
+ height: size,
56
+ width: size,
57
+ borderRadius: size,
58
+ borderWidth: 1,
59
+ borderColor: Colors.secondaryColor.background,
60
+ backgroundColor: Colors.backgroundColor,
61
+ },
62
+ buttonInt: {
63
+ height: size * 0.7,
64
+ width: size * 0.7,
65
+ borderRadius: size * 0.7,
66
+ backgroundColor: Colors.primaryColor.background,
67
+ },
68
+ title: {
69
+ marginLeft: 5,
70
+ },
71
+ });
72
+ export default RadioButton;
73
+ //# sourceMappingURL=RadioButton.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RadioButton.js","sourceRoot":"","sources":["../../../../src/components/atoms/RadioButton/RadioButton.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,EAAE,EAAC,OAAO,EAAC,MAAM,OAAO,CAAC;AACrC,OAAO,EAAC,UAAU,EAAE,gBAAgB,EAAE,IAAI,EAAC,MAAM,cAAc,CAAC;AAChE,OAAO,EAAC,IAAI,EAAC,MAAM,aAAa,CAAC;AACjC,OAAO,EAAc,aAAa,EAAC,MAAM,gBAAgB,CAAC;AAE1D,MAAM,YAAY,GAAG,EAAE,CAAC;AAExB,MAAM,WAAW,GAAG,CAAC,EACnB,OAAO,EACP,QAAQ,EACR,KAAK,EACL,IAAI,GAAG,YAAY,GAMpB,EAAE,EAAE;IACH,MAAM,MAAM,GAAG,aAAa,EAAE,CAAC;IAE/B,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,EAAE,CAAC,SAAS,CAAC,MAAM,EAAE,IAAI,CAAC,EAAE,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC,CAAC;IAEtE,OAAO,CACL,CAAC,gBAAgB,CACf,OAAO,CAAC,CAAC,OAAO,CAAC,CACjB,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,SAAS,EAAE,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CACjE;MAAA,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,MAAM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;QAClB,KAAK,EAAE,IAAI,GAAG,GAAG;QACjB,YAAY,EAAE,IAAI,GAAG,GAAG;QACxB,eAAe,EAAE,MAAM,CAAC,YAAY,CAAC,UAAU;KAChD;IACD,KAAK,EAAE;QACL,UAAU,EAAE,CAAC;KACd;CACF,CAAC,CAAC;AAEL,eAAe,WAAW,CAAC"}
@@ -1,6 +1,11 @@
1
+ interface Refresh {
2
+ loading: boolean;
3
+ fetcher: () => void;
4
+ }
1
5
  interface ScrollViewProps {
2
6
  style?: any;
3
7
  children?: any;
8
+ refresh?: Refresh;
4
9
  }
5
- declare const ScrollView: ({ style, children }: ScrollViewProps) => JSX.Element;
10
+ declare const ScrollView: ({ style, children, refresh }: ScrollViewProps) => JSX.Element;
6
11
  export default ScrollView;
@@ -16,13 +16,13 @@
16
16
  * along with this program. If not, see <http://www.gnu.org/licenses/>.
17
17
  */
18
18
  import React from 'react';
19
- import { Platform, ScrollView as ReactNativeScrollView, StyleSheet, } from 'react-native';
20
- const ScrollView = ({ style, children }) => {
19
+ import { Platform, ScrollView as ReactNativeScrollView, RefreshControl, StyleSheet, } from 'react-native';
20
+ const ScrollView = ({ style, children, refresh }) => {
21
21
  return (<ReactNativeScrollView contentContainerStyle={[
22
22
  styles.container,
23
23
  Platform.OS === 'ios' ? styles.containerZIndex : null,
24
24
  style,
25
- ]}>
25
+ ]} refreshControl={refresh != null && (<RefreshControl refreshing={refresh.loading} onRefresh={refresh.fetcher}/>)}>
26
26
  {children}
27
27
  </ReactNativeScrollView>);
28
28
  };
@@ -1 +1 @@
1
- {"version":3,"file":"ScrollView.js","sourceRoot":"","sources":["../../../../src/components/atoms/ScrollView/ScrollView.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EACL,QAAQ,EACR,UAAU,IAAI,qBAAqB,EACnC,UAAU,GACX,MAAM,cAAc,CAAC;AAOtB,MAAM,UAAU,GAAG,CAAC,EAAC,KAAK,EAAE,QAAQ,EAAkB,EAAE,EAAE;IACxD,OAAO,CACL,CAAC,qBAAqB,CACpB,qBAAqB,CAAC,CAAC;YACrB,MAAM,CAAC,SAAS;YAChB,QAAQ,CAAC,EAAE,KAAK,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,eAAe,CAAC,CAAC,CAAC,IAAI;YACrD,KAAK;SACN,CAAC,CACF;MAAA,CAAC,QAAQ,CACX;IAAA,EAAE,qBAAqB,CAAC,CACzB,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC;IAC/B,SAAS,EAAE;QACT,UAAU,EAAE,EAAE;QACd,aAAa,EAAE,EAAE;QACjB,MAAM,EAAE,MAAM;KACf;IACD,eAAe,EAAE;QACf,MAAM,EAAE,EAAE;KACX;CACF,CAAC,CAAC;AAEH,eAAe,UAAU,CAAC"}
1
+ {"version":3,"file":"ScrollView.js","sourceRoot":"","sources":["../../../../src/components/atoms/ScrollView/ScrollView.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EACL,QAAQ,EACR,UAAU,IAAI,qBAAqB,EACnC,cAAc,EACd,UAAU,GACX,MAAM,cAAc,CAAC;AAatB,MAAM,UAAU,GAAG,CAAC,EAAC,KAAK,EAAE,QAAQ,EAAE,OAAO,EAAkB,EAAE,EAAE;IACjE,OAAO,CACL,CAAC,qBAAqB,CACpB,qBAAqB,CAAC,CAAC;YACrB,MAAM,CAAC,SAAS;YAChB,QAAQ,CAAC,EAAE,KAAK,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,eAAe,CAAC,CAAC,CAAC,IAAI;YACrD,KAAK;SACN,CAAC,CACF,cAAc,CAAC,CACb,OAAO,IAAI,IAAI,IAAI,CACjB,CAAC,cAAc,CACb,UAAU,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC,CAC5B,SAAS,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC,EAC3B,CACH,CACF,CACD;MAAA,CAAC,QAAQ,CACX;IAAA,EAAE,qBAAqB,CAAC,CACzB,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC;IAC/B,SAAS,EAAE;QACT,UAAU,EAAE,EAAE;QACd,aAAa,EAAE,EAAE;QACjB,MAAM,EAAE,MAAM;KACf;IACD,eAAe,EAAE;QACf,MAAM,EAAE,EAAE;KACX;CACF,CAAC,CAAC;AAEH,eAAe,UAAU,CAAC"}
@@ -15,20 +15,18 @@
15
15
  * You should have received a copy of the GNU Affero General Public License
16
16
  * along with this program. If not, see <http://www.gnu.org/licenses/>.
17
17
  */
18
- import React, { useState } from 'react';
18
+ import React from 'react';
19
19
  import { Switch as RNSwitch } from 'react-native';
20
20
  import { useThemeColor } from '../../../theme/ThemeContext';
21
21
  const Switch = ({ isEnabled, handleToggle }) => {
22
- const [enabled, setEnabled] = useState(isEnabled);
23
22
  const Colors = useThemeColor();
24
23
  const toggleSwitch = () => {
25
- handleToggle(!enabled);
26
- setEnabled(previousState => !previousState);
24
+ handleToggle(!isEnabled);
27
25
  };
28
26
  return (<RNSwitch trackColor={{
29
27
  false: Colors.secondaryColor.background_light,
30
28
  true: Colors.primaryColor.background_light,
31
- }} thumbColor={Colors.secondaryColor_dark.background} ios_backgroundColor={Colors.backgroundColor} onValueChange={toggleSwitch} value={enabled}/>);
29
+ }} thumbColor={Colors.secondaryColor_dark.background} ios_backgroundColor={Colors.backgroundColor} onValueChange={toggleSwitch} value={isEnabled}/>);
32
30
  };
33
31
  export default Switch;
34
32
  //# sourceMappingURL=Switch.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Switch.js","sourceRoot":"","sources":["../../../../src/components/atoms/Switch/Switch.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,EAAE,EAAC,QAAQ,EAAC,MAAM,O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;IACxD,MAAM,MAAM,GAAG,aAAa,EAAE,CAAC;IAE/B,MAAM,YAAY,GAAG,GAAG,EAAE;QACxB,YAAY,CAAC,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC,CAAC;IAEF,OAAO,CACL,CAAC,QAAQ,CACP,UAAU,CAAC,CAAC;YACV,KAAK,EAAE,MAAM,CAAC,cAAc,CAAC,gBAAgB;YAC7C,IAAI,EAAE,MAAM,CAAC,YAAY,CAAC,gBAAgB;SAC3C,CAAC,CACF,UAAU,CAAC,CAAC,MAAM,CAAC,mBAAmB,CAAC,UAAU,CAAC,CAClD,mBAAmB,CAAC,CAAC,MAAM,CAAC,eAAe,CAAC,CAC5C,aAAa,CAAC,CAAC,YAAY,CAAC,CAC5B,KAAK,CAAC,CAAC,SAAS,CAAC,EACjB,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,MAAM,CAAC"}
@@ -6,6 +6,7 @@ export { default as DottedLine } from './DottedLine/DottedLine';
6
6
  export { default as Icon } from './Icon/Icon';
7
7
  export { default as Input } from './Input/Input';
8
8
  export { default as KeyboardAvoidingScrollView } from './KeyboardAvoidingScrollView/KeyboardAvoidingScrollView';
9
+ export { default as RadioButton } from './RadioButton/RadioButton';
9
10
  export { default as Screen } from './Screen/Screen';
10
11
  export { default as ScrollView } from './ScrollView/ScrollView';
11
12
  export { default as Switch } from './Switch/Switch';
@@ -23,6 +23,7 @@ export { default as DottedLine } from './DottedLine/DottedLine';
23
23
  export { default as Icon } from './Icon/Icon';
24
24
  export { default as Input } from './Input/Input';
25
25
  export { default as KeyboardAvoidingScrollView } from './KeyboardAvoidingScrollView/KeyboardAvoidingScrollView';
26
+ export { default as RadioButton } from './RadioButton/RadioButton';
26
27
  export { default as Screen } from './Screen/Screen';
27
28
  export { default as ScrollView } from './ScrollView/ScrollView';
28
29
  export { default as Switch } from './Switch/Switch';
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/atoms/index.tsx"],"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O,EAAC,OAAO,IAAI,IAAI,EAAC,MAAM,aAAa,CAAC;AAC5C,OAAO,EAAC,OAAO,IAAI,KAAK,EAAC,MAAM,eAAe,CAAC;AAC/C,OAAO,EAAC,OAAO,IAAI,0BAA0B,EAAC,MAAM,yDAAyD,CAAC;AAC9G,OAAO,EAAC,OAAO,IAAI,WAAW,EAAC,MAAM,2BAA2B,CAAC;AACjE,OAAO,EAAC,OAAO,IAAI,MAAM,EAAC,MAAM,iBAAiB,CAAC;AAClD,OAAO,EAAC,OAAO,IAAI,UAAU,EAAC,MAAM,yBAAyB,CAAC;AAC9D,OAAO,EAAC,OAAO,IAAI,MAAM,EAAC,MAAM,iBAAiB,CAAC;AAClD,OAAO,EAAC,OAAO,IAAI,IAAI,EAAC,MAAM,aAAa,CAAC"}
@@ -3,8 +3,8 @@ interface CheckboxProps {
3
3
  styleTxt?: any;
4
4
  iconSize?: number;
5
5
  disabled?: boolean;
6
- title: string;
7
- isDefaultChecked: boolean;
6
+ title?: string;
7
+ isDefaultChecked?: boolean;
8
8
  onChange: (any: any) => void;
9
9
  }
10
10
  declare const Checkbox: ({ style, styleTxt, iconSize, disabled, title, isDefaultChecked, onChange, }: CheckboxProps) => JSX.Element;
@@ -15,10 +15,11 @@
15
15
  * You should have received a copy of the GNU Affero General Public License
16
16
  * along with this program. If not, see <http://www.gnu.org/licenses/>.
17
17
  */
18
- import React, { useMemo, useState } from 'react';
18
+ import React, { useEffect, useMemo, useState } from 'react';
19
19
  import { StyleSheet, View } from 'react-native';
20
20
  import { useThemeColor } from '../../../theme/ThemeContext';
21
21
  import { Icon, Text } from '../../atoms';
22
+ import { checkNullString } from '../../../utils/strings';
22
23
  const Checkbox = ({ style, styleTxt, iconSize = 30, disabled = false, title, isDefaultChecked = false, onChange, }) => {
23
24
  const Colors = useThemeColor();
24
25
  const [isChecked, setIsChecked] = useState(isDefaultChecked);
@@ -27,21 +28,33 @@ const Checkbox = ({ style, styleTxt, iconSize = 30, disabled = false, title, isD
27
28
  onChange(!isChecked);
28
29
  setIsChecked(!isChecked);
29
30
  };
31
+ const styles = useMemo(() => getStyles(iconSize), [iconSize]);
32
+ useEffect(() => {
33
+ setIsChecked(isDefaultChecked);
34
+ }, [isDefaultChecked]);
30
35
  return (<View style={[styles.container, style]}>
31
- <Icon name={iconName} FontAwesome5={false} color={disabled
36
+ <View style={styles.iconContainer}>
37
+ <Icon name={iconName} FontAwesome5={false} color={disabled
32
38
  ? Colors.secondaryColor.background
33
39
  : Colors.primaryColor.background} size={iconSize} touchable={!disabled} onPress={handleToggle}/>
34
- <Text style={[styles.title, styleTxt]} textColor={Colors.text} fontSize={14}>
35
- {title}
36
- </Text>
40
+ </View>
41
+ {!checkNullString(title) && (<Text style={[styles.title, styleTxt]} textColor={Colors.text} fontSize={14}>
42
+ {title}
43
+ </Text>)}
37
44
  </View>);
38
45
  };
39
- const styles = StyleSheet.create({
46
+ const getStyles = iconSize => StyleSheet.create({
40
47
  container: {
41
48
  flexDirection: 'row',
42
49
  justifyContent: 'flex-start',
43
50
  alignItems: 'center',
44
51
  },
52
+ iconContainer: {
53
+ width: iconSize,
54
+ height: iconSize,
55
+ justifyContent: 'center',
56
+ alignItems: 'center',
57
+ },
45
58
  title: {
46
59
  fontSize: 16,
47
60
  marginLeft: 5,
@@ -1 +1 @@
1
- {"version":3,"file":"Checkbox.js","sourceRoot":"","sources":["../../../../src/components/molecules/Checkbox/Checkbox.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,EAAE,EAAC,OAAO,EAAE,QAAQ,EAAC,MAAM,OAAO,CAAC;AAC/C,OAAO,EAAC,UAAU,EAAE,IAAI,EAAC,MAAM,cAAc,CAAC;AAC9C,OAAO,EAAC,aAAa,EAAC,MAAM,6BAA6B,CAAC;AAC1D,OAAO,EAAC,IAAI,EAAE,IAAI,EAAC,MAAM,aAAa,CAAC;AAYvC,MAAM,QAAQ,GAAG,CAAC,EAChB,KAAK,EACL,QAAQ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CAAC,CAAC;AAEF,MAAM,SAAS,GAAG,QAAQ,CAAC,EAAE,CAC3B,UAAU,CAAC,MAAM,CAAC;IAChB,SAAS,EAAE;QACT,aAAa,EAAE,KAAK;QACpB,cAAc,EAAE,YAAY;QAC5B,UAAU,EAAE,QAAQ;KACrB;IACD,aAAa,EAAE;QACb,KAAK,EAAE,QAAQ;QACf,MAAM,EAAE,QAAQ;QAChB,cAAc,EAAE,QAAQ;QACxB,UAAU,EAAE,QAAQ;KACrB;IACD,KAAK,EAAE;QACL,QAAQ,EAAE,EAAE;QACZ,UAAU,EAAE,CAAC;QACb,UAAU,EAAE,KAAK;KAClB;CACF,CAAC,CAAC;AAEL,eAAe,QAAQ,CAAC"}
@@ -3,8 +3,9 @@ interface DropdownCardProps {
3
3
  styleText?: any;
4
4
  title: string;
5
5
  children: any;
6
- DropdownIsOpen?: boolean;
6
+ dropdownIsOpen?: boolean;
7
7
  onPress?: () => void;
8
+ showIcon?: boolean;
8
9
  }
9
- declare const DropdownCard: ({ style, styleText, title, DropdownIsOpen, children, onPress, }: DropdownCardProps) => JSX.Element;
10
+ declare const DropdownCard: ({ style, styleText, title, dropdownIsOpen, children, onPress, showIcon, }: DropdownCardProps) => JSX.Element;
10
11
  export default DropdownCard;
@@ -20,27 +20,32 @@ import { Dimensions, StyleSheet, TouchableOpacity, View } from 'react-native';
20
20
  import { animationUtil } from '../../../tools/AnimationUtil';
21
21
  import { useThemeColor } from '../../../theme/ThemeContext';
22
22
  import { Card, Icon, Text } from '../../atoms';
23
- const DropdownCard = ({ style, styleText, title, DropdownIsOpen = false, children, onPress, }) => {
24
- const [isOpen, setIsOpen] = useState(DropdownIsOpen);
23
+ import { getCommonStyles } from '../../../utils';
24
+ const DropdownCard = ({ style, styleText, title, dropdownIsOpen = false, children, onPress, showIcon = true, }) => {
25
+ const [isOpen, setIsOpen] = useState(dropdownIsOpen);
25
26
  const Colors = useThemeColor();
26
- const styles = useMemo(() => {
27
- return getStyles(Colors);
28
- }, [Colors]);
27
+ const commonStyles = useMemo(() => getCommonStyles(Colors), [Colors]);
28
+ const styles = useMemo(() => getStyles(Colors), [Colors]);
29
29
  const displayCard = useMemo(() => {
30
- return onPress ? DropdownIsOpen : isOpen;
31
- }, [DropdownIsOpen, isOpen, onPress]);
30
+ return onPress ? dropdownIsOpen : isOpen;
31
+ }, [dropdownIsOpen, isOpen, onPress]);
32
32
  const handleCardPress = () => {
33
33
  animationUtil.animateNext();
34
34
  onPress ? onPress() : setIsOpen(!isOpen);
35
35
  };
36
36
  return (<View style={styles.container}>
37
- <TouchableOpacity style={styles.touchable} onPress={handleCardPress} activeOpacity={0.95}>
38
- <Card style={[styles.containerTouchable, style]}>
37
+ <TouchableOpacity style={styles.touchable} onPress={handleCardPress} disabled={!showIcon} activeOpacity={0.95}>
38
+ <View style={[
39
+ commonStyles.filter,
40
+ commonStyles.filterAlign,
41
+ styles.content,
42
+ style,
43
+ ]}>
39
44
  <Text style={styleText} numberOfLines={1}>
40
45
  {title}
41
46
  </Text>
42
- <Icon name={displayCard ? 'chevron-up' : 'chevron-down'} color={Colors.primaryColor.background}/>
43
- </Card>
47
+ {showIcon && (<Icon name={displayCard ? 'chevron-up' : 'chevron-down'} color={Colors.primaryColor.background}/>)}
48
+ </View>
44
49
  </TouchableOpacity>
45
50
  {displayCard && <Card style={styles.containerChildren}>{children}</Card>}
46
51
  </View>);
@@ -50,23 +55,17 @@ const getStyles = Colors => StyleSheet.create({
50
55
  flexDirection: 'column',
51
56
  justifyContent: 'center',
52
57
  alignItems: 'center',
53
- width: Dimensions.get('window').width * 0.9,
58
+ width: '90%',
54
59
  },
55
60
  touchable: {
56
- zIndex: 2,
61
+ zIndex: 31,
57
62
  },
58
- containerTouchable: {
59
- width: Dimensions.get('window').width * 0.9,
63
+ content: {
64
+ width: Dimensions.get('window').width * 0.92,
65
+ borderColor: Colors.secondaryColor.background,
66
+ borderWidth: 1,
67
+ marginHorizontal: 0,
60
68
  height: 40,
61
- flexDirection: 'row',
62
- justifyContent: 'space-between',
63
- alignItems: 'center',
64
- paddingVertical: 5,
65
- marginVertical: 4,
66
- marginRight: 16,
67
- marginLeft: 18,
68
- paddingRight: 50,
69
- paddingLeft: 10,
70
69
  },
71
70
  containerChildren: {
72
71
  backgroundColor: Colors.backgroundColor,
@@ -78,6 +77,7 @@ const getStyles = Colors => StyleSheet.create({
78
77
  marginTop: -20,
79
78
  borderTopLeftRadius: 0,
80
79
  borderTopRightRadius: 0,
80
+ zIndex: 30,
81
81
  },
82
82
  });
83
83
  export default DropdownCard;
@@ -1 +1 @@
1
- {"version":3,"file":"DropdownCard.js","sourceRoot":"","sources":["../../../../src/components/molecules/DropdownCard/DropdownCard.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,EAAE,EAAC,OAAO,EAAE,QAAQ,EAAC,MAAM,OAAO,CAAC;AAC/C,OAAO,EAAC,UAAU,EAAE,UAAU,EAAE,gBAAgB,EAAE,IAAI,EAAC,MAAM,cAAc,CAAC;AAC5E,OAAO,EAAC,aAAa,EAAC,MAAM,8BAA8B,CAAC;AAC3D,OAAO,EAAC,aAAa,EAAC,MAAM,6BAA6B,CAAC;AAC1D,OAAO,EAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAC,MAAM,aAAa,CAAC;AAW7C,MAAM,YAAY,GAAG,CAAC,EACpB,KAAK,EACL,SAAS,EACT,KAAK,EACL,cAAc,GAAG,KAAK,EACtB,QAAQ,EACR,OAAO,GACW,EAAE,EAAE;IACtB,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,GAAG,QAAQ,CAAC,cAAc,CAAC,CAAC;IACrD,MAAM,MAAM,GAAG,aAAa,EAAE,CAAC;IAE/B,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,EAAE;QAC1B,OAAO,SAAS,CAAC,MAAM,CAAC,CAAC;IAC3B,CAAC,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC;IAEb,MAAM,WAAW,GAAG,O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C,CAAC;AAEF,MAAM,SAAS,GAAG,MAAM,CAAC,EAAE,CACzB,UAAU,CAAC,MAAM,CAAC;IAChB,SAAS,EAAE;QACT,aAAa,EAAE,QAAQ;QACvB,cAAc,EAAE,QAAQ;QACxB,UAAU,EAAE,QAAQ;QACpB,KAAK,EAAE,UAAU,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC,KAAK,GAAG,GAAG;KAC5C;IACD,SAAS,EAAE;QACT,MAAM,EAAE,CAAC;KACV;IACD,kBAAkB,EAAE;QAClB,KAAK,EAAE,UAAU,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC,KAAK,GAAG,GAAG;QAC3C,MAAM,EAAE,EAAE;QACV,aAAa,EAAE,KAAK;QACpB,cAAc,EAAE,eAAe;QAC/B,UAAU,EAAE,QAAQ;QACpB,eAAe,EAAE,CAAC;QAClB,cAAc,EAAE,CAAC;QACjB,WAAW,EAAE,EAAE;QACf,UAAU,EAAE,EAAE;QACd,YAAY,EAAE,EAAE;QAChB,WAAW,EAAE,EAAE;KAChB;IACD,iBAAiB,EAAE;QACjB,eAAe,EAAE,MAAM,CAAC,eAAe;QACvC,KAAK,EAAE,UAAU,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC,KAAK,GAAG,GAAG;QAC3C,UAAU,EAAE,EAAE;QACd,WAAW,EAAE,EAAE;QACf,YAAY,EAAE,EAAE;QAChB,aAAa,EAAE,EAAE;QACjB,SAAS,EAAE,CAAC,EAAE;QACd,mBAAmB,EAAE,CAAC;QACtB,oBAAoB,EAAE,CAAC;KACxB;CACF,CAAC,CAAC;AAEL,eAAe,YAAY,CAAC"}
1
+ {"version":3,"file":"DropdownCard.js","sourceRoot":"","sources":["../../../../src/components/molecules/DropdownCard/DropdownCard.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,EAAE,EAAC,OAAO,EAAE,QAAQ,EAAC,MAAM,OAAO,CAAC;AAC/C,OAAO,EAAC,UAA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GAAG,CAAC,QAAQ,CAAC,CAAC,KAAK,GAAG,IAAI;QAC5C,WAAW,EAAE,MAAM,CAAC,cAAc,CAAC,UAAU;QAC7C,WAAW,EAAE,CAAC;QACd,gBAAgB,EAAE,CAAC;QACnB,MAAM,EAAE,EAAE;KACX;IACD,iBAAiB,EAAE;QACjB,eAAe,EAAE,MAAM,CAAC,eAAe;QACvC,KAAK,EAAE,UAAU,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC,KAAK,GAAG,GAAG;QAC3C,UAAU,EAAE,EAAE;QACd,WAAW,EAAE,EAAE;QACf,YAAY,EAAE,EAAE;QAChB,aAAa,EAAE,EAAE;QACjB,SAAS,EAAE,CAAC,EAAE;QACd,mBAAmB,EAAE,CAAC;QACtB,oBAAoB,EAAE,CAAC;QACvB,MAAM,EAAE,EAAE;KACX;CACF,CAAC,CAAC;AAEL,eAAe,YAAY,CAAC"}
@@ -3,9 +3,10 @@ interface FormHtmlInputProps {
3
3
  placeholder?: string;
4
4
  defaultValue?: string;
5
5
  readonly?: boolean;
6
+ hideIfNull?: boolean;
6
7
  style?: any;
7
8
  required?: boolean;
8
9
  onChange?: (any: any) => void;
9
10
  }
10
- declare const FormHtmlInput: ({ title, placeholder, defaultValue, readonly, style, required, onChange, }: FormHtmlInputProps) => JSX.Element;
11
+ declare const FormHtmlInput: ({ title, placeholder, defaultValue, readonly, hideIfNull, style, required, onChange, }: FormHtmlInputProps) => JSX.Element;
11
12
  export default FormHtmlInput;
@@ -20,7 +20,8 @@ import { StyleSheet, View } from 'react-native';
20
20
  import { HtmlInput, Text } from '../../atoms';
21
21
  import { useThemeColor } from '../../../theme/ThemeContext';
22
22
  import { getCommonStyles } from '../../../utils/commons-styles';
23
- const FormHtmlInput = ({ title, placeholder = '', defaultValue = null, readonly = false, style, required = false, onChange = () => { }, }) => {
23
+ import { checkNullString } from '../../../utils/strings';
24
+ const FormHtmlInput = ({ title, placeholder = '', defaultValue = null, readonly = false, hideIfNull = false, style, required = false, onChange = () => { }, }) => {
24
25
  const Colors = useThemeColor();
25
26
  const [value, setValue] = useState(defaultValue);
26
27
  const [isFocused, setIsFocused] = useState(false);
@@ -40,7 +41,10 @@ const FormHtmlInput = ({ title, placeholder = '', defaultValue = null, readonly
40
41
  const handleBlur = () => {
41
42
  setIsFocused(false);
42
43
  };
43
- return (<View style={style}>
44
+ if (hideIfNull && readonly && checkNullString(defaultValue)) {
45
+ return null;
46
+ }
47
+ return (<View style={[styles.container, style]}>
44
48
  <Text style={styles.title}>{title}</Text>
45
49
  <View style={[
46
50
  commonStyles.filter,
@@ -52,6 +56,10 @@ const FormHtmlInput = ({ title, placeholder = '', defaultValue = null, readonly
52
56
  </View>);
53
57
  };
54
58
  const getStyles = (Colors, _required) => StyleSheet.create({
59
+ container: {
60
+ width: '90%',
61
+ alignSelf: 'center',
62
+ },
55
63
  content: {
56
64
  width: '100%',
57
65
  borderColor: _required
@@ -65,6 +73,7 @@ const getStyles = (Colors, _required) => StyleSheet.create({
65
73
  },
66
74
  input: {
67
75
  width: '100%',
76
+ minHeight: 40,
68
77
  },
69
78
  title: {
70
79
  marginLeft: 10,
@@ -1 +1 @@
1
- {"version":3,"file":"FormHtmlInput.js","sourceRoot":"","sources":["../../../../src/components/molecules/FormHtmlInput/FormHtmlInput.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,EAAE,EAAC,WAAW,EAAE,SAAS,EAAE,OAAO,EAAE,QAAQ,EAAC,MAAM,OAAO,CAAC;AACvE,OAAO,EAAC,UAAU,EAAE,IAAI,EAAC,MAAM,cAAc,CAAC;AAC9C,OAAO,EAAC,SAAS,EAAE,IAAI,EAAC,MAAM,aAAa,CAAC;AAC5C,OAAO,EAAC,aAAa,EAAC,MAAM,6BAA6B,CAAC;AAE1D,OAAO,EAAC,eAAe,EAAC,MAAM,+BAA+B,CAAC;AAY9D,MAAM,aAAa,GAAG,CAAC,EACrB,KAAK,EACL,WAAW,GAAG,EAA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WAAW,CAAC,CACzB,QAAQ,CAAC,CAAC,QAAQ,CAAC,CACnB,KAAK,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CACpB,YAAY,CAAC,CAAC,MAAM,CAAC,WAAW,CAAC,CACjC,OAAO,CAAC,CAAC,WAAW,CAAC,CACrB,MAAM,CAAC,CAAC,UAAU,CAAC,EAEvB;MAAA,EAAE,IAAI,CACR;IAAA,EAAE,IAAI,CAAC,CACR,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,SAAS,GAAG,CAAC,MAAmB,EAAE,SAAkB,EAAE,EAAE,CAC5D,UAAU,CAAC,MAAM,CAAC;IAChB,SAAS,EAAE;QACT,KAAK,EAAE,KAAK;QACZ,SAAS,EAAE,QAAQ;KACpB;IACD,OAAO,EAAE;QACP,KAAK,EAAE,MAAM;QACb,WAAW,EAAE,SAAS;YACpB,CAAC,CAAC,MAAM,CAAC,UAAU,CAAC,UAAU;YAC9B,CAAC,CAAC,MAAM,CAAC,cAAc,CAAC,UAAU;QACpC,WAAW,EAAE,CAAC;KACf;IACD,WAAW,EAAE;QACX,eAAe,EAAE,IAAI;QACrB,UAAU,EAAE,CAAC,CAAC;KACf;IACD,KAAK,EAAE;QACL,KAAK,EAAE,MAAM;QACb,SAAS,EAAE,EAAE;KACd;IACD,KAAK,EAAE;QACL,UAAU,EAAE,EAAE;KACf;CACF,CAAC,CAAC;AAEL,eAAe,aAAa,CAAC"}
@@ -1,7 +1,9 @@
1
+ import { KeyboardTypeOptions } from 'react-native';
1
2
  interface FormIncrementInputProps {
2
3
  style?: any;
3
4
  title: string;
4
5
  readOnly?: boolean;
6
+ required?: boolean;
5
7
  defaultValue?: string;
6
8
  onChange: (value: any) => void;
7
9
  decimalSpacer?: string;
@@ -11,6 +13,8 @@ interface FormIncrementInputProps {
11
13
  minValue?: number;
12
14
  maxValue?: number;
13
15
  isBigButton?: boolean;
16
+ keyboardType?: KeyboardTypeOptions;
17
+ scale?: number;
14
18
  }
15
- declare const FormIncrementInput: ({ style, title, readOnly, defaultValue, decimalSpacer, thousandSpacer, onChange, defaultFormatting, stepSize, minValue, maxValue, isBigButton, }: FormIncrementInputProps) => JSX.Element;
19
+ declare const FormIncrementInput: ({ style, title, readOnly, required, defaultValue, decimalSpacer, thousandSpacer, onChange, defaultFormatting, stepSize, minValue, maxValue, isBigButton, keyboardType, scale, }: FormIncrementInputProps) => JSX.Element;
16
20
  export default FormIncrementInput;