@abihealth/goapp-react-native 1.13.22 → 1.14.0

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 (104) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/dist/common/animations/FindingAnimation/index.js +2 -2
  3. package/dist/common/animations/FindingAnimation/xml.d.ts +1 -2
  4. package/dist/common/animations/FindingAnimation/xml.js +2 -2
  5. package/dist/common/animations/HorizontalLoadingAnimation/index.d.ts +5 -2
  6. package/dist/common/animations/HorizontalLoadingAnimation/index.js +5 -2
  7. package/dist/common/animations/HorizontalLoadingAnimation/xml.d.ts +2 -1
  8. package/dist/common/animations/HorizontalLoadingAnimation/xml.js +4 -1
  9. package/dist/common/animations/LoadingCircleAnimation/index.js +2 -2
  10. package/dist/common/animations/LoadingCircleAnimation/xml.d.ts +1 -2
  11. package/dist/common/animations/LoadingCircleAnimation/xml.js +1 -1
  12. package/dist/common/animations/LoadingHeart.js +2 -2
  13. package/dist/common/api/models/consultation.d.ts +2 -2
  14. package/dist/common/components/ActionSheet.js +2 -2
  15. package/dist/common/components/AnswerScreen/Card.js +1 -1
  16. package/dist/common/components/AnswerScreen/DeliveryAddressCard.js +12 -6
  17. package/dist/common/components/AnswerScreen/PrescriptionCard/PrescriptionCardHeader.js +1 -1
  18. package/dist/common/components/AnswerScreen/PrescriptionCard/index.js +12 -9
  19. package/dist/common/components/AnswerScreen/Summary.js +11 -7
  20. package/dist/common/components/BackgroundPattern.js +8 -1
  21. package/dist/common/components/Button.js +30 -13
  22. package/dist/common/components/Checkbox.js +5 -6
  23. package/dist/common/components/DateInput.js +7 -7
  24. package/dist/common/components/DoctorProfileCard.js +31 -18
  25. package/dist/common/components/FormControl.d.ts +2 -1
  26. package/dist/common/components/FormControl.js +14 -9
  27. package/dist/common/components/Header.js +3 -3
  28. package/dist/common/components/Input.js +10 -8
  29. package/dist/common/components/Modal/AttachmentPreviewModal.js +6 -6
  30. package/dist/common/components/Modal/DoctorProfileModal.js +4 -4
  31. package/dist/common/components/Modal/ModalHeader.js +11 -5
  32. package/dist/common/components/Modal/index.js +12 -5
  33. package/dist/common/components/PhoneInput.js +8 -8
  34. package/dist/common/components/Reminder.js +2 -2
  35. package/dist/common/components/Select.js +6 -6
  36. package/dist/common/components/Text.d.ts +1 -2
  37. package/dist/common/components/Text.js +28 -46
  38. package/dist/common/contexts/ConsultationContext.d.ts +5 -2
  39. package/dist/common/contexts/ConsultationContext.js +24 -14
  40. package/dist/common/contexts/ThemeContext.d.ts +6 -2
  41. package/dist/common/contexts/ThemeContext.js +4 -3
  42. package/dist/common/hooks/useCustomComponents.d.ts +2 -0
  43. package/dist/common/hooks/useCustomComponents.js +12 -0
  44. package/dist/common/hooks/useTheme.d.ts +2 -1
  45. package/dist/common/hooks/useTheme.js +33 -16
  46. package/dist/common/hooks/useUser.d.ts +2 -0
  47. package/dist/common/hooks/useUser.js +2 -2
  48. package/dist/common/icons/AbiLogoIcon.js +2 -2
  49. package/dist/common/icons/BackArrowIcon.js +2 -2
  50. package/dist/common/icons/CloseIcon.js +2 -2
  51. package/dist/common/icons/DoctorIcon.js +3 -3
  52. package/dist/common/icons/DoctorImagePlaceholderIcon.js +5 -5
  53. package/dist/common/icons/ExitIcon.js +5 -5
  54. package/dist/common/icons/InfoIcon.js +2 -2
  55. package/dist/common/icons/MotorbikeIcon.js +11 -11
  56. package/dist/common/icons/NoCaseFoundIcon.js +5 -5
  57. package/dist/common/icons/PdfDownloadIcon.js +11 -11
  58. package/dist/common/icons/PdfIcon.js +3 -3
  59. package/dist/common/icons/PersonIcon.js +2 -2
  60. package/dist/common/icons/PillsIcon.js +5 -5
  61. package/dist/common/icons/PlaneIcon.js +2 -2
  62. package/dist/common/icons/RatingIcon.js +6 -6
  63. package/dist/common/icons/StarIcon.js +2 -2
  64. package/dist/common/icons/TextConsultationIcon.js +3 -3
  65. package/dist/common/icons/TrashIcon.js +2 -2
  66. package/dist/common/icons/VideoConsultationIcon.js +2 -2
  67. package/dist/common/index.d.ts +2 -1
  68. package/dist/common/index.js +4 -2
  69. package/dist/common/screens/AnswerScreen.d.ts +2 -1
  70. package/dist/common/screens/AnswerScreen.js +12 -10
  71. package/dist/common/screens/MatchingScreen.js +5 -2
  72. package/dist/common/screens/RatingScreen.js +1 -1
  73. package/dist/common/types/components.d.ts +121 -0
  74. package/dist/common/types/components.js +2 -0
  75. package/dist/common/types/consultation.d.ts +7 -3
  76. package/dist/common/types/consultation.js +6 -1
  77. package/dist/common/types/theme.d.ts +54 -20
  78. package/dist/common/types/theme.js +13 -27
  79. package/dist/common/utils/professional.js +1 -1
  80. package/dist/index.d.ts +3 -2
  81. package/dist/index.js +5 -2
  82. package/dist/video-consultations/animations/CallingAnimation/index.js +2 -2
  83. package/dist/video-consultations/animations/CallingAnimation/xml.d.ts +1 -2
  84. package/dist/video-consultations/animations/CallingAnimation/xml.js +1 -1
  85. package/dist/video-consultations/components/AgoraWrapper/components/BaseRenderUsers.js +7 -7
  86. package/dist/video-consultations/components/AgoraWrapper/components/BtnControls.js +4 -6
  87. package/dist/video-consultations/components/AgoraWrapper/components/ui/index.js +5 -13
  88. package/dist/video-consultations/components/Modal/EndVideoCallModal.js +1 -1
  89. package/dist/video-consultations/components/VideoConsultation.d.ts +2 -1
  90. package/dist/video-consultations/components/VideoConsultation.js +7 -1
  91. package/dist/video-consultations/icons/EndVideoCallIcon.js +5 -5
  92. package/dist/video-consultations/icons/HangUpIcon.js +7 -3
  93. package/dist/video-consultations/icons/MicroOffIcon.js +3 -3
  94. package/dist/video-consultations/icons/MicroOnIcon.js +8 -4
  95. package/dist/video-consultations/icons/PersonIcon.js +2 -2
  96. package/dist/video-consultations/icons/SwitchCameraIcon.js +7 -3
  97. package/dist/video-consultations/icons/VideoOffIcon.js +4 -2
  98. package/dist/video-consultations/icons/VideoOnIcon.js +7 -3
  99. package/dist/video-consultations/screens/DeliveryAddressScreen.js +2 -2
  100. package/dist/video-consultations/screens/EndingVideoScreen.d.ts +1 -1
  101. package/dist/video-consultations/screens/EndingVideoScreen.js +1 -1
  102. package/dist/video-consultations/screens/JoinVideoCallScreen.js +12 -11
  103. package/dist/video-consultations/screens/ProcessingPrescriptionScreen.js +5 -3
  104. package/package.json +12 -12
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CONSULTATION_EVENT = exports.CONSULTATION_STATUS = exports.DELIVERY_ADDRESS_STATUS = exports.IndicationFileStatus = exports.CASE_TYPE = void 0;
3
+ exports.CONSULTATION_EVENT = exports.CONSULTATION_STATUS = exports.DELIVERY_ADDRESS_STATUS = exports.QuestionType = exports.IndicationFileStatus = exports.CASE_TYPE = void 0;
4
4
  var CASE_TYPE;
5
5
  (function (CASE_TYPE) {
6
6
  CASE_TYPE["MEDICAL"] = "medicalConsultation";
@@ -15,6 +15,11 @@ var IndicationFileStatus;
15
15
  IndicationFileStatus["CREATED"] = "CREATED";
16
16
  IndicationFileStatus["ERROR"] = "ERROR";
17
17
  })(IndicationFileStatus || (exports.IndicationFileStatus = IndicationFileStatus = {}));
18
+ var QuestionType;
19
+ (function (QuestionType) {
20
+ QuestionType["QUESTION"] = "question";
21
+ QuestionType["ANSWER"] = "answer";
22
+ })(QuestionType || (exports.QuestionType = QuestionType = {}));
18
23
  var DELIVERY_ADDRESS_STATUS;
