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
@@ -1,4 +1,5 @@
1
- import { cB, cM, c } from '../../../../_utils/cssr'; // vars:
1
+ import { cB, cM, c } from '../../../../_utils/cssr'; // Note: non-prefixed color should be removed after css vars prefix migration
2
+ // vars:
2
3
  // --close-color
3
4
  // --close-color-hover
4
5
  // --close-color-pressed
@@ -6,12 +7,12 @@ import { cB, cM, c } from '../../../../_utils/cssr'; // vars:
6
7
 
7
8
  export default cB('base-close', `
8
9
  cursor: pointer;
9
- color: var(--close-color);
10
+ color: var(--close-color, var(--n-close-color));
10
11
  `, [c('&:hover', {
11
- color: 'var(--close-color-hover)'
12
+ color: 'var(--close-color-hover, var(--n-close-color))'
12
13
  }), c('&:active', {
13
- color: 'var(--close-color-pressed)'
14
+ color: 'var(--close-color-pressed, var(--n-close-color-pressed))'
14
15
  }), cM('disabled', {
15
16
  cursor: 'not-allowed!important',
16
- color: 'var(--close-color-disabled)'
17
+ color: 'var(--close-color-disabled, var(--n-close-color-disabled))'
17
18
  })]);
@@ -51,6 +51,7 @@ declare const scrollbarProps: {
51
51
  };
52
52
  readonly container: PropType<() => HTMLElement | null | undefined>;
53
53
  readonly content: PropType<() => HTMLElement | null | undefined>;
54
+ readonly containerClass: StringConstructor;
54
55
  readonly containerStyle: PropType<string | CSSProperties>;
55
56
  readonly contentClass: StringConstructor;
56
57
  readonly contentStyle: PropType<string | CSSProperties>;
@@ -94,6 +95,7 @@ declare const Scrollbar: import("vue").DefineComponent<{
94
95
  };
95
96
  readonly container: PropType<() => HTMLElement | null | undefined>;
96
97
  readonly content: PropType<() => HTMLElement | null | undefined>;
98
+ readonly containerClass: StringConstructor;
97
99
  readonly containerStyle: PropType<string | CSSProperties>;
98
100
  readonly contentClass: StringConstructor;
99
101
  readonly contentStyle: PropType<string | CSSProperties>;
