@gobolt/genesis 0.3.9 → 0.3.10

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 (479) hide show
  1. package/dist/bundle.css +41 -41
  2. package/dist/components/Breadcrumb/Breadcrumb.types.d.ts +2 -0
  3. package/dist/components/Select/SelectTrigger.cjs +1 -2
  4. package/dist/components/Select/SelectTrigger.js +1 -2
  5. package/dist/components/Table/TableControls/PaginationNumber.cjs +1 -3
  6. package/dist/components/Table/TableControls/PaginationNumber.js +1 -3
  7. package/dist/components/Table/TableControls/PrimaryTableControlsRow.cjs +2 -2
  8. package/dist/components/Table/TableControls/PrimaryTableControlsRow.js +2 -2
  9. package/dist/components/Table/TableWithControls/TableWithControls.cjs +2 -2
  10. package/dist/components/Table/TableWithControls/TableWithControls.d.ts +1 -1
  11. package/dist/components/Table/TableWithControls/TableWithControls.js +2 -2
  12. package/dist/components/Tabs/styles.d.ts +3 -1
  13. package/dist/components/index.d.ts +1 -1
  14. package/dist/node_modules/@ant-design/cssinjs/es/Cache.cjs +3 -2
  15. package/dist/node_modules/@ant-design/cssinjs/es/Cache.js +3 -2
  16. package/dist/node_modules/@ant-design/cssinjs/es/Keyframes.cjs +2 -2
  17. package/dist/node_modules/@ant-design/cssinjs/es/Keyframes.js +2 -2
  18. package/dist/node_modules/@ant-design/cssinjs/es/extractStyle.cjs +1 -2
  19. package/dist/node_modules/@ant-design/cssinjs/es/extractStyle.js +4 -5
  20. package/dist/node_modules/@ant-design/cssinjs/es/hooks/useCSSVarRegister.cjs +2 -1
  21. package/dist/node_modules/@ant-design/cssinjs/es/hooks/useCSSVarRegister.js +2 -1
  22. package/dist/node_modules/@ant-design/cssinjs/es/hooks/useCacheToken.cjs +4 -5
  23. package/dist/node_modules/@ant-design/cssinjs/es/hooks/useCacheToken.js +4 -5
  24. package/dist/node_modules/@ant-design/cssinjs/es/hooks/useStyleRegister.cjs +3 -3
  25. package/dist/node_modules/@ant-design/cssinjs/es/hooks/useStyleRegister.js +3 -3
  26. package/dist/node_modules/@ant-design/cssinjs/es/theme/Theme.cjs +2 -2
  27. package/dist/node_modules/@ant-design/cssinjs/es/theme/Theme.js +2 -2
  28. package/dist/node_modules/@ant-design/cssinjs/es/theme/ThemeCache.cjs +2 -2
  29. package/dist/node_modules/@ant-design/cssinjs/es/theme/ThemeCache.js +2 -2
  30. package/dist/node_modules/@ant-design/cssinjs/es/util/index.cjs +1 -2
  31. package/dist/node_modules/@ant-design/cssinjs/es/util/index.js +2 -3
  32. package/dist/node_modules/@ant-design/cssinjs-utils/es/_util/hooks/useUniqueMemo.cjs +2 -2
  33. package/dist/node_modules/@ant-design/cssinjs-utils/es/_util/hooks/useUniqueMemo.js +2 -2
  34. package/dist/node_modules/@ant-design/cssinjs-utils/es/util/calc/CSSCalculator.cjs +2 -2
  35. package/dist/node_modules/@ant-design/cssinjs-utils/es/util/calc/CSSCalculator.js +2 -2
  36. package/dist/node_modules/@ant-design/cssinjs-utils/es/util/calc/NumCalculator.cjs +2 -2
  37. package/dist/node_modules/@ant-design/cssinjs-utils/es/util/calc/NumCalculator.js +2 -2
  38. package/dist/node_modules/@babel/runtime/helpers/esm/OverloadYield.cjs +5 -0
  39. package/dist/node_modules/@babel/runtime/helpers/esm/OverloadYield.js +6 -0
  40. package/dist/node_modules/@babel/runtime/helpers/esm/regenerator.cjs +78 -0
  41. package/dist/node_modules/@babel/runtime/helpers/esm/regenerator.js +79 -0
  42. package/dist/node_modules/@babel/runtime/helpers/esm/regeneratorAsync.cjs +9 -0
  43. package/dist/node_modules/@babel/runtime/helpers/esm/regeneratorAsync.js +10 -0
  44. package/dist/node_modules/@babel/runtime/helpers/esm/regeneratorAsyncGen.cjs +7 -0
  45. package/dist/node_modules/@babel/runtime/helpers/esm/regeneratorAsyncGen.js +8 -0
  46. package/dist/node_modules/@babel/runtime/helpers/esm/regeneratorAsyncIterator.cjs +33 -0
  47. package/dist/node_modules/@babel/runtime/helpers/esm/regeneratorAsyncIterator.js +34 -0
  48. package/dist/node_modules/@babel/runtime/helpers/esm/regeneratorDefine.cjs +23 -0
  49. package/dist/node_modules/@babel/runtime/helpers/esm/regeneratorDefine.js +24 -0
  50. package/dist/node_modules/@babel/runtime/helpers/esm/regeneratorKeys.cjs +10 -0
  51. package/dist/node_modules/@babel/runtime/helpers/esm/regeneratorKeys.js +11 -0
  52. package/dist/node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.cjs +62 -275
  53. package/dist/node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.js +62 -275
  54. package/dist/node_modules/@babel/runtime/helpers/esm/regeneratorValues.cjs +19 -0
  55. package/dist/node_modules/@babel/runtime/helpers/esm/regeneratorValues.js +20 -0
  56. package/dist/node_modules/@rc-component/async-validator/es/index.cjs +2 -2
  57. package/dist/node_modules/@rc-component/async-validator/es/index.js +2 -2
  58. package/dist/node_modules/@rc-component/async-validator/es/rule/url.cjs +2 -2
  59. package/dist/node_modules/@rc-component/async-validator/es/rule/url.js +2 -2
  60. package/dist/node_modules/@rc-component/async-validator/es/util.cjs +2 -2
  61. package/dist/node_modules/@rc-component/async-validator/es/util.js +2 -2
  62. package/dist/node_modules/@rc-component/color-picker/es/color.cjs +2 -2
  63. package/dist/node_modules/@rc-component/color-picker/es/color.js +2 -2
  64. package/dist/node_modules/@rc-component/trigger/es/hooks/useAlign.cjs +2 -1
  65. package/dist/node_modules/@rc-component/trigger/es/hooks/useAlign.js +2 -1
  66. package/dist/node_modules/@rc-component/trigger/es/index.cjs +3 -1
  67. package/dist/node_modules/@rc-component/trigger/es/index.js +3 -1
  68. package/dist/node_modules/antd/es/_util/ActionButton.cjs +4 -4
  69. package/dist/node_modules/antd/es/_util/ActionButton.js +4 -4
  70. package/dist/node_modules/antd/es/_util/colors.cjs +1 -2
  71. package/dist/node_modules/antd/es/_util/colors.js +1 -2
  72. package/dist/node_modules/antd/es/_util/convertToTooltipProps.cjs +14 -0
  73. package/dist/node_modules/antd/es/_util/convertToTooltipProps.js +15 -0
  74. package/dist/node_modules/antd/es/_util/extendsObject.cjs +11 -13
  75. package/dist/node_modules/antd/es/_util/extendsObject.js +11 -13
  76. package/dist/node_modules/antd/es/_util/hooks/useMergeSemantic/index.cjs +80 -0
  77. package/dist/node_modules/antd/es/_util/hooks/useMergeSemantic/index.js +61 -0
  78. package/dist/node_modules/antd/es/_util/mediaQueryUtil.cjs +17 -0
  79. package/dist/node_modules/antd/es/_util/mediaQueryUtil.js +18 -0
  80. package/dist/node_modules/antd/es/_util/motion.cjs +13 -16
  81. package/dist/node_modules/antd/es/_util/motion.js +13 -16
  82. package/dist/node_modules/antd/es/_util/placements.cjs +4 -4
  83. package/dist/node_modules/antd/es/_util/placements.js +4 -4
  84. package/dist/node_modules/antd/es/_util/responsiveObserver.cjs +18 -20
  85. package/dist/node_modules/antd/es/_util/responsiveObserver.js +18 -20
  86. package/dist/node_modules/antd/es/_util/scrollTo.cjs +1 -2
  87. package/dist/node_modules/antd/es/_util/scrollTo.js +1 -2
  88. package/dist/node_modules/antd/es/_util/toList.cjs +5 -4
  89. package/dist/node_modules/antd/es/_util/toList.js +5 -4
  90. package/dist/node_modules/antd/es/_util/warning.cjs +8 -6
  91. package/dist/node_modules/antd/es/_util/warning.js +3 -2
  92. package/dist/node_modules/antd/es/_util/wave/WaveEffect.cjs +10 -13
  93. package/dist/node_modules/antd/es/_util/wave/WaveEffect.js +11 -14
  94. package/dist/node_modules/antd/es/_util/wave/style.cjs +1 -1
  95. package/dist/node_modules/antd/es/_util/wave/style.js +1 -1
  96. package/dist/node_modules/antd/es/_util/wave/util.cjs +1 -1
  97. package/dist/node_modules/antd/es/_util/wave/util.js +1 -1
  98. package/dist/node_modules/antd/es/avatar/Avatar.cjs +22 -28
  99. package/dist/node_modules/antd/es/avatar/Avatar.js +22 -28
  100. package/dist/node_modules/antd/es/avatar/AvatarGroup.cjs +2 -3
  101. package/dist/node_modules/antd/es/avatar/AvatarGroup.js +2 -3
  102. package/dist/node_modules/antd/es/avatar/style/index.cjs +14 -7
  103. package/dist/node_modules/antd/es/avatar/style/index.js +14 -7
  104. package/dist/node_modules/antd/es/breadcrumb/BreadcrumbSeparator.cjs +3 -4
  105. package/dist/node_modules/antd/es/breadcrumb/BreadcrumbSeparator.js +3 -4
  106. package/dist/node_modules/antd/es/button/DefaultLoadingIcon.cjs +4 -5
  107. package/dist/node_modules/antd/es/button/DefaultLoadingIcon.js +4 -5
  108. package/dist/node_modules/antd/es/button/button.cjs +20 -9
  109. package/dist/node_modules/antd/es/button/button.js +21 -10
  110. package/dist/node_modules/antd/es/button/style/index.cjs +15 -8
  111. package/dist/node_modules/antd/es/button/style/index.js +15 -8
  112. package/dist/node_modules/antd/es/button/style/token.cjs +1 -0
  113. package/dist/node_modules/antd/es/button/style/token.js +1 -0
  114. package/dist/node_modules/antd/es/card/Card.cjs +1 -2
  115. package/dist/node_modules/antd/es/card/Card.js +1 -2
  116. package/dist/node_modules/antd/es/card/style/index.cjs +1 -1
  117. package/dist/node_modules/antd/es/card/style/index.js +1 -1
  118. package/dist/node_modules/antd/es/checkbox/Checkbox.cjs +3 -3
  119. package/dist/node_modules/antd/es/checkbox/Checkbox.js +3 -3
  120. package/dist/node_modules/antd/es/checkbox/Group.cjs +4 -4
  121. package/dist/node_modules/antd/es/checkbox/Group.js +4 -4
  122. package/dist/node_modules/antd/es/checkbox/style/index.cjs +26 -27
  123. package/dist/node_modules/antd/es/checkbox/style/index.js +26 -27
  124. package/dist/node_modules/antd/es/color-picker/color.cjs +9 -12
  125. package/dist/node_modules/antd/es/color-picker/color.js +9 -12
  126. package/dist/node_modules/antd/es/color-picker/util.cjs +12 -0
  127. package/dist/node_modules/antd/es/color-picker/util.js +13 -0
  128. package/dist/node_modules/antd/es/config-provider/DisabledContext.cjs +4 -5
  129. package/dist/node_modules/antd/es/config-provider/DisabledContext.js +4 -5
  130. package/dist/node_modules/antd/es/config-provider/MotionWrapper.cjs +10 -3
  131. package/dist/node_modules/antd/es/config-provider/MotionWrapper.js +10 -3
  132. package/dist/node_modules/antd/es/config-provider/PropWarning.cjs +3 -4
  133. package/dist/node_modules/antd/es/config-provider/PropWarning.js +3 -4
  134. package/dist/node_modules/antd/es/config-provider/SizeContext.cjs +4 -5
  135. package/dist/node_modules/antd/es/config-provider/SizeContext.js +4 -5
  136. package/dist/node_modules/antd/es/config-provider/UnstableContext.cjs +2 -2
  137. package/dist/node_modules/antd/es/config-provider/UnstableContext.js +2 -2
  138. package/dist/node_modules/antd/es/config-provider/hooks/useSize.cjs +1 -1
  139. package/dist/node_modules/antd/es/config-provider/hooks/useSize.js +1 -1
  140. package/dist/node_modules/antd/es/config-provider/index.cjs +3 -2
  141. package/dist/node_modules/antd/es/config-provider/index.js +3 -2
  142. package/dist/node_modules/antd/es/date-picker/generatePicker/generateRangePicker.cjs +23 -9
  143. package/dist/node_modules/antd/es/date-picker/generatePicker/generateRangePicker.js +23 -9
  144. package/dist/node_modules/antd/es/date-picker/generatePicker/generateSinglePicker.cjs +22 -10
  145. package/dist/node_modules/antd/es/date-picker/generatePicker/generateSinglePicker.js +22 -10
  146. package/dist/node_modules/antd/es/date-picker/hooks/useMergedPickerSemantic.cjs +50 -0
  147. package/dist/node_modules/antd/es/date-picker/hooks/useMergedPickerSemantic.js +32 -0
  148. package/dist/node_modules/antd/es/date-picker/style/index.cjs +18 -16
  149. package/dist/node_modules/antd/es/date-picker/style/index.js +18 -16
  150. package/dist/node_modules/antd/es/date-picker/style/panel.cjs +30 -40
  151. package/dist/node_modules/antd/es/date-picker/style/panel.js +30 -40
  152. package/dist/node_modules/antd/es/dropdown/dropdown-button.cjs +10 -4
  153. package/dist/node_modules/antd/es/dropdown/dropdown-button.js +10 -4
  154. package/dist/node_modules/antd/es/dropdown/dropdown.cjs +25 -23
  155. package/dist/node_modules/antd/es/dropdown/dropdown.js +25 -23
  156. package/dist/node_modules/antd/es/dropdown/style/index.cjs +1 -1
  157. package/dist/node_modules/antd/es/dropdown/style/index.js +1 -1
  158. package/dist/node_modules/antd/es/empty/index.cjs +11 -9
  159. package/dist/node_modules/antd/es/empty/index.js +11 -9
  160. package/dist/node_modules/antd/es/empty/style/index.cjs +1 -1
  161. package/dist/node_modules/antd/es/empty/style/index.js +1 -1
  162. package/dist/node_modules/antd/es/form/ErrorList.cjs +13 -16
  163. package/dist/node_modules/antd/es/form/ErrorList.js +13 -16
  164. package/dist/node_modules/antd/es/form/Form.cjs +4 -3
  165. package/dist/node_modules/antd/es/form/Form.js +2 -1
  166. package/dist/node_modules/antd/es/form/FormItem/ItemHolder.cjs +9 -7
  167. package/dist/node_modules/antd/es/form/FormItem/ItemHolder.js +9 -7
  168. package/dist/node_modules/antd/es/form/FormItem/StatusProvider.cjs +16 -13
  169. package/dist/node_modules/antd/es/form/FormItem/StatusProvider.js +16 -13
  170. package/dist/node_modules/antd/es/form/FormItem/index.cjs +8 -12
  171. package/dist/node_modules/antd/es/form/FormItem/index.js +8 -12
  172. package/dist/node_modules/antd/es/form/FormItemLabel.cjs +22 -26
  173. package/dist/node_modules/antd/es/form/FormItemLabel.js +22 -26
  174. package/dist/node_modules/antd/es/form/context.cjs +6 -7
  175. package/dist/node_modules/antd/es/form/context.js +6 -7
  176. package/dist/node_modules/antd/es/form/hooks/useForm.cjs +4 -3
  177. package/dist/node_modules/antd/es/form/hooks/useForm.js +3 -3
  178. package/dist/node_modules/antd/es/form/hooks/useFormWarning.cjs +3 -4
  179. package/dist/node_modules/antd/es/form/hooks/useFormWarning.js +3 -4
  180. package/dist/node_modules/antd/es/form/hooks/useVariants.cjs +1 -2
  181. package/dist/node_modules/antd/es/form/hooks/useVariants.js +1 -2
  182. package/dist/node_modules/antd/es/form/index.cjs +1 -1
  183. package/dist/node_modules/antd/es/form/style/fallbackCmp.cjs +4 -5
  184. package/dist/node_modules/antd/es/form/style/fallbackCmp.js +4 -5
  185. package/dist/node_modules/antd/es/form/style/index.cjs +62 -92
  186. package/dist/node_modules/antd/es/form/style/index.js +62 -92
  187. package/dist/node_modules/antd/es/grid/hooks/useBreakpoint.cjs +1 -3
  188. package/dist/node_modules/antd/es/grid/hooks/useBreakpoint.js +1 -3
  189. package/dist/node_modules/antd/es/input/Input.cjs +3 -3
  190. package/dist/node_modules/antd/es/input/Input.js +3 -3
  191. package/dist/node_modules/antd/es/input/OTP/OTPInput.cjs +31 -13
  192. package/dist/node_modules/antd/es/input/OTP/OTPInput.js +26 -8
  193. package/dist/node_modules/antd/es/input/OTP/index.cjs +2 -1
  194. package/dist/node_modules/antd/es/input/OTP/index.js +2 -1
  195. package/dist/node_modules/antd/es/input/Password.cjs +3 -2
  196. package/dist/node_modules/antd/es/input/Password.js +3 -2
  197. package/dist/node_modules/antd/es/input/Search.cjs +18 -14
  198. package/dist/node_modules/antd/es/input/Search.js +18 -14
  199. package/dist/node_modules/antd/es/input/TextArea.cjs +42 -6
  200. package/dist/node_modules/antd/es/input/TextArea.js +42 -6
  201. package/dist/node_modules/antd/es/input/style/index.cjs +7 -20
  202. package/dist/node_modules/antd/es/input/style/index.js +7 -20
  203. package/dist/node_modules/antd/es/input/style/otp.cjs +23 -1
  204. package/dist/node_modules/antd/es/input/style/otp.js +23 -1
  205. package/dist/node_modules/antd/es/input/style/textarea.cjs +27 -5
  206. package/dist/node_modules/antd/es/input/style/textarea.js +27 -5
  207. package/dist/node_modules/antd/es/input/style/variants.cjs +25 -29
  208. package/dist/node_modules/antd/es/input/style/variants.js +25 -29
  209. package/dist/node_modules/antd/es/layout/Sider.cjs +9 -21
  210. package/dist/node_modules/antd/es/layout/Sider.js +9 -21
  211. package/dist/node_modules/antd/es/layout/style/index.cjs +1 -1
  212. package/dist/node_modules/antd/es/layout/style/index.js +1 -1
  213. package/dist/node_modules/antd/es/layout/style/sider.cjs +1 -1
  214. package/dist/node_modules/antd/es/layout/style/sider.js +1 -1
  215. package/dist/node_modules/antd/es/locale/en_US.cjs +2 -1
  216. package/dist/node_modules/antd/es/locale/en_US.js +2 -1
  217. package/dist/node_modules/antd/es/menu/MenuItem.cjs +1 -1
  218. package/dist/node_modules/antd/es/menu/MenuItem.js +1 -1
  219. package/dist/node_modules/antd/es/menu/SubMenu.cjs +1 -1
  220. package/dist/node_modules/antd/es/menu/SubMenu.js +1 -1
  221. package/dist/node_modules/antd/es/menu/menu.cjs +2 -2
  222. package/dist/node_modules/antd/es/menu/menu.js +2 -2
  223. package/dist/node_modules/antd/es/menu/style/index.cjs +1 -3
  224. package/dist/node_modules/antd/es/menu/style/index.js +1 -3
  225. package/dist/node_modules/antd/es/menu/style/rtl.cjs +21 -24
  226. package/dist/node_modules/antd/es/menu/style/rtl.js +21 -24
  227. package/dist/node_modules/antd/es/menu/style/theme.cjs +1 -1
  228. package/dist/node_modules/antd/es/menu/style/theme.js +1 -1
  229. package/dist/node_modules/antd/es/pagination/style/bordered.cjs +1 -1
  230. package/dist/node_modules/antd/es/pagination/style/bordered.js +1 -1
  231. package/dist/node_modules/antd/es/pagination/style/index.cjs +2 -11
  232. package/dist/node_modules/antd/es/pagination/style/index.js +2 -11
  233. package/dist/node_modules/antd/es/popover/PurePanel.cjs +5 -6
  234. package/dist/node_modules/antd/es/popover/PurePanel.js +5 -6
  235. package/dist/node_modules/antd/es/popover/index.cjs +2 -2
  236. package/dist/node_modules/antd/es/popover/index.js +3 -2
  237. package/dist/node_modules/antd/es/progress/Line.cjs +4 -7
  238. package/dist/node_modules/antd/es/progress/Line.js +4 -7
  239. package/dist/node_modules/antd/es/progress/utils.cjs +13 -16
  240. package/dist/node_modules/antd/es/progress/utils.js +13 -16
  241. package/dist/node_modules/antd/es/radio/group.cjs +10 -4
  242. package/dist/node_modules/antd/es/radio/group.js +8 -2
  243. package/dist/node_modules/antd/es/radio/style/index.cjs +2 -2
  244. package/dist/node_modules/antd/es/radio/style/index.js +2 -2
  245. package/dist/node_modules/antd/es/result/index.cjs +21 -24
  246. package/dist/node_modules/antd/es/result/index.js +21 -24
  247. package/dist/node_modules/antd/es/result/noFound.cjs +117 -139
  248. package/dist/node_modules/antd/es/result/noFound.js +117 -139
  249. package/dist/node_modules/antd/es/result/serverError.cjs +131 -154
  250. package/dist/node_modules/antd/es/result/serverError.js +131 -154
  251. package/dist/node_modules/antd/es/result/unauthorized.cjs +113 -125
  252. package/dist/node_modules/antd/es/result/unauthorized.js +113 -125
  253. package/dist/node_modules/antd/es/segmented/style/index.cjs +2 -2
  254. package/dist/node_modules/antd/es/segmented/style/index.js +2 -2
  255. package/dist/node_modules/antd/es/select/index.cjs +42 -15
  256. package/dist/node_modules/antd/es/select/index.js +42 -15
  257. package/dist/node_modules/antd/es/select/style/index.cjs +17 -11
  258. package/dist/node_modules/antd/es/select/style/index.js +17 -11
  259. package/dist/node_modules/antd/es/select/style/multiple.cjs +2 -1
  260. package/dist/node_modules/antd/es/select/style/multiple.js +2 -1
  261. package/dist/node_modules/antd/es/select/useIcons.cjs +18 -20
  262. package/dist/node_modules/antd/es/select/useIcons.js +18 -20
  263. package/dist/node_modules/antd/es/select/usePopupRender.cjs +14 -0
  264. package/dist/node_modules/antd/es/select/usePopupRender.js +15 -0
  265. package/dist/node_modules/antd/es/skeleton/Title.cjs +14 -17
  266. package/dist/node_modules/antd/es/skeleton/Title.js +14 -17
  267. package/dist/node_modules/antd/es/skeleton/style/index.cjs +1 -1
  268. package/dist/node_modules/antd/es/skeleton/style/index.js +1 -1
  269. package/dist/node_modules/antd/es/space/Item.cjs +7 -8
  270. package/dist/node_modules/antd/es/space/Item.js +7 -8
  271. package/dist/node_modules/antd/es/spin/Indicator/Progress.cjs +4 -6
  272. package/dist/node_modules/antd/es/spin/Indicator/Progress.js +4 -6
  273. package/dist/node_modules/antd/es/spin/Indicator/index.cjs +2 -1
  274. package/dist/node_modules/antd/es/spin/Indicator/index.js +2 -1
  275. package/dist/node_modules/antd/es/spin/style/index.cjs +1 -1
  276. package/dist/node_modules/antd/es/spin/style/index.js +1 -1
  277. package/dist/node_modules/antd/es/style/compact-item-vertical.cjs +6 -3
  278. package/dist/node_modules/antd/es/style/compact-item-vertical.js +6 -3
  279. package/dist/node_modules/antd/es/style/compact-item.cjs +10 -8
  280. package/dist/node_modules/antd/es/style/compact-item.js +10 -8
  281. package/dist/node_modules/antd/es/style/index.cjs +13 -16
  282. package/dist/node_modules/antd/es/style/index.js +13 -16
  283. package/dist/node_modules/antd/es/style/motion/motion.cjs +1 -2
  284. package/dist/node_modules/antd/es/style/motion/motion.js +1 -2
  285. package/dist/node_modules/antd/es/switch/index.cjs +3 -3
  286. package/dist/node_modules/antd/es/switch/index.js +3 -3
  287. package/dist/node_modules/antd/es/table/InternalTable.cjs +1 -2
  288. package/dist/node_modules/antd/es/table/InternalTable.js +1 -2
  289. package/dist/node_modules/antd/es/table/hooks/useFilter/FilterDropdown.cjs +51 -64
  290. package/dist/node_modules/antd/es/table/hooks/useFilter/FilterDropdown.js +53 -66
  291. package/dist/node_modules/antd/es/table/hooks/useFilter/index.cjs +20 -30
  292. package/dist/node_modules/antd/es/table/hooks/useFilter/index.js +20 -30
  293. package/dist/node_modules/antd/es/table/hooks/usePagination.js +2 -2
  294. package/dist/node_modules/antd/es/table/hooks/useSelection.cjs +29 -34
  295. package/dist/node_modules/antd/es/table/hooks/useSelection.js +29 -34
  296. package/dist/node_modules/antd/es/table/hooks/useSorter.cjs +26 -44
  297. package/dist/node_modules/antd/es/table/hooks/useSorter.js +26 -44
  298. package/dist/node_modules/antd/es/table/style/filter.cjs +2 -2
  299. package/dist/node_modules/antd/es/table/style/filter.js +2 -2
  300. package/dist/node_modules/antd/es/table/style/index.cjs +3 -1
  301. package/dist/node_modules/antd/es/table/style/index.js +3 -1
  302. package/dist/node_modules/antd/es/table/style/sticky.cjs +1 -1
  303. package/dist/node_modules/antd/es/table/style/sticky.js +1 -1
  304. package/dist/node_modules/antd/es/tabs/hooks/useAnimateConfig.cjs +4 -5
  305. package/dist/node_modules/antd/es/tabs/hooks/useAnimateConfig.js +4 -5
  306. package/dist/node_modules/antd/es/tabs/hooks/useLegacyItems.cjs +8 -1
  307. package/dist/node_modules/antd/es/tabs/hooks/useLegacyItems.js +8 -1
  308. package/dist/node_modules/antd/es/tabs/index.cjs +20 -10
  309. package/dist/node_modules/antd/es/tabs/index.js +20 -10
  310. package/dist/node_modules/antd/es/tabs/style/index.cjs +42 -14
  311. package/dist/node_modules/antd/es/tabs/style/index.js +42 -14
  312. package/dist/node_modules/antd/es/theme/themes/shared/genColorMapToken.cjs +4 -5
  313. package/dist/node_modules/antd/es/theme/themes/shared/genColorMapToken.js +4 -5
  314. package/dist/node_modules/antd/es/theme/useToken.cjs +1 -13
  315. package/dist/node_modules/antd/es/theme/useToken.js +1 -13
  316. package/dist/node_modules/antd/es/theme/util/useResetIconStyle.cjs +1 -1
  317. package/dist/node_modules/antd/es/theme/util/useResetIconStyle.js +1 -1
  318. package/dist/node_modules/antd/es/tooltip/index.cjs +6 -5
  319. package/dist/node_modules/antd/es/tooltip/index.js +6 -5
  320. package/dist/node_modules/antd/es/tooltip/style/index.cjs +13 -17
  321. package/dist/node_modules/antd/es/tooltip/style/index.js +13 -17
  322. package/dist/node_modules/antd/es/tooltip/util.cjs +5 -0
  323. package/dist/node_modules/antd/es/tooltip/util.js +5 -0
  324. package/dist/node_modules/antd/es/tree/DirectoryTree.cjs +4 -5
  325. package/dist/node_modules/antd/es/tree/DirectoryTree.js +4 -5
  326. package/dist/node_modules/antd/es/tree/style/directory.cjs +50 -48
  327. package/dist/node_modules/antd/es/tree/style/directory.js +50 -48
  328. package/dist/node_modules/antd/es/tree/style/index.cjs +12 -13
  329. package/dist/node_modules/antd/es/tree/style/index.js +12 -13
  330. package/dist/node_modules/antd/es/tree/utils/dictUtil.cjs +7 -8
  331. package/dist/node_modules/antd/es/tree/utils/dictUtil.js +7 -8
  332. package/dist/node_modules/antd/es/tree/utils/iconUtil.cjs +3 -2
  333. package/dist/node_modules/antd/es/tree/utils/iconUtil.js +3 -2
  334. package/dist/node_modules/antd/es/typography/Base/CopyBtn.cjs +13 -13
  335. package/dist/node_modules/antd/es/typography/Base/CopyBtn.js +13 -13
  336. package/dist/node_modules/antd/es/typography/Base/Ellipsis.cjs +4 -5
  337. package/dist/node_modules/antd/es/typography/Base/Ellipsis.js +4 -5
  338. package/dist/node_modules/antd/es/typography/Base/EllipsisTooltip.cjs +6 -7
  339. package/dist/node_modules/antd/es/typography/Base/EllipsisTooltip.js +6 -7
  340. package/dist/node_modules/antd/es/typography/Base/index.cjs +16 -16
  341. package/dist/node_modules/antd/es/typography/Base/index.js +16 -16
  342. package/dist/node_modules/antd/es/typography/Editable.cjs +13 -16
  343. package/dist/node_modules/antd/es/typography/Editable.js +13 -16
  344. package/dist/node_modules/antd/es/typography/hooks/useCopyClick.cjs +4 -5
  345. package/dist/node_modules/antd/es/typography/hooks/useCopyClick.js +4 -5
  346. package/dist/node_modules/antd/es/typography/style/index.cjs +6 -6
  347. package/dist/node_modules/antd/es/typography/style/index.js +6 -6
  348. package/dist/node_modules/antd/es/typography/style/mixins.cjs +2 -2
  349. package/dist/node_modules/antd/es/typography/style/mixins.js +2 -2
  350. package/dist/node_modules/antd/es/version/version.cjs +1 -1
  351. package/dist/node_modules/antd/es/version/version.js +1 -1
  352. package/dist/node_modules/d3-ease/src/elastic.cjs +2 -2
  353. package/dist/node_modules/d3-ease/src/elastic.js +2 -2
  354. package/dist/node_modules/d3-interpolate/src/rgb.cjs +2 -2
  355. package/dist/node_modules/d3-interpolate/src/rgb.js +2 -2
  356. package/dist/node_modules/d3-shape/src/curve/cardinal.cjs +2 -2
  357. package/dist/node_modules/d3-shape/src/curve/cardinal.js +2 -2
  358. package/dist/node_modules/dayjs/dayjs.min.cjs +13 -13
  359. package/dist/node_modules/dayjs/dayjs.min.js +13 -13
  360. package/dist/node_modules/dayjs/plugin/advancedFormat.cjs +5 -5
  361. package/dist/node_modules/dayjs/plugin/advancedFormat.js +5 -5
  362. package/dist/node_modules/dayjs/plugin/customParseFormat.cjs +15 -15
  363. package/dist/node_modules/dayjs/plugin/customParseFormat.js +15 -15
  364. package/dist/node_modules/dayjs/plugin/localeData.cjs +11 -11
  365. package/dist/node_modules/dayjs/plugin/localeData.js +11 -11
  366. package/dist/node_modules/dayjs/plugin/weekOfYear.cjs +3 -3
  367. package/dist/node_modules/dayjs/plugin/weekOfYear.js +3 -3
  368. package/dist/node_modules/dayjs/plugin/weekYear.cjs +3 -3
  369. package/dist/node_modules/dayjs/plugin/weekYear.js +3 -3
  370. package/dist/node_modules/dayjs/plugin/weekday.cjs +3 -3
  371. package/dist/node_modules/dayjs/plugin/weekday.js +3 -3
  372. package/dist/node_modules/engine.io-client/build/esm/transports/polling-xhr.cjs +2 -2
  373. package/dist/node_modules/engine.io-client/build/esm/transports/polling-xhr.js +2 -2
  374. package/dist/node_modules/rc-field-form/es/Field.cjs +2 -2
  375. package/dist/node_modules/rc-field-form/es/Field.js +2 -2
  376. package/dist/node_modules/rc-field-form/es/utils/NameMap.cjs +2 -2
  377. package/dist/node_modules/rc-field-form/es/utils/NameMap.js +2 -2
  378. package/dist/node_modules/rc-field-form/es/utils/validateUtil.cjs +2 -2
  379. package/dist/node_modules/rc-field-form/es/utils/validateUtil.js +2 -2
  380. package/dist/node_modules/rc-input/es/Input.cjs +2 -1
  381. package/dist/node_modules/rc-input/es/Input.js +2 -1
  382. package/dist/node_modules/rc-menu/es/MenuItem.cjs +2 -2
  383. package/dist/node_modules/rc-menu/es/MenuItem.js +2 -2
  384. package/dist/node_modules/rc-motion/es/CSSMotionList.cjs +2 -2
  385. package/dist/node_modules/rc-motion/es/CSSMotionList.js +2 -2
  386. package/dist/node_modules/rc-motion/es/DomWrapper.cjs +2 -2
  387. package/dist/node_modules/rc-motion/es/DomWrapper.js +2 -2
  388. package/dist/node_modules/rc-motion/es/hooks/useDomMotionEvents.cjs +2 -2
  389. package/dist/node_modules/rc-motion/es/hooks/useDomMotionEvents.js +2 -2
  390. package/dist/node_modules/rc-motion/es/hooks/useNextFrame.cjs +2 -2
  391. package/dist/node_modules/rc-motion/es/hooks/useNextFrame.js +2 -2
  392. package/dist/node_modules/rc-motion/es/hooks/useStepQueue.cjs +2 -2
  393. package/dist/node_modules/rc-motion/es/hooks/useStepQueue.js +2 -2
  394. package/dist/node_modules/rc-picker/es/PickerInput/Selector/MaskFormat.cjs +2 -2
  395. package/dist/node_modules/rc-picker/es/PickerInput/Selector/MaskFormat.js +2 -2
  396. package/dist/node_modules/rc-progress/es/hooks/useId.cjs +2 -2
  397. package/dist/node_modules/rc-progress/es/hooks/useId.js +2 -2
  398. package/dist/node_modules/rc-resize-observer/es/SingleObserver/DomWrapper.cjs +2 -2
  399. package/dist/node_modules/rc-resize-observer/es/SingleObserver/DomWrapper.js +2 -2
  400. package/dist/node_modules/rc-select/es/OptionList.cjs +1 -1
  401. package/dist/node_modules/rc-select/es/OptionList.js +1 -1
  402. package/dist/node_modules/rc-select/es/Selector/Input.cjs +8 -47
  403. package/dist/node_modules/rc-select/es/Selector/Input.js +8 -47
  404. package/dist/node_modules/rc-select/es/hooks/useCache.cjs +2 -2
  405. package/dist/node_modules/rc-select/es/hooks/useCache.js +2 -2
  406. package/dist/node_modules/rc-select/es/hooks/useFilterOptions.cjs +2 -2
  407. package/dist/node_modules/rc-select/es/hooks/useFilterOptions.js +2 -2
  408. package/dist/node_modules/rc-table/es/Body/BodyRow.cjs +22 -8
  409. package/dist/node_modules/rc-table/es/Body/BodyRow.js +22 -8
  410. package/dist/node_modules/rc-table/es/Body/ExpandedRow.cjs +3 -3
  411. package/dist/node_modules/rc-table/es/Body/ExpandedRow.js +3 -3
  412. package/dist/node_modules/rc-table/es/Body/MeasureCell.cjs +2 -1
  413. package/dist/node_modules/rc-table/es/Body/MeasureCell.js +2 -1
  414. package/dist/node_modules/rc-table/es/Body/MeasureRow.cjs +10 -5
  415. package/dist/node_modules/rc-table/es/Body/MeasureRow.js +10 -5
  416. package/dist/node_modules/rc-table/es/Body/index.cjs +24 -6
  417. package/dist/node_modules/rc-table/es/Body/index.js +24 -6
  418. package/dist/node_modules/rc-table/es/FixedHolder/index.cjs +3 -4
  419. package/dist/node_modules/rc-table/es/FixedHolder/index.js +3 -4
  420. package/dist/node_modules/rc-table/es/Table.cjs +17 -15
  421. package/dist/node_modules/rc-table/es/Table.js +18 -16
  422. package/dist/node_modules/rc-table/es/hooks/useColumns/index.cjs +10 -4
  423. package/dist/node_modules/rc-table/es/hooks/useColumns/index.js +10 -4
  424. package/dist/node_modules/rc-table/es/hooks/useFlattenRecords.cjs +5 -3
  425. package/dist/node_modules/rc-table/es/hooks/useFlattenRecords.js +5 -3
  426. package/dist/node_modules/rc-table/es/hooks/useFrame.js +1 -1
  427. package/dist/node_modules/rc-tabs/es/TabNavList/index.cjs +30 -21
  428. package/dist/node_modules/rc-tabs/es/TabNavList/index.js +31 -22
  429. package/dist/node_modules/rc-tabs/es/hooks/useIndicator.cjs +9 -2
  430. package/dist/node_modules/rc-tabs/es/hooks/useIndicator.js +9 -2
  431. package/dist/node_modules/rc-tabs/es/hooks/useVisibleRange.cjs +1 -1
  432. package/dist/node_modules/rc-tabs/es/hooks/useVisibleRange.js +1 -1
  433. package/dist/node_modules/rc-textarea/es/ResizableTextArea.cjs +1 -13
  434. package/dist/node_modules/rc-textarea/es/ResizableTextArea.js +1 -13
  435. package/dist/node_modules/rc-tree/es/Tree.cjs +2 -2
  436. package/dist/node_modules/rc-tree/es/Tree.js +2 -2
  437. package/dist/node_modules/rc-util/es/Dom/isVisible.cjs +2 -2
  438. package/dist/node_modules/rc-util/es/Dom/isVisible.js +2 -2
  439. package/dist/node_modules/rc-util/es/composeProps.cjs +20 -0
  440. package/dist/node_modules/rc-util/es/composeProps.js +21 -0
  441. package/dist/node_modules/rc-util/es/isMobile.cjs +2 -2
  442. package/dist/node_modules/rc-util/es/isMobile.js +2 -2
  443. package/dist/node_modules/rc-virtual-list/es/List.cjs +3 -2
  444. package/dist/node_modules/rc-virtual-list/es/List.js +3 -2
  445. package/dist/node_modules/rc-virtual-list/es/ScrollBar.cjs +21 -23
  446. package/dist/node_modules/rc-virtual-list/es/ScrollBar.js +21 -23
  447. package/dist/node_modules/rc-virtual-list/es/hooks/useOriginScroll.cjs +2 -2
  448. package/dist/node_modules/rc-virtual-list/es/hooks/useOriginScroll.js +2 -2
  449. package/dist/node_modules/rc-virtual-list/es/hooks/useScrollDrag.cjs +1 -1
  450. package/dist/node_modules/rc-virtual-list/es/hooks/useScrollDrag.js +1 -1
  451. package/dist/node_modules/rc-virtual-list/es/utils/CacheMap.cjs +6 -6
  452. package/dist/node_modules/rc-virtual-list/es/utils/CacheMap.js +6 -6
  453. package/dist/node_modules/resize-observer-polyfill/dist/ResizeObserver.es.cjs +26 -26
  454. package/dist/node_modules/resize-observer-polyfill/dist/ResizeObserver.es.js +26 -26
  455. package/dist/node_modules/unified/lib/callable-instance.cjs +2 -2
  456. package/dist/node_modules/unified/lib/callable-instance.js +2 -2
  457. package/dist/node_modules/unist-util-is/lib/index.cjs +2 -2
  458. package/dist/node_modules/unist-util-is/lib/index.js +2 -2
  459. package/dist/node_modules/vfile-message/lib/index.cjs +5 -5
  460. package/dist/node_modules/vfile-message/lib/index.js +5 -5
  461. package/dist/providers/ToastProvider.cjs +1 -1
  462. package/dist/providers/ToastProvider.js +1 -1
  463. package/dist/styles/global-styles.cjs +6 -6
  464. package/dist/styles/global-styles.js +6 -6
  465. package/package.json +1 -1
  466. package/dist/node_modules/@fontsource/inter/300.css.cjs +0 -1
  467. package/dist/node_modules/@fontsource/inter/300.css.js +0 -1
  468. package/dist/node_modules/@fontsource/inter/400.css.cjs +0 -1
  469. package/dist/node_modules/@fontsource/inter/400.css.js +0 -1
  470. package/dist/node_modules/@fontsource/inter/500.css.cjs +0 -1
  471. package/dist/node_modules/@fontsource/inter/500.css.js +0 -1
  472. package/dist/node_modules/@fontsource/inter/600.css.cjs +0 -1
  473. package/dist/node_modules/@fontsource/inter/600.css.js +0 -1
  474. package/dist/node_modules/@fontsource/inter/700.css.cjs +0 -1
  475. package/dist/node_modules/@fontsource/inter/700.css.js +0 -1
  476. package/dist/node_modules/@fontsource/roboto-mono/400.css.cjs +0 -1
  477. package/dist/node_modules/@fontsource/roboto-mono/400.css.js +0 -1
  478. package/dist/node_modules/react-toastify/dist/ReactToastify.css.cjs +0 -1
  479. package/dist/node_modules/react-toastify/dist/ReactToastify.css.js +0 -1
