@redhat-cloud-services/frontend-components 4.0.10 → 4.0.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,7 +1,4 @@
1
1
  import React from 'react';
2
- import './ansible.scss';
3
- export interface AnsibleProps extends React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> {
4
- unsupported?: boolean | number;
5
- }
2
+ import { AnsibleProps } from '@patternfly/react-component-groups/dist/dynamic/Ansible';
6
3
  declare const Ansible: React.FunctionComponent<AnsibleProps>;
7
4
  export default Ansible;
@@ -10,42 +10,12 @@ var __assign = (this && this.__assign) || function () {
10
10
  };
11
11
  return __assign.apply(this, arguments);
12
12
  };
13
- var __rest = (this && this.__rest) || function (s, e) {
14
- var t = {};
15
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
16
- t[p] = s[p];
17
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
18
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
19
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
20
- t[p[i]] = s[p[i]];
21
- }
22
- return t;
23
- };
24
13
  var __importDefault = (this && this.__importDefault) || function (mod) {
25
14
  return (mod && mod.__esModule) ? mod : { "default": mod };
26
15
  };
27
16
  Object.defineProperty(exports, "__esModule", { value: true });
28
17
  var jsx_runtime_1 = require("react/jsx-runtime");
29
- var react_1 = __importDefault(require("react"));
30
- var classnames_1 = __importDefault(require("classnames"));
31
- require("./ansible.css");
32
- var Ansible = function (_a) {
33
- var _b, _c, _d, _e;
34
- var unsupported = _a.unsupported, className = _a.className, props = __rest(_a, ["unsupported", "className"]);
35
- var ansibleLogoClass = (0, classnames_1.default)(className, 'Ansible', (_b = {}, _b["is-supported"] = !unsupported || unsupported === 0, _b), (_c = {}, _c["is-unsupported"] = unsupported || unsupported === 1, _c));
36
- var unsupportedSlash;
37
- var ariaLabels = {};
38
- if (unsupported) {
39
- unsupportedSlash = ((0, jsx_runtime_1.jsxs)(react_1.default.Fragment, { children: [(0, jsx_runtime_1.jsx)("rect", { x: "1245.1", y: "272.4", transform: "matrix(-0.7071 0.7071 -0.7071 -0.7071 3082.5815 -510.474)", className: "st0", width: "803.8", height: "221.5" }), (0, jsx_runtime_1.jsx)("rect", { x: "-279.7", y: "904", transform: "matrix(-0.7071 0.7071 -0.7071 -0.7071 2450.9683 1014.3757)", className: "st1", width: "2590.2", height: "221.5" }), (0, jsx_runtime_1.jsx)("rect", { x: "17.1", y: "1620.5", transform: "matrix(-0.7071 0.7071 -0.7071 -0.7071 1734.4641 2744.1697)", className: "st0", width: "563.7", height: "221.5" })] }));
40
- ariaLabels = (_d = {},
41
- _d['disabled'] = 'disabled',
42
- _d['aria-label'] = 'Does not have Ansible support',
43
- _d);
44
- }
45
- else {
46
- ariaLabels = (_e = {}, _e['aria-label'] = 'Has Ansible support', _e);
47
- }
48
- return ((0, jsx_runtime_1.jsx)("i", __assign({ className: ansibleLogoClass }, ariaLabels, props, { "widget-type": "InsightsAnsibleSupport", children: (0, jsx_runtime_1.jsxs)("svg", { version: "1.1", id: "Layer_1", x: "0px", y: "0px", viewBox: "0 0 2032 2027.2", style: { enableBackground: 'new 0 0 2032 2027.2' }, children: [(0, jsx_runtime_1.jsx)("path", { className: "st0", d: "M2030.8,1014.8c0,559.2-453.3,1012.4-1012.4,1012.4C459.2,2027.2,5.9,1574,5.9,1014.8\n C5.9,455.7,459.2,2.4,1018.3,2.4C1577.5,2.4,2030.8,455.7,2030.8,1014.8 M1035.4,620.9l262,646.6L901.7,955.8L1035.4,620.9\n L1035.4,620.9z M1500.8,1416.5l-403-969.9c-11.5-28-34.5-42.8-62.4-42.8c-28,0-52.7,14.8-64.2,42.8L528.9,1510.4h151.3l175.1-438.6\n l522.5,422.1c21,17,36.2,24.7,55.9,24.7c39.5,0,74-29.6,74-72.3C1507.7,1439.4,1505.3,1428.3,1500.8,1416.5L1500.8,1416.5z" }), unsupportedSlash] }) })));
49
- };
18
+ var Ansible_1 = __importDefault(require("@patternfly/react-component-groups/dist/dynamic/Ansible"));
19
+ var Ansible = function (props) { return (0, jsx_runtime_1.jsx)(Ansible_1.default, __assign({}, props)); };
50
20
  exports.default = Ansible;
