@magmamath/students-features 0.8.4 → 0.8.6-rc.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.
- package/dist/commonjs/features/endOfAssignment/components/CorrectAnswer/CorrectAnswer.js +3 -2
- package/dist/commonjs/features/endOfAssignment/components/CorrectAnswer/CorrectAnswer.js.map +1 -1
- package/dist/commonjs/features/endOfAssignment/components/EOAModal.js +2 -4
- package/dist/commonjs/features/endOfAssignment/components/EOAModal.js.map +1 -1
- package/dist/commonjs/features/endOfAssignment/components/ExamPaused/ExamPaused.js +5 -3
- package/dist/commonjs/features/endOfAssignment/components/ExamPaused/ExamPaused.js.map +1 -1
- package/dist/commonjs/features/endOfAssignment/components/ExamSubmit/ExamSubmit.js +2 -1
- package/dist/commonjs/features/endOfAssignment/components/ExamSubmit/ExamSubmit.js.map +1 -1
- package/dist/commonjs/features/endOfAssignment/helpers.js +8 -1
- package/dist/commonjs/features/endOfAssignment/helpers.js.map +1 -1
- package/dist/commonjs/features/endOfAssignment/ui/PracticeButtonGroup.js +2 -2
- package/dist/commonjs/features/endOfAssignment/ui/PracticeButtonGroup.js.map +1 -1
- package/dist/commonjs/features/feedback/components/TeacherFeedback.js +4 -3
- package/dist/commonjs/features/feedback/components/TeacherFeedback.js.map +1 -1
- package/dist/commonjs/features/feedback/components/{TeacherFeedbackButton/TeacherFeedbackButton.js → TeacherFeedbackButton.js} +10 -37
- package/dist/commonjs/features/feedback/components/TeacherFeedbackButton.js.map +1 -0
- package/dist/commonjs/features/feedback/components/index.js +1 -1
- package/dist/commonjs/features/feedback/constants.js +1 -6
- package/dist/commonjs/features/feedback/constants.js.map +1 -1
- package/dist/module/features/endOfAssignment/components/CorrectAnswer/CorrectAnswer.js +3 -2
- package/dist/module/features/endOfAssignment/components/CorrectAnswer/CorrectAnswer.js.map +1 -1
- package/dist/module/features/endOfAssignment/components/EOAModal.js +2 -4
- package/dist/module/features/endOfAssignment/components/EOAModal.js.map +1 -1
- package/dist/module/features/endOfAssignment/components/ExamPaused/ExamPaused.js +6 -4
- package/dist/module/features/endOfAssignment/components/ExamPaused/ExamPaused.js.map +1 -1
- package/dist/module/features/endOfAssignment/components/ExamSubmit/ExamSubmit.js +3 -2
- package/dist/module/features/endOfAssignment/components/ExamSubmit/ExamSubmit.js.map +1 -1
- package/dist/module/features/endOfAssignment/helpers.js +6 -0
- package/dist/module/features/endOfAssignment/helpers.js.map +1 -1
- package/dist/module/features/endOfAssignment/ui/PracticeButtonGroup.js +2 -2
- package/dist/module/features/endOfAssignment/ui/PracticeButtonGroup.js.map +1 -1
- package/dist/module/features/feedback/components/TeacherFeedback.js +5 -4
- package/dist/module/features/feedback/components/TeacherFeedback.js.map +1 -1
- package/dist/module/features/feedback/components/{TeacherFeedbackButton/TeacherFeedbackButton.js → TeacherFeedbackButton.js} +11 -38
- package/dist/module/features/feedback/components/TeacherFeedbackButton.js.map +1 -0
- package/dist/module/features/feedback/components/index.js +1 -1
- package/dist/module/features/feedback/components/index.js.map +1 -1
- package/dist/module/features/feedback/constants.js +0 -5
- package/dist/module/features/feedback/constants.js.map +1 -1
- package/dist/typescript/commonjs/features/endOfAssignment/components/CorrectAnswer/CorrectAnswer.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/endOfAssignment/components/EOAModal.d.ts +1 -3
- package/dist/typescript/commonjs/features/endOfAssignment/components/EOAModal.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/endOfAssignment/components/ExamPaused/ExamPaused.d.ts +1 -1
- package/dist/typescript/commonjs/features/endOfAssignment/components/ExamPaused/ExamPaused.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/endOfAssignment/components/ExamSubmit/ExamSubmit.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/endOfAssignment/helpers.d.ts +3 -1
- package/dist/typescript/commonjs/features/endOfAssignment/helpers.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/endOfAssignment/types.d.ts +1 -2
- package/dist/typescript/commonjs/features/endOfAssignment/types.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/endOfAssignment/ui/PracticeButtonGroup.d.ts +3 -2
- package/dist/typescript/commonjs/features/endOfAssignment/ui/PracticeButtonGroup.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/feedback/components/TeacherFeedback.d.ts +4 -3
- package/dist/typescript/commonjs/features/feedback/components/TeacherFeedback.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/feedback/components/TeacherFeedbackButton.d.ts +14 -0
- package/dist/typescript/commonjs/features/feedback/components/TeacherFeedbackButton.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/feedback/components/index.d.ts +1 -1
- package/dist/typescript/commonjs/features/feedback/components/index.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/feedback/constants.d.ts +0 -4
- package/dist/typescript/commonjs/features/feedback/constants.d.ts.map +1 -1
- package/dist/typescript/module/features/endOfAssignment/components/CorrectAnswer/CorrectAnswer.d.ts.map +1 -1
- package/dist/typescript/module/features/endOfAssignment/components/EOAModal.d.ts +1 -3
- package/dist/typescript/module/features/endOfAssignment/components/EOAModal.d.ts.map +1 -1
- package/dist/typescript/module/features/endOfAssignment/components/ExamPaused/ExamPaused.d.ts +1 -1
- package/dist/typescript/module/features/endOfAssignment/components/ExamPaused/ExamPaused.d.ts.map +1 -1
- package/dist/typescript/module/features/endOfAssignment/components/ExamSubmit/ExamSubmit.d.ts.map +1 -1
- package/dist/typescript/module/features/endOfAssignment/helpers.d.ts +3 -1
- package/dist/typescript/module/features/endOfAssignment/helpers.d.ts.map +1 -1
- package/dist/typescript/module/features/endOfAssignment/types.d.ts +1 -2
- package/dist/typescript/module/features/endOfAssignment/types.d.ts.map +1 -1
- package/dist/typescript/module/features/endOfAssignment/ui/PracticeButtonGroup.d.ts +3 -2
- package/dist/typescript/module/features/endOfAssignment/ui/PracticeButtonGroup.d.ts.map +1 -1
- package/dist/typescript/module/features/feedback/components/TeacherFeedback.d.ts +4 -3
- package/dist/typescript/module/features/feedback/components/TeacherFeedback.d.ts.map +1 -1
- package/dist/typescript/module/features/feedback/components/TeacherFeedbackButton.d.ts +14 -0
- package/dist/typescript/module/features/feedback/components/TeacherFeedbackButton.d.ts.map +1 -0
- package/dist/typescript/module/features/feedback/components/index.d.ts +1 -1
- package/dist/typescript/module/features/feedback/components/index.d.ts.map +1 -1
- package/dist/typescript/module/features/feedback/constants.d.ts +0 -4
- package/dist/typescript/module/features/feedback/constants.d.ts.map +1 -1
- package/package.json +2 -2
- package/src/features/endOfAssignment/components/CorrectAnswer/CorrectAnswer.tsx +2 -1
- package/src/features/endOfAssignment/components/EOAModal.tsx +2 -9
- package/src/features/endOfAssignment/components/ExamPaused/ExamPaused.tsx +6 -6
- package/src/features/endOfAssignment/components/ExamSubmit/ExamSubmit.tsx +2 -2
- package/src/features/endOfAssignment/helpers.ts +8 -1
- package/src/features/endOfAssignment/types.ts +1 -1
- package/src/features/endOfAssignment/ui/PracticeButtonGroup.tsx +4 -3
- package/src/features/feedback/components/TeacherFeedback.tsx +6 -5
- package/src/features/feedback/components/{TeacherFeedbackButton/TeacherFeedbackButton.tsx → TeacherFeedbackButton.tsx} +12 -39
- package/src/features/feedback/components/index.ts +1 -1
- package/src/features/feedback/constants.ts +0 -5
- package/dist/commonjs/features/feedback/components/TeacherFeedbackButton/TeacherFeedbackButton.js.map +0 -1
- package/dist/commonjs/features/feedback/components/TeacherFeedbackButton/colorSchemes.js +0 -70
- package/dist/commonjs/features/feedback/components/TeacherFeedbackButton/colorSchemes.js.map +0 -1
- package/dist/module/features/feedback/components/TeacherFeedbackButton/TeacherFeedbackButton.js.map +0 -1
- package/dist/module/features/feedback/components/TeacherFeedbackButton/colorSchemes.js +0 -66
- package/dist/module/features/feedback/components/TeacherFeedbackButton/colorSchemes.js.map +0 -1
- package/dist/typescript/commonjs/features/feedback/components/TeacherFeedbackButton/TeacherFeedbackButton.d.ts +0 -13
- package/dist/typescript/commonjs/features/feedback/components/TeacherFeedbackButton/TeacherFeedbackButton.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/feedback/components/TeacherFeedbackButton/colorSchemes.d.ts +0 -3
- package/dist/typescript/commonjs/features/feedback/components/TeacherFeedbackButton/colorSchemes.d.ts.map +0 -1
- package/dist/typescript/module/features/feedback/components/TeacherFeedbackButton/TeacherFeedbackButton.d.ts +0 -13
- package/dist/typescript/module/features/feedback/components/TeacherFeedbackButton/TeacherFeedbackButton.d.ts.map +0 -1
- package/dist/typescript/module/features/feedback/components/TeacherFeedbackButton/colorSchemes.d.ts +0 -3
- package/dist/typescript/module/features/feedback/components/TeacherFeedbackButton/colorSchemes.d.ts.map +0 -1
- package/src/features/feedback/components/TeacherFeedbackButton/colorSchemes.ts +0 -64
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
import { ButtonStates, COLORS } from '@magmamath/react-native-ui';
|
|
4
|
-
export const COLOR_SCHEMES = {
|
|
5
|
-
PURPLE: {
|
|
6
|
-
[ButtonStates.DEFAULT]: {
|
|
7
|
-
borderColor: COLORS.PURPLE_6,
|
|
8
|
-
raiseColor: COLORS.PURPLE_6,
|
|
9
|
-
backgroundColor: COLORS.PRIMARY_PURPLE,
|
|
10
|
-
color: COLORS.NEUTRAL_1
|
|
11
|
-
},
|
|
12
|
-
[ButtonStates.PRESSED]: {
|
|
13
|
-
borderColor: COLORS.PURPLE_6,
|
|
14
|
-
raiseColor: COLORS.PURPLE_6,
|
|
15
|
-
backgroundColor: COLORS.PRIMARY_PURPLE,
|
|
16
|
-
color: COLORS.NEUTRAL_1
|
|
17
|
-
},
|
|
18
|
-
[ButtonStates.HOVER]: {
|
|
19
|
-
borderColor: COLORS.PURPLE_6,
|
|
20
|
-
raiseColor: COLORS.PURPLE_6,
|
|
21
|
-
backgroundColor: COLORS.PRIMARY_PURPLE,
|
|
22
|
-
color: COLORS.NEUTRAL_1
|
|
23
|
-
}
|
|
24
|
-
},
|
|
25
|
-
BLUE: {
|
|
26
|
-
[ButtonStates.DEFAULT]: {
|
|
27
|
-
borderColor: COLORS.BLUE_6,
|
|
28
|
-
raiseColor: COLORS.BLUE_6,
|
|
29
|
-
backgroundColor: COLORS.PRIMARY_BLUE,
|
|
30
|
-
color: COLORS.NEUTRAL_1
|
|
31
|
-
},
|
|
32
|
-
[ButtonStates.PRESSED]: {
|
|
33
|
-
borderColor: COLORS.BLUE_6,
|
|
34
|
-
raiseColor: COLORS.BLUE_6,
|
|
35
|
-
backgroundColor: COLORS.PRIMARY_BLUE,
|
|
36
|
-
color: COLORS.NEUTRAL_1
|
|
37
|
-
},
|
|
38
|
-
[ButtonStates.HOVER]: {
|
|
39
|
-
borderColor: COLORS.BLUE_6,
|
|
40
|
-
raiseColor: COLORS.BLUE_6,
|
|
41
|
-
backgroundColor: COLORS.PRIMARY_BLUE,
|
|
42
|
-
color: COLORS.NEUTRAL_1
|
|
43
|
-
}
|
|
44
|
-
},
|
|
45
|
-
GREY: {
|
|
46
|
-
[ButtonStates.DEFAULT]: {
|
|
47
|
-
borderColor: COLORS.NEUTRAL_5,
|
|
48
|
-
raiseColor: COLORS.NEUTRAL_5,
|
|
49
|
-
backgroundColor: COLORS.NEUTRAL_1,
|
|
50
|
-
color: COLORS.NEUTRAL_10
|
|
51
|
-
},
|
|
52
|
-
[ButtonStates.PRESSED]: {
|
|
53
|
-
borderColor: COLORS.NEUTRAL_5,
|
|
54
|
-
raiseColor: COLORS.NEUTRAL_5,
|
|
55
|
-
backgroundColor: COLORS.NEUTRAL_1,
|
|
56
|
-
color: COLORS.NEUTRAL_10
|
|
57
|
-
},
|
|
58
|
-
[ButtonStates.HOVER]: {
|
|
59
|
-
borderColor: COLORS.NEUTRAL_5,
|
|
60
|
-
raiseColor: COLORS.NEUTRAL_5,
|
|
61
|
-
backgroundColor: COLORS.NEUTRAL_1,
|
|
62
|
-
color: COLORS.NEUTRAL_10
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
};
|
|
66
|
-
//# sourceMappingURL=colorSchemes.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["ButtonStates","COLORS","COLOR_SCHEMES","PURPLE","DEFAULT","borderColor","PURPLE_6","raiseColor","backgroundColor","PRIMARY_PURPLE","color","NEUTRAL_1","PRESSED","HOVER","BLUE","BLUE_6","PRIMARY_BLUE","GREY","NEUTRAL_5","NEUTRAL_10"],"sourceRoot":"../../../../../../src","sources":["features/feedback/components/TeacherFeedbackButton/colorSchemes.ts"],"mappings":";;AAAA,SAAyBA,YAAY,EAAEC,MAAM,QAAQ,4BAA4B;AAEjF,OAAO,MAAMC,aAA4E,GAAG;EAC1FC,MAAM,EAAE;IACN,CAACH,YAAY,CAACI,OAAO,GAAG;MACtBC,WAAW,EAAEJ,MAAM,CAACK,QAAQ;MAC5BC,UAAU,EAAEN,MAAM,CAACK,QAAQ;MAC3BE,eAAe,EAAEP,MAAM,CAACQ,cAAc;MACtCC,KAAK,EAAET,MAAM,CAACU;IAChB,CAAC;IACD,CAACX,YAAY,CAACY,OAAO,GAAG;MACtBP,WAAW,EAAEJ,MAAM,CAACK,QAAQ;MAC5BC,UAAU,EAAEN,MAAM,CAACK,QAAQ;MAC3BE,eAAe,EAAEP,MAAM,CAACQ,cAAc;MACtCC,KAAK,EAAET,MAAM,CAACU;IAChB,CAAC;IACD,CAACX,YAAY,CAACa,KAAK,GAAG;MACpBR,WAAW,EAAEJ,MAAM,CAACK,QAAQ;MAC5BC,UAAU,EAAEN,MAAM,CAACK,QAAQ;MAC3BE,eAAe,EAAEP,MAAM,CAACQ,cAAc;MACtCC,KAAK,EAAET,MAAM,CAACU;IAChB;EACF,CAAC;EACDG,IAAI,EAAE;IACJ,CAACd,YAAY,CAACI,OAAO,GAAG;MACtBC,WAAW,EAAEJ,MAAM,CAACc,MAAM;MAC1BR,UAAU,EAAEN,MAAM,CAACc,MAAM;MACzBP,eAAe,EAAEP,MAAM,CAACe,YAAY;MACpCN,KAAK,EAAET,MAAM,CAACU;IAChB,CAAC;IACD,CAACX,YAAY,CAACY,OAAO,GAAG;MACtBP,WAAW,EAAEJ,MAAM,CAACc,MAAM;MAC1BR,UAAU,EAAEN,MAAM,CAACc,MAAM;MACzBP,eAAe,EAAEP,MAAM,CAACe,YAAY;MACpCN,KAAK,EAAET,MAAM,CAACU;IAChB,CAAC;IACD,CAACX,YAAY,CAACa,KAAK,GAAG;MACpBR,WAAW,EAAEJ,MAAM,CAACc,MAAM;MAC1BR,UAAU,EAAEN,MAAM,CAACc,MAAM;MACzBP,eAAe,EAAEP,MAAM,CAACe,YAAY;MACpCN,KAAK,EAAET,MAAM,CAACU;IAChB;EACF,CAAC;EACDM,IAAI,EAAE;IACJ,CAACjB,YAAY,CAACI,OAAO,GAAG;MACtBC,WAAW,EAAEJ,MAAM,CAACiB,SAAS;MAC7BX,UAAU,EAAEN,MAAM,CAACiB,SAAS;MAC5BV,eAAe,EAAEP,MAAM,CAACU,SAAS;MACjCD,KAAK,EAAET,MAAM,CAACkB;IAChB,CAAC;IACD,CAACnB,YAAY,CAACY,OAAO,GAAG;MACtBP,WAAW,EAAEJ,MAAM,CAACiB,SAAS;MAC7BX,UAAU,EAAEN,MAAM,CAACiB,SAAS;MAC5BV,eAAe,EAAEP,MAAM,CAACU,SAAS;MACjCD,KAAK,EAAET,MAAM,CAACkB;IAChB,CAAC;IACD,CAACnB,YAAY,CAACa,KAAK,GAAG;MACpBR,WAAW,EAAEJ,MAAM,CAACiB,SAAS;MAC7BX,UAAU,EAAEN,MAAM,CAACiB,SAAS;MAC5BV,eAAe,EAAEP,MAAM,CAACU,SAAS;MACjCD,KAAK,EAAET,MAAM,CAACkB;IAChB;EACF;AACF,CAAC","ignoreList":[]}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { FeedbackButtonColors, FeedbackButtonSize } from '../../constants';
|
|
3
|
-
type TeacherFeedbackButtonProps = {
|
|
4
|
-
isOpen: boolean;
|
|
5
|
-
isLoading: boolean;
|
|
6
|
-
onPress?: () => void;
|
|
7
|
-
unreadCommentsCount?: number;
|
|
8
|
-
size?: FeedbackButtonSize;
|
|
9
|
-
color?: FeedbackButtonColors;
|
|
10
|
-
};
|
|
11
|
-
export declare const TeacherFeedbackButton: ({ isOpen, onPress, unreadCommentsCount, isLoading, size, color, }: TeacherFeedbackButtonProps) => React.JSX.Element;
|
|
12
|
-
export {};
|
|
13
|
-
//# sourceMappingURL=TeacherFeedbackButton.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TeacherFeedbackButton.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/feedback/components/TeacherFeedbackButton/TeacherFeedbackButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAOzB,OAAO,EACL,oBAAoB,EACpB,kBAAkB,EAEnB,MAAM,iBAAiB,CAAA;AA2BxB,KAAK,0BAA0B,GAAG;IAChC,MAAM,EAAE,OAAO,CAAA;IACf,SAAS,EAAE,OAAO,CAAA;IAClB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAA;IACpB,mBAAmB,CAAC,EAAE,MAAM,CAAA;IAC5B,IAAI,CAAC,EAAE,kBAAkB,CAAA;IACzB,KAAK,CAAC,EAAE,oBAAoB,CAAA;CAC7B,CAAA;AAED,eAAO,MAAM,qBAAqB,sEAO/B,0BAA0B,sBAuD5B,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"colorSchemes.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/feedback/components/TeacherFeedbackButton/colorSchemes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,YAAY,EAAU,MAAM,4BAA4B,CAAA;AAEjF,eAAO,MAAM,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,MAAM,CAAC,YAAY,EAAE,cAAc,CAAC,CAAC,CA6DvF,CAAA"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { FeedbackButtonColors, FeedbackButtonSize } from '../../constants';
|
|
3
|
-
type TeacherFeedbackButtonProps = {
|
|
4
|
-
isOpen: boolean;
|
|
5
|
-
isLoading: boolean;
|
|
6
|
-
onPress?: () => void;
|
|
7
|
-
unreadCommentsCount?: number;
|
|
8
|
-
size?: FeedbackButtonSize;
|
|
9
|
-
color?: FeedbackButtonColors;
|
|
10
|
-
};
|
|
11
|
-
export declare const TeacherFeedbackButton: ({ isOpen, onPress, unreadCommentsCount, isLoading, size, color, }: TeacherFeedbackButtonProps) => React.JSX.Element;
|
|
12
|
-
export {};
|
|
13
|
-
//# sourceMappingURL=TeacherFeedbackButton.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TeacherFeedbackButton.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/feedback/components/TeacherFeedbackButton/TeacherFeedbackButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAOzB,OAAO,EACL,oBAAoB,EACpB,kBAAkB,EAEnB,MAAM,iBAAiB,CAAA;AA2BxB,KAAK,0BAA0B,GAAG;IAChC,MAAM,EAAE,OAAO,CAAA;IACf,SAAS,EAAE,OAAO,CAAA;IAClB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAA;IACpB,mBAAmB,CAAC,EAAE,MAAM,CAAA;IAC5B,IAAI,CAAC,EAAE,kBAAkB,CAAA;IACzB,KAAK,CAAC,EAAE,oBAAoB,CAAA;CAC7B,CAAA;AAED,eAAO,MAAM,qBAAqB,sEAO/B,0BAA0B,sBAuD5B,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"colorSchemes.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/feedback/components/TeacherFeedbackButton/colorSchemes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,YAAY,EAAU,MAAM,4BAA4B,CAAA;AAEjF,eAAO,MAAM,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,MAAM,CAAC,YAAY,EAAE,cAAc,CAAC,CAAC,CA6DvF,CAAA"}
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
import { ButtonElements, ButtonStates, COLORS } from '@magmamath/react-native-ui'
|
|
2
|
-
|
|
3
|
-
export const COLOR_SCHEMES: Record<string, Partial<Record<ButtonStates, ButtonElements>>> = {
|
|
4
|
-
PURPLE: {
|
|
5
|
-
[ButtonStates.DEFAULT]: {
|
|
6
|
-
borderColor: COLORS.PURPLE_6,
|
|
7
|
-
raiseColor: COLORS.PURPLE_6,
|
|
8
|
-
backgroundColor: COLORS.PRIMARY_PURPLE,
|
|
9
|
-
color: COLORS.NEUTRAL_1,
|
|
10
|
-
},
|
|
11
|
-
[ButtonStates.PRESSED]: {
|
|
12
|
-
borderColor: COLORS.PURPLE_6,
|
|
13
|
-
raiseColor: COLORS.PURPLE_6,
|
|
14
|
-
backgroundColor: COLORS.PRIMARY_PURPLE,
|
|
15
|
-
color: COLORS.NEUTRAL_1,
|
|
16
|
-
},
|
|
17
|
-
[ButtonStates.HOVER]: {
|
|
18
|
-
borderColor: COLORS.PURPLE_6,
|
|
19
|
-
raiseColor: COLORS.PURPLE_6,
|
|
20
|
-
backgroundColor: COLORS.PRIMARY_PURPLE,
|
|
21
|
-
color: COLORS.NEUTRAL_1,
|
|
22
|
-
},
|
|
23
|
-
},
|
|
24
|
-
BLUE: {
|
|
25
|
-
[ButtonStates.DEFAULT]: {
|
|
26
|
-
borderColor: COLORS.BLUE_6,
|
|
27
|
-
raiseColor: COLORS.BLUE_6,
|
|
28
|
-
backgroundColor: COLORS.PRIMARY_BLUE,
|
|
29
|
-
color: COLORS.NEUTRAL_1,
|
|
30
|
-
},
|
|
31
|
-
[ButtonStates.PRESSED]: {
|
|
32
|
-
borderColor: COLORS.BLUE_6,
|
|
33
|
-
raiseColor: COLORS.BLUE_6,
|
|
34
|
-
backgroundColor: COLORS.PRIMARY_BLUE,
|
|
35
|
-
color: COLORS.NEUTRAL_1,
|
|
36
|
-
},
|
|
37
|
-
[ButtonStates.HOVER]: {
|
|
38
|
-
borderColor: COLORS.BLUE_6,
|
|
39
|
-
raiseColor: COLORS.BLUE_6,
|
|
40
|
-
backgroundColor: COLORS.PRIMARY_BLUE,
|
|
41
|
-
color: COLORS.NEUTRAL_1,
|
|
42
|
-
},
|
|
43
|
-
},
|
|
44
|
-
GREY: {
|
|
45
|
-
[ButtonStates.DEFAULT]: {
|
|
46
|
-
borderColor: COLORS.NEUTRAL_5,
|
|
47
|
-
raiseColor: COLORS.NEUTRAL_5,
|
|
48
|
-
backgroundColor: COLORS.NEUTRAL_1,
|
|
49
|
-
color: COLORS.NEUTRAL_10,
|
|
50
|
-
},
|
|
51
|
-
[ButtonStates.PRESSED]: {
|
|
52
|
-
borderColor: COLORS.NEUTRAL_5,
|
|
53
|
-
raiseColor: COLORS.NEUTRAL_5,
|
|
54
|
-
backgroundColor: COLORS.NEUTRAL_1,
|
|
55
|
-
color: COLORS.NEUTRAL_10,
|
|
56
|
-
},
|
|
57
|
-
[ButtonStates.HOVER]: {
|
|
58
|
-
borderColor: COLORS.NEUTRAL_5,
|
|
59
|
-
raiseColor: COLORS.NEUTRAL_5,
|
|
60
|
-
backgroundColor: COLORS.NEUTRAL_1,
|
|
61
|
-
color: COLORS.NEUTRAL_10,
|
|
62
|
-
},
|
|
63
|
-
},
|
|
64
|
-
}
|