@nutui/nutui-react 1.2.3-beta.4 → 1.3.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 (334) hide show
  1. package/CHANGELOG.md +28 -0
  2. package/dist/esm/Audio/style/index.js +4 -0
  3. package/dist/esm/Audio.js +293 -0
  4. package/dist/esm/Avatar.js +7 -5
  5. package/dist/esm/Calendar/style/index.js +1 -2
  6. package/dist/esm/Calendar.js +80 -33
  7. package/dist/esm/CalendarItem.js +440 -238
  8. package/dist/esm/Cascader/style/index.js +2 -0
  9. package/dist/esm/Cascader.js +788 -0
  10. package/dist/esm/CheckboxGroup.js +0 -1
  11. package/dist/esm/ConfigProvider.js +16 -0
  12. package/dist/esm/DatePicker.js +37 -6
  13. package/dist/esm/Dialog.js +9 -16
  14. package/dist/esm/Drag.js +1 -1
  15. package/dist/esm/Elevator.js +16 -5
  16. package/dist/esm/Grid/style/index.js +2 -0
  17. package/dist/esm/Grid.js +91 -0
  18. package/dist/esm/GridItem/style/index.js +2 -0
  19. package/dist/esm/GridItem.js +99 -0
  20. package/dist/esm/Icon/style/index.js +1 -0
  21. package/dist/esm/Icon.js +2 -2
  22. package/dist/esm/ImagePreview/style/index.js +2 -0
  23. package/dist/esm/ImagePreview.js +257 -0
  24. package/dist/esm/Input.js +8 -2
  25. package/dist/esm/InputNumber.js +11 -11
  26. package/dist/esm/Menu/style/index.js +3 -0
  27. package/dist/esm/Menu.js +153 -0
  28. package/dist/esm/MenuItem/style/index.js +3 -0
  29. package/dist/esm/MenuItem.js +197 -0
  30. package/dist/esm/NoticeBar.js +70 -30
  31. package/dist/esm/Notify.js +19 -4
  32. package/dist/esm/Picker.js +9 -4
  33. package/dist/esm/Popover.js +57 -80
  34. package/dist/esm/Price.js +14 -3
  35. package/dist/esm/Progress.js +1 -1
  36. package/dist/esm/Range.js +11 -48
  37. package/dist/esm/Swipe/style/index.js +2 -0
  38. package/dist/esm/Swipe.js +265 -0
  39. package/dist/esm/Swiper.js +2 -1
  40. package/dist/esm/TabPane.js +5 -33
  41. package/dist/esm/TabbarItem.js +1 -1
  42. package/dist/esm/Tabs.js +6 -196
  43. package/dist/esm/Tag.js +1 -1
  44. package/dist/esm/TextArea.js +48 -4
  45. package/dist/esm/Toast.js +24 -13
  46. package/dist/esm/Uploader.js +16 -6
  47. package/dist/esm/{icon-62bd7379.js → icon-8dc4de10.js} +9 -9
  48. package/dist/esm/nutui-react.es.js +8 -0
  49. package/dist/esm/render-4a3856cb.js +32 -0
  50. package/dist/esm/tabpane-c957ab14.js +33 -0
  51. package/dist/esm/tabs-a48583e9.js +196 -0
  52. package/dist/esm/useClientRect-839d18c5.js +44 -0
  53. package/dist/locales/base.d.ts +16 -0
  54. package/dist/locales/base.js +1 -1
  55. package/dist/locales/en-US.js +17 -1
  56. package/dist/locales/id-ID.js +17 -1
  57. package/dist/locales/zh-CN.js +17 -1
  58. package/dist/locales/zh-TW.js +17 -1
  59. package/dist/nutui.react.es.js +2639 -768
  60. package/dist/nutui.react.umd.js +2646 -767
  61. package/dist/packages/audio/audio.scss +80 -0
  62. package/dist/packages/calendar/calendar.scss +57 -36
  63. package/dist/packages/calendaritem/calendaritem.scss +0 -191
  64. package/dist/packages/cascader/cascader.scss +69 -0
  65. package/dist/packages/col/col.scss +2 -2
  66. package/dist/packages/collapseitem/collapseitem.scss +1 -2
  67. package/dist/packages/grid/grid.scss +10 -0
  68. package/dist/packages/griditem/griditem.scss +103 -0
  69. package/dist/packages/icon/icon.scss +104 -12
  70. package/dist/packages/imagepreview/imagepreview.scss +51 -0
  71. package/dist/packages/menu/menu.scss +72 -0
  72. package/dist/packages/menuitem/menuitem.scss +90 -0
  73. package/dist/packages/noticebar/noticebar.scss +31 -15
  74. package/dist/packages/notify/notify.scss +9 -0
  75. package/dist/packages/popover/popover.scss +205 -83
  76. package/dist/packages/popup/popup.scss +1 -1
  77. package/dist/packages/rate/rate.scss +14 -13
  78. package/dist/packages/searchbar/searchbar.scss +1 -0
  79. package/dist/packages/shortpassword/shortpassword.scss +6 -1
  80. package/dist/packages/swipe/swipe.scss +33 -0
  81. package/dist/packages/textarea/textarea.scss +16 -1
  82. package/dist/packages/toast/toast.scss +16 -13
  83. package/dist/style.css +1 -1
  84. package/dist/style.es.js +1 -1
  85. package/dist/styles/animation/icon.scss +245 -0
  86. package/dist/styles/animation/index.scss +1 -0
  87. package/dist/styles/font/config.json +169 -0
  88. package/dist/styles/font/demo_index.html +210 -3
  89. package/dist/styles/font/iconfont.css +39 -3
  90. package/dist/styles/font/iconfont.js +42 -40
  91. package/dist/styles/font/iconfont.json +63 -0
  92. package/dist/styles/font/iconfont.ttf +0 -0
  93. package/dist/styles/font/iconfont.woff +0 -0
  94. package/dist/styles/font/iconfont.woff2 +0 -0
  95. package/dist/styles/themes/default.scss +8 -0
  96. package/dist/styles/variables.scss +82 -15
  97. package/dist/types/actionsheet/actionsheet.taro.d.ts +20 -0
  98. package/dist/types/actionsheet/index.taro.d.ts +2 -0
  99. package/dist/types/address/address.taro.d.ts +34 -0
  100. package/dist/types/address/index.taro.d.ts +2 -0
  101. package/dist/types/animatingnumbers/animatingnumbers.taro.d.ts +12 -0
  102. package/dist/types/animatingnumbers/countup.taro.d.ts +11 -0
  103. package/dist/types/animatingnumbers/index.taro.d.ts +2 -0
  104. package/dist/types/audio/__test__/audio.spec.d.ts +1 -0
  105. package/dist/types/audio/audio.d.ts +18 -0
  106. package/dist/types/audio/audio.taro.d.ts +18 -0
  107. package/dist/types/audio/demo.d.ts +4 -0
  108. package/dist/types/audio/index.d.ts +2 -0
  109. package/dist/types/audio/index.taro.d.ts +2 -0
  110. package/dist/types/avatar/avatar.taro.d.ts +17 -0
  111. package/dist/types/avatar/index.taro.d.ts +2 -0
  112. package/dist/types/avatargroup/index.taro.d.ts +2 -0
  113. package/dist/types/backtop/__test__/backtop.spec.d.ts +1 -0
  114. package/dist/types/backtop/backtop.taro.d.ts +15 -0
  115. package/dist/types/backtop/index.taro.d.ts +2 -0
  116. package/dist/types/badge/badge.taro.d.ts +14 -0
  117. package/dist/types/badge/index.taro.d.ts +2 -0
  118. package/dist/types/barrage/barrage.taro.d.ts +12 -0
  119. package/dist/types/barrage/index.taro.d.ts +2 -0
  120. package/dist/types/button/button.taro.d.ts +20 -0
  121. package/dist/types/button/index.taro.d.ts +2 -0
  122. package/dist/types/calendar/__tests__/calendar.spec.d.ts +1 -0
  123. package/dist/types/calendar/calendar.d.ts +22 -2
  124. package/dist/types/calendar/calendar.taro.d.ts +14 -0
  125. package/dist/types/calendar/demo.d.ts +1 -0
  126. package/dist/types/calendar/index.taro.d.ts +2 -0
  127. package/dist/types/calendaritem/calendaritem.d.ts +21 -3
  128. package/dist/types/calendaritem/calendaritem.taro.d.ts +17 -0
  129. package/dist/types/calendaritem/index.taro.d.ts +2 -0
  130. package/dist/types/card/card.taro.d.ts +17 -0
  131. package/dist/types/card/index.taro.d.ts +2 -0
  132. package/dist/types/cascader/__tests__/cascader.spec.d.ts +1 -0
  133. package/dist/types/cascader/cascader.d.ts +25 -0
  134. package/dist/types/cascader/cascader.taro.d.ts +25 -0
  135. package/dist/types/cascader/cascaderItem.d.ts +25 -0
  136. package/dist/types/cascader/cascaderItem.taro.d.ts +25 -0
  137. package/dist/types/cascader/demo.d.ts +3 -0
  138. package/dist/types/cascader/helper.d.ts +4 -0
  139. package/dist/types/cascader/index.d.ts +2 -0
  140. package/dist/types/cascader/index.taro.d.ts +2 -0
  141. package/dist/types/cascader/tree.d.ts +12 -0
  142. package/dist/types/cascader/types.d.ts +28 -0
  143. package/dist/types/cell/cell.taro.d.ts +20 -0
  144. package/dist/types/cell/index.taro.d.ts +2 -0
  145. package/dist/types/cellgroup/cellgroup.taro.d.ts +10 -0
  146. package/dist/types/cellgroup/index.taro.d.ts +2 -0
  147. package/dist/types/checkbox/checkbox.d.ts +2 -2
  148. package/dist/types/checkbox/checkbox.taro.d.ts +19 -0
  149. package/dist/types/checkbox/index.taro.d.ts +2 -0
  150. package/dist/types/checkboxgroup/checkboxgroup.d.ts +2 -2
  151. package/dist/types/checkboxgroup/checkboxgroup.taro.d.ts +8 -0
  152. package/dist/types/checkboxgroup/index.taro.d.ts +2 -0
  153. package/dist/types/circleprogress/circleprogress.taro.d.ts +15 -0
  154. package/dist/types/circleprogress/index.taro.d.ts +2 -0
  155. package/dist/types/col/col.taro.d.ts +10 -0
  156. package/dist/types/col/index.taro.d.ts +2 -0
  157. package/dist/types/collapse/collapse.taro.d.ts +12 -0
  158. package/dist/types/collapse/index.taro.d.ts +2 -0
  159. package/dist/types/collapseitem/index.taro.d.ts +2 -0
  160. package/dist/types/configprovider/configprovider.taro.d.ts +12 -0
  161. package/dist/types/configprovider/index.taro.d.ts +2 -0
  162. package/dist/types/countdown/countdown.taro.d.ts +15 -0
  163. package/dist/types/countdown/index.taro.d.ts +2 -0
  164. package/dist/types/datepicker/datepicker.taro.d.ts +27 -0
  165. package/dist/types/datepicker/index.taro.d.ts +2 -0
  166. package/dist/types/dialog/__test__/dialog.spec.d.ts +1 -0
  167. package/dist/types/dialog/config.d.ts +3 -3
  168. package/dist/types/dialog/dialog.d.ts +2 -1
  169. package/dist/types/dialog/dialog.taro.d.ts +3 -0
  170. package/dist/types/dialog/index.taro.d.ts +2 -0
  171. package/dist/types/divider/divider.taro.d.ts +12 -0
  172. package/dist/types/divider/index.taro.d.ts +2 -0
  173. package/dist/types/drag/drag.taro.d.ts +14 -0
  174. package/dist/types/drag/index.taro.d.ts +2 -0
  175. package/dist/types/elevator/elevator.taro.d.ts +22 -0
  176. package/dist/types/elevator/index.taro.d.ts +2 -0
  177. package/dist/types/empty/empty.taro.d.ts +8 -0
  178. package/dist/types/empty/index.taro.d.ts +2 -0
  179. package/dist/types/fixednav/fixednav.d.ts +2 -2
  180. package/dist/types/fixednav/fixednav.taro.d.ts +22 -0
  181. package/dist/types/fixednav/index.taro.d.ts +2 -0
  182. package/dist/types/grid/__test__/grid.spec.d.ts +1 -0
  183. package/dist/types/grid/demo.d.ts +3 -0
  184. package/dist/types/grid/grid.d.ts +16 -0
  185. package/dist/types/grid/grid.taro.d.ts +16 -0
  186. package/dist/types/grid/index.d.ts +2 -0
  187. package/dist/types/grid/index.taro.d.ts +2 -0
  188. package/dist/types/griditem/griditem.d.ts +20 -0
  189. package/dist/types/griditem/griditem.taro.d.ts +20 -0
  190. package/dist/types/griditem/index.d.ts +2 -0
  191. package/dist/types/griditem/index.taro.d.ts +2 -0
  192. package/dist/types/icon/icon.d.ts +10 -5
  193. package/dist/types/icon/icon.taro.d.ts +18 -0
  194. package/dist/types/icon/index.taro.d.ts +2 -0
  195. package/dist/types/imagepreview/__test__/imagepreview.spec.d.ts +1 -0
  196. package/dist/types/imagepreview/demo.d.ts +3 -0
  197. package/dist/types/imagepreview/imagepreview.d.ts +26 -0
  198. package/dist/types/imagepreview/imagepreview.taro.d.ts +26 -0
  199. package/dist/types/imagepreview/index.d.ts +2 -0
  200. package/dist/types/imagepreview/index.taro.d.ts +2 -0
  201. package/dist/types/indicator/index.taro.d.ts +2 -0
  202. package/dist/types/indicator/indicator.taro.d.ts +10 -0
  203. package/dist/types/infiniteloading/index.taro.d.ts +2 -0
  204. package/dist/types/infiniteloading/infiniteloading.taro.d.ts +20 -0
  205. package/dist/types/input/__test__/input.spec.d.ts +1 -0
  206. package/dist/types/input/index.taro.d.ts +2 -0
  207. package/dist/types/input/input.taro.d.ts +57 -0
  208. package/dist/types/inputnumber/index.taro.d.ts +2 -0
  209. package/dist/types/inputnumber/inputnumber.taro.d.ts +22 -0
  210. package/dist/types/layout/index.taro.d.ts +2 -0
  211. package/dist/types/layout/layout.taro.d.ts +4 -0
  212. package/dist/types/menu/__test__/menu.spec.d.ts +1 -0
  213. package/dist/types/menu/demo.d.ts +4 -0
  214. package/dist/types/menu/index.d.ts +2 -0
  215. package/dist/types/menu/index.taro.d.ts +2 -0
  216. package/dist/types/menu/menu.d.ts +12 -0
  217. package/dist/types/menu/menu.taro.d.ts +12 -0
  218. package/dist/types/menuitem/index.d.ts +2 -0
  219. package/dist/types/menuitem/index.taro.d.ts +2 -0
  220. package/dist/types/menuitem/menuitem.d.ts +23 -0
  221. package/dist/types/menuitem/menuitem.taro.d.ts +23 -0
  222. package/dist/types/navbar/index.taro.d.ts +2 -0
  223. package/dist/types/navbar/navbar.taro.d.ts +21 -0
  224. package/dist/types/noticebar/demo.d.ts +1 -0
  225. package/dist/types/noticebar/index.taro.d.ts +2 -0
  226. package/dist/types/noticebar/noticebar.d.ts +1 -1
  227. package/dist/types/noticebar/noticebar.taro.d.ts +23 -0
  228. package/dist/types/notify/Notification.d.ts +8 -7
  229. package/dist/types/notify/__test__/notify.spec.d.ts +1 -0
  230. package/dist/types/notify/index.taro.d.ts +2 -0
  231. package/dist/types/notify/notify.d.ts +13 -0
  232. package/dist/types/notify/notify.taro.d.ts +23 -0
  233. package/dist/types/numberkeyboard/index.taro.d.ts +2 -0
  234. package/dist/types/numberkeyboard/numberkeyboard.taro.d.ts +20 -0
  235. package/dist/types/nutui.react.d.ts +95 -1
  236. package/dist/types/overlay/index.taro.d.ts +2 -0
  237. package/dist/types/overlay/overlay.taro.d.ts +12 -0
  238. package/dist/types/pagination/index.taro.d.ts +2 -0
  239. package/dist/types/pagination/pagination.taro.d.ts +19 -0
  240. package/dist/types/picker/doc.en.d.ts +142 -0
  241. package/dist/types/picker/index.taro.d.ts +2 -0
  242. package/dist/types/picker/picker.d.ts +3 -2
  243. package/dist/types/picker/picker.taro.d.ts +24 -0
  244. package/dist/types/picker/pickerSlot.d.ts +1 -0
  245. package/dist/types/popover/__tests__/popover.spec.d.ts +1 -0
  246. package/dist/types/popover/index.taro.d.ts +2 -0
  247. package/dist/types/popover/popover.d.ts +14 -7
  248. package/dist/types/popover/popover.taro.d.ts +21 -0
  249. package/dist/types/popup/index.taro.d.ts +2 -0
  250. package/dist/types/popup/popup.d.ts +1 -1
  251. package/dist/types/popup/popup.taro.d.ts +25 -0
  252. package/dist/types/price/index.taro.d.ts +2 -0
  253. package/dist/types/price/price.taro.d.ts +11 -0
  254. package/dist/types/progress/index.taro.d.ts +2 -0
  255. package/dist/types/progress/progress.taro.d.ts +26 -0
  256. package/dist/types/radio/index.taro.d.ts +2 -0
  257. package/dist/types/radio/radio.taro.d.ts +21 -0
  258. package/dist/types/radiogroup/index.taro.d.ts +2 -0
  259. package/dist/types/range/index.taro.d.ts +2 -0
  260. package/dist/types/range/range.taro.d.ts +25 -0
  261. package/dist/types/rate/index.taro.d.ts +2 -0
  262. package/dist/types/rate/rate.taro.d.ts +17 -0
  263. package/dist/types/row/index.taro.d.ts +2 -0
  264. package/dist/types/row/row.taro.d.ts +12 -0
  265. package/dist/types/searchbar/index.taro.d.ts +2 -0
  266. package/dist/types/searchbar/searchbar.taro.d.ts +60 -0
  267. package/dist/types/shortpassword/index.taro.d.ts +2 -0
  268. package/dist/types/shortpassword/shortpassword.taro.d.ts +21 -0
  269. package/dist/types/sidenavbar/index.taro.d.ts +2 -0
  270. package/dist/types/sidenavbar/sidenavbar.d.ts +14 -2
  271. package/dist/types/sidenavbar/sidenavbar.taro.d.ts +15 -0
  272. package/dist/types/sidenavbaritem/index.taro.d.ts +2 -0
  273. package/dist/types/sidenavbaritem/sidenavbaritem.d.ts +10 -2
  274. package/dist/types/sidenavbaritem/sidenavbaritem.taro.d.ts +11 -0
  275. package/dist/types/signature/index.taro.d.ts +2 -0
  276. package/dist/types/signature/signature.taro.d.ts +11 -0
  277. package/dist/types/skeleton/index.taro.d.ts +2 -0
  278. package/dist/types/skeleton/skeleton.taro.d.ts +19 -0
  279. package/dist/types/step/index.taro.d.ts +2 -0
  280. package/dist/types/steps/index.taro.d.ts +2 -0
  281. package/dist/types/steps/steps.taro.d.ts +10 -0
  282. package/dist/types/subsidenavbar/index.taro.d.ts +2 -0
  283. package/dist/types/subsidenavbar/subsidenavbar.d.ts +13 -3
  284. package/dist/types/subsidenavbar/subsidenavbar.taro.d.ts +13 -0
  285. package/dist/types/swipe/__tests__/swipe.spec.d.ts +1 -0
  286. package/dist/types/swipe/demo.d.ts +3 -0
  287. package/dist/types/swipe/index.d.ts +2 -0
  288. package/dist/types/swipe/index.taro.d.ts +2 -0
  289. package/dist/types/swipe/swipe.d.ts +41 -0
  290. package/dist/types/swipe/swipe.taro.d.ts +41 -0
  291. package/dist/types/swiper/index.taro.d.ts +2 -0
  292. package/dist/types/swiper/swiper.d.ts +1 -2
  293. package/dist/types/swiper/swiper.taro.d.ts +27 -0
  294. package/dist/types/swiperitem/index.taro.d.ts +2 -0
  295. package/dist/types/swiperitem/swiperitem.d.ts +1 -2
  296. package/dist/types/switch/index.taro.d.ts +2 -0
  297. package/dist/types/switch/switch.taro.d.ts +14 -0
  298. package/dist/types/tabbar/index.taro.d.ts +2 -0
  299. package/dist/types/tabbar/tabbar.taro.d.ts +14 -0
  300. package/dist/types/tabbaritem/index.taro.d.ts +2 -0
  301. package/dist/types/tabbaritem/tabbaritem.taro.d.ts +17 -0
  302. package/dist/types/table/index.taro.d.ts +2 -0
  303. package/dist/types/table/table.d.ts +2 -1
  304. package/dist/types/table/table.taro.d.ts +4 -0
  305. package/dist/types/table/types.d.ts +1 -1
  306. package/dist/types/tabpane/index.taro.d.ts +2 -0
  307. package/dist/types/tabpane/tabpane.taro.d.ts +10 -0
  308. package/dist/types/tabs/index.taro.d.ts +2 -0
  309. package/dist/types/tabs/tabs.taro.d.ts +30 -0
  310. package/dist/types/tag/index.taro.d.ts +2 -0
  311. package/dist/types/tag/tag.taro.d.ts +16 -0
  312. package/dist/types/textarea/__test__/textarea.spec.d.ts +1 -0
  313. package/dist/types/textarea/index.taro.d.ts +2 -0
  314. package/dist/types/textarea/textarea.taro.d.ts +18 -0
  315. package/dist/types/timedetail/index.taro.d.ts +2 -0
  316. package/dist/types/timedetail/timedetail.taro.d.ts +13 -0
  317. package/dist/types/timepannel/index.taro.d.ts +2 -0
  318. package/dist/types/timepannel/timepannel.taro.d.ts +8 -0
  319. package/dist/types/timeselect/index.taro.d.ts +2 -0
  320. package/dist/types/timeselect/timeselect.taro.d.ts +21 -0
  321. package/dist/types/toast/Notification.d.ts +6 -4
  322. package/dist/types/toast/__test__/toast.spec.d.ts +1 -0
  323. package/dist/types/toast/index.taro.d.ts +2 -0
  324. package/dist/types/toast/toast.d.ts +21 -0
  325. package/dist/types/toast/toast.taro.d.ts +29 -0
  326. package/dist/types/uploader/index.taro.d.ts +2 -0
  327. package/dist/types/uploader/uploader.d.ts +2 -2
  328. package/dist/types/uploader/uploader.taro.d.ts +68 -0
  329. package/dist/types/video/index.taro.d.ts +2 -0
  330. package/dist/types/virtuallist/index.taro.d.ts +2 -0
  331. package/dist/types/virtuallist/type.d.ts +1 -1
  332. package/dist/types/virtuallist/virtuallist.d.ts +2 -1
  333. package/dist/types/virtuallist/virtuallist.taro.d.ts +4 -0
  334. package/package.json +18 -7
