@dust-tt/sparkle 0.2.481-rc4 → 0.2.481

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.
@@ -54,7 +54,7 @@ export function InteractiveImage(_a) {
54
54
  }, src: src }, props)))),
55
55
  React.createElement(DialogContent, { className: cn("s-w-auto s-max-w-none s-border-0 s-outline-none s-ring-0", "focus:s-outline-none focus:s-ring-0", "s-rounded-none s-bg-transparent s-shadow-none"), size: "xl" },
56
56
  React.createElement("div", { className: "s-flex s-flex-col" },
57
- React.createElement("div", { className: "s-flex s-justify-end" }, imageLoaded && (React.createElement(DownloadButton, { src: src, title: props.title, size: "sm" }))),
57
+ React.createElement("div", { className: "s-flex s-justify-end" }, imageLoaded && (React.createElement(DownloadButton, { src: src, title: props.title, size: "md" }))),
58
58
  React.createElement("div", { className: "s-relative s-w-full" },
59
59
  React.createElement("img", { src: src, alt: alt, className: "s-w-full s-object-contain", onLoad: function () { return setImageLoaded(true); } }))))));
60
60
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dust-tt/sparkle",
3
- "version": "0.2.481-rc4",
3
+ "version": "0.2.481",
4
4
  "scripts": {
5
5
  "build": "rm -rf dist && npm run tailwind && npm run build:esm && npm run build:cjs",
6
6
  "tailwind": "tailwindcss -i ./src/styles/tailwind.css -o dist/sparkle.css",
@@ -12,7 +12,7 @@ import { cn } from "@sparkle/lib/utils";
12
12
 
13
13
  interface DownloadButtonProps {
14
14
  className?: string;
15
- size?: "xs" | "sm";
15
+ size?: "xs" | "sm" | "md";
16
16
  src?: string;
17
17
  title: string;
18
18
  }
@@ -102,7 +102,7 @@ export function InteractiveImage({
102
102
  <div className="s-flex s-flex-col">
103
103
  <div className="s-flex s-justify-end">
104
104
  {imageLoaded && (
105
- <DownloadButton src={src} title={props.title} size="sm" />
105
+ <DownloadButton src={src} title={props.title} size="md" />
106
106
  )}
107
107
  </div>
108
108
  <div className="s-relative s-w-full">