@nutui/nutui-react 2.1.1-beta.0 → 2.2.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 (299) hide show
  1. package/CHANGELOG.md +44 -0
  2. package/dist/esm/ActionSheet/style/style.css +1 -1
  3. package/dist/esm/ActionSheet.js +7 -6
  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/BackTop.js +3 -7
  15. package/dist/esm/Badge/style/style.css +1 -1
  16. package/dist/esm/Barrage/style/style.css +1 -1
  17. package/dist/esm/Button/style/style.css +1 -1
  18. package/dist/esm/Button.js +84 -5
  19. package/dist/esm/Calendar/style/style.css +1 -1
  20. package/dist/esm/CalendarCard/style/style.css +1 -1
  21. package/dist/esm/Card/style/style.css +1 -1
  22. package/dist/esm/Card.js +3 -3
  23. package/dist/esm/Cascader/style/style.css +1 -1
  24. package/dist/esm/Cell/style/style.css +1 -1
  25. package/dist/esm/Cell.js +5 -5
  26. package/dist/esm/CellGroup/style/style.css +1 -1
  27. package/dist/esm/CellGroup.js +3 -3
  28. package/dist/esm/Checkbox/style/style.css +1 -1
  29. package/dist/esm/CheckboxGroup/style/style.css +1 -1
  30. package/dist/esm/CheckboxGroup.js +1 -1
  31. package/dist/esm/CircleProgress/style/style.css +1 -1
  32. package/dist/esm/CircleProgress.js +2 -2
  33. package/dist/esm/Col/style/style.css +1 -1
  34. package/dist/esm/Collapse/style/style.css +1 -1
  35. package/dist/esm/CollapseItem/style/style.css +1 -1
  36. package/dist/esm/CountDown/style/style.css +1 -1
  37. package/dist/esm/CountDown.js +1 -1
  38. package/dist/esm/DatePicker/style/style.css +1 -1
  39. package/dist/esm/Dialog/style/style.css +1 -1
  40. package/dist/esm/Dialog.js +9 -6
  41. package/dist/esm/Divider/style/style.css +1 -1
  42. package/dist/esm/Divider.js +1 -1
  43. package/dist/esm/Elevator/style/style.css +1 -1
  44. package/dist/esm/Elevator.js +12 -12
  45. package/dist/esm/Ellipsis/style/style.css +1 -1
  46. package/dist/esm/Empty/style/style.css +1 -1
  47. package/dist/esm/Empty.js +10 -31
  48. package/dist/esm/FixedNav/style/style.css +1 -1
  49. package/dist/esm/FixedNav.js +6 -6
  50. package/dist/esm/Form/style/style.css +1 -1
  51. package/dist/esm/FormItem/style/style.css +1 -1
  52. package/dist/esm/Grid/style/style.css +1 -1
  53. package/dist/esm/Grid.js +1 -1
  54. package/dist/esm/GridItem/style/style.css +1 -1
  55. package/dist/esm/Image/style/style.css +1 -1
  56. package/dist/esm/Image.js +2 -2
  57. package/dist/esm/ImagePreview/style/style.css +1 -1
  58. package/dist/esm/Indicator/style/style.css +1 -1
  59. package/dist/esm/InfiniteLoading/style/style.css +1 -1
  60. package/dist/esm/InfiniteLoading.js +6 -63
  61. package/dist/esm/Input/style/style.css +1 -1
  62. package/dist/esm/InputNumber/style/style.css +1 -1
  63. package/dist/esm/InputNumber.js +5 -5
  64. package/dist/esm/Loading/style/style.css +1 -1
  65. package/dist/esm/Menu/style/style.css +1 -1
  66. package/dist/esm/Menu.js +14 -7
  67. package/dist/esm/MenuItem/style/style.css +1 -1
  68. package/dist/esm/NavBar/style/style.css +1 -1
  69. package/dist/esm/NavBar.js +9 -10
  70. package/dist/esm/NoticeBar/style/style.css +1 -1
  71. package/dist/esm/NoticeBar.js +4 -4
  72. package/dist/esm/Notify/style/style.css +1 -1
  73. package/dist/esm/Notify.js +2 -2
  74. package/dist/esm/NumberKeyboard/style/style.css +1 -1
  75. package/dist/esm/NumberKeyboard.js +14 -14
  76. package/dist/esm/Overlay/style/style.css +1 -1
  77. package/dist/esm/Pagination/style/style.css +1 -1
  78. package/dist/esm/Pagination.js +8 -14
  79. package/dist/esm/Picker/style/style.css +1 -1
  80. package/dist/esm/Picker.js +5 -5
  81. package/dist/esm/Popover/style/style.css +1 -1
  82. package/dist/esm/Popover.js +6 -13
  83. package/dist/esm/Popup/style/style.css +1 -1
  84. package/dist/esm/Price/style/style.css +1 -1
  85. package/dist/esm/Price.js +5 -5
  86. package/dist/esm/Progress/style/style.css +1 -1
  87. package/dist/esm/Progress.js +1 -1
  88. package/dist/esm/PullToRefresh/style/style.css +1 -1
  89. package/dist/esm/PullToRefresh.js +2 -37
  90. package/dist/esm/Radio/style/style.css +1 -1
  91. package/dist/esm/RadioGroup/style/style.css +1 -1
  92. package/dist/esm/RadioGroup.js +1 -1
  93. package/dist/esm/Range/style/style.css +1 -1
  94. package/dist/esm/Rate/style/style.css +1 -1
  95. package/dist/esm/Rate.js +5 -5
  96. package/dist/esm/SearchBar/style/style.css +1 -1
  97. package/dist/esm/SearchBar.js +20 -20
  98. package/dist/esm/ShortPassword/style/style.css +1 -1
  99. package/dist/esm/ShortPassword.js +13 -13
  100. package/dist/esm/SideNavBar/style/style.css +1 -1
  101. package/dist/esm/SideNavBar.js +4 -4
  102. package/dist/esm/SideNavBarItem/style/style.css +1 -1
  103. package/dist/esm/SideNavBarItem.js +1 -1
  104. package/dist/esm/Signature/style/style.css +1 -1
  105. package/dist/esm/Signature.js +3 -3
  106. package/dist/esm/Skeleton/style/style.css +1 -1
  107. package/dist/esm/Skeleton.js +7 -7
  108. package/dist/esm/Step/style/style.css +1 -1
  109. package/dist/esm/Steps/style/style.css +1 -1
  110. package/dist/esm/Sticky/style/style.css +1 -1
  111. package/dist/esm/Sticky.js +1 -1
  112. package/dist/esm/SubSideNavBar/style/style.css +1 -1
  113. package/dist/esm/SubSideNavBar.js +6 -6
  114. package/dist/esm/Swipe/style/style.css +1 -1
  115. package/dist/esm/Swipe.js +2 -2
  116. package/dist/esm/Swiper/style/style.css +1 -1
  117. package/dist/esm/Swiper.js +3 -6
  118. package/dist/esm/Switch/style/style.css +1 -1
  119. package/dist/esm/Switch.js +3 -3
  120. package/dist/esm/TabPane/style/style.css +1 -1
  121. package/dist/esm/Tabbar/style/style.css +1 -1
  122. package/dist/esm/Tabbar.js +3 -3
  123. package/dist/esm/TabbarItem/style/style.css +1 -1
  124. package/dist/esm/Table/style/style.css +1 -1
  125. package/dist/esm/Table.js +11 -11
  126. package/dist/esm/Tabs/style/style.css +1 -1
  127. package/dist/esm/Tag/style/style.css +1 -1
  128. package/dist/esm/Tag.js +3 -3
  129. package/dist/esm/TextArea/style/style.css +1 -1
  130. package/dist/esm/TextArea.js +3 -3
  131. package/dist/esm/TimeDetail/style/style.css +1 -1
  132. package/dist/esm/TimeDetail.js +1 -1
  133. package/dist/esm/TimeSelect/style/style.css +1 -1
  134. package/dist/esm/TimeSelect.js +4 -3
  135. package/dist/esm/Toast/style/style.css +1 -1
  136. package/dist/esm/Toast.js +4 -4
  137. package/dist/esm/Tour/style/style.css +1 -1
  138. package/dist/esm/TrendArrow/style/style.css +1 -1
  139. package/dist/esm/TrendArrow.js +4 -4
  140. package/dist/esm/Uploader/style/style.css +1 -1
  141. package/dist/esm/Uploader.js +24 -22
  142. package/dist/esm/VirtualList/style/style.css +1 -1
  143. package/dist/esm/badge2.js +2 -2
  144. package/dist/esm/cascader2.js +6 -6
  145. package/dist/esm/checkbox2.js +10 -47
  146. package/dist/esm/collapseitem2.js +7 -7
  147. package/dist/esm/configprovider2.js +2 -2
  148. package/dist/esm/context5.js +1 -1
  149. package/dist/esm/formitem2.js +4 -4
  150. package/dist/esm/griditem2.js +2 -2
  151. package/dist/esm/indicator2.js +3 -3
  152. package/dist/esm/menuitem2.js +7 -7
  153. package/dist/esm/overlay2.js +1 -1
  154. package/dist/esm/popup2.js +20 -21
  155. package/dist/esm/radio2.js +5 -10
  156. package/dist/esm/tabbaritem2.js +1 -1
  157. package/dist/esm/tabs2.js +8 -8
  158. package/dist/esm/types/src/packages/button/button.d.ts +2 -3
  159. package/dist/esm/types/src/packages/button/button.taro.d.ts +2 -3
  160. package/dist/esm/types/src/packages/checkbox/checkbox.d.ts +0 -2
  161. package/dist/esm/types/src/packages/checkbox/checkbox.taro.d.ts +0 -2
  162. package/dist/esm/types/src/packages/configprovider/types.d.ts +1 -1
  163. package/dist/esm/types/src/packages/empty/demo.d.ts +1 -0
  164. package/dist/esm/types/src/packages/empty/demo.taro.d.ts +1 -0
  165. package/dist/esm/types/src/packages/empty/empty.d.ts +1 -5
  166. package/dist/esm/types/src/packages/empty/empty.taro.d.ts +1 -5
  167. package/dist/esm/types/src/packages/empty/index.d.ts +0 -1
  168. package/dist/esm/types/src/packages/empty/index.taro.d.ts +0 -1
  169. package/dist/esm/types/src/packages/indicator/demo.d.ts +1 -0
  170. package/dist/esm/types/src/packages/indicator/demo.taro.d.ts +1 -0
  171. package/dist/esm/types/src/packages/inputnumber/demo.d.ts +1 -0
  172. package/dist/esm/types/src/packages/inputnumber/demo.taro.d.ts +1 -0
  173. package/dist/esm/types/src/packages/navbar/navbar.d.ts +0 -1
  174. package/dist/esm/types/src/packages/navbar/navbar.taro.d.ts +0 -1
  175. package/dist/esm/types/src/packages/pagination/pagination.d.ts +1 -1
  176. package/dist/esm/types/src/packages/pagination/pagination.taro.d.ts +1 -1
  177. package/dist/esm/types/src/packages/popover/popover.d.ts +0 -4
  178. package/dist/esm/types/src/packages/popover/popover.taro.d.ts +0 -4
  179. package/dist/esm/types/src/packages/popup/popup.d.ts +0 -1
  180. package/dist/esm/types/src/packages/popup/popup.taro.d.ts +2 -3
  181. package/dist/esm/types/src/packages/searchbar/searchbar.d.ts +0 -1
  182. package/dist/esm/types/src/packages/searchbar/searchbar.taro.d.ts +0 -1
  183. package/dist/esm/types/src/packages/swipe/swipe.d.ts +6 -0
  184. package/dist/esm/types/src/packages/tabs/tabs.d.ts +1 -1
  185. package/dist/esm/types/src/packages/tabs/tabs.taro.d.ts +1 -1
  186. package/dist/esm/types/src/packages/virtuallist/utils.d.ts +1 -1
  187. package/dist/locales/base.js +1 -1
  188. package/dist/locales/en-US.js +1 -1
  189. package/dist/locales/id-ID.js +1 -1
  190. package/dist/locales/tr-TR.js +1 -1
  191. package/dist/locales/zh-CN.js +2 -2
  192. package/dist/locales/zh-TW.js +1 -1
  193. package/dist/locales/zh-UG.js +1 -1
  194. package/dist/nutui.react.es.js +1794 -3192
  195. package/dist/nutui.react.umd.js +1808 -3206
  196. package/dist/packages/actionsheet/actionsheet.scss +15 -15
  197. package/dist/packages/address/address.scss +4 -4
  198. package/dist/packages/animatingnumbers/countup.scss +6 -19
  199. package/dist/packages/audio/audio.scss +9 -17
  200. package/dist/packages/avatar/avatar.scss +1 -1
  201. package/dist/packages/avatarcropper/avatarcropper.scss +0 -4
  202. package/dist/packages/backtop/backtop.scss +3 -6
  203. package/dist/packages/badge/badge.scss +10 -12
  204. package/dist/packages/barrage/barrage.scss +6 -16
  205. package/dist/packages/button/button.scss +93 -163
  206. package/dist/packages/calendar/calendar.scss +12 -13
  207. package/dist/packages/calendarcard/calendarcard.scss +6 -6
  208. package/dist/packages/card/card.scss +13 -27
  209. package/dist/packages/cascader/cascader.scss +6 -6
  210. package/dist/packages/cell/cell.scss +3 -3
  211. package/dist/packages/cellgroup/cellgroup.scss +6 -6
  212. package/dist/packages/checkbox/checkbox.scss +21 -81
  213. package/dist/packages/checkboxgroup/checkboxgroup.scss +7 -17
  214. package/dist/packages/collapseitem/collapseitem.scss +10 -32
  215. package/dist/packages/dialog/dialog.scss +13 -13
  216. package/dist/packages/divider/divider.scss +7 -7
  217. package/dist/packages/elevator/elevator.scss +12 -13
  218. package/dist/packages/empty/empty.scss +6 -36
  219. package/dist/packages/fixednav/fixednav.scss +13 -26
  220. package/dist/packages/form/form.scss +4 -4
  221. package/dist/packages/formitem/formitem.scss +6 -6
  222. package/dist/packages/grid/grid.scss +1 -1
  223. package/dist/packages/griditem/griditem.scss +15 -16
  224. package/dist/packages/image/image.scss +2 -4
  225. package/dist/packages/imagepreview/imagepreview.scss +11 -1
  226. package/dist/packages/indicator/indicator.scss +9 -9
  227. package/dist/packages/infiniteloading/infiniteloading.scss +8 -23
  228. package/dist/packages/input/input.scss +2 -4
  229. package/dist/packages/inputnumber/inputnumber.scss +18 -21
  230. package/dist/packages/loading/loading.scss +3 -3
  231. package/dist/packages/menu/menu.scss +30 -22
  232. package/dist/packages/menuitem/menuitem.scss +56 -55
  233. package/dist/packages/navbar/navbar.scss +16 -52
  234. package/dist/packages/noticebar/noticebar.scss +11 -12
  235. package/dist/packages/notify/notify.scss +18 -10
  236. package/dist/packages/numberkeyboard/numberkeyboard.scss +17 -19
  237. package/dist/packages/pagination/pagination.scss +9 -32
  238. package/dist/packages/picker/picker.scss +19 -19
  239. package/dist/packages/popover/popover.scss +35 -51
  240. package/dist/packages/popup/popup.scss +213 -225
  241. package/dist/packages/price/price.scss +7 -18
  242. package/dist/packages/progress/progress.scss +1 -1
  243. package/dist/packages/pulltorefresh/pulltorefresh.scss +2 -9
  244. package/dist/packages/radio/radio.scss +40 -45
  245. package/dist/packages/radiogroup/radiogroup.scss +18 -18
  246. package/dist/packages/range/range.scss +2 -13
  247. package/dist/packages/rate/rate.scss +9 -8
  248. package/dist/packages/searchbar/searchbar.scss +42 -67
  249. package/dist/packages/shortpassword/shortpassword.scss +13 -13
  250. package/dist/packages/sidenavbar/sidenavbar.scss +8 -8
  251. package/dist/packages/sidenavbaritem/sidenavbaritem.scss +3 -3
  252. package/dist/packages/signature/signature.scss +2 -5
  253. package/dist/packages/skeleton/skeleton.scss +8 -8
  254. package/dist/packages/step/step.scss +32 -27
  255. package/dist/packages/sticky/sticky.scss +1 -1
  256. package/dist/packages/subsidenavbar/subsidenavbar.scss +5 -5
  257. package/dist/packages/swipe/swipe.scss +5 -8
  258. package/dist/packages/swiper/swiper.scss +4 -4
  259. package/dist/packages/switch/switch.scss +27 -38
  260. package/dist/packages/tabbar/tabbar.scss +4 -4
  261. package/dist/packages/tabbaritem/tabbaritem.scss +1 -8
  262. package/dist/packages/table/table.scss +27 -27
  263. package/dist/packages/tabpane/tabpane.scss +2 -2
  264. package/dist/packages/tabs/tabs.scss +137 -181
  265. package/dist/packages/tag/tag.scss +12 -12
  266. package/dist/packages/textarea/textarea.scss +6 -6
  267. package/dist/packages/timedetail/timedetail.scss +9 -8
  268. package/dist/packages/timeselect/timeselect.scss +21 -12
  269. package/dist/packages/toast/toast.scss +22 -37
  270. package/dist/packages/tour/tour.scss +3 -8
  271. package/dist/packages/trendarrow/trendarrow.scss +3 -8
  272. package/dist/packages/uploader/uploader.scss +37 -41
  273. package/dist/packages/virtuallist/virtuallist.scss +3 -13
  274. package/dist/packages/watermark/watermark.scss +0 -1
  275. package/dist/style.css +1 -1
  276. package/dist/style.mjs +1 -5
  277. package/dist/styles/theme-dark.scss +28 -17
  278. package/dist/styles/theme-default.scss +37 -15
  279. package/dist/styles/theme-jmapp.scss +40 -17
  280. package/dist/styles/variables-jmapp.scss +1169 -883
  281. package/dist/styles/variables.scss +982 -685
  282. package/dist/types/packages/animate/animate.d.ts +2 -2
  283. package/dist/types/packages/button/button.d.ts +2 -3
  284. package/dist/types/packages/checkbox/checkbox.d.ts +0 -2
  285. package/dist/types/packages/configprovider/types.d.ts +1 -1
  286. package/dist/types/packages/empty/empty.d.ts +1 -5
  287. package/dist/types/packages/empty/index.d.ts +0 -1
  288. package/dist/types/packages/navbar/navbar.d.ts +0 -1
  289. package/dist/types/packages/pagination/pagination.d.ts +1 -1
  290. package/dist/types/packages/popover/popover.d.ts +0 -4
  291. package/dist/types/packages/popup/popup.d.ts +2 -15
  292. package/dist/types/packages/searchbar/searchbar.d.ts +0 -5
  293. package/dist/types/packages/swipe/swipe.d.ts +6 -6
  294. package/dist/types/packages/swiper/swiper.d.ts +2 -2
  295. package/dist/types/packages/tabs/tabs.d.ts +2 -2
  296. package/package.json +2 -2
  297. package/dist/esm/button2.js +0 -88
  298. package/dist/esm/types/src/packages/empty/types.d.ts +0 -3
  299. package/dist/types/packages/empty/types.d.ts +0 -3
