@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
package/dist/style.es.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui-react v1.2.3-beta.4 Fri Aug 19 2022 09:34:42 GMT+0800 (China Standard Time)
2
+ * @nutui/nutui-react v1.3.1-beta.0 Wed Aug 31 2022 13:31:41 GMT+0800 (China Standard Time)
3
3
  * (c) 2021 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -0,0 +1,245 @@
1
+ // 跳动
2
+ @-webkit-keyframes nutJump {
3
+ to {
4
+ transform: scale3d(0.8, 1, 0.9) translateY(-10px);
5
+ }
6
+ }
7
+
8
+ @keyframes nutJump {
9
+ to {
10
+ transform: scale3d(0.8, 1, 0.9) translateY(-10px);
11
+ }
12
+ }
13
+
14
+ @-webkit-keyframes nutJumpOne {
15
+ 50% {
16
+ transform: scale3d(0.8, 1, 0.9) translateY(-10px);
17
+ }
18
+
19
+ 100% {
20
+ transform: scale3d(1, 1, 1) translateY(0);
21
+ }
22
+ }
23
+
24
+ @keyframes nutJumpOne {
25
+ 50% {
26
+ transform: scale3d(0.8, 1, 0.9) translateY(-10px);
27
+ }
28
+
29
+ 100% {
30
+ transform: scale3d(1, 1, 1) translateY(0);
31
+ }
32
+ }
33
+
34
+ // 闪烁
35
+ @-webkit-keyframes nutBlink {
36
+ 0% {
37
+ opacity: 0;
38
+ }
39
+
40
+ 100% {
41
+ opacity: 1;
42
+ }
43
+ }
44
+
45
+ @keyframes nutBlink {
46
+ 0% {
47
+ opacity: 0;
48
+ }
49
+
50
+ 100% {
51
+ opacity: 1;
52
+ }
53
+ }
54
+
55
+ // 呼吸
56
+ @-webkit-keyframes nutBreathe {
57
+ from,
58
+ to {
59
+ transform: scale(1);
60
+ }
61
+ 50% {
62
+ transform: scale(1.2);
63
+ }
64
+ }
65
+
66
+ @keyframes nutBreathe {
67
+ from,
68
+ to {
69
+ transform: scale(1);
70
+ }
71
+ 50% {
72
+ transform: scale(1.2);
73
+ }
74
+ }
75
+
76
+ // 闪现
77
+ @-webkit-keyframes nutFlash {
78
+ from,
79
+ 50%,
80
+ to {
81
+ opacity: 1;
82
+ }
83
+
84
+ 25%,
85
+ 75% {
86
+ opacity: 0;
87
+ }
88
+ }
89
+
90
+ @keyframes nutFlash {
91
+ from,
92
+ 50%,
93
+ to {
94
+ opacity: 1;
95
+ }
96
+
97
+ 25%,
98
+ 75% {
99
+ opacity: 0;
100
+ }
101
+ }
102
+
103
+ // 弹动
104
+ @-webkit-keyframes nutBounce {
105
+ from,
106
+ 20%,
107
+ 53%,
108
+ to {
109
+ -webkit-animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
110
+ animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
111
+ -webkit-transform: translate3d(0, 0, 0);
112
+ transform: translate3d(0, 0, 0);
113
+ }
114
+
115
+ 40%,
116
+ 43% {
117
+ -webkit-animation-timing-function: cubic-bezier(0.755, 0.05, 0.855, 0.06);
118
+ animation-timing-function: cubic-bezier(0.755, 0.05, 0.855, 0.06);
119
+ -webkit-transform: translate3d(0, -30px, 0) scaleY(1.1);
120
+ transform: translate3d(0, -30px, 0) scaleY(1.1);
121
+ }
122
+
123
+ 70% {
124
+ -webkit-animation-timing-function: cubic-bezier(0.755, 0.05, 0.855, 0.06);
125
+ animation-timing-function: cubic-bezier(0.755, 0.05, 0.855, 0.06);
126
+ -webkit-transform: translate3d(0, -15px, 0) scaleY(1.05);
127
+ transform: translate3d(0, -15px, 0) scaleY(1.05);
128
+ }
129
+
130
+ 80% {
131
+ -webkit-transition-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
132
+ transition-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
133
+ -webkit-transform: translate3d(0, 0, 0) scaleY(0.95);
134
+ transform: translate3d(0, 0, 0) scaleY(0.95);
135
+ }
136
+
137
+ 90% {
138
+ -webkit-transform: translate3d(0, -4px, 0) scaleY(1.02);
139
+ transform: translate3d(0, -4px, 0) scaleY(1.02);
140
+ }
141
+ }
142
+
143
+ @keyframes nutBounce {
144
+ from,
145
+ 20%,
146
+ 53%,
147
+ to {
148
+ -webkit-animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
149
+ animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
150
+ -webkit-transform: translate3d(0, 0, 0);
151
+ transform: translate3d(0, 0, 0);
152
+ }
153
+
154
+ 40%,
155
+ 43% {
156
+ -webkit-animation-timing-function: cubic-bezier(0.755, 0.05, 0.855, 0.06);
157
+ animation-timing-function: cubic-bezier(0.755, 0.05, 0.855, 0.06);
158
+ -webkit-transform: translate3d(0, -30px, 0) scaleY(1.1);
159
+ transform: translate3d(0, -30px, 0) scaleY(1.1);
160
+ }
161
+
162
+ 70% {
163
+ -webkit-animation-timing-function: cubic-bezier(0.755, 0.05, 0.855, 0.06);
164
+ animation-timing-function: cubic-bezier(0.755, 0.05, 0.855, 0.06);
165
+ -webkit-transform: translate3d(0, -15px, 0) scaleY(1.05);
166
+ transform: translate3d(0, -15px, 0) scaleY(1.05);
167
+ }
168
+
169
+ 80% {
170
+ -webkit-transition-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
171
+ transition-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
172
+ -webkit-transform: translate3d(0, 0, 0) scaleY(0.95);
173
+ transform: translate3d(0, 0, 0) scaleY(0.95);
174
+ }
175
+
176
+ 90% {
177
+ -webkit-transform: translate3d(0, -4px, 0) scaleY(1.02);
178
+ transform: translate3d(0, -4px, 0) scaleY(1.02);
179
+ }
180
+ }
181
+
182
+ // 抖动
183
+ @-webkit-keyframes nutShake {
184
+ 0% {
185
+ -webkit-transform: translateX(0);
186
+ transform: translateX(0);
187
+ }
188
+
189
+ 6.5% {
190
+ -webkit-transform: translateX(-6px) rotateY(-9deg);
191
+ transform: translateX(-6px) rotateY(-9deg);
192
+ }
193
+
194
+ 18.5% {
195
+ -webkit-transform: translateX(5px) rotateY(7deg);
196
+ transform: translateX(5px) rotateY(7deg);
197
+ }
198
+
199
+ 31.5% {
200
+ -webkit-transform: translateX(-3px) rotateY(-5deg);
201
+ transform: translateX(-3px) rotateY(-5deg);
202
+ }
203
+
204
+ 43.5% {
205
+ -webkit-transform: translateX(2px) rotateY(3deg);
206
+ transform: translateX(2px) rotateY(3deg);
207
+ }
208
+
209
+ 50% {
210
+ -webkit-transform: translateX(0);
211
+ transform: translateX(0);
212
+ }
213
+ }
214
+
215
+ @keyframes nutShake {
216
+ 0% {
217
+ -webkit-transform: translateX(0);
218
+ transform: translateX(0);
219
+ }
220
+
221
+ 6.5% {
222
+ -webkit-transform: translateX(-6px) rotateY(-9deg);
223
+ transform: translateX(-6px) rotateY(-9deg);
224
+ }
225
+
226
+ 18.5% {
227
+ -webkit-transform: translateX(5px) rotateY(7deg);
228
+ transform: translateX(5px) rotateY(7deg);
229
+ }
230
+
231
+ 31.5% {
232
+ -webkit-transform: translateX(-3px) rotateY(-5deg);
233
+ transform: translateX(-3px) rotateY(-5deg);
234
+ }
235
+
236
+ 43.5% {
237
+ -webkit-transform: translateX(2px) rotateY(3deg);
238
+ transform: translateX(2px) rotateY(3deg);
239
+ }
240
+
241
+ 50% {
242
+ -webkit-transform: translateX(0);
243
+ transform: translateX(0);
244
+ }
245
+ }
@@ -4,3 +4,4 @@
4
4
  @import 'ease.scss';
