@nutui/nutui-react-taro 2.3.8 → 2.3.10

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 (261) hide show
  1. package/CHANGELOG.md +37 -4
  2. package/dist/esm/ActionSheet/style/style.css +1 -1
  3. package/dist/esm/ActionSheet.js +2 -2
  4. package/dist/esm/Address/style/style.css +1 -1
  5. package/dist/esm/Address.js +5 -5
  6. package/dist/esm/Animate/style/style.css +1 -1
  7. package/dist/esm/Audio/style/style.css +1 -1
  8. package/dist/esm/Audio.js +2 -2
  9. package/dist/esm/Avatar/style/style.css +1 -1
  10. package/dist/esm/AvatarCropper/style/style.css +1 -1
  11. package/dist/esm/AvatarGroup/style/style.css +1 -1
  12. package/dist/esm/Badge/style/style.css +1 -1
  13. package/dist/esm/Barrage/style/style.css +1 -1
  14. package/dist/esm/Barrage.js +4 -2
  15. package/dist/esm/Button/style/style.css +1 -1
  16. package/dist/esm/Calendar/style/style.css +1 -1
  17. package/dist/esm/Calendar.js +4 -4
  18. package/dist/esm/CalendarCard/style/style.css +1 -1
  19. package/dist/esm/CalendarCard.js +2 -2
  20. package/dist/esm/CalendarItem.js +2 -2
  21. package/dist/esm/Card/style/style.css +1 -1
  22. package/dist/esm/Cascader/style/style.css +1 -1
  23. package/dist/esm/Cascader.js +3 -3
  24. package/dist/esm/Cell/style/style.css +1 -1
  25. package/dist/esm/CellGroup/style/style.css +1 -1
  26. package/dist/esm/Checkbox/style/style.css +1 -1
  27. package/dist/esm/CheckboxGroup/style/style.css +1 -1
  28. package/dist/esm/CircleProgress/style/style.css +1 -1
  29. package/dist/esm/Col/style/style.css +1 -1
  30. package/dist/esm/Collapse/style/style.css +1 -1
  31. package/dist/esm/CollapseItem/style/style.css +1 -1
  32. package/dist/esm/ConfigProvider.js +2 -2
  33. package/dist/esm/CountDown.js +2 -2
  34. package/dist/esm/DatePicker/style/style.css +1 -1
  35. package/dist/esm/DatePicker.js +4 -4
  36. package/dist/esm/Dialog/style/style.css +1 -1
  37. package/dist/esm/Dialog.js +2 -2
  38. package/dist/esm/Divider/style/style.css +1 -1
  39. package/dist/esm/Elevator/style/style.css +1 -1
  40. package/dist/esm/Empty/style/style.css +1 -1
  41. package/dist/esm/Empty.js +2 -2
  42. package/dist/esm/FixedNav/style/style.css +1 -1
  43. package/dist/esm/FixedNav.js +2 -2
  44. package/dist/esm/Form/style/style.css +1 -1
  45. package/dist/esm/Form.js +1 -1
  46. package/dist/esm/FormItem/style/style.css +1 -1
  47. package/dist/esm/FormItem.js +1 -1
  48. package/dist/esm/Grid/style/style.css +1 -1
  49. package/dist/esm/Grid.js +3 -3
  50. package/dist/esm/GridItem/style/style.css +1 -1
  51. package/dist/esm/GridItem.js +2 -2
  52. package/dist/esm/Image/style/style.css +1 -1
  53. package/dist/esm/ImagePreview/style/style.css +1 -1
  54. package/dist/esm/ImagePreview.js +2 -2
  55. package/dist/esm/Indicator/style/style.css +1 -1
  56. package/dist/esm/InfiniteLoading/style/style.css +1 -1
  57. package/dist/esm/InfiniteLoading.js +2 -2
  58. package/dist/esm/Input.js +2 -2
  59. package/dist/esm/Menu/style/style.css +1 -1
  60. package/dist/esm/MenuItem/style/style.css +1 -1
  61. package/dist/esm/NavBar/style/style.css +1 -1
  62. package/dist/esm/NoticeBar/style/style.css +1 -1
  63. package/dist/esm/Notify/style/style.css +1 -1
  64. package/dist/esm/NumberKeyboard/style/style.css +1 -1
  65. package/dist/esm/NumberKeyboard.js +3 -3
  66. package/dist/esm/Overlay/style/style.css +1 -1
  67. package/dist/esm/Pagination/style/style.css +1 -1
  68. package/dist/esm/Pagination.js +2 -2
  69. package/dist/esm/Picker/style/style.css +1 -1
  70. package/dist/esm/Picker.js +3 -3
  71. package/dist/esm/Popover/style/style.css +1 -1
  72. package/dist/esm/Popover.js +2 -2
  73. package/dist/esm/Popup/style/style.css +1 -1
  74. package/dist/esm/Popup.js +1 -1
  75. package/dist/esm/Price/style/style.css +1 -1
  76. package/dist/esm/Progress/style/style.css +1 -1
  77. package/dist/esm/PullToRefresh/style/style.css +1 -1
  78. package/dist/esm/PullToRefresh.js +2 -2
  79. package/dist/esm/Radio/style/style.css +1 -1
  80. package/dist/esm/Range/style/style.css +1 -1
  81. package/dist/esm/Rate/style/style.css +1 -1
  82. package/dist/esm/SearchBar/style/style.css +1 -1
  83. package/dist/esm/SearchBar.js +2 -2
  84. package/dist/esm/ShortPassword/style/style.css +1 -1
  85. package/dist/esm/ShortPassword.js +3 -3
  86. package/dist/esm/SideNavBar/style/style.css +1 -1
  87. package/dist/esm/SideNavBar.js +2 -2
  88. package/dist/esm/Skeleton/style/style.css +1 -1
  89. package/dist/esm/Space/style/style.css +1 -1
  90. package/dist/esm/Step/style/style.css +1 -1
  91. package/dist/esm/Steps/style/style.css +1 -1
  92. package/dist/esm/Sticky.js +1 -1
  93. package/dist/esm/Swipe/style/style.css +1 -1
  94. package/dist/esm/Swiper/style/style.css +1 -1
  95. package/dist/esm/Switch/style/style.css +1 -1
  96. package/dist/esm/Tabbar/style/style.css +1 -1
  97. package/dist/esm/TabbarItem/style/style.css +1 -1
  98. package/dist/esm/Table/style/style.css +1 -1
  99. package/dist/esm/Table.js +2 -2
  100. package/dist/esm/Tabs/style/style.css +1 -1
  101. package/dist/esm/Tabs.js +1 -1
  102. package/dist/esm/Tag/style/style.css +1 -1
  103. package/dist/esm/TextArea/style/style.css +1 -1
  104. package/dist/esm/TextArea.js +2 -2
  105. package/dist/esm/TimeDetail/style/style.css +1 -1
  106. package/dist/esm/TimeSelect/style/style.css +1 -1
  107. package/dist/esm/TimeSelect.js +3 -3
  108. package/dist/esm/Toast/style/style.css +1 -1
  109. package/dist/esm/Tour/style/style.css +1 -1
  110. package/dist/esm/Tour.js +3 -3
  111. package/dist/esm/TrendArrow/style/style.css +1 -1
  112. package/dist/esm/Uploader/style/style.css +1 -1
  113. package/dist/esm/Uploader.js +2 -2
  114. package/dist/esm/VirtualList/style/style.css +1 -1
  115. package/dist/esm/WaterMark.js +2 -2
  116. package/dist/esm/{actionsheet.taro-gfhQciJ4.js → actionsheet.taro-6NiOrNyd.js} +1 -1
  117. package/dist/esm/{address.taro-LCSSqsR-.js → address.taro-zQuxQEce.js} +3 -3
  118. package/dist/esm/{audio.taro-UpVxFvGk.js → audio.taro-dJgj5qIu.js} +1 -1
  119. package/dist/esm/barrage.taro-6nbq7wtt.js +118 -0
  120. package/dist/esm/{calendar.taro-Kf91Qo5t.js → calendar.taro-iNNHje7V.js} +3 -3
  121. package/dist/esm/{calendarcard.taro-tY-cyh-F.js → calendarcard.taro-9s7naGmU.js} +1 -1
  122. package/dist/esm/{calendaritem.taro-G5BaVw8e.js → calendaritem.taro-o6Z8OOGY.js} +1 -1
  123. package/dist/esm/{cascader.taro-x_X9F_pH.js → cascader.taro-M2nZWxiB.js} +2 -2
  124. package/dist/esm/{configprovider.taro-_wngOo0k.js → configprovider.taro-q5J2gQbi.js} +6 -4
  125. package/dist/esm/{countdown.taro-rJngrZUZ.js → countdown.taro-XZlfWBrA.js} +1 -1
  126. package/dist/esm/{datepicker.taro-S111IvJO.js → datepicker.taro-DrXkqJkN.js} +2 -2
  127. package/dist/esm/{dialog.taro-z588FBZJ.js → dialog.taro-dmQGDu3o.js} +1 -1
  128. package/dist/esm/{empty.taro-98NzV-31.js → empty.taro-gwvOr1xf.js} +1 -1
  129. package/dist/esm/{fixednav.taro-7OfzwFBE.js → fixednav.taro-QVBXysDj.js} +1 -1
  130. package/dist/esm/{formitem.taro-atY4A0pS.js → formitem.taro-PPkTQGfW.js} +39 -10
  131. package/dist/esm/{grid.taro-Hc4q01A_.js → grid.taro-3X-_AhXw.js} +1 -1
  132. package/dist/esm/{griditem.taro-RdNA-Wqv.js → griditem.taro-TJDJVeQy.js} +1 -1
  133. package/dist/esm/{imagepreview.taro-qDST6Lh4.js → imagepreview.taro--fVrJUOE.js} +1 -1
  134. package/dist/esm/{infiniteloading.taro-sl41Ddeh.js → infiniteloading.taro-BO0_y46K.js} +2 -1
  135. package/dist/esm/{input.taro-8gs046AH.js → input.taro-YoPsV-op.js} +20 -17
  136. package/dist/esm/{numberkeyboard.taro-CyW0s9bI.js → numberkeyboard.taro-bF6VCXry.js} +2 -2
  137. package/dist/esm/nutui-react.es.js +37 -37
  138. package/dist/esm/{pagination.taro-RYmB2As4.js → pagination.taro-C4_Ey5KC.js} +1 -1
  139. package/dist/esm/{picker.taro-RAYmFSC0.js → picker.taro-csU3SZPF.js} +2 -2
  140. package/dist/esm/{popover.taro-MUrnn7xY.js → popover.taro-qldQwLPC.js} +1 -1
  141. package/dist/esm/{popup.taro-2FdJu1kg.js → popup.taro-ObEUml4r.js} +1 -1
  142. package/dist/esm/{pulltorefresh.taro-VbzsD_HC.js → pulltorefresh.taro-2jER8Mat.js} +1 -1
  143. package/dist/esm/{searchbar.taro-Hmwspp92.js → searchbar.taro-hVzdT6nI.js} +1 -1
  144. package/dist/esm/{shortpassword.taro-uFeVULsY.js → shortpassword.taro-ECs_E1Xn.js} +20 -7
  145. package/dist/esm/{sidenavbar.taro-J5SEKQIh.js → sidenavbar.taro-8qoGZg5n.js} +1 -1
  146. package/dist/esm/{sticky.taro-MmKUU2Wv.js → sticky.taro-p-evMNR-.js} +1 -1
  147. package/dist/esm/{table.taro-d172EUh9.js → table.taro-0zRh2hq6.js} +1 -1
  148. package/dist/esm/{tabs.taro-w8ra49Qb.js → tabs.taro-Yj7vgtSg.js} +1 -1
  149. package/dist/esm/{textarea.taro-VYqlTewy.js → textarea.taro-9zQLTCwU.js} +2 -2
  150. package/dist/esm/{timeselect.taro-7FWR9oaJ.js → timeselect.taro-j8LgSCe5.js} +2 -2
  151. package/dist/esm/{tour.taro-HLsDVf9g.js → tour.taro-CGEjzzN_.js} +1 -1
  152. package/dist/esm/types/src/packages/configprovider/configprovider.d.ts +2 -0
  153. package/dist/esm/types/src/packages/configprovider/configprovider.taro.d.ts +2 -0
  154. package/dist/esm/types/src/packages/configprovider/index.d.ts +1 -1
  155. package/dist/esm/types/src/packages/configprovider/index.taro.d.ts +1 -1
  156. package/dist/esm/types/src/packages/formitem/formitem.d.ts +6 -2
  157. package/dist/esm/types/src/packages/formitem/formitem.taro.d.ts +6 -2
  158. package/dist/esm/types/src/packages/popover/popover.taro.d.ts +7 -0
  159. package/dist/esm/types/src/packages/shortpassword/shortpassword.d.ts +3 -2
  160. package/dist/esm/types/src/packages/shortpassword/shortpassword.taro.d.ts +3 -2
  161. package/dist/esm/types/src/packages/shortpassword/types.d.ts +4 -0
  162. package/dist/esm/{uploader.taro-a-U18v5C.js → uploader.taro-bRF02TR9.js} +1 -1
  163. package/dist/esm/{watermark.taro-WDFdgWlJ.js → watermark.taro-nvSmcwu-.js} +1 -1
  164. package/dist/locales/base.js +1 -1
  165. package/dist/locales/en-US.js +1 -1
  166. package/dist/locales/id-ID.js +1 -1
  167. package/dist/locales/tr-TR.js +1 -1
  168. package/dist/locales/zh-CN.js +1 -1
  169. package/dist/locales/zh-TW.js +1 -1
  170. package/dist/locales/zh-UG.js +1 -1
  171. package/dist/nutui.react.es.js +172 -103
  172. package/dist/nutui.react.umd.js +172 -103
  173. package/dist/packages/address/address.scss +12 -0
  174. package/dist/packages/animate/animate.scss +49 -0
  175. package/dist/packages/audio/audio.scss +14 -0
  176. package/dist/packages/avatar/avatar.scss +25 -0
  177. package/dist/packages/avatarcropper/avatarcropper.scss +52 -0
  178. package/dist/packages/avatargroup/avatargroup.scss +11 -0
  179. package/dist/packages/badge/badge.scss +8 -0
  180. package/dist/packages/barrage/barrage.scss +18 -1
  181. package/dist/packages/button/button.scss +18 -0
  182. package/dist/packages/calendar/calendar.scss +24 -0
  183. package/dist/packages/calendarcard/calendarcard.scss +41 -0
  184. package/dist/packages/card/card.scss +21 -0
  185. package/dist/packages/cascader/cascader.scss +8 -0
  186. package/dist/packages/cellgroup/cellgroup.scss +14 -0
  187. package/dist/packages/checkbox/checkbox.scss +38 -0
  188. package/dist/packages/checkboxgroup/checkboxgroup.scss +24 -8
  189. package/dist/packages/circleprogress/circleprogress.scss +8 -0
  190. package/dist/packages/col/col.scss +25 -0
  191. package/dist/packages/collapseitem/collapseitem.scss +15 -0
  192. package/dist/packages/dialog/dialog.scss +29 -0
  193. package/dist/packages/divider/divider.scss +22 -0
  194. package/dist/packages/elevator/elevator.scss +20 -0
  195. package/dist/packages/ellipsis/ellipsis.scss +1 -0
  196. package/dist/packages/empty/empty.scss +11 -0
  197. package/dist/packages/fixednav/fixednav.scss +75 -0
  198. package/dist/packages/form/form.scss +31 -0
  199. package/dist/packages/formitem/formitem.scss +15 -0
  200. package/dist/packages/grid/grid.scss +8 -0
  201. package/dist/packages/griditem/griditem.scss +37 -0
  202. package/dist/packages/image/image.scss +13 -0
  203. package/dist/packages/imagepreview/imagepreview.scss +26 -0
  204. package/dist/packages/indicator/indicator.scss +15 -0
  205. package/dist/packages/infiniteloading/infiniteloading.scss +13 -0
  206. package/dist/packages/loading/loading.scss +6 -0
  207. package/dist/packages/menu/menu.scss +9 -0
  208. package/dist/packages/menuitem/menuitem.scss +12 -0
  209. package/dist/packages/navbar/navbar.scss +61 -0
  210. package/dist/packages/noticebar/noticebar.scss +22 -0
  211. package/dist/packages/notify/notify.scss +10 -0
  212. package/dist/packages/numberkeyboard/numberkeyboard.scss +27 -0
  213. package/dist/packages/overlay/overlay.scss +6 -0
  214. package/dist/packages/pagination/pagination.scss +24 -0
  215. package/dist/packages/popover/popover.scss +105 -0
  216. package/dist/packages/popup/popup.scss +77 -0
  217. package/dist/packages/price/price.scss +19 -0
  218. package/dist/packages/progress/progress.scss +7 -0
  219. package/dist/packages/pulltorefresh/pulltorefresh.scss +10 -0
  220. package/dist/packages/radio/radio.scss +21 -0
  221. package/dist/packages/range/range.scss +65 -0
  222. package/dist/packages/rate/rate.scss +30 -0
  223. package/dist/packages/safearea/safearea.scss +2 -0
  224. package/dist/packages/searchbar/searchbar.scss +65 -0
  225. package/dist/packages/shortpassword/shortpassword.scss +25 -0
  226. package/dist/packages/sidenavbar/sidenavbar.scss +15 -0
  227. package/dist/packages/skeleton/skeleton.scss +22 -1
  228. package/dist/packages/space/space.scss +30 -0
  229. package/dist/packages/step/step.scss +45 -0
  230. package/dist/packages/swipe/swipe.scss +15 -0
  231. package/dist/packages/swiper/swiper.scss +14 -0
  232. package/dist/packages/switch/switch.scss +13 -0
  233. package/dist/packages/tabbar/tabbar.scss +13 -0
  234. package/dist/packages/tabbaritem/tabbaritem.scss +2 -0
  235. package/dist/packages/table/table.scss +57 -0
  236. package/dist/packages/tabs/tabs.scss +85 -14
  237. package/dist/packages/tag/tag.scss +8 -0
  238. package/dist/packages/textarea/textarea.scss +17 -0
  239. package/dist/packages/timedetail/timedetail.scss +5 -0
  240. package/dist/packages/timeselect/timeselect.scss +5 -0
  241. package/dist/packages/toast/toast.scss +15 -0
  242. package/dist/packages/tour/tour.scss +23 -0
  243. package/dist/packages/trendarrow/trendarrow.scss +13 -0
  244. package/dist/packages/uploader/uploader.scss +36 -0
  245. package/dist/packages/video/video.scss +3 -0
  246. package/dist/packages/virtuallist/virtuallist.scss +11 -0
  247. package/dist/style.css +1 -1
  248. package/dist/style.mjs +1 -1
  249. package/dist/types/packages/backtop/backtop.taro.d.ts +1 -1
  250. package/dist/types/packages/configprovider/configprovider.d.ts +2 -0
  251. package/dist/types/packages/configprovider/configprovider.taro.d.ts +2 -0
  252. package/dist/types/packages/configprovider/index.d.ts +1 -1
  253. package/dist/types/packages/configprovider/index.taro.d.ts +1 -1
  254. package/dist/types/packages/formitem/formitem.d.ts +6 -2
  255. package/dist/types/packages/formitem/formitem.taro.d.ts +14 -2
  256. package/dist/types/packages/popover/popover.taro.d.ts +7 -0
  257. package/dist/types/packages/shortpassword/shortpassword.d.ts +3 -2
  258. package/dist/types/packages/shortpassword/shortpassword.taro.d.ts +3 -2
  259. package/dist/types/packages/shortpassword/types.d.ts +4 -0
  260. package/package.json +1 -1
  261. package/dist/esm/barrage.taro-HsivAhbE.js +0 -91
