@marianmeres/stuic 2.41.1 → 2.41.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.
@@ -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]}
@@ -10,6 +10,7 @@ export interface AssetPreview {
10
10
  type?: string;
11
11
  }
12
12
  export interface Props {
13
+ class?: string;
13
14
  assets: string[] | AssetPreview[];
14
15
  classControls?: string;
15
16
  /** Optional translate function */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@marianmeres/stuic",
3
- "version": "2.41.1",
3
+ "version": "2.41.2",
4
4
  "files": [
5
5
  "dist",
6
6
  "!dist/**/*.test.*",