mirror of
https://github.com/proelements/proelements.git
synced 2026-04-24 12:30:41 +00:00
v3.33.1
This commit is contained in:
+1
@@ -0,0 +1 @@
|
||||
!function(){"use strict";var e=window.elementorV2.editorControlsExtended,t=window.elementorV2.editorEditingPanel,n=window.elementorV2.editorProps,o=window.React,i=window.wp.i18n,r=window.elementorV2.editorControls,s=window.elementorV2.ui;const l=({children:e})=>o.createElement(r.ControlAdornmentsProvider,{items:[{id:"custom-css-indicator",Adornment:t.CustomCssIndicator}]},e),a=()=>{const{id:n,meta:a}=(0,t.useStyle)(),{customCss:d,setCustomCss:m}=(0,t.useCustomCss)(),c=`${a.breakpoint||"desktop"}-${a.state||"default"}-${n}`,[u,w]=(0,o.useState)({});(0,o.useEffect)((()=>{u[c]||w((e=>({...e,[c]:{value:d?.raw||"",isValid:!0}})))}),[c]);const C=(0,o.useMemo)((()=>u[c]||{value:d?.raw||"",isValid:!0}),[u,c,d?.raw]);return o.createElement(t.SectionContent,{gap:1},o.createElement(l,null,o.createElement(s.Stack,{direction:"row",alignItems:"center",gap:1},o.createElement(r.ControlFormLabel,null,(0,i.__)("CSS code","elementor-pro")),o.createElement(r.ControlAdornments,null))),o.createElement(e.CssEditor,{value:C.value,onChange:(e,t)=>{w((n=>({...n,[c]:{value:e,isValid:t}}))),t&&m(e,{history:{propDisplayName:"Custom CSS"}})}}))},d=()=>o.createElement(t.StyleTabSection,{section:{component:a,name:"Custom CSS",title:(0,i.__)("Custom CSS","elementor-pro")},fields:["custom_css"],unmountOnExit:!1});(async()=>{await async function(){t.controlsRegistry.register("attributes",e.AttributesControl,"full",n.keyValuePropTypeUtil),(0,t.injectIntoStyleTab)({id:"custom-css",component:d})}()})(),(window.elementorV2=window.elementorV2||{}).editorEditingPanelExtended={}}(),window.elementorV2.editorEditingPanelExtended?.init?.();
|
||||
Reference in New Issue
Block a user