@redhat-cloud-services/frontend-components 4.0.3 → 4.0.5

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 (62) hide show
  1. package/Battery/Battery.d.ts +1 -9
  2. package/Battery/Battery.js +2 -76
  3. package/Battery/Battery.js.map +1 -1
  4. package/Battery/CriticalBattery.js +2 -2
  5. package/Battery/CriticalBattery.js.map +1 -1
  6. package/Battery/HighBattery.js +2 -2
  7. package/Battery/HighBattery.js.map +1 -1
  8. package/Battery/LowBattery.js +2 -2
  9. package/Battery/LowBattery.js.map +1 -1
  10. package/Battery/MediumBattery.js +2 -2
  11. package/Battery/MediumBattery.js.map +1 -1
  12. package/Battery/NullBattery.js +2 -2
  13. package/Battery/NullBattery.js.map +1 -1
  14. package/ErrorBoundary/ErrorBoundary.d.ts +3 -18
  15. package/ErrorBoundary/ErrorBoundary.js +13 -76
  16. package/ErrorBoundary/ErrorBoundary.js.map +1 -1
  17. package/ErrorState/ErrorState.d.ts +1 -7
  18. package/ErrorState/ErrorState.js +2 -18
  19. package/ErrorState/ErrorState.js.map +1 -1
  20. package/NotAuthorized/NotAuthorized.d.ts +1 -13
  21. package/NotAuthorized/NotAuthorized.js +2 -24
  22. package/NotAuthorized/NotAuthorized.js.map +1 -1
  23. package/esm/Battery/Battery.js +2 -73
  24. package/esm/Battery/Battery.js.map +1 -1
  25. package/esm/Battery/CriticalBattery.js +2 -2
  26. package/esm/Battery/CriticalBattery.js.map +1 -1
  27. package/esm/Battery/HighBattery.js +2 -2
  28. package/esm/Battery/HighBattery.js.map +1 -1
  29. package/esm/Battery/LowBattery.js +2 -2
  30. package/esm/Battery/LowBattery.js.map +1 -1
  31. package/esm/Battery/MediumBattery.js +2 -2
  32. package/esm/Battery/MediumBattery.js.map +1 -1
  33. package/esm/Battery/NullBattery.js +2 -2
  34. package/esm/Battery/NullBattery.js.map +1 -1
  35. package/esm/ErrorBoundary/ErrorBoundary.js +14 -51
  36. package/esm/ErrorBoundary/ErrorBoundary.js.map +1 -1
  37. package/esm/ErrorState/ErrorState.js +3 -21
  38. package/esm/ErrorState/ErrorState.js.map +1 -1
  39. package/esm/NotAuthorized/NotAuthorized.js +3 -23
  40. package/esm/NotAuthorized/NotAuthorized.js.map +1 -1
  41. package/esm/index.css +0 -50
  42. package/esm/index.scss +0 -2
  43. package/index.css +0 -50
  44. package/index.scss +0 -2
  45. package/package.json +2 -1
  46. package/Battery/battery.css +0 -35
  47. package/Battery/battery.scss +0 -47
  48. package/ErrorBoundary/ErrorBoundary.css +0 -13
  49. package/ErrorBoundary/ErrorBoundary.scss +0 -11
  50. package/ErrorBoundary/ErrorStack.d.ts +0 -6
  51. package/ErrorBoundary/ErrorStack.js +0 -17
  52. package/ErrorBoundary/ErrorStack.js.map +0 -1
  53. package/ErrorState/error-state.css +0 -3
  54. package/ErrorState/error-state.scss +0 -5
  55. package/esm/Battery/battery.css +0 -35
  56. package/esm/Battery/battery.scss +0 -47
  57. package/esm/ErrorBoundary/ErrorBoundary.css +0 -13
  58. package/esm/ErrorBoundary/ErrorBoundary.scss +0 -11
  59. package/esm/ErrorBoundary/ErrorStack.js +0 -15
  60. package/esm/ErrorBoundary/ErrorStack.js.map +0 -1
  61. package/esm/ErrorState/error-state.css +0 -3
  62. package/esm/ErrorState/error-state.scss +0 -5
