@dust-tt/sparkle 0.2.61-alpha-1 → 0.2.61-alpha-2

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/esm/index.js CHANGED
@@ -32241,11 +32241,11 @@ var LargeVariantContent = function (_a) {
32241
32241
  var _b;
32242
32242
  var props = _a.props;
32243
32243
  var description = props.description, isAdded = props.isAdded, allowAddAction = props.allowAddAction, isUpdatingList = props.isUpdatingList, isWorkspace = props.isWorkspace, name = props.name, onShowDetailsClick = props.onShowDetailsClick, onTestClick = props.onTestClick, onUpdate = props.onUpdate, pictureUrl = props.pictureUrl, subtitle = props.subtitle;
32244
- var galleryChip = allowAddAction && isAdded && (React__default.createElement("div", { className: "s-group" },
32244
+ var galleryChip = isAdded && (React__default.createElement("div", { className: "s-group" },
32245
32245
  React__default.createElement(Chip, { color: "emerald", size: "xs", label: "Added", className: "group-hover:s-hidden" }),
32246
- React__default.createElement("div", { className: "s-hidden group-hover:s-block" },
32246
+ allowAddAction && (React__default.createElement("div", { className: "s-hidden group-hover:s-block" },
32247
32247
  React__default.createElement(Button.List, { isWrapping: true },
32248
- React__default.createElement(Button, { key: "remove", variant: "tertiary", icon: SvgDash$1, disabled: isUpdatingList, size: "xs", label: "Remove", onClick: function () { return onUpdate("removed"); } })))));
32248
+ React__default.createElement(Button, { key: "remove", variant: "tertiary", icon: SvgDash$1, disabled: isUpdatingList, size: "xs", label: "Remove", onClick: function () { return onUpdate("removed"); } }))))));
32249
32249
  var addButton = !isAdded && allowAddAction && (React__default.createElement(Button, { key: "add", variant: "tertiary", icon: SvgPlus$1, disabled: isUpdatingList, size: "xs", label: isWorkspace ? "Add to Workspace" : "Add", onClick: function () { return onUpdate("added"); } }));
32250
32250
  var testButton = null;
32251
32251
  if (onTestClick) {