@patternfly/react-table 4.83.4 → 4.85.0

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,39 @@
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.85.0 (2022-05-19)
7
+
8
+
9
+ ### Features
10
+
11
+ * **table:** update sortable demo to align with core ([#7292](https://github.com/patternfly/patternfly-react/issues/7292)) ([6891764](https://github.com/patternfly/patternfly-react/commit/6891764f2507c775005878f6e74cc5c8e44a6c68))
12
+
13
+
14
+
15
+
16
+
17
+ # 4.84.0 (2022-05-19)
18
+
19
+
20
+ ### Features
21
+
22
+ * **Menu:** Added support for checkbox menu ([#7368](https://github.com/patternfly/patternfly-react/issues/7368)) ([8c2d1dc](https://github.com/patternfly/patternfly-react/commit/8c2d1dc23dbe5c28a8c1ecf79eb34ea911da386f))
23
+
24
+
25
+
26
+
27
+
28
+ ## 4.83.5 (2022-05-18)
29
+
30
+
31
+ ### Bug Fixes
32
+
33
+ * **Slider:** add support for aria-labelledby ad aria-describedby ([#7408](https://github.com/patternfly/patternfly-react/issues/7408)) ([7c8617a](https://github.com/patternfly/patternfly-react/commit/7c8617a1268a03061d51454b298c79ae5f7a59b0))
34
+
35
+
36
+
37
+
38
+
6
39
  ## 4.83.4 (2022-05-18)
7
40
 
8
41
 
@@ -7202,6 +7202,23 @@ svg.pf-c-spinner.pf-m-xl {
7202
7202
  transform: rotate(720deg);
7203
7203
  }
7204
7204
  }
7205
+ .pf-c-backdrop {
7206
+ --pf-c-backdrop--Position: fixed;
7207
+ --pf-c-backdrop--ZIndex: var(--pf-global--ZIndex--lg);
7208
+ --pf-c-backdrop--BackgroundColor: var(--pf-global--BackgroundColor--dark-transparent-100);
7209
+ position: var(--pf-c-backdrop--Position);
7210
+ top: 0;
7211
+ left: 0;
7212
+ z-index: var(--pf-c-backdrop--ZIndex);
7213
+ width: 100%;
7214
+ height: 100%;
7215
+ background-color: var(--pf-c-backdrop--BackgroundColor);
7216
+ }
7217
+
7218
+ .pf-c-backdrop__open {
7219
+ overflow: hidden;
7220
+ }
7221
+
7205
7222
  .pf-c-accordion {
7206
7223
  --pf-global--Color--100: var(--pf-global--Color--dark-100);
7207
7224
  --pf-global--Color--200: var(--pf-global--Color--dark-200);
@@ -7690,6 +7707,153 @@ svg.pf-c-spinner.pf-m-xl {
7690
7707
  --pf-c-alert__title--FontWeight: var(--pf-global--FontWeight--normal);
7691
7708
  }
7692
7709
 
7710
+ .pf-u-screen-reader {
7711
+ position: fixed;
7712
+ top: 0;
7713
+ left: 0;
7714
+ overflow: hidden;
7715
+ clip: rect(0, 0, 0, 0);
7716
+ white-space: nowrap;
7717
+ border: 0;
7718
+ }
7719
+
7720
+ .pf-u-visible {
7721
+ position: static;
7722
+ overflow: visible;
7723
+ clip: auto;
7724
+ white-space: normal;
7725
+ border: inherit;
7726
+ }
7727
+
7728
+ .pf-u-hidden {
7729
+ display: none !important;
7730
+ }
7731
+
7732
+ @media screen and (min-width: 576px) {
7733
+ .pf-u-screen-reader-on-sm {
7734
+ position: fixed;
7735
+ top: 0;
7736
+ left: 0;
7737
+ overflow: hidden;
7738
+ clip: rect(0, 0, 0, 0);
7739
+ white-space: nowrap;
7740
+ border: 0;
7741
+ }
7742
+ }
7743
+ @media screen and (min-width: 576px) {
7744
+ .pf-u-visible-on-sm {
7745
+ position: static;
7746
+ overflow: visible;
7747
+ clip: auto;
7748
+ white-space: normal;
7749
+ border: inherit;
7750
+ }
7751
+ }
7752
+ @media screen and (min-width: 576px) {
7753
+ .pf-u-hidden-on-sm {
7754
+ display: none !important;
7755
+ }
7756
+ }
7757
+ @media screen and (min-width: 768px) {
7758
+ .pf-u-screen-reader-on-md {
7759
+ position: fixed;
7760
+ top: 0;
7761
+ left: 0;
7762
+ overflow: hidden;
7763
+ clip: rect(0, 0, 0, 0);
7764
+ white-space: nowrap;
7765
+ border: 0;
7766
+ }
7767
+ }
7768
+ @media screen and (min-width: 768px) {
7769
+ .pf-u-visible-on-md {
7770
+ position: static;
7771
+ overflow: visible;
7772
+ clip: auto;
7773
+ white-space: normal;
7774
+ border: inherit;
7775
+ }
7776
+ }
7777
+ @media screen and (min-width: 768px) {
7778
+ .pf-u-hidden-on-md {
7779
+ display: none !important;
7780
+ }
7781
+ }
7782
+ @media screen and (min-width: 992px) {
7783
+ .pf-u-screen-reader-on-lg {
7784
+ position: fixed;
7785
+ top: 0;
7786
+ left: 0;
7787
+ overflow: hidden;
7788
+ clip: rect(0, 0, 0, 0);
7789
+ white-space: nowrap;
7790
+ border: 0;
7791
+ }
7792
+ }
7793
+ @media screen and (min-width: 992px) {
7794
+ .pf-u-visible-on-lg {
7795
+ position: static;
7796
+ overflow: visible;
7797
+ clip: auto;
7798
+ white-space: normal;
7799
+ border: inherit;
7800
+ }
7801
+ }
7802
+ @media screen and (min-width: 992px) {
7803
+ .pf-u-hidden-on-lg {
7804
+ display: none !important;
7805
+ }
7806
+ }
7807
+ @media screen and (min-width: 1200px) {
7808
+ .pf-u-screen-reader-on-xl {
7809
+ position: fixed;
7810
+ top: 0;
7811
+ left: 0;
7812
+ overflow: hidden;
7813
+ clip: rect(0, 0, 0, 0);
7814
+ white-space: nowrap;
7815
+ border: 0;
7816
+ }
7817
+ }
7818
+ @media screen and (min-width: 1200px) {
7819
+ .pf-u-visible-on-xl {
7820
+ position: static;
7821
+ overflow: visible;
7822
+ clip: auto;
7823
+ white-space: normal;
7824
+ border: inherit;
7825
+ }
7826
+ }
7827
+ @media screen and (min-width: 1200px) {
7828
+ .pf-u-hidden-on-xl {
7829
+ display: none !important;
7830
+ }
7831
+ }
7832
+ @media screen and (min-width: 1450px) {
7833
+ .pf-u-screen-reader-on-2xl {
7834
+ position: fixed;
7835
+ top: 0;
7836
+ left: 0;
7837
+ overflow: hidden;
7838
+ clip: rect(0, 0, 0, 0);
7839
+ white-space: nowrap;
7840
+ border: 0;
7841
+ }
7842
+ }
7843
+ @media screen and (min-width: 1450px) {
7844
+ .pf-u-visible-on-2xl {
7845
+ position: static;
7846
+ overflow: visible;
7847
+ clip: auto;
7848
+ white-space: normal;
7849
+ border: inherit;
7850
+ }
7851
+ }
7852
+ @media screen and (min-width: 1450px) {
7853
+ .pf-u-hidden-on-2xl {
7854
+ display: none !important;
7855
+ }
7856
+ }
7693
7857
  .pf-c-app-launcher {
7694
7858
  --pf-c-app-launcher__menu--BackgroundColor: var(--pf-global--BackgroundColor--light-100);
7695
7859
  --pf-c-app-launcher__menu--BoxShadow: var(--pf-global--BoxShadow--md);
@@ -7919,153 +8083,6 @@ svg.pf-c-spinner.pf-m-xl {
7919
8083
  color: var(--pf-c-app-launcher__group-title--Color);
7920
8084
  }
7921
8085
 
7922
- .pf-u-screen-reader {
7923
- position: fixed;
7924
- top: 0;
7925
- left: 0;
7926
- overflow: hidden;
7927
- clip: rect(0, 0, 0, 0);
7928
- white-space: nowrap;
7929
- border: 0;
7930
- }
7931
-
7932
- .pf-u-visible {
7933
- position: static;
7934
- overflow: visible;
7935
- clip: auto;
7936
- white-space: normal;
7937
- border: inherit;
7938
- }
7939
-
7940
- .pf-u-hidden {
7941
- display: none !important;
7942
- }
7943
-
7944
- @media screen and (min-width: 576px) {
7945
- .pf-u-screen-reader-on-sm {
7946
- position: fixed;
7947
- top: 0;
7948
- left: 0;
7949
- overflow: hidden;
7950
- clip: rect(0, 0, 0, 0);
7951
- white-space: nowrap;
7952
- border: 0;
7953
- }
7954
- }
7955
- @media screen and (min-width: 576px) {
7956
- .pf-u-visible-on-sm {
7957
- position: static;
7958
- overflow: visible;
7959
- clip: auto;
7960
- white-space: normal;
7961
- border: inherit;
7962
- }
7963
- }
7964
- @media screen and (min-width: 576px) {
7965
- .pf-u-hidden-on-sm {
7966
- display: none !important;
7967
- }
7968
- }
7969
- @media screen and (min-width: 768px) {
7970
- .pf-u-screen-reader-on-md {
7971
- position: fixed;
7972
- top: 0;
7973
- left: 0;
7974
- overflow: hidden;
7975
- clip: rect(0, 0, 0, 0);
7976
- white-space: nowrap;
7977
- border: 0;
7978
- }
7979
- }
7980
- @media screen and (min-width: 768px) {
7981
- .pf-u-visible-on-md {
7982
- position: static;
7983
- overflow: visible;
7984
- clip: auto;
7985
- white-space: normal;
7986
- border: inherit;
7987
- }
7988
- }
7989
- @media screen and (min-width: 768px) {
7990
- .pf-u-hidden-on-md {
7991
- display: none !important;
7992
- }
7993
- }
7994
- @media screen and (min-width: 992px) {
7995
- .pf-u-screen-reader-on-lg {
7996
- position: fixed;
7997
- top: 0;
7998
- left: 0;
7999
- overflow: hidden;
8000
- clip: rect(0, 0, 0, 0);
8001
- white-space: nowrap;
8002
- border: 0;
8003
- }
8004
- }
8005
- @media screen and (min-width: 992px) {
8006
- .pf-u-visible-on-lg {
8007
- position: static;
8008
- overflow: visible;
8009
- clip: auto;
8010
- white-space: normal;
8011
- border: inherit;
8012
- }
8013
- }
8014
- @media screen and (min-width: 992px) {
8015
- .pf-u-hidden-on-lg {
8016
- display: none !important;
8017
- }
8018
- }
8019
- @media screen and (min-width: 1200px) {
8020
- .pf-u-screen-reader-on-xl {
8021
- position: fixed;
8022
- top: 0;
8023
- left: 0;
8024
- overflow: hidden;
8025
- clip: rect(0, 0, 0, 0);
8026
- white-space: nowrap;
8027
- border: 0;
8028
- }
8029
- }
8030
- @media screen and (min-width: 1200px) {
8031
- .pf-u-visible-on-xl {
8032
- position: static;
8033
- overflow: visible;
8034
- clip: auto;
8035
- white-space: normal;
8036
- border: inherit;
8037
- }
8038
- }
8039
- @media screen and (min-width: 1200px) {
8040
- .pf-u-hidden-on-xl {
8041
- display: none !important;
8042
- }
8043
- }
8044
- @media screen and (min-width: 1450px) {
8045
- .pf-u-screen-reader-on-2xl {
8046
- position: fixed;
8047
- top: 0;
8048
- left: 0;
8049
- overflow: hidden;
8050
- clip: rect(0, 0, 0, 0);
8051
- white-space: nowrap;
8052
- border: 0;
8053
- }
8054
- }
8055
- @media screen and (min-width: 1450px) {
8056
- .pf-u-visible-on-2xl {
8057
- position: static;
8058
- overflow: visible;
8059
- clip: auto;
8060
- white-space: normal;
8061
- border: inherit;
8062
- }
8063
- }
8064
- @media screen and (min-width: 1450px) {
8065
- .pf-u-hidden-on-2xl {
8066
- display: none !important;
8067
- }
8068
- }
8069
8086
  .pf-c-avatar {
8070
8087
  --pf-c-avatar--BorderColor: transparent;
8071
8088
  --pf-c-avatar--BorderWidth: 0;
@@ -8355,23 +8372,6 @@ svg.pf-c-spinner.pf-m-xl {
8355
8372
  box-shadow: var(--pf-c-back-to-top--c-button--BoxShadow);
8356
8373
  }
8357
8374
 
8358
- .pf-c-backdrop {
8359
- --pf-c-backdrop--Position: fixed;
8360
- --pf-c-backdrop--ZIndex: var(--pf-global--ZIndex--lg);
8361
- --pf-c-backdrop--BackgroundColor: var(--pf-global--BackgroundColor--dark-transparent-100);
8362
- position: var(--pf-c-backdrop--Position);
8363
- top: 0;
8364
- left: 0;
8365
- z-index: var(--pf-c-backdrop--ZIndex);
8366
- width: 100%;
8367
- height: 100%;
8368
- background-color: var(--pf-c-backdrop--BackgroundColor);
8369
- }
8370
-
8371
- .pf-c-backdrop__open {
8372
- overflow: hidden;
8373
- }
8374
-
8375
8375
  .pf-c-background-image {
8376
8376
  --pf-c-background-image--BackgroundColor: var(--pf-global--BackgroundColor--dark-100);
8377
8377
  --pf-c-background-image--BackgroundImage: url("../../assets/images/pfbg_576.jpg");
@@ -6514,7 +6514,7 @@
6514
6514
  };
6515
6515
  }
6516
6516
  render() {
6517
- const _a = this.props, { 'aria-label': ariaLabel, className, onChange, isValid, isDisabled, isChecked, label, checked, defaultChecked, description, body, ouiaId, ouiaSafe } = _a, props = __rest$1(_a, ['aria-label', "className", "onChange", "isValid", "isDisabled", "isChecked", "label", "checked", "defaultChecked", "description", "body", "ouiaId", "ouiaSafe"]);
6517
+ const _a = this.props, { 'aria-label': ariaLabel, className, onChange, isValid, isDisabled, isChecked, label, checked, defaultChecked, description, body, ouiaId, ouiaSafe, component: Component } = _a, props = __rest$1(_a, ['aria-label', "className", "onChange", "isValid", "isDisabled", "isChecked", "label", "checked", "defaultChecked", "description", "body", "ouiaId", "ouiaSafe", "component"]);
6518
6518
  if (!props.id) {
6519
6519
  // eslint-disable-next-line no-console
6520
6520
  console.error('Checkbox:', 'id is required to make input accessible');
@@ -6530,7 +6530,7 @@
6530
6530
  checkedProps.defaultChecked = defaultChecked;
6531
6531
  }
6532
6532
  checkedProps.checked = checkedProps.checked === null ? false : checkedProps.checked;
6533
- return (React__namespace.createElement("div", { className: css(checkStyles.check, !label && checkStyles.modifiers.standalone, className) },
6533
+ return (React__namespace.createElement(Component, { className: css(checkStyles.check, !label && checkStyles.modifiers.standalone, className) },
6534
6534
  React__namespace.createElement("input", Object.assign({}, props, { className: css(checkStyles.checkInput), type: "checkbox", onChange: this.handleChange, "aria-invalid": !isValid, "aria-label": ariaLabel, disabled: isDisabled, ref: elem => elem && (elem.indeterminate = isChecked === null) }, checkedProps, getOUIAProps(Checkbox.displayName, ouiaId !== undefined ? ouiaId : this.state.ouiaStateId, ouiaSafe))),
6535
6535
  label && (React__namespace.createElement("label", { className: css(checkStyles.checkLabel, isDisabled && checkStyles.modifiers.disabled), htmlFor: props.id }, label)),
6536
6536
  description && React__namespace.createElement("span", { className: css(checkStyles.checkDescription) }, description),
@@ -6544,7 +6544,8 @@
6544
6544
  isDisabled: false,
6545
6545
  isChecked: false,
6546
6546
  onChange: defaultOnChange,
6547
- ouiaSafe: true
6547
+ ouiaSafe: true,
6548
+ component: 'div'
6548
6549
  };
6549
6550
 
6550
6551
  Promise.resolve().then(function () { return popover; });