@chief-editor/brick-control
Version:
Control Brick for chief editor
1 lines • 949 B
JavaScript
;var __assign=this&&this.__assign||function(){return(__assign=Object.assign||function(e){for(var t,r=1,i=arguments.length;r<i;r++)for(var a in t=arguments[r])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e}).apply(this,arguments)},__importDefault=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(exports,"__esModule",{value:!0});var react_1=__importDefault(require("react")),ui_1=require("@chief-editor/ui");function FormContainerBrick(e){var t=e.styles,r=e.layout,i=e.dispatchEvent,a=e.creator,n=e.renderPart,o=e.config.props,s=o.hasLabel,l=o.cLabel,u=o.required,_=o.tooltip,c=o.hint,p=o.align,h=void 0===p?"right":p;return react_1.default.createElement(ui_1.FormContainer,{hasLabel:s,label:l,tooltip:_,hint:c,required:u,align:h,"data-id":a,style:__assign(__assign({minHeight:"24px"},t),r),onClick:i,level:0},n("content"))}exports.FormContainerBrick=FormContainerBrick;