@nutui/nutui-react 1.5.1 → 2.0.0-alpha.1

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 (240) hide show
  1. package/CHANGELOG.md +24 -664
  2. package/dist/esm/ActionSheet.js +62 -54
  3. package/dist/esm/Address/style/index.js +0 -1
  4. package/dist/esm/Address.js +235 -330
  5. package/dist/esm/Animate.js +43 -32
  6. package/dist/esm/AnimatingNumbers.js +88 -49
  7. package/dist/esm/Audio/style/index.js +0 -1
  8. package/dist/esm/Audio.js +108 -121
  9. package/dist/esm/Avatar.js +65 -78
  10. package/dist/esm/AvatarContext.js +5 -0
  11. package/dist/esm/AvatarGroup.js +46 -27
  12. package/dist/esm/BackTop/style/index.js +1 -1
  13. package/dist/esm/BackTop.js +74 -76
  14. package/dist/esm/Badge.js +57 -54
  15. package/dist/esm/Barrage.js +45 -32
  16. package/dist/esm/Button/style/index.js +1 -1
  17. package/dist/esm/Button.js +66 -87
  18. package/dist/esm/Calendar.js +80 -79
  19. package/dist/esm/CalendarItem.js +199 -231
  20. package/dist/esm/Card.js +44 -37
  21. package/dist/esm/Cascader.js +431 -434
  22. package/dist/esm/Cell/style/index.js +1 -1
  23. package/dist/esm/Cell.js +57 -87
  24. package/dist/esm/CellGroup.js +7 -5
  25. package/dist/esm/Checkbox/style/index.js +0 -1
  26. package/dist/esm/Checkbox.js +11 -8
  27. package/dist/esm/CheckboxGroup.js +78 -71
  28. package/dist/esm/CircleProgress.js +50 -40
  29. package/dist/esm/Col.js +49 -43
  30. package/dist/esm/Collapse.js +44 -44
  31. package/dist/esm/CollapseItem/style/index.js +1 -1
  32. package/dist/esm/CollapseItem.js +64 -104
  33. package/dist/esm/ConfigProvider.js +400 -101
  34. package/dist/esm/CountDown.js +90 -95
  35. package/dist/esm/DatePicker.js +104 -123
  36. package/dist/esm/Dialog.js +98 -104
  37. package/dist/esm/Divider.js +36 -27
  38. package/dist/esm/Drag.js +55 -59
  39. package/dist/esm/Elevator.js +77 -88
  40. package/dist/esm/Ellipsis.js +80 -79
  41. package/dist/esm/Empty.js +50 -44
  42. package/dist/esm/FixedNav/style/index.js +0 -1
  43. package/dist/esm/FixedNav.js +57 -65
  44. package/dist/esm/Form.js +1154 -123
  45. package/dist/esm/FormItem.js +7 -5
  46. package/dist/esm/Grid/style/index.js +1 -1
  47. package/dist/esm/Grid.js +51 -55
  48. package/dist/esm/GridItem.js +7 -124
  49. package/dist/esm/Icon.js +83 -5
  50. package/dist/esm/Image.js +123 -122
  51. package/dist/esm/ImagePreview.js +76 -94
  52. package/dist/esm/Indicator.js +41 -36
  53. package/dist/esm/Infiniteloading/style/index.js +1 -1
  54. package/dist/esm/Infiniteloading.js +77 -93
  55. package/dist/esm/Input/style/index.js +1 -1
  56. package/dist/esm/Input.js +120 -172
  57. package/dist/esm/InputNumber/style/index.js +1 -1
  58. package/dist/esm/InputNumber.js +133 -167
  59. package/dist/esm/Layout.js +27 -6
  60. package/dist/esm/Menu.js +84 -86
  61. package/dist/esm/MenuItem/style/index.js +0 -1
  62. package/dist/esm/MenuItem.js +76 -86
  63. package/dist/esm/NavBar/style/index.js +1 -1
  64. package/dist/esm/NavBar.js +59 -63
  65. package/dist/esm/NoticeBar/style/index.js +1 -1
  66. package/dist/esm/NoticeBar.js +173 -290
  67. package/dist/esm/Notify.js +112 -78
  68. package/dist/esm/NumberKeyboard.js +110 -109
  69. package/dist/esm/Overlay.js +7 -6
  70. package/dist/esm/Pagination.js +94 -135
  71. package/dist/esm/Picker.js +149 -201
  72. package/dist/esm/Popover/style/index.js +0 -1
  73. package/dist/esm/Popover.js +121 -116
  74. package/dist/esm/Popup/style/index.js +0 -1
  75. package/dist/esm/Popup.js +114 -131
  76. package/dist/esm/Price.js +51 -39
  77. package/dist/esm/Progress/style/index.js +1 -1
  78. package/dist/esm/Progress.js +59 -64
  79. package/dist/esm/PullToRefresh.js +173 -149
  80. package/dist/esm/Radio/style/index.js +0 -1
  81. package/dist/esm/Radio.js +8 -6
  82. package/dist/esm/RadioGroup.js +64 -84
  83. package/dist/esm/Range.js +93 -122
  84. package/dist/esm/Rate/style/index.js +1 -1
  85. package/dist/esm/Rate.js +77 -95
  86. package/dist/esm/Row.js +49 -37
  87. package/dist/esm/SearchBar/style/index.js +1 -1
  88. package/dist/esm/SearchBar.js +110 -120
  89. package/dist/esm/ShortPassword/style/index.js +0 -1
  90. package/dist/esm/ShortPassword.js +120 -116
  91. package/dist/esm/SideNavBar.js +38 -28
  92. package/dist/esm/SideNavBarItem.js +31 -14
  93. package/dist/esm/Signature.js +65 -61
  94. package/dist/esm/Skeleton.js +48 -40
  95. package/dist/esm/Step/style/index.js +1 -1
  96. package/dist/esm/Step.js +49 -49
  97. package/dist/esm/Steps.js +37 -23
  98. package/dist/esm/Sticky.js +111 -120
  99. package/dist/esm/SubSideNavBar.js +50 -38
  100. package/dist/esm/Swipe.js +75 -63
  101. package/dist/esm/Swiper.js +171 -206
  102. package/dist/esm/SwiperItem.js +39 -22
  103. package/dist/esm/Switch.js +46 -37
  104. package/dist/esm/TabPane.js +8 -6
  105. package/dist/esm/Tabbar.js +47 -39
  106. package/dist/esm/TabbarItem/style/index.js +1 -1
  107. package/dist/esm/TabbarItem.js +50 -52
  108. package/dist/esm/Table/style/index.js +1 -1
  109. package/dist/esm/Table.js +70 -70
  110. package/dist/esm/Tabs/style/index.js +1 -2
  111. package/dist/esm/Tabs.js +11 -9
  112. package/dist/esm/Tag/style/index.js +1 -1
  113. package/dist/esm/Tag.js +69 -70
  114. package/dist/esm/TextArea.js +70 -64
  115. package/dist/esm/TimeDetail.js +47 -38
  116. package/dist/esm/TimePannel.js +35 -19
  117. package/dist/esm/TimeSelect.js +60 -68
  118. package/dist/esm/Toast/style/index.js +1 -1
  119. package/dist/esm/Toast.js +126 -98
  120. package/dist/esm/TrendArrow/style/index.js +1 -1
  121. package/dist/esm/TrendArrow.js +59 -55
  122. package/dist/esm/Uploader/style/index.js +0 -1
  123. package/dist/esm/Uploader.js +195 -246
  124. package/dist/esm/UserContext.js +5 -0
  125. package/dist/esm/UserContext2.js +5 -0
  126. package/dist/esm/UserContext3.js +5 -0
  127. package/dist/esm/Video.js +49 -39
  128. package/dist/esm/VirtualList.js +111 -146
  129. package/dist/esm/WaterMark.js +57 -60
  130. package/dist/esm/bem.js +10 -0
  131. package/dist/esm/cellgroup2.js +49 -0
  132. package/dist/esm/checkbox2.js +145 -0
  133. package/dist/esm/{date-c7aad4c0.js → date.js} +13 -11
  134. package/dist/esm/{formitem-8a73a5fb.js → formitem2.js} +83 -50
  135. package/dist/esm/get-scroll-parent.js +26 -0
  136. package/dist/esm/griditem2.js +96 -0
  137. package/dist/esm/index.js +14 -0
  138. package/dist/esm/nutui-react.es.js +188 -94
  139. package/dist/esm/offsetContext.js +19 -0
  140. package/dist/esm/overlay2.js +98 -0
  141. package/dist/esm/px-check.js +6 -0
  142. package/dist/esm/radio2.js +129 -0
  143. package/dist/esm/render.js +95 -0
  144. package/dist/esm/tabpane2.js +44 -0
  145. package/dist/esm/tabs2.js +175 -0
  146. package/dist/esm/typings.js +7 -0
  147. package/dist/esm/use-client-rect.js +32 -0
  148. package/dist/esm/use-props-value.js +18 -0
  149. package/dist/esm/use-touch.js +74 -0
  150. package/dist/locales/base.d.ts +2 -2
  151. package/dist/locales/base.js +1 -1
  152. package/dist/locales/en-US.js +3 -3
  153. package/dist/locales/id-ID.js +3 -3
  154. package/dist/locales/zh-CN.js +3 -3
  155. package/dist/locales/zh-TW.js +3 -3
  156. package/dist/locales/zh-UG.js +3 -3
  157. package/dist/nutui.react.mjs +8389 -4901
  158. package/dist/nutui.react.umd.js +8390 -4902
  159. package/dist/packages/actionsheet/actionsheet.scss +10 -2
  160. package/dist/packages/audio/audio.scss +2 -15
  161. package/dist/packages/backtop/backtop.scss +0 -8
  162. package/dist/packages/badge/badge.scss +3 -4
  163. package/dist/packages/button/button.scss +80 -93
  164. package/dist/packages/calendar/calendar.scss +0 -30
  165. package/dist/packages/cell/cell.scss +18 -90
  166. package/dist/packages/cellgroup/cellgroup.scss +26 -20
  167. package/dist/packages/collapseitem/collapseitem.scss +0 -1
  168. package/dist/packages/dialog/dialog.scss +1 -1
  169. package/dist/packages/divider/divider.scss +3 -17
  170. package/dist/packages/grid/grid.scss +1 -0
  171. package/dist/packages/griditem/griditem.scss +2 -17
  172. package/dist/packages/icon/icon.scss +0 -132
  173. package/dist/packages/image/image.scss +0 -12
  174. package/dist/packages/indicator/indicator.scss +21 -39
  175. package/dist/packages/infiniteloading/infiniteloading.scss +4 -12
  176. package/dist/packages/input/input.scss +4 -0
  177. package/dist/packages/inputnumber/inputnumber.scss +10 -26
  178. package/dist/packages/menuitem/menuitem.scss +2 -0
  179. package/dist/packages/navbar/navbar.scss +4 -5
  180. package/dist/packages/overlay/overlay.scss +0 -19
  181. package/dist/packages/picker/picker.scss +97 -103
  182. package/dist/packages/popup/popup.scss +0 -16
  183. package/dist/packages/progress/progress.scss +0 -1
  184. package/dist/packages/radio/radio.scss +8 -0
  185. package/dist/packages/rate/rate.scss +29 -6
  186. package/dist/packages/row/row.scss +13 -31
  187. package/dist/packages/searchbar/searchbar.scss +0 -1
  188. package/dist/packages/shortpassword/shortpassword.scss +4 -1
  189. package/dist/packages/sidenavbar/sidenavbar.scss +0 -19
  190. package/dist/packages/step/step.scss +0 -1
  191. package/dist/packages/sticky/sticky.scss +1 -1
  192. package/dist/packages/swiper/swiper.scss +8 -0
  193. package/dist/packages/tabbaritem/tabbaritem.scss +0 -1
  194. package/dist/packages/table/table.scss +0 -1
  195. package/dist/packages/tag/tag.scss +9 -2
  196. package/dist/packages/timedetail/timedetail.scss +9 -3
  197. package/dist/packages/timeselect/timeselect.scss +1 -1
  198. package/dist/packages/toast/toast.scss +0 -1
  199. package/dist/packages/uploader/uploader.scss +2 -28
  200. package/dist/style.css +1 -1
  201. package/dist/style.mjs +1 -1
  202. package/dist/styles/font-jmapp/config.json +175 -0
  203. package/dist/styles/font-jmapp/demo.css +539 -0
  204. package/dist/styles/font-jmapp/demo_index.html +1821 -0
  205. package/dist/styles/font-jmapp/iconfont.css +299 -0
  206. package/dist/styles/font-jmapp/iconfont.eot +0 -0
  207. package/dist/styles/font-jmapp/iconfont.js +68 -0
  208. package/dist/styles/font-jmapp/iconfont.json +506 -0
  209. package/dist/styles/font-jmapp/iconfont.svg +356 -0
  210. package/dist/styles/font-jmapp/iconfont.ttf +0 -0
  211. package/dist/styles/font-jmapp/iconfont.woff +0 -0
  212. package/dist/styles/font-jmapp/iconfont.woff2 +0 -0
  213. package/dist/styles/theme-default.scss +1 -0
  214. package/dist/styles/theme-jmapp.scss +41 -0
  215. package/dist/styles/themes/default.scss +0 -1
  216. package/dist/styles/variables-jmapp.scss +2601 -0
  217. package/dist/styles/variables.scss +49 -73
  218. package/dist/types/index.d.ts +169 -266
  219. package/package.json +23 -154
  220. package/dist/esm/AvatarContext-15733596.js +0 -3
  221. package/dist/esm/Icon/style/index.js +0 -4
  222. package/dist/esm/UserContext-101ad4a4.js +0 -3
  223. package/dist/esm/UserContext-2629d479.js +0 -3
  224. package/dist/esm/UserContext-b33bcf21.js +0 -3
  225. package/dist/esm/bem-3b438e61.js +0 -8
  226. package/dist/esm/cellgroup-fcc72767.js +0 -34
  227. package/dist/esm/checkbox-44e13cd0.js +0 -137
  228. package/dist/esm/get-scroll-parent-5f85dee8.js +0 -24
  229. package/dist/esm/grid.context-2ee27d95.js +0 -6
  230. package/dist/esm/icon-4ef1581c.js +0 -70
  231. package/dist/esm/index-030b7245.js +0 -11
  232. package/dist/esm/offsetContext-3ab00d40.js +0 -16
  233. package/dist/esm/overlay-de6c79d5.js +0 -83
  234. package/dist/esm/radio-9f141e6b.js +0 -118
  235. package/dist/esm/render-bbebb760.js +0 -79
  236. package/dist/esm/tabpane-01075e6c.js +0 -29
  237. package/dist/esm/tabs-e1b4e4b1.js +0 -181
  238. package/dist/esm/typings-f27b58f4.js +0 -8
  239. package/dist/esm/useClientRect-56bb675b.js +0 -39
  240. package/dist/esm/useTouch-cf73a407.js +0 -99
