tdesign-react 1.1.1 → 1.1.2-alpha.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 (1464) hide show
  1. package/cjs/_chunks/dep-01effe0e.js +22 -0
  2. package/cjs/_chunks/dep-01effe0e.js.map +1 -0
  3. package/cjs/_chunks/dep-02473b17.js +75 -0
  4. package/cjs/_chunks/dep-02473b17.js.map +1 -0
  5. package/cjs/_chunks/dep-04d69640.js +292 -0
  6. package/cjs/_chunks/dep-04d69640.js.map +1 -0
  7. package/cjs/_chunks/{dep-933f8205.js → dep-05a4973a.js} +5 -5
  8. package/cjs/_chunks/{dep-933f8205.js.map → dep-05a4973a.js.map} +1 -1
  9. package/cjs/_chunks/dep-0ab068de.js +463 -0
  10. package/cjs/_chunks/dep-0ab068de.js.map +1 -0
  11. package/cjs/_chunks/dep-0d5a923a.js +47 -0
  12. package/cjs/_chunks/dep-0d5a923a.js.map +1 -0
  13. package/cjs/_chunks/dep-0e1d1572.js +42 -0
  14. package/cjs/_chunks/dep-0e1d1572.js.map +1 -0
  15. package/cjs/_chunks/dep-11874d9c.js +323 -0
  16. package/cjs/_chunks/dep-11874d9c.js.map +1 -0
  17. package/cjs/_chunks/dep-119ba56f.js +173 -0
  18. package/cjs/_chunks/dep-119ba56f.js.map +1 -0
  19. package/cjs/_chunks/dep-1663b0df.js +110 -0
  20. package/cjs/_chunks/dep-1663b0df.js.map +1 -0
  21. package/cjs/_chunks/dep-1ab9da86.js +41 -0
  22. package/cjs/_chunks/dep-1ab9da86.js.map +1 -0
  23. package/cjs/_chunks/dep-1b1e14c2.js +24 -0
  24. package/cjs/_chunks/dep-1b1e14c2.js.map +1 -0
  25. package/cjs/_chunks/dep-20299d41.js +512 -0
  26. package/cjs/_chunks/dep-20299d41.js.map +1 -0
  27. package/cjs/_chunks/dep-21e5dde2.js +32 -0
  28. package/cjs/_chunks/dep-21e5dde2.js.map +1 -0
  29. package/cjs/_chunks/dep-226175a4.js +18 -0
  30. package/cjs/_chunks/dep-226175a4.js.map +1 -0
  31. package/cjs/_chunks/dep-298f9b41.js +233 -0
  32. package/cjs/_chunks/dep-298f9b41.js.map +1 -0
  33. package/cjs/_chunks/dep-2b2c6e2c.js +58 -0
  34. package/cjs/_chunks/dep-2b2c6e2c.js.map +1 -0
  35. package/cjs/_chunks/dep-2e54fd55.js +51 -0
  36. package/cjs/_chunks/dep-2e54fd55.js.map +1 -0
  37. package/cjs/_chunks/dep-30eedc91.js +262 -0
  38. package/cjs/_chunks/dep-30eedc91.js.map +1 -0
  39. package/cjs/_chunks/dep-3240b8df.js +193 -0
  40. package/cjs/_chunks/dep-3240b8df.js.map +1 -0
  41. package/cjs/_chunks/dep-381e57e3.js +152 -0
  42. package/cjs/_chunks/dep-381e57e3.js.map +1 -0
  43. package/cjs/_chunks/{dep-00e97810.js → dep-39de3d87.js} +2 -2
  44. package/cjs/_chunks/{dep-00e97810.js.map → dep-39de3d87.js.map} +1 -1
  45. package/cjs/_chunks/dep-3d9b6af3.js +211 -0
  46. package/cjs/_chunks/dep-3d9b6af3.js.map +1 -0
  47. package/cjs/_chunks/dep-3fd6430b.js +179 -0
  48. package/cjs/_chunks/dep-3fd6430b.js.map +1 -0
  49. package/cjs/_chunks/dep-4134c046.js +147 -0
  50. package/cjs/_chunks/dep-4134c046.js.map +1 -0
  51. package/cjs/_chunks/{dep-8e249fc5.js → dep-42a00a8b.js} +4 -4
  52. package/cjs/_chunks/{dep-8e249fc5.js.map → dep-42a00a8b.js.map} +1 -1
  53. package/cjs/_chunks/{dep-e047008f.js → dep-4367f11d.js} +1 -1
  54. package/cjs/_chunks/{dep-e047008f.js.map → dep-4367f11d.js.map} +1 -1
  55. package/cjs/_chunks/{dep-98b8402b.js → dep-437e4fc2.js} +1 -1
  56. package/cjs/_chunks/{dep-98b8402b.js.map → dep-437e4fc2.js.map} +1 -1
  57. package/cjs/_chunks/dep-4e0e0ffa.js +126 -0
  58. package/cjs/_chunks/dep-4e0e0ffa.js.map +1 -0
  59. package/cjs/_chunks/dep-4e3fa454.js +43 -0
  60. package/cjs/_chunks/dep-4e3fa454.js.map +1 -0
  61. package/cjs/_chunks/dep-53bfd962.js +66 -0
  62. package/cjs/_chunks/dep-53bfd962.js.map +1 -0
  63. package/cjs/_chunks/dep-5411854f.js +35 -0
  64. package/cjs/_chunks/dep-5411854f.js.map +1 -0
  65. package/cjs/_chunks/{dep-c0563a38.js → dep-58012930.js} +1 -1
  66. package/cjs/_chunks/{dep-c0563a38.js.map → dep-58012930.js.map} +1 -1
  67. package/cjs/_chunks/dep-598e128b.js +17 -0
  68. package/cjs/_chunks/dep-598e128b.js.map +1 -0
  69. package/cjs/_chunks/dep-5b288817.js +20 -0
  70. package/cjs/_chunks/dep-5b288817.js.map +1 -0
  71. package/cjs/_chunks/dep-63223331.js +274 -0
  72. package/cjs/_chunks/dep-63223331.js.map +1 -0
  73. package/cjs/_chunks/dep-63691e12.js +45 -0
  74. package/cjs/_chunks/dep-63691e12.js.map +1 -0
  75. package/cjs/_chunks/{dep-332614d5.js → dep-64632129.js} +1 -1
  76. package/cjs/_chunks/{dep-332614d5.js.map → dep-64632129.js.map} +1 -1
  77. package/cjs/_chunks/dep-6511812c.js +136 -0
  78. package/cjs/_chunks/dep-6511812c.js.map +1 -0
  79. package/cjs/_chunks/{dep-ffd9a825.js → dep-66656c95.js} +2 -2
  80. package/cjs/_chunks/{dep-ffd9a825.js.map → dep-66656c95.js.map} +1 -1
  81. package/cjs/_chunks/dep-68bf9f96.js +512 -0
  82. package/cjs/_chunks/dep-68bf9f96.js.map +1 -0
  83. package/cjs/_chunks/{dep-9a1fd461.js → dep-6bb503fb.js} +2 -2
  84. package/cjs/_chunks/{dep-9a1fd461.js.map → dep-6bb503fb.js.map} +1 -1
  85. package/cjs/_chunks/{dep-5cbb721d.js → dep-6c4c8532.js} +2 -2
  86. package/cjs/_chunks/{dep-5cbb721d.js.map → dep-6c4c8532.js.map} +1 -1
  87. package/cjs/_chunks/dep-6dc9822b.js +110 -0
  88. package/cjs/_chunks/dep-6dc9822b.js.map +1 -0
  89. package/cjs/_chunks/dep-6df1c156.js +81 -0
  90. package/cjs/_chunks/dep-6df1c156.js.map +1 -0
  91. package/cjs/_chunks/dep-6eb660e1.js +39 -0
  92. package/cjs/_chunks/dep-6eb660e1.js.map +1 -0
  93. package/cjs/_chunks/{dep-f8d535e2.js → dep-707be8b6.js} +1 -1
  94. package/cjs/_chunks/{dep-f8d535e2.js.map → dep-707be8b6.js.map} +1 -1
  95. package/cjs/_chunks/{dep-dfc2f06c.js → dep-74c6168d.js} +1 -1
  96. package/cjs/_chunks/{dep-dfc2f06c.js.map → dep-74c6168d.js.map} +1 -1
  97. package/cjs/_chunks/dep-75d89cda.js +50 -0
  98. package/cjs/_chunks/dep-75d89cda.js.map +1 -0
  99. package/cjs/_chunks/dep-7afaeb70.js +200 -0
  100. package/cjs/_chunks/dep-7afaeb70.js.map +1 -0
  101. package/cjs/_chunks/dep-7b899d7e.js +512 -0
  102. package/cjs/_chunks/dep-7b899d7e.js.map +1 -0
  103. package/cjs/_chunks/dep-7e9bc6a0.js +118 -0
  104. package/cjs/_chunks/dep-7e9bc6a0.js.map +1 -0
  105. package/cjs/_chunks/dep-80023679.js +80 -0
  106. package/cjs/_chunks/dep-80023679.js.map +1 -0
  107. package/cjs/_chunks/dep-8937598f.js +192 -0
  108. package/cjs/_chunks/dep-8937598f.js.map +1 -0
  109. package/cjs/_chunks/dep-893c2208.js +453 -0
  110. package/cjs/_chunks/dep-893c2208.js.map +1 -0
  111. package/cjs/_chunks/dep-8e9bfab3.js +712 -0
  112. package/cjs/_chunks/dep-8e9bfab3.js.map +1 -0
  113. package/cjs/_chunks/dep-90e8b1b0.js +39 -0
  114. package/cjs/_chunks/dep-90e8b1b0.js.map +1 -0
  115. package/cjs/_chunks/dep-9eb798ac.js +688 -0
  116. package/cjs/_chunks/dep-9eb798ac.js.map +1 -0
  117. package/cjs/_chunks/{dep-9e83059c.js → dep-a6f5782d.js} +4 -4
  118. package/cjs/_chunks/{dep-9e83059c.js.map → dep-a6f5782d.js.map} +1 -1
  119. package/cjs/_chunks/dep-ac7540f2.js +512 -0
  120. package/cjs/_chunks/dep-ac7540f2.js.map +1 -0
  121. package/cjs/_chunks/dep-b088a01c.js +65 -0
  122. package/cjs/_chunks/dep-b088a01c.js.map +1 -0
  123. package/cjs/_chunks/dep-b3654aee.js +32 -0
  124. package/cjs/_chunks/dep-b3654aee.js.map +1 -0
  125. package/cjs/_chunks/dep-b3bd96b5.js +24 -0
  126. package/cjs/_chunks/dep-b3bd96b5.js.map +1 -0
  127. package/cjs/_chunks/dep-b4215cf8.js +35 -0
  128. package/cjs/_chunks/dep-b4215cf8.js.map +1 -0
  129. package/cjs/_chunks/dep-b58740b7.js +32 -0
  130. package/cjs/_chunks/dep-b58740b7.js.map +1 -0
  131. package/cjs/_chunks/dep-b5b609e4.js +29 -0
  132. package/cjs/_chunks/dep-b5b609e4.js.map +1 -0
  133. package/cjs/_chunks/dep-b789b3d2.js +101 -0
  134. package/cjs/_chunks/dep-b789b3d2.js.map +1 -0
  135. package/cjs/_chunks/dep-bbf3c565.js +41 -0
  136. package/cjs/_chunks/dep-bbf3c565.js.map +1 -0
  137. package/cjs/_chunks/dep-bc1ba484.js +50 -0
  138. package/cjs/_chunks/dep-bc1ba484.js.map +1 -0
  139. package/cjs/_chunks/{dep-2dbe6e18.js → dep-bfb6b5ad.js} +2 -2
  140. package/cjs/_chunks/{dep-2dbe6e18.js.map → dep-bfb6b5ad.js.map} +1 -1
  141. package/cjs/_chunks/dep-c1f362c5.js +36 -0
  142. package/cjs/_chunks/dep-c1f362c5.js.map +1 -0
  143. package/cjs/_chunks/dep-c99ef448.js +536 -0
  144. package/cjs/_chunks/dep-c99ef448.js.map +1 -0
  145. package/cjs/_chunks/dep-c9e783dd.js +17 -0
  146. package/cjs/_chunks/dep-c9e783dd.js.map +1 -0
  147. package/cjs/_chunks/{dep-1f778b9f.js → dep-cf38af2d.js} +2 -2
  148. package/cjs/_chunks/{dep-1f778b9f.js.map → dep-cf38af2d.js.map} +1 -1
  149. package/cjs/_chunks/dep-d7156736.js +109 -0
  150. package/cjs/_chunks/dep-d7156736.js.map +1 -0
  151. package/cjs/_chunks/dep-d7fd6da5.js +28 -0
  152. package/cjs/_chunks/dep-d7fd6da5.js.map +1 -0
  153. package/cjs/_chunks/dep-e06189c7.js +512 -0
  154. package/cjs/_chunks/dep-e06189c7.js.map +1 -0
  155. package/cjs/_chunks/{dep-559ea1eb.js → dep-e0adf787.js} +3 -3
  156. package/cjs/_chunks/{dep-559ea1eb.js.map → dep-e0adf787.js.map} +1 -1
  157. package/cjs/_chunks/dep-e174ddc3.js +90 -0
  158. package/cjs/_chunks/dep-e174ddc3.js.map +1 -0
  159. package/cjs/_chunks/dep-e1c17b2e.js +152 -0
  160. package/cjs/_chunks/dep-e1c17b2e.js.map +1 -0
  161. package/cjs/_chunks/dep-efc3c5e0.js +60 -0
  162. package/cjs/_chunks/dep-efc3c5e0.js.map +1 -0
  163. package/cjs/_chunks/dep-f1303963.js +43 -0
  164. package/cjs/_chunks/dep-f1303963.js.map +1 -0
  165. package/cjs/_chunks/{dep-d00167a6.js → dep-f3ef763a.js} +4 -4
  166. package/cjs/_chunks/{dep-d00167a6.js.map → dep-f3ef763a.js.map} +1 -1
  167. package/cjs/_chunks/dep-f88b0482.js +512 -0
  168. package/cjs/_chunks/dep-f88b0482.js.map +1 -0
  169. package/cjs/_chunks/{dep-49cc16ea.js → dep-f91597d2.js} +2 -2
  170. package/cjs/_chunks/{dep-49cc16ea.js.map → dep-f91597d2.js.map} +1 -1
  171. package/cjs/_chunks/dep-f97248ee.js +126 -0
  172. package/cjs/_chunks/dep-f97248ee.js.map +1 -0
  173. package/cjs/_chunks/dep-fb75dd85.js +29 -0
  174. package/cjs/_chunks/dep-fb75dd85.js.map +1 -0
  175. package/cjs/_chunks/dep-fead44f1.js +149 -0
  176. package/cjs/_chunks/dep-fead44f1.js.map +1 -0
  177. package/cjs/_common/js/table/recalculate-column-width.js +143 -0
  178. package/cjs/_common/js/table/recalculate-column-width.js.map +1 -0
  179. package/cjs/_common/js/table/set-column-width-by-drag.js +88 -0
  180. package/cjs/_common/js/table/set-column-width-by-drag.js.map +1 -0
  181. package/cjs/_common/js/tree/tree-node-model.js +9 -9
  182. package/cjs/_common/js/tree/tree-node.js +9 -9
  183. package/cjs/_common/js/tree/tree-store.js +10 -10
  184. package/cjs/_util/useAnimation.js +4 -4
  185. package/cjs/_util/useClickOutside.js +4 -4
  186. package/cjs/_util/useCommonClassName.js +4 -4
  187. package/cjs/_util/useRipple.js +4 -4
  188. package/cjs/affix/Affix.js +4 -4
  189. package/cjs/affix/index.js +4 -4
  190. package/cjs/alert/Alert.js +4 -4
  191. package/cjs/alert/index.js +4 -4
  192. package/cjs/anchor/Anchor.js +6 -6
  193. package/cjs/anchor/AnchorItem.js +4 -4
  194. package/cjs/anchor/AnchorTarget.js +4 -4
  195. package/cjs/anchor/index.js +6 -6
  196. package/cjs/auto-complete/AutoComplete.js +4 -4
  197. package/cjs/auto-complete/HighlightOption.js +4 -4
  198. package/cjs/auto-complete/OptionList.js +4 -4
  199. package/cjs/auto-complete/index.js +4 -4
  200. package/cjs/avatar/Avatar.js +5 -5
  201. package/cjs/avatar/AvatarGroup.js +5 -5
  202. package/cjs/avatar/index.js +5 -5
  203. package/cjs/back-top/BackTop.js +4 -4
  204. package/cjs/back-top/index.js +4 -4
  205. package/cjs/badge/Badge.js +4 -4
  206. package/cjs/badge/index.js +4 -4
  207. package/cjs/breadcrumb/Breadcrumb.js +4 -4
  208. package/cjs/breadcrumb/BreadcrumbItem.js +4 -4
  209. package/cjs/breadcrumb/index.js +4 -4
  210. package/cjs/button/Button.js +4 -4
  211. package/cjs/button/index.js +4 -4
  212. package/cjs/calendar/Calendar.js +8 -8
  213. package/cjs/calendar/CalendarCellComp.js +4 -4
  214. package/cjs/calendar/hooks/usePrefixClass.js +4 -4
  215. package/cjs/calendar/index.js +8 -8
  216. package/cjs/card/Card.js +4 -4
  217. package/cjs/card/index.js +4 -4
  218. package/cjs/cascader/Cascader.js +14 -14
  219. package/cjs/cascader/CascaderPanel.js +14 -14
  220. package/cjs/cascader/components/Item.js +7 -7
  221. package/cjs/cascader/components/Panel.js +9 -9
  222. package/cjs/cascader/core/effect.js +6 -6
  223. package/cjs/cascader/core/helper.js +3 -3
  224. package/cjs/cascader/hooks.js +12 -12
  225. package/cjs/cascader/index.js +14 -14
  226. package/cjs/cascader/interface.js +9 -9
  227. package/cjs/checkbox/Checkbox.js +5 -5
  228. package/cjs/checkbox/CheckboxGroup.js +5 -5
  229. package/cjs/checkbox/index.js +5 -5
  230. package/cjs/collapse/Collapse.js +4 -4
  231. package/cjs/collapse/CollapsePanel.js +4 -4
  232. package/cjs/collapse/index.js +4 -4
  233. package/cjs/color-picker/ColorPicker.js +11 -11
  234. package/cjs/color-picker/ColorPickerPanel.js +11 -11
  235. package/cjs/color-picker/components/panel/format/index.js +7 -7
  236. package/cjs/color-picker/components/panel/format/inputs.js +4 -4
  237. package/cjs/color-picker/components/panel/header.js +5 -5
  238. package/cjs/color-picker/components/panel/index.js +11 -11
  239. package/cjs/color-picker/components/panel/linear-gradient.js +7 -7
  240. package/cjs/color-picker/components/panel/swatches.js +4 -4
  241. package/cjs/color-picker/components/trigger.js +4 -4
  242. package/cjs/color-picker/hooks/useClassNames.js +4 -4
  243. package/cjs/color-picker/index.js +11 -11
  244. package/cjs/comment/Comment.js +4 -4
  245. package/cjs/comment/index.js +4 -4
  246. package/cjs/common/Check.js +4 -4
  247. package/cjs/common/FakeArrow.js +4 -4
  248. package/cjs/common/Portal.js +4 -4
  249. package/cjs/config-provider/ConfigContext.js +4 -4
  250. package/cjs/config-provider/ConfigProvider.js +4 -4
  251. package/cjs/config-provider/index.js +4 -4
  252. package/cjs/date-picker/DatePicker.js +10 -10
  253. package/cjs/date-picker/DatePickerPanel.js +10 -10
  254. package/cjs/date-picker/DateRangePicker.js +10 -10
  255. package/cjs/date-picker/DateRangePickerPanel.js +10 -10
  256. package/cjs/date-picker/base/Cell.js +4 -4
  257. package/cjs/date-picker/base/Footer.js +4 -4
  258. package/cjs/date-picker/base/Header.js +10 -10
  259. package/cjs/date-picker/base/Table.js +4 -4
  260. package/cjs/date-picker/hooks/useRange.js +4 -4
  261. package/cjs/date-picker/hooks/useSingle.js +4 -4
  262. package/cjs/date-picker/hooks/useTableData.js +4 -4
  263. package/cjs/date-picker/index.js +10 -10
  264. package/cjs/date-picker/panel/ExtraContent.js +4 -4
  265. package/cjs/date-picker/panel/PanelContent.js +10 -10
  266. package/cjs/date-picker/panel/RangePanel.js +10 -10
  267. package/cjs/date-picker/panel/SinglePanel.js +10 -10
  268. package/cjs/dialog/Dialog.js +5 -5
  269. package/cjs/dialog/Dialog.js.map +1 -1
  270. package/cjs/dialog/DialogCard.js +5 -5
  271. package/cjs/dialog/DialogCard.js.map +1 -1
  272. package/cjs/dialog/index.js +4 -4
  273. package/cjs/dialog/plugin.js +4 -4
  274. package/cjs/divider/Divider.js +4 -4
  275. package/cjs/divider/index.js +4 -4
  276. package/cjs/drawer/Drawer.js +4 -4
  277. package/cjs/drawer/index.js +4 -4
  278. package/cjs/dropdown/Dropdown.js +8 -8
  279. package/cjs/dropdown/DropdownItem.js +4 -4
  280. package/cjs/dropdown/DropdownMenu.js +4 -4
  281. package/cjs/dropdown/hooks/useDropdownOptions.js +4 -4
  282. package/cjs/dropdown/index.js +8 -8
  283. package/cjs/form/Form.js +15 -15
  284. package/cjs/form/FormItem.js +15 -15
  285. package/cjs/form/FormList.js +4 -4
  286. package/cjs/form/formModel.js +3 -3
  287. package/cjs/form/hooks/useFormItemStyle.js +4 -4
  288. package/cjs/form/hooks/useInstance.js +6 -6
  289. package/cjs/form/index.js +15 -15
  290. package/cjs/form/useInitialData.js +15 -15
  291. package/cjs/grid/Col.js +4 -4
  292. package/cjs/grid/Row.js +4 -4
  293. package/cjs/grid/index.js +4 -4
  294. package/cjs/guide/Guide.js +4 -4
  295. package/cjs/guide/index.js +4 -4
  296. package/cjs/hooks/useCommonClassName.js +4 -4
  297. package/cjs/hooks/useConfig.js +4 -4
  298. package/cjs/hooks/useGlobalIcon.js +4 -4
  299. package/cjs/image/Image.js +4 -4
  300. package/cjs/image/index.js +4 -4
  301. package/cjs/image-viewer/ImageViewer.js +5 -5
  302. package/cjs/image-viewer/ImageViewerMini.js +5 -5
  303. package/cjs/image-viewer/ImageViewerModel.js +5 -5
  304. package/cjs/image-viewer/hooks/useIconMap.js +4 -4
  305. package/cjs/image-viewer/index.js +5 -5
  306. package/cjs/index-lib.js +18 -18
  307. package/cjs/index.js +18 -18
  308. package/cjs/input/Input.js +4 -4
  309. package/cjs/input/InputGroup.js +4 -4
  310. package/cjs/input/index.js +4 -4
  311. package/cjs/input-adornment/InputAdornment.js +4 -4
  312. package/cjs/input-adornment/index.js +4 -4
  313. package/cjs/input-number/InputNumber.js +4 -4
  314. package/cjs/input-number/index.js +4 -4
  315. package/cjs/input-number/useInputNumber.js +4 -4
  316. package/cjs/layout/Aside.js +4 -4
  317. package/cjs/layout/Layout.js +4 -4
  318. package/cjs/layout/index.js +4 -4
  319. package/cjs/link/Link.js +4 -4
  320. package/cjs/link/index.js +4 -4
  321. package/cjs/list/List.js +4 -4
  322. package/cjs/list/ListItem.js +4 -4
  323. package/cjs/list/ListItemMeta.js +4 -4
  324. package/cjs/list/index.js +4 -4
  325. package/cjs/loading/Loading.js +4 -4
  326. package/cjs/loading/gradient.js +4 -4
  327. package/cjs/loading/index.js +4 -4
  328. package/cjs/loading/plugin.js +4 -4
  329. package/cjs/locale/LocalReceiver.js +4 -4
  330. package/cjs/menu/HeadMenu.js +4 -4
  331. package/cjs/menu/Menu.js +4 -4
  332. package/cjs/menu/MenuGroup.js +4 -4
  333. package/cjs/menu/MenuItem.js +4 -4
  334. package/cjs/menu/SubMenu.js +4 -4
  335. package/cjs/menu/index.js +4 -4
  336. package/cjs/message/Message.js +4 -4
  337. package/cjs/message/MessageClose.js +4 -4
  338. package/cjs/message/MessageComponent.js +4 -4
  339. package/cjs/message/MessageIcon.js +4 -4
  340. package/cjs/message/index.js +4 -4
  341. package/cjs/message/useMessageClass.js +4 -4
  342. package/cjs/notification/Notification.js +5 -5
  343. package/cjs/notification/NotificationList.js +5 -5
  344. package/cjs/notification/NotificationPlugin.js +5 -5
  345. package/cjs/notification/index.js +5 -5
  346. package/cjs/pagination/Pagination.js +10 -10
  347. package/cjs/pagination/PaginationMini.js +4 -4
  348. package/cjs/pagination/hooks/useBoundaryJumper.js +4 -4
  349. package/cjs/pagination/hooks/usePageNumber.js +4 -4
  350. package/cjs/pagination/hooks/usePrevNextJumper.js +4 -4
  351. package/cjs/pagination/hooks/useTotal.js +4 -4
  352. package/cjs/pagination/index.js +10 -10
  353. package/cjs/popconfirm/Popconfirm.js +4 -4
  354. package/cjs/popconfirm/Popcontent.js +4 -4
  355. package/cjs/popconfirm/index.js +4 -4
  356. package/cjs/popup/Popup.js +4 -4
  357. package/cjs/popup/index.js +4 -4
  358. package/cjs/progress/Progress.js +4 -4
  359. package/cjs/progress/index.js +4 -4
  360. package/cjs/radio/Radio.js +5 -5
  361. package/cjs/radio/RadioGroup.js +5 -5
  362. package/cjs/radio/index.js +5 -5
  363. package/cjs/range-input/RangeInput.js +4 -4
  364. package/cjs/range-input/RangeInputPopup.js +4 -4
  365. package/cjs/range-input/index.js +4 -4
  366. package/cjs/rate/Rate.js +4 -4
  367. package/cjs/rate/index.js +4 -4
  368. package/cjs/select/base/Option.js +4 -4
  369. package/cjs/select/base/OptionGroup.js +4 -4
  370. package/cjs/select/base/PopupContent.js +4 -4
  371. package/cjs/select/base/Select.js +7 -7
  372. package/cjs/select/hooks/useOptions.js +4 -4
  373. package/cjs/select/index.js +7 -7
  374. package/cjs/select/util/helper.js +4 -4
  375. package/cjs/select-input/SelectInput.js +7 -7
  376. package/cjs/select-input/index.js +7 -7
  377. package/cjs/select-input/useMultiple.js +4 -4
  378. package/cjs/select-input/useSingle.js +7 -7
  379. package/cjs/skeleton/Skeleton.js +4 -4
  380. package/cjs/skeleton/index.js +4 -4
  381. package/cjs/slider/Slider.js +4 -4
  382. package/cjs/slider/SliderHandleButton.js +4 -4
  383. package/cjs/slider/index.js +4 -4
  384. package/cjs/space/Space.js +4 -4
  385. package/cjs/space/index.js +4 -4
  386. package/cjs/steps/StepItem.js +4 -4
  387. package/cjs/steps/Steps.js +4 -4
  388. package/cjs/steps/index.js +4 -4
  389. package/cjs/sticky-tool/StickyItem.js +4 -4
  390. package/cjs/sticky-tool/StickyTool.js +4 -4
  391. package/cjs/sticky-tool/index.js +4 -4
  392. package/cjs/swiper/Swiper.js +4 -4
  393. package/cjs/swiper/SwiperItem.js +4 -4
  394. package/cjs/swiper/index.js +4 -4
  395. package/cjs/switch/Switch.js +4 -4
  396. package/cjs/switch/index.js +4 -4
  397. package/cjs/table/BaseTable.js +10 -10
  398. package/cjs/table/Cell.js +4 -4
  399. package/cjs/table/EditableCell.js +7 -7
  400. package/cjs/table/Ellipsis.js +4 -4
  401. package/cjs/table/EnhancedTable.js +14 -14
  402. package/cjs/table/FilterController.js +8 -8
  403. package/cjs/table/PrimaryTable.js +13 -13
  404. package/cjs/table/SorterButton.js +4 -4
  405. package/cjs/table/TBody.js +7 -7
  406. package/cjs/table/TFoot.js +4 -4
  407. package/cjs/table/THead.js +4 -4
  408. package/cjs/table/TR.js +4 -4
  409. package/cjs/table/hooks/useAsyncLoading.js +4 -4
  410. package/cjs/table/hooks/useClassName.js +4 -4
  411. package/cjs/table/hooks/useColumnController.js +5 -5
  412. package/cjs/table/hooks/useDragSort.js +4 -4
  413. package/cjs/table/hooks/useEditableRow.js +3 -3
  414. package/cjs/table/hooks/useFilter.js +8 -8
  415. package/cjs/table/hooks/usePagination.js +10 -10
  416. package/cjs/table/hooks/useRowExpand.js +4 -4
  417. package/cjs/table/hooks/useRowSelect.js +6 -6
  418. package/cjs/table/hooks/useSorter.js +4 -4
  419. package/cjs/table/hooks/useStyle.js +4 -4
  420. package/cjs/table/hooks/useTableHeader.js +4 -4
  421. package/cjs/table/hooks/useTreeData.js +7 -7
  422. package/cjs/table/index.js +14 -14
  423. package/cjs/tabs/TabBar.js +4 -4
  424. package/cjs/tabs/TabNav.js +4 -4
  425. package/cjs/tabs/TabNavItem.js +4 -4
  426. package/cjs/tabs/TabPanel.js +4 -4
  427. package/cjs/tabs/Tabs.js +4 -4
  428. package/cjs/tabs/index.js +4 -4
  429. package/cjs/tabs/useTabClass.js +4 -4
  430. package/cjs/tag/CheckTag.js +4 -4
  431. package/cjs/tag/Tag.js +4 -4
  432. package/cjs/tag/index.js +4 -4
  433. package/cjs/tag-input/TagInput.js +4 -4
  434. package/cjs/tag-input/index.js +4 -4
  435. package/cjs/tag-input/useTagList.js +4 -4
  436. package/cjs/textarea/Textarea.js +4 -4
  437. package/cjs/textarea/index.js +4 -4
  438. package/cjs/time-picker/TimePicker.js +7 -7
  439. package/cjs/time-picker/TimeRangePicker.js +4 -4
  440. package/cjs/time-picker/hooks/useTimePickerTextConfig.js +4 -4
  441. package/cjs/time-picker/index.js +7 -7
  442. package/cjs/time-picker/panel/SinglePanel.js +4 -4
  443. package/cjs/time-picker/panel/TimePickerPanel.js +4 -4
  444. package/cjs/timeline/Timeline.js +4 -4
  445. package/cjs/timeline/TimelineItem.js +4 -4
  446. package/cjs/timeline/index.js +4 -4
  447. package/cjs/tooltip/Tooltip.js +4 -4
  448. package/cjs/tooltip/TooltipLite.js +4 -4
  449. package/cjs/tooltip/index.js +4 -4
  450. package/cjs/transfer/Transfer.js +13 -13
  451. package/cjs/transfer/TransferList.js +12 -12
  452. package/cjs/transfer/index.js +13 -13
  453. package/cjs/transfer/utils.js +3 -3
  454. package/cjs/tree/Tree.js +13 -13
  455. package/cjs/tree/TreeItem.js +5 -5
  456. package/cjs/tree/index.js +13 -13
  457. package/cjs/tree/useStore.js +11 -11
  458. package/cjs/tree/useTreeConfig.js +4 -4
  459. package/cjs/tree-select/SelectArrow.js +4 -4
  460. package/cjs/tree-select/TreeSelect.js +13 -13
  461. package/cjs/tree-select/index.js +13 -13
  462. package/cjs/tree-select/useTreeSelectLocale.js +4 -4
  463. package/cjs/tree-select/useTreeSelectPassthoughProps.js +7 -7
  464. package/cjs/tree-select/useTreeSelectUtils.js +10 -10
  465. package/cjs/upload/hooks/useUpload.js +4 -4
  466. package/cjs/upload/index.js +5 -5
  467. package/cjs/upload/themes/DraggerFile.js +5 -5
  468. package/cjs/upload/themes/ImageCard.js +5 -5
  469. package/cjs/upload/themes/MultipleFlowList.js +5 -5
  470. package/cjs/upload/themes/NormalFile.js +4 -4
  471. package/cjs/upload/upload.js +5 -5
  472. package/cjs/watermark/Watermark.js +4 -4
  473. package/cjs/watermark/index.js +4 -4
  474. package/dist/tdesign.css.map +1 -1
  475. package/dist/tdesign.js +2 -2
  476. package/dist/tdesign.js.map +1 -1
  477. package/dist/tdesign.min.css.map +1 -1
  478. package/dist/tdesign.min.js +1 -1
  479. package/dist/tdesign.min.js.map +1 -1
  480. package/es/_chunks/{dep-99afe6db.js → dep-01d13e64.js} +1 -1
  481. package/es/_chunks/{dep-99afe6db.js.map → dep-01d13e64.js.map} +1 -1
  482. package/{esm/_chunks/dep-1d5f47c2.js → es/_chunks/dep-28876888.js} +4 -4
  483. package/es/_chunks/{dep-1d5f47c2.js.map → dep-28876888.js.map} +1 -1
  484. package/es/_chunks/{dep-d3a1c83c.js → dep-38989f4c.js} +1 -1
  485. package/es/_chunks/{dep-d3a1c83c.js.map → dep-38989f4c.js.map} +1 -1
  486. package/es/_chunks/{dep-49aeaa98.js → dep-3b75059e.js} +5 -5
  487. package/{esm/_chunks/dep-49aeaa98.js.map → es/_chunks/dep-3b75059e.js.map} +1 -1
  488. package/es/_chunks/{dep-52424326.js → dep-488497e2.js} +2 -2
  489. package/{esm/_chunks/dep-52424326.js.map → es/_chunks/dep-488497e2.js.map} +1 -1
  490. package/{esm/_chunks/dep-70d76171.js → es/_chunks/dep-6788902a.js} +2 -2
  491. package/es/_chunks/{dep-70d76171.js.map → dep-6788902a.js.map} +1 -1
  492. package/{esm/_chunks/dep-0b20126b.js → es/_chunks/dep-857af787.js} +2 -2
  493. package/es/_chunks/{dep-0b20126b.js.map → dep-857af787.js.map} +1 -1
  494. package/{esm/_chunks/dep-6bdf9e3c.js → es/_chunks/dep-8a3f0529.js} +2 -2
  495. package/es/_chunks/{dep-6bdf9e3c.js.map → dep-8a3f0529.js.map} +1 -1
  496. package/{esm/_chunks/dep-2328dd82.js → es/_chunks/dep-a76ab496.js} +1 -1
  497. package/es/_chunks/{dep-2328dd82.js.map → dep-a76ab496.js.map} +1 -1
  498. package/{esm/_chunks/dep-01b91170.js → es/_chunks/dep-b194196b.js} +1 -1
  499. package/es/_chunks/{dep-07180f46.js.map → dep-b194196b.js.map} +1 -1
  500. package/{esm/_chunks/dep-76af2521.js → es/_chunks/dep-c2794a9f.js} +3 -3
  501. package/es/_chunks/{dep-76af2521.js.map → dep-c2794a9f.js.map} +1 -1
  502. package/es/_chunks/{dep-b02b2976.js → dep-c88d0a15.js} +4 -4
  503. package/es/_chunks/{dep-b02b2976.js.map → dep-c88d0a15.js.map} +1 -1
  504. package/{esm/_chunks/dep-c87aa853.js → es/_chunks/dep-d0081053.js} +2 -2
  505. package/{esm/_chunks/dep-c87aa853.js.map → es/_chunks/dep-d0081053.js.map} +1 -1
  506. package/{esm/_chunks/dep-fff35577.js → es/_chunks/dep-d0c18995.js} +2 -2
  507. package/{esm/_chunks/dep-fff35577.js.map → es/_chunks/dep-d0c18995.js.map} +1 -1
  508. package/es/_chunks/{dep-df9f8f04.js → dep-db73a5f9.js} +2 -2
  509. package/{esm/_chunks/dep-df9f8f04.js.map → es/_chunks/dep-db73a5f9.js.map} +1 -1
  510. package/es/_chunks/{dep-6b33e1e9.js → dep-dbe7a00b.js} +1 -1
  511. package/{esm/_chunks/dep-6b33e1e9.js.map → es/_chunks/dep-dbe7a00b.js.map} +1 -1
  512. package/{esm/_chunks/dep-132378f3.js → es/_chunks/dep-fd8af8b2.js} +4 -4
  513. package/es/_chunks/{dep-132378f3.js.map → dep-fd8af8b2.js.map} +1 -1
  514. package/{esm/_chunks/dep-45b53bd0.js → es/_chunks/dep-fda04a0b.js} +1 -1
  515. package/{esm/_chunks/dep-45b53bd0.js.map → es/_chunks/dep-fda04a0b.js.map} +1 -1
  516. package/es/_common/js/tree/tree-node-model.js +9 -9
  517. package/es/_common/js/tree/tree-node.js +9 -9
  518. package/es/_common/js/tree/tree-store.js +10 -10
  519. package/es/_util/useAnimation.js +4 -4
  520. package/es/_util/useClickOutside.js +4 -4
  521. package/es/_util/useCommonClassName.js +4 -4
  522. package/es/_util/useRipple.js +4 -4
  523. package/es/affix/Affix.js +4 -4
  524. package/es/affix/index.js +4 -4
  525. package/es/alert/Alert.js +4 -4
  526. package/es/alert/index.js +4 -4
  527. package/es/anchor/Anchor.js +6 -6
  528. package/es/anchor/AnchorItem.js +4 -4
  529. package/es/anchor/AnchorTarget.js +4 -4
  530. package/es/anchor/index.js +6 -6
  531. package/es/auto-complete/AutoComplete.js +4 -4
  532. package/es/auto-complete/HighlightOption.js +4 -4
  533. package/es/auto-complete/OptionList.js +4 -4
  534. package/es/auto-complete/index.js +4 -4
  535. package/es/avatar/Avatar.js +5 -5
  536. package/es/avatar/AvatarGroup.js +5 -5
  537. package/es/avatar/index.js +5 -5
  538. package/es/back-top/BackTop.js +4 -4
  539. package/es/back-top/index.js +4 -4
  540. package/es/badge/Badge.js +4 -4
  541. package/es/badge/index.js +4 -4
  542. package/es/breadcrumb/Breadcrumb.js +4 -4
  543. package/es/breadcrumb/BreadcrumbItem.js +4 -4
  544. package/es/breadcrumb/index.js +4 -4
  545. package/es/button/Button.js +4 -4
  546. package/es/button/index.js +4 -4
  547. package/es/calendar/Calendar.js +8 -8
  548. package/es/calendar/CalendarCellComp.js +4 -4
  549. package/es/calendar/hooks/usePrefixClass.js +4 -4
  550. package/es/calendar/index.js +8 -8
  551. package/es/card/Card.js +4 -4
  552. package/es/card/index.js +4 -4
  553. package/es/cascader/Cascader.js +14 -14
  554. package/es/cascader/CascaderPanel.js +14 -14
  555. package/es/cascader/components/Item.js +7 -7
  556. package/es/cascader/components/Panel.js +9 -9
  557. package/es/cascader/core/effect.js +6 -6
  558. package/es/cascader/core/helper.js +3 -3
  559. package/es/cascader/hooks.js +12 -12
  560. package/es/cascader/index.js +14 -14
  561. package/es/cascader/interface.js +9 -9
  562. package/es/checkbox/Checkbox.js +5 -5
  563. package/es/checkbox/CheckboxGroup.js +5 -5
  564. package/es/checkbox/index.js +5 -5
  565. package/es/collapse/Collapse.js +4 -4
  566. package/es/collapse/CollapsePanel.js +4 -4
  567. package/es/collapse/index.js +4 -4
  568. package/es/color-picker/ColorPicker.js +11 -11
  569. package/es/color-picker/ColorPickerPanel.js +11 -11
  570. package/es/color-picker/components/panel/format/index.js +7 -7
  571. package/es/color-picker/components/panel/format/inputs.js +4 -4
  572. package/es/color-picker/components/panel/header.js +5 -5
  573. package/es/color-picker/components/panel/index.js +11 -11
  574. package/es/color-picker/components/panel/linear-gradient.js +7 -7
  575. package/es/color-picker/components/panel/swatches.js +4 -4
  576. package/es/color-picker/components/trigger.js +4 -4
  577. package/es/color-picker/hooks/useClassNames.js +4 -4
  578. package/es/color-picker/index.js +11 -11
  579. package/es/comment/Comment.js +4 -4
  580. package/es/comment/index.js +4 -4
  581. package/es/common/Check.js +4 -4
  582. package/es/common/FakeArrow.js +4 -4
  583. package/es/common/Portal.js +4 -4
  584. package/es/config-provider/ConfigContext.js +4 -4
  585. package/es/config-provider/ConfigProvider.js +4 -4
  586. package/es/config-provider/index.js +4 -4
  587. package/es/date-picker/DatePicker.js +10 -10
  588. package/es/date-picker/DatePickerPanel.js +10 -10
  589. package/es/date-picker/DateRangePicker.js +10 -10
  590. package/es/date-picker/DateRangePickerPanel.js +10 -10
  591. package/es/date-picker/base/Cell.js +4 -4
  592. package/es/date-picker/base/Footer.js +4 -4
  593. package/es/date-picker/base/Header.js +10 -10
  594. package/es/date-picker/base/Table.js +4 -4
  595. package/es/date-picker/hooks/useRange.js +4 -4
  596. package/es/date-picker/hooks/useSingle.js +4 -4
  597. package/es/date-picker/hooks/useTableData.js +4 -4
  598. package/es/date-picker/index.js +10 -10
  599. package/es/date-picker/panel/ExtraContent.js +4 -4
  600. package/es/date-picker/panel/PanelContent.js +10 -10
  601. package/es/date-picker/panel/RangePanel.js +10 -10
  602. package/es/date-picker/panel/SinglePanel.js +10 -10
  603. package/es/dialog/Dialog.js +5 -5
  604. package/es/dialog/Dialog.js.map +1 -1
  605. package/es/dialog/DialogCard.js +5 -5
  606. package/es/dialog/DialogCard.js.map +1 -1
  607. package/es/dialog/index.js +4 -4
  608. package/es/dialog/plugin.js +4 -4
  609. package/es/divider/Divider.js +4 -4
  610. package/es/divider/index.js +4 -4
  611. package/es/drawer/Drawer.js +4 -4
  612. package/es/drawer/index.js +4 -4
  613. package/es/dropdown/Dropdown.js +8 -8
  614. package/es/dropdown/DropdownItem.js +4 -4
  615. package/es/dropdown/DropdownMenu.js +4 -4
  616. package/es/dropdown/hooks/useDropdownOptions.js +4 -4
  617. package/es/dropdown/index.js +8 -8
  618. package/es/form/Form.js +15 -15
  619. package/es/form/FormItem.js +15 -15
  620. package/es/form/FormList.js +4 -4
  621. package/es/form/formModel.js +3 -3
  622. package/es/form/hooks/useFormItemStyle.js +4 -4
  623. package/es/form/hooks/useInstance.js +6 -6
  624. package/es/form/index.js +15 -15
  625. package/es/form/useInitialData.js +15 -15
  626. package/es/grid/Col.js +4 -4
  627. package/es/grid/Row.js +4 -4
  628. package/es/grid/index.js +4 -4
  629. package/es/guide/Guide.js +4 -4
  630. package/es/guide/index.js +4 -4
  631. package/es/hooks/useCommonClassName.js +4 -4
  632. package/es/hooks/useConfig.js +4 -4
  633. package/es/hooks/useGlobalIcon.js +4 -4
  634. package/es/image/Image.js +4 -4
  635. package/es/image/index.js +4 -4
  636. package/es/image-viewer/ImageViewer.js +5 -5
  637. package/es/image-viewer/ImageViewerMini.js +5 -5
  638. package/es/image-viewer/ImageViewerModel.js +5 -5
  639. package/es/image-viewer/hooks/useIconMap.js +4 -4
  640. package/es/image-viewer/index.js +5 -5
  641. package/es/index.js +18 -18
  642. package/es/input/Input.js +4 -4
  643. package/es/input/InputGroup.js +4 -4
  644. package/es/input/index.js +4 -4
  645. package/es/input-adornment/InputAdornment.js +4 -4
  646. package/es/input-adornment/index.js +4 -4
  647. package/es/input-number/InputNumber.js +4 -4
  648. package/es/input-number/index.js +4 -4
  649. package/es/input-number/useInputNumber.js +4 -4
  650. package/es/layout/Aside.js +4 -4
  651. package/es/layout/Layout.js +4 -4
  652. package/es/layout/index.js +4 -4
  653. package/es/link/Link.js +4 -4
  654. package/es/link/index.js +4 -4
  655. package/es/list/List.js +4 -4
  656. package/es/list/ListItem.js +4 -4
  657. package/es/list/ListItemMeta.js +4 -4
  658. package/es/list/index.js +4 -4
  659. package/es/loading/Loading.js +4 -4
  660. package/es/loading/gradient.js +4 -4
  661. package/es/loading/index.js +4 -4
  662. package/es/loading/plugin.js +4 -4
  663. package/es/locale/LocalReceiver.js +4 -4
  664. package/es/menu/HeadMenu.js +4 -4
  665. package/es/menu/Menu.js +4 -4
  666. package/es/menu/MenuGroup.js +4 -4
  667. package/es/menu/MenuItem.js +4 -4
  668. package/es/menu/SubMenu.js +4 -4
  669. package/es/menu/index.js +4 -4
  670. package/es/message/Message.js +4 -4
  671. package/es/message/MessageClose.js +4 -4
  672. package/es/message/MessageComponent.js +4 -4
  673. package/es/message/MessageIcon.js +4 -4
  674. package/es/message/index.js +4 -4
  675. package/es/message/useMessageClass.js +4 -4
  676. package/es/notification/Notification.js +5 -5
  677. package/es/notification/NotificationList.js +5 -5
  678. package/es/notification/NotificationPlugin.js +5 -5
  679. package/es/notification/index.js +5 -5
  680. package/es/pagination/Pagination.js +10 -10
  681. package/es/pagination/PaginationMini.js +4 -4
  682. package/es/pagination/hooks/useBoundaryJumper.js +4 -4
  683. package/es/pagination/hooks/usePageNumber.js +4 -4
  684. package/es/pagination/hooks/usePrevNextJumper.js +4 -4
  685. package/es/pagination/hooks/useTotal.js +4 -4
  686. package/es/pagination/index.js +10 -10
  687. package/es/popconfirm/Popconfirm.js +4 -4
  688. package/es/popconfirm/Popcontent.js +4 -4
  689. package/es/popconfirm/index.js +4 -4
  690. package/es/popup/Popup.js +4 -4
  691. package/es/popup/index.js +4 -4
  692. package/es/progress/Progress.js +4 -4
  693. package/es/progress/index.js +4 -4
  694. package/es/radio/Radio.js +5 -5
  695. package/es/radio/RadioGroup.js +5 -5
  696. package/es/radio/index.js +5 -5
  697. package/es/range-input/RangeInput.js +4 -4
  698. package/es/range-input/RangeInputPopup.js +4 -4
  699. package/es/range-input/index.js +4 -4
  700. package/es/rate/Rate.js +4 -4
  701. package/es/rate/index.js +4 -4
  702. package/es/select/base/Option.js +4 -4
  703. package/es/select/base/OptionGroup.js +4 -4
  704. package/es/select/base/PopupContent.js +4 -4
  705. package/es/select/base/Select.js +7 -7
  706. package/es/select/hooks/useOptions.js +4 -4
  707. package/es/select/index.js +7 -7
  708. package/es/select/util/helper.js +4 -4
  709. package/es/select-input/SelectInput.js +7 -7
  710. package/es/select-input/index.js +7 -7
  711. package/es/select-input/useMultiple.js +4 -4
  712. package/es/select-input/useSingle.js +7 -7
  713. package/es/skeleton/Skeleton.js +4 -4
  714. package/es/skeleton/index.js +4 -4
  715. package/es/slider/Slider.js +4 -4
  716. package/es/slider/SliderHandleButton.js +4 -4
  717. package/es/slider/index.js +4 -4
  718. package/es/space/Space.js +4 -4
  719. package/es/space/index.js +4 -4
  720. package/es/steps/StepItem.js +4 -4
  721. package/es/steps/Steps.js +4 -4
  722. package/es/steps/index.js +4 -4
  723. package/es/sticky-tool/StickyItem.js +4 -4
  724. package/es/sticky-tool/StickyTool.js +4 -4
  725. package/es/sticky-tool/index.js +4 -4
  726. package/es/swiper/Swiper.js +4 -4
  727. package/es/swiper/SwiperItem.js +4 -4
  728. package/es/swiper/index.js +4 -4
  729. package/es/switch/Switch.js +4 -4
  730. package/es/switch/index.js +4 -4
  731. package/es/table/BaseTable.js +10 -10
  732. package/es/table/Cell.js +4 -4
  733. package/es/table/EditableCell.js +7 -7
  734. package/es/table/Ellipsis.js +4 -4
  735. package/es/table/EnhancedTable.js +14 -14
  736. package/es/table/FilterController.js +8 -8
  737. package/es/table/PrimaryTable.js +13 -13
  738. package/es/table/SorterButton.js +4 -4
  739. package/es/table/TBody.js +7 -7
  740. package/es/table/TFoot.js +4 -4
  741. package/es/table/THead.js +4 -4
  742. package/es/table/TR.js +4 -4
  743. package/es/table/hooks/useAsyncLoading.js +4 -4
  744. package/es/table/hooks/useClassName.js +4 -4
  745. package/es/table/hooks/useColumnController.js +5 -5
  746. package/es/table/hooks/useDragSort.js +4 -4
  747. package/es/table/hooks/useEditableRow.js +3 -3
  748. package/es/table/hooks/useFilter.js +8 -8
  749. package/es/table/hooks/usePagination.js +10 -10
  750. package/es/table/hooks/useRowExpand.js +4 -4
  751. package/es/table/hooks/useRowSelect.js +6 -6
  752. package/es/table/hooks/useSorter.js +4 -4
  753. package/es/table/hooks/useStyle.js +4 -4
  754. package/es/table/hooks/useTableHeader.js +4 -4
  755. package/es/table/hooks/useTreeData.js +7 -7
  756. package/es/table/index.js +14 -14
  757. package/es/tabs/TabBar.js +4 -4
  758. package/es/tabs/TabNav.js +4 -4
  759. package/es/tabs/TabNavItem.js +4 -4
  760. package/es/tabs/TabPanel.js +4 -4
  761. package/es/tabs/Tabs.js +4 -4
  762. package/es/tabs/index.js +4 -4
  763. package/es/tabs/useTabClass.js +4 -4
  764. package/es/tag/CheckTag.js +4 -4
  765. package/es/tag/Tag.js +4 -4
  766. package/es/tag/index.js +4 -4
  767. package/es/tag-input/TagInput.js +4 -4
  768. package/es/tag-input/index.js +4 -4
  769. package/es/tag-input/useTagList.js +4 -4
  770. package/es/textarea/Textarea.js +4 -4
  771. package/es/textarea/index.js +4 -4
  772. package/es/time-picker/TimePicker.js +7 -7
  773. package/es/time-picker/TimeRangePicker.js +4 -4
  774. package/es/time-picker/hooks/useTimePickerTextConfig.js +4 -4
  775. package/es/time-picker/index.js +7 -7
  776. package/es/time-picker/panel/SinglePanel.js +4 -4
  777. package/es/time-picker/panel/TimePickerPanel.js +4 -4
  778. package/es/timeline/Timeline.js +4 -4
  779. package/es/timeline/TimelineItem.js +4 -4
  780. package/es/timeline/index.js +4 -4
  781. package/es/tooltip/Tooltip.js +4 -4
  782. package/es/tooltip/TooltipLite.js +4 -4
  783. package/es/tooltip/index.js +4 -4
  784. package/es/transfer/Transfer.js +13 -13
  785. package/es/transfer/TransferList.js +12 -12
  786. package/es/transfer/index.js +13 -13
  787. package/es/transfer/utils.js +3 -3
  788. package/es/tree/Tree.js +13 -13
  789. package/es/tree/TreeItem.js +5 -5
  790. package/es/tree/index.js +13 -13
  791. package/es/tree/useStore.js +11 -11
  792. package/es/tree/useTreeConfig.js +4 -4
  793. package/es/tree-select/SelectArrow.js +4 -4
  794. package/es/tree-select/TreeSelect.js +13 -13
  795. package/es/tree-select/index.js +13 -13
  796. package/es/tree-select/useTreeSelectLocale.js +4 -4
  797. package/es/tree-select/useTreeSelectPassthoughProps.js +7 -7
  798. package/es/tree-select/useTreeSelectUtils.js +10 -10
  799. package/es/upload/hooks/useUpload.js +4 -4
  800. package/es/upload/index.js +5 -5
  801. package/es/upload/themes/DraggerFile.js +5 -5
  802. package/es/upload/themes/ImageCard.js +5 -5
  803. package/es/upload/themes/MultipleFlowList.js +5 -5
  804. package/es/upload/themes/NormalFile.js +4 -4
  805. package/es/upload/upload.js +5 -5
  806. package/es/watermark/Watermark.js +4 -4
  807. package/es/watermark/index.js +4 -4
  808. package/esm/_chunks/{dep-99afe6db.js → dep-01d13e64.js} +1 -1
  809. package/esm/_chunks/{dep-99afe6db.js.map → dep-01d13e64.js.map} +1 -1
  810. package/{es/_chunks/dep-1d5f47c2.js → esm/_chunks/dep-28876888.js} +4 -4
  811. package/esm/_chunks/{dep-1d5f47c2.js.map → dep-28876888.js.map} +1 -1
  812. package/esm/_chunks/{dep-d3a1c83c.js → dep-38989f4c.js} +1 -1
  813. package/esm/_chunks/{dep-d3a1c83c.js.map → dep-38989f4c.js.map} +1 -1
  814. package/esm/_chunks/{dep-49aeaa98.js → dep-3b75059e.js} +5 -5
  815. package/{es/_chunks/dep-49aeaa98.js.map → esm/_chunks/dep-3b75059e.js.map} +1 -1
  816. package/esm/_chunks/{dep-52424326.js → dep-488497e2.js} +2 -2
  817. package/{es/_chunks/dep-52424326.js.map → esm/_chunks/dep-488497e2.js.map} +1 -1
  818. package/{es/_chunks/dep-07180f46.js → esm/_chunks/dep-5a721e21.js} +1 -1
  819. package/esm/_chunks/{dep-01b91170.js.map → dep-5a721e21.js.map} +1 -1
  820. package/{es/_chunks/dep-70d76171.js → esm/_chunks/dep-6788902a.js} +2 -2
  821. package/esm/_chunks/{dep-70d76171.js.map → dep-6788902a.js.map} +1 -1
  822. package/{es/_chunks/dep-0b20126b.js → esm/_chunks/dep-857af787.js} +2 -2
  823. package/esm/_chunks/{dep-0b20126b.js.map → dep-857af787.js.map} +1 -1
  824. package/{es/_chunks/dep-6bdf9e3c.js → esm/_chunks/dep-8a3f0529.js} +2 -2
  825. package/esm/_chunks/{dep-6bdf9e3c.js.map → dep-8a3f0529.js.map} +1 -1
  826. package/{es/_chunks/dep-2328dd82.js → esm/_chunks/dep-a76ab496.js} +1 -1
  827. package/esm/_chunks/{dep-2328dd82.js.map → dep-a76ab496.js.map} +1 -1
  828. package/{es/_chunks/dep-76af2521.js → esm/_chunks/dep-c2794a9f.js} +3 -3
  829. package/esm/_chunks/{dep-76af2521.js.map → dep-c2794a9f.js.map} +1 -1
  830. package/esm/_chunks/{dep-b02b2976.js → dep-c88d0a15.js} +4 -4
  831. package/esm/_chunks/{dep-b02b2976.js.map → dep-c88d0a15.js.map} +1 -1
  832. package/{es/_chunks/dep-e609e9e8.js → esm/_chunks/dep-cb45c25d.js} +1 -1
  833. package/{es/_chunks/dep-e609e9e8.js.map → esm/_chunks/dep-cb45c25d.js.map} +1 -1
  834. package/{es/_chunks/dep-c87aa853.js → esm/_chunks/dep-d0081053.js} +2 -2
  835. package/{es/_chunks/dep-c87aa853.js.map → esm/_chunks/dep-d0081053.js.map} +1 -1
  836. package/{es/_chunks/dep-fff35577.js → esm/_chunks/dep-d0c18995.js} +2 -2
  837. package/{es/_chunks/dep-fff35577.js.map → esm/_chunks/dep-d0c18995.js.map} +1 -1
  838. package/esm/_chunks/{dep-df9f8f04.js → dep-db73a5f9.js} +2 -2
  839. package/{es/_chunks/dep-df9f8f04.js.map → esm/_chunks/dep-db73a5f9.js.map} +1 -1
  840. package/esm/_chunks/{dep-6b33e1e9.js → dep-dbe7a00b.js} +1 -1
  841. package/{es/_chunks/dep-6b33e1e9.js.map → esm/_chunks/dep-dbe7a00b.js.map} +1 -1
  842. package/{es/_chunks/dep-132378f3.js → esm/_chunks/dep-fd8af8b2.js} +4 -4
  843. package/esm/_chunks/{dep-132378f3.js.map → dep-fd8af8b2.js.map} +1 -1
  844. package/esm/_common/js/tree/tree-node-model.js +9 -9
  845. package/esm/_common/js/tree/tree-node.js +9 -9
  846. package/esm/_common/js/tree/tree-store.js +10 -10
  847. package/esm/_util/useAnimation.js +4 -4
  848. package/esm/_util/useClickOutside.js +4 -4
  849. package/esm/_util/useCommonClassName.js +4 -4
  850. package/esm/_util/useRipple.js +4 -4
  851. package/esm/affix/Affix.js +4 -4
  852. package/esm/affix/index.js +4 -4
  853. package/esm/alert/Alert.js +4 -4
  854. package/esm/alert/index.js +4 -4
  855. package/esm/anchor/Anchor.js +6 -6
  856. package/esm/anchor/AnchorItem.js +4 -4
  857. package/esm/anchor/AnchorTarget.js +4 -4
  858. package/esm/anchor/index.js +6 -6
  859. package/esm/auto-complete/AutoComplete.js +4 -4
  860. package/esm/auto-complete/HighlightOption.js +4 -4
  861. package/esm/auto-complete/OptionList.js +4 -4
  862. package/esm/auto-complete/index.js +4 -4
  863. package/esm/avatar/Avatar.js +5 -5
  864. package/esm/avatar/AvatarGroup.js +5 -5
  865. package/esm/avatar/index.js +5 -5
  866. package/esm/back-top/BackTop.js +4 -4
  867. package/esm/back-top/index.js +4 -4
  868. package/esm/badge/Badge.js +4 -4
  869. package/esm/badge/index.js +4 -4
  870. package/esm/breadcrumb/Breadcrumb.js +4 -4
  871. package/esm/breadcrumb/BreadcrumbItem.js +4 -4
  872. package/esm/breadcrumb/index.js +4 -4
  873. package/esm/button/Button.js +4 -4
  874. package/esm/button/index.js +4 -4
  875. package/esm/calendar/Calendar.js +8 -8
  876. package/esm/calendar/CalendarCellComp.js +4 -4
  877. package/esm/calendar/hooks/usePrefixClass.js +4 -4
  878. package/esm/calendar/index.js +8 -8
  879. package/esm/card/Card.js +4 -4
  880. package/esm/card/index.js +4 -4
  881. package/esm/cascader/Cascader.js +14 -14
  882. package/esm/cascader/CascaderPanel.js +14 -14
  883. package/esm/cascader/components/Item.js +7 -7
  884. package/esm/cascader/components/Panel.js +9 -9
  885. package/esm/cascader/core/effect.js +6 -6
  886. package/esm/cascader/core/helper.js +3 -3
  887. package/esm/cascader/hooks.js +12 -12
  888. package/esm/cascader/index.js +14 -14
  889. package/esm/cascader/interface.js +9 -9
  890. package/esm/checkbox/Checkbox.js +5 -5
  891. package/esm/checkbox/CheckboxGroup.js +5 -5
  892. package/esm/checkbox/index.js +5 -5
  893. package/esm/collapse/Collapse.js +4 -4
  894. package/esm/collapse/CollapsePanel.js +4 -4
  895. package/esm/collapse/index.js +4 -4
  896. package/esm/color-picker/ColorPicker.js +11 -11
  897. package/esm/color-picker/ColorPickerPanel.js +11 -11
  898. package/esm/color-picker/components/panel/format/index.js +7 -7
  899. package/esm/color-picker/components/panel/format/inputs.js +4 -4
  900. package/esm/color-picker/components/panel/header.js +5 -5
  901. package/esm/color-picker/components/panel/index.js +11 -11
  902. package/esm/color-picker/components/panel/linear-gradient.js +7 -7
  903. package/esm/color-picker/components/panel/swatches.js +4 -4
  904. package/esm/color-picker/components/trigger.js +4 -4
  905. package/esm/color-picker/hooks/useClassNames.js +4 -4
  906. package/esm/color-picker/index.js +11 -11
  907. package/esm/comment/Comment.js +4 -4
  908. package/esm/comment/index.js +4 -4
  909. package/esm/common/Check.js +4 -4
  910. package/esm/common/FakeArrow.js +4 -4
  911. package/esm/common/Portal.js +4 -4
  912. package/esm/config-provider/ConfigContext.js +4 -4
  913. package/esm/config-provider/ConfigProvider.js +4 -4
  914. package/esm/config-provider/index.js +4 -4
  915. package/esm/date-picker/DatePicker.js +10 -10
  916. package/esm/date-picker/DatePickerPanel.js +10 -10
  917. package/esm/date-picker/DateRangePicker.js +10 -10
  918. package/esm/date-picker/DateRangePickerPanel.js +10 -10
  919. package/esm/date-picker/base/Cell.js +4 -4
  920. package/esm/date-picker/base/Footer.js +4 -4
  921. package/esm/date-picker/base/Header.js +10 -10
  922. package/esm/date-picker/base/Table.js +4 -4
  923. package/esm/date-picker/hooks/useRange.js +4 -4
  924. package/esm/date-picker/hooks/useSingle.js +4 -4
  925. package/esm/date-picker/hooks/useTableData.js +4 -4
  926. package/esm/date-picker/index.js +10 -10
  927. package/esm/date-picker/panel/ExtraContent.js +4 -4
  928. package/esm/date-picker/panel/PanelContent.js +10 -10
  929. package/esm/date-picker/panel/RangePanel.js +10 -10
  930. package/esm/date-picker/panel/SinglePanel.js +10 -10
  931. package/esm/dialog/Dialog.js +5 -5
  932. package/esm/dialog/Dialog.js.map +1 -1
  933. package/esm/dialog/DialogCard.js +5 -5
  934. package/esm/dialog/DialogCard.js.map +1 -1
  935. package/esm/dialog/index.js +4 -4
  936. package/esm/dialog/plugin.js +4 -4
  937. package/esm/divider/Divider.js +4 -4
  938. package/esm/divider/index.js +4 -4
  939. package/esm/drawer/Drawer.js +4 -4
  940. package/esm/drawer/index.js +4 -4
  941. package/esm/dropdown/Dropdown.js +8 -8
  942. package/esm/dropdown/DropdownItem.js +4 -4
  943. package/esm/dropdown/DropdownMenu.js +4 -4
  944. package/esm/dropdown/hooks/useDropdownOptions.js +4 -4
  945. package/esm/dropdown/index.js +8 -8
  946. package/esm/form/Form.js +15 -15
  947. package/esm/form/FormItem.js +15 -15
  948. package/esm/form/FormList.js +4 -4
  949. package/esm/form/formModel.js +3 -3
  950. package/esm/form/hooks/useFormItemStyle.js +4 -4
  951. package/esm/form/hooks/useInstance.js +6 -6
  952. package/esm/form/index.js +15 -15
  953. package/esm/form/useInitialData.js +15 -15
  954. package/esm/grid/Col.js +4 -4
  955. package/esm/grid/Row.js +4 -4
  956. package/esm/grid/index.js +4 -4
  957. package/esm/guide/Guide.js +4 -4
  958. package/esm/guide/index.js +4 -4
  959. package/esm/hooks/useCommonClassName.js +4 -4
  960. package/esm/hooks/useConfig.js +4 -4
  961. package/esm/hooks/useGlobalIcon.js +4 -4
  962. package/esm/image/Image.js +4 -4
  963. package/esm/image/index.js +4 -4
  964. package/esm/image-viewer/ImageViewer.js +5 -5
  965. package/esm/image-viewer/ImageViewerMini.js +5 -5
  966. package/esm/image-viewer/ImageViewerModel.js +5 -5
  967. package/esm/image-viewer/hooks/useIconMap.js +4 -4
  968. package/esm/image-viewer/index.js +5 -5
  969. package/esm/index.js +18 -18
  970. package/esm/input/Input.js +4 -4
  971. package/esm/input/InputGroup.js +4 -4
  972. package/esm/input/index.js +4 -4
  973. package/esm/input-adornment/InputAdornment.js +4 -4
  974. package/esm/input-adornment/index.js +4 -4
  975. package/esm/input-number/InputNumber.js +4 -4
  976. package/esm/input-number/index.js +4 -4
  977. package/esm/input-number/useInputNumber.js +4 -4
  978. package/esm/layout/Aside.js +4 -4
  979. package/esm/layout/Layout.js +4 -4
  980. package/esm/layout/index.js +4 -4
  981. package/esm/link/Link.js +4 -4
  982. package/esm/link/index.js +4 -4
  983. package/esm/list/List.js +4 -4
  984. package/esm/list/ListItem.js +4 -4
  985. package/esm/list/ListItemMeta.js +4 -4
  986. package/esm/list/index.js +4 -4
  987. package/esm/loading/Loading.js +4 -4
  988. package/esm/loading/gradient.js +4 -4
  989. package/esm/loading/index.js +4 -4
  990. package/esm/loading/plugin.js +4 -4
  991. package/esm/locale/LocalReceiver.js +4 -4
  992. package/esm/menu/HeadMenu.js +4 -4
  993. package/esm/menu/Menu.js +4 -4
  994. package/esm/menu/MenuGroup.js +4 -4
  995. package/esm/menu/MenuItem.js +4 -4
  996. package/esm/menu/SubMenu.js +4 -4
  997. package/esm/menu/index.js +4 -4
  998. package/esm/message/Message.js +4 -4
  999. package/esm/message/MessageClose.js +4 -4
  1000. package/esm/message/MessageComponent.js +4 -4
  1001. package/esm/message/MessageIcon.js +4 -4
  1002. package/esm/message/index.js +4 -4
  1003. package/esm/message/useMessageClass.js +4 -4
  1004. package/esm/notification/Notification.js +5 -5
  1005. package/esm/notification/NotificationList.js +5 -5
  1006. package/esm/notification/NotificationPlugin.js +5 -5
  1007. package/esm/notification/index.js +5 -5
  1008. package/esm/pagination/Pagination.js +10 -10
  1009. package/esm/pagination/PaginationMini.js +4 -4
  1010. package/esm/pagination/hooks/useBoundaryJumper.js +4 -4
  1011. package/esm/pagination/hooks/usePageNumber.js +4 -4
  1012. package/esm/pagination/hooks/usePrevNextJumper.js +4 -4
  1013. package/esm/pagination/hooks/useTotal.js +4 -4
  1014. package/esm/pagination/index.js +10 -10
  1015. package/esm/popconfirm/Popconfirm.js +4 -4
  1016. package/esm/popconfirm/Popcontent.js +4 -4
  1017. package/esm/popconfirm/index.js +4 -4
  1018. package/esm/popup/Popup.js +4 -4
  1019. package/esm/popup/index.js +4 -4
  1020. package/esm/progress/Progress.js +4 -4
  1021. package/esm/progress/index.js +4 -4
  1022. package/esm/radio/Radio.js +5 -5
  1023. package/esm/radio/RadioGroup.js +5 -5
  1024. package/esm/radio/index.js +5 -5
  1025. package/esm/range-input/RangeInput.js +4 -4
  1026. package/esm/range-input/RangeInputPopup.js +4 -4
  1027. package/esm/range-input/index.js +4 -4
  1028. package/esm/rate/Rate.js +4 -4
  1029. package/esm/rate/index.js +4 -4
  1030. package/esm/select/base/Option.js +4 -4
  1031. package/esm/select/base/OptionGroup.js +4 -4
  1032. package/esm/select/base/PopupContent.js +4 -4
  1033. package/esm/select/base/Select.js +7 -7
  1034. package/esm/select/hooks/useOptions.js +4 -4
  1035. package/esm/select/index.js +7 -7
  1036. package/esm/select/util/helper.js +4 -4
  1037. package/esm/select-input/SelectInput.js +7 -7
  1038. package/esm/select-input/index.js +7 -7
  1039. package/esm/select-input/useMultiple.js +4 -4
  1040. package/esm/select-input/useSingle.js +7 -7
  1041. package/esm/skeleton/Skeleton.js +4 -4
  1042. package/esm/skeleton/index.js +4 -4
  1043. package/esm/slider/Slider.js +4 -4
  1044. package/esm/slider/SliderHandleButton.js +4 -4
  1045. package/esm/slider/index.js +4 -4
  1046. package/esm/space/Space.js +4 -4
  1047. package/esm/space/index.js +4 -4
  1048. package/esm/steps/StepItem.js +4 -4
  1049. package/esm/steps/Steps.js +4 -4
  1050. package/esm/steps/index.js +4 -4
  1051. package/esm/sticky-tool/StickyItem.js +4 -4
  1052. package/esm/sticky-tool/StickyTool.js +4 -4
  1053. package/esm/sticky-tool/index.js +4 -4
  1054. package/esm/swiper/Swiper.js +4 -4
  1055. package/esm/swiper/SwiperItem.js +4 -4
  1056. package/esm/swiper/index.js +4 -4
  1057. package/esm/switch/Switch.js +4 -4
  1058. package/esm/switch/index.js +4 -4
  1059. package/esm/table/BaseTable.js +10 -10
  1060. package/esm/table/Cell.js +4 -4
  1061. package/esm/table/EditableCell.js +7 -7
  1062. package/esm/table/Ellipsis.js +4 -4
  1063. package/esm/table/EnhancedTable.js +14 -14
  1064. package/esm/table/FilterController.js +8 -8
  1065. package/esm/table/PrimaryTable.js +13 -13
  1066. package/esm/table/SorterButton.js +4 -4
  1067. package/esm/table/TBody.js +7 -7
  1068. package/esm/table/TFoot.js +4 -4
  1069. package/esm/table/THead.js +4 -4
  1070. package/esm/table/TR.js +4 -4
  1071. package/esm/table/hooks/useAsyncLoading.js +4 -4
  1072. package/esm/table/hooks/useClassName.js +4 -4
  1073. package/esm/table/hooks/useColumnController.js +5 -5
  1074. package/esm/table/hooks/useDragSort.js +4 -4
  1075. package/esm/table/hooks/useEditableRow.js +3 -3
  1076. package/esm/table/hooks/useFilter.js +8 -8
  1077. package/esm/table/hooks/usePagination.js +10 -10
  1078. package/esm/table/hooks/useRowExpand.js +4 -4
  1079. package/esm/table/hooks/useRowSelect.js +6 -6
  1080. package/esm/table/hooks/useSorter.js +4 -4
  1081. package/esm/table/hooks/useStyle.js +4 -4
  1082. package/esm/table/hooks/useTableHeader.js +4 -4
  1083. package/esm/table/hooks/useTreeData.js +7 -7
  1084. package/esm/table/index.js +14 -14
  1085. package/esm/tabs/TabBar.js +4 -4
  1086. package/esm/tabs/TabNav.js +4 -4
  1087. package/esm/tabs/TabNavItem.js +4 -4
  1088. package/esm/tabs/TabPanel.js +4 -4
  1089. package/esm/tabs/Tabs.js +4 -4
  1090. package/esm/tabs/index.js +4 -4
  1091. package/esm/tabs/useTabClass.js +4 -4
  1092. package/esm/tag/CheckTag.js +4 -4
  1093. package/esm/tag/Tag.js +4 -4
  1094. package/esm/tag/index.js +4 -4
  1095. package/esm/tag-input/TagInput.js +4 -4
  1096. package/esm/tag-input/index.js +4 -4
  1097. package/esm/tag-input/useTagList.js +4 -4
  1098. package/esm/textarea/Textarea.js +4 -4
  1099. package/esm/textarea/index.js +4 -4
  1100. package/esm/time-picker/TimePicker.js +7 -7
  1101. package/esm/time-picker/TimeRangePicker.js +4 -4
  1102. package/esm/time-picker/hooks/useTimePickerTextConfig.js +4 -4
  1103. package/esm/time-picker/index.js +7 -7
  1104. package/esm/time-picker/panel/SinglePanel.js +4 -4
  1105. package/esm/time-picker/panel/TimePickerPanel.js +4 -4
  1106. package/esm/timeline/Timeline.js +4 -4
  1107. package/esm/timeline/TimelineItem.js +4 -4
  1108. package/esm/timeline/index.js +4 -4
  1109. package/esm/tooltip/Tooltip.js +4 -4
  1110. package/esm/tooltip/TooltipLite.js +4 -4
  1111. package/esm/tooltip/index.js +4 -4
  1112. package/esm/transfer/Transfer.js +13 -13
  1113. package/esm/transfer/TransferList.js +12 -12
  1114. package/esm/transfer/index.js +13 -13
  1115. package/esm/transfer/utils.js +3 -3
  1116. package/esm/tree/Tree.js +13 -13
  1117. package/esm/tree/TreeItem.js +5 -5
  1118. package/esm/tree/index.js +13 -13
  1119. package/esm/tree/useStore.js +11 -11
  1120. package/esm/tree/useTreeConfig.js +4 -4
  1121. package/esm/tree-select/SelectArrow.js +4 -4
  1122. package/esm/tree-select/TreeSelect.js +13 -13
  1123. package/esm/tree-select/index.js +13 -13
  1124. package/esm/tree-select/useTreeSelectLocale.js +4 -4
  1125. package/esm/tree-select/useTreeSelectPassthoughProps.js +7 -7
  1126. package/esm/tree-select/useTreeSelectUtils.js +10 -10
  1127. package/esm/upload/hooks/useUpload.js +4 -4
  1128. package/esm/upload/index.js +5 -5
  1129. package/esm/upload/themes/DraggerFile.js +5 -5
  1130. package/esm/upload/themes/ImageCard.js +5 -5
  1131. package/esm/upload/themes/MultipleFlowList.js +5 -5
  1132. package/esm/upload/themes/NormalFile.js +4 -4
  1133. package/esm/upload/upload.js +5 -5
  1134. package/esm/watermark/Watermark.js +4 -4
  1135. package/esm/watermark/index.js +4 -4
  1136. package/lib/_chunks/{dep-fd009f6e.js → dep-0583dcd8.js} +1 -1
  1137. package/lib/_chunks/{dep-fd009f6e.js.map → dep-0583dcd8.js.map} +1 -1
  1138. package/lib/_chunks/{dep-a5d960e8.js → dep-0e5b3deb.js} +1 -1
  1139. package/lib/_chunks/{dep-a5d960e8.js.map → dep-0e5b3deb.js.map} +1 -1
  1140. package/lib/_chunks/{dep-498e1533.js → dep-169a90c2.js} +2 -2
  1141. package/lib/_chunks/{dep-498e1533.js.map → dep-169a90c2.js.map} +1 -1
  1142. package/lib/_chunks/{dep-afcb101d.js → dep-1b16c8c4.js} +2 -2
  1143. package/lib/_chunks/{dep-afcb101d.js.map → dep-1b16c8c4.js.map} +1 -1
  1144. package/lib/_chunks/{dep-15d98681.js → dep-1c333fd5.js} +4 -4
  1145. package/lib/_chunks/{dep-15d98681.js.map → dep-1c333fd5.js.map} +1 -1
  1146. package/lib/_chunks/{dep-999cd4bf.js → dep-4c561b83.js} +2 -2
  1147. package/lib/_chunks/{dep-999cd4bf.js.map → dep-4c561b83.js.map} +1 -1
  1148. package/lib/_chunks/{dep-39076cd7.js → dep-5e3b8c41.js} +4 -4
  1149. package/lib/_chunks/{dep-39076cd7.js.map → dep-5e3b8c41.js.map} +1 -1
  1150. package/lib/_chunks/{dep-969347ec.js → dep-677b08bc.js} +1 -1
  1151. package/lib/_chunks/{dep-969347ec.js.map → dep-677b08bc.js.map} +1 -1
  1152. package/lib/_chunks/{dep-fa769771.js → dep-78c04035.js} +1 -1
  1153. package/lib/_chunks/{dep-fa769771.js.map → dep-78c04035.js.map} +1 -1
  1154. package/lib/_chunks/{dep-a573e2ba.js → dep-7aa7b645.js} +1 -1
  1155. package/lib/_chunks/{dep-a573e2ba.js.map → dep-7aa7b645.js.map} +1 -1
  1156. package/lib/_chunks/{dep-23ecb1ac.js → dep-857545c7.js} +4 -4
  1157. package/lib/_chunks/{dep-23ecb1ac.js.map → dep-857545c7.js.map} +1 -1
  1158. package/lib/_chunks/{dep-43a71b20.js → dep-92601077.js} +2 -2
  1159. package/lib/_chunks/{dep-43a71b20.js.map → dep-92601077.js.map} +1 -1
  1160. package/lib/_chunks/{dep-a8d3f527.js → dep-b8fc284e.js} +2 -2
  1161. package/lib/_chunks/{dep-a8d3f527.js.map → dep-b8fc284e.js.map} +1 -1
  1162. package/lib/_chunks/{dep-fbf5a6e0.js → dep-bb2e9c8d.js} +3 -3
  1163. package/lib/_chunks/{dep-fbf5a6e0.js.map → dep-bb2e9c8d.js.map} +1 -1
  1164. package/lib/_chunks/{dep-c34d2f58.js → dep-c580832d.js} +2 -2
  1165. package/lib/_chunks/{dep-c34d2f58.js.map → dep-c580832d.js.map} +1 -1
  1166. package/lib/_chunks/{dep-a60c4279.js → dep-d09f05cf.js} +2 -2
  1167. package/lib/_chunks/{dep-a60c4279.js.map → dep-d09f05cf.js.map} +1 -1
  1168. package/lib/_chunks/{dep-41af5862.js → dep-dccc3f81.js} +1 -1
  1169. package/lib/_chunks/{dep-41af5862.js.map → dep-dccc3f81.js.map} +1 -1
  1170. package/lib/_chunks/{dep-9a90394c.js → dep-f2434436.js} +5 -5
  1171. package/lib/_chunks/{dep-9a90394c.js.map → dep-f2434436.js.map} +1 -1
  1172. package/lib/_common/js/tree/tree-node-model.js +9 -9
  1173. package/lib/_common/js/tree/tree-node.js +9 -9
  1174. package/lib/_common/js/tree/tree-store.js +10 -10
  1175. package/lib/_util/useAnimation.js +4 -4
  1176. package/lib/_util/useClickOutside.js +4 -4
  1177. package/lib/_util/useCommonClassName.js +4 -4
  1178. package/lib/_util/useRipple.js +4 -4
  1179. package/lib/affix/Affix.js +4 -4
  1180. package/lib/affix/index.js +4 -4
  1181. package/lib/alert/Alert.js +4 -4
  1182. package/lib/alert/index.js +4 -4
  1183. package/lib/anchor/Anchor.js +6 -6
  1184. package/lib/anchor/AnchorItem.js +4 -4
  1185. package/lib/anchor/AnchorTarget.js +4 -4
  1186. package/lib/anchor/index.js +6 -6
  1187. package/lib/auto-complete/AutoComplete.js +4 -4
  1188. package/lib/auto-complete/HighlightOption.js +4 -4
  1189. package/lib/auto-complete/OptionList.js +4 -4
  1190. package/lib/auto-complete/index.js +4 -4
  1191. package/lib/avatar/Avatar.js +5 -5
  1192. package/lib/avatar/AvatarGroup.js +5 -5
  1193. package/lib/avatar/index.js +5 -5
  1194. package/lib/back-top/BackTop.js +4 -4
  1195. package/lib/back-top/index.js +4 -4
  1196. package/lib/badge/Badge.js +4 -4
  1197. package/lib/badge/index.js +4 -4
  1198. package/lib/breadcrumb/Breadcrumb.js +4 -4
  1199. package/lib/breadcrumb/BreadcrumbItem.js +4 -4
  1200. package/lib/breadcrumb/index.js +4 -4
  1201. package/lib/button/Button.js +4 -4
  1202. package/lib/button/index.js +4 -4
  1203. package/lib/calendar/Calendar.js +8 -8
  1204. package/lib/calendar/CalendarCellComp.js +4 -4
  1205. package/lib/calendar/hooks/usePrefixClass.js +4 -4
  1206. package/lib/calendar/index.js +8 -8
  1207. package/lib/card/Card.js +4 -4
  1208. package/lib/card/index.js +4 -4
  1209. package/lib/cascader/Cascader.js +14 -14
  1210. package/lib/cascader/CascaderPanel.js +14 -14
  1211. package/lib/cascader/components/Item.js +7 -7
  1212. package/lib/cascader/components/Panel.js +9 -9
  1213. package/lib/cascader/core/effect.js +6 -6
  1214. package/lib/cascader/core/helper.js +3 -3
  1215. package/lib/cascader/hooks.js +12 -12
  1216. package/lib/cascader/index.js +14 -14
  1217. package/lib/cascader/interface.js +9 -9
  1218. package/lib/checkbox/Checkbox.js +5 -5
  1219. package/lib/checkbox/CheckboxGroup.js +5 -5
  1220. package/lib/checkbox/index.js +5 -5
  1221. package/lib/collapse/Collapse.js +4 -4
  1222. package/lib/collapse/CollapsePanel.js +4 -4
  1223. package/lib/collapse/index.js +4 -4
  1224. package/lib/color-picker/ColorPicker.js +11 -11
  1225. package/lib/color-picker/ColorPickerPanel.js +11 -11
  1226. package/lib/color-picker/components/panel/format/index.js +7 -7
  1227. package/lib/color-picker/components/panel/format/inputs.js +4 -4
  1228. package/lib/color-picker/components/panel/header.js +5 -5
  1229. package/lib/color-picker/components/panel/index.js +11 -11
  1230. package/lib/color-picker/components/panel/linear-gradient.js +7 -7
  1231. package/lib/color-picker/components/panel/swatches.js +4 -4
  1232. package/lib/color-picker/components/trigger.js +4 -4
  1233. package/lib/color-picker/hooks/useClassNames.js +4 -4
  1234. package/lib/color-picker/index.js +11 -11
  1235. package/lib/comment/Comment.js +4 -4
  1236. package/lib/comment/index.js +4 -4
  1237. package/lib/common/Check.js +4 -4
  1238. package/lib/common/FakeArrow.js +4 -4
  1239. package/lib/common/Portal.js +4 -4
  1240. package/lib/config-provider/ConfigContext.js +4 -4
  1241. package/lib/config-provider/ConfigProvider.js +4 -4
  1242. package/lib/config-provider/index.js +4 -4
  1243. package/lib/date-picker/DatePicker.js +10 -10
  1244. package/lib/date-picker/DatePickerPanel.js +10 -10
  1245. package/lib/date-picker/DateRangePicker.js +10 -10
  1246. package/lib/date-picker/DateRangePickerPanel.js +10 -10
  1247. package/lib/date-picker/base/Cell.js +4 -4
  1248. package/lib/date-picker/base/Footer.js +4 -4
  1249. package/lib/date-picker/base/Header.js +10 -10
  1250. package/lib/date-picker/base/Table.js +4 -4
  1251. package/lib/date-picker/hooks/useRange.js +4 -4
  1252. package/lib/date-picker/hooks/useSingle.js +4 -4
  1253. package/lib/date-picker/hooks/useTableData.js +4 -4
  1254. package/lib/date-picker/index.js +10 -10
  1255. package/lib/date-picker/panel/ExtraContent.js +4 -4
  1256. package/lib/date-picker/panel/PanelContent.js +10 -10
  1257. package/lib/date-picker/panel/RangePanel.js +10 -10
  1258. package/lib/date-picker/panel/SinglePanel.js +10 -10
  1259. package/lib/dialog/Dialog.js +5 -5
  1260. package/lib/dialog/Dialog.js.map +1 -1
  1261. package/lib/dialog/DialogCard.js +5 -5
  1262. package/lib/dialog/DialogCard.js.map +1 -1
  1263. package/lib/dialog/index.js +4 -4
  1264. package/lib/dialog/plugin.js +4 -4
  1265. package/lib/divider/Divider.js +4 -4
  1266. package/lib/divider/index.js +4 -4
  1267. package/lib/drawer/Drawer.js +4 -4
  1268. package/lib/drawer/index.js +4 -4
  1269. package/lib/dropdown/Dropdown.js +8 -8
  1270. package/lib/dropdown/DropdownItem.js +4 -4
  1271. package/lib/dropdown/DropdownMenu.js +4 -4
  1272. package/lib/dropdown/hooks/useDropdownOptions.js +4 -4
  1273. package/lib/dropdown/index.js +8 -8
  1274. package/lib/form/Form.js +15 -15
  1275. package/lib/form/FormItem.js +15 -15
  1276. package/lib/form/FormList.js +4 -4
  1277. package/lib/form/formModel.js +3 -3
  1278. package/lib/form/hooks/useFormItemStyle.js +4 -4
  1279. package/lib/form/hooks/useInstance.js +6 -6
  1280. package/lib/form/index.js +15 -15
  1281. package/lib/form/useInitialData.js +15 -15
  1282. package/lib/grid/Col.js +4 -4
  1283. package/lib/grid/Row.js +4 -4
  1284. package/lib/grid/index.js +4 -4
  1285. package/lib/guide/Guide.js +4 -4
  1286. package/lib/guide/index.js +4 -4
  1287. package/lib/hooks/useCommonClassName.js +4 -4
  1288. package/lib/hooks/useConfig.js +4 -4
  1289. package/lib/hooks/useGlobalIcon.js +4 -4
  1290. package/lib/image/Image.js +4 -4
  1291. package/lib/image/index.js +4 -4
  1292. package/lib/image-viewer/ImageViewer.js +5 -5
  1293. package/lib/image-viewer/ImageViewerMini.js +5 -5
  1294. package/lib/image-viewer/ImageViewerModel.js +5 -5
  1295. package/lib/image-viewer/hooks/useIconMap.js +4 -4
  1296. package/lib/image-viewer/index.js +5 -5
  1297. package/lib/index.js +18 -18
  1298. package/lib/input/Input.js +4 -4
  1299. package/lib/input/InputGroup.js +4 -4
  1300. package/lib/input/index.js +4 -4
  1301. package/lib/input-adornment/InputAdornment.js +4 -4
  1302. package/lib/input-adornment/index.js +4 -4
  1303. package/lib/input-number/InputNumber.js +4 -4
  1304. package/lib/input-number/index.js +4 -4
  1305. package/lib/input-number/useInputNumber.js +4 -4
  1306. package/lib/layout/Aside.js +4 -4
  1307. package/lib/layout/Layout.js +4 -4
  1308. package/lib/layout/index.js +4 -4
  1309. package/lib/link/Link.js +4 -4
  1310. package/lib/link/index.js +4 -4
  1311. package/lib/list/List.js +4 -4
  1312. package/lib/list/ListItem.js +4 -4
  1313. package/lib/list/ListItemMeta.js +4 -4
  1314. package/lib/list/index.js +4 -4
  1315. package/lib/loading/Loading.js +4 -4
  1316. package/lib/loading/gradient.js +4 -4
  1317. package/lib/loading/index.js +4 -4
  1318. package/lib/loading/plugin.js +4 -4
  1319. package/lib/locale/LocalReceiver.js +4 -4
  1320. package/lib/menu/HeadMenu.js +4 -4
  1321. package/lib/menu/Menu.js +4 -4
  1322. package/lib/menu/MenuGroup.js +4 -4
  1323. package/lib/menu/MenuItem.js +4 -4
  1324. package/lib/menu/SubMenu.js +4 -4
  1325. package/lib/menu/index.js +4 -4
  1326. package/lib/message/Message.js +4 -4
  1327. package/lib/message/MessageClose.js +4 -4
  1328. package/lib/message/MessageComponent.js +4 -4
  1329. package/lib/message/MessageIcon.js +4 -4
  1330. package/lib/message/index.js +4 -4
  1331. package/lib/message/useMessageClass.js +4 -4
  1332. package/lib/notification/Notification.js +5 -5
  1333. package/lib/notification/NotificationList.js +5 -5
  1334. package/lib/notification/NotificationPlugin.js +5 -5
  1335. package/lib/notification/index.js +5 -5
  1336. package/lib/pagination/Pagination.js +10 -10
  1337. package/lib/pagination/PaginationMini.js +4 -4
  1338. package/lib/pagination/hooks/useBoundaryJumper.js +4 -4
  1339. package/lib/pagination/hooks/usePageNumber.js +4 -4
  1340. package/lib/pagination/hooks/usePrevNextJumper.js +4 -4
  1341. package/lib/pagination/hooks/useTotal.js +4 -4
  1342. package/lib/pagination/index.js +10 -10
  1343. package/lib/popconfirm/Popconfirm.js +4 -4
  1344. package/lib/popconfirm/Popcontent.js +4 -4
  1345. package/lib/popconfirm/index.js +4 -4
  1346. package/lib/popup/Popup.js +4 -4
  1347. package/lib/popup/index.js +4 -4
  1348. package/lib/progress/Progress.js +4 -4
  1349. package/lib/progress/index.js +4 -4
  1350. package/lib/radio/Radio.js +5 -5
  1351. package/lib/radio/RadioGroup.js +5 -5
  1352. package/lib/radio/index.js +5 -5
  1353. package/lib/range-input/RangeInput.js +4 -4
  1354. package/lib/range-input/RangeInputPopup.js +4 -4
  1355. package/lib/range-input/index.js +4 -4
  1356. package/lib/rate/Rate.js +4 -4
  1357. package/lib/rate/index.js +4 -4
  1358. package/lib/select/base/Option.js +4 -4
  1359. package/lib/select/base/OptionGroup.js +4 -4
  1360. package/lib/select/base/PopupContent.js +4 -4
  1361. package/lib/select/base/Select.js +7 -7
  1362. package/lib/select/hooks/useOptions.js +4 -4
  1363. package/lib/select/index.js +7 -7
  1364. package/lib/select/util/helper.js +4 -4
  1365. package/lib/select-input/SelectInput.js +7 -7
  1366. package/lib/select-input/index.js +7 -7
  1367. package/lib/select-input/useMultiple.js +4 -4
  1368. package/lib/select-input/useSingle.js +7 -7
  1369. package/lib/skeleton/Skeleton.js +4 -4
  1370. package/lib/skeleton/index.js +4 -4
  1371. package/lib/slider/Slider.js +4 -4
  1372. package/lib/slider/SliderHandleButton.js +4 -4
  1373. package/lib/slider/index.js +4 -4
  1374. package/lib/space/Space.js +4 -4
  1375. package/lib/space/index.js +4 -4
  1376. package/lib/steps/StepItem.js +4 -4
  1377. package/lib/steps/Steps.js +4 -4
  1378. package/lib/steps/index.js +4 -4
  1379. package/lib/sticky-tool/StickyItem.js +4 -4
  1380. package/lib/sticky-tool/StickyTool.js +4 -4
  1381. package/lib/sticky-tool/index.js +4 -4
  1382. package/lib/swiper/Swiper.js +4 -4
  1383. package/lib/swiper/SwiperItem.js +4 -4
  1384. package/lib/swiper/index.js +4 -4
  1385. package/lib/switch/Switch.js +4 -4
  1386. package/lib/switch/index.js +4 -4
  1387. package/lib/table/BaseTable.js +10 -10
  1388. package/lib/table/Cell.js +4 -4
  1389. package/lib/table/EditableCell.js +7 -7
  1390. package/lib/table/Ellipsis.js +4 -4
  1391. package/lib/table/EnhancedTable.js +14 -14
  1392. package/lib/table/FilterController.js +8 -8
  1393. package/lib/table/PrimaryTable.js +13 -13
  1394. package/lib/table/SorterButton.js +4 -4
  1395. package/lib/table/TBody.js +7 -7
  1396. package/lib/table/TFoot.js +4 -4
  1397. package/lib/table/THead.js +4 -4
  1398. package/lib/table/TR.js +4 -4
  1399. package/lib/table/hooks/useAsyncLoading.js +4 -4
  1400. package/lib/table/hooks/useClassName.js +4 -4
  1401. package/lib/table/hooks/useColumnController.js +5 -5
  1402. package/lib/table/hooks/useDragSort.js +4 -4
  1403. package/lib/table/hooks/useEditableRow.js +3 -3
  1404. package/lib/table/hooks/useFilter.js +8 -8
  1405. package/lib/table/hooks/usePagination.js +10 -10
  1406. package/lib/table/hooks/useRowExpand.js +4 -4
  1407. package/lib/table/hooks/useRowSelect.js +6 -6
  1408. package/lib/table/hooks/useSorter.js +4 -4
  1409. package/lib/table/hooks/useStyle.js +4 -4
  1410. package/lib/table/hooks/useTableHeader.js +4 -4
  1411. package/lib/table/hooks/useTreeData.js +7 -7
  1412. package/lib/table/index.js +14 -14
  1413. package/lib/tabs/TabBar.js +4 -4
  1414. package/lib/tabs/TabNav.js +4 -4
  1415. package/lib/tabs/TabNavItem.js +4 -4
  1416. package/lib/tabs/TabPanel.js +4 -4
  1417. package/lib/tabs/Tabs.js +4 -4
  1418. package/lib/tabs/index.js +4 -4
  1419. package/lib/tabs/useTabClass.js +4 -4
  1420. package/lib/tag/CheckTag.js +4 -4
  1421. package/lib/tag/Tag.js +4 -4
  1422. package/lib/tag/index.js +4 -4
  1423. package/lib/tag-input/TagInput.js +4 -4
  1424. package/lib/tag-input/index.js +4 -4
  1425. package/lib/tag-input/useTagList.js +4 -4
  1426. package/lib/textarea/Textarea.js +4 -4
  1427. package/lib/textarea/index.js +4 -4
  1428. package/lib/time-picker/TimePicker.js +7 -7
  1429. package/lib/time-picker/TimeRangePicker.js +4 -4
  1430. package/lib/time-picker/hooks/useTimePickerTextConfig.js +4 -4
  1431. package/lib/time-picker/index.js +7 -7
  1432. package/lib/time-picker/panel/SinglePanel.js +4 -4
  1433. package/lib/time-picker/panel/TimePickerPanel.js +4 -4
  1434. package/lib/timeline/Timeline.js +4 -4
  1435. package/lib/timeline/TimelineItem.js +4 -4
  1436. package/lib/timeline/index.js +4 -4
  1437. package/lib/tooltip/Tooltip.js +4 -4
  1438. package/lib/tooltip/TooltipLite.js +4 -4
  1439. package/lib/tooltip/index.js +4 -4
  1440. package/lib/transfer/Transfer.js +13 -13
  1441. package/lib/transfer/TransferList.js +12 -12
  1442. package/lib/transfer/index.js +13 -13
  1443. package/lib/transfer/utils.js +3 -3
  1444. package/lib/tree/Tree.js +13 -13
  1445. package/lib/tree/TreeItem.js +5 -5
  1446. package/lib/tree/index.js +13 -13
  1447. package/lib/tree/useStore.js +11 -11
  1448. package/lib/tree/useTreeConfig.js +4 -4
  1449. package/lib/tree-select/SelectArrow.js +4 -4
  1450. package/lib/tree-select/TreeSelect.js +13 -13
  1451. package/lib/tree-select/index.js +13 -13
  1452. package/lib/tree-select/useTreeSelectLocale.js +4 -4
  1453. package/lib/tree-select/useTreeSelectPassthoughProps.js +7 -7
  1454. package/lib/tree-select/useTreeSelectUtils.js +10 -10
  1455. package/lib/upload/hooks/useUpload.js +4 -4
  1456. package/lib/upload/index.js +5 -5
  1457. package/lib/upload/themes/DraggerFile.js +5 -5
  1458. package/lib/upload/themes/ImageCard.js +5 -5
  1459. package/lib/upload/themes/MultipleFlowList.js +5 -5
  1460. package/lib/upload/themes/NormalFile.js +4 -4
  1461. package/lib/upload/upload.js +5 -5
  1462. package/lib/watermark/Watermark.js +4 -4
  1463. package/lib/watermark/index.js +4 -4
  1464. package/package.json +1 -1
