@redhat-cloud-services/frontend-components 3.9.5 → 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.
Files changed (42) hide show
  1. package/BulkSelect/BulkSelect.d.ts +1 -1
  2. package/ConditionalFilter/ConditionalFilter.js +1 -1
  3. package/DownloadButton/DownloadButton.spec.ct.js +8 -1
  4. package/InsightsLabel/InsightsLabel.d.ts +0 -1
  5. package/InsightsLabel/InsightsLabel.js +3 -4
  6. package/Main/Main.d.ts +8 -0
  7. package/Ouia/WithOuia.d.ts +1 -1
  8. package/Ouia/useOuia.d.ts +1 -1
  9. package/PrimaryToolbar/PrimaryToolbar.d.ts +1 -1
  10. package/esm/BulkSelect/BulkSelect.js +2 -2
  11. package/esm/ConditionalFilter/CheckboxFilter.js +1 -1
  12. package/esm/ConditionalFilter/ConditionalFilter.js +3 -3
  13. package/esm/ConditionalFilter/GroupFilter.js +3 -3
  14. package/esm/ConditionalFilter/RadioFilter.js +1 -1
  15. package/esm/ConditionalFilter/TextFilter.js +1 -1
  16. package/esm/DownloadButton/DownloadButton.spec.ct.js +8 -1
  17. package/esm/ErrorState/ErrorState.js +1 -1
  18. package/esm/FilterChips/FilterChips.js +1 -1
  19. package/esm/FilterHooks/tagFilterHook.js +1 -1
  20. package/esm/Filters/FilterInput.js +1 -1
  21. package/esm/InsightsLabel/InsightsLabel.js +3 -4
  22. package/esm/InvalidObject/InvalidObject.js +1 -1
  23. package/esm/Maintenance/Maintenance.js +1 -1
  24. package/esm/NotAuthorized/NotAuthorized.js +1 -1
  25. package/esm/NotConnected/NotConnected.js +1 -1
  26. package/esm/Pagination/PaginationNav.js +1 -1
  27. package/esm/PrimaryToolbar/Actions.js +1 -1
  28. package/esm/PrimaryToolbar/PrimaryToolbar.js +1 -1
  29. package/esm/SimpleTableFilter/SimpleTableFilter.js +1 -1
  30. package/esm/SkeletonTable/SkeletonTable.js +1 -1
  31. package/esm/TagModal/TableWithFilter.js +2 -2
  32. package/esm/TagModal/TagModal.js +1 -1
  33. package/esm/Unavailable/Unavailable.js +1 -1
  34. package/esm/index.css +0 -21
  35. package/esm/index.scss +0 -1
  36. package/index.css +0 -21
  37. package/index.scss +0 -1
  38. package/package.json +1 -1
  39. package/InsightsLabel/labels.css +0 -20
  40. package/InsightsLabel/labels.scss +0 -21
  41. package/esm/InsightsLabel/labels.css +0 -20
  42. package/esm/InsightsLabel/labels.scss +0 -21
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { DropdownItemProps, DropdownToggleProps, DropdownToggleCheckboxProps } from '@patternfly/react-core';
2
+ import { DropdownItemProps, DropdownToggleCheckboxProps, DropdownToggleProps } from '@patternfly/react-core';
3
3
  import './bulk-select.scss';