@@ -1,54 +1,17 @@
1
- var __extends = (this && this.__extends) || (function () {
2
- var extendStatics = function (d, b) {
3
- extendStatics = Object.setPrototypeOf ||
4
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
5
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
6
- return extendStatics(d, b);
7
- };
8
- return function (d, b) {
9
- if (typeof b !== "function" && b !== null)
10
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
11
- extendStatics(d, b);
12
- function __() { this.constructor = d; }
13
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
14
- };
15
- })();
16
- import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
17
- import * as React from 'react';
18
- import PageHeader, { PageHeaderTitle } from '../PageHeader';
19
- import ErrorState from '../ErrorState';
20
- import { ExpandableSection } from "@patternfly/react-core/dist/dynamic/components/ExpandableSection";
21
- import ErrorStack from './ErrorStack';
22
- import Section from '../Section';
23
- var ErrorBoundaryPage = (function (_super) {
24
- __extends(ErrorBoundaryPage, _super);
25
- function ErrorBoundaryPage(props) {
26
- var _this = _super.call(this, props) || this;
27
- _this.state = {
28
- hasError: false,
29
- historyState: history.state,
30
- };
31
- return _this;
32
- }
33
- ErrorBoundaryPage.getDerivedStateFromError = function (error) {
34
- return { hasError: true, error: error, historyState: history.state };
35
- };
36
- ErrorBoundaryPage.prototype.render = function () {
37
- if (this.state.historyState !== history.state) {
38
- this.setState({
39
- hasError: false,
40
- historyState: history.state,
41
- });
42
- }
43
- if (this.state.hasError) {
44
- if (this.props.silent) {
45
- return null;
46
- }
47
- return (_jsxs("div", { children: [_jsx(PageHeader, { children: _jsx(PageHeaderTitle, { title: this.props.headerTitle }) }), _jsx(Section, { children: _jsx(ErrorState, { errorTitle: this.props.errorTitle, errorDescription: _jsxs(_Fragment, { children: [_jsx("span", { children: this.props.errorDescription }), this.state.error && (_jsx(ExpandableSection, { toggleText: "Show details", children: _jsx(ErrorStack, { error: this.state.error }) }))] }) }) })] }));
1
+ var __assign = (this && this.__assign) || function () {
2
+ __assign = Object.assign || function(t) {
3
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
4
+ s = arguments[i];
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
+ t[p] = s[p];
48
7
  }
49
- return this.props.children;
8
+ return t;
50
9
  };
51
- return ErrorBoundaryPage;
52
- }(React.Component));
53
- export default ErrorBoundaryPage;
10
+ return __assign.apply(this, arguments);
11
+ };
12
+ import { jsx as _jsx } from "react/jsx-runtime";
13
+ import { ErrorBoundary as ErrorBoundaryPF } from '@patternfly/react-component-groups/dist/dynamic/ErrorBoundary';
14
+ import { DefaultErrorMessage } from '../ErrorState';
15
+ var ErrorBoundary = function (props) { return _jsx(ErrorBoundaryPF, __assign({ defaultErrorDescription: DefaultErrorMessage }, props)); };
16
+ export default ErrorBoundary;
54
17
  //# sourceMappingURL=ErrorBoundary.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ErrorBoundary.js","sourceRoot":"","sources":["../../src/ErrorBoundary/ErrorBoundary.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,UAAU,EAAE,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAC5D,OAAO,UAAU,MAAM,eAAe,CAAC;;AAEvC,OAAO,UAAU,MAAM,cAAc,CAAC;AACtC,OAAO,OAAO,MAAM,YAAY,CAAC;AAgBjC;IAAgC,qCAAwE;IACtG,2BAAY,KAA+B;QAA3C,YACE,kBAAM,KAAK,CAAC,SAKb;QAJC,KAAI,CAAC,KAAK,GAAG;YACX,QAAQ,EAAE,KAAK;YACf,YAAY,EAAE,OAAO,CAAC,KAAK;SAC5B,CAAC;;IACJ,CAAC;IAEM,0CAAwB,GAA/B,UAAgC,KAAY;QAC1C,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,KAAK,OAAA,EAAE,YAAY,EAAE,OAAO,CAAC,KAAK,EAAE,CAAC;IAChE,CAAC;IAED,kCAAM,GAAN;QACE,IAAI,IAAI,CAAC,KAAK,CAAC,YAAY,KAAK,OAAO,CAAC,KAAK,EAAE;YAC7C,IAAI,CAAC,QAAQ,CAAC;gBACZ,QAAQ,EAAE,KAAK;gBACf,YAAY,EAAE,OAAO,CAAC,KAAK;aAC5B,CAAC,CAAC;SACJ;QAED,IAAI,IAAI,CAAC,KAAK,CAAC,QAAQ,EAAE;YACvB,IAAI,IAAI,CAAC,KAAK,CAAC,MAAM,EAAE;gBACrB,OAAO,IAAI,CAAC;aACb;YACD,OAAO,CACL,0BACE,KAAC,UAAU,cACT,KAAC,eAAe,IAAC,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,WAAW,GAAI,GACvC,EACb,KAAC,OAAO,cACN,KAAC,UAAU,IACT,UAAU,EAAE,IAAI,CAAC,KAAK,CAAC,UAAU,EACjC,gBAAgB,EACd,8BACE,yBAAO,IAAI,CAAC,KAAK,CAAC,gBAAgB,GAAQ,EACzC,IAAI,CAAC,KAAK,CAAC,KAAK,IAAI,CACnB,KAAC,iBAAiB,IAAC,UAAU,EAAC,cAAc,YAC1C,KAAC,UAAU,IAAC,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,KAAK,GAAI,GACrB,CACrB,IACA,GAEL,GACM,IACN,CACP,CAAC;SACH;QAED,OAAO,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC;IAC7B,CAAC;IACH,wBAAC;AAAD,CAAC,AAnDD,CAAgC,KAAK,CAAC,SAAS,GAmD9C;AAED,eAAe,iBAAiB,CAAC"}
1
+ {"version":3,"file":"ErrorBoundary.js","sourceRoot":"","sources":["../../src/ErrorBoundary/ErrorBoundary.tsx"],"names":[],"mappings":";;;;;;;;;;;;AACA,OAAO,EAAE,aAAa,IAAI,eAAe,EAAE,MAAM,+DAA+D,CAAC;AACjH,OAAO,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;AAMpD,IAAM,aAAa,GAAiC,UAAC,KAAK,IAAK,OAAA,KAAC,eAAe,aAAC,uBAAuB,EAAE,mBAAmB,IAAM,KAAK,EAAI,EAA5E,CAA4E,CAAC;AAE5I,eAAe,aAAa,CAAC"}
@@ -9,27 +9,9 @@ var __assign = (this && this.__assign) || function () {
9
9
  };
10
10
  return __assign.apply(this, arguments);
11
11
  };
