@melt-ui/svelte
Advanced tools
Comparing version 0.25.0 to 0.25.1
@@ -9,4 +9,5 @@ /// <reference types="svelte" /> | ||
fallback: import("../../internal/helpers").ExplicitBuilderReturn<[import("svelte/store").Writable<ImageLoadingStatus>], import("svelte/action").Action<any, any, Record<never, any>>, ([$loadingStatus]: [ImageLoadingStatus]) => { | ||
style: string; | ||
style: string | undefined; | ||
hidden: boolean | undefined; | ||
}, "avatar-fallback">; | ||
}; |
@@ -46,7 +46,9 @@ import { builder, effect, isBrowser, styleToString } from '../../internal/helpers'; | ||
returned: ([$loadingStatus]) => { | ||
const fallbackStyles = styleToString({ | ||
display: $loadingStatus === 'loaded' ? 'none' : 'block', | ||
}); | ||
return { | ||
style: fallbackStyles, | ||
style: $loadingStatus === 'loaded' | ||
? styleToString({ | ||
display: 'none', | ||
}) | ||
: undefined, | ||
hidden: $loadingStatus === 'loaded' ? undefined : true, | ||
}; | ||
@@ -53,0 +55,0 @@ }, |
{ | ||
"name": "@melt-ui/svelte", | ||
"version": "0.25.0", | ||
"version": "0.25.1", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "exports": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
411280
10098