@patternfly/react-table 4.105.1 → 4.105.4
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 +24 -0
- package/dist/umd/react-table.css +32 -17
- package/dist/umd/react-table.js +3 -5
- package/dist/umd/react-table.min.css +674 -659
- package/dist/umd/react-table.min.js +4 -4
- package/package.json +6 -6
- package/src/components/Table/utils/transformers.test.tsx +31 -17
- package/src/components/TableComposable/examples/ComposableTable.md +3 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,30 @@
|
|
|
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.105.4 (2022-09-02)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @patternfly/react-table
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
## 4.105.3 (2022-09-01)
|
|
15
|
+
|
|
16
|
+
**Note:** Version bump only for package @patternfly/react-table
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
## 4.105.2 (2022-09-01)
|
|
23
|
+
|
|
24
|
+
**Note:** Version bump only for package @patternfly/react-table
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
6
30
|
## 4.105.1 (2022-09-01)
|
|
7
31
|
|
|
8
32
|
**Note:** Version bump only for package @patternfly/react-table
|
package/dist/umd/react-table.css
CHANGED
|
@@ -9331,6 +9331,7 @@ button.pf-c-breadcrumb__link {
|
|
|
9331
9331
|
--pf-c-card--child--PaddingBottom: var(--pf-global--spacer--lg);
|
|
9332
9332
|
--pf-c-card--child--PaddingLeft: var(--pf-global--spacer--lg);
|
|
9333
9333
|
--pf-c-card--c-divider--child--PaddingTop: var(--pf-global--spacer--lg);
|
|
9334
|
+
--pf-c-card__title--FontFamily: var(--pf-global--FontFamily--heading--sans-serif);
|
|
9334
9335
|
--pf-c-card__title--FontSize: var(--pf-global--FontSize--md);
|
|
9335
9336
|
--pf-c-card__title--FontWeight: var(--pf-global--FontWeight--bold);
|
|
9336
9337
|
--pf-c-card__title--not--last-child--PaddingBottom: var(--pf-global--spacer--md);
|
|
@@ -16053,7 +16054,7 @@ ul.pf-c-list {
|
|
|
16053
16054
|
}
|
|
16054
16055
|
|
|
16055
16056
|
.pf-c-masthead .pf-c-button.pf-m-plain {
|
|
16056
|
-
color: var(--pf-
|
|
16057
|
+
color: var(--pf-c-button--m-plain--Color);
|
|
16057
16058
|
}
|
|
16058
16059
|
|
|
16059
16060
|
.pf-c-masthead__main {
|
|
@@ -19204,12 +19205,15 @@ label.pf-c-menu__item:where(:not([disabled], .pf-m-disabled)) {
|
|
|
19204
19205
|
--pf-c-notification-badge__i--Height: auto;
|
|
19205
19206
|
--pf-c-notification-badge--m-read--after--BorderColor: transparent;
|
|
19206
19207
|
--pf-c-notification-badge--m-read--after--BackgroundColor: transparent;
|
|
19208
|
+
--pf-c-notification-badge--m-read--m-expanded--after--BackgroundColor: var(--pf-global--BackgroundColor--dark-200);
|
|
19207
19209
|
--pf-c-notification-badge--m-unread--Color: var(--pf-global--Color--light-100);
|
|
19208
19210
|
--pf-c-notification-badge--m-unread--after--BackgroundColor: var(--pf-global--active-color--100);
|
|
19209
19211
|
--pf-c-notification-badge--m-unread--hover--after--BackgroundColor: var(--pf-global--primary-color--200);
|
|
19212
|
+
--pf-c-notification-badge--m-unread--m-expanded--after--BackgroundColor: var(--pf-global--primary-color--200);
|
|
19210
19213
|
--pf-c-notification-badge--m-attention--Color: var(--pf-global--Color--light-100);
|
|
19211
19214
|
--pf-c-notification-badge--m-attention--after--BackgroundColor: var(--pf-global--danger-color--100);
|
|
19212
19215
|
--pf-c-notification-badge--m-attention--hover--after--BackgroundColor: var(--pf-global--danger-color--200);
|
|
19216
|
+
--pf-c-notification-badge--m-attention--m-expanded--after--BackgroundColor: var(--pf-global--danger-color--200);
|
|
19213
19217
|
--pf-c-notification-badge__count--MarginLeft: var(--pf-global--spacer--xs);
|
|
19214
19218
|
--pf-c-notification-badge--pf-icon-attention-bell--LineHeight: var(--pf-global--LineHeight--sm);
|
|
19215
19219
|
position: relative;
|
|
@@ -19257,6 +19261,7 @@ label.pf-c-menu__item:where(:not([disabled], .pf-m-disabled)) {
|
|
|
19257
19261
|
.pf-c-notification-badge.pf-m-read {
|
|
19258
19262
|
--pf-c-notification-badge--after--BackgroundColor: var(--pf-c-notification-badge--m-read--after--BackgroundColor);
|
|
19259
19263
|
--pf-c-notification-badge--after--BorderColor: var(--pf-c-notification-badge--m-read--after--BorderColor);
|
|
19264
|
+
color: var(--pf-c-notification-badge--m-read--Color, inherit);
|
|
19260
19265
|
}
|
|
19261
19266
|
|
|
19262
19267
|
.pf-c-notification-badge.pf-m-unread {
|
|
@@ -19274,7 +19279,14 @@ label.pf-c-menu__item:where(:not([disabled], .pf-m-disabled)) {
|
|
|
19274
19279
|
}
|
|
19275
19280
|
|
|
19276
19281
|
.pf-c-notification-badge.pf-m-attention:hover {
|
|
19277
|
-
--pf-c-notification-badge--after--BackgroundColor: var(--pf-c-notification-badge--m-attention--hover--after--BackgroundColor);
|
|
19282
|
+
--pf-c-notification-badge--m-attention--after--BackgroundColor: var(--pf-c-notification-badge--m-attention--hover--after--BackgroundColor);
|
|
19283
|
+
}
|
|
19284
|
+
|
|
19285
|
+
.pf-c-notification-badge.pf-m-expanded {
|
|
19286
|
+
--pf-c-notification-badge--m-read--Color: var(--pf-global--Color--light-100);
|
|
19287
|
+
--pf-c-notification-badge--m-read--after--BackgroundColor: var(--pf-c-notification-badge--m-read--m-expanded--after--BackgroundColor);
|
|
19288
|
+
--pf-c-notification-badge--m-unread--after--BackgroundColor: var(--pf-c-notification-badge--m-unread--m-expanded--after--BackgroundColor);
|
|
19289
|
+
--pf-c-notification-badge--m-attention--after--BackgroundColor: var(--pf-c-notification-badge--m-attention--m-expanded--after--BackgroundColor);
|
|
19278
19290
|
}
|
|
19279
19291
|
|
|
19280
19292
|
.pf-c-notification-badge__count {
|
|
@@ -19282,7 +19294,9 @@ label.pf-c-menu__item:where(:not([disabled], .pf-m-disabled)) {
|
|
|
19282
19294
|
}
|
|
19283
19295
|
|
|
19284
19296
|
:where(.pf-theme-dark) .pf-c-notification-badge {
|
|
19297
|
+
--pf-c-notification-badge--m-read--m-expanded--after--BackgroundColor: var(--pf-global--BackgroundColor--400);
|
|
19285
19298
|
--pf-c-notification-badge--m-unread--after--BackgroundColor: var(--pf-global--primary-color--300);
|
|
19299
|
+
--pf-c-notification-badge--m-attention--Color: var(--pf-global--palette--black-900);
|
|
19286
19300
|
}
|
|
19287
19301
|
|
|
19288
19302
|
.pf-c-notification-drawer {
|
|
@@ -20212,6 +20226,7 @@ label.pf-c-menu__item:where(:not([disabled], .pf-m-disabled)) {
|
|
|
20212
20226
|
.pf-c-page.pf-m-full-height {
|
|
20213
20227
|
height: 100vh;
|
|
20214
20228
|
height: 100dvh;
|
|
20229
|
+
max-height: 100%;
|
|
20215
20230
|
}
|
|
20216
20231
|
|
|
20217
20232
|
.pf-c-page__header,
|
|
@@ -31736,21 +31751,6 @@ label.pf-c-tree-view__node-text {
|
|
|
31736
31751
|
margin-right: var(--pf-l-level--m-gutter--MarginRight);
|
|
31737
31752
|
}
|
|
31738
31753
|
|
|
31739
|
-
.pf-l-stack {
|
|
31740
|
-
--pf-l-stack--m-gutter--MarginBottom: var(--pf-global--gutter);
|
|
31741
|
-
display: flex;
|
|
31742
|
-
flex-direction: column;
|
|
31743
|
-
height: 100%;
|
|
31744
|
-
}
|
|
31745
|
-
|
|
31746
|
-
.pf-l-stack__item.pf-m-fill {
|
|
31747
|
-
flex-grow: 1;
|
|
31748
|
-
}
|
|
31749
|
-
|
|
31750
|
-
.pf-l-stack.pf-m-gutter > *:not(:last-child) {
|
|
31751
|
-
margin-bottom: var(--pf-l-stack--m-gutter--MarginBottom);
|
|
31752
|
-
}
|
|
31753
|
-
|
|
31754
31754
|
.pf-l-split {
|
|
31755
31755
|
--pf-l-split--m-gutter--MarginRight: var(--pf-global--gutter);
|
|
31756
31756
|
display: flex;
|
|
@@ -31770,6 +31770,21 @@ label.pf-c-tree-view__node-text {
|
|
|
31770
31770
|
margin-right: var(--pf-l-split--m-gutter--MarginRight);
|
|
31771
31771
|
}
|
|
31772
31772
|
|
|
31773
|
+
.pf-l-stack {
|
|
31774
|
+
--pf-l-stack--m-gutter--MarginBottom: var(--pf-global--gutter);
|
|
31775
|
+
display: flex;
|
|
31776
|
+
flex-direction: column;
|
|
31777
|
+
height: 100%;
|
|
31778
|
+
}
|
|
31779
|
+
|
|
31780
|
+
.pf-l-stack__item.pf-m-fill {
|
|
31781
|
+
flex-grow: 1;
|
|
31782
|
+
}
|
|
31783
|
+
|
|
31784
|
+
.pf-l-stack.pf-m-gutter > *:not(:last-child) {
|
|
31785
|
+
margin-bottom: var(--pf-l-stack--m-gutter--MarginBottom);
|
|
31786
|
+
}
|
|
31787
|
+
|
|
31773
31788
|
.pf-c-alert-group {
|
|
31774
31789
|
--pf-c-alert-group__item--MarginTop: var(--pf-global--spacer--sm);
|
|
31775
31790
|
--pf-c-alert-group--m-toast--Top: var(--pf-global--spacer--2xl);
|
package/dist/umd/react-table.js
CHANGED
|
@@ -179,7 +179,6 @@
|
|
|
179
179
|
};
|
|
180
180
|
var globalHeightBreakpoint2xl = global_height_breakpoint_2xl;
|
|
181
181
|
|
|
182
|
-
const KEY_CODES = { ARROW_UP: 38, ARROW_DOWN: 40, ESCAPE_KEY: 27, TAB: 9, ENTER: 13, SPACE: 32 };
|
|
183
182
|
const KEYHANDLER_DIRECTION = { UP: 'up', DOWN: 'down', RIGHT: 'right', LEFT: 'left' };
|
|
184
183
|
var ValidatedOptions;
|
|
185
184
|
(function (ValidatedOptions) {
|
|
@@ -4433,13 +4432,13 @@
|
|
|
4433
4432
|
}, []);
|
|
4434
4433
|
const onDocumentKeyDown = (event) => {
|
|
4435
4434
|
if (!triggerManually) {
|
|
4436
|
-
if (event.
|
|
4435
|
+
if (event.key === KeyTypes.Escape && visible) {
|
|
4437
4436
|
hide();
|
|
4438
4437
|
}
|
|
4439
4438
|
}
|
|
4440
4439
|
};
|
|
4441
4440
|
const onTriggerEnter = (event) => {
|
|
4442
|
-
if (event.
|
|
4441
|
+
if (event.key === KeyTypes.Enter) {
|
|
4443
4442
|
if (!visible) {
|
|
4444
4443
|
show();
|
|
4445
4444
|
}
|
|
@@ -5140,12 +5139,11 @@
|
|
|
5140
5139
|
};
|
|
5141
5140
|
this.onEscPress = (event) => {
|
|
5142
5141
|
const { parentRef, getMenuRef } = this.props;
|
|
5143
|
-
const keyCode = event.keyCode || event.which;
|
|
5144
5142
|
const menuRef = getMenuRef && getMenuRef();
|
|
5145
5143
|
const escFromToggle = parentRef && parentRef.current && parentRef.current.contains(event.target);
|
|
5146
5144
|
const escFromWithinMenu = menuRef && menuRef.contains && menuRef.contains(event.target);
|
|
5147
5145
|
if (this.props.isOpen &&
|
|
5148
|
-
(
|
|
5146
|
+
(event.key === KeyTypes.Escape || event.key === 'Tab') &&
|
|
5149
5147
|
(escFromToggle || escFromWithinMenu)) {
|
|
5150
5148
|
this.props.onToggle(false, event);
|
|
5151
5149
|
this.buttonRef.current.focus();
|