@@ -0,0 +1,80 @@
1
+ .nut-theme-dark {
2
+ .nut-audio__icon {
3
+ .nut-audio__icon-box {
4
+ background: $dark-color;
5
+ }
6
+ }
7
+ }
8
+ .nut-audio {
9
+ &__icon {
10
+ position: relative;
11
+ display: inline-block;
12
+ &-box {
13
+ display: flex;
14
+ align-items: center;
15
+ justify-content: center;
16
+ width: 30px;
17
+ height: 30px;
18
+ background: #fff;
19
+ border-radius: 50%;
20
+ box-shadow: 0 0 8px rgba($color: $text-color, $alpha: 0.5);
21
+
22
+ .nut-icon-am-rotate {
23
+ transform: rotate((360));
24
+ animation-timing-function: ease-in-out;
25
+ }
26
+ }
27
+
28
+ .nut-audio__icon-stop {
29
+ position: relative;
30
+ &::after {
31
+ position: absolute;
32
+ left: 50%;
33
+ top: 50%;
34
+ transform: translateX(-50%);
35
+ content: '';
36
+ height: 2px;
37
+ width: 30px;
38
+ background: $disable-color;
39
+ transform: rotate(45deg);
40
+ transform-origin: 8px -18px;
41
+ }
42
+ }
43
+ }
44
+
45
+ &__progress {
46
+ display: flex;
47
+ align-items: center;
48
+ width: 100%;
49
+ margin: 0px auto;
50
+ padding: 10px 0;
51
+
52
+ &-bar-wrapper {
53
+ flex: 1;
54
+ margin: 0 10px;
55
+ }
56
+ .time {
57
+ min-width: 50px;
58
+ font-size: 12px;
59
+ text-align: center;
60
+ }
61
+ .nut-range-button {
62
+ width: 8px;
63
+ height: 8px;
64
+ }
65
+ }
66
+ .custom-button-group {
67
+ .nut-button--primary {
68
+ margin: 0 5px;
69
+ }
70
+ }
71
+ .custom-button-group-disable {
72
+ .nut-button--primary {
73
+ margin: 0 5px;
74
+ pointer-events: none;
75
+ }
76
+ }
77
+ .disable {
78
+ color: blue;
79
+ }
80
+ }
@@ -2,18 +2,14 @@
2
2
  position: relative;
