@@ -127,8 +127,8 @@ export default {
127
127
] ,
128
128
} ;
129
129
130
- const ChromaticDefaultMenu = ( args ) => {
131
- const defaultMenuData = [
130
+ const ChromaticMenuWithVariants = ( args ) => {
131
+ const menuData = [
132
132
{
133
133
stateTitle : "No selection" ,
134
134
args : { ...args , selectionMode : "none" } ,
@@ -146,7 +146,7 @@ const ChromaticDefaultMenu = (args) => {
146
146
args : { ...args , selectionMode : "multiple" } ,
147
147
} ,
148
148
] ;
149
- return defaultMenuData . map ( ( item ) => html `
149
+ return menuData . map ( ( item ) => html `
150
150
< div class ="spectrum-Typography ">
151
151
${ Typography ( {
152
152
semantics : "detail" ,
@@ -161,9 +161,9 @@ const ChromaticDefaultMenu = (args) => {
161
161
` ) ;
162
162
} ;
163
163
164
- export const Default = ( args ) => window . isChromatic ( ) ?
165
- ChromaticDefaultMenu ( args ) : Template ( args ) ;
166
- Default . args = {
164
+ export const MenuWithVariants = ( args ) => window . isChromatic ( ) ?
165
+ ChromaticMenuWithVariants ( args ) : Template ( args ) ;
166
+ MenuWithVariants . args = {
167
167
role : "listbox" ,
168
168
subrole : "option" ,
169
169
customStyles : { maxWidth : "400px" } ,
@@ -626,3 +626,18 @@ MenuItemOnly.argTypes = {
626
626
if : { arg : "hasItemDescription" , truthy : true } ,
627
627
} ,
628
628
} ;
629
+
630
+ export const Default = Template . bind ( { } ) ;
631
+ Default . storyName = "Standard with Dividers" ;
632
+ Default . args = {
633
+ items : [
634
+ { label : "Deselect" } ,
635
+ { label : "Select inverse" } ,
636
+ { label : "Feather" } ,
637
+ { label : "Select and mask" } ,
638
+ { type : "divider" } ,
639
+ { label : "Save selection" } ,
640
+ { label : "Make work path" , isDisabled : true } ,
641
+ ] ,
642
+ hasDividers : true ,
643
+ } ;
0 commit comments