@carbon/ibm-products-web-components
Version:
Carbon for IBM Products Web Components
28 lines • 821 B
TypeScript
/**
* @license
*
* Copyright IBM Corp. 2026
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*/
export type StackStepSize = 'sm' | 'md' | 'lg';
interface StackState {
stack: string[];
containers: Map<string, HTMLElement>;
stackStepSize: StackStepSize;
}
declare class StackManager {
#private;
get state(): StackState;
setStackStepSize(size: StackStepSize): void;
notifyStack(id: string, open: boolean, container: HTMLElement | null): void;
getDepth(id: string): number;
getScaleFactor(id: string): number;
getBlockSizeChange(id: string): string;
private remToPx;
reset(): void;
}
export declare const stackManager: StackManager;
export {};
//# sourceMappingURL=stack-signal.d.ts.map