@nutui/nutui-react 2.0.0-alpha.4 → 2.0.0-alpha.5
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 +15 -0
- package/dist/esm/Avatar.js +30 -25
- package/dist/esm/AvatarGroup.js +10 -15
- package/dist/esm/Checkbox.js +1 -2
- package/dist/esm/CheckboxGroup.js +18 -20
- package/dist/esm/Ellipsis.js +13 -12
- package/dist/esm/Empty.js +18 -26
- package/dist/esm/Skeleton.js +1 -1
- package/dist/esm/Swipe.js +4 -10
- package/dist/esm/Tabbar/style/index.js +1 -1
- package/dist/esm/cellgroup2.js +5 -4
- package/dist/esm/checkbox2.js +34 -47
- 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/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.mjs +306 -250
- package/dist/nutui.react.umd.js +306 -250
- package/dist/packages/cellgroup/cellgroup.scss +20 -16
- package/dist/packages/checkbox/checkbox.scss +8 -11
- package/dist/packages/empty/empty.scss +0 -9
- package/dist/packages/tabbar/tabbar.scss +1 -0
- package/dist/style.css +1 -1
- package/dist/style.mjs +1 -1
- package/dist/styles/themes/default.scss +0 -1
- package/dist/types/index.d.ts +34 -46
- package/package.json +1 -1
- package/dist/esm/Icon.js +0 -83
- package/dist/packages/icon/icon.scss +0 -0
- /package/dist/esm/{AvatarContext.js → context.js} +0 -0
|
@@ -27,25 +27,29 @@
|
|
|
27
27
|
overflow: hidden;
|
|
28
28
|
background-color: $cell-group-background-color;
|
|
29
29
|
margin: 10px 0;
|
|
30
|
+
.nut-cell {
|
|
31
|
+
margin: 0;
|
|
32
|
+
box-shadow: none;
|
|
33
|
+
border-radius: 0;
|
|
34
|
+
}
|
|
30
35
|
}
|
|
31
36
|
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
box-shadow: none;
|
|
35
|
-
border-radius: 0;
|
|
36
|
-
&__divider {
|
|
37
|
-
position: absolute;
|
|
38
|
-
box-sizing: border-box;
|
|
39
|
-
pointer-events: none;
|
|
40
|
-
right: $cell-divider-right;
|
|
41
|
-
bottom: 0;
|
|
42
|
-
left: $cell-divider-left;
|
|
43
|
-
transform: scaleY(0.5);
|
|
44
|
-
border-bottom: $cell-divider-border-bottom;
|
|
45
|
-
}
|
|
46
|
-
&:last-child {
|
|
37
|
+
&__wrap--divider {
|
|
38
|
+
.nut-cell {
|
|
47
39
|
&__divider {
|
|
48
|
-
|
|
40
|
+
position: absolute;
|
|
41
|
+
box-sizing: border-box;
|
|
42
|
+
pointer-events: none;
|
|
43
|
+
right: $cell-divider-right;
|
|
44
|
+
bottom: 0;
|
|
45
|
+
left: $cell-divider-left;
|
|
46
|
+
transform: scaleY(0.5);
|
|
47
|
+
border-top: $cell-divider-border-bottom;
|
|
48
|
+
}
|
|
49
|
+
&:last-child {
|
|
50
|
+
.nut-cell__divider {
|
|
51
|
+
border-top: 0 !important;
|
|
52
|
+
}
|
|
49
53
|
}
|
|
50
54
|
}
|
|
51
55
|
}
|
|
@@ -1,47 +1,44 @@
|
|
|
1
1
|
|
|
2
|
-
.nut-theme-dark {
|
|
3
|
-
.nut-checkbox {
|
|
4
|
-
&__label {
|
|
5
|
-
color: $dark1;
|
|
6
|
-
&--disabled {
|
|
7
|
-
color: $checkbox-label-disable-color;
|
|
8
|
-
}
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
|
|
13
2
|
.nut-checkbox {
|
|
14
3
|
display: flex;
|
|
15
4
|
align-items: center;
|
|
5
|
+
|
|
16
6
|
&--reverse {
|
|
17
7
|
flex-direction: row-reverse;
|
|
8
|
+
|
|
18
9
|
.nut-checkbox__label {
|
|
19
10
|
margin-right: $checkbox-label-margin-left;
|
|
20
11
|
margin-left: 0;
|
|
21
12
|
}
|
|
22
13
|
}
|
|
14
|
+
|
|
23
15
|
&__label {
|
|
24
16
|
margin-left: $checkbox-label-margin-left;
|
|
25
17
|
font-size: $checkbox-label-font-size;
|
|
26
18
|
color: $checkbox-label-color;
|
|
19
|
+
|
|
27
20
|
&--disabled {
|
|
28
21
|
color: $checkbox-label-disable-color;
|
|
29
22
|
}
|
|
30
23
|
}
|
|
24
|
+
|
|
31
25
|
&__icon {
|
|
32
26
|
color: $primary-color;
|
|
33
27
|
font-size: $checkbox-icon-font-size;
|
|
34
28
|
transition-duration: 0.3s;
|
|
35
29
|
transition-property: color, border-color, background-color;
|
|
36
30
|
}
|
|
31
|
+
|
|
37
32
|
&__icon--unchecked {
|
|
38
33
|
color: $checkbox-icon-disable-color;
|
|
39
34
|
font-size: $checkbox-icon-font-size;
|
|
40
35
|
}
|
|
36
|
+
|
|
41
37
|
&__icon--indeterminate {
|
|
42
38
|
color: $primary-color;
|
|
43
39
|
font-size: $checkbox-icon-font-size;
|
|
44
40
|
}
|
|
41
|
+
|
|
45
42
|
&__icon--disable {
|
|
46
43
|
color: $disable-color;
|
|
47
44
|
font-size: $checkbox-icon-font-size;
|