@rockshin/tao-ui 0.0.59 → 0.1.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 (420) hide show
  1. package/README.md +5 -1
  2. package/component-manifest.json +1 -1
  3. package/dist/components/affix/affix.css +1 -1
  4. package/dist/components/affix/affix.d.ts +1 -0
  5. package/dist/components/affix/affix.js +18 -17
  6. package/dist/components/alert/alert.css +123 -119
  7. package/dist/components/alert/alert.js +78 -188
  8. package/dist/components/app/app-modals.js +49 -98
  9. package/dist/components/app/app-notices.d.ts +2 -2
  10. package/dist/components/app/app-notices.js +294 -243
  11. package/dist/components/app/app-types.d.ts +6 -3
  12. package/dist/components/app/app.css +185 -183
  13. package/dist/components/app/app.js +1 -1
  14. package/dist/components/auto-complete/auto-complete.css +30 -28
  15. package/dist/components/auto-complete/auto-complete.d.ts +3 -1
  16. package/dist/components/auto-complete/auto-complete.js +2 -1
  17. package/dist/components/badge/badge.js +42 -127
  18. package/dist/components/border-beam/border-beam.css +1 -1
  19. package/dist/components/border-beam/border-beam.d.ts +1 -0
  20. package/dist/components/border-beam/border-beam.js +1 -0
  21. package/dist/components/breadcrumb/breadcrumb.css +123 -120
  22. package/dist/components/breadcrumb/breadcrumb.js +160 -265
  23. package/dist/components/button/button.d.ts +1 -1
  24. package/dist/components/button/button.js +52 -151
  25. package/dist/components/calendar/calendar.js +28 -27
  26. package/dist/components/card/card-tabs.d.ts +56 -5
  27. package/dist/components/card/card-tabs.js +214 -468
  28. package/dist/components/card/card.d.ts +1 -2
  29. package/dist/components/card/card.js +64 -226
  30. package/dist/components/carousel/carousel.css +1 -1
  31. package/dist/components/carousel/carousel.d.ts +59 -4
  32. package/dist/components/carousel/carousel.js +299 -243
  33. package/dist/components/cascader/cascader.css +186 -184
  34. package/dist/components/cascader/cascader.d.ts +3 -1
  35. package/dist/components/cascader/cascader.js +29 -34
  36. package/dist/components/checkbox/checkbox.css +93 -90
  37. package/dist/components/checkbox/checkbox.d.ts +1 -1
  38. package/dist/components/checkbox/checkbox.js +171 -499
  39. package/dist/components/collapse/collapse-panels.js +145 -400
  40. package/dist/components/collapse/collapse.css +172 -170
  41. package/dist/components/collapse/collapse.d.ts +1 -1
  42. package/dist/components/collapse/collapse.js +62 -181
  43. package/dist/components/color-picker/color-picker.css +1 -1
  44. package/dist/components/color-picker/color-picker.js +418 -981
  45. package/dist/components/context-menu/context-menu.css +4 -4
  46. package/dist/components/context-menu/context-menu.d.ts +3 -1
  47. package/dist/components/context-menu/context-menu.js +54 -135
  48. package/dist/components/date-picker/calendar/calendar-grid.js +41 -41
  49. package/dist/components/date-picker/calendar/calendar-header.js +171 -337
  50. package/dist/components/date-picker/calendar/month-grid.js +33 -103
  51. package/dist/components/date-picker/calendar/time-panel.js +84 -209
  52. package/dist/components/date-picker/calendar/year-grid.js +36 -105
  53. package/dist/components/date-picker/date-localization.js +1 -1
  54. package/dist/components/date-picker/date-picker.css +599 -642
  55. package/dist/components/date-picker/date-picker.d.ts +2 -1
  56. package/dist/components/date-picker/date-picker.js +96 -105
  57. package/dist/components/date-picker/presets.js +12 -37
  58. package/dist/components/date-picker/range-picker.d.ts +2 -1
  59. package/dist/components/date-picker/range-picker.js +222 -255
  60. package/dist/components/date-picker/types.d.ts +2 -1
  61. package/dist/components/descriptions/descriptions.css +1 -1
  62. package/dist/components/descriptions/descriptions.js +30 -39
  63. package/dist/components/drawer/drawer.css +202 -200
  64. package/dist/components/drawer/drawer.js +28 -34
  65. package/dist/components/dropdown/dropdown-core.d.ts +32 -0
  66. package/dist/components/dropdown/dropdown-core.js +156 -0
  67. package/dist/components/dropdown/dropdown.css +38 -36
  68. package/dist/components/dropdown/dropdown.d.ts +4 -30
  69. package/dist/components/dropdown/dropdown.js +91 -271
  70. package/dist/components/empty/empty.css +30 -28
  71. package/dist/components/empty/empty.js +81 -236
  72. package/dist/components/float-button/float-button.css +1 -1
  73. package/dist/components/float-button/float-button.js +38 -48
  74. package/dist/components/form/field-control.js +2 -3
  75. package/dist/components/form/form-item.js +67 -129
  76. package/dist/components/form/form.css +36 -34
  77. package/dist/components/form/form.d.ts +1 -1
  78. package/dist/components/form/form.js +29 -100
  79. package/dist/components/form/index.d.ts +1 -1
  80. package/dist/components/form/use-form.js +48 -66
  81. package/dist/components/form-actions/form-actions.d.ts +1 -0
  82. package/dist/components/form-actions/form-actions.js +10 -36
  83. package/dist/components/form-field/form-field-view.d.ts +1 -0
  84. package/dist/components/form-field/form-field-view.js +81 -288
  85. package/dist/components/form-field/form-field.js +13 -31
  86. package/dist/components/form-field/form.css +74 -72
  87. package/dist/components/form-section/form-section.d.ts +1 -0
  88. package/dist/components/form-section/form-section.js +38 -91
  89. package/dist/components/image/image-icons.js +16 -31
  90. package/dist/components/image/image.css +1 -1
  91. package/dist/components/image/image.js +298 -911
  92. package/dist/components/input/base-input.d.ts +3 -1
  93. package/dist/components/input/base-input.js +8 -7
  94. package/dist/components/input/input-shared.css +62 -60
  95. package/dist/components/input/input-shared.d.ts +1 -1
  96. package/dist/components/input/input-shared.js +56 -100
  97. package/dist/components/input/input.css +222 -220
  98. package/dist/components/input/otp.d.ts +2 -1
  99. package/dist/components/input/otp.js +143 -324
  100. package/dist/components/input/password.js +12 -67
  101. package/dist/components/input/search.js +13 -13
  102. package/dist/components/input-number/input-number.d.ts +4 -2
  103. package/dist/components/input-number/input-number.js +30 -137
  104. package/dist/components/list/list-pagination.css +107 -105
  105. package/dist/components/list/list-pagination.d.ts +56 -5
  106. package/dist/components/list/list-pagination.js +249 -316
  107. package/dist/components/list/list.css +179 -177
  108. package/dist/components/list/list.js +170 -604
  109. package/dist/components/listy/listy.css +55 -53
  110. package/dist/components/listy/listy.d.ts +43 -4
  111. package/dist/components/listy/listy.js +198 -216
  112. package/dist/components/masonry/masonry.css +1 -1
  113. package/dist/components/masonry/masonry.d.ts +1 -0
  114. package/dist/components/masonry/masonry.js +90 -244
  115. package/dist/components/mentions/mentions.css +153 -151
  116. package/dist/components/mentions/mentions.d.ts +53 -11
  117. package/dist/components/mentions/mentions.js +291 -75
  118. package/dist/components/menu/menu-render.d.ts +7 -0
  119. package/dist/components/menu/menu-render.js +156 -302
  120. package/dist/components/menu/menu.css +142 -140
  121. package/dist/components/modal/confirm-dialog.js +19 -24
  122. package/dist/components/modal/modal.css +165 -162
  123. package/dist/components/modal/modal.js +285 -731
  124. package/dist/components/modal/use-modal.js +25 -25
  125. package/dist/components/pagination/pagination.css +134 -131
  126. package/dist/components/pagination/pagination.d.ts +4 -3
  127. package/dist/components/pagination/pagination.js +138 -281
  128. package/dist/components/popconfirm/popconfirm.css +38 -36
  129. package/dist/components/popconfirm/popconfirm.js +105 -288
  130. package/dist/components/popover/popover.css +89 -87
  131. package/dist/components/popover/popover.js +189 -469
  132. package/dist/components/progress/progress.css +153 -151
  133. package/dist/components/progress/progress.js +34 -43
  134. package/dist/components/qr-code/qr-code.css +36 -34
  135. package/dist/components/qr-code/qr-code.js +83 -277
  136. package/dist/components/radio/radio.css +95 -92
  137. package/dist/components/radio/radio.d.ts +1 -1
  138. package/dist/components/radio/radio.js +114 -376
  139. package/dist/components/rate/rate.css +80 -78
  140. package/dist/components/rate/rate.d.ts +34 -6
  141. package/dist/components/rate/rate.js +160 -244
  142. package/dist/components/result/result.css +59 -57
  143. package/dist/components/result/result.d.ts +1 -0
  144. package/dist/components/result/result.js +118 -291
  145. package/dist/components/scroll-area/scroll-area.css +160 -148
  146. package/dist/components/scroll-area/scroll-area.js +284 -488
  147. package/dist/components/segmented/segmented.css +1 -1
  148. package/dist/components/segmented/segmented.js +59 -58
  149. package/dist/components/select/mobile-select.css +166 -164
  150. package/dist/components/select/mobile-select.js +48 -131
  151. package/dist/components/select/select-icons.js +59 -128
  152. package/dist/components/select/select-model.js +1 -1
  153. package/dist/components/select/select-searchable-list.js +19 -19
  154. package/dist/components/select/select-tags.js +70 -156
  155. package/dist/components/select/select-types.d.ts +2 -1
  156. package/dist/components/select/select.css +509 -506
  157. package/dist/components/select/select.d.ts +1 -0
  158. package/dist/components/select/select.js +67 -65
  159. package/dist/components/select/use-select-selection.js +181 -261
  160. package/dist/components/skeleton/skeleton.css +105 -103
  161. package/dist/components/skeleton/skeleton.js +140 -399
  162. package/dist/components/slider/slider.css +160 -158
  163. package/dist/components/slider/slider.d.ts +45 -6
  164. package/dist/components/slider/slider.js +359 -74
  165. package/dist/components/sonner/index.d.ts +1 -1
  166. package/dist/components/sonner/sonner.css +190 -182
  167. package/dist/components/sonner/sonner.js +12 -11
  168. package/dist/components/spinner/spinner.css +80 -76
  169. package/dist/components/spinner/spinner.d.ts +1 -1
  170. package/dist/components/spinner/spinner.js +75 -219
  171. package/dist/components/splitter/splitter.css +157 -154
  172. package/dist/components/splitter/splitter.js +271 -448
  173. package/dist/components/statistic/statistic.css +1 -1
  174. package/dist/components/statistic/statistic.js +121 -406
  175. package/dist/components/status-icon/status-icon.js +14 -26
  176. package/dist/components/steps/steps-icons.js +63 -100
  177. package/dist/components/steps/steps.css +817 -807
  178. package/dist/components/steps/steps.d.ts +1 -1
  179. package/dist/components/steps/steps.js +38 -94
  180. package/dist/components/steps/use-display-steps.js +21 -54
  181. package/dist/components/switch/switch-touch.css +17 -15
  182. package/dist/components/switch/switch.css +192 -190
  183. package/dist/components/switch/switch.js +63 -196
  184. package/dist/components/table/table-filter.d.ts +3 -1
  185. package/dist/components/table/table-filter.js +72 -133
  186. package/dist/components/table/table-icons.js +77 -152
  187. package/dist/components/table/table-summary.js +30 -77
  188. package/dist/components/table/table-types.d.ts +2 -1
  189. package/dist/components/table/table.css +468 -465
  190. package/dist/components/table/table.js +86 -84
  191. package/dist/components/table/use-table-data.js +137 -248
  192. package/dist/components/tabs/tabs.css +123 -120
  193. package/dist/components/tabs/tabs.d.ts +4 -3
  194. package/dist/components/tabs/tabs.js +157 -322
  195. package/dist/components/tag/tag.css +231 -221
  196. package/dist/components/tag/tag.js +110 -248
  197. package/dist/components/textarea/textarea.css +2 -1
  198. package/dist/components/textarea/textarea.d.ts +3 -1
  199. package/dist/components/textarea/textarea.js +16 -15
  200. package/dist/components/time-picker/time-picker.d.ts +1 -0
  201. package/dist/components/time-picker/time-picker.js +91 -221
  202. package/dist/components/timeline/timeline.css +1 -1
  203. package/dist/components/timeline/timeline.js +17 -17
  204. package/dist/components/tooltip/tooltip.css +79 -77
  205. package/dist/components/tooltip/tooltip.d.ts +1 -1
  206. package/dist/components/tooltip/tooltip.js +111 -263
  207. package/dist/components/tour/tour.css +1 -1
  208. package/dist/components/tour/tour.d.ts +59 -6
  209. package/dist/components/tour/tour.js +343 -622
  210. package/dist/components/transfer/transfer-list.js +19 -19
  211. package/dist/components/transfer/transfer-parts.js +63 -139
  212. package/dist/components/transfer/transfer.css +192 -190
  213. package/dist/components/transfer/transfer.js +57 -56
  214. package/dist/components/tree/tree-check.js +25 -32
  215. package/dist/components/tree/tree-keyboard.js +1 -1
  216. package/dist/components/tree/tree.css +204 -200
  217. package/dist/components/tree/tree.js +139 -277
  218. package/dist/components/tree-select/select-engine.css +200 -197
  219. package/dist/components/tree-select/select-engine.js +11 -38
  220. package/dist/components/tree-select/tree-select.css +21 -19
  221. package/dist/components/tree-select/tree-select.d.ts +3 -1
  222. package/dist/components/tree-select/tree-select.js +12 -10
  223. package/dist/components/upload/upload.js +193 -308
  224. package/dist/components/watermark/watermark-context.js +8 -14
  225. package/dist/components/watermark/watermark.css +1 -1
  226. package/dist/components/watermark/watermark.js +209 -400
  227. package/dist/docs/components/stack.doc.js +1 -1
  228. package/dist/docs/components/table.doc.js +1 -1
  229. package/dist/entries/affix.d.ts +0 -2
  230. package/dist/entries/affix.js +0 -2
  231. package/dist/entries/alert.d.ts +0 -2
  232. package/dist/entries/alert.js +0 -2
  233. package/dist/entries/app.d.ts +0 -2
  234. package/dist/entries/app.js +0 -2
  235. package/dist/entries/auto-complete.d.ts +0 -2
  236. package/dist/entries/auto-complete.js +0 -2
  237. package/dist/entries/avatar.d.ts +0 -2
  238. package/dist/entries/avatar.js +0 -2
  239. package/dist/entries/badge.d.ts +0 -2
  240. package/dist/entries/badge.js +0 -2
  241. package/dist/entries/border-beam.d.ts +0 -2
  242. package/dist/entries/border-beam.js +0 -2
  243. package/dist/entries/breadcrumb.d.ts +0 -2
  244. package/dist/entries/breadcrumb.js +0 -2
  245. package/dist/entries/button.d.ts +0 -2
  246. package/dist/entries/button.js +0 -2
  247. package/dist/entries/calendar.d.ts +0 -2
  248. package/dist/entries/calendar.js +0 -2
  249. package/dist/entries/card.d.ts +0 -2
  250. package/dist/entries/card.js +0 -2
  251. package/dist/entries/carousel.d.ts +0 -2
  252. package/dist/entries/carousel.js +0 -2
  253. package/dist/entries/cascader.d.ts +0 -2
  254. package/dist/entries/cascader.js +0 -2
  255. package/dist/entries/checkbox.d.ts +0 -2
  256. package/dist/entries/checkbox.js +0 -2
  257. package/dist/entries/collapse.d.ts +0 -2
  258. package/dist/entries/collapse.js +0 -2
  259. package/dist/entries/color-picker.d.ts +0 -2
  260. package/dist/entries/color-picker.js +0 -2
  261. package/dist/entries/context-menu.d.ts +0 -2
  262. package/dist/entries/context-menu.js +0 -2
  263. package/dist/entries/date-picker.d.ts +0 -2
  264. package/dist/entries/date-picker.js +0 -2
  265. package/dist/entries/descriptions.d.ts +0 -2
  266. package/dist/entries/descriptions.js +0 -2
  267. package/dist/entries/divider.d.ts +0 -2
  268. package/dist/entries/divider.js +0 -2
  269. package/dist/entries/drawer.d.ts +0 -2
  270. package/dist/entries/drawer.js +0 -2
  271. package/dist/entries/dropdown.d.ts +0 -2
  272. package/dist/entries/dropdown.js +0 -2
  273. package/dist/entries/empty.d.ts +0 -2
  274. package/dist/entries/empty.js +0 -2
  275. package/dist/entries/float-button.d.ts +0 -2
  276. package/dist/entries/float-button.js +0 -2
  277. package/dist/entries/form-actions.d.ts +0 -2
  278. package/dist/entries/form-actions.js +0 -2
  279. package/dist/entries/form-field.d.ts +0 -2
  280. package/dist/entries/form-field.js +0 -2
  281. package/dist/entries/form-layout.d.ts +0 -2
  282. package/dist/entries/form-layout.js +0 -2
  283. package/dist/entries/form-section.d.ts +0 -2
  284. package/dist/entries/form-section.js +0 -2
  285. package/dist/entries/form.d.ts +1 -3
  286. package/dist/entries/form.js +0 -2
  287. package/dist/entries/image.d.ts +0 -2
  288. package/dist/entries/image.js +0 -2
  289. package/dist/entries/input-number.d.ts +0 -2
  290. package/dist/entries/input-number.js +0 -2
  291. package/dist/entries/input.d.ts +1 -3
  292. package/dist/entries/input.js +0 -2
  293. package/dist/entries/list.d.ts +0 -2
  294. package/dist/entries/list.js +0 -2
  295. package/dist/entries/listy.d.ts +0 -2
  296. package/dist/entries/listy.js +0 -2
  297. package/dist/entries/masonry.d.ts +0 -2
  298. package/dist/entries/masonry.js +0 -2
  299. package/dist/entries/mentions.d.ts +0 -2
  300. package/dist/entries/mentions.js +0 -2
  301. package/dist/entries/modal.d.ts +0 -2
  302. package/dist/entries/modal.js +0 -2
  303. package/dist/entries/number-input.d.ts +0 -2
  304. package/dist/entries/number-input.js +0 -2
  305. package/dist/entries/pagination.d.ts +0 -2
  306. package/dist/entries/pagination.js +0 -2
  307. package/dist/entries/popconfirm.d.ts +0 -2
  308. package/dist/entries/popconfirm.js +0 -2
  309. package/dist/entries/popover.d.ts +0 -2
  310. package/dist/entries/popover.js +0 -2
  311. package/dist/entries/progress.d.ts +0 -2
  312. package/dist/entries/progress.js +0 -2
  313. package/dist/entries/provider.d.ts +1 -3
  314. package/dist/entries/provider.js +1 -3
  315. package/dist/entries/qr-code.d.ts +0 -2
  316. package/dist/entries/qr-code.js +0 -2
  317. package/dist/entries/radio.d.ts +0 -2
  318. package/dist/entries/radio.js +0 -2
  319. package/dist/entries/range-picker.d.ts +0 -2
  320. package/dist/entries/range-picker.js +0 -2
  321. package/dist/entries/rate.d.ts +0 -2
  322. package/dist/entries/rate.js +0 -2
  323. package/dist/entries/result.d.ts +0 -2
  324. package/dist/entries/result.js +0 -2
  325. package/dist/entries/scroll-area.d.ts +0 -2
  326. package/dist/entries/scroll-area.js +0 -2
  327. package/dist/entries/segmented.d.ts +0 -2
  328. package/dist/entries/segmented.js +0 -2
  329. package/dist/entries/select.d.ts +0 -2
  330. package/dist/entries/select.js +0 -2
  331. package/dist/entries/skeleton.d.ts +0 -2
  332. package/dist/entries/skeleton.js +0 -2
  333. package/dist/entries/slider.d.ts +0 -2
  334. package/dist/entries/slider.js +0 -2
  335. package/dist/entries/sonner.d.ts +0 -2
  336. package/dist/entries/sonner.js +0 -2
  337. package/dist/entries/spinner.d.ts +0 -2
  338. package/dist/entries/spinner.js +0 -2
  339. package/dist/entries/splitter.d.ts +0 -2
  340. package/dist/entries/splitter.js +0 -2
  341. package/dist/entries/stack.d.ts +0 -2
  342. package/dist/entries/stack.js +0 -2
  343. package/dist/entries/statistic.d.ts +0 -2
  344. package/dist/entries/statistic.js +0 -2
  345. package/dist/entries/steps.d.ts +0 -2
  346. package/dist/entries/steps.js +0 -2
  347. package/dist/entries/switch.d.ts +0 -2
  348. package/dist/entries/switch.js +0 -2
  349. package/dist/entries/table.d.ts +0 -2
  350. package/dist/entries/table.js +0 -2
  351. package/dist/entries/tabs.d.ts +0 -2
  352. package/dist/entries/tabs.js +0 -2
  353. package/dist/entries/tag.d.ts +0 -2
  354. package/dist/entries/tag.js +0 -2
  355. package/dist/entries/textarea.d.ts +0 -2
  356. package/dist/entries/textarea.js +0 -2
  357. package/dist/entries/time-picker.d.ts +0 -2
  358. package/dist/entries/time-picker.js +0 -2
  359. package/dist/entries/timeline.d.ts +0 -2
  360. package/dist/entries/timeline.js +0 -2
  361. package/dist/entries/tooltip.d.ts +0 -2
  362. package/dist/entries/tooltip.js +0 -2
  363. package/dist/entries/tour.d.ts +0 -2
  364. package/dist/entries/tour.js +0 -2
  365. package/dist/entries/transfer.d.ts +0 -2
  366. package/dist/entries/transfer.js +0 -2
  367. package/dist/entries/tree-select.d.ts +0 -2
  368. package/dist/entries/tree-select.js +0 -2
  369. package/dist/entries/tree.d.ts +0 -2
  370. package/dist/entries/tree.js +0 -2
  371. package/dist/entries/upload.d.ts +0 -2
  372. package/dist/entries/upload.js +0 -2
  373. package/dist/entries/watermark.d.ts +0 -2
  374. package/dist/entries/watermark.js +0 -2
  375. package/dist/index.d.ts +5 -7
  376. package/dist/index.js +2 -4
  377. package/dist/layouts/form-layout/form-layout.d.ts +1 -0
  378. package/dist/layouts/form-layout/form-layout.js +10 -36
  379. package/dist/layouts/stack/layout.css +46 -44
  380. package/dist/layouts/stack/stack.d.ts +1 -0
  381. package/dist/layouts/stack/stack.js +16 -69
  382. package/dist/locales/ar-EG.js +25 -2
  383. package/dist/locales/create-locale.d.ts +1 -2
  384. package/dist/locales/create-locale.js +0 -28
  385. package/dist/locales/de-DE.js +25 -2
  386. package/dist/locales/en-US.js +24 -1
  387. package/dist/locales/es-ES.js +25 -2
  388. package/dist/locales/fr-FR.js +25 -2
  389. package/dist/locales/hi-IN.js +25 -2
  390. package/dist/locales/id-ID.js +25 -2
  391. package/dist/locales/index.d.ts +10 -10
  392. package/dist/locales/index.js +9 -9
  393. package/dist/locales/it-IT.js +25 -2
  394. package/dist/locales/ja-JP.js +25 -2
  395. package/dist/locales/ko-KR.js +25 -2
  396. package/dist/locales/pt-BR.js +25 -2
  397. package/dist/locales/ru-RU.js +25 -2
  398. package/dist/locales/th-TH.js +25 -2
  399. package/dist/locales/tr-TR.js +25 -2
  400. package/dist/locales/vi-VN.js +25 -2
  401. package/dist/locales/zh-CN.js +25 -2
  402. package/dist/locales/zh-TW.js +25 -2
  403. package/dist/number-input/number-input.js +24 -81
  404. package/dist/number-input/use-number-input.d.ts +1 -0
  405. package/dist/number-input/use-number-input.js +47 -43
  406. package/dist/provider/locale.d.ts +1 -1
  407. package/dist/provider/tao-context.d.ts +38 -0
  408. package/dist/provider/tao-context.js +92 -0
  409. package/dist/provider/tao-portal-scope.d.ts +14 -0
  410. package/dist/provider/tao-portal-scope.js +54 -0
  411. package/dist/provider/tao-provider.d.ts +5 -55
  412. package/dist/provider/tao-provider.js +94 -364
  413. package/dist/theme/control.css +106 -122
  414. package/dist/theme/theme.css +4 -2
  415. package/dist/utils/dialog-content.js +55 -210
  416. package/dist/utils/overlay.js +15 -30
  417. package/dist/utils/rc-compat.d.ts +13 -0
  418. package/dist/utils/rc-compat.js +48 -0
  419. package/dist/utils/refs.js +5 -19
  420. package/package.json +10 -16
