@patternfly/react-table 4.59.0 → 4.60.3

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/CHANGELOG.md CHANGED
@@ -3,6 +3,44 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## 4.60.3 (2022-01-19)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **examples:** amend row index in tree table examples ([#6830](https://github.com/patternfly/patternfly-react/issues/6830)) ([e676fb1](https://github.com/patternfly/patternfly-react/commit/e676fb1171618e957a4564af31c15ca6e3800507)), closes [#6719](https://github.com/patternfly/patternfly-react/issues/6719)
12
+
13
+
14
+
15
+
16
+
17
+ ## 4.60.2 (2022-01-19)
18
+
19
+ **Note:** Version bump only for package @patternfly/react-table
20
+
21
+
22
+
23
+
24
+
25
+ ## 4.60.1 (2022-01-19)
26
+
27
+ **Note:** Version bump only for package @patternfly/react-table
28
+
29
+
30
+
31
+
32
+
33
+ # 4.60.0 (2022-01-19)
34
+
35
+
36
+ ### Features
37
+
38
+ * **NumberInput:** call onMinus/onPlus on arrow-up/down pressed ([#6764](https://github.com/patternfly/patternfly-react/issues/6764)) ([545a7f8](https://github.com/patternfly/patternfly-react/commit/545a7f8791dbf2937416509a01b197cc1daf80db))
39
+
40
+
41
+
42
+
43
+
6
44
  # 4.59.0 (2022-01-19)
7
45
 
8
46
 
@@ -4849,99 +4849,6 @@ label.pf-c-check, .pf-c-check__label,
4849
4849
  cursor: not-allowed;
4850
4850
  }
4851
4851
 
4852
- .pf-c-tooltip {
4853
- --pf-c-tooltip--MaxWidth: 18.75rem;
4854
- --pf-c-tooltip--BoxShadow: var(--pf-global--BoxShadow--md);
4855
- --pf-c-tooltip__content--PaddingTop: var(--pf-global--spacer--sm);
4856
- --pf-c-tooltip__content--PaddingRight: var(--pf-global--spacer--sm);
4857
- --pf-c-tooltip__content--PaddingBottom: var(--pf-global--spacer--sm);
4858
- --pf-c-tooltip__content--PaddingLeft: var(--pf-global--spacer--sm);
4859
- --pf-c-tooltip__content--Color: var(--pf-global--Color--light-100);
4860
- --pf-c-tooltip__content--BackgroundColor: var(--pf-global--BackgroundColor--dark-100);
4861
- --pf-c-tooltip__content--FontSize: var(--pf-global--FontSize--sm);
4862
- --pf-c-tooltip__arrow--Width: 0.5rem;
4863
- --pf-c-tooltip__arrow--Height: 0.5rem;
4864
- --pf-c-tooltip__arrow--m-top--TranslateX: -50%;
4865
- --pf-c-tooltip__arrow--m-top--TranslateY: 50%;
4866
- --pf-c-tooltip__arrow--m-top--Rotate: 45deg;
4867
- --pf-c-tooltip__arrow--m-right--TranslateX: -50%;
4868
- --pf-c-tooltip__arrow--m-right--TranslateY: -50%;
4869
- --pf-c-tooltip__arrow--m-right--Rotate: 45deg;
4870
- --pf-c-tooltip__arrow--m-bottom--TranslateX: -50%;
4871
- --pf-c-tooltip__arrow--m-bottom--TranslateY: -50%;
4872
- --pf-c-tooltip__arrow--m-bottom--Rotate: 45deg;
4873
- --pf-c-tooltip__arrow--m-left--TranslateX: 50%;
4874
- --pf-c-tooltip__arrow--m-left--TranslateY: -50%;
4875
- --pf-c-tooltip__arrow--m-left--Rotate: 45deg;
4876
- position: relative;
4877
- max-width: var(--pf-c-tooltip--MaxWidth);
4878
- box-shadow: var(--pf-c-tooltip--BoxShadow);
4879
- }
4880
-
4881
- .pf-c-tooltip.pf-m-top .pf-c-tooltip__arrow, .pf-c-tooltip.pf-m-top-left .pf-c-tooltip__arrow, .pf-c-tooltip.pf-m-top-right .pf-c-tooltip__arrow {
4882
- bottom: 0;
4883
- left: 50%;
4884
- transform: translateX(var(--pf-c-tooltip__arrow--m-top--TranslateX)) translateY(var(--pf-c-tooltip__arrow--m-top--TranslateY)) rotate(var(--pf-c-tooltip__arrow--m-top--Rotate));
4885
- }
4886
-
4887
- .pf-c-tooltip.pf-m-bottom .pf-c-tooltip__arrow, .pf-c-tooltip.pf-m-bottom-left .pf-c-tooltip__arrow, .pf-c-tooltip.pf-m-bottom-right .pf-c-tooltip__arrow {
4888
- top: 0;
4889
- left: 50%;
4890
- transform: translateX(var(--pf-c-tooltip__arrow--m-bottom--TranslateX)) translateY(var(--pf-c-tooltip__arrow--m-bottom--TranslateY)) rotate(var(--pf-c-tooltip__arrow--m-bottom--Rotate));
4891
- }
4892
-
4893
- .pf-c-tooltip.pf-m-left .pf-c-tooltip__arrow, .pf-c-tooltip.pf-m-left-top .pf-c-tooltip__arrow, .pf-c-tooltip.pf-m-left-bottom .pf-c-tooltip__arrow {
4894
- top: 50%;
4895
- right: 0;
4896
- transform: translateX(var(--pf-c-tooltip__arrow--m-left--TranslateX)) translateY(var(--pf-c-tooltip__arrow--m-left--TranslateY)) rotate(var(--pf-c-tooltip__arrow--m-left--Rotate));
4897
- }
4898
-
4899
- .pf-c-tooltip.pf-m-right .pf-c-tooltip__arrow, .pf-c-tooltip.pf-m-right-top .pf-c-tooltip__arrow, .pf-c-tooltip.pf-m-right-bottom .pf-c-tooltip__arrow {
4900
- top: 50%;
4901
- left: 0;
4902
- transform: translateX(var(--pf-c-tooltip__arrow--m-right--TranslateX)) translateY(var(--pf-c-tooltip__arrow--m-right--TranslateY)) rotate(var(--pf-c-tooltip__arrow--m-right--Rotate));
4903
- }
4904
-
4905
- .pf-c-tooltip.pf-m-left-top .pf-c-tooltip__arrow, .pf-c-tooltip.pf-m-right-top .pf-c-tooltip__arrow {
4906
- top: var(--pf-c-tooltip__arrow--Height);
4907
- }
4908
-
4909
- .pf-c-tooltip.pf-m-left-bottom .pf-c-tooltip__arrow, .pf-c-tooltip.pf-m-right-bottom .pf-c-tooltip__arrow {
4910
- top: auto;
4911
- bottom: 0;
4912
- }
4913
-
4914
- .pf-c-tooltip.pf-m-top-left .pf-c-tooltip__arrow, .pf-c-tooltip.pf-m-bottom-left .pf-c-tooltip__arrow {
4915
- left: var(--pf-c-tooltip__arrow--Width);
4916
- }
4917
-
4918
- .pf-c-tooltip.pf-m-top-right .pf-c-tooltip__arrow, .pf-c-tooltip.pf-m-bottom-right .pf-c-tooltip__arrow {
4919
- right: 0;
4920
- left: auto;
4921
- }
4922
-
4923
- .pf-c-tooltip__content {
4924
- position: relative;
4925
- padding: var(--pf-c-tooltip__content--PaddingTop) var(--pf-c-tooltip__content--PaddingRight) var(--pf-c-tooltip__content--PaddingBottom) var(--pf-c-tooltip__content--PaddingLeft);
4926
- font-size: var(--pf-c-tooltip__content--FontSize);
4927
- color: var(--pf-c-tooltip__content--Color);
4928
- text-align: center;
4929
- word-break: break-word;
4930
- background-color: var(--pf-c-tooltip__content--BackgroundColor);
4931
- }
4932
-
4933
- .pf-c-tooltip__content.pf-m-text-align-left {
4934
- text-align: left;
4935
- }
4936
-
4937
- .pf-c-tooltip__arrow {
4938
- position: absolute;
4939
- width: var(--pf-c-tooltip__arrow--Width);
4940
- height: var(--pf-c-tooltip__arrow--Height);
4941
- pointer-events: none;
4942
- background-color: var(--pf-c-tooltip__content--BackgroundColor);
4943
- }
4944
-
4945
4852
  .pf-c-button {
4946
4853
  --pf-c-button--PaddingTop: var(--pf-global--spacer--form-element);
4947
4854
  --pf-c-button--PaddingRight: var(--pf-global--spacer--md);
@@ -5486,6 +5393,99 @@ label.pf-c-check, .pf-c-check__label,
5486
5393
  --pf-c-button--FontWeight: var(--pf-global--FontWeight--semi-bold);
5487
5394
  }
5488
5395
 
5396
+ .pf-c-tooltip {
5397
+ --pf-c-tooltip--MaxWidth: 18.75rem;
5398
+ --pf-c-tooltip--BoxShadow: var(--pf-global--BoxShadow--md);
5399
+ --pf-c-tooltip__content--PaddingTop: var(--pf-global--spacer--sm);
5400
+ --pf-c-tooltip__content--PaddingRight: var(--pf-global--spacer--sm);
5401
+ --pf-c-tooltip__content--PaddingBottom: var(--pf-global--spacer--sm);
5402
+ --pf-c-tooltip__content--PaddingLeft: var(--pf-global--spacer--sm);
5403
+ --pf-c-tooltip__content--Color: var(--pf-global--Color--light-100);
5404
+ --pf-c-tooltip__content--BackgroundColor: var(--pf-global--BackgroundColor--dark-100);
5405
+ --pf-c-tooltip__content--FontSize: var(--pf-global--FontSize--sm);
5406
+ --pf-c-tooltip__arrow--Width: 0.5rem;
5407
+ --pf-c-tooltip__arrow--Height: 0.5rem;
5408
+ --pf-c-tooltip__arrow--m-top--TranslateX: -50%;
5409
+ --pf-c-tooltip__arrow--m-top--TranslateY: 50%;
5410
+ --pf-c-tooltip__arrow--m-top--Rotate: 45deg;
5411
+ --pf-c-tooltip__arrow--m-right--TranslateX: -50%;
5412
+ --pf-c-tooltip__arrow--m-right--TranslateY: -50%;
5413
+ --pf-c-tooltip__arrow--m-right--Rotate: 45deg;
5414
+ --pf-c-tooltip__arrow--m-bottom--TranslateX: -50%;
5415
+ --pf-c-tooltip__arrow--m-bottom--TranslateY: -50%;
5416
+ --pf-c-tooltip__arrow--m-bottom--Rotate: 45deg;
5417
+ --pf-c-tooltip__arrow--m-left--TranslateX: 50%;
5418
+ --pf-c-tooltip__arrow--m-left--TranslateY: -50%;
5419
+ --pf-c-tooltip__arrow--m-left--Rotate: 45deg;
5420
+ position: relative;
5421
+ max-width: var(--pf-c-tooltip--MaxWidth);
5422
+ box-shadow: var(--pf-c-tooltip--BoxShadow);
5423
+ }
5424
+
5425
+ .pf-c-tooltip.pf-m-top .pf-c-tooltip__arrow, .pf-c-tooltip.pf-m-top-left .pf-c-tooltip__arrow, .pf-c-tooltip.pf-m-top-right .pf-c-tooltip__arrow {
5426
+ bottom: 0;
5427
+ left: 50%;
5428
+ transform: translateX(var(--pf-c-tooltip__arrow--m-top--TranslateX)) translateY(var(--pf-c-tooltip__arrow--m-top--TranslateY)) rotate(var(--pf-c-tooltip__arrow--m-top--Rotate));
5429
+ }
5430
+
5431
+ .pf-c-tooltip.pf-m-bottom .pf-c-tooltip__arrow, .pf-c-tooltip.pf-m-bottom-left .pf-c-tooltip__arrow, .pf-c-tooltip.pf-m-bottom-right .pf-c-tooltip__arrow {
5432
+ top: 0;
5433
+ left: 50%;
5434
+ transform: translateX(var(--pf-c-tooltip__arrow--m-bottom--TranslateX)) translateY(var(--pf-c-tooltip__arrow--m-bottom--TranslateY)) rotate(var(--pf-c-tooltip__arrow--m-bottom--Rotate));
5435
+ }
5436
+
5437
+ .pf-c-tooltip.pf-m-left .pf-c-tooltip__arrow, .pf-c-tooltip.pf-m-left-top .pf-c-tooltip__arrow, .pf-c-tooltip.pf-m-left-bottom .pf-c-tooltip__arrow {
5438
+ top: 50%;
5439
+ right: 0;
5440
+ transform: translateX(var(--pf-c-tooltip__arrow--m-left--TranslateX)) translateY(var(--pf-c-tooltip__arrow--m-left--TranslateY)) rotate(var(--pf-c-tooltip__arrow--m-left--Rotate));
5441
+ }
5442
+
5443
+ .pf-c-tooltip.pf-m-right .pf-c-tooltip__arrow, .pf-c-tooltip.pf-m-right-top .pf-c-tooltip__arrow, .pf-c-tooltip.pf-m-right-bottom .pf-c-tooltip__arrow {
5444
+ top: 50%;
5445
+ left: 0;
5446
+ transform: translateX(var(--pf-c-tooltip__arrow--m-right--TranslateX)) translateY(var(--pf-c-tooltip__arrow--m-right--TranslateY)) rotate(var(--pf-c-tooltip__arrow--m-right--Rotate));
5447
+ }
5448
+
5449
+ .pf-c-tooltip.pf-m-left-top .pf-c-tooltip__arrow, .pf-c-tooltip.pf-m-right-top .pf-c-tooltip__arrow {
5450
+ top: var(--pf-c-tooltip__arrow--Height);
5451
+ }
5452
+
5453
+ .pf-c-tooltip.pf-m-left-bottom .pf-c-tooltip__arrow, .pf-c-tooltip.pf-m-right-bottom .pf-c-tooltip__arrow {
5454
+ top: auto;
5455
+ bottom: 0;
5456
+ }
5457
+
5458
+ .pf-c-tooltip.pf-m-top-left .pf-c-tooltip__arrow, .pf-c-tooltip.pf-m-bottom-left .pf-c-tooltip__arrow {
5459
+ left: var(--pf-c-tooltip__arrow--Width);
5460
+ }
5461
+
5462
+ .pf-c-tooltip.pf-m-top-right .pf-c-tooltip__arrow, .pf-c-tooltip.pf-m-bottom-right .pf-c-tooltip__arrow {
5463
+ right: 0;
5464
+ left: auto;
5465
+ }
5466
+
5467
+ .pf-c-tooltip__content {
5468
+ position: relative;
5469
+ padding: var(--pf-c-tooltip__content--PaddingTop) var(--pf-c-tooltip__content--PaddingRight) var(--pf-c-tooltip__content--PaddingBottom) var(--pf-c-tooltip__content--PaddingLeft);
5470
+ font-size: var(--pf-c-tooltip__content--FontSize);
5471
+ color: var(--pf-c-tooltip__content--Color);
5472
+ text-align: center;
5473
+ word-break: break-word;
5474
+ background-color: var(--pf-c-tooltip__content--BackgroundColor);
5475
+ }
5476
+
5477
+ .pf-c-tooltip__content.pf-m-text-align-left {
5478
+ text-align: left;
5479
+ }
5480
+
5481
+ .pf-c-tooltip__arrow {
5482
+ position: absolute;
5483
+ width: var(--pf-c-tooltip__arrow--Width);
5484
+ height: var(--pf-c-tooltip__arrow--Height);
5485
+ pointer-events: none;
5486
+ background-color: var(--pf-c-tooltip__content--BackgroundColor);
5487
+ }
5488
+
5489
5489
  .pf-c-popover[data-popper-reference-hidden=true] {
5490
5490
  visibility: hidden;
5491
5491
  pointer-events: none;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@patternfly/react-table",
3
- "version": "4.59.0",
3
+ "version": "4.60.3",
4
4
  "description": "This library provides a set of React table components for use with the PatternFly 4",
5
5
  "main": "dist/js/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -31,10 +31,10 @@
31
31
  "clean": "rimraf dist"
32
32
  },
33
33
  "dependencies": {
34
- "@patternfly/react-core": "^4.190.0",
35
- "@patternfly/react-icons": "^4.41.0",
36
- "@patternfly/react-styles": "^4.40.0",
37
- "@patternfly/react-tokens": "^4.42.0",
34
+ "@patternfly/react-core": "^4.191.3",
35
+ "@patternfly/react-icons": "^4.42.3",
36
+ "@patternfly/react-styles": "^4.41.3",
37
+ "@patternfly/react-tokens": "^4.43.3",
38
38
  "lodash": "^4.17.19",
39
39
  "tslib": "^2.0.0"
40
40
  },
@@ -46,5 +46,5 @@
46
46
  "react": "^16.8.0 || ^17.0.0",
47
47
  "react-dom": "^16.8.0 || ^17.0.0"
48
48
  },
