naive-ui 2.25.2 → 2.25.5

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 (429) hide show
  1. package/es/_internal/clear/src/Clear.d.ts +0 -1
  2. package/es/_internal/clear/src/Clear.js +1 -3
  3. package/es/_internal/icons/replaceable.d.ts +1 -1
  4. package/es/_internal/icons/replaceable.js +5 -4
  5. package/es/_internal/scrollbar/src/ScrollBar.d.ts +13 -1
  6. package/es/_internal/scrollbar/src/ScrollBar.js +35 -16
  7. package/es/_internal/select-menu/src/SelectMenu.d.ts +22 -23
  8. package/es/_internal/select-menu/src/SelectMenu.js +10 -16
  9. package/es/_internal/selection/src/Selection.d.ts +5 -5
  10. package/es/_internal/selection/src/Selection.js +20 -7
  11. package/es/_mixins/index.d.ts +1 -1
  12. package/es/_mixins/index.js +1 -1
  13. package/es/_mixins/use-config.d.ts +6 -3
  14. package/es/_mixins/use-config.js +5 -1
  15. package/es/_mixins/use-css-vars-class.d.ts +1 -4
  16. package/es/_mixins/use-css-vars-class.js +8 -7
  17. package/es/_utils/vue/resolve-slot.d.ts +5 -2
  18. package/es/_utils/vue/resolve-slot.js +4 -3
  19. package/es/alert/src/Alert.d.ts +3 -1
  20. package/es/alert/src/Alert.js +36 -21
  21. package/es/anchor/src/AnchorAdapter.js +9 -3
  22. package/es/auto-complete/src/AutoComplete.d.ts +3 -1
  23. package/es/auto-complete/src/AutoComplete.js +28 -15
  24. package/es/avatar/src/Avatar.d.ts +3 -1
  25. package/es/avatar/src/Avatar.js +70 -35
  26. package/es/back-top/src/BackTop.d.ts +12 -49
  27. package/es/back-top/src/BackTop.js +60 -58
  28. package/es/badge/src/Badge.d.ts +12 -37
  29. package/es/badge/src/Badge.js +41 -31
  30. package/es/breadcrumb/src/Breadcrumb.d.ts +3 -1
  31. package/es/breadcrumb/src/Breadcrumb.js +24 -16
  32. package/es/button/src/Button.d.ts +7 -6
  33. package/es/button/src/Button.js +31 -21
  34. package/es/calendar/src/Calendar.d.ts +3 -1
  35. package/es/calendar/src/Calendar.js +37 -30
  36. package/es/card/src/Card.d.ts +2 -2
  37. package/es/card/src/Card.js +27 -16
  38. package/es/carousel/src/Carousel.d.ts +3 -1
  39. package/es/carousel/src/Carousel.js +29 -20
  40. package/es/cascader/src/Cascader.d.ts +16 -1
  41. package/es/cascader/src/Cascader.js +53 -31
  42. package/es/cascader/src/CascaderMenu.js +7 -6
  43. package/es/cascader/src/CascaderSelectMenu.js +2 -1
  44. package/es/cascader/src/CascaderSubmenu.d.ts +1 -0
  45. package/es/cascader/src/interface.d.ts +1 -0
  46. package/es/checkbox/src/Checkbox.d.ts +6 -4
  47. package/es/checkbox/src/Checkbox.js +41 -32
  48. package/es/checkbox/src/styles/index.cssr.js +7 -7
  49. package/es/code/src/Code.d.ts +3 -1
  50. package/es/code/src/Code.js +33 -27
  51. package/es/collapse/src/Collapse.d.ts +3 -1
  52. package/es/collapse/src/Collapse.js +24 -16
  53. package/es/color-picker/src/ColorPicker.d.ts +3 -1
  54. package/es/color-picker/src/ColorPicker.js +20 -7
  55. package/es/components.d.ts +1 -0
  56. package/es/components.js +1 -0
  57. package/es/config-provider/src/ConfigProvider.d.ts +4 -4
  58. package/es/config-provider/src/ConfigProvider.js +3 -3
  59. package/es/config-provider/src/internal-interface.d.ts +3 -1
  60. package/es/countdown/src/Countdown.d.ts +0 -3
  61. package/es/countdown/src/Countdown.js +0 -1
  62. package/es/data-table/src/DataTable.d.ts +43 -41
  63. package/es/data-table/src/DataTable.js +54 -48
  64. package/es/data-table/src/HeaderButton/FilterButton.js +3 -2
  65. package/es/data-table/src/HeaderButton/SortButton.js +3 -2
  66. package/es/data-table/src/TableParts/Body.d.ts +1 -0
  67. package/es/data-table/src/TableParts/Body.js +4 -2
  68. package/es/data-table/src/interface.d.ts +1 -1
  69. package/es/data-table/src/use-table-data.js +19 -7
  70. package/es/date-picker/src/DatePicker.d.ts +1 -0
  71. package/es/date-picker/src/DatePicker.js +2 -2
  72. package/es/date-picker/src/panel/date.d.ts +2 -0
  73. package/es/date-picker/src/panel/datetime.d.ts +2 -0
  74. package/es/date-picker/src/panel/month.d.ts +2 -0
  75. package/es/date-picker/src/panel/panelHeader.d.ts +4 -0
  76. package/es/date-picker/src/panel/use-calendar.d.ts +2 -0
  77. package/es/descriptions/src/Descriptions.d.ts +14 -1
  78. package/es/descriptions/src/Descriptions.js +45 -28
  79. package/es/descriptions/src/styles/index.cssr.js +2 -1
  80. package/es/descriptions/styles/light.d.ts +1 -0
  81. package/es/descriptions/styles/light.js +2 -2
  82. package/es/dialog/src/Dialog.d.ts +3 -1
  83. package/es/dialog/src/Dialog.js +57 -56
  84. package/es/dialog/src/DialogEnvironment.js +1 -1
  85. package/es/divider/src/Divider.d.ts +3 -1
  86. package/es/divider/src/Divider.js +20 -11
  87. package/es/dynamic-input/src/DynamicInput.d.ts +3 -1
  88. package/es/dynamic-input/src/DynamicInput.js +18 -11
  89. package/es/dynamic-tags/src/DynamicTags.d.ts +3 -1
  90. package/es/dynamic-tags/src/DynamicTags.js +17 -10
  91. package/es/element/src/Element.d.ts +3 -1
  92. package/es/element/src/Element.js +18 -11
  93. package/es/empty/src/Empty.d.ts +3 -1
  94. package/es/empty/src/Empty.js +28 -16
  95. package/es/form/src/FormItem.js +1 -2
  96. package/es/grid/src/Grid.js +2 -2
  97. package/es/icon-wrapper/src/IconWrapper.js +6 -8
  98. package/es/input/src/Input.d.ts +6 -3
  99. package/es/input/src/Input.js +96 -84
  100. package/es/input/src/styles/input.cssr.js +2 -2
  101. package/es/input-number/src/InputNumber.d.ts +6 -17
  102. package/es/input-number/src/InputNumber.js +79 -20
  103. package/es/layout/src/Layout.d.ts +8 -2
  104. package/es/layout/src/Layout.js +17 -10
  105. package/es/layout/src/LayoutContent.d.ts +4 -1
  106. package/es/layout/src/LayoutFooter.d.ts +3 -1
  107. package/es/layout/src/LayoutFooter.js +28 -19
  108. package/es/layout/src/LayoutHeader.d.ts +3 -1
  109. package/es/layout/src/LayoutHeader.js +28 -19
  110. package/es/layout/src/LayoutSider.d.ts +4 -0
  111. package/es/layout/src/LayoutSider.js +37 -29
  112. package/es/legacy-grid/src/styles/index.cssr.js +1 -1
  113. package/es/locales/common/esAR.js +2 -2
  114. package/es/locales/common/frFR.js +8 -9
  115. package/es/locales/common/skSK.d.ts +3 -0
  116. package/es/locales/common/skSK.js +110 -0
  117. package/es/locales/date/skSK.d.ts +3 -0
  118. package/es/locales/date/skSK.js +6 -0
  119. package/es/locales/index.d.ts +2 -0
  120. package/es/locales/index.js +2 -0
  121. package/es/log/src/Log.d.ts +4 -1
  122. package/es/log/src/Log.js +20 -15
  123. package/es/mention/index.d.ts +1 -1
  124. package/es/mention/src/Mention.d.ts +3 -1
  125. package/es/mention/src/Mention.js +20 -10
  126. package/es/mention/src/interface.d.ts +4 -0
  127. package/es/menu/src/Menu.d.ts +3 -1
  128. package/es/menu/src/Menu.js +68 -63
  129. package/es/modal/src/BodyWrapper.d.ts +1 -0
  130. package/es/modal/src/Modal.d.ts +11 -14
  131. package/es/modal/src/Modal.js +41 -32
  132. package/es/notification/src/styles/index.cssr.js +6 -5
  133. package/es/page-header/src/PageHeader.d.ts +3 -1
  134. package/es/page-header/src/PageHeader.js +27 -18
  135. package/es/pagination/src/Pagination.d.ts +13 -1
  136. package/es/pagination/src/Pagination.js +59 -52
  137. package/es/popover/src/PopoverBody.js +10 -4
  138. package/es/progress/src/Progress.d.ts +2 -2
  139. package/es/progress/src/Progress.js +12 -6
  140. package/es/radio/src/Radio.d.ts +3 -1
  141. package/es/radio/src/Radio.js +32 -23
  142. package/es/radio/src/RadioGroup.d.ts +3 -1
  143. package/es/radio/src/RadioGroup.js +31 -22
  144. package/es/rate/src/Rate.d.ts +3 -1
  145. package/es/rate/src/Rate.js +44 -23
  146. package/es/result/src/Result.d.ts +4 -2
  147. package/es/result/src/Result.js +36 -19
  148. package/es/scrollbar/src/ScrollBar.d.ts +12 -1
  149. package/es/scrollbar/src/ScrollBar.js +4 -0
  150. package/es/select/src/Select.d.ts +1 -1
  151. package/es/select/src/Select.js +5 -4
  152. package/es/spin/src/Spin.d.ts +3 -1
  153. package/es/spin/src/Spin.js +31 -21
  154. package/es/statistic/src/Statistic.d.ts +3 -1
  155. package/es/statistic/src/Statistic.js +29 -21
  156. package/es/styles.d.ts +1 -0
  157. package/es/styles.js +1 -0
  158. package/es/switch/src/Switch.d.ts +13 -1
  159. package/es/switch/src/Switch.js +85 -60
  160. package/es/switch/src/styles/index.cssr.js +21 -8
  161. package/es/switch/styles/dark.js +2 -2
  162. package/es/switch/styles/light.d.ts +1 -0
  163. package/es/switch/styles/light.js +2 -2
  164. package/es/table/src/Table.d.ts +3 -1
  165. package/es/table/src/Table.js +40 -29
  166. package/es/table/src/styles/index.cssr.js +1 -1
  167. package/es/tabs/src/Tabs.d.ts +25 -23
  168. package/es/tabs/src/Tabs.js +50 -44
  169. package/es/tabs/src/styles/index.cssr.js +79 -77
  170. package/es/tag/src/Tag.d.ts +2 -2
  171. package/es/tag/src/Tag.js +8 -11
  172. package/es/theme-editor/src/ThemeEditor.js +4 -3
  173. package/es/themes/dark.js +3 -1
  174. package/es/themes/light.js +3 -1
  175. package/es/thing/src/Thing.js +10 -3
  176. package/es/time-picker/src/TimePicker.d.ts +4 -0
  177. package/es/transfer/src/TransferList.d.ts +1 -0
  178. package/es/tree/src/Tree.d.ts +1 -0
  179. package/es/tree/src/Tree.js +8 -4
  180. package/es/tree-select/src/TreeSelect.d.ts +13 -0
  181. package/es/tree-select/src/TreeSelect.js +6 -2
  182. package/es/typography/src/a.d.ts +3 -1
  183. package/es/typography/src/a.js +18 -10
  184. package/es/typography/src/blockquote.d.ts +3 -1
  185. package/es/typography/src/blockquote.js +21 -12
  186. package/es/typography/src/create-header.d.ts +3 -1
  187. package/es/typography/src/create-header.js +25 -16
  188. package/es/typography/src/headers.d.ts +18 -6
  189. package/es/typography/src/hr.d.ts +3 -1
  190. package/es/typography/src/hr.js +18 -10
  191. package/es/typography/src/ol.d.ts +3 -1
  192. package/es/typography/src/ol.js +23 -14
  193. package/es/typography/src/p.d.ts +3 -1
  194. package/es/typography/src/p.js +23 -15
  195. package/es/typography/src/text.d.ts +3 -1
  196. package/es/typography/src/text.js +31 -23
  197. package/es/typography/src/ul.d.ts +3 -1
  198. package/es/typography/src/ul.js +23 -14
  199. package/es/upload/src/interface.d.ts +1 -1
  200. package/es/version.d.ts +1 -1
  201. package/es/version.js +1 -1
  202. package/es/watermark/index.d.ts +2 -0
  203. package/es/watermark/index.js +1 -0
  204. package/es/watermark/src/Watermark.d.ts +285 -0
  205. package/es/watermark/src/Watermark.js +159 -0
  206. package/es/watermark/src/styles/index.cssr.d.ts +2 -0
  207. package/es/watermark/src/styles/index.cssr.js +14 -0
  208. package/es/watermark/styles/dark.d.ts +3 -0
  209. package/es/watermark/styles/dark.js +12 -0
  210. package/es/watermark/styles/index.d.ts +3 -0
  211. package/es/watermark/styles/index.js +2 -0
  212. package/es/watermark/styles/light.d.ts +5 -0
  213. package/es/watermark/styles/light.js +13 -0
  214. package/lib/_internal/clear/src/Clear.d.ts +0 -1
  215. package/lib/_internal/clear/src/Clear.js +0 -2
  216. package/lib/_internal/icons/replaceable.d.ts +1 -1
  217. package/lib/_internal/icons/replaceable.js +4 -3
  218. package/lib/_internal/scrollbar/src/ScrollBar.d.ts +13 -1
  219. package/lib/_internal/scrollbar/src/ScrollBar.js +34 -15
  220. package/lib/_internal/select-menu/src/SelectMenu.d.ts +22 -23
  221. package/lib/_internal/select-menu/src/SelectMenu.js +9 -15
  222. package/lib/_internal/selection/src/Selection.d.ts +5 -5
  223. package/lib/_internal/selection/src/Selection.js +19 -6
  224. package/lib/_mixins/index.d.ts +1 -1
  225. package/lib/_mixins/index.js +1 -2
  226. package/lib/_mixins/use-config.d.ts +6 -3
  227. package/lib/_mixins/use-config.js +5 -1
  228. package/lib/_mixins/use-css-vars-class.d.ts +1 -4
  229. package/lib/_mixins/use-css-vars-class.js +9 -8
  230. package/lib/_utils/vue/resolve-slot.d.ts +5 -2
  231. package/lib/_utils/vue/resolve-slot.js +4 -3
  232. package/lib/alert/src/Alert.d.ts +3 -1
  233. package/lib/alert/src/Alert.js +34 -19
  234. package/lib/anchor/src/AnchorAdapter.js +8 -2
  235. package/lib/auto-complete/src/AutoComplete.d.ts +3 -1
  236. package/lib/auto-complete/src/AutoComplete.js +27 -14
  237. package/lib/avatar/src/Avatar.d.ts +3 -1
  238. package/lib/avatar/src/Avatar.js +68 -33
  239. package/lib/back-top/src/BackTop.d.ts +12 -49
  240. package/lib/back-top/src/BackTop.js +57 -55
  241. package/lib/badge/src/Badge.d.ts +12 -37
  242. package/lib/badge/src/Badge.js +39 -29
  243. package/lib/breadcrumb/src/Breadcrumb.d.ts +3 -1
  244. package/lib/breadcrumb/src/Breadcrumb.js +23 -15
  245. package/lib/button/src/Button.d.ts +7 -6
  246. package/lib/button/src/Button.js +29 -19
  247. package/lib/calendar/src/Calendar.d.ts +3 -1
  248. package/lib/calendar/src/Calendar.js +36 -29
  249. package/lib/card/src/Card.d.ts +2 -2
  250. package/lib/card/src/Card.js +25 -14
  251. package/lib/carousel/src/Carousel.d.ts +3 -1
  252. package/lib/carousel/src/Carousel.js +27 -18
  253. package/lib/cascader/src/Cascader.d.ts +16 -1
  254. package/lib/cascader/src/Cascader.js +52 -30
  255. package/lib/cascader/src/CascaderMenu.js +7 -6
  256. package/lib/cascader/src/CascaderSelectMenu.js +2 -1
  257. package/lib/cascader/src/CascaderSubmenu.d.ts +1 -0
  258. package/lib/cascader/src/interface.d.ts +1 -0
  259. package/lib/checkbox/src/Checkbox.d.ts +6 -4
  260. package/lib/checkbox/src/Checkbox.js +40 -31
  261. package/lib/checkbox/src/styles/index.cssr.js +7 -7
  262. package/lib/code/src/Code.d.ts +3 -1
  263. package/lib/code/src/Code.js +32 -26
  264. package/lib/collapse/src/Collapse.d.ts +3 -1
  265. package/lib/collapse/src/Collapse.js +23 -15
  266. package/lib/color-picker/src/ColorPicker.d.ts +3 -1
  267. package/lib/color-picker/src/ColorPicker.js +19 -6
  268. package/lib/components.d.ts +1 -0
  269. package/lib/components.js +1 -0
  270. package/lib/config-provider/src/ConfigProvider.d.ts +4 -4
  271. package/lib/config-provider/src/ConfigProvider.js +3 -3
  272. package/lib/config-provider/src/internal-interface.d.ts +3 -1
  273. package/lib/countdown/src/Countdown.d.ts +0 -3
  274. package/lib/countdown/src/Countdown.js +0 -1
  275. package/lib/data-table/src/DataTable.d.ts +43 -41
  276. package/lib/data-table/src/DataTable.js +53 -47
  277. package/lib/data-table/src/HeaderButton/FilterButton.js +3 -2
  278. package/lib/data-table/src/HeaderButton/SortButton.js +3 -2
  279. package/lib/data-table/src/TableParts/Body.d.ts +1 -0
  280. package/lib/data-table/src/TableParts/Body.js +3 -1
  281. package/lib/data-table/src/interface.d.ts +1 -1
  282. package/lib/data-table/src/use-table-data.js +19 -7
  283. package/lib/date-picker/src/DatePicker.d.ts +1 -0
  284. package/lib/date-picker/src/DatePicker.js +2 -2
  285. package/lib/date-picker/src/panel/date.d.ts +2 -0
  286. package/lib/date-picker/src/panel/datetime.d.ts +2 -0
  287. package/lib/date-picker/src/panel/month.d.ts +2 -0
  288. package/lib/date-picker/src/panel/panelHeader.d.ts +4 -0
  289. package/lib/date-picker/src/panel/use-calendar.d.ts +2 -0
  290. package/lib/descriptions/src/Descriptions.d.ts +14 -1
  291. package/lib/descriptions/src/Descriptions.js +44 -27
  292. package/lib/descriptions/src/styles/index.cssr.js +2 -1
  293. package/lib/descriptions/styles/light.d.ts +1 -0
  294. package/lib/descriptions/styles/light.js +2 -2
  295. package/lib/dialog/src/Dialog.d.ts +3 -1
  296. package/lib/dialog/src/Dialog.js +55 -54
  297. package/lib/dialog/src/DialogEnvironment.js +1 -1
  298. package/lib/divider/src/Divider.d.ts +3 -1
  299. package/lib/divider/src/Divider.js +19 -10
  300. package/lib/dynamic-input/src/DynamicInput.d.ts +3 -1
  301. package/lib/dynamic-input/src/DynamicInput.js +17 -10
  302. package/lib/dynamic-tags/src/DynamicTags.d.ts +3 -1
  303. package/lib/dynamic-tags/src/DynamicTags.js +16 -9
  304. package/lib/element/src/Element.d.ts +3 -1
  305. package/lib/element/src/Element.js +17 -10
  306. package/lib/empty/src/Empty.d.ts +3 -1
  307. package/lib/empty/src/Empty.js +27 -15
  308. package/lib/form/src/FormItem.js +1 -2
  309. package/lib/grid/src/Grid.js +2 -2
  310. package/lib/icon-wrapper/src/IconWrapper.js +5 -7
  311. package/lib/input/src/Input.d.ts +6 -3
  312. package/lib/input/src/Input.js +95 -83
  313. package/lib/input/src/styles/input.cssr.js +2 -2
  314. package/lib/input-number/src/InputNumber.d.ts +6 -17
  315. package/lib/input-number/src/InputNumber.js +76 -17
  316. package/lib/layout/src/Layout.d.ts +8 -2
  317. package/lib/layout/src/Layout.js +16 -9
  318. package/lib/layout/src/LayoutContent.d.ts +4 -1
  319. package/lib/layout/src/LayoutFooter.d.ts +3 -1
  320. package/lib/layout/src/LayoutFooter.js +27 -18
  321. package/lib/layout/src/LayoutHeader.d.ts +3 -1
  322. package/lib/layout/src/LayoutHeader.js +27 -18
  323. package/lib/layout/src/LayoutSider.d.ts +4 -0
  324. package/lib/layout/src/LayoutSider.js +36 -28
  325. package/lib/legacy-grid/src/styles/index.cssr.js +1 -1
  326. package/lib/locales/common/esAR.js +2 -2
  327. package/lib/locales/common/frFR.js +8 -9
  328. package/lib/locales/common/skSK.d.ts +3 -0
  329. package/lib/locales/common/skSK.js +112 -0
  330. package/lib/locales/date/skSK.d.ts +3 -0
  331. package/lib/locales/date/skSK.js +11 -0
  332. package/lib/locales/index.d.ts +2 -0
  333. package/lib/locales/index.js +5 -1
  334. package/lib/log/src/Log.d.ts +4 -1
  335. package/lib/log/src/Log.js +19 -14
  336. package/lib/mention/index.d.ts +1 -1
  337. package/lib/mention/src/Mention.d.ts +3 -1
  338. package/lib/mention/src/Mention.js +19 -9
  339. package/lib/mention/src/interface.d.ts +4 -0
  340. package/lib/menu/src/Menu.d.ts +3 -1
  341. package/lib/menu/src/Menu.js +67 -62
  342. package/lib/modal/src/BodyWrapper.d.ts +1 -0
  343. package/lib/modal/src/Modal.d.ts +11 -14
  344. package/lib/modal/src/Modal.js +40 -31
  345. package/lib/notification/src/styles/index.cssr.js +6 -5
  346. package/lib/page-header/src/PageHeader.d.ts +3 -1
  347. package/lib/page-header/src/PageHeader.js +26 -17
  348. package/lib/pagination/src/Pagination.d.ts +13 -1
  349. package/lib/pagination/src/Pagination.js +58 -51
  350. package/lib/popover/src/PopoverBody.js +9 -3
  351. package/lib/progress/src/Progress.d.ts +2 -2
  352. package/lib/progress/src/Progress.js +11 -5
  353. package/lib/radio/src/Radio.d.ts +3 -1
  354. package/lib/radio/src/Radio.js +31 -22
  355. package/lib/radio/src/RadioGroup.d.ts +3 -1
  356. package/lib/radio/src/RadioGroup.js +30 -21
  357. package/lib/rate/src/Rate.d.ts +3 -1
  358. package/lib/rate/src/Rate.js +42 -21
  359. package/lib/result/src/Result.d.ts +4 -2
  360. package/lib/result/src/Result.js +35 -18
  361. package/lib/scrollbar/src/ScrollBar.d.ts +12 -1
  362. package/lib/scrollbar/src/ScrollBar.js +4 -0
  363. package/lib/select/src/Select.d.ts +1 -1
  364. package/lib/select/src/Select.js +5 -4
  365. package/lib/spin/src/Spin.d.ts +3 -1
  366. package/lib/spin/src/Spin.js +30 -20
  367. package/lib/statistic/src/Statistic.d.ts +3 -1
  368. package/lib/statistic/src/Statistic.js +28 -20
  369. package/lib/styles.d.ts +1 -0
  370. package/lib/styles.js +9 -7
  371. package/lib/switch/src/Switch.d.ts +13 -1
  372. package/lib/switch/src/Switch.js +81 -56
  373. package/lib/switch/src/styles/index.cssr.js +21 -8
  374. package/lib/switch/styles/dark.js +2 -2
  375. package/lib/switch/styles/light.d.ts +1 -0
  376. package/lib/switch/styles/light.js +2 -2
  377. package/lib/table/src/Table.d.ts +3 -1
  378. package/lib/table/src/Table.js +39 -28
  379. package/lib/table/src/styles/index.cssr.js +1 -1
  380. package/lib/tabs/src/Tabs.d.ts +25 -23
  381. package/lib/tabs/src/Tabs.js +48 -42
  382. package/lib/tabs/src/styles/index.cssr.js +79 -77
  383. package/lib/tag/src/Tag.d.ts +2 -2
  384. package/lib/tag/src/Tag.js +7 -10
  385. package/lib/theme-editor/src/ThemeEditor.js +2 -1
  386. package/lib/themes/dark.js +3 -1
  387. package/lib/themes/light.js +3 -1
  388. package/lib/thing/src/Thing.js +9 -2
  389. package/lib/time-picker/src/TimePicker.d.ts +4 -0
  390. package/lib/transfer/src/TransferList.d.ts +1 -0
  391. package/lib/tree/src/Tree.d.ts +1 -0
  392. package/lib/tree/src/Tree.js +8 -4
  393. package/lib/tree-select/src/TreeSelect.d.ts +13 -0
  394. package/lib/tree-select/src/TreeSelect.js +6 -2
  395. package/lib/typography/src/a.d.ts +3 -1
  396. package/lib/typography/src/a.js +17 -9
  397. package/lib/typography/src/blockquote.d.ts +3 -1
  398. package/lib/typography/src/blockquote.js +20 -11
  399. package/lib/typography/src/create-header.d.ts +3 -1
  400. package/lib/typography/src/create-header.js +24 -15
  401. package/lib/typography/src/headers.d.ts +18 -6
  402. package/lib/typography/src/hr.d.ts +3 -1
  403. package/lib/typography/src/hr.js +17 -9
  404. package/lib/typography/src/ol.d.ts +3 -1
  405. package/lib/typography/src/ol.js +22 -13
  406. package/lib/typography/src/p.d.ts +3 -1
  407. package/lib/typography/src/p.js +22 -14
  408. package/lib/typography/src/text.d.ts +3 -1
  409. package/lib/typography/src/text.js +30 -22
  410. package/lib/typography/src/ul.d.ts +3 -1
  411. package/lib/typography/src/ul.js +22 -13
  412. package/lib/upload/src/interface.d.ts +1 -1
  413. package/lib/version.d.ts +1 -1
  414. package/lib/version.js +1 -1
  415. package/lib/watermark/index.d.ts +2 -0
  416. package/lib/watermark/index.js +8 -0
  417. package/lib/watermark/src/Watermark.d.ts +285 -0
  418. package/lib/watermark/src/Watermark.js +164 -0
  419. package/lib/watermark/src/styles/index.cssr.d.ts +2 -0
  420. package/lib/watermark/src/styles/index.cssr.js +21 -0
  421. package/lib/watermark/styles/dark.d.ts +3 -0
  422. package/lib/watermark/styles/dark.js +14 -0
  423. package/lib/watermark/styles/index.d.ts +3 -0
  424. package/lib/watermark/styles/index.js +10 -0
  425. package/lib/watermark/styles/light.d.ts +5 -0
  426. package/lib/watermark/styles/light.js +15 -0
  427. package/package.json +8 -9
  428. package/volar.d.ts +1 -0
  429. package/web-types.json +252 -29