@@ -156,6 +158,7 @@ declare const Scrollbar: import("vue").DefineComponent<{
156
158
  readonly xScrollable?: unknown;
157
159
  readonly container?: unknown;
158
160
  readonly content?: unknown;
161
+ readonly containerClass?: unknown;
159
162
  readonly containerStyle?: unknown;
160
163
  readonly contentClass?: unknown;
161
164
  readonly contentStyle?: unknown;
@@ -189,6 +192,7 @@ declare const Scrollbar: import("vue").DefineComponent<{
189
192
  color: string;
190
193
  colorHover: string;
191
194
  }, any>> | undefined;
195
+ containerClass?: string | undefined;
192
196
  onResize?: ((e: ResizeObserverEntry) => void) | undefined;
193
197
  container?: (() => HTMLElement | null | undefined) | undefined;
194
198
  containerStyle?: string | CSSProperties | undefined;
@@ -19,7 +19,7 @@ const scrollbarProps = Object.assign(Object.assign({}, useTheme.props), { size:
19
19
  default: false
20
20
  },
21
21
  // If container is set, resize observer won't not attached
22
- 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 });
22
+ 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 });
23
23
  const Scrollbar = defineComponent({
24
24
  name: 'Scrollbar',
25
25
  props: scrollbarProps,
@@ -480,7 +480,10 @@ const Scrollbar = defineComponent({
480
480
  onMouseenter: this.handleMouseEnterWrapper,
481
481
  onMouseleave: this.handleMouseLeaveWrapper
482
482
  }), [
483
- this.container ? (renderSlot($slots, 'default')) : (h("div", { ref: "containerRef", class: `${mergedClsPrefix}-scrollbar-container`, style: this.containerStyle, onScroll: this.handleScroll, onWheel: this.onWheel },
483
+ this.container ? (renderSlot($slots, 'default')) : (h("div", { ref: "containerRef", class: [
484
+ `${mergedClsPrefix}-scrollbar-container`,
485
+ this.containerClass
486
+ ], style: this.containerStyle, onScroll: this.handleScroll, onWheel: this.onWheel },
484
487
  h(VResizeObserver, { onResize: this.handleContentResize }, {
485
488
  default: () => (h("div", { ref: "contentRef", style: [
486
489
  {
@@ -491,15 +491,17 @@ export default defineComponent({
491
491
  body = (h("div", { ref: "patternInputWrapperRef", class: `${clsPrefix}-base-selection-label` },
492
492
  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 })),
493
493
  showPlaceholder ? null : this.patternInputFocused &&
494
- this.active ? null : (h("div", { class: `${clsPrefix}-base-selection-label__render-label ${clsPrefix}-base-selection-overlay`, key: "input" }, renderTag
495
- ? renderTag({
496
- option: this.selectedOption,
497
- handleClose: () => { }
498
- })
499
- : renderLabel
500
- ? renderLabel(this.selectedOption, true)
501
- : render(this.label, this.selectedOption, true))),
502
- showPlaceholder ? (h("div", { class: `${clsPrefix}-base-selection-placeholder ${clsPrefix}-base-selection-overlay`, key: "placeholder" }, this.filterablePlaceholder)) : null,
494
+ this.active ? null : (h("div", { class: `${clsPrefix}-base-selection-label__render-label ${clsPrefix}-base-selection-overlay`, key: "input" },
495
+ h("div", { class: `${clsPrefix}-base-selection-overlay__wrapper` }, renderTag
496
+ ? renderTag({
497
+ option: this.selectedOption,
498
+ handleClose: () => { }
499
+ })
500
+ : renderLabel
501
+ ? renderLabel(this.selectedOption, true)
502
+ : render(this.label, this.selectedOption, true)))),
503
+ showPlaceholder ? (h("div", { class: `${clsPrefix}-base-selection-placeholder ${clsPrefix}-base-selection-overlay`, key: "placeholder" },
504
+ h("div", { class: `${clsPrefix}-base-selection-overlay__wrapper` }, this.filterablePlaceholder))) : null,
503
505
  suffix));
504
506
  }
505
507
  else {
@@ -70,7 +70,6 @@ export default c([cB('base-selection', `
70
70
  display: flex;
71
71
  align-items: center;
72
72
  white-space: nowrap;
73
- overflow: hidden;
74
73
  pointer-events: none;
75
74
  position: absolute;
76
75
  top: 0;
@@ -79,7 +78,12 @@ export default c([cB('base-selection', `
79
78
  left: 0;
80
79
  padding: var(--padding-single);
81
80
  transition: color .3s var(--bezier);
82
- `), cB('base-selection-placeholder', `
81
+ `, [cE('wrapper', `
82
+ flex-basis: 0;
83
+ flex-grow: 1;
84
+ overflow: hidden;
85
+ text-overflow: ellipsis;
86
+ `)]), cB('base-selection-placeholder', `
83
87
  color: var(--placeholder-color);
84
88
  `), cB('base-selection-tags', `
85
89
  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;
@@ -44,26 +44,26 @@ export default defineComponent({
44
44
  const { type } = props;
45
45
  const { left, right } = getMargin(iconMargin);
46
46
  return {
47
- '--bezier': cubicBezierEaseInOut,
48
- '--color': self[createKey('color', type)],
49
- '--close-color': self[createKey('closeColor', type)],
50
- '--close-color-hover': self[createKey('closeColorHover', type)],
51
- '--close-color-pressed': self[createKey('closeColorPressed', type)],
52
- '--icon-color': self[createKey('iconColor', type)],
53
- '--border': self[createKey('border', type)],
54
- '--title-text-color': self[createKey('titleTextColor', type)],
55
- '--content-text-color': self[createKey('contentTextColor', type)],
56
- '--line-height': lineHeight,
57
- '--border-radius': borderRadius,
58
- '--font-size': fontSize,
59
- '--title-font-weight': titleFontWeight,
60
- '--icon-size': iconSize,
61
- '--icon-margin': iconMargin,
62
- '--close-size': closeSize,
63
- '--close-margin': closeMargin,
64
- '--padding': padding,
65
- '--icon-margin-left': left,
66
- '--icon-margin-right': right
47
+ '--n-bezier': cubicBezierEaseInOut,
48
+ '--n-color': self[createKey('color', type)],
49
+ '--n-close-color': self[createKey('closeColor', type)],
50
+ '--n-close-color-hover': self[createKey('closeColorHover', type)],
51
+ '--n-close-color-pressed': self[createKey('closeColorPressed', type)],
52
+ '--n-icon-color': self[createKey('iconColor', type)],
53
+ '--n-border': self[createKey('border', type)],
54
+ '--n-title-text-color': self[createKey('titleTextColor', type)],
55
+ '--n-content-text-color': self[createKey('contentTextColor', type)],
56
+ '--n-line-height': lineHeight,
57
+ '--n-border-radius': borderRadius,
58
+ '--n-font-size': fontSize,
59
+ '--n-title-font-weight': titleFontWeight,
60
+ '--n-icon-size': iconSize,
61
+ '--n-icon-margin': iconMargin,
62
+ '--n-close-size': closeSize,
63
+ '--n-close-margin': closeMargin,
64
+ '--n-padding': padding,
65
+ '--n-icon-margin-left': left,
66
+ '--n-icon-margin-right': right
67
67
  };
68
68
  });
69
69
  const visibleRef = ref(true);
@@ -126,9 +126,9 @@ export default defineComponent({
126
126
  }
127
127
  })))),
128
128
  h("div", { class: `${mergedClsPrefix}-alert-body` },
129
- this.title !== undefined && (h("div", { class: `${mergedClsPrefix}-alert-body__title` }, renderSlot($slots, 'header', undefined, () => [
129
+ this.title || $slots.header ? (h("div", { class: `${mergedClsPrefix}-alert-body__title` }, renderSlot($slots, 'header', undefined, () => [
130
130
  this.title
131
- ]))),
131
+ ]))) : null,
132
132
  $slots.default && (h("div", { class: `${mergedClsPrefix}-alert-body__content` }, $slots))))) : null;
133
133
  }
134
134
  }));
@@ -1,44 +1,44 @@
1
1
  import { c, cB, cE, cM } from '../../../_utils/cssr';
2
2
  import fadeInHeightExpandTranstion from '../../../_styles/transitions/fade-in-height-expand.cssr'; // vars:
3
- // --bezier
4
- // --color
5
- // --close-color
6
- // --close-color-hover
7
- // --close-color-pressed
8
- // --icon-color
9
- // --border
10
- // --title-text-color
11
- // --content-text-color
12
- // --line-height
13
- // --border-radius
14
- // --font-size
15
- // --title-font-weight
16
- // --icon-size
17
- // --icon-margin
18
- // --close-size
19
- // --close-margin
20
- // --padding
21
- // --icon-margin-left
22
- // --icon-margin-right
3
+ // --n-bezier
4
+ // --n-color
5
+ // --n-close-color
6
+ // --n-close-color-hover
7
+ // --n-close-color-pressed
8
+ // --n-icon-color
9
+ // --n-border
10
+ // --n-title-text-color
11
+ // --n-content-text-color
12
+ // --n-line-height
13
+ // --n-border-radius
14
+ // --n-font-size
15
+ // --n-title-font-weight
16
+ // --n-icon-size
17
+ // --n-icon-margin
18
+ // --n-close-size
19
+ // --n-close-margin
20
+ // --n-padding
21
+ // --n-icon-margin-left
22
+ // --n-icon-margin-right
23
23
 
24
24
  export default cB('alert', `
25
- line-height: var(--line-height);
26
- border-radius: var(--border-radius);
25
+ line-height: var(--n-line-height);
26
+ border-radius: var(--n-border-radius);
27
27
  position: relative;
28
- transition: background-color .3s var(--bezier);
29
- background-color: var(--color);
28
+ transition: background-color .3s var(--n-bezier);
29
+ background-color: var(--n-color);
30
30
  text-align: start;
31
31
  `, [cE('icon', {
32
- color: 'var(--icon-color)'
32
+ color: 'var(--n-icon-color)'
33
33
  }), cB('alert-body', {
34
- border: 'var(--border)',
35
- padding: 'var(--padding)'
34
+ border: 'var(--n-border)',
35
+ padding: 'var(--n-padding)'
36
36
  }, [cE('title', {
37
- color: 'var(--title-text-color)'
37
+ color: 'var(--n-title-text-color)'
38
38
  }), cE('content', {
39
- color: 'var(--content-text-color)'
39
+ color: 'var(--n-content-text-color)'
40
40
  })]), fadeInHeightExpandTranstion({
41
- originalTransition: 'transform .3s var(--bezier)',
41
+ originalTransition: 'transform .3s var(--n-bezier)',
42
42
  enterToProps: {
43
43
  transform: 'scale(1)'
44
44
  },
@@ -52,32 +52,32 @@ export default cB('alert', `
52
52
  align-items: center;
53
53
  justify-content: center;
54
54
  display: flex;
55
- width: var(--icon-size);
56
- height: var(--icon-size);
57
- font-size: var(--icon-size);
58
- margin: var(--icon-margin);
55
+ width: var(--n-icon-size);
56
+ height: var(--n-icon-size);
57
+ font-size: var(--n-icon-size);
58
+ margin: var(--n-icon-margin);
59
59
  `), cE('close', `
60
- transition: color .3s var(--bezier);
60
+ transition: color .3s var(--n-bezier);
61
61
  position: absolute;
62
62
  right: 0;
63
63
  top: 0;
64
- margin: var(--close-margin);
65
- font-size: var(--close-size);
64
+ margin: var(--n-close-margin);
65
+ font-size: var(--n-close-size);
66
66
  `), cM('show-icon', [cB('alert-body', {
67
- paddingLeft: 'calc(var(--icon-margin-left) + var(--icon-size) + var(--icon-margin-right))'
67
+ paddingLeft: 'calc(var(--n-icon-margin-left) + var(--n-icon-size) + var(--n-icon-margin-right))'
68
68
  })]), cB('alert-body', `
69
- border-radius: var(--border-radius);
70
- transition: border-color .3s var(--bezier);
69
+ border-radius: var(--n-border-radius);
70
+ transition: border-color .3s var(--n-bezier);
71
71
  `, [cE('title', `
72
- transition: color .3s var(--bezier);
72
+ transition: color .3s var(--n-bezier);
73
73
  font-size: 16px;
74
74
  line-height: 19px;
75
- font-weight: var(--title-font-weight);
75
+ font-weight: var(--n-title-font-weight);
76
76
  `, [c('& +', [cE('content', {
77
77
  marginTop: '9px'
78
78
  })])]), cE('content', {
79
- transition: 'color .3s var(--bezier)',
80
- fontSize: 'var(--font-size)'
79
+ transition: 'color .3s var(--n-bezier)',
80
+ fontSize: 'var(--n-font-size)'
81
81
  })]), cE('icon', {
82
- transition: 'color .3s var(--bezier)'
82
+ transition: 'color .3s var(--n-bezier)'
83
83
  })]);
@@ -17,18 +17,18 @@ export default defineComponent({
17
17
  const cssVarsRef = computed(() => {
18
18
  const { self: { railColor, linkColor, railColorActive, linkTextColor, linkTextColorHover, linkTextColorPressed, linkTextColorActive, linkFontSize, railWidth, linkPadding, borderRadius }, common: { cubicBezierEaseInOut } } = themeRef.value;
19
19
  return {
20
- '--link-border-radius': borderRadius,
21
- '--link-color': linkColor,
22
- '--link-font-size': linkFontSize,
23
- '--link-text-color': linkTextColor,
24
- '--link-text-color-hover': linkTextColorHover,
25
- '--link-text-color-active': linkTextColorActive,
26
- '--link-text-color-pressed': linkTextColorPressed,
27
- '--link-padding': linkPadding,
28
- '--bezier': cubicBezierEaseInOut,
29
- '--rail-color': railColor,
30
- '--rail-color-active': railColorActive,
31
- '--rail-width': railWidth
20
+ '--n-link-border-radius': borderRadius,
21
+ '--n-link-color': linkColor,
22
+ '--n-link-font-size': linkFontSize,
23
+ '--n-link-text-color': linkTextColor,
24
+ '--n-link-text-color-hover': linkTextColorHover,
25
+ '--n-link-text-color-active': linkTextColorActive,
26
+ '--n-link-text-color-pressed': linkTextColorPressed,
27
+ '--n-link-padding': linkPadding,
28
+ '--n-bezier': cubicBezierEaseInOut,
29
+ '--n-rail-color': railColor,
30
+ '--n-rail-color-active': railColorActive,
31
+ '--n-rail-width': railWidth
32
32
  };
33
33
  });
34
34
  return {
@@ -1,21 +1,21 @@
1
1
  import { c, cE, cB, cM, cNotM } from '../../../_utils/cssr'; // vars:
2
- // --link-color
3
- // --link-font-size
4
- // --link-text-color
5
- // --link-text-color-hover
6
- // --link-text-color-active
7
- // --link-text-color-pressed
8
- // --bezier
9
- // --rail-color
10
- // --rail-color-active
11
- // --rail-width
12
- // --link-padding
13
- // --link-border-radius
2
+ // --n-link-color
3
+ // --n-link-font-size
4
+ // --n-link-text-color
5
+ // --n-link-text-color-hover
6
+ // --n-link-text-color-active
7
+ // --n-link-text-color-pressed
8
+ // --n-bezier
9
+ // --n-rail-color
10
+ // --n-rail-color-active
11
+ // --n-rail-width
12
+ // --n-link-padding
13
+ // --n-link-border-radius
14
14
 
15
15
  export default cB('anchor', `
16
16
  position: relative;
17
17
  `, [cNotM('block', `
18
- padding-left: var(--rail-width);
18
+ padding-left: var(--n-rail-width);
19
19
  `, [cB('anchor-link', [c('+, >', [cB('anchor-link', `
20
20
  margin-top: .5em;
21
21
  `)])]), cB('anchor-link-background', `
@@ -25,56 +25,52 @@ export default cB('anchor', `
25
25
  `), cNotM('show-rail', [c('>', [cB('anchor-link', 'padding-left: 0;')])])]), cM('block', [cB('anchor-link', `
26
26
  margin-bottom: 4px;
27
27
  padding: 2px 8px;
28
- transition: background-color .3s var(--bezier);
28
+ transition: background-color .3s var(--n-bezier);
29
29
  background-color: transparent;
30
- border-radius: var(--link-border-radius);
30
+ border-radius: var(--n-link-border-radius);
31
31
  `, [cM('active', `
32
- background-color: var(--link-color);
32
+ background-color: var(--n-link-color);
33
33
  `)])]), cB('anchor-link-background', `
34
34
  position: absolute;
35
- left: calc(var(--rail-width) / 2);
35
+ left: calc(var(--n-rail-width) / 2);
36
36
  width: 100%;
37
- background-color: var(--link-color);
37
+ background-color: var(--n-link-color);
38
38
  transition:
39
- top .15s var(--bezier),
40
- max-width .15s var(--bezier),
41
- background-color .3s var(--bezier);
39
+ top .15s var(--n-bezier),
40
+ max-width .15s var(--n-bezier),
41
+ background-color .3s var(--n-bezier);
42
42
  `), cB('anchor-rail', `
43
43
  position: absolute;
44
44
  left: 0;
45
45
  top: 0;
46
46
  bottom: 0;
47
- width: var(--rail-width);
48
- border-radius: calc(var(--rail-width) / 2);
47
+ width: var(--n-rail-width);
48
+ border-radius: calc(var(--n-rail-width) / 2);
49
49
  overflow: hidden;
50
- transition: background-color .3s var(--bezier);
51
- background-color: var(--rail-color);
50
+ transition: background-color .3s var(--n-bezier);
51
+ background-color: var(--n-rail-color);
52
52
  `, [cE('bar', `
53
53
  position: absolute;
54
54
  left: 0;
55
- width: var(--rail-width);
55
+ width: var(--n-rail-width);
56
56
  height: 21px;
57
57
  background-color: #0000;
58
58
  transition:
59
- top .15s var(--bezier),
60
- background-color .3s var(--bezier);
59
+ top .15s var(--n-bezier),
60
+ background-color .3s var(--n-bezier);
61
61
  `, [cM('active', {
62
- backgroundColor: 'var(--rail-color-active)'
62
+ backgroundColor: 'var(--n-rail-color-active)'
63
63
  })])]), cB('anchor-link', `
64
- padding: var(--link-padding);
64
+ padding: var(--n-link-padding);
65
65
  position: relative;
66
66
  line-height: 1.5;
67
- font-size: var(--link-font-size);
67
+ font-size: var(--n-link-font-size);
68
68
  min-height: 1.5em;
69
69
  display: flex;
70
70
  flex-direction: column;
71
- `, [cM('active', [cE('title', `
72
- color: var(--link-text-color-active);
73
- `)]), c('&:hover, &:focus', [cE('title', `
74
- color: var(--link-text-color-hover);
75
- `)]), c('&:active', [cE('title', `
76
- color: var(--link-text-color-pressed);
77
- `)]), cE('title', `
71
+ `, [cM('active', [c('>', [cE('title', `
72
+ color: var(--n-link-text-color-active);
73
+ `)])]), cE('title', `
78
74
  outline: none;
79
75
  max-width: 100%;
80
76
  text-decoration: none;
@@ -84,6 +80,10 @@ export default cB('anchor', `
84
80
  cursor: pointer;
85
81
  display: inline-block;
86
82
  padding-right: 16px;
87
- transition: color .3s var(--bezier);
88
- color: var(--link-text-color);
89
- `)])]);
83
+ transition: color .3s var(--n-bezier);
84
+ color: var(--n-link-text-color);
85
+ `, [c('&:hover, &:focus', `
86
+ color: var(--n-link-text-color-hover);
87
+ `), c('&:active', `
88
+ color: var(--n-link-text-color-pressed);
89
+ `)])])]);
@@ -7,7 +7,6 @@ declare const avatarProps: {
7
7
  };
8
8
  readonly src: StringConstructor;
9
9
  readonly circle: BooleanConstructor;
10
- readonly color: StringConstructor;
11
10
  readonly objectFit: {
12
11
  readonly type: PropType<"fill" | "none" | "contain" | "cover" | "scale-down">;
13
12
  readonly default: "fill";
@@ -15,6 +14,8 @@ declare const avatarProps: {
15
14
  readonly round: BooleanConstructor;
16
15
  readonly onError: PropType<(e: Event) => void>;
17
16
  readonly fallbackSrc: StringConstructor;
17
+ /** @deprecated */
18
+ readonly color: StringConstructor;
18
19
  readonly theme: PropType<import("../../_mixins").Theme<"Avatar", {
19
20
  borderRadius: string;
20
21
  fontSize: string;
@@ -54,7 +55,6 @@ declare const _default: import("vue").DefineComponent<{
54
55
  };
55
56
  readonly src: StringConstructor;
56
57
  readonly circle: BooleanConstructor;
57
- readonly color: StringConstructor;
58
58
  readonly objectFit: {
59
59
  readonly type: PropType<"fill" | "none" | "contain" | "cover" | "scale-down">;
60
60
  readonly default: "fill";
@@ -62,6 +62,8 @@ declare const _default: import("vue").DefineComponent<{
62
62
  readonly round: BooleanConstructor;
63
63
  readonly onError: PropType<(e: Event) => void>;
64
64
  readonly fallbackSrc: StringConstructor;
65
+ /** @deprecated */
66
+ readonly color: StringConstructor;
65
67
  readonly theme: PropType<import("../../_mixins").Theme<"Avatar", {
66
68
  borderRadius: string;
67
69
  fontSize: string;
@@ -111,11 +113,11 @@ declare const _default: import("vue").DefineComponent<{
111
113
  readonly size?: unknown;
112
114
  readonly src?: unknown;
113
115
  readonly circle?: unknown;
114
- readonly color?: unknown;
115
116
  readonly objectFit?: unknown;
116
117
  readonly round?: unknown;
117
118
  readonly onError?: unknown;
118
119
  readonly fallbackSrc?: unknown;
120
+ readonly color?: unknown;
119
121
  readonly theme?: unknown;
120
122
  readonly themeOverrides?: unknown;
121
123
  readonly builtinThemeOverrides?: unknown;
@@ -8,10 +8,12 @@ import style from './styles/index.cssr';
8
8
  const avatarProps = Object.assign(Object.assign({}, useTheme.props), { size: {
9
9
  type: [String, Number],
10
10
  default: 'medium'
11
- }, src: String, circle: Boolean, color: String, objectFit: {
11
+ }, src: String, circle: Boolean, objectFit: {
12
12
  type: String,
13
13
  default: 'fill'
14
- }, round: Boolean, onError: Function, fallbackSrc: String });
14
+ }, round: Boolean, onError: Function, fallbackSrc: String,
15
+ /** @deprecated */
16
+ color: String });
15
17
  export default defineComponent({
16
18
  name: 'Avatar',
17
19
  props: avatarProps,
@@ -62,7 +64,7 @@ export default defineComponent({
62
64
  mergedClsPrefix: mergedClsPrefixRef,
63
65
  fitTextTransform,
64
66
  cssVars: computed(() => {
65
- const { size } = props;
67
+ const { size, color: propColor } = props;
66
68
  const { self: { borderRadius, fontSize, color }, common: { cubicBezierEaseInOut } } = themeRef.value;
67
69
  let height;
68
70
  if (typeof size === 'number') {
@@ -74,7 +76,7 @@ export default defineComponent({
74
76
  return {
75
77
  '--font-size': fontSize,
76
78
  '--border-radius': mergedRoundRef.value ? '50%' : borderRadius,
77
- '--color': color,
79
+ '--color': propColor || color,
78
80
  '--bezier': cubicBezierEaseInOut,
79
81
  '--merged-size': `var(--avatar-size-override, ${height})`
80
82
  };
@@ -91,7 +93,7 @@ export default defineComponent({
91
93
  }
92
94
  else if (!(!$slots.default && src)) {
93
95
  img = (h(VResizeObserver, { onResize: this.fitTextTransform }, {
94
- default: () => (h("span", { ref: "textRef", class: `${mergedClsPrefix}-avatar__text`, style: { background: this.color } }, $slots))
96
+ default: () => (h("span", { ref: "textRef", class: `${mergedClsPrefix}-avatar__text` }, $slots))
95
97
  }));
96
98
  }
97
99
  else {
@@ -3,7 +3,7 @@ import { c, cE, cB } from '../../../_utils/cssr'; // vars:
3
3
  // --border-radius
4
4
  // --color
5
5
  // --bezier
6
- // --size
6
+ // --merged-size
7
7
 
8
8
  export default cB('avatar', `
9
9
  width: var(--merged-size);
@@ -30,7 +30,5 @@ export default cB('avatar', `
30
30
  top: 50%;
31
31
  `), cB('icon', `
32
32
  vertical-align: bottom;
33
- font-size: var(--size);
34
- `), cE('text', {
35
- lineHeight: 1.25
36
- })]);
33
+ font-size: calc(var(--merged-size) - 6px);
34
+ `), cE('text', 'line-height: 1.25')]);
@@ -111,12 +111,12 @@ declare const _default: import("vue").DefineComponent<{
111
111
  handleAfterEnter: () => void;
112
112
  handleAfterLeave: () => void;
113
113
  cssVars: import("vue").ComputedRef<{
114
- '--font-size': string;
115
- '--font-family': string;
116
- '--color': string;
117
- '--ripple-color': string;
118
- '--bezier': string;
119
- '--ripple-bezier': string;
114
+ '--n-font-size': string;
115
+ '--n-font-family': string;
116
+ '--n-color': string;
117
+ '--n-ripple-color': string;
118
+ '--n-bezier': string;
119
+ '--n-ripple-bezier': string;
120
120
  }>;
121
121
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
122
122
  readonly value?: unknown;