@@ -25,25 +25,25 @@ Default.args = {
2525export const NoPalettePresets = Template . bind ( { } ) ;
2626NoPalettePresets . args = {
2727 ...Default . args ,
28- colorWeightFilter : [ ] ,
29- paletteGroupFilter : [ ] ,
28+ includeColorWeight : [ ] ,
29+ includePaletteGroup : [ ] ,
3030 allowCustomColor : true ,
3131} ;
3232
3333interface TemplateColorHashProps
34- extends Pick < ColorFieldProps , "onChange" | "allowCustomColor" | "colorWeightFilter " | "paletteGroupFilter " > {
34+ extends Pick < ColorFieldProps , "onChange" | "allowCustomColor" | "includeColorWeight " | "includePaletteGroup " > {
3535 stringForColorHashValue : string ;
3636}
3737
3838const TemplateColorHash : StoryFn < TemplateColorHashProps > = ( args : TemplateColorHashProps ) => (
3939 < ColorField
4040 allowCustomColor = { args . allowCustomColor }
41- colorWeightFilter = { args . colorWeightFilter }
42- paletteGroupFilter = { args . paletteGroupFilter }
41+ includeColorWeight = { args . includeColorWeight }
42+ includePaletteGroup = { args . includePaletteGroup }
4343 value = { ColorField . calculateColorHashValue ( args . stringForColorHashValue , {
4444 allowCustomColor : args . allowCustomColor ,
45- colorWeightFilter : args . colorWeightFilter ,
46- paletteGroupFilter : args . paletteGroupFilter ,
45+ includeColorWeight : args . includeColorWeight ,
46+ includePaletteGroup : args . includePaletteGroup ,
4747 } ) }
4848 />
4949) ;
@@ -63,7 +63,7 @@ export const ColorHashValue = TemplateColorHash.bind({});
6363ColorHashValue . args = {
6464 ...Default . args ,
6565 allowCustomColor : true ,
66- colorWeightFilter : [ 300 , 500 , 700 ] ,
67- paletteGroupFilter : [ "layout" , "extra" ] ,
66+ includeColorWeight : [ 300 , 500 , 700 ] ,
67+ includePaletteGroup : [ "layout" , "extra" ] ,
6868 stringForColorHashValue : "My text that will used to create a color hash as initial value." ,
6969} ;
0 commit comments