4
4
  export declare type BulkSelectItem = {
5
5
  key?: string | number;
@@ -81,7 +81,7 @@ var ConditionalFilter = function (_a) {
81
81
  !shouldRenderNewLayout && (react_1.default.createElement(react_1.Fragment, null, !items || (items && items.length <= 0) ? (react_1.default.createElement("div", { className: (0, classnames_1.default)('ins-c-conditional-filter', {
82
82
  desktop: useMobileLayout,
83
83
  }) },
84
- react_1.default.createElement(TextFilter_1.default, { id: id, isDisabled: isDisabled, onChange: function (e) { return onChangeCallback(e, Number(e.target.value)); }, placeholder: placeholder, value: currentValue ? String(currentValue) : undefined, "widget-type": "InsightsInput" }))) : (react_1.default.createElement(react_core_1.Split, { className: (0, classnames_1.default)('ins-c-conditional-filter', {
84
+ react_1.default.createElement(TextFilter_1.default, { id: id, isDisabled: isDisabled, onChange: function (e) { return onChangeCallback(e, e.target.value); }, placeholder: placeholder, value: currentValue ? String(currentValue) : undefined, "widget-type": "InsightsInput" }))) : (react_1.default.createElement(react_core_1.Split, { className: (0, classnames_1.default)('ins-c-conditional-filter', {
85
85
  desktop: useMobileLayout,
86
86
  }) },
87
87
  items.length > 1 && (react_1.default.createElement(react_core_1.SplitItem, null,
@@ -13,12 +13,19 @@ describe('DownloadButton component', function () {
13
13
  it('renders the dropdown', function () {
14
14
  cy.get('.pf-c-dropdown');
15
15
  });
16
- it('on download callback fired', function () {
16
+ it('on download CSV callback fired', function () {
17
17
  var onSelectSpy = cy.spy().as('onSelectSpy');
18
18
  (0, react_2.mount)(react_1.default.createElement(__1.DownloadButton, { onSelect: onSelectSpy }));
19
19
  cy.get('div[data-ouia-component-id="Export"] > button').click();
20
20
  cy.get('div[data-ouia-component-id="Export"] > ul > li > button[data-ouia-component-id="DownloadCSV"]').click();
21
21
  cy.get('@onSelectSpy').should('have.been.called.with', 'csv');
22
22
  });
23
+ it('on download JSON callback fired', function () {
24
+ var onSelectSpy = cy.spy().as('onSelectSpy');
25
+ (0, react_2.mount)(react_1.default.createElement(__1.DownloadButton, { onSelect: onSelectSpy }));
26
+ cy.get('div[data-ouia-component-id="Export"] > button').click();
27
+ cy.get('div[data-ouia-component-id="Export"] > ul > li > button[data-ouia-component-id="DownloadJSON"]').click();
28
+ cy.get('@onSelectSpy').should('have.been.called.with', 'json');
29
+ });
23
30
  });
24
31
  //# sourceMappingURL=DownloadButton.spec.ct.js.map
@@ -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
package/Main/Main.d.ts CHANGED
@@ -1,5 +1,13 @@
1
1
  import React from 'react';
2
2
  import './main.scss';
3
+ import type { ChromeAPI } from '@redhat-cloud-services/types';
4
+ declare global {
5
+ interface Window {
6
+ insights: {
7
+ chrome: ChromeAPI;
8
+ };
9
+ }
10
+ }
3
11
  export interface InternalMainProps {
4
12
  params?: {
5
13
  [key: string]: string;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { OuiaProps, OuiaDataAttributes } from './Ouia';
2
+ import { OuiaDataAttributes, OuiaProps } from './Ouia';
3
3
  export declare type WithOuiaParams = string | {
4
4
  type: string;
5
5
  module?: string;
package/Ouia/useOuia.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { OuiaProps, OuiaDataAttributes } from './Ouia';
1
+ import { OuiaDataAttributes, OuiaProps } from './Ouia';
2
2
  export interface UseOuiaParams extends OuiaProps {
3
3
  type: string;
4
4
  module?: string;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { PaginationProps, ButtonProps } from '@patternfly/react-core';
2
+ import { ButtonProps, PaginationProps } from '@patternfly/react-core';
3
3
  import { ActionsProps } from './Actions';
4
4
  import { BulkSelectProps } from '../BulkSelect';
5
5
  import { ConditionalFilterProps } from '../ConditionalFilter';
@@ -29,9 +29,9 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
29
29
  }
30
30
  return to.concat(ar || Array.prototype.slice.call(from));
31
31
  };
32
- import React, { useState, useRef, Fragment } from 'react';
32
+ import React, { Fragment, useRef, useState } from 'react';
33
33
  import classnames from 'classnames';
34
- import { Dropdown, DropdownItem, DropdownToggle, DropdownToggleCheckbox, Checkbox, } from '@patternfly/react-core';
34
+ import { Checkbox, Dropdown, DropdownItem, DropdownToggle, DropdownToggleCheckbox, } from '@patternfly/react-core';
35
35
  import { getDefaultOUIAId } from '@patternfly/react-core/';
36
36
  import '../BulkSelect/bulk-select.css';
37
37
  var BulkSelect = function (_a) {
@@ -29,7 +29,7 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
29
29
  }
30
30
  return to.concat(ar || Array.prototype.slice.call(from));
31
31
  };
32
- import React, { Fragment, useEffect, useState, useRef } from 'react';
32
+ import React, { Fragment, useEffect, useRef, useState } from 'react';
33
33
  import { Select, SelectOption, SelectVariant } from '@patternfly/react-core';
34
34
  import isEqual from 'lodash/isEqual';
35
35
  import omit from 'lodash/omit';
@@ -9,10 +9,10 @@ var __assign = (this && this.__assign) || function () {
9
9
  };
10
10
  return __assign.apply(this, arguments);
11
11
  };
12
- import React, { Fragment, useEffect, useState, useRef } from 'react';
12
+ import React, { Fragment, useEffect, useRef, useState } from 'react';
13
13
  import classNames from 'classnames';
14
14
  import globalBreakpointMd from '@patternfly/react-tokens/dist/js/global_breakpoint_md';
15
- import { Dropdown, DropdownItem, DropdownToggle, SplitItem, Split, ToolbarItem, ToolbarGroup, ToolbarToggleGroup } from '@patternfly/react-core';
15
+ import { Dropdown, DropdownItem, DropdownToggle, Split, SplitItem, ToolbarGroup, ToolbarItem, ToolbarToggleGroup } from '@patternfly/react-core';
16
16
  import { FilterIcon } from '@patternfly/react-icons';
17
17
  import TextFilter from './TextFilter';
18
18
  import { conditionalFilterType, typeMapper } from './conditionalFilterConstants';
@@ -57,7 +57,7 @@ var ConditionalFilter = function (_a) {
57
57
  !shouldRenderNewLayout && (React.createElement(Fragment, null, !items || (items && items.length <= 0) ? (React.createElement("div", { className: classNames('ins-c-conditional-filter', {
58
58
  desktop: useMobileLayout,
59
59
  }) },
60
- React.createElement(TextFilter, { id: id, isDisabled: isDisabled, onChange: function (e) { return onChangeCallback(e, Number(e.target.value)); }, placeholder: placeholder, value: currentValue ? String(currentValue) : undefined, "widget-type": "InsightsInput" }))) : (React.createElement(Split, { className: classNames('ins-c-conditional-filter', {
60
+ React.createElement(TextFilter, { id: id, isDisabled: isDisabled, onChange: function (e) { return onChangeCallback(e, e.target.value); }, placeholder: placeholder, value: currentValue ? String(currentValue) : undefined, "widget-type": "InsightsInput" }))) : (React.createElement(Split, { className: classNames('ins-c-conditional-filter', {
61
61
  desktop: useMobileLayout,
62
62
  }) },
63
63
  items.length > 1 && (React.createElement(SplitItem, null,
@@ -9,10 +9,10 @@ var __assign = (this && this.__assign) || function () {
9
9
  };
10
10
  return __assign.apply(this, arguments);
11
11
  };
12
- import React, { useState, useRef, useEffect } from 'react';
12
+ import React, { useEffect, useRef, useState } from 'react';
13
13
  import classNames from 'classnames';
14
- import { TextInput, MenuList, MenuItem, MenuGroup, Checkbox, Button, MenuToggle, Menu, MenuContent, Popper, Radio, TreeView, } from '@patternfly/react-core';
15
- import { isChecked, calculateSelected, getGroupMenuItems, getMenuItems, convertTreeItem, mapTree, onTreeCheck } from './groupFilterConstants';
14
+ import { Button, Checkbox, Menu, MenuContent, MenuGroup, MenuItem, MenuList, MenuToggle, Popper, Radio, TextInput, TreeView, } from '@patternfly/react-core';
15
+ import { calculateSelected, convertTreeItem, getGroupMenuItems, getMenuItems, isChecked, mapTree, onTreeCheck } from './groupFilterConstants';
16
16
  import groupType from './groupType';
17
17
  import '../ConditionalFilter/group-filter.css';
18
18
  var GroupFilter = function (_a) {
@@ -21,7 +21,7 @@ var __rest = (this && this.__rest) || function (s, e) {
21
21
  return t;
22
22
  };
23
23
  import React, { Fragment, useState } from 'react';
24
- import { Select, SelectOption, SelectVariant, Radio } from '@patternfly/react-core';
24
+ import { Radio, Select, SelectOption, SelectVariant } from '@patternfly/react-core';
25
25
  import TextFilter, { isFilterValue } from './TextFilter';
26
26
  var RadioFilter = function (_a) {
27
27
  var _b = _a.items, items = _b === void 0 ? [] : _b, _c = _a.onChange, onChange = _c === void 0 ? function () { return undefined; } : _c, _d = _a.isDisabled, isDisabled = _d === void 0 ? false : _d, props = __rest(_a, ["items", "onChange", "isDisabled"]);
@@ -9,7 +9,7 @@ var __rest = (this && this.__rest) || function (s, e) {
9
9
  }
10
10
  return t;
11
11
  };
12
- import React, { useState, Fragment } from 'react';
12
+ import React, { Fragment, useState } from 'react';
13
13
  import { TextInput } from '@patternfly/react-core';
14
14
  import { SearchIcon } from '@patternfly/react-icons';
15
15
  import '../ConditionalFilter/conditional-filter.css';
@@ -8,12 +8,19 @@ describe('DownloadButton component', function () {
8
8
  it('renders the dropdown', function () {
9
9
  cy.get('.pf-c-dropdown');
10
10
  });
11
- it('on download callback fired', function () {
11
+ it('on download CSV callback fired', function () {
12
12
  var onSelectSpy = cy.spy().as('onSelectSpy');
13
13
  mount(React.createElement(DownloadButton, { onSelect: onSelectSpy }));
14
14
  cy.get('div[data-ouia-component-id="Export"] > button').click();
15
15
  cy.get('div[data-ouia-component-id="Export"] > ul > li > button[data-ouia-component-id="DownloadCSV"]').click();
16
16
  cy.get('@onSelectSpy').should('have.been.called.with', 'csv');
17
17
  });
18
+ it('on download JSON callback fired', function () {
19
+ var onSelectSpy = cy.spy().as('onSelectSpy');
20
+ mount(React.createElement(DownloadButton, { onSelect: onSelectSpy }));
21
+ cy.get('div[data-ouia-component-id="Export"] > button').click();
22
+ cy.get('div[data-ouia-component-id="Export"] > ul > li > button[data-ouia-component-id="DownloadJSON"]').click();
23
+ cy.get('@onSelectSpy').should('have.been.called.with', 'json');
24
+ });
18
25
  });
19
26
  //# sourceMappingURL=DownloadButton.spec.ct.js.map
@@ -23,7 +23,7 @@ var __rest = (this && this.__rest) || function (s, e) {
23
23
  import React from 'react';
24
24
  import { ExclamationCircleIcon } from '@patternfly/react-icons/';
25
25
  import DefaultErrorMessage from './DefaultErrorMessage';
26
- import { Title, EmptyState, EmptyStateVariant, EmptyStateIcon, EmptyStateBody, Button, Stack, StackItem, } from '@patternfly/react-core';
26
+ import { Button, EmptyState, EmptyStateBody, EmptyStateIcon, EmptyStateVariant, Stack, StackItem, Title, } from '@patternfly/react-core';
27
27
  import '../ErrorState/error-state.css';
28
28
  var ErrorState = function (_a) {
29
29
  var _b = _a.errorTitle, errorTitle = _b === void 0 ? 'Something went wrong' : _b, errorDescription = _a.errorDescription, props = __rest(_a, ["errorTitle", "errorDescription"]);
@@ -10,7 +10,7 @@ var __assign = (this && this.__assign) || function () {
10
10
  return __assign.apply(this, arguments);
11
11
  };
12
12
  import React from 'react';
13
- import { Badge, Chip, ChipGroup, Button } from '@patternfly/react-core';
13
+ import { Badge, Button, Chip, ChipGroup } from '@patternfly/react-core';
14
14
  import classNames from 'classnames';
15
15
  import '../FilterChips/filter-chips.css';
16
16
  function isFilterChipGroup(group) {
@@ -18,7 +18,7 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
18
18
  }
19
19
  return to.concat(ar || Array.prototype.slice.call(from));
20
20
  };
21
- import React, { useState, useEffect } from 'react';
21
+ import React, { useEffect, useState } from 'react';
22
22
  import { constructGroups, mapGroups } from './constants';
23
23
  import { Spinner } from '@patternfly/react-core';
24
24
  import '../FilterHooks/tagFilterHook.css';
@@ -1,4 +1,4 @@
1
- import React, { useState, useEffect } from 'react';
1
+ import React, { useEffect, useState } from 'react';
2
2
  import { Checkbox, Radio } from '@patternfly/react-core';
3
3
  var FilterInput = function (_a) {
4
4
  var addRemoveFilters = _a.addRemoveFilters, _b = _a.param, param = _b === void 0 ? '' : _b, _c = _a.filters, filters = _c === void 0 ? {} : _c, _d = _a.type, type = _d === void 0 ? 'checkbox' : _d, value = _a.value, id = _a.id, label = _a.label;
@@ -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
@@ -22,7 +22,7 @@ var __rest = (this && this.__rest) || function (s, e) {
22
22
  };
23
23
  import React from 'react';
24
24
  import Icon404 from './icon-404';
25
- import { Title, Button } from '@patternfly/react-core';
25
+ import { Button, Title } from '@patternfly/react-core';
26
26
  import '../InvalidObject/invalidObject.css';
27
27
  var isBeta = function () {
28
28
  return window.location.pathname.split('/')[1] === 'beta' ? '/beta' : '';
@@ -22,7 +22,7 @@ var __rest = (this && this.__rest) || function (s, e) {
22
22
  };
23
23
  import React from 'react';
24
24
  import classNames from 'classnames';
25
- import { EmptyState, EmptyStateBody, Title, Stack, StackItem, EmptyStateIcon } from '@patternfly/react-core';
25
+ import { EmptyState, EmptyStateBody, EmptyStateIcon, Stack, StackItem, Title } from '@patternfly/react-core';
26
26
  import { HourglassHalfIcon } from '@patternfly/react-icons';
27
27
  import '../Maintenance/maintenance.css';
28
28
  var Maintenance = function (_a) {
@@ -21,7 +21,7 @@ var __rest = (this && this.__rest) || function (s, e) {
21
21
  return t;
22
22
  };
23
23
  import React from 'react';
24
- import { Title, Button, EmptyState, EmptyStateVariant, EmptyStateIcon, EmptyStateBody } from '@patternfly/react-core';
24
+ import { Button, EmptyState, EmptyStateBody, EmptyStateIcon, EmptyStateVariant, Title } from '@patternfly/react-core';
25
25
  import { LockIcon } from '@patternfly/react-icons';
26
26
  import '../NotAuthorized/NotAuthorized.css';
27
27
  var ContactBody = function () { return (React.createElement(React.Fragment, null,
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { EmptyState, EmptyStateIcon, EmptyStateBody, Title, Button } from '@patternfly/react-core';
2
+ import { Button, EmptyState, EmptyStateBody, EmptyStateIcon, Title } from '@patternfly/react-core';
3
3
  import { DisconnectedIcon } from '@patternfly/react-icons';
4
4
  var NotConnected = function (_a) {
5
5
  var _b = _a.titleText, titleText = _b === void 0 ? 'This system isn’t connected to Insights yet' : _b, _c = _a.bodyText, bodyText = _c === void 0 ? 'To get started, activate the Insights client for this system.' : _c, _d = _a.buttonText, buttonText = _d === void 0 ? 'Learn how to activate the Insights client' : _d;
@@ -22,7 +22,7 @@ var __rest = (this && this.__rest) || function (s, e) {
22
22
  };
23
23
  import React from 'react';
24
24
  import { Button, ButtonVariant, TextInput } from '@patternfly/react-core';
25
- import { AngleDoubleLeftIcon, AngleLeftIcon, AngleDoubleRightIcon, AngleRightIcon } from '@patternfly/react-icons';
25
+ import { AngleDoubleLeftIcon, AngleDoubleRightIcon, AngleLeftIcon, AngleRightIcon } from '@patternfly/react-icons';
26
26
  var PaginationNav = function (_a) {
27
27
  var _b = _a.lastPage, lastPage = _b === void 0 ? 0 : _b, setPage = _a.setPage, _c = _a.pageTitle, pageTitle = _c === void 0 ? 'pages' : _c, amountOfPages = _a.amountOfPages, _d = _a.page, page = _d === void 0 ? 0 : _d, _e = _a.onFirstPage, onFirstPage = _e === void 0 ? function () { return undefined; } : _e, _f = _a.onLastPage, onLastPage = _f === void 0 ? function () { return undefined; } : _f, _g = _a.onPreviousPage, onPreviousPage = _g === void 0 ? function () { return undefined; } : _g, _h = _a.onNextPage, onNextPage = _h === void 0 ? function () { return undefined; } : _h, props = __rest(_a, ["lastPage", "setPage", "pageTitle", "amountOfPages", "page", "onFirstPage", "onLastPage", "onPreviousPage", "onNextPage"]);
28
28
  return (React.createElement("nav", __assign({ className: "pf-c-pagination__nav", "aria-label": "Pagination" }, props),
@@ -19,7 +19,7 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
19
19
  return to.concat(ar || Array.prototype.slice.call(from));
20
20
  };
21
21
  import React, { Fragment, useState } from 'react';
22
- import { Dropdown, DropdownItem, KebabToggle, Button, DropdownSeparator, ToolbarItem } from '@patternfly/react-core';
22
+ import { Button, Dropdown, DropdownItem, DropdownSeparator, KebabToggle, ToolbarItem } from '@patternfly/react-core';
23
23
  import { DownloadButton } from '../DownloadButton';
24
24
  import classNames from 'classnames';
25
25
  function isActionObject(node) {
@@ -30,7 +30,7 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
30
30
  return to.concat(ar || Array.prototype.slice.call(from));
31
31
  };
32
32
  import React from 'react';
33
- import { Toolbar, ToolbarContent, ToolbarGroup, ToolbarItem, Pagination, Button, ToolbarExpandIconWrapper, } from '@patternfly/react-core';
33
+ import { Button, Pagination, Toolbar, ToolbarContent, ToolbarExpandIconWrapper, ToolbarGroup, ToolbarItem, } from '@patternfly/react-core';
34
34
  import { AngleDownIcon, AngleRightIcon } from '@patternfly/react-icons';
35
35
  import { SortByDirection } from '@patternfly/react-table';
36
36
  import Actions from './Actions';
@@ -21,7 +21,7 @@ var __rest = (this && this.__rest) || function (s, e) {
21
21
  return t;
22
22
  };
23
23
  import React, { useState } from 'react';
24
- import { Button, ButtonVariant, Dropdown, DropdownToggle, DropdownItem } from '@patternfly/react-core';
24
+ import { Button, ButtonVariant, Dropdown, DropdownItem, DropdownToggle } from '@patternfly/react-core';
25
25
  import { Input } from '../Input';
26
26
  import { SearchIcon } from '@patternfly/react-icons';
27
27
  import '../SimpleTableFilter/simple-table-filter.css';
@@ -8,7 +8,7 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
8
8
  return to.concat(ar || Array.prototype.slice.call(from));
9
9
  };
10
10
  import React from 'react';
11
- import { RowSelectVariant, Table, TableHeader, TableBody } from '@patternfly/react-table';
11
+ import { RowSelectVariant, Table, TableBody, TableHeader } from '@patternfly/react-table';
12
12
  import { Skeleton, SkeletonSize } from '../Skeleton';
13
13
  import classNames from 'classnames';
14
14
  import '../SkeletonTable/SkeletonTable.css';
@@ -19,8 +19,8 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
19
19
  return to.concat(ar || Array.prototype.slice.call(from));
20
20
  };
21
21
  import React, { Fragment } from 'react';
22
- import { Pagination, Bullseye, EmptyState, EmptyStateVariant, Title, EmptyStateBody } from '@patternfly/react-core';
23
- import { Table, TableHeader, TableBody } from '@patternfly/react-table';
22
+ import { Bullseye, EmptyState, EmptyStateBody, EmptyStateVariant, Pagination, Title } from '@patternfly/react-core';
23
+ import { Table, TableBody, TableHeader } from '@patternfly/react-table';
24
24
  import { EmptyTable } from '../EmptyTable';
25
25
  import { TableToolbar } from '../TableToolbar';
26
26
  import { PrimaryToolbar } from '../PrimaryToolbar';
@@ -37,7 +37,7 @@ var __rest = (this && this.__rest) || function (s, e) {
37
37
  };
38
38
  import React, { Component } from 'react';
39
39
  import '../TagModal/tagModal.css';
40
- import { Modal, Button, Tabs, Tab, TabTitleText } from '@patternfly/react-core';
40
+ import { Button, Modal, Tab, TabTitleText, Tabs } from '@patternfly/react-core';
41
41
  import classNames from 'classnames';
42
42
  import TableWithFilter from './TableWithFilter';
43
43
  var calculateChecked = function (rows, selected) {
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { EmptyState, EmptyStateIcon, EmptyStateVariant, EmptyStateBody, Title } from '@patternfly/react-core';
2
+ import { EmptyState, EmptyStateBody, EmptyStateIcon, EmptyStateVariant, Title } from '@patternfly/react-core';
3
3
  import { ExclamationCircleIcon } from '@patternfly/react-icons';
4
4
  import '../Unavailable/Unavailable.css';
5
5
  var Unavailable = function () {
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.5",
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
- }