@nutui/nutui-react 2.1.0 → 2.1.1-beta.0

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 (301) hide show
  1. package/CHANGELOG.md +0 -20
  2. package/dist/esm/ActionSheet/style/style.css +1 -1
  3. package/dist/esm/ActionSheet.js +6 -7
  4. package/dist/esm/Address/style/style.css +1 -1
  5. package/dist/esm/Address.js +4 -4
  6. package/dist/esm/AnimatingNumbers/style/style.css +1 -1
  7. package/dist/esm/AnimatingNumbers.js +5 -5
  8. package/dist/esm/Audio/style/style.css +1 -1
  9. package/dist/esm/Audio.js +5 -5
  10. package/dist/esm/Avatar/style/style.css +1 -1
  11. package/dist/esm/Avatar.js +4 -4
  12. package/dist/esm/AvatarCropper/style/style.css +1 -1
  13. package/dist/esm/BackTop/style/style.css +1 -1
  14. package/dist/esm/Badge/style/style.css +1 -1
  15. package/dist/esm/Barrage/style/style.css +1 -1
  16. package/dist/esm/Button/style/style.css +1 -1
  17. package/dist/esm/Button.js +5 -84
  18. package/dist/esm/Calendar/style/style.css +1 -1
  19. package/dist/esm/CalendarCard/style/style.css +1 -1
  20. package/dist/esm/Card/style/style.css +1 -1
  21. package/dist/esm/Card.js +3 -3
  22. package/dist/esm/Cascader/style/style.css +1 -1
  23. package/dist/esm/Cell/style/style.css +1 -1
  24. package/dist/esm/Cell.js +5 -5
  25. package/dist/esm/CellGroup/style/style.css +1 -1
  26. package/dist/esm/CellGroup.js +3 -3
  27. package/dist/esm/Checkbox/style/style.css +1 -1
  28. package/dist/esm/CheckboxGroup/style/style.css +1 -1
  29. package/dist/esm/CheckboxGroup.js +1 -1
  30. package/dist/esm/CircleProgress/style/style.css +1 -1
  31. package/dist/esm/CircleProgress.js +2 -2
  32. package/dist/esm/Col/style/style.css +1 -1
  33. package/dist/esm/Collapse/style/style.css +1 -1
  34. package/dist/esm/CollapseItem/style/style.css +1 -1
  35. package/dist/esm/CountDown/style/style.css +1 -1
  36. package/dist/esm/CountDown.js +1 -1
  37. package/dist/esm/DatePicker/style/style.css +1 -1
  38. package/dist/esm/Dialog/style/style.css +1 -1
  39. package/dist/esm/Dialog.js +9 -12
  40. package/dist/esm/Divider/style/style.css +1 -1
  41. package/dist/esm/Divider.js +1 -1
  42. package/dist/esm/Elevator/style/style.css +1 -1
  43. package/dist/esm/Elevator.js +12 -12
  44. package/dist/esm/Ellipsis/style/style.css +1 -1
  45. package/dist/esm/Empty/style/style.css +1 -1
  46. package/dist/esm/Empty.js +31 -10
  47. package/dist/esm/FixedNav/style/style.css +1 -1
  48. package/dist/esm/FixedNav.js +6 -6
  49. package/dist/esm/Form/style/style.css +1 -1
  50. package/dist/esm/FormItem/style/style.css +1 -1
  51. package/dist/esm/Grid/style/style.css +1 -1
  52. package/dist/esm/Grid.js +1 -1
  53. package/dist/esm/GridItem/style/style.css +1 -1
  54. package/dist/esm/Image/style/style.css +1 -1
  55. package/dist/esm/ImagePreview/style/style.css +1 -1
  56. package/dist/esm/Indicator/style/style.css +1 -1
  57. package/dist/esm/InfiniteLoading/style/style.css +1 -1
  58. package/dist/esm/InfiniteLoading.js +57 -4
  59. package/dist/esm/Input/style/style.css +1 -1
  60. package/dist/esm/InputNumber/style/style.css +1 -1
  61. package/dist/esm/InputNumber.js +5 -5
  62. package/dist/esm/Loading/style/style.css +1 -1
  63. package/dist/esm/Menu/style/style.css +1 -1
  64. package/dist/esm/Menu.js +7 -14
  65. package/dist/esm/MenuItem/style/style.css +1 -1
  66. package/dist/esm/NavBar/style/style.css +1 -1
  67. package/dist/esm/NavBar.js +10 -9
  68. package/dist/esm/NoticeBar/style/style.css +1 -1
  69. package/dist/esm/NoticeBar.js +4 -4
  70. package/dist/esm/Notify/style/style.css +1 -1
  71. package/dist/esm/Notify.js +1 -1
  72. package/dist/esm/NumberKeyboard/style/style.css +1 -1
  73. package/dist/esm/NumberKeyboard.js +14 -14
  74. package/dist/esm/Overlay/style/style.css +1 -1
  75. package/dist/esm/Pagination/style/style.css +1 -1
  76. package/dist/esm/Pagination.js +14 -8
  77. package/dist/esm/Picker/style/style.css +1 -1
  78. package/dist/esm/Picker.js +5 -5
  79. package/dist/esm/Popover/style/style.css +1 -1
  80. package/dist/esm/Popover.js +13 -6
  81. package/dist/esm/Popup/style/style.css +1 -1
  82. package/dist/esm/Price/style/style.css +1 -1
  83. package/dist/esm/Price.js +5 -5
  84. package/dist/esm/Progress/style/style.css +1 -1
  85. package/dist/esm/Progress.js +1 -1
  86. package/dist/esm/PullToRefresh/style/style.css +1 -1
  87. package/dist/esm/PullToRefresh.js +37 -2
  88. package/dist/esm/Radio/style/style.css +1 -1
  89. package/dist/esm/RadioGroup/style/style.css +1 -1
  90. package/dist/esm/RadioGroup.js +1 -1
  91. package/dist/esm/Range/style/style.css +1 -1
  92. package/dist/esm/Rate/style/style.css +1 -1
  93. package/dist/esm/Rate.js +5 -5
  94. package/dist/esm/SearchBar/style/style.css +1 -1
  95. package/dist/esm/SearchBar.js +20 -20
  96. package/dist/esm/ShortPassword/style/style.css +1 -1
  97. package/dist/esm/ShortPassword.js +13 -13
  98. package/dist/esm/SideNavBar/style/style.css +1 -1
  99. package/dist/esm/SideNavBar.js +4 -4
  100. package/dist/esm/SideNavBarItem/style/style.css +1 -1
  101. package/dist/esm/SideNavBarItem.js +1 -1
  102. package/dist/esm/Signature/style/style.css +1 -1
  103. package/dist/esm/Signature.js +3 -3
  104. package/dist/esm/Skeleton/style/style.css +1 -1
  105. package/dist/esm/Skeleton.js +7 -7
  106. package/dist/esm/Step/style/style.css +1 -1
  107. package/dist/esm/Steps/style/style.css +1 -1
  108. package/dist/esm/Sticky/style/style.css +1 -1
  109. package/dist/esm/Sticky.js +1 -1
  110. package/dist/esm/SubSideNavBar/style/style.css +1 -1
  111. package/dist/esm/SubSideNavBar.js +6 -6
  112. package/dist/esm/Swipe/style/style.css +1 -1
  113. package/dist/esm/Swipe.js +2 -2
  114. package/dist/esm/Swiper/style/style.css +1 -1
  115. package/dist/esm/Swiper.js +3 -3
  116. package/dist/esm/Switch/style/style.css +1 -1
  117. package/dist/esm/Switch.js +3 -3
  118. package/dist/esm/TabPane/style/style.css +1 -1
  119. package/dist/esm/Tabbar/style/style.css +1 -1
  120. package/dist/esm/Tabbar.js +3 -3
  121. package/dist/esm/TabbarItem/style/style.css +1 -1
  122. package/dist/esm/Table/style/style.css +1 -1
  123. package/dist/esm/Table.js +11 -11
  124. package/dist/esm/Tabs/style/style.css +1 -1
  125. package/dist/esm/Tag/style/style.css +1 -1
  126. package/dist/esm/Tag.js +3 -3
  127. package/dist/esm/TextArea/style/style.css +1 -1
  128. package/dist/esm/TextArea.js +3 -3
  129. package/dist/esm/TimeDetail/style/style.css +1 -1
  130. package/dist/esm/TimeDetail.js +1 -1
  131. package/dist/esm/TimeSelect/style/style.css +1 -1
  132. package/dist/esm/TimeSelect.js +3 -4
  133. package/dist/esm/Toast/style/style.css +1 -1
  134. package/dist/esm/Toast.js +3 -3
  135. package/dist/esm/Tour/style/style.css +1 -1
  136. package/dist/esm/TrendArrow/style/style.css +1 -1
  137. package/dist/esm/TrendArrow.js +4 -4
  138. package/dist/esm/Uploader/style/style.css +1 -1
  139. package/dist/esm/Uploader.js +20 -20
  140. package/dist/esm/VirtualList/style/style.css +1 -1
  141. package/dist/esm/badge2.js +20 -7
  142. package/dist/esm/button2.js +88 -0
  143. package/dist/esm/cascader2.js +6 -6
  144. package/dist/esm/checkbox2.js +47 -10
  145. package/dist/esm/collapseitem2.js +7 -7
  146. package/dist/esm/configprovider2.js +1 -1
  147. package/dist/esm/context5.js +1 -1
  148. package/dist/esm/formitem2.js +4 -4
  149. package/dist/esm/griditem2.js +2 -2
  150. package/dist/esm/indicator2.js +3 -3
  151. package/dist/esm/menuitem2.js +7 -7
  152. package/dist/esm/overlay2.js +1 -1
  153. package/dist/esm/popup2.js +21 -20
  154. package/dist/esm/radio2.js +10 -5
  155. package/dist/esm/tabbaritem2.js +1 -1
  156. package/dist/esm/tabs2.js +8 -8
  157. package/dist/esm/types/src/packages/button/button.d.ts +3 -2
  158. package/dist/esm/types/src/packages/button/button.taro.d.ts +3 -2
  159. package/dist/esm/types/src/packages/checkbox/checkbox.d.ts +2 -0
  160. package/dist/esm/types/src/packages/checkbox/checkbox.taro.d.ts +2 -0
  161. package/dist/esm/types/src/packages/configprovider/types.d.ts +1 -1
  162. package/dist/esm/types/src/packages/dialog/config.d.ts +1 -0
  163. package/dist/esm/types/src/packages/dialog/content.d.ts +1 -0
  164. package/dist/esm/types/src/packages/dialog/content.taro.d.ts +1 -0
  165. package/dist/esm/types/src/packages/empty/demo.d.ts +0 -1
  166. package/dist/esm/types/src/packages/empty/demo.taro.d.ts +0 -1
  167. package/dist/esm/types/src/packages/empty/empty.d.ts +5 -1
  168. package/dist/esm/types/src/packages/empty/empty.taro.d.ts +5 -1
  169. package/dist/esm/types/src/packages/empty/index.d.ts +1 -0
  170. package/dist/esm/types/src/packages/empty/index.taro.d.ts +1 -0
  171. package/dist/esm/types/src/packages/empty/types.d.ts +3 -0
  172. package/dist/esm/types/src/packages/indicator/demo.d.ts +0 -1
  173. package/dist/esm/types/src/packages/indicator/demo.taro.d.ts +0 -1
  174. package/dist/esm/types/src/packages/inputnumber/demo.d.ts +0 -1
  175. package/dist/esm/types/src/packages/inputnumber/demo.taro.d.ts +0 -1
  176. package/dist/esm/types/src/packages/navbar/navbar.d.ts +1 -0
  177. package/dist/esm/types/src/packages/navbar/navbar.taro.d.ts +1 -0
  178. package/dist/esm/types/src/packages/pagination/pagination.d.ts +1 -1
  179. package/dist/esm/types/src/packages/pagination/pagination.taro.d.ts +1 -1
  180. package/dist/esm/types/src/packages/popover/popover.d.ts +4 -0
  181. package/dist/esm/types/src/packages/popover/popover.taro.d.ts +4 -0
  182. package/dist/esm/types/src/packages/popup/popup.d.ts +1 -0
  183. package/dist/esm/types/src/packages/popup/popup.taro.d.ts +3 -2
  184. package/dist/esm/types/src/packages/searchbar/searchbar.d.ts +1 -0
  185. package/dist/esm/types/src/packages/searchbar/searchbar.taro.d.ts +1 -0
  186. package/dist/esm/types/src/packages/swipe/swipe.d.ts +0 -6
  187. package/dist/esm/types/src/packages/tabs/tabs.d.ts +1 -1
  188. package/dist/esm/types/src/packages/tabs/tabs.taro.d.ts +1 -1
  189. package/dist/esm/types/src/packages/virtuallist/utils.d.ts +1 -1
  190. package/dist/locales/base.js +1 -1
  191. package/dist/locales/en-US.js +1 -1
  192. package/dist/locales/id-ID.js +1 -1
  193. package/dist/locales/tr-TR.js +1 -1
  194. package/dist/locales/zh-CN.js +2 -2
  195. package/dist/locales/zh-TW.js +1 -1
  196. package/dist/locales/zh-UG.js +1 -1
  197. package/dist/nutui.react.es.js +3041 -1636
  198. package/dist/nutui.react.umd.js +3051 -1646
  199. package/dist/packages/actionsheet/actionsheet.scss +15 -15
  200. package/dist/packages/address/address.scss +6 -6
  201. package/dist/packages/animatingnumbers/countup.scss +19 -6
  202. package/dist/packages/audio/audio.scss +17 -9
  203. package/dist/packages/avatar/avatar.scss +1 -1
  204. package/dist/packages/avatarcropper/avatarcropper.scss +4 -0
  205. package/dist/packages/backtop/backtop.scss +6 -3
  206. package/dist/packages/badge/badge.scss +25 -6
  207. package/dist/packages/barrage/barrage.scss +16 -6
  208. package/dist/packages/button/button.scss +163 -93
  209. package/dist/packages/calendar/calendar.scss +17 -16
  210. package/dist/packages/calendarcard/calendarcard.scss +8 -8
  211. package/dist/packages/card/card.scss +28 -14
  212. package/dist/packages/cascader/cascader.scss +6 -6
  213. package/dist/packages/cell/cell.scss +3 -3
  214. package/dist/packages/cellgroup/cellgroup.scss +6 -6
  215. package/dist/packages/checkbox/checkbox.scss +82 -22
  216. package/dist/packages/checkboxgroup/checkboxgroup.scss +17 -7
  217. package/dist/packages/collapseitem/collapseitem.scss +32 -10
  218. package/dist/packages/dialog/dialog.scss +22 -37
  219. package/dist/packages/divider/divider.scss +13 -13
  220. package/dist/packages/elevator/elevator.scss +51 -37
  221. package/dist/packages/empty/empty.scss +36 -6
  222. package/dist/packages/fixednav/fixednav.scss +27 -14
  223. package/dist/packages/form/form.scss +4 -4
  224. package/dist/packages/formitem/formitem.scss +6 -6
  225. package/dist/packages/grid/grid.scss +1 -1
  226. package/dist/packages/griditem/griditem.scss +16 -15
  227. package/dist/packages/image/image.scss +4 -2
  228. package/dist/packages/imagepreview/imagepreview.scss +1 -11
  229. package/dist/packages/indicator/indicator.scss +9 -9
  230. package/dist/packages/infiniteloading/infiniteloading.scss +23 -8
  231. package/dist/packages/input/input.scss +4 -2
  232. package/dist/packages/inputnumber/inputnumber.scss +21 -18
  233. package/dist/packages/loading/loading.scss +3 -3
  234. package/dist/packages/menu/menu.scss +22 -30
  235. package/dist/packages/menuitem/menuitem.scss +55 -56
  236. package/dist/packages/navbar/navbar.scss +52 -16
  237. package/dist/packages/noticebar/noticebar.scss +12 -11
  238. package/dist/packages/notify/notify.scss +10 -18
  239. package/dist/packages/numberkeyboard/numberkeyboard.scss +19 -17
  240. package/dist/packages/pagination/pagination.scss +32 -9
  241. package/dist/packages/picker/picker.scss +19 -19
  242. package/dist/packages/popover/popover.scss +51 -35
  243. package/dist/packages/popup/popup.scss +225 -213
  244. package/dist/packages/price/price.scss +20 -9
  245. package/dist/packages/progress/progress.scss +1 -1
  246. package/dist/packages/pulltorefresh/pulltorefresh.scss +9 -2
  247. package/dist/packages/radio/radio.scss +45 -40
  248. package/dist/packages/radiogroup/radiogroup.scss +18 -18
  249. package/dist/packages/range/range.scss +15 -4
  250. package/dist/packages/rate/rate.scss +8 -9
  251. package/dist/packages/searchbar/searchbar.scss +67 -42
  252. package/dist/packages/shortpassword/shortpassword.scss +24 -24
  253. package/dist/packages/sidenavbar/sidenavbar.scss +8 -8
  254. package/dist/packages/sidenavbaritem/sidenavbaritem.scss +3 -3
  255. package/dist/packages/signature/signature.scss +5 -2
  256. package/dist/packages/skeleton/skeleton.scss +8 -8
  257. package/dist/packages/step/step.scss +27 -32
  258. package/dist/packages/sticky/sticky.scss +1 -1
  259. package/dist/packages/subsidenavbar/subsidenavbar.scss +5 -5
  260. package/dist/packages/swipe/swipe.scss +8 -5
  261. package/dist/packages/swiper/swiper.scss +4 -4
  262. package/dist/packages/switch/switch.scss +39 -28
  263. package/dist/packages/tabbar/tabbar.scss +4 -4
  264. package/dist/packages/tabbaritem/tabbaritem.scss +8 -1
  265. package/dist/packages/table/table.scss +28 -28
  266. package/dist/packages/tabpane/tabpane.scss +2 -2
  267. package/dist/packages/tabs/tabs.scss +181 -137
  268. package/dist/packages/tag/tag.scss +12 -12
  269. package/dist/packages/textarea/textarea.scss +6 -6
  270. package/dist/packages/timedetail/timedetail.scss +8 -9
  271. package/dist/packages/timeselect/timeselect.scss +12 -21
  272. package/dist/packages/toast/toast.scss +37 -22
  273. package/dist/packages/tour/tour.scss +9 -4
  274. package/dist/packages/trendarrow/trendarrow.scss +8 -3
  275. package/dist/packages/uploader/uploader.scss +41 -37
  276. package/dist/packages/virtuallist/virtuallist.scss +13 -3
  277. package/dist/packages/watermark/watermark.scss +1 -0
  278. package/dist/style.css +1 -1
  279. package/dist/style.mjs +1 -1
  280. package/dist/styles/theme-dark.scss +118 -23
  281. package/dist/styles/theme-default.scss +114 -32
  282. package/dist/styles/theme-jmapp.scss +158 -32
  283. package/dist/styles/variables-jmapp.scss +1120 -1258
  284. package/dist/styles/variables.scss +953 -1174
  285. package/dist/types/packages/animate/animate.d.ts +1 -1
  286. package/dist/types/packages/button/button.d.ts +3 -2
  287. package/dist/types/packages/checkbox/checkbox.d.ts +2 -0
  288. package/dist/types/packages/configprovider/types.d.ts +1 -1
  289. package/dist/types/packages/dialog/config.d.ts +1 -0
  290. package/dist/types/packages/dialog/content.d.ts +1 -0
  291. package/dist/types/packages/empty/empty.d.ts +5 -1
  292. package/dist/types/packages/empty/index.d.ts +1 -0
  293. package/dist/types/packages/empty/types.d.ts +3 -0
  294. package/dist/types/packages/navbar/navbar.d.ts +1 -0
  295. package/dist/types/packages/pagination/pagination.d.ts +1 -1
  296. package/dist/types/packages/popover/popover.d.ts +4 -0
  297. package/dist/types/packages/popup/popup.d.ts +15 -2
  298. package/dist/types/packages/searchbar/searchbar.d.ts +5 -0
  299. package/dist/types/packages/swipe/swipe.d.ts +6 -6
  300. package/dist/types/packages/tabs/tabs.d.ts +2 -2
  301. package/package.json +2 -2
