@nutui/nutui-react 2.0.0-alpha.0 → 2.0.0-alpha.10

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 (126) hide show
  1. package/CHANGELOG.md +137 -638
  2. package/dist/esm/Address.js +1 -1
  3. package/dist/esm/Animate.js +6 -7
  4. package/dist/esm/Audio.js +28 -27
  5. package/dist/esm/Avatar.js +30 -25
  6. package/dist/esm/AvatarGroup.js +10 -15
  7. package/dist/esm/Badge.js +4 -73
  8. package/dist/esm/CalendarItem.js +2 -12
  9. package/dist/esm/Cascader.js +67 -69
  10. package/dist/esm/Checkbox.js +1 -2
  11. package/dist/esm/CheckboxGroup.js +18 -20
  12. package/dist/esm/CircleProgress.js +20 -25
  13. package/dist/esm/Col.js +4 -3
  14. package/dist/esm/DatePicker.js +10 -10
  15. package/dist/esm/Dialog.js +162 -171
  16. package/dist/esm/Divider.js +4 -3
  17. package/dist/esm/Drag.js +7 -9
  18. package/dist/esm/Elevator.js +39 -41
  19. package/dist/esm/Ellipsis.js +13 -12
  20. package/dist/esm/Empty.js +18 -26
  21. package/dist/esm/Image.js +5 -10
  22. package/dist/esm/ImagePreview.js +67 -58
  23. package/dist/esm/Indicator.js +4 -4
  24. package/dist/esm/Input.js +87 -193
  25. package/dist/esm/Menu.js +75 -73
  26. package/dist/esm/MenuItem.js +29 -27
  27. package/dist/esm/NavBar.js +17 -48
  28. package/dist/esm/NoticeBar.js +50 -87
  29. package/dist/esm/Notify.js +35 -46
  30. package/dist/esm/NumberKeyboard.js +137 -195
  31. package/dist/esm/Picker.js +175 -160
  32. package/dist/esm/Popup.js +24 -33
  33. package/dist/esm/Price.js +22 -23
  34. package/dist/esm/Progress.js +74 -67
  35. package/dist/esm/PullToRefresh.js +8 -8
  36. package/dist/esm/Radio.js +2 -0
  37. package/dist/esm/RadioGroup.js +31 -51
  38. package/dist/esm/Range/style/index.js +1 -1
  39. package/dist/esm/Range.js +119 -174
  40. package/dist/esm/Row.js +6 -5
  41. package/dist/esm/SideNavBar.js +0 -2
  42. package/dist/esm/Skeleton.js +1 -1
  43. package/dist/esm/Step.js +23 -28
  44. package/dist/esm/Steps/style/index.js +1 -1
  45. package/dist/esm/Steps.js +10 -11
  46. package/dist/esm/Swipe.js +4 -10
  47. package/dist/esm/Swiper.js +86 -91
  48. package/dist/esm/SwiperItem.js +1 -1
  49. package/dist/esm/Switch.js +16 -30
  50. package/dist/esm/TabPane.js +39 -5
  51. package/dist/esm/Tabbar/style/index.js +1 -1
  52. package/dist/esm/Tabbar.js +29 -33
  53. package/dist/esm/TabbarItem.js +5 -75
  54. package/dist/esm/Table.js +20 -34
  55. package/dist/esm/Tabs.js +2 -2
  56. package/dist/esm/TextArea.js +53 -81
  57. package/dist/esm/Uploader.js +49 -52
  58. package/dist/esm/badge2.js +69 -0
  59. package/dist/esm/cellgroup2.js +5 -4
  60. package/dist/esm/checkbox2.js +34 -47
  61. package/dist/esm/nutui-react.es.js +170 -170
  62. package/dist/esm/overlay2.js +12 -14
  63. package/dist/esm/radio2.js +52 -54
  64. package/dist/esm/raf.js +16 -0
  65. package/dist/esm/tabbaritem2.js +61 -0
  66. package/dist/esm/tabs2.js +126 -95
  67. package/dist/locales/base.js +1 -1
  68. package/dist/locales/en-US.js +1 -1
  69. package/dist/locales/id-ID.js +1 -1
  70. package/dist/locales/zh-CN.js +1 -1
  71. package/dist/locales/zh-TW.js +1 -1
  72. package/dist/locales/zh-UG.js +1 -1
  73. package/dist/nutui.react.mjs +23562 -24489
  74. package/dist/nutui.react.umd.js +23560 -24487
  75. package/dist/packages/audio/audio.scss +2 -15
  76. package/dist/packages/badge/badge.scss +8 -18
  77. package/dist/packages/calendar/calendar.scss +0 -30
  78. package/dist/packages/cascader/cascader.scss +0 -26
  79. package/dist/packages/cellgroup/cellgroup.scss +20 -16
  80. package/dist/packages/checkbox/checkbox.scss +8 -11
  81. package/dist/packages/circleprogress/circleprogress.scss +0 -9
  82. package/dist/packages/dialog/dialog.scss +36 -65
  83. package/dist/packages/elevator/elevator.scss +2 -28
  84. package/dist/packages/empty/empty.scss +0 -9
  85. package/dist/packages/imagepreview/imagepreview.scss +52 -16
  86. package/dist/packages/input/input.scss +13 -180
  87. package/dist/packages/menu/menu.scss +44 -55
  88. package/dist/packages/menuitem/menuitem.scss +16 -26
  89. package/dist/packages/navbar/navbar.scss +16 -115
  90. package/dist/packages/noticebar/noticebar.scss +18 -19
  91. package/dist/packages/notify/notify.scss +1 -1
  92. package/dist/packages/numberkeyboard/numberkeyboard.scss +29 -77
  93. package/dist/packages/overlay/overlay.scss +11 -4
  94. package/dist/packages/picker/picker.scss +66 -137
  95. package/dist/packages/popup/popup.scss +0 -16
  96. package/dist/packages/price/price.scss +8 -0
  97. package/dist/packages/progress/progress.scss +19 -58
  98. package/dist/packages/pulltorefresh/pulltorefresh.scss +0 -8
  99. package/dist/packages/radio/radio.scss +13 -32
  100. package/dist/packages/radiogroup/radiogroup.scss +17 -51
  101. package/dist/packages/range/range.scss +24 -49
  102. package/dist/packages/row/row.scss +13 -31
  103. package/dist/packages/sidenavbar/sidenavbar.scss +0 -19
  104. package/dist/packages/step/step.scss +9 -62
  105. package/dist/packages/steps/steps.scss +2 -0
  106. package/dist/packages/swiper/swiper.scss +3 -18
  107. package/dist/packages/switch/switch.scss +13 -31
  108. package/dist/packages/tabbar/tabbar.scss +16 -22
  109. package/dist/packages/tabbaritem/tabbaritem.scss +9 -70
  110. package/dist/packages/table/table.scss +0 -56
  111. package/dist/packages/tabs/tabs.scss +196 -225
  112. package/dist/packages/textarea/textarea.scss +5 -12
  113. package/dist/packages/uploader/uploader.scss +2 -28
  114. package/dist/style.css +1 -1
  115. package/dist/style.mjs +1 -1
  116. package/dist/styles/themes/default.scss +17 -18
  117. package/dist/styles/variables-jmapp.scss +120 -240
  118. package/dist/styles/variables.scss +139 -252
  119. package/dist/types/index.d.ts +565 -708
  120. package/package.json +2 -2
  121. package/dist/esm/Icon.js +0 -83
  122. package/dist/esm/tabpane2.js +0 -44
  123. package/dist/packages/icon/icon.scss +0 -0
  124. /package/dist/esm/{AvatarContext.js → context.js} +0 -0
  125. /package/dist/esm/{UserContext2.js → context2.js} +0 -0
  126. /package/dist/esm/{UserContext3.js → context3.js} +0 -0