@@ -168,6 +168,7 @@
168
168
 
169
169
  &-top-start {
170
170
  left: 0;
171
+
171
172
  .nut-popover-arrow-top-start {
172
173
  left: 16px;
173
174
  transform: translateX(0%);
@@ -217,6 +218,104 @@
217
218
  }
218
219
  }
219
220
 
221
+ [dir='rtl'] .nut-popover,
222
+ .nut-rtl .nut-popover {
223
+ &-arrow {
224
+ &-left {
225
+ right: auto;
226
+ left: 0px;
227
+ border-left-color: currentcolor;
228
+ border-right-color: $popover-border-color;
229
+ border-right-width: medium;
230
+ border-left-width: 0;
231
+ margin-right: 0;
232
+ margin-left: -8px;
233
+ }
234
+
235
+ &-right {
236
+ left: auto;
237
+ right: 0px;
238
+ border-right-color: currentcolor;
239
+ border-left-color: $popover-border-color;
240
+ border-left-width: medium;
241
+ border-right-width: 0;
242
+ margin-left: 0;
243
+ margin-right: -8px;
244
+ }
245
+ }
246
+
247
+ .nut-popover-content {
248
+ .nut-popover-menu-item {
249
+ &-name {
250
+ margin-left: 0;
251
+ margin-right: 4px;
252
+ }
253
+
254
+ &-action-icon {
255
+ right: auto;
256
+ left: $popover-menu-item-padding;
257
+ }
258
+ }
259
+
260
+ &-top {
261
+ .nut-popover-arrow-top {
262
+ left: auto;
263
+ right: 50%;
264
+ transform: translateX(50%);
265
+ }
266
+ }
267
+
268
+ &-top-end {
269
+ right: auto;
270
+ left: 0;
271
+
272
+ .nut-popover-arrow-top-end {
273
+ right: auto;
274
+ left: 16px;
275
+ }
276
+ }
277
+
278
+ &-top-start {
279
+ left: auto;
280
+ right: 0;
281
+
282
+ .nut-popover-arrow-top-start {
283
+ left: auto;
284
+ right: 16px;
285
+ }
286
+ }
287
+
288
+ &-bottom {
289
+ .nut-popover-arrow-bottom {
290
+ left: auto;
291
+ right: 50%;
292
+ transform: translateX(50%);
293
+ }
294
+ }
295
+
296
+ &-bottom-end {
297
+ right: auto;
298
+
299
+ left: 0;
300
+
301
+ .nut-popover-arrow-bottom-end {
302
+ right: auto;
303
+ left: 16px;
304
+ }
305
+ }
306
+
307
+ &-bottom-start {
308
+ left: auto;
309
+ right: 0;
310
+
311
+ .nut-popover-arrow-bottom-start {
312
+ left: auto;
313
+ right: 16px;
314
+ }
315
+ }
316
+ }
317
+ }
318
+
220
319
  .nut-popover-enter-from,