@@ -1,307 +1,295 @@
1
1
 
2
2
  .nut-popup {
3
3
  position: fixed;
4
- min-height: 40%;
5
4
  max-height: 100%;
6
5
  overflow-y: auto;
7
- background-color: $overlay-content-bg-color;
8
- color: $color-title;
6
+ background-color: $white;
7
+ color: $gray1;
9
8
  -webkit-overflow-scrolling: touch;
10
- font-size: $font-size-base;
11
9
 
12
10
  &-title {
13
11
  display: flex;
14
12
  align-items: center;
15
13
  justify-content: center;
16
- height: $popup-title-height;
17
- border-bottom: $popup-title-border-bottom;
14
+ background-color: $gray6;
15
+ color: $gray1;
18
16
  padding: $popup-title-padding;
19
- position: relative;
17
+ font-weight: $font-weight-bold;
18
+ line-height: $popup-title-line-height;
19
+ font-size: $popup-title-font-size;
20
+ border-bottom: $popup-title-border-bottom;
21
+ }
20
22
 
21
- &-left {
22
- position: absolute;
23
- left: $popup-title-padding;
24
- }
23
+ &-left-icon {
24
+ position: absolute;
25
+ top: $popup-close-icon-margin;
26
+ left: $popup-close-icon-margin;
27
+ }
25
28
 
26
- &-title {
27
- font-weight: $font-weight-bold;
28
- font-size: $popup-title-font-size;
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;
39
+
40
+ &:active {
41
+ opacity: 0.7;
29
42
  }
30
43
 
31
- &-description {
32
- color: $color-text-help;
33
- font-size: $popup-description-font-size;
34
- font-weight: $font-weight;
44
+ &--top-left {
45
+ top: $popup-close-icon-margin;
46
+ left: $popup-close-icon-margin;
35
47
  }
36
48
 
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
- }
49
+ &--top-right {
50
+ top: $popup-close-icon-margin;
51
+ right: $popup-close-icon-margin;
68
52
  }
69
- }
70
53
 
71
- &-center {
72
- top: 50%;
73
- left: 50%;
74
- min-height: 10%;
75
- transform: translate(-50%, -50%);
54
+ &--bottom-left {
55
+ bottom: $popup-close-icon-margin;
56
+ left: $popup-close-icon-margin;
57
+ }
76
58
 
77
- &.nut-popup-round {
78
- border-radius: $popup-border-radius;
59
+ &--bottom-right {
60
+ right: $popup-close-icon-margin;
61
+ bottom: $popup-close-icon-margin;
79
62
  }
80
63
  }
64
+ }
81
65
 
82
- &-bottom,
83
- &-top {
84
- max-height: 83%;
66
+ .nut-popup-center {
67
+ top: 50%;
68
+ left: 50%;
69
+ transform: translate(-50%, -50%);
70
+
71
+ &.round {
72
+ border-radius: $popup-border-radius;
85
73
  }
74
+ }
86
75
 
87
- &-bottom {
88
- bottom: 0;
89
- left: 0;
90
- width: 100%;
76
+ .nut-popup-bottom {
77
+ bottom: 0;
78
+ left: 0;
79
+ width: 100%;
91
80
 
92
- &.nut-popup-round {
93
- border-radius: $popup-border-radius $popup-border-radius 0 0;
94
- }
81
+ &.round {
82
+ border-radius: $popup-border-radius $popup-border-radius 0 0;
95
83
  }
84
+ }
96
85
 
97
- &-right {
98
- top: 0;
99
- right: 0;
86
+ .nut-popup-right {
87
+ top: 0;
88
+ right: 0;
100
89
 
101
- &.nut-popup-round {
102
- border-radius: $popup-border-radius 0 0 $popup-border-radius;
103
- }
90
+ &.round {
91
+ border-radius: $popup-border-radius 0 0 $popup-border-radius;
104
92
  }
93
+ }
105
94
 
106
- &-left {
107
- top: 0;
108
- left: 0;
95
+ .nut-popup-left {
96
+ top: 0;
97
+ left: 0;
109
98
 
110
- &.nut-popup-round {
111
- border-radius: 0 $popup-border-radius $popup-border-radius 0;
112
- }
99
+ &.round {
100
+ border-radius: 0 $popup-border-radius $popup-border-radius 0;
113
101
  }
102
+ }
114
103
 
115
- &-top {
116
- top: 0;
117
- left: 0;
118
- width: 100%;
104
+ .nut-popup-top {
105
+ top: 0;
106
+ left: 0;
107
+ width: 100%;
119
108
 
120
- &.nut-popup-round {
121
- border-radius: 0 0 $popup-border-radius $popup-border-radius;
122
- }
109
+ &.round {
110
+ border-radius: 0 0 $popup-border-radius $popup-border-radius;
123
111
  }
112
+ }
124
113
 
125
- &-slide {
126
- @keyframes popup-scale-fade-in {
127
- from {
128
- opacity: 0;
129
- transform: scale(0.8);
130
- }
131
-
132
- to {
133
- opacity: 1;
134
- transform: scale(1);
135
- }
114
+ .nut-popup-slide {
115
+ @keyframes popup-scale-fade-in {
116
+ from {
117
+ opacity: 0;
118
+ transform: scale(0.8);
136
119
  }
137
120
 
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
- }
121
+ to {
122
+ opacity: 1;
123
+ transform: scale(1);
148
124
  }
125
+ }
149
126
 
150
- &-default-enter-active {
151
- animation-fill-mode: both;
152
- animation-name: popup-scale-fade-in;
153
- animation-duration: $popup-animation-duration;
127
+ @keyframes popup-scale-fade-out {
128
+ from {
129
+ opacity: 1;
130
+ transform: scale(1);
154
131
  }
155
132
 
156
- &-default-exit-active {
157
- animation-fill-mode: both;
158
- animation-name: popup-scale-fade-out;
159
- animation-duration: $popup-animation-duration;
133
+ to {
134
+ opacity: 0;
135
+ transform: scale(0.8);
160
136
  }
137
+ }
161
138
 
162
- @keyframes popup-fade-in {
163
- from {
164
- opacity: 0;
165
- }
166
-
167
- to {
168
- opacity: 1;
169
- }
170
- }
139
+ &-default-enter-active {
140
+ animation-fill-mode: both;
141
+ animation-name: popup-scale-fade-in;
142
+ animation-duration: $popup-animation-duration;
143
+ }
171
144
 
172
- @keyframes popup-fade-out {
173
- from {
174
- opacity: 1;
175
- }
145
+ &-default-exit-active {
146
+ animation-fill-mode: both;
147
+ animation-name: popup-scale-fade-out;
148
+ animation-duration: $popup-animation-duration;
149
+ }
176
150
 
177
- to {
178
- opacity: 0;
179
- }
151
+ @keyframes popup-fade-in {
152
+ from {
153
+ opacity: 0;
180
154
  }
181
155
 
182
- &-center-enter-active {
183
- animation-fill-mode: both;
184
- animation-name: popup-fade-in;
185
- animation-duration: $popup-animation-duration;
156
+ to {
157
+ opacity: 1;
186
158
  }
159
+ }
187
160
 
188
- &-center-exit-active {
189
- animation-fill-mode: both;
190
- animation-name: popup-fade-out;
191
- animation-duration: $popup-animation-duration;
161
+ @keyframes popup-fade-out {
162
+ from {
163
+ opacity: 1;
192
164
  }
193
165
 
194
- /* 从顶部滑出 */
195
- @keyframes popup-slide-top-enter {
196
- from {
197
- transform: translate3d(0, -100%, 0);
198
- }
166
+ to {
167
+ opacity: 0;
199
168
  }
169
+ }
200
170
 
201
- @keyframes popup-slide-top-exit {
202
- to {
203
- transform: translate3d(0, -100%, 0);
204
- }
205
- }
171
+ &-center-enter-active {
172
+ animation-fill-mode: both;
173
+ animation-name: popup-fade-in;
174
+ animation-duration: $popup-animation-duration;
175
+ }
206
176
 
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;
213
- }
177
+ &-center-exit-active {
178
+ animation-fill-mode: both;
179
+ animation-name: popup-fade-out;
180
+ animation-duration: $popup-animation-duration;
181
+ }
214
182
 
215
- &-top-exit-active {
216
- animation-fill-mode: both;
217
- animation-name: popup-slide-top-exit;
218
- animation-duration: $popup-animation-duration;
183
+ /* 从顶部滑出 */
184
+ @keyframes popup-slide-top-enter {
185
+ from {
186
+ transform: translate3d(0, -100%, 0);
219
187
  }
188
+ }
220
189
 
221
- /* 从右侧滑出 */
222
- @keyframes popup-slide-right-enter {
223
- from {
224
- transform: translate3d(100%, 0, 0);
225
- }
190
+ @keyframes popup-slide-top-exit {
191
+ to {
192
+ transform: translate3d(0, -100%, 0);
226
193
  }
194
+ }
227
195
 
228
- @keyframes popup-slide-right-exit {
229
- to {
230
- transform: translate3d(100%, 0, 0);
231
- }
232
- }
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
+ }
233
203
 
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;
240
- }
204
+ &-top-exit-active {
205
+ animation-fill-mode: both;
206
+ animation-name: popup-slide-top-exit;
207
+ animation-duration: $popup-animation-duration;
208
+ }
241
209
 
242
- &-right-exit {
243
- animation-fill-mode: both;
244
- animation-name: popup-slide-right-exit;
245
- animation-duration: $popup-animation-duration;
210
+ /* 从右侧滑出 */
211
+ @keyframes popup-slide-right-enter {
212
+ from {
213
+ transform: translate3d(100%, 0, 0);
246
214
  }
215
+ }
247
216
 
248
- /* 从底部滑出 */
249
- @keyframes popup-slide-bottom-enter {
250
- from {
251
- transform: translate3d(0, 100%, 0);
252
- }
217
+ @keyframes popup-slide-right-exit {
218
+ to {
219
+ transform: translate3d(100%, 0, 0);
253
220
  }
221
+ }
254
222
 
255
- @keyframes slide-bottom-exit {
256
- to {
257
- transform: translate3d(0, 100%, 0);
258
- }
259
- }
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
+ }
260
230
 
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;
267
- }
231
+ &-right-exit {
232
+ animation-fill-mode: both;
233
+ animation-name: popup-slide-right-exit;
234
+ animation-duration: $popup-animation-duration;
235
+ }
268
236
 
269
- &-bottom-exit {
270
- animation-fill-mode: both;
271
- animation-name: slide-bottom-exit;
272
- animation-duration: $popup-animation-duration;
237
+ /* 从底部滑出 */
238
+ @keyframes popup-slide-bottom-enter {
239
+ from {
240
+ transform: translate3d(0, 100%, 0);
273
241
  }
242
+ }
274
243
 
275
- /* 从左侧滑出 */
276
- @keyframes popup-slide-left-enter {
277
- from {
278
- transform: translate3d(-100%, 0, 0);
279
- }
244
+ @keyframes slide-bottom-exit {
245
+ to {
246
+ transform: translate3d(0, 100%, 0);
280
247
  }
248
+ }
281
249
 
282
- @keyframes popup-slide-left-exit {
283
- to {
284
- transform: translate3d(-100%, 0, 0);
285
- }
286
- }
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
+ }
287
257
 
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;
258
+ &-bottom-exit {
259
+ animation-fill-mode: both;
260
+ animation-name: slide-bottom-exit;
261
+ animation-duration: $popup-animation-duration;
262
+ }
263
+
264
+ /* 从左侧滑出 */
265
+ @keyframes popup-slide-left-enter {
266
+ from {
267
+ transform: translate3d(-100%, 0, 0);
294
268
  }
269
+ }
295
270
 
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;
271
+ @keyframes popup-slide-left-exit {
272
+ to {
273
+ transform: translate3d(-100%, 0, 0);
301
274
  }
302
275
  }
303
276
 
304
- .nut-overflow-hidden {
305
- overflow: hidden !important;
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;
306
283
  }
284
+
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;
290
+ }
291
+ }
292
+
293
+ .nut-overflow-hidden {
294
+ overflow: hidden !important;
307
295
  }
@@ -2,53 +2,42 @@
2
2
  font-size: $font-size-large;
3
3
  display: inline;
4
4
  color: $color-primary;
5
-
6
- &-line {
5
+ &--line {
7
6
  div {
8
7
  text-decoration: line-through;
9
8
  font-size: $price-line-font-size !important;
10
9
  color: $price-line-color !important;
11
10
  }
12
11
  }
13
-
14
- &-symbol,
15
- &-integer,
16
- &-decimal {
12
+ &__symbol,
13
+ &__integer,
14
+ &__decimal {
17
15
  display: inline-block;
18
16
  }
19
-
20
- &-symbol {
17
+ &__symbol {
21
18
  font-size: $price-symbol-medium-size;
22
19
  padding-right: $price-symbol-padding-right;
23
-
24
20
  &-large {
25
21
  font-size: $price-symbol-big-size;
26
22
  }
27
-
28
23
  &-small {
29
24
  font-size: $price-symbol-small-size;
30
25
  }
31
26
  }
32
-
33
- &-integer {
27
+ &__integer {
34
28
  font-size: $price-integer-medium-size;
35
-
36
29
  &-large {
37
30
  font-size: $price-integer-big-size;
38
31
  }
39
-
40
32
  &-small {
41
33
  font-size: $price-integer-small-size;
42
34
  }
43
35
  }
44
-
45
- &-decimal {
36
+ &__decimal {
46
37
  font-size: $price-decimal-medium-size;
47
-
48
38
  &-large {
49
39
  font-size: $price-decimal-big-size;
50
40
  }
51
-
52
41
  &-small {
53
42
  font-size: $price-decimal-small-size;
54
43
  }
@@ -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,24 +2,17 @@
2
2
  &-head {
3
3
  overflow: hidden;
4
4
  position: relative;
5
- font-size: 12px;
5
+ font-size: 14px;
6
6
 
7
7
  &-content {
8
8
  position: absolute;
9
9
  bottom: 0;
10
10
  left: 0;
11
11
  width: 100%;
12
- color: $color-title;
12
+ color: $title-color;
13
13
  display: flex;
14
- flex-direction: column;
15
14
  justify-content: center;
16
15
  align-items: center;
17
-
18
- &-icons {
19
- width: $pulltorefresh-top-icon-width;
20
- height: $pulltorefresh-top-icon-height;
21
- margin-bottom: 4px;
22
- }
23
16
  }
24
17
  }
25
18
  }