19
24
  (function (DELIVERY_ADDRESS_STATUS) {
20
25
  DELIVERY_ADDRESS_STATUS["PENDING"] = "pending";
@@ -1,4 +1,5 @@
1
- import { ColorValue, StyleProp, ViewStyle } from 'react-native';
1
+ import { ColorValue, StyleProp, TextStyle, ViewStyle } from 'react-native';
2
+ import { TEXT_VARIANT } from '../components/Text';
2
3
  export type RecursivePartial<T> = {
3
4
  [P in keyof T]?: RecursivePartial<T[P]>;
4
5
  };
@@ -12,24 +13,25 @@ export type Shadow = {
12
13
  shadowRadius: number;
13
14
  elevation: number;
14
15
  };
15
- export type Colors = {
16
+ export type Palette = {
16
17
  white: ColorValue;
17
18
  black: ColorValue;
18
- gray: ColorValue;
19
- darkGray: ColorValue;
20
- text: ColorValue;
21
- background: ColorValue;
22
- primary: ColorValue;
23
- primaryDark: ColorValue;
24
- primaryLight: ColorValue;
19
+ grey: {
20
+ base: ColorValue;
21
+ dark: ColorValue;
22
+ light: ColorValue;
23
+ };
24
+ primary: {
25
+ base: ColorValue;
26
+ dark: ColorValue;
27
+ light: ColorValue;
28
+ };
25
29
  secondary: ColorValue;
26
30
  tertiary: ColorValue;
27
- pattern: ColorValue;
28
- rating: ColorValue;
29
- warning: ColorValue;
31
+ error: ColorValue;
30
32
  success: ColorValue;
31
- backdrop: ColorValue;
32
- divider: ColorValue;
33
+ surface: ColorValue;
34
+ highlight: ColorValue;
33
35
  };
34
36
  export type FontSize = {
35
37
  sm: number;
@@ -66,17 +68,49 @@ export type Shadows = {
66
68
  strong: Shadow;
67
69
  };
68
70
  export type Components = {
69
- videoCall?: {
70
- endCall?: StyleProp<ViewStyle>;
71
+ videoCall: {
72
+ buttonsContainerStyle: StyleProp<ViewStyle>;
73
+ endCallStyle: StyleProp<ViewStyle>;
74
+ join: {
75
+ disclaimerCard: StyleProp<ViewStyle>;
76
+ };
77
+ };
78
+ background: {
79
+ image: string | null;
80
+ backgroundColor: ColorValue;
81
+ };
82
+ modal: {
83
+ backdropColor: ColorValue;
84
+ containerStyle: StyleProp<ViewStyle>;
71
85
  };
86
+ doctorProfileCard: {
87
+ containerStyle: StyleProp<ViewStyle>;
88
+ specialtyStyle: StyleProp<ViewStyle>;
89
+ buttonTextStyle: StyleProp<TextStyle>;
90
+ };
91
+ button: {
92
+ primaryStyle: StyleProp<ViewStyle>;
93
+ secondaryStyle: StyleProp<ViewStyle>;
94
+ tertiaryStyle: StyleProp<ViewStyle>;
95
+ };
96
+ input: {
97
+ style: StyleProp<TextStyle>;
98
+ placeholderTextColor: ColorValue;
99
+ };
100
+ };
101
+ export type FontElement = {
102
+ color?: ColorValue;
103
+ size?: TextStyle['fontSize'];
104
+ alignment?: TextStyle['textAlign'];
105
+ lineHeight?: TextStyle['lineHeight'];
106
+ weight?: TextStyle['fontWeight'];
72
107
  };
108
+ export type Font = Record<TEXT_VARIANT, FontElement>;
73
109
  export type Theme = {
74
- colors: Colors;
75
- fontSize: FontSize;
76
- lineHeight: LineHeight;
110
+ palette: Palette;
111
+ font: Font;
77
112
  borderRadius: BorderRadius;
78
113
  spacing: Spacing;
79
114
  shadows: Shadows;
80
- components?: Components;
81
115
  };
82
116
  export declare const DEFAULT_THEME: Theme;
@@ -2,39 +2,25 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.DEFAULT_THEME = void 0;
4
4
  exports.DEFAULT_THEME = {
5
- colors: {
5
+ palette: {
6
6
  white: '#FFFFFF',
7
7
  black: '#1A1A1A',
8
- background: '#F4F4F4',
9
- primary: '#0096D6',
10
- primaryDark: '#0D7BA2',
11
- primaryLight: '#E8F4FE',
8
+ grey: { base: '#C4C4C4', dark: '#757575', light: '#F4F4F4' },
9
+ primary: { base: '#0096D6', dark: '#0D7BA2', light: '#E8F4FE' },
12
10
  secondary: '#FFFFFF',
13
11
  tertiary: '#BBDEFB',
14
- pattern: '#EBEEF0',
15
- rating: '#FF9800',
16
- warning: '#D8000C',
12
+ error: '#D8000C',
17
13
  success: '#27AE60',
18
- gray: '#C4C4C4',
19
- backdrop: '#071E388C',
20
- divider: '#D8D8D8',
21
- text: '#161616',
22
- darkGray: '#757575'
14
+ highlight: '#FF9800',
15
+ surface: '#FFF'
23
16
  },
24
- fontSize: {
25
- sm: 14,
26
- base: 16,
27
- h1: 28,
28
- h2: 24,
29
- h3: 20,
30
- h4: 18
31
- },
32
- lineHeight: {
33
- xxl: 40,
34
- xl: 36,
35
- base: 24,
36
- sm: 21,
37
- xs: 19
17
+ font: {
18
+ h1: { size: 28, color: '#161616', alignment: 'center', lineHeight: 40 },
19
+ h2: { size: 24, color: '#161616', alignment: 'center', lineHeight: 36 },
20
+ h3: { size: 20, color: '#161616', alignment: 'center', lineHeight: 24 },
21
+ h4: { size: 18, color: '#161616', alignment: 'center', lineHeight: 24 },
22
+ base: { size: 16, color: '#161616', alignment: 'center', lineHeight: 24 },
23
+ sm: { size: 14, color: '#161616', alignment: 'center', lineHeight: 21 }
38
24
  },
39
25
  borderRadius: {
40
26
  sm: 4,
@@ -7,6 +7,6 @@ exports.getProfessionalLabel = void 0;
7
7
  var i18n_1 = __importDefault(require("../locale/i18n"));
8
8
  var getProfessionalLabel = function (_a) {
9
9
  var title = _a.title, gender = _a.gender, firstName = _a.firstName;
10
- return i18n_1.default.t("".concat(title, "_title_").concat(gender), { name: firstName });
10
+ return i18n_1.default.t("".concat(title.toLocaleLowerCase(), "_title_").concat(gender), { name: firstName });
11
11
  };
12
12
  exports.getProfessionalLabel = getProfessionalLabel;
package/dist/index.d.ts CHANGED
@@ -10,6 +10,7 @@ import VideoCallScreen from './video-consultations/screens/VideoCallScreen';
10
10
  import { useTranslation } from 'react-i18next';
11
11
  import { Animation } from './common/animations/Animation';
12
12
  import { FindingAnimation } from './common/animations/FindingAnimation';
13
+ import { HorizontalLoadingAnimation } from './common/animations/HorizontalLoadingAnimation';
13
14
  import { LoadingCircleAnimation } from './common/animations/LoadingCircleAnimation';
14
15
  import { LoadingDotsAnimation } from './common/animations/LoadingDotsAnimation';
15
16
  import { authorization } from './common/api/auth';
@@ -53,7 +54,7 @@ import { MatchScreen } from './common/screens/MatchScreen';
53
54
  import { NoConsultationFoundScreen } from './common/screens/NoConsultationFoundScreen';
54
55
  import { PreparingSummaryScreen } from './common/screens/PreparingSummaryScreen';
55
56
  import { RatingScreen } from './common/screens/RatingScreen';
56
- import { CASE_TYPE, Consultation, CONSULTATION_STATUS, Question } from './common/types/consultation';
57
+ import { CASE_TYPE, Consultation, CONSULTATION_STATUS, Question, QuestionType } from './common/types/consultation';
57
58
  import { HKDeliveryAddressSchema } from './common/types/deliveryAddress';
58
59
  import { Prescription, PRESCRIPTION_STATUS } from './common/types/prescription';
59
60
  import { License, Professional } from './common/types/professional';
@@ -62,4 +63,4 @@ import { isAndroid, isIOS } from './common/utils/platform';
62
63
  import { getProfessionalLabel } from './common/utils/professional';
63
64
  import { requiredCheckbox, requiredString, validPhone } from './common/utils/zod';
64
65
  export { AbiLogoIcon, AgoraWrapper, Animation, AnswerScreen, AttachmentPreviewModal, authorization, BackArrowIcon, BackgroundPattern, Button, CallingAnimation, CancelConsultationButton, CancelModal, Card, CASE_TYPE, Checkbox, CloseConsultationModal, CloseIcon, Consultation, CONSULTATION_STATUS, // TODO check this after last refactor
65
- ConsultationProvider, DateInput, DeliveryAddressScreen, DoctorIcon, DoctorProfileCard, DoctorProfileModal, EndingVideoScreen, EndVideoCallModal, FadeIn, FindingAnimation, FormWrapper, getProfessionalLabel, Header, HKDeliveryAddressSchema, InfoIcon, Input, isAndroid, isIOS, JoinVideoCallScreen, License, LoadingCircleAnimation, LoadingDotsAnimation, MatchingScreen, MatchScreen, Modal, NoConsultationFoundScreen, PhoneInput, PlaneIcon, PreparingSummaryScreen, Prescription, PRESCRIPTION_STATUS, ProcessingPrescriptionScreen, Professional, Question, RatingScreen, Reminder, requiredCheckbox, requiredString, ScreenWrapper, Select, Slide, Text, TextConsultationIcon, Theme, TwoOptionsModal, useConsultation, useTheme, useTranslation, validPhone, VideoCallScreen, VideoConsultation, VideoConsultationIcon };
66
+ ConsultationProvider, DateInput, DeliveryAddressScreen, DoctorIcon, DoctorProfileCard, DoctorProfileModal, EndingVideoScreen, EndVideoCallModal, FadeIn, FindingAnimation, FormWrapper, getProfessionalLabel, Header, HKDeliveryAddressSchema, HorizontalLoadingAnimation, InfoIcon, Input, isAndroid, isIOS, JoinVideoCallScreen, License, LoadingCircleAnimation, LoadingDotsAnimation, MatchingScreen, MatchScreen, Modal, NoConsultationFoundScreen, PhoneInput, PlaneIcon, PreparingSummaryScreen, Prescription, PRESCRIPTION_STATUS, ProcessingPrescriptionScreen, Professional, Question, QuestionType, RatingScreen, Reminder, requiredCheckbox, requiredString, ScreenWrapper, Select, Slide, Text, TextConsultationIcon, Theme, TwoOptionsModal, useConsultation, useTheme, useTranslation, validPhone, VideoCallScreen, VideoConsultation, VideoConsultationIcon };
package/dist/index.js CHANGED
@@ -3,8 +3,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.Reminder = exports.RatingScreen = exports.ProcessingPrescriptionScreen = exports.PRESCRIPTION_STATUS = exports.PreparingSummaryScreen = exports.PlaneIcon = exports.PhoneInput = exports.NoConsultationFoundScreen = exports.Modal = exports.MatchScreen = exports.MatchingScreen = exports.LoadingDotsAnimation = exports.LoadingCircleAnimation = exports.JoinVideoCallScreen = exports.isIOS = exports.isAndroid = exports.Input = exports.InfoIcon = exports.HKDeliveryAddressSchema = exports.Header = exports.getProfessionalLabel = exports.FormWrapper = exports.FindingAnimation = exports.FadeIn = exports.EndVideoCallModal = exports.EndingVideoScreen = exports.DoctorProfileModal = exports.DoctorProfileCard = exports.DoctorIcon = exports.DeliveryAddressScreen = exports.DateInput = exports.ConsultationProvider = exports.CONSULTATION_STATUS = exports.CloseIcon = exports.CloseConsultationModal = exports.Checkbox = exports.CASE_TYPE = exports.Card = exports.CancelModal = exports.CancelConsultationButton = exports.CallingAnimation = exports.Button = exports.BackgroundPattern = exports.BackArrowIcon = exports.authorization = exports.AttachmentPreviewModal = exports.AnswerScreen = exports.Animation = exports.AgoraWrapper = exports.AbiLogoIcon = void 0;
7
- exports.VideoConsultationIcon = exports.VideoConsultation = exports.VideoCallScreen = exports.validPhone = exports.useTranslation = exports.useTheme = exports.useConsultation = exports.TwoOptionsModal = exports.TextConsultationIcon = exports.Text = exports.Slide = exports.Select = exports.ScreenWrapper = exports.requiredString = exports.requiredCheckbox = void 0;
6
+ exports.QuestionType = exports.ProcessingPrescriptionScreen = exports.PRESCRIPTION_STATUS = exports.PreparingSummaryScreen = exports.PlaneIcon = exports.PhoneInput = exports.NoConsultationFoundScreen = exports.Modal = exports.MatchScreen = exports.MatchingScreen = exports.LoadingDotsAnimation = exports.LoadingCircleAnimation = exports.JoinVideoCallScreen = exports.isIOS = exports.isAndroid = exports.Input = exports.InfoIcon = exports.HorizontalLoadingAnimation = exports.HKDeliveryAddressSchema = exports.Header = exports.getProfessionalLabel = exports.FormWrapper = exports.FindingAnimation = exports.FadeIn = exports.EndVideoCallModal = exports.EndingVideoScreen = exports.DoctorProfileModal = exports.DoctorProfileCard = exports.DoctorIcon = exports.DeliveryAddressScreen = exports.DateInput = exports.ConsultationProvider = exports.CONSULTATION_STATUS = exports.CloseIcon = exports.CloseConsultationModal = exports.Checkbox = exports.CASE_TYPE = exports.Card = exports.CancelModal = exports.CancelConsultationButton = exports.CallingAnimation = exports.Button = exports.BackgroundPattern = exports.BackArrowIcon = exports.authorization = exports.AttachmentPreviewModal = exports.AnswerScreen = exports.Animation = exports.AgoraWrapper = exports.AbiLogoIcon = void 0;
7
+ exports.VideoConsultationIcon = exports.VideoConsultation = exports.VideoCallScreen = exports.validPhone = exports.useTranslation = exports.useTheme = exports.useConsultation = exports.TwoOptionsModal = exports.TextConsultationIcon = exports.Text = exports.Slide = exports.Select = exports.ScreenWrapper = exports.requiredString = exports.requiredCheckbox = exports.Reminder = exports.RatingScreen = void 0;
8
8
  var CallingAnimation_1 = require("./video-consultations/animations/CallingAnimation");
9
9
  Object.defineProperty(exports, "CallingAnimation", { enumerable: true, get: function () { return CallingAnimation_1.CallingAnimation; } });
10
10
  var AgoraWrapper_1 = __importDefault(require("./video-consultations/components/AgoraWrapper"));
@@ -29,6 +29,8 @@ var Animation_1 = require("./common/animations/Animation");
29
29
  Object.defineProperty(exports, "Animation", { enumerable: true, get: function () { return Animation_1.Animation; } });
30
30
  var FindingAnimation_1 = require("./common/animations/FindingAnimation");
31
31
  Object.defineProperty(exports, "FindingAnimation", { enumerable: true, get: function () { return FindingAnimation_1.FindingAnimation; } });
32
+ var HorizontalLoadingAnimation_1 = require("./common/animations/HorizontalLoadingAnimation");
33
+ Object.defineProperty(exports, "HorizontalLoadingAnimation", { enumerable: true, get: function () { return HorizontalLoadingAnimation_1.HorizontalLoadingAnimation; } });
32
34
  var LoadingCircleAnimation_1 = require("./common/animations/LoadingCircleAnimation");
33
35
  Object.defineProperty(exports, "LoadingCircleAnimation", { enumerable: true, get: function () { return LoadingCircleAnimation_1.LoadingCircleAnimation; } });
34
36
  var LoadingDotsAnimation_1 = require("./common/animations/LoadingDotsAnimation");
@@ -118,6 +120,7 @@ Object.defineProperty(exports, "RatingScreen", { enumerable: true, get: function
118
120
  var consultation_1 = require("./common/types/consultation");
119
121
  Object.defineProperty(exports, "CASE_TYPE", { enumerable: true, get: function () { return consultation_1.CASE_TYPE; } });
120
122
  Object.defineProperty(exports, "CONSULTATION_STATUS", { enumerable: true, get: function () { return consultation_1.CONSULTATION_STATUS; } });
123
+ Object.defineProperty(exports, "QuestionType", { enumerable: true, get: function () { return consultation_1.QuestionType; } });
121
124
  var deliveryAddress_1 = require("./common/types/deliveryAddress");
122
125
  Object.defineProperty(exports, "HKDeliveryAddressSchema", { enumerable: true, get: function () { return deliveryAddress_1.HKDeliveryAddressSchema; } });
123
126
  var prescription_1 = require("./common/types/prescription");
@@ -11,7 +11,7 @@ var xml_1 = require("./xml");
11
11
  var windowWidth = react_native_1.Dimensions.get('window').width;
12
12
  var width = windowWidth * 0.7;
13
13
  var CallingAnimation = function () {
14
- var colors = (0, index_1.useTheme)().colors;
15
- return <index_1.Animation source={(0, xml_1.getXml)(colors)} width={width} height={width}/>;
14
+ var palette = (0, index_1.useTheme)().palette;
15
+ return <index_1.Animation source={(0, xml_1.getXml)(palette)} width={width} height={width}/>;
16
16
  };
17
17
  exports.CallingAnimation = CallingAnimation;
@@ -1,2 +1 @@
1
- import { Colors } from '../../../common/types/theme';
2
- export declare const getXml: (colors: Colors) => string;
1
+ export declare const getXml: (palette: any) => string;
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getXml = void 0;
4
- var getXml = function (colors) { return "<svg\n xmlns=\"http://www.w3.org/2000/svg\"\n xmlns:xlink=\"http://www.w3.org/1999/xlink\"\n preserveAspectRatio=\"xMidYMid meet\"\n width=\"400\"\n height=\"400\"\n viewBox=\"0 0 400 400\"\n style=\"width: 100%; height: 100%\"\n>\n <defs>\n <animate\n repeatCount=\"indefinite\"\n dur=\"6s\"\n begin=\"0s\"\n xlink:href=\"#_R_G_L_3_G\"\n fill=\"freeze\"\n attributeName=\"opacity\"\n from=\"1\"\n to=\"0\"\n keyTimes=\"0;0.5;0.8333333;1\"\n values=\"1;1;0;0\"\n keySplines=\"0.167 0.167 0.833 0.833;0.167 0.167 0.833 0.833;0 0 0 0\"\n calcMode=\"spline\"\n />\n <animateTransform\n repeatCount=\"indefinite\"\n dur=\"6s\"\n begin=\"0s\"\n xlink:href=\"#_R_G_L_3_G\"\n fill=\"freeze\"\n attributeName=\"transform\"\n from=\"0 0\"\n to=\"6.8 6.8\"\n type=\"scale\"\n additive=\"sum\"\n keyTimes=\"0;0.5;0.8333333;1\"\n values=\"0 0;0 0;6.8 6.8;6.8 6.8\"\n keySplines=\"0.001 0 0.223 1;0.001 0 0.223 1;0 0 0 0\"\n calcMode=\"spline\"\n />\n <animateTransform\n repeatCount=\"indefinite\"\n dur=\"6s\"\n begin=\"0s\"\n xlink:href=\"#_R_G_L_3_G\"\n fill=\"freeze\"\n attributeName=\"transform\"\n from=\"17.537 -16.537\"\n to=\"17.537 -16.537\"\n type=\"translate\"\n additive=\"sum\"\n keyTimes=\"0;1\"\n values=\"17.537 -16.537;17.537 -16.537\"\n keySplines=\"0 0 1 1\"\n calcMode=\"spline\"\n />\n <animate\n repeatCount=\"indefinite\"\n dur=\"6s\"\n begin=\"0s\"\n xlink:href=\"#_R_G_L_3_G_M\"\n fill=\"freeze\"\n attributeName=\"opacity\"\n from=\"0\"\n to=\"0\"\n keyTimes=\"0;0.5;0.5000007;0.8333333;0.8333333;1\"\n values=\"0;0;1;1;0;0\"\n keySplines=\"0 0 0 0;0 0 0 0;0 0 0 0;0 0 0 0;0 0 0 0\"\n calcMode=\"spline\"\n />\n <animate\n repeatCount=\"indefinite\"\n dur=\"6s\"\n begin=\"0s\"\n xlink:href=\"#_R_G_L_2_G\"\n fill=\"freeze\"\n attributeName=\"opacity\"\n from=\"1\"\n to=\"0\"\n keyTimes=\"0;0.2466667;0.58;1\"\n values=\"1;1;0;0\"\n keySplines=\"0.167 0.167 0.833 0.833;0.167 0.167 0.833 0.833;0 0 0 0\"\n calcMode=\"spline\"\n />\n <animateTransform\n repeatCount=\"indefinite\"\n dur=\"6s\"\n begin=\"0s\"\n xlink:href=\"#_R_G_L_2_G\"\n fill=\"freeze\"\n attributeName=\"transform\"\n from=\"0 0\"\n to=\"6.8 6.8\"\n type=\"scale\"\n additive=\"sum\"\n keyTimes=\"0;0.2466667;0.58;1\"\n values=\"0 0;0 0;6.8 6.8;6.8 6.8\"\n keySplines=\"0.001 0 0.223 1;0.001 0 0.223 1;0 0 0 0\"\n calcMode=\"spline\"\n />\n <animateTransform\n repeatCount=\"indefinite\"\n dur=\"6s\"\n begin=\"0s\"\n xlink:href=\"#_R_G_L_2_G\"\n fill=\"freeze\"\n attributeName=\"transform\"\n from=\"17.537 -16.537\"\n to=\"17.537 -16.537\"\n type=\"translate\"\n additive=\"sum\"\n keyTimes=\"0;1\"\n values=\"17.537 -16.537;17.537 -16.537\"\n keySplines=\"0 0 1 1\"\n calcMode=\"spline\"\n />\n <animate\n repeatCount=\"indefinite\"\n dur=\"6s\"\n begin=\"0s\"\n xlink:href=\"#_R_G_L_2_G_M\"\n fill=\"freeze\"\n attributeName=\"opacity\"\n from=\"0\"\n to=\"0\"\n keyTimes=\"0;0.2466667;0.2466673;0.58;0.58;1\"\n values=\"0;0;1;1;0;0\"\n keySplines=\"0 0 0 0;0 0 0 0;0 0 0 0;0 0 0 0;0 0 0 0\"\n calcMode=\"spline\"\n />\n <animate\n repeatCount=\"indefinite\"\n dur=\"6s\"\n begin=\"0s\"\n xlink:href=\"#_R_G_L_1_G\"\n fill=\"freeze\"\n attributeName=\"opacity\"\n from=\"1\"\n to=\"0\"\n keyTimes=\"0;0.3333333;1\"\n values=\"1;0;0\"\n keySplines=\"0.167 0.167 0.833 0.833;0 0 0 0\"\n calcMode=\"spline\"\n />\n <animateTransform\n repeatCount=\"indefinite\"\n dur=\"6s\"\n begin=\"0s\"\n xlink:href=\"#_R_G_L_1_G\"\n fill=\"freeze\"\n attributeName=\"transform\"\n from=\"0 0\"\n to=\"6.8 6.8\"\n type=\"scale\"\n additive=\"sum\"\n keyTimes=\"0;0.3333333;1\"\n values=\"0 0;6.8 6.8;6.8 6.8\"\n keySplines=\"0.001 0 0.223 0.989;0 0 0 0\"\n calcMode=\"spline\"\n />\n <animateTransform\n repeatCount=\"indefinite\"\n dur=\"6s\"\n begin=\"0s\"\n xlink:href=\"#_R_G_L_1_G\"\n fill=\"freeze\"\n attributeName=\"transform\"\n from=\"17.537 -16.537\"\n to=\"17.537 -16.537\"\n type=\"translate\"\n additive=\"sum\"\n keyTimes=\"0;1\"\n values=\"17.537 -16.537;17.537 -16.537\"\n keySplines=\"0 0 1 1\"\n calcMode=\"spline\"\n />\n <animate\n repeatCount=\"indefinite\"\n dur=\"6s\"\n begin=\"0s\"\n xlink:href=\"#_R_G_L_1_G_M\"\n fill=\"freeze\"\n attributeName=\"opacity\"\n from=\"1\"\n to=\"0\"\n keyTimes=\"0;0.3333333;0.3333333;1\"\n values=\"1;1;0;0\"\n keySplines=\"0 0 0 0;0 0 0 0;0 0 0 0\"\n calcMode=\"spline\"\n />\n <animate attributeType=\"XML\" attributeName=\"opacity\" dur=\"6s\" from=\"0\" to=\"1\" xlink:href=\"#time_group\" />\n </defs>\n <g id=\"_R_G\">\n <g id=\"_R_G_L_3_G_M\">\n <g id=\"_R_G_L_3_G\" transform=\" translate(200, 200)\">\n <path\n id=\"_R_G_L_3_G_D_0_P_0\"\n stroke=\"".concat(colors.rating, "\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n fill=\"none\"\n stroke-width=\"5\"\n stroke-opacity=\"1\"\n d=\" M-17.54 -3 C-28.33,-3 -37.07,5.75 -37.07,16.54 C-37.07,27.33 -28.33,36.07 -17.54,36.07 C-6.75,36.07 2,27.33 2,16.54 C2,5.75 -6.75,-3 -17.54,-3z \"\n />\n </g>\n </g>\n <g id=\"_R_G_L_2_G_M\">\n <g id=\"_R_G_L_2_G\" transform=\" translate(200, 200)\">\n <path\n id=\"_R_G_L_2_G_D_0_P_0\"\n stroke=\"").concat(colors.rating, "\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n fill=\"none\"\n stroke-width=\"5\"\n stroke-opacity=\"1\"\n d=\" M-17.54 -3 C-28.33,-3 -37.07,5.75 -37.07,16.54 C-37.07,27.33 -28.33,36.07 -17.54,36.07 C-6.75,36.07 2,27.33 2,16.54 C2,5.75 -6.75,-3 -17.54,-3z \"\n />\n </g>\n </g>\n <g id=\"_R_G_L_1_G_M\">\n <g id=\"_R_G_L_1_G\" transform=\" translate(200, 200)\">\n <path\n id=\"_R_G_L_1_G_D_0_P_0\"\n stroke=\"").concat(colors.rating, "\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n fill=\"none\"\n stroke-width=\"5\"\n stroke-opacity=\"1\"\n d=\" M-17.54 -3 C-28.33,-3 -37.07,5.75 -37.07,16.54 C-37.07,27.33 -28.33,36.07 -17.54,36.07 C-6.75,36.07 2,27.33 2,16.54 C2,5.75 -6.75,-3 -17.54,-3z \"\n />\n </g>\n </g>\n <g id=\"_R_G_L_0_G\" transform=\" translate(200, 200) scale(1.2, 1.2) translate(-49.5, -55.5)\">\n <path\n id=\"_R_G_L_0_G_D_0_P_0\"\n fill=").concat(colors.background, "\n fill-opacity=\"1\"\n fill-rule=\"nonzero\"\n d=\" M49.5 7.5 C76.01,7.5 97.5,28.99 97.5,55.5 C97.5,82.01 76.01,103.5 49.5,103.5 C22.99,103.5 1.5,82.01 1.5,55.5 C1.5,28.99 22.99,7.5 49.5,7.5z \"\n />\n <path\n id=\"_R_G_L_0_G_D_1_P_0\"\n fill=\"").concat(colors.primaryDark, "\"\n fill-opacity=\"1\"\n fill-rule=\"nonzero\"\n d=\" M29.78 35.49 C29.78,46.65 38.83,63.43 49.99,63.43 C61.15,63.43 70.19,46.65 70.19,35.49 C70.19,24.33 61.15,15.29 49.99,15.29 C38.83,15.29 29.78,24.33 29.78,35.49z \"\n />\n <path\n id=\"_R_G_L_0_G_D_2_P_0\"\n fill=\"").concat(colors.primaryDark, "\"\n fill-opacity=\"1\"\n fill-rule=\"nonzero\"\n d=\" M73.17 77.65 C74.67,77.65 75.89,76.43 75.89,74.93 C75.89,73.42 74.67,72.2 73.17,72.2 C71.66,72.2 70.44,73.42 70.44,74.93 C70.44,76.43 71.66,77.65 73.17,77.65z \"\n />\n <path\n id=\"_R_G_L_0_G_D_3_P_0\"\n fill=\"").concat(colors.primaryDark, "\"\n fill-opacity=\"1\"\n fill-rule=\"nonzero\"\n d=\" M73.16 62.64 C73.93,64.44 74.38,66.63 74.49,69.17 C77.11,69.78 79.07,72.12 79.07,74.93 C79.07,78.18 76.43,80.83 73.17,80.83 C69.91,80.83 67.26,78.18 67.26,74.93 C67.26,72.16 69.19,69.83 71.76,69.2 C71.65,66.68 71.05,62.84 68.58,60.94 C67.32,60.61 66.02,60.38 64.69,60.26 C64.59,64.68 49.99,75.58 49.99,75.58 C49.99,75.58 35.37,64.68 35.27,60.26 C33.8,60.39 32.36,60.66 30.97,61.05 C29.17,62.48 28.24,65.13 28.19,69 C28.72,69.3 29.15,69.78 29.41,70.35 C31.35,71.27 33.07,73.2 34.38,75.94 C34.6,76.4 34.63,76.93 34.47,77.4 C35.25,79.43 35.7,81.64 35.7,83.5 C35.7,86.1 35.7,88.57 32.86,89.2 C32.56,89.46 32.17,89.59 31.77,89.59 C31.77,89.59 29.87,89.59 29.87,89.59 C28.92,89.59 28.14,88.82 28.14,87.87 C28.14,87.87 28.15,87.8 28.15,87.8 C28.18,86.89 28.95,86.15 29.87,86.15 C29.87,86.15 31.77,86.15 31.77,86.15 C31.96,86.15 32.15,86.18 32.33,86.24 C32.45,86.21 32.49,86.18 32.49,86.18 C32.7,85.81 32.7,84.25 32.7,83.5 C32.7,81.99 32.32,80.17 31.66,78.47 C31.31,78.28 31.03,77.98 30.86,77.63 C29.71,75.22 28.15,73.66 26.88,73.66 C25.58,73.66 23.94,75.34 22.79,77.84 C22.6,78.25 22.28,78.58 21.87,78.78 C21.28,80.4 20.95,82.07 20.95,83.5 C20.95,84.13 20.95,85.8 21.19,86.19 C21.19,86.19 21.24,86.22 21.39,86.26 C21.59,86.18 21.8,86.14 22.01,86.14 C22.01,86.14 23.91,86.14 23.91,86.14 C24.8,86.14 25.54,86.82 25.63,87.7 C25.63,87.7 25.64,87.8 25.64,87.8 C25.64,88.82 24.86,89.6 23.91,89.6 C23.91,89.6 22.01,89.6 22.01,89.6 C21.63,89.6 21.27,89.47 20.97,89.24 C19.88,89.04 19.12,88.56 18.63,87.78 C18.05,86.84 17.94,85.6 17.94,83.5 C17.94,81.66 18.37,79.54 19.14,77.51 C19.02,77.08 19.06,76.63 19.25,76.22 C20.06,74.46 21.08,72.95 22.21,71.86 C22.83,71.27 23.5,70.79 24.2,70.43 C24.46,69.82 24.91,69.32 25.47,69 C25.5,66.58 25.87,64.49 26.56,62.77 C19.17,66.51 13.98,77.3 12.76,86.39 C21.57,96.85 34.75,103.5 49.49,103.5 C64.96,103.5 78.72,96.17 87.5,84.8 C86.45,75.9 80.44,66.23 73.16,62.64z \"\n />\n </g>\n </g>\n <g id=\"time_group\" />\n</svg>\n"); };
4
+ var getXml = function (palette) { return "<svg\n xmlns=\"http://www.w3.org/2000/svg\"\n xmlns:xlink=\"http://www.w3.org/1999/xlink\"\n preserveAspectRatio=\"xMidYMid meet\"\n width=\"400\"\n height=\"400\"\n viewBox=\"0 0 400 400\"\n style=\"width: 100%; height: 100%\"\n>\n <defs>\n <animate\n repeatCount=\"indefinite\"\n dur=\"6s\"\n begin=\"0s\"\n xlink:href=\"#_R_G_L_3_G\"\n fill=\"freeze\"\n attributeName=\"opacity\"\n from=\"1\"\n to=\"0\"\n keyTimes=\"0;0.5;0.8333333;1\"\n values=\"1;1;0;0\"\n keySplines=\"0.167 0.167 0.833 0.833;0.167 0.167 0.833 0.833;0 0 0 0\"\n calcMode=\"spline\"\n />\n <animateTransform\n repeatCount=\"indefinite\"\n dur=\"6s\"\n begin=\"0s\"\n xlink:href=\"#_R_G_L_3_G\"\n fill=\"freeze\"\n attributeName=\"transform\"\n from=\"0 0\"\n to=\"6.8 6.8\"\n type=\"scale\"\n additive=\"sum\"\n keyTimes=\"0;0.5;0.8333333;1\"\n values=\"0 0;0 0;6.8 6.8;6.8 6.8\"\n keySplines=\"0.001 0 0.223 1;0.001 0 0.223 1;0 0 0 0\"\n calcMode=\"spline\"\n />\n <animateTransform\n repeatCount=\"indefinite\"\n dur=\"6s\"\n begin=\"0s\"\n xlink:href=\"#_R_G_L_3_G\"\n fill=\"freeze\"\n attributeName=\"transform\"\n from=\"17.537 -16.537\"\n to=\"17.537 -16.537\"\n type=\"translate\"\n additive=\"sum\"\n keyTimes=\"0;1\"\n values=\"17.537 -16.537;17.537 -16.537\"\n keySplines=\"0 0 1 1\"\n calcMode=\"spline\"\n />\n <animate\n repeatCount=\"indefinite\"\n dur=\"6s\"\n begin=\"0s\"\n xlink:href=\"#_R_G_L_3_G_M\"\n fill=\"freeze\"\n attributeName=\"opacity\"\n from=\"0\"\n to=\"0\"\n keyTimes=\"0;0.5;0.5000007;0.8333333;0.8333333;1\"\n values=\"0;0;1;1;0;0\"\n keySplines=\"0 0 0 0;0 0 0 0;0 0 0 0;0 0 0 0;0 0 0 0\"\n calcMode=\"spline\"\n />\n <animate\n repeatCount=\"indefinite\"\n dur=\"6s\"\n begin=\"0s\"\n xlink:href=\"#_R_G_L_2_G\"\n fill=\"freeze\"\n attributeName=\"opacity\"\n from=\"1\"\n to=\"0\"\n keyTimes=\"0;0.2466667;0.58;1\"\n values=\"1;1;0;0\"\n keySplines=\"0.167 0.167 0.833 0.833;0.167 0.167 0.833 0.833;0 0 0 0\"\n calcMode=\"spline\"\n />\n <animateTransform\n repeatCount=\"indefinite\"\n dur=\"6s\"\n begin=\"0s\"\n xlink:href=\"#_R_G_L_2_G\"\n fill=\"freeze\"\n attributeName=\"transform\"\n from=\"0 0\"\n to=\"6.8 6.8\"\n type=\"scale\"\n additive=\"sum\"\n keyTimes=\"0;0.2466667;0.58;1\"\n values=\"0 0;0 0;6.8 6.8;6.8 6.8\"\n keySplines=\"0.001 0 0.223 1;0.001 0 0.223 1;0 0 0 0\"\n calcMode=\"spline\"\n />\n <animateTransform\n repeatCount=\"indefinite\"\n dur=\"6s\"\n begin=\"0s\"\n xlink:href=\"#_R_G_L_2_G\"\n fill=\"freeze\"\n attributeName=\"transform\"\n from=\"17.537 -16.537\"\n to=\"17.537 -16.537\"\n type=\"translate\"\n additive=\"sum\"\n keyTimes=\"0;1\"\n values=\"17.537 -16.537;17.537 -16.537\"\n keySplines=\"0 0 1 1\"\n calcMode=\"spline\"\n />\n <animate\n repeatCount=\"indefinite\"\n dur=\"6s\"\n begin=\"0s\"\n xlink:href=\"#_R_G_L_2_G_M\"\n fill=\"freeze\"\n attributeName=\"opacity\"\n from=\"0\"\n to=\"0\"\n keyTimes=\"0;0.2466667;0.2466673;0.58;0.58;1\"\n values=\"0;0;1;1;0;0\"\n keySplines=\"0 0 0 0;0 0 0 0;0 0 0 0;0 0 0 0;0 0 0 0\"\n calcMode=\"spline\"\n />\n <animate\n repeatCount=\"indefinite\"\n dur=\"6s\"\n begin=\"0s\"\n xlink:href=\"#_R_G_L_1_G\"\n fill=\"freeze\"\n attributeName=\"opacity\"\n from=\"1\"\n to=\"0\"\n keyTimes=\"0;0.3333333;1\"\n values=\"1;0;0\"\n keySplines=\"0.167 0.167 0.833 0.833;0 0 0 0\"\n calcMode=\"spline\"\n />\n <animateTransform\n repeatCount=\"indefinite\"\n dur=\"6s\"\n begin=\"0s\"\n xlink:href=\"#_R_G_L_1_G\"\n fill=\"freeze\"\n attributeName=\"transform\"\n from=\"0 0\"\n to=\"6.8 6.8\"\n type=\"scale\"\n additive=\"sum\"\n keyTimes=\"0;0.3333333;1\"\n values=\"0 0;6.8 6.8;6.8 6.8\"\n keySplines=\"0.001 0 0.223 0.989;0 0 0 0\"\n calcMode=\"spline\"\n />\n <animateTransform\n repeatCount=\"indefinite\"\n dur=\"6s\"\n begin=\"0s\"\n xlink:href=\"#_R_G_L_1_G\"\n fill=\"freeze\"\n attributeName=\"transform\"\n from=\"17.537 -16.537\"\n to=\"17.537 -16.537\"\n type=\"translate\"\n additive=\"sum\"\n keyTimes=\"0;1\"\n values=\"17.537 -16.537;17.537 -16.537\"\n keySplines=\"0 0 1 1\"\n calcMode=\"spline\"\n />\n <animate\n repeatCount=\"indefinite\"\n dur=\"6s\"\n begin=\"0s\"\n xlink:href=\"#_R_G_L_1_G_M\"\n fill=\"freeze\"\n attributeName=\"opacity\"\n from=\"1\"\n to=\"0\"\n keyTimes=\"0;0.3333333;0.3333333;1\"\n values=\"1;1;0;0\"\n keySplines=\"0 0 0 0;0 0 0 0;0 0 0 0\"\n calcMode=\"spline\"\n />\n <animate attributeType=\"XML\" attributeName=\"opacity\" dur=\"6s\" from=\"0\" to=\"1\" xlink:href=\"#time_group\" />\n </defs>\n <g id=\"_R_G\">\n <g id=\"_R_G_L_3_G_M\">\n <g id=\"_R_G_L_3_G\" transform=\" translate(200, 200)\">\n <path\n id=\"_R_G_L_3_G_D_0_P_0\"\n stroke=\"".concat(palette.primary.base, "\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n fill=\"none\"\n stroke-width=\"5\"\n stroke-opacity=\"1\"\n d=\" M-17.54 -3 C-28.33,-3 -37.07,5.75 -37.07,16.54 C-37.07,27.33 -28.33,36.07 -17.54,36.07 C-6.75,36.07 2,27.33 2,16.54 C2,5.75 -6.75,-3 -17.54,-3z \"\n />\n </g>\n </g>\n <g id=\"_R_G_L_2_G_M\">\n <g id=\"_R_G_L_2_G\" transform=\" translate(200, 200)\">\n <path\n id=\"_R_G_L_2_G_D_0_P_0\"\n stroke=\"").concat(palette.grey.light, "\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n fill=\"none\"\n stroke-width=\"5\"\n stroke-opacity=\"1\"\n d=\" M-17.54 -3 C-28.33,-3 -37.07,5.75 -37.07,16.54 C-37.07,27.33 -28.33,36.07 -17.54,36.07 C-6.75,36.07 2,27.33 2,16.54 C2,5.75 -6.75,-3 -17.54,-3z \"\n />\n </g>\n </g>\n <g id=\"_R_G_L_1_G_M\">\n <g id=\"_R_G_L_1_G\" transform=\" translate(200, 200)\">\n <path\n id=\"_R_G_L_1_G_D_0_P_0\"\n stroke=\"").concat(palette.grey.light, "\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n fill=\"none\"\n stroke-width=\"5\"\n stroke-opacity=\"1\"\n d=\" M-17.54 -3 C-28.33,-3 -37.07,5.75 -37.07,16.54 C-37.07,27.33 -28.33,36.07 -17.54,36.07 C-6.75,36.07 2,27.33 2,16.54 C2,5.75 -6.75,-3 -17.54,-3z \"\n />\n </g>\n </g>\n <g id=\"_R_G_L_0_G\" transform=\" translate(200, 200) scale(1.2, 1.2) translate(-49.5, -55.5)\">\n <path\n id=\"_R_G_L_0_G_D_0_P_0\"\n fill=").concat(palette.grey.light, "\n fill-opacity=\"1\"\n fill-rule=\"nonzero\"\n d=\" M49.5 7.5 C76.01,7.5 97.5,28.99 97.5,55.5 C97.5,82.01 76.01,103.5 49.5,103.5 C22.99,103.5 1.5,82.01 1.5,55.5 C1.5,28.99 22.99,7.5 49.5,7.5z \"\n />\n <path\n id=\"_R_G_L_0_G_D_1_P_0\"\n fill=\"").concat(palette.primary.dark, "\"\n fill-opacity=\"1\"\n fill-rule=\"nonzero\"\n d=\" M29.78 35.49 C29.78,46.65 38.83,63.43 49.99,63.43 C61.15,63.43 70.19,46.65 70.19,35.49 C70.19,24.33 61.15,15.29 49.99,15.29 C38.83,15.29 29.78,24.33 29.78,35.49z \"\n />\n <path\n id=\"_R_G_L_0_G_D_2_P_0\"\n fill=\"").concat(palette.primary.dark, "\"\n fill-opacity=\"1\"\n fill-rule=\"nonzero\"\n d=\" M73.17 77.65 C74.67,77.65 75.89,76.43 75.89,74.93 C75.89,73.42 74.67,72.2 73.17,72.2 C71.66,72.2 70.44,73.42 70.44,74.93 C70.44,76.43 71.66,77.65 73.17,77.65z \"\n />\n <path\n id=\"_R_G_L_0_G_D_3_P_0\"\n fill=\"").concat(palette.primary.dark, "\"\n fill-opacity=\"1\"\n fill-rule=\"nonzero\"\n d=\" M73.16 62.64 C73.93,64.44 74.38,66.63 74.49,69.17 C77.11,69.78 79.07,72.12 79.07,74.93 C79.07,78.18 76.43,80.83 73.17,80.83 C69.91,80.83 67.26,78.18 67.26,74.93 C67.26,72.16 69.19,69.83 71.76,69.2 C71.65,66.68 71.05,62.84 68.58,60.94 C67.32,60.61 66.02,60.38 64.69,60.26 C64.59,64.68 49.99,75.58 49.99,75.58 C49.99,75.58 35.37,64.68 35.27,60.26 C33.8,60.39 32.36,60.66 30.97,61.05 C29.17,62.48 28.24,65.13 28.19,69 C28.72,69.3 29.15,69.78 29.41,70.35 C31.35,71.27 33.07,73.2 34.38,75.94 C34.6,76.4 34.63,76.93 34.47,77.4 C35.25,79.43 35.7,81.64 35.7,83.5 C35.7,86.1 35.7,88.57 32.86,89.2 C32.56,89.46 32.17,89.59 31.77,89.59 C31.77,89.59 29.87,89.59 29.87,89.59 C28.92,89.59 28.14,88.82 28.14,87.87 C28.14,87.87 28.15,87.8 28.15,87.8 C28.18,86.89 28.95,86.15 29.87,86.15 C29.87,86.15 31.77,86.15 31.77,86.15 C31.96,86.15 32.15,86.18 32.33,86.24 C32.45,86.21 32.49,86.18 32.49,86.18 C32.7,85.81 32.7,84.25 32.7,83.5 C32.7,81.99 32.32,80.17 31.66,78.47 C31.31,78.28 31.03,77.98 30.86,77.63 C29.71,75.22 28.15,73.66 26.88,73.66 C25.58,73.66 23.94,75.34 22.79,77.84 C22.6,78.25 22.28,78.58 21.87,78.78 C21.28,80.4 20.95,82.07 20.95,83.5 C20.95,84.13 20.95,85.8 21.19,86.19 C21.19,86.19 21.24,86.22 21.39,86.26 C21.59,86.18 21.8,86.14 22.01,86.14 C22.01,86.14 23.91,86.14 23.91,86.14 C24.8,86.14 25.54,86.82 25.63,87.7 C25.63,87.7 25.64,87.8 25.64,87.8 C25.64,88.82 24.86,89.6 23.91,89.6 C23.91,89.6 22.01,89.6 22.01,89.6 C21.63,89.6 21.27,89.47 20.97,89.24 C19.88,89.04 19.12,88.56 18.63,87.78 C18.05,86.84 17.94,85.6 17.94,83.5 C17.94,81.66 18.37,79.54 19.14,77.51 C19.02,77.08 19.06,76.63 19.25,76.22 C20.06,74.46 21.08,72.95 22.21,71.86 C22.83,71.27 23.5,70.79 24.2,70.43 C24.46,69.82 24.91,69.32 25.47,69 C25.5,66.58 25.87,64.49 26.56,62.77 C19.17,66.51 13.98,77.3 12.76,86.39 C21.57,96.85 34.75,103.5 49.49,103.5 C64.96,103.5 78.72,96.17 87.5,84.8 C86.45,75.9 80.44,66.23 73.16,62.64z \"\n />\n </g>\n </g>\n <g id=\"time_group\" />\n</svg>\n"); };
5
5
  exports.getXml = getXml;
@@ -37,10 +37,10 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
37
37
  };
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
39
  exports.BaseRenderUsers = void 0;
40
+ var index_1 = require("../../../../common/index");
40
41
  var react_1 = __importStar(require("react"));
41
42
  var react_native_1 = require("react-native");
42
43
  var react_native_agora_1 = require("react-native-agora");
43
- var index_1 = require("../../../../common/index");
44
44
  var MicroOffIcon_1 = __importDefault(require("../../../icons/MicroOffIcon"));
45
45
  var PersonIcon_1 = __importDefault(require("../../../icons/PersonIcon"));
46
46
  var VideoOffIcon_1 = __importDefault(require("../../../icons/VideoOffIcon"));
@@ -51,7 +51,7 @@ var MutedIndicatorsContainer = function (_a) {
51
51
  var styles = getStyles(theme);
52
52
  return (<react_native_1.View style={styles.mutedIndicatorsContainer}>
53
53
  {muted.audio && (<react_native_1.View style={isLocalUser ? styles.mutedIconSmall : styles.mutedIconLarge}>
54
- <MicroOffIcon_1.default size={isLocalUser ? 10 : 25} color={isLocalUser ? theme.colors.black : theme.colors.white}/>
54
+ <MicroOffIcon_1.default size={isLocalUser ? 10 : 25} color={isLocalUser ? theme.palette.black : theme.palette.white}/>
55
55
  </react_native_1.View>)}
56
56
  {muted.video && !isLocalUser && (<react_native_1.View style={styles.mutedIconLarge}>
57
57
  <VideoOffIcon_1.default size={25}/>
@@ -82,7 +82,7 @@ var BaseRenderUsers = function (props) {
82
82
  uid: uid,
83
83
  sourceType: sourceType
84
84
  })}
85
- </>) : (<react_native_1.View style={[styles.mutedWrapper, isLocalUser ? { backgroundColor: theme.colors.white } : {}]}>
85
+ </>) : (<react_native_1.View style={[styles.mutedWrapper, isLocalUser ? { backgroundColor: theme.palette.white } : {}]}>
86
86
  <MutedIndicatorsContainer muted={muted} isLocalUser={isLocalUser}/>
87
87
  <react_native_1.View style={styles.userIconContainer}>{isLocalUser ? <PersonIcon_1.default /> : <index_1.DoctorIcon />}</react_native_1.View>
88
88
  </react_native_1.View>);
@@ -100,7 +100,7 @@ var BaseRenderUsers = function (props) {
100
100
  exports.BaseRenderUsers = BaseRenderUsers;
101
101
  exports.default = (0, react_1.memo)(exports.BaseRenderUsers);
102
102
  var getStyles = function (_a) {
103
- var colors = _a.colors, spacing = _a.spacing, borderRadius = _a.borderRadius;
103
+ var palette = _a.palette, spacing = _a.spacing, borderRadius = _a.borderRadius;
104
104
  return react_native_1.StyleSheet.create({
105
105
  mutedWrapper: {
106
106
  width: '100%',
@@ -126,7 +126,7 @@ var getStyles = function (_a) {
126
126
  width: 40,
127
127
  height: 40,
128
128
  borderRadius: borderRadius.full,
129
- backgroundColor: colors.darkGray,
129
+ backgroundColor: palette.grey.dark,
130
130
  alignContent: 'center',
131
131
  justifyContent: 'center',
132
132
  alignItems: 'center',
@@ -134,7 +134,7 @@ var getStyles = function (_a) {
134
134
  zIndex: 9999
135
135
  },
136
136
  mutedIconSmall: {
137
- backgroundColor: colors.gray,
137
+ backgroundColor: palette.grey.base,
138
138
  width: 20,
139
139
  height: 20,
140
140
  borderRadius: borderRadius.full,
@@ -158,7 +158,7 @@ var getStyles = function (_a) {
158
158
  videoSmall: {
159
159
  width: 100,
160
160
  height: 150,
161
- backgroundColor: colors.white,
161
+ backgroundColor: palette.white,
162
162
  borderRadius: borderRadius.sm
163
163
  },
164
164
  videoContainer: {
@@ -15,7 +15,6 @@ var VideoOffIcon_1 = __importDefault(require("../../../icons/VideoOffIcon"));
15
15
  var VideoOnIcon_1 = __importDefault(require("../../../icons/VideoOnIcon"));
16
16
  var ui_1 = require("./ui");
17
17
  var BtnControls = function (_a) {
18
- var _b, _c;
19
18
  var controlActions = _a.controlActions, remoteUsers = _a.remoteUsers, muteLocalAudioStream = _a.muteLocalAudioStream, muteLocalVideoStream = _a.muteLocalVideoStream;
20
19
  var theme = (0, index_1.useTheme)();
21
20
  var styles = getStyles(theme);
@@ -24,21 +23,20 @@ var BtnControls = function (_a) {
24
23
  <ui_1.VideoCallButton icon={muteLocalAudioStream ? <MicroOffIcon_1.default /> : <MicroOnIcon_1.default />} name={'audiomute'} onPress={controlActions.localAudioStream} isMuted={muteLocalAudioStream}/>
25
24
  <ui_1.VideoCallButton icon={muteLocalVideoStream ? <VideoOffIcon_1.default /> : <VideoOnIcon_1.default />} name={'videomute'} onPress={controlActions.localVideoStream} isMuted={muteLocalVideoStream}/>
26
25
  <ui_1.VideoCallButton disabled={!remoteUsers.length} icon={<SwitchCameraIcon_1.default />} name={'switchCamera'} onPress={controlActions.switchCamera}/>
27
- <ui_1.VideoCallButton customStyle={[styles.endCall, (_c = (_b = theme.components) === null || _b === void 0 ? void 0 : _b.videoCall) === null || _c === void 0 ? void 0 : _c.endCall]} icon={<HangUpIcon_1.default />} name={'endCall'} onPress={controlActions.endCall}/>
26
+ <ui_1.VideoCallButton customStyle={[styles.endCall]} icon={<HangUpIcon_1.default />} name={'endCall'} onPress={controlActions.endCall}/>
28
27
  </react_native_1.View>
29
28
  </react_native_1.View>);
30
29
  };
31
30
  exports.BtnControls = BtnControls;
32
31
  exports.default = exports.BtnControls;
33
32
  var getStyles = function (_a) {
34
- var colors = _a.colors, spacing = _a.spacing, borderRadius = _a.borderRadius;
33
+ var palette = _a.palette, spacing = _a.spacing, borderRadius = _a.borderRadius;
35
34
  return react_native_1.StyleSheet.create({
36
35
  endCall: {
37
- borderRadius: borderRadius.full,
38
- backgroundColor: colors.warning
36
+ borderRadius: borderRadius.full
39
37
  },
40
38
  btnContainer: {
41
- backgroundColor: colors.white,
39
+ backgroundColor: palette.white,
42
40
  bottom: spacing.sm,
43
41
  paddingVertical: spacing.xs,
44
42
  justifyContent: 'space-between',
@@ -49,7 +49,7 @@ var AgoraCard = function (_a) {
49
49
  };
50
50
  exports.AgoraCard = AgoraCard;
51
51
  var getStyles = function (_a) {
52
- var colors = _a.colors, spacing = _a.spacing, borderRadius = _a.borderRadius, fontSize = _a.fontSize;
52
+ var palette = _a.palette, spacing = _a.spacing, borderRadius = _a.borderRadius;
53
53
  return react_native_1.StyleSheet.create({
54
54
  buttonPress: {
55
55
  marginHorizontal: spacing.xs
@@ -58,8 +58,8 @@ var getStyles = function (_a) {
58
58
  borderRadius: borderRadius.full,
59
59
  width: 54,
60
60
  height: 54,
61
- backgroundColor: colors.primary,
62
- color: colors.white,
61
+ backgroundColor: palette.primary.base,
62
+ color: palette.white,
63
63
  borderWidth: 0,
64
64
  alignItems: 'center',
65
65
  justifyContent: 'center'
@@ -67,7 +67,7 @@ var getStyles = function (_a) {
67
67
  buttonIcon: {
68
68
  width: 36,
69
69
  height: 36,
70
- tintColor: colors.white
70
+ tintColor: palette.white
71
71
  },
72
72
  cardContent: {
73
73
  position: 'absolute',
@@ -75,20 +75,12 @@ var getStyles = function (_a) {
75
75
  left: 0,
76
76
  minWidth: 100
77
77
  },
78
- timer: {
79
- fontSize: fontSize.h2,
80
- alignSelf: 'center',
81
- paddingHorizontal: spacing.xs,
82
- alignContent: 'center',
83
- alignItems: 'center',
84
- color: colors.white
85
- },
86
78
  smallElement: {
87
79
  flexDirection: 'row',
88
80
  padding: 0
89
81
  },
90
82
  listItem: {
91
- backgroundColor: colors.gray,
83
+ backgroundColor: palette.grey.base,
92
84
  padding: 0,
93
85
  zIndex: 1000,
94
86
  width: 100,
@@ -4,8 +4,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.EndVideoCallModal = void 0;
7
- var react_1 = __importDefault(require("react"));
8
7
  var index_1 = require("../../../common/index");
8
+ var react_1 = __importDefault(require("react"));
9
9
  var EndVideoCallIcon_1 = require("../../icons/EndVideoCallIcon");
10
10
  var EndVideoCallModal = function (_a) {
11
11
  var onConfirm = _a.onConfirm, onCancel = _a.onCancel, visible = _a.visible;
@@ -1,7 +1,8 @@
1
1
  import { HeaderT } from '../../common/types/consultation';
2
2
  import { EventHandlers } from '../helpers/eventHandler';
3
3
  export interface VideoConsultationProps {
4
+ userId: string;
4
5
  eventHandlers?: EventHandlers;
5
6
  header?: HeaderT;
6
7
  }
7
- export declare const VideoConsultation: ({ eventHandlers, header }: VideoConsultationProps) => import("react").JSX.Element;
8
+ export declare const VideoConsultation: ({ eventHandlers, userId, header }: VideoConsultationProps) => import("react").JSX.Element;
@@ -9,13 +9,19 @@ var DeliveryAddressScreen_1 = require("../screens/DeliveryAddressScreen");
9
9
  var JoinVideoCallScreen_1 = require("../screens/JoinVideoCallScreen");
10
10
  var react_1 = require("react");
11
11
  var react_native_1 = require("react-native");
12
+ var useUser_1 = require("../../common/hooks/useUser");
12
13
  var VideoConsultation = function (_a) {
13
- var eventHandlers = _a.eventHandlers, header = _a.header;
14
+ var eventHandlers = _a.eventHandlers, userId = _a.userId, header = _a.header;
14
15
  var consultation = (0, index_1.useConsultation)().consultation;
15
16
  var setHeader = (0, useHeader_1.useHeader)().setHeader;
17
+ var setUserId = (0, useUser_1.useUser)().setUserId;
16
18
  (0, react_1.useEffect)(function () {
17
19
  (0, eventHandler_1.handleEvent)(consultation, eventHandlers);
18
20
  }, [consultation, eventHandlers]);
21
+ (0, react_1.useEffect)(function () {
22
+ console.log('userId', userId);
23
+ setUserId(userId);
24
+ }, [userId]);
19
25
  (0, react_1.useEffect)(function () { return setHeader(header); }, [header]);
20
26
  var getConsultationScreen = (0, react_1.useCallback)(function (consultation) {
21
27
  var commonScreen = (0, screens_1.getCommonScreen)(consultation);
@@ -37,15 +37,15 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
37
37
  };
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
39
  exports.EndVideoCallIcon = void 0;
40
+ var index_1 = require("../../common/index");
40
41
  var react_1 = __importDefault(require("react"));
41
42
  var react_native_svg_1 = __importStar(require("react-native-svg"));
42
- var index_1 = require("../../common/index");
43
43
  var EndVideoCallIcon = function () {
44
- var colors = (0, index_1.useTheme)().colors;
44
+ var palette = (0, index_1.useTheme)().palette;
45
45
  return (<react_native_svg_1.default width={61} height={60} viewBox="0 0 61 60" fill="none">
46
- <react_native_svg_1.Path d="M47.243 43.517l-7.327-.836a5.742 5.742 0 00-4.73 1.644l-5.309 5.308c-8.164-4.154-14.856-10.818-19.01-19.01l5.336-5.338a5.743 5.743 0 001.645-4.73l-.837-7.27a5.773 5.773 0 00-5.74-5.106H6.28C3.02 8.179.309 10.89.51 14.15c1.53 24.636 21.232 44.31 45.84 45.84 3.259.201 5.97-2.51 5.97-5.77v-4.991c.03-2.914-2.163-5.366-5.077-5.712z" fill={colors.primary}/>
47
- <react_native_svg_1.Path d="M60.5 16.5C60.5 25.613 53.113 33 44 33s-16.5-7.387-16.5-16.5S34.887 0 44 0s16.5 7.387 16.5 16.5z" fill={colors.rating}/>
48
- <react_native_svg_1.Path d="M50.188 10.313L37.812 22.688M37.813 10.313l12.374 12.375" stroke={colors.white} strokeWidth={3.4} strokeLinecap="round"/>
46
+ <react_native_svg_1.Path d="M47.243 43.517l-7.327-.836a5.742 5.742 0 00-4.73 1.644l-5.309 5.308c-8.164-4.154-14.856-10.818-19.01-19.01l5.336-5.338a5.743 5.743 0 001.645-4.73l-.837-7.27a5.773 5.773 0 00-5.74-5.106H6.28C3.02 8.179.309 10.89.51 14.15c1.53 24.636 21.232 44.31 45.84 45.84 3.259.201 5.97-2.51 5.97-5.77v-4.991c.03-2.914-2.163-5.366-5.077-5.712z" fill={palette.primary.base}/>
47
+ <react_native_svg_1.Path d="M60.5 16.5C60.5 25.613 53.113 33 44 33s-16.5-7.387-16.5-16.5S34.887 0 44 0s16.5 7.387 16.5 16.5z" fill={palette.highlight}/>
48
+ <react_native_svg_1.Path d="M50.188 10.313L37.812 22.688M37.813 10.313l12.374 12.375" stroke={palette.surface} strokeWidth={3.4} strokeLinecap="round"/>
49
49
  </react_native_svg_1.default>);
50
50
  };
51
51
  exports.EndVideoCallIcon = EndVideoCallIcon;
@@ -35,7 +35,11 @@ var __importStar = (this && this.__importStar) || (function () {
35
35
  Object.defineProperty(exports, "__esModule", { value: true });
36
36
  var React = __importStar(require("react"));
37
37
  var react_native_svg_1 = __importStar(require("react-native-svg"));
38
- var HangUpIcon = function () { return (<react_native_svg_1.default width={41} height={16} fill="none">
39
- <react_native_svg_1.Path fill="#fff" d="m8.011 14.775 3.37-2.671a3.34 3.34 0 0 0 1.273-2.624V5.11a25.4 25.4 0 0 1 15.692 0v4.393a3.34 3.34 0 0 0 1.274 2.624l3.345 2.648a3.377 3.377 0 0 0 4.476-.262l2.06-2.053c1.346-1.342 1.346-3.574-.083-4.832-10.798-9.51-27.05-9.498-37.836 0C.153 8.886.153 11.118 1.5 12.46l2.06 2.053c1.19 1.211 3.107 1.318 4.452.262Z"/>
40
- </react_native_svg_1.default>); };
38
+ var common_1 = require("../../common");
39
+ var HangUpIcon = function () {
40
+ var palette = (0, common_1.useTheme)().palette;
41
+ return (<react_native_svg_1.default width={41} height={16} fill="none">
42
+ <react_native_svg_1.Path fill={palette.surface} d="m8.011 14.775 3.37-2.671a3.34 3.34 0 0 0 1.273-2.624V5.11a25.4 25.4 0 0 1 15.692 0v4.393a3.34 3.34 0 0 0 1.274 2.624l3.345 2.648a3.377 3.377 0 0 0 4.476-.262l2.06-2.053c1.346-1.342 1.346-3.574-.083-4.832-10.798-9.51-27.05-9.498-37.836 0C.153 8.886.153 11.118 1.5 12.46l2.06 2.053c1.19 1.211 3.107 1.318 4.452.262Z"/>
43
+ </react_native_svg_1.default>);
44
+ };
41
45
  exports.default = HangUpIcon;
@@ -33,13 +33,13 @@ var __importStar = (this && this.__importStar) || (function () {
33
33
  };
34
34
  })();
35
35
  Object.defineProperty(exports, "__esModule", { value: true });
36
+ var index_1 = require("../../common/index");
36
37
  var React = __importStar(require("react"));
37
38
  var react_native_svg_1 = __importStar(require("react-native-svg"));
38
- var index_1 = require("../../common/index");
39
39
  var MicroOffIcon = function (_a) {
40
40
  var _b = _a.size, size = _b === void 0 ? 39 : _b, color = _a.color;
41
- var colors = (0, index_1.useTheme)().colors;
42
- var parsedColor = color || colors.white;
41
+ var palette = (0, index_1.useTheme)().palette;
42
+ var parsedColor = color || palette.surface;
43
43
  return (<react_native_svg_1.default width={size} height={size} fill="none" viewBox="0 0 39 39">
44
44
  <react_native_svg_1.Path fill={parsedColor} fillRule="evenodd" d="M25.555 14.387v5.5L12.76 7.451c.598-2.392 2.392-4.066 4.305-4.664 4.185-1.196 8.37 1.794 8.49 6.099v5.5Zm-8.251 14.23c-3.707-.597-7.055-4.065-7.294-8.131-.08-.722-.053-1.498-.027-2.255.014-.372.026-.739.026-1.093 0-.838-.597-1.435-1.315-1.435-.717 0-1.315.598-1.315 1.435v2.391c0 1.196.12 2.272.478 3.468.598 2.033 1.674 3.707 3.229 5.142a10.491 10.491 0 0 0 4.903 2.75l1.793.36v2.63H12.76c-.837 0-1.435.598-1.435 1.316 0 .717.598 1.315 1.435 1.315h12.915c.239 0 .598-.12.837-.24.239-.119.358-.358.478-.597.12-.24.12-.598 0-.837-.12-.24-.24-.479-.478-.718-.24-.12-.479-.239-.837-.239H20.533v-2.63c.239-.06.448-.09.657-.12.21-.03.419-.06.658-.12 2.247-.45 4.177-1.532 5.691-3.148l4.38 4.369a.912.912 0 0 0 1.32-.025.99.99 0 0 0-.024-1.365L7.08 4.77a.912.912 0 0 0-1.32.025.99.99 0 0 0 .024 1.366l6.827 6.81c-.091 2.184-.091 4.361-.091 6.438 0 1.674.598 3.348 1.793 4.664 1.794 2.032 4.903 2.75 7.415 1.554.862-.383 1.57-.843 2.126-1.442l1.823 1.82c-2.109 2.073-4.932 3.168-8.374 2.613Zm13.528-10.434a60.43 60.43 0 0 1-.015-1.166c0-.479-.24-.837-.718-1.076-.837-.479-1.913.12-1.913 1.195v2.512c0 .956-.12 1.913-.359 2.75l2.033 1.913c.359-.837.598-1.674.837-2.63.18-1.166.157-2.332.135-3.498Z" clipRule="evenodd"/>
45
45
  </react_native_svg_1.default>);
@@ -35,8 +35,12 @@ var __importStar = (this && this.__importStar) || (function () {
35
35
  Object.defineProperty(exports, "__esModule", { value: true });
36
36
  var React = __importStar(require("react"));
37
37
  var react_native_svg_1 = __importStar(require("react-native-svg"));
38
- var MicroOnIcon = function () { return (<react_native_svg_1.default width={24} height={35} fill="none">
39
- <react_native_svg_1.Path fill="#fff" d="M18.627 12.491c0 1.71.022 3.422 0 5.13-.046 2.84-1.408 4.869-3.945 6.071-2.438 1.157-5.584.43-7.386-1.58a6.629 6.629 0 0 1-1.744-4.617c.012-3.4.026-6.799 0-10.198-.031-3.24 2.286-5.602 4.59-6.317 4.118-1.28 8.375 1.742 8.473 6.054.042 1.818.008 3.638.008 5.457h.004Z"/>
40
- <react_native_svg_1.Path fill="#fff" d="M13.41 29.376v2.696h5.163a1.307 1.307 0 0 1 1.292.916 1.196 1.196 0 0 1-.498 1.429c-.245.158-.53.245-.821.252-4.302.016-8.604.019-12.907.01-.785 0-1.392-.584-1.388-1.308.004-.725.615-1.301 1.42-1.308h5.089v-2.668c-.603-.131-1.212-.234-1.811-.385a10.861 10.861 0 0 1-4.898-2.745c-1.515-1.439-2.634-3.148-3.236-5.169a12.46 12.46 0 0 1-.493-3.45v-2.45c0-.814.565-1.425 1.308-1.428.742-.004 1.307.598 1.314 1.412.014 1.122-.022 2.246.05 3.364.261 4.073 3.673 7.492 7.33 8.144 4.819.86 8.719-1.83 10.305-5.638.461-1.11.623-2.283.623-3.48 0-.83-.014-1.657 0-2.484.024-1.005 1.047-1.63 1.899-1.164.418.227.693.592.695 1.073.011 1.577.095 3.16-.162 4.728-.376 2.282-1.396 4.243-2.953 5.934-1.645 1.787-3.644 2.98-6.032 3.493-.422.088-.852.15-1.289.226Z"/>
41
- </react_native_svg_1.default>); };
38
+ var common_1 = require("../../common");
39
+ var MicroOnIcon = function () {
40
+ var palette = (0, common_1.useTheme)().palette;
41
+ return (<react_native_svg_1.default width={24} height={35} fill="none">
42
+ <react_native_svg_1.Path fill={palette.surface} d="M18.627 12.491c0 1.71.022 3.422 0 5.13-.046 2.84-1.408 4.869-3.945 6.071-2.438 1.157-5.584.43-7.386-1.58a6.629 6.629 0 0 1-1.744-4.617c.012-3.4.026-6.799 0-10.198-.031-3.24 2.286-5.602 4.59-6.317 4.118-1.28 8.375 1.742 8.473 6.054.042 1.818.008 3.638.008 5.457h.004Z"/>
43
+ <react_native_svg_1.Path fill={palette.surface} d="M13.41 29.376v2.696h5.163a1.307 1.307 0 0 1 1.292.916 1.196 1.196 0 0 1-.498 1.429c-.245.158-.53.245-.821.252-4.302.016-8.604.019-12.907.01-.785 0-1.392-.584-1.388-1.308.004-.725.615-1.301 1.42-1.308h5.089v-2.668c-.603-.131-1.212-.234-1.811-.385a10.861 10.861 0 0 1-4.898-2.745c-1.515-1.439-2.634-3.148-3.236-5.169a12.46 12.46 0 0 1-.493-3.45v-2.45c0-.814.565-1.425 1.308-1.428.742-.004 1.307.598 1.314 1.412.014 1.122-.022 2.246.05 3.364.261 4.073 3.673 7.492 7.33 8.144 4.819.86 8.719-1.83 10.305-5.638.461-1.11.623-2.283.623-3.48 0-.83-.014-1.657 0-2.484.024-1.005 1.047-1.63 1.899-1.164.418.227.693.592.695 1.073.011 1.577.095 3.16-.162 4.728-.376 2.282-1.396 4.243-2.953 5.934-1.645 1.787-3.644 2.98-6.032 3.493-.422.088-.852.15-1.289.226Z"/>
44
+ </react_native_svg_1.default>);
45
+ };
42
46
  exports.default = MicroOnIcon;
@@ -37,9 +37,9 @@ var index_1 = require("../../common/index");
37
37
  var React = __importStar(require("react"));
38
38
  var react_native_svg_1 = __importStar(require("react-native-svg"));
39
39
  var PersonIcon = function () {
40
- var colors = (0, index_1.useTheme)().colors;
40
+ var palette = (0, index_1.useTheme)().palette;
41
41
  return (<react_native_svg_1.default width={39} height={39} fill="none">
42
- <react_native_svg_1.Path fill={colors.primary} d="M19.5 19.5c-2.681 0-4.977-.955-6.886-2.864-1.91-1.91-2.864-4.205-2.864-6.886s.955-4.977 2.864-6.886C14.524.954 16.82 0 19.5 0s4.977.955 6.886 2.864c1.91 1.91 2.864 4.205 2.864 6.886s-.955 4.977-2.864 6.886c-1.91 1.91-4.205 2.864-6.886 2.864ZM0 34.125v-1.95a7.14 7.14 0 0 1 1.066-3.809 7.108 7.108 0 0 1 2.834-2.65 36.193 36.193 0 0 1 7.678-2.834c2.6-.63 5.24-.945 7.922-.945 2.681 0 5.322.315 7.922.945 2.6.63 5.16 1.574 7.678 2.834a7.108 7.108 0 0 1 2.834 2.65A7.14 7.14 0 0 1 39 32.175v1.95c0 1.34-.477 2.488-1.432 3.443-.955.955-2.102 1.432-3.443 1.432H4.875c-1.34 0-2.488-.477-3.443-1.432C.477 36.613 0 35.466 0 34.125Z"/>
42
+ <react_native_svg_1.Path fill={palette.primary.base} d="M19.5 19.5c-2.681 0-4.977-.955-6.886-2.864-1.91-1.91-2.864-4.205-2.864-6.886s.955-4.977 2.864-6.886C14.524.954 16.82 0 19.5 0s4.977.955 6.886 2.864c1.91 1.91 2.864 4.205 2.864 6.886s-.955 4.977-2.864 6.886c-1.91 1.91-4.205 2.864-6.886 2.864ZM0 34.125v-1.95a7.14 7.14 0 0 1 1.066-3.809 7.108 7.108 0 0 1 2.834-2.65 36.193 36.193 0 0 1 7.678-2.834c2.6-.63 5.24-.945 7.922-.945 2.681 0 5.322.315 7.922.945 2.6.63 5.16 1.574 7.678 2.834a7.108 7.108 0 0 1 2.834 2.65A7.14 7.14 0 0 1 39 32.175v1.95c0 1.34-.477 2.488-1.432 3.443-.955.955-2.102 1.432-3.443 1.432H4.875c-1.34 0-2.488-.477-3.443-1.432C.477 36.613 0 35.466 0 34.125Z"/>
43
43
  </react_native_svg_1.default>);
44
44
  };
45
45
  exports.default = PersonIcon;