221
320
  .nut-popover-leave-active {
222
321
  transform: scale(0.8);
@@ -241,6 +340,12 @@
241
340
  z-index: 999;
242
341
  }
243
342
 
343
+ [dir='rtl'] .nut-popover-content-bg,
344
+ .nut-rtl .nut-popover-content-bg {
345
+ left: auto;
346
+ right: 0;
347
+ }
348
+
244
349
  .nut-popover-wrapper {
245
350
  display: inline-block;
246
351
  }
@@ -299,9 +299,86 @@
299
299
  animation-name: popup-slide-left-exit;
300
300
  animation-duration: $popup-animation-duration;
301
301
  }
302
+
303
+ &-default-exit-done,
304
+ &-center-exit-done,
305
+ &-left-exit-done,
306
+ &-right-exit-done,
307
+ &-top-exit-done,
308
+ &-bottom-exit-done {
309
+ display: none;
310
+ }
302
311
  }
303
312
 
304
313
  .nut-overflow-hidden {
305
314
  overflow: hidden !important;
306
315
  }
307
316
  }
317
+
318
+ [dir='rtl'] .nut-popup,
319
+ .nut-rtl .nut-popup {
320
+ &-title {
321
+ &-left {
322
+ left: auto;
323
+ right: $popup-title-padding;
324
+ }
325
+
326
+ &-right {
327
+ right: auto;
328
+ left: $popup-title-padding;
329
+
330
+ &-top-left {
331
+ left: auto;
332
+ right: $popup-title-padding;
333
+ }
334
+
335
+ &-bottom-left {
336
+ left: auto;
337
+ right: $popup-title-padding;
338
+ }
339
+
340
+ &-bottom-right {
341
+ right: auto;
342
+ left: $popup-title-padding;
343
+ }
344
+ }
345
+
346
+ .nut-icon-ArrowLeft {
347
+ transform: rotate(180deg);
348
+ }
349
+ }
350
+
351
+ &-center {
352
+ left: auto;
353
+ right: 50%;
354
+ transform: translate(50%, -50%);
355
+ }
356
+
357
+ &-bottom {
358
+ left: auto;
359
+ right: 0;
360
+ }
361
+
362
+ &-right {
363
+ right: auto;
364
+ left: 0;
365
+
366
+ &.nut-popup-round {
367
+ border-radius: 0 $popup-border-radius $popup-border-radius 0;
368
+ }
369
+ }
370
+
371
+ &-left {
372
+ left: auto;
373
+ right: 0;
374
+
375
+ &.nut-popup-round {
376
+ border-radius: $popup-border-radius 0 0 $popup-border-radius;
377
+ }
378
+ }
379
+
380
+ &-top {
381
+ left: auto;
382
+ right: 0;
383
+ }
384
+ }
@@ -2,6 +2,7 @@
2
2
  font-size: $font-size-large;