12
- var __rest = (this && this.__rest) || function (s, e) {
13
- var t = {};
14
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
15
- t[p] = s[p];
16
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
17
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
18
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
19
- t[p[i]] = s[p[i]];
20
- }
21
- return t;
22
- };
23
- import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
24
- import ExclamationCircleIcon from "@patternfly/react-icons/dist/dynamic/icons/exclamation-circle-icon";
12
+ import { jsx as _jsx } from "react/jsx-runtime";
13
+ import { ErrorState as ErrorStatePF } from '@patternfly/react-component-groups/dist/dynamic/ErrorState';
25
14
  import DefaultErrorMessage from './DefaultErrorMessage';
26
- import { Button } from "@patternfly/react-core/dist/dynamic/components/Button";
27
- import { EmptyState, EmptyStateBody, EmptyStateFooter, EmptyStateHeader, EmptyStateIcon, EmptyStateProps, EmptyStateVariant } from "@patternfly/react-core/dist/dynamic/components/EmptyState";
28
- import { Stack, StackItem } from "@patternfly/react-core/dist/dynamic/layouts/Stack";
29
- import '../ErrorState/error-state.css';
30
- var ErrorState = function (_a) {
31
- var _b = _a.errorTitle, errorTitle = _b === void 0 ? 'Something went wrong' : _b, errorDescription = _a.errorDescription, props = __rest(_a, ["errorTitle", "errorDescription"]);
32
- return (_jsxs(EmptyState, __assign({ variant: EmptyStateVariant.lg }, props, { className: "ins-c-error-state", children: [_jsx(EmptyStateHeader, { titleText: _jsx(_Fragment, { children: errorTitle }), icon: _jsx(EmptyStateIcon, { icon: ExclamationCircleIcon }), headingLevel: "h4" }), _jsx(EmptyStateBody, { children: _jsxs(Stack, { children: [!errorDescription && _jsx(StackItem, { children: "There was a problem processing the request. Please try again." }), _jsx(StackItem, { children: errorDescription || _jsx(DefaultErrorMessage, {}) })] }) }), _jsx(EmptyStateFooter, { children: document.referrer ? (_jsx(Button, { variant: "primary", onClick: function () { return history.back(); }, children: "Return to last page" })) : (_jsx(Button, { variant: "primary", component: "a", href: ".", target: "_blank", rel: "noopener noreferrer", children: "Go to home page" })) })] })));
33
- };
15
+ var ErrorState = function (props) { return _jsx(ErrorStatePF, __assign({ defaultErrorDescription: _jsx(DefaultErrorMessage, {}) }, props)); };
34
16
  export default ErrorState;
35
17
  //# sourceMappingURL=ErrorState.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ErrorState.js","sourceRoot":"","sources":["../../src/ErrorState/ErrorState.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAEA,OAAO,mBAAmB,MAAM,uBAAuB,CAAC;;;;AAaxD,OAAO,oBAAoB,CAAC;AAO5B,IAAM,UAAU,GAA6C,UAAC,EAAmE;IAAjE,IAAA,kBAAmC,EAAnC,UAAU,mBAAG,sBAAsB,KAAA,EAAE,gBAAgB,sBAAA,EAAK,KAAK,cAAjE,kCAAmE,CAAF;IAC7H,OAAO,CACL,MAAC,UAAU,aAAC,OAAO,EAAE,iBAAiB,CAAC,EAAE,IAAM,KAAK,IAAE,SAAS,EAAC,mBAAmB,aACjF,KAAC,gBAAgB,IAAC,SAAS,EAAE,4BAAG,UAAU,GAAI,EAAE,IAAI,EAAE,KAAC,cAAc,IAAC,IAAI,EAAE,qBAAqB,GAAI,EAAE,YAAY,EAAC,IAAI,GAAG,EAC3H,KAAC,cAAc,cACb,MAAC,KAAK,eACH,CAAC,gBAAgB,IAAI,KAAC,SAAS,gFAA0E,EAC1G,KAAC,SAAS,cAAE,gBAAgB,IAAI,KAAC,mBAAmB,KAAG,GAAa,IAC9D,GACO,EACjB,KAAC,gBAAgB,cACd,QAAQ,CAAC,QAAQ,CAAC,CAAC,CAAC,CACnB,KAAC,MAAM,IAAC,OAAO,EAAC,SAAS,EAAC,OAAO,EAAE,cAAM,OAAA,OAAO,CAAC,IAAI,EAAE,EAAd,CAAc,oCAE9C,CACV,CAAC,CAAC,CAAC,CACF,KAAC,MAAM,IAAC,OAAO,EAAC,SAAS,EAAC,SAAS,EAAC,GAAG,EAAC,IAAI,EAAC,GAAG,EAAC,MAAM,EAAC,QAAQ,EAAC,GAAG,EAAC,qBAAqB,gCAEjF,CACV,GACgB,KACR,CACd,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,UAAU,CAAC"}
1
+ {"version":3,"file":"ErrorState.js","sourceRoot":"","sources":["../../src/ErrorState/ErrorState.tsx"],"names":[],"mappings":";;;;;;;;;;;;AACA,OAAO,EAAE,UAAU,IAAI,YAAY,EAAE,MAAM,4DAA4D,CAAC;AACxG,OAAO,mBAAmB,MAAM,uBAAuB,CAAC;AAKxD,IAAM,UAAU,GAA4B,UAAC,KAAK,IAAK,OAAA,KAAC,YAAY,aAAC,uBAAuB,EAAE,KAAC,mBAAmB,KAAG,IAAM,KAAK,EAAI,EAA7E,CAA6E,CAAC;AAErI,eAAe,UAAU,CAAC"}
@@ -9,28 +9,8 @@ var __assign = (this && this.__assign) || function () {
9
9
  };
10
10
  return __assign.apply(this, arguments);
11
11
  };
