@patternfly/react-table 6.0.0-prerelease.10 → 6.0.0-prerelease.12

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.0.0-prerelease.10",
3
+ "version": "6.0.0-prerelease.12",
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.0.0-prerelease.10",
43
+ "@patternfly/react-core": "^6.0.0-prerelease.12",
44
44
  "@patternfly/react-icons": "^6.0.0-prerelease.4",
45
45
  "@patternfly/react-styles": "^6.0.0-prerelease.3",
46
- "@patternfly/react-tokens": "^6.0.0-prerelease.3",
46
+ "@patternfly/react-tokens": "^6.0.0-prerelease.4",
47
47
  "lodash": "^4.17.21",
48
48
  "tslib": "^2.7.0"
49
49
  },
@@ -51,5 +51,5 @@
51
51
  "react": "^17 || ^18",
52
52
  "react-dom": "^17 || ^18"
53
53
  },
54
- "gitHead": "7627465cdd78e21bbbe9ed0b7b3b9f6f8ee0329f"
54
+ "gitHead": "137a5467319706c5022300bcba71f0aed899c57a"
55
55
  }
@@ -60,7 +60,7 @@ import styles from '@patternfly/react-styles/css/components/Table/table';
60
60
  import spacing from '@patternfly/react-styles/css/utilities/Spacing/spacing';
61
61
  import textStyles from '@patternfly/react-styles/css/utilities/Text/text';
62
62
  import inlineEditStyles from '@patternfly/react-styles/css/components/InlineEdit/inline-edit';
63
- import global_background_color_secondary_default from '@patternfly/react-tokens/dist/esm/global_background_color_secondary_default';
63
+ import t_global_background_color_secondary_default from '@patternfly/react-tokens/dist/esm/t_global_background_color_secondary_default';
64
64
 
65
65
  ## Table examples
66
66
 
@@ -172,6 +172,7 @@ This selectable rows feature is intended for use when a table is used to present
172
172
  This example shows a table with editable rows. Cells in a row can be edited after clicking on the edit icon.
173
173
 
174
174
  ```ts file="TableEditable.tsx"
175
+
175
176
  ```
176
177
 
177
178
  ### Actions
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import { Table, Thead, Tr, Th, Tbody, Td } from '@patternfly/react-table';
3
3
  /* eslint-disable camelcase */
4
- import global_background_color_secondary_default from '@patternfly/react-tokens/dist/esm/global_background_color_secondary_default';
4
+ import t_global_background_color_secondary_default from '@patternfly/react-tokens/dist/esm/t_global_background_color_secondary_default';
5
5
 
6
6
  interface Repository {
7
7
  name: string;
@@ -67,7 +67,7 @@ export const TableMisc: React.FunctionComponent = () => {
67
67
  {repositories.map((repo, rowIndex) => {
68
68
  const isOddRow = (rowIndex + 1) % 2;
69
69
  const customStyle = {
70
- backgroundColor: global_background_color_secondary_default.var
70
+ backgroundColor: t_global_background_color_secondary_default.var
71
71
  };
72
72
  // Some arbitrary logic to demonstrate that cell styles can be based on anything
73
73
  const nameColSpan = repo.branches === null && repo.prs === null ? 3 : 1;
@@ -2,7 +2,7 @@ import React from 'react';
2
2
  import { Table, TableHeader, TableBody, TableProps } from '@patternfly/react-table/deprecated';
3
3
  import { css } from '@patternfly/react-styles';
4
4
  /* eslint-disable camelcase */
5
- import global_color_brand_default from '@patternfly/react-tokens/dist/esm/global_color_brand_default';
5
+ import t_global_color_brand_default from '@patternfly/react-tokens/dist/esm/t_global_color_brand_default';
6
6
 
7
7
  interface Repository {
8
8
  name: string;
@@ -32,7 +32,7 @@ export const LegacyTableMisc: React.FunctionComponent = () => {
32
32
  const customRowWrapper: TableProps['rowWrapper'] = ({ trRef, className, rowProps, row: _row }) => {
33
33
  const isOddRow = rowProps ? !!((rowProps.rowIndex + 1) % 2) : true;
34
34
  const customStyle = {
35
- borderLeft: `3px solid ${global_color_brand_default.var}`
35
+ borderLeft: `3px solid ${t_global_color_brand_default.var}`
36
36
  };
37
37
  return (
38
38
  <tr
@@ -31,7 +31,7 @@ SelectOption as NewSelectOption,
31
31
  import { css } from '@patternfly/react-styles';
32
32
  import styles from '@patternfly/react-styles/css/components/Table/table';
33
33
  import spacing from '@patternfly/react-styles/css/utilities/Spacing/spacing';
34
- import global_color_brand_default from '@patternfly/react-tokens/dist/esm/global_color_brand_default';
34
+ import t_global_color_brand_default from '@patternfly/react-tokens/dist/esm/t_global_color_brand_default';
35
35
 
36
36
  ## Table Columns
37
37