@patternfly/react-table 6.5.0-prerelease.7 → 6.5.0-prerelease.9

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@patternfly/react-table",
3
- "version": "6.5.0-prerelease.7",
3
+ "version": "6.5.0-prerelease.9",
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",
@@ -40,10 +40,10 @@
40
40
  "subpaths": "node ../../scripts/exportSubpaths.mjs --config subpaths.config.json"
41
41
  },
42
42
  "dependencies": {
43
- "@patternfly/react-core": "^6.5.0-prerelease.7",
44
- "@patternfly/react-icons": "^6.5.0-prerelease.3",
45
- "@patternfly/react-styles": "^6.5.0-prerelease.3",
46
- "@patternfly/react-tokens": "^6.5.0-prerelease.3",
43
+ "@patternfly/react-core": "^6.5.0-prerelease.9",
44
+ "@patternfly/react-icons": "^6.5.0-prerelease.4",
45
+ "@patternfly/react-styles": "^6.5.0-prerelease.4",
46
+ "@patternfly/react-tokens": "^6.5.0-prerelease.4",
47
47
  "lodash": "^4.17.21",
48
48
  "tslib": "^2.8.1"
49
49
  },
@@ -51,5 +51,5 @@
51
51
  "react": "^17 || ^18 || ^19",
52
52
  "react-dom": "^17 || ^18 || ^19"
53
53
  },
54
- "gitHead": "d09b3a3cb11d10807ada3c9fbde44254818f2fa2"
54
+ "gitHead": "3fe4262830dc7bbeea2360dfc8a9c584cf752520"
55
55
  }
@@ -150,3 +150,9 @@ test('Renders expandable toggle button in Th with pf-m-small class when variant
150
150
  expect(button).toHaveClass('pf-m-small');
151
151
  });
152
152
  });
153
+
154
+ test(`Renders with class ${styles.modifiers.plain} when isPlain is true`, () => {
155
+ render(<Table isPlain aria-label="Test table" />);
156
+
157
+ expect(screen.getByRole('grid', { name: 'Test table' })).toHaveClass(styles.modifiers.plain);
158
+ });
@@ -78,10 +78,13 @@ Some general notes:
78
78
  ```ts file="TableBasic.tsx"
79
79
 
80
80
  ```
81
- ### Table Plain
82
- ``` file="TablePlain.tsx"
81
+
82
+ ### Plain
83
+
84
+ ```ts file="TablePlain.tsx"
83
85
 
84
86
  ```
87
+
85
88
  ### Custom row wrapper, header tooltips & popovers
86
89
 
87
90
  - If you add the `noWrap` prop to `Thead`, it won't wrap it if there is no space