49
- "gitHead": "e76b0322ba29c50bd1c4c86d4a24b2e032586e5a"
49
+ "gitHead": "f161ca861cb4f1a679ea090a0606c15bdd5e795b"
50
50
  }
@@ -137,6 +137,12 @@ export const LegacyTableTree: React.FunctionComponent = () => {
137
137
  icon = isExpanded ? <FolderOpenIcon aria-hidden /> : <FolderIcon aria-hidden />;
138
138
  }
139
139
  flattenedNodes.push(node);
140
+
141
+ const childRows =
142
+ node.children && node.children.length
143
+ ? buildRows(node.children, level + 1, 1, rowIndex + 1, !isExpanded || isHidden)
144
+ : [];
145
+
140
146
  return [
141
147
  {
142
148
  cells: [node.name, node.branches, node.pullRequests, node.workspaces],
@@ -151,16 +157,8 @@ export const LegacyTableTree: React.FunctionComponent = () => {
151
157
  icon
152
158
  }
153
159
  },
154
- ...(node.children && node.children.length
155
- ? buildRows(node.children, level + 1, 1, rowIndex + 1, !isExpanded || isHidden)
156
- : []),
157
- ...buildRows(
158
- remainingNodes,
159
- level,
160
- posinset + 1,
161
- rowIndex + 1 + ((node.children && node.children.length) || 0),
162
- isHidden
163
- )
160
+ ...childRows,
161
+ ...buildRows(remainingNodes, level, posinset + 1, rowIndex + 1 + childRows.length, isHidden)
164
162
  ];
