@magmamath/students-features 1.8.3-rc.0 → 1.8.4-rc.1
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 +1 -5
- package/dist/commonjs/features/pmProgress/shared/TreeNormalizer.js.map +1 -1
- package/dist/commonjs/features/profile/Profile.js +82 -0
- package/dist/commonjs/features/profile/Profile.js.map +1 -0
- package/dist/commonjs/features/profile/components/actions/ProfileActions.js +55 -0
- package/dist/commonjs/features/profile/components/actions/ProfileActions.js.map +1 -0
- package/dist/commonjs/features/profile/components/cards/ProfileCard.js +54 -0
- package/dist/commonjs/features/profile/components/cards/ProfileCard.js.map +1 -0
- package/dist/commonjs/features/profile/components/info/AccountInfoCard.js +87 -0
- package/dist/commonjs/features/profile/components/info/AccountInfoCard.js.map +1 -0
- package/dist/commonjs/features/profile/components/modals/JoinClassModal.js +136 -0
- package/dist/commonjs/features/profile/components/modals/JoinClassModal.js.map +1 -0
- package/dist/commonjs/features/profile/components/modals/ModalShell.js +57 -0
- package/dist/commonjs/features/profile/components/modals/ModalShell.js.map +1 -0
- package/dist/commonjs/features/profile/components/modals/TranslationLanguageModal.js +122 -0
- package/dist/commonjs/features/profile/components/modals/TranslationLanguageModal.js.map +1 -0
- package/dist/commonjs/features/profile/components/settings/LanguageSettingsCard.js +22 -0
- package/dist/commonjs/features/profile/components/settings/LanguageSettingsCard.js.map +1 -0
- package/dist/commonjs/features/profile/components/settings/PreferencesCard.js +71 -0
- package/dist/commonjs/features/profile/components/settings/PreferencesCard.js.map +1 -0
- package/dist/commonjs/features/profile/components/settings/SettingRow.js +46 -0
- package/dist/commonjs/features/profile/components/settings/SettingRow.js.map +1 -0
- package/dist/commonjs/features/profile/components/settings/TextSettingsCard.js +74 -0
- package/dist/commonjs/features/profile/components/settings/TextSettingsCard.js.map +1 -0
- package/dist/commonjs/features/profile/components/settings/TextToSpeechRow.js +35 -0
- package/dist/commonjs/features/profile/components/settings/TextToSpeechRow.js.map +1 -0
- package/dist/commonjs/features/profile/components/settings/TranslationLanguageRow.js +72 -0
- package/dist/commonjs/features/profile/components/settings/TranslationLanguageRow.js.map +1 -0
- package/dist/commonjs/features/profile/context/ProfileContext.js +18 -0
- package/dist/commonjs/features/profile/context/ProfileContext.js.map +1 -0
- package/dist/commonjs/features/profile/index.js +86 -0
- package/dist/commonjs/features/profile/index.js.map +1 -0
- package/dist/commonjs/features/profile/model/ProfileApi.js +15 -0
- package/dist/commonjs/features/profile/model/ProfileApi.js.map +1 -0
- package/dist/commonjs/features/profile/model/ProfileJoinClassModel.js +46 -0
- package/dist/commonjs/features/profile/model/ProfileJoinClassModel.js.map +1 -0
- package/dist/commonjs/features/profile/model/ProfileLanguageModel.js +30 -0
- package/dist/commonjs/features/profile/model/ProfileLanguageModel.js.map +1 -0
- package/dist/commonjs/features/profile/model/ProfileModel.js +52 -0
- package/dist/commonjs/features/profile/model/ProfileModel.js.map +1 -0
- package/dist/commonjs/features/profile/model/profileModal.types.js +6 -0
- package/dist/commonjs/features/profile/model/profileModal.types.js.map +1 -0
- package/dist/commonjs/features/profile/shared/TextSizeSlider.js +110 -0
- package/dist/commonjs/features/profile/shared/TextSizeSlider.js.map +1 -0
- package/dist/commonjs/features/profile/shared/profile.constants.js +19 -0
- package/dist/commonjs/features/profile/shared/profile.constants.js.map +1 -0
- package/dist/commonjs/features/profile/shared/profile.helpers.js +32 -0
- package/dist/commonjs/features/profile/shared/profile.helpers.js.map +1 -0
- package/dist/commonjs/features/profile/shared/profile.types.js +6 -0
- package/dist/commonjs/features/profile/shared/profile.types.js.map +1 -0
- package/dist/commonjs/features/uiMode/index.js +0 -7
- package/dist/commonjs/features/uiMode/index.js.map +1 -1
- package/dist/commonjs/features/uiMode/uiMode.helpers.js +2 -7
- package/dist/commonjs/features/uiMode/uiMode.helpers.js.map +1 -1
- package/dist/commonjs/index.js +12 -0
- package/dist/commonjs/index.js.map +1 -1
- package/dist/module/features/pmProgress/shared/TreeNormalizer.js +1 -5
- package/dist/module/features/pmProgress/shared/TreeNormalizer.js.map +1 -1
- package/dist/module/features/profile/Profile.js +76 -0
- package/dist/module/features/profile/Profile.js.map +1 -0
- package/dist/module/features/profile/components/actions/ProfileActions.js +49 -0
- package/dist/module/features/profile/components/actions/ProfileActions.js.map +1 -0
- package/dist/module/features/profile/components/cards/ProfileCard.js +48 -0
- package/dist/module/features/profile/components/cards/ProfileCard.js.map +1 -0
- package/dist/module/features/profile/components/info/AccountInfoCard.js +81 -0
- package/dist/module/features/profile/components/info/AccountInfoCard.js.map +1 -0
- package/dist/module/features/profile/components/modals/JoinClassModal.js +130 -0
- package/dist/module/features/profile/components/modals/JoinClassModal.js.map +1 -0
- package/dist/module/features/profile/components/modals/ModalShell.js +51 -0
- package/dist/module/features/profile/components/modals/ModalShell.js.map +1 -0
- package/dist/module/features/profile/components/modals/TranslationLanguageModal.js +116 -0
- package/dist/module/features/profile/components/modals/TranslationLanguageModal.js.map +1 -0
- package/dist/module/features/profile/components/settings/LanguageSettingsCard.js +16 -0
- package/dist/module/features/profile/components/settings/LanguageSettingsCard.js.map +1 -0
- package/dist/module/features/profile/components/settings/PreferencesCard.js +65 -0
- package/dist/module/features/profile/components/settings/PreferencesCard.js.map +1 -0
- package/dist/module/features/profile/components/settings/SettingRow.js +40 -0
- package/dist/module/features/profile/components/settings/SettingRow.js.map +1 -0
- package/dist/module/features/profile/components/settings/TextSettingsCard.js +68 -0
- package/dist/module/features/profile/components/settings/TextSettingsCard.js.map +1 -0
- package/dist/module/features/profile/components/settings/TextToSpeechRow.js +29 -0
- package/dist/module/features/profile/components/settings/TextToSpeechRow.js.map +1 -0
- package/dist/module/features/profile/components/settings/TranslationLanguageRow.js +66 -0
- package/dist/module/features/profile/components/settings/TranslationLanguageRow.js.map +1 -0
- package/dist/module/features/profile/context/ProfileContext.js +13 -0
- package/dist/module/features/profile/context/ProfileContext.js.map +1 -0
- package/dist/module/features/profile/index.js +10 -0
- package/dist/module/features/profile/index.js.map +1 -0
- package/dist/module/features/profile/model/ProfileApi.js +10 -0
- package/dist/module/features/profile/model/ProfileApi.js.map +1 -0
- package/dist/module/features/profile/model/ProfileJoinClassModel.js +41 -0
- package/dist/module/features/profile/model/ProfileJoinClassModel.js.map +1 -0
- package/dist/module/features/profile/model/ProfileLanguageModel.js +25 -0
- package/dist/module/features/profile/model/ProfileLanguageModel.js.map +1 -0
- package/dist/module/features/profile/model/ProfileModel.js +47 -0
- package/dist/module/features/profile/model/ProfileModel.js.map +1 -0
- package/dist/module/features/profile/model/profileModal.types.js +4 -0
- package/dist/module/features/profile/model/profileModal.types.js.map +1 -0
- package/dist/module/features/profile/shared/TextSizeSlider.js +103 -0
- package/dist/module/features/profile/shared/TextSizeSlider.js.map +1 -0
- package/dist/module/features/profile/shared/profile.constants.js +15 -0
- package/dist/module/features/profile/shared/profile.constants.js.map +1 -0
- package/dist/module/features/profile/shared/profile.helpers.js +24 -0
- package/dist/module/features/profile/shared/profile.helpers.js.map +1 -0
- package/dist/module/features/profile/shared/profile.types.js +4 -0
- package/dist/module/features/profile/shared/profile.types.js.map +1 -0
- package/dist/module/features/uiMode/index.js +0 -1
- package/dist/module/features/uiMode/index.js.map +1 -1
- package/dist/module/features/uiMode/uiMode.helpers.js +1 -6
- package/dist/module/features/uiMode/uiMode.helpers.js.map +1 -1
- package/dist/module/index.js +1 -0
- package/dist/module/index.js.map +1 -1
- package/dist/typescript/commonjs/features/pmProgress/shared/TreeNormalizer.d.ts +0 -4
- package/dist/typescript/commonjs/features/pmProgress/shared/TreeNormalizer.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/profile/Profile.d.ts +6 -0
- package/dist/typescript/commonjs/features/profile/Profile.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/profile/__tests__/ProfileModel.test.d.ts +2 -0
- package/dist/typescript/commonjs/features/profile/__tests__/ProfileModel.test.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/profile/__tests__/profile.helpers.test.d.ts +2 -0
- package/dist/typescript/commonjs/features/profile/__tests__/profile.helpers.test.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/profile/components/actions/ProfileActions.d.ts +3 -0
- package/dist/typescript/commonjs/features/profile/components/actions/ProfileActions.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/profile/components/cards/ProfileCard.d.ts +10 -0
- package/dist/typescript/commonjs/features/profile/components/cards/ProfileCard.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/profile/components/info/AccountInfoCard.d.ts +3 -0
- package/dist/typescript/commonjs/features/profile/components/info/AccountInfoCard.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/profile/components/modals/JoinClassModal.d.ts +4 -0
- package/dist/typescript/commonjs/features/profile/components/modals/JoinClassModal.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/profile/components/modals/ModalShell.d.ts +11 -0
- package/dist/typescript/commonjs/features/profile/components/modals/ModalShell.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/profile/components/modals/TranslationLanguageModal.d.ts +4 -0
- package/dist/typescript/commonjs/features/profile/components/modals/TranslationLanguageModal.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/profile/components/settings/LanguageSettingsCard.d.ts +3 -0
- package/dist/typescript/commonjs/features/profile/components/settings/LanguageSettingsCard.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/profile/components/settings/PreferencesCard.d.ts +3 -0
- package/dist/typescript/commonjs/features/profile/components/settings/PreferencesCard.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/profile/components/settings/SettingRow.d.ts +9 -0
- package/dist/typescript/commonjs/features/profile/components/settings/SettingRow.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/profile/components/settings/TextSettingsCard.d.ts +3 -0
- package/dist/typescript/commonjs/features/profile/components/settings/TextSettingsCard.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/profile/components/settings/TextToSpeechRow.d.ts +3 -0
- package/dist/typescript/commonjs/features/profile/components/settings/TextToSpeechRow.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/profile/components/settings/TranslationLanguageRow.d.ts +3 -0
- package/dist/typescript/commonjs/features/profile/components/settings/TranslationLanguageRow.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/profile/context/ProfileContext.d.ts +13 -0
- package/dist/typescript/commonjs/features/profile/context/ProfileContext.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/profile/index.d.ts +11 -0
- package/dist/typescript/commonjs/features/profile/index.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/profile/model/ProfileApi.d.ts +11 -0
- package/dist/typescript/commonjs/features/profile/model/ProfileApi.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/profile/model/ProfileJoinClassModel.d.ts +13 -0
- package/dist/typescript/commonjs/features/profile/model/ProfileJoinClassModel.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/profile/model/ProfileLanguageModel.d.ts +13 -0
- package/dist/typescript/commonjs/features/profile/model/ProfileLanguageModel.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/profile/model/ProfileModel.d.ts +25 -0
- package/dist/typescript/commonjs/features/profile/model/ProfileModel.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/profile/model/profileModal.types.d.ts +11 -0
- package/dist/typescript/commonjs/features/profile/model/profileModal.types.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/profile/shared/TextSizeSlider.d.ts +8 -0
- package/dist/typescript/commonjs/features/profile/shared/TextSizeSlider.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/profile/shared/profile.constants.d.ts +12 -0
- package/dist/typescript/commonjs/features/profile/shared/profile.constants.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/profile/shared/profile.helpers.d.ts +6 -0
- package/dist/typescript/commonjs/features/profile/shared/profile.helpers.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/profile/shared/profile.types.d.ts +20 -0
- package/dist/typescript/commonjs/features/profile/shared/profile.types.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/uiMode/index.d.ts +0 -1
- package/dist/typescript/commonjs/features/uiMode/index.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/uiMode/uiMode.helpers.d.ts +0 -2
- package/dist/typescript/commonjs/features/uiMode/uiMode.helpers.d.ts.map +1 -1
- package/dist/typescript/commonjs/index.d.ts +1 -0
- package/dist/typescript/commonjs/index.d.ts.map +1 -1
- package/dist/typescript/module/features/pmProgress/shared/TreeNormalizer.d.ts +0 -4
- package/dist/typescript/module/features/pmProgress/shared/TreeNormalizer.d.ts.map +1 -1
- package/dist/typescript/module/features/profile/Profile.d.ts +6 -0
- package/dist/typescript/module/features/profile/Profile.d.ts.map +1 -0
- package/dist/typescript/module/features/profile/__tests__/ProfileModel.test.d.ts +2 -0
- package/dist/typescript/module/features/profile/__tests__/ProfileModel.test.d.ts.map +1 -0
- package/dist/typescript/module/features/profile/__tests__/profile.helpers.test.d.ts +2 -0
- package/dist/typescript/module/features/profile/__tests__/profile.helpers.test.d.ts.map +1 -0
- package/dist/typescript/module/features/profile/components/actions/ProfileActions.d.ts +3 -0
- package/dist/typescript/module/features/profile/components/actions/ProfileActions.d.ts.map +1 -0
- package/dist/typescript/module/features/profile/components/cards/ProfileCard.d.ts +10 -0
- package/dist/typescript/module/features/profile/components/cards/ProfileCard.d.ts.map +1 -0
- package/dist/typescript/module/features/profile/components/info/AccountInfoCard.d.ts +3 -0
- package/dist/typescript/module/features/profile/components/info/AccountInfoCard.d.ts.map +1 -0
- package/dist/typescript/module/features/profile/components/modals/JoinClassModal.d.ts +4 -0
- package/dist/typescript/module/features/profile/components/modals/JoinClassModal.d.ts.map +1 -0
- package/dist/typescript/module/features/profile/components/modals/ModalShell.d.ts +11 -0
- package/dist/typescript/module/features/profile/components/modals/ModalShell.d.ts.map +1 -0
- package/dist/typescript/module/features/profile/components/modals/TranslationLanguageModal.d.ts +4 -0
- package/dist/typescript/module/features/profile/components/modals/TranslationLanguageModal.d.ts.map +1 -0
- package/dist/typescript/module/features/profile/components/settings/LanguageSettingsCard.d.ts +3 -0
- package/dist/typescript/module/features/profile/components/settings/LanguageSettingsCard.d.ts.map +1 -0
- package/dist/typescript/module/features/profile/components/settings/PreferencesCard.d.ts +3 -0
- package/dist/typescript/module/features/profile/components/settings/PreferencesCard.d.ts.map +1 -0
- package/dist/typescript/module/features/profile/components/settings/SettingRow.d.ts +9 -0
- package/dist/typescript/module/features/profile/components/settings/SettingRow.d.ts.map +1 -0
- package/dist/typescript/module/features/profile/components/settings/TextSettingsCard.d.ts +3 -0
- package/dist/typescript/module/features/profile/components/settings/TextSettingsCard.d.ts.map +1 -0
- package/dist/typescript/module/features/profile/components/settings/TextToSpeechRow.d.ts +3 -0
- package/dist/typescript/module/features/profile/components/settings/TextToSpeechRow.d.ts.map +1 -0
- package/dist/typescript/module/features/profile/components/settings/TranslationLanguageRow.d.ts +3 -0
- package/dist/typescript/module/features/profile/components/settings/TranslationLanguageRow.d.ts.map +1 -0
- package/dist/typescript/module/features/profile/context/ProfileContext.d.ts +13 -0
- package/dist/typescript/module/features/profile/context/ProfileContext.d.ts.map +1 -0
- package/dist/typescript/module/features/profile/index.d.ts +11 -0
- package/dist/typescript/module/features/profile/index.d.ts.map +1 -0
- package/dist/typescript/module/features/profile/model/ProfileApi.d.ts +11 -0
- package/dist/typescript/module/features/profile/model/ProfileApi.d.ts.map +1 -0
- package/dist/typescript/module/features/profile/model/ProfileJoinClassModel.d.ts +13 -0
- package/dist/typescript/module/features/profile/model/ProfileJoinClassModel.d.ts.map +1 -0
- package/dist/typescript/module/features/profile/model/ProfileLanguageModel.d.ts +13 -0
- package/dist/typescript/module/features/profile/model/ProfileLanguageModel.d.ts.map +1 -0
- package/dist/typescript/module/features/profile/model/ProfileModel.d.ts +25 -0
- package/dist/typescript/module/features/profile/model/ProfileModel.d.ts.map +1 -0
- package/dist/typescript/module/features/profile/model/profileModal.types.d.ts +11 -0
- package/dist/typescript/module/features/profile/model/profileModal.types.d.ts.map +1 -0
- package/dist/typescript/module/features/profile/shared/TextSizeSlider.d.ts +8 -0
- package/dist/typescript/module/features/profile/shared/TextSizeSlider.d.ts.map +1 -0
- package/dist/typescript/module/features/profile/shared/profile.constants.d.ts +12 -0
- package/dist/typescript/module/features/profile/shared/profile.constants.d.ts.map +1 -0
- package/dist/typescript/module/features/profile/shared/profile.helpers.d.ts +6 -0
- package/dist/typescript/module/features/profile/shared/profile.helpers.d.ts.map +1 -0
- package/dist/typescript/module/features/profile/shared/profile.types.d.ts +20 -0
- package/dist/typescript/module/features/profile/shared/profile.types.d.ts.map +1 -0
- package/dist/typescript/module/features/uiMode/index.d.ts +0 -1
- package/dist/typescript/module/features/uiMode/index.d.ts.map +1 -1
- package/dist/typescript/module/features/uiMode/uiMode.helpers.d.ts +0 -2
- package/dist/typescript/module/features/uiMode/uiMode.helpers.d.ts.map +1 -1
- package/dist/typescript/module/index.d.ts +1 -0
- package/dist/typescript/module/index.d.ts.map +1 -1
- package/package.json +2 -2
- package/src/features/pmProgress/shared/TreeNormalizer.ts +1 -5
- package/src/features/profile/Profile.tsx +75 -0
- package/src/features/profile/__tests__/ProfileModel.test.ts +79 -0
- package/src/features/profile/__tests__/profile.helpers.test.ts +49 -0
- package/src/features/profile/components/actions/ProfileActions.tsx +55 -0
- package/src/features/profile/components/cards/ProfileCard.tsx +51 -0
- package/src/features/profile/components/info/AccountInfoCard.tsx +74 -0
- package/src/features/profile/components/modals/JoinClassModal.tsx +143 -0
- package/src/features/profile/components/modals/ModalShell.tsx +58 -0
- package/src/features/profile/components/modals/TranslationLanguageModal.tsx +119 -0
- package/src/features/profile/components/settings/LanguageSettingsCard.tsx +16 -0
- package/src/features/profile/components/settings/PreferencesCard.tsx +69 -0
- package/src/features/profile/components/settings/SettingRow.tsx +40 -0
- package/src/features/profile/components/settings/TextSettingsCard.tsx +61 -0
- package/src/features/profile/components/settings/TextToSpeechRow.tsx +24 -0
- package/src/features/profile/components/settings/TranslationLanguageRow.tsx +68 -0
- package/src/features/profile/context/ProfileContext.tsx +24 -0
- package/src/features/profile/index.ts +10 -0
- package/src/features/profile/model/ProfileApi.ts +22 -0
- package/src/features/profile/model/ProfileJoinClassModel.ts +45 -0
- package/src/features/profile/model/ProfileLanguageModel.ts +26 -0
- package/src/features/profile/model/ProfileModel.ts +56 -0
- package/src/features/profile/model/profileModal.types.ts +12 -0
- package/src/features/profile/shared/TextSizeSlider.tsx +106 -0
- package/src/features/profile/shared/profile.constants.ts +14 -0
- package/src/features/profile/shared/profile.helpers.ts +29 -0
- package/src/features/profile/shared/profile.types.ts +25 -0
- package/src/features/uiMode/__tests__/getUIMode.test.ts +0 -64
- package/src/features/uiMode/index.ts +0 -1
- package/src/features/uiMode/uiMode.helpers.ts +1 -16
- package/src/i18n/.generated/schema.json +0 -2
- package/src/index.ts +1 -0
|
@@ -9,10 +9,6 @@ exports.TreeNormalizer = void 0;
|
|
|
9
9
|
* making them impossible to open in the solving flow. This normalizer strips those skills
|
|
10
10
|
* and cascades the cleanup - removing standards, domains, etc. that end up empty.
|
|
11
11
|
*
|
|
12
|
-
* It also de-duplicates skill ids within a node: the API tree can list the same skill twice,
|
|
13
|
-
* which inflates a standard's denominator (achieved/total) and leaves a finished standard
|
|
14
|
-
* stuck below 100%, e.g. 18 unique skills counted as 18/19. (students-web#4038)
|
|
15
|
-
*
|
|
16
12
|
* Acts as a single place to sanitize the tree API response before it enters the app.
|
|
17
13
|
* Can be extended with additional normalizations as new edge cases arise.
|
|
18
14
|
*/
|
|
@@ -37,7 +33,7 @@ class TreeNormalizer {
|
|
|
37
33
|
const emptyIds = this.getEmptyNodeIds(treeMapping, validIds);
|
|
38
34
|
return Object.fromEntries(Object.entries(treeMapping).filter(([id]) => !emptyIds.has(id)).map(([id, node]) => [id, {
|
|
39
35
|
...node,
|
|
40
|
-
skills:
|
|
36
|
+
skills: node.skills.filter(sid => validIds.has(sid)),
|
|
41
37
|
children: node.children.filter(cid => !emptyIds.has(cid))
|
|
42
38
|
}]));
|
|
43
39
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["TreeNormalizer","normalize","response","skillsMapping","getOnlyValidSkills","validIds","Set","Object","keys","treeMapping","removeEmptyNodes","isSkillValid","skill","Boolean","ability","sectionId","functionName","mapping","fromEntries","entries","filter","emptyIds","getEmptyNodeIds","id","has","map","node","skills","sid","children","cid","empty","leafToRoot","sort","a","b","parents","length","isEmptyLeaf","every","s","isEmptyParent","c","add","exports"],"sourceRoot":"../../../../../src","sources":["features/pmProgress/shared/TreeNormalizer.ts"],"mappings":";;;;;;AAIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;
|
|
1
|
+
{"version":3,"names":["TreeNormalizer","normalize","response","skillsMapping","getOnlyValidSkills","validIds","Set","Object","keys","treeMapping","removeEmptyNodes","isSkillValid","skill","Boolean","ability","sectionId","functionName","mapping","fromEntries","entries","filter","emptyIds","getEmptyNodeIds","id","has","map","node","skills","sid","children","cid","empty","leafToRoot","sort","a","b","parents","length","isEmptyLeaf","every","s","isEmptyParent","c","add","exports"],"sourceRoot":"../../../../../src","sources":["features/pmProgress/shared/TreeNormalizer.ts"],"mappings":";;;;;;AAIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,MAAMA,cAAc,CAAC;EAC1B,OAAOC,SAASA,CAACC,QAA6B,EAAuB;IACnE,MAAMC,aAAa,GAAG,IAAI,CAACC,kBAAkB,CAACF,QAAQ,CAACC,aAAa,CAAC;IACrE,MAAME,QAAQ,GAAG,IAAIC,GAAG,CAACC,MAAM,CAACC,IAAI,CAACL,aAAa,CAAC,CAAC;IACpD,MAAMM,WAAW,GAAG,IAAI,CAACC,gBAAgB,CAACR,QAAQ,CAACO,WAAW,EAAEJ,QAAQ,CAAC;IACzE,OAAO;MAAE,GAAGH,QAAQ;MAAEC,aAAa;MAAEM;IAAY,CAAC;EACpD;EAEA,OAAOE,YAAYA,CAACC,KAAY,EAAE;IAChC,OAAOC,OAAO,CAACD,KAAK,EAAEE,OAAO,KAAKF,KAAK,CAACE,OAAO,CAACC,SAAS,IAAIH,KAA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,CAAC,CAACE,OAAO,CAACC,MACjD,CAAC;IAED,KAAK,MAAM,CAACd,EAAE,EAAEG,IAAI,CAAC,IAAIM,UAAU,EAAE;MACnC,MAAMM,WAAW,GAAGZ,IAAI,CAACC,MAAM,CAACU,MAAM,GAAG,CAAC,IAAIX,IAAI,CAACC,MAAM,CAACY,KAAK,CAAEC,CAAC,IAAK,CAACnC,QAAQ,CAACmB,GAAG,CAACgB,CAAC,CAAC,CAAC;MACxF,MAAMC,aAAa,GAAGf,IAAI,CAACG,QAAQ,CAACQ,MAAM,GAAG,CAAC,IAAIX,IAAI,CAACG,QAAQ,CAACU,KAAK,CAAEG,CAAC,IAAKX,KAAK,CAACP,GAAG,CAACkB,CAAC,CAAC,CAAC;MAE1F,IAAIJ,WAAW,IAAIG,aAAa,EAAEV,KAAK,CAACY,GAAG,CAACpB,EAAE,CAAC;IACjD;IAEA,OAAOQ,KAAK;EACd;AACF;AAACa,OAAA,CAAA5C,cAAA,GAAAA,cAAA","ignoreList":[]}
|
|
@@ -0,0 +1,82 @@
|
|
|
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 Profile = props => {
|
|
21
|
+
const {
|
|
22
|
+
showSolveMode,
|
|
23
|
+
versionInfo
|
|
24
|
+
} = props;
|
|
25
|
+
const {
|
|
26
|
+
width
|
|
27
|
+
} = (0, _reactNative.useWindowDimensions)();
|
|
28
|
+
const isTwoColumn = width >= TWO_COLUMN_BREAKPOINT;
|
|
29
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_ProfileContext.ProfileProvider, {
|
|
30
|
+
value: props,
|
|
31
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.ScrollView, {
|
|
32
|
+
contentContainerStyle: styles.scroll,
|
|
33
|
+
scrollEnabled: _commonConstants.isWeb,
|
|
34
|
+
showsVerticalScrollIndicator: _commonConstants.isWeb,
|
|
35
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
36
|
+
style: [styles.columns, !isTwoColumn && styles.columnsStacked],
|
|
37
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
38
|
+
style: [styles.column, !isTwoColumn && styles.columnFull],
|
|
39
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_LanguageSettingsCard.LanguageSettingsCard, {}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_TextSettingsCard.TextSettingsCard, {})]
|
|
40
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
41
|
+
style: [styles.column, !isTwoColumn && styles.columnFull],
|
|
42
|
+
children: [showSolveMode && /*#__PURE__*/(0, _jsxRuntime.jsx)(_PreferencesCard.PreferencesCard, {}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_AccountInfoCard.AccountInfoCard, {})]
|
|
43
|
+
})]
|
|
44
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_ProfileActions.ProfileActions, {}), versionInfo ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
45
|
+
style: styles.version,
|
|
46
|
+
children: versionInfo
|
|
47
|
+
}) : null]
|
|
48
|
+
})
|
|
49
|
+
});
|
|
50
|
+
};
|
|
51
|
+
exports.Profile = Profile;
|
|
52
|
+
const styles = _reactNative.StyleSheet.create({
|
|
53
|
+
scroll: {
|
|
54
|
+
flexGrow: 1,
|
|
55
|
+
gap: _reactNativeUi.SPACING['800'],
|
|
56
|
+
padding: _reactNativeUi.SPACING['600']
|
|
57
|
+
},
|
|
58
|
+
columns: {
|
|
59
|
+
flexDirection: 'row',
|
|
60
|
+
gap: _reactNativeUi.SPACING['600'],
|
|
61
|
+
justifyContent: 'center',
|
|
62
|
+
width: '100%'
|
|
63
|
+
},
|
|
64
|
+
columnsStacked: {
|
|
65
|
+
alignItems: 'center',
|
|
66
|
+
flexDirection: 'column'
|
|
67
|
+
},
|
|
68
|
+
column: {
|
|
69
|
+
flex: 1,
|
|
70
|
+
gap: _reactNativeUi.SPACING['600'],
|
|
71
|
+
maxWidth: 560
|
|
72
|
+
},
|
|
73
|
+
columnFull: {
|
|
74
|
+
flex: 0,
|
|
75
|
+
width: '100%'
|
|
76
|
+
},
|
|
77
|
+
version: {
|
|
78
|
+
alignSelf: 'flex-end',
|
|
79
|
+
marginTop: 'auto'
|
|
80
|
+
}
|
|
81
|
+
});
|
|
82
|
+
//# sourceMappingURL=Profile.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_reactNativeUi","_commonConstants","_ProfileActions","_AccountInfoCard","_LanguageSettingsCard","_PreferencesCard","_TextSettingsCard","_ProfileContext","_jsxRuntime","e","__esModule","default","TWO_COLUMN_BREAKPOINT","Profile","props","showSolveMode","versionInfo","width","useWindowDimensions","isTwoColumn","jsx","ProfileProvider","value","children","jsxs","ScrollView","contentContainerStyle","styles","scroll","scrollEnabled","isWeb","showsVerticalScrollIndicator","View","style","columns","columnsStacked","column","columnFull","LanguageSettingsCard","TextSettingsCard","PreferencesCard","AccountInfoCard","ProfileActions","version","exports","StyleSheet","create","flexGrow","gap","SPACING","padding","flexDirection","justifyContent","alignItems","flex","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;AAE1B,MAAMC,OAAO,GAAIC,KAAmB,IAAK;EAC9C,MAAM;IAAEC,aAAa;IAAEC;EAAY,CAAC,GAAGF,KAAK;EAC5C,MAAM;IAAEG;EAAM,CAAC,GAAG,IAAAC,gCAAmB,EAAC,CAAC;EACvC,MAAMC,WAAW,GAAGF,KAAK,IAAIL,qBAAqB;EAElD,oBACE,IAAAJ,WAAA,CAAAY,GAAA,EAACb,eAAA,CAAAc,eAAe;IAACC,KAAK,EAAER,KAAM;IAAAS,QAAA,eAC5B,IAAAf,WAAA,CAAAgB,IAAA,EAACzB,YAAA,CAAA0B,UAAU;MACTC,qBAAqB,EAAEC,MAAM,CAACC,MAAO;MACrCC,aAAa,EAAEC,sBAAM;MACrBC,4BA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;AAED,MAAMc,MAAM,GAAGkB,uBAAU,CAACC,MAAM,CAAC;EAC/BlB,MAAM,EAAE;IACNmB,QAAQ,EAAE,CAAC;IACXC,GAAG,EAAEC,sBAAO,CAAC,KAAK,CAAC;IACnBC,OAAO,EAAED,sBAAO,CAAC,KAAK;EACxB,CAAC;EACDf,OAAO,EAAE;IACPiB,aAAa,EAAE,KAAK;IACpBH,GAAG,EAAEC,sBAAO,CAAC,KAAK,CAAC;IACnBG,cAAc,EAAE,QAAQ;IACxBnC,KAAK,EAAE;EACT,CAAC;EACDkB,cAAc,EAAE;IACdkB,UAAU,EAAE,QAAQ;IACpBF,aAAa,EAAE;EACjB,CAAC;EACDf,MAAM,EAAE;IACNkB,IAAI,EAAE,CAAC;IACPN,GAAG,EAAEC,sBAAO,CAAC,KAAK,CAAC;IACnBM,QAAQ,EAAE;EACZ,CAAC;EACDlB,UAAU,EAAE;IACViB,IAAI,EAAE,CAAC;IACPrC,KAAK,EAAE;EACT,CAAC;EACD0B,OAAO,EAAE;IACPa,SAAS,EAAE,UAAU;IACrBC,SAAS,EAAE;EACb;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,55 @@
|
|
|
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)(_reactNativeUi.ReanimatedButton, {
|
|
23
|
+
variant: _reactNativeUi.ButtonVariant.SECONDARY,
|
|
24
|
+
colorScheme: _reactNativeUi.ButtonColor.WHITE,
|
|
25
|
+
size: _reactNativeUi.ButtonSize.LARGE,
|
|
26
|
+
onPress: onOpenJoinClass,
|
|
27
|
+
style: buttonStyle,
|
|
28
|
+
children: t('profile.joinNewClass')
|
|
29
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeUi.ReanimatedButton, {
|
|
30
|
+
variant: _reactNativeUi.ButtonVariant.PRIMARY,
|
|
31
|
+
colorScheme: _reactNativeUi.ButtonColor.ORANGE,
|
|
32
|
+
size: _reactNativeUi.ButtonSize.LARGE,
|
|
33
|
+
onPress: onLogout,
|
|
34
|
+
style: buttonStyle,
|
|
35
|
+
children: t('profile.logOut')
|
|
36
|
+
})]
|
|
37
|
+
});
|
|
38
|
+
};
|
|
39
|
+
exports.ProfileActions = ProfileActions;
|
|
40
|
+
const styles = _reactNative.StyleSheet.create({
|
|
41
|
+
container: {
|
|
42
|
+
alignItems: 'center',
|
|
43
|
+
flexDirection: 'row',
|
|
44
|
+
flexWrap: 'wrap',
|
|
45
|
+
gap: _reactNativeUi.SPACING['400'],
|
|
46
|
+
justifyContent: 'center'
|
|
47
|
+
},
|
|
48
|
+
text: {
|
|
49
|
+
textTransform: 'uppercase'
|
|
50
|
+
}
|
|
51
|
+
});
|
|
52
|
+
const buttonStyle = {
|
|
53
|
+
text: styles.text
|
|
54
|
+
};
|
|
55
|
+
//# sourceMappingURL=ProfileActions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
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","ReanimatedButton","variant","ButtonVariant","SECONDARY","colorScheme","ButtonColor","WHITE","size","ButtonSize","LARGE","onPress","buttonStyle","PRIMARY","ORANGE","exports","StyleSheet","create","alignItems","flexDirection","flexWrap","gap","SPACING","justifyContent","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,EAACnB,cAAA,CAAAoB,gBAAgB;MACfC,OAAO,EAAEC,4BAAa,CAACC,SAAU;MACjCC,WAAW,EAAEC,0BAAW,CAACC,KAAM;MAC/BC,IAAI,EAAEC,yBAAU,CAACC,KAAM;MACvBC,OAAO,EAAEnB,eAAgB;MACzBI,KAAK,EAAEgB,WAAY;MAAAb,QAAA,EAElBV,CAAC,CAAC,sBAAsB;IAAC,CACV,CAAC,eACnB,IAAAL,WAAA,CAAAgB,GAAA,EAACnB,cAAA,CAAAoB,gBAAgB;MACfC,OAAO,EAAEC,4BAAa,CAACU,OAAQ;MAC/BR,WAAW,EAAEC,0BAAW,CAACQ,MAAO;MAChCN,IAAI,EAAEC,yBAAU,CAACC,KAAM;MACvBC,OAAO,EAAEpB,QAAS;MAClBK,KAAK,EAAEgB,WAAY;MAAAb,QAAA,EAElBV,CAAC,CAAC,gBAAgB;IAAC,CACJ,CAAC;EAAA,CACf,CAAC;AAEX,CAAC;AAAA0B,OAAA,CAAA3B,cAAA,GAAAA,cAAA;AAED,MAAMS,MAAM,GAAGmB,uBAAU,CAACC,MAAM,CAAC;EAC/BnB,SAAS,EAAE;IACToB,UAAU,EAAE,QAAQ;IACpBC,aAAa,EAAE,KAAK;IACpBC,QAAQ,EAAE,MAAM;IAChBC,GAAG,EAAEC,sBAAO,CAAC,KAAK,CAAC;IACnBC,cAAc,EAAE;EAClB,CAAC;EACDC,IAAI,EAAE;IACJC,aAAa,EAAE;EACjB;AACF,CAAC,CAAC;AAEF,MAAMb,WAAW,GAAG;EAAEY,IAAI,EAAE3B,MAAM,CAAC2B;AAAK,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,54 @@
|
|
|
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.body,
|
|
27
|
+
children: children
|
|
28
|
+
})]
|
|
29
|
+
});
|
|
30
|
+
exports.ProfileCard = ProfileCard;
|
|
31
|
+
const styles = _reactNative.StyleSheet.create({
|
|
32
|
+
card: {
|
|
33
|
+
backgroundColor: _reactNativeUi.COLORS.NEUTRAL_1,
|
|
34
|
+
borderColor: _reactNativeUi.COLORS.NEUTRAL_4,
|
|
35
|
+
borderRadius: _reactNativeUi.BORDER_RADIUS['400'],
|
|
36
|
+
borderWidth: 1,
|
|
37
|
+
..._reactNativeUi.SHADOWS['2']
|
|
38
|
+
},
|
|
39
|
+
header: {
|
|
40
|
+
borderBottomColor: _reactNativeUi.COLORS.NEUTRAL_4,
|
|
41
|
+
borderBottomWidth: 1,
|
|
42
|
+
paddingHorizontal: _reactNativeUi.SPACING['600'],
|
|
43
|
+
paddingVertical: _reactNativeUi.SPACING['400']
|
|
44
|
+
},
|
|
45
|
+
title: {
|
|
46
|
+
color: _reactNativeUi.COLORS.NEUTRAL_7
|
|
47
|
+
},
|
|
48
|
+
body: {
|
|
49
|
+
gap: _reactNativeUi.SPACING['500'],
|
|
50
|
+
padding: _reactNativeUi.SPACING['600'],
|
|
51
|
+
justifyContent: 'center'
|
|
52
|
+
}
|
|
53
|
+
});
|
|
54
|
+
//# sourceMappingURL=ProfileCard.js.map
|
|
@@ -0,0 +1 @@
|
|
|
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","body","exports","StyleSheet","create","backgroundColor","COLORS","NEUTRAL_1","borderColor","NEUTRAL_4","borderRadius","BORDER_RADIUS","borderWidth","SHADOWS","borderBottomColor","borderBottomWidth","paddingHorizontal","SPACING","paddingVertical","color","NEUTRAL_7","gap","padding","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,IAAK;IAAAZ,QAAA,EAAEA;EAAQ,CAAO,CAAC;AAAA,CACvC,CACP;AAAAa,OAAA,CAAAf,WAAA,GAAAA,WAAA;AAED,MAAMM,MAAM,GAAGU,uBAAU,CAACC,MAAM,CAAC;EAC/BV,IAAI,EAAE;IACJW,eAAe,EAAEC,qBAAM,CAACC,SAAS;IACjCC,WAAW,EAAEF,qBAAM,CAACG,SAAS;IAC7BC,YAAY,EAAEC,4BAAa,CAAC,KAAK,CAAC;IAClCC,WAAW,EAAE,CAAC;IACd,GAAGC,sBAAO,CAAC,GAAG;EAChB,CAAC;EACDjB,MAAM,EAAE;IACNkB,iBAAiB,EAAER,qBAAM,CAACG,SAAS;IACnCM,iBAAiB,EAAE,CAAC;IACpBC,iBAAiB,EAAEC,sBAAO,CAAC,KAAK,CAAC;IACjCC,eAAe,EAAED,sBAAO,CAAC,KAAK;EAChC,CAAC;EACD7B,KAAK,EAAE;IACL+B,KAAK,EAAEb,qBAAM,CAACc;EAChB,CAAC;EACDnB,IAAI,EAAE;IACJoB,GAAG,EAAEJ,sBAAO,CAAC,KAAK,CAAC;IACnBK,OAAO,EAAEL,sBAAO,CAAC,KAAK,CAAC;IACvBM,cAAc,EAAE;EAClB;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,87 @@
|
|
|
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 _profileHelpers = require("../../shared/profile.helpers.js");
|
|
14
|
+
var _ProfileCard = require("../cards/ProfileCard.js");
|
|
15
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
16
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
17
|
+
const NOTE_ICON_SIZE = 16;
|
|
18
|
+
const InfoField = ({
|
|
19
|
+
label,
|
|
20
|
+
value
|
|
21
|
+
}) => /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
22
|
+
style: styles.field,
|
|
23
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeUi.Typography, {
|
|
24
|
+
variant: _reactNativeUi.HeadingVariants.H8,
|
|
25
|
+
style: styles.label,
|
|
26
|
+
children: label
|
|
27
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeUi.Typography, {
|
|
28
|
+
variant: (0, _profileHelpers.isLongAccountValue)(value) ? _reactNativeUi.HeadingVariants.H8 : _reactNativeUi.HeadingVariants.H6,
|
|
29
|
+
style: styles.value,
|
|
30
|
+
children: value
|
|
31
|
+
})]
|
|
32
|
+
});
|
|
33
|
+
const AccountInfoCard = () => {
|
|
34
|
+
const t = (0, _i18n.useText)();
|
|
35
|
+
const {
|
|
36
|
+
model
|
|
37
|
+
} = (0, _ProfileContext.useProfile)();
|
|
38
|
+
const user = (0, _effectorReact.useUnit)(model.$user);
|
|
39
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_ProfileCard.ProfileCard, {
|
|
40
|
+
title: t('profile.accountInfo'),
|
|
41
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(InfoField, {
|
|
42
|
+
label: t('profile.fullName'),
|
|
43
|
+
value: user?.fullName ?? ''
|
|
44
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(InfoField, {
|
|
45
|
+
label: t('profile.username'),
|
|
46
|
+
value: user?.username ?? ''
|
|
47
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(InfoField, {
|
|
48
|
+
label: t('profile.school'),
|
|
49
|
+
value: user?.schoolName ?? ''
|
|
50
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
51
|
+
style: styles.note,
|
|
52
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeUi.InfoIcon, {
|
|
53
|
+
size: NOTE_ICON_SIZE,
|
|
54
|
+
color: _reactNativeUi.COLORS.NEUTRAL_7
|
|
55
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeUi.Typography, {
|
|
56
|
+
variant: _reactNativeUi.HeadingVariants.H8,
|
|
57
|
+
style: styles.noteText,
|
|
58
|
+
children: t('profile.changePasswordNote')
|
|
59
|
+
})]
|
|
60
|
+
})]
|
|
61
|
+
});
|
|
62
|
+
};
|
|
63
|
+
exports.AccountInfoCard = AccountInfoCard;
|
|
64
|
+
const styles = _reactNative.StyleSheet.create({
|
|
65
|
+
field: {
|
|
66
|
+
gap: _reactNativeUi.SPACING['100']
|
|
67
|
+
},
|
|
68
|
+
label: {
|
|
69
|
+
color: _reactNativeUi.COLORS.NEUTRAL_7
|
|
70
|
+
},
|
|
71
|
+
value: {
|
|
72
|
+
color: _reactNativeUi.COLORS.NEUTRAL_9
|
|
73
|
+
},
|
|
74
|
+
note: {
|
|
75
|
+
alignItems: 'center',
|
|
76
|
+
borderTopColor: _reactNativeUi.COLORS.NEUTRAL_4,
|
|
77
|
+
borderTopWidth: 1,
|
|
78
|
+
flexDirection: 'row',
|
|
79
|
+
gap: _reactNativeUi.SPACING['200'],
|
|
80
|
+
paddingTop: _reactNativeUi.SPACING['400']
|
|
81
|
+
},
|
|
82
|
+
noteText: {
|
|
83
|
+
color: _reactNativeUi.COLORS.NEUTRAL_7,
|
|
84
|
+
flexShrink: 1
|
|
85
|
+
}
|
|
86
|
+
});
|
|
87
|
+
//# sourceMappingURL=AccountInfoCard.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireDefault","require","_effectorReact","_reactNative","_reactNativeUi","_i18n","_ProfileContext","_profileHelpers","_ProfileCard","_jsxRuntime","e","__esModule","default","NOTE_ICON_SIZE","InfoField","label","value","jsxs","View","style","styles","field","children","jsx","Typography","variant","HeadingVariants","H8","isLongAccountValue","H6","AccountInfoCard","t","useText","model","useProfile","user","useUnit","$user","ProfileCard","title","fullName","username","schoolName","note","InfoIcon","size","color","COLORS","NEUTRAL_7","noteText","exports","StyleSheet","create","gap","SPACING","NEUTRAL_9","alignItems","borderTopColor","NEUTRAL_4","borderTopWidth","flexDirection","paddingTop","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,eAAA,GAAAN,OAAA;AACA,IAAAO,YAAA,GAAAP,OAAA;AAAkD,IAAAQ,WAAA,GAAAR,OAAA;AAAA,SAAAD,uBAAAU,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,EAACd,YAAA,CAAAe,IAAI;EAACC,KAAK,EAAEC,MAAM,CAACC,KAAM;EAAAC,QAAA,gBACxB,IAAAb,WAAA,CAAAc,GAAA,EAACnB,cAAA,CAAAoB,UAAU;IAACC,OAAO,EAAEC,8BAAe,CAACC,EAAG;IAACR,KAAK,EAAEC,MAAM,CAACL,KAAM;IAAAO,QAAA,EAC1DP;EAAK,CACI,CAAC,eACb,IAAAN,WAAA,CAAAc,GAAA,EAACnB,cAAA,CAAAoB,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AACiC,KAAK,EAAEC,qBAAM,CAACC;MAAU,CAAE,CAAC,eAC3D,IAAAvC,WAAA,CAAAc,GAAA,EAACnB,cAAA,CAAAoB,UAAU;QAACC,OAAO,EAAEC,8BAAe,CAACC,EAAG;QAACR,KAAK,EAAEC,MAAM,CAAC6B,QAAS;QAAA3B,QAAA,EAC7DS,CAAC,CAAC,4BAA4B;MAAC,CACtB,CAAC;IAAA,CACT,CAAC;EAAA,CACI,CAAC;AAElB,CAAC;AAAAmB,OAAA,CAAApB,eAAA,GAAAA,eAAA;AAED,MAAMV,MAAM,GAAG+B,uBAAU,CAACC,MAAM,CAAC;EAC/B/B,KAAK,EAAE;IACLgC,GAAG,EAAEC,sBAAO,CAAC,KAAK;EACpB,CAAC;EACDvC,KAAK,EAAE;IACL+B,KAAK,EAAEC,qBAAM,CAACC;EAChB,CAAC;EACDhC,KAAK,EAAE;IACL8B,KAAK,EAAEC,qBAAM,CAACQ;EAChB,CAAC;EACDZ,IAAI,EAAE;IACJa,UAAU,EAAE,QAAQ;IACpBC,cAAc,EAAEV,qBAAM,CAACW,SAAS;IAChCC,cAAc,EAAE,CAAC;IACjBC,aAAa,EAAE,KAAK;IACpBP,GAAG,EAAEC,sBAAO,CAAC,KAAK,CAAC;IACnBO,UAAU,EAAEP,sBAAO,CAAC,KAAK;EAC3B,CAAC;EACDL,QAAQ,EAAE;IACRH,KAAK,EAAEC,qBAAM,CAACC,SAAS;IACvBc,UAAU,EAAE;EACd;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,136 @@
|
|
|
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 _reactNativeUi = require("@magmamath/react-native-ui");
|
|
11
|
+
var _i18n = require("../../../../i18n/i18n.js");
|
|
12
|
+
var _profileConstants = require("../../shared/profile.constants.js");
|
|
13
|
+
var _ModalShell = require("./ModalShell.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
|
+
// Raw TextInput cannot take a Typography variant and rn-ui exposes no fontSize token.
|
|
18
|
+
const CODE_INPUT_FONT_SIZE = 32;
|
|
19
|
+
const CODE_BOX_MAX_WIDTH = 64;
|
|
20
|
+
const JoinClassModal = ({
|
|
21
|
+
modal: {
|
|
22
|
+
closeModal,
|
|
23
|
+
params
|
|
24
|
+
}
|
|
25
|
+
}) => {
|
|
26
|
+
const t = (0, _i18n.useText)();
|
|
27
|
+
const {
|
|
28
|
+
model
|
|
29
|
+
} = params;
|
|
30
|
+
const {
|
|
31
|
+
code,
|
|
32
|
+
isComplete,
|
|
33
|
+
isPending
|
|
34
|
+
} = (0, _effectorReact.useUnit)({
|
|
35
|
+
code: model.joinClass.$code,
|
|
36
|
+
isComplete: model.joinClass.$isComplete,
|
|
37
|
+
isPending: model.api.joinClassFx.pending
|
|
38
|
+
});
|
|
39
|
+
const inputsRef = (0, _react.useRef)([]);
|
|
40
|
+
(0, _react.useEffect)(() => {
|
|
41
|
+
const subscription = model.api.joinClassFx.done.watch(() => closeModal());
|
|
42
|
+
return () => subscription.unsubscribe();
|
|
43
|
+
}, [model, closeModal]);
|
|
44
|
+
const closeAndReset = () => {
|
|
45
|
+
model.joinClass.reset();
|
|
46
|
+
closeModal();
|
|
47
|
+
};
|
|
48
|
+
const focusIndex = index => {
|
|
49
|
+
if (index < 0 || index >= _profileConstants.CLASS_CODE_LENGTH) return;
|
|
50
|
+
inputsRef.current[index]?.focus();
|
|
51
|
+
};
|
|
52
|
+
const chars = Array.from({
|
|
53
|
+
length: _profileConstants.CLASS_CODE_LENGTH
|
|
54
|
+
}, (_, index) => code[index] ?? '');
|
|
55
|
+
const changeChar = (index, text) => {
|
|
56
|
+
const clean = text.replace(/\s/g, '');
|
|
57
|
+
if (clean.length > 1) {
|
|
58
|
+
const pasted = clean.slice(0, _profileConstants.CLASS_CODE_LENGTH);
|
|
59
|
+
model.joinClass.setCode(pasted);
|
|
60
|
+
focusIndex(Math.min(pasted.length, _profileConstants.CLASS_CODE_LENGTH - 1));
|
|
61
|
+
return;
|
|
62
|
+
}
|
|
63
|
+
const next = (code.slice(0, index) + clean + code.slice(index + 1)).slice(0, _profileConstants.CLASS_CODE_LENGTH);
|
|
64
|
+
model.joinClass.setCode(next);
|
|
65
|
+
if (clean) focusIndex(index + 1);
|
|
66
|
+
};
|
|
67
|
+
const handleBackspace = (index, event) => {
|
|
68
|
+
if (event.nativeEvent.key !== 'Backspace' || chars[index] || index === 0) return;
|
|
69
|
+
model.joinClass.setCode(code.slice(0, index - 1) + code.slice(index));
|
|
70
|
+
focusIndex(index - 1);
|
|
71
|
+
};
|
|
72
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_ModalShell.ModalShell, {
|
|
73
|
+
title: t('profile.joinClassTitle'),
|
|
74
|
+
onClose: closeAndReset,
|
|
75
|
+
style: styles.card,
|
|
76
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
77
|
+
style: styles.boxes,
|
|
78
|
+
children: chars.map((char, index) => /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.TextInput, {
|
|
79
|
+
ref: input => {
|
|
80
|
+
inputsRef.current[index] = input;
|
|
81
|
+
},
|
|
82
|
+
style: styles.box,
|
|
83
|
+
value: char,
|
|
84
|
+
onChangeText: text => changeChar(index, text),
|
|
85
|
+
onKeyPress: event => handleBackspace(index, event),
|
|
86
|
+
maxLength: _profileConstants.CLASS_CODE_LENGTH,
|
|
87
|
+
autoCapitalize: "characters",
|
|
88
|
+
autoCorrect: false,
|
|
89
|
+
textAlign: "center",
|
|
90
|
+
accessibilityLabel: t('profile.joinClassTitle')
|
|
91
|
+
}, index))
|
|
92
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeUi.ReanimatedButton, {
|
|
93
|
+
variant: _reactNativeUi.ButtonVariant.PRIMARY,
|
|
94
|
+
colorScheme: _reactNativeUi.ButtonColor.ORANGE,
|
|
95
|
+
size: _reactNativeUi.ButtonSize.LARGE,
|
|
96
|
+
onPress: () => model.joinClass.submit(),
|
|
97
|
+
disabled: !isComplete,
|
|
98
|
+
isLoading: isPending,
|
|
99
|
+
style: buttonStyle,
|
|
100
|
+
children: t('profile.joinClassButton')
|
|
101
|
+
})]
|
|
102
|
+
});
|
|
103
|
+
};
|
|
104
|
+
exports.JoinClassModal = JoinClassModal;
|
|
105
|
+
const styles = _reactNative.StyleSheet.create({
|
|
106
|
+
card: {
|
|
107
|
+
gap: _reactNativeUi.SPACING['800']
|
|
108
|
+
},
|
|
109
|
+
boxes: {
|
|
110
|
+
flexDirection: 'row',
|
|
111
|
+
gap: _reactNativeUi.SPACING['200'],
|
|
112
|
+
justifyContent: 'center'
|
|
113
|
+
},
|
|
114
|
+
box: {
|
|
115
|
+
aspectRatio: 0.85,
|
|
116
|
+
borderColor: _reactNativeUi.COLORS.NEUTRAL_4,
|
|
117
|
+
borderRadius: _reactNativeUi.BORDER_RADIUS['300'],
|
|
118
|
+
borderWidth: 1,
|
|
119
|
+
color: _reactNativeUi.COLORS.NEUTRAL_9,
|
|
120
|
+
flex: 1,
|
|
121
|
+
fontFamily: _reactNativeUi.FONT_FAMILY.buenosAires,
|
|
122
|
+
fontSize: CODE_INPUT_FONT_SIZE,
|
|
123
|
+
maxWidth: CODE_BOX_MAX_WIDTH
|
|
124
|
+
},
|
|
125
|
+
alignCenter: {
|
|
126
|
+
alignSelf: 'center'
|
|
127
|
+
},
|
|
128
|
+
text: {
|
|
129
|
+
textTransform: 'uppercase'
|
|
130
|
+
}
|
|
131
|
+
});
|
|
132
|
+
const buttonStyle = {
|
|
133
|
+
button: styles.alignCenter,
|
|
134
|
+
text: styles.text
|
|
135
|
+
};
|
|
136
|
+
//# sourceMappingURL=JoinClassModal.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_effectorReact","_reactNativeUi","_i18n","_profileConstants","_ModalShell","_jsxRuntime","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","CODE_INPUT_FONT_SIZE","CODE_BOX_MAX_WIDTH","JoinClassModal","modal","closeModal","params","useText","model","code","isComplete","isPending","useUnit","joinClass","$code","$isComplete","api","joinClassFx","pending","inputsRef","useRef","useEffect","subscription","done","watch","unsubscribe","closeAndReset","reset","focusIndex","index","CLASS_CODE_LENGTH","current","focus","chars","Array","from","length","_","changeChar","text","clean","replace","pasted","slice","setCode","Math","min","next","handleBackspace","event","nativeEvent","key","jsxs","ModalShell","title","onClose","style","styles","card","children","jsx","View","boxes","map","char","TextInput","ref","input","box","value","onChangeText","onKeyPress","maxLength","autoCapitalize","autoCorrect","textAlign","accessibilityLabel","ReanimatedButton","variant","ButtonVariant","PRIMARY","colorScheme","ButtonColor","ORANGE","size","ButtonSize","LARGE","onPress","submit","disabled","isLoading","buttonStyle","exports","StyleSheet","create","gap","SPACING","flexDirection","justifyContent","aspectRatio","borderColor","COLORS","NEUTRAL_4","borderRadius","BORDER_RADIUS","borderWidth","color","NEUTRAL_9","flex","fontFamily","FONT_FAMILY","buenosAires","fontSize","maxWidth","alignCenter","alignSelf","textTransform","button"],"sourceRoot":"../../../../../../src","sources":["features/profile/components/modals/JoinClassModal.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAOA,IAAAE,cAAA,GAAAF,OAAA;AACA,IAAAG,cAAA,GAAAH,OAAA;AAWA,IAAAI,KAAA,GAAAJ,OAAA;AACA,IAAAK,iBAAA,GAAAL,OAAA;AAEA,IAAAM,WAAA,GAAAN,OAAA;AAAyC,IAAAO,WAAA,GAAAP,OAAA;AAAA,SAAAQ,yBAAAC,CAAA,6BAAAC,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,CAAAC,CAAA,WAAAA,CAAA,GAAAG,CAAA,GAAAD,CAAA,KAAAF,CAAA;AAAA,SAAAV,wBAAAU,CAAA,EAAAE,CAAA,SAAAA,CAAA,IAAAF,CAAA,IAAAA,CAAA,CAAAI,UAAA,SAAAJ,CAAA,eAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,WAAAK,OAAA,EAAAL,CAAA,QAAAG,CAAA,GAAAJ,wBAAA,CAAAG,CAAA,OAAAC,CAAA,IAAAA,CAAA,CAAAG,GAAA,CAAAN,CAAA,UAAAG,CAAA,CAAAI,GAAA,CAAAP,CAAA,OAAAQ,CAAA,KAAAC,SAAA,UAAAC,CAAA,GAAAC,MAAA,CAAAC,cAAA,IAAAD,MAAA,CAAAE,wBAAA,WAAAC,CAAA,IAAAd,CAAA,oBAAAc,CAAA,OAAAC,cAAA,CAAAC,IAAA,CAAAhB,CAAA,EAAAc,CAAA,SAAAG,CAAA,GAAAP,CAAA,GAAAC,MAAA,CAAAE,wB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aAAa,EAAE;EACjB;AACF,CAAC,CAAC;AAEF,MAAMzB,WAAW,GAAG;EAAE0B,MAAM,EAAE5D,MAAM,CAACyD,WAAW;EAAE3E,IAAI,EAAEkB,MAAM,CAAClB;AAAK,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.ModalShell = 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 CLOSE_ICON_SIZE = 18;
|
|
13
|
+
const ModalShell = ({
|
|
14
|
+
title,
|
|
15
|
+
onClose,
|
|
16
|
+
children,
|
|
17
|
+
style
|
|
18
|
+
}) => /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
19
|
+
style: [styles.card, style],
|
|
20
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeUi.Typography, {
|
|
21
|
+
variant: _reactNativeUi.HeadingVariants.H2,
|
|
22
|
+
align: "center",
|
|
23
|
+
style: styles.title,
|
|
24
|
+
children: title
|
|
25
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Pressable, {
|
|
26
|
+
style: styles.close,
|
|
27
|
+
onPress: onClose,
|
|
28
|
+
accessibilityRole: "button",
|
|
29
|
+
hitSlop: _reactNativeUi.SPACING['200'],
|
|
30
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeUi.CrossIcon, {
|
|
31
|
+
size: CLOSE_ICON_SIZE,
|
|
32
|
+
color: _reactNativeUi.COLORS.NEUTRAL_7
|
|
33
|
+
})
|
|
34
|
+
}), children]
|
|
35
|
+
});
|
|
36
|
+
exports.ModalShell = ModalShell;
|
|
37
|
+
const styles = _reactNative.StyleSheet.create({
|
|
38
|
+
card: {
|
|
39
|
+
backgroundColor: _reactNativeUi.COLORS.NEUTRAL_1,
|
|
40
|
+
borderRadius: _reactNativeUi.BORDER_RADIUS['400'],
|
|
41
|
+
gap: _reactNativeUi.SPACING['600'],
|
|
42
|
+
maxWidth: 530,
|
|
43
|
+
paddingHorizontal: _reactNativeUi.SPACING['800'],
|
|
44
|
+
paddingVertical: _reactNativeUi.SPACING['800'],
|
|
45
|
+
width: '100%',
|
|
46
|
+
..._reactNativeUi.SHADOWS['5']
|
|
47
|
+
},
|
|
48
|
+
title: {
|
|
49
|
+
color: _reactNativeUi.COLORS.NEUTRAL_9
|
|
50
|
+
},
|
|
51
|
+
close: {
|
|
52
|
+
position: 'absolute',
|
|
53
|
+
right: _reactNativeUi.SPACING['400'],
|
|
54
|
+
top: _reactNativeUi.SPACING['400']
|
|
55
|
+
}
|
|
56
|
+
});
|
|
57
|
+
//# sourceMappingURL=ModalShell.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_reactNativeUi","_jsxRuntime","e","__esModule","default","CLOSE_ICON_SIZE","ModalShell","title","onClose","children","style","jsxs","View","styles","card","jsx","Typography","variant","HeadingVariants","H2","align","Pressable","close","onPress","accessibilityRole","hitSlop","SPACING","CrossIcon","size","color","COLORS","NEUTRAL_7","exports","StyleSheet","create","backgroundColor","NEUTRAL_1","borderRadius","BORDER_RADIUS","gap","maxWidth","paddingHorizontal","paddingVertical","width","SHADOWS","NEUTRAL_9","position","right","top"],"sourceRoot":"../../../../../../src","sources":["features/profile/components/modals/ModalShell.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,cAAA,GAAAF,OAAA;AAQm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