@@ -18,11 +18,6 @@ export const Template = ({
18
18
swatchColor,
19
19
customStyles = { } ,
20
20
id,
21
- isImage = false ,
22
- imageUrl,
23
- isGradient = false ,
24
- isMixedValue = false ,
25
- gradient,
26
21
} = { } , context = { } ) => {
27
22
const { updateArgs } = context ;
28
23
@@ -37,18 +32,13 @@ export const Template = ({
37
32
) } `] : typeof rounding !== "undefined" && rounding !== "regular" ,
38
33
"is-selected" : ! isDisabled && isSelected ,
39
34
"is-disabled" : isDisabled ,
40
- "is-image" : ( isImage || isGradient )
41
- && ( typeof gradient !== "undefined" || gradient !== "transparent" || imageUrl !== "undefined" ) ,
42
- "is-mixedValue" : ! isDisabled && isMixedValue ,
43
35
"is-nothing" : ! isDisabled && ( typeof swatchColor === "undefined" || swatchColor === "transparent" ) ,
44
36
...customClasses . reduce ( ( a , c ) => ( { ...a , [ c ] : true } ) , { } ) ,
45
37
} ) }
46
38
?disabled =${ isDisabled }
47
39
id=${ ifDefined ( id ) }
48
40
style=${ ifDefined ( styleMap ( {
49
41
"--spectrum-picked-color" : swatchColor ,
50
- "--spectrum-gradient" : gradient ,
51
- "--spectrum-background" : `url(${ imageUrl } )` ,
52
42
...customStyles ,
53
43
} ) ) }
54
44
tabindex="0"
@@ -71,11 +61,6 @@ export const Template = ({
71
61
setName : "workflow" ,
72
62
iconName : "Cancel" ,
73
63
} , context ) ] : [ ] ) ,
74
- ...( isMixedValue ? [ Icon ( {
75
- customClasses : [ `${ rootClass } -mixedValueIcon` ] ,
76
- setName : "ui" ,
77
- iconName : "Dash" ,
78
- } , context ) ] : [ ] ) ,
79
64
]
80
65
} , context ) }
81
66
</ div >
0 commit comments