vanilla-jui 1.7.40 → 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/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/src/components/swiper.ts +6 -6
- package/src/css/layout.css +17 -19
- package/src/css/themes/default/breadcrumb.css +10 -10
- package/src/css/themes/default/button.css +1 -1
- package/src/css/themes/default/swiper.css +2 -3
- package/src/css/tokens.css +1 -1
package/package.json
CHANGED
package/src/components/swiper.ts
CHANGED
|
@@ -31,7 +31,7 @@ const AUTOPLAY_DELAY_FLOOR = 16;
|
|
|
31
31
|
|
|
32
32
|
export interface SwiperClassNames {
|
|
33
33
|
root: string;
|
|
34
|
-
|
|
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
|
-
|
|
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.
|
|
912
|
-
'data-swiper-
|
|
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
|
|
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
|
|
995
|
+
'aria-label': 'Next Slide',
|
|
996
996
|
disabled: () => !props.loop && state.index >= realCount() - 1,
|
|
997
997
|
children: icon('arrow-right'),
|
|
998
998
|
})
|
package/src/css/layout.css
CHANGED
|
@@ -892,11 +892,11 @@
|
|
|
892
892
|
Skeleton
|
|
893
893
|
============================================ */
|
|
894
894
|
.j-skeleton {
|
|
895
|
-
display: block;
|
|
896
|
-
width: 100
|
|
897
|
-
|
|
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
|
|
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
|
|
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
|
|
941
|
-
|
|
938
|
+
--skeleton-width: var(--el-height);
|
|
939
|
+
--skeleton-height: var(--el-height);
|
|
942
940
|
}
|
|
943
941
|
|
|
944
942
|
.j-skeleton.skeleton-button {
|
|
945
|
-
width:
|
|
946
|
-
|
|
943
|
+
--skeleton-width: 4rem;
|
|
944
|
+
--skeleton-height: var(--el-height);
|
|
947
945
|
}
|
|
948
946
|
|
|
949
947
|
.j-skeleton.skeleton-image {
|
|
@@ -10,8 +10,8 @@
|
|
|
10
10
|
user-select: none;
|
|
11
11
|
}
|
|
12
12
|
|
|
13
|
-
.j-breadcrumb>ol,
|
|
14
|
-
.j-breadcrumb>ul {
|
|
13
|
+
.j-breadcrumb > ol,
|
|
14
|
+
.j-breadcrumb > ul {
|
|
15
15
|
display: flex;
|
|
16
16
|
flex-wrap: wrap;
|
|
17
17
|
justify-content: flex-start;
|
|
@@ -20,26 +20,26 @@
|
|
|
20
20
|
padding: 0;
|
|
21
21
|
}
|
|
22
22
|
|
|
23
|
-
.j-breadcrumb>ol li,
|
|
24
|
-
.j-breadcrumb>ul li {
|
|
23
|
+
.j-breadcrumb > ol li,
|
|
24
|
+
.j-breadcrumb > ul li {
|
|
25
25
|
display: flex;
|
|
26
26
|
align-items: center;
|
|
27
27
|
justify-content: center;
|
|
28
28
|
}
|
|
29
29
|
|
|
30
|
-
.j-breadcrumb li+li::before {
|
|
30
|
+
.j-breadcrumb li + li::before {
|
|
31
31
|
content: '/';
|
|
32
32
|
}
|
|
33
33
|
|
|
34
|
-
.j-breadcrumb.is-dot li+li::before {
|
|
34
|
+
.j-breadcrumb.is-dot li + li::before {
|
|
35
35
|
content: '•';
|
|
36
36
|
}
|
|
37
37
|
|
|
38
|
-
.j-breadcrumb.is-arrow li+li::before {
|
|
38
|
+
.j-breadcrumb.is-arrow li + li::before {
|
|
39
39
|
content: '>';
|
|
40
40
|
}
|
|
41
41
|
|
|
42
|
-
.j-breadcrumb.is-dash li+li::before {
|
|
42
|
+
.j-breadcrumb.is-dash li + li::before {
|
|
43
43
|
content: '–';
|
|
44
44
|
}
|
|
45
45
|
|
|
@@ -79,7 +79,7 @@
|
|
|
79
79
|
justify-content: center;
|
|
80
80
|
}
|
|
81
81
|
|
|
82
|
-
.j-breadcrumb li+li::before {
|
|
82
|
+
.j-breadcrumb li + li::before {
|
|
83
83
|
color: var(--ui-fg-soft);
|
|
84
84
|
}
|
|
85
85
|
|
|
@@ -103,4 +103,4 @@
|
|
|
103
103
|
.j-breadcrumb.is-right ol {
|
|
104
104
|
justify-content: flex-end;
|
|
105
105
|
}
|
|
106
|
-
}
|
|
106
|
+
}
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
border-radius: var(--radius-md);
|
|
15
15
|
}
|
|
16
16
|
|
|
17
|
-
.j-swiper .swiper-
|
|
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
|
|
package/src/css/tokens.css
CHANGED