@redhat-cloud-services/frontend-components 3.9.7 → 3.9.8

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.
@@ -1,4 +1,3 @@
1
- import './labels.scss';
2
1
  import { LabelProps } from '@patternfly/react-core';
3
2
  import React from 'react';
4
3
  export interface InsightsLabelProps extends LabelProps {
@@ -25,7 +25,6 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
25
25
  return (mod && mod.__esModule) ? mod : { "default": mod };
26
26
  };
27
27
  Object.defineProperty(exports, "__esModule", { value: true });
28
- require("./labels.css");
29
28
  var react_icons_1 = require("@patternfly/react-icons");
30
29
  var react_icons_2 = require("@patternfly/react-icons");
31
30
  var react_icons_3 = require("@patternfly/react-icons");
@@ -34,13 +33,13 @@ var react_core_1 = require("@patternfly/react-core");
34
33
  var react_1 = __importDefault(require("react"));
35
34
  var VALUE_TO_STATE = {
36
35
  1: { icon: react_1.default.createElement(react_icons_1.AngleDoubleDownIcon, null), text: 'Low', color: 'blue' },
37
- 2: { icon: react_1.default.createElement(react_icons_4.EqualsIcon, null), text: 'Moderate', color: undefined },
36
+ 2: { icon: react_1.default.createElement(react_icons_4.EqualsIcon, null), text: 'Moderate', color: 'gold' },
38
37
  3: { icon: react_1.default.createElement(react_icons_2.AngleDoubleUpIcon, null), text: 'Important', color: 'orange' },
39
38
  4: { icon: react_1.default.createElement(react_icons_3.CriticalRiskIcon, null), text: 'Critical', color: 'red' },
40
39
  };
41
40
  var InsightsLabel = function (_a) {
42
- 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"]);
43
- return (react_1.default.createElement(react_core_1.Label, __assign({}, rest, props, { className: value === 2 ? 'ins-c-label-2' : '', color: VALUE_TO_STATE[value].color, icon: !hideIcon && VALUE_TO_STATE[value].icon }), text || VALUE_TO_STATE[value].text));
41
+ var _b = _a.value, value = _b === void 0 ? 1 : _b, text = _a.text, hideIcon = _a.hideIcon, rest = _a.rest, props = __rest(_a, ["value", "text", "hideIcon", "rest"]);
42
+ return (react_1.default.createElement(react_core_1.Label, __assign({}, rest, props, { color: VALUE_TO_STATE[value].color, icon: !hideIcon && VALUE_TO_STATE[value].icon }), text || VALUE_TO_STATE[value].text));
44
43
  };
45
44
  exports.default = InsightsLabel;
46
45
  //# sourceMappingURL=InsightsLabel.js.map
@@ -20,7 +20,6 @@ var __rest = (this && this.__rest) || function (s, e) {
20
20
  }
21
21
  return t;
22
22
  };
23
- import '../InsightsLabel/labels.css';
24
23
  import { AngleDoubleDownIcon } from '@patternfly/react-icons';
25
24
  import { AngleDoubleUpIcon } from '@patternfly/react-icons';
26
25
  import { CriticalRiskIcon } from '@patternfly/react-icons';
@@ -29,13 +28,13 @@ import { Label } from '@patternfly/react-core';
29
28
  import React from 'react';
30
29
  var VALUE_TO_STATE = {
31
30
  1: { icon: React.createElement(AngleDoubleDownIcon, null), text: 'Low', color: 'blue' },
32
- 2: { icon: React.createElement(EqualsIcon, null), text: 'Moderate', color: undefined },
31
+ 2: { icon: React.createElement(EqualsIcon, null), text: 'Moderate', color: 'gold' },
33
32
  3: { icon: React.createElement(AngleDoubleUpIcon, null), text: 'Important', color: 'orange' },
34
33
  4: { icon: React.createElement(CriticalRiskIcon, null), text: 'Critical', color: 'red' },
35
34
  };
