naive-ui 2.21.3 → 2.23.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 (314) hide show
  1. package/es/_internal/close/src/styles/index.cssr.js +6 -5
  2. package/es/_internal/scrollbar/src/ScrollBar.d.ts +4 -0
  3. package/es/_internal/scrollbar/src/ScrollBar.js +5 -2
  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/badge/src/Badge.d.ts +6 -6
  15. package/es/badge/src/Badge.js +6 -6
  16. package/es/badge/src/styles/index.cssr.js +15 -15
  17. package/es/button/src/Button.d.ts +43 -38
  18. package/es/button/src/Button.js +124 -116
  19. package/es/button/src/styles/button.cssr.js +83 -80
  20. package/es/button/styles/light.js +1 -1
  21. package/es/calendar/src/Calendar.d.ts +7 -0
  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/config-provider/src/ConfigProvider.d.ts +21 -0
  33. package/es/data-table/src/DataTable.js +7 -14
  34. package/es/data-table/src/MainTable.js +2 -3
  35. package/es/data-table/src/TableParts/Body.d.ts +15 -4
  36. package/es/data-table/src/TableParts/Body.js +80 -28
  37. package/es/data-table/src/TableParts/Header.js +1 -1
  38. package/es/data-table/src/interface.d.ts +4 -1
  39. package/es/data-table/src/styles/index.cssr.js +4 -3
  40. package/es/data-table/src/use-check.js +6 -2
  41. package/es/data-table/src/use-scroll.d.ts +2 -0
  42. package/es/data-table/src/use-scroll.js +34 -4
  43. package/es/data-table/src/use-table-data.js +4 -1
  44. package/es/data-table/styles/_common.js +1 -1
  45. package/es/date-picker/src/DatePicker.d.ts +31 -6
  46. package/es/date-picker/src/DatePicker.js +47 -20
  47. package/es/date-picker/src/config.d.ts +1 -9
  48. package/es/date-picker/src/config.js +0 -8
  49. package/es/date-picker/src/interface.d.ts +2 -1
  50. package/es/date-picker/src/panel/date.d.ts +14 -1
  51. package/es/date-picker/src/panel/date.js +2 -2
  52. package/es/date-picker/src/panel/daterange.d.ts +12 -0
  53. package/es/date-picker/src/panel/daterange.js +2 -2
  54. package/es/date-picker/src/panel/datetime.d.ts +14 -7
  55. package/es/date-picker/src/panel/datetime.js +2 -2
  56. package/es/date-picker/src/panel/datetimerange.d.ts +12 -0
  57. package/es/date-picker/src/panel/datetimerange.js +2 -2
  58. package/es/date-picker/src/panel/month.d.ts +18 -11
  59. package/es/date-picker/src/panel/month.js +23 -12
  60. package/es/date-picker/src/panel/use-calendar.d.ts +16 -34
  61. package/es/date-picker/src/panel/use-calendar.js +35 -18
  62. package/es/date-picker/src/panel/use-dual-calendar.d.ts +12 -31
  63. package/es/date-picker/src/panel/use-dual-calendar.js +23 -8
  64. package/es/date-picker/src/panel/use-panel-common.d.ts +12 -27
  65. package/es/date-picker/src/panel/use-panel-common.js +2 -2
  66. package/es/date-picker/src/utils.d.ts +19 -3
  67. package/es/date-picker/src/utils.js +40 -5
  68. package/es/date-picker/styles/_common.d.ts +2 -0
  69. package/es/date-picker/styles/_common.js +3 -1
  70. package/es/date-picker/styles/light.d.ts +4 -0
  71. package/es/dialog/src/Dialog.js +2 -2
  72. package/es/divider/src/Divider.d.ts +4 -4
  73. package/es/divider/src/Divider.js +4 -4
  74. package/es/divider/src/styles/index.cssr.js +12 -12
  75. package/es/element/index.d.ts +1 -0
  76. package/es/element/index.js +1 -0
  77. package/es/form/src/interface.d.ts +5 -4
  78. package/es/image/src/Image.js +8 -12
  79. package/es/input/src/Input.js +2 -0
  80. package/es/input-number/src/InputNumber.js +2 -0
  81. package/es/input-number/src/utils.js +1 -1
  82. package/es/locales/common/deDE.js +8 -0
  83. package/es/locales/common/enUS.d.ts +7 -0
  84. package/es/locales/common/enUS.js +8 -1
  85. package/es/locales/common/frFR.d.ts +3 -0
  86. package/es/locales/common/frFR.js +101 -0
  87. package/es/locales/common/idID.d.ts +2 -93
  88. package/es/locales/common/idID.js +8 -0
  89. package/es/locales/common/jaJP.js +8 -0
  90. package/es/locales/common/nbNO.js +8 -0
  91. package/es/locales/common/ruRU.js +8 -0
  92. package/es/locales/common/ukUA.js +8 -0
  93. package/es/locales/common/zhCN.js +7 -0
  94. package/es/locales/common/zhTW.d.ts +3 -0
  95. package/es/locales/common/zhTW.js +100 -0
  96. package/es/locales/date/frFR.d.ts +3 -0
  97. package/es/locales/date/frFR.js +6 -0
  98. package/es/locales/date/idID.d.ts +1 -6
  99. package/es/locales/date/zhTW.d.ts +3 -0
  100. package/es/locales/date/zhTW.js +6 -0
  101. package/es/locales/index.d.ts +4 -0
  102. package/es/locales/index.js +4 -0
  103. package/es/page-header/src/PageHeader.js +3 -3
  104. package/es/page-header/src/styles/index.cssr.js +2 -4
  105. package/es/popover/src/Popover.js +4 -1
  106. package/es/popover/src/PopoverBody.js +3 -3
  107. package/es/popselect/src/Popselect.d.ts +2 -11
  108. package/es/popselect/src/Popselect.js +2 -2
  109. package/es/popselect/src/PopselectPanel.d.ts +3 -11
  110. package/es/popselect/src/PopselectPanel.js +17 -11
  111. package/es/radio/src/Radio.js +3 -3
  112. package/es/radio/src/RadioButton.js +4 -5
  113. package/es/radio/src/styles/radio-group.cssr.js +8 -4
  114. package/es/radio/src/styles/radio.cssr.js +8 -4
  115. package/es/radio/src/use-radio.d.ts +0 -3
  116. package/es/radio/src/use-radio.js +1 -26
  117. package/es/switch/src/Switch.js +7 -0
  118. package/es/switch/src/styles/index.cssr.js +2 -0
  119. package/es/tabs/src/styles/index.cssr.js +1 -0
  120. package/es/tag/src/styles/index.cssr.js +1 -1
  121. package/es/tree-select/src/TreeSelect.d.ts +38 -1
  122. package/es/tree-select/src/TreeSelect.js +25 -10
  123. package/es/tree-select/src/styles/index.cssr.js +11 -2
  124. package/es/tree-select/styles/light.d.ts +6 -0
  125. package/es/tree-select/styles/light.js +5 -2
  126. package/es/typography/src/a.d.ts +2 -2
  127. package/es/typography/src/a.js +2 -2
  128. package/es/typography/src/blockquote.d.ts +5 -5
  129. package/es/typography/src/blockquote.js +5 -5
  130. package/es/typography/src/create-header.d.ts +8 -8
  131. package/es/typography/src/create-header.js +8 -8
  132. package/es/typography/src/headers.d.ts +48 -48
  133. package/es/typography/src/hr.d.ts +2 -1
  134. package/es/typography/src/hr.js +3 -1
  135. package/es/typography/src/ol.d.ts +7 -7
  136. package/es/typography/src/ol.js +7 -7
  137. package/es/typography/src/p.d.ts +5 -5
  138. package/es/typography/src/p.js +5 -5
  139. package/es/typography/src/styles/a.cssr.js +6 -6
  140. package/es/typography/src/styles/blockquote.cssr.js +11 -11
  141. package/es/typography/src/styles/header.cssr.js +19 -19
  142. package/es/typography/src/styles/hr.cssr.js +3 -3
  143. package/es/typography/src/styles/list.cssr.js +15 -15
  144. package/es/typography/src/styles/p.cssr.js +10 -10
  145. package/es/typography/src/styles/text.cssr.js +18 -18
  146. package/es/typography/src/text.d.ts +8 -7
  147. package/es/typography/src/text.js +9 -8
  148. package/es/typography/src/ul.d.ts +7 -7
  149. package/es/typography/src/ul.js +7 -7
  150. package/es/upload/src/Upload.d.ts +11 -0
  151. package/es/upload/src/Upload.js +33 -23
  152. package/es/upload/src/UploadFileList.js +4 -2
  153. package/es/upload/src/interface.d.ts +1 -0
  154. package/es/upload/src/styles/index.cssr.js +2 -3
  155. package/es/version.d.ts +1 -1
  156. package/es/version.js +1 -1
  157. package/lib/_internal/close/src/styles/index.cssr.js +6 -5
  158. package/lib/_internal/scrollbar/src/ScrollBar.d.ts +4 -0
  159. package/lib/_internal/scrollbar/src/ScrollBar.js +5 -2
  160. package/lib/_internal/selection/src/Selection.js +11 -9
  161. package/lib/_internal/selection/src/styles/index.cssr.js +6 -2
  162. package/lib/alert/src/Alert.d.ts +20 -20
  163. package/lib/alert/src/Alert.js +22 -22
  164. package/lib/alert/src/styles/index.cssr.js +45 -45
  165. package/lib/anchor/src/AnchorAdapter.js +12 -12
  166. package/lib/anchor/src/styles/index.cssr.js +41 -41
  167. package/lib/avatar/src/Avatar.d.ts +5 -3
  168. package/lib/avatar/src/Avatar.js +7 -5
  169. package/lib/avatar/src/styles/index.cssr.js +3 -5
  170. package/lib/badge/src/Badge.d.ts +6 -6
  171. package/lib/badge/src/Badge.js +6 -6
  172. package/lib/badge/src/styles/index.cssr.js +15 -15
  173. package/lib/button/src/Button.d.ts +43 -38
  174. package/lib/button/src/Button.js +123 -115
  175. package/lib/button/src/styles/button.cssr.js +83 -80
  176. package/lib/button/styles/light.js +1 -1
  177. package/lib/calendar/src/Calendar.d.ts +7 -0
  178. package/lib/cascader/src/Cascader.d.ts +135 -0
  179. package/lib/cascader/src/Cascader.js +2 -4
  180. package/lib/cascader/src/CascaderMenu.d.ts +345 -0
  181. package/lib/cascader/src/CascaderMenu.js +6 -5
  182. package/lib/cascader/src/CascaderOption.d.ts +18 -0
  183. package/lib/cascader/src/CascaderSelectMenu.d.ts +18 -0
  184. package/lib/cascader/src/CascaderSubmenu.d.ts +18 -0
  185. package/lib/cascader/styles/dark.js +3 -1
  186. package/lib/cascader/styles/light.d.ts +13 -0
  187. package/lib/cascader/styles/light.js +3 -1
  188. package/lib/config-provider/src/ConfigProvider.d.ts +21 -0
  189. package/lib/data-table/src/DataTable.js +6 -13
  190. package/lib/data-table/src/MainTable.js +1 -2
  191. package/lib/data-table/src/TableParts/Body.d.ts +15 -4
  192. package/lib/data-table/src/TableParts/Body.js +78 -26
  193. package/lib/data-table/src/TableParts/Header.js +1 -1
  194. package/lib/data-table/src/interface.d.ts +4 -1
  195. package/lib/data-table/src/styles/index.cssr.js +4 -3
  196. package/lib/data-table/src/use-check.js +6 -2
  197. package/lib/data-table/src/use-scroll.d.ts +2 -0
  198. package/lib/data-table/src/use-scroll.js +34 -4
  199. package/lib/data-table/src/use-table-data.js +4 -1
  200. package/lib/data-table/styles/_common.js +1 -1
  201. package/lib/date-picker/src/DatePicker.d.ts +31 -6
  202. package/lib/date-picker/src/DatePicker.js +46 -19
  203. package/lib/date-picker/src/config.d.ts +1 -9
  204. package/lib/date-picker/src/config.js +1 -9
  205. package/lib/date-picker/src/interface.d.ts +2 -1
  206. package/lib/date-picker/src/panel/date.d.ts +14 -1
  207. package/lib/date-picker/src/panel/date.js +1 -1
  208. package/lib/date-picker/src/panel/daterange.d.ts +12 -0
  209. package/lib/date-picker/src/panel/daterange.js +1 -1
  210. package/lib/date-picker/src/panel/datetime.d.ts +14 -7
  211. package/lib/date-picker/src/panel/datetime.js +1 -1
  212. package/lib/date-picker/src/panel/datetimerange.d.ts +12 -0
  213. package/lib/date-picker/src/panel/datetimerange.js +2 -2
  214. package/lib/date-picker/src/panel/month.d.ts +18 -11
  215. package/lib/date-picker/src/panel/month.js +23 -12
  216. package/lib/date-picker/src/panel/use-calendar.d.ts +16 -34
  217. package/lib/date-picker/src/panel/use-calendar.js +34 -16
  218. package/lib/date-picker/src/panel/use-dual-calendar.d.ts +12 -31
  219. package/lib/date-picker/src/panel/use-dual-calendar.js +22 -6
  220. package/lib/date-picker/src/panel/use-panel-common.d.ts +12 -27
  221. package/lib/date-picker/src/panel/use-panel-common.js +3 -2
  222. package/lib/date-picker/src/utils.d.ts +19 -3
  223. package/lib/date-picker/src/utils.js +41 -4
  224. package/lib/date-picker/styles/_common.d.ts +2 -0
  225. package/lib/date-picker/styles/_common.js +3 -1
  226. package/lib/date-picker/styles/light.d.ts +4 -0
  227. package/lib/dialog/src/Dialog.js +2 -2
  228. package/lib/divider/src/Divider.d.ts +4 -4
  229. package/lib/divider/src/Divider.js +4 -4
  230. package/lib/divider/src/styles/index.cssr.js +12 -12
  231. package/lib/element/index.d.ts +1 -0
  232. package/lib/element/index.js +3 -1
  233. package/lib/form/src/interface.d.ts +5 -4
  234. package/lib/image/src/Image.js +7 -11
  235. package/lib/input/src/Input.js +2 -0
  236. package/lib/input-number/src/InputNumber.js +2 -0
  237. package/lib/input-number/src/utils.js +1 -1
  238. package/lib/locales/common/deDE.js +8 -0
  239. package/lib/locales/common/enUS.d.ts +7 -0
  240. package/lib/locales/common/enUS.js +8 -1
  241. package/lib/locales/common/frFR.d.ts +3 -0
  242. package/lib/locales/common/frFR.js +103 -0
  243. package/lib/locales/common/idID.d.ts +2 -93
  244. package/lib/locales/common/idID.js +8 -0
  245. package/lib/locales/common/jaJP.js +8 -0
  246. package/lib/locales/common/nbNO.js +8 -0
  247. package/lib/locales/common/ruRU.js +8 -0
  248. package/lib/locales/common/ukUA.js +8 -0
  249. package/lib/locales/common/zhCN.js +7 -0
  250. package/lib/locales/common/zhTW.d.ts +3 -0
  251. package/lib/locales/common/zhTW.js +102 -0
  252. package/lib/locales/date/frFR.d.ts +3 -0
  253. package/lib/locales/date/frFR.js +11 -0
  254. package/lib/locales/date/idID.d.ts +1 -6
  255. package/lib/locales/date/zhTW.d.ts +3 -0
  256. package/lib/locales/date/zhTW.js +11 -0
  257. package/lib/locales/index.d.ts +4 -0
  258. package/lib/locales/index.js +9 -1
  259. package/lib/page-header/src/PageHeader.js +3 -3
  260. package/lib/page-header/src/styles/index.cssr.js +2 -4
  261. package/lib/popover/src/Popover.js +4 -1
  262. package/lib/popover/src/PopoverBody.js +3 -3
  263. package/lib/popselect/src/Popselect.d.ts +2 -11
  264. package/lib/popselect/src/Popselect.js +2 -2
  265. package/lib/popselect/src/PopselectPanel.d.ts +3 -11
  266. package/lib/popselect/src/PopselectPanel.js +16 -10
  267. package/lib/radio/src/Radio.js +3 -3
  268. package/lib/radio/src/RadioButton.js +4 -5
  269. package/lib/radio/src/styles/radio-group.cssr.js +8 -4
  270. package/lib/radio/src/styles/radio.cssr.js +8 -4
  271. package/lib/radio/src/use-radio.d.ts +0 -3
  272. package/lib/radio/src/use-radio.js +1 -26
  273. package/lib/switch/src/Switch.js +7 -0
  274. package/lib/switch/src/styles/index.cssr.js +2 -0
  275. package/lib/tabs/src/styles/index.cssr.js +1 -0
  276. package/lib/tag/src/styles/index.cssr.js +1 -1
  277. package/lib/tree-select/src/TreeSelect.d.ts +38 -1
  278. package/lib/tree-select/src/TreeSelect.js +24 -9
  279. package/lib/tree-select/src/styles/index.cssr.js +11 -2
  280. package/lib/tree-select/styles/light.d.ts +6 -0
  281. package/lib/tree-select/styles/light.js +5 -2
  282. package/lib/typography/src/a.d.ts +2 -2
  283. package/lib/typography/src/a.js +2 -2
  284. package/lib/typography/src/blockquote.d.ts +5 -5
  285. package/lib/typography/src/blockquote.js +5 -5
  286. package/lib/typography/src/create-header.d.ts +8 -8
  287. package/lib/typography/src/create-header.js +8 -8
  288. package/lib/typography/src/headers.d.ts +48 -48
  289. package/lib/typography/src/hr.d.ts +2 -1
  290. package/lib/typography/src/hr.js +3 -1
  291. package/lib/typography/src/ol.d.ts +7 -7
  292. package/lib/typography/src/ol.js +7 -7
  293. package/lib/typography/src/p.d.ts +5 -5
  294. package/lib/typography/src/p.js +5 -5
  295. package/lib/typography/src/styles/a.cssr.js +6 -6
  296. package/lib/typography/src/styles/blockquote.cssr.js +11 -11
  297. package/lib/typography/src/styles/header.cssr.js +19 -19
  298. package/lib/typography/src/styles/hr.cssr.js +3 -3
  299. package/lib/typography/src/styles/list.cssr.js +15 -15
  300. package/lib/typography/src/styles/p.cssr.js +10 -10
  301. package/lib/typography/src/styles/text.cssr.js +18 -18
  302. package/lib/typography/src/text.d.ts +8 -7
  303. package/lib/typography/src/text.js +9 -8
  304. package/lib/typography/src/ul.d.ts +7 -7
  305. package/lib/typography/src/ul.js +7 -7
  306. package/lib/upload/src/Upload.d.ts +11 -0
  307. package/lib/upload/src/Upload.js +33 -23
  308. package/lib/upload/src/UploadFileList.js +4 -2
  309. package/lib/upload/src/interface.d.ts +1 -0
  310. package/lib/upload/src/styles/index.cssr.js +2 -3
  311. package/lib/version.d.ts +1 -1
  312. package/lib/version.js +1 -1
  313. package/package.json +5 -4
  314. package/web-types.json +50 -7
