@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,295 +1,307 @@
1
1
 
2
2
  .nut-popup {
3
3
  position: fixed;
4
+ min-height: 40%;
4
5
  max-height: 100%;
5
6
  overflow-y: auto;
6
- background-color: $white;
7
- color: $gray1;
7
+ background-color: $overlay-content-bg-color;
8
+ color: $color-title;
8
9
  -webkit-overflow-scrolling: touch;
10
+ font-size: $font-size-base;
9
11
 
10
12
  &-title {
11
13
  display: flex;
12
14
  align-items: center;
13
15
  justify-content: center;
14
- background-color: $gray6;
15
- color: $gray1;
16
- padding: $popup-title-padding;
17
- font-weight: $font-weight-bold;
18
- line-height: $popup-title-line-height;
19
- font-size: $popup-title-font-size;
16
+ height: $popup-title-height;
20
17
  border-bottom: $popup-title-border-bottom;
21
- }
22
-
23
- &-left-icon {
24
- position: absolute;
25
- top: $popup-close-icon-margin;
26
- left: $popup-close-icon-margin;
27
- }
28
-
29
- &__close-icon {
30
- position: absolute !important;
31
- z-index: 1;
32
- color: $popup-close-icon-color;
33
- cursor: pointer;
34
- width: 30px;
35
- height: 30px;
36
- display: flex;
37
- justify-content: center;
38
- align-items: center;
18
+ padding: $popup-title-padding;
19
+ position: relative;
39
20
 
40
- &:active {
41
- opacity: 0.7;
21
+ &-left {
22
+ position: absolute;
23
+ left: $popup-title-padding;
42
24
  }
43
25
 
44
- &--top-left {
45
- top: $popup-close-icon-margin;
46
- left: $popup-close-icon-margin;
26
+ &-title {
27
+ font-weight: $font-weight-bold;
28
+ font-size: $popup-title-font-size;
47
29
  }
48
30
 
49
- &--top-right {
50
- top: $popup-close-icon-margin;
51
- right: $popup-close-icon-margin;
31
+ &-description {
32
+ color: $color-text-help;
33
+ font-size: $popup-description-font-size;
34
+ font-weight: $font-weight;
52
35
  }
53
36
 
54
- &--bottom-left {
55
- bottom: $popup-close-icon-margin;
56
- left: $popup-close-icon-margin;
37
+ &-right {
38
+ position: absolute !important;
39
+ z-index: 1;
40
+ cursor: pointer;
41
+ width: $popup-icon-size;
42
+ height: $popup-icon-size;
43
+ display: flex;
44
+ justify-content: center;
45
+ align-items: center;
46
+ top: $popup-title-padding;
47
+ right: $popup-title-padding;
48
+ color: $color-text-help;
49
+
50
+ &:active {
51
+ opacity: 0.7;
52
+ }
53
+
54
+ &-top-left {
55
+ top: $popup-title-padding;
56
+ left: $popup-title-padding;
57
+ }
58
+
59
+ &-bottom-left {
60
+ bottom: $popup-title-padding;
61
+ left: $popup-title-padding;
62
+ }
63
+
64
+ &-bottom-right {
65
+ right: $popup-title-padding;
66
+ bottom: $popup-title-padding;
67
+ }
57
68
  }
69
+ }
58
70
 
59
- &--bottom-right {
60
- right: $popup-close-icon-margin;
61
- bottom: $popup-close-icon-margin;
71
+ &-center {
72
+ top: 50%;
73
+ left: 50%;
74
+ min-height: 10%;
75
+ transform: translate(-50%, -50%);
76
+
77
+ &.nut-popup-round {
78
+ border-radius: $popup-border-radius;
62
79
  }
63
80
  }
64
- }
65
81
 
66
- .nut-popup-center {
67
- top: 50%;
68
- left: 50%;
69
- transform: translate(-50%, -50%);
70
-
71
- &.round {
72
- border-radius: $popup-border-radius;
82
+ &-bottom,
83
+ &-top {
84
+ max-height: 83%;
73
85
  }
74
- }
75
86
 
76
- .nut-popup-bottom {
77
- bottom: 0;
78
- left: 0;
79
- width: 100%;
87
+ &-bottom {
88
+ bottom: 0;
89
+ left: 0;
90
+ width: 100%;
80
91
 
81
- &.round {
82
- border-radius: $popup-border-radius $popup-border-radius 0 0;
92
+ &.nut-popup-round {
93
+ border-radius: $popup-border-radius $popup-border-radius 0 0;
94
+ }
83
95
  }
84
- }
85
96
 
86
- .nut-popup-right {
87
- top: 0;
88
- right: 0;
97
+ &-right {
98
+ top: 0;
99
+ right: 0;
89
100
 
90
- &.round {
91
- border-radius: $popup-border-radius 0 0 $popup-border-radius;
101
+ &.nut-popup-round {
102
+ border-radius: $popup-border-radius 0 0 $popup-border-radius;
103
+ }
92
104
  }
93
- }
94
105
 
95
- .nut-popup-left {
96
- top: 0;
97
- left: 0;
106
+ &-left {
107
+ top: 0;
108
+ left: 0;
98
109
 
99
- &.round {
100
- border-radius: 0 $popup-border-radius $popup-border-radius 0;
110
+ &.nut-popup-round {
111
+ border-radius: 0 $popup-border-radius $popup-border-radius 0;
112
+ }
101
113
  }
102
- }
103
114
 
104
- .nut-popup-top {
105
- top: 0;
106
- left: 0;
107
- width: 100%;
115
+ &-top {
116
+ top: 0;
117
+ left: 0;
118
+ width: 100%;
108
119
 
109
- &.round {
110
- border-radius: 0 0 $popup-border-radius $popup-border-radius;
120
+ &.nut-popup-round {
121
+ border-radius: 0 0 $popup-border-radius $popup-border-radius;
122
+ }
111
123
  }
112
- }
113
124
 
114
- .nut-popup-slide {
115
- @keyframes popup-scale-fade-in {
116
- from {
117
- opacity: 0;
118
- transform: scale(0.8);
119
- }
125
+ &-slide {
126
+ @keyframes popup-scale-fade-in {
127
+ from {
128
+ opacity: 0;
129
+ transform: scale(0.8);
130
+ }
120
131
 
121
- to {
122
- opacity: 1;
123
- transform: scale(1);
132
+ to {
133
+ opacity: 1;
134
+ transform: scale(1);
135
+ }
124
136
  }
125
- }
126
137
 
127
- @keyframes popup-scale-fade-out {
128
- from {
129
- opacity: 1;
130
- transform: scale(1);
138
+ @keyframes popup-scale-fade-out {
139
+ from {
140
+ opacity: 1;
141
+ transform: scale(1);
142
+ }
143
+
144
+ to {
145
+ opacity: 0;
146
+ transform: scale(0.8);
147
+ }
131
148
  }
132
149
 
133
- to {
134
- opacity: 0;
135
- transform: scale(0.8);
150
+ &-default-enter-active {
151
+ animation-fill-mode: both;
152
+ animation-name: popup-scale-fade-in;
153
+ animation-duration: $popup-animation-duration;
136
154
  }
137
- }
138
155
 
139
- &-default-enter-active {
140
- animation-fill-mode: both;
141
- animation-name: popup-scale-fade-in;
142
- animation-duration: $popup-animation-duration;
143
- }
156
+ &-default-exit-active {
157
+ animation-fill-mode: both;
158
+ animation-name: popup-scale-fade-out;
159
+ animation-duration: $popup-animation-duration;
160
+ }
144
161
 
145
- &-default-exit-active {
146
- animation-fill-mode: both;
147
- animation-name: popup-scale-fade-out;
148
- animation-duration: $popup-animation-duration;
149
- }
162
+ @keyframes popup-fade-in {
163
+ from {
164
+ opacity: 0;
165
+ }
150
166
 
151
- @keyframes popup-fade-in {
152
- from {
153
- opacity: 0;
167
+ to {
168
+ opacity: 1;
169
+ }
154
170
  }
155
171
 
156
- to {
157
- opacity: 1;
158
- }
159
- }
172
+ @keyframes popup-fade-out {
173
+ from {
174
+ opacity: 1;
175
+ }
160
176
 
161
- @keyframes popup-fade-out {
162
- from {
163
- opacity: 1;
177
+ to {
178
+ opacity: 0;
179
+ }
164
180
  }
165
181
 
166
- to {
167
- opacity: 0;
182
+ &-center-enter-active {
183
+ animation-fill-mode: both;
184
+ animation-name: popup-fade-in;
185
+ animation-duration: $popup-animation-duration;
168
186
  }
169
- }
170
187
 
171
- &-center-enter-active {
172
- animation-fill-mode: both;
173
- animation-name: popup-fade-in;
174
- animation-duration: $popup-animation-duration;
175
- }
188
+ &-center-exit-active {
189
+ animation-fill-mode: both;
190
+ animation-name: popup-fade-out;
191
+ animation-duration: $popup-animation-duration;
192
+ }
176
193
 
177
- &-center-exit-active {
178
- animation-fill-mode: both;
179
- animation-name: popup-fade-out;
180
- animation-duration: $popup-animation-duration;
181
- }
194
+ /* 从顶部滑出 */
195
+ @keyframes popup-slide-top-enter {
196
+ from {
197
+ transform: translate3d(0, -100%, 0);
198
+ }
199
+ }
182
200
 
183
- /* 从顶部滑出 */
184
- @keyframes popup-slide-top-enter {
185
- from {
186
- transform: translate3d(0, -100%, 0);
201
+ @keyframes popup-slide-top-exit {
202
+ to {
203
+ transform: translate3d(0, -100%, 0);
204
+ }
187
205
  }
188
- }
189
206
 
190
- @keyframes popup-slide-top-exit {
191
- to {
192
- transform: translate3d(0, -100%, 0);
207
+ &-top-enter-active,
208
+ &-top-appear-active {
209
+ transform: translate3d(0, 0%, 0);
210
+ animation-fill-mode: both;
211
+ animation-name: popup-slide-top-enter;
212
+ animation-duration: $popup-animation-duration;
193
213
  }
194
- }
195
214
 
196
- &-top-enter-active,
197
- &-top-appear-active {
198
- transform: translate3d(0, 0%, 0);
199
- animation-fill-mode: both;
200
- animation-name: popup-slide-top-enter;
201
- animation-duration: $popup-animation-duration;
202
- }
215
+ &-top-exit-active {
216
+ animation-fill-mode: both;
217
+ animation-name: popup-slide-top-exit;
218
+ animation-duration: $popup-animation-duration;
219
+ }
203
220
 
204
- &-top-exit-active {
205
- animation-fill-mode: both;
206
- animation-name: popup-slide-top-exit;
207
- animation-duration: $popup-animation-duration;
208
- }
221
+ /* 从右侧滑出 */
222
+ @keyframes popup-slide-right-enter {
223
+ from {
224
+ transform: translate3d(100%, 0, 0);
225
+ }
226
+ }
209
227
 
210
- /* 从右侧滑出 */
211
- @keyframes popup-slide-right-enter {
212
- from {
213
- transform: translate3d(100%, 0, 0);
228
+ @keyframes popup-slide-right-exit {
229
+ to {
230
+ transform: translate3d(100%, 0, 0);
231
+ }
214
232
  }
215
- }
216
233
 
217
- @keyframes popup-slide-right-exit {
218
- to {
219
- transform: translate3d(100%, 0, 0);
234
+ &-right-enter-active,
235
+ &-right-appear-active {
236
+ transform: translate3d(0, 0, 0);
237
+ animation-fill-mode: both;
238
+ animation-name: popup-slide-right-enter;
239
+ animation-duration: $popup-animation-duration;
220
240
  }
221
- }
222
241
 
223
- &-right-enter-active,
224
- &-right-appear-active {
225
- transform: translate3d(0, 0, 0);
226
- animation-fill-mode: both;
227
- animation-name: popup-slide-right-enter;
228
- animation-duration: $popup-animation-duration;
229
- }
242
+ &-right-exit {
243
+ animation-fill-mode: both;
244
+ animation-name: popup-slide-right-exit;
245
+ animation-duration: $popup-animation-duration;
246
+ }
230
247
 
231
- &-right-exit {
232
- animation-fill-mode: both;
233
- animation-name: popup-slide-right-exit;
234
- animation-duration: $popup-animation-duration;
235
- }
248
+ /* 从底部滑出 */
249
+ @keyframes popup-slide-bottom-enter {
250
+ from {
251
+ transform: translate3d(0, 100%, 0);
252
+ }
253
+ }
236
254
 
237
- /* 从底部滑出 */
238
- @keyframes popup-slide-bottom-enter {
239
- from {
240
- transform: translate3d(0, 100%, 0);
255
+ @keyframes slide-bottom-exit {
256
+ to {
257
+ transform: translate3d(0, 100%, 0);
258
+ }
241
259
  }
242
- }
243
260
 
244
- @keyframes slide-bottom-exit {
245
- to {
246
- transform: translate3d(0, 100%, 0);
261
+ &-bottom-enter-active,
262
+ &-bottom-appear-active {
263
+ transform: translate(0, 0);
264
+ animation-fill-mode: both;
265
+ animation-name: popup-slide-bottom-enter;
266
+ animation-duration: $popup-animation-duration;
247
267
  }
248
- }
249
268
 
250
- &-bottom-enter-active,
251
- &-bottom-appear-active {
252
- transform: translate(0, 0);
253
- animation-fill-mode: both;
254
- animation-name: popup-slide-bottom-enter;
255
- animation-duration: $popup-animation-duration;
256
- }
269
+ &-bottom-exit {
270
+ animation-fill-mode: both;
271
+ animation-name: slide-bottom-exit;
272
+ animation-duration: $popup-animation-duration;
273
+ }
257
274
 
258
- &-bottom-exit {
259
- animation-fill-mode: both;
260
- animation-name: slide-bottom-exit;
261
- animation-duration: $popup-animation-duration;
262
- }
275
+ /* 从左侧滑出 */
276
+ @keyframes popup-slide-left-enter {
277
+ from {
278
+ transform: translate3d(-100%, 0, 0);
279
+ }
280
+ }
263
281
 
264
- /* 从左侧滑出 */
265
- @keyframes popup-slide-left-enter {
266
- from {
267
- transform: translate3d(-100%, 0, 0);
282
+ @keyframes popup-slide-left-exit {
283
+ to {
284
+ transform: translate3d(-100%, 0, 0);
285
+ }
268
286
  }
269
- }
270
287
 
271
- @keyframes popup-slide-left-exit {
272
- to {
273
- transform: translate3d(-100%, 0, 0);
288
+ &-left-enter-active,
289
+ &-left-appear-active {
290
+ transform: translate(0, 0);
291
+ animation-fill-mode: both;
292
+ animation-name: popup-slide-left-enter;
293
+ animation-duration: $popup-animation-duration;
274
294
  }
275
- }
276
295
 
277
- &-left-enter-active,
278
- &-left-appear-active {
279
- transform: translate(0, 0);
280
- animation-fill-mode: both;
281
- animation-name: popup-slide-left-enter;
282
- animation-duration: $popup-animation-duration;
296
+ &-left-exit-active,
297
+ &-left-exit-done {
298
+ animation-fill-mode: both;
299
+ animation-name: popup-slide-left-exit;
300
+ animation-duration: $popup-animation-duration;
301
+ }
283
302
  }
284
303
 
285
- &-left-exit-active,
286
- &-left-exit-done {
287
- animation-fill-mode: both;
288
- animation-name: popup-slide-left-exit;
289
- animation-duration: $popup-animation-duration;
304
+ .nut-overflow-hidden {
305
+ overflow: hidden !important;
290
306
  }
291
307
  }
292
-
293
- .nut-overflow-hidden {
294
- overflow: hidden !important;
295
- }
@@ -1,43 +1,54 @@
1
1
  .nut-price {
2
- font-size: $font-size-3;
2
+ font-size: $font-size-large;
3
3
  display: inline;
4
- color: $primary-color;
5
- &--line {
4
+ color: $color-primary;
5
+
6
+ &-line {
6
7
  div {
7
8
  text-decoration: line-through;
8
9
  font-size: $price-line-font-size !important;
9
10
  color: $price-line-color !important;
10
11
  }
11
12
  }
12
- &__symbol,
13
- &__integer,
14
- &__decimal {
13
+
14
+ &-symbol,
15
+ &-integer,
16
+ &-decimal {
15
17
  display: inline-block;
16
18
  }
17
- &__symbol {
19
+
20
+ &-symbol {
18
21
  font-size: $price-symbol-medium-size;
19
22
  padding-right: $price-symbol-padding-right;
23
+
20
24
  &-large {
21
25
  font-size: $price-symbol-big-size;
22
26
  }
27
+
23
28
  &-small {
24
29
  font-size: $price-symbol-small-size;
25
30
  }
26
31
  }
27
- &__integer {
32
+
33
+ &-integer {
28
34
  font-size: $price-integer-medium-size;
35
+
29
36
  &-large {
30
37
  font-size: $price-integer-big-size;
31
38
  }
39
+
32
40
  &-small {
33
41
  font-size: $price-integer-small-size;
34
42
  }
35
43
  }
36
- &__decimal {
44
+
45
+ &-decimal {
37
46
  font-size: $price-decimal-medium-size;
47
+
38
48
  &-large {
39
49
  font-size: $price-decimal-big-size;
40
50
  }
51
+
41
52
  &-small {
42
53
  font-size: $price-decimal-small-size;
43
54
  }
@@ -41,7 +41,7 @@
41
41
  transition: all 0.4s;
42
42
  transform: translate(-50%);
43
43
 
44
- &__inner {
44
+ &-inner {
45
45
  display: flex;
46
46
  align-items: center;
47
47
  height: 100%;
@@ -2,17 +2,24 @@
2
2
  &-head {
3
3
  overflow: hidden;
4
4
  position: relative;
5
- font-size: 14px;
5
+ font-size: 12px;
6
6
 
7
7
  &-content {
8
8
  position: absolute;
9
9
  bottom: 0;
10
10
  left: 0;
11
11
  width: 100%;
12
- color: $title-color;
12
+ color: $color-title;
13
13
  display: flex;
14
+ flex-direction: column;
14
15
  justify-content: center;
15
16
  align-items: center;
17
+
18
+ &-icons {
19
+ width: $pulltorefresh-top-icon-width;
20
+ height: $pulltorefresh-top-icon-height;
21
+ margin-bottom: 4px;
22
+ }
16
23
  }
17
24
  }
18
25
  }