@magmamath/students-features 1.3.0 → 1.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (40) hide show
  1. package/.editorconfig +15 -0
  2. package/.eslintignore +2 -0
  3. package/.eslintrc +22 -0
  4. package/.gitattributes +3 -0
  5. package/.github/actions/setup/action.yml +37 -0
  6. package/.github/workflows/ci.yml +73 -0
  7. package/.gitignore +84 -0
  8. package/.nvmrc +1 -0
  9. package/.prettierrc +11 -0
  10. package/.release-it.json +17 -0
  11. package/.watchmanconfig +1 -0
  12. package/.yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs +541 -0
  13. package/.yarn/plugins/@yarnpkg/plugin-workspace-tools.cjs +28 -0
  14. package/.yarn/releases/yarn-3.6.1.cjs +874 -0
  15. package/babel.config.js +5 -0
  16. package/bob.config.js +25 -0
  17. package/dist/commonjs/features/openEnded/components/OpenEndedScoreLabel.js +3 -1
  18. package/dist/commonjs/features/openEnded/components/OpenEndedScoreLabel.js.map +1 -1
  19. package/dist/module/features/openEnded/components/OpenEndedScoreLabel.js +3 -1
  20. package/dist/module/features/openEnded/components/OpenEndedScoreLabel.js.map +1 -1
  21. package/dist/typescript/commonjs/features/openEnded/components/OpenEndedScoreLabel.d.ts +2 -1
  22. package/dist/typescript/commonjs/features/openEnded/components/OpenEndedScoreLabel.d.ts.map +1 -1
  23. package/dist/typescript/module/features/openEnded/components/OpenEndedScoreLabel.d.ts +2 -1
  24. package/dist/typescript/module/features/openEnded/components/OpenEndedScoreLabel.d.ts.map +1 -1
  25. package/example/app.json +30 -0
  26. package/example/assets/adaptive-icon.png +0 -0
  27. package/example/assets/favicon.png +0 -0
  28. package/example/assets/icon.png +0 -0
  29. package/example/assets/splash-icon.png +0 -0
  30. package/example/babel.config.js +28 -0
  31. package/example/index.js +8 -0
  32. package/example/metro.config.js +18 -0
  33. package/example/package.json +25 -0
  34. package/example/src/App.tsx +8 -0
  35. package/example/tsconfig.json +6 -0
  36. package/package.json +2 -2
  37. package/src/features/openEnded/components/OpenEndedScoreLabel.tsx +3 -0
  38. package/tsconfig.build.json +4 -0
  39. package/tsconfig.json +34 -0
  40. package/yarn.lock +10957 -0