@@ -52,12 +52,12 @@ export default defineComponent({
52
52
  const { type, color: propColor } = props;
53
53
  const { common: { cubicBezierEaseInOut, cubicBezierEaseOut }, self: { [createKey('color', type)]: color, fontFamily, fontSize } } = themeRef.value;
54
54
  return {
55
- '--font-size': fontSize,
56
- '--font-family': fontFamily,
57
- '--color': propColor || color,
58
- '--ripple-color': propColor || color,
59
- '--bezier': cubicBezierEaseInOut,
60
- '--ripple-bezier': cubicBezierEaseOut
55
+ '--n-font-size': fontSize,
56
+ '--n-font-family': fontFamily,
57
+ '--n-color': propColor || color,
58
+ '--n-ripple-color': propColor || color,
59
+ '--n-bezier': cubicBezierEaseInOut,
60
+ '--n-ripple-bezier': cubicBezierEaseOut
61
61
  };
62
62
  })
63
63
  };
@@ -1,28 +1,28 @@
1
1
  import { c, cB, cM } from '../../../_utils/cssr';
2
2
  import fadeInScaleUpTransition from '../../../_styles/transitions/fade-in-scale-up.cssr'; // vars:
3
- // --color
4
- // --ripple-color
5
- // --bezier
6
- // --ripple-bezier
7
- // --font-size
8
- // --font-family
3
+ // --n-color
4
+ // --n-ripple-color
5
+ // --n-bezier
6
+ // --n-ripple-bezier
7
+ // --n-font-size
8
+ // --n-font-family
9
9
 