@@ -1,13 +1,3 @@
1
- .nut-theme-dark {
2
- .nut-tabbar-item {
3
- color: $dark1;
4
-
5
- &--active {
6
- color: $primary-color;
7
- }
8
- }
9
- }
10
-
11
1
  .nut-tabbar-item {
12
2
  display: flex;
13
3
  flex-direction: column;
@@ -16,11 +6,11 @@
16
6
  flex: 1;
17
7
  text-align: center;
18
8
  text-decoration: none;
19
- color: $gray1;
9
+ color: $tabbar-inactive-color;
20
10
  height: 100%;
21
11
 
22
- &--active {
23
- color: $primary-color;
12
+ &-active {
13
+ color: $tabbar-active-color;
24
14
  }
25
15
 
26
16
  &__icon-box {
@@ -30,67 +20,16 @@
30
20
  align-items: center;
31
21
  position: relative;
32
22
 
33
- &__tips {
34
- position: absolute;
35
- background: $tabbar-active-color;
36
- border: 1px solid $white;
37
- border-radius: 7px;
38
- text-align: center;
39
- top: calc(50% - 6px);
40
- right: calc(50% - 16px);
41
- box-shadow: 0 0 0 1px $white;
42
- font-size: $font-size-1;
43
- color: $primary-text-color;
44
- z-index: 1;
45
- }
46
-
47
- &__dot {
48
- position: absolute;
49
- width: 7px;
50
- height: 7px;
51
- border: 0;
52
- border-radius: 7px;
53
- padding: 0px;
54
- background: $tabbar-active-color;
55
- top: $tabbar-dot-top;
56
- right: calc(50% - $tabbar-dot-right);
57
- transform: translate(50%, -50%);
58
- }
59
-
60
- &__num {
61
- line-height: 1;
62
- font-size: $tabbar-item-text-font-size;
63
- color: $primary-text-color;
64
- padding: 1px 2px 2px 3px;
65
- top: calc(-50% + 6px);
66
- right: calc(-50%);
67
- }
68
-
69
- &__nums {
70
- line-height: 1;
71
- font-size: $tabbar-item-text-font-size;
72
- color: $primary-text-color;
73
- padding: 2px 1px 2px 2px;
74
- top: calc(-50% + 6px);
75
- right: calc(-50% - 8px);
76
- }
77
-
78
- &__icon {
79
- display: block;
80
- background-size: 100% 100%;
81
- background-position: center center;
82
- }
83
-
84
- &--nav-word {
23
+ &-nav {
85
24
  display: block;
86
- font-size: $font-size-0;
87
- margin-top: $tabbar-word-margin-top;
25
+ font-size: $tabbar-text-font-size;
26
+ margin-top: $tabbar-text-margin-top;
88
27
  }
89
28
 
90
- &--big-word {
91
- font-size: $font-size-large;
29
+ &-large {
30
+ font-size: $tabbar-text-large-font-size;
92
31
  margin-top: 0;
93
- line-height: $tabbar-item-text-line-height;
32
+ line-height: $tabbar-text-line-height;
94
33
  }
95
34
  }
96
35
  }
@@ -1,52 +1,3 @@
1
- .nut-theme-dark {
2
- .nut-table {
3
- margin-bottom: 3px;
4
-
5
- &__main {
6
- color: $dark1;
7
- background-color: $dark5;
8
-
9
- &--striped {
10
- .nut-table__main__head {
11
- &__tr {
12
- background-color: $dark6;
13
- }
14
- }
15
-
16
- .nut-table__main__body {
17
- &__tr:nth-child(odd) {
18
- background-color: $dark4;
19
- }
20
- }
21
-
22
- .nut-table__main__body {
23
- &__tr:nth-child(even) {
24
- background-color: $dark6;
25
- }
26
- }
27
- }
28
- }
29
-
30
- .nut-table__nodata {
31
- background-color: $dark6;
32
-
33
- .nut-table__nodata {
34
- color: $dark1;
35
- }
36
- }
37
-
38
- &__summary {
39
- color: $dark1;
40
- background-color: $dark4;
41
- }
42
-
43
- &__nodata {
44
- color: $dark1;
45
- background-color: $dark4;
46
- }
47
- }
48
- }
49
-
50
1
  .nut-table {
51
2
  display: flex;
52
3
  width: 100%;
@@ -133,13 +84,6 @@
133
84
  }
134
85
 
135
86
  &__summary {
136
- display: flex;
137
- align-items: center;
138
- height: 30px;
139
- padding: $table-cols-padding;
140
- }
141
-
142
- &__nodata {
143
87
  color: $title-color;
144
88
  background-color: $background-color3;
145
89
  display: flex;
@@ -1,284 +1,255 @@
1
1
  @import '../../styles/mixins/index';
2
2
 
3
- .nut-theme-dark {
4
- .nut-tabs {
5
- .nut-tabpane {
6
- color: $white;
7
- }
3
+ .nut-tabs {
4
+ display: flex;
5
+ }
8
6
 
9
- &__titles {
10
- background: $dark5;
7
+ .nut-tabs__titles {
8
+ box-sizing: border-box;
9
+ height: $tabs-horizontal-titles-height;
10
+ padding: 0 10px;
11
+ display: flex;
12
+ user-select: none;
13
+ background: $tabs-titles-background-color;
14
+ border-radius: $tabs-titles-border-radius;
15
+ flex-shrink: 0;
16
+ overflow: hidden;
17
+
18
+ &::-webkit-scrollbar {
19
+ display: none;
20
+ width: 0;
21
+ background: transparent;
22
+ }
23
+ }
11
24
 
12
- &-item {
13
- color: $dark1;
25
+ .nut-tabs__titles--left {
26
+ justify-content: flex-start;
27
+ }
14
28
 
15
- &.active {
16
- color: $dark1;
17
- }
29
+ .nut-tabs__titles--right {
30
+ justify-content: flex-end;
31
+ }
18
32
 
19
- &__text {
20
- color: $dark1;
21
- }
22
- }
23
- }
33
+ .nut-tabs__titles--scrollable {
34
+ overflow-x: auto;
35
+ overflow-y: hidden;
24
36
 
25
- &.vertical {
26
- .nut-tabs__titles {
27
- &-item {
28
- &.active {
29
- background-color: $dark5;
30
- }
31
- }
32
- }
33
- }
37
+ .nut-tabs__titles-item {
38
+ width: auto;
34
39
  }
35
40
  }
36
41
 
37
- .nut-tabs {
42
+ .nut-tabs__titles-item {
43
+ position: relative;
44
+ min-width: $tabs-horizontal-titles-item-min-width;
38
45
  display: flex;
46
+ flex: 1;
47
+ align-items: center;
48
+ justify-content: center;
49
+ margin: 0 $nut-tabs-title-gap;
50
+ font-size: $tabs-titles-item-font-size;
51
+ color: $tabs-titles-item-color;
52
+ overflow: hidden;
53
+ text-overflow: ellipsis;
54
+ white-space: nowrap;
55
+ }
39
56
 
40
- &.horizontal {
41
- flex-direction: column;
42
- }
43
-
44
- &.vertical {
45
- flex-direction: row;
46
- width: 100%;
47
-
48
- .nut-tabs__titles {
49
- box-sizing: border-box;
50
- flex-direction: column;
51
- height: 100%;
52
- padding: 0 !important;
53
- width: $tabs-vertical-titles-width;
54
- flex-shrink: 0;
55
-
56
- &.scrollable {
57
- overflow-x: hidden;
58
- overflow-y: auto;
59
- }
60
-
61
- .nut-tabs__titles-item {
62
- height: $tabs-vertical-titles-item-height;
63
- flex: none;
64
-
65
- .nut-tabs__titles-item__smile {
66
- transition: width 0.3s ease;
67
- }
57
+ .nut-tabs__titles-item--left,
58
+ .nut-tabs__titles-item--right {
59
+ flex: none;
60
+ }
68
61
 
69
- .nut-tabs__titles-item__line {
70
- bottom: none;
71
- transform: translate(0, -50%);
72
- transition: height 0.3s ease;
73
- width: 0;
74
- height: 0;
75
- }
62
+ .nut-tabs__titles-item__text {
63
+ text-align: center;
64
+ }
76
65
 
77
- &.active {
78
- background-color: $tabs-horizontal-titles-item-active-background-color;
66
+ .nut-tabs__titles-item__smile,
67
+ .nut-tabs__titles-item__line {
68
+ position: absolute;
69
+ transition: width 0.3s ease;
70
+ width: 0;
71
+ height: 0;
72
+ content: ' ';
73
+ bottom: $tabs-horizontal-tab-line-bottom;
74
+ left: 50%;
75
+ transform: translate(-50%, 0);
76
+ border-radius: $tabs-horizontal-tab-line-border-radius;
77
+ opacity: $tabs-horizontal-tab-line-opacity;
78
+ overflow: hidden;
79
+ }
79
80
 
80
- .nut-tabs__titles-item__line {
81
- left: 10px;
82
- width: $tabs-vertical-titles-item-active-line-width;
83
- height: $tabs-vertical-titles-item-active-line-height;
84
- background: $tabs-vertical-tab-line-color;
85
- }
81
+ .nut-tabs__titles-item__smile {
82
+ bottom: -2%;
86
83
 
87
- .nut-tabs__titles-item__smile {
88
- right: -2px;
89
- bottom: 2px;
90
- left: auto;
91
- width: 3px;
92
- transform: rotate(320deg);
93
- height: $tabs-vertical-titles-item-active-line-height;
94
- }
95
- }
96
- }
97
- }
84
+ .nut-icon {
85
+ position: absolute;
86
+ font-size: 12px;
87
+ width: 100%;
88
+ height: 100%;
89
+ color: $tabs-tab-smile-color;
90
+ }
91
+ }
98
92
 
99
- .nut-tabs__content {
100
- flex-direction: column;
93
+ .nut-tabs__titles-item--active {
94
+ color: $tabs-titles-item-active-color;
95
+ font-weight: $tabs-titles-item-active-font-weight;
101
96
 
102
- &__wrap {
103
- flex: 1;
104
- }
97
+ .nut-tabs__titles-item__smile {
98
+ overflow: unset;
99
+ width: 40px;
100
+ height: 20px;
101
+ }
105
102
 
106
- height: 100%;
103
+ .nut-tabs__titles-item__line {
104
+ overflow: unset;
105
+ content: ' ';
106
+ width: $tabs-horizontal-titles-item-active-line-width;
107
+ height: $tabs-horizontal-titles-item-active-line-height;
108
+ background: $tabs-horizontal-tab-line-color;
109
+ }
110
+ }
107
111
 
108
- .nut-tabpane {
109
- height: 100%;
110
- }
111
- }
112
+ .nut-tabs__titles-item--disabled {
113
+ color: $disable-color;
114
+ }
112
115
 
113
- .horizontal {
114
- .nut-tabs__titles {
115
- display: flex;
116
- flex-direction: row;
117
- padding: 0 !important;
118
- width: 100%;
116
+ .nut-tabs--horizontal {
117
+ flex-direction: column;
118
+ }
119
119
 
120
- .nut-tabs__titles-item {
121
- display: flex;
122
- align-items: center;
123
- justify-content: center;
124
- flex: 1 0 auto;
120
+ .nut-tabs--vertical {
121
+ flex-direction: row;
122
+ width: 100%;
125
123
 
126
- .nut-tabs__titles-item__smile,
127
- .nut-tabs__titles-item__line {
128
- position: absolute;
129
- transition: width 0.3s ease;
130
- width: 0;
131
- height: 0;
132
- content: ' ';
133
- bottom: $tabs-horizontal-tab-line-bottom;
134
- left: 50%;
135
- transform: translate(-50%, 0);
136
- overflow: hidden;
137
- border-radius: $tabs-horizontal-tab-line-border-radius;
138
- opacity: $tabs-horizontal-tab-line-opacity;
139
- }
124
+ .nut-tabs__titles {
125
+ box-sizing: border-box;
126
+ flex-direction: column;
127
+ height: 100%;
128
+ padding: 0;
129
+ width: $tabs-vertical-titles-width;
130
+ flex-shrink: 0;
131
+ }
140
132
 
141
- &.active {
142
- color: $tabs-titles-item-active-color;
143
- font-weight: $tabs-titles-item-active-font-weight;
133
+ .nut-tabs__titles--scrollable {
134
+ overflow-x: hidden;
135
+ overflow-y: auto;
136
+ }
144
137
 
145
- .nut-tabs__titles-item__line {
146
- content: ' ';
147
- width: $tabs-horizontal-titles-item-active-line-width;
148
- height: $tabs-horizontal-titles-item-active-line-height;
149
- background: $tabs-horizontal-tab-line-color;
150
- }
151
- }
152
- }
153
- }
154
- }
138
+ .nut-tabs__titles-item {
139
+ height: $tabs-vertical-titles-item-height;
140
+ flex: none;
155
141
  }
156
142
 
157
- .nut-tabs__titles {
158
- height: $tabs-horizontal-titles-height;
159
- padding: 0 10px;
160
- display: flex;
161
- user-select: none;
162
- background: $tabs-titles-background-color;
163
- border-radius: $tabs-titles-border-radius;
164
- flex-shrink: 0;
143
+ .nut-tabs__titles-item__smile {
144
+ width: 0;
145
+ height: 0;
165
146
  overflow: hidden;
147
+ transition: width 0.3s ease;
148
+ }
166
149
 
167
- &.large {
168
- .nut-tabs__titles-item {
169
- font-size: $tabs-titles-item-large-font-size;
170
- }
171
- }
150
+ .nut-tabs__titles-item__line {
151
+ width: 0;
152
+ height: 0;
153
+ transform: translate(0, -50%);
154
+ transition: height 0.3s ease;
155
+ }
172
156
 
173
- &.normal {
174
- .nut-tabs__titles-item {
175
- font-size: $tabs-titles-item-font-size;
176
- }
177
- }
157
+ .nut-tabs__titles-item--active {
158
+ background-color: $tabs-horizontal-titles-item-active-background-color;
178
159
 
179
- &.small {
180
- .nut-tabs__titles-item {
181
- font-size: $tabs-titles-item-small-font-size;
182
- }
160
+ .nut-tabs__titles-item__line {
161
+ left: 10px;
162
+ width: $tabs-vertical-titles-item-active-line-width;
163
+ height: $tabs-vertical-titles-item-active-line-height;
164
+ background: $tabs-vertical-tab-line-color;
183
165
  }
184
166
 
185
- &::-webkit-scrollbar {
186
- display: none;
187
- width: 0;
188
- background: transparent;
189
- }
190
-
191
- &.smile {
192
- .nut-tabs__titles-item {
193
- &.active {
194
- .nut-tabs__titles-item__smile {
195
- width: 20px;
196
- height: 8px;
197
- }
198
- }
199
- }
167
+ .nut-tabs__titles-item__smile {
168
+ right: -5px;
169
+ bottom: 2%;
170
+ left: auto;
171
+ width: 40px;
172
+ height: 20px;
173
+ transform: rotate(320deg);
200
174
  }
175
+ }
201
176
 
202
- &.scrollable {
177
+ .nut-tabs--horizontal {
178
+ .nut-tabs__titles {
179
+ flex-direction: row;
203
180
  overflow-x: auto;
204
181
  overflow-y: hidden;
205
-
206
- .nut-tabs__titles-item {
207
- width: auto;
208
- }
182
+ height: $tabs-horizontal-titles-height;
209
183
  }
210
184
 
211
- .nut-tabs__titles-item {
212
- position: relative;
213
- font-size: $tabs-titles-item-font-size;
214
- min-width: $tabs-horizontal-titles-item-min-width;
215
- display: flex;
216
- align-items: center;
217
- justify-content: center;
218
- flex: 1 0 auto;
219
- color: $tabs-titles-item-color;
220
-
221
- .nut-tabs__titles-item__text {
222
- text-align: center;
185
+ .nut-tabs__content {
186
+ flex-direction: row;
187
+ }
223
188
 
224
- &.ellipsis {
225
- @include oneline-ellipsis();
226
- }
227
- }
189
+ .nut-tabs__titles-item--active {
190
+ background-color: initial;
228
191
 
229
- .nut-tabs__titles-item__smile,
230
192
  .nut-tabs__titles-item__line {
231
- position: absolute;
232
- transition: width 0.3s ease;
233
- width: 0;
234
- height: 0;
235
- content: ' ';
236
- bottom: $tabs-horizontal-tab-line-bottom;
237
193
  left: 50%;
238
194
  transform: translate(-50%, 0);
239
- overflow: hidden;
240
- border-radius: $tabs-horizontal-tab-line-border-radius;
241
- opacity: $tabs-horizontal-tab-line-opacity;
242
195
  }
243
196
 
244
197
  .nut-tabs__titles-item__smile {
245
- .nut-icon {
246
- position: absolute;
247
- font-size: 12px;
248
- width: 100%;
249
- height: 100%;
250
- color: $tabs-tab-smile-color;
251
- }
198
+ left: 50%;
199
+ right: auto;
200
+ bottom: -3px;
201
+ transform: translate(-50%, 0) rotate(0deg);
252
202
  }
203
+ }
204
+ }
253
205
 
254
- &.nut-tabs__titles-item-left-align {
255
- flex: none;
256
- }
206
+ .nut-tabs__content {
207
+ flex-direction: column;
208
+ height: 100%;
257
209
 
258
- &.disabled {
259
- color: $disable-color;
260
- }
210
+ &__wrap {
211
+ flex: 1;
212
+ }
261
213
 
262
- &.active {
263
- color: $tabs-titles-item-active-color;
264
- font-weight: $tabs-titles-item-active-font-weight;
214
+ .nut-tabpane {
215
+ height: 100%;
216
+ }
217
+ }
265
218
 
266
- .nut-tabs__titles-item__line {
267
- content: ' ';
268
- width: $tabs-horizontal-titles-item-active-line-width;
269
- height: $tabs-horizontal-titles-item-active-line-height;
270
- background: $tabs-horizontal-tab-line-color;
219
+ .nut-tabs--horizontal {
220
+ .nut-tabs__titles {
221
+ display: flex;
222
+ flex-direction: row;
223
+ padding: 0 !important;
224
+ width: 100%;
225
+
226
+ .nut-tabs__titles-item {
227
+ display: flex;
228
+ align-items: center;
229
+ justify-content: center;
230
+ flex: 1 0 auto;
231
+
232
+ &--active {
233
+ color: $tabs-titles-item-active-color;
234
+ font-weight: $tabs-titles-item-active-font-weight;
235
+
236
+ .nut-tabs__titles-item__line {
237
+ content: ' ';
238
+ width: $tabs-horizontal-titles-item-active-line-width;
239
+ height: $tabs-horizontal-titles-item-active-line-height;
240
+ background: $tabs-horizontal-tab-line-color;
241
+ }
271
242
  }
272
243
  }
273
244
  }
274
245
  }
246
+ }
275
247
 
276
- &__content {
277
- &__wrap {
278
- overflow: hidden;
279
- }
280
-
281
- display: flex;
282
- box-sizing: border-box;
248
+ .nut-tabs__content {
249
+ &__wrap {
250
+ overflow: hidden;
283
251
  }
252
+
253
+ display: flex;
254
+ box-sizing: border-box;
284
255
  }
@@ -1,13 +1,3 @@
1
- .nut-theme-dark {
2
- .nut-textarea {
3
- background: $dark5;
4
-
5
- &__textarea {
6
- color: $dark1;
7
- }
8
- }
9
- }
10
-
11
1
  .nut-textarea {
12
2
  position: relative;
13
3
  width: 100%;
@@ -34,7 +24,6 @@
34
24
  }
35
25
 
36
26
  &__textarea {
37
- // min-height: $textarea-height;
38
27
  outline: none;
39
28
  display: block;
40
29
  box-sizing: border-box;
@@ -43,13 +32,17 @@
43
32
  margin: 0;
44
33
  padding: 0;
45
34
  font-size: $textarea-font;
46
- line-height: $textarea-text-line-height;
47
35
  color: $textarea-text-color;
48
36
  caret-color: $textarea-text-curror-color;
49
37
  text-align: left;
50
38
  background-color: transparent;
51
39
  border: 0;
52
40
  resize: none;
41
+
42
+ .taro-textarea {
43
+ background-color: transparent;
44
+ resize: none;
45
+ }
53
46
  }
54
47
 
55
48
  .cpoyText {