@@ -12,28 +12,37 @@ exports.default = (0, vue_1.defineComponent)({
12
12
  name: 'Ul',
13
13
  props: ulProps,
14
14
  setup(props) {
15
- const { mergedClsPrefixRef } = (0, _mixins_1.useConfig)(props);
15
+ const { mergedClsPrefixRef, inlineThemeDisabled } = (0, _mixins_1.useConfig)(props);
16
16
  const themeRef = (0, _mixins_1.useTheme)('Typography', '-xl', list_cssr_1.default, styles_1.typographyLight, props, mergedClsPrefixRef);
17
+ const cssVarsRef = (0, vue_1.computed)(() => {
18
+ const { common: { cubicBezierEaseInOut }, self: { olPadding, ulPadding, liMargin, liTextColor, liLineHeight, liFontSize } } = themeRef.value;
19
+ return {
20
+ '--n-bezier': cubicBezierEaseInOut,
21
+ '--n-font-size': liFontSize,
22
+ '--n-line-height': liLineHeight,
23
+ '--n-text-color': liTextColor,
24
+ '--n-li-margin': liMargin,
25
+ '--n-ol-padding': olPadding,
26
+ '--n-ul-padding': ulPadding
27
+ };
28
+ });
29
+ const themeClassHandle = inlineThemeDisabled
30
+ ? (0, _mixins_1.useThemeClass)('ul', undefined, cssVarsRef, props)
31
+ : undefined;
17
32
  return {
18
33
  mergedClsPrefix: mergedClsPrefixRef,
19
- cssVars: (0, vue_1.computed)(() => {
20
- const { common: { cubicBezierEaseInOut }, self: { olPadding, ulPadding, liMargin, liTextColor, liLineHeight, liFontSize } } = themeRef.value;
21
- return {
22
- '--n-bezier': cubicBezierEaseInOut,
23
- '--n-font-size': liFontSize,
24
- '--n-line-height': liLineHeight,
25
- '--n-text-color': liTextColor,
26
- '--n-li-margin': liMargin,
27
- '--n-ol-padding': olPadding,
28
- '--n-ul-padding': ulPadding
29
- };
30
- })
34
+ cssVars: inlineThemeDisabled ? undefined : cssVarsRef,
35
+ themeClass: themeClassHandle === null || themeClassHandle === void 0 ? void 0 : themeClassHandle.themeClass,
36
+ onRender: themeClassHandle === null || themeClassHandle === void 0 ? void 0 : themeClassHandle.onRender
31
37
  };
32
38
  },
33
39
  render() {
40
+ var _a;
34
41
  const { mergedClsPrefix } = this;
42
+ (_a = this.onRender) === null || _a === void 0 ? void 0 : _a.call(this);
35
43
  return ((0, vue_1.h)("ul", { class: [
36
44
  `${mergedClsPrefix}-ul`,
45
+ this.themeClass,
37
46
  this.alignText && `${mergedClsPrefix}-ul--align-text`
38
47
  ], style: this.cssVars }, this.$slots));
39
48
  }
@@ -5,7 +5,7 @@ import type { UploadTheme } from '../styles';
5
5
  export interface FileInfo {
6
6
  id: string;
7
7
  name: string;
8
- percentage: number;
8
+ percentage?: number;
9
9
  status: 'pending' | 'uploading' | 'finished' | 'removed' | 'error';
10
10
  url?: string | null;
11
11
  file?: File | null;
package/lib/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- declare const _default: "2.25.2";
1
+ declare const _default: "2.25.5";
2
2
  export default _default;
package/lib/version.js CHANGED
@@ -1,3 +1,3 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.default = '2.25.2';
3
+ exports.default = '2.25.5';
@@ -0,0 +1,2 @@
1
+ export { default as NWatermark } from './src/Watermark';
2
+ export type { WatermarkProps } from './src/Watermark';
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.NWatermark = void 0;
7
+ var Watermark_1 = require("./src/Watermark");
8
+ Object.defineProperty(exports, "NWatermark", { enumerable: true, get: function () { return __importDefault(Watermark_1).default; } });
@@ -0,0 +1,285 @@
1
+ import { PropType } from 'vue';
2
+ import { ExtractPublicPropTypes } from '../../_utils';
3
+ declare const watermarkProps: {
4
+ readonly debug: BooleanConstructor;
5
+ readonly cross: BooleanConstructor;
6
+ readonly fullscreen: BooleanConstructor;
7
+ readonly width: {
8
+ readonly type: NumberConstructor;
9
+ readonly default: 32;
10
+ };
11
+ readonly height: {
12
+ readonly type: NumberConstructor;
13
+ readonly default: 32;
14
+ };
15
+ readonly zIndex: {
16
+ readonly type: NumberConstructor;
17
+ readonly default: 10;
18
+ };
19
+ readonly xGap: {
20
+ readonly type: NumberConstructor;
21
+ readonly default: 0;
22
+ };
23
+ readonly yGap: {
24
+ readonly type: NumberConstructor;
25
+ readonly default: 0;
26
+ };
27
+ readonly yOffset: {
28
+ readonly type: NumberConstructor;
29
+ readonly default: 0;
30
+ };
31
+ readonly xOffset: {
32
+ readonly type: NumberConstructor;
33
+ readonly default: 0;
34
+ };
35
+ readonly rotate: {
36
+ readonly type: NumberConstructor;
37
+ readonly default: 0;
38
+ };
39
+ readonly image: StringConstructor;
40
+ readonly imageOpacity: {
41
+ readonly type: NumberConstructor;
42
+ readonly default: 1;
43
+ };
44
+ readonly imageHeight: NumberConstructor;
45
+ readonly imageWidth: NumberConstructor;
46
+ readonly content: StringConstructor;
47
+ readonly selectable: {
48
+ readonly type: BooleanConstructor;
49
+ readonly default: true;
50
+ };
51
+ readonly fontSize: {
52
+ readonly type: NumberConstructor;
53
+ readonly default: 14;
54
+ };
55
+ readonly fontFamily: StringConstructor;
56
+ readonly fontStyle: {
57
+ readonly type: PropType<"normal" | "italic" | "oblique" | `oblique ${number}deg`>;
58
+ readonly default: "normal";
59
+ };
60
+ readonly fontVariant: {
61
+ readonly type: StringConstructor;
62
+ readonly default: "";
63
+ };
64
+ readonly fontWeight: {
65
+ readonly type: NumberConstructor;
66
+ readonly default: 400;
67
+ };
68
+ readonly fontColor: {
69
+ readonly type: StringConstructor;
70
+ readonly default: "rgba(128, 128, 128, .3)";
71
+ };
72
+ readonly fontStretch: {
73
+ readonly type: StringConstructor;
74
+ readonly default: "";
75
+ };
76
+ readonly lineHeight: {
77
+ readonly type: NumberConstructor;
78
+ readonly default: 14;
79
+ };
80
+ readonly theme: PropType<import("../../_mixins").Theme<"Watermark", {
81
+ fontFamily: string;
82
+ }, unknown>>;
83
+ readonly themeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Watermark", {
84
+ fontFamily: string;
85
+ }, unknown>>>;
86
+ readonly builtinThemeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Watermark", {
87
+ fontFamily: string;
88
+ }, unknown>>>;
89
+ };
90
+ export declare type WatermarkProps = ExtractPublicPropTypes<typeof watermarkProps>;
91
+ declare const _default: import("vue").DefineComponent<{
92
+ readonly debug: BooleanConstructor;
93
+ readonly cross: BooleanConstructor;
94
+ readonly fullscreen: BooleanConstructor;
95
+ readonly width: {
96
+ readonly type: NumberConstructor;
97
+ readonly default: 32;
98
+ };
99
+ readonly height: {
100
+ readonly type: NumberConstructor;
101
+ readonly default: 32;
102
+ };
103
+ readonly zIndex: {
104
+ readonly type: NumberConstructor;
105
+ readonly default: 10;
106
+ };
107
+ readonly xGap: {
108
+ readonly type: NumberConstructor;
109
+ readonly default: 0;
110
+ };
111
+ readonly yGap: {
112
+ readonly type: NumberConstructor;
113
+ readonly default: 0;
114
+ };
115
+ readonly yOffset: {
116
+ readonly type: NumberConstructor;
117
+ readonly default: 0;
118
+ };
119
+ readonly xOffset: {
120
+ readonly type: NumberConstructor;
121
+ readonly default: 0;
122
+ };
123
+ readonly rotate: {
124
+ readonly type: NumberConstructor;
125
+ readonly default: 0;
126
+ };
127
+ readonly image: StringConstructor;
128
+ readonly imageOpacity: {
129
+ readonly type: NumberConstructor;
130
+ readonly default: 1;
131
+ };
132
+ readonly imageHeight: NumberConstructor;
133
+ readonly imageWidth: NumberConstructor;
134
+ readonly content: StringConstructor;
135
+ readonly selectable: {
136
+ readonly type: BooleanConstructor;
137
+ readonly default: true;
138
+ };
139
+ readonly fontSize: {
140
+ readonly type: NumberConstructor;
141
+ readonly default: 14;
142
+ };
143
+ readonly fontFamily: StringConstructor;
144
+ readonly fontStyle: {
145
+ readonly type: PropType<"normal" | "italic" | "oblique" | `oblique ${number}deg`>;
146
+ readonly default: "normal";
147
+ };
148
+ readonly fontVariant: {
149
+ readonly type: StringConstructor;
150
+ readonly default: "";
151
+ };
152
+ readonly fontWeight: {
153
+ readonly type: NumberConstructor;
154
+ readonly default: 400;
155
+ };
156
+ readonly fontColor: {
157
+ readonly type: StringConstructor;
158
+ readonly default: "rgba(128, 128, 128, .3)";
159
+ };
160
+ readonly fontStretch: {
161
+ readonly type: StringConstructor;
162
+ readonly default: "";
163
+ };
164
+ readonly lineHeight: {
165
+ readonly type: NumberConstructor;
166
+ readonly default: 14;
167
+ };
168
+ readonly theme: PropType<import("../../_mixins").Theme<"Watermark", {
169
+ fontFamily: string;
170
+ }, unknown>>;
171
+ readonly themeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Watermark", {
172
+ fontFamily: string;
173
+ }, unknown>>>;
174
+ readonly builtinThemeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Watermark", {
175
+ fontFamily: string;
176
+ }, unknown>>>;
177
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
178
+ readonly debug: BooleanConstructor;
179
+ readonly cross: BooleanConstructor;
180
+ readonly fullscreen: BooleanConstructor;
181
+ readonly width: {
182
+ readonly type: NumberConstructor;
183
+ readonly default: 32;
184
+ };
185
+ readonly height: {
186
+ readonly type: NumberConstructor;
187
+ readonly default: 32;
188
+ };
189
+ readonly zIndex: {
190
+ readonly type: NumberConstructor;
191
+ readonly default: 10;
192
+ };
193
+ readonly xGap: {
194
+ readonly type: NumberConstructor;
195
+ readonly default: 0;
196
+ };
197
+ readonly yGap: {
198
+ readonly type: NumberConstructor;
199
+ readonly default: 0;
200
+ };
201
+ readonly yOffset: {
202
+ readonly type: NumberConstructor;
203
+ readonly default: 0;
204
+ };
205
+ readonly xOffset: {
206
+ readonly type: NumberConstructor;
207
+ readonly default: 0;
208
+ };
209
+ readonly rotate: {
210
+ readonly type: NumberConstructor;
211
+ readonly default: 0;
212
+ };
213
+ readonly image: StringConstructor;
214
+ readonly imageOpacity: {
215
+ readonly type: NumberConstructor;
216
+ readonly default: 1;
217
+ };
218
+ readonly imageHeight: NumberConstructor;
219
+ readonly imageWidth: NumberConstructor;
220
+ readonly content: StringConstructor;
221
+ readonly selectable: {
222
+ readonly type: BooleanConstructor;
223
+ readonly default: true;
224
+ };
225
+ readonly fontSize: {
226
+ readonly type: NumberConstructor;
227
+ readonly default: 14;
228
+ };
229
+ readonly fontFamily: StringConstructor;
230
+ readonly fontStyle: {
231
+ readonly type: PropType<"normal" | "italic" | "oblique" | `oblique ${number}deg`>;
232
+ readonly default: "normal";
233
+ };
234
+ readonly fontVariant: {
235
+ readonly type: StringConstructor;
236
+ readonly default: "";
237
+ };
238
+ readonly fontWeight: {
239
+ readonly type: NumberConstructor;
240
+ readonly default: 400;
241
+ };
242
+ readonly fontColor: {
243
+ readonly type: StringConstructor;
244
+ readonly default: "rgba(128, 128, 128, .3)";
245
+ };
246
+ readonly fontStretch: {
247
+ readonly type: StringConstructor;
248
+ readonly default: "";
249
+ };
250
+ readonly lineHeight: {
251
+ readonly type: NumberConstructor;
252
+ readonly default: 14;
253
+ };
254
+ readonly theme: PropType<import("../../_mixins").Theme<"Watermark", {
255
+ fontFamily: string;
256
+ }, unknown>>;
257
+ readonly themeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Watermark", {
258
+ fontFamily: string;
259
+ }, unknown>>>;
260
+ readonly builtinThemeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Watermark", {
261
+ fontFamily: string;
262
+ }, unknown>>>;
263
+ }>>, {
264
+ fontSize: number;
265
+ fontStretch: string;
266
+ fontStyle: "normal" | "italic" | "oblique" | `oblique ${number}deg`;
267
+ fontVariant: string;
268
+ fontWeight: number;
269
+ height: number;
270
+ lineHeight: number;
271
+ rotate: number;
272
+ width: number;
273
+ zIndex: number;
274
+ cross: boolean;
275
+ xGap: number;
276
+ yGap: number;
277
+ selectable: boolean;
278
+ fullscreen: boolean;
279
+ debug: boolean;
280
+ yOffset: number;
281
+ xOffset: number;
282
+ imageOpacity: number;
283
+ fontColor: string;
284
+ }>;
285
+ export default _default;
@@ -0,0 +1,164 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ const vue_1 = require("vue");
7
+ const vooks_1 = require("vooks");
8
+ const _mixins_1 = require("../../_mixins");
9
+ const _utils_1 = require("../../_utils");
10
+ const styles_1 = require("../styles");
11
+ const index_cssr_1 = __importDefault(require("./styles/index.cssr"));
12
+ function getRatio(context) {
13
+ if (!context) {
14
+ return 1;
15
+ }
16
+ const backingStore = context.backingStorePixelRatio ||
17
+ context.webkitBackingStorePixelRatio ||
18
+ context.mozBackingStorePixelRatio ||
19
+ context.msBackingStorePixelRatio ||
20
+ context.oBackingStorePixelRatio ||
21
+ context.backingStorePixelRatio ||
22
+ 1;
23
+ return (window.devicePixelRatio || 1) / backingStore;
24
+ }
25
+ const watermarkProps = Object.assign(Object.assign({}, _mixins_1.useTheme.props), { debug: Boolean, cross: Boolean, fullscreen: Boolean, width: {
26
+ type: Number,
27
+ default: 32
28
+ }, height: {
29
+ type: Number,
30
+ default: 32
31
+ }, zIndex: {
32
+ type: Number,
33
+ default: 10
34
+ }, xGap: {
35
+ type: Number,
36
+ default: 0
37
+ }, yGap: {
38
+ type: Number,
39
+ default: 0
40
+ }, yOffset: {
41
+ type: Number,
42
+ default: 0
43
+ }, xOffset: {
44
+ type: Number,
45
+ default: 0
46
+ }, rotate: {
47
+ type: Number,
48
+ default: 0
49
+ }, image: String, imageOpacity: { type: Number, default: 1 }, imageHeight: Number, imageWidth: Number, content: String, selectable: {
50
+ type: Boolean,
51
+ default: true
52
+ }, fontSize: {
53
+ type: Number,
54
+ default: 14
55
+ }, fontFamily: String, fontStyle: {
56
+ type: String,
57
+ default: 'normal'
58
+ }, fontVariant: {
59
+ type: String,
60
+ default: ''
61
+ }, fontWeight: {
62
+ type: Number,
63
+ default: 400
64
+ }, fontColor: {
65
+ type: String,
66
+ default: 'rgba(128, 128, 128, .3)'
67
+ }, fontStretch: {
68
+ type: String,
69
+ default: ''
70
+ }, lineHeight: {
71
+ type: Number,
72
+ default: 14
73
+ } });
74
+ exports.default = (0, vue_1.defineComponent)({
75
+ name: 'Watermark',
76
+ props: watermarkProps,
77
+ setup(props, { slots }) {
78
+ const { mergedClsPrefixRef } = (0, _mixins_1.useConfig)(props);
79
+ const themeRef = (0, _mixins_1.useTheme)('Watermark', '-watermark', index_cssr_1.default, styles_1.watermarkLight, props);
80
+ const base64UrlRef = (0, vue_1.ref)('');
81
+ const canvas = document.createElement('canvas');
82
+ const ctx = canvas.getContext('2d');
83
+ const fontsReadyRef = (0, vue_1.ref)(false);
84
+ (0, vooks_1.onFontsReady)(() => (fontsReadyRef.value = true));
85
+ (0, vue_1.watchEffect)(() => {
86
+ void fontsReadyRef.value;
87
+ const ratio = getRatio(ctx);
88
+ const { xGap, yGap, width, height, yOffset, xOffset, rotate, image, content, fontColor, fontStyle, fontVariant, fontStretch, fontWeight, fontFamily, fontSize, lineHeight, debug } = props;
89
+ const canvasWidth = (xGap + width) * ratio;
90
+ const canvasHeight = (yGap + height) * ratio;
91
+ const canvasOffsetLeft = xOffset * ratio;
92
+ const canvasOffsetTop = yOffset * ratio;
93
+ canvas.width = canvasWidth;
94
+ canvas.height = canvasHeight;
95
+ if (ctx) {
96
+ ctx.translate(0, 0);
97
+ const markWidth = width * ratio;
98
+ const markHeight = height * ratio;
99
+ if (debug) {
100
+ ctx.strokeStyle = 'grey';
101
+ ctx.strokeRect(0, 0, markWidth, markHeight);
102
+ }
103
+ ctx.rotate(rotate * (Math.PI / 180));
104
+ if (image) {
105
+ const img = new Image();
106
+ img.crossOrigin = 'anonymous';
107
+ img.referrerPolicy = 'no-referrer';
108
+ img.src = image;
109
+ img.onload = () => {
110
+ ctx.globalAlpha = props.imageOpacity;
111
+ const { imageWidth, imageHeight } = props;
112
+ ctx.drawImage(img, canvasOffsetLeft, canvasOffsetTop, (props.imageWidth ||
113
+ (imageHeight
114
+ ? (img.width * imageHeight) / img.height
115
+ : img.width)) * ratio, (props.imageHeight ||
116
+ (imageWidth
117
+ ? (img.height * imageWidth) / img.width
118
+ : img.height)) * ratio);
119
+ base64UrlRef.value = canvas.toDataURL();
120
+ };
121
+ }
122
+ else if (content) {
123
+ if (debug) {
124
+ ctx.strokeStyle = 'green';
125
+ ctx.strokeRect(0, 0, markWidth, markHeight);
126
+ }
127
+ ctx.font = `${fontStyle} ${fontVariant} ${fontWeight} ${fontStretch} ${fontSize * ratio}px/${lineHeight * ratio}px ${fontFamily || themeRef.value.self.fontFamily}`;
128
+ ctx.fillStyle = fontColor;
129
+ ctx.fillText(content, canvasOffsetLeft, canvasOffsetTop + lineHeight * ratio);
130
+ base64UrlRef.value = canvas.toDataURL();
131
+ }
132
+ }
133
+ else {
134
+ (0, _utils_1.warnOnce)('watermark', 'Canvas is not supported in the browser.');
135
+ }
136
+ });
137
+ return () => {
138
+ var _a;
139
+ const watarmarkNode = ((0, vue_1.h)("div", { class: [
140
+ `${mergedClsPrefixRef.value}-watermark`,
141
+ props.fullscreen &&
142
+ `${mergedClsPrefixRef.value}-watermark--fullscreen`
143
+ ], style: {
144
+ zIndex: props.zIndex,
145
+ backgroundSize: `${props.xGap + props.width}px`,
146
+ backgroundPosition: props.cross
147
+ ? `${props.width / 2}px ${props.height / 2}px, 0 0`
148
+ : '',
149
+ backgroundImage: props.cross
150
+ ? `url(${base64UrlRef.value}), url(${base64UrlRef.value})`
151
+ : `url(${base64UrlRef.value})`
152
+ } }));
153
+ if (props.fullscreen)
154
+ return watarmarkNode;
155
+ return ((0, vue_1.h)("div", { class: [
156
+ `${mergedClsPrefixRef.value}-watermark-container`,
157
+ props.selectable &&
158
+ `${mergedClsPrefixRef.value}-watermark-container--selectable`
159
+ ] }, (_a = slots.default) === null || _a === void 0 ? void 0 :
160
+ _a.call(slots),
161
+ watarmarkNode));
162
+ };
163
+ }
164
+ });
@@ -0,0 +1,2 @@
1
+ declare const _default: import("css-render").CNode;
2
+ export default _default;
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+
7
+ const cssr_1 = require("../../../_utils/cssr");
8
+
9
+ exports.default = (0, cssr_1.c)([(0, cssr_1.cB)('watermark-container', `
10
+ position: relative;
11
+ `, [(0, cssr_1.cNotM)('selectable', 'user-select: none;')]), (0, cssr_1.cB)('watermark', `
12
+ position: absolute;
13
+ top: 0;
14
+ left: 0;
15
+ width: 100%;
16
+ height: 100%;
17
+ pointer-events: none;
18
+ background-repeat: repeat;
19
+ `, [(0, cssr_1.cM)('fullscreen', `
20
+ position: fixed;
21
+ `)])]);
@@ -0,0 +1,3 @@
1
+ import type { WatermarkTheme } from './light';
2
+ declare const watermarkDark: WatermarkTheme;
3
+ export default watermarkDark;
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const common_1 = require("../../_styles/common");
4
+ const watermarkDark = {
5
+ name: 'Watermark',
6
+ common: common_1.commonDark,
7
+ self(vars) {
8
+ const { fontFamily } = vars;
9
+ return {
10
+ fontFamily
11
+ };
12
+ }
13
+ };
14
+ exports.default = watermarkDark;
@@ -0,0 +1,3 @@
1
+ export { default as watermarkDark } from './dark';
2
+ export { default as watermarkLight } from './light';
3
+ export type { WatermarkTheme } from './light';
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.watermarkLight = exports.watermarkDark = void 0;
7
+ var dark_1 = require("./dark");
8
+ Object.defineProperty(exports, "watermarkDark", { enumerable: true, get: function () { return __importDefault(dark_1).default; } });
9
+ var light_1 = require("./light");
10
+ Object.defineProperty(exports, "watermarkLight", { enumerable: true, get: function () { return __importDefault(light_1).default; } });
@@ -0,0 +1,5 @@
1
+ declare const watermarkLight: import("../../_mixins").Theme<"Watermark", {
2
+ fontFamily: string;
3
+ }, unknown>;
4
+ export default watermarkLight;
5
+ export declare type WatermarkTheme = typeof watermarkLight;
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const common_1 = require("../../_styles/common");
4
+ const _mixins_1 = require("../../_mixins");
5
+ const watermarkLight = (0, _mixins_1.createTheme)({
6
+ name: 'Watermark',
7
+ common: common_1.commonLight,
8
+ self(vars) {
9
+ const { fontFamily } = vars;
10
+ return {
11
+ fontFamily
12
+ };
13
+ }
14
+ });
15
+ exports.default = watermarkLight;