UNPKG

@wordpress/global-styles-ui

Version:
8 lines (7 loc) • 988 B
{ "version": 3, "sources": ["../src/color-variations.tsx"], "sourcesContent": ["import type { GlobalStylesConfig } from '@wordpress/global-styles-engine';\nimport ColorVariationsInternal from './variations/variations-color';\nimport { withGlobalStylesProvider } from './with-global-styles-provider';\n\nexport interface ColorVariationsProps {\n\tvalue: GlobalStylesConfig;\n\tbaseValue: GlobalStylesConfig;\n\tonChange: ( config: GlobalStylesConfig ) => void;\n\ttitle?: string;\n\tgap?: number;\n}\n\n/**\n * Render Global Styles Color Variations.\n *\n * @example\n * ```tsx\n * <ColorVariations\n * value={userConfig}\n * baseValue={baseConfig}\n * onChange={setUserConfig}\n * title=\"Palettes\"\n * gap={3}\n * />\n * ```\n */\nexport const ColorVariations: React.ComponentType< ColorVariationsProps > =\n\twithGlobalStylesProvider( ColorVariationsInternal );\n"], "mappings": ";AACA,OAAO,6BAA6B;AACpC,SAAS,gCAAgC;AAwBlC,IAAM,kBACZ,yBAA0B,uBAAwB;", "names": [] }