naive-ui 2.21.2 → 2.22.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 (348) hide show
  1. package/es/_internal/close/src/styles/index.cssr.js +6 -5
  2. package/es/_internal/scrollbar/src/ScrollBar.d.ts +15 -0
  3. package/es/_internal/scrollbar/src/ScrollBar.js +13 -7
  4. package/es/_internal/selection/src/Selection.js +11 -9
  5. package/es/_internal/selection/src/styles/index.cssr.js +6 -2
  6. package/es/alert/src/Alert.d.ts +20 -20
  7. package/es/alert/src/Alert.js +22 -22
  8. package/es/alert/src/styles/index.cssr.js +45 -45
  9. package/es/anchor/src/AnchorAdapter.js +12 -12
  10. package/es/anchor/src/styles/index.cssr.js +41 -41
  11. package/es/avatar/src/Avatar.d.ts +5 -3
  12. package/es/avatar/src/Avatar.js +7 -5
  13. package/es/avatar/src/styles/index.cssr.js +3 -5
  14. package/es/button/src/Button.d.ts +60 -60
  15. package/es/button/src/Button.js +107 -106
  16. package/es/button/src/styles/button.cssr.js +83 -80
  17. package/es/button/styles/dark.js +3 -3
  18. package/es/button/styles/light.d.ts +3 -3
  19. package/es/button/styles/light.js +1 -1
  20. package/es/calendar/src/Calendar.d.ts +37 -30
  21. package/es/calendar/styles/light.d.ts +3 -3
  22. package/es/cascader/src/Cascader.d.ts +135 -0
  23. package/es/cascader/src/Cascader.js +2 -4
  24. package/es/cascader/src/CascaderMenu.d.ts +345 -0
  25. package/es/cascader/src/CascaderMenu.js +6 -5
  26. package/es/cascader/src/CascaderOption.d.ts +18 -0
  27. package/es/cascader/src/CascaderSelectMenu.d.ts +18 -0
  28. package/es/cascader/src/CascaderSubmenu.d.ts +18 -0
  29. package/es/cascader/styles/dark.js +3 -1
  30. package/es/cascader/styles/light.d.ts +13 -0
  31. package/es/cascader/styles/light.js +3 -1
  32. package/es/color-picker/src/ColorInputUnit.d.ts +3 -3
  33. package/es/color-picker/src/ColorPicker.d.ts +27 -27
  34. package/es/color-picker/styles/light.d.ts +3 -3
  35. package/es/config-provider/src/ConfigProvider.d.ts +21 -0
  36. package/es/data-table/src/DataTable.d.ts +30 -30
  37. package/es/data-table/src/DataTable.js +7 -14
  38. package/es/data-table/src/HeaderButton/FilterButton.d.ts +3 -3
  39. package/es/data-table/src/HeaderButton/FilterMenu.d.ts +3 -3
  40. package/es/data-table/src/MainTable.js +2 -3
  41. package/es/data-table/src/TableParts/Body.d.ts +18 -7
  42. package/es/data-table/src/TableParts/Body.js +80 -28
  43. package/es/data-table/src/TableParts/Cell.d.ts +6 -6
  44. package/es/data-table/src/TableParts/Header.d.ts +3 -3
  45. package/es/data-table/src/TableParts/Header.js +1 -1
  46. package/es/data-table/src/interface.d.ts +4 -1
  47. package/es/data-table/src/styles/index.cssr.js +9 -12
  48. package/es/data-table/src/use-check.js +6 -2
  49. package/es/data-table/src/use-scroll.d.ts +2 -0
  50. package/es/data-table/src/use-scroll.js +34 -4
  51. package/es/data-table/src/use-table-data.js +4 -1
  52. package/es/data-table/styles/_common.js +1 -1
  53. package/es/data-table/styles/light.d.ts +3 -3
  54. package/es/date-picker/src/DatePicker.d.ts +94 -69
  55. package/es/date-picker/src/DatePicker.js +47 -20
  56. package/es/date-picker/src/config.d.ts +1 -9
  57. package/es/date-picker/src/config.js +0 -8
  58. package/es/date-picker/src/interface.d.ts +2 -1
  59. package/es/date-picker/src/panel/date.d.ts +23 -10
  60. package/es/date-picker/src/panel/date.js +2 -2
  61. package/es/date-picker/src/panel/daterange.d.ts +21 -9
  62. package/es/date-picker/src/panel/daterange.js +2 -2
  63. package/es/date-picker/src/panel/datetime.d.ts +23 -16
  64. package/es/date-picker/src/panel/datetime.js +2 -2
  65. package/es/date-picker/src/panel/datetimerange.d.ts +21 -9
  66. package/es/date-picker/src/panel/datetimerange.js +2 -2
  67. package/es/date-picker/src/panel/month.d.ts +27 -20
  68. package/es/date-picker/src/panel/month.js +23 -12
  69. package/es/date-picker/src/panel/use-calendar.d.ts +25 -43
  70. package/es/date-picker/src/panel/use-calendar.js +35 -18
  71. package/es/date-picker/src/panel/use-dual-calendar.d.ts +21 -40
  72. package/es/date-picker/src/panel/use-dual-calendar.js +23 -8
  73. package/es/date-picker/src/panel/use-panel-common.d.ts +21 -36
  74. package/es/date-picker/src/panel/use-panel-common.js +2 -2
  75. package/es/date-picker/src/utils.d.ts +19 -3
  76. package/es/date-picker/src/utils.js +40 -5
  77. package/es/date-picker/styles/_common.d.ts +2 -0
  78. package/es/date-picker/styles/_common.js +3 -1
  79. package/es/date-picker/styles/light.d.ts +10 -6
  80. package/es/dialog/src/Dialog.d.ts +21 -21
  81. package/es/dialog/src/styles/index.cssr.js +1 -0
  82. package/es/dialog/styles/light.d.ts +3 -3
  83. package/es/dynamic-input/src/DynamicInput.d.ts +30 -30
  84. package/es/dynamic-input/src/InputPreset.d.ts +3 -3
  85. package/es/dynamic-input/src/PairPreset.d.ts +3 -3
  86. package/es/dynamic-input/styles/light.d.ts +3 -3
  87. package/es/dynamic-tags/src/DynamicTags.d.ts +30 -30
  88. package/es/dynamic-tags/styles/light.d.ts +3 -3
  89. package/es/element/index.d.ts +1 -0
  90. package/es/element/index.js +1 -0
  91. package/es/form/src/interface.d.ts +5 -4
  92. package/es/image/src/Image.d.ts +25 -16
  93. package/es/image/src/Image.js +35 -11
  94. package/es/image/src/ImageGroup.js +2 -2
  95. package/es/image/src/styles/index.cssr.js +4 -3
  96. package/es/input/src/Input.js +2 -0
  97. package/es/input/src/styles/input.cssr.js +2 -1
  98. package/es/input-number/src/InputNumber.d.ts +30 -30
  99. package/es/input-number/src/InputNumber.js +10 -5
  100. package/es/input-number/src/utils.d.ts +1 -0
  101. package/es/input-number/src/utils.js +4 -0
  102. package/es/input-number/styles/light.d.ts +3 -3
  103. package/es/locales/common/deDE.js +8 -0
  104. package/es/locales/common/enUS.d.ts +7 -0
  105. package/es/locales/common/enUS.js +8 -1
  106. package/es/locales/common/frFR.d.ts +3 -0
  107. package/es/locales/common/frFR.js +101 -0
  108. package/es/locales/common/idID.d.ts +2 -93
  109. package/es/locales/common/idID.js +8 -0
  110. package/es/locales/common/jaJP.js +8 -0
  111. package/es/locales/common/nbNO.js +8 -0
  112. package/es/locales/common/ruRU.js +8 -0
  113. package/es/locales/common/ukUA.js +8 -0
  114. package/es/locales/common/zhCN.js +7 -0
  115. package/es/locales/common/zhTW.d.ts +3 -0
  116. package/es/locales/common/zhTW.js +100 -0
  117. package/es/locales/date/frFR.d.ts +3 -0
  118. package/es/locales/date/frFR.js +6 -0
  119. package/es/locales/date/idID.d.ts +1 -6
  120. package/es/locales/date/zhTW.d.ts +3 -0
  121. package/es/locales/date/zhTW.js +6 -0
  122. package/es/locales/index.d.ts +4 -0
  123. package/es/locales/index.js +4 -0
  124. package/es/modal/src/BodyWrapper.d.ts +6 -6
  125. package/es/modal/src/Modal.d.ts +36 -36
  126. package/es/modal/styles/light.d.ts +3 -3
  127. package/es/page-header/src/PageHeader.js +3 -3
  128. package/es/page-header/src/styles/index.cssr.js +2 -4
  129. package/es/popconfirm/src/Popconfirm.d.ts +30 -30
  130. package/es/popconfirm/styles/light.d.ts +3 -3
  131. package/es/popover/src/Popover.js +4 -1
  132. package/es/popover/src/PopoverBody.js +3 -3
  133. package/es/popselect/src/Popselect.d.ts +2 -11
  134. package/es/popselect/src/Popselect.js +2 -2
  135. package/es/popselect/src/PopselectPanel.d.ts +3 -11
  136. package/es/popselect/src/PopselectPanel.js +17 -11
  137. package/es/radio/src/Radio.js +3 -3
  138. package/es/radio/src/RadioButton.js +4 -5
  139. package/es/radio/src/styles/radio-group.cssr.js +8 -4
  140. package/es/radio/src/styles/radio.cssr.js +8 -4
  141. package/es/radio/src/use-radio.d.ts +0 -3
  142. package/es/radio/src/use-radio.js +1 -26
  143. package/es/switch/src/Switch.d.ts +16 -1
  144. package/es/switch/src/Switch.js +17 -4
  145. package/es/switch/src/styles/index.cssr.js +1 -1
  146. package/es/tabs/src/styles/index.cssr.js +1 -0
  147. package/es/tag/src/styles/index.cssr.js +1 -1
  148. package/es/theme-editor/src/ThemeEditor.js +9 -2
  149. package/es/time-picker/src/Panel.d.ts +3 -3
  150. package/es/time-picker/src/TimePicker.d.ts +30 -30
  151. package/es/time-picker/styles/light.d.ts +3 -3
  152. package/es/transfer/src/Transfer.d.ts +30 -30
  153. package/es/transfer/src/TransferFilter.d.ts +3 -3
  154. package/es/transfer/src/TransferList.d.ts +3 -3
  155. package/es/transfer/src/TransferListItem.d.ts +3 -3
  156. package/es/transfer/styles/light.d.ts +3 -3
  157. package/es/tree/src/Tree.d.ts +8 -4
  158. package/es/tree/src/Tree.js +32 -6
  159. package/es/tree-select/src/TreeSelect.d.ts +38 -1
  160. package/es/tree-select/src/TreeSelect.js +25 -10
  161. package/es/tree-select/src/styles/index.cssr.js +11 -2
  162. package/es/tree-select/styles/light.d.ts +6 -0
  163. package/es/tree-select/styles/light.js +5 -2
  164. package/es/upload/src/Upload.d.ts +41 -30
  165. package/es/upload/src/Upload.js +33 -23
  166. package/es/upload/src/UploadFile.d.ts +4 -4
  167. package/es/upload/src/UploadFileList.js +4 -2
  168. package/es/upload/src/UploadProgress.d.ts +3 -3
  169. package/es/upload/src/interface.d.ts +1 -0
  170. package/es/upload/src/styles/index.cssr.js +2 -3
  171. package/es/upload/styles/light.d.ts +3 -3
  172. package/es/version.d.ts +1 -1
  173. package/es/version.js +1 -1
  174. package/lib/_internal/close/src/styles/index.cssr.js +6 -5
  175. package/lib/_internal/scrollbar/src/ScrollBar.d.ts +15 -0
  176. package/lib/_internal/scrollbar/src/ScrollBar.js +13 -7
  177. package/lib/_internal/selection/src/Selection.js +11 -9
  178. package/lib/_internal/selection/src/styles/index.cssr.js +6 -2
  179. package/lib/alert/src/Alert.d.ts +20 -20
  180. package/lib/alert/src/Alert.js +22 -22
  181. package/lib/alert/src/styles/index.cssr.js +45 -45
  182. package/lib/anchor/src/AnchorAdapter.js +12 -12
  183. package/lib/anchor/src/styles/index.cssr.js +41 -41
  184. package/lib/avatar/src/Avatar.d.ts +5 -3
  185. package/lib/avatar/src/Avatar.js +7 -5
  186. package/lib/avatar/src/styles/index.cssr.js +3 -5
  187. package/lib/button/src/Button.d.ts +60 -60
  188. package/lib/button/src/Button.js +107 -106
  189. package/lib/button/src/styles/button.cssr.js +83 -80
  190. package/lib/button/styles/dark.js +3 -3
  191. package/lib/button/styles/light.d.ts +3 -3
  192. package/lib/button/styles/light.js +1 -1
  193. package/lib/calendar/src/Calendar.d.ts +37 -30
  194. package/lib/calendar/styles/light.d.ts +3 -3
  195. package/lib/cascader/src/Cascader.d.ts +135 -0
  196. package/lib/cascader/src/Cascader.js +2 -4
  197. package/lib/cascader/src/CascaderMenu.d.ts +345 -0
  198. package/lib/cascader/src/CascaderMenu.js +6 -5
  199. package/lib/cascader/src/CascaderOption.d.ts +18 -0
  200. package/lib/cascader/src/CascaderSelectMenu.d.ts +18 -0
  201. package/lib/cascader/src/CascaderSubmenu.d.ts +18 -0
  202. package/lib/cascader/styles/dark.js +3 -1
  203. package/lib/cascader/styles/light.d.ts +13 -0
  204. package/lib/cascader/styles/light.js +3 -1
  205. package/lib/color-picker/src/ColorInputUnit.d.ts +3 -3
  206. package/lib/color-picker/src/ColorPicker.d.ts +27 -27
  207. package/lib/color-picker/styles/light.d.ts +3 -3
  208. package/lib/config-provider/src/ConfigProvider.d.ts +21 -0
  209. package/lib/data-table/src/DataTable.d.ts +30 -30
  210. package/lib/data-table/src/DataTable.js +6 -13
  211. package/lib/data-table/src/HeaderButton/FilterButton.d.ts +3 -3
  212. package/lib/data-table/src/HeaderButton/FilterMenu.d.ts +3 -3
  213. package/lib/data-table/src/MainTable.js +1 -2
  214. package/lib/data-table/src/TableParts/Body.d.ts +18 -7
  215. package/lib/data-table/src/TableParts/Body.js +78 -26
  216. package/lib/data-table/src/TableParts/Cell.d.ts +6 -6
  217. package/lib/data-table/src/TableParts/Header.d.ts +3 -3
  218. package/lib/data-table/src/TableParts/Header.js +1 -1
  219. package/lib/data-table/src/interface.d.ts +4 -1
  220. package/lib/data-table/src/styles/index.cssr.js +9 -12
  221. package/lib/data-table/src/use-check.js +6 -2
  222. package/lib/data-table/src/use-scroll.d.ts +2 -0
  223. package/lib/data-table/src/use-scroll.js +34 -4
  224. package/lib/data-table/src/use-table-data.js +4 -1
  225. package/lib/data-table/styles/_common.js +1 -1
  226. package/lib/data-table/styles/light.d.ts +3 -3
  227. package/lib/date-picker/src/DatePicker.d.ts +94 -69
  228. package/lib/date-picker/src/DatePicker.js +46 -19
  229. package/lib/date-picker/src/config.d.ts +1 -9
  230. package/lib/date-picker/src/config.js +1 -9
  231. package/lib/date-picker/src/interface.d.ts +2 -1
  232. package/lib/date-picker/src/panel/date.d.ts +23 -10
  233. package/lib/date-picker/src/panel/date.js +1 -1
  234. package/lib/date-picker/src/panel/daterange.d.ts +21 -9
  235. package/lib/date-picker/src/panel/daterange.js +1 -1
  236. package/lib/date-picker/src/panel/datetime.d.ts +23 -16
  237. package/lib/date-picker/src/panel/datetime.js +1 -1
  238. package/lib/date-picker/src/panel/datetimerange.d.ts +21 -9
  239. package/lib/date-picker/src/panel/datetimerange.js +2 -2
  240. package/lib/date-picker/src/panel/month.d.ts +27 -20
  241. package/lib/date-picker/src/panel/month.js +23 -12
  242. package/lib/date-picker/src/panel/use-calendar.d.ts +25 -43
  243. package/lib/date-picker/src/panel/use-calendar.js +34 -16
  244. package/lib/date-picker/src/panel/use-dual-calendar.d.ts +21 -40
  245. package/lib/date-picker/src/panel/use-dual-calendar.js +22 -6
  246. package/lib/date-picker/src/panel/use-panel-common.d.ts +21 -36
  247. package/lib/date-picker/src/panel/use-panel-common.js +3 -2
  248. package/lib/date-picker/src/utils.d.ts +19 -3
  249. package/lib/date-picker/src/utils.js +41 -4
  250. package/lib/date-picker/styles/_common.d.ts +2 -0
  251. package/lib/date-picker/styles/_common.js +3 -1
  252. package/lib/date-picker/styles/light.d.ts +10 -6
  253. package/lib/dialog/src/Dialog.d.ts +21 -21
  254. package/lib/dialog/src/styles/index.cssr.js +1 -0
  255. package/lib/dialog/styles/light.d.ts +3 -3
  256. package/lib/dynamic-input/src/DynamicInput.d.ts +30 -30
  257. package/lib/dynamic-input/src/InputPreset.d.ts +3 -3
  258. package/lib/dynamic-input/src/PairPreset.d.ts +3 -3
  259. package/lib/dynamic-input/styles/light.d.ts +3 -3
  260. package/lib/dynamic-tags/src/DynamicTags.d.ts +30 -30
  261. package/lib/dynamic-tags/styles/light.d.ts +3 -3
  262. package/lib/element/index.d.ts +1 -0
  263. package/lib/element/index.js +3 -1
  264. package/lib/form/src/interface.d.ts +5 -4
  265. package/lib/image/src/Image.d.ts +25 -16
  266. package/lib/image/src/Image.js +34 -10
  267. package/lib/image/src/ImageGroup.js +2 -2
  268. package/lib/image/src/styles/index.cssr.js +3 -2
  269. package/lib/input/src/Input.js +2 -0
  270. package/lib/input/src/styles/input.cssr.js +2 -1
  271. package/lib/input-number/src/InputNumber.d.ts +30 -30
  272. package/lib/input-number/src/InputNumber.js +9 -4
  273. package/lib/input-number/src/utils.d.ts +1 -0
  274. package/lib/input-number/src/utils.js +6 -1
  275. package/lib/input-number/styles/light.d.ts +3 -3
  276. package/lib/locales/common/deDE.js +8 -0
  277. package/lib/locales/common/enUS.d.ts +7 -0
  278. package/lib/locales/common/enUS.js +8 -1
  279. package/lib/locales/common/frFR.d.ts +3 -0
  280. package/lib/locales/common/frFR.js +103 -0
  281. package/lib/locales/common/idID.d.ts +2 -93
  282. package/lib/locales/common/idID.js +8 -0
  283. package/lib/locales/common/jaJP.js +8 -0
  284. package/lib/locales/common/nbNO.js +8 -0
  285. package/lib/locales/common/ruRU.js +8 -0
  286. package/lib/locales/common/ukUA.js +8 -0
  287. package/lib/locales/common/zhCN.js +7 -0
  288. package/lib/locales/common/zhTW.d.ts +3 -0
  289. package/lib/locales/common/zhTW.js +102 -0
  290. package/lib/locales/date/frFR.d.ts +3 -0
  291. package/lib/locales/date/frFR.js +11 -0
  292. package/lib/locales/date/idID.d.ts +1 -6
  293. package/lib/locales/date/zhTW.d.ts +3 -0
  294. package/lib/locales/date/zhTW.js +11 -0
  295. package/lib/locales/index.d.ts +4 -0
  296. package/lib/locales/index.js +9 -1
  297. package/lib/modal/src/BodyWrapper.d.ts +6 -6
  298. package/lib/modal/src/Modal.d.ts +36 -36
  299. package/lib/modal/styles/light.d.ts +3 -3
  300. package/lib/page-header/src/PageHeader.js +3 -3
  301. package/lib/page-header/src/styles/index.cssr.js +2 -4
  302. package/lib/popconfirm/src/Popconfirm.d.ts +30 -30
  303. package/lib/popconfirm/styles/light.d.ts +3 -3
  304. package/lib/popover/src/Popover.js +4 -1
  305. package/lib/popover/src/PopoverBody.js +3 -3
  306. package/lib/popselect/src/Popselect.d.ts +2 -11
  307. package/lib/popselect/src/Popselect.js +2 -2
  308. package/lib/popselect/src/PopselectPanel.d.ts +3 -11
  309. package/lib/popselect/src/PopselectPanel.js +16 -10
  310. package/lib/radio/src/Radio.js +3 -3
  311. package/lib/radio/src/RadioButton.js +4 -5
  312. package/lib/radio/src/styles/radio-group.cssr.js +8 -4
  313. package/lib/radio/src/styles/radio.cssr.js +8 -4
  314. package/lib/radio/src/use-radio.d.ts +0 -3
  315. package/lib/radio/src/use-radio.js +1 -26
  316. package/lib/switch/src/Switch.d.ts +16 -1
  317. package/lib/switch/src/Switch.js +17 -4
  318. package/lib/switch/src/styles/index.cssr.js +1 -1
  319. package/lib/tabs/src/styles/index.cssr.js +1 -0
  320. package/lib/tag/src/styles/index.cssr.js +1 -1
  321. package/lib/theme-editor/src/ThemeEditor.js +9 -2
  322. package/lib/time-picker/src/Panel.d.ts +3 -3
  323. package/lib/time-picker/src/TimePicker.d.ts +30 -30
  324. package/lib/time-picker/styles/light.d.ts +3 -3
  325. package/lib/transfer/src/Transfer.d.ts +30 -30
  326. package/lib/transfer/src/TransferFilter.d.ts +3 -3
  327. package/lib/transfer/src/TransferList.d.ts +3 -3
  328. package/lib/transfer/src/TransferListItem.d.ts +3 -3
  329. package/lib/transfer/styles/light.d.ts +3 -3
  330. package/lib/tree/src/Tree.d.ts +8 -4
  331. package/lib/tree/src/Tree.js +32 -6
  332. package/lib/tree-select/src/TreeSelect.d.ts +38 -1
  333. package/lib/tree-select/src/TreeSelect.js +24 -9
  334. package/lib/tree-select/src/styles/index.cssr.js +11 -2
  335. package/lib/tree-select/styles/light.d.ts +6 -0
  336. package/lib/tree-select/styles/light.js +5 -2
  337. package/lib/upload/src/Upload.d.ts +41 -30
  338. package/lib/upload/src/Upload.js +33 -23
  339. package/lib/upload/src/UploadFile.d.ts +4 -4
  340. package/lib/upload/src/UploadFileList.js +4 -2
  341. package/lib/upload/src/UploadProgress.d.ts +3 -3
  342. package/lib/upload/src/interface.d.ts +1 -0
  343. package/lib/upload/src/styles/index.cssr.js +2 -3
  344. package/lib/upload/styles/light.d.ts +3 -3
  345. package/lib/version.d.ts +1 -1
  346. package/lib/version.js +1 -1
  347. package/package.json +5 -4
  348. package/web-types.json +99 -7
