@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.
- package/CHANGELOG.json +1 -0
- package/CHANGELOG.md +573 -0
- package/LICENSE.md +5 -0
- package/lib/correct-icon.js +79 -0
- package/lib/correct-icon.js.map +1 -0
- package/lib/correct-response-icon.js +125 -0
- package/lib/correct-response-icon.js.map +1 -0
- package/lib/icon-base.js +93 -0
- package/lib/icon-base.js.map +1 -0
- package/lib/icon-root.js +106 -0
- package/lib/icon-root.js.map +1 -0
- package/lib/incorrect-icon.js +88 -0
- package/lib/incorrect-icon.js.map +1 -0
- package/lib/index.js +63 -0
- package/lib/index.js.map +1 -0
- package/lib/instructions-icon.js +205 -0
- package/lib/instructions-icon.js.map +1 -0
- package/lib/learn-more-icon.js +104 -0
- package/lib/learn-more-icon.js.map +1 -0
- package/lib/nothing-submitted-icon.js +175 -0
- package/lib/nothing-submitted-icon.js.map +1 -0
- package/lib/partially-correct-icon.js +81 -0
- package/lib/partially-correct-icon.js.map +1 -0
- package/lib/show-rationale-icon.js +187 -0
- package/lib/show-rationale-icon.js.map +1 -0
- package/lib/sized.js +32 -0
- package/lib/sized.js.map +1 -0
- package/package.json +22 -26
- package/src/__tests__/index.test.js +305 -0
- package/src/correct-icon.jsx +54 -0
- package/src/correct-response-icon.jsx +106 -0
- package/src/icon-base.jsx +55 -0
- package/src/icon-root.jsx +53 -0
- package/src/incorrect-icon.jsx +67 -0
- package/src/index.js +19 -0
- package/src/instructions-icon.jsx +189 -0
- package/src/learn-more-icon.jsx +94 -0
- package/src/nothing-submitted-icon.jsx +136 -0
- package/src/partially-correct-icon.jsx +56 -0
- package/src/show-rationale-icon.jsx +145 -0
- package/src/sized.jsx +25 -0
- package/dist/correct-icon.d.ts +0 -78
- package/dist/correct-icon.js +0 -59
- package/dist/correct-response-icon.d.ts +0 -24
- package/dist/correct-response-icon.js +0 -96
- package/dist/icon-base.d.ts +0 -78
- package/dist/icon-base.js +0 -40
- package/dist/icon-root.d.ts +0 -71
- package/dist/icon-root.js +0 -57
- package/dist/incorrect-icon.d.ts +0 -78
- package/dist/incorrect-icon.js +0 -71
- package/dist/index.d.ts +0 -17
- package/dist/index.js +0 -9
- package/dist/instructions-icon.d.ts +0 -13
- package/dist/instructions-icon.js +0 -179
- package/dist/learn-more-icon.d.ts +0 -18
- package/dist/learn-more-icon.js +0 -82
- package/dist/nothing-submitted-icon.d.ts +0 -14
- package/dist/nothing-submitted-icon.js +0 -92
- package/dist/partially-correct-icon.d.ts +0 -78
- package/dist/partially-correct-icon.js +0 -64
- package/dist/show-rationale-icon.d.ts +0 -13
- package/dist/show-rationale-icon.js +0 -136
- package/dist/sized.d.ts +0 -22
- package/dist/sized.js +0 -19
package/dist/icon-base.d.ts
DELETED
|
@@ -1,78 +0,0 @@
|
|
|
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;
|
package/dist/icon-base.js
DELETED
|
@@ -1,40 +0,0 @@
|
|
|
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 };
|
package/dist/icon-root.d.ts
DELETED
|
@@ -1,71 +0,0 @@
|
|
|
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
|
-
};
|
package/dist/icon-root.js
DELETED
|
@@ -1,57 +0,0 @@
|
|
|
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 };
|
package/dist/incorrect-icon.d.ts
DELETED
|
@@ -1,78 +0,0 @@
|
|
|
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;
|
package/dist/incorrect-icon.js
DELETED
|
@@ -1,71 +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/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
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
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, };
|
package/dist/index.js
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
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 };
|
|
@@ -1,13 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,179 +0,0 @@
|
|
|
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 };
|
|
@@ -1,18 +0,0 @@
|
|
|
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;
|