51
21
  //# sourceMappingURL=Ansible.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Ansible.js","sourceRoot":"","sources":["../src/Ansible/Ansible.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,gDAA0B;AAE1B,0DAAoC;AAEpC,0BAAwB;AAgBxB,IAAM,OAAO,GAA0C,UAAC,EAAoC;;IAAlC,IAAA,WAAW,iBAAA,EAAE,SAAS,eAAA,EAAK,KAAK,cAAlC,4BAAoC,CAAF;IACxF,IAAM,gBAAgB,GAAG,IAAA,oBAAU,EACjC,SAAS,EACT,SAAS,YACP,GAAC,cAAc,IAAG,CAAC,WAAW,IAAI,WAAW,KAAK,CAAC,iBACnD,GAAC,gBAAgB,IAAG,WAAW,IAAI,WAAW,KAAK,CAAC,MACvD,CAAC;IAEF,IAAI,gBAAgB,CAAC;IACrB,IAAI,UAAU,GAAG,EAAE,CAAC;IACpB,IAAI,WAAW,EAAE;QACf,gBAAgB,GAAG,CACjB,wBAAC,eAAK,CAAC,QAAQ,eACb,iCACE,CAAC,EAAC,QAAQ,EACV,CAAC,EAAC,OAAO,EACT,SAAS,EAAC,2DAA2D,EACrE,SAAS,EAAC,KAAK,EACf,KAAK,EAAC,OAAO,EACb,MAAM,EAAC,OAAO,GACd,EAEF,iCACE,CAAC,EAAC,QAAQ,EACV,CAAC,EAAC,KAAK,EACP,SAAS,EAAC,4DAA4D,EACtE,SAAS,EAAC,KAAK,EACf,KAAK,EAAC,QAAQ,EACd,MAAM,EAAC,OAAO,GACd,EAEF,iCACE,CAAC,EAAC,MAAM,EACR,CAAC,EAAC,QAAQ,EACV,SAAS,EAAC,4DAA4D,EACtE,SAAS,EAAC,KAAK,EACf,KAAK,EAAC,OAAO,EACb,MAAM,EAAC,OAAO,GACd,IACa,CAClB,CAAC;QACF,UAAU;YACR,GAAC,UAAU,IAAG,UAAU;YACxB,GAAC,YAAY,IAAG,+BAA+B;eAChD,CAAC;KACH;SAAM;QACL,UAAU,aAAK,GAAC,YAAY,IAAG,qBAAqB,KAAE,CAAC;KACxD;IAED,OAAO,CACL,uCAAG,SAAS,EAAE,gBAAgB,IAAM,UAAU,EAAM,KAAK,mBAAc,wBAAwB,YAC7F,iCACE,OAAO,EAAC,KAAK,EACb,EAAE,EAAC,SAAS,EACZ,CAAC,EAAC,KAAK,EACP,CAAC,EAAC,KAAK,EACP,OAAO,EAAC,iBAAiB,EACzB,KAAK,EAAE,EAAE,gBAAgB,EAAE,qBAAqB,EAAyB,aAEzE,iCACE,SAAS,EAAC,KAAK,EACf,CAAC,EAAC,ggBAG+H,GACjI,EACD,gBAAgB,IACb,IACJ,CACL,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,OAAO,CAAC"}
