analytica-frontend-lib
Version:
Repositório público dos componentes utilizados nas plataformas da Analytica Ensino
14 lines • 715 B
TypeScript
import type { CategoryConfig } from '../../../../CheckBoxGroup/index';
/**
* Apply the same "single visible option" auto-selection behavior that the CheckboxGroup
* applies internally, but during initialization.
*
* This fixes the scenario where the first category (e.g. Escola) is rendered in compact
* mode (single item) and therefore has no UI affordance to manually select it, leaving
* dependent categories disabled.
*
* @param categories - Array of category configurations
* @returns Array of category configurations with auto-selected items
*/
export declare function applyChainedAutoSelection(categories: CategoryConfig[]): CategoryConfig[];
//# sourceMappingURL=applyChainedAutoSelection.d.ts.map