@nutui/nutui-react-taro 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.
Files changed (90) hide show
  1. package/dist/cjs/packages/avatar/avatar.js +14 -16
  2. package/dist/cjs/packages/avatar/style/avatar.scss +7 -60
  3. package/dist/cjs/packages/avatar/style/style.css +5 -43
  4. package/dist/cjs/packages/avatar/style/style.harmony.css +5 -43
  5. package/dist/cjs/packages/badge/badge.js +67 -12
  6. package/dist/cjs/packages/badge/style/badge.scss +18 -24
  7. package/dist/cjs/packages/badge/style/style.css +17 -15
  8. package/dist/cjs/packages/badge/style/style.harmony.css +22 -17
  9. package/dist/cjs/packages/calendarcard/calendarcard.js +8 -3
  10. package/dist/cjs/packages/calendarcard/icon.js +14 -2
  11. package/dist/cjs/packages/calendarcard/style/calendarcard.scss +25 -4
  12. package/dist/cjs/packages/calendarcard/style/style.css +27 -2
  13. package/dist/cjs/packages/image/image.js +5 -5
  14. package/dist/cjs/packages/input/style/style.harmony.css +4 -0
  15. package/dist/cjs/packages/navbar/navbar.js +17 -8
  16. package/dist/cjs/packages/navbar/style/navbar.scss +46 -101
  17. package/dist/cjs/packages/navbar/style/style.css +44 -89
  18. package/dist/cjs/packages/navbar/style/style.harmony.css +45 -93
  19. package/dist/cjs/packages/pagination/pagination.js +2 -0
  20. package/dist/cjs/packages/pagination/style/pagination.scss +6 -12
  21. package/dist/cjs/packages/pagination/style/style.css +8 -14
  22. package/dist/cjs/packages/radio/index.d.ts +8 -2
  23. package/dist/cjs/packages/radio/index.js +6 -1
  24. package/dist/cjs/packages/radio/radio.d.ts +2 -5
  25. package/dist/cjs/packages/radio/radio.js +2 -4
  26. package/dist/cjs/packages/radio/style/radio.scss +1 -0
  27. package/dist/cjs/packages/radiogroup/radiogroup.d.ts +2 -1
  28. package/dist/cjs/packages/radiogroup/radiogroup.js +3 -2
  29. package/dist/cjs/packages/safearea/style/safearea.scss +1 -1
  30. package/dist/cjs/packages/safearea/style/style.css +1 -1
  31. package/dist/cjs/packages/safearea/style/style.harmony.css +1 -1
  32. package/dist/cjs/packages/searchbar/searchbar.d.ts +1 -1
  33. package/dist/cjs/packages/searchbar/searchbar.js +31 -33
  34. package/dist/cjs/packages/searchbar/style/searchbar.scss +10 -7
  35. package/dist/cjs/packages/searchbar/style/style.css +11 -8
  36. package/dist/cjs/packages/searchbar/style/style.harmony.css +25 -12
  37. package/dist/cjs/packages/skeleton/style/style.css +5 -43
  38. package/dist/cjs/packages/tabbar/style/style.css +17 -15
  39. package/dist/cjs/packages/tabbaritem/style/style.css +17 -15
  40. package/dist/cjs/packages/video/video.js +3 -3
  41. package/dist/es/packages/avatar/avatar.js +14 -16
  42. package/dist/es/packages/avatar/style/avatar.scss +7 -60
  43. package/dist/es/packages/avatar/style/style.css +5 -43
  44. package/dist/es/packages/avatar/style/style.harmony.css +5 -43
  45. package/dist/es/packages/badge/badge.d.ts +7 -35
  46. package/dist/es/packages/badge/badge.js +66 -12
  47. package/dist/es/packages/badge/style/badge.scss +18 -24
  48. package/dist/es/packages/badge/style/style.css +17 -15
  49. package/dist/es/packages/badge/style/style.harmony.css +22 -17
  50. package/dist/es/packages/calendarcard/calendarcard.d.ts +13 -65
  51. package/dist/es/packages/calendarcard/calendarcard.js +9 -4
  52. package/dist/es/packages/calendarcard/icon.js +15 -3
  53. package/dist/es/packages/calendarcard/style/calendarcard.scss +25 -4
  54. package/dist/es/packages/calendarcard/style/style.css +27 -2
  55. package/dist/es/packages/image/image.js +5 -5
  56. package/dist/es/packages/input/style/style.harmony.css +4 -0
  57. package/dist/es/packages/loading/loading.d.ts +3 -15
  58. package/dist/es/packages/navbar/navbar.js +17 -8
  59. package/dist/es/packages/navbar/style/navbar.scss +46 -101
  60. package/dist/es/packages/navbar/style/style.css +44 -89
  61. package/dist/es/packages/navbar/style/style.harmony.css +45 -93
  62. package/dist/es/packages/pagination/pagination.js +2 -0
  63. package/dist/es/packages/pagination/style/pagination.scss +6 -12
  64. package/dist/es/packages/pagination/style/style.css +8 -14
  65. package/dist/es/packages/radio/index.d.ts +8 -2
  66. package/dist/es/packages/radio/index.js +5 -1
  67. package/dist/es/packages/radio/radio.d.ts +11 -50
  68. package/dist/es/packages/radio/radio.js +3 -5
  69. package/dist/es/packages/radio/style/radio.scss +1 -0
  70. package/dist/es/packages/radiogroup/radiogroup.d.ts +9 -36
  71. package/dist/es/packages/radiogroup/radiogroup.js +3 -2
  72. package/dist/es/packages/safearea/safearea.d.ts +1 -5
  73. package/dist/es/packages/safearea/style/safearea.scss +1 -1
  74. package/dist/es/packages/safearea/style/style.css +1 -1
  75. package/dist/es/packages/safearea/style/style.harmony.css +1 -1
  76. package/dist/es/packages/searchbar/searchbar.d.ts +19 -95
  77. package/dist/es/packages/searchbar/searchbar.js +32 -34
  78. package/dist/es/packages/searchbar/style/searchbar.scss +10 -7
  79. package/dist/es/packages/searchbar/style/style.css +11 -8
  80. package/dist/es/packages/searchbar/style/style.harmony.css +25 -12
  81. package/dist/es/packages/skeleton/style/style.css +5 -43
  82. package/dist/es/packages/tabbar/style/style.css +17 -15
  83. package/dist/es/packages/tabbaritem/style/style.css +17 -15
  84. package/dist/es/packages/video/video.d.ts +5 -25
  85. package/dist/es/packages/video/video.js +3 -3
  86. package/dist/nutui.react.umd.js +256 -199
  87. package/dist/style.css +1 -1
  88. package/dist/styles/themes/default.scss +25 -25
  89. package/dist/styles/variables.scss +7 -4
  90. package/package.json +2 -2
