@patternfly/react-table 4.92.3 → 4.93.2

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,36 @@
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.93.2 (2022-06-30)
7
+
8
+ **Note:** Version bump only for package @patternfly/react-table
9
+
10
+
11
+
12
+
13
+
14
+ ## 4.93.1 (2022-06-29)
15
+
16
+
17
+ ### Bug Fixes
18
+
19
+ * **Select:** update logic should only apply to typeahead ([#7632](https://github.com/patternfly/patternfly-react/issues/7632)) ([0b9148e](https://github.com/patternfly/patternfly-react/commit/0b9148e67030236e61423895c6632b20dac4617f))
20
+
21
+
22
+
23
+
24
+
25
+ # 4.93.0 (2022-06-27)
26
+
27
+
28
+ ### Features
29
+
30
+ * **wizard:** add support for additional information panel (drawer) ([#7323](https://github.com/patternfly/patternfly-react/issues/7323)) ([6702504](https://github.com/patternfly/patternfly-react/commit/67025047d7bb644497f4477b77dbbdebe8ce97da))
31
+
32
+
33
+
34
+
35
+
6
36
  ## 4.92.3 (2022-06-23)
7
37
 
8
38
  **Note:** Version bump only for package @patternfly/react-table
@@ -6258,30 +6258,32 @@
6258
6258
  this.refCollection[this.state.viewMoreNextIndex][0].focus();
6259
6259
  this.setState({ viewMoreNextIndex: -1 });
6260
6260
  }
6261
- const checkUpdatedChildren = (prevChildren, currChildren) => prevChildren.some((prevChild, index) => {
6262
- const prevChildProps = prevChild.props;
6263
- const currChild = currChildren[index];
6264
- const { props: currChildProps } = currChild;
6265
- if (prevChildProps && currChildProps) {
6266
- return (prevChildProps.value !== currChildProps.value ||
6267
- prevChildProps.label !== currChildProps.label ||
6268
- prevChildProps.isDisabled !== currChildProps.isDisabled ||
6269
- prevChildProps.isPlaceholder !== currChildProps.isPlaceholder);
6270
- }
6271
- else {
6272
- return prevChild !== currChild;
6261
+ if (this.props.variant === 'typeahead' || this.props.variant === 'typeaheadmulti') {
6262
+ const checkUpdatedChildren = (prevChildren, currChildren) => Array.from(prevChildren).some((prevChild, index) => {
6263
+ const prevChildProps = prevChild.props;
6264
+ const currChild = currChildren[index];
6265
+ const { props: currChildProps } = currChild;
6266
+ if (prevChildProps && currChildProps) {
6267
+ return (prevChildProps.value !== currChildProps.value ||
6268
+ prevChildProps.label !== currChildProps.label ||
6269
+ prevChildProps.isDisabled !== currChildProps.isDisabled ||
6270
+ prevChildProps.isPlaceholder !== currChildProps.isPlaceholder);
6271
+ }
6272
+ else {
6273
+ return prevChild !== currChild;
6274
+ }
6275
+ });
6276
+ const hasUpdatedChildren = prevProps.children.length !== this.props.children.length ||
6277
+ checkUpdatedChildren(prevProps.children, this.props.children) ||
6278
+ (this.props.isGrouped &&
6279
+ Array.from(prevProps.children).some((prevChild, index) => prevChild.type === SelectGroup &&
6280
+ prevChild.props.children &&
6281
+ this.props.children[index].props.children &&
6282
+ (prevChild.props.children.length !== this.props.children[index].props.children.length ||
6283
+ checkUpdatedChildren(prevChild.props.children, this.props.children[index].props.children))));
6284
+ if (hasUpdatedChildren) {
6285
+ this.updateTypeAheadFilteredChildren(prevState.typeaheadInputValue || '', null);
6273
6286
  }
6274
- });
6275
- const hasUpdatedChildren = prevProps.children.length !== this.props.children.length ||
6276
- checkUpdatedChildren(prevProps.children, this.props.children) ||
6277
- (this.props.isGrouped &&
6278
- prevProps.children.some((prevChild, index) => prevChild.type === SelectGroup &&
6279
- prevChild.props.children &&
6280
- this.props.children[index].props.children &&
6281
- (prevChild.props.children.length !== this.props.children[index].props.children.length ||
6282
- checkUpdatedChildren(prevChild.props.children, this.props.children[index].props.children))));
6283
- if (hasUpdatedChildren) {
6284
- this.updateTypeAheadFilteredChildren(prevState.typeaheadInputValue || '', null);
6285
6287
  }
6286
6288
  // for menus with favorites,
6287
6289
  // if the number of favorites or typeahead filtered children has changed, the generated
@@ -14695,6 +14695,150 @@ label.pf-c-input-group__text {
14695
14695
  --pf-c-sidebar__panel--FlexBasis: 100%;
14696
14696
  }
14697
14697
  }
14698
+ .pf-c-label-group {
14699
+ --pf-c-label-group__list--MarginBottom: calc(var(--pf-global--spacer--xs) * -1);
14700
+ --pf-c-label-group__list--MarginRight: calc(var(--pf-global--spacer--xs) * -1);
14701
+ --pf-c-label-group--m-category--PaddingTop: var(--pf-global--spacer--xs);
14702
+ --pf-c-label-group--m-category--PaddingRight: var(--pf-global--spacer--xs);
14703
+ --pf-c-label-group--m-category--PaddingBottom: var(--pf-global--spacer--xs);
14704
+ --pf-c-label-group--m-category--PaddingLeft: var(--pf-global--spacer--sm);
14705
+ --pf-c-label-group--m-vertical--m-category--PaddingRight: var(--pf-global--spacer--sm);
14706
+ --pf-c-label-group--m-category--BorderRadius: var(--pf-global--BorderRadius--sm);
14707
+ --pf-c-label-group--m-category--BorderWidth: var(--pf-global--BorderWidth--sm);
14708
+ --pf-c-label-group--m-category--BorderColor: var(--pf-global--BorderColor--300);
14709
+ --pf-c-label-group--m-category--BackgroundColor: var(--pf-global--BackgroundColor--100);
14710
+ --pf-c-label-group__label--MarginRight: var(--pf-global--spacer--sm);
14711
+ --pf-c-label-group__label--MarginBottom: 0;
14712
+ --pf-c-label-group--m-vertical__label--MarginBottom: var(--pf-global--spacer--sm);
14713
+ --pf-c-label-group__label--FontSize: var(--pf-global--FontSize--sm);
14714
+ --pf-c-label-group__label--MaxWidth: 18ch;
14715
+ --pf-c-label-group__close--MarginTop: calc(var(--pf-global--spacer--xs) * -1);
14716
+ --pf-c-label-group__close--MarginBottom: calc(var(--pf-global--spacer--xs) * -1);
14717
+ --pf-c-label-group--m-vertical__close--MarginTop: calc(var(--pf-global--spacer--form-element) * -1);
14718
+ --pf-c-label-group--m-vertical__close--MarginRight: calc(var(--pf-global--spacer--form-element) * -1);
14719
+ --pf-c-label-group--m-vertical__close--MarginLeft: var(--pf-global--spacer--sm);
14720
+ --pf-c-label-group--m-vertical__close--c-button--PaddingRight: var(--pf-global--spacer--sm);
14721
+ --pf-c-label-group--m-vertical__close--c-button--PaddingLeft: var(--pf-global--spacer--sm);
14722
+ --pf-c-label-group__list-item--MarginRight: var(--pf-global--spacer--xs);
14723
+ --pf-c-label-group__list-item--MarginBottom: var(--pf-global--spacer--xs);
14724
+ --pf-c-label-group__textarea--MinWidth: 12.5rem;
14725
+ --pf-c-label-group__textarea--PaddingTop: 0.125rem;
14726
+ --pf-c-label-group__textarea--PaddingRight: var(--pf-global--spacer--xs);
14727
+ --pf-c-label-group__textarea--PaddingBottom: 0;
14728
+ --pf-c-label-group__textarea--PaddingLeft: var(--pf-global--spacer--xs);
14729
+ display: inline-flex;
14730
+ align-items: center;
14731
+ }
14732
+
14733
+ .pf-c-label-group.pf-m-category {
14734
+ padding-top: var(--pf-c-label-group--m-category--PaddingTop);
14735
+ padding-right: var(--pf-c-label-group--m-category--PaddingRight);
14736
+ padding-bottom: var(--pf-c-label-group--m-category--PaddingBottom);
14737
+ padding-left: var(--pf-c-label-group--m-category--PaddingLeft);
14738
+ background-color: var(--pf-c-label-group--m-category--BackgroundColor);
14739
+ border: var(--pf-c-label-group--m-category--BorderWidth) solid var(--pf-c-label-group--m-category--BorderColor);
14740
+ border-radius: var(--pf-c-label-group--m-category--BorderRadius);
14741
+ }
14742
+
14743
+ .pf-c-label-group.pf-m-vertical {
14744
+ --pf-c-label-group__list--MarginRight: 0;
14745
+ --pf-c-label-group__list--MarginBottom: 0;
14746
+ --pf-c-label-group__list-item--MarginRight: 0;
14747
+ --pf-c-label-group__label--MarginRight: 0;
14748
+ --pf-c-label-group__label--MarginBottom: var(--pf-c-label-group--m-vertical__label--MarginBottom);
14749
+ --pf-c-label-group__close--MarginTop: var(--pf-c-label-group--m-vertical__close--MarginTop);
14750
+ --pf-c-label-group__close--MarginLeft: var(--pf-c-label-group--m-vertical__close--MarginLeft);
14751
+ --pf-c-label-group__close--MarginBottom: 0;
14752
+ --pf-c-label-group__close--MarginRight: var(--pf-c-label-group--m-vertical__close--MarginRight);
14753
+ --pf-c-label-group--m-category--PaddingRight: var(--pf-c-label-group--m-vertical--m-category--PaddingRight);
14754
+ }
14755
+
14756
+ .pf-c-label-group.pf-m-vertical.pf-c-label-group {
14757
+ align-items: flex-start;
14758
+ }
14759
+
14760
+ .pf-c-label-group.pf-m-vertical .pf-c-label-group__list {
14761
+ flex-direction: column;
14762
+ align-items: flex-start;
14763
+ }
14764
+
14765
+ .pf-c-label-group.pf-m-vertical .pf-c-label-group__main {
14766
+ flex-direction: column;
14767
+ }
14768
+
14769
+ .pf-c-label-group.pf-m-vertical .pf-c-label-group__list-item:last-child {
14770
+ --pf-c-label-group__list-item--MarginBottom: 0;
14771
+ }
14772
+
14773
+ .pf-c-label-group.pf-m-vertical .pf-c-label-group__close .pf-c-button {
14774
+ --pf-c-button--PaddingLeft: var(--pf-c-label-group--m-vertical__close--c-button--PaddingLeft);
14775
+ --pf-c-button--PaddingRight: var(--pf-c-label-group--m-vertical__close--c-button--PaddingRight);
14776
+ }
14777
+
14778
+ .pf-c-label-group.pf-m-editable,
14779
+ .pf-c-label-group.pf-m-editable .pf-c-label-group__main,
14780
+ .pf-c-label-group.pf-m-editable .pf-c-label-group__list {
14781
+ display: flex;
14782
+ }
14783
+
14784
+ .pf-c-label-group.pf-m-editable .pf-c-label-group__main,
14785
+ .pf-c-label-group.pf-m-editable .pf-c-label-group__list,
14786
+ .pf-c-label-group.pf-m-editable .pf-c-label-group__list-item.pf-m-textarea,
14787
+ .pf-c-label-group.pf-m-editable .pf-c-label-group__textarea {
14788
+ flex: 1;
14789
+ }
14790
+
14791
+ .pf-c-label-group__main {
14792
+ display: flex;
14793
+ flex: 1;
14794
+ flex-wrap: wrap;
14795
+ align-items: baseline;
14796
+ }
14797
+
14798
+ .pf-c-label-group__list {
14799
+ display: inline-flex;
14800
+ flex-wrap: wrap;
14801
+ margin-right: var(--pf-c-label-group__list--MarginRight);
14802
+ margin-bottom: var(--pf-c-label-group__list--MarginBottom);
14803
+ }
14804
+
14805
+ .pf-c-label-group__list-item {
14806
+ display: inline-flex;
14807
+ margin-right: var(--pf-c-label-group__list-item--MarginRight);
14808
+ margin-bottom: var(--pf-c-label-group__list-item--MarginBottom);
14809
+ }
14810
+
14811
+ .pf-c-label-group__label {
14812
+ overflow: hidden;
14813
+ text-overflow: ellipsis;
14814
+ white-space: nowrap;
14815
+ max-width: var(--pf-c-label-group__label--MaxWidth);
14816
+ margin-right: var(--pf-c-label-group__label--MarginRight);
14817
+ margin-bottom: var(--pf-c-label-group__label--MarginBottom);
14818
+ font-size: var(--pf-c-label-group__label--FontSize);
14819
+ }
14820
+
14821
+ .pf-c-label-group__close {
14822
+ margin-top: var(--pf-c-label-group__close--MarginTop);
14823
+ margin-right: var(--pf-c-label-group__close--MarginRight);
14824
+ margin-bottom: var(--pf-c-label-group__close--MarginBottom);
14825
+ margin-left: var(--pf-c-label-group__close--MarginLeft);
14826
+ }
14827
+
14828
+ .pf-c-label-group__textarea {
14829
+ min-width: var(--pf-c-label-group__textarea--MinWidth);
14830
+ padding: var(--pf-c-label-group__textarea--PaddingTop) var(--pf-c-label-group__textarea--PaddingRight) var(--pf-c-label-group__textarea--PaddingBottom) var(--pf-c-label-group__textarea--PaddingLeft);
14831
+ white-space: nowrap;
14832
+ resize: none;
14833
+ border: 0;
14834
+ -ms-overflow-style: none;
14835
+ scrollbar-width: none;
14836
+ }
14837
+
14838
+ .pf-c-label-group__textarea::-webkit-scrollbar {
14839
+ display: none;
14840
+ }
14841
+
14698
14842
  .pf-c-label {
14699
14843
  --pf-c-label--PaddingTop: var(--pf-global--spacer--xs);
14700
14844
  --pf-c-label--PaddingRight: var(--pf-global--spacer--sm);
@@ -15158,150 +15302,6 @@ button.pf-c-label__content:focus {
15158
15302
  --pf-c-label--m-outline--m-cyan__content--link--focus--before--BorderColor: var(--pf-global--palette--cyan-100);
15159
15303
  }
15160
15304
 
15161
- .pf-c-label-group {
15162
- --pf-c-label-group__list--MarginBottom: calc(var(--pf-global--spacer--xs) * -1);
15163
- --pf-c-label-group__list--MarginRight: calc(var(--pf-global--spacer--xs) * -1);
15164
- --pf-c-label-group--m-category--PaddingTop: var(--pf-global--spacer--xs);
15165
- --pf-c-label-group--m-category--PaddingRight: var(--pf-global--spacer--xs);
15166
- --pf-c-label-group--m-category--PaddingBottom: var(--pf-global--spacer--xs);
15167
- --pf-c-label-group--m-category--PaddingLeft: var(--pf-global--spacer--sm);
15168
- --pf-c-label-group--m-vertical--m-category--PaddingRight: var(--pf-global--spacer--sm);
15169
- --pf-c-label-group--m-category--BorderRadius: var(--pf-global--BorderRadius--sm);
15170
- --pf-c-label-group--m-category--BorderWidth: var(--pf-global--BorderWidth--sm);
15171
- --pf-c-label-group--m-category--BorderColor: var(--pf-global--BorderColor--300);
15172
- --pf-c-label-group--m-category--BackgroundColor: var(--pf-global--BackgroundColor--100);
15173
- --pf-c-label-group__label--MarginRight: var(--pf-global--spacer--sm);
15174
- --pf-c-label-group__label--MarginBottom: 0;
15175
- --pf-c-label-group--m-vertical__label--MarginBottom: var(--pf-global--spacer--sm);
15176
- --pf-c-label-group__label--FontSize: var(--pf-global--FontSize--sm);
15177
- --pf-c-label-group__label--MaxWidth: 18ch;
15178
- --pf-c-label-group__close--MarginTop: calc(var(--pf-global--spacer--xs) * -1);
15179
- --pf-c-label-group__close--MarginBottom: calc(var(--pf-global--spacer--xs) * -1);
15180
- --pf-c-label-group--m-vertical__close--MarginTop: calc(var(--pf-global--spacer--form-element) * -1);
15181
- --pf-c-label-group--m-vertical__close--MarginRight: calc(var(--pf-global--spacer--form-element) * -1);
15182
- --pf-c-label-group--m-vertical__close--MarginLeft: var(--pf-global--spacer--sm);
15183
- --pf-c-label-group--m-vertical__close--c-button--PaddingRight: var(--pf-global--spacer--sm);
15184
- --pf-c-label-group--m-vertical__close--c-button--PaddingLeft: var(--pf-global--spacer--sm);
15185
- --pf-c-label-group__list-item--MarginRight: var(--pf-global--spacer--xs);
15186
- --pf-c-label-group__list-item--MarginBottom: var(--pf-global--spacer--xs);
15187
- --pf-c-label-group__textarea--MinWidth: 12.5rem;
15188
- --pf-c-label-group__textarea--PaddingTop: 0.125rem;
15189
- --pf-c-label-group__textarea--PaddingRight: var(--pf-global--spacer--xs);
15190
- --pf-c-label-group__textarea--PaddingBottom: 0;
15191
- --pf-c-label-group__textarea--PaddingLeft: var(--pf-global--spacer--xs);
15192
- display: inline-flex;
15193
- align-items: center;
15194
- }
15195
-
15196
- .pf-c-label-group.pf-m-category {
15197
- padding-top: var(--pf-c-label-group--m-category--PaddingTop);
15198
- padding-right: var(--pf-c-label-group--m-category--PaddingRight);
15199
- padding-bottom: var(--pf-c-label-group--m-category--PaddingBottom);
15200
- padding-left: var(--pf-c-label-group--m-category--PaddingLeft);
15201
- background-color: var(--pf-c-label-group--m-category--BackgroundColor);
15202
- border: var(--pf-c-label-group--m-category--BorderWidth) solid var(--pf-c-label-group--m-category--BorderColor);
15203
- border-radius: var(--pf-c-label-group--m-category--BorderRadius);
15204
- }
15205
-
15206
- .pf-c-label-group.pf-m-vertical {
15207
- --pf-c-label-group__list--MarginRight: 0;
15208
- --pf-c-label-group__list--MarginBottom: 0;
15209
- --pf-c-label-group__list-item--MarginRight: 0;
15210
- --pf-c-label-group__label--MarginRight: 0;
15211
- --pf-c-label-group__label--MarginBottom: var(--pf-c-label-group--m-vertical__label--MarginBottom);
15212
- --pf-c-label-group__close--MarginTop: var(--pf-c-label-group--m-vertical__close--MarginTop);
15213
- --pf-c-label-group__close--MarginLeft: var(--pf-c-label-group--m-vertical__close--MarginLeft);
15214
- --pf-c-label-group__close--MarginBottom: 0;
15215
- --pf-c-label-group__close--MarginRight: var(--pf-c-label-group--m-vertical__close--MarginRight);
15216
- --pf-c-label-group--m-category--PaddingRight: var(--pf-c-label-group--m-vertical--m-category--PaddingRight);
15217
- }
15218
-
15219
- .pf-c-label-group.pf-m-vertical.pf-c-label-group {
15220
- align-items: flex-start;
15221
- }
15222
-
15223
- .pf-c-label-group.pf-m-vertical .pf-c-label-group__list {
15224
- flex-direction: column;
15225
- align-items: flex-start;
15226
- }
15227
-
15228
- .pf-c-label-group.pf-m-vertical .pf-c-label-group__main {
15229
- flex-direction: column;
15230
- }
15231
-
15232
- .pf-c-label-group.pf-m-vertical .pf-c-label-group__list-item:last-child {
15233
- --pf-c-label-group__list-item--MarginBottom: 0;
15234
- }
15235
-
15236
- .pf-c-label-group.pf-m-vertical .pf-c-label-group__close .pf-c-button {
15237
- --pf-c-button--PaddingLeft: var(--pf-c-label-group--m-vertical__close--c-button--PaddingLeft);
15238
- --pf-c-button--PaddingRight: var(--pf-c-label-group--m-vertical__close--c-button--PaddingRight);
15239
- }
15240
-
15241
- .pf-c-label-group.pf-m-editable,
15242
- .pf-c-label-group.pf-m-editable .pf-c-label-group__main,
15243
- .pf-c-label-group.pf-m-editable .pf-c-label-group__list {
15244
- display: flex;
15245
- }
15246
-
15247
- .pf-c-label-group.pf-m-editable .pf-c-label-group__main,
15248
- .pf-c-label-group.pf-m-editable .pf-c-label-group__list,
15249
- .pf-c-label-group.pf-m-editable .pf-c-label-group__list-item.pf-m-textarea,
15250
- .pf-c-label-group.pf-m-editable .pf-c-label-group__textarea {
15251
- flex: 1;
15252
- }
15253
-
15254
- .pf-c-label-group__main {
15255
- display: flex;
15256
- flex: 1;
15257
- flex-wrap: wrap;
15258
- align-items: baseline;
15259
- }
15260
-
15261
- .pf-c-label-group__list {
15262
- display: inline-flex;
15263
- flex-wrap: wrap;
15264
- margin-right: var(--pf-c-label-group__list--MarginRight);
15265
- margin-bottom: var(--pf-c-label-group__list--MarginBottom);
15266
- }
15267
-
15268
- .pf-c-label-group__list-item {
15269
- display: inline-flex;
15270
- margin-right: var(--pf-c-label-group__list-item--MarginRight);
15271
- margin-bottom: var(--pf-c-label-group__list-item--MarginBottom);
15272
- }
15273
-
15274
- .pf-c-label-group__label {
15275
- overflow: hidden;
15276
- text-overflow: ellipsis;
15277
- white-space: nowrap;
15278
- max-width: var(--pf-c-label-group__label--MaxWidth);
15279
- margin-right: var(--pf-c-label-group__label--MarginRight);
15280
- margin-bottom: var(--pf-c-label-group__label--MarginBottom);
15281
- font-size: var(--pf-c-label-group__label--FontSize);
15282
- }
15283
-
15284
- .pf-c-label-group__close {
15285
- margin-top: var(--pf-c-label-group__close--MarginTop);
15286
- margin-right: var(--pf-c-label-group__close--MarginRight);
15287
- margin-bottom: var(--pf-c-label-group__close--MarginBottom);
15288
- margin-left: var(--pf-c-label-group__close--MarginLeft);
15289
- }
15290
-
15291
- .pf-c-label-group__textarea {
15292
- min-width: var(--pf-c-label-group__textarea--MinWidth);
15293
- padding: var(--pf-c-label-group__textarea--PaddingTop) var(--pf-c-label-group__textarea--PaddingRight) var(--pf-c-label-group__textarea--PaddingBottom) var(--pf-c-label-group__textarea--PaddingLeft);
15294
- white-space: nowrap;
15295
- resize: none;
15296
- border: 0;
15297
- -ms-overflow-style: none;
15298
- scrollbar-width: none;
15299
- }
15300
-
15301
- .pf-c-label-group__textarea::-webkit-scrollbar {
15302
- display: none;
15303
- }
15304
-
15305
15305
  .pf-c-list {
15306
15306
  --pf-c-list--PaddingLeft: var(--pf-global--spacer--lg);
15307
15307
  --pf-c-list--nested--MarginTop: var(--pf-global--spacer--sm);