@pie-lib/icons 4.0.3-next.0 → 4.0.3-next.57

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 (65) hide show
  1. package/CHANGELOG.json +1 -0
  2. package/CHANGELOG.md +573 -0
  3. package/LICENSE.md +5 -0
  4. package/lib/correct-icon.js +79 -0
  5. package/lib/correct-icon.js.map +1 -0
  6. package/lib/correct-response-icon.js +125 -0
  7. package/lib/correct-response-icon.js.map +1 -0
  8. package/lib/icon-base.js +93 -0
  9. package/lib/icon-base.js.map +1 -0
  10. package/lib/icon-root.js +106 -0
  11. package/lib/icon-root.js.map +1 -0
  12. package/lib/incorrect-icon.js +88 -0
  13. package/lib/incorrect-icon.js.map +1 -0
  14. package/lib/index.js +63 -0
  15. package/lib/index.js.map +1 -0
  16. package/lib/instructions-icon.js +205 -0
  17. package/lib/instructions-icon.js.map +1 -0
  18. package/lib/learn-more-icon.js +104 -0
  19. package/lib/learn-more-icon.js.map +1 -0
  20. package/lib/nothing-submitted-icon.js +175 -0
  21. package/lib/nothing-submitted-icon.js.map +1 -0
  22. package/lib/partially-correct-icon.js +81 -0
  23. package/lib/partially-correct-icon.js.map +1 -0
  24. package/lib/show-rationale-icon.js +187 -0
  25. package/lib/show-rationale-icon.js.map +1 -0
  26. package/lib/sized.js +32 -0
  27. package/lib/sized.js.map +1 -0
  28. package/package.json +22 -26
  29. package/src/__tests__/index.test.js +305 -0
  30. package/src/correct-icon.jsx +54 -0
  31. package/src/correct-response-icon.jsx +106 -0
  32. package/src/icon-base.jsx +55 -0
  33. package/src/icon-root.jsx +53 -0
  34. package/src/incorrect-icon.jsx +67 -0
  35. package/src/index.js +19 -0
  36. package/src/instructions-icon.jsx +189 -0
  37. package/src/learn-more-icon.jsx +94 -0
  38. package/src/nothing-submitted-icon.jsx +136 -0
  39. package/src/partially-correct-icon.jsx +56 -0
  40. package/src/show-rationale-icon.jsx +145 -0
  41. package/src/sized.jsx +25 -0
  42. package/dist/correct-icon.d.ts +0 -78
  43. package/dist/correct-icon.js +0 -59
  44. package/dist/correct-response-icon.d.ts +0 -24
  45. package/dist/correct-response-icon.js +0 -96
  46. package/dist/icon-base.d.ts +0 -78
  47. package/dist/icon-base.js +0 -40
  48. package/dist/icon-root.d.ts +0 -71
  49. package/dist/icon-root.js +0 -57
  50. package/dist/incorrect-icon.d.ts +0 -78
  51. package/dist/incorrect-icon.js +0 -71
  52. package/dist/index.d.ts +0 -17
  53. package/dist/index.js +0 -9
  54. package/dist/instructions-icon.d.ts +0 -13
  55. package/dist/instructions-icon.js +0 -179
  56. package/dist/learn-more-icon.d.ts +0 -18
  57. package/dist/learn-more-icon.js +0 -82
  58. package/dist/nothing-submitted-icon.d.ts +0 -14
  59. package/dist/nothing-submitted-icon.js +0 -92
  60. package/dist/partially-correct-icon.d.ts +0 -78
  61. package/dist/partially-correct-icon.js +0 -64
  62. package/dist/show-rationale-icon.d.ts +0 -13
  63. package/dist/show-rationale-icon.js +0 -136
  64. package/dist/sized.d.ts +0 -22
  65. package/dist/sized.js +0 -19
