@rh-support/components 2.1.26 → 2.1.28

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.
@@ -35,6 +35,7 @@
35
35
  margin-left: 10px;
36
36
  margin-right: 5px;
37
37
  width: 1px;
38
+ margin-top: 10px;
38
39
  }
39
40
 
40
41
  .markdown-content .markdown-text-area {
@@ -67,6 +68,7 @@
67
68
 
68
69
  .markdown-editor-container .markdown-guidance {
69
70
  padding-right: 12px;
71
+ margin-top: 8px;
70
72
  }
71
73
 
72
74
  .markdown-editor-container .character-count-wrapper {
@@ -1 +1 @@
1
- {"version":3,"file":"TablePagination.d.ts","sourceRoot":"","sources":["../../../src/Table/TablePagination.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAc,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAKvE,UAAU,MAAM;IACZ,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,CAAC,EAAE,QAAQ,EAAE,WAAW,EAAE;;;KAAA,KAAK,IAAI,CAAC;IAChD,eAAe,CAAC,EAAE,CAAC,EAAE,QAAQ,EAAE,WAAW,EAAE;;;KAAA,KAAK,IAAI,CAAC;IACtD,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,EAAE,iBAAiB,CAAC;CAC9B;AAED,wBAAgB,eAAe,CAAC,KAAK,EAAE,MAAM,eA6B5C"}
1
+ {"version":3,"file":"TablePagination.d.ts","sourceRoot":"","sources":["../../../src/Table/TablePagination.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAc,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAKvE,UAAU,MAAM;IACZ,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,CAAC,EAAE,QAAQ,EAAE,WAAW,EAAE;;;KAAA,KAAK,IAAI,CAAC;IAChD,eAAe,CAAC,EAAE,CAAC,EAAE,QAAQ,EAAE,WAAW,EAAE;;;KAAA,KAAK,IAAI,CAAC;IACtD,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,EAAE,iBAAiB,CAAC;CAC9B;AAED,wBAAgB,eAAe,CAAC,KAAK,EAAE,MAAM,eAgC5C"}
@@ -39,6 +39,8 @@ function TablePagination(props) {
39
39
  props.currentPage && props.currentPage !== currentPage && setSelectedPage(props.currentPage);
40
40
  // eslint-disable-next-line react-hooks/exhaustive-deps
41
41
  }, [props.perPage, props.currentPage]);
42
- return (react_1.default.createElement(react_core_1.Pagination, { itemCount: props.itemCount || (data || []).length, widgetId: "pagination-options-menu-top", perPage: perPage, page: currentPage, variant: props.variant, onSetPage: onSetPage, onPerPageSelect: onPerPageSelect }));
42
+ return (react_1.default.createElement(react_core_1.Pagination, { itemCount: props.itemCount || (data || []).length, widgetId: "pagination-options-menu-top", perPage: perPage, page: currentPage, variant: props.variant, titles: {
43
+ paginationAriaLabel: props.variant === react_core_1.PaginationVariant.top ? 'Upper pagination' : 'Lower pagination',
44
+ }, onSetPage: onSetPage, onPerPageSelect: onPerPageSelect }));
43
45
  }
44
46
  exports.TablePagination = TablePagination;
@@ -35,6 +35,7 @@
35
35
  margin-left: 10px;
36
36
  margin-right: 5px;
37
37
  width: 1px;
38
+ margin-top: 10px;
38
39
  }
39
40
 
40
41
  .markdown-content .markdown-text-area {
@@ -67,6 +68,7 @@
67
68
 
68
69
  .markdown-editor-container .markdown-guidance {
69
70
  padding-right: 12px;
71
+ margin-top: 8px;
70
72
  }
71
73
 
72
74
  .markdown-editor-container .character-count-wrapper {
@@ -1 +1 @@
1
- {"version":3,"file":"TablePagination.d.ts","sourceRoot":"","sources":["../../../src/Table/TablePagination.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAc,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAKvE,UAAU,MAAM;IACZ,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,CAAC,EAAE,QAAQ,EAAE,WAAW,EAAE;;;KAAA,KAAK,IAAI,CAAC;IAChD,eAAe,CAAC,EAAE,CAAC,EAAE,QAAQ,EAAE,WAAW,EAAE;;;KAAA,KAAK,IAAI,CAAC;IACtD,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,EAAE,iBAAiB,CAAC;CAC9B;AAED,wBAAgB,eAAe,CAAC,KAAK,EAAE,MAAM,eA6B5C"}
1
+ {"version":3,"file":"TablePagination.d.ts","sourceRoot":"","sources":["../../../src/Table/TablePagination.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAc,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAKvE,UAAU,MAAM;IACZ,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,CAAC,EAAE,QAAQ,EAAE,WAAW,EAAE;;;KAAA,KAAK,IAAI,CAAC;IAChD,eAAe,CAAC,EAAE,CAAC,EAAE,QAAQ,EAAE,WAAW,EAAE;;;KAAA,KAAK,IAAI,CAAC;IACtD,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,EAAE,iBAAiB,CAAC;CAC9B;AAED,wBAAgB,eAAe,CAAC,KAAK,EAAE,MAAM,eAgC5C"}
@@ -1,4 +1,4 @@
1
- import { Pagination } from '@patternfly/react-core';
1
+ import { Pagination, PaginationVariant } from '@patternfly/react-core';
2
2
  import React, { useEffect } from 'react';
3
3
  import { useTableContext } from './TableProvider';
4
4
  export function TablePagination(props) {
@@ -17,5 +17,7 @@ export function TablePagination(props) {
17
17
  props.currentPage && props.currentPage !== currentPage && setSelectedPage(props.currentPage);
18
18
  // eslint-disable-next-line react-hooks/exhaustive-deps
19
19
  }, [props.perPage, props.currentPage]);
20
- return (React.createElement(Pagination, { itemCount: props.itemCount || (data || []).length, widgetId: "pagination-options-menu-top", perPage: perPage, page: currentPage, variant: props.variant, onSetPage: onSetPage, onPerPageSelect: onPerPageSelect }));
20
+ return (React.createElement(Pagination, { itemCount: props.itemCount || (data || []).length, widgetId: "pagination-options-menu-top", perPage: perPage, page: currentPage, variant: props.variant, titles: {
21
+ paginationAriaLabel: props.variant === PaginationVariant.top ? 'Upper pagination' : 'Lower pagination',
22
+ }, onSetPage: onSetPage, onPerPageSelect: onPerPageSelect }));
21
23
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rh-support/components",
3
- "version": "2.1.26",
3
+ "version": "2.1.28",
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.33",
58
+ "@cee-eng/hydrajs": "4.16.39",
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.33",
76
+ "@cee-eng/hydrajs": "4.16.39",
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.19",
83
- "@rh-support/utils": "2.1.12",
82
+ "@rh-support/user-permissions": "2.1.20",
83
+ "@rh-support/utils": "2.1.13",
84
84
  "dompurify": "^2.2.6",
85
85
  "downshift": "^6.0.5",
86
86
  "js-worker-search": "^1.4.1",
@@ -115,5 +115,5 @@
115
115
  "defaults and supports es6-module",
116
116
  "maintained node versions"
117
117
  ],
118
- "gitHead": "0273a1330065ecbdbd6e0cddf5bbbd96d562c191"
118
+ "gitHead": "d17dacfd35aa08c446f37c8f0f92760346b8eb7a"
119
119
  }