vanilla-jui 1.7.41 → 1.7.42

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vanilla-jui",
3
- "version": "1.7.41",
3
+ "version": "1.7.42",
4
4
  "private": false,
5
5
  "description": "A lightweight, reactive, and fully customizable vanilla JS UI library.",
6
6
  "keywords": [
@@ -31,7 +31,7 @@ const AUTOPLAY_DELAY_FLOOR = 16;
31
31
 
32
32
  export interface SwiperClassNames {
33
33
  root: string;
34
- wrapper: string;
34
+ wrap: string;
35
35
  slide: string;
36
36
  image: string;
37
37
  title: string;
@@ -174,7 +174,7 @@ export type Swiper = SwiperBase & {
174
174
 
175
175
  const DEFAULT_CLASS_NAMES: SwiperClassNames = {
176
176
  root: 'j-swiper',
177
- wrapper: 'swiper-wrapper',
177
+ wrap: 'swiper-wrap',
178
178
  slide: 'swiper-slide',
179
179
  image: 'swiper-image',
180
180
  title: 'swiper-slide-title',
@@ -908,8 +908,8 @@ export function createSwiper(input: SwiperProps = {}): Swiper {
908
908
  return view;
909
909
  };
910
910
  wrapper = jsx('div', {
911
- className: props.className.wrapper,
912
- 'data-swiper-wrapper': '',
911
+ className: props.className.wrap,
912
+ 'data-swiper-wrap': '',
913
913
  'aria-live': 'polite',
914
914
  children: () =>
915
915
  state.loading
@@ -974,7 +974,7 @@ export function createSwiper(input: SwiperProps = {}): Swiper {
974
974
  ),
975
975
  'data-action': 'prev',
976
976
  'data-swiper-navigation': 'prev',
977
- 'aria-label': 'Previous slide',
977
+ 'aria-label': 'Previous Slide',
978
978
  disabled: () => !props.loop && state.index <= 0,
979
979
  children: icon('arrow-left'),
980
980
  })
@@ -992,7 +992,7 @@ export function createSwiper(input: SwiperProps = {}): Swiper {
992
992
  ),
993
993
  'data-action': 'next',
994
994
  'data-swiper-navigation': 'next',
995
- 'aria-label': 'Next slide',
995
+ 'aria-label': 'Next Slide',
996
996
  disabled: () => !props.loop && state.index >= realCount() - 1,
997
997
  children: icon('arrow-right'),
998
998
  })
@@ -892,11 +892,11 @@
892
892
  Skeleton
893
893
  ============================================ */
894
894
  .j-skeleton {
895
- display: block;
896
- width: 100%;
897
- min-height: var(--el-height-2xs);
898
- border-radius: var(--radius-sm);
899
- background: var(--ui-bg-muted);
895
+ display: var(--skeleton-display, block);
896
+ width: var(--skeleton-width, 100%);
897
+ height: var(--skeleton-height, var(--el-height-2xs));
898
+ border-radius: var(--skeleton-radius, var(--radius-sm));
899
+ background: var(--skeleton-bg, var(--ui-bg-muted));
900
900
  color: transparent;
901
901
  pointer-events: none;
902
902
  user-select: none;
@@ -909,41 +909,39 @@
909
909
  }
910
910
 
911
911
  .j-skeleton.skeleton-inline {
912
- display: inline-block;
913
- width: 8rem;
912
+ --skeleton-display: inline-block;
913
+ --skeleton-width: 8rem;
914
+ --skeleton-height: var(--el-height-xs);
914
915
  vertical-align: middle;
915
916
  }
916
917
 
917
918
  .j-skeleton.skeleton-text {
918
- height: var(--el-height-sm);
919
- min-height: var(--el-height-sm);
919
+ --skeleton-height: var(--el-height-sm);
920
920
  }
921
921
 
922
922
  .j-skeleton.skeleton-title {
923
- width: 60%;
924
- height: var(--el-height-md);
925
- min-height: var(--el-height-md);
923
+ --skeleton-width: 60%;
924
+ --skeleton-height: var(--el-height);
926
925
  }
927
926
 
928
927
  .j-skeleton.skeleton-block {
929
- height: calc(var(--el-height-md) * 4);
930
- min-height: calc(var(--el-height-md) * 4);
928
+ --skeleton-height: calc(var(--el-height) * 2);
931
929
  }
932
930
 
933
931
  .j-skeleton.skeleton-avatar,
934
932
  .j-skeleton.skeleton-circle {
933
+ --skeleton-radius: 999px;
935
934
  aspect-ratio: 1;
936
- border-radius: 999px;
937
935
  }
938
936
 
939
937
  .j-skeleton.skeleton-avatar {
940
- width: var(--el-height-md);
941
- min-height: var(--el-height-md);
938
+ --skeleton-width: var(--el-height);
939
+ --skeleton-height: var(--el-height);
942
940
  }
943
941
 
944
942
  .j-skeleton.skeleton-button {
945
- width: 5rem;
946
- min-height: var(--el-height-md);
943
+ --skeleton-width: 4rem;
944
+ --skeleton-height: var(--el-height);
947
945
  }
948
946
 
949
947
  .j-skeleton.skeleton-image {
@@ -14,7 +14,7 @@
14
14
  border-radius: var(--radius-md);
15
15
  }
16
16
 
17
- .j-swiper .swiper-wrapper {
17
+ .j-swiper .swiper-wrap {
18
18
  display: flex;
19
19
  will-change: transform;
20
20
  position: relative;
@@ -31,7 +31,7 @@
31
31
  color: inherit;
32
32
  text-decoration: none;
33
33
  user-select: none;
34
- width: 100%;
34
+ width: var(--swiper-slide-width, 100%);
35
35
  min-width: 100%;
36
36
  aspect-ratio: inherit;
37
37
  border-radius: inherit;
@@ -178,7 +178,6 @@
178
178
  .j-swiper .swiper-navigation svg {
179
179
  width: 16px;
180
180
  height: 16px;
181
-
182
181
  pointer-events: none;
183
182
  }
184
183