Repository navigation
Release v4.42.0
The five dialog templates of Part B 2.10 and the four auth and state screens of 2.11, with the components that make a dialog behave as one.
Added
- Dialog templates in
@cratis/scene.blueprint.default, categoryFoundation / Dialog:QuickCreateDialog(six fields at most, Cancel and Create),LookupDialog(search and a list, single or multiple selection),SideSheet(a drawer from the inline end hosting a form or record) andFilterDialog(the filter builder; fills the page on a phone).ConfirmDialognow lists the consequences, takes adangertone and names its verb on the confirming button;FormDialogandDetailDialoggain the same frame. - Auth and state screens fitting the full-page layout, categories
Foundation / AuthandFoundation / State:LoginScreen(logo, form, identity-provider slot, live-region error area, help link),NotFoundScreen,ForbiddenScreen(binds no data, so nothing leaks) andErrorScreen(retry and the support reference id). - Foundation components:
dialogFrame(heading, message, consequences, close button; gives the host's dialog element its accessible name, focus on open, a Tab trap, Escape, focus restored on close, placementcenter/side/full, a phone filling the page, RTL mirroring),actionButton(permission rule enabled/disabled/hidden, behaviors, danger emphasis) andnotice(a live-region message); apasswordfield type and asaveAndNewswitch on the form. - Cancel and Close carry a
CloseDialogaction as data, so the same document closes the dialog in Scene, Stage and the preview. GalleryDialogPreview, stories for each dialog state, sample-data pack shapes for the dialogs and screens, thumbnails for every template.verifyTemplateDefinitionOfDonenow also takes a dialog template.- Docs:
blueprints/foundation-templates.md(dialogs, auth and state screens, aliases),foundation-components.md,template-set.md,pattern-coverage.md.
Changed
- Nothing is renamed. The spec names stand beside the earlier templates, which keep working:
LoginScreenbesideLogin,NotFoundScreenbesideNotFound,ForbiddenScreenbesideAccessDenied,ErrorScreenbesideError,QuickCreateDialogbesideFormDialog(foundationTemplateAliases). TheConfirmDialogof the components blueprint and this one are kept apart because a template reference names its blueprint.
Part of #108