Skip to content

Commit babeb04

Browse files
committed
added scopes
1 parent 50d3ea3 commit babeb04

File tree

1 file changed

+49
-4
lines changed

1 file changed

+49
-4
lines changed

packages/core/src/components/Dialog/__stories__/Dialog.stories.js

Lines changed: 49 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,14 @@ export const Positions = {
184184
);
185185
},
186186

187-
name: "Positions"
187+
name: "Positions",
188+
parameters: {
189+
docs: {
190+
liveEdit: {
191+
scope: { useSwitch, ExampleContent }
192+
}
193+
}
194+
}
188195
};
189196

190197
export const ShowTriggers = {
@@ -286,6 +293,11 @@ export const ShowTriggers = {
286293
parameters: {
287294
chromatic: {
288295
pauseAnimationAtEnd: true
296+
},
297+
docs: {
298+
liveEdit: {
299+
scope: { useSwitch, ExampleContent }
300+
}
289301
}
290302
}
291303
};
@@ -494,6 +506,18 @@ export const HideTriggers = {
494506
parameters: {
495507
chromatic: {
496508
pauseAnimationAtEnd: true
509+
},
510+
docs: {
511+
liveEdit: {
512+
scope: {
513+
useSwitch,
514+
ExampleContent,
515+
HIDE_TRIGGERS_CONTAINER,
516+
CLICK_OUTSIDE_DIALOG,
517+
CLICK_OUTSIDE_DIALOG_BUTTON,
518+
CONTEXT_MENU_DIALOG
519+
}
520+
}
497521
}
498522
}
499523
};
@@ -525,7 +549,14 @@ export const ControlledDialog = {
525549
);
526550
},
527551

528-
name: "Controlled Dialog"
552+
name: "Controlled Dialog",
553+
parameters: {
554+
docs: {
555+
liveEdit: {
556+
scope: { useSwitch }
557+
}
558+
}
559+
}
529560
};
530561

531562
export const DialogWithTooltip = {
@@ -561,7 +592,14 @@ export const DialogWithTooltip = {
561592
);
562593
},
563594

564-
name: "Dialog with tooltip"
595+
name: "Dialog with tooltip",
596+
parameters: {
597+
docs: {
598+
liveEdit: {
599+
scope: { ExampleContent, Info }
600+
}
601+
}
602+
}
565603
};
566604

567605
export const DisableScrollWhenDialogOpen = {
@@ -609,5 +647,12 @@ export const DisableScrollWhenDialogOpen = {
609647
);
610648
},
611649

612-
name: "Disable scroll when dialog open"
650+
name: "Disable scroll when dialog open",
651+
parameters: {
652+
docs: {
653+
liveEdit: {
654+
scope: { ExampleContent, useSwitch }
655+
}
656+
}
657+
}
613658
};

0 commit comments

Comments
 (0)