@@ -12,7 +12,7 @@ export default defineComponent({
12
12
  if (!NUpload) {
13
13
  throwError('upload-file-list', '`n-upload-file-list` must be placed inside `n-upload`.');
14
14
  }
15
- const { mergedClsPrefixRef, listTypeRef, mergedFileListRef, fileListStyleRef, cssVarsRef } = NUpload;
15
+ const { mergedClsPrefixRef, listTypeRef, mergedFileListRef, fileListStyleRef, cssVarsRef, maxReachedRef, showTriggerRef } = NUpload;
16
16
  const isImageCardTypeRef = computed(() => listTypeRef.value === 'image-card');
17
17
  const renderFileList = () => mergedFileListRef.value.map((file) => (h(NUploadFile, { clsPrefix: mergedClsPrefixRef.value, key: file.id, file: file, listType: listTypeRef.value })));
18
18
  const renderUploadFileList = () => isImageCardTypeRef.value ? (h(NImageGroup, null, { default: renderFileList })) : (h(NFadeInExpandTransition, { group: true }, {
@@ -26,7 +26,9 @@ export default defineComponent({
26
26
  `${mergedClsPrefix}-upload-file-list--grid`
27
27
  ], style: [cssVarsRef.value, fileListStyleRef.value] },
28
28
  renderUploadFileList(),
29
- isImageCardTypeRef.value && h(NUploadTrigger, null, slots)));
29
+ showTriggerRef.value &&
30
+ !maxReachedRef.value &&
31
+ isImageCardTypeRef.value && (h(NUploadTrigger, null, slots))));
30
32
  };