12
- var __rest = (this && this.__rest) || function (s, e) {
13
- var t = {};
14
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
15
- t[p] = s[p];
16
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
17
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
18
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
19
- t[p[i]] = s[p[i]];
20
- }
21
- return t;
22
- };
23
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
24
- import React from 'react';
25
- import { Button } from "@patternfly/react-core/dist/dynamic/components/Button";
26
- import { EmptyState, EmptyStateActions, EmptyStateBody, EmptyStateFooter, EmptyStateHeader, EmptyStateIcon, EmptyStateProps, EmptyStateVariant } from "@patternfly/react-core/dist/dynamic/components/EmptyState";
27
- import LockIcon from "@patternfly/react-icons/dist/dynamic/icons/lock-icon";
28
- var ContactBody = function () { return (_jsxs(React.Fragment, { children: ["Contact your organization administrator(s) for more information or visit\u00A0", _jsx("a", { href: "./settings/my-user-access", children: "My User Access" }), "\u00A0 to learn more about your permissions."] })); };
29
- var NotAuthorized = function (_a) {
30
- var _b = _a.prevPageButtonText, prevPageButtonText = _b === void 0 ? 'Return to previous page' : _b, _c = _a.toLandingPageText, toLandingPageText = _c === void 0 ? 'Go to landing page' : _c, title = _a.title, _d = _a.actions, actions = _d === void 0 ? null : _d, serviceName = _a.serviceName, _e = _a.icon, Icon = _e === void 0 ? LockIcon : _e, _f = _a.description, description = _f === void 0 ? _jsx(ContactBody, {}) : _f, _g = _a.showReturnButton, showReturnButton = _g === void 0 ? true : _g, className = _a.className, props = __rest(_a, ["prevPageButtonText", "toLandingPageText", "title", "actions", "serviceName", "icon", "description", "showReturnButton", "className"]);
31
- var heading = title || "You do not have access to ".concat(serviceName);
32
- return (_jsxs(EmptyState, __assign({ variant: EmptyStateVariant.full, className: "ins-c-not-authorized ".concat(className || '') }, props, { children: [_jsx(EmptyStateHeader, { titleText: heading, icon: _jsx(EmptyStateIcon, { icon: Icon }), headingLevel: "h5" }), _jsx(EmptyStateBody, { children: description }), _jsxs(EmptyStateFooter, { children: [actions && _jsx(EmptyStateActions, { children: actions }), _jsx(EmptyStateActions, { children: showReturnButton &&
33
- (document.referrer ? (_jsx(Button, { variant: "primary", onClick: function () { return history.back(); }, children: prevPageButtonText })) : (_jsx(Button, { variant: "primary", component: "a", href: ".", children: toLandingPageText }))) })] })] })));
34
- };
12
+ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
13
+ import { NotAuthorized as NotAuthorizedPF } from '@patternfly/react-component-groups/dist/dynamic/NotAuthorized';
14
+ var NotAuthorized = function (props) { return (_jsx(NotAuthorizedPF, __assign({ description: _jsxs(_Fragment, { children: ["Contact your organization administrator(s) for more information or visit\u00A0", _jsx("a", { href: "./iam/my-user-access", children: "My User Access" }), "\u00A0to learn more about your permissions."] }) }, props))); };
35
15
  export default NotAuthorized;
36
16
  //# sourceMappingURL=NotAuthorized.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"NotAuthorized.js","sourceRoot":"","sources":["../../src/NotAuthorized/NotAuthorized.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;;;;AA4B1B,IAAM,WAAW,GAAG,cAAM,OAAA,CACxB,MAAC,KAAK,CAAC,QAAQ,iGAEb,YAAG,IAAI,EAAE,2BAA2B,+BAAoB,oDACzC,CAClB,EALyB,CAKzB,CAAC;AAEF,IAAM,aAAa,GAAgD,UAAC,EAWnE;IAVC,IAAA,0BAA8C,EAA9C,kBAAkB,mBAAG,yBAAyB,KAAA,EAC9C,yBAAwC,EAAxC,iBAAiB,mBAAG,oBAAoB,KAAA,EACxC,KAAK,WAAA,EACL,eAAc,EAAd,OAAO,mBAAG,IAAI,KAAA,EACd,WAAW,iBAAA,EACX,YAAqB,EAAf,IAAI,mBAAG,QAAQ,KAAA,EACrB,mBAA6B,EAA7B,WAAW,mBAAG,KAAC,WAAW,KAAG,KAAA,EAC7B,wBAAuB,EAAvB,gBAAgB,mBAAG,IAAI,KAAA,EACvB,SAAS,eAAA,EACN,KAAK,cAV0D,sIAWnE,CADS;IAER,IAAM,OAAO,GAAG,KAAK,IAAI,oCAA6B,WAAW,CAAE,CAAC;IACpE,OAAO,CACL,MAAC,UAAU,aAAC,OAAO,EAAE,iBAAiB,CAAC,IAAI,EAAE,SAAS,EAAE,+BAAwB,SAAS,IAAI,EAAE,CAAE,IAAM,KAAK,eAC1G,KAAC,gBAAgB,IAAC,SAAS,EAAE,OAAO,EAAE,IAAI,EAAE,KAAC,cAAc,IAAC,IAAI,EAAE,IAAI,GAAI,EAAE,YAAY,EAAC,IAAI,GAAG,EAChG,KAAC,cAAc,cAAE,WAAW,GAAkB,EAC9C,MAAC,gBAAgB,eACd,OAAO,IAAI,KAAC,iBAAiB,cAAE,OAAO,GAAqB,EAC5D,KAAC,iBAAiB,cACf,gBAAgB;4BACf,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC,CAAC,CACnB,KAAC,MAAM,IAAC,OAAO,EAAC,SAAS,EAAC,OAAO,EAAE,cAAM,OAAA,OAAO,CAAC,IAAI,EAAE,EAAd,CAAc,YACpD,kBAAkB,GACZ,CACV,CAAC,CAAC,CAAC,CACF,KAAC,MAAM,IAAC,OAAO,EAAC,SAAS,EAAC,SAAS,EAAC,GAAG,EAAC,IAAI,EAAC,GAAG,YAC7C,iBAAiB,GACX,CACV,CAAC,GACc,IACH,KACR,CACd,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,aAAa,CAAC"}
