@dust-tt/sparkle 0.2.17 → 0.2.18

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.
@@ -21,6 +21,7 @@ type BarHeaderButtonBarValidateProps = {
21
21
  variant: "validate";
22
22
  onCancel?: () => void;
23
23
  onSave?: () => void;
24
+ saveLabel?: string;
24
25
  isSaving?: boolean;
25
26
  };
26
27
  type BarHeaderButtonBarConversationProps = {
@@ -1,7 +1,7 @@
1
1
  import React, { ReactNode } from "react";
2
2
  type ChipProps = {
3
3
  size?: "xs" | "sm";
4
- color?: "emerald" | "amber" | "slate" | "violet" | "warning" | "sky" | "pink" | "indigo" | "action";
4
+ color?: "emerald" | "amber" | "slate" | "violet" | "warning" | "sky" | "pink" | "indigo" | "action" | "red";
5
5
  label?: string;
6
6
  children?: ReactNode;
7
7
  className?: string;
package/dist/cjs/index.js CHANGED
@@ -32704,7 +32704,7 @@ BarHeader.ButtonBar = function (props) {
32704
32704
  case "validate":
32705
32705
  return (React.createElement(React.Fragment, null,
32706
32706
  React.createElement(Button, { size: "sm", label: "Cancel", variant: "secondaryWarning", onClick: props.onCancel, disabled: !props.onCancel || props.isSaving }),
32707
- React.createElement(Button, { size: "sm", label: props.isSaving ? "Saving" : "Save", variant: "primary", onClick: props.onSave, disabled: !props.onSave || props.isSaving })));
32707
+ React.createElement(Button, { size: "sm", label: props.isSaving ? "Processing..." : props.saveLabel || "Save", variant: "primary", onClick: props.onSave, disabled: !props.onSave || props.isSaving })));
32708
32708
  case "conversation":
32709
32709
  return (React.createElement(React.Fragment, null,
32710
32710
  React.createElement(Button, { size: "sm", label: "Delete", icon: SvgTrash$1, variant: "secondaryWarning", labelVisible: false, tooltipPosition: "below", onClick: props.onDelete }),