@pie-lib/icons 2.32.0-mui-update.0 → 2.34.0-mui-update.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/CHANGELOG.md +11 -50
- package/lib/correct-icon.js +11 -9
- package/lib/correct-icon.js.map +1 -1
- package/package.json +2 -2
- package/src/correct-icon.jsx +7 -7
package/CHANGELOG.md
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
-
# [2.
|
|
6
|
+
# [2.34.0-mui-update.0](https://github.com/pie-framework/pie-lib/compare/@pie-lib/icons@2.33.0-mui-update.0...@pie-lib/icons@2.34.0-mui-update.0) (2025-12-11)
|
|
7
7
|
|
|
8
8
|
**Note:** Version bump only for package @pie-lib/icons
|
|
9
9
|
|
|
@@ -11,23 +11,23 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
**Note:** Version bump only for package @pie-lib/icons
|
|
14
|
+
# [2.33.0-mui-update.0](https://github.com/pie-framework/pie-lib/compare/@pie-lib/icons@2.32.0-mui-update.0...@pie-lib/icons@2.33.0-mui-update.0) (2025-12-02)
|
|
17
15
|
|
|
18
16
|
|
|
17
|
+
### Bug Fixes
|
|
19
18
|
|
|
19
|
+
* **icons:** add necessary props to correct icon ([638ebf9](https://github.com/pie-framework/pie-lib/commit/638ebf9cfd4375f67233ad055cb269da6cf99454))
|
|
20
20
|
|
|
21
21
|
|
|
22
|
-
|
|
22
|
+
### Features
|
|
23
23
|
|
|
24
|
-
|
|
24
|
+
* sync latest changes from dev ([c936e9c](https://github.com/pie-framework/pie-lib/commit/c936e9c7f9e095e7d9b9805ac2bf72bd271e05f1))
|
|
25
25
|
|
|
26
26
|
|
|
27
27
|
|
|
28
28
|
|
|
29
29
|
|
|
30
|
-
|
|
30
|
+
## [2.24.1](https://github.com/pie-framework/pie-lib/compare/@pie-lib/icons@2.20.0...@pie-lib/icons@2.24.1) (2025-10-22)
|
|
31
31
|
|
|
32
32
|
**Note:** Version bump only for package @pie-lib/icons
|
|
33
33
|
|
|
@@ -35,7 +35,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
35
35
|
|
|
36
36
|
|
|
37
37
|
|
|
38
|
-
# [2.
|
|
38
|
+
# [2.24.0](https://github.com/pie-framework/pie-lib/compare/@pie-lib/icons@2.20.0...@pie-lib/icons@2.24.0) (2025-10-16)
|
|
39
39
|
|
|
40
40
|
**Note:** Version bump only for package @pie-lib/icons
|
|
41
41
|
|
|
@@ -43,7 +43,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
43
43
|
|
|
44
44
|
|
|
45
45
|
|
|
46
|
-
# [2.
|
|
46
|
+
# [2.23.0](https://github.com/pie-framework/pie-lib/compare/@pie-lib/icons@2.20.0...@pie-lib/icons@2.23.0) (2025-10-16)
|
|
47
47
|
|
|
48
48
|
**Note:** Version bump only for package @pie-lib/icons
|
|
49
49
|
|
|
@@ -51,7 +51,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
51
51
|
|
|
52
52
|
|
|
53
53
|
|
|
54
|
-
# [2.
|
|
54
|
+
# [2.22.0](https://github.com/pie-framework/pie-lib/compare/@pie-lib/icons@2.20.0...@pie-lib/icons@2.22.0) (2025-10-16)
|
|
55
55
|
|
|
56
56
|
**Note:** Version bump only for package @pie-lib/icons
|
|
57
57
|
|
|
@@ -59,7 +59,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
59
59
|
|
|
60
60
|
|
|
61
61
|
|
|
62
|
-
# [2.
|
|
62
|
+
# [2.21.0](https://github.com/pie-framework/pie-lib/compare/@pie-lib/icons@2.20.0...@pie-lib/icons@2.21.0) (2025-10-16)
|
|
63
63
|
|
|
64
64
|
**Note:** Version bump only for package @pie-lib/icons
|
|
65
65
|
|
|
@@ -67,45 +67,6 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
67
67
|
|
|
68
68
|
|
|
69
69
|
|
|
70
|
-
# [2.25.0-mui-update.0](https://github.com/pie-framework/pie-lib/compare/@pie-lib/icons@2.24.0-mui-update.0...@pie-lib/icons@2.25.0-mui-update.0) (2025-11-05)
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
### Bug Fixes
|
|
74
|
-
|
|
75
|
-
* icon rendering ([d20951d](https://github.com/pie-framework/pie-lib/commit/d20951da114ef6a3939a12d0ea5f195ebe372240))
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
# [2.24.0-mui-update.0](https://github.com/pie-framework/pie-lib/compare/@pie-lib/icons@2.23.0-mui-update.0...@pie-lib/icons@2.24.0-mui-update.0) (2025-11-03)
|
|
82
|
-
|
|
83
|
-
**Note:** Version bump only for package @pie-lib/icons
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
# [2.23.0-mui-update.0](https://github.com/pie-framework/pie-lib/compare/@pie-lib/icons@2.21.0-mui-update.0...@pie-lib/icons@2.23.0-mui-update.0) (2025-11-03)
|
|
90
|
-
|
|
91
|
-
**Note:** Version bump only for package @pie-lib/icons
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
# [2.21.0-mui-update.0](https://github.com/pie-framework/pie-lib/compare/@pie-lib/icons@2.20.0...@pie-lib/icons@2.21.0-mui-update.0) (2025-10-31)
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
### Features
|
|
101
|
-
|
|
102
|
-
* bump react and react-dom ([01dc19e](https://github.com/pie-framework/pie-lib/commit/01dc19e88bbc8d372c561d1511df1a82937d45af))
|
|
103
|
-
* packages/math-toolbar & packages/icons mui update PD-5268 ([8a18bc1](https://github.com/pie-framework/pie-lib/commit/8a18bc1a79cd3ca3baa7ff7a94b050ec20371649))
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
70
|
# [2.20.0](https://github.com/pie-framework/pie-lib/compare/@pie-lib/icons@2.4.43...@pie-lib/icons@2.20.0) (2025-09-25)
|
|
110
71
|
|
|
111
72
|
|
package/lib/correct-icon.js
CHANGED
|
@@ -8,8 +8,6 @@ exports["default"] = exports.Correct = void 0;
|
|
|
8
8
|
var _iconBase = _interopRequireDefault(require("./icon-base"));
|
|
9
9
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
10
10
|
var _react = _interopRequireDefault(require("react"));
|
|
11
|
-
var _styles = require("@mui/material/styles");
|
|
12
|
-
var _iconRoot = require("./icon-root");
|
|
13
11
|
// Emoji SVG
|
|
14
12
|
var Emoji = function Emoji(_ref) {
|
|
15
13
|
var fill = _ref.fill;
|
|
@@ -61,17 +59,21 @@ Correct.propTypes = {
|
|
|
61
59
|
iconSet: _propTypes["default"].oneOf(['emoji', 'check']),
|
|
62
60
|
shape: _propTypes["default"].oneOf(['round', 'square']),
|
|
63
61
|
category: _propTypes["default"].oneOf(['feedback', undefined]),
|
|
64
|
-
open: _propTypes["default"].bool
|
|
62
|
+
open: _propTypes["default"].bool,
|
|
63
|
+
fg: _propTypes["default"].string,
|
|
64
|
+
bg: _propTypes["default"].string,
|
|
65
|
+
size: _propTypes["default"].oneOfType([_propTypes["default"].string, _propTypes["default"].number])
|
|
65
66
|
};
|
|
66
67
|
Correct.defaultProps = {
|
|
67
68
|
iconSet: 'check',
|
|
68
69
|
shape: 'round',
|
|
69
70
|
category: undefined,
|
|
70
|
-
open: false
|
|
71
|
+
open: false,
|
|
72
|
+
fg: '#4aaf46',
|
|
73
|
+
// foreground color
|
|
74
|
+
bg: '#f8ffe2',
|
|
75
|
+
// background color
|
|
76
|
+
size: 30
|
|
71
77
|
};
|
|
72
|
-
|
|
73
|
-
// Optional: default colors
|
|
74
|
-
var styles = (0, _iconRoot.getStyles)('correct', '#4aaf46', '#f8ffe2');
|
|
75
|
-
var StyledCorrect = (0, _styles.styled)(Correct)(styles);
|
|
76
|
-
var _default = exports["default"] = StyledCorrect;
|
|
78
|
+
var _default = exports["default"] = Correct;
|
|
77
79
|
//# sourceMappingURL=correct-icon.js.map
|
package/lib/correct-icon.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"correct-icon.js","names":["_iconBase","_interopRequireDefault","require","_propTypes","_react","
|
|
1
|
+
{"version":3,"file":"correct-icon.js","names":["_iconBase","_interopRequireDefault","require","_propTypes","_react","Emoji","_ref","fill","createElement","transform","d","x","y","width","height","propTypes","PropTypes","string","isRequired","Check","_ref2","_ref2$x","_ref2$y","concat","points","number","Correct","exports","IconBase","iconSet","oneOf","shape","category","undefined","open","bool","fg","bg","size","oneOfType","defaultProps","_default"],"sources":["../src/correct-icon.jsx"],"sourcesContent":["import IconBase from './icon-base';\nimport PropTypes from 'prop-types';\nimport React from 'react';\n\n// Emoji SVG\nconst Emoji = ({ fill }) => (\n <g transform=\"translate(1, 0)\">\n <path\n 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\"\n fill={fill}\n />\n <rect x=\"21.1\" y=\"13.1\" width=\"3.7\" height=\"4.7\" fill={fill} />\n <rect x=\"12.7\" y=\"13.1\" width=\"3.7\" height=\"4.7\" fill={fill} />\n </g>\n);\n\nEmoji.propTypes = { fill: PropTypes.string.isRequired };\n\n// Check SVG\nconst Check = ({ fill, x = 0, y = 0 }) => (\n <polygon\n transform={`translate(${x}, ${y})`}\n 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\"\n fill={fill}\n />\n);\n\nCheck.propTypes = { fill: PropTypes.string.isRequired, x: PropTypes.number, y: PropTypes.number };\n\n// IconBase wrapper\nexport const Correct = IconBase(Check, Emoji);\n\nCorrect.propTypes = {\n iconSet: PropTypes.oneOf(['emoji', 'check']),\n shape: PropTypes.oneOf(['round', 'square']),\n category: PropTypes.oneOf(['feedback', undefined]),\n open: PropTypes.bool,\n fg: PropTypes.string,\n bg: PropTypes.string,\n size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),\n};\n\nCorrect.defaultProps = {\n iconSet: 'check',\n shape: 'round',\n category: undefined,\n open: false,\n fg: '#4aaf46', // foreground color\n bg: '#f8ffe2', // background color\n size: 30,\n};\n\nexport default Correct;\n"],"mappings":";;;;;;;AAAA,IAAAA,SAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,UAAA,GAAAF,sBAAA,CAAAC,OAAA;AACA,IAAAE,MAAA,GAAAH,sBAAA,CAAAC,OAAA;AAEA;AACA,IAAMG,KAAK,GAAG,SAARA,KAAKA,CAAAC,IAAA;EAAA,IAAMC,IAAI,GAAAD,IAAA,CAAJC,IAAI;EAAA,oBACnBH,MAAA,YAAAI,aAAA;IAAGC,SAAS,EAAC;EAAiB,gBAC5BL,MAAA,YAAAI,aAAA;IACEE,CAAC,EAAC,uHACmC;IACrCH,IAAI,EAAEA;EAAK,CACZ,CAAC,eACFH,MAAA,YAAAI,aAAA;IAAMG,CAAC,EAAC,MAAM;IAACC,CAAC,EAAC,MAAM;IAACC,KAAK,EAAC,KAAK;IAACC,MAAM,EAAC,KAAK;IAACP,IAAI,EAAEA;EAAK,CAAE,CAAC,eAC/DH,MAAA,YAAAI,aAAA;IAAMG,CAAC,EAAC,MAAM;IAACC,CAAC,EAAC,MAAM;IAACC,KAAK,EAAC,KAAK;IAACC,MAAM,EAAC,KAAK;IAACP,IAAI,EAAEA;EAAK,CAAE,CAC7D,CAAC;AAAA,CACL;AAEDF,KAAK,CAACU,SAAS,GAAG;EAAER,IAAI,EAAES,qBAAS,CAAC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qBAAS,CAACC,MAAM,EAAED,qBAAS,CAACS,MAAM,CAAC;AAChE,CAAC;AAEDC,OAAO,CAACc,YAAY,GAAG;EACrBX,OAAO,EAAE,OAAO;EAChBE,KAAK,EAAE,OAAO;EACdC,QAAQ,EAAEC,SAAS;EACnBC,IAAI,EAAE,KAAK;EACXE,EAAE,EAAE,SAAS;EAAE;EACfC,EAAE,EAAE,SAAS;EAAE;EACfC,IAAI,EAAE;AACR,CAAC;AAAC,IAAAG,QAAA,GAAAd,OAAA,cAEaD,OAAO","ignoreList":[]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pie-lib/icons",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.34.0-mui-update.0",
|
|
4
4
|
"description": "Some simple icons",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"module": "src/index.js",
|
|
@@ -28,5 +28,5 @@
|
|
|
28
28
|
"publishConfig": {
|
|
29
29
|
"access": "public"
|
|
30
30
|
},
|
|
31
|
-
"gitHead": "
|
|
31
|
+
"gitHead": "ca668571e7896ba16dd21c2ef58b7d90c84230f6"
|
|
32
32
|
}
|
package/src/correct-icon.jsx
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import IconBase from './icon-base';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import React from 'react';
|
|
4
|
-
import { styled } from '@mui/material/styles';
|
|
5
|
-
import { getStyles } from './icon-root';
|
|
6
4
|
|
|
7
5
|
// Emoji SVG
|
|
8
6
|
const Emoji = ({ fill }) => (
|
|
@@ -38,6 +36,9 @@ Correct.propTypes = {
|
|
|
38
36
|
shape: PropTypes.oneOf(['round', 'square']),
|
|
39
37
|
category: PropTypes.oneOf(['feedback', undefined]),
|
|
40
38
|
open: PropTypes.bool,
|
|
39
|
+
fg: PropTypes.string,
|
|
40
|
+
bg: PropTypes.string,
|
|
41
|
+
size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
|
|
41
42
|
};
|
|
42
43
|
|
|
43
44
|
Correct.defaultProps = {
|
|
@@ -45,10 +46,9 @@ Correct.defaultProps = {
|
|
|
45
46
|
shape: 'round',
|
|
46
47
|
category: undefined,
|
|
47
48
|
open: false,
|
|
49
|
+
fg: '#4aaf46', // foreground color
|
|
50
|
+
bg: '#f8ffe2', // background color
|
|
51
|
+
size: 30,
|
|
48
52
|
};
|
|
49
53
|
|
|
50
|
-
|
|
51
|
-
const styles = getStyles('correct', '#4aaf46', '#f8ffe2');
|
|
52
|
-
const StyledCorrect = styled(Correct)(styles);
|
|
53
|
-
|
|
54
|
-
export default StyledCorrect;
|
|
54
|
+
export default Correct;
|