ant-design/bf5fe7fe-async.5727671b.js
2024-11-20 18:30:54 +00:00

1 line
1.4 KiB
JavaScript

(("undefined"!=typeof globalThis?globalThis:self).makoChunk_antd=("undefined"!=typeof globalThis?globalThis:self).makoChunk_antd||[]).push([["bf5fe7fe"],{bf5fe7fe:function(e,t,a){"use strict";a.d(t,"__esModule",{value:!0}),a.d(t,"default",{enumerable:!0,get:function(){return d;}});var s=a("852bbaa9"),n=a("f19d2b93");a("ce900e2c");var l=s._(a("5b220c3d")),o=a("a9d1a279");let r=()=>{let[e,t]=(0,l.useState)("#1677ff"),[a,s]=(0,l.useState)("hex"),r=l.default.useMemo(()=>"string"==typeof e?e:null==e?void 0:e.toHexString(),[e]);return(0,n.jsxs)(o.Space,{children:[(0,n.jsx)(o.ColorPicker,{format:a,value:e,onChange:t,onFormatChange:s}),(0,n.jsxs)("span",{children:["HEX: ",r]})]});},i=()=>{let[e,t]=(0,l.useState)("hsb(215, 91%, 100%)"),[a,s]=(0,l.useState)("hsb"),r=l.default.useMemo(()=>"string"==typeof e?e:null==e?void 0:e.toHsbString(),[e]);return(0,n.jsxs)(o.Space,{children:[(0,n.jsx)(o.ColorPicker,{format:a,value:e,onChange:t,onFormatChange:s}),(0,n.jsxs)("span",{children:["HSB: ",r]})]});},u=()=>{let[e,t]=(0,l.useState)("rgb(22, 119, 255)"),[a,s]=(0,l.useState)("rgb"),r=l.default.useMemo(()=>"string"==typeof e?e:null==e?void 0:e.toRgbString(),[e]);return(0,n.jsxs)(o.Space,{children:[(0,n.jsx)(o.ColorPicker,{format:a,value:e,onChange:t,onFormatChange:s}),(0,n.jsxs)("span",{children:["RGB: ",r]})]});};var d=()=>(0,n.jsxs)(o.Space,{direction:"vertical",size:"middle",style:{display:"flex"},children:[(0,n.jsx)(r,{}),(0,n.jsx)(i,{}),(0,n.jsx)(u,{})]});}}]);