UNPKG

@wordpress/global-styles-ui

Version:
32 lines • 1.51 kB
import type { GlobalStylesConfig } from '@wordpress/global-styles-engine'; interface GlobalStylesUIProps { /** User global styles object (what gets edited) */ value: GlobalStylesConfig; /** Base global styles object (theme default) */ baseValue: GlobalStylesConfig; /** Callback when global styles change */ onChange: (newValue: GlobalStylesConfig) => void; /** Current navigation path (optional) */ path?: string; /** Callback when navigation path changes (optional) */ onPathChange?: (path: string) => void; /** Whether font library is enabled (optional) */ fontLibraryEnabled?: boolean; /** Server CSS styles for BlockEditorProvider (optional) */ serverCSS?: { isGlobalStyles?: boolean; }[]; /** Server settings for BlockEditorProvider (optional) */ serverSettings?: { __unstableResolvedAssets: Record<string, unknown>; }; /** Selected viewport state (optional) */ selectedViewport?: string; /** Whether to show responsive state controls (optional) */ showResponsiveStateControls?: boolean; /** Whether to show block state controls (optional) */ showBlockStateControls?: boolean; } export declare function GlobalStylesUI({ value, baseValue, onChange, path, onPathChange, fontLibraryEnabled, serverCSS, serverSettings, selectedViewport, showResponsiveStateControls, showBlockStateControls, }: GlobalStylesUIProps): import("react").JSX.Element; export {}; //# sourceMappingURL=global-styles-ui.d.ts.map