@patternfly/react-table 6.4.1-prerelease.9 → 6.4.1

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.
Files changed (32) hide show
  1. package/CHANGELOG.md +1 -39
  2. package/components/package.json +1 -1
  3. package/deprecated/package.json +1 -1
  4. package/dist/dynamic/components/Table/package.json +1 -1
  5. package/dist/dynamic/components/Table/utils/decorators/package.json +1 -1
  6. package/dist/dynamic/components/Table/utils/package.json +1 -1
  7. package/dist/dynamic/deprecated/components/Table/base/package.json +1 -1
  8. package/dist/dynamic/deprecated/components/Table/package.json +1 -1
  9. package/dist/dynamic/deprecated/components/package.json +1 -1
  10. package/dist/esm/components/Table/SelectColumn.d.ts +1 -4
  11. package/dist/esm/components/Table/SelectColumn.d.ts.map +1 -1
  12. package/dist/esm/components/Table/SelectColumn.js +2 -8
  13. package/dist/esm/components/Table/SelectColumn.js.map +1 -1
  14. package/dist/esm/components/Table/utils/decorators/selectable.d.ts.map +1 -1
  15. package/dist/esm/components/Table/utils/decorators/selectable.js +6 -6
  16. package/dist/esm/components/Table/utils/decorators/selectable.js.map +1 -1
  17. package/dist/js/components/Table/SelectColumn.d.ts +1 -4
  18. package/dist/js/components/Table/SelectColumn.d.ts.map +1 -1
  19. package/dist/js/components/Table/SelectColumn.js +2 -8
  20. package/dist/js/components/Table/SelectColumn.js.map +1 -1
  21. package/dist/js/components/Table/utils/decorators/selectable.d.ts.map +1 -1
  22. package/dist/js/components/Table/utils/decorators/selectable.js +6 -6
  23. package/dist/js/components/Table/utils/decorators/selectable.js.map +1 -1
  24. package/dist/umd/assets/{output-Jk122ILV.css → output-BVwPvz9M.css} +364 -450
  25. package/dist/umd/react-table.min.js +3 -3
  26. package/package.json +4 -4
  27. package/src/components/Table/SelectColumn.tsx +5 -25
  28. package/src/components/Table/utils/__snapshots__/transformers.test.tsx.snap +16 -0
  29. package/src/components/Table/utils/decorators/selectable.tsx +5 -6
  30. package/src/components/Table/utils/transformers.test.tsx +11 -54
  31. package/src/demos/Table.md +8 -8
  32. package/src/deprecated/components/Table/__tests__/__snapshots__/Table.test.tsx.snap +39 -150
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@patternfly/react-table",
3
- "version": "6.4.1-prerelease.9",
3
+ "version": "6.4.1",
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,16 +40,16 @@
40
40
  "subpaths": "node ../../scripts/exportSubpaths.mjs --config subpaths.config.json"
41
41
  },
42
42
  "dependencies": {
43
- "@patternfly/react-core": "^6.4.1-prerelease.9",
43
+ "@patternfly/react-core": "^6.4.1",
44
44
  "@patternfly/react-icons": "^6.4.0",
45
45
  "@patternfly/react-styles": "^6.4.0",
46
46
  "@patternfly/react-tokens": "^6.4.0",
47
- "lodash": "^4.17.21",
47
+ "lodash": "^4.17.23",
48
48
  "tslib": "^2.8.1"
49
49
  },
50
50
  "peerDependencies": {
51
51
  "react": "^17 || ^18 || ^19",
52
52
  "react-dom": "^17 || ^18 || ^19"
53
53
  },
54
- "gitHead": "985efafb947f9159883ef65eacb2a9af85d45473"
54
+ "gitHead": "476782a298df81cb78de7f3cd804f3ff8f33993c"
55
55
  }
@@ -1,7 +1,5 @@
1
1
  import { createRef, Fragment } from 'react';
2
2
  import { Tooltip, TooltipProps } from '@patternfly/react-core/dist/esm/components/Tooltip';
3
- import { Checkbox } from '@patternfly/react-core/dist/esm/components/Checkbox';
4
- import { Radio } from '@patternfly/react-core/dist/esm/components/Radio';
5
3
 
