@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.
- package/Battery/Battery.d.ts +1 -9
- package/Battery/Battery.js +2 -76
- package/Battery/Battery.js.map +1 -1
- package/Battery/CriticalBattery.js +2 -2
- package/Battery/CriticalBattery.js.map +1 -1
- package/Battery/HighBattery.js +2 -2
- package/Battery/HighBattery.js.map +1 -1
- package/Battery/LowBattery.js +2 -2
- package/Battery/LowBattery.js.map +1 -1
- package/Battery/MediumBattery.js +2 -2
- package/Battery/MediumBattery.js.map +1 -1
- package/Battery/NullBattery.js +2 -2
- package/Battery/NullBattery.js.map +1 -1
- package/ErrorBoundary/ErrorBoundary.d.ts +3 -18
- package/ErrorBoundary/ErrorBoundary.js +13 -76
- package/ErrorBoundary/ErrorBoundary.js.map +1 -1
- package/ErrorState/ErrorState.d.ts +1 -7
- package/ErrorState/ErrorState.js +2 -18
- package/ErrorState/ErrorState.js.map +1 -1
- package/NotAuthorized/NotAuthorized.d.ts +1 -13
- package/NotAuthorized/NotAuthorized.js +2 -24
- package/NotAuthorized/NotAuthorized.js.map +1 -1
- package/esm/Battery/Battery.js +2 -73
- package/esm/Battery/Battery.js.map +1 -1
- package/esm/Battery/CriticalBattery.js +2 -2
- package/esm/Battery/CriticalBattery.js.map +1 -1
- package/esm/Battery/HighBattery.js +2 -2
- package/esm/Battery/HighBattery.js.map +1 -1
- package/esm/Battery/LowBattery.js +2 -2
- package/esm/Battery/LowBattery.js.map +1 -1
- package/esm/Battery/MediumBattery.js +2 -2
- package/esm/Battery/MediumBattery.js.map +1 -1
- package/esm/Battery/NullBattery.js +2 -2
- package/esm/Battery/NullBattery.js.map +1 -1
- package/esm/ErrorBoundary/ErrorBoundary.js +14 -51
- package/esm/ErrorBoundary/ErrorBoundary.js.map +1 -1
- package/esm/ErrorState/ErrorState.js +3 -21
- package/esm/ErrorState/ErrorState.js.map +1 -1
- package/esm/NotAuthorized/NotAuthorized.js +3 -23
- package/esm/NotAuthorized/NotAuthorized.js.map +1 -1
- package/esm/index.css +0 -50
- package/esm/index.scss +0 -2
- package/index.css +0 -50
- package/index.scss +0 -2
- package/package.json +2 -1
- package/Battery/battery.css +0 -35
- package/Battery/battery.scss +0 -47
- package/ErrorBoundary/ErrorBoundary.css +0 -13
- package/ErrorBoundary/ErrorBoundary.scss +0 -11
- package/ErrorBoundary/ErrorStack.d.ts +0 -6
- package/ErrorBoundary/ErrorStack.js +0 -17
- package/ErrorBoundary/ErrorStack.js.map +0 -1
- package/ErrorState/error-state.css +0 -3
- package/ErrorState/error-state.scss +0 -5
- package/esm/Battery/battery.css +0 -35
- package/esm/Battery/battery.scss +0 -47
- package/esm/ErrorBoundary/ErrorBoundary.css +0 -13
- package/esm/ErrorBoundary/ErrorBoundary.scss +0 -11
- package/esm/ErrorBoundary/ErrorStack.js +0 -15
- package/esm/ErrorBoundary/ErrorStack.js.map +0 -1
- package/esm/ErrorState/error-state.css +0 -3
- package/esm/ErrorState/error-state.scss +0 -5
|
@@ -1,54 +1,17 @@
|
|
|
1
|
-
var
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
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
|
|
8
|
+
return t;
|
|
50
9
|
};
|
|
51
|
-
return
|
|
52
|
-
}
|
|
53
|
-
|
|
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":"
|
|
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
|
-
|
|
13
|
-
|
|
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
|
-
|
|
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":"
|
|
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
|
-
|
|
13
|
-
|
|
14
|
-
|
|
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":"
|
|
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
|
+
"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"
|
package/Battery/battery.css
DELETED
|
@@ -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
|
-
}
|
package/Battery/battery.scss
DELETED
|
@@ -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,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"}
|
package/esm/Battery/battery.css
DELETED
|
@@ -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
|
-
}
|
package/esm/Battery/battery.scss
DELETED
|
@@ -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"}
|