@@ -1,6 +1,7 @@
1
- import { type AriaAttributes, type ReactNode, type Ref } from 'react';
1
+ import { type AriaAttributes, type CSSProperties, type ReactNode, type Ref } from 'react';
2
2
  import { type UseNumberInputOptions } from '../../number-input/use-number-input.js';
3
- import type { TaoSize, TaoStatus, TaoVariant } from '../../provider/tao-provider.js';
3
+ import type { TaoStatus, TaoVariant } from '../../provider/tao-context.js';
4
+ import type { TaoSize } from '../../provider/tao-provider.js';
4
5
  import type { SemanticClassNames, SemanticStyles } from '../../utils/semantic.js';
5
6
  import { type InputSemanticPart } from '../input/base-input.js';
6
7
  export type InputNumberSemanticPart = Extract<InputSemanticPart, 'root' | 'input' | 'prefix' | 'suffix'>;
@@ -17,6 +18,7 @@ export interface InputNumberProps extends UseNumberInputOptions, Pick<AriaAttrib
17
18
  id?: string;
18
19
  name?: string;
19
20
  className?: string;
21
+ style?: CSSProperties;
20
22
  classNames?: SemanticClassNames<InputNumberSemanticPart>;
21
23
  styles?: SemanticStyles<InputNumberSemanticPart>;