10
10
  export default c([c('@keyframes badge-wave-spread', {
11
11
  from: {
12
- boxShadow: '0 0 0.5px 0px var(--ripple-color)',
12
+ boxShadow: '0 0 0.5px 0px var(--n-ripple-color)',
13
13
  opacity: 0.6
14
14
  },
15
15
  to: {
16
16
  // don't use exact 5px since chrome will display the animation with glitches
17
- boxShadow: '0 0 0.5px 4.5px var(--ripple-color)',
17
+ boxShadow: '0 0 0.5px 4.5px var(--n-ripple-color)',
18
18
  opacity: 0
19
19
  }
20
20
  }), cB('badge', `
21
21
  display: inline-flex;
22
22
  position: relative;
23
23
  vertical-align: middle;
24
- color: var(--color);
25
- font-family: var(--font-family);
24
+ color: var(--n-color);
25
+ font-family: var(--n-font-family);
26
26
  `, [cM('as-is', [cB('badge-sup', {
27
27
  position: 'static',
28
28
  transform: 'translateX(0)'
@@ -39,10 +39,10 @@ export default c([c('@keyframes badge-wave-spread', {
39
39
  }, [c('::before', {
40
40
  borderRadius: '4px'
41
41
  })])]), cB('badge-sup', `
42
- background: var(--color);
42
+ background: var(--n-color);
43
43
  transition:
44
- background-color .3s var(--bezier),
45
- color .3s var(--bezier);
44
+ background-color .3s var(--n-bezier),
45
+ color .3s var(--n-bezier);
46
46
  color: #FFF;
47
47
  position: absolute;
48
48
  height: 18px;
@@ -50,7 +50,7 @@ export default c([c('@keyframes badge-wave-spread', {
50
50
  border-radius: 9px;
51
51
  padding: 0 6px;
52
52
  text-align: center;
53
- font-size: var(--font-size);
53
+ font-size: var(--n-font-size);
54
54
  transform: translateX(-50%);
55
55
  left: 100%;
56
56
  bottom: calc(100% - 9px);
@@ -64,7 +64,7 @@ export default c([c('@keyframes badge-wave-spread', {
64
64
  animationDuration: '2s',
65
65
  animationIterationCount: 'infinite',
66
66
  animationDelay: '1s',
67
- animationTimingFunction: 'var(--ripple-bezier)',
67
+ animationTimingFunction: 'var(--n-ripple-bezier)',
68
68
  animationName: 'badge-wave-spread'
69
69
  }), c('&::before', `
70
70
  opacity: 0;
@@ -41,11 +41,12 @@ declare const buttonProps: {
41
41
  readonly type: PropType<"button" | "reset" | "submit">;
42
42
  readonly default: "button";
43
43
  };
44
- readonly onClick: PropType<MaybeArray<(e: MouseEvent) => void>>;
45
44
  readonly bordered: {
46
45
  readonly type: BooleanConstructor;
47
46
  readonly default: true;
48
47
  };
48
+ readonly onClick: PropType<MaybeArray<(e: MouseEvent) => void>>;
49
+ readonly internalAutoFocus: BooleanConstructor;
49
50
  readonly theme: PropType<import("../../_mixins").Theme<"Button", {
50
51
  heightTiny: string;
51
52
  heightSmall: string;
@@ -700,11 +701,12 @@ declare const Button: import("vue").DefineComponent<{
700
701
  readonly type: PropType<"button" | "reset" | "submit">;
701
702
  readonly default: "button";
702
703
  };
703
- readonly onClick: PropType<MaybeArray<(e: MouseEvent) => void>>;
704
704
  readonly bordered: {
705
705
  readonly type: BooleanConstructor;
706
706
  readonly default: true;
707
707
  };
708
+ readonly onClick: PropType<MaybeArray<(e: MouseEvent) => void>>;
709
+ readonly internalAutoFocus: BooleanConstructor;
708
710
  readonly theme: PropType<import("../../_mixins").Theme<"Button", {
709
711
  heightTiny: string;
710
712
  heightSmall: string;
@@ -1318,8 +1320,8 @@ declare const Button: import("vue").DefineComponent<{
1318
1320
  rippleDuration: string;
1319
1321
  }, any>>>;
1320
1322
  }, {
1321
- selfRef: import("vue").Ref<HTMLElement | null>;
1322
- waveRef: import("vue").Ref<{
1323
+ selfElRef: import("vue").Ref<HTMLElement | null>;
1324
+ waveElRef: import("vue").Ref<{
1323
1325
  play: () => void;
1324
1326
  } | null>;
1325
1327
  mergedClsPrefix: import("vue").ComputedRef<string>;
@@ -1334,42 +1336,42 @@ declare const Button: import("vue").DefineComponent<{
1334
1336
  handleKeyup: (e: KeyboardEvent) => void;
1335
1337
  handleClick: (e: MouseEvent) => void;
1336
1338
  customColorCssVars: import("vue").ComputedRef<{
1337
- '--border-color': string;
1338
- '--border-color-hover': string;
1339
- '--border-color-pressed': string;
1340
- '--border-color-focus': string;
1341
- '--border-color-disabled': string;
1339
+ '--n-border-color': string;
1340
+ '--n-border-color-hover': string;
1341
+ '--n-border-color-pressed': string;
1342
+ '--n-border-color-focus': string;
1343
+ '--n-border-color-disabled': string;
1342
1344
  } | null>;
1343
1345
  cssVars: import("vue").ComputedRef<{
1344
- '--width': string;
1345
- '--height': string;
1346
- '--font-size': string;
1347
- '--padding': string;
1348
- '--icon-size': string;
1349
- '--icon-margin': string;
1350
- '--border-radius': string;
1351
- '--border': string;
1352
- '--border-hover': string;
1353
- '--border-pressed': string;
1354
- '--border-focus': string;
1355
- '--border-disabled': string;
1356
- '--color': string;
1357
- '--color-hover': string;
1358
- '--color-pressed': string;
1359
- '--color-focus': string;
1360
- '--color-disabled': string;
1361
- '--ripple-color': string;
1362
- '--text-color': string;
1363
- '--text-color-hover': string;
1364
- '--text-color-pressed': string;
1365
- '--text-color-focus': string;
1366
- '--text-color-disabled': string;
1346
+ '--n-width': string;
1347
+ '--n-height': string;
1348
+ '--n-font-size': string;
1349
+ '--n-padding': string;
1350
+ '--n-icon-size': string;
1351
+ '--n-icon-margin': string;
1352
+ '--n-border-radius': string;
1353
+ '--n-border': string;
1354
+ '--n-border-hover': string;
1355
+ '--n-border-pressed': string;
1356
+ '--n-border-focus': string;
1357
+ '--n-border-disabled': string;
1358
+ '--n-color': string;
1359
+ '--n-color-hover': string;
1360
+ '--n-color-pressed': string;
1361
+ '--n-color-focus': string;
1362
+ '--n-color-disabled': string;
1363
+ '--n-ripple-color': string;
1364
+ '--n-text-color': string;
1365
+ '--n-text-color-hover': string;
1366
+ '--n-text-color-pressed': string;
1367
+ '--n-text-color-focus': string;
1368
+ '--n-text-color-disabled': string;
1367
1369
  fontWeight: string;
1368
- '--bezier': string;
1369
- '--bezier-ease-out': string;
1370
- '--ripple-duration': string;
1371
- '--opacity-disabled': string;
1372
- '--wave-opacity': string;
1370
+ '--n-bezier': string;
1371
+ '--n-bezier-ease-out': string;
1372
+ '--n-ripple-duration': string;
1373
+ '--n-opacity-disabled': string;
1374
+ '--n-wave-opacity': string;
1373
1375
  }>;
1374
1376
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
1375
1377
  readonly color?: unknown;
@@ -1393,8 +1395,9 @@ declare const Button: import("vue").DefineComponent<{
1393
1395
  readonly dashed?: unknown;
1394
1396
  readonly iconPlacement?: unknown;
1395
1397
  readonly attrType?: unknown;
1396
- readonly onClick?: unknown;
1397
1398
  readonly bordered?: unknown;
1399
+ readonly onClick?: unknown;
1400
+ readonly internalAutoFocus?: unknown;
1398
1401
  readonly theme?: unknown;
1399
1402
  readonly themeOverrides?: unknown;
1400
1403
  readonly builtinThemeOverrides?: unknown;
@@ -1418,6 +1421,7 @@ declare const Button: import("vue").DefineComponent<{
1418
1421
  quaternary: boolean;
1419
1422
  iconPlacement: "left" | "right";
1420
1423
  attrType: "button" | "reset" | "submit";
1424
+ internalAutoFocus: boolean;
1421
1425
  } & {
1422
1426
  color?: string | undefined;
1423
1427
  size?: Size | undefined;
@@ -2055,6 +2059,7 @@ declare const Button: import("vue").DefineComponent<{
2055
2059
  quaternary: boolean;
2056
2060
  iconPlacement: "left" | "right";
2057
2061
  attrType: "button" | "reset" | "submit";
2062
+ internalAutoFocus: boolean;
2058
2063
  }>;
2059
2064
  declare type NativeButtonProps = Omit<ButtonHTMLAttributes, keyof ButtonProps>;
2060
2065
  declare type MergedProps = Partial<ButtonProps & NativeButtonProps>;