3
3
  display: inline;
4
4
  color: $color-primary;
5
+
5
6
  &-line {
6
7
  div {
7
8
  text-decoration: line-through;
@@ -9,37 +10,55 @@
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
  }
44
55
  }
45
56
  }
57
+
58
+ [dir='rtl'] .nut-price,
59
+ .nut-rtl .nut-price {
60
+ &-symbol {
61
+ padding-right: 0;
62
+ padding-left: $price-symbol-padding-right;
63
+ }
64
+ }
@@ -72,3 +72,10 @@
72
72
  }
73
73
  }
74
74
  }
75
+
76
+ [dir='rtl'] .nut-progress,
77
+ .nut-rtl .nut-progress {
78
+ &-text {
79
+ transform: translate(50%);
80
+ }
81
+ }
@@ -23,3 +23,13 @@
23
23
  }
24
24
  }
25
25
  }
26
+
27
+ [dir='rtl'] .nut-pulltorefresh,
28
+ .nut-rtl .nut-pulltorefresh {
29
+ &-head {
30
+ &-content {
31
+ left: auto;
32
+ right: 0;
33
+ }
34
+ }
35
+ }
@@ -11,6 +11,7 @@
11
11
 
12
12
  &.nut-radio-reverse {
13
13
  flex-direction: row-reverse;
14
+
14
15
  .nut-radio-label {
15
16
  margin-right: $radio-label-margin-left;
16
17
  margin-left: 0;
@@ -77,3 +78,23 @@
77
78
  border: 1px solid $color-text-disabled;
78
79
  }
79
80
  }