1
+ {"version":3,"file":"Ansible.js","sourceRoot":"","sources":["../src/Ansible/Ansible.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AACA,oGAAkG;AAMlG,IAAM,OAAO,GAA0C,UAAC,KAAK,IAAK,OAAA,uBAAC,iBAAS,eAAK,KAAK,EAAI,EAAxB,CAAwB,CAAC;AAE3F,kBAAe,OAAO,CAAC"}
@@ -9,38 +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 classNames from 'classnames';
26
- import '../Ansible/ansible.css';
27
- var Ansible = function (_a) {
28
- var _b, _c, _d, _e;
29
- var unsupported = _a.unsupported, className = _a.className, props = __rest(_a, ["unsupported", "className"]);
30
- var ansibleLogoClass = classNames(className, 'Ansible', (_b = {}, _b["is-supported"] = !unsupported || unsupported === 0, _b), (_c = {}, _c["is-unsupported"] = unsupported || unsupported === 1, _c));
31
- var unsupportedSlash;
32
- var ariaLabels = {};
33
- if (unsupported) {
34
- unsupportedSlash = (_jsxs(React.Fragment, { children: [_jsx("rect", { x: "1245.1", y: "272.4", transform: "matrix(-0.7071 0.7071 -0.7071 -0.7071 3082.5815 -510.474)", className: "st0", width: "803.8", height: "221.5" }), _jsx("rect", { x: "-279.7", y: "904", transform: "matrix(-0.7071 0.7071 -0.7071 -0.7071 2450.9683 1014.3757)", className: "st1", width: "2590.2", height: "221.5" }), _jsx("rect", { x: "17.1", y: "1620.5", transform: "matrix(-0.7071 0.7071 -0.7071 -0.7071 1734.4641 2744.1697)", className: "st0", width: "563.7", height: "221.5" })] }));
35
- ariaLabels = (_d = {},
36
- _d['disabled'] = 'disabled',
37
- _d['aria-label'] = 'Does not have Ansible support',
38
- _d);
39
- }
40
- else {
41
- ariaLabels = (_e = {}, _e['aria-label'] = 'Has Ansible support', _e);
42
- }
43
- return (_jsx("i", __assign({ className: ansibleLogoClass }, ariaLabels, props, { "widget-type": "InsightsAnsibleSupport", children: _jsxs("svg", { version: "1.1", id: "Layer_1", x: "0px", y: "0px", viewBox: "0 0 2032 2027.2", style: { enableBackground: 'new 0 0 2032 2027.2' }, children: [_jsx("path", { className: "st0", d: "M2030.8,1014.8c0,559.2-453.3,1012.4-1012.4,1012.4C459.2,2027.2,5.9,1574,5.9,1014.8\n C5.9,455.7,459.2,2.4,1018.3,2.4C1577.5,2.4,2030.8,455.7,2030.8,1014.8 M1035.4,620.9l262,646.6L901.7,955.8L1035.4,620.9\n L1035.4,620.9z M1500.8,1416.5l-403-969.9c-11.5-28-34.5-42.8-62.4-42.8c-28,0-52.7,14.8-64.2,42.8L528.9,1510.4h151.3l175.1-438.6\n l522.5,422.1c21,17,36.2,24.7,55.9,24.7c39.5,0,74-29.6,74-72.3C1507.7,1439.4,1505.3,1428.3,1500.8,1416.5L1500.8,1416.5z" }), unsupportedSlash] }) })));
44
- };
12
+ import { jsx as _jsx } from "react/jsx-runtime";
13
+ import AnsiblePF from '@patternfly/react-component-groups/dist/dynamic/Ansible';
14
+ var Ansible = function (props) { return _jsx(AnsiblePF, __assign({}, props)); };
45
15
  export default Ansible;
46
16
  //# sourceMappingURL=Ansible.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Ansible.js","sourceRoot":"","sources":["../../src/Ansible/Ansible.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,UAAU,MAAM,YAAY,CAAC;AAEpC,OAAO,gBAAgB,CAAC;AAgBxB,IAAM,OAAO,GAA0C,UAAC,EAAoC;;IAAlC,IAAA,WAAW,iBAAA,EAAE,SAAS,eAAA,EAAK,KAAK,cAAlC,4BAAoC,CAAF;IACxF,IAAM,gBAAgB,GAAG,UAAU,CACjC,SAAS,EACT,SAAS,YACP,GAAC,cAAc,IAAG,CAAC,WAAW,IAAI,WAAW,KAAK,CAAC,iBACnD,GAAC,gBAAgB,IAAG,WAAW,IAAI,WAAW,KAAK,CAAC,MACvD,CAAC;IAEF,IAAI,gBAAgB,CAAC;IACrB,IAAI,UAAU,GAAG,EAAE,CAAC;IACpB,IAAI,WAAW,EAAE;QACf,gBAAgB,GAAG,CACjB,MAAC,KAAK,CAAC,QAAQ,eACb,eACE,CAAC,EAAC,QAAQ,EACV,CAAC,EAAC,OAAO,EACT,SAAS,EAAC,2DAA2D,EACrE,SAAS,EAAC,KAAK,EACf,KAAK,EAAC,OAAO,EACb,MAAM,EAAC,OAAO,GACd,EAEF,eACE,CAAC,EAAC,QAAQ,EACV,CAAC,EAAC,KAAK,EACP,SAAS,EAAC,4DAA4D,EACtE,SAAS,EAAC,KAAK,EACf,KAAK,EAAC,QAAQ,EACd,MAAM,EAAC,OAAO,GACd,EAEF,eACE,CAAC,EAAC,MAAM,EACR,CAAC,EAAC,QAAQ,EACV,SAAS,EAAC,4DAA4D,EACtE,SAAS,EAAC,KAAK,EACf,KAAK,EAAC,OAAO,EACb,MAAM,EAAC,OAAO,GACd,IACa,CAClB,CAAC;QACF,UAAU;YACR,GAAC,UAAU,IAAG,UAAU;YACxB,GAAC,YAAY,IAAG,+BAA+B;eAChD,CAAC;KACH;SAAM;QACL,UAAU,aAAK,GAAC,YAAY,IAAG,qBAAqB,KAAE,CAAC;KACxD;IAED,OAAO,CACL,qBAAG,SAAS,EAAE,gBAAgB,IAAM,UAAU,EAAM,KAAK,mBAAc,wBAAwB,YAC7F,eACE,OAAO,EAAC,KAAK,EACb,EAAE,EAAC,SAAS,EACZ,CAAC,EAAC,KAAK,EACP,CAAC,EAAC,KAAK,EACP,OAAO,EAAC,iBAAiB,EACzB,KAAK,EAAE,EAAE,gBAAgB,EAAE,qBAAqB,EAAyB,aAEzE,eACE,SAAS,EAAC,KAAK,EACf,CAAC,EAAC,ggBAG+H,GACjI,EACD,gBAAgB,IACb,IACJ,CACL,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,OAAO,CAAC"}
1
+ {"version":3,"file":"Ansible.js","sourceRoot":"","sources":["../../src/Ansible/Ansible.tsx"],"names":[],"mappings":";;;;;;;;;;;;AACA,OAAO,SAA2B,MAAM,yDAAyD,CAAC;AAMlG,IAAM,OAAO,GAA0C,UAAC,KAAK,IAAK,OAAA,KAAC,SAAS,eAAK,KAAK,EAAI,EAAxB,CAAwB,CAAC;AAE3F,eAAe,OAAO,CAAC"}
package/esm/index.css CHANGED
@@ -1,23 +1,3 @@
1
- :root {
2
- --ins-color--orange: #ec7a08;
3
- }
4
-
5
- i.Ansible.is-supported .st0 {
6
- fill: var(--pf-v5-global--info-color--100);
7
- }
8
- i.Ansible.is-unsupported {
9
- cursor: not-allowed;
10
- }
11
- i.Ansible.is-unsupported .st0, i.Ansible.is-unsupported .st1, i.Ansible.is-unsupported .st2 {
12
- fill: var(--pf-v5-global--disabled-color--200);
13
- }
14
- i.Ansible svg {
15
- height: var(--pf-v5-global--FontSize--xl);
16
- position: relative;
17
- top: 4px;
18
- top: 0.25rem;
19
- }
20
-
21
1
  .ins-c-bulk-select .pf-v5-c-dropdown__toggle-check span.pf-v5-c-dropdown__toggle-text {
22
2
  display: initial;
23
3
  }
package/esm/index.scss CHANGED
@@ -1,4 +1,3 @@
1
- @import './Ansible/ansible.scss';
2
1
  @import './BulkSelect/bulk-select.scss';
3
2
  @import './ConditionalFilter/conditional-filter.scss';
4
3
  @import './ConditionalFilter/group-filter.scss';
package/index.css CHANGED
@@ -1,23 +1,3 @@
1
- :root {
2
- --ins-color--orange: #ec7a08;
3
- }
4
-
5
- i.Ansible.is-supported .st0 {
6
- fill: var(--pf-v5-global--info-color--100);
7
- }
8
- i.Ansible.is-unsupported {
9
- cursor: not-allowed;
10
- }
11
- i.Ansible.is-unsupported .st0, i.Ansible.is-unsupported .st1, i.Ansible.is-unsupported .st2 {
12
- fill: var(--pf-v5-global--disabled-color--200);
13
- }
14
- i.Ansible svg {
15
- height: var(--pf-v5-global--FontSize--xl);
16
- position: relative;
17
- top: 4px;
18
- top: 0.25rem;
19
- }
20
-
21
1
  .ins-c-bulk-select .pf-v5-c-dropdown__toggle-check span.pf-v5-c-dropdown__toggle-text {
22
2
  display: initial;
23
3
  }
package/index.scss CHANGED
@@ -1,4 +1,3 @@
1
- @import './Ansible/ansible.scss';
2
1
  @import './BulkSelect/bulk-select.scss';
3
2
  @import './ConditionalFilter/conditional-filter.scss';
4
3
  @import './ConditionalFilter/group-filter.scss';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@redhat-cloud-services/frontend-components",
3
- "version": "4.0.10",
3
+ "version": "4.0.12",
4
4
  "description": "Common components for RedHat Cloud Services project.",
5
5
  "main": "index.js",
6
6
  "module": "esm/index.js",
@@ -49,9 +49,9 @@
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.17",
53
- "@scalprum/core": "^0.5.1",
54
- "@scalprum/react-core": "^0.5.1",
52
+ "@patternfly/react-component-groups": "^1.2.1",
53
+ "@scalprum/core": "^0.5.3",
54
+ "@scalprum/react-core": "^0.5.3",
55
55
  "sanitize-html": "^2.7.2"
56
56
  },
