@yatoday/astro-ui 0.18.1 → 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.
Files changed (47) hide show
  1. package/components/Analytics/AnalyticsGTM.astro +3 -3
  2. package/components/Analytics/AnalyticsGTMBody.astro +16 -12
  3. package/components/Analytics/AnalyticsGoogle.astro +3 -1
  4. package/components/BreadcrumbsItem/BreadcrumbsItem.astro +8 -1
  5. package/components/Button/types.ts +2 -1
  6. package/components/CallToAction/CallToAction.astro +1 -1
  7. package/components/Card0/Card0.astro +20 -32
  8. package/components/Card1/Card1.astro +11 -19
  9. package/components/Card2/Card2.astro +10 -14
  10. package/components/Card3/Card3.astro +15 -20
  11. package/components/Card4/Card4.astro +6 -2
  12. package/components/Card5/Card5.astro +8 -1
  13. package/components/Card6/Card6.astro +76 -59
  14. package/components/Card7/Card7.astro +27 -18
  15. package/components/CookieConsent/CookieConsent.astro +323 -308
  16. package/components/CopyToClipboard/CopyToClipboard.astro +6 -14
  17. package/components/CopyToClipboard/copy.ts +1 -1
  18. package/components/DarkMode/__tests__/DarkMode.test.ts +8 -8
  19. package/components/Headline/Headline.astro +4 -1
  20. package/components/HeroSection/HeroSection.astro +13 -16
  21. package/components/Image/Image.astro +1 -7
  22. package/components/ImageGallery/ImageGallery.astro +85 -90
  23. package/components/ImageGalleryIkea/ImageGalleryIkea.astro +3 -2
  24. package/components/ImagePreload/ImagePreload.astro +22 -20
  25. package/components/ItemGrid1/ItemGrid1.astro +34 -24
  26. package/components/Metadata/Metadata.astro +1 -5
  27. package/components/PointMap/PointMap.astro +62 -48
  28. package/components/PointMap/types.ts +3 -3
  29. package/components/SEO/SEO.astro +34 -33
  30. package/components/WidgetBrands/WidgetBrands.astro +8 -1
  31. package/components/WidgetContent/WidgetContent.astro +22 -9
  32. package/components/WidgetContent/types.ts +1 -1
  33. package/components/WidgetFeaturesCard/WidgetFeaturesCard.astro +10 -2
  34. package/components/WidgetHeroSlider/WidgetHeroSlider.astro +6 -1
  35. package/components/WidgetNavbarFlyout/WidgetNavbarFlyout.astro +29 -9
  36. package/components/WidgetSwiperPhotoSlider/WidgetSwiperPhotoSlider.astro +18 -7
  37. package/components/WidgetTestimonials/WidgetTestimonials.astro +8 -1
  38. package/components/WidgetWrapper/WidgetWrapper.astro +11 -2
  39. package/index.d.ts +20 -20
  40. package/package.json +11 -9
  41. package/styles/styles.css +303 -160
  42. package/utils/i18n.ts +2 -2
  43. package/utils/images.ts +0 -1
  44. package/utils/slugify.ts +3 -0
  45. package/vendor-config/config.example.yaml +0 -1
  46. package/vendor-config/index.ts +1 -1
  47. package/vendor-config/utils/loadConfig.ts +15 -18
package/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  // Utility Types
2
- import type {HTMLAttributes} from "astro/types";
3
- import type {ImageMetadata} from "astro";
2
+ import type { HTMLAttributes } from 'astro/types';
3
+ import type { ImageMetadata } from 'astro';
4
4
 
5
5
  export type ClassValue = ClassArray | ClassDictionary | string | number | bigint | null | boolean | undefined;
6
6
  export type ClassDictionary = Record<string, any>;
@@ -33,7 +33,7 @@ export type HotspotPoint = {
33
33
  isPopupOpen?: boolean; // whether the popup is open on initialization
34
34
  classes?: Record<string, string>;
35
35
  callToAction?: CallToAction;
36
- }
36
+ };
37
37
 