81
+
82
+ [dir='rtl'] .nut-radio,
83
+ .nut-rtl .nut-radio {
84
+ &:last-child {
85
+ margin-right: 0 !important;
86
+ margin-left: 0 !important;
87
+ }
88
+
89
+ &.nut-radio-reverse {
90
+ .nut-radio-label {
91
+ margin-left: $radio-label-margin-left;
92
+ margin-right: 0;
93
+ }
94
+ }
95
+
96
+ &-label {
97
+ margin-left: 0;
98
+ margin-right: $radio-label-margin-left;
99
+ }
100
+ }
@@ -90,6 +90,44 @@
90
90
  }
91
91
  }
92
92
 
93
+ [dir='rtl'] .nut-range-container,
94
+ .nut-rtl .nut-range-container {
95
+ &-vertical {
96
+ .nut-range {
97
+ &-button {
98
+ &-wrapper,
99
+ &-wrapper-right {
100
+ right: 50%;
101
+ left: initial;
102
+ transform: translate3d(50%, 50%, 0);
103
+ }
104
+
105
+ &-wrapper-left {
106
+ right: 50%;
107
+ left: initial;
108
+ transform: translate3d(50%, -50%, 0);
109
+ }
110
+ }
111
+
112
+ .number {
113
+ transform: translate3d(-100%, 0, 0);
114
+ }
115
+
116
+ &-mark {
117
+ right: auto;
118
+ left: 50%;
119
+ }
120
+
121
+ &-tick {
122
+ left: auto;
123
+ right: 30px;
124
+ margin-left: 0;
125
+ margin-right: -0px;
126
+ }
127
+ }
128
+ }
129
+ }
130
+
93
131
  .nut-range {
94
132
  display: block;
95
133
  position: relative;
@@ -208,3 +246,30 @@
208
246
  }