36
35
  var InsightsLabel = function (_a) {
37
- 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"]);
38
- return (React.createElement(Label, __assign({}, rest, props, { className: value === 2 ? 'ins-c-label-2' : '', color: VALUE_TO_STATE[value].color, icon: !hideIcon && VALUE_TO_STATE[value].icon }), text || VALUE_TO_STATE[value].text));
36
+ var _b = _a.value, value = _b === void 0 ? 1 : _b, text = _a.text, hideIcon = _a.hideIcon, rest = _a.rest, props = __rest(_a, ["value", "text", "hideIcon", "rest"]);
37
+ return (React.createElement(Label, __assign({}, rest, props, { color: VALUE_TO_STATE[value].color, icon: !hideIcon && VALUE_TO_STATE[value].icon }), text || VALUE_TO_STATE[value].text));
39
38
  };
40
39
  export default InsightsLabel;
41
40
  //# sourceMappingURL=InsightsLabel.js.map
package/esm/index.css CHANGED
@@ -251,27 +251,6 @@ i.ins-battery svg {
251
251
  outline: inherit !important;
252
252
  }
253
253
 
254
- .pf-c-label {
255
- --ins-c-label--gold-bg: #fdf7e7;
256
- --inc-c-label--content-gold: var(--pf-global--palette--gold-700);
257
- --inc-c-label--icon-gold: #F4C145;
258
- --inc-c-label--border-gold: var(--pf-global--palette--gold-100) ;
259
- }
260
-
261
- .ins-c-label-2.pf-c-label {
262
- background-color: var(--ins-c-label--gold-bg);
263
- }
264
- .ins-c-label-2.pf-c-label .pf-c-label__content {
265
- color: var(--inc-c-label--content-gold);
266
- }
267
- .ins-c-label-2.pf-c-label .pf-c-label__content .pf-c-label__icon {
268
- color: var(--inc-c-label--icon-gold);
269
- }
270
-
271
- .ins-c-label-2.pf-c-label .pf-c-label__content::before {
272
- border: 1px solid var(--inc-c-label--border-gold);
273
- }
274
-
275
254
  .Icon404 {
276
255
  height: 150px;
277
256
  }
package/esm/index.scss CHANGED
@@ -8,7 +8,6 @@
8
8
  @import './FilterChips/filter-chips.scss';
9
9
  @import './FilterHooks/tagFilterHook.scss';
10
10
  @import './Filters/filter-dropdown.scss';
11
- @import './InsightsLabel/labels.scss';
12
11
  @import './InvalidObject/icon-404.scss';
13
12
  @import './InvalidObject/invalidObject.scss';
14
13
  @import './Main/main.scss';
package/index.css CHANGED
@@ -251,27 +251,6 @@ i.ins-battery svg {
251
251
  outline: inherit !important;
252
252
  }
253
253
 
254
- .pf-c-label {
255
- --ins-c-label--gold-bg: #fdf7e7;
256
- --inc-c-label--content-gold: var(--pf-global--palette--gold-700);
257
- --inc-c-label--icon-gold: #F4C145;
258
- --inc-c-label--border-gold: var(--pf-global--palette--gold-100) ;
259
- }
260
-
261
- .ins-c-label-2.pf-c-label {
262
- background-color: var(--ins-c-label--gold-bg);
263
- }
264
- .ins-c-label-2.pf-c-label .pf-c-label__content {
265
- color: var(--inc-c-label--content-gold);
266
- }
267
- .ins-c-label-2.pf-c-label .pf-c-label__content .pf-c-label__icon {
268
- color: var(--inc-c-label--icon-gold);
269
- }
270
-
271
- .ins-c-label-2.pf-c-label .pf-c-label__content::before {
272
- border: 1px solid var(--inc-c-label--border-gold);
273
- }
274
-
275
254
  .Icon404 {
276
255
  height: 150px;
277
256
  }
package/index.scss CHANGED
@@ -8,7 +8,6 @@
8
8
  @import './FilterChips/filter-chips.scss';
9
9
  @import './FilterHooks/tagFilterHook.scss';
10
10
  @import './Filters/filter-dropdown.scss';
11
- @import './InsightsLabel/labels.scss';
12
11
  @import './InvalidObject/icon-404.scss';
13
12
  @import './InvalidObject/invalidObject.scss';