38
38
  export type Item = {
39
39
  title?: string;
@@ -51,23 +51,23 @@ export type Image = {
51
51
  aspectRatio?: string;
52
52
  class?: string;
53
53
  } & Omit<HTMLAttributes<'img'>, 'src'> & {
54
- src?: string | ImageMetadata | null;
55
- width?: string | number | null;
56
- height?: string | number | null;
57
- alt?: string | null;
58
- loading?: 'eager' | 'lazy' | null;
59
- decoding?: 'sync' | 'async' | 'auto' | null;
60
- class?: string;
61
- style?: string;
62
- srcset?: string | null;
63
- sizes?: string | null;
64
- fetchpriority?: 'high' | 'low' | 'auto' | null;
65
- layout?: Layout;
66
- widths?: number[] | null;
67
- aspectRatio?: string | number | null;
68
- objectPosition?: string;
69
- format?: string;
70
- };
54
+ src?: string | ImageMetadata | null;
55
+ width?: string | number | null;
56
+ height?: string | number | null;
57
+ alt?: string | null;
58
+ loading?: 'eager' | 'lazy' | null;
59
+ decoding?: 'sync' | 'async' | 'auto' | null;
60
+ class?: string;
61
+ style?: string;
62
+ srcset?: string | null;
63
+ sizes?: string | null;
64
+ fetchpriority?: 'high' | 'low' | 'auto' | null;
65
+ layout?: Layout;
66
+ widths?: number[] | null;
67
+ aspectRatio?: string | number | null;
68
+ objectPosition?: string;
69
+ format?: string;
70
+ };
71
71
 
72
72
  export type Testimonial = {
73
73
  title?: string;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@yatoday/astro-ui",
3
3
  "type": "module",
4
- "version": "0.18.1",
4
+ "version": "0.18.4",
5
5
  "scripts": {
6
6
  "prepare": "husky",
7
7
  "pre-commit": "lint-staged",
@@ -32,15 +32,17 @@
32
32
  "unpic": "^3.22.0"
33
33
  },
34
34
  "peerDependencies": {
35
- "astro": "^5.10.1 || ^6.0.0"
35
+ "astro": "^5.10.1 || ^6.0.0 || ^7.0.0"
36
+ },
37
+ "overrides": {
38
+ "yaml": "^2.9.0"
36
39
  },
37
40
  "devDependencies": {
38
41
  "@astrojs/check": "0.9.4",
39
- "@astrojs/mdx": "^4.1.0",
40
- "@astrojs/node": "^9.1.2",
42
+ "@astrojs/mdx": "^7.0.0",
41
43
  "@astrojs/partytown": "^2.1.4",
42
- "@astrojs/svelte": "^7.1.0",
43
- "@eslint/js": "9.18.0",
44
+ "@astrojs/svelte": "^9.0.0",
45
+ "@eslint/js": "^9.39.4",
44
46
  "@iconify-json/tabler": "^1.2.10",
45
47
  "@tailwindcss/cli": "^4.0.13",
46
48
  "@tailwindcss/typography": "^0.5.16",
@@ -51,12 +53,12 @@
51
53
  "@types/js-yaml": "^4.0.9",
52
54
  "@types/lodash.merge": "^4.6.9",
53
55
  "@typescript-eslint/parser": "8.21.0",
54
- "astro-compress": "2.3.6",
56
+ "astro-compress": "^2.4.1",
55
57
  "astro-eslint-parser": "1.1.0",
56
58
  "astro-icon": "^1.1.5",
57
59
  "bits-ui": "^1.1.0",
58
60
  "clsx": "^2.1.1",
59
- "eslint": "9.18.0",
61
+ "eslint": "^9.39.4",
60
62
  "eslint-plugin-astro": "1.3.1",
61
63
  "eslint-plugin-simple-import-sort": "12.1.1",
62
64
  "eslint-plugin-svelte": "2.46.1",
@@ -67,7 +69,7 @@
67
69
  "lucide-svelte": "^0.469.0",
68
70
  "prettier": "^3.4.2",
69
71
  "prettier-plugin-astro": "^0.14.1",
70
- "svelte": "5.20.1",
72
+ "svelte": "^5.56.4",
71
73
  "svelte-eslint-parser": "0.43.0",
72
74
  "tailwind-merge": "^3.0.0",
73
75
  "tailwind-variants": "^0.3.1",