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