@nutui/nutui-react 2.5.2 → 2.6.0
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/CHANGELOG.md +19 -5
- package/dist/esm/Form/style/style.css +1 -1
- package/dist/esm/Image.js +1 -1
- package/dist/esm/ImagePreview/style/style.css +1 -1
- package/dist/esm/ImagePreview.js +16 -20
- package/dist/esm/Indicator.js +25 -1
- package/dist/esm/SideNavBar.js +1 -1
- package/dist/esm/SubSideNavBar.js +1 -1
- package/dist/esm/Swiper/style/index.js +0 -1
- package/dist/esm/Swiper/style/style.css +1 -1
- package/dist/esm/Swiper.js +273 -306
- package/dist/esm/SwiperItem.js +6 -18
- package/dist/esm/context4.js +16 -2
- package/dist/esm/use-touch.js +13 -3
- package/dist/locales/base.js +1 -1
- package/dist/locales/en-US.js +1 -1
- package/dist/locales/id-ID.js +1 -1
- package/dist/locales/tr-TR.js +1 -1
- package/dist/locales/zh-CN.js +1 -1
- package/dist/locales/zh-TW.js +1 -1
- package/dist/locales/zh-UG.js +1 -1
- package/dist/nutui.react.es.js +404 -396
- package/dist/nutui.react.umd.js +404 -396
- package/dist/packages/form/form.scss +0 -3
- package/dist/packages/swiper/swiper.scss +30 -16
- package/dist/style.css +1 -1
- package/dist/style.mjs +1 -1
- package/dist/types/packages/input/input.taro.d.ts +1 -1
- package/dist/types/packages/swiper/effects/default.d.ts +11 -0
- package/dist/types/packages/swiper/effects/focus.d.ts +21 -0
- package/dist/types/packages/swiper/index.d.ts +4 -2
- package/dist/types/packages/swiper/swiper.d.ts +24 -43
- package/dist/types/packages/swiper/types.d.ts +6 -0
- package/dist/types/packages/swiperitem/swiperitem.d.ts +8 -4
- package/dist/types/utils/use-ref-state.d.ts +3 -0
- package/dist/types/utils/use-touch.d.ts +3 -1
- package/package.json +1 -1
- package/dist/esm/context5.js +0 -19
- package/dist/esm/indicator2.js +0 -28
- package/dist/types/packages/picker/doc.en.d.ts +0 -145
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
.form-layout-right .nut-form-item-label {
|
|
3
3
|
text-align: right;
|
|
4
|
-
font-size: 14px;
|
|
5
4
|
padding-right: 24px;
|
|
6
5
|
white-space: nowrap;
|
|
7
6
|
}
|
|
@@ -9,7 +8,6 @@
|
|
|
9
8
|
.form-layout-left .nut-form-item-label {
|
|
10
9
|
position: relative;
|
|
11
10
|
text-align: left;
|
|
12
|
-
font-size: 14px;
|
|
13
11
|
padding-left: 12px;
|
|
14
12
|
white-space: nowrap;
|
|
15
13
|
|
|
@@ -30,7 +28,6 @@
|
|
|
30
28
|
.form-layout-top .nut-form-item-label {
|
|
31
29
|
padding-bottom: 4px;
|
|
32
30
|
display: block;
|
|
33
|
-
font-size: 14px;
|
|
34
31
|
padding-right: 24px;
|
|
35
32
|
}
|
|
36
33
|
|
|
@@ -1,22 +1,10 @@
|
|
|
1
1
|
|
|
2
2
|
.nut-swiper {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
display: flex;
|
|
6
|
-
transition-property: transform;
|
|
7
|
-
box-sizing: content-box;
|
|
3
|
+
width: 100%;
|
|
4
|
+
height: 100%;
|
|
8
5
|
overflow: hidden;
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
display: flex;
|
|
12
|
-
height: 100%;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
&-vertical {
|
|
16
|
-
-webkit-box-orient: vertical;
|
|
17
|
-
-webkit-box-direction: normal;
|
|
18
|
-
flex-direction: column;
|
|
19
|
-
}
|
|
6
|
+
touch-action: none;
|
|
7
|
+
position: relative;
|
|
20
8
|
|
|
21
9
|
&-indicator {
|
|
22
10
|
display: flex;
|
|
@@ -38,6 +26,32 @@
|
|
|
38
26
|
z-index: 1;
|
|
39
27
|
}
|
|
40
28
|
}
|
|
29
|
+
.nut-swiper-inner {
|
|
30
|
+
width: 100%;
|
|
31
|
+
height: 100%;
|
|
32
|
+
display: flex;
|
|
33
|
+
position: relative;
|
|
34
|
+
&-horizontal {
|
|
35
|
+
transform: translateX(var(--swiper-offset));
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
&-vertical {
|
|
39
|
+
transform: translateY(var(--swiper-offset));
|
|
40
|
+
flex-direction: column;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.nut-swiper-slide {
|
|
45
|
+
width: 100%;
|
|
46
|
+
height: 100%;
|
|
47
|
+
position: relative;
|
|
48
|
+
flex-shrink: 0;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.nut-swiper-item {
|
|
52
|
+
width: 100%;
|
|
53
|
+
height: 100%;
|
|
54
|
+
}
|
|
41
55
|
|
|
42
56
|
[dir='rtl'] .nut-swiper,
|
|
43
57
|
.nut-rtl .nut-swiper {
|