14
13
  @import './Main/main.scss';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@redhat-cloud-services/frontend-components",
3
- "version": "3.9.7",
3
+ "version": "3.9.8",
4
4
  "description": "Common components for RedHat Cloud Services project.",
5
5
  "main": "index.js",
6
6
  "module": "esm/index.js",
@@ -1,20 +0,0 @@
1
- .pf-c-label {
2
- --ins-c-label--gold-bg: #fdf7e7;
3
- --inc-c-label--content-gold: var(--pf-global--palette--gold-700);
4
- --inc-c-label--icon-gold: #F4C145;
5
- --inc-c-label--border-gold: var(--pf-global--palette--gold-100) ;
6
- }
7
-
8
- .ins-c-label-2.pf-c-label {
9
- background-color: var(--ins-c-label--gold-bg);
10
- }
11
- .ins-c-label-2.pf-c-label .pf-c-label__content {
12
- color: var(--inc-c-label--content-gold);
13
- }
14
- .ins-c-label-2.pf-c-label .pf-c-label__content .pf-c-label__icon {
15
- color: var(--inc-c-label--icon-gold);
16
- }
17
-
18
- .ins-c-label-2.pf-c-label .pf-c-label__content::before {
19
- border: 1px solid var(--inc-c-label--border-gold);
20
- }
@@ -1,21 +0,0 @@
1
- .pf-c-label {
2
- --ins-c-label--gold-bg: #fdf7e7;
3
- --inc-c-label--content-gold: var(--pf-global--palette--gold-700);
4
- --inc-c-label--icon-gold: #F4C145;
5
- --inc-c-label--border-gold: var(--pf-global--palette--gold-100)
6
- }
7
-
8
- .ins-c-label-2.pf-c-label {
9
- background-color: var(--ins-c-label--gold-bg);
10
- .pf-c-label__content {
11
- color: var(--inc-c-label--content-gold);
12
- .pf-c-label__icon {
13
- color: var(--inc-c-label--icon-gold);
14
- }
15
- }
16
- }
17
- .ins-c-label-2.pf-c-label {
18
- .pf-c-label__content::before {
19
- border: 1px solid var(--inc-c-label--border-gold);
20
- }
21
- }
@@ -1,20 +0,0 @@
1
- .pf-c-label {
2
- --ins-c-label--gold-bg: #fdf7e7;
3
- --inc-c-label--content-gold: var(--pf-global--palette--gold-700);
4
- --inc-c-label--icon-gold: #F4C145;
5
- --inc-c-label--border-gold: var(--pf-global--palette--gold-100) ;
6
- }
7
-
8
- .ins-c-label-2.pf-c-label {
9
- background-color: var(--ins-c-label--gold-bg);
10
- }
11
- .ins-c-label-2.pf-c-label .pf-c-label__content {
12
- color: var(--inc-c-label--content-gold);
13
- }
14
- .ins-c-label-2.pf-c-label .pf-c-label__content .pf-c-label__icon {
15
- color: var(--inc-c-label--icon-gold);
16
- }
17
-
18
- .ins-c-label-2.pf-c-label .pf-c-label__content::before {
19
- border: 1px solid var(--inc-c-label--border-gold);
20
- }
@@ -1,21 +0,0 @@
1
- .pf-c-label {
2
- --ins-c-label--gold-bg: #fdf7e7;
3
- --inc-c-label--content-gold: var(--pf-global--palette--gold-700);
4
- --inc-c-label--icon-gold: #F4C145;
5
- --inc-c-label--border-gold: var(--pf-global--palette--gold-100)
6
- }
7
-
8
- .ins-c-label-2.pf-c-label {
9
- background-color: var(--ins-c-label--gold-bg);
10
- .pf-c-label__content {
11
- color: var(--inc-c-label--content-gold);
12
- .pf-c-label__icon {
13
- color: var(--inc-c-label--icon-gold);
14
- }
15
- }
16
- }
17
- .ins-c-label-2.pf-c-label {
18
- .pf-c-label__content::before {
19
- border: 1px solid var(--inc-c-label--border-gold);
20
- }
21
- }