UNPKG

@wordpress/global-styles-ui

Version:
8 lines (7 loc) • 931 B
{ "version": 3, "sources": ["../src/style-variations.tsx"], "sourcesContent": ["import type { GlobalStylesConfig } from '@wordpress/global-styles-engine';\nimport StyleVariationsContainer from './style-variations-container';\nimport { withGlobalStylesProvider } from './with-global-styles-provider';\n\nexport interface StyleVariationsProps {\n\tvalue: GlobalStylesConfig;\n\tbaseValue: GlobalStylesConfig;\n\tonChange: ( config: GlobalStylesConfig ) => void;\n\tgap?: number;\n}\n\n/**\n * Render Style Variations.\n *\n * @example\n * ```tsx\n * <StyleVariations\n * value={userConfig}\n * baseValue={baseConfig}\n * onChange={setUserConfig}\n * gap={3}\n * />\n * ```\n */\nexport const StyleVariations: React.ComponentType< StyleVariationsProps > =\n\twithGlobalStylesProvider( StyleVariationsContainer );\n"], "mappings": ";AACA,OAAO,8BAA8B;AACrC,SAAS,gCAAgC;AAsBlC,IAAM,kBACZ,yBAA0B,wBAAyB;", "names": [] }