@vireocodedev/ui · 0.3.2

@vireocodedev/ui/storybook

5 public exports generated from the shipped declaration graph.

Showing all 5 exports

Installs a deterministic in-memory EventSource while its executable Storybook example is mounted. This is developer tooling, not production UI.

/**
 * Installs a deterministic in-memory EventSource while its executable
 * Storybook example is mounted. This is developer tooling, not production UI.
 */
export declare function VireoEventSourceStoryServer({ children }: VireoEventSourceStoryServerProps): React.ReactNode;
export type VireoEventSourceStoryServerController = Readonly<{
    connectionCount: number;
    emitMessage: (data: string) => void;
    emitNamedMessage: (eventName: string, data: string) => void;
    interrupt: () => void;
    resume: () => void;
    terminate: () => void;
}>;
export type VireoEventSourceStoryServerProps = {
    children: (controller: VireoEventSourceStoryServerController) => React.ReactNode;
};

Reproduces the shared dark Vireo review surface used by executable Storybook examples.

/** Reproduces the shared dark Vireo review surface used by executable Storybook examples. */
export declare function VireoStorybookProvider({ children, temporalLocale, themeDirection, themeMode, }: VireoStorybookProviderProps): React.JSX.Element;
export type VireoStorybookProviderProps = {
    children: React.ReactNode;
    /** Temporal locale used by stories that do not demonstrate localization. @default 'en' */
    temporalLocale?: VireoTemporalLocale;
    /** Review color scheme. Nested providers inherit the nearest explicit mode. @default 'dark' */
    themeMode?: VireoThemeMode;
    /** Review writing direction. Nested providers inherit the nearest explicit direction. @default 'ltr' */
    themeDirection?: "ltr" | "rtl";
};