@eohjsc/react-native-smart-city 0.7.3-rc12 → 0.7.3-rc14

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 (89) hide show
  1. package/package.json +1 -1
  2. package/src/commons/ActionGroup/NumberUpDownActionTemplate.js +3 -3
  3. package/src/commons/ActionGroup/OnOffSmartLock/AutoLock/ButtonWrapper.js +3 -3
  4. package/src/commons/ActionGroup/OnOffSmartLock/PasscodeList/index.js +3 -3
  5. package/src/commons/ActionGroup/OnOffSmartLock/SetupGeneratePasscode/ButtonWrapper.js +2 -2
  6. package/src/commons/ActionGroup/OnOffTemplate/OnOffSimpleTemplate.js +2 -2
  7. package/src/commons/ActionGroup/OptionsDropdownActionTemplate.js +2 -2
  8. package/src/commons/ActionGroup/SmartTiviActionTemplate/SmartTiviActionTemplate.js +2 -2
  9. package/src/commons/ActionGroup/SmartTiviActionTemplate/component/CircleButton.js +5 -5
  10. package/src/commons/ActionGroup/SmartTiviActionTemplate/component/ControlPlay.js +5 -5
  11. package/src/commons/ActionGroup/TerminalBoxTemplate.js +2 -2
  12. package/src/commons/ActionGroup/TextBoxTemplate.js +2 -2
  13. package/src/commons/ActionGroup/TimerActionTemplate.js +6 -3
  14. package/src/commons/ActionGroup/TwoButtonTemplate/index.js +2 -2
  15. package/src/commons/BackDefault/index.js +2 -2
  16. package/src/commons/ButtonPopup/index.js +2 -2
  17. package/src/commons/DateTimeRangeChange/DateTimeButton.js +2 -2
  18. package/src/commons/Device/ConnectedViewHeader.js +2 -2
  19. package/src/commons/Device/Emergency/EmergencyDetail.js +3 -3
  20. package/src/commons/Device/FlatListItems.js +3 -3
  21. package/src/commons/Device/Hanet/ItemHanetDevice.js +3 -3
  22. package/src/commons/Device/ItemAddNew/index.js +2 -2
  23. package/src/commons/Device/ItemDevice.js +2 -2
  24. package/src/commons/Device/SonosSpeaker/index.js +3 -3
  25. package/src/commons/Device/WaterPurifierStatus/AlertStatusMachine.js +2 -2
  26. package/src/commons/Device/WaterQualitySensor/QualityIndicatorsItem.js +6 -2
  27. package/src/commons/DisplayChecking/index.js +2 -2
  28. package/src/commons/EmergencyButton/AlertSendConfirm.js +2 -2
  29. package/src/commons/FieldTemplate/ChooseUserField/index.js +2 -2
  30. package/src/commons/Header/HeaderCustom.js +2 -2
  31. package/src/commons/HeaderAni/index.js +2 -2
  32. package/src/commons/NavBar/index.js +2 -2
  33. package/src/commons/OneTapTemplate/NumberUpDownActionTemplate.js +3 -3
  34. package/src/commons/SearchLocation/index.js +3 -3
  35. package/src/commons/SelectActionCard/index.js +2 -2
  36. package/src/commons/SelectSubUnit/index.js +6 -2
  37. package/src/commons/Sharing/BtnRemoveMember.js +2 -2
  38. package/src/commons/Sharing/StationDevicePermissions.js +2 -2
  39. package/src/commons/SubUnit/DeviceTemplate/ConfigAndEvaluation/ConfigAndEvaluation.js +2 -2
  40. package/src/commons/SubUnit/DeviceTemplate/ConfigValue/ConfigValue.js +2 -2
  41. package/src/commons/SubUnit/DeviceTemplate/EvaluationOverConfig/EvaluationOverConfig.js +2 -2
  42. package/src/commons/SubUnit/OneTap/ItemOneTap.js +2 -2
  43. package/src/commons/Unit/HeaderUnit/index.js +3 -3
  44. package/src/commons/Unit/SharedUnit.js +7 -7
  45. package/src/navigations/EmergencyContactsStack.js +2 -2
  46. package/src/navigations/UnitStack.js +2 -2
  47. package/src/screens/ActivityLog/index.js +2 -2
  48. package/src/screens/AddLocationMaps/index.js +3 -3
  49. package/src/screens/AddNewGateway/RenameNewDevices.js +2 -2
  50. package/src/screens/Automate/AddNewAction/NewActionWrapper.js +2 -2
  51. package/src/screens/Automate/AddNewAction/SetupConfigCondition.js +7 -2
  52. package/src/screens/Automate/ScriptDetail/Components/AddActionScript.js +2 -2
  53. package/src/screens/Automate/ScriptDetail/index.js +3 -3
  54. package/src/screens/Automate/Styles/indexStyles.js +1 -1
  55. package/src/screens/Automate/index.js +36 -33
  56. package/src/screens/Device/EditDevice/index.js +2 -2
  57. package/src/screens/Device/__test__/detail.test.js +3 -3
  58. package/src/screens/Device/detail.js +7 -7
  59. package/src/screens/Drawer/index.js +3 -3
  60. package/src/screens/EmergencyContacts/EmergencyContactsList.js +8 -4
  61. package/src/screens/EmergencyContacts/EmergencyContactsSelectContacts.js +3 -3
  62. package/src/screens/EmergencySetting/components/DropDownItem.js +2 -2
  63. package/src/screens/GuestInfo/components/RowGuestInfo.js +2 -2
  64. package/src/screens/GuestInfo/index.js +2 -2
  65. package/src/screens/HanetCamera/ManageAccess.js +3 -3
  66. package/src/screens/HanetCamera/MemberInfo.js +2 -2
  67. package/src/screens/HanetCamera/components/RequestFaceIDPopup.js +2 -2
  68. package/src/screens/ManageAccess/index.js +3 -3
  69. package/src/screens/Notification/index.js +3 -3
  70. package/src/screens/ScanChipQR/components/QRScan/index.js +3 -3
  71. package/src/screens/SelectUnit/index.js +2 -2
  72. package/src/screens/SharedUnit/TabHeader.js +2 -2
  73. package/src/screens/Sharing/Components/EndDevice.js +3 -3
  74. package/src/screens/Sharing/UnitMemberList.js +2 -2
  75. package/src/screens/SmartAccount/SuccessfullyConnected/index.js +2 -2
  76. package/src/screens/SmartIr/__test__/GroupButtonByType.test.js +3 -2
  77. package/src/screens/SmartIr/components/GroupButtonByType/GroupButtonByType.js +2 -2
  78. package/src/screens/SmartIr/components/SelectBrand.js +2 -2
  79. package/src/screens/SubUnit/EditSubUnit.js +2 -2
  80. package/src/screens/SubUnit/ManageSubUnit.js +3 -3
  81. package/src/screens/Unit/SelectAddToFavorites.js +2 -2
  82. package/src/screens/Unit/SelectAddress.js +3 -3
  83. package/src/screens/Unit/components/AutomateScript/index.js +2 -2
  84. package/src/screens/Unit/components/ButtonWrapper/index.js +3 -3
  85. package/src/screens/Unit/components/Header/index.js +2 -2
  86. package/src/screens/Unit/components/SharedUnit/index.js +5 -5
  87. package/src/screens/UnitSummary/components/AirQuality/index.js +6 -11
  88. package/src/screens/UnitSummary/components/WaterQuality/Item/index.js +2 -2
  89. package/src/screens/UnitSummary/index.js +3 -3
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { View, TouchableWithoutFeedback } from 'react-native';
3
- import AntDesign from 'react-native-vector-icons/AntDesign';
3
+ import { IconOutline } from '@ant-design/icons-react-native';
4
4
  import { useTranslations } from '../../../../hooks/Common/useTranslations';
