@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
|
@@ -0,0 +1,78 @@
|
|
|
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;
|
|
@@ -0,0 +1,59 @@
|
|
|
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 };
|
|
@@ -0,0 +1,24 @@
|
|
|
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;
|
|
@@ -0,0 +1,96 @@
|
|
|
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 };
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @synced-from pie-lib/packages/icons/src/icon-base.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 _default: (Action: any, Emoji: any) => {
|
|
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 _default;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { Circle as e, IconRoot as t, RoundFeedbackBox as n, Square as r, SquareFeedbackBox as i } from "./icon-root.js";
|
|
2
|
+
import a from "react";
|
|
3
|
+
import o from "prop-types";
|
|
4
|
+
import { jsx as s, jsxs as c } from "react/jsx-runtime";
|
|
5
|
+
//#region src/icon-base.tsx
|
|
6
|
+
var l = (l, u) => {
|
|
7
|
+
class d extends a.Component {
|
|
8
|
+
static propTypes = {
|
|
9
|
+
iconSet: o.oneOf(["emoji", "check"]),
|
|
10
|
+
shape: o.oneOf(["round", "square"]),
|
|
11
|
+
category: o.oneOf(["feedback", void 0]),
|
|
12
|
+
open: o.bool,
|
|
13
|
+
size: o.oneOfType([o.number, o.string]),
|
|
14
|
+
fg: o.string,
|
|
15
|
+
bg: o.string
|
|
16
|
+
};
|
|
17
|
+
static defaultProps = {
|
|
18
|
+
iconSet: "check",
|
|
19
|
+
shape: "round",
|
|
20
|
+
category: void 0,
|
|
21
|
+
open: !1,
|
|
22
|
+
size: 30,
|
|
23
|
+
fg: "#4aaf46",
|
|
24
|
+
bg: "#f8ffe2"
|
|
25
|
+
};
|
|
26
|
+
render() {
|
|
27
|
+
let { iconSet: a, shape: o, category: d, open: f, size: p, fg: m, bg: h } = this.props, g = s(a === "check" ? l : u, { fill: m }), _ = s(a === "check" ? l : u, { fill: h });
|
|
28
|
+
return f ? /* @__PURE__ */ s(t, {
|
|
29
|
+
size: p,
|
|
30
|
+
children: _
|
|
31
|
+
}) : /* @__PURE__ */ c(t, {
|
|
32
|
+
size: p,
|
|
33
|
+
children: [s(d === "feedback" ? o === "round" ? n : i : o === "round" ? e : r, { fill: h }), g]
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
return d;
|
|
38
|
+
};
|
|
39
|
+
//#endregion
|
|
40
|
+
export { l as default };
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @synced-from pie-lib/packages/icons/src/icon-root.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
|
+
import PropTypes from 'prop-types';
|
|
11
|
+
export declare const normalizeSize: (size: any) => string;
|
|
12
|
+
export declare const IconRoot: {
|
|
13
|
+
({ size, children, sx }: {
|
|
14
|
+
size: any;
|
|
15
|
+
children: any;
|
|
16
|
+
sx: any;
|
|
17
|
+
}): React.JSX.Element;
|
|
18
|
+
propTypes: {
|
|
19
|
+
size: PropTypes.Requireable<NonNullable<string | number | null | undefined>>;
|
|
20
|
+
children: PropTypes.Validator<NonNullable<NonNullable<PropTypes.ReactNodeLike>>>;
|
|
21
|
+
sx: PropTypes.Requireable<object>;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
export declare const Tick: {
|
|
25
|
+
({ fill }: {
|
|
26
|
+
fill: any;
|
|
27
|
+
}): React.JSX.Element;
|
|
28
|
+
propTypes: {
|
|
29
|
+
fill: PropTypes.Validator<string>;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
export declare const SquareFeedbackBox: {
|
|
33
|
+
({ fill }: {
|
|
34
|
+
fill: any;
|
|
35
|
+
}): React.JSX.Element;
|
|
36
|
+
propTypes: {
|
|
37
|
+
fill: PropTypes.Validator<string>;
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
export declare const RoundFeedbackBox: {
|
|
41
|
+
({ fill }: {
|
|
42
|
+
fill: any;
|
|
43
|
+
}): React.JSX.Element;
|
|
44
|
+
propTypes: {
|
|
45
|
+
fill: PropTypes.Validator<string>;
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
|
+
export declare const Circle: {
|
|
49
|
+
({ fill }: {
|
|
50
|
+
fill: any;
|
|
51
|
+
}): React.JSX.Element;
|
|
52
|
+
propTypes: {
|
|
53
|
+
fill: PropTypes.Validator<string>;
|
|
54
|
+
};
|
|
55
|
+
};
|
|
56
|
+
export declare const Square: {
|
|
57
|
+
({ fill }: {
|
|
58
|
+
fill: any;
|
|
59
|
+
}): React.JSX.Element;
|
|
60
|
+
propTypes: {
|
|
61
|
+
fill: PropTypes.Validator<string>;
|
|
62
|
+
};
|
|
63
|
+
};
|
|
64
|
+
export declare const getStyles: (name: any, fg: any, bg: any) => {
|
|
65
|
+
bg: {
|
|
66
|
+
fill: any;
|
|
67
|
+
};
|
|
68
|
+
fg: {
|
|
69
|
+
fill: any;
|
|
70
|
+
};
|
|
71
|
+
};
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import e from "./sized.js";
|
|
2
|
+
import "react";
|
|
3
|
+
import t from "prop-types";
|
|
4
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
5
|
+
//#region src/icon-root.tsx
|
|
6
|
+
var r = ({ size: t, children: r, sx: i }) => /* @__PURE__ */ n(e, {
|
|
7
|
+
size: t,
|
|
8
|
+
children: /* @__PURE__ */ n("svg", {
|
|
9
|
+
preserveAspectRatio: "xMinYMin meet",
|
|
10
|
+
viewBox: "0 0 44 40",
|
|
11
|
+
style: {
|
|
12
|
+
enableBackground: "new 0 0 44 40",
|
|
13
|
+
...i
|
|
14
|
+
},
|
|
15
|
+
children: r
|
|
16
|
+
})
|
|
17
|
+
});
|
|
18
|
+
r.propTypes = {
|
|
19
|
+
size: t.oneOfType([t.string, t.number]),
|
|
20
|
+
children: t.oneOfType([t.arrayOf(t.node), t.node]).isRequired,
|
|
21
|
+
sx: t.object
|
|
22
|
+
};
|
|
23
|
+
var i = ({ fill: e }) => /* @__PURE__ */ n("polygon", {
|
|
24
|
+
points: "17.4,26.9 10.1,20.6 12.8,17.5 16.3,20.5 22.3,9.7 25.9,11.7",
|
|
25
|
+
fill: e
|
|
26
|
+
});
|
|
27
|
+
i.propTypes = { fill: t.string.isRequired };
|
|
28
|
+
var a = ({ fill: e }) => /* @__PURE__ */ n("polygon", {
|
|
29
|
+
transform: "translate(2, 0)",
|
|
30
|
+
points: "34.1,28.6 34.1,2.2 2,2.2 2,34.3 40.1,34.3",
|
|
31
|
+
fill: e
|
|
32
|
+
});
|
|
33
|
+
a.propTypes = { fill: t.string.isRequired };
|
|
34
|
+
var o = ({ fill: e }) => /* @__PURE__ */ n("path", {
|
|
35
|
+
transform: "translate(1, 0)",
|
|
36
|
+
d: "M31.2,29.1v-0.3c2.2-2.8,3.6-6.3,3.6-10.1c0-8.9-7.2-16.1-16.1-16.1c-8.8,0.1-16,7.3-16,16.2 s7.2,16.1,16.1,16.1h18.5L31.2,29.1z",
|
|
37
|
+
fill: e
|
|
38
|
+
});
|
|
39
|
+
o.propTypes = { fill: t.string.isRequired };
|
|
40
|
+
var s = ({ fill: e }) => /* @__PURE__ */ n("circle", {
|
|
41
|
+
transform: "translate(-3,0)",
|
|
42
|
+
cx: "23",
|
|
43
|
+
cy: "20.4",
|
|
44
|
+
r: "16",
|
|
45
|
+
fill: e
|
|
46
|
+
});
|
|
47
|
+
s.propTypes = { fill: t.string.isRequired };
|
|
48
|
+
var c = ({ fill: e }) => /* @__PURE__ */ n("rect", {
|
|
49
|
+
x: "3.6",
|
|
50
|
+
y: "4.1",
|
|
51
|
+
width: "32",
|
|
52
|
+
height: "32",
|
|
53
|
+
fill: e
|
|
54
|
+
});
|
|
55
|
+
c.propTypes = { fill: t.string.isRequired };
|
|
56
|
+
//#endregion
|
|
57
|
+
export { s as Circle, r as IconRoot, o as RoundFeedbackBox, c as Square, a as SquareFeedbackBox };
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @synced-from pie-lib/packages/icons/src/incorrect-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 Incorrect: {
|
|
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 Incorrect;
|
|
@@ -0,0 +1,71 @@
|
|
|
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/incorrect-icon.tsx
|
|
6
|
+
var i = ({ fill: e }) => /* @__PURE__ */ r("g", {
|
|
7
|
+
transform: "translate(0.5, 0.5)",
|
|
8
|
+
children: [/* @__PURE__ */ n("rect", {
|
|
9
|
+
x: "11",
|
|
10
|
+
y: "17.3",
|
|
11
|
+
transform: "matrix(0.7071 -0.7071 0.7071 0.7071 -7.852 19.2507)",
|
|
12
|
+
width: "16.6",
|
|
13
|
+
height: "3.7",
|
|
14
|
+
fill: e
|
|
15
|
+
}), /* @__PURE__ */ n("rect", {
|
|
16
|
+
x: "17.4",
|
|
17
|
+
y: "10.7",
|
|
18
|
+
transform: "matrix(0.7071 -0.7071 0.7071 0.7071 -7.8175 19.209)",
|
|
19
|
+
width: "3.7",
|
|
20
|
+
height: "16.6",
|
|
21
|
+
fill: e
|
|
22
|
+
})]
|
|
23
|
+
});
|
|
24
|
+
i.propTypes = { fill: t.string.isRequired };
|
|
25
|
+
var a = ({ fill: e }) => /* @__PURE__ */ r("g", {
|
|
26
|
+
transform: "translate(1,0)",
|
|
27
|
+
children: [
|
|
28
|
+
/* @__PURE__ */ n("rect", {
|
|
29
|
+
x: "21",
|
|
30
|
+
y: "12.9",
|
|
31
|
+
width: "3.7",
|
|
32
|
+
height: "4.7",
|
|
33
|
+
fill: e
|
|
34
|
+
}),
|
|
35
|
+
/* @__PURE__ */ n("rect", {
|
|
36
|
+
x: "12.7",
|
|
37
|
+
y: "12.9",
|
|
38
|
+
width: "3.7",
|
|
39
|
+
height: "4.7",
|
|
40
|
+
fill: e
|
|
41
|
+
}),
|
|
42
|
+
/* @__PURE__ */ n("rect", {
|
|
43
|
+
x: "12.2",
|
|
44
|
+
y: "22.5",
|
|
45
|
+
width: "13",
|
|
46
|
+
height: "3.3",
|
|
47
|
+
fill: e
|
|
48
|
+
})
|
|
49
|
+
]
|
|
50
|
+
});
|
|
51
|
+
a.propTypes = { fill: t.string.isRequired };
|
|
52
|
+
var o = e(i, a);
|
|
53
|
+
o.propTypes = {
|
|
54
|
+
iconSet: t.oneOf(["emoji", "check"]),
|
|
55
|
+
shape: t.oneOf(["round", "square"]),
|
|
56
|
+
category: t.oneOf(["feedback", void 0]),
|
|
57
|
+
open: t.bool,
|
|
58
|
+
fg: t.string,
|
|
59
|
+
bg: t.string,
|
|
60
|
+
size: t.oneOfType([t.string, t.number])
|
|
61
|
+
}, o.defaultProps = {
|
|
62
|
+
iconSet: "check",
|
|
63
|
+
shape: "round",
|
|
64
|
+
category: void 0,
|
|
65
|
+
open: !1,
|
|
66
|
+
fg: "#fcb733",
|
|
67
|
+
bg: "#fbf2e3",
|
|
68
|
+
size: 30
|
|
69
|
+
};
|
|
70
|
+
//#endregion
|
|
71
|
+
export { o as default };
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @synced-from pie-lib/packages/icons/src/index.js
|
|
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 Correct from './correct-icon.js';
|
|
10
|
+
import CorrectResponse from './correct-response-icon.js';
|
|
11
|
+
import Incorrect from './incorrect-icon.js';
|
|
12
|
+
import Instructions from './instructions-icon.js';
|
|
13
|
+
import LearnMore from './learn-more-icon.js';
|
|
14
|
+
import NothingSubmitted from './nothing-submitted-icon.js';
|
|
15
|
+
import PartiallyCorrect from './partially-correct-icon.js';
|
|
16
|
+
import ShowRationale from './show-rationale-icon.js';
|
|
17
|
+
export { Correct, CorrectResponse, Incorrect, Instructions, LearnMore, NothingSubmitted, PartiallyCorrect, ShowRationale, };
|