3
3
  display: flex;
4
4
  flex: 1;
5
- height: 728px;
6
- padding-top: 132px;
7
- padding-bottom: 78px;
8
5
  color: $calendar-base-color;
9
6
  font-size: $calendar-base-font;
10
7
  background-color: $white;
11
8
  overflow: hidden;
9
+ height: 100%;
10
+ flex-direction: column;
12
11
 
13
12
  &.nut-calendar-tile {
14
- padding-top: 46px;
15
- padding-bottom: 0;
16
-
17
13
  .nut-calendar-header {
18
14
  .calendar-title {
19
15
  font-size: $calendar-base-font;
@@ -24,6 +20,9 @@
24
20
  .nut-calendar-taro {
25
21
  height: 60vh;
26
22
  }
23
+ .popup-box {
24
+ height: 100%;
25
+ }
27
26
  .nut-calendar-content {
28
27
  overflow-y: auto;
29
28
  }
@@ -33,41 +32,39 @@
33
32
 
34
33
  // 头部导航
35
34
  .nut-calendar-header {
36
- position: absolute;
37
- top: -1px;
38
- left: 0;
39
- right: 0;
40
35
  display: flex;
41
36
  flex-direction: column;
42
37
  text-align: center;
43
38
  padding-top: 1px;
44
39
  background-color: $white;
45
- z-index: 1;
46
40
 
47
41
  .calendar-title {
48
- padding-top: 22px;
49
42
  font-size: $calendar-title-font;
50
- line-height: 25px;
51
- border-radius: 12px 12px 0 0;
43
+ font-weight: $calendar-title-font-weight;
44
+ line-height: 44px;
52
45
  }
53
46
 
54
47
  .calendar-curr-month {
55
- padding: 10px 0 7px;
48
+ padding: 7px 0;
56
49
  line-height: 22px;
50
+ font-size: $calendar-sub-title-font;
51
+ }
52
+ .calendar-top-slot {
53
+ height: $calendar-top-slot-height;
57
54
  }
58
55
 
59
56
  .calendar-weeks {
60
57
  display: flex;
61
58
  align-items: center;
62
59
  justify-content: space-around;
63
- height: 46px;
60
+ height: 36px;
64
61
  border-radius: 0px 0px 12px 12px;
65
62
  box-shadow: 0px 4px 10px 0px rgba($color: #000000, $alpha: 0.06);
66
63
 
67
64
  .calendar-week-item {
68
65
  &:first-of-type,
69
66
  &:last-of-type {
70
- color: $calendar-primary-color;
67
+ color: $calendar-day67-font-color;
71
68
  }
72
69
  }
73
70
  }
@@ -76,13 +73,17 @@
76
73
  // 月份
77
74
  .nut-calendar-content {
78
75
  flex: 1;
79
-
76
+ width: 100%;
77
+ display: block;
80
78
  .calendar-months-panel {
81
79
  position: relative;
82
80
  width: 100%;
83
81
  height: auto;
84
82
  display: block;
85
-
83
+ box-sizing: border-box;
84
+ .viewArea {
85
+ display: block;
86
+ }
86
87
  .calendar-month {
87
88
  display: flex;
88
89
  flex-direction: column;
@@ -115,42 +116,62 @@
115
116
 
116
117
  .calendar-month-con {
117
118
  overflow: hidden;
118
-
119
119
  .calendar-month-item {
120
120
  .calendar-month-day:nth-child(7n + 0),
121
121
  .calendar-month-day:nth-child(7n + 1) {
122
- color: $calendar-primary-color;
122
+ color: $calendar-day67-font-color;
123
123
  }
124
124
  }
125
125
 
126
126
  .calendar-month-day {
127
127
  float: left;
128
- width: 14.28%;
129
- height: 64px;
128
+ width: $calendar-day-width;
129
+ height: $calendar-day-height;
130
+ font-weight: $calendar-day-font-weight;
130
131
  display: flex;
131
132
  align-items: center;
132
133
  justify-content: center;
133
134
  flex-direction: column;
134
135
  position: relative;
135
136
 
136
- .curr-tips,
137
+ .calendar-curr-tips {
138
+ position: absolute;
139
+ width: 100%;
140
+ }
141
+
142
+ .calendar-curr-tip-curr {
143
+ position: absolute;
144
+ bottom: 6px;
145
+ width: 100%;
146
+ font-size: 12px;
147
+ line-height: 14px;
148
+ }
137
149
  .calendar-day-tip {
138
150
  position: absolute;
139
- top: 10px;
151
+ bottom: 6px;
140
152
  width: 100%;
141
- font-size: 11px;
142
- line-height: 12px;
153
+ font-size: 12px;
154
+ line-height: 14px;
143
155
  color: $calendar-primary-color;
144
156
  }
157
+ .calendar-curr-tips-top {
158
+ top: 6px;
159
+ }
160
+ .calendar-curr-tips-bottom {
161
+ bottom: 6px;
162
+ }
145
163
 
146
164
  &-active {
147
165
  background-color: $calendar-primary-color;
148
166
  color: $white !important;
167
+ border-radius: $calendar-day-active-border-radius;
149
168
 
150
- .curr-tips {
169
+ .calendar-curr-tips {
170
+ visibility: hidden;
171
+ }
172
+ .calendar-curr-tip-curr {
151
173
  visibility: hidden;
152
174
  }
153
-
154
175
  .calendar-day-tip {
155
176
  color: $white;
156
177
  }
@@ -162,10 +183,11 @@
162
183
 
163
184
  &-choose {
164
185
  background-color: $calendar-choose-color;
186
+ color: $calendar-choose-font-color;
165
187
  }
166
188
 
167
189
  .calendar-day {
168
- padding: 4px 0;
190
+ padding: 2px 0;
169
191
  font-size: $calendar-day-font;
170
192
  }
171
193
  }
@@ -175,19 +197,15 @@
175
197
 
176
198
  // 底部导航
177
199
  .nut-calendar-footer {
178
- position: absolute;
179
- left: 0;
180
- right: 0;
181
- bottom: -1px;
182
200
  display: flex;
183
- height: 78px;
201
+ height: 62px;
184
202
  width: 100%;
185
203
  background-color: $white;
186
204
 
187
205
  .calendar-confirm-btn {
188
206
  height: 44px;
189
207
  width: 100%;
190
- margin: 14px 18px;
208
+ margin: 10px 18px;
191
209
  border-radius: 22px;
192
210
  background: $button-primary-background-color;
193
211
  color: $white;
@@ -196,3 +214,6 @@
196
214
  }
197
215
  }
198
216
  }
217
+ .nutui-popup__close-icon {
218
+ top: 7px !important;
219
+ }
@@ -1,191 +0,0 @@
1
- .nut-calendar {
2
- position: relative;
3
- display: flex;
4
- flex: 1;
5
- height: 518px;
6
- padding-top: 132px;
7
- padding-bottom: 78px;
8
- color: $calendar-base-color;
9
- font-size: $calendar-base-font;
10
- background-color: $white;
11
- overflow: hidden;
12
-
13
- &.nut-calendar-tile {
14
- height: 100%;
15
- padding-top: 46px;
16
- padding-bottom: 0;
17
-
18
- .nut-calendar-header {
19
- .calendar-title {
20
- font-size: $calendar-base-font;
21
- }
22
- }
23
- }
24
-
25
- &.nut-calendar-nofooter {
26
- padding-bottom: 0;
27
- }
28
-
29
- // 头部导航
30
- .nut-calendar-header {
31
- position: absolute;
32
- top: -1px;
33
- left: 0;
34
- right: 0;
35
- display: flex;
36
- flex-direction: column;
37
- text-align: center;
38
- padding-top: 1px;
39
- background-color: $white;
40
- z-index: 1;
41
-
42
- .calendar-title {
43
- padding-top: 22px;
44
- font-size: $calendar-title-font;
45
- line-height: 25px;
46
- border-radius: 12px 12px 0 0;
47
- }
48
-
49
- .calendar-curr-month {
50
- padding: 10px 0 7px;
51
- line-height: 22px;
52
- }
53
-
54
- .calendar-weeks {
55
- display: flex;
56
- align-items: center;
57
- justify-content: space-around;
58
- height: 46px;
59
- box-shadow: 0px 4px 10px 0px rgba($color: #000000, $alpha: 0.06);
60
-
61
- .calendar-week-item {
62
- &:first-of-type,
63
- &:last-of-type {
64
- color: $calendar-primary-color;
65
- }
66
- }
67
- }
68
- }
69
-
70
- // 月份
71
- .nut-calendar-content {
72
- flex: 1;
73
-
74
- .calendar-months-panel {
75
- position: relative;
76
- width: 100%;
77
- height: auto;
78
- display: block;
79
-
80
- .calendar-month {
81
- display: flex;
82
- flex-direction: column;
83
- text-align: center;
84
- }
85
-
86
- div:nth-of-type(2) {
87
- .calendar-month-title {
88
- padding-top: 0;
89
- }
90
- }
91
-
92
- .calendar-loading-tip {
93
- height: 50px;
94
- line-height: 50px;
95
- text-align: center;
96
- position: absolute;
97
- top: -50px;
98
- left: 0;
99
- right: 0;
100
- font-size: $calendar-text-font;
101
- color: $text-color;
102
- }
103
-
104
- .calendar-month-title {
105
- height: 23px;
106
- line-height: 23px;
107
- margin: 8px 0;
108
- }
109
-
110
- .calendar-month-con {
111
- overflow: hidden;
112
-
113
- .calendar-month-item {
114
- .calendar-month-day:nth-child(7n + 0),
115
- .calendar-month-day:nth-child(7n + 1) {
116
- color: $calendar-primary-color;
117
- }
118
- }
119
-
120
- .calendar-month-day {
121
- float: left;
122
- width: 14.28%;
123
- height: 64px;
124
- display: flex;
125
- align-items: center;
126
- justify-content: center;
127
- flex-direction: column;
128
- position: relative;
129
-
130
- .calendar-day-tip {
131
- position: absolute;
132
- top: 10px;
133
- width: 100%;
134
- font-size: 16px;
135
- line-height: 12px;
136
- color: $calendar-primary-color;
137
- }
138
-
139
- &-active {
140
- background-color: $calendar-primary-color;
141
- color: $white !important;
142
-
143
- .calendar-curr-tips {
144
- // visibility: hidden;
145
- }
146
-
147
- .calendar-day-tip {
148
- color: $white;
149
- }
150
- }
151
-
152
- &-disabled {
153
- color: $calendar-disable-color !important;
154
- }
155
-
156
- &-choose {
157
- background-color: $calendar-choose-color;
158
- }
159
-
160
- .calendar-day {
161
- padding: 4px 0;
162
- font-size: $calendar-day-font;
163
- }
164
- }
165
- }
166
- }
167
- }
168
-
169
- // 底部导航
170
- .nut-calendar-footer {
171
- position: absolute;
172
- left: 0;
173
- right: 0;
174
- bottom: -1px;
175
- display: flex;
176
- height: 78px;
177
- width: 100%;
178
- background-color: $white;
179
-
180
- .calendar-confirm-btn {
181
- height: 44px;
182
- width: 100%;
183
- margin: 14px 18px;
184
- border-radius: 22px;
185
- background: $button-primary-background-color;
186
- color: $white;
187
- text-align: center;
188
- line-height: 44px;
189
- }
190
- }
191
- }
@@ -0,0 +1,69 @@
1
+ .nut-cascader {
2
+ width: 100%;
3
+ font-size: $cascader-font-size;
4
+ line-height: $cascader-line-height;
5
+ &__title {
6
+ display: flex;
7
+ justify-content: center;
8
+ align-items: center;
9
+ padding: $cascader-title-padding;
10
+ text-align: center;
11
+ font-weight: bold;
12
+ line-height: $cascader-title-line-height;
13
+ color: #1a1a1a;
14
+ font-size: $cascader-title-font-size;
15
+ }
16
+ .nut-tabs__titles {
17
+ padding: $cascader-tabs-item-padding;
18
+ background: #fff;
19
+ }
20
+ .nut-tabs__titles-item {
21
+ flex: initial;
22
+ min-width: auto;
23
+ width: auto;
24
+ padding: $cascader-tabs-item-padding;
25
+ white-space: nowrap;
26
+ }
27
+ .nut-tabpane {
28
+ padding: 0;
29
+ }
30
+ &-pane {
31
+ display: block;
32
+ padding: 0;
33
+ margin: 0;
34
+ width: 100%;
35
+ padding-top: $cascader-pane-paddingTop;
36
+ height: $cascader-pane-height;
37
+ overflow-y: auto;
38
+ -webkit-overflow-scrolling: touch;
39
+ }
40
+ &-item {
41
+ display: flex;
42
+ align-items: center;
43
+ padding: $cascader-item-padding;
44
+ margin: 0;
45
+ cursor: pointer;
46
+ font-size: $cascader-item-font-size;
47
+ color: $cascader-item-color;
48
+ &.disabled {
49
+ opacity: 0.6;
50
+ cursor: not-allowed;
51
+ }
52
+ &.active {
53
+ &:not(.disabled) {
54
+ color: $cascader-item-active-color;
55
+ }
56
+ .nut-cascader-item__icon-check {
57
+ visibility: visible;
58
+ color: $cascader-item-active-color;
59
+ }
60
+ }
61
+ }
62
+ &-item__title {
63
+ flex: 1;
64
+ }
65
+ .nut-icon-checklist {
66
+ margin-left: $cascader-icon-checklist-marginLeft;
67
+ visibility: hidden;
68
+ }
69
+ }
@@ -15,10 +15,10 @@
15
15
 
16
16
  @for $i from 1 through 24 {
17
17
  .nut-col-offset-#{$i} {
18
- margin-left: calc(100 / 24) * $i * 1%;
18
+ margin-left: calc((100 / 24) * #{$i} * 1%);
19
19
  }
20
20
 
21
21
  .nut-col-#{$i} {
22
- width: calc(100 / 24) * $i * 1%;
22
+ width: calc((100 / 24) * #{$i} * 1%);
23
23
  }
24
24
  }
@@ -4,7 +4,7 @@
4
4
  .nut-collapse-item {
5
5
  &__header {
6
6
  position: relative;
7
- display: block;
7
+ display: flex;
8
8
  width: 100%;
9
9
  overflow: hidden;
10
10
  padding: 13px 0px 13px 26px;
@@ -13,7 +13,6 @@
13
13
  line-height: 24px;
14
14
  background-color: #fff;
15
15
  box-sizing: border-box;
16
- display: flex;
17
16
  &::after {
18
17
  position: absolute;
19
18
  box-sizing: border-box;
@@ -0,0 +1,10 @@
1
+ .nut-grid {
2
+ display: flex;
3
+ flex-wrap: wrap;
4
+ border: 0 solid $grid-border-color;
5
+
6
+ &__border {
7
+ border-top-width: 1px;
8
+ border-left-width: 1px;
9
+ }
10
+ }
@@ -0,0 +1,103 @@
1
+ .nut-theme-dark {
2
+ .nut-grid-item {
3
+ &__content {
4
+ background: $dark-background;
5
+ color: $dark-color;
6
+ }
7
+ &__text {
8
+ color: $dark-color;
9
+ }
10
+ }
11
+ }
12
+ .nut-grid-item {
13
+ position: relative;
14
+ box-sizing: border-box;
15
+
16
+ $block: &;
17
+
18
+ &__text {
19
+ color: $grid-item-text-color;
20
+ font-size: $grid-item-text-font-size;
21
+ line-height: 1.5;
22
+ word-break: break-all;
23
+ margin: $grid-item-text-margin 0 0 0;
24
+ }
25
+
26
+ &__content {
27
+ display: flex;
28
+ flex-direction: column;
29
+ box-sizing: border-box;
30
+ height: 100%;
31
+ padding: $grid-item-content-padding;
32
+ background: $grid-item-content-bg-color;
33
+ border: 0 solid $grid-border-color;
34
+
35
+ &--border {
36
+ border-right-width: 1px;
37
+ border-bottom-width: 1px;
38
+ }
39
+
40
+ &--surround {
41
+ border-top-width: 1px;
42
+ border-left-width: 1px;
43
+ }
44
+
45
+ &--center {
46
+ align-items: center;
47
+ justify-content: center;
48
+ }
49
+
50
+ &--square {
51
+ position: absolute;
52
+ top: 0;
53
+ right: 0;
54
+ left: 0;
55
+ }
56
+
57
+ &--reverse {
58
+ flex-direction: column-reverse;
59
+
60
+ #{$block}__text {
61
+ margin: 0 0 $grid-item-text-margin;
62
+ }
63
+ }
64
+
65
+ &--horizontal {
66
+ flex-direction: row;
67
+
68
+ #{$block}__text {
69
+ margin: 0 0 0 $grid-item-text-margin;
70
+ }
71
+ }
72
+
73
+ &--horizontal#{&}--reverse {
74
+ flex-direction: row-reverse;
75
+ #{$block}__text {
76
+ margin: 0 $grid-item-text-margin 0 0;
77
+ }
78
+ }
79
+
80
+ &--clickable {
81
+ cursor: pointer;
82
+
83
+ &::before {
84
+ position: absolute;
85
+ top: 50%;
86
+ left: 50%;
87
+ width: 100%;
88
+ height: 100%;
89
+ background-color: $black;
90
+ border: inherit;
91
+ border-color: $black;
92
+ border-radius: inherit;
93
+ transform: translate(-50%, -50%);
94
+ opacity: 0;
95
+ content: ' ';
96
+ }
97
+
98
+ &:active::before {
99
+ opacity: 0.1;
100
+ }
101
+ }
102
+ }
103
+ }