Releases: mongodb/leafygreen-ui
@lg-tools/build@0.9.1
Patch Changes
- afbf9fa: Upgrades
globdependency from 10.3.12 to 13.0.6
@leafygreen-ui/icon@14.9.0
Minor Changes
- 7167cce: Adds
SearchNodeglyph
@leafygreen-ui/wizard@0.1.5
Patch Changes
- e5c39d6: Exports
WizardStepContext&WizardStepContextDatatypes
@leafygreen-ui/delete-wizard@0.1.0
Minor Changes
-
e5c39d6: Initial release of
DeleteWizard.<DeleteWizard onStepChange={...} onCancel={...} onDelete={...} > <DeleteWizard.Header pageTitle="Demo Delete Wizard" /> <DeleteWizard.Step requiresAcknowledgement> <DeleteWizard.StepContent> <div>Step 1 contents</div> </DeleteWizard.StepContent> <DeleteWizard.Footer backButtonText="Go back" cancelButtonText="Cancel flow" primaryButtonText='Continue to next step' /> </DeleteWizard.Step> <DeleteWizard.Step requiresAcknowledgement> <DeleteWizard.StepContent> <div>Step 2 contents</div> </DeleteWizard.StepContent> <DeleteWizard.Footer backButtonText="Go back" cancelButtonText="Cancel flow" primaryButtonText='Delete my thing' /> </DeleteWizard.Step> </DeleteWizard>
DeleteWizard
Establishes a context, and only renders the
activeStep(managed internally, or provided with theactiveStepprop). Accepts aDeleteWizard.Headerand any number ofDeleteWizard.Steps as children.DeleteWizardand all sub-components include template styling.DeleteWizard.Header
A convenience wrapper around
CanvasHeaderDeleteWizard.Step
A convenience wrapper around
Wizard.Stepto ensure the correct context.
Like the basicWizard.Step, ifrequiresAcknowledgementis true, the step must haveisAcknowledgedset in context, (or passed in as a controlled prop) for the Footer's primary button to be enabled. (see the Wizard and DeleteWizard demos in Storybook)DeleteWizard.StepContent
A styled
divfor use inside aDeleteWizard.Stepto ensure proper page scrolling and footer positioningDeleteWizard.Footer
A wrapper around
Wizard.Footerwith embedded styles and convenience props for the DeleteWizard template.
DeleteWizard.Footeraccepts optionalbackButtonText,cancelButtonTextandprimaryButtonTextprops for simpler wizard creation.
The primary button variant is defined based on theactiveStep—"danger"for the final steps, and"primary"for all preceding steps.
Also defines theleftGlyphto for the final step.You can override this behavior by providing the button props object (see FormFooter).
Use the top level
onDelete,onCancelandonStepChangecallbacks to handle footer button clicks.
Patch Changes
- Updated dependencies [e5c39d6]
- @leafygreen-ui/wizard@0.1.5
@leafygreen-ui/combobox@12.5.1
@lg-chat/message@12.0.0
@lg-chat/message-prompts@4.2.2
Patch Changes
- 9296806: Update MessagePrompt padding to reflect designs
@lg-chat/message-feed@9.1.0
Minor Changes
- 9296806: - LG-5932: Refactor to use
CompoundComponentpattern- LG-5934: add
MessageFeedProvideranduseMessageFeedContext - LG-5935: add
MessageFeed.InitialMessagecomponent - LG-5933: add
MessageFeed.InitialMessage.MessagePromptsandMessageFeed.InitialMessage.MessagePromptcomponents. - LG-5936: add
MessageFeed.InitialMessage.ResourceListandMessageFeed.InitialMessage.ResourceListItemcomponents.
- LG-5934: add
Patch Changes
@lg-chat/chat-window@6.0.2
Patch Changes
- 9296806: Update MessagePrompt padding to reflect designs
@lg-mcp/ui-resource-renderer@0.2.0
Minor Changes
- 7e7abfe: Adds
UIResourceRendererMCP client component