@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.
- package/dist/index.d.ts +5 -0
- package/dist/index.js +5 -0
- package/{lib/typescript → dist/src}/RecommendationScreen.d.ts +68 -82
- package/dist/src/RecommendationScreen.js +522 -0
- package/dist/src/assets/assets/activity/Cyclist.png +0 -0
- package/dist/src/assets/assets/activity/Other.png +0 -0
- package/dist/src/assets/assets/activity/Runner.png +0 -0
- package/dist/src/assets/assets/activity/Swimmer.png +0 -0
- package/dist/src/assets/assets/activity/Walk.png +0 -0
- package/dist/src/assets/assets/fonts/Poppins-Bold.ttf +0 -0
- package/dist/src/assets/assets/fonts/Poppins-SemiBold.ttf +0 -0
- package/dist/src/assets/assets/icons/Edit.tsx +22 -0
- package/dist/src/assets/assets/icons/X.tsx +14 -0
- package/dist/src/assets/assets/mood/happy.png +0 -0
- package/dist/src/assets/assets/mood/happy_active.png +0 -0
- package/dist/src/assets/assets/mood/neutral.png +0 -0
- package/dist/src/assets/assets/mood/neutral_active.png +0 -0
- package/dist/src/assets/assets/mood/sad.png +0 -0
- package/dist/src/assets/assets/mood/sad_active.png +0 -0
- package/dist/src/assets/assets/mood/semi_happy.png +0 -0
- package/dist/src/assets/assets/mood/semi_happy_active.png +0 -0
- package/dist/src/assets/assets/mood/semi_sad.png +0 -0
- package/dist/src/assets/assets/mood/semi_sad_active.png +0 -0
- package/dist/src/assets/icons/Edit.d.ts +4 -0
- package/dist/src/assets/icons/Edit.js +7 -0
- package/dist/src/assets/icons/X.d.ts +4 -0
- package/dist/src/assets/icons/X.js +6 -0
- package/dist/src/components/ForecastInfoBar.d.ts +109 -0
- package/dist/src/components/ForecastInfoBar.js +138 -0
- package/dist/src/components/Header.d.ts +8 -0
- package/dist/src/components/Header.js +54 -0
- package/dist/src/components/Icon.d.ts +20 -0
- package/dist/src/components/Icon.js +43 -0
- package/{lib/typescript → dist/src}/components/InfoBars.d.ts +28 -14
- package/dist/src/components/InfoBars.js +128 -0
- package/{lib/typescript → dist/src}/components/InvisibleNumberInput.d.ts +3 -9
- package/dist/src/components/InvisibleNumberInput.js +121 -0
- package/dist/src/components/LimitationMessage.d.ts +14 -0
- package/dist/src/components/LimitationMessage.js +30 -0
- package/{lib/typescript → dist/src}/components/LineSeparator.d.ts +1 -6
- package/dist/src/components/LineSeparator.js +18 -0
- package/{lib/typescript → dist/src}/components/RecentInsulin.d.ts +1 -3
- package/dist/src/components/RecentInsulin.js +73 -0
- package/{lib/typescript → dist/src}/components/RecommendationModal.d.ts +63 -63
- package/dist/src/components/RecommendationModal.js +226 -0
- package/{lib/typescript → dist/src}/components/RecommendedCarbs.d.ts +0 -3
- package/dist/src/components/RecommendedCarbs.js +251 -0
- package/{lib/typescript → dist/src}/components/RecommendedInsulin.d.ts +1 -2
- package/dist/src/components/RecommendedInsulin.js +180 -0
- package/{lib/typescript → dist/src}/components/Remeasure.d.ts +15 -6
- package/dist/src/components/Remeasure.js +130 -0
- package/{lib/typescript/components/TransferToLogbook.d.ts → dist/src/components/SaveButton.d.ts} +2 -3
- package/dist/src/components/SaveButton.js +71 -0
- package/dist/src/components/TwoOptionModal.d.ts +136 -0
- package/dist/src/components/TwoOptionModal.js +141 -0
- package/{lib/typescript → dist/src}/components/activity/Activity.d.ts +2 -3
- package/dist/src/components/activity/Activity.js +84 -0
- package/{lib/typescript → dist/src}/components/activity/ActivityIcon.d.ts +7 -8
- package/dist/src/components/activity/ActivityIcon.js +58 -0
- package/{lib/typescript → dist/src}/components/activity/ActivityIntensity.d.ts +1 -2
- package/dist/src/components/activity/ActivityIntensity.js +58 -0
- package/{lib/typescript → dist/src}/components/mood/Emotion.d.ts +1 -2
- package/dist/src/components/mood/Emotion.js +64 -0
- package/{lib/typescript → dist/src}/components/mood/MoodIcon.d.ts +5 -5
- package/dist/src/components/mood/MoodIcon.js +63 -0
- package/dist/src/components/text/TextBold.d.ts +8 -0
- package/dist/src/components/text/TextBold.js +12 -0
- package/dist/src/components/text/TextRegular.d.ts +8 -0
- package/dist/src/components/text/TextRegular.js +12 -0
- package/dist/src/locale/da/messages.js +1 -0
- package/dist/src/locale/da/messages.po +349 -0
- package/dist/src/locale/de/messages.js +1 -0
- package/dist/src/locale/de/messages.po +349 -0
- package/dist/src/locale/en/messages.js +1 -0
- package/dist/src/locale/en/messages.po +349 -0
- package/dist/src/locale/es/messages.js +1 -0
- package/dist/src/locale/es/messages.po +349 -0
- package/dist/src/locale/fr/messages.js +1 -0
- package/dist/src/locale/fr/messages.po +349 -0
- package/dist/src/locale/i18nUtils.d.ts +18 -0
- package/dist/src/locale/i18nUtils.js +39 -0
- package/dist/src/locale/it/messages.js +1 -0
- package/dist/src/locale/it/messages.po +349 -0
- package/{lib/typescript → dist/src}/types/enum.d.ts +15 -22
- package/dist/src/types/enum.js +145 -0
- package/{lib/typescript → dist/src}/types/types.d.ts +0 -1
- package/dist/src/types/types.js +1 -0
- package/{lib/typescript → dist/src}/utils/AttentionMessages.d.ts +0 -1
- package/dist/src/utils/AttentionMessages.js +118 -0
- package/{lib/typescript → dist/src}/utils/Constants.d.ts +3 -18
- package/{lib/module → dist/src}/utils/Constants.js +21 -79
- package/{lib/typescript → dist/src}/utils/RecommendationError.d.ts +0 -1
- package/dist/src/utils/RecommendationError.js +63 -0
- package/{lib/typescript → dist/src}/utils/RecommendationUtils.d.ts +0 -1
- package/{lib/module → dist/src}/utils/RecommendationUtils.js +88 -90
- package/{lib/typescript → dist/src}/utils/Translations.d.ts +0 -1
- package/{lib/module → dist/src}/utils/Translations.js +5 -7
- package/{lib/typescript → dist/src}/utils/Utils.d.ts +1 -2
- package/dist/src/utils/Utils.js +141 -0
- package/{lib/typescript → dist/src}/utils/Validations.d.ts +1 -2
- package/{lib/module → dist/src}/utils/Validations.js +128 -156
- package/package.json +96 -109
- package/lib/commonjs/RecommendationScreen.js +0 -778
- package/lib/commonjs/RecommendationScreen.js.map +0 -1
- package/lib/commonjs/assets/IconsSVG/Close.js +0 -20
- package/lib/commonjs/assets/IconsSVG/Close.js.map +0 -1
- package/lib/commonjs/assets/IconsSVG/CloseOutlined.js +0 -28
- package/lib/commonjs/assets/IconsSVG/CloseOutlined.js.map +0 -1
- package/lib/commonjs/assets/IconsSVG/Edit.js +0 -23
- package/lib/commonjs/assets/IconsSVG/Edit.js.map +0 -1
- package/lib/commonjs/assets/IconsSVG/activity/Cycling.js +0 -43
- package/lib/commonjs/assets/IconsSVG/activity/Cycling.js.map +0 -1
- package/lib/commonjs/assets/IconsSVG/activity/Running.js +0 -33
- package/lib/commonjs/assets/IconsSVG/activity/Running.js.map +0 -1
- package/lib/commonjs/assets/IconsSVG/activity/Stretching.js +0 -33
- package/lib/commonjs/assets/IconsSVG/activity/Stretching.js.map +0 -1
- package/lib/commonjs/assets/IconsSVG/activity/Swimming.js +0 -48
- package/lib/commonjs/assets/IconsSVG/activity/Swimming.js.map +0 -1
- package/lib/commonjs/assets/IconsSVG/activity/Walking.js +0 -38
- package/lib/commonjs/assets/IconsSVG/activity/Walking.js.map +0 -1
- package/lib/commonjs/assets/IconsSVG/mood/Happy.js +0 -34
- package/lib/commonjs/assets/IconsSVG/mood/Happy.js.map +0 -1
- package/lib/commonjs/assets/IconsSVG/mood/Neutral.js +0 -34
- package/lib/commonjs/assets/IconsSVG/mood/Neutral.js.map +0 -1
- package/lib/commonjs/assets/IconsSVG/mood/Sad.js +0 -34
- package/lib/commonjs/assets/IconsSVG/mood/Sad.js.map +0 -1
- package/lib/commonjs/assets/IconsSVG/mood/SemiHappy.js +0 -34
- package/lib/commonjs/assets/IconsSVG/mood/SemiHappy.js.map +0 -1
- package/lib/commonjs/assets/IconsSVG/mood/SemiSad.js +0 -34
- package/lib/commonjs/assets/IconsSVG/mood/SemiSad.js.map +0 -1
- package/lib/commonjs/components/ExitModal.js +0 -124
- package/lib/commonjs/components/ExitModal.js.map +0 -1
- package/lib/commonjs/components/InfoBars.js +0 -123
- package/lib/commonjs/components/InfoBars.js.map +0 -1
- package/lib/commonjs/components/InvisibleNumberInput.js +0 -150
- package/lib/commonjs/components/InvisibleNumberInput.js.map +0 -1
- package/lib/commonjs/components/LineSeparator.js +0 -27
- package/lib/commonjs/components/LineSeparator.js.map +0 -1
- package/lib/commonjs/components/RecentInsulin.js +0 -105
- package/lib/commonjs/components/RecentInsulin.js.map +0 -1
- package/lib/commonjs/components/RecommendationModal.js +0 -302
- package/lib/commonjs/components/RecommendationModal.js.map +0 -1
- package/lib/commonjs/components/RecommendedCarbs.js +0 -289
- package/lib/commonjs/components/RecommendedCarbs.js.map +0 -1
- package/lib/commonjs/components/RecommendedInsulin.js +0 -209
- package/lib/commonjs/components/RecommendedInsulin.js.map +0 -1
- package/lib/commonjs/components/Remeasure.js +0 -131
- package/lib/commonjs/components/Remeasure.js.map +0 -1
- package/lib/commonjs/components/Text.js +0 -25
- package/lib/commonjs/components/Text.js.map +0 -1
- package/lib/commonjs/components/TimeoutModal.js +0 -113
- package/lib/commonjs/components/TimeoutModal.js.map +0 -1
- package/lib/commonjs/components/TransferToLogbook.js +0 -83
- package/lib/commonjs/components/TransferToLogbook.js.map +0 -1
- package/lib/commonjs/components/activity/Activity.js +0 -112
- package/lib/commonjs/components/activity/Activity.js.map +0 -1
- package/lib/commonjs/components/activity/ActivityIcon.js +0 -86
- package/lib/commonjs/components/activity/ActivityIcon.js.map +0 -1
- package/lib/commonjs/components/activity/ActivityIntensity.js +0 -65
- package/lib/commonjs/components/activity/ActivityIntensity.js.map +0 -1
- package/lib/commonjs/components/mood/Emotion.js +0 -86
- package/lib/commonjs/components/mood/Emotion.js.map +0 -1
- package/lib/commonjs/components/mood/MoodIcon.js +0 -107
- package/lib/commonjs/components/mood/MoodIcon.js.map +0 -1
- package/lib/commonjs/components/styles/fonts.js +0 -160
- package/lib/commonjs/components/styles/fonts.js.map +0 -1
- package/lib/commonjs/index.js +0 -21
- package/lib/commonjs/index.js.map +0 -1
- package/lib/commonjs/locales/da/translations.json +0 -82
- package/lib/commonjs/locales/de/translations.json +0 -81
- package/lib/commonjs/locales/en/translations.json +0 -84
- package/lib/commonjs/locales/es/translations.json +0 -81
- package/lib/commonjs/locales/fr/translations.json +0 -81
- package/lib/commonjs/locales/it/translations.json +0 -81
- package/lib/commonjs/locales/translate.js +0 -63
- package/lib/commonjs/locales/translate.js.map +0 -1
- package/lib/commonjs/types/enum.js +0 -179
- package/lib/commonjs/types/enum.js.map +0 -1
- package/lib/commonjs/types/types.js +0 -6
- package/lib/commonjs/types/types.js.map +0 -1
- package/lib/commonjs/utils/AttentionMessages.js +0 -141
- package/lib/commonjs/utils/AttentionMessages.js.map +0 -1
- package/lib/commonjs/utils/Constants.js +0 -138
- package/lib/commonjs/utils/Constants.js.map +0 -1
- package/lib/commonjs/utils/RecommendationError.js +0 -116
- package/lib/commonjs/utils/RecommendationError.js.map +0 -1
- package/lib/commonjs/utils/RecommendationUtils.js +0 -212
- package/lib/commonjs/utils/RecommendationUtils.js.map +0 -1
- package/lib/commonjs/utils/Translations.js +0 -22
- package/lib/commonjs/utils/Translations.js.map +0 -1
- package/lib/commonjs/utils/Utils.js +0 -162
- package/lib/commonjs/utils/Utils.js.map +0 -1
- package/lib/commonjs/utils/Validations.js +0 -468
- package/lib/commonjs/utils/Validations.js.map +0 -1
- package/lib/module/RecommendationScreen.js +0 -768
- package/lib/module/RecommendationScreen.js.map +0 -1
- package/lib/module/assets/IconsSVG/Close.js +0 -11
- package/lib/module/assets/IconsSVG/Close.js.map +0 -1
- package/lib/module/assets/IconsSVG/CloseOutlined.js +0 -19
- package/lib/module/assets/IconsSVG/CloseOutlined.js.map +0 -1
- package/lib/module/assets/IconsSVG/Edit.js +0 -14
- package/lib/module/assets/IconsSVG/Edit.js.map +0 -1
- package/lib/module/assets/IconsSVG/activity/Cycling.js +0 -34
- package/lib/module/assets/IconsSVG/activity/Cycling.js.map +0 -1
- package/lib/module/assets/IconsSVG/activity/Running.js +0 -24
- package/lib/module/assets/IconsSVG/activity/Running.js.map +0 -1
- package/lib/module/assets/IconsSVG/activity/Stretching.js +0 -24
- package/lib/module/assets/IconsSVG/activity/Stretching.js.map +0 -1
- package/lib/module/assets/IconsSVG/activity/Swimming.js +0 -39
- package/lib/module/assets/IconsSVG/activity/Swimming.js.map +0 -1
- package/lib/module/assets/IconsSVG/activity/Walking.js +0 -29
- package/lib/module/assets/IconsSVG/activity/Walking.js.map +0 -1
- package/lib/module/assets/IconsSVG/mood/Happy.js +0 -25
- package/lib/module/assets/IconsSVG/mood/Happy.js.map +0 -1
- package/lib/module/assets/IconsSVG/mood/Neutral.js +0 -25
- package/lib/module/assets/IconsSVG/mood/Neutral.js.map +0 -1
- package/lib/module/assets/IconsSVG/mood/Sad.js +0 -25
- package/lib/module/assets/IconsSVG/mood/Sad.js.map +0 -1
- package/lib/module/assets/IconsSVG/mood/SemiHappy.js +0 -25
- package/lib/module/assets/IconsSVG/mood/SemiHappy.js.map +0 -1
- package/lib/module/assets/IconsSVG/mood/SemiSad.js +0 -25
- package/lib/module/assets/IconsSVG/mood/SemiSad.js.map +0 -1
- package/lib/module/components/ExitModal.js +0 -114
- package/lib/module/components/ExitModal.js.map +0 -1
- package/lib/module/components/InfoBars.js +0 -114
- package/lib/module/components/InfoBars.js.map +0 -1
- package/lib/module/components/InvisibleNumberInput.js +0 -142
- package/lib/module/components/InvisibleNumberInput.js.map +0 -1
- package/lib/module/components/LineSeparator.js +0 -19
- package/lib/module/components/LineSeparator.js.map +0 -1
- package/lib/module/components/RecentInsulin.js +0 -97
- package/lib/module/components/RecentInsulin.js.map +0 -1
- package/lib/module/components/RecommendationModal.js +0 -291
- package/lib/module/components/RecommendationModal.js.map +0 -1
- package/lib/module/components/RecommendedCarbs.js +0 -281
- package/lib/module/components/RecommendedCarbs.js.map +0 -1
- package/lib/module/components/RecommendedInsulin.js +0 -201
- package/lib/module/components/RecommendedInsulin.js.map +0 -1
- package/lib/module/components/Remeasure.js +0 -123
- package/lib/module/components/Remeasure.js.map +0 -1
- package/lib/module/components/Text.js +0 -16
- package/lib/module/components/Text.js.map +0 -1
- package/lib/module/components/TimeoutModal.js +0 -103
- package/lib/module/components/TimeoutModal.js.map +0 -1
- package/lib/module/components/TransferToLogbook.js +0 -75
- package/lib/module/components/TransferToLogbook.js.map +0 -1
- package/lib/module/components/activity/Activity.js +0 -104
- package/lib/module/components/activity/Activity.js.map +0 -1
- package/lib/module/components/activity/ActivityIcon.js +0 -78
- package/lib/module/components/activity/ActivityIcon.js.map +0 -1
- package/lib/module/components/activity/ActivityIntensity.js +0 -57
- package/lib/module/components/activity/ActivityIntensity.js.map +0 -1
- package/lib/module/components/mood/Emotion.js +0 -78
- package/lib/module/components/mood/Emotion.js.map +0 -1
- package/lib/module/components/mood/MoodIcon.js +0 -97
- package/lib/module/components/mood/MoodIcon.js.map +0 -1
- package/lib/module/components/styles/fonts.js +0 -152
- package/lib/module/components/styles/fonts.js.map +0 -1
- package/lib/module/index.js +0 -5
- package/lib/module/index.js.map +0 -1
- package/lib/module/locales/da/translations.json +0 -82
- package/lib/module/locales/de/translations.json +0 -81
- package/lib/module/locales/en/translations.json +0 -84
- package/lib/module/locales/es/translations.json +0 -81
- package/lib/module/locales/fr/translations.json +0 -81
- package/lib/module/locales/it/translations.json +0 -81
- package/lib/module/locales/translate.js +0 -55
- package/lib/module/locales/translate.js.map +0 -1
- package/lib/module/types/enum.js +0 -170
- package/lib/module/types/enum.js.map +0 -1
- package/lib/module/types/types.js +0 -2
- package/lib/module/types/types.js.map +0 -1
- package/lib/module/utils/AttentionMessages.js +0 -131
- package/lib/module/utils/AttentionMessages.js.map +0 -1
- package/lib/module/utils/Constants.js.map +0 -1
- package/lib/module/utils/RecommendationError.js +0 -87
- package/lib/module/utils/RecommendationError.js.map +0 -1
- package/lib/module/utils/RecommendationUtils.js.map +0 -1
- package/lib/module/utils/Translations.js.map +0 -1
- package/lib/module/utils/Utils.js +0 -155
- package/lib/module/utils/Utils.js.map +0 -1
- package/lib/module/utils/Validations.js.map +0 -1
- package/lib/typescript/RecommendationScreen.d.ts.map +0 -1
- package/lib/typescript/assets/IconsSVG/Close.d.ts +0 -5
- package/lib/typescript/assets/IconsSVG/Close.d.ts.map +0 -1
- package/lib/typescript/assets/IconsSVG/CloseOutlined.d.ts +0 -5
- package/lib/typescript/assets/IconsSVG/CloseOutlined.d.ts.map +0 -1
- package/lib/typescript/assets/IconsSVG/Edit.d.ts +0 -5
- package/lib/typescript/assets/IconsSVG/Edit.d.ts.map +0 -1
- package/lib/typescript/assets/IconsSVG/activity/Cycling.d.ts +0 -5
- package/lib/typescript/assets/IconsSVG/activity/Cycling.d.ts.map +0 -1
- package/lib/typescript/assets/IconsSVG/activity/Running.d.ts +0 -5
- package/lib/typescript/assets/IconsSVG/activity/Running.d.ts.map +0 -1
- package/lib/typescript/assets/IconsSVG/activity/Stretching.d.ts +0 -5
- package/lib/typescript/assets/IconsSVG/activity/Stretching.d.ts.map +0 -1
- package/lib/typescript/assets/IconsSVG/activity/Swimming.d.ts +0 -5
- package/lib/typescript/assets/IconsSVG/activity/Swimming.d.ts.map +0 -1
- package/lib/typescript/assets/IconsSVG/activity/Walking.d.ts +0 -5
- package/lib/typescript/assets/IconsSVG/activity/Walking.d.ts.map +0 -1
- package/lib/typescript/assets/IconsSVG/mood/Happy.d.ts +0 -5
- package/lib/typescript/assets/IconsSVG/mood/Happy.d.ts.map +0 -1
- package/lib/typescript/assets/IconsSVG/mood/Neutral.d.ts +0 -5
- package/lib/typescript/assets/IconsSVG/mood/Neutral.d.ts.map +0 -1
- package/lib/typescript/assets/IconsSVG/mood/Sad.d.ts +0 -5
- package/lib/typescript/assets/IconsSVG/mood/Sad.d.ts.map +0 -1
- package/lib/typescript/assets/IconsSVG/mood/SemiHappy.d.ts +0 -5
- package/lib/typescript/assets/IconsSVG/mood/SemiHappy.d.ts.map +0 -1
- package/lib/typescript/assets/IconsSVG/mood/SemiSad.d.ts +0 -5
- package/lib/typescript/assets/IconsSVG/mood/SemiSad.d.ts.map +0 -1
- package/lib/typescript/components/ExitModal.d.ts +0 -26
- package/lib/typescript/components/ExitModal.d.ts.map +0 -1
- package/lib/typescript/components/InfoBars.d.ts.map +0 -1
- package/lib/typescript/components/InvisibleNumberInput.d.ts.map +0 -1
- package/lib/typescript/components/LineSeparator.d.ts.map +0 -1
- package/lib/typescript/components/RecentInsulin.d.ts.map +0 -1
- package/lib/typescript/components/RecommendationModal.d.ts.map +0 -1
- package/lib/typescript/components/RecommendedCarbs.d.ts.map +0 -1
- package/lib/typescript/components/RecommendedInsulin.d.ts.map +0 -1
- package/lib/typescript/components/Remeasure.d.ts.map +0 -1
- package/lib/typescript/components/Text.d.ts +0 -14
- package/lib/typescript/components/Text.d.ts.map +0 -1
- package/lib/typescript/components/TimeoutModal.d.ts +0 -25
- package/lib/typescript/components/TimeoutModal.d.ts.map +0 -1
- package/lib/typescript/components/TransferToLogbook.d.ts.map +0 -1
- package/lib/typescript/components/activity/Activity.d.ts.map +0 -1
- package/lib/typescript/components/activity/ActivityIcon.d.ts.map +0 -1
- package/lib/typescript/components/activity/ActivityIntensity.d.ts.map +0 -1
- package/lib/typescript/components/mood/Emotion.d.ts.map +0 -1
- package/lib/typescript/components/mood/MoodIcon.d.ts.map +0 -1
- package/lib/typescript/components/styles/fonts.d.ts +0 -151
- package/lib/typescript/components/styles/fonts.d.ts.map +0 -1
- package/lib/typescript/index.d.ts +0 -5
- package/lib/typescript/index.d.ts.map +0 -1
- package/lib/typescript/locales/translate.d.ts +0 -20
- package/lib/typescript/locales/translate.d.ts.map +0 -1
- package/lib/typescript/types/enum.d.ts.map +0 -1
- package/lib/typescript/types/types.d.ts.map +0 -1
- package/lib/typescript/utils/AttentionMessages.d.ts.map +0 -1
- package/lib/typescript/utils/Constants.d.ts.map +0 -1
- package/lib/typescript/utils/RecommendationError.d.ts.map +0 -1
- package/lib/typescript/utils/RecommendationUtils.d.ts.map +0 -1
- package/lib/typescript/utils/Translations.d.ts.map +0 -1
- package/lib/typescript/utils/Utils.d.ts.map +0 -1
- package/lib/typescript/utils/Validations.d.ts.map +0 -1
- package/src/RecommendationScreen.tsx +0 -854
- package/src/assets/IconsSVG/Close.tsx +0 -13
- package/src/assets/IconsSVG/CloseOutlined.tsx +0 -23
- package/src/assets/IconsSVG/Edit.tsx +0 -16
- package/src/assets/IconsSVG/activity/Cycling.tsx +0 -41
- package/src/assets/IconsSVG/activity/Running.tsx +0 -29
- package/src/assets/IconsSVG/activity/Stretching.tsx +0 -29
- package/src/assets/IconsSVG/activity/Swimming.tsx +0 -47
- package/src/assets/IconsSVG/activity/Walking.tsx +0 -35
- package/src/assets/IconsSVG/mood/Happy.tsx +0 -30
- package/src/assets/IconsSVG/mood/Neutral.tsx +0 -30
- package/src/assets/IconsSVG/mood/Sad.tsx +0 -30
- package/src/assets/IconsSVG/mood/SemiHappy.tsx +0 -30
- package/src/assets/IconsSVG/mood/SemiSad.tsx +0 -30
- package/src/components/ExitModal.tsx +0 -134
- package/src/components/InfoBars.tsx +0 -122
- package/src/components/InvisibleNumberInput.tsx +0 -170
- package/src/components/LineSeparator.tsx +0 -29
- package/src/components/RecentInsulin.tsx +0 -109
- package/src/components/RecommendationModal.tsx +0 -319
- package/src/components/RecommendedCarbs.tsx +0 -303
- package/src/components/RecommendedInsulin.tsx +0 -220
- package/src/components/Remeasure.tsx +0 -135
- package/src/components/Text.tsx +0 -27
- package/src/components/TimeoutModal.tsx +0 -121
- package/src/components/TransferToLogbook.tsx +0 -92
- package/src/components/activity/Activity.tsx +0 -107
- package/src/components/activity/ActivityIcon.tsx +0 -77
- package/src/components/activity/ActivityIntensity.tsx +0 -67
- package/src/components/mood/Emotion.tsx +0 -97
- package/src/components/mood/MoodIcon.tsx +0 -91
- package/src/components/styles/fonts.ts +0 -151
- package/src/index.ts +0 -5
- package/src/locales/da/translations.json +0 -82
- package/src/locales/de/translations.json +0 -81
- package/src/locales/en/translations.json +0 -84
- package/src/locales/es/translations.json +0 -81
- package/src/locales/fr/translations.json +0 -81
- package/src/locales/it/translations.json +0 -81
- package/src/locales/translate.ts +0 -62
- package/src/types/enum.ts +0 -164
- package/src/types/types.ts +0 -19
- package/src/utils/AttentionMessages.ts +0 -167
- package/src/utils/Constants.ts +0 -77
- package/src/utils/RecommendationError.ts +0 -182
- package/src/utils/RecommendationUtils.ts +0 -232
- package/src/utils/Translations.ts +0 -17
- package/src/utils/Utils.ts +0 -156
- 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
|
-
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
|
|
95
|
-
|
|
87
|
+
container: {
|
|
88
|
+
flex: number;
|
|
96
89
|
justifyContent: "center";
|
|
90
|
+
paddingHorizontal: string;
|
|
97
91
|
};
|
|
98
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
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
|
-
|
|
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
|
-
|
|
156
|
+
textAlign: "center";
|
|
172
157
|
};
|
|
173
158
|
recommendationButtonsContainer: {
|
|
174
159
|
justifyContent: "center";
|
|
175
160
|
flexDirection: "row";
|
|
176
|
-
|
|
161
|
+
margin: string;
|
|
177
162
|
};
|
|
178
|
-
|
|
163
|
+
affirmativeCarbsText: {
|
|
179
164
|
color: string;
|
|
165
|
+
fontSize: number;
|
|
180
166
|
textAlign: "center";
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
167
|
+
};
|
|
168
|
+
negativeCarbsText: {
|
|
169
|
+
color: string;
|
|
184
170
|
fontSize: number;
|
|
185
|
-
|
|
171
|
+
textAlign: "center";
|
|
186
172
|
};
|
|
187
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
203
|
+
justifyContent: "center";
|
|
203
204
|
};
|
|
204
205
|
};
|
|
205
|
-
//# sourceMappingURL=RecommendationModal.d.ts.map
|