@redhat-cloud-services/frontend-components 3.11.8 → 3.11.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/InsightsLabel.d.ts +0 -13
- package/TableToolbar.d.ts +0 -13
- package/esm/InsightsLabel.js +0 -41
- package/esm/InsightsLabel.js.map +0 -1
package/package.json
CHANGED
package/InsightsLabel.d.ts
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { LabelProps } from '@patternfly/react-core';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
export interface InsightsLabelProps extends LabelProps {
|
|
4
|
-
value?: number;
|
|
5
|
-
text?: React.ReactNode;
|
|
6
|
-
hideIcon?: boolean;
|
|
7
|
-
className?: string;
|
|
8
|
-
rest: {
|
|
9
|
-
[key: string]: any;
|
|
10
|
-
};
|
|
11
|
-
}
|
|
12
|
-
declare const InsightsLabel: React.FunctionComponent<InsightsLabelProps>;
|
|
13
|
-
export default InsightsLabel;
|
package/TableToolbar.d.ts
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { ToolbarProps } from '@patternfly/react-core';
|
|
3
|
-
import './TableToolbar.scss';
|
|
4
|
-
export interface TableToolbarProps extends Omit<Omit<ToolbarProps, 'selected'>, 'ref'> {
|
|
5
|
-
isFooter?: boolean;
|
|
6
|
-
results?: number;
|
|
7
|
-
className?: string;
|
|
8
|
-
selected?: number;
|
|
9
|
-
ouiaId?: string;
|
|
10
|
-
ouiaSafe?: boolean;
|
|
11
|
-
}
|
|
12
|
-
declare const TableToolbar: React.FunctionComponent<TableToolbarProps>;
|
|
13
|
-
export default TableToolbar;
|
package/esm/InsightsLabel.js
DELETED
|
@@ -1,41 +0,0 @@
|
|
|
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];
|
|
7
|
-
}
|
|
8
|
-
return t;
|
|
9
|
-
};
|
|
10
|
-
return __assign.apply(this, arguments);
|
|
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 } from "react/jsx-runtime";
|
|
24
|
-
import AngleDoubleDownIcon from "@patternfly/react-icons/dist/dynamic/icons/angle-double-down-icon";
|
|
25
|
-
import AngleDoubleUpIcon from "@patternfly/react-icons/dist/dynamic/icons/angle-double-up-icon";
|
|
26
|
-
import CriticalRiskIcon from "@patternfly/react-icons/dist/dynamic/icons/critical-risk-icon";
|
|
27
|
-
import EqualsIcon from "@patternfly/react-icons/dist/dynamic/icons/equals-icon";
|
|
28
|
-
import { Label, LabelProps } from "@patternfly/react-core/dist/dynamic/components/Label";
|
|
29
|
-
import { Button } from "@patternfly/react-core/dist/dynamic/components/Button";
|
|
30
|
-
var VALUE_TO_STATE = {
|
|
31
|
-
1: { icon: _jsx(AngleDoubleDownIcon, {}), text: 'Low', color: 'blue' },
|
|
32
|
-
2: { icon: _jsx(EqualsIcon, {}), text: 'Moderate', color: 'gold' },
|
|
33
|
-
3: { icon: _jsx(AngleDoubleUpIcon, {}), text: 'Important', color: 'orange' },
|
|
34
|
-
4: { icon: _jsx(CriticalRiskIcon, {}), text: 'Critical', color: 'red' },
|
|
35
|
-
};
|
|
36
|
-
var InsightsLabel = function (_a) {
|
|
37
|
-
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"]);
|
|
38
|
-
return (_jsx(Label, __assign({}, rest, props, { color: VALUE_TO_STATE[value].color, icon: !hideIcon && VALUE_TO_STATE[value].icon, children: text || VALUE_TO_STATE[value].text })));
|
|
39
|
-
};
|
|
40
|
-
export default InsightsLabel;
|
|
41
|
-
//# sourceMappingURL=InsightsLabel.js.map
|
package/esm/InsightsLabel.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"InsightsLabel.js","sourceRoot":"","sources":["../src/InsightsLabel/InsightsLabel.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAcA,IAAM,cAAc,GAA8B;IAChD,CAAC,EAAE,EAAE,IAAI,EAAE,KAAC,mBAAmB,KAAG,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE;IAChE,CAAC,EAAE,EAAE,IAAI,EAAE,KAAC,UAAU,KAAG,EAAE,IAAI,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,EAAE;IAC5D,CAAC,EAAE,EAAE,IAAI,EAAE,KAAC,iBAAiB,KAAG,EAAE,IAAI,EAAE,WAAW,EAAE,KAAK,EAAE,QAAQ,EAAE;IACtE,CAAC,EAAE,EAAE,IAAI,EAAE,KAAC,gBAAgB,KAAG,EAAE,IAAI,EAAE,UAAU,EAAE,KAAK,EAAE,KAAK,EAAE;CAClE,CAAC;AAaF,IAAM,aAAa,GAAgD,UAAC,EAA6C;IAA3C,IAAA,aAAS,EAAT,KAAK,mBAAG,CAAC,KAAA,EAAE,IAAI,UAAA,EAAE,QAAQ,cAAA,EAAE,IAAI,UAAA,EAAK,KAAK,cAA3C,qCAA6C,CAAF;IAC7G,OAAO,CACL,KAAC,KAAK,eAAK,IAAI,EAAM,KAAK,IAAE,KAAK,EAAE,cAAc,CAAC,KAAK,CAAC,CAAC,KAAK,EAAE,IAAI,EAAE,CAAC,QAAQ,IAAI,cAAc,CAAC,KAAK,CAAC,CAAC,IAAI,YAC1G,IAAI,IAAI,cAAc,CAAC,KAAK,CAAC,CAAC,IAAI,IAC7B,CACT,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,aAAa,CAAC"}
|