@magmamath/students-features 0.6.3-rc-0 → 0.6.3-rc-2
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/problemSelector/components/ProblemSelectorButton.js +8 -5
- package/dist/commonjs/features/problemSelector/components/ProblemSelectorButton.js.map +1 -1
- package/dist/module/features/problemSelector/components/ProblemSelectorButton.js +9 -6
- package/dist/module/features/problemSelector/components/ProblemSelectorButton.js.map +1 -1
- package/dist/typescript/commonjs/features/problemSelector/components/ProblemSelectorButton.d.ts.map +1 -1
- package/dist/typescript/module/features/problemSelector/components/ProblemSelectorButton.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/features/problemSelector/components/ProblemSelectorButton.tsx +12 -5
|
@@ -35,11 +35,9 @@ const ProblemSelectorButton = ({
|
|
|
35
35
|
size: "large"
|
|
36
36
|
}) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeUi.Typography, {
|
|
37
37
|
variant: "h3",
|
|
38
|
-
style: {
|
|
39
|
-
color: customColorScheme[_reactNativeUi.ButtonStates.DEFAULT]?.color
|
|
40
|
-
|
|
41
|
-
fontWeight: '400'
|
|
42
|
-
},
|
|
38
|
+
style: [styles.buttonText, {
|
|
39
|
+
color: customColorScheme[_reactNativeUi.ButtonStates.DEFAULT]?.color
|
|
40
|
+
}],
|
|
43
41
|
children: text ?? ''
|
|
44
42
|
})
|
|
45
43
|
}), typeof badgeValue === 'number' && /*#__PURE__*/(0, _jsxRuntime.jsx)(_studentsFeatures.UnreadMessagesBadge, {
|
|
@@ -64,6 +62,11 @@ const styles = _reactNative.StyleSheet.create({
|
|
|
64
62
|
width: _constants.BUTTON_SIZE,
|
|
65
63
|
height: _constants.BUTTON_SIZE,
|
|
66
64
|
borderWidth: 2.75
|
|
65
|
+
},
|
|
66
|
+
buttonText: {
|
|
67
|
+
textAlign: 'center',
|
|
68
|
+
fontWeight: 400,
|
|
69
|
+
fontFamily: _reactNativeUi.FONT_FAMILY.buenosAires
|
|
67
70
|
}
|
|
68
71
|
});
|
|
69
72
|
//# sourceMappingURL=ProblemSelectorButton.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_studentsFeatures","_reactNativeUi","_constants","_jsxRuntime","e","__esModule","default","ProblemSelectorButton","text","state","onClick","badgeValue","locked","customColorScheme","COLOR_SCHEME_MAP","jsxs","View","style","styles","wrapper","children","jsx","Button","variant","ButtonVariant","PRIMARY","size","ButtonSize","MEDIUM","onPress","button","disabled","icon","LockIcon","color","ButtonStates","DISABLED","Typography","
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_studentsFeatures","_reactNativeUi","_constants","_jsxRuntime","e","__esModule","default","ProblemSelectorButton","text","state","onClick","badgeValue","locked","customColorScheme","COLOR_SCHEME_MAP","jsxs","View","style","styles","wrapper","children","jsx","Button","variant","ButtonVariant","PRIMARY","size","ButtonSize","MEDIUM","onPress","button","disabled","icon","LockIcon","color","ButtonStates","DISABLED","Typography","buttonText","DEFAULT","UnreadMessagesBadge","badgeContent","undefined","withBorder","badge","top","BADGE_COORDINATES","right","exports","StyleSheet","create","position","width","BUTTON_SIZE","height","borderWidth","textAlign","fontWeight","fontFamily","FONT_FAMILY","buenosAires"],"sourceRoot":"../../../../../src","sources":["features/problemSelector/components/ProblemSelectorButton.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAEA,IAAAE,iBAAA,GAAAF,OAAA;AACA,IAAAG,cAAA,GAAAH,OAAA;AAUA,IAAAI,UAAA,GAAAJ,OAAA;AAA+E,IAAAK,WAAA,GAAAL,OAAA;AAAA,SAAAD,uBAAAO,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAIxE,MAAMG,qBAAqB,GAA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AAK,EAAE,CACLC,MAAM,CAAC0B,KAAK,EACZ;QACEC,GAAG,EAAElC,UAAU,GAAG,CAAC,GAAGmC,4BAAiB,CAACD,GAAG;QAC3CE,KAAK,EAAEpC,UAAU,GAAG,CAAC,GAAGmC,4BAAiB,CAACC;MAC5C,CAAC;IACD,CACH,CACF;EAAA,CACG,CAAC;AAEX,CAAC;AAAAC,OAAA,CAAAzC,qBAAA,GAAAA,qBAAA;AAED,MAAMW,MAAM,GAAG+B,uBAAU,CAACC,MAAM,CAAC;EAC/B/B,OAAO,EAAE;IAAEgC,QAAQ,EAAE;EAAW,CAAC;EACjCP,KAAK,EAAE;IAAEO,QAAQ,EAAE;EAAW,CAAC;EAC/BrB,MAAM,EAAE;IACNsB,KAAK,EAAEC,sBAAW;IAClBC,MAAM,EAAED,sBAAW;IACnBE,WAAW,EAAE;EACf,CAAC;EACDjB,UAAU,EAAE;IACVkB,SAAS,EAAE,QAAQ;IACnBC,UAAU,EAAE,GAAG;IACfC,UAAU,EAAEC,0BAAW,CAACC;EAC1B;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import React from 'react';
|
|
4
4
|
import { View, StyleSheet } from 'react-native';
|
|
5
5
|
import { UnreadMessagesBadge } from '@magmamath/students-features';
|
|
6
|
-
import { Button, ButtonSize, ButtonStates, ButtonVariant, LockIcon, Typography } from '@magmamath/react-native-ui';
|
|
6
|
+
import { Button, ButtonSize, ButtonStates, ButtonVariant, FONT_FAMILY, LockIcon, Typography } from '@magmamath/react-native-ui';
|
|
7
7
|
import { BADGE_COORDINATES, BUTTON_SIZE, COLOR_SCHEME_MAP } from "../constants.js";
|
|
8
8
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
9
9
|
export const ProblemSelectorButton = ({
|
|
@@ -30,11 +30,9 @@ export const ProblemSelectorButton = ({
|
|
|
30
30
|
size: "large"
|
|
31
31
|
}) : /*#__PURE__*/_jsx(Typography, {
|
|
32
32
|
variant: "h3",
|
|
33
|
-
style: {
|
|
34
|
-
color: customColorScheme[ButtonStates.DEFAULT]?.color
|
|
35
|
-
|
|
36
|
-
fontWeight: '400'
|
|
37
|
-
},
|
|
33
|
+
style: [styles.buttonText, {
|
|
34
|
+
color: customColorScheme[ButtonStates.DEFAULT]?.color
|
|
35
|
+
}],
|
|
38
36
|
children: text ?? ''
|
|
39
37
|
})
|
|
40
38
|
}), typeof badgeValue === 'number' && /*#__PURE__*/_jsx(UnreadMessagesBadge, {
|
|
@@ -58,6 +56,11 @@ const styles = StyleSheet.create({
|
|
|
58
56
|
width: BUTTON_SIZE,
|
|
59
57
|
height: BUTTON_SIZE,
|
|
60
58
|
borderWidth: 2.75
|
|
59
|
+
},
|
|
60
|
+
buttonText: {
|
|
61
|
+
textAlign: 'center',
|
|
62
|
+
fontWeight: 400,
|
|
63
|
+
fontFamily: FONT_FAMILY.buenosAires
|
|
61
64
|
}
|
|
62
65
|
});
|
|
63
66
|
//# sourceMappingURL=ProblemSelectorButton.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","View","StyleSheet","UnreadMessagesBadge","Button","ButtonSize","ButtonStates","ButtonVariant","LockIcon","Typography","BADGE_COORDINATES","BUTTON_SIZE","COLOR_SCHEME_MAP","jsx","_jsx","jsxs","_jsxs","ProblemSelectorButton","text","state","onClick","badgeValue","locked","customColorScheme","style","styles","wrapper","children","variant","PRIMARY","size","MEDIUM","onPress","button","disabled","icon","color","DISABLED","
|
|
1
|
+
{"version":3,"names":["React","View","StyleSheet","UnreadMessagesBadge","Button","ButtonSize","ButtonStates","ButtonVariant","FONT_FAMILY","LockIcon","Typography","BADGE_COORDINATES","BUTTON_SIZE","COLOR_SCHEME_MAP","jsx","_jsx","jsxs","_jsxs","ProblemSelectorButton","text","state","onClick","badgeValue","locked","customColorScheme","style","styles","wrapper","children","variant","PRIMARY","size","MEDIUM","onPress","button","disabled","icon","color","DISABLED","buttonText","DEFAULT","badgeContent","undefined","withBorder","badge","top","right","create","position","width","height","borderWidth","textAlign","fontWeight","fontFamily","buenosAires"],"sourceRoot":"../../../../../src","sources":["features/problemSelector/components/ProblemSelectorButton.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,IAAI,EAAEC,UAAU,QAAQ,cAAc;AAE/C,SAASC,mBAAmB,QAAQ,8BAA8B;AAClE,SACEC,MAAM,EACNC,UAAU,EACVC,YAAY,EACZC,aAAa,EACbC,WAAW,EACXC,QAAQ,EACRC,UAAU,QACL,4BAA4B;AAEnC,SAASC,iBAAiB,EAAEC,WAAW,EAAEC,gBAAgB,QAAQ,iBAAc;AAAA,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAI/E,OAAO,MAAMC,qBAAqB,GAAGA,CAAC;EACpCC,IAAI;EACJC,KAAK;EACLC,OAAO;EACPC,UAAU;EACVC;AAC0B,CAAC,KAAK;EAChC,MAAMC,iBAAiB,GAAGX,gBAAgB,CAACO,KAAK,CAAC;EAEjD,oBACEH,KAAA,CAAChB,IAAI;IAACwB,KAAK,EAAEC,MAAM,CAACC,OAAQ;IAAAC,QAAA,gBAC1Bb,IAAA,CAACX,MAAM;MACLyB,OAAO,EAAEtB,aAAa,CAACuB,OAAQ;MAC/BC,IAAI,EAAE1B,UAAU,CAAC2B,MAAO;MACxBR,iBAAiB,EAAEA,iBAAkB;MACrCS,OAAO,EAAEZ,OAAQ;MACjBI,KAAK,EAAE;QACLS,MAAM,EAAER,MAAM,CAACQ;MACjB,CAAE;MACFC,QAAQ,EAAEZ,MAAO;MACjBa,IAAI,EACFb,MAAM,gBACJR,IAAA,CAACN,QAAQ;QAAC4B,KAAK,EAAEb,iBAAiB,CAAClB,YAAY,CAACgC,QAAQ,CAAC,EAAED,KAAM;QAACN,IAAI,EAAC;MAAO,CAAE,CAAC,gBAEjFhB,IAAA,CAACL,UAAU;QACTmB,OAAO,EAAC,IAAI;QACZJ,KAAK,EAAE,CACLC,MAAM,CAACa,UAAU,EACjB;UACEF,KAAK,EAAEb,iBAAiB,CAAClB,YAAY,CAACkC,OAAO,CAAC,EAAEH;QAClD,CAAC,CACD;QAAAT,QAAA,EAEDT,IAAI,IAAI;MAAE,CACD;IAEf,CACF,CAAC,EAED,OAAOG,UAAU,KAAK,QAAQ,iBAC7BP,IAAA,CAACZ,mBAAmB;MAClBsC,YAAY,EAAEnB,UAAU,KAAK,CAAC,GAAGA,UAAU,GAAGoB,SAAU;MACxDC,UAAU;MACVlB,KAAK,EAAE,CACLC,MAAM,CAACkB,KAAK,EACZ;QACEC,GAAG,EAAEvB,UAAU,GAAG,CAAC,GAAGX,iBAAiB,CAACkC,GAAG;QAC3CC,KAAK,EAAExB,UAAU,GAAG,CAAC,GAAGX,iBAAiB,CAACmC;MAC5C,CAAC;IACD,CACH,CACF;EAAA,CACG,CAAC;AAEX,CAAC;AAED,MAAMpB,MAAM,GAAGxB,UAAU,CAAC6C,MAAM,CAAC;EAC/BpB,OAAO,EAAE;IAAEqB,QAAQ,EAAE;EAAW,CAAC;EACjCJ,KAAK,EAAE;IAAEI,QAAQ,EAAE;EAAW,CAAC;EAC/Bd,MAAM,EAAE;IACNe,KAAK,EAAErC,WAAW;IAClBsC,MAAM,EAAEtC,WAAW;IACnBuC,WAAW,EAAE;EACf,CAAC;EACDZ,UAAU,EAAE;IACVa,SAAS,EAAE,QAAQ;IACnBC,UAAU,EAAE,GAAG;IACfC,UAAU,EAAE9C,WAAW,CAAC+C;EAC1B;AACF,CAAC,CAAC","ignoreList":[]}
|
package/dist/typescript/commonjs/features/problemSelector/components/ProblemSelectorButton.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProblemSelectorButton.d.ts","sourceRoot":"","sources":["../../../../../../src/features/problemSelector/components/ProblemSelectorButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"ProblemSelectorButton.d.ts","sourceRoot":"","sources":["../../../../../../src/features/problemSelector/components/ProblemSelectorButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAgBzB,OAAO,EAAE,0BAA0B,EAAE,MAAM,UAAU,CAAA;AAErD,eAAO,MAAM,qBAAqB,kDAM/B,0BAA0B,sBAgD5B,CAAA"}
|
package/dist/typescript/module/features/problemSelector/components/ProblemSelectorButton.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProblemSelectorButton.d.ts","sourceRoot":"","sources":["../../../../../../src/features/problemSelector/components/ProblemSelectorButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"ProblemSelectorButton.d.ts","sourceRoot":"","sources":["../../../../../../src/features/problemSelector/components/ProblemSelectorButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAgBzB,OAAO,EAAE,0BAA0B,EAAE,MAAM,UAAU,CAAA;AAErD,eAAO,MAAM,qBAAqB,kDAM/B,0BAA0B,sBAgD5B,CAAA"}
|
package/package.json
CHANGED
|
@@ -7,6 +7,7 @@ import {
|
|
|
7
7
|
ButtonSize,
|
|
8
8
|
ButtonStates,
|
|
9
9
|
ButtonVariant,
|
|
10
|
+
FONT_FAMILY,
|
|
10
11
|
LockIcon,
|
|
11
12
|
Typography,
|
|
12
13
|
} from '@magmamath/react-native-ui'
|
|
@@ -41,11 +42,12 @@ export const ProblemSelectorButton = ({
|
|
|
41
42
|
) : (
|
|
42
43
|
<Typography
|
|
43
44
|
variant="h3"
|
|
44
|
-
style={
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
45
|
+
style={[
|
|
46
|
+
styles.buttonText,
|
|
47
|
+
{
|
|
48
|
+
color: customColorScheme[ButtonStates.DEFAULT]?.color,
|
|
49
|
+
},
|
|
50
|
+
]}
|
|
49
51
|
>
|
|
50
52
|
{text ?? ''}
|
|
51
53
|
</Typography>
|
|
@@ -78,4 +80,9 @@ const styles = StyleSheet.create({
|
|
|
78
80
|
height: BUTTON_SIZE,
|
|
79
81
|
borderWidth: 2.75,
|
|
80
82
|
},
|
|
83
|
+
buttonText: {
|
|
84
|
+
textAlign: 'center',
|
|
85
|
+
fontWeight: 400,
|
|
86
|
+
fontFamily: FONT_FAMILY.buenosAires,
|
|
87
|
+
},
|
|
81
88
|
})
|