@uzum-tech/ui 1.8.1 → 1.9.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 (303) hide show
  1. package/dist/index.js +847 -249
  2. package/dist/index.prod.js +3 -3
  3. package/es/_internal/scrollbar/src/Scrollbar.d.ts +119 -17
  4. package/es/_internal/scrollbar/src/Scrollbar.js +121 -68
  5. package/es/_internal/scrollbar/src/styles/index.cssr.js +32 -15
  6. package/es/_internal/scrollbar/styles/common.d.ts +7 -0
  7. package/es/_internal/scrollbar/styles/common.js +7 -0
  8. package/es/_internal/scrollbar/styles/light.d.ts +8 -0
  9. package/es/_internal/scrollbar/styles/light.js +3 -5
  10. package/es/_internal/select-menu/src/SelectMenu.d.ts +57 -1
  11. package/es/_internal/select-menu/styles/light.d.ts +8 -0
  12. package/es/_internal/selection/src/Selection.d.ts +3 -1
  13. package/es/_internal/selection/src/Selection.js +3 -1
  14. package/es/_utils/css/index.d.ts +1 -0
  15. package/es/_utils/css/index.js +1 -0
  16. package/es/_utils/css/rtl-inset.d.ts +1 -0
  17. package/es/_utils/css/rtl-inset.js +5 -0
  18. package/es/_utils/index.d.ts +1 -1
  19. package/es/_utils/index.js +1 -1
  20. package/es/auto-complete/src/AutoComplete.d.ts +88 -0
  21. package/es/auto-complete/styles/light.d.ts +8 -0
  22. package/es/back-top/src/BackTop.d.ts +1 -1
  23. package/es/button/src/Button.d.ts +72 -0
  24. package/es/button/src/Button.js +13 -7
  25. package/es/button/src/styles/index.cssr.js +1 -2
  26. package/es/button/styles/light.d.ts +8 -0
  27. package/es/button/styles/light.js +7 -7
  28. package/es/calendar/src/Calendar.d.ts +80 -0
  29. package/es/calendar/styles/light.d.ts +8 -0
  30. package/es/cascader/src/Cascader.d.ts +168 -0
  31. package/es/cascader/src/CascaderMenu.d.ts +24 -0
  32. package/es/cascader/src/CascaderOption.d.ts +24 -0
  33. package/es/cascader/src/CascaderSelectMenu.d.ts +24 -0
  34. package/es/cascader/src/CascaderSubmenu.d.ts +25 -1
  35. package/es/cascader/styles/light.d.ts +16 -0
  36. package/es/chat/src/Chat.d.ts +175 -7
  37. package/es/chat/src/Chat.js +11 -12
  38. package/es/chat/src/ChatListItems.d.ts +192 -0
  39. package/es/chat/src/ChatListItems.js +4 -1
  40. package/es/chat/src/ChatMessages.d.ts +192 -0
  41. package/es/chat/src/styles/index.cssr.js +1 -3
  42. package/es/chat/styles/dark.d.ts +16 -0
  43. package/es/chat/styles/light.d.ts +16 -0
  44. package/es/color-picker/src/ColorInputUnit.d.ts +8 -0
  45. package/es/color-picker/src/ColorPicker.d.ts +72 -0
  46. package/es/color-picker/styles/light.d.ts +8 -0
  47. package/es/components.d.ts +2 -0
  48. package/es/components.js +2 -0
  49. package/es/data-table/src/DataTable.d.ts +240 -0
  50. package/es/data-table/src/HeaderButton/FilterButton.d.ts +48 -0
  51. package/es/data-table/src/HeaderButton/FilterMenu.d.ts +48 -0
  52. package/es/data-table/src/TableParts/Body.d.ts +49 -1
  53. package/es/data-table/src/TableParts/Header.d.ts +48 -0
  54. package/es/data-table/src/interface.d.ts +96 -0
  55. package/es/data-table/styles/light.d.ts +32 -0
  56. package/es/date-picker/src/DatePicker.d.ts +339 -3
  57. package/es/date-picker/src/panel/date.d.ts +49 -1
  58. package/es/date-picker/src/panel/daterange.d.ts +50 -2
  59. package/es/date-picker/src/panel/datetime.d.ts +49 -1
  60. package/es/date-picker/src/panel/datetimerange.d.ts +50 -2
  61. package/es/date-picker/src/panel/panelMonth.d.ts +98 -2
  62. package/es/date-picker/src/panel/panelMonthContent.d.ts +49 -1
  63. package/es/date-picker/src/panel/panelYear.d.ts +98 -2
  64. package/es/date-picker/src/panel/panelYearContent.d.ts +49 -1
  65. package/es/date-picker/src/panel/use-calendar.d.ts +48 -0
  66. package/es/date-picker/src/panel/use-dual-calendar.d.ts +48 -0
  67. package/es/date-picker/src/panel/use-panel-common.d.ts +48 -0
  68. package/es/date-picker/styles/light.d.ts +32 -0
  69. package/es/dialog/src/Dialog.d.ts +56 -0
  70. package/es/dialog/src/DialogProvider.d.ts +18 -2
  71. package/es/dialog/styles/light.d.ts +8 -0
  72. package/es/drawer/src/Drawer.d.ts +81 -1
  73. package/es/drawer/src/DrawerBodyWrapper.d.ts +9 -1
  74. package/es/drawer/src/DrawerContent.d.ts +8 -0
  75. package/es/drawer/styles/light.d.ts +8 -0
  76. package/es/dropdown/src/Dropdown.d.ts +1 -1
  77. package/es/dynamic-input/src/DynamicInput.d.ts +80 -0
  78. package/es/dynamic-input/src/InputPreset.d.ts +8 -0
  79. package/es/dynamic-input/src/PairPreset.d.ts +8 -0
  80. package/es/dynamic-input/styles/light.d.ts +8 -0
  81. package/es/dynamic-tags/src/DynamicTags.d.ts +80 -0
  82. package/es/dynamic-tags/styles/light.d.ts +8 -0
  83. package/es/infinite-scroll/index.d.ts +2 -0
  84. package/es/infinite-scroll/index.js +1 -0
  85. package/es/infinite-scroll/src/InfiniteScroll.d.ts +45 -0
  86. package/es/infinite-scroll/src/InfiniteScroll.js +78 -0
  87. package/es/input-number/src/InputNumber.d.ts +80 -0
  88. package/es/input-number/styles/light.d.ts +8 -0
  89. package/es/layout/src/Layout.d.ts +112 -0
  90. package/es/layout/src/LayoutContent.d.ts +56 -0
  91. package/es/layout/src/LayoutFooter.d.ts +72 -0
  92. package/es/layout/src/LayoutHeader.d.ts +48 -0
  93. package/es/layout/src/LayoutSider.d.ts +56 -0
  94. package/es/layout/styles/light.d.ts +8 -0
  95. package/es/legacy-transfer/src/Transfer.d.ts +160 -0
  96. package/es/legacy-transfer/src/TransferFilter.d.ts +16 -0
  97. package/es/legacy-transfer/src/TransferList.d.ts +17 -1
  98. package/es/legacy-transfer/src/TransferListItem.d.ts +16 -0
  99. package/es/legacy-transfer/styles/light.d.ts +16 -0
  100. package/es/log/src/Log.d.ts +80 -0
  101. package/es/log/styles/light.d.ts +8 -0
  102. package/es/mention/src/Mention.d.ts +88 -0
  103. package/es/mention/styles/light.d.ts +8 -0
  104. package/es/menu/src/Menu.d.ts +1 -1
  105. package/es/modal/src/BodyWrapper.d.ts +25 -1
  106. package/es/modal/src/Modal.d.ts +145 -1
  107. package/es/modal/styles/light.d.ts +16 -0
  108. package/es/notification/src/Notification.d.ts +5 -0
  109. package/es/notification/src/Notification.js +16 -6
  110. package/es/notification/src/NotificationContainer.d.ts +20 -0
  111. package/es/notification/src/NotificationProvider.d.ts +180 -0
  112. package/es/notification/src/styles/index.cssr.js +12 -8
  113. package/es/notification/styles/light.d.ts +32 -0
  114. package/es/notification/styles/light.js +9 -8
  115. package/es/pagination/src/Pagination.d.ts +176 -0
  116. package/es/pagination/styles/light.d.ts +16 -0
  117. package/es/popconfirm/src/Popconfirm.d.ts +80 -0
  118. package/es/popconfirm/styles/light.d.ts +8 -0
  119. package/es/popselect/src/Popselect.d.ts +88 -0
  120. package/es/popselect/src/PopselectPanel.d.ts +16 -0
  121. package/es/popselect/styles/light.d.ts +8 -0
  122. package/es/scrollbar/src/Scrollbar.d.ts +72 -0
  123. package/es/select/src/Select.d.ts +88 -0
  124. package/es/select/styles/light.d.ts +8 -0
  125. package/es/time-picker/src/Panel.d.ts +16 -0
  126. package/es/time-picker/src/TimePicker.d.ts +160 -0
  127. package/es/time-picker/styles/light.d.ts +16 -0
  128. package/es/transfer/src/Transfer.d.ts +160 -0
  129. package/es/transfer/src/TransferFilter.d.ts +16 -0
  130. package/es/transfer/src/TransferList.d.ts +17 -1
  131. package/es/transfer/src/TransferListItem.d.ts +16 -0
  132. package/es/transfer/styles/light.d.ts +16 -0
  133. package/es/tree/src/Tree.d.ts +82 -2
  134. package/es/tree/src/TreeNodeCheckbox.d.ts +8 -0
  135. package/es/tree/styles/light.d.ts +8 -0
  136. package/es/tree-select/src/TreeSelect.d.ts +89 -1
  137. package/es/tree-select/styles/light.d.ts +8 -0
  138. package/es/upload/src/Upload.d.ts +90 -0
  139. package/es/upload/src/Upload.js +2 -1
  140. package/es/upload/src/UploadFile.d.ts +9 -0
  141. package/es/upload/src/UploadProgress.d.ts +9 -0
  142. package/es/upload/src/styles/index.cssr.js +1 -0
  143. package/es/upload/src/useUploadActionsRender.js +5 -1
  144. package/es/upload/styles/light.d.ts +10 -0
  145. package/es/upload/styles/light.js +6 -5
  146. package/es/version.d.ts +1 -1
  147. package/es/version.js +1 -1
  148. package/es/virtual-list/index.d.ts +2 -0
  149. package/es/virtual-list/index.js +1 -0
  150. package/es/virtual-list/src/VirtualList.d.ts +146 -0
  151. package/es/virtual-list/src/VirtualList.js +103 -0
  152. package/lib/_internal/scrollbar/src/Scrollbar.d.ts +119 -17
  153. package/lib/_internal/scrollbar/src/Scrollbar.js +118 -65
  154. package/lib/_internal/scrollbar/src/styles/index.cssr.js +32 -15
  155. package/lib/_internal/scrollbar/styles/common.d.ts +7 -0
  156. package/lib/_internal/scrollbar/styles/common.js +10 -0
  157. package/lib/_internal/scrollbar/styles/light.d.ts +8 -0
  158. package/lib/_internal/scrollbar/styles/light.js +3 -5
  159. package/lib/_internal/select-menu/src/SelectMenu.d.ts +57 -1
  160. package/lib/_internal/select-menu/styles/light.d.ts +8 -0
  161. package/lib/_internal/selection/src/Selection.d.ts +3 -1
  162. package/lib/_internal/selection/src/Selection.js +3 -1
  163. package/lib/_utils/css/index.d.ts +1 -0
  164. package/lib/_utils/css/index.js +3 -1
  165. package/lib/_utils/css/rtl-inset.d.ts +1 -0
  166. package/lib/_utils/css/rtl-inset.js +8 -0
  167. package/lib/_utils/index.d.ts +1 -1
  168. package/lib/_utils/index.js +2 -1
  169. package/lib/auto-complete/src/AutoComplete.d.ts +88 -0
  170. package/lib/auto-complete/styles/light.d.ts +8 -0
  171. package/lib/back-top/src/BackTop.d.ts +1 -1
  172. package/lib/button/src/Button.d.ts +72 -0
  173. package/lib/button/src/Button.js +13 -7
  174. package/lib/button/src/styles/index.cssr.js +1 -2
  175. package/lib/button/styles/light.d.ts +8 -0
  176. package/lib/button/styles/light.js +7 -7
  177. package/lib/calendar/src/Calendar.d.ts +80 -0
  178. package/lib/calendar/styles/light.d.ts +8 -0
  179. package/lib/cascader/src/Cascader.d.ts +168 -0
  180. package/lib/cascader/src/CascaderMenu.d.ts +24 -0
  181. package/lib/cascader/src/CascaderOption.d.ts +24 -0
  182. package/lib/cascader/src/CascaderSelectMenu.d.ts +24 -0
  183. package/lib/cascader/src/CascaderSubmenu.d.ts +25 -1
  184. package/lib/cascader/styles/light.d.ts +16 -0
  185. package/lib/chat/src/Chat.d.ts +175 -7
  186. package/lib/chat/src/Chat.js +11 -12
  187. package/lib/chat/src/ChatListItems.d.ts +192 -0
  188. package/lib/chat/src/ChatListItems.js +4 -1
  189. package/lib/chat/src/ChatMessages.d.ts +192 -0
  190. package/lib/chat/src/styles/index.cssr.js +1 -3
  191. package/lib/chat/styles/dark.d.ts +16 -0
  192. package/lib/chat/styles/light.d.ts +16 -0
  193. package/lib/color-picker/src/ColorInputUnit.d.ts +8 -0
  194. package/lib/color-picker/src/ColorPicker.d.ts +72 -0
  195. package/lib/color-picker/styles/light.d.ts +8 -0
  196. package/lib/components.d.ts +2 -0
  197. package/lib/components.js +2 -0
  198. package/lib/data-table/src/DataTable.d.ts +240 -0
  199. package/lib/data-table/src/HeaderButton/FilterButton.d.ts +48 -0
  200. package/lib/data-table/src/HeaderButton/FilterMenu.d.ts +48 -0
  201. package/lib/data-table/src/TableParts/Body.d.ts +49 -1
  202. package/lib/data-table/src/TableParts/Header.d.ts +48 -0
  203. package/lib/data-table/src/interface.d.ts +96 -0
  204. package/lib/data-table/styles/light.d.ts +32 -0
  205. package/lib/date-picker/src/DatePicker.d.ts +339 -3
  206. package/lib/date-picker/src/panel/date.d.ts +49 -1
  207. package/lib/date-picker/src/panel/daterange.d.ts +50 -2
  208. package/lib/date-picker/src/panel/datetime.d.ts +49 -1
  209. package/lib/date-picker/src/panel/datetimerange.d.ts +50 -2
  210. package/lib/date-picker/src/panel/panelMonth.d.ts +98 -2
  211. package/lib/date-picker/src/panel/panelMonthContent.d.ts +49 -1
  212. package/lib/date-picker/src/panel/panelYear.d.ts +98 -2
  213. package/lib/date-picker/src/panel/panelYearContent.d.ts +49 -1
  214. package/lib/date-picker/src/panel/use-calendar.d.ts +48 -0
  215. package/lib/date-picker/src/panel/use-dual-calendar.d.ts +48 -0
  216. package/lib/date-picker/src/panel/use-panel-common.d.ts +48 -0
  217. package/lib/date-picker/styles/light.d.ts +32 -0
  218. package/lib/dialog/src/Dialog.d.ts +56 -0
  219. package/lib/dialog/src/DialogProvider.d.ts +18 -2
  220. package/lib/dialog/styles/light.d.ts +8 -0
  221. package/lib/drawer/src/Drawer.d.ts +81 -1
  222. package/lib/drawer/src/DrawerBodyWrapper.d.ts +9 -1
  223. package/lib/drawer/src/DrawerContent.d.ts +8 -0
  224. package/lib/drawer/styles/light.d.ts +8 -0
  225. package/lib/dropdown/src/Dropdown.d.ts +1 -1
  226. package/lib/dynamic-input/src/DynamicInput.d.ts +80 -0
  227. package/lib/dynamic-input/src/InputPreset.d.ts +8 -0
  228. package/lib/dynamic-input/src/PairPreset.d.ts +8 -0
  229. package/lib/dynamic-input/styles/light.d.ts +8 -0
  230. package/lib/dynamic-tags/src/DynamicTags.d.ts +80 -0
  231. package/lib/dynamic-tags/styles/light.d.ts +8 -0
  232. package/lib/infinite-scroll/index.d.ts +2 -0
  233. package/lib/infinite-scroll/index.js +9 -0
  234. package/lib/infinite-scroll/src/InfiniteScroll.d.ts +45 -0
  235. package/lib/infinite-scroll/src/InfiniteScroll.js +81 -0
  236. package/lib/input-number/src/InputNumber.d.ts +80 -0
  237. package/lib/input-number/styles/light.d.ts +8 -0
  238. package/lib/layout/src/Layout.d.ts +112 -0
  239. package/lib/layout/src/LayoutContent.d.ts +56 -0
  240. package/lib/layout/src/LayoutFooter.d.ts +72 -0
  241. package/lib/layout/src/LayoutHeader.d.ts +48 -0
  242. package/lib/layout/src/LayoutSider.d.ts +56 -0
  243. package/lib/layout/styles/light.d.ts +8 -0
  244. package/lib/legacy-transfer/src/Transfer.d.ts +160 -0
  245. package/lib/legacy-transfer/src/TransferFilter.d.ts +16 -0
  246. package/lib/legacy-transfer/src/TransferList.d.ts +17 -1
  247. package/lib/legacy-transfer/src/TransferListItem.d.ts +16 -0
  248. package/lib/legacy-transfer/styles/light.d.ts +16 -0
  249. package/lib/log/src/Log.d.ts +80 -0
  250. package/lib/log/styles/light.d.ts +8 -0
  251. package/lib/mention/src/Mention.d.ts +88 -0
  252. package/lib/mention/styles/light.d.ts +8 -0
  253. package/lib/menu/src/Menu.d.ts +1 -1
  254. package/lib/modal/src/BodyWrapper.d.ts +25 -1
  255. package/lib/modal/src/Modal.d.ts +145 -1
  256. package/lib/modal/styles/light.d.ts +16 -0
  257. package/lib/notification/src/Notification.d.ts +5 -0
  258. package/lib/notification/src/Notification.js +14 -4
  259. package/lib/notification/src/NotificationContainer.d.ts +20 -0
  260. package/lib/notification/src/NotificationProvider.d.ts +180 -0
  261. package/lib/notification/src/styles/index.cssr.js +12 -8
  262. package/lib/notification/styles/light.d.ts +32 -0
  263. package/lib/notification/styles/light.js +9 -8
  264. package/lib/pagination/src/Pagination.d.ts +176 -0
  265. package/lib/pagination/styles/light.d.ts +16 -0
  266. package/lib/popconfirm/src/Popconfirm.d.ts +80 -0
  267. package/lib/popconfirm/styles/light.d.ts +8 -0
  268. package/lib/popselect/src/Popselect.d.ts +88 -0
  269. package/lib/popselect/src/PopselectPanel.d.ts +16 -0
  270. package/lib/popselect/styles/light.d.ts +8 -0
  271. package/lib/scrollbar/src/Scrollbar.d.ts +72 -0
  272. package/lib/select/src/Select.d.ts +88 -0
  273. package/lib/select/styles/light.d.ts +8 -0
  274. package/lib/time-picker/src/Panel.d.ts +16 -0
  275. package/lib/time-picker/src/TimePicker.d.ts +160 -0
  276. package/lib/time-picker/styles/light.d.ts +16 -0
  277. package/lib/transfer/src/Transfer.d.ts +160 -0
  278. package/lib/transfer/src/TransferFilter.d.ts +16 -0
  279. package/lib/transfer/src/TransferList.d.ts +17 -1
  280. package/lib/transfer/src/TransferListItem.d.ts +16 -0
  281. package/lib/transfer/styles/light.d.ts +16 -0
  282. package/lib/tree/src/Tree.d.ts +82 -2
  283. package/lib/tree/src/TreeNodeCheckbox.d.ts +8 -0
  284. package/lib/tree/styles/light.d.ts +8 -0
  285. package/lib/tree-select/src/TreeSelect.d.ts +89 -1
  286. package/lib/tree-select/styles/light.d.ts +8 -0
  287. package/lib/upload/src/Upload.d.ts +90 -0
  288. package/lib/upload/src/Upload.js +2 -1
  289. package/lib/upload/src/UploadFile.d.ts +9 -0
  290. package/lib/upload/src/UploadProgress.d.ts +9 -0
  291. package/lib/upload/src/styles/index.cssr.js +1 -0
  292. package/lib/upload/src/useUploadActionsRender.js +5 -1
  293. package/lib/upload/styles/light.d.ts +10 -0
  294. package/lib/upload/styles/light.js +6 -5
  295. package/lib/version.d.ts +1 -1
  296. package/lib/version.js +1 -1
  297. package/lib/virtual-list/index.d.ts +2 -0
  298. package/lib/virtual-list/index.js +9 -0
  299. package/lib/virtual-list/src/VirtualList.d.ts +146 -0
  300. package/lib/virtual-list/src/VirtualList.js +106 -0
  301. package/package.json +2 -2
  302. package/volar.d.ts +1 -0
  303. package/web-types.json +33 -4