5
5
  @import 'drop.scss';
6
6
  @import 'rotate.scss';
7
+ @import 'icon.scss';
@@ -0,0 +1,169 @@
1
+ {
2
+ "name": "nutui-icon",
3
+ "data": [
4
+ {
5
+ "name": "粗体 Icon",
6
+ "nameEn": "Bold Icon",
7
+ "icons": [
8
+ "order",
9
+ "refresh",
10
+ "add",
11
+ "JD",
12
+ "eye",
13
+ "dshop",
14
+ "my2",
15
+ "star",
16
+ "del2",
17
+ "more-x",
18
+ "comment",
19
+ "microphone",
20
+ "people",
21
+ "service",
22
+ "cart2",
23
+ "location2",
24
+ "marshalling",
25
+ "fabulous",
26
+ "s-follow",
27
+ "shop",
28
+ "jdl"
29
+ ]
30
+ },
31
+ {
32
+ "name": "细体 Icon",
33
+ "nameEn": "Thin Icon",
34
+ "icons": [
35
+ "ask",
36
+ "tips",
37
+ "notice",
38
+ "lower",
39
+ "top",
40
+ "download",
41
+ "dongdong",
42
+ "JIMI40",
43
+ "location",
44
+ "scan",
45
+ "addfollow",
46
+ "search",
47
+ "share",
48
+ "follow",
49
+ "del",
50
+ "edit",
51
+ "cart",
52
+ "home",
53
+ "find",
54
+ "category",
55
+ "my",
56
+ "footprint",
57
+ "link",
58
+ "scan2",
59
+ "left",
60
+ "close",
61
+ "locationg3",
62
+ "share",
63
+ "shop3",
64
+ "message",
65
+ "ask2",
66
+ "search2",
67
+ "clock",
68
+ "setting",
69
+ "refresh2",
70
+ "horizontal",
71
+ "date",
72
+ "photograph",
73
+ "more-s",
74
+ "play-stop",
75
+ "play-start",
76
+ "play-double-back",
77
+ "play-double-forward",
78
+ "voice",
79
+ "image",
80
+ "image-error"
81
+ ]
82
+ },
83
+ {
84
+ "name": "应用图标",
85
+ "nameEn": "Application Icon",
86
+ "icons": [
87
+ "arrow-up",
88
+ "arrow-down",
89
+ "arrow-up2",
90
+ "arrow-down2",
91
+ "down-arrow",
92
+ "joy-smile",
93
+ "close-little",
94
+ "horizontal-n",
95
+ "share-n",
96
+ "heart1",
97
+ "heart-fill",
98
+ "star-n",
99
+ "star-fill-n"
100
+ ]
101
+ },
102
+ {
103
+ "name": "基础图标",
104
+ "nameEn": "Basic Icon",
105
+ "icons": [
106
+ "uploader",
107
+ "mask-close",
108
+ "circle-close",
109
+ "right",
110
+ "arrow-right",
111
+ "github",
112
+ "screen-little",
113
+ "plus",
114
+ "minus",
115
+ "Check",
116
+ "issue",
117
+ "failure",
118
+ "success",
119
+ "retweet",
120
+ "poweroff-circle-fill",
121
+ "play-circle-fill",
122
+ "checked",
123
+ "checklist",
124
+ "check-disabled",
125
+ "check-normal",
126
+ "check-checked",
127
+ "loading",
128
+ "loading1"
129
+ ]
130
+ }
131
+
132
+ ],
133
+ "style":[
134
+ {
135
+ "name": "通用动态样式",
136
+ "nameEn": "Universal Dynamic Style",
137
+ "icons": [{
138
+ "name":"dou-arrow-up",
139
+ "animation-name":"am-jump",
140
+ "animation-time":"am-infinite"
141
+ },{
142
+ "name":"star",
143
+ "animation-name":"am-blink",
144
+ "animation-time":"am-infinite"
145
+ },{
146
+ "name":"refresh2",
147
+ "animation-name":"am-rotate",
148
+ "animation-time":"am-infinite"
149
+ },{
150
+ "name":"heart-fill",
151
+ "animation-name":"am-breathe",
152
+ "animation-time":"am-infinite"
153
+ },{
154
+ "name":"microphone",
155
+ "animation-name":"am-flash",
156
+ "animation-time":"am-infinite"
157
+ },{
158
+ "name":"download",
159
+ "animation-name":"am-bounce",
160
+ "animation-time":"am-infinite"
161
+ },{
162
+ "name":"message",
163
+ "animation-name":"am-shake",
164
+ "animation-time":"am-infinite"
165
+ }
166
+ ]
167
+ }
168
+ ]
169
+ }
@@ -54,6 +54,60 @@
54
54
  <div class="content unicode" style="display: block;">
