{"version":3,"file":"preview-colors.mjs","names":["motion","HStack"],"sources":["../src/preview-colors.tsx"],"sourcesContent":["import {\n\t__experimentalHStack as HStack,\n\t__unstableMotion as motion,\n} from '@wordpress/components';\nimport PresetColors from './preset-colors';\nimport PreviewWrapper from './preview-wrapper';\n\nconst firstFrameVariants = {\n\tstart: {\n\t\tscale: 1,\n\t\topacity: 1,\n\t},\n\thover: {\n\t\tscale: 0,\n\t\topacity: 0,\n\t},\n};\n\ninterface StylesPreviewColorsProps {\n\tlabel?: string;\n\tisFocused?: boolean;\n\twithHoverView?: boolean;\n}\n\nconst StylesPreviewColors = ( {\n\tlabel,\n\tisFocused,\n\twithHoverView,\n}: StylesPreviewColorsProps ) => {\n\treturn (\n\t\t<PreviewWrapper\n\t\t\tlabel={ label }\n\t\t\tisFocused={ isFocused }\n\t\t\twithHoverView={ withHoverView }\n\t\t>\n\t\t\t{ ( { key } ) => (\n\t\t\t\t<motion.div\n\t\t\t\t\tkey={ key }\n\t\t\t\t\tvariants={ firstFrameVariants }\n\t\t\t\t\tstyle={ {\n\t\t\t\t\t\theight: '100%',\n\t\t\t\t\t\toverflow: 'hidden',\n\t\t\t\t\t} }\n\t\t\t\t>\n\t\t\t\t\t<HStack\n\t\t\t\t\t\tspacing={ 0 }\n\t\t\t\t\t\tjustify=\"center\"\n\t\t\t\t\t\tstyle={ {\n\t\t\t\t\t\t\theight: '100%',\n\t\t\t\t\t\t\toverflow: 'hidden',\n\t\t\t\t\t\t} }\n\t\t\t\t\t>\n\t\t\t\t\t\t<PresetColors />\n\t\t\t\t\t</HStack>\n\t\t\t\t</motion.div>\n\t\t\t) }\n\t\t</PreviewWrapper>\n\t);\n};\n\nexport default StylesPreviewColors;\n"],"mappings":";;;;;AAOA,MAAM,qBAAqB;CAC1B,OAAO;EACN,OAAO;EACP,SAAS;CACV;CACA,OAAO;EACN,OAAO;EACP,SAAS;CACV;AACD;AAQA,MAAM,uBAAwB,EAC7B,OACA,WACA,oBACgC;CAChC,OACC,oBAAC,gBAAD;EACS;EACI;EACI;EAEZ,WAAA,EAAE,UACL,oBAACA,iBAAO,KAAR;GAEC,UAAW;GACX,OAAQ;IACP,QAAQ;IACR,UAAU;GACX;GAEA,UAAA,oBAACC,sBAAD;IACC,SAAU;IACV,SAAQ;IACR,OAAQ;KACP,QAAQ;KACR,UAAU;IACX;IAEA,UAAA,oBAAC,cAAD,CAAe,CAAA;GACR,CAAA;EACG,GAjBL,GAiBK;CAEE,CAAA;AAElB"}