@@ -18,8 +18,8 @@ import React, { useState } from 'react'
1818import { Section , Variant } from '../shared.js'
1919
2020const DIALOG_SLUG_BASIC = 'demo-dialog-basic'
21+ const DIALOG_SLUG_MEDIUM = 'demo-dialog-medium'
2122const DIALOG_SLUG_NO_HEADER = 'demo-dialog-no-header'
22- const DIALOG_SLUG_HEADER_EXTRAS = 'demo-dialog-header-extras'
2323const DIALOG_SLUG_CONFIRM = 'demo-dialog-confirm'
2424const DIALOG_SLUG_CONFIRM_LOADING = 'demo-dialog-confirm-loading'
2525
@@ -30,14 +30,14 @@ export const DialogSection: React.FC<{ selectedComponent: string }> = ({ selecte
3030
3131 return (
3232 < Section id = "dialog" selectedComponent = { selectedComponent } title = "Dialog" >
33- < Variant label = "Basic (medium )" >
33+ < Variant label = "Small (size default )" >
3434 < Button buttonStyle = "secondary" onClick = { ( ) => openModal ( DIALOG_SLUG_BASIC ) } >
3535 Open Dialog
3636 </ Button >
37- < DialogModal size = "medium" slug = { DIALOG_SLUG_BASIC } >
38- < DialogHeader showClose title = "Dialog Title " />
37+ < DialogModal slug = { DIALOG_SLUG_BASIC } >
38+ < DialogHeader showClose title = "Small Dialog " />
3939 < DialogBody >
40- < p > This is the dialog body. Put any content here .</ p >
40+ < p > This dialog uses the default small size (320px) .</ p >
4141 </ DialogBody >
4242 < DialogFooter >
4343 < DialogCancel label = "Cancel" />
@@ -46,40 +46,36 @@ export const DialogSection: React.FC<{ selectedComponent: string }> = ({ selecte
4646 </ DialogModal >
4747 </ Variant >
4848
49- < Variant label = "No Header " >
50- < Button buttonStyle = "secondary" onClick = { ( ) => openModal ( DIALOG_SLUG_NO_HEADER ) } >
49+ < Variant label = "Medium " >
50+ < Button buttonStyle = "secondary" onClick = { ( ) => openModal ( DIALOG_SLUG_MEDIUM ) } >
5151 Open Dialog
5252 </ Button >
53- < DialogModal size = "medium" slug = { DIALOG_SLUG_NO_HEADER } >
53+ < DialogModal size = "medium" slug = { DIALOG_SLUG_MEDIUM } >
54+ < DialogHeader showClose title = "Medium Dialog" />
5455 < DialogBody >
55- < p >
56- This dialog has no header. Omit < code > DialogHeader</ code > when no title or close
57- button is needed.
58- </ p >
56+ < p > This dialog uses the medium size (480px).</ p >
5957 </ DialogBody >
6058 < DialogFooter >
6159 < DialogCancel label = "Cancel" />
62- < DialogConfirm label = "OK " onClick = { async ( ) => { } } />
60+ < DialogConfirm label = "Confirm " onClick = { async ( ) => { } } />
6361 </ DialogFooter >
6462 </ DialogModal >
6563 </ Variant >
6664
67- < Variant label = "Header Extras Slot " >
68- < Button buttonStyle = "secondary" onClick = { ( ) => openModal ( DIALOG_SLUG_HEADER_EXTRAS ) } >
65+ < Variant label = "No Header " >
66+ < Button buttonStyle = "secondary" onClick = { ( ) => openModal ( DIALOG_SLUG_NO_HEADER ) } >
6967 Open Dialog
7068 </ Button >
71- < DialogModal size = "medium" slug = { DIALOG_SLUG_HEADER_EXTRAS } >
72- < DialogHeader showClose title = "With Header Extras" >
73- < Button buttonStyle = "pill" > Extra Action</ Button >
74- </ DialogHeader >
69+ < DialogModal size = "medium" slug = { DIALOG_SLUG_NO_HEADER } >
7570 < DialogBody >
7671 < p >
77- The < code > DialogHeader</ code > children slot renders beside the title, before the close
78- button.
72+ This dialog has no header. Omit < code > DialogHeader</ code > when no title or close
73+ button is needed .
7974 </ p >
8075 </ DialogBody >
8176 < DialogFooter >
82- < DialogConfirm label = "Done" onClick = { async ( ) => { } } />
77+ < DialogCancel label = "Cancel" />
78+ < DialogConfirm label = "OK" onClick = { async ( ) => { } } />
8379 </ DialogFooter >
8480 </ DialogModal >
8581 </ Variant >
@@ -124,7 +120,7 @@ export const DialogSection: React.FC<{ selectedComponent: string }> = ({ selecte
124120 />
125121 </ Variant >
126122
127- < Variant label = "Document Take Over" >
123+ < Variant label = "Document Taken Over" >
128124 < Button buttonStyle = "secondary" onClick = { ( ) => setDocTakeOverActive ( true ) } >
129125 Open Document Take Over
130126 </ Button >
0 commit comments