@@ -1,5 +1,5 @@
1
- import { cB, c, cM, cE } from '../../../../_utils/cssr';
2
1
  import { fadeInTransition } from '../../../../_styles/transitions/fade-in.cssr';
2
+ import { c, cB, cE, cM } from '../../../../_utils/cssr';
3
3
  // vars:
4
4
  // --u-scrollbar-bezier
5
5
  // --u-scrollbar-color
@@ -7,6 +7,9 @@ import { fadeInTransition } from '../../../../_styles/transitions/fade-in.cssr';
7
7
  // --u-scrollbar-width
8
8
  // --u-scrollbar-height
9
9
  // --u-scrollbar-border-radius
10
+ // --u-scrollbar-rail-inset-horizontal
11
+ // --u-scrollbar-rail-inset-vertical
12
+ // --u-scrollbar-rail-color
10
13
  export default cB('scrollbar', `
11
14
  overflow: hidden;
12
15
  position: relative;
@@ -24,40 +27,54 @@ export default cB('scrollbar', `
24
27
  width: 0;
25
28
  height: 0;
26
29
  display: none;
27
- `), c('>', [cB('scrollbar-content', `
30
+ `), c('>', [
31
+ // We can't set overflow hidden since it affects positioning.
32
+ cB('scrollbar-content', `
28
33
  box-sizing: border-box;
29
34
  min-width: 100%;
30
35
  `)])])]), c('>, +', [cB('scrollbar-rail', `
31
36
  position: absolute;
32
37
  pointer-events: none;
33
38
  user-select: none;
39
+ background: var(--u-scrollbar-rail-color);
34
40
  -webkit-user-select: none;
35
41
  `, [cM('horizontal', `
36
- left: 2px;
37
- right: 2px;
38
- bottom: 4px;
39
42
  height: var(--u-scrollbar-height);
40
43
  `, [c('>', [cE('scrollbar', `
41
44
  height: var(--u-scrollbar-height);
42
45
  border-radius: var(--u-scrollbar-border-radius);
43
46
  right: 0;
44
- `)])]), cM('vertical', `
45
- right: 4px;
46
- top: 2px;
47
- bottom: 2px;
47
+ `)])]), cM('horizontal--top', `
48
+ top: var(--u-scrollbar-rail-top-horizontal-top);
49
+ right: var(--u-scrollbar-rail-right-horizontal-top);
50
+ bottom: var(--u-scrollbar-rail-bottom-horizontal-top);
51
+ left: var(--u-scrollbar-rail-left-horizontal-top);
52
+ `), cM('horizontal--bottom', `
53
+ top: var(--u-scrollbar-rail-top-horizontal-bottom);
54
+ right: var(--u-scrollbar-rail-right-horizontal-bottom);
55
+ bottom: var(--u-scrollbar-rail-bottom-horizontal-bottom);
56
+ left: var(--u-scrollbar-rail-left-horizontal-bottom);
57
+ `), cM('vertical', `
48
58
  width: var(--u-scrollbar-width);
49
59
  `, [c('>', [cE('scrollbar', `
50
60
  width: var(--u-scrollbar-width);
51
61
  border-radius: var(--u-scrollbar-border-radius);
52
62
  bottom: 0;
53
- `)])]), cM('disabled', [c('>', [cE('scrollbar', {
54
- pointerEvents: 'none'
55
- })])]), c('>', [cE('scrollbar', `
63
+ `)])]), cM('vertical--left', `
64
+ top: var(--u-scrollbar-rail-top-vertical-left);
65
+ right: var(--u-scrollbar-rail-right-vertical-left);
66
+ bottom: var(--u-scrollbar-rail-bottom-vertical-left);
67
+ left: var(--u-scrollbar-rail-left-vertical-left);
68
+ `), cM('vertical--right', `
69
+ top: var(--u-scrollbar-rail-top-vertical-right);
70
+ right: var(--u-scrollbar-rail-right-vertical-right);
71
+ bottom: var(--u-scrollbar-rail-bottom-vertical-right);
72
+ left: var(--u-scrollbar-rail-left-vertical-right);
73
+ `), cM('disabled', [c('>', [cE('scrollbar', 'pointer-events: none;')])]), c('>', [cE('scrollbar', `
74
+ z-index: 1;
56
75
  position: absolute;
57
76
  cursor: pointer;
58
77
  pointer-events: all;
59
78
  background-color: var(--u-scrollbar-color);
60
79
  transition: background-color .2s var(--u-scrollbar-bezier);
61
- `, [fadeInTransition(), c('&:hover', {
62
- backgroundColor: 'var(--u-scrollbar-color-hover)'
63
- })])])])])]);
80
+ `, [fadeInTransition(), c('&:hover', 'background-color: var(--u-scrollbar-color-hover);')])])])])]);
@@ -0,0 +1,7 @@
1
+ export declare const commonVars: {
2
+ railInsetHorizontalBottom: string;
3
+ railInsetHorizontalTop: string;
4
+ railInsetVerticalRight: string;
5
+ railInsetVerticalLeft: string;
6
+ railColor: string;
7
+ };
@@ -0,0 +1,7 @@
1
+ export const commonVars = {
2
+ railInsetHorizontalBottom: 'auto 2px 4px 2px',
3
+ railInsetHorizontalTop: '4px 2px auto 2px',
4
+ railInsetVerticalRight: '2px 4px 2px auto',
5
+ railInsetVerticalLeft: '2px auto 2px 4px',
6
+ railColor: 'transparent'
7
+ };
@@ -1,8 +1,16 @@
1
1
  import type { ThemeCommonVars } from '../../../_styles/common';
