@magmamath/students-features 0.9.113 → 0.9.114-rc.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/commonjs/features/pmProgress/PracticeProgress.js +264 -0
- package/dist/commonjs/features/pmProgress/PracticeProgress.js.map +1 -0
- package/dist/commonjs/features/pmProgress/chart/chart.helpers.js +24 -0
- package/dist/commonjs/features/pmProgress/chart/chart.helpers.js.map +1 -0
- package/dist/commonjs/features/pmProgress/chart/chart.types.js +2 -0
- package/dist/commonjs/features/pmProgress/chart/chart.types.js.map +1 -0
- package/dist/commonjs/features/pmProgress/chart/components/PracticeProgressPieChart.js +44 -0
- package/dist/commonjs/features/pmProgress/chart/components/PracticeProgressPieChart.js.map +1 -0
- package/dist/commonjs/features/pmProgress/chart/components/SlicesClipPaths.js +38 -0
- package/dist/commonjs/features/pmProgress/chart/components/SlicesClipPaths.js.map +1 -0
- package/dist/commonjs/features/pmProgress/chart/components/SlicesPaths.js +64 -0
- package/dist/commonjs/features/pmProgress/chart/components/SlicesPaths.js.map +1 -0
- package/dist/commonjs/features/pmProgress/chart/components/layers/SliceArcPattern.js +38 -0
- package/dist/commonjs/features/pmProgress/chart/components/layers/SliceArcPattern.js.map +1 -0
- package/dist/commonjs/features/pmProgress/chart/components/layers/SliceBackgroundColor.js +21 -0
- package/dist/commonjs/features/pmProgress/chart/components/layers/SliceBackgroundColor.js.map +1 -0
- package/dist/commonjs/features/pmProgress/chart/components/layers/SliceFillColor.js +49 -0
- package/dist/commonjs/features/pmProgress/chart/components/layers/SliceFillColor.js.map +1 -0
- package/dist/commonjs/features/pmProgress/chart/model/ArcPatternGenerator.js +49 -0
- package/dist/commonjs/features/pmProgress/chart/model/ArcPatternGenerator.js.map +1 -0
- package/dist/commonjs/features/pmProgress/chart/model/PieChartManager.js +25 -0
- package/dist/commonjs/features/pmProgress/chart/model/PieChartManager.js.map +1 -0
- package/dist/commonjs/features/pmProgress/chart/model/SliceHighlight.js +20 -0
- package/dist/commonjs/features/pmProgress/chart/model/SliceHighlight.js.map +1 -0
- package/dist/commonjs/features/pmProgress/chart/model/SliceShapeGenerator.js +67 -0
- package/dist/commonjs/features/pmProgress/chart/model/SliceShapeGenerator.js.map +1 -0
- package/dist/commonjs/features/pmProgress/header/PracticeProgressHeader.js +180 -0
- package/dist/commonjs/features/pmProgress/header/PracticeProgressHeader.js.map +1 -0
- package/dist/commonjs/features/pmProgress/index.js +13 -0
- package/dist/commonjs/features/pmProgress/index.js.map +1 -0
- package/dist/commonjs/features/pmProgress/list/ListCard.js +128 -0
- package/dist/commonjs/features/pmProgress/list/ListCard.js.map +1 -0
- package/dist/commonjs/features/pmProgress/list/ListItem.js +128 -0
- package/dist/commonjs/features/pmProgress/list/ListItem.js.map +1 -0
- package/dist/commonjs/features/pmProgress/recs/TeacherRecs.js +17 -0
- package/dist/commonjs/features/pmProgress/recs/TeacherRecs.js.map +1 -0
- package/dist/commonjs/features/pmProgress/stats/PracticeProgressStats.js +63 -0
- package/dist/commonjs/features/pmProgress/stats/PracticeProgressStats.js.map +1 -0
- package/dist/commonjs/features/pmProgress/stats/StatsCard.js +66 -0
- package/dist/commonjs/features/pmProgress/stats/StatsCard.js.map +1 -0
- package/dist/commonjs/features/pmProgress/temp.js +74 -0
- package/dist/commonjs/features/pmProgress/temp.js.map +1 -0
- package/dist/commonjs/index.js +14 -2
- package/dist/commonjs/index.js.map +1 -1
- package/dist/commonjs/shared/icons/PentagonIcon.js +32 -0
- package/dist/commonjs/shared/icons/PentagonIcon.js.map +1 -0
- package/dist/commonjs/shared/icons/SketchArrowRight.js +33 -0
- package/dist/commonjs/shared/icons/SketchArrowRight.js.map +1 -0
- package/dist/commonjs/shared/icons/SliceDiamondIcon.js +32 -0
- package/dist/commonjs/shared/icons/SliceDiamondIcon.js.map +1 -0
- package/dist/commonjs/shared/icons/StarIcon.js +32 -0
- package/dist/commonjs/shared/icons/StarIcon.js.map +1 -0
- package/dist/commonjs/shared/icons/TimerIcon.js +35 -0
- package/dist/commonjs/shared/icons/TimerIcon.js.map +1 -0
- package/dist/module/features/pmProgress/PracticeProgress.js +258 -0
- package/dist/module/features/pmProgress/PracticeProgress.js.map +1 -0
- package/dist/module/features/pmProgress/chart/chart.helpers.js +16 -0
- package/dist/module/features/pmProgress/chart/chart.helpers.js.map +1 -0
- package/dist/module/features/pmProgress/chart/chart.types.js +2 -0
- package/dist/module/features/pmProgress/chart/chart.types.js.map +1 -0
- package/dist/module/features/pmProgress/chart/components/PracticeProgressPieChart.js +38 -0
- package/dist/module/features/pmProgress/chart/components/PracticeProgressPieChart.js.map +1 -0
- package/dist/module/features/pmProgress/chart/components/SlicesClipPaths.js +32 -0
- package/dist/module/features/pmProgress/chart/components/SlicesClipPaths.js.map +1 -0
- package/dist/module/features/pmProgress/chart/components/SlicesPaths.js +58 -0
- package/dist/module/features/pmProgress/chart/components/SlicesPaths.js.map +1 -0
- package/dist/module/features/pmProgress/chart/components/layers/SliceArcPattern.js +32 -0
- package/dist/module/features/pmProgress/chart/components/layers/SliceArcPattern.js.map +1 -0
- package/dist/module/features/pmProgress/chart/components/layers/SliceBackgroundColor.js +15 -0
- package/dist/module/features/pmProgress/chart/components/layers/SliceBackgroundColor.js.map +1 -0
- package/dist/module/features/pmProgress/chart/components/layers/SliceFillColor.js +43 -0
- package/dist/module/features/pmProgress/chart/components/layers/SliceFillColor.js.map +1 -0
- package/dist/module/features/pmProgress/chart/model/ArcPatternGenerator.js +44 -0
- package/dist/module/features/pmProgress/chart/model/ArcPatternGenerator.js.map +1 -0
- package/dist/module/features/pmProgress/chart/model/PieChartManager.js +20 -0
- package/dist/module/features/pmProgress/chart/model/PieChartManager.js.map +1 -0
- package/dist/module/features/pmProgress/chart/model/SliceHighlight.js +15 -0
- package/dist/module/features/pmProgress/chart/model/SliceHighlight.js.map +1 -0
- package/dist/module/features/pmProgress/chart/model/SliceShapeGenerator.js +62 -0
- package/dist/module/features/pmProgress/chart/model/SliceShapeGenerator.js.map +1 -0
- package/dist/module/features/pmProgress/header/PracticeProgressHeader.js +174 -0
- package/dist/module/features/pmProgress/header/PracticeProgressHeader.js.map +1 -0
- package/dist/module/features/pmProgress/index.js +4 -0
- package/dist/module/features/pmProgress/index.js.map +1 -0
- package/dist/module/features/pmProgress/list/ListCard.js +121 -0
- package/dist/module/features/pmProgress/list/ListCard.js.map +1 -0
- package/dist/module/features/pmProgress/list/ListItem.js +122 -0
- package/dist/module/features/pmProgress/list/ListItem.js.map +1 -0
- package/dist/module/features/pmProgress/recs/TeacherRecs.js +11 -0
- package/dist/module/features/pmProgress/recs/TeacherRecs.js.map +1 -0
- package/dist/module/features/pmProgress/stats/PracticeProgressStats.js +56 -0
- package/dist/module/features/pmProgress/stats/PracticeProgressStats.js.map +1 -0
- package/dist/module/features/pmProgress/stats/StatsCard.js +60 -0
- package/dist/module/features/pmProgress/stats/StatsCard.js.map +1 -0
- package/dist/module/features/pmProgress/temp.js +70 -0
- package/dist/module/features/pmProgress/temp.js.map +1 -0
- package/dist/module/index.js +1 -0
- package/dist/module/index.js.map +1 -1
- package/dist/module/shared/icons/PentagonIcon.js +24 -0
- package/dist/module/shared/icons/PentagonIcon.js.map +1 -0
- package/dist/module/shared/icons/SketchArrowRight.js +25 -0
- package/dist/module/shared/icons/SketchArrowRight.js.map +1 -0
- package/dist/module/shared/icons/SliceDiamondIcon.js +24 -0
- package/dist/module/shared/icons/SliceDiamondIcon.js.map +1 -0
- package/dist/module/shared/icons/StarIcon.js +24 -0
- package/dist/module/shared/icons/StarIcon.js.map +1 -0
- package/dist/module/shared/icons/TimerIcon.js +27 -0
- package/dist/module/shared/icons/TimerIcon.js.map +1 -0
- package/dist/typescript/commonjs/features/pmProgress/PracticeProgress.d.ts +3 -0
- package/dist/typescript/commonjs/features/pmProgress/PracticeProgress.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/pmProgress/chart/chart.helpers.d.ts +5 -0
- package/dist/typescript/commonjs/features/pmProgress/chart/chart.helpers.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/pmProgress/chart/chart.types.d.ts +35 -0
- package/dist/typescript/commonjs/features/pmProgress/chart/chart.types.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/pmProgress/chart/components/PracticeProgressPieChart.d.ts +9 -0
- package/dist/typescript/commonjs/features/pmProgress/chart/components/PracticeProgressPieChart.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/pmProgress/chart/components/SlicesClipPaths.d.ts +10 -0
- package/dist/typescript/commonjs/features/pmProgress/chart/components/SlicesClipPaths.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/pmProgress/chart/components/SlicesPaths.d.ts +11 -0
- package/dist/typescript/commonjs/features/pmProgress/chart/components/SlicesPaths.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/pmProgress/chart/components/layers/SliceArcPattern.d.ts +12 -0
- package/dist/typescript/commonjs/features/pmProgress/chart/components/layers/SliceArcPattern.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/pmProgress/chart/components/layers/SliceBackgroundColor.d.ts +8 -0
- package/dist/typescript/commonjs/features/pmProgress/chart/components/layers/SliceBackgroundColor.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/pmProgress/chart/components/layers/SliceFillColor.d.ts +13 -0
- package/dist/typescript/commonjs/features/pmProgress/chart/components/layers/SliceFillColor.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/pmProgress/chart/model/ArcPatternGenerator.d.ts +12 -0
- package/dist/typescript/commonjs/features/pmProgress/chart/model/ArcPatternGenerator.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/pmProgress/chart/model/PieChartManager.d.ts +16 -0
- package/dist/typescript/commonjs/features/pmProgress/chart/model/PieChartManager.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/pmProgress/chart/model/SliceHighlight.d.ts +10 -0
- package/dist/typescript/commonjs/features/pmProgress/chart/model/SliceHighlight.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/pmProgress/chart/model/SliceShapeGenerator.d.ts +15 -0
- package/dist/typescript/commonjs/features/pmProgress/chart/model/SliceShapeGenerator.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/pmProgress/header/PracticeProgressHeader.d.ts +12 -0
- package/dist/typescript/commonjs/features/pmProgress/header/PracticeProgressHeader.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/pmProgress/index.d.ts +2 -0
- package/dist/typescript/commonjs/features/pmProgress/index.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/pmProgress/list/ListCard.d.ts +15 -0
- package/dist/typescript/commonjs/features/pmProgress/list/ListCard.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/pmProgress/list/ListItem.d.ts +11 -0
- package/dist/typescript/commonjs/features/pmProgress/list/ListItem.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/pmProgress/recs/TeacherRecs.d.ts +3 -0
- package/dist/typescript/commonjs/features/pmProgress/recs/TeacherRecs.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/pmProgress/stats/PracticeProgressStats.d.ts +3 -0
- package/dist/typescript/commonjs/features/pmProgress/stats/PracticeProgressStats.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/pmProgress/stats/StatsCard.d.ts +10 -0
- package/dist/typescript/commonjs/features/pmProgress/stats/StatsCard.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/pmProgress/temp.d.ts +4 -0
- package/dist/typescript/commonjs/features/pmProgress/temp.d.ts.map +1 -0
- package/dist/typescript/commonjs/index.d.ts +1 -0
- package/dist/typescript/commonjs/index.d.ts.map +1 -1
- package/dist/typescript/commonjs/shared/icons/PentagonIcon.d.ts +4 -0
- package/dist/typescript/commonjs/shared/icons/PentagonIcon.d.ts.map +1 -0
- package/dist/typescript/commonjs/shared/icons/SketchArrowRight.d.ts +4 -0
- package/dist/typescript/commonjs/shared/icons/SketchArrowRight.d.ts.map +1 -0
- package/dist/typescript/commonjs/shared/icons/SliceDiamondIcon.d.ts +4 -0
- package/dist/typescript/commonjs/shared/icons/SliceDiamondIcon.d.ts.map +1 -0
- package/dist/typescript/commonjs/shared/icons/StarIcon.d.ts +4 -0
- package/dist/typescript/commonjs/shared/icons/StarIcon.d.ts.map +1 -0
- package/dist/typescript/commonjs/shared/icons/TimerIcon.d.ts +4 -0
- package/dist/typescript/commonjs/shared/icons/TimerIcon.d.ts.map +1 -0
- package/dist/typescript/module/features/pmProgress/PracticeProgress.d.ts +3 -0
- package/dist/typescript/module/features/pmProgress/PracticeProgress.d.ts.map +1 -0
- package/dist/typescript/module/features/pmProgress/chart/chart.helpers.d.ts +5 -0
- package/dist/typescript/module/features/pmProgress/chart/chart.helpers.d.ts.map +1 -0
- package/dist/typescript/module/features/pmProgress/chart/chart.types.d.ts +35 -0
- package/dist/typescript/module/features/pmProgress/chart/chart.types.d.ts.map +1 -0
- package/dist/typescript/module/features/pmProgress/chart/components/PracticeProgressPieChart.d.ts +9 -0
- package/dist/typescript/module/features/pmProgress/chart/components/PracticeProgressPieChart.d.ts.map +1 -0
- package/dist/typescript/module/features/pmProgress/chart/components/SlicesClipPaths.d.ts +10 -0
- package/dist/typescript/module/features/pmProgress/chart/components/SlicesClipPaths.d.ts.map +1 -0
- package/dist/typescript/module/features/pmProgress/chart/components/SlicesPaths.d.ts +11 -0
- package/dist/typescript/module/features/pmProgress/chart/components/SlicesPaths.d.ts.map +1 -0
- package/dist/typescript/module/features/pmProgress/chart/components/layers/SliceArcPattern.d.ts +12 -0
- package/dist/typescript/module/features/pmProgress/chart/components/layers/SliceArcPattern.d.ts.map +1 -0
- package/dist/typescript/module/features/pmProgress/chart/components/layers/SliceBackgroundColor.d.ts +8 -0
- package/dist/typescript/module/features/pmProgress/chart/components/layers/SliceBackgroundColor.d.ts.map +1 -0
- package/dist/typescript/module/features/pmProgress/chart/components/layers/SliceFillColor.d.ts +13 -0
- package/dist/typescript/module/features/pmProgress/chart/components/layers/SliceFillColor.d.ts.map +1 -0
- package/dist/typescript/module/features/pmProgress/chart/model/ArcPatternGenerator.d.ts +12 -0
- package/dist/typescript/module/features/pmProgress/chart/model/ArcPatternGenerator.d.ts.map +1 -0
- package/dist/typescript/module/features/pmProgress/chart/model/PieChartManager.d.ts +16 -0
- package/dist/typescript/module/features/pmProgress/chart/model/PieChartManager.d.ts.map +1 -0
- package/dist/typescript/module/features/pmProgress/chart/model/SliceHighlight.d.ts +10 -0
- package/dist/typescript/module/features/pmProgress/chart/model/SliceHighlight.d.ts.map +1 -0
- package/dist/typescript/module/features/pmProgress/chart/model/SliceShapeGenerator.d.ts +15 -0
- package/dist/typescript/module/features/pmProgress/chart/model/SliceShapeGenerator.d.ts.map +1 -0
- package/dist/typescript/module/features/pmProgress/header/PracticeProgressHeader.d.ts +12 -0
- package/dist/typescript/module/features/pmProgress/header/PracticeProgressHeader.d.ts.map +1 -0
- package/dist/typescript/module/features/pmProgress/index.d.ts +2 -0
- package/dist/typescript/module/features/pmProgress/index.d.ts.map +1 -0
- package/dist/typescript/module/features/pmProgress/list/ListCard.d.ts +15 -0
- package/dist/typescript/module/features/pmProgress/list/ListCard.d.ts.map +1 -0
- package/dist/typescript/module/features/pmProgress/list/ListItem.d.ts +11 -0
- package/dist/typescript/module/features/pmProgress/list/ListItem.d.ts.map +1 -0
- package/dist/typescript/module/features/pmProgress/recs/TeacherRecs.d.ts +3 -0
- package/dist/typescript/module/features/pmProgress/recs/TeacherRecs.d.ts.map +1 -0
- package/dist/typescript/module/features/pmProgress/stats/PracticeProgressStats.d.ts +3 -0
- package/dist/typescript/module/features/pmProgress/stats/PracticeProgressStats.d.ts.map +1 -0
- package/dist/typescript/module/features/pmProgress/stats/StatsCard.d.ts +10 -0
- package/dist/typescript/module/features/pmProgress/stats/StatsCard.d.ts.map +1 -0
- package/dist/typescript/module/features/pmProgress/temp.d.ts +4 -0
- package/dist/typescript/module/features/pmProgress/temp.d.ts.map +1 -0
- package/dist/typescript/module/index.d.ts +1 -0
- package/dist/typescript/module/index.d.ts.map +1 -1
- package/dist/typescript/module/shared/icons/PentagonIcon.d.ts +4 -0
- package/dist/typescript/module/shared/icons/PentagonIcon.d.ts.map +1 -0
- package/dist/typescript/module/shared/icons/SketchArrowRight.d.ts +4 -0
- package/dist/typescript/module/shared/icons/SketchArrowRight.d.ts.map +1 -0
- package/dist/typescript/module/shared/icons/SliceDiamondIcon.d.ts +4 -0
- package/dist/typescript/module/shared/icons/SliceDiamondIcon.d.ts.map +1 -0
- package/dist/typescript/module/shared/icons/StarIcon.d.ts +4 -0
- package/dist/typescript/module/shared/icons/StarIcon.d.ts.map +1 -0
- package/dist/typescript/module/shared/icons/TimerIcon.d.ts +4 -0
- package/dist/typescript/module/shared/icons/TimerIcon.d.ts.map +1 -0
- package/package.json +4 -2
- package/src/features/pmProgress/PracticeProgress.tsx +249 -0
- package/src/features/pmProgress/chart/chart.helpers.ts +15 -0
- package/src/features/pmProgress/chart/chart.types.ts +36 -0
- package/src/features/pmProgress/chart/components/PracticeProgressPieChart.tsx +32 -0
- package/src/features/pmProgress/chart/components/SlicesClipPaths.tsx +36 -0
- package/src/features/pmProgress/chart/components/SlicesPaths.tsx +67 -0
- package/src/features/pmProgress/chart/components/layers/SliceArcPattern.tsx +44 -0
- package/src/features/pmProgress/chart/components/layers/SliceBackgroundColor.tsx +11 -0
- package/src/features/pmProgress/chart/components/layers/SliceFillColor.tsx +55 -0
- package/src/features/pmProgress/chart/model/ArcPatternGenerator.ts +48 -0
- package/src/features/pmProgress/chart/model/PieChartManager.ts +20 -0
- package/src/features/pmProgress/chart/model/SliceHighlight.ts +17 -0
- package/src/features/pmProgress/chart/model/SliceShapeGenerator.ts +71 -0
- package/src/features/pmProgress/header/PracticeProgressHeader.tsx +178 -0
- package/src/features/pmProgress/index.ts +1 -0
- package/src/features/pmProgress/list/ListCard.tsx +133 -0
- package/src/features/pmProgress/list/ListItem.tsx +113 -0
- package/src/features/pmProgress/recs/TeacherRecs.tsx +10 -0
- package/src/features/pmProgress/stats/PracticeProgressStats.tsx +60 -0
- package/src/features/pmProgress/stats/StatsCard.tsx +58 -0
- package/src/features/pmProgress/temp.ts +67 -0
- package/src/index.ts +1 -0
- package/src/shared/icons/PentagonIcon.tsx +17 -0
- package/src/shared/icons/SketchArrowRight.tsx +18 -0
- package/src/shared/icons/SliceDiamondIcon.tsx +16 -0
- package/src/shared/icons/StarIcon.tsx +17 -0
- package/src/shared/icons/TimerIcon.tsx +21 -0
- package/dist/commonjs/features/chatbot/TTS_HIGHLIGHTING.md +0 -120
- package/dist/module/features/chatbot/TTS_HIGHLIGHTING.md +0 -120
- package/src/features/chatbot/TTS_HIGHLIGHTING.md +0 -120
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","useState","StyleSheet","View","COLORS","SelectGroup","SelectOptionColor","SPACING","StatsCard","StarIcon","TimerIcon","jsx","_jsx","jsxs","_jsxs","OPTIONS","key","title","DEFAULT_SELECTED","PracticeProgressStats","selected","setSelected","style","styles","container","children","cards","value","label","color","PRIMARY_YELLOW","icon","PRIMARY_PURPLE","GREY","options","selectedOptions","onOptionChange","option","create","gap","flexDirection","justifyContent"],"sourceRoot":"../../../../../src","sources":["features/pmProgress/stats/PracticeProgressStats.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,QAAQ,QAAQ,OAAO;AACvC,SAASC,UAAU,EAAEC,IAAI,QAAQ,cAAc;AAC/C,SAASC,MAAM,EAAEC,WAAW,EAAEC,iBAAiB,EAAEC,OAAO,QAAQ,4BAA4B;AAC5F,SAASC,SAAS,QAAQ,gBAAa;AACvC,SAASC,QAAQ,QAAQ,mCAAgC;AACzD,SAASC,SAAS,QAAQ,oCAAiC;AAAA,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAO3D,MAAMC,OAAiB,GAAG,CACxB;EAAEC,GAAG,EAAE,GAAG;EAAEC,KAAK,EAAE;AAAY,CAAC,EAChC;EAAED,GAAG,EAAE,GAAG;EAAEC,KAAK,EAAE;AAAY,CAAC,EAChC;EAAED,GAAG,EAAE,GAAG;EAAEC,KAAK,EAAE;AAAW,CAAC,CAChC;AAED,MAAMC,gBAAgB,GAAG,CAACH,OAAO,CAAC,CAAC,CAAC,CAAC;AAErC,OAAO,MAAMI,qBAAqB,GAAGA,CAAA,KAAM;EACzC,MAAM,CAACC,QAAQ,EAAEC,WAAW,CAAC,GAAGpB,QAAQ,CAAWiB,gBAAgB,CAAC;EAEpE,oBACEJ,KAAA,CAACX,IAAI;IAACmB,KAAK,EAAEC,MAAM,CAACC,SAAU;IAAAC,QAAA,gBAC5BX,KAAA,CAACX,IAAI;MAACmB,KAAK,EAAEC,MAAM,CAACG,KAAM;MAAAD,QAAA,gBACxBb,IAAA,CAACJ,SAAS;QACRmB,KAAK,EAAC,IAAI;QACVC,KAAK,EAAC,gBAAgB;QACtBC,KAAK,EAAEzB,MAAM,CAAC0B,cAAe;QAC7BC,IAAI,eAAEnB,IAAA,CAACH,QAAQ,IAAE;MAAE,CACpB,CAAC,eACFG,IAAA,CAACJ,SAAS;QACRmB,KAAK,EAAC,KAAK;QACXC,KAAK,EAAC,eAAe;QACrBC,KAAK,EAAEzB,MAAM,CAAC4B,cAAe;QAC7BD,IAAI,eAAEnB,IAAA,CAACF,SAAS,IAAE;MAAE,CACrB,CAAC;IAAA,CACE,CAAC,eAEPE,IAAA,CAACP,WAAW;MACVwB,KAAK,EAAEvB,iBAAiB,CAAC2B,IAAK;MAC9BC,OAAO,EAAEnB,OAAQ;MACjBoB,eAAe,EAAEf,QAAS;MAC1BgB,cAAc,EAAGC,MAAM,IAAKhB,WAAW,CAAC,CAACgB,MAAM,CAAW;IAAE,CAC7D,CAAC;EAAA,CACE,CAAC;AAEX,CAAC;AAED,MAAMd,MAAM,GAAGrB,UAAU,CAACoC,MAAM,CAAC;EAC/Bd,SAAS,EAAE;IACTe,GAAG,EAAEhC,OAAO,CAAC,GAAG;EAClB,CAAC;EACDmB,KAAK,EAAE;IACLc,aAAa,EAAE,KAAK;IACpBC,cAAc,EAAE,eAAe;IAC/BF,GAAG,EAAEhC,OAAO,CAAC,GAAG;EAClB;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import { View, StyleSheet, Text } from 'react-native';
|
|
5
|
+
import { COLORS } from '@magmamath/react-native-ui';
|
|
6
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
7
|
+
export const StatsCard = ({
|
|
8
|
+
value,
|
|
9
|
+
label,
|
|
10
|
+
color,
|
|
11
|
+
icon
|
|
12
|
+
}) => {
|
|
13
|
+
return /*#__PURE__*/_jsxs(View, {
|
|
14
|
+
style: [styles.card, {
|
|
15
|
+
borderColor: color
|
|
16
|
+
}],
|
|
17
|
+
children: [/*#__PURE__*/_jsx(View, {
|
|
18
|
+
style: {
|
|
19
|
+
width: 42,
|
|
20
|
+
height: 42,
|
|
21
|
+
alignItems: 'center',
|
|
22
|
+
justifyContent: 'center',
|
|
23
|
+
borderRadius: '100%',
|
|
24
|
+
backgroundColor: color
|
|
25
|
+
},
|
|
26
|
+
children: icon
|
|
27
|
+
}), /*#__PURE__*/_jsxs(View, {
|
|
28
|
+
children: [/*#__PURE__*/_jsx(Text, {
|
|
29
|
+
style: {
|
|
30
|
+
color,
|
|
31
|
+
fontSize: 32,
|
|
32
|
+
fontWeight: 700,
|
|
33
|
+
fontFamily: 'Buenos Aires'
|
|
34
|
+
},
|
|
35
|
+
children: value
|
|
36
|
+
}), /*#__PURE__*/_jsx(Text, {
|
|
37
|
+
style: {
|
|
38
|
+
color: COLORS.NEUTRAL_8,
|
|
39
|
+
fontSize: 10,
|
|
40
|
+
fontFamily: 'Buenos Aires',
|
|
41
|
+
top: -6
|
|
42
|
+
},
|
|
43
|
+
children: label
|
|
44
|
+
})]
|
|
45
|
+
})]
|
|
46
|
+
});
|
|
47
|
+
};
|
|
48
|
+
const styles = StyleSheet.create({
|
|
49
|
+
card: {
|
|
50
|
+
flex: 1,
|
|
51
|
+
height: 65,
|
|
52
|
+
alignItems: 'center',
|
|
53
|
+
flexDirection: 'row',
|
|
54
|
+
borderRadius: 12,
|
|
55
|
+
borderWidth: 4,
|
|
56
|
+
padding: 8,
|
|
57
|
+
gap: 8
|
|
58
|
+
}
|
|
59
|
+
});
|
|
60
|
+
//# sourceMappingURL=StatsCard.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","View","StyleSheet","Text","COLORS","jsx","_jsx","jsxs","_jsxs","StatsCard","value","label","color","icon","style","styles","card","borderColor","children","width","height","alignItems","justifyContent","borderRadius","backgroundColor","fontSize","fontWeight","fontFamily","NEUTRAL_8","top","create","flex","flexDirection","borderWidth","padding","gap"],"sourceRoot":"../../../../../src","sources":["features/pmProgress/stats/StatsCard.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,IAAI,EAAEC,UAAU,EAAEC,IAAI,QAAkB,cAAc;AAC/D,SACEC,MAAM,QAKD,4BAA4B;AAAA,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AASnC,OAAO,MAAMC,SAAS,GAAGA,CAAC;EAAEC,KAAK;EAAEC,KAAK;EAAEC,KAAK;EAAEC;AAAqB,CAAC,KAAK;EAC1E,oBACEL,KAAA,CAACP,IAAI;IAACa,KAAK,EAAE,CAACC,MAAM,CAACC,IAAI,EAAE;MAAEC,WAAW,EAAEL;IAAM,CAAC,CAAE;IAAAM,QAAA,gBACjDZ,IAAA,CAACL,IAAI;MACHa,KAAK,EAAE;QACLK,KAAK,EAAE,EAAE;QACTC,MAAM,EAAE,EAAE;QACVC,UAAU,EAAE,QAAQ;QACpBC,cAAc,EAAE,QAAQ;QACxBC,YAAY,EAAE,MAAM;QACpBC,eAAe,EAAEZ;MACnB,CAAE;MAAAM,QAAA,EAEDL;IAAI,CACD,CAAC,eACPL,KAAA,CAACP,IAAI;MAAAiB,QAAA,gBACHZ,IAAA,CAACH,IAAI;QAACW,KAAK,EAAE;UAAEF,KAAK;UAAEa,QAAQ,EAAE,EAAE;UAAEC,UAAU,EAAE,GAAG;UAAEC,UAAU,EAAE;QAAe,CAAE;QAAAT,QAAA,EAC/ER;MAAK,CACF,CAAC,eACPJ,IAAA,CAACH,IAAI;QACHW,KAAK,EAAE;UAAEF,KAAK,EAAER,MAAM,CAACwB,SAAS;UAAEH,QAAQ,EAAE,EAAE;UAAEE,UAAU,EAAE,cAAc;UAAEE,GAAG,EAAE,CAAC;QAAE,CAAE;QAAAX,QAAA,EAErFP;MAAK,CACF,CAAC;IAAA,CACH,CAAC;EAAA,CACH,CAAC;AAEX,CAAC;AAED,MAAMI,MAAM,GAAGb,UAAU,CAAC4B,MAAM,CAAC;EAC/Bd,IAAI,EAAE;IACJe,IAAI,EAAE,CAAC;IACPX,MAAM,EAAE,EAAE;IACVC,UAAU,EAAE,QAAQ;IACpBW,aAAa,EAAE,KAAK;IACpBT,YAAY,EAAE,EAAE;IAChBU,WAAW,EAAE,CAAC;IACdC,OAAO,EAAE,CAAC;IACVC,GAAG,EAAE;EACP;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { COLORS } from '@magmamath/react-native-ui';
|
|
4
|
+
import { dynamicInnerRadius, dynamicCornerRadius } from "./chart/chart.helpers.js";
|
|
5
|
+
export const SAMPLE_DATA = [{
|
|
6
|
+
value: 1,
|
|
7
|
+
// Large slice
|
|
8
|
+
fillPercent: 100,
|
|
9
|
+
backgroundColor: COLORS.NEUTRAL_4,
|
|
10
|
+
fillColor: COLORS.PRIMARY_BLUE,
|
|
11
|
+
borderColor: COLORS.BLUE_6
|
|
12
|
+
}, {
|
|
13
|
+
value: 1,
|
|
14
|
+
fillPercent: 75,
|
|
15
|
+
backgroundColor: COLORS.NEUTRAL_4,
|
|
16
|
+
fillColor: COLORS.PRIMARY_TURQUOISE,
|
|
17
|
+
borderColor: COLORS.TURQUOISE_6
|
|
18
|
+
},
|
|
19
|
+
// Small
|
|
20
|
+
{
|
|
21
|
+
value: 1,
|
|
22
|
+
fillPercent: 75,
|
|
23
|
+
backgroundColor: COLORS.NEUTRAL_4,
|
|
24
|
+
fillColor: COLORS.PRIMARY_TURQUOISE,
|
|
25
|
+
borderColor: COLORS.TURQUOISE_6
|
|
26
|
+
},
|
|
27
|
+
// Small
|
|
28
|
+
{
|
|
29
|
+
value: 1,
|
|
30
|
+
fillPercent: 50,
|
|
31
|
+
backgroundColor: COLORS.NEUTRAL_4,
|
|
32
|
+
fillColor: COLORS.PRIMARY_GREEN,
|
|
33
|
+
borderColor: COLORS.GREEN_6
|
|
34
|
+
}, {
|
|
35
|
+
value: 1,
|
|
36
|
+
// Small slice
|
|
37
|
+
fillPercent: 20,
|
|
38
|
+
backgroundColor: COLORS.NEUTRAL_4,
|
|
39
|
+
fillColor: COLORS.PRIMARY_ORANGE,
|
|
40
|
+
borderColor: COLORS.ORANGE_6
|
|
41
|
+
}, {
|
|
42
|
+
value: 1,
|
|
43
|
+
// Large slice
|
|
44
|
+
fillPercent: 90,
|
|
45
|
+
backgroundColor: COLORS.NEUTRAL_4,
|
|
46
|
+
fillColor: COLORS.PRIMARY_PURPLE,
|
|
47
|
+
borderColor: COLORS.PURPLE_6
|
|
48
|
+
}];
|
|
49
|
+
export const DEFAULT_CONFIG = {
|
|
50
|
+
size: 430,
|
|
51
|
+
outerRadius: 210,
|
|
52
|
+
innerRadius: dynamicInnerRadius,
|
|
53
|
+
gapBetweenSlices: 8,
|
|
54
|
+
cornerRadius: dynamicCornerRadius,
|
|
55
|
+
// minSlicePercent: 5, // Minimum visual size for any slice (prevents tiny slices)
|
|
56
|
+
pressOffset: 4,
|
|
57
|
+
// How far slice moves on Y axis when pressed
|
|
58
|
+
borderWidth: 4,
|
|
59
|
+
// Stroke width when pressed
|
|
60
|
+
colors: {
|
|
61
|
+
background: 'white' // page background color don't update
|
|
62
|
+
},
|
|
63
|
+
outerArc: {
|
|
64
|
+
color: '#FFFFFF40',
|
|
65
|
+
strokeWidth: 11.75,
|
|
66
|
+
// Height of each pattern row
|
|
67
|
+
dashWidth: 22 // Width of dashes (fixed for all slices)
|
|
68
|
+
}
|
|
69
|
+
};
|
|
70
|
+
//# sourceMappingURL=temp.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["COLORS","dynamicInnerRadius","dynamicCornerRadius","SAMPLE_DATA","value","fillPercent","backgroundColor","NEUTRAL_4","fillColor","PRIMARY_BLUE","borderColor","BLUE_6","PRIMARY_TURQUOISE","TURQUOISE_6","PRIMARY_GREEN","GREEN_6","PRIMARY_ORANGE","ORANGE_6","PRIMARY_PURPLE","PURPLE_6","DEFAULT_CONFIG","size","outerRadius","innerRadius","gapBetweenSlices","cornerRadius","pressOffset","borderWidth","colors","background","outerArc","color","strokeWidth","dashWidth"],"sourceRoot":"../../../../src","sources":["features/pmProgress/temp.ts"],"mappings":";;AAAA,SAASA,MAAM,QAAQ,4BAA4B;AACnD,SAASC,kBAAkB,EAAEC,mBAAmB,QAAQ,0BAAuB;AAG/E,OAAO,MAAMC,WAA6B,GAAG,CAC3C;EACEC,KAAK,EAAE,CAAC;EAAE;EACVC,WAAW,EAAE,GAAG;EAChBC,eAAe,EAAEN,MAAM,CAACO,SAAS;EACjCC,SAAS,EAAER,MAAM,CAACS,YAAY;EAC9BC,WAAW,EAAEV,MAAM,CAACW;AACtB,CAAC,EACD;EACEP,KAAK,EAAE,CAAC;EACRC,WAAW,EAAE,EAAE;EACfC,eAAe,EAAEN,MAAM,CAACO,SAAS;EACjCC,SAAS,EAAER,MAAM,CAACY,iBAAiB;EACnCF,WAAW,EAAEV,MAAM,CAACa;AACtB,CAAC;AAAE;AACH;EACET,KAAK,EAAE,CAAC;EACRC,WAAW,EAAE,EAAE;EACfC,eAAe,EAAEN,MAAM,CAACO,SAAS;EACjCC,SAAS,EAAER,MAAM,CAACY,iBAAiB;EACnCF,WAAW,EAAEV,MAAM,CAACa;AACtB,CAAC;AAAE;AACH;EACET,KAAK,EAAE,CAAC;EACRC,WAAW,EAAE,EAAE;EACfC,eAAe,EAAEN,MAAM,CAACO,SAAS;EACjCC,SAAS,EAAER,MAAM,CAACc,aAAa;EAC/BJ,WAAW,EAAEV,MAAM,CAACe;AACtB,CAAC,EACD;EACEX,KAAK,EAAE,CAAC;EAAE;EACVC,WAAW,EAAE,EAAE;EACfC,eAAe,EAAEN,MAAM,CAACO,SAAS;EACjCC,SAAS,EAAER,MAAM,CAACgB,cAAc;EAChCN,WAAW,EAAEV,MAAM,CAACiB;AACtB,CAAC,EACD;EACEb,KAAK,EAAE,CAAC;EAAE;EACVC,WAAW,EAAE,EAAE;EACfC,eAAe,EAAEN,MAAM,CAACO,SAAS;EACjCC,SAAS,EAAER,MAAM,CAACkB,cAAc;EAChCR,WAAW,EAAEV,MAAM,CAACmB;AACtB,CAAC,CACF;AAED,OAAO,MAAMC,cAAqC,GAAG;EACnDC,IAAI,EAAE,GAAG;EACTC,WAAW,EAAE,GAAG;EAChBC,WAAW,EAAEtB,kBAAkB;EAC/BuB,gBAAgB,EAAE,CAAC;EACnBC,YAAY,EAAEvB,mBAAmB;EACjC;EACAwB,WAAW,EAAE,CAAC;EAAE;EAChBC,WAAW,EAAE,CAAC;EAAE;EAChBC,MAAM,EAAE;IACNC,UAAU,EAAE,OAAO,CAAE;EACvB,CAAC;EACDC,QAAQ,EAAE;IACRC,KAAK,EAAE,WAAW;IAClBC,WAAW,EAAE,KAAK;IAAE;IACpBC,SAAS,EAAE,EAAE,CAAE;EACjB;AACF,CAAC","ignoreList":[]}
|
package/dist/module/index.js
CHANGED
|
@@ -11,6 +11,7 @@ export * from "./features/problemSelector/index.js";
|
|
|
11
11
|
export * from "./features/gifCelebrations/index.js";
|
|
12
12
|
export * from "./features/exampleSolution/index.js";
|
|
13
13
|
export * from "./features/keyboard/index.js";
|
|
14
|
+
export * from "./features/pmProgress/index.js";
|
|
14
15
|
export * from "./features/openEnded/index.js";
|
|
15
16
|
export * from "./shared/icons/index.js";
|
|
16
17
|
//# sourceMappingURL=index.js.map
|
package/dist/module/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["useFeaturesLocalization","setFeaturesLocalization","Locale","generateRandomId"],"sourceRoot":"../../src","sources":["index.ts"],"mappings":";;AAAA,SAASA,uBAAuB,EAAEC,uBAAuB,EAAEC,MAAM,QAAQ,+BAAsB;AAC/F,SAASC,gBAAgB,QAAQ,0BAAuB;AACxD,cAAc,6BAAoB;AAClC,cAAc,8BAAqB;AACnC,cAAc,kCAAyB;AACvC,cAAc,qCAA4B;AAC1C,cAAc,kCAAyB;AACvC,cAAc,qCAA4B;AAC1C,cAAc,qCAA4B;AAC1C,cAAc,qCAA4B;AAC1C,cAAc,8BAAqB;AACnC,cAAc,+BAAsB;AACpC,cAAc,yBAAgB","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":["useFeaturesLocalization","setFeaturesLocalization","Locale","generateRandomId"],"sourceRoot":"../../src","sources":["index.ts"],"mappings":";;AAAA,SAASA,uBAAuB,EAAEC,uBAAuB,EAAEC,MAAM,QAAQ,+BAAsB;AAC/F,SAASC,gBAAgB,QAAQ,0BAAuB;AACxD,cAAc,6BAAoB;AAClC,cAAc,8BAAqB;AACnC,cAAc,kCAAyB;AACvC,cAAc,qCAA4B;AAC1C,cAAc,kCAAyB;AACvC,cAAc,qCAA4B;AAC1C,cAAc,qCAA4B;AAC1C,cAAc,qCAA4B;AAC1C,cAAc,8BAAqB;AACnC,cAAc,gCAAuB;AACrC,cAAc,+BAAsB;AACpC,cAAc,yBAAgB","ignoreList":[]}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import Svg, { G, Path, Defs } from 'react-native-svg';
|
|
5
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
6
|
+
export const PentagonIcon = ({
|
|
7
|
+
size = 32,
|
|
8
|
+
color
|
|
9
|
+
}) => {
|
|
10
|
+
return /*#__PURE__*/_jsxs(Svg, {
|
|
11
|
+
width: size,
|
|
12
|
+
height: size,
|
|
13
|
+
viewBox: "0 0 32 31",
|
|
14
|
+
fill: "none",
|
|
15
|
+
children: [/*#__PURE__*/_jsx(G, {
|
|
16
|
+
filter: "url(#filter0_dd_2255_6755)",
|
|
17
|
+
children: /*#__PURE__*/_jsx(Path, {
|
|
18
|
+
d: "M14.025 2.573a3 3 0 013.527 0l9.788 7.111a3 3 0 011.09 3.355l-3.74 11.506a3 3 0 01-2.852 2.073H9.739a3 3 0 01-2.853-2.073L3.147 13.038a3 3 0 011.09-3.354l9.788-7.111z",
|
|
19
|
+
fill: color
|
|
20
|
+
})
|
|
21
|
+
}), /*#__PURE__*/_jsx(Defs, {})]
|
|
22
|
+
});
|
|
23
|
+
};
|
|
24
|
+
//# sourceMappingURL=PentagonIcon.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","Svg","G","Path","Defs","jsx","_jsx","jsxs","_jsxs","PentagonIcon","size","color","width","height","viewBox","fill","children","filter","d"],"sourceRoot":"../../../../src","sources":["shared/icons/PentagonIcon.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,GAAG,IAAIC,CAAC,EAAEC,IAAI,EAAEC,IAAI,QAAQ,kBAAkB;AAAA,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAGrD,OAAO,MAAMC,YAAY,GAAGA,CAAC;EAAEC,IAAI,GAAG,EAAE;EAAEC;AAAiB,CAAC,KAAK;EAC/D,oBACEH,KAAA,CAACP,GAAG;IAACW,KAAK,EAAEF,IAAK;IAACG,MAAM,EAAEH,IAAK;IAACI,OAAO,EAAC,WAAW;IAACC,IAAI,EAAC,MAAM;IAAAC,QAAA,gBAC7DV,IAAA,CAACJ,CAAC;MAACe,MAAM,EAAC,4BAA4B;MAAAD,QAAA,eACpCV,IAAA,CAACH,IAAI;QACHe,CAAC,EAAC,wKAAwK;QAC1KH,IAAI,EAAEJ;MAAM,CACb;IAAC,CACD,CAAC,eACJL,IAAA,CAACF,IAAI,IAAO,CAAC;EAAA,CACV,CAAC;AAEV,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import Svg, { Path } from 'react-native-svg';
|
|
5
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
6
|
+
export const SketchArrowRight = ({
|
|
7
|
+
size = 46,
|
|
8
|
+
color = '#4D4D63'
|
|
9
|
+
}) => {
|
|
10
|
+
const sizeRatio = 1.65;
|
|
11
|
+
return /*#__PURE__*/_jsx(Svg, {
|
|
12
|
+
width: size,
|
|
13
|
+
height: size * sizeRatio,
|
|
14
|
+
viewBox: "0 0 46 28",
|
|
15
|
+
fill: "none",
|
|
16
|
+
children: /*#__PURE__*/_jsx(Path, {
|
|
17
|
+
d: "M2 14.714c17.875-3.906 41.975-1.466 41.975-1.466m0 0s-7.319-9-11.4-11.248m11.4 11.248s-8.773 6.653-10.562 12.737",
|
|
18
|
+
stroke: color,
|
|
19
|
+
strokeWidth: 4,
|
|
20
|
+
strokeLinecap: "round",
|
|
21
|
+
strokeLinejoin: "round"
|
|
22
|
+
})
|
|
23
|
+
});
|
|
24
|
+
};
|
|
25
|
+
//# sourceMappingURL=SketchArrowRight.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","Svg","Path","jsx","_jsx","SketchArrowRight","size","color","sizeRatio","width","height","viewBox","fill","children","d","stroke","strokeWidth","strokeLinecap","strokeLinejoin"],"sourceRoot":"../../../../src","sources":["shared/icons/SketchArrowRight.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,GAAG,IAAIC,IAAI,QAAQ,kBAAkB;AAAA,SAAAC,GAAA,IAAAC,IAAA;AAG5C,OAAO,MAAMC,gBAAgB,GAAGA,CAAC;EAAEC,IAAI,GAAG,EAAE;EAAEC,KAAK,GAAG;AAAqB,CAAC,KAAK;EAC/E,MAAMC,SAAS,GAAG,IAAI;EACtB,oBACEJ,IAAA,CAACH,GAAG;IAACQ,KAAK,EAAEH,IAAK;IAACI,MAAM,EAAEJ,IAAI,GAAGE,SAAU;IAACG,OAAO,EAAC,WAAW;IAACC,IAAI,EAAC,MAAM;IAAAC,QAAA,eACzET,IAAA,CAACF,IAAI;MACHY,CAAC,EAAC,kHAAkH;MACpHC,MAAM,EAAER,KAAM;MACdS,WAAW,EAAE,CAAE;MACfC,aAAa,EAAC,OAAO;MACrBC,cAAc,EAAC;IAAO,CACvB;EAAC,CACC,CAAC;AAEV,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import Svg, { G, Path } from 'react-native-svg';
|
|
5
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
6
|
+
export const SliceDiamondIcon = ({
|
|
7
|
+
color,
|
|
8
|
+
size = 28
|
|
9
|
+
}) => {
|
|
10
|
+
return /*#__PURE__*/_jsx(Svg, {
|
|
11
|
+
width: size,
|
|
12
|
+
height: size,
|
|
13
|
+
viewBox: "0 0 28 27",
|
|
14
|
+
fill: "none",
|
|
15
|
+
children: /*#__PURE__*/_jsx(G, {
|
|
16
|
+
filter: "url(#filter0_dd_1929_4175)",
|
|
17
|
+
children: /*#__PURE__*/_jsx(Path, {
|
|
18
|
+
d: "M12.004 22.19a2.25 2.25 0 003.652 0l9.269-12.877a2.578 2.578 0 00-.27-3.329C18.677.005 8.983.005 3.005 5.984a2.578 2.578 0 00-.27 3.33l9.269 12.876z",
|
|
19
|
+
fill: color
|
|
20
|
+
})
|
|
21
|
+
})
|
|
22
|
+
});
|
|
23
|
+
};
|
|
24
|
+
//# sourceMappingURL=SliceDiamondIcon.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","Svg","G","Path","jsx","_jsx","SliceDiamondIcon","color","size","width","height","viewBox","fill","children","filter","d"],"sourceRoot":"../../../../src","sources":["shared/icons/SliceDiamondIcon.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AAEzB,OAAOC,GAAG,IAAIC,CAAC,EAAEC,IAAI,QAAQ,kBAAkB;AAAA,SAAAC,GAAA,IAAAC,IAAA;AAE/C,OAAO,MAAMC,gBAAgB,GAAGA,CAAC;EAAEC,KAAK;EAAEC,IAAI,GAAG;AAAc,CAAC,KAAK;EACnE,oBACEH,IAAA,CAACJ,GAAG;IAACQ,KAAK,EAAED,IAAK;IAACE,MAAM,EAAEF,IAAK;IAACG,OAAO,EAAC,WAAW;IAACC,IAAI,EAAC,MAAM;IAAAC,QAAA,eAC7DR,IAAA,CAACH,CAAC;MAACY,MAAM,EAAC,4BAA4B;MAAAD,QAAA,eACpCR,IAAA,CAACF,IAAI;QACHY,CAAC,EAAC,sJAAsJ;QACxJH,IAAI,EAAEL;MAAM,CACb;IAAC,CACD;EAAC,CACD,CAAC;AAEV,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,24 @@
|
|
|
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 StarIcon = ({
|
|
8
|
+
width = 25,
|
|
9
|
+
color = COLORS.NEUTRAL_1
|
|
10
|
+
}) => {
|
|
11
|
+
return /*#__PURE__*/_jsx(Svg, {
|
|
12
|
+
width: width,
|
|
13
|
+
height: width,
|
|
14
|
+
viewBox: "0 0 25 25",
|
|
15
|
+
fill: "none",
|
|
16
|
+
children: /*#__PURE__*/_jsx(Path, {
|
|
17
|
+
fillRule: "evenodd",
|
|
18
|
+
clipRule: "evenodd",
|
|
19
|
+
d: "M13.76.971c-.776-1.295-2.653-1.295-3.43 0L7.082 6.387l-5.565 1.39c-1.508.378-2.028 2.256-.929 3.355l4.128 4.128-1.368 6.502c-.35 1.659 1.394 2.973 2.892 2.18l5.795-3.068 3.865 2.147 2.007 1.004c1.497.748 3.196-.563 2.851-2.201l-1.381-6.564 4.128-4.128c1.099-1.099.579-2.977-.93-3.354L17.01 6.387 13.76.97zM8.796 7.416L12.046 2l3.249 5.416a2 2 0 001.23.91l5.565 1.392-4.129 4.128a2 2 0 00-.542 1.826l1.381 6.564-1.968-.984-3.827-2.126a2 2 0 00-1.907-.02l-5.794 3.068 1.368-6.502a2 2 0 00-.542-1.826L2 9.718l5.565-1.391a2 2 0 001.23-.911z",
|
|
20
|
+
fill: color
|
|
21
|
+
})
|
|
22
|
+
});
|
|
23
|
+
};
|
|
24
|
+
//# sourceMappingURL=StarIcon.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","Svg","Path","COLORS","jsx","_jsx","StarIcon","width","color","NEUTRAL_1","height","viewBox","fill","children","fillRule","clipRule","d"],"sourceRoot":"../../../../src","sources":["shared/icons/StarIcon.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,GAAG,IAAIC,IAAI,QAAQ,kBAAkB;AAE5C,SAASC,MAAM,QAAQ,4BAA4B;AAAA,SAAAC,GAAA,IAAAC,IAAA;AAEnD,OAAO,MAAMC,QAAQ,GAAGA,CAAC;EAAEC,KAAK,GAAG,EAAE;EAAEC,KAAK,GAAGL,MAAM,CAACM;AAAqB,CAAC,KAAK;EAC/E,oBACEJ,IAAA,CAACJ,GAAG;IAACM,KAAK,EAAEA,KAAM;IAACG,MAAM,EAAEH,KAAM;IAACI,OAAO,EAAC,WAAW;IAACC,IAAI,EAAC,MAAM;IAAAC,QAAA,eAC/DR,IAAA,CAACH,IAAI;MACHY,QAAQ,EAAC,SAAS;MAClBC,QAAQ,EAAC,SAAS;MAClBC,CAAC,EAAC,0hBAA0hB;MAC5hBJ,IAAI,EAAEJ;IAAM,CACb;EAAC,CACC,CAAC;AAEV,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,27 @@
|
|
|
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, jsxs as _jsxs } from "react/jsx-runtime";
|
|
7
|
+
export const TimerIcon = ({
|
|
8
|
+
size = 25,
|
|
9
|
+
color = COLORS.NEUTRAL_1
|
|
10
|
+
}) => {
|
|
11
|
+
return /*#__PURE__*/_jsxs(Svg, {
|
|
12
|
+
width: size,
|
|
13
|
+
height: size,
|
|
14
|
+
viewBox: "0 0 21 23",
|
|
15
|
+
fill: "none",
|
|
16
|
+
children: [/*#__PURE__*/_jsx(Path, {
|
|
17
|
+
d: "M10.781 8.984a1.078 1.078 0 10-2.156 0v3.235H6.828a1.078 1.078 0 100 2.156h2.875c.596 0 1.078-.483 1.078-1.078V8.984z",
|
|
18
|
+
fill: color
|
|
19
|
+
}), /*#__PURE__*/_jsx(Path, {
|
|
20
|
+
fillRule: "evenodd",
|
|
21
|
+
clipRule: "evenodd",
|
|
22
|
+
d: "M7.547 0a1.078 1.078 0 100 2.156h1.078v1.497C3.773 4.189 0 8.303 0 13.297 0 18.656 4.344 23 9.703 23c5.359 0 9.703-4.344 9.703-9.703 0-2.28-.787-4.377-2.103-6.033l1.034-1.058.666.666a1.078 1.078 0 101.525-1.525l-2.875-2.875a1.078 1.078 0 10-1.525 1.525l.684.684-1.029 1.054a9.663 9.663 0 00-5.002-2.082V2.156h1.078a1.078 1.078 0 000-2.156H7.547zm-5.39 13.297a7.547 7.547 0 1115.093 0 7.547 7.547 0 01-15.094 0z",
|
|
23
|
+
fill: color
|
|
24
|
+
})]
|
|
25
|
+
});
|
|
26
|
+
};
|
|
27
|
+
//# sourceMappingURL=TimerIcon.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","Svg","Path","COLORS","jsx","_jsx","jsxs","_jsxs","TimerIcon","size","color","NEUTRAL_1","width","height","viewBox","fill","children","d","fillRule","clipRule"],"sourceRoot":"../../../../src","sources":["shared/icons/TimerIcon.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,GAAG,IAAIC,IAAI,QAAQ,kBAAkB;AAE5C,SAASC,MAAM,QAAQ,4BAA4B;AAAA,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAEnD,OAAO,MAAMC,SAAS,GAAGA,CAAC;EAAEC,IAAI,GAAG,EAAE;EAAEC,KAAK,GAAGP,MAAM,CAACQ;AAAqB,CAAC,KAAK;EAC/E,oBACEJ,KAAA,CAACN,GAAG;IAACW,KAAK,EAAEH,IAAK;IAACI,MAAM,EAAEJ,IAAK;IAACK,OAAO,EAAC,WAAW;IAACC,IAAI,EAAC,MAAM;IAAAC,QAAA,gBAC7DX,IAAA,CAACH,IAAI;MACHe,CAAC,EAAC,uHAAuH;MACzHF,IAAI,EAAEL;IAAM,CACb,CAAC,eACFL,IAAA,CAACH,IAAI;MACHgB,QAAQ,EAAC,SAAS;MAClBC,QAAQ,EAAC,SAAS;MAClBF,CAAC,EAAC,4ZAA4Z;MAC9ZF,IAAI,EAAEL;IAAM,CACb,CAAC;EAAA,CACC,CAAC;AAEV,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PracticeProgress.d.ts","sourceRoot":"","sources":["../../../../../src/features/pmProgress/PracticeProgress.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AA8FzB,eAAO,MAAM,gBAAgB,yBAqE5B,CAAA"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare const getSliceClipId: (index: number | string) => string;
|
|
2
|
+
export declare const getFillClipId: (index: number | string) => string;
|
|
3
|
+
export declare const dynamicInnerRadius: (sliceCount: number) => number;
|
|
4
|
+
export declare const dynamicCornerRadius: (fillPercent: number) => number;
|
|
5
|
+
//# sourceMappingURL=chart.helpers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chart.helpers.d.ts","sourceRoot":"","sources":["../../../../../../src/features/pmProgress/chart/chart.helpers.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,cAAc,UAAW,MAAM,GAAG,MAAM,WAA0B,CAAA;AAC/E,eAAO,MAAM,aAAa,UAAW,MAAM,GAAG,MAAM,WAAyB,CAAA;AAE7E,eAAO,MAAM,kBAAkB,eAAgB,MAAM,KAAG,MAIvD,CAAA;AAED,eAAO,MAAM,mBAAmB,gBAAiB,MAAM,KAAG,MAKzD,CAAA"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
export type SliceInputData = {
|
|
2
|
+
value: number;
|
|
3
|
+
fillPercent?: number;
|
|
4
|
+
backgroundColor?: string;
|
|
5
|
+
fillColor: string;
|
|
6
|
+
borderColor: string;
|
|
7
|
+
};
|
|
8
|
+
export type SliceShape = {
|
|
9
|
+
index: number;
|
|
10
|
+
startAngle: number;
|
|
11
|
+
endAngle: number;
|
|
12
|
+
fillPercent: number;
|
|
13
|
+
backgroundColor: string;
|
|
14
|
+
fillColor: string;
|
|
15
|
+
borderColor: string;
|
|
16
|
+
data: SliceInputData;
|
|
17
|
+
};
|
|
18
|
+
export type PieChartManagerConfig = {
|
|
19
|
+
size: number;
|
|
20
|
+
outerRadius: number;
|
|
21
|
+
innerRadius: number | ((sliceCount: number) => number);
|
|
22
|
+
cornerRadius: number | ((fillPercent: number) => number);
|
|
23
|
+
gapBetweenSlices: number;
|
|
24
|
+
borderWidth: number;
|
|
25
|
+
pressOffset: number;
|
|
26
|
+
outerArc: {
|
|
27
|
+
color: string;
|
|
28
|
+
strokeWidth: number;
|
|
29
|
+
dashWidth: number;
|
|
30
|
+
};
|
|
31
|
+
colors: {
|
|
32
|
+
background: string;
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
//# sourceMappingURL=chart.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chart.types.d.ts","sourceRoot":"","sources":["../../../../../../src/features/pmProgress/chart/chart.types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,cAAc,GAAG;IAC3B,KAAK,EAAE,MAAM,CAAA;IACb,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,SAAS,EAAE,MAAM,CAAA;IACjB,WAAW,EAAE,MAAM,CAAA;CACpB,CAAA;AAED,MAAM,MAAM,UAAU,GAAG;IACvB,KAAK,EAAE,MAAM,CAAA;IACb,UAAU,EAAE,MAAM,CAAA;IAClB,QAAQ,EAAE,MAAM,CAAA;IAChB,WAAW,EAAE,MAAM,CAAA;IACnB,eAAe,EAAE,MAAM,CAAA;IACvB,SAAS,EAAE,MAAM,CAAA;IACjB,WAAW,EAAE,MAAM,CAAA;IACnB,IAAI,EAAE,cAAc,CAAA;CACrB,CAAA;AAED,MAAM,MAAM,qBAAqB,GAAG;IAClC,IAAI,EAAE,MAAM,CAAA;IACZ,WAAW,EAAE,MAAM,CAAA;IACnB,WAAW,EAAE,MAAM,GAAG,CAAC,CAAC,UAAU,EAAE,MAAM,KAAK,MAAM,CAAC,CAAA;IACtD,YAAY,EAAE,MAAM,GAAG,CAAC,CAAC,WAAW,EAAE,MAAM,KAAK,MAAM,CAAC,CAAA;IACxD,gBAAgB,EAAE,MAAM,CAAA;IACxB,WAAW,EAAE,MAAM,CAAA;IACnB,WAAW,EAAE,MAAM,CAAA;IACnB,QAAQ,EAAE;QACR,KAAK,EAAE,MAAM,CAAA;QACb,WAAW,EAAE,MAAM,CAAA;QACnB,SAAS,EAAE,MAAM,CAAA;KAClB,CAAA;IACD,MAAM,EAAE;QACN,UAAU,EAAE,MAAM,CAAA;KACnB,CAAA;CACF,CAAA"}
|
package/dist/typescript/commonjs/features/pmProgress/chart/components/PracticeProgressPieChart.d.ts
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { PieChartManagerConfig, SliceInputData } from '../chart.types';
|
|
3
|
+
type PracticeProgressPieChartProps = {
|
|
4
|
+
data: SliceInputData[];
|
|
5
|
+
config: PieChartManagerConfig;
|
|
6
|
+
};
|
|
7
|
+
export declare const PracticeProgressPieChart: React.MemoExoticComponent<({ data, config }: PracticeProgressPieChartProps) => React.JSX.Element>;
|
|
8
|
+
export {};
|
|
9
|
+
//# sourceMappingURL=PracticeProgressPieChart.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PracticeProgressPieChart.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/pmProgress/chart/components/PracticeProgressPieChart.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkC,MAAM,OAAO,CAAA;AAMtD,OAAO,KAAK,EAAE,qBAAqB,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAA;AAE3E,KAAK,6BAA6B,GAAG;IACnC,IAAI,EAAE,cAAc,EAAE,CAAA;IACtB,MAAM,EAAE,qBAAqB,CAAA;CAC9B,CAAA;AAED,eAAO,MAAM,wBAAwB,+CAA2B,6BAA6B,uBAkB3F,CAAA"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { SliceShape } from '../chart.types';
|
|
3
|
+
import type { PieChartManager } from '../model/PieChartManager';
|
|
4
|
+
type SlicesClipPathsProps = {
|
|
5
|
+
slices: SliceShape[];
|
|
6
|
+
pieChartManager: PieChartManager;
|
|
7
|
+
};
|
|
8
|
+
export declare const SlicesClipPaths: ({ slices, pieChartManager }: SlicesClipPathsProps) => React.JSX.Element;
|
|
9
|
+
export {};
|
|
10
|
+
//# sourceMappingURL=SlicesClipPaths.d.ts.map
|
package/dist/typescript/commonjs/features/pmProgress/chart/components/SlicesClipPaths.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SlicesClipPaths.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/pmProgress/chart/components/SlicesClipPaths.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAA;AAChD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAA;AAE/D,KAAK,oBAAoB,GAAG;IAC1B,MAAM,EAAE,UAAU,EAAE,CAAA;IACpB,eAAe,EAAE,eAAe,CAAA;CACjC,CAAA;AAED,eAAO,MAAM,eAAe,gCAAiC,oBAAoB,sBAwBhF,CAAA"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { PieChartManagerConfig, SliceShape } from '../chart.types';
|
|
3
|
+
import type { PieChartManager } from '../model/PieChartManager';
|
|
4
|
+
type SlicesPathsProps = {
|
|
5
|
+
slices: SliceShape[];
|
|
6
|
+
pieChartManager: PieChartManager;
|
|
7
|
+
config: PieChartManagerConfig;
|
|
8
|
+
};
|
|
9
|
+
export declare const SlicesPaths: ({ slices, pieChartManager, config }: SlicesPathsProps) => React.JSX.Element;
|
|
10
|
+
export {};
|
|
11
|
+
//# sourceMappingURL=SlicesPaths.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SlicesPaths.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/pmProgress/chart/components/SlicesPaths.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAOzB,OAAO,KAAK,EAAE,qBAAqB,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAA;AACvE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAA;AAE/D,KAAK,gBAAgB,GAAG;IACtB,MAAM,EAAE,UAAU,EAAE,CAAA;IACpB,eAAe,EAAE,eAAe,CAAA;IAChC,MAAM,EAAE,qBAAqB,CAAA;CAC9B,CAAA;AAED,eAAO,MAAM,WAAW,wCAAyC,gBAAgB,sBA2ChF,CAAA"}
|
package/dist/typescript/commonjs/features/pmProgress/chart/components/layers/SliceArcPattern.d.ts
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { PieChartManagerConfig, SliceShape } from '../../chart.types';
|
|
3
|
+
import type { PieChartManager } from '../../model/PieChartManager';
|
|
4
|
+
type SliceArcPatternProps = {
|
|
5
|
+
clipPathId: string;
|
|
6
|
+
slice: SliceShape;
|
|
7
|
+
pieChartManager: PieChartManager;
|
|
8
|
+
config: PieChartManagerConfig;
|
|
9
|
+
};
|
|
10
|
+
export declare const SliceArcPattern: ({ clipPathId, slice, pieChartManager, config, }: SliceArcPatternProps) => React.JSX.Element;
|
|
11
|
+
export {};
|
|
12
|
+
//# sourceMappingURL=SliceArcPattern.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SliceArcPattern.d.ts","sourceRoot":"","sources":["../../../../../../../../src/features/pmProgress/chart/components/layers/SliceArcPattern.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB,OAAO,KAAK,EAAE,qBAAqB,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAA;AAC1E,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAA;AAElE,KAAK,oBAAoB,GAAG;IAC1B,UAAU,EAAE,MAAM,CAAA;IAClB,KAAK,EAAE,UAAU,CAAA;IACjB,eAAe,EAAE,eAAe,CAAA;IAChC,MAAM,EAAE,qBAAqB,CAAA;CAC9B,CAAA;AAED,eAAO,MAAM,eAAe,oDAKzB,oBAAoB,sBAyBtB,CAAA"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
type BackgroundLayerProps = {
|
|
3
|
+
path: string;
|
|
4
|
+
color: string;
|
|
5
|
+
};
|
|
6
|
+
export declare const SliceBackgroundColor: ({ path, color }: BackgroundLayerProps) => React.JSX.Element;
|
|
7
|
+
export {};
|
|
8
|
+
//# sourceMappingURL=SliceBackgroundColor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SliceBackgroundColor.d.ts","sourceRoot":"","sources":["../../../../../../../../src/features/pmProgress/chart/components/layers/SliceBackgroundColor.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB,KAAK,oBAAoB,GAAG;IAC1B,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,EAAE,MAAM,CAAA;CACd,CAAA;AAED,eAAO,MAAM,oBAAoB,oBAAqB,oBAAoB,sBAEzE,CAAA"}
|
package/dist/typescript/commonjs/features/pmProgress/chart/components/layers/SliceFillColor.d.ts
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
type SliceFillColorProps = {
|
|
3
|
+
clipPathId: string;
|
|
4
|
+
shapeSvg: string;
|
|
5
|
+
fillSvg: string;
|
|
6
|
+
color: string;
|
|
7
|
+
percent: number;
|
|
8
|
+
borderColor?: string;
|
|
9
|
+
borderWidth?: number;
|
|
10
|
+
};
|
|
11
|
+
export declare const SliceFillColor: ({ clipPathId, shapeSvg, fillSvg, color, percent, borderColor, borderWidth, }: SliceFillColorProps) => React.JSX.Element | null;
|
|
12
|
+
export {};
|
|
13
|
+
//# sourceMappingURL=SliceFillColor.d.ts.map
|
package/dist/typescript/commonjs/features/pmProgress/chart/components/layers/SliceFillColor.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SliceFillColor.d.ts","sourceRoot":"","sources":["../../../../../../../../src/features/pmProgress/chart/components/layers/SliceFillColor.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAIzB,KAAK,mBAAmB,GAAG;IACzB,UAAU,EAAE,MAAM,CAAA;IAClB,QAAQ,EAAE,MAAM,CAAA;IAChB,OAAO,EAAE,MAAM,CAAA;IACf,KAAK,EAAE,MAAM,CAAA;IACb,OAAO,EAAE,MAAM,CAAA;IACf,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,WAAW,CAAC,EAAE,MAAM,CAAA;CACrB,CAAA;AAED,eAAO,MAAM,cAAc,iFAQxB,mBAAmB,6BAgCrB,CAAA"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { PieChartManagerConfig, SliceShape } from '../chart.types';
|
|
2
|
+
export declare class OuterArcPatternGenerator {
|
|
3
|
+
private readonly config;
|
|
4
|
+
constructor(config: PieChartManagerConfig);
|
|
5
|
+
generateArcPath(slice: SliceShape, radius: number): string;
|
|
6
|
+
/** Returns the sizes of the two rings where the checkerboard dashes are drawn. */
|
|
7
|
+
getPatternTrackSizes(): [number, number];
|
|
8
|
+
getDashWidthForRadius(radius: number): number;
|
|
9
|
+
getDashOffset(rowIndex: number, radius: number): number;
|
|
10
|
+
private polarToCartesian;
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=ArcPatternGenerator.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ArcPatternGenerator.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/pmProgress/chart/model/ArcPatternGenerator.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAA;AAEvE,qBAAa,wBAAwB;IACvB,OAAO,CAAC,QAAQ,CAAC,MAAM;gBAAN,MAAM,EAAE,qBAAqB;IAEnD,eAAe,CAAC,KAAK,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM;IAYxD,kFAAkF;IAC3E,oBAAoB,IAAI,CAAC,MAAM,EAAE,MAAM,CAAC;IAQxC,qBAAqB,CAAC,MAAM,EAAE,MAAM;IAIpC,aAAa,CAAC,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM;IAWrD,OAAO,CAAC,gBAAgB;CAMzB"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { SliceShapeGenerator } from './SliceShapeGenerator';
|
|
2
|
+
import { OuterArcPatternGenerator } from './ArcPatternGenerator';
|
|
3
|
+
import { SliceHighlight } from './SliceHighlight';
|
|
4
|
+
import type { PieChartManagerConfig } from '../chart.types';
|
|
5
|
+
export declare class PieChartManager {
|
|
6
|
+
readonly config: PieChartManagerConfig;
|
|
7
|
+
readonly shape: SliceShapeGenerator;
|
|
8
|
+
readonly pattern: OuterArcPatternGenerator;
|
|
9
|
+
readonly highlight: SliceHighlight;
|
|
10
|
+
constructor(config: PieChartManagerConfig);
|
|
11
|
+
getCenter(): {
|
|
12
|
+
x: number;
|
|
13
|
+
y: number;
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=PieChartManager.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PieChartManager.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/pmProgress/chart/model/PieChartManager.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAA;AAC3D,OAAO,EAAE,wBAAwB,EAAE,MAAM,uBAAuB,CAAA;AAChE,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AACjD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,gBAAgB,CAAA;AAE3D,qBAAa,eAAe;aAKE,MAAM,EAAE,qBAAqB;IAJzD,SAAgB,KAAK,EAAE,mBAAmB,CAAA;IAC1C,SAAgB,OAAO,EAAE,wBAAwB,CAAA;IACjD,SAAgB,SAAS,EAAE,cAAc,CAAA;gBAEb,MAAM,EAAE,qBAAqB;IAMlD,SAAS;;;;CAGjB"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { PieChartManagerConfig } from '../chart.types';
|
|
2
|
+
export declare class SliceHighlight {
|
|
3
|
+
private readonly config;
|
|
4
|
+
readonly highlightSlice: import("effector").EventCallable<number>;
|
|
5
|
+
readonly resetHighlight: import("effector").EventCallable<void>;
|
|
6
|
+
readonly $highlightedIndex: import("effector").StoreWritable<number | null>;
|
|
7
|
+
constructor(config: PieChartManagerConfig);
|
|
8
|
+
getTranslateY(isHighlighted: boolean): number;
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=SliceHighlight.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SliceHighlight.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/pmProgress/chart/model/SliceHighlight.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,gBAAgB,CAAA;AAE3D,qBAAa,cAAc;IAQb,OAAO,CAAC,QAAQ,CAAC,MAAM;IAPnC,SAAgB,cAAc,2CAAwB;IACtD,SAAgB,cAAc,yCAAgB;IAE9C,SAAgB,iBAAiB,kDAEJ;gBAEA,MAAM,EAAE,qBAAqB;IAEnD,aAAa,CAAC,aAAa,EAAE,OAAO,GAAG,MAAM;CAGrD"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { PieChartManagerConfig, SliceInputData, SliceShape } from '../chart.types';
|
|
2
|
+
export declare class SliceShapeGenerator {
|
|
3
|
+
private readonly config;
|
|
4
|
+
private innerRadius;
|
|
5
|
+
private readonly d3Pie;
|
|
6
|
+
constructor(config: PieChartManagerConfig);
|
|
7
|
+
generateSlices(data: SliceInputData[]): SliceShape[];
|
|
8
|
+
generateSlicePath(slice: SliceShape): string;
|
|
9
|
+
generateFillPath(slice: SliceShape): string;
|
|
10
|
+
private getInnerRadius;
|
|
11
|
+
private getCornerRadius;
|
|
12
|
+
private get padAngle();
|
|
13
|
+
private buildArc;
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=SliceShapeGenerator.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SliceShapeGenerator.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/pmProgress/chart/model/SliceShapeGenerator.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,qBAAqB,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAA;AAEvF,qBAAa,mBAAmB;IAMlB,OAAO,CAAC,QAAQ,CAAC,MAAM;IALnC,OAAO,CAAC,WAAW,CAAI;IACvB,OAAO,CAAC,QAAQ,CAAC,KAAK,CAET;gBAEgB,MAAM,EAAE,qBAAqB;IAEnD,cAAc,CAAC,IAAI,EAAE,cAAc,EAAE,GAAG,UAAU,EAAE;IAepD,iBAAiB,CAAC,KAAK,EAAE,UAAU,GAAG,MAAM;IAK5C,gBAAgB,CAAC,KAAK,EAAE,UAAU,GAAG,MAAM;IAUlD,OAAO,CAAC,cAAc;IAKtB,OAAO,CAAC,eAAe;IAKvB,OAAO,KAAK,QAAQ,GAEnB;IAED,OAAO,CAAC,QAAQ;CAejB"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
type PracticeProgressHeaderProps = {
|
|
3
|
+
title: string;
|
|
4
|
+
grade: string;
|
|
5
|
+
nextUp: string;
|
|
6
|
+
topic: string;
|
|
7
|
+
buttonLabel: string;
|
|
8
|
+
topicColor: string;
|
|
9
|
+
};
|
|
10
|
+
export declare const PracticeProgressHeader: ({ title, grade, nextUp, topic, buttonLabel, topicColor, }: PracticeProgressHeaderProps) => React.JSX.Element;
|
|
11
|
+
export {};
|
|
12
|
+
//# sourceMappingURL=PracticeProgressHeader.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PracticeProgressHeader.d.ts","sourceRoot":"","sources":["../../../../../../src/features/pmProgress/header/PracticeProgressHeader.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAA;AAoCvC,KAAK,2BAA2B,GAAG;IACjC,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,MAAM,CAAA;IACb,MAAM,EAAE,MAAM,CAAA;IACd,KAAK,EAAE,MAAM,CAAA;IACb,WAAW,EAAE,MAAM,CAAA;IACnB,UAAU,EAAE,MAAM,CAAA;CACnB,CAAA;AAED,eAAO,MAAM,sBAAsB,8DAOhC,2BAA2B,sBAgE7B,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/pmProgress/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAA"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type ListItemData } from './ListItem';
|
|
3
|
+
type ListCardProps = {
|
|
4
|
+
title: string;
|
|
5
|
+
icon: JSX.Element;
|
|
6
|
+
color: string;
|
|
7
|
+
items: ListItemData[];
|
|
8
|
+
progress?: number;
|
|
9
|
+
rightContent?: React.ReactNode;
|
|
10
|
+
isFirst?: boolean;
|
|
11
|
+
isLast?: boolean;
|
|
12
|
+
};
|
|
13
|
+
export declare const ListCard: ({ title, icon, color, items, progress, rightContent, isFirst, isLast, }: ListCardProps) => React.JSX.Element;
|
|
14
|
+
export {};
|
|
15
|
+
//# sourceMappingURL=ListCard.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ListCard.d.ts","sourceRoot":"","sources":["../../../../../../src/features/pmProgress/list/ListCard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAA;AAWvC,OAAO,EAAY,KAAK,YAAY,EAAE,MAAM,YAAY,CAAA;AAOxD,KAAK,aAAa,GAAG;IACnB,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,EAAE,GAAG,CAAC,OAAO,CAAA;IACjB,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,YAAY,EAAE,CAAA;IACrB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,YAAY,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IAC9B,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,MAAM,CAAC,EAAE,OAAO,CAAA;CACjB,CAAA;AAED,eAAO,MAAM,QAAQ,4EASlB,aAAa,sBAoCf,CAAA"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export type ListItemData = {
|
|
3
|
+
title: string;
|
|
4
|
+
subtitle: string;
|
|
5
|
+
skillsLeft: number;
|
|
6
|
+
isFinished?: boolean;
|
|
7
|
+
};
|
|
8
|
+
type ListItemProps = ListItemData;
|
|
9
|
+
export declare const ListItem: ({ title, subtitle, skillsLeft, isFinished }: ListItemProps) => React.JSX.Element;
|
|
10
|
+
export {};
|
|
11
|
+
//# sourceMappingURL=ListItem.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ListItem.d.ts","sourceRoot":"","sources":["../../../../../../src/features/pmProgress/list/ListItem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAczB,MAAM,MAAM,YAAY,GAAG;IACzB,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,EAAE,MAAM,CAAA;IAChB,UAAU,EAAE,MAAM,CAAA;IAClB,UAAU,CAAC,EAAE,OAAO,CAAA;CACrB,CAAA;AAED,KAAK,aAAa,GAAG,YAAY,CAAA;AAEjC,eAAO,MAAM,QAAQ,gDAAyD,aAAa,sBAuB1F,CAAA"}
|