55
55
  <ul class="icon_lists dib-box">
56
56
 
57
+ <li class="dib">
58
+ <span class="icon nutui-iconfont">&#xe60a;</span>
59
+ <div class="name">image-error</div>
60
+ <div class="code-name">&amp;#xe60a;</div>
61
+ </li>
62
+
63
+ <li class="dib">
64
+ <span class="icon nutui-iconfont">&#xe609;</span>
65
+ <div class="name">image</div>
66
+ <div class="code-name">&amp;#xe609;</div>
67
+ </li>
68
+
69
+ <li class="dib">
70
+ <span class="icon nutui-iconfont">&#xe608;</span>
71
+ <div class="name">voice</div>
72
+ <div class="code-name">&amp;#xe608;</div>
73
+ </li>
74
+
75
+ <li class="dib">
76
+ <span class="icon nutui-iconfont">&#xe604;</span>
77
+ <div class="name">play-stop</div>
78
+ <div class="code-name">&amp;#xe604;</div>
79
+ </li>
80
+
81
+ <li class="dib">
82
+ <span class="icon nutui-iconfont">&#xe605;</span>
83
+ <div class="name">play-start</div>
84
+ <div class="code-name">&amp;#xe605;</div>
85
+ </li>
86
+
87
+ <li class="dib">
88
+ <span class="icon nutui-iconfont">&#xe606;</span>
89
+ <div class="name">play-double-back</div>
90
+ <div class="code-name">&amp;#xe606;</div>
91
+ </li>
92
+
93
+ <li class="dib">
94
+ <span class="icon nutui-iconfont">&#xe607;</span>
95
+ <div class="name">play-double-forward</div>
96
+ <div class="code-name">&amp;#xe607;</div>
97
+ </li>
98
+
99
+ <li class="dib">
100
+ <span class="icon nutui-iconfont">&#xe603;</span>
101
+ <div class="name">dou-arrow-up</div>
102
+ <div class="code-name">&amp;#xe603;</div>
103
+ </li>
104
+
105
+ <li class="dib">
106
+ <span class="icon nutui-iconfont">&#xe614;</span>
107
+ <div class="name">loading2</div>
108
+ <div class="code-name">&amp;#xe614;</div>
109
+ </li>
110
+
57
111
  <li class="dib">
