@magmamath/students-features 0.5.7-rc-1 → 0.5.7
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/celebrations/components/ParticleBatch.js.map +1 -1
- package/dist/commonjs/features/celebrations/components/Spark.js +8 -11
- package/dist/commonjs/features/celebrations/components/Spark.js.map +1 -1
- package/dist/commonjs/features/endOfAssignment/components/Modal/assets/SunrisingIcon.js +4 -6
- package/dist/commonjs/features/endOfAssignment/components/Modal/assets/SunrisingIcon.js.map +1 -1
- package/dist/commonjs/features/endOfAssignment/components/Modal/assets/TrophyIcon.js +4 -6
- package/dist/commonjs/features/endOfAssignment/components/Modal/assets/TrophyIcon.js.map +1 -1
- package/dist/commonjs/features/endOfAssignment/ui/SparkIcon.js.map +1 -1
- package/dist/commonjs/features/endOfAssignment/ui/ThumbUpIcon.js.map +1 -1
- package/dist/commonjs/features/formulaSheet/components/FormulaSheet.js +54 -0
- package/dist/commonjs/features/formulaSheet/components/FormulaSheet.js.map +1 -0
- package/dist/commonjs/features/formulaSheet/components/FormulaSheetModal.js +64 -0
- package/dist/commonjs/features/formulaSheet/components/FormulaSheetModal.js.map +1 -0
- package/dist/commonjs/features/formulaSheet/index.js +20 -0
- package/dist/commonjs/features/formulaSheet/index.js.map +1 -0
- package/dist/commonjs/features/formulaSheet/model/api.model.js +15 -0
- package/dist/commonjs/features/formulaSheet/model/api.model.js.map +1 -0
- package/dist/commonjs/features/formulaSheet/model/file.model.js +19 -0
- package/dist/commonjs/features/formulaSheet/model/file.model.js.map +1 -0
- package/dist/commonjs/features/formulaSheet/model/modal.model.js +15 -0
- package/dist/commonjs/features/formulaSheet/model/modal.model.js.map +1 -0
- package/dist/commonjs/features/formulaSheet/model/model.js +35 -0
- package/dist/commonjs/features/formulaSheet/model/model.js.map +1 -0
- package/dist/commonjs/index.js +1 -1
- package/dist/commonjs/shared/icons/Halloween.js.map +1 -1
- package/dist/commonjs/shared/icons/MessageBubbleIcon.js.map +1 -1
- package/dist/commonjs/shared/icons/Pi.js +1 -3
- package/dist/commonjs/shared/icons/Pi.js.map +1 -1
- package/dist/commonjs/shared/icons/Star.js.map +1 -1
- package/dist/commonjs/shared/icons/Valentine.js +1 -3
- package/dist/commonjs/shared/icons/Valentine.js.map +1 -1
- package/dist/commonjs/shared/icons/Winter.js +1 -3
- package/dist/commonjs/shared/icons/Winter.js.map +1 -1
- package/dist/commonjs/shared/icons/XCloseIcon.js.map +1 -1
- package/dist/module/features/celebrations/components/ParticleBatch.js.map +1 -1
- package/dist/module/features/celebrations/components/Spark.js +8 -11
- package/dist/module/features/celebrations/components/Spark.js.map +1 -1
- package/dist/module/features/endOfAssignment/components/Modal/assets/SunrisingIcon.js +4 -6
- package/dist/module/features/endOfAssignment/components/Modal/assets/SunrisingIcon.js.map +1 -1
- package/dist/module/features/endOfAssignment/components/Modal/assets/TrophyIcon.js +4 -6
- package/dist/module/features/endOfAssignment/components/Modal/assets/TrophyIcon.js.map +1 -1
- package/dist/module/features/endOfAssignment/ui/SparkIcon.js.map +1 -1
- package/dist/module/features/endOfAssignment/ui/ThumbUpIcon.js.map +1 -1
- package/dist/module/features/formulaSheet/components/FormulaSheet.js +48 -0
- package/dist/module/features/formulaSheet/components/FormulaSheet.js.map +1 -0
- package/dist/module/features/formulaSheet/components/FormulaSheetModal.js +58 -0
- package/dist/module/features/formulaSheet/components/FormulaSheetModal.js.map +1 -0
- package/dist/module/features/formulaSheet/index.js +5 -0
- package/dist/module/features/formulaSheet/index.js.map +1 -0
- package/dist/module/features/formulaSheet/model/api.model.js +10 -0
- package/dist/module/features/formulaSheet/model/api.model.js.map +1 -0
- package/dist/module/features/formulaSheet/model/file.model.js +14 -0
- package/dist/module/features/formulaSheet/model/file.model.js.map +1 -0
- package/dist/module/features/formulaSheet/model/modal.model.js +10 -0
- package/dist/module/features/formulaSheet/model/modal.model.js.map +1 -0
- package/dist/module/features/formulaSheet/model/model.js +30 -0
- package/dist/module/features/formulaSheet/model/model.js.map +1 -0
- package/dist/module/index.js +1 -1
- package/dist/module/index.js.map +1 -1
- package/dist/module/shared/icons/Halloween.js.map +1 -1
- package/dist/module/shared/icons/MessageBubbleIcon.js.map +1 -1
- package/dist/module/shared/icons/Pi.js +1 -3
- package/dist/module/shared/icons/Pi.js.map +1 -1
- package/dist/module/shared/icons/Star.js.map +1 -1
- package/dist/module/shared/icons/Valentine.js +1 -3
- package/dist/module/shared/icons/Valentine.js.map +1 -1
- package/dist/module/shared/icons/Winter.js +1 -3
- package/dist/module/shared/icons/Winter.js.map +1 -1
- package/dist/module/shared/icons/XCloseIcon.js.map +1 -1
- package/dist/typescript/commonjs/features/celebrations/components/ParticleBatch.d.ts +1 -1
- package/dist/typescript/commonjs/features/celebrations/components/ParticleBatch.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/celebrations/components/Spark.d.ts +1 -1
- package/dist/typescript/commonjs/features/celebrations/components/Spark.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/endOfAssignment/components/Modal/assets/SunrisingIcon.d.ts +2 -2
- package/dist/typescript/commonjs/features/endOfAssignment/components/Modal/assets/SunrisingIcon.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/endOfAssignment/components/Modal/assets/TrophyIcon.d.ts +2 -2
- package/dist/typescript/commonjs/features/endOfAssignment/components/Modal/assets/TrophyIcon.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/endOfAssignment/ui/SparkIcon.d.ts +1 -1
- package/dist/typescript/commonjs/features/endOfAssignment/ui/SparkIcon.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/endOfAssignment/ui/ThumbUpIcon.d.ts +1 -1
- package/dist/typescript/commonjs/features/endOfAssignment/ui/ThumbUpIcon.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/formulaSheet/components/FormulaSheet.d.ts +16 -0
- package/dist/typescript/commonjs/features/formulaSheet/components/FormulaSheet.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/formulaSheet/components/FormulaSheetModal.d.ts +10 -0
- package/dist/typescript/commonjs/features/formulaSheet/components/FormulaSheetModal.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/formulaSheet/index.d.ts +3 -0
- package/dist/typescript/commonjs/features/formulaSheet/index.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/formulaSheet/model/api.model.d.ts +9 -0
- package/dist/typescript/commonjs/features/formulaSheet/model/api.model.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/formulaSheet/model/file.model.d.ts +14 -0
- package/dist/typescript/commonjs/features/formulaSheet/model/file.model.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/formulaSheet/model/modal.model.d.ts +7 -0
- package/dist/typescript/commonjs/features/formulaSheet/model/modal.model.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/formulaSheet/model/model.d.ts +14 -0
- package/dist/typescript/commonjs/features/formulaSheet/model/model.d.ts.map +1 -0
- package/dist/typescript/commonjs/index.d.ts +1 -1
- package/dist/typescript/commonjs/index.d.ts.map +1 -1
- package/dist/typescript/commonjs/shared/icons/Halloween.d.ts +1 -1
- package/dist/typescript/commonjs/shared/icons/Halloween.d.ts.map +1 -1
- package/dist/typescript/commonjs/shared/icons/MessageBubbleIcon.d.ts +1 -1
- package/dist/typescript/commonjs/shared/icons/MessageBubbleIcon.d.ts.map +1 -1
- package/dist/typescript/commonjs/shared/icons/Pi.d.ts +1 -1
- package/dist/typescript/commonjs/shared/icons/Pi.d.ts.map +1 -1
- package/dist/typescript/commonjs/shared/icons/Star.d.ts +1 -1
- package/dist/typescript/commonjs/shared/icons/Star.d.ts.map +1 -1
- package/dist/typescript/commonjs/shared/icons/Valentine.d.ts +1 -1
- package/dist/typescript/commonjs/shared/icons/Valentine.d.ts.map +1 -1
- package/dist/typescript/commonjs/shared/icons/Winter.d.ts +1 -1
- package/dist/typescript/commonjs/shared/icons/Winter.d.ts.map +1 -1
- package/dist/typescript/commonjs/shared/icons/XCloseIcon.d.ts +1 -1
- package/dist/typescript/commonjs/shared/icons/XCloseIcon.d.ts.map +1 -1
- package/dist/typescript/module/features/celebrations/components/ParticleBatch.d.ts +1 -1
- package/dist/typescript/module/features/celebrations/components/ParticleBatch.d.ts.map +1 -1
- package/dist/typescript/module/features/celebrations/components/Spark.d.ts +1 -1
- package/dist/typescript/module/features/celebrations/components/Spark.d.ts.map +1 -1
- package/dist/typescript/module/features/endOfAssignment/components/Modal/assets/SunrisingIcon.d.ts +2 -2
- package/dist/typescript/module/features/endOfAssignment/components/Modal/assets/SunrisingIcon.d.ts.map +1 -1
- package/dist/typescript/module/features/endOfAssignment/components/Modal/assets/TrophyIcon.d.ts +2 -2
- package/dist/typescript/module/features/endOfAssignment/components/Modal/assets/TrophyIcon.d.ts.map +1 -1
- package/dist/typescript/module/features/endOfAssignment/ui/SparkIcon.d.ts +1 -1
- package/dist/typescript/module/features/endOfAssignment/ui/SparkIcon.d.ts.map +1 -1
- package/dist/typescript/module/features/endOfAssignment/ui/ThumbUpIcon.d.ts +1 -1
- package/dist/typescript/module/features/endOfAssignment/ui/ThumbUpIcon.d.ts.map +1 -1
- package/dist/typescript/module/features/formulaSheet/components/FormulaSheet.d.ts +16 -0
- package/dist/typescript/module/features/formulaSheet/components/FormulaSheet.d.ts.map +1 -0
- package/dist/typescript/module/features/formulaSheet/components/FormulaSheetModal.d.ts +10 -0
- package/dist/typescript/module/features/formulaSheet/components/FormulaSheetModal.d.ts.map +1 -0
- package/dist/typescript/module/features/formulaSheet/index.d.ts +3 -0
- package/dist/typescript/module/features/formulaSheet/index.d.ts.map +1 -0
- package/dist/typescript/module/features/formulaSheet/model/api.model.d.ts +9 -0
- package/dist/typescript/module/features/formulaSheet/model/api.model.d.ts.map +1 -0
- package/dist/typescript/module/features/formulaSheet/model/file.model.d.ts +14 -0
- package/dist/typescript/module/features/formulaSheet/model/file.model.d.ts.map +1 -0
- package/dist/typescript/module/features/formulaSheet/model/modal.model.d.ts +7 -0
- package/dist/typescript/module/features/formulaSheet/model/modal.model.d.ts.map +1 -0
- package/dist/typescript/module/features/formulaSheet/model/model.d.ts +14 -0
- package/dist/typescript/module/features/formulaSheet/model/model.d.ts.map +1 -0
- package/dist/typescript/module/index.d.ts +1 -1
- package/dist/typescript/module/index.d.ts.map +1 -1
- package/dist/typescript/module/shared/icons/Halloween.d.ts +1 -1
- package/dist/typescript/module/shared/icons/Halloween.d.ts.map +1 -1
- package/dist/typescript/module/shared/icons/MessageBubbleIcon.d.ts +1 -1
- package/dist/typescript/module/shared/icons/MessageBubbleIcon.d.ts.map +1 -1
- package/dist/typescript/module/shared/icons/Pi.d.ts +1 -1
- package/dist/typescript/module/shared/icons/Pi.d.ts.map +1 -1
- package/dist/typescript/module/shared/icons/Star.d.ts +1 -1
- package/dist/typescript/module/shared/icons/Star.d.ts.map +1 -1
- package/dist/typescript/module/shared/icons/Valentine.d.ts +1 -1
- package/dist/typescript/module/shared/icons/Valentine.d.ts.map +1 -1
- package/dist/typescript/module/shared/icons/Winter.d.ts +1 -1
- package/dist/typescript/module/shared/icons/Winter.d.ts.map +1 -1
- package/dist/typescript/module/shared/icons/XCloseIcon.d.ts +1 -1
- package/dist/typescript/module/shared/icons/XCloseIcon.d.ts.map +1 -1
- package/package.json +2 -2
- package/src/features/celebrations/components/ParticleBatch.tsx +1 -1
- package/src/features/celebrations/components/Spark.tsx +11 -15
- package/src/features/endOfAssignment/components/Modal/assets/SunrisingIcon.tsx +4 -5
- package/src/features/endOfAssignment/components/Modal/assets/TrophyIcon.tsx +4 -5
- package/src/features/endOfAssignment/ui/SparkIcon.tsx +1 -2
- package/src/features/endOfAssignment/ui/ThumbUpIcon.tsx +2 -2
- package/src/features/formulaSheet/components/FormulaSheet.tsx +78 -0
- package/src/features/formulaSheet/components/FormulaSheetModal.tsx +64 -0
- package/src/features/formulaSheet/index.ts +2 -0
- package/src/features/formulaSheet/model/api.model.ts +13 -0
- package/src/features/formulaSheet/model/file.model.ts +18 -0
- package/src/features/formulaSheet/model/modal.model.ts +10 -0
- package/src/features/formulaSheet/model/model.ts +31 -0
- package/src/index.ts +1 -1
- package/src/shared/icons/Halloween.tsx +2 -2
- package/src/shared/icons/MessageBubbleIcon.tsx +6 -5
- package/src/shared/icons/Pi.tsx +3 -5
- package/src/shared/icons/Star.tsx +2 -1
- package/src/shared/icons/Valentine.tsx +3 -5
- package/src/shared/icons/Winter.tsx +3 -7
- package/src/shared/icons/XCloseIcon.tsx +4 -3
- package/dist/commonjs/features/problemSelector/components/ProblemSelector.js +0 -43
- package/dist/commonjs/features/problemSelector/components/ProblemSelector.js.map +0 -1
- package/dist/commonjs/features/problemSelector/components/ProblemSelectorButton.js +0 -69
- package/dist/commonjs/features/problemSelector/components/ProblemSelectorButton.js.map +0 -1
- package/dist/commonjs/features/problemSelector/constants.js +0 -220
- package/dist/commonjs/features/problemSelector/constants.js.map +0 -1
- package/dist/commonjs/features/problemSelector/index.js +0 -20
- package/dist/commonjs/features/problemSelector/index.js.map +0 -1
- package/dist/commonjs/features/problemSelector/types.js +0 -6
- package/dist/commonjs/features/problemSelector/types.js.map +0 -1
- package/dist/commonjs/shared/icons/LockIcon.js +0 -31
- package/dist/commonjs/shared/icons/LockIcon.js.map +0 -1
- package/dist/module/features/problemSelector/components/ProblemSelector.js +0 -36
- package/dist/module/features/problemSelector/components/ProblemSelector.js.map +0 -1
- package/dist/module/features/problemSelector/components/ProblemSelectorButton.js +0 -63
- package/dist/module/features/problemSelector/components/ProblemSelectorButton.js.map +0 -1
- package/dist/module/features/problemSelector/constants.js +0 -216
- package/dist/module/features/problemSelector/constants.js.map +0 -1
- package/dist/module/features/problemSelector/index.js +0 -5
- package/dist/module/features/problemSelector/index.js.map +0 -1
- package/dist/module/features/problemSelector/types.js +0 -4
- package/dist/module/features/problemSelector/types.js.map +0 -1
- package/dist/module/shared/icons/LockIcon.js +0 -23
- package/dist/module/shared/icons/LockIcon.js.map +0 -1
- package/dist/typescript/commonjs/features/problemSelector/components/ProblemSelector.d.ts +0 -8
- package/dist/typescript/commonjs/features/problemSelector/components/ProblemSelector.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/problemSelector/components/ProblemSelectorButton.d.ts +0 -4
- package/dist/typescript/commonjs/features/problemSelector/components/ProblemSelectorButton.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/problemSelector/constants.d.ts +0 -22
- package/dist/typescript/commonjs/features/problemSelector/constants.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/problemSelector/index.d.ts +0 -4
- package/dist/typescript/commonjs/features/problemSelector/index.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/problemSelector/types.d.ts +0 -11
- package/dist/typescript/commonjs/features/problemSelector/types.d.ts.map +0 -1
- package/dist/typescript/commonjs/shared/icons/LockIcon.d.ts +0 -4
- package/dist/typescript/commonjs/shared/icons/LockIcon.d.ts.map +0 -1
- package/dist/typescript/module/features/problemSelector/components/ProblemSelector.d.ts +0 -8
- package/dist/typescript/module/features/problemSelector/components/ProblemSelector.d.ts.map +0 -1
- package/dist/typescript/module/features/problemSelector/components/ProblemSelectorButton.d.ts +0 -4
- package/dist/typescript/module/features/problemSelector/components/ProblemSelectorButton.d.ts.map +0 -1
- package/dist/typescript/module/features/problemSelector/constants.d.ts +0 -22
- package/dist/typescript/module/features/problemSelector/constants.d.ts.map +0 -1
- package/dist/typescript/module/features/problemSelector/index.d.ts +0 -4
- package/dist/typescript/module/features/problemSelector/index.d.ts.map +0 -1
- package/dist/typescript/module/features/problemSelector/types.d.ts +0 -11
- package/dist/typescript/module/features/problemSelector/types.d.ts.map +0 -1
- package/dist/typescript/module/shared/icons/LockIcon.d.ts +0 -4
- package/dist/typescript/module/shared/icons/LockIcon.d.ts.map +0 -1
- package/src/features/problemSelector/components/ProblemSelector.tsx +0 -37
- package/src/features/problemSelector/components/ProblemSelectorButton.tsx +0 -81
- package/src/features/problemSelector/constants.ts +0 -216
- package/src/features/problemSelector/index.ts +0 -3
- package/src/features/problemSelector/types.ts +0 -13
- package/src/shared/icons/LockIcon.tsx +0 -16
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["ProblemSelector","PROBLEM_SELECTOR_BUTTON_STATE"],"sourceRoot":"../../../../src","sources":["features/problemSelector/index.ts"],"mappings":";;AAAA,SAASA,eAAe,QAAQ,iCAA8B;AAC9D,SAASC,6BAA6B,QAAQ,gBAAa","ignoreList":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":[],"sourceRoot":"../../../../src","sources":["features/problemSelector/types.ts"],"mappings":"","ignoreList":[]}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
import React from 'react';
|
|
4
|
-
import Svg, { Path } from 'react-native-svg';
|
|
5
|
-
import { COLORS } from '@magmamath/react-native-ui';
|
|
6
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
7
|
-
export const LockIcon = ({
|
|
8
|
-
width = 22,
|
|
9
|
-
height = 24,
|
|
10
|
-
color = COLORS.NEUTRAL_6
|
|
11
|
-
}) => /*#__PURE__*/_jsx(Svg, {
|
|
12
|
-
width: width,
|
|
13
|
-
height: height,
|
|
14
|
-
viewBox: "0 0 24 28",
|
|
15
|
-
fill: "none",
|
|
16
|
-
children: /*#__PURE__*/_jsx(Path, {
|
|
17
|
-
fillRule: "evenodd",
|
|
18
|
-
clipRule: "evenodd",
|
|
19
|
-
d: "M4.183 8.91H3.44A2.578 2.578 0 00.862 11.49v11.068a2.578 2.578 0 002.578 2.578h17.12a2.578 2.578 0 002.578-2.578V11.49a2.578 2.578 0 00-2.578-2.578h-.743c-.119-1.421-.391-3.307-1.374-4.897C17.304 2.172 15.303.864 12 .864c-3.304 0-5.304 1.308-6.443 3.15-.983 1.59-1.255 3.476-1.374 4.897zm2.008 0h11.618c-.12-1.303-.369-2.714-1.067-3.844C16.002 3.87 14.68 2.864 12 2.864c-2.68 0-4.003 1.006-4.742 2.202-.699 1.13-.947 2.54-1.067 3.845zm-2.75 2H20.56c.319 0 .578.26.578.579v11.068c0 .32-.26.578-.578.578H3.44a.578.578 0 01-.578-.578V11.49c0-.32.26-.578.578-.578z",
|
|
20
|
-
fill: color
|
|
21
|
-
})
|
|
22
|
-
});
|
|
23
|
-
//# sourceMappingURL=LockIcon.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["React","Svg","Path","COLORS","jsx","_jsx","LockIcon","width","height","color","NEUTRAL_6","viewBox","fill","children","fillRule","clipRule","d"],"sourceRoot":"../../../../src","sources":["shared/icons/LockIcon.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,GAAG,IAAIC,IAAI,QAAQ,kBAAkB;AAC5C,SAASC,MAAM,QAAQ,4BAA4B;AAAA,SAAAC,GAAA,IAAAC,IAAA;AAInD,OAAO,MAAMC,QAAQ,GAAGA,CAAC;EAAEC,KAAK,GAAG,EAAE;EAAEC,MAAM,GAAG,EAAE;EAAEC,KAAK,GAAGN,MAAM,CAACO;AAAqB,CAAC,kBACvFL,IAAA,CAACJ,GAAG;EAACM,KAAK,EAAEA,KAAM;EAACC,MAAM,EAAEA,MAAO;EAACG,OAAO,EAAC,WAAW;EAACC,IAAI,EAAC,MAAM;EAAAC,QAAA,eAChER,IAAA,CAACH,IAAI;IACHY,QAAQ,EAAC,SAAS;IAClBC,QAAQ,EAAC,SAAS;IAClBC,CAAC,EAAC,kjBAAkjB;IACpjBJ,IAAI,EAAEH;EAAM,CACb;AAAC,CACC,CACN","ignoreList":[]}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { ProblemSelectorButtonProps } from '../types';
|
|
3
|
-
type ProblemSelectorProps = {
|
|
4
|
-
buttons: ProblemSelectorButtonProps[];
|
|
5
|
-
};
|
|
6
|
-
export declare const ProblemSelector: ({ buttons }: ProblemSelectorProps) => React.JSX.Element | null;
|
|
7
|
-
export {};
|
|
8
|
-
//# sourceMappingURL=ProblemSelector.d.ts.map
|
package/dist/typescript/commonjs/features/problemSelector/components/ProblemSelector.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ProblemSelector.d.ts","sourceRoot":"","sources":["../../../../../../src/features/problemSelector/components/ProblemSelector.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAOzB,OAAO,EAAE,0BAA0B,EAAE,MAAM,UAAU,CAAA;AAErD,KAAK,oBAAoB,GAAG;IAC1B,OAAO,EAAE,0BAA0B,EAAE,CAAA;CACtC,CAAA;AAED,eAAO,MAAM,eAAe,gBAAiB,oBAAoB,6BAYhE,CAAA"}
|
package/dist/typescript/commonjs/features/problemSelector/components/ProblemSelectorButton.d.ts
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { ProblemSelectorButtonProps } from '../types';
|
|
3
|
-
export declare const ProblemSelectorButton: ({ text, state, onClick, badgeValue, locked, }: ProblemSelectorButtonProps) => React.JSX.Element;
|
|
4
|
-
//# sourceMappingURL=ProblemSelectorButton.d.ts.map
|
package/dist/typescript/commonjs/features/problemSelector/components/ProblemSelectorButton.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ProblemSelectorButton.d.ts","sourceRoot":"","sources":["../../../../../../src/features/problemSelector/components/ProblemSelectorButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAezB,OAAO,EAAE,0BAA0B,EAAE,MAAM,UAAU,CAAA;AAErD,eAAO,MAAM,qBAAqB,kDAM/B,0BAA0B,sBA+C5B,CAAA"}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { ButtonColorPreset } from '@magmamath/react-native-ui';
|
|
2
|
-
import { ProblemSelectorButtonState } from './types';
|
|
3
|
-
export declare const BUTTON_SIZE = 49.5;
|
|
4
|
-
export declare const BADGE_COORDINATES: {
|
|
5
|
-
top: number;
|
|
6
|
-
right: number;
|
|
7
|
-
};
|
|
8
|
-
export declare const ICON_SIZE: {
|
|
9
|
-
width: number;
|
|
10
|
-
height: number;
|
|
11
|
-
};
|
|
12
|
-
export declare const PROBLEM_SELECTOR_CONTENT_WIDTH = 265;
|
|
13
|
-
export declare const PROBLEM_SELECTOR_BUTTON_STATE: {
|
|
14
|
-
readonly SELECTED: "selected";
|
|
15
|
-
readonly SOLVED: "solved";
|
|
16
|
-
readonly SOLVED_FIRST_ATTEMPT: "solved-first-attempt";
|
|
17
|
-
readonly NOT_SOLVED: "not-solved";
|
|
18
|
-
readonly MISTAKE: "mistake";
|
|
19
|
-
readonly EXAM: "exam";
|
|
20
|
-
};
|
|
21
|
-
export declare const COLOR_SCHEME_MAP: Record<ProblemSelectorButtonState, ButtonColorPreset>;
|
|
22
|
-
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../src/features/problemSelector/constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAwB,MAAM,4BAA4B,CAAA;AACpF,OAAO,EAAE,0BAA0B,EAAE,MAAM,SAAS,CAAA;AAEpD,eAAO,MAAM,WAAW,OAAO,CAAA;AAC/B,eAAO,MAAM,iBAAiB;;;CAAuB,CAAA;AACrD,eAAO,MAAM,SAAS;;;CAA4B,CAAA;AAClD,eAAO,MAAM,8BAA8B,MAAM,CAAA;AAEjD,eAAO,MAAM,6BAA6B;;;;;;;CAOhC,CAAA;AAEV,eAAO,MAAM,gBAAgB,EAAE,MAAM,CAAC,0BAA0B,EAAE,iBAAiB,CAsMlF,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/problemSelector/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAA;AAC9D,OAAO,EAAE,6BAA6B,EAAE,MAAM,aAAa,CAAA;AAC3D,YAAY,EAAE,0BAA0B,EAAE,0BAA0B,EAAE,MAAM,SAAS,CAAA"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { PROBLEM_SELECTOR_BUTTON_STATE } from './constants';
|
|
2
|
-
export type ProblemSelectorButtonState = (typeof PROBLEM_SELECTOR_BUTTON_STATE)[keyof typeof PROBLEM_SELECTOR_BUTTON_STATE];
|
|
3
|
-
export type ProblemSelectorButtonProps = {
|
|
4
|
-
key: string;
|
|
5
|
-
text: string;
|
|
6
|
-
state: ProblemSelectorButtonState;
|
|
7
|
-
locked: boolean;
|
|
8
|
-
onClick: () => void;
|
|
9
|
-
badgeValue?: number;
|
|
10
|
-
};
|
|
11
|
-
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/features/problemSelector/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,6BAA6B,EAAE,MAAM,aAAa,CAAA;AAE3D,MAAM,MAAM,0BAA0B,GACpC,CAAC,OAAO,6BAA6B,CAAC,CAAC,MAAM,OAAO,6BAA6B,CAAC,CAAA;AAEpF,MAAM,MAAM,0BAA0B,GAAG;IACvC,GAAG,EAAE,MAAM,CAAA;IACX,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,EAAE,0BAA0B,CAAA;IACjC,MAAM,EAAE,OAAO,CAAA;IACf,OAAO,EAAE,MAAM,IAAI,CAAA;IACnB,UAAU,CAAC,EAAE,MAAM,CAAA;CACpB,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"LockIcon.d.ts","sourceRoot":"","sources":["../../../../../src/shared/icons/LockIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAIzB,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA;AAExC,eAAO,MAAM,QAAQ,6BAA2D,SAAS,sBASxF,CAAA"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { ProblemSelectorButtonProps } from '../types';
|
|
3
|
-
type ProblemSelectorProps = {
|
|
4
|
-
buttons: ProblemSelectorButtonProps[];
|
|
5
|
-
};
|
|
6
|
-
export declare const ProblemSelector: ({ buttons }: ProblemSelectorProps) => React.JSX.Element | null;
|
|
7
|
-
export {};
|
|
8
|
-
//# sourceMappingURL=ProblemSelector.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ProblemSelector.d.ts","sourceRoot":"","sources":["../../../../../../src/features/problemSelector/components/ProblemSelector.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAOzB,OAAO,EAAE,0BAA0B,EAAE,MAAM,UAAU,CAAA;AAErD,KAAK,oBAAoB,GAAG;IAC1B,OAAO,EAAE,0BAA0B,EAAE,CAAA;CACtC,CAAA;AAED,eAAO,MAAM,eAAe,gBAAiB,oBAAoB,6BAYhE,CAAA"}
|
package/dist/typescript/module/features/problemSelector/components/ProblemSelectorButton.d.ts
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { ProblemSelectorButtonProps } from '../types';
|
|
3
|
-
export declare const ProblemSelectorButton: ({ text, state, onClick, badgeValue, locked, }: ProblemSelectorButtonProps) => React.JSX.Element;
|
|
4
|
-
//# sourceMappingURL=ProblemSelectorButton.d.ts.map
|
package/dist/typescript/module/features/problemSelector/components/ProblemSelectorButton.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ProblemSelectorButton.d.ts","sourceRoot":"","sources":["../../../../../../src/features/problemSelector/components/ProblemSelectorButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAezB,OAAO,EAAE,0BAA0B,EAAE,MAAM,UAAU,CAAA;AAErD,eAAO,MAAM,qBAAqB,kDAM/B,0BAA0B,sBA+C5B,CAAA"}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { ButtonColorPreset } from '@magmamath/react-native-ui';
|
|
2
|
-
import { ProblemSelectorButtonState } from './types';
|
|
3
|
-
export declare const BUTTON_SIZE = 49.5;
|
|
4
|
-
export declare const BADGE_COORDINATES: {
|
|
5
|
-
top: number;
|
|
6
|
-
right: number;
|
|
7
|
-
};
|
|
8
|
-
export declare const ICON_SIZE: {
|
|
9
|
-
width: number;
|
|
10
|
-
height: number;
|
|
11
|
-
};
|
|
12
|
-
export declare const PROBLEM_SELECTOR_CONTENT_WIDTH = 265;
|
|
13
|
-
export declare const PROBLEM_SELECTOR_BUTTON_STATE: {
|
|
14
|
-
readonly SELECTED: "selected";
|
|
15
|
-
readonly SOLVED: "solved";
|
|
16
|
-
readonly SOLVED_FIRST_ATTEMPT: "solved-first-attempt";
|
|
17
|
-
readonly NOT_SOLVED: "not-solved";
|
|
18
|
-
readonly MISTAKE: "mistake";
|
|
19
|
-
readonly EXAM: "exam";
|
|
20
|
-
};
|
|
21
|
-
export declare const COLOR_SCHEME_MAP: Record<ProblemSelectorButtonState, ButtonColorPreset>;
|
|
22
|
-
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../src/features/problemSelector/constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAwB,MAAM,4BAA4B,CAAA;AACpF,OAAO,EAAE,0BAA0B,EAAE,MAAM,SAAS,CAAA;AAEpD,eAAO,MAAM,WAAW,OAAO,CAAA;AAC/B,eAAO,MAAM,iBAAiB;;;CAAuB,CAAA;AACrD,eAAO,MAAM,SAAS;;;CAA4B,CAAA;AAClD,eAAO,MAAM,8BAA8B,MAAM,CAAA;AAEjD,eAAO,MAAM,6BAA6B;;;;;;;CAOhC,CAAA;AAEV,eAAO,MAAM,gBAAgB,EAAE,MAAM,CAAC,0BAA0B,EAAE,iBAAiB,CAsMlF,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/problemSelector/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAA;AAC9D,OAAO,EAAE,6BAA6B,EAAE,MAAM,aAAa,CAAA;AAC3D,YAAY,EAAE,0BAA0B,EAAE,0BAA0B,EAAE,MAAM,SAAS,CAAA"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { PROBLEM_SELECTOR_BUTTON_STATE } from './constants';
|
|
2
|
-
export type ProblemSelectorButtonState = (typeof PROBLEM_SELECTOR_BUTTON_STATE)[keyof typeof PROBLEM_SELECTOR_BUTTON_STATE];
|
|
3
|
-
export type ProblemSelectorButtonProps = {
|
|
4
|
-
key: string;
|
|
5
|
-
text: string;
|
|
6
|
-
state: ProblemSelectorButtonState;
|
|
7
|
-
locked: boolean;
|
|
8
|
-
onClick: () => void;
|
|
9
|
-
badgeValue?: number;
|
|
10
|
-
};
|
|
11
|
-
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/features/problemSelector/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,6BAA6B,EAAE,MAAM,aAAa,CAAA;AAE3D,MAAM,MAAM,0BAA0B,GACpC,CAAC,OAAO,6BAA6B,CAAC,CAAC,MAAM,OAAO,6BAA6B,CAAC,CAAA;AAEpF,MAAM,MAAM,0BAA0B,GAAG;IACvC,GAAG,EAAE,MAAM,CAAA;IACX,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,EAAE,0BAA0B,CAAA;IACjC,MAAM,EAAE,OAAO,CAAA;IACf,OAAO,EAAE,MAAM,IAAI,CAAA;IACnB,UAAU,CAAC,EAAE,MAAM,CAAA;CACpB,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"LockIcon.d.ts","sourceRoot":"","sources":["../../../../../src/shared/icons/LockIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAIzB,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA;AAExC,eAAO,MAAM,QAAQ,6BAA2D,SAAS,sBASxF,CAAA"}
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import React from 'react'
|
|
2
|
-
import { View, StyleSheet } from 'react-native'
|
|
3
|
-
import { SPACING } from '@magmamath/react-native-ui'
|
|
4
|
-
|
|
5
|
-
import { ProblemSelectorButton } from './ProblemSelectorButton'
|
|
6
|
-
|
|
7
|
-
import { PROBLEM_SELECTOR_CONTENT_WIDTH } from '../constants'
|
|
8
|
-
import { ProblemSelectorButtonProps } from '../types'
|
|
9
|
-
|
|
10
|
-
type ProblemSelectorProps = {
|
|
11
|
-
buttons: ProblemSelectorButtonProps[]
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
export const ProblemSelector = ({ buttons }: ProblemSelectorProps) => {
|
|
15
|
-
if (!buttons.length) return null
|
|
16
|
-
|
|
17
|
-
return (
|
|
18
|
-
<View style={styles.container}>
|
|
19
|
-
<View style={styles.contentContainer}>
|
|
20
|
-
{buttons.map((btn) => (
|
|
21
|
-
<ProblemSelectorButton {...btn} key={btn.key} />
|
|
22
|
-
))}
|
|
23
|
-
</View>
|
|
24
|
-
</View>
|
|
25
|
-
)
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
const styles = StyleSheet.create({
|
|
29
|
-
container: { alignItems: 'center' },
|
|
30
|
-
contentContainer: {
|
|
31
|
-
width: PROBLEM_SELECTOR_CONTENT_WIDTH,
|
|
32
|
-
flexWrap: 'wrap',
|
|
33
|
-
flexDirection: 'row',
|
|
34
|
-
paddingVertical: SPACING[400],
|
|
35
|
-
gap: 15,
|
|
36
|
-
},
|
|
37
|
-
})
|
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
import React from 'react'
|
|
2
|
-
import { View, StyleSheet } from 'react-native'
|
|
3
|
-
|
|
4
|
-
import { UnreadMessagesBadge } from '@magmamath/students-features'
|
|
5
|
-
import {
|
|
6
|
-
Button,
|
|
7
|
-
ButtonSize,
|
|
8
|
-
ButtonStates,
|
|
9
|
-
ButtonVariant,
|
|
10
|
-
Typography,
|
|
11
|
-
} from '@magmamath/react-native-ui'
|
|
12
|
-
|
|
13
|
-
import { BADGE_COORDINATES, BUTTON_SIZE, COLOR_SCHEME_MAP, ICON_SIZE } from '../constants'
|
|
14
|
-
import { LockIcon } from '../../../shared/icons/LockIcon'
|
|
15
|
-
|
|
16
|
-
import { ProblemSelectorButtonProps } from '../types'
|
|
17
|
-
|
|
18
|
-
export const ProblemSelectorButton = ({
|
|
19
|
-
text,
|
|
20
|
-
state,
|
|
21
|
-
onClick,
|
|
22
|
-
badgeValue,
|
|
23
|
-
locked,
|
|
24
|
-
}: ProblemSelectorButtonProps) => {
|
|
25
|
-
const customColorScheme = COLOR_SCHEME_MAP[state]
|
|
26
|
-
|
|
27
|
-
return (
|
|
28
|
-
<View style={styles.wrapper}>
|
|
29
|
-
<Button
|
|
30
|
-
variant={ButtonVariant.PRIMARY}
|
|
31
|
-
size={ButtonSize.MEDIUM}
|
|
32
|
-
customColorScheme={customColorScheme}
|
|
33
|
-
onPress={onClick}
|
|
34
|
-
style={{
|
|
35
|
-
button: styles.button,
|
|
36
|
-
}}
|
|
37
|
-
disabled={locked}
|
|
38
|
-
icon={
|
|
39
|
-
locked ? (
|
|
40
|
-
<LockIcon
|
|
41
|
-
height={ICON_SIZE.height}
|
|
42
|
-
width={ICON_SIZE.width}
|
|
43
|
-
color={customColorScheme[ButtonStates.DISABLED]?.color}
|
|
44
|
-
/>
|
|
45
|
-
) : (
|
|
46
|
-
<Typography
|
|
47
|
-
variant="h2"
|
|
48
|
-
style={{ color: customColorScheme[ButtonStates.DEFAULT]?.color }}
|
|
49
|
-
>
|
|
50
|
-
{text ?? ''}
|
|
51
|
-
</Typography>
|
|
52
|
-
)
|
|
53
|
-
}
|
|
54
|
-
/>
|
|
55
|
-
|
|
56
|
-
{typeof badgeValue === 'number' && (
|
|
57
|
-
<UnreadMessagesBadge
|
|
58
|
-
badgeContent={badgeValue !== 0 ? badgeValue : undefined}
|
|
59
|
-
withBorder
|
|
60
|
-
style={[
|
|
61
|
-
styles.badge,
|
|
62
|
-
{
|
|
63
|
-
top: badgeValue ? 0 : BADGE_COORDINATES.top,
|
|
64
|
-
right: badgeValue ? 0 : BADGE_COORDINATES.right,
|
|
65
|
-
},
|
|
66
|
-
]}
|
|
67
|
-
/>
|
|
68
|
-
)}
|
|
69
|
-
</View>
|
|
70
|
-
)
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
const styles = StyleSheet.create({
|
|
74
|
-
wrapper: { position: 'relative' },
|
|
75
|
-
badge: { position: 'absolute' },
|
|
76
|
-
button: {
|
|
77
|
-
width: BUTTON_SIZE,
|
|
78
|
-
height: BUTTON_SIZE,
|
|
79
|
-
borderWidth: 2.75,
|
|
80
|
-
},
|
|
81
|
-
})
|
|
@@ -1,216 +0,0 @@
|
|
|
1
|
-
import { ButtonColorPreset, ButtonStates, COLORS } from '@magmamath/react-native-ui'
|
|
2
|
-
import { ProblemSelectorButtonState } from './types'
|
|
3
|
-
|
|
4
|
-
export const BUTTON_SIZE = 49.5
|
|
5
|
-
export const BADGE_COORDINATES = { top: 4, right: 4 }
|
|
6
|
-
export const ICON_SIZE = { width: 22, height: 24 }
|
|
7
|
-
export const PROBLEM_SELECTOR_CONTENT_WIDTH = 265
|
|
8
|
-
|
|
9
|
-
export const PROBLEM_SELECTOR_BUTTON_STATE = {
|
|
10
|
-
SELECTED: 'selected',
|
|
11
|
-
SOLVED: 'solved',
|
|
12
|
-
SOLVED_FIRST_ATTEMPT: 'solved-first-attempt',
|
|
13
|
-
NOT_SOLVED: 'not-solved',
|
|
14
|
-
MISTAKE: 'mistake',
|
|
15
|
-
EXAM: 'exam',
|
|
16
|
-
} as const
|
|
17
|
-
|
|
18
|
-
export const COLOR_SCHEME_MAP: Record<ProblemSelectorButtonState, ButtonColorPreset> = {
|
|
19
|
-
[PROBLEM_SELECTOR_BUTTON_STATE.SELECTED]: {
|
|
20
|
-
[ButtonStates.DEFAULT]: {
|
|
21
|
-
backgroundColor: COLORS.BLUE_1,
|
|
22
|
-
borderColor: COLORS.PRIMARY_BLUE,
|
|
23
|
-
color: COLORS.PRIMARY_BLUE,
|
|
24
|
-
raiseColor: COLORS.PRIMARY_BLUE,
|
|
25
|
-
},
|
|
26
|
-
[ButtonStates.HOVER]: {
|
|
27
|
-
backgroundColor: COLORS.BLUE_1,
|
|
28
|
-
borderColor: COLORS.BLUE_4,
|
|
29
|
-
color: COLORS.BLUE_4,
|
|
30
|
-
raiseColor: COLORS.BLUE_4,
|
|
31
|
-
},
|
|
32
|
-
[ButtonStates.ACTIVE]: {
|
|
33
|
-
backgroundColor: COLORS.BLUE_1,
|
|
34
|
-
borderColor: COLORS.BLUE_4,
|
|
35
|
-
color: COLORS.BLUE_4,
|
|
36
|
-
raiseColor: COLORS.BLUE_4,
|
|
37
|
-
},
|
|
38
|
-
[ButtonStates.PRESSED]: {
|
|
39
|
-
backgroundColor: COLORS.BLUE_1,
|
|
40
|
-
borderColor: COLORS.BLUE_4,
|
|
41
|
-
color: COLORS.BLUE_4,
|
|
42
|
-
raiseColor: COLORS.BLUE_4,
|
|
43
|
-
},
|
|
44
|
-
[ButtonStates.DISABLED]: {
|
|
45
|
-
backgroundColor: COLORS.BLUE_1,
|
|
46
|
-
borderColor: COLORS.BLUE_3,
|
|
47
|
-
color: COLORS.BLUE_3,
|
|
48
|
-
raiseColor: COLORS.BLUE_3,
|
|
49
|
-
},
|
|
50
|
-
},
|
|
51
|
-
|
|
52
|
-
[PROBLEM_SELECTOR_BUTTON_STATE.MISTAKE]: {
|
|
53
|
-
[ButtonStates.DEFAULT]: {
|
|
54
|
-
backgroundColor: COLORS.PRIMARY_RED,
|
|
55
|
-
borderColor: COLORS.PRIMARY_RED,
|
|
56
|
-
color: COLORS.NEUTRAL_1,
|
|
57
|
-
raiseColor: COLORS.PRIMARY_RED,
|
|
58
|
-
},
|
|
59
|
-
[ButtonStates.HOVER]: {
|
|
60
|
-
backgroundColor: COLORS.RED_4,
|
|
61
|
-
borderColor: COLORS.RED_4,
|
|
62
|
-
color: COLORS.NEUTRAL_1,
|
|
63
|
-
raiseColor: COLORS.RED_4,
|
|
64
|
-
},
|
|
65
|
-
[ButtonStates.ACTIVE]: {
|
|
66
|
-
backgroundColor: COLORS.RED_4,
|
|
67
|
-
borderColor: COLORS.RED_4,
|
|
68
|
-
color: COLORS.NEUTRAL_1,
|
|
69
|
-
raiseColor: COLORS.RED_4,
|
|
70
|
-
},
|
|
71
|
-
[ButtonStates.PRESSED]: {
|
|
72
|
-
backgroundColor: COLORS.RED_4,
|
|
73
|
-
borderColor: COLORS.RED_4,
|
|
74
|
-
color: COLORS.NEUTRAL_1,
|
|
75
|
-
raiseColor: COLORS.RED_4,
|
|
76
|
-
},
|
|
77
|
-
[ButtonStates.DISABLED]: {
|
|
78
|
-
backgroundColor: COLORS.RED_3,
|
|
79
|
-
borderColor: COLORS.RED_3,
|
|
80
|
-
color: COLORS.NEUTRAL_1,
|
|
81
|
-
raiseColor: COLORS.RED_3,
|
|
82
|
-
},
|
|
83
|
-
},
|
|
84
|
-
|
|
85
|
-
[PROBLEM_SELECTOR_BUTTON_STATE.SOLVED]: {
|
|
86
|
-
[ButtonStates.DEFAULT]: {
|
|
87
|
-
backgroundColor: COLORS.PRIMARY_YELLOW,
|
|
88
|
-
borderColor: COLORS.PRIMARY_YELLOW,
|
|
89
|
-
color: COLORS.NEUTRAL_1,
|
|
90
|
-
raiseColor: COLORS.PRIMARY_YELLOW,
|
|
91
|
-
},
|
|
92
|
-
[ButtonStates.HOVER]: {
|
|
93
|
-
backgroundColor: COLORS.YELLOW_4,
|
|
94
|
-
borderColor: COLORS.YELLOW_4,
|
|
95
|
-
color: COLORS.NEUTRAL_1,
|
|
96
|
-
raiseColor: COLORS.YELLOW_4,
|
|
97
|
-
},
|
|
98
|
-
[ButtonStates.ACTIVE]: {
|
|
99
|
-
backgroundColor: COLORS.YELLOW_4,
|
|
100
|
-
borderColor: COLORS.YELLOW_4,
|
|
101
|
-
color: COLORS.NEUTRAL_1,
|
|
102
|
-
raiseColor: COLORS.YELLOW_4,
|
|
103
|
-
},
|
|
104
|
-
[ButtonStates.PRESSED]: {
|
|
105
|
-
backgroundColor: COLORS.YELLOW_4,
|
|
106
|
-
borderColor: COLORS.YELLOW_4,
|
|
107
|
-
color: COLORS.NEUTRAL_1,
|
|
108
|
-
raiseColor: COLORS.YELLOW_4,
|
|
109
|
-
},
|
|
110
|
-
[ButtonStates.DISABLED]: {
|
|
111
|
-
backgroundColor: COLORS.YELLOW_3,
|
|
112
|
-
borderColor: COLORS.YELLOW_3,
|
|
113
|
-
color: COLORS.NEUTRAL_1,
|
|
114
|
-
raiseColor: COLORS.YELLOW_3,
|
|
115
|
-
},
|
|
116
|
-
},
|
|
117
|
-
|
|
118
|
-
[PROBLEM_SELECTOR_BUTTON_STATE.SOLVED_FIRST_ATTEMPT]: {
|
|
119
|
-
[ButtonStates.DEFAULT]: {
|
|
120
|
-
backgroundColor: COLORS.PRIMARY_GREEN,
|
|
121
|
-
borderColor: COLORS.PRIMARY_GREEN,
|
|
122
|
-
color: COLORS.NEUTRAL_1,
|
|
123
|
-
raiseColor: COLORS.PRIMARY_GREEN,
|
|
124
|
-
},
|
|
125
|
-
[ButtonStates.HOVER]: {
|
|
126
|
-
backgroundColor: COLORS.GREEN_4,
|
|
127
|
-
borderColor: COLORS.GREEN_4,
|
|
128
|
-
color: COLORS.NEUTRAL_1,
|
|
129
|
-
raiseColor: COLORS.GREEN_4,
|
|
130
|
-
},
|
|
131
|
-
[ButtonStates.ACTIVE]: {
|
|
132
|
-
backgroundColor: COLORS.GREEN_4,
|
|
133
|
-
borderColor: COLORS.GREEN_4,
|
|
134
|
-
color: COLORS.NEUTRAL_1,
|
|
135
|
-
raiseColor: COLORS.GREEN_4,
|
|
136
|
-
},
|
|
137
|
-
[ButtonStates.PRESSED]: {
|
|
138
|
-
backgroundColor: COLORS.GREEN_4,
|
|
139
|
-
borderColor: COLORS.GREEN_4,
|
|
140
|
-
color: COLORS.NEUTRAL_1,
|
|
141
|
-
raiseColor: COLORS.GREEN_4,
|
|
142
|
-
},
|
|
143
|
-
[ButtonStates.DISABLED]: {
|
|
144
|
-
backgroundColor: COLORS.GREEN_3,
|
|
145
|
-
borderColor: COLORS.GREEN_3,
|
|
146
|
-
color: COLORS.NEUTRAL_1,
|
|
147
|
-
raiseColor: COLORS.GREEN_3,
|
|
148
|
-
},
|
|
149
|
-
},
|
|
150
|
-
|
|
151
|
-
[PROBLEM_SELECTOR_BUTTON_STATE.NOT_SOLVED]: {
|
|
152
|
-
[ButtonStates.DEFAULT]: {
|
|
153
|
-
backgroundColor: COLORS.NEUTRAL_4,
|
|
154
|
-
borderColor: COLORS.NEUTRAL_4,
|
|
155
|
-
color: COLORS.NEUTRAL_10,
|
|
156
|
-
raiseColor: COLORS.NEUTRAL_4,
|
|
157
|
-
},
|
|
158
|
-
[ButtonStates.HOVER]: {
|
|
159
|
-
backgroundColor: COLORS.NEUTRAL_3,
|
|
160
|
-
borderColor: COLORS.NEUTRAL_3,
|
|
161
|
-
color: COLORS.NEUTRAL_10,
|
|
162
|
-
raiseColor: COLORS.NEUTRAL_3,
|
|
163
|
-
},
|
|
164
|
-
[ButtonStates.ACTIVE]: {
|
|
165
|
-
backgroundColor: COLORS.NEUTRAL_3,
|
|
166
|
-
borderColor: COLORS.NEUTRAL_3,
|
|
167
|
-
color: COLORS.NEUTRAL_10,
|
|
168
|
-
raiseColor: COLORS.NEUTRAL_3,
|
|
169
|
-
},
|
|
170
|
-
[ButtonStates.PRESSED]: {
|
|
171
|
-
backgroundColor: COLORS.NEUTRAL_3,
|
|
172
|
-
borderColor: COLORS.NEUTRAL_3,
|
|
173
|
-
color: COLORS.NEUTRAL_10,
|
|
174
|
-
raiseColor: COLORS.NEUTRAL_3,
|
|
175
|
-
},
|
|
176
|
-
[ButtonStates.DISABLED]: {
|
|
177
|
-
backgroundColor: COLORS.NEUTRAL_3,
|
|
178
|
-
borderColor: COLORS.NEUTRAL_3,
|
|
179
|
-
color: COLORS.NEUTRAL_6,
|
|
180
|
-
raiseColor: COLORS.NEUTRAL_3,
|
|
181
|
-
},
|
|
182
|
-
},
|
|
183
|
-
|
|
184
|
-
[PROBLEM_SELECTOR_BUTTON_STATE.EXAM]: {
|
|
185
|
-
[ButtonStates.DEFAULT]: {
|
|
186
|
-
backgroundColor: COLORS.PRIMARY_PURPLE,
|
|
187
|
-
borderColor: COLORS.PRIMARY_PURPLE,
|
|
188
|
-
color: COLORS.NEUTRAL_1,
|
|
189
|
-
raiseColor: COLORS.PRIMARY_PURPLE,
|
|
190
|
-
},
|
|
191
|
-
[ButtonStates.HOVER]: {
|
|
192
|
-
backgroundColor: COLORS.PURPLE_4,
|
|
193
|
-
borderColor: COLORS.PURPLE_4,
|
|
194
|
-
color: COLORS.NEUTRAL_1,
|
|
195
|
-
raiseColor: COLORS.PURPLE_4,
|
|
196
|
-
},
|
|
197
|
-
[ButtonStates.ACTIVE]: {
|
|
198
|
-
backgroundColor: COLORS.PRIMARY_PURPLE,
|
|
199
|
-
borderColor: COLORS.PRIMARY_PURPLE,
|
|
200
|
-
color: COLORS.NEUTRAL_1,
|
|
201
|
-
raiseColor: COLORS.PRIMARY_PURPLE,
|
|
202
|
-
},
|
|
203
|
-
[ButtonStates.PRESSED]: {
|
|
204
|
-
backgroundColor: COLORS.PRIMARY_PURPLE,
|
|
205
|
-
borderColor: COLORS.PRIMARY_PURPLE,
|
|
206
|
-
color: COLORS.NEUTRAL_1,
|
|
207
|
-
raiseColor: COLORS.PRIMARY_PURPLE,
|
|
208
|
-
},
|
|
209
|
-
[ButtonStates.DISABLED]: {
|
|
210
|
-
backgroundColor: COLORS.PURPLE_3,
|
|
211
|
-
borderColor: COLORS.PURPLE_3,
|
|
212
|
-
color: COLORS.NEUTRAL_1,
|
|
213
|
-
raiseColor: COLORS.PURPLE_3,
|
|
214
|
-
},
|
|
215
|
-
},
|
|
216
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { PROBLEM_SELECTOR_BUTTON_STATE } from './constants'
|
|
2
|
-
|
|
3
|
-
export type ProblemSelectorButtonState =
|
|
4
|
-
(typeof PROBLEM_SELECTOR_BUTTON_STATE)[keyof typeof PROBLEM_SELECTOR_BUTTON_STATE]
|
|
5
|
-
|
|
6
|
-
export type ProblemSelectorButtonProps = {
|
|
7
|
-
key: string
|
|
8
|
-
text: string
|
|
9
|
-
state: ProblemSelectorButtonState
|
|
10
|
-
locked: boolean
|
|
11
|
-
onClick: () => void
|
|
12
|
-
badgeValue?: number
|
|
13
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import React from 'react'
|
|
2
|
-
import Svg, { Path } from 'react-native-svg'
|
|
3
|
-
import { COLORS } from '@magmamath/react-native-ui'
|
|
4
|
-
|
|
5
|
-
import { IconProps } from './icon.types'
|
|
6
|
-
|
|
7
|
-
export const LockIcon = ({ width = 22, height = 24, color = COLORS.NEUTRAL_6 }: IconProps) => (
|
|
8
|
-
<Svg width={width} height={height} viewBox="0 0 24 28" fill="none">
|
|
9
|
-
<Path
|
|
10
|
-
fillRule="evenodd"
|
|
11
|
-
clipRule="evenodd"
|
|
12
|
-
d="M4.183 8.91H3.44A2.578 2.578 0 00.862 11.49v11.068a2.578 2.578 0 002.578 2.578h17.12a2.578 2.578 0 002.578-2.578V11.49a2.578 2.578 0 00-2.578-2.578h-.743c-.119-1.421-.391-3.307-1.374-4.897C17.304 2.172 15.303.864 12 .864c-3.304 0-5.304 1.308-6.443 3.15-.983 1.59-1.255 3.476-1.374 4.897zm2.008 0h11.618c-.12-1.303-.369-2.714-1.067-3.844C16.002 3.87 14.68 2.864 12 2.864c-2.68 0-4.003 1.006-4.742 2.202-.699 1.13-.947 2.54-1.067 3.845zm-2.75 2H20.56c.319 0 .578.26.578.579v11.068c0 .32-.26.578-.578.578H3.44a.578.578 0 01-.578-.578V11.49c0-.32.26-.578.578-.578z"
|
|
13
|
-
fill={color}
|
|
14
|
-
/>
|
|
15
|
-
</Svg>
|
|
16
|
-
)
|