@@ -0,0 +1,136 @@
1
+ import PropTypes from 'prop-types';
2
+ import React from 'react';
3
+ import { IconRoot } from './icon-root';
4
+
5
+ // Exclamation mark
6
+ const Exclamation = ({ fill }) => (
7
+ <g>
8
+ <rect x="19.3" y="10.3" width="4.5" height="12.7" fill={fill} />
9
+ <rect x="19.3" y="26.2" width="4.5" height="4.5" fill={fill} />
10
+ </g>
11
+ );
12
+
13
+ Exclamation.propTypes = { fill: PropTypes.string.isRequired };
14
+
15
+ // Octagon background
16
+ const Octagon = ({ fill }) => (
17
+ <polygon points="14.8,4.5 5.6,13.8 5.6,27 14.8,36.5 28.1,36.5 37.6,27 37.6,13.8 28.1,4.5" fill={fill} />
18
+ );
19
+
20
+ Octagon.propTypes = { fill: PropTypes.string.isRequired };
21
+
22
+ // Emoji variant
23
+ const Emoji = ({ fill }) => (
24
+ <g>
25
+ <rect x="23.8" y="15" width="3.5" height="4.4" fill={fill} />
26
+ <rect x="16" y="15" width="3.5" height="4.4" fill={fill} />
27
+ <path
28
+ d="M24.2,27.1h-5.1c-0.8,0-1.5-0.7-1.5-1.5v0c0-0.8,0.7-1.5,1.5-1.5h5.1c0.8,0,1.5,0.7,1.5,1.5v0
29
+ C25.7,26.4,25,27.1,24.2,27.1z"
30
+ fill={fill}
31
+ />
32
+ </g>
33
+ );
34
+
35
+ Emoji.propTypes = { fill: PropTypes.string.isRequired };
36
+
37
+ // Exported NothingSubmitted icon
38
+ export class NothingSubmitted extends React.Component {
39
+ constructor(props) {
40
+ super(props);
41
+ const { fg = '#464146', bg = 'white' } = this.props;
42
+
43
+ this.icons = {
44
+ check: (
45
+ <IconRoot>
46
+ <Octagon fill={bg} />
47
+ <Exclamation fill={fg} />
48
+ </IconRoot>
49
+ ),
50
+ emoji: (
51
+ <IconRoot>
52
+ <Octagon fill={bg} />
53
+ <Emoji fill={fg} />
54
+ </IconRoot>
55
+ ),
56
+ feedback: {
57
+ check: (
58
+ <IconRoot>
59
+ <Octagon fill={bg} />
60
+ <Emoji fill={fg} />
61
+ </IconRoot>
62
+ ),
63
+ emoji: (
64
+ <IconRoot>
65
+ <Octagon fill={bg} />
66
+ <Emoji fill={fg} />
67
+ </IconRoot>
68
+ ),
69
+ square: {
70
+ check: (
71
+ <IconRoot>
72
+ <Octagon fill={bg} />
73
+ <Exclamation fill={fg} />
74
+ </IconRoot>
75
+ ),
76
+ emoji: (
77
+ <IconRoot>
78
+ <Octagon fill={bg} />
79
+ <Emoji fill={fg} />
80
+ </IconRoot>
81
+ ),
82
+ open: {
83
+ check: (
84
+ <IconRoot>
85
+ <Exclamation fill={bg} />
86
+ </IconRoot>
87
+ ),
88
+ emoji: (
89
+ <IconRoot>
90
+ <Emoji fill={bg} />
91
+ </IconRoot>
92
+ ),
93
+ },
94
+ },
95
+ },
96
+ };
97
+ }
98
+
99
+ render() {
100
+ const { iconSet, category, shape, open } = this.props;
101
+
102
+ if (category === undefined) {
103
+ return this.icons[iconSet];
104
+ } else {
105
+ if (shape === undefined) {
106
+ return this.icons.feedback[iconSet];
107
+ } else {
108
+ if (open === true) {
109
+ return this.icons.feedback.square.open[iconSet];
110
+ } else {
111
+ return this.icons.feedback.square[iconSet];
112
+ }
113
+ }
114
+ }
115
+ }
116
+ }
117
+
118
+ NothingSubmitted.propTypes = {
119
+ iconSet: PropTypes.oneOf(['emoji', 'check', undefined]),
120
+ shape: PropTypes.oneOf(['square', undefined]),
121
+ category: PropTypes.oneOf(['feedback', undefined]),
122
+ open: PropTypes.bool,
123
+ fg: PropTypes.string,
124
+ bg: PropTypes.string,
125
+ };
126
+
127
+ NothingSubmitted.defaultProps = {
128
+ iconSet: 'check',
129
+ shape: undefined,
130
+ category: undefined,
131
+ open: false,
132
+ fg: '#464146', // foreground color
133
+ bg: 'white', // background color
134
+ };
135
+
136
+ export default NothingSubmitted;
@@ -0,0 +1,56 @@
1
+ import IconBase from './icon-base';
2
+ import PropTypes from 'prop-types';
3
+ import React from 'react';
4
+
5
+ // Check mark SVG
6
+ const Check = ({ fill }) => (
7
+ <g transform="translate(0, 0)">
8
+ <polygon points="27.5,13.4 23.9,11.4 15.9,25.8 19.1,28.6" fill={fill} />
9
+ <polygon points="16.2,20.6 14.4,19.2 11.8,22.3 14.1,24.3" fill={fill} />
10
+ </g>
11
+ );
12
+
13
+ Check.propTypes = { fill: PropTypes.string.isRequired };
14
+
15
+ // Emoji variant
16
+ const Emoji = ({ fill }) => (
17
+ <g transform="translate(2, 0)">
18
+ <rect x="20.6" y="11.8" width="4" height="5" fill={fill} />
19
+ <rect x="11.5" y="11.8" width="4" height="5" fill={fill} />
20
+ <rect
21
+ x="10.9"
22
+ y="22.9"
23
+ transform="matrix(0.9794 -0.2019 0.2019 0.9794 -4.6237 4.1559)"
24
+ width="14.3"
25
+ height="3.7"
26
+ fill={fill}
27
+ />
28
+ </g>
29
+ );
30
+
31
+ Emoji.propTypes = { fill: PropTypes.string.isRequired };
32
+
33
+ // Exported PartiallyCorrect icon
34
+ export const PartiallyCorrect = IconBase(Check, Emoji);
35
+
36
+ PartiallyCorrect.propTypes = {
37
+ iconSet: PropTypes.oneOf(['emoji', 'check']),
38
+ shape: PropTypes.oneOf(['round', 'square']),
39
+ category: PropTypes.oneOf(['feedback', undefined]),
40
+ open: PropTypes.bool,
41
+ fg: PropTypes.string,
42
+ bg: PropTypes.string,
43
+ size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
44
+ };
45
+
46
+ PartiallyCorrect.defaultProps = {
47
+ iconSet: 'check',
48
+ shape: 'round',
49
+ category: undefined,
50
+ open: false,
51
+ fg: '#4aaf46', // foreground color
52
+ bg: '#c1e1ac', // background color
53
+ size: 30,
54
+ };
55
+
56
+ export default PartiallyCorrect;
@@ -0,0 +1,145 @@
1
+ import PropTypes from 'prop-types';
2
+ import React from 'react';
3
+ import { normalizeSize } from './sized';
4
+
5
+ // Info icon
6
+ const Info = ({ fill }) => (
7
+ <g>
8
+ <rect x="-115" y="136.7" width="3" height="3" fill={fill} />
9
+ <polygon
10
+ points="-112,147.7 -112,141.7 -115.8,141.7 -115.8,143.7 -114,143.7 -114,147.7 -116.2,147.7 -116.2,149.7 -109.8,149.7 -109.8,147.7"
11
+ fill={fill}
12
+ />
13
+ </g>
14
+ );
15
+
16
+ Info.propTypes = { fill: PropTypes.string.isRequired };
17
+
18
+ // Border path
19
+ const Border = ({ fill }) => (
20
+ <path
21
+ d="M-113,158.5c-8,0-14.5-6.5-14.5-14.5s6.5-14.5,14.5-14.5s14.5,6.5,14.5,14.5S-105,158.5-113,158.5z
22
+ M-113,130.5c-7.4,0-13.5,6.1-13.5,13.5s6.1,13.5,13.5,13.5s13.5-6.1,13.5-13.5S-105.6,130.5-113,130.5z"
23
+ fill={fill}
24
+ />
25
+ );
26
+
27
+ Border.propTypes = { fill: PropTypes.string.isRequired };
28
+
29
+ // Circle background
30
+ const Circle = ({ fill = '#FFFFFF' }) => (
31
+ <g>
32
+ <path
33
+ style={{
34
+ fill: '#D0CAC5',
35
+ stroke: '#E6E3E0',
36
+ strokeWidth: 0.75,
37
+ strokeMiterlimit: 10,
38
+ }}
39
+ d="M-111.7,160.9c-8.5,0-15.5-6.9-15.5-15.5c0-8.5,6.9-15.5,15.5-15.5s15.5,6.9,15.5,15.5C-96.2,154-103.1,160.9-111.7,160.9z"
40
+ />
41
+ <path
42
+ style={{
43
+ fill: '#B3ABA4',
44
+ stroke: '#CDC7C2',
45
+ strokeWidth: 0.5,
46
+ strokeMiterlimit: 10,
47
+ }}
48
+ d="M-112,159.5c-8,0-14.5-6.5-14.5-14.5s6.5-14.5,14.5-14.5s14.5,6.5,14.5,14.5S-104,159.5-112,159.5z"
49
+ />
50
+ <circle cx="-113" cy="144" r="14" fill={fill} />
51
+ </g>
52
+ );
53
+
54
+ Circle.propTypes = { fill: PropTypes.string };
55
+
56
+ // Root wrapper for sizing
57
+ const Root = ({ children, size }) => {
58
+ const normalizedSize = normalizeSize(size);
59
+ const style = {
60
+ height: normalizedSize,
61
+ width: normalizedSize,
62
+ display: 'inline-block',
63
+ position: 'relative',
64
+ };
65
+ return (
66
+ <div style={style}>
67
+ <svg preserveAspectRatio="xMinYMin meet" viewBox="-129 128 34 34">
68
+ {children}
69
+ </svg>
70
+ </div>
71
+ );
72
+ };
73
+
74
+ Root.propTypes = {
75
+ children: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.node), PropTypes.node]).isRequired,
76
+ size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
77
+ };
78
+
79
+ // Main ShowRationale component
80
+ export class ShowRationale extends React.Component {
81
+ render() {
82
+ const { iconSet, open, fg = '#1a9cff', bg = '#bce2ff', border = '#bbe3fd' } = this.props;
83
+
84
+ const info = <Info fill={fg} />;
85
+
86
+ const icons = {
87
+ check: (
88
+ <Root size={this.props.size}>
89
+ <Circle />
90
+ {info}
91
+ <Border fill={border} />
92
+ </Root>
93
+ ),
94
+ emoji: (
95
+ <Root size={this.props.size}>
96
+ <Circle />
97
+ {info}
98
+ <Border fill={border} />
99
+ </Root>
100
+ ),
101
+ open: {
102
+ check: (
103
+ <Root size={this.props.size}>
104
+ <circle cx="-113" cy="144" r="14" fill="#FFFFFF" />
105
+ <Info fill={bg} />
106
+ <Border fill="#FFFFFF" />
107
+ </Root>
108
+ ),
109
+ emoji: (
110
+ <Root size={this.props.size}>
111
+ <circle cx="-113" cy="144" r="14" fill="#FFFFFF" />
112
+ <Info fill={bg} />
113
+ <Border fill={border} />
114
+ </Root>
115
+ ),
116
+ },
117
+ };
118
+
119
+ if (open === true) {
120
+ return icons.open[iconSet];
121
+ } else {
122
+ return icons[iconSet];
123
+ }
124
+ }
125
+ }
126
+
127
+ ShowRationale.propTypes = {
128
+ iconSet: PropTypes.oneOf(['emoji', 'check']),
129
+ open: PropTypes.bool,
130
+ fg: PropTypes.string,
131
+ bg: PropTypes.string,
132
+ border: PropTypes.string,
133
+ size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
134
+ };
135
+
136
+ ShowRationale.defaultProps = {
137
+ iconSet: 'check',
138
+ open: false,
139
+ fg: '#1a9cff',
140
+ bg: '#bce2ff',
141
+ border: '#bbe3fd',
142
+ size: 30,
143
+ };
144
+
145
+ export default ShowRationale;
package/src/sized.jsx ADDED
@@ -0,0 +1,25 @@
1
+ import React from 'react';
2
+ import PropTypes from 'prop-types';
3
+
4
+ export const normalizeSize = (size) => {
5
+ return typeof size === 'string' ? size : typeof size === 'number' ? `${size}px` : '30px';
6
+ };
7
+
8
+ const Sized = ({ size, children }) => {
9
+ size = normalizeSize(size);
10
+
11
+ const style = {
12
+ height: size,
13
+ width: size,
14
+ display: 'inline-block',
15
+ position: 'relative',
16
+ };
17
+
18
+ return <div style={style}>{children}</div>;
19
+ };
20
+
21
+ Sized.propTypes = {
22
+ size: PropTypes.number,
23
+ children: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.node), PropTypes.node]).isRequired,
24
+ };
25
+ export default Sized;
@@ -1,78 +0,0 @@
1
- /**
2
- * @synced-from pie-lib/packages/icons/src/correct-icon.jsx
3
- * @auto-generated
4
- *
5
- * This file is automatically synced from pie-elements and converted to TypeScript.
6
- * Manual edits will be overwritten on next sync.
7
- * To make changes, edit the upstream JavaScript file and run sync again.
8
- */
9
- import PropTypes from 'prop-types';
10
- import React from 'react';
11
- export declare const Correct: {
12
- new (props: {}): {
13
- render(): React.JSX.Element;
14
- context: unknown;
15
- setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<{}>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
16
- forceUpdate(callback?: (() => void) | undefined): void;
17
- readonly props: Readonly<{}>;
18
- state: Readonly<{}>;
19
- refs: {
20
- [key: string]: React.ReactInstance;
21
- };
22
- componentDidMount?(): void;
23
- shouldComponentUpdate?(nextProps: Readonly<{}>, nextState: Readonly<{}>, nextContext: any): boolean;
24
- componentWillUnmount?(): void;
25
- componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
26
- getSnapshotBeforeUpdate?(prevProps: Readonly<{}>, prevState: Readonly<{}>): any;
27
- componentDidUpdate?(prevProps: Readonly<{}>, prevState: Readonly<{}>, snapshot?: any): void;
28
- componentWillMount?(): void;
29
- UNSAFE_componentWillMount?(): void;
30
- componentWillReceiveProps?(nextProps: Readonly<{}>, nextContext: any): void;
31
- UNSAFE_componentWillReceiveProps?(nextProps: Readonly<{}>, nextContext: any): void;
32
- componentWillUpdate?(nextProps: Readonly<{}>, nextState: Readonly<{}>, nextContext: any): void;
33
- UNSAFE_componentWillUpdate?(nextProps: Readonly<{}>, nextState: Readonly<{}>, nextContext: any): void;
34
- };
35
- new (props: {}, context: any): {
36
- render(): React.JSX.Element;
37
- context: unknown;
38
- setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<{}>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
39
- forceUpdate(callback?: (() => void) | undefined): void;
40
- readonly props: Readonly<{}>;
41
- state: Readonly<{}>;
42
- refs: {
43
- [key: string]: React.ReactInstance;
44
- };
45
- componentDidMount?(): void;
46
- shouldComponentUpdate?(nextProps: Readonly<{}>, nextState: Readonly<{}>, nextContext: any): boolean;
47
- componentWillUnmount?(): void;
48
- componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
49
- getSnapshotBeforeUpdate?(prevProps: Readonly<{}>, prevState: Readonly<{}>): any;
50
- componentDidUpdate?(prevProps: Readonly<{}>, prevState: Readonly<{}>, snapshot?: any): void;
51
- componentWillMount?(): void;
52
- UNSAFE_componentWillMount?(): void;
53
- componentWillReceiveProps?(nextProps: Readonly<{}>, nextContext: any): void;
54
- UNSAFE_componentWillReceiveProps?(nextProps: Readonly<{}>, nextContext: any): void;
55
- componentWillUpdate?(nextProps: Readonly<{}>, nextState: Readonly<{}>, nextContext: any): void;
56
- UNSAFE_componentWillUpdate?(nextProps: Readonly<{}>, nextState: Readonly<{}>, nextContext: any): void;
57
- };
58
- propTypes: {
59
- iconSet: PropTypes.Requireable<string>;
60
- shape: PropTypes.Requireable<string>;
61
- category: PropTypes.Requireable<string | undefined>;
62
- open: PropTypes.Requireable<boolean>;
63
- size: PropTypes.Requireable<NonNullable<string | number | null | undefined>>;
64
- fg: PropTypes.Requireable<string>;
65
- bg: PropTypes.Requireable<string>;
66
- };
67
- defaultProps: {
68
- iconSet: string;
69
- shape: string;
70
- category: undefined;
71
- open: boolean;
72
- size: number;
73
- fg: string;
74
- bg: string;
75
- };
76
- contextType?: React.Context<any> | undefined;
77
- };
78
- export default Correct;
@@ -1,59 +0,0 @@
1
- import e from "./icon-base.js";
2
- import "react";
3
- import t from "prop-types";
4
- import { jsx as n, jsxs as r } from "react/jsx-runtime";
5
- //#region src/correct-icon.tsx
6
- var i = ({ fill: e }) => /* @__PURE__ */ r("g", {
7
- transform: "translate(1, 0)",
8
- children: [
9
- /* @__PURE__ */ n("path", {
10
- d: "M24.7,22.1c-1.5,1.7-3.6,2.7-5.8,2.7s-4.5-1.1-5.8-2.7l-2.8,1.6c2,2.7,5.2,4.2,8.7,4.2\n c3.4,0,6.6-1.6,8.7-4.2L24.7,22.1z",
11
- fill: e
12
- }),
13
- /* @__PURE__ */ n("rect", {
14
- x: "21.1",
15
- y: "13.1",
16
- width: "3.7",
17
- height: "4.7",
18
- fill: e
19
- }),
20
- /* @__PURE__ */ n("rect", {
21
- x: "12.7",
22
- y: "13.1",
23
- width: "3.7",
24
- height: "4.7",
25
- fill: e
26
- })
27
- ]
28
- });
29
- i.propTypes = { fill: t.string.isRequired };
30
- var a = ({ fill: e, x: t = 0, y: r = 0 }) => /* @__PURE__ */ n("polygon", {
31
- transform: `translate(${t}, ${r})`,
32
- points: "19.1,28.6 11.8,22.3 14.4,19.2 17.9,22.1 23.9,11.4 27.5,13.4",
33
- fill: e
34
- });
35
- a.propTypes = {
36
- fill: t.string.isRequired,
37
- x: t.number,
38
- y: t.number
39
- };
40
- var o = e(a, i);
41
- o.propTypes = {
42
- iconSet: t.oneOf(["emoji", "check"]),
43
- shape: t.oneOf(["round", "square"]),
44
- category: t.oneOf(["feedback", void 0]),
45
- open: t.bool,
46
- fg: t.string,
47
- bg: t.string,
48
- size: t.oneOfType([t.string, t.number])
49
- }, o.defaultProps = {
50
- iconSet: "check",
51
- shape: "round",
52
- category: void 0,
53
- open: !1,
54
- fg: "#4aaf46",
55
- bg: "#f8ffe2",
56
- size: 30
57
- };
58
- //#endregion
59
- export { o as default };
@@ -1,24 +0,0 @@
1
- /**
2
- * @synced-from pie-lib/packages/icons/src/correct-response-icon.jsx
3
- * @auto-generated
4
- *
5
- * This file is automatically synced from pie-elements and converted to TypeScript.
6
- * Manual edits will be overwritten on next sync.
7
- * To make changes, edit the upstream JavaScript file and run sync again.
8
- */
9
- import PropTypes from 'prop-types';
10
- import React from 'react';
11
- declare const CorrectResponse: {
12
- ({ open, size }: {
13
- open: any;
14
- size: any;
15
- }): React.JSX.Element;
16
- propTypes: {
17
- open: PropTypes.Requireable<boolean>;
18
- size: PropTypes.Requireable<string>;
19
- };
20
- defaultProps: {
21
- open: boolean;
22
- };
23
- };
24
- export default CorrectResponse;
@@ -1,96 +0,0 @@
1
- import "react";
2
- import e from "prop-types";
3
- import { jsx as t, jsxs as n } from "react/jsx-runtime";
4
- import { styled as r } from "@mui/material/styles";
5
- //#region src/correct-response-icon.tsx
6
- var i = ({ bgFill: e, fgFill: r }) => /* @__PURE__ */ n("svg", {
7
- preserveAspectRatio: "xMinYMin meet",
8
- version: "1.1",
9
- viewBox: "-283 359 34 35",
10
- style: { enableBackground: "new -283 359 34 35" },
11
- children: [
12
- /* @__PURE__ */ t("circle", {
13
- cx: "-266",
14
- cy: "375.9",
15
- r: "14",
16
- fill: e
17
- }),
18
- /* @__PURE__ */ t("path", {
19
- d: "M-280.5,375.9c0-8,6.5-14.5,14.5-14.5s14.5,6.5,14.5,14.5s-6.5,14.5-14.5,14.5S-280.5,383.9-280.5,375.9z\n M-279.5,375.9c0,7.4,6.1,13.5,13.5,13.5c7.4,0,13.5-6.1,13.5-13.5s-6.1-13.5-13.5-13.5C-273.4,362.4-279.5,368.5-279.5,375.9z",
20
- fill: e
21
- }),
22
- /* @__PURE__ */ t("polygon", {
23
- points: "-265.4,383.1 -258.6,377.2 -261.2,374.2 -264.3,376.9 -268.9,368.7 -272.4,370.6",
24
- fill: r
25
- })
26
- ]
27
- });
28
- i.propTypes = {
29
- bgFill: e.string.isRequired,
30
- fgFill: e.string.isRequired
31
- };
32
- var a = ({ bgFill: e, fgFill: r, borderFill: i }) => /* @__PURE__ */ n("svg", {
33
- preserveAspectRatio: "xMinYMin meet",
34
- version: "1.1",
35
- viewBox: "-129.5 127 34 35",
36
- style: { enableBackground: "new -129.5 127 34 35" },
37
- children: [
38
- /* @__PURE__ */ t("path", {
39
- style: {
40
- fill: "#D0CAC5",
41
- stroke: "#E6E3E0",
42
- strokeWidth: .75,
43
- strokeMiterlimit: 10
44
- },
45
- d: "M-112.9,160.4c-8.5,0-15.5-6.9-15.5-15.5c0-8.5,6.9-15.5,15.5-15.5s15.5,6.9,15.5,15.5\n C-97.4,153.5-104.3,160.4-112.9,160.4z"
46
- }),
47
- /* @__PURE__ */ t("path", {
48
- style: {
49
- fill: "#B3ABA4",
50
- stroke: "#CDC7C2",
51
- strokeWidth: .5,
52
- strokeMiterlimit: 10
53
- },
54
- d: "M-113.2,159c-8,0-14.5-6.5-14.5-14.5s6.5-14.5,14.5-14.5s14.5,6.5,14.5,14.5S-105.2,159-113.2,159z"
55
- }),
56
- /* @__PURE__ */ t("circle", {
57
- cx: "-114.2",
58
- cy: "143.5",
59
- r: "14",
60
- fill: e
61
- }),
62
- /* @__PURE__ */ t("path", {
63
- d: "M-114.2,158c-8,0-14.5-6.5-14.5-14.5s6.5-14.5,14.5-14.5s14.5,6.5,14.5,14.5S-106.2,158-114.2,158z\n M-114.2,130c-7.4,0-13.5,6.1-13.5,13.5s6.1,13.5,13.5,13.5s13.5-6.1,13.5-13.5S-106.8,130-114.2,130z",
64
- fill: i
65
- }),
66
- /* @__PURE__ */ t("polygon", {
67
- points: "-114.8,150.7 -121.6,144.8 -119,141.8 -115.9,144.5 -111.3,136.3 -107.8,138.2",
68
- fill: r
69
- })
70
- ]
71
- });
72
- a.propTypes = {
73
- bgFill: e.string.isRequired,
74
- fgFill: e.string.isRequired,
75
- borderFill: e.string.isRequired
76
- };
77
- var o = r("div")(({ size: e }) => ({
78
- width: e || "25px",
79
- height: e || "25px"
80
- })), s = ({ open: e, size: n }) => /* @__PURE__ */ t(o, {
81
- size: n,
82
- children: e ? /* @__PURE__ */ t(i, {
83
- bgFill: "#bce2ff",
84
- fgFill: "#1a9cff"
85
- }) : /* @__PURE__ */ t(a, {
86
- bgFill: "white",
87
- fgFill: "#1a9cff",
88
- borderFill: "#bce2ff"
89
- })
90
- });
91
- s.propTypes = {
92
- open: e.bool,
93
- size: e.string
94
- }, s.defaultProps = { open: !1 };
95
- //#endregion
96
- export { s as default };