31
33
  }
32
34
  });
@@ -146,9 +146,9 @@ declare const _default: import("vue").DefineComponent<{
146
146
  fontSizeMedium: string;
147
147
  fontSizeLarge: string;
148
148
  opacityDisabled: string;
149
- colorOpacitySecondary: number;
150
- colorOpacitySecondaryHover: number;
151
- colorOpacitySecondaryPressed: number;
149
+ colorOpacitySecondary: string;
150
+ colorOpacitySecondaryHover: string;
151
+ colorOpacitySecondaryPressed: string;
152
152
  colorSecondary: string;
153
153
  colorSecondaryHover: string;
154
154
  colorSecondaryPressed: string;
@@ -45,6 +45,7 @@ export interface UploadInjection {
45
45
  showRemoveButtonRef: Ref<boolean>;
46
46
  showDownloadButtonRef: Ref<boolean>;
47
47
  showRetryButtonRef: Ref<boolean>;
48
+ showTriggerRef: Ref<boolean>;
48
49
  mergedFileListRef: Ref<FileInfo[]>;
49
50
  onRemoveRef: Ref<OnRemove | undefined>;
50
51
  onDownloadRef: Ref<OnDownload | undefined>;
@@ -1,7 +1,7 @@
1
1
  import { c, cM, cB, cE } from '../../../_utils/cssr';
2
2
  import fadeInHeightExpand from '../../../_styles/transitions/fade-in-height-expand.cssr';
3
3
  import createIconSwitchTransition from '../../../_styles/transitions/icon-switch.cssr';
4
- export default c([cB('upload', [cM('dragger-inside', [cE('trigger', `
4
+ export default c([cB('upload', 'width: 100%;', [cM('dragger-inside', [cE('trigger', `
5
5
  display: block;
6
6
  `)]), cM('drag-over', [cB('upload-dragger', `
7
7
  border: var(--dragger-border-hover);
@@ -29,7 +29,7 @@ export default c([cB('upload', [cM('dragger-inside', [cE('trigger', `
29
29
  box-sizing: border-box;
30
30
  opacity: 1;
31
31
  transition: opacity .3s var(--bezier);
32
- `, [cM('disabled', `
32
+ `, [c('+', [cB('upload-file-list', 'margin-top: 8px;')]), cM('disabled', `
33
33
  opacity: var(--item-disabled-opacity);
34
34
  cursor: not-allowed;
35
35
  `), cM('image-card', `
@@ -45,7 +45,6 @@ export default c([cB('upload', [cM('dragger-inside', [cE('trigger', `
45
45
  align-items: center;
46
46
  justify-content: center;
47
47
  `)])]), cB('upload-file-list', `
48
- margin-top: 8px;
49
48
  line-height: var(--line-height);
50
49
  opacity: 1;
51
50
  transition: opacity .3s var(--bezier);
@@ -48,9 +48,9 @@ declare const uploadLight: import("../../_mixins").Theme<"Upload", {
48
48
  fontSizeMedium: string;
49
49
  fontSizeLarge: string;
50
50
  opacityDisabled: string;
51
- colorOpacitySecondary: number;
52
- colorOpacitySecondaryHover: number;
53
- colorOpacitySecondaryPressed: number;
51
+ colorOpacitySecondary: string;
52
+ colorOpacitySecondaryHover: string;
53
+ colorOpacitySecondaryPressed: string;
54
54
  colorSecondary: string;
55
55
  colorSecondaryHover: string;
56
56
  colorSecondaryPressed: string;
package/es/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- declare const _default: "2.21.2";
1
+ declare const _default: "2.22.0";
2
2
  export default _default;
package/es/version.js CHANGED
@@ -1 +1 @@
1
- export default '2.21.2';
1
+ export default '2.22.0';
@@ -4,7 +4,8 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
 
7
- const cssr_1 = require("../../../../_utils/cssr"); // vars:
7
+ const cssr_1 = require("../../../../_utils/cssr"); // Note: non-prefixed color should be removed after css vars prefix migration
8
+ // vars:
8
9
  // --close-color
9
10
  // --close-color-hover
10
11
  // --close-color-pressed
@@ -13,12 +14,12 @@ const cssr_1 = require("../../../../_utils/cssr"); // vars:
13
14
 
14
15
  exports.default = (0, cssr_1.cB)('base-close', `
15
16
  cursor: pointer;
16
- color: var(--close-color);
17
+ color: var(--close-color, var(--n-close-color));
17
18
  `, [(0, cssr_1.c)('&:hover', {
18
- color: 'var(--close-color-hover)'
19
+ color: 'var(--close-color-hover, var(--n-close-color))'
19
20
  }), (0, cssr_1.c)('&:active', {
20
- color: 'var(--close-color-pressed)'
21
+ color: 'var(--close-color-pressed, var(--n-close-color-pressed))'
21
22
  }), (0, cssr_1.cM)('disabled', {
22
23
  cursor: 'not-allowed!important',
23
- color: 'var(--close-color-disabled)'
24
+ color: 'var(--close-color-disabled, var(--n-close-color-disabled))'
24
25
  })]);
@@ -49,8 +49,13 @@ declare const scrollbarProps: {
49
49
  readonly type: BooleanConstructor;
50
50
  readonly default: false;
51
51
  };
52
+ readonly showScrollbar: {
53
+ readonly type: BooleanConstructor;
54
+ readonly default: true;
55
+ };
52
56
  readonly container: PropType<() => HTMLElement | null | undefined>;
53
57
  readonly content: PropType<() => HTMLElement | null | undefined>;
58
+ readonly containerClass: StringConstructor;
54
59
  readonly containerStyle: PropType<string | CSSProperties>;
55
60
  readonly contentClass: StringConstructor;
56
61
  readonly contentStyle: PropType<string | CSSProperties>;
@@ -92,8 +97,13 @@ declare const Scrollbar: import("vue").DefineComponent<{
92
97
  readonly type: BooleanConstructor;
93
98
  readonly default: false;
94
99
  };
100
+ readonly showScrollbar: {
101
+ readonly type: BooleanConstructor;
102
+ readonly default: true;
103
+ };
95
104
  readonly container: PropType<() => HTMLElement | null | undefined>;
96
105
  readonly content: PropType<() => HTMLElement | null | undefined>;
106
+ readonly containerClass: StringConstructor;
97
107
  readonly containerStyle: PropType<string | CSSProperties>;
98
108
  readonly contentClass: StringConstructor;
99
109
  readonly contentStyle: PropType<string | CSSProperties>;
@@ -154,8 +164,10 @@ declare const Scrollbar: import("vue").DefineComponent<{
154
164
  readonly duration?: unknown;
155
165
  readonly scrollable?: unknown;
156
166
  readonly xScrollable?: unknown;
167
+ readonly showScrollbar?: unknown;
157
168
  readonly container?: unknown;
158
169
  readonly content?: unknown;
170
+ readonly containerClass?: unknown;
159
171
  readonly containerStyle?: unknown;
160
172
  readonly contentClass?: unknown;
161
173
  readonly contentStyle?: unknown;
@@ -171,6 +183,7 @@ declare const Scrollbar: import("vue").DefineComponent<{
171
183
  } & {
172
184
  size: number;
173
185
  duration: number;
186
+ showScrollbar: boolean;
174
187
  scrollable: boolean;
175
188
  xScrollable: boolean;
176
189
  } & {
@@ -189,6 +202,7 @@ declare const Scrollbar: import("vue").DefineComponent<{
189
202
  color: string;
190
203
  colorHover: string;
191
204
  }, any>> | undefined;
205
+ containerClass?: string | undefined;
192
206
  onResize?: ((e: ResizeObserverEntry) => void) | undefined;
193
207
  container?: (() => HTMLElement | null | undefined) | undefined;
194
208
  containerStyle?: string | CSSProperties | undefined;
@@ -200,6 +214,7 @@ declare const Scrollbar: import("vue").DefineComponent<{
200
214
  }>, {
201
215
  size: number;
202
216
  duration: number;
217
+ showScrollbar: boolean;
203
218
  scrollable: boolean;
204
219
  xScrollable: boolean;
205
220
  }>;
@@ -23,9 +23,12 @@ const scrollbarProps = Object.assign(Object.assign({}, _mixins_1.useTheme.props)
23
23
  }, xScrollable: {
24
24
  type: Boolean,
25
25
  default: false
26
+ }, showScrollbar: {
27
+ type: Boolean,
28
+ default: true
26
29
  },
27
30
  // If container is set, resize observer won't not attached
28
- container: Function, content: Function, containerStyle: [String, Object], contentClass: String, contentStyle: [String, Object], horizontalRailStyle: [String, Object], verticalRailStyle: [String, Object], onScroll: Function, onWheel: Function, onResize: Function, internalOnUpdateScrollLeft: Function });
31
+ container: Function, content: Function, containerClass: String, containerStyle: [String, Object], contentClass: String, contentStyle: [String, Object], horizontalRailStyle: [String, Object], verticalRailStyle: [String, Object], onScroll: Function, onWheel: Function, onResize: Function, internalOnUpdateScrollLeft: Function });
29
32
  const Scrollbar = (0, vue_1.defineComponent)({
30
33
  name: 'Scrollbar',
31
34
  props: scrollbarProps,
@@ -476,7 +479,7 @@ const Scrollbar = (0, vue_1.defineComponent)({
476
479
  };
477
480
  },
478
481
  render() {
479
- const { $slots, mergedClsPrefix } = this;
482
+ const { $slots, mergedClsPrefix, showScrollbar } = this;
480
483
  if (!this.scrollable)
481
484
  return (0, vue_1.renderSlot)($slots, 'default');
482
485
  const createChildren = () => (0, vue_1.h)('div', (0, vue_1.mergeProps)(this.$attrs, {
@@ -486,7 +489,10 @@ const Scrollbar = (0, vue_1.defineComponent)({
486
489
  onMouseenter: this.handleMouseEnterWrapper,
487
490
  onMouseleave: this.handleMouseLeaveWrapper
488
491
  }), [
489
- this.container ? ((0, vue_1.renderSlot)($slots, 'default')) : ((0, vue_1.h)("div", { ref: "containerRef", class: `${mergedClsPrefix}-scrollbar-container`, style: this.containerStyle, onScroll: this.handleScroll, onWheel: this.onWheel },
492
+ this.container ? ((0, vue_1.renderSlot)($slots, 'default')) : ((0, vue_1.h)("div", { ref: "containerRef", class: [
493
+ `${mergedClsPrefix}-scrollbar-container`,
494
+ this.containerClass
495
+ ], style: this.containerStyle, onScroll: this.handleScroll, onWheel: this.onWheel },
490
496
  (0, vue_1.h)(vueuc_1.VResizeObserver, { onResize: this.handleContentResize }, {
491
497
  default: () => ((0, vue_1.h)("div", { ref: "contentRef", style: [
492
498
  {
@@ -498,20 +504,20 @@ const Scrollbar = (0, vue_1.defineComponent)({
498
504
  this.contentClass
499
505
  ] }, $slots))
500
506
  }))),
501
- (0, vue_1.h)("div", { ref: "yRailRef", class: `${mergedClsPrefix}-scrollbar-rail ${mergedClsPrefix}-scrollbar-rail--vertical`, style: [this.horizontalRailStyle] },
507
+ showScrollbar && ((0, vue_1.h)("div", { ref: "yRailRef", class: `${mergedClsPrefix}-scrollbar-rail ${mergedClsPrefix}-scrollbar-rail--vertical`, style: [this.horizontalRailStyle] },
502
508
  (0, vue_1.h)(vue_1.Transition, { name: "fade-in-transition" }, {
503
509
  default: () => this.needYBar && this.isShowYBar && !this.isIos ? ((0, vue_1.h)("div", { class: `${mergedClsPrefix}-scrollbar-rail__scrollbar`, style: {
504
510
  height: this.yBarSizePx,
505
511
  top: this.yBarTopPx
506
512
  }, onMousedown: this.handleYScrollMouseDown })) : null
507
- })),
508
- (0, vue_1.h)("div", { ref: "xRailRef", class: `${mergedClsPrefix}-scrollbar-rail ${mergedClsPrefix}-scrollbar-rail--horizontal`, style: [this.verticalRailStyle] },
513
+ }))),
514
+ showScrollbar && ((0, vue_1.h)("div", { ref: "xRailRef", class: `${mergedClsPrefix}-scrollbar-rail ${mergedClsPrefix}-scrollbar-rail--horizontal`, style: [this.verticalRailStyle] },
509
515
  (0, vue_1.h)(vue_1.Transition, { name: "fade-in-transition" }, {
510
516
  default: () => this.needXBar && this.isShowXBar && !this.isIos ? ((0, vue_1.h)("div", { class: `${mergedClsPrefix}-scrollbar-rail__scrollbar`, style: {
511
517
  width: this.xBarSizePx,
512
518
  left: this.xBarLeftPx
513
519
  }, onMousedown: this.handleXScrollMouseDown })) : null
514
- }))
520
+ })))
515
521
  ]);
516
522
  return this.container ? (createChildren()) : ((0, vue_1.h)(vueuc_1.VResizeObserver, { onResize: this.handleContainerResize }, {
517
523
  default: createChildren
@@ -496,15 +496,17 @@ exports.default = (0, vue_1.defineComponent)({
496
496
  body = ((0, vue_1.h)("div", { ref: "patternInputWrapperRef", class: `${clsPrefix}-base-selection-label` },
497
497
  (0, vue_1.h)("input", Object.assign({}, this.inputProps, { ref: "patternInputRef", class: `${clsPrefix}-base-selection-input`, value: this.patternInputFocused && this.active ? this.pattern : '', placeholder: "", readonly: disabled, disabled: disabled, tabindex: -1, autofocus: this.autofocus, onFocus: this.handlePatternInputFocus, onBlur: this.handlePatternInputBlur, onInput: this.handlePatternInputInput, onCompositionstart: this.handleCompositionStart, onCompositionend: this.handleCompositionEnd })),
498
498
  showPlaceholder ? null : this.patternInputFocused &&
499
- this.active ? null : ((0, vue_1.h)("div", { class: `${clsPrefix}-base-selection-label__render-label ${clsPrefix}-base-selection-overlay`, key: "input" }, renderTag
500
- ? renderTag({
501
- option: this.selectedOption,
502
- handleClose: () => { }
503
- })
504
- : renderLabel
505
- ? renderLabel(this.selectedOption, true)
506
- : (0, _utils_1.render)(this.label, this.selectedOption, true))),
507
- showPlaceholder ? ((0, vue_1.h)("div", { class: `${clsPrefix}-base-selection-placeholder ${clsPrefix}-base-selection-overlay`, key: "placeholder" }, this.filterablePlaceholder)) : null,
499
+ this.active ? null : ((0, vue_1.h)("div", { class: `${clsPrefix}-base-selection-label__render-label ${clsPrefix}-base-selection-overlay`, key: "input" },
500
+ (0, vue_1.h)("div", { class: `${clsPrefix}-base-selection-overlay__wrapper` }, renderTag
501
+ ? renderTag({
502
+ option: this.selectedOption,
503
+ handleClose: () => { }
504
+ })
505
+ : renderLabel
506
+ ? renderLabel(this.selectedOption, true)
507
+ : (0, _utils_1.render)(this.label, this.selectedOption, true)))),
508
+ showPlaceholder ? ((0, vue_1.h)("div", { class: `${clsPrefix}-base-selection-placeholder ${clsPrefix}-base-selection-overlay`, key: "placeholder" },
509
+ (0, vue_1.h)("div", { class: `${clsPrefix}-base-selection-overlay__wrapper` }, this.filterablePlaceholder))) : null,
508
510
  suffix));
509
511
  }
510
512
  else {
@@ -77,7 +77,6 @@ exports.default = (0, cssr_1.c)([(0, cssr_1.cB)('base-selection', `
77
77
  display: flex;
78
78
  align-items: center;
79
79
  white-space: nowrap;
80
- overflow: hidden;
81
80
  pointer-events: none;
82
81
  position: absolute;
83
82
  top: 0;
@@ -86,7 +85,12 @@ exports.default = (0, cssr_1.c)([(0, cssr_1.cB)('base-selection', `
86
85
  left: 0;
87
86
  padding: var(--padding-single);
88
87
  transition: color .3s var(--bezier);
89
- `), (0, cssr_1.cB)('base-selection-placeholder', `
88
+ `, [(0, cssr_1.cE)('wrapper', `
89
+ flex-basis: 0;
90
+ flex-grow: 1;
91
+ overflow: hidden;
92
+ text-overflow: ellipsis;
93
+ `)]), (0, cssr_1.cB)('base-selection-placeholder', `
90
94
  color: var(--placeholder-color);
91
95
  `), (0, cssr_1.cB)('base-selection-tags', `
92
96
  cursor: pointer;
@@ -528,26 +528,26 @@ declare const _default: import("vue").DefineComponent<{
528
528
  };
529
529
  }>;
530
530
  cssVars: import("vue").ComputedRef<{
531
- '--bezier': string;
532
- '--color': string;
533
- '--close-color': string;
534
- '--close-color-hover': string;
535
- '--close-color-pressed': string;
536
- '--icon-color': string;
537
- '--border': string;
538
- '--title-text-color': string;
539
- '--content-text-color': string;
540
- '--line-height': string;
541
- '--border-radius': string;
542
- '--font-size': string;
543
- '--title-font-weight': string;
544
- '--icon-size': string;
545
- '--icon-margin': string;
546
- '--close-size': string;
547
- '--close-margin': string;
548
- '--padding': string;
549
- '--icon-margin-left': string;
550
- '--icon-margin-right': string;
531
+ '--n-bezier': string;
532
+ '--n-color': string;
533
+ '--n-close-color': string;
534
+ '--n-close-color-hover': string;
535
+ '--n-close-color-pressed': string;
536
+ '--n-icon-color': string;
537
+ '--n-border': string;
538
+ '--n-title-text-color': string;
539
+ '--n-content-text-color': string;
540
+ '--n-line-height': string;
541
+ '--n-border-radius': string;
542
+ '--n-font-size': string;
543
+ '--n-title-font-weight': string;
544
+ '--n-icon-size': string;
545
+ '--n-icon-margin': string;
546
+ '--n-close-size': string;
547
+ '--n-close-margin': string;
548
+ '--n-padding': string;
549
+ '--n-icon-margin-left': string;
550
+ '--n-icon-margin-right': string;
551
551
  }>;
552
552
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
553
553
  title?: unknown;
@@ -49,26 +49,26 @@ exports.default = (0, vue_1.defineComponent)({
49
49
  const { type } = props;
50
50
  const { left, right } = (0, seemly_1.getMargin)(iconMargin);
51
51
  return {
52
- '--bezier': cubicBezierEaseInOut,
53
- '--color': self[(0, _utils_1.createKey)('color', type)],
54
- '--close-color': self[(0, _utils_1.createKey)('closeColor', type)],
55
- '--close-color-hover': self[(0, _utils_1.createKey)('closeColorHover', type)],
56
- '--close-color-pressed': self[(0, _utils_1.createKey)('closeColorPressed', type)],
57
- '--icon-color': self[(0, _utils_1.createKey)('iconColor', type)],
58
- '--border': self[(0, _utils_1.createKey)('border', type)],
59
- '--title-text-color': self[(0, _utils_1.createKey)('titleTextColor', type)],
60
- '--content-text-color': self[(0, _utils_1.createKey)('contentTextColor', type)],
61
- '--line-height': lineHeight,
62
- '--border-radius': borderRadius,
63
- '--font-size': fontSize,
64
- '--title-font-weight': titleFontWeight,
65
- '--icon-size': iconSize,
66
- '--icon-margin': iconMargin,
67
- '--close-size': closeSize,
68
- '--close-margin': closeMargin,
69
- '--padding': padding,
70
- '--icon-margin-left': left,
71
- '--icon-margin-right': right
52
+ '--n-bezier': cubicBezierEaseInOut,
53
+ '--n-color': self[(0, _utils_1.createKey)('color', type)],
54
+ '--n-close-color': self[(0, _utils_1.createKey)('closeColor', type)],
55
+ '--n-close-color-hover': self[(0, _utils_1.createKey)('closeColorHover', type)],
56
+ '--n-close-color-pressed': self[(0, _utils_1.createKey)('closeColorPressed', type)],
57
+ '--n-icon-color': self[(0, _utils_1.createKey)('iconColor', type)],
58
+ '--n-border': self[(0, _utils_1.createKey)('border', type)],
59
+ '--n-title-text-color': self[(0, _utils_1.createKey)('titleTextColor', type)],
60
+ '--n-content-text-color': self[(0, _utils_1.createKey)('contentTextColor', type)],
61
+ '--n-line-height': lineHeight,
62
+ '--n-border-radius': borderRadius,
63
+ '--n-font-size': fontSize,
64
+ '--n-title-font-weight': titleFontWeight,
65
+ '--n-icon-size': iconSize,
66
+ '--n-icon-margin': iconMargin,
67
+ '--n-close-size': closeSize,
68
+ '--n-close-margin': closeMargin,
69
+ '--n-padding': padding,
70
+ '--n-icon-margin-left': left,
71
+ '--n-icon-margin-right': right
72
72
  };
73
73
  });
74
74
  const visibleRef = (0, vue_1.ref)(true);
@@ -131,9 +131,9 @@ exports.default = (0, vue_1.defineComponent)({
131
131
  }
132
132
  })))),
133
133
  (0, vue_1.h)("div", { class: `${mergedClsPrefix}-alert-body` },
134
- this.title !== undefined && ((0, vue_1.h)("div", { class: `${mergedClsPrefix}-alert-body__title` }, (0, vue_1.renderSlot)($slots, 'header', undefined, () => [
134
+ this.title || $slots.header ? ((0, vue_1.h)("div", { class: `${mergedClsPrefix}-alert-body__title` }, (0, vue_1.renderSlot)($slots, 'header', undefined, () => [
135
135
  this.title
136
- ]))),
136
+ ]))) : null,
137
137
  $slots.default && ((0, vue_1.h)("div", { class: `${mergedClsPrefix}-alert-body__content` }, $slots))))) : null;
138
138
  }
139
139
  }));
@@ -13,46 +13,46 @@ Object.defineProperty(exports, "__esModule", {
13
13
  const cssr_1 = require("../../../_utils/cssr");
14
14
 
15
15
  const fade_in_height_expand_cssr_1 = __importDefault(require("../../../_styles/transitions/fade-in-height-expand.cssr")); // vars:
16
- // --bezier
17
- // --color
18
- // --close-color
19
- // --close-color-hover
20
- // --close-color-pressed
21
- // --icon-color
22
- // --border
23
- // --title-text-color
24
- // --content-text-color
25
- // --line-height
26
- // --border-radius
27
- // --font-size
28
- // --title-font-weight
29
- // --icon-size
30
- // --icon-margin
31
- // --close-size
32
- // --close-margin
33
- // --padding
34
- // --icon-margin-left
35
- // --icon-margin-right
16
+ // --n-bezier
17
+ // --n-color
18
+ // --n-close-color
19
+ // --n-close-color-hover
20
+ // --n-close-color-pressed
21
+ // --n-icon-color
22
+ // --n-border
23
+ // --n-title-text-color
24
+ // --n-content-text-color
25
+ // --n-line-height
26
+ // --n-border-radius
27
+ // --n-font-size
28
+ // --n-title-font-weight
29
+ // --n-icon-size
30
+ // --n-icon-margin
31
+ // --n-close-size
32
+ // --n-close-margin
33
+ // --n-padding
34
+ // --n-icon-margin-left
35
+ // --n-icon-margin-right
36
36
 
37
37
 
38
38
  exports.default = (0, cssr_1.cB)('alert', `
39
- line-height: var(--line-height);
40
- border-radius: var(--border-radius);
39
+ line-height: var(--n-line-height);
40
+ border-radius: var(--n-border-radius);
41
41
  position: relative;
42
- transition: background-color .3s var(--bezier);
43
- background-color: var(--color);
42
+ transition: background-color .3s var(--n-bezier);
43
+ background-color: var(--n-color);
44
44
  text-align: start;
45
45
  `, [(0, cssr_1.cE)('icon', {
46
- color: 'var(--icon-color)'
46
+ color: 'var(--n-icon-color)'
47
47
  }), (0, cssr_1.cB)('alert-body', {
48
- border: 'var(--border)',
49
- padding: 'var(--padding)'
48
+ border: 'var(--n-border)',
49
+ padding: 'var(--n-padding)'
50
50
  }, [(0, cssr_1.cE)('title', {
51
- color: 'var(--title-text-color)'
51
+ color: 'var(--n-title-text-color)'
52
52
  }), (0, cssr_1.cE)('content', {
53
- color: 'var(--content-text-color)'
53
+ color: 'var(--n-content-text-color)'
54
54
  })]), (0, fade_in_height_expand_cssr_1.default)({
55
- originalTransition: 'transform .3s var(--bezier)',
55
+ originalTransition: 'transform .3s var(--n-bezier)',
56
56
  enterToProps: {
57
57
  transform: 'scale(1)'
58
58
  },
@@ -66,32 +66,32 @@ exports.default = (0, cssr_1.cB)('alert', `
66
66
  align-items: center;
67
67
  justify-content: center;
68
68
  display: flex;
69
- width: var(--icon-size);
70
- height: var(--icon-size);
71
- font-size: var(--icon-size);
72
- margin: var(--icon-margin);
69
+ width: var(--n-icon-size);
70
+ height: var(--n-icon-size);
71
+ font-size: var(--n-icon-size);
72
+ margin: var(--n-icon-margin);
73
73
  `), (0, cssr_1.cE)('close', `
74
- transition: color .3s var(--bezier);
74
+ transition: color .3s var(--n-bezier);
75
75
  position: absolute;
76
76
  right: 0;
77
77
  top: 0;
78
- margin: var(--close-margin);
79
- font-size: var(--close-size);
78
+ margin: var(--n-close-margin);
79
+ font-size: var(--n-close-size);
80
80
  `), (0, cssr_1.cM)('show-icon', [(0, cssr_1.cB)('alert-body', {
81
- paddingLeft: 'calc(var(--icon-margin-left) + var(--icon-size) + var(--icon-margin-right))'
81
+ paddingLeft: 'calc(var(--n-icon-margin-left) + var(--n-icon-size) + var(--n-icon-margin-right))'
82
82
  })]), (0, cssr_1.cB)('alert-body', `
83
- border-radius: var(--border-radius);
84
- transition: border-color .3s var(--bezier);
83
+ border-radius: var(--n-border-radius);
84
+ transition: border-color .3s var(--n-bezier);
85
85
  `, [(0, cssr_1.cE)('title', `
86
- transition: color .3s var(--bezier);
86
+ transition: color .3s var(--n-bezier);
87
87
  font-size: 16px;
88
88
  line-height: 19px;
89
- font-weight: var(--title-font-weight);
89
+ font-weight: var(--n-title-font-weight);
90
90
  `, [(0, cssr_1.c)('& +', [(0, cssr_1.cE)('content', {
91
91
  marginTop: '9px'
92
92
  })])]), (0, cssr_1.cE)('content', {
93
- transition: 'color .3s var(--bezier)',
94
- fontSize: 'var(--font-size)'
93
+ transition: 'color .3s var(--n-bezier)',
94
+ fontSize: 'var(--n-font-size)'
95
95
  })]), (0, cssr_1.cE)('icon', {
96
- transition: 'color .3s var(--bezier)'
96
+ transition: 'color .3s var(--n-bezier)'
97
97
  })]);
@@ -41,18 +41,18 @@ exports.default = (0, vue_1.defineComponent)({
41
41
  const cssVarsRef = (0, vue_1.computed)(() => {
42
42
  const { self: { railColor, linkColor, railColorActive, linkTextColor, linkTextColorHover, linkTextColorPressed, linkTextColorActive, linkFontSize, railWidth, linkPadding, borderRadius }, common: { cubicBezierEaseInOut } } = themeRef.value;
43
43
  return {
44
- '--link-border-radius': borderRadius,
45
- '--link-color': linkColor,
46
- '--link-font-size': linkFontSize,
47
- '--link-text-color': linkTextColor,
48
- '--link-text-color-hover': linkTextColorHover,
49
- '--link-text-color-active': linkTextColorActive,
50
- '--link-text-color-pressed': linkTextColorPressed,
51
- '--link-padding': linkPadding,
52
- '--bezier': cubicBezierEaseInOut,
53
- '--rail-color': railColor,
54
- '--rail-color-active': railColorActive,
55
- '--rail-width': railWidth
44
+ '--n-link-border-radius': borderRadius,
45
+ '--n-link-color': linkColor,
46
+ '--n-link-font-size': linkFontSize,
47
+ '--n-link-text-color': linkTextColor,
48
+ '--n-link-text-color-hover': linkTextColorHover,
49
+ '--n-link-text-color-active': linkTextColorActive,
50
+ '--n-link-text-color-pressed': linkTextColorPressed,
51
+ '--n-link-padding': linkPadding,
52
+ '--n-bezier': cubicBezierEaseInOut,
53
+ '--n-rail-color': railColor,
54
+ '--n-rail-color-active': railColorActive,
55
+ '--n-rail-width': railWidth
56
56
  };
57
57
  });
58
58
  return {