@yatoday/astro-ui 0.18.2 → 0.18.4
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.
- package/components/Analytics/AnalyticsGTM.astro +3 -3
- package/components/Analytics/AnalyticsGTMBody.astro +16 -12
- package/components/Analytics/AnalyticsGoogle.astro +3 -1
- package/components/BreadcrumbsItem/BreadcrumbsItem.astro +8 -1
- package/components/Button/types.ts +2 -1
- package/components/CallToAction/CallToAction.astro +1 -1
- package/components/Card0/Card0.astro +20 -32
- package/components/Card1/Card1.astro +11 -19
- package/components/Card2/Card2.astro +10 -14
- package/components/Card3/Card3.astro +15 -20
- package/components/Card4/Card4.astro +6 -2
- package/components/Card5/Card5.astro +8 -1
- package/components/Card6/Card6.astro +76 -59
- package/components/Card7/Card7.astro +27 -18
- package/components/CookieConsent/CookieConsent.astro +323 -308
- package/components/CopyToClipboard/CopyToClipboard.astro +6 -14
- package/components/CopyToClipboard/copy.ts +1 -1
- package/components/DarkMode/__tests__/DarkMode.test.ts +8 -8
- package/components/Headline/Headline.astro +4 -1
- package/components/HeroSection/HeroSection.astro +13 -16
- package/components/Image/Image.astro +1 -7
- package/components/ImageGallery/ImageGallery.astro +85 -90
- package/components/ImageGalleryIkea/ImageGalleryIkea.astro +3 -2
- package/components/ImagePreload/ImagePreload.astro +22 -20
- package/components/ItemGrid1/ItemGrid1.astro +34 -24
- package/components/Metadata/Metadata.astro +1 -5
- package/components/PointMap/PointMap.astro +62 -48
- package/components/PointMap/types.ts +3 -3
- package/components/SEO/SEO.astro +34 -33
- package/components/WidgetBrands/WidgetBrands.astro +8 -1
- package/components/WidgetContent/WidgetContent.astro +22 -9
- package/components/WidgetContent/types.ts +1 -1
- package/components/WidgetFeaturesCard/WidgetFeaturesCard.astro +10 -2
- package/components/WidgetHeroSlider/WidgetHeroSlider.astro +6 -1
- package/components/WidgetNavbarFlyout/WidgetNavbarFlyout.astro +16 -7
- package/components/WidgetSwiperPhotoSlider/WidgetSwiperPhotoSlider.astro +18 -7
- package/components/WidgetTestimonials/WidgetTestimonials.astro +8 -1
- package/components/WidgetWrapper/WidgetWrapper.astro +11 -2
- package/index.d.ts +20 -20
- package/package.json +11 -9
- package/styles/styles.css +303 -160
- package/utils/i18n.ts +2 -2
- package/utils/images.ts +0 -1
- package/utils/slugify.ts +3 -0
- package/vendor-config/config.example.yaml +0 -1
- package/vendor-config/index.ts +1 -1
- package/vendor-config/utils/loadConfig.ts +15 -18
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
---
|
|
2
|
-
import type {Card7Props as Props} from './types';
|
|
2
|
+
import type { Card7Props as Props } from './types';
|
|
3
3
|
import Card0 from '../Card0/Card0.astro';
|
|
4
|
-
import {Icon} from 'astro-icon/components';
|
|
5
|
-
import {cn} from '../../utils';
|
|
4
|
+
import { Icon } from 'astro-icon/components';
|
|
5
|
+
import { cn } from '../../utils';
|
|
6
6
|
|
|
7
7
|
const {
|
|
8
8
|
title = await Astro.slots.render('title'),
|
|
@@ -32,24 +32,33 @@ const {
|
|
|
32
32
|
}}
|
|
33
33
|
>
|
|
34
34
|
<div class="flex items-center relative">
|
|
35
|
-
<div
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
<WrapperHeaderTag class={cn('text-lg md:text-xl font-bold', titleClass)}>{title}</WrapperHeaderTag>
|
|
40
|
-
<span class="absolute inset-0" aria-hidden="true"></span>
|
|
41
|
-
</a>
|
|
42
|
-
) : (
|
|
43
|
-
<WrapperHeaderTag class={cn('text-lg md:text-xl font-bold', titleClass)}>{title}</WrapperHeaderTag>
|
|
44
|
-
))}
|
|
45
|
-
|
|
46
|
-
{description && (
|
|
47
|
-
<p class={cn('text-muted-foreground text-sm/5 md:text-base', descriptionClass)} set:html={description}/>
|
|
35
|
+
<div
|
|
36
|
+
class={cn(
|
|
37
|
+
'flex flex-col gap-3 justify-between h-full p-4 ',
|
|
38
|
+
callToAction && 'border-r dark:border-white/10 border-black/10'
|
|
48
39
|
)}
|
|
40
|
+
>
|
|
41
|
+
{
|
|
42
|
+
title &&
|
|
43
|
+
(callToAction ? (
|
|
44
|
+
<a href={callToAction.href} class="flex items-center">
|
|
45
|
+
<WrapperHeaderTag class={cn('text-lg md:text-xl font-bold', titleClass)}>{title}</WrapperHeaderTag>
|
|
46
|
+
<span class="absolute inset-0" aria-hidden="true" />
|
|
47
|
+
</a>
|
|
48
|
+
) : (
|
|
49
|
+
<WrapperHeaderTag class={cn('text-lg md:text-xl font-bold', titleClass)}>{title}</WrapperHeaderTag>
|
|
50
|
+
))
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
{
|
|
54
|
+
description && (
|
|
55
|
+
<p class={cn('text-muted-foreground text-sm/5 md:text-base', descriptionClass)} set:html={description} />
|
|
56
|
+
)
|
|
57
|
+
}
|
|
49
58
|
|
|
50
|
-
<slot/>
|
|
59
|
+
<slot />
|
|
51
60
|
</div>
|
|
52
61
|
|
|
53
|
-
{callToAction && <Icon name={icon ?? DefaultIcon} class={cn('flex-none size-7 mx-1', iconClass)}/>}
|
|
62
|
+
{callToAction && <Icon name={icon ?? DefaultIcon} class={cn('flex-none size-7 mx-1', iconClass)} />}
|
|
54
63
|
</div>
|
|
55
64
|
</Card0>
|