@hedia/recommendation-screen 2.1.75 → 2.2.0-alpha.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 (393) hide show
  1. package/dist/index.d.ts +5 -0
  2. package/dist/index.js +5 -0
  3. package/{lib/typescript → dist/src}/RecommendationScreen.d.ts +68 -82
  4. package/dist/src/RecommendationScreen.js +522 -0
  5. package/dist/src/assets/assets/activity/Cyclist.png +0 -0
  6. package/dist/src/assets/assets/activity/Other.png +0 -0
  7. package/dist/src/assets/assets/activity/Runner.png +0 -0
  8. package/dist/src/assets/assets/activity/Swimmer.png +0 -0
  9. package/dist/src/assets/assets/activity/Walk.png +0 -0
  10. package/dist/src/assets/assets/fonts/Poppins-Bold.ttf +0 -0
  11. package/dist/src/assets/assets/fonts/Poppins-SemiBold.ttf +0 -0
  12. package/dist/src/assets/assets/icons/Edit.tsx +22 -0
  13. package/dist/src/assets/assets/icons/X.tsx +14 -0
  14. package/dist/src/assets/assets/mood/happy.png +0 -0
  15. package/dist/src/assets/assets/mood/happy_active.png +0 -0
  16. package/dist/src/assets/assets/mood/neutral.png +0 -0
  17. package/dist/src/assets/assets/mood/neutral_active.png +0 -0
  18. package/dist/src/assets/assets/mood/sad.png +0 -0
  19. package/dist/src/assets/assets/mood/sad_active.png +0 -0
  20. package/dist/src/assets/assets/mood/semi_happy.png +0 -0
  21. package/dist/src/assets/assets/mood/semi_happy_active.png +0 -0
  22. package/dist/src/assets/assets/mood/semi_sad.png +0 -0
  23. package/dist/src/assets/assets/mood/semi_sad_active.png +0 -0
  24. package/dist/src/assets/icons/Edit.d.ts +4 -0
  25. package/dist/src/assets/icons/Edit.js +7 -0
  26. package/dist/src/assets/icons/X.d.ts +4 -0
  27. package/dist/src/assets/icons/X.js +6 -0
  28. package/dist/src/components/ForecastInfoBar.d.ts +109 -0
  29. package/dist/src/components/ForecastInfoBar.js +138 -0
  30. package/dist/src/components/Header.d.ts +8 -0
  31. package/dist/src/components/Header.js +54 -0
  32. package/dist/src/components/Icon.d.ts +20 -0
  33. package/dist/src/components/Icon.js +43 -0
  34. package/{lib/typescript → dist/src}/components/InfoBars.d.ts +28 -14
  35. package/dist/src/components/InfoBars.js +128 -0
  36. package/{lib/typescript → dist/src}/components/InvisibleNumberInput.d.ts +3 -9
  37. package/dist/src/components/InvisibleNumberInput.js +121 -0
  38. package/dist/src/components/LimitationMessage.d.ts +14 -0
  39. package/dist/src/components/LimitationMessage.js +30 -0
  40. package/{lib/typescript → dist/src}/components/LineSeparator.d.ts +1 -6
  41. package/dist/src/components/LineSeparator.js +18 -0
  42. package/{lib/typescript → dist/src}/components/RecentInsulin.d.ts +1 -3
  43. package/dist/src/components/RecentInsulin.js +73 -0
  44. package/{lib/typescript → dist/src}/components/RecommendationModal.d.ts +63 -63
  45. package/dist/src/components/RecommendationModal.js +226 -0
  46. package/{lib/typescript → dist/src}/components/RecommendedCarbs.d.ts +0 -3
  47. package/dist/src/components/RecommendedCarbs.js +251 -0
  48. package/{lib/typescript → dist/src}/components/RecommendedInsulin.d.ts +1 -2
  49. package/dist/src/components/RecommendedInsulin.js +180 -0
  50. package/{lib/typescript → dist/src}/components/Remeasure.d.ts +15 -6
  51. package/dist/src/components/Remeasure.js +130 -0
  52. package/{lib/typescript/components/TransferToLogbook.d.ts → dist/src/components/SaveButton.d.ts} +2 -3
  53. package/dist/src/components/SaveButton.js +71 -0
  54. package/dist/src/components/TwoOptionModal.d.ts +136 -0
  55. package/dist/src/components/TwoOptionModal.js +141 -0
  56. package/{lib/typescript → dist/src}/components/activity/Activity.d.ts +2 -3
  57. package/dist/src/components/activity/Activity.js +84 -0
  58. package/{lib/typescript → dist/src}/components/activity/ActivityIcon.d.ts +7 -8
  59. package/dist/src/components/activity/ActivityIcon.js +58 -0
  60. package/{lib/typescript → dist/src}/components/activity/ActivityIntensity.d.ts +1 -2
  61. package/dist/src/components/activity/ActivityIntensity.js +58 -0
  62. package/{lib/typescript → dist/src}/components/mood/Emotion.d.ts +1 -2
  63. package/dist/src/components/mood/Emotion.js +64 -0
  64. package/{lib/typescript → dist/src}/components/mood/MoodIcon.d.ts +5 -5
  65. package/dist/src/components/mood/MoodIcon.js +63 -0
  66. package/dist/src/components/text/TextBold.d.ts +8 -0
  67. package/dist/src/components/text/TextBold.js +12 -0
  68. package/dist/src/components/text/TextRegular.d.ts +8 -0
  69. package/dist/src/components/text/TextRegular.js +12 -0
  70. package/dist/src/locale/da/messages.js +1 -0
  71. package/dist/src/locale/da/messages.po +349 -0
  72. package/dist/src/locale/de/messages.js +1 -0
  73. package/dist/src/locale/de/messages.po +349 -0
  74. package/dist/src/locale/en/messages.js +1 -0
  75. package/dist/src/locale/en/messages.po +349 -0
  76. package/dist/src/locale/es/messages.js +1 -0
  77. package/dist/src/locale/es/messages.po +349 -0
  78. package/dist/src/locale/fr/messages.js +1 -0
  79. package/dist/src/locale/fr/messages.po +349 -0
  80. package/dist/src/locale/i18nUtils.d.ts +18 -0
  81. package/dist/src/locale/i18nUtils.js +39 -0
  82. package/dist/src/locale/it/messages.js +1 -0
  83. package/dist/src/locale/it/messages.po +349 -0
  84. package/{lib/typescript → dist/src}/types/enum.d.ts +15 -22
  85. package/dist/src/types/enum.js +145 -0
  86. package/{lib/typescript → dist/src}/types/types.d.ts +0 -1
  87. package/dist/src/types/types.js +1 -0
  88. package/{lib/typescript → dist/src}/utils/AttentionMessages.d.ts +0 -1
  89. package/dist/src/utils/AttentionMessages.js +118 -0
  90. package/{lib/typescript → dist/src}/utils/Constants.d.ts +3 -18
  91. package/{lib/module → dist/src}/utils/Constants.js +21 -79
  92. package/{lib/typescript → dist/src}/utils/RecommendationError.d.ts +0 -1
  93. package/dist/src/utils/RecommendationError.js +63 -0
  94. package/{lib/typescript → dist/src}/utils/RecommendationUtils.d.ts +0 -1
  95. package/{lib/module → dist/src}/utils/RecommendationUtils.js +88 -90
  96. package/{lib/typescript → dist/src}/utils/Translations.d.ts +0 -1
  97. package/{lib/module → dist/src}/utils/Translations.js +5 -7
  98. package/{lib/typescript → dist/src}/utils/Utils.d.ts +1 -2
  99. package/dist/src/utils/Utils.js +141 -0
  100. package/{lib/typescript → dist/src}/utils/Validations.d.ts +1 -2
  101. package/{lib/module → dist/src}/utils/Validations.js +128 -156
  102. package/package.json +96 -109
  103. package/lib/commonjs/RecommendationScreen.js +0 -778
  104. package/lib/commonjs/RecommendationScreen.js.map +0 -1
  105. package/lib/commonjs/assets/IconsSVG/Close.js +0 -20
  106. package/lib/commonjs/assets/IconsSVG/Close.js.map +0 -1
  107. package/lib/commonjs/assets/IconsSVG/CloseOutlined.js +0 -28
  108. package/lib/commonjs/assets/IconsSVG/CloseOutlined.js.map +0 -1
  109. package/lib/commonjs/assets/IconsSVG/Edit.js +0 -23
  110. package/lib/commonjs/assets/IconsSVG/Edit.js.map +0 -1
  111. package/lib/commonjs/assets/IconsSVG/activity/Cycling.js +0 -43
  112. package/lib/commonjs/assets/IconsSVG/activity/Cycling.js.map +0 -1
  113. package/lib/commonjs/assets/IconsSVG/activity/Running.js +0 -33
  114. package/lib/commonjs/assets/IconsSVG/activity/Running.js.map +0 -1
  115. package/lib/commonjs/assets/IconsSVG/activity/Stretching.js +0 -33
  116. package/lib/commonjs/assets/IconsSVG/activity/Stretching.js.map +0 -1
  117. package/lib/commonjs/assets/IconsSVG/activity/Swimming.js +0 -48
  118. package/lib/commonjs/assets/IconsSVG/activity/Swimming.js.map +0 -1
  119. package/lib/commonjs/assets/IconsSVG/activity/Walking.js +0 -38
  120. package/lib/commonjs/assets/IconsSVG/activity/Walking.js.map +0 -1
  121. package/lib/commonjs/assets/IconsSVG/mood/Happy.js +0 -34
  122. package/lib/commonjs/assets/IconsSVG/mood/Happy.js.map +0 -1
  123. package/lib/commonjs/assets/IconsSVG/mood/Neutral.js +0 -34
  124. package/lib/commonjs/assets/IconsSVG/mood/Neutral.js.map +0 -1
  125. package/lib/commonjs/assets/IconsSVG/mood/Sad.js +0 -34
  126. package/lib/commonjs/assets/IconsSVG/mood/Sad.js.map +0 -1
  127. package/lib/commonjs/assets/IconsSVG/mood/SemiHappy.js +0 -34
  128. package/lib/commonjs/assets/IconsSVG/mood/SemiHappy.js.map +0 -1
  129. package/lib/commonjs/assets/IconsSVG/mood/SemiSad.js +0 -34
  130. package/lib/commonjs/assets/IconsSVG/mood/SemiSad.js.map +0 -1
  131. package/lib/commonjs/components/ExitModal.js +0 -124
  132. package/lib/commonjs/components/ExitModal.js.map +0 -1
  133. package/lib/commonjs/components/InfoBars.js +0 -123
  134. package/lib/commonjs/components/InfoBars.js.map +0 -1
  135. package/lib/commonjs/components/InvisibleNumberInput.js +0 -150
  136. package/lib/commonjs/components/InvisibleNumberInput.js.map +0 -1
  137. package/lib/commonjs/components/LineSeparator.js +0 -27
  138. package/lib/commonjs/components/LineSeparator.js.map +0 -1
  139. package/lib/commonjs/components/RecentInsulin.js +0 -105
  140. package/lib/commonjs/components/RecentInsulin.js.map +0 -1
  141. package/lib/commonjs/components/RecommendationModal.js +0 -302
  142. package/lib/commonjs/components/RecommendationModal.js.map +0 -1
  143. package/lib/commonjs/components/RecommendedCarbs.js +0 -289
  144. package/lib/commonjs/components/RecommendedCarbs.js.map +0 -1
  145. package/lib/commonjs/components/RecommendedInsulin.js +0 -209
  146. package/lib/commonjs/components/RecommendedInsulin.js.map +0 -1
  147. package/lib/commonjs/components/Remeasure.js +0 -131
  148. package/lib/commonjs/components/Remeasure.js.map +0 -1
  149. package/lib/commonjs/components/Text.js +0 -25
  150. package/lib/commonjs/components/Text.js.map +0 -1
  151. package/lib/commonjs/components/TimeoutModal.js +0 -113
  152. package/lib/commonjs/components/TimeoutModal.js.map +0 -1
  153. package/lib/commonjs/components/TransferToLogbook.js +0 -83
  154. package/lib/commonjs/components/TransferToLogbook.js.map +0 -1
  155. package/lib/commonjs/components/activity/Activity.js +0 -112
  156. package/lib/commonjs/components/activity/Activity.js.map +0 -1
  157. package/lib/commonjs/components/activity/ActivityIcon.js +0 -86
  158. package/lib/commonjs/components/activity/ActivityIcon.js.map +0 -1
  159. package/lib/commonjs/components/activity/ActivityIntensity.js +0 -65
  160. package/lib/commonjs/components/activity/ActivityIntensity.js.map +0 -1
  161. package/lib/commonjs/components/mood/Emotion.js +0 -86
  162. package/lib/commonjs/components/mood/Emotion.js.map +0 -1
  163. package/lib/commonjs/components/mood/MoodIcon.js +0 -107
  164. package/lib/commonjs/components/mood/MoodIcon.js.map +0 -1
  165. package/lib/commonjs/components/styles/fonts.js +0 -160
  166. package/lib/commonjs/components/styles/fonts.js.map +0 -1
  167. package/lib/commonjs/index.js +0 -21
  168. package/lib/commonjs/index.js.map +0 -1
  169. package/lib/commonjs/locales/da/translations.json +0 -82
  170. package/lib/commonjs/locales/de/translations.json +0 -81
  171. package/lib/commonjs/locales/en/translations.json +0 -84
  172. package/lib/commonjs/locales/es/translations.json +0 -81
  173. package/lib/commonjs/locales/fr/translations.json +0 -81
  174. package/lib/commonjs/locales/it/translations.json +0 -81
  175. package/lib/commonjs/locales/translate.js +0 -63
  176. package/lib/commonjs/locales/translate.js.map +0 -1
  177. package/lib/commonjs/types/enum.js +0 -179
  178. package/lib/commonjs/types/enum.js.map +0 -1
  179. package/lib/commonjs/types/types.js +0 -6
  180. package/lib/commonjs/types/types.js.map +0 -1
  181. package/lib/commonjs/utils/AttentionMessages.js +0 -141
  182. package/lib/commonjs/utils/AttentionMessages.js.map +0 -1
  183. package/lib/commonjs/utils/Constants.js +0 -138
  184. package/lib/commonjs/utils/Constants.js.map +0 -1
  185. package/lib/commonjs/utils/RecommendationError.js +0 -116
  186. package/lib/commonjs/utils/RecommendationError.js.map +0 -1
  187. package/lib/commonjs/utils/RecommendationUtils.js +0 -212
  188. package/lib/commonjs/utils/RecommendationUtils.js.map +0 -1
  189. package/lib/commonjs/utils/Translations.js +0 -22
  190. package/lib/commonjs/utils/Translations.js.map +0 -1
  191. package/lib/commonjs/utils/Utils.js +0 -162
  192. package/lib/commonjs/utils/Utils.js.map +0 -1
  193. package/lib/commonjs/utils/Validations.js +0 -468
  194. package/lib/commonjs/utils/Validations.js.map +0 -1
  195. package/lib/module/RecommendationScreen.js +0 -768
  196. package/lib/module/RecommendationScreen.js.map +0 -1
  197. package/lib/module/assets/IconsSVG/Close.js +0 -11
  198. package/lib/module/assets/IconsSVG/Close.js.map +0 -1
  199. package/lib/module/assets/IconsSVG/CloseOutlined.js +0 -19
  200. package/lib/module/assets/IconsSVG/CloseOutlined.js.map +0 -1
  201. package/lib/module/assets/IconsSVG/Edit.js +0 -14
  202. package/lib/module/assets/IconsSVG/Edit.js.map +0 -1
  203. package/lib/module/assets/IconsSVG/activity/Cycling.js +0 -34
  204. package/lib/module/assets/IconsSVG/activity/Cycling.js.map +0 -1
  205. package/lib/module/assets/IconsSVG/activity/Running.js +0 -24
  206. package/lib/module/assets/IconsSVG/activity/Running.js.map +0 -1
  207. package/lib/module/assets/IconsSVG/activity/Stretching.js +0 -24
  208. package/lib/module/assets/IconsSVG/activity/Stretching.js.map +0 -1
  209. package/lib/module/assets/IconsSVG/activity/Swimming.js +0 -39
  210. package/lib/module/assets/IconsSVG/activity/Swimming.js.map +0 -1
  211. package/lib/module/assets/IconsSVG/activity/Walking.js +0 -29
  212. package/lib/module/assets/IconsSVG/activity/Walking.js.map +0 -1
  213. package/lib/module/assets/IconsSVG/mood/Happy.js +0 -25
  214. package/lib/module/assets/IconsSVG/mood/Happy.js.map +0 -1
  215. package/lib/module/assets/IconsSVG/mood/Neutral.js +0 -25
  216. package/lib/module/assets/IconsSVG/mood/Neutral.js.map +0 -1
  217. package/lib/module/assets/IconsSVG/mood/Sad.js +0 -25
  218. package/lib/module/assets/IconsSVG/mood/Sad.js.map +0 -1
  219. package/lib/module/assets/IconsSVG/mood/SemiHappy.js +0 -25
  220. package/lib/module/assets/IconsSVG/mood/SemiHappy.js.map +0 -1
  221. package/lib/module/assets/IconsSVG/mood/SemiSad.js +0 -25
  222. package/lib/module/assets/IconsSVG/mood/SemiSad.js.map +0 -1
  223. package/lib/module/components/ExitModal.js +0 -114
  224. package/lib/module/components/ExitModal.js.map +0 -1
  225. package/lib/module/components/InfoBars.js +0 -114
  226. package/lib/module/components/InfoBars.js.map +0 -1
  227. package/lib/module/components/InvisibleNumberInput.js +0 -142
  228. package/lib/module/components/InvisibleNumberInput.js.map +0 -1
  229. package/lib/module/components/LineSeparator.js +0 -19
  230. package/lib/module/components/LineSeparator.js.map +0 -1
  231. package/lib/module/components/RecentInsulin.js +0 -97
  232. package/lib/module/components/RecentInsulin.js.map +0 -1
  233. package/lib/module/components/RecommendationModal.js +0 -291
  234. package/lib/module/components/RecommendationModal.js.map +0 -1
  235. package/lib/module/components/RecommendedCarbs.js +0 -281
  236. package/lib/module/components/RecommendedCarbs.js.map +0 -1
  237. package/lib/module/components/RecommendedInsulin.js +0 -201
  238. package/lib/module/components/RecommendedInsulin.js.map +0 -1
  239. package/lib/module/components/Remeasure.js +0 -123
  240. package/lib/module/components/Remeasure.js.map +0 -1
  241. package/lib/module/components/Text.js +0 -16
  242. package/lib/module/components/Text.js.map +0 -1
  243. package/lib/module/components/TimeoutModal.js +0 -103
  244. package/lib/module/components/TimeoutModal.js.map +0 -1
  245. package/lib/module/components/TransferToLogbook.js +0 -75
  246. package/lib/module/components/TransferToLogbook.js.map +0 -1
  247. package/lib/module/components/activity/Activity.js +0 -104
  248. package/lib/module/components/activity/Activity.js.map +0 -1
  249. package/lib/module/components/activity/ActivityIcon.js +0 -78
  250. package/lib/module/components/activity/ActivityIcon.js.map +0 -1
  251. package/lib/module/components/activity/ActivityIntensity.js +0 -57
  252. package/lib/module/components/activity/ActivityIntensity.js.map +0 -1
  253. package/lib/module/components/mood/Emotion.js +0 -78
  254. package/lib/module/components/mood/Emotion.js.map +0 -1
  255. package/lib/module/components/mood/MoodIcon.js +0 -97
  256. package/lib/module/components/mood/MoodIcon.js.map +0 -1
  257. package/lib/module/components/styles/fonts.js +0 -152
  258. package/lib/module/components/styles/fonts.js.map +0 -1
  259. package/lib/module/index.js +0 -5
  260. package/lib/module/index.js.map +0 -1
  261. package/lib/module/locales/da/translations.json +0 -82
  262. package/lib/module/locales/de/translations.json +0 -81
  263. package/lib/module/locales/en/translations.json +0 -84
  264. package/lib/module/locales/es/translations.json +0 -81
  265. package/lib/module/locales/fr/translations.json +0 -81
  266. package/lib/module/locales/it/translations.json +0 -81
  267. package/lib/module/locales/translate.js +0 -55
  268. package/lib/module/locales/translate.js.map +0 -1
  269. package/lib/module/types/enum.js +0 -170
  270. package/lib/module/types/enum.js.map +0 -1
  271. package/lib/module/types/types.js +0 -2
  272. package/lib/module/types/types.js.map +0 -1
  273. package/lib/module/utils/AttentionMessages.js +0 -131
  274. package/lib/module/utils/AttentionMessages.js.map +0 -1
  275. package/lib/module/utils/Constants.js.map +0 -1
  276. package/lib/module/utils/RecommendationError.js +0 -87
  277. package/lib/module/utils/RecommendationError.js.map +0 -1
  278. package/lib/module/utils/RecommendationUtils.js.map +0 -1
  279. package/lib/module/utils/Translations.js.map +0 -1
  280. package/lib/module/utils/Utils.js +0 -155
  281. package/lib/module/utils/Utils.js.map +0 -1
  282. package/lib/module/utils/Validations.js.map +0 -1
  283. package/lib/typescript/RecommendationScreen.d.ts.map +0 -1
  284. package/lib/typescript/assets/IconsSVG/Close.d.ts +0 -5
  285. package/lib/typescript/assets/IconsSVG/Close.d.ts.map +0 -1
  286. package/lib/typescript/assets/IconsSVG/CloseOutlined.d.ts +0 -5
  287. package/lib/typescript/assets/IconsSVG/CloseOutlined.d.ts.map +0 -1
  288. package/lib/typescript/assets/IconsSVG/Edit.d.ts +0 -5
  289. package/lib/typescript/assets/IconsSVG/Edit.d.ts.map +0 -1
  290. package/lib/typescript/assets/IconsSVG/activity/Cycling.d.ts +0 -5
  291. package/lib/typescript/assets/IconsSVG/activity/Cycling.d.ts.map +0 -1
  292. package/lib/typescript/assets/IconsSVG/activity/Running.d.ts +0 -5
  293. package/lib/typescript/assets/IconsSVG/activity/Running.d.ts.map +0 -1
  294. package/lib/typescript/assets/IconsSVG/activity/Stretching.d.ts +0 -5
  295. package/lib/typescript/assets/IconsSVG/activity/Stretching.d.ts.map +0 -1
  296. package/lib/typescript/assets/IconsSVG/activity/Swimming.d.ts +0 -5
  297. package/lib/typescript/assets/IconsSVG/activity/Swimming.d.ts.map +0 -1
  298. package/lib/typescript/assets/IconsSVG/activity/Walking.d.ts +0 -5
  299. package/lib/typescript/assets/IconsSVG/activity/Walking.d.ts.map +0 -1
  300. package/lib/typescript/assets/IconsSVG/mood/Happy.d.ts +0 -5
  301. package/lib/typescript/assets/IconsSVG/mood/Happy.d.ts.map +0 -1
  302. package/lib/typescript/assets/IconsSVG/mood/Neutral.d.ts +0 -5
  303. package/lib/typescript/assets/IconsSVG/mood/Neutral.d.ts.map +0 -1
  304. package/lib/typescript/assets/IconsSVG/mood/Sad.d.ts +0 -5
  305. package/lib/typescript/assets/IconsSVG/mood/Sad.d.ts.map +0 -1
  306. package/lib/typescript/assets/IconsSVG/mood/SemiHappy.d.ts +0 -5
  307. package/lib/typescript/assets/IconsSVG/mood/SemiHappy.d.ts.map +0 -1
  308. package/lib/typescript/assets/IconsSVG/mood/SemiSad.d.ts +0 -5
  309. package/lib/typescript/assets/IconsSVG/mood/SemiSad.d.ts.map +0 -1
  310. package/lib/typescript/components/ExitModal.d.ts +0 -26
  311. package/lib/typescript/components/ExitModal.d.ts.map +0 -1
  312. package/lib/typescript/components/InfoBars.d.ts.map +0 -1
  313. package/lib/typescript/components/InvisibleNumberInput.d.ts.map +0 -1
  314. package/lib/typescript/components/LineSeparator.d.ts.map +0 -1
  315. package/lib/typescript/components/RecentInsulin.d.ts.map +0 -1
  316. package/lib/typescript/components/RecommendationModal.d.ts.map +0 -1
  317. package/lib/typescript/components/RecommendedCarbs.d.ts.map +0 -1
  318. package/lib/typescript/components/RecommendedInsulin.d.ts.map +0 -1
  319. package/lib/typescript/components/Remeasure.d.ts.map +0 -1
  320. package/lib/typescript/components/Text.d.ts +0 -14
  321. package/lib/typescript/components/Text.d.ts.map +0 -1
  322. package/lib/typescript/components/TimeoutModal.d.ts +0 -25
  323. package/lib/typescript/components/TimeoutModal.d.ts.map +0 -1
  324. package/lib/typescript/components/TransferToLogbook.d.ts.map +0 -1
  325. package/lib/typescript/components/activity/Activity.d.ts.map +0 -1
  326. package/lib/typescript/components/activity/ActivityIcon.d.ts.map +0 -1
  327. package/lib/typescript/components/activity/ActivityIntensity.d.ts.map +0 -1
  328. package/lib/typescript/components/mood/Emotion.d.ts.map +0 -1
  329. package/lib/typescript/components/mood/MoodIcon.d.ts.map +0 -1
  330. package/lib/typescript/components/styles/fonts.d.ts +0 -151
  331. package/lib/typescript/components/styles/fonts.d.ts.map +0 -1
  332. package/lib/typescript/index.d.ts +0 -5
  333. package/lib/typescript/index.d.ts.map +0 -1
  334. package/lib/typescript/locales/translate.d.ts +0 -20
  335. package/lib/typescript/locales/translate.d.ts.map +0 -1
  336. package/lib/typescript/types/enum.d.ts.map +0 -1
  337. package/lib/typescript/types/types.d.ts.map +0 -1
  338. package/lib/typescript/utils/AttentionMessages.d.ts.map +0 -1
  339. package/lib/typescript/utils/Constants.d.ts.map +0 -1
  340. package/lib/typescript/utils/RecommendationError.d.ts.map +0 -1
  341. package/lib/typescript/utils/RecommendationUtils.d.ts.map +0 -1
  342. package/lib/typescript/utils/Translations.d.ts.map +0 -1
  343. package/lib/typescript/utils/Utils.d.ts.map +0 -1
  344. package/lib/typescript/utils/Validations.d.ts.map +0 -1
  345. package/src/RecommendationScreen.tsx +0 -854
  346. package/src/assets/IconsSVG/Close.tsx +0 -13
  347. package/src/assets/IconsSVG/CloseOutlined.tsx +0 -23
  348. package/src/assets/IconsSVG/Edit.tsx +0 -16
  349. package/src/assets/IconsSVG/activity/Cycling.tsx +0 -41
  350. package/src/assets/IconsSVG/activity/Running.tsx +0 -29
  351. package/src/assets/IconsSVG/activity/Stretching.tsx +0 -29
  352. package/src/assets/IconsSVG/activity/Swimming.tsx +0 -47
  353. package/src/assets/IconsSVG/activity/Walking.tsx +0 -35
  354. package/src/assets/IconsSVG/mood/Happy.tsx +0 -30
  355. package/src/assets/IconsSVG/mood/Neutral.tsx +0 -30
  356. package/src/assets/IconsSVG/mood/Sad.tsx +0 -30
  357. package/src/assets/IconsSVG/mood/SemiHappy.tsx +0 -30
  358. package/src/assets/IconsSVG/mood/SemiSad.tsx +0 -30
  359. package/src/components/ExitModal.tsx +0 -134
  360. package/src/components/InfoBars.tsx +0 -122
  361. package/src/components/InvisibleNumberInput.tsx +0 -170
  362. package/src/components/LineSeparator.tsx +0 -29
  363. package/src/components/RecentInsulin.tsx +0 -109
  364. package/src/components/RecommendationModal.tsx +0 -319
  365. package/src/components/RecommendedCarbs.tsx +0 -303
  366. package/src/components/RecommendedInsulin.tsx +0 -220
  367. package/src/components/Remeasure.tsx +0 -135
  368. package/src/components/Text.tsx +0 -27
  369. package/src/components/TimeoutModal.tsx +0 -121
  370. package/src/components/TransferToLogbook.tsx +0 -92
  371. package/src/components/activity/Activity.tsx +0 -107
  372. package/src/components/activity/ActivityIcon.tsx +0 -77
  373. package/src/components/activity/ActivityIntensity.tsx +0 -67
  374. package/src/components/mood/Emotion.tsx +0 -97
  375. package/src/components/mood/MoodIcon.tsx +0 -91
  376. package/src/components/styles/fonts.ts +0 -151
  377. package/src/index.ts +0 -5
  378. package/src/locales/da/translations.json +0 -82
  379. package/src/locales/de/translations.json +0 -81
  380. package/src/locales/en/translations.json +0 -84
  381. package/src/locales/es/translations.json +0 -81
  382. package/src/locales/fr/translations.json +0 -81
  383. package/src/locales/it/translations.json +0 -81
  384. package/src/locales/translate.ts +0 -62
  385. package/src/types/enum.ts +0 -164
  386. package/src/types/types.ts +0 -19
  387. package/src/utils/AttentionMessages.ts +0 -167
  388. package/src/utils/Constants.ts +0 -77
  389. package/src/utils/RecommendationError.ts +0 -182
  390. package/src/utils/RecommendationUtils.ts +0 -232
  391. package/src/utils/Translations.ts +0 -17
  392. package/src/utils/Utils.ts +0 -156
  393. package/src/utils/Validations.ts +0 -490