@@ -0,0 +1,5 @@
1
+ module.exports = {
2
+ presets: [
3
+ ['module:react-native-builder-bob/babel-preset', { modules: 'commonjs' }],
4
+ ],
5
+ };
package/bob.config.js ADDED
@@ -0,0 +1,25 @@
1
+ module.exports = {
2
+ source: 'src',
3
+ output: 'dist',
4
+ targets: [
5
+ [
6
+ 'commonjs',
7
+ {
8
+ esm: true,
9
+ },
10
+ ],
11
+ [
12
+ 'module',
13
+ {
14
+ esm: true,
15
+ },
16
+ ],
17
+ [
18
+ 'typescript',
19
+ {
20
+ project: 'tsconfig.build.json',
21
+ esm: true,
22
+ },
23
+ ],
24
+ ],
25
+ }
@@ -20,7 +20,8 @@ const OpenEndedScoreLabel = ({
20
20
  score,
21
21
  maxScore,
22
22
  disabled,
23
- variant
23
+ variant,
24
+ accessibilityLabel
24
25
  }) => {
25
26
  const colors = (0, _oeHelpers.getScoreLabelColor)({
26
27
  variant,
@@ -38,6 +39,7 @@ const OpenEndedScoreLabel = ({
38
39
  style: [styles.scoreText, {
39
40
  color: colors.score
40
41
  }],
42
+ accessibilityLabel: accessibilityLabel,
41
43
  children: score
42
44
  })
43
45
  }), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNativeUi.Typography, {
@@ -1 +1 @@
1
- {"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_reactNativeUi","_oeHelpers","_commonConstants","_jsxRuntime","e","__esModule","default","SCORE_WIDTH","DEFAULT","isWeb","LARGE","OpenEndedScoreLabel","label","score","maxScore","disabled","variant","colors","getScoreLabelColor","scoreContainerWidth","jsxs","View","style","styles","container","children","jsx","width","Typography","HeadingVariants","H3","scoreText","color","maxScoreText","exports","StyleSheet","create","alignItems","flexDirection","justifyContent","height","borderWidth","borderRadius","BORDER_RADIUS","borderColor","COLORS","NEUTRAL_5","paddingVertical","SPACING","paddingHorizontal","backgroundColor","NEUTRAL_1","textAlign","marginLeft"],"sourceRoot":"../../../../../src","sources":["features/openEnded/components/OpenEndedScoreLabel.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,cAAA,GAAAF,OAAA;AAOA,IAAAG,UAAA,GAAAH,OAAA;AAEA,IAAAI,gBAAA,GAAAJ,OAAA;AAAwD,IAAAK,WAAA,GAAAL,OAAA;AAAA,SAAAD,uBAAAO,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAUxD,MAAMG,WAAW,GAAG;EAClBC,OAAO,EAAEC,sBAAK,GAAG,EAAE,GAAG,EAAE;EACxBC,KAAK,EAAED,sBAAK,GAAG,EAAE,GAAG;AACtB,CAAU;AAEH,MAAME,mBAAmB,GAAGA,CAAC;EAClCC,KAAK;EACLC,KAAK;EACLC,QAAQ;EACRC,QAAQ;EACRC;AACwB,CAAC,KAAK;EAC9B,MAAMC,MAAM,GAAG,IAAAC,6BAAkB,EAAC;IAAEF,OAAO;IAAED;EAAS,CAAC,CAAC;EACxD,MAAMI,mBAAmB,GACvBN,KAAK,KAAK,IAAI,IAAIA,KAAK,IAAI,EAAE,GAAGN,WAAW,CAACG,KAAK,GAAGH,WAAW,CAACC,OAAO;EAEzE,oBACE,IAAAL,WAAA,CAAAiB,IAAA,EAACrB,YAAA,CAAAsB,IAAI;IAACC,KAAK,EAAEC,MAAM,CAACC,SAAU;IAAAC,QAAA,gBAC5B,IAAAtB,WAAA,CAAAuB,GAAA,EAAC3B,YAAA,CAAAsB,IAAI;MAACC,KAAK,EAAE,CAACC,MAAM,CAACV,KAAK,EAAE;QAAEc,KAAK,EAAER;MAAoB,CAAC,CAAE;MAAAM,QAAA,eAC1D,IAAAtB,WAAA,CAAAuB,GAA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CAAC","ignoreList":[]}
1
+ {"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_reactNativeUi","_oeHelpers","_commonConstants","_jsxRuntime","e","__esModule","default","SCORE_WIDTH","DEFAULT","isWeb","LARGE","OpenEndedScoreLabel","label","score","maxScore","disabled","variant","accessibilityLabel","colors","getScoreLabelColor","scoreContainerWidth","jsxs","View","style","styles","container","children","jsx","width","Typography","HeadingVariants","H3","scoreText","color","maxScoreText","exports","StyleSheet","create","alignItems","flexDirection","justifyContent","height","borderWidth","borderRadius","BORDER_RADIUS","borderColor","COLORS","NEUTRAL_5","paddingVertical","SPACING","paddingHorizontal","backgroundColor","NEUTRAL_1","textAlign","marginLeft"],"sourceRoot":"../../../../../src","sources":["features/openEnded/components/OpenEndedScoreLabel.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,cAAA,GAAAF,OAAA;AAOA,IAAAG,UAAA,GAAAH,OAAA;AAEA,IAAAI,gBAAA,GAAAJ,OAAA;AAAwD,IAAAK,WAAA,GAAAL,OAAA;AAAA,SAAAD,uBAAAO,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAWxD,MAAMG,WAAW,GAAG;EAClBC,OAAO,EAAEC,sBAAK,GAAG,EAAE,GAAG,EAAE;EACxBC,KAAK,EAAED,sBAAK,GAAG,EAAE,GAAG;AACtB,CAAU;AAEH,MAAME,mBAAmB,GAAGA,CAAC;EAClCC,KAAK;EACLC,KAAK;EACLC,QAAQ;EACRC,QAAQ;EACRC,OAAO;EACPC;AACwB,CAAC,KAAK;EAC9B,MAAMC,MAAM,GAAG,IAAAC,6BAAkB,EAAC;IAAEH,OAAO;IAAED;EAAS,CAAC,CAAC;EACxD,MAAMK,mBAAmB,GACvBP,KAAK,KAAK,IAAI,IAAIA,KAAK,IAAI,EAAE,GA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AAW,EAAE,CAAC;IACdC,YAAY,EAAEC,4BAAa,CAAC,GAAG,CAAC;IAChCC,WAAW,EAAEC,qBAAM,CAACC,SAAS;IAC7BC,eAAe,EAAEvC,sBAAK,GAAGwC,sBAAO,CAAC,EAAE,CAAC,GAAG,CAAC;IACxCC,iBAAiB,EAAED,sBAAO,CAAC,GAAG,CAAC;IAC/BE,eAAe,EAAEL,qBAAM,CAACM;EAC1B,CAAC;EACDpB,SAAS,EAAE;IACTqB,SAAS,EAAE;EACb,CAAC;EACDnB,YAAY,EAAE;IACZoB,UAAU,EAAEL,sBAAO,CAAC,GAAG;EACzB;AACF,CAAC,CAAC","ignoreList":[]}
@@ -15,7 +15,8 @@ export const OpenEndedScoreLabel = ({
15
15
  score,
16
16
  maxScore,
17
17
  disabled,
18
- variant
18
+ variant,
19
+ accessibilityLabel
19
20
  }) => {
20
21
  const colors = getScoreLabelColor({
21
22
  variant,
@@ -33,6 +34,7 @@ export const OpenEndedScoreLabel = ({
33
34
  style: [styles.scoreText, {
34
35
  color: colors.score
35
36
  }],
37
+ accessibilityLabel: accessibilityLabel,
36
38
  children: score
37
39
  })
38
40
  }), /*#__PURE__*/_jsxs(Typography, {
@@ -1 +1 @@
1
- {"version":3,"names":["React","View","StyleSheet","Typography","HeadingVariants","SPACING","BORDER_RADIUS","COLORS","getScoreLabelColor","isWeb","jsx","_jsx","jsxs","_jsxs","SCORE_WIDTH","DEFAULT","LARGE","OpenEndedScoreLabel","label","score","maxScore","disabled","variant","colors","scoreContainerWidth","style","styles","container","children","width","H3","scoreText","color","maxScoreText","create","alignItems","flexDirection","justifyContent","height","borderWidth","borderRadius","borderColor","NEUTRAL_5","paddingVertical","paddingHorizontal","backgroundColor","NEUTRAL_1","textAlign","marginLeft"],"sourceRoot":"../../../../../src","sources":["features/openEnded/components/OpenEndedScoreLabel.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,IAAI,EAAEC,UAAU,QAAQ,cAAc;AAC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CAACH;MAAS,CAAC,CAAE;MAAAQ,QAAA,GAC1D,IACG,EAACR,QAAQ,EAAC,GAAC,EAACF,KAAK;IAAA,CACT,CAAC;EAAA,CACT,CAAC;AAEX,CAAC;AAED,MAAMQ,MAAM,GAAGxB,UAAU,CAACgC,MAAM,CAAC;EAC/BP,SAAS,EAAE;IACTQ,UAAU,EAAE,QAAQ;IACpBC,aAAa,EAAE;EACjB,CAAC;EACDjB,KAAK,EAAE;IACLiB,aAAa,EAAE,KAAK;IACpBD,UAAU,EAAE,QAAQ;IACpBE,cAAc,EAAE,QAAQ;IACxBC,MAAM,EAAE,EAAE;IACVC,WAAW,EAAE,CAAC;IACdC,YAAY,EAAElC,aAAa,CAAC,GAAG,CAAC;IAChCmC,WAAW,EAAElC,MAAM,CAACmC,SAAS;IAC7BC,eAAe,EAAElC,KAAK,GAAGJ,OAAO,CAAC,EAAE,CAAC,GAAG,CAAC;IACxCuC,iBAAiB,EAAEvC,OAAO,CAAC,GAAG,CAAC;IAC/BwC,eAAe,EAAEtC,MAAM,CAACuC;EAC1B,CAAC;EACDf,SAAS,EAAE;IACTgB,SAAS,EAAE;EACb,CAAC;EACDd,YAAY,EAAE;IACZe,UAAU,EAAE3C,OAAO,CAAC,GAAG;EACzB;AACF,CAAC,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["React","View","StyleSheet","Typography","HeadingVariants","SPACING","BORDER_RADIUS","COLORS","getScoreLabelColor","isWeb","jsx","_jsx","jsxs","_jsxs","SCORE_WIDTH","DEFAULT","LARGE","OpenEndedScoreLabel","label","score","maxScore","disabled","variant","accessibilityLabel","colors","scoreContainerWidth","style","styles","container","children","width","H3","scoreText","color","maxScoreText","create","alignItems","flexDirection","justifyContent","height","borderWidth","borderRadius","borderColor","NEUTRAL_5","paddingVertical","paddingHorizontal","backgroundColor","NEUTRAL_1","textAlign","marginLeft"],"sourceRoot":"../../../../../src","sources":["features/openEnded/components/OpenEndedScoreLabel.tsx"],"mappings":";;AAAA,OAAOA,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B,OAAO,EAAElB,eAAe,CAAC2B,EAAG;MAC5BL,KAAK,EAAE,CAACC,MAAM,CAACO,YAAY,EAAE;QAAED,KAAK,EAAET,MAAM,CAACJ;MAAS,CAAC,CAAE;MAAAS,QAAA,GAC1D,IACG,EAACT,QAAQ,EAAC,GAAC,EAACF,KAAK;IAAA,CACT,CAAC;EAAA,CACT,CAAC;AAEX,CAAC;AAED,MAAMS,MAAM,GAAGzB,UAAU,CAACiC,MAAM,CAAC;EAC/BP,SAAS,EAAE;IACTQ,UAAU,EAAE,QAAQ;IACpBC,aAAa,EAAE;EACjB,CAAC;EACDlB,KAAK,EAAE;IACLkB,aAAa,EAAE,KAAK;IACpBD,UAAU,EAAE,QAAQ;IACpBE,cAAc,EAAE,QAAQ;IACxBC,MAAM,EAAE,EAAE;IACVC,WAAW,EAAE,CAAC;IACdC,YAAY,EAAEnC,aAAa,CAAC,GAAG,CAAC;IAChCoC,WAAW,EAAEnC,MAAM,CAACoC,SAAS;IAC7BC,eAAe,EAAEnC,KAAK,GAAGJ,OAAO,CAAC,EAAE,CAAC,GAAG,CAAC;IACxCwC,iBAAiB,EAAExC,OAAO,CAAC,GAAG,CAAC;IAC/ByC,eAAe,EAAEvC,MAAM,CAACwC;EAC1B,CAAC;EACDf,SAAS,EAAE;IACTgB,SAAS,EAAE;EACb,CAAC;EACDd,YAAY,EAAE;IACZe,UAAU,EAAE5C,OAAO,CAAC,GAAG;EACzB;AACF,CAAC,CAAC","ignoreList":[]}
@@ -6,7 +6,8 @@ type OpenEndedScoreLabelProps = {
6
6
  maxScore: number;
7
7
  disabled: boolean;
8
8
  variant: OpenEndedScoreLabelVariant;
9
+ accessibilityLabel?: string;
9
10
  };
10
- export declare const OpenEndedScoreLabel: ({ label, score, maxScore, disabled, variant, }: OpenEndedScoreLabelProps) => React.JSX.Element;
11
+ export declare const OpenEndedScoreLabel: ({ label, score, maxScore, disabled, variant, accessibilityLabel, }: OpenEndedScoreLabelProps) => React.JSX.Element;
11
12
  export {};
12
13
  //# sourceMappingURL=OpenEndedScoreLabel.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"OpenEndedScoreLabel.d.ts","sourceRoot":"","sources":["../../../../../../src/features/openEnded/components/OpenEndedScoreLabel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAUzB,OAAO,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAA;AAGxD,KAAK,wBAAwB,GAAG;IAC9B,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,MAAM,GAAG,IAAI,CAAA;IACpB,QAAQ,EAAE,MAAM,CAAA;IAChB,QAAQ,EAAE,OAAO,CAAA;IACjB,OAAO,EAAE,0BAA0B,CAAA;CACpC,CAAA;AAOD,eAAO,MAAM,mBAAmB,mDAM7B,wBAAwB,sBAuB1B,CAAA"}
1
+ {"version":3,"file":"OpenEndedScoreLabel.d.ts","sourceRoot":"","sources":["../../../../../../src/features/openEnded/components/OpenEndedScoreLabel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAUzB,OAAO,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAA;AAGxD,KAAK,wBAAwB,GAAG;IAC9B,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,MAAM,GAAG,IAAI,CAAA;IACpB,QAAQ,EAAE,MAAM,CAAA;IAChB,QAAQ,EAAE,OAAO,CAAA;IACjB,OAAO,EAAE,0BAA0B,CAAA;IACnC,kBAAkB,CAAC,EAAE,MAAM,CAAA;CAC5B,CAAA;AAOD,eAAO,MAAM,mBAAmB,uEAO7B,wBAAwB,sBAwB1B,CAAA"}
@@ -6,7 +6,8 @@ type OpenEndedScoreLabelProps = {
6
6
  maxScore: number;
7
7
  disabled: boolean;
8
8
  variant: OpenEndedScoreLabelVariant;
9
+ accessibilityLabel?: string;
9
10
  };
10
- export declare const OpenEndedScoreLabel: ({ label, score, maxScore, disabled, variant, }: OpenEndedScoreLabelProps) => React.JSX.Element;
11
+ export declare const OpenEndedScoreLabel: ({ label, score, maxScore, disabled, variant, accessibilityLabel, }: OpenEndedScoreLabelProps) => React.JSX.Element;
11
12
  export {};
12
13
  //# sourceMappingURL=OpenEndedScoreLabel.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"OpenEndedScoreLabel.d.ts","sourceRoot":"","sources":["../../../../../../src/features/openEnded/components/OpenEndedScoreLabel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAUzB,OAAO,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAA;AAGxD,KAAK,wBAAwB,GAAG;IAC9B,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,MAAM,GAAG,IAAI,CAAA;IACpB,QAAQ,EAAE,MAAM,CAAA;IAChB,QAAQ,EAAE,OAAO,CAAA;IACjB,OAAO,EAAE,0BAA0B,CAAA;CACpC,CAAA;AAOD,eAAO,MAAM,mBAAmB,mDAM7B,wBAAwB,sBAuB1B,CAAA"}
1
+ {"version":3,"file":"OpenEndedScoreLabel.d.ts","sourceRoot":"","sources":["../../../../../../src/features/openEnded/components/OpenEndedScoreLabel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAUzB,OAAO,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAA;AAGxD,KAAK,wBAAwB,GAAG;IAC9B,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,MAAM,GAAG,IAAI,CAAA;IACpB,QAAQ,EAAE,MAAM,CAAA;IAChB,QAAQ,EAAE,OAAO,CAAA;IACjB,OAAO,EAAE,0BAA0B,CAAA;IACnC,kBAAkB,CAAC,EAAE,MAAM,CAAA;CAC5B,CAAA;AAOD,eAAO,MAAM,mBAAmB,uEAO7B,wBAAwB,sBAwB1B,CAAA"}
@@ -0,0 +1,30 @@
1
+ {
2
+ "expo": {
3
+ "name": "example",
4
+ "slug": "example",
5
+ "version": "1.0.0",
6
+ "orientation": "portrait",
7
+ "icon": "./assets/icon.png",
8
+ "userInterfaceStyle": "light",
9
+ "newArchEnabled": true,
10
+ "splash": {
11
+ "image": "./assets/splash-icon.png",
12
+ "resizeMode": "contain",
13
+ "backgroundColor": "#ffffff"
14
+ },
15
+ "ios": {
16
+ "supportsTablet": true,
17
+ "bundleIdentifier": "magmamath.features.example"
18
+ },
19
+ "android": {
20
+ "adaptiveIcon": {
21
+ "foregroundImage": "./assets/adaptive-icon.png",
22
+ "backgroundColor": "#ffffff"
23
+ },
24
+ "package": "magmamath.features.example"
25
+ },
26
+ "web": {
27
+ "favicon": "./assets/favicon.png"
28
+ }
29
+ }
30
+ }
Binary file
Binary file
Binary file
Binary file
@@ -0,0 +1,28 @@
1
+ const path = require('path')
2
+ const { getConfig } = require('react-native-builder-bob/babel-config')
3
+ const pkg = require('../package.json')
4
+
5
+ const root = path.resolve(__dirname, '..')
6
+
7
+ module.exports = function (api) {
8
+ api.cache(true)
9
+
10
+ return getConfig(
11
+ {
12
+ presets: ['babel-preset-expo'],
13
+ plugins: [
14
+ [
15
+ 'module-resolver',
16
+ {
17
+ extensions: ['.tsx', '.ts', '.js', '.json'],
18
+ alias: {
19
+ [pkg.name]: path.join(__dirname, '../', pkg.source),
20
+ },
21
+ },
22
+ ],
23
+ ['@babel/plugin-transform-private-methods', { loose: true }],
24
+ ],
25
+ },
26
+ { root, pkg },
27
+ )
28
+ }
@@ -0,0 +1,8 @@
1
+ import { registerRootComponent } from 'expo';
2
+
3
+ import App from './src/App';
4
+
5
+ // registerRootComponent calls AppRegistry.registerComponent('main', () => App);
6
+ // It also ensures that whether you load the app in Expo Go or in a native build,
7
+ // the environment is set up appropriately
8
+ registerRootComponent(App);
@@ -0,0 +1,18 @@
1
+ const path = require('path');
2
+ const { getDefaultConfig } = require('@expo/metro-config');
3
+ const { getConfig } = require('react-native-builder-bob/metro-config');
4
+ const pkg = require('../package.json');
5
+
6
+ const root = path.resolve(__dirname, '..');
7
+
8
+ /**
9
+ * Metro configuration
10
+ * https://facebook.github.io/metro/docs/configuration
11
+ *
12
+ * @type {import('metro-config').MetroConfig}
13
+ */
14
+ module.exports = getConfig(getDefaultConfig(__dirname), {
15
+ root,
16
+ pkg,
17
+ project: __dirname,
18
+ });
@@ -0,0 +1,25 @@
1
+ {
2
+ "name": "@magmamath/students-features-example",
3
+ "version": "1.0.0",
4
+ "main": "index.js",
5
+ "scripts": {
6
+ "start": "expo start",
7
+ "android": "expo start --android",
8
+ "ios": "expo start --ios",
9
+ "web": "expo start --web"
10
+ },
11
+ "dependencies": {
12
+ "@expo/metro-runtime": "~4.0.0",
13
+ "expo": "~52.0.11",
14
+ "expo-status-bar": "~2.0.0",
15
+ "react": "18.3.1",
16
+ "react-dom": "18.3.1",
17
+ "react-native": "0.76.3",
18
+ "react-native-web": "~0.19.13"
19
+ },
20
+ "devDependencies": {
21
+ "@babel/core": "^7.20.0",
22
+ "react-native-builder-bob": "^0.33.3"
23
+ },
24
+ "private": true
25
+ }
@@ -0,0 +1,8 @@
1
+ import React from 'react'
2
+ import { Text } from 'react-native'
3
+
4
+ const App = () => {
5
+ return <Text>Hello</Text>
6
+ }
7
+
8
+ export default App
@@ -0,0 +1,6 @@
1
+ {
2
+ "extends": "../tsconfig",
3
+ "compilerOptions": {
4
+ // Avoid expo-cli auto-generating a tsconfig
5
+ }
6
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@magmamath/students-features",
3
- "version": "1.3.0",
3
+ "version": "1.3.1",
4
4
  "description": "Magmamath features library",
5
5
  "source": "src/index.ts",
6
6
  "main": "src/index.ts",
@@ -90,4 +90,4 @@
90
90
  "type": "library",
91
91
  "version": "0.44.3"
92
92
  }
93
- }
93
+ }
@@ -17,6 +17,7 @@ type OpenEndedScoreLabelProps = {
17
17
  maxScore: number
18
18
  disabled: boolean
19
19
  variant: OpenEndedScoreLabelVariant
20
+ accessibilityLabel?: string
20
21
  }
21
22
 
22
23
  const SCORE_WIDTH = {
@@ -30,6 +31,7 @@ export const OpenEndedScoreLabel = ({
30
31
  maxScore,
31
32
  disabled,
32
33
  variant,
34
+ accessibilityLabel,
33
35
  }: OpenEndedScoreLabelProps) => {
34
36
  const colors = getScoreLabelColor({ variant, disabled })
35
37
  const scoreContainerWidth =
@@ -41,6 +43,7 @@ export const OpenEndedScoreLabel = ({
41
43
  <Typography
42
44
  variant={HeadingVariants.H3}
43
45
  style={[styles.scoreText, { color: colors.score }]}
46
+ accessibilityLabel={accessibilityLabel}
44
47
  >
45
48
  {score}
46
49
  </Typography>
@@ -0,0 +1,4 @@
1
+ {
2
+ "extends": "./tsconfig",
3
+ "exclude": ["example", "dist"]
4
+ }
package/tsconfig.json ADDED
@@ -0,0 +1,34 @@
1
+ {
2
+ "compilerOptions": {
3
+ "paths": {
4
+ "@magmamath/students-features": ["./src/index"]
5
+ },
6
+ "target": "esnext",
7
+ "baseUrl": "./",
8
+ "lib": [
9
+ "dom",
10
+ "dom.iterable",
11
+ "esnext"
12
+ ],
13
+ "declaration": true,
14
+ "allowJs": true,
15
+ "skipLibCheck": true,
16
+ "esModuleInterop": true,
17
+ "allowSyntheticDefaultImports": true,
18
+ "strict": true,
19
+ "forceConsistentCasingInFileNames": true,
20
+ "module": "esnext",
21
+ "moduleResolution": "node",
22
+ "resolveJsonModule": true,
23
+ "isolatedModules": true,
24
+ "jsx": "react",
25
+ "experimentalDecorators": true
26
+ },
27
+ "include": [
28
+ "src"
29
+ ],
30
+ "exclude": [
31
+ "node_modules",
32
+ "example"
33
+ ]
34
+ }