1- import React , { CSSProperties , Fragment } from 'react' ;
1+ import React , { type CSSProperties , Fragment } from 'react' ;
22import {
3- HsvaColor ,
3+ type HsvaColor ,
44 hsvaToRgbaString ,
55 color as handleColor ,
66 validHex ,
77 hexToHsva ,
88 hsvaToHex ,
99 hsvaToHexa ,
1010} from '@uiw/color-convert' ;
11- import Github , { GithubProps , GithubPlacement } from '@uiw/react-color-github' ;
11+ import Github , { type GithubProps , GithubPlacement } from '@uiw/react-color-github' ;
1212import Saturation from '@uiw/react-color-saturation' ;
1313import Hue from '@uiw/react-color-hue' ;
1414import Alpha from '@uiw/react-color-alpha' ;
@@ -132,7 +132,7 @@ const Chrome = React.forwardRef<HTMLDivElement, ChromeProps>((props, ref) => {
132132 { showHue == true && (
133133 < Hue
134134 hue = { hsva . h }
135- style = { { width : '100%' , height : 12 } }
135+ style = { { width : '100%' , height : 12 , borderRadius : 2 } }
136136 pointerProps = { pointerProps }
137137 bgProps = { {
138138 style : { borderRadius : 2 } ,
@@ -145,7 +145,7 @@ const Chrome = React.forwardRef<HTMLDivElement, ChromeProps>((props, ref) => {
145145 { showAlpha == true && (
146146 < Alpha
147147 hsva = { hsva }
148- style = { { marginTop : 6 , height : 12 } }
148+ style = { { marginTop : 6 , height : 12 , borderRadius : 2 } }
149149 pointerProps = { pointerProps }
150150 bgProps = { {
151151 style : { borderRadius : 2 } ,
@@ -166,7 +166,7 @@ const Chrome = React.forwardRef<HTMLDivElement, ChromeProps>((props, ref) => {
166166 rProps = { { labelStyle, inputStyle } }
167167 gProps = { { labelStyle, inputStyle } }
168168 bProps = { { labelStyle, inputStyle } }
169- aProps = { { labelStyle, inputStyle } }
169+ aProps = { showAlpha == false ? false : { labelStyle, inputStyle } }
170170 onChange = { ( reColor ) => handleChange ( reColor . hsva ) }
171171 />
172172 ) }
@@ -189,7 +189,7 @@ const Chrome = React.forwardRef<HTMLDivElement, ChromeProps>((props, ref) => {
189189 hProps = { { labelStyle, inputStyle } }
190190 sProps = { { labelStyle, inputStyle } }
191191 lProps = { { labelStyle, inputStyle } }
192- aProps = { { labelStyle, inputStyle } }
192+ aProps = { showAlpha == false ? false : { labelStyle, inputStyle } }
193193 onChange = { ( reColor ) => handleChange ( reColor . hsva ) }
194194 />
195195 ) }
0 commit comments