@rh-support/components 2.1.29 → 2.1.31
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/lib/cjs/Table/{Table.d.ts → TableComponent.d.ts} +2 -2
- package/lib/cjs/Table/TableComponent.d.ts.map +1 -0
- package/lib/cjs/Table/{Table.js → TableComponent.js} +3 -3
- package/lib/cjs/Table/index.d.ts +1 -1
- package/lib/cjs/Table/index.d.ts.map +1 -1
- package/lib/cjs/Table/index.js +1 -1
- package/lib/esm/Table/{Table.d.ts → TableComponent.d.ts} +2 -2
- package/lib/esm/Table/TableComponent.d.ts.map +1 -0
- package/lib/esm/Table/{Table.js → TableComponent.js} +1 -1
- package/lib/esm/Table/index.d.ts +1 -1
- package/lib/esm/Table/index.d.ts.map +1 -1
- package/lib/esm/Table/index.js +1 -1
- package/package.json +7 -6
- package/lib/cjs/Table/Table.d.ts.map +0 -1
- package/lib/esm/Table/Table.d.ts.map +0 -1
|
@@ -6,6 +6,6 @@ interface IProps<T> {
|
|
|
6
6
|
data: T;
|
|
7
7
|
selectedColumns?: string[];
|
|
8
8
|
}
|
|
9
|
-
export declare function
|
|
9
|
+
export declare function TableComponent<T>({ children, columns, data, selectedColumns }: IProps<T>): JSX.Element;
|
|
10
10
|
export {};
|
|
11
|
-
//# sourceMappingURL=
|
|
11
|
+
//# sourceMappingURL=TableComponent.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TableComponent.d.ts","sourceRoot":"","sources":["../../../src/Table/TableComponent.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAExC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAGpC,UAAU,MAAM,CAAC,CAAC;IACd,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,OAAO,EAAE,OAAO,EAAE,CAAC;IACnB,IAAI,EAAE,CAAC,CAAC;IACR,eAAe,CAAC,EAAE,MAAM,EAAE,CAAC;CAC9B;AAED,wBAAgB,cAAc,CAAC,CAAC,EAAE,EAAE,QAAQ,EAAE,OAAO,EAAE,IAAI,EAAE,eAAe,EAAE,EAAE,MAAM,CAAC,CAAC,CAAC,eAkBxF"}
|
|
@@ -19,10 +19,10 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
19
19
|
return result;
|
|
20
20
|
};
|
|
21
21
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22
|
-
exports.
|
|
22
|
+
exports.TableComponent = void 0;
|
|
23
23
|
const react_1 = __importStar(require("react"));
|
|
24
24
|
const TableProvider_1 = require("./TableProvider");
|
|
25
|
-
function
|
|
25
|
+
function TableComponent({ children, columns, data, selectedColumns }) {
|
|
26
26
|
const [currentPage, setSelectedPage] = react_1.useState(1);
|
|
27
27
|
const [perPage, setPerPage] = react_1.useState(10);
|
|
28
28
|
return (react_1.default.createElement(TableProvider_1.TableContext.Provider, { value: {
|
|
@@ -35,4 +35,4 @@ function Table({ children, columns, data, selectedColumns }) {
|
|
|
35
35
|
selectedColumns,
|
|
36
36
|
} }, children));
|
|
37
37
|
}
|
|
38
|
-
exports.
|
|
38
|
+
exports.TableComponent = TableComponent;
|
package/lib/cjs/Table/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/Table/index.tsx"],"names":[],"mappings":"AAAA,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/Table/index.tsx"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,cAAc,WAAW,CAAC;AAC1B,cAAc,uBAAuB,CAAC;AACtC,cAAc,mBAAmB,CAAC"}
|
package/lib/cjs/Table/index.js
CHANGED
|
@@ -10,7 +10,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
10
10
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
11
11
|
};
|
|
12
12
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
-
__exportStar(require("./
|
|
13
|
+
__exportStar(require("./TableComponent"), exports);
|
|
14
14
|
__exportStar(require("./PFTable"), exports);
|
|
15
15
|
__exportStar(require("./TableColumnSelector"), exports);
|
|
16
16
|
__exportStar(require("./TablePagination"), exports);
|
|
@@ -6,6 +6,6 @@ interface IProps<T> {
|
|
|
6
6
|
data: T;
|
|
7
7
|
selectedColumns?: string[];
|
|
8
8
|
}
|
|
9
|
-
export declare function
|
|
9
|
+
export declare function TableComponent<T>({ children, columns, data, selectedColumns }: IProps<T>): JSX.Element;
|
|
10
10
|
export {};
|
|
11
|
-
//# sourceMappingURL=
|
|
11
|
+
//# sourceMappingURL=TableComponent.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TableComponent.d.ts","sourceRoot":"","sources":["../../../src/Table/TableComponent.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAExC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAGpC,UAAU,MAAM,CAAC,CAAC;IACd,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,OAAO,EAAE,OAAO,EAAE,CAAC;IACnB,IAAI,EAAE,CAAC,CAAC;IACR,eAAe,CAAC,EAAE,MAAM,EAAE,CAAC;CAC9B;AAED,wBAAgB,cAAc,CAAC,CAAC,EAAE,EAAE,QAAQ,EAAE,OAAO,EAAE,IAAI,EAAE,eAAe,EAAE,EAAE,MAAM,CAAC,CAAC,CAAC,eAkBxF"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { useState } from 'react';
|
|
2
2
|
import { TableContext } from './TableProvider';
|
|
3
|
-
export function
|
|
3
|
+
export function TableComponent({ children, columns, data, selectedColumns }) {
|
|
4
4
|
const [currentPage, setSelectedPage] = useState(1);
|
|
5
5
|
const [perPage, setPerPage] = useState(10);
|
|
6
6
|
return (React.createElement(TableContext.Provider, { value: {
|
package/lib/esm/Table/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/Table/index.tsx"],"names":[],"mappings":"AAAA,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/Table/index.tsx"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,cAAc,WAAW,CAAC;AAC1B,cAAc,uBAAuB,CAAC;AACtC,cAAc,mBAAmB,CAAC"}
|
package/lib/esm/Table/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rh-support/components",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.31",
|
|
4
4
|
"description": "Contains all reusabel components for support app",
|
|
5
5
|
"author": "Vikas Rathee <vrathee@redhat.com>",
|
|
6
6
|
"license": "ISC",
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"copy:img:cjs": "../../node_modules/.bin/copyfiles -V -u 1 -a 'src/**/*.png' 'src/**/*.jpg' 'src/**/*.gif' lib/cjs"
|
|
56
56
|
},
|
|
57
57
|
"peerDependencies": {
|
|
58
|
-
"@cee-eng/hydrajs": "4.16.
|
|
58
|
+
"@cee-eng/hydrajs": "4.16.43",
|
|
59
59
|
"@cee-eng/ui-toolkit": "1.1.6",
|
|
60
60
|
"@patternfly/patternfly": "5.1.0",
|
|
61
61
|
"@patternfly/react-core": "5.1.1",
|
|
@@ -73,14 +73,14 @@
|
|
|
73
73
|
"use-deep-compare-effect": "^1.6.1"
|
|
74
74
|
},
|
|
75
75
|
"dependencies": {
|
|
76
|
-
"@cee-eng/hydrajs": "4.16.
|
|
76
|
+
"@cee-eng/hydrajs": "4.16.43",
|
|
77
77
|
"@cee-eng/ui-toolkit": "1.1.6",
|
|
78
78
|
"@patternfly/patternfly": "5.1.0",
|
|
79
79
|
"@patternfly/react-core": "5.1.1",
|
|
80
80
|
"@patternfly/react-table": "5.1.1",
|
|
81
81
|
"@rh-support/types": "2.0.2",
|
|
82
|
-
"@rh-support/user-permissions": "2.1.
|
|
83
|
-
"@rh-support/utils": "2.1.
|
|
82
|
+
"@rh-support/user-permissions": "2.1.22",
|
|
83
|
+
"@rh-support/utils": "2.1.15",
|
|
84
84
|
"dompurify": "^2.2.6",
|
|
85
85
|
"downshift": "^6.0.5",
|
|
86
86
|
"js-worker-search": "^1.4.1",
|
|
@@ -90,6 +90,7 @@
|
|
|
90
90
|
"react": "17.0.2",
|
|
91
91
|
"react-bootstrap-typeahead": "^5.1.4",
|
|
92
92
|
"react-dom": "17.0.2",
|
|
93
|
+
"react-i18next": "^13.2.2",
|
|
93
94
|
"react-router-dom": "^5.1.2",
|
|
94
95
|
"react-toastify": "^5.4.1",
|
|
95
96
|
"resize-observer-polyfill": "^1.5.1",
|
|
@@ -115,5 +116,5 @@
|
|
|
115
116
|
"defaults and supports es6-module",
|
|
116
117
|
"maintained node versions"
|
|
117
118
|
],
|
|
118
|
-
"gitHead": "
|
|
119
|
+
"gitHead": "0be2733af553431eb0064993df8c0f097e12a47f"
|
|
119
120
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Table.d.ts","sourceRoot":"","sources":["../../../src/Table/Table.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAExC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAGpC,UAAU,MAAM,CAAC,CAAC;IACd,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,OAAO,EAAE,OAAO,EAAE,CAAC;IACnB,IAAI,EAAE,CAAC,CAAC;IACR,eAAe,CAAC,EAAE,MAAM,EAAE,CAAC;CAC9B;AAED,wBAAgB,KAAK,CAAC,CAAC,EAAE,EAAE,QAAQ,EAAE,OAAO,EAAE,IAAI,EAAE,eAAe,EAAE,EAAE,MAAM,CAAC,CAAC,CAAC,eAkB/E"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Table.d.ts","sourceRoot":"","sources":["../../../src/Table/Table.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAExC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAGpC,UAAU,MAAM,CAAC,CAAC;IACd,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,OAAO,EAAE,OAAO,EAAE,CAAC;IACnB,IAAI,EAAE,CAAC,CAAC;IACR,eAAe,CAAC,EAAE,MAAM,EAAE,CAAC;CAC9B;AAED,wBAAgB,KAAK,CAAC,CAAC,EAAE,EAAE,QAAQ,EAAE,OAAO,EAAE,IAAI,EAAE,eAAe,EAAE,EAAE,MAAM,CAAC,CAAC,CAAC,eAkB/E"}
|