@yatoday/astro-ui 0.17.8 → 0.17.10

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.
@@ -5,6 +5,7 @@ import WidgetWrapper from '../WidgetWrapper/WidgetWrapper.astro';
5
5
  import SwiperSlider from '../SwiperSlider/SwiperSlider.astro';
6
6
  import { Image as AstroImage, getImage } from 'astro:assets';
7
7
  import { fetchLocalImages } from '../../utils/images';
8
+ import { cn } from '../../utils';
8
9
  import Button from "../Button/Button.astro";
9
10
 
10
11
  const {
@@ -89,7 +90,7 @@ const imagePaths = Object.keys(images).filter((imagePath) => {
89
90
  widths={[400, 900]}
90
91
  width={400}
91
92
  sizes="(max-width: 900px) 400px, 900px"
92
- class="object-cover object-top w-full md:h-full group-hover:scale-105 transition duration-300"
93
+ class={cn("object-cover object-top w-full md:h-full group-hover:scale-105 transition duration-300", classes?.image)}
93
94
  />
94
95
  </a>
95
96
  </swiper-slide>
@@ -106,6 +107,8 @@ const imagePaths = Object.keys(images).filter((imagePath) => {
106
107
  </div>
107
108
  )
108
109
  }
110
+
111
+ <slot />
109
112
  </WidgetWrapper>
110
113
 
111
114
  <script>
@@ -56,7 +56,7 @@
56
56
  widths={[400, 900]}
57
57
  width={400}
58
58
  sizes="(max-width: 900px) 400px, 900px"
59
- class="object-cover object-top w-full md:h-full group-hover:scale-105 transition duration-300"
59
+ class={cn("object-cover object-top w-full md:h-full group-hover:scale-105 transition duration-300", classes?.image)}
60
60
  />
61
61
  </a>
62
62
  </swiper-slide>
@@ -11,6 +11,7 @@ export type WidgetSwiperPhotoSliderProps = {
11
11
  classes?: {
12
12
  container?: string;
13
13
  headline?: Record<string, string>;
14
+ image?: string;
14
15
  };
15
16
  callToAction?: ToAction;
16
17
  asHeader?: HeadlineProps['as'];
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@yatoday/astro-ui",
3
3
  "type": "module",
4
- "version": "0.17.8",
4
+ "version": "0.17.10",
5
5
  "scripts": {
6
6
  "prepare": "husky",
7
7
  "pre-commit": "lint-staged",