@@ -1,6 +1,7 @@
1
1
  @import '../../styles/mixins/text-ellipsis.scss';
2
2
 
3
3
  .nut-menu {
4
+ position: relative;
4
5
  &.scroll-fixed {
5
6
  position: fixed;
6
7
  top: $menu-scroll-fixed-top;
@@ -9,56 +10,47 @@
9
10
  }
10
11
  }
11
12
 
12
- .nut-menu-relative {
13
- position: relative;
14
- }
15
-
16
- .nut-menu__bar {
13
+ .nut-menu-bar {
17
14
  position: relative;
18
15
  display: flex;
19
16
  line-height: $menu-bar-line-height;
20
- background-color: $white;
17
+ background-color: $color-background-overlay;
21
18
  box-shadow: $menu-bar-box-shadow;
22
19
 
23
20
  &.opened {
24
21
  z-index: $menu-bar-opened-z-index;
25
22
  }
26
23
  }
27
-
28
- .nut-menu__item {
24
+ .nut-menu-title {
29
25
  flex: 1;
30
26
  text-align: center;
31
- font-size: $menu-item-font-size;
32
- color: $menu-item-text-color;
27
+ font-size: $menu-title-font-size;
28
+ color: $menu-title-color;
33
29
  min-width: 0;
30
+ display: flex;
31
+ align-items: center;
32
+ justify-content: center;
33
+ max-width: 100%;
34
+
35
+ &-text {
36
+ @include text-ellipsis;
37
+ display: block;
38
+ padding: $menu-title-padding;
39
+ }
40
+
41
+ &-icon {
42
+ transition: all 0.2s linear;
43
+ }
34
44
 
35
45
  &.active {
36
- color: $menu-item-active-text-color;
46
+ color: $menu-item-active-color;
37
47
  }
38
48
 
39
49
  &.disabled {
40
50
  color: $menu-item-disabled-color;
41
51
  }
42
- }
43
-
44
- .nut-menu__title-icon {
45
- transition: all 0.2s linear;
46
- }
47
52
 
48
- .nut-menu__title {
49
- display: flex;
50
- align-items: center;
51
- justify-content: center;
52
- max-width: 100%;
53
-
54
- &.active .nut-menu__title-icon {
53
+ &.active .nut-menu-title-icon {
55
54
  transform: rotate(180deg);
56
55
  }
57
56
  }
58
-
59
- .nut-menu__title-text {
60
- @include text-ellipsis;
61
- display: block;
62
- padding-left: $menu-title-text-padding-left;
63
- padding-right: $menu-title-text-padding-right;
64
- }
@@ -1,64 +1,63 @@
1
1
 
2
- .nut-menu-item__content {
3
- padding: $menu-item-content-padding;
4
- max-height: $menu-item-content-max-height;
5
- overflow-y: auto;
6
- display: flex;
7
- flex-wrap: wrap;
8
- background: $menu-item-content-bg-color;
9
-
10
- &_fixed {
11
- width: 100%;
12
- opacity: 0;
13
- position: fixed;
14
- }
15
- }
16
-
17
- .nut-menu-item__option {
18
- color: $title-color;
19
- font-size: $font-size-2;
20
- padding-top: $menu-item-option-padding-top;
21
- padding-bottom: $menu-item-option-padding-bottom;
22
- display: flex;
23
- align-items: center;
24
-
25
- &.active {
26
- font-weight: 500;
27
- color: $menu-item-active-text-color;
2
+ .nut-menu-container {
3
+ &-content {
4
+ padding: $menu-content-padding;
5
+ max-height: $menu-content-max-height;
6
+ overflow-y: auto;
7
+ display: flex;
8
+ flex-wrap: wrap;
9
+ background: $menu-content-background-color;
10
+
11
+ &_fixed {
12
+ width: 100%;
13
+ opacity: 0;
14
+ position: fixed;
15
+ }
28
16
  }
29
-
30
- i {
31
- margin-right: $menu-item-option-i-margin-right;
32
- display: inline-flex;
17
+ &-item {
18
+ display: flex;
33
19
  align-items: center;
20
+ color: $color-title;
21
+ font-size: $font-size-base;
22
+ padding: $menu-item-padding;
23
+
24
+ &.active {
25
+ font-weight: $menu-item-active-font-weight;
26
+ color: $menu-item-active-color;
27
+ }
28
+
29
+ i {
30
+ display: inline-flex;
31
+ align-items: center;
32
+ margin-right: $menu-item-icon-margin;
33
+ }
34
+ }
35
+ &-wrap,
36
+ &-wrap-up {
37
+ position: absolute;
38
+ width: 100%;
39
+ z-index: $menu-container-z-index;
40
+ overflow: hidden;
34
41
  }
35
- }
36
-
37
- .nut-menu-item__wrap,
38
- .nut-menu-item__wrap-up {
39
- position: absolute;
40
- width: 100%;
41
- z-index: $menu-item-z-index;
42
- overflow: hidden;
43
- }
44
42
 
45
- .nut-menu-item__wrap-up {
46
- bottom: $menu-bar-line-height;
43
+ &-wrap-up {
44
+ bottom: $menu-bar-line-height;
45
+ }
47
46
  }
48
47
 
49
- .overlay-fade-enter-active.nut-menu__overlay {
48
+ .overlay-fade-enter-active.nut-menu-container-overlay {
50
49
  top: auto;
51
- z-index: $menu-item-z-index;
50
+ z-index: $menu-container-z-index;
52
51
  }
53
52
 
54
- .nut-menu__pop.nut-popup {
55
- transition: all 0s ease 0s;
56
- transform: none;
57
- }
53
+ // .nut-menu-pop.nut-popup {
54
+ // transition: all 0s ease 0s;
55
+ // transform: none;
56
+ // }
58
57
 
59
58
  .placeholder-element {
60
59
  position: fixed;
61
- top: $menu-placeholder-top;
60
+ top: -$menu-bar-line-height;
62
61
  left: 0;
63
62
  right: 0;
64
63
  z-index: $menu-bar-opened-z-index;
@@ -69,44 +68,44 @@
69
68
  }
70
69
  }
71
70
 
72
- .menu-item-enter {
71
+ .nut-menu-container-down-enter {
73
72
  opacity: 0;
74
73
  transform: translate(0, -30px);
75
74
  }
76
75
 
77
- .menu-item-enter-done {
76
+ .nut-menu-container-down-enter-done {
78
77
  opacity: 1;
79
78
  transform: translate(0, 0);
80
79
  transition: all 100ms;
81
80
  }
82
81
 
83
- .menu-item-exit {
82
+ .nut-menu-container-down-exit {
84
83
  opacity: 1;
85
84
  transition: all 100ms;
86
85
  }
87
86
 
88
- .menu-item-exit-done {
87
+ .nut-menu-container-down-exit-done {
89
88
  opacity: 0;
90
89
  transition: all 100ms;
91
90
  }
92
91
 
93
- .menu-item-up-enter {
92
+ .nut-menu-container-up-enter {
94
93
  opacity: 0;
95
94
  transform: translate(0, 30px);
96
95
  }
97
96
 
98
- .menu-item-up-enter-done {
97
+ .nut-menu-container-up-enter-done {
99
98
  opacity: 1;
100
99
  transform: translate(0, 0);
101
100
  transition: all 100ms;
102
101
  }
103
102
 
104
- .menu-item-up-exit {
103
+ .nut-menu-container-up-exit {
105
104
  opacity: 1;
106
105
  transition: all 100ms;
107
106
  }
108
107
 
109
- .menu-item-up-exit-done {
108
+ .nut-menu-container-up-exit-done {
110
109
  opacity: 0;
111
110
  transition: all 100ms;
112
111
  }
@@ -5,7 +5,6 @@
5
5
  align-items: center;
6
6
  height: $navbar-height;
7
7
  box-sizing: border-box;
8
- padding: $navbar-padding;
9
8
  background: $navbar-background;
10
9
  box-shadow: $navbar-box-shadow;
11
10
  font-size: $navbar-font-size;
@@ -13,24 +12,24 @@
13
12
  margin-bottom: $navbar-margin-bottom;
14
13
  overflow: hidden;
15
14
 
16
- &--fixed {
15
+ &-fixed {
17
16
  position: fixed;
18
17
  top: 0;
19
18
  left: 0;
20
19
  width: 100%;
21
20
  }
22
21
 
23
- &--placeholder {
22
+ &-placeholder {
24
23
  display: inline-block;
25
24
  width: 100%;
26
25
  }
27
26
 
28
- &--safe-area-inset-top {
27
+ &-safe-area-inset-top {
29
28
  padding-top: constant(safe-area-inset-top);
30
29
  padding-top: env(safe-area-inset-top);
31
30
  }
32
31
 
33
- &__title {
32
+ &-title {
34
33
  min-width: 53%;
35
34
  margin: 0 auto;
36
35
  text-align: center;
@@ -41,11 +40,11 @@
41
40
  font-weight: $navbar-title-font-weight;
42
41
  color: $navbar-title-font-color;
43
42
 
44
- .nut-tabs__titles {
45
- background: $white;
43
+ .nut-tabs-titles {
44
+ background: transparent;
46
45
 
47
- &-item__text {
48
- color: $title-color;
46
+ &-item-text {
47
+ color: $color-title;
49
48
  }
50
49
  }
51
50
 
@@ -54,24 +53,31 @@
54
53
  }
55
54
  }
56
55
 
57
- &__title ::-webkit-scrollbar {
56
+ &-title ::-webkit-scrollbar {
58
57
  display: none;
59
58
  }
60
59
 
61
- &__left,
62
- &__right {
60
+ &-left,
61
+ &-right {
63
62
  position: absolute;
64
63
  top: 0;
65
64
  bottom: 0;
66
65
  display: flex;
67
66
  align-items: center;
68
67
  cursor: pointer;
69
- padding: 0 16px;
68
+ padding: 0 14px;
69
+
70
+ .nut-icon,
71
+ .nutui-iconfont {
72
+ width: 20px;
73
+ height: 20px;
74
+ font-size: 20px;
75
+ }
70
76
  }
71
77
 
72
- &__left {
78
+ &-left {
73
79
  left: 0;
74
- &__back {
80
+ &-back {
75
81
  display: flex;
76
82
  align-items: center;
77
83
  justify-content: center;
@@ -79,7 +85,37 @@
79
85
  }
80
86
  }
81
87
 
82
- &__right {
88
+ &-right {
83
89
  right: 0;
90
+ .nut-icon {
91
+ margin-left: 12px;
92
+ &:first-child {
93
+ margin-left: 0;
94
+ }
95
+ }
96
+ }
97
+
98
+ &-title-align-left {
99
+ padding: 0 14px;
100
+
101
+ .nut-navbar-left {
102
+ position: static;
103
+ padding: 0;
104
+ .nut-icon {
105
+ margin-left: 12px;
106
+ &:first-child {
107
+ margin-left: 0;
108
+ }
109
+ }
110
+ }
111
+ .nut-navbar-left-back {
112
+ margin-right: 0;
113
+ }
114
+ .nut-navbar-title {
115
+ margin: 0;
116
+ flex: 1;
117
+ justify-content: flex-start;
118
+ padding: 0 8px;
119
+ }
84
120
  }
85
121
  }
@@ -1,15 +1,16 @@
1
1
  .nut-noticebar {
2
2
  width: 100%;
3
3
 
4
- .nut-noticebar-page {
4
+ .nut-noticebar-box {
5
+ position: relative;
5
6
  display: flex;
6
- padding: $noticebar-box-padding;
7
+ align-items: center;
7
8
  height: $noticebar-height;
9
+ padding: $noticebar-box-padding;
8
10
  font-size: $noticebar-font-size;
9
- position: relative;
10
- align-items: center;
11
11
  background: $noticebar-background;
12
12
  color: $noticebar-color;
13
+ border-radius: $noticebar-border-radius;
13
14
 
14
15
  &.wrapable {
15
16
  height: auto;
@@ -35,7 +36,7 @@
35
36
  display: flex;
36
37
  height: $noticebar-left-icon-width;
37
38
  min-width: $noticebar-left-icon-width;
38
- margin: $noticebar-lefticon-margin;
39
+ margin-right: $noticebar-icon-gap;
39
40
  background-size: 100% 100%;
40
41
  }
41
42
 
@@ -44,7 +45,7 @@
44
45
  align-items: center;
45
46
  justify-content: center;
46
47
  width: $noticebar-right-icon-width;
47
- margin: $noticebar-righticon-margin;
48
+ margin-left: $noticebar-icon-gap;
48
49
  }
49
50
 
50
51
  .wrap {
@@ -113,19 +114,19 @@
113
114
  .left-icon {
114
115
  height: $noticebar-left-icon-width;
115
116
  min-width: $noticebar-left-icon-width;
116
- margin: $noticebar-lefticon-margin;
117
+ margin: $noticebar-icon-gap;
117
118
  background-size: 100% 100%;
118
119
  display: flex;
119
120
  align-self: center;
120
121
  }
121
122
 
122
- .horseLamp_list {
123
+ .horseLamp-list {
123
124
  margin: 0;
124
125
  padding: 0;
125
126
  display: block;
126
127
  flex: 1;
127
128
 
128
- .horseLamp_list_item {
129
+ .horseLamp-list-item {
129
130
  display: flex;
130
131
  align-items: center;
131
132
  height: $noticebar-height;
@@ -133,7 +134,7 @@
133
134
  }
134
135
  }
135
136
 
136
- .nut-noticebar__inner {
137
+ .nut-noticebar-inner {
137
138
  display: flex;
138
139
  height: 100%;
139
140
  width: 100%;
@@ -147,7 +148,7 @@
147
148
  display: flex;
148
149
  justify-content: center;
149
150
  width: $noticebar-right-icon-width;
150
- margin: $noticebar-righticon-margin;
151
+ margin-left: $noticebar-icon-gap;
151
152
  }
152
153
  }
153
154
  }
@@ -42,16 +42,18 @@
42
42
  }
43
43
 
44
44
  .nut-notify {
45
+ display: flex;
46
+ justify-content: center;
47
+ align-items: center;
45
48
  box-sizing: border-box;
46
49
  padding: $notify-padding;
47
50
  color: $notify-text-color;
48
51
  font-size: $notify-font-size;
49
52
  white-space: pre-wrap;
50
- text-align: center;
51
53
  word-wrap: break-word;
52
54
  height: $notify-height;
53
- line-height: $notify-line-height;
54
- &--popup-top {
55
+ &-popup-top,
56
+ &-popup-bottom {
55
57
  position: fixed;
56
58
  top: 0;
57
59
  left: 0;
@@ -61,33 +63,23 @@
61
63
  z-index: 9999;
62
64
  }
63
65
 
64
- &--popup-bottom {
65
- position: fixed;
66
- bottom: 0;
67
- left: 0;
68
- width: 100%;
69
- overflow-y: auto;
70
- transition: transform 0.3s;
71
- z-index: 9999;
72
- }
73
-
74
- &--base {
66
+ &-base {
75
67
  background: $notify-base-background-color;
76
68
  }
77
69
 
78
- &--primary {
70
+ &-primary {
79
71
  background: $notify-primary-background-color;
80
72
  }
81
73
 
82
- &--success {
74
+ &-success {
83
75
  background: $notify-success-background-color;
84
76
  }
85
77
 
86
- &--danger {
78
+ &-danger {
87
79
  background: $notify-danger-background-color;
88
80
  }
89
81
 
90
- &--warning {
82
+ &-warning {
91
83
  background: $notify-warning-background-color;
92
84
  }
93
85
  }
@@ -1,28 +1,26 @@
1
1
 
2
2
  .nut-numberkeyboard {
3
- width: $numberkeyboard-width;
3
+ width: 100%;
4
4
  padding: $numberkeyboard-padding;
5
- background-color: $numberkeyboard-background-color;
6
5
  user-select: none;
7
- background-color: $gray4;
6
+ background-color: $numberkeyboard-background-color;
8
7
 
9
- &__header {
8
+ &-header {
10
9
  position: relative;
11
10
  display: flex;
12
11
  align-items: center;
13
12
  justify-content: center;
14
13
  box-sizing: content-box;
15
- height: $numberkeyboard-header-height;
16
- padding: $numberkeyboard-header-padding;
17
- color: $numberkeyboard-header-color;
18
- font-size: $numberkeyboard-header-font-size;
14
+ padding: $popup-title-padding;
15
+ color: $color-title;
16
+ font-size: $popup-title-font-size;
19
17
 
20
- &__title {
21
- color: $title-color;
18
+ &-title {
19
+ color: $color-title;
22
20
  display: inline-block;
23
21
  }
24
22
 
25
- &__close {
23
+ &-close {
26
24
  position: absolute;
27
25
  display: block;
28
26
  right: 0;
@@ -35,23 +33,23 @@
35
33
  }
36
34
  }
37
35
 
38
- &__body {
36
+ &-body {
39
37
  display: flex;
40
38
  padding: 6px 0 0 6px;
41
39
 
42
- &__keys {
40
+ &-keys {
43
41
  display: flex;
44
42
  flex: 3;
45
43
  flex-wrap: wrap;
46
44
  }
47
45
 
48
- &__wrapper {
46
+ &-wrapper {
49
47
  position: relative;
50
48
  flex: 1;
51
49
  flex-basis: 33%;
52
50
  box-sizing: border-box;
53
51
  padding: 0 6px 6px 0;
54
- background-color: $gray5;
52
+ background-color: $numberkeyboard-wrapper-background-color;
55
53
 
56
54
  .key {
57
55
  display: flex;
@@ -63,7 +61,10 @@
63
61
  background-color: $numberkeyboard-key-background-color;
64
62
  color: $numberkeyboard-key-font-color;
65
63
  border-radius: $numberkeyboard-key-border-radius;
64
+ border: $numberkeyboard-key-border;
65
+ font-weight: $font-weight-bold;
66
66
  cursor: pointer;
67
+
67
68
  &.active {
68
69
  background-color: $numberkeyboard-key-active-background-color;
69
70
  }
@@ -71,12 +72,12 @@
71
72
  }
72
73
  }
73
74
 
74
- &__sidebar {
75
+ &-sidebar {
75
76
  display: flex;
76
77
  flex: 1;
77
78
  flex-direction: column;
78
79
 
79
- .nut-numberkeyboard__body__wrapper {
80
+ .nut-numberkeyboard-body-wrapper {
80
81
  .key {
81
82
  position: absolute;
82
83
  top: 0;
@@ -90,6 +91,7 @@
90
91
  font-size: $numberkeyboard-key-confirm-font-size;
91
92
  color: $numberkeyboard-key-confirm-font-color;
92
93
  background-color: $numberkeyboard-key-confirm-background-color;
94
+
93
95
  &.active {
94
96
  background-color: rgba(255, 0, 0, 0.7);
95
97
  }
@@ -3,20 +3,20 @@
3
3
  font-size: $pagination-font-size;
4
4
  color: $pagination-color;
5
5
 
6
- &__contain {
6
+ &-contain {
7
7
  display: flex;
8
8
  }
9
9
 
10
- &__simple {
10
+ &-simple {
11
11
  height: 39px;
12
12
  width: 124px;
13
13
  line-height: 39px;
14
14
  text-align: center;
15
15
  }
16
16
 
17
- &__prev,
18
- &__item,
19
- &__next {
17
+ &-prev,
18
+ &-item,
19
+ &-next {
20
20
  height: 39px;
21
21
  min-width: 39px;
22
22
  flex-shrink: 0;
@@ -30,13 +30,13 @@
30
30
  cursor: pointer;
31
31
  }
32
32
 
33
- &__prev,
34
- &__item {
33
+ &-prev,
34
+ &-item {
35
35
  border-right: none;
36
36
  }
37
37
 
38
- &__prev,
39
- &__next {
38
+ &-prev,
39
+ &-next {
40
40
  padding: $pagination-prev-next-padding;
41
41
  }
42
42
 
@@ -56,4 +56,27 @@
56
56
  background-color: $pagination-disable-background-color;
57
57
  cursor: not-allowed;
58
58
  }
59
+
60
+ &-lite {
61
+ width: $pagination-lite-width;
62
+ height: $pagination-lite-height;
63
+ display: flex;
64
+ font-size: $font-size-xs;
65
+ color: $color-primary-text;
66
+ background-color: $pagination-lite-background-color;
67
+ border-radius: $pagination-lite-radius;
68
+ &-active,
69
+ &-default {
70
+ display: flex;
71
+ align-items: center;
72
+ justify-content: center;
73
+ width: $pagination-lite-height;
74
+ height: $pagination-lite-height;
75
+ }
76
+ &-active {
77
+ border-radius: $pagination-lite-radius;
78
+ font-size: $font-size-small;
79
+ background-color: $pagination-lite-active-background-color;
80
+ }
81
+ }
59
82
  }