@@ -0,0 +1,121 @@
1
+ import React from "react";
2
+ import { Platform, StyleSheet, TextInput } from "react-native";
3
+ /**
4
+ * InvisibleNumberInput is used to enable numerical input by the user without displaying a traditional input field on the screen.
5
+ * Since the input field is made invisible and thus can’t be tapped directly by the user we need to be able to call
6
+ * its focus() method from the parent component in order to activate the input field and show the keyboard.
7
+ * We do this by defining a function that calls the input field’s focus() method inside the InvisibleNumberInput component when it has been mounted.
8
+ * This function is then passed to the parent by giving it as the argument for a callback function named visible.
9
+ */
10
+ export default class InvisibleNumberInput extends React.Component {
11
+ /** For holding a reference to the TextInput component so it can be focused when the InvisibleNumberInput component has been mounted. */
12
+ textInput;
13
+ /** Initialise the state value variable with `0` */
14
+ state = {
15
+ value: `0`,
16
+ };
17
+ /**
18
+ * Called immediately after a component is mounted. Setting state here will trigger re-rendering.
19
+ * Perform various initialisation steps:
20
+ * 1. Set the value state of the component to the startValue prop (or to '0' if it is undefined)
21
+ * 2. Call the visible callback function using an anonymous function as argument. The anonymous function shall do the following:
22
+ * - Set the value state of the InvisibleNumberInput component to the startValue prop (or to '0' if it is undefined)
23
+ * - Return the value from calling the focus() method on the input field.
24
+ */
25
+ componentDidMount() {
26
+ this.setState({
27
+ value: this.props.startValue ?? `0`,
28
+ });
29
+ this.props.visible(() => {
30
+ this.setState({
31
+ value: this.props.startValue ?? `0`,
32
+ });
33
+ return this.textInput?.focus();
34
+ });
35
+ }
36
+ /**
37
+ * Sanitise a user-entered value by removing invalid characters
38
+ *
39
+ * Steps:
40
+ * 1. Use regular expressions to make the following manipulations to the text argument in the defined order and save the result to a local string variable named replaced.
41
+ * - Replace any commas with periods
42
+ * - Remove any characters that comes after two groups of zero or more digits separated by a period.
43
+ * 2. Define a function named round that rounds a given string that contains a number to have the amount of decimals given by the decimalPlaces prop. Return the result as a string.
44
+ * 3. If the value of the replaced variable from step 1 is not a NaN (not a number) when converted to a Number type then use the round function defined in step 2 on replaced and return the result
45
+ * 4. (If the NaN-check from step 2 didn’t fail) return the string '0'.
46
+
47
+ * @param text The string input to clean up
48
+ * @returns A string with the cleaned text.
49
+ */
50
+ cleanInput = (text) => {
51
+ const replaced = text.replace(/\,/g, `.`).replace(/(\d*\.\d*).*/, `$1`);
52
+ const round = (value) => {
53
+ const temp = Number(value) * Math.pow(10, this.props.decimalPlaces);
54
+ const rounded = Math.round(temp) / Math.pow(10, this.props.decimalPlaces);
55
+ return rounded.toFixed(this.props.decimalPlaces);
56
+ };
57
+ if (!isNaN(Number(replaced))) {
58
+ return round(replaced);
59
+ }
60
+ return `0`;
61
+ };
62
+ /**
63
+ * Handle what happens when the text in the input field is being changed.
64
+ * That includes cleaning the text a little and then saving the value and potentially calling a callback function.
65
+ *
66
+ * Steps:
67
+ * 1. If the cleanPartialInput prop is true, use the cleanInput() method to to clean the content of the text argument and save it to a variable named cleaned.
68
+ * Otherwise just replace any commas in the text argument with periods and save the result to the same variable.
69
+ * 2. Remove repeated periods from the text in the cleaned variable and save the the result in a new variable named replacedSeparator.
70
+ * 3. Set the value state of the component to replacedSeparator.
71
+ * 4. If the partialInput callback function prop is defined, call it with replacedSeparator as argument.
72
+ * @param text The updated text in the input field
73
+ */
74
+ handleOnChangeText = (text) => {
75
+ const cleaned = this.props.cleanPartialInput ? this.cleanInput(text) : text.replace(/\,/g, `.`);
76
+ let replacedSeparator = cleaned.replace(/\.+/g, `.`).replace(/(\d*\.\d*).*/, `$1`);
77
+ if (!this.props.negativeAllowed) {
78
+ replacedSeparator = replacedSeparator.replace(/[^0-9.]/g, ``);
79
+ }
80
+ this.setState({
81
+ value: `${replacedSeparator}`,
82
+ });
83
+ this.props.partialInput?.(`${replacedSeparator}`);
84
+ };
85
+ /**
86
+ * Handle what should happen when the user finish editing the input field.
87
+ *
88
+ * Steps:
89
+ * 1. Use the cleanInput() method on the value state and store the result in a variable named cleaned.
90
+ * 2. If the onEnd prop is not null, then convert the value of cleaned to a number and use it as an argument to call the onEnd prop function.
91
+ */
92
+ onEndEdit = () => {
93
+ const cleaned = this.cleanInput(this.state.value);
94
+ this.props.onEnd?.(Number(cleaned));
95
+ };
96
+ /**
97
+ * @returns JSX element to display a TextInput field with the component’s value state as its value
98
+ * and the handleOnChangeText() and onEndEdit() methods as the textInput’s onChangeText and onEndEditing respectively.
99
+ */
100
+ render() {
101
+ const { testID } = this.props;
102
+ return (<TextInput testID={testID} value={`${this.state.value}`} ref={(textInput) => {
103
+ if (textInput !== null) {
104
+ this.textInput = textInput;
105
+ }
106
+ }} style={inputStyles.input} keyboardType={`numeric`} returnKeyType={`done`} onChangeText={this.handleOnChangeText} onEndEditing={this.onEndEdit} maxLength={this.props.maxLength} selectTextOnFocus/>);
107
+ }
108
+ }
109
+ const inputStyles = StyleSheet.create({
110
+ input: {
111
+ ...Platform.select({
112
+ ios: {
113
+ width: 0,
114
+ height: 0,
115
+ },
116
+ android: {
117
+ opacity: 0,
118
+ },
119
+ }),
120
+ },
121
+ });
@@ -0,0 +1,14 @@
1
+ import * as React from "react";
2
+ export interface ILimitationMessageProps {
3
+ /** The message to display to the user. */
4
+ limitationMessage: string | null;
5
+ /** Callback function taking no arguments and giving no return value - To be called when the user presses the “OK” button. */
6
+ onPressNextButton(): void;
7
+ }
8
+ /** Display a message on the screen to inform the user that their insulin recommendation was limited. */
9
+ export default class LimitationMessage extends React.Component<ILimitationMessageProps> {
10
+ /**
11
+ * @returns JSX element for displaying a dialog with the limitationMessage and an “OK” button that calls the onPressNextButton prop callback when tapped.
12
+ */
13
+ render: () => JSX.Element;
14
+ }
@@ -0,0 +1,30 @@
1
+ import { t } from "@lingui/macro";
2
+ import * as React from "react";
3
+ import { TouchableOpacity, View } from "react-native";
4
+ import { i18n } from "../locale/i18nUtils";
5
+ import { Testing } from "../types/enum";
6
+ import { stylesModal } from "./RecommendationModal";
7
+ import TextBold from "./text/TextBold";
8
+ import TextRegular from "./text/TextRegular";
9
+ /** Display a message on the screen to inform the user that their insulin recommendation was limited. */
10
+ export default class LimitationMessage extends React.Component {
11
+ /**
12
+ * @returns JSX element for displaying a dialog with the limitationMessage and an “OK” button that calls the onPressNextButton prop callback when tapped.
13
+ */
14
+ render = () => {
15
+ const { limitationMessage } = this.props;
16
+ return (<React.Fragment>
17
+ <View style={stylesModal.container}>
18
+ <View style={stylesModal.titleContainer}>
19
+ <TextBold style={stylesModal.textTittleMessage}>{i18n._(t `Attention`)}</TextBold>
20
+ </View>
21
+ <TextRegular style={stylesModal.textMessage}>{limitationMessage}</TextRegular>
22
+ </View>
23
+ <View style={stylesModal.containerAcceptButton}>
24
+ <TouchableOpacity testID={Testing.Id.LimitationMessageTestIds.OkButton} style={stylesModal.okButton} onPress={this.props.onPressNextButton}>
25
+ <TextRegular style={stylesModal.buttonText}>{i18n._(t `OK`)}</TextRegular>
26
+ </TouchableOpacity>
27
+ </View>
28
+ </React.Fragment>);
29
+ };
30
+ }
@@ -1,15 +1,10 @@
1
1
  import React from "react";