1
+ {"version":3,"file":"NotAuthorized.js","sourceRoot":"","sources":["../../src/NotAuthorized/NotAuthorized.tsx"],"names":[],"mappings":";;;;;;;;;;;;AACA,OAAO,EAAE,aAAa,IAAI,eAAe,EAAE,MAAM,+DAA+D,CAAC;AAKjH,IAAM,aAAa,GAA4B,UAAC,KAAK,IAAK,OAAA,CACxD,KAAC,eAAe,aACd,WAAW,EACT,gHACgF,YAAG,IAAI,EAAE,sBAAsB,+BAAoB,mDAEhI,IAED,KAAK,EACT,CACH,EAVyD,CAUzD,CAAC;AAEF,eAAe,aAAa,CAAC"}
package/esm/index.css CHANGED
@@ -18,42 +18,6 @@ i.Ansible svg {
18
18
  top: 0.25rem;
19
19
  }
20
20
 
21
- :root {
22
- --ins-color--orange: #ec7a08;
23
- }
24
-
25
- i.ins-battery {
26
- display: inline-block;
27
- line-height: 0;
28
- }
29
- i.ins-battery svg {
30
- position: relative;
31
- top: var(--pf-v5-global--spacer--sm);
32
- position: relative;
33
- height: 28px;
34
- height: 1.75rem;
35
- }
36
-
37
- .ins-battery-1 svg path, .ins-battery-low svg path, .ins-battery-info svg path {
38
- fill: var(--pf-v5-global--disabled-color--200);
39
- }
40
-
41
- .ins-battery-2 svg path, .ins-battery-medium svg path, .ins-battery-warn svg path {
42
- fill: var(--pf-v5-global--warning-color--100);
43
- }
44
-
45
- .ins-battery-3 svg path, .ins-battery-high svg path, .ins-battery-error svg path {
46
- fill: var(--ins-color--orange);
47
- }
48
-
49
- .ins-battery-4 svg path, .ins-battery-critical svg path {
50
- fill: var(--pf-v5-global--danger-color--100);
51
- }
52
-
53
- .ins-battery-0 svg path, .ins-battery-null svg path {
54
- fill: var(--pf-v5-global--disabled-color--200);
55
- }
56
-
57
21
  .ins-c-bulk-select .pf-v5-c-dropdown__toggle-check span.pf-v5-c-dropdown__toggle-text {
58
22
  display: initial;
59
23
  }
@@ -238,20 +202,6 @@ button.pf-v5-c-menu-toggle {
238
202
  justify-content: center;
239
203
  }
240
204
 