@@ -0,0 +1,152 @@
1
+ /**
2
+ * tdesign v1.0.4
3
+ * (c) 2023 tdesign
4
+ * @license MIT
5
+ */
6
+
7
+ 'use strict';
8
+
9
+ var defineProperty = require('./dep-b3bd96b5.js');
10
+ var React = require('react');
11
+ var _util_forwardRefWithStatics = require('../_util/forwardRefWithStatics.js');
12
+ var common_Check = require('../common/Check.js');
13
+ var slicedToArray = require('./dep-2e54fd55.js');
14
+ var classNames = require('classnames');
15
+ var hooks_useConfig = require('../hooks/useConfig.js');
16
+ var hooks_useControlled = require('../hooks/useControlled.js');
17
+ var _util_useCommonClassName = require('../_util/useCommonClassName.js');
18
+ var radio_defaultProps = require('../radio/defaultProps.js');
19
+ var _util_useMutationObserver = require('../_util/useMutationObserver.js');
20
+ var radio_useKeyboard = require('../radio/useKeyboard.js');
21
+
22
+ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
23
+
24
+ var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
25
+ var classNames__default = /*#__PURE__*/_interopDefaultLegacy(classNames);
26
+
27
+ function ownKeys$1(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
28
+ function _objectSpread$1(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$1(Object(source), !0).forEach(function (key) { defineProperty._defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$1(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
29
+ var RadioGroup = function RadioGroup(props) {
30
+ var _classNames;
31
+ var _useConfig = hooks_useConfig["default"](),
32
+ classPrefix = _useConfig.classPrefix;
33
+ var disabled = props.disabled,
34
+ children = props.children,
35
+ onChange = props.onChange,
36
+ size = props.size,
37
+ variant = props.variant,
38
+ _props$options = props.options,
39
+ options = _props$options === void 0 ? [] : _props$options,
40
+ className = props.className,
41
+ style = props.style;
42
+ var _useControlled = hooks_useControlled["default"](props, "value", onChange),
43
+ _useControlled2 = slicedToArray._slicedToArray(_useControlled, 2),
44
+ internalValue = _useControlled2[0],
45
+ setInternalValue = _useControlled2[1];
46
+ var _useState = React.useState({}),
47
+ _useState2 = slicedToArray._slicedToArray(_useState, 2),
48
+ barStyle = _useState2[0],
49
+ setBarStyle = _useState2[1];
50
+ var radioGroupRef = React.useRef(null);
51
+ radio_useKeyboard["default"](radioGroupRef, setInternalValue);
52
+ var checkedRadioCls = ".".concat(classPrefix, "-radio-button.").concat(classPrefix, "-is-checked");
53
+ var _useCommonClassName = _util_useCommonClassName["default"](),
54
+ sizeMap = _useCommonClassName.SIZE;
55
+ var context = {
56
+ inject: function inject(checkProps) {
57
+ if (typeof checkProps.checked !== "undefined") {
58
+ return checkProps;
59
+ }
60
+ var checkValue = checkProps.value;
61
+ return _objectSpread$1(_objectSpread$1({}, checkProps), {}, {
62
+ name: props.name,
63
+ allowUncheck: checkProps.allowUncheck || props.allowUncheck,
64
+ checked: internalValue === checkProps.value,
65
+ disabled: checkProps.disabled || disabled,
66
+ onChange: function onChange(checked, _ref) {
67
+ var e = _ref.e;
68
+ if (typeof checkProps.onChange === "function") {
69
+ checkProps.onChange(checked, {
70
+ e: e
71
+ });
72
+ }
73
+ setInternalValue(checked ? checkValue : void 0, {
74
+ e: e
75
+ });
76
+ }
77
+ });
78
+ }
79
+ };
80
+ var calcBarStyle = function calcBarStyle() {
81
+ var _radioGroupRef$curren, _radioGroupRef$curren2;
82
+ if (!variant.includes("filled")) return;
83
+ var checkedRadio = (_radioGroupRef$curren = (_radioGroupRef$curren2 = radioGroupRef.current).querySelector) === null || _radioGroupRef$curren === void 0 ? void 0 : _radioGroupRef$curren.call(_radioGroupRef$curren2, checkedRadioCls);
84
+ if (!checkedRadio) return setBarStyle({
85
+ width: 0
86
+ });
87
+ var offsetWidth = checkedRadio.offsetWidth,
88
+ offsetLeft = checkedRadio.offsetLeft;
89
+ setBarStyle({
90
+ width: "".concat(offsetWidth, "px"),
91
+ left: "".concat(offsetLeft, "px")
92
+ });
93
+ };
94
+ React.useEffect(function () {
95
+ calcBarStyle();
96
+ }, [radioGroupRef.current, internalValue]);
97
+ _util_useMutationObserver["default"](radioGroupRef.current, calcBarStyle);
98
+ var renderBlock = function renderBlock() {
99
+ if (!variant.includes("filled")) return null;
100
+ return /* @__PURE__ */React__default["default"].createElement("div", {
101
+ style: barStyle,
102
+ className: "".concat(classPrefix, "-radio-group__bg-block")
103
+ });
104
+ };
105
+ var renderOptions = function renderOptions() {
106
+ return options.map(function (item) {
107
+ if (typeof item === "string" || typeof item === "number") {
108
+ return /* @__PURE__ */React__default["default"].createElement(Radio, {
109
+ value: item,
110
+ key: item
111
+ }, item);
112
+ }
113
+ return /* @__PURE__ */React__default["default"].createElement(Radio, {
114
+ value: item.value,
115
+ key: item.value,
116
+ disabled: item.disabled
117
+ }, item.label);
118
+ });
119
+ };
120
+ return /* @__PURE__ */React__default["default"].createElement(common_Check.CheckContext.Provider, {
121
+ value: context
122
+ }, /* @__PURE__ */React__default["default"].createElement("div", {
123
+ ref: radioGroupRef,
124
+ style: style,
125
+ className: classNames__default["default"]("".concat(classPrefix, "-radio-group"), sizeMap[size], className, (_classNames = {}, defineProperty._defineProperty(_classNames, "".concat(classPrefix, "-radio-group__outline"), variant === "outline"), defineProperty._defineProperty(_classNames, "".concat(classPrefix, "-radio-group--filled"), variant.includes("filled")), defineProperty._defineProperty(_classNames, "".concat(classPrefix, "-radio-group--primary-filled"), variant === "primary-filled"), _classNames))
126
+ }, children || renderOptions(), renderBlock()));
127
+ };
128
+ RadioGroup.displayName = "RadioGroup";
129
+ RadioGroup.defaultProps = radio_defaultProps.radioGroupDefaultProps;
130
+
131
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
132
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { defineProperty._defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
133
+ var Radio = _util_forwardRefWithStatics["default"](function (props, ref) {
134
+ return /* @__PURE__ */React__default["default"].createElement(common_Check["default"], _objectSpread({
135
+ ref: ref,
136
+ type: "radio"
137
+ }, props));
138
+ }, {
139
+ Group: RadioGroup,
140
+ Button: /*#__PURE__*/React.forwardRef(function (props, ref) {
141
+ return /* @__PURE__ */React__default["default"].createElement(common_Check["default"], _objectSpread({
142
+ ref: ref,
143
+ type: "radio-button"
144
+ }, props));
145
+ })
146
+ });
147
+ Radio.displayName = "Radio";
148
+ Radio.defaultProps = radio_defaultProps.radioDefaultProps;
149
+
150
+ exports.Radio = Radio;
151
+ exports.RadioGroup = RadioGroup;
152
+ //# sourceMappingURL=dep-381e57e3.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dep-381e57e3.js","sources":["../../src/radio/RadioGroup.tsx","../../src/radio/Radio.tsx"],"sourcesContent":["import React, { ReactNode, useState, useEffect, useRef } from 'react';\nimport classNames from 'classnames';\nimport useConfig from '../hooks/useConfig';\nimport { TdRadioGroupProps } from './type';\nimport useControlled from '../hooks/useControlled';\nimport useCommonClassName from '../_util/useCommonClassName';\nimport { StyledProps } from '../common';\nimport { CheckContext, CheckContextValue } from '../common/Check';\nimport Radio from './Radio';\nimport useMutationObservable from '../_util/useMutationObserver';\nimport { radioGroupDefaultProps } from './defaultProps';\nimport useKeyboard from './useKeyboard';\n\n/**\n * RadioGroup 组件所接收的属性\n */\nexport interface RadioGroupProps extends TdRadioGroupProps, StyledProps {\n children?: ReactNode;\n}\n\n/**\n * 单选选项组,里面可以嵌套 <Radio />\n */\nconst RadioGroup = (props: RadioGroupProps) => {\n const { classPrefix } = useConfig();\n const { disabled, children, onChange, size, variant, options = [], className, style } = props;\n\n const [internalValue, setInternalValue] = useControlled(props, 'value', onChange);\n const [barStyle, setBarStyle] = useState({});\n const radioGroupRef = useRef<HTMLDivElement>(null);\n\n useKeyboard(radioGroupRef, setInternalValue);\n\n const checkedRadioCls = `.${classPrefix}-radio-button.${classPrefix}-is-checked`;\n const { SIZE: sizeMap } = useCommonClassName();\n\n const context: CheckContextValue = {\n inject: (checkProps) => {\n // 如果已经受控,则不注入\n if (typeof checkProps.checked !== 'undefined') {\n return checkProps;\n }\n\n const { value: checkValue } = checkProps;\n\n return {\n ...checkProps,\n name: props.name,\n // 有一个允许取消,就可以取消选中\n allowUncheck: checkProps.allowUncheck || props.allowUncheck,\n checked: internalValue === checkProps.value,\n disabled: checkProps.disabled || disabled,\n onChange(checked, { e }) {\n if (typeof checkProps.onChange === 'function') {\n checkProps.onChange(checked, { e });\n }\n setInternalValue(checked ? checkValue : undefined, { e });\n },\n };\n },\n };\n\n const calcBarStyle = () => {\n if (!variant.includes('filled')) return;\n const checkedRadio = radioGroupRef.current.querySelector?.(checkedRadioCls) as HTMLElement;\n if (!checkedRadio) return setBarStyle({ width: 0 });\n\n const { offsetWidth, offsetLeft } = checkedRadio;\n setBarStyle({ width: `${offsetWidth}px`, left: `${offsetLeft}px` });\n };\n\n useEffect(() => {\n calcBarStyle();\n }, [radioGroupRef.current, internalValue]); // eslint-disable-line react-hooks/exhaustive-deps\n\n useMutationObservable(radioGroupRef.current, calcBarStyle);\n\n const renderBlock = () => {\n if (!variant.includes('filled')) return null;\n return <div style={barStyle} className={`${classPrefix}-radio-group__bg-block`}></div>;\n };\n\n const renderOptions = () =>\n options.map((item) => {\n if (typeof item === 'string' || typeof item === 'number') {\n return (\n <Radio value={item} key={item}>\n {item}\n </Radio>\n );\n }\n return (\n <Radio value={item.value} key={item.value} disabled={item.disabled}>\n {item.label}\n </Radio>\n );\n });\n\n return (\n <CheckContext.Provider value={context}>\n <div\n ref={radioGroupRef}\n style={style}\n className={classNames(`${classPrefix}-radio-group`, sizeMap[size], className, {\n [`${classPrefix}-radio-group__outline`]: variant === 'outline',\n [`${classPrefix}-radio-group--filled`]: variant.includes('filled'),\n [`${classPrefix}-radio-group--primary-filled`]: variant === 'primary-filled',\n })}\n >\n {children || renderOptions()}\n {renderBlock()}\n </div>\n </CheckContext.Provider>\n );\n};\n\nRadioGroup.displayName = 'RadioGroup';\nRadioGroup.defaultProps = radioGroupDefaultProps;\n\nexport default RadioGroup;\n","import React, { Ref, forwardRef } from 'react';\nimport forwardRefWithStatics from '../_util/forwardRefWithStatics';\nimport Check, { CheckProps } from '../common/Check';\nimport RadioGroup from './RadioGroup';\nimport { radioDefaultProps } from './defaultProps';\n\nexport type RadioProps = Omit<CheckProps, 'type'>;\n\nconst Radio = forwardRefWithStatics(\n (props: RadioProps, ref: Ref<HTMLLabelElement>) => <Check ref={ref} type=\"radio\" {...props} />,\n {\n Group: RadioGroup,\n Button: forwardRef((props: RadioProps, ref: Ref<HTMLLabelElement>) => (\n <Check ref={ref} type=\"radio-button\" {...props} />\n )),\n },\n);\n\nRadio.displayName = 'Radio';\nRadio.defaultProps = radioDefaultProps;\n\nexport default Radio;\n"],"names":["RadioGroup","props","useConfig","classPrefix","disabled","children","onChange","size","variant","options","className","style","useControlled","_slicedToArray","internalValue","setInternalValue","useState","barStyle","setBarStyle","radioGroupRef","useRef","useKeyboard","checkedRadioCls","useCommonClassName","sizeMap","SIZE","context","inject","checkProps","checked","checkValue","value","_objectSpread","name","allowUncheck","e","calcBarStyle","includes","checkedRadio","current","querySelector","width","offsetWidth","offsetLeft","left","useEffect","useMutationObservable","renderBlock","React","createElement","renderOptions","map","item","Radio","key","label","CheckContext","Provider","ref","classNames","_defineProperty","displayName","defaultProps","radioGroupDefaultProps","forwardRefWithStatics","Check","type","Group","Button","forwardRef","radioDefaultProps"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAuBA,IAAMA,UAAA,GAAa,SAAbA,UAAA,CAAcC,KAA2B,EAAA;AAAA,EAAA,IAAA,WAAA,CAAA;AACvC,EAAA,IAAA,UAAA,GAAkBC,0BAAU,EAAA;AAA1BC,IAAAA,WAAY,cAAZA,WAAY,CAAA;AACd,EAAA,IAAEC,QAAU,GAAsEH,KAAA,CAAhFG,QAAU;IAAAC,QAAA,GAAsEJ,KAAA,CAAtEI,QAAA;IAAUC,QAAU,GAAkDL,KAAA,CAA5DK,QAAU;IAAAC,IAAA,GAAkDN,KAAA,CAAlDM,IAAA;IAAMC,OAAS,GAAmCP,KAAA,CAA5CO,OAAS;IAAA,cAAmCP,GAAAA,KAAA,CAAnCQ,OAAA;AAAAA,IAAAA,O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A,CAAAgB,uBAAA,EAAA,aAAA,CAAA;AAAMP,IAAAA,GAAA,EAAAA,GAAA;AAAUQ,IAAAA,IAAK,EAAA,OAAA;AAAA,GAAA,EAAYjE,KAAA,CAAO,CAAA,CAAA;AAAA,CAC5F,EAAA;AACEkE,EAAAA,KAAO,EAAAnE,UAAA;AACPoE,EAAAA,MAAQ,eAAAC,gBAAA,CAAW,UAACpE,KAAA,EAAmByD;0BACpCV,yBAAA,CAAAC,aAAA,CAAAgB,uBAAA,EAAA,aAAA,CAAA;AAAMP,MAAAA,GAAA,EAAAA,GAAA;AAAUQ,MAAAA,IAAK,EAAA,cAAA;AAAA,KAAA,EAAmBjE,KAAA,CAC1C,CAAA,CAAA;AAAA,GAAA,CAAA;AACH,CAAA,EACF;AAEAoD,KAAA,CAAMQ,WAAc,GAAA,OAAA,CAAA;AACpBR,KAAA,CAAMS,YAAe,GAAAQ,oCAAA;;;;;"}
@@ -7,7 +7,7 @@
7
7
  'use strict';
8
8
 
9
9
  var _baseGetTag = require('./dep-9e7c0aa6.js');
10
- var keysIn = require('./dep-1f778b9f.js');
10
+ var keysIn = require('./dep-cf38af2d.js');
11
11
  var isObjectLike$1 = require('./dep-f313a74c.js');
12
12
 
13
13
  var baseGetTag = _baseGetTag._baseGetTag,
@@ -72,4 +72,4 @@ function isPlainObject(value) {
72
72
  var isPlainObject_1 = isPlainObject;
73
73
 
74
74
  exports.isPlainObject_1 = isPlainObject_1;
75
- //# sourceMappingURL=dep-00e97810.js.map
75
+ //# sourceMappingURL=dep-39de3d87.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"dep-00e97810.js","sources":["../../node_modules/lodash/isPlainObject.js"],"sourcesContent":["var baseGetTag = require('./_baseGetTag'),\n getPrototype = require('./_getPrototype'),\n isObjectLike = require('./isObjectLike');\n\n/** `Object#toString` result references. */\nvar objectTag = '[object Object]';\n\n/** Used for built-in method references. */\nvar funcProto = Function.prototype,\n objectProto = Object.prototype;\n\n/** Used to resolve the decompiled source of functions. */\nvar funcToString = funcProto.toString;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/** Used to infer the `Object` constructor. */\nvar objectCtorString = funcToString.call(Object);\n\n/**\n * Checks if `value` is a plain object, that is, an object created by the\n * `Object` constructor or one with a `[[Prototype]]` of `null`.\n *\n * @static\n * @memberOf _\n * @since 0.8.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a plain object, else `false`.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * }\n *\n * _.isPlainObject(new Foo);\n * // => false\n *\n * _.isPlainObject([1, 2, 3]);\n * // => false\n *\n * _.isPlainObject({ 'x': 0, 'y': 0 });\n * // => true\n *\n * _.isPlainObject(Object.create(null));\n * // => true\n */\nfunction isPlainObject(value) {\n if (!isObjectLike(value) || baseGetTag(value) != objectTag) {\n return false;\n }\n var proto = getPrototype(value);\n if (proto === null) {\n return true;\n }\n var Ctor = hasOwnProperty.call(proto, 'constructor') && proto.constructor;\n return typeof Ctor == 'function' && Ctor instanceof Ctor &&\n funcToString.call(Ctor) == objectCtorString;\n}\n\nmodule.exports = isPlainObject;\n"],"names":["baseGetTag","require$$0","getPrototype","require$$1","isObjectLike","require$$2","objectTag","funcProto","Function","prototype","objectProto","Object","funcToString","toString","hasOwnProperty","objectCtorString","call","isPlainObject","value","proto","Ctor","constructor","isPlainObject_1"],"mappings":";;;;;;;;;;;;AAAA,IAAIA,UAAU,GAAGC,uBAAwB;AACrCC,EAAAA,YAAY,GAAGC,oBAA0B;AACzCC,EAAAA,YAAY,GAAGC,6BAAyB,CAAA;;AAE5C;AACA,IAAIC,SAAS,GAAG,iBAAiB,CAAA;;AAEjC;AACA,IAAIC,SAAS,GAAGC,QAAQ,CAACC,SAAS;EAC9BC,WAAW,GAAGC,MAAM,CAACF,SAAS,CAAA;;AAElC;AACA,IAAIG,YAAY,GAAGL,SAAS,CAACM,QAAQ,CAAA;;AAErC;AACA,IAAIC,cAAc,GAAGJ,WAAW,CAACI,cAAc,CAAA;;AAE/C;AACA,IAAIC,gBAAgB,GAAGH,YAAY,CAACI,IAAI,CAACL,MAAM,CAAC,CAAA;;AAEhD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAASM,aAAaA,CAACC,KAAK,EAAE;AAC5B,EAAA,IAAI,CAACd,YAAY,CAACc,KAAK,CAAC,IAAIlB,UAAU,CAACkB,KAAK,CAAC,IAAIZ,SAAS,EAAE;AAC1D,IAAA,OAAO,KAAK,CAAA;AACb,GAAA;AACD,EAAA,IAAIa,KAAK,GAAGjB,YAAY,CAACgB,KAAK,CAAC,CAAA;EAC/B,IAAIC,KAAK,KAAK,IAAI,EAAE;AAClB,IAAA,OAAO,IAAI,CAAA;AACZ,GAAA;AACD,EAAA,IAAIC,IAAI,GAAGN,cAAc,CAACE,IAAI,CAACG,KAAK,EAAE,aAAa,CAAC,IAAIA,KAAK,CAACE,WAAW,CAAA;AACzE,EAAA,OAAO,OAAOD,IAAI,IAAI,UAAU,IAAIA,IAAI,YAAYA,IAAI,IACtDR,YAAY,CAACI,IAAI,CAACI,IAAI,CAAC,IAAIL,gBAAgB,CAAA;AAC/C,CAAA;AAEAO,IAAAA,eAAc,GAAGL;;;;"}
1
+ {"version":3,"file":"dep-39de3d87.js","sources":["../../node_modules/lodash/isPlainObject.js"],"sourcesContent":["var baseGetTag = require('./_baseGetTag'),\n getPrototype = require('./_getPrototype'),\n isObjectLike = require('./isObjectLike');\n\n/** `Object#toString` result references. */\nvar objectTag = '[object Object]';\n\n/** Used for built-in method references. */\nvar funcProto = Function.prototype,\n objectProto = Object.prototype;\n\n/** Used to resolve the decompiled source of functions. */\nvar funcToString = funcProto.toString;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/** Used to infer the `Object` constructor. */\nvar objectCtorString = funcToString.call(Object);\n\n/**\n * Checks if `value` is a plain object, that is, an object created by the\n * `Object` constructor or one with a `[[Prototype]]` of `null`.\n *\n * @static\n * @memberOf _\n * @since 0.8.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a plain object, else `false`.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * }\n *\n * _.isPlainObject(new Foo);\n * // => false\n *\n * _.isPlainObject([1, 2, 3]);\n * // => false\n *\n * _.isPlainObject({ 'x': 0, 'y': 0 });\n * // => true\n *\n * _.isPlainObject(Object.create(null));\n * // => true\n */\nfunction isPlainObject(value) {\n if (!isObjectLike(value) || baseGetTag(value) != objectTag) {\n return false;\n }\n var proto = getPrototype(value);\n if (proto === null) {\n return true;\n }\n var Ctor = hasOwnProperty.call(proto, 'constructor') && proto.constructor;\n return typeof Ctor == 'function' && Ctor instanceof Ctor &&\n funcToString.call(Ctor) == objectCtorString;\n}\n\nmodule.exports = isPlainObject;\n"],"names":["baseGetTag","require$$0","getPrototype","require$$1","isObjectLike","require$$2","objectTag","funcProto","Function","prototype","objectProto","Object","funcToString","toString","hasOwnProperty","objectCtorString","call","isPlainObject","value","proto","Ctor","constructor","isPlainObject_1"],"mappings":";;;;;;;;;;;;AAAA,IAAIA,UAAU,GAAGC,uBAAwB;AACrCC,EAAAA,YAAY,GAAGC,oBAA0B;AACzCC,EAAAA,YAAY,GAAGC,6BAAyB,CAAA;;AAE5C;AACA,IAAIC,SAAS,GAAG,iBAAiB,CAAA;;AAEjC;AACA,IAAIC,SAAS,GAAGC,QAAQ,CAACC,SAAS;EAC9BC,WAAW,GAAGC,MAAM,CAACF,SAAS,CAAA;;AAElC;AACA,IAAIG,YAAY,GAAGL,SAAS,CAACM,QAAQ,CAAA;;AAErC;AACA,IAAIC,cAAc,GAAGJ,WAAW,CAACI,cAAc,CAAA;;AAE/C;AACA,IAAIC,gBAAgB,GAAGH,YAAY,CAACI,IAAI,CAACL,MAAM,CAAC,CAAA;;AAEhD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAASM,aAAaA,CAACC,KAAK,EAAE;AAC5B,EAAA,IAAI,CAACd,YAAY,CAACc,KAAK,CAAC,IAAIlB,UAAU,CAACkB,KAAK,CAAC,IAAIZ,SAAS,EAAE;AAC1D,IAAA,OAAO,KAAK,CAAA;AACb,GAAA;AACD,EAAA,IAAIa,KAAK,GAAGjB,YAAY,CAACgB,KAAK,CAAC,CAAA;EAC/B,IAAIC,KAAK,KAAK,IAAI,EAAE;AAClB,IAAA,OAAO,IAAI,CAAA;AACZ,GAAA;AACD,EAAA,IAAIC,IAAI,GAAGN,cAAc,CAACE,IAAI,CAACG,KAAK,EAAE,aAAa,CAAC,IAAIA,KAAK,CAACE,WAAW,CAAA;AACzE,EAAA,OAAO,OAAOD,IAAI,IAAI,UAAU,IAAIA,IAAI,YAAYA,IAAI,IACtDR,YAAY,CAACI,IAAI,CAACI,IAAI,CAAC,IAAIL,gBAAgB,CAAA;AAC/C,CAAA;AAEAO,IAAAA,eAAc,GAAGL;;;;"}
@@ -0,0 +1,211 @@
1
+ /**
2
+ * tdesign v1.0.4
3
+ * (c) 2023 tdesign
4
+ * @license MIT
5
+ */
6
+
7
+ 'use strict';
8
+
9
+ var isObject$1 = require('./dep-226175a4.js');
10
+ var _baseGetTag = require('./dep-4e0e0ffa.js');
11
+ var toNumber$1 = require('./dep-1663b0df.js');
12
+
13
+ var root = _baseGetTag._root;
14
+
15
+ /**
16
+ * Gets the timestamp of the number of milliseconds that have elapsed since
17
+ * the Unix epoch (1 January 1970 00:00:00 UTC).
18
+ *
19
+ * @static
20
+ * @memberOf _
21
+ * @since 2.4.0
22
+ * @category Date
23
+ * @returns {number} Returns the timestamp.
24
+ * @example
25
+ *
26
+ * _.defer(function(stamp) {
27
+ * console.log(_.now() - stamp);
28
+ * }, _.now());
29
+ * // => Logs the number of milliseconds it took for the deferred invocation.
30
+ */
31
+ var now$1 = function now() {
32
+ return root.Date.now();
33
+ };
34
+ var now_1 = now$1;
35
+
36
+ var isObject = isObject$1.isObject_1,
37
+ now = now_1,
38
+ toNumber = toNumber$1.toNumber_1;
39
+
40
+ /** Error message constants. */
41
+ var FUNC_ERROR_TEXT = 'Expected a function';
42
+
43
+ /* Built-in method references for those with the same name as other `lodash` methods. */
44
+ var nativeMax = Math.max,
45
+ nativeMin = Math.min;
46
+
47
+ /**
48
+ * Creates a debounced function that delays invoking `func` until after `wait`
49
+ * milliseconds have elapsed since the last time the debounced function was
50
+ * invoked. The debounced function comes with a `cancel` method to cancel
51
+ * delayed `func` invocations and a `flush` method to immediately invoke them.
52
+ * Provide `options` to indicate whether `func` should be invoked on the
53
+ * leading and/or trailing edge of the `wait` timeout. The `func` is invoked
54
+ * with the last arguments provided to the debounced function. Subsequent
55
+ * calls to the debounced function return the result of the last `func`
56
+ * invocation.
57
+ *
58
+ * **Note:** If `leading` and `trailing` options are `true`, `func` is
59
+ * invoked on the trailing edge of the timeout only if the debounced function
60
+ * is invoked more than once during the `wait` timeout.
61
+ *
62
+ * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred
63
+ * until to the next tick, similar to `setTimeout` with a timeout of `0`.
64
+ *
65
+ * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)
66
+ * for details over the differences between `_.debounce` and `_.throttle`.
67
+ *
68
+ * @static
69
+ * @memberOf _
70
+ * @since 0.1.0
71
+ * @category Function
72
+ * @param {Function} func The function to debounce.
73
+ * @param {number} [wait=0] The number of milliseconds to delay.
74
+ * @param {Object} [options={}] The options object.
75
+ * @param {boolean} [options.leading=false]
76
+ * Specify invoking on the leading edge of the timeout.
77
+ * @param {number} [options.maxWait]
78
+ * The maximum time `func` is allowed to be delayed before it's invoked.
79
+ * @param {boolean} [options.trailing=true]
80
+ * Specify invoking on the trailing edge of the timeout.
81
+ * @returns {Function} Returns the new debounced function.
82
+ * @example
83
+ *
84
+ * // Avoid costly calculations while the window size is in flux.
85
+ * jQuery(window).on('resize', _.debounce(calculateLayout, 150));
86
+ *
87
+ * // Invoke `sendMail` when clicked, debouncing subsequent calls.
88
+ * jQuery(element).on('click', _.debounce(sendMail, 300, {
89
+ * 'leading': true,
90
+ * 'trailing': false
91
+ * }));
92
+ *
93
+ * // Ensure `batchLog` is invoked once after 1 second of debounced calls.
94
+ * var debounced = _.debounce(batchLog, 250, { 'maxWait': 1000 });
95
+ * var source = new EventSource('/stream');
96
+ * jQuery(source).on('message', debounced);
97
+ *
98
+ * // Cancel the trailing debounced invocation.
99
+ * jQuery(window).on('popstate', debounced.cancel);
100
+ */
101
+ function debounce(func, wait, options) {
102
+ var lastArgs,
103
+ lastThis,
104
+ maxWait,
105
+ result,
106
+ timerId,
107
+ lastCallTime,
108
+ lastInvokeTime = 0,
109
+ leading = false,
110
+ maxing = false,
111
+ trailing = true;
112
+ if (typeof func != 'function') {
113
+ throw new TypeError(FUNC_ERROR_TEXT);
114
+ }
115
+ wait = toNumber(wait) || 0;
116
+ if (isObject(options)) {
117
+ leading = !!options.leading;
118
+ maxing = 'maxWait' in options;
119
+ maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait;
120
+ trailing = 'trailing' in options ? !!options.trailing : trailing;
121
+ }
122
+ function invokeFunc(time) {
123
+ var args = lastArgs,
124
+ thisArg = lastThis;
125
+ lastArgs = lastThis = undefined;
126
+ lastInvokeTime = time;
127
+ result = func.apply(thisArg, args);
128
+ return result;
129
+ }
130
+ function leadingEdge(time) {
131
+ // Reset any `maxWait` timer.
132
+ lastInvokeTime = time;
133
+ // Start the timer for the trailing edge.
134
+ timerId = setTimeout(timerExpired, wait);
135
+ // Invoke the leading edge.
136
+ return leading ? invokeFunc(time) : result;
137
+ }
138
+ function remainingWait(time) {
139
+ var timeSinceLastCall = time - lastCallTime,
140
+ timeSinceLastInvoke = time - lastInvokeTime,
141
+ timeWaiting = wait - timeSinceLastCall;
142
+ return maxing ? nativeMin(timeWaiting, maxWait - timeSinceLastInvoke) : timeWaiting;
143
+ }
144
+ function shouldInvoke(time) {
145
+ var timeSinceLastCall = time - lastCallTime,
146
+ timeSinceLastInvoke = time - lastInvokeTime;
147
+
148
+ // Either this is the first call, activity has stopped and we're at the
149
+ // trailing edge, the system time has gone backwards and we're treating
150
+ // it as the trailing edge, or we've hit the `maxWait` limit.
151
+ return lastCallTime === undefined || timeSinceLastCall >= wait || timeSinceLastCall < 0 || maxing && timeSinceLastInvoke >= maxWait;
152
+ }
153
+ function timerExpired() {
154
+ var time = now();
155
+ if (shouldInvoke(time)) {
156
+ return trailingEdge(time);
157
+ }
158
+ // Restart the timer.
159
+ timerId = setTimeout(timerExpired, remainingWait(time));
160
+ }
161
+ function trailingEdge(time) {
162
+ timerId = undefined;
163
+
164
+ // Only invoke if we have `lastArgs` which means `func` has been
165
+ // debounced at least once.
166
+ if (trailing && lastArgs) {
167
+ return invokeFunc(time);
168
+ }
169
+ lastArgs = lastThis = undefined;
170
+ return result;
171
+ }
172
+ function cancel() {
173
+ if (timerId !== undefined) {
174
+ clearTimeout(timerId);
175
+ }
176
+ lastInvokeTime = 0;
177
+ lastArgs = lastCallTime = lastThis = timerId = undefined;
178
+ }
179
+ function flush() {
180
+ return timerId === undefined ? result : trailingEdge(now());
181
+ }
182
+ function debounced() {
183
+ var time = now(),
184
+ isInvoking = shouldInvoke(time);
185
+ lastArgs = arguments;
186
+ lastThis = this;
187
+ lastCallTime = time;
188
+ if (isInvoking) {
189
+ if (timerId === undefined) {
190
+ return leadingEdge(lastCallTime);
191
+ }
192
+ if (maxing) {
193
+ // Handle invocations in a tight loop.
194
+ clearTimeout(timerId);
195
+ timerId = setTimeout(timerExpired, wait);
196
+ return invokeFunc(lastCallTime);
197
+ }
198
+ }
199
+ if (timerId === undefined) {
200
+ timerId = setTimeout(timerExpired, wait);
201
+ }
202
+ return result;
203
+ }
204
+ debounced.cancel = cancel;
205
+ debounced.flush = flush;
206
+ return debounced;
207
+ }
208
+ var debounce_1 = debounce;
209
+
210
+ exports.debounce_1 = debounce_1;
211
+ //# sourceMappingURL=dep-3d9b6af3.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dep-3d9b6af3.js","sources":["../../node_modules/lodash/now.js","../../node_modules/lodash/debounce.js"],"sourcesContent":["var root = require('./_root');\n\n/**\n * Gets the timestamp of the number of milliseconds that have elapsed since\n * the Unix epoch (1 January 1970 00:00:00 UTC).\n *\n * @static\n * @memberOf _\n * @since 2.4.0\n * @category Date\n * @returns {number} Returns the timestamp.\n * @example\n *\n * _.defer(function(stamp) {\n * console.log(_.now() - stamp);\n * }, _.now());\n * // => Logs the number of milliseconds it took for the deferred invocation.\n */\nvar now = function() {\n return root.Date.now();\n};\n\nmodule.exports = now;\n","var isObject = require('./isObject'),\n now = require('./now'),\n toNumber = require('./toNumber');\n\n/** Error message constants. */\nvar FUNC_ERROR_TEXT = 'Expected a function';\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeMax = Math.max,\n nativeMin = Math.min;\n\n/**\n * Creates a debounced function that delays invoking `func` until after `wait`\n * milliseconds have elapsed since the last time the debounced function was\n * invoked. The debounced function comes with a `cancel` method to cancel\n * delayed `func` invocations and a `flush` method to immediately invoke them.\n * Provide `options` to indicate whether `func` should be invoked on the\n * leading and/or trailing edge of the `wait` timeout. The `func` is invoked\n * with the last arguments provided to the debounced function. Subsequent\n * calls to the debounced function return the result of the last `func`\n * invocation.\n *\n * **Note:** If `leading` and `trailing` options are `true`, `func` is\n * invoked on the trailing edge of the timeout only if the debounced function\n * is invoked more than once during the `wait` timeout.\n *\n * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred\n * until to the next tick, similar to `setTimeout` with a timeout of `0`.\n *\n * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)\n * for details over the differences between `_.debounce` and `_.throttle`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to debounce.\n * @param {number} [wait=0] The number of milliseconds to delay.\n * @param {Object} [options={}] The options object.\n * @param {boolean} [options.leading=false]\n * Specify invoking on the leading edge of the timeout.\n * @param {number} [options.maxWait]\n * The maximum time `func` is allowed to be delayed before it's invoked.\n * @param {boolean} [options.trailing=true]\n * Specify invoking on the trailing edge of the timeout.\n * @returns {Function} Returns the new debounced function.\n * @example\n *\n * // Avoid costly calculations while the window size is in flux.\n * jQuery(window).on('resize', _.debounce(calculateLayout, 150));\n *\n * // Invoke `sendMail` when clicked, debouncing subsequent calls.\n * jQuery(element).on('click', _.debounce(sendMail, 300, {\n * 'leading': true,\n * 'trailing': false\n * }));\n *\n * // Ensure `batchLog` is invoked once after 1 second of debounced calls.\n * var debounced = _.debounce(batchLog, 250, { 'maxWait': 1000 });\n * var source = new EventSource('/stream');\n * jQuery(source).on('message', debounced);\n *\n * // Cancel the trailing debounced invocation.\n * jQuery(window).on('popstate', debounced.cancel);\n */\nfunction debounce(func, wait, options) {\n var lastArgs,\n lastThis,\n maxWait,\n result,\n timerId,\n lastCallTime,\n lastInvokeTime = 0,\n leading = false,\n maxing = false,\n trailing = true;\n\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n wait = toNumber(wait) || 0;\n if (isObject(options)) {\n leading = !!options.leading;\n maxing = 'maxWait' in options;\n maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait;\n trailing = 'trailing' in options ? !!options.trailing : trailing;\n }\n\n function invokeFunc(time) {\n var args = lastArgs,\n thisArg = lastThis;\n\n lastArgs = lastThis = undefined;\n lastInvokeTime = time;\n result = func.apply(thisArg, args);\n return result;\n }\n\n function leadingEdge(time) {\n // Reset any `maxWait` timer.\n lastInvokeTime = time;\n // Start the timer for the trailing edge.\n timerId = setTimeout(timerExpired, wait);\n // Invoke the leading edge.\n return leading ? invokeFunc(time) : result;\n }\n\n function remainingWait(time) {\n var timeSinceLastCall = time - lastCallTime,\n timeSinceLastInvoke = time - lastInvokeTime,\n timeWaiting = wait - timeSinceLastCall;\n\n return maxing\n ? nativeMin(timeWaiting, maxWait - timeSinceLastInvoke)\n : timeWaiting;\n }\n\n function shouldInvoke(time) {\n var timeSinceLastCall = time - lastCallTime,\n timeSinceLastInvoke = time - lastInvokeTime;\n\n // Either this is the first call, activity has stopped and we're at the\n // trailing edge, the system time has gone backwards and we're treating\n // it as the trailing edge, or we've hit the `maxWait` limit.\n return (lastCallTime === undefined || (timeSinceLastCall >= wait) ||\n (timeSinceLastCall < 0) || (maxing && timeSinceLastInvoke >= maxWait));\n }\n\n function timerExpired() {\n var time = now();\n if (shouldInvoke(time)) {\n return trailingEdge(time);\n }\n // Restart the timer.\n timerId = setTimeout(timerExpired, remainingWait(time));\n }\n\n function trailingEdge(time) {\n timerId = undefined;\n\n // Only invoke if we have `lastArgs` which means `func` has been\n // debounced at least once.\n if (trailing && lastArgs) {\n return invokeFunc(time);\n }\n lastArgs = lastThis = undefined;\n return result;\n }\n\n function cancel() {\n if (timerId !== undefined) {\n clearTimeout(timerId);\n }\n lastInvokeTime = 0;\n lastArgs = lastCallTime = lastThis = timerId = undefined;\n }\n\n function flush() {\n return timerId === undefined ? result : trailingEdge(now());\n }\n\n function debounced() {\n var time = now(),\n isInvoking = shouldInvoke(time);\n\n lastArgs = arguments;\n lastThis = this;\n lastCallTime = time;\n\n if (isInvoking) {\n if (timerId === undefined) {\n return leadingEdge(lastCallTime);\n }\n if (maxing) {\n // Handle invocations in a tight loop.\n clearTimeout(timerId);\n timerId = setTimeout(timerExpired, wait);\n return invokeFunc(lastCallTime);\n }\n }\n if (timerId === undefined) {\n timerId = setTimeout(timerExpired, wait);\n }\n return result;\n }\n debounced.cancel = cancel;\n debounced.flush = flush;\n return debounced;\n}\n\nmodule.exports = debounce;\n"],"names":["root","require$$0","now","Date","now_1","isObject","require$$1","toNumber","require$$2","FUNC_ERROR_TEXT","nativeMax","Math","max","nativeMin","min","debounce","func","wait","options","lastArgs","lastThis","maxWait","result","timerId","lastCallTime","lastInvokeTime","leading","maxing","trailing","TypeError","invokeFunc","time","args","thisArg","undefined","apply","leadingEdge","setTimeout","timerExpired","remainingWait","timeSinceLastCall","timeSinceLastInvoke","timeWaiting","shouldInvoke","trailingEdge","cancel","clearTimeout","flush","debounced","isInvoking","arguments","debounce_1"],"mappings":";;;;;;;;;;;;AAAA,IAAIA,IAAI,GAAGC,iBAAkB,CAAA;;AAE7B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAIC,KAAG,GAAG,SAANA,GAAG,GAAc;AACnB,EAAA,OAAOF,IAAI,CAACG,IAAI,CAACD,GAAG,EAAE,CAAA;AACxB,CAAC,CAAA;AAED,IAAAE,KAAc,GAAGF,KAAG;;ACtBpB,IAAIG,QAAQ,GAAGJ,qBAAqB;AAChCC,EAAAA,GAAG,GAAGI,KAAgB;AACtBC,EAAAA,QAAQ,GAAGC,qBAAqB,CAAA;;AAEpC;AACA,IAAIC,eAAe,GAAG,qBAAqB,CAAA;;AAE3C;AACA,IAAIC,SAAS,GAAGC,IAAI,CAACC,GAAG;EACpBC,SAAS,GAAGF,IAAI,CAACG,GAAG,CAAA;;AAExB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAASC,QAAQ,CAACC,IAAI,EAAEC,IAAI,EAAEC,OAAO,EAAE;AACrC,EAAA,IAAIC,QAAQ;IACRC,QAAQ;IACRC,OAAO;IACPC,MAAM;IACNC,OAAO;IACPC,YAAY;AACZC,IAAAA,cAAc,GAAG,CAA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AACvB,EAAA,OAAOC,SAAS,CAAA;AAClB,CAAA;AAEAG,IAAAA,UAAc,GAAGpC;;;;"}
@@ -0,0 +1,179 @@
1
+ /**
2
+ * tdesign v1.0.4
3
+ * (c) 2023 tdesign
4
+ * @license MIT
5
+ */
6
+
7
+ 'use strict';
8
+
9
+ var defineProperty = require('./dep-b3bd96b5.js');
10
+ var slicedToArray = require('./dep-2e54fd55.js');
11
+ var objectWithoutProperties = require('./dep-6eb660e1.js');
12
+ var React = require('react');
13
+ var classNames = require('classnames');
14
+ var hooks_useConfig = require('../hooks/useConfig.js');
15
+ var _util_forwardRefWithStatics = require('../_util/forwardRefWithStatics.js');
16
+ var _util_useCommonClassName = require('../_util/useCommonClassName.js');
17
+ var _util_composeRefs = require('../_util/composeRefs.js');
18
+ var avatar_AvatarContext = require('../avatar/AvatarContext.js');
19
+ var avatar_defaultProps = require('../avatar/defaultProps.js');
20
+ var hooks_useResizeObserver = require('../hooks/useResizeObserver.js');
21
+ var image_index = require('../image/index.js');
22
+ var _util_parseTNode = require('../_util/parseTNode.js');
23
+
24
+ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
25
+
26
+ var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
27
+ var classNames__default = /*#__PURE__*/_interopDefaultLegacy(classNames);
28
+
29
+ var _excluded$1 = ["className", "cascading", "collapseAvatar", "max", "size", "children"];
30
+ function ownKeys$1(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
31
+ function _objectSpread$1(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$1(Object(source), !0).forEach(function (key) { defineProperty._defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$1(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
32
+ var AvatarGroup = function AvatarGroup(props) {
33
+ var _classNames;
34
+ var _useConfig = hooks_useConfig["default"](),
35
+ classPrefix = _useConfig.classPrefix;
36
+ var preClass = "".concat(classPrefix, "-avatar");
37
+ var className = props.className,
38
+ cascading = props.cascading,
39
+ collapseAvatar = props.collapseAvatar,
40
+ max = props.max,
41
+ size = props.size,
42
+ children = props.children,
43
+ avatarGroupProps = objectWithoutProperties._objectWithoutProperties(props, _excluded$1);
44
+ var childrenList = React__default["default"].Children.toArray(children);
45
+ var allChildrenList;
46
+ if (childrenList.length > 0) {
47
+ allChildrenList = childrenList.map(function (child, index) {
48
+ return /*#__PURE__*/React__default["default"].cloneElement(child, _objectSpread$1({
49
+ key: "avatar-group-item-".concat(index)
50
+ }, child.props));
51
+ });
52
+ }
53
+ var groupClass = classNames__default["default"]("".concat(preClass, "-group"), className, (_classNames = {}, defineProperty._defineProperty(_classNames, "".concat(preClass, "--offset-right"), cascading === "right-up"), defineProperty._defineProperty(_classNames, "".concat(preClass, "--offset-left"), cascading === "left-up"), _classNames));
54
+ var childrenCount = childrenList.length;
55
+ if (max && childrenCount > max) {
56
+ var showList = allChildrenList.slice(0, max);
57
+ var ellipsisAvatar = /* @__PURE__ */React__default["default"].createElement(Avatar, {
58
+ className: "".concat(preClass, "__collapse")
59
+ }, _util_parseTNode["default"](collapseAvatar) || "+".concat(childrenCount - max));
60
+ showList.push( /* @__PURE__ */React__default["default"].createElement(React.Fragment, {
61
+ key: "t-avatar__collapse"
62
+ }, ellipsisAvatar));
63
+ return /* @__PURE__ */React__default["default"].createElement(avatar_AvatarContext.AvatarContextProvider, {
64
+ size: size
65
+ }, /* @__PURE__ */React__default["default"].createElement("div", {
66
+ className: groupClass
67
+ }, showList));
68
+ }
69
+ return /* @__PURE__ */React__default["default"].createElement(avatar_AvatarContext.AvatarContextProvider, {
70
+ size: size
71
+ }, /* @__PURE__ */React__default["default"].createElement("div", _objectSpread$1({
72
+ className: groupClass
73
+ }, avatarGroupProps), allChildrenList));
74
+ };
75
+ AvatarGroup.displayName = "AvatarGroup";
76
+ AvatarGroup.defaultProps = avatar_defaultProps.avatarGroupDefaultProps;
77
+
78
+ var _excluded = ["alt", "hideOnLoadFailed", "icon", "image", "shape", "size", "onError", "children", "content", "style", "className"];
79
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
80
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { defineProperty._defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
81
+ var Avatar = _util_forwardRefWithStatics["default"](function (props, ref) {
82
+ var _classNames;
83
+ var alt = props.alt,
84
+ hideOnLoadFailed = props.hideOnLoadFailed,
85
+ icon = props.icon,
86
+ image = props.image,
87
+ shape = props.shape,
88
+ avatarSize = props.size,
89
+ onError = props.onError,
90
+ children = props.children,
91
+ content = props.content,
92
+ style = props.style,
93
+ className = props.className,
94
+ avatarProps = objectWithoutProperties._objectWithoutProperties(props, _excluded);
95
+ var groupSize = React.useContext(avatar_AvatarContext["default"]);
96
+ var _useConfig = hooks_useConfig["default"](),
97
+ classPrefix = _useConfig.classPrefix;
98
+ var _useState = React.useState(1),
99
+ _useState2 = slicedToArray._slicedToArray(_useState, 2),
100
+ scale = _useState2[0],
101
+ setScale = _useState2[1];
102
+ var _useState3 = React.useState(true),
103
+ _useState4 = slicedToArray._slicedToArray(_useState3, 2),
104
+ isImgExist = _useState4[0],
105
+ setIsImgExist = _useState4[1];
106
+ var avatarRef = React.useRef(null);
107
+ var avatarChildrenRef = React.useRef(null);
108
+ var size = avatarSize === void 0 ? groupSize : avatarSize;
109
+ var gap = 4;
110
+ var handleScale = function handleScale() {
111
+ if (!avatarChildrenRef.current || !avatarRef.current) {
112
+ return;
113
+ }
114
+ var childrenWidth = avatarChildrenRef.current.offsetWidth;
115
+ var avatarWidth = avatarRef.current.offsetWidth;
116
+ if (childrenWidth !== 0 && avatarWidth !== 0) {
117
+ if (gap * 2 < avatarWidth) {
118
+ setScale(avatarWidth - gap * 2 < childrenWidth ? (avatarWidth - gap * 2) / childrenWidth : 1);
119
+ }
120
+ }
121
+ };
122
+ hooks_useResizeObserver["default"](avatarChildrenRef.current, handleScale);
123
+ var handleImgLoadError = function handleImgLoadError(ctx) {
124
+ onError === null || onError === void 0 ? void 0 : onError(ctx);
125
+ !hideOnLoadFailed && setIsImgExist(false);
126
+ };
127
+ React.useEffect(function () {
128
+ setIsImgExist(true);
129
+ setScale(1);
130
+ }, [props.image]);
131
+ React.useEffect(function () {
132
+ handleScale();
133
+ }, []);
134
+ var _useCommonClassName = _util_useCommonClassName["default"](),
135
+ SIZE = _useCommonClassName.SIZE;
136
+ var numSizeStyle = size && !SIZE[size] ? {
137
+ width: size,
138
+ height: size,
139
+ fontSize: "".concat(Number.parseInt(size, 10) / 2, "px")
140
+ } : {};
141
+ var imageStyle = size && !SIZE[size] ? {
142
+ width: size,
143
+ height: size
144
+ } : {};
145
+ var preClass = "".concat(classPrefix, "-avatar");
146
+ var avatarClass = classNames__default["default"](preClass, className, (_classNames = {}, defineProperty._defineProperty(_classNames, SIZE[size], !!SIZE[size]), defineProperty._defineProperty(_classNames, "".concat(preClass, "--").concat(shape), !!shape), defineProperty._defineProperty(_classNames, "".concat(preClass, "__icon"), !!icon), _classNames));
147
+ var renderChildren;
148
+ if (image && isImgExist) {
149
+ renderChildren = /* @__PURE__ */React__default["default"].createElement(image_index.Image, _objectSpread({
150
+ src: image,
151
+ alt: alt,
152
+ style: imageStyle,
153
+ onError: handleImgLoadError
154
+ }, props.imageProps));
155
+ } else if (icon) {
156
+ renderChildren = icon;
157
+ } else {
158
+ var childrenStyle = {
159
+ transform: "scale(".concat(scale, ")")
160
+ };
161
+ renderChildren = /* @__PURE__ */React__default["default"].createElement("span", {
162
+ ref: _util_composeRefs["default"](ref, avatarChildrenRef),
163
+ style: childrenStyle
164
+ }, children || content);
165
+ }
166
+ return /* @__PURE__ */React__default["default"].createElement("div", _objectSpread({
167
+ ref: _util_composeRefs["default"](ref, avatarRef),
168
+ className: avatarClass,
169
+ style: _objectSpread(_objectSpread({}, numSizeStyle), style)
170
+ }, avatarProps), renderChildren);
171
+ }, {
172
+ Group: AvatarGroup
173
+ });
174
+ Avatar.displayName = "Avatar";
175
+ Avatar.defaultProps = avatar_defaultProps.avatarDefaultProps;
176
+
177
+ exports.Avatar = Avatar;
178
+ exports.AvatarGroup = AvatarGroup;
179
+ //# sourceMappingURL=dep-3fd6430b.js.map