@@ -1,132 +0,0 @@
1
- @import '../../styles/mixins/index.scss';
2
- @import '../../styles/animation/index.scss';
3
-
4
- .nut-icon {
5
- display: inline-block;
6
- position: relative;
7
- width: $icon-width;
8
- height: $icon-height;
9
- line-height: $icon-line-height;
10
- text-align: right;
11
-
12
- &::before {
13
- position: absolute;
14
- top: 50%;
15
- left: 50%;
16
- transform: translate(-50%, -50%);
17
- }
18
-
19
- &__img {
20
- width: $icon-width;
21
- height: $icon-height;
22
- object-fit: contain;
23
- }
24
- &-loading,
25
- &-loading1 {
26
- display: inline-block;
27
- animation: rotation 1s infinite linear;
28
- }
29
-
30
- --animate-duration: 1s;
31
- --animate-delay: 0s;
32
-
33
- &-am-infinite {
34
- -webkit-animation-iteration-count: infinite;
35
- -webkit-animation-direction: alternate;
36
- animation-iteration-count: infinite;
37
- animation-direction: alternate;
38
- }
39
- &-am-jump {
40
- -webkit-animation-name: nutJumpOne;
41
- -webkit-animation-duration: var(--animate-duration);
42
- -webkit-animation-timing-function: ease;
43
- -webkit-animation-delay: var(--animate-delay);
44
-
45
- animation-name: nutJumpOne;
46
- animation-duration: var(--animate-duration);
47
- animation-timing-function: ease;
48
- animation-delay: var(--animate-delay);
49
-
50
- &.nut-icon-am-infinite {
51
- -webkit-animation-name: nutJump;
52
- animation-name: nutJump;
53
- }
54
- }
55
-
56
- &-am-rotate {
57
- -webkit-animation-name: rotation;
58
- -webkit-animation-duration: var(--animate-duration);
59
- -webkit-animation-timing-function: linear;
60
- -webkit-animation-delay: var(--animate-delay);
61
-
62
- animation-name: rotation;
63
- animation-duration: var(--animate-duration);
64
- animation-timing-function: linear;
65
- animation-delay: var(--animate-delay);
66
-
67
- &.nut-icon-am-infinite {
68
- -webkit-animation-direction: normal;
69
- animation-direction: normal;
70
- }
71
- }
72
- &-am-blink {
73
- -webkit-animation-name: nutBlink;
74
- -webkit-animation-duration: var(--animate-duration);
75
- -webkit-animation-timing-function: ease-in-out;
76
- -webkit-animation-delay: var(--animate-delay);
77
-
78
- animation-name: nutBlink;
79
- animation-duration: var(--animate-duration);
80
- animation-timing-function: linear;
81
- animation-delay: var(--animate-delay);
82
- }
83
- &-am-breathe {
84
- -webkit-animation-name: nutBreathe;
85
- -webkit-animation-duration: var(--animate-duration);
86
- -webkit-animation-timing-function: ease-in-out;
87
- -webkit-animation-delay: var(--animate-delay);
88
-
89
- animation-name: nutBreathe;
90
- animation-duration: var(--animate-duration);
91
- animation-timing-function: ease-in-out;
92
- animation-delay: var(--animate-delay);
93
- }
94
- &-am-flash {
95
- -webkit-animation-name: nutFlash;
96
- -webkit-animation-duration: var(--animate-duration);
97
- -webkit-animation-timing-function: ease-in-out;
98
- -webkit-animation-delay: var(--animate-delay);
99
-
100
- animation-name: nutFlash;
101
- animation-duration: var(--animate-duration);
102
- animation-timing-function: ease-in-out;
103
- animation-delay: var(--animate-delay);
104
- }
105
- &-am-bounce {
106
- -webkit-animation-name: nutBounce;
107
- -webkit-animation-duration: var(--animate-duration);
108
- -webkit-animation-timing-function: ease-in-out;
109
- -webkit-animation-delay: var(--animate-delay);
110
- animation-name: nutBounce;
111
- animation-duration: var(--animate-duration);
112
- animation-timing-function: ease-in-out;
113
- animation-delay: var(--animate-delay);
114
-
115
- &.nut-icon-am-infinite {
116
- -webkit-animation-direction: normal;
117
- animation-direction: normal;
118
- }
119
- }
120
-
121
- &-am-shake {
122
- -webkit-animation-name: nutShake;
123
- -webkit-animation-duration: var(--animate-duration);
124
- -webkit-animation-timing-function: ease-in-out;
125
- -webkit-animation-delay: var(--animate-delay);
126
-
127
- animation-name: nutShake;
128
- animation-duration: var(--animate-duration);
129
- animation-timing-function: ease-in-out;
130
- animation-delay: var(--animate-delay);
131
- }
132
- }
@@ -1,15 +1,3 @@
1
- .nut-theme-dark {
2
- .nut-image {
3
- .nut-img-loading {
4
- background: $mask-color;
5
- }
6
-
7
- .nut-img-error {
8
- background: $mask-color;
9
- }
10
- }
11
- }
12
-
13
1
  .nut-image {
14
2
  display: block;
15
3
  position: relative;
@@ -1,34 +1,16 @@
1
- .nut-theme-dark {
2
- .nut-indicator {
3
- .nut-indicator__number {
4
- border: none;
5
- }
6
- }
7
- }
8
1
  .nut-indicator {
9
- &__block {
10
- display: block;
11
- width: 100%;
12
- }
13
- &__align__left {
14
- text-align: left;
15
- }
16
- &__align__right {
17
- text-align: right;
18
- }
19
- &__align__center {
20
- text-align: center;
21
- }
22
- &__dot,
23
- &__number {
2
+ &__dot {
24
3
  margin: 0 $indicator-dot-margin;
4
+
25
5
  &:first-child {
26
- margin-left: $indicator-dot-first-margin;
6
+ margin-left: 0px;
27
7
  }
8
+
28
9
  &:last-child {
29
- margin-right: $indicator-dot-last-margin;
10
+ margin-right: 0px;
30
11
  }
31
12
  }
13
+
32
14
  &__dot {
33
15
  display: inline-block;
34
16
  vertical-align: middle;
@@ -37,34 +19,34 @@
37
19
  border-radius: 50%;
38
20
  background-color: $indicator-dot-color;
39
21
  }
40
- &__number {
41
- display: inline-block;
42
- position: relative;
43
- width: $indicator-size;
44
- height: $indicator-size;
45
- text-align: center;
46
- font-size: $indicator-number-font-size;
47
- line-height: $indicator-size;
48
- color: $indicator-white;
49
- vertical-align: middle;
50
- border: 1px solid $indicator-white;
51
- border-radius: 50%;
22
+
23
+ &__active {
24
+ width: $indicator-dot-active-size;
25
+ border-radius: $indicator-border-size;
52
26
  background-color: $indicator-color;
53
- box-shadow: 0 0 1px 1px $indicator-color;
54
27
  }
28
+
55
29
  &__vertical {
56
30
  display: flex;
57
31
  flex-direction: column;
58
32
  align-items: center;
59
33
  justify-content: center;
34
+
60
35
  .nut-indicator__dot {
61
36
  margin: $indicator-dot-vertical-margin 0;
37
+
62
38
  &:first-child {
63
- margin-top: $indicator-dot-first-margin;
39
+ margin-top: 0px;
64
40
  }
41
+
65
42
  &:last-child {
66
- margin-bottom: $indicator-dot-last-margin;
43
+ margin-bottom: 0px;
67
44
  }
68
45
  }
46
+
47
+ .nut-indicator__active {
48
+ width: $indicator-dot-size;
49
+ height: $indicator-dot-active-size;
50
+ }
69
51
  }
70
52
  }
@@ -30,11 +30,6 @@
30
30
  flex-direction: column;
31
31
  align-items: center;
32
32
  justify-content: center;
33
-
34
- .top-img {
35
- width: 28px;
36
- height: 24px;
37
- }
38
33
  .top-text {
39
34
  font-size: 10px;
40
35
  color: $text-color;
@@ -47,19 +42,16 @@
47
42
  }
48
43
  }
49
44
  .nut-infinite-bottom {
50
- display: block;
45
+ display: flex;
46
+ align-items: center;
47
+ justify-content: center;
51
48
  width: 100%;
52
- padding-top: 16px;
49
+ padding-top: 6px;
53
50
  font-size: $font-size-small;
54
51
  color: $infiniteloading-bottom-color;
55
52
  text-align: center;
56
53
 
57
54
  .bottom-box {
58
- .bottom-img {
59
- margin-right: 5px;
60
- width: 28px;
61
- height: 24px;
62
- }
63
55
  .bottom-text {
64
56
  font-size: 10px;
65
57
  color: $text-color;
@@ -168,6 +168,10 @@ textarea {
168
168
  vertical-align: -2px;
169
169
  }
170
170
  }
171
+ &-clear-wrap {
172
+ width: 16px;
173
+ height: 16px;
174
+ }
171
175
  &-clear {
172
176
  width: 16px;
173
177
  height: 16px;
@@ -1,29 +1,3 @@
1
-
2
- .nut-theme-dark {
3
- .nut-inputnumber {
4
- &__icon {
5
- color: $dark1;
6
-
7
- &--disabled {
8
- color: $dark2;
9
- }
10
- }
11
-
12
- input,
13
- &__text--readonly {
14
- background-color: $dark4;
15
- color: $dark1;
16
- border: 1px solid $dark2;
17
- }
18
-
19
- &--disabled {
20
- input {
21
- color: $dark3 !important;
22
- }
23
- }
24
- }
25
- }
26
-
27
1
  .nut-inputnumber {
28
2
  display: $inputnumber-display;
29
3
  align-items: center;
@@ -77,3 +51,13 @@
77
51
  appearance: none;
78
52
  }
79
53
  }
54
+
55
+ .icon-minus {
56
+ --nut-icon-width: 20px;
57
+ --nut-icon-height: 20px;
58
+ }
59
+
60
+ .icon-plus {
61
+ --nut-icon-width: 20px;
62
+ --nut-icon-height: 20px;
63
+ }
@@ -38,6 +38,8 @@
38
38
 
39
39
  i {
40
40
  margin-right: $menu-item-option-i-margin-right;
41
+ display: inline-flex;
42
+ align-items: center;
41
43
  }
42
44
  }
43
45
  }
@@ -1,4 +1,3 @@
1
-
2
1
  .nut-theme-dark {
3
2
  .nut-navbar {
4
3
  background: $dark5;
@@ -124,8 +123,8 @@
124
123
  display: inline;
125
124
  }
126
125
 
127
- &-desc {
128
- font-size: $cell-title-desc-font;
126
+ &-description {
127
+ font-size: $cell-description-font-size;
129
128
  }
130
129
 
131
130
  .text__title {
@@ -150,7 +149,7 @@
150
149
  }
151
150
 
152
151
  &__left {
153
- font-size: $cell-desc-font;
152
+ font-size: $cell-extra-font-size;
154
153
  color: $gray2;
155
154
  position: absolute;
156
155
  left: 0;
@@ -163,7 +162,7 @@
163
162
  }
164
163
 
165
164
  &__right {
166
- font-size: $cell-desc-font;
165
+ font-size: $cell-extra-font-size;
167
166
  color: $gray2;
168
167
  position: absolute;
169
168
  right: 0;
@@ -1,22 +1,3 @@
1
- .nut-theme-dark {
2
- .nut-overlay {
3
- position: fixed;
4
- top: 0;
5
- left: 0;
6
- width: 100%;
7
- height: 100%;
8
- background: $dark7;
9
- }
10
- .overlay-fade-enter-active {
11
- .wrapper {
12
- .content {
13
- background-color: $dark2;
14
- color: $white;
15
- }
16
- }
17
- }
18
- }
19
-
20
1
  .nut-overlay {
21
2
  position: fixed;
22
3
  top: 0;
@@ -88,45 +88,45 @@
88
88
  align-items: center;
89
89
  justify-content: space-between;
90
90
  padding: $picker-bar-button-padding;
91
- }
92
91
 
93
- .nut-picker__cancel-btn {
94
- color: $picker-cancel-color;
95
- font-size: $picker-bar-cancel-font-size;
96
- }
92
+ .nut-picker__cancel-btn {
93
+ color: $picker-cancel-color;
94
+ font-size: $picker-bar-cancel-font-size;
95
+ }
97
96
 
98
- .nut-picker__confirm-btn {
99
- color: $picker-ok-color;
100
- font-size: $picker-bar-ok-font-size;
101
- }
97
+ .nut-picker__confirm-btn {
98
+ color: $picker-ok-color;
99
+ font-size: $picker-bar-ok-font-size;
100
+ }
102
101
 
103
- .nut-picker__title {
104
- flex: 1;
105
- overflow: hidden;
106
- text-overflow: ellipsis;
107
- white-space: nowrap;
108
- text-align: center;
109
- color: $picker-bar-title-color;
110
- font-size: $picker-bar-title-font-size;
111
- font-weight: $picker-bar-title-font-weight;
102
+ .nut-picker__title {
103
+ flex: 1;
104
+ overflow: hidden;
105
+ text-overflow: ellipsis;
106
+ white-space: nowrap;
107
+ text-align: center;
108
+ color: $picker-bar-title-color;
109
+ font-size: $picker-bar-title-font-size;
110
+ font-weight: $picker-bar-title-font-weight;
111
+ }
112
112
  }
113
113
 
114
114
  .nut-picker__panel {
115
115
  display: flex;
116
116
  position: relative;
117
- }
118
117
 
119
- .nut-picker-indicator {
120
- position: absolute;
121
- top: 108px;
122
- height: $picker-item-height;
123
- width: 100%;
124
- border: $picker-item-active-line-border;
125
- border-left: 0;
126
- border-right: 0;
127
- color: $picker-item-text-color;
128
- font-size: $picker-item-text-font-size;
129
- z-index: 3;
118
+ .nut-picker-indicator {
119
+ position: absolute;
120
+ top: 108px;
121
+ height: $picker-item-height;
122
+ width: 100%;
123
+ border: $picker-item-active-line-border;
124
+ border-left: 0;
125
+ border-right: 0;
126
+ color: $picker-item-text-color;
127
+ font-size: $picker-item-text-font-size;
128
+ z-index: 3;
129
+ }
130
130
  }
131
131
 
132
132
  .nut-picker-list {
@@ -135,89 +135,83 @@
135
135
  height: $picker-list-height;
136
136
  overflow: hidden;
137
137
  text-align: center;
138
- }
139
-
140
- .nut-picker-list-panel {
141
- transform-style: preserve-3d;
142
- }
143
138
 
144
- .nut-picker-mask {
145
- position: absolute;
146
- top: 0;
147
- left: 0;
148
- right: 0;
149
- bottom: 0;
150
- background-image: $picker-mask-bg-img;
151
- background-position: top, bottom;
152
- background-size: 100% 108px;
153
- background-repeat: no-repeat;
154
- z-index: 3;
155
- }
139
+ .nut-picker-list-panel {
140
+ transform-style: preserve-3d;
141
+ }
156
142
 
157
- .picker-view-panel {
158
- height: $picker-list-height;
159
- flex-grow: 1;
160
- }
143
+ .nut-picker-mask {
144
+ position: absolute;
145
+ top: 0;
146
+ left: 0;
147
+ right: 0;
148
+ bottom: 0;
149
+ background-image: $picker-mask-bg-img;
150
+ background-position: top, bottom;
151
+ background-size: 100% 108px;
152
+ background-repeat: no-repeat;
153
+ z-index: 3;
154
+ }
161
155
 
162
- .nut-picker-content,
163
- .nut-picker-roller {
164
- position: absolute;
165
- top: 108px;
166
- width: 100%;
167
- height: $picker-item-height;
168
- }
156
+ .nut-picker-content,
157
+ .nut-picker-roller {
158
+ position: absolute;
159
+ top: 108px;
160
+ width: 100%;
161
+ height: $picker-item-height;
162
+ }
169
163
 
170
- .nut-picker-content {
171
- background: #fff;
172
- z-index: 2;
173
- overflow: hidden;
174
- }
164
+ .nut-picker-content {
165
+ background: #fff;
166
+ z-index: 2;
167
+ overflow: hidden;
168
+ }
175
169
 
176
- .nut-picker-item,
177
- .nut-picker-roller-item {
178
- white-space: nowrap;
179
- overflow: hidden;
180
- text-overflow: ellipsis;
181
- height: $picker-item-height;
182
- line-height: $picker-item-height;
183
- color: $picker-item-text-color;
184
- font-size: $picker-item-text-font-size;
185
- text-align: center;
186
- }
170
+ .nut-picker-item,
171
+ .nut-picker-roller-item {
172
+ white-space: nowrap;
173
+ overflow: hidden;
174
+ text-overflow: ellipsis;
175
+ height: $picker-item-height;
176
+ line-height: $picker-item-height;
177
+ color: $picker-item-text-color;
178
+ font-size: $picker-item-text-font-size;
179
+ text-align: center;
180
+ }
187
181
 
188
- .nut-picker-item {
189
- font-size: 16px;
190
- background: #fff;
191
- }
182
+ .nut-picker-item {
183
+ font-size: 16px;
184
+ background: #fff;
185
+ }
192
186
 
193
- .nut-picker-roller {
194
- z-index: 1;
195
- transform-style: preserve-3d;
196
- }
187
+ .nut-picker-roller {
188
+ z-index: 1;
189
+ transform-style: preserve-3d;
197
190
 
198
- .nut-picker-roller-item {
199
- backface-visibility: hidden;
200
- -moz-backface-visibility: hidden;
201
- -webkit-backface-visibility: hidden;
202
- position: absolute;
203
- top: 0;
204
- width: 100%;
205
- color: $gray1;
206
- }
191
+ .nut-picker-roller-item {
192
+ backface-visibility: hidden;
193
+ -moz-backface-visibility: hidden;
194
+ -webkit-backface-visibility: hidden;
195
+ position: absolute;
196
+ top: 0;
197
+ width: 100%;
198
+ color: $gray1;
199
+ }
207
200
 
208
- .nut-picker-roller-item-title {
209
- display: block;
210
- width: 100%;
211
- height: 36px;
212
- line-height: 36px;
213
- text-align: center;
214
- color: $gray1;
215
- font-size: $picker-bar-title-font-size;
216
- }
201
+ .nut-picker-roller-item-title {
202
+ display: block;
203
+ width: 100%;
204
+ height: 36px;
205
+ line-height: 36px;
206
+ color: $gray1;
207
+ font-size: $picker-bar-title-font-size;
208
+ }
217
209
 
218
- .nut-picker-roller-item-hidden {
219
- visibility: hidden;
220
- opacity: 0;
210
+ .nut-picker-roller-item-hidden {
211
+ visibility: hidden;
212
+ opacity: 0;
213
+ }
214
+ }
221
215
  }
222
216
 
223
217
  .nut-picker-placeholder {
@@ -1,20 +1,4 @@
1
1
 
2
- .nut-theme-dark {
3
- .nut-popup {
4
- background: $dark6;
5
- }
6
-
7
- .nut-popup {
8
- &__close-icon {
9
- color: $dark1;
10
- }
11
- }
12
-
13
- .nut-popup-slide-center-enter-done {
14
- color: $dark1;
15
- }
16
- }
17
-
18
2
  .nut-popup {
19
3
  position: fixed;
20
4
  max-height: 100%;
@@ -1,4 +1,3 @@
1
-
2
1
  .nut-theme-dark {
3
2
  .nut-progress {
4
3
  &-text {