@magmamath/students-features 0.9.110-rc.2 → 0.9.110-rc.3
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/openEnded/components/OEAttemptsLimit.js +33 -0
- package/dist/commonjs/features/openEnded/components/OEAttemptsLimit.js.map +1 -0
- package/dist/commonjs/features/openEnded/index.js +9 -1
- package/dist/commonjs/features/openEnded/index.js.map +1 -1
- package/dist/module/features/openEnded/components/OEAttemptsLimit.js +27 -0
- package/dist/module/features/openEnded/components/OEAttemptsLimit.js.map +1 -0
- package/dist/module/features/openEnded/index.js +1 -0
- package/dist/module/features/openEnded/index.js.map +1 -1
- package/dist/typescript/commonjs/features/openEnded/components/OEAttemptsLimit.d.ts +7 -0
- package/dist/typescript/commonjs/features/openEnded/components/OEAttemptsLimit.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/openEnded/index.d.ts +1 -0
- package/dist/typescript/commonjs/features/openEnded/index.d.ts.map +1 -1
- package/dist/typescript/module/features/openEnded/components/OEAttemptsLimit.d.ts +7 -0
- package/dist/typescript/module/features/openEnded/components/OEAttemptsLimit.d.ts.map +1 -0
- package/dist/typescript/module/features/openEnded/index.d.ts +1 -0
- package/dist/typescript/module/features/openEnded/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/features/openEnded/components/OEAttemptsLimit.tsx +25 -0
- package/src/features/openEnded/index.ts +1 -0
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.OEAttemptsLimit = 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 OEAttemptsLimit = ({
|
|
13
|
+
text
|
|
14
|
+
}) => /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
15
|
+
style: styles.container,
|
|
16
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
17
|
+
style: styles.text,
|
|
18
|
+
children: text
|
|
19
|
+
})
|
|
20
|
+
});
|
|
21
|
+
exports.OEAttemptsLimit = OEAttemptsLimit;
|
|
22
|
+
const styles = _reactNative.StyleSheet.create({
|
|
23
|
+
container: {
|
|
24
|
+
paddingHorizontal: _reactNativeUi.SPACING[200],
|
|
25
|
+
borderRadius: _reactNativeUi.BORDER_RADIUS[300],
|
|
26
|
+
backgroundColor: _reactNativeUi.COLORS.PRIMARY_RED
|
|
27
|
+
},
|
|
28
|
+
text: {
|
|
29
|
+
fontSize: 14,
|
|
30
|
+
color: _reactNativeUi.COLORS.NEUTRAL_1
|
|
31
|
+
}
|
|
32
|
+
});
|
|
33
|
+
//# sourceMappingURL=OEAttemptsLimit.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_reactNativeUi","_jsxRuntime","e","__esModule","default","OEAttemptsLimit","text","jsx","View","style","styles","container","children","Text","exports","StyleSheet","create","paddingHorizontal","SPACING","borderRadius","BORDER_RADIUS","backgroundColor","COLORS","PRIMARY_RED","fontSize","color","NEUTRAL_1"],"sourceRoot":"../../../../../src","sources":["features/openEnded/components/OEAttemptsLimit.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,cAAA,GAAAF,OAAA;AAA2E,IAAAG,WAAA,GAAAH,OAAA;AAAA,SAAAD,uBAAAK,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAMpE,MAAMG,eAAe,GAAGA,CAAC;EAAEC;AAA2B,CAAC,kBAC5D,IAAAL,WAAA,CAAAM,GAAA,EAACR,YAAA,CAAAS,IAAI;EAACC,KAAK,EAAEC,MAAM,CAACC,SAAU;EAAAC,QAAA,eAC5B,IAAAX,WAAA,CAAAM,GAAA,EAACR,YAAA,CAAAc,IAAI;IAACJ,KAAK,EAAEC,MAAM,CAACJ,IAAK;IAAAM,QAAA,EAAEN;EAAI,CAAO;AAAC,CACnC,CACP;AAAAQ,OAAA,CAAAT,eAAA,GAAAA,eAAA;AAED,MAAMK,MAAM,GAAGK,uBAAU,CAACC,MAAM,CAAC;EAC/BL,SAAS,EAAE;IACTM,iBAAiB,EAAEC,sBAAO,CAAC,GAAG,CAAC;IAC/BC,YAAY,EAAEC,4BAAa,CAAC,GAAG,CAAC;IAChCC,eAAe,EAAEC,qBAAM,CAACC;EAC1B,CAAC;EACDjB,IAAI,EAAE;IACJkB,QAAQ,EAAE,EAAE;IACZC,KAAK,EAAEH,qBAAM,CAACI;EAChB;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -4,8 +4,15 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
var _exportNames = {
|
|
7
|
-
OpenEndedScoreLabel: true
|
|
7
|
+
OpenEndedScoreLabel: true,
|
|
8
|
+
OEAttemptsLimit: true
|
|
8
9
|
};
|
|
10
|
+
Object.defineProperty(exports, "OEAttemptsLimit", {
|
|
11
|
+
enumerable: true,
|
|
12
|
+
get: function () {
|
|
13
|
+
return _OEAttemptsLimit.OEAttemptsLimit;
|
|
14
|
+
}
|
|
15
|
+
});
|
|
9
16
|
Object.defineProperty(exports, "OpenEndedScoreLabel", {
|
|
10
17
|
enumerable: true,
|
|
11
18
|
get: function () {
|
|
@@ -37,4 +44,5 @@ Object.keys(_oeTypes).forEach(function (key) {
|
|
|
37
44
|
});
|
|
38
45
|
});
|
|
39
46
|
var _OpenEndedScoreLabel = require("./components/OpenEndedScoreLabel.js");
|
|
47
|
+
var _OEAttemptsLimit = require("./components/OEAttemptsLimit.js");
|
|
40
48
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_oeHelpers","require","Object","keys","forEach","key","prototype","hasOwnProperty","call","_exportNames","exports","defineProperty","enumerable","get","_oeTypes","_OpenEndedScoreLabel"],"sourceRoot":"../../../../src","sources":["features/openEnded/index.ts"],"mappings":"
|
|
1
|
+
{"version":3,"names":["_oeHelpers","require","Object","keys","forEach","key","prototype","hasOwnProperty","call","_exportNames","exports","defineProperty","enumerable","get","_oeTypes","_OpenEndedScoreLabel","_OEAttemptsLimit"],"sourceRoot":"../../../../src","sources":["features/openEnded/index.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,UAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,UAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAH,MAAA,CAAAI,SAAA,CAAAC,cAAA,CAAAC,IAAA,CAAAC,YAAA,EAAAJ,GAAA;EAAA,IAAAA,GAAA,IAAAK,OAAA,IAAAA,OAAA,CAAAL,GAAA,MAAAL,UAAA,CAAAK,GAAA;EAAAH,MAAA,CAAAS,cAAA,CAAAD,OAAA,EAAAL,GAAA;IAAAO,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAb,UAAA,CAAAK,GAAA;IAAA;EAAA;AAAA;AACA,IAAAS,QAAA,GAAAb,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAW,QAAA,EAAAV,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAH,MAAA,CAAAI,SAAA,CAAAC,cAAA,CAAAC,IAAA,CAAAC,YAAA,EAAAJ,GAAA;EAAA,IAAAA,GAAA,IAAAK,OAAA,IAAAA,OAAA,CAAAL,GAAA,MAAAS,QAAA,CAAAT,GAAA;EAAAH,MAAA,CAAAS,cAAA,CAAAD,OAAA,EAAAL,GAAA;IAAAO,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAC,QAAA,CAAAT,GAAA;IAAA;EAAA;AAAA;AACA,IAAAU,oBAAA,GAAAd,OAAA;AACA,IAAAe,gBAAA,GAAAf,OAAA","ignoreList":[]}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import { View, StyleSheet, Text } from 'react-native';
|
|
5
|
+
import { SPACING, BORDER_RADIUS, COLORS } from '@magmamath/react-native-ui';
|
|
6
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
7
|
+
export const OEAttemptsLimit = ({
|
|
8
|
+
text
|
|
9
|
+
}) => /*#__PURE__*/_jsx(View, {
|
|
10
|
+
style: styles.container,
|
|
11
|
+
children: /*#__PURE__*/_jsx(Text, {
|
|
12
|
+
style: styles.text,
|
|
13
|
+
children: text
|
|
14
|
+
})
|
|
15
|
+
});
|
|
16
|
+
const styles = StyleSheet.create({
|
|
17
|
+
container: {
|
|
18
|
+
paddingHorizontal: SPACING[200],
|
|
19
|
+
borderRadius: BORDER_RADIUS[300],
|
|
20
|
+
backgroundColor: COLORS.PRIMARY_RED
|
|
21
|
+
},
|
|
22
|
+
text: {
|
|
23
|
+
fontSize: 14,
|
|
24
|
+
color: COLORS.NEUTRAL_1
|
|
25
|
+
}
|
|
26
|
+
});
|
|
27
|
+
//# sourceMappingURL=OEAttemptsLimit.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","View","StyleSheet","Text","SPACING","BORDER_RADIUS","COLORS","jsx","_jsx","OEAttemptsLimit","text","style","styles","container","children","create","paddingHorizontal","borderRadius","backgroundColor","PRIMARY_RED","fontSize","color","NEUTRAL_1"],"sourceRoot":"../../../../../src","sources":["features/openEnded/components/OEAttemptsLimit.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,IAAI,EAAEC,UAAU,EAAEC,IAAI,QAAQ,cAAc;AACrD,SAASC,OAAO,EAAEC,aAAa,EAAEC,MAAM,QAAQ,4BAA4B;AAAA,SAAAC,GAAA,IAAAC,IAAA;AAM3E,OAAO,MAAMC,eAAe,GAAGA,CAAC;EAAEC;AAA2B,CAAC,kBAC5DF,IAAA,CAACP,IAAI;EAACU,KAAK,EAAEC,MAAM,CAACC,SAAU;EAAAC,QAAA,eAC5BN,IAAA,CAACL,IAAI;IAACQ,KAAK,EAAEC,MAAM,CAACF,IAAK;IAAAI,QAAA,EAAEJ;EAAI,CAAO;AAAC,CACnC,CACP;AAED,MAAME,MAAM,GAAGV,UAAU,CAACa,MAAM,CAAC;EAC/BF,SAAS,EAAE;IACTG,iBAAiB,EAAEZ,OAAO,CAAC,GAAG,CAAC;IAC/Ba,YAAY,EAAEZ,aAAa,CAAC,GAAG,CAAC;IAChCa,eAAe,EAAEZ,MAAM,CAACa;EAC1B,CAAC;EACDT,IAAI,EAAE;IACJU,QAAQ,EAAE,EAAE;IACZC,KAAK,EAAEf,MAAM,CAACgB;EAChB;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["OpenEndedScoreLabel"],"sourceRoot":"../../../../src","sources":["features/openEnded/index.ts"],"mappings":";;AAAA,cAAc,iBAAc;AAC5B,cAAc,eAAY;AAC1B,SAASA,mBAAmB,QAAQ,qCAAkC","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":["OpenEndedScoreLabel","OEAttemptsLimit"],"sourceRoot":"../../../../src","sources":["features/openEnded/index.ts"],"mappings":";;AAAA,cAAc,iBAAc;AAC5B,cAAc,eAAY;AAC1B,SAASA,mBAAmB,QAAQ,qCAAkC;AACtE,SAASC,eAAe,QAAQ,iCAA8B","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OEAttemptsLimit.d.ts","sourceRoot":"","sources":["../../../../../../src/features/openEnded/components/OEAttemptsLimit.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAIzB,KAAK,oBAAoB,GAAG;IAC1B,IAAI,EAAE,MAAM,CAAA;CACb,CAAA;AAED,eAAO,MAAM,eAAe,aAAc,oBAAoB,sBAI7D,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/openEnded/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAC5B,cAAc,YAAY,CAAA;AAC1B,OAAO,EAAE,mBAAmB,EAAE,MAAM,kCAAkC,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/openEnded/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAC5B,cAAc,YAAY,CAAA;AAC1B,OAAO,EAAE,mBAAmB,EAAE,MAAM,kCAAkC,CAAA;AACtE,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OEAttemptsLimit.d.ts","sourceRoot":"","sources":["../../../../../../src/features/openEnded/components/OEAttemptsLimit.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAIzB,KAAK,oBAAoB,GAAG;IAC1B,IAAI,EAAE,MAAM,CAAA;CACb,CAAA;AAED,eAAO,MAAM,eAAe,aAAc,oBAAoB,sBAI7D,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/openEnded/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAC5B,cAAc,YAAY,CAAA;AAC1B,OAAO,EAAE,mBAAmB,EAAE,MAAM,kCAAkC,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/openEnded/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAC5B,cAAc,YAAY,CAAA;AAC1B,OAAO,EAAE,mBAAmB,EAAE,MAAM,kCAAkC,CAAA;AACtE,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAA"}
|
package/package.json
CHANGED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import React from 'react'
|
|
2
|
+
import { View, StyleSheet, Text } from 'react-native'
|
|
3
|
+
import { SPACING, BORDER_RADIUS, COLORS } from '@magmamath/react-native-ui'
|
|
4
|
+
|
|
5
|
+
type OEAttemptsLimitProps = {
|
|
6
|
+
text: string
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export const OEAttemptsLimit = ({ text }: OEAttemptsLimitProps) => (
|
|
10
|
+
<View style={styles.container}>
|
|
11
|
+
<Text style={styles.text}>{text}</Text>
|
|
12
|
+
</View>
|
|
13
|
+
)
|
|
14
|
+
|
|
15
|
+
const styles = StyleSheet.create({
|
|
16
|
+
container: {
|
|
17
|
+
paddingHorizontal: SPACING[200],
|
|
18
|
+
borderRadius: BORDER_RADIUS[300],
|
|
19
|
+
backgroundColor: COLORS.PRIMARY_RED,
|
|
20
|
+
},
|
|
21
|
+
text: {
|
|
22
|
+
fontSize: 14,
|
|
23
|
+
color: COLORS.NEUTRAL_1,
|
|
24
|
+
},
|
|
25
|
+
})
|