5
5
  import Text from '../../../../commons/Text';
6
6
  import FImage from '../../../../commons/FImage';
@@ -61,7 +61,7 @@ const AutomateScript = ({ automate, onPress, isSelected }) => {
61
61
  <Text numberOfLines={1} type={'Label'} color={Colors.Gray7}>
62
62
  {t('created_by', { name: author })}
63
63
  </Text>
64
- <AntDesign name="right" size={12} />
64
+ <IconOutline name="right" size={12} />
65
65
  </View>
66
66
  </View>
67
67
  </View>
@@ -2,7 +2,7 @@ import React, { memo } from 'react';
2
2
  import { View, TouchableOpacity, Image } from 'react-native';
3
3
  import Text from '../../../../commons/Text';
4
4
  import { Colors } from '../../../../configs';
5
- import AntDesign from 'react-native-vector-icons/AntDesign';
5
+ import { IconOutline } from '@ant-design/icons-react-native';
6
6
  import { AccessibilityLabel } from '../../../../configs/Constants';
7
7
  import styles from './styles';
8
8
 
@@ -46,10 +46,10 @@ const ButtonWrapper = ({
46
46
  <Image source={{ uri: value }} style={styles.avatar} />
47
47
  ) : (
48
48
  <View style={styles.avatar}>
49
- <AntDesign name={'user'} size={27} />
49
+ <IconOutline name={'user'} size={27} />
50
50
  </View>
51
51
  )}
52
- <AntDesign name="right" size={20} color={Colors.Gray7} />
52
+ <IconOutline name="right" size={20} color={Colors.Gray7} />
53
53
  </View>
54
54
  </View>
55
55
  {children}
@@ -1,7 +1,7 @@
1
1
  import React, { useCallback, useRef, useState } from 'react';
2
2
  import { Dimensions, View, TouchableOpacity, StyleSheet } from 'react-native';
3
3
  import Popover from '../../../../commons/Popover';
4
- import AntDesign from 'react-native-vector-icons/AntDesign';
4
+ import { IconOutline } from '@ant-design/icons-react-native';
5
5
  import MaterialIcons from 'react-native-vector-icons/MaterialIcons';
6
6
  import { useTranslations } from '../../../../hooks/Common/useTranslations';
7
7
 
@@ -98,7 +98,7 @@ const HeaderComponent = ({ title, goBack, dark, hideRight, style }) => {
98
98
  onPress={() => setShowModal(true)}
99
99
  style={styles.rightHeader}
100
100
  >
101
- <AntDesign
101
+ <IconOutline
102
102
  name="plus"
103
103
  size={32}
104
104
  color={dark ? Colors.Black : Colors.White}
@@ -1,7 +1,7 @@
1
1
  import React, { Fragment, useCallback } from 'react';
2
2
  import { View, Image, TouchableOpacity } from 'react-native';
3
3
  import { useTranslations } from '../../../../hooks/Common/useTranslations';
4
- import AntDesign from 'react-native-vector-icons/AntDesign';
4
+ import { IconFill, IconOutline } from '@ant-design/icons-react-native';
5
5
 
6
6
  import { API, Colors, Images } from '../../../../configs';
7
7
  import Text from '../../../../commons/Text';
@@ -88,7 +88,7 @@ const SharedUnit = ({
88
88
  {isOptions && (
89
89
  <Fragment>
90
90
  {item.is_pin ? (
91
- <AntDesign
91
+ <IconOutline
92
92
  name="pushpin"
93
93
  size={20}
94
94
  color={Colors.Blue10}
@@ -98,7 +98,7 @@ const SharedUnit = ({
98
98
  }
99
99
  />
100
100
  ) : (
101
- <AntDesign
101
+ <IconOutline
102
102
  name="pushpin"
103
103
  size={20}
104
104
  onPress={addPinSharedUnit}
@@ -106,7 +106,7 @@ const SharedUnit = ({
106
106
  />
107
107
  )}
108
108
  {item.is_star ? (
109
- <AntDesign
109
+ <IconFill
110
110
  name="star"
111
111
  size={20}
112
112
  color={Colors.Yellow6}
@@ -116,7 +116,7 @@ const SharedUnit = ({
116
116
  }
117
117
  />
118
118
  ) : (
119
- <AntDesign
119
+ <IconOutline
120
120
  name="star"
121
121
  size={20}
122
122
  onPress={addStarSharedUnit}
@@ -1,16 +1,15 @@
1
+ import { IconOutline } from '@ant-design/icons-react-native';
1
2
  import React, { memo, useCallback, useMemo, useState } from 'react';
2
3
  import { TouchableOpacity, View } from 'react-native';
3
- import AntDesign from 'react-native-vector-icons/AntDesign';
4
- import MaterialCommunityIcons from 'react-native-vector-icons/MaterialCommunityIcons';
5
4
 
6
5
  import styles from './styles';
7
6
 
8
7
  import { Section, Text } from '../../../../commons';
9
- import VisualChart from '../../../Device/components/VisualChart';
10
- import { useTranslations } from '../../../../hooks/Common/useTranslations';
11
- import { useWatchConfigs } from '../../../../hooks/IoT';
12
8
  import { Colors } from '../../../../configs';
13
9
  import AccessibilityLabel from '../../../../configs/AccessibilityLabel';
10
+ import { useTranslations } from '../../../../hooks/Common/useTranslations';
11
+ import { useWatchConfigs } from '../../../../hooks/IoT';
12
+ import VisualChart from '../../../Device/components/VisualChart';
14
13
  import SegmentedRoundChart from './SegmentedRoundChart';
15
14
 
16
15
  const AirQuality = memo(({ summaryDetail }) => {
@@ -80,7 +79,7 @@ const AirQuality = memo(({ summaryDetail }) => {
80
79
  <View
81
80
  style={[styles.boxEmotion, { backgroundColor: outdoorColor }]}
82
81
  >
83
- <AntDesign name={outdoorIcon} size={35} />
82
+ <IconOutline name={outdoorIcon} size={35} />
84
83
  </View>
85
84
  <View
86
85
  style={[
@@ -122,11 +121,7 @@ const AirQuality = memo(({ summaryDetail }) => {
122
121
  {<SegmentedRoundChart data={outdoor} />}
123
122
  {!!advices?.length && (
124
123
  <View style={styles.boxHealth}>
125
- <MaterialCommunityIcons
126
- name="alert-circle-outline"
127
- size={20}
128
- style={styles.iconMargin}
129
- />
124
+ <IconOutline name="alert" size={20} style={styles.iconMargin} />
130
125
  <Text semibold color={Colors.Gray9} type="H4">
131
126
  {t('Health advices:')}
132
127
  </Text>
@@ -1,6 +1,6 @@
1
1
  import React, { memo } from 'react';
2
2
  import { View, StyleSheet, TouchableOpacity } from 'react-native';
3
- import AntDesign from 'react-native-vector-icons/AntDesign';
3
+ import { IconOutline } from '@ant-design/icons-react-native';
4
4
  import { useNavigation } from '@react-navigation/native';
5
5
 
6
6
  import Text from '../../../../../commons/Text';
@@ -23,7 +23,7 @@ const Item = memo(({ id, svgMain, title, measure, des, color, waterType }) => {
23
23
  <Text>{title}</Text>
24
24
  {waterType && (
25
25
  <TouchableOpacity onPress={goToDetail} style={styles.buttonInfo}>
26
- <AntDesign
26
+ <IconOutline
27
27
  style={styles.row}
28
28
  name="infocirlceo"
29
29
  size={20}
@@ -2,7 +2,7 @@ import React, { memo, useCallback, useEffect, useState } from 'react';
2
2
  import { View, StyleSheet } from 'react-native';
3
3
  import { useNavigation } from '@react-navigation/native';
4
4
  import { TouchableOpacity } from 'react-native';
5
- import AntDesign from 'react-native-vector-icons/AntDesign';
5
+ import { IconOutline } from '@ant-design/icons-react-native';
6
6
  import moment from 'moment';
7
7
 
8
8
  import { useTranslations } from '../../hooks/Common/useTranslations';
@@ -168,8 +168,8 @@ const UnitSummary = memo(({ route }) => {
168
168
  accessibilityLabel={AccessibilityLabel.UNIT_SUMMARY_GUIDE_TOUCH}
169
169
  onPress={() => navigation.navigate(GuideName)}
170
170
  >
171
- <AntDesign
172
- name={'infocirlceo'}
171
+ <IconOutline
172
+ name="info-circle"
173
173
  size={25}
174
174
  color={Colors.Black}
175
175
  />