@nutui/nutui-react 3.0.0-beta.2 → 3.0.0-beta.3
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/cjs/packages/avatar/style/avatar.scss +7 -60
- package/dist/cjs/packages/avatar/style/style.css +5 -43
- package/dist/cjs/packages/badge/badge.js +5 -3
- package/dist/cjs/packages/badge/style/badge.scss +18 -24
- package/dist/cjs/packages/badge/style/style.css +17 -15
- package/dist/cjs/packages/calendarcard/calendarcard.js +8 -3
- package/dist/cjs/packages/calendarcard/style/calendarcard.scss +25 -4
- package/dist/cjs/packages/calendarcard/style/style.css +27 -2
- package/dist/cjs/packages/navbar/navbar.js +10 -5
- package/dist/cjs/packages/navbar/style/navbar.scss +46 -101
- package/dist/cjs/packages/navbar/style/style.css +44 -89
- package/dist/cjs/packages/pagination/pagination.js +2 -0
- package/dist/cjs/packages/pagination/style/pagination.scss +6 -12
- package/dist/cjs/packages/pagination/style/style.css +8 -14
- package/dist/cjs/packages/radio/index.d.ts +8 -2
- package/dist/cjs/packages/radio/index.js +6 -1
- package/dist/cjs/packages/radio/radio.d.ts +1 -4
- package/dist/cjs/packages/radio/radio.js +0 -2
- package/dist/cjs/packages/radio/style/radio.scss +1 -0
- package/dist/cjs/packages/radiogroup/radiogroup.js +1 -1
- package/dist/cjs/packages/safearea/style/safearea.scss +1 -1
- package/dist/cjs/packages/safearea/style/style.css +1 -1
- package/dist/cjs/packages/searchbar/style/searchbar.scss +10 -7
- package/dist/cjs/packages/searchbar/style/style.css +11 -8
- package/dist/cjs/packages/skeleton/style/style.css +5 -43
- package/dist/cjs/packages/tabbar/style/style.css +17 -15
- package/dist/cjs/packages/tabbaritem/style/style.css +17 -15
- package/dist/es/packages/avatar/style/avatar.scss +7 -60
- package/dist/es/packages/avatar/style/style.css +5 -43
- package/dist/es/packages/badge/badge.d.ts +7 -35
- package/dist/es/packages/badge/badge.js +5 -3
- package/dist/es/packages/badge/style/badge.scss +18 -24
- package/dist/es/packages/badge/style/style.css +17 -15
- package/dist/es/packages/calendarcard/calendarcard.d.ts +13 -65
- package/dist/es/packages/calendarcard/calendarcard.js +9 -4
- package/dist/es/packages/calendarcard/style/calendarcard.scss +25 -4
- package/dist/es/packages/calendarcard/style/style.css +27 -2
- package/dist/es/packages/loading/loading.d.ts +3 -15
- package/dist/es/packages/navbar/navbar.js +10 -5
- package/dist/es/packages/navbar/style/navbar.scss +46 -101
- package/dist/es/packages/navbar/style/style.css +44 -89
- package/dist/es/packages/pagination/pagination.js +2 -0
- package/dist/es/packages/pagination/style/pagination.scss +6 -12
- package/dist/es/packages/pagination/style/style.css +8 -14
- package/dist/es/packages/radio/index.d.ts +8 -2
- package/dist/es/packages/radio/index.js +5 -1
- package/dist/es/packages/radio/radio.d.ts +10 -49
- package/dist/es/packages/radio/radio.js +0 -2
- package/dist/es/packages/radio/style/radio.scss +1 -0
- package/dist/es/packages/radiogroup/radiogroup.d.ts +7 -35
- package/dist/es/packages/radiogroup/radiogroup.js +1 -1
- package/dist/es/packages/safearea/safearea.d.ts +1 -5
- package/dist/es/packages/safearea/style/safearea.scss +1 -1
- package/dist/es/packages/safearea/style/style.css +1 -1
- package/dist/es/packages/searchbar/searchbar.d.ts +19 -95
- package/dist/es/packages/searchbar/style/searchbar.scss +10 -7
- package/dist/es/packages/searchbar/style/style.css +11 -8
- package/dist/es/packages/skeleton/style/style.css +5 -43
- package/dist/es/packages/tabbar/style/style.css +17 -15
- package/dist/es/packages/tabbaritem/style/style.css +17 -15
- package/dist/es/packages/video/video.d.ts +5 -25
- package/dist/nutui.react.umd.js +101 -89
- package/dist/style.css +1 -1
- package/dist/styles/themes/default.scss +23 -23
- package/dist/styles/variables.scss +7 -4
- package/package.json +1 -1
- package/dist/cjs/packages/nutui.react.build.rn.d.ts +0 -203
- package/dist/cjs/packages/nutui.react.build.rn.js +0 -418
- package/dist/cjs/packages/nutui.react.rn.d.ts +0 -304
- package/dist/cjs/packages/nutui.react.rn.js +0 -519
- package/dist/cjs/packages/popup/index.rn.d.ts +0 -3
- package/dist/cjs/packages/popup/index.rn.js +0 -12
- package/dist/cjs/packages/popup/popup.rn.d.ts +0 -26
- package/dist/cjs/packages/popup/popup.rn.js +0 -186
- package/dist/es/packages/nutui.react.build.rn.d.ts +0 -203
- package/dist/es/packages/nutui.react.build.rn.js +0 -203
- package/dist/es/packages/nutui.react.rn.d.ts +0 -304
- package/dist/es/packages/nutui.react.rn.js +0 -304
- package/dist/es/packages/popup/index.rn.d.ts +0 -3
- package/dist/es/packages/popup/index.rn.js +0 -2
- package/dist/es/packages/popup/popup.rn.d.ts +0 -26
- package/dist/es/packages/popup/popup.rn.js +0 -174
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
width: $navbar-width;
|
|
3
3
|
position: relative;
|
|
4
4
|
display: flex;
|
|
5
|
+
flex-direction: row;
|
|
6
|
+
justify-content: center;
|
|
5
7
|
align-items: center;
|
|
6
8
|
height: $navbar-height;
|
|
7
9
|
box-sizing: border-box;
|
|
@@ -16,6 +18,7 @@
|
|
|
16
18
|
position: fixed;
|
|
17
19
|
top: 0;
|
|
18
20
|
left: 0;
|
|
21
|
+
right: 0;
|
|
19
22
|
width: 100%;
|
|
20
23
|
}
|
|
21
24
|
|
|
@@ -24,27 +27,32 @@
|
|
|
24
27
|
width: 100%;
|
|
25
28
|
}
|
|
26
29
|
|
|
30
|
+
&-safe-area-inset-top {
|
|
31
|
+
padding-top: constant(safe-area-inset-top);
|
|
32
|
+
padding-top: env(safe-area-inset-top);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
&-align-left {
|
|
36
|
+
padding-left: 14px;
|
|
37
|
+
}
|
|
38
|
+
|
|
27
39
|
&-title {
|
|
28
|
-
|
|
29
|
-
|
|
40
|
+
width: 50%;
|
|
41
|
+
height: 100%;
|
|
30
42
|
text-align: center;
|
|
31
43
|
display: flex;
|
|
44
|
+
flex-direction: row;
|
|
32
45
|
align-items: center;
|
|
33
46
|
justify-content: center;
|
|
34
47
|
font-size: $navbar-title-font-size;
|
|
35
48
|
font-weight: $navbar-title-font-weight;
|
|
36
49
|
color: $navbar-title-font-color;
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
.nut-tabpane {
|
|
47
|
-
display: none;
|
|
50
|
+
&-align-left {
|
|
51
|
+
min-width: 0;
|
|
52
|
+
flex: 1;
|
|
53
|
+
justify-content: flex-start;
|
|
54
|
+
padding: 0 8px;
|
|
55
|
+
text-align: left;
|
|
48
56
|
}
|
|
49
57
|
}
|
|
50
58
|
|
|
@@ -59,125 +67,62 @@
|
|
|
59
67
|
bottom: 0;
|
|
60
68
|
display: flex;
|
|
61
69
|
align-items: center;
|
|
70
|
+
flex-direction: row;
|
|
71
|
+
height: 100%;
|
|
62
72
|
cursor: pointer;
|
|
63
73
|
padding: 0 14px;
|
|
64
|
-
|
|
74
|
+
/* #ifndef rn harmony jd h5 weapp*/
|
|
65
75
|
.nut-icon,
|
|
66
76
|
.nutui-iconfont {
|
|
67
77
|
width: 20px;
|
|
68
78
|
height: 20px;
|
|
69
79
|
font-size: 20px;
|
|
70
80
|
}
|
|
81
|
+
/* #endif */
|
|
71
82
|
}
|
|
72
83
|
|
|
73
84
|
&-left {
|
|
74
85
|
left: 0;
|
|
86
|
+
&-rtl {
|
|
87
|
+
left: auto;
|
|
88
|
+
right: 0;
|
|
89
|
+
}
|
|
90
|
+
&-align-left {
|
|
91
|
+
position: static;
|
|
92
|
+
padding: 0;
|
|
93
|
+
}
|
|
75
94
|
|
|
76
95
|
&-back {
|
|
77
96
|
display: flex;
|
|
97
|
+
flex-direction: row;
|
|
78
98
|
align-items: center;
|
|
79
99
|
justify-content: center;
|
|
80
|
-
|
|
100
|
+
&-children {
|
|
101
|
+
margin-right: 10px;
|
|
102
|
+
&-rtl {
|
|
103
|
+
margin-right: 0;
|
|
104
|
+
margin-left: 10px;
|
|
105
|
+
}
|
|
106
|
+
}
|
|
81
107
|
}
|
|
82
108
|
}
|
|
83
109
|
|
|
84
110
|
&-right {
|
|
85
111
|
right: 0;
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
&:first-child {
|
|
91
|
-
margin-left: 0;
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
&-title-align-left {
|
|
97
|
-
padding-left: 14px;
|
|
98
|
-
|
|
99
|
-
.nut-navbar-left {
|
|
100
|
-
position: static;
|
|
101
|
-
padding: 0;
|
|
102
|
-
|
|
103
|
-
.nut-icon {
|
|
104
|
-
margin-left: 12px;
|
|
105
|
-
|
|
106
|
-
&:first-child {
|
|
107
|
-
margin-left: 0;
|
|
108
|
-
}
|
|
109
|
-
}
|
|
112
|
+
&-rtl {
|
|
113
|
+
right: auto;
|
|
114
|
+
left: 0;
|
|
110
115
|
}
|
|
111
|
-
|
|
116
|
+
&-align-left {
|
|
112
117
|
position: static;
|
|
113
118
|
display: inline-flex;
|
|
114
119
|
white-space: nowrap;
|
|
115
120
|
padding-left: 0;
|
|
116
121
|
}
|
|
117
|
-
.nut-navbar-left-back {
|
|
118
|
-
margin-right: 0;
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
.nut-navbar-title {
|
|
122
|
-
min-width: 0;
|
|
123
|
-
margin: 0;
|
|
124
|
-
flex: 1;
|
|
125
|
-
justify-content: flex-start;
|
|
126
|
-
padding: 0 8px;
|
|
127
|
-
text-align: left;
|
|
128
|
-
}
|
|
129
122
|
}
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
[dir='rtl'] .nut-navbar,
|
|
133
|
-
.nut-rtl .nut-navbar {
|
|
134
|
-
&-fixed {
|
|
135
|
-
left: auto;
|
|
136
|
-
right: 0;
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
&-left {
|
|
140
|
-
left: auto;
|
|
141
|
-
right: 0;
|
|
123
|
+
&-rtl {
|
|
142
124
|
.nut-icon-ArrowLeft {
|
|
143
125
|
transform: rotateY(180deg);
|
|
144
126
|
}
|
|
145
|
-
&-back {
|
|
146
|
-
margin-right: 0;
|
|
147
|
-
margin-left: 10px;
|
|
148
|
-
}
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
&-right {
|
|
152
|
-
right: auto;
|
|
153
|
-
left: 0;
|
|
154
|
-
.nut-icon {
|
|
155
|
-
margin-left: 0;
|
|
156
|
-
margin-right: 12px;
|
|
157
|
-
|
|
158
|
-
&:first-child {
|
|
159
|
-
margin-left: 0;
|
|
160
|
-
margin-right: 0;
|
|
161
|
-
}
|
|
162
|
-
}
|
|
163
|
-
}
|
|
164
|
-
|
|
165
|
-
&-title-align-left {
|
|
166
|
-
.nut-navbar-left {
|
|
167
|
-
.nut-icon-ArrowLeft {
|
|
168
|
-
margin-left: 0;
|
|
169
|
-
margin-right: 12px;
|
|
170
|
-
|
|
171
|
-
&:first-child {
|
|
172
|
-
margin-left: 0;
|
|
173
|
-
margin-right: 0;
|
|
174
|
-
}
|
|
175
|
-
}
|
|
176
|
-
}
|
|
177
|
-
|
|
178
|
-
.nut-navbar-left-back {
|
|
179
|
-
margin-right: 0;
|
|
180
|
-
margin-left: 0;
|
|
181
|
-
}
|
|
182
127
|
}
|
|
183
128
|
}
|
|
@@ -2,11 +2,13 @@
|
|
|
2
2
|
width: var(--nutui-navbar-width, 100%);
|
|
3
3
|
position: relative;
|
|
4
4
|
display: flex;
|
|
5
|
+
flex-direction: row;
|
|
6
|
+
justify-content: center;
|
|
5
7
|
align-items: center;
|
|
6
8
|
height: var(--nutui-navbar-height, 44px);
|
|
7
9
|
box-sizing: border-box;
|
|
8
10
|
background: var(--nutui-navbar-background, var(--nutui-color-background, #f5f6fa));
|
|
9
|
-
box-shadow: var(--nutui-navbar-box-shadow,
|
|
11
|
+
box-shadow: var(--nutui-navbar-box-shadow, 0 0 transparent);
|
|
10
12
|
font-size: var(--nutui-navbar-font-size, var(--nutui-font-size-base, 14px));
|
|
11
13
|
color: var(--nutui-navbar-color, var(--nutui-color-title, #1a1a1a));
|
|
12
14
|
margin-bottom: var(--nutui-navbar-margin-bottom, 20px);
|
|
@@ -16,31 +18,38 @@
|
|
|
16
18
|
position: fixed;
|
|
17
19
|
top: 0;
|
|
18
20
|
left: 0;
|
|
21
|
+
right: 0;
|
|
19
22
|
width: 100%;
|
|
20
23
|
}
|
|
21
24
|
.nut-navbar-placeholder {
|
|
22
25
|
display: inline-block;
|
|
23
26
|
width: 100%;
|
|
24
27
|
}
|
|
28
|
+
.nut-navbar-safe-area-inset-top {
|
|
29
|
+
padding-top: constant(safe-area-inset-top);
|
|
30
|
+
padding-top: env(safe-area-inset-top);
|
|
31
|
+
}
|
|
32
|
+
.nut-navbar-align-left {
|
|
33
|
+
padding-left: 14px;
|
|
34
|
+
}
|
|
25
35
|
.nut-navbar-title {
|
|
26
|
-
|
|
27
|
-
|
|
36
|
+
width: 50%;
|
|
37
|
+
height: 100%;
|
|
28
38
|
text-align: center;
|
|
29
39
|
display: flex;
|
|
40
|
+
flex-direction: row;
|
|
30
41
|
align-items: center;
|
|
31
42
|
justify-content: center;
|
|
32
43
|
font-size: var(--nutui-navbar-title-font-size, var(--nutui-font-size-xl, 18px));
|
|
33
44
|
font-weight: var(--nutui-navbar-title-font-weight, var(--nutui-font-weight-bold, 600));
|
|
34
45
|
color: var(--nutui-navbar-title-font-color, var(--nutui-color-title, #1a1a1a));
|
|
35
46
|
}
|
|
36
|
-
.nut-navbar-title
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
.nut-navbar-title .nut-tabpane {
|
|
43
|
-
display: none;
|
|
47
|
+
.nut-navbar-title-align-left {
|
|
48
|
+
min-width: 0;
|
|
49
|
+
flex: 1;
|
|
50
|
+
justify-content: flex-start;
|
|
51
|
+
padding: 0 8px;
|
|
52
|
+
text-align: left;
|
|
44
53
|
}
|
|
45
54
|
.nut-navbar-title ::-webkit-scrollbar {
|
|
46
55
|
display: none;
|
|
@@ -51,8 +60,12 @@
|
|
|
51
60
|
bottom: 0;
|
|
52
61
|
display: flex;
|
|
53
62
|
align-items: center;
|
|
63
|
+
flex-direction: row;
|
|
64
|
+
height: 100%;
|
|
54
65
|
cursor: pointer;
|
|
55
66
|
padding: 0 14px;
|
|
67
|
+
/* #ifndef rn harmony jd h5 weapp*/
|
|
68
|
+
/* #endif */
|
|
56
69
|
}
|
|
57
70
|
.nut-navbar-left .nut-icon,
|
|
58
71
|
.nut-navbar-left .nutui-iconfont, .nut-navbar-right .nut-icon,
|
|
@@ -64,98 +77,40 @@
|
|
|
64
77
|
.nut-navbar-left {
|
|
65
78
|
left: 0;
|
|
66
79
|
}
|
|
80
|
+
.nut-navbar-left-rtl {
|
|
81
|
+
left: auto;
|
|
82
|
+
right: 0;
|
|
83
|
+
}
|
|
84
|
+
.nut-navbar-left-align-left {
|
|
85
|
+
position: static;
|
|
86
|
+
padding: 0;
|
|
87
|
+
}
|
|
67
88
|
.nut-navbar-left-back {
|
|
68
89
|
display: flex;
|
|
90
|
+
flex-direction: row;
|
|
69
91
|
align-items: center;
|
|
70
92
|
justify-content: center;
|
|
93
|
+
}
|
|
94
|
+
.nut-navbar-left-back-children {
|
|
71
95
|
margin-right: 10px;
|
|
72
96
|
}
|
|
97
|
+
.nut-navbar-left-back-children-rtl {
|
|
98
|
+
margin-right: 0;
|
|
99
|
+
margin-left: 10px;
|
|
100
|
+
}
|
|
73
101
|
.nut-navbar-right {
|
|
74
102
|
right: 0;
|
|
75
103
|
}
|
|
76
|
-
.nut-navbar-right
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
.nut-navbar-right .nut-icon:first-child {
|
|
80
|
-
margin-left: 0;
|
|
81
|
-
}
|
|
82
|
-
.nut-navbar-title-align-left {
|
|
83
|
-
padding-left: 14px;
|
|
84
|
-
}
|
|
85
|
-
.nut-navbar-title-align-left .nut-navbar-left {
|
|
86
|
-
position: static;
|
|
87
|
-
padding: 0;
|
|
88
|
-
}
|
|
89
|
-
.nut-navbar-title-align-left .nut-navbar-left .nut-icon {
|
|
90
|
-
margin-left: 12px;
|
|
91
|
-
}
|
|
92
|
-
.nut-navbar-title-align-left .nut-navbar-left .nut-icon:first-child {
|
|
93
|
-
margin-left: 0;
|
|
104
|
+
.nut-navbar-right-rtl {
|
|
105
|
+
right: auto;
|
|
106
|
+
left: 0;
|
|
94
107
|
}
|
|
95
|
-
.nut-navbar-
|
|
108
|
+
.nut-navbar-right-align-left {
|
|
96
109
|
position: static;
|
|
97
110
|
display: inline-flex;
|
|
98
111
|
white-space: nowrap;
|
|
99
112
|
padding-left: 0;
|
|
100
113
|
}
|
|
101
|
-
.nut-navbar-
|
|
102
|
-
margin-right: 0;
|
|
103
|
-
}
|
|
104
|
-
.nut-navbar-title-align-left .nut-navbar-title {
|
|
105
|
-
min-width: 0;
|
|
106
|
-
margin: 0;
|
|
107
|
-
flex: 1;
|
|
108
|
-
justify-content: flex-start;
|
|
109
|
-
padding: 0 8px;
|
|
110
|
-
text-align: left;
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
[dir=rtl] .nut-navbar-fixed,
|
|
114
|
-
.nut-rtl .nut-navbar-fixed {
|
|
115
|
-
left: auto;
|
|
116
|
-
right: 0;
|
|
117
|
-
}
|
|
118
|
-
[dir=rtl] .nut-navbar-left,
|
|
119
|
-
.nut-rtl .nut-navbar-left {
|
|
120
|
-
left: auto;
|
|
121
|
-
right: 0;
|
|
122
|
-
}
|
|
123
|
-
[dir=rtl] .nut-navbar-left .nut-icon-ArrowLeft,
|
|
124
|
-
.nut-rtl .nut-navbar-left .nut-icon-ArrowLeft {
|
|
114
|
+
.nut-navbar-rtl .nut-icon-ArrowLeft {
|
|
125
115
|
transform: rotateY(180deg);
|
|
126
|
-
}
|
|
127
|
-
[dir=rtl] .nut-navbar-left-back,
|
|
128
|
-
.nut-rtl .nut-navbar-left-back {
|
|
129
|
-
margin-right: 0;
|
|
130
|
-
margin-left: 10px;
|
|
131
|
-
}
|
|
132
|
-
[dir=rtl] .nut-navbar-right,
|
|
133
|
-
.nut-rtl .nut-navbar-right {
|
|
134
|
-
right: auto;
|
|
135
|
-
left: 0;
|
|
136
|
-
}
|
|
137
|
-
[dir=rtl] .nut-navbar-right .nut-icon,
|
|
138
|
-
.nut-rtl .nut-navbar-right .nut-icon {
|
|
139
|
-
margin-left: 0;
|
|
140
|
-
margin-right: 12px;
|
|
141
|
-
}
|
|
142
|
-
[dir=rtl] .nut-navbar-right .nut-icon:first-child,
|
|
143
|
-
.nut-rtl .nut-navbar-right .nut-icon:first-child {
|
|
144
|
-
margin-left: 0;
|
|
145
|
-
margin-right: 0;
|
|
146
|
-
}
|
|
147
|
-
[dir=rtl] .nut-navbar-title-align-left .nut-navbar-left .nut-icon-ArrowLeft,
|
|
148
|
-
.nut-rtl .nut-navbar-title-align-left .nut-navbar-left .nut-icon-ArrowLeft {
|
|
149
|
-
margin-left: 0;
|
|
150
|
-
margin-right: 12px;
|
|
151
|
-
}
|
|
152
|
-
[dir=rtl] .nut-navbar-title-align-left .nut-navbar-left .nut-icon-ArrowLeft:first-child,
|
|
153
|
-
.nut-rtl .nut-navbar-title-align-left .nut-navbar-left .nut-icon-ArrowLeft:first-child {
|
|
154
|
-
margin-left: 0;
|
|
155
|
-
margin-right: 0;
|
|
156
|
-
}
|
|
157
|
-
[dir=rtl] .nut-navbar-title-align-left .nut-navbar-left-back,
|
|
158
|
-
.nut-rtl .nut-navbar-title-align-left .nut-navbar-left-back {
|
|
159
|
-
margin-right: 0;
|
|
160
|
-
margin-left: 0;
|
|
161
116
|
}
|
|
@@ -140,6 +140,8 @@ var Pagination = function Pagination(props) {
|
|
|
140
140
|
}, /*#__PURE__*/ _react.default.createElement("div", {
|
|
141
141
|
className: "".concat(classPrefix, "-lite-active")
|
|
142
142
|
}, currentPage), /*#__PURE__*/ _react.default.createElement("div", {
|
|
143
|
+
className: "".concat(classPrefix, "-lite-spliterator")
|
|
144
|
+
}, "/"), /*#__PURE__*/ _react.default.createElement("div", {
|
|
143
145
|
className: "".concat(classPrefix, "-lite-default")
|
|
144
146
|
}, pageCount)));
|
|
145
147
|
};
|
|
@@ -67,10 +67,11 @@
|
|
|
67
67
|
}
|
|
68
68
|
|
|
69
69
|
.nut-pagination-lite {
|
|
70
|
-
width: $pagination-lite-width;
|
|
71
70
|
height: $pagination-lite-height;
|
|
71
|
+
padding: 0 $spacing-xs;
|
|
72
72
|
display: flex;
|
|
73
73
|
flex-direction: row;
|
|
74
|
+
align-items: center;
|
|
74
75
|
color: $color-primary-text;
|
|
75
76
|
background-color: $pagination-lite-background-color;
|
|
76
77
|
border-radius: $pagination-lite-radius;
|
|
@@ -78,18 +79,11 @@
|
|
|
78
79
|
|
|
79
80
|
.nut-pagination-lite-active,
|
|
80
81
|
.nut-pagination-lite-default {
|
|
81
|
-
|
|
82
|
-
align-items: center;
|
|
83
|
-
justify-content: center;
|
|
84
|
-
width: $pagination-lite-height;
|
|
85
|
-
height: $pagination-lite-height;
|
|
86
|
-
font-size: $font-size-s;
|
|
82
|
+
font-size: $font-size-xs;
|
|
87
83
|
color: $pagination-lite-color;
|
|
88
|
-
font-weight: 400;
|
|
89
84
|
}
|
|
90
85
|
|
|
91
|
-
.nut-pagination-lite-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
background-color: $pagination-lite-active-background-color;
|
|
86
|
+
.nut-pagination-lite-spliterator {
|
|
87
|
+
font-size: $font-size-xs;
|
|
88
|
+
color: $pagination-lite-color;
|
|
95
89
|
}
|
|
@@ -66,29 +66,23 @@
|
|
|
66
66
|
}
|
|
67
67
|
|
|
68
68
|
.nut-pagination-lite {
|
|
69
|
-
width: var(--nutui-pagination-lite-width, 40px);
|
|
70
69
|
height: var(--nutui-pagination-lite-height, 20px);
|
|
70
|
+
padding: 0 var(--nutui-spacing-xs, 6px);
|
|
71
71
|
display: flex;
|
|
72
72
|
flex-direction: row;
|
|
73
|
+
align-items: center;
|
|
73
74
|
color: var(--nutui-color-primary-text, #ffffff);
|
|
74
|
-
background-color: var(--nutui-pagination-lite-background-color,
|
|
75
|
-
border-radius: var(--nutui-pagination-lite-radius,
|
|
75
|
+
background-color: var(--nutui-pagination-lite-background-color, rgba(0, 0, 0, 0.45));
|
|
76
|
+
border-radius: var(--nutui-pagination-lite-radius, var(--nutui-radius-xs, 4px));
|
|
76
77
|
}
|
|
77
78
|
|
|
78
79
|
.nut-pagination-lite-active,
|
|
79
80
|
.nut-pagination-lite-default {
|
|
80
|
-
|
|
81
|
-
align-items: center;
|
|
82
|
-
justify-content: center;
|
|
83
|
-
width: var(--nutui-pagination-lite-height, 20px);
|
|
84
|
-
height: var(--nutui-pagination-lite-height, 20px);
|
|
85
|
-
font-size: var(--nutui-font-size-s, 12px);
|
|
81
|
+
font-size: var(--nutui-font-size-xs, 11px);
|
|
86
82
|
color: var(--nutui-pagination-lite-color, #ffffff);
|
|
87
|
-
font-weight: 400;
|
|
88
83
|
}
|
|
89
84
|
|
|
90
|
-
.nut-pagination-lite-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
background-color: var(--nutui-pagination-lite-active-background-color, var(--nutui-black-5));
|
|
85
|
+
.nut-pagination-lite-spliterator {
|
|
86
|
+
font-size: var(--nutui-font-size-xs, 11px);
|
|
87
|
+
color: var(--nutui-pagination-lite-color, #ffffff);
|
|
94
88
|
}
|
|
@@ -1,4 +1,10 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { RadioProps } from './radio';
|
|
3
|
+
import { RadioGroup } from '../radiogroup/radiogroup';
|
|
2
4
|
export type { RadioProps } from './radio';
|
|
3
5
|
export type { RadioShape, RadioPosition } from './types';
|
|
4
|
-
|
|
6
|
+
type CompoundedComponent = React.FC<Partial<RadioProps> & Omit<React.HTMLAttributes<HTMLDivElement>, 'onChange'>> & {
|
|
7
|
+
Group: typeof RadioGroup;
|
|
8
|
+
};
|
|
9
|
+
declare const InnerRadio: CompoundedComponent;
|
|
10
|
+
export default InnerRadio;
|
|
@@ -8,5 +8,10 @@ Object.defineProperty(exports, "default", {
|
|
|
8
8
|
return _default;
|
|
9
9
|
}
|
|
10
10
|
});
|
|
11
|
+
var _interop_require_default = require("@swc/helpers/_/_interop_require_default");
|
|
12
|
+
var _react = /*#__PURE__*/ _interop_require_default._(require("react"));
|
|
11
13
|
var _radio = require("./radio");
|
|
12
|
-
var
|
|
14
|
+
var _radiogroup = require("../radiogroup/radiogroup");
|
|
15
|
+
var InnerRadio = _radio.Radio;
|
|
16
|
+
InnerRadio.Group = _radiogroup.RadioGroup;
|
|
17
|
+
var _default = InnerRadio;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import React, { FunctionComponent } from 'react';
|
|
2
|
-
import RadioGroup from "../radiogroup";
|
|
3
2
|
import { BasicComponent } from "../../utils/typings";
|
|
4
3
|
import { RadioPosition, RadioShape } from "./types";
|
|
5
4
|
export interface RadioProps extends BasicComponent {
|
|
@@ -13,6 +12,4 @@ export interface RadioProps extends BasicComponent {
|
|
|
13
12
|
value: string | number;
|
|
14
13
|
onChange: (checked: boolean) => void;
|
|
15
14
|
}
|
|
16
|
-
export declare const Radio: FunctionComponent<Partial<RadioProps> & Omit<React.HTMLAttributes<HTMLDivElement>, 'onChange'
|
|
17
|
-
Group: typeof RadioGroup;
|
|
18
|
-
};
|
|
15
|
+
export declare const Radio: FunctionComponent<Partial<RadioProps> & Omit<React.HTMLAttributes<HTMLDivElement>, 'onChange'>>;
|
|
@@ -19,7 +19,6 @@ var _react = /*#__PURE__*/ _interop_require_wildcard._(require("react"));
|
|
|
19
19
|
var _iconsreact = require("@nutui/icons-react");
|
|
20
20
|
var _classnames = /*#__PURE__*/ _interop_require_default._(require("classnames"));
|
|
21
21
|
var _context = /*#__PURE__*/ _interop_require_default._(require("../radiogroup/context"));
|
|
22
|
-
var _radiogroup = /*#__PURE__*/ _interop_require_default._(require("../radiogroup"));
|
|
23
22
|
var _typings = require("../../utils/typings");
|
|
24
23
|
var _usepropsvalue = require("../../utils/use-props-value");
|
|
25
24
|
var defaultProps = (0, _object_spread_props._)((0, _object_spread._)({}, _typings.ComponentDefaults), {
|
|
@@ -129,4 +128,3 @@ var Radio = function Radio(props) {
|
|
|
129
128
|
}, rest), renderRadioItem());
|
|
130
129
|
};
|
|
131
130
|
Radio.displayName = 'NutRadio';
|
|
132
|
-
Radio.Group = _radiogroup.default;
|
|
@@ -40,7 +40,7 @@ var RadioGroup = /*#__PURE__*/ _react.default.forwardRef(function(props, ref) {
|
|
|
40
40
|
"options",
|
|
41
41
|
"disabled"
|
|
42
42
|
]);
|
|
43
|
-
var cls = (0, _classnames.default)(classPrefix, (0, _define_property._)({}, "".concat(classPrefix, "-").concat(
|
|
43
|
+
var cls = (0, _classnames.default)(classPrefix, (0, _define_property._)({}, "".concat(classPrefix, "-").concat(direction), direction), className);
|
|
44
44
|
var _usePropsValue = (0, _sliced_to_array._)((0, _usepropsvalue.usePropsValue)({
|
|
45
45
|
defaultValue: props.defaultValue,
|
|
46
46
|
value: props.value,
|
|
@@ -35,7 +35,8 @@
|
|
|
35
35
|
|
|
36
36
|
&-left,
|
|
37
37
|
&-right {
|
|
38
|
-
display: flex;
|
|
38
|
+
display: inline-flex;
|
|
39
|
+
align-items: center;
|
|
39
40
|
|
|
40
41
|
&.nut-icon {
|
|
41
42
|
width: 20px;
|
|
@@ -48,7 +49,9 @@
|
|
|
48
49
|
|
|
49
50
|
& > div,
|
|
50
51
|
& > span,
|
|
51
|
-
& >
|
|
52
|
+
& > i,
|
|
53
|
+
& > svg,
|
|
54
|
+
.nut-icon {
|
|
52
55
|
margin-right: $searchbar-gap;
|
|
53
56
|
|
|
54
57
|
&:last-child {
|
|
@@ -59,10 +62,11 @@
|
|
|
59
62
|
|
|
60
63
|
&-right {
|
|
61
64
|
margin-left: $searchbar-gap;
|
|
62
|
-
|
|
63
65
|
& > div,
|
|
64
66
|
& > span,
|
|
65
|
-
& >
|
|
67
|
+
& > i,
|
|
68
|
+
& > svg,
|
|
69
|
+
.nut-icon {
|
|
66
70
|
margin-left: $searchbar-gap;
|
|
67
71
|
|
|
68
72
|
&:first-child {
|
|
@@ -89,7 +93,8 @@
|
|
|
89
93
|
}
|
|
90
94
|
}
|
|
91
95
|
|
|
92
|
-
&-input-box
|
|
96
|
+
&-input-box,
|
|
97
|
+
&-input {
|
|
93
98
|
display: flex;
|
|
94
99
|
align-items: center;
|
|
95
100
|
flex: 1;
|
|
@@ -100,8 +105,6 @@
|
|
|
100
105
|
outline: 0;
|
|
101
106
|
box-sizing: border-box;
|
|
102
107
|
width: 100%;
|
|
103
|
-
height: $searchbar-input-height;
|
|
104
|
-
line-height: $searchbar-input-height;
|
|
105
108
|
padding: $searchbar-input-padding;
|
|
106
109
|
font-size: $searchbar-font-size;
|
|
107
110
|
color: $searchbar-input-text-color;
|
|
@@ -30,7 +30,8 @@
|
|
|
30
30
|
color: var(--nutui-black-5);
|
|
31
31
|
}
|
|
32
32
|
.nut-searchbar-left, .nut-searchbar-right {
|
|
33
|
-
display: flex;
|
|
33
|
+
display: inline-flex;
|
|
34
|
+
align-items: center;
|
|
34
35
|
}
|
|
35
36
|
.nut-searchbar-left.nut-icon, .nut-searchbar-right.nut-icon {
|
|
36
37
|
width: 20px;
|
|
@@ -39,19 +40,23 @@
|
|
|
39
40
|
.nut-searchbar-left {
|
|
40
41
|
margin-right: var(--nutui-searchbar-gap, 16px);
|
|
41
42
|
}
|
|
42
|
-
.nut-searchbar-left > div, .nut-searchbar-left > span, .nut-searchbar-left > svg
|
|
43
|
+
.nut-searchbar-left > div, .nut-searchbar-left > span, .nut-searchbar-left > i, .nut-searchbar-left > svg,
|
|
44
|
+
.nut-searchbar-left .nut-icon {
|
|
43
45
|
margin-right: var(--nutui-searchbar-gap, 16px);
|
|
44
46
|
}
|
|
45
|
-
.nut-searchbar-left > div:last-child, .nut-searchbar-left > span:last-child, .nut-searchbar-left > svg:last-child
|
|
47
|
+
.nut-searchbar-left > div:last-child, .nut-searchbar-left > span:last-child, .nut-searchbar-left > i:last-child, .nut-searchbar-left > svg:last-child,
|
|
48
|
+
.nut-searchbar-left .nut-icon:last-child {
|
|
46
49
|
margin-right: 0;
|
|
47
50
|
}
|
|
48
51
|
.nut-searchbar-right {
|
|
49
52
|
margin-left: var(--nutui-searchbar-gap, 16px);
|
|
50
53
|
}
|
|
51
|
-
.nut-searchbar-right > div, .nut-searchbar-right > span, .nut-searchbar-right > svg
|
|
54
|
+
.nut-searchbar-right > div, .nut-searchbar-right > span, .nut-searchbar-right > i, .nut-searchbar-right > svg,
|
|
55
|
+
.nut-searchbar-right .nut-icon {
|
|
52
56
|
margin-left: var(--nutui-searchbar-gap, 16px);
|
|
53
57
|
}
|
|
54
|
-
.nut-searchbar-right > div:first-child, .nut-searchbar-right > span:first-child, .nut-searchbar-right > svg:first-child
|
|
58
|
+
.nut-searchbar-right > div:first-child, .nut-searchbar-right > span:first-child, .nut-searchbar-right > i:first-child, .nut-searchbar-right > svg:first-child,
|
|
59
|
+
.nut-searchbar-right .nut-icon:first-child {
|
|
55
60
|
margin-left: 0;
|
|
56
61
|
}
|
|
57
62
|
.nut-searchbar-left > text, .nut-searchbar-left > view {
|
|
@@ -66,7 +71,7 @@
|
|
|
66
71
|
.nut-searchbar-right > text:first-child, .nut-searchbar-right > view:first-child {
|
|
67
72
|
margin-left: 0;
|
|
68
73
|
}
|
|
69
|
-
.nut-searchbar-input-box {
|
|
74
|
+
.nut-searchbar-input-box, .nut-searchbar-input {
|
|
70
75
|
display: flex;
|
|
71
76
|
align-items: center;
|
|
72
77
|
flex: 1;
|
|
@@ -76,8 +81,6 @@
|
|
|
76
81
|
outline: 0;
|
|
77
82
|
box-sizing: border-box;
|
|
78
83
|
width: 100%;
|
|
79
|
-
height: var(--nutui-searchbar-input-height, 32px);
|
|
80
|
-
line-height: var(--nutui-searchbar-input-height, 32px);
|
|
81
84
|
padding: var(--nutui-searchbar-input-padding, 0 4px);
|
|
82
85
|
font-size: var(--nutui-searchbar-font-size, var(--nutui-font-size-base, 14px));
|
|
83
86
|
color: var(--nutui-searchbar-input-text-color, var(--nutui-color-title, #1a1a1a));
|