57
57
  "devDependencies": {
@@ -1,19 +0,0 @@
1
- :root {
2
- --ins-color--orange: #ec7a08;
3
- }
4
-
5
- i.Ansible.is-supported .st0 {
6
- fill: var(--pf-v5-global--info-color--100);
7
- }
8
- i.Ansible.is-unsupported {
9
- cursor: not-allowed;
10
- }
11
- i.Ansible.is-unsupported .st0, i.Ansible.is-unsupported .st1, i.Ansible.is-unsupported .st2 {
12
- fill: var(--pf-v5-global--disabled-color--200);
13
- }
14
- i.Ansible svg {
15
- height: var(--pf-v5-global--FontSize--xl);
16
- position: relative;
17
- top: 4px;
18
- top: 0.25rem;
19
- }
@@ -1,14 +0,0 @@
1
- @import '~@redhat-cloud-services/frontend-components-utilities/styles/_all.scss';
2
-
3
- i.Ansible {
4
- &.is-supported .st0{ fill: $ins-color--blue; }
5
- &.is-unsupported {
6
- .st0, .st1, .st2 { fill: $ins-color--gray; }
7
- cursor: not-allowed;
8
- }
9
- svg {
10
- height: var(--pf-v5-global--FontSize--xl);
11
- position: relative;
12
- @include rem('top', 4px);
13
- }
14
- }
@@ -1,19 +0,0 @@
1
- :root {
2
- --ins-color--orange: #ec7a08;
3
- }
4
-
5
- i.Ansible.is-supported .st0 {
6
- fill: var(--pf-v5-global--info-color--100);
7
- }
8
- i.Ansible.is-unsupported {
9
- cursor: not-allowed;
10
- }
11
- i.Ansible.is-unsupported .st0, i.Ansible.is-unsupported .st1, i.Ansible.is-unsupported .st2 {
12
- fill: var(--pf-v5-global--disabled-color--200);
13
- }
14
- i.Ansible svg {
15
- height: var(--pf-v5-global--FontSize--xl);
16
- position: relative;
17
- top: 4px;
18
- top: 0.25rem;
19
- }
@@ -1,14 +0,0 @@
1
- @import '~@redhat-cloud-services/frontend-components-utilities/styles/_all.scss';
2
-
3
- i.Ansible {
4
- &.is-supported .st0{ fill: $ins-color--blue; }
5
- &.is-unsupported {
6
- .st0, .st1, .st2 { fill: $ins-color--gray; }
7
- cursor: not-allowed;
8
- }
9
- svg {
10
- height: var(--pf-v5-global--FontSize--xl);
11
- position: relative;
12
- @include rem('top', 4px);
13
- }
14
- }