@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/learn-more-icon.js
DELETED
|
@@ -1,82 +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/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 };
|
|
@@ -1,14 +0,0 @@
|
|
|
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;
|
|
@@ -1,92 +0,0 @@
|
|
|
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 };
|
|
@@ -1,78 +0,0 @@
|
|
|
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;
|
|
@@ -1,64 +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/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 };
|
|
@@ -1,13 +0,0 @@
|
|
|
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;
|
|
@@ -1,136 +0,0 @@
|
|
|
1
|
-
import { normalizeSize as 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/show-rationale-icon.tsx
|
|
6
|
-
var a = ({ fill: e }) => /* @__PURE__ */ i("g", { children: [/* @__PURE__ */ r("rect", {
|
|
7
|
-
x: "-115",
|
|
8
|
-
y: "136.7",
|
|
9
|
-
width: "3",
|
|
10
|
-
height: "3",
|
|
11
|
-
fill: e
|
|
12
|
-
}), /* @__PURE__ */ r("polygon", {
|
|
13
|
-
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",
|
|
14
|
-
fill: e
|
|
15
|
-
})] });
|
|
16
|
-
a.propTypes = { fill: n.string.isRequired };
|
|
17
|
-
var o = ({ fill: e }) => /* @__PURE__ */ r("path", {
|
|
18
|
-
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\n 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",
|
|
19
|
-
fill: e
|
|
20
|
-
});
|
|
21
|
-
o.propTypes = { fill: n.string.isRequired };
|
|
22
|
-
var s = ({ fill: e = "#FFFFFF" }) => /* @__PURE__ */ i("g", { children: [
|
|
23
|
-
/* @__PURE__ */ r("path", {
|
|
24
|
-
style: {
|
|
25
|
-
fill: "#D0CAC5",
|
|
26
|
-
stroke: "#E6E3E0",
|
|
27
|
-
strokeWidth: .75,
|
|
28
|
-
strokeMiterlimit: 10
|
|
29
|
-
},
|
|
30
|
-
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"
|
|
31
|
-
}),
|
|
32
|
-
/* @__PURE__ */ r("path", {
|
|
33
|
-
style: {
|
|
34
|
-
fill: "#B3ABA4",
|
|
35
|
-
stroke: "#CDC7C2",
|
|
36
|
-
strokeWidth: .5,
|
|
37
|
-
strokeMiterlimit: 10
|
|
38
|
-
},
|
|
39
|
-
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"
|
|
40
|
-
}),
|
|
41
|
-
/* @__PURE__ */ r("circle", {
|
|
42
|
-
cx: "-113",
|
|
43
|
-
cy: "144",
|
|
44
|
-
r: "14",
|
|
45
|
-
fill: e
|
|
46
|
-
})
|
|
47
|
-
] });
|
|
48
|
-
s.propTypes = { fill: n.string };
|
|
49
|
-
var c = ({ children: t, size: n }) => {
|
|
50
|
-
let i = e(n);
|
|
51
|
-
return /* @__PURE__ */ r("div", {
|
|
52
|
-
style: {
|
|
53
|
-
height: i,
|
|
54
|
-
width: i,
|
|
55
|
-
display: "inline-block",
|
|
56
|
-
position: "relative"
|
|
57
|
-
},
|
|
58
|
-
children: /* @__PURE__ */ r("svg", {
|
|
59
|
-
preserveAspectRatio: "xMinYMin meet",
|
|
60
|
-
viewBox: "-129 128 34 34",
|
|
61
|
-
children: t
|
|
62
|
-
})
|
|
63
|
-
});
|
|
64
|
-
};
|
|
65
|
-
c.propTypes = {
|
|
66
|
-
children: n.oneOfType([n.arrayOf(n.node), n.node]).isRequired,
|
|
67
|
-
size: n.oneOfType([n.string, n.number])
|
|
68
|
-
};
|
|
69
|
-
var l = class extends t.Component {
|
|
70
|
-
render() {
|
|
71
|
-
let { iconSet: e, open: t, fg: n = "#1a9cff", bg: l = "#bce2ff", border: u = "#bbe3fd" } = this.props, d = /* @__PURE__ */ r(a, { fill: n }), f = {
|
|
72
|
-
check: /* @__PURE__ */ i(c, {
|
|
73
|
-
size: this.props.size,
|
|
74
|
-
children: [
|
|
75
|
-
/* @__PURE__ */ r(s, {}),
|
|
76
|
-
d,
|
|
77
|
-
/* @__PURE__ */ r(o, { fill: u })
|
|
78
|
-
]
|
|
79
|
-
}),
|
|
80
|
-
emoji: /* @__PURE__ */ i(c, {
|
|
81
|
-
size: this.props.size,
|
|
82
|
-
children: [
|
|
83
|
-
/* @__PURE__ */ r(s, {}),
|
|
84
|
-
d,
|
|
85
|
-
/* @__PURE__ */ r(o, { fill: u })
|
|
86
|
-
]
|
|
87
|
-
}),
|
|
88
|
-
open: {
|
|
89
|
-
check: /* @__PURE__ */ i(c, {
|
|
90
|
-
size: this.props.size,
|
|
91
|
-
children: [
|
|
92
|
-
/* @__PURE__ */ r("circle", {
|
|
93
|
-
cx: "-113",
|
|
94
|
-
cy: "144",
|
|
95
|
-
r: "14",
|
|
96
|
-
fill: "#FFFFFF"
|
|
97
|
-
}),
|
|
98
|
-
/* @__PURE__ */ r(a, { fill: l }),
|
|
99
|
-
/* @__PURE__ */ r(o, { fill: "#FFFFFF" })
|
|
100
|
-
]
|
|
101
|
-
}),
|
|
102
|
-
emoji: /* @__PURE__ */ i(c, {
|
|
103
|
-
size: this.props.size,
|
|
104
|
-
children: [
|
|
105
|
-
/* @__PURE__ */ r("circle", {
|
|
106
|
-
cx: "-113",
|
|
107
|
-
cy: "144",
|
|
108
|
-
r: "14",
|
|
109
|
-
fill: "#FFFFFF"
|
|
110
|
-
}),
|
|
111
|
-
/* @__PURE__ */ r(a, { fill: l }),
|
|
112
|
-
/* @__PURE__ */ r(o, { fill: u })
|
|
113
|
-
]
|
|
114
|
-
})
|
|
115
|
-
}
|
|
116
|
-
};
|
|
117
|
-
return t === !0 ? f.open[e] : f[e];
|
|
118
|
-
}
|
|
119
|
-
};
|
|
120
|
-
l.propTypes = {
|
|
121
|
-
iconSet: n.oneOf(["emoji", "check"]),
|
|
122
|
-
open: n.bool,
|
|
123
|
-
fg: n.string,
|
|
124
|
-
bg: n.string,
|
|
125
|
-
border: n.string,
|
|
126
|
-
size: n.oneOfType([n.string, n.number])
|
|
127
|
-
}, l.defaultProps = {
|
|
128
|
-
iconSet: "check",
|
|
129
|
-
open: !1,
|
|
130
|
-
fg: "#1a9cff",
|
|
131
|
-
bg: "#bce2ff",
|
|
132
|
-
border: "#bbe3fd",
|
|
133
|
-
size: 30
|
|
134
|
-
};
|
|
135
|
-
//#endregion
|
|
136
|
-
export { l as default };
|
package/dist/sized.d.ts
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @synced-from pie-lib/packages/icons/src/sized.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
|
-
declare const Sized: {
|
|
13
|
-
({ size, children }: {
|
|
14
|
-
size: any;
|
|
15
|
-
children: any;
|
|
16
|
-
}): React.JSX.Element;
|
|
17
|
-
propTypes: {
|
|
18
|
-
size: PropTypes.Requireable<number>;
|
|
19
|
-
children: PropTypes.Validator<NonNullable<NonNullable<PropTypes.ReactNodeLike>>>;
|
|
20
|
-
};
|
|
21
|
-
};
|
|
22
|
-
export default Sized;
|
package/dist/sized.js
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import "react";
|
|
2
|
-
import e from "prop-types";
|
|
3
|
-
import { jsx as t } from "react/jsx-runtime";
|
|
4
|
-
//#region src/sized.tsx
|
|
5
|
-
var n = (e) => typeof e == "string" ? e : typeof e == "number" ? `${e}px` : "30px", r = ({ size: e, children: r }) => (e = n(e), /* @__PURE__ */ t("div", {
|
|
6
|
-
style: {
|
|
7
|
-
height: e,
|
|
8
|
-
width: e,
|
|
9
|
-
display: "inline-block",
|
|
10
|
-
position: "relative"
|
|
11
|
-
},
|
|
12
|
-
children: r
|
|
13
|
-
}));
|
|
14
|
-
r.propTypes = {
|
|
15
|
-
size: e.number,
|
|
16
|
-
children: e.oneOfType([e.arrayOf(e.node), e.node]).isRequired
|
|
17
|
-
};
|
|
18
|
-
//#endregion
|
|
19
|
-
export { r as default, n as normalizeSize };
|