209
247
  }
210
248
  }
249
+
250
+ [dir='rtl'] .nut-range,
251
+ .nut-rtl .nut-range {
252
+ &-button {
253
+ &-wrapper,
254
+ &-wrapper-right {
255
+ right: auto;
256
+ left: 0;
257
+ transform: translate3d(-50%, -50%, 0);
258
+ }
259
+
260
+ &-wrapper-left {
261
+ left: auto;
262
+ right: 0;
263
+ transform: translate3d(50%, -50%, 0);
264
+ }
265
+ }
266
+
267
+ &-mark-text {
268
+ transform: translateX(10px);
269
+ }
270
+
271
+ &-tick {
272
+ left: auto;
273
+ right: 0px;
274
+ }
275
+ }
@@ -62,3 +62,33 @@
62
62
  }
63
63
  }
64
64
  }
65
+
66
+ [dir='rtl'] .nut-rate,
67
+ .nut-rtl .nut-rate {
68
+ &-item {
69
+ margin-right: 0;
70
+ margin-left: $rate-item-margin;
71
+
72
+ &:last-child {
73
+ margin-right: 0;
74
+ margin-left: 0;
75
+ }
76
+
77
+ &-half {
78
+ left: auto;
79
+ right: 0;
80
+ }
81
+
82
+ &-icon {
83
+ &.nut-rate-item-icon.nut-rate-item-icon-half {
84
+ left: auto;
85
+ right: 0;
86
+ }
87
+
88
+ &.nut-rate-item-icon::before {
89
+ left: auto;
90
+ right: auto;
91
+ }
92
+ }
93
+ }
94
+ }
@@ -1,11 +1,13 @@
1
1
  .nut-safe-area {
2
2
  display: block;
3
3
  width: 100%;
4
+
4
5
  &-position-top {
5
6
  padding-top: calc(
6
7
  env(safe-area-inset-top) * var(--nutui-safe-area-multiple, 1)
7
8
  );
8
9
  }
10
+
9
11
  &-position-bottom {
10
12
  padding-bottom: calc(
11
13
  env(safe-area-inset-bottom) * var(--nutui-safe-area-multiple, 1)
@@ -36,6 +36,7 @@
36
36
  &-left,
37
37
  &-right {
38
38
  display: flex;
39
+
39
40
  &.nut-icon {
40
41
  width: 20px;
41
42
  height: 20px;
@@ -44,10 +45,12 @@
44
45
 
45
46
  &-left {
46
47
  margin-right: $searchbar-gap;
48
+
47
49
  & > div,
48
50
  & > span,
49
51
  & > svg {
50
52
  margin-right: $searchbar-gap;
53
+
51
54
  &:last-child {
52
55
  margin-right: 0;
53
56
  }
@@ -115,3 +118,65 @@
115
118
  cursor: not-allowed;
116
119
  }
117
120
  }
121
+
122
+ [dir='rtl'] .nut-searchbar,
123
+ .nut-rtl .nut-searchbar {
124
+ &-left {
125
+ margin-right: 0;
126
+ margin-left: $searchbar-gap;
127
+
128
+ & > div,
129
+ & > span,
130
+ & > svg {
131
+ margin-right: 0;
132
+ margin-left: $searchbar-gap;
133
+ &.nut-icon {
134
+ transform: rotate(180deg);
135
+ }
136
+
137
+ &:last-child {
138
+ margin-right: 0;
139
+ margin-left: 0;
140
+ }
141
+ }
142
+ }
143
+
144
+ &-right {
145
+ margin-left: 0;
146
+ margin-right: $searchbar-gap;
147
+
148
+ & > div,
149
+ & > span,
150
+ & > svg {
151
+ margin-left: 0;
152
+ margin-right: $searchbar-gap;
153
+
154
+ &:first-child {
155
+ margin-left: 0;
156
+ margin-right: 0;
157
+ }
158
+ }
159
+ }
160
+
161
+ &-left > text,
162
+ &-left > view {
163
+ margin-right: 0;
164
+ margin-left: $searchbar-gap;
165
+
166
+ &:last-child {
167
+ margin-right: 0;
168
+ margin-left: 0;
169
+ }
170
+ }
171
+
172
+ &-right > text,
173
+ &-right > view {
174
+ margin-left: 0;
175
+ margin-right: $searchbar-gap;
176
+
177
+ &:first-child {
178
+ margin-left: 0;
179
+ margin-right: 0;
180
+ }
181
+ }
182
+ }
@@ -117,3 +117,28 @@
117
117
  }
118
118
  }
119
119
  }
120
+
121
+ [dir='rtl'] .nut-shortpassword,
122
+ .nut-rtl .nut-shortpassword {
123
+ &-input {
124
+ &-real {
125
+ right: auto;
126
+ left: 0;
127
+ }
128
+
129
+ &-fake {
130
+ left: auto;
131
+ right: 0;
132
+ }
133
+ }
134
+
135
+ &-footer {
136
+ &-sure {
137
+ background: linear-gradient(
138
+ -135deg,
139
+ $color-primary 0%,
140
+ $color-primary-stop-2 100%
141
+ );
142
+ }
143
+ }
144
+ }
@@ -73,3 +73,18 @@
73
73
  }
74
74
  }
