zartui 3.1.23-beta.1 → 3.1.23-beta.3

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 (689) hide show
  1. package/README.md +4 -0
  2. package/es/action-sheet/ActionSheet.d.ts +5 -5
  3. package/es/action-sheet/ActionSheet.mjs +1 -2
  4. package/es/action-sheet/index.d.ts +5 -5
  5. package/es/audio/Audio.d.ts +95 -0
  6. package/es/audio/Audio.mjs +226 -0
  7. package/es/audio/index.css +1 -0
  8. package/es/audio/index.d.ts +75 -0
  9. package/es/audio/index.mjs +10 -0
  10. package/es/audio/style/index.d.ts +1 -0
  11. package/es/audio/style/index.mjs +5 -0
  12. package/es/audio/types.d.ts +3 -0
  13. package/es/audio/types.mjs +4 -0
  14. package/es/avatar/Avatar.d.ts +4 -4
  15. package/es/avatar/Avatar.mjs +1 -2
  16. package/es/avatar/index.d.ts +4 -4
  17. package/es/badge/Badge.d.ts +4 -4
  18. package/es/badge/Badge.mjs +1 -2
  19. package/es/badge/index.d.ts +4 -4
  20. package/es/button/Button.d.ts +8 -5
  21. package/es/button/Button.mjs +1 -2
  22. package/es/button/index.d.ts +7 -5
  23. package/es/calendar/Calendar.d.ts +5 -5
  24. package/es/calendar/Calendar.mjs +1 -2
  25. package/es/calendar/CalendarDay.d.ts +5 -5
  26. package/es/calendar/CalendarDay.mjs +1 -2
  27. package/es/calendar/CalendarHeader.d.ts +5 -5
  28. package/es/calendar/CalendarHeader.mjs +1 -2
  29. package/es/calendar/CalendarMonth.d.ts +5 -5
  30. package/es/calendar/CalendarMonth.mjs +1 -2
  31. package/es/calendar/index.css +1 -1
  32. package/es/calendar/index.d.ts +5 -5
  33. package/es/cascader/Cascader.d.ts +5 -5
  34. package/es/cascader/Cascader.mjs +1 -2
  35. package/es/cascader/index.d.ts +5 -5
  36. package/es/cell/Cell.d.ts +8 -5
  37. package/es/cell/Cell.mjs +1 -2
  38. package/es/cell/index.d.ts +7 -5
  39. package/es/cell-group/CellGroup.d.ts +4 -4
  40. package/es/cell-group/CellGroup.mjs +1 -2
  41. package/es/cell-group/index.d.ts +4 -4
  42. package/es/checkbox/Checkbox.d.ts +5 -5
  43. package/es/checkbox/Checkbox.mjs +1 -2
  44. package/es/checkbox/Checker.d.ts +5 -5
  45. package/es/checkbox/Checker.mjs +1 -2
  46. package/es/checkbox/index.css +1 -1
  47. package/es/checkbox/index.d.ts +5 -5
  48. package/es/checkbox-group/CheckboxGroup.d.ts +5 -5
  49. package/es/checkbox-group/CheckboxGroup.mjs +1 -2
  50. package/es/checkbox-group/index.d.ts +5 -5
  51. package/es/col/Col.d.ts +4 -4
  52. package/es/col/Col.mjs +1 -2
  53. package/es/col/index.d.ts +4 -4
  54. package/es/collapse/Collapse.d.ts +5 -5
  55. package/es/collapse/Collapse.mjs +1 -2
  56. package/es/collapse/index.d.ts +5 -5
  57. package/es/collapse-item/CollapseItem.d.ts +4 -4
  58. package/es/collapse-item/CollapseItem.mjs +1 -2
  59. package/es/collapse-item/index.css +1 -1
  60. package/es/collapse-item/index.d.ts +4 -4
  61. package/es/composables/use-height.d.ts +1 -1
  62. package/es/composables/use-refs.d.ts +1 -1
  63. package/es/composables/use-route.d.ts +2 -0
  64. package/es/composables/use-route.mjs +2 -1
  65. package/es/composables/use-sync-prop-ref.d.ts +1 -1
  66. package/es/composables/use-touch.d.ts +8 -8
  67. package/es/config-provider/ConfigProvider.d.ts +4 -4
  68. package/es/config-provider/ConfigProvider.mjs +1 -2
  69. package/es/config-provider/index.d.ts +4 -4
  70. package/es/date-time-picker/DateTimePicker.d.ts +5 -5
  71. package/es/date-time-picker/DateTimePicker.mjs +1 -2
  72. package/es/date-time-picker/DateTimePickerWrapper.d.ts +5 -5
  73. package/es/date-time-picker/DateTimePickerWrapper.mjs +1 -2
  74. package/es/date-time-picker/index.d.ts +5 -5
  75. package/es/dialog/Dialog.d.ts +5 -5
  76. package/es/dialog/Dialog.mjs +1 -2
  77. package/es/dialog/function-call.mjs +1 -1
  78. package/es/dialog/index.css +1 -1
  79. package/es/dialog/index.d.ts +5 -5
  80. package/es/divider/Divider.d.ts +4 -4
  81. package/es/divider/Divider.mjs +1 -2
  82. package/es/divider/index.d.ts +4 -4
  83. package/es/drawer-select/DrawerSelect.d.ts +5 -5
  84. package/es/drawer-select/DrawerSelect.mjs +1 -2
  85. package/es/drawer-select/index.d.ts +5 -5
  86. package/es/dropdown-item/DropdownItem.d.ts +6 -6
  87. package/es/dropdown-item/DropdownItem.mjs +1 -2
  88. package/es/dropdown-item/index.d.ts +6 -6
  89. package/es/dropdown-menu/DropdownMenu.d.ts +4 -4
  90. package/es/dropdown-menu/DropdownMenu.mjs +1 -2
  91. package/es/dropdown-menu/index.css +1 -1
  92. package/es/dropdown-menu/index.d.ts +4 -4
  93. package/es/empty/Empty.d.ts +4 -4
  94. package/es/empty/Empty.mjs +1 -2
  95. package/es/empty/index.d.ts +4 -4
  96. package/es/field/Field.d.ts +5 -5
  97. package/es/field/Field.mjs +1 -2
  98. package/es/field/index.css +1 -1
  99. package/es/field/index.d.ts +5 -5
  100. package/es/floating-bubble/FloatingBubble.d.ts +5 -5
  101. package/es/floating-bubble/FloatingBubble.mjs +1 -2
  102. package/es/floating-bubble/index.css +1 -1
  103. package/es/floating-bubble/index.d.ts +5 -5
  104. package/es/form/Form.d.ts +5 -5
  105. package/es/form/Form.mjs +1 -2
  106. package/es/form/index.d.ts +5 -5
  107. package/es/grid/Grid.d.ts +4 -4
  108. package/es/grid/Grid.mjs +1 -2
  109. package/es/grid/index.d.ts +4 -4
  110. package/es/grid-item/GridItem.d.ts +7 -4
  111. package/es/grid-item/GridItem.mjs +1 -2
  112. package/es/grid-item/index.d.ts +6 -4
  113. package/es/hierarchy-select/Breadcrumb.d.ts +5 -5
  114. package/es/hierarchy-select/Breadcrumb.mjs +1 -2
  115. package/es/hierarchy-select/HierarchySelect.d.ts +5 -5
  116. package/es/hierarchy-select/HierarchySelect.mjs +1 -2
  117. package/es/hierarchy-select/index.d.ts +5 -5
  118. package/es/icon/Icon.d.ts +4 -4
  119. package/es/icon/Icon.mjs +1 -2
  120. package/es/icon/config.mjs +1 -0
  121. package/es/icon/index.css +1 -1
  122. package/es/icon/index.d.ts +4 -4
  123. package/es/image/Image.d.ts +5 -5
  124. package/es/image/Image.mjs +1 -2
  125. package/es/image/index.d.ts +5 -5
  126. package/es/image-preview/ImagePreview.d.ts +5 -5
  127. package/es/image-preview/ImagePreview.mjs +1 -2
  128. package/es/image-preview/ImagePreviewItem.d.ts +5 -5
  129. package/es/image-preview/ImagePreviewItem.mjs +1 -2
  130. package/es/image-preview/function-call.mjs +1 -1
  131. package/es/image-preview/index.d.ts +5 -5
  132. package/es/index-anchor/IndexAnchor.d.ts +3 -3
  133. package/es/index-anchor/IndexAnchor.mjs +1 -2
  134. package/es/index-anchor/index.d.ts +3 -3
  135. package/es/index-bar/IndexBar.d.ts +5 -5
  136. package/es/index-bar/IndexBar.mjs +1 -2
  137. package/es/index-bar/index.css +1 -1
  138. package/es/index-bar/index.d.ts +5 -5
  139. package/es/index.d.ts +2 -1
  140. package/es/index.mjs +4 -1
  141. package/es/list/List.d.ts +5 -5
  142. package/es/list/List.mjs +1 -2
  143. package/es/list/index.d.ts +5 -5
  144. package/es/loading/Loading.d.ts +4 -4
  145. package/es/loading/Loading.mjs +1 -2
  146. package/es/loading/index.d.ts +4 -4
  147. package/es/media-picker/MediaPicker.d.ts +9 -5
  148. package/es/media-picker/MediaPicker.mjs +5 -4
  149. package/es/media-picker/image/DefaultAudioIcon.d.ts +1 -1
  150. package/es/media-picker/image/DefaultAudioIcon.mjs +1 -2
  151. package/es/media-picker/image/DefaultFileIcon.d.ts +1 -1
  152. package/es/media-picker/image/DefaultFileIcon.mjs +1 -2
  153. package/es/media-picker/image/DefaultVideoIcon.d.ts +1 -1
  154. package/es/media-picker/image/DefaultVideoIcon.mjs +1 -2
  155. package/es/media-picker/image/DeleteIcon.d.ts +1 -1
  156. package/es/media-picker/image/DeleteIcon.mjs +1 -2
  157. package/es/media-picker/image/PickFileIcon.d.ts +1 -1
  158. package/es/media-picker/image/PickFileIcon.mjs +1 -2
  159. package/es/media-picker/image/PickPhotoIcon.d.ts +1 -1
  160. package/es/media-picker/image/PickPhotoIcon.mjs +1 -2
  161. package/es/media-picker/image/TakeAudioIcon.d.ts +1 -1
  162. package/es/media-picker/image/TakeAudioIcon.mjs +1 -2
  163. package/es/media-picker/image/TakePhotoIcon.d.ts +1 -1
  164. package/es/media-picker/image/TakePhotoIcon.mjs +1 -2
  165. package/es/media-picker/image/TakeVideoIcon.d.ts +1 -1
  166. package/es/media-picker/image/TakeVideoIcon.mjs +1 -2
  167. package/es/media-picker/index.css +1 -1
  168. package/es/media-picker/index.d.ts +7 -5
  169. package/es/media-player/MediaPlayer.d.ts +21 -5
  170. package/es/media-player/MediaPlayer.mjs +7 -3
  171. package/es/media-player/index.d.ts +14 -5
  172. package/es/multiple-picker/MultiplePicker.d.ts +5 -5
  173. package/es/multiple-picker/MultiplePicker.mjs +1 -2
  174. package/es/multiple-picker/MultiplePickerOptions.d.ts +5 -5
  175. package/es/multiple-picker/MultiplePickerOptions.mjs +1 -2
  176. package/es/multiple-picker/index.css +1 -1
  177. package/es/multiple-picker/index.d.ts +5 -5
  178. package/es/nav-bar/NavBar.d.ts +5 -5
  179. package/es/nav-bar/NavBar.mjs +1 -2
  180. package/es/nav-bar/index.css +1 -1
  181. package/es/nav-bar/index.d.ts +5 -5
  182. package/es/notice-bar/NoticeBar.d.ts +5 -5
  183. package/es/notice-bar/NoticeBar.mjs +1 -2
  184. package/es/notice-bar/index.d.ts +5 -5
  185. package/es/notify/Notify.d.ts +5 -5
  186. package/es/notify/Notify.mjs +1 -2
  187. package/es/notify/function-call.mjs +1 -1
  188. package/es/notify/index.d.ts +5 -5
  189. package/es/number-keyboard/NumberKeyboard.d.ts +6 -6
  190. package/es/number-keyboard/NumberKeyboard.mjs +1 -2
  191. package/es/number-keyboard/NumberKeyboardKey.d.ts +5 -5
  192. package/es/number-keyboard/NumberKeyboardKey.mjs +1 -2
  193. package/es/number-keyboard/index.css +1 -1
  194. package/es/number-keyboard/index.d.ts +6 -6
  195. package/es/overlay/Overlay.d.ts +4 -4
  196. package/es/overlay/Overlay.mjs +1 -2
  197. package/es/overlay/index.d.ts +4 -4
  198. package/es/password-input/PasswordInput.d.ts +5 -5
  199. package/es/password-input/PasswordInput.mjs +1 -2
  200. package/es/password-input/index.css +1 -1
  201. package/es/password-input/index.d.ts +5 -5
  202. package/es/picker/Picker.d.ts +5 -5
  203. package/es/picker/Picker.mjs +1 -2
  204. package/es/picker/PickerColumn.d.ts +5 -5
  205. package/es/picker/PickerColumn.mjs +1 -2
  206. package/es/picker/PickerOptions.d.ts +5 -5
  207. package/es/picker/PickerOptions.mjs +1 -2
  208. package/es/picker/PickerToolbar.d.ts +4 -4
  209. package/es/picker/PickerToolbar.mjs +1 -2
  210. package/es/picker/index.css +1 -1
  211. package/es/picker/index.d.ts +5 -5
  212. package/es/popover/Popover.d.ts +5 -5
  213. package/es/popover/Popover.mjs +1 -2
  214. package/es/popover/index.d.ts +5 -5
  215. package/es/popup/Popup.d.ts +6 -6
  216. package/es/popup/Popup.mjs +1 -2
  217. package/es/popup/index.css +1 -1
  218. package/es/popup/index.d.ts +6 -6
  219. package/es/pull-refresh/PullRefresh.d.ts +5 -5
  220. package/es/pull-refresh/PullRefresh.mjs +1 -2
  221. package/es/pull-refresh/index.d.ts +5 -5
  222. package/es/radio/Radio.d.ts +5 -5
  223. package/es/radio/Radio.mjs +1 -2
  224. package/es/radio/index.css +1 -1
  225. package/es/radio/index.d.ts +5 -5
  226. package/es/radio-group/RadioGroup.d.ts +5 -5
  227. package/es/radio-group/RadioGroup.mjs +1 -2
  228. package/es/radio-group/index.d.ts +5 -5
  229. package/es/radio-picker/RadioPicker.d.ts +5 -5
  230. package/es/radio-picker/RadioPicker.mjs +1 -2
  231. package/es/radio-picker/RadioPickerColumn.d.ts +5 -5
  232. package/es/radio-picker/RadioPickerColumn.mjs +1 -2
  233. package/es/radio-picker/RadioPickerToolbar.d.ts +4 -4
  234. package/es/radio-picker/RadioPickerToolbar.mjs +1 -2
  235. package/es/radio-picker/index.css +1 -1
  236. package/es/radio-picker/index.d.ts +5 -5
  237. package/es/rate/Rate.d.ts +5 -5
  238. package/es/rate/Rate.mjs +1 -2
  239. package/es/rate/index.css +1 -1
  240. package/es/rate/index.d.ts +5 -5
  241. package/es/row/Row.d.ts +4 -4
  242. package/es/row/Row.mjs +1 -2
  243. package/es/row/index.d.ts +4 -4
  244. package/es/search/Search.d.ts +5 -5
  245. package/es/search/Search.mjs +1 -2
  246. package/es/search/index.css +1 -1
  247. package/es/search/index.d.ts +5 -5
  248. package/es/signature/Signature.d.ts +5 -5
  249. package/es/signature/Signature.mjs +1 -2
  250. package/es/signature/index.d.ts +5 -5
  251. package/es/skeleton/Skeleton.d.ts +5 -5
  252. package/es/skeleton/Skeleton.mjs +1 -2
  253. package/es/skeleton/index.d.ts +5 -5
  254. package/es/slider/Slider.d.ts +33 -7
  255. package/es/slider/Slider.mjs +16 -7
  256. package/es/slider/index.css +1 -1
  257. package/es/slider/index.d.ts +25 -7
  258. package/es/step/Step.d.ts +3 -3
  259. package/es/step/Step.mjs +1 -2
  260. package/es/step/index.css +1 -1
  261. package/es/step/index.d.ts +3 -3
  262. package/es/stepper/Stepper.d.ts +7 -7
  263. package/es/stepper/Stepper.mjs +1 -2
  264. package/es/stepper/index.css +1 -1
  265. package/es/stepper/index.d.ts +7 -7
  266. package/es/steps/Steps.d.ts +5 -5
  267. package/es/steps/Steps.mjs +1 -2
  268. package/es/steps/index.d.ts +5 -5
  269. package/es/sticky/Sticky.d.ts +5 -5
  270. package/es/sticky/Sticky.mjs +1 -2
  271. package/es/sticky/index.d.ts +5 -5
  272. package/es/swipe/Swipe.d.ts +6 -6
  273. package/es/swipe/Swipe.mjs +1 -2
  274. package/es/swipe/index.css +1 -1
  275. package/es/swipe/index.d.ts +6 -6
  276. package/es/swipe-cell/SwipeCell.d.ts +6 -6
  277. package/es/swipe-cell/SwipeCell.mjs +1 -2
  278. package/es/swipe-cell/index.css +1 -1
  279. package/es/swipe-cell/index.d.ts +6 -6
  280. package/es/swipe-item/SwipeItem.d.ts +1 -1
  281. package/es/swipe-item/SwipeItem.mjs +1 -2
  282. package/es/swipe-item/index.d.ts +1 -1
  283. package/es/switch/Switch.d.ts +5 -5
  284. package/es/switch/Switch.mjs +1 -2
  285. package/es/switch/index.d.ts +5 -5
  286. package/es/tab/Tab.d.ts +7 -4
  287. package/es/tab/Tab.mjs +1 -2
  288. package/es/tab/index.d.ts +6 -4
  289. package/es/tabbar/Tabbar.d.ts +5 -5
  290. package/es/tabbar/Tabbar.mjs +1 -2
  291. package/es/tabbar/index.d.ts +5 -5
  292. package/es/tabbar-item/TabbarItem.d.ts +8 -5
  293. package/es/tabbar-item/TabbarItem.mjs +1 -2
  294. package/es/tabbar-item/index.css +1 -1
  295. package/es/tabbar-item/index.d.ts +7 -5
  296. package/es/table/Table.d.ts +5 -5
  297. package/es/table/Table.mjs +14 -4
  298. package/es/table/index.css +1 -1
  299. package/es/table/index.d.ts +5 -5
  300. package/es/tabs/Tabs.d.ts +5 -5
  301. package/es/tabs/Tabs.mjs +1 -2
  302. package/es/tabs/TabsContent.d.ts +5 -5
  303. package/es/tabs/TabsContent.mjs +1 -2
  304. package/es/tabs/TabsTitle.d.ts +4 -4
  305. package/es/tabs/TabsTitle.mjs +1 -2
  306. package/es/tabs/index.css +1 -1
  307. package/es/tabs/index.d.ts +5 -5
  308. package/es/tag/Tag.d.ts +5 -5
  309. package/es/tag/Tag.mjs +1 -2
  310. package/es/tag/index.d.ts +5 -5
  311. package/es/text-ellipsis/TextEllipsis.d.ts +5 -5
  312. package/es/text-ellipsis/TextEllipsis.mjs +1 -2
  313. package/es/text-ellipsis/index.d.ts +5 -5
  314. package/es/time-picker/Arrow.d.ts +2 -2
  315. package/es/time-picker/Arrow.mjs +1 -2
  316. package/es/time-picker/TimePicker.d.ts +5 -5
  317. package/es/time-picker/TimePicker.mjs +1 -2
  318. package/es/time-picker/TimePickerColumn.d.ts +5 -5
  319. package/es/time-picker/TimePickerColumn.mjs +1 -2
  320. package/es/time-picker/index.css +1 -1
  321. package/es/time-picker/index.d.ts +5 -5
  322. package/es/timeline/Timeline.d.ts +4 -4
  323. package/es/timeline/Timeline.mjs +1 -2
  324. package/es/timeline/index.d.ts +4 -4
  325. package/es/toast/Toast.d.ts +5 -5
  326. package/es/toast/Toast.mjs +1 -2
  327. package/es/toast/function-call.mjs +1 -2
  328. package/es/toast/index.css +1 -1
  329. package/es/toast/index.d.ts +5 -5
  330. package/es/uploader/Uploader.d.ts +5 -5
  331. package/es/uploader/Uploader.mjs +1 -2
  332. package/es/uploader/UploaderPreviewItem.d.ts +5 -5
  333. package/es/uploader/UploaderPreviewItem.mjs +1 -2
  334. package/es/uploader/index.d.ts +5 -5
  335. package/es/utils/dom.d.ts +1 -1
  336. package/es/utils/format.d.ts +1 -0
  337. package/es/utils/format.mjs +15 -0
  338. package/es/utils/mount-component.d.ts +1 -1
  339. package/es/video/Video.d.ts +8 -5
  340. package/es/video/Video.mjs +9 -28
  341. package/es/video/index.css +1 -1
  342. package/es/video/index.d.ts +7 -5
  343. package/es/video/types.d.ts +1 -0
  344. package/lib/action-sheet/ActionSheet.d.ts +5 -5
  345. package/lib/action-sheet/ActionSheet.js +2 -3
  346. package/lib/action-sheet/index.d.ts +5 -5
  347. package/lib/audio/Audio.d.ts +95 -0
  348. package/lib/audio/Audio.js +255 -0
  349. package/lib/audio/index.css +1 -0
  350. package/lib/audio/index.d.ts +75 -0
  351. package/lib/audio/index.js +39 -0
  352. package/lib/audio/style/index.d.ts +1 -0
  353. package/lib/audio/style/index.js +5 -0
  354. package/lib/audio/types.d.ts +3 -0
  355. package/lib/audio/types.js +23 -0
  356. package/lib/avatar/Avatar.d.ts +4 -4
  357. package/lib/avatar/Avatar.js +4 -5
  358. package/lib/avatar/index.d.ts +4 -4
  359. package/lib/badge/Badge.d.ts +4 -4
  360. package/lib/badge/Badge.js +2 -3
  361. package/lib/badge/index.d.ts +4 -4
  362. package/lib/button/Button.d.ts +8 -5
  363. package/lib/button/Button.js +1 -2
  364. package/lib/button/index.d.ts +7 -5
  365. package/lib/calendar/Calendar.d.ts +5 -5
  366. package/lib/calendar/Calendar.js +19 -20
  367. package/lib/calendar/CalendarDay.d.ts +5 -5
  368. package/lib/calendar/CalendarDay.js +2 -3
  369. package/lib/calendar/CalendarHeader.d.ts +5 -5
  370. package/lib/calendar/CalendarHeader.js +1 -2
  371. package/lib/calendar/CalendarMonth.d.ts +5 -5
  372. package/lib/calendar/CalendarMonth.js +11 -12
  373. package/lib/calendar/index.css +1 -1
  374. package/lib/calendar/index.d.ts +5 -5
  375. package/lib/cascader/Cascader.d.ts +5 -5
  376. package/lib/cascader/Cascader.js +11 -12
  377. package/lib/cascader/index.d.ts +5 -5
  378. package/lib/cell/Cell.d.ts +8 -5
  379. package/lib/cell/Cell.js +5 -6
  380. package/lib/cell/index.d.ts +7 -5
  381. package/lib/cell-group/CellGroup.d.ts +4 -4
  382. package/lib/cell-group/CellGroup.js +1 -2
  383. package/lib/cell-group/index.d.ts +4 -4
  384. package/lib/checkbox/Checkbox.d.ts +5 -5
  385. package/lib/checkbox/Checkbox.js +3 -4
  386. package/lib/checkbox/Checker.d.ts +5 -5
  387. package/lib/checkbox/Checker.js +5 -6
  388. package/lib/checkbox/index.css +1 -1
  389. package/lib/checkbox/index.d.ts +5 -5
  390. package/lib/checkbox-group/CheckboxGroup.d.ts +5 -5
  391. package/lib/checkbox-group/CheckboxGroup.js +2 -3
  392. package/lib/checkbox-group/index.d.ts +5 -5
  393. package/lib/col/Col.d.ts +4 -4
  394. package/lib/col/Col.js +2 -3
  395. package/lib/col/index.d.ts +4 -4
  396. package/lib/collapse/Collapse.d.ts +5 -5
  397. package/lib/collapse/Collapse.js +1 -2
  398. package/lib/collapse/index.d.ts +5 -5
  399. package/lib/collapse-item/CollapseItem.d.ts +4 -4
  400. package/lib/collapse-item/CollapseItem.js +8 -9
  401. package/lib/collapse-item/index.css +1 -1
  402. package/lib/collapse-item/index.d.ts +4 -4
  403. package/lib/composables/use-height.d.ts +1 -1
  404. package/lib/composables/use-refs.d.ts +1 -1
  405. package/lib/composables/use-route.d.ts +2 -0
  406. package/lib/composables/use-route.js +2 -1
  407. package/lib/composables/use-sync-prop-ref.d.ts +1 -1
  408. package/lib/composables/use-touch.d.ts +8 -8
  409. package/lib/config-provider/ConfigProvider.d.ts +4 -4
  410. package/lib/config-provider/ConfigProvider.js +10 -11
  411. package/lib/config-provider/index.d.ts +4 -4
  412. package/lib/date-time-picker/DateTimePicker.d.ts +5 -5
  413. package/lib/date-time-picker/DateTimePicker.js +17 -18
  414. package/lib/date-time-picker/DateTimePickerWrapper.d.ts +5 -5
  415. package/lib/date-time-picker/DateTimePickerWrapper.js +12 -13
  416. package/lib/date-time-picker/index.d.ts +5 -5
  417. package/lib/dialog/Dialog.d.ts +5 -5
  418. package/lib/dialog/Dialog.js +4 -5
  419. package/lib/dialog/index.css +1 -1
  420. package/lib/dialog/index.d.ts +5 -5
  421. package/lib/divider/Divider.d.ts +4 -4
  422. package/lib/divider/Divider.js +1 -2
  423. package/lib/divider/index.d.ts +4 -4
  424. package/lib/drawer-select/DrawerSelect.d.ts +5 -5
  425. package/lib/drawer-select/DrawerSelect.js +13 -14
  426. package/lib/drawer-select/index.d.ts +5 -5
  427. package/lib/dropdown-item/DropdownItem.d.ts +6 -6
  428. package/lib/dropdown-item/DropdownItem.js +5 -6
  429. package/lib/dropdown-item/index.d.ts +6 -6
  430. package/lib/dropdown-menu/DropdownMenu.d.ts +4 -4
  431. package/lib/dropdown-menu/DropdownMenu.js +6 -7
  432. package/lib/dropdown-menu/index.css +1 -1
  433. package/lib/dropdown-menu/index.d.ts +4 -4
  434. package/lib/empty/Empty.d.ts +4 -4
  435. package/lib/empty/Empty.js +1 -2
  436. package/lib/empty/index.d.ts +4 -4
  437. package/lib/field/Field.d.ts +5 -5
  438. package/lib/field/Field.js +18 -19
  439. package/lib/field/index.css +1 -1
  440. package/lib/field/index.d.ts +5 -5
  441. package/lib/floating-bubble/FloatingBubble.d.ts +5 -5
  442. package/lib/floating-bubble/FloatingBubble.js +14 -15
  443. package/lib/floating-bubble/index.css +1 -1
  444. package/lib/floating-bubble/index.d.ts +5 -5
  445. package/lib/form/Form.d.ts +5 -5
  446. package/lib/form/Form.js +1 -2
  447. package/lib/form/index.d.ts +5 -5
  448. package/lib/grid/Grid.d.ts +4 -4
  449. package/lib/grid/Grid.js +1 -2
  450. package/lib/grid/index.d.ts +4 -4
  451. package/lib/grid-item/GridItem.d.ts +7 -4
  452. package/lib/grid-item/GridItem.js +3 -4
  453. package/lib/grid-item/index.d.ts +6 -4
  454. package/lib/hierarchy-select/Breadcrumb.d.ts +5 -5
  455. package/lib/hierarchy-select/Breadcrumb.js +1 -2
  456. package/lib/hierarchy-select/HierarchySelect.d.ts +5 -5
  457. package/lib/hierarchy-select/HierarchySelect.js +6 -7
  458. package/lib/hierarchy-select/index.d.ts +5 -5
  459. package/lib/icon/Icon.d.ts +4 -4
  460. package/lib/icon/Icon.js +3 -4
  461. package/lib/icon/config.js +1 -0
  462. package/lib/icon/index.css +1 -1
  463. package/lib/icon/index.d.ts +4 -4
  464. package/lib/image/Image.d.ts +5 -5
  465. package/lib/image/Image.js +9 -10
  466. package/lib/image/index.d.ts +5 -5
  467. package/lib/image-preview/ImagePreview.d.ts +5 -5
  468. package/lib/image-preview/ImagePreview.js +8 -9
  469. package/lib/image-preview/ImagePreviewItem.d.ts +5 -5
  470. package/lib/image-preview/ImagePreviewItem.js +10 -11
  471. package/lib/image-preview/index.d.ts +5 -5
  472. package/lib/index-anchor/IndexAnchor.d.ts +3 -3
  473. package/lib/index-anchor/IndexAnchor.js +4 -5
  474. package/lib/index-anchor/index.d.ts +3 -3
  475. package/lib/index-bar/IndexBar.d.ts +5 -5
  476. package/lib/index-bar/IndexBar.js +12 -13
  477. package/lib/index-bar/index.css +1 -1
  478. package/lib/index-bar/index.d.ts +5 -5
  479. package/lib/index.css +1 -1
  480. package/lib/index.d.ts +2 -1
  481. package/lib/index.js +4 -1
  482. package/lib/list/List.d.ts +5 -5
  483. package/lib/list/List.js +10 -11
  484. package/lib/list/index.d.ts +5 -5
  485. package/lib/loading/Loading.d.ts +4 -4
  486. package/lib/loading/Loading.js +2 -3
  487. package/lib/loading/index.d.ts +4 -4
  488. package/lib/media-picker/MediaPicker.d.ts +9 -5
  489. package/lib/media-picker/MediaPicker.js +4 -3
  490. package/lib/media-picker/image/DefaultAudioIcon.d.ts +1 -1
  491. package/lib/media-picker/image/DefaultAudioIcon.js +1 -2
  492. package/lib/media-picker/image/DefaultFileIcon.d.ts +1 -1
  493. package/lib/media-picker/image/DefaultFileIcon.js +1 -2
  494. package/lib/media-picker/image/DefaultVideoIcon.d.ts +1 -1
  495. package/lib/media-picker/image/DefaultVideoIcon.js +1 -2
  496. package/lib/media-picker/image/DeleteIcon.d.ts +1 -1
  497. package/lib/media-picker/image/DeleteIcon.js +1 -2
  498. package/lib/media-picker/image/PickFileIcon.d.ts +1 -1
  499. package/lib/media-picker/image/PickFileIcon.js +1 -2
  500. package/lib/media-picker/image/PickPhotoIcon.d.ts +1 -1
  501. package/lib/media-picker/image/PickPhotoIcon.js +1 -2
  502. package/lib/media-picker/image/TakeAudioIcon.d.ts +1 -1
  503. package/lib/media-picker/image/TakeAudioIcon.js +1 -2
  504. package/lib/media-picker/image/TakePhotoIcon.d.ts +1 -1
  505. package/lib/media-picker/image/TakePhotoIcon.js +1 -2
  506. package/lib/media-picker/image/TakeVideoIcon.d.ts +1 -1
  507. package/lib/media-picker/image/TakeVideoIcon.js +1 -2
  508. package/lib/media-picker/index.css +1 -1
  509. package/lib/media-picker/index.d.ts +7 -5
  510. package/lib/media-player/MediaPlayer.d.ts +21 -5
  511. package/lib/media-player/MediaPlayer.js +5 -1
  512. package/lib/media-player/index.d.ts +14 -5
  513. package/lib/multiple-picker/MultiplePicker.d.ts +5 -5
  514. package/lib/multiple-picker/MultiplePicker.js +9 -10
  515. package/lib/multiple-picker/MultiplePickerOptions.d.ts +5 -5
  516. package/lib/multiple-picker/MultiplePickerOptions.js +4 -5
  517. package/lib/multiple-picker/index.css +1 -1
  518. package/lib/multiple-picker/index.d.ts +5 -5
  519. package/lib/nav-bar/NavBar.d.ts +5 -5
  520. package/lib/nav-bar/NavBar.js +2 -3
  521. package/lib/nav-bar/index.css +1 -1
  522. package/lib/nav-bar/index.d.ts +5 -5
  523. package/lib/notice-bar/NoticeBar.d.ts +5 -5
  524. package/lib/notice-bar/NoticeBar.js +5 -6
  525. package/lib/notice-bar/index.d.ts +5 -5
  526. package/lib/notify/Notify.d.ts +5 -5
  527. package/lib/notify/Notify.js +1 -2
  528. package/lib/notify/index.d.ts +5 -5
  529. package/lib/number-keyboard/NumberKeyboard.d.ts +6 -6
  530. package/lib/number-keyboard/NumberKeyboard.js +6 -7
  531. package/lib/number-keyboard/NumberKeyboardKey.d.ts +5 -5
  532. package/lib/number-keyboard/NumberKeyboardKey.js +2 -3
  533. package/lib/number-keyboard/index.css +1 -1
  534. package/lib/number-keyboard/index.d.ts +6 -6
  535. package/lib/overlay/Overlay.d.ts +4 -4
  536. package/lib/overlay/Overlay.js +2 -3
  537. package/lib/overlay/index.d.ts +4 -4
  538. package/lib/password-input/PasswordInput.d.ts +5 -5
  539. package/lib/password-input/PasswordInput.js +1 -2
  540. package/lib/password-input/index.css +1 -1
  541. package/lib/password-input/index.d.ts +5 -5
  542. package/lib/picker/Picker.d.ts +5 -5
  543. package/lib/picker/Picker.js +18 -19
  544. package/lib/picker/PickerColumn.d.ts +5 -5
  545. package/lib/picker/PickerColumn.js +6 -7
  546. package/lib/picker/PickerOptions.d.ts +5 -5
  547. package/lib/picker/PickerOptions.js +5 -6
  548. package/lib/picker/PickerToolbar.d.ts +4 -4
  549. package/lib/picker/PickerToolbar.js +1 -2
  550. package/lib/picker/index.css +1 -1
  551. package/lib/picker/index.d.ts +5 -5
  552. package/lib/popover/Popover.d.ts +5 -5
  553. package/lib/popover/Popover.js +16 -17
  554. package/lib/popover/index.d.ts +5 -5
  555. package/lib/popup/Popup.d.ts +6 -6
  556. package/lib/popup/Popup.js +15 -16
  557. package/lib/popup/index.css +1 -1
  558. package/lib/popup/index.d.ts +6 -6
  559. package/lib/pull-refresh/PullRefresh.d.ts +5 -5
  560. package/lib/pull-refresh/PullRefresh.js +7 -8
  561. package/lib/pull-refresh/index.d.ts +5 -5
  562. package/lib/radio/Radio.d.ts +5 -5
  563. package/lib/radio/Radio.js +1 -2
  564. package/lib/radio/index.css +1 -1
  565. package/lib/radio/index.d.ts +5 -5
  566. package/lib/radio-group/RadioGroup.d.ts +5 -5
  567. package/lib/radio-group/RadioGroup.js +2 -3
  568. package/lib/radio-group/index.d.ts +5 -5
  569. package/lib/radio-picker/RadioPicker.d.ts +5 -5
  570. package/lib/radio-picker/RadioPicker.js +18 -19
  571. package/lib/radio-picker/RadioPickerColumn.d.ts +5 -5
  572. package/lib/radio-picker/RadioPickerColumn.js +7 -8
  573. package/lib/radio-picker/RadioPickerToolbar.d.ts +4 -4
  574. package/lib/radio-picker/RadioPickerToolbar.js +1 -2
  575. package/lib/radio-picker/index.css +1 -1
  576. package/lib/radio-picker/index.d.ts +5 -5
  577. package/lib/rate/Rate.d.ts +5 -5
  578. package/lib/rate/Rate.js +3 -4
  579. package/lib/rate/index.css +1 -1
  580. package/lib/rate/index.d.ts +5 -5
  581. package/lib/row/Row.d.ts +4 -4
  582. package/lib/row/Row.js +3 -4
  583. package/lib/row/index.d.ts +4 -4
  584. package/lib/search/Search.d.ts +5 -5
  585. package/lib/search/Search.js +2 -3
  586. package/lib/search/index.css +1 -1
  587. package/lib/search/index.d.ts +5 -5
  588. package/lib/signature/Signature.d.ts +5 -5
  589. package/lib/signature/Signature.js +12 -13
  590. package/lib/signature/index.d.ts +5 -5
  591. package/lib/skeleton/Skeleton.d.ts +5 -5
  592. package/lib/skeleton/Skeleton.js +1 -2
  593. package/lib/skeleton/index.d.ts +5 -5
  594. package/lib/slider/Slider.d.ts +33 -7
  595. package/lib/slider/Slider.js +22 -13
  596. package/lib/slider/index.css +1 -1
  597. package/lib/slider/index.d.ts +25 -7
  598. package/lib/step/Step.d.ts +3 -3
  599. package/lib/step/Step.js +2 -3
  600. package/lib/step/index.css +1 -1
  601. package/lib/step/index.d.ts +3 -3
  602. package/lib/stepper/Stepper.d.ts +7 -7
  603. package/lib/stepper/Stepper.js +11 -12
  604. package/lib/stepper/index.css +1 -1
  605. package/lib/stepper/index.d.ts +7 -7
  606. package/lib/steps/Steps.d.ts +5 -5
  607. package/lib/steps/Steps.js +1 -2
  608. package/lib/steps/index.d.ts +5 -5
  609. package/lib/sticky/Sticky.d.ts +5 -5
  610. package/lib/sticky/Sticky.js +7 -8
  611. package/lib/sticky/index.d.ts +5 -5
  612. package/lib/swipe/Swipe.d.ts +6 -6
  613. package/lib/swipe/Swipe.js +22 -23
  614. package/lib/swipe/index.css +1 -1
  615. package/lib/swipe/index.d.ts +6 -6
  616. package/lib/swipe-cell/SwipeCell.d.ts +6 -6
  617. package/lib/swipe-cell/SwipeCell.js +7 -8
  618. package/lib/swipe-cell/index.css +1 -1
  619. package/lib/swipe-cell/index.d.ts +6 -6
  620. package/lib/swipe-item/SwipeItem.d.ts +1 -1
  621. package/lib/swipe-item/SwipeItem.js +6 -7
  622. package/lib/swipe-item/index.d.ts +1 -1
  623. package/lib/switch/Switch.d.ts +5 -5
  624. package/lib/switch/Switch.js +1 -2
  625. package/lib/switch/index.d.ts +5 -5
  626. package/lib/tab/Tab.d.ts +7 -4
  627. package/lib/tab/Tab.js +6 -7
  628. package/lib/tab/index.d.ts +6 -4
  629. package/lib/tabbar/Tabbar.d.ts +5 -5
  630. package/lib/tabbar/Tabbar.js +2 -3
  631. package/lib/tabbar/index.d.ts +5 -5
  632. package/lib/tabbar-item/TabbarItem.d.ts +8 -5
  633. package/lib/tabbar-item/TabbarItem.js +3 -4
  634. package/lib/tabbar-item/index.css +1 -1
  635. package/lib/tabbar-item/index.d.ts +7 -5
  636. package/lib/table/Table.d.ts +5 -5
  637. package/lib/table/Table.js +21 -11
  638. package/lib/table/index.css +1 -1
  639. package/lib/table/index.d.ts +5 -5
  640. package/lib/tabs/Tabs.d.ts +5 -5
  641. package/lib/tabs/Tabs.js +20 -21
  642. package/lib/tabs/TabsContent.d.ts +5 -5
  643. package/lib/tabs/TabsContent.js +4 -5
  644. package/lib/tabs/TabsTitle.d.ts +4 -4
  645. package/lib/tabs/TabsTitle.js +6 -7
  646. package/lib/tabs/index.css +1 -1
  647. package/lib/tabs/index.d.ts +5 -5
  648. package/lib/tag/Tag.d.ts +5 -5
  649. package/lib/tag/Tag.js +2 -3
  650. package/lib/tag/index.d.ts +5 -5
  651. package/lib/text-ellipsis/TextEllipsis.d.ts +5 -5
  652. package/lib/text-ellipsis/TextEllipsis.js +8 -9
  653. package/lib/text-ellipsis/index.d.ts +5 -5
  654. package/lib/time-picker/Arrow.d.ts +2 -2
  655. package/lib/time-picker/Arrow.js +1 -2
  656. package/lib/time-picker/TimePicker.d.ts +5 -5
  657. package/lib/time-picker/TimePicker.js +12 -13
  658. package/lib/time-picker/TimePickerColumn.d.ts +5 -5
  659. package/lib/time-picker/TimePickerColumn.js +6 -7
  660. package/lib/time-picker/index.css +1 -1
  661. package/lib/time-picker/index.d.ts +5 -5
  662. package/lib/timeline/Timeline.d.ts +4 -4
  663. package/lib/timeline/Timeline.js +3 -4
  664. package/lib/timeline/index.d.ts +4 -4
  665. package/lib/toast/Toast.d.ts +5 -5
  666. package/lib/toast/Toast.js +5 -6
  667. package/lib/toast/function-call.js +3 -4
  668. package/lib/toast/index.css +1 -1
  669. package/lib/toast/index.d.ts +5 -5
  670. package/lib/uploader/Uploader.d.ts +5 -5
  671. package/lib/uploader/Uploader.js +4 -5
  672. package/lib/uploader/UploaderPreviewItem.d.ts +5 -5
  673. package/lib/uploader/UploaderPreviewItem.js +1 -2
  674. package/lib/uploader/index.d.ts +5 -5
  675. package/lib/utils/dom.d.ts +1 -1
  676. package/lib/utils/format.d.ts +1 -0
  677. package/lib/utils/format.js +15 -0
  678. package/lib/utils/mount-component.d.ts +1 -1
  679. package/lib/video/Video.d.ts +8 -5
  680. package/lib/video/Video.js +16 -35
  681. package/lib/video/index.css +1 -1
  682. package/lib/video/index.d.ts +7 -5
  683. package/lib/video/types.d.ts +1 -0
  684. package/lib/web-types.json +1 -1
  685. package/lib/zartui.cjs.js +2366 -2119
  686. package/lib/zartui.es.js +2367 -2120
  687. package/lib/zartui.js +18194 -17944
  688. package/lib/zartui.min.js +1 -1
  689. package/package.json +81 -81
