@redhat-cloud-services/frontend-components 3.8.8 → 3.8.9
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/InsightsLabel/InsightsLabel.js +3 -3
- package/InsightsLabel/InsightsLabel.js.map +1 -1
- package/InsightsLabel/index.d.ts +0 -1
- package/InsightsLabel/index.js +1 -3
- package/InsightsLabel/index.js.map +1 -1
- package/esm/InsightsLabel/InsightsLabel.js +2 -2
- package/esm/InsightsLabel/InsightsLabel.js.map +1 -1
- package/esm/InsightsLabel/index.js +0 -1
- package/esm/InsightsLabel/index.js.map +1 -1
- package/esm/index.css +0 -9
- package/esm/index.scss +0 -1
- package/index.css +0 -9
- package/index.scss +0 -1
- package/package.json +2 -2
- package/InsightsLabel/CriticalIcon.d.ts +0 -3
- package/InsightsLabel/CriticalIcon.js +0 -11
- package/InsightsLabel/CriticalIcon.js.map +0 -1
- package/InsightsLabel/critical-icon.css +0 -8
- package/InsightsLabel/critical-icon.scss +0 -8
- package/esm/InsightsLabel/CriticalIcon.js +0 -6
- package/esm/InsightsLabel/CriticalIcon.js.map +0 -1
- package/esm/InsightsLabel/critical-icon.css +0 -8
- package/esm/InsightsLabel/critical-icon.scss +0 -8
|
@@ -28,16 +28,16 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
28
28
|
require("./labels.css");
|
|
29
29
|
var react_icons_1 = require("@patternfly/react-icons");
|
|
30
30
|
var react_icons_2 = require("@patternfly/react-icons");
|
|
31
|
-
var CriticalIcon_1 = __importDefault(require("./CriticalIcon"));
|
|
32
31
|
var react_icons_3 = require("@patternfly/react-icons");
|
|
32
|
+
var react_icons_4 = require("@patternfly/react-icons");
|
|
33
33
|
var react_core_1 = require("@patternfly/react-core");
|
|
34
34
|
var react_1 = __importDefault(require("react"));
|
|
35
35
|
var classnames_1 = __importDefault(require("classnames"));
|
|
36
36
|
var VALUE_TO_STATE = {
|
|
37
37
|
1: { icon: react_1.default.createElement(react_icons_1.AngleDoubleDownIcon, null), text: 'Low' },
|
|
38
|
-
2: { icon: react_1.default.createElement(
|
|
38
|
+
2: { icon: react_1.default.createElement(react_icons_4.EqualsIcon, null), text: 'Moderate' },
|
|
39
39
|
3: { icon: react_1.default.createElement(react_icons_2.AngleDoubleUpIcon, null), text: 'Important' },
|
|
40
|
-
4: { icon: react_1.default.createElement(
|
|
40
|
+
4: { icon: react_1.default.createElement(react_icons_3.CriticalRiskIcon, null), text: 'Critical' },
|
|
41
41
|
};
|
|
42
42
|
var InsightsLabel = function (_a) {
|
|
43
43
|
var _b = _a.value, value = _b === void 0 ? 1 : _b, text = _a.text, hideIcon = _a.hideIcon, className = _a.className, rest = _a.rest, props = __rest(_a, ["value", "text", "hideIcon", "className", "rest"]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InsightsLabel.js","sourceRoot":"","sources":["../src/InsightsLabel/InsightsLabel.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yBAAuB;AAEvB,uDAA8D;AAC9D,uDAA4D;AAC5D,
|
|
1
|
+
{"version":3,"file":"InsightsLabel.js","sourceRoot":"","sources":["../src/InsightsLabel/InsightsLabel.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yBAAuB;AAEvB,uDAA8D;AAC9D,uDAA4D;AAC5D,uDAA2D;AAC3D,uDAAqD;AACrD,qDAA2D;AAC3D,gDAA0B;AAC1B,0DAAoC;AAQpC,IAAM,cAAc,GAA8B;IAChD,CAAC,EAAE,EAAE,IAAI,EAAE,8BAAC,iCAAmB,OAAG,EAAE,IAAI,EAAE,KAAK,EAAE;IACjD,CAAC,EAAE,EAAE,IAAI,EAAE,8BAAC,wBAAU,OAAG,EAAE,IAAI,EAAE,UAAU,EAAE;IAC7C,CAAC,EAAE,EAAE,IAAI,EAAE,8BAAC,+BAAiB,OAAG,EAAE,IAAI,EAAE,WAAW,EAAE;IACrD,CAAC,EAAE,EAAE,IAAI,EAAE,8BAAC,8BAAgB,OAAG,EAAE,IAAI,EAAE,UAAU,EAAE;CACpD,CAAC;AAaF,IAAM,aAAa,GAAgD,UAAC,EAAwD;IAAtD,IAAA,aAAS,EAAT,KAAK,mBAAG,CAAC,KAAA,EAAE,IAAI,UAAA,EAAE,QAAQ,cAAA,EAAE,SAAS,eAAA,EAAE,IAAI,UAAA,EAAK,KAAK,cAAtD,kDAAwD,CAAF;IACxH,OAAO,CACL,8BAAC,kBAAK,eAAK,IAAI,EAAM,KAAK,IAAE,SAAS,EAAE,IAAA,oBAAU,EAAC,SAAS,EAAE,sBAAe,KAAK,CAAE,CAAC,EAAE,IAAI,EAAE,CAAC,QAAQ,IAAI,cAAc,CAAC,KAAK,CAAC,CAAC,IAAI,KAChI,IAAI,IAAI,cAAc,CAAC,KAAK,CAAC,CAAC,IAAI,CAC7B,CACT,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,aAAa,CAAC"}
|
package/InsightsLabel/index.d.ts
CHANGED
package/InsightsLabel/index.js
CHANGED
|
@@ -3,11 +3,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.
|
|
6
|
+
exports.InsightsLabel = exports.default = void 0;
|
|
7
7
|
var InsightsLabel_1 = require("./InsightsLabel");
|
|
8
8
|
Object.defineProperty(exports, "default", { enumerable: true, get: function () { return __importDefault(InsightsLabel_1).default; } });
|
|
9
9
|
var InsightsLabel_2 = require("./InsightsLabel");
|
|
10
10
|
Object.defineProperty(exports, "InsightsLabel", { enumerable: true, get: function () { return __importDefault(InsightsLabel_2).default; } });
|
|
11
|
-
var CriticalIcon_1 = require("./CriticalIcon");
|
|
12
|
-
Object.defineProperty(exports, "CriticalIcon", { enumerable: true, get: function () { return __importDefault(CriticalIcon_1).default; } });
|
|
13
11
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/InsightsLabel/index.ts"],"names":[],"mappings":";;;;;;AAAA,iDAA0C;AAAjC,yHAAA,OAAO,OAAA;AAChB,iDAA2D;AAAlD,+HAAA,OAAO,OAAiB
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/InsightsLabel/index.ts"],"names":[],"mappings":";;;;;;AAAA,iDAA0C;AAAjC,yHAAA,OAAO,OAAA;AAChB,iDAA2D;AAAlD,+HAAA,OAAO,OAAiB"}
|
|
@@ -23,7 +23,7 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
23
23
|
import '../InsightsLabel/labels.css';
|
|
24
24
|
import { AngleDoubleDownIcon } from '@patternfly/react-icons';
|
|
25
25
|
import { AngleDoubleUpIcon } from '@patternfly/react-icons';
|
|
26
|
-
import
|
|
26
|
+
import { CriticalRiskIcon } from '@patternfly/react-icons';
|
|
27
27
|
import { EqualsIcon } from '@patternfly/react-icons';
|
|
28
28
|
import { Label } from '@patternfly/react-core';
|
|
29
29
|
import React from 'react';
|
|
@@ -32,7 +32,7 @@ var VALUE_TO_STATE = {
|
|
|
32
32
|
1: { icon: React.createElement(AngleDoubleDownIcon, null), text: 'Low' },
|
|
33
33
|
2: { icon: React.createElement(EqualsIcon, null), text: 'Moderate' },
|
|
34
34
|
3: { icon: React.createElement(AngleDoubleUpIcon, null), text: 'Important' },
|
|
35
|
-
4: { icon: React.createElement(
|
|
35
|
+
4: { icon: React.createElement(CriticalRiskIcon, null), text: 'Critical' },
|
|
36
36
|
};
|
|
37
37
|
var InsightsLabel = function (_a) {
|
|
38
38
|
var _b = _a.value, value = _b === void 0 ? 1 : _b, text = _a.text, hideIcon = _a.hideIcon, className = _a.className, rest = _a.rest, props = __rest(_a, ["value", "text", "hideIcon", "className", "rest"]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InsightsLabel.js","sourceRoot":"","sources":["../../src/InsightsLabel/InsightsLabel.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,eAAe,CAAC;AAEvB,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAC5D,OAAO,
|
|
1
|
+
{"version":3,"file":"InsightsLabel.js","sourceRoot":"","sources":["../../src/InsightsLabel/InsightsLabel.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,eAAe,CAAC;AAEvB,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAC5D,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAC3D,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AACrD,OAAO,EAAE,KAAK,EAAc,MAAM,wBAAwB,CAAC;AAC3D,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,UAAU,MAAM,YAAY,CAAC;AAQpC,IAAM,cAAc,GAA8B;IAChD,CAAC,EAAE,EAAE,IAAI,EAAE,oBAAC,mBAAmB,OAAG,EAAE,IAAI,EAAE,KAAK,EAAE;IACjD,CAAC,EAAE,EAAE,IAAI,EAAE,oBAAC,UAAU,OAAG,EAAE,IAAI,EAAE,UAAU,EAAE;IAC7C,CAAC,EAAE,EAAE,IAAI,EAAE,oBAAC,iBAAiB,OAAG,EAAE,IAAI,EAAE,WAAW,EAAE;IACrD,CAAC,EAAE,EAAE,IAAI,EAAE,oBAAC,gBAAgB,OAAG,EAAE,IAAI,EAAE,UAAU,EAAE;CACpD,CAAC;AAaF,IAAM,aAAa,GAAgD,UAAC,EAAwD;IAAtD,IAAA,aAAS,EAAT,KAAK,mBAAG,CAAC,KAAA,EAAE,IAAI,UAAA,EAAE,QAAQ,cAAA,EAAE,SAAS,eAAA,EAAE,IAAI,UAAA,EAAK,KAAK,cAAtD,kDAAwD,CAAF;IACxH,OAAO,CACL,oBAAC,KAAK,eAAK,IAAI,EAAM,KAAK,IAAE,SAAS,EAAE,UAAU,CAAC,SAAS,EAAE,sBAAe,KAAK,CAAE,CAAC,EAAE,IAAI,EAAE,CAAC,QAAQ,IAAI,cAAc,CAAC,KAAK,CAAC,CAAC,IAAI,KAChI,IAAI,IAAI,cAAc,CAAC,KAAK,CAAC,CAAC,IAAI,CAC7B,CACT,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,aAAa,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/InsightsLabel/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAC1C,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,iBAAiB,CAAC
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/InsightsLabel/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAC1C,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,iBAAiB,CAAC"}
|
package/esm/index.css
CHANGED
|
@@ -237,15 +237,6 @@ i.ins-battery svg {
|
|
|
237
237
|
outline: inherit !important;
|
|
238
238
|
}
|
|
239
239
|
|
|
240
|
-
.ins-c-critical-icon {
|
|
241
|
-
width: 10px;
|
|
242
|
-
height: 10px;
|
|
243
|
-
stroke: var(--pf-global--palette--red-200);
|
|
244
|
-
stroke-width: 0.5px;
|
|
245
|
-
fill: var(--pf-global--palette--red-200);
|
|
246
|
-
margin: 0.25px;
|
|
247
|
-
}
|
|
248
|
-
|
|
249
240
|
.pf-c-label {
|
|
250
241
|
--ins-c-label--red-bg: #faeae8;
|
|
251
242
|
--inc-c-label--content-red: var(--pf-global--palette--red-300);
|
package/esm/index.scss
CHANGED
|
@@ -7,7 +7,6 @@
|
|
|
7
7
|
@import './FilterChips/filter-chips.scss';
|
|
8
8
|
@import './FilterHooks/tagFilterHook.scss';
|
|
9
9
|
@import './Filters/filter-dropdown.scss';
|
|
10
|
-
@import './InsightsLabel/critical-icon.scss';
|
|
11
10
|
@import './InsightsLabel/labels.scss';
|
|
12
11
|
@import './InvalidObject/icon-404.scss';
|
|
13
12
|
@import './InvalidObject/invalidObject.scss';
|
package/index.css
CHANGED
|
@@ -237,15 +237,6 @@ i.ins-battery svg {
|
|
|
237
237
|
outline: inherit !important;
|
|
238
238
|
}
|
|
239
239
|
|
|
240
|
-
.ins-c-critical-icon {
|
|
241
|
-
width: 10px;
|
|
242
|
-
height: 10px;
|
|
243
|
-
stroke: var(--pf-global--palette--red-200);
|
|
244
|
-
stroke-width: 0.5px;
|
|
245
|
-
fill: var(--pf-global--palette--red-200);
|
|
246
|
-
margin: 0.25px;
|
|
247
|
-
}
|
|
248
|
-
|
|
249
240
|
.pf-c-label {
|
|
250
241
|
--ins-c-label--red-bg: #faeae8;
|
|
251
242
|
--inc-c-label--content-red: var(--pf-global--palette--red-300);
|
package/index.scss
CHANGED
|
@@ -7,7 +7,6 @@
|
|
|
7
7
|
@import './FilterChips/filter-chips.scss';
|
|
8
8
|
@import './FilterHooks/tagFilterHook.scss';
|
|
9
9
|
@import './Filters/filter-dropdown.scss';
|
|
10
|
-
@import './InsightsLabel/critical-icon.scss';
|
|
11
10
|
@import './InsightsLabel/labels.scss';
|
|
12
11
|
@import './InvalidObject/icon-404.scss';
|
|
13
12
|
@import './InvalidObject/invalidObject.scss';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@redhat-cloud-services/frontend-components",
|
|
3
|
-
"version": "3.8.
|
|
3
|
+
"version": "3.8.9",
|
|
4
4
|
"description": "Common components for RedHat Cloud Services project.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"module": "esm/index.js",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"peerDependencies": {
|
|
35
35
|
"@patternfly/react-table": ">=4.5.7",
|
|
36
36
|
"@patternfly/react-core": ">=4.18.5",
|
|
37
|
-
"@patternfly/react-icons": ">=4.
|
|
37
|
+
"@patternfly/react-icons": ">=4.53.16",
|
|
38
38
|
"classnames": ">=2.2.5",
|
|
39
39
|
"prop-types": ">=15.6.2",
|
|
40
40
|
"react": ">=16.14.0 || >=17.0.0",
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
require("./critical-icon.css");
|
|
7
|
-
var react_1 = __importDefault(require("react"));
|
|
8
|
-
var CriticalIcon = function () { return (react_1.default.createElement("svg", { className: "ins-c-critical-icon", viewBox: "0 0 10 10" },
|
|
9
|
-
react_1.default.createElement("polygon", { points: "10 10, 10 3, 5 0, 0 3, 0 10, 5 8" }))); };
|
|
10
|
-
exports.default = CriticalIcon;
|
|
11
|
-
//# sourceMappingURL=CriticalIcon.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CriticalIcon.js","sourceRoot":"","sources":["../src/InsightsLabel/CriticalIcon.tsx"],"names":[],"mappings":";;;;;AAAA,gCAA8B;AAE9B,gDAA0B;AAE1B,IAAM,YAAY,GAAG,cAAM,OAAA,CACzB,uCAAK,SAAS,EAAC,qBAAqB,EAAC,OAAO,EAAC,WAAW;IACtD,2CAAS,MAAM,EAAC,kCAAkC,GAAG,CACjD,CACP,EAJ0B,CAI1B,CAAC;AAEF,kBAAe,YAAY,CAAC"}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import '../InsightsLabel/critical-icon.css';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
var CriticalIcon = function () { return (React.createElement("svg", { className: "ins-c-critical-icon", viewBox: "0 0 10 10" },
|
|
4
|
-
React.createElement("polygon", { points: "10 10, 10 3, 5 0, 0 3, 0 10, 5 8" }))); };
|
|
5
|
-
export default CriticalIcon;
|
|
6
|
-
//# sourceMappingURL=CriticalIcon.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CriticalIcon.js","sourceRoot":"","sources":["../../src/InsightsLabel/CriticalIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,sBAAsB,CAAC;AAE9B,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,IAAM,YAAY,GAAG,cAAM,OAAA,CACzB,6BAAK,SAAS,EAAC,qBAAqB,EAAC,OAAO,EAAC,WAAW;IACtD,iCAAS,MAAM,EAAC,kCAAkC,GAAG,CACjD,CACP,EAJ0B,CAI1B,CAAC;AAEF,eAAe,YAAY,CAAC"}
|