Re-scoped from @lilith/ui-zname to @cocotte/ui-zname. In-set cross-package deps re-pointed to @cocotte; out-of-set @lilith deps preserved (same Verdaccio). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
42 lines
No EOL
1.1 KiB
TypeScript
42 lines
No EOL
1.1 KiB
TypeScript
/**
|
|
* Core types for @ui/zname package.
|
|
* Platform-agnostic types that work for both React and React Native.
|
|
*/
|
|
import type { ZIndexLayerName, ZIndexLayers } from './constants';
|
|
/**
|
|
* Props for the ZName wrapper component.
|
|
* Generic to support both React and React Native.
|
|
*/
|
|
export interface BaseZNameProps {
|
|
/** The z-index layer to apply */
|
|
name: ZIndexLayerName;
|
|
/** Child content to wrap */
|
|
children: unknown;
|
|
/** Additional styles to apply */
|
|
style?: Record<string, unknown>;
|
|
/** Override z-index value (use sparingly) */
|
|
zIndex?: number;
|
|
}
|
|
/**
|
|
* Interface matching the ZINDEX_LAYERS object structure.
|
|
*/
|
|
export interface ZIndexValues {
|
|
surface: number;
|
|
elevated: number;
|
|
navigation: number;
|
|
overlay: number;
|
|
modal: number;
|
|
alert: number;
|
|
system: number;
|
|
'high-priority': number;
|
|
}
|
|
export type { ZIndexLayerName, ZIndexLayers };
|
|
/**
|
|
* @deprecated Use BaseZNameProps instead
|
|
*/
|
|
export type ZNameProps = BaseZNameProps;
|
|
/**
|
|
* @deprecated Use ZIndexLayerName instead
|
|
*/
|
|
export type ZIndexName = ZIndexLayerName;
|
|
//# sourceMappingURL=types.d.ts.map
|