@dust-tt/sparkle 0.2.235 → 0.2.236

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
@@ -103528,7 +103528,7 @@ DataTable.Caption = function Caption(_a) {
103528
103528
  };
103529
103529
 
103530
103530
  function Dialog(_a) {
103531
- var isOpen = _a.isOpen, children = _a.children, onCancel = _a.onCancel, onValidate = _a.onValidate, _b = _a.cancelLabel, cancelLabel = _b === void 0 ? "Cancel" : _b, _c = _a.validateLabel, validateLabel = _c === void 0 ? "Ok" : _c, _d = _a.validateVariant, validateVariant = _d === void 0 ? "primary" : _d, title = _a.title, isSaving = _a.isSaving, _e = _a.backgroundType, backgroundType = _e === void 0 ? "none" : _e;
103531
+ var title = _a.title, isOpen = _a.isOpen, children = _a.children, disabled = _a.disabled, onCancel = _a.onCancel, onValidate = _a.onValidate, _b = _a.cancelLabel, cancelLabel = _b === void 0 ? "Cancel" : _b, _c = _a.validateLabel, validateLabel = _c === void 0 ? "Ok" : _c, _d = _a.validateVariant, validateVariant = _d === void 0 ? "primary" : _d, isSaving = _a.isSaving, _e = _a.backgroundType, backgroundType = _e === void 0 ? "none" : _e;
103532
103532
  var referentRef = React.useRef(null);
103533
103533
  return (React.createElement(qe, { show: isOpen, as: React.Fragment, appear: true },
103534
103534
  React.createElement(_t, { as: "div", className: "s-relative s-z-50", onClose: onCancel },
@@ -103544,7 +103544,7 @@ function Dialog(_a) {
103544
103544
  React.createElement(Button.List, null,
103545
103545
  !isSaving && (React.createElement(React.Fragment, null,
103546
103546
  React.createElement(Button, { label: cancelLabel, variant: "tertiary", onClick: onCancel }),
103547
- React.createElement(Button, { label: validateLabel, variant: validateVariant, onClick: onValidate }))),
103547
+ React.createElement(Button, { disabled: disabled, label: validateLabel, variant: validateVariant, onClick: onValidate }))),
103548
103548
  isSaving && React.createElement(Spinner, { variant: "color" }))),
103549
103549
  backgroundType !== "none" && (React.createElement("div", { className: "s-absolute s-bottom-0 s-left-0 s-right-0 s-top-0 s-z-0" },
103550
103550
  React.createElement(ConfettiBackground, { variant: backgroundType, referentSize: referentRef }))))))))));