58
112
  <span class="icon nutui-iconfont">&#xe601;</span>
59
113
  <div class="name">checked</div>
@@ -732,9 +786,9 @@
732
786
  <pre><code class="language-css"
733
787
  >@font-face {
734
788
  font-family: 'nutui-iconfont';
735
- src: url('iconfont.woff2?t=1620383008438') format('woff2'),
736
- url('iconfont.woff?t=1620383008438') format('woff'),
737
- url('iconfont.ttf?t=1620383008438') format('truetype');
789
+ src: url('iconfont.woff2?t=1654497552263') format('woff2'),
790
+ url('iconfont.woff?t=1654497552263') format('woff'),
791
+ url('iconfont.ttf?t=1654497552263') format('truetype');
738
792
  }
739
793
  </code></pre>
740
794
  <h3 id="-iconfont-">第二步:定义使用 iconfont 的样式</h3>
@@ -760,6 +814,87 @@
760
814
  <div class="content font-class">
761
815
  <ul class="icon_lists dib-box">
762
816
 
817
+ <li class="dib">
818
+ <span class="icon nutui-iconfont nut-icon-image-error"></span>
819
+ <div class="name">
820
+ image-error
821
+ </div>
822
+ <div class="code-name">.nut-icon-image-error
823
+ </div>
824
+ </li>
825
+
826
+ <li class="dib">
827
+ <span class="icon nutui-iconfont nut-icon-image"></span>
828
+ <div class="name">
829
+ image
830
+ </div>
831
+ <div class="code-name">.nut-icon-image
832
+ </div>
833
+ </li>
834
+
835
+ <li class="dib">
836
+ <span class="icon nutui-iconfont nut-icon-voice"></span>
837
+ <div class="name">
838
+ voice
839
+ </div>
840
+ <div class="code-name">.nut-icon-voice
841
+ </div>
842
+ </li>
843
+
844
+ <li class="dib">
845
+ <span class="icon nutui-iconfont nut-icon-play-stop"></span>
846
+ <div class="name">
847
+ play-stop
848
+ </div>
849
+ <div class="code-name">.nut-icon-play-stop
850
+ </div>
851
+ </li>
852
+
853
+ <li class="dib">
854
+ <span class="icon nutui-iconfont nut-icon-play-start"></span>
855
+ <div class="name">
856
+ play-start
857
+ </div>
858
+ <div class="code-name">.nut-icon-play-start
859
+ </div>
860
+ </li>
861
+
862
+ <li class="dib">
863
+ <span class="icon nutui-iconfont nut-icon-play-double-back"></span>
864
+ <div class="name">
865
+ play-double-back
866
+ </div>
867
+ <div class="code-name">.nut-icon-play-double-back
868
+ </div>
869
+ </li>
870
+
871
+ <li class="dib">
872
+ <span class="icon nutui-iconfont nut-icon-play-double-forward"></span>
873
+ <div class="name">
874
+ play-double-forward
875
+ </div>
876
+ <div class="code-name">.nut-icon-play-double-forward
877
+ </div>
878
+ </li>
879
+
880
+ <li class="dib">
881
+ <span class="icon nutui-iconfont nut-icon-dou-arrow-up"></span>
882
+ <div class="name">
883
+ dou-arrow-up
884
+ </div>
885
+ <div class="code-name">.nut-icon-dou-arrow-up
886
+ </div>
887
+ </li>
888
+
889
+ <li class="dib">
890
+ <span class="icon nutui-iconfont nut-icon-loading1"></span>
891
+ <div class="name">
892
+ loading2
893
+ </div>
894
+ <div class="code-name">.nut-icon-loading1
895
+ </div>
896
+ </li>
897
+
763
898
  <li class="dib">