2
2
  import type { Theme } from '../../../_mixins';
3
3
  export declare const self: (vars: ThemeCommonVars) => {
4
+ height: string;
5
+ width: string;
6
+ borderRadius: string;
4
7
  color: string;
5
8
  colorHover: string;
9
+ railInsetHorizontalBottom: string;
10
+ railInsetHorizontalTop: string;
11
+ railInsetVerticalRight: string;
12
+ railInsetVerticalLeft: string;
13
+ railColor: string;
6
14
  };
7
15
  export type ScrollbarThemeVars = ReturnType<typeof self>;
8
16
  declare const scrollbarLight: Theme<'Scrollbar', ScrollbarThemeVars>;
@@ -1,10 +1,8 @@
1
1
  import { commonLight } from '../../../_styles/common';
2
+ import { commonVars } from './common';
2
3
  export const self = (vars) => {
3
- const { scrollbarColor, scrollbarColorHover } = vars;
4
- return {
5
- color: scrollbarColor,
6
- colorHover: scrollbarColorHover
7
- };
4
+ const { scrollbarColor, scrollbarColorHover, scrollbarHeight, scrollbarWidth, scrollbarBorderRadius } = vars;
5
+ return Object.assign(Object.assign({}, commonVars), { height: scrollbarHeight, width: scrollbarWidth, borderRadius: scrollbarBorderRadius, color: scrollbarColor, colorHover: scrollbarColorHover });
8
6
  };
