@chief-editor/brick-control
Version:
Control Brick for chief editor
1 lines • 633 B
JavaScript
var __assign=this&&this.__assign||function(){return(__assign=Object.assign||function(t){for(var e,a=1,r=arguments.length;a<r;a++)for(var i in e=arguments[a])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};import React from"react";import{Slider}from"@chief-editor/ui";export function SliderBrick(t){var e=t.config.props,a=e.disabled,r=e.readonly,i=e.withInput,n=e.step,s=e.min,o=e.max,l=t.styles,c=t.setValue,p=t.layout,u=t.value,d=t.creator;return React.createElement(Slider,{"data-id":d,style:__assign(__assign({},p),l),disabled:a||r,onValueChange:c,value:u,withInput:i,step:n,min:s,max:o})}