@yatoday/astro-ui 0.17.16 → 0.17.18

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.
@@ -18,10 +18,6 @@ const {
18
18
  space-between="10"
19
19
  centered-slides="true"
20
20
  slides-per-view="1.2"
21
- prevent-clicks="true"
22
- prevent-clicks-propagation="true"
23
- threshold="10"
24
- touch-start-prevent-default="false"
25
21
  navigation={withNavigation
26
22
  ? JSON.stringify({
27
23
  nextEl: `#btn-next-${id}`,
@@ -96,9 +92,6 @@ const {
96
92
  swiper-slide {
97
93
  touch-action: pan-y pinch-zoom;
98
94
  }
99
- swiper-slide a {
100
- touch-action: pan-y pinch-zoom;
101
- }
102
95
  </style>
103
96
 
104
97
  <script>
@@ -23,10 +23,6 @@
23
23
  space-between="10"
24
24
  centered-slides="true"
25
25
  slides-per-view="1.2"
26
- prevent-clicks="true"
27
- prevent-clicks-propagation="true"
28
- threshold="10"
29
- touch-start-prevent-default="false"
30
26
  navigation={withNavigation
31
27
  ? JSON.stringify({
32
28
  nextEl: `#btn-next-${id}`,
@@ -30,6 +30,7 @@ const { container: containerClass = '', bg: bgClass = '' } = classes;
30
30
  <div class={cn('relative z-30', Astro.slots.has('default') && 'grid grid-cols-3 gap-6')}>
31
31
  <div class={cn(Astro.slots.has('default') && 'col-span-2')}>
32
32
  <Headline
33
+ position={position}
33
34
  title={title}
34
35
  subtitle={subtitle}
35
36
  tagline={tagline}
@@ -78,10 +78,12 @@ const {
78
78
  right: var(--swiper-pagination-right, 1.5rem);
79
79
  top: var(--swiper-pagination-top, auto);
80
80
  bottom: var(--swiper-pagination-bottom, 1.5rem);
81
+ pointer-events: none;
81
82
  }
82
83
 
83
84
  swiper-container::part(bullet),
84
85
  swiper-container::part(bullet-active) {
86
+ pointer-events: auto;
85
87
  width: var(--swiper-pagination-bullet-size, 8px);
86
88
  height: var(--swiper-pagination-bullet-size, 8px);
87
89
  display: inline-block;
@@ -108,6 +110,14 @@ const {
108
110
  --swiper-pagination-right: theme(spacing.6);
109
111
  }
110
112
  }
113
+
114
+ /* Prevent iOS from triggering link clicks during horizontal swipe */
115
+ swiper-container {
116
+ touch-action: pan-y pinch-zoom;
117
+ }
118
+ swiper-slide {
119
+ touch-action: pan-y pinch-zoom;
120
+ }
111
121
  </style>
112
122
 
113
123
  <WidgetWrapper
@@ -187,7 +197,7 @@ const {
187
197
  }
188
198
 
189
199
  <!-- Loading indicator -->
190
- <div class={cn('absolute top-0 left-0 w-full h-full flex items-center justify-center', `${classes?.loading}`)}>
200
+ <div class={cn('absolute top-0 left-0 w-full h-full flex items-center justify-center pointer-events-none', `${classes?.loading}`)}>
191
201
  <svg class="animate-spin h-6 w-6" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24">
192
202
  <circle class="opacity-25" cx="12" cy="12" r="10" stroke="currentColor" stroke-width="4"></circle>
193
203
  <path
@@ -1,5 +1,4 @@
1
1
  ---
2
- import { twMerge } from 'tailwind-merge';
3
2
  import type { WidgetWrapperProps as Props } from './types';
4
3
  import Background from '../Background/Background.astro';
5
4
  import {cn} from "../../utils";
@@ -9,7 +8,7 @@ const { id, isDark = false, class: className = '', containerClass = '', bg, as =
9
8
  const WrapperTag = as;
10
9
  ---
11
10
 
12
- <WrapperTag class={twMerge('relative', className)} {...id ? { id } : {}} {...rest}>
11
+ <WrapperTag class={cn('relative', className, isDark ? 'dark' : '')} {...id ? { id } : {}} {...rest}>
13
12
  <!-- WrapperTag: bg -z-[1] -->
14
13
  <div class="absolute inset-0 pointer-events-none" aria-hidden="true">
15
14
  <slot name="bg">
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@yatoday/astro-ui",
3
3
  "type": "module",
4
- "version": "0.17.16",
4
+ "version": "0.17.18",
5
5
  "scripts": {
6
6
  "prepare": "husky",
7
7
  "pre-commit": "lint-staged",