6
4
  export enum RowSelectVariant {
7
5
  radio = 'radio',
@@ -9,6 +7,7 @@ export enum RowSelectVariant {
9
7
  }
10
8
 
11
9
  export interface SelectColumnProps {
10
+ name?: string;
12
11
  children?: React.ReactNode;
13
12
  className?: string;
14
13
  onSelect?: (event: React.FormEvent<HTMLInputElement>) => void;
@@ -17,10 +16,6 @@ export interface SelectColumnProps {
17
16
  tooltip?: React.ReactNode;
18
17
  /** other props to pass to the tooltip */
19
18
  tooltipProps?: Omit<TooltipProps, 'content'>;
20
- /** id for the input element - required by Checkbox and Radio components */
21
- id?: string;
22
- /** name for the input element - required by Radio component */
23
- name?: string;
24
19
  }
25
20
 
26
21
  export const SelectColumn: React.FunctionComponent<SelectColumnProps> = ({
@@ -31,30 +26,15 @@ export const SelectColumn: React.FunctionComponent<SelectColumnProps> = ({
31
26
  selectVariant,
32
27
  tooltip,
33
28
  tooltipProps,
34
- id,
35
- name,
36
29
  ...props
37
30
  }: SelectColumnProps) => {
38
- const inputRef = createRef<any>();
39
-
40
- const handleChange = (event: React.FormEvent<HTMLInputElement>, _checked: boolean) => {
41
- onSelect && onSelect(event);
42
- };
43
-
44
- const commonProps = {
45
- ...props,
46
- id,
47
- ref: inputRef,
48
- onChange: handleChange
49
- };
31
+ const inputRef = createRef<HTMLInputElement>();
50
32
 
51
33
  const content = (
52
34
  <Fragment>
53
- {selectVariant === RowSelectVariant.checkbox ? (
54
- <Checkbox {...commonProps} />
55
- ) : (
56
- <Radio {...commonProps} name={name} />
57
- )}
35
+ <label>
36
+ <input {...props} ref={inputRef} type={selectVariant} onChange={onSelect} />
37
+ </label>
58
38
  {children}
59
39
  </Fragment>
60
40
  );
@@ -1,5 +1,21 @@
1
1
  // Jest Snapshot v1, https://goo.gl/fbAQLP
2
2
 
3
+ exports[`Transformer functions selectable unselected 1`] = `
4
+ {
5
+ "children": <SelectColumn
6
+ aria-label="Select row 0"
7
+ checked={false}
8
+ name="radioGroup"
9
+ onSelect={[Function]}
10
+ >
11
+
12
+ </SelectColumn>,
13
+ "className": "pf-v6-c-table__check",
14
+ "component": "td",
15
+ "isVisible": true,
16
+ }
17
+ `;
18
+
3
19
  exports[`Transformer functions sortable asc 1`] = `
4
20
  {
5
21
  "aria-sort": "ascending",
@@ -30,27 +30,26 @@ export const selectable: ITransform = (
30
30
  * @param {React.FormEvent} event - React form event
31
31
  */
32
32
  function selectClick(event: React.FormEvent<HTMLInputElement>) {
33
- const selected = rowIndex === undefined ? event.currentTarget.checked : !(rowData && rowData.selected);
33
+ const selected = rowIndex === undefined ? event.currentTarget.checked : rowData && !rowData.selected;
34
34
  // tslint:disable-next-line:no-unused-expression
35
35
  onSelect && onSelect(event, selected, rowId, rowData, extraData);
36
36
  }
37
37
  const customProps = {
38
- id: rowId !== -1 ? `select-${rowIndex}` : 'select-all',
39
38
  ...(rowId !== -1
40
39
  ? {
41
- isChecked: rowData && !!rowData.selected,
40
+ checked: rowData && !!rowData.selected,
42
41
  'aria-label': `Select row ${rowIndex}`
43
42
  }
44
43
  : {
45
- isChecked: allRowsSelected,
44
+ checked: allRowsSelected,
46
45
  'aria-label': 'Select all rows'
47
46
  }),
48
47
  ...(rowData &&
49
48
  (rowData.disableCheckbox || rowData.disableSelection) && {
50
- isDisabled: true,
49
+ disabled: true,
51
50
  className: checkStyles.checkInput
52
51
  }),
53
- ...(!rowData && isHeaderSelectDisabled && { isDisabled: true })
52
+ ...(!rowData && isHeaderSelectDisabled && { disabled: true })
54
53
  };
55
54
  let selectName = 'check-all';
56
55
  if (rowId !== -1 && selectVariant === RowSelectVariant.checkbox) {
@@ -83,7 +83,7 @@ const testCellActions = async ({
83
83
 
84
84
  describe('Transformer functions', () => {
85
85
  describe('selectable', () => {
86
- test('main select (header) - should toggle from unchecked to checked', async () => {
86
+ test('main select', async () => {
87
87
  const onSelect = jest.fn((_event, selected, rowId) => ({ selected, rowId }));
88
88
  const column = {
89
89
  extraParams: { onSelect }
@@ -92,80 +92,37 @@ describe('Transformer functions', () => {
92
92
  expect(returnedData).toMatchObject({ className: tableStyles.tableCheck });
93
93
 
94
94
  const user = userEvent.setup();
95
- render(returnedData.children as React.ReactElement<any>);
96
95
 
97
- // Click the header radio button (should be unchecked initially)
98
- await user.click(screen.getByRole('radio'));
96
+ render(returnedData.children as React.ReactElement<any>);
99
97
 
98
+ await user.type(screen.getByRole('textbox'), 'a');
100
99
  expect(onSelect).toHaveBeenCalledTimes(1);
101
- expect(onSelect.mock.results[0].value).toMatchObject({ rowId: -1, selected: true });
100
+ expect(onSelect.mock.results[0].value).toMatchObject({ rowId: -1, selected: false });
102
101
  });
103
102
 
104
- test('row select (checkbox) - should toggle from selected to unselected', async () => {
103
+ test('selected', async () => {
105
104
  const onSelect = jest.fn((_event, selected, rowId) => ({ selected, rowId }));
106
105
  const column = {
107
- extraParams: { onSelect, selectVariant: 'checkbox' }
106
+ extraParams: { onSelect }
108
107
  };
109
108
  const returnedData = selectable('', { column, rowIndex: 0, rowData: { selected: true } } as IExtra);
110
109
  expect(returnedData).toMatchObject({ className: tableStyles.tableCheck });
111
-
112
110
  const user = userEvent.setup();
113
- render(returnedData.children as React.ReactElement<any>);
114
-
115
- // Click the row checkbox (should be checked initially, clicking should uncheck)
116
- await user.click(screen.getByRole('checkbox'));
117
- expect(onSelect).toHaveBeenCalledTimes(1);
118
- expect(onSelect.mock.results[0].value).toMatchObject({ rowId: 0, selected: false });
119
- });
120
111
 
121
- test('row select (checkbox) - should toggle from unselected to selected', async () => {
122
- const onSelect = jest.fn((_event, selected, rowId) => ({ selected, rowId }));
123
- const column = {
124
- extraParams: { onSelect, selectVariant: 'checkbox' }
125
- };
126
- const returnedData = selectable('', { column, rowIndex: 0, rowData: { selected: false } } as IExtra);
127
- expect(returnedData).toMatchObject({ className: tableStyles.tableCheck });
128
-
129
- const user = userEvent.setup();
130
112
  render(returnedData.children as React.ReactElement<any>);
131
113
 
132
- // Click the row checkbox (should be unchecked initially, clicking should check)
133
- await user.click(screen.getByRole('checkbox'));
114
+ await user.type(screen.getByRole('textbox'), 'a');
134
115
  expect(onSelect).toHaveBeenCalledTimes(1);
135
- expect(onSelect.mock.results[0].value).toMatchObject({ rowId: 0, selected: true });
136
- });
137
-
138
- test('row select (radio) - clicking already selected radio should not trigger onSelect', async () => {
139
- const onSelect = jest.fn((_event, selected, rowId) => ({ selected, rowId }));
140
- const column = {
141
- extraParams: { onSelect, selectVariant: 'radio' }
142
- };
143
- const returnedData = selectable('', { column, rowIndex: 0, rowData: { selected: true } } as IExtra);
144
- expect(returnedData).toMatchObject({ className: tableStyles.tableCheck });
145
-
146
- const user = userEvent.setup();
147
- render(returnedData.children as React.ReactElement<any>);
148
-
149
- // Click the row radio button (should be checked initially, clicking should not trigger change)
150
- await user.click(screen.getByRole('radio'));
151
- expect(onSelect).toHaveBeenCalledTimes(0);
116
+ expect(onSelect.mock.results[0].value).toMatchObject({ rowId: 0, selected: false });
152
117
  });
153
118
 
154
- test('row select (radio) - should toggle from unselected to selected', async () => {
119
+ test('unselected', () => {
155
120
  const onSelect = jest.fn((_event, selected, rowId) => ({ selected, rowId }));
156
121
  const column = {
157
- extraParams: { onSelect, selectVariant: 'radio' }
122
+ extraParams: { onSelect }
158
123
  };
159
124
  const returnedData = selectable('', { column, rowIndex: 0, rowData: { selected: false } } as IExtra);
160
- expect(returnedData).toMatchObject({ className: tableStyles.tableCheck });
161
-
162
- const user = userEvent.setup();
163
- render(returnedData.children as React.ReactElement<any>);
164
-
165
- // Click the row radio button (should be unchecked initially, clicking should check)
166
- await user.click(screen.getByRole('radio'));
167
- expect(onSelect).toHaveBeenCalledTimes(1);
168
- expect(onSelect.mock.results[0].value).toMatchObject({ rowId: 0, selected: true });
125
+ expect(returnedData).toMatchSnapshot();
169
126
  });
170
127
  });
171
128
 
@@ -77,49 +77,49 @@ import BellIcon from '@patternfly/react-icons/dist/esm/icons/bell-icon';
77
77
 
78
78
  ### Bulk select
79
79
 
80
- ```ts isFullscreen file="examples/TableBulkSelect.tsx"
80
+ ```js isFullscreen file="./examples/TableBulkSelect.tsx"
81
81
 
82
82
  ```
83
83
 
84
84
  ### Expand/collapse all
85
85
 
86
- ```ts isFullscreen file="examples/TableExpandCollapseAll.tsx"
86
+ ```js isFullscreen file="./examples/TableExpandCollapseAll.tsx"
87
87
 
88
88
  ```
89
89
 
90
90
  ### Compact
91
91
 
92
- ```ts isFullscreen file="examples/TableCompact.tsx"
92
+ ```js isFullscreen file="./examples/TableCompact.tsx"
93
93
 
94
94
  ```
95
95
 
96
96
  ### Compound expansion
97
97
 
98
- ```ts isFullscreen file="examples/TableCompoundExpansion.tsx"
98
+ ```js isFullscreen file="./examples/TableCompoundExpansion.tsx"
99
99
 
100
100
  ```
101
101
 
102
102
  ### Column management
103
103
 
104
- ```ts isFullscreen file="examples/TableColumnManagement.tsx"
104
+ ```js isFullscreen file="./examples/TableColumnManagement.tsx"
105
105
 
106
106
  ```
107
107
 
108
108
  ### Column management with draggable
109
109
 
110
- ```ts isFullscreen file="examples/TableColumnManagementWithDraggable.tsx"
110
+ ```js isFullscreen file="./examples/TableColumnManagementWithDraggable.tsx"
111
111
 
112
112
  ```
113
113
 
114
114
  ### Filterable
115
115
 
116
- ```ts isFullscreen file="examples/TableFilterable.tsx"
116
+ ```js isFullscreen file="./examples/TableFilterable.tsx"
117
117
 
118
118
  ```
119
119
 
120
120
  ### Sortable - responsive
121
121
 
122
- ```ts isFullscreen file="examples/TableSortableResponsive.tsx"
122
+ ```js isFullscreen file="./examples/TableSortableResponsive.tsx"
123
123
 
124
124
  ```
125
125
 
@@ -4216,20 +4216,13 @@ exports[`Table Selectable table 1`] = `
4216
4216
  scope=""
4217
4217
  tabindex="-1"
4218
4218
  >
4219
- <div
4220
- class="pf-v6-c-check pf-m-standalone"
4221
- >
4219
+ <label>
4222
4220
  <input
4223
- aria-invalid="false"
4224
4221
  aria-label="Select all rows"
4225
- class="pf-v6-c-check__input"
4226
- data-ouia-component-id="OUIA-Generated-Checkbox-1"
4227
- data-ouia-component-type="PF6/Checkbox"
4228
- data-ouia-safe="true"
4229
- id="select-all"
4222
+ name="check-all"
4230
4223
  type="checkbox"
4231
4224
  />
4232
- </div>
4225
+ </label>
4233
4226
  </th>
4234
4227
  <th
4235
4228
  class="pf-v6-c-table__th pf-v6-c-table__sort"
@@ -4323,20 +4316,13 @@ exports[`Table Selectable table 1`] = `
4323
4316
  data-key="0"
4324
4317
  tabindex="-1"
4325
4318
  >
4326
- <div
4327
- class="pf-v6-c-check pf-m-standalone"
4328
- >
4319
+ <label>
4329
4320
  <input
4330
- aria-invalid="false"
4331
4321
  aria-label="Select row 0"
4332
- class="pf-v6-c-check__input"
4333
- data-ouia-component-id="OUIA-Generated-Checkbox-2"
4334
- data-ouia-component-type="PF6/Checkbox"
4335
- data-ouia-safe="true"
4336
- id="select-0"
4322
+ name="checkrow0"
4337
4323
  type="checkbox"
4338
4324
  />
4339
- </div>
4325
+ </label>
4340
4326
  </td>
4341
4327
  <th
4342
4328
  class="pf-v6-c-table__td"
@@ -4513,20 +4499,13 @@ exports[`Table Selectable table 1`] = `
4513
4499
  data-key="0"
4514
4500
  tabindex="-1"
4515
4501
  >
4516
- <div
4517
- class="pf-v6-c-check pf-m-standalone"
4518
- >
4502
+ <label>
4519
4503
  <input
4520
- aria-invalid="false"
4521
4504
  aria-label="Select row 3"
4522
- class="pf-v6-c-check__input"
4523
- data-ouia-component-id="OUIA-Generated-Checkbox-3"
4524
- data-ouia-component-type="PF6/Checkbox"
4525
- data-ouia-safe="true"
4526
- id="select-3"
4505
+ name="checkrow3"
4527
4506
  type="checkbox"
4528
4507
  />
4529
- </div>
4508
+ </label>
4530
4509
  </td>
4531
4510
  <th
4532
4511
  class="pf-v6-c-table__td"
@@ -4646,20 +4625,13 @@ exports[`Table Selectable table 1`] = `
4646
4625
  data-key="0"
4647
4626
  tabindex="-1"
4648
4627
  >
4649
- <div
4650
- class="pf-v6-c-check pf-m-standalone"
4651
- >
4628
+ <label>
4652
4629
  <input
4653
- aria-invalid="false"
4654
4630
  aria-label="Select row 5"
4655
- class="pf-v6-c-check__input"
4656
- data-ouia-component-id="OUIA-Generated-Checkbox-4"
4657
- data-ouia-component-type="PF6/Checkbox"
4658
- data-ouia-safe="true"
4659
- id="select-5"
4631
+ name="checkrow5"
4660
4632
  type="checkbox"
4661
4633
  />
4662
- </div>
4634
+ </label>
4663
4635
  </td>
4664
4636
  <th
4665
4637
  class="pf-v6-c-table__td"
@@ -4722,20 +4694,13 @@ exports[`Table Selectable table 1`] = `
4722
4694
  data-key="0"
4723
4695
  tabindex="-1"
4724
4696
  >
4725
- <div
4726
- class="pf-v6-c-check pf-m-standalone"
4727
- >
4697
+ <label>
4728
4698
  <input
4729
- aria-invalid="false"
4730
4699
  aria-label="Select row 6"
4731
- class="pf-v6-c-check__input"
4732
- data-ouia-component-id="OUIA-Generated-Checkbox-5"
4733
- data-ouia-component-type="PF6/Checkbox"
4734
- data-ouia-safe="true"
4735
- id="select-6"
4700
+ name="checkrow6"
4736
4701
  type="checkbox"
4737
4702
  />
4738
- </div>
4703
+ </label>
4739
4704
  </td>
4740
4705
  <th
4741
4706
  class="pf-v6-c-table__td"
@@ -4798,20 +4763,13 @@ exports[`Table Selectable table 1`] = `
4798
4763
  data-key="0"
4799
4764
  tabindex="-1"
4800
4765
  >
4801
- <div
4802
- class="pf-v6-c-check pf-m-standalone"
4803
- >
4766
+ <label>
4804
4767
  <input
4805
- aria-invalid="false"
4806
4768
  aria-label="Select row 7"
4807
- class="pf-v6-c-check__input"
4808
- data-ouia-component-id="OUIA-Generated-Checkbox-6"
4809
- data-ouia-component-type="PF6/Checkbox"
4810
- data-ouia-safe="true"
4811
- id="select-7"
4769
+ name="checkrow7"
4812
4770
  type="checkbox"
4813
4771
  />
4814
- </div>
4772
+ </label>
4815
4773
  </td>
4816
4774
  <th
4817
4775
  class="pf-v6-c-table__td"
@@ -4874,20 +4832,13 @@ exports[`Table Selectable table 1`] = `
4874
4832
  data-key="0"
4875
4833
  tabindex="-1"
4876
4834
  >
4877
- <div
4878
- class="pf-v6-c-check pf-m-standalone"
4879
- >
4835
+ <label>
4880
4836
  <input
4881
- aria-invalid="false"
4882
4837
  aria-label="Select row 8"
4883
- class="pf-v6-c-check__input"
4884
- data-ouia-component-id="OUIA-Generated-Checkbox-7"
4885
- data-ouia-component-type="PF6/Checkbox"
4886
- data-ouia-safe="true"
4887
- id="select-8"
4838
+ name="checkrow8"
4888
4839
  type="checkbox"
4889
4840
  />
4890
- </div>
4841
+ </label>
4891
4842
  </td>
4892
4843
  <th
4893
4844
  class="pf-v6-c-table__td"
@@ -5057,21 +5008,13 @@ exports[`Table Selectable table with Radio 1`] = `
5057
5008
  data-key="0"
5058
5009
  tabindex="-1"
5059
5010
  >
5060
- <div
5061
- class="pf-v6-c-radio pf-m-standalone"
5062
- >
5011
+ <label>
5063
5012
  <input
5064
- aria-invalid="false"
5065
5013
  aria-label="Select row 0"
5066
- class="pf-v6-c-radio__input"
5067
- data-ouia-component-id="OUIA-Generated-Radio-1"
5068
- data-ouia-component-type="PF6/Radio"
5069
- data-ouia-safe="true"
5070
- id="select-0"
5071
5014
  name="radioGroup"
5072
5015
  type="radio"
5073
5016
  />
5074
- </div>
5017
+ </label>
5075
5018
  </td>
5076
5019
  <th
5077
5020
  class="pf-v6-c-table__td"
@@ -5248,21 +5191,13 @@ exports[`Table Selectable table with Radio 1`] = `
5248
5191
  data-key="0"
5249
5192
  tabindex="-1"
5250
5193
  >
5251
- <div
5252
- class="pf-v6-c-radio pf-m-standalone"
5253
- >
5194
+ <label>
5254
5195
  <input
5255
- aria-invalid="false"
5256
5196
  aria-label="Select row 3"
5257
- class="pf-v6-c-radio__input"
5258
- data-ouia-component-id="OUIA-Generated-Radio-2"
5259
- data-ouia-component-type="PF6/Radio"
5260
- data-ouia-safe="true"
5261
- id="select-3"
5262
5197
  name="radioGroup"
5263
5198
  type="radio"
5264
5199
  />
5265
- </div>
5200
+ </label>
5266
5201
  </td>
5267
5202
  <th
5268
5203
  class="pf-v6-c-table__td"
@@ -5382,21 +5317,13 @@ exports[`Table Selectable table with Radio 1`] = `
5382
5317
  data-key="0"
5383
5318
  tabindex="-1"
5384
5319
  >
5385
- <div
5386
- class="pf-v6-c-radio pf-m-standalone"
5387
- >
5320
+ <label>
5388
5321
  <input
5389
- aria-invalid="false"
5390
5322
  aria-label="Select row 5"
5391
- class="pf-v6-c-radio__input"
5392
- data-ouia-component-id="OUIA-Generated-Radio-3"
5393
- data-ouia-component-type="PF6/Radio"
5394
- data-ouia-safe="true"
5395
- id="select-5"
5396
5323
  name="radioGroup"
5397
5324
  type="radio"
5398
5325
  />
5399
- </div>
5326
+ </label>
5400
5327
  </td>
5401
5328
  <th
5402
5329
  class="pf-v6-c-table__td"
@@ -5459,21 +5386,13 @@ exports[`Table Selectable table with Radio 1`] = `
5459
5386
  data-key="0"
5460
5387
  tabindex="-1"
5461
5388
  >
5462
- <div
5463
- class="pf-v6-c-radio pf-m-standalone"
5464
- >
5389
+ <label>
5465
5390
  <input
5466
- aria-invalid="false"
5467
5391
  aria-label="Select row 6"
5468
- class="pf-v6-c-radio__input"
5469
- data-ouia-component-id="OUIA-Generated-Radio-4"
5470
- data-ouia-component-type="PF6/Radio"
5471
- data-ouia-safe="true"
5472
- id="select-6"
5473
5392
  name="radioGroup"
5474
5393
  type="radio"
5475
5394
  />
5476
- </div>
5395
+ </label>
5477
5396
  </td>
5478
5397
  <th
5479
5398
  class="pf-v6-c-table__td"
@@ -5536,21 +5455,13 @@ exports[`Table Selectable table with Radio 1`] = `
5536
5455
  data-key="0"
5537
5456
  tabindex="-1"
5538
5457
  >
5539
- <div
5540
- class="pf-v6-c-radio pf-m-standalone"
5541
- >
5458
+ <label>
5542
5459
  <input
5543
- aria-invalid="false"
5544
5460
  aria-label="Select row 7"
5545
- class="pf-v6-c-radio__input"
5546
- data-ouia-component-id="OUIA-Generated-Radio-5"
5547
- data-ouia-component-type="PF6/Radio"
5548
- data-ouia-safe="true"
5549
- id="select-7"
5550
5461
  name="radioGroup"
5551
5462
  type="radio"
5552
5463
  />
5553
- </div>
5464
+ </label>
5554
5465
  </td>
5555
5466
  <th
5556
5467
  class="pf-v6-c-table__td"
@@ -5613,21 +5524,13 @@ exports[`Table Selectable table with Radio 1`] = `
5613
5524
  data-key="0"
5614
5525
  tabindex="-1"
5615
5526
  >
5616
- <div
5617
- class="pf-v6-c-radio pf-m-standalone"
5618
- >
5527
+ <label>
5619
5528
  <input
5620
- aria-invalid="false"
5621
5529
  aria-label="Select row 8"
5622
- class="pf-v6-c-radio__input"
5623
- data-ouia-component-id="OUIA-Generated-Radio-6"
5624
- data-ouia-component-type="PF6/Radio"
5625
- data-ouia-safe="true"
5626
- id="select-8"
5627
5530
  name="radioGroup"
5628
5531
  type="radio"
5629
5532
  />
5630
- </div>
5533
+ </label>
5631
5534
  </td>
5632
5535
  <th
5633
5536
  class="pf-v6-c-table__td"
@@ -5705,21 +5608,14 @@ exports[`Table Selectable table with selected expandable row 1`] = `
5705
5608
  scope=""
5706
5609
  tabindex="-1"
5707
5610
  >
5708
- <div
5709
- class="pf-v6-c-check pf-m-standalone"
5710
- >
5611
+ <label>
5711
5612
  <input
5712
- aria-invalid="false"
5713
5613
  aria-label="Select all rows"
5714
5614
  checked=""
5715
- class="pf-v6-c-check__input"
5716
- data-ouia-component-id="OUIA-Generated-Checkbox-8"
5717
- data-ouia-component-type="PF6/Checkbox"
5718
- data-ouia-safe="true"
5719
- id="select-all"
5615
+ name="check-all"
5720
5616
  type="checkbox"
5721
5617
  />
5722
- </div>
5618
+ </label>
5723
5619
  </th>
5724
5620
  <th
5725
5621
  class="pf-v6-c-table__th"
@@ -5747,21 +5643,14 @@ exports[`Table Selectable table with selected expandable row 1`] = `
5747
5643
  data-key="0"
5748
5644
  tabindex="-1"
5749
5645
  >
5750
- <div
5751
- class="pf-v6-c-check pf-m-standalone"
5752
- >
5646
+ <label>
5753
5647
  <input
5754
- aria-invalid="false"
5755
5648
  aria-label="Select row 0"
5756
5649
  checked=""
5757
- class="pf-v6-c-check__input"
5758
- data-ouia-component-id="OUIA-Generated-Checkbox-9"
5759
- data-ouia-component-type="PF6/Checkbox"
5760
- data-ouia-safe="true"
5761
- id="select-0"
5650
+ name="checkrow0"
5762
5651
  type="checkbox"
5763
5652
  />
5764
- </div>
5653
+ </label>
5765
5654
  </td>
5766
5655
  <td
5767
5656
  class="pf-v6-c-table__td"