PluginProbe ʕ •ᴥ•ʔ
JetFormBuilder — Dynamic Blocks Form Builder / 3.6.5.1
JetFormBuilder — Dynamic Blocks Form Builder v3.6.5.1
3.6.5.1 3.6.5 3.6.4.2 3.6.4.1 3.6.4 3.6.3.1 3.6.3 3.6.2.2 3.6.2.1 3.6.2 3.6.1.1 3.6.1 3.6.0.1 trunk 1.0.0 1.0.1 1.0.2 1.0.3 1.1.0 1.1.1 1.1.2 1.1.3 1.1.4 1.1.5 1.1.6 1.1.7 1.2.0 1.2.1 1.2.2 1.2.3 1.2.4 1.2.5 1.2.6 1.2.7 1.3.0 1.3.1 1.3.2 1.3.3 1.4.0 1.4.1 1.4.2 1.4.3 1.5.0 1.5.1 1.5.2 1.5.3 1.5.4 1.5.5 2.0.0 2.0.1 2.0.2 2.0.3 2.0.4 2.0.5 2.0.6 2.1.0 2.1.1 2.1.10 2.1.11 2.1.2 2.1.3 2.1.4 2.1.5 2.1.6 2.1.7 2.1.8 2.1.9 3.0.0 3.0.0.1 3.0.0.2 3.0.0.3 3.0.1 3.0.1.1 3.0.2 3.0.3 3.0.4 3.0.5 3.0.6 3.0.7 3.0.8 3.0.9 3.1.0 3.1.0.1 3.1.1 3.1.2 3.1.3 3.1.4 3.1.5 3.1.6 3.1.7 3.1.8 3.1.9 3.2.0 3.2.1 3.2.2 3.2.3 3.3.0 3.3.1 3.3.2 3.3.3 3.3.3.1 3.3.4 3.3.4.1 3.3.4.2 3.4.0 3.4.1 3.4.2 3.4.3 3.4.4 3.4.5 3.4.5.1 3.4.5.2 3.4.6 3.4.7 3.4.7.1 3.5.0 3.5.1 3.5.1.1 3.5.1.2 3.5.2 3.5.2.1 3.5.3 3.5.4 3.5.5 3.5.6 3.5.6.1 3.5.6.2 3.5.6.3 3.6.0
jetformbuilder / modules / framework / blocks-style-manager / assets / src / components / common / controls-popover.jsx
jetformbuilder / modules / framework / blocks-style-manager / assets / src / components / common Last commit date
controls-popover.jsx 3 months ago controls-tabs-navigation.jsx 3 months ago controls-tabs.jsx 3 months ago popover-container.jsx 3 months ago
controls-popover.jsx
42 lines
1 import { Popover, Button } from '@wordpress/components';
2
3 const ControlsPopover = ( { children, isOpen, onClose, label, anchor } ) => {
4
5 if ( ! isOpen ) {
6 return null;
7 }
8
9 const closeIcon = (
10 <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="16" height="16" aria-hidden="true" focusable="false"><path d="M12 13.06l3.712 3.713 1.061-1.06L13.061 12l3.712-3.712-1.06-1.06L12 10.938 8.288 7.227l-1.061 1.06L10.939 12l-3.712 3.712 1.06 1.061L12 13.061z"></path></svg>
11 );
12
13 return (
14 <Popover
15 className="crocoblock-style-manager__popover"
16 placement="left-start"
17 onClose={ onClose }
18 shouldCloseOnClickOutside={ true }
19 anchor={ anchor }
20 noArrow={ false }
21 shift={ true }
22 offset={ 10 }
23 >
24 <div className="crocoblock-style-manager__popover">
25 <div className="crocoblock-style-manager__popover-header">
26 { label}
27 <Button
28 className="crocoblock-style-manager__popover-close"
29 onClick={ onClose }
30 icon={ closeIcon } label="Close"
31 ></Button>
32 </div>
33 <div className="crocoblock-style-manager__popover-content">
34 { children }
35 </div>
36 </div>
37 </Popover>
38 );
39 };
40
41 export default ControlsPopover;
42