@@ -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, 0px);
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
- min-width: 53%;
27
- margin: 0 auto;
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 .nut-tabs-titles {
37
- background: transparent;
38
- }
39
- .nut-navbar-title .nut-tabs-titles-item-text {
40
- color: var(--nutui-color-title, #1a1a1a);
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 .nut-icon {
77
- margin-left: 12px;
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-title-align-left .nut-navbar-right {
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-title-align-left .nut-navbar-left-back {
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
  }
@@ -2,13 +2,15 @@
2
2
  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: 44px;
7
9
  box-sizing: border-box;
8
- background: #F7F8FC;
9
- box-shadow: 0px;
10
+ background: #f5f6fa;
11
+ box-shadow: 0 0 transparent;
10
12
  font-size: 14px;
11
- color: #1A1A1A;
13
+ color: #1a1a1a;
12
14
  margin-bottom: 20px;
13
15
  overflow: hidden;
14
16
  }
@@ -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
  .nut-navbar-placeholder {
@@ -26,25 +29,27 @@
26
29
  padding-top: constant(safe-area-inset-top);
27
30
  padding-top: env(safe-area-inset-top);
28
31
  }
32
+ .nut-navbar-align-left {
33
+ padding-left: 14px;
34
+ }
29
35
  .nut-navbar-title {
30
- min-width: 53%;
31
- margin: 0 auto;
36
+ width: 50%;
37
+ height: 100%;
32
38
  text-align: center;
33
39
  display: flex;
40
+ flex-direction: row;
34
41
  align-items: center;
35
42
  justify-content: center;
36
- font-size: 18px;
37
- font-weight: 500;
38
- color: #1A1A1A;
39
- }
40
- .nut-navbar-title .nut-tabs-titles {
41
- background: transparent;
42
- }
43
- .nut-navbar-title .nut-tabs-titles-item-text {
44
- color: #1A1A1A;
43
+ font-size: 20px;
44
+ font-weight: 600;
45
+ color: #1a1a1a;
45
46
  }
46
- .nut-navbar-title .nut-tabpane {
47
- 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;
48
53
  }
49
54
  .nut-navbar-title ::-webkit-scrollbar {
50
55
  display: none;
@@ -55,8 +60,12 @@
55
60
  bottom: 0;
56
61
  display: flex;
57
62
  align-items: center;
63
+ flex-direction: row;
64
+ height: 100%;
58
65
  cursor: pointer;
59
66
  padding: 0 14px;
67
+ /* #ifndef rn harmony jd h5 weapp*/
68
+ /* #endif */
60
69
  }
61
70
  .nut-navbar-left .nut-icon,
62
71
  .nut-navbar-left .nutui-iconfont, .nut-navbar-right .nut-icon,
@@ -68,97 +77,40 @@
68
77
  .nut-navbar-left {
69
78
  left: 0;
70
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
+ }
71
88
  .nut-navbar-left-back {
72
89
  display: flex;
90
+ flex-direction: row;
73
91
  align-items: center;
74
92
  justify-content: center;
93
+ }
94
+ .nut-navbar-left-back-children {
75
95
  margin-right: 10px;
76
96
  }
97
+ .nut-navbar-left-back-children-rtl {
98
+ margin-right: 0;
99
+ margin-left: 10px;
100
+ }
77
101
  .nut-navbar-right {
78
102
  right: 0;
79
103
  }
80
- .nut-navbar-right .nut-icon {
81
- margin-left: 12px;
82
- }
83
- .nut-navbar-right .nut-icon:first-child {
84
- margin-left: 0;
85
- }
86
- .nut-navbar-title-align-left {
87
- padding-left: 14px;
88
- }
89
- .nut-navbar-title-align-left .nut-navbar-left {
90
- position: static;
91
- padding: 0;
92
- }
93
- .nut-navbar-title-align-left .nut-navbar-left .nut-icon {
94
- margin-left: 12px;
95
- }
96
- .nut-navbar-title-align-left .nut-navbar-left .nut-icon:first-child {
97
- margin-left: 0;
104
+ .nut-navbar-right-rtl {
105
+ right: auto;
106
+ left: 0;
98
107
  }
99
- .nut-navbar-title-align-left .nut-navbar-right {
108
+ .nut-navbar-right-align-left {
100
109
  position: static;
101
110
  display: inline-flex;
102
111
  white-space: nowrap;
103
112
  padding-left: 0;
104
113
  }
105
- .nut-navbar-title-align-left .nut-navbar-left-back {
106
- margin-right: 0;
107
- }
108
- .nut-navbar-title-align-left .nut-navbar-title {
109
- min-width: 0;
110
- margin: 0;
111
- flex: 1;
112
- justify-content: flex-start;
113
- padding: 0 8px;
114
- }
115
-
116
- [dir=rtl] .nut-navbar-fixed,
117
- .nut-rtl .nut-navbar-fixed {
118
- left: auto;
119
- right: 0;
120
- }
121
- [dir=rtl] .nut-navbar-left,
122
- .nut-rtl .nut-navbar-left {
123
- left: auto;
124
- right: 0;
125
- }
126
- [dir=rtl] .nut-navbar-left .nut-icon-ArrowLeft,
127
- .nut-rtl .nut-navbar-left .nut-icon-ArrowLeft {
114
+ .nut-navbar-rtl .nut-icon-ArrowLeft {
128
115
  transform: rotateY(180deg);
129
- }
130
- [dir=rtl] .nut-navbar-left-back,
131
- .nut-rtl .nut-navbar-left-back {
132
- margin-right: 0;
133
- margin-left: 10px;
134
- }
135
- [dir=rtl] .nut-navbar-right,
136
- .nut-rtl .nut-navbar-right {
137
- right: auto;
138
- left: 0;
139
- }
140
- [dir=rtl] .nut-navbar-right .nut-icon,
141
- .nut-rtl .nut-navbar-right .nut-icon {
142
- margin-left: 0;
143
- margin-right: 12px;
144
- }
145
- [dir=rtl] .nut-navbar-right .nut-icon:first-child,
146
- .nut-rtl .nut-navbar-right .nut-icon:first-child {
147
- margin-left: 0;
148
- margin-right: 0;
149
- }
150
- [dir=rtl] .nut-navbar-title-align-left .nut-navbar-left .nut-icon-ArrowLeft,
151
- .nut-rtl .nut-navbar-title-align-left .nut-navbar-left .nut-icon-ArrowLeft {
152
- margin-left: 0;
153
- margin-right: 12px;
154
- }
155
- [dir=rtl] .nut-navbar-title-align-left .nut-navbar-left .nut-icon-ArrowLeft:first-child,
156
- .nut-rtl .nut-navbar-title-align-left .nut-navbar-left .nut-icon-ArrowLeft:first-child {
157
- margin-left: 0;
158
- margin-right: 0;
159
- }
160
- [dir=rtl] .nut-navbar-title-align-left .nut-navbar-left-back,
161
- .nut-rtl .nut-navbar-title-align-left .nut-navbar-left-back {
162
- margin-right: 0;
163
- margin-left: 0;
164
116
  }
@@ -130,6 +130,8 @@ export var Pagination = function(props) {
130
130
  }, /*#__PURE__*/ React.createElement(View, {
131
131
  className: "".concat(classPrefix, "-lite-active")
132
132
  }, currentPage), /*#__PURE__*/ React.createElement(View, {
133
+ className: "".concat(classPrefix, "-lite-spliterator")
134
+ }, "/"), /*#__PURE__*/ React.createElement(View, {
133
135
  className: "".concat(classPrefix, "-lite-default")
134
136
  }, pageCount)));
135
137
  };
@@ -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
- display: flex;
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-active {
92
- border-radius: $pagination-lite-radius;
93
- font-size: $font-size-s;
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, var(--nutui-black-7));
75
- border-radius: var(--nutui-pagination-lite-radius, 6px);
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
- display: flex;
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-active {
91
- border-radius: var(--nutui-pagination-lite-radius, 6px);
92
- font-size: var(--nutui-font-size-s, 12px);
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 { Radio } from "./radio";
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
- export default Radio;
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;
@@ -1,2 +1,6 @@
1
+ import React from "react";
1
2
  import { Radio } from "./radio";
2
- export default Radio;
3
+ import { RadioGroup } from "../radiogroup/radiogroup";
4
+ var InnerRadio = Radio;
5
+ InnerRadio.Group = RadioGroup;
6
+ export default InnerRadio;
@@ -1,54 +1,15 @@
1
- import React, { FunctionComponent } from 'react';
2
- import RadioGroup from "../radiogroup/index";
1
+ import React, { FC } from 'react';
3
2
  import { BasicComponent } from "../../utils/typings";
4
3
  import { RadioPosition, RadioShape } from "./types";
5
4
  export interface RadioProps extends BasicComponent {
6
- /**
7
- * 是否禁用选择
8
- * @default false
9
- */
10
- disabled: boolean
11
- /**
12
- * 指定当前是否选中
13
- * @default -
14
- */
15
- checked: boolean
16
- /**
17
- * 初始是否选中
18
- * @default -
19
- */
20
- defaultChecked: boolean
21
- /**
22
- * 形状
23
- * @default round
24
- */
25
- shape: RadioShape
26
- /**
27
- * 文本所在的位置
28
- * @default right
29
- */
30
- labelPosition: RadioPosition
31
- /**
32
- * <a href="#/icon">图标名称</a>,选中前(建议和activeIcon一起修改)
33
- * @default 'CheckNormal'
34
- */
35
- icon: React.ReactNode
36
- /**
37
- * <a href="#/icon">图标名称</a>,选中后(建议和icon一起修改)
38
- * @default 'CheckChecked'
39
- */
40
- activeIcon: React.ReactNode
41
- /**
42
- * 携带的标识值,用于 Group 模式
43
- * @default -
44
- */
45
- value: string | number
46
- /**
47
- * 选中态变化时触发
48
- * @default -
49
- */
50
- onChange: (checked: boolean) => void
5
+ disabled: boolean;
6
+ checked: boolean;
7
+ defaultChecked: boolean;
8
+ shape: RadioShape;
9
+ labelPosition: RadioPosition;
10
+ icon: React.ReactNode;
11
+ activeIcon: React.ReactNode;
12
+ value: string | number;
13
+ onChange: (checked: boolean) => void;
51
14
  }
52
- export declare const Radio: FunctionComponent<Partial<RadioProps> & Omit<React.HTMLAttributes<HTMLDivElement>, 'onChange'>> & {
53
- Group: typeof RadioGroup;
54
- };
15
+ export declare const Radio: FC<Partial<RadioProps> & Omit<React.HTMLAttributes<HTMLDivElement>, 'onChange'>>;
@@ -4,11 +4,10 @@ import { _ as _object_spread_props } from "@swc/helpers/_/_object_spread_props";
4
4
  import { _ as _object_without_properties } from "@swc/helpers/_/_object_without_properties";
5
5
  import { _ as _sliced_to_array } from "@swc/helpers/_/_sliced_to_array";
6
6
  import React, { useContext } from "react";
7
- import { CheckChecked, CheckNormal, CheckDisabled } from "@nutui/icons-react-taro";
7
+ import { CheckChecked, CheckDisabled, CheckNormal } from "@nutui/icons-react-taro";
8
8
  import classNames from "classnames";
9
9
  import { View } from "@tarojs/components";
10
10
  import RadioContext from "../radiogroup/context";
11
- import RadioGroup from "../radiogroup/index";
12
11
  import { ComponentDefaults } from "../../utils/typings";
13
12
  import { usePropsValue } from "../../utils/use-props-value";
14
13
  var defaultProps = _object_spread_props(_object_spread({}, ComponentDefaults), {
@@ -86,14 +85,14 @@ export var Radio = function(props) {
86
85
  };
87
86
  var renderLabel = function() {
88
87
  var labelcls = classNames("".concat(classPrefix, "-label"), _define_property({}, "".concat(classPrefix, "-label-disabled"), disabled));
89
- return /*#__PURE__*/ React.createElement(React.Fragment, null, renderIcon(), /*#__PURE__*/ React.createElement("div", {
88
+ return /*#__PURE__*/ React.createElement(React.Fragment, null, renderIcon(), /*#__PURE__*/ React.createElement(View, {
90
89
  className: labelcls
91
90
  }, children));
92
91
  };
93
92
  var renderButton = function() {
94
93
  var _obj;
95
94
  var buttoncls = classNames("".concat(classPrefix, "-button"), (_obj = {}, _define_property(_obj, "".concat(classPrefix, "-button-active"), checkedStatement), _define_property(_obj, "".concat(classPrefix, "-button-disabled"), disabled), _obj));
96
- return /*#__PURE__*/ React.createElement("div", {
95
+ return /*#__PURE__*/ React.createElement(View, {
97
96
  className: buttoncls
98
97
  }, children);
99
98
  };
@@ -115,4 +114,3 @@ export var Radio = function(props) {
115
114
  }, renderRadioItem());
116
115
  };
117
116
  Radio.displayName = 'NutRadio';
118
- Radio.Group = RadioGroup;
@@ -77,6 +77,7 @@
77
77
  border: 1px solid $color-text-disabled;
78
78
  }
79
79
  }
80
+
80
81
  [dir='rtl'] .nut-radio,
81
82
  .nut-rtl .nut-radio {
82
83
  &:last-child {
@@ -1,41 +1,14 @@
1
1
  import React from 'react';
2
+ import { ViewProps } from '@tarojs/components/types/View';
2
3
  import { RadioGroupDirection, RadioGroupOption, RadioGroupPosition, RadioGroupShape } from './types';
3
4
  export interface RadioGroupProps {
4
- /**
5
- * 当前选中项的标识符
6
- * @default -
7
- */
8
- value?: string | number
5
+ value?: string | number;
9
6
  defaultValue?: string | number;
10
- /**
11
- * 文本所在的位置
12
- * @default right
13
- */
14
- labelPosition: RadioGroupPosition
15
- /**
16
- * 使用横纵方向
17
- * @default vertical
18
- */
19
- direction: RadioGroupDirection
20
- /**
21
- * 形状
22
- * @default -
23
- */
24
- shape?: RadioGroupShape
25
- /**
26
- * 是否禁用
27
- * @default false
28
- */
29
- disabled?: boolean
30
- /**
31
- * 配置 options 渲染单选按钮
32
- * @default -
33
- */
34
- options: RadioGroupOption[]
35
- /**
36
- * 值变化时触发
37
- * @default -
38
- */
39
- onChange: (value: string | number) => void
7
+ labelPosition: RadioGroupPosition;
8
+ direction: RadioGroupDirection;
9
+ shape?: RadioGroupShape;
10
+ disabled?: boolean;
11
+ options: RadioGroupOption[];
12
+ onChange: (value: string | number) => void;
40
13
  }
41
- export declare const RadioGroup: React.ForwardRefExoticComponent<Partial<RadioGroupProps> & Omit<React.HTMLAttributes<HTMLDivElement>, "onChange"> & React.RefAttributes<unknown>>;
14
+ export declare const RadioGroup: React.ForwardRefExoticComponent<Omit<Partial<RadioGroupProps> & Omit<ViewProps, "onChange">, "ref"> & React.RefAttributes<unknown>>;
@@ -5,6 +5,7 @@ import { _ as _object_without_properties } from "@swc/helpers/_/_object_without_
5
5
  import { _ as _sliced_to_array } from "@swc/helpers/_/_sliced_to_array";
6
6
  import React, { useCallback } from "react";
7
7
  import classNames from "classnames";
8
+ import { View } from "@tarojs/components";
8
9
  import RadioContext from "./context";
9
10
  import Radio from "../radio/index";
10
11
  import { usePropsValue } from "../../utils/use-props-value";
@@ -28,7 +29,7 @@ export var RadioGroup = /*#__PURE__*/ React.forwardRef(function(props, ref) {
28
29
  "options",
29
30
  "disabled"
30
31
  ]);
31
- var cls = classNames(classPrefix, _define_property({}, "".concat(classPrefix, "-").concat(props.direction), props.direction), className);
32
+ var cls = classNames(classPrefix, _define_property({}, "".concat(classPrefix, "-").concat(direction), direction), className);
32
33
  var _usePropsValue = _sliced_to_array(usePropsValue({
33
34
  defaultValue: props.defaultValue,
34
35
  value: props.value,
@@ -71,7 +72,7 @@ export var RadioGroup = /*#__PURE__*/ React.forwardRef(function(props, ref) {
71
72
  setVal2State('');
72
73
  }
73
74
  }
74
- }, /*#__PURE__*/ React.createElement("div", _object_spread({
75
+ }, /*#__PURE__*/ React.createElement(View, _object_spread({
75
76
  className: cls
76
77
  }, rest), (options === null || options === void 0 ? void 0 : options.length) ? renderOptionsChildren() : children));
77
78
  });