@yatoday/astro-ui 0.17.29 → 0.17.32
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.
|
@@ -1,17 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
// Re-export the canonical Image props so the public API stays in sync with
|
|
2
|
+
// what the component actually accepts. The real definition lives next to the
|
|
3
|
+
// optimizer (`utils/images-optimization.ts`) and supports `src` as
|
|
4
|
+
// string | ImageMetadata, plus `widths`, `sizes`, `srcset`, and every other
|
|
5
|
+
// <img> attribute. A hand-maintained subset here let the two drift.
|
|
6
|
+
import type { ImageProps } from '../../utils/images-optimization';
|
|
3
7
|
|
|
4
|
-
export type ImageProps
|
|
5
|
-
src: string;
|
|
6
|
-
alt?: string;
|
|
7
|
-
aspectRatio?: string;
|
|
8
|
-
width?: string | number;
|
|
9
|
-
height?: string | number;
|
|
10
|
-
loading?: 'eager' | 'lazy';
|
|
11
|
-
decoding?: 'sync' | 'async' | 'auto';
|
|
12
|
-
class?: string;
|
|
13
|
-
layout?: 'fixed' | 'constrained' | 'fullWidth' | 'cover' | 'responsive' | 'contained';
|
|
14
|
-
};
|
|
8
|
+
export type { ImageProps };
|
|
15
9
|
|
|
16
10
|
export type SvelteImageProps = ImageProps & {
|
|
17
11
|
ref?: HTMLImageElement | null;
|
|
@@ -4,11 +4,17 @@ export type SwiperSliderProps = {
|
|
|
4
4
|
id?: string;
|
|
5
5
|
withNavigation?: boolean;
|
|
6
6
|
classes?: Record<string, string>;
|
|
7
|
+
/**
|
|
8
|
+
* Swiper `breakpoints` config, passed through to <swiper-container> as a
|
|
9
|
+
* JSON string. Overrides the component's default responsive breakpoints.
|
|
10
|
+
*/
|
|
11
|
+
breakpoints?: string;
|
|
7
12
|
};
|
|
8
13
|
|
|
9
14
|
export type SvelteSwiperSliderProps = {
|
|
10
15
|
id?: string;
|
|
11
16
|
withNavigation?: boolean;
|
|
12
17
|
classes?: Record<string, string>;
|
|
18
|
+
breakpoints?: string;
|
|
13
19
|
children?: Snippet;
|
|
14
20
|
};
|