Address Select
Saved-address picker, caller-owned editor dialog, and inline address form composition.
Editor dialog (composed by the caller)
The Dialog is a presentational shell. The caller renders AddressForm inside its own <form> and wires the footer Save button to an async remote form submission.
Use the Delivery picker above to open this modal.
import { Dialog } from '@mediayard/agoratopia-ui/components/dialogs';
<!-- The consumer owns the dialog, the form fields, and the async save. -->
<Dialog {open} title="Add New Address" onclose={() => (open = false)}>
<form id="editor" {...editor.enhance(handleSave)}>
<AddressForm fields={editorFields} {allowed_countries} />
</form>
{#snippet footer()}
<Button type="submit" form="editor" variant="primary">Save Address</Button>
{/snippet}
</Dialog>