@wordpress/global-styles-ui
Version:
Global Styles UI components for WordPress.
1 lines • 2.42 kB
Source Map (JSON)
{"version":3,"file":"screen-color-palette.mjs","names":[],"sources":["../src/screen-color-palette.tsx"],"sourcesContent":["import { __ } from '@wordpress/i18n';\nimport { Tabs } from '@wordpress/ui';\nimport { ScreenHeader } from './screen-header';\nimport ColorPalettePanel from './color-palette-panel';\nimport GradientPalettePanel from './gradients-palette-panel';\nimport DuotonePalettePanel from './duotone-palette-panel';\n\nfunction ScreenColorPalette( { name }: { name?: string } ) {\n\treturn (\n\t\t<>\n\t\t\t<ScreenHeader\n\t\t\t\ttitle={ __( 'Edit palette' ) }\n\t\t\t\tdescription={ __(\n\t\t\t\t\t'The combination of colors used across the site and in color pickers.'\n\t\t\t\t) }\n\t\t\t/>\n\t\t\t<Tabs.Root defaultValue=\"color\">\n\t\t\t\t<div className=\"global-styles-ui-color-palette__tablist-container\">\n\t\t\t\t\t<Tabs.List className=\"global-styles-ui-color-palette__tablist\">\n\t\t\t\t\t\t<Tabs.Tab value=\"color\">{ __( 'Color' ) }</Tabs.Tab>\n\t\t\t\t\t\t<Tabs.Tab value=\"gradient\">\n\t\t\t\t\t\t\t{ __( 'Gradient' ) }\n\t\t\t\t\t\t</Tabs.Tab>\n\t\t\t\t\t\t<Tabs.Tab value=\"duotone\">{ __( 'Duotone' ) }</Tabs.Tab>\n\t\t\t\t\t</Tabs.List>\n\t\t\t\t</div>\n\t\t\t\t<Tabs.Panel value=\"color\" tabIndex={ -1 }>\n\t\t\t\t\t<ColorPalettePanel name={ name } />\n\t\t\t\t</Tabs.Panel>\n\t\t\t\t<Tabs.Panel value=\"gradient\" tabIndex={ -1 }>\n\t\t\t\t\t<GradientPalettePanel name={ name } />\n\t\t\t\t</Tabs.Panel>\n\t\t\t\t<Tabs.Panel value=\"duotone\" tabIndex={ -1 }>\n\t\t\t\t\t<DuotonePalettePanel name={ name } />\n\t\t\t\t</Tabs.Panel>\n\t\t\t</Tabs.Root>\n\t\t</>\n\t);\n}\n\nexport default ScreenColorPalette;\n"],"mappings":";;;;;;;;AAOA,SAAS,mBAAoB,EAAE,QAA4B;CAC1D,OACC,qBAAA,UAAA,EAAA,UAAA,CACC,oBAAC,cAAD;EACC,OAAQ,GAAI,cAAe;EAC3B,aAAc,GACb,sEACD;CACA,CAAA,GACD,qBAAC,KAAK,MAAN;EAAW,cAAa;EAAxB,UAAA;GACC,oBAAC,OAAD;IAAK,WAAU;IACd,UAAA,qBAAC,KAAK,MAAN;KAAW,WAAU;KAArB,UAAA;MACC,oBAAC,KAAK,KAAN;OAAU,OAAM;OAAU,UAAA,GAAI,OAAQ;MAAa,CAAA;MACnD,oBAAC,KAAK,KAAN;OAAU,OAAM;OACb,UAAA,GAAI,UAAW;MACR,CAAA;MACV,oBAAC,KAAK,KAAN;OAAU,OAAM;OAAY,UAAA,GAAI,SAAU;MAAa,CAAA;KAC7C;;GACP,CAAA;GACL,oBAAC,KAAK,OAAN;IAAY,OAAM;IAAQ,UAAW;IACpC,UAAA,oBAAC,mBAAD,EAA0B,KAAQ,CAAA;GACvB,CAAA;GACZ,oBAAC,KAAK,OAAN;IAAY,OAAM;IAAW,UAAW;IACvC,UAAA,oBAAC,sBAAD,EAA6B,KAAQ,CAAA;GAC1B,CAAA;GACZ,oBAAC,KAAK,OAAN;IAAY,OAAM;IAAU,UAAW;IACtC,UAAA,oBAAC,qBAAD,EAA4B,KAAQ,CAAA;GACzB,CAAA;EACF;CACV,CAAA,CAAA,EAAA,CAAA;AAEJ"}