UNPKG

@chief-editor/brick-control

Version:

Control Brick for chief editor

1 lines 521 B
var __assign=this&&this.__assign||function(){return(__assign=Object.assign||function(r){for(var e,t=1,a=arguments.length;t<a;t++)for(var i in e=arguments[t])Object.prototype.hasOwnProperty.call(e,i)&&(r[i]=e[i]);return r}).apply(this,arguments)};import React from"react";import{ColorPicker}from"@chief-editor/ui";export function ColorPickerBrick(r){var e=r.styles,t=r.setValue,a=r.layout,i=r.value,o=r.creator;return React.createElement(ColorPicker,{"data-id":o,style:__assign(__assign({},a),e),onValueChange:t,value:i})}