File tree Expand file tree Collapse file tree 3 files changed +19
-3
lines changed Expand file tree Collapse file tree 3 files changed +19
-3
lines changed Original file line number Diff line number Diff line change 11{
22 "name" : " shadcn-theme-editor" ,
3- "version" : " 1.3.2 " ,
3+ "version" : " 1.3.3 " ,
44 "description" : " Shadcn Theme Editor" ,
55 "main" : " dist/index.js" ,
66 "module" : " dist/index.mjs" ,
Original file line number Diff line number Diff line change 11"use client" ;
22import { useState } from "react" ;
33import { Sidebar } from "./sidebar" ;
4- import { IoColorPalette } from "react-icons/io5" ;
54import clsx from "clsx" ;
5+ import ColorPalette from "./icons" ;
66
77function EditorOpenBtn ( ) {
88 const [ isOpen , setIsOpen ] = useState ( false ) ;
@@ -12,7 +12,7 @@ function EditorOpenBtn() {
1212 onClick = { ( ) => setIsOpen ( ! isOpen ) }
1313 className = { clsx ( "rounded-full p-3 fixed border shadow-md drop-shadow-sm bottom-2 right-2 z-[35]" , isOpen ?"bg-primary text-primary-foreground" :"text-primary bg-primary-foreground opacity-50 hover:opacity-100" ) }
1414 >
15- < IoColorPalette size = { 24 } />
15+ < ColorPalette size = { 24 } />
1616 </ button >
1717 < Sidebar state = { { isOpen, setIsOpen} } />
1818 </ div >
Original file line number Diff line number Diff line change @@ -100,3 +100,19 @@ export const X = (props: SVGProps<SVGSVGElement>) => (
100100 < path d = "m6 6 12 12" />
101101 </ svg >
102102) ;
103+
104+ const ColorPalette = ( { size, ...props } : SVGProps < SVGSVGElement > & { size : number } ) => (
105+ < svg
106+ stroke = "currentColor"
107+ fill = "currentColor"
108+ strokeWidth = { 0 }
109+ viewBox = "0 0 512 512"
110+ width = { size }
111+ height = { size }
112+ xmlns = "http://www.w3.org/2000/svg"
113+ { ...props }
114+ >
115+ < path d = "M416 352c-12.6-.84-21-4-28-12-14-16-14-36 5.49-52.48l32.82-29.14c50.27-44.41 50.27-117.21 0-161.63C389.26 64.14 339.54 48 287.86 48c-60.34 0-123.39 22-172 65.11-90.46 80-90.46 210.92 0 290.87 45 39.76 105.63 59.59 165.64 60h1.84c60 0 119.07-19.5 161.2-56.77C464 390 464 385 444.62 355.56 440 348 431 353 416 352zM112 208a32 32 0 1 1 32 32 32 32 0 0 1-32-32zm40 135a32 32 0 1 1 32-32 32 32 0 0 1-32 32zm40-199a32 32 0 1 1 32 32 32 32 0 0 1-32-32zm64 271a48 48 0 1 1 48-48 48 48 0 0 1-48 48zm72-239a32 32 0 1 1 32-32 32 32 0 0 1-32 32z" />
116+ </ svg >
117+ ) ;
118+ export default ColorPalette ;
You can’t perform that action at this time.
0 commit comments