@dust-tt/sparkle 0.2.247 → 0.2.248

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cjs/index.js CHANGED
@@ -103589,7 +103589,7 @@ function Dialog(_a) {
103589
103589
  React.createElement("div", { className: "s-flex s-w-full s-justify-end" },
103590
103590
  React.createElement(Button.List, null,
103591
103591
  !isSaving && (React.createElement(React.Fragment, null,
103592
- !props.alertDialog && (React.createElement(Button, { label: (_b = props.cancelLabel) !== null && _b !== void 0 ? _b : "Cancel", variant: "tertiary", onClick: props.onCancel })),
103592
+ props.onCancel && (React.createElement(Button, { label: (_b = props.cancelLabel) !== null && _b !== void 0 ? _b : "Cancel", variant: "tertiary", onClick: props.onCancel })),
103593
103593
  React.createElement(Button, { disabled: disabled, label: validateLabel, variant: validateVariant, onClick: onValidate }))),
103594
103594
  isSaving && React.createElement(Spinner, { variant: "color" }))),
103595
103595
  backgroundType !== "none" && (React.createElement("div", { className: "s-absolute s-bottom-0 s-left-0 s-right-0 s-top-0 s-z-0" },