@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/cjs/index.js CHANGED
@@ -32261,11 +32261,11 @@ var LargeVariantContent = function (_a) {
32261
32261
  var _b;
32262
32262
  var props = _a.props;
32263
32263
  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;
32264
- var galleryChip = allowAddAction && isAdded && (React.createElement("div", { className: "s-group" },
32264
+ var galleryChip = isAdded && (React.createElement("div", { className: "s-group" },
32265
32265
  React.createElement(Chip, { color: "emerald", size: "xs", label: "Added", className: "group-hover:s-hidden" }),
32266
- React.createElement("div", { className: "s-hidden group-hover:s-block" },
32266
+ allowAddAction && (React.createElement("div", { className: "s-hidden group-hover:s-block" },
32267
32267
  React.createElement(Button.List, { isWrapping: true },
32268
- React.createElement(Button, { key: "remove", variant: "tertiary", icon: SvgDash$1, disabled: isUpdatingList, size: "xs", label: "Remove", onClick: function () { return onUpdate("removed"); } })))));
32268
+ React.createElement(Button, { key: "remove", variant: "tertiary", icon: SvgDash$1, disabled: isUpdatingList, size: "xs", label: "Remove", onClick: function () { return onUpdate("removed"); } }))))));
32269
32269
  var addButton = !isAdded && allowAddAction && (React.createElement(Button, { key: "add", variant: "tertiary", icon: SvgPlus$1, disabled: isUpdatingList, size: "xs", label: isWorkspace ? "Add to Workspace" : "Add", onClick: function () { return onUpdate("added"); } }));
32270
32270
  var testButton = null;
32271
32271
  if (onTestClick) {