@magmamath/students-features 1.8.4-rc.9 → 1.8.4
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/commonjs/features/pmProgress/shared/TreeNormalizer.js +5 -1
- package/dist/commonjs/features/pmProgress/shared/TreeNormalizer.js.map +1 -1
- package/dist/commonjs/features/uiMode/index.js +7 -0
- package/dist/commonjs/features/uiMode/index.js.map +1 -1
- package/dist/commonjs/features/uiMode/uiMode.helpers.js +7 -2
- package/dist/commonjs/features/uiMode/uiMode.helpers.js.map +1 -1
- package/dist/commonjs/index.js +0 -12
- package/dist/commonjs/index.js.map +1 -1
- package/dist/module/features/pmProgress/shared/TreeNormalizer.js +5 -1
- package/dist/module/features/pmProgress/shared/TreeNormalizer.js.map +1 -1
- package/dist/module/features/uiMode/index.js +1 -0
- package/dist/module/features/uiMode/index.js.map +1 -1
- package/dist/module/features/uiMode/uiMode.helpers.js +6 -1
- package/dist/module/features/uiMode/uiMode.helpers.js.map +1 -1
- package/dist/module/index.js +0 -1
- package/dist/module/index.js.map +1 -1
- package/dist/module/shared/icons/ArrowRightIcon.js.map +1 -0
- package/dist/module/shared/icons/CloseIcon.js.map +1 -0
- package/dist/module/shared/icons/ExcitedLavaIcon.js.map +1 -0
- package/dist/typescript/commonjs/features/pmProgress/shared/TreeNormalizer.d.ts +4 -0
- package/dist/typescript/commonjs/features/pmProgress/shared/TreeNormalizer.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/uiMode/index.d.ts +1 -0
- package/dist/typescript/commonjs/features/uiMode/index.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/uiMode/uiMode.helpers.d.ts +2 -0
- package/dist/typescript/commonjs/features/uiMode/uiMode.helpers.d.ts.map +1 -1
- package/dist/typescript/commonjs/index.d.ts +0 -1
- package/dist/typescript/commonjs/index.d.ts.map +1 -1
- package/dist/typescript/module/features/pmProgress/shared/TreeNormalizer.d.ts +4 -0
- package/dist/typescript/module/features/pmProgress/shared/TreeNormalizer.d.ts.map +1 -1
- package/dist/typescript/module/features/uiMode/index.d.ts +1 -0
- package/dist/typescript/module/features/uiMode/index.d.ts.map +1 -1
- package/dist/typescript/module/features/uiMode/uiMode.helpers.d.ts +2 -0
- package/dist/typescript/module/features/uiMode/uiMode.helpers.d.ts.map +1 -1
- package/dist/typescript/module/index.d.ts +0 -1
- package/dist/typescript/module/index.d.ts.map +1 -1
- package/package.json +2 -5
- package/src/features/pmProgress/shared/TreeNormalizer.ts +5 -1
- package/src/features/uiMode/__tests__/getUIMode.test.ts +64 -0
- package/src/features/uiMode/index.ts +1 -0
- package/src/features/uiMode/uiMode.helpers.ts +16 -1
- package/src/i18n/.generated/schema.json +1 -9
- package/src/index.ts +0 -1
- package/dist/commonjs/features/profile/Profile.js +0 -90
- package/dist/commonjs/features/profile/Profile.js.map +0 -1
- package/dist/commonjs/features/profile/components/actions/ProfileActions.js +0 -67
- package/dist/commonjs/features/profile/components/actions/ProfileActions.js.map +0 -1
- package/dist/commonjs/features/profile/components/cards/ProfileCard.js +0 -57
- package/dist/commonjs/features/profile/components/cards/ProfileCard.js.map +0 -1
- package/dist/commonjs/features/profile/components/info/AccountInfoCard.js +0 -90
- package/dist/commonjs/features/profile/components/info/AccountInfoCard.js.map +0 -1
- package/dist/commonjs/features/profile/components/modals/JoinClassModal.js +0 -154
- package/dist/commonjs/features/profile/components/modals/JoinClassModal.js.map +0 -1
- package/dist/commonjs/features/profile/components/modals/LogoutConfirmModal.js +0 -61
- package/dist/commonjs/features/profile/components/modals/LogoutConfirmModal.js.map +0 -1
- package/dist/commonjs/features/profile/components/modals/TranslationLanguageModal.js +0 -126
- package/dist/commonjs/features/profile/components/modals/TranslationLanguageModal.js.map +0 -1
- package/dist/commonjs/features/profile/components/settings/LanguageSettingsCard.js +0 -22
- package/dist/commonjs/features/profile/components/settings/LanguageSettingsCard.js.map +0 -1
- package/dist/commonjs/features/profile/components/settings/PreferencesCard.js +0 -70
- package/dist/commonjs/features/profile/components/settings/PreferencesCard.js.map +0 -1
- package/dist/commonjs/features/profile/components/settings/SettingRow.js +0 -48
- package/dist/commonjs/features/profile/components/settings/SettingRow.js.map +0 -1
- package/dist/commonjs/features/profile/components/settings/TextSettingsCard.js +0 -74
- package/dist/commonjs/features/profile/components/settings/TextSettingsCard.js.map +0 -1
- package/dist/commonjs/features/profile/components/settings/TextSizeSlider.js +0 -116
- package/dist/commonjs/features/profile/components/settings/TextSizeSlider.js.map +0 -1
- package/dist/commonjs/features/profile/components/settings/TextToSpeechRow.js +0 -35
- package/dist/commonjs/features/profile/components/settings/TextToSpeechRow.js.map +0 -1
- package/dist/commonjs/features/profile/components/settings/TranslationLanguageRow.js +0 -60
- package/dist/commonjs/features/profile/components/settings/TranslationLanguageRow.js.map +0 -1
- package/dist/commonjs/features/profile/context/ProfileContext.js +0 -18
- package/dist/commonjs/features/profile/context/ProfileContext.js.map +0 -1
- package/dist/commonjs/features/profile/index.js +0 -80
- package/dist/commonjs/features/profile/index.js.map +0 -1
- package/dist/commonjs/features/profile/model/ProfileApi.js +0 -15
- package/dist/commonjs/features/profile/model/ProfileApi.js.map +0 -1
- package/dist/commonjs/features/profile/model/ProfileJoinClassModel.js +0 -60
- package/dist/commonjs/features/profile/model/ProfileJoinClassModel.js.map +0 -1
- package/dist/commonjs/features/profile/model/ProfileLanguageModel.js +0 -30
- package/dist/commonjs/features/profile/model/ProfileLanguageModel.js.map +0 -1
- package/dist/commonjs/features/profile/model/ProfileModel.js +0 -53
- package/dist/commonjs/features/profile/model/ProfileModel.js.map +0 -1
- package/dist/commonjs/features/profile/model/profileModal.types.js +0 -6
- package/dist/commonjs/features/profile/model/profileModal.types.js.map +0 -1
- package/dist/commonjs/features/profile/shared/JoinClassError.js +0 -16
- package/dist/commonjs/features/profile/shared/JoinClassError.js.map +0 -1
- package/dist/commonjs/features/profile/shared/profile.constants.js +0 -29
- package/dist/commonjs/features/profile/shared/profile.constants.js.map +0 -1
- package/dist/commonjs/features/profile/shared/profile.helpers.js +0 -40
- package/dist/commonjs/features/profile/shared/profile.helpers.js.map +0 -1
- package/dist/commonjs/features/profile/shared/profile.types.js +0 -6
- package/dist/commonjs/features/profile/shared/profile.types.js.map +0 -1
- package/dist/module/features/profile/Profile.js +0 -84
- package/dist/module/features/profile/Profile.js.map +0 -1
- package/dist/module/features/profile/components/actions/ProfileActions.js +0 -61
- package/dist/module/features/profile/components/actions/ProfileActions.js.map +0 -1
- package/dist/module/features/profile/components/cards/ProfileCard.js +0 -51
- package/dist/module/features/profile/components/cards/ProfileCard.js.map +0 -1
- package/dist/module/features/profile/components/info/AccountInfoCard.js +0 -84
- package/dist/module/features/profile/components/info/AccountInfoCard.js.map +0 -1
- package/dist/module/features/profile/components/modals/JoinClassModal.js +0 -147
- package/dist/module/features/profile/components/modals/JoinClassModal.js.map +0 -1
- package/dist/module/features/profile/components/modals/LogoutConfirmModal.js +0 -55
- package/dist/module/features/profile/components/modals/LogoutConfirmModal.js.map +0 -1
- package/dist/module/features/profile/components/modals/TranslationLanguageModal.js +0 -120
- package/dist/module/features/profile/components/modals/TranslationLanguageModal.js.map +0 -1
- package/dist/module/features/profile/components/settings/LanguageSettingsCard.js +0 -16
- package/dist/module/features/profile/components/settings/LanguageSettingsCard.js.map +0 -1
- package/dist/module/features/profile/components/settings/PreferencesCard.js +0 -64
- package/dist/module/features/profile/components/settings/PreferencesCard.js.map +0 -1
- package/dist/module/features/profile/components/settings/SettingRow.js +0 -42
- package/dist/module/features/profile/components/settings/SettingRow.js.map +0 -1
- package/dist/module/features/profile/components/settings/TextSettingsCard.js +0 -68
- package/dist/module/features/profile/components/settings/TextSettingsCard.js.map +0 -1
- package/dist/module/features/profile/components/settings/TextSizeSlider.js +0 -109
- package/dist/module/features/profile/components/settings/TextSizeSlider.js.map +0 -1
- package/dist/module/features/profile/components/settings/TextToSpeechRow.js +0 -29
- package/dist/module/features/profile/components/settings/TextToSpeechRow.js.map +0 -1
- package/dist/module/features/profile/components/settings/TranslationLanguageRow.js +0 -54
- package/dist/module/features/profile/components/settings/TranslationLanguageRow.js.map +0 -1
- package/dist/module/features/profile/context/ProfileContext.js +0 -13
- package/dist/module/features/profile/context/ProfileContext.js.map +0 -1
- package/dist/module/features/profile/index.js +0 -11
- package/dist/module/features/profile/index.js.map +0 -1
- package/dist/module/features/profile/model/ProfileApi.js +0 -10
- package/dist/module/features/profile/model/ProfileApi.js.map +0 -1
- package/dist/module/features/profile/model/ProfileJoinClassModel.js +0 -55
- package/dist/module/features/profile/model/ProfileJoinClassModel.js.map +0 -1
- package/dist/module/features/profile/model/ProfileLanguageModel.js +0 -25
- package/dist/module/features/profile/model/ProfileLanguageModel.js.map +0 -1
- package/dist/module/features/profile/model/ProfileModel.js +0 -48
- package/dist/module/features/profile/model/ProfileModel.js.map +0 -1
- package/dist/module/features/profile/model/profileModal.types.js +0 -4
- package/dist/module/features/profile/model/profileModal.types.js.map +0 -1
- package/dist/module/features/profile/shared/JoinClassError.js +0 -11
- package/dist/module/features/profile/shared/JoinClassError.js.map +0 -1
- package/dist/module/features/profile/shared/profile.constants.js +0 -25
- package/dist/module/features/profile/shared/profile.constants.js.map +0 -1
- package/dist/module/features/profile/shared/profile.helpers.js +0 -32
- package/dist/module/features/profile/shared/profile.helpers.js.map +0 -1
- package/dist/module/features/profile/shared/profile.types.js +0 -4
- package/dist/module/features/profile/shared/profile.types.js.map +0 -1
- package/dist/typescript/commonjs/features/profile/Profile.d.ts +0 -6
- package/dist/typescript/commonjs/features/profile/Profile.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/profile/__tests__/ProfileModel.test.d.ts +0 -2
- package/dist/typescript/commonjs/features/profile/__tests__/ProfileModel.test.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/profile/__tests__/profile.helpers.test.d.ts +0 -2
- package/dist/typescript/commonjs/features/profile/__tests__/profile.helpers.test.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/profile/components/actions/ProfileActions.d.ts +0 -3
- package/dist/typescript/commonjs/features/profile/components/actions/ProfileActions.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/profile/components/cards/ProfileCard.d.ts +0 -10
- package/dist/typescript/commonjs/features/profile/components/cards/ProfileCard.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/profile/components/info/AccountInfoCard.d.ts +0 -3
- package/dist/typescript/commonjs/features/profile/components/info/AccountInfoCard.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/profile/components/modals/JoinClassModal.d.ts +0 -4
- package/dist/typescript/commonjs/features/profile/components/modals/JoinClassModal.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/profile/components/modals/LogoutConfirmModal.d.ts +0 -4
- package/dist/typescript/commonjs/features/profile/components/modals/LogoutConfirmModal.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/profile/components/modals/TranslationLanguageModal.d.ts +0 -4
- package/dist/typescript/commonjs/features/profile/components/modals/TranslationLanguageModal.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/profile/components/settings/LanguageSettingsCard.d.ts +0 -3
- package/dist/typescript/commonjs/features/profile/components/settings/LanguageSettingsCard.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/profile/components/settings/PreferencesCard.d.ts +0 -3
- package/dist/typescript/commonjs/features/profile/components/settings/PreferencesCard.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/profile/components/settings/SettingRow.d.ts +0 -11
- package/dist/typescript/commonjs/features/profile/components/settings/SettingRow.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/profile/components/settings/TextSettingsCard.d.ts +0 -3
- package/dist/typescript/commonjs/features/profile/components/settings/TextSettingsCard.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/profile/components/settings/TextSizeSlider.d.ts +0 -8
- package/dist/typescript/commonjs/features/profile/components/settings/TextSizeSlider.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/profile/components/settings/TextToSpeechRow.d.ts +0 -3
- package/dist/typescript/commonjs/features/profile/components/settings/TextToSpeechRow.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/profile/components/settings/TranslationLanguageRow.d.ts +0 -3
- package/dist/typescript/commonjs/features/profile/components/settings/TranslationLanguageRow.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/profile/context/ProfileContext.d.ts +0 -13
- package/dist/typescript/commonjs/features/profile/context/ProfileContext.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/profile/index.d.ts +0 -12
- package/dist/typescript/commonjs/features/profile/index.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/profile/model/ProfileApi.d.ts +0 -11
- package/dist/typescript/commonjs/features/profile/model/ProfileApi.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/profile/model/ProfileJoinClassModel.d.ts +0 -14
- package/dist/typescript/commonjs/features/profile/model/ProfileJoinClassModel.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/profile/model/ProfileLanguageModel.d.ts +0 -13
- package/dist/typescript/commonjs/features/profile/model/ProfileLanguageModel.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/profile/model/ProfileModel.d.ts +0 -26
- package/dist/typescript/commonjs/features/profile/model/ProfileModel.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/profile/model/profileModal.types.d.ts +0 -14
- package/dist/typescript/commonjs/features/profile/model/profileModal.types.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/profile/shared/JoinClassError.d.ts +0 -5
- package/dist/typescript/commonjs/features/profile/shared/JoinClassError.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/profile/shared/profile.constants.d.ts +0 -20
- package/dist/typescript/commonjs/features/profile/shared/profile.constants.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/profile/shared/profile.helpers.d.ts +0 -6
- package/dist/typescript/commonjs/features/profile/shared/profile.helpers.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/profile/shared/profile.types.d.ts +0 -27
- package/dist/typescript/commonjs/features/profile/shared/profile.types.d.ts.map +0 -1
- package/dist/typescript/module/features/profile/Profile.d.ts +0 -6
- package/dist/typescript/module/features/profile/Profile.d.ts.map +0 -1
- package/dist/typescript/module/features/profile/__tests__/ProfileModel.test.d.ts +0 -2
- package/dist/typescript/module/features/profile/__tests__/ProfileModel.test.d.ts.map +0 -1
- package/dist/typescript/module/features/profile/__tests__/profile.helpers.test.d.ts +0 -2
- package/dist/typescript/module/features/profile/__tests__/profile.helpers.test.d.ts.map +0 -1
- package/dist/typescript/module/features/profile/components/actions/ProfileActions.d.ts +0 -3
- package/dist/typescript/module/features/profile/components/actions/ProfileActions.d.ts.map +0 -1
- package/dist/typescript/module/features/profile/components/cards/ProfileCard.d.ts +0 -10
- package/dist/typescript/module/features/profile/components/cards/ProfileCard.d.ts.map +0 -1
- package/dist/typescript/module/features/profile/components/info/AccountInfoCard.d.ts +0 -3
- package/dist/typescript/module/features/profile/components/info/AccountInfoCard.d.ts.map +0 -1
- package/dist/typescript/module/features/profile/components/modals/JoinClassModal.d.ts +0 -4
- package/dist/typescript/module/features/profile/components/modals/JoinClassModal.d.ts.map +0 -1
- package/dist/typescript/module/features/profile/components/modals/LogoutConfirmModal.d.ts +0 -4
- package/dist/typescript/module/features/profile/components/modals/LogoutConfirmModal.d.ts.map +0 -1
- package/dist/typescript/module/features/profile/components/modals/TranslationLanguageModal.d.ts +0 -4
- package/dist/typescript/module/features/profile/components/modals/TranslationLanguageModal.d.ts.map +0 -1
- package/dist/typescript/module/features/profile/components/settings/LanguageSettingsCard.d.ts +0 -3
- package/dist/typescript/module/features/profile/components/settings/LanguageSettingsCard.d.ts.map +0 -1
- package/dist/typescript/module/features/profile/components/settings/PreferencesCard.d.ts +0 -3
- package/dist/typescript/module/features/profile/components/settings/PreferencesCard.d.ts.map +0 -1
- package/dist/typescript/module/features/profile/components/settings/SettingRow.d.ts +0 -11
- package/dist/typescript/module/features/profile/components/settings/SettingRow.d.ts.map +0 -1
- package/dist/typescript/module/features/profile/components/settings/TextSettingsCard.d.ts +0 -3
- package/dist/typescript/module/features/profile/components/settings/TextSettingsCard.d.ts.map +0 -1
- package/dist/typescript/module/features/profile/components/settings/TextSizeSlider.d.ts +0 -8
- package/dist/typescript/module/features/profile/components/settings/TextSizeSlider.d.ts.map +0 -1
- package/dist/typescript/module/features/profile/components/settings/TextToSpeechRow.d.ts +0 -3
- package/dist/typescript/module/features/profile/components/settings/TextToSpeechRow.d.ts.map +0 -1
- package/dist/typescript/module/features/profile/components/settings/TranslationLanguageRow.d.ts +0 -3
- package/dist/typescript/module/features/profile/components/settings/TranslationLanguageRow.d.ts.map +0 -1
- package/dist/typescript/module/features/profile/context/ProfileContext.d.ts +0 -13
- package/dist/typescript/module/features/profile/context/ProfileContext.d.ts.map +0 -1
- package/dist/typescript/module/features/profile/index.d.ts +0 -12
- package/dist/typescript/module/features/profile/index.d.ts.map +0 -1
- package/dist/typescript/module/features/profile/model/ProfileApi.d.ts +0 -11
- package/dist/typescript/module/features/profile/model/ProfileApi.d.ts.map +0 -1
- package/dist/typescript/module/features/profile/model/ProfileJoinClassModel.d.ts +0 -14
- package/dist/typescript/module/features/profile/model/ProfileJoinClassModel.d.ts.map +0 -1
- package/dist/typescript/module/features/profile/model/ProfileLanguageModel.d.ts +0 -13
- package/dist/typescript/module/features/profile/model/ProfileLanguageModel.d.ts.map +0 -1
- package/dist/typescript/module/features/profile/model/ProfileModel.d.ts +0 -26
- package/dist/typescript/module/features/profile/model/ProfileModel.d.ts.map +0 -1
- package/dist/typescript/module/features/profile/model/profileModal.types.d.ts +0 -14
- package/dist/typescript/module/features/profile/model/profileModal.types.d.ts.map +0 -1
- package/dist/typescript/module/features/profile/shared/JoinClassError.d.ts +0 -5
- package/dist/typescript/module/features/profile/shared/JoinClassError.d.ts.map +0 -1
- package/dist/typescript/module/features/profile/shared/profile.constants.d.ts +0 -20
- package/dist/typescript/module/features/profile/shared/profile.constants.d.ts.map +0 -1
- package/dist/typescript/module/features/profile/shared/profile.helpers.d.ts +0 -6
- package/dist/typescript/module/features/profile/shared/profile.helpers.d.ts.map +0 -1
- package/dist/typescript/module/features/profile/shared/profile.types.d.ts +0 -27
- package/dist/typescript/module/features/profile/shared/profile.types.d.ts.map +0 -1
- package/src/features/profile/Profile.tsx +0 -83
- package/src/features/profile/__tests__/ProfileModel.test.ts +0 -99
- package/src/features/profile/__tests__/profile.helpers.test.ts +0 -57
- package/src/features/profile/components/actions/ProfileActions.tsx +0 -65
- package/src/features/profile/components/cards/ProfileCard.tsx +0 -53
- package/src/features/profile/components/info/AccountInfoCard.tsx +0 -73
- package/src/features/profile/components/modals/JoinClassModal.tsx +0 -145
- package/src/features/profile/components/modals/LogoutConfirmModal.tsx +0 -64
- package/src/features/profile/components/modals/TranslationLanguageModal.tsx +0 -124
- package/src/features/profile/components/settings/LanguageSettingsCard.tsx +0 -16
- package/src/features/profile/components/settings/PreferencesCard.tsx +0 -68
- package/src/features/profile/components/settings/SettingRow.tsx +0 -42
- package/src/features/profile/components/settings/TextSettingsCard.tsx +0 -61
- package/src/features/profile/components/settings/TextSizeSlider.tsx +0 -110
- package/src/features/profile/components/settings/TextToSpeechRow.tsx +0 -24
- package/src/features/profile/components/settings/TranslationLanguageRow.tsx +0 -58
- package/src/features/profile/context/ProfileContext.tsx +0 -24
- package/src/features/profile/index.ts +0 -11
- package/src/features/profile/model/ProfileApi.ts +0 -23
- package/src/features/profile/model/ProfileJoinClassModel.ts +0 -58
- package/src/features/profile/model/ProfileLanguageModel.ts +0 -26
- package/src/features/profile/model/ProfileModel.ts +0 -57
- package/src/features/profile/model/profileModal.types.ts +0 -16
- package/src/features/profile/shared/JoinClassError.ts +0 -7
- package/src/features/profile/shared/profile.constants.ts +0 -23
- package/src/features/profile/shared/profile.helpers.ts +0 -36
- package/src/features/profile/shared/profile.types.ts +0 -34
|
@@ -56,20 +56,13 @@
|
|
|
56
56
|
},
|
|
57
57
|
"profile": {
|
|
58
58
|
"accountInfo": "Account info",
|
|
59
|
-
"cancel": "Cancel",
|
|
60
59
|
"changePasswordNote": "Ask your teacher if you need to change password",
|
|
61
60
|
"fullName": "Full name",
|
|
62
61
|
"joinClassButton": "Join new class",
|
|
63
|
-
"joinClassErrorAlreadyJoined": "You have already joined this class",
|
|
64
|
-
"joinClassErrorDefault": "Default error! Code not found",
|
|
65
|
-
"joinClassErrorNotFound": "The class doesn’t exist, try another class code",
|
|
66
|
-
"joinClassErrorOtherDistrict": "You can only join classes in your district",
|
|
67
|
-
"joinClassSuccess": "You have joined class {{className}}",
|
|
68
62
|
"joinClassTitle": "Write your new class code",
|
|
69
63
|
"joinNewClass": "Join a new class",
|
|
70
64
|
"languageSettings": "Language settings",
|
|
71
65
|
"logOut": "Log out",
|
|
72
|
-
"logOutConfirmMessage": "Are you sure you want to log out?",
|
|
73
66
|
"noLanguage": "No language",
|
|
74
67
|
"preferences": "Preferences",
|
|
75
68
|
"school": "School",
|
|
@@ -81,8 +74,7 @@
|
|
|
81
74
|
"textToSpeech": "Text-to-speech",
|
|
82
75
|
"translationLanguage": "Translation language",
|
|
83
76
|
"translationModalTitle": "Translation language",
|
|
84
|
-
"username": "Username"
|
|
85
|
-
"yes": "Yes"
|
|
77
|
+
"username": "Username"
|
|
86
78
|
},
|
|
87
79
|
"student": {
|
|
88
80
|
"fluency": {
|
package/src/index.ts
CHANGED
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.Profile = void 0;
|
|
7
|
-
var _react = _interopRequireDefault(require("react"));
|
|
8
|
-
var _reactNative = require("react-native");
|
|
9
|
-
var _reactNativeUi = require("@magmamath/react-native-ui");
|
|
10
|
-
var _commonConstants = require("../../shared/common.constants.js");
|
|
11
|
-
var _ProfileActions = require("./components/actions/ProfileActions.js");
|
|
12
|
-
var _AccountInfoCard = require("./components/info/AccountInfoCard.js");
|
|
13
|
-
var _LanguageSettingsCard = require("./components/settings/LanguageSettingsCard.js");
|
|
14
|
-
var _PreferencesCard = require("./components/settings/PreferencesCard.js");
|
|
15
|
-
var _TextSettingsCard = require("./components/settings/TextSettingsCard.js");
|
|
16
|
-
var _ProfileContext = require("./context/ProfileContext.js");
|
|
17
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
18
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
19
|
-
const TWO_COLUMN_BREAKPOINT = 768;
|
|
20
|
-
const COLUMN_MAX_WIDTH = 560;
|
|
21
|
-
const Profile = props => {
|
|
22
|
-
const {
|
|
23
|
-
showSolveMode,
|
|
24
|
-
versionInfo
|
|
25
|
-
} = props;
|
|
26
|
-
const {
|
|
27
|
-
width
|
|
28
|
-
} = (0, _reactNative.useWindowDimensions)();
|
|
29
|
-
const isTwoColumn = width >= TWO_COLUMN_BREAKPOINT;
|
|
30
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_ProfileContext.ProfileProvider, {
|
|
31
|
-
value: props,
|
|
32
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.ScrollView, {
|
|
33
|
-
style: styles.container,
|
|
34
|
-
contentContainerStyle: styles.scroll,
|
|
35
|
-
scrollEnabled: _commonConstants.isWeb,
|
|
36
|
-
showsVerticalScrollIndicator: _commonConstants.isWeb,
|
|
37
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
38
|
-
style: [styles.columns, !isTwoColumn && styles.columnsStacked],
|
|
39
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
40
|
-
style: [styles.column, isTwoColumn ? styles.columnWide : styles.columnStacked],
|
|
41
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_LanguageSettingsCard.LanguageSettingsCard, {}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_TextSettingsCard.TextSettingsCard, {})]
|
|
42
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
43
|
-
style: [styles.column, isTwoColumn ? styles.columnWide : styles.columnStacked],
|
|
44
|
-
children: [showSolveMode && /*#__PURE__*/(0, _jsxRuntime.jsx)(_PreferencesCard.PreferencesCard, {}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_AccountInfoCard.AccountInfoCard, {})]
|
|
45
|
-
})]
|
|
46
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_ProfileActions.ProfileActions, {}), versionInfo ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
47
|
-
style: styles.version,
|
|
48
|
-
children: versionInfo
|
|
49
|
-
}) : null]
|
|
50
|
-
})
|
|
51
|
-
});
|
|
52
|
-
};
|
|
53
|
-
exports.Profile = Profile;
|
|
54
|
-
const styles = _reactNative.StyleSheet.create({
|
|
55
|
-
container: {
|
|
56
|
-
backgroundColor: _reactNativeUi.COLORS.NEUTRAL_3,
|
|
57
|
-
flex: 1
|
|
58
|
-
},
|
|
59
|
-
scroll: {
|
|
60
|
-
flexGrow: 1,
|
|
61
|
-
gap: _reactNativeUi.SPACING['800'],
|
|
62
|
-
paddingHorizontal: _reactNativeUi.SPACING['800'],
|
|
63
|
-
paddingVertical: _reactNativeUi.SPACING['600']
|
|
64
|
-
},
|
|
65
|
-
columns: {
|
|
66
|
-
flexDirection: 'row',
|
|
67
|
-
gap: _reactNativeUi.SPACING['600'],
|
|
68
|
-
justifyContent: 'center',
|
|
69
|
-
width: '100%'
|
|
70
|
-
},
|
|
71
|
-
columnsStacked: {
|
|
72
|
-
alignItems: 'center',
|
|
73
|
-
flexDirection: 'column'
|
|
74
|
-
},
|
|
75
|
-
column: {
|
|
76
|
-
gap: _reactNativeUi.SPACING['600'],
|
|
77
|
-
maxWidth: COLUMN_MAX_WIDTH
|
|
78
|
-
},
|
|
79
|
-
columnWide: {
|
|
80
|
-
flex: 1
|
|
81
|
-
},
|
|
82
|
-
columnStacked: {
|
|
83
|
-
width: '100%'
|
|
84
|
-
},
|
|
85
|
-
version: {
|
|
86
|
-
alignSelf: 'flex-end',
|
|
87
|
-
marginTop: 'auto'
|
|
88
|
-
}
|
|
89
|
-
});
|
|
90
|
-
//# sourceMappingURL=Profile.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_reactNativeUi","_commonConstants","_ProfileActions","_AccountInfoCard","_LanguageSettingsCard","_PreferencesCard","_TextSettingsCard","_ProfileContext","_jsxRuntime","e","__esModule","default","TWO_COLUMN_BREAKPOINT","COLUMN_MAX_WIDTH","Profile","props","showSolveMode","versionInfo","width","useWindowDimensions","isTwoColumn","jsx","ProfileProvider","value","children","jsxs","ScrollView","style","styles","container","contentContainerStyle","scroll","scrollEnabled","isWeb","showsVerticalScrollIndicator","View","columns","columnsStacked","column","columnWide","columnStacked","LanguageSettingsCard","TextSettingsCard","PreferencesCard","AccountInfoCard","ProfileActions","version","exports","StyleSheet","create","backgroundColor","COLORS","NEUTRAL_3","flex","flexGrow","gap","SPACING","paddingHorizontal","paddingVertical","flexDirection","justifyContent","alignItems","maxWidth","alignSelf","marginTop"],"sourceRoot":"../../../../src","sources":["features/profile/Profile.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,cAAA,GAAAF,OAAA;AAEA,IAAAG,gBAAA,GAAAH,OAAA;AACA,IAAAI,eAAA,GAAAJ,OAAA;AACA,IAAAK,gBAAA,GAAAL,OAAA;AACA,IAAAM,qBAAA,GAAAN,OAAA;AACA,IAAAO,gBAAA,GAAAP,OAAA;AACA,IAAAQ,iBAAA,GAAAR,OAAA;AACA,IAAAS,eAAA,GAAAT,OAAA;AAAoF,IAAAU,WAAA,GAAAV,OAAA;AAAA,SAAAD,uBAAAY,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAIpF,MAAMG,qBAAqB,GAAG,GAAG;AACjC,MAAMC,gBAAgB,GAAG,GA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IAAI,EAAE;EACR,CAAC;EACDb,aAAa,EAAE;IACbtB,KAAK,EAAE;EACT,CAAC;EACD4B,OAAO,EAAE;IACPiB,SAAS,EAAE,UAAU;IACrBC,SAAS,EAAE;EACb;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.ProfileActions = void 0;
|
|
7
|
-
var _react = _interopRequireDefault(require("react"));
|
|
8
|
-
var _reactNative = require("react-native");
|
|
9
|
-
var _reactNativeUi = require("@magmamath/react-native-ui");
|
|
10
|
-
var _i18n = require("../../../../i18n/i18n.js");
|
|
11
|
-
var _ProfileContext = require("../../context/ProfileContext.js");
|
|
12
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
13
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
14
|
-
const ProfileActions = () => {
|
|
15
|
-
const t = (0, _i18n.useText)();
|
|
16
|
-
const {
|
|
17
|
-
onLogout,
|
|
18
|
-
onOpenJoinClass
|
|
19
|
-
} = (0, _ProfileContext.useProfile)();
|
|
20
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
21
|
-
style: styles.container,
|
|
22
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
23
|
-
style: styles.leftHalf,
|
|
24
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeUi.ReanimatedButton, {
|
|
25
|
-
variant: _reactNativeUi.ButtonVariant.SECONDARY,
|
|
26
|
-
colorScheme: _reactNativeUi.ButtonColor.WHITE,
|
|
27
|
-
size: _reactNativeUi.ButtonSize.LARGE,
|
|
28
|
-
onPress: onOpenJoinClass,
|
|
29
|
-
style: buttonStyle,
|
|
30
|
-
children: t('profile.joinNewClass')
|
|
31
|
-
})
|
|
32
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
33
|
-
style: styles.rightHalf,
|
|
34
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeUi.ReanimatedButton, {
|
|
35
|
-
variant: _reactNativeUi.ButtonVariant.PRIMARY,
|
|
36
|
-
colorScheme: _reactNativeUi.ButtonColor.ORANGE,
|
|
37
|
-
size: _reactNativeUi.ButtonSize.LARGE,
|
|
38
|
-
onPress: onLogout,
|
|
39
|
-
style: buttonStyle,
|
|
40
|
-
children: t('profile.logOut')
|
|
41
|
-
})
|
|
42
|
-
})]
|
|
43
|
-
});
|
|
44
|
-
};
|
|
45
|
-
exports.ProfileActions = ProfileActions;
|
|
46
|
-
const styles = _reactNative.StyleSheet.create({
|
|
47
|
-
container: {
|
|
48
|
-
flexDirection: 'row',
|
|
49
|
-
gap: _reactNativeUi.SPACING['600'],
|
|
50
|
-
width: '100%'
|
|
51
|
-
},
|
|
52
|
-
leftHalf: {
|
|
53
|
-
alignItems: 'flex-end',
|
|
54
|
-
flex: 1
|
|
55
|
-
},
|
|
56
|
-
rightHalf: {
|
|
57
|
-
alignItems: 'flex-start',
|
|
58
|
-
flex: 1
|
|
59
|
-
},
|
|
60
|
-
text: {
|
|
61
|
-
textTransform: 'uppercase'
|
|
62
|
-
}
|
|
63
|
-
});
|
|
64
|
-
const buttonStyle = {
|
|
65
|
-
text: styles.text
|
|
66
|
-
};
|
|
67
|
-
//# sourceMappingURL=ProfileActions.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_reactNativeUi","_i18n","_ProfileContext","_jsxRuntime","e","__esModule","default","ProfileActions","t","useText","onLogout","onOpenJoinClass","useProfile","jsxs","View","style","styles","container","children","jsx","leftHalf","ReanimatedButton","variant","ButtonVariant","SECONDARY","colorScheme","ButtonColor","WHITE","size","ButtonSize","LARGE","onPress","buttonStyle","rightHalf","PRIMARY","ORANGE","exports","StyleSheet","create","flexDirection","gap","SPACING","width","alignItems","flex","text","textTransform"],"sourceRoot":"../../../../../../src","sources":["features/profile/components/actions/ProfileActions.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,cAAA,GAAAF,OAAA;AAQA,IAAAG,KAAA,GAAAH,OAAA;AACA,IAAAI,eAAA,GAAAJ,OAAA;AAAyD,IAAAK,WAAA,GAAAL,OAAA;AAAA,SAAAD,uBAAAO,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAElD,MAAMG,cAAc,GAAGA,CAAA,KAAM;EAClC,MAAMC,CAAC,GAAG,IAAAC,aAAO,EAAC,CAAC;EACnB,MAAM;IAAEC,QAAQ;IAAEC;EAAgB,CAAC,GAAG,IAAAC,0BAAU,EAAC,CAAC;EAElD,oBACE,IAAAT,WAAA,CAAAU,IAAA,EAACd,YAAA,CAAAe,IAAI;IAACC,KAAK,EAAEC,MAAM,CAACC,SAAU;IAAAC,QAAA,gBAC5B,IAAAf,WAAA,CAAAgB,GAAA,EAACpB,YAAA,CAAAe,IAAI;MAACC,KAAK,EAAEC,MAAM,CAACI,QAAS;MAAAF,QAAA,eAC3B,IAAAf,WAAA,CAAAgB,GAAA,EAACnB,cAAA,CAAAqB,gBAAgB;QACfC,OAAO,EAAEC,4BAAa,CAACC,SAAU;QACjCC,WAAW,EAAEC,0BAAW,CAACC,KAAM;QAC/BC,IAAI,EAAEC,yBAAU,CAACC,KAAM;QACvBC,OAAO,EAAEpB,eAAgB;QACzBI,KAAK,EAAEiB,WAAY;QAAAd,QAAA,EAElBV,CAAC,CAAC,sBAAsB;MAAC,CACV;IAAC,CACf,CAAC,eACP,IAAAL,WAAA,CAAAgB,GAAA,EAACpB,YAAA,CAAAe,IAAI;MAACC,KAAK,EAAEC,MAAM,CAACiB,SAAU;MAAAf,QAAA,eAC5B,IAAAf,WAAA,CAAAgB,GAAA,EAACnB,cAAA,CAAAqB,gBAAgB;QACfC,OAAO,EAAEC,4BAAa,CAACW,OAAQ;QAC/BT,WAAW,EAAEC,0BAAW,CAACS,MAAO;QAChCP,IAAI,EAAEC,yBAAU,CAACC,KAAM;QACvBC,OAAO,EAAErB,QAAS;QAClBK,KAAK,EAAEiB,WAAY;QAAAd,QAAA,EAElBV,CAAC,CAAC,gBAAgB;MAAC,CACJ;IAAC,CACf,CAAC;EAAA,CACH,CAAC;AAEX,CAAC;AAAA4B,OAAA,CAAA7B,cAAA,GAAAA,cAAA;AAED,MAAMS,MAAM,GAAGqB,uBAAU,CAACC,MAAM,CAAC;EAC/BrB,SAAS,EAAE;IACTsB,aAAa,EAAE,KAAK;IACpBC,GAAG,EAAEC,sBAAO,CAAC,KAAK,CAAC;IACnBC,KAAK,EAAE;EACT,CAAC;EACDtB,QAAQ,EAAE;IACRuB,UAAU,EAAE,UAAU;IACtBC,IAAI,EAAE;EACR,CAAC;EACDX,SAAS,EAAE;IACTU,UAAU,EAAE,YAAY;IACxBC,IAAI,EAAE;EACR,CAAC;EACDC,IAAI,EAAE;IACJC,aAAa,EAAE;EACjB;AACF,CAAC,CAAC;AAEF,MAAMd,WAAW,GAAG;EAAEa,IAAI,EAAE7B,MAAM,CAAC6B;AAAK,CAAC","ignoreList":[]}
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.ProfileCard = void 0;
|
|
7
|
-
var _react = _interopRequireDefault(require("react"));
|
|
8
|
-
var _reactNative = require("react-native");
|
|
9
|
-
var _reactNativeUi = require("@magmamath/react-native-ui");
|
|
10
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
11
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
12
|
-
const ProfileCard = ({
|
|
13
|
-
title,
|
|
14
|
-
children,
|
|
15
|
-
style
|
|
16
|
-
}) => /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
17
|
-
style: [styles.card, style],
|
|
18
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
19
|
-
style: styles.header,
|
|
20
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeUi.Typography, {
|
|
21
|
-
variant: _reactNativeUi.HeadingVariants.H9,
|
|
22
|
-
style: styles.title,
|
|
23
|
-
children: title
|
|
24
|
-
})
|
|
25
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
26
|
-
style: styles.divider
|
|
27
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
28
|
-
style: styles.body,
|
|
29
|
-
children: children
|
|
30
|
-
})]
|
|
31
|
-
});
|
|
32
|
-
exports.ProfileCard = ProfileCard;
|
|
33
|
-
const styles = _reactNative.StyleSheet.create({
|
|
34
|
-
card: {
|
|
35
|
-
backgroundColor: _reactNativeUi.COLORS.NEUTRAL_1,
|
|
36
|
-
borderRadius: _reactNativeUi.BORDER_RADIUS['400'],
|
|
37
|
-
padding: _reactNativeUi.SPACING['400'],
|
|
38
|
-
..._reactNativeUi.SHADOWS['1']
|
|
39
|
-
},
|
|
40
|
-
header: {
|
|
41
|
-
paddingLeft: _reactNativeUi.SPACING['200']
|
|
42
|
-
},
|
|
43
|
-
title: {
|
|
44
|
-
color: _reactNativeUi.COLORS.NEUTRAL_7
|
|
45
|
-
},
|
|
46
|
-
divider: {
|
|
47
|
-
backgroundColor: _reactNativeUi.COLORS.NEUTRAL_3,
|
|
48
|
-
height: 1,
|
|
49
|
-
marginHorizontal: _reactNativeUi.SPACING['100'],
|
|
50
|
-
marginVertical: _reactNativeUi.SPACING['200']
|
|
51
|
-
},
|
|
52
|
-
body: {
|
|
53
|
-
gap: _reactNativeUi.SPACING['400'],
|
|
54
|
-
justifyContent: 'center'
|
|
55
|
-
}
|
|
56
|
-
});
|
|
57
|
-
//# sourceMappingURL=ProfileCard.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_reactNativeUi","_jsxRuntime","e","__esModule","default","ProfileCard","title","children","style","jsxs","View","styles","card","jsx","header","Typography","variant","HeadingVariants","H9","divider","body","exports","StyleSheet","create","backgroundColor","COLORS","NEUTRAL_1","borderRadius","BORDER_RADIUS","padding","SPACING","SHADOWS","paddingLeft","color","NEUTRAL_7","NEUTRAL_3","height","marginHorizontal","marginVertical","gap","justifyContent"],"sourceRoot":"../../../../../../src","sources":["features/profile/components/cards/ProfileCard.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,cAAA,GAAAF,OAAA;AAOmC,IAAAG,WAAA,GAAAH,OAAA;AAAA,SAAAD,uBAAAK,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAQ5B,MAAMG,WAAW,GAAGA,CAAC;EAAEC,KAAK;EAAEC,QAAQ;EAAEC;AAAwB,CAAC,kBACtE,IAAAP,WAAA,CAAAQ,IAAA,EAACV,YAAA,CAAAW,IAAI;EAACF,KAAK,EAAE,CAACG,MAAM,CAACC,IAAI,EAAEJ,KAAK,CAAE;EAAAD,QAAA,gBAChC,IAAAN,WAAA,CAAAY,GAAA,EAACd,YAAA,CAAAW,IAAI;IAACF,KAAK,EAAEG,MAAM,CAACG,MAAO;IAAAP,QAAA,eACzB,IAAAN,WAAA,CAAAY,GAAA,EAACb,cAAA,CAAAe,UAAU;MAACC,OAAO,EAAEC,8BAAe,CAACC,EAAG;MAACV,KAAK,EAAEG,MAAM,CAACL,KAAM;MAAAC,QAAA,EAC1DD;IAAK,CACI;EAAC,CACT,CAAC,eACP,IAAAL,WAAA,CAAAY,GAAA,EAACd,YAAA,CAAAW,IAAI;IAACF,KAAK,EAAEG,MAAM,CAACQ;EAAQ,CAAE,CAAC,eAC/B,IAAAlB,WAAA,CAAAY,GAAA,EAACd,YAAA,CAAAW,IAAI;IAACF,KAAK,EAAEG,MAAM,CAACS,IAAK;IAAAb,QAAA,EAAEA;EAAQ,CAAO,CAAC;AAAA,CACvC,CACP;AAAAc,OAAA,CAAAhB,WAAA,GAAAA,WAAA;AAED,MAAMM,MAAM,GAAGW,uBAAU,CAACC,MAAM,CAAC;EAC/BX,IAAI,EAAE;IACJY,eAAe,EAAEC,qBAAM,CAACC,SAAS;IACjCC,YAAY,EAAEC,4BAAa,CAAC,KAAK,CAAC;IAClCC,OAAO,EAAEC,sBAAO,CAAC,KAAK,CAAC;IACvB,GAAGC,sBAAO,CAAC,GAAG;EAChB,CAAC;EACDjB,MAAM,EAAE;IACNkB,WAAW,EAAEF,sBAAO,CAAC,KAAK;EAC5B,CAAC;EACDxB,KAAK,EAAE;IACL2B,KAAK,EAAER,qBAAM,CAACS;EAChB,CAAC;EACDf,OAAO,EAAE;IACPK,eAAe,EAAEC,qBAAM,CAACU,SAAS;IACjCC,MAAM,EAAE,CAAC;IACTC,gBAAgB,EAAEP,sBAAO,CAAC,KAAK,CAAC;IAChCQ,cAAc,EAAER,sBAAO,CAAC,KAAK;EAC/B,CAAC;EACDV,IAAI,EAAE;IACJmB,GAAG,EAAET,sBAAO,CAAC,KAAK,CAAC;IACnBU,cAAc,EAAE;EAClB;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.AccountInfoCard = void 0;
|
|
7
|
-
var _react = _interopRequireDefault(require("react"));
|
|
8
|
-
var _effectorReact = require("effector-react");
|
|
9
|
-
var _reactNative = require("react-native");
|
|
10
|
-
var _reactNativeUi = require("@magmamath/react-native-ui");
|
|
11
|
-
var _i18n = require("../../../../i18n/i18n.js");
|
|
12
|
-
var _ProfileContext = require("../../context/ProfileContext.js");
|
|
13
|
-
var _ProfileCard = require("../cards/ProfileCard.js");
|
|
14
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
15
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
16
|
-
const NOTE_ICON_SIZE = 20;
|
|
17
|
-
const InfoField = ({
|
|
18
|
-
label,
|
|
19
|
-
value
|
|
20
|
-
}) => /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
21
|
-
style: styles.field,
|
|
22
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeUi.Typography, {
|
|
23
|
-
variant: _reactNativeUi.HeadingVariants.H8,
|
|
24
|
-
style: styles.label,
|
|
25
|
-
children: label
|
|
26
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeUi.Typography, {
|
|
27
|
-
variant: _reactNativeUi.HeadingVariants.H6,
|
|
28
|
-
style: styles.value,
|
|
29
|
-
children: value
|
|
30
|
-
})]
|
|
31
|
-
});
|
|
32
|
-
const AccountInfoCard = () => {
|
|
33
|
-
const t = (0, _i18n.useText)();
|
|
34
|
-
const {
|
|
35
|
-
model
|
|
36
|
-
} = (0, _ProfileContext.useProfile)();
|
|
37
|
-
const user = (0, _effectorReact.useUnit)(model.$user);
|
|
38
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_ProfileCard.ProfileCard, {
|
|
39
|
-
title: t('profile.accountInfo'),
|
|
40
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(InfoField, {
|
|
41
|
-
label: t('profile.fullName'),
|
|
42
|
-
value: user?.fullName ?? ''
|
|
43
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(InfoField, {
|
|
44
|
-
label: t('profile.username'),
|
|
45
|
-
value: user?.username ?? ''
|
|
46
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(InfoField, {
|
|
47
|
-
label: t('profile.school'),
|
|
48
|
-
value: user?.schoolName ?? ''
|
|
49
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
50
|
-
style: styles.noteDivider
|
|
51
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
52
|
-
style: styles.note,
|
|
53
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeUi.InfoIcon, {
|
|
54
|
-
size: NOTE_ICON_SIZE,
|
|
55
|
-
color: _reactNativeUi.COLORS.NEUTRAL_7
|
|
56
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeUi.Typography, {
|
|
57
|
-
variant: _reactNativeUi.HeadingVariants.H8,
|
|
58
|
-
style: styles.noteText,
|
|
59
|
-
children: t('profile.changePasswordNote')
|
|
60
|
-
})]
|
|
61
|
-
})]
|
|
62
|
-
});
|
|
63
|
-
};
|
|
64
|
-
exports.AccountInfoCard = AccountInfoCard;
|
|
65
|
-
const styles = _reactNative.StyleSheet.create({
|
|
66
|
-
field: {
|
|
67
|
-
gap: _reactNativeUi.SPACING['100']
|
|
68
|
-
},
|
|
69
|
-
label: {
|
|
70
|
-
color: _reactNativeUi.COLORS.NEUTRAL_7
|
|
71
|
-
},
|
|
72
|
-
value: {
|
|
73
|
-
color: _reactNativeUi.COLORS.NEUTRAL_9
|
|
74
|
-
},
|
|
75
|
-
noteDivider: {
|
|
76
|
-
backgroundColor: _reactNativeUi.COLORS.NEUTRAL_3,
|
|
77
|
-
height: 1,
|
|
78
|
-
marginHorizontal: _reactNativeUi.SPACING['100']
|
|
79
|
-
},
|
|
80
|
-
note: {
|
|
81
|
-
alignItems: 'center',
|
|
82
|
-
flexDirection: 'row',
|
|
83
|
-
gap: _reactNativeUi.SPACING['200']
|
|
84
|
-
},
|
|
85
|
-
noteText: {
|
|
86
|
-
color: _reactNativeUi.COLORS.NEUTRAL_7,
|
|
87
|
-
flexShrink: 1
|
|
88
|
-
}
|
|
89
|
-
});
|
|
90
|
-
//# sourceMappingURL=AccountInfoCard.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireDefault","require","_effectorReact","_reactNative","_reactNativeUi","_i18n","_ProfileContext","_ProfileCard","_jsxRuntime","e","__esModule","default","NOTE_ICON_SIZE","InfoField","label","value","jsxs","View","style","styles","field","children","jsx","Typography","variant","HeadingVariants","H8","H6","AccountInfoCard","t","useText","model","useProfile","user","useUnit","$user","ProfileCard","title","fullName","username","schoolName","noteDivider","note","InfoIcon","size","color","COLORS","NEUTRAL_7","noteText","exports","StyleSheet","create","gap","SPACING","NEUTRAL_9","backgroundColor","NEUTRAL_3","height","marginHorizontal","alignItems","flexDirection","flexShrink"],"sourceRoot":"../../../../../../src","sources":["features/profile/components/info/AccountInfoCard.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,cAAA,GAAAD,OAAA;AACA,IAAAE,YAAA,GAAAF,OAAA;AACA,IAAAG,cAAA,GAAAH,OAAA;AAEA,IAAAI,KAAA,GAAAJ,OAAA;AACA,IAAAK,eAAA,GAAAL,OAAA;AACA,IAAAM,YAAA,GAAAN,OAAA;AAAkD,IAAAO,WAAA,GAAAP,OAAA;AAAA,SAAAD,uBAAAS,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAElD,MAAMG,cAAc,GAAG,EAAE;AAOzB,MAAMC,SAAS,GAAGA,CAAC;EAAEC,KAAK;EAAEC;AAAsB,CAAC,kBACjD,IAAAP,WAAA,CAAAQ,IAAA,EAACb,YAAA,CAAAc,IAAI;EAACC,KAAK,EAAEC,MAAM,CAACC,KAAM;EAAAC,Q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
|
|
@@ -1,154 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.JoinClassModal = void 0;
|
|
7
|
-
var _react = _interopRequireWildcard(require("react"));
|
|
8
|
-
var _reactNative = require("react-native");
|
|
9
|
-
var _effectorReact = require("effector-react");
|
|
10
|
-
var _reactNativeConfirmationCodeField = require("react-native-confirmation-code-field");
|
|
11
|
-
var _reactNativeUi = require("@magmamath/react-native-ui");
|
|
12
|
-
var _i18n = require("../../../../i18n/i18n.js");
|
|
13
|
-
var _profileConstants = require("../../shared/profile.constants.js");
|
|
14
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
15
|
-
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
16
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
17
|
-
const CODE_PLACEHOLDER = '0';
|
|
18
|
-
const MAX_MODAL_WIDTH = 1044;
|
|
19
|
-
const SCREEN_MARGIN = 48;
|
|
20
|
-
const CELL_GAP = _reactNativeUi.SPACING['400'];
|
|
21
|
-
const MODAL_H_PADDING = _reactNativeUi.SPACING['800'];
|
|
22
|
-
const CELL_ASPECT = 0.95;
|
|
23
|
-
const CELL_RADIUS_RATIO = 0.24; // 36 / 150 in the design
|
|
24
|
-
const CELL_FONT_RATIO = 0.42; // 64 / 150 in the design
|
|
25
|
-
const MAX_CELL_RADIUS = 36;
|
|
26
|
-
const JoinClassModal = ({
|
|
27
|
-
modal: {
|
|
28
|
-
closeModal,
|
|
29
|
-
params
|
|
30
|
-
}
|
|
31
|
-
}) => {
|
|
32
|
-
const t = (0, _i18n.useText)();
|
|
33
|
-
const {
|
|
34
|
-
model
|
|
35
|
-
} = params;
|
|
36
|
-
const {
|
|
37
|
-
width
|
|
38
|
-
} = (0, _reactNative.useWindowDimensions)();
|
|
39
|
-
const {
|
|
40
|
-
code,
|
|
41
|
-
isComplete,
|
|
42
|
-
isPending
|
|
43
|
-
} = (0, _effectorReact.useUnit)({
|
|
44
|
-
code: model.joinClass.$code,
|
|
45
|
-
isComplete: model.joinClass.$isComplete,
|
|
46
|
-
isPending: model.api.joinClassFx.pending
|
|
47
|
-
});
|
|
48
|
-
const modalWidth = Math.min(MAX_MODAL_WIDTH, width - SCREEN_MARGIN);
|
|
49
|
-
const cellSize = (modalWidth - MODAL_H_PADDING * 2 - CELL_GAP * (_profileConstants.CLASS_CODE_LENGTH - 1)) / _profileConstants.CLASS_CODE_LENGTH;
|
|
50
|
-
const cellRadius = Math.min(MAX_CELL_RADIUS, cellSize * CELL_RADIUS_RATIO);
|
|
51
|
-
const cellFontSize = cellSize * CELL_FONT_RATIO;
|
|
52
|
-
const setCode = value => model.joinClass.setCode(value.toUpperCase());
|
|
53
|
-
const [cellProps, getCellOnLayoutHandler] = (0, _reactNativeConfirmationCodeField.useClearByFocusCell)({
|
|
54
|
-
value: code,
|
|
55
|
-
setValue: setCode
|
|
56
|
-
});
|
|
57
|
-
(0, _react.useEffect)(() => {
|
|
58
|
-
const subscription = model.api.joinClassFx.finally.watch(() => {
|
|
59
|
-
model.joinClass.reset();
|
|
60
|
-
closeModal();
|
|
61
|
-
});
|
|
62
|
-
return () => subscription.unsubscribe();
|
|
63
|
-
}, [model, closeModal]);
|
|
64
|
-
const closeAndReset = () => {
|
|
65
|
-
model.joinClass.reset();
|
|
66
|
-
closeModal();
|
|
67
|
-
};
|
|
68
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeUi.BaseModal, {
|
|
69
|
-
onClose: closeAndReset,
|
|
70
|
-
style: {
|
|
71
|
-
container: [styles.modal, {
|
|
72
|
-
width: modalWidth
|
|
73
|
-
}]
|
|
74
|
-
},
|
|
75
|
-
header: t('profile.joinClassTitle'),
|
|
76
|
-
content: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeConfirmationCodeField.CodeField, {
|
|
77
|
-
...cellProps,
|
|
78
|
-
nativeID: "join-class-code",
|
|
79
|
-
value: code,
|
|
80
|
-
onChangeText: setCode,
|
|
81
|
-
cellCount: _profileConstants.CLASS_CODE_LENGTH,
|
|
82
|
-
rootStyle: styles.codeRoot,
|
|
83
|
-
autoFocus: true,
|
|
84
|
-
autoComplete: "off",
|
|
85
|
-
textContentType: "oneTimeCode",
|
|
86
|
-
keyboardType: "default",
|
|
87
|
-
renderCell: ({
|
|
88
|
-
index,
|
|
89
|
-
symbol,
|
|
90
|
-
isFocused
|
|
91
|
-
}) => {
|
|
92
|
-
const isPlaceholder = !symbol && !isFocused;
|
|
93
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
94
|
-
style: [styles.cell, {
|
|
95
|
-
borderRadius: cellRadius,
|
|
96
|
-
width: cellSize
|
|
97
|
-
}],
|
|
98
|
-
onLayout: getCellOnLayoutHandler(index),
|
|
99
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
100
|
-
style: [styles.cellText, {
|
|
101
|
-
fontSize: cellFontSize
|
|
102
|
-
}, isPlaceholder && styles.cellPlaceholder],
|
|
103
|
-
children: symbol || (isFocused ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeConfirmationCodeField.Cursor, {}) : CODE_PLACEHOLDER)
|
|
104
|
-
})
|
|
105
|
-
}, index);
|
|
106
|
-
}
|
|
107
|
-
}),
|
|
108
|
-
footer: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeUi.ReanimatedButton, {
|
|
109
|
-
variant: _reactNativeUi.ButtonVariant.PRIMARY,
|
|
110
|
-
colorScheme: _reactNativeUi.ButtonColor.ORANGE,
|
|
111
|
-
size: _reactNativeUi.ButtonSize.LARGE,
|
|
112
|
-
onPress: () => model.joinClass.submit(),
|
|
113
|
-
disabled: !isComplete || isPending,
|
|
114
|
-
isLoading: isPending,
|
|
115
|
-
style: buttonStyle,
|
|
116
|
-
children: t('profile.joinClassButton')
|
|
117
|
-
})
|
|
118
|
-
});
|
|
119
|
-
};
|
|
120
|
-
exports.JoinClassModal = JoinClassModal;
|
|
121
|
-
const styles = _reactNative.StyleSheet.create({
|
|
122
|
-
modal: {
|
|
123
|
-
gap: _reactNativeUi.SPACING['800'],
|
|
124
|
-
paddingHorizontal: MODAL_H_PADDING
|
|
125
|
-
},
|
|
126
|
-
codeRoot: {
|
|
127
|
-
flexDirection: 'row',
|
|
128
|
-
gap: CELL_GAP,
|
|
129
|
-
justifyContent: 'center'
|
|
130
|
-
},
|
|
131
|
-
cell: {
|
|
132
|
-
alignItems: 'center',
|
|
133
|
-
aspectRatio: CELL_ASPECT,
|
|
134
|
-
backgroundColor: _reactNativeUi.COLORS.NEUTRAL_1,
|
|
135
|
-
borderColor: _reactNativeUi.COLORS.NEUTRAL_5,
|
|
136
|
-
borderWidth: 3,
|
|
137
|
-
justifyContent: 'center'
|
|
138
|
-
},
|
|
139
|
-
cellText: {
|
|
140
|
-
color: _reactNativeUi.COLORS.NEUTRAL_9,
|
|
141
|
-
fontFamily: _reactNativeUi.FONT_FAMILY.buenosAiresSemiBold,
|
|
142
|
-
textAlign: 'center'
|
|
143
|
-
},
|
|
144
|
-
cellPlaceholder: {
|
|
145
|
-
color: _reactNativeUi.COLORS.NEUTRAL_5
|
|
146
|
-
},
|
|
147
|
-
text: {
|
|
148
|
-
textTransform: 'uppercase'
|
|
149
|
-
}
|
|
150
|
-
});
|
|
151
|
-
const buttonStyle = {
|
|
152
|
-
text: styles.text
|
|
153
|
-
};
|
|
154
|
-
//# sourceMappingURL=JoinClassModal.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_effectorReact","_reactNativeConfirmationCodeField","_reactNativeUi","_i18n","_profileConstants","_jsxRuntime","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","CODE_PLACEHOLDER","MAX_MODAL_WIDTH","SCREEN_MARGIN","CELL_GAP","SPACING","MODAL_H_PADDING","CELL_ASPECT","CELL_RADIUS_RATIO","CELL_FONT_RATIO","MAX_CELL_RADIUS","JoinClassModal","modal","closeModal","params","useText","model","width","useWindowDimensions","code","isComplete","isPending","useUnit","joinClass","$code","$isComplete","api","joinClassFx","pending","modalWidth","Math","min","cellSize","CLASS_CODE_LENGTH","cellRadius","cellFontSize","setCode","value","toUpperCase","cellProps","getCellOnLayoutHandler","useClearByFocusCell","setValue","useEffect","subscription","finally","watch","reset","unsubscribe","closeAndReset","jsx","BaseModal","onClose","style","container","styles","header","content","CodeField","nativeID","onChangeText","cellCount","rootStyle","codeRoot","autoFocus","autoComplete","textContentType","keyboardType","renderCell","index","symbol","isFocused","isPlaceholder","View","cell","borderRadius","onLayout","children","Text","cellText","fontSize","cellPlaceholder","Cursor","footer","ReanimatedButton","variant","ButtonVariant","PRIMARY","colorScheme","ButtonColor","ORANGE","size","ButtonSize","LARGE","onPress","submit","disabled","isLoading","buttonStyle","exports","StyleSheet","create","gap","paddingHorizontal","flexDirection","justifyContent","alignItems","aspectRatio","backgroundColor","COLORS","NEUTRAL_1","borderColor","NEUTRAL_5","borderWidth","color","NEUTRAL_9","fontFamily","FONT_FAMILY","buenosAiresSemiBold","textAlign","text","textTransform"],"sourceRoot":"../../../../../../src","sources":["features/profile/components/modals/JoinClassModal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|
|
5
|
-
});
|
|
6
|
-
exports.LogoutConfirmModal = void 0;
|
|
7
|
-
var _react = _interopRequireDefault(require("react"));
|
|
8
|
-
var _reactNative = require("react-native");
|
|
9
|
-
var _reactNativeUi = require("@magmamath/react-native-ui");
|
|
10
|
-
var _i18n = require("../../../../i18n/i18n.js");
|
|
11
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
12
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
13
|
-
const LogoutConfirmModal = ({
|
|
14
|
-
modal: {
|
|
15
|
-
closeModal,
|
|
16
|
-
params
|
|
17
|
-
}
|
|
18
|
-
}) => {
|
|
19
|
-
const t = (0, _i18n.useText)();
|
|
20
|
-
const confirm = () => {
|
|
21
|
-
closeModal();
|
|
22
|
-
params.onConfirm();
|
|
23
|
-
};
|
|
24
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeUi.BaseModal, {
|
|
25
|
-
onClose: closeModal,
|
|
26
|
-
style: modalStyle,
|
|
27
|
-
header: t('profile.logOut'),
|
|
28
|
-
content: t('profile.logOutConfirmMessage'),
|
|
29
|
-
footer: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
30
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeUi.Button, {
|
|
31
|
-
variant: _reactNativeUi.ButtonVariant.TERTIARY,
|
|
32
|
-
size: _reactNativeUi.ButtonSize.LARGE,
|
|
33
|
-
onPress: closeModal,
|
|
34
|
-
style: buttonTextStyle,
|
|
35
|
-
children: t('profile.cancel')
|
|
36
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeUi.Button, {
|
|
37
|
-
colorScheme: _reactNativeUi.ButtonColor.ORANGE,
|
|
38
|
-
size: _reactNativeUi.ButtonSize.LARGE,
|
|
39
|
-
onPress: confirm,
|
|
40
|
-
style: buttonTextStyle,
|
|
41
|
-
children: t('profile.yes')
|
|
42
|
-
})]
|
|
43
|
-
})
|
|
44
|
-
});
|
|
45
|
-
};
|
|
46
|
-
exports.LogoutConfirmModal = LogoutConfirmModal;
|
|
47
|
-
const styles = _reactNative.StyleSheet.create({
|
|
48
|
-
modal: {
|
|
49
|
-
width: 530
|
|
50
|
-
},
|
|
51
|
-
uppercase: {
|
|
52
|
-
textTransform: 'uppercase'
|
|
53
|
-
}
|
|
54
|
-
});
|
|
55
|
-
const modalStyle = {
|
|
56
|
-
container: styles.modal
|
|
57
|
-
};
|
|
58
|
-
const buttonTextStyle = {
|
|
59
|
-
text: styles.uppercase
|
|
60
|
-
};
|
|
61
|
-
//# sourceMappingURL=LogoutConfirmModal.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_reactNativeUi","_i18n","_jsxRuntime","e","__esModule","default","LogoutConfirmModal","modal","closeModal","params","t","useText","confirm","onConfirm","jsx","BaseModal","onClose","style","modalStyle","header","content","footer","jsxs","Fragment","children","Button","variant","ButtonVariant","TERTIARY","size","ButtonSize","LARGE","onPress","buttonTextStyle","colorScheme","ButtonColor","ORANGE","exports","styles","StyleSheet","create","width","uppercase","textTransform","container","text"],"sourceRoot":"../../../../../../src","sources":["features/profile/components/modals/LogoutConfirmModal.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,cAAA,GAAAF,OAAA;AAQA,IAAAG,KAAA,GAAAH,OAAA;AAA+C,IAAAI,WAAA,GAAAJ,OAAA;AAAA,SAAAD,uBAAAM,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAGxC,MAAMG,kBAAkB,GAAGA,CAAC;EACjCC,KAAK,EAAE;IAAEC,UAAU;IAAEC;EAAO;AACQ,CAAC,KAAK;EAC1C,MAAMC,CAAC,GAAG,IAAAC,aAA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