@dust-tt/sparkle 0.2.238 → 0.2.239

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
@@ -40667,8 +40667,8 @@ var ListVariantContent = function (_a) {
40667
40667
  React.createElement("div", { className: classNames(descriptionClassNames["base"], descriptionClassNames.list) }, description))));
40668
40668
  };
40669
40669
  var MinimalVariantContent = function (_a) {
40670
- var title = _a.title, pictureUrl = _a.pictureUrl, subtitle = _a.subtitle, _b = _a.hasAction, hasAction = _b === void 0 ? true : _b, description = _a.description, onClick = _a.onClick, onActionClick = _a.onActionClick;
40671
- var actionButton = (React.createElement(Button, { label: "", icon: SvgMore$1, variant: "tertiary", size: "sm", labelVisible: false, hasMagnifying: false, disabledTooltip: true, onClick: function (e) {
40670
+ var title = _a.title, pictureUrl = _a.pictureUrl, subtitle = _a.subtitle, _b = _a.hasAction, hasAction = _b === void 0 ? true : _b, actionElement = _a.actionElement, description = _a.description, onClick = _a.onClick, onActionClick = _a.onActionClick;
40671
+ var actionButton = actionElement !== null && actionElement !== void 0 ? actionElement : (React.createElement(Button, { label: "", icon: SvgMore$1, variant: "tertiary", size: "sm", labelVisible: false, hasMagnifying: false, disabledTooltip: true, onClick: function (e) {
40672
40672
  e.stopPropagation();
40673
40673
  onActionClick === null || onActionClick === void 0 ? void 0 : onActionClick();
40674
40674
  } }));