@@ -90,12 +90,9 @@ const injectSorter = (prefixCls, columns, sorterStates, triggerSorter, defaultSo
90
90
  const sortDirections = newColumn.sortDirections || defaultSortDirections;
91
91
  const showSorterTooltip = newColumn.showSorterTooltip === void 0 ? tableShowSorterTooltip : newColumn.showSorterTooltip;
92
92
  const columnKey = util.getColumnKey(newColumn, columnPos);
93
- const sorterState = sorterStates.find((_ref) => {
94
- let {
95
- key
96
- } = _ref;
97
- return key === columnKey;
98
- });
93
+ const sorterState = sorterStates.find(({
94
+ key
95
+ }) => key === columnKey);
99
96
  const sortOrder = sorterState ? sorterState.sortOrder : null;
100
97
  const nextSortOrder = nextSortDirection(sortDirections, sortOrder);
101
98
  let sorter;
@@ -223,12 +220,9 @@ const stateToInfo = (sorterState) => {
223
220
  };
224
221
  };
225
222
  const generateSorterInfo = (sorterStates) => {
226
- const activeSorters = sorterStates.filter((_ref2) => {
227
- let {
228
- sortOrder
229
- } = _ref2;
230
- return sortOrder;
231
- }).map(stateToInfo);
223
+ const activeSorters = sorterStates.filter(({
224
+ sortOrder
225
+ }) => sortOrder).map(stateToInfo);
232
226
  if (activeSorters.length === 0 && sorterStates.length) {
233
227
  const lastIndex = sorterStates.length - 1;
234
228
  return Object.assign(Object.assign({}, stateToInfo(sorterStates[lastIndex])), {
@@ -246,15 +240,12 @@ const generateSorterInfo = (sorterStates) => {
246
240
  const getSortData = (data, sortStates, childrenColumnName) => {
247
241
  const innerSorterStates = sortStates.slice().sort((a, b) => b.multiplePriority - a.multiplePriority);
248
242
  const cloneData = data.slice();
249
- const runningSorters = innerSorterStates.filter((_ref3) => {
250
- let {
251
- column: {
252
- sorter
253
- },
254
- sortOrder
255
- } = _ref3;
256
- return getSortFunction(sorter) && sortOrder;
257
- });
243
+ const runningSorters = innerSorterStates.filter(({
244
+ column: {
245
+ sorter
246
+ },
247
+ sortOrder
248
+ }) => getSortFunction(sorter) && sortOrder);
258
249
  if (!runningSorters.length) {
259
250
  return cloneData;
260
251
  }
@@ -295,7 +286,7 @@ const useFilterSorter = (props) => {
295
286
  showSorterTooltip,
296
287
  onSorterChange
297
288
  } = props;
298
- const [sortStates, setSortStates] = React__namespace.useState(collectSortStates(mergedColumns, true));
289
+ const [sortStates, setSortStates] = React__namespace.useState(() => collectSortStates(mergedColumns, true));
299
290
  const getColumnKeys = (columns, pos) => {
300
291
  const newKeys = [];
301
292
  columns.forEach((item, index2) => {
@@ -313,12 +304,9 @@ const useFilterSorter = (props) => {
313
304
  const collectedStates = collectSortStates(mergedColumns, false);
314
305
  if (!collectedStates.length) {
315
306
  const mergedColumnsKeys = getColumnKeys(mergedColumns);
316
- return sortStates.filter((_ref4) => {
317
- let {
318
- key
319
- } = _ref4;
320
- return mergedColumnsKeys.includes(key);
321
- });
307
+ return sortStates.filter(({
308
+ key
309
+ }) => mergedColumnsKeys.includes(key));
322
310
  }
323
311
  const validateStates = [];
324
312
  function patchStates(state) {
@@ -352,16 +340,13 @@ const useFilterSorter = (props) => {
352
340
  }, [mergedColumns, sortStates]);
353
341
  const columnTitleSorterProps = React__namespace.useMemo(() => {
354
342
  var _a, _b;
355
- const sortColumns = mergedSorterStates.map((_ref5) => {
356
- let {
357
- column,
358
- sortOrder
359
- } = _ref5;
360
- return {
361
- column,
362
- order: sortOrder
363
- };
364
- });
343
+ const sortColumns = mergedSorterStates.map(({
344
+ column,
345
+ sortOrder
346
+ }) => ({
347
+ column,
348
+ order: sortOrder
349
+ }));
365
350
  return {
366
351
  sortColumns,
367
352
  // Legacy
@@ -374,12 +359,9 @@ const useFilterSorter = (props) => {
374
359
  if (sortState.multiplePriority === false || !mergedSorterStates.length || mergedSorterStates[0].multiplePriority === false) {
375
360
  newSorterStates = [sortState];
376
361
  } else {
377
- newSorterStates = [].concat(toConsumableArray(mergedSorterStates.filter((_ref6) => {
378
- let {
379
- key
380
- } = _ref6;
381
- return key !== sortState.key;
382
- })), [sortState]);
362
+ newSorterStates = [].concat(toConsumableArray(mergedSorterStates.filter(({
363
+ key
364
+ }) => key !== sortState.key)), [sortState]);
383
365
  }
384
366
  setSortStates(newSorterStates);
385
367
  onSorterChange(generateSorterInfo(newSorterStates), newSorterStates);
@@ -69,12 +69,9 @@ const injectSorter = (prefixCls, columns, sorterStates, triggerSorter, defaultSo
69
69
  const sortDirections = newColumn.sortDirections || defaultSortDirections;
70
70
  const showSorterTooltip = newColumn.showSorterTooltip === void 0 ? tableShowSorterTooltip : newColumn.showSorterTooltip;
71
71
  const columnKey = getColumnKey(newColumn, columnPos);
72
- const sorterState = sorterStates.find((_ref) => {
73
- let {
74
- key
75
- } = _ref;
76
- return key === columnKey;
77
- });
72
+ const sorterState = sorterStates.find(({
73
+ key
74
+ }) => key === columnKey);
78
75
  const sortOrder = sorterState ? sorterState.sortOrder : null;
79
76
  const nextSortOrder = nextSortDirection(sortDirections, sortOrder);
80
77
  let sorter;
@@ -202,12 +199,9 @@ const stateToInfo = (sorterState) => {
202
199
  };
203
200
  };
204
201
  const generateSorterInfo = (sorterStates) => {
205
- const activeSorters = sorterStates.filter((_ref2) => {
206
- let {
207
- sortOrder
208
- } = _ref2;
209
- return sortOrder;
210
- }).map(stateToInfo);
202
+ const activeSorters = sorterStates.filter(({
203
+ sortOrder
204
+ }) => sortOrder).map(stateToInfo);
211
205
  if (activeSorters.length === 0 && sorterStates.length) {
212
206
  const lastIndex = sorterStates.length - 1;
213
207
  return Object.assign(Object.assign({}, stateToInfo(sorterStates[lastIndex])), {
@@ -225,15 +219,12 @@ const generateSorterInfo = (sorterStates) => {
225
219
  const getSortData = (data, sortStates, childrenColumnName) => {
226
220
  const innerSorterStates = sortStates.slice().sort((a, b) => b.multiplePriority - a.multiplePriority);
227
221
  const cloneData = data.slice();
228
- const runningSorters = innerSorterStates.filter((_ref3) => {
229
- let {
230
- column: {
231
- sorter
232
- },
233
- sortOrder
234
- } = _ref3;
235
- return getSortFunction(sorter) && sortOrder;
236
- });
222
+ const runningSorters = innerSorterStates.filter(({
223
+ column: {
224
+ sorter
225
+ },
226
+ sortOrder
227
+ }) => getSortFunction(sorter) && sortOrder);
237
228
  if (!runningSorters.length) {
238
229
  return cloneData;
239
230
  }
@@ -274,7 +265,7 @@ const useFilterSorter = (props) => {
274
265
  showSorterTooltip,
275
266
  onSorterChange
276
267
  } = props;
277
- const [sortStates, setSortStates] = React.useState(collectSortStates(mergedColumns, true));
268
+ const [sortStates, setSortStates] = React.useState(() => collectSortStates(mergedColumns, true));
278
269
  const getColumnKeys = (columns, pos) => {
279
270
  const newKeys = [];
280
271
  columns.forEach((item, index) => {
@@ -292,12 +283,9 @@ const useFilterSorter = (props) => {
292
283
  const collectedStates = collectSortStates(mergedColumns, false);
293
284
  if (!collectedStates.length) {
294
285
  const mergedColumnsKeys = getColumnKeys(mergedColumns);
295
- return sortStates.filter((_ref4) => {
296
- let {
297
- key
298
- } = _ref4;
299
- return mergedColumnsKeys.includes(key);
300
- });
286
+ return sortStates.filter(({
287
+ key
288
+ }) => mergedColumnsKeys.includes(key));
301
289
  }
302
290
  const validateStates = [];
303
291
  function patchStates(state) {
@@ -331,16 +319,13 @@ const useFilterSorter = (props) => {
331
319
  }, [mergedColumns, sortStates]);
332
320
  const columnTitleSorterProps = React.useMemo(() => {
333
321
  var _a, _b;
334
- const sortColumns = mergedSorterStates.map((_ref5) => {
335
- let {
336
- column,
337
- sortOrder
338
- } = _ref5;
339
- return {
340
- column,
341
- order: sortOrder
342
- };
343
- });
322
+ const sortColumns = mergedSorterStates.map(({
323
+ column,
324
+ sortOrder
325
+ }) => ({
326
+ column,
327
+ order: sortOrder
328
+ }));
344
329
  return {
345
330
  sortColumns,
346
331
  // Legacy
@@ -353,12 +338,9 @@ const useFilterSorter = (props) => {
353
338
  if (sortState.multiplePriority === false || !mergedSorterStates.length || mergedSorterStates[0].multiplePriority === false) {
354
339
  newSorterStates = [sortState];
355
340
  } else {
356
- newSorterStates = [].concat(_toConsumableArray(mergedSorterStates.filter((_ref6) => {
357
- let {
358
- key
359
- } = _ref6;
360
- return key !== sortState.key;
361
- })), [sortState]);
341
+ newSorterStates = [].concat(_toConsumableArray(mergedSorterStates.filter(({
342
+ key
343
+ }) => key !== sortState.key)), [sortState]);
362
344
  }
363
345
  setSortStates(newSorterStates);
364
346
  onSorterChange(generateSorterInfo(newSorterStates), newSorterStates);
@@ -30,7 +30,7 @@ const genFilterStyle = (token) => {
30
30
  tablePaddingHorizontal,
31
31
  borderRadius,
32
32
  motionDurationSlow,
33
- colorTextDescription,
33
+ colorIcon,
34
34
  colorPrimary,
35
35
  tableHeaderFilterActiveBg,
36
36
  colorTextDisabled,
@@ -66,7 +66,7 @@ const genFilterStyle = (token) => {
66
66
  cursor: "pointer",
67
67
  transition: `all ${motionDurationSlow}`,
68
68
  "&:hover": {
69
- color: colorTextDescription,
69
+ color: colorIcon,
70
70
  background: tableHeaderFilterActiveBg
71
71
  },
72
72
  "&.active": {
@@ -29,7 +29,7 @@ const genFilterStyle = (token) => {
29
29
  tablePaddingHorizontal,
30
30
  borderRadius,
31
31
  motionDurationSlow,
32
- colorTextDescription,
32
+ colorIcon,
33
33
  colorPrimary,
34
34
  tableHeaderFilterActiveBg,
35
35
  colorTextDisabled,
@@ -65,7 +65,7 @@ const genFilterStyle = (token) => {
65
65
  cursor: "pointer",
66
66
  transition: `all ${motionDurationSlow}`,
67
67
  "&:hover": {
68
- color: colorTextDescription,
68
+ color: colorIcon,
69
69
  background: tableHeaderFilterActiveBg
70
70
  },
71
71
  "&.active": {
@@ -59,7 +59,9 @@ const genTableStyle = (token) => {
59
59
  return {
60
60
  [`${componentCls}-wrapper`]: Object.assign(Object.assign({
61
61
  clear: "both",
62
- maxWidth: "100%"
62
+ maxWidth: "100%",
63
+ // fix https://github.com/ant-design/ant-design/issues/46177
64
+ ["--rc-virtual-list-scrollbar-bg"]: token.tableScrollBg
63
65
  }, index.clearFix()), {
64
66
  [componentCls]: Object.assign(Object.assign({}, index.resetComponent(token)), {
65
67
  fontSize: tableFontSize,
@@ -57,7 +57,9 @@ const genTableStyle = (token) => {
57
57
  return {
58
58
  [`${componentCls}-wrapper`]: Object.assign(Object.assign({
59
59
  clear: "both",
60
- maxWidth: "100%"
60
+ maxWidth: "100%",
61
+ // fix https://github.com/ant-design/ant-design/issues/46177
62
+ ["--rc-virtual-list-scrollbar-bg"]: token.tableScrollBg
61
63
  }, clearFix()), {
62
64
  [componentCls]: Object.assign(Object.assign({}, resetComponent(token)), {
63
65
  fontSize: tableFontSize,
@@ -52,7 +52,7 @@ const genStickyStyle = (token) => {
52
52
  height: tableScrollThumbSize,
53
53
  backgroundColor: tableScrollThumbBg,
54
54
  borderRadius: stickyScrollBarBorderRadius,
55
- transition: `all ${token.motionDurationSlow}, transform none`,
55
+ transition: `all ${token.motionDurationSlow}, transform 0s`,
56
56
  position: "absolute",
57
57
  bottom: 0,
58
58
  "&:hover, &-active": {
@@ -51,7 +51,7 @@ const genStickyStyle = (token) => {
51
51
  height: tableScrollThumbSize,
52
52
  backgroundColor: tableScrollThumbBg,
53
53
  borderRadius: stickyScrollBarBorderRadius,
54
- transition: `all ${token.motionDurationSlow}, transform none`,
54
+ transition: `all ${token.motionDurationSlow}, transform 0s`,
55
55
  position: "absolute",
56
56
  bottom: 0,
57
57
  "&:hover, &-active": {
@@ -5,11 +5,10 @@ const motion = {
5
5
  motionEnter: true,
6
6
  motionLeave: true
7
7
  };
8
- function useAnimateConfig(prefixCls) {
9
- let animated = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {
10
- inkBar: true,
11
- tabPane: false
12
- };
8
+ function useAnimateConfig(prefixCls, animated = {
9
+ inkBar: true,
10
+ tabPane: false
11
+ }) {
13
12
  let mergedAnimated;
14
13
  if (animated === false) {
15
14
  mergedAnimated = {
@@ -4,11 +4,10 @@ const motion = {
4
4
  motionEnter: true,
5
5
  motionLeave: true
6
6
  };
7
- function useAnimateConfig(prefixCls) {
8
- let animated = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {
9
- inkBar: true,
10
- tabPane: false
11
- };
7
+ function useAnimateConfig(prefixCls, animated = {
8
+ inkBar: true,
9
+ tabPane: false
10
+ }) {
12
11
  let mergedAnimated;
13
12
  if (animated === false) {
14
13
  mergedAnimated = {
@@ -38,7 +38,14 @@ function useLegacyItems(items, children) {
38
38
  warning$1.deprecated(!children, "Tabs.TabPane", "items");
39
39
  }
40
40
  if (items) {
41
- return items;
41
+ return items.map((item) => {
42
+ var _a;
43
+ const mergedDestroyOnHidden = (_a = item.destroyOnHidden) !== null && _a !== void 0 ? _a : item.destroyInactiveTabPane;
44
+ return Object.assign(Object.assign({}, item), {
45
+ // TODO: In the future, destroyInactiveTabPane in rc-tabs needs to be upgrade to destroyOnHidden
46
+ destroyInactiveTabPane: mergedDestroyOnHidden
47
+ });
48
+ });
42
49
  }
43
50
  const childrenItems = toArray(children).map((node) => {
44
51
  if (/* @__PURE__ */ React__namespace.isValidElement(node)) {
@@ -18,7 +18,14 @@ function useLegacyItems(items, children) {
18
18
  warning.deprecated(!children, "Tabs.TabPane", "items");
19
19
  }
20
20
  if (items) {
21
- return items;
21
+ return items.map((item) => {
22
+ var _a;
23
+ const mergedDestroyOnHidden = (_a = item.destroyOnHidden) !== null && _a !== void 0 ? _a : item.destroyInactiveTabPane;
24
+ return Object.assign(Object.assign({}, item), {
25
+ // TODO: In the future, destroyInactiveTabPane in rc-tabs needs to be upgrade to destroyOnHidden
26
+ destroyInactiveTabPane: mergedDestroyOnHidden
27
+ });
28
+ });
22
29
  }
23
30
  const childrenItems = toArray(children).map((node) => {
24
31
  if (/* @__PURE__ */ React.isValidElement(node)) {
@@ -41,7 +41,7 @@ var __rest = function(s, e) {
41
41
  }
42
42
  return t;
43
43
  };
44
- const Tabs = (props) => {
44
+ const InternalTabs = /* @__PURE__ */ React__namespace.forwardRef((props, ref) => {
45
45
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
46
46
  const {
47
47
  type,
@@ -61,8 +61,10 @@ const Tabs = (props) => {
61
61
  animated,
62
62
  style,
63
63
  indicatorSize,
64
- indicator
65
- } = props, otherProps = __rest(props, ["type", "className", "rootClassName", "size", "onEdit", "hideAdd", "centered", "addIcon", "removeIcon", "moreIcon", "more", "popupClassName", "children", "items", "animated", "style", "indicatorSize", "indicator"]);
64
+ indicator,
65
+ destroyInactiveTabPane,
66
+ destroyOnHidden
67
+ } = props, otherProps = __rest(props, ["type", "className", "rootClassName", "size", "onEdit", "hideAdd", "centered", "addIcon", "removeIcon", "moreIcon", "more", "popupClassName", "children", "items", "animated", "style", "indicatorSize", "indicator", "destroyInactiveTabPane", "destroyOnHidden"]);
66
68
  const {
67
69
  prefixCls: customizePrefixCls
68
70
  } = otherProps;
@@ -75,14 +77,17 @@ const Tabs = (props) => {
75
77
  const prefixCls = getPrefixCls("tabs", customizePrefixCls);
76
78
  const rootCls = useCSSVarCls(prefixCls);
77
79
  const [wrapCSSVar, hashId, cssVarCls] = index.default(prefixCls, rootCls);
80
+ const tabsRef = React__namespace.useRef(null);
81
+ React__namespace.useImperativeHandle(ref, () => ({
82
+ nativeElement: tabsRef.current
83
+ }));
78
84
  let editable;
79
85
  if (type === "editable-card") {
80
86
  editable = {
81
- onEdit: (editType, _ref) => {
82
- let {
83
- key,
84
- event
85
- } = _ref;
87
+ onEdit: (editType, {
88
+ key,
89
+ event
90
+ }) => {
86
91
  onEdit === null || onEdit === void 0 ? void 0 : onEdit(editType === "add" ? event : key, editType);
87
92
  },
88
93
  removeIcon: (_a = removeIcon !== null && removeIcon !== void 0 ? removeIcon : tabs === null || tabs === void 0 ? void 0 : tabs.removeIcon) !== null && _a !== void 0 ? _a : /* @__PURE__ */ React__namespace.createElement(CloseOutlined, null),
@@ -95,6 +100,7 @@ const Tabs = (props) => {
95
100
  const warning$1 = warning.devUseWarning("Tabs");
96
101
  process.env.NODE_ENV !== "production" ? warning$1(!("onPrevClick" in props) && !("onNextClick" in props), "breaking", "`onPrevClick` and `onNextClick` has been removed. Please use `onTabScroll` instead.") : void 0;
97
102
  process.env.NODE_ENV !== "production" ? warning$1(!(indicatorSize || (tabs === null || tabs === void 0 ? void 0 : tabs.indicatorSize)), "deprecated", "`indicatorSize` has been deprecated. Please use `indicator={{ size: ... }}` instead.") : void 0;
103
+ warning$1.deprecated(!("destroyInactiveTabPane" in props || (items === null || items === void 0 ? void 0 : items.some((item) => "destroyInactiveTabPane" in item))), "destroyInactiveTabPane", "destroyOnHidden");
98
104
  }
99
105
  const size = useSize(customSize);
100
106
  const mergedItems = useLegacyItems(items, children);
@@ -105,6 +111,7 @@ const Tabs = (props) => {
105
111
  size: (_g = (_e = (_d = indicator === null || indicator === void 0 ? void 0 : indicator.size) !== null && _d !== void 0 ? _d : indicatorSize) !== null && _e !== void 0 ? _e : (_f = tabs === null || tabs === void 0 ? void 0 : tabs.indicator) === null || _f === void 0 ? void 0 : _f.size) !== null && _g !== void 0 ? _g : tabs === null || tabs === void 0 ? void 0 : tabs.indicatorSize
106
112
  };
107
113
  return wrapCSSVar(/* @__PURE__ */ React__namespace.createElement(Tabs$1, Object.assign({
114
+ ref: tabsRef,
108
115
  direction,
109
116
  getPopupContainer
110
117
  }, otherProps, {
@@ -124,9 +131,12 @@ const Tabs = (props) => {
124
131
  }, more),
125
132
  prefixCls,
126
133
  animated: mergedAnimated,
127
- indicator: mergedIndicator
134
+ indicator: mergedIndicator,
135
+ // TODO: In the future, destroyInactiveTabPane in rc-tabs needs to be upgrade to destroyOnHidden
136
+ destroyInactiveTabPane: destroyOnHidden !== null && destroyOnHidden !== void 0 ? destroyOnHidden : destroyInactiveTabPane
128
137
  })));
129
- };
138
+ });
139
+ const Tabs = InternalTabs;
130
140
  Tabs.TabPane = TabPane;
131
141
  if (process.env.NODE_ENV !== "production") {
132
142
  Tabs.displayName = "Tabs";
@@ -21,7 +21,7 @@ var __rest = function(s, e) {
21
21
  }
22
22
  return t;
23
23
  };
24
- const Tabs = (props) => {
24
+ const InternalTabs = /* @__PURE__ */ React.forwardRef((props, ref) => {
25
25
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
26
26
  const {
27
27
  type,
@@ -41,8 +41,10 @@ const Tabs = (props) => {
41
41
  animated,
42
42
  style,
43
43
  indicatorSize,
44
- indicator
45
- } = props, otherProps = __rest(props, ["type", "className", "rootClassName", "size", "onEdit", "hideAdd", "centered", "addIcon", "removeIcon", "moreIcon", "more", "popupClassName", "children", "items", "animated", "style", "indicatorSize", "indicator"]);
44
+ indicator,
45
+ destroyInactiveTabPane,
46
+ destroyOnHidden
47
+ } = props, otherProps = __rest(props, ["type", "className", "rootClassName", "size", "onEdit", "hideAdd", "centered", "addIcon", "removeIcon", "moreIcon", "more", "popupClassName", "children", "items", "animated", "style", "indicatorSize", "indicator", "destroyInactiveTabPane", "destroyOnHidden"]);
46
48
  const {
47
49
  prefixCls: customizePrefixCls
48
50
  } = otherProps;
@@ -55,14 +57,17 @@ const Tabs = (props) => {
55
57
  const prefixCls = getPrefixCls("tabs", customizePrefixCls);
56
58
  const rootCls = useCSSVarCls(prefixCls);
57
59
  const [wrapCSSVar, hashId, cssVarCls] = useStyle(prefixCls, rootCls);
60
+ const tabsRef = React.useRef(null);
61
+ React.useImperativeHandle(ref, () => ({
62
+ nativeElement: tabsRef.current
63
+ }));
58
64
  let editable;
59
65
  if (type === "editable-card") {
60
66
  editable = {
61
- onEdit: (editType, _ref) => {
62
- let {
63
- key,
64
- event
65
- } = _ref;
67
+ onEdit: (editType, {
68
+ key,
69
+ event
70
+ }) => {
66
71
  onEdit === null || onEdit === void 0 ? void 0 : onEdit(editType === "add" ? event : key, editType);
67
72
  },
68
73
  removeIcon: (_a = removeIcon !== null && removeIcon !== void 0 ? removeIcon : tabs === null || tabs === void 0 ? void 0 : tabs.removeIcon) !== null && _a !== void 0 ? _a : /* @__PURE__ */ React.createElement(RefIcon$1, null),
@@ -75,6 +80,7 @@ const Tabs = (props) => {
75
80
  const warning = devUseWarning("Tabs");
76
81
  process.env.NODE_ENV !== "production" ? warning(!("onPrevClick" in props) && !("onNextClick" in props), "breaking", "`onPrevClick` and `onNextClick` has been removed. Please use `onTabScroll` instead.") : void 0;
77
82
  process.env.NODE_ENV !== "production" ? warning(!(indicatorSize || (tabs === null || tabs === void 0 ? void 0 : tabs.indicatorSize)), "deprecated", "`indicatorSize` has been deprecated. Please use `indicator={{ size: ... }}` instead.") : void 0;
83
+ warning.deprecated(!("destroyInactiveTabPane" in props || (items === null || items === void 0 ? void 0 : items.some((item) => "destroyInactiveTabPane" in item))), "destroyInactiveTabPane", "destroyOnHidden");
78
84
  }
79
85
  const size = useSize(customSize);
80
86
  const mergedItems = useLegacyItems(items, children);
@@ -85,6 +91,7 @@ const Tabs = (props) => {
85
91
  size: (_g = (_e = (_d = indicator === null || indicator === void 0 ? void 0 : indicator.size) !== null && _d !== void 0 ? _d : indicatorSize) !== null && _e !== void 0 ? _e : (_f = tabs === null || tabs === void 0 ? void 0 : tabs.indicator) === null || _f === void 0 ? void 0 : _f.size) !== null && _g !== void 0 ? _g : tabs === null || tabs === void 0 ? void 0 : tabs.indicatorSize
86
92
  };
87
93
  return wrapCSSVar(/* @__PURE__ */ React.createElement(Tabs$1, Object.assign({
94
+ ref: tabsRef,
88
95
  direction,
89
96
  getPopupContainer
90
97
  }, otherProps, {
@@ -104,9 +111,12 @@ const Tabs = (props) => {
104
111
  }, more),
105
112
  prefixCls,
106
113
  animated: mergedAnimated,
107
- indicator: mergedIndicator
114
+ indicator: mergedIndicator,
115
+ // TODO: In the future, destroyInactiveTabPane in rc-tabs needs to be upgrade to destroyOnHidden
116
+ destroyInactiveTabPane: destroyOnHidden !== null && destroyOnHidden !== void 0 ? destroyOnHidden : destroyInactiveTabPane
108
117
  })));
109
- };
118
+ });
119
+ const Tabs = InternalTabs;
110
120
  Tabs.TabPane = TabPane;
111
121
  if (process.env.NODE_ENV !== "production") {
112
122
  Tabs.displayName = "Tabs";