2
2
  export interface IProps {
3
3
  /** The color that the line should have. */
4
- borderBottomColor: string;
5
- /** The marginTop of the line. */
6
- marginTop?: number;
7
- /** The marginBottom of the line. */
8
- marginBottom?: number;
4
+ color: string;
9
5
  }
10
6
  /** Display a horizontal line for visually separating elements in the user interface. */
11
7
  export default class LineSeparator extends React.Component<IProps> {
12
8
  /** @return JSX element for displaying a thin horizontal line in the given color. */
13
9
  render(): JSX.Element;
14
10
  }
15
- //# sourceMappingURL=LineSeparator.d.ts.map
@@ -0,0 +1,18 @@
1
+ import React from "react";
2
+ import { StyleSheet, View } from "react-native";
3
+ /** Display a horizontal line for visually separating elements in the user interface. */
4
+ export default class LineSeparator extends React.Component {
5
+ /** @return JSX element for displaying a thin horizontal line in the given color. */
6
+ render() {
7
+ return (<React.Fragment>
8
+ <View style={[lineSeparatorStyles.lineStyle, { borderBottomColor: this.props.color }]}/>
9
+ </React.Fragment>);
10
+ }
11
+ }
12
+ const lineSeparatorStyles = StyleSheet.create({
13
+ lineStyle: {
14
+ marginHorizontal: `3%`,
15
+ marginVertical: `2%`,
16
+ borderBottomWidth: 1,
17
+ },
18
+ });
@@ -9,11 +9,9 @@ export interface IProps {
9
9
  export default class RecentInsulin extends React.Component<IProps> {
10
10
  /**
11
11
  *
12
- * @returns JSX element that displays a card with the question “Have you taken insulin within the last 4 hours?
13
- * Along with two buttons labeled “Yes” and “No” respectively.
12
+ * @returns JSX element that displays a card with the question “Have you taken insulin within the last 4 hours? Along with two buttons labeled “Yes” and “No” respectively.
14
13
  * If the user taps the “Yes” button, the onRecentInsulinYes prop callback function should be called.
15
14
  * If the user taps the “No” button, the onRecentInsulinNo prop callback function should be called.
16
15
  */
17
16
  render: () => JSX.Element;
18
17
  }
19
- //# sourceMappingURL=RecentInsulin.d.ts.map
@@ -0,0 +1,73 @@
1
+ import { t } from "@lingui/macro";
2
+ import React from "react";
3
+ import { Dimensions, StyleSheet, TouchableOpacity, View } from "react-native";
4
+ import LinearGradient from "react-native-linear-gradient";
5
+ import { i18n } from "../locale/i18nUtils";
6
+ import { Testing } from "../types/enum";
7
+ import { colors } from "../utils/Constants";
8
+ import { infoStyles } from "./InfoBars";
9
+ import TextBold from "./text/TextBold";
10
+ /** Display a card that prompts the user to recall if they injected insulin recently. */
11
+ export default class RecentInsulin extends React.Component {
12
+ /**
13
+ *
14
+ * @returns JSX element that displays a card with the question “Have you taken insulin within the last 4 hours? Along with two buttons labeled “Yes” and “No” respectively.
15
+ * If the user taps the “Yes” button, the onRecentInsulinYes prop callback function should be called.
16
+ * If the user taps the “No” button, the onRecentInsulinNo prop callback function should be called.
17
+ */
18
+ render = () => {
19
+ const { container, title, buttonContainer, yesNoContainer, yesNoText } = styles;
20
+ return (<LinearGradient style={container} colors={[`rgba(87, 138, 255, 0.3)`, `rgba(162, 0, 255, 0.3)`]} useAngle={true} angle={170}>
21
+ <TextBold style={title}>
22
+ {i18n._(t `Have you taken rapid-acting insulin within the last 4 hours?`)}
23
+ </TextBold>
24
+
25
+ <View style={buttonContainer}>
26
+ <TouchableOpacity testID={Testing.Id.RecentInsulinTestIds.Yes} onPress={this.props.onRecentInsulinYes} style={[yesNoContainer, { marginRight: `2%` }]}>
27
+ <TextBold style={yesNoText}>{i18n._(t `Yes`)}</TextBold>
28
+ </TouchableOpacity>
29
+ <TouchableOpacity testID={Testing.Id.RecentInsulinTestIds.No} onPress={this.props.onRecentInsulinNo} style={[yesNoContainer, { marginLeft: `2%` }]}>
30
+ <TextBold style={yesNoText}>{i18n._(t `No`)}</TextBold>
31
+ </TouchableOpacity>
32
+ </View>
33
+ </LinearGradient>);
34
+ };
35
+ }
36
+ const { width } = Dimensions.get(`screen`);
37
+ const styles = StyleSheet.create({
38
+ container: {
39
+ ...infoStyles.margin,
40
+ borderRadius: 5,
41
+ },
42
+ title: {
43
+ fontFamily: `Poppins-Bold`,
44
+ ...infoStyles.label,
45
+ fontSize: width / 24,
46
+ lineHeight: width / 16,
47
+ textAlign: `center`,
48
+ paddingHorizontal: width / 13,
49
+ marginTop: width / 32,
50
+ },
51
+ buttonContainer: {
52
+ flex: 1,
53
+ flexDirection: `row`,
54
+ justifyContent: `center`,
55
+ marginVertical: width / 26,
56
+ },
57
+ yesNoContainer: {
58
+ flex: 1,
59
+ maxWidth: width / 4,
60
+ backgroundColor: colors.teal,
61
+ borderColor: colors.teal,
62
+ borderRadius: 50,
63
+ borderWidth: 2,
64
+ },
65
+ yesNoText: {
66
+ textAlign: `center`,
67
+ paddingVertical: width / 43,
68
+ color: colors.darkBlue,
69
+ fontSize: width / 25,
70
+ lineHeight: width / 16,
71
+ fontFamily: `Poppins-Bold`,
72
+ },
73
+ });
@@ -8,20 +8,16 @@ export interface IModalProps {
8
8
  attentionMessage: string | null;
9
9
  /** A message to display to the user to inform them if their insulin recommendation was limited by the maximum threshold. */
10
10
  limitationMessage: string | null;
11
- /**
12
- * If true then the modal will only display the limitation message and not the attention message.
13
- */
14
- onlyShowLimitationMessage: boolean;
15
11
  /** Callback function taking no arguments and returning no value - Should be called if the user taps the “OK” button on the modal. */
16
12
  onClickOkButton(): void;
17
13
  /**
18
- * Callback function taking no arguments and returning no value.
14
+ * Callback function taking no arguments and returning no value.
19
15
  * Should be called if the user taps the “accept” button when they are recommended to eat additional carbohydrates.
20
16
  */
21
17
  onAcceptCarbohydrates(): void;
22
18
  /**
23
19
  * Callback function taking no arguments and returning no value.
24
- * Should be called if the user taps the “decline” button when they are recommended to eat additional carbohydrates.
20
+ * Should be called if the user taps the “decline” button when they are recommended to eat additional carbohydrates.
25
21
  */
26
22
  onDeclineCarbohydrates(): void;
27
23
  }
@@ -45,7 +41,6 @@ export default class RecommendationModal extends React.Component<IModalProps, IM
45
41
  * @param props The class props
46
42
  */
47
43
  constructor(props: IModalProps);
48
- componentDidUpdate(prevProps: Readonly<IModalProps>): void;
49
44
  /**
50
45
  * Handle what happens when the “next” button is pressed.
51
46
  *
@@ -85,121 +80,126 @@ export default class RecommendationModal extends React.Component<IModalProps, IM
85
80
  }
86
81
  /** @internal */
87
82
  export declare const stylesModal: {
88
- safe: {
89
- backgroundColor: string;
90
- };
91
83
  modalStyle: {
92
84
  margin: number;
85
+ backgroundColor: string;
93
86
  };
94
- scrollViewContainer: {
95
- flexGrow: number;
87
+ container: {
88
+ flex: number;
96
89
  justifyContent: "center";
90
+ paddingHorizontal: string;
97
91
  };
98
- container: {
92
+ containerAcceptButton: {
93
+ flex: number;
94
+ justifyContent: "flex-start";
95
+ };
96
+ titleContainer: {
97
+ marginBottom: string;
98
+ };
99
+ recommendationRow: {
99
100
  justifyContent: "center";
101
+ alignContent: "center";
102
+ marginBottom: string;
100
103
  };
101
104
  textTittleMessage: {
102
105
  color: string;
103
- textAlign: "center";
104
- fontFamily: import("./styles/fonts").FontFamily;
105
106
  fontSize: number;
106
- /** A message to display to the user to inform them if their insulin recommendation was limited by the maximum threshold. */
107
- lineHeight: number;
107
+ textAlign: "center";
108
108
  };
109
109
  textMessage: {
110
110
  color: string;
111
- textAlign: "center";
112
- marginHorizontal: number;
113
- marginTop: number;
114
- fontFamily: import("./styles/fonts").FontFamily;
115
111
  fontSize: number;
116
- lineHeight: number;
112
+ textAlign: "center";
117
113
  };
118
114
  buttonText: {
119
115
  color: string;
120
- textAlign: "center";
121
- paddingHorizontal: number;
122
- paddingVertical: number;
123
- fontFamily: import("./styles/fonts").FontFamily;
124
116
  fontSize: number;
125
- lineHeight: number;
117
+ textAlign: "center";
118
+ };
119
+ addToCalculationContainer: {
120
+ justifyContent: "flex-start";
121
+ marginVertical: string;
126
122
  };
127
123
  innerView: {
128
124
  alignContent: "center";
125
+ paddingVertical: string;
126
+ paddingHorizontal: string;
127
+ marginTop: string;
129
128
  borderRadius: number;
130
- backgroundColor: string;
131
- paddingVertical: number;
132
- marginHorizontal: number;
133
- marginTop: number;
134
- marginBottom: number;
129
+ borderWidth: number;
130
+ borderColor: string;
131
+ };
132
+ suggestedContainer: {
133
+ justifyContent: "center";
134
+ flexDirection: "row";
135
+ marginBottom: string;
135
136
  };
136
137
  suggestedCarbs: {
137
138
  color: string;
138
- fontFamily: import("./styles/fonts").FontFamily;
139
139
  fontSize: number;
140
- lineHeight: number;
141
140
  };
142
141
  textCenter: {
143
142
  textAlign: "center";
144
- paddingHorizontal: number;
145
- fontFamily: import("./styles/fonts").FontFamily;
146
- fontSize: number;
147
- lineHeight: number;
148
143
  };
149
144
  recommendEatingText: {
150
145
  color: string;
151
- textAlign: "center";
152
- paddingHorizontal: number;
153
- marginBottom: number;
154
- fontFamily: import("./styles/fonts").FontFamily;
155
146
  fontSize: number;
156
- lineHeight: number;
147
+ textAlign: "center";
157
148
  };
158
149
  carbohydrateText: {
159
150
  color: string;
160
- fontFamily: import("./styles/fonts").FontFamily;
161
151
  fontSize: number;
162
- lineHeight: number;
163
152
  };
164
153
  addToCalculation: {
165
154
  color: string;
166
- textAlign: "center";
167
- marginBottom: number;
168
- marginHorizontal: number;
169
- fontFamily: import("./styles/fonts").FontFamily;
170
155
  fontSize: number;
171
- lineHeight: number;
156
+ textAlign: "center";
172
157
  };
173
158
  recommendationButtonsContainer: {
174
159
  justifyContent: "center";
175
160
  flexDirection: "row";
176
- paddingHorizontal: number;
161
+ margin: string;
177
162
  };
178
- carbsButtonText: {
163
+ affirmativeCarbsText: {
179
164
  color: string;
165
+ fontSize: number;
180
166
  textAlign: "center";
181
- paddingHorizontal: number;
182
- paddingVertical: number;
183
- fontFamily: import("./styles/fonts").FontFamily;
167
+ };
168
+ negativeCarbsText: {
169
+ color: string;
184
170
  fontSize: number;
185
- lineHeight: number;
171
+ textAlign: "center";
186
172
  };
187
- button: {
173
+ affirmativeCarbsButton: {
174
+ marginTop: string;
188
175
  borderRadius: number;
189
176
  borderWidth: number;
190
177
  borderColor: string;
178
+ width: number;
179
+ height: number;
191
180
  alignSelf: "center";
192
- minWidth: number;
181
+ justifyContent: "center";
182
+ marginRight: string;
183
+ };
184
+ negativeCarbsButton: {
185
+ marginTop: string;
186
+ borderRadius: number;
187
+ borderWidth: number;
188
+ borderColor: string;
189
+ width: number;
190
+ height: number;
191
+ alignSelf: "center";
192
+ justifyContent: "center";
193
+ marginLeft: string;
193
194
  };
194
195
  okButton: {
195
- backgroundColor: string;
196
- justifyContent: "flex-start";
197
- marginTop: number;
196
+ marginTop: string;
198
197
  borderRadius: number;
199
198
  borderWidth: number;
200
199
  borderColor: string;
200
+ width: number;
201
+ height: number;
201
202
  alignSelf: "center";
202
- minWidth: number;
203
+ justifyContent: "center";
203
204
  };
204
205
  };
205
- //# sourceMappingURL=RecommendationModal.d.ts.map