241
- :root {
242
- --ins-color--orange: #ec7a08;
243
- }
244
-
245
- .ins-error-boundary-stack {
246
- font-family: "monospace";
247
- font-size: var(--pf-v5-global--icon--FontSize--md);
248
- text-align: left;
249
- background-color: white;
250
- border-style: solid;
251
- border-color: var(--pf-v5-global--BackgroundColor--dark-300);
252
- padding: var(--pf-v5-global--spacer--sm);
253
- }
254
-
255
205
  .ins-c-chip-filters .ins-c-chip-group__plain.pf-m-toolbar > li:not(.pf-m-overflow) {
256
206
  background: none;
257
207
  padding: 0;
package/esm/index.scss CHANGED
@@ -1,11 +1,9 @@
1
1
  @import './Ansible/ansible.scss';
2
- @import './Battery/battery.scss';
3
2
  @import './BulkSelect/bulk-select.scss';
4
3
  @import './ConditionalFilter/conditional-filter.scss';
5
4
  @import './ConditionalFilter/group-filter.scss';
6
5
  @import './CullingInfo/CullingInformation.scss';
7
6
  @import './EmptyTable/EmptyTable.scss';
8
- @import './ErrorBoundary/ErrorBoundary.scss';
9
7
  @import './FilterChips/filter-chips.scss';
10
8
  @import './FilterHooks/tagFilterHook.scss';
11
9
  @import './Filters/filter-dropdown.scss';
package/index.css CHANGED
@@ -18,42 +18,6 @@ i.Ansible svg {
18
18
  top: 0.25rem;
19
19
  }
20
20
 
21
- :root {
22
- --ins-color--orange: #ec7a08;
23
- }
24
-
25
- i.ins-battery {
26
- display: inline-block;
27
- line-height: 0;
28
- }
29
- i.ins-battery svg {
30
- position: relative;
31
- top: var(--pf-v5-global--spacer--sm);
32
- position: relative;
33
- height: 28px;
34
- height: 1.75rem;
35
- }
36
-
37
- .ins-battery-1 svg path, .ins-battery-low svg path, .ins-battery-info svg path {
38
- fill: var(--pf-v5-global--disabled-color--200);
39
- }
40
-
41
- .ins-battery-2 svg path, .ins-battery-medium svg path, .ins-battery-warn svg path {
42
- fill: var(--pf-v5-global--warning-color--100);
43
- }
44
-
45
- .ins-battery-3 svg path, .ins-battery-high svg path, .ins-battery-error svg path {
46
- fill: var(--ins-color--orange);
47
- }
48
-
49
- .ins-battery-4 svg path, .ins-battery-critical svg path {
50
- fill: var(--pf-v5-global--danger-color--100);
51
- }
52
-
53
- .ins-battery-0 svg path, .ins-battery-null svg path {
54
- fill: var(--pf-v5-global--disabled-color--200);
55
- }
56
-
57
21
  .ins-c-bulk-select .pf-v5-c-dropdown__toggle-check span.pf-v5-c-dropdown__toggle-text {
58
22
  display: initial;
59
23
  }
@@ -238,20 +202,6 @@ button.pf-v5-c-menu-toggle {
238
202
  justify-content: center;
239
203
  }
240
204
 
241
- :root {
242
- --ins-color--orange: #ec7a08;
243
- }
244
-
245
- .ins-error-boundary-stack {
246
- font-family: "monospace";
247
- font-size: var(--pf-v5-global--icon--FontSize--md);
248
- text-align: left;
249
- background-color: white;
250
- border-style: solid;
251
- border-color: var(--pf-v5-global--BackgroundColor--dark-300);
252
- padding: var(--pf-v5-global--spacer--sm);
253
- }
254
-
255
205
  .ins-c-chip-filters .ins-c-chip-group__plain.pf-m-toolbar > li:not(.pf-m-overflow) {
256
206
  background: none;
257
207
  padding: 0;
package/index.scss CHANGED
@@ -1,11 +1,9 @@
1
1
  @import './Ansible/ansible.scss';
2
- @import './Battery/battery.scss';
3
2
  @import './BulkSelect/bulk-select.scss';
4
3
  @import './ConditionalFilter/conditional-filter.scss';
5
4
  @import './ConditionalFilter/group-filter.scss';
6
5
  @import './CullingInfo/CullingInformation.scss';
7
6
  @import './EmptyTable/EmptyTable.scss';
8
- @import './ErrorBoundary/ErrorBoundary.scss';
9
7
  @import './FilterChips/filter-chips.scss';
10
8
  @import './FilterHooks/tagFilterHook.scss';
11
9
  @import './Filters/filter-dropdown.scss';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@redhat-cloud-services/frontend-components",
3
- "version": "4.0.3",
3
+ "version": "4.0.5",
4
4
  "description": "Common components for RedHat Cloud Services project.",
5
5
  "main": "index.js",
6
6
  "module": "esm/index.js",
@@ -49,6 +49,7 @@
49
49
  "dependencies": {
50
50
  "@redhat-cloud-services/frontend-components-utilities": "^4.0.0",
51
51
  "@redhat-cloud-services/types": "^0.0.24",
52
+ "@patternfly/react-component-groups": "^1.0.13",
52
53
  "@scalprum/core": "^0.5.1",
53
54
  "@scalprum/react-core": "^0.5.1",
54
55
  "sanitize-html": "^2.7.2"
@@ -1,35 +0,0 @@
1
- :root {
2
- --ins-color--orange: #ec7a08;
3
- }
4
-
5
- i.ins-battery {
6
- display: inline-block;
7
- line-height: 0;
8
- }
9
- i.ins-battery svg {
10
- position: relative;
11
- top: var(--pf-v5-global--spacer--sm);
12
- position: relative;
13
- height: 28px;
14
- height: 1.75rem;
15
- }
16
-
17
- .ins-battery-1 svg path, .ins-battery-low svg path, .ins-battery-info svg path {
18
- fill: var(--pf-v5-global--disabled-color--200);
19
- }
20
-
21
- .ins-battery-2 svg path, .ins-battery-medium svg path, .ins-battery-warn svg path {
22
- fill: var(--pf-v5-global--warning-color--100);
23
- }
24
-
25
- .ins-battery-3 svg path, .ins-battery-high svg path, .ins-battery-error svg path {
26
- fill: var(--ins-color--orange);
27
- }
28
-
29
- .ins-battery-4 svg path, .ins-battery-critical svg path {
30
- fill: var(--pf-v5-global--danger-color--100);
31
- }
32
-
33
- .ins-battery-0 svg path, .ins-battery-null svg path {
34
- fill: var(--pf-v5-global--disabled-color--200);
35
- }
@@ -1,47 +0,0 @@
1
- @import '~@redhat-cloud-services/frontend-components-utilities/styles/_all.scss';
2
-
3
- @mixin setBatteryFont() {
4
- position: relative;
5
- @include rem(height, 28px);
6
- }
7
-
8
- i.ins-battery {
9
- display: inline-block;
10
- line-height: 0;
11
- svg {
12
- position: relative;
13
- top: var(--pf-v5-global--spacer--sm);
14
- @include setBatteryFont;
15
- }
16
- }
17
-
18
- // Setting the icons
19
- .ins-battery-1, .ins-battery-low, .ins-battery-info {
20
- svg {
21
- path { fill: $ins-color--gray; }
22
- }
23
- }
24
-
25
- .ins-battery-2, .ins-battery-medium, .ins-battery-warn {
26
- svg {
27
- path { fill: $ins-color--medium; }
28
- }
29
- }
30
-
31
- .ins-battery-3, .ins-battery-high, .ins-battery-error{
32
- svg {
33
- path { fill: $ins-color--high; }
34
- }
35
- }
36
-
37
- .ins-battery-4, .ins-battery-critical {
38
- svg {
39
- path { fill: $ins-color--critical; }
40
- }
41
- }
42
-
43
- .ins-battery-0, .ins-battery-null {
44
- svg {
45
- path { fill: $ins-color--gray; }
46
- }
47
- }
@@ -1,13 +0,0 @@
1
- :root {
2
- --ins-color--orange: #ec7a08;
3
- }
4
-
5
- .ins-error-boundary-stack {
6
- font-family: "monospace";
7
- font-size: var(--pf-v5-global--icon--FontSize--md);
8
- text-align: left;
9
- background-color: white;
10
- border-style: solid;
11
- border-color: var(--pf-v5-global--BackgroundColor--dark-300);
12
- padding: var(--pf-v5-global--spacer--sm);
13
- }
@@ -1,11 +0,0 @@
1
- @import '~@redhat-cloud-services/frontend-components-utilities/styles/_all.scss';
2
-
3
- .ins-error-boundary-stack {
4
- font-family: 'monospace';
5
- font-size: var(--pf-v5-global--icon--FontSize--md);
6
- text-align: left;
7
- background-color: white;
8
- border-style: solid;
9
- border-color: var(--pf-v5-global--BackgroundColor--dark-300);
10
- padding: var(--pf-v5-global--spacer--sm);
11
- }
@@ -1,6 +0,0 @@
1
- import * as React from 'react';
2
- interface ErrorStackProps {
3
- error: Error;
4
- }
5
- declare const ErrorStack: React.FunctionComponent<ErrorStackProps>;
6
- export default ErrorStack;
@@ -1,17 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- var jsx_runtime_1 = require("react/jsx-runtime");
4
- var react_core_1 = require("@patternfly/react-core");
5
- var errorStackClass = 'ins-error-boundary-stack';
6
- var ErrorStack = function (_a) {
7
- var error = _a.error;
8
- if (error.stack) {
9
- return ((0, jsx_runtime_1.jsx)(react_core_1.Text, { className: errorStackClass, children: error.stack.split('\n').map(function (line) { return ((0, jsx_runtime_1.jsx)("div", { children: line }, line)); }) }));
10
- }
11
- if (error.name && error.message) {
12
- return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(react_core_1.Text, { component: "h6", children: error.name }), (0, jsx_runtime_1.jsx)(react_core_1.Text, { className: errorStackClass, component: "blockquote", children: error.message })] }));
13
- }
14
- return ((0, jsx_runtime_1.jsx)(react_core_1.Text, { className: errorStackClass, component: "blockquote", children: error.toString() }));
15
- };
16
- exports.default = ErrorStack;
17
- //# sourceMappingURL=ErrorStack.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ErrorStack.js","sourceRoot":"","sources":["../src/ErrorBoundary/ErrorStack.tsx"],"names":[],"mappings":";;;AACA,qDAA8C;AAM9C,IAAM,eAAe,GAAG,0BAA0B,CAAC;AAEnD,IAAM,UAAU,GAA6C,UAAC,EAAS;QAAP,KAAK,WAAA;IACnE,IAAI,KAAK,CAAC,KAAK,EAAE;QACf,OAAO,CACL,uBAAC,iBAAI,IAAC,SAAS,EAAE,eAAe,YAC7B,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,UAAC,IAAI,IAAK,OAAA,CACrC,0CAAiB,IAAI,IAAX,IAAI,CAAc,CAC7B,EAFsC,CAEtC,CAAC,GACG,CACR,CAAC;KACH;IAED,IAAI,KAAK,CAAC,IAAI,IAAI,KAAK,CAAC,OAAO,EAAE;QAC/B,OAAO,CACL,6DACE,uBAAC,iBAAI,IAAC,SAAS,EAAC,IAAI,YAAE,KAAK,CAAC,IAAI,GAAQ,EACxC,uBAAC,iBAAI,IAAC,SAAS,EAAE,eAAe,EAAE,SAAS,EAAC,YAAY,YACrD,KAAK,CAAC,OAAO,GACT,IACN,CACJ,CAAC;KACH;IAED,OAAO,CACL,uBAAC,iBAAI,IAAC,SAAS,EAAE,eAAe,EAAE,SAAS,EAAC,YAAY,YACrD,KAAK,CAAC,QAAQ,EAAE,GACZ,CACR,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,UAAU,CAAC"}
@@ -1,3 +0,0 @@
1
- .ins-c-error-state.pf-v5-c-empty-state .pf-v5-c-empty-state__icon svg {
2
- fill: var(--pf-v5-global--danger-color--100);
3
- }
@@ -1,5 +0,0 @@
1
- .ins-c-error-state.pf-v5-c-empty-state {
2
- .pf-v5-c-empty-state__icon svg {
3
- fill: var(--pf-v5-global--danger-color--100);
4
- }
5
- }
@@ -1,35 +0,0 @@
1
- :root {
2
- --ins-color--orange: #ec7a08;
3
- }
4
-
5
- i.ins-battery {
6
- display: inline-block;
7
- line-height: 0;
8
- }
9
- i.ins-battery svg {
10
- position: relative;
11
- top: var(--pf-v5-global--spacer--sm);
12
- position: relative;
13
- height: 28px;
14
- height: 1.75rem;
15
- }
16
-
17
- .ins-battery-1 svg path, .ins-battery-low svg path, .ins-battery-info svg path {
18
- fill: var(--pf-v5-global--disabled-color--200);
19
- }
20
-
21
- .ins-battery-2 svg path, .ins-battery-medium svg path, .ins-battery-warn svg path {
22
- fill: var(--pf-v5-global--warning-color--100);
23
- }
24
-
25
- .ins-battery-3 svg path, .ins-battery-high svg path, .ins-battery-error svg path {
26
- fill: var(--ins-color--orange);
27
- }
28
-
29
- .ins-battery-4 svg path, .ins-battery-critical svg path {
30
- fill: var(--pf-v5-global--danger-color--100);
31
- }
32
-
33
- .ins-battery-0 svg path, .ins-battery-null svg path {
34
- fill: var(--pf-v5-global--disabled-color--200);
35
- }
@@ -1,47 +0,0 @@
1
- @import '~@redhat-cloud-services/frontend-components-utilities/styles/_all.scss';
2
-
3
- @mixin setBatteryFont() {
4
- position: relative;
5
- @include rem(height, 28px);
6
- }
7
-
8
- i.ins-battery {
9
- display: inline-block;
10
- line-height: 0;
11
- svg {
12
- position: relative;
13
- top: var(--pf-v5-global--spacer--sm);
14
- @include setBatteryFont;
15
- }
16
- }
17
-
18
- // Setting the icons
19
- .ins-battery-1, .ins-battery-low, .ins-battery-info {
20
- svg {
21
- path { fill: $ins-color--gray; }
22
- }
23
- }
24
-
25
- .ins-battery-2, .ins-battery-medium, .ins-battery-warn {
26
- svg {
27
- path { fill: $ins-color--medium; }
28
- }
29
- }
30
-
31
- .ins-battery-3, .ins-battery-high, .ins-battery-error{
32
- svg {
33
- path { fill: $ins-color--high; }
34
- }
35
- }
36
-
37
- .ins-battery-4, .ins-battery-critical {
38
- svg {
39
- path { fill: $ins-color--critical; }
40
- }
41
- }
42
-
43
- .ins-battery-0, .ins-battery-null {
44
- svg {
45
- path { fill: $ins-color--gray; }
46
- }
47
- }
@@ -1,13 +0,0 @@
1
- :root {
2
- --ins-color--orange: #ec7a08;
3
- }
4
-
5
- .ins-error-boundary-stack {
6
- font-family: "monospace";
7
- font-size: var(--pf-v5-global--icon--FontSize--md);
8
- text-align: left;
9
- background-color: white;
10
- border-style: solid;
11
- border-color: var(--pf-v5-global--BackgroundColor--dark-300);
12
- padding: var(--pf-v5-global--spacer--sm);
13
- }
@@ -1,11 +0,0 @@
1
- @import '~@redhat-cloud-services/frontend-components-utilities/styles/_all.scss';
2
-
3
- .ins-error-boundary-stack {
4
- font-family: 'monospace';
5
- font-size: var(--pf-v5-global--icon--FontSize--md);
6
- text-align: left;
7
- background-color: white;
8
- border-style: solid;
9
- border-color: var(--pf-v5-global--BackgroundColor--dark-300);
10
- padding: var(--pf-v5-global--spacer--sm);
11
- }
@@ -1,15 +0,0 @@
1
- import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { Text } from "@patternfly/react-core/dist/dynamic/components/Text";
3
- var errorStackClass = 'ins-error-boundary-stack';
4
- var ErrorStack = function (_a) {
5
- var error = _a.error;
6
- if (error.stack) {
7
- return (_jsx(Text, { className: errorStackClass, children: error.stack.split('\n').map(function (line) { return (_jsx("div", { children: line }, line)); }) }));
8
- }
9
- if (error.name && error.message) {
10
- return (_jsxs(_Fragment, { children: [_jsx(Text, { component: "h6", children: error.name }), _jsx(Text, { className: errorStackClass, component: "blockquote", children: error.message })] }));
11
- }
12
- return (_jsx(Text, { className: errorStackClass, component: "blockquote", children: error.toString() }));
13
- };
14
- export default ErrorStack;
15
- //# sourceMappingURL=ErrorStack.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ErrorStack.js","sourceRoot":"","sources":["../../src/ErrorBoundary/ErrorStack.tsx"],"names":[],"mappings":";;AAOA,IAAM,eAAe,GAAG,0BAA0B,CAAC;AAEnD,IAAM,UAAU,GAA6C,UAAC,EAAS;QAAP,KAAK,WAAA;IACnE,IAAI,KAAK,CAAC,KAAK,EAAE;QACf,OAAO,CACL,KAAC,IAAI,IAAC,SAAS,EAAE,eAAe,YAC7B,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,UAAC,IAAI,IAAK,OAAA,CACrC,wBAAiB,IAAI,IAAX,IAAI,CAAc,CAC7B,EAFsC,CAEtC,CAAC,GACG,CACR,CAAC;KACH;IAED,IAAI,KAAK,CAAC,IAAI,IAAI,KAAK,CAAC,OAAO,EAAE;QAC/B,OAAO,CACL,8BACE,KAAC,IAAI,IAAC,SAAS,EAAC,IAAI,YAAE,KAAK,CAAC,IAAI,GAAQ,EACxC,KAAC,IAAI,IAAC,SAAS,EAAE,eAAe,EAAE,SAAS,EAAC,YAAY,YACrD,KAAK,CAAC,OAAO,GACT,IACN,CACJ,CAAC;KACH;IAED,OAAO,CACL,KAAC,IAAI,IAAC,SAAS,EAAE,eAAe,EAAE,SAAS,EAAC,YAAY,YACrD,KAAK,CAAC,QAAQ,EAAE,GACZ,CACR,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,UAAU,CAAC"}
@@ -1,3 +0,0 @@
1
- .ins-c-error-state.pf-v5-c-empty-state .pf-v5-c-empty-state__icon svg {
2
- fill: var(--pf-v5-global--danger-color--100);
3
- }
@@ -1,5 +0,0 @@
1
- .ins-c-error-state.pf-v5-c-empty-state {
2
- .pf-v5-c-empty-state__icon svg {
3
- fill: var(--pf-v5-global--danger-color--100);
4
- }
5
- }