22
24
  }
@@ -1,144 +1,37 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
- import { c } from "react-compiler-runtime";
3
2
  import { forwardRef } from "react";
4
3
  import { useNumberInput } from "../../number-input/use-number-input.js";
5
4
  import { mergeRefs } from "../../utils/refs.js";
6
5
  import { BaseInput } from "../input/base-input.js";
7
- const input_number_InputNumber = /*#__PURE__*/ forwardRef(function(t0, forwardedRef) {
8
- const $ = c(49);
9
- let ariaDescribedBy;
10
- let ariaErrorMessage;
11
- let ariaInvalid;
12
- let ariaLabel;
13
- let ariaLabelledBy;
14
- let ariaRequired;
15
- let className;
16
- let classNames;
17
- let disabled;
18
- let error;
19
- let hookOptions;
20
- let id;
21
- let name;
22
- let placeholder;
23
- let prefix;
24
- let size;
25
- let status;
26
- let styles;
27
- let suffix;
28
- let variant;
29
- if ($[0] !== t0) {
30
- ({ prefix, suffix, size, variant, error, status, disabled, placeholder, id, name, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledBy, "aria-describedby": ariaDescribedBy, "aria-errormessage": ariaErrorMessage, "aria-invalid": ariaInvalid, "aria-required": ariaRequired, className, classNames, styles, ...hookOptions } = t0);
31
- $[0] = t0;
32
- $[1] = ariaDescribedBy;
33
- $[2] = ariaErrorMessage;
34
- $[3] = ariaInvalid;
35
- $[4] = ariaLabel;
36
- $[5] = ariaLabelledBy;
37
- $[6] = ariaRequired;
38
- $[7] = className;
39
- $[8] = classNames;
40
- $[9] = disabled;
41
- $[10] = error;
42
- $[11] = hookOptions;
43
- $[12] = id;
44
- $[13] = name;
45
- $[14] = placeholder;
46
- $[15] = prefix;
47
- $[16] = size;
48
- $[17] = status;
49
- $[18] = styles;
50
- $[19] = suffix;
51
- $[20] = variant;
52
- } else {
53
- ariaDescribedBy = $[1];
54
- ariaErrorMessage = $[2];
55
- ariaInvalid = $[3];
56
- ariaLabel = $[4];
57
- ariaLabelledBy = $[5];
58
- ariaRequired = $[6];
59
- className = $[7];
60
- classNames = $[8];
61
- disabled = $[9];
62
- error = $[10];
63
- hookOptions = $[11];
64
- id = $[12];
65
- name = $[13];
66
- placeholder = $[14];
67
- prefix = $[15];
68
- size = $[16];
69
- status = $[17];
70
- styles = $[18];
71
- suffix = $[19];
72
- variant = $[20];
73
- }
74
- const { inputProps } = useNumberInput(hookOptions);
75
- let inputRest;
76
- let ref;
77
- if ($[21] !== inputProps) {
78
- ({ ref, ...inputRest } = inputProps);
79
- $[21] = inputProps;
80
- $[22] = inputRest;
81
- $[23] = ref;
82
- } else {
83
- inputRest = $[22];
84
- ref = $[23];
85
- }
86
- let t1;
87
- if ($[24] !== forwardedRef || $[25] !== ref) {
88
- t1 = mergeRefs(ref, forwardedRef);
89
- $[24] = forwardedRef;
90
- $[25] = ref;
91
- $[26] = t1;
92
- } else t1 = $[26];
93
- const t2 = "error" === status || error ? true : ariaInvalid;
94
- let t3;
95
- if ($[27] !== ariaDescribedBy || $[28] !== ariaErrorMessage || $[29] !== ariaLabel || $[30] !== ariaLabelledBy || $[31] !== ariaRequired || $[32] !== className || $[33] !== classNames || $[34] !== disabled || $[35] !== error || $[36] !== id || $[37] !== inputRest || $[38] !== name || $[39] !== placeholder || $[40] !== prefix || $[41] !== size || $[42] !== status || $[43] !== styles || $[44] !== suffix || $[45] !== t1 || $[46] !== t2 || $[47] !== variant) {
96
- t3 = /*#__PURE__*/ jsx(BaseInput, {
97
- ref: t1,
98
- prefix: prefix,
99
- suffix: suffix,
100
- size: size,
101
- variant: variant,
102
- error: error,
103
- status: status,
104
- disabled: disabled,
105
- placeholder: placeholder,
106
- id: id,
107
- name: name,
108
- "aria-label": ariaLabel,
109
- "aria-labelledby": ariaLabelledBy,
110
- "aria-describedby": ariaDescribedBy,
111
- "aria-errormessage": ariaErrorMessage,
112
- "aria-invalid": t2,
113
- "aria-required": ariaRequired,
114
- className: className,
115
- classNames: classNames,
116
- styles: styles,
117
- ...inputRest
118
- });
119
- $[27] = ariaDescribedBy;
120
- $[28] = ariaErrorMessage;
121
- $[29] = ariaLabel;
122
- $[30] = ariaLabelledBy;
123
- $[31] = ariaRequired;
124
- $[32] = className;
125
- $[33] = classNames;
126
- $[34] = disabled;
127
- $[35] = error;
128
- $[36] = id;
129
- $[37] = inputRest;
130
- $[38] = name;
131
- $[39] = placeholder;
132
- $[40] = prefix;
133
- $[41] = size;
134
- $[42] = status;
135
- $[43] = styles;
136
- $[44] = suffix;
137
- $[45] = t1;
138
- $[46] = t2;
139
- $[47] = variant;
140
- $[48] = t3;
141
- } else t3 = $[48];
142
- return t3;
6
+ const input_number_InputNumber = /*#__PURE__*/ forwardRef(function({ prefix, suffix, size, variant, error, status, disabled, placeholder, id, name, 'aria-label': ariaLabel, 'aria-labelledby': ariaLabelledBy, 'aria-describedby': ariaDescribedBy, 'aria-errormessage': ariaErrorMessage, 'aria-invalid': ariaInvalid, 'aria-required': ariaRequired, className, style, classNames, styles, ...hookOptions }, forwardedRef) {
7
+ const { inputProps } = useNumberInput({
8
+ ...hookOptions,
9
+ disabled
10
+ });
11
+ const { ref, ...inputRest } = inputProps;
12
+ return /*#__PURE__*/ jsx(BaseInput, {
13
+ ref: mergeRefs(ref, forwardedRef),
14
+ prefix: prefix,
15
+ suffix: suffix,
16
+ size: size,
17
+ variant: variant,
18
+ error: error,
19
+ status: status,
20
+ disabled: disabled,
21
+ placeholder: placeholder,
22
+ id: id,
23
+ name: name,
24
+ "aria-label": ariaLabel,
25
+ "aria-labelledby": ariaLabelledBy,
26
+ "aria-describedby": ariaDescribedBy,
27
+ "aria-errormessage": ariaErrorMessage,
28
+ "aria-invalid": 'error' === status || error ? true : ariaInvalid,
29
+ "aria-required": ariaRequired,
30
+ className: className,
31
+ style: style,
32
+ classNames: classNames,
33
+ styles: styles,
34
+ ...inputRest
35
+ });
143
36
  });
144
37
  export { input_number_InputNumber as InputNumber };
@@ -1,127 +1,129 @@
1
- [data-tao-list-pages] {
2
- min-width: 0;
3
- font-family: var(--tao-font-family);
4
- font-size: var(--tao-font-size-base);
5
- color: var(--tao-color-text);
6
- }
7
-
8
- [data-tao-list-pages] > ul {
9
- flex-wrap: wrap;
10
- align-items: center;
11
- gap: 8px;
12
- margin: 0;
13
- padding: 0;
14
- list-style: none;
15
- display: flex;
16
- }
17
-
18
- [data-tao-list-pages] > ul > li {
19
- box-sizing: border-box;
20
- justify-content: center;
21
- align-items: center;
22
- margin: 0;
23
- padding: 0;
24
- display: inline-flex;
25
- }
1
+ @layer components {
2
+ [data-tao-list-pages] {
3
+ min-width: 0;
4
+ font-family: var(--tao-font-family);
5
+ font-size: var(--tao-font-size-base);
6
+ color: var(--tao-color-text);
7
+ }
26
8
 
27
- [data-tao-list-pages] > ul > li[tabindex] {
28
- cursor: pointer;
29
- outline: none;
30
- }
9
+ [data-tao-list-pages] > ul {
10
+ flex-wrap: wrap;
11
+ align-items: center;
12
+ gap: 8px;
13
+ margin: 0;
14
+ padding: 0;
15
+ list-style: none;
16
+ display: flex;
17
+ }
31
18
 
32
- [data-tao-list-pages] > ul > li:is([class*="-item"], [class$="-prev"], [class$="-next"], [class*="-jump-"]) {
33
- min-width: var(--tao-control-height);
34
- height: var(--tao-control-height);
35
- border-radius: var(--tao-radius);
36
- border: 1px solid #0000;
37
- }
19
+ [data-tao-list-pages] > ul > li {
20
+ box-sizing: border-box;
21
+ justify-content: center;
22
+ align-items: center;
23
+ margin: 0;
24
+ padding: 0;
25
+ display: inline-flex;
26
+ }
38
27
 
39
- [data-tao-list-pages] > ul > li[class*="-item-active"] {
40
- color: var(--tao-color-primary);
41
- border-color: var(--tao-color-primary);
42
- }
28
+ [data-tao-list-pages] > ul > li[tabindex] {
29
+ cursor: pointer;
30
+ outline: none;
31
+ }
43
32
 
44
- [data-tao-list-pages] > ul > li[tabindex]:focus-visible {
45
- outline: 2px solid var(--tao-color-primary);
46
- outline-offset: 2px;
47
- }
33
+ [data-tao-list-pages] > ul > li:is([class*="-item"], [class$="-prev"], [class$="-next"], [class*="-jump-"]) {
34
+ min-width: var(--tao-control-height);
35
+ height: var(--tao-control-height);
36
+ border-radius: var(--tao-radius);
37
+ border: 1px solid #0000;
38
+ }
48
39
 
49
- [data-tao-list-pages] > ul > li[class*="-disabled"] {
50
- opacity: .5;
51
- cursor: not-allowed;
52
- }
40
+ [data-tao-list-pages] > ul > li[class*="-item-active"] {
41
+ color: var(--tao-color-primary);
42
+ border-color: var(--tao-color-primary);
43
+ }
53
44
 
54
- :is([data-tao-list-page-button], [data-tao-list-pages] [class$="-quick-jumper-button"], [data-tao-list-pages] [class$="-simple-pager"] > button) {
55
- font: inherit;
56
- color: inherit;
57
- border-radius: inherit;
58
- cursor: pointer;
59
- background: none;
60
- border: 0;
61
- min-height: 28px;
62
- padding: 0 8px;
63
- }
45
+ [data-tao-list-pages] > ul > li[tabindex]:focus-visible {
46
+ outline: 2px solid var(--tao-color-primary);
47
+ outline-offset: 2px;
48
+ }
64
49
 
65
- :is([data-tao-list-page-button], [data-tao-list-pages] [class$="-quick-jumper-button"], [data-tao-list-pages] [class$="-simple-pager"] > button):disabled {
66
- cursor: not-allowed;
67
- }
50
+ [data-tao-list-pages] > ul > li[class*="-disabled"] {
51
+ opacity: .5;
52
+ cursor: not-allowed;
53
+ }
68
54
 
69
- [data-tao-list-pages] :is([class$="-quick-jumper"], [class$="-simple-pager"]) > input {
70
- width: 48px;
71
- min-width: 0;
72
- height: var(--tao-control-height);
73
- border: 1px solid var(--tao-color-border);
74
- border-radius: var(--tao-radius);
75
- background: var(--tao-color-bg-container);
76
- color: var(--tao-color-text);
77
- font: inherit;
78
- text-align: center;
79
- box-sizing: border-box;
80
- margin-inline: 8px;
81
- padding-inline: 4px;
82
- }
55
+ :is([data-tao-list-page-button], [data-tao-list-pages] [class$="-quick-jumper-button"], [data-tao-list-pages] [class$="-simple-pager"] > button) {
56
+ font: inherit;
57
+ color: inherit;
58
+ border-radius: inherit;
59
+ cursor: pointer;
60
+ background: none;
61
+ border: 0;
62
+ min-height: 28px;
63
+ padding: 0 8px;
64
+ }
83
65
 
84
- [data-tao-list-pages] :is([class$="-quick-jumper"], [class$="-simple-pager"]) > input:focus-visible {
85
- outline: 2px solid var(--tao-color-primary);
86
- outline-offset: 2px;
87
- }
66
+ :is([data-tao-list-page-button], [data-tao-list-pages] [class$="-quick-jumper-button"], [data-tao-list-pages] [class$="-simple-pager"] > button):disabled {
67
+ cursor: not-allowed;
68
+ }
88
69
 
89
- [data-tao-list-pages] [class$="-options"] {
90
- align-items: center;
91
- gap: 8px;
92
- display: flex;
93
- }
70
+ [data-tao-list-pages] :is([class$="-quick-jumper"], [class$="-simple-pager"]) > input {
71
+ width: 48px;
72
+ min-width: 0;
73
+ height: var(--tao-control-height);
74
+ border: 1px solid var(--tao-color-border);
75
+ border-radius: var(--tao-radius);
76
+ background: var(--tao-color-bg-container);
77
+ color: var(--tao-color-text);
78
+ font: inherit;
79
+ text-align: center;
80
+ box-sizing: border-box;
81
+ margin-inline: 8px;
82
+ padding-inline: 4px;
83
+ }
94
84
 
95
- [data-tao-list-pages] [class*="-quick-jumper"] {
96
- white-space: nowrap;
97
- }
85
+ [data-tao-list-pages] :is([class$="-quick-jumper"], [class$="-simple-pager"]) > input:focus-visible {
86
+ outline: 2px solid var(--tao-color-primary);
87
+ outline-offset: 2px;
88
+ }
98
89
 
99
- [data-tao-list-pages] [class$="-slash"] {
100
- margin-inline: 4px;
101
- }
90
+ [data-tao-list-pages] [class$="-options"] {
91
+ align-items: center;
92
+ gap: 8px;
93
+ display: flex;
94
+ }
102
95
 
103
- [data-tao-list-pages][data-tao-size="small"] > ul > li:is([class*="-item"], [class$="-prev"], [class$="-next"], [class*="-jump-"]) {
104
- min-width: var(--tao-control-height-sm);
105
- height: var(--tao-control-height-sm);
106
- }
96
+ [data-tao-list-pages] [class*="-quick-jumper"] {
97
+ white-space: nowrap;
98
+ }
107
99
 
108
- [data-tao-list-pages][data-tao-size="small"] > ul {
109
- gap: 4px;
110
- }
100
+ [data-tao-list-pages] [class$="-slash"] {
101
+ margin-inline: 4px;
102
+ }
111
103
 
112
- [data-tao-list-pages][data-tao-size="small"] :is([class$="-quick-jumper"], [class$="-simple-pager"]) > input {
113
- width: 32px;
114
- height: var(--tao-control-height-sm);
115
- margin-inline: 4px;
116
- }
104
+ [data-tao-list-pages][data-tao-size="small"] > ul > li:is([class*="-item"], [class$="-prev"], [class$="-next"], [class*="-jump-"]) {
105
+ min-width: var(--tao-control-height-sm);
106
+ height: var(--tao-control-height-sm);
107
+ }
117
108
 
118
- @media (width <= 575px) {
119
- [data-tao-list-pages][data-tao-responsive] > ul {
109
+ [data-tao-list-pages][data-tao-size="small"] > ul {
120
110
  gap: 4px;
121
111
  }
122
112
 
123
- [data-tao-list-pages][data-tao-responsive] > ul > li:is([class*="-item"], [class$="-prev"], [class$="-next"]) {
124
- min-width: var(--tao-control-height-sm);
113
+ [data-tao-list-pages][data-tao-size="small"] :is([class$="-quick-jumper"], [class$="-simple-pager"]) > input {
114
+ width: 32px;
115
+ height: var(--tao-control-height-sm);
116
+ margin-inline: 4px;
117
+ }
118
+
119
+ @media (width <= 575px) {
120
+ [data-tao-list-pages][data-tao-responsive] > ul {
121
+ gap: 4px;
122
+ }
123
+
124
+ [data-tao-list-pages][data-tao-responsive] > ul > li:is([class*="-item"], [class$="-prev"], [class$="-next"]) {
125
+ min-width: var(--tao-control-height-sm);
126
+ }
125
127
  }
126
128
  }
127
129
 
@@ -1,14 +1,61 @@
1
- import { type PaginationProps as RcPaginationProps } from '@rc-component/pagination';
2
- import type { ComponentType, ReactNode } from 'react';
3
- import { type TaoSize } from '../../provider/tao-provider.js';
1
+ import { type ComponentType, type CSSProperties, type ReactNode } from 'react';
2
+ import { type TaoSize } from '../../provider/tao-context.js';
4
3
  import { type SemanticClassNames, type SemanticStyles } from '../../utils/semantic.js';
5
4
  import { type SelectProps } from '../select/select.js';
6
5
  import './list-pagination.css';
7
- export interface ListPagination extends Omit<RcPaginationProps, 'showSizeChanger' | 'pageSizeOptions' | 'classNames' | 'styles'> {
6
+ export interface ListPaginationLocale {
7
+ items_per_page?: string;
8
+ jump_to?: string;
9
+ jump_to_confirm?: string;
10
+ page?: string;
11
+ prev_page?: string;
12
+ next_page?: string;
13
+ prev_5?: string;
14
+ next_5?: string;
15
+ prev_3?: string;
16
+ next_3?: string;
17
+ page_size?: string;
18
+ }
19
+ export interface ListPaginationSizeChangerInfo {
20
+ disabled: boolean;
21
+ size: number;
22
+ quickGo: (value: number) => void;
23
+ onSizeChange: (value: number) => void;
24
+ selectComponentClass?: ComponentType<unknown>;
25
+ selectPrefixCls?: string;
26
+ changeSize?: (value: number) => void;
27
+ current: number;
28
+ pageSize: number;
29
+ options: {
30
+ value: number;
31
+ label: string;
32
+ }[];
33
+ className: string;
34
+ 'aria-label': string;
35
+ }
36
+ export interface ListPagination {
8
37
  position?: 'top' | 'bottom' | 'both';
9
38
  size?: TaoSize | 'default';
10
39
  responsive?: boolean;
40
+ prefixCls?: string;
11
41
  rootClassName?: string;
42
+ className?: string;
43
+ style?: CSSProperties;
44
+ current?: number;
45
+ defaultCurrent?: number;
46
+ pageSize?: number;
47
+ defaultPageSize?: number;
48
+ total?: number;
49
+ disabled?: boolean;
50
+ hideOnSinglePage?: boolean;
51
+ simple?: boolean | {
52
+ readOnly?: boolean;
53
+ };
54
+ showLessItems?: boolean;
55
+ showTitle?: boolean;
56
+ showTotal?: (total: number, range: [number, number]) => ReactNode;
57
+ onChange?: (page: number, pageSize: number, info?: unknown) => void;
58
+ onShowSizeChange?: (current: number, size: number) => void;
12
59
  components?: {
13
60
  sizeChanger?: ComponentType<{
14
61
  value: number;
@@ -28,6 +75,10 @@ export interface ListPagination extends Omit<RcPaginationProps, 'showSizeChanger
28
75
  showQuickJumper?: boolean | {
29
76
  goButton?: ReactNode;
30
77
  };
78
+ itemRender?: (page: number, type: 'page' | 'prev' | 'next' | 'jump-prev' | 'jump-next', element: ReactNode) => ReactNode;
79
+ sizeChangerRender?: (info: ListPaginationSizeChangerInfo) => ReactNode;
80
+ locale?: ListPaginationLocale;
81
+ align?: 'start' | 'center' | 'end';
31
82
  classNames?: SemanticClassNames<'root' | 'item'> | ((info: {
32
83
  props: ListPagination;
33
84
  }) => SemanticClassNames<'root' | 'item'>);
@@ -35,4 +86,4 @@ export interface ListPagination extends Omit<RcPaginationProps, 'showSizeChanger
35
86
  props: ListPagination;
36
87
  }) => SemanticStyles<'root' | 'item'>);
37
88
  }
38
- export declare function ListPaginationControl(props: ListPagination): import("react").JSX.Element;
89
+ export declare function ListPaginationControl(props: ListPagination): import("react").JSX.Element | null;