@occmundial/occ-atomic 1.17.0 → 1.18.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 +13 -0
- package/build/Pill/Pill.js +1 -1
- package/build/TextField/TextField.js +1 -1
- package/build/Tip/Tip.js +1 -1
- package/build/Toaster/Toast/Toast.js +2 -2
- package/build/subatomic/icons/warning.js +23 -0
- package/build/subatomic/icons/warningSolid.js +23 -0
- package/build/subatomic/icons.js +6 -9
- package/package.json +7 -7
package/CHANGELOG.md
CHANGED
@@ -1,3 +1,16 @@
|
|
1
|
+
# [1.18.0](https://github.com/occmundial/occ-atomic/compare/v1.17.0...v1.18.0) (2021-10-08)
|
2
|
+
|
3
|
+
|
4
|
+
### Bug Fixes
|
5
|
+
|
6
|
+
* Rename `warning` icon dependencies ([a91f94c](https://github.com/occmundial/occ-atomic/commit/a91f94c892ccdb87397528ff193121541f1cfba9))
|
7
|
+
* Rename old `warning` icon to `warningSolid` ([9692465](https://github.com/occmundial/occ-atomic/commit/9692465c9a395464bd8addb42568b6bc5fa7cf19))
|
8
|
+
|
9
|
+
|
10
|
+
### Features
|
11
|
+
|
12
|
+
* Add new `warning` Icon ([06780ad](https://github.com/occmundial/occ-atomic/commit/06780adf42f8da96037ef7df4b9b2c8b7d045c62))
|
13
|
+
|
1
14
|
# [1.17.0](https://github.com/occmundial/occ-atomic/compare/v1.16.0...v1.17.0) (2021-10-07)
|
2
15
|
|
3
16
|
|
package/build/Pill/Pill.js
CHANGED
@@ -184,7 +184,7 @@ var Pill = /*#__PURE__*/function (_Component) {
|
|
184
184
|
}, assistiveText && /*#__PURE__*/_react["default"].createElement("label", {
|
185
185
|
className: "".concat(classes.label, " ").concat(classes.left, " ").concat(realStatus == 'error' ? classes.errorAssistiveText : classes.assistiveText)
|
186
186
|
}, realStatus == 'error' ? /*#__PURE__*/_react["default"].createElement(_Icon["default"], {
|
187
|
-
iconName: "
|
187
|
+
iconName: "warningSolid",
|
188
188
|
width: 14,
|
189
189
|
height: 14,
|
190
190
|
className: classes.errorIcon
|
@@ -416,7 +416,7 @@ var TextField = /*#__PURE__*/function (_React$Component) {
|
|
416
416
|
}, assistiveText && /*#__PURE__*/_react["default"].createElement("label", {
|
417
417
|
className: "".concat(classes.label, " ").concat(classes.left, " ").concat(realStatus == 'error' ? classes.errorAssistiveText : classes.assistiveText)
|
418
418
|
}, realStatus == 'error' ? /*#__PURE__*/_react["default"].createElement(_Icon["default"], {
|
419
|
-
iconName: "
|
419
|
+
iconName: "warningSolid",
|
420
420
|
width: _iconSizes["default"].tiny,
|
421
421
|
height: _iconSizes["default"].tiny,
|
422
422
|
className: classes.errorIcon
|
package/build/Tip/Tip.js
CHANGED
@@ -36,7 +36,7 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
36
36
|
var boldRegex = /\*(.*?)\*/g;
|
37
37
|
var icons = {
|
38
38
|
info: 'infoSolid',
|
39
|
-
warning: '
|
39
|
+
warning: 'warningSolid',
|
40
40
|
success: 'checkSolid',
|
41
41
|
error: 'crossSolid',
|
42
42
|
promote: null
|
@@ -43,7 +43,7 @@ var Toast = function Toast(_ref) {
|
|
43
43
|
|
44
44
|
case 'error':
|
45
45
|
return {
|
46
|
-
icon: '
|
46
|
+
icon: 'warningSolid',
|
47
47
|
color: _colors["default"].bgWhite
|
48
48
|
};
|
49
49
|
|
@@ -55,7 +55,7 @@ var Toast = function Toast(_ref) {
|
|
55
55
|
|
56
56
|
case 'warning':
|
57
57
|
return {
|
58
|
-
icon: '
|
58
|
+
icon: 'warningSolid',
|
59
59
|
color: _colors["default"].grey900
|
60
60
|
};
|
61
61
|
}
|
@@ -0,0 +1,23 @@
|
|
1
|
+
"use strict";
|
2
|
+
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
4
|
+
value: true
|
5
|
+
});
|
6
|
+
exports["default"] = void 0;
|
7
|
+
|
8
|
+
var _colors = _interopRequireDefault(require("../colors"));
|
9
|
+
|
10
|
+
var _spacing = _interopRequireDefault(require("../spacing"));
|
11
|
+
|
12
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
13
|
+
|
14
|
+
var _default = {
|
15
|
+
width: _spacing["default"].base,
|
16
|
+
height: _spacing["default"].base,
|
17
|
+
display: 'inline-block',
|
18
|
+
icon: function icon() {
|
19
|
+
var color = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [_colors["default"].grey900];
|
20
|
+
return "<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" x=\"0px\" y=\"0px\"\n viewBox=\"0 0 24 24\" style=\"enable-background:new 0 0 24 24;\" xml:space=\"preserve\">\n <path fill=\"".concat(color[0], "\" fill-rule=\"evenodd\" d=\"M19.75,19.07,12,3.55,4.22,19.07Zm-6-16.42a2,2,0,0,0-3.58,0L2.43,18.18a2,2,0,0,0,1.79,2.89H19.75a2,2,0,0,0,1.79-2.89ZM11,13.57V9.07h2v4.5Zm0,1.5v2h2v-2Z\"/>\n </svg>");
|
21
|
+
}
|
22
|
+
};
|
23
|
+
exports["default"] = _default;
|
@@ -0,0 +1,23 @@
|
|
1
|
+
"use strict";
|
2
|
+
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
4
|
+
value: true
|
5
|
+
});
|
6
|
+
exports["default"] = void 0;
|
7
|
+
|
8
|
+
var _colors = _interopRequireDefault(require("../colors"));
|
9
|
+
|
10
|
+
var _spacing = _interopRequireDefault(require("../spacing"));
|
11
|
+
|
12
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
13
|
+
|
14
|
+
var _default = {
|
15
|
+
width: _spacing["default"].base,
|
16
|
+
height: _spacing["default"].base,
|
17
|
+
display: 'inline-block',
|
18
|
+
icon: function icon() {
|
19
|
+
var color = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [_colors["default"].error];
|
20
|
+
return "<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" x=\"0px\" y=\"0px\"\n viewBox=\"0 0 24 24\" style=\"enable-background:new 0 0 24 24;\" xml:space=\"preserve\">\n <path fill=\"".concat(color[0], "\" d=\"M12,3c0.2,0,0.5,0.1,0.6,0.4l8.3,16.5c0.2,0.5-0.1,1.1-0.6,1.1H3.7c-0.5,0-0.8-0.6-0.6-1.1l8.3-16.5C11.5,3.1,11.7,3,12,3z\n M12,17c-0.6,0-1,0.4-1,1s0.4,1,1,1c0.6,0,1-0.4,1-1S12.6,17,12,17z M11,11v4c0,0.6,0.4,1,1,1c0.6,0,1-0.4,1-1v-4c0-0.6-0.4-1-1-1\n C11.4,10,11,10.4,11,11z\"/>\n </svg>");
|
21
|
+
}
|
22
|
+
};
|
23
|
+
exports["default"] = _default;
|
package/build/subatomic/icons.js
CHANGED
@@ -221,6 +221,10 @@ var _webSiteSolid = _interopRequireDefault(require("./icons/webSiteSolid"));
|
|
221
221
|
|
222
222
|
var _moreOptionsHorizontal = _interopRequireDefault(require("./icons/moreOptionsHorizontal"));
|
223
223
|
|
224
|
+
var _warning = _interopRequireDefault(require("./icons/warning"));
|
225
|
+
|
226
|
+
var _warningSolid = _interopRequireDefault(require("./icons/warningSolid"));
|
227
|
+
|
224
228
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
225
229
|
|
226
230
|
var _default = {
|
@@ -342,6 +346,8 @@ var _default = {
|
|
342
346
|
webSite: _webSite["default"],
|
343
347
|
webSiteSolid: _webSiteSolid["default"],
|
344
348
|
moreOptionsHorizontal: _moreOptionsHorizontal["default"],
|
349
|
+
warning: _warning["default"],
|
350
|
+
warningSolid: _warningSolid["default"],
|
345
351
|
occatomic: {
|
346
352
|
width: '45px',
|
347
353
|
height: '45px',
|
@@ -379,15 +385,6 @@ var _default = {
|
|
379
385
|
return "<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" x=\"0px\" y=\"0px\"\n \t viewBox=\"0 0 24 24\" style=\"enable-background:new 0 0 24 24;\" xml:space=\"preserve\">\n <polygon fill=\"".concat(color[0], "\" points=\"5.4,4 4,5.4 10.7,12.1 4.2,18.6 5.6,20 12.1,13.5 18.4,19.8 19.8,18.4 13.5,12.1 20,5.6 18.6,4.2\n \t12.1,10.7 \"/>\n </svg>");
|
380
386
|
}
|
381
387
|
},
|
382
|
-
warning: {
|
383
|
-
width: '24px',
|
384
|
-
height: '24px',
|
385
|
-
display: 'inline-block',
|
386
|
-
icon: function icon() {
|
387
|
-
var color = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [_colors["default"].error];
|
388
|
-
return "<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" x=\"0px\" y=\"0px\"\n \t viewBox=\"0 0 24 24\" style=\"enable-background:new 0 0 24 24;\" xml:space=\"preserve\">\n <path fill=\"".concat(color[0], "\" d=\"M12,3c0.2,0,0.5,0.1,0.6,0.4l8.3,16.5c0.2,0.5-0.1,1.1-0.6,1.1H3.7c-0.5,0-0.8-0.6-0.6-1.1l8.3-16.5C11.5,3.1,11.7,3,12,3z\n \t M12,17c-0.6,0-1,0.4-1,1s0.4,1,1,1c0.6,0,1-0.4,1-1S12.6,17,12,17z M11,11v4c0,0.6,0.4,1,1,1c0.6,0,1-0.4,1-1v-4c0-0.6-0.4-1-1-1\n \tC11.4,10,11,10.4,11,11z\"/>\n </svg>");
|
389
|
-
}
|
390
|
-
},
|
391
388
|
moreOptions: {
|
392
389
|
width: '24px',
|
393
390
|
height: '24px',
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@occmundial/occ-atomic",
|
3
|
-
"version": "1.
|
3
|
+
"version": "1.18.0",
|
4
4
|
"description": "Collection of shareable styled React components for OCC applications.",
|
5
5
|
"homepage": "http://occmundial.github.io/occ-atomic",
|
6
6
|
"main": "build/index.js",
|
@@ -20,7 +20,7 @@
|
|
20
20
|
"lint:watch": "npm run lint -- --watch",
|
21
21
|
"prepare": "npm run build && husky install",
|
22
22
|
"predeploy": "npm run build:bundle",
|
23
|
-
"deploy": "
|
23
|
+
"deploy": "node scripts/deploy.js",
|
24
24
|
"semantic-release": "semantic-release"
|
25
25
|
},
|
26
26
|
"repository": {
|
@@ -54,8 +54,8 @@
|
|
54
54
|
"@babel/preset-react": "^7.0.0",
|
55
55
|
"@commitlint/cli": "13.1.0",
|
56
56
|
"@commitlint/config-angular": "13.1.0",
|
57
|
-
"@semantic-release/changelog": "
|
58
|
-
"@semantic-release/git": "
|
57
|
+
"@semantic-release/changelog": "6.0.0",
|
58
|
+
"@semantic-release/git": "10.0.0",
|
59
59
|
"babel-core": "^7.0.0-bridge.0",
|
60
60
|
"babel-eslint": "^9.0.0",
|
61
61
|
"babel-jest": "^27.2.1",
|
@@ -71,7 +71,7 @@
|
|
71
71
|
"eslint-plugin-jsx-a11y": "^6.0.2",
|
72
72
|
"eslint-plugin-react": "^7.5.1",
|
73
73
|
"eslint-watch": "^7.0.0",
|
74
|
-
"gh-pages": "^
|
74
|
+
"gh-pages": "^3.2.3",
|
75
75
|
"husky": "^7.0.0",
|
76
76
|
"jest": "^27.2.1",
|
77
77
|
"jsdom": "^11.11.0",
|
@@ -85,7 +85,7 @@
|
|
85
85
|
"react-dom": "^16.4.1",
|
86
86
|
"react-meta-tags": "^0.7.4",
|
87
87
|
"react-test-renderer": "^16.3.1",
|
88
|
-
"semantic-release": "
|
88
|
+
"semantic-release": "18.0.0",
|
89
89
|
"style-loader": "^0.21.0",
|
90
90
|
"terser-webpack-plugin": "^5.1.1",
|
91
91
|
"webpack": "^5.32.0",
|
@@ -97,7 +97,7 @@
|
|
97
97
|
"hex-rgba": "^1.0.2",
|
98
98
|
"idx": "^2.5.6",
|
99
99
|
"jquery": "^3.2.1",
|
100
|
-
"lodash": "^4.17.
|
100
|
+
"lodash": "^4.17.21",
|
101
101
|
"natives": "1.1.6",
|
102
102
|
"react-jss": "8.6.0",
|
103
103
|
"react-text-mask": "^5.4.3",
|