165
163
  };
166
164
 
@@ -163,6 +163,11 @@ export const ComposableTableTree: React.FunctionComponent = () => {
163
163
  }
164
164
  };
165
165
 
166
+ const childRows =
167
+ node.children && node.children.length
168
+ ? renderRows(node.children, level + 1, 1, rowIndex + 1, !isExpanded || isHidden)
169
+ : [];
170
+
166
171
  return [
167
172
  <TreeRowWrapper key={node.name} row={{ props: treeRow.props }}>
168
173
  <Td dataLabel={columnNames.name} treeRow={treeRow}>
@@ -172,16 +177,8 @@ export const ComposableTableTree: React.FunctionComponent = () => {
172
177
  <Td dataLabel={columnNames.prs}>{node.pullRequests}</Td>
173
178
  <Td dataLabel={columnNames.workspaces}>{node.workspaces}</Td>
174
179
  </TreeRowWrapper>,
175
- ...(node.children && node.children.length
176
- ? renderRows(node.children, level + 1, 1, rowIndex + 1, !isExpanded || isHidden)
177
- : []),
178
- ...renderRows(
179
- remainingNodes,
180
- level,
181
- posinset + 1,
182
- rowIndex + 1 + ((node.children && node.children.length) || 0),
183
- isHidden
184
- )
180
+ ...childRows,
181
+ ...renderRows(remainingNodes, level, posinset + 1, rowIndex + 1 + childRows.length, isHidden)
185
182
  ];
186
183
  };
187
184