@@ -17,6 +17,25 @@ import '@umbraco-ui/uui-popover-container/lib';
1717const formats = [ 'hex' , 'rgb' , 'hsl' , 'hsv' ] ;
1818const sizes = [ 'small' , 'medium' , 'large' ] ;
1919
20+ const swatchesTransparent = [
21+ 'rgba(208, 2, 27, 0.5)' ,
22+ 'rgba(245, 166, 35, 0.5)' ,
23+ 'rgba(248, 231, 28, 0.5)' ,
24+ 'rgba(139, 87, 42, 0.5)' ,
25+ 'rgba(126, 211, 33, 0.5)' ,
26+ 'rgba(65, 117, 5, 0.5)' ,
27+ 'rgba(189, 16, 224, 0.5)' ,
28+ 'rgba(144, 19, 254, 0.5)' ,
29+ 'rgba(74, 144, 226, 0.5)' ,
30+ 'rgba(80, 227, 194, 0.5)' ,
31+ 'rgba(184, 233, 134, 0.5)' ,
32+ 'rgba(0, 0, 0, 0.5)' ,
33+ 'rgba(68, 68, 68, 0.5)' ,
34+ 'rgba(136, 136, 136, 0.5)' ,
35+ 'rgba(204, 204, 204, 0.5)' ,
36+ 'rgba(255, 255, 255, 0.5)' ,
37+ ] ;
38+
2039const meta : Meta = {
2140 id : 'uui-color-picker' ,
2241 component : 'uui-color-picker' ,
@@ -89,3 +108,10 @@ export const NoSwatches: Story = {
89108 swatches : [ ] ,
90109 } ,
91110} ;
111+
112+ export const TransparentSwatches : Story = {
113+ args : {
114+ opacity : true ,
115+ swatches : swatchesTransparent ,
116+ } ,
117+ } ;
0 commit comments