@@ -13,7 +13,7 @@ import {Stack} from '../Stack';
1313import { Spinner } from '../Spinner' ;
1414import { Text } from '../Text' ;
1515import {
16- BulkAction ,
16+ BulkActions ,
1717 BulkActionsProps ,
1818 useIsBulkActionsSticky ,
1919} from '../BulkActions' ;
@@ -27,7 +27,7 @@ import {
2727} from '../../utilities/index-provider' ;
2828import { AfterInitialMount } from '../AfterInitialMount' ;
2929import { IndexProvider } from '../IndexProvider' ;
30- import type { ActionListSection , NonEmptyArray } from '../../types' ;
30+ import type { NonEmptyArray } from '../../types' ;
3131
3232import { getTableHeadingsBySelector } from './utilities' ;
3333import { ScrollContainer , Cell , Row } from './components' ;
@@ -66,6 +66,7 @@ export interface IndexTableHeadingCheckbox {
6666 label ?: string ;
6767 onChange ?: ( checked : boolean ) => unknown ;
6868 checked ?: boolean | 'indeterminate' ;
69+ indeterminate ?: boolean ;
6970}
7071
7172export interface IndexTableBaseProps {
@@ -104,11 +105,6 @@ export interface IndexTableBaseProps {
104105 onboardingBadgeText ?: string ;
105106 undoText ?: string ;
106107 checkbox ?: ( props : IndexTableHeadingCheckbox ) => React . ReactNode ;
107- renderBulkActions ?: ( {
108- actions,
109- } : {
110- actions : ( BulkAction | ActionListSection ) [ ] ;
111- } ) => React . ReactNode ;
112108}
113109
114110export interface TableHeadingRect {
@@ -142,7 +138,6 @@ function IndexTableBase({
142138 onboardingBadgeText,
143139 undoText,
144140 checkbox,
145- renderBulkActions,
146141 ...restProps
147142} : IndexTableBaseProps ) {
148143 const {
@@ -537,7 +532,7 @@ function IndexTableBase({
537532 ) ;
538533
539534 const shouldShowActions = ! condensed || selectedItemsCount ;
540- // const promotedActions = shouldShowActions ? promotedBulkActions : [];
535+ const promotedActions = shouldShowActions ? promotedBulkActions : [ ] ;
541536 const actions = shouldShowActions ? bulkActions : [ ] ;
542537
543538 const bulkActionsMarkup =
@@ -554,15 +549,14 @@ function IndexTableBase({
554549 : undefined ,
555550 } }
556551 >
557- { renderBulkActions ?.( { actions} ) }
558- { /* <BulkActions
552+ < BulkActions
559553 selectMode = { selectMode }
560554 promotedActions = { promotedActions }
561555 actions = { actions }
562556 onSelectModeToggle = { condensed ? handleSelectModeToggle : undefined }
563557 isSticky = { isBulkActionsSticky }
564558 width = { bulkActionsMaxWidth }
565- /> */ }
559+ />
566560 </ div >
567561 ) : null ;
568562
@@ -842,9 +836,9 @@ function IndexTableBase({
842836 } ;
843837 }
844838
845- // function handleSelectModeToggle() {
846- // handleSelectionChange(SelectionType.All, false);
847- // }
839+ function handleSelectModeToggle ( ) {
840+ handleSelectionChange ( SelectionType . All , false ) ;
841+ }
848842}
849843
850844const isBreakpointsXS = ( ) => {
0 commit comments