75
75
  }
76
+
77
+ [dir='rtl'] .nut-sidenavbar,
78
+ .nut-rtl .nut-sidenavbar {
79
+ .arrow-icon {
80
+ right: auto;
81
+ left: 16px;
82
+ }
83
+
84
+ .nut-subsidenavbar-border-bt {
85
+ &:after {
86
+ left: auto;
87
+ right: 0;
88
+ }
89
+ }
90
+ }
@@ -32,6 +32,7 @@
32
32
  height: $skeleton-line-height;
33
33
  background: $skeleton-background;
34
34
  }
35
+
35
36
  .nut-skeleton-block:last-child {
36
37
  width: 70%;
37
38
  }
@@ -51,7 +52,6 @@
51
52
  hsla(0, 0%, 100%, 0.5) 50%,
52
53
  hsla(0, 0%, 100%, 0) 80%
53
54
  );
54
- background-repeat: no-repeat;
55
55
  animation: nut-skeleton 2s ease-in-out 0s infinite;
56
56
  }
57
57
 
@@ -65,3 +65,24 @@
65
65
  }
66
66
  }
67
67
  }
68
+
69
+ [dir='rtl'] .nut-skeleton,
70
+ .nut-rtl .nut-skeleton {
71
+ &-content {
72
+ .avatar {
73
+ margin-right: 0;
74
+ margin-left: 20px;
75
+ }
76
+ }
77
+
78
+ &-animation {
79
+ left: auto;
80
+ right: 0;
81
+ background: linear-gradient(
82
+ -90deg,
83
+ hsla(0, 0%, 100%, 0),
84
+ hsla(0, 0%, 100%, 0.5) 50%,
85
+ hsla(0, 0%, 100%, 0) 80%
86
+ );
87
+ }
88
+ }
@@ -7,8 +7,10 @@
7
7
 
