@patternfly/react-table 4.82.6 → 4.83.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 +11 -0
- package/dist/umd/react-table.css +200 -200
- package/package.json +6 -6
- package/src/demos/Table.md +2 -2
- package/src/demos/table-demos/ExpandCollapseAll.jsx +27 -15
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
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.83.0 (2022-05-12)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **table:** expandable table demo ([#7277](https://github.com/patternfly/patternfly-react/issues/7277)) ([c081a61](https://github.com/patternfly/patternfly-react/commit/c081a61f11ceeb92688798106962e3604c243606))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
## 4.82.6 (2022-05-11)
|
|
7
18
|
|
|
8
19
|
**Note:** Version bump only for package @patternfly/react-table
|
package/dist/umd/react-table.css
CHANGED
|
@@ -16584,206 +16584,6 @@ label.pf-c-menu__item:where(:not([disabled], .pf-m-disabled)) {
|
|
|
16584
16584
|
border-bottom: var(--pf-c-menu__footer--after--BorderBottomWidth) solid var(--pf-c-menu__footer--after--BorderBottomColor);
|
|
16585
16585
|
}
|
|
16586
16586
|
|
|
16587
|
-
.pf-c-modal-box {
|
|
16588
|
-
--pf-c-modal-box--BackgroundColor: var(--pf-global--BackgroundColor--100);
|
|
16589
|
-
--pf-c-modal-box--BoxShadow: var(--pf-global--BoxShadow--xl);
|
|
16590
|
-
--pf-c-modal-box--ZIndex: var(--pf-global--ZIndex--xl);
|
|
16591
|
-
--pf-c-modal-box--Width: 100%;
|
|
16592
|
-
--pf-c-modal-box--MaxWidth: calc(100% - var(--pf-global--spacer--xl));
|
|
16593
|
-
--pf-c-modal-box--m-sm--sm--MaxWidth: 35rem;
|
|
16594
|
-
--pf-c-modal-box--m-md--Width: 52.5rem;
|
|
16595
|
-
--pf-c-modal-box--m-lg--lg--MaxWidth: 70rem;
|
|
16596
|
-
--pf-c-modal-box--MaxHeight: calc(100% - var(--pf-global--spacer--2xl));
|
|
16597
|
-
--pf-c-modal-box--m-align-top--spacer: var(--pf-global--spacer--sm);
|
|
16598
|
-
--pf-c-modal-box--m-align-top--xl--spacer: var(--pf-global--spacer--xl);
|
|
16599
|
-
--pf-c-modal-box--m-align-top--MarginTop: var(--pf-c-modal-box--m-align-top--spacer);
|
|
16600
|
-
--pf-c-modal-box--m-align-top--MaxHeight: calc(100% - min(var(--pf-c-modal-box--m-align-top--spacer), var(--pf-global--spacer--2xl)) - var(--pf-c-modal-box--m-align-top--spacer));
|
|
16601
|
-
--pf-c-modal-box--m-align-top--MaxWidth: calc(100% - min(var(--pf-c-modal-box--m-align-top--spacer) * 2, var(--pf-global--spacer--xl)));
|
|
16602
|
-
--pf-c-modal-box--m-danger__title-icon--Color: var(--pf-global--danger-color--100);
|
|
16603
|
-
--pf-c-modal-box--m-warning__title-icon--Color: var(--pf-global--warning-color--100);
|
|
16604
|
-
--pf-c-modal-box--m-success__title-icon--Color: var(--pf-global--success-color--100);
|
|
16605
|
-
--pf-c-modal-box--m-info__title-icon--Color: var(--pf-global--info-color--100);
|
|
16606
|
-
--pf-c-modal-box--m-default__title-icon--Color: var(--pf-global--default-color--200);
|
|
16607
|
-
--pf-c-modal-box__header--PaddingTop: var(--pf-global--spacer--lg);
|
|
16608
|
-
--pf-c-modal-box__header--PaddingRight: var(--pf-global--spacer--lg);
|
|
16609
|
-
--pf-c-modal-box__header--PaddingLeft: var(--pf-global--spacer--lg);
|
|
16610
|
-
--pf-c-modal-box__header--last-child--PaddingBottom: var(--pf-global--spacer--lg);
|
|
16611
|
-
--pf-c-modal-box__title--LineHeight: var(--pf-global--LineHeight--sm);
|
|
16612
|
-
--pf-c-modal-box__title--FontFamily: var(--pf-global--FontFamily--heading--sans-serif);
|
|
16613
|
-
--pf-c-modal-box__title--FontSize: var(--pf-global--FontSize--2xl);
|
|
16614
|
-
--pf-c-modal-box__title-icon--MarginRight: var(--pf-global--spacer--sm);
|
|
16615
|
-
--pf-c-modal-box__title-icon--Color: var(--pf-global--Color--100);
|
|
16616
|
-
--pf-c-modal-box__description--PaddingTop: var(--pf-global--spacer--xs);
|
|
16617
|
-
--pf-c-modal-box__body--MinHeight: calc(var(--pf-global--FontSize--md) * var(--pf-global--LineHeight--md));
|
|
16618
|
-
--pf-c-modal-box__body--PaddingTop: var(--pf-global--spacer--lg);
|
|
16619
|
-
--pf-c-modal-box__body--PaddingRight: var(--pf-global--spacer--lg);
|
|
16620
|
-
--pf-c-modal-box__body--PaddingLeft: var(--pf-global--spacer--lg);
|
|
16621
|
-
--pf-c-modal-box__body--last-child--PaddingBottom: var(--pf-global--spacer--lg);
|
|
16622
|
-
--pf-c-modal-box__header--body--PaddingTop: var(--pf-global--spacer--md);
|
|
16623
|
-
--pf-c-modal-box--c-button--Top: calc(var(--pf-global--spacer--lg));
|
|
16624
|
-
--pf-c-modal-box--c-button--Right: var(--pf-global--spacer--md);
|
|
16625
|
-
--pf-c-modal-box--c-button--sibling--MarginRight: calc(var(--pf-global--spacer--xl) + var(--pf-global--spacer--sm));
|
|
16626
|
-
--pf-c-modal-box__footer--PaddingTop: var(--pf-global--spacer--lg);
|
|
16627
|
-
--pf-c-modal-box__footer--PaddingRight: var(--pf-global--spacer--lg);
|
|
16628
|
-
--pf-c-modal-box__footer--PaddingBottom: var(--pf-global--spacer--lg);
|
|
16629
|
-
--pf-c-modal-box__footer--PaddingLeft: var(--pf-global--spacer--lg);
|
|
16630
|
-
--pf-c-modal-box__footer--c-button--MarginRight: var(--pf-global--spacer--md);
|
|
16631
|
-
--pf-c-modal-box__footer--c-button--sm--MarginRight: calc(var(--pf-c-modal-box__footer--c-button--MarginRight) / 2);
|
|
16632
|
-
position: relative;
|
|
16633
|
-
z-index: var(--pf-c-modal-box--ZIndex);
|
|
16634
|
-
display: flex;
|
|
16635
|
-
flex-direction: column;
|
|
16636
|
-
width: var(--pf-c-modal-box--Width);
|
|
16637
|
-
max-width: var(--pf-c-modal-box--MaxWidth);
|
|
16638
|
-
max-height: var(--pf-c-modal-box--MaxHeight);
|
|
16639
|
-
background-color: var(--pf-c-modal-box--BackgroundColor);
|
|
16640
|
-
box-shadow: var(--pf-c-modal-box--BoxShadow);
|
|
16641
|
-
}
|
|
16642
|
-
|
|
16643
|
-
@media (min-width: 1200px) {
|
|
16644
|
-
.pf-c-modal-box {
|
|
16645
|
-
--pf-c-modal-box--m-align-top--spacer: var(--pf-c-modal-box--m-align-top--xl--spacer);
|
|
16646
|
-
}
|
|
16647
|
-
}
|
|
16648
|
-
.pf-c-modal-box.pf-m-sm {
|
|
16649
|
-
--pf-c-modal-box--Width: var(--pf-c-modal-box--m-sm--sm--MaxWidth);
|
|
16650
|
-
}
|
|
16651
|
-
|
|
16652
|
-
.pf-c-modal-box.pf-m-md {
|
|
16653
|
-
--pf-c-modal-box--Width: var(--pf-c-modal-box--m-md--Width);
|
|
16654
|
-
}
|
|
16655
|
-
|
|
16656
|
-
.pf-c-modal-box.pf-m-lg {
|
|
16657
|
-
--pf-c-modal-box--Width: var(--pf-c-modal-box--m-lg--lg--MaxWidth);
|
|
16658
|
-
}
|
|
16659
|
-
|
|
16660
|
-
.pf-c-modal-box.pf-m-align-top {
|
|
16661
|
-
top: var(--pf-c-modal-box--m-align-top--MarginTop);
|
|
16662
|
-
align-self: flex-start;
|
|
16663
|
-
max-width: var(--pf-c-modal-box--m-align-top--MaxWidth);
|
|
16664
|
-
max-height: var(--pf-c-modal-box--m-align-top--MaxHeight);
|
|
16665
|
-
}
|
|
16666
|
-
|
|
16667
|
-
.pf-c-modal-box.pf-m-danger {
|
|
16668
|
-
--pf-c-modal-box__title-icon--Color: var(--pf-c-modal-box--m-danger__title-icon--Color);
|
|
16669
|
-
}
|
|
16670
|
-
|
|
16671
|
-
.pf-c-modal-box.pf-m-warning {
|
|
16672
|
-
--pf-c-modal-box__title-icon--Color: var(--pf-c-modal-box--m-warning__title-icon--Color);
|
|
16673
|
-
}
|
|
16674
|
-
|
|
16675
|
-
.pf-c-modal-box.pf-m-success {
|
|
16676
|
-
--pf-c-modal-box__title-icon--Color: var(--pf-c-modal-box--m-success__title-icon--Color);
|
|
16677
|
-
}
|
|
16678
|
-
|
|
16679
|
-
.pf-c-modal-box.pf-m-default {
|
|
16680
|
-
--pf-c-modal-box__title-icon--Color: var(--pf-c-modal-box--m-default__title-icon--Color);
|
|
16681
|
-
}
|
|
16682
|
-
|
|
16683
|
-
.pf-c-modal-box.pf-m-info {
|
|
16684
|
-
--pf-c-modal-box__title-icon--Color: var(--pf-c-modal-box--m-info__title-icon--Color);
|
|
16685
|
-
}
|
|
16686
|
-
|
|
16687
|
-
.pf-c-modal-box > .pf-c-button {
|
|
16688
|
-
position: absolute;
|
|
16689
|
-
top: var(--pf-c-modal-box--c-button--Top);
|
|
16690
|
-
right: var(--pf-c-modal-box--c-button--Right);
|
|
16691
|
-
}
|
|
16692
|
-
|
|
16693
|
-
.pf-c-modal-box > .pf-c-button + * {
|
|
16694
|
-
margin-right: var(--pf-c-modal-box--c-button--sibling--MarginRight);
|
|
16695
|
-
}
|
|
16696
|
-
|
|
16697
|
-
.pf-c-modal-box__header {
|
|
16698
|
-
display: flex;
|
|
16699
|
-
flex-direction: column;
|
|
16700
|
-
flex-shrink: 0;
|
|
16701
|
-
padding-top: var(--pf-c-modal-box__header--PaddingTop);
|
|
16702
|
-
padding-right: var(--pf-c-modal-box__header--PaddingRight);
|
|
16703
|
-
padding-left: var(--pf-c-modal-box__header--PaddingLeft);
|
|
16704
|
-
}
|
|
16705
|
-
|
|
16706
|
-
.pf-c-modal-box__header.pf-m-help {
|
|
16707
|
-
display: flex;
|
|
16708
|
-
flex-direction: row;
|
|
16709
|
-
}
|
|
16710
|
-
|
|
16711
|
-
.pf-c-modal-box__header:last-child {
|
|
16712
|
-
padding-bottom: var(--pf-c-modal-box__header--last-child--PaddingBottom);
|
|
16713
|
-
}
|
|
16714
|
-
|
|
16715
|
-
.pf-c-modal-box__header + .pf-c-modal-box__body {
|
|
16716
|
-
--pf-c-modal-box__body--PaddingTop: var(--pf-c-modal-box__header--body--PaddingTop);
|
|
16717
|
-
}
|
|
16718
|
-
|
|
16719
|
-
.pf-c-modal-box__header-main {
|
|
16720
|
-
flex-grow: 1;
|
|
16721
|
-
min-width: 0;
|
|
16722
|
-
}
|
|
16723
|
-
|
|
16724
|
-
.pf-c-modal-box__title,
|
|
16725
|
-
.pf-c-modal-box__title-text {
|
|
16726
|
-
overflow: hidden;
|
|
16727
|
-
text-overflow: ellipsis;
|
|
16728
|
-
white-space: nowrap;
|
|
16729
|
-
}
|
|
16730
|
-
|
|
16731
|
-
.pf-c-modal-box__title {
|
|
16732
|
-
flex: 0 0 auto;
|
|
16733
|
-
font-family: var(--pf-c-modal-box__title--FontFamily);
|
|
16734
|
-
font-size: var(--pf-c-modal-box__title--FontSize);
|
|
16735
|
-
line-height: var(--pf-c-modal-box__title--LineHeight);
|
|
16736
|
-
}
|
|
16737
|
-
|
|
16738
|
-
.pf-c-modal-box__title.pf-m-icon {
|
|
16739
|
-
display: flex;
|
|
16740
|
-
}
|
|
16741
|
-
|
|
16742
|
-
.pf-c-modal-box__title-icon {
|
|
16743
|
-
margin-right: var(--pf-c-modal-box__title-icon--MarginRight);
|
|
16744
|
-
color: var(--pf-c-modal-box__title-icon--Color);
|
|
16745
|
-
}
|
|
16746
|
-
|
|
16747
|
-
.pf-c-modal-box__description {
|
|
16748
|
-
padding-top: var(--pf-c-modal-box__description--PaddingTop);
|
|
16749
|
-
}
|
|
16750
|
-
|
|
16751
|
-
.pf-c-modal-box__body {
|
|
16752
|
-
flex: 1 1 auto;
|
|
16753
|
-
min-height: var(--pf-c-modal-box__body--MinHeight);
|
|
16754
|
-
padding-top: var(--pf-c-modal-box__body--PaddingTop);
|
|
16755
|
-
padding-right: var(--pf-c-modal-box__body--PaddingRight);
|
|
16756
|
-
padding-left: var(--pf-c-modal-box__body--PaddingLeft);
|
|
16757
|
-
overflow-x: hidden;
|
|
16758
|
-
overflow-y: auto;
|
|
16759
|
-
overscroll-behavior: contain;
|
|
16760
|
-
word-break: break-word;
|
|
16761
|
-
-webkit-overflow-scrolling: touch;
|
|
16762
|
-
}
|
|
16763
|
-
|
|
16764
|
-
.pf-c-modal-box__body:last-child {
|
|
16765
|
-
padding-bottom: var(--pf-c-modal-box__body--last-child--PaddingBottom);
|
|
16766
|
-
}
|
|
16767
|
-
|
|
16768
|
-
.pf-c-modal-box__footer {
|
|
16769
|
-
display: flex;
|
|
16770
|
-
flex: 0 0 auto;
|
|
16771
|
-
align-items: center;
|
|
16772
|
-
padding-top: var(--pf-c-modal-box__footer--PaddingTop);
|
|
16773
|
-
padding-right: var(--pf-c-modal-box__footer--PaddingRight);
|
|
16774
|
-
padding-bottom: var(--pf-c-modal-box__footer--PaddingBottom);
|
|
16775
|
-
padding-left: var(--pf-c-modal-box__footer--PaddingLeft);
|
|
16776
|
-
}
|
|
16777
|
-
|
|
16778
|
-
.pf-c-modal-box__footer > .pf-c-button:not(:last-child) {
|
|
16779
|
-
margin-right: var(--pf-c-modal-box__footer--c-button--MarginRight);
|
|
16780
|
-
}
|
|
16781
|
-
|
|
16782
|
-
@media screen and (min-width: 576px) {
|
|
16783
|
-
.pf-c-modal-box__footer > .pf-c-button:not(:last-child) {
|
|
16784
|
-
--pf-c-modal-box__footer--c-button--MarginRight: var(--pf-c-modal-box__footer--c-button--sm--MarginRight);
|
|
16785
|
-
}
|
|
16786
|
-
}
|
|
16787
16587
|
.pf-c-menu-toggle {
|
|
16788
16588
|
--pf-c-menu-toggle--BorderRadius: 0;
|
|
16789
16589
|
--pf-c-menu-toggle--PaddingTop: var(--pf-global--spacer--form-element);
|
|
@@ -17228,6 +17028,206 @@ label.pf-c-menu__item:where(:not([disabled], .pf-m-disabled)) {
|
|
|
17228
17028
|
color: var(--pf-c-menu-toggle__toggle-icon--Color, inherit);
|
|
17229
17029
|
}
|
|
17230
17030
|
|
|
17031
|
+
.pf-c-modal-box {
|
|
17032
|
+
--pf-c-modal-box--BackgroundColor: var(--pf-global--BackgroundColor--100);
|
|
17033
|
+
--pf-c-modal-box--BoxShadow: var(--pf-global--BoxShadow--xl);
|
|
17034
|
+
--pf-c-modal-box--ZIndex: var(--pf-global--ZIndex--xl);
|
|
17035
|
+
--pf-c-modal-box--Width: 100%;
|
|
17036
|
+
--pf-c-modal-box--MaxWidth: calc(100% - var(--pf-global--spacer--xl));
|
|
17037
|
+
--pf-c-modal-box--m-sm--sm--MaxWidth: 35rem;
|
|
17038
|
+
--pf-c-modal-box--m-md--Width: 52.5rem;
|
|
17039
|
+
--pf-c-modal-box--m-lg--lg--MaxWidth: 70rem;
|
|
17040
|
+
--pf-c-modal-box--MaxHeight: calc(100% - var(--pf-global--spacer--2xl));
|
|
17041
|
+
--pf-c-modal-box--m-align-top--spacer: var(--pf-global--spacer--sm);
|
|
17042
|
+
--pf-c-modal-box--m-align-top--xl--spacer: var(--pf-global--spacer--xl);
|
|
17043
|
+
--pf-c-modal-box--m-align-top--MarginTop: var(--pf-c-modal-box--m-align-top--spacer);
|
|
17044
|
+
--pf-c-modal-box--m-align-top--MaxHeight: calc(100% - min(var(--pf-c-modal-box--m-align-top--spacer), var(--pf-global--spacer--2xl)) - var(--pf-c-modal-box--m-align-top--spacer));
|
|
17045
|
+
--pf-c-modal-box--m-align-top--MaxWidth: calc(100% - min(var(--pf-c-modal-box--m-align-top--spacer) * 2, var(--pf-global--spacer--xl)));
|
|
17046
|
+
--pf-c-modal-box--m-danger__title-icon--Color: var(--pf-global--danger-color--100);
|
|
17047
|
+
--pf-c-modal-box--m-warning__title-icon--Color: var(--pf-global--warning-color--100);
|
|
17048
|
+
--pf-c-modal-box--m-success__title-icon--Color: var(--pf-global--success-color--100);
|
|
17049
|
+
--pf-c-modal-box--m-info__title-icon--Color: var(--pf-global--info-color--100);
|
|
17050
|
+
--pf-c-modal-box--m-default__title-icon--Color: var(--pf-global--default-color--200);
|
|
17051
|
+
--pf-c-modal-box__header--PaddingTop: var(--pf-global--spacer--lg);
|
|
17052
|
+
--pf-c-modal-box__header--PaddingRight: var(--pf-global--spacer--lg);
|
|
17053
|
+
--pf-c-modal-box__header--PaddingLeft: var(--pf-global--spacer--lg);
|
|
17054
|
+
--pf-c-modal-box__header--last-child--PaddingBottom: var(--pf-global--spacer--lg);
|
|
17055
|
+
--pf-c-modal-box__title--LineHeight: var(--pf-global--LineHeight--sm);
|
|
17056
|
+
--pf-c-modal-box__title--FontFamily: var(--pf-global--FontFamily--heading--sans-serif);
|
|
17057
|
+
--pf-c-modal-box__title--FontSize: var(--pf-global--FontSize--2xl);
|
|
17058
|
+
--pf-c-modal-box__title-icon--MarginRight: var(--pf-global--spacer--sm);
|
|
17059
|
+
--pf-c-modal-box__title-icon--Color: var(--pf-global--Color--100);
|
|
17060
|
+
--pf-c-modal-box__description--PaddingTop: var(--pf-global--spacer--xs);
|
|
17061
|
+
--pf-c-modal-box__body--MinHeight: calc(var(--pf-global--FontSize--md) * var(--pf-global--LineHeight--md));
|
|
17062
|
+
--pf-c-modal-box__body--PaddingTop: var(--pf-global--spacer--lg);
|
|
17063
|
+
--pf-c-modal-box__body--PaddingRight: var(--pf-global--spacer--lg);
|
|
17064
|
+
--pf-c-modal-box__body--PaddingLeft: var(--pf-global--spacer--lg);
|
|
17065
|
+
--pf-c-modal-box__body--last-child--PaddingBottom: var(--pf-global--spacer--lg);
|
|
17066
|
+
--pf-c-modal-box__header--body--PaddingTop: var(--pf-global--spacer--md);
|
|
17067
|
+
--pf-c-modal-box--c-button--Top: calc(var(--pf-global--spacer--lg));
|
|
17068
|
+
--pf-c-modal-box--c-button--Right: var(--pf-global--spacer--md);
|
|
17069
|
+
--pf-c-modal-box--c-button--sibling--MarginRight: calc(var(--pf-global--spacer--xl) + var(--pf-global--spacer--sm));
|
|
17070
|
+
--pf-c-modal-box__footer--PaddingTop: var(--pf-global--spacer--lg);
|
|
17071
|
+
--pf-c-modal-box__footer--PaddingRight: var(--pf-global--spacer--lg);
|
|
17072
|
+
--pf-c-modal-box__footer--PaddingBottom: var(--pf-global--spacer--lg);
|
|
17073
|
+
--pf-c-modal-box__footer--PaddingLeft: var(--pf-global--spacer--lg);
|
|
17074
|
+
--pf-c-modal-box__footer--c-button--MarginRight: var(--pf-global--spacer--md);
|
|
17075
|
+
--pf-c-modal-box__footer--c-button--sm--MarginRight: calc(var(--pf-c-modal-box__footer--c-button--MarginRight) / 2);
|
|
17076
|
+
position: relative;
|
|
17077
|
+
z-index: var(--pf-c-modal-box--ZIndex);
|
|
17078
|
+
display: flex;
|
|
17079
|
+
flex-direction: column;
|
|
17080
|
+
width: var(--pf-c-modal-box--Width);
|
|
17081
|
+
max-width: var(--pf-c-modal-box--MaxWidth);
|
|
17082
|
+
max-height: var(--pf-c-modal-box--MaxHeight);
|
|
17083
|
+
background-color: var(--pf-c-modal-box--BackgroundColor);
|
|
17084
|
+
box-shadow: var(--pf-c-modal-box--BoxShadow);
|
|
17085
|
+
}
|
|
17086
|
+
|
|
17087
|
+
@media (min-width: 1200px) {
|
|
17088
|
+
.pf-c-modal-box {
|
|
17089
|
+
--pf-c-modal-box--m-align-top--spacer: var(--pf-c-modal-box--m-align-top--xl--spacer);
|
|
17090
|
+
}
|
|
17091
|
+
}
|
|
17092
|
+
.pf-c-modal-box.pf-m-sm {
|
|
17093
|
+
--pf-c-modal-box--Width: var(--pf-c-modal-box--m-sm--sm--MaxWidth);
|
|
17094
|
+
}
|
|
17095
|
+
|
|
17096
|
+
.pf-c-modal-box.pf-m-md {
|
|
17097
|
+
--pf-c-modal-box--Width: var(--pf-c-modal-box--m-md--Width);
|
|
17098
|
+
}
|
|
17099
|
+
|
|
17100
|
+
.pf-c-modal-box.pf-m-lg {
|
|
17101
|
+
--pf-c-modal-box--Width: var(--pf-c-modal-box--m-lg--lg--MaxWidth);
|
|
17102
|
+
}
|
|
17103
|
+
|
|
17104
|
+
.pf-c-modal-box.pf-m-align-top {
|
|
17105
|
+
top: var(--pf-c-modal-box--m-align-top--MarginTop);
|
|
17106
|
+
align-self: flex-start;
|
|
17107
|
+
max-width: var(--pf-c-modal-box--m-align-top--MaxWidth);
|
|
17108
|
+
max-height: var(--pf-c-modal-box--m-align-top--MaxHeight);
|
|
17109
|
+
}
|
|
17110
|
+
|
|
17111
|
+
.pf-c-modal-box.pf-m-danger {
|
|
17112
|
+
--pf-c-modal-box__title-icon--Color: var(--pf-c-modal-box--m-danger__title-icon--Color);
|
|
17113
|
+
}
|
|
17114
|
+
|
|
17115
|
+
.pf-c-modal-box.pf-m-warning {
|
|
17116
|
+
--pf-c-modal-box__title-icon--Color: var(--pf-c-modal-box--m-warning__title-icon--Color);
|
|
17117
|
+
}
|
|
17118
|
+
|
|
17119
|
+
.pf-c-modal-box.pf-m-success {
|
|
17120
|
+
--pf-c-modal-box__title-icon--Color: var(--pf-c-modal-box--m-success__title-icon--Color);
|
|
17121
|
+
}
|
|
17122
|
+
|
|
17123
|
+
.pf-c-modal-box.pf-m-default {
|
|
17124
|
+
--pf-c-modal-box__title-icon--Color: var(--pf-c-modal-box--m-default__title-icon--Color);
|
|
17125
|
+
}
|
|
17126
|
+
|
|
17127
|
+
.pf-c-modal-box.pf-m-info {
|
|
17128
|
+
--pf-c-modal-box__title-icon--Color: var(--pf-c-modal-box--m-info__title-icon--Color);
|
|
17129
|
+
}
|
|
17130
|
+
|
|
17131
|
+
.pf-c-modal-box > .pf-c-button {
|
|
17132
|
+
position: absolute;
|
|
17133
|
+
top: var(--pf-c-modal-box--c-button--Top);
|
|
17134
|
+
right: var(--pf-c-modal-box--c-button--Right);
|
|
17135
|
+
}
|
|
17136
|
+
|
|
17137
|
+
.pf-c-modal-box > .pf-c-button + * {
|
|
17138
|
+
margin-right: var(--pf-c-modal-box--c-button--sibling--MarginRight);
|
|
17139
|
+
}
|
|
17140
|
+
|
|
17141
|
+
.pf-c-modal-box__header {
|
|
17142
|
+
display: flex;
|
|
17143
|
+
flex-direction: column;
|
|
17144
|
+
flex-shrink: 0;
|
|
17145
|
+
padding-top: var(--pf-c-modal-box__header--PaddingTop);
|
|
17146
|
+
padding-right: var(--pf-c-modal-box__header--PaddingRight);
|
|
17147
|
+
padding-left: var(--pf-c-modal-box__header--PaddingLeft);
|
|
17148
|
+
}
|
|
17149
|
+
|
|
17150
|
+
.pf-c-modal-box__header.pf-m-help {
|
|
17151
|
+
display: flex;
|
|
17152
|
+
flex-direction: row;
|
|
17153
|
+
}
|
|
17154
|
+
|
|
17155
|
+
.pf-c-modal-box__header:last-child {
|
|
17156
|
+
padding-bottom: var(--pf-c-modal-box__header--last-child--PaddingBottom);
|
|
17157
|
+
}
|
|
17158
|
+
|
|
17159
|
+
.pf-c-modal-box__header + .pf-c-modal-box__body {
|
|
17160
|
+
--pf-c-modal-box__body--PaddingTop: var(--pf-c-modal-box__header--body--PaddingTop);
|
|
17161
|
+
}
|
|
17162
|
+
|
|
17163
|
+
.pf-c-modal-box__header-main {
|
|
17164
|
+
flex-grow: 1;
|
|
17165
|
+
min-width: 0;
|
|
17166
|
+
}
|
|
17167
|
+
|
|
17168
|
+
.pf-c-modal-box__title,
|
|
17169
|
+
.pf-c-modal-box__title-text {
|
|
17170
|
+
overflow: hidden;
|
|
17171
|
+
text-overflow: ellipsis;
|
|
17172
|
+
white-space: nowrap;
|
|
17173
|
+
}
|
|
17174
|
+
|
|
17175
|
+
.pf-c-modal-box__title {
|
|
17176
|
+
flex: 0 0 auto;
|
|
17177
|
+
font-family: var(--pf-c-modal-box__title--FontFamily);
|
|
17178
|
+
font-size: var(--pf-c-modal-box__title--FontSize);
|
|
17179
|
+
line-height: var(--pf-c-modal-box__title--LineHeight);
|
|
17180
|
+
}
|
|
17181
|
+
|
|
17182
|
+
.pf-c-modal-box__title.pf-m-icon {
|
|
17183
|
+
display: flex;
|
|
17184
|
+
}
|
|
17185
|
+
|
|
17186
|
+
.pf-c-modal-box__title-icon {
|
|
17187
|
+
margin-right: var(--pf-c-modal-box__title-icon--MarginRight);
|
|
17188
|
+
color: var(--pf-c-modal-box__title-icon--Color);
|
|
17189
|
+
}
|
|
17190
|
+
|
|
17191
|
+
.pf-c-modal-box__description {
|
|
17192
|
+
padding-top: var(--pf-c-modal-box__description--PaddingTop);
|
|
17193
|
+
}
|
|
17194
|
+
|
|
17195
|
+
.pf-c-modal-box__body {
|
|
17196
|
+
flex: 1 1 auto;
|
|
17197
|
+
min-height: var(--pf-c-modal-box__body--MinHeight);
|
|
17198
|
+
padding-top: var(--pf-c-modal-box__body--PaddingTop);
|
|
17199
|
+
padding-right: var(--pf-c-modal-box__body--PaddingRight);
|
|
17200
|
+
padding-left: var(--pf-c-modal-box__body--PaddingLeft);
|
|
17201
|
+
overflow-x: hidden;
|
|
17202
|
+
overflow-y: auto;
|
|
17203
|
+
overscroll-behavior: contain;
|
|
17204
|
+
word-break: break-word;
|
|
17205
|
+
-webkit-overflow-scrolling: touch;
|
|
17206
|
+
}
|
|
17207
|
+
|
|
17208
|
+
.pf-c-modal-box__body:last-child {
|
|
17209
|
+
padding-bottom: var(--pf-c-modal-box__body--last-child--PaddingBottom);
|
|
17210
|
+
}
|
|
17211
|
+
|
|
17212
|
+
.pf-c-modal-box__footer {
|
|
17213
|
+
display: flex;
|
|
17214
|
+
flex: 0 0 auto;
|
|
17215
|
+
align-items: center;
|
|
17216
|
+
padding-top: var(--pf-c-modal-box__footer--PaddingTop);
|
|
17217
|
+
padding-right: var(--pf-c-modal-box__footer--PaddingRight);
|
|
17218
|
+
padding-bottom: var(--pf-c-modal-box__footer--PaddingBottom);
|
|
17219
|
+
padding-left: var(--pf-c-modal-box__footer--PaddingLeft);
|
|
17220
|
+
}
|
|
17221
|
+
|
|
17222
|
+
.pf-c-modal-box__footer > .pf-c-button:not(:last-child) {
|
|
17223
|
+
margin-right: var(--pf-c-modal-box__footer--c-button--MarginRight);
|
|
17224
|
+
}
|
|
17225
|
+
|
|
17226
|
+
@media screen and (min-width: 576px) {
|
|
17227
|
+
.pf-c-modal-box__footer > .pf-c-button:not(:last-child) {
|
|
17228
|
+
--pf-c-modal-box__footer--c-button--MarginRight: var(--pf-c-modal-box__footer--c-button--sm--MarginRight);
|
|
17229
|
+
}
|
|
17230
|
+
}
|
|
17231
17231
|
.pf-c-multiple-file-upload {
|
|
17232
17232
|
--pf-c-multiple-file-upload--GridTemplateColumns: 1fr;
|
|
17233
17233
|
--pf-c-multiple-file-upload--Gap: var(--pf-global--spacer--lg);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@patternfly/react-table",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.83.0",
|
|
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.
|
|
35
|
-
"@patternfly/react-icons": "^4.
|
|
36
|
-
"@patternfly/react-styles": "^4.
|
|
37
|
-
"@patternfly/react-tokens": "^4.
|
|
34
|
+
"@patternfly/react-core": "^4.214.0",
|
|
35
|
+
"@patternfly/react-icons": "^4.65.0",
|
|
36
|
+
"@patternfly/react-styles": "^4.64.0",
|
|
37
|
+
"@patternfly/react-tokens": "^4.66.0",
|
|
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": "
|
|
49
|
+
"gitHead": "ec9d9318898ab30d77ec7ab4e86a4577c27eb5ce"
|
|
50
50
|
}
|
package/src/demos/Table.md
CHANGED
|
@@ -274,7 +274,7 @@ class BulkSelectTableDemo extends React.Component {
|
|
|
274
274
|
|
|
275
275
|
### Expand/collapse all
|
|
276
276
|
|
|
277
|
-
```js file="table-demos/ExpandCollapseAll.jsx"
|
|
277
|
+
```js isFullscreen file="table-demos/ExpandCollapseAll.jsx"
|
|
278
278
|
```
|
|
279
279
|
|
|
280
280
|
### Column management
|
|
@@ -3043,7 +3043,7 @@ class LoadingStateDemo extends React.Component {
|
|
|
3043
3043
|
props: { colSpan: 8 },
|
|
3044
3044
|
title: (
|
|
3045
3045
|
<Bullseye>
|
|
3046
|
-
<Spinner size="xl" aria-labelledby="loading-table-demo"/>
|
|
3046
|
+
<Spinner size="xl" aria-labelledby="loading-table-demo" />
|
|
3047
3047
|
</Bullseye>
|
|
3048
3048
|
)
|
|
3049
3049
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { Table, TableHeader, TableBody, expandable } from '@patternfly/react-table';
|
|
2
|
+
import { Card, PageSection, Table, TableHeader, TableBody, expandable } from '@patternfly/react-table';
|
|
3
|
+
import DashboardWrapper from '@patternfly/react-core/src/demos/examples/DashboardWrapper';
|
|
3
4
|
|
|
4
5
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
5
6
|
class ExpandCollapseAllTableDemo extends React.Component {
|
|
@@ -13,7 +14,7 @@ class ExpandCollapseAllTableDemo extends React.Component {
|
|
|
13
14
|
collapseAllAriaLabel: 'Expand all',
|
|
14
15
|
columns: [
|
|
15
16
|
{
|
|
16
|
-
title: '
|
|
17
|
+
title: 'Repositories',
|
|
17
18
|
cellFormatters: [expandable]
|
|
18
19
|
},
|
|
19
20
|
'Branches',
|
|
@@ -120,19 +121,30 @@ class ExpandCollapseAllTableDemo extends React.Component {
|
|
|
120
121
|
|
|
121
122
|
return (
|
|
122
123
|
<React.Fragment>
|
|
123
|
-
<
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
124
|
+
<DashboardWrapper hasPageTemplateTitle>
|
|
125
|
+
<PageSection
|
|
126
|
+
padding={{
|
|
127
|
+
default: 'noPadding',
|
|
128
|
+
xl: 'padding'
|
|
129
|
+
}}
|
|
130
|
+
>
|
|
131
|
+
<Card component="div">
|
|
132
|
+
<Table
|
|
133
|
+
aria-label="Collapsible table"
|
|
134
|
+
onSelect={this.onSelect}
|
|
135
|
+
onCollapse={this.onCollapse}
|
|
136
|
+
rows={rows}
|
|
137
|
+
cells={columns}
|
|
138
|
+
canSelectAll={false}
|
|
139
|
+
canCollapseAll={true}
|
|
140
|
+
collapseAllAriaLabel={collapseAllAriaLabel}
|
|
141
|
+
>
|
|
142
|
+
<TableHeader />
|
|
143
|
+
<TableBody />
|
|
144
|
+
</Table>
|
|
145
|
+
</Card>
|
|
146
|
+
</PageSection>
|
|
147
|
+
</DashboardWrapper>
|
|
136
148
|
</React.Fragment>
|
|
137
149
|
);
|
|
138
150
|
}
|