@dust-tt/sparkle 0.2.157-alphatv → 0.2.158-alphatv

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
@@ -74810,9 +74810,8 @@ var GalleryVariantContent = function (_a) {
74810
74810
  React.createElement("div", { className: classNames(descriptionClassNames["base"], descriptionClassNames.gallery) }, description))));
74811
74811
  };
74812
74812
  var MinimalGalleryVariantContent = function (_a) {
74813
- var title = _a.title, pictureUrl = _a.pictureUrl, subtitle = _a.subtitle, _b = _a.hasAction, hasAction = _b === void 0 ? true : _b, onClick = _a.onClick, onActionClick = _a.onActionClick, renderActionButton = _a.renderActionButton;
74814
- var isSmallScreen = getWindowWidth() <= breakpoints.sm;
74815
- var actionButton = (React.createElement(Button, { label: "", icon: SvgMore$1, variant: "tertiary", size: isSmallScreen ? "xs" : "sm", labelVisible: false, hasMagnifying: false, disabledTooltip: true, onClick: function (e) {
74813
+ var title = _a.title, pictureUrl = _a.pictureUrl, subtitle = _a.subtitle, _b = _a.hasAction, hasAction = _b === void 0 ? true : _b, onClick = _a.onClick, onActionClick = _a.onActionClick;
74814
+ var actionButton = (React.createElement(Button, { label: "", icon: SvgMore$1, variant: "tertiary", size: "sm", labelVisible: false, hasMagnifying: false, disabledTooltip: true, onClick: function (e) {
74816
74815
  e.stopPropagation();
74817
74816
  onActionClick === null || onActionClick === void 0 ? void 0 : onActionClick();
74818
74817
  } }));
@@ -74820,7 +74819,7 @@ var MinimalGalleryVariantContent = function (_a) {
74820
74819
  React.createElement("div", { id: "assistant-container", className: "s-flex s-grow s-flex-row s-justify-between s-gap-2 s-overflow-hidden s-py-1", onClick: onClick },
74821
74820
  React.createElement("div", { id: "preview", className: "s-flex s-w-full s-min-w-0 s-flex-row s-items-center s-gap-2" },
74822
74821
  React.createElement("div", { id: "avatar-column", className: "s-w-fit" },
74823
- React.createElement(Avatar, { name: "Avatar of ".concat(title), visual: pictureUrl, size: isSmallScreen ? "sm" : "md" })),
74822
+ React.createElement(Avatar, { name: "Avatar of ".concat(title), visual: pictureUrl, size: "md" })),
74824
74823
  React.createElement("div", { id: "details-column", className: "s-flex s-w-full s-min-w-0 s-flex-col s-items-start s-gap-0 s-overflow-hidden" },
74825
74824
  React.createElement("div", { className: classNames(titleClassNames["base"], titleClassNames.minimalGallery) },
74826
74825
  "@",
@@ -74828,7 +74827,7 @@ var MinimalGalleryVariantContent = function (_a) {
74828
74827
  React.createElement("div", { className: classNames(subtitleClassNames["base"], subtitleClassNames.minimalGallery) },
74829
74828
  "By: ",
74830
74829
  subtitle))),
74831
- React.createElement("div", { id: "actions-column", className: "s-flex s-shrink-0 s-w-fit" }, hasAction && (renderActionButton ? renderActionButton(actionButton) : actionButton)))));
74830
+ React.createElement("div", { id: "actions-column", className: "s-flex s-shrink-0 s-w-fit" }, hasAction && actionButton))));
74832
74831
  };
74833
74832
  function AssistantPreview(props) {
74834
74833
  var onClick = props.onClick, variant = props.variant;