@marianmeres/stuic 2.41.1 → 2.42.0
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.
|
@@ -31,6 +31,7 @@
|
|
|
31
31
|
import { X } from "../X/index.js";
|
|
32
32
|
import { preloadImgs } from "../../utils/preload-img.js";
|
|
33
33
|
import { fade } from "svelte/transition";
|
|
34
|
+
import { C } from "vitest/dist/chunks/reporters.d.BFLkQcL6.js";
|
|
34
35
|
|
|
35
36
|
export type AssetPreviewUrlObj = {
|
|
36
37
|
// o
|
|
@@ -55,6 +56,7 @@
|
|
|
55
56
|
}
|
|
56
57
|
|
|
57
58
|
export interface Props {
|
|
59
|
+
class?: string;
|
|
58
60
|
assets: string[] | AssetPreview[];
|
|
59
61
|
classControls?: string;
|
|
60
62
|
/** Optional translate function */
|
|
@@ -166,6 +168,7 @@
|
|
|
166
168
|
const clog = createClog("AssetsPreview", { color: "auto" });
|
|
167
169
|
|
|
168
170
|
let {
|
|
171
|
+
class: classProp = "",
|
|
169
172
|
assets: _assets,
|
|
170
173
|
t = t_default,
|
|
171
174
|
classControls = "",
|
|
@@ -386,7 +389,7 @@
|
|
|
386
389
|
onEscape={modal?.close}
|
|
387
390
|
classBackdrop="p-4 md:p-4"
|
|
388
391
|
classInner="max-w-full h-full"
|
|
389
|
-
class="max-h-full md:max-h-full rounded-lg"
|
|
392
|
+
class="max-h-full md:max-h-full rounded-lg {classProp}"
|
|
390
393
|
classMain="flex items-center justify-center relative stuic-assets-preview stuic-assets-preview-open"
|
|
391
394
|
>
|
|
392
395
|
{@const previewAsset = assets?.[previewIdx]}
|