@gobolt/genesis 0.3.9 → 0.3.11

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
@@ -2,8 +2,7 @@
2
2
  var toConsumableArray = require("../../../@babel/runtime/helpers/esm/toConsumableArray.cjs");
3
3
  var presetColors = require("../theme/interface/presetColors.cjs");
4
4
  const inverseColors = presetColors.PresetColors.map((color) => `${color}-inverse`);
5
- function isPresetColor(color) {
6
- let includeInverse = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : true;
5
+ function isPresetColor(color, includeInverse = true) {
7
6
  if (includeInverse) {
8
7
  return [].concat(toConsumableArray(inverseColors), toConsumableArray(presetColors.PresetColors)).includes(color);
9
8
  }
@@ -1,8 +1,7 @@
1
1
  import _toConsumableArray from "../../../@babel/runtime/helpers/esm/toConsumableArray.js";
2
2
  import { PresetColors } from "../theme/interface/presetColors.js";
3
3
  const inverseColors = PresetColors.map((color) => `${color}-inverse`);
4
- function isPresetColor(color) {
5
- let includeInverse = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : true;
4
+ function isPresetColor(color, includeInverse = true) {
6
5
  if (includeInverse) {
7
6
  return [].concat(_toConsumableArray(inverseColors), _toConsumableArray(PresetColors)).includes(color);
8
7
  }
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ var React = require("react");
3
+ function convertToTooltipProps(tooltip) {
4
+ if (tooltip === void 0 || tooltip === null) {
5
+ return null;
6
+ }
7
+ if (typeof tooltip === "object" && !/* @__PURE__ */ React.isValidElement(tooltip)) {
8
+ return tooltip;
9
+ }
10
+ return {
11
+ title: tooltip
12
+ };
13
+ }
14
+ module.exports = convertToTooltipProps;
@@ -0,0 +1,15 @@
1
+ import { isValidElement } from "react";
2
+ function convertToTooltipProps(tooltip) {
3
+ if (tooltip === void 0 || tooltip === null) {
4
+ return null;
5
+ }
6
+ if (typeof tooltip === "object" && !/* @__PURE__ */ isValidElement(tooltip)) {
7
+ return tooltip;
8
+ }
9
+ return {
10
+ title: tooltip
11
+ };
12
+ }
13
+ export {
14
+ convertToTooltipProps as default
15
+ };
@@ -1,17 +1,15 @@
1
1
  "use strict";
2
- const extendsObject = function() {
3
- const result = Object.assign({}, arguments.length <= 0 ? void 0 : arguments[0]);
4
- for (let i = 1; i < arguments.length; i++) {
5
- const obj = i < 0 || arguments.length <= i ? void 0 : arguments[i];
6
- if (obj) {
7
- Object.keys(obj).forEach((key) => {
8
- const val = obj[key];
9
- if (val !== void 0) {
10
- result[key] = val;
2
+ function mergeProps(...items) {
3
+ const ret = {};
4
+ items.forEach((item) => {
5
+ if (item) {
6
+ Object.keys(item).forEach((key) => {
7
+ if (item[key] !== void 0) {
8
+ ret[key] = item[key];
11
9
  }
12
10
  });
13
11
  }
14
- }
15
- return result;
16
- };
17
- module.exports = extendsObject;
12
+ });
13
+ return ret;
14
+ }
15
+ module.exports = mergeProps;
@@ -1,18 +1,16 @@
1
- const extendsObject = function() {
2
- const result = Object.assign({}, arguments.length <= 0 ? void 0 : arguments[0]);
3
- for (let i = 1; i < arguments.length; i++) {
4
- const obj = i < 0 || arguments.length <= i ? void 0 : arguments[i];
5
- if (obj) {
6
- Object.keys(obj).forEach((key) => {
7
- const val = obj[key];
8
- if (val !== void 0) {
9
- result[key] = val;
1
+ function mergeProps(...items) {
2
+ const ret = {};
3
+ items.forEach((item) => {
4
+ if (item) {
5
+ Object.keys(item).forEach((key) => {
6
+ if (item[key] !== void 0) {
7
+ ret[key] = item[key];
10
8
  }
11
9
  });
12
10
  }
13
- }
14
- return result;
15
- };
11
+ });
12
+ return ret;
13
+ }
16
14
  export {
17
- extendsObject as default
15
+ mergeProps as default
18
16
  };
@@ -0,0 +1,80 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ var toConsumableArray = require("../../../../../@babel/runtime/helpers/esm/toConsumableArray.cjs");
4
+ var React = require("react");
5
+ var index = require("../../../../../../_virtual/index.cjs");
6
+ function _interopNamespaceDefault(e) {
7
+ var n = /* @__PURE__ */ Object.create(null);
8
+ if (e) {
9
+ Object.keys(e).forEach(function(k) {
10
+ if (k !== "default") {
11
+ var d = Object.getOwnPropertyDescriptor(e, k);
12
+ Object.defineProperty(n, k, d.get ? d : {
13
+ enumerable: true,
14
+ get: function() {
15
+ return e[k];
16
+ }
17
+ });
18
+ }
19
+ });
20
+ }
21
+ n.default = e;
22
+ return Object.freeze(n);
23
+ }
24
+ var React__namespace = /* @__PURE__ */ _interopNamespaceDefault(React);
25
+ function mergeClassNames(schema, ...classNames) {
26
+ const mergedSchema = schema || {};
27
+ return classNames.reduce((acc, cur) => {
28
+ Object.keys(cur || {}).forEach((key) => {
29
+ const keySchema = mergedSchema[key];
30
+ const curVal = cur[key];
31
+ if (keySchema && typeof keySchema === "object") {
32
+ if (curVal && typeof curVal === "object") {
33
+ acc[key] = mergeClassNames(keySchema, acc[key], curVal);
34
+ } else {
35
+ const {
36
+ _default: defaultField
37
+ } = keySchema;
38
+ acc[key] = acc[key] || {};
39
+ acc[key][defaultField] = index(acc[key][defaultField], curVal);
40
+ }
41
+ } else {
42
+ acc[key] = index(acc[key], curVal);
43
+ }
44
+ });
45
+ return acc;
46
+ }, {});
47
+ }
48
+ function useSemanticClassNames(schema, ...classNames) {
49
+ return React__namespace.useMemo(() => mergeClassNames.apply(void 0, [schema].concat(classNames)), [classNames]);
50
+ }
51
+ function useSemanticStyles(...styles) {
52
+ return React__namespace.useMemo(() => {
53
+ return styles.reduce((acc, cur = {}) => {
54
+ Object.keys(cur).forEach((key) => {
55
+ acc[key] = Object.assign(Object.assign({}, acc[key]), cur[key]);
56
+ });
57
+ return acc;
58
+ }, {});
59
+ }, [styles]);
60
+ }
61
+ function fillObjectBySchema(obj, schema) {
62
+ const newObj = Object.assign({}, obj);
63
+ Object.keys(schema).forEach((key) => {
64
+ if (key !== "_default") {
65
+ const nestSchema = schema[key];
66
+ const nextValue = newObj[key] || {};
67
+ newObj[key] = nestSchema ? fillObjectBySchema(nextValue, nestSchema) : nextValue;
68
+ }
69
+ });
70
+ return newObj;
71
+ }
72
+ function useMergeSemantic(classNamesList, stylesList, schema) {
73
+ const mergedClassNames = useSemanticClassNames.apply(void 0, [schema].concat(toConsumableArray(classNamesList)));
74
+ const mergedStyles = useSemanticStyles.apply(void 0, toConsumableArray(stylesList));
75
+ return React__namespace.useMemo(() => {
76
+ return [fillObjectBySchema(mergedClassNames, schema), fillObjectBySchema(mergedStyles, schema)];
77
+ }, [mergedClassNames, mergedStyles]);
78
+ }
79
+ exports.default = useMergeSemantic;
80
+ exports.mergeClassNames = mergeClassNames;
@@ -0,0 +1,61 @@
1
+ import _toConsumableArray from "../../../../../@babel/runtime/helpers/esm/toConsumableArray.js";
2
+ import * as React from "react";
3
+ import classNames from "../../../../../../_virtual/index.js";
4
+ function mergeClassNames(schema, ...classNames$1) {
5
+ const mergedSchema = schema || {};
6
+ return classNames$1.reduce((acc, cur) => {
7
+ Object.keys(cur || {}).forEach((key) => {
8
+ const keySchema = mergedSchema[key];
9
+ const curVal = cur[key];
10
+ if (keySchema && typeof keySchema === "object") {
11
+ if (curVal && typeof curVal === "object") {
12
+ acc[key] = mergeClassNames(keySchema, acc[key], curVal);
13
+ } else {
14
+ const {
15
+ _default: defaultField
16
+ } = keySchema;
17
+ acc[key] = acc[key] || {};
18
+ acc[key][defaultField] = classNames(acc[key][defaultField], curVal);
19
+ }
20
+ } else {
21
+ acc[key] = classNames(acc[key], curVal);
22
+ }
23
+ });
24
+ return acc;
25
+ }, {});
26
+ }
27
+ function useSemanticClassNames(schema, ...classNames2) {
28
+ return React.useMemo(() => mergeClassNames.apply(void 0, [schema].concat(classNames2)), [classNames2]);
29
+ }
30
+ function useSemanticStyles(...styles) {
31
+ return React.useMemo(() => {
32
+ return styles.reduce((acc, cur = {}) => {
33
+ Object.keys(cur).forEach((key) => {
34
+ acc[key] = Object.assign(Object.assign({}, acc[key]), cur[key]);
35
+ });
36
+ return acc;
37
+ }, {});
38
+ }, [styles]);
39
+ }
40
+ function fillObjectBySchema(obj, schema) {
41
+ const newObj = Object.assign({}, obj);
42
+ Object.keys(schema).forEach((key) => {
43
+ if (key !== "_default") {
44
+ const nestSchema = schema[key];
45
+ const nextValue = newObj[key] || {};
46
+ newObj[key] = nestSchema ? fillObjectBySchema(nextValue, nestSchema) : nextValue;
47
+ }
48
+ });
49
+ return newObj;
50
+ }
51
+ function useMergeSemantic(classNamesList, stylesList, schema) {
52
+ const mergedClassNames = useSemanticClassNames.apply(void 0, [schema].concat(_toConsumableArray(classNamesList)));
53
+ const mergedStyles = useSemanticStyles.apply(void 0, _toConsumableArray(stylesList));
54
+ return React.useMemo(() => {
55
+ return [fillObjectBySchema(mergedClassNames, schema), fillObjectBySchema(mergedStyles, schema)];
56
+ }, [mergedClassNames, mergedStyles]);
57
+ }
58
+ export {
59
+ useMergeSemantic as default,
60
+ mergeClassNames
61
+ };
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ const addMediaQueryListener = (mql, handler) => {
3
+ if (typeof (mql === null || mql === void 0 ? void 0 : mql.addEventListener) !== "undefined") {
4
+ mql.addEventListener("change", handler);
5
+ } else if (typeof (mql === null || mql === void 0 ? void 0 : mql.addListener) !== "undefined") {
6
+ mql.addListener(handler);
7
+ }
8
+ };
9
+ const removeMediaQueryListener = (mql, handler) => {
10
+ if (typeof (mql === null || mql === void 0 ? void 0 : mql.removeEventListener) !== "undefined") {
11
+ mql.removeEventListener("change", handler);
12
+ } else if (typeof (mql === null || mql === void 0 ? void 0 : mql.removeListener) !== "undefined") {
13
+ mql.removeListener(handler);
14
+ }
15
+ };
16
+ exports.addMediaQueryListener = addMediaQueryListener;
17
+ exports.removeMediaQueryListener = removeMediaQueryListener;
@@ -0,0 +1,18 @@
1
+ const addMediaQueryListener = (mql, handler) => {
2
+ if (typeof (mql === null || mql === void 0 ? void 0 : mql.addEventListener) !== "undefined") {
3
+ mql.addEventListener("change", handler);
4
+ } else if (typeof (mql === null || mql === void 0 ? void 0 : mql.addListener) !== "undefined") {
5
+ mql.addListener(handler);
6
+ }
7
+ };
8
+ const removeMediaQueryListener = (mql, handler) => {
9
+ if (typeof (mql === null || mql === void 0 ? void 0 : mql.removeEventListener) !== "undefined") {
10
+ mql.removeEventListener("change", handler);
11
+ } else if (typeof (mql === null || mql === void 0 ? void 0 : mql.removeListener) !== "undefined") {
12
+ mql.removeListener(handler);
13
+ }
14
+ };
15
+ export {
16
+ addMediaQueryListener,
17
+ removeMediaQueryListener
18
+ };
@@ -19,22 +19,19 @@ const getCurrentHeight = (node) => ({
19
19
  height: node ? node.offsetHeight : 0
20
20
  });
21
21
  const skipOpacityTransition = (_, event) => (event === null || event === void 0 ? void 0 : event.deadline) === true || event.propertyName === "height";
22
- const initCollapseMotion = function() {
23
- let rootCls = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : context.defaultPrefixCls;
24
- return {
25
- motionName: `${rootCls}-motion-collapse`,
26
- onAppearStart: getCollapsedHeight,
27
- onEnterStart: getCollapsedHeight,
28
- onAppearActive: getRealHeight,
29
- onEnterActive: getRealHeight,
30
- onLeaveStart: getCurrentHeight,
31
- onLeaveActive: getCollapsedHeight,
32
- onAppearEnd: skipOpacityTransition,
33
- onEnterEnd: skipOpacityTransition,
34
- onLeaveEnd: skipOpacityTransition,
35
- motionDeadline: 500
36
- };
37
- };
22
+ const initCollapseMotion = (rootCls = context.defaultPrefixCls) => ({
23
+ motionName: `${rootCls}-motion-collapse`,
24
+ onAppearStart: getCollapsedHeight,
25
+ onEnterStart: getCollapsedHeight,
26
+ onAppearActive: getRealHeight,
27
+ onEnterActive: getRealHeight,
28
+ onLeaveStart: getCurrentHeight,
29
+ onLeaveActive: getCollapsedHeight,
30
+ onAppearEnd: skipOpacityTransition,
31
+ onEnterEnd: skipOpacityTransition,
32
+ onLeaveEnd: skipOpacityTransition,
33
+ motionDeadline: 500
34
+ });
38
35
  const getTransitionName = (rootPrefixCls, motion, transitionName) => {
39
36
  if (transitionName !== void 0) {
40
37
  return transitionName;
@@ -17,22 +17,19 @@ const getCurrentHeight = (node) => ({
17
17
  height: node ? node.offsetHeight : 0
18
18
  });
19
19
  const skipOpacityTransition = (_, event) => (event === null || event === void 0 ? void 0 : event.deadline) === true || event.propertyName === "height";
20
- const initCollapseMotion = function() {
21
- let rootCls = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : defaultPrefixCls;
22
- return {
23
- motionName: `${rootCls}-motion-collapse`,
24
- onAppearStart: getCollapsedHeight,
25
- onEnterStart: getCollapsedHeight,
26
- onAppearActive: getRealHeight,
27
- onEnterActive: getRealHeight,
28
- onLeaveStart: getCurrentHeight,
29
- onLeaveActive: getCollapsedHeight,
30
- onAppearEnd: skipOpacityTransition,
31
- onEnterEnd: skipOpacityTransition,
32
- onLeaveEnd: skipOpacityTransition,
33
- motionDeadline: 500
34
- };
35
- };
20
+ const initCollapseMotion = (rootCls = defaultPrefixCls) => ({
21
+ motionName: `${rootCls}-motion-collapse`,
22
+ onAppearStart: getCollapsedHeight,
23
+ onEnterStart: getCollapsedHeight,
24
+ onAppearActive: getRealHeight,
25
+ onEnterActive: getRealHeight,
26
+ onLeaveStart: getCurrentHeight,
27
+ onLeaveActive: getCollapsedHeight,
28
+ onAppearEnd: skipOpacityTransition,
29
+ onEnterEnd: skipOpacityTransition,
30
+ onLeaveEnd: skipOpacityTransition,
31
+ motionDeadline: 500
32
+ });
36
33
  const getTransitionName = (rootPrefixCls, motion, transitionName) => {
37
34
  if (transitionName !== void 0) {
38
35
  return transitionName;
@@ -109,6 +109,10 @@ function getPlacements(config) {
109
109
  } = config;
110
110
  const halfArrowWidth = arrowWidth / 2;
111
111
  const placementMap = {};
112
+ const arrowOffset = placementArrow.getArrowOffsetToken({
113
+ contentRadius: borderRadius,
114
+ limitVerticalRadius: true
115
+ });
112
116
  Object.keys(PlacementAlignMap).forEach((key) => {
113
117
  const template = arrowPointAtCenter && ArrowCenterPlacementAlignMap[key] || PlacementAlignMap[key];
114
118
  const placementInfo = Object.assign(Object.assign({}, template), {
@@ -141,10 +145,6 @@ function getPlacements(config) {
141
145
  placementInfo.offset[0] = halfArrowWidth + offset;
142
146
  break;
143
147
  }
144
- const arrowOffset = placementArrow.getArrowOffsetToken({
145
- contentRadius: borderRadius,
146
- limitVerticalRadius: true
147
- });
148
148
  if (arrowPointAtCenter) {
149
149
  switch (key) {
150
150
  case "topLeft":
@@ -107,6 +107,10 @@ function getPlacements(config) {
107
107
  } = config;
108
108
  const halfArrowWidth = arrowWidth / 2;
109
109
  const placementMap = {};
110
+ const arrowOffset = getArrowOffsetToken({
111
+ contentRadius: borderRadius,
112
+ limitVerticalRadius: true
113
+ });
110
114
  Object.keys(PlacementAlignMap).forEach((key) => {
111
115
  const template = arrowPointAtCenter && ArrowCenterPlacementAlignMap[key] || PlacementAlignMap[key];
112
116
  const placementInfo = Object.assign(Object.assign({}, template), {
@@ -139,10 +143,6 @@ function getPlacements(config) {
139
143
  placementInfo.offset[0] = halfArrowWidth + offset;
140
144
  break;
141
145
  }
142
- const arrowOffset = getArrowOffsetToken({
143
- contentRadius: borderRadius,
144
- limitVerticalRadius: true
145
- });
146
146
  if (arrowPointAtCenter) {
147
147
  switch (key) {
148
148
  case "topLeft":
@@ -16,6 +16,7 @@ require("../../../rc-util/es/ref.cjs");
16
16
  require("../../../@ant-design/cssinjs-utils/es/util/statistic.cjs");
17
17
  require("../../../@ant-design/cssinjs-utils/es/_util/hooks/useUniqueMemo.cjs");
18
18
  var useToken = require("../theme/useToken.cjs");
19
+ var mediaQueryUtil = require("./mediaQueryUtil.cjs");
19
20
  const responsiveArray = ["xxl", "xl", "lg", "md", "sm", "xs"];
20
21
  const getResponsiveMap = (token) => ({
21
22
  xs: `(max-width: ${token.screenXSMax}px)`,
@@ -49,7 +50,7 @@ const validateBreakpoints = (token) => {
49
50
  });
50
51
  return token;
51
52
  };
52
- function useResponsiveObserver() {
53
+ const useResponsiveObserver = () => {
53
54
  const [, token] = useToken.default();
54
55
  const responsiveMap = getResponsiveMap(validateBreakpoints(token));
55
56
  return React.useMemo(() => {
@@ -57,6 +58,7 @@ function useResponsiveObserver() {
57
58
  let subUid = -1;
58
59
  let screens = {};
59
60
  return {
61
+ responsiveMap,
60
62
  matchHandlers: {},
61
63
  dispatch(pointMap) {
62
64
  screens = pointMap;
@@ -78,37 +80,33 @@ function useResponsiveObserver() {
78
80
  this.unregister();
79
81
  }
80
82
  },
81
- unregister() {
82
- Object.keys(responsiveMap).forEach((screen) => {
83
- const matchMediaQuery = responsiveMap[screen];
84
- const handler = this.matchHandlers[matchMediaQuery];
85
- handler === null || handler === void 0 ? void 0 : handler.mql.removeListener(handler === null || handler === void 0 ? void 0 : handler.listener);
86
- });
87
- subscribers.clear();
88
- },
89
83
  register() {
90
- Object.keys(responsiveMap).forEach((screen) => {
91
- const matchMediaQuery = responsiveMap[screen];
92
- const listener = (_ref) => {
93
- let {
94
- matches
95
- } = _ref;
84
+ Object.entries(responsiveMap).forEach(([screen, mediaQuery]) => {
85
+ const listener = ({
86
+ matches
87
+ }) => {
96
88
  this.dispatch(Object.assign(Object.assign({}, screens), {
97
89
  [screen]: matches
98
90
  }));
99
91
  };
100
- const mql = window.matchMedia(matchMediaQuery);
101
- mql.addListener(listener);
102
- this.matchHandlers[matchMediaQuery] = {
92
+ const mql = window.matchMedia(mediaQuery);
93
+ mediaQueryUtil.addMediaQueryListener(mql, listener);
94
+ this.matchHandlers[mediaQuery] = {
103
95
  mql,
104
96
  listener
105
97
  };
106
98
  listener(mql);
107
99
  });
108
100
  },
109
- responsiveMap
101
+ unregister() {
102
+ Object.values(responsiveMap).forEach((mediaQuery) => {
103
+ const handler = this.matchHandlers[mediaQuery];
104
+ mediaQueryUtil.removeMediaQueryListener(handler === null || handler === void 0 ? void 0 : handler.mql, handler === null || handler === void 0 ? void 0 : handler.listener);
105
+ });
106
+ subscribers.clear();
107
+ }
110
108
  };
111
109
  }, [token]);
112
- }
110
+ };
113
111
  exports.default = useResponsiveObserver;
114
112
  exports.responsiveArray = responsiveArray;
@@ -14,6 +14,7 @@ import "../../../rc-util/es/ref.js";
14
14
  import "../../../@ant-design/cssinjs-utils/es/util/statistic.js";
15
15
  import "../../../@ant-design/cssinjs-utils/es/_util/hooks/useUniqueMemo.js";
16
16
  import useToken from "../theme/useToken.js";
17
+ import { removeMediaQueryListener, addMediaQueryListener } from "./mediaQueryUtil.js";
17
18
  const responsiveArray = ["xxl", "xl", "lg", "md", "sm", "xs"];
18
19
  const getResponsiveMap = (token) => ({
19
20
  xs: `(max-width: ${token.screenXSMax}px)`,
@@ -47,7 +48,7 @@ const validateBreakpoints = (token) => {
47
48
  });
48
49
  return token;
49
50
  };
50
- function useResponsiveObserver() {
51
+ const useResponsiveObserver = () => {
51
52
  const [, token] = useToken();
52
53
  const responsiveMap = getResponsiveMap(validateBreakpoints(token));
53
54
  return React__default.useMemo(() => {
@@ -55,6 +56,7 @@ function useResponsiveObserver() {
55
56
  let subUid = -1;
56
57
  let screens = {};
57
58
  return {
59
+ responsiveMap,
58
60
  matchHandlers: {},
59
61
  dispatch(pointMap) {
60
62
  screens = pointMap;
@@ -76,38 +78,34 @@ function useResponsiveObserver() {
76
78
  this.unregister();
77
79
  }
78
80
  },
79
- unregister() {
80
- Object.keys(responsiveMap).forEach((screen) => {
81
- const matchMediaQuery = responsiveMap[screen];
82
- const handler = this.matchHandlers[matchMediaQuery];
83
- handler === null || handler === void 0 ? void 0 : handler.mql.removeListener(handler === null || handler === void 0 ? void 0 : handler.listener);
84
- });
85
- subscribers.clear();
86
- },
87
81
  register() {
88
- Object.keys(responsiveMap).forEach((screen) => {
89
- const matchMediaQuery = responsiveMap[screen];
90
- const listener = (_ref) => {
91
- let {
92
- matches
93
- } = _ref;
82
+ Object.entries(responsiveMap).forEach(([screen, mediaQuery]) => {
83
+ const listener = ({
84
+ matches
85
+ }) => {
94
86
  this.dispatch(Object.assign(Object.assign({}, screens), {
95
87
  [screen]: matches
96
88
  }));
97
89
  };
98
- const mql = window.matchMedia(matchMediaQuery);
99
- mql.addListener(listener);
100
- this.matchHandlers[matchMediaQuery] = {
90
+ const mql = window.matchMedia(mediaQuery);
91
+ addMediaQueryListener(mql, listener);
92
+ this.matchHandlers[mediaQuery] = {
101
93
  mql,
102
94
  listener
103
95
  };
104
96
  listener(mql);
105
97
  });
106
98
  },
107
- responsiveMap
99
+ unregister() {
100
+ Object.values(responsiveMap).forEach((mediaQuery) => {
101
+ const handler = this.matchHandlers[mediaQuery];
102
+ removeMediaQueryListener(handler === null || handler === void 0 ? void 0 : handler.mql, handler === null || handler === void 0 ? void 0 : handler.listener);
103
+ });
104
+ subscribers.clear();
105
+ }
108
106
  };
109
107
  }, [token]);
110
- }
108
+ };
111
109
  export {
112
110
  useResponsiveObserver as default,
113
111
  responsiveArray
@@ -2,8 +2,7 @@
2
2
  var raf = require("../../../rc-util/es/raf.cjs");
3
3
  var easings = require("./easings.cjs");
4
4
  var getScroll = require("./getScroll.cjs");
5
- function scrollTo(y) {
6
- let options = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
5
+ function scrollTo(y, options = {}) {
7
6
  const {
8
7
  getContainer = () => window,
9
8
  callback,
@@ -1,8 +1,7 @@
1
1
  import wrapperRaf from "../../../rc-util/es/raf.js";
2
2
  import { easeInOutCubic } from "./easings.js";
3
3
  import getScroll, { isWindow } from "./getScroll.js";
4
- function scrollTo(y) {
5
- let options = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
4
+ function scrollTo(y, options = {}) {
6
5
  const {
7
6
  getContainer = () => window,
8
7
  callback,
@@ -1,7 +1,8 @@
1
1
  "use strict";
2
- function toList(candidate) {
3
- let skipEmpty = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : false;
4
- if (skipEmpty && (candidate === void 0 || candidate === null)) return [];
2
+ const toList = (candidate, skipEmpty = false) => {
3
+ if (skipEmpty && (candidate === void 0 || candidate === null)) {
4
+ return [];
5
+ }
5
6
  return Array.isArray(candidate) ? candidate : [candidate];
6
- }
7
+ };
7
8
  module.exports = toList;
@@ -1,8 +1,9 @@
1
- function toList(candidate) {
2
- let skipEmpty = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : false;
3
- if (skipEmpty && (candidate === void 0 || candidate === null)) return [];
1
+ const toList = (candidate, skipEmpty = false) => {
2
+ if (skipEmpty && (candidate === void 0 || candidate === null)) {
3
+ return [];
4
+ }
4
5
  return Array.isArray(candidate) ? candidate : [candidate];
5
- }
6
+ };
6
7
  export {
7
8
  toList as default
8
9
  };