764
899
  <span class="icon nutui-iconfont nut-icon-checked"></span>
765
900
  <div class="name">
@@ -1777,6 +1912,78 @@
1777
1912
  <div class="content symbol">
1778
1913
  <ul class="icon_lists dib-box">
1779
1914
 
1915
+ <li class="dib">
1916
+ <svg class="icon svg-icon" aria-hidden="true">
1917
+ <use xlink:href="#nut-icon-image-error"></use>
1918
+ </svg>
1919
+ <div class="name">image-error</div>
1920
+ <div class="code-name">#nut-icon-image-error</div>
1921
+ </li>
1922
+
1923
+ <li class="dib">
1924
+ <svg class="icon svg-icon" aria-hidden="true">
1925
+ <use xlink:href="#nut-icon-image"></use>
1926
+ </svg>
1927
+ <div class="name">image</div>
1928
+ <div class="code-name">#nut-icon-image</div>
1929
+ </li>
1930
+
1931
+ <li class="dib">
1932
+ <svg class="icon svg-icon" aria-hidden="true">
1933
+ <use xlink:href="#nut-icon-voice"></use>
1934
+ </svg>
1935
+ <div class="name">voice</div>
1936
+ <div class="code-name">#nut-icon-voice</div>
1937
+ </li>
1938
+
1939
+ <li class="dib">
1940
+ <svg class="icon svg-icon" aria-hidden="true">
1941
+ <use xlink:href="#nut-icon-play-stop"></use>
1942
+ </svg>
1943
+ <div class="name">play-stop</div>
1944
+ <div class="code-name">#nut-icon-play-stop</div>
1945
+ </li>
1946
+
1947
+ <li class="dib">
1948
+ <svg class="icon svg-icon" aria-hidden="true">
1949
+ <use xlink:href="#nut-icon-play-start"></use>
1950
+ </svg>
1951
+ <div class="name">play-start</div>
1952
+ <div class="code-name">#nut-icon-play-start</div>
1953
+ </li>
1954
+
1955
+ <li class="dib">
1956
+ <svg class="icon svg-icon" aria-hidden="true">
1957
+ <use xlink:href="#nut-icon-play-double-back"></use>
1958
+ </svg>
1959
+ <div class="name">play-double-back</div>
1960
+ <div class="code-name">#nut-icon-play-double-back</div>
1961
+ </li>
1962
+
1963
+ <li class="dib">
1964
+ <svg class="icon svg-icon" aria-hidden="true">
1965
+ <use xlink:href="#nut-icon-play-double-forward"></use>
1966
+ </svg>
1967
+ <div class="name">play-double-forward</div>
1968
+ <div class="code-name">#nut-icon-play-double-forward</div>
1969
+ </li>
1970
+
1971
+ <li class="dib">
1972
+ <svg class="icon svg-icon" aria-hidden="true">
1973
+ <use xlink:href="#nut-icon-dou-arrow-up"></use>
1974
+ </svg>
1975
+ <div class="name">dou-arrow-up</div>
1976
+ <div class="code-name">#nut-icon-dou-arrow-up</div>
1977
+ </li>
1978
+
1979
+ <li class="dib">
1980
+ <svg class="icon svg-icon" aria-hidden="true">
1981
+ <use xlink:href="#nut-icon-loading1"></use>
1982
+ </svg>
1983
+ <div class="name">loading2</div>
1984
+ <div class="code-name">#nut-icon-loading1</div>
1985
+ </li>
1986
+
1780
1987
  <li class="dib">
1781
1988
  <svg class="icon svg-icon" aria-hidden="true">
1782
1989
  <use xlink:href="#nut-icon-checked"></use>