@magmamath/students-features 0.5.4-rc.1 → 0.5.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/commonjs/features/celebrations/components/Spark.js.map +1 -1
- package/dist/commonjs/features/celebrations/helpers.js.map +1 -1
- package/dist/commonjs/features/endOfAssignment/components/CorrectAnswer/CorrectAnswer.js +1 -1
- package/dist/commonjs/features/endOfAssignment/components/CorrectAnswer/CorrectAnswer.js.map +1 -1
- package/dist/commonjs/features/endOfAssignment/components/EOAModal.js +6 -0
- package/dist/commonjs/features/endOfAssignment/components/EOAModal.js.map +1 -1
- package/dist/commonjs/features/endOfAssignment/components/ExamSubmit/ExamSubmit.js +2 -4
- package/dist/commonjs/features/endOfAssignment/components/ExamSubmit/ExamSubmit.js.map +1 -1
- package/dist/commonjs/features/endOfAssignment/components/Modal/assets/SunrisingIcon.js.map +1 -1
- package/dist/commonjs/features/endOfAssignment/components/Modal/assets/TrophyIcon.js.map +1 -1
- package/dist/commonjs/features/endOfAssignment/components/NoAnswer/NoAnswer.js +3 -5
- package/dist/commonjs/features/endOfAssignment/components/NoAnswer/NoAnswer.js.map +1 -1
- package/dist/commonjs/features/endOfAssignment/model/model.js +3 -1
- package/dist/commonjs/features/endOfAssignment/model/model.js.map +1 -1
- package/dist/commonjs/features/endOfAssignment/ui/SparkIcon.js.map +1 -1
- package/dist/commonjs/index.js +0 -12
- package/dist/commonjs/index.js.map +1 -1
- package/dist/commonjs/shared/icons/Halloween.js.map +1 -1
- package/dist/commonjs/shared/icons/HighlighterIcon.js.map +1 -1
- 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.map +1 -1
- package/dist/commonjs/shared/icons/Winter.js.map +1 -1
- package/dist/module/features/celebrations/components/Spark.js.map +1 -1
- package/dist/module/features/celebrations/helpers.js.map +1 -1
- package/dist/module/features/endOfAssignment/components/CorrectAnswer/CorrectAnswer.js +1 -1
- package/dist/module/features/endOfAssignment/components/CorrectAnswer/CorrectAnswer.js.map +1 -1
- package/dist/module/features/endOfAssignment/components/EOAModal.js +6 -0
- package/dist/module/features/endOfAssignment/components/EOAModal.js.map +1 -1
- package/dist/module/features/endOfAssignment/components/ExamSubmit/ExamSubmit.js +2 -4
- package/dist/module/features/endOfAssignment/components/ExamSubmit/ExamSubmit.js.map +1 -1
- package/dist/module/features/endOfAssignment/components/Modal/assets/SunrisingIcon.js.map +1 -1
- package/dist/module/features/endOfAssignment/components/Modal/assets/TrophyIcon.js.map +1 -1
- package/dist/module/features/endOfAssignment/components/NoAnswer/NoAnswer.js +3 -5
- package/dist/module/features/endOfAssignment/components/NoAnswer/NoAnswer.js.map +1 -1
- package/dist/module/features/endOfAssignment/model/model.js +3 -1
- package/dist/module/features/endOfAssignment/model/model.js.map +1 -1
- package/dist/module/features/endOfAssignment/ui/SparkIcon.js.map +1 -1
- package/dist/module/index.js +0 -1
- package/dist/module/index.js.map +1 -1
- package/dist/module/shared/icons/Halloween.js.map +1 -1
- package/dist/module/shared/icons/HighlighterIcon.js.map +1 -1
- 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.map +1 -1
- package/dist/module/shared/icons/Winter.js.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/celebrations/helpers.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/endOfAssignment/components/CorrectAnswer/CorrectAnswer.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/endOfAssignment/components/EOAModal.d.ts +6 -0
- package/dist/typescript/commonjs/features/endOfAssignment/components/EOAModal.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/endOfAssignment/components/Modal/assets/SunrisingIcon.d.ts +1 -1
- 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 +1 -1
- package/dist/typescript/commonjs/features/endOfAssignment/components/Modal/assets/TrophyIcon.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/endOfAssignment/components/NoAnswer/NoAnswer.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/endOfAssignment/model/model.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/endOfAssignment/types.d.ts +2 -1
- package/dist/typescript/commonjs/features/endOfAssignment/types.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/index.d.ts +0 -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/HighlighterIcon.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/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/celebrations/helpers.d.ts.map +1 -1
- package/dist/typescript/module/features/endOfAssignment/components/CorrectAnswer/CorrectAnswer.d.ts.map +1 -1
- package/dist/typescript/module/features/endOfAssignment/components/EOAModal.d.ts +6 -0
- package/dist/typescript/module/features/endOfAssignment/components/EOAModal.d.ts.map +1 -1
- package/dist/typescript/module/features/endOfAssignment/components/Modal/assets/SunrisingIcon.d.ts +1 -1
- 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 +1 -1
- package/dist/typescript/module/features/endOfAssignment/components/Modal/assets/TrophyIcon.d.ts.map +1 -1
- package/dist/typescript/module/features/endOfAssignment/components/NoAnswer/NoAnswer.d.ts.map +1 -1
- package/dist/typescript/module/features/endOfAssignment/model/model.d.ts.map +1 -1
- package/dist/typescript/module/features/endOfAssignment/types.d.ts +2 -1
- package/dist/typescript/module/features/endOfAssignment/types.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/index.d.ts +0 -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/HighlighterIcon.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/package.json +2 -2
- package/src/features/celebrations/components/Spark.tsx +4 -4
- package/src/features/celebrations/helpers.ts +35 -34
- package/src/features/endOfAssignment/components/CorrectAnswer/CorrectAnswer.tsx +1 -0
- package/src/features/endOfAssignment/components/EOAModal.tsx +6 -0
- package/src/features/endOfAssignment/components/ExamSubmit/ExamSubmit.tsx +5 -5
- package/src/features/endOfAssignment/components/Modal/assets/SunrisingIcon.tsx +74 -74
- package/src/features/endOfAssignment/components/Modal/assets/TrophyIcon.tsx +24 -24
- package/src/features/endOfAssignment/components/NoAnswer/NoAnswer.tsx +7 -5
- package/src/features/endOfAssignment/model/model.ts +21 -19
- package/src/features/endOfAssignment/types.ts +3 -3
- package/src/features/endOfAssignment/ui/SparkIcon.tsx +2 -1
- package/src/index.ts +0 -1
- package/src/shared/icons/Halloween.tsx +2 -2
- package/src/shared/icons/HighlighterIcon.tsx +1 -1
- package/src/shared/icons/Pi.tsx +1 -2
- package/src/shared/icons/Star.tsx +1 -2
- package/src/shared/icons/Valentine.tsx +1 -2
- package/src/shared/icons/Winter.tsx +2 -2
- package/dist/commonjs/features/formulaSheet/components/FormulaSheet.js +0 -52
- package/dist/commonjs/features/formulaSheet/components/FormulaSheet.js.map +0 -1
- package/dist/commonjs/features/formulaSheet/components/FormulaSheetModal.js +0 -64
- package/dist/commonjs/features/formulaSheet/components/FormulaSheetModal.js.map +0 -1
- package/dist/commonjs/features/formulaSheet/index.js +0 -20
- package/dist/commonjs/features/formulaSheet/index.js.map +0 -1
- package/dist/commonjs/features/formulaSheet/model/api.model.js +0 -15
- package/dist/commonjs/features/formulaSheet/model/api.model.js.map +0 -1
- package/dist/commonjs/features/formulaSheet/model/file.model.js +0 -19
- package/dist/commonjs/features/formulaSheet/model/file.model.js.map +0 -1
- package/dist/commonjs/features/formulaSheet/model/modal.model.js +0 -15
- package/dist/commonjs/features/formulaSheet/model/modal.model.js.map +0 -1
- package/dist/commonjs/features/formulaSheet/model/model.js +0 -35
- package/dist/commonjs/features/formulaSheet/model/model.js.map +0 -1
- package/dist/module/features/formulaSheet/components/FormulaSheet.js +0 -46
- package/dist/module/features/formulaSheet/components/FormulaSheet.js.map +0 -1
- package/dist/module/features/formulaSheet/components/FormulaSheetModal.js +0 -58
- package/dist/module/features/formulaSheet/components/FormulaSheetModal.js.map +0 -1
- package/dist/module/features/formulaSheet/index.js +0 -5
- package/dist/module/features/formulaSheet/index.js.map +0 -1
- package/dist/module/features/formulaSheet/model/api.model.js +0 -10
- package/dist/module/features/formulaSheet/model/api.model.js.map +0 -1
- package/dist/module/features/formulaSheet/model/file.model.js +0 -14
- package/dist/module/features/formulaSheet/model/file.model.js.map +0 -1
- package/dist/module/features/formulaSheet/model/modal.model.js +0 -10
- package/dist/module/features/formulaSheet/model/modal.model.js.map +0 -1
- package/dist/module/features/formulaSheet/model/model.js +0 -30
- package/dist/module/features/formulaSheet/model/model.js.map +0 -1
- package/dist/typescript/commonjs/features/formulaSheet/components/FormulaSheet.d.ts +0 -15
- package/dist/typescript/commonjs/features/formulaSheet/components/FormulaSheet.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/formulaSheet/components/FormulaSheetModal.d.ts +0 -10
- package/dist/typescript/commonjs/features/formulaSheet/components/FormulaSheetModal.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/formulaSheet/index.d.ts +0 -3
- package/dist/typescript/commonjs/features/formulaSheet/index.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/formulaSheet/model/api.model.d.ts +0 -9
- package/dist/typescript/commonjs/features/formulaSheet/model/api.model.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/formulaSheet/model/file.model.d.ts +0 -14
- package/dist/typescript/commonjs/features/formulaSheet/model/file.model.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/formulaSheet/model/modal.model.d.ts +0 -7
- package/dist/typescript/commonjs/features/formulaSheet/model/modal.model.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/formulaSheet/model/model.d.ts +0 -14
- package/dist/typescript/commonjs/features/formulaSheet/model/model.d.ts.map +0 -1
- package/dist/typescript/module/features/formulaSheet/components/FormulaSheet.d.ts +0 -15
- package/dist/typescript/module/features/formulaSheet/components/FormulaSheet.d.ts.map +0 -1
- package/dist/typescript/module/features/formulaSheet/components/FormulaSheetModal.d.ts +0 -10
- package/dist/typescript/module/features/formulaSheet/components/FormulaSheetModal.d.ts.map +0 -1
- package/dist/typescript/module/features/formulaSheet/index.d.ts +0 -3
- package/dist/typescript/module/features/formulaSheet/index.d.ts.map +0 -1
- package/dist/typescript/module/features/formulaSheet/model/api.model.d.ts +0 -9
- package/dist/typescript/module/features/formulaSheet/model/api.model.d.ts.map +0 -1
- package/dist/typescript/module/features/formulaSheet/model/file.model.d.ts +0 -14
- package/dist/typescript/module/features/formulaSheet/model/file.model.d.ts.map +0 -1
- package/dist/typescript/module/features/formulaSheet/model/modal.model.d.ts +0 -7
- package/dist/typescript/module/features/formulaSheet/model/modal.model.d.ts.map +0 -1
- package/dist/typescript/module/features/formulaSheet/model/model.d.ts +0 -14
- package/dist/typescript/module/features/formulaSheet/model/model.d.ts.map +0 -1
- package/src/features/formulaSheet/components/FormulaSheet.tsx +0 -74
- package/src/features/formulaSheet/components/FormulaSheetModal.tsx +0 -64
- package/src/features/formulaSheet/index.ts +0 -2
- package/src/features/formulaSheet/model/api.model.ts +0 -13
- package/src/features/formulaSheet/model/file.model.ts +0 -18
- package/src/features/formulaSheet/model/modal.model.ts +0 -10
- package/src/features/formulaSheet/model/model.ts +0 -31
|
@@ -1,61 +1,61 @@
|
|
|
1
|
+
import { IconProps } from '@magmamath/react-native-ui'
|
|
1
2
|
import * as React from 'react'
|
|
2
3
|
import Svg, { Path } from 'react-native-svg'
|
|
3
|
-
import { IconProps } from '../../../../../shared/icons/icon.types'
|
|
4
4
|
|
|
5
5
|
export const TrophyIcon = (props: IconProps) => {
|
|
6
6
|
const height = (props.size ?? 0) * 0.982
|
|
7
7
|
|
|
8
8
|
return (
|
|
9
|
-
<Svg width={props.size} height={height} viewBox=
|
|
9
|
+
<Svg width={props.size} height={height} viewBox='0 0 466 458' fill='none' {...props}>
|
|
10
10
|
<Path
|
|
11
|
-
d=
|
|
12
|
-
fill=
|
|
11
|
+
d='M258.454 244.45l-5.731 32.767 16.384 2.86c8.047 1.407 15.796 2.106 23.222 2.106 15.697.011 29.985-3.137 42.766-9.389 6.728-3.292 13.025-7.438 18.9-12.449 44.672-38.12 50.247-115.859 49.604-158.813-.288-18.467-9.466-35.848-24.575-46.49-9.355-6.606-20.23-10.209-31.348-10.575a57.996 57.996 0 00-17.935 2.206c-14.355 4.09-26.36 13.38-33.875 25.994l-32.379-14.332L250.03 88.75l39.162 17.326c6.274 2.771 13.247 2.916 19.632.388 6.374-2.516 11.373-7.382 14.055-13.7a24.56 24.56 0 0115.974-14.112c2.993-.853 6.052-1.13 9.056-.853a24.578 24.578 0 0111.961 4.422c6.44 4.534 10.353 11.95 10.475 19.82 1.164 76.841-18.822 112.224-32.024 127.144-2.195 2.494-4.213 4.412-5.909 5.864-14.632 12.47-33.465 16.483-57.586 12.271l-16.372-2.871zM37.623 282.187c7.429 0 15.173-.703 23.223-2.111l16.379-2.864-5.73-32.757-16.378 2.865c-24.126 4.221-42.953.202-57.575-12.274-11.858-10.119-39.295-43.336-37.936-133.006.119-7.871 4.036-15.28 10.476-19.82a24.601 24.601 0 0121.015-3.57A24.606 24.606 0 017.075 92.764c2.683 6.318 7.675 11.186 14.058 13.709 6.384 2.522 13.355 2.38 19.63-.396l39.152-17.329-13.46-30.41-32.37 14.328C26.57 60.055 14.57 50.762.213 46.67c-16.936-4.828-34.901-1.777-49.293 8.369-15.102 10.647-24.286 28.03-24.565 46.498-.652 42.947 4.926 120.686 49.6 158.806 17.036 14.535 37.71 21.844 61.668 21.844z'
|
|
12
|
+
fill='#FFD690'
|
|
13
13
|
/>
|
|
14
14
|
<Path
|
|
15
15
|
opacity={0.1}
|
|
16
|
-
d=
|
|
17
|
-
fill=
|
|
16
|
+
d='M335.095 272.795c6.728-3.293 13.025-7.438 18.9-12.449 44.672-38.121 50.247-115.859 49.604-158.813-.288-18.467-9.466-35.848-24.575-46.49-9.355-6.606-20.23-10.209-31.348-10.575 3.326 3.691 14.3 18.057.233 33.332a24.578 24.578 0 0111.961 4.423c6.44 4.534 10.353 11.95 10.475 19.82 1.164 76.84-18.822 112.223-32.024 127.144 0 0 21.659 24.497-3.226 43.608z'
|
|
17
|
+
fill='#D25B00'
|
|
18
18
|
/>
|
|
19
19
|
<Path
|
|
20
|
-
d=
|
|
21
|
-
fill=
|
|
20
|
+
d='M26.153 202.82L46.65 26.089a11.505 11.505 0 0111.429-10.18h213.797a11.504 11.504 0 0111.428 10.18l20.495 176.731c4.463 38.483-10.944 76.387-39.056 96.086l-8.179 5.73c-15.466 10.838-32.135 18.807-49.434 23.744-11.86 3.386-19.699 16.816-18.043 31.209l5.7 49.527h-59.619l5.7-49.527c1.656-14.393-6.182-27.825-18.043-31.209-17.299-4.937-33.967-12.905-49.434-23.744l-8.178-5.73c-28.115-19.699-43.522-57.604-39.059-96.086z'
|
|
21
|
+
fill='#FFD690'
|
|
22
22
|
/>
|
|
23
23
|
<Path
|
|
24
24
|
opacity={0.1}
|
|
25
|
-
d=
|
|
26
|
-
fill=
|
|
25
|
+
d='M169.03 359.583l1.752 36.868h22.546l-4.245-36.868c-1.652-14.388 6.185-27.823 18.046-31.203 17.293-4.933 33.964-12.903 49.428-23.744l8.18-5.731c28.112-19.698 43.52-57.597 39.063-96.084L283.299 26.086a11.505 11.505 0 00-11.429-10.18h-50.531l12.193 186.914c2.505 38.487-6.152 76.386-21.959 96.084l-4.6 5.731c-8.702 10.841-18.068 18.811-27.801 23.743-6.661 3.382-11.073 16.817-10.142 31.205z'
|
|
26
|
+
fill='#D25B00'
|
|
27
27
|
/>
|
|
28
28
|
<Path
|
|
29
|
-
d=
|
|
30
|
-
fill=
|
|
29
|
+
d='M63.166 437.528l203.607-4.774v-6.731c0-16.335-13.295-29.576-29.63-29.576H92.742c-16.335 0-29.576 13.241-29.576 29.576v11.505z'
|
|
30
|
+
fill='#FFD690'
|
|
31
31
|
/>
|
|
32
32
|
<Path
|
|
33
33
|
opacity={0.1}
|
|
34
|
-
d=
|
|
35
|
-
fill=
|
|
34
|
+
d='M171.477 396.447c16.328 0 29.574 13.247 29.574 29.575v7.907l65.722-.857v-7.05c0-16.328-13.246-29.575-29.574-29.575h-65.722z'
|
|
35
|
+
fill='#D25B00'
|
|
36
36
|
/>
|
|
37
37
|
<Path
|
|
38
|
-
d=
|
|
39
|
-
fill=
|
|
38
|
+
d='M209.405 432.82c15.086 0 27.324 12.238 27.324 27.336v100.01h42.122c8.43 0 15.264-6.834 15.264-15.264v-84.746c0-15.097-12.239-27.336-27.335-27.336h-57.375z'
|
|
39
|
+
fill='#2488BB'
|
|
40
40
|
/>
|
|
41
41
|
<Path
|
|
42
42
|
opacity={0.5}
|
|
43
|
-
d=
|
|
44
|
-
fill=
|
|
43
|
+
d='M35.846 543.408a8.835 8.835 0 1017.668 0v-88.343c0-6.569 1.263-10.538 2.59-13.251 1.325-2.713 5.889-7.362 13.25-8.834H66.41c-5.89 0-13.567 0-20.614 5.889-6.683 5.586-9.95 13.376-9.95 22.086v82.453z'
|
|
44
|
+
fill='#fff'
|
|
45
45
|
/>
|
|
46
46
|
<Path
|
|
47
|
-
d=
|
|
48
|
-
fill=
|
|
47
|
+
d='M35.837 460.156v84.489c0 8.57 6.912 15.518 15.483 15.518H278.85c8.43 0 15.264-6.833 15.264-15.263v-84.744c0-15.097-12.239-27.336-27.335-27.336H63.173c-15.097 0-27.336 12.239-27.336 27.336z'
|
|
48
|
+
fill='#AAD5EF'
|
|
49
49
|
/>
|
|
50
50
|
<Path
|
|
51
51
|
opacity={0.1}
|
|
52
|
-
d=
|
|
53
|
-
fill=
|
|
52
|
+
d='M208.151 432.762c15.309 0 27.727 12.418 27.727 27.739l.004 33.137h42.744c8.555 0 15.489-6.934 15.489-15.489l-.003-17.648c0-15.32-12.419-27.739-27.739-27.739h-58.222z'
|
|
53
|
+
fill='#D25B00'
|
|
54
54
|
/>
|
|
55
55
|
<Path
|
|
56
56
|
opacity={0.3}
|
|
57
|
-
d=
|
|
58
|
-
fill=
|
|
57
|
+
d='M73.782 17.1c-1.8.654-4.135 2.151-6.083 4.197-2.014 2.118-2.78 3.928-2.901 4.848-3.966 30.145-7.066 56.336-10.696 87.003-3.112 26.288-9.844 72.335-12.788 92.948-2.944 20.613-2.944 23.442-2.944 35.337 0 22.086 10.364 42.197 10.364 42.197-4.634-5.04-14.077-23.056-15.589-26.678-5.247-12.574-9.599-33.753-7.343-51.809 4.73-37.865 7.788-67.529 10.907-93.864 5.03-41.445 4.877-42.092 8.977-77.441 1.785-15.392 1.08-18.069 13.976-18.069h18.25c-1.451.417-2.836.86-4.13 1.33zM35.846 543.249a8.834 8.834 0 008.834 8.834 8.834 8.834 0 008.834-8.834v-88.343c0-6.57 1.263-10.538 2.59-13.251 1.325-2.713 5.889-7.362 13.25-8.835 0 0-1.158-.003-2.94-.003-13.712 0-13.571.004-20.618 5.893-6.683 5.586-9.95 13.376-9.95 22.086v82.453z'
|
|
58
|
+
fill='#fff'
|
|
59
59
|
/>
|
|
60
60
|
</Svg>
|
|
61
61
|
)
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
2
|
import { View, StyleSheet } from 'react-native'
|
|
3
|
+
|
|
3
4
|
import { useUnit } from 'effector-react'
|
|
4
5
|
import {
|
|
5
6
|
Button,
|
|
@@ -20,11 +21,9 @@ export const NoAnswer = ({ model, textContent, onPracticePress }: EOAModalConten
|
|
|
20
21
|
const popUpData = useUnit(model.$popUpData)
|
|
21
22
|
|
|
22
23
|
const { stats, isExam, user } = popUpData ?? {}
|
|
23
|
-
const solved = stats?.solvedAmount ?? 0
|
|
24
|
-
const total = stats?.problemsAmount ?? 0
|
|
25
|
-
const buttonColorScheme = isExam ? ButtonColor.YELLOW : ButtonColor.BLUE
|
|
26
24
|
|
|
27
|
-
const
|
|
25
|
+
const buttonColorScheme = isExam ? ButtonColor.YELLOW : ButtonColor.BLUE
|
|
26
|
+
const practiceButtonVisible = user?.practiceButtonVisible && (!isExam || !!user?.practiceMode)
|
|
28
27
|
|
|
29
28
|
const handlePrimaryButtonPress = () => {
|
|
30
29
|
isExam ? onPracticePress?.() : model.goToFirstProblemPressed()
|
|
@@ -51,7 +50,10 @@ export const NoAnswer = ({ model, textContent, onPracticePress }: EOAModalConten
|
|
|
51
50
|
</Typography>
|
|
52
51
|
)}
|
|
53
52
|
</View>
|
|
54
|
-
<NoAnswerContent
|
|
53
|
+
<NoAnswerContent
|
|
54
|
+
solvedAmount={stats?.solvedAmount ?? 0}
|
|
55
|
+
problemsAmount={stats?.problemsAmount ?? 0}
|
|
56
|
+
/>
|
|
55
57
|
<View style={styles.buttonsContainer}>
|
|
56
58
|
<Button
|
|
57
59
|
variant={practiceButtonVisible ? ButtonVariant.TERTIARY : ButtonVariant.PRIMARY}
|
|
@@ -13,45 +13,47 @@ export class EOAModel {
|
|
|
13
13
|
|
|
14
14
|
public readonly $popUpData = createStore<EOAModalData | null>(null)
|
|
15
15
|
.on(this.showPopUp, (_, payload) => payload)
|
|
16
|
-
.on(this.recommendationsUpdated, (state, hasRecommendations) =>
|
|
16
|
+
.on(this.recommendationsUpdated, (state, hasRecommendations) =>
|
|
17
|
+
state ? { ...state, hasRecommendations } : state,
|
|
18
|
+
)
|
|
17
19
|
.reset(this.hidePopUp)
|
|
18
20
|
|
|
19
|
-
|
|
21
|
+
public readonly $modalVariant = createStore<EOAModalVariant | null>(null)
|
|
20
22
|
.on(this.showPopUp, (_, popUpData) => {
|
|
21
|
-
if (!popUpData) return null
|
|
23
|
+
if (!popUpData) return null
|
|
22
24
|
|
|
23
|
-
const { isExam, stats, examFinished, eventType, cheatDetection } = popUpData
|
|
24
|
-
const solvedAmount = stats?.solvedAmount ?? 0
|
|
25
|
-
const goodDrawingAmount = stats?.goodDrawingAmount ?? 0
|
|
25
|
+
const { isExam, stats, examFinished, eventType, cheatDetection } = popUpData
|
|
26
|
+
const solvedAmount = stats?.solvedAmount ?? 0
|
|
27
|
+
const goodDrawingAmount = stats?.goodDrawingAmount ?? 0
|
|
26
28
|
|
|
27
29
|
if (!isExam) {
|
|
28
|
-
if (solvedAmount === 0) return EOAModalVariant.NO_CORRECT_ANSWERS
|
|
29
|
-
if (solvedAmount > 0 && goodDrawingAmount > 0) return EOAModalVariant.HAS_GOOD_DRAWING
|
|
30
|
-
return EOAModalVariant.HAS_CORRECT_ANSWERS
|
|
30
|
+
if (solvedAmount === 0) return EOAModalVariant.NO_CORRECT_ANSWERS
|
|
31
|
+
if (solvedAmount > 0 && goodDrawingAmount > 0) return EOAModalVariant.HAS_GOOD_DRAWING
|
|
32
|
+
return EOAModalVariant.HAS_CORRECT_ANSWERS
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
if (eventType === EOAEventType.EXAM_PAUSED) return EOAModalVariant.EXAM_PAUSED
|
|
36
|
+
|
|
37
|
+
if (eventType === EOAEventType.CHEAT_DETECTED) {
|
|
38
|
+
return EOAModalVariant.EXAM_SAFE_MODE_CHEAT_DETECTED
|
|
31
39
|
}
|
|
32
40
|
|
|
33
|
-
if (eventType === EOAEventType.EXAM_PAUSED) return EOAModalVariant.EXAM_PAUSED;
|
|
34
|
-
if (eventType === EOAEventType.CHEAT_DETECTED) return EOAModalVariant.EXAM_SAFE_MODE_CHEAT_DETECTED;
|
|
35
41
|
if (eventType === EOAEventType.SUBMIT && !examFinished) {
|
|
36
|
-
return cheatDetection
|
|
37
|
-
? EOAModalVariant.EXAM_SAFE_MODE_SUBMIT
|
|
38
|
-
: EOAModalVariant.EXAM_SUBMIT;
|
|
42
|
+
return cheatDetection ? EOAModalVariant.EXAM_SAFE_MODE_SUBMIT : EOAModalVariant.EXAM_SUBMIT
|
|
39
43
|
}
|
|
40
44
|
|
|
41
45
|
if (examFinished || eventType === EOAEventType.EXAM_FINISHED) {
|
|
42
46
|
return solvedAmount > 0
|
|
43
47
|
? EOAModalVariant.EXAM_FINISHED_HAS_CORRECT_ANSWERS
|
|
44
|
-
: EOAModalVariant.EXAM_FINISHED_NO_CORRECT_ANSWERS
|
|
48
|
+
: EOAModalVariant.EXAM_FINISHED_NO_CORRECT_ANSWERS
|
|
45
49
|
}
|
|
46
50
|
|
|
47
|
-
return EOAModalVariant.EXAM_SAFE_MODE_LEAVE
|
|
51
|
+
return EOAModalVariant.EXAM_SAFE_MODE_LEAVE
|
|
48
52
|
})
|
|
49
|
-
.reset(this.hidePopUp)
|
|
50
|
-
|
|
53
|
+
.reset(this.hidePopUp)
|
|
51
54
|
|
|
52
55
|
public readonly hidePopUpAndLeave = () => {
|
|
53
56
|
this.leavePressed()
|
|
54
57
|
this.hidePopUp()
|
|
55
58
|
}
|
|
56
|
-
|
|
57
59
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { EOAModel } from
|
|
1
|
+
import { EOAModel } from './model/model'
|
|
2
2
|
|
|
3
3
|
export enum EOAEventType {
|
|
4
4
|
SUBMIT = 'SUBMIT',
|
|
@@ -47,7 +47,7 @@ export type EOAModalData = {
|
|
|
47
47
|
problemsAmount: number
|
|
48
48
|
}
|
|
49
49
|
hasRecommendations?: boolean
|
|
50
|
-
user: { firstName: string; practiceMode: boolean }
|
|
50
|
+
user: { firstName: string; practiceMode: boolean; practiceButtonVisible: boolean }
|
|
51
51
|
}
|
|
52
52
|
|
|
53
53
|
export type EOAModalText = {
|
|
@@ -62,4 +62,4 @@ export type EOAModalText = {
|
|
|
62
62
|
goodCalculations?: string
|
|
63
63
|
goodCalculationsPlural?: string
|
|
64
64
|
}
|
|
65
|
-
}
|
|
65
|
+
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
|
+
|
|
3
|
+
import { IconProps } from '@magmamath/react-native-ui'
|
|
2
4
|
import Svg, { Path } from 'react-native-svg'
|
|
3
|
-
import { IconProps } from '../../../shared/icons/icon.types'
|
|
4
5
|
|
|
5
6
|
export const SparkIcon = ({ size = 12, color }: IconProps) => {
|
|
6
7
|
return (
|
package/src/index.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
2
|
import Svg, { ClipPath, Defs, G, Path } from 'react-native-svg'
|
|
3
|
-
|
|
4
|
-
import { IconProps } from '
|
|
3
|
+
|
|
4
|
+
import { COLORS, IconProps } from '@magmamath/react-native-ui'
|
|
5
5
|
|
|
6
6
|
function Halloween({ size = 57, color = COLORS.NEUTRAL_8 }: IconProps) {
|
|
7
7
|
return (
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
2
|
import Svg, { Path } from 'react-native-svg'
|
|
3
|
-
import { COLORS } from '@magmamath/react-native-ui'
|
|
4
3
|
import { IconProps } from './icon.types'
|
|
4
|
+
import { COLORS } from '@magmamath/react-native-ui'
|
|
5
5
|
|
|
6
6
|
export function HighlighterIcon({ size = 17, color = COLORS.NEUTRAL_9, style }: IconProps) {
|
|
7
7
|
return (
|
package/src/shared/icons/Pi.tsx
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
2
|
import Svg, { Path } from 'react-native-svg'
|
|
3
|
-
import { COLORS } from '@magmamath/react-native-ui'
|
|
4
|
-
import { IconProps } from './icon.types'
|
|
3
|
+
import { COLORS, IconProps } from '@magmamath/react-native-ui'
|
|
5
4
|
|
|
6
5
|
function Pi({ size = 57, color = COLORS.NEUTRAL_8 }: IconProps) {
|
|
7
6
|
return (
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
2
|
import Svg, { Path } from 'react-native-svg'
|
|
3
|
-
import { COLORS } from '@magmamath/react-native-ui'
|
|
4
|
-
import { IconProps } from './icon.types'
|
|
3
|
+
import { COLORS, IconProps } from '@magmamath/react-native-ui'
|
|
5
4
|
|
|
6
5
|
function Star({ size = 57, color = COLORS.NEUTRAL_8 }: IconProps) {
|
|
7
6
|
return (
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
2
|
import Svg, { Path } from 'react-native-svg'
|
|
3
|
-
import { COLORS } from '@magmamath/react-native-ui'
|
|
4
|
-
import { IconProps } from './icon.types'
|
|
3
|
+
import { COLORS, IconProps } from '@magmamath/react-native-ui'
|
|
5
4
|
|
|
6
5
|
function Valentine({ size = 57, color = COLORS.NEUTRAL_8 }: IconProps) {
|
|
7
6
|
return (
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
2
|
import Svg, { Path } from 'react-native-svg'
|
|
3
|
-
|
|
4
|
-
import { IconProps } from '
|
|
3
|
+
|
|
4
|
+
import { COLORS, IconProps } from '@magmamath/react-native-ui'
|
|
5
5
|
|
|
6
6
|
function Winter({ size = 50, color = COLORS.NEUTRAL_8 }: IconProps) {
|
|
7
7
|
return (
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.FormulaSheet = void 0;
|
|
7
|
-
var _react = _interopRequireWildcard(require("react"));
|
|
8
|
-
var _effectorReact = require("effector-react");
|
|
9
|
-
var _reactNativeUi = require("@magmamath/react-native-ui");
|
|
10
|
-
var _FormulaSheetModal = require("./FormulaSheetModal.js");
|
|
11
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
12
|
-
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); }
|
|
13
|
-
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; }
|
|
14
|
-
const FormulaSheet = exports.FormulaSheet = /*#__PURE__*/(0, _react.forwardRef)(({
|
|
15
|
-
model,
|
|
16
|
-
fileId,
|
|
17
|
-
renderer,
|
|
18
|
-
buttonSize = _reactNativeUi.ButtonSize.MEDIUM,
|
|
19
|
-
buttonColor = _reactNativeUi.ButtonColor.BLUE,
|
|
20
|
-
loaderColor = _reactNativeUi.LoaderColor.BLUE,
|
|
21
|
-
onPress
|
|
22
|
-
}, ref) => {
|
|
23
|
-
const isOpen = (0, _effectorReact.useUnit)(model.modal.$isOpen);
|
|
24
|
-
const sheetFileBlob = (0, _effectorReact.useUnit)(model.file.$blob);
|
|
25
|
-
const isRequestPending = (0, _effectorReact.useUnit)(model.api.getPDFFileBlobFx.pending);
|
|
26
|
-
(0, _react.useEffect)(() => {
|
|
27
|
-
model.file.setId(fileId ?? null);
|
|
28
|
-
}, [fileId]);
|
|
29
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
30
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeUi.Button, {
|
|
31
|
-
ref: ref,
|
|
32
|
-
size: buttonSize,
|
|
33
|
-
variant: _reactNativeUi.ButtonVariant.SECONDARY,
|
|
34
|
-
colorScheme: buttonColor,
|
|
35
|
-
isActive: isOpen,
|
|
36
|
-
onPress: () => {
|
|
37
|
-
model.modal.toggle();
|
|
38
|
-
onPress?.();
|
|
39
|
-
},
|
|
40
|
-
icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeUi.TheoryIcon, {
|
|
41
|
-
color: isOpen ? _reactNativeUi.COLORS.NEUTRAL_1 : undefined,
|
|
42
|
-
size: 20
|
|
43
|
-
})
|
|
44
|
-
}), isOpen && /*#__PURE__*/(0, _jsxRuntime.jsx)(_FormulaSheetModal.FormulaSheetModal, {
|
|
45
|
-
isLoading: isRequestPending,
|
|
46
|
-
loaderColor: loaderColor,
|
|
47
|
-
onClose: () => model.modal.setIsOpen(false),
|
|
48
|
-
children: renderer(sheetFileBlob ?? '')
|
|
49
|
-
})]
|
|
50
|
-
});
|
|
51
|
-
});
|
|
52
|
-
//# sourceMappingURL=FormulaSheet.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireWildcard","require","_effectorReact","_reactNativeUi","_FormulaSheetModal","_jsxRuntime","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","FormulaSheet","exports","forwardRef","model","fileId","renderer","buttonSize","ButtonSize","MEDIUM","buttonColor","ButtonColor","BLUE","loaderColor","LoaderColor","onPress","ref","isOpen","useUnit","modal","$isOpen","sheetFileBlob","file","$blob","isRequestPending","api","getPDFFileBlobFx","pending","useEffect","setId","jsxs","Fragment","children","jsx","Button","size","variant","ButtonVariant","SECONDARY","colorScheme","isActive","toggle","icon","TheoryIcon","color","COLORS","NEUTRAL_1","undefined","FormulaSheetModal","isLoading","onClose","setIsOpen"],"sourceRoot":"../../../../../src","sources":["features/formulaSheet/components/FormulaSheet.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,cAAA,GAAAD,OAAA;AACA,IAAAE,cAAA,GAAAF,OAAA;AAWA,IAAAG,kBAAA,GAAAH,OAAA;AAAuD,IAAAI,WAAA,GAAAJ,OAAA;AAAA,SAAAK,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,SAAAP,wBAAAO,CAAA,EAAAE,CAAA,SAAAA,CAAA,IAAAF,CAAA,IAAAA,CAAA,CAAAI,UAAA,SAA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
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.FormulaSheetModal = 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 FormulaSheetModal = ({
|
|
13
|
-
children,
|
|
14
|
-
loaderColor,
|
|
15
|
-
isLoading,
|
|
16
|
-
onClose
|
|
17
|
-
}) => {
|
|
18
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Modal, {
|
|
19
|
-
visible: true,
|
|
20
|
-
transparent: true,
|
|
21
|
-
animationType: "none",
|
|
22
|
-
onRequestClose: onClose,
|
|
23
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.TouchableWithoutFeedback, {
|
|
24
|
-
onPress: onClose,
|
|
25
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
26
|
-
style: styles.container,
|
|
27
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.TouchableWithoutFeedback, {
|
|
28
|
-
onPress: event => event.stopPropagation(),
|
|
29
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
30
|
-
style: styles.content,
|
|
31
|
-
children: isLoading ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeUi.Loader, {
|
|
32
|
-
type: _reactNativeUi.LoaderType.PRIMARY,
|
|
33
|
-
color: loaderColor,
|
|
34
|
-
size: _reactNativeUi.LoaderSize.LARGE
|
|
35
|
-
}) : children
|
|
36
|
-
})
|
|
37
|
-
})
|
|
38
|
-
})
|
|
39
|
-
})
|
|
40
|
-
});
|
|
41
|
-
};
|
|
42
|
-
exports.FormulaSheetModal = FormulaSheetModal;
|
|
43
|
-
const styles = _reactNative.StyleSheet.create({
|
|
44
|
-
container: {
|
|
45
|
-
width: '100%',
|
|
46
|
-
height: '100%',
|
|
47
|
-
alignItems: 'center',
|
|
48
|
-
justifyContent: 'center',
|
|
49
|
-
backgroundColor: 'rgba(0, 0, 0, 0.25)'
|
|
50
|
-
},
|
|
51
|
-
content: {
|
|
52
|
-
width: '100%',
|
|
53
|
-
maxWidth: 720,
|
|
54
|
-
height: '100%',
|
|
55
|
-
maxHeight: '80%',
|
|
56
|
-
alignItems: 'center',
|
|
57
|
-
justifyContent: 'center',
|
|
58
|
-
paddingHorizontal: _reactNativeUi.SPACING['800'],
|
|
59
|
-
paddingVertical: _reactNativeUi.SPACING['400'],
|
|
60
|
-
borderRadius: _reactNativeUi.BORDER_RADIUS['400'],
|
|
61
|
-
backgroundColor: _reactNativeUi.COLORS.NEUTRAL_1
|
|
62
|
-
}
|
|
63
|
-
});
|
|
64
|
-
//# sourceMappingURL=FormulaSheetModal.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_reactNativeUi","_jsxRuntime","e","__esModule","default","FormulaSheetModal","children","loaderColor","isLoading","onClose","jsx","Modal","visible","transparent","animationType","onRequestClose","TouchableWithoutFeedback","onPress","View","style","styles","container","event","stopPropagation","content","Loader","type","LoaderType","PRIMARY","color","size","LoaderSize","LARGE","exports","StyleSheet","create","width","height","alignItems","justifyContent","backgroundColor","maxWidth","maxHeight","paddingHorizontal","SPACING","paddingVertical","borderRadius","BORDER_RADIUS","COLORS","NEUTRAL_1"],"sourceRoot":"../../../../../src","sources":["features/formulaSheet/components/FormulaSheetModal.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,cAAA,GAAAF,OAAA;AAQmC,IAAAG,WAA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Te,KAAK,EAAE,MAAM;IACbC,MAAM,EAAE,MAAM;IACdC,UAAU,EAAE,QAAQ;IACpBC,cAAc,EAAE,QAAQ;IACxBC,eAAe,EAAE;EACnB,CAAC;EACDhB,OAAO,EAAE;IACPY,KAAK,EAAE,MAAM;IACbK,QAAQ,EAAE,GAAG;IACbJ,MAAM,EAAE,MAAM;IACdK,SAAS,EAAE,KAAK;IAChBJ,UAAU,EAAE,QAAQ;IACpBC,cAAc,EAAE,QAAQ;IACxBI,iBAAiB,EAAEC,sBAAO,CAAC,KAAK,CAAC;IACjCC,eAAe,EAAED,sBAAO,CAAC,KAAK,CAAC;IAC/BE,YAAY,EAAEC,4BAAa,CAAC,KAAK,CAAC;IAClCP,eAAe,EAAEQ,qBAAM,CAACC;EAC1B;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
Object.defineProperty(exports, "FormulaSheet", {
|
|
7
|
-
enumerable: true,
|
|
8
|
-
get: function () {
|
|
9
|
-
return _FormulaSheet.FormulaSheet;
|
|
10
|
-
}
|
|
11
|
-
});
|
|
12
|
-
Object.defineProperty(exports, "FormulaSheetModel", {
|
|
13
|
-
enumerable: true,
|
|
14
|
-
get: function () {
|
|
15
|
-
return _model.FormulaSheetModel;
|
|
16
|
-
}
|
|
17
|
-
});
|
|
18
|
-
var _FormulaSheet = require("./components/FormulaSheet.js");
|
|
19
|
-
var _model = require("./model/model.js");
|
|
20
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_FormulaSheet","require","_model"],"sourceRoot":"../../../../src","sources":["features/formulaSheet/index.ts"],"mappings":";;;;;;;;;;;;;;;;;AAAA,IAAAA,aAAA,GAAAC,OAAA;AACA,IAAAC,MAAA,GAAAD,OAAA","ignoreList":[]}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.FormulaSheetAPI = void 0;
|
|
7
|
-
var _effector = require("effector");
|
|
8
|
-
class FormulaSheetAPI {
|
|
9
|
-
getPDFFileBlobFx = (0, _effector.createEffect)();
|
|
10
|
-
setupRequests(api) {
|
|
11
|
-
this.getPDFFileBlobFx.use(api.getPDFFileBlob);
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
exports.FormulaSheetAPI = FormulaSheetAPI;
|
|
15
|
-
//# sourceMappingURL=api.model.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_effector","require","FormulaSheetAPI","getPDFFileBlobFx","createEffect","setupRequests","api","use","getPDFFileBlob","exports"],"sourceRoot":"../../../../../src","sources":["features/formulaSheet/model/api.model.ts"],"mappings":";;;;;;AAAA,IAAAA,SAAA,GAAAC,OAAA;AAMO,MAAMC,eAAe,CAAC;EACXC,gBAAgB,GAA2B,IAAAC,sBAAY,EAAC,CAAC;EAElEC,aAAaA,CAACC,GAAyB,EAAE;IAC9C,IAAI,CAACH,gBAAgB,CAACI,GAAG,CAACD,GAAG,CAACE,cAAc,CAAC;EAC/C;AACF;AAACC,OAAA,CAAAP,eAAA,GAAAA,eAAA","ignoreList":[]}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.FormulaSheetFile = void 0;
|
|
7
|
-
var _effector = require("effector");
|
|
8
|
-
class FormulaSheetFile {
|
|
9
|
-
reset = (0, _effector.createEvent)();
|
|
10
|
-
setId = (0, _effector.createEvent)();
|
|
11
|
-
$id = (0, _effector.restore)(this.setId, null);
|
|
12
|
-
constructor({
|
|
13
|
-
api
|
|
14
|
-
}) {
|
|
15
|
-
this.$blob = (0, _effector.restore)(api.getPDFFileBlobFx.doneData, null).reset(this.reset);
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
exports.FormulaSheetFile = FormulaSheetFile;
|
|
19
|
-
//# sourceMappingURL=file.model.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_effector","require","FormulaSheetFile","reset","createEvent","setId","$id","restore","constructor","api","$blob","getPDFFileBlobFx","doneData","exports"],"sourceRoot":"../../../../../src","sources":["features/formulaSheet/model/file.model.ts"],"mappings":";;;;;;AAAA,IAAAA,SAAA,GAAAC,OAAA;AAOO,MAAMC,gBAAgB,CAAC;EACZC,KAAK,GAAG,IAAAC,qBAAW,EAAC,CAAC;EAGrBC,KAAK,GAAG,IAAAD,qBAAW,EAAS,CAAC;EAC7BE,GAAG,GAAG,IAAAC,iBAAO,EAAC,IAAI,CAACF,KAAK,EAAE,IAAI,CAAC;EAE/CG,WAAWA,CAAC;IAAEC;EAA2B,CAAC,EAAE;IAC1C,IAAI,CAACC,KAAK,GAAG,IAAAH,iBAAO,EAACE,GAAG,CAACE,gBAAgB,CAACC,QAAQ,EAAE,IAAI,CAAC,CAACT,KAAK,CAAC,IAAI,CAACA,KAAK,CAAC;EAC7E;AACF;AAACU,OAAA,CAAAX,gBAAA,GAAAA,gBAAA","ignoreList":[]}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.FormulaSheetModal = void 0;
|
|
7
|
-
var _effector = require("effector");
|
|
8
|
-
class FormulaSheetModal {
|
|
9
|
-
reset = (0, _effector.createEvent)();
|
|
10
|
-
toggle = (0, _effector.createEvent)();
|
|
11
|
-
setIsOpen = (0, _effector.createEvent)();
|
|
12
|
-
$isOpen = (0, _effector.restore)(this.setIsOpen, false).on(this.toggle, state => !state).reset(this.reset);
|
|
13
|
-
}
|
|
14
|
-
exports.FormulaSheetModal = FormulaSheetModal;
|
|
15
|
-
//# sourceMappingURL=modal.model.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_effector","require","FormulaSheetModal","reset","createEvent","toggle","setIsOpen","$isOpen","restore","on","state","exports"],"sourceRoot":"../../../../../src","sources":["features/formulaSheet/model/modal.model.ts"],"mappings":";;;;;;AAAA,IAAAA,SAAA,GAAAC,OAAA;AAEO,MAAMC,iBAAiB,CAAC;EACbC,KAAK,GAAG,IAAAC,qBAAW,EAAC,CAAC;EACrBC,MAAM,GAAG,IAAAD,qBAAW,EAAC,CAAC;EACtBE,SAAS,GAAG,IAAAF,qBAAW,EAAU,CAAC;EAClCG,OAAO,GAAG,IAAAC,iBAAO,EAAC,IAAI,CAACF,SAAS,EAAE,KAAK,CAAC,CACrDG,EAAE,CAAC,IAAI,CAACJ,MAAM,EAAGK,KAAK,IAAK,CAACA,KAAK,CAAC,CAClCP,KAAK,CAAC,IAAI,CAACA,KAAK,CAAC;AACtB;AAACQ,OAAA,CAAAT,iBAAA,GAAAA,iBAAA","ignoreList":[]}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.FormulaSheetModel = void 0;
|
|
7
|
-
var _effector = require("effector");
|
|
8
|
-
var _apiModel = require("./api.model.js");
|
|
9
|
-
var _modalModel = require("./modal.model.js");
|
|
10
|
-
var _fileModel = require("./file.model.js");
|
|
11
|
-
class FormulaSheetModel {
|
|
12
|
-
api = new _apiModel.FormulaSheetAPI();
|
|
13
|
-
modal = new _modalModel.FormulaSheetModal();
|
|
14
|
-
file = new _fileModel.FormulaSheetFile({
|
|
15
|
-
api: this.api
|
|
16
|
-
});
|
|
17
|
-
constructor({
|
|
18
|
-
api
|
|
19
|
-
}) {
|
|
20
|
-
this.api.setupRequests(api);
|
|
21
|
-
(0, _effector.sample)({
|
|
22
|
-
clock: this.modal.$isOpen,
|
|
23
|
-
source: [this.file.$id, this.file.$blob],
|
|
24
|
-
filter: ([fileId, blob], isOpen) => !!(isOpen && fileId && !blob),
|
|
25
|
-
fn: ([fileId]) => fileId,
|
|
26
|
-
target: this.api.getPDFFileBlobFx
|
|
27
|
-
});
|
|
28
|
-
(0, _effector.sample)({
|
|
29
|
-
clock: this.file.$id,
|
|
30
|
-
target: [this.file.reset, this.modal.reset]
|
|
31
|
-
});
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
exports.FormulaSheetModel = FormulaSheetModel;
|
|
35
|
-
//# sourceMappingURL=model.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_effector","require","_apiModel","_modalModel","_fileModel","FormulaSheetModel","api","FormulaSheetAPI","modal","FormulaSheetModal","file","FormulaSheetFile","constructor","setupRequests","sample","clock","$isOpen","source","$id","$blob","filter","fileId","blob","isOpen","fn","target","getPDFFileBlobFx","reset","exports"],"sourceRoot":"../../../../../src","sources":["features/formulaSheet/model/model.ts"],"mappings":";;;;;;AAAA,IAAAA,SAAA,GAAAC,OAAA;AACA,IAAAC,SAAA,GAAAD,OAAA;AACA,IAAAE,WAAA,GAAAF,OAAA;AACA,IAAAG,UAAA,GAAAH,OAAA;AAMO,MAAMI,iBAAiB,CAAC;EACbC,GAAG,GAAG,IAAIC,yBAAe,CAAC,CAAC;EAC3BC,KAAK,GAAG,IAAIC,6BAAiB,CAAC,CAAC;EAC/BC,IAAI,GAAG,IAAIC,2BAAgB,CAAC;IAAEL,GAAG,EAAE,IAAI,CAACA;EAAI,CAAC,CAAC;EAE9DM,WAAWA,CAAC;IAAEN;EAA4B,CAAC,EAAE;IAC3C,IAAI,CAACA,GAAG,CAACO,aAAa,CAACP,GAAG,CAAC;IAE3B,IAAAQ,gBAAM,EAAC;MACLC,KAAK,EAAE,IAAI,CAACP,KAAK,CAACQ,OAAO;MACzBC,MAAM,EAAE,CAAC,IAAI,CAACP,IAAI,CAACQ,GAAG,EAAE,IAAI,CAACR,IAAI,CAACS,KAAK,CAAC;MACxCC,MAAM,EAAEA,CAAC,CAACC,MAAM,EAAEC,IAAI,CAAC,EAAEC,MAAM,KAAK,CAAC,EAAEA,MAAM,IAAIF,MAAM,IAAI,CAACC,IAAI,CAAC;MACjEE,EAAE,EAAEA,CAAC,CAACH,MAAM,CAAC,KAAKA,MAAgB;MAClCI,MAAM,EAAE,IAAI,CAACnB,GAAG,CAACoB;IACnB,CAAC,CAAC;IAEF,IAAAZ,gBAAM,EAAC;MACLC,KAAK,EAAE,IAAI,CAACL,IAAI,CAACQ,GAAG;MACpBO,MAAM,EAAE,CAAC,IAAI,CAACf,IAAI,CAACiB,KAAK,EAAE,IAAI,CAACnB,KAAK,CAACmB,KAAK;IAC5C,CAAC,CAAC;EACJ;AACF;AAACC,OAAA,CAAAvB,iBAAA,GAAAA,iBAAA","ignoreList":[]}
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
import React, { forwardRef, useEffect } from 'react';
|
|
4
|
-
import { useUnit } from 'effector-react';
|
|
5
|
-
import { Button, ButtonColor, ButtonSize, ButtonVariant, COLORS, TheoryIcon, LoaderColor } from '@magmamath/react-native-ui';
|
|
6
|
-
import { FormulaSheetModal } from "./FormulaSheetModal.js";
|
|
7
|
-
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
8
|
-
export const FormulaSheet = /*#__PURE__*/forwardRef(({
|
|
9
|
-
model,
|
|
10
|
-
fileId,
|
|
11
|
-
renderer,
|
|
12
|
-
buttonSize = ButtonSize.MEDIUM,
|
|
13
|
-
buttonColor = ButtonColor.BLUE,
|
|
14
|
-
loaderColor = LoaderColor.BLUE,
|
|
15
|
-
onPress
|
|
16
|
-
}, ref) => {
|
|
17
|
-
const isOpen = useUnit(model.modal.$isOpen);
|
|
18
|
-
const sheetFileBlob = useUnit(model.file.$blob);
|
|
19
|
-
const isRequestPending = useUnit(model.api.getPDFFileBlobFx.pending);
|
|
20
|
-
useEffect(() => {
|
|
21
|
-
model.file.setId(fileId ?? null);
|
|
22
|
-
}, [fileId]);
|
|
23
|
-
return /*#__PURE__*/_jsxs(_Fragment, {
|
|
24
|
-
children: [/*#__PURE__*/_jsx(Button, {
|
|
25
|
-
ref: ref,
|
|
26
|
-
size: buttonSize,
|
|
27
|
-
variant: ButtonVariant.SECONDARY,
|
|
28
|
-
colorScheme: buttonColor,
|
|
29
|
-
isActive: isOpen,
|
|
30
|
-
onPress: () => {
|
|
31
|
-
model.modal.toggle();
|
|
32
|
-
onPress?.();
|
|
33
|
-
},
|
|
34
|
-
icon: /*#__PURE__*/_jsx(TheoryIcon, {
|
|
35
|
-
color: isOpen ? COLORS.NEUTRAL_1 : undefined,
|
|
36
|
-
size: 20
|
|
37
|
-
})
|
|
38
|
-
}), isOpen && /*#__PURE__*/_jsx(FormulaSheetModal, {
|
|
39
|
-
isLoading: isRequestPending,
|
|
40
|
-
loaderColor: loaderColor,
|
|
41
|
-
onClose: () => model.modal.setIsOpen(false),
|
|
42
|
-
children: renderer(sheetFileBlob ?? '')
|
|
43
|
-
})]
|
|
44
|
-
});
|
|
45
|
-
});
|
|
46
|
-
//# sourceMappingURL=FormulaSheet.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["React","forwardRef","useEffect","useUnit","Button","ButtonColor","ButtonSize","ButtonVariant","COLORS","TheoryIcon","LoaderColor","FormulaSheetModal","jsx","_jsx","Fragment","_Fragment","jsxs","_jsxs","FormulaSheet","model","fileId","renderer","buttonSize","MEDIUM","buttonColor","BLUE","loaderColor","onPress","ref","isOpen","modal","$isOpen","sheetFileBlob","file","$blob","isRequestPending","api","getPDFFileBlobFx","pending","setId","children","size","variant","SECONDARY","colorScheme","isActive","toggle","icon","color","NEUTRAL_1","undefined","isLoading","onClose","setIsOpen"],"sourceRoot":"../../../../../src","sources":["features/formulaSheet/components/FormulaSheet.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,UAAU,EAAaC,SAAS,QAAQ,OAAO;AAC/D,SAASC,OAAO,QAAQ,gBAAgB;AACxC,SACEC,MAAM,EACNC,WAAW,EACXC,UAAU,EACVC,aAAa,EACbC,MAAM,EACNC,UAAU,EAEVC,WAAW,QACN,4BAA4B;AAEnC,SAASC,iBAAiB,QAAQ,wBAAqB;AAAA,SAAAC,GAAA,IAAAC,IAAA,EAAAC,QAAA,IAAAC,SAAA,EAAAC,IAAA,IAAAC,KAAA;AAYvD,OAAO,MAAMC,YAAY,gBAAGjB,UAAU,CACpC,CACE;EACEkB,KAAK;EACLC,MAAM;EACNC,QAAQ;EACRC,UAAU,GAAGhB,UAAU,CAACiB,MAAM;EAC9BC,WAAW,GAAGnB,WAAW,CAACoB,IAAI;EAC9BC,WAAW,GAAGhB,WAAW,CAACe,IAAI;EAC9BE;AACF,CAAC,EACDC,GAAG,KACA;EACH,MAAMC,MAAM,GAAG1B,OAAO,CAACgB,KAAK,CAACW,KAAK,CAACC,OAAO,CAAC;EAC3C,MAAMC,aAAa,GAAG7B,OAAO,CAACgB,KAAK,CAACc,IAAI,CAACC,KAAK,CAAC;EAC/C,MAAMC,gBAAgB,GAAGhC,OAAO,CAACgB,KAAK,CAACiB,GAAG,CAACC,gBAAgB,CAACC,OAAO,CAAC;EAEpEpC,SAAS,CAAC,MAAM;IACdiB,KAAK,CAACc,IAAI,CAACM,KAAK,CAACnB,MAAM,IAAI,IAAI,CAAC;EAClC,CAAC,EAAE,CAACA,MAAM,CAAC,CAAC;EAEZ,oBACEH,KAAA,CAAAF,SAAA;IAAAyB,QAAA,gBACE3B,IAAA,CAACT,MAAM;MACLwB,GAAG,EAAEA,GAAI;MACTa,IAAI,EAAEnB,UAAW;MACjBoB,OAAO,EAAEnC,aAAa,CAACoC,SAAU;MACjCC,WAAW,EAAEpB,W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