@pie-lib/icons 4.0.2 → 4.0.3-next.0
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/correct-icon.d.ts +78 -0
- package/dist/correct-icon.js +59 -0
- package/dist/correct-response-icon.d.ts +24 -0
- package/dist/correct-response-icon.js +96 -0
- package/dist/icon-base.d.ts +78 -0
- package/dist/icon-base.js +40 -0
- package/dist/icon-root.d.ts +71 -0
- package/dist/icon-root.js +57 -0
- package/dist/incorrect-icon.d.ts +78 -0
- package/dist/incorrect-icon.js +71 -0
- package/dist/index.d.ts +17 -0
- package/dist/index.js +9 -0
- package/dist/instructions-icon.d.ts +13 -0
- package/dist/instructions-icon.js +179 -0
- package/dist/learn-more-icon.d.ts +18 -0
- package/dist/learn-more-icon.js +82 -0
- package/dist/nothing-submitted-icon.d.ts +14 -0
- package/dist/nothing-submitted-icon.js +92 -0
- package/dist/partially-correct-icon.d.ts +78 -0
- package/dist/partially-correct-icon.js +64 -0
- package/dist/show-rationale-icon.d.ts +13 -0
- package/dist/show-rationale-icon.js +136 -0
- package/dist/sized.d.ts +22 -0
- package/dist/sized.js +19 -0
- package/package.json +25 -21
- package/CHANGELOG.json +0 -1
- package/CHANGELOG.md +0 -573
- package/LICENSE.md +0 -5
- package/lib/correct-icon.js +0 -79
- package/lib/correct-icon.js.map +0 -1
- package/lib/correct-response-icon.js +0 -125
- package/lib/correct-response-icon.js.map +0 -1
- package/lib/icon-base.js +0 -93
- package/lib/icon-base.js.map +0 -1
- package/lib/icon-root.js +0 -106
- package/lib/icon-root.js.map +0 -1
- package/lib/incorrect-icon.js +0 -88
- package/lib/incorrect-icon.js.map +0 -1
- package/lib/index.js +0 -63
- package/lib/index.js.map +0 -1
- package/lib/instructions-icon.js +0 -205
- package/lib/instructions-icon.js.map +0 -1
- package/lib/learn-more-icon.js +0 -104
- package/lib/learn-more-icon.js.map +0 -1
- package/lib/nothing-submitted-icon.js +0 -175
- package/lib/nothing-submitted-icon.js.map +0 -1
- package/lib/partially-correct-icon.js +0 -81
- package/lib/partially-correct-icon.js.map +0 -1
- package/lib/show-rationale-icon.js +0 -187
- package/lib/show-rationale-icon.js.map +0 -1
- package/lib/sized.js +0 -32
- package/lib/sized.js.map +0 -1
- package/src/__tests__/index.test.js +0 -305
- package/src/correct-icon.jsx +0 -54
- package/src/correct-response-icon.jsx +0 -106
- package/src/icon-base.jsx +0 -55
- package/src/icon-root.jsx +0 -53
- package/src/incorrect-icon.jsx +0 -67
- package/src/index.js +0 -19
- package/src/instructions-icon.jsx +0 -189
- package/src/learn-more-icon.jsx +0 -94
- package/src/nothing-submitted-icon.jsx +0 -136
- package/src/partially-correct-icon.jsx +0 -56
- package/src/show-rationale-icon.jsx +0 -145
- package/src/sized.jsx +0 -25
package/dist/index.js
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import e from "./correct-icon.js";
|
|
2
|
+
import t from "./correct-response-icon.js";
|
|
3
|
+
import n from "./incorrect-icon.js";
|
|
4
|
+
import r from "./instructions-icon.js";
|
|
5
|
+
import i from "./learn-more-icon.js";
|
|
6
|
+
import a from "./nothing-submitted-icon.js";
|
|
7
|
+
import o from "./partially-correct-icon.js";
|
|
8
|
+
import s from "./show-rationale-icon.js";
|
|
9
|
+
export { e as Correct, t as CorrectResponse, n as Incorrect, r as Instructions, i as LearnMore, a as NothingSubmitted, o as PartiallyCorrect, s as ShowRationale };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @synced-from pie-lib/packages/icons/src/instructions-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 React from 'react';
|
|
10
|
+
export default class Instructions extends React.Component {
|
|
11
|
+
constructor(props: any);
|
|
12
|
+
render(): React.JSX.Element;
|
|
13
|
+
}
|
|
@@ -0,0 +1,179 @@
|
|
|
1
|
+
import e from "./sized.js";
|
|
2
|
+
import t from "react";
|
|
3
|
+
import n from "prop-types";
|
|
4
|
+
import { jsx as r, jsxs as i } from "react/jsx-runtime";
|
|
5
|
+
//#region src/instructions-icon.tsx
|
|
6
|
+
var a = () => {
|
|
7
|
+
let e = {
|
|
8
|
+
fill: "none",
|
|
9
|
+
stroke: "#BCE2FF",
|
|
10
|
+
strokeWidth: 2,
|
|
11
|
+
strokeMiterlimit: 10
|
|
12
|
+
};
|
|
13
|
+
return /* @__PURE__ */ i("g", { children: [
|
|
14
|
+
/* @__PURE__ */ r("line", {
|
|
15
|
+
style: e,
|
|
16
|
+
x1: "-98",
|
|
17
|
+
y1: "142",
|
|
18
|
+
x2: "-114.6",
|
|
19
|
+
y2: "142"
|
|
20
|
+
}),
|
|
21
|
+
/* @__PURE__ */ r("line", {
|
|
22
|
+
style: e,
|
|
23
|
+
x1: "-98",
|
|
24
|
+
y1: "146.3",
|
|
25
|
+
x2: "-114.6",
|
|
26
|
+
y2: "146.3"
|
|
27
|
+
}),
|
|
28
|
+
/* @__PURE__ */ r("line", {
|
|
29
|
+
style: e,
|
|
30
|
+
x1: "-104",
|
|
31
|
+
y1: "150.7",
|
|
32
|
+
x2: "-114.6",
|
|
33
|
+
y2: "150.7"
|
|
34
|
+
})
|
|
35
|
+
] });
|
|
36
|
+
}, o = ({ children: t, size: n }) => /* @__PURE__ */ r(e, {
|
|
37
|
+
size: n,
|
|
38
|
+
children: /* @__PURE__ */ r("svg", {
|
|
39
|
+
version: "1.1",
|
|
40
|
+
viewBox: "-128 129 31 31",
|
|
41
|
+
style: { enableBackground: "new -128 129 31 31" },
|
|
42
|
+
children: t
|
|
43
|
+
})
|
|
44
|
+
});
|
|
45
|
+
o.propTypes = {
|
|
46
|
+
children: n.oneOfType([n.arrayOf(n.node), n.node]).isRequired,
|
|
47
|
+
size: n.number
|
|
48
|
+
};
|
|
49
|
+
var s = () => /* @__PURE__ */ i("g", { children: [
|
|
50
|
+
/* @__PURE__ */ r("rect", {
|
|
51
|
+
x: "-123.9",
|
|
52
|
+
y: "135.3",
|
|
53
|
+
style: {
|
|
54
|
+
fill: "#D0CAC5",
|
|
55
|
+
stroke: "#E6E3E0",
|
|
56
|
+
strokeWidth: .75,
|
|
57
|
+
strokeLinejoin: "round",
|
|
58
|
+
strokeMiterlimit: 10
|
|
59
|
+
},
|
|
60
|
+
width: "4.1",
|
|
61
|
+
height: "4.1"
|
|
62
|
+
}),
|
|
63
|
+
/* @__PURE__ */ r("polygon", {
|
|
64
|
+
style: {
|
|
65
|
+
fill: "#D0CAC5",
|
|
66
|
+
stroke: "#E6E3E0",
|
|
67
|
+
strokeWidth: .75,
|
|
68
|
+
strokeLinejoin: "round",
|
|
69
|
+
strokeMiterlimit: 10
|
|
70
|
+
},
|
|
71
|
+
points: "-119.8,150.4 -119.8,142.2 -125,142.2 -125,144.9 -122.6,144.9 -122.6,150.4 -125.6,150.4 \n -125.6,153.2 -116.8,153.2 -116.8,150.4 "
|
|
72
|
+
}),
|
|
73
|
+
/* @__PURE__ */ r("rect", {
|
|
74
|
+
x: "-124.7",
|
|
75
|
+
y: "134.7",
|
|
76
|
+
style: {
|
|
77
|
+
fill: "#B3ABA4",
|
|
78
|
+
stroke: "#CDC7C2",
|
|
79
|
+
strokeWidth: .5,
|
|
80
|
+
strokeLinecap: "round",
|
|
81
|
+
strokeLinejoin: "round",
|
|
82
|
+
strokeMiterlimit: 10
|
|
83
|
+
},
|
|
84
|
+
width: "4.1",
|
|
85
|
+
height: "4.1"
|
|
86
|
+
}),
|
|
87
|
+
/* @__PURE__ */ r("polygon", {
|
|
88
|
+
style: {
|
|
89
|
+
fill: "#B3ABA4",
|
|
90
|
+
stroke: "#CDC7C2",
|
|
91
|
+
strokeWidth: .5,
|
|
92
|
+
strokeLinecap: "round",
|
|
93
|
+
strokeLinejoin: "round",
|
|
94
|
+
strokeMiterlimit: 10
|
|
95
|
+
},
|
|
96
|
+
points: "-120.6,149.8 -120.6,141.5 -125.8,141.5 -125.8,144.3 -123.3,144.3 -123.3,149.8 -126.4,149.8 \n -126.4,152.5 -117.6,152.5 -117.6,149.8 "
|
|
97
|
+
}),
|
|
98
|
+
/* @__PURE__ */ r("rect", {
|
|
99
|
+
x: "-125.5",
|
|
100
|
+
y: "134",
|
|
101
|
+
style: { fill: "#7FABC6" },
|
|
102
|
+
width: "4.1",
|
|
103
|
+
height: "4.1"
|
|
104
|
+
}),
|
|
105
|
+
/* @__PURE__ */ r("polygon", {
|
|
106
|
+
style: { fill: "#7FABC6" },
|
|
107
|
+
points: "-121.4,149.1 -121.4,140.9 -126.5,140.9 -126.5,143.6 -124.1,143.6 -124.1,149.1 -127.1,149.1 \n -127.1,151.9 -118.4,151.9 -118.4,149.1 "
|
|
108
|
+
})
|
|
109
|
+
] }), c = () => /* @__PURE__ */ i("g", { children: [
|
|
110
|
+
/* @__PURE__ */ r("rect", {
|
|
111
|
+
x: "-123.9",
|
|
112
|
+
y: "135.3",
|
|
113
|
+
style: {
|
|
114
|
+
fill: "#D0CAC5",
|
|
115
|
+
stroke: "#E6E3E0",
|
|
116
|
+
strokeWidth: .75,
|
|
117
|
+
strokeLinejoin: "round",
|
|
118
|
+
strokeMiterlimit: 10
|
|
119
|
+
},
|
|
120
|
+
width: "4.1",
|
|
121
|
+
height: "4.1"
|
|
122
|
+
}),
|
|
123
|
+
/* @__PURE__ */ r("polygon", {
|
|
124
|
+
style: {
|
|
125
|
+
fill: "#D0CAC5",
|
|
126
|
+
stroke: "#E6E3E0",
|
|
127
|
+
strokeWidth: .75,
|
|
128
|
+
strokeLinejoin: "round",
|
|
129
|
+
strokeMiterlimit: 10
|
|
130
|
+
},
|
|
131
|
+
points: "-119.8,150.4 -119.8,142.2 -125,142.2 -125,144.9 -122.6,144.9 -122.6,150.4 -125.6,150.4 \n -125.6,153.2 -116.8,153.2 -116.8,150.4 "
|
|
132
|
+
}),
|
|
133
|
+
/* @__PURE__ */ r("rect", {
|
|
134
|
+
x: "-124.7",
|
|
135
|
+
y: "134.7",
|
|
136
|
+
style: {
|
|
137
|
+
fill: "#B3ABA4",
|
|
138
|
+
stroke: "#CDC7C2",
|
|
139
|
+
strokeWidth: .5,
|
|
140
|
+
strokeLinecap: "round",
|
|
141
|
+
strokeLinejoin: "round",
|
|
142
|
+
strokeMiterlimit: 10
|
|
143
|
+
},
|
|
144
|
+
width: "4.1",
|
|
145
|
+
height: "4.1"
|
|
146
|
+
}),
|
|
147
|
+
/* @__PURE__ */ r("polygon", {
|
|
148
|
+
style: {
|
|
149
|
+
fill: "#B3ABA4",
|
|
150
|
+
stroke: "#CDC7C2",
|
|
151
|
+
strokeWidth: .5,
|
|
152
|
+
strokeLinecap: "round",
|
|
153
|
+
strokeLinejoin: "round",
|
|
154
|
+
strokeMiterlimit: 10
|
|
155
|
+
},
|
|
156
|
+
points: "-120.6,149.8 -120.6,141.5 -125.8,141.5 -125.8,144.3 -123.3,144.3 -123.3,149.8 -126.4,149.8 \n -126.4,152.5 -117.6,152.5 -117.6,149.8 "
|
|
157
|
+
}),
|
|
158
|
+
/* @__PURE__ */ r("rect", {
|
|
159
|
+
x: "-125.5",
|
|
160
|
+
y: "134",
|
|
161
|
+
style: { fill: "#1A9CFF" },
|
|
162
|
+
width: "4.1",
|
|
163
|
+
height: "4.1"
|
|
164
|
+
}),
|
|
165
|
+
/* @__PURE__ */ r("polygon", {
|
|
166
|
+
style: { fill: "#1A9CFF" },
|
|
167
|
+
points: "-121.4,149.1 -121.4,140.9 -126.5,140.9 -126.5,143.6 -124.1,143.6 -124.1,149.1 -127.1,149.1 \n -127.1,151.9 -118.4,151.9 -118.4,149.1 "
|
|
168
|
+
})
|
|
169
|
+
] }), l = class extends t.Component {
|
|
170
|
+
constructor(e) {
|
|
171
|
+
super(e);
|
|
172
|
+
}
|
|
173
|
+
render() {
|
|
174
|
+
return this.props.open === !0 ? /* @__PURE__ */ i(o, { children: [/* @__PURE__ */ r(s, {}), /* @__PURE__ */ r(a, {})] }) : /* @__PURE__ */ i(o, { children: [/* @__PURE__ */ r(c, {}), /* @__PURE__ */ r(a, {})] });
|
|
175
|
+
}
|
|
176
|
+
};
|
|
177
|
+
l.propTypes = { open: n.bool }, l.defaultProps = { open: !1 };
|
|
178
|
+
//#endregion
|
|
179
|
+
export { l as default };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @synced-from pie-lib/packages/icons/src/learn-more-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 class LearnMore extends React.Component {
|
|
12
|
+
static propTypes: {
|
|
13
|
+
classes: PropTypes.Validator<object>;
|
|
14
|
+
size: PropTypes.Requireable<number>;
|
|
15
|
+
};
|
|
16
|
+
render(): React.JSX.Element;
|
|
17
|
+
}
|
|
18
|
+
export default LearnMore;
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import e from "./sized.js";
|
|
2
|
+
import t from "react";
|
|
3
|
+
import n from "prop-types";
|
|
4
|
+
import { jsx as r, jsxs as i } from "react/jsx-runtime";
|
|
5
|
+
//#region src/learn-more-icon.tsx
|
|
6
|
+
var a = ({ fill: e }) => /* @__PURE__ */ r("path", {
|
|
7
|
+
fill: e,
|
|
8
|
+
d: "M-130.4,142.1c0-2.1,1.7-3.9,3.9-3.9c0.3,0,0.5,0,0.8,0.1c-0.6-0.8-1.5-1.3-2.6-1.3c-1.8,0-3.3,1.5-3.3,3.3c0,1.1,0.5,2,1.3,2.6C-130.4,142.6-130.4,142.4-130.4,142.1z"
|
|
9
|
+
});
|
|
10
|
+
a.propTypes = { fill: n.string };
|
|
11
|
+
var o = class extends t.Component {
|
|
12
|
+
static propTypes = {
|
|
13
|
+
classes: n.object.isRequired,
|
|
14
|
+
size: n.number
|
|
15
|
+
};
|
|
16
|
+
render() {
|
|
17
|
+
let { size: t } = this.props;
|
|
18
|
+
return this.props.open === !0 ? /* @__PURE__ */ r(e, {
|
|
19
|
+
size: t,
|
|
20
|
+
children: /* @__PURE__ */ i("svg", {
|
|
21
|
+
preserveAspectRatio: "xMinYMin meet",
|
|
22
|
+
viewBox: "-135 129 16 32",
|
|
23
|
+
children: [
|
|
24
|
+
/* @__PURE__ */ r("path", {
|
|
25
|
+
fill: "#BCE2FF",
|
|
26
|
+
d: "M-122,141.1c0-3.7-3.3-6.6-7.1-5.8c-2.4,0.5-4.3,2.4-4.7,4.8c-0.4,2.3,0.6,4.4,2.2,5.7c0.4,0.3,0.6,0.8,0.6,1.3v1.9h6.1v-1.9c0-0.5,0.2-1,0.6-1.3C-122.8,144.7-122,143-122,141.1z"
|
|
27
|
+
}),
|
|
28
|
+
/* @__PURE__ */ r("path", {
|
|
29
|
+
fill: "#BCE2FF",
|
|
30
|
+
d: "M-125.7,153h-4.5c-0.4,0-0.8-0.4-0.8-0.8v-1.6h6.1v1.6C-124.9,152.7-125.2,153-125.7,153z"
|
|
31
|
+
}),
|
|
32
|
+
/* @__PURE__ */ r(a, { fill: "#1A9CFF" })
|
|
33
|
+
]
|
|
34
|
+
})
|
|
35
|
+
}) : /* @__PURE__ */ r(e, {
|
|
36
|
+
size: t,
|
|
37
|
+
children: /* @__PURE__ */ i("svg", {
|
|
38
|
+
preserveAspectRatio: "xMinYMin meet",
|
|
39
|
+
viewBox: "-135 129 16 31",
|
|
40
|
+
children: [
|
|
41
|
+
/* @__PURE__ */ r("path", {
|
|
42
|
+
fill: "#D0CAC5",
|
|
43
|
+
stroke: "#E6E3E0",
|
|
44
|
+
className: "st0",
|
|
45
|
+
d: "M-120.7,142.4c0-3.7-3.3-6.6-7.1-5.8c-2.4,0.5-4.3,2.4-4.7,4.8c-0.4,2.3,0.6,4.4,2.2,5.7c0.4,0.3,0.6,0.8,0.6,1.3v1.9h6.1v-1.9c0-0.5,0.2-1,0.6-1.3C-121.6,146-120.7,144.3-120.7,142.4z"
|
|
46
|
+
}),
|
|
47
|
+
/* @__PURE__ */ r("path", {
|
|
48
|
+
fill: "#D0CAC5",
|
|
49
|
+
stroke: "#E6E3E0",
|
|
50
|
+
className: "st0",
|
|
51
|
+
d: "M-124.4,154.3h-4.5c-0.4,0-0.8-0.4-0.8-0.8v-1.6h6.1v1.6C-123.6,153.9-123.9,154.3-124.4,154.3z"
|
|
52
|
+
}),
|
|
53
|
+
/* @__PURE__ */ r("path", {
|
|
54
|
+
fill: "#B3ABA4",
|
|
55
|
+
stroke: "#CDC7C2",
|
|
56
|
+
className: "st1",
|
|
57
|
+
d: "M-121.3,141.8c0-3.7-3.3-6.6-7.1-5.8c-2.4,0.5-4.3,2.4-4.7,4.8c-0.4,2.3,0.6,4.4,2.2,5.7c0.4,0.3,0.6,0.8,0.6,1.3v1.9h6.1v-1.9c0-0.5,0.2-1,0.6-1.3C-122.2,145.3-121.3,143.7-121.3,141.8z"
|
|
58
|
+
}),
|
|
59
|
+
",",
|
|
60
|
+
/* @__PURE__ */ r("path", {
|
|
61
|
+
fill: "#B3ABA4",
|
|
62
|
+
stroke: "#CDC7C2",
|
|
63
|
+
className: "st1",
|
|
64
|
+
d: "M-125,153.7h-4.5c-0.4,0-0.8-0.4-0.8-0.8v-1.6h6.1v1.6C-124.2,153.3-124.6,153.7-125,153.7z"
|
|
65
|
+
}),
|
|
66
|
+
/* @__PURE__ */ r("path", {
|
|
67
|
+
fill: "#1A9CFF",
|
|
68
|
+
d: "M-122,141.1c0-3.7-3.3-6.6-7.1-5.8c-2.4,0.5-4.3,2.4-4.7,4.8c-0.4,2.3,0.6,4.4,2.2,5.7c0.4,0.3,0.6,0.8,0.6,1.3v1.9h6.1v-1.9c0-0.5,0.2-1,0.6-1.3C-122.8,144.7-122,143-122,141.1z"
|
|
69
|
+
}),
|
|
70
|
+
/* @__PURE__ */ r("path", {
|
|
71
|
+
fill: "#1A9CFF",
|
|
72
|
+
d: "M-125.7,153h-4.5c-0.4,0-0.8-0.4-0.8-0.8v-1.6h6.1v1.6C-124.9,152.7-125.2,153-125.7,153z"
|
|
73
|
+
}),
|
|
74
|
+
/* @__PURE__ */ r(a, { fill: "1A9CFF" })
|
|
75
|
+
]
|
|
76
|
+
})
|
|
77
|
+
});
|
|
78
|
+
}
|
|
79
|
+
};
|
|
80
|
+
o.propTypes = { open: n.bool }, o.defaultProps = { open: !1 };
|
|
81
|
+
//#endregion
|
|
82
|
+
export { o as default };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @synced-from pie-lib/packages/icons/src/nothing-submitted-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 React from 'react';
|
|
10
|
+
export declare class NothingSubmitted extends React.Component {
|
|
11
|
+
constructor(props: any);
|
|
12
|
+
render(): any;
|
|
13
|
+
}
|
|
14
|
+
export default NothingSubmitted;
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import { IconRoot as e } from "./icon-root.js";
|
|
2
|
+
import t from "react";
|
|
3
|
+
import n from "prop-types";
|
|
4
|
+
import { jsx as r, jsxs as i } from "react/jsx-runtime";
|
|
5
|
+
//#region src/nothing-submitted-icon.tsx
|
|
6
|
+
var a = ({ fill: e }) => /* @__PURE__ */ i("g", { children: [/* @__PURE__ */ r("rect", {
|
|
7
|
+
x: "19.3",
|
|
8
|
+
y: "10.3",
|
|
9
|
+
width: "4.5",
|
|
10
|
+
height: "12.7",
|
|
11
|
+
fill: e
|
|
12
|
+
}), /* @__PURE__ */ r("rect", {
|
|
13
|
+
x: "19.3",
|
|
14
|
+
y: "26.2",
|
|
15
|
+
width: "4.5",
|
|
16
|
+
height: "4.5",
|
|
17
|
+
fill: e
|
|
18
|
+
})] });
|
|
19
|
+
a.propTypes = { fill: n.string.isRequired };
|
|
20
|
+
var o = ({ fill: e }) => /* @__PURE__ */ r("polygon", {
|
|
21
|
+
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",
|
|
22
|
+
fill: e
|
|
23
|
+
});
|
|
24
|
+
o.propTypes = { fill: n.string.isRequired };
|
|
25
|
+
var s = ({ fill: e }) => /* @__PURE__ */ i("g", { children: [
|
|
26
|
+
/* @__PURE__ */ r("rect", {
|
|
27
|
+
x: "23.8",
|
|
28
|
+
y: "15",
|
|
29
|
+
width: "3.5",
|
|
30
|
+
height: "4.4",
|
|
31
|
+
fill: e
|
|
32
|
+
}),
|
|
33
|
+
/* @__PURE__ */ r("rect", {
|
|
34
|
+
x: "16",
|
|
35
|
+
y: "15",
|
|
36
|
+
width: "3.5",
|
|
37
|
+
height: "4.4",
|
|
38
|
+
fill: e
|
|
39
|
+
}),
|
|
40
|
+
/* @__PURE__ */ r("path", {
|
|
41
|
+
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\n C25.7,26.4,25,27.1,24.2,27.1z",
|
|
42
|
+
fill: e
|
|
43
|
+
})
|
|
44
|
+
] });
|
|
45
|
+
s.propTypes = { fill: n.string.isRequired };
|
|
46
|
+
var c = class extends t.Component {
|
|
47
|
+
constructor(t) {
|
|
48
|
+
super(t);
|
|
49
|
+
let { fg: n = "#464146", bg: c = "white" } = this.props;
|
|
50
|
+
this.icons = {
|
|
51
|
+
check: /* @__PURE__ */ i(e, { children: [/* @__PURE__ */ r(o, { fill: c }), /* @__PURE__ */ r(a, { fill: n })] }),
|
|
52
|
+
emoji: /* @__PURE__ */ i(e, { children: [/* @__PURE__ */ r(o, { fill: c }), /* @__PURE__ */ r(s, { fill: n })] }),
|
|
53
|
+
feedback: {
|
|
54
|
+
check: /* @__PURE__ */ i(e, { children: [/* @__PURE__ */ r(o, { fill: c }), /* @__PURE__ */ r(s, { fill: n })] }),
|
|
55
|
+
emoji: /* @__PURE__ */ i(e, { children: [/* @__PURE__ */ r(o, { fill: c }), /* @__PURE__ */ r(s, { fill: n })] }),
|
|
56
|
+
square: {
|
|
57
|
+
check: /* @__PURE__ */ i(e, { children: [/* @__PURE__ */ r(o, { fill: c }), /* @__PURE__ */ r(a, { fill: n })] }),
|
|
58
|
+
emoji: /* @__PURE__ */ i(e, { children: [/* @__PURE__ */ r(o, { fill: c }), /* @__PURE__ */ r(s, { fill: n })] }),
|
|
59
|
+
open: {
|
|
60
|
+
check: /* @__PURE__ */ r(e, { children: /* @__PURE__ */ r(a, { fill: c }) }),
|
|
61
|
+
emoji: /* @__PURE__ */ r(e, { children: /* @__PURE__ */ r(s, { fill: c }) })
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
render() {
|
|
68
|
+
let { iconSet: e, category: t, shape: n, open: r } = this.props;
|
|
69
|
+
return t === void 0 ? this.icons[e] : n === void 0 ? this.icons.feedback[e] : r === !0 ? this.icons.feedback.square.open[e] : this.icons.feedback.square[e];
|
|
70
|
+
}
|
|
71
|
+
};
|
|
72
|
+
c.propTypes = {
|
|
73
|
+
iconSet: n.oneOf([
|
|
74
|
+
"emoji",
|
|
75
|
+
"check",
|
|
76
|
+
void 0
|
|
77
|
+
]),
|
|
78
|
+
shape: n.oneOf(["square", void 0]),
|
|
79
|
+
category: n.oneOf(["feedback", void 0]),
|
|
80
|
+
open: n.bool,
|
|
81
|
+
fg: n.string,
|
|
82
|
+
bg: n.string
|
|
83
|
+
}, c.defaultProps = {
|
|
84
|
+
iconSet: "check",
|
|
85
|
+
shape: void 0,
|
|
86
|
+
category: void 0,
|
|
87
|
+
open: !1,
|
|
88
|
+
fg: "#464146",
|
|
89
|
+
bg: "white"
|
|
90
|
+
};
|
|
91
|
+
//#endregion
|
|
92
|
+
export { c as default };
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @synced-from pie-lib/packages/icons/src/partially-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 PartiallyCorrect: {
|
|
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 PartiallyCorrect;
|
|
@@ -0,0 +1,64 @@
|
|
|
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/partially-correct-icon.tsx
|
|
6
|
+
var i = ({ fill: e }) => /* @__PURE__ */ r("g", {
|
|
7
|
+
transform: "translate(0, 0)",
|
|
8
|
+
children: [/* @__PURE__ */ n("polygon", {
|
|
9
|
+
points: "27.5,13.4 23.9,11.4 15.9,25.8 19.1,28.6",
|
|
10
|
+
fill: e
|
|
11
|
+
}), /* @__PURE__ */ n("polygon", {
|
|
12
|
+
points: "16.2,20.6 14.4,19.2 11.8,22.3 14.1,24.3",
|
|
13
|
+
fill: e
|
|
14
|
+
})]
|
|
15
|
+
});
|
|
16
|
+
i.propTypes = { fill: t.string.isRequired };
|
|
17
|
+
var a = ({ fill: e }) => /* @__PURE__ */ r("g", {
|
|
18
|
+
transform: "translate(2, 0)",
|
|
19
|
+
children: [
|
|
20
|
+
/* @__PURE__ */ n("rect", {
|
|
21
|
+
x: "20.6",
|
|
22
|
+
y: "11.8",
|
|
23
|
+
width: "4",
|
|
24
|
+
height: "5",
|
|
25
|
+
fill: e
|
|
26
|
+
}),
|
|
27
|
+
/* @__PURE__ */ n("rect", {
|
|
28
|
+
x: "11.5",
|
|
29
|
+
y: "11.8",
|
|
30
|
+
width: "4",
|
|
31
|
+
height: "5",
|
|
32
|
+
fill: e
|
|
33
|
+
}),
|
|
34
|
+
/* @__PURE__ */ n("rect", {
|
|
35
|
+
x: "10.9",
|
|
36
|
+
y: "22.9",
|
|
37
|
+
transform: "matrix(0.9794 -0.2019 0.2019 0.9794 -4.6237 4.1559)",
|
|
38
|
+
width: "14.3",
|
|
39
|
+
height: "3.7",
|
|
40
|
+
fill: e
|
|
41
|
+
})
|
|
42
|
+
]
|
|
43
|
+
});
|
|
44
|
+
a.propTypes = { fill: t.string.isRequired };
|
|
45
|
+
var o = e(i, a);
|
|
46
|
+
o.propTypes = {
|
|
47
|
+
iconSet: t.oneOf(["emoji", "check"]),
|
|
48
|
+
shape: t.oneOf(["round", "square"]),
|
|
49
|
+
category: t.oneOf(["feedback", void 0]),
|
|
50
|
+
open: t.bool,
|
|
51
|
+
fg: t.string,
|
|
52
|
+
bg: t.string,
|
|
53
|
+
size: t.oneOfType([t.string, t.number])
|
|
54
|
+
}, o.defaultProps = {
|
|
55
|
+
iconSet: "check",
|
|
56
|
+
shape: "round",
|
|
57
|
+
category: void 0,
|
|
58
|
+
open: !1,
|
|
59
|
+
fg: "#4aaf46",
|
|
60
|
+
bg: "#c1e1ac",
|
|
61
|
+
size: 30
|
|
62
|
+
};
|
|
63
|
+
//#endregion
|
|
64
|
+
export { o as default };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @synced-from pie-lib/packages/icons/src/show-rationale-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 React from 'react';
|
|
10
|
+
export declare class ShowRationale extends React.Component {
|
|
11
|
+
render(): any;
|
|
12
|
+
}
|
|
13
|
+
export default ShowRationale;
|