Description
Extract the following JSX/functions from Dialog.js
and expose them as standalone components:
DialogHeader
evergreen/src/dialog/src/Dialog.js
Lines 113 to 132 in 108a5bc
DialogBody
evergreen/src/dialog/src/Dialog.js
Lines 207 to 217 in 108a5bc
DialogFooter
evergreen/src/dialog/src/Dialog.js
Lines 134 to 169 in 108a5bc
These are already mostly "themed" as regular components, but may need some slight tweaks during extraction:
evergreen/src/dialog/src/Dialog.js
Lines 109 to 111 in 108a5bc
https://github.com/segmentio/evergreen/blob/master/src/themes/default/components/dialog-header.js
https://github.com/segmentio/evergreen/blob/master/src/themes/default/components/dialog-body.js
https://github.com/segmentio/evergreen/blob/master/src/themes/default/components/dialog-footer.js
These components should be attached to the Dialog
component so they can be used for composition if needed, similar to the EmptyState
component:
evergreen/src/empty-states/src/EmptyState.js
Lines 166 to 167 in 108a5bc