@patternfly/react-table 4.51.2 → 4.52.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.
@@ -12616,6 +12616,7 @@ button.pf-c-breadcrumb__link {
12616
12616
  --pf-c-expandable-section__toggle--active--Color: var(--pf-global--link--Color--hover);
12617
12617
  --pf-c-expandable-section__toggle--focus--Color: var(--pf-global--link--Color--hover);
12618
12618
  --pf-c-expandable-section__toggle--m-expanded--Color: var(--pf-global--link--Color--hover);
12619
+ --pf-c-expandable-section__toggle-icon--MinWidth: 1em;
12619
12620
  --pf-c-expandable-section__toggle-icon--Color: var(--pf-global--Color--100);
12620
12621
  --pf-c-expandable-section__toggle-icon--Transition: .2s ease-in 0s;
12621
12622
  --pf-c-expandable-section__toggle-icon--Rotate: 0;
@@ -12638,6 +12639,7 @@ button.pf-c-breadcrumb__link {
12638
12639
  --pf-c-expandable-section--m-display-lg--after--BackgroundColor: transparent;
12639
12640
  --pf-c-expandable-section--m-display-lg--after--Width: var(--pf-global--BorderWidth--lg);
12640
12641
  --pf-c-expandable-section--m-display-lg--m-expanded--after--BackgroundColor: var(--pf-global--primary-color--100);
12642
+ --pf-c-expandable-section--m-indented__content--PaddingLeft: calc(var(--pf-c-expandable-section__toggle-text--MarginLeft) + var(--pf-c-expandable-section__toggle-icon--MinWidth));
12641
12643
  }
12642
12644
 
12643
12645
  .pf-c-expandable-section.pf-m-expanded {
@@ -12678,6 +12680,10 @@ button.pf-c-breadcrumb__link {
12678
12680
  background-color: var(--pf-c-expandable-section--m-display-lg--after--BackgroundColor);
12679
12681
  }
12680
12682
 
12683
+ .pf-c-expandable-section.pf-m-indented {
12684
+ --pf-c-expandable-section__content--PaddingLeft: var(--pf-c-expandable-section--m-indented__content--PaddingLeft);
12685
+ }
12686
+
12681
12687
  .pf-c-expandable-section__toggle {
12682
12688
  display: flex;
12683
12689
  padding: var(--pf-c-expandable-section__toggle--PaddingTop) var(--pf-c-expandable-section__toggle--PaddingRight) var(--pf-c-expandable-section__toggle--PaddingBottom) var(--pf-c-expandable-section__toggle--PaddingLeft);
@@ -12698,6 +12704,7 @@ button.pf-c-breadcrumb__link {
12698
12704
  }
12699
12705
 
12700
12706
  .pf-c-expandable-section__toggle-icon {
12707
+ min-width: var(--pf-c-expandable-section__toggle-icon--MinWidth);
12701
12708
  color: var(--pf-c-expandable-section__toggle-icon--Color);
12702
12709
  transition: var(--pf-c-expandable-section__toggle-icon--Transition);
12703
12710
  transform: rotate(var(--pf-c-expandable-section__toggle-icon--Rotate));
@@ -13753,6 +13760,7 @@ label.pf-c-input-group__text {
13753
13760
  --pf-c-label--m-compact--PaddingBottom: 0;
13754
13761
  --pf-c-label--m-compact--PaddingLeft: var(--pf-global--spacer--sm);
13755
13762
  --pf-c-label--m-compact--FontSize: var(--pf-global--FontSize--xs);
13763
+ --pf-c-label--m-compact--m-editable--TextDecorationOffset: 0.0625rem;
13756
13764
  --pf-c-label__content--Color: var(--pf-global--Color--100);
13757
13765
  --pf-c-label--m-outline__content--Color: var(--pf-global--Color--100);
13758
13766
  --pf-c-label__text--MaxWidth: 16ch;
@@ -13767,6 +13775,18 @@ label.pf-c-input-group__text {
13767
13775
  --pf-c-label__c-button--PaddingRight: var(--pf-global--spacer--sm);
13768
13776
  --pf-c-label__c-button--PaddingBottom: var(--pf-global--spacer--xs);
13769
13777
  --pf-c-label__c-button--PaddingLeft: var(--pf-global--spacer--sm);
13778
+ --pf-c-label__editable-text--MaxWidth: 16ch;
13779
+ --pf-c-label__editable-text--BorderWidth: 0;
13780
+ --pf-c-label--m-editable--Cursor: pointer;
13781
+ --pf-c-label--m-editable--TextDecoration: underline;
13782
+ --pf-c-label--m-editable--TextDecorationStyle: dashed;
13783
+ --pf-c-label--m-editable--TextDecorationThickness: var(--pf-global--BorderWidth--sm);
13784
+ --pf-c-label--m-editable--TextDecorationOffset: 0.25rem;
13785
+ --pf-c-label--m-editable--TextDecorationColor: var(--pf-global--BorderColor--200);
13786
+ --pf-c-label--m-editable--hover--TextDecorationColor: var(--pf-global--Color--100);
13787
+ --pf-c-label--m-editable--focus--TextDecorationColor: var(--pf-global--Color--100);
13788
+ --pf-c-label--m-editable--m-editable-active--Cursor: auto;
13789
+ --pf-c-label--m-editable--m-editable-active--TextDecoration: none;
13770
13790
  --pf-c-label--m-editable--m-editable-active--BackgroundColor: transparent;
13771
13791
  --pf-c-label--m-editable--m-editable-active__content--before--BorderWidth: 0;
13772
13792
  --pf-c-label--m-editable--m-editable-active__content--before--BorderColor: transparent;
@@ -13786,6 +13806,7 @@ label.pf-c-input-group__text {
13786
13806
  --pf-c-label--PaddingBottom: var(--pf-c-label--m-compact--PaddingBottom);
13787
13807
  --pf-c-label--PaddingLeft: var(--pf-c-label--m-compact--PaddingLeft);
13788
13808
  --pf-c-label--FontSize: var(--pf-c-label--m-compact--FontSize);
13809
+ --pf-c-label--m-editable--TextDecorationOffset: var(--pf-c-label--m-compact--m-editable--TextDecorationOffset);
13789
13810
  }
13790
13811
 
13791
13812
  .pf-c-label.pf-m-blue {
@@ -13885,7 +13906,26 @@ label.pf-c-input-group__text {
13885
13906
  --pf-c-label__content--before--BorderColor: var(--pf-c-label--m-outline__content--link--focus--before--BorderColor);
13886
13907
  }
13887
13908
 
13909
+ .pf-c-label.pf-m-editable {
13910
+ text-decoration: var(--pf-c-label--m-editable--TextDecoration);
13911
+ cursor: var(--pf-c-label--m-editable--Cursor);
13912
+ text-decoration-style: var(--pf-c-label--m-editable--TextDecorationStyle);
13913
+ text-decoration-thickness: var(--pf-c-label--m-editable--TextDecorationThickness);
13914
+ text-underline-offset: var(--pf-c-label--m-editable--TextDecorationOffset);
13915
+ text-decoration-color: var(--pf-c-label--m-editable--TextDecorationColor);
13916
+ }
13917
+
13918
+ .pf-c-label.pf-m-editable:hover {
13919
+ --pf-c-label--m-editable--TextDecorationColor: var(--pf-c-label--m-editable--hover--TextDecorationColor);
13920
+ }
13921
+
13922
+ .pf-c-label.pf-m-editable:focus {
13923
+ --pf-c-label--m-editable--TextDecorationColor: var(--pf-c-label--m-editable--focus--TextDecorationColor);
13924
+ }
13925
+
13888
13926
  .pf-c-label.pf-m-editable-active {
13927
+ --pf-c-label--m-editable--Cursor: var(--pf-c-label--m-editable--m-editable-active--Cursor);
13928
+ --pf-c-label--m-editable--TextDecoration: var(--pf-c-label--m-editable--m-editable-active--TextDecoration);
13889
13929
  --pf-c-label--BackgroundColor: var(--pf-c-label--m-editable--m-editable-active--BackgroundColor);
13890
13930
  --pf-c-label__content--before--BorderWidth: var(--pf-c-label--m-editable--m-editable-active__content--before--BorderWidth);
13891
13931
  --pf-c-label__content--before--BorderColor: var(--pf-c-label--m-editable--m-editable-active__content--before--BorderColor);
@@ -13895,6 +13935,14 @@ label.pf-c-input-group__text {
13895
13935
  visibility: hidden;
13896
13936
  }
13897
13937
 
13938
+ .pf-c-label .pf-c-label__editable-text {
13939
+ overflow: hidden;
13940
+ text-overflow: ellipsis;
13941
+ white-space: nowrap;
13942
+ max-width: var(--pf-c-label__editable-text--MaxWidth);
13943
+ border-width: var(--pf-c-label__editable-text--BorderWidth);
13944
+ }
13945
+
13898
13946
  .pf-c-label .pf-c-button {
13899
13947
  --pf-c-button--FontSize: var(--pf-c-label__c-button--FontSize);
13900
13948
  --pf-c-button--PaddingTop: var(--pf-c-label__c-button--PaddingTop);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@patternfly/react-table",
3
- "version": "4.51.2",
3
+ "version": "4.52.2",
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.182.2",
35
- "@patternfly/react-icons": "^4.33.2",
36
- "@patternfly/react-styles": "^4.32.2",
37
- "@patternfly/react-tokens": "^4.34.2",
34
+ "@patternfly/react-core": "^4.183.2",
35
+ "@patternfly/react-icons": "^4.34.2",
36
+ "@patternfly/react-styles": "^4.33.2",
37
+ "@patternfly/react-tokens": "^4.35.2",
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": "d54cbe2dbccd6f6d6539052d5d9c3b492b98328d"
49
+ "gitHead": "3227da5a80f1a78cf7f547c543a17f1a88e351c3"
50
50
  }
@@ -215,11 +215,11 @@ export interface ICell {
215
215
  dataLabel?: string;
216
216
  }
217
217
 
218
- export type RowCellContent = (value?: string, rowIndex?: number, cellIndex?: number, props?: any) => void;
218
+ export type RowCellContent<T = any> = (value?: string, rowIndex?: number, cellIndex?: number, props?: T) => void;
219
219
 
220
- export interface IRowCell {
221
- title?: string | React.ReactNode | RowCellContent;
222
- props?: any;
220
+ export interface IRowCell<T = any> {
221
+ title?: string | React.ReactNode | RowCellContent<T>;
222
+ props?: T;
223
223
  formatters?: IFormatter[];
224
224
  }
225
225