react-color-palette
Advanced tools
Comparing version 7.0.3 to 7.0.4
"use client" | ||
"use strict";var R=Object.create;var E=Object.defineProperty;var z=Object.getOwnPropertyDescriptor;var O=Object.getOwnPropertyNames;var W=Object.getPrototypeOf,_=Object.prototype.hasOwnProperty;var X=(o,e)=>{for(var t in e)E(o,t,{get:e[t],enumerable:!0})},B=(o,e,t,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of O(e))!_.call(o,n)&&n!==t&&E(o,n,{get:()=>e[n],enumerable:!(r=z(e,n))||r.enumerable});return o};var I=(o,e,t)=>(t=o!=null?R(W(o)):{},B(e||!o||!o.__esModule?E(t,"default",{value:o,enumerable:!0}):t,o)),q=o=>B(E({},"__esModule",{value:!0}),o);var G={};X(G,{Alpha:()=>H,ColorPicker:()=>$,ColorService:()=>h,Hue:()=>P,Saturation:()=>S,useColor:()=>j});module.exports=q(G);var f=I(require("react"));var m=I(require("react"));var b=require("react");function C(){let o=(0,b.useRef)(null),[e,t]=(0,b.useState)(0),r=(0,b.useCallback)(()=>t(n=>n+1),[]);return(0,b.useLayoutEffect)(()=>{window.addEventListener("resize",r,!1);let n=new ResizeObserver(r);return o.current&&n.observe(o.current),()=>{window.removeEventListener("resize",r,!1),n.disconnect()}},[r]),(0,b.useMemo)(()=>{let n=o.current?.getBoundingClientRect()??{};return[o,n]},[e])}function y(o,e,t){return o<e?e:o>t?t:o}var T=class{convert(e,t){let r=this.toHex("#000000"),n=this.hex2rgb(r),i=this.rgb2hsv(n);if(e==="hex"){let a=t;r=this.toHex(a),n=this.hex2rgb(r),r.startsWith("rgba")&&(n=this.toRgb(r),r=this.rgb2hex(n)),i=this.rgb2hsv(n)}else e==="rgb"?(n=t,r=this.rgb2hex(n),i=this.rgb2hsv(n)):e==="hsv"&&(i=t,n=this.hsv2rgb(i),r=this.rgb2hex(n));return{hex:r,rgb:n,hsv:i}}toHex(e){if(e.startsWith("#")){if(e.length===4||e.length===5)return e=e.split("").map((t,r)=>r?r<4?t+t:t==="f"?void 0:t+t:"#").join(""),e;if(e.length===7)return e;if(e.length===9)return e.endsWith("ff")?e.slice(0,7):e}else{let t=document.createElement("canvas").getContext("2d");if(!t)throw new Error("2d context not supported or canvas already initialized");return t.fillStyle=e,t.fillStyle}return"#000000"}toRgb(e){let t=e.match(/\d+(\.\d+)?/gu)??[],[r,n,i,a]=Array.from({length:4}).map((s,l)=>y(+(t[l]??(l<3?0:1)),0,l<3?255:1));return{r,g:n,b:i,a}}toHsv(e){let t=e.match(/\d+(\.\d+)?/gu)??[],[r,n,i,a]=Array.from({length:4}).map((s,l)=>y(+(t[l]??(l<3?0:1)),0,l?l<3?100:1:360));return{h:r,s:n,v:i,a}}hex2rgb(e){e=e.slice(1);let[t,r,n,i]=Array.from({length:4}).map((a,s)=>parseInt(e.slice(s*2,s*2+2),16));return i=Number.isNaN(i)?1:i/255,{r:t,g:r,b:n,a:i}}rgb2hsv({r:e,g:t,b:r,a:n}){e/=255,t/=255,r/=255;let i=Math.max(e,t,r),a=i-Math.min(e,t,r),s=a?(i===e?(t-r)/a+(t<r?6:0):i===t?2+(r-e)/a:4+(e-t)/a)*60:0,l=i?a/i*100:0,u=i*100;return{h:s,s:l,v:u,a:n}}hsv2rgb({h:e,s:t,v:r,a:n}){t/=100,r/=100;let i=~~(e/60),a=e/60-i,s=r*(1-t),l=r*(1-t*a),u=r*(1-t*(1-a)),p=i%6,g=[r,l,s,s,u,r][p]*255,N=[u,r,r,l,s,s][p]*255,A=[s,s,u,r,r,l][p]*255;return{r:g,g:N,b:A,a:n}}rgb2hex({r:e,g:t,b:r,a:n}){let[i,a,s,l]=[e,t,r,n].map((u,p)=>Math.round(p<3?u:u*255).toString(16).padStart(2,"0"));return["#",i,a,s,l==="ff"?void 0:l].join("")}},h=new T;var x=I(require("react"));var M=(0,x.memo)(({onCoordinateChange:o,children:e})=>{let[t,{width:r=1,height:n=1,left:i=1,top:a=1}]=C(),s=(0,x.useCallback)(u=>{let p=y(u.clientX-i,0,r),g=y(u.clientY-a,0,n);o(p,g)},[r,n,i,a,o]),l=(0,x.useCallback)(u=>{if(u.button!==0)return;s(u);let p=N=>{s(N)},g=N=>{s(N),document.removeEventListener("pointermove",p,!1),document.removeEventListener("pointerup",g,!1)};document.addEventListener("pointermove",p,!1),document.addEventListener("pointerup",g,!1)},[s]);return x.default.createElement("div",{ref:t,className:"rcp-interactive",onPointerDown:l},e)});var H=(0,m.memo)(({color:o,onChange:e})=>{let[t,{width:r=1}]=C(),n=(0,m.useMemo)(()=>({x:o.hsv.a*r}),[o.hsv.a,r]),i=(0,m.useCallback)(l=>{let u=h.convert("hsv",{...o.hsv,a:l/r});e(u)},[r,o.hsv,e]),a=(0,m.useMemo)(()=>[o.rgb.r,o.rgb.g,o.rgb.b].join(" "),[o.rgb.r,o.rgb.g,o.rgb.b]),s=(0,m.useMemo)(()=>[a,o.rgb.a].join(" / "),[a,o.rgb.a]);return m.default.createElement(M,{onCoordinateChange:i},m.default.createElement("div",{ref:t,style:{background:`linear-gradient(to right, rgb(${a} / 0), rgb(${a} / 1)) top left / auto auto, | ||
"use strict";var A=Object.create;var P=Object.defineProperty;var R=Object.getOwnPropertyDescriptor;var O=Object.getOwnPropertyNames;var W=Object.getPrototypeOf,_=Object.prototype.hasOwnProperty;var X=(t,e)=>{for(var o in e)P(t,o,{get:e[o],enumerable:!0})},F=(t,e,o,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of O(e))!_.call(t,n)&&n!==o&&P(t,n,{get:()=>e[n],enumerable:!(r=R(e,n))||r.enumerable});return t};var I=(t,e,o)=>(o=t!=null?A(W(t)):{},F(e||!t||!t.__esModule?P(o,"default",{value:t,enumerable:!0}):o,t)),q=t=>F(P({},"__esModule",{value:!0}),t);var G={};X(G,{Alpha:()=>N,ColorPicker:()=>$,ColorService:()=>h,Hue:()=>E,Saturation:()=>H,useColor:()=>j});module.exports=q(G);var f=I(require("react"));var m=I(require("react"));var b=require("react");function C(){let t=(0,b.useRef)(null),[e,o]=(0,b.useState)(0),r=(0,b.useCallback)(()=>o(a=>a+1),[]);(0,b.useLayoutEffect)(()=>{window.addEventListener("resize",r,!1);let a=new ResizeObserver(r);return t.current&&a.observe(t.current),()=>{window.removeEventListener("resize",r,!1),a.disconnect()}},[r]);let n=(0,b.useMemo)(()=>{let{width:a=1,height:s=1}=t.current?.getBoundingClientRect()??{};return{width:a,height:s}},[e]),i=(0,b.useCallback)(()=>{let{left:a=1,right:s=1,top:l=1,bottom:u=1}=t.current?.getBoundingClientRect()??{};return{left:a,right:s,top:l,bottom:u}},[]);return[t,n,i]}function y(t,e,o){return t<e?e:t>o?o:t}var T=class{convert(e,o){let r=this.toHex("#000000"),n=this.hex2rgb(r),i=this.rgb2hsv(n);if(e==="hex"){let a=o;r=this.toHex(a),n=this.hex2rgb(r),r.startsWith("rgba")&&(n=this.toRgb(r),r=this.rgb2hex(n)),i=this.rgb2hsv(n)}else e==="rgb"?(n=o,r=this.rgb2hex(n),i=this.rgb2hsv(n)):e==="hsv"&&(i=o,n=this.hsv2rgb(i),r=this.rgb2hex(n));return{hex:r,rgb:n,hsv:i}}toHex(e){if(e.startsWith("#")){if(e.length===4||e.length===5)return e=e.split("").map((o,r)=>r?r<4?o+o:o==="f"?void 0:o+o:"#").join(""),e;if(e.length===7)return e;if(e.length===9)return e.endsWith("ff")?e.slice(0,7):e}else{let o=document.createElement("canvas").getContext("2d");if(!o)throw new Error("2d context not supported or canvas already initialized");return o.fillStyle=e,o.fillStyle}return"#000000"}toRgb(e){let o=e.match(/\d+(\.\d+)?/gu)??[],[r,n,i,a]=Array.from({length:4}).map((s,l)=>y(+(o[l]??(l<3?0:1)),0,l<3?255:1));return{r,g:n,b:i,a}}toHsv(e){let o=e.match(/\d+(\.\d+)?/gu)??[],[r,n,i,a]=Array.from({length:4}).map((s,l)=>y(+(o[l]??(l<3?0:1)),0,l?l<3?100:1:360));return{h:r,s:n,v:i,a}}hex2rgb(e){e=e.slice(1);let[o,r,n,i]=Array.from({length:4}).map((a,s)=>parseInt(e.slice(s*2,s*2+2),16));return i=Number.isNaN(i)?1:i/255,{r:o,g:r,b:n,a:i}}rgb2hsv({r:e,g:o,b:r,a:n}){e/=255,o/=255,r/=255;let i=Math.max(e,o,r),a=i-Math.min(e,o,r),s=a?(i===e?(o-r)/a+(o<r?6:0):i===o?2+(r-e)/a:4+(e-o)/a)*60:0,l=i?a/i*100:0,u=i*100;return{h:s,s:l,v:u,a:n}}hsv2rgb({h:e,s:o,v:r,a:n}){o/=100,r/=100;let i=~~(e/60),a=e/60-i,s=r*(1-o),l=r*(1-o*a),u=r*(1-o*(1-a)),p=i%6,g=[r,l,s,s,u,r][p]*255,k=[u,r,r,l,s,s][p]*255,z=[s,s,u,r,r,l][p]*255;return{r:g,g:k,b:z,a:n}}rgb2hex({r:e,g:o,b:r,a:n}){let[i,a,s,l]=[e,o,r,n].map((u,p)=>Math.round(p<3?u:u*255).toString(16).padStart(2,"0"));return["#",i,a,s,l==="ff"?void 0:l].join("")}},h=new T;var x=I(require("react"));var M=(0,x.memo)(({onCoordinateChange:t,children:e})=>{let[o,{width:r,height:n},i]=C(),a=(0,x.useCallback)(l=>{let{left:u,top:p}=i(),g=y(l.clientX-u,0,r),k=y(l.clientY-p,0,n);t(g,k)},[r,n,i,t]),s=(0,x.useCallback)(l=>{if(l.button!==0)return;a(l);let u=g=>{a(g)},p=g=>{a(g),document.removeEventListener("pointermove",u,!1),document.removeEventListener("pointerup",p,!1)};document.addEventListener("pointermove",u,!1),document.addEventListener("pointerup",p,!1)},[a]);return x.default.createElement("div",{ref:o,className:"rcp-interactive",onPointerDown:s},e)});var N=(0,m.memo)(({color:t,onChange:e})=>{let[o,{width:r}]=C(),n=(0,m.useMemo)(()=>({x:t.hsv.a*r}),[t.hsv.a,r]),i=(0,m.useCallback)(l=>{let u=h.convert("hsv",{...t.hsv,a:l/r});e(u)},[t.hsv,r,e]),a=(0,m.useMemo)(()=>[t.rgb.r,t.rgb.g,t.rgb.b].join(" "),[t.rgb.r,t.rgb.g,t.rgb.b]),s=(0,m.useMemo)(()=>[a,t.rgb.a].join(" / "),[a,t.rgb.a]);return m.default.createElement(M,{onCoordinateChange:i},m.default.createElement("div",{ref:o,style:{background:`linear-gradient(to right, rgb(${a} / 0), rgb(${a} / 1)) top left / auto auto, | ||
conic-gradient(#666 0.25turn, #999 0.25turn 0.5turn, #666 0.5turn 0.75turn, #999 0.75turn) top left / 12px 12px | ||
repeat`},className:"rcp-alpha"},m.default.createElement("div",{style:{left:n.x,background:`linear-gradient(to right, rgb(${s}), rgb(${s})) top left / auto auto, | ||
conic-gradient(#666 0.25turn, #999 0.25turn 0.5turn, #666 0.5turn 0.75turn, #999 0.75turn) ${-n.x-4}px 2px / 12px 12px | ||
repeat`},className:"rcp-alpha-cursor"})))});var c=I(require("react"));function L(o,e){return Math.round(o*10**e)/10**e}function w({r:o,g:e,b:t,a:r}){let n=[Math.round(o),Math.round(e),Math.round(t)],i=L(r,3);return i<1&&n.push(i),n.join(", ")}function F({h:o,s:e,v:t,a:r}){let n=[`${Math.round(o)}\xB0`,`${Math.round(e)}%`,`${Math.round(t)}%`],i=L(r,3);return i<1&&n.push(i),n.join(", ")}var D=(0,c.memo)(({color:o,onChange:e})=>{let[t,r]=(0,c.useState)({hex:{value:o.hex,inputted:!1},rgb:{value:w(o.rgb),inputted:!1},hsv:{value:F(o.hsv),inputted:!1}});(0,c.useEffect)(()=>{t.hex.inputted||r(s=>({...s,hex:{...s.hex,value:o.hex}}))},[t.hex.inputted,o.hex]),(0,c.useEffect)(()=>{t.rgb.inputted||r(s=>({...s,rgb:{...s.rgb,value:w(o.rgb)}}))},[t.rgb.inputted,o.rgb]),(0,c.useEffect)(()=>{t.hsv.inputted||r(s=>({...s,hsv:{...s.hsv,value:F(o.hsv)}}))},[t.hsv.inputted,o.hsv]);let n=(0,c.useCallback)(s=>l=>{let{value:u}=l.target;r(p=>({...p,[s]:{...p[s],value:u}})),e(s==="hsv"?h.convert("hsv",h.toHsv(u)):s==="rgb"?h.convert("rgb",h.toRgb(u)):h.convert("hex",u))},[e]),i=(0,c.useCallback)(s=>()=>{r(l=>({...l,[s]:{...l[s],inputted:!0}}))},[]),a=(0,c.useCallback)(s=>()=>{r(l=>({...l,[s]:{...l[s],inputted:!1}}))},[]);return c.default.createElement("div",{className:"rcp-fields"},c.default.createElement("div",{className:"rcp-fields-floor"},c.default.createElement("div",{className:"rcp-field"},c.default.createElement("input",{id:"hex",className:"rcp-field-input",value:t.hex.value,onChange:n("hex"),onFocus:i("hex"),onBlur:a("hex")}),c.default.createElement("label",{htmlFor:"hex",className:"rcp-field-label"},"HEX"))),c.default.createElement("div",{className:"rcp-fields-floor"},c.default.createElement("div",{className:"rcp-field"},c.default.createElement("input",{id:"rgb",className:"rcp-field-input",value:t.rgb.value,onChange:n("rgb"),onFocus:i("rgb"),onBlur:a("rgb")}),c.default.createElement("label",{htmlFor:"rgb",className:"rcp-field-label"},"RGB")),c.default.createElement("div",{className:"rcp-field"},c.default.createElement("input",{id:"hsv",className:"rcp-field-input",value:t.hsv.value,onChange:n("hsv"),onFocus:i("hsv"),onBlur:a("hsv")}),c.default.createElement("label",{htmlFor:"hsv",className:"rcp-field-label"},"HSV"))))});var v=I(require("react"));var P=(0,v.memo)(({color:o,onChange:e})=>{let[t,{width:r=1}]=C(),n=(0,v.useMemo)(()=>({x:o.hsv.h/360*r}),[o.hsv.h,r]),i=(0,v.useCallback)(s=>{let l=h.convert("hsv",{...o.hsv,h:s/r*360});e(l)},[r,o.hsv,e]),a=(0,v.useMemo)(()=>[o.hsv.h,"100%","50%"].join(" "),[o.hsv.h]);return v.default.createElement(M,{onCoordinateChange:i},v.default.createElement("div",{ref:t,className:"rcp-hue"},v.default.createElement("div",{style:{left:n.x,backgroundColor:`hsl(${a})`},className:"rcp-hue-cursor"})))});var d=I(require("react"));var S=(0,d.memo)(({height:o,color:e,onChange:t})=>{let[r,{width:n=1}]=C(),i=(0,d.useMemo)(()=>{let u=e.hsv.s/100*n,p=(100-e.hsv.v)/100*o;return{x:u,y:p}},[e.hsv.s,e.hsv.v,n,o]),a=(0,d.useCallback)((u,p)=>{let g=h.convert("hsv",{...e.hsv,s:u/n*100,v:100-p/o*100});t(g)},[e.hsv,n,o,t]),s=(0,d.useMemo)(()=>[e.hsv.h,"100%","50%"].join(" "),[e.hsv.h]),l=(0,d.useMemo)(()=>[e.rgb.r,e.rgb.g,e.rgb.b].join(" "),[e.rgb.r,e.rgb.g,e.rgb.b]);return d.default.createElement(M,{onCoordinateChange:a},d.default.createElement("div",{ref:r,style:{height:o,backgroundColor:`hsl(${s})`},className:"rcp-saturation"},d.default.createElement("div",{style:{left:i.x,top:i.y,backgroundColor:`rgb(${l})`},className:"rcp-saturation-cursor"})))});var $=(0,f.memo)(({height:o=200,hideAlpha:e=!1,hideInput:t=!1,color:r,onChange:n})=>f.default.createElement("div",{className:"rcp-root rcp"},f.default.createElement(S,{height:o,color:r,onChange:n}),f.default.createElement("div",{className:"rcp-body"},f.default.createElement("section",{className:"rcp-section"},f.default.createElement(P,{color:r,onChange:n}),!e&&f.default.createElement(H,{color:r,onChange:n})),!t&&f.default.createElement("section",{className:"rcp-section"},f.default.createElement(D,{color:r,onChange:n})))));var k=require("react");function j(o){let[e,t]=(0,k.useState)(h.convert("hex",o));return(0,k.useEffect)(()=>{t(h.convert("hex",o))},[o]),[e,t]}0&&(module.exports={Alpha,ColorPicker,ColorService,Hue,Saturation,useColor}); | ||
repeat`},className:"rcp-alpha-cursor"})))});var c=I(require("react"));function w(t,e){return Math.round(t*10**e)/10**e}function L({r:t,g:e,b:o,a:r}){let n=[Math.round(t),Math.round(e),Math.round(o)],i=w(r,3);return i<1&&n.push(i),n.join(", ")}function B({h:t,s:e,v:o,a:r}){let n=[`${Math.round(t)}\xB0`,`${Math.round(e)}%`,`${Math.round(o)}%`],i=w(r,3);return i<1&&n.push(i),n.join(", ")}var D=(0,c.memo)(({color:t,onChange:e})=>{let[o,r]=(0,c.useState)({hex:{value:t.hex,inputted:!1},rgb:{value:L(t.rgb),inputted:!1},hsv:{value:B(t.hsv),inputted:!1}});(0,c.useEffect)(()=>{o.hex.inputted||r(s=>({...s,hex:{...s.hex,value:t.hex}}))},[o.hex.inputted,t.hex]),(0,c.useEffect)(()=>{o.rgb.inputted||r(s=>({...s,rgb:{...s.rgb,value:L(t.rgb)}}))},[o.rgb.inputted,t.rgb]),(0,c.useEffect)(()=>{o.hsv.inputted||r(s=>({...s,hsv:{...s.hsv,value:B(t.hsv)}}))},[o.hsv.inputted,t.hsv]);let n=(0,c.useCallback)(s=>l=>{let{value:u}=l.target;r(p=>({...p,[s]:{...p[s],value:u}})),e(s==="hsv"?h.convert("hsv",h.toHsv(u)):s==="rgb"?h.convert("rgb",h.toRgb(u)):h.convert("hex",u))},[e]),i=(0,c.useCallback)(s=>()=>{r(l=>({...l,[s]:{...l[s],inputted:!0}}))},[]),a=(0,c.useCallback)(s=>()=>{r(l=>({...l,[s]:{...l[s],inputted:!1}}))},[]);return c.default.createElement("div",{className:"rcp-fields"},c.default.createElement("div",{className:"rcp-fields-floor"},c.default.createElement("div",{className:"rcp-field"},c.default.createElement("input",{id:"hex",className:"rcp-field-input",value:o.hex.value,onChange:n("hex"),onFocus:i("hex"),onBlur:a("hex")}),c.default.createElement("label",{htmlFor:"hex",className:"rcp-field-label"},"HEX"))),c.default.createElement("div",{className:"rcp-fields-floor"},c.default.createElement("div",{className:"rcp-field"},c.default.createElement("input",{id:"rgb",className:"rcp-field-input",value:o.rgb.value,onChange:n("rgb"),onFocus:i("rgb"),onBlur:a("rgb")}),c.default.createElement("label",{htmlFor:"rgb",className:"rcp-field-label"},"RGB")),c.default.createElement("div",{className:"rcp-field"},c.default.createElement("input",{id:"hsv",className:"rcp-field-input",value:o.hsv.value,onChange:n("hsv"),onFocus:i("hsv"),onBlur:a("hsv")}),c.default.createElement("label",{htmlFor:"hsv",className:"rcp-field-label"},"HSV"))))});var v=I(require("react"));var E=(0,v.memo)(({color:t,onChange:e})=>{let[o,{width:r}]=C(),n=(0,v.useMemo)(()=>({x:t.hsv.h/360*r}),[t.hsv.h,r]),i=(0,v.useCallback)(s=>{let l=h.convert("hsv",{...t.hsv,h:s/r*360});e(l)},[t.hsv,r,e]),a=(0,v.useMemo)(()=>[t.hsv.h,"100%","50%"].join(" "),[t.hsv.h]);return v.default.createElement(M,{onCoordinateChange:i},v.default.createElement("div",{ref:o,className:"rcp-hue"},v.default.createElement("div",{style:{left:n.x,backgroundColor:`hsl(${a})`},className:"rcp-hue-cursor"})))});var d=I(require("react"));var H=(0,d.memo)(({height:t,color:e,onChange:o})=>{let[r,{width:n}]=C(),i=(0,d.useMemo)(()=>{let u=e.hsv.s/100*n,p=(100-e.hsv.v)/100*t;return{x:u,y:p}},[e.hsv.s,e.hsv.v,n,t]),a=(0,d.useCallback)((u,p)=>{let g=h.convert("hsv",{...e.hsv,s:u/n*100,v:100-p/t*100});o(g)},[e.hsv,n,t,o]),s=(0,d.useMemo)(()=>[e.hsv.h,"100%","50%"].join(" "),[e.hsv.h]),l=(0,d.useMemo)(()=>[e.rgb.r,e.rgb.g,e.rgb.b].join(" "),[e.rgb.r,e.rgb.g,e.rgb.b]);return d.default.createElement(M,{onCoordinateChange:a},d.default.createElement("div",{ref:r,style:{height:t,backgroundColor:`hsl(${s})`},className:"rcp-saturation"},d.default.createElement("div",{style:{left:i.x,top:i.y,backgroundColor:`rgb(${l})`},className:"rcp-saturation-cursor"})))});var $=(0,f.memo)(({height:t=200,hideAlpha:e=!1,hideInput:o=!1,color:r,onChange:n})=>f.default.createElement("div",{className:"rcp-root rcp"},f.default.createElement(H,{height:t,color:r,onChange:n}),f.default.createElement("div",{className:"rcp-body"},f.default.createElement("section",{className:"rcp-section"},f.default.createElement(E,{color:r,onChange:n}),!e&&f.default.createElement(N,{color:r,onChange:n})),!o&&f.default.createElement("section",{className:"rcp-section"},f.default.createElement(D,{color:r,onChange:n})))));var S=require("react");function j(t){let[e,o]=(0,S.useState)(h.convert("hex",t));return(0,S.useEffect)(()=>{o(h.convert("hex",t))},[t]),[e,o]}0&&(module.exports={Alpha,ColorPicker,ColorService,Hue,Saturation,useColor}); |
{ | ||
"name": "react-color-palette", | ||
"version": "7.0.3", | ||
"version": "7.0.4", | ||
"description": "🎨 Lightweight Color Picker component for React.", | ||
@@ -5,0 +5,0 @@ "author": "Wondermarin", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
31526
135