8
8
  &-vertical {
9
9
  flex-direction: column;
10
+
10
11
  > .nut-space-item {
11
12
  margin-bottom: $space-gap;
13
+
12
14
  &:last-child {
13
15
  margin-bottom: 0;
14
16
  }
@@ -17,15 +19,19 @@
17
19
 
18
20
  &-horizontal {
19
21
  flex-direction: row;
22
+
20
23
  > .nut-space-item {
21
24
  margin-right: $space-gap;
25
+
22
26
  &:last-child {
23
27
  margin-right: 0;
24
28
  }
25
29
  }
30
+
26
31
  &.nut-space-wrap {
27
32
  flex-wrap: wrap;
28
33
  margin-bottom: calc(#{$space-gap} * -1);
34
+
29
35
  > .nut-space-item {
30
36
  padding-bottom: $space-gap;
31
37
  }
@@ -36,12 +42,15 @@
36
42
  &-center {
37
43
  align-items: center;
38
44
  }
45
+
39
46
  &-start {
40
47
  align-items: flex-start;
41
48
  }
49
+
42
50
  &-end {
43
51
  align-items: flex-end;
44
52
  }
53
+
45
54
  &-baseline {
46
55
  align-items: baseline;
47
56
  }
@@ -51,23 +60,44 @@
51
60
  &-center {
52
61
  justify-content: center;
53
62
  }
63
+
54
64
  &-start {
55
65
  justify-content: flex-start;
56
66
  }
67
+
57
68
  &-end {
58
69
  justify-content: flex-end;
59
70
  }
71
+
60
72
  &-between {
61
73
  justify-content: space-between;
62
74
  }
75
+
63
76
  &-around {
64
77
  justify-content: space-around;
65
78
  }
79
+
66
80
  &-evenly {
67
81
  justify-content: space-evenly;
68
82
  }
83
+
69
84
  &-stretch {
70
85
  justify-content: stretch;
71
86
  }
72
87
  }
73
88
  }
89
+
90
+ [dir='rtl'] .nut-space,
91
+ .nut-rtl .nut-space {
92
+ &-horizontal {
93
+ > .nut-space-item {
94
+ margin-right: 0;
95
+ margin-left: $space-gap;
96
+
97
+ &:last-child {
98
+ margin-right: 0;
99
+ margin-left: 0;
100
+ }
101
+ }
102
+ }
103
+ }