@@ -22,7 +22,6 @@ __export(stdin_exports, {
22
22
  });
23
23
  module.exports = __toCommonJS(stdin_exports);
24
24
  var import_vue = require("vue");
25
- var import_vue2 = require("vue");
26
25
  var import_utils = require("../utils");
27
26
  var import_use = require("@zartui/use");
28
27
  var import_use_touch = require("../composables/use-touch");
@@ -47,9 +46,12 @@ const sliderProps = {
47
46
  title: String,
48
47
  // 标题跟进度与主体进度条的排列方式
49
48
  direction: (0, import_utils.makeStringProp)("horizontal"),
50
- showPercent: import_utils.truthProp
49
+ showPercent: import_utils.truthProp,
50
+ // 进度条在边缘时,为了防止进度条显示被挤压,对进度条边缘进行扩充,扩充的宽度
51
+ barEdgeOffset: (0, import_utils.makeNumberProp)(4),
52
+ barEdgeOffsetBoundary: (0, import_utils.makeNumberProp)(10)
51
53
  };
52
- var stdin_default = (0, import_vue2.defineComponent)({
54
+ var stdin_default = (0, import_vue.defineComponent)({
53
55
  name,
54
56
  props: sliderProps,
55
57
  emits: ["change", "dragEnd", "dragStart", "update:modelValue"],
@@ -60,12 +62,12 @@ var stdin_default = (0, import_vue2.defineComponent)({
60
62
  let buttonIndex;
61
63
  let current;
62
64
  let startValue;
63
- const root = (0, import_vue2.ref)();
64
- const slider = [(0, import_vue2.ref)(), (0, import_vue2.ref)()];
65
- const dragStatus = (0, import_vue2.ref)();
65
+ const root = (0, import_vue.ref)();
66
+ const slider = [(0, import_vue.ref)(), (0, import_vue.ref)()];
67
+ const dragStatus = (0, import_vue.ref)();
66
68
  const touch = (0, import_use_touch.useTouch)();
67
- const scope = (0, import_vue2.computed)(() => Number(props.max) - Number(props.min));
68
- const wrapperStyle = (0, import_vue2.computed)(() => {
69
+ const scope = (0, import_vue.computed)(() => Number(props.max) - Number(props.min));
70
+ const wrapperStyle = (0, import_vue.computed)(() => {
69
71
  const crossAxis = props.vertical ? "width" : "height";
70
72
  return {
71
73
  background: props.inactiveColor,
@@ -73,15 +75,21 @@ var stdin_default = (0, import_vue2.defineComponent)({
73
75
  };
74
76
  });
75
77
  const isRange = (val) => props.range && Array.isArray(val);
78
+ function calcBarWidthInEdge(originWidth) {
79
+ if (originWidth < props.barEdgeOffsetBoundary && originWidth > 0) {
80
+ return props.barEdgeOffset + originWidth;
81
+ }
82
+ return originWidth;
83
+ }
76
84
  const calcMainAxis = () => {
77
85
  const {
78
86
  modelValue,
79
87
  min
80
88
  } = props;
81
89
  if (isRange(modelValue)) {
82
- return `${(modelValue[1] - modelValue[0]) * 100 / scope.value}%`;
90
+ return `${calcBarWidthInEdge(modelValue[1] - modelValue[0]) * 100 / scope.value}%`;
83
91
  }
84
- return `${(modelValue - Number(min)) * 100 / scope.value}%`;
92
+ return `${calcBarWidthInEdge(modelValue - Number(min)) * 100 / scope.value}%`;
85
93
  };
86
94
  const calcOffset = () => {
87
95
  const {
@@ -89,7 +97,8 @@ var stdin_default = (0, import_vue2.defineComponent)({
89
97
  min
90
98
  } = props;
91
99
  if (isRange(modelValue)) {
92
- return `${(modelValue[0] - Number(min)) * 100 / scope.value}%`;
100
+ const diff = modelValue[0] - Number(min);
101
+ return `${diff * 100 / scope.value}%`;
93
102
  }
94
103
  return "0%";
95
104
  };
@@ -99,7 +108,7 @@ var stdin_default = (0, import_vue2.defineComponent)({
99
108
  }
100
109
  return props.reverse ? "right" : "left";
101
110
  };
102
- const barStyle = (0, import_vue2.computed)(() => {
111
+ const barStyle = (0, import_vue.computed)(() => {
103
112
  const mainAxis = props.vertical ? "height" : "width";
104
113
  const style = {
105
114
  [mainAxis]: calcMainAxis(),
@@ -324,7 +333,7 @@ var stdin_default = (0, import_vue2.defineComponent)({
324
333
  }, [renderTitle(), renderPercent()]), sliderContent]);
325
334
  }
326
335
  };
327
- const sliderStyle = (0, import_vue2.computed)(() => {
336
+ const sliderStyle = (0, import_vue.computed)(() => {
328
337
  const direction = props.direction === "horizontal" ? "horizontal" : "vertical";
329
338
  return {
330
339
  vertical: props.vertical,
@@ -1 +1 @@
1
- :root,:host{--zt-slider-active-background: linear-gradient(90deg, var(--zt-primary-color-light) 0%, var(--zt-primary-color) 100%);--zt-slider-inactive-background: var(--zt-gray-a04);--zt-slider-disabled-opacity: var(--zt-disabled-opacity);--zt-slider-bar-height: var(--zt-line-height-xs);--zt-slider-button-width: var(--zt-font-size-lg);--zt-slider-button-height: var(--zt-font-size-lg);--zt-slider-button-radius: 50%;--zt-slider-vertical-gap: 4px;--zt-slider-horizontal-gap: 12px;--zt-slider-button-background: linear-gradient(180deg, rgb(var(--zt-primary-color-r), calc(var(--zt-primary-color-g) + 50), var(--zt-primary-color-b)) 0%, var(--zt-primary-color) 100%);--zt-slider-button-shadow: 0 2px 4px 0 var(--zt-primary-color-a2);--zt-slider-button-border-color: var(--zt-white)}:root[zt-theme-size=large],:host[zt-theme-size=large]{--zt-slider-horizontal-gap: 16px}.zt-theme-dark{--zt-slider-inactive-background: var(--zt-background-3)}.zt-slider__bar-wrapper{position:relative;width:100%;height:var(--zt-slider-bar-height);background:var(--zt-slider-inactive-background);border-radius:var(--zt-radius-max);cursor:pointer}.zt-slider__bar-wrapper:before{position:absolute;top:calc(var(--zt-padding-xs) * -1);right:0;bottom:calc(var(--zt-padding-xs) * -1);left:0;content:""}.zt-slider__bar-wrapper .zt-slider__bar{position:absolute;width:100%;height:100%;background:var(--zt-slider-active-background);border-radius:inherit;transition:all var(--zt-duration-fast)}.zt-slider__button{width:var(--zt-slider-button-width);height:var(--zt-slider-button-height);background:var(--zt-slider-button-background);border-radius:var(--zt-slider-button-radius);box-shadow:var(--zt-slider-button-shadow);border:1px solid var(--zt-slider-button-border-color)}.zt-slider__button-wrapper{position:absolute;cursor:-webkit-grab;cursor:grab;top:50%}.zt-slider--disabled{cursor:not-allowed;opacity:var(--zt-slider-disabled-opacity)}.zt-slider--disabled .zt-slider__button-wrapper{cursor:not-allowed}.zt-slider--horizontal{display:flex;align-items:center;gap:var(--zt-slider-horizontal-gap)}.zt-slider--horizontal .zt-slider__title,.zt-slider--horizontal .zt-slider__percent{font-size:var(--zt-font-size-md);color:var(--zt-text-color);line-height:var(--zt-line-height-md);word-break:break-all}.zt-slider--horizontal .zt-slider__title{font-weight:600;max-width:50%}.zt-slider--horizontal .zt-slider__percent{font-weight:400;max-width:20%;min-width:2em;text-align:right}.zt-slider--vertical{width:100%;display:flex;flex-direction:column;gap:var(--zt-slider-vertical-gap)}.zt-slider--vertical .zt-slider__title,.zt-slider--vertical .zt-slider__percent{opacity:.8;font-weight:400;font-size:var(--zt-font-size-sm);color:var(--zt-text-color);line-height:var(--zt-line-height-sm);word-break:break-all}.zt-slider--vertical .zt-slider__title{min-width:0;flex:1}.zt-slider--vertical .zt-slider__percent{max-width:50%}.zt-slider__title,.zt-slider__percent{flex-shrink:0}.zt-slider__direction-vertical-title{display:flex;justify-content:space-between;align-items:center;gap:var(--zt-slider-vertical-gap)}
1
+ :root,:host{--zt-slider-active-background: linear-gradient(90deg, var(--zt-primary-color-light) 0%, var(--zt-primary-color) 100%);--zt-slider-inactive-background: var(--zt-gray-a04);--zt-slider-disabled-opacity: var(--zt-disabled-opacity);--zt-slider-bar-height: var(--zt-line-height-xs);--zt-slider-button-width: var(--zt-font-size-lg);--zt-slider-button-height: var(--zt-font-size-lg);--zt-slider-button-radius: 50%;--zt-slider-vertical-gap: 4px;--zt-slider-horizontal-gap: 12px;--zt-slider-button-background: linear-gradient(180deg, rgb(var(--zt-primary-color-r), calc(var(--zt-primary-color-g) + 50), var(--zt-primary-color-b)) 0%, var(--zt-primary-color) 100%);--zt-slider-button-shadow: 0 2px 4px 0 var(--zt-primary-color-a2);--zt-slider-button-border-color: var(--zt-white)}:root[zt-theme-size=large],:host[zt-theme-size=large]{--zt-slider-horizontal-gap: 16px}.zt-theme-dark{--zt-slider-inactive-background: var(--zt-background-3)}.zt-slider__bar-wrapper{position:relative;width:100%;height:var(--zt-slider-bar-height);background:var(--zt-slider-inactive-background);border-radius:var(--zt-radius-max);cursor:pointer}.zt-slider__bar-wrapper:before{position:absolute;top:calc(var(--zt-padding-xs) * -1);right:0;bottom:calc(var(--zt-padding-xs) * -1);left:0;content:""}.zt-slider__bar-wrapper .zt-slider__bar{position:absolute;width:100%;height:100%;background:var(--zt-slider-active-background);border-radius:inherit;transition:all var(--zt-duration-fast)}.zt-slider__button{width:var(--zt-slider-button-width);height:var(--zt-slider-button-height);background:var(--zt-slider-button-background);border-radius:var(--zt-slider-button-radius);box-shadow:var(--zt-slider-button-shadow);border:1px solid var(--zt-slider-button-border-color)}.zt-slider__button-wrapper{position:absolute;cursor:grab;top:50%}.zt-slider--disabled{cursor:not-allowed;opacity:var(--zt-slider-disabled-opacity)}.zt-slider--disabled .zt-slider__button-wrapper{cursor:not-allowed}.zt-slider--horizontal{display:flex;align-items:center;gap:var(--zt-slider-horizontal-gap)}.zt-slider--horizontal .zt-slider__title,.zt-slider--horizontal .zt-slider__percent{font-size:var(--zt-font-size-md);color:var(--zt-text-color);line-height:var(--zt-line-height-md);word-break:break-all}.zt-slider--horizontal .zt-slider__title{font-weight:600;max-width:50%}.zt-slider--horizontal .zt-slider__percent{font-weight:400;max-width:20%;min-width:2em;text-align:right}.zt-slider--vertical{width:100%;display:flex;flex-direction:column;gap:var(--zt-slider-vertical-gap)}.zt-slider--vertical .zt-slider__title,.zt-slider--vertical .zt-slider__percent{opacity:.8;font-weight:400;font-size:var(--zt-font-size-sm);color:var(--zt-text-color);line-height:var(--zt-line-height-sm);word-break:break-all}.zt-slider--vertical .zt-slider__title{min-width:0;flex:1}.zt-slider--vertical .zt-slider__percent{max-width:50%}.zt-slider__title,.zt-slider__percent{flex-shrink:0}.zt-slider__direction-vertical-title{display:flex;justify-content:space-between;align-items:center;gap:var(--zt-slider-vertical-gap)}
@@ -1,4 +1,4 @@
1
- export declare const Slider: import("../utils").WithInstall<import("vue").DefineComponent<{
1
+ export declare const Slider: import("../utils").WithInstall<import("vue").DefineComponent<import("vue").ExtractPropTypes<{
2
2
  min: {
3
3
  type: (NumberConstructor | StringConstructor)[];
4
4
  default: number;
@@ -36,7 +36,15 @@ export declare const Slider: import("../utils").WithInstall<import("vue").Define
36
36
  type: BooleanConstructor;
37
37
  default: true;
38
38
  };
39
- }, () => import("vue/jsx-runtime").JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "change" | "dragStart" | "dragEnd")[], "update:modelValue" | "change" | "dragStart" | "dragEnd", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
39
+ barEdgeOffset: {
40
+ type: NumberConstructor;
41
+ default: number;
42
+ };
43
+ barEdgeOffsetBoundary: {
44
+ type: NumberConstructor;
45
+ default: number;
46
+ };
47
+ }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "change" | "dragEnd" | "dragStart")[], "update:modelValue" | "change" | "dragEnd" | "dragStart", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
40
48
  min: {
41
49
  type: (NumberConstructor | StringConstructor)[];
42
50
  default: number;
@@ -74,12 +82,20 @@ export declare const Slider: import("../utils").WithInstall<import("vue").Define
74
82
  type: BooleanConstructor;
75
83
  default: true;
76
84
  };
77
- }>> & {
85
+ barEdgeOffset: {
86
+ type: NumberConstructor;
87
+ default: number;
88
+ };
89
+ barEdgeOffsetBoundary: {
90
+ type: NumberConstructor;
91
+ default: number;
92
+ };
93
+ }>> & Readonly<{
78
94
  onChange?: ((...args: any[]) => any) | undefined;
79
95
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
80
- onDragStart?: ((...args: any[]) => any) | undefined;
81
96
  onDragEnd?: ((...args: any[]) => any) | undefined;
82
- }, {
97
+ onDragStart?: ((...args: any[]) => any) | undefined;
98
+ }>, {
83
99
  reverse: boolean;
84
100
  range: boolean;
85
101
  max: string | number;
@@ -88,10 +104,12 @@ export declare const Slider: import("../utils").WithInstall<import("vue").Define
88
104
  direction: import("./Slider").SliderDirection;
89
105
  modelValue: number | [number, number];
90
106
  readonly: boolean;
91
- step: string | number;
92
107
  min: string | number;
108
+ step: string | number;
93
109
  showPercent: boolean;
94
- }, {}>>;
110
+ barEdgeOffset: number;
111
+ barEdgeOffsetBoundary: number;
112
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>>;
95
113
  export default Slider;
96
114
  export { sliderProps } from './Slider';
97
115
  export type { SliderProps, SliderDirection } from './Slider';
@@ -3,13 +3,13 @@ export declare const stepProps: {
3
3
  activeIcon: StringConstructor;
4
4
  inactiveIcon: StringConstructor;
5
5
  };
6
- declare const _default: import("vue").DefineComponent<{
6
+ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
7
7
  iconPrefix: StringConstructor;
8
8
  activeIcon: StringConstructor;
9
9
  inactiveIcon: StringConstructor;
10
- }, (() => import("vue/jsx-runtime").JSX.Element) | undefined, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
10
+ }>, (() => import("vue/jsx-runtime").JSX.Element) | undefined, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
11
11
  iconPrefix: StringConstructor;
12
12
  activeIcon: StringConstructor;
13
13
  inactiveIcon: StringConstructor;
14
- }>>, {}, {}>;
14
+ }>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
15
15
  export default _default;
package/lib/step/Step.js CHANGED
@@ -22,7 +22,6 @@ __export(stdin_exports, {
22
22
  });
23
23
  module.exports = __toCommonJS(stdin_exports);
24
24
  var import_vue = require("vue");
25
- var import_vue2 = require("vue");
26
25
  var import_utils = require("../utils");
27
26
  var import_Steps = require("../steps/Steps");
28
27
  var import_use = require("@zartui/use");
@@ -33,7 +32,7 @@ const stepProps = {
33
32
  activeIcon: String,
34
33
  inactiveIcon: String
35
34
  };
36
- var stdin_default = (0, import_vue2.defineComponent)({
35
+ var stdin_default = (0, import_vue.defineComponent)({
37
36
  name,
38
37
  props: stepProps,
39
38
  setup(props, {
@@ -55,7 +54,7 @@ var stdin_default = (0, import_vue2.defineComponent)({
55
54
  return index.value === active ? "process" : "waiting";
56
55
  };
57
56
  const isActive = () => getStatus() === "process";
58
- const titleStyle = (0, import_vue2.computed)(() => {
57
+ const titleStyle = (0, import_vue.computed)(() => {
59
58
  if (isActive()) {
60
59
  return {
61
60
  color: parentProps.titleActiveColor || ""
@@ -1 +1 @@
1
- :root{--zt-step-process-text-color: var(--zt-text-color);--zt-step-line-color: var(--zt-gray-a1);--zt-step-circle-container-background: var(--zt-background-popup);--zt-step-circle-container-left: 0}:root[zt-theme-size=large]{--zt-step-circle-container-left: 6px}.zt-step{-webkit-user-select:none;user-select:none;position:relative;flex:1}.zt-step__circle{display:block;width:var(--zt-line-height-md);height:var(--zt-line-height-md);line-height:var(--zt-line-height-md);background:var(--zt-gray-a2);border-radius:50%;text-align:center;font-size:var(--zt-font-size-md)}.zt-step__line{position:absolute;background-color:var(--zt-step-line-color);transition:background-color var(--zt-duration-base)}.zt-step--horizontal{float:left}.zt-step--horizontal .zt-step__circle-container{position:absolute;top:10px;left:calc(50% - 10px);z-index:1;background-color:var(--zt-step-circle-container-background);transform:translateY(-50%)}.zt-step--horizontal .zt-step__title{display:inline-block;margin-top:26px;font-size:var(--zt-font-size-md);color:var(--zt-gray-a6);width:100%;text-align:center}.zt-step--horizontal .zt-step__title--active{color:var(--zt-text-color)}.zt-step--horizontal .zt-step__line{top:10px;left:calc(50% + 14px);width:calc(100% - 28px);height:1px}.zt-step--horizontal .zt-step__icon{display:block;font-size:var(--zt-font-size-sm);left:50%;top:50%;transform:translate(-50%,-50%)}.zt-step--horizontal .zt-step--process{color:var(--zt-step-process-text-color)}.zt-step--vertical{display:block;float:none;padding:10px 16px 10px 8px;line-height:var(--zt-line-height-md)}.zt-step--vertical .zt-step__title{font-size:var(--zt-font-size-md);color:var(--zt-gray-a6)}.zt-step--vertical .zt-step__circle-container{position:absolute;top:20px;left:var(--zt-step-circle-container-left);z-index:1;font-size:var(--zt-font-size-sm);line-height:1;transform:translate(-100%,-50%)}.zt-step--vertical .zt-step__line{left:-10px;top:34px;height:calc(100% - 28px);width:1px}.zt-step--vertical .zt-step__icon{display:block;font-size:var(--zt-font-size-sm);left:50%;top:50%;transform:translate(-50%,-50%)}.zt-step:last-child .zt-step__line{width:0}.zt-step__icon,.zt-step__title{transition:color var(--zt-duration-base)}
1
+ :root{--zt-step-process-text-color: var(--zt-text-color);--zt-step-line-color: var(--zt-gray-a1);--zt-step-circle-container-background: var(--zt-background-popup);--zt-step-circle-container-left: 0}:root[zt-theme-size=large]{--zt-step-circle-container-left: 6px}.zt-step{-webkit-user-select:none;-moz-user-select:none;user-select:none;position:relative;flex:1}.zt-step__circle{display:block;width:var(--zt-line-height-md);height:var(--zt-line-height-md);line-height:var(--zt-line-height-md);background:var(--zt-gray-a2);border-radius:50%;text-align:center;font-size:var(--zt-font-size-md)}.zt-step__line{position:absolute;background-color:var(--zt-step-line-color);transition:background-color var(--zt-duration-base)}.zt-step--horizontal{float:left}.zt-step--horizontal .zt-step__circle-container{position:absolute;top:10px;left:calc(50% - 10px);z-index:1;background-color:var(--zt-step-circle-container-background);transform:translateY(-50%)}.zt-step--horizontal .zt-step__title{display:inline-block;margin-top:26px;font-size:var(--zt-font-size-md);color:var(--zt-gray-a6);width:100%;text-align:center}.zt-step--horizontal .zt-step__title--active{color:var(--zt-text-color)}.zt-step--horizontal .zt-step__line{top:10px;left:calc(50% + 14px);width:calc(100% - 28px);height:1px}.zt-step--horizontal .zt-step__icon{display:block;font-size:var(--zt-font-size-sm);left:50%;top:50%;transform:translate(-50%,-50%)}.zt-step--horizontal .zt-step--process{color:var(--zt-step-process-text-color)}.zt-step--vertical{display:block;float:none;padding:10px 16px 10px 8px;line-height:var(--zt-line-height-md)}.zt-step--vertical .zt-step__title{font-size:var(--zt-font-size-md);color:var(--zt-gray-a6)}.zt-step--vertical .zt-step__circle-container{position:absolute;top:20px;left:var(--zt-step-circle-container-left);z-index:1;font-size:var(--zt-font-size-sm);line-height:1;transform:translate(-100%,-50%)}.zt-step--vertical .zt-step__line{left:-10px;top:34px;height:calc(100% - 28px);width:1px}.zt-step--vertical .zt-step__icon{display:block;font-size:var(--zt-font-size-sm);left:50%;top:50%;transform:translate(-50%,-50%)}.zt-step:last-child .zt-step__line{width:0}.zt-step__icon,.zt-step__title{transition:color var(--zt-duration-base)}
@@ -1,12 +1,12 @@
1
- export declare const Step: import("../utils").WithInstall<import("vue").DefineComponent<{
1
+ export declare const Step: import("../utils").WithInstall<import("vue").DefineComponent<import("vue").ExtractPropTypes<{
2
2
  iconPrefix: StringConstructor;
3
3
  activeIcon: StringConstructor;
4
4
  inactiveIcon: StringConstructor;
5
- }, (() => import("vue/jsx-runtime").JSX.Element) | undefined, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
5
+ }>, (() => import("vue/jsx-runtime").JSX.Element) | undefined, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
6
6
  iconPrefix: StringConstructor;
7
7
  activeIcon: StringConstructor;
8
8
  inactiveIcon: StringConstructor;
9
- }>>, {}, {}>>;
9
+ }>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>>;
10
10
  export default Step;
11
11
  export type { StepThemeVars } from './types';
12
12
  declare module 'vue' {
@@ -53,7 +53,7 @@ declare const stepperProps: {
53
53
  decimalLength: (NumberConstructor | StringConstructor)[];
54
54
  };
55
55
  export type StepperProps = ExtractPropTypes<typeof stepperProps>;
56
- declare const _default: import("vue").DefineComponent<{
56
+ declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
57
57
  min: {
58
58
  type: (NumberConstructor | StringConstructor)[];
59
59
  default: number;
@@ -103,7 +103,7 @@ declare const _default: import("vue").DefineComponent<{
103
103
  default: number;
104
104
  };
105
105
  decimalLength: (NumberConstructor | StringConstructor)[];
106
- }, () => import("vue/jsx-runtime").JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("focus" | "blur" | "update:modelValue" | "change" | "minus" | "plus" | "overlimit")[], "focus" | "blur" | "update:modelValue" | "change" | "minus" | "plus" | "overlimit", import("vue").PublicProps, Readonly<ExtractPropTypes<{
106
+ }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("focus" | "blur" | "update:modelValue" | "change" | "minus" | "plus" | "overlimit")[], "focus" | "blur" | "update:modelValue" | "change" | "minus" | "plus" | "overlimit", import("vue").PublicProps, Readonly<ExtractPropTypes<{
107
107
  min: {
108
108
  type: (NumberConstructor | StringConstructor)[];
109
109
  default: number;
@@ -153,7 +153,7 @@ declare const _default: import("vue").DefineComponent<{
153
153
  default: number;
154
154
  };
155
155
  decimalLength: (NumberConstructor | StringConstructor)[];
156
- }>> & {
156
+ }>> & Readonly<{
157
157
  onFocus?: ((...args: any[]) => any) | undefined;
158
158
  onBlur?: ((...args: any[]) => any) | undefined;
159
159
  onChange?: ((...args: any[]) => any) | undefined;
@@ -161,13 +161,13 @@ declare const _default: import("vue").DefineComponent<{
161
161
  onMinus?: ((...args: any[]) => any) | undefined;
162
162
  onPlus?: ((...args: any[]) => any) | undefined;
163
163
  onOverlimit?: ((...args: any[]) => any) | undefined;
164
- }, {
164
+ }>, {
165
165
  name: string | number;
166
166
  max: string | number;
167
167
  disabled: boolean;
168
- longPress: boolean;
169
- step: string | number;
170
168
  min: string | number;
169
+ step: string | number;
170
+ longPress: boolean;
171
171
  integer: boolean;
172
172
  showPlus: boolean;
173
173
  showMinus: boolean;
@@ -177,5 +177,5 @@ declare const _default: import("vue").DefineComponent<{
177
177
  disableMinus: boolean;
178
178
  disableInput: boolean;
179
179
  defaultValue: string | number;
180
- }, {}>;
180
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
181
181
  export default _default;
@@ -31,7 +31,6 @@ __export(stdin_exports, {
31
31
  });
32
32
  module.exports = __toCommonJS(stdin_exports);
33
33
  var import_vue = require("vue");
34
- var import_vue2 = require("vue");
35
34
  var import_utils = require("../utils");
36
35
  var import_use = require("@zartui/use");
37
36
  var import_icon = __toESM(require("../icon"));
@@ -62,7 +61,7 @@ const stepperProps = {
62
61
  defaultValue: (0, import_utils.makeNumericProp)(1),
63
62
  decimalLength: import_utils.numericProp
64
63
  };
65
- var stdin_default = (0, import_vue2.defineComponent)({
64
+ var stdin_default = (0, import_vue.defineComponent)({
66
65
  name,
67
66
  props: stepperProps,
68
67
  emits: ["plus", "blur", "minus", "focus", "change", "overlimit", "update:modelValue"],
@@ -98,15 +97,15 @@ var stdin_default = (0, import_vue2.defineComponent)({
98
97
  return value;
99
98
  };
100
99
  let actionType;
101
- const inputRef = (0, import_vue2.ref)();
102
- const current = (0, import_vue2.ref)(getInitialValue());
103
- const minusDisabled = (0, import_vue2.computed)(() => props.disabled || props.disableMinus || +current.value <= +props.min);
104
- const plusDisabled = (0, import_vue2.computed)(() => props.disabled || props.disablePlus || +current.value >= +props.max);
105
- const inputStyle = (0, import_vue2.computed)(() => ({
100
+ const inputRef = (0, import_vue.ref)();
101
+ const current = (0, import_vue.ref)(getInitialValue());
102
+ const minusDisabled = (0, import_vue.computed)(() => props.disabled || props.disableMinus || +current.value <= +props.min);
103
+ const plusDisabled = (0, import_vue.computed)(() => props.disabled || props.disablePlus || +current.value >= +props.max);
104
+ const inputStyle = (0, import_vue.computed)(() => ({
106
105
  width: (0, import_utils.addUnit)(props.inputWidth),
107
106
  height: (0, import_utils.addUnit)(props.buttonSize)
108
107
  }));
109
- const buttonStyle = (0, import_vue2.computed)(() => (0, import_utils.getSizeStyle)(props.buttonSize));
108
+ const buttonStyle = (0, import_vue.computed)(() => (0, import_utils.getSizeStyle)(props.buttonSize));
110
109
  const check = () => {
111
110
  const value = format(current.value);
112
111
  if (!isEqual(value, current.value)) {
@@ -169,7 +168,7 @@ var stdin_default = (0, import_vue2.defineComponent)({
169
168
  const value = format(input.value);
170
169
  input.value = String(value);
171
170
  current.value = value;
172
- (0, import_vue2.nextTick)(() => {
171
+ (0, import_vue.nextTick)(() => {
173
172
  emit("blur", event);
174
173
  (0, import_utils.resetScroll)();
175
174
  });
@@ -219,13 +218,13 @@ var stdin_default = (0, import_vue2.defineComponent)({
219
218
  onTouchend: onTouchEnd,
220
219
  onTouchcancel: onTouchEnd
221
220
  });
222
- (0, import_vue2.watch)(() => [props.max, props.min, props.integer, props.decimalLength], check);
223
- (0, import_vue2.watch)(() => props.modelValue, (value) => {
221
+ (0, import_vue.watch)(() => [props.max, props.min, props.integer, props.decimalLength], check);
222
+ (0, import_vue.watch)(() => props.modelValue, (value) => {
224
223
  if (!isEqual(value, current.value)) {
225
224
  current.value = format(value);
226
225
  }
227
226
  });
228
- (0, import_vue2.watch)(current, (value) => {
227
+ (0, import_vue.watch)(current, (value) => {
229
228
  emit("update:modelValue", value);
230
229
  emit("change", value, {
231
230
  name: props.name
@@ -1 +1 @@
1
- :root{--zt-stepper-background: rgba(45, 75, 115, .04);--zt-stepper-background-image: linear-gradient(135deg, #e6ebf0 0%, #ffffff 100%, #ffffff 100%);--zt-stepper-box-border: 0;--zt-stepper-button-icon-color: var(--zt-text-color);--zt-stepper-button-disabled-color: var(--zt-background);--zt-stepper-button-disabled-icon-color: var(--zt-gray-a2);--zt-stepper-button-round-theme-color: var(--zt-primary-color);--zt-stepper-button-box-shadow: -4px -4px 8px 0 #ffffff, 4px 4px 8px 0px rgba(45, 75, 115, .1);--zt-stepper-input-width: 60px;--zt-stepper-input-height: 32px;--zt-stepper-input-text-color: var(--zt-text-color);--zt-stepper-input-disabled-text-color: var(--zt-gray-a2);--zt-stepper-input-disabled-background: var(--zt-active-color);--zt-stepper-input-box-shadow: inset 4px 4px 8px -4px rgba(45, 75, 115, .1);--zt-stepper-radius: var(--zt-radius-max)}.zt-stepper{display:inline-block;-webkit-user-select:none;user-select:none}.zt-stepper__could-click:active{box-shadow:inset 4px 4px 8px rgba(45,75,115,.24)}.zt-stepper__minus,.zt-stepper__plus{display:inline-flex;justify-content:center;align-items:center;position:relative;box-sizing:border-box;width:var(--zt-stepper-input-height);height:var(--zt-stepper-input-height);margin:0;padding:0;vertical-align:middle;background:var(--zt-stepper-background);border:var(--zt-stepper-box-border);background-image:var(--zt-stepper-background-image);box-shadow:var(--zt-stepper-button-box-shadow)}.zt-stepper__minus i,.zt-stepper__plus i{transform:scale(.625)}.zt-stepper__minus--disabled,.zt-stepper__plus--disabled{color:var(--zt-stepper-button-disabled-icon-color);background-color:var(--zt-stepper-button-disabled-color);cursor:not-allowed}.zt-stepper__minus{border-radius:var(--zt-stepper-radius) var(--zt-stepper-radius) var(--zt-stepper-radius) var(--zt-stepper-radius)}.zt-stepper__minus:after{display:none}.zt-stepper__plus{border-radius:var(--zt-stepper-radius) var(--zt-stepper-radius) var(--zt-stepper-radius) var(--zt-stepper-radius)}.zt-stepper__input{box-sizing:border-box;width:var(--zt-stepper-input-width);height:var(--zt-stepper-input-height);margin:0 12px;padding:4px;color:var(--zt-stepper-input-text-color);font-size:var(--zt-font-size-md);line-height:var(--zt-line-height-md);text-align:center;vertical-align:middle;background:var(--zt-stepper-background);border:var(--zt-stepper-box-border);border-radius:var(--zt-radius-gt);box-shadow:var(--zt-stepper-input-box-shadow);-webkit-appearance:none}.zt-stepper__input:disabled{color:var(--zt-stepper-input-disabled-text-color);background:var(--zt-stepper-input-disabled-background);-webkit-text-fill-color:var(--zt-stepper-input-disabled-text-color);opacity:1}.zt-stepper__input:read-only{cursor:default}.zt-stepper--round .zt-stepper__input{background-color:transparent}.zt-stepper--round .zt-stepper__plus,.zt-stepper--round .zt-stepper__minus{border-radius:100%}.zt-stepper--round .zt-stepper__plus--disabled,.zt-stepper--round .zt-stepper__minus--disabled{opacity:.3;cursor:not-allowed}.zt-stepper--round .zt-stepper__plus{color:var(--zt-white);background:var(--zt-stepper-button-round-theme-color)}.zt-stepper--round .zt-stepper__minus{color:var(--zt-stepper-button-round-theme-color);background-color:var(--zt-background-popup);border:1px solid var(--zt-stepper-button-round-theme-color)}.zt-theme-dark{--zt-stepper-background: #19232d;--zt-stepper-background-image: linear-gradient(135deg, #0e1824 0%, #203043 100%);--zt-stepper-box-border: 1px solid rgba(255, 255, 255, .12);--zt-stepper-button-box-shadow: -1px -1px 2px 0 rgba(255, 255, 255, .12), 0 0 3px 0 rgba(0, 12, 24, .8);--zt-stepper-input-disabled-background: linear-gradient(147deg, #0e1824 0%, #203043 100%)}
1
+ :root{--zt-stepper-background: rgba(45, 75, 115, .04);--zt-stepper-background-image: linear-gradient(135deg, #e6ebf0 0%, #ffffff 100%, #ffffff 100%);--zt-stepper-box-border: 0;--zt-stepper-button-icon-color: var(--zt-text-color);--zt-stepper-button-disabled-color: var(--zt-background);--zt-stepper-button-disabled-icon-color: var(--zt-gray-a2);--zt-stepper-button-round-theme-color: var(--zt-primary-color);--zt-stepper-button-box-shadow: -4px -4px 8px 0 #ffffff, 4px 4px 8px 0px rgba(45, 75, 115, .1);--zt-stepper-input-width: 60px;--zt-stepper-input-height: 32px;--zt-stepper-input-text-color: var(--zt-text-color);--zt-stepper-input-disabled-text-color: var(--zt-gray-a2);--zt-stepper-input-disabled-background: var(--zt-active-color);--zt-stepper-input-box-shadow: inset 4px 4px 8px -4px rgba(45, 75, 115, .1);--zt-stepper-radius: var(--zt-radius-max)}.zt-stepper{display:inline-block;-webkit-user-select:none;-moz-user-select:none;user-select:none}.zt-stepper__could-click:active{box-shadow:inset 4px 4px 8px rgba(45,75,115,.24)}.zt-stepper__minus,.zt-stepper__plus{display:inline-flex;justify-content:center;align-items:center;position:relative;box-sizing:border-box;width:var(--zt-stepper-input-height);height:var(--zt-stepper-input-height);margin:0;padding:0;vertical-align:middle;background:var(--zt-stepper-background);border:var(--zt-stepper-box-border);background-image:var(--zt-stepper-background-image);box-shadow:var(--zt-stepper-button-box-shadow)}.zt-stepper__minus i,.zt-stepper__plus i{transform:scale(.625)}.zt-stepper__minus--disabled,.zt-stepper__plus--disabled{color:var(--zt-stepper-button-disabled-icon-color);background-color:var(--zt-stepper-button-disabled-color);cursor:not-allowed}.zt-stepper__minus{border-radius:var(--zt-stepper-radius) var(--zt-stepper-radius) var(--zt-stepper-radius) var(--zt-stepper-radius)}.zt-stepper__minus:after{display:none}.zt-stepper__plus{border-radius:var(--zt-stepper-radius) var(--zt-stepper-radius) var(--zt-stepper-radius) var(--zt-stepper-radius)}.zt-stepper__input{box-sizing:border-box;width:var(--zt-stepper-input-width);height:var(--zt-stepper-input-height);margin:0 12px;padding:4px;color:var(--zt-stepper-input-text-color);font-size:var(--zt-font-size-md);line-height:var(--zt-line-height-md);text-align:center;vertical-align:middle;background:var(--zt-stepper-background);border:var(--zt-stepper-box-border);border-radius:var(--zt-radius-gt);box-shadow:var(--zt-stepper-input-box-shadow);-webkit-appearance:none}.zt-stepper__input:disabled{color:var(--zt-stepper-input-disabled-text-color);background:var(--zt-stepper-input-disabled-background);-webkit-text-fill-color:var(--zt-stepper-input-disabled-text-color);opacity:1}.zt-stepper__input:-moz-read-only{cursor:default}.zt-stepper__input:read-only{cursor:default}.zt-stepper--round .zt-stepper__input{background-color:transparent}.zt-stepper--round .zt-stepper__plus,.zt-stepper--round .zt-stepper__minus{border-radius:100%}.zt-stepper--round .zt-stepper__plus--disabled,.zt-stepper--round .zt-stepper__minus--disabled{opacity:.3;cursor:not-allowed}.zt-stepper--round .zt-stepper__plus{color:var(--zt-white);background:var(--zt-stepper-button-round-theme-color)}.zt-stepper--round .zt-stepper__minus{color:var(--zt-stepper-button-round-theme-color);background-color:var(--zt-background-popup);border:1px solid var(--zt-stepper-button-round-theme-color)}.zt-theme-dark{--zt-stepper-background: #19232d;--zt-stepper-background-image: linear-gradient(135deg, #0e1824 0%, #203043 100%);--zt-stepper-box-border: 1px solid rgba(255, 255, 255, .12);--zt-stepper-button-box-shadow: -1px -1px 2px 0 rgba(255, 255, 255, .12), 0 0 3px 0 rgba(0, 12, 24, .8);--zt-stepper-input-disabled-background: linear-gradient(147deg, #0e1824 0%, #203043 100%)}
@@ -1,4 +1,4 @@
1
- export declare const Stepper: import("../utils").WithInstall<import("vue").DefineComponent<{
1
+ export declare const Stepper: import("../utils").WithInstall<import("vue").DefineComponent<import("vue").ExtractPropTypes<{
2
2
  min: {
3
3
  type: (NumberConstructor | StringConstructor)[];
4
4
  default: number;
@@ -48,7 +48,7 @@ export declare const Stepper: import("../utils").WithInstall<import("vue").Defin
48
48
  default: number;
49
49
  };
50
50
  decimalLength: (NumberConstructor | StringConstructor)[];
51
- }, () => import("vue/jsx-runtime").JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("focus" | "blur" | "update:modelValue" | "change" | "minus" | "plus" | "overlimit")[], "focus" | "blur" | "update:modelValue" | "change" | "minus" | "plus" | "overlimit", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
51
+ }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("focus" | "blur" | "update:modelValue" | "change" | "minus" | "plus" | "overlimit")[], "focus" | "blur" | "update:modelValue" | "change" | "minus" | "plus" | "overlimit", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
52
52
  min: {
53
53
  type: (NumberConstructor | StringConstructor)[];
54
54
  default: number;
@@ -98,7 +98,7 @@ export declare const Stepper: import("../utils").WithInstall<import("vue").Defin
98
98
  default: number;
99
99
  };
100
100
  decimalLength: (NumberConstructor | StringConstructor)[];
101
- }>> & {
101
+ }>> & Readonly<{
102
102
  onFocus?: ((...args: any[]) => any) | undefined;
103
103
  onBlur?: ((...args: any[]) => any) | undefined;
104
104
  onChange?: ((...args: any[]) => any) | undefined;
@@ -106,13 +106,13 @@ export declare const Stepper: import("../utils").WithInstall<import("vue").Defin
106
106
  onMinus?: ((...args: any[]) => any) | undefined;
107
107
  onPlus?: ((...args: any[]) => any) | undefined;
108
108
  onOverlimit?: ((...args: any[]) => any) | undefined;
109
- }, {
109
+ }>, {
110
110
  name: string | number;
111
111
  max: string | number;
112
112
  disabled: boolean;
113
- longPress: boolean;
114
- step: string | number;
115
113
  min: string | number;
114
+ step: string | number;
115
+ longPress: boolean;
116
116
  integer: boolean;
117
117
  showPlus: boolean;
118
118
  showMinus: boolean;
@@ -122,7 +122,7 @@ export declare const Stepper: import("../utils").WithInstall<import("vue").Defin
122
122
  disableMinus: boolean;
123
123
  disableInput: boolean;
124
124
  defaultValue: string | number;
125
- }, {}>>;
125
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>>;
126
126
  export default Stepper;
127
127
  export type { StepperTheme, StepperProps } from './Stepper';
128
128
  export type { StepperThemeVars } from './types';
@@ -24,7 +24,7 @@ export type StepsProvide = {
24
24
  onClickStep: (index: number) => void;
25
25
  };
26
26
  export declare const STEPS_KEY: InjectionKey<StepsProvide>;
27
- declare const _default: import("vue").DefineComponent<{
27
+ declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
28
28
  active: {
29
29
  type: (NumberConstructor | StringConstructor)[];
30
30
  default: number;
@@ -41,7 +41,7 @@ declare const _default: import("vue").DefineComponent<{
41
41
  inactiveBgColor: StringConstructor;
42
42
  inactiveBorderColor: StringConstructor;
43
43
  titleInactiveColor: StringConstructor;
44
- }, () => import("vue/jsx-runtime").JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "clickStep"[], "clickStep", import("vue").PublicProps, Readonly<ExtractPropTypes<{
44
+ }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "clickStep"[], "clickStep", import("vue").PublicProps, Readonly<ExtractPropTypes<{
45
45
  active: {
46
46
  type: (NumberConstructor | StringConstructor)[];
47
47
  default: number;
@@ -58,10 +58,10 @@ declare const _default: import("vue").DefineComponent<{
58
58
  inactiveBgColor: StringConstructor;
59
59
  inactiveBorderColor: StringConstructor;
60
60
  titleInactiveColor: StringConstructor;
61
- }>> & {
61
+ }>> & Readonly<{
62
62
  onClickStep?: ((...args: any[]) => any) | undefined;
63
- }, {
63
+ }>, {
64
64
  active: string | number;
65
65
  direction: StepsDirection;
66
- }, {}>;
66
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
67
67
  export default _default;
@@ -23,7 +23,6 @@ __export(stdin_exports, {
23
23
  });
24
24
  module.exports = __toCommonJS(stdin_exports);
25
25
  var import_vue = require("vue");
26
- var import_vue2 = require("vue");
27
26
  var import_utils = require("../utils");
28
27
  var import_use = require("@zartui/use");
29
28
  const [name, bem] = (0, import_utils.createNamespace)("steps");
@@ -40,7 +39,7 @@ const stepsProps = {
40
39
  titleInactiveColor: String
41
40
  };
42
41
  const STEPS_KEY = Symbol(name);
43
- var stdin_default = (0, import_vue2.defineComponent)({
42
+ var stdin_default = (0, import_vue.defineComponent)({
44
43
  name,
45
44
  props: stepsProps,
46
45
  emits: ["clickStep"],
@@ -1,4 +1,4 @@
1
- export declare const Steps: import("../utils").WithInstall<import("vue").DefineComponent<{
1
+ export declare const Steps: import("../utils").WithInstall<import("vue").DefineComponent<import("vue").ExtractPropTypes<{
2
2
  active: {
3
3
  type: (NumberConstructor | StringConstructor)[];
4
4
  default: number;
@@ -15,7 +15,7 @@ export declare const Steps: import("../utils").WithInstall<import("vue").DefineC
15
15
  inactiveBgColor: StringConstructor;
16
16
  inactiveBorderColor: StringConstructor;
17
17
  titleInactiveColor: StringConstructor;
18
- }, () => import("vue/jsx-runtime").JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "clickStep"[], "clickStep", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
18
+ }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "clickStep"[], "clickStep", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
19
19
  active: {
20
20
  type: (NumberConstructor | StringConstructor)[];
21
21
  default: number;
@@ -32,12 +32,12 @@ export declare const Steps: import("../utils").WithInstall<import("vue").DefineC
32
32
  inactiveBgColor: StringConstructor;
33
33
  inactiveBorderColor: StringConstructor;
34
34
  titleInactiveColor: StringConstructor;
35
- }>> & {
35
+ }>> & Readonly<{
36
36
  onClickStep?: ((...args: any[]) => any) | undefined;
37
- }, {
37
+ }>, {
38
38
  active: string | number;
39
39
  direction: import("./Steps").StepsDirection;
40
- }, {}>>;
40
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>>;
41
41
  export default Steps;
42
42
  export { stepsProps } from './Steps';
43
43
  export type { StepsProps, StepsDirection } from './Steps';
@@ -17,7 +17,7 @@ declare const stickyProps: {
17
17
  };
18
18
  };
19
19
  export type StickyProps = ExtractPropTypes<typeof stickyProps>;
20
- declare const _default: import("vue").DefineComponent<{
20
+ declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
21
21
  zIndex: (NumberConstructor | StringConstructor)[];
22
22
  position: {
23
23
  type: PropType<StickyPosition>;
@@ -32,7 +32,7 @@ declare const _default: import("vue").DefineComponent<{
32
32
  type: (NumberConstructor | StringConstructor)[];
33
33
  default: number;
34
34
  };
35
- }, () => import("vue/jsx-runtime").JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("scroll" | "change")[], "scroll" | "change", import("vue").PublicProps, Readonly<ExtractPropTypes<{
35
+ }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("scroll" | "change")[], "scroll" | "change", import("vue").PublicProps, Readonly<ExtractPropTypes<{
36
36
  zIndex: (NumberConstructor | StringConstructor)[];
37
37
  position: {
38
38
  type: PropType<StickyPosition>;
@@ -47,12 +47,12 @@ declare const _default: import("vue").DefineComponent<{
47
47
  type: (NumberConstructor | StringConstructor)[];
48
48
  default: number;
49
49
  };
50
- }>> & {
50
+ }>> & Readonly<{
51
51
  onChange?: ((...args: any[]) => any) | undefined;
52
52
  onScroll?: ((...args: any[]) => any) | undefined;
53
- }, {
53
+ }>, {
54
54
  position: StickyPosition;
55
55
  offsetTop: string | number;
56
56
  offsetBottom: string | number;
57
- }, {}>;
57
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
58
58
  export default _default;
@@ -21,7 +21,6 @@ __export(stdin_exports, {
21
21
  });
22
22
  module.exports = __toCommonJS(stdin_exports);
23
23
  var import_vue = require("vue");
24
- var import_vue2 = require("vue");
25
24
  var import_utils = require("../utils");
26
25
  var import_use = require("@zartui/use");
27
26
  var import_use_visibility_change = require("../composables/use-visibility-change");
@@ -33,7 +32,7 @@ const stickyProps = {
33
32
  offsetTop: (0, import_utils.makeNumericProp)(0),
34
33
  offsetBottom: (0, import_utils.makeNumericProp)(0)
35
34
  };
36
- var stdin_default = (0, import_vue2.defineComponent)({
35
+ var stdin_default = (0, import_vue.defineComponent)({
37
36
  name,
38
37
  props: stickyProps,
39
38
  emits: ["scroll", "change"],
@@ -41,9 +40,9 @@ var stdin_default = (0, import_vue2.defineComponent)({
41
40
  emit,
42
41
  slots
43
42
  }) {
44
- const root = (0, import_vue2.ref)();
43
+ const root = (0, import_vue.ref)();
45
44
  const scrollParent = (0, import_use.useScrollParent)(root);
46
- const state = (0, import_vue2.reactive)({
45
+ const state = (0, import_vue.reactive)({
47
46
  fixed: false,
48
47
  width: 0,
49
48
  // root width
@@ -51,8 +50,8 @@ var stdin_default = (0, import_vue2.defineComponent)({
51
50
  // root height
52
51
  transform: 0
53
52
  });
54
- const offset = (0, import_vue2.computed)(() => (0, import_utils.unitToPx)(props.position === "top" ? props.offsetTop : props.offsetBottom));
55
- const rootStyle = (0, import_vue2.computed)(() => {
53
+ const offset = (0, import_vue.computed)(() => (0, import_utils.unitToPx)(props.position === "top" ? props.offsetTop : props.offsetBottom));
54
+ const rootStyle = (0, import_vue.computed)(() => {
56
55
  const {
57
56
  fixed,
58
57
  height,
@@ -65,7 +64,7 @@ var stdin_default = (0, import_vue2.defineComponent)({
65
64
  };
66
65
  }
67
66
  });
68
- const stickyStyle = (0, import_vue2.computed)(() => {
67
+ const stickyStyle = (0, import_vue.computed)(() => {
69
68
  if (!state.fixed) {
70
69
  return;
71
70
  }
@@ -119,7 +118,7 @@ var stdin_default = (0, import_vue2.defineComponent)({
119
118
  }
120
119
  emitScroll(scrollTop);
121
120
  };
122
- (0, import_vue2.watch)(() => state.fixed, (value) => emit("change", value));
121
+ (0, import_vue.watch)(() => state.fixed, (value) => emit("change", value));
123
122
  (0, import_use.useEventListener)("scroll", onScroll, {
124
123
  target: scrollParent,
125
124
  passive: true
@@ -1,4 +1,4 @@
1
- export declare const Sticky: import("../utils").WithInstall<import("vue").DefineComponent<{
1
+ export declare const Sticky: import("../utils").WithInstall<import("vue").DefineComponent<import("vue").ExtractPropTypes<{
2
2
  zIndex: (NumberConstructor | StringConstructor)[];
3
3
  position: {
4
4
  type: import("vue").PropType<import("./Sticky").StickyPosition>;
@@ -13,7 +13,7 @@ export declare const Sticky: import("../utils").WithInstall<import("vue").Define
13
13
  type: (NumberConstructor | StringConstructor)[];
14
14
  default: number;
15
15
  };
16
- }, () => import("vue/jsx-runtime").JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("scroll" | "change")[], "scroll" | "change", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
16
+ }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("scroll" | "change")[], "scroll" | "change", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
17
17
  zIndex: (NumberConstructor | StringConstructor)[];
18
18
  position: {
19
19
  type: import("vue").PropType<import("./Sticky").StickyPosition>;
@@ -28,14 +28,14 @@ export declare const Sticky: import("../utils").WithInstall<import("vue").Define
28
28
  type: (NumberConstructor | StringConstructor)[];
29
29
  default: number;
30
30
  };
31
- }>> & {
31
+ }>> & Readonly<{
32
32
  onChange?: ((...args: any[]) => any) | undefined;
33
33
  onScroll?: ((...args: any[]) => any) | undefined;
34
- }, {
34
+ }>, {
35
35
  position: import("./Sticky").StickyPosition;
36
36
  offsetTop: string | number;
37
37
  offsetBottom: string | number;
38
- }, {}>>;
38
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>>;
39
39
  export default Sticky;
40
40
  export type { StickyProps, StickyPosition } from './Sticky';
41
41
  export type { StickyThemeVars } from './types';