9
7
  const scrollbarLight = {
10
8
  name: 'Scrollbar',
@@ -101,8 +101,16 @@ declare const _default: import("vue").DefineComponent<{
101
101
  loadingColor: string;
102
102
  }, {
103
103
  Scrollbar: import("../../../_mixins").Theme<"Scrollbar", {
104
+ height: string;
105
+ width: string;
106
+ borderRadius: string;
104
107
  color: string;
105
108
  colorHover: string;
109
+ railInsetHorizontalBottom: string;
110
+ railInsetHorizontalTop: string;
111
+ railInsetVerticalRight: string;
112
+ railInsetVerticalLeft: string;
113
+ railColor: string;
106
114
  }, any>;
107
115
  Empty: import("../../../_mixins").Theme<"Empty", {
108
116
  iconSizeSmall: string;
@@ -158,8 +166,16 @@ declare const _default: import("vue").DefineComponent<{
158
166
  loadingColor: string;
159
167
  }, {
160
168
  Scrollbar: import("../../../_mixins").Theme<"Scrollbar", {
169
+ height: string;
170
+ width: string;
171
+ borderRadius: string;
161
172
  color: string;
162
173
  colorHover: string;
174
+ railInsetHorizontalBottom: string;
175
+ railInsetHorizontalTop: string;
176
+ railInsetVerticalRight: string;
177
+ railInsetVerticalLeft: string;
178
+ railColor: string;
163
179
  }, any>;
164
180
  Empty: import("../../../_mixins").Theme<"Empty", {
165
181
  iconSizeSmall: string;
@@ -215,8 +231,16 @@ declare const _default: import("vue").DefineComponent<{
215
231
  loadingColor: string;
216
232
  }, {
217
233
  Scrollbar: import("../../../_mixins").Theme<"Scrollbar", {
234
+ height: string;
235
+ width: string;
236
+ borderRadius: string;
218
237
  color: string;
219
238
  colorHover: string;
239
+ railInsetHorizontalBottom: string;
240
+ railInsetHorizontalTop: string;
241
+ railInsetVerticalRight: string;
242
+ railInsetVerticalLeft: string;
243
+ railColor: string;
220
244
  }, any>;
221
245
  Empty: import("../../../_mixins").Theme<"Empty", {
222
246
  iconSizeSmall: string;
@@ -280,8 +304,16 @@ declare const _default: import("vue").DefineComponent<{
280
304
  };
281
305
  peers: {
282
306
  Scrollbar: import("../../../_mixins").Theme<"Scrollbar", {
307
+ height: string;
308
+ width: string;
309
+ borderRadius: string;
283
310
  color: string;
284
311
  colorHover: string;
312
+ railInsetHorizontalBottom: string;
313
+ railInsetHorizontalTop: string;
314
+ railInsetVerticalRight: string;
315
+ railInsetVerticalLeft: string;
316
+ railColor: string;
285
317
  }, any>;
286
318
  Empty: import("../../../_mixins").Theme<"Empty", {
287
319
  iconSizeSmall: string;
@@ -319,7 +351,7 @@ declare const _default: import("vue").DefineComponent<{
319
351
  virtualListRef: import("vue").Ref<{
320
352
  listElRef: HTMLElement;
321
353
  itemsElRef: HTMLElement | null;
322
- scrollTo: import("vueuc/lib/virtual-list/src/VirtualList").ScrollTo;
354
+ scrollTo: import("vueuc").VVirtualListScrollTo;
323
355
  } | null>;
324
356
  scrollbarRef: import("vue").Ref<{
325
357
  $el: HTMLElement;
@@ -475,8 +507,16 @@ declare const _default: import("vue").DefineComponent<{
475
507
  loadingColor: string;
476
508
  }, {
477
509
  Scrollbar: import("../../../_mixins").Theme<"Scrollbar", {
510
+ height: string;
511
+ width: string;
512
+ borderRadius: string;
478
513
  color: string;
479
514
  colorHover: string;
515
+ railInsetHorizontalBottom: string;
516
+ railInsetHorizontalTop: string;
517
+ railInsetVerticalRight: string;
518
+ railInsetVerticalLeft: string;
519
+ railColor: string;
480
520
  }, any>;
481
521
  Empty: import("../../../_mixins").Theme<"Empty", {
482
522
  iconSizeSmall: string;
@@ -532,8 +572,16 @@ declare const _default: import("vue").DefineComponent<{
532
572
  loadingColor: string;
533
573
  }, {
534
574
  Scrollbar: import("../../../_mixins").Theme<"Scrollbar", {
575
+ height: string;
576
+ width: string;
577
+ borderRadius: string;
535
578
  color: string;
536
579
  colorHover: string;
580
+ railInsetHorizontalBottom: string;
581
+ railInsetHorizontalTop: string;
582
+ railInsetVerticalRight: string;
583
+ railInsetVerticalLeft: string;
584
+ railColor: string;
537
585
  }, any>;
538
586
  Empty: import("../../../_mixins").Theme<"Empty", {
539
587
  iconSizeSmall: string;
@@ -589,8 +637,16 @@ declare const _default: import("vue").DefineComponent<{
589
637
  loadingColor: string;
590
638
  }, {
591
639
  Scrollbar: import("../../../_mixins").Theme<"Scrollbar", {
640
+ height: string;
641
+ width: string;
642
+ borderRadius: string;
592
643
  color: string;
593
644
  colorHover: string;
645
+ railInsetHorizontalBottom: string;
646
+ railInsetHorizontalTop: string;
647
+ railInsetVerticalRight: string;
648
+ railInsetVerticalLeft: string;
649
+ railColor: string;
594
650
  }, any>;
595
651
  Empty: import("../../../_mixins").Theme<"Empty", {
596
652
  iconSizeSmall: string;
@@ -67,8 +67,16 @@ declare const internalSelectMenuLight: import("../../../_mixins").Theme<"Interna
67
67
  loadingColor: string;
68
68
  }, {
69
69
  Scrollbar: import("../../../_mixins").Theme<"Scrollbar", {
70
+ height: string;
71
+ width: string;
72
+ borderRadius: string;
70
73
  color: string;
71
74
  colorHover: string;
75
+ railInsetHorizontalBottom: string;
76
+ railInsetHorizontalTop: string;
77
+ railInsetVerticalRight: string;
78
+ railInsetVerticalLeft: string;
79
+ railColor: string;
72
80
  }, any>;
73
81
  Empty: import("../../../_mixins").Theme<"Empty", {
74
82
  iconSizeSmall: string;
@@ -608,7 +608,9 @@ declare const _default: import("vue").DefineComponent<{
608
608
  singleElRef: import("vue").Ref<HTMLElement | null>;
609
609
  patternInputWrapperRef: import("vue").Ref<HTMLElement | null>;
610
610
  overflowRef: import("vue").Ref<{
611
- sync: () => void;
611
+ sync: (options: {
612
+ showAllItemsBeforeCalculate: boolean;
613
+ }) => void;
612
614
  } | null>;
613
615
  inputTagElRef: import("vue").Ref<HTMLElement | null>;
614
616
  handleMouseDown: (e: MouseEvent) => void;
@@ -108,7 +108,9 @@ export default defineComponent({
108
108
  if (patternInputEl) {
109
109
  patternInputEl.style.width = `${patternInputMirrorEl.offsetWidth}px`;
110
110
  if (props.maxTagCount !== 'responsive') {
111
- (_a = overflowRef.value) === null || _a === void 0 ? void 0 : _a.sync();
111
+ (_a = overflowRef.value) === null || _a === void 0 ? void 0 : _a.sync({
112
+ showAllItemsBeforeCalculate: false
113
+ });
112
114
  }
113
115
  }
114
116
  }
@@ -1,3 +1,4 @@
1
1
  export { formatLength } from './format-length';
2
2
  export { color2Class } from './color-to-class';
3
3
  export { resolveSize } from './normalize-size';
4
+ export { rtlInset } from './rtl-inset';
@@ -1,3 +1,4 @@
1
1
  export { formatLength } from './format-length';
2
2
  export { color2Class } from './color-to-class';
3
3
  export { resolveSize } from './normalize-size';
4
+ export { rtlInset } from './rtl-inset';
@@ -0,0 +1 @@
1
+ export declare function rtlInset(inset: string): string;
@@ -0,0 +1,5 @@
1
+ import { getPadding } from 'seemly';
2
+ export function rtlInset(inset) {
3
+ const { left, right, top, bottom } = getPadding(inset);
4
+ return `${top} ${left} ${bottom} ${right}`;
5
+ }
@@ -2,7 +2,7 @@ export { call, keep, omit, flatten, getSlot, getVNodeChildren, keysOf, render, g
2
2
  export type { MaybeArray } from './vue';
3
3
  export { warn, warnOnce, throwError, smallerSize, largerSize, getTitleAttribute, isArrayShallowEqual } from './uzum';
4
4
  export type { ExtractPublicPropTypes, ExtractInternalPropTypes, Mutable } from './uzum';
5
- export { formatLength, color2Class, resolveSize } from './css';
5
+ export { formatLength, color2Class, resolveSize, rtlInset } from './css';
6
6
  export { createKey } from './cssr';
7
7
  export { isJsdom } from './env/is-jsdom';
8
8
  export { isBrowser } from './env/is-browser';
@@ -1,6 +1,6 @@
1
1
  export { call, keep, omit, flatten, getSlot, getVNodeChildren, keysOf, render, getFirstSlotVNode, createDataKey, createRefSetter, createInjectionKey, resolveSlot, resolveSlotWithProps, resolveWrappedSlot, isSlotEmpty, mergeEventHandlers, isNodeVShowFalse, resolveWrappedSlotWithProps, Wrapper } from './vue';
2
2
  export { warn, warnOnce, throwError, smallerSize, largerSize, getTitleAttribute, isArrayShallowEqual } from './uzum';
3
- export { formatLength, color2Class, resolveSize } from './css';
3
+ export { formatLength, color2Class, resolveSize, rtlInset } from './css';
4
4
  export { createKey } from './cssr';
5
5
  export { isJsdom } from './env/is-jsdom';
6
6
  export { isBrowser } from './env/is-browser';
@@ -100,8 +100,16 @@ export declare const autoCompleteProps: {
100
100
  loadingColor: string;
101
101
  }, {
102
102
  Scrollbar: import("../../_mixins").Theme<"Scrollbar", {
103
+ height: string;
104
+ width: string;
105
+ borderRadius: string;
103
106
  color: string;
104
107
  colorHover: string;
108
+ railInsetHorizontalBottom: string;
109
+ railInsetHorizontalTop: string;
110
+ railInsetVerticalRight: string;
111
+ railInsetVerticalLeft: string;
112
+ railColor: string;
105
113
  }, any>;
106
114
  Empty: import("../../_mixins").Theme<"Empty", {
107
115
  iconSizeSmall: string;
@@ -225,8 +233,16 @@ export declare const autoCompleteProps: {
225
233
  loadingColor: string;
226
234
  }, {
227
235
  Scrollbar: import("../../_mixins").Theme<"Scrollbar", {
236
+ height: string;
237
+ width: string;
238
+ borderRadius: string;
228
239
  color: string;
229
240
  colorHover: string;
241
+ railInsetHorizontalBottom: string;
242
+ railInsetHorizontalTop: string;
243
+ railInsetVerticalRight: string;
244
+ railInsetVerticalLeft: string;
245
+ railColor: string;
230
246
  }, any>;
231
247
  Empty: import("../../_mixins").Theme<"Empty", {
232
248
  iconSizeSmall: string;
@@ -350,8 +366,16 @@ export declare const autoCompleteProps: {
350
366
  loadingColor: string;
351
367
  }, {
352
368
  Scrollbar: import("../../_mixins").Theme<"Scrollbar", {
369
+ height: string;
370
+ width: string;
371
+ borderRadius: string;
353
372
  color: string;
354
373
  colorHover: string;
374
+ railInsetHorizontalBottom: string;
375
+ railInsetHorizontalTop: string;
376
+ railInsetVerticalRight: string;
377
+ railInsetVerticalLeft: string;
378
+ railColor: string;
355
379
  }, any>;
356
380
  Empty: import("../../_mixins").Theme<"Empty", {
357
381
  iconSizeSmall: string;
@@ -533,8 +557,16 @@ declare const _default: import("vue").DefineComponent<{
533
557
  loadingColor: string;
534
558
  }, {
535
559
  Scrollbar: import("../../_mixins").Theme<"Scrollbar", {
560
+ height: string;
561
+ width: string;
562
+ borderRadius: string;
536
563
  color: string;
537
564
  colorHover: string;
565
+ railInsetHorizontalBottom: string;
566
+ railInsetHorizontalTop: string;
567
+ railInsetVerticalRight: string;
568
+ railInsetVerticalLeft: string;
569
+ railColor: string;
538
570
  }, any>;
539
571
  Empty: import("../../_mixins").Theme<"Empty", {
540
572
  iconSizeSmall: string;
@@ -658,8 +690,16 @@ declare const _default: import("vue").DefineComponent<{
658
690
  loadingColor: string;
659
691
  }, {
660
692
  Scrollbar: import("../../_mixins").Theme<"Scrollbar", {
693
+ height: string;
694
+ width: string;
695
+ borderRadius: string;
661
696
  color: string;
662
697
  colorHover: string;
698
+ railInsetHorizontalBottom: string;
699
+ railInsetHorizontalTop: string;
700
+ railInsetVerticalRight: string;
701
+ railInsetVerticalLeft: string;
702
+ railColor: string;
663
703
  }, any>;
664
704
  Empty: import("../../_mixins").Theme<"Empty", {
665
705
  iconSizeSmall: string;
@@ -783,8 +823,16 @@ declare const _default: import("vue").DefineComponent<{
783
823
  loadingColor: string;
784
824
  }, {
785
825
  Scrollbar: import("../../_mixins").Theme<"Scrollbar", {
826
+ height: string;
827
+ width: string;
828
+ borderRadius: string;
786
829
  color: string;
787
830
  colorHover: string;
831
+ railInsetHorizontalBottom: string;
832
+ railInsetHorizontalTop: string;
833
+ railInsetVerticalRight: string;
834
+ railInsetVerticalLeft: string;
835
+ railColor: string;
788
836
  }, any>;
789
837
  Empty: import("../../_mixins").Theme<"Empty", {
790
838
  iconSizeSmall: string;
@@ -952,8 +1000,16 @@ declare const _default: import("vue").DefineComponent<{
952
1000
  loadingColor: string;
953
1001
  }, {
954
1002
  Scrollbar: import("../../_mixins").Theme<"Scrollbar", {
1003
+ height: string;
1004
+ width: string;
1005
+ borderRadius: string;
955
1006
  color: string;
956
1007
  colorHover: string;
1008
+ railInsetHorizontalBottom: string;
1009
+ railInsetHorizontalTop: string;
1010
+ railInsetVerticalRight: string;
1011
+ railInsetVerticalLeft: string;
1012
+ railColor: string;
957
1013
  }, any>;
958
1014
  Empty: import("../../_mixins").Theme<"Empty", {
959
1015
  iconSizeSmall: string;
@@ -1044,8 +1100,16 @@ declare const _default: import("vue").DefineComponent<{
1044
1100
  InternalSelectMenu?: {
1045
1101
  peers?: {
1046
1102
  Scrollbar?: import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Scrollbar", {
1103
+ height: string;
1104
+ width: string;
1105
+ borderRadius: string;
1047
1106
  color: string;
1048
1107
  colorHover: string;
1108
+ railInsetHorizontalBottom: string;
1109
+ railInsetHorizontalTop: string;
1110
+ railInsetVerticalRight: string;
1111
+ railInsetVerticalLeft: string;
1112
+ railColor: string;
1049
1113
  }, any>> | undefined;
1050
1114
  Empty?: import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Empty", {
1051
1115
  iconSizeSmall: string;
@@ -1177,8 +1241,16 @@ declare const _default: import("vue").DefineComponent<{
1177
1241
  loadingColor: string;
1178
1242
  }, {
1179
1243
  Scrollbar: import("../../_mixins").Theme<"Scrollbar", {
1244
+ height: string;
1245
+ width: string;
1246
+ borderRadius: string;
1180
1247
  color: string;
1181
1248
  colorHover: string;
1249
+ railInsetHorizontalBottom: string;
1250
+ railInsetHorizontalTop: string;
1251
+ railInsetVerticalRight: string;
1252
+ railInsetVerticalLeft: string;
1253
+ railColor: string;
1182
1254
  }, any>;
1183
1255
  Empty: import("../../_mixins").Theme<"Empty", {
1184
1256
  iconSizeSmall: string;
@@ -1302,8 +1374,16 @@ declare const _default: import("vue").DefineComponent<{
1302
1374
  loadingColor: string;
1303
1375
  }, {
1304
1376
  Scrollbar: import("../../_mixins").Theme<"Scrollbar", {
1377
+ height: string;
1378
+ width: string;
1379
+ borderRadius: string;
1305
1380
  color: string;
1306
1381
  colorHover: string;
1382
+ railInsetHorizontalBottom: string;
1383
+ railInsetHorizontalTop: string;
1384
+ railInsetVerticalRight: string;
1385
+ railInsetVerticalLeft: string;
1386
+ railColor: string;
1307
1387
  }, any>;
1308
1388
  Empty: import("../../_mixins").Theme<"Empty", {
1309
1389
  iconSizeSmall: string;
@@ -1427,8 +1507,16 @@ declare const _default: import("vue").DefineComponent<{
1427
1507
  loadingColor: string;
1428
1508
  }, {
1429
1509
  Scrollbar: import("../../_mixins").Theme<"Scrollbar", {
1510
+ height: string;
1511
+ width: string;
1512
+ borderRadius: string;
1430
1513
  color: string;
1431
1514
  colorHover: string;
1515
+ railInsetHorizontalBottom: string;
1516
+ railInsetHorizontalTop: string;
1517
+ railInsetVerticalRight: string;
1518
+ railInsetVerticalLeft: string;
1519
+ railColor: string;
1432
1520
  }, any>;
1433
1521
  Empty: import("../../_mixins").Theme<"Empty", {
1434
1522
  iconSizeSmall: string;
@@ -39,8 +39,16 @@ declare const autoCompleteLight: import("../../_mixins").Theme<"AutoComplete", {
39
39
  loadingColor: string;
40
40
  }, {
41
41
  Scrollbar: import("../../_mixins").Theme<"Scrollbar", {
42
+ height: string;
43
+ width: string;
44
+ borderRadius: string;
42
45
  color: string;
43
46
  colorHover: string;
47
+ railInsetHorizontalBottom: string;
48
+ railInsetHorizontalTop: string;
49
+ railInsetVerticalRight: string;
50
+ railInsetVerticalLeft: string;
51
+ railColor: string;
44
52
  }, any>;
45
53
  Empty: import("../../_mixins").Theme<"Empty", {
46
54
  iconSizeSmall: string;
@@ -250,8 +250,8 @@ declare const _default: import("vue").DefineComponent<{
250
250
  }, any>>>;
251
251
  }>>, {
252
252
  readonly right: string | number;
253
- readonly to: string | HTMLElement;
254
253
  readonly bottom: string | number;
254
+ readonly to: string | HTMLElement;
255
255
  readonly show: boolean | undefined;
256
256
  